@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
|
@@ -28767,19 +28767,205 @@ var init_EventCombined_interactive = __esm({
|
|
|
28767
28767
|
}
|
|
28768
28768
|
});
|
|
28769
28769
|
|
|
28770
|
+
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
28771
|
+
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
28772
|
+
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : ["select-event", "select-tickets", "enter-details"];
|
|
28773
|
+
if (!needsPaymentStep) {
|
|
28774
|
+
return baseSteps;
|
|
28775
|
+
}
|
|
28776
|
+
return [...baseSteps, "select-payment"];
|
|
28777
|
+
}
|
|
28778
|
+
function getStepNumber(step, wizardSteps) {
|
|
28779
|
+
const index = wizardSteps.indexOf(step);
|
|
28780
|
+
return index >= 0 ? index + 1 : 1;
|
|
28781
|
+
}
|
|
28782
|
+
var WIZARD_STEPS;
|
|
28783
|
+
var init_wizardSteps = __esm({
|
|
28784
|
+
"../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts"() {
|
|
28785
|
+
"use strict";
|
|
28786
|
+
WIZARD_STEPS = [
|
|
28787
|
+
"select-event",
|
|
28788
|
+
"select-tickets",
|
|
28789
|
+
"enter-details",
|
|
28790
|
+
"select-payment"
|
|
28791
|
+
];
|
|
28792
|
+
}
|
|
28793
|
+
});
|
|
28794
|
+
|
|
28795
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
28796
|
+
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
28797
|
+
return event.registrationOccurrenceId === occurrenceId || event.publicEventId === occurrenceId;
|
|
28798
|
+
}
|
|
28799
|
+
function findEventByOccurrenceId(events, occurrenceId) {
|
|
28800
|
+
return events.find((event) => eventMatchesOccurrenceId(event, occurrenceId)) ?? null;
|
|
28801
|
+
}
|
|
28802
|
+
function findPreSelectedEvent(input) {
|
|
28803
|
+
const occurrenceContext = input.occurrenceContext;
|
|
28804
|
+
if (!occurrenceContext) {
|
|
28805
|
+
return null;
|
|
28806
|
+
}
|
|
28807
|
+
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
28808
|
+
startsAt: occurrenceContext.startsAt,
|
|
28809
|
+
timeZone: occurrenceContext.timeZone
|
|
28810
|
+
}));
|
|
28811
|
+
return input.scopedEvents.find(
|
|
28812
|
+
(event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
28813
|
+
startsAt: event.startsAt,
|
|
28814
|
+
timeZone: event.timeZone
|
|
28815
|
+
})) === contextDate
|
|
28816
|
+
) ?? null;
|
|
28817
|
+
}
|
|
28818
|
+
function resolveRegistrationTarget(input) {
|
|
28819
|
+
const occurrenceId = input.occurrenceContext?.id ?? input.selectedEvent?.registrationOccurrenceId ?? null;
|
|
28820
|
+
if (!occurrenceId) {
|
|
28821
|
+
return null;
|
|
28822
|
+
}
|
|
28823
|
+
return {
|
|
28824
|
+
occurrenceId,
|
|
28825
|
+
selectedEventId: input.selectedEvent?.publicEventId ?? null
|
|
28826
|
+
};
|
|
28827
|
+
}
|
|
28828
|
+
function resolveEventRequiresPayment(input) {
|
|
28829
|
+
if (input.eligibility) {
|
|
28830
|
+
return input.eligibility.requiresPayment;
|
|
28831
|
+
}
|
|
28832
|
+
if (input.selectedTicketType) {
|
|
28833
|
+
return input.selectedTicketType.priceAmount > 0;
|
|
28834
|
+
}
|
|
28835
|
+
if (!input.event) {
|
|
28836
|
+
return false;
|
|
28837
|
+
}
|
|
28838
|
+
return publicEventPricingType(resolveRuntimeEventPricing(input.event)) !== "free";
|
|
28839
|
+
}
|
|
28840
|
+
function resolveDiscountContext(input) {
|
|
28841
|
+
const selection = input.paymentSelection.method ? input.paymentSelection : null;
|
|
28842
|
+
if (!input.event) {
|
|
28843
|
+
return null;
|
|
28844
|
+
}
|
|
28845
|
+
if (selection?.method === "pass_bundle" && selection.bundlePassId) {
|
|
28846
|
+
return { type: "pass", passId: selection.bundlePassId };
|
|
28847
|
+
}
|
|
28848
|
+
if (selection?.method === "membership_bundle" && selection.bundleMembershipId) {
|
|
28849
|
+
return { type: "membership", membershipId: selection.bundleMembershipId };
|
|
28850
|
+
}
|
|
28851
|
+
if (!input.eventRequiresPayment) {
|
|
28852
|
+
return null;
|
|
28853
|
+
}
|
|
28854
|
+
if (selection?.method && selection.method !== "stripe") {
|
|
28855
|
+
return null;
|
|
28856
|
+
}
|
|
28857
|
+
return {
|
|
28858
|
+
type: "event",
|
|
28859
|
+
eventSeriesId: input.event.seriesId,
|
|
28860
|
+
eventCategoryId: input.event.eventCategory?.id ?? null,
|
|
28861
|
+
ticketsCount: input.ticketsCount
|
|
28862
|
+
};
|
|
28863
|
+
}
|
|
28864
|
+
var init_registrationDerivations = __esm({
|
|
28865
|
+
"../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts"() {
|
|
28866
|
+
"use strict";
|
|
28867
|
+
init_src();
|
|
28868
|
+
init_pricing2();
|
|
28869
|
+
}
|
|
28870
|
+
});
|
|
28871
|
+
|
|
28872
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
28873
|
+
function toRegistrationEvent(event) {
|
|
28874
|
+
return {
|
|
28875
|
+
...event,
|
|
28876
|
+
pricing: resolveRuntimeEventPricing(event),
|
|
28877
|
+
publicEventId: event.id,
|
|
28878
|
+
registrationOccurrenceId: event.occurrenceId
|
|
28879
|
+
};
|
|
28880
|
+
}
|
|
28881
|
+
function toRegistrationEvents(events) {
|
|
28882
|
+
return events.map(toRegistrationEvent);
|
|
28883
|
+
}
|
|
28884
|
+
var init_registrationEventAdapter = __esm({
|
|
28885
|
+
"../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts"() {
|
|
28886
|
+
"use strict";
|
|
28887
|
+
init_pricing2();
|
|
28888
|
+
}
|
|
28889
|
+
});
|
|
28890
|
+
|
|
28770
28891
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
28771
28892
|
import { z as z43 } from "zod";
|
|
28772
28893
|
function buildEventRegistrationDisplay(source) {
|
|
28894
|
+
const stepLabels = buildEventRegistrationShellStepLabels(source);
|
|
28773
28895
|
return {
|
|
28774
28896
|
kind: "event-registration",
|
|
28775
28897
|
state: "generic-shell",
|
|
28776
28898
|
className: source.className ?? null,
|
|
28777
28899
|
titleText: "Event registration",
|
|
28778
|
-
bodyText:
|
|
28779
|
-
stepLabels
|
|
28900
|
+
bodyText: buildEventRegistrationShellBodyText(stepLabels),
|
|
28901
|
+
stepLabels,
|
|
28780
28902
|
summaryButtonText: source.buttonText?.trim() || "Register"
|
|
28781
28903
|
};
|
|
28782
28904
|
}
|
|
28905
|
+
function buildEventRegistrationShellStepLabels(source) {
|
|
28906
|
+
const scopedEvents = scopeEventRegistrationEvents(source);
|
|
28907
|
+
if (scopedEvents.length === 0) {
|
|
28908
|
+
return EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
28909
|
+
}
|
|
28910
|
+
const preSelectedEvent = findPreSelectedEvent({
|
|
28911
|
+
scopedEvents,
|
|
28912
|
+
occurrenceContext: source.occurrenceContext
|
|
28913
|
+
});
|
|
28914
|
+
const hasPreSelectedContext = Boolean(source.occurrenceContext || preSelectedEvent);
|
|
28915
|
+
const needsPaymentStep = hasPreSelectedContext && preSelectedEvent ? resolveEventRequiresPayment({
|
|
28916
|
+
eligibility: null,
|
|
28917
|
+
selectedTicketType: null,
|
|
28918
|
+
event: preSelectedEvent
|
|
28919
|
+
}) : false;
|
|
28920
|
+
return getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
28921
|
+
}
|
|
28922
|
+
function scopeEventRegistrationEvents(source) {
|
|
28923
|
+
const events = toRegistrationEvents(source.events ?? []);
|
|
28924
|
+
if (source.occurrenceContext?.seriesId) {
|
|
28925
|
+
return events.filter((event) => event.seriesId === source.occurrenceContext?.seriesId);
|
|
28926
|
+
}
|
|
28927
|
+
const entrySlug = source.contentEntry?.slug;
|
|
28928
|
+
const entryContentType = source.contentEntry?.contentTypeSlug;
|
|
28929
|
+
if (entrySlug && entryContentType && isEventContentType(entryContentType)) {
|
|
28930
|
+
return events.filter((event) => event.slug === entrySlug);
|
|
28931
|
+
}
|
|
28932
|
+
return events;
|
|
28933
|
+
}
|
|
28934
|
+
function shellLabelForRegistrationStep(step, events) {
|
|
28935
|
+
switch (step) {
|
|
28936
|
+
case "select-event":
|
|
28937
|
+
return isDateSelection(events) ? "Date" : "Event";
|
|
28938
|
+
case "select-tickets":
|
|
28939
|
+
return "Tickets";
|
|
28940
|
+
case "enter-details":
|
|
28941
|
+
return "Details";
|
|
28942
|
+
case "select-payment":
|
|
28943
|
+
return "Payment";
|
|
28944
|
+
case "error":
|
|
28945
|
+
case "success":
|
|
28946
|
+
case "submitting":
|
|
28947
|
+
case "redirecting":
|
|
28948
|
+
case "verifying-payment":
|
|
28949
|
+
case "verifying-timeout":
|
|
28950
|
+
case "payment-failed":
|
|
28951
|
+
return "Details";
|
|
28952
|
+
}
|
|
28953
|
+
}
|
|
28954
|
+
function isDateSelection(events) {
|
|
28955
|
+
const firstSeriesId = events[0]?.seriesId;
|
|
28956
|
+
return Boolean(
|
|
28957
|
+
events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId)
|
|
28958
|
+
);
|
|
28959
|
+
}
|
|
28960
|
+
function buildEventRegistrationShellBodyText(stepLabels) {
|
|
28961
|
+
if (stepLabels.includes("Payment")) {
|
|
28962
|
+
return "Preparing tickets, details, and payment options.";
|
|
28963
|
+
}
|
|
28964
|
+
if (stepLabels[0] === "Tickets") {
|
|
28965
|
+
return "Preparing tickets and booking details.";
|
|
28966
|
+
}
|
|
28967
|
+
return "Preparing dates, tickets, and booking details.";
|
|
28968
|
+
}
|
|
28783
28969
|
function normalizeEventRegistrationEventInput(value) {
|
|
28784
28970
|
if (!isRecord5(value)) {
|
|
28785
28971
|
return value;
|
|
@@ -28806,22 +28992,22 @@ function buildEventRegistrationInteractiveIslandProps(props2) {
|
|
|
28806
28992
|
source: props2
|
|
28807
28993
|
});
|
|
28808
28994
|
}
|
|
28809
|
-
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS,
|
|
28995
|
+
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS, EVENT_REGISTRATION_SHELL_STEP_LABELS, contentEntrySchema2, eventRegistrationPublicEventSchema, eventRegistrationSourceSchema, eventRegistrationDisplaySchema, eventRegistrationHydrationSchema, eventRegistrationRenderSchema, eventRegistrationIslandMetaCodec, eventRegistrationIslandMetaKeys, eventRegistrationBlockRuntime, eventRegistrationInteractiveIslandPropsCodec;
|
|
28810
28996
|
var init_event_registration_interactive = __esm({
|
|
28811
28997
|
"../blocks/src/system/runtime/nodes/event-registration.interactive.ts"() {
|
|
28812
28998
|
"use strict";
|
|
28813
28999
|
init_schemas2();
|
|
28814
29000
|
init_event_registration_shared();
|
|
29001
|
+
init_events();
|
|
28815
29002
|
init_pricing2();
|
|
28816
29003
|
init_islands();
|
|
28817
29004
|
init_runtime();
|
|
28818
29005
|
init_contract_schemas();
|
|
29006
|
+
init_wizardSteps();
|
|
29007
|
+
init_registrationDerivations();
|
|
29008
|
+
init_registrationEventAdapter();
|
|
28819
29009
|
EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
28820
|
-
[
|
|
28821
|
-
eventRegistrationGenericDateStepLabel,
|
|
28822
|
-
eventRegistrationGenericTicketsStepLabel,
|
|
28823
|
-
eventRegistrationGenericDetailsStepLabel
|
|
28824
|
-
] = EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
29010
|
+
EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
28825
29011
|
contentEntrySchema2 = z43.object({
|
|
28826
29012
|
id: z43.string(),
|
|
28827
29013
|
slug: z43.string(),
|
|
@@ -28857,11 +29043,7 @@ var init_event_registration_interactive = __esm({
|
|
|
28857
29043
|
className: z43.string().nullable(),
|
|
28858
29044
|
titleText: z43.string(),
|
|
28859
29045
|
bodyText: z43.string(),
|
|
28860
|
-
stepLabels: z43.
|
|
28861
|
-
z43.literal(eventRegistrationGenericDateStepLabel),
|
|
28862
|
-
z43.literal(eventRegistrationGenericTicketsStepLabel),
|
|
28863
|
-
z43.literal(eventRegistrationGenericDetailsStepLabel)
|
|
28864
|
-
]),
|
|
29046
|
+
stepLabels: z43.array(z43.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
28865
29047
|
summaryButtonText: z43.string()
|
|
28866
29048
|
});
|
|
28867
29049
|
eventRegistrationHydrationSchema = z43.object({
|
|
@@ -38173,10 +38355,6 @@ function getCmsApiUrl() {
|
|
|
38173
38355
|
if (dashboardUrl) {
|
|
38174
38356
|
return `${dashboardUrl.replace(/\/$/, "")}/api`;
|
|
38175
38357
|
}
|
|
38176
|
-
const legacyApiUrl = process.env.NEXT_PUBLIC_CMS_API_URL;
|
|
38177
|
-
if (legacyApiUrl) {
|
|
38178
|
-
return legacyApiUrl.replace(/\/$/, "");
|
|
38179
|
-
}
|
|
38180
38358
|
throw new Error("Dashboard URL not configured. Set NEXT_PUBLIC_DASHBOARD_URL");
|
|
38181
38359
|
}
|
|
38182
38360
|
function getChallengeUrl() {
|
|
@@ -42241,11 +42419,11 @@ var init_validation2 = __esm({
|
|
|
42241
42419
|
});
|
|
42242
42420
|
|
|
42243
42421
|
// ../blocks/src/system/runtime/shared/utils/wizardSteps.ts
|
|
42244
|
-
function
|
|
42422
|
+
function getStepNumber2(step, wizardSteps) {
|
|
42245
42423
|
const index = wizardSteps.indexOf(step);
|
|
42246
42424
|
return index >= 0 ? index + 1 : 1;
|
|
42247
42425
|
}
|
|
42248
|
-
var
|
|
42426
|
+
var init_wizardSteps2 = __esm({
|
|
42249
42427
|
"../blocks/src/system/runtime/shared/utils/wizardSteps.ts"() {
|
|
42250
42428
|
"use strict";
|
|
42251
42429
|
}
|
|
@@ -42261,7 +42439,7 @@ var init_utils4 = __esm({
|
|
|
42261
42439
|
init_themePortalRoot();
|
|
42262
42440
|
init_urlParams();
|
|
42263
42441
|
init_validation2();
|
|
42264
|
-
|
|
42442
|
+
init_wizardSteps2();
|
|
42265
42443
|
}
|
|
42266
42444
|
});
|
|
42267
42445
|
|
|
@@ -42907,31 +43085,6 @@ var init_StepIndicator2 = __esm({
|
|
|
42907
43085
|
}
|
|
42908
43086
|
});
|
|
42909
43087
|
|
|
42910
|
-
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
42911
|
-
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
42912
|
-
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : ["select-event", "select-tickets", "enter-details"];
|
|
42913
|
-
if (!needsPaymentStep) {
|
|
42914
|
-
return baseSteps;
|
|
42915
|
-
}
|
|
42916
|
-
return [...baseSteps, "select-payment"];
|
|
42917
|
-
}
|
|
42918
|
-
function getStepNumber2(step, wizardSteps) {
|
|
42919
|
-
const index = wizardSteps.indexOf(step);
|
|
42920
|
-
return index >= 0 ? index + 1 : 1;
|
|
42921
|
-
}
|
|
42922
|
-
var WIZARD_STEPS;
|
|
42923
|
-
var init_wizardSteps2 = __esm({
|
|
42924
|
-
"../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts"() {
|
|
42925
|
-
"use strict";
|
|
42926
|
-
WIZARD_STEPS = [
|
|
42927
|
-
"select-event",
|
|
42928
|
-
"select-tickets",
|
|
42929
|
-
"enter-details",
|
|
42930
|
-
"select-payment"
|
|
42931
|
-
];
|
|
42932
|
-
}
|
|
42933
|
-
});
|
|
42934
|
-
|
|
42935
43088
|
// ../blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.ts
|
|
42936
43089
|
function createInitialRegistrationFlowState(hasPreSelectedContext) {
|
|
42937
43090
|
return {
|
|
@@ -43090,7 +43243,23 @@ var init_registrationStateMachine = __esm({
|
|
|
43090
43243
|
}
|
|
43091
43244
|
});
|
|
43092
43245
|
|
|
43093
|
-
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.
|
|
43246
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.ts
|
|
43247
|
+
var DEFAULT_EVENT_REGISTRATION_MAX_TICKETS;
|
|
43248
|
+
var init_event_registration_headless_contract = __esm({
|
|
43249
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.ts"() {
|
|
43250
|
+
"use strict";
|
|
43251
|
+
DEFAULT_EVENT_REGISTRATION_MAX_TICKETS = 5;
|
|
43252
|
+
}
|
|
43253
|
+
});
|
|
43254
|
+
|
|
43255
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
43256
|
+
var init_event_registration_headless_override = __esm({
|
|
43257
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts"() {
|
|
43258
|
+
"use strict";
|
|
43259
|
+
}
|
|
43260
|
+
});
|
|
43261
|
+
|
|
43262
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.ts
|
|
43094
43263
|
function getRegistrableStatuses(isPreview) {
|
|
43095
43264
|
return isPreview ? ["active", "draft"] : ["active"];
|
|
43096
43265
|
}
|
|
@@ -43163,11 +43332,20 @@ function missingPaymentSelection() {
|
|
|
43163
43332
|
message: "Select a payment option to continue."
|
|
43164
43333
|
};
|
|
43165
43334
|
}
|
|
43166
|
-
var
|
|
43335
|
+
var init_event_registration_headless_planning = __esm({
|
|
43336
|
+
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.ts"() {
|
|
43337
|
+
"use strict";
|
|
43338
|
+
init_event_registration_headless_contract();
|
|
43339
|
+
}
|
|
43340
|
+
});
|
|
43341
|
+
|
|
43342
|
+
// ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.ts
|
|
43167
43343
|
var init_event_registration_headless_state = __esm({
|
|
43168
43344
|
"../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.state.ts"() {
|
|
43169
43345
|
"use strict";
|
|
43170
|
-
|
|
43346
|
+
init_event_registration_headless_contract();
|
|
43347
|
+
init_event_registration_headless_override();
|
|
43348
|
+
init_event_registration_headless_planning();
|
|
43171
43349
|
}
|
|
43172
43350
|
});
|
|
43173
43351
|
|
|
@@ -43714,9 +43892,9 @@ var init_EventSelectionStep = __esm({
|
|
|
43714
43892
|
showCapacity
|
|
43715
43893
|
}) => {
|
|
43716
43894
|
const selectionMode = getEventSelectionMode(events);
|
|
43717
|
-
const
|
|
43895
|
+
const isDateSelection2 = selectionMode === "date";
|
|
43718
43896
|
return /* @__PURE__ */ jsxs26("div", { className: "er-stack", children: [
|
|
43719
|
-
/* @__PURE__ */ jsx41("h3", { className: "er-title", children:
|
|
43897
|
+
/* @__PURE__ */ jsx41("h3", { className: "er-title", children: isDateSelection2 ? "Choose a date" : "Select an event" }),
|
|
43720
43898
|
/* @__PURE__ */ jsx41("div", { className: "er-event-grid", children: events.map((event) => {
|
|
43721
43899
|
const isSelected = selectedEvent?.publicEventId === event.publicEventId;
|
|
43722
43900
|
const isSoldOut = event.capacity !== null && event.availableSpots === 0;
|
|
@@ -43744,9 +43922,9 @@ var init_EventSelectionStep = __esm({
|
|
|
43744
43922
|
className: cardClasses,
|
|
43745
43923
|
children: /* @__PURE__ */ jsxs26("div", { className: "er-event-option", children: [
|
|
43746
43924
|
/* @__PURE__ */ jsxs26("div", { className: "er-event-option-main", children: [
|
|
43747
|
-
/* @__PURE__ */ jsx41("h4", { className: "er-event-title", children:
|
|
43925
|
+
/* @__PURE__ */ jsx41("h4", { className: "er-event-title", children: isDateSelection2 ? formatDate3(event.startsAt, { timeZone }) : event.title }),
|
|
43748
43926
|
/* @__PURE__ */ jsxs26("p", { className: "er-text er-text--muted", children: [
|
|
43749
|
-
|
|
43927
|
+
isDateSelection2 ? formatTime3(event.startsAt, { timeZone }) : `${formatDate3(event.startsAt, { timeZone })} at ${formatTime3(event.startsAt, { timeZone })}`,
|
|
43750
43928
|
showVenue && event.venue && /* @__PURE__ */ jsxs26(Fragment6, { children: [
|
|
43751
43929
|
/* @__PURE__ */ jsx41("span", { "aria-hidden": "true", children: " \xB7 " }),
|
|
43752
43930
|
event.venue.name
|
|
@@ -44523,7 +44701,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
44523
44701
|
label: "Pay by Card",
|
|
44524
44702
|
detail: formatPrice(totalPrice, eligibility.currency),
|
|
44525
44703
|
selected: selectedMethod === "stripe",
|
|
44526
|
-
onClick: () => onSelectionChange({ method: "stripe" })
|
|
44704
|
+
onClick: () => onSelectionChange({ method: "stripe", collectionOptionKind: "upfront" })
|
|
44527
44705
|
}
|
|
44528
44706
|
),
|
|
44529
44707
|
isAuthenticated && eligibility.eligiblePasses.map((pass) => /* @__PURE__ */ jsx47(
|
|
@@ -44773,7 +44951,7 @@ var init_event_registration = __esm({
|
|
|
44773
44951
|
init_utils5();
|
|
44774
44952
|
init_hooks();
|
|
44775
44953
|
init_sessionStorage();
|
|
44776
|
-
|
|
44954
|
+
init_wizardSteps();
|
|
44777
44955
|
init_EventSelectionStep();
|
|
44778
44956
|
init_TicketSelectionStep();
|
|
44779
44957
|
init_AttendeeDetailsStep();
|
|
@@ -45462,6 +45640,7 @@ function useEventRegistrationSubmit(options) {
|
|
|
45462
45640
|
checkoutType,
|
|
45463
45641
|
productId: bundleProductId,
|
|
45464
45642
|
discountCode: options.discountCode.trim() ? options.discountCode.trim() : void 0,
|
|
45643
|
+
collectionOptionKind: selectionSnapshot.collectionOptionKind,
|
|
45465
45644
|
successUrl,
|
|
45466
45645
|
cancelUrl
|
|
45467
45646
|
});
|
|
@@ -45538,102 +45717,6 @@ var init_useEventRegistrationSubmit = __esm({
|
|
|
45538
45717
|
}
|
|
45539
45718
|
});
|
|
45540
45719
|
|
|
45541
|
-
// ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
45542
|
-
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
45543
|
-
return event.registrationOccurrenceId === occurrenceId || event.publicEventId === occurrenceId;
|
|
45544
|
-
}
|
|
45545
|
-
function findEventByOccurrenceId(events, occurrenceId) {
|
|
45546
|
-
return events.find((event) => eventMatchesOccurrenceId(event, occurrenceId)) ?? null;
|
|
45547
|
-
}
|
|
45548
|
-
function findPreSelectedEvent(input) {
|
|
45549
|
-
const occurrenceContext = input.occurrenceContext;
|
|
45550
|
-
if (!occurrenceContext) {
|
|
45551
|
-
return null;
|
|
45552
|
-
}
|
|
45553
|
-
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
45554
|
-
startsAt: occurrenceContext.startsAt,
|
|
45555
|
-
timeZone: occurrenceContext.timeZone
|
|
45556
|
-
}));
|
|
45557
|
-
return input.scopedEvents.find(
|
|
45558
|
-
(event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
45559
|
-
startsAt: event.startsAt,
|
|
45560
|
-
timeZone: event.timeZone
|
|
45561
|
-
})) === contextDate
|
|
45562
|
-
) ?? null;
|
|
45563
|
-
}
|
|
45564
|
-
function resolveRegistrationTarget(input) {
|
|
45565
|
-
const occurrenceId = input.occurrenceContext?.id ?? input.selectedEvent?.registrationOccurrenceId ?? null;
|
|
45566
|
-
if (!occurrenceId) {
|
|
45567
|
-
return null;
|
|
45568
|
-
}
|
|
45569
|
-
return {
|
|
45570
|
-
occurrenceId,
|
|
45571
|
-
selectedEventId: input.selectedEvent?.publicEventId ?? null
|
|
45572
|
-
};
|
|
45573
|
-
}
|
|
45574
|
-
function resolveEventRequiresPayment(input) {
|
|
45575
|
-
if (input.eligibility) {
|
|
45576
|
-
return input.eligibility.requiresPayment;
|
|
45577
|
-
}
|
|
45578
|
-
if (input.selectedTicketType) {
|
|
45579
|
-
return input.selectedTicketType.priceAmount > 0;
|
|
45580
|
-
}
|
|
45581
|
-
if (!input.event) {
|
|
45582
|
-
return false;
|
|
45583
|
-
}
|
|
45584
|
-
return publicEventPricingType(resolveRuntimeEventPricing(input.event)) !== "free";
|
|
45585
|
-
}
|
|
45586
|
-
function resolveDiscountContext(input) {
|
|
45587
|
-
const selection = input.paymentSelection.method ? input.paymentSelection : null;
|
|
45588
|
-
if (!input.event) {
|
|
45589
|
-
return null;
|
|
45590
|
-
}
|
|
45591
|
-
if (selection?.method === "pass_bundle" && selection.bundlePassId) {
|
|
45592
|
-
return { type: "pass", passId: selection.bundlePassId };
|
|
45593
|
-
}
|
|
45594
|
-
if (selection?.method === "membership_bundle" && selection.bundleMembershipId) {
|
|
45595
|
-
return { type: "membership", membershipId: selection.bundleMembershipId };
|
|
45596
|
-
}
|
|
45597
|
-
if (!input.eventRequiresPayment) {
|
|
45598
|
-
return null;
|
|
45599
|
-
}
|
|
45600
|
-
if (selection?.method && selection.method !== "stripe") {
|
|
45601
|
-
return null;
|
|
45602
|
-
}
|
|
45603
|
-
return {
|
|
45604
|
-
type: "event",
|
|
45605
|
-
eventSeriesId: input.event.seriesId,
|
|
45606
|
-
eventCategoryId: input.event.eventCategory?.id ?? null,
|
|
45607
|
-
ticketsCount: input.ticketsCount
|
|
45608
|
-
};
|
|
45609
|
-
}
|
|
45610
|
-
var init_registrationDerivations = __esm({
|
|
45611
|
-
"../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts"() {
|
|
45612
|
-
"use strict";
|
|
45613
|
-
init_src();
|
|
45614
|
-
init_pricing2();
|
|
45615
|
-
}
|
|
45616
|
-
});
|
|
45617
|
-
|
|
45618
|
-
// ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
45619
|
-
function toRegistrationEvent(event) {
|
|
45620
|
-
return {
|
|
45621
|
-
...event,
|
|
45622
|
-
pricing: resolveRuntimeEventPricing(event),
|
|
45623
|
-
publicEventId: event.id,
|
|
45624
|
-
registrationOccurrenceId: event.occurrenceId
|
|
45625
|
-
};
|
|
45626
|
-
}
|
|
45627
|
-
function toRegistrationEvents(events) {
|
|
45628
|
-
return events.map(toRegistrationEvent);
|
|
45629
|
-
}
|
|
45630
|
-
var init_registrationEventAdapter = __esm({
|
|
45631
|
-
"../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts"() {
|
|
45632
|
-
"use strict";
|
|
45633
|
-
init_pricing2();
|
|
45634
|
-
}
|
|
45635
|
-
});
|
|
45636
|
-
|
|
45637
45720
|
// ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.ts
|
|
45638
45721
|
import { useCallback as useCallback8, useEffect as useEffect15, useMemo as useMemo10, useReducer as useReducer6, useState as useState11 } from "react";
|
|
45639
45722
|
function useEventRegistrationWizard(options) {
|
|
@@ -45928,23 +46011,29 @@ function useEventRegistrationWizard(options) {
|
|
|
45928
46011
|
);
|
|
45929
46012
|
const handleDetailsComplete = async () => {
|
|
45930
46013
|
if (ticketTypeSelectionRequired && !hasValidSelectedTicketType) {
|
|
45931
|
-
|
|
46014
|
+
const message = "Select a ticket type to continue.";
|
|
46015
|
+
setErrorMessage(message);
|
|
45932
46016
|
setStep("error");
|
|
45933
|
-
return;
|
|
46017
|
+
return { ok: false, reason: "blocked", message };
|
|
45934
46018
|
}
|
|
45935
46019
|
if (!validateForm()) {
|
|
45936
46020
|
setGuestSectionShake(true);
|
|
45937
|
-
return
|
|
46021
|
+
return {
|
|
46022
|
+
ok: false,
|
|
46023
|
+
reason: "validation-failed",
|
|
46024
|
+
message: "Check the highlighted fields and try again."
|
|
46025
|
+
};
|
|
45938
46026
|
}
|
|
45939
46027
|
if (waitlistClaim.claim === null && eligibility?.isFull && !eligibility.canJoinWaitlist) {
|
|
45940
|
-
|
|
46028
|
+
const message = "This event is sold out.";
|
|
46029
|
+
setErrorMessage(message);
|
|
45941
46030
|
setStep("error");
|
|
45942
|
-
return;
|
|
46031
|
+
return { ok: false, reason: "blocked", message };
|
|
45943
46032
|
}
|
|
45944
46033
|
const shouldCollectPayment = !eligibility?.canJoinWaitlist && requiresPaymentStep({ eventRequiresPayment, paymentSelection });
|
|
45945
46034
|
if (shouldCollectPayment) {
|
|
45946
46035
|
setStep("select-payment");
|
|
45947
|
-
return;
|
|
46036
|
+
return { ok: true, outcome: "payment-step" };
|
|
45948
46037
|
}
|
|
45949
46038
|
const submitPlan = resolveEventRegistrationSubmitPlan({
|
|
45950
46039
|
paymentSelection,
|
|
@@ -45954,14 +46043,22 @@ function useEventRegistrationWizard(options) {
|
|
|
45954
46043
|
if (!submitPlan.ok) {
|
|
45955
46044
|
setErrorMessage(submitPlan.message);
|
|
45956
46045
|
setStep("error");
|
|
45957
|
-
return;
|
|
46046
|
+
return { ok: false, reason: "blocked", message: submitPlan.message };
|
|
45958
46047
|
}
|
|
45959
|
-
await handleSubmit(
|
|
46048
|
+
const submitResult = await handleSubmit(
|
|
45960
46049
|
submitPlan.args.method,
|
|
45961
46050
|
submitPlan.args.passId,
|
|
45962
46051
|
submitPlan.args.membershipId,
|
|
45963
46052
|
submitPlan.args.selection
|
|
45964
46053
|
);
|
|
46054
|
+
if (!submitResult.ok) {
|
|
46055
|
+
return {
|
|
46056
|
+
ok: false,
|
|
46057
|
+
reason: submitResult.reason === "submission-failed" ? "submission-failed" : "blocked",
|
|
46058
|
+
message: submitResult.message
|
|
46059
|
+
};
|
|
46060
|
+
}
|
|
46061
|
+
return { ok: true, outcome: "submitted" };
|
|
45965
46062
|
};
|
|
45966
46063
|
const handlePaymentSelect = async () => {
|
|
45967
46064
|
const submitPlan = resolveEventRegistrationSubmitPlan({
|
|
@@ -46248,6 +46345,15 @@ var init_MagicLinkForm = __esm({
|
|
|
46248
46345
|
}
|
|
46249
46346
|
});
|
|
46250
46347
|
|
|
46348
|
+
// ../blocks/src/system/runtime/nodes/event-registration/constants.ts
|
|
46349
|
+
var EVENT_REGISTRATION_ANCHOR_ID;
|
|
46350
|
+
var init_constants3 = __esm({
|
|
46351
|
+
"../blocks/src/system/runtime/nodes/event-registration/constants.ts"() {
|
|
46352
|
+
"use strict";
|
|
46353
|
+
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
46354
|
+
}
|
|
46355
|
+
});
|
|
46356
|
+
|
|
46251
46357
|
// ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx
|
|
46252
46358
|
import { useMemo as useMemo11 } from "react";
|
|
46253
46359
|
import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
@@ -46329,7 +46435,7 @@ function EventRegistrationWizard(props2) {
|
|
|
46329
46435
|
return "";
|
|
46330
46436
|
}
|
|
46331
46437
|
});
|
|
46332
|
-
const currentStepNumber =
|
|
46438
|
+
const currentStepNumber = getStepNumber(wizard.step, activeWizardSteps);
|
|
46333
46439
|
const summaryEvent = wizard.selectedEvent ?? wizard.preSelectedEvent;
|
|
46334
46440
|
const summaryEventPricingType = summaryEvent ? publicEventPricingType(summaryEvent.pricing) : "free";
|
|
46335
46441
|
const waitlistClaimRequiresPortalLogin = wizard.waitlistClaim.requiresPortalLogin && wizard.portalAuthState !== "authenticated" && wizard.portalAuthState !== "checking";
|
|
@@ -46408,7 +46514,7 @@ function EventRegistrationWizard(props2) {
|
|
|
46408
46514
|
wizard.step === "error" && /* @__PURE__ */ jsx57(ErrorStep, { message: wizard.errorMessage, onRetry: wizard.handleRetry })
|
|
46409
46515
|
] }) });
|
|
46410
46516
|
}
|
|
46411
|
-
var
|
|
46517
|
+
var EVENT_PORTAL_AUTH_COPY;
|
|
46412
46518
|
var init_EventRegistrationWizard = __esm({
|
|
46413
46519
|
"../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx"() {
|
|
46414
46520
|
"use strict";
|
|
@@ -46416,7 +46522,7 @@ var init_EventRegistrationWizard = __esm({
|
|
|
46416
46522
|
init_src();
|
|
46417
46523
|
init_client2();
|
|
46418
46524
|
init_StepIndicator2();
|
|
46419
|
-
|
|
46525
|
+
init_wizardSteps();
|
|
46420
46526
|
init_registrationStateMachine();
|
|
46421
46527
|
init_event_registration_headless_state();
|
|
46422
46528
|
init_EventRegistrationWizardContent();
|
|
@@ -46427,8 +46533,8 @@ var init_EventRegistrationWizard = __esm({
|
|
|
46427
46533
|
init_MagicLinkForm();
|
|
46428
46534
|
init_spinner2();
|
|
46429
46535
|
init_buttons();
|
|
46536
|
+
init_constants3();
|
|
46430
46537
|
init_event_registration();
|
|
46431
|
-
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
46432
46538
|
EVENT_PORTAL_AUTH_COPY = {
|
|
46433
46539
|
membership: {
|
|
46434
46540
|
title: "Have a pass or membership?",
|
|
@@ -46502,6 +46608,7 @@ var init_event_registration_client = __esm({
|
|
|
46502
46608
|
"use strict";
|
|
46503
46609
|
"use client";
|
|
46504
46610
|
init_EventRegistrationWizard();
|
|
46611
|
+
init_constants3();
|
|
46505
46612
|
init_PastOccurrenceNotice();
|
|
46506
46613
|
EventRegistrationClient = (clientProps) => {
|
|
46507
46614
|
const isPast = isPastOccurrence(clientProps.occurrenceContext?.startsAt);
|
|
@@ -51386,7 +51493,7 @@ function useCourseRegistrationWizard(props2) {
|
|
|
51386
51493
|
),
|
|
51387
51494
|
[hasPreSelectedCourse, hasCoursePayment, canUseMembership, bookingMode, isMembershipFastTrack]
|
|
51388
51495
|
);
|
|
51389
|
-
const currentStepNumber =
|
|
51496
|
+
const currentStepNumber = getStepNumber2(step, wizardSteps);
|
|
51390
51497
|
const totalSteps = wizardSteps.length;
|
|
51391
51498
|
const stepLabels = getStepLabels(wizardSteps);
|
|
51392
51499
|
const canShowPortalAuthSidebarOnCurrentStep = step !== "success" && step !== "waitlist" && step !== "error";
|
|
@@ -71547,6 +71654,7 @@ var EventListingSSR = (props2) => {
|
|
|
71547
71654
|
|
|
71548
71655
|
// ../blocks/src/system/runtime/nodes/event-registration.server.tsx
|
|
71549
71656
|
init_event_registration_interactive();
|
|
71657
|
+
init_constants3();
|
|
71550
71658
|
import { jsx as jsx145, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
71551
71659
|
function cx(...classes) {
|
|
71552
71660
|
return classes.filter((className) => Boolean(className)).join(" ");
|
|
@@ -71614,42 +71722,51 @@ function EventRegistrationSSR({
|
|
|
71614
71722
|
function EventRegistrationShell({
|
|
71615
71723
|
display
|
|
71616
71724
|
}) {
|
|
71617
|
-
return /* @__PURE__ */ jsx145(
|
|
71618
|
-
|
|
71619
|
-
|
|
71620
|
-
|
|
71621
|
-
|
|
71622
|
-
|
|
71623
|
-
|
|
71624
|
-
|
|
71625
|
-
|
|
71626
|
-
|
|
71627
|
-
|
|
71628
|
-
|
|
71629
|
-
|
|
71630
|
-
|
|
71631
|
-
|
|
71725
|
+
return /* @__PURE__ */ jsx145(
|
|
71726
|
+
"div",
|
|
71727
|
+
{
|
|
71728
|
+
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
71729
|
+
className: "er-container er-registration-shell",
|
|
71730
|
+
"aria-busy": "true",
|
|
71731
|
+
role: "status",
|
|
71732
|
+
children: /* @__PURE__ */ jsxs91("div", { className: "er-payment-layout er-payment-layout--no-sidebar", children: [
|
|
71733
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-payment-layout-main", children: [
|
|
71734
|
+
/* @__PURE__ */ jsx145("div", { className: "er-steps-nav er-registration-shell__steps", "aria-hidden": "true", children: /* @__PURE__ */ jsx145("ol", { className: "er-steps", children: display.stepLabels.map((label, index) => {
|
|
71735
|
+
const isActive = index === 0;
|
|
71736
|
+
return /* @__PURE__ */ jsxs91("li", { className: "er-step", children: [
|
|
71737
|
+
/* @__PURE__ */ jsx145("span", { className: cx("er-step-circle", isActive && "er-step-circle--active"), children: index + 1 }),
|
|
71738
|
+
/* @__PURE__ */ jsx145("span", { className: cx("er-step-label", isActive && "er-step-label--active"), children: label }),
|
|
71739
|
+
index < display.stepLabels.length - 1 ? /* @__PURE__ */ jsx145("span", { className: "er-step-connector" }) : null
|
|
71740
|
+
] }, label);
|
|
71741
|
+
}) }) }),
|
|
71742
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-stack", children: [
|
|
71743
|
+
/* @__PURE__ */ jsxs91("div", { children: [
|
|
71744
|
+
/* @__PURE__ */ jsx145("p", { className: "er-registration-shell__eyebrow", children: "Registration" }),
|
|
71745
|
+
/* @__PURE__ */ jsx145("h3", { className: "er-title er-registration-shell__title", children: display.titleText }),
|
|
71746
|
+
/* @__PURE__ */ jsx145("p", { className: "er-text er-text--muted er-registration-shell__copy", children: display.bodyText })
|
|
71747
|
+
] }),
|
|
71748
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-event-grid er-registration-shell__cards", "aria-hidden": "true", children: [
|
|
71749
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
71750
|
+
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
71751
|
+
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
71752
|
+
] }),
|
|
71753
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
71754
|
+
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
71755
|
+
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
71756
|
+
] })
|
|
71757
|
+
] })
|
|
71758
|
+
] })
|
|
71632
71759
|
] }),
|
|
71633
|
-
/* @__PURE__ */ jsxs91("div", { className: "er-
|
|
71634
|
-
/* @__PURE__ */ jsxs91("div", { className: "er-
|
|
71635
|
-
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
71636
|
-
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
71637
|
-
] }),
|
|
71638
|
-
/* @__PURE__ */ jsxs91("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
71760
|
+
/* @__PURE__ */ jsx145("div", { className: "er-payment-layout-footer", children: /* @__PURE__ */ jsxs91("div", { className: "er-summary-bar er-registration-shell__summary", "aria-hidden": "true", children: [
|
|
71761
|
+
/* @__PURE__ */ jsxs91("div", { className: "er-summary-bar-info", children: [
|
|
71639
71762
|
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
71640
71763
|
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
71641
|
-
] })
|
|
71642
|
-
|
|
71764
|
+
] }),
|
|
71765
|
+
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
71766
|
+
] }) })
|
|
71643
71767
|
] })
|
|
71644
|
-
|
|
71645
|
-
|
|
71646
|
-
/* @__PURE__ */ jsxs91("div", { className: "er-summary-bar-info", children: [
|
|
71647
|
-
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
71648
|
-
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
71649
|
-
] }),
|
|
71650
|
-
/* @__PURE__ */ jsx145("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
71651
|
-
] }) })
|
|
71652
|
-
] }) });
|
|
71768
|
+
}
|
|
71769
|
+
);
|
|
71653
71770
|
}
|
|
71654
71771
|
var event_registration_server_default = EventRegistrationSSR;
|
|
71655
71772
|
|