@riverbankcms/sdk 0.84.0 → 0.84.1
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-X7RLMEI6.mjs} +2 -2
- package/dist/{PreviewEditorUI-I4BQUU6K.mjs → PreviewEditorUI-CT67N4O3.mjs} +2 -2
- package/dist/SdkPreviewModeRuntime-EIMQ3S2V.mjs +8 -0
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +4 -4
- 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/useEventRegistrationWizard.d.ts +9 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -6
- package/dist/_dts/editor-blocks/src/BlockForm.d.ts +6 -4
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/{chunk-MSHZO4SL.mjs → chunk-O62NDCTI.mjs} +268 -186
- package/dist/{chunk-HFMGVJCE.mjs → chunk-QRKJDWT7.mjs} +5 -5
- package/dist/{chunk-6X2OVO3S.mjs → chunk-RCTJAZSK.mjs} +1 -1
- package/dist/{chunk-5E33VO6J.mjs → chunk-X5ZCSU6F.mjs} +1 -1
- package/dist/cli/index.mjs +323 -35
- 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-DYXT6YB6.mjs} +3 -3
- package/dist/client/bookings.mjs +155 -134
- 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-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-RDJFCPY3.mjs → chunk-UHDWIXVR.mjs} +31 -115
- 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 +337 -217
- package/dist/client/{courseRegistration-QTUDC35T.mjs → courseRegistration-YBOGURTA.mjs} +3 -3
- package/dist/client/{eventCalendar-Q7NS4XLD.mjs → eventCalendar-K4QJVCMD.mjs} +5 -5
- package/dist/client/{eventCombined-QAO7VUO5.mjs → eventCombined-MTXGMTCZ.mjs} +5 -5
- package/dist/client/{eventDetails-WTNNU6Q3.mjs → eventDetails-3PC4NL3U.mjs} +5 -5
- package/dist/client/{eventListing-5TA2ELDT.mjs → eventListing-TFJET6DN.mjs} +5 -5
- package/dist/client/{eventRegistration-M6USZGRF.mjs → eventRegistration-QGPBGJTW.mjs} +5 -5
- package/dist/client/{form-DGVGXLMH.mjs → form-MDKR4FNB.mjs} +1 -1
- 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-ZR5UDGBT.mjs} +1 -1
- 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 +310 -190
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +310 -190
- package/dist/client/{shop-UIFX7XRK.mjs → shop-WXSYV5QO.mjs} +5 -5
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-ZENAOYMN.mjs → sdk-runtime-7HJYPRWQ.mjs} +4 -4
- 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 +1 -1
- package/dist/server/next.mjs +189 -62
- 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 +322 -42
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-MCKMVDTK.mjs +0 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { mountShopBlockIsland, ShopClient } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { mountShopBlockIsland, ShopClient } from './chunk-52CGCQ7B.mjs';
|
|
2
|
+
import './chunk-F5VRX5Y6.mjs';
|
|
3
|
+
import './chunk-4OXKTA3D.mjs';
|
|
4
4
|
import './chunk-I2MMZO53.mjs';
|
|
5
5
|
import './chunk-ZFHRN6W2.mjs';
|
|
6
6
|
import './chunk-L4J5Y62O.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-7UCLJ5SP.mjs';
|
|
8
8
|
import './chunk-3DCJ45Z2.mjs';
|
|
9
9
|
import './chunk-DVNUDUVT.mjs';
|
|
10
10
|
import './chunk-UDNSI5PY.mjs';
|
|
11
11
|
import './chunk-N7PBWBWQ.mjs';
|
|
12
|
-
import { defineIslandPropsDecoder } from './chunk-
|
|
12
|
+
import { defineIslandPropsDecoder } from './chunk-VGDBVNOO.mjs';
|
|
13
13
|
import './chunk-ZE5G642V.mjs';
|
|
14
14
|
|
|
15
15
|
// src/rendering/islands/enhancers/shop.tsx
|
|
@@ -6,19 +6,19 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var LazySdkPreviewMode = React.lazy(async () => {
|
|
9
|
-
const mod = await import('../../SdkPreviewModeRuntime-
|
|
9
|
+
const mod = await import('../../SdkPreviewModeRuntime-EIMQ3S2V.mjs');
|
|
10
10
|
return {
|
|
11
11
|
default: mod.SdkPreviewModeRuntime
|
|
12
12
|
};
|
|
13
13
|
});
|
|
14
14
|
var LazyPreviewShell = React.lazy(async () => {
|
|
15
|
-
const mod = await import('../../sdk-runtime-
|
|
15
|
+
const mod = await import('../../sdk-runtime-7HJYPRWQ.mjs');
|
|
16
16
|
return {
|
|
17
17
|
default: mod.PreviewShell
|
|
18
18
|
};
|
|
19
19
|
});
|
|
20
20
|
var LazyPreviewShellLayout = React.lazy(async () => {
|
|
21
|
-
const mod = await import('../../sdk-runtime-
|
|
21
|
+
const mod = await import('../../sdk-runtime-7HJYPRWQ.mjs');
|
|
22
22
|
return {
|
|
23
23
|
default: mod.PreviewShellLayout
|
|
24
24
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { PreviewShell, PreviewShellLayout, SdkPreviewModeRuntime as SdkPreviewMode } from './chunk-
|
|
2
|
+
export { PreviewShell, PreviewShellLayout, SdkPreviewModeRuntime as SdkPreviewMode } from './chunk-QRKJDWT7.mjs';
|
|
3
3
|
export { PreviewLayoutProvider, PreviewQueryProvider, createPreviewQueryClient, useOptionalPreviewLayout, usePreviewLayout } from './chunk-3LXFQS7T.mjs';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-X5ZCSU6F.mjs';
|
|
5
|
+
import './chunk-RCTJAZSK.mjs';
|
|
6
|
+
import './chunk-O62NDCTI.mjs';
|
|
7
7
|
import './chunk-LBBPD2IW.mjs';
|
|
8
8
|
import './chunk-R7POPVJR.mjs';
|
|
@@ -26993,6 +26993,26 @@ var occurrenceContextSchema = z44.object({
|
|
|
26993
26993
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
26994
26994
|
import { z as z46 } from "zod";
|
|
26995
26995
|
|
|
26996
|
+
// ../blocks/src/system/constants/events.ts
|
|
26997
|
+
var EVENT_CONTENT_TYPE_SLUGS = ["event", "events"];
|
|
26998
|
+
var eventCalendarDisplayModeValues = ["combined", "month", "week", "list", "timetable"];
|
|
26999
|
+
var eventCalendarListLayoutValues = ["stack", "grid", "compact"];
|
|
27000
|
+
var eventCalendarListLayoutOptions = [
|
|
27001
|
+
{ id: "stack", label: "Stack" },
|
|
27002
|
+
{ id: "grid", label: "Grid" },
|
|
27003
|
+
{ id: "compact", label: "Compact" }
|
|
27004
|
+
];
|
|
27005
|
+
function isEventCalendarDisplayMode(value) {
|
|
27006
|
+
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
27007
|
+
}
|
|
27008
|
+
function isEventCalendarListLayout(value) {
|
|
27009
|
+
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
27010
|
+
}
|
|
27011
|
+
function isEventContentType(slug) {
|
|
27012
|
+
if (!slug) return false;
|
|
27013
|
+
return EVENT_CONTENT_TYPE_SLUGS.includes(slug);
|
|
27014
|
+
}
|
|
27015
|
+
|
|
26996
27016
|
// ../blocks/src/system/runtime/nodes/events/shared/pricing.ts
|
|
26997
27017
|
var DEFAULT_EVENT_CURRENCY = "USD";
|
|
26998
27018
|
function resolveRuntimeEventPricing(event) {
|
|
@@ -27115,23 +27135,6 @@ function readAmount(value) {
|
|
|
27115
27135
|
|
|
27116
27136
|
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
27117
27137
|
import { z as z45 } from "zod";
|
|
27118
|
-
|
|
27119
|
-
// ../blocks/src/system/constants/events.ts
|
|
27120
|
-
var eventCalendarDisplayModeValues = ["combined", "month", "week", "list", "timetable"];
|
|
27121
|
-
var eventCalendarListLayoutValues = ["stack", "grid", "compact"];
|
|
27122
|
-
var eventCalendarListLayoutOptions = [
|
|
27123
|
-
{ id: "stack", label: "Stack" },
|
|
27124
|
-
{ id: "grid", label: "Grid" },
|
|
27125
|
-
{ id: "compact", label: "Compact" }
|
|
27126
|
-
];
|
|
27127
|
-
function isEventCalendarDisplayMode(value) {
|
|
27128
|
-
return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
|
|
27129
|
-
}
|
|
27130
|
-
function isEventCalendarListLayout(value) {
|
|
27131
|
-
return typeof value === "string" && eventCalendarListLayoutValues.includes(value);
|
|
27132
|
-
}
|
|
27133
|
-
|
|
27134
|
-
// ../blocks/src/system/runtime/nodes/shared/contract-schemas.ts
|
|
27135
27138
|
var previewStageSchema = z45.enum(["preview", "published"]);
|
|
27136
27139
|
var registrationButtonVariantSchema = z45.enum(["primary", "secondary", "outline"]);
|
|
27137
27140
|
var eventButtonVariantSchema = z45.enum(["primary", "secondary", "outline", "link"]);
|
|
@@ -27142,13 +27145,64 @@ var weekStartSchema = z45.enum(["sunday", "monday"]);
|
|
|
27142
27145
|
var filterAutoShowSchema = z45.enum(["auto", "always", "never"]);
|
|
27143
27146
|
var calendarTabViewsSchema = z45.enum(["both", "month", "week"]);
|
|
27144
27147
|
|
|
27148
|
+
// ../blocks/src/system/runtime/nodes/event-registration/wizardSteps.ts
|
|
27149
|
+
function getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep) {
|
|
27150
|
+
const baseSteps = hasPreSelectedContext ? ["select-tickets", "enter-details"] : ["select-event", "select-tickets", "enter-details"];
|
|
27151
|
+
if (!needsPaymentStep) {
|
|
27152
|
+
return baseSteps;
|
|
27153
|
+
}
|
|
27154
|
+
return [...baseSteps, "select-payment"];
|
|
27155
|
+
}
|
|
27156
|
+
|
|
27157
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationDerivations.ts
|
|
27158
|
+
function eventMatchesOccurrenceId(event, occurrenceId) {
|
|
27159
|
+
return event.registrationOccurrenceId === occurrenceId || event.publicEventId === occurrenceId;
|
|
27160
|
+
}
|
|
27161
|
+
function findPreSelectedEvent(input) {
|
|
27162
|
+
const occurrenceContext = input.occurrenceContext;
|
|
27163
|
+
if (!occurrenceContext) {
|
|
27164
|
+
return null;
|
|
27165
|
+
}
|
|
27166
|
+
const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
27167
|
+
startsAt: occurrenceContext.startsAt,
|
|
27168
|
+
timeZone: occurrenceContext.timeZone
|
|
27169
|
+
}));
|
|
27170
|
+
return input.scopedEvents.find(
|
|
27171
|
+
(event) => eventMatchesOccurrenceId(event, occurrenceContext.id) || getBookingLocalDateKey(toScheduledBookingDateTime({
|
|
27172
|
+
startsAt: event.startsAt,
|
|
27173
|
+
timeZone: event.timeZone
|
|
27174
|
+
})) === contextDate
|
|
27175
|
+
) ?? null;
|
|
27176
|
+
}
|
|
27177
|
+
function resolveEventRequiresPayment(input) {
|
|
27178
|
+
if (input.eligibility) {
|
|
27179
|
+
return input.eligibility.requiresPayment;
|
|
27180
|
+
}
|
|
27181
|
+
if (input.selectedTicketType) {
|
|
27182
|
+
return input.selectedTicketType.priceAmount > 0;
|
|
27183
|
+
}
|
|
27184
|
+
if (!input.event) {
|
|
27185
|
+
return false;
|
|
27186
|
+
}
|
|
27187
|
+
return publicEventPricingType(resolveRuntimeEventPricing(input.event)) !== "free";
|
|
27188
|
+
}
|
|
27189
|
+
|
|
27190
|
+
// ../blocks/src/system/runtime/nodes/event-registration/registrationEventAdapter.ts
|
|
27191
|
+
function toRegistrationEvent(event) {
|
|
27192
|
+
return {
|
|
27193
|
+
...event,
|
|
27194
|
+
pricing: resolveRuntimeEventPricing(event),
|
|
27195
|
+
publicEventId: event.id,
|
|
27196
|
+
registrationOccurrenceId: event.occurrenceId
|
|
27197
|
+
};
|
|
27198
|
+
}
|
|
27199
|
+
function toRegistrationEvents(events) {
|
|
27200
|
+
return events.map(toRegistrationEvent);
|
|
27201
|
+
}
|
|
27202
|
+
|
|
27145
27203
|
// ../blocks/src/system/runtime/nodes/event-registration.interactive.ts
|
|
27146
27204
|
var EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS = ["Date", "Tickets", "Details"];
|
|
27147
|
-
var [
|
|
27148
|
-
eventRegistrationGenericDateStepLabel,
|
|
27149
|
-
eventRegistrationGenericTicketsStepLabel,
|
|
27150
|
-
eventRegistrationGenericDetailsStepLabel
|
|
27151
|
-
] = EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
27205
|
+
var EVENT_REGISTRATION_SHELL_STEP_LABELS = ["Event", "Date", "Tickets", "Details", "Payment"];
|
|
27152
27206
|
var contentEntrySchema = z46.object({
|
|
27153
27207
|
id: z46.string(),
|
|
27154
27208
|
slug: z46.string(),
|
|
@@ -27184,11 +27238,7 @@ var eventRegistrationDisplaySchema = z46.object({
|
|
|
27184
27238
|
className: z46.string().nullable(),
|
|
27185
27239
|
titleText: z46.string(),
|
|
27186
27240
|
bodyText: z46.string(),
|
|
27187
|
-
stepLabels: z46.
|
|
27188
|
-
z46.literal(eventRegistrationGenericDateStepLabel),
|
|
27189
|
-
z46.literal(eventRegistrationGenericTicketsStepLabel),
|
|
27190
|
-
z46.literal(eventRegistrationGenericDetailsStepLabel)
|
|
27191
|
-
]),
|
|
27241
|
+
stepLabels: z46.array(z46.enum(EVENT_REGISTRATION_SHELL_STEP_LABELS)).min(1),
|
|
27192
27242
|
summaryButtonText: z46.string()
|
|
27193
27243
|
});
|
|
27194
27244
|
var eventRegistrationHydrationSchema = z46.object({
|
|
@@ -27223,16 +27273,81 @@ var eventRegistrationIslandMetaKeys = defineInteractiveIslandMetaKeys(
|
|
|
27223
27273
|
"stage"
|
|
27224
27274
|
);
|
|
27225
27275
|
function buildEventRegistrationDisplay(source) {
|
|
27276
|
+
const stepLabels = buildEventRegistrationShellStepLabels(source);
|
|
27226
27277
|
return {
|
|
27227
27278
|
kind: "event-registration",
|
|
27228
27279
|
state: "generic-shell",
|
|
27229
27280
|
className: source.className ?? null,
|
|
27230
27281
|
titleText: "Event registration",
|
|
27231
|
-
bodyText:
|
|
27232
|
-
stepLabels
|
|
27282
|
+
bodyText: buildEventRegistrationShellBodyText(stepLabels),
|
|
27283
|
+
stepLabels,
|
|
27233
27284
|
summaryButtonText: source.buttonText?.trim() || "Register"
|
|
27234
27285
|
};
|
|
27235
27286
|
}
|
|
27287
|
+
function buildEventRegistrationShellStepLabels(source) {
|
|
27288
|
+
const scopedEvents = scopeEventRegistrationEvents(source);
|
|
27289
|
+
if (scopedEvents.length === 0) {
|
|
27290
|
+
return EVENT_REGISTRATION_GENERIC_SHELL_STEP_LABELS;
|
|
27291
|
+
}
|
|
27292
|
+
const preSelectedEvent = findPreSelectedEvent({
|
|
27293
|
+
scopedEvents,
|
|
27294
|
+
occurrenceContext: source.occurrenceContext
|
|
27295
|
+
});
|
|
27296
|
+
const hasPreSelectedContext = Boolean(source.occurrenceContext || preSelectedEvent);
|
|
27297
|
+
const needsPaymentStep = hasPreSelectedContext && preSelectedEvent ? resolveEventRequiresPayment({
|
|
27298
|
+
eligibility: null,
|
|
27299
|
+
selectedTicketType: null,
|
|
27300
|
+
event: preSelectedEvent
|
|
27301
|
+
}) : false;
|
|
27302
|
+
return getWizardStepsForContext(hasPreSelectedContext, needsPaymentStep).map((step) => shellLabelForRegistrationStep(step, scopedEvents));
|
|
27303
|
+
}
|
|
27304
|
+
function scopeEventRegistrationEvents(source) {
|
|
27305
|
+
const events = toRegistrationEvents(source.events ?? []);
|
|
27306
|
+
if (source.occurrenceContext?.seriesId) {
|
|
27307
|
+
return events.filter((event) => event.seriesId === source.occurrenceContext?.seriesId);
|
|
27308
|
+
}
|
|
27309
|
+
const entrySlug = source.contentEntry?.slug;
|
|
27310
|
+
const entryContentType = source.contentEntry?.contentTypeSlug;
|
|
27311
|
+
if (entrySlug && entryContentType && isEventContentType(entryContentType)) {
|
|
27312
|
+
return events.filter((event) => event.slug === entrySlug);
|
|
27313
|
+
}
|
|
27314
|
+
return events;
|
|
27315
|
+
}
|
|
27316
|
+
function shellLabelForRegistrationStep(step, events) {
|
|
27317
|
+
switch (step) {
|
|
27318
|
+
case "select-event":
|
|
27319
|
+
return isDateSelection(events) ? "Date" : "Event";
|
|
27320
|
+
case "select-tickets":
|
|
27321
|
+
return "Tickets";
|
|
27322
|
+
case "enter-details":
|
|
27323
|
+
return "Details";
|
|
27324
|
+
case "select-payment":
|
|
27325
|
+
return "Payment";
|
|
27326
|
+
case "error":
|
|
27327
|
+
case "success":
|
|
27328
|
+
case "submitting":
|
|
27329
|
+
case "redirecting":
|
|
27330
|
+
case "verifying-payment":
|
|
27331
|
+
case "verifying-timeout":
|
|
27332
|
+
case "payment-failed":
|
|
27333
|
+
return "Details";
|
|
27334
|
+
}
|
|
27335
|
+
}
|
|
27336
|
+
function isDateSelection(events) {
|
|
27337
|
+
const firstSeriesId = events[0]?.seriesId;
|
|
27338
|
+
return Boolean(
|
|
27339
|
+
events.length > 1 && firstSeriesId && events.every((event) => event.seriesId === firstSeriesId)
|
|
27340
|
+
);
|
|
27341
|
+
}
|
|
27342
|
+
function buildEventRegistrationShellBodyText(stepLabels) {
|
|
27343
|
+
if (stepLabels.includes("Payment")) {
|
|
27344
|
+
return "Preparing tickets, details, and payment options.";
|
|
27345
|
+
}
|
|
27346
|
+
if (stepLabels[0] === "Tickets") {
|
|
27347
|
+
return "Preparing tickets and booking details.";
|
|
27348
|
+
}
|
|
27349
|
+
return "Preparing dates, tickets, and booking details.";
|
|
27350
|
+
}
|
|
27236
27351
|
var eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
27237
27352
|
kind: "client-owned",
|
|
27238
27353
|
contracts: {
|
|
@@ -42443,6 +42558,9 @@ var EventListingSSR = (props2) => {
|
|
|
42443
42558
|
] });
|
|
42444
42559
|
};
|
|
42445
42560
|
|
|
42561
|
+
// ../blocks/src/system/runtime/nodes/event-registration/constants.ts
|
|
42562
|
+
var EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
42563
|
+
|
|
42446
42564
|
// ../blocks/src/system/runtime/nodes/event-registration.server.tsx
|
|
42447
42565
|
import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
42448
42566
|
function cx(...classes) {
|
|
@@ -42511,42 +42629,51 @@ function EventRegistrationSSR({
|
|
|
42511
42629
|
function EventRegistrationShell({
|
|
42512
42630
|
display
|
|
42513
42631
|
}) {
|
|
42514
|
-
return /* @__PURE__ */ jsx48(
|
|
42515
|
-
|
|
42516
|
-
|
|
42517
|
-
|
|
42518
|
-
|
|
42519
|
-
|
|
42520
|
-
|
|
42521
|
-
|
|
42522
|
-
|
|
42523
|
-
|
|
42524
|
-
|
|
42525
|
-
|
|
42526
|
-
|
|
42527
|
-
|
|
42528
|
-
|
|
42632
|
+
return /* @__PURE__ */ jsx48(
|
|
42633
|
+
"div",
|
|
42634
|
+
{
|
|
42635
|
+
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
42636
|
+
className: "er-container er-registration-shell",
|
|
42637
|
+
"aria-busy": "true",
|
|
42638
|
+
role: "status",
|
|
42639
|
+
children: /* @__PURE__ */ jsxs34("div", { className: "er-payment-layout er-payment-layout--no-sidebar", children: [
|
|
42640
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-payment-layout-main", children: [
|
|
42641
|
+
/* @__PURE__ */ jsx48("div", { className: "er-steps-nav er-registration-shell__steps", "aria-hidden": "true", children: /* @__PURE__ */ jsx48("ol", { className: "er-steps", children: display.stepLabels.map((label, index) => {
|
|
42642
|
+
const isActive = index === 0;
|
|
42643
|
+
return /* @__PURE__ */ jsxs34("li", { className: "er-step", children: [
|
|
42644
|
+
/* @__PURE__ */ jsx48("span", { className: cx("er-step-circle", isActive && "er-step-circle--active"), children: index + 1 }),
|
|
42645
|
+
/* @__PURE__ */ jsx48("span", { className: cx("er-step-label", isActive && "er-step-label--active"), children: label }),
|
|
42646
|
+
index < display.stepLabels.length - 1 ? /* @__PURE__ */ jsx48("span", { className: "er-step-connector" }) : null
|
|
42647
|
+
] }, label);
|
|
42648
|
+
}) }) }),
|
|
42649
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-stack", children: [
|
|
42650
|
+
/* @__PURE__ */ jsxs34("div", { children: [
|
|
42651
|
+
/* @__PURE__ */ jsx48("p", { className: "er-registration-shell__eyebrow", children: "Registration" }),
|
|
42652
|
+
/* @__PURE__ */ jsx48("h3", { className: "er-title er-registration-shell__title", children: display.titleText }),
|
|
42653
|
+
/* @__PURE__ */ jsx48("p", { className: "er-text er-text--muted er-registration-shell__copy", children: display.bodyText })
|
|
42654
|
+
] }),
|
|
42655
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-event-grid er-registration-shell__cards", "aria-hidden": "true", children: [
|
|
42656
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
42657
|
+
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
42658
|
+
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
42659
|
+
] }),
|
|
42660
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
42661
|
+
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
42662
|
+
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
42663
|
+
] })
|
|
42664
|
+
] })
|
|
42665
|
+
] })
|
|
42529
42666
|
] }),
|
|
42530
|
-
/* @__PURE__ */ jsxs34("div", { className: "er-
|
|
42531
|
-
/* @__PURE__ */ jsxs34("div", { className: "er-
|
|
42532
|
-
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--lg" }),
|
|
42533
|
-
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--sm" })
|
|
42534
|
-
] }),
|
|
42535
|
-
/* @__PURE__ */ jsxs34("div", { className: "er-event-card er-registration-shell__card", children: [
|
|
42667
|
+
/* @__PURE__ */ jsx48("div", { className: "er-payment-layout-footer", children: /* @__PURE__ */ jsxs34("div", { className: "er-summary-bar er-registration-shell__summary", "aria-hidden": "true", children: [
|
|
42668
|
+
/* @__PURE__ */ jsxs34("div", { className: "er-summary-bar-info", children: [
|
|
42536
42669
|
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
42537
42670
|
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
42538
|
-
] })
|
|
42539
|
-
|
|
42671
|
+
] }),
|
|
42672
|
+
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
42673
|
+
] }) })
|
|
42540
42674
|
] })
|
|
42541
|
-
|
|
42542
|
-
|
|
42543
|
-
/* @__PURE__ */ jsxs34("div", { className: "er-summary-bar-info", children: [
|
|
42544
|
-
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--md" }),
|
|
42545
|
-
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__line er-registration-shell__line--xs" })
|
|
42546
|
-
] }),
|
|
42547
|
-
/* @__PURE__ */ jsx48("div", { className: "er-registration-shell__button-placeholder", children: display.summaryButtonText })
|
|
42548
|
-
] }) })
|
|
42549
|
-
] }) });
|
|
42675
|
+
}
|
|
42676
|
+
);
|
|
42550
42677
|
}
|
|
42551
42678
|
var event_registration_server_default = EventRegistrationSSR;
|
|
42552
42679
|
|