@riverbankcms/sdk 0.60.3 → 0.60.7
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/_dts/api/src/appointmentSetup.d.ts +2 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +6 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +45 -3
- package/dist/_dts/api/src/bookingOperations.d.ts +40 -3
- package/dist/_dts/api/src/bookingVerticals.d.ts +1 -0
- package/dist/_dts/api/src/courses.d.ts +1 -5
- package/dist/_dts/api/src/endpoints.d.ts +80 -1
- package/dist/_dts/api/src/index.d.ts +3 -2
- package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
- package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
- package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -1
- package/dist/_dts/api/src/resources.d.ts +1 -1
- package/dist/_dts/api/src/siteBanner.d.ts +8 -8
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -39
- package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +2 -0
- package/dist/_dts/api/src/teamMembers.d.ts +27 -0
- package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +35 -29
- package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -5
- package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +40 -34
- package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -5
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1 -1
- package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
- package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
- package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +24 -0
- package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +18 -8
- package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
- package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -2
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +4 -4
- package/dist/_dts/blocks/src/system/runtime/shared/themedButtonClass.d.ts +11 -0
- package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +10 -2
- package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
- package/dist/_dts/content-model/src/metadataConfig.d.ts +1 -0
- package/dist/_dts/core/src/branded.d.ts +2 -0
- package/dist/_dts/core/src/participants.d.ts +32 -1
- package/dist/_dts/core/src/rectification.d.ts +79 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +130 -14
- package/dist/_dts/db/src/schemas/forms.d.ts +61 -61
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +17 -15
- package/dist/_dts/sdk/src/client/types.d.ts +10 -2
- package/dist/_dts/sdk/src/config/types.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +40 -37
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +17 -8
- package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +87 -69
- package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -5
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +11 -11
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +86 -5
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +20 -20
- package/dist/_dts/theme-core/src/buttons/types.d.ts +27 -27
- package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
- package/dist/_dts/theme-core/src/inputs/types.d.ts +14 -14
- package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +2 -2
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +438 -438
- package/dist/_dts/theme-core/src/navigation/types.d.ts +16 -16
- package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +200 -4
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +25 -25
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +33 -9
- package/dist/_dts/theme-core/src/schema.d.ts +662 -662
- package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/curatedChoices.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +48 -194
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +15 -15
- package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +12 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +46 -0
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +5 -5
- package/dist/_dts/ui/src/badge.d.ts +1 -1
- package/dist/_dts/ui/src/button-group.d.ts +1 -1
- package/dist/_dts/ui/src/button.d.ts +2 -2
- package/dist/_dts/ui/src/callout.d.ts +1 -1
- package/dist/_dts/ui/src/card.d.ts +1 -1
- package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +47 -0
- package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +50 -0
- package/dist/_dts/ui/src/palette/hex.d.ts +23 -0
- package/dist/_dts/ui/src/palette/index.d.ts +14 -0
- package/dist/_dts/ui/src/surface.d.ts +2 -2
- package/dist/_dts/ui/src/toggle.d.ts +4 -4
- package/dist/cli/index.mjs +1535 -1183
- package/dist/client/client.mjs +3944 -3454
- package/dist/client/hooks.mjs +2053 -1743
- package/dist/client/rendering/client.mjs +311 -167
- package/dist/client/rendering/islands.mjs +159 -73
- package/dist/client/rendering.mjs +1918 -1447
- package/dist/preview-next/before-render.mjs +147 -1
- package/dist/preview-next/client/runtime.mjs +2828 -2174
- package/dist/preview-next/middleware.mjs +147 -1
- package/dist/server/components.mjs +4311 -3928
- package/dist/server/config-validation.mjs +2201 -1906
- package/dist/server/config.mjs +2201 -1906
- package/dist/server/data.mjs +2053 -1743
- package/dist/server/index.mjs +171 -4
- package/dist/server/next.mjs +3442 -3024
- package/dist/server/page-converter.mjs +2109 -1962
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +4021 -3622
- package/dist/server/rendering.mjs +4021 -3622
- package/dist/server/routing.mjs +2377 -2058
- package/dist/server/server.mjs +2244 -1915
- package/dist/server/theme-bridge.mjs +130 -126
- package/dist/server/theme.mjs +131 -129
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/site-styles/compatibility.d.ts +0 -109
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
|
-
get: (a, b2) => (typeof require !== "undefined" ? require : a)[b2]
|
|
6
|
-
}) : x)(function(x) {
|
|
7
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
-
});
|
|
10
4
|
var __esm = (fn2, res) => function __init() {
|
|
11
5
|
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
|
12
6
|
};
|
|
@@ -691,6 +685,7 @@ var init_assertNever = __esm({
|
|
|
691
685
|
var init_participants = __esm({
|
|
692
686
|
"../core/src/participants.ts"() {
|
|
693
687
|
"use strict";
|
|
688
|
+
init_branded();
|
|
694
689
|
init_result();
|
|
695
690
|
}
|
|
696
691
|
});
|
|
@@ -1425,7 +1420,9 @@ var init_schemas = __esm({
|
|
|
1425
1420
|
courseTeamMemberSummarySchema = z4.object({
|
|
1426
1421
|
id: z4.string(),
|
|
1427
1422
|
name: z4.string(),
|
|
1428
|
-
|
|
1423
|
+
roleLabel: z4.string().nullable(),
|
|
1424
|
+
summary: z4.string().nullable(),
|
|
1425
|
+
profilePath: z4.string().nullable()
|
|
1429
1426
|
});
|
|
1430
1427
|
coursePricingOptionSchema = z4.object({
|
|
1431
1428
|
id: z4.string(),
|
|
@@ -1540,7 +1537,9 @@ var init_schemas2 = __esm({
|
|
|
1540
1537
|
publicTeamMemberSummarySchema = z5.object({
|
|
1541
1538
|
id: z5.string(),
|
|
1542
1539
|
name: z5.string(),
|
|
1543
|
-
|
|
1540
|
+
roleLabel: z5.string().nullable(),
|
|
1541
|
+
summary: z5.string().nullable(),
|
|
1542
|
+
profilePath: z5.string().nullable()
|
|
1544
1543
|
});
|
|
1545
1544
|
publicEventSchema = z5.object({
|
|
1546
1545
|
kind: z5.enum(["event", "course_session"]).optional(),
|
|
@@ -3966,7 +3965,7 @@ function getServerStorage() {
|
|
|
3966
3965
|
_serverStorageChecked = true;
|
|
3967
3966
|
try {
|
|
3968
3967
|
const globalWithNonWebpackRequire = globalThis;
|
|
3969
|
-
const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ :
|
|
3968
|
+
const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ : new Function("id", "return require(id)");
|
|
3970
3969
|
const asyncHooks = nonWebpackRequire("async_hooks");
|
|
3971
3970
|
const AsyncLocalStorage = asyncHooks.AsyncLocalStorage;
|
|
3972
3971
|
if (AsyncLocalStorage) {
|
|
@@ -4614,6 +4613,19 @@ var init_EventCardIcons = __esm({
|
|
|
4614
4613
|
}
|
|
4615
4614
|
});
|
|
4616
4615
|
|
|
4616
|
+
// ../blocks/src/system/runtime/shared/themedButtonClass.ts
|
|
4617
|
+
function themedButtonClass(spec) {
|
|
4618
|
+
const { variant, size, extraClassName } = spec;
|
|
4619
|
+
const normalizedVariant = variant.trim();
|
|
4620
|
+
const variantClasses = normalizedVariant ? [normalizedVariant, `button-${normalizedVariant}`] : [];
|
|
4621
|
+
return [...variantClasses, `btn-${size}`, extraClassName].filter(Boolean).join(" ");
|
|
4622
|
+
}
|
|
4623
|
+
var init_themedButtonClass = __esm({
|
|
4624
|
+
"../blocks/src/system/runtime/shared/themedButtonClass.ts"() {
|
|
4625
|
+
"use strict";
|
|
4626
|
+
}
|
|
4627
|
+
});
|
|
4628
|
+
|
|
4617
4629
|
// ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
|
|
4618
4630
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
4619
4631
|
function formatCapacityText(event, options) {
|
|
@@ -4661,6 +4673,7 @@ var init_EventCard = __esm({
|
|
|
4661
4673
|
init_EventCardIcons();
|
|
4662
4674
|
init_eventCapacity();
|
|
4663
4675
|
init_utils();
|
|
4676
|
+
init_themedButtonClass();
|
|
4664
4677
|
EventCard = ({
|
|
4665
4678
|
event,
|
|
4666
4679
|
cardVariant = "default",
|
|
@@ -4686,7 +4699,7 @@ var init_EventCard = __esm({
|
|
|
4686
4699
|
const isSoldOut = cta.hidden;
|
|
4687
4700
|
const { available: spotsLeft } = getEventAvailability(event);
|
|
4688
4701
|
const cardClass = `card-${cardVariant}`;
|
|
4689
|
-
const buttonClass =
|
|
4702
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
4690
4703
|
const title = event.title;
|
|
4691
4704
|
const summary = event.presentation?.summary ?? event.description;
|
|
4692
4705
|
const image = event.presentation?.image ?? null;
|
|
@@ -4768,6 +4781,7 @@ var init_EventCompactRow = __esm({
|
|
|
4768
4781
|
"use strict";
|
|
4769
4782
|
init_utils();
|
|
4770
4783
|
init_EventCardIcons();
|
|
4784
|
+
init_themedButtonClass();
|
|
4771
4785
|
EventCompactRow = ({
|
|
4772
4786
|
event,
|
|
4773
4787
|
buttonVariant = "primary",
|
|
@@ -4779,7 +4793,7 @@ var init_EventCompactRow = __esm({
|
|
|
4779
4793
|
const price = formatEventPrice(event);
|
|
4780
4794
|
const teacherLine = formatEventTeacherLine(event);
|
|
4781
4795
|
const cta = resolveEventCta(event, buttonText);
|
|
4782
|
-
const buttonClass =
|
|
4796
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "sm" });
|
|
4783
4797
|
return /* @__PURE__ */ jsxs3("div", { className: "event-compact-row", children: [
|
|
4784
4798
|
/* @__PURE__ */ jsxs3("div", { className: "event-compact-row-content", children: [
|
|
4785
4799
|
/* @__PURE__ */ jsxs3("div", { className: "event-compact-row-top", children: [
|
|
@@ -7519,7 +7533,10 @@ function createBlockApi(config) {
|
|
|
7519
7533
|
url = appendQuery(url, queryParams);
|
|
7520
7534
|
}
|
|
7521
7535
|
const authHeaders = getAuthHeaders(selectedAuth);
|
|
7522
|
-
const headers = {
|
|
7536
|
+
const headers = {
|
|
7537
|
+
Accept: "application/json",
|
|
7538
|
+
...authHeaders
|
|
7539
|
+
};
|
|
7523
7540
|
if (body !== void 0) {
|
|
7524
7541
|
headers["Content-Type"] = "application/json";
|
|
7525
7542
|
}
|
|
@@ -8450,11 +8467,11 @@ var init_presets = __esm({
|
|
|
8450
8467
|
}
|
|
8451
8468
|
});
|
|
8452
8469
|
|
|
8453
|
-
// ../theme-core/src/site-styles/
|
|
8470
|
+
// ../theme-core/src/site-styles/styleTags.ts
|
|
8454
8471
|
import { z as z22 } from "zod";
|
|
8455
8472
|
var STYLE_AXIS_VALUES, styleTagsSchema;
|
|
8456
|
-
var
|
|
8457
|
-
"../theme-core/src/site-styles/
|
|
8473
|
+
var init_styleTags = __esm({
|
|
8474
|
+
"../theme-core/src/site-styles/styleTags.ts"() {
|
|
8458
8475
|
"use strict";
|
|
8459
8476
|
STYLE_AXIS_VALUES = {
|
|
8460
8477
|
tone: ["minimal", "classic", "bold"],
|
|
@@ -8493,7 +8510,7 @@ var init_types5 = __esm({
|
|
|
8493
8510
|
"../theme-core/src/buttons/personalities/types.ts"() {
|
|
8494
8511
|
"use strict";
|
|
8495
8512
|
init_types4();
|
|
8496
|
-
|
|
8513
|
+
init_styleTags();
|
|
8497
8514
|
buttonPersonalityIdSchema = z23.string().min(1).transform((value) => asButtonPersonalityId(value));
|
|
8498
8515
|
buttonPersonalitySchema = z23.object({
|
|
8499
8516
|
id: buttonPersonalityIdSchema,
|
|
@@ -9933,6 +9950,12 @@ var init_CoursePricingDisplay = __esm({
|
|
|
9933
9950
|
|
|
9934
9951
|
// ../blocks/src/system/runtime/nodes/event-details/view.tsx
|
|
9935
9952
|
import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
9953
|
+
function TeamMemberName({
|
|
9954
|
+
name,
|
|
9955
|
+
profilePath
|
|
9956
|
+
}) {
|
|
9957
|
+
return profilePath ? /* @__PURE__ */ jsx12("a", { href: profilePath, className: "rb-hover-opacity-80", children: /* @__PURE__ */ jsx12("strong", { children: name }) }) : /* @__PURE__ */ jsx12("strong", { children: name });
|
|
9958
|
+
}
|
|
9936
9959
|
function EventDetailsView({
|
|
9937
9960
|
selection,
|
|
9938
9961
|
showVenue,
|
|
@@ -9996,7 +10019,13 @@ function EventDetailsView({
|
|
|
9996
10019
|
teamMembers.length > 0 ? /* @__PURE__ */ jsxs8("div", { className: "rb-mt-6", children: [
|
|
9997
10020
|
/* @__PURE__ */ jsx12("div", { className: "rb-label rb-mb-2", children: "Team members" }),
|
|
9998
10021
|
/* @__PURE__ */ jsx12("div", { className: "rb-flex rb-flex-col rb-gap-3", children: teamMembers.map((teamMember) => /* @__PURE__ */ jsxs8("div", { children: [
|
|
9999
|
-
/* @__PURE__ */ jsx12("p", { children: /* @__PURE__ */ jsx12(
|
|
10022
|
+
/* @__PURE__ */ jsx12("p", { children: /* @__PURE__ */ jsx12(
|
|
10023
|
+
TeamMemberName,
|
|
10024
|
+
{
|
|
10025
|
+
name: teamMember.name,
|
|
10026
|
+
profilePath: teamMember.profilePath
|
|
10027
|
+
}
|
|
10028
|
+
) }),
|
|
10000
10029
|
teamMember.summary ? /* @__PURE__ */ jsx12("p", { className: "rb-caption status-muted", children: teamMember.summary }) : null
|
|
10001
10030
|
] }, teamMember.id)) })
|
|
10002
10031
|
] }) : null,
|
|
@@ -18714,6 +18743,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
18714
18743
|
init_lucide_react();
|
|
18715
18744
|
init_utils3();
|
|
18716
18745
|
init_spinner();
|
|
18746
|
+
init_themedButtonClass();
|
|
18717
18747
|
init_CheckIcon2();
|
|
18718
18748
|
init_SelectableOptionCard();
|
|
18719
18749
|
PaymentSelectionStep = ({
|
|
@@ -18814,7 +18844,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
18814
18844
|
"button",
|
|
18815
18845
|
{
|
|
18816
18846
|
type: "button",
|
|
18817
|
-
className: "primary
|
|
18847
|
+
className: themedButtonClass({ variant: "primary", size: "md" }),
|
|
18818
18848
|
disabled: !email.trim(),
|
|
18819
18849
|
onClick: onRequestLogin,
|
|
18820
18850
|
children: "Email me a login link"
|
|
@@ -20538,7 +20568,7 @@ function EventRegistrationWizard(props) {
|
|
|
20538
20568
|
} = props;
|
|
20539
20569
|
const maxTicketsNum = parseInt(maxTickets, 10) || 5;
|
|
20540
20570
|
const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
20541
|
-
const buttonClass =
|
|
20571
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
20542
20572
|
const wizard = useEventRegistrationWizard({
|
|
20543
20573
|
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
20544
20574
|
occurrenceContext: occurrenceContext ?? null,
|
|
@@ -20675,6 +20705,7 @@ var init_EventRegistrationWizard = __esm({
|
|
|
20675
20705
|
init_useEventRegistrationWizard();
|
|
20676
20706
|
init_MagicLinkForm();
|
|
20677
20707
|
init_spinner();
|
|
20708
|
+
init_themedButtonClass();
|
|
20678
20709
|
init_event_registration();
|
|
20679
20710
|
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
20680
20711
|
EVENT_PORTAL_AUTH_COPY = {
|
|
@@ -21120,7 +21151,7 @@ function ErrorStep2({
|
|
|
21120
21151
|
buttonVariant = "primary",
|
|
21121
21152
|
onRetry
|
|
21122
21153
|
}) {
|
|
21123
|
-
const buttonClass =
|
|
21154
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
21124
21155
|
return /* @__PURE__ */ jsxs49("div", { className: "cr-error", role: "alert", children: [
|
|
21125
21156
|
/* @__PURE__ */ jsx65(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx65(CrossIcon, {}) }),
|
|
21126
21157
|
/* @__PURE__ */ jsx65("h3", { className: "cr-error__title", children: "Enrollment Failed" }),
|
|
@@ -21132,6 +21163,7 @@ var init_ErrorStep2 = __esm({
|
|
|
21132
21163
|
"../blocks/src/system/runtime/nodes/course-registration/ErrorStep.tsx"() {
|
|
21133
21164
|
"use strict";
|
|
21134
21165
|
init_shared5();
|
|
21166
|
+
init_themedButtonClass();
|
|
21135
21167
|
}
|
|
21136
21168
|
});
|
|
21137
21169
|
|
|
@@ -21143,7 +21175,7 @@ function VerifyingTimeoutStep2({
|
|
|
21143
21175
|
onCheckAgain,
|
|
21144
21176
|
supportEmail
|
|
21145
21177
|
}) {
|
|
21146
|
-
const buttonClass =
|
|
21178
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
21147
21179
|
return /* @__PURE__ */ jsxs50("div", { className: "cr-error", role: "alert", children: [
|
|
21148
21180
|
/* @__PURE__ */ jsx66(StateIcon, { variant: "warning", children: /* @__PURE__ */ jsx66(ClockIcon, {}) }),
|
|
21149
21181
|
/* @__PURE__ */ jsx66("h3", { className: "cr-error__title", children: "Payment Verification Taking Longer" }),
|
|
@@ -21160,6 +21192,7 @@ var init_VerifyingTimeoutStep2 = __esm({
|
|
|
21160
21192
|
"../blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.tsx"() {
|
|
21161
21193
|
"use strict";
|
|
21162
21194
|
init_shared5();
|
|
21195
|
+
init_themedButtonClass();
|
|
21163
21196
|
}
|
|
21164
21197
|
});
|
|
21165
21198
|
|
|
@@ -21171,7 +21204,7 @@ function PaymentFailedStep2({
|
|
|
21171
21204
|
buttonVariant = "primary",
|
|
21172
21205
|
onRetry
|
|
21173
21206
|
}) {
|
|
21174
|
-
const buttonClass =
|
|
21207
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
21175
21208
|
return /* @__PURE__ */ jsxs51("div", { className: "cr-payment-failed", role: "alert", children: [
|
|
21176
21209
|
/* @__PURE__ */ jsx67(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx67(CrossIcon, {}) }),
|
|
21177
21210
|
/* @__PURE__ */ jsx67("h3", { className: "cr-payment-failed__title", children: "Payment Failed" }),
|
|
@@ -21183,6 +21216,7 @@ var init_PaymentFailedStep2 = __esm({
|
|
|
21183
21216
|
"../blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.tsx"() {
|
|
21184
21217
|
"use strict";
|
|
21185
21218
|
init_shared5();
|
|
21219
|
+
init_themedButtonClass();
|
|
21186
21220
|
}
|
|
21187
21221
|
});
|
|
21188
21222
|
|
|
@@ -21256,7 +21290,16 @@ var init_CourseRegistrationErrorBoundary = __esm({
|
|
|
21256
21290
|
});
|
|
21257
21291
|
|
|
21258
21292
|
// ../blocks/src/system/runtime/nodes/course-registration/components.tsx
|
|
21293
|
+
import React17 from "react";
|
|
21259
21294
|
import { Fragment as Fragment13, jsx as jsx70, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
21295
|
+
function TeamMemberInlineList({
|
|
21296
|
+
teamMembers
|
|
21297
|
+
}) {
|
|
21298
|
+
return /* @__PURE__ */ jsx70(Fragment13, { children: teamMembers.map((teamMember, index) => /* @__PURE__ */ jsxs54(React17.Fragment, { children: [
|
|
21299
|
+
index > 0 ? ", " : "",
|
|
21300
|
+
teamMember.profilePath ? /* @__PURE__ */ jsx70("a", { href: teamMember.profilePath, children: teamMember.name }) : teamMember.name
|
|
21301
|
+
] }, teamMember.id)) });
|
|
21302
|
+
}
|
|
21260
21303
|
function CourseCard({
|
|
21261
21304
|
course,
|
|
21262
21305
|
isSelected,
|
|
@@ -21337,7 +21380,7 @@ function CourseSummary({
|
|
|
21337
21380
|
teamMembers.length > 0 && /* @__PURE__ */ jsxs54("div", { className: "cr-summary__venue", children: [
|
|
21338
21381
|
/* @__PURE__ */ jsx70("strong", { children: "Team:" }),
|
|
21339
21382
|
" ",
|
|
21340
|
-
|
|
21383
|
+
/* @__PURE__ */ jsx70(TeamMemberInlineList, { teamMembers })
|
|
21341
21384
|
] }),
|
|
21342
21385
|
showPrice && pricing.display.kind !== "unavailable" && /* @__PURE__ */ jsxs54("p", { className: "cr-summary__price", children: [
|
|
21343
21386
|
/* @__PURE__ */ jsx70("strong", { children: pricing.selectableOptions.length > 0 ? "Pricing:" : "Price:" }),
|
|
@@ -22175,7 +22218,7 @@ function CourseRegistrationWizard(props) {
|
|
|
22175
22218
|
handleRetry,
|
|
22176
22219
|
handleBookingModeChange
|
|
22177
22220
|
} = useCourseRegistrationWizard(props);
|
|
22178
|
-
const buttonClass =
|
|
22221
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
22179
22222
|
if (scopedCourses.length === 0) {
|
|
22180
22223
|
return /* @__PURE__ */ jsx71(
|
|
22181
22224
|
"div",
|
|
@@ -22585,6 +22628,7 @@ var init_CourseRegistrationWizard = __esm({
|
|
|
22585
22628
|
init_PaymentFailedStep2();
|
|
22586
22629
|
init_VerifyingTimeoutStep2();
|
|
22587
22630
|
init_spinner();
|
|
22631
|
+
init_themedButtonClass();
|
|
22588
22632
|
}
|
|
22589
22633
|
});
|
|
22590
22634
|
|
|
@@ -22894,7 +22938,7 @@ var init_location_map_client = __esm({
|
|
|
22894
22938
|
});
|
|
22895
22939
|
|
|
22896
22940
|
// ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
|
|
22897
|
-
import * as
|
|
22941
|
+
import * as React19 from "react";
|
|
22898
22942
|
function storageKey(siteId) {
|
|
22899
22943
|
return `riverbank:shop-cart:${siteId}`;
|
|
22900
22944
|
}
|
|
@@ -22910,8 +22954,8 @@ function addPassToCommerceCart(siteId, input) {
|
|
|
22910
22954
|
}
|
|
22911
22955
|
function useCommerceCart(siteId) {
|
|
22912
22956
|
const effectiveSiteId = siteId ?? "unknown";
|
|
22913
|
-
const store =
|
|
22914
|
-
const state =
|
|
22957
|
+
const store = React19.useMemo(() => getStore(effectiveSiteId), [effectiveSiteId]);
|
|
22958
|
+
const state = React19.useSyncExternalStore(
|
|
22915
22959
|
(listener) => store.subscribe(listener),
|
|
22916
22960
|
() => store.getSnapshot(),
|
|
22917
22961
|
() => EMPTY_STATE
|
|
@@ -23006,11 +23050,11 @@ var init_shop_commerce_store = __esm({
|
|
|
23006
23050
|
});
|
|
23007
23051
|
|
|
23008
23052
|
// ../blocks/src/system/runtime/nodes/shop-add-feedback.tsx
|
|
23009
|
-
import * as
|
|
23053
|
+
import * as React20 from "react";
|
|
23010
23054
|
import { jsx as jsx76, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
23011
23055
|
function useTransientShopAddFeedback(timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
23012
|
-
const [activeKey, setActiveKey] =
|
|
23013
|
-
|
|
23056
|
+
const [activeKey, setActiveKey] = React20.useState(null);
|
|
23057
|
+
React20.useEffect(() => {
|
|
23014
23058
|
if (!activeKey) return;
|
|
23015
23059
|
const timeoutId = window.setTimeout(() => {
|
|
23016
23060
|
setActiveKey((current) => current === activeKey ? null : current);
|
|
@@ -23167,7 +23211,7 @@ var init_shop_state = __esm({
|
|
|
23167
23211
|
});
|
|
23168
23212
|
|
|
23169
23213
|
// ../blocks/src/system/runtime/nodes/shop.client.tsx
|
|
23170
|
-
import
|
|
23214
|
+
import React21, { useCallback as useCallback10, useEffect as useEffect21, useRef as useRef11, useState as useState17 } from "react";
|
|
23171
23215
|
import { Fragment as Fragment15, jsx as jsx77, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
23172
23216
|
function ShopClient(props) {
|
|
23173
23217
|
return /* @__PURE__ */ jsx77(PassesMembershipsController, { render: props.render });
|
|
@@ -23179,7 +23223,7 @@ function getCheckoutModalTitle(checkout) {
|
|
|
23179
23223
|
}
|
|
23180
23224
|
function PassesMembershipsController({ render }) {
|
|
23181
23225
|
const api = useBlockApi();
|
|
23182
|
-
const [state, dispatch] =
|
|
23226
|
+
const [state, dispatch] = React21.useReducer(
|
|
23183
23227
|
shopPassesMembershipsReducer,
|
|
23184
23228
|
initialShopPassesMembershipsState
|
|
23185
23229
|
);
|
|
@@ -25397,7 +25441,7 @@ var init_embla_carousel_react_esm = __esm({
|
|
|
25397
25441
|
});
|
|
25398
25442
|
|
|
25399
25443
|
// ../blocks/src/system/runtime/nodes/carousel.client.tsx
|
|
25400
|
-
import
|
|
25444
|
+
import React22 from "react";
|
|
25401
25445
|
import { Fragment as Fragment16, jsx as jsx78, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
25402
25446
|
function normalizeCarouselProps(input) {
|
|
25403
25447
|
const transition = input.transition === "fade" ? "fade" : "slide";
|
|
@@ -25452,8 +25496,8 @@ var init_carousel_client = __esm({
|
|
|
25452
25496
|
autoplayDelay,
|
|
25453
25497
|
loop
|
|
25454
25498
|
}) => {
|
|
25455
|
-
const slides =
|
|
25456
|
-
const normalized =
|
|
25499
|
+
const slides = React22.Children.toArray(children).filter(Boolean);
|
|
25500
|
+
const normalized = React22.useMemo(
|
|
25457
25501
|
() => normalizeCarouselProps({
|
|
25458
25502
|
slidesToShow,
|
|
25459
25503
|
transition,
|
|
@@ -25476,11 +25520,11 @@ var init_carousel_client = __esm({
|
|
|
25476
25520
|
]
|
|
25477
25521
|
);
|
|
25478
25522
|
const resolvedSlides = resolveSlidesToShowMobile(normalized.slidesToShow);
|
|
25479
|
-
const cssVars =
|
|
25523
|
+
const cssVars = React22.useMemo(
|
|
25480
25524
|
() => getCarouselSlidesToShowCssVars(normalized.slidesToShow),
|
|
25481
25525
|
[normalized.slidesToShow]
|
|
25482
25526
|
);
|
|
25483
|
-
const plugins =
|
|
25527
|
+
const plugins = React22.useMemo(() => {
|
|
25484
25528
|
if (!normalized.autoplay) return void 0;
|
|
25485
25529
|
return [
|
|
25486
25530
|
Autoplay({
|
|
@@ -25502,11 +25546,11 @@ var init_carousel_client = __esm({
|
|
|
25502
25546
|
},
|
|
25503
25547
|
plugins
|
|
25504
25548
|
);
|
|
25505
|
-
const [selectedIndex, setSelectedIndex] =
|
|
25506
|
-
const [scrollSnaps, setScrollSnaps] =
|
|
25507
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
25508
|
-
const [canScrollNext, setCanScrollNext] =
|
|
25509
|
-
|
|
25549
|
+
const [selectedIndex, setSelectedIndex] = React22.useState(0);
|
|
25550
|
+
const [scrollSnaps, setScrollSnaps] = React22.useState([]);
|
|
25551
|
+
const [canScrollPrev, setCanScrollPrev] = React22.useState(false);
|
|
25552
|
+
const [canScrollNext, setCanScrollNext] = React22.useState(false);
|
|
25553
|
+
React22.useEffect(() => {
|
|
25510
25554
|
if (!api) return;
|
|
25511
25555
|
const onInit = () => {
|
|
25512
25556
|
setScrollSnaps(api.scrollSnapList());
|
|
@@ -25529,7 +25573,7 @@ var init_carousel_client = __esm({
|
|
|
25529
25573
|
api.off("reInit", onSelect);
|
|
25530
25574
|
};
|
|
25531
25575
|
}, [api]);
|
|
25532
|
-
|
|
25576
|
+
React22.useEffect(() => {
|
|
25533
25577
|
if (!api || !normalized.autoplay) return;
|
|
25534
25578
|
const autoplayPlugin = api.plugins()?.autoplay;
|
|
25535
25579
|
if (!autoplayPlugin) return;
|
|
@@ -25740,16 +25784,16 @@ var init_shop_checkout_state = __esm({
|
|
|
25740
25784
|
});
|
|
25741
25785
|
|
|
25742
25786
|
// ../blocks/src/system/runtime/nodes/shop-commerce.tsx
|
|
25743
|
-
import * as
|
|
25787
|
+
import * as React23 from "react";
|
|
25744
25788
|
import { Fragment as Fragment17, jsx as jsx79, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
25745
25789
|
function ProductListController(props) {
|
|
25746
25790
|
const api = useBlockApi();
|
|
25747
25791
|
const cart = useCommerceCart(api.config.siteId);
|
|
25748
25792
|
const addFeedback = useTransientShopAddFeedback();
|
|
25749
|
-
const [variantSelection, setVariantSelection] =
|
|
25793
|
+
const [variantSelection, setVariantSelection] = React23.useState(
|
|
25750
25794
|
() => Object.fromEntries(props.render.display.cards.map((card) => [card.productId, card.selectedVariantId]))
|
|
25751
25795
|
);
|
|
25752
|
-
const cards =
|
|
25796
|
+
const cards = React23.useMemo(
|
|
25753
25797
|
() => props.render.hydration.products.map(
|
|
25754
25798
|
(product) => buildProductCardDisplay(
|
|
25755
25799
|
product,
|
|
@@ -25764,7 +25808,7 @@ function ProductListController(props) {
|
|
|
25764
25808
|
),
|
|
25765
25809
|
[props.render.hydration, variantSelection]
|
|
25766
25810
|
);
|
|
25767
|
-
const display =
|
|
25811
|
+
const display = React23.useMemo(
|
|
25768
25812
|
() => ({
|
|
25769
25813
|
...props.render.display,
|
|
25770
25814
|
state: cards.length === 0 ? "empty" : "ready",
|
|
@@ -25826,17 +25870,17 @@ function ProductDetailController(props) {
|
|
|
25826
25870
|
const api = useBlockApi();
|
|
25827
25871
|
const cart = useCommerceCart(api.config.siteId);
|
|
25828
25872
|
const addFeedback = useTransientShopAddFeedback();
|
|
25829
|
-
const selectedProduct =
|
|
25873
|
+
const selectedProduct = React23.useMemo(
|
|
25830
25874
|
() => props.render.hydration.products.find((product) => product.id === props.render.hydration.productId) ?? null,
|
|
25831
25875
|
[props.render.hydration.productId, props.render.hydration.products]
|
|
25832
25876
|
);
|
|
25833
|
-
const [variantId, setVariantId] =
|
|
25877
|
+
const [variantId, setVariantId] = React23.useState(
|
|
25834
25878
|
props.render.display.state === "ready" ? props.render.display.selectedVariantId : null
|
|
25835
25879
|
);
|
|
25836
|
-
|
|
25880
|
+
React23.useEffect(() => {
|
|
25837
25881
|
setVariantId(props.render.display.state === "ready" ? props.render.display.selectedVariantId : null);
|
|
25838
25882
|
}, [props.render.display]);
|
|
25839
|
-
const display =
|
|
25883
|
+
const display = React23.useMemo(
|
|
25840
25884
|
() => buildProductDetailDisplay(
|
|
25841
25885
|
selectedProduct,
|
|
25842
25886
|
{
|
|
@@ -25904,7 +25948,7 @@ function ProductDetailController(props) {
|
|
|
25904
25948
|
function CartController(props) {
|
|
25905
25949
|
const api = useBlockApi();
|
|
25906
25950
|
const cart = useCommerceCart(api.config.siteId);
|
|
25907
|
-
const display =
|
|
25951
|
+
const display = React23.useMemo(
|
|
25908
25952
|
() => getShopDisplayForItems(props.render, cart.items),
|
|
25909
25953
|
[cart.items, props.render]
|
|
25910
25954
|
);
|
|
@@ -25947,11 +25991,11 @@ function CartController(props) {
|
|
|
25947
25991
|
function CheckoutController(props) {
|
|
25948
25992
|
const api = useBlockApi();
|
|
25949
25993
|
const cart = useCommerceCart(api.config.siteId);
|
|
25950
|
-
const [state, dispatch] =
|
|
25994
|
+
const [state, dispatch] = React23.useReducer(
|
|
25951
25995
|
shopCheckoutReducer,
|
|
25952
25996
|
initialShopCheckoutState
|
|
25953
25997
|
);
|
|
25954
|
-
|
|
25998
|
+
React23.useEffect(() => {
|
|
25955
25999
|
const checkout = consumeSearchParam("checkout");
|
|
25956
26000
|
if (checkout === "success") {
|
|
25957
26001
|
cart.clear();
|
|
@@ -25960,7 +26004,7 @@ function CheckoutController(props) {
|
|
|
25960
26004
|
dispatch({ type: "setNotice", notice: "cancelled" });
|
|
25961
26005
|
}
|
|
25962
26006
|
}, [cart]);
|
|
25963
|
-
const display =
|
|
26007
|
+
const display = React23.useMemo(
|
|
25964
26008
|
() => getShopDisplayForItems(props.render, cart.items),
|
|
25965
26009
|
[cart.items, props.render]
|
|
25966
26010
|
);
|
|
@@ -26120,7 +26164,7 @@ var init_checkout_client = __esm({
|
|
|
26120
26164
|
});
|
|
26121
26165
|
|
|
26122
26166
|
// ../blocks/src/system/runtime/header/HeaderCartDrawer.tsx
|
|
26123
|
-
import * as
|
|
26167
|
+
import * as React24 from "react";
|
|
26124
26168
|
import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
26125
26169
|
function normalizeQuantityInput(value) {
|
|
26126
26170
|
const parsed = Number(value);
|
|
@@ -26170,8 +26214,8 @@ function HeaderCartDrawerItems(props) {
|
|
|
26170
26214
|
)) });
|
|
26171
26215
|
}
|
|
26172
26216
|
function HeaderCartDrawer(props) {
|
|
26173
|
-
const titleId =
|
|
26174
|
-
const display =
|
|
26217
|
+
const titleId = React24.useId();
|
|
26218
|
+
const display = React24.useMemo(
|
|
26175
26219
|
() => buildCartDisplay(props.cart.items, {
|
|
26176
26220
|
heading: "Cart",
|
|
26177
26221
|
emptyMessage: "Your cart is empty.",
|
|
@@ -26385,15 +26429,15 @@ var init_HeaderCartTrigger = __esm({
|
|
|
26385
26429
|
});
|
|
26386
26430
|
|
|
26387
26431
|
// ../blocks/src/system/runtime/header/headerCartRuntime.tsx
|
|
26388
|
-
import * as
|
|
26432
|
+
import * as React25 from "react";
|
|
26389
26433
|
import { createPortal as createPortal2 } from "react-dom";
|
|
26390
26434
|
import { createRoot } from "react-dom/client";
|
|
26391
26435
|
import { Fragment as Fragment18, jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
26392
26436
|
function HeaderCartRuntime(props) {
|
|
26393
26437
|
const cart = useCommerceCart(props.siteId);
|
|
26394
|
-
const itemCount =
|
|
26395
|
-
const [open, setOpen] =
|
|
26396
|
-
const checkoutHref =
|
|
26438
|
+
const itemCount = React25.useMemo(() => getCartItemCount(cart.items), [cart.items]);
|
|
26439
|
+
const [open, setOpen] = React25.useState(false);
|
|
26440
|
+
const checkoutHref = React25.useMemo(
|
|
26397
26441
|
() => resolveHeaderCartCheckoutHref(
|
|
26398
26442
|
props.mounts,
|
|
26399
26443
|
typeof window === "undefined" ? null : window.location.pathname
|
|
@@ -26974,6 +27018,7 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
26974
27018
|
init_EventCompactRow();
|
|
26975
27019
|
init_EmptyState();
|
|
26976
27020
|
init_EventListing_view();
|
|
27021
|
+
init_themedButtonClass();
|
|
26977
27022
|
EventPaginatedListView = ({
|
|
26978
27023
|
filters,
|
|
26979
27024
|
display,
|
|
@@ -27016,7 +27061,10 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
27016
27061
|
{
|
|
27017
27062
|
type: "button",
|
|
27018
27063
|
onClick: loadMore,
|
|
27019
|
-
className:
|
|
27064
|
+
className: themedButtonClass({
|
|
27065
|
+
variant: display.buttonVariant,
|
|
27066
|
+
size: "md"
|
|
27067
|
+
}),
|
|
27020
27068
|
children: "Try again"
|
|
27021
27069
|
}
|
|
27022
27070
|
)
|
|
@@ -27027,11 +27075,25 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
27027
27075
|
type: "button",
|
|
27028
27076
|
onClick: loadMore,
|
|
27029
27077
|
disabled: loading,
|
|
27030
|
-
className:
|
|
27078
|
+
className: themedButtonClass({
|
|
27079
|
+
variant: display.buttonVariant,
|
|
27080
|
+
size: "md",
|
|
27081
|
+
extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null
|
|
27082
|
+
}),
|
|
27031
27083
|
children: loading ? "Loading..." : loadMoreText
|
|
27032
27084
|
}
|
|
27033
27085
|
) }) : null,
|
|
27034
|
-
paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx89("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx89(
|
|
27086
|
+
paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx89("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx89(
|
|
27087
|
+
"a",
|
|
27088
|
+
{
|
|
27089
|
+
href: seeAllUrl,
|
|
27090
|
+
className: themedButtonClass({
|
|
27091
|
+
variant: display.buttonVariant,
|
|
27092
|
+
size: "md"
|
|
27093
|
+
}),
|
|
27094
|
+
children: loadMoreText
|
|
27095
|
+
}
|
|
27096
|
+
) }) : null
|
|
27035
27097
|
] }),
|
|
27036
27098
|
renderEventCard: (event) => display.listLayout === "compact" ? /* @__PURE__ */ jsx89(
|
|
27037
27099
|
EventCompactRow,
|
|
@@ -28375,6 +28437,7 @@ var init_EventCombined_client = __esm({
|
|
|
28375
28437
|
init_EventModalContext();
|
|
28376
28438
|
init_EventModals();
|
|
28377
28439
|
init_utils();
|
|
28440
|
+
init_themedButtonClass();
|
|
28378
28441
|
EventCombinedClient = ({
|
|
28379
28442
|
events: initialEvents,
|
|
28380
28443
|
siteId,
|
|
@@ -28700,7 +28763,7 @@ var init_EventCombined_client = __esm({
|
|
|
28700
28763
|
{
|
|
28701
28764
|
type: "button",
|
|
28702
28765
|
onClick: goToToday,
|
|
28703
|
-
className:
|
|
28766
|
+
className: themedButtonClass({ variant: buttonVariant, size: "sm" }),
|
|
28704
28767
|
children: "Today"
|
|
28705
28768
|
}
|
|
28706
28769
|
)
|
|
@@ -29017,6 +29080,7 @@ var init_EventCalendar_client = __esm({
|
|
|
29017
29080
|
init_EventModalContext();
|
|
29018
29081
|
init_EventModals();
|
|
29019
29082
|
init_WeekTimetableView();
|
|
29083
|
+
init_themedButtonClass();
|
|
29020
29084
|
EventCalendarClient = ({
|
|
29021
29085
|
render
|
|
29022
29086
|
}) => {
|
|
@@ -29305,7 +29369,10 @@ var init_EventCalendar_client = __esm({
|
|
|
29305
29369
|
{
|
|
29306
29370
|
type: "button",
|
|
29307
29371
|
onClick: onToday,
|
|
29308
|
-
className:
|
|
29372
|
+
className: themedButtonClass({
|
|
29373
|
+
variant: display.buttonVariant,
|
|
29374
|
+
size: "sm"
|
|
29375
|
+
}),
|
|
29309
29376
|
children: "Today"
|
|
29310
29377
|
}
|
|
29311
29378
|
)
|
|
@@ -29318,7 +29385,10 @@ var init_EventCalendar_client = __esm({
|
|
|
29318
29385
|
{
|
|
29319
29386
|
type: "button",
|
|
29320
29387
|
onClick: onToday,
|
|
29321
|
-
className:
|
|
29388
|
+
className: themedButtonClass({
|
|
29389
|
+
variant: display.buttonVariant,
|
|
29390
|
+
size: "sm"
|
|
29391
|
+
}),
|
|
29322
29392
|
children: "Try again"
|
|
29323
29393
|
}
|
|
29324
29394
|
)
|
|
@@ -29413,6 +29483,7 @@ var init_form_client = __esm({
|
|
|
29413
29483
|
init_client2();
|
|
29414
29484
|
init_src3();
|
|
29415
29485
|
init_useFormSubmission();
|
|
29486
|
+
init_themedButtonClass();
|
|
29416
29487
|
FormNodeClient = ({
|
|
29417
29488
|
render
|
|
29418
29489
|
}) => {
|
|
@@ -29550,7 +29621,19 @@ var init_form_client = __esm({
|
|
|
29550
29621
|
return renderField(group.field);
|
|
29551
29622
|
}),
|
|
29552
29623
|
showSpamProtection && /* @__PURE__ */ jsx102(AltchaWidget, { challengeUrl: getChallengeUrl(), onSolutionChange: setAltchaSolution }),
|
|
29553
|
-
/* @__PURE__ */ jsx102("div", { className: "fb-actions", children: /* @__PURE__ */ jsx102("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx102(
|
|
29624
|
+
/* @__PURE__ */ jsx102("div", { className: "fb-actions", children: /* @__PURE__ */ jsx102("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx102(
|
|
29625
|
+
"button",
|
|
29626
|
+
{
|
|
29627
|
+
type: "submit",
|
|
29628
|
+
className: themedButtonClass({
|
|
29629
|
+
variant: "primary",
|
|
29630
|
+
size: "md",
|
|
29631
|
+
extraClassName: "rb-w-full rb-sm-w-auto"
|
|
29632
|
+
}),
|
|
29633
|
+
disabled: state.tag === "submitting",
|
|
29634
|
+
children: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel
|
|
29635
|
+
}
|
|
29636
|
+
) }) })
|
|
29554
29637
|
] });
|
|
29555
29638
|
};
|
|
29556
29639
|
}
|
|
@@ -29669,7 +29752,7 @@ function NewsletterFormClient({
|
|
|
29669
29752
|
"button",
|
|
29670
29753
|
{
|
|
29671
29754
|
type: "submit",
|
|
29672
|
-
className: "primary
|
|
29755
|
+
className: themedButtonClass({ variant: "primary", size: "md" }),
|
|
29673
29756
|
disabled: isSubmitting,
|
|
29674
29757
|
children: isSubmitting ? "Subscribing..." : render.display.buttonLabel
|
|
29675
29758
|
}
|
|
@@ -29687,6 +29770,7 @@ var init_newsletter_form_client = __esm({
|
|
|
29687
29770
|
init_client2();
|
|
29688
29771
|
init_src3();
|
|
29689
29772
|
init_api();
|
|
29773
|
+
init_themedButtonClass();
|
|
29690
29774
|
}
|
|
29691
29775
|
});
|
|
29692
29776
|
|
|
@@ -32120,6 +32204,10 @@ function brandNonEmptyString(value, label) {
|
|
|
32120
32204
|
return value;
|
|
32121
32205
|
}
|
|
32122
32206
|
|
|
32207
|
+
// ../theme-core/src/palette/variants/types.ts
|
|
32208
|
+
init_styleTags();
|
|
32209
|
+
import { z as z36 } from "zod";
|
|
32210
|
+
|
|
32123
32211
|
// ../theme-core/src/schema.ts
|
|
32124
32212
|
import { z as z35 } from "zod";
|
|
32125
32213
|
|
|
@@ -32725,8 +32813,6 @@ var themesTurnSchema = z35.object({
|
|
|
32725
32813
|
});
|
|
32726
32814
|
|
|
32727
32815
|
// ../theme-core/src/palette/variants/types.ts
|
|
32728
|
-
init_compatibility();
|
|
32729
|
-
import { z as z36 } from "zod";
|
|
32730
32816
|
function asPaletteVariantId(value) {
|
|
32731
32817
|
if (value.length === 0) {
|
|
32732
32818
|
throw new Error("PaletteVariantId must be a non-empty string");
|
|
@@ -34382,7 +34468,7 @@ init_responsiveMode();
|
|
|
34382
34468
|
import { jsx as jsx120 } from "react/jsx-runtime";
|
|
34383
34469
|
|
|
34384
34470
|
// ../theme-core/src/ThemeFontLoader.tsx
|
|
34385
|
-
import * as
|
|
34471
|
+
import * as React34 from "react";
|
|
34386
34472
|
init_selectorUtils();
|
|
34387
34473
|
import { Fragment as Fragment21, jsx as jsx121, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
34388
34474
|
|