@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.
Files changed (126) hide show
  1. package/dist/_dts/api/src/appointmentSetup.d.ts +2 -2
  2. package/dist/_dts/api/src/bookingConfig.d.ts +6 -0
  3. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +45 -3
  4. package/dist/_dts/api/src/bookingOperations.d.ts +40 -3
  5. package/dist/_dts/api/src/bookingVerticals.d.ts +1 -0
  6. package/dist/_dts/api/src/courses.d.ts +1 -5
  7. package/dist/_dts/api/src/endpoints.d.ts +80 -1
  8. package/dist/_dts/api/src/index.d.ts +3 -2
  9. package/dist/_dts/api/src/navigation/contracts.d.ts +9 -9
  10. package/dist/_dts/api/src/public/endpoints.d.ts +1 -1
  11. package/dist/_dts/api/src/publicExperienceEndpoints.d.ts +15 -1
  12. package/dist/_dts/api/src/resources.d.ts +1 -1
  13. package/dist/_dts/api/src/siteBanner.d.ts +8 -8
  14. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -39
  15. package/dist/_dts/api/src/siteOnboarding.d.ts +1 -0
  16. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +2 -0
  17. package/dist/_dts/api/src/teamMembers.d.ts +27 -0
  18. package/dist/_dts/blocks/src/system/blocks/courses/shared/schemas.d.ts +35 -29
  19. package/dist/_dts/blocks/src/system/blocks/courses/shared/types.d.ts +1 -5
  20. package/dist/_dts/blocks/src/system/blocks/events/shared/schemas.d.ts +40 -34
  21. package/dist/_dts/blocks/src/system/blocks/events/shared/types.d.ts +1 -5
  22. package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +1 -1
  23. package/dist/_dts/blocks/src/system/blocks/products/shared.d.ts +2 -2
  24. package/dist/_dts/blocks/src/system/blocks/shared/bookingPaymentTerms.d.ts +9 -9
  25. package/dist/_dts/blocks/src/system/blocks/shared/teamMembers.d.ts +24 -0
  26. package/dist/_dts/blocks/src/system/blocks/team-members.d.ts +18 -8
  27. package/dist/_dts/blocks/src/system/constants/background.d.ts +1 -1
  28. package/dist/_dts/blocks/src/system/data/loaderEndpoints.d.ts +1 -1
  29. package/dist/_dts/blocks/src/system/data/utils.d.ts +1 -1
  30. package/dist/_dts/blocks/src/system/manifest/schema.d.ts +201 -201
  31. package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -2
  32. package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -0
  33. package/dist/_dts/blocks/src/system/node/schema.d.ts +5 -5
  34. package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +1 -1
  35. package/dist/_dts/blocks/src/system/runtime/nodes/shared/contract-schemas.d.ts +4 -4
  36. package/dist/_dts/blocks/src/system/runtime/shared/themedButtonClass.d.ts +11 -0
  37. package/dist/_dts/blocks/src/system/transforms/registry/ui.d.ts +1 -1
  38. package/dist/_dts/blocks/src/system/transforms/typed.d.ts +3 -3
  39. package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +10 -2
  40. package/dist/_dts/content-model/src/content-types/schema.d.ts +8 -8
  41. package/dist/_dts/content-model/src/metadataConfig.d.ts +1 -0
  42. package/dist/_dts/core/src/branded.d.ts +2 -0
  43. package/dist/_dts/core/src/participants.d.ts +32 -1
  44. package/dist/_dts/core/src/rectification.d.ts +79 -0
  45. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +130 -14
  46. package/dist/_dts/db/src/schemas/forms.d.ts +61 -61
  47. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +17 -15
  48. package/dist/_dts/sdk/src/client/types.d.ts +10 -2
  49. package/dist/_dts/sdk/src/config/types.d.ts +1 -1
  50. package/dist/_dts/sdk/src/config/validation.d.ts +40 -37
  51. package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +17 -8
  52. package/dist/_dts/sdk/src/data/prefetchBlockData.d.ts +1 -1
  53. package/dist/_dts/sdk/src/manifest/passes/pass1-fields.d.ts +19 -19
  54. package/dist/_dts/sdk/src/public-api/contracts.d.ts +87 -69
  55. package/dist/_dts/sdk/src/public-api/runtime.d.ts +1 -1
  56. package/dist/_dts/sdk/src/rendering/islands/types.d.ts +2 -5
  57. package/dist/_dts/sdk/src/version.d.ts +1 -1
  58. package/dist/_dts/theme-core/src/accordions/types.d.ts +11 -11
  59. package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +7 -2
  60. package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +7 -2
  61. package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +7 -2
  62. package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +86 -5
  63. package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +7 -2
  64. package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +7 -2
  65. package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +7 -2
  66. package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +20 -20
  67. package/dist/_dts/theme-core/src/buttons/types.d.ts +27 -27
  68. package/dist/_dts/theme-core/src/cards/types.d.ts +17 -17
  69. package/dist/_dts/theme-core/src/inputs/types.d.ts +14 -14
  70. package/dist/_dts/theme-core/src/interactive/baseSchema.d.ts +2 -2
  71. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +438 -438
  72. package/dist/_dts/theme-core/src/navigation/types.d.ts +16 -16
  73. package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +33 -9
  74. package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +33 -9
  75. package/dist/_dts/theme-core/src/palette/variants/index.d.ts +200 -4
  76. package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +33 -9
  77. package/dist/_dts/theme-core/src/palette/variants/types.d.ts +25 -25
  78. package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +33 -9
  79. package/dist/_dts/theme-core/src/schema.d.ts +662 -662
  80. package/dist/_dts/theme-core/src/shared/componentStyles.d.ts +4 -4
  81. package/dist/_dts/theme-core/src/site-styles/curatedChoices.d.ts +27 -0
  82. package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +48 -194
  83. package/dist/_dts/theme-core/src/site-styles/designState.d.ts +15 -15
  84. package/dist/_dts/theme-core/src/site-styles/generatedSchemas.d.ts +7 -7
  85. package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -1
  86. package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +12 -14
  87. package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +46 -0
  88. package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +5 -5
  89. package/dist/_dts/ui/src/badge.d.ts +1 -1
  90. package/dist/_dts/ui/src/button-group.d.ts +1 -1
  91. package/dist/_dts/ui/src/button.d.ts +2 -2
  92. package/dist/_dts/ui/src/callout.d.ts +1 -1
  93. package/dist/_dts/ui/src/card.d.ts +1 -1
  94. package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +47 -0
  95. package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +15 -0
  96. package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +15 -0
  97. package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +50 -0
  98. package/dist/_dts/ui/src/palette/hex.d.ts +23 -0
  99. package/dist/_dts/ui/src/palette/index.d.ts +14 -0
  100. package/dist/_dts/ui/src/surface.d.ts +2 -2
  101. package/dist/_dts/ui/src/toggle.d.ts +4 -4
  102. package/dist/cli/index.mjs +1535 -1183
  103. package/dist/client/client.mjs +3944 -3454
  104. package/dist/client/hooks.mjs +2053 -1743
  105. package/dist/client/rendering/client.mjs +311 -167
  106. package/dist/client/rendering/islands.mjs +159 -73
  107. package/dist/client/rendering.mjs +1918 -1447
  108. package/dist/preview-next/before-render.mjs +147 -1
  109. package/dist/preview-next/client/runtime.mjs +2828 -2174
  110. package/dist/preview-next/middleware.mjs +147 -1
  111. package/dist/server/components.mjs +4311 -3928
  112. package/dist/server/config-validation.mjs +2201 -1906
  113. package/dist/server/config.mjs +2201 -1906
  114. package/dist/server/data.mjs +2053 -1743
  115. package/dist/server/index.mjs +171 -4
  116. package/dist/server/next.mjs +3442 -3024
  117. package/dist/server/page-converter.mjs +2109 -1962
  118. package/dist/server/prebuild.mjs +1 -1
  119. package/dist/server/rendering/server.mjs +4021 -3622
  120. package/dist/server/rendering.mjs +4021 -3622
  121. package/dist/server/routing.mjs +2377 -2058
  122. package/dist/server/server.mjs +2244 -1915
  123. package/dist/server/theme-bridge.mjs +130 -126
  124. package/dist/server/theme.mjs +131 -129
  125. package/package.json +1 -1
  126. 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
  };
@@ -511,7 +505,10 @@ function createBlockApi(config) {
511
505
  url = appendQuery(url, queryParams);
512
506
  }
513
507
  const authHeaders = getAuthHeaders(selectedAuth);
514
- const headers = { ...authHeaders };
508
+ const headers = {
509
+ Accept: "application/json",
510
+ ...authHeaders
511
+ };
515
512
  if (body !== void 0) {
516
513
  headers["Content-Type"] = "application/json";
517
514
  }
@@ -1830,11 +1827,11 @@ var init_presets = __esm({
1830
1827
  }
1831
1828
  });
1832
1829
 
1833
- // ../theme-core/src/site-styles/compatibility.ts
1830
+ // ../theme-core/src/site-styles/styleTags.ts
1834
1831
  import { z as z2 } from "zod";
1835
1832
  var STYLE_AXIS_VALUES, styleTagsSchema;
1836
- var init_compatibility = __esm({
1837
- "../theme-core/src/site-styles/compatibility.ts"() {
1833
+ var init_styleTags = __esm({
1834
+ "../theme-core/src/site-styles/styleTags.ts"() {
1838
1835
  "use strict";
1839
1836
  STYLE_AXIS_VALUES = {
1840
1837
  tone: ["minimal", "classic", "bold"],
@@ -1873,7 +1870,7 @@ var init_types2 = __esm({
1873
1870
  "../theme-core/src/buttons/personalities/types.ts"() {
1874
1871
  "use strict";
1875
1872
  init_types();
1876
- init_compatibility();
1873
+ init_styleTags();
1877
1874
  buttonPersonalityIdSchema = z3.string().min(1).transform((value) => asButtonPersonalityId(value));
1878
1875
  buttonPersonalitySchema = z3.object({
1879
1876
  id: buttonPersonalityIdSchema,
@@ -3126,6 +3123,7 @@ var init_assertNever = __esm({
3126
3123
  var init_participants = __esm({
3127
3124
  "../core/src/participants.ts"() {
3128
3125
  "use strict";
3126
+ init_branded();
3129
3127
  init_result();
3130
3128
  }
3131
3129
  });
@@ -4346,7 +4344,7 @@ function getServerStorage() {
4346
4344
  _serverStorageChecked = true;
4347
4345
  try {
4348
4346
  const globalWithNonWebpackRequire = globalThis;
4349
- const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ : __require;
4347
+ const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ : new Function("id", "return require(id)");
4350
4348
  const asyncHooks = nonWebpackRequire("async_hooks");
4351
4349
  const AsyncLocalStorage = asyncHooks.AsyncLocalStorage;
4352
4350
  if (AsyncLocalStorage) {
@@ -6137,6 +6135,19 @@ var init_media2 = __esm({
6137
6135
  }
6138
6136
  });
6139
6137
 
6138
+ // ../blocks/src/system/runtime/shared/themedButtonClass.ts
6139
+ function themedButtonClass(spec) {
6140
+ const { variant, size, extraClassName } = spec;
6141
+ const normalizedVariant = variant.trim();
6142
+ const variantClasses = normalizedVariant ? [normalizedVariant, `button-${normalizedVariant}`] : [];
6143
+ return [...variantClasses, `btn-${size}`, extraClassName].filter(Boolean).join(" ");
6144
+ }
6145
+ var init_themedButtonClass = __esm({
6146
+ "../blocks/src/system/runtime/shared/themedButtonClass.ts"() {
6147
+ "use strict";
6148
+ }
6149
+ });
6150
+
6140
6151
  // ../blocks/src/system/runtime/nodes/file-download.tsx
6141
6152
  import { jsx as jsx13, jsxs } from "react/jsx-runtime";
6142
6153
  function isDownloadableMediaType(type) {
@@ -6210,7 +6221,11 @@ function FileDownloadNode({
6210
6221
  {
6211
6222
  href,
6212
6223
  download: filename,
6213
- className: `${variant} button-${variant} rb-inline-flex rb-shrink-0 rb-items-center rb-justify-center rb-gap-2`,
6224
+ className: themedButtonClass({
6225
+ variant,
6226
+ size: "md",
6227
+ extraClassName: "rb-inline-flex rb-shrink-0 rb-items-center rb-justify-center rb-gap-2"
6228
+ }),
6214
6229
  children: [
6215
6230
  /* @__PURE__ */ jsx13(Download, { "aria-hidden": "true" }),
6216
6231
  label
@@ -6226,6 +6241,7 @@ var init_file_download = __esm({
6226
6241
  init_lucide_react();
6227
6242
  init_colorStyles();
6228
6243
  init_media2();
6244
+ init_themedButtonClass();
6229
6245
  init_media();
6230
6246
  FILE_DOWNLOAD_BUTTON_VARIANTS = ["primary", "secondary", "outline", "link"];
6231
6247
  }
@@ -8109,7 +8125,9 @@ var init_schemas = __esm({
8109
8125
  courseTeamMemberSummarySchema = z8.object({
8110
8126
  id: z8.string(),
8111
8127
  name: z8.string(),
8112
- summary: z8.string().nullable()
8128
+ roleLabel: z8.string().nullable(),
8129
+ summary: z8.string().nullable(),
8130
+ profilePath: z8.string().nullable()
8113
8131
  });
8114
8132
  coursePricingOptionSchema = z8.object({
8115
8133
  id: z8.string(),
@@ -8632,6 +8650,12 @@ var init_CoursePricingDisplay = __esm({
8632
8650
 
8633
8651
  // ../blocks/src/system/runtime/nodes/event-details/view.tsx
8634
8652
  import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
8653
+ function TeamMemberName({
8654
+ name,
8655
+ profilePath
8656
+ }) {
8657
+ return profilePath ? /* @__PURE__ */ jsx23("a", { href: profilePath, className: "rb-hover-opacity-80", children: /* @__PURE__ */ jsx23("strong", { children: name }) }) : /* @__PURE__ */ jsx23("strong", { children: name });
8658
+ }
8635
8659
  function EventDetailsView({
8636
8660
  selection,
8637
8661
  showVenue,
@@ -8695,7 +8719,13 @@ function EventDetailsView({
8695
8719
  teamMembers.length > 0 ? /* @__PURE__ */ jsxs9("div", { className: "rb-mt-6", children: [
8696
8720
  /* @__PURE__ */ jsx23("div", { className: "rb-label rb-mb-2", children: "Team members" }),
8697
8721
  /* @__PURE__ */ jsx23("div", { className: "rb-flex rb-flex-col rb-gap-3", children: teamMembers.map((teamMember) => /* @__PURE__ */ jsxs9("div", { children: [
8698
- /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23("strong", { children: teamMember.name }) }),
8722
+ /* @__PURE__ */ jsx23("p", { children: /* @__PURE__ */ jsx23(
8723
+ TeamMemberName,
8724
+ {
8725
+ name: teamMember.name,
8726
+ profilePath: teamMember.profilePath
8727
+ }
8728
+ ) }),
8699
8729
  teamMember.summary ? /* @__PURE__ */ jsx23("p", { className: "rb-caption status-muted", children: teamMember.summary }) : null
8700
8730
  ] }, teamMember.id)) })
8701
8731
  ] }) : null,
@@ -9245,6 +9275,12 @@ var init_runs = __esm({
9245
9275
 
9246
9276
  // ../blocks/src/system/runtime/nodes/course-details/view.tsx
9247
9277
  import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
9278
+ function TeamMemberName2({
9279
+ name,
9280
+ profilePath
9281
+ }) {
9282
+ return profilePath ? /* @__PURE__ */ jsx27("a", { href: profilePath, className: "rb-hover-opacity-80", children: /* @__PURE__ */ jsx27("strong", { children: name }) }) : /* @__PURE__ */ jsx27("strong", { children: name });
9283
+ }
9248
9284
  function parseLimit2(value, fallback) {
9249
9285
  if (value === "all") return "all";
9250
9286
  const n = typeof value === "string" ? Number.parseInt(value, 10) : typeof value === "number" ? value : NaN;
@@ -9302,7 +9338,13 @@ function CourseDetailsView(props2) {
9302
9338
  teamMembers.length > 0 && /* @__PURE__ */ jsxs13("div", { children: [
9303
9339
  /* @__PURE__ */ jsx27("div", { className: "rb-label rb-mb-2", children: "Team members" }),
9304
9340
  /* @__PURE__ */ jsx27("div", { className: "rb-flex rb-flex-col rb-gap-3", children: teamMembers.map((teamMember) => /* @__PURE__ */ jsxs13("div", { children: [
9305
- /* @__PURE__ */ jsx27("p", { children: /* @__PURE__ */ jsx27("strong", { children: teamMember.name }) }),
9341
+ /* @__PURE__ */ jsx27("p", { children: /* @__PURE__ */ jsx27(
9342
+ TeamMemberName2,
9343
+ {
9344
+ name: teamMember.name,
9345
+ profilePath: teamMember.profilePath
9346
+ }
9347
+ ) }),
9306
9348
  teamMember.summary && /* @__PURE__ */ jsx27("p", { className: "rb-caption status-muted", children: teamMember.summary })
9307
9349
  ] }, teamMember.id)) })
9308
9350
  ] })
@@ -9675,6 +9717,7 @@ var init_EventCard = __esm({
9675
9717
  init_EventCardIcons();
9676
9718
  init_eventCapacity();
9677
9719
  init_utils();
9720
+ init_themedButtonClass();
9678
9721
  EventCard = ({
9679
9722
  event,
9680
9723
  cardVariant = "default",
@@ -9700,7 +9743,7 @@ var init_EventCard = __esm({
9700
9743
  const isSoldOut = cta.hidden;
9701
9744
  const { available: spotsLeft } = getEventAvailability(event);
9702
9745
  const cardClass = `card-${cardVariant}`;
9703
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
9746
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
9704
9747
  const title = event.title;
9705
9748
  const summary = event.presentation?.summary ?? event.description;
9706
9749
  const image = event.presentation?.image ?? null;
@@ -9782,6 +9825,7 @@ var init_EventCompactRow = __esm({
9782
9825
  "use strict";
9783
9826
  init_utils();
9784
9827
  init_EventCardIcons();
9828
+ init_themedButtonClass();
9785
9829
  EventCompactRow = ({
9786
9830
  event,
9787
9831
  buttonVariant = "primary",
@@ -9793,7 +9837,7 @@ var init_EventCompactRow = __esm({
9793
9837
  const price = formatEventPrice(event);
9794
9838
  const teacherLine = formatEventTeacherLine(event);
9795
9839
  const cta = resolveEventCta(event, buttonText);
9796
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
9840
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "sm" });
9797
9841
  return /* @__PURE__ */ jsxs17("div", { className: "event-compact-row", children: [
9798
9842
  /* @__PURE__ */ jsxs17("div", { className: "event-compact-row-content", children: [
9799
9843
  /* @__PURE__ */ jsxs17("div", { className: "event-compact-row-top", children: [
@@ -9865,6 +9909,7 @@ var init_EventSpotlight = __esm({
9865
9909
  "../blocks/src/system/runtime/nodes/events/EventSpotlight.tsx"() {
9866
9910
  "use strict";
9867
9911
  init_shared3();
9912
+ init_themedButtonClass();
9868
9913
  EventSpotlight = ({
9869
9914
  events,
9870
9915
  layout = "grid",
@@ -9886,7 +9931,7 @@ var init_EventSpotlight = __esm({
9886
9931
  }
9887
9932
  const containerClass = getContainerClass(layout, columns);
9888
9933
  const cardOrientation = getCardOrientation(layout);
9889
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
9934
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
9890
9935
  return /* @__PURE__ */ jsxs19("div", { className: `event-spotlight-section ${className || ""}`, "data-block": "event-spotlight", children: [
9891
9936
  /* @__PURE__ */ jsx33("div", { className: `event-spotlight ${containerClass}`, children: normalizedEvents.map((event) => /* @__PURE__ */ jsx33(
9892
9937
  EventCard,
@@ -9976,7 +10021,9 @@ var init_schemas2 = __esm({
9976
10021
  publicTeamMemberSummarySchema = z9.object({
9977
10022
  id: z9.string(),
9978
10023
  name: z9.string(),
9979
- summary: z9.string().nullable()
10024
+ roleLabel: z9.string().nullable(),
10025
+ summary: z9.string().nullable(),
10026
+ profilePath: z9.string().nullable()
9980
10027
  });
9981
10028
  publicEventSchema = z9.object({
9982
10029
  kind: z9.enum(["event", "course_session"]).optional(),
@@ -11251,7 +11298,8 @@ function ctaButton(opts) {
11251
11298
  },
11252
11299
  size: {
11253
11300
  $bind: {
11254
- from: sizePath
11301
+ from: sizePath,
11302
+ fallback: opts?.sizeFallback ?? "md"
11255
11303
  }
11256
11304
  },
11257
11305
  ...opts?.className ? { className: opts.className } : {},
@@ -15510,7 +15558,19 @@ var init_teamMember = __esm({
15510
15558
  bind("photo")
15511
15559
  )
15512
15560
  ]),
15513
- text({ as: "h3" }, bind("name")),
15561
+ link(
15562
+ {
15563
+ href: { $bind: { from: "profilePath" } },
15564
+ className: "rb-team-member-name-link"
15565
+ },
15566
+ [text({ as: "h3" }, bind("name"))],
15567
+ when("profilePath")
15568
+ ),
15569
+ text(
15570
+ { as: "h3" },
15571
+ when("profilePath", { not: true }),
15572
+ bind("name")
15573
+ ),
15514
15574
  text({ as: "p", className: "rb-team-member-role" }, when("role"), bind("role")),
15515
15575
  richText(
15516
15576
  { className: "rb-prose rb-max-w-none" },
@@ -20863,7 +20923,10 @@ function renderCalendarGrid(display) {
20863
20923
  "button",
20864
20924
  {
20865
20925
  type: "button",
20866
- className: `${display.buttonVariant} button-${display.buttonVariant} rb-px-3 rb-py-1`,
20926
+ className: themedButtonClass({
20927
+ variant: display.buttonVariant,
20928
+ size: "sm"
20929
+ }),
20867
20930
  children: "Today"
20868
20931
  }
20869
20932
  )
@@ -20946,7 +21009,10 @@ function renderTimetableSsr(display) {
20946
21009
  "button",
20947
21010
  {
20948
21011
  type: "button",
20949
- className: `${display.buttonVariant} button-${display.buttonVariant} rb-px-3 rb-py-1`,
21012
+ className: themedButtonClass({
21013
+ variant: display.buttonVariant,
21014
+ size: "sm"
21015
+ }),
20950
21016
  children: "Today"
20951
21017
  }
20952
21018
  )
@@ -21071,6 +21137,7 @@ var init_EventCalendar_server = __esm({
21071
21137
  init_renderEventListItem();
21072
21138
  init_utils();
21073
21139
  init_timetableModel();
21140
+ init_themedButtonClass();
21074
21141
  EventCalendarSSR = (props2) => {
21075
21142
  const islandProps = buildEventCalendarInteractiveIslandProps(props2);
21076
21143
  const display = islandProps.render.display;
@@ -21201,6 +21268,7 @@ var init_form_server = __esm({
21201
21268
  "use strict";
21202
21269
  init_clsx();
21203
21270
  init_ssr();
21271
+ init_themedButtonClass();
21204
21272
  init_form_interactive();
21205
21273
  FormNodeSSR = ({
21206
21274
  blockId,
@@ -21334,7 +21402,18 @@ var init_form_server = __esm({
21334
21402
  }
21335
21403
  return renderField(group.field);
21336
21404
  }),
21337
- /* @__PURE__ */ jsx46("div", { className: "fb-actions", children: /* @__PURE__ */ jsx46("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx46("button", { type: "submit", className: "primary button-primary rb-w-full rb-sm-w-auto", children: display.submitLabel }) }) })
21405
+ /* @__PURE__ */ jsx46("div", { className: "fb-actions", children: /* @__PURE__ */ jsx46("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx46(
21406
+ "button",
21407
+ {
21408
+ type: "submit",
21409
+ className: themedButtonClass({
21410
+ variant: "primary",
21411
+ size: "md",
21412
+ extraClassName: "rb-w-full rb-sm-w-auto"
21413
+ }),
21414
+ children: display.submitLabel
21415
+ }
21416
+ ) }) })
21338
21417
  ]
21339
21418
  }
21340
21419
  )
@@ -21416,7 +21495,14 @@ function NewsletterFormSSR({
21416
21495
  ),
21417
21496
  /* @__PURE__ */ jsxs32("div", { className: "newsletter-form-fields", children: [
21418
21497
  fields.map(renderField),
21419
- /* @__PURE__ */ jsx47("div", { className: "newsletter-submit", children: /* @__PURE__ */ jsx47("button", { type: "submit", className: "primary button-primary", children: display.buttonLabel }) })
21498
+ /* @__PURE__ */ jsx47("div", { className: "newsletter-submit", children: /* @__PURE__ */ jsx47(
21499
+ "button",
21500
+ {
21501
+ type: "submit",
21502
+ className: themedButtonClass({ variant: "primary", size: "md" }),
21503
+ children: display.buttonLabel
21504
+ }
21505
+ ) })
21420
21506
  ] }),
21421
21507
  display.privacyNote && /* @__PURE__ */ jsx47("p", { className: "newsletter-privacy-note", children: display.privacyNote })
21422
21508
  ] })
@@ -21430,6 +21516,7 @@ var init_newsletter_form_server = __esm({
21430
21516
  "use strict";
21431
21517
  init_clsx();
21432
21518
  init_ssr();
21519
+ init_themedButtonClass();
21433
21520
  init_newsletter_form_interactive();
21434
21521
  newsletter_form_server_default = NewsletterFormSSR;
21435
21522
  }
@@ -29737,6 +29824,7 @@ var init_PaymentSelectionStep = __esm({
29737
29824
  init_lucide_react();
29738
29825
  init_utils3();
29739
29826
  init_spinner();
29827
+ init_themedButtonClass();
29740
29828
  init_CheckIcon2();
29741
29829
  init_SelectableOptionCard();
29742
29830
  PaymentSelectionStep = ({
@@ -29837,7 +29925,7 @@ var init_PaymentSelectionStep = __esm({
29837
29925
  "button",
29838
29926
  {
29839
29927
  type: "button",
29840
- className: "primary button-primary",
29928
+ className: themedButtonClass({ variant: "primary", size: "md" }),
29841
29929
  disabled: !email.trim(),
29842
29930
  onClick: onRequestLogin,
29843
29931
  children: "Email me a login link"
@@ -31561,7 +31649,7 @@ function EventRegistrationWizard(props2) {
31561
31649
  } = props2;
31562
31650
  const maxTicketsNum = parseInt(maxTickets, 10) || 5;
31563
31651
  const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
31564
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
31652
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
31565
31653
  const wizard = useEventRegistrationWizard({
31566
31654
  anchorId: EVENT_REGISTRATION_ANCHOR_ID,
31567
31655
  occurrenceContext: occurrenceContext ?? null,
@@ -31698,6 +31786,7 @@ var init_EventRegistrationWizard = __esm({
31698
31786
  init_useEventRegistrationWizard();
31699
31787
  init_MagicLinkForm();
31700
31788
  init_spinner();
31789
+ init_themedButtonClass();
31701
31790
  init_event_registration2();
31702
31791
  EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
31703
31792
  EVENT_PORTAL_AUTH_COPY = {
@@ -32143,7 +32232,7 @@ function ErrorStep2({
32143
32232
  buttonVariant = "primary",
32144
32233
  onRetry
32145
32234
  }) {
32146
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
32235
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
32147
32236
  return /* @__PURE__ */ jsxs73("div", { className: "cr-error", role: "alert", children: [
32148
32237
  /* @__PURE__ */ jsx100(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx100(CrossIcon, {}) }),
32149
32238
  /* @__PURE__ */ jsx100("h3", { className: "cr-error__title", children: "Enrollment Failed" }),
@@ -32155,6 +32244,7 @@ var init_ErrorStep2 = __esm({
32155
32244
  "../blocks/src/system/runtime/nodes/course-registration/ErrorStep.tsx"() {
32156
32245
  "use strict";
32157
32246
  init_shared6();
32247
+ init_themedButtonClass();
32158
32248
  }
32159
32249
  });
32160
32250
 
@@ -32166,7 +32256,7 @@ function VerifyingTimeoutStep2({
32166
32256
  onCheckAgain,
32167
32257
  supportEmail
32168
32258
  }) {
32169
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
32259
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
32170
32260
  return /* @__PURE__ */ jsxs74("div", { className: "cr-error", role: "alert", children: [
32171
32261
  /* @__PURE__ */ jsx101(StateIcon, { variant: "warning", children: /* @__PURE__ */ jsx101(ClockIcon, {}) }),
32172
32262
  /* @__PURE__ */ jsx101("h3", { className: "cr-error__title", children: "Payment Verification Taking Longer" }),
@@ -32183,6 +32273,7 @@ var init_VerifyingTimeoutStep2 = __esm({
32183
32273
  "../blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.tsx"() {
32184
32274
  "use strict";
32185
32275
  init_shared6();
32276
+ init_themedButtonClass();
32186
32277
  }
32187
32278
  });
32188
32279
 
@@ -32194,7 +32285,7 @@ function PaymentFailedStep2({
32194
32285
  buttonVariant = "primary",
32195
32286
  onRetry
32196
32287
  }) {
32197
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
32288
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
32198
32289
  return /* @__PURE__ */ jsxs75("div", { className: "cr-payment-failed", role: "alert", children: [
32199
32290
  /* @__PURE__ */ jsx102(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx102(CrossIcon, {}) }),
32200
32291
  /* @__PURE__ */ jsx102("h3", { className: "cr-payment-failed__title", children: "Payment Failed" }),
@@ -32206,6 +32297,7 @@ var init_PaymentFailedStep2 = __esm({
32206
32297
  "../blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.tsx"() {
32207
32298
  "use strict";
32208
32299
  init_shared6();
32300
+ init_themedButtonClass();
32209
32301
  }
32210
32302
  });
32211
32303
 
@@ -32279,7 +32371,16 @@ var init_CourseRegistrationErrorBoundary = __esm({
32279
32371
  });
32280
32372
 
32281
32373
  // ../blocks/src/system/runtime/nodes/course-registration/components.tsx
32374
+ import React19 from "react";
32282
32375
  import { Fragment as Fragment15, jsx as jsx105, jsxs as jsxs78 } from "react/jsx-runtime";
32376
+ function TeamMemberInlineList({
32377
+ teamMembers
32378
+ }) {
32379
+ return /* @__PURE__ */ jsx105(Fragment15, { children: teamMembers.map((teamMember, index) => /* @__PURE__ */ jsxs78(React19.Fragment, { children: [
32380
+ index > 0 ? ", " : "",
32381
+ teamMember.profilePath ? /* @__PURE__ */ jsx105("a", { href: teamMember.profilePath, children: teamMember.name }) : teamMember.name
32382
+ ] }, teamMember.id)) });
32383
+ }
32283
32384
  function CourseCard({
32284
32385
  course,
32285
32386
  isSelected,
@@ -32360,7 +32461,7 @@ function CourseSummary({
32360
32461
  teamMembers.length > 0 && /* @__PURE__ */ jsxs78("div", { className: "cr-summary__venue", children: [
32361
32462
  /* @__PURE__ */ jsx105("strong", { children: "Team:" }),
32362
32463
  " ",
32363
- teamMembers.map((teamMember) => teamMember.name).join(", ")
32464
+ /* @__PURE__ */ jsx105(TeamMemberInlineList, { teamMembers })
32364
32465
  ] }),
32365
32466
  showPrice && pricing.display.kind !== "unavailable" && /* @__PURE__ */ jsxs78("p", { className: "cr-summary__price", children: [
32366
32467
  /* @__PURE__ */ jsx105("strong", { children: pricing.selectableOptions.length > 0 ? "Pricing:" : "Price:" }),
@@ -33198,7 +33299,7 @@ function CourseRegistrationWizard(props2) {
33198
33299
  handleRetry,
33199
33300
  handleBookingModeChange
33200
33301
  } = useCourseRegistrationWizard(props2);
33201
- const buttonClass = `${buttonVariant} button-${buttonVariant}`;
33302
+ const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
33202
33303
  if (scopedCourses.length === 0) {
33203
33304
  return /* @__PURE__ */ jsx106(
33204
33305
  "div",
@@ -33608,6 +33709,7 @@ var init_CourseRegistrationWizard = __esm({
33608
33709
  init_PaymentFailedStep2();
33609
33710
  init_VerifyingTimeoutStep2();
33610
33711
  init_spinner();
33712
+ init_themedButtonClass();
33611
33713
  }
33612
33714
  });
33613
33715
 
@@ -33917,7 +34019,7 @@ var init_location_map_client = __esm({
33917
34019
  });
33918
34020
 
33919
34021
  // ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
33920
- import * as React20 from "react";
34022
+ import * as React21 from "react";
33921
34023
  function storageKey(siteId) {
33922
34024
  return `riverbank:shop-cart:${siteId}`;
33923
34025
  }
@@ -33933,8 +34035,8 @@ function addPassToCommerceCart(siteId, input) {
33933
34035
  }
33934
34036
  function useCommerceCart(siteId) {
33935
34037
  const effectiveSiteId = siteId ?? "unknown";
33936
- const store = React20.useMemo(() => getStore(effectiveSiteId), [effectiveSiteId]);
33937
- const state = React20.useSyncExternalStore(
34038
+ const store = React21.useMemo(() => getStore(effectiveSiteId), [effectiveSiteId]);
34039
+ const state = React21.useSyncExternalStore(
33938
34040
  (listener) => store.subscribe(listener),
33939
34041
  () => store.getSnapshot(),
33940
34042
  () => EMPTY_STATE
@@ -34029,11 +34131,11 @@ var init_shop_commerce_store = __esm({
34029
34131
  });
34030
34132
 
34031
34133
  // ../blocks/src/system/runtime/nodes/shop-add-feedback.tsx
34032
- import * as React21 from "react";
34134
+ import * as React22 from "react";
34033
34135
  import { jsx as jsx111, jsxs as jsxs82 } from "react/jsx-runtime";
34034
34136
  function useTransientShopAddFeedback(timeoutMs = DEFAULT_TIMEOUT_MS) {
34035
- const [activeKey, setActiveKey] = React21.useState(null);
34036
- React21.useEffect(() => {
34137
+ const [activeKey, setActiveKey] = React22.useState(null);
34138
+ React22.useEffect(() => {
34037
34139
  if (!activeKey) return;
34038
34140
  const timeoutId = window.setTimeout(() => {
34039
34141
  setActiveKey((current) => current === activeKey ? null : current);
@@ -34190,7 +34292,7 @@ var init_shop_state = __esm({
34190
34292
  });
34191
34293
 
34192
34294
  // ../blocks/src/system/runtime/nodes/shop.client.tsx
34193
- import React22, { useCallback as useCallback10, useEffect as useEffect21, useRef as useRef11, useState as useState17 } from "react";
34295
+ import React23, { useCallback as useCallback10, useEffect as useEffect21, useRef as useRef11, useState as useState17 } from "react";
34194
34296
  import { Fragment as Fragment17, jsx as jsx112, jsxs as jsxs83 } from "react/jsx-runtime";
34195
34297
  function ShopClient(props2) {
34196
34298
  return /* @__PURE__ */ jsx112(PassesMembershipsController, { render: props2.render });
@@ -34202,7 +34304,7 @@ function getCheckoutModalTitle(checkout2) {
34202
34304
  }
34203
34305
  function PassesMembershipsController({ render }) {
34204
34306
  const api = useBlockApi();
34205
- const [state, dispatch] = React22.useReducer(
34307
+ const [state, dispatch] = React23.useReducer(
34206
34308
  shopPassesMembershipsReducer,
34207
34309
  initialShopPassesMembershipsState
34208
34310
  );
@@ -36420,7 +36522,7 @@ var init_embla_carousel_react_esm = __esm({
36420
36522
  });
36421
36523
 
36422
36524
  // ../blocks/src/system/runtime/nodes/carousel.client.tsx
36423
- import React23 from "react";
36525
+ import React24 from "react";
36424
36526
  import { Fragment as Fragment18, jsx as jsx113, jsxs as jsxs84 } from "react/jsx-runtime";
36425
36527
  function normalizeCarouselProps(input) {
36426
36528
  const transition = input.transition === "fade" ? "fade" : "slide";
@@ -36475,8 +36577,8 @@ var init_carousel_client = __esm({
36475
36577
  autoplayDelay,
36476
36578
  loop
36477
36579
  }) => {
36478
- const slides = React23.Children.toArray(children).filter(Boolean);
36479
- const normalized = React23.useMemo(
36580
+ const slides = React24.Children.toArray(children).filter(Boolean);
36581
+ const normalized = React24.useMemo(
36480
36582
  () => normalizeCarouselProps({
36481
36583
  slidesToShow,
36482
36584
  transition,
@@ -36499,11 +36601,11 @@ var init_carousel_client = __esm({
36499
36601
  ]
36500
36602
  );
36501
36603
  const resolvedSlides = resolveSlidesToShowMobile(normalized.slidesToShow);
36502
- const cssVars = React23.useMemo(
36604
+ const cssVars = React24.useMemo(
36503
36605
  () => getCarouselSlidesToShowCssVars(normalized.slidesToShow),
36504
36606
  [normalized.slidesToShow]
36505
36607
  );
36506
- const plugins = React23.useMemo(() => {
36608
+ const plugins = React24.useMemo(() => {
36507
36609
  if (!normalized.autoplay) return void 0;
36508
36610
  return [
36509
36611
  Autoplay({
@@ -36525,11 +36627,11 @@ var init_carousel_client = __esm({
36525
36627
  },
36526
36628
  plugins
36527
36629
  );
36528
- const [selectedIndex, setSelectedIndex] = React23.useState(0);
36529
- const [scrollSnaps, setScrollSnaps] = React23.useState([]);
36530
- const [canScrollPrev, setCanScrollPrev] = React23.useState(false);
36531
- const [canScrollNext, setCanScrollNext] = React23.useState(false);
36532
- React23.useEffect(() => {
36630
+ const [selectedIndex, setSelectedIndex] = React24.useState(0);
36631
+ const [scrollSnaps, setScrollSnaps] = React24.useState([]);
36632
+ const [canScrollPrev, setCanScrollPrev] = React24.useState(false);
36633
+ const [canScrollNext, setCanScrollNext] = React24.useState(false);
36634
+ React24.useEffect(() => {
36533
36635
  if (!api) return;
36534
36636
  const onInit = () => {
36535
36637
  setScrollSnaps(api.scrollSnapList());
@@ -36552,7 +36654,7 @@ var init_carousel_client = __esm({
36552
36654
  api.off("reInit", onSelect);
36553
36655
  };
36554
36656
  }, [api]);
36555
- React23.useEffect(() => {
36657
+ React24.useEffect(() => {
36556
36658
  if (!api || !normalized.autoplay) return;
36557
36659
  const autoplayPlugin = api.plugins()?.autoplay;
36558
36660
  if (!autoplayPlugin) return;
@@ -36763,16 +36865,16 @@ var init_shop_checkout_state = __esm({
36763
36865
  });
36764
36866
 
36765
36867
  // ../blocks/src/system/runtime/nodes/shop-commerce.tsx
36766
- import * as React24 from "react";
36868
+ import * as React25 from "react";
36767
36869
  import { Fragment as Fragment19, jsx as jsx114, jsxs as jsxs85 } from "react/jsx-runtime";
36768
36870
  function ProductListController(props2) {
36769
36871
  const api = useBlockApi();
36770
36872
  const cart2 = useCommerceCart(api.config.siteId);
36771
36873
  const addFeedback = useTransientShopAddFeedback();
36772
- const [variantSelection, setVariantSelection] = React24.useState(
36874
+ const [variantSelection, setVariantSelection] = React25.useState(
36773
36875
  () => Object.fromEntries(props2.render.display.cards.map((card) => [card.productId, card.selectedVariantId]))
36774
36876
  );
36775
- const cards = React24.useMemo(
36877
+ const cards = React25.useMemo(
36776
36878
  () => props2.render.hydration.products.map(
36777
36879
  (product) => buildProductCardDisplay(
36778
36880
  product,
@@ -36787,7 +36889,7 @@ function ProductListController(props2) {
36787
36889
  ),
36788
36890
  [props2.render.hydration, variantSelection]
36789
36891
  );
36790
- const display = React24.useMemo(
36892
+ const display = React25.useMemo(
36791
36893
  () => ({
36792
36894
  ...props2.render.display,
36793
36895
  state: cards.length === 0 ? "empty" : "ready",
@@ -36849,17 +36951,17 @@ function ProductDetailController(props2) {
36849
36951
  const api = useBlockApi();
36850
36952
  const cart2 = useCommerceCart(api.config.siteId);
36851
36953
  const addFeedback = useTransientShopAddFeedback();
36852
- const selectedProduct = React24.useMemo(
36954
+ const selectedProduct = React25.useMemo(
36853
36955
  () => props2.render.hydration.products.find((product) => product.id === props2.render.hydration.productId) ?? null,
36854
36956
  [props2.render.hydration.productId, props2.render.hydration.products]
36855
36957
  );
36856
- const [variantId, setVariantId] = React24.useState(
36958
+ const [variantId, setVariantId] = React25.useState(
36857
36959
  props2.render.display.state === "ready" ? props2.render.display.selectedVariantId : null
36858
36960
  );
36859
- React24.useEffect(() => {
36961
+ React25.useEffect(() => {
36860
36962
  setVariantId(props2.render.display.state === "ready" ? props2.render.display.selectedVariantId : null);
36861
36963
  }, [props2.render.display]);
36862
- const display = React24.useMemo(
36964
+ const display = React25.useMemo(
36863
36965
  () => buildProductDetailDisplay(
36864
36966
  selectedProduct,
36865
36967
  {
@@ -36927,7 +37029,7 @@ function ProductDetailController(props2) {
36927
37029
  function CartController(props2) {
36928
37030
  const api = useBlockApi();
36929
37031
  const cart2 = useCommerceCart(api.config.siteId);
36930
- const display = React24.useMemo(
37032
+ const display = React25.useMemo(
36931
37033
  () => getShopDisplayForItems(props2.render, cart2.items),
36932
37034
  [cart2.items, props2.render]
36933
37035
  );
@@ -36970,11 +37072,11 @@ function CartController(props2) {
36970
37072
  function CheckoutController(props2) {
36971
37073
  const api = useBlockApi();
36972
37074
  const cart2 = useCommerceCart(api.config.siteId);
36973
- const [state, dispatch] = React24.useReducer(
37075
+ const [state, dispatch] = React25.useReducer(
36974
37076
  shopCheckoutReducer,
36975
37077
  initialShopCheckoutState
36976
37078
  );
36977
- React24.useEffect(() => {
37079
+ React25.useEffect(() => {
36978
37080
  const checkout2 = consumeSearchParam("checkout");
36979
37081
  if (checkout2 === "success") {
36980
37082
  cart2.clear();
@@ -36983,7 +37085,7 @@ function CheckoutController(props2) {
36983
37085
  dispatch({ type: "setNotice", notice: "cancelled" });
36984
37086
  }
36985
37087
  }, [cart2]);
36986
- const display = React24.useMemo(
37088
+ const display = React25.useMemo(
36987
37089
  () => getShopDisplayForItems(props2.render, cart2.items),
36988
37090
  [cart2.items, props2.render]
36989
37091
  );
@@ -37529,24 +37631,24 @@ var init_gifting_client = __esm({
37529
37631
  });
37530
37632
 
37531
37633
  // ../../node_modules/.pnpm/@radix-ui+react-context@1.1.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-context/dist/index.mjs
37532
- import * as React26 from "react";
37634
+ import * as React27 from "react";
37533
37635
  import { jsx as jsx120 } from "react/jsx-runtime";
37534
37636
  function createContextScope(scopeName, createContextScopeDeps = []) {
37535
37637
  let defaultContexts = [];
37536
37638
  function createContext32(rootComponentName, defaultContext) {
37537
- const BaseContext = React26.createContext(defaultContext);
37639
+ const BaseContext = React27.createContext(defaultContext);
37538
37640
  const index = defaultContexts.length;
37539
37641
  defaultContexts = [...defaultContexts, defaultContext];
37540
37642
  const Provider = (props2) => {
37541
37643
  const { scope, children, ...context } = props2;
37542
37644
  const Context = scope?.[scopeName]?.[index] || BaseContext;
37543
- const value = React26.useMemo(() => context, Object.values(context));
37645
+ const value = React27.useMemo(() => context, Object.values(context));
37544
37646
  return /* @__PURE__ */ jsx120(Context.Provider, { value, children });
37545
37647
  };
37546
37648
  Provider.displayName = rootComponentName + "Provider";
37547
37649
  function useContext22(consumerName, scope) {
37548
37650
  const Context = scope?.[scopeName]?.[index] || BaseContext;
37549
- const context = React26.useContext(Context);
37651
+ const context = React27.useContext(Context);
37550
37652
  if (context) return context;
37551
37653
  if (defaultContext !== void 0) return defaultContext;
37552
37654
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -37555,11 +37657,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
37555
37657
  }
37556
37658
  const createScope = () => {
37557
37659
  const scopeContexts = defaultContexts.map((defaultContext) => {
37558
- return React26.createContext(defaultContext);
37660
+ return React27.createContext(defaultContext);
37559
37661
  });
37560
37662
  return function useScope(scope) {
37561
37663
  const contexts = scope?.[scopeName] || scopeContexts;
37562
- return React26.useMemo(
37664
+ return React27.useMemo(
37563
37665
  () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
37564
37666
  [scope, contexts]
37565
37667
  );
@@ -37582,7 +37684,7 @@ function composeContextScopes(...scopes) {
37582
37684
  const currentScope = scopeProps[`__scope${scopeName}`];
37583
37685
  return { ...nextScopes2, ...currentScope };
37584
37686
  }, {});
37585
- return React26.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
37687
+ return React27.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
37586
37688
  };
37587
37689
  };
37588
37690
  createScope.scopeName = baseScope.scopeName;
@@ -37595,7 +37697,7 @@ var init_dist3 = __esm({
37595
37697
  });
37596
37698
 
37597
37699
  // ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
37598
- import * as React27 from "react";
37700
+ import * as React28 from "react";
37599
37701
  function setRef(ref, value) {
37600
37702
  if (typeof ref === "function") {
37601
37703
  return ref(value);
@@ -37628,7 +37730,7 @@ function composeRefs(...refs) {
37628
37730
  };
37629
37731
  }
37630
37732
  function useComposedRefs(...refs) {
37631
- return React27.useCallback(composeRefs(...refs), refs);
37733
+ return React28.useCallback(composeRefs(...refs), refs);
37632
37734
  }
37633
37735
  var init_dist4 = __esm({
37634
37736
  "../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"() {
@@ -37637,26 +37739,26 @@ var init_dist4 = __esm({
37637
37739
  });
37638
37740
 
37639
37741
  // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
37640
- import * as React28 from "react";
37742
+ import * as React29 from "react";
37641
37743
  import { Fragment as Fragment22, jsx as jsx121 } from "react/jsx-runtime";
37642
37744
  // @__NO_SIDE_EFFECTS__
37643
37745
  function createSlot(ownerName) {
37644
37746
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
37645
- const Slot2 = React28.forwardRef((props2, forwardedRef) => {
37747
+ const Slot2 = React29.forwardRef((props2, forwardedRef) => {
37646
37748
  const { children, ...slotProps } = props2;
37647
- const childrenArray = React28.Children.toArray(children);
37749
+ const childrenArray = React29.Children.toArray(children);
37648
37750
  const slottable = childrenArray.find(isSlottable);
37649
37751
  if (slottable) {
37650
37752
  const newElement = slottable.props.children;
37651
37753
  const newChildren = childrenArray.map((child) => {
37652
37754
  if (child === slottable) {
37653
- if (React28.Children.count(newElement) > 1) return React28.Children.only(null);
37654
- return React28.isValidElement(newElement) ? newElement.props.children : null;
37755
+ if (React29.Children.count(newElement) > 1) return React29.Children.only(null);
37756
+ return React29.isValidElement(newElement) ? newElement.props.children : null;
37655
37757
  } else {
37656
37758
  return child;
37657
37759
  }
37658
37760
  });
37659
- return /* @__PURE__ */ jsx121(SlotClone, { ...slotProps, ref: forwardedRef, children: React28.isValidElement(newElement) ? React28.cloneElement(newElement, void 0, newChildren) : null });
37761
+ return /* @__PURE__ */ jsx121(SlotClone, { ...slotProps, ref: forwardedRef, children: React29.isValidElement(newElement) ? React29.cloneElement(newElement, void 0, newChildren) : null });
37660
37762
  }
37661
37763
  return /* @__PURE__ */ jsx121(SlotClone, { ...slotProps, ref: forwardedRef, children });
37662
37764
  });
@@ -37665,23 +37767,23 @@ function createSlot(ownerName) {
37665
37767
  }
37666
37768
  // @__NO_SIDE_EFFECTS__
37667
37769
  function createSlotClone(ownerName) {
37668
- const SlotClone = React28.forwardRef((props2, forwardedRef) => {
37770
+ const SlotClone = React29.forwardRef((props2, forwardedRef) => {
37669
37771
  const { children, ...slotProps } = props2;
37670
- if (React28.isValidElement(children)) {
37772
+ if (React29.isValidElement(children)) {
37671
37773
  const childrenRef = getElementRef(children);
37672
37774
  const props22 = mergeProps(slotProps, children.props);
37673
- if (children.type !== React28.Fragment) {
37775
+ if (children.type !== React29.Fragment) {
37674
37776
  props22.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
37675
37777
  }
37676
- return React28.cloneElement(children, props22);
37778
+ return React29.cloneElement(children, props22);
37677
37779
  }
37678
- return React28.Children.count(children) > 1 ? React28.Children.only(null) : null;
37780
+ return React29.Children.count(children) > 1 ? React29.Children.only(null) : null;
37679
37781
  });
37680
37782
  SlotClone.displayName = `${ownerName}.SlotClone`;
37681
37783
  return SlotClone;
37682
37784
  }
37683
37785
  function isSlottable(child) {
37684
- return React28.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
37786
+ return React29.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
37685
37787
  }
37686
37788
  function mergeProps(slotProps, childProps) {
37687
37789
  const overrideProps = { ...childProps };
@@ -37730,7 +37832,7 @@ var init_dist5 = __esm({
37730
37832
  });
37731
37833
 
37732
37834
  // ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@19.2.3_@types+react@19.2.10__@types+r_2988d950cbd44144aec5e6ce60804441/node_modules/@radix-ui/react-collection/dist/index.mjs
37733
- import React29 from "react";
37835
+ import React30 from "react";
37734
37836
  import { jsx as jsx122 } from "react/jsx-runtime";
37735
37837
  import React210 from "react";
37736
37838
  import { jsx as jsx210 } from "react/jsx-runtime";
@@ -37743,14 +37845,14 @@ function createCollection(name) {
37743
37845
  );
37744
37846
  const CollectionProvider = (props2) => {
37745
37847
  const { scope, children } = props2;
37746
- const ref = React29.useRef(null);
37747
- const itemMap = React29.useRef(/* @__PURE__ */ new Map()).current;
37848
+ const ref = React30.useRef(null);
37849
+ const itemMap = React30.useRef(/* @__PURE__ */ new Map()).current;
37748
37850
  return /* @__PURE__ */ jsx122(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
37749
37851
  };
37750
37852
  CollectionProvider.displayName = PROVIDER_NAME;
37751
37853
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
37752
37854
  const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
37753
- const CollectionSlot = React29.forwardRef(
37855
+ const CollectionSlot = React30.forwardRef(
37754
37856
  (props2, forwardedRef) => {
37755
37857
  const { scope, children } = props2;
37756
37858
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
@@ -37762,13 +37864,13 @@ function createCollection(name) {
37762
37864
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
37763
37865
  const ITEM_DATA_ATTR = "data-radix-collection-item";
37764
37866
  const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
37765
- const CollectionItemSlot = React29.forwardRef(
37867
+ const CollectionItemSlot = React30.forwardRef(
37766
37868
  (props2, forwardedRef) => {
37767
37869
  const { scope, children, ...itemData } = props2;
37768
- const ref = React29.useRef(null);
37870
+ const ref = React30.useRef(null);
37769
37871
  const composedRefs = useComposedRefs(forwardedRef, ref);
37770
37872
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
37771
- React29.useEffect(() => {
37873
+ React30.useEffect(() => {
37772
37874
  context.itemMap.set(ref, { ref, ...itemData });
37773
37875
  return () => void context.itemMap.delete(ref);
37774
37876
  });
@@ -37778,7 +37880,7 @@ function createCollection(name) {
37778
37880
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
37779
37881
  function useCollection2(scope) {
37780
37882
  const context = useCollectionContext(name + "CollectionConsumer", scope);
37781
- const getItems = React29.useCallback(() => {
37883
+ const getItems = React30.useCallback(() => {
37782
37884
  const collectionNode = context.collectionRef.current;
37783
37885
  if (!collectionNode) return [];
37784
37886
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -37824,18 +37926,18 @@ var init_dist7 = __esm({
37824
37926
  });
37825
37927
 
37826
37928
  // ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
37827
- import * as React30 from "react";
37929
+ import * as React31 from "react";
37828
37930
  var useLayoutEffect2;
37829
37931
  var init_dist8 = __esm({
37830
37932
  "../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"() {
37831
37933
  "use strict";
37832
- useLayoutEffect2 = globalThis?.document ? React30.useLayoutEffect : () => {
37934
+ useLayoutEffect2 = globalThis?.document ? React31.useLayoutEffect : () => {
37833
37935
  };
37834
37936
  }
37835
37937
  });
37836
37938
 
37837
37939
  // ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
37838
- import * as React31 from "react";
37940
+ import * as React32 from "react";
37839
37941
  import * as React211 from "react";
37840
37942
  function useControllableState({
37841
37943
  prop,
@@ -37851,8 +37953,8 @@ function useControllableState({
37851
37953
  const isControlled = prop !== void 0;
37852
37954
  const value = isControlled ? prop : uncontrolledProp;
37853
37955
  if (true) {
37854
- const isControlledRef = React31.useRef(prop !== void 0);
37855
- React31.useEffect(() => {
37956
+ const isControlledRef = React32.useRef(prop !== void 0);
37957
+ React32.useEffect(() => {
37856
37958
  const wasControlled = isControlledRef.current;
37857
37959
  if (wasControlled !== isControlled) {
37858
37960
  const from = wasControlled ? "controlled" : "uncontrolled";
@@ -37864,7 +37966,7 @@ function useControllableState({
37864
37966
  isControlledRef.current = isControlled;
37865
37967
  }, [isControlled, caller]);
37866
37968
  }
37867
- const setValue = React31.useCallback(
37969
+ const setValue = React32.useCallback(
37868
37970
  (nextValue) => {
37869
37971
  if (isControlled) {
37870
37972
  const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
@@ -37883,13 +37985,13 @@ function useUncontrolledState({
37883
37985
  defaultProp,
37884
37986
  onChange
37885
37987
  }) {
37886
- const [value, setValue] = React31.useState(defaultProp);
37887
- const prevValueRef = React31.useRef(value);
37888
- const onChangeRef = React31.useRef(onChange);
37988
+ const [value, setValue] = React32.useState(defaultProp);
37989
+ const prevValueRef = React32.useRef(value);
37990
+ const onChangeRef = React32.useRef(onChange);
37889
37991
  useInsertionEffect(() => {
37890
37992
  onChangeRef.current = onChange;
37891
37993
  }, [onChange]);
37892
- React31.useEffect(() => {
37994
+ React32.useEffect(() => {
37893
37995
  if (prevValueRef.current !== value) {
37894
37996
  onChangeRef.current?.(value);
37895
37997
  prevValueRef.current = value;
@@ -37905,12 +38007,12 @@ var init_dist9 = __esm({
37905
38007
  "../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.2_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"() {
37906
38008
  "use strict";
37907
38009
  init_dist8();
37908
- useInsertionEffect = React31[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
38010
+ useInsertionEffect = React32[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
37909
38011
  }
37910
38012
  });
37911
38013
 
37912
38014
  // ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.10__@types+re_cc7cc65f5706fd7d49339c0539c4dc85/node_modules/@radix-ui/react-primitive/dist/index.mjs
37913
- import * as React32 from "react";
38015
+ import * as React33 from "react";
37914
38016
  import * as ReactDOM from "react-dom";
37915
38017
  import { jsx as jsx123 } from "react/jsx-runtime";
37916
38018
  var NODES, Primitive;
@@ -37939,7 +38041,7 @@ var init_dist10 = __esm({
37939
38041
  ];
37940
38042
  Primitive = NODES.reduce((primitive, node) => {
37941
38043
  const Slot = createSlot(`Primitive.${node}`);
37942
- const Node2 = React32.forwardRef((props2, forwardedRef) => {
38044
+ const Node2 = React33.forwardRef((props2, forwardedRef) => {
37943
38045
  const { asChild, ...primitiveProps } = props2;
37944
38046
  const Comp = asChild ? Slot : node;
37945
38047
  if (typeof window !== "undefined") {
@@ -37955,9 +38057,9 @@ var init_dist10 = __esm({
37955
38057
 
37956
38058
  // ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.5_@types+react-dom@19.2.3_@types+react@19.2.10__@types+rea_dc32f20a733f643b296d92d5e258c3cd/node_modules/@radix-ui/react-presence/dist/index.mjs
37957
38059
  import * as React212 from "react";
37958
- import * as React33 from "react";
38060
+ import * as React34 from "react";
37959
38061
  function useStateMachine(initialState, machine) {
37960
- return React33.useReducer((state, event) => {
38062
+ return React34.useReducer((state, event) => {
37961
38063
  const nextState = machine[state][event];
37962
38064
  return nextState ?? state;
37963
38065
  }, initialState);
@@ -38089,9 +38191,9 @@ var init_dist11 = __esm({
38089
38191
  });
38090
38192
 
38091
38193
  // ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-id/dist/index.mjs
38092
- import * as React34 from "react";
38194
+ import * as React35 from "react";
38093
38195
  function useId2(deterministicId) {
38094
- const [id, setId] = React34.useState(useReactId());
38196
+ const [id, setId] = React35.useState(useReactId());
38095
38197
  useLayoutEffect2(() => {
38096
38198
  if (!deterministicId) setId((reactId) => reactId ?? String(count++));
38097
38199
  }, [deterministicId]);
@@ -38102,13 +38204,13 @@ var init_dist12 = __esm({
38102
38204
  "../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-id/dist/index.mjs"() {
38103
38205
  "use strict";
38104
38206
  init_dist8();
38105
- useReactId = React34[" useId ".trim().toString()] || (() => void 0);
38207
+ useReactId = React35[" useId ".trim().toString()] || (() => void 0);
38106
38208
  count = 0;
38107
38209
  }
38108
38210
  });
38109
38211
 
38110
38212
  // ../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.12_@types+react-dom@19.2.3_@types+react@19.2.10__@types_04a209fb0c8c91319b0caf91504da9bf/node_modules/@radix-ui/react-collapsible/dist/index.mjs
38111
- import * as React35 from "react";
38213
+ import * as React36 from "react";
38112
38214
  import { jsx as jsx124 } from "react/jsx-runtime";
38113
38215
  function getState(open) {
38114
38216
  return open ? "open" : "closed";
@@ -38129,7 +38231,7 @@ var init_dist13 = __esm({
38129
38231
  COLLAPSIBLE_NAME = "Collapsible";
38130
38232
  [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
38131
38233
  [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
38132
- Collapsible = React35.forwardRef(
38234
+ Collapsible = React36.forwardRef(
38133
38235
  (props2, forwardedRef) => {
38134
38236
  const {
38135
38237
  __scopeCollapsible,
@@ -38152,7 +38254,7 @@ var init_dist13 = __esm({
38152
38254
  disabled,
38153
38255
  contentId: useId2(),
38154
38256
  open,
38155
- onOpenToggle: React35.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
38257
+ onOpenToggle: React36.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
38156
38258
  children: /* @__PURE__ */ jsx124(
38157
38259
  Primitive.div,
38158
38260
  {
@@ -38168,7 +38270,7 @@ var init_dist13 = __esm({
38168
38270
  );
38169
38271
  Collapsible.displayName = COLLAPSIBLE_NAME;
38170
38272
  TRIGGER_NAME = "CollapsibleTrigger";
38171
- CollapsibleTrigger = React35.forwardRef(
38273
+ CollapsibleTrigger = React36.forwardRef(
38172
38274
  (props2, forwardedRef) => {
38173
38275
  const { __scopeCollapsible, ...triggerProps } = props2;
38174
38276
  const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);
@@ -38190,7 +38292,7 @@ var init_dist13 = __esm({
38190
38292
  );
38191
38293
  CollapsibleTrigger.displayName = TRIGGER_NAME;
38192
38294
  CONTENT_NAME = "CollapsibleContent";
38193
- CollapsibleContent = React35.forwardRef(
38295
+ CollapsibleContent = React36.forwardRef(
38194
38296
  (props2, forwardedRef) => {
38195
38297
  const { forceMount, ...contentProps } = props2;
38196
38298
  const context = useCollapsibleContext(CONTENT_NAME, props2.__scopeCollapsible);
@@ -38198,20 +38300,20 @@ var init_dist13 = __esm({
38198
38300
  }
38199
38301
  );
38200
38302
  CollapsibleContent.displayName = CONTENT_NAME;
38201
- CollapsibleContentImpl = React35.forwardRef((props2, forwardedRef) => {
38303
+ CollapsibleContentImpl = React36.forwardRef((props2, forwardedRef) => {
38202
38304
  const { __scopeCollapsible, present, children, ...contentProps } = props2;
38203
38305
  const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);
38204
- const [isPresent, setIsPresent] = React35.useState(present);
38205
- const ref = React35.useRef(null);
38306
+ const [isPresent, setIsPresent] = React36.useState(present);
38307
+ const ref = React36.useRef(null);
38206
38308
  const composedRefs = useComposedRefs(forwardedRef, ref);
38207
- const heightRef = React35.useRef(0);
38309
+ const heightRef = React36.useRef(0);
38208
38310
  const height = heightRef.current;
38209
- const widthRef = React35.useRef(0);
38311
+ const widthRef = React36.useRef(0);
38210
38312
  const width = widthRef.current;
38211
38313
  const isOpen = context.open || isPresent;
38212
- const isMountAnimationPreventedRef = React35.useRef(isOpen);
38213
- const originalStylesRef = React35.useRef(void 0);
38214
- React35.useEffect(() => {
38314
+ const isMountAnimationPreventedRef = React36.useRef(isOpen);
38315
+ const originalStylesRef = React36.useRef(void 0);
38316
+ React36.useEffect(() => {
38215
38317
  const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
38216
38318
  return () => cancelAnimationFrame(rAF);
38217
38319
  }, []);
@@ -38259,22 +38361,22 @@ var init_dist13 = __esm({
38259
38361
  });
38260
38362
 
38261
38363
  // ../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs
38262
- import * as React36 from "react";
38364
+ import * as React37 from "react";
38263
38365
  import { jsx as jsx125 } from "react/jsx-runtime";
38264
38366
  function useDirection(localDir) {
38265
- const globalDir = React36.useContext(DirectionContext);
38367
+ const globalDir = React37.useContext(DirectionContext);
38266
38368
  return localDir || globalDir || "ltr";
38267
38369
  }
38268
38370
  var DirectionContext;
38269
38371
  var init_dist14 = __esm({
38270
38372
  "../../node_modules/.pnpm/@radix-ui+react-direction@1.1.1_@types+react@19.2.10_react@19.2.4/node_modules/@radix-ui/react-direction/dist/index.mjs"() {
38271
38373
  "use strict";
38272
- DirectionContext = React36.createContext(void 0);
38374
+ DirectionContext = React37.createContext(void 0);
38273
38375
  }
38274
38376
  });
38275
38377
 
38276
38378
  // ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.12_@types+react-dom@19.2.3_@types+react@19.2.10__@types+r_2675506df0b59b9402340fa0483c6185/node_modules/@radix-ui/react-accordion/dist/index.mjs
38277
- import React37 from "react";
38379
+ import React38 from "react";
38278
38380
  import { jsx as jsx126 } from "react/jsx-runtime";
38279
38381
  function getState2(open) {
38280
38382
  return open ? "open" : "closed";
@@ -38302,7 +38404,7 @@ var init_dist15 = __esm({
38302
38404
  createCollapsibleScope
38303
38405
  ]);
38304
38406
  useCollapsibleScope = createCollapsibleScope();
38305
- Accordion = React37.forwardRef(
38407
+ Accordion = React38.forwardRef(
38306
38408
  (props2, forwardedRef) => {
38307
38409
  const { type, ...accordionProps } = props2;
38308
38410
  const singleProps = accordionProps;
@@ -38316,7 +38418,7 @@ var init_dist15 = __esm({
38316
38418
  ACCORDION_NAME,
38317
38419
  { collapsible: false }
38318
38420
  );
38319
- AccordionImplSingle = React37.forwardRef(
38421
+ AccordionImplSingle = React38.forwardRef(
38320
38422
  (props2, forwardedRef) => {
38321
38423
  const {
38322
38424
  value: valueProp,
@@ -38336,15 +38438,15 @@ var init_dist15 = __esm({
38336
38438
  AccordionValueProvider,
38337
38439
  {
38338
38440
  scope: props2.__scopeAccordion,
38339
- value: React37.useMemo(() => value ? [value] : [], [value]),
38441
+ value: React38.useMemo(() => value ? [value] : [], [value]),
38340
38442
  onItemOpen: setValue,
38341
- onItemClose: React37.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
38443
+ onItemClose: React38.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
38342
38444
  children: /* @__PURE__ */ jsx126(AccordionCollapsibleProvider, { scope: props2.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx126(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })
38343
38445
  }
38344
38446
  );
38345
38447
  }
38346
38448
  );
38347
- AccordionImplMultiple = React37.forwardRef((props2, forwardedRef) => {
38449
+ AccordionImplMultiple = React38.forwardRef((props2, forwardedRef) => {
38348
38450
  const {
38349
38451
  value: valueProp,
38350
38452
  defaultValue,
@@ -38358,11 +38460,11 @@ var init_dist15 = __esm({
38358
38460
  onChange: onValueChange,
38359
38461
  caller: ACCORDION_NAME
38360
38462
  });
38361
- const handleItemOpen = React37.useCallback(
38463
+ const handleItemOpen = React38.useCallback(
38362
38464
  (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),
38363
38465
  [setValue]
38364
38466
  );
38365
- const handleItemClose = React37.useCallback(
38467
+ const handleItemClose = React38.useCallback(
38366
38468
  (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),
38367
38469
  [setValue]
38368
38470
  );
@@ -38378,10 +38480,10 @@ var init_dist15 = __esm({
38378
38480
  );
38379
38481
  });
38380
38482
  [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);
38381
- AccordionImpl = React37.forwardRef(
38483
+ AccordionImpl = React38.forwardRef(
38382
38484
  (props2, forwardedRef) => {
38383
38485
  const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props2;
38384
- const accordionRef = React37.useRef(null);
38486
+ const accordionRef = React38.useRef(null);
38385
38487
  const composedRefs = useComposedRefs(accordionRef, forwardedRef);
38386
38488
  const getItems = useCollection(__scopeAccordion);
38387
38489
  const direction = useDirection(dir);
@@ -38470,7 +38572,7 @@ var init_dist15 = __esm({
38470
38572
  );
38471
38573
  ITEM_NAME = "AccordionItem";
38472
38574
  [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);
38473
- AccordionItem = React37.forwardRef(
38575
+ AccordionItem = React38.forwardRef(
38474
38576
  (props2, forwardedRef) => {
38475
38577
  const { __scopeAccordion, value, ...accordionItemProps } = props2;
38476
38578
  const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);
@@ -38511,7 +38613,7 @@ var init_dist15 = __esm({
38511
38613
  );
38512
38614
  AccordionItem.displayName = ITEM_NAME;
38513
38615
  HEADER_NAME = "AccordionHeader";
38514
- AccordionHeader = React37.forwardRef(
38616
+ AccordionHeader = React38.forwardRef(
38515
38617
  (props2, forwardedRef) => {
38516
38618
  const { __scopeAccordion, ...headerProps } = props2;
38517
38619
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
@@ -38530,7 +38632,7 @@ var init_dist15 = __esm({
38530
38632
  );
38531
38633
  AccordionHeader.displayName = HEADER_NAME;
38532
38634
  TRIGGER_NAME2 = "AccordionTrigger";
38533
- AccordionTrigger = React37.forwardRef(
38635
+ AccordionTrigger = React38.forwardRef(
38534
38636
  (props2, forwardedRef) => {
38535
38637
  const { __scopeAccordion, ...triggerProps } = props2;
38536
38638
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
@@ -38552,7 +38654,7 @@ var init_dist15 = __esm({
38552
38654
  );
38553
38655
  AccordionTrigger.displayName = TRIGGER_NAME2;
38554
38656
  CONTENT_NAME2 = "AccordionContent";
38555
- AccordionContent = React37.forwardRef(
38657
+ AccordionContent = React38.forwardRef(
38556
38658
  (props2, forwardedRef) => {
38557
38659
  const { __scopeAccordion, ...contentProps } = props2;
38558
38660
  const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
@@ -38586,7 +38688,7 @@ var init_dist15 = __esm({
38586
38688
  });
38587
38689
 
38588
38690
  // ../blocks/src/system/runtime/shared/accordionPrimitives.tsx
38589
- import * as React38 from "react";
38691
+ import * as React39 from "react";
38590
38692
  import { jsx as jsx127 } from "react/jsx-runtime";
38591
38693
  var Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2;
38592
38694
  var init_accordionPrimitives = __esm({
@@ -38595,11 +38697,11 @@ var init_accordionPrimitives = __esm({
38595
38697
  "use client";
38596
38698
  init_dist15();
38597
38699
  Accordion2 = Root2;
38598
- AccordionItem2 = React38.forwardRef(({ className, ...props2 }, ref) => /* @__PURE__ */ jsx127(Item, { ref, className, ...props2 }));
38700
+ AccordionItem2 = React39.forwardRef(({ className, ...props2 }, ref) => /* @__PURE__ */ jsx127(Item, { ref, className, ...props2 }));
38599
38701
  AccordionItem2.displayName = "AccordionItem";
38600
- AccordionTrigger2 = React38.forwardRef(({ className, children, ...props2 }, ref) => /* @__PURE__ */ jsx127(Header, { className: "accordion-header", children: /* @__PURE__ */ jsx127(Trigger2, { ref, className, ...props2, children }) }));
38702
+ AccordionTrigger2 = React39.forwardRef(({ className, children, ...props2 }, ref) => /* @__PURE__ */ jsx127(Header, { className: "accordion-header", children: /* @__PURE__ */ jsx127(Trigger2, { ref, className, ...props2, children }) }));
38601
38703
  AccordionTrigger2.displayName = "AccordionTrigger";
38602
- AccordionContent2 = React38.forwardRef(({ className, children, ...props2 }, ref) => /* @__PURE__ */ jsx127(
38704
+ AccordionContent2 = React39.forwardRef(({ className, children, ...props2 }, ref) => /* @__PURE__ */ jsx127(
38603
38705
  Content2,
38604
38706
  {
38605
38707
  ref,
@@ -38614,7 +38716,7 @@ var init_accordionPrimitives = __esm({
38614
38716
  });
38615
38717
 
38616
38718
  // ../blocks/src/system/runtime/nodes/accordion.tsx
38617
- import React39 from "react";
38719
+ import React40 from "react";
38618
38720
  import { jsx as jsx128, jsxs as jsxs87 } from "react/jsx-runtime";
38619
38721
  var ACCORDION_ICONS2, AccordionNode, AccordionItemNode;
38620
38722
  var init_accordion = __esm({
@@ -38693,7 +38795,7 @@ var init_accordion = __esm({
38693
38795
  pathBase: _pathBase,
38694
38796
  ...rest
38695
38797
  }) => {
38696
- const generatedId = React39.useId();
38798
+ const generatedId = React40.useId();
38697
38799
  const resolvedValue = value !== void 0 && value !== null ? String(value) : generatedId;
38698
38800
  const triggerSource = trigger ?? question;
38699
38801
  const contentSource = content ?? answer;
@@ -38729,7 +38831,7 @@ var init_accordion = __esm({
38729
38831
  });
38730
38832
 
38731
38833
  // ../blocks/src/system/runtime/header/HeaderCartDrawer.tsx
38732
- import * as React40 from "react";
38834
+ import * as React41 from "react";
38733
38835
  import { jsx as jsx129, jsxs as jsxs88 } from "react/jsx-runtime";
38734
38836
  function normalizeQuantityInput(value) {
38735
38837
  const parsed = Number(value);
@@ -38779,8 +38881,8 @@ function HeaderCartDrawerItems(props2) {
38779
38881
  )) });
38780
38882
  }
38781
38883
  function HeaderCartDrawer(props2) {
38782
- const titleId = React40.useId();
38783
- const display = React40.useMemo(
38884
+ const titleId = React41.useId();
38885
+ const display = React41.useMemo(
38784
38886
  () => buildCartDisplay(props2.cart.items, {
38785
38887
  heading: "Cart",
38786
38888
  emptyMessage: "Your cart is empty.",
@@ -38994,15 +39096,15 @@ var init_HeaderCartTrigger = __esm({
38994
39096
  });
38995
39097
 
38996
39098
  // ../blocks/src/system/runtime/header/headerCartRuntime.tsx
38997
- import * as React41 from "react";
39099
+ import * as React42 from "react";
38998
39100
  import { createPortal as createPortal2 } from "react-dom";
38999
39101
  import { createRoot } from "react-dom/client";
39000
39102
  import { Fragment as Fragment21, jsx as jsx131, jsxs as jsxs90 } from "react/jsx-runtime";
39001
39103
  function HeaderCartRuntime(props2) {
39002
39104
  const cart2 = useCommerceCart(props2.siteId);
39003
- const itemCount = React41.useMemo(() => getCartItemCount(cart2.items), [cart2.items]);
39004
- const [open, setOpen] = React41.useState(false);
39005
- const checkoutHref = React41.useMemo(
39105
+ const itemCount = React42.useMemo(() => getCartItemCount(cart2.items), [cart2.items]);
39106
+ const [open, setOpen] = React42.useState(false);
39107
+ const checkoutHref = React42.useMemo(
39006
39108
  () => resolveHeaderCartCheckoutHref(
39007
39109
  props2.mounts,
39008
39110
  typeof window === "undefined" ? null : window.location.pathname
@@ -39661,6 +39763,7 @@ var init_EventPaginatedListView_client = __esm({
39661
39763
  init_EventCompactRow();
39662
39764
  init_EmptyState();
39663
39765
  init_EventListing_view();
39766
+ init_themedButtonClass();
39664
39767
  EventPaginatedListView = ({
39665
39768
  filters,
39666
39769
  display,
@@ -39703,7 +39806,10 @@ var init_EventPaginatedListView_client = __esm({
39703
39806
  {
39704
39807
  type: "button",
39705
39808
  onClick: loadMore,
39706
- className: `${display.buttonVariant} button-${display.buttonVariant}`,
39809
+ className: themedButtonClass({
39810
+ variant: display.buttonVariant,
39811
+ size: "md"
39812
+ }),
39707
39813
  children: "Try again"
39708
39814
  }
39709
39815
  )
@@ -39714,11 +39820,25 @@ var init_EventPaginatedListView_client = __esm({
39714
39820
  type: "button",
39715
39821
  onClick: loadMore,
39716
39822
  disabled: loading,
39717
- className: `${display.buttonVariant} button-${display.buttonVariant} ${loading ? "rb-opacity-50 rb-cursor-wait" : ""}`,
39823
+ className: themedButtonClass({
39824
+ variant: display.buttonVariant,
39825
+ size: "md",
39826
+ extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null
39827
+ }),
39718
39828
  children: loading ? "Loading..." : loadMoreText
39719
39829
  }
39720
39830
  ) }) : null,
39721
- paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx135("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx135("a", { href: seeAllUrl, className: `${display.buttonVariant} button-${display.buttonVariant}`, children: loadMoreText }) }) : null
39831
+ paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx135("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx135(
39832
+ "a",
39833
+ {
39834
+ href: seeAllUrl,
39835
+ className: themedButtonClass({
39836
+ variant: display.buttonVariant,
39837
+ size: "md"
39838
+ }),
39839
+ children: loadMoreText
39840
+ }
39841
+ ) }) : null
39722
39842
  ] }),
39723
39843
  renderEventCard: (event) => display.listLayout === "compact" ? /* @__PURE__ */ jsx135(
39724
39844
  EventCompactRow,
@@ -41062,6 +41182,7 @@ var init_EventCombined_client = __esm({
41062
41182
  init_EventModalContext();
41063
41183
  init_EventModals();
41064
41184
  init_utils();
41185
+ init_themedButtonClass();
41065
41186
  EventCombinedClient = ({
41066
41187
  events: initialEvents,
41067
41188
  siteId,
@@ -41387,7 +41508,7 @@ var init_EventCombined_client = __esm({
41387
41508
  {
41388
41509
  type: "button",
41389
41510
  onClick: goToToday,
41390
- className: `${buttonVariant} button-${buttonVariant} rb-px-3 rb-py-1`,
41511
+ className: themedButtonClass({ variant: buttonVariant, size: "sm" }),
41391
41512
  children: "Today"
41392
41513
  }
41393
41514
  )
@@ -41704,6 +41825,7 @@ var init_EventCalendar_client = __esm({
41704
41825
  init_EventModalContext();
41705
41826
  init_EventModals();
41706
41827
  init_WeekTimetableView();
41828
+ init_themedButtonClass();
41707
41829
  EventCalendarClient = ({
41708
41830
  render
41709
41831
  }) => {
@@ -41992,7 +42114,10 @@ var init_EventCalendar_client = __esm({
41992
42114
  {
41993
42115
  type: "button",
41994
42116
  onClick: onToday,
41995
- className: `${display.buttonVariant} button-${display.buttonVariant} rb-px-3 rb-py-1`,
42117
+ className: themedButtonClass({
42118
+ variant: display.buttonVariant,
42119
+ size: "sm"
42120
+ }),
41996
42121
  children: "Today"
41997
42122
  }
41998
42123
  )
@@ -42005,7 +42130,10 @@ var init_EventCalendar_client = __esm({
42005
42130
  {
42006
42131
  type: "button",
42007
42132
  onClick: onToday,
42008
- className: `${display.buttonVariant} button-${display.buttonVariant} rb-px-3 rb-py-1`,
42133
+ className: themedButtonClass({
42134
+ variant: display.buttonVariant,
42135
+ size: "sm"
42136
+ }),
42009
42137
  children: "Try again"
42010
42138
  }
42011
42139
  )
@@ -42100,6 +42228,7 @@ var init_form_client = __esm({
42100
42228
  init_client2();
42101
42229
  init_src3();
42102
42230
  init_useFormSubmission();
42231
+ init_themedButtonClass();
42103
42232
  FormNodeClient = ({
42104
42233
  render
42105
42234
  }) => {
@@ -42237,7 +42366,19 @@ var init_form_client = __esm({
42237
42366
  return renderField(group.field);
42238
42367
  }),
42239
42368
  showSpamProtection && /* @__PURE__ */ jsx148(AltchaWidget, { challengeUrl: getChallengeUrl(), onSolutionChange: setAltchaSolution }),
42240
- /* @__PURE__ */ jsx148("div", { className: "fb-actions", children: /* @__PURE__ */ jsx148("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx148("button", { type: "submit", className: "primary button-primary rb-w-full rb-sm-w-auto", disabled: state.tag === "submitting", children: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel }) }) })
42369
+ /* @__PURE__ */ jsx148("div", { className: "fb-actions", children: /* @__PURE__ */ jsx148("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx148(
42370
+ "button",
42371
+ {
42372
+ type: "submit",
42373
+ className: themedButtonClass({
42374
+ variant: "primary",
42375
+ size: "md",
42376
+ extraClassName: "rb-w-full rb-sm-w-auto"
42377
+ }),
42378
+ disabled: state.tag === "submitting",
42379
+ children: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel
42380
+ }
42381
+ ) }) })
42241
42382
  ] });
42242
42383
  };
42243
42384
  }
@@ -42456,7 +42597,7 @@ function NewsletterFormClient({
42456
42597
  "button",
42457
42598
  {
42458
42599
  type: "submit",
42459
- className: "primary button-primary",
42600
+ className: themedButtonClass({ variant: "primary", size: "md" }),
42460
42601
  disabled: isSubmitting,
42461
42602
  children: isSubmitting ? "Subscribing..." : render.display.buttonLabel
42462
42603
  }
@@ -42475,12 +42616,13 @@ var init_newsletter_form_client = __esm({
42475
42616
  init_client2();
42476
42617
  init_src3();
42477
42618
  init_api();
42619
+ init_themedButtonClass();
42478
42620
  newsletter_form_client_default = NewsletterFormClient;
42479
42621
  }
42480
42622
  });
42481
42623
 
42482
42624
  // ../blocks/src/system/runtime/components/registry.client.tsx
42483
- import React52 from "react";
42625
+ import React53 from "react";
42484
42626
  function isRecord4(value) {
42485
42627
  return typeof value === "object" && value !== null;
42486
42628
  }
@@ -42572,7 +42714,7 @@ function defineRuntimeBackedBlockClientEntry(kind, client) {
42572
42714
  const NormalizedClient = (props2) => {
42573
42715
  const ClientComponent = client;
42574
42716
  const normalizedProps = normalizeLegacyInteractiveRenderProps(serverEntry.definition.runtime, mode, props2);
42575
- return React52.createElement(ClientComponent, normalizedProps);
42717
+ return React53.createElement(ClientComponent, normalizedProps);
42576
42718
  };
42577
42719
  NormalizedClient.displayName = `RuntimeBackedBlockClient(${kind})`;
42578
42720
  return {
@@ -45213,6 +45355,10 @@ function brandNonEmptyString(value, label) {
45213
45355
  return value;
45214
45356
  }
45215
45357
 
45358
+ // ../theme-core/src/palette/variants/types.ts
45359
+ init_styleTags();
45360
+ import { z as z43 } from "zod";
45361
+
45216
45362
  // ../theme-core/src/schema.ts
45217
45363
  import { z as z42 } from "zod";
45218
45364
 
@@ -45818,8 +45964,6 @@ var themesTurnSchema = z42.object({
45818
45964
  });
45819
45965
 
45820
45966
  // ../theme-core/src/palette/variants/types.ts
45821
- init_compatibility();
45822
- import { z as z43 } from "zod";
45823
45967
  function asPaletteVariantId(value) {
45824
45968
  if (value.length === 0) {
45825
45969
  throw new Error("PaletteVariantId must be a non-empty string");
@@ -47475,7 +47619,7 @@ init_responsiveMode();
47475
47619
  import { jsx as jsx168 } from "react/jsx-runtime";
47476
47620
 
47477
47621
  // ../theme-core/src/ThemeFontLoader.tsx
47478
- import * as React53 from "react";
47622
+ import * as React54 from "react";
47479
47623
  init_selectorUtils();
47480
47624
  import { Fragment as Fragment25, jsx as jsx169, jsxs as jsxs105 } from "react/jsx-runtime";
47481
47625