@riverbankcms/sdk 0.125.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/{PreviewEditorSidebar-BezDOtQ7.mjs → PreviewEditorSidebar-DcYJxTgc.mjs} +67 -266
- package/dist/{PreviewEditorUI-CgSqmfo2.mjs → PreviewEditorUI-Ctt1yTJr.mjs} +3 -3
- package/dist/{PreviewQueryProvider-BH-3-jSj.mjs → PreviewQueryProvider-DgFDIwvK.mjs} +1 -1
- package/dist/{SdkPreviewModeRuntime-Co3AHfj0.mjs → SdkPreviewModeRuntime-CvW1vdQ4.mjs} +27 -27
- package/dist/{SiteChromeCustomizeContext-BHF-KANn.mjs → SiteChromeCustomizeContext-C87qlKWw.mjs} +412 -1301
- package/dist/_dts/ai/src/contracts/proposals.d.ts +1354 -202
- package/dist/_dts/api/src/common/envelope.d.ts +1 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +0 -2
- package/dist/_dts/api/src/endpoints.d.ts +0 -7
- package/dist/_dts/api/src/sdk-event-upsert.d.ts +42 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +11 -9
- package/dist/_dts/api/src/siteOperations.d.ts +18 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +1 -14
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +15 -2
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +182 -19
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -3
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +1 -2
- package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -12
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -13
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +8 -100
- package/dist/_dts/preview-next/src/client/preview/siteStylePreviewPlanner.d.ts +1 -4
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +1 -15
- package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +11 -21
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +2 -2
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +12 -0
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +6 -0
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +5 -0
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +17 -0
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +5 -10
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +1 -1
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +24 -0
- package/dist/_dts/sdk/src/client/management/http.d.ts +1 -1
- package/dist/_dts/sdk/src/client/management/types.d.ts +3 -28
- package/dist/_dts/sdk/src/config/index.d.ts +1 -1
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +5 -20
- package/dist/_dts/sdk/src/rendering/index.d.ts +1 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/site-commands/src/commandContract.d.ts +33 -5
- package/dist/_dts/site-commands/src/commandDomain.d.ts +2 -2
- package/dist/_dts/site-commands/src/commands.d.ts +38 -9
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +28 -1
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +4 -4
- package/dist/_dts/theme-core/src/palette/concretePalette.d.ts +20 -0
- package/dist/_dts/theme-core/src/palette/curated/index.d.ts +2 -17
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -6
- package/dist/_dts/theme-core/src/palette/schema.d.ts +39 -0
- package/dist/_dts/theme-core/src/schema.d.ts +38 -26
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +4 -6
- package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +5 -6
- package/dist/cli/index.mjs +612 -522
- package/dist/cli/init-docs/content/cli-reference.md +6 -3
- package/dist/cli/init-docs/content/content-management.md +24 -13
- package/dist/client/{DiscountCodeDisclosure-CyPpekBp.mjs → DiscountCodeDisclosure-DS0AuFWW.mjs} +1 -1
- package/dist/client/{EventCombined.client-zywit-60.mjs → EventCombined.client-DtMxLr7q.mjs} +2 -2
- package/dist/client/{EventListing.client-J2nLhkKT.mjs → EventListing.client-BdLSRNg1.mjs} +2 -2
- package/dist/client/{LeafletStaticMap-CSubXWt6.mjs → LeafletStaticMap-BrpC6vsT.mjs} +1 -1
- package/dist/client/{MagicLinkForm-DDLIfiq9.mjs → MagicLinkForm-Bt3IuLMy.mjs} +1 -1
- package/dist/client/{StepIndicator-DE8EvHIp.mjs → StepIndicator-CBYPFVoy.mjs} +2 -2
- package/dist/client/{accordion-Ct5T5NiA.mjs → accordion-BqqwPJWM.mjs} +1 -1
- package/dist/client/{bookingForm-DMxtLPxw.mjs → bookingForm-SneP3yxC.mjs} +5 -6
- package/dist/client/bookings.mjs +190 -24
- package/dist/client/{carousel--FMqgvob.mjs → carousel-BTIR9L3I.mjs} +1 -1
- package/dist/client/{cart-BKX1bWiU.mjs → cart-bqiqd8SX.mjs} +3 -3
- package/dist/client/{checkout-B_jxi4WW.mjs → checkout-WbTFV5v4.mjs} +3 -3
- package/dist/client/client.mjs +156 -220
- package/dist/client/{courseRegistration-DH4MlkRD.mjs → courseRegistration-BcemLAdN.mjs} +6 -7
- package/dist/client/{eventCalendar-BQILwAcL.mjs → eventCalendar-CsxIw0V_.mjs} +4 -4
- package/dist/client/{eventCombined-DFFW_Vmo.mjs → eventCombined-B6XMoHfa.mjs} +2 -2
- package/dist/client/{eventDetails-B045CTSJ.mjs → eventDetails-BJaoPPfo.mjs} +3 -3
- package/dist/client/{eventListing-BDMYNVzS.mjs → eventListing-DgwdYHRT.mjs} +2 -2
- package/dist/client/{eventRegistration-CQ2-BSnB.mjs → eventRegistration-C0O3folu.mjs} +30 -22
- package/dist/client/{form-DJKuyZgN.mjs → form-Bk9txGFt.mjs} +1 -1
- package/dist/client/{headerSection-DeTjfiDo.mjs → headerSection-yIBt0yTv.mjs} +2 -2
- package/dist/client/hooks.mjs +50 -102
- package/dist/client/{locationMap-i2wDA8gB.mjs → locationMap-C-3KIpv-.mjs} +2 -2
- package/dist/client/{newsletterForm-DKiueauk.mjs → newsletterForm-CzB8g8h2.mjs} +1 -1
- package/dist/client/{pricing-C01J3Epx.mjs → pricing-C1QeDes_.mjs} +1 -1
- package/dist/client/{productDetail-Dfc1sZaX.mjs → productDetail-w7SBp5uc.mjs} +3 -3
- package/dist/client/{productList-BXbvXWTF.mjs → productList-D0tGKHGf.mjs} +3 -3
- package/dist/client/{propsDecoder-CIR5DQ1l.mjs → propsDecoder-Bcin2DB3.mjs} +167 -11
- package/dist/client/rendering/client.mjs +219 -276
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +128 -185
- package/dist/client/{useDiscountCodeUi-Bcyh4508.mjs → scrollToBlock-h-o_STf_.mjs} +18 -2
- package/dist/client/{shop-BbNwPKM-.mjs → shop-BGzmL8O_.mjs} +5 -6
- package/dist/client/{shop-commerce-XO-XMFEt.mjs → shop-commerce-lX8QxjX-.mjs} +4 -4
- package/dist/client/{shop-commerce-store-Byh6OUGK.mjs → shop-commerce-store-CEurARtu.mjs} +1 -1
- package/dist/client/{shopShared-Bbq39mwr.mjs → shopShared-DXxH8xxw.mjs} +2 -2
- package/dist/client/{useEventFilters-C8OOJ3el.mjs → useEventFilters-B591g9vd.mjs} +2 -2
- package/dist/client/{usePolling-CyJVo9kF.mjs → usePolling-BvnChV4m.mjs} +2 -2
- package/dist/preview-next/before-render.mjs +0 -7
- package/dist/preview-next/client/runtime.mjs +4 -4
- package/dist/preview-next/middleware.mjs +0 -7
- package/dist/{previewAuthStore-CJX21dGi.mjs → previewAuthStore-Dev9CdG9.mjs} +0 -7
- package/dist/{sdk-runtime-BGhyuE-E.mjs → sdk-runtime-M__i3Jce.mjs} +2 -2
- package/dist/{separator-BFs-Kmv5.mjs → separator-VSlnI9bc.mjs} +1 -1
- package/dist/server/components.mjs +87 -139
- package/dist/server/config-validation.mjs +50 -102
- package/dist/server/config.mjs +50 -102
- package/dist/server/data.mjs +50 -102
- package/dist/server/index.mjs +1 -8
- package/dist/server/next.mjs +91 -150
- package/dist/server/page-converter.mjs +50 -102
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +50 -102
- package/dist/server/rendering.mjs +88 -140
- package/dist/server/routing.mjs +71 -147
- package/dist/server/server.mjs +51 -110
- package/dist/server/theme-bridge.mjs +172 -162
- package/dist/server/theme.mjs +167 -11
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/palette/editorState.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/libraryModel.d.ts +0 -64
- package/dist/_dts/theme-core/src/palette/persistenceReadSource.d.ts +0 -81
- package/dist/_dts/theme-core/src/palette/resolveSelection.d.ts +0 -75
- package/dist/_dts/theme-core/src/palette/selection.d.ts +0 -74
- package/dist/_dts/theme-core/src/palette/sitePalettePersistence.d.ts +0 -34
- package/dist/client/scrollToBlock-C86BYkyV.mjs +0 -17
|
@@ -236,7 +236,7 @@ var init_demo_runtime = __esmMin((() => {}));
|
|
|
236
236
|
var init_collections = __esmMin((() => {}));
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region ../core/src/assert-never.ts
|
|
239
|
-
function assertNever$
|
|
239
|
+
function assertNever$20(value, message = "Unexpected variant") {
|
|
240
240
|
throw new Error(`${message}: ${String(value)}`);
|
|
241
241
|
}
|
|
242
242
|
var init_assert_never = __esmMin((() => {}));
|
|
@@ -348,7 +348,7 @@ function formatCoursePriceDisplayLabel(display, options) {
|
|
|
348
348
|
case "exact": return `Course (${formatCurrencyAmount(display.amount, display.currency, options)})`;
|
|
349
349
|
case "from": return `Course (From ${formatCurrencyAmount(display.amount, display.currency, options)})`;
|
|
350
350
|
case "range": return `Course (${formatCurrencyAmount(display.minAmount, display.currency, options)} - ${formatCurrencyAmount(display.maxAmount, display.currency, options)})`;
|
|
351
|
-
default: return assertNever$
|
|
351
|
+
default: return assertNever$20(display);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
@@ -368,7 +368,7 @@ function formatBookingPriceDisplay(display, options = {}) {
|
|
|
368
368
|
case "unavailable": return "Pricing unavailable";
|
|
369
369
|
case "external": return display.label;
|
|
370
370
|
case "course": return formatCoursePriceDisplayLabel(display.display, options);
|
|
371
|
-
default: return assertNever$
|
|
371
|
+
default: return assertNever$20(display);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
/** Render an event's price directly from its pricing value. */
|
|
@@ -447,10 +447,10 @@ function resolveFlexibleBalanceDueAt(input) {
|
|
|
447
447
|
switch (input.dueDateRule.kind) {
|
|
448
448
|
case "relative_to_start_date": return subtractDaysFromIso(input.bookingStartAt, input.dueDateRule.daysBeforeStart);
|
|
449
449
|
case "fixed_calendar_date": return input.dueDateRule.dueAt;
|
|
450
|
-
default: return assertNever$
|
|
450
|
+
default: return assertNever$19(input.dueDateRule);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function assertNever$
|
|
453
|
+
function assertNever$19(value) {
|
|
454
454
|
throw new Error(`Unexpected value: ${String(value)}`);
|
|
455
455
|
}
|
|
456
456
|
var init_booking_flexible_balance = __esmMin((() => {
|
|
@@ -464,7 +464,7 @@ function isDepositBearingBookingInstalmentPlan(plan) {
|
|
|
464
464
|
case "deposit_plus_one_remainder":
|
|
465
465
|
case "deposit_plus_scheduled_instalments": return true;
|
|
466
466
|
case "equal_scheduled_instalments": return false;
|
|
467
|
-
default: return assertNever$
|
|
467
|
+
default: return assertNever$18(plan);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
function getBookingInstalmentDepositRefundability(plan) {
|
|
@@ -490,7 +490,7 @@ function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit
|
|
|
490
490
|
date.setUTCDate(date.getUTCDate() + intervalCount * 7);
|
|
491
491
|
return date.toISOString();
|
|
492
492
|
case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
|
|
493
|
-
default: return assertNever$
|
|
493
|
+
default: return assertNever$18(intervalUnit);
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
function getBookingInstalmentPlanIntervalCount(plan) {
|
|
@@ -498,7 +498,7 @@ function getBookingInstalmentPlanIntervalCount(plan) {
|
|
|
498
498
|
case "deposit_plus_one_remainder": return plan.remainderDueCount;
|
|
499
499
|
case "deposit_plus_scheduled_instalments":
|
|
500
500
|
case "equal_scheduled_instalments": return plan.intervalCount;
|
|
501
|
-
default: return assertNever$
|
|
501
|
+
default: return assertNever$18(plan);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
function omitZeroAmountFutureRows(rows) {
|
|
@@ -514,7 +514,7 @@ function addMonthsPreservingAnchorDay(date, intervalCount) {
|
|
|
514
514
|
nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
|
|
515
515
|
return nextMonth;
|
|
516
516
|
}
|
|
517
|
-
function assertNever$
|
|
517
|
+
function assertNever$18(value) {
|
|
518
518
|
throw new Error(`Unexpected value: ${String(value)}`);
|
|
519
519
|
}
|
|
520
520
|
var init_booking_instalments = __esmMin((() => {}));
|
|
@@ -2561,7 +2561,7 @@ var init_schemas = __esmMin((() => {
|
|
|
2561
2561
|
//#endregion
|
|
2562
2562
|
//#region ../blocks/src/system/node/schema.ts
|
|
2563
2563
|
var transformStepSchema, bindingPathSchema, bindingSchema, repeatSchema, conditionalAuthoringPresenceSchema, conditionSchema, dataScopeSchema, nodePropsSchema, nodeSchema, nodeTreeSchema, NodeSchema, NodeTreeSchema;
|
|
2564
|
-
var init_schema$
|
|
2564
|
+
var init_schema$3 = __esmMin((() => {
|
|
2565
2565
|
transformStepSchema = z$1.object({
|
|
2566
2566
|
id: z$1.string().min(1, "Transform requires an identifier"),
|
|
2567
2567
|
options: z$1.record(z$1.string(), z$1.unknown()).optional()
|
|
@@ -2777,7 +2777,7 @@ function devValidate(node) {
|
|
|
2777
2777
|
}
|
|
2778
2778
|
var section$1, headerSection, stack, inline, accordion, accordionItem, carousel, text, richText, icon, media, fileDownload, videoEmbed, spinner, button, link, form, bookingForm, eventRegistration, shop, productList, productDetail, cart, checkout$1, gifting, courseRegistration;
|
|
2779
2779
|
var init_builder$2 = __esmMin((() => {
|
|
2780
|
-
init_schema$
|
|
2780
|
+
init_schema$3();
|
|
2781
2781
|
init_types$15();
|
|
2782
2782
|
init_env();
|
|
2783
2783
|
section$1 = (props, children, ...mods) => el("section", props, children, ...mods);
|
|
@@ -4161,7 +4161,7 @@ function asDesignSystemTemplateId(value) {
|
|
|
4161
4161
|
function makeBoundaryId(previousBlockId, nextBlockId) {
|
|
4162
4162
|
return asDesignBoundaryId(`boundary:${encodeURIComponent(previousBlockId)}:${encodeURIComponent(nextBlockId)}`);
|
|
4163
4163
|
}
|
|
4164
|
-
function assertNever$
|
|
4164
|
+
function assertNever$12(value, message = "Unhandled Theme V2 variant") {
|
|
4165
4165
|
throw new Error(`${message}: ${String(value)}`);
|
|
4166
4166
|
}
|
|
4167
4167
|
function brandNonEmptyString(value, label) {
|
|
@@ -6710,6 +6710,12 @@ function requirePaletteColorsFromEntries(entries) {
|
|
|
6710
6710
|
if (result.ok) return result.colors;
|
|
6711
6711
|
throw new Error(`Invalid complete palette: ${result.error.kind}`);
|
|
6712
6712
|
}
|
|
6713
|
+
function paletteColorEntries(colors) {
|
|
6714
|
+
return THEME_PALETTE_COLOR_ORDER.map((name) => ({
|
|
6715
|
+
name,
|
|
6716
|
+
hex: colors[name]
|
|
6717
|
+
}));
|
|
6718
|
+
}
|
|
6713
6719
|
function paletteColorFingerprint(colors) {
|
|
6714
6720
|
return PALETTE_TOKEN_NAMES.map((name) => `${name}:${colors[name]}`).join("|");
|
|
6715
6721
|
}
|
|
@@ -6742,11 +6748,26 @@ function parsePaletteValueKey(value) {
|
|
|
6742
6748
|
if (!colors.ok || paletteValueKey(colors.colors, mode.data) !== value) return null;
|
|
6743
6749
|
return value;
|
|
6744
6750
|
}
|
|
6745
|
-
var HEX_COLOR_REGEX, NORMALIZABLE_HEX_REGEX, hexColorSchema, paletteModeSchema, PALETTE_VALUE_KEY_PREFIX, paletteColorsSchema, paletteValueKeySchema;
|
|
6751
|
+
var HEX_COLOR_REGEX, NORMALIZABLE_HEX_REGEX, THEME_PALETTE_COLOR_ORDER, hexColorSchema, paletteModeSchema, PALETTE_VALUE_KEY_PREFIX, paletteColorsSchema, paletteValueKeySchema;
|
|
6746
6752
|
var init_colors = __esmMin((() => {
|
|
6747
6753
|
init_themeColorTokens();
|
|
6748
6754
|
HEX_COLOR_REGEX = /^#[0-9a-f]{6}$/;
|
|
6749
6755
|
NORMALIZABLE_HEX_REGEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
6756
|
+
THEME_PALETTE_COLOR_ORDER = [
|
|
6757
|
+
"primary",
|
|
6758
|
+
"secondary",
|
|
6759
|
+
"accent",
|
|
6760
|
+
"success",
|
|
6761
|
+
"warning",
|
|
6762
|
+
"destructive",
|
|
6763
|
+
"background",
|
|
6764
|
+
"surface",
|
|
6765
|
+
"surfaceAlt",
|
|
6766
|
+
"muted",
|
|
6767
|
+
"text",
|
|
6768
|
+
"primaryForeground",
|
|
6769
|
+
"border"
|
|
6770
|
+
];
|
|
6750
6771
|
hexColorSchema = z$1.string().regex(HEX_COLOR_REGEX, "Hex must be #RRGGBB (lowercase)").transform((value) => value);
|
|
6751
6772
|
paletteModeSchema = z$1.enum(["light", "dark"]);
|
|
6752
6773
|
PALETTE_VALUE_KEY_PREFIX = "palette-value:v1|";
|
|
@@ -6776,8 +6797,12 @@ var init_colors = __esmMin((() => {
|
|
|
6776
6797
|
return z$1.NEVER;
|
|
6777
6798
|
});
|
|
6778
6799
|
}));
|
|
6779
|
-
var
|
|
6780
|
-
|
|
6800
|
+
var init_concretePalette = __esmMin((() => {
|
|
6801
|
+
init_colors();
|
|
6802
|
+
}));
|
|
6803
|
+
var init_fromVibrant = __esmMin((() => {
|
|
6804
|
+
init_utils$6();
|
|
6805
|
+
}));
|
|
6781
6806
|
//#endregion
|
|
6782
6807
|
//#region ../theme-core/src/site-styles/styleTags.ts
|
|
6783
6808
|
var STYLE_AXIS_VALUES, styleTagsSchema;
|
|
@@ -8067,22 +8092,12 @@ var init_warm_dark = __esmMin((() => {
|
|
|
8067
8092
|
}));
|
|
8068
8093
|
//#endregion
|
|
8069
8094
|
//#region ../theme-core/src/palette/curated/index.ts
|
|
8070
|
-
/**
|
|
8071
|
-
* Curated palette library.
|
|
8072
|
-
*
|
|
8073
|
-
* Authoring keys are readable source aliases. Value keys are derived from the
|
|
8074
|
-
* complete mode and semantic colours and are the only curated identity used at
|
|
8075
|
-
* persistence and runtime boundaries.
|
|
8076
|
-
*/
|
|
8077
8095
|
function admitCuratedPaletteDefinition(definition) {
|
|
8078
8096
|
return {
|
|
8079
8097
|
...definition,
|
|
8080
8098
|
valueKey: definition.valueKey
|
|
8081
8099
|
};
|
|
8082
8100
|
}
|
|
8083
|
-
function findCuratedPalette(valueKey) {
|
|
8084
|
-
return curatedPalettesByValueKey.get(valueKey);
|
|
8085
|
-
}
|
|
8086
8101
|
function findCuratedPaletteByAuthoringKey(authoringKey) {
|
|
8087
8102
|
return curatedPalettesByAuthoringKey.get(authoringKey);
|
|
8088
8103
|
}
|
|
@@ -8091,9 +8106,8 @@ function requireCuratedPaletteValueKey(authoringKey) {
|
|
|
8091
8106
|
if (!palette) throw new Error(`Unknown curated palette authoring key "${authoringKey}"`);
|
|
8092
8107
|
return palette.valueKey;
|
|
8093
8108
|
}
|
|
8094
|
-
var curatedPalettes,
|
|
8109
|
+
var curatedPalettes, curatedPalettesByAuthoringKey;
|
|
8095
8110
|
var init_curated = __esmMin((() => {
|
|
8096
|
-
init_colors();
|
|
8097
8111
|
init_brand_led();
|
|
8098
8112
|
init_high_contrast();
|
|
8099
8113
|
init_soft_natural();
|
|
@@ -8120,107 +8134,8 @@ var init_curated = __esmMin((() => {
|
|
|
8120
8134
|
admitCuratedPaletteDefinition(warmDarkEmber),
|
|
8121
8135
|
admitCuratedPaletteDefinition(warmDarkKirtanGold)
|
|
8122
8136
|
];
|
|
8123
|
-
|
|
8137
|
+
new Map(curatedPalettes.map((palette) => [palette.valueKey, palette]));
|
|
8124
8138
|
curatedPalettesByAuthoringKey = new Map(curatedPalettes.map((palette) => [palette.authoringKey, palette]));
|
|
8125
|
-
knownCuratedPaletteValueKeySchema = z$1.string().transform((value, ctx) => {
|
|
8126
|
-
const valueKey = parsePaletteValueKey(value);
|
|
8127
|
-
if (!valueKey) {
|
|
8128
|
-
ctx.addIssue({
|
|
8129
|
-
code: "custom",
|
|
8130
|
-
message: "Invalid canonical palette value key"
|
|
8131
|
-
});
|
|
8132
|
-
return z$1.NEVER;
|
|
8133
|
-
}
|
|
8134
|
-
const palette = findCuratedPalette(valueKey);
|
|
8135
|
-
if (!palette) {
|
|
8136
|
-
ctx.addIssue({
|
|
8137
|
-
code: "custom",
|
|
8138
|
-
message: "Unknown curated palette value key"
|
|
8139
|
-
});
|
|
8140
|
-
return z$1.NEVER;
|
|
8141
|
-
}
|
|
8142
|
-
return palette.valueKey;
|
|
8143
|
-
});
|
|
8144
|
-
}));
|
|
8145
|
-
var init_resolveSelection = __esmMin((() => {
|
|
8146
|
-
init_curated();
|
|
8147
|
-
})), sitePaletteIdSchema, sitePaletteVersionSchema, paletteSelectionSchema, onboardingPaletteOriginSchema, curatedForkPaletteOriginSchema, manualPaletteOriginSchema, legacyCustomizedPaletteOriginSchema, sitePaletteOriginSchema, editorSitePaletteOriginSchema;
|
|
8148
|
-
var init_selection$1 = __esmMin((() => {
|
|
8149
|
-
init_colors();
|
|
8150
|
-
init_curated();
|
|
8151
|
-
sitePaletteIdSchema = z$1.string().uuid().transform((value) => value);
|
|
8152
|
-
sitePaletteVersionSchema = z$1.number().int().nonnegative().transform((value) => value);
|
|
8153
|
-
paletteSelectionSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
8154
|
-
kind: z$1.literal("curated"),
|
|
8155
|
-
valueKey: knownCuratedPaletteValueKeySchema
|
|
8156
|
-
}), z$1.object({
|
|
8157
|
-
kind: z$1.literal("site"),
|
|
8158
|
-
paletteId: sitePaletteIdSchema
|
|
8159
|
-
})]);
|
|
8160
|
-
onboardingPaletteOriginSchema = z$1.object({
|
|
8161
|
-
kind: z$1.literal("onboarding"),
|
|
8162
|
-
sourceKey: z$1.string().min(1).nullable()
|
|
8163
|
-
});
|
|
8164
|
-
curatedForkPaletteOriginSchema = z$1.object({
|
|
8165
|
-
kind: z$1.literal("curated-fork"),
|
|
8166
|
-
sourceValueKey: paletteValueKeySchema
|
|
8167
|
-
});
|
|
8168
|
-
manualPaletteOriginSchema = z$1.object({ kind: z$1.literal("manual") });
|
|
8169
|
-
legacyCustomizedPaletteOriginSchema = z$1.object({
|
|
8170
|
-
kind: z$1.literal("legacy-customized"),
|
|
8171
|
-
sourceKey: z$1.string().min(1).nullable()
|
|
8172
|
-
});
|
|
8173
|
-
sitePaletteOriginSchema = z$1.discriminatedUnion("kind", [
|
|
8174
|
-
onboardingPaletteOriginSchema,
|
|
8175
|
-
curatedForkPaletteOriginSchema,
|
|
8176
|
-
manualPaletteOriginSchema,
|
|
8177
|
-
legacyCustomizedPaletteOriginSchema
|
|
8178
|
-
]);
|
|
8179
|
-
editorSitePaletteOriginSchema = z$1.discriminatedUnion("kind", [z$1.object({
|
|
8180
|
-
kind: z$1.literal("curated-fork"),
|
|
8181
|
-
sourceValueKey: knownCuratedPaletteValueKeySchema
|
|
8182
|
-
}), manualPaletteOriginSchema]);
|
|
8183
|
-
z$1.object({
|
|
8184
|
-
id: sitePaletteIdSchema,
|
|
8185
|
-
colors: paletteColorsSchema,
|
|
8186
|
-
mode: paletteModeSchema,
|
|
8187
|
-
origin: sitePaletteOriginSchema,
|
|
8188
|
-
version: sitePaletteVersionSchema
|
|
8189
|
-
});
|
|
8190
|
-
z$1.discriminatedUnion("kind", [
|
|
8191
|
-
z$1.object({ kind: z$1.literal("preserve") }),
|
|
8192
|
-
z$1.object({
|
|
8193
|
-
kind: z$1.literal("select"),
|
|
8194
|
-
selection: paletteSelectionSchema
|
|
8195
|
-
}),
|
|
8196
|
-
z$1.object({
|
|
8197
|
-
kind: z$1.literal("create-site"),
|
|
8198
|
-
colors: paletteColorsSchema,
|
|
8199
|
-
mode: paletteModeSchema,
|
|
8200
|
-
origin: editorSitePaletteOriginSchema
|
|
8201
|
-
}),
|
|
8202
|
-
z$1.object({
|
|
8203
|
-
kind: z$1.literal("update-site"),
|
|
8204
|
-
paletteId: sitePaletteIdSchema,
|
|
8205
|
-
expectedVersion: sitePaletteVersionSchema,
|
|
8206
|
-
colors: paletteColorsSchema,
|
|
8207
|
-
mode: paletteModeSchema
|
|
8208
|
-
})
|
|
8209
|
-
]);
|
|
8210
|
-
}));
|
|
8211
|
-
var init_persistenceReadSource = __esmMin((() => {
|
|
8212
|
-
init_curated();
|
|
8213
|
-
init_colors();
|
|
8214
|
-
init_resolveSelection();
|
|
8215
|
-
init_selection$1();
|
|
8216
|
-
}));
|
|
8217
|
-
var init_sitePalettePersistence = __esmMin((() => {
|
|
8218
|
-
init_curated();
|
|
8219
|
-
init_colors();
|
|
8220
|
-
init_selection$1();
|
|
8221
|
-
}));
|
|
8222
|
-
var init_fromVibrant = __esmMin((() => {
|
|
8223
|
-
init_utils$6();
|
|
8224
8139
|
}));
|
|
8225
8140
|
//#endregion
|
|
8226
8141
|
//#region ../theme-core/src/palette/index.ts
|
|
@@ -8236,12 +8151,7 @@ var init_palette$1 = __esmMin((() => {
|
|
|
8236
8151
|
init_paletteAccess();
|
|
8237
8152
|
init_extractPalette();
|
|
8238
8153
|
init_colors();
|
|
8239
|
-
|
|
8240
|
-
init_libraryModel();
|
|
8241
|
-
init_persistenceReadSource();
|
|
8242
|
-
init_resolveSelection();
|
|
8243
|
-
init_selection$1();
|
|
8244
|
-
init_sitePalettePersistence();
|
|
8154
|
+
init_concretePalette();
|
|
8245
8155
|
init_fromVibrant();
|
|
8246
8156
|
init_suggestRecipes();
|
|
8247
8157
|
init_allRecipes();
|
|
@@ -8640,7 +8550,7 @@ function applyNavTypography(style, typography) {
|
|
|
8640
8550
|
textSize: "sm",
|
|
8641
8551
|
letterSpacing: "wider"
|
|
8642
8552
|
};
|
|
8643
|
-
default: return assertNever$
|
|
8553
|
+
default: return assertNever$12(typography, "Unhandled header nav typography");
|
|
8644
8554
|
}
|
|
8645
8555
|
}
|
|
8646
8556
|
function underlineNavLinkStyle(colorToken, underlineColorToken, typography = "plain") {
|
|
@@ -8669,7 +8579,7 @@ function themedHeaderShadow(theme) {
|
|
|
8669
8579
|
case "low": return { elevation: "sm" };
|
|
8670
8580
|
case "medium": return { elevation: "md" };
|
|
8671
8581
|
case "high": return { elevation: "lg" };
|
|
8672
|
-
default: return assertNever$
|
|
8582
|
+
default: return assertNever$12(theme.shadow.elevation, "Unhandled theme shadow elevation");
|
|
8673
8583
|
}
|
|
8674
8584
|
}
|
|
8675
8585
|
function solidBrandHeader(theme) {
|
|
@@ -13008,6 +12918,38 @@ var init_media$1 = __esmMin((() => {
|
|
|
13008
12918
|
});
|
|
13009
12919
|
}));
|
|
13010
12920
|
//#endregion
|
|
12921
|
+
//#region ../theme-core/src/palette/schema.ts
|
|
12922
|
+
var colourHexString, paletteColorSchema, paletteMetaSchema, paletteSchema;
|
|
12923
|
+
var init_schema$2 = __esmMin((() => {
|
|
12924
|
+
init_colors();
|
|
12925
|
+
colourHexString = z$1.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
12926
|
+
paletteColorSchema = z$1.object({
|
|
12927
|
+
name: z$1.string().min(1),
|
|
12928
|
+
hex: colourHexString
|
|
12929
|
+
});
|
|
12930
|
+
paletteMetaSchema = z$1.object({ mode: z$1.enum(["light", "dark"]) });
|
|
12931
|
+
paletteSchema = z$1.object({
|
|
12932
|
+
colors: z$1.array(paletteColorSchema),
|
|
12933
|
+
meta: paletteMetaSchema
|
|
12934
|
+
}).transform((palette, ctx) => {
|
|
12935
|
+
const colors = paletteColorsFromEntries(palette.colors);
|
|
12936
|
+
if (!colors.ok) {
|
|
12937
|
+
ctx.addIssue({
|
|
12938
|
+
code: "custom",
|
|
12939
|
+
message: `Invalid complete palette: ${colors.error.kind}`
|
|
12940
|
+
});
|
|
12941
|
+
return z$1.NEVER;
|
|
12942
|
+
}
|
|
12943
|
+
return {
|
|
12944
|
+
colors: paletteColorEntries(colors.colors).map(({ name, hex }) => ({
|
|
12945
|
+
name: String(name),
|
|
12946
|
+
hex: String(hex)
|
|
12947
|
+
})),
|
|
12948
|
+
meta: palette.meta
|
|
12949
|
+
};
|
|
12950
|
+
});
|
|
12951
|
+
}));
|
|
12952
|
+
//#endregion
|
|
13011
12953
|
//#region ../theme-core/src/buttons/constants.ts
|
|
13012
12954
|
/**
|
|
13013
12955
|
* Generate shadow CSS value dynamically based on elevation, softness, and position
|
|
@@ -16822,9 +16764,10 @@ function normaliseHeaderNavFontRole(header) {
|
|
|
16822
16764
|
navFontRole: navTypography
|
|
16823
16765
|
} : rest;
|
|
16824
16766
|
}
|
|
16825
|
-
var axesSchema,
|
|
16767
|
+
var axesSchema, typographyStyleSchema, bodyTypographyStyleSchema, headingSizeSchema, headingTypographyOverridesSchema, headingTypographyStyleSchema, proseLinkUnderlineStyleSchema, proseLinkUnderlineThicknessSchema, proseLinkUnderlineOffsetSchema, proseLinkStyleSchema, semanticSpacingSchema, boxRoundedSchema, boxBackgroundOverlaySchema, boxBackgroundSchema, noHeadingDecorationSchema, visibleHeadingDecorationSchema, headingDecorationSchema, headingDecorationOverrideSchema, accordionIconTreatmentSchema, sectionStylesOverrideSchema, containerStylesOverrideSchema, cardBorderOverrideSchema, cardStylesOverrideSchema, blockStyleOverridesSchema, blockThemeOverrideSchema, typographyScaleSchema, eyebrowTypographyStyleSchema, typographySchema, spaceSchema, corners, shadow, border, motion, inputStyle, headerVariant, headerPositioning, headerNavStyle, navFontWeight, headerMaxWidth, headerBarFrame, headerContainerSchema, headerBorderSchema, logoStyleSchema, headerLogoTextSchema, navEffectsSchema, dropdownStyleSchema, headerCtaGapSchema, headerCtaTreatmentSchema, navContainerSchema, headerBackgroundSchema, headerSchema, footerVariant, footerMaxWidth, footerMode, footerNavLayoutMode, footerNavLayoutAlign, footerSpacing, footerLogoPlacement, footerLogoSize, footerLogoMaxHeight, footerBottomTextLinkStyleSchema, footerBottomBarSchema, footerNavLayoutSchema, footerLogoSchema, footerSchema, containerPaddingPresetSchema, layoutSchema, heroTypographySizeSchema, heroTypographyLineHeightSchema, heroResponsiveTypographySchema, heroTypographySchema, heroSchema, bodyTextIntroTypographySizeSchema, bodyTextSchema, gradientsSchema, testimonialQuoteTreatmentSchema, themeSchema;
|
|
16826
16768
|
var init_schema$1 = __esmMin((() => {
|
|
16827
16769
|
init_media$1();
|
|
16770
|
+
init_schema$2();
|
|
16828
16771
|
init_buttons();
|
|
16829
16772
|
init_cards();
|
|
16830
16773
|
init_types$8();
|
|
@@ -16867,16 +16810,6 @@ var init_schema$1 = __esmMin((() => {
|
|
|
16867
16810
|
"expressive"
|
|
16868
16811
|
])
|
|
16869
16812
|
});
|
|
16870
|
-
colourHexString = z$1.string().regex(/^#([0-9A-Fa-f]{3}){1,2}$/);
|
|
16871
|
-
paletteColorSchema = z$1.object({
|
|
16872
|
-
name: z$1.string().min(1),
|
|
16873
|
-
hex: colourHexString
|
|
16874
|
-
});
|
|
16875
|
-
paletteMetaSchema = z$1.object({ mode: z$1.enum(["light", "dark"]) });
|
|
16876
|
-
paletteSchema = z$1.object({
|
|
16877
|
-
colors: z$1.array(paletteColorSchema),
|
|
16878
|
-
meta: paletteMetaSchema
|
|
16879
|
-
});
|
|
16880
16813
|
typographyStyleSchema = z$1.object({
|
|
16881
16814
|
family: z$1.string().min(1),
|
|
16882
16815
|
weight: z$1.enum([
|
|
@@ -17869,7 +17802,6 @@ var init_runtimeCompiler = __esmMin((() => {
|
|
|
17869
17802
|
init_modern_minimal();
|
|
17870
17803
|
init_expandPalette();
|
|
17871
17804
|
init_styles();
|
|
17872
|
-
init_colors();
|
|
17873
17805
|
init_designState();
|
|
17874
17806
|
init_types$14();
|
|
17875
17807
|
init_accessibleSurfaces();
|
|
@@ -19735,7 +19667,7 @@ var init_siteStyleThemeCompiler = __esmMin((() => {
|
|
|
19735
19667
|
init_curatedSiteStyles();
|
|
19736
19668
|
init_runtimeCompiler();
|
|
19737
19669
|
init_curated();
|
|
19738
|
-
|
|
19670
|
+
init_concretePalette();
|
|
19739
19671
|
}));
|
|
19740
19672
|
var init_previewCustomization = __esmMin((() => {
|
|
19741
19673
|
init_types$14();
|
|
@@ -19745,7 +19677,7 @@ var init_previewCompiler = __esmMin((() => {
|
|
|
19745
19677
|
init_onColor();
|
|
19746
19678
|
init_tokens();
|
|
19747
19679
|
init_curated();
|
|
19748
|
-
|
|
19680
|
+
init_concretePalette();
|
|
19749
19681
|
init_curatedSiteStyles();
|
|
19750
19682
|
init_resolver();
|
|
19751
19683
|
init_types$14();
|
|
@@ -21339,7 +21271,7 @@ var init_validation_constants = __esmMin((() => {
|
|
|
21339
21271
|
//#endregion
|
|
21340
21272
|
//#region ../blocks/src/system/node/index.ts
|
|
21341
21273
|
var init_node = __esmMin((() => {
|
|
21342
|
-
init_schema$
|
|
21274
|
+
init_schema$3();
|
|
21343
21275
|
init_typeBasedLayout();
|
|
21344
21276
|
init_validation_constants();
|
|
21345
21277
|
}));
|
|
@@ -101585,17 +101517,28 @@ var init_usePaymentVerification = __esmMin((() => {
|
|
|
101585
101517
|
paymentVerificationDeps = { useBlockApi };
|
|
101586
101518
|
}));
|
|
101587
101519
|
//#endregion
|
|
101520
|
+
//#region ../blocks/src/system/runtime/nodes/event-registration/constants.ts
|
|
101521
|
+
var EVENT_REGISTRATION_ANCHOR_ID;
|
|
101522
|
+
var init_constants = __esmMin((() => {
|
|
101523
|
+
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
101524
|
+
}));
|
|
101525
|
+
//#endregion
|
|
101588
101526
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.ts
|
|
101589
101527
|
function useEventRegistrationStripeReturn(options) {
|
|
101528
|
+
return useEventRegistrationStripeReturnWithDeps(options, eventRegistrationStripeReturnDeps);
|
|
101529
|
+
}
|
|
101530
|
+
function useEventRegistrationStripeReturnWithDeps(options, deps) {
|
|
101590
101531
|
const { api, events, occurrenceId, pendingAttendeeId, setErrorMessage, setFormData, setPaymentSelection, setPendingAttendeeId, setRegistrationResult, setSelectedEvent, setSelectedAttendanceMode, setTicketSelections, setStep, setTicketsCount, step } = options;
|
|
101591
|
-
const
|
|
101532
|
+
const verificationConfig = useMemo(() => step === "verifying-payment" && pendingAttendeeId ? { transactionId: pendingAttendeeId } : null, [step, pendingAttendeeId]);
|
|
101533
|
+
const verification = deps.usePaymentVerification(verificationConfig);
|
|
101592
101534
|
useEffect(() => {
|
|
101593
|
-
cleanupStaleRegistrations();
|
|
101594
|
-
const registrationStatus = consumeSearchParam("registration");
|
|
101595
|
-
if (
|
|
101535
|
+
deps.cleanupStaleRegistrations();
|
|
101536
|
+
const registrationStatus = deps.consumeSearchParam("registration");
|
|
101537
|
+
if (registrationStatus !== "cancelled" && registrationStatus !== "success") return;
|
|
101538
|
+
deps.scrollToBlock(EVENT_REGISTRATION_ANCHOR_ID);
|
|
101596
101539
|
const siteId = api.config.siteId;
|
|
101597
101540
|
if (!siteId) return;
|
|
101598
|
-
const pending = getPendingRegistration(siteId, occurrenceId || void 0);
|
|
101541
|
+
const pending = deps.getPendingRegistration(siteId, occurrenceId || void 0);
|
|
101599
101542
|
if (!pending) return;
|
|
101600
101543
|
setFormData(pending.formData);
|
|
101601
101544
|
setTicketSelections(pending.ticketSelections);
|
|
@@ -101615,7 +101558,7 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
101615
101558
|
useEffect(() => {
|
|
101616
101559
|
if (verification.status === "completed") {
|
|
101617
101560
|
const siteId = api.config.siteId;
|
|
101618
|
-
if (siteId && occurrenceId) clearPendingRegistration(siteId, occurrenceId);
|
|
101561
|
+
if (siteId && occurrenceId) deps.clearPendingRegistration(siteId, occurrenceId);
|
|
101619
101562
|
setRegistrationResult({ status: "confirmed" });
|
|
101620
101563
|
setStep("success");
|
|
101621
101564
|
} else if (verification.status === "failed") {
|
|
@@ -101635,11 +101578,21 @@ function useEventRegistrationStripeReturn(options) {
|
|
|
101635
101578
|
]);
|
|
101636
101579
|
return verification;
|
|
101637
101580
|
}
|
|
101581
|
+
var eventRegistrationStripeReturnDeps;
|
|
101638
101582
|
var init_useEventRegistrationStripeReturn = __esmMin((() => {
|
|
101639
101583
|
init_usePaymentVerification();
|
|
101640
101584
|
init_shared$1();
|
|
101585
|
+
init_constants();
|
|
101641
101586
|
init_sessionStorage();
|
|
101642
101587
|
init_ticketSelectionLines();
|
|
101588
|
+
eventRegistrationStripeReturnDeps = {
|
|
101589
|
+
usePaymentVerification,
|
|
101590
|
+
consumeSearchParam,
|
|
101591
|
+
scrollToBlock,
|
|
101592
|
+
cleanupStaleRegistrations,
|
|
101593
|
+
clearPendingRegistration,
|
|
101594
|
+
getPendingRegistration
|
|
101595
|
+
};
|
|
101643
101596
|
}));
|
|
101644
101597
|
//#endregion
|
|
101645
101598
|
//#region ../blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.ts
|
|
@@ -101731,13 +101684,7 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
101731
101684
|
if (!result.alreadyRegistered && result.status === "confirmed" && result.pendingPayment && (method === "stripe" || method === "pass_bundle" || method === "membership_bundle")) {
|
|
101732
101685
|
options.setPendingAttendeeId(result.attendeeId);
|
|
101733
101686
|
options.setStep("redirecting");
|
|
101734
|
-
const
|
|
101735
|
-
const successParams = new URLSearchParams(currentUrl.search);
|
|
101736
|
-
successParams.set("registration", "success");
|
|
101737
|
-
const successUrl = `${currentUrl.origin}${currentUrl.pathname}?${successParams.toString()}${currentUrl.hash}`;
|
|
101738
|
-
const cancelParams = new URLSearchParams(currentUrl.search);
|
|
101739
|
-
cancelParams.set("registration", "cancelled");
|
|
101740
|
-
const cancelUrl = `${currentUrl.origin}${currentUrl.pathname}?${cancelParams.toString()}${currentUrl.hash}`;
|
|
101687
|
+
const { successUrl, cancelUrl } = buildCheckoutReturnUrls("registration", EVENT_REGISTRATION_ANCHOR_ID);
|
|
101741
101688
|
const checkoutType = method === "pass_bundle" ? "pass_bundle" : method === "membership_bundle" ? "membership_bundle" : "event";
|
|
101742
101689
|
const checkoutResult = await options.api.createEventCheckout({
|
|
101743
101690
|
attendeeId: result.attendeeId,
|
|
@@ -101802,6 +101749,8 @@ function useEventRegistrationSubmitWithDeps(options, deps) {
|
|
|
101802
101749
|
}
|
|
101803
101750
|
var eventRegistrationSubmitDeps;
|
|
101804
101751
|
var init_useEventRegistrationSubmit = __esmMin((() => {
|
|
101752
|
+
init_shared$1();
|
|
101753
|
+
init_constants();
|
|
101805
101754
|
init_sessionStorage();
|
|
101806
101755
|
init_ticketSelectionLines();
|
|
101807
101756
|
eventRegistrationSubmitDeps = { savePendingRegistration };
|
|
@@ -102678,12 +102627,6 @@ function filterMembershipsForEvent(siteMemberships, event) {
|
|
|
102678
102627
|
}
|
|
102679
102628
|
var init_eventProductEligibility = __esmMin((() => {}));
|
|
102680
102629
|
//#endregion
|
|
102681
|
-
//#region ../blocks/src/system/runtime/nodes/event-registration/constants.ts
|
|
102682
|
-
var EVENT_REGISTRATION_ANCHOR_ID;
|
|
102683
|
-
var init_constants = __esmMin((() => {
|
|
102684
|
-
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
102685
|
-
}));
|
|
102686
|
-
//#endregion
|
|
102687
102630
|
//#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizard.tsx
|
|
102688
102631
|
function EventPortalAuthPrompt(props) {
|
|
102689
102632
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -107711,7 +107654,7 @@ function eventSeriesIdsForSubject(subject) {
|
|
|
107711
107654
|
switch (subject.kind) {
|
|
107712
107655
|
case "eventSeries": return [subject.eventSeriesId];
|
|
107713
107656
|
case "eventOffering": return subject.availableEventSeriesIds;
|
|
107714
|
-
default: return assertNever$
|
|
107657
|
+
default: return assertNever$20(subject);
|
|
107715
107658
|
}
|
|
107716
107659
|
}
|
|
107717
107660
|
var init_course_page_surface_scope = __esmMin((() => {
|
|
@@ -110410,7 +110353,7 @@ function PassesMembershipsController({ render }) {
|
|
|
110410
110353
|
case "redirect":
|
|
110411
110354
|
window.location.href = result.checkoutUrl;
|
|
110412
110355
|
return;
|
|
110413
|
-
default: return assertNever$
|
|
110356
|
+
default: return assertNever$20(result);
|
|
110414
110357
|
}
|
|
110415
110358
|
} catch (submitError) {
|
|
110416
110359
|
dispatch({
|
|
@@ -115583,7 +115526,7 @@ function planSiteChromePlacement(positioning) {
|
|
|
115583
115526
|
headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
|
|
115584
115527
|
standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
|
|
115585
115528
|
};
|
|
115586
|
-
default: return assertNever$
|
|
115529
|
+
default: return assertNever$12(positioning);
|
|
115587
115530
|
}
|
|
115588
115531
|
}
|
|
115589
115532
|
function splitSiteChromePlacementClasses(className) {
|
|
@@ -121470,10 +121413,10 @@ function preferredPathsForSource(source) {
|
|
|
121470
121413
|
case "workshop": return ["/workshops", "/workshop"];
|
|
121471
121414
|
case "retreat": return ["/retreats", "/retreat"];
|
|
121472
121415
|
case "performance": return ["/performances", "/performance"];
|
|
121473
|
-
default: return assertNever$
|
|
121416
|
+
default: return assertNever$20(source.preset, "Unhandled offerings preview event preset");
|
|
121474
121417
|
}
|
|
121475
121418
|
case "course": return ["/courses", "/course"];
|
|
121476
|
-
default: return assertNever$
|
|
121419
|
+
default: return assertNever$20(source, "Unhandled offerings preview source");
|
|
121477
121420
|
}
|
|
121478
121421
|
}
|
|
121479
121422
|
function normalizeRoutePath(value) {
|
|
@@ -126470,7 +126413,7 @@ function resolveLinkedContentEditSupport(contentType) {
|
|
|
126470
126413
|
kind: "unsupported-domain-backed",
|
|
126471
126414
|
reason: metadata.reason
|
|
126472
126415
|
};
|
|
126473
|
-
default: return assertNever$
|
|
126416
|
+
default: return assertNever$20(metadata);
|
|
126474
126417
|
}
|
|
126475
126418
|
}
|
|
126476
126419
|
function contentTypeKeyToLabel(key) {
|
|
@@ -128656,7 +128599,7 @@ function renderOfferingGroupItems(presentation, items, options) {
|
|
|
128656
128599
|
children: items.map((item) => renderOfferingCompactItem(item, options))
|
|
128657
128600
|
})
|
|
128658
128601
|
});
|
|
128659
|
-
default: return assertNever$
|
|
128602
|
+
default: return assertNever$20(presentation, "Unhandled offerings preview presentation");
|
|
128660
128603
|
}
|
|
128661
128604
|
}
|
|
128662
128605
|
function compareCoursesByNextSession(left, right) {
|
|
@@ -128701,7 +128644,7 @@ function featuredSummaryDetails(item) {
|
|
|
128701
128644
|
const summary = deriveCourseScheduleSummary(item.course);
|
|
128702
128645
|
return summary ? formatFeaturedSummary(summary, item.course.venue?.name ?? null) : null;
|
|
128703
128646
|
}
|
|
128704
|
-
default: return assertNever$
|
|
128647
|
+
default: return assertNever$20(item, "Unhandled offerings preview item");
|
|
128705
128648
|
}
|
|
128706
128649
|
}
|
|
128707
128650
|
function formatFeaturedSummary(summary, venue) {
|
|
@@ -128710,7 +128653,7 @@ function formatFeaturedSummary(summary, venue) {
|
|
|
128710
128653
|
case "multi-day-span": return detailsFromOccurrences(summary.occurrence, summary.occurrence, venue, null, null, true);
|
|
128711
128654
|
case "fixed-recurring-run": return detailsFromOccurrences(summary.first, summary.last, venue, summary.recurrenceLabel, null);
|
|
128712
128655
|
case "irregular-multi-session-run": return detailsFromOccurrences(summary.first, summary.last, venue, null, `${summary.sessionCount} dates`);
|
|
128713
|
-
default: return assertNever$
|
|
128656
|
+
default: return assertNever$20(summary, "Unhandled offerings preview schedule summary");
|
|
128714
128657
|
}
|
|
128715
128658
|
}
|
|
128716
128659
|
function detailsFromOccurrences(first, last, venue, recurrence, sessionCount, spanUsesEndDate = false) {
|
|
@@ -129109,7 +129052,7 @@ function bookingActionContent(input) {
|
|
|
129109
129052
|
children: input.buttonText
|
|
129110
129053
|
});
|
|
129111
129054
|
case "unavailable": return null;
|
|
129112
|
-
default: return assertNever$
|
|
129055
|
+
default: return assertNever$20(input.booking);
|
|
129113
129056
|
}
|
|
129114
129057
|
}
|
|
129115
129058
|
function RecurringSchedule({ schedule, buttonText = "Book", buttonVariant = "primary", showVenue = true, emptyMessage = "Regular schedule details will be added shortly." }) {
|
|
@@ -130581,7 +130524,7 @@ function previewEditableTargetToPath(target) {
|
|
|
130581
130524
|
case "current-entry-field":
|
|
130582
130525
|
case "current-entry-metadata": return target.path;
|
|
130583
130526
|
case "read-only": return;
|
|
130584
|
-
default: return assertNever$
|
|
130527
|
+
default: return assertNever$20(target);
|
|
130585
130528
|
}
|
|
130586
130529
|
}
|
|
130587
130530
|
function previewEditableTargetToFieldKey(target) {
|
|
@@ -131658,7 +131601,7 @@ function collectNestedPreviewFieldConstraintEntries(field, path) {
|
|
|
131658
131601
|
case "text":
|
|
131659
131602
|
case "time":
|
|
131660
131603
|
case "url": return [];
|
|
131661
|
-
default: return assertNever$
|
|
131604
|
+
default: return assertNever$20(field);
|
|
131662
131605
|
}
|
|
131663
131606
|
}
|
|
131664
131607
|
function makeDefaultBlockComponent(args) {
|
|
@@ -135853,7 +135796,7 @@ function sourceLabel(source) {
|
|
|
135853
135796
|
case "managed-database": return "DB";
|
|
135854
135797
|
case "sdk-synced": return "SDK-synced DB";
|
|
135855
135798
|
case "sdk-config": return "SDK config";
|
|
135856
|
-
default: return assertNever$
|
|
135799
|
+
default: return assertNever$20(source);
|
|
135857
135800
|
}
|
|
135858
135801
|
}
|
|
135859
135802
|
//#endregion
|
|
@@ -149625,7 +149568,7 @@ function renderWithSdkThemeRuntime({ themeRuntime, theme, children }) {
|
|
|
149625
149568
|
children
|
|
149626
149569
|
});
|
|
149627
149570
|
case "none": return /* @__PURE__ */ jsx(Fragment, { children });
|
|
149628
|
-
default: return assertNever$
|
|
149571
|
+
default: return assertNever$20(themeRuntime);
|
|
149629
149572
|
}
|
|
149630
149573
|
}
|
|
149631
149574
|
//#endregion
|
|
@@ -152317,7 +152260,7 @@ function navigationAuthoringLinkToCommandLink(link) {
|
|
|
152317
152260
|
badge: link.badge,
|
|
152318
152261
|
label: link.label
|
|
152319
152262
|
};
|
|
152320
|
-
default: return assertNever$
|
|
152263
|
+
default: return assertNever$20(link);
|
|
152321
152264
|
}
|
|
152322
152265
|
}
|
|
152323
152266
|
function portalLabelsForCommand(labels) {
|
|
@@ -152360,7 +152303,7 @@ function navigationReadLinkToLocalLink(item) {
|
|
|
152360
152303
|
badge: link.badge,
|
|
152361
152304
|
label: link.label
|
|
152362
152305
|
};
|
|
152363
|
-
default: return assertNever$
|
|
152306
|
+
default: return assertNever$20(link);
|
|
152364
152307
|
}
|
|
152365
152308
|
}
|
|
152366
152309
|
function internalNavigationLinkToLocalLink(item) {
|