@discourser/design-system 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/chunk-2P7Z5PVP.cjs +2151 -0
  2. package/dist/chunk-2P7Z5PVP.cjs.map +1 -0
  3. package/dist/{chunk-QC44JPCA.cjs → chunk-PFWU7QSM.cjs} +777 -15
  4. package/dist/chunk-PFWU7QSM.cjs.map +1 -0
  5. package/dist/chunk-QC7LGFM3.js +2099 -0
  6. package/dist/chunk-QC7LGFM3.js.map +1 -0
  7. package/dist/{chunk-M7J7WKJY.js → chunk-SNUJBT5R.js} +778 -16
  8. package/dist/chunk-SNUJBT5R.js.map +1 -0
  9. package/dist/components/Accordion.figma.d.ts +2 -0
  10. package/dist/components/Accordion.figma.d.ts.map +1 -0
  11. package/dist/components/Breadcrumb.d.ts +11 -0
  12. package/dist/components/Breadcrumb.d.ts.map +1 -0
  13. package/dist/components/Breadcrumb.figma.d.ts +2 -0
  14. package/dist/components/Breadcrumb.figma.d.ts.map +1 -0
  15. package/dist/components/Checkbox.d.ts +6 -6
  16. package/dist/components/ContentCard/ContentCard.d.ts +13 -0
  17. package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
  18. package/dist/components/ContentCard/ContentCard.figma.d.ts +2 -0
  19. package/dist/components/ContentCard/ContentCard.figma.d.ts.map +1 -0
  20. package/dist/components/ContentCard/index.d.ts +2 -0
  21. package/dist/components/ContentCard/index.d.ts.map +1 -0
  22. package/dist/components/{Heading.d.ts → Header.d.ts} +3 -3
  23. package/dist/components/Header.d.ts.map +1 -0
  24. package/dist/components/Header.figma.d.ts +2 -0
  25. package/dist/components/Header.figma.d.ts.map +1 -0
  26. package/dist/components/Icons/AccountIcon.d.ts +6 -0
  27. package/dist/components/Icons/AccountIcon.d.ts.map +1 -0
  28. package/dist/components/Icons/ChevronUpIcon.d.ts +6 -0
  29. package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
  30. package/dist/components/Icons/ClockIcon.d.ts +6 -0
  31. package/dist/components/Icons/ClockIcon.d.ts.map +1 -0
  32. package/dist/components/Icons/DashboardIcon.d.ts +6 -0
  33. package/dist/components/Icons/DashboardIcon.d.ts.map +1 -0
  34. package/dist/components/Icons/DiscourserLogo.d.ts +6 -0
  35. package/dist/components/Icons/DiscourserLogo.d.ts.map +1 -0
  36. package/dist/components/Icons/DiscourserLogo.figma.d.ts +2 -0
  37. package/dist/components/Icons/DiscourserLogo.figma.d.ts.map +1 -0
  38. package/dist/components/Icons/GripDotsVerticalIcon.d.ts +6 -0
  39. package/dist/components/Icons/GripDotsVerticalIcon.d.ts.map +1 -0
  40. package/dist/components/Icons/HelpIcon.d.ts +6 -0
  41. package/dist/components/Icons/HelpIcon.d.ts.map +1 -0
  42. package/dist/components/Icons/NotebookIcon.d.ts +6 -0
  43. package/dist/components/Icons/NotebookIcon.d.ts.map +1 -0
  44. package/dist/components/Icons/RightArrowIcon.d.ts +6 -0
  45. package/dist/components/Icons/RightArrowIcon.d.ts.map +1 -0
  46. package/dist/components/Icons/ScenarioIcon.d.ts +6 -0
  47. package/dist/components/Icons/ScenarioIcon.d.ts.map +1 -0
  48. package/dist/components/Icons/index.d.ts +11 -0
  49. package/dist/components/Icons/index.d.ts.map +1 -0
  50. package/dist/components/NavigationMenu/NavigationMenu.d.ts +3 -0
  51. package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
  52. package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts +2 -0
  53. package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts.map +1 -0
  54. package/dist/components/NavigationMenu/index.d.ts +3 -0
  55. package/dist/components/NavigationMenu/index.d.ts.map +1 -0
  56. package/dist/components/NavigationMenu/types.d.ts +25 -0
  57. package/dist/components/NavigationMenu/types.d.ts.map +1 -0
  58. package/dist/components/QuickStartPage/QuickStartPage.d.ts +21 -0
  59. package/dist/components/QuickStartPage/QuickStartPage.d.ts.map +1 -0
  60. package/dist/components/QuickStartPage/index.d.ts +3 -0
  61. package/dist/components/QuickStartPage/index.d.ts.map +1 -0
  62. package/dist/components/ScenarioQueue/AddScenarioDialog.d.ts +16 -0
  63. package/dist/components/ScenarioQueue/AddScenarioDialog.d.ts.map +1 -0
  64. package/dist/components/ScenarioQueue/ScenarioCard.d.ts +10 -0
  65. package/dist/components/ScenarioQueue/ScenarioCard.d.ts.map +1 -0
  66. package/dist/components/ScenarioQueue/ScenarioCardDraggable.d.ts +15 -0
  67. package/dist/components/ScenarioQueue/ScenarioCardDraggable.d.ts.map +1 -0
  68. package/dist/components/ScenarioQueue/ScenarioQueue.d.ts +3 -0
  69. package/dist/components/ScenarioQueue/ScenarioQueue.d.ts.map +1 -0
  70. package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts +2 -0
  71. package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts.map +1 -0
  72. package/dist/components/ScenarioQueue/index.d.ts +6 -0
  73. package/dist/components/ScenarioQueue/index.d.ts.map +1 -0
  74. package/dist/components/ScenarioQueue/types.d.ts +56 -0
  75. package/dist/components/ScenarioQueue/types.d.ts.map +1 -0
  76. package/dist/components/ScenarioSettings/ScenarioSettings.d.ts +3 -0
  77. package/dist/components/ScenarioSettings/ScenarioSettings.d.ts.map +1 -0
  78. package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts +2 -0
  79. package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts.map +1 -0
  80. package/dist/components/ScenarioSettings/index.d.ts +3 -0
  81. package/dist/components/ScenarioSettings/index.d.ts.map +1 -0
  82. package/dist/components/ScenarioSettings/types.d.ts +54 -0
  83. package/dist/components/ScenarioSettings/types.d.ts.map +1 -0
  84. package/dist/components/index.cjs +110 -34
  85. package/dist/components/index.d.ts +16 -1
  86. package/dist/components/index.d.ts.map +1 -1
  87. package/dist/components/index.js +1 -1
  88. package/dist/figma-codex/config.d.ts +8 -0
  89. package/dist/figma-codex/config.d.ts.map +1 -0
  90. package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts +6 -0
  91. package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts.map +1 -0
  92. package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts +2 -0
  93. package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts.map +1 -0
  94. package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts +2 -0
  95. package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts.map +1 -0
  96. package/dist/figma-codex/fixtures/SimpleComponent.d.ts +8 -0
  97. package/dist/figma-codex/fixtures/SimpleComponent.d.ts.map +1 -0
  98. package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts +2 -0
  99. package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts.map +1 -0
  100. package/dist/figma-codex/generate.d.ts +6 -0
  101. package/dist/figma-codex/generate.d.ts.map +1 -0
  102. package/dist/figma-codex/parser.d.ts +18 -0
  103. package/dist/figma-codex/parser.d.ts.map +1 -0
  104. package/dist/figma-codex/resolver.d.ts +5 -0
  105. package/dist/figma-codex/resolver.d.ts.map +1 -0
  106. package/dist/figma-codex/schema.d.ts +60 -0
  107. package/dist/figma-codex/schema.d.ts.map +1 -0
  108. package/dist/figma-codex/writer.d.ts +8 -0
  109. package/dist/figma-codex/writer.d.ts.map +1 -0
  110. package/dist/figma-codex.json +373 -0
  111. package/dist/index.cjs +114 -38
  112. package/dist/index.js +2 -2
  113. package/dist/preset/index.cjs +2 -2
  114. package/dist/preset/index.d.ts.map +1 -1
  115. package/dist/preset/index.js +1 -1
  116. package/dist/preset/recipes/accordion.d.ts.map +1 -1
  117. package/dist/preset/recipes/avatar.d.ts.map +1 -1
  118. package/dist/preset/recipes/breadcrumb.d.ts +2 -0
  119. package/dist/preset/recipes/breadcrumb.d.ts.map +1 -0
  120. package/dist/preset/recipes/checkbox.d.ts.map +1 -1
  121. package/dist/preset/recipes/content-card.d.ts +2 -0
  122. package/dist/preset/recipes/content-card.d.ts.map +1 -0
  123. package/dist/preset/recipes/field.d.ts.map +1 -1
  124. package/dist/preset/recipes/index.d.ts +7 -0
  125. package/dist/preset/recipes/index.d.ts.map +1 -1
  126. package/dist/preset/recipes/navigation-menu.d.ts +2 -0
  127. package/dist/preset/recipes/navigation-menu.d.ts.map +1 -0
  128. package/dist/preset/recipes/progress.d.ts.map +1 -1
  129. package/dist/preset/recipes/radio-group.d.ts.map +1 -1
  130. package/dist/preset/recipes/scenario-card.d.ts +2 -0
  131. package/dist/preset/recipes/scenario-card.d.ts.map +1 -0
  132. package/dist/preset/recipes/scenario-queue.d.ts +2 -0
  133. package/dist/preset/recipes/scenario-queue.d.ts.map +1 -0
  134. package/dist/preset/recipes/scenario-settings.d.ts +2 -0
  135. package/dist/preset/recipes/scenario-settings.d.ts.map +1 -0
  136. package/dist/preset/recipes/steps.d.ts.map +1 -1
  137. package/dist/preset/recipes/toast.d.ts.map +1 -1
  138. package/dist/preset/recipes/tooltip.d.ts.map +1 -1
  139. package/dist/preset/semantic-tokens.d.ts +12 -0
  140. package/dist/preset/semantic-tokens.d.ts.map +1 -1
  141. package/package.json +35 -2
  142. package/src/components/Accordion.figma.tsx +20 -0
  143. package/src/components/Breadcrumb.figma.tsx +18 -0
  144. package/src/components/Breadcrumb.tsx +52 -0
  145. package/src/components/ContentCard/ContentCard.figma.tsx +21 -0
  146. package/src/components/ContentCard/ContentCard.test.tsx +197 -0
  147. package/src/components/ContentCard/ContentCard.tsx +19 -0
  148. package/src/components/ContentCard/index.ts +13 -0
  149. package/src/components/Header.figma.tsx +25 -0
  150. package/src/components/{Heading.tsx → Header.tsx} +2 -2
  151. package/src/components/Icons/AccountIcon.tsx +26 -0
  152. package/src/components/Icons/ChevronUpIcon.tsx +24 -0
  153. package/src/components/Icons/ClockIcon.tsx +40 -0
  154. package/src/components/Icons/DashboardIcon.tsx +47 -0
  155. package/src/components/Icons/Discourser-Logo.svg +14 -0
  156. package/src/components/Icons/DiscourserLogo.figma.tsx +10 -0
  157. package/src/components/Icons/DiscourserLogo.tsx +72 -0
  158. package/src/components/Icons/GripDotsVerticalIcon.tsx +26 -0
  159. package/src/components/Icons/HelpIcon.tsx +26 -0
  160. package/src/components/Icons/NotebookIcon.tsx +26 -0
  161. package/src/components/Icons/RightArrowIcon.tsx +23 -0
  162. package/src/components/Icons/ScenarioIcon.tsx +26 -0
  163. package/src/components/Icons/index.ts +13 -0
  164. package/src/components/NavigationMenu/NavigationMenu.figma.tsx +26 -0
  165. package/src/components/NavigationMenu/NavigationMenu.test.tsx +524 -0
  166. package/src/components/NavigationMenu/NavigationMenu.tsx +102 -0
  167. package/src/components/NavigationMenu/index.ts +2 -0
  168. package/src/components/NavigationMenu/types.ts +27 -0
  169. package/src/components/QuickStartPage/QuickStartPage.tsx +627 -0
  170. package/src/components/QuickStartPage/index.ts +2 -0
  171. package/src/components/ScenarioQueue/AddScenarioDialog.tsx +137 -0
  172. package/src/components/ScenarioQueue/ScenarioCard.tsx +120 -0
  173. package/src/components/ScenarioQueue/ScenarioCardDraggable.tsx +41 -0
  174. package/src/components/ScenarioQueue/ScenarioQueue.figma.tsx +37 -0
  175. package/src/components/ScenarioQueue/ScenarioQueue.test.tsx +398 -0
  176. package/src/components/ScenarioQueue/ScenarioQueue.tsx +162 -0
  177. package/src/components/ScenarioQueue/index.ts +11 -0
  178. package/src/components/ScenarioQueue/types.ts +86 -0
  179. package/src/components/ScenarioSettings/ScenarioSettings.figma.tsx +12 -0
  180. package/src/components/ScenarioSettings/ScenarioSettings.test.tsx +406 -0
  181. package/src/components/ScenarioSettings/ScenarioSettings.tsx +386 -0
  182. package/src/components/ScenarioSettings/index.ts +11 -0
  183. package/src/components/ScenarioSettings/types.ts +70 -0
  184. package/src/components/__tests__/Breadcrumb.test.tsx +94 -0
  185. package/src/components/index.ts +54 -1
  186. package/src/figma-codex/README.md +186 -0
  187. package/src/figma-codex/__tests__/config.test.ts +63 -0
  188. package/src/figma-codex/__tests__/generate.test.ts +78 -0
  189. package/src/figma-codex/__tests__/parser.test.ts +138 -0
  190. package/src/figma-codex/__tests__/resolver.test.ts +196 -0
  191. package/src/figma-codex/__tests__/writer.test.ts +111 -0
  192. package/src/figma-codex/config.ts +42 -0
  193. package/src/figma-codex/fixtures/CompoundComponent/CompoundComponent.tsx +17 -0
  194. package/src/figma-codex/fixtures/CompoundComponent/index.ts +1 -0
  195. package/src/figma-codex/fixtures/CompoundComponent.figma.tsx +14 -0
  196. package/src/figma-codex/fixtures/SimpleComponent.figma.tsx +10 -0
  197. package/src/figma-codex/fixtures/SimpleComponent.tsx +10 -0
  198. package/src/figma-codex/fixtures/expected-output.json +78 -0
  199. package/src/figma-codex/generate.ts +106 -0
  200. package/src/figma-codex/parser.ts +138 -0
  201. package/src/figma-codex/resolver.ts +280 -0
  202. package/src/figma-codex/schema.ts +79 -0
  203. package/src/figma-codex/writer.ts +54 -0
  204. package/src/preset/index.ts +15 -0
  205. package/src/preset/recipes/accordion.ts +8 -5
  206. package/src/preset/recipes/avatar.ts +1 -2
  207. package/src/preset/recipes/breadcrumb.ts +109 -0
  208. package/src/preset/recipes/checkbox.ts +1 -2
  209. package/src/preset/recipes/content-card.ts +124 -0
  210. package/src/preset/recipes/field.ts +1 -2
  211. package/src/preset/recipes/index.ts +11 -0
  212. package/src/preset/recipes/navigation-menu.ts +97 -0
  213. package/src/preset/recipes/progress.ts +1 -2
  214. package/src/preset/recipes/radio-group.ts +1 -2
  215. package/src/preset/recipes/scenario-card.ts +151 -0
  216. package/src/preset/recipes/scenario-queue.ts +99 -0
  217. package/src/preset/recipes/scenario-settings.ts +182 -0
  218. package/src/preset/recipes/steps.ts +1 -2
  219. package/src/preset/recipes/toast.ts +1 -2
  220. package/src/preset/recipes/tooltip.ts +1 -2
  221. package/src/preset/semantic-tokens.ts +4 -0
  222. package/src/test/setup.ts +15 -0
  223. package/dist/chunk-F7LHARS4.js +0 -869
  224. package/dist/chunk-F7LHARS4.js.map +0 -1
  225. package/dist/chunk-M7J7WKJY.js.map +0 -1
  226. package/dist/chunk-QC44JPCA.cjs.map +0 -1
  227. package/dist/chunk-QP4EJI3G.cjs +0 -902
  228. package/dist/chunk-QP4EJI3G.cjs.map +0 -1
  229. package/dist/components/Heading.d.ts.map +0 -1
@@ -0,0 +1,2151 @@
1
+ 'use strict';
2
+
3
+ var chunkEARF7VDF_cjs = require('./chunk-EARF7VDF.cjs');
4
+ var factory = require('@ark-ui/react/factory');
5
+ var utils = require('@ark-ui/react/utils');
6
+ var react$1 = require('react');
7
+ var jsx = require('styled-system/jsx');
8
+ var recipes = require('styled-system/recipes');
9
+ var react = require('@ark-ui/react');
10
+ var jsxRuntime = require('react/jsx-runtime');
11
+ var field = require('@ark-ui/react/field');
12
+ var css = require('styled-system/css');
13
+ var portal = require('@ark-ui/react/portal');
14
+ var toast = require('@ark-ui/react/toast');
15
+ var dialog = require('@ark-ui/react/dialog');
16
+ var _switch = require('@ark-ui/react/switch');
17
+ var accordion = require('@ark-ui/react/accordion');
18
+ var tabs = require('@ark-ui/react/tabs');
19
+ var checkbox = require('@ark-ui/react/checkbox');
20
+ var radioGroup = require('@ark-ui/react/radio-group');
21
+ var select = require('@ark-ui/react/select');
22
+ var slider = require('@ark-ui/react/slider');
23
+ var avatar = require('@ark-ui/react/avatar');
24
+ var progress = require('@ark-ui/react/progress');
25
+ var popover = require('@ark-ui/react/popover');
26
+ var tooltip = require('@ark-ui/react/tooltip');
27
+ var steps = require('@ark-ui/react/steps');
28
+ var react$2 = require('@dnd-kit/react');
29
+ var sortable = require('@dnd-kit/react/sortable');
30
+
31
+ // src/components/Group.tsx
32
+ var Group_exports = {};
33
+ chunkEARF7VDF_cjs.__export(Group_exports, {
34
+ Group: () => Group
35
+ });
36
+ var Group = jsx.styled(react.ark.div, recipes.group);
37
+
38
+ // src/components/AbsoluteCenter.tsx
39
+ var AbsoluteCenter_exports = {};
40
+ chunkEARF7VDF_cjs.__export(AbsoluteCenter_exports, {
41
+ AbsoluteCenter: () => AbsoluteCenter
42
+ });
43
+ var AbsoluteCenter = jsx.styled(factory.ark.div, recipes.absoluteCenter);
44
+ var Spinner = jsx.styled(factory.ark.span, recipes.spinner);
45
+ var Span = jsx.styled("span");
46
+ var Loader = react$1.forwardRef(function Loader2(props, ref) {
47
+ const {
48
+ spinner: spinner2 = /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: "inherit", borderWidth: "0.125em", color: "inherit" }),
49
+ spinnerPlacement = "start",
50
+ children,
51
+ text,
52
+ visible = true,
53
+ ...rest
54
+ } = props;
55
+ if (!visible) return children;
56
+ if (text) {
57
+ return /* @__PURE__ */ jsxRuntime.jsxs(Span, { ref, display: "contents", ...rest, children: [
58
+ spinnerPlacement === "start" && spinner2,
59
+ text,
60
+ spinnerPlacement === "end" && spinner2
61
+ ] });
62
+ }
63
+ if (spinner2) {
64
+ return /* @__PURE__ */ jsxRuntime.jsxs(Span, { ref, display: "contents", ...rest, children: [
65
+ /* @__PURE__ */ jsxRuntime.jsx(AbsoluteCenter, { display: "inline-flex", children: spinner2 }),
66
+ /* @__PURE__ */ jsxRuntime.jsx(Span, { visibility: "hidden", display: "contents", children })
67
+ ] });
68
+ }
69
+ return /* @__PURE__ */ jsxRuntime.jsx(Span, { ref, display: "contents", ...rest, children });
70
+ });
71
+ var BaseButton = jsx.styled(factory.ark.button, recipes.button);
72
+ var Button = react$1.forwardRef(
73
+ function Button2(props, ref) {
74
+ const propsContext = useButtonPropsContext();
75
+ const buttonProps = react$1.useMemo(
76
+ () => utils.mergeProps(propsContext, props),
77
+ [propsContext, props]
78
+ );
79
+ const {
80
+ loading,
81
+ loadingText,
82
+ children,
83
+ spinner: spinner2,
84
+ spinnerPlacement,
85
+ ...rest
86
+ } = buttonProps;
87
+ return /* @__PURE__ */ jsxRuntime.jsx(
88
+ BaseButton,
89
+ {
90
+ type: "button",
91
+ ref,
92
+ ...rest,
93
+ "data-loading": loading ? "" : void 0,
94
+ disabled: loading || rest.disabled,
95
+ children: !props.asChild && loading ? /* @__PURE__ */ jsxRuntime.jsx(
96
+ Loader,
97
+ {
98
+ spinner: spinner2,
99
+ text: loadingText,
100
+ spinnerPlacement,
101
+ children
102
+ }
103
+ ) : children
104
+ }
105
+ );
106
+ }
107
+ );
108
+ var ButtonGroup = react$1.forwardRef(
109
+ function ButtonGroup2(props, ref) {
110
+ const [variantProps, otherProps] = react$1.useMemo(
111
+ () => recipes.button.splitVariantProps(props),
112
+ [props]
113
+ );
114
+ return /* @__PURE__ */ jsxRuntime.jsx(ButtonPropsProvider, { value: variantProps, children: /* @__PURE__ */ jsxRuntime.jsx(Group, { ref, ...otherProps }) });
115
+ }
116
+ );
117
+ var [ButtonPropsProvider, useButtonPropsContext] = utils.createContext({
118
+ name: "ButtonPropsContext",
119
+ hookName: "useButtonPropsContext",
120
+ providerName: "<PropsProvider />",
121
+ strict: false
122
+ });
123
+ var IconButton = react$1.forwardRef(
124
+ function IconButton2(props, ref) {
125
+ return /* @__PURE__ */ jsxRuntime.jsx(Button, { px: "0", py: "0", ref, ...props });
126
+ }
127
+ );
128
+ var Input = jsx.styled(field.Field.Input, recipes.input);
129
+ var InputAddon = jsx.styled(factory.ark.div, recipes.inputAddon);
130
+ var { withProvider, withContext } = jsx.createStyleContext(recipes.inputGroup);
131
+ var Root = withProvider(factory.ark.div, "root");
132
+ var Element = withContext(factory.ark.div, "element");
133
+ var InputGroupRoot = react$1.forwardRef(
134
+ function InputGroup(props, ref) {
135
+ const { startElement, endElement, children, ...rest } = props;
136
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root, { ref, ...rest, children: [
137
+ startElement && /* @__PURE__ */ jsxRuntime.jsx(Element, { insetInlineStart: "0", top: "0", children: startElement }),
138
+ children,
139
+ endElement && /* @__PURE__ */ jsxRuntime.jsx(Element, { insetInlineEnd: "0", top: "0", children: endElement })
140
+ ] });
141
+ }
142
+ );
143
+ var InputGroup2 = Object.assign(InputGroupRoot, {
144
+ Root,
145
+ Element
146
+ });
147
+ var Textarea = jsx.styled(field.Field.Textarea, recipes.textarea);
148
+ var Header = jsx.styled("h2", recipes.heading);
149
+ var BaseBadge = jsx.styled(factory.ark.div, recipes.badge);
150
+ var Badge = react$1.forwardRef(
151
+ function Badge2(props, ref) {
152
+ const { colorPalette = "primary", className, ...rest } = props;
153
+ const colorPaletteClass = css.css({ colorPalette });
154
+ const mergedClassName = css.cx(colorPaletteClass, className);
155
+ return /* @__PURE__ */ jsxRuntime.jsx(BaseBadge, { ref, ...rest, className: mergedClassName });
156
+ }
157
+ );
158
+
159
+ // src/components/CloseButton.tsx
160
+ var CloseButton_exports = {};
161
+ chunkEARF7VDF_cjs.__export(CloseButton_exports, {
162
+ CloseButton: () => CloseButton
163
+ });
164
+ var XIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
165
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 6 6 18" }),
166
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m6 6 12 12" })
167
+ ] });
168
+ var CloseButton = react$1.forwardRef(
169
+ function CloseButton2(props, ref) {
170
+ return /* @__PURE__ */ jsxRuntime.jsx(IconButton, { variant: "plain", colorPalette: "gray", "aria-label": "Close", ref, ...props, children: props.children ?? /* @__PURE__ */ jsxRuntime.jsx(XIcon, {}) });
171
+ }
172
+ );
173
+
174
+ // src/components/Icon.tsx
175
+ var Icon_exports = {};
176
+ chunkEARF7VDF_cjs.__export(Icon_exports, {
177
+ Icon: () => Icon
178
+ });
179
+ var Icon = jsx.styled(factory.ark.svg);
180
+ var CheckCircleIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
181
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
182
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 11 3 3L22 4" })
183
+ ] });
184
+ var CircleAlertIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
185
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
186
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
187
+ /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
188
+ ] });
189
+ var CircleXIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
190
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
191
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m15 9-6 6" }),
192
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 9 6 6" })
193
+ ] });
194
+ var { withProvider: withProvider2, withContext: withContext2 } = jsx.createStyleContext(recipes.toast);
195
+ var Root2 = withProvider2(toast.Toast.Root, "root");
196
+ var Title = withContext2(toast.Toast.Title, "title");
197
+ var Description = withContext2(toast.Toast.Description, "description");
198
+ var ActionTrigger = withContext2(toast.Toast.ActionTrigger, "actionTrigger");
199
+ var CloseTrigger = withContext2(toast.Toast.CloseTrigger, "closeTrigger");
200
+ var StyledToaster = jsx.styled(toast.Toaster);
201
+ var iconMap = {
202
+ warning: CircleAlertIcon,
203
+ success: CheckCircleIcon,
204
+ error: CircleXIcon
205
+ };
206
+ var Indicator = react$1.forwardRef(function ToastIndicator(props, ref) {
207
+ const toast2 = toast.useToastContext();
208
+ const StatusIcon = iconMap[toast2.type];
209
+ if (!StatusIcon) return null;
210
+ return /* @__PURE__ */ jsxRuntime.jsx(Icon, { ref, "data-type": toast2.type, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(StatusIcon, {}) });
211
+ });
212
+ var toaster = toast.createToaster({
213
+ placement: "bottom-end",
214
+ pauseOnPageIdle: true,
215
+ overlap: true,
216
+ max: 5
217
+ });
218
+ var Toaster = () => {
219
+ return /* @__PURE__ */ jsxRuntime.jsx(portal.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(StyledToaster, { toaster, insetInline: { mdDown: "4" }, children: (toast2) => /* @__PURE__ */ jsxRuntime.jsxs(Root2, { children: [
220
+ toast2.type === "loading" ? /* @__PURE__ */ jsxRuntime.jsx(Spinner, { color: "colorPalette.plain.fg" }) : /* @__PURE__ */ jsxRuntime.jsx(Indicator, {}),
221
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.Stack, { gap: "3", alignItems: "start", children: [
222
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.Stack, { gap: "1", children: [
223
+ toast2.title && /* @__PURE__ */ jsxRuntime.jsx(Title, { children: toast2.title }),
224
+ toast2.description && /* @__PURE__ */ jsxRuntime.jsx(Description, { children: toast2.description })
225
+ ] }),
226
+ toast2.action && /* @__PURE__ */ jsxRuntime.jsx(ActionTrigger, { children: toast2.action.label })
227
+ ] }),
228
+ toast2.closable && /* @__PURE__ */ jsxRuntime.jsx(CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "sm" }) })
229
+ ] }) }) });
230
+ };
231
+
232
+ // src/components/Card.tsx
233
+ var Card_exports = {};
234
+ chunkEARF7VDF_cjs.__export(Card_exports, {
235
+ Body: () => Body,
236
+ Card: () => Card,
237
+ Description: () => Description2,
238
+ Footer: () => Footer,
239
+ Header: () => Header2,
240
+ Root: () => Root3,
241
+ Title: () => Title2
242
+ });
243
+ var { withProvider: withProvider3, withContext: withContext3 } = jsx.createStyleContext(recipes.card);
244
+ var Root3 = withProvider3(factory.ark.div, "root");
245
+ var Header2 = withContext3(factory.ark.div, "header");
246
+ var Body = withContext3(factory.ark.div, "body");
247
+ var Footer = withContext3(factory.ark.div, "footer");
248
+ var Title2 = withContext3(factory.ark.h3, "title");
249
+ var Description2 = withContext3(factory.ark.div, "description");
250
+ var Card = {
251
+ Root: Root3,
252
+ Header: Header2,
253
+ Body,
254
+ Footer,
255
+ Title: Title2,
256
+ Description: Description2
257
+ };
258
+
259
+ // src/components/Dialog.tsx
260
+ var Dialog_exports = {};
261
+ chunkEARF7VDF_cjs.__export(Dialog_exports, {
262
+ Backdrop: () => Backdrop,
263
+ Body: () => Body2,
264
+ CloseTrigger: () => CloseTrigger2,
265
+ Content: () => Content,
266
+ Context: () => dialog.DialogContext,
267
+ Description: () => Description3,
268
+ Footer: () => Footer2,
269
+ Header: () => Header3,
270
+ Positioner: () => Positioner,
271
+ Root: () => Root4,
272
+ Title: () => Title3,
273
+ Trigger: () => Trigger
274
+ });
275
+ var { withRootProvider, withContext: withContext4 } = jsx.createStyleContext(recipes.dialog);
276
+ var Root4 = withRootProvider(dialog.Dialog.Root, {
277
+ defaultProps: { unmountOnExit: true, lazyMount: true }
278
+ });
279
+ var Backdrop = withContext4(dialog.Dialog.Backdrop, "backdrop");
280
+ var CloseTrigger2 = withContext4(dialog.Dialog.CloseTrigger, "closeTrigger");
281
+ var Content = withContext4(dialog.Dialog.Content, "content");
282
+ var Description3 = withContext4(dialog.Dialog.Description, "description");
283
+ var Positioner = withContext4(dialog.Dialog.Positioner, "positioner");
284
+ var Title3 = withContext4(dialog.Dialog.Title, "title");
285
+ var Trigger = withContext4(dialog.Dialog.Trigger, "trigger");
286
+ var Body2 = withContext4(factory.ark.div, "body");
287
+ var Header3 = withContext4(factory.ark.div, "header");
288
+ var Footer2 = withContext4(factory.ark.div, "footer");
289
+
290
+ // src/components/Switch.tsx
291
+ var Switch_exports = {};
292
+ chunkEARF7VDF_cjs.__export(Switch_exports, {
293
+ Context: () => _switch.SwitchContext,
294
+ Control: () => Control,
295
+ HiddenInput: () => HiddenInput,
296
+ Label: () => Label,
297
+ Root: () => Root5,
298
+ Thumb: () => Thumb
299
+ });
300
+ var { withProvider: withProvider4, withContext: withContext5 } = jsx.createStyleContext(recipes.switchComponent);
301
+ var Root5 = withProvider4(_switch.Switch.Root, "root");
302
+ var Label = withContext5(_switch.Switch.Label, "label");
303
+ var Thumb = withContext5(_switch.Switch.Thumb, "thumb");
304
+ var HiddenInput = _switch.Switch.HiddenInput;
305
+ var Control = withContext5(_switch.Switch.Control, "control", {
306
+ defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(Thumb, {}) }
307
+ });
308
+
309
+ // src/components/Accordion.tsx
310
+ var Accordion_exports = {};
311
+ chunkEARF7VDF_cjs.__export(Accordion_exports, {
312
+ Context: () => accordion.AccordionContext,
313
+ Item: () => Item,
314
+ ItemBody: () => ItemBody,
315
+ ItemContent: () => ItemContent,
316
+ ItemIndicator: () => ItemIndicator,
317
+ ItemTrigger: () => ItemTrigger,
318
+ Root: () => Root6,
319
+ RootProvider: () => RootProvider
320
+ });
321
+ var ChevronDownIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m6 9 6 6 6-6" }) });
322
+ var { withProvider: withProvider5, withContext: withContext6 } = jsx.createStyleContext(recipes.accordion);
323
+ var Root6 = withProvider5(accordion.Accordion.Root, "root");
324
+ var RootProvider = withProvider5(accordion.Accordion.RootProvider, "root");
325
+ var Item = withContext6(accordion.Accordion.Item, "item");
326
+ var ItemContent = withContext6(accordion.Accordion.ItemContent, "itemContent");
327
+ var ItemIndicator = withContext6(accordion.Accordion.ItemIndicator, "itemIndicator", {
328
+ defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, {}) }
329
+ });
330
+ var ItemTrigger = withContext6(accordion.Accordion.ItemTrigger, "itemTrigger");
331
+ var ItemBody = withContext6(factory.ark.div, "itemBody");
332
+
333
+ // src/components/Drawer.tsx
334
+ var Drawer_exports = {};
335
+ chunkEARF7VDF_cjs.__export(Drawer_exports, {
336
+ Backdrop: () => Backdrop2,
337
+ Body: () => Body3,
338
+ CloseTrigger: () => CloseTrigger3,
339
+ Content: () => Content2,
340
+ Context: () => dialog.DialogContext,
341
+ Description: () => Description4,
342
+ Footer: () => Footer3,
343
+ Header: () => Header4,
344
+ Positioner: () => Positioner2,
345
+ Root: () => Root7,
346
+ RootProvider: () => RootProvider2,
347
+ Title: () => Title4,
348
+ Trigger: () => Trigger2
349
+ });
350
+ var { withRootProvider: withRootProvider2, withContext: withContext7 } = jsx.createStyleContext(recipes.drawer);
351
+ var Root7 = withRootProvider2(dialog.Dialog.Root, {
352
+ defaultProps: { unmountOnExit: true, lazyMount: true }
353
+ });
354
+ var RootProvider2 = withRootProvider2(dialog.Dialog.Root, {
355
+ defaultProps: { unmountOnExit: true, lazyMount: true }
356
+ });
357
+ var Backdrop2 = withContext7(dialog.Dialog.Backdrop, "backdrop");
358
+ var Positioner2 = withContext7(dialog.Dialog.Positioner, "positioner");
359
+ var CloseTrigger3 = withContext7(dialog.Dialog.CloseTrigger, "closeTrigger");
360
+ var Content2 = withContext7(dialog.Dialog.Content, "content");
361
+ var Description4 = withContext7(dialog.Dialog.Description, "description");
362
+ var Title4 = withContext7(dialog.Dialog.Title, "title");
363
+ var Trigger2 = withContext7(dialog.Dialog.Trigger, "trigger");
364
+ var Body3 = withContext7(factory.ark.div, "body");
365
+ var Header4 = withContext7(factory.ark.div, "header");
366
+ var Footer3 = withContext7(factory.ark.div, "footer");
367
+
368
+ // src/components/Tabs.tsx
369
+ var Tabs_exports = {};
370
+ chunkEARF7VDF_cjs.__export(Tabs_exports, {
371
+ Content: () => Content3,
372
+ Context: () => tabs.TabsContext,
373
+ Indicator: () => Indicator2,
374
+ List: () => List,
375
+ Root: () => Root8,
376
+ RootProvider: () => RootProvider3,
377
+ Trigger: () => Trigger3
378
+ });
379
+ var { withProvider: withProvider6, withContext: withContext8 } = jsx.createStyleContext(recipes.tabs);
380
+ var Root8 = withProvider6(tabs.Tabs.Root, "root");
381
+ var RootProvider3 = withProvider6(tabs.Tabs.RootProvider, "root");
382
+ var List = withContext8(tabs.Tabs.List, "list");
383
+ var Trigger3 = withContext8(tabs.Tabs.Trigger, "trigger");
384
+ var Content3 = withContext8(tabs.Tabs.Content, "content");
385
+ var Indicator2 = withContext8(tabs.Tabs.Indicator, "indicator");
386
+
387
+ // src/components/Checkbox.tsx
388
+ var Checkbox_exports = {};
389
+ chunkEARF7VDF_cjs.__export(Checkbox_exports, {
390
+ Control: () => Control2,
391
+ Group: () => Group2,
392
+ GroupProvider: () => checkbox.CheckboxGroupProvider,
393
+ HiddenInput: () => HiddenInput2,
394
+ Indicator: () => Indicator3,
395
+ Label: () => Label2,
396
+ Root: () => Root9,
397
+ RootProvider: () => RootProvider4
398
+ });
399
+ var { withProvider: withProvider7, withContext: withContext9 } = jsx.createStyleContext(recipes.checkbox);
400
+ var Root9 = withProvider7(checkbox.Checkbox.Root, "root");
401
+ var RootProvider4 = withProvider7(checkbox.Checkbox.RootProvider, "root");
402
+ var Control2 = withContext9(checkbox.Checkbox.Control, "control");
403
+ var Group2 = withProvider7(checkbox.Checkbox.Group, "group");
404
+ var Label2 = withContext9(checkbox.Checkbox.Label, "label");
405
+ var HiddenInput2 = checkbox.Checkbox.HiddenInput;
406
+ var Indicator3 = react$1.forwardRef(
407
+ function Indicator4(props, ref) {
408
+ const { indeterminate, checked } = checkbox.useCheckboxContext();
409
+ return /* @__PURE__ */ jsxRuntime.jsx(checkbox.Checkbox.Indicator, { indeterminate, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
410
+ jsx.styled.svg,
411
+ {
412
+ ref,
413
+ viewBox: "0 0 24 24",
414
+ fill: "none",
415
+ stroke: "currentColor",
416
+ strokeWidth: "3px",
417
+ strokeLinecap: "round",
418
+ strokeLinejoin: "round",
419
+ ...props,
420
+ children: [
421
+ /* @__PURE__ */ jsxRuntime.jsx("title", { children: "Checkmark" }),
422
+ indeterminate ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14" }) : checked ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6 9 17l-5-5" }) : null
423
+ ]
424
+ }
425
+ ) });
426
+ }
427
+ );
428
+
429
+ // src/components/RadioGroup.tsx
430
+ var RadioGroup_exports = {};
431
+ chunkEARF7VDF_cjs.__export(RadioGroup_exports, {
432
+ Context: () => radioGroup.RadioGroupContext,
433
+ Indicator: () => Indicator5,
434
+ Item: () => Item2,
435
+ ItemControl: () => ItemControl,
436
+ ItemHiddenInput: () => ItemHiddenInput,
437
+ ItemText: () => ItemText,
438
+ Label: () => Label3,
439
+ Root: () => Root10,
440
+ RootProvider: () => RootProvider5
441
+ });
442
+ var { withProvider: withProvider8, withContext: withContext10 } = jsx.createStyleContext(recipes.radioGroup);
443
+ var Root10 = withProvider8(radioGroup.RadioGroup.Root, "root");
444
+ var RootProvider5 = withProvider8(radioGroup.RadioGroup.RootProvider, "root");
445
+ var Indicator5 = withContext10(radioGroup.RadioGroup.Indicator, "indicator");
446
+ var Item2 = withContext10(radioGroup.RadioGroup.Item, "item");
447
+ var ItemControl = withContext10(radioGroup.RadioGroup.ItemControl, "itemControl");
448
+ var ItemText = withContext10(radioGroup.RadioGroup.ItemText, "itemText");
449
+ var Label3 = withContext10(radioGroup.RadioGroup.Label, "label");
450
+ var ItemHiddenInput = radioGroup.RadioGroup.ItemHiddenInput;
451
+
452
+ // src/components/Select.tsx
453
+ var Select_exports = {};
454
+ chunkEARF7VDF_cjs.__export(Select_exports, {
455
+ ClearTrigger: () => ClearTrigger,
456
+ Content: () => Content4,
457
+ Context: () => select.SelectContext,
458
+ Control: () => Control3,
459
+ HiddenSelect: () => HiddenSelect,
460
+ Indicator: () => Indicator6,
461
+ IndicatorGroup: () => IndicatorGroup,
462
+ Item: () => Item3,
463
+ ItemContext: () => select.SelectItemContext,
464
+ ItemGroup: () => ItemGroup,
465
+ ItemGroupLabel: () => ItemGroupLabel,
466
+ ItemIndicator: () => ItemIndicator2,
467
+ ItemText: () => ItemText2,
468
+ Label: () => Label4,
469
+ List: () => List2,
470
+ Positioner: () => Positioner3,
471
+ Root: () => Root11,
472
+ Trigger: () => Trigger4,
473
+ ValueText: () => ValueText
474
+ });
475
+ var { withProvider: withProvider9, withContext: withContext11 } = jsx.createStyleContext(recipes.select);
476
+ var CheckIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "20 6 9 17 4 12" }) });
477
+ var ChevronsUpDownIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
478
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m7 15 5 5 5-5" }),
479
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m7 9 5-5 5 5" })
480
+ ] });
481
+ var Root11 = withProvider9(select.Select.Root, "root");
482
+ var ClearTrigger = withContext11(select.Select.ClearTrigger, "clearTrigger");
483
+ var Content4 = withContext11(select.Select.Content, "content");
484
+ var Control3 = withContext11(select.Select.Control, "control");
485
+ var IndicatorGroup = withContext11(factory.ark.div, "indicatorGroup");
486
+ var Item3 = withContext11(select.Select.Item, "item");
487
+ var ItemGroup = withContext11(select.Select.ItemGroup, "itemGroup");
488
+ var ItemGroupLabel = withContext11(select.Select.ItemGroupLabel, "itemGroupLabel");
489
+ var ItemText2 = withContext11(select.Select.ItemText, "itemText");
490
+ var Label4 = withContext11(select.Select.Label, "label");
491
+ var List2 = withContext11(select.Select.List, "list");
492
+ var Positioner3 = withContext11(select.Select.Positioner, "positioner");
493
+ var Trigger4 = withContext11(select.Select.Trigger, "trigger");
494
+ var ValueText = withContext11(select.Select.ValueText, "valueText");
495
+ var Indicator6 = withContext11(select.Select.Indicator, "indicator", {
496
+ defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(ChevronsUpDownIcon, {}) }
497
+ });
498
+ var HiddenSelect = select.Select.HiddenSelect;
499
+ var StyledItemIndicator = withContext11(select.Select.ItemIndicator, "itemIndicator");
500
+ var ItemIndicator2 = react$1.forwardRef(
501
+ function ItemIndicator3(props, ref) {
502
+ const item = select.useSelectItemContext();
503
+ return item.selected ? /* @__PURE__ */ jsxRuntime.jsx(StyledItemIndicator, { ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, {}) }) : /* @__PURE__ */ jsxRuntime.jsx("svg", { "aria-hidden": "true", focusable: "false" });
504
+ }
505
+ );
506
+
507
+ // src/components/Slider.tsx
508
+ var Slider_exports = {};
509
+ chunkEARF7VDF_cjs.__export(Slider_exports, {
510
+ Context: () => slider.SliderContext,
511
+ Control: () => Control4,
512
+ DraggingIndicator: () => DraggingIndicator,
513
+ HiddenInput: () => HiddenInput3,
514
+ Label: () => Label5,
515
+ Marker: () => Marker,
516
+ MarkerGroup: () => MarkerGroup,
517
+ MarkerIndicator: () => MarkerIndicator,
518
+ Marks: () => Marks,
519
+ Range: () => Range,
520
+ Root: () => Root12,
521
+ Thumb: () => Thumb2,
522
+ Thumbs: () => Thumbs,
523
+ Track: () => Track,
524
+ ValueText: () => ValueText2
525
+ });
526
+ var StyleContextInternal = react$1.createContext(null);
527
+ var Root12 = react$1.forwardRef(
528
+ function SliderRoot(props, ref) {
529
+ const { orientation, size, variant, colorPalette, className, ...arkProps } = props;
530
+ const styles = recipes.slider({ orientation, size, variant });
531
+ const colorPaletteClass = colorPalette ? `color-palette_${colorPalette}` : "";
532
+ const combinedClassName = [styles.root, colorPaletteClass, className].filter(Boolean).join(" ");
533
+ return /* @__PURE__ */ jsxRuntime.jsx(StyleContextInternal.Provider, { value: styles, children: /* @__PURE__ */ jsxRuntime.jsx(
534
+ slider.Slider.Root,
535
+ {
536
+ ref,
537
+ orientation,
538
+ className: combinedClassName,
539
+ ...arkProps
540
+ }
541
+ ) });
542
+ }
543
+ );
544
+ var createStyledComponent = (Component, slot, displayName) => {
545
+ const StyledComponent = react$1.forwardRef((props, ref) => {
546
+ const styles = react$1.useContext(StyleContextInternal);
547
+ const slotClass = styles?.[slot];
548
+ const { className, ...rest } = props;
549
+ return /* @__PURE__ */ jsxRuntime.jsx(Component, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
550
+ });
551
+ StyledComponent.displayName = displayName;
552
+ return StyledComponent;
553
+ };
554
+ var Control4 = createStyledComponent(slider.Slider.Control, "control", "Control");
555
+ var Track = createStyledComponent(slider.Slider.Track, "track", "Track");
556
+ var Range = createStyledComponent(slider.Slider.Range, "range", "Range");
557
+ var Thumb2 = react$1.forwardRef((props, ref) => {
558
+ const styles = react$1.useContext(StyleContextInternal);
559
+ const slotClass = styles?.thumb;
560
+ const { className, ...rest } = props;
561
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Thumb, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
562
+ });
563
+ Thumb2.displayName = "Thumb";
564
+ var Label5 = react$1.forwardRef((props, ref) => {
565
+ const styles = react$1.useContext(StyleContextInternal);
566
+ const slotClass = styles?.label;
567
+ const { className, ...rest } = props;
568
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Label, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
569
+ });
570
+ Label5.displayName = "Label";
571
+ var ValueText2 = react$1.forwardRef((props, ref) => {
572
+ const styles = react$1.useContext(StyleContextInternal);
573
+ const slotClass = styles?.valueText;
574
+ const { className, ...rest } = props;
575
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.ValueText, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
576
+ });
577
+ ValueText2.displayName = "ValueText";
578
+ var Marker = react$1.forwardRef((props, ref) => {
579
+ const styles = react$1.useContext(StyleContextInternal);
580
+ const slotClass = styles?.marker;
581
+ const { className, ...rest } = props;
582
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Marker, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
583
+ });
584
+ Marker.displayName = "Marker";
585
+ var MarkerGroup = react$1.forwardRef((props, ref) => {
586
+ const styles = react$1.useContext(StyleContextInternal);
587
+ const slotClass = styles?.markerGroup;
588
+ const { className, ...rest } = props;
589
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.MarkerGroup, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
590
+ });
591
+ MarkerGroup.displayName = "MarkerGroup";
592
+ var MarkerIndicator = react$1.forwardRef((props, ref) => {
593
+ const styles = react$1.useContext(StyleContextInternal);
594
+ const slotClass = styles?.markerIndicator;
595
+ const { className, ...rest } = props;
596
+ return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
597
+ });
598
+ MarkerIndicator.displayName = "MarkerIndicator";
599
+ var DraggingIndicator = react$1.forwardRef((props, ref) => {
600
+ const styles = react$1.useContext(StyleContextInternal);
601
+ const slotClass = styles?.draggingIndicator;
602
+ const { className, ...rest } = props;
603
+ return /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.DraggingIndicator, { ref, className: `${slotClass} ${className || ""}`.trim(), ...rest });
604
+ });
605
+ DraggingIndicator.displayName = "DraggingIndicator";
606
+ var HiddenInput3 = slider.Slider.HiddenInput;
607
+ var Marks = react$1.forwardRef(function Marks2(props, ref) {
608
+ const { marks, ...rest } = props;
609
+ if (!marks?.length) return null;
610
+ return /* @__PURE__ */ jsxRuntime.jsx(MarkerGroup, { ref, ...rest, children: marks.map((mark, index) => {
611
+ const value = typeof mark === "number" ? mark : mark.value;
612
+ const label = typeof mark === "number" ? void 0 : mark.label;
613
+ return /* @__PURE__ */ jsxRuntime.jsxs(Marker, { value, children: [
614
+ /* @__PURE__ */ jsxRuntime.jsx(MarkerIndicator, {}),
615
+ label != null && /* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
616
+ ] }, index);
617
+ }) });
618
+ });
619
+ var Thumbs = (props) => {
620
+ const slider2 = slider.useSliderContext();
621
+ return slider2.value.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(Thumb2, { index, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(HiddenInput3, {}) }, index));
622
+ };
623
+
624
+ // src/components/Avatar.tsx
625
+ var Avatar_exports = {};
626
+ chunkEARF7VDF_cjs.__export(Avatar_exports, {
627
+ Context: () => avatar.AvatarContext,
628
+ Fallback: () => Fallback,
629
+ Image: () => Image,
630
+ Root: () => Root13,
631
+ RootProvider: () => RootProvider6
632
+ });
633
+ var UserIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
634
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
635
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "7", r: "4" })
636
+ ] });
637
+ var { withProvider: withProvider10, withContext: withContext12 } = jsx.createStyleContext(recipes.avatar);
638
+ var Root13 = withProvider10(avatar.Avatar.Root, "root");
639
+ var RootProvider6 = withProvider10(avatar.Avatar.RootProvider, "root");
640
+ var Image = withContext12(avatar.Avatar.Image, "image", {
641
+ defaultProps: {
642
+ draggable: "false",
643
+ referrerPolicy: "no-referrer"
644
+ }
645
+ });
646
+ var StyledFallback = withContext12(avatar.Avatar.Fallback, "fallback");
647
+ var Fallback = react$1.forwardRef(function Fallback2(props, ref) {
648
+ const { name, children, asChild, ...rest } = props;
649
+ const fallbackContent = children || asChild ? children : name ? getInitials(name) : /* @__PURE__ */ jsxRuntime.jsx(UserIcon, {});
650
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledFallback, { ref, ...rest, children: fallbackContent });
651
+ });
652
+ var getInitials = (name) => {
653
+ const names = name.trim().split(" ");
654
+ const firstName = names[0] || "";
655
+ const lastName = names.length > 1 ? names[names.length - 1] : "";
656
+ return firstName && lastName ? `${firstName[0]}${lastName[0]}` : firstName[0];
657
+ };
658
+
659
+ // src/components/Progress.tsx
660
+ var Progress_exports = {};
661
+ chunkEARF7VDF_cjs.__export(Progress_exports, {
662
+ Circle: () => Circle,
663
+ CircleRange: () => CircleRange,
664
+ CircleTrack: () => CircleTrack,
665
+ Label: () => Label6,
666
+ Range: () => Range2,
667
+ Root: () => Root14,
668
+ RootProvider: () => RootProvider7,
669
+ Track: () => Track2,
670
+ ValueText: () => ValueText3,
671
+ View: () => View
672
+ });
673
+ var { withProvider: withProvider11, withContext: withContext13 } = jsx.createStyleContext(recipes.progress);
674
+ var Root14 = withProvider11(progress.Progress.Root, "root");
675
+ var RootProvider7 = withProvider11(progress.Progress.RootProvider, "root");
676
+ var Circle = withContext13(progress.Progress.Circle, "circle");
677
+ var CircleRange = withContext13(progress.Progress.CircleRange, "circleRange");
678
+ var CircleTrack = withContext13(progress.Progress.CircleTrack, "circleTrack");
679
+ var Label6 = withContext13(progress.Progress.Label, "label");
680
+ var Range2 = withContext13(progress.Progress.Range, "range");
681
+ var Track2 = withContext13(progress.Progress.Track, "track");
682
+ var ValueText3 = withContext13(progress.Progress.ValueText, "valueText");
683
+ var View = withContext13(progress.Progress.View, "view");
684
+
685
+ // src/components/Skeleton.tsx
686
+ var Skeleton_exports = {};
687
+ chunkEARF7VDF_cjs.__export(Skeleton_exports, {
688
+ Skeleton: () => Skeleton,
689
+ SkeletonCircle: () => SkeletonCircle,
690
+ SkeletonText: () => SkeletonText
691
+ });
692
+ var Skeleton = jsx.styled(factory.ark.div, recipes.skeleton);
693
+ var SkeletonCircle = jsx.styled(factory.ark.div, recipes.skeleton, { defaultProps: { circle: true } });
694
+ var SkeletonText = react$1.forwardRef(
695
+ function SkeletonText2(props, ref) {
696
+ const { noOfLines = 3, gap, rootProps, ...skeletonProps } = props;
697
+ return /* @__PURE__ */ jsxRuntime.jsx(jsx.Stack, { ref, gap, width: "full", ...rootProps, children: [...Array(noOfLines).keys()].map((index) => /* @__PURE__ */ jsxRuntime.jsx(
698
+ Skeleton,
699
+ {
700
+ height: "4",
701
+ _last: { maxW: noOfLines === 1 ? "100%" : "80%" },
702
+ ...skeletonProps
703
+ },
704
+ index
705
+ )) });
706
+ }
707
+ );
708
+
709
+ // src/components/Popover.tsx
710
+ var Popover_exports = {};
711
+ chunkEARF7VDF_cjs.__export(Popover_exports, {
712
+ Anchor: () => Anchor,
713
+ Arrow: () => Arrow,
714
+ ArrowTip: () => ArrowTip,
715
+ Body: () => Body4,
716
+ CloseTrigger: () => CloseTrigger4,
717
+ Content: () => Content5,
718
+ Context: () => popover.PopoverContext,
719
+ Description: () => Description5,
720
+ Footer: () => Footer4,
721
+ Header: () => Header5,
722
+ Indicator: () => Indicator7,
723
+ Positioner: () => Positioner4,
724
+ Root: () => Root15,
725
+ RootProvider: () => RootProvider8,
726
+ Title: () => Title5,
727
+ Trigger: () => Trigger5
728
+ });
729
+ var { withRootProvider: withRootProvider3, withContext: withContext14 } = jsx.createStyleContext(recipes.popover);
730
+ var Root15 = withRootProvider3(popover.Popover.Root, {
731
+ defaultProps: { unmountOnExit: true, lazyMount: true }
732
+ });
733
+ var RootProvider8 = withRootProvider3(popover.Popover.Root, {
734
+ defaultProps: { unmountOnExit: true, lazyMount: true }
735
+ });
736
+ var Anchor = withContext14(popover.Popover.Anchor, "anchor");
737
+ var ArrowTip = withContext14(popover.Popover.ArrowTip, "arrowTip");
738
+ var Arrow = withContext14(popover.Popover.Arrow, "arrow", {
739
+ defaultProps: { children: /* @__PURE__ */ jsxRuntime.jsx(ArrowTip, {}) }
740
+ });
741
+ var CloseTrigger4 = withContext14(popover.Popover.CloseTrigger, "closeTrigger");
742
+ var Content5 = withContext14(popover.Popover.Content, "content");
743
+ var Description5 = withContext14(popover.Popover.Description, "description");
744
+ var Indicator7 = withContext14(popover.Popover.Indicator, "indicator");
745
+ var Positioner4 = withContext14(popover.Popover.Positioner, "positioner");
746
+ var Title5 = withContext14(popover.Popover.Title, "title");
747
+ var Trigger5 = withContext14(popover.Popover.Trigger, "trigger");
748
+ var Body4 = withContext14(factory.ark.div, "body");
749
+ var Header5 = withContext14(factory.ark.div, "header");
750
+ var Footer4 = withContext14(factory.ark.div, "footer");
751
+
752
+ // src/components/Tooltip.tsx
753
+ var Tooltip_exports = {};
754
+ chunkEARF7VDF_cjs.__export(Tooltip_exports, {
755
+ Context: () => tooltip.TooltipContext,
756
+ Tooltip: () => Tooltip
757
+ });
758
+ var { withRootProvider: withRootProvider4, withContext: withContext15 } = jsx.createStyleContext(recipes.tooltip);
759
+ var Root16 = withRootProvider4(tooltip.Tooltip.Root, {
760
+ defaultProps: { unmountOnExit: true, lazyMount: true }
761
+ });
762
+ var Arrow2 = withContext15(tooltip.Tooltip.Arrow, "arrow");
763
+ var ArrowTip2 = withContext15(tooltip.Tooltip.ArrowTip, "arrowTip");
764
+ var Content6 = withContext15(tooltip.Tooltip.Content, "content");
765
+ var Positioner5 = withContext15(tooltip.Tooltip.Positioner, "positioner");
766
+ var Trigger6 = withContext15(tooltip.Tooltip.Trigger, "trigger");
767
+ var Tooltip = react$1.forwardRef(function Tooltip2(props, ref) {
768
+ const {
769
+ showArrow,
770
+ children,
771
+ disabled,
772
+ portalled = true,
773
+ content,
774
+ contentProps,
775
+ portalRef,
776
+ ...rootProps
777
+ } = props;
778
+ if (disabled) return children;
779
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root16, { ...rootProps, children: [
780
+ /* @__PURE__ */ jsxRuntime.jsx(Trigger6, { asChild: true, children }),
781
+ /* @__PURE__ */ jsxRuntime.jsx(portal.Portal, { disabled: !portalled, container: portalRef, children: /* @__PURE__ */ jsxRuntime.jsx(Positioner5, { children: /* @__PURE__ */ jsxRuntime.jsxs(Content6, { ref, ...contentProps, children: [
782
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow2, { children: /* @__PURE__ */ jsxRuntime.jsx(ArrowTip2, {}) }),
783
+ content
784
+ ] }) }) })
785
+ ] });
786
+ });
787
+ var StyledSvg = jsx.styled(factory.ark.svg);
788
+ var GripDotsVerticalIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
789
+ StyledSvg,
790
+ {
791
+ viewBox: "0 0 24 24",
792
+ fill: "none",
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ width: "1em",
795
+ height: "1em",
796
+ ...props,
797
+ children: /* @__PURE__ */ jsxRuntime.jsx(
798
+ "path",
799
+ {
800
+ d: "M9 6H9.01M15 6H15.01M15 12H15.01M9 12H9.01M9 18H9.01M15 18H15.01M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6ZM16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6ZM10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12ZM16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12ZM10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18ZM16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",
801
+ stroke: "currentColor",
802
+ strokeWidth: "2",
803
+ strokeLinecap: "round",
804
+ strokeLinejoin: "round"
805
+ }
806
+ )
807
+ }
808
+ );
809
+ var StyledSvg2 = jsx.styled(factory.ark.svg);
810
+ var ClockIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
811
+ StyledSvg2,
812
+ {
813
+ viewBox: "0 0 24 24",
814
+ fill: "none",
815
+ xmlns: "http://www.w3.org/2000/svg",
816
+ width: "1em",
817
+ height: "1em",
818
+ ...props,
819
+ children: [
820
+ /* @__PURE__ */ jsxRuntime.jsx(
821
+ "path",
822
+ {
823
+ d: "M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z",
824
+ stroke: "currentColor",
825
+ strokeWidth: "1.5",
826
+ strokeLinecap: "round",
827
+ strokeLinejoin: "round"
828
+ }
829
+ ),
830
+ /* @__PURE__ */ jsxRuntime.jsx(
831
+ "path",
832
+ {
833
+ d: "M12 6V12",
834
+ stroke: "currentColor",
835
+ strokeWidth: "1.5",
836
+ strokeLinecap: "round",
837
+ strokeLinejoin: "round"
838
+ }
839
+ ),
840
+ /* @__PURE__ */ jsxRuntime.jsx(
841
+ "path",
842
+ {
843
+ d: "M16.24 16.24L12 12",
844
+ stroke: "currentColor",
845
+ strokeWidth: "1.5",
846
+ strokeLinecap: "round",
847
+ strokeLinejoin: "round"
848
+ }
849
+ )
850
+ ]
851
+ }
852
+ );
853
+ var StyledSvg3 = jsx.styled(factory.ark.svg);
854
+ var DashboardIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
855
+ StyledSvg3,
856
+ {
857
+ viewBox: "0 0 24 24",
858
+ fill: "none",
859
+ xmlns: "http://www.w3.org/2000/svg",
860
+ width: "1em",
861
+ height: "1em",
862
+ ...props,
863
+ children: [
864
+ /* @__PURE__ */ jsxRuntime.jsx(
865
+ "path",
866
+ {
867
+ d: "M9.5 4.5H5.33333C4.8731 4.5 4.5 4.8731 4.5 5.33333V11.1667C4.5 11.6269 4.8731 12 5.33333 12H9.5C9.96024 12 10.3333 11.6269 10.3333 11.1667V5.33333C10.3333 4.8731 9.96024 4.5 9.5 4.5Z",
868
+ stroke: "currentColor",
869
+ strokeWidth: "2",
870
+ strokeLinecap: "round",
871
+ strokeLinejoin: "round"
872
+ }
873
+ ),
874
+ /* @__PURE__ */ jsxRuntime.jsx(
875
+ "path",
876
+ {
877
+ d: "M18.6667 4.5H14.5C14.0398 4.5 13.6667 4.8731 13.6667 5.33333V7.83333C13.6667 8.29357 14.0398 8.66667 14.5 8.66667H18.6667C19.1269 8.66667 19.5 8.29357 19.5 7.83333V5.33333C19.5 4.8731 19.1269 4.5 18.6667 4.5Z",
878
+ stroke: "currentColor",
879
+ strokeWidth: "2",
880
+ strokeLinecap: "round",
881
+ strokeLinejoin: "round"
882
+ }
883
+ ),
884
+ /* @__PURE__ */ jsxRuntime.jsx(
885
+ "path",
886
+ {
887
+ d: "M18.6667 12H14.5C14.0398 12 13.6667 12.3731 13.6667 12.8333V18.6667C13.6667 19.1269 14.0398 19.5 14.5 19.5H18.6667C19.1269 19.5 19.5 19.1269 19.5 18.6667V12.8333C19.5 12.3731 19.1269 12 18.6667 12Z",
888
+ stroke: "currentColor",
889
+ strokeWidth: "2",
890
+ strokeLinecap: "round",
891
+ strokeLinejoin: "round"
892
+ }
893
+ ),
894
+ /* @__PURE__ */ jsxRuntime.jsx(
895
+ "path",
896
+ {
897
+ d: "M9.5 15.3333H5.33333C4.8731 15.3333 4.5 15.7064 4.5 16.1667V18.6667C4.5 19.1269 4.8731 19.5 5.33333 19.5H9.5C9.96024 19.5 10.3333 19.1269 10.3333 18.6667V16.1667C10.3333 15.7064 9.96024 15.3333 9.5 15.3333Z",
898
+ stroke: "currentColor",
899
+ strokeWidth: "2",
900
+ strokeLinecap: "round",
901
+ strokeLinejoin: "round"
902
+ }
903
+ )
904
+ ]
905
+ }
906
+ );
907
+ var StyledSvg4 = jsx.styled(factory.ark.svg);
908
+ var NotebookIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
909
+ StyledSvg4,
910
+ {
911
+ viewBox: "0 0 24 24",
912
+ fill: "none",
913
+ xmlns: "http://www.w3.org/2000/svg",
914
+ width: "1em",
915
+ height: "1em",
916
+ ...props,
917
+ children: /* @__PURE__ */ jsxRuntime.jsx(
918
+ "path",
919
+ {
920
+ d: "M12 7.83333C12 6.94928 11.6488 6.10143 11.0236 5.47631C10.3985 4.85119 9.55068 4.5 8.66663 4.5H3.66663V17H9.49996C10.163 17 10.7989 17.2634 11.2677 17.7322C11.7366 18.2011 12 18.837 12 19.5M12 7.83333V19.5M12 7.83333C12 6.94928 12.3511 6.10143 12.9763 5.47631C13.6014 4.85119 14.4492 4.5 15.3333 4.5H20.3333V17H14.5C13.8369 17 13.201 17.2634 12.7322 17.7322C12.2634 18.2011 12 18.837 12 19.5M6.99996 8.66667H8.66663M6.99996 12H8.66663M15.3333 8.66667H17M15.3333 12H17",
921
+ stroke: "currentColor",
922
+ strokeWidth: "2",
923
+ strokeLinecap: "round",
924
+ strokeLinejoin: "round"
925
+ }
926
+ )
927
+ }
928
+ );
929
+ var StyledSvg5 = jsx.styled(factory.ark.svg);
930
+ var ScenarioIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
931
+ StyledSvg5,
932
+ {
933
+ viewBox: "0 0 24 24",
934
+ fill: "none",
935
+ xmlns: "http://www.w3.org/2000/svg",
936
+ width: "1em",
937
+ height: "1em",
938
+ ...props,
939
+ children: /* @__PURE__ */ jsxRuntime.jsx(
940
+ "path",
941
+ {
942
+ d: "M19.5 14.5C19.5 14.942 19.3244 15.366 19.0118 15.6785C18.6993 15.9911 18.2754 16.1667 17.8333 16.1667H7.83333L4.5 19.5V6.16667C4.5 5.72464 4.67559 5.30072 4.98816 4.98816C5.30072 4.67559 5.72464 4.5 6.16667 4.5H17.8333C18.2754 4.5 18.6993 4.67559 19.0118 4.98816C19.3244 5.30072 19.5 5.72464 19.5 6.16667V14.5Z",
943
+ stroke: "currentColor",
944
+ strokeWidth: "2",
945
+ strokeLinecap: "round",
946
+ strokeLinejoin: "round"
947
+ }
948
+ )
949
+ }
950
+ );
951
+ var StyledSvg6 = jsx.styled(factory.ark.svg);
952
+ var HelpIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
953
+ StyledSvg6,
954
+ {
955
+ viewBox: "0 0 20 20",
956
+ fill: "none",
957
+ xmlns: "http://www.w3.org/2000/svg",
958
+ width: "1em",
959
+ height: "1em",
960
+ ...props,
961
+ children: /* @__PURE__ */ jsxRuntime.jsx(
962
+ "path",
963
+ {
964
+ d: "M9.16663 10H10.8333C11.2753 10 11.6992 9.82443 12.0118 9.51186C12.3244 9.1993 12.5 8.77538 12.5 8.33335C12.5 7.89133 12.3244 7.4674 12.0118 7.15484C11.6992 6.84228 11.2753 6.66669 10.8333 6.66669H8.33329C7.83329 6.66669 7.41663 6.83335 7.16663 7.16669L2.49996 11.6667M5.83329 15L7.16663 13.8334C7.41663 13.5 7.83329 13.3334 8.33329 13.3334H11.6666C12.5833 13.3334 13.4166 13 14 12.3334L17.8333 8.66671C18.1549 8.36282 18.3426 7.94362 18.3551 7.50135C18.3676 7.05908 18.2039 6.62995 17.9 6.30838C17.5961 5.9868 17.1769 5.79912 16.7346 5.78662C16.2923 5.77411 15.8632 5.93782 15.5416 6.24171L12.0416 9.49171M1.66663 10.8334L6.66663 15.8334",
965
+ stroke: "currentColor",
966
+ strokeWidth: "2",
967
+ strokeLinecap: "round",
968
+ strokeLinejoin: "round"
969
+ }
970
+ )
971
+ }
972
+ );
973
+ var StyledSvg7 = jsx.styled(factory.ark.svg);
974
+ var AccountIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
975
+ StyledSvg7,
976
+ {
977
+ viewBox: "0 0 20 20",
978
+ fill: "none",
979
+ xmlns: "http://www.w3.org/2000/svg",
980
+ width: "1em",
981
+ height: "1em",
982
+ ...props,
983
+ children: /* @__PURE__ */ jsxRuntime.jsx(
984
+ "path",
985
+ {
986
+ d: "M10 10.8333C12.3012 10.8333 14.1667 8.96785 14.1667 6.66667C14.1667 4.36548 12.3012 2.5 10 2.5C7.69885 2.5 5.83337 4.36548 5.83337 6.66667C5.83337 8.96785 7.69885 10.8333 10 10.8333ZM10 10.8333C11.7682 10.8333 13.4638 11.5357 14.7141 12.786C15.9643 14.0362 16.6667 15.7319 16.6667 17.5M10 10.8333C8.23193 10.8333 6.53624 11.5357 5.286 12.786C4.03575 14.0362 3.33337 15.7319 3.33337 17.5",
987
+ stroke: "currentColor",
988
+ strokeWidth: "2",
989
+ strokeLinecap: "round",
990
+ strokeLinejoin: "round"
991
+ }
992
+ )
993
+ }
994
+ );
995
+ var StyledSvg8 = jsx.styled(factory.ark.svg);
996
+ var RightArrowIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
997
+ StyledSvg8,
998
+ {
999
+ viewBox: "0 0 19 19",
1000
+ fill: "none",
1001
+ xmlns: "http://www.w3.org/2000/svg",
1002
+ width: "1em",
1003
+ height: "1em",
1004
+ ...props,
1005
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1006
+ "path",
1007
+ {
1008
+ d: "M15.9172 13.2266H3.74219V11.2266H15.9172L10.3172 5.62656L11.7422 4.22656L19.7422 12.2266L11.7422 20.2266L10.3172 18.8266L15.9172 13.2266Z",
1009
+ fill: "currentColor"
1010
+ }
1011
+ )
1012
+ }
1013
+ );
1014
+ var StyledSvg9 = jsx.styled(factory.ark.svg);
1015
+ var ChevronUpIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
1016
+ StyledSvg9,
1017
+ {
1018
+ viewBox: "0 0 24 15",
1019
+ fill: "none",
1020
+ xmlns: "http://www.w3.org/2000/svg",
1021
+ width: "1em",
1022
+ height: "1em",
1023
+ ...props,
1024
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1025
+ "path",
1026
+ {
1027
+ transform: "translate(-521, -1202)",
1028
+ d: "M544.345,1213.39 L534.615,1202.6 C534.167,1202.15 533.57,1201.95 532.984,1201.99 C532.398,1201.95 531.802,1202.15 531.354,1202.6 L521.624,1213.39 C520.797,1214.22 520.797,1215.57 521.624,1216.4 C522.452,1217.23 523.793,1217.23 524.621,1216.4 L532.984,1207.13 L541.349,1216.4 C542.176,1217.23 543.518,1217.23 544.345,1216.4 C545.172,1215.57 545.172,1214.22 544.345,1213.39",
1029
+ fill: "currentColor"
1030
+ }
1031
+ )
1032
+ }
1033
+ );
1034
+ var StyledSvg10 = jsx.styled(factory.ark.svg);
1035
+ var DiscourserLogo = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
1036
+ StyledSvg10,
1037
+ {
1038
+ viewBox: "0 0 348 60",
1039
+ fill: "none",
1040
+ xmlns: "http://www.w3.org/2000/svg",
1041
+ height: "1.5em",
1042
+ width: "auto",
1043
+ "aria-label": "Discourser",
1044
+ role: "img",
1045
+ ...props,
1046
+ children: [
1047
+ /* @__PURE__ */ jsxRuntime.jsx(
1048
+ "path",
1049
+ {
1050
+ d: "M19.0846 31.268C18.3876 32.0449 17.7712 32.3057 17.2355 32.0504C16.9275 31.8946 16.7421 31.644 16.679 31.2984C16.6034 30.8836 16.7705 30.4583 17.1802 30.0224C19.1108 27.5794 20.2729 25.7123 20.6664 24.4211C21.1149 23.048 21.2572 21.9121 21.0934 21.0135C20.8665 19.7694 20.4262 18.8879 19.7725 18.369C19.1062 17.781 18.3976 17.3441 17.6466 17.0584C16.8831 16.7036 16.1744 16.2667 15.5207 15.7478C14.867 15.2289 14.4268 14.3474 14.1999 13.1032C13.973 11.8591 14.2167 10.7039 14.9307 9.63763C15.6448 8.57137 16.7447 7.89635 18.2304 7.61255C19.9188 7.29006 21.3491 7.66059 22.5215 8.72416C23.7613 9.77482 24.5766 11.3715 24.9673 13.5142C25.5471 16.6938 25.4011 19.7258 24.5294 22.6103C23.6577 25.4949 21.8427 28.3808 19.0846 31.268Z",
1051
+ fill: "#A8B84A"
1052
+ }
1053
+ ),
1054
+ /* @__PURE__ */ jsxRuntime.jsx(
1055
+ "path",
1056
+ {
1057
+ d: "M9.89259 8.66096C9.39063 8.34172 8.74816 8.52495 7.96517 9.21064C4.88851 11.7384 2.74839 14.3806 1.54485 17.1373C0.341313 19.894 -0.158994 22.8862 0.0439088 26.1139C0.180647 28.2891 0.802911 29.9744 1.91068 31.1697C2.94988 32.3695 4.32643 32.913 6.04037 32.8001C7.54865 32.7008 8.71975 32.1657 9.55366 31.1949C10.3876 30.224 10.7648 29.107 10.6854 27.844C10.606 26.581 10.2723 25.6518 9.68409 25.0564C9.09593 24.461 8.44363 23.9402 7.72718 23.4942C7.01513 23.1183 6.3628 22.5976 5.77023 21.9321C5.18207 21.3367 4.84829 20.4074 4.7689 19.1444C4.71155 18.2322 4.98599 17.1221 5.59217 15.8139C6.13421 14.5804 7.50673 12.8694 9.70977 10.6811C10.1676 10.2986 10.3833 9.8969 10.3569 9.47589C10.3348 9.12505 10.1801 8.85341 9.89259 8.66096Z",
1058
+ fill: "#9870D9"
1059
+ }
1060
+ ),
1061
+ /* @__PURE__ */ jsxRuntime.jsx(
1062
+ "path",
1063
+ {
1064
+ d: "M25 50.8318C25 50.5118 25.1067 50.2345 25.32 49.9998C25.5547 49.7438 25.864 49.5518 26.248 49.4238L28.2 49.0398C28.5413 48.9545 28.8293 48.8158 29.064 48.6238C29.2987 48.4318 29.512 48.1332 29.704 47.7278C29.896 47.3012 30.0987 46.7358 30.312 46.0318C30.568 45.1358 30.8987 43.9305 31.304 42.4158C31.7307 40.8798 32.2 39.1625 32.712 37.2638C33.224 35.3438 33.7573 33.3492 34.312 31.2798C34.8667 29.1892 35.4107 27.1305 35.944 25.1038C36.4987 23.0558 37 21.1572 37.448 19.4078C37.9173 17.6372 38.312 16.1118 38.632 14.8318C38.952 13.5518 39.176 12.6345 39.304 12.0798C39.432 11.5038 39.4213 11.0665 39.272 10.7678C39.144 10.4692 38.8347 10.2665 38.344 10.1598L36.456 9.74382C36.0933 9.61582 35.8267 9.46649 35.656 9.29582C35.4853 9.12516 35.4 8.89049 35.4 8.59182C35.4 8.16515 35.5493 7.83449 35.848 7.59982C36.1467 7.34382 36.5947 7.21582 37.192 7.21582H55.592C58.6853 7.21582 61.4693 7.71715 63.944 8.71982C66.4187 9.72249 68.4667 11.1945 70.088 13.1358C71.7093 15.0772 72.7973 17.4452 73.352 20.2398C73.928 23.0345 73.864 26.2345 73.16 29.8398C72.4987 33.3385 71.3467 36.4638 69.704 39.2158C68.0613 41.9465 66.024 44.2612 63.592 46.1598C61.1813 48.0585 58.4507 49.5092 55.4 50.5118C52.3493 51.5145 49.064 52.0158 45.544 52.0158H26.504C25.928 52.0158 25.5333 51.9092 25.32 51.6958C25.1067 51.4612 25 51.1732 25 50.8318ZM46.056 49.2958C47.5707 49.2958 49.0533 48.9332 50.504 48.2078C51.9547 47.4612 53.3307 46.2985 54.632 44.7198C55.9547 43.1412 57.1493 41.1038 58.216 38.6078C59.304 36.0905 60.2107 33.0612 60.936 29.5198C61.6827 26.0852 62.0453 23.1305 62.024 20.6558C62.024 18.1812 61.736 16.1545 61.16 14.5758C60.584 12.9758 59.8053 11.8025 58.824 11.0558C57.8427 10.2878 56.7227 9.90382 55.464 9.90382H54.152C53.2987 9.90382 52.552 10.2025 51.912 10.7998C51.2933 11.3758 50.7813 12.3358 50.376 13.6798C50.184 14.3198 49.9173 15.2798 49.576 16.5598C49.2347 17.8185 48.84 19.2798 48.392 20.9438C47.944 22.6078 47.464 24.3785 46.952 26.2558C46.44 28.1118 45.9387 29.9785 45.448 31.8558C44.9573 33.7332 44.488 35.5252 44.04 37.2318C43.6133 38.9172 43.24 40.4212 42.92 41.7438C42.6 43.0665 42.3653 44.0798 42.216 44.7838C41.896 46.3198 41.928 47.4612 42.312 48.2078C42.696 48.9332 43.432 49.2958 44.52 49.2958H46.056Z",
1065
+ fill: "currentColor"
1066
+ }
1067
+ ),
1068
+ /* @__PURE__ */ jsxRuntime.jsx(
1069
+ "path",
1070
+ {
1071
+ d: "M87.6105 42.7358C87.0772 44.3572 86.8852 45.4772 87.0345 46.0958C87.1838 46.6932 87.4932 46.9918 87.9625 46.9918C88.3038 46.9918 88.6558 46.8745 89.0185 46.6398C89.4025 46.4052 89.8612 45.9892 90.3945 45.3918C90.7358 45.0718 91.0132 44.8798 91.2265 44.8158C91.4398 44.7305 91.6425 44.7305 91.8345 44.8158C92.0905 44.9438 92.2185 45.1892 92.2185 45.5518C92.2398 45.8932 92.1012 46.3518 91.8025 46.9278C90.9278 48.6558 89.5732 50.0638 87.7385 51.1518C85.9252 52.2398 83.7492 52.7838 81.2105 52.7838C79.5038 52.7838 78.2345 52.4638 77.4025 51.8238C76.5918 51.1625 76.1652 50.2132 76.1225 48.9758C76.1012 47.7385 76.3892 46.2558 76.9865 44.5278L81.2105 32.1758C81.7438 30.6612 81.9465 29.6052 81.8185 29.0078C81.6905 28.3892 81.3812 28.0798 80.8905 28.0798C80.5705 28.0798 80.2185 28.1972 79.8345 28.4318C79.4505 28.6665 78.9385 29.1145 78.2985 29.7758C77.9785 30.0532 77.7118 30.2238 77.4985 30.2878C77.2852 30.3518 77.0718 30.3412 76.8585 30.2558C76.6025 30.1492 76.4745 29.9252 76.4745 29.5838C76.4745 29.2425 76.6132 28.8158 76.8905 28.3038C77.9358 26.4052 79.3758 24.8798 81.2105 23.7278C83.0665 22.5545 85.1465 21.9678 87.4505 21.9678C88.9652 21.9678 90.1385 22.2985 90.9705 22.9598C91.8025 23.6212 92.2825 24.6025 92.4105 25.9038C92.5598 27.1838 92.3145 28.7625 91.6745 30.6398L87.6105 42.7358ZM89.0505 18.1598C87.3225 18.1598 85.9998 17.7438 85.0825 16.9118C84.1652 16.0798 83.7172 15.0452 83.7385 13.8078C83.7598 12.7412 84.0905 11.7172 84.7305 10.7358C85.3705 9.75449 86.2665 8.94382 87.4185 8.30382C88.5705 7.66382 89.9252 7.34382 91.4825 7.34382C93.3812 7.34382 94.7572 7.78116 95.6105 8.65582C96.4638 9.50916 96.8798 10.5438 96.8585 11.7598C96.8372 12.9332 96.5065 14.0105 95.8665 14.9918C95.2265 15.9518 94.3198 16.7198 93.1465 17.2958C91.9945 17.8718 90.6292 18.1598 89.0505 18.1598Z",
1072
+ fill: "currentColor"
1073
+ }
1074
+ ),
1075
+ /* @__PURE__ */ jsxRuntime.jsx(
1076
+ "path",
1077
+ {
1078
+ d: "M106.986 50.2878C108.053 50.2878 108.917 49.9572 109.578 49.2958C110.239 48.6345 110.581 47.7918 110.602 46.7678C110.602 46.0852 110.453 45.4665 110.154 44.9118C109.877 44.3358 109.365 43.7278 108.618 43.0878C107.893 42.4265 106.847 41.6692 105.482 40.8158C103.882 39.7705 102.581 38.7998 101.578 37.9038C100.597 37.0078 99.882 36.0692 99.434 35.0878C98.986 34.1065 98.7727 33.0078 98.794 31.7918C98.858 30.0212 99.4553 28.3892 100.586 26.8958C101.738 25.3812 103.381 24.1652 105.514 23.2478C107.647 22.3305 110.229 21.8718 113.258 21.8718C115.69 21.8718 117.706 22.1812 119.306 22.7998C120.906 23.3972 122.101 24.2078 122.89 25.2318C123.701 26.2345 124.117 27.3545 124.138 28.5918C124.159 29.8292 123.893 30.7892 123.338 31.4718C122.805 32.1545 122.079 32.4958 121.162 32.4958C120.202 32.4958 119.381 32.1758 118.698 31.5358C118.037 30.8958 117.407 29.7545 116.81 28.1118C116.255 26.7892 115.605 25.8185 114.858 25.1998C114.133 24.5812 113.258 24.2718 112.234 24.2718C111.167 24.2718 110.303 24.6025 109.642 25.2638C108.981 25.9038 108.65 26.7785 108.65 27.8878C108.65 28.5705 108.799 29.2425 109.098 29.9038C109.397 30.5438 109.951 31.2585 110.762 32.0478C111.594 32.8158 112.789 33.7332 114.346 34.7998C116.031 35.9092 117.343 36.9225 118.282 37.8398C119.221 38.7572 119.871 39.6745 120.234 40.5918C120.597 41.5092 120.746 42.5438 120.682 43.6958C120.597 45.4665 119.946 47.0345 118.73 48.3998C117.514 49.7652 115.839 50.8425 113.706 51.6318C111.594 52.3998 109.13 52.7838 106.314 52.7838C103.647 52.7838 101.461 52.4532 99.754 51.7918C98.0473 51.1092 96.7887 50.2132 95.978 49.1038C95.1887 47.9945 94.794 46.7998 94.794 45.5198C94.8153 44.4318 95.082 43.5465 95.594 42.8638C96.106 42.1812 96.8207 41.8398 97.738 41.8398C98.826 41.8398 99.7113 42.2025 100.394 42.9278C101.098 43.6532 101.727 44.7945 102.282 46.3518C102.922 47.8238 103.615 48.8478 104.362 49.4238C105.109 49.9998 105.983 50.2878 106.986 50.2878Z",
1079
+ fill: "currentColor"
1080
+ }
1081
+ ),
1082
+ /* @__PURE__ */ jsxRuntime.jsx(
1083
+ "path",
1084
+ {
1085
+ d: "M152.541 29.9998C152.541 30.9598 152.232 31.7598 151.613 32.3998C151.016 33.0185 150.216 33.3278 149.213 33.3278C148.21 33.3278 147.421 33.0398 146.845 32.4638C146.269 31.8665 145.981 31.0558 145.981 30.0318V28.7198C145.981 27.2692 145.49 26.1065 144.509 25.2318C143.549 24.3358 142.226 23.8878 140.541 23.8878C138.941 23.8878 137.522 24.3678 136.285 25.3278C135.069 26.2665 134.109 27.5998 133.405 29.3278C132.722 31.0345 132.381 33.0505 132.381 35.3758C132.381 38.1705 132.84 40.5385 133.757 42.4798C134.674 44.4212 135.922 45.8932 137.501 46.8958C139.08 47.8985 140.882 48.3998 142.909 48.3998C144.914 48.3998 146.653 47.9198 148.125 46.9598C149.597 45.9998 150.642 44.6665 151.261 42.9598C151.432 42.7038 151.581 42.5332 151.709 42.4478C151.837 42.3412 151.976 42.2985 152.125 42.3198C152.338 42.3198 152.488 42.4052 152.573 42.5758C152.658 42.7465 152.69 42.9492 152.669 43.1838C152.413 45.0398 151.741 46.6825 150.653 48.1118C149.565 49.5412 148.157 50.6612 146.429 51.4718C144.701 52.2825 142.738 52.6878 140.541 52.6878C137.789 52.6878 135.357 52.1012 133.245 50.9278C131.133 49.7332 129.469 48.0372 128.253 45.8398C127.058 43.6212 126.461 40.9865 126.461 37.9358C126.461 34.9705 127.08 32.2932 128.317 29.9038C129.554 27.5145 131.282 25.6265 133.501 24.2398C135.741 22.8318 138.354 22.1278 141.341 22.1278C143.666 22.1278 145.661 22.4905 147.325 23.2158C149.01 23.9198 150.301 24.8692 151.197 26.0638C152.093 27.2585 152.541 28.5705 152.541 29.9998Z",
1086
+ fill: "currentColor"
1087
+ }
1088
+ ),
1089
+ /* @__PURE__ */ jsxRuntime.jsx(
1090
+ "path",
1091
+ {
1092
+ d: "M171.947 22.1598C174.913 22.1598 177.537 22.8105 179.82 24.1118C182.102 25.4132 183.894 27.2158 185.195 29.5198C186.497 31.8238 187.148 34.4798 187.148 37.4878C187.148 40.4318 186.486 43.0558 185.163 45.3598C183.841 47.6425 182.017 49.4452 179.691 50.7678C177.387 52.0692 174.721 52.7198 171.691 52.7198C168.726 52.7198 166.102 52.0798 163.82 50.7998C161.537 49.4985 159.755 47.6958 158.475 45.3918C157.195 43.0878 156.555 40.4425 156.555 37.4558C156.555 34.4692 157.206 31.8345 158.508 29.5518C159.809 27.2478 161.611 25.4452 163.915 24.1438C166.241 22.8212 168.918 22.1598 171.947 22.1598ZM173.9 50.7998C175.606 50.5865 177.014 49.8825 178.124 48.6878C179.233 47.4932 179.979 45.8612 180.363 43.7918C180.769 41.7012 180.769 39.2265 180.363 36.3678C179.958 33.4665 179.254 31.0665 178.251 29.1678C177.27 27.2692 176.054 25.8932 174.604 25.0398C173.153 24.1652 171.542 23.8345 169.771 24.0478C168.043 24.2612 166.625 24.9758 165.516 26.1918C164.428 27.3865 163.691 29.0292 163.307 31.1198C162.923 33.1892 162.934 35.6532 163.34 38.5118C163.745 41.3492 164.449 43.7278 165.452 45.6478C166.454 47.5465 167.681 48.9332 169.132 49.8078C170.582 50.6825 172.172 51.0132 173.9 50.7998Z",
1093
+ fill: "currentColor"
1094
+ }
1095
+ ),
1096
+ /* @__PURE__ */ jsxRuntime.jsx(
1097
+ "path",
1098
+ {
1099
+ d: "M213.956 49.2638V46.5118L213.859 46.3518V27.4078C213.859 27.0665 213.795 26.8212 213.667 26.6718C213.539 26.5012 213.337 26.4052 213.06 26.3838L210.756 26.3198C210.5 26.2772 210.318 26.2025 210.212 26.0958C210.105 25.9892 210.051 25.8505 210.051 25.6798C210.051 25.4665 210.115 25.3065 210.243 25.1998C210.371 25.0718 210.595 24.9438 210.915 24.8158L217.124 22.8638C217.593 22.6718 217.966 22.5438 218.243 22.4798C218.542 22.4158 218.82 22.3838 219.076 22.3838C219.438 22.3838 219.716 22.4905 219.908 22.7038C220.1 22.9172 220.195 23.1945 220.195 23.5358V48.6238C220.195 49.0932 220.281 49.4452 220.452 49.6798C220.644 49.9145 220.921 50.0745 221.284 50.1598L222.948 50.4798C223.225 50.5438 223.427 50.6505 223.555 50.7998C223.705 50.9278 223.78 51.0878 223.78 51.2798C223.78 51.4932 223.694 51.6745 223.523 51.8238C223.353 51.9518 223.097 52.0158 222.756 52.0158H216.387C215.641 52.0158 215.044 51.7812 214.596 51.3118C214.169 50.8212 213.956 50.1385 213.956 49.2638ZM194.596 43.6638V27.4078C194.596 27.0665 194.532 26.8212 194.404 26.6718C194.297 26.5012 194.094 26.4052 193.796 26.3838L191.492 26.3198C191.236 26.2772 191.054 26.2025 190.947 26.0958C190.841 25.9892 190.788 25.8505 190.788 25.6798C190.788 25.4665 190.852 25.3065 190.98 25.1998C191.108 25.0718 191.332 24.9438 191.652 24.8158L197.859 22.8638C198.371 22.6718 198.766 22.5438 199.044 22.4798C199.321 22.4158 199.566 22.3838 199.779 22.3838C200.185 22.3838 200.484 22.4905 200.676 22.7038C200.868 22.9172 200.964 23.1945 200.964 23.5358V42.7998C200.964 44.9545 201.475 46.5545 202.499 47.5998C203.523 48.6238 204.878 49.1358 206.564 49.1358C207.609 49.1358 208.707 48.8798 209.859 48.3678C211.033 47.8558 212.27 47.0452 213.572 45.9358L214.82 44.8158L215.715 45.7118L214.436 46.8638C212.046 49.0185 209.945 50.5225 208.132 51.3758C206.34 52.2292 204.622 52.6558 202.98 52.6558C200.505 52.6558 198.489 51.8772 196.932 50.3198C195.374 48.7412 194.596 46.5225 194.596 43.6638Z",
1100
+ fill: "currentColor"
1101
+ }
1102
+ ),
1103
+ /* @__PURE__ */ jsxRuntime.jsx(
1104
+ "path",
1105
+ {
1106
+ d: "M237.021 35.8238C237.021 32.8372 237.448 30.3305 238.301 28.3038C239.155 26.2772 240.264 24.7412 241.63 23.6958C242.995 22.6505 244.435 22.1278 245.95 22.1278C247.72 22.1278 249.096 22.6398 250.077 23.6638C251.059 24.6665 251.549 26.0532 251.549 27.8238C251.549 29.1892 251.24 30.2238 250.622 30.9278C250.024 31.6318 249.256 31.9838 248.318 31.9838C247.4 31.9838 246.686 31.7278 246.174 31.2158C245.662 30.6825 245.406 29.9358 245.406 28.9758L245.374 27.9518C245.374 27.2052 245.214 26.6612 244.894 26.3198C244.574 25.9572 244.03 25.7758 243.262 25.7758C242.387 25.7758 241.534 26.1492 240.702 26.8958C239.87 27.6425 239.176 28.7625 238.622 30.2558C238.088 31.7492 237.822 33.6158 237.822 35.8558L237.021 35.8238ZM237.63 23.5678L237.822 32.3678V48.5918C237.822 48.9972 237.928 49.3278 238.141 49.5838C238.355 49.8185 238.696 49.9678 239.165 50.0318L242.141 50.4478C242.461 50.4905 242.696 50.5865 242.846 50.7358C243.016 50.8638 243.102 51.0452 243.102 51.2798C243.102 51.4932 243.006 51.6745 242.814 51.8238C242.643 51.9518 242.387 52.0158 242.046 52.0158H228.861C228.52 52.0158 228.264 51.9518 228.094 51.8238C227.944 51.6745 227.87 51.4932 227.87 51.2798C227.87 51.0878 227.933 50.9278 228.061 50.7998C228.211 50.6718 228.424 50.5652 228.702 50.4798L230.398 50.1598C230.76 50.0745 231.027 49.9145 231.197 49.6798C231.389 49.4452 231.486 49.1145 231.486 48.6878V27.3758C231.486 27.0345 231.422 26.7785 231.294 26.6078C231.187 26.4372 230.984 26.3412 230.686 26.3198L228.382 26.2558C228.126 26.2345 227.944 26.1705 227.837 26.0638C227.731 25.9358 227.678 25.7865 227.678 25.6158C227.678 25.4238 227.742 25.2638 227.87 25.1358C227.998 25.0078 228.232 24.8905 228.574 24.7838L234.686 22.8958C235.262 22.6825 235.688 22.5438 235.965 22.4798C236.264 22.4158 236.51 22.3838 236.702 22.3838C236.979 22.3838 237.192 22.4798 237.342 22.6718C237.491 22.8638 237.587 23.1625 237.63 23.5678Z",
1107
+ fill: "currentColor"
1108
+ }
1109
+ ),
1110
+ /* @__PURE__ */ jsxRuntime.jsx(
1111
+ "path",
1112
+ {
1113
+ d: "M267.162 51.0238C268.783 51.0238 270.053 50.6078 270.97 49.7758C271.909 48.9225 272.378 47.8132 272.378 46.4478C272.378 45.5945 272.175 44.8158 271.77 44.1118C271.365 43.4078 270.65 42.7678 269.626 42.1918C268.623 41.6158 267.205 41.0825 265.37 40.5918C262.618 39.8665 260.463 39.0238 258.906 38.0638C257.349 37.1038 256.25 36.0158 255.61 34.7998C254.97 33.5625 254.65 32.1972 254.65 30.7038C254.65 28.0585 255.578 25.9678 257.434 24.4318C259.29 22.8745 261.882 22.0958 265.21 22.0958C266.533 22.0958 267.621 22.2238 268.474 22.4798C269.327 22.7145 270.01 22.9492 270.522 23.1838C271.055 23.4185 271.493 23.5358 271.834 23.5358C272.175 23.5358 272.495 23.4185 272.794 23.1838C273.093 22.9492 273.381 22.7145 273.658 22.4798C273.957 22.2238 274.255 22.0958 274.554 22.0958C274.746 22.0958 274.917 22.1598 275.066 22.2878C275.215 22.3945 275.343 22.6185 275.45 22.9598L277.626 30.4478C277.754 30.8532 277.786 31.1945 277.722 31.4718C277.679 31.7492 277.519 31.9518 277.242 32.0798C276.965 32.1865 276.719 32.1865 276.506 32.0798C276.314 31.9732 276.122 31.7812 275.93 31.5038C274.97 29.5625 273.935 28.0372 272.826 26.9278C271.738 25.7972 270.586 24.9865 269.37 24.4958C268.154 24.0052 266.863 23.7598 265.498 23.7598C263.557 23.7598 262.074 24.1972 261.05 25.0718C260.047 25.9465 259.546 27.1092 259.546 28.5598C259.546 29.4345 259.759 30.2345 260.186 30.9598C260.613 31.6852 261.381 32.3465 262.49 32.9438C263.621 33.5412 265.221 34.1172 267.29 34.6718C269.722 35.2905 271.663 36.0478 273.114 36.9438C274.586 37.8398 275.642 38.9065 276.282 40.1438C276.922 41.3598 277.242 42.7572 277.242 44.3358C277.242 45.9998 276.837 47.4612 276.026 48.7198C275.215 49.9785 274.074 50.9598 272.602 51.6638C271.13 52.3678 269.423 52.7198 267.482 52.7198C266.223 52.7198 265.178 52.5705 264.346 52.2718C263.535 51.9732 262.863 51.6745 262.33 51.3758C261.797 51.0772 261.349 50.9278 260.986 50.9278C260.687 50.9278 260.389 51.0772 260.09 51.3758C259.813 51.6532 259.535 51.9305 259.258 52.2078C258.981 52.5065 258.703 52.6558 258.426 52.6558C258.255 52.6558 258.095 52.5812 257.946 52.4318C257.797 52.3038 257.69 52.0798 257.626 51.7598L256.186 44.8798C256.079 44.3465 256.047 43.9518 256.09 43.6958C256.154 43.4185 256.314 43.2265 256.57 43.1198C256.826 43.0132 257.05 43.0345 257.242 43.1838C257.455 43.3118 257.658 43.5572 257.85 43.9198C259.194 46.4798 260.666 48.3038 262.266 49.3918C263.887 50.4798 265.519 51.0238 267.162 51.0238Z",
1114
+ fill: "currentColor"
1115
+ }
1116
+ ),
1117
+ /* @__PURE__ */ jsxRuntime.jsx(
1118
+ "path",
1119
+ {
1120
+ d: "M308.93 33.9998C308.93 34.6612 308.727 35.1732 308.322 35.5358C307.916 35.8985 307.319 36.0798 306.53 36.0798H286.337V34.6398H301.281C302.071 34.6398 302.466 34.2772 302.466 33.5518C302.466 30.4372 301.868 28.0478 300.673 26.3838C299.479 24.7198 297.911 23.8878 295.97 23.8878C294.37 23.8878 292.983 24.3465 291.81 25.2638C290.636 26.1812 289.73 27.5038 289.09 29.2318C288.45 30.9598 288.129 33.0292 288.129 35.4398C288.129 39.7278 289.111 42.9918 291.073 45.2318C293.057 47.4505 295.639 48.5598 298.818 48.5598C300.93 48.5598 302.753 48.0372 304.289 46.9918C305.847 45.9252 306.881 44.4958 307.393 42.7038C307.564 42.4478 307.713 42.2772 307.841 42.1918C307.969 42.0852 308.108 42.0318 308.258 42.0318C308.471 42.0318 308.62 42.1278 308.706 42.3198C308.812 42.4905 308.855 42.7038 308.833 42.9598C308.684 44.7732 308.055 46.4265 306.945 47.9198C305.857 49.3918 304.407 50.5652 302.594 51.4398C300.78 52.2932 298.732 52.7198 296.449 52.7198C293.633 52.7198 291.159 52.1118 289.026 50.8958C286.892 49.6798 285.228 47.9732 284.034 45.7758C282.839 43.5572 282.241 40.9652 282.241 37.9998C282.241 34.9492 282.828 32.2292 284.001 29.8398C285.196 27.4505 286.881 25.5732 289.057 24.2078C291.233 22.8212 293.804 22.1278 296.77 22.1278C299.244 22.1278 301.388 22.6398 303.202 23.6638C305.015 24.6665 306.423 26.0638 307.426 27.8558C308.428 29.6265 308.93 31.6745 308.93 33.9998Z",
1121
+ fill: "currentColor"
1122
+ }
1123
+ ),
1124
+ /* @__PURE__ */ jsxRuntime.jsx(
1125
+ "path",
1126
+ {
1127
+ d: "M322.397 35.8238C322.397 32.8372 322.823 30.3305 323.677 28.3038C324.53 26.2772 325.639 24.7412 327.005 23.6958C328.37 22.6505 329.81 22.1278 331.324 22.1278C333.095 22.1278 334.471 22.6398 335.453 23.6638C336.434 24.6665 336.924 26.0532 336.924 27.8238C336.924 29.1892 336.615 30.2238 335.996 30.9278C335.399 31.6318 334.631 31.9838 333.693 31.9838C332.775 31.9838 332.06 31.7278 331.548 31.2158C331.036 30.6825 330.78 29.9358 330.78 28.9758L330.749 27.9518C330.749 27.2052 330.588 26.6612 330.268 26.3198C329.948 25.9572 329.405 25.7758 328.637 25.7758C327.762 25.7758 326.909 26.1492 326.077 26.8958C325.245 27.6425 324.551 28.7625 323.996 30.2558C323.463 31.7492 323.197 33.6158 323.197 35.8558L322.397 35.8238ZM323.004 23.5678L323.197 32.3678V48.5918C323.197 48.9972 323.303 49.3278 323.517 49.5838C323.73 49.8185 324.071 49.9678 324.54 50.0318L327.517 50.4478C327.837 50.4905 328.071 50.5865 328.22 50.7358C328.391 50.8638 328.477 51.0452 328.477 51.2798C328.477 51.4932 328.381 51.6745 328.189 51.8238C328.018 51.9518 327.762 52.0158 327.421 52.0158H314.237C313.895 52.0158 313.639 51.9518 313.469 51.8238C313.319 51.6745 313.245 51.4932 313.245 51.2798C313.245 51.0878 313.308 50.9278 313.436 50.7998C313.586 50.6718 313.799 50.5652 314.077 50.4798L315.772 50.1598C316.135 50.0745 316.402 49.9145 316.573 49.6798C316.765 49.4452 316.861 49.1145 316.861 48.6878V27.3758C316.861 27.0345 316.796 26.7785 316.668 26.6078C316.562 26.4372 316.359 26.3412 316.06 26.3198L313.757 26.2558C313.501 26.2345 313.319 26.1705 313.212 26.0638C313.106 25.9358 313.052 25.7865 313.052 25.6158C313.052 25.4238 313.117 25.2638 313.245 25.1358C313.373 25.0078 313.607 24.8905 313.948 24.7838L320.06 22.8958C320.636 22.6825 321.063 22.5438 321.341 22.4798C321.639 22.4158 321.885 22.3838 322.077 22.3838C322.354 22.3838 322.567 22.4798 322.716 22.6718C322.866 22.8638 322.962 23.1625 323.004 23.5678Z",
1128
+ fill: "currentColor"
1129
+ }
1130
+ )
1131
+ ]
1132
+ }
1133
+ );
1134
+
1135
+ // src/components/Breadcrumb.tsx
1136
+ var Breadcrumb_exports = {};
1137
+ chunkEARF7VDF_cjs.__export(Breadcrumb_exports, {
1138
+ CurrentLink: () => CurrentLink,
1139
+ Ellipsis: () => Ellipsis,
1140
+ Item: () => Item4,
1141
+ Link: () => Link,
1142
+ List: () => List3,
1143
+ Root: () => Root17,
1144
+ Separator: () => Separator
1145
+ });
1146
+ var ChevronRightIcon = () => /* @__PURE__ */ jsxRuntime.jsx(
1147
+ "svg",
1148
+ {
1149
+ width: "16",
1150
+ height: "16",
1151
+ viewBox: "0 0 24 24",
1152
+ fill: "none",
1153
+ stroke: "currentColor",
1154
+ strokeWidth: "2",
1155
+ strokeLinecap: "round",
1156
+ strokeLinejoin: "round",
1157
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" })
1158
+ }
1159
+ );
1160
+ var { withProvider: withProvider12, withContext: withContext16 } = jsx.createStyleContext(recipes.breadcrumb);
1161
+ var Root17 = withProvider12(factory.ark.nav, "root", {
1162
+ defaultProps: { "aria-label": "breadcrumb" }
1163
+ });
1164
+ var List3 = withContext16(factory.ark.ol, "list");
1165
+ var Item4 = withContext16(factory.ark.li, "item");
1166
+ var Link = withContext16(factory.ark.a, "link");
1167
+ var Ellipsis = withContext16(factory.ark.li, "ellipsis", {
1168
+ defaultProps: {
1169
+ role: "presentation",
1170
+ "aria-hidden": true,
1171
+ children: "..."
1172
+ }
1173
+ });
1174
+ var Separator = withContext16(factory.ark.li, "separator", {
1175
+ defaultProps: {
1176
+ "aria-hidden": true,
1177
+ children: /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, {})
1178
+ }
1179
+ });
1180
+ var CurrentLink = withContext16(factory.ark.span, "link", {
1181
+ defaultProps: {
1182
+ "aria-current": "page"
1183
+ }
1184
+ });
1185
+
1186
+ // src/components/ContentCard/index.ts
1187
+ var ContentCard_exports = {};
1188
+ chunkEARF7VDF_cjs.__export(ContentCard_exports, {
1189
+ BadgeBar: () => BadgeBar,
1190
+ Body: () => Body5,
1191
+ Header: () => Header6,
1192
+ List: () => List4,
1193
+ ListItem: () => ListItem,
1194
+ Root: () => Root18,
1195
+ Section: () => Section,
1196
+ SectionTitle: () => SectionTitle,
1197
+ Separator: () => Separator2,
1198
+ Title: () => Title6
1199
+ });
1200
+ var { withProvider: withProvider13, withContext: withContext17 } = jsx.createStyleContext(recipes.contentCard);
1201
+ var Root18 = withProvider13(factory.ark.div, "root");
1202
+ var Header6 = withContext17(factory.ark.div, "header");
1203
+ var Title6 = withContext17(factory.ark.h2, "title");
1204
+ var BadgeBar = withContext17(factory.ark.div, "badgeBar");
1205
+ var Body5 = withContext17(factory.ark.div, "body");
1206
+ var Section = withContext17(factory.ark.section, "section");
1207
+ var SectionTitle = withContext17(factory.ark.h3, "sectionTitle");
1208
+ var Separator2 = withContext17(factory.ark.hr, "separator");
1209
+ var List4 = withContext17(factory.ark.ul, "list");
1210
+ var ListItem = withContext17(factory.ark.li, "listItem");
1211
+ var CustomSeparator = ({ index, className }) => {
1212
+ const stepsContext = steps.useStepsContext();
1213
+ const currentStepIndex = stepsContext.value;
1214
+ const isComplete = currentStepIndex >= index + 2;
1215
+ return /* @__PURE__ */ jsxRuntime.jsx(
1216
+ steps.Steps.Separator,
1217
+ {
1218
+ className,
1219
+ ...isComplete ? { "data-complete": "" } : {}
1220
+ }
1221
+ );
1222
+ };
1223
+ var StepperRoot = react$1.forwardRef(
1224
+ ({
1225
+ steps: steps$1,
1226
+ size,
1227
+ orientation,
1228
+ colorPalette = "primary",
1229
+ showContent = true,
1230
+ showActions = false,
1231
+ prevLabel = "Back",
1232
+ nextLabel = "Next",
1233
+ className,
1234
+ children,
1235
+ step,
1236
+ defaultStep,
1237
+ ...props
1238
+ }, ref) => {
1239
+ const classes = recipes.stepper({ size, orientation, colorPalette });
1240
+ const stepOrientation = orientation || "horizontal";
1241
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1242
+ steps.Steps.Root,
1243
+ {
1244
+ ref,
1245
+ count: steps$1.length,
1246
+ orientation: stepOrientation,
1247
+ className: css.cx(classes.root, css.css({ colorPalette }), className),
1248
+ step,
1249
+ defaultStep,
1250
+ ...props,
1251
+ children: [
1252
+ /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.List, { className: classes.list, children: steps$1.map((step2, index) => /* @__PURE__ */ jsxRuntime.jsxs(steps.Steps.Item, { index, className: classes.item, children: [
1253
+ /* @__PURE__ */ jsxRuntime.jsxs(steps.Steps.Trigger, { className: classes.trigger, children: [
1254
+ /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.Indicator, { className: classes.indicator, children: index + 1 }),
1255
+ step2.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: classes.label, children: step2.title })
1256
+ ] }),
1257
+ index < steps$1.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(CustomSeparator, { index, className: classes.separator })
1258
+ ] }, step2.value)) }),
1259
+ showContent && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1260
+ steps$1.map((step2, index) => /* @__PURE__ */ jsxRuntime.jsx(
1261
+ steps.Steps.Content,
1262
+ {
1263
+ index,
1264
+ className: classes.content,
1265
+ children: step2.description || children
1266
+ },
1267
+ step2.value
1268
+ )),
1269
+ /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.Progress, { className: classes.progress, children: "All steps completed!" })
1270
+ ] }),
1271
+ showActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: css.css({ display: "flex", gap: "md", mt: "lg" }), children: [
1272
+ /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: recipes.button({ variant: "outline" }), children: prevLabel }) }),
1273
+ /* @__PURE__ */ jsxRuntime.jsx(steps.Steps.NextTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: recipes.button({ variant: "solid" }), children: nextLabel }) })
1274
+ ] }),
1275
+ children
1276
+ ]
1277
+ }
1278
+ );
1279
+ }
1280
+ );
1281
+ StepperRoot.displayName = "Stepper";
1282
+ var Stepper = Object.assign(StepperRoot, {
1283
+ Root: steps.Steps.Root,
1284
+ List: steps.Steps.List,
1285
+ Item: steps.Steps.Item,
1286
+ Trigger: steps.Steps.Trigger,
1287
+ Indicator: steps.Steps.Indicator,
1288
+ Separator: steps.Steps.Separator,
1289
+ Content: steps.Steps.Content,
1290
+ Progress: steps.Steps.Progress,
1291
+ PrevTrigger: steps.Steps.PrevTrigger,
1292
+ NextTrigger: steps.Steps.NextTrigger
1293
+ });
1294
+ function NavigationMenu({
1295
+ sections,
1296
+ activeHref,
1297
+ defaultOpenSections,
1298
+ onNavigate,
1299
+ renderLink,
1300
+ ariaLabel = "Navigation"
1301
+ }) {
1302
+ const styles = recipes.navigationMenu();
1303
+ const defaultRenderLink = ({
1304
+ href,
1305
+ children,
1306
+ isActive,
1307
+ className
1308
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
1309
+ "a",
1310
+ {
1311
+ href,
1312
+ "aria-current": isActive ? "page" : void 0,
1313
+ "data-active": isActive || void 0,
1314
+ className,
1315
+ onClick: (e) => {
1316
+ e.preventDefault();
1317
+ onNavigate?.(href);
1318
+ },
1319
+ children
1320
+ }
1321
+ );
1322
+ const resolvedRenderLink = renderLink ?? defaultRenderLink;
1323
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: styles.root, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx(
1324
+ Root6,
1325
+ {
1326
+ defaultValue: defaultOpenSections,
1327
+ multiple: true,
1328
+ variant: "plain",
1329
+ children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
1330
+ Item,
1331
+ {
1332
+ value: section.value,
1333
+ className: styles.section,
1334
+ children: [
1335
+ /* @__PURE__ */ jsxRuntime.jsxs(
1336
+ ItemTrigger,
1337
+ {
1338
+ className: styles.sectionTrigger,
1339
+ css: {
1340
+ // These override accordion recipe via utilities layer (same pattern as ScenarioCard)
1341
+ fontSize: "lg",
1342
+ // 18px — Figma spec (accordion forces 'md'/16px)
1343
+ fontWeight: "medium",
1344
+ // 500 — Figma spec (accordion forces semibold/600)
1345
+ borderRadius: "l3",
1346
+ // 8px — Figma spec (accordion forces l2/6px)
1347
+ p: "2",
1348
+ // 8px — Figma: 5px, spacing.2 is closest
1349
+ bg: "surface.container",
1350
+ // Figma: #eeefe3 section header bg
1351
+ color: "onSurface"
1352
+ // Figma: #363636 (accordion forces fg.default)
1353
+ },
1354
+ children: [
1355
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.HStack, { gap: "2", children: [
1356
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.sectionIcon, children: section.icon }),
1357
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.sectionTitle, children: section.title })
1358
+ ] }),
1359
+ /* @__PURE__ */ jsxRuntime.jsx(
1360
+ ItemIndicator,
1361
+ {
1362
+ className: styles.sectionIndicator,
1363
+ css: {
1364
+ color: "primary.50"
1365
+ // olive green chevrons — Figma: #518500
1366
+ }
1367
+ }
1368
+ )
1369
+ ]
1370
+ }
1371
+ ),
1372
+ /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { className: styles.sectionContent, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.itemList, children: section.items.map((item) => {
1373
+ const isActive = activeHref === item.href;
1374
+ return /* @__PURE__ */ jsxRuntime.jsx(react$1.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.item, children: resolvedRenderLink({
1375
+ href: item.href,
1376
+ children: item.label,
1377
+ isActive,
1378
+ className: styles.itemLink
1379
+ }) }) }, item.href);
1380
+ }) }) })
1381
+ ]
1382
+ },
1383
+ section.value
1384
+ ))
1385
+ }
1386
+ ) });
1387
+ }
1388
+ var INFO_SECTIONS = [
1389
+ {
1390
+ id: "conversation-flow",
1391
+ label: "Conversation Flow",
1392
+ explanation: {
1393
+ beginner: "Topic transitions are explicit and signposted",
1394
+ intermediate: "Conversation flows organically with realistic tangents",
1395
+ advanced: "Topic shifts are sudden and unpredictable"
1396
+ }
1397
+ },
1398
+ {
1399
+ id: "question-complexity",
1400
+ label: "Question Complexity",
1401
+ explanation: {
1402
+ beginner: "Questions focus on single, clear topics",
1403
+ intermediate: "Questions are layered with multiple components",
1404
+ advanced: "Questions are complex and multi-dimensional"
1405
+ }
1406
+ },
1407
+ {
1408
+ id: "discourse-tone",
1409
+ label: "Discourse Tone",
1410
+ explanation: {
1411
+ beginner: "AI is warm, encouraging, and supportive",
1412
+ intermediate: "AI is professional, neutral, and balanced",
1413
+ advanced: "AI is direct, skeptical, and challenging"
1414
+ }
1415
+ },
1416
+ {
1417
+ id: "response-pacing",
1418
+ label: "Response Pacing",
1419
+ explanation: {
1420
+ beginner: "Long pauses welcomed, relaxed timing",
1421
+ intermediate: "Natural conversational rhythm and pacing",
1422
+ advanced: "Quick responses expected, minimal pauses"
1423
+ }
1424
+ }
1425
+ ];
1426
+ var DURATION_OPTIONS = [
1427
+ { value: "quick", label: "Quick (10 - 15 min)", badgeLabel: "~ (10-15 min)" },
1428
+ {
1429
+ value: "standard",
1430
+ label: "Standard (15 - 25 min)",
1431
+ badgeLabel: "~ (15-25 min)"
1432
+ },
1433
+ {
1434
+ value: "extended",
1435
+ label: "Extended (25 - 35 min)",
1436
+ badgeLabel: "~ (25-35 min)"
1437
+ }
1438
+ ];
1439
+ var QUESTION_OPTIONS = [
1440
+ { value: "brief", label: "Brief (2-4)", badgeLabel: "2-4 questions" },
1441
+ { value: "standard", label: "Standard (5-8)", badgeLabel: "5-8 questions" },
1442
+ { value: "extended", label: "Extended (9-12)", badgeLabel: "9-12 questions" }
1443
+ ];
1444
+ var ALL_SECTION_IDS = [
1445
+ "conversation-flow",
1446
+ "question-complexity",
1447
+ "discourse-tone",
1448
+ "response-pacing",
1449
+ "duration",
1450
+ "number-of-questions"
1451
+ ];
1452
+ function ScenarioSettings({
1453
+ defaultValue,
1454
+ singleOpen = false,
1455
+ adjustmentDialogContent,
1456
+ renderAdjustmentDialog,
1457
+ defaultDuration = "quick",
1458
+ defaultQuestionCount = "brief",
1459
+ onSelectionChange
1460
+ }) {
1461
+ const styles = recipes.scenarioSettings();
1462
+ const resolvedDefaultValue = defaultValue ?? (singleOpen ? ["conversation-flow"] : ALL_SECTION_IDS);
1463
+ const [duration, setDuration] = react$1.useState(defaultDuration);
1464
+ const [questionCount, setQuestionCount] = react$1.useState(defaultQuestionCount);
1465
+ const durationBadge = DURATION_OPTIONS.find((o) => o.value === duration)?.badgeLabel ?? "~ (10-15 min)";
1466
+ const questionBadge = QUESTION_OPTIONS.find((o) => o.value === questionCount)?.badgeLabel ?? "2-4 questions";
1467
+ function resolveDialogContent(sectionId) {
1468
+ if (renderAdjustmentDialog) return renderAdjustmentDialog(sectionId);
1469
+ if (adjustmentDialogContent?.[sectionId])
1470
+ return adjustmentDialogContent[sectionId];
1471
+ return null;
1472
+ }
1473
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.root, children: /* @__PURE__ */ jsxRuntime.jsxs(
1474
+ Root6,
1475
+ {
1476
+ defaultValue: resolvedDefaultValue,
1477
+ collapsible: true,
1478
+ variant: "plain",
1479
+ children: [
1480
+ INFO_SECTIONS.map((section) => {
1481
+ const dialogContent = resolveDialogContent(section.id);
1482
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1483
+ Item,
1484
+ {
1485
+ value: section.id,
1486
+ className: styles.section,
1487
+ children: [
1488
+ /* @__PURE__ */ jsxRuntime.jsxs(
1489
+ ItemTrigger,
1490
+ {
1491
+ className: styles.sectionTrigger,
1492
+ css: {
1493
+ fontSize: "lg",
1494
+ fontWeight: "medium",
1495
+ borderRadius: "0",
1496
+ py: "4",
1497
+ bg: "surface",
1498
+ color: "onSurface"
1499
+ },
1500
+ children: [
1501
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.triggerLabel, children: section.label }),
1502
+ /* @__PURE__ */ jsxRuntime.jsx(
1503
+ ItemIndicator,
1504
+ {
1505
+ className: styles.sectionIndicator,
1506
+ css: { color: "primary.7" }
1507
+ }
1508
+ )
1509
+ ]
1510
+ }
1511
+ ),
1512
+ /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { className: styles.sectionContent, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.infoPanel, children: [
1513
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.explanationCard, children: [
1514
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles.explanationTitle, children: "What this means:" }),
1515
+ /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: styles.explanationList, children: [
1516
+ /* @__PURE__ */ jsxRuntime.jsxs("li", { className: styles.explanationItem, children: [
1517
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.levelLabel, children: "Beginner:" }),
1518
+ " ",
1519
+ section.explanation.beginner
1520
+ ] }),
1521
+ /* @__PURE__ */ jsxRuntime.jsxs("li", { className: styles.explanationItem, children: [
1522
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.levelLabel, children: "Intermediate:" }),
1523
+ " ",
1524
+ section.explanation.intermediate
1525
+ ] }),
1526
+ /* @__PURE__ */ jsxRuntime.jsxs("li", { className: styles.explanationItem, children: [
1527
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.levelLabel, children: "Advanced:" }),
1528
+ " ",
1529
+ section.explanation.advanced
1530
+ ] })
1531
+ ] })
1532
+ ] }),
1533
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.adjustmentsRow, children: /* @__PURE__ */ jsxRuntime.jsxs(Root4, { children: [
1534
+ /* @__PURE__ */ jsxRuntime.jsx(Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1535
+ Button,
1536
+ {
1537
+ size: "sm",
1538
+ "aria-label": `Open ${section.label} adjustments`,
1539
+ css: {
1540
+ bg: "secondary.7",
1541
+ color: "white",
1542
+ fontWeight: "medium",
1543
+ fontSize: "md",
1544
+ borderRadius: "l3",
1545
+ px: "4",
1546
+ h: "10",
1547
+ minW: "36",
1548
+ _hover: { bg: "secondary.8" }
1549
+ },
1550
+ children: "Adjustments"
1551
+ }
1552
+ ) }),
1553
+ /* @__PURE__ */ jsxRuntime.jsx(Backdrop, {}),
1554
+ /* @__PURE__ */ jsxRuntime.jsx(Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(Content, { css: { maxW: "lg", w: "full" }, children: [
1555
+ /* @__PURE__ */ jsxRuntime.jsxs(
1556
+ Header3,
1557
+ {
1558
+ css: {
1559
+ display: "flex",
1560
+ alignItems: "center",
1561
+ justifyContent: "space-between",
1562
+ pb: "3"
1563
+ },
1564
+ children: [
1565
+ /* @__PURE__ */ jsxRuntime.jsxs(
1566
+ Title3,
1567
+ {
1568
+ css: { fontSize: "xl", fontWeight: "semibold" },
1569
+ children: [
1570
+ "Adjust ",
1571
+ section.label
1572
+ ]
1573
+ }
1574
+ ),
1575
+ /* @__PURE__ */ jsxRuntime.jsx(
1576
+ CloseTrigger2,
1577
+ {
1578
+ "aria-label": "Close dialog",
1579
+ css: {
1580
+ cursor: "pointer",
1581
+ fontSize: "lg",
1582
+ color: "fg.muted",
1583
+ _hover: { color: "fg.default" }
1584
+ },
1585
+ children: "\u2715"
1586
+ }
1587
+ )
1588
+ ]
1589
+ }
1590
+ ),
1591
+ /* @__PURE__ */ jsxRuntime.jsx(Body2, { children: dialogContent ?? /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
1592
+ "Adjustment controls for ",
1593
+ section.label,
1594
+ " will appear here."
1595
+ ] }) })
1596
+ ] }) })
1597
+ ] }) })
1598
+ ] }) })
1599
+ ]
1600
+ },
1601
+ section.id
1602
+ );
1603
+ }),
1604
+ /* @__PURE__ */ jsxRuntime.jsxs(Item, { value: "duration", className: styles.section, children: [
1605
+ /* @__PURE__ */ jsxRuntime.jsxs(
1606
+ ItemTrigger,
1607
+ {
1608
+ className: styles.sectionTrigger,
1609
+ css: {
1610
+ fontSize: "lg",
1611
+ fontWeight: "medium",
1612
+ borderRadius: "0",
1613
+ py: "4",
1614
+ bg: "surface",
1615
+ color: "onSurface"
1616
+ },
1617
+ children: [
1618
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.triggerLabel, children: "Duration" }),
1619
+ /* @__PURE__ */ jsxRuntime.jsx(
1620
+ ItemIndicator,
1621
+ {
1622
+ className: styles.sectionIndicator,
1623
+ css: { color: "primary.7" }
1624
+ }
1625
+ )
1626
+ ]
1627
+ }
1628
+ ),
1629
+ /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { className: styles.sectionContent, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.radioPanel, children: [
1630
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1631
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles.radioPanelTitle, children: "Expected time to complete" }),
1632
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.radioCurrentRow, children: [
1633
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.radioCurrentLabel, children: "Currently:" }),
1634
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.currentlyBadge, children: durationBadge })
1635
+ ] })
1636
+ ] }),
1637
+ /* @__PURE__ */ jsxRuntime.jsx(
1638
+ Root10,
1639
+ {
1640
+ defaultValue: defaultDuration,
1641
+ colorPalette: "primary",
1642
+ onValueChange: ({ value }) => {
1643
+ if (!value) return;
1644
+ setDuration(value);
1645
+ onSelectionChange?.("duration", value);
1646
+ },
1647
+ css: { gap: "3" },
1648
+ children: DURATION_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(Item2, { value: option.value, children: [
1649
+ /* @__PURE__ */ jsxRuntime.jsx(
1650
+ ItemControl,
1651
+ {
1652
+ css: {
1653
+ boxShadow: "none",
1654
+ borderWidth: "1px",
1655
+ borderStyle: "solid",
1656
+ borderColor: "primary.7",
1657
+ _checked: {
1658
+ bg: "m3Primary.container",
1659
+ borderColor: "primary.7",
1660
+ _after: { bg: "primary.7" }
1661
+ }
1662
+ }
1663
+ }
1664
+ ),
1665
+ /* @__PURE__ */ jsxRuntime.jsx(
1666
+ ItemText,
1667
+ {
1668
+ css: { fontSize: "md", fontWeight: "medium" },
1669
+ children: option.label
1670
+ }
1671
+ ),
1672
+ /* @__PURE__ */ jsxRuntime.jsx(ItemHiddenInput, {})
1673
+ ] }, option.value))
1674
+ }
1675
+ )
1676
+ ] }) })
1677
+ ] }),
1678
+ /* @__PURE__ */ jsxRuntime.jsxs(Item, { value: "number-of-questions", className: styles.section, children: [
1679
+ /* @__PURE__ */ jsxRuntime.jsxs(
1680
+ ItemTrigger,
1681
+ {
1682
+ className: styles.sectionTrigger,
1683
+ css: {
1684
+ fontSize: "lg",
1685
+ fontWeight: "medium",
1686
+ borderRadius: "0",
1687
+ py: "4",
1688
+ bg: "surface",
1689
+ color: "onSurface"
1690
+ },
1691
+ children: [
1692
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.triggerLabel, children: "Number of Questions" }),
1693
+ /* @__PURE__ */ jsxRuntime.jsx(
1694
+ ItemIndicator,
1695
+ {
1696
+ className: styles.sectionIndicator,
1697
+ css: { color: "primary.7" }
1698
+ }
1699
+ )
1700
+ ]
1701
+ }
1702
+ ),
1703
+ /* @__PURE__ */ jsxRuntime.jsx(ItemContent, { className: styles.sectionContent, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.radioPanel, children: [
1704
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
1705
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles.radioPanelTitle, children: "Follow up Questions in this session" }),
1706
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.radioCurrentRow, children: [
1707
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.radioCurrentLabel, children: "Currently:" }),
1708
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.currentlyBadge, children: questionBadge })
1709
+ ] })
1710
+ ] }),
1711
+ /* @__PURE__ */ jsxRuntime.jsx(
1712
+ Root10,
1713
+ {
1714
+ defaultValue: defaultQuestionCount,
1715
+ colorPalette: "primary",
1716
+ onValueChange: ({ value }) => {
1717
+ if (!value) return;
1718
+ setQuestionCount(value);
1719
+ onSelectionChange?.("number-of-questions", value);
1720
+ },
1721
+ css: { gap: "3" },
1722
+ children: QUESTION_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(Item2, { value: option.value, children: [
1723
+ /* @__PURE__ */ jsxRuntime.jsx(
1724
+ ItemControl,
1725
+ {
1726
+ css: {
1727
+ boxShadow: "none",
1728
+ borderWidth: "1px",
1729
+ borderStyle: "solid",
1730
+ borderColor: "primary.7",
1731
+ _checked: {
1732
+ bg: "m3Primary.container",
1733
+ borderColor: "primary.7",
1734
+ _after: { bg: "primary.7" }
1735
+ }
1736
+ }
1737
+ }
1738
+ ),
1739
+ /* @__PURE__ */ jsxRuntime.jsx(
1740
+ ItemText,
1741
+ {
1742
+ css: { fontSize: "md", fontWeight: "medium" },
1743
+ children: option.label
1744
+ }
1745
+ ),
1746
+ /* @__PURE__ */ jsxRuntime.jsx(ItemHiddenInput, {})
1747
+ ] }, option.value))
1748
+ }
1749
+ )
1750
+ ] }) })
1751
+ ] })
1752
+ ]
1753
+ }
1754
+ ) });
1755
+ }
1756
+ var dialogContentClass = css.css({
1757
+ width: "full",
1758
+ maxWidth: "560px",
1759
+ maxHeight: "80vh",
1760
+ display: "flex",
1761
+ flexDirection: "column"
1762
+ });
1763
+ var dialogBodyClass = css.css({
1764
+ flex: "1",
1765
+ overflowY: "auto",
1766
+ py: "0",
1767
+ px: "6"
1768
+ });
1769
+ var footerLinkClass = css.css({
1770
+ display: "inline-flex",
1771
+ alignItems: "center",
1772
+ gap: "1",
1773
+ fontSize: "sm",
1774
+ color: "primary.solid.bg",
1775
+ fontWeight: "medium",
1776
+ textDecoration: "none",
1777
+ cursor: "pointer",
1778
+ bg: "transparent",
1779
+ border: "none",
1780
+ p: "0",
1781
+ _hover: { textDecoration: "underline" },
1782
+ _focusVisible: { focusVisibleRing: "outside" }
1783
+ });
1784
+ function AddScenarioDialog({
1785
+ open,
1786
+ onClose,
1787
+ renderContent,
1788
+ onBrowseMore,
1789
+ onBuildCustom
1790
+ }) {
1791
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root4, { open, onOpenChange: ({ open: isOpen }) => !isOpen && onClose(), children: [
1792
+ /* @__PURE__ */ jsxRuntime.jsx(Backdrop, {}),
1793
+ /* @__PURE__ */ jsxRuntime.jsx(Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(Content, { className: dialogContentClass, children: [
1794
+ /* @__PURE__ */ jsxRuntime.jsxs(Header3, { children: [
1795
+ /* @__PURE__ */ jsxRuntime.jsx(Title3, { children: "Add Scenario" }),
1796
+ /* @__PURE__ */ jsxRuntime.jsx(CloseTrigger2, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1797
+ "button",
1798
+ {
1799
+ "aria-label": "Close",
1800
+ className: css.css({
1801
+ display: "flex",
1802
+ alignItems: "center",
1803
+ justifyContent: "center",
1804
+ borderRadius: "l1",
1805
+ w: "6",
1806
+ h: "6",
1807
+ color: "fg.muted",
1808
+ bg: "transparent",
1809
+ border: "none",
1810
+ cursor: "pointer",
1811
+ fontSize: "lg",
1812
+ _hover: { bg: "neutral.subtle.bg", color: "fg.default" }
1813
+ }),
1814
+ children: "\u2715"
1815
+ }
1816
+ ) })
1817
+ ] }),
1818
+ /* @__PURE__ */ jsxRuntime.jsx(Body2, { className: dialogBodyClass, children: renderContent ? renderContent({ onClose }) : (
1819
+ // Storybook placeholder
1820
+ /* @__PURE__ */ jsxRuntime.jsx(
1821
+ "div",
1822
+ {
1823
+ className: css.css({
1824
+ display: "flex",
1825
+ alignItems: "center",
1826
+ justifyContent: "center",
1827
+ minH: "48",
1828
+ borderRadius: "l2",
1829
+ bg: "neutral.subtle.bg",
1830
+ color: "fg.muted",
1831
+ fontSize: "sm",
1832
+ borderWidth: "1px",
1833
+ borderStyle: "dashed",
1834
+ borderColor: "border.default"
1835
+ }),
1836
+ children: "Scenario collection renders here"
1837
+ }
1838
+ )
1839
+ ) }),
1840
+ /* @__PURE__ */ jsxRuntime.jsxs(Footer2, { children: [
1841
+ /* @__PURE__ */ jsxRuntime.jsx(
1842
+ "button",
1843
+ {
1844
+ type: "button",
1845
+ className: footerLinkClass,
1846
+ onClick: () => {
1847
+ onBrowseMore?.();
1848
+ onClose();
1849
+ },
1850
+ children: "Browse More Scenarios \u2192"
1851
+ }
1852
+ ),
1853
+ /* @__PURE__ */ jsxRuntime.jsx(
1854
+ "button",
1855
+ {
1856
+ type: "button",
1857
+ className: footerLinkClass,
1858
+ onClick: () => {
1859
+ onBuildCustom?.();
1860
+ onClose();
1861
+ },
1862
+ children: "Build Custom Scenario \u2192"
1863
+ }
1864
+ )
1865
+ ] })
1866
+ ] }) })
1867
+ ] });
1868
+ }
1869
+
1870
+ // src/components/ScenarioQueue/types.ts
1871
+ var difficultyColorMap = {
1872
+ beginner: "primary",
1873
+ intermediate: "secondary",
1874
+ advanced: "tertiary"
1875
+ };
1876
+ var difficultyLabel = {
1877
+ beginner: "Beginner",
1878
+ intermediate: "Intermediate",
1879
+ advanced: "Advanced"
1880
+ };
1881
+ var ScenarioCard = react$1.forwardRef(
1882
+ function ScenarioCard2({
1883
+ scenario,
1884
+ position,
1885
+ isActive,
1886
+ showRequeueSwitch = false,
1887
+ onRequeue,
1888
+ isRepeat = false,
1889
+ isDragging = false,
1890
+ rootRef,
1891
+ handleRef,
1892
+ className: _className,
1893
+ ...rest
1894
+ }, _ref) {
1895
+ const styles = recipes.scenarioCard({ isActive, isDragging });
1896
+ return /* @__PURE__ */ jsxRuntime.jsx(
1897
+ Root3,
1898
+ {
1899
+ ref: rootRef,
1900
+ className: styles.root,
1901
+ variant: "elevated",
1902
+ css: {
1903
+ boxShadow: "0px 2px 8px 0px rgba(167, 139, 250, 0.15)",
1904
+ // neutral.surface.bg resolves to white in light mode; Figma uses neutral/99 (#FDFCF5)
1905
+ bg: "neutral.1"
1906
+ },
1907
+ ...rest,
1908
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsx.VStack, { gap: "2.5", pl: "5", pr: "3", py: "2.5", alignItems: "flex-start", children: [
1909
+ !showRequeueSwitch && /* @__PURE__ */ jsxRuntime.jsxs(jsx.HStack, { justify: "space-between", alignItems: "flex-start", w: "full", py: "2", pr: "2.5", children: [
1910
+ /* @__PURE__ */ jsxRuntime.jsx(
1911
+ jsx.Box,
1912
+ {
1913
+ ref: handleRef,
1914
+ className: styles.dragHandle,
1915
+ "aria-label": "Drag to reorder",
1916
+ children: /* @__PURE__ */ jsxRuntime.jsx(GripDotsVerticalIcon, { w: "9", h: "10", "aria-hidden": "true" })
1917
+ }
1918
+ ),
1919
+ /* @__PURE__ */ jsxRuntime.jsx(
1920
+ jsx.Circle,
1921
+ {
1922
+ size: isActive ? "12" : "11",
1923
+ className: styles.positionBadge,
1924
+ "aria-label": `Position ${position}`,
1925
+ children: position
1926
+ }
1927
+ )
1928
+ ] }),
1929
+ /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { px: "1", py: "1.5", w: "full", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles.title, children: scenario.title }) }),
1930
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.VStack, { gap: "3", alignItems: "flex-start", py: "2.5", children: [
1931
+ /* @__PURE__ */ jsxRuntime.jsx(
1932
+ jsx.Box,
1933
+ {
1934
+ className: styles.difficultyBadge,
1935
+ "data-difficulty": scenario.difficulty,
1936
+ children: difficultyLabel[scenario.difficulty]
1937
+ }
1938
+ ),
1939
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.Box, { className: styles.durationBadge, "data-difficulty": scenario.difficulty, children: [
1940
+ /* @__PURE__ */ jsxRuntime.jsx(ClockIcon, { w: "3", h: "3", "aria-hidden": "true" }),
1941
+ scenario.duration
1942
+ ] }),
1943
+ isRepeat && /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.durationBadge, "data-difficulty": scenario.difficulty, children: "Repeat" })
1944
+ ] }),
1945
+ showRequeueSwitch && /* @__PURE__ */ jsxRuntime.jsxs(jsx.HStack, { className: styles.switchRow, justify: "space-between", children: [
1946
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.switchLabel, children: "Re-queue" }),
1947
+ /* @__PURE__ */ jsxRuntime.jsxs(
1948
+ Root5,
1949
+ {
1950
+ size: "sm",
1951
+ defaultChecked: true,
1952
+ onCheckedChange: (details) => {
1953
+ if (!details.checked) onRequeue?.(scenario.id);
1954
+ },
1955
+ "aria-label": `Re-queue ${scenario.title}`,
1956
+ children: [
1957
+ /* @__PURE__ */ jsxRuntime.jsx(HiddenInput, {}),
1958
+ /* @__PURE__ */ jsxRuntime.jsx(Control, { css: { _checked: { bg: "secondary.6" } } })
1959
+ ]
1960
+ }
1961
+ )
1962
+ ] })
1963
+ ] })
1964
+ }
1965
+ );
1966
+ }
1967
+ );
1968
+ function ScenarioCardDraggable({
1969
+ scenario,
1970
+ index,
1971
+ position,
1972
+ isActive,
1973
+ isRepeat
1974
+ }) {
1975
+ const { ref, handleRef, isDragging } = sortable.useSortable({
1976
+ id: scenario.id,
1977
+ index
1978
+ });
1979
+ return /* @__PURE__ */ jsxRuntime.jsx(
1980
+ ScenarioCard,
1981
+ {
1982
+ scenario,
1983
+ position,
1984
+ isActive,
1985
+ isDragging,
1986
+ isRepeat,
1987
+ rootRef: ref,
1988
+ handleRef
1989
+ }
1990
+ );
1991
+ }
1992
+ function arrayMove(array, from, to) {
1993
+ const next = [...array];
1994
+ const [item] = next.splice(from, 1);
1995
+ next.splice(to, 0, item);
1996
+ return next;
1997
+ }
1998
+ function ScenarioQueue({
1999
+ scenarios,
2000
+ onReorder,
2001
+ onRequeue,
2002
+ onRemove: _onRemove,
2003
+ renderAddScenarioContent,
2004
+ onBrowseMore,
2005
+ onBuildCustom
2006
+ }) {
2007
+ const queuedRaw = scenarios.filter((s) => s.status === "queued");
2008
+ const completed = scenarios.filter((s) => s.status === "completed");
2009
+ const [localQueue, setLocalQueue] = react$1.useState(queuedRaw);
2010
+ react$1.useEffect(() => {
2011
+ setLocalQueue(queuedRaw);
2012
+ }, [scenarios]);
2013
+ const [dialogOpen, setDialogOpen] = react$1.useState(false);
2014
+ const totalCount = localQueue.length + completed.length;
2015
+ const handleDragEnd = (event) => {
2016
+ if (event.canceled) return;
2017
+ const source = event.operation?.source;
2018
+ if (!source) return;
2019
+ const oldIndex = source.initialIndex;
2020
+ const newIndex = source.index;
2021
+ if (oldIndex === newIndex) return;
2022
+ const next = arrayMove(localQueue, oldIndex, newIndex);
2023
+ setLocalQueue(next);
2024
+ onReorder?.(next.map((s) => s.id));
2025
+ };
2026
+ const styles = recipes.scenarioQueue();
2027
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsx.Box, { className: styles.root, children: [
2028
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.Box, { className: styles.header, children: [
2029
+ /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.title, children: "Scenario Queue" }),
2030
+ /* @__PURE__ */ jsxRuntime.jsxs(jsx.Box, { className: styles.count, children: [
2031
+ totalCount,
2032
+ " scenario",
2033
+ totalCount !== 1 ? "s" : ""
2034
+ ] })
2035
+ ] }),
2036
+ /* @__PURE__ */ jsxRuntime.jsxs(
2037
+ Root8,
2038
+ {
2039
+ defaultValue: "queue",
2040
+ variant: "line",
2041
+ size: "md",
2042
+ colorPalette: "primary",
2043
+ className: styles.tabsInner,
2044
+ children: [
2045
+ /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.tabList, children: /* @__PURE__ */ jsxRuntime.jsxs(List, { className: css.css({ borderBottomWidth: "0" }), children: [
2046
+ /* @__PURE__ */ jsxRuntime.jsx(Trigger3, { value: "queue", children: "In Queue" }),
2047
+ /* @__PURE__ */ jsxRuntime.jsx(Trigger3, { value: "completed", children: "Completed" }),
2048
+ /* @__PURE__ */ jsxRuntime.jsx(Indicator2, {})
2049
+ ] }) }),
2050
+ /* @__PURE__ */ jsxRuntime.jsx(Content3, { value: "queue", className: styles.tabsContent, children: localQueue.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(jsx.Center, { className: styles.emptyState, children: "No scenarios in queue" }) : /* @__PURE__ */ jsxRuntime.jsx(react$2.DragDropProvider, { onDragEnd: handleDragEnd, children: /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.scrollArea, children: localQueue.map((scenario, index) => /* @__PURE__ */ jsxRuntime.jsx(
2051
+ ScenarioCardDraggable,
2052
+ {
2053
+ scenario,
2054
+ index,
2055
+ position: index + 1,
2056
+ isActive: index === 0,
2057
+ isRepeat: scenario.wasRequeued ?? false
2058
+ },
2059
+ scenario.id
2060
+ )) }) }) }),
2061
+ /* @__PURE__ */ jsxRuntime.jsx(Content3, { value: "completed", className: styles.tabsContent, children: completed.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(jsx.Center, { className: styles.emptyState, children: "No completed scenarios" }) : /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.scrollArea, children: completed.map((scenario, index) => /* @__PURE__ */ jsxRuntime.jsx(
2062
+ ScenarioCard,
2063
+ {
2064
+ scenario,
2065
+ position: index + 1,
2066
+ isActive: false,
2067
+ showRequeueSwitch: true,
2068
+ onRequeue
2069
+ },
2070
+ scenario.id
2071
+ )) }) })
2072
+ ]
2073
+ }
2074
+ ),
2075
+ /* @__PURE__ */ jsxRuntime.jsx(jsx.Box, { className: styles.addButtonArea, children: /* @__PURE__ */ jsxRuntime.jsx(
2076
+ Button,
2077
+ {
2078
+ variant: "outline",
2079
+ colorPalette: "primary",
2080
+ size: "md",
2081
+ className: styles.addButton,
2082
+ onClick: () => setDialogOpen(true),
2083
+ children: "+ Add Scenario"
2084
+ }
2085
+ ) }),
2086
+ /* @__PURE__ */ jsxRuntime.jsx(
2087
+ AddScenarioDialog,
2088
+ {
2089
+ open: dialogOpen,
2090
+ onClose: () => setDialogOpen(false),
2091
+ renderContent: renderAddScenarioContent,
2092
+ onBrowseMore,
2093
+ onBuildCustom
2094
+ }
2095
+ )
2096
+ ] });
2097
+ }
2098
+
2099
+ exports.AbsoluteCenter_exports = AbsoluteCenter_exports;
2100
+ exports.Accordion_exports = Accordion_exports;
2101
+ exports.AccountIcon = AccountIcon;
2102
+ exports.AddScenarioDialog = AddScenarioDialog;
2103
+ exports.Avatar_exports = Avatar_exports;
2104
+ exports.Badge = Badge;
2105
+ exports.Breadcrumb_exports = Breadcrumb_exports;
2106
+ exports.Button = Button;
2107
+ exports.ButtonGroup = ButtonGroup;
2108
+ exports.Card_exports = Card_exports;
2109
+ exports.Checkbox_exports = Checkbox_exports;
2110
+ exports.ChevronUpIcon = ChevronUpIcon;
2111
+ exports.ClockIcon = ClockIcon;
2112
+ exports.CloseButton_exports = CloseButton_exports;
2113
+ exports.ContentCard_exports = ContentCard_exports;
2114
+ exports.DashboardIcon = DashboardIcon;
2115
+ exports.Dialog_exports = Dialog_exports;
2116
+ exports.DiscourserLogo = DiscourserLogo;
2117
+ exports.Drawer_exports = Drawer_exports;
2118
+ exports.GripDotsVerticalIcon = GripDotsVerticalIcon;
2119
+ exports.Group_exports = Group_exports;
2120
+ exports.Header = Header;
2121
+ exports.HelpIcon = HelpIcon;
2122
+ exports.IconButton = IconButton;
2123
+ exports.Icon_exports = Icon_exports;
2124
+ exports.Input = Input;
2125
+ exports.InputAddon = InputAddon;
2126
+ exports.InputGroup = InputGroup2;
2127
+ exports.NavigationMenu = NavigationMenu;
2128
+ exports.NotebookIcon = NotebookIcon;
2129
+ exports.Popover_exports = Popover_exports;
2130
+ exports.Progress_exports = Progress_exports;
2131
+ exports.RadioGroup_exports = RadioGroup_exports;
2132
+ exports.RightArrowIcon = RightArrowIcon;
2133
+ exports.ScenarioCard = ScenarioCard;
2134
+ exports.ScenarioIcon = ScenarioIcon;
2135
+ exports.ScenarioQueue = ScenarioQueue;
2136
+ exports.ScenarioSettings = ScenarioSettings;
2137
+ exports.Select_exports = Select_exports;
2138
+ exports.Skeleton_exports = Skeleton_exports;
2139
+ exports.Slider_exports = Slider_exports;
2140
+ exports.Spinner = Spinner;
2141
+ exports.Stepper = Stepper;
2142
+ exports.Switch_exports = Switch_exports;
2143
+ exports.Tabs_exports = Tabs_exports;
2144
+ exports.Textarea = Textarea;
2145
+ exports.Toaster = Toaster;
2146
+ exports.Tooltip_exports = Tooltip_exports;
2147
+ exports.difficultyColorMap = difficultyColorMap;
2148
+ exports.difficultyLabel = difficultyLabel;
2149
+ exports.toaster = toaster;
2150
+ //# sourceMappingURL=chunk-2P7Z5PVP.cjs.map
2151
+ //# sourceMappingURL=chunk-2P7Z5PVP.cjs.map