@duro-app/ui 5.1.0 → 5.3.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 (233) hide show
  1. package/dist/Table-Cm5cCnZD.js +1524 -0
  2. package/dist/Table-Cm5cCnZD.js.map +1 -0
  3. package/dist/components/ActionBar/styles.css.d.ts +1 -1
  4. package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
  5. package/dist/components/Badge/Badge.d.ts +1 -1
  6. package/dist/components/Badge/Badge.d.ts.map +1 -1
  7. package/dist/components/Badge/Badge.stories.d.ts +3 -0
  8. package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
  9. package/dist/components/Badge/styles.css.d.ts +4 -0
  10. package/dist/components/Badge/styles.css.d.ts.map +1 -1
  11. package/dist/components/Button/Button.d.ts +11 -2
  12. package/dist/components/Button/Button.d.ts.map +1 -1
  13. package/dist/components/Button/Button.stories.d.ts +1 -0
  14. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.d.ts +9 -2
  16. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  17. package/dist/components/ButtonGroup/ButtonGroup.meta.d.ts.map +1 -1
  18. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +19 -0
  19. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts.map +1 -1
  20. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts +13 -0
  21. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -0
  22. package/dist/components/ButtonGroup/attached.css.d.ts +34 -0
  23. package/dist/components/ButtonGroup/attached.css.d.ts.map +1 -0
  24. package/dist/components/ButtonGroup/styles.css.d.ts +7 -0
  25. package/dist/components/ButtonGroup/styles.css.d.ts.map +1 -1
  26. package/dist/components/ButtonGroup/useGroupedControl.d.ts +25 -0
  27. package/dist/components/ButtonGroup/useGroupedControl.d.ts.map +1 -0
  28. package/dist/components/Combobox/Combobox.d.ts +1 -1
  29. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  30. package/dist/components/Combobox/styles.css.d.ts +0 -64
  31. package/dist/components/Combobox/styles.css.d.ts.map +1 -1
  32. package/dist/components/Dialog/Dialog.d.ts +11 -3
  33. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  34. package/dist/components/Dialog/Dialog.stories.d.ts +4 -0
  35. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  36. package/dist/components/Dialog/styles.css.d.ts +3 -2
  37. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  38. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  39. package/dist/components/DragDrop/styles.css.d.ts +11 -3
  40. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  41. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  42. package/dist/components/Drawer/styles.css.d.ts +2 -2
  43. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  44. package/dist/components/Grid/Grid.d.ts +11 -2
  45. package/dist/components/Grid/Grid.d.ts.map +1 -1
  46. package/dist/components/Grid/Grid.stories.d.ts +2 -0
  47. package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
  48. package/dist/components/Input/Input.d.ts +6 -1
  49. package/dist/components/Input/Input.d.ts.map +1 -1
  50. package/dist/components/Input/Input.meta.d.ts.map +1 -1
  51. package/dist/components/Input/Input.stories.d.ts +1 -0
  52. package/dist/components/Input/Input.stories.d.ts.map +1 -1
  53. package/dist/components/Input/styles.css.d.ts +18 -0
  54. package/dist/components/Input/styles.css.d.ts.map +1 -1
  55. package/dist/components/InputGroup/InputGroup.d.ts +6 -1
  56. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  57. package/dist/components/InputGroup/InputGroup.stories.d.ts +1 -0
  58. package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
  59. package/dist/components/Listbox/Listbox.d.ts +75 -0
  60. package/dist/components/Listbox/Listbox.d.ts.map +1 -0
  61. package/dist/components/Listbox/Listbox.meta.d.ts +3 -0
  62. package/dist/components/Listbox/Listbox.meta.d.ts.map +1 -0
  63. package/dist/components/Listbox/Listbox.stories.d.ts +7 -0
  64. package/dist/components/Listbox/Listbox.stories.d.ts.map +1 -0
  65. package/dist/components/Listbox/styles.css.d.ts +75 -0
  66. package/dist/components/Listbox/styles.css.d.ts.map +1 -0
  67. package/dist/components/Menu/Menu.d.ts +18 -5
  68. package/dist/components/Menu/Menu.d.ts.map +1 -1
  69. package/dist/components/Menu/Menu.meta.d.ts.map +1 -1
  70. package/dist/components/Menu/Menu.stories.d.ts +7 -0
  71. package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
  72. package/dist/components/Menu/MenuContext.d.ts +3 -0
  73. package/dist/components/Menu/MenuContext.d.ts.map +1 -1
  74. package/dist/components/Menu/styles.css.d.ts +24 -15
  75. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  76. package/dist/components/Menu/useMenuRoot.d.ts +14 -1
  77. package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
  78. package/dist/components/Popover/Popover.d.ts +7 -2
  79. package/dist/components/Popover/Popover.d.ts.map +1 -1
  80. package/dist/components/Popover/styles.css.d.ts +4 -1
  81. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  82. package/dist/components/ScrollArea/styles.css.d.ts +1 -1
  83. package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
  84. package/dist/components/Select/Select.d.ts.map +1 -1
  85. package/dist/components/Select/Select.stories.d.ts +2 -0
  86. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  87. package/dist/components/Select/styles.css.d.ts +2 -2
  88. package/dist/components/Select/styles.css.d.ts.map +1 -1
  89. package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
  90. package/dist/components/TextLink/TextLink.d.ts +24 -0
  91. package/dist/components/TextLink/TextLink.d.ts.map +1 -0
  92. package/dist/components/TextLink/TextLink.meta.d.ts +3 -0
  93. package/dist/components/TextLink/TextLink.meta.d.ts.map +1 -0
  94. package/dist/components/TextLink/TextLink.stories.d.ts +9 -0
  95. package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -0
  96. package/dist/components/TextLink/styles.css.d.ts +28 -0
  97. package/dist/components/TextLink/styles.css.d.ts.map +1 -0
  98. package/dist/components/ThemeProvider/Layers.stories.d.ts +24 -0
  99. package/dist/components/ThemeProvider/Layers.stories.d.ts.map +1 -0
  100. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  101. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +1 -0
  102. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  103. package/dist/components/Toast/styles.css.d.ts +1 -0
  104. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  105. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  106. package/dist/components/Toggle/styles.css.d.ts +3 -0
  107. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  108. package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  109. package/dist/components/ToggleGroup/styles.css.d.ts +5 -0
  110. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  111. package/dist/components/Toolbar/ControlContextBoundary.d.ts +10 -0
  112. package/dist/components/Toolbar/ControlContextBoundary.d.ts.map +1 -0
  113. package/dist/components/Toolbar/Toolbar.d.ts +22 -0
  114. package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
  115. package/dist/components/Toolbar/Toolbar.meta.d.ts +3 -0
  116. package/dist/components/Toolbar/Toolbar.meta.d.ts.map +1 -0
  117. package/dist/components/Toolbar/Toolbar.stories.d.ts +28 -0
  118. package/dist/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
  119. package/dist/components/Toolbar/ToolbarContext.d.ts +10 -0
  120. package/dist/components/Toolbar/ToolbarContext.d.ts.map +1 -0
  121. package/dist/components/Toolbar/styles.css.d.ts +16 -0
  122. package/dist/components/Toolbar/styles.css.d.ts.map +1 -0
  123. package/dist/components/Tooltip/styles.css.d.ts +1 -1
  124. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  125. package/dist/components/VirtualTable/styles.css.d.ts +1 -1
  126. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  127. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
  128. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  129. package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts +3 -0
  130. package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts.map +1 -0
  131. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
  132. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -0
  133. package/dist/docs/FlexGrow.stories.d.ts +7 -0
  134. package/dist/docs/FlexGrow.stories.d.ts.map +1 -0
  135. package/dist/index.css +1 -1
  136. package/dist/index.d.ts +7 -1
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js +3768 -3356
  139. package/dist/index.js.map +1 -1
  140. package/dist/index.native.d.ts +1 -0
  141. package/dist/index.native.d.ts.map +1 -1
  142. package/dist/shared/ModalContext.d.ts +14 -0
  143. package/dist/shared/ModalContext.d.ts.map +1 -0
  144. package/dist/shared/mergeRefs.d.ts +4 -0
  145. package/dist/shared/mergeRefs.d.ts.map +1 -0
  146. package/dist/shared/useOrderedRegistry.d.ts +26 -0
  147. package/dist/shared/useOrderedRegistry.d.ts.map +1 -0
  148. package/dist/styles/visually-hidden.css.d.ts +6 -0
  149. package/dist/styles/visually-hidden.css.d.ts.map +1 -1
  150. package/dist/table.js +45 -45
  151. package/dist/table.js.map +1 -1
  152. package/package.json +2 -2
  153. package/src/components/ActionBar/styles.css.ts +2 -1
  154. package/src/components/Badge/Badge.stories.tsx +62 -1
  155. package/src/components/Badge/Badge.tsx +1 -1
  156. package/src/components/Badge/styles.css.ts +5 -0
  157. package/src/components/Button/Button.stories.tsx +41 -0
  158. package/src/components/Button/Button.tsx +22 -1
  159. package/src/components/ButtonGroup/ButtonGroup.meta.ts +14 -1
  160. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +271 -1
  161. package/src/components/ButtonGroup/ButtonGroup.tsx +46 -14
  162. package/src/components/ButtonGroup/ButtonGroupContext.ts +19 -0
  163. package/src/components/ButtonGroup/attached.css.ts +44 -0
  164. package/src/components/ButtonGroup/styles.css.ts +8 -0
  165. package/src/components/ButtonGroup/useGroupedControl.ts +75 -0
  166. package/src/components/Combobox/Combobox.tsx +25 -79
  167. package/src/components/Combobox/styles.css.ts +0 -74
  168. package/src/components/Dialog/Dialog.meta.ts +1 -1
  169. package/src/components/Dialog/Dialog.stories.tsx +109 -3
  170. package/src/components/Dialog/Dialog.tsx +68 -10
  171. package/src/components/Dialog/styles.css.ts +5 -2
  172. package/src/components/DragDrop/DragDrop.tsx +15 -8
  173. package/src/components/DragDrop/styles.css.ts +20 -4
  174. package/src/components/Drawer/Drawer.tsx +5 -1
  175. package/src/components/Drawer/styles.css.ts +3 -2
  176. package/src/components/Grid/Grid.meta.ts +1 -1
  177. package/src/components/Grid/Grid.stories.tsx +53 -1
  178. package/src/components/Grid/Grid.tsx +23 -11
  179. package/src/components/Input/Input.meta.ts +10 -3
  180. package/src/components/Input/Input.stories.tsx +52 -2
  181. package/src/components/Input/Input.tsx +12 -3
  182. package/src/components/Input/styles.css.ts +29 -0
  183. package/src/components/InputGroup/InputGroup.stories.tsx +20 -0
  184. package/src/components/InputGroup/InputGroup.tsx +20 -2
  185. package/src/components/Listbox/Listbox.meta.ts +52 -0
  186. package/src/components/Listbox/Listbox.stories.tsx +170 -0
  187. package/src/components/Listbox/Listbox.tsx +278 -0
  188. package/src/components/Listbox/styles.css.ts +90 -0
  189. package/src/components/Menu/Menu.meta.ts +2 -1
  190. package/src/components/Menu/Menu.stories.tsx +289 -8
  191. package/src/components/Menu/Menu.tsx +107 -29
  192. package/src/components/Menu/MenuContext.ts +3 -0
  193. package/src/components/Menu/styles.css.ts +32 -15
  194. package/src/components/Menu/useMenuRoot.ts +105 -48
  195. package/src/components/Popover/Popover.tsx +26 -5
  196. package/src/components/Popover/styles.css.ts +9 -1
  197. package/src/components/ScrollArea/styles.css.ts +2 -1
  198. package/src/components/Select/Select.stories.tsx +20 -1
  199. package/src/components/Select/Select.tsx +9 -3
  200. package/src/components/Select/styles.css.ts +3 -2
  201. package/src/components/Select/useSelectRoot.ts +17 -0
  202. package/src/components/TextLink/TextLink.meta.ts +33 -0
  203. package/src/components/TextLink/TextLink.stories.tsx +63 -0
  204. package/src/components/TextLink/TextLink.tsx +46 -0
  205. package/src/components/TextLink/styles.css.ts +58 -0
  206. package/src/components/ThemeProvider/Layers.stories.tsx +379 -0
  207. package/src/components/ThemeProvider/ThemeProvider.stories.tsx +50 -0
  208. package/src/components/ThemeProvider/ThemeProvider.tsx +4 -2
  209. package/src/components/Toast/styles.css.ts +3 -0
  210. package/src/components/Toggle/Toggle.tsx +20 -4
  211. package/src/components/Toggle/styles.css.ts +6 -0
  212. package/src/components/ToggleGroup/ToggleGroup.tsx +16 -4
  213. package/src/components/ToggleGroup/styles.css.ts +7 -0
  214. package/src/components/Toolbar/ControlContextBoundary.tsx +16 -0
  215. package/src/components/Toolbar/Toolbar.meta.ts +48 -0
  216. package/src/components/Toolbar/Toolbar.stories.tsx +468 -0
  217. package/src/components/Toolbar/Toolbar.tsx +113 -0
  218. package/src/components/Toolbar/ToolbarContext.ts +15 -0
  219. package/src/components/Toolbar/styles.css.ts +17 -0
  220. package/src/components/Tooltip/styles.css.ts +2 -1
  221. package/src/components/VirtualTable/styles.css.ts +2 -1
  222. package/src/components/VisuallyHidden/VisuallyHidden.meta.ts +19 -0
  223. package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +30 -0
  224. package/src/components/VisuallyHidden/VisuallyHidden.tsx +22 -0
  225. package/src/docs/FlexGrow.stories.tsx +83 -0
  226. package/src/index.native.ts +1 -0
  227. package/src/index.ts +7 -1
  228. package/src/shared/ModalContext.ts +18 -0
  229. package/src/shared/mergeRefs.ts +11 -0
  230. package/src/shared/useOrderedRegistry.ts +57 -0
  231. package/src/styles/visually-hidden.css.ts +8 -0
  232. package/dist/Table-BkrgH0jb.js +0 -1199
  233. package/dist/Table-BkrgH0jb.js.map +0 -1
@@ -0,0 +1,1524 @@
1
+ import { jsx as M, jsxs as U, Fragment as Me } from "react/jsx-runtime";
2
+ import { c as I, m as W, d as C } from "./compiler-runtime-B2IcI8_O.js";
3
+ import { useContext as A, createContext as G, useId as Y, useRef as q, useLayoutEffect as J, useState as Z, useCallback as K, useEffect as F, Children as Q, isValidElement as Te } from "react";
4
+ import { createPortal as We } from "react-dom";
5
+ const Ce = {
6
+ xs: 4,
7
+ sm: 8,
8
+ ms: 12,
9
+ md: 16,
10
+ lg: 24,
11
+ xl: 32,
12
+ xxl: 48,
13
+ xxxl: 64
14
+ }, dr = {
15
+ instant: 0,
16
+ minimal: 1,
17
+ quick: 120,
18
+ fast: 150,
19
+ brisk: 160,
20
+ base: 200,
21
+ slow: 280
22
+ }, Se = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH"], _ = {
23
+ touchTarget: 44,
24
+ iconSm: 16,
25
+ iconMd: 18,
26
+ iconLg: 24,
27
+ iconXl: 36,
28
+ iconXxl: 48
29
+ }, ur = {
30
+ sm: _.iconSm,
31
+ md: _.iconMd,
32
+ lg: _.iconLg,
33
+ xl: _.iconXl,
34
+ xxl: _.iconXxl
35
+ }, pe = G(null);
36
+ function Re() {
37
+ return A(pe);
38
+ }
39
+ const xe = G(null);
40
+ function je() {
41
+ return A(xe);
42
+ }
43
+ const X = {
44
+ item: {
45
+ "position-kVAEAm": "position-x1n2onr6",
46
+ "zIndex-kY2c9j": "zIndex-x1lhispz",
47
+ $$css: "ButtonGroup/attached.css.ts:14"
48
+ },
49
+ horizontalFirst: {
50
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
51
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
52
+ $$css: "ButtonGroup/attached.css.ts:18"
53
+ },
54
+ horizontalMiddle: {
55
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby",
56
+ "marginLeft-koQZXg": "marginLeft-x1804tp4",
57
+ $$css: "ButtonGroup/attached.css.ts:22"
58
+ },
59
+ horizontalLast: {
60
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
61
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
62
+ "marginLeft-koQZXg": "marginLeft-x1804tp4",
63
+ $$css: "ButtonGroup/attached.css.ts:26"
64
+ },
65
+ verticalFirst: {
66
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-xfrllxf",
67
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xjppbhk",
68
+ $$css: "ButtonGroup/attached.css.ts:31"
69
+ },
70
+ verticalMiddle: {
71
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby",
72
+ "marginTop-keoZOQ": "marginTop-xn1ib9x",
73
+ $$css: "ButtonGroup/attached.css.ts:35"
74
+ },
75
+ verticalLast: {
76
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-x1ia1hqs",
77
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-x1a2w583",
78
+ "marginTop-keoZOQ": "marginTop-xn1ib9x",
79
+ $$css: "ButtonGroup/attached.css.ts:39"
80
+ }
81
+ }, ze = {
82
+ horizontal: {
83
+ first: X.horizontalFirst,
84
+ middle: X.horizontalMiddle,
85
+ last: X.horizontalLast,
86
+ only: null
87
+ },
88
+ vertical: {
89
+ first: X.verticalFirst,
90
+ middle: X.verticalMiddle,
91
+ last: X.verticalLast,
92
+ only: null
93
+ }
94
+ };
95
+ function He(t) {
96
+ const e = I.c(26);
97
+ let o;
98
+ e[0] !== t ? (o = t === void 0 ? {} : t, e[0] = t, e[1] = o) : o = e[1];
99
+ const {
100
+ disabled: r
101
+ } = o, c = r === void 0 ? !1 : r, l = Y(), a = q(null), i = je(), n = Re(), s = i?.register, u = n?.register;
102
+ let p, d;
103
+ e[2] !== c || e[3] !== s || e[4] !== l || e[5] !== u ? (p = () => {
104
+ const R = a.current;
105
+ if (!R)
106
+ return;
107
+ const H = s?.(l, R, c), L = u?.(l, R, c);
108
+ return () => {
109
+ H?.(), L?.();
110
+ };
111
+ }, d = [l, c, s, u], e[2] = c, e[3] = s, e[4] = l, e[5] = u, e[6] = p, e[7] = d) : (p = e[6], d = e[7]), J(p, d);
112
+ let x;
113
+ e[8] !== i || e[9] !== l ? (x = i ? i.positionOf(l) : null, e[8] = i, e[9] = l, e[10] = x) : x = e[10];
114
+ const g = x;
115
+ let h;
116
+ e[11] !== i || e[12] !== g ? (h = i && g ? [X.item, ze[i.orientation][g]] : null, e[11] = i, e[12] = g, e[13] = h) : h = e[13];
117
+ const m = h, y = i !== null;
118
+ let k;
119
+ e[14] !== l || e[15] !== n ? (k = n?.tabIndexOf(l), e[14] = l, e[15] = n, e[16] = k) : k = e[16];
120
+ let w;
121
+ e[17] !== l || e[18] !== n ? (w = n ? () => n.onItemFocus(l) : void 0, e[17] = l, e[18] = n, e[19] = w) : w = e[19];
122
+ let S;
123
+ return e[20] !== g || e[21] !== m || e[22] !== y || e[23] !== k || e[24] !== w ? (S = {
124
+ ref: a,
125
+ attached: y,
126
+ position: g,
127
+ style: m,
128
+ tabIndex: k,
129
+ onFocus: w
130
+ }, e[20] = g, e[21] = m, e[22] = y, e[23] = k, e[24] = w, e[25] = S) : S = e[25], S;
131
+ }
132
+ const Ie = {
133
+ xjvd03b: "x27mww3 xjvd03b",
134
+ $$css: !0
135
+ }, Le = {
136
+ x13v825q: "x1jk1o70 x13v825q",
137
+ $$css: !0
138
+ }, qe = {
139
+ xjvd03b: "x1kpt2hd xjvd03b",
140
+ $$css: !0
141
+ }, Pe = {
142
+ x13v825q: "xc8o4hb x13v825q",
143
+ $$css: !0
144
+ }, Ee = {
145
+ light: [Ie, Le],
146
+ "high-contrast": [qe, Pe]
147
+ }, ae = {
148
+ root: {
149
+ "display-k1xSpc": "display-xjp7ctv",
150
+ "color-kMwMTN": "color-x95150z",
151
+ $$css: "ThemeProvider/ThemeProvider.tsx:21"
152
+ },
153
+ portalMount: {
154
+ "position-kVAEAm": "position-xixxii4",
155
+ "top-k87sOh": "top-x13vifvy",
156
+ "left-kbCHJM": "left-xu96u03",
157
+ "right-kCIrl2": "right-x3m8u43",
158
+ "bottom-krVfgx": "bottom-x1ey2m1c",
159
+ "pointerEvents-kfzvcC": "pointerEvents-x47corl",
160
+ "zIndex-kY2c9j": "zIndex-x3z26px",
161
+ $$css: "ThemeProvider/ThemeProvider.tsx:29"
162
+ }
163
+ }, ge = G(null);
164
+ function Be() {
165
+ return A(ge);
166
+ }
167
+ function pr(t) {
168
+ const e = I.c(11), {
169
+ theme: o,
170
+ children: r
171
+ } = t, c = o === void 0 ? "dark" : o, l = Ee[c], a = l?.[0], i = l?.[1];
172
+ let n;
173
+ e[0] !== a || e[1] !== i ? (n = [a, i, ae.root], e[0] = a, e[1] = i, e[2] = n) : n = e[2];
174
+ const s = n, [u, p] = Z(null);
175
+ let d;
176
+ e[3] !== r || e[4] !== u ? (d = /* @__PURE__ */ M(ge.Provider, { value: u, children: r }), e[3] = r, e[4] = u, e[5] = d) : d = e[5];
177
+ let x;
178
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ M("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:60", ref: p, "data-portal-mount": !0, ...W(C.div, ae.portalMount) }), e[6] = x) : x = e[6];
179
+ let g;
180
+ return e[7] !== d || e[8] !== c || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", "data-theme": c, ...W(C.div, s), children: [
181
+ d,
182
+ x
183
+ ] }), e[7] = d, e[8] = c, e[9] = s, e[10] = g) : g = e[10], g;
184
+ }
185
+ function Oe(t) {
186
+ const e = I.c(2), {
187
+ children: o
188
+ } = t;
189
+ let r;
190
+ return e[0] !== o ? (r = /* @__PURE__ */ M(xe.Provider, { value: null, children: /* @__PURE__ */ M(pe.Provider, { value: null, children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
191
+ }
192
+ const Ae = typeof process < "u" && process.env?.NODE_ENV === "production", ce = /* @__PURE__ */ new Set();
193
+ function he(t, e, o) {
194
+ const r = `${t}:${e}`;
195
+ Ae || ce.has(r) || (ce.add(r), console.warn(`[duro-app/ui ${t}] ${o}`));
196
+ }
197
+ const be = {
198
+ touchTarget: "var(--touchTarget-x1u5badx)",
199
+ controlSm: "var(--controlSm-x6ymn93)",
200
+ controlMd: "var(--controlMd-xkvaeme)",
201
+ controlLg: "var(--controlLg-xf3drh3)",
202
+ indicator: "var(--indicator-xce456j)",
203
+ indicatorDot: "var(--indicatorDot-xqflvbi)",
204
+ checkMarkW: "var(--checkMarkW-xvyirw7)",
205
+ checkMarkH: "var(--checkMarkH-xz3lx6u)",
206
+ switchTrackW: "var(--switchTrackW-xcah3tt)",
207
+ switchTrackH: "var(--switchTrackH-x1h3icne)",
208
+ switchThumb: "var(--switchThumb-x6qupft)",
209
+ iconButton: "var(--iconButton-x16lr7a8)",
210
+ iconButtonSm: "var(--iconButtonSm-xtjgrhy)",
211
+ spinnerSm: "var(--spinnerSm-xoj3xel)",
212
+ spinnerMd: "var(--spinnerMd-x11a4rba)",
213
+ spinnerLg: "var(--spinnerLg-x1lgp9p9)",
214
+ glyphXs: "var(--glyphXs-x7xktls)",
215
+ glyphSm: "var(--glyphSm-x17geiot)",
216
+ glyphMd: "var(--glyphMd-x1hz0jso)",
217
+ iconSm: "var(--iconSm-x1k4bwrj)",
218
+ iconMd: "var(--iconMd-x1oru5hg)",
219
+ iconLg: "var(--iconLg-x1lsumnr)",
220
+ iconXl: "var(--iconXl-x7w40q9)",
221
+ iconXxl: "var(--iconXxl-xij55jf)",
222
+ navMarkerW: "var(--navMarkerW-x1swbkx4)",
223
+ navMarkerH: "var(--navMarkerH-xlc6r7a)",
224
+ divider: "var(--divider-x34oj7m)",
225
+ tabIndicator: "var(--tabIndicator-xeswvk3)",
226
+ edgeFade: "var(--edgeFade-x1a8srg4)",
227
+ scrollbar: "var(--scrollbar-xppi9bb)",
228
+ swatchW: "var(--swatchW-x14v7170)",
229
+ swatchH: "var(--swatchH-x5k3223)",
230
+ labelMinW: "var(--labelMinW-x1tnvsg3)",
231
+ popupMinW: "var(--popupMinW-xzyp04)",
232
+ listMaxH: "var(--listMaxH-x1g3bmh3)",
233
+ listMaxHSm: "var(--listMaxHSm-xhny4oa)",
234
+ dialogSm: "var(--dialogSm-x16fibl1)",
235
+ dialogMd: "var(--dialogMd-x1yjoj5l)",
236
+ dialogLg: "var(--dialogLg-xsd9wl3)",
237
+ panelSm: "var(--panelSm-x1ng1dcv)",
238
+ panelMd: "var(--panelMd-x11x23mn)",
239
+ panelLg: "var(--panelLg-x19cpfjm)",
240
+ toastMaxW: "var(--toastMaxW-x1po6n0z)",
241
+ gridColSm: "var(--gridColSm-xzwpy92)",
242
+ gridColMd: "var(--gridColMd-x1cjqdt9)",
243
+ pageSm: "var(--pageSm-x5j4ghi)",
244
+ pageMd: "var(--pageMd-xloo57l)",
245
+ pageLg: "var(--pageLg-x393fnm)",
246
+ sidebarW: "var(--sidebarW-x16fh60r)",
247
+ pageXs: "var(--pageXs-xkx7b2k)",
248
+ pageXl: "var(--pageXl-xe1y5wy)",
249
+ asideW: "var(--asideW-x1sefzvd)",
250
+ gridColXs: "var(--gridColXs-x1uralsc)",
251
+ fieldMinWSm: "var(--fieldMinWSm-x17qqf6g)",
252
+ fieldMinW: "var(--fieldMinW-x3410dk)",
253
+ popoverWSm: "var(--popoverWSm-x17g62mi)",
254
+ popoverW: "var(--popoverW-xf1f07)",
255
+ popupMaxW: "var(--popupMaxW-x16p43ce)",
256
+ meterH: "var(--meterH-x5xauib)",
257
+ skeletonChipW: "var(--skeletonChipW-xmw24hn)",
258
+ dropZoneMinH: "var(--dropZoneMinH-x9asgie)",
259
+ canvasMinH: "var(--canvasMinH-xpv99dk)",
260
+ editorMinH: "var(--editorMinH-x7umtuv)",
261
+ toolbarH: "var(--toolbarH-x16tj5lc)",
262
+ embedW: "var(--embedW-x1jprk4i)",
263
+ colorPickerW: "var(--colorPickerW-xafjozf)",
264
+ colorAreaH: "var(--colorAreaH-xn4he4)",
265
+ colorTrackH: "var(--colorTrackH-x1ixtmdy)",
266
+ colorSwatch: "var(--colorSwatch-xr73m8p)",
267
+ colorPreviewH: "var(--colorPreviewH-x1by70nu)",
268
+ handle: "var(--handle-xt9m584)",
269
+ chip: "var(--chip-xofdvjg)",
270
+ placeholderMinH: "var(--placeholderMinH-xy0p02w)",
271
+ previewMaxH: "var(--previewMaxH-x1phh3ob)",
272
+ barH: "var(--barH-x1oc8exn)",
273
+ readoutW: "var(--readoutW-xi5rn1i)",
274
+ sliderW: "var(--sliderW-xvcfp7i)",
275
+ paletteMinW: "var(--paletteMinW-x1514e6j)",
276
+ deviceBarW: "var(--deviceBarW-xqnx4o4)",
277
+ timeGutterW: "var(--timeGutterW-xsc6tna)",
278
+ dayHeaderH: "var(--dayHeaderH-x1j7gty0)",
279
+ __varGroupHash__: "x1w57kmz"
280
+ }, fe = new Set(Se);
281
+ function me(t) {
282
+ return typeof t == "string" && fe.has(t) ? be[t] : t;
283
+ }
284
+ function de(t) {
285
+ const e = t;
286
+ if (typeof e != "string") return e;
287
+ const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
288
+ if (o) {
289
+ const r = o[2].split(",").map((c) => String(me(c.trim())));
290
+ return `${o[1]}(${r.join(", ")})`;
291
+ }
292
+ return fe.has(e) ? be[e] : e;
293
+ }
294
+ const B = {
295
+ root: {
296
+ "position-kVAEAm": "position-x1n2onr6",
297
+ "display-k1xSpc": "display-x3nfvp2",
298
+ $$css: "Menu/styles.css.ts:12"
299
+ },
300
+ trigger: {
301
+ "display-k1xSpc": "display-x3nfvp2",
302
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
303
+ "gap-kOIVth": "gap-x175yhtj",
304
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
305
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
306
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
307
+ "paddingRight-kpe85a": "paddingRight-x7huf2v",
308
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
309
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
310
+ "color-kMwMTN": "color-x95150z",
311
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-x14zl4n5",
312
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
313
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
314
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
315
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
316
+ "cursor-kkrTdU": "cursor-x1ypdohk",
317
+ "transitionProperty-k1ekBW": "transitionProperty-xts7igz",
318
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
319
+ $$css: "Menu/styles.css.ts:16"
320
+ },
321
+ triggerGhost: {
322
+ "justifyContent-kjj79g": "justifyContent-xl56j7k",
323
+ "minWidth-k7Eaqz": "minWidth-x1v8ggfx",
324
+ "minHeight-kAzted": "minHeight-x1304zm3",
325
+ "paddingTop-kLKAdn": "paddingTop-x1i738hq",
326
+ "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
327
+ "paddingLeft-kE3dHu": "paddingLeft-xzmizx3",
328
+ "paddingRight-kpe85a": "paddingRight-x7ulw7g",
329
+ "borderColor-kVAM5u": "borderColor-x9r1u3d",
330
+ $$css: "Menu/styles.css.ts:40"
331
+ },
332
+ popup: {
333
+ "position-kVAEAm": "position-xixxii4",
334
+ "top-k87sOh": "top-x13vifvy",
335
+ "left-kbCHJM": "left-xu96u03",
336
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
337
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
338
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
339
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
340
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
341
+ "boxShadow-kGVxlE": "boxShadow-x1e78jka",
342
+ "paddingTop-kLKAdn": "paddingTop-x1i738hq",
343
+ "paddingBottom-kGO01o": "paddingBottom-x6sojwk",
344
+ "minWidth-k7Eaqz": "minWidth-x9i2ahm",
345
+ "maxHeight-kskxy": "maxHeight-x2usv7r",
346
+ "overflowY-kORKVm": "overflowY-x1odjw0f",
347
+ "zIndex-kY2c9j": "zIndex-x9qr3eb",
348
+ "pointerEvents-kfzvcC": "pointerEvents-x67bb7w",
349
+ "outlineStyle-k3XXqK": "outlineStyle-x1t137rt",
350
+ $$css: "Menu/styles.css.ts:50"
351
+ },
352
+ popupPosition: (t, e) => [{
353
+ "top-k87sOh": t != null ? "top-xjbys53" : t,
354
+ "left-kbCHJM": e != null ? "left-xgq9j65" : e,
355
+ $$css: "Menu/styles.css.ts:73"
356
+ }, {
357
+ "--x-top": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(t),
358
+ "--x-left": ((o) => typeof o == "number" ? o + "px" : o ?? void 0)(e)
359
+ }],
360
+ item: {
361
+ "display-k1xSpc": "display-x78zum5",
362
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
363
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
364
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
365
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v",
366
+ "paddingRight-kpe85a": "paddingRight-x7huf2v",
367
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
368
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
369
+ "color-kMwMTN": "color-x95150z",
370
+ "borderRadius-kaIpWk": "borderRadius-x17rit4p",
371
+ "cursor-kkrTdU": "cursor-x1ypdohk",
372
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w",
373
+ "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
374
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
375
+ $$css: "Menu/styles.css.ts:77"
376
+ },
377
+ itemHighlighted: {
378
+ "backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
379
+ "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
380
+ "outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
381
+ "outlineColor-kjBf7l": "outlineColor-x1uczgqu",
382
+ "outlineOffset-kInvED": "outlineOffset-x186wpgv",
383
+ $$css: "Menu/styles.css.ts:95"
384
+ },
385
+ separator: {
386
+ "height-kZKoxP": "height-xqtp20y",
387
+ "marginTop-keoZOQ": "marginTop-xuerg7n",
388
+ "marginBottom-k1K539": "marginBottom-xnccn3x",
389
+ "borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
390
+ "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
391
+ "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
392
+ $$css: "Menu/styles.css.ts:102"
393
+ },
394
+ linkItem: {
395
+ "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
396
+ "color-kMwMTN": "color-x95150z color-xtolcfe",
397
+ $$css: "Menu/styles.css.ts:110"
398
+ }
399
+ }, ke = G(null);
400
+ function ee() {
401
+ const t = A(ke);
402
+ if (!t)
403
+ throw new Error("Menu compound components must be used within Menu.Root");
404
+ return t;
405
+ }
406
+ function Ge(t, e) {
407
+ return t ? !e.some((o) => o != null && o.contains(t)) : !0;
408
+ }
409
+ function De({
410
+ open: t,
411
+ defaultOpen: e = !1,
412
+ onOpenChange: o
413
+ }) {
414
+ const [r, c] = Z(e), l = t !== void 0, a = l ? t : r, [i, n] = Z(null), s = q(i);
415
+ J(() => {
416
+ s.current = i;
417
+ }, [i]);
418
+ const u = Y(), p = Y(), d = q(null), x = q(null), g = q(null), h = q(/* @__PURE__ */ new Map()), m = q([]), y = q(a);
419
+ y.current = a;
420
+ const k = q(o);
421
+ k.current = o;
422
+ const w = K((T) => {
423
+ T !== y.current && (l || c(T), k.current?.(T));
424
+ }, [l]), S = K(() => {
425
+ y.current && (w(!1), n(null));
426
+ }, [w]), R = K(() => {
427
+ y.current && (S(), x.current?.focus());
428
+ }, [S]), H = K(() => {
429
+ y.current ? R() : w(!0);
430
+ }, [R, w]), L = q(!1);
431
+ F(() => {
432
+ if (a && !L.current) {
433
+ g.current?.focus({
434
+ preventScroll: !0
435
+ });
436
+ const T = m.current[0];
437
+ T && n(T);
438
+ } else !a && L.current && n(null);
439
+ L.current = a;
440
+ }, [a]), F(() => {
441
+ if (!i) return;
442
+ h.current.get(i)?.scrollIntoView?.({
443
+ block: "nearest"
444
+ });
445
+ }, [i]);
446
+ const O = K((T, P) => {
447
+ h.current.set(T, P);
448
+ const j = h.current, z = [...j.keys()];
449
+ return z.sort((E, N) => {
450
+ const se = j.get(E), le = j.get(N);
451
+ return !se || !le ? 0 : se.compareDocumentPosition(le) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
452
+ }), m.current = z, () => {
453
+ h.current.delete(T), m.current = m.current.filter((E) => E !== T);
454
+ };
455
+ }, []);
456
+ return F(() => {
457
+ const T = g.current;
458
+ if (!T || !a) return;
459
+ function P(j) {
460
+ if (j.key === "Escape") {
461
+ j.preventDefault(), j.stopPropagation(), R();
462
+ return;
463
+ }
464
+ if (j.key === "Tab") {
465
+ R();
466
+ return;
467
+ }
468
+ const z = m.current;
469
+ if (z.length !== 0)
470
+ switch (j.key) {
471
+ case "ArrowDown": {
472
+ j.preventDefault(), n((E) => {
473
+ const N = E ? z.indexOf(E) : -1;
474
+ return z[(N + 1) % z.length];
475
+ });
476
+ break;
477
+ }
478
+ case "ArrowUp": {
479
+ j.preventDefault(), n((E) => {
480
+ const N = E ? z.indexOf(E) : 0;
481
+ return z[(N - 1 + z.length) % z.length];
482
+ });
483
+ break;
484
+ }
485
+ case "Home": {
486
+ j.preventDefault(), n(z[0]);
487
+ break;
488
+ }
489
+ case "End": {
490
+ j.preventDefault(), n(z[z.length - 1]);
491
+ break;
492
+ }
493
+ case "Enter":
494
+ case " ": {
495
+ j.preventDefault();
496
+ const E = s.current;
497
+ E && h.current.get(E)?.click();
498
+ break;
499
+ }
500
+ }
501
+ }
502
+ return T.addEventListener("keydown", P), () => T.removeEventListener("keydown", P);
503
+ }, [a, R]), F(() => {
504
+ if (!a) return;
505
+ function T(P) {
506
+ Ge(P.target, [g.current, x.current]) && S();
507
+ }
508
+ return document.addEventListener("pointerdown", T, !0), () => document.removeEventListener("pointerdown", T, !0);
509
+ }, [a, S]), {
510
+ ctx: {
511
+ open: a,
512
+ toggle: H,
513
+ close: R,
514
+ menuId: u,
515
+ triggerId: p,
516
+ highlightedId: i,
517
+ setHighlightedId: n,
518
+ registerItem: O,
519
+ triggerRef: x,
520
+ popupRef: g
521
+ },
522
+ rootRef: d
523
+ };
524
+ }
525
+ function Fe({
526
+ anchor: t,
527
+ popup: e,
528
+ viewport: o,
529
+ side: r,
530
+ align: c,
531
+ offset: l
532
+ }) {
533
+ const a = t.top + t.height + l, i = t.top - l - e.height, n = a + e.height <= o.height, s = i >= 0;
534
+ let u = r;
535
+ r === "bottom" && !n && s ? u = "top" : r === "top" && !s && n && (u = "bottom");
536
+ const p = u === "bottom" ? a : i;
537
+ let d = t.left;
538
+ c === "center" ? d = t.left + (t.width - e.width) / 2 : c === "end" && (d = t.left + t.width - e.width);
539
+ const x = Math.max(0, o.width - e.width);
540
+ return d = Math.min(Math.max(0, d), x), {
541
+ top: p,
542
+ left: d,
543
+ side: u
544
+ };
545
+ }
546
+ const Xe = G(null);
547
+ function Ve(t, e) {
548
+ const o = I.c(5), {
549
+ active: r
550
+ } = e, c = A(Xe);
551
+ let l, a;
552
+ o[0] !== r || o[1] !== c || o[2] !== t ? (l = () => {
553
+ const i = t.current;
554
+ if (!(!c || !r || !i))
555
+ return c.register(i);
556
+ }, a = [c, r, t], o[0] = r, o[1] = c, o[2] = t, o[3] = l, o[4] = a) : (l = o[3], a = o[4]), J(l, a);
557
+ }
558
+ function Ke(t) {
559
+ const e = I.c(10), {
560
+ children: o,
561
+ open: r,
562
+ defaultOpen: c,
563
+ onOpenChange: l
564
+ } = t;
565
+ let a;
566
+ e[0] !== c || e[1] !== l || e[2] !== r ? (a = {
567
+ open: r,
568
+ defaultOpen: c,
569
+ onOpenChange: l
570
+ }, e[0] = c, e[1] = l, e[2] = r, e[3] = a) : a = e[3];
571
+ const {
572
+ ctx: i,
573
+ rootRef: n
574
+ } = De(a);
575
+ let s;
576
+ e[4] !== o || e[5] !== n ? (s = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:40", ref: n, ...W(C.div, B.root), children: o }), e[4] = o, e[5] = n, e[6] = s) : s = e[6];
577
+ let u;
578
+ return e[7] !== i || e[8] !== s ? (u = /* @__PURE__ */ M(ke.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = u) : u = e[9], u;
579
+ }
580
+ const Ne = 'button, a[href], input, select, textarea, [role="button"]';
581
+ function _e({
582
+ children: t,
583
+ "aria-label": e,
584
+ variant: o = "default",
585
+ ref: r
586
+ }) {
587
+ const {
588
+ open: c,
589
+ toggle: l,
590
+ menuId: a,
591
+ triggerId: i,
592
+ triggerRef: n
593
+ } = ee(), s = He(), u = s.ref, p = K((d) => {
594
+ n.current = d, u.current = d, typeof r == "function" ? r(d) : r && (r.current = d);
595
+ }, [r, n, u]);
596
+ return F(() => {
597
+ n.current?.querySelector(Ne) && he("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
598
+ }, [n]), /* @__PURE__ */ M("button", { "data-element-src": "Menu/Menu.tsx:91", ref: p, tabIndex: s.tabIndex, onFocus: s.onFocus, id: i, type: "button", onClick: l, "aria-label": e, "aria-expanded": c, "aria-haspopup": "menu", "aria-controls": c ? a : void 0, ...W(C.button, B.trigger, o === "ghost" && B.triggerGhost, s.style), children: t });
599
+ }
600
+ function Ye(t) {
601
+ const e = I.c(26), {
602
+ children: o,
603
+ align: r
604
+ } = t, c = r === void 0 ? "start" : r, {
605
+ open: l,
606
+ menuId: a,
607
+ triggerId: i,
608
+ highlightedId: n,
609
+ triggerRef: s,
610
+ popupRef: u
611
+ } = ee();
612
+ let p;
613
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
614
+ top: 0,
615
+ left: 0
616
+ }, e[0] = p) : p = e[0];
617
+ const [d, x] = Z(p), g = Be();
618
+ let h;
619
+ e[1] !== l ? (h = {
620
+ active: l
621
+ }, e[1] = l, e[2] = h) : h = e[2], Ve(u, h);
622
+ let m, y;
623
+ if (e[3] !== c || e[4] !== l || e[5] !== u || e[6] !== s ? (m = () => {
624
+ if (!l)
625
+ return;
626
+ const D = () => {
627
+ const T = u.current, P = s.current?.getBoundingClientRect();
628
+ if (!T || !P)
629
+ return;
630
+ const j = Fe({
631
+ anchor: {
632
+ top: P.top,
633
+ left: P.left,
634
+ width: P.width,
635
+ height: P.height
636
+ },
637
+ popup: {
638
+ width: T.offsetWidth,
639
+ height: T.offsetHeight
640
+ },
641
+ viewport: {
642
+ width: window.innerWidth,
643
+ height: window.innerHeight
644
+ },
645
+ side: "bottom",
646
+ align: c,
647
+ offset: Ce.xs
648
+ });
649
+ x((z) => z.top === j.top && z.left === j.left ? z : {
650
+ top: j.top,
651
+ left: j.left
652
+ });
653
+ };
654
+ return D(), window.addEventListener("resize", D), window.addEventListener("scroll", D, !0), () => {
655
+ window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
656
+ };
657
+ }, y = [l, c, u, s], e[3] = c, e[4] = l, e[5] = u, e[6] = s, e[7] = m, e[8] = y) : (m = e[7], y = e[8]), J(m, y), !l || typeof document > "u")
658
+ return null;
659
+ const k = n ?? void 0;
660
+ let w;
661
+ e[9] !== d.left || e[10] !== d.top ? (w = B.popupPosition(d.top, d.left), e[9] = d.left, e[10] = d.top, e[11] = w) : w = e[11];
662
+ let S;
663
+ e[12] !== w ? (S = [B.popup, w], e[12] = w, e[13] = S) : S = e[13];
664
+ let R;
665
+ e[14] !== o ? (R = /* @__PURE__ */ M(Oe, { children: o }), e[14] = o, e[15] = R) : R = e[15];
666
+ let H;
667
+ e[16] !== a || e[17] !== u || e[18] !== k || e[19] !== S || e[20] !== R || e[21] !== i ? (H = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:155", ref: u, id: a, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(C.div, S), children: R }), e[16] = a, e[17] = u, e[18] = k, e[19] = S, e[20] = R, e[21] = i, e[22] = H) : H = e[22];
668
+ const L = g ?? document.body;
669
+ let O;
670
+ return e[23] !== H || e[24] !== L ? (O = We(H, L), e[23] = H, e[24] = L, e[25] = O) : O = e[25], O;
671
+ }
672
+ function Ze(t) {
673
+ const e = I.c(18), {
674
+ onClick: o,
675
+ children: r
676
+ } = t, {
677
+ close: c,
678
+ highlightedId: l,
679
+ setHighlightedId: a,
680
+ registerItem: i
681
+ } = ee(), n = Y(), s = q(null), u = l === n;
682
+ let p, d;
683
+ e[0] !== n || e[1] !== i ? (p = () => {
684
+ const w = s.current;
685
+ if (w)
686
+ return i(n, w);
687
+ }, d = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = d) : (p = e[2], d = e[3]), F(p, d);
688
+ let x;
689
+ e[4] !== c || e[5] !== o ? (x = () => {
690
+ o?.(), c();
691
+ }, e[4] = c, e[5] = o, e[6] = x) : x = e[6];
692
+ const g = x;
693
+ let h;
694
+ e[7] !== n || e[8] !== a ? (h = () => a(n), e[7] = n, e[8] = a, e[9] = h) : h = e[9];
695
+ const m = u && B.itemHighlighted;
696
+ let y;
697
+ e[10] !== m ? (y = [B.item, m], e[10] = m, e[11] = y) : y = e[11];
698
+ let k;
699
+ return e[12] !== r || e[13] !== g || e[14] !== n || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:194", ref: s, id: n, role: "menuitem", onClick: g, onPointerEnter: h, ...W(C.div, y), children: r }), e[12] = r, e[13] = g, e[14] = n, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
700
+ }
701
+ function Ue(t) {
702
+ const e = I.c(18), {
703
+ href: o,
704
+ children: r
705
+ } = t, {
706
+ close: c,
707
+ highlightedId: l,
708
+ setHighlightedId: a,
709
+ registerItem: i
710
+ } = ee(), n = Y(), s = q(null), u = l === n;
711
+ let p, d;
712
+ e[0] !== n || e[1] !== i ? (p = () => {
713
+ const k = s.current;
714
+ if (k)
715
+ return i(n, k);
716
+ }, d = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = d) : (p = e[2], d = e[3]), F(p, d);
717
+ let x;
718
+ e[4] !== c ? (x = () => c(), e[4] = c, e[5] = x) : x = e[5];
719
+ let g;
720
+ e[6] !== n || e[7] !== a ? (g = () => a(n), e[6] = n, e[7] = a, e[8] = g) : g = e[8];
721
+ const h = u && B.itemHighlighted;
722
+ let m;
723
+ e[9] !== h ? (m = [B.item, B.linkItem, h], e[9] = h, e[10] = m) : m = e[10];
724
+ let y;
725
+ return e[11] !== r || e[12] !== o || e[13] !== n || e[14] !== x || e[15] !== g || e[16] !== m ? (y = /* @__PURE__ */ M("a", { "data-element-src": "Menu/Menu.tsx:226", ref: s, id: n, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(C.a, m), children: r }), e[11] = r, e[12] = o, e[13] = n, e[14] = x, e[15] = g, e[16] = m, e[17] = y) : y = e[17], y;
726
+ }
727
+ function Je() {
728
+ const t = I.c(1);
729
+ let e;
730
+ return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ M("div", { "data-element-src": "Menu/Menu.tsx:245", role: "separator", "aria-orientation": "horizontal", ...W(C.div, B.separator) }), t[0] = e) : e = t[0], e;
731
+ }
732
+ const xr = {
733
+ Root: Ke,
734
+ Trigger: _e,
735
+ Popup: Ye,
736
+ Item: Ze,
737
+ LinkItem: Ue,
738
+ Separator: Je
739
+ };
740
+ /**
741
+ * @license react-strict-dom
742
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
743
+ *
744
+ * This source code is licensed under the MIT license found in the
745
+ * LICENSE file in the root directory of this source tree.
746
+ */
747
+ const ue = {};
748
+ function Qe(t) {
749
+ process.env.NODE_ENV !== "test" && ue[t] || (ue[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
750
+ }
751
+ const et = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
752
+ function tt(t) {
753
+ return et.has(t) || t.indexOf("data-") > -1;
754
+ }
755
+ var oe = {};
756
+ Object.defineProperty(oe, "__esModule", {
757
+ value: !0
758
+ });
759
+ var ve = oe.styleq = void 0, ot = /* @__PURE__ */ new WeakMap(), rt = "$$css";
760
+ function ye(t) {
761
+ var e, o, r;
762
+ return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, r = t.transform), function() {
763
+ for (var l = [], a = "", i = null, n = "", s = e ? null : ot, u = new Array(arguments.length), p = 0; p < arguments.length; p++)
764
+ u[p] = arguments[p];
765
+ for (; u.length > 0; ) {
766
+ var d = u.pop();
767
+ if (!(d == null || d === !1)) {
768
+ if (Array.isArray(d)) {
769
+ for (var x = 0; x < d.length; x++)
770
+ u.push(d[x]);
771
+ continue;
772
+ }
773
+ var g = r != null ? r(d) : d;
774
+ if (g.$$css != null) {
775
+ var h = "";
776
+ if (s != null && s.has(g)) {
777
+ var m = s.get(g);
778
+ m != null && (h = m[0], n = m[2], l.push.apply(l, m[1]), s = m[3]);
779
+ } else {
780
+ var y = [];
781
+ for (var k in g) {
782
+ var w = g[k];
783
+ if (k === rt) {
784
+ var S = g[k];
785
+ S !== !0 && (n = n ? S + "; " + n : S);
786
+ continue;
787
+ }
788
+ typeof w == "string" || w === null ? l.includes(k) || (l.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
789
+ }
790
+ if (s != null) {
791
+ var R = /* @__PURE__ */ new WeakMap();
792
+ s.set(g, [h, y, n, R]), s = R;
793
+ }
794
+ }
795
+ h && (a = a ? h + " " + a : h);
796
+ } else if (o)
797
+ i == null && (i = {}), i = Object.assign({}, g, i);
798
+ else {
799
+ var H = null;
800
+ for (var L in g) {
801
+ var O = g[L];
802
+ O !== void 0 && (l.includes(L) || (O != null && (i == null && (i = {}), H == null && (H = {}), H[L] = O), l.push(L), s = null));
803
+ }
804
+ H != null && (i = Object.assign(H, i));
805
+ }
806
+ }
807
+ }
808
+ var D = [a, i, n];
809
+ return D;
810
+ };
811
+ }
812
+ var nt = ve = oe.styleq = ye();
813
+ nt.factory = ye;
814
+ const it = ve.factory({
815
+ disableMix: !0
816
+ });
817
+ function st(...t) {
818
+ const [e, o, r] = it(t), c = {};
819
+ if (e != null && e !== "" && (c.className = e), o != null && (c.style = o), r != null && r !== "") {
820
+ const l = r.split(";"), a = {};
821
+ for (const i of l) {
822
+ const n = i.trim(), [s, u] = n.split(":");
823
+ u != null && (a[s] = a[s] != null ? `${a[s]},${u}` : u);
824
+ }
825
+ c["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
826
+ }
827
+ return c;
828
+ }
829
+ function lt(t) {
830
+ Object.keys(t).forEach((e) => {
831
+ tt(e) || (Qe(`invalid prop "${e}"`), delete t[e]);
832
+ });
833
+ }
834
+ function b(t, e) {
835
+ const o = {
836
+ $$css: !0,
837
+ "debug::name": `html-${t}`
838
+ };
839
+ function r({
840
+ ref: c,
841
+ ...l
842
+ }) {
843
+ const {
844
+ for: a,
845
+ style: i,
846
+ ...n
847
+ } = l, s = n;
848
+ lt(s), a != null && (s.htmlFor = a), l.role != null && (s.role = l.role === "none" ? "presentation" : l.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
849
+ const u = st([o, e, i]);
850
+ return M(t, {
851
+ ...s,
852
+ ...u,
853
+ ref: c
854
+ });
855
+ }
856
+ return r.displayName = `html.${t}`, r;
857
+ }
858
+ const v = {
859
+ block: {
860
+ "margin-kogj98": "margin-x1ghz6dp",
861
+ "padding-kmVPX3": "padding-x1717udv",
862
+ $$css: ".pnpm:web/index.js:226"
863
+ },
864
+ inline: {
865
+ "margin-kogj98": "margin-x1ghz6dp",
866
+ "padding-kmVPX3": "padding-x1717udv",
867
+ "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
868
+ "textAlign-k9WMMc": "textAlign-x16tdsg8",
869
+ "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
870
+ $$css: ".pnpm:web/index.js:230"
871
+ },
872
+ inlineblock: {
873
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
874
+ "margin-kogj98": "margin-x1ghz6dp",
875
+ "padding-kmVPX3": "padding-x1717udv",
876
+ $$css: ".pnpm:web/index.js:237"
877
+ },
878
+ button: {
879
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
880
+ $$css: ".pnpm:web/index.js:242"
881
+ },
882
+ codePre: {
883
+ "fontFamily-kMv6JI": "fontFamily-x1lxnp44",
884
+ "fontSize-kGuDYH": "fontSize-xrv4cvt",
885
+ "overflow-kVQacm": "overflow-xysyzu8",
886
+ $$css: ".pnpm:web/index.js:245"
887
+ },
888
+ heading: {
889
+ "fontSize-kGuDYH": "fontSize-xngnso2",
890
+ "wordWrap-kD5eJx": "wordWrap-x1vvkbs",
891
+ $$css: ".pnpm:web/index.js:250"
892
+ },
893
+ hr: {
894
+ "backgroundColor-kWkggS": "backgroundColor-x42x0ya",
895
+ "borderStyle-ksu8eU": "borderStyle-xng3xce",
896
+ "borderWidth-kMzoRj": "borderWidth-xc342km",
897
+ "boxSizing-kB7OPa": "boxSizing-x9f619",
898
+ "height-kZKoxP": "height-xjm9jq1",
899
+ $$css: ".pnpm:web/index.js:254"
900
+ },
901
+ img: {
902
+ "aspectRatio-kOBAk4": "aspectRatio-xuw900x",
903
+ "height-kZKoxP": "height-xt7dq6l",
904
+ "maxWidth-ks0D6T": "maxWidth-x193iq5w",
905
+ $$css: ".pnpm:web/index.js:261"
906
+ },
907
+ input: {
908
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
909
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
910
+ $$css: ".pnpm:web/index.js:266"
911
+ },
912
+ list: {
913
+ "listStyle-kB88ic": "listStyle-xe8uvvx",
914
+ $$css: ".pnpm:web/index.js:270"
915
+ },
916
+ strong: {
917
+ "fontWeight-k63SB2": "fontWeight-x117nqv4",
918
+ $$css: ".pnpm:web/index.js:273"
919
+ },
920
+ textarea: {
921
+ "borderWidth-kMzoRj": "borderWidth-xmkeg23",
922
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
923
+ "resize-kHenm0": "resize-x288g5",
924
+ $$css: ".pnpm:web/index.js:276"
925
+ }
926
+ }, at = v.inline, ct = v.block, dt = v.block, ut = v.inline, pt = v.inline, xt = v.inline, gt = v.block, ht = null, bt = [v.inlineblock, v.button], ft = [v.inline, v.codePre], mt = null, kt = v.block, vt = v.inline, yt = v.block, wt = v.block, $t = v.block, V = [v.block, v.heading], Mt = v.block, Tt = [v.block, v.hr], Wt = v.inline, Ct = v.img, St = [v.inlineblock, v.input], Rt = null, jt = null, zt = v.inline, Ht = v.block, It = v.block, Lt = v.inline, qt = v.block, Pt = [v.list, v.block], Et = null, Bt = null, Ot = v.block, At = [v.block, v.codePre], Gt = null, Dt = v.block, Ft = v.inlineblock, Xt = v.inline, Vt = [v.inline, v.strong], Kt = v.inline, Nt = v.inline, _t = [v.inlineblock, v.textarea], Yt = null, Zt = [v.list, v.block], f = {
927
+ a: at,
928
+ article: ct,
929
+ aside: dt,
930
+ b: ut,
931
+ bdi: pt,
932
+ bdo: xt,
933
+ blockquote: gt,
934
+ br: ht,
935
+ button: bt,
936
+ code: ft,
937
+ del: mt,
938
+ div: kt,
939
+ em: vt,
940
+ fieldset: yt,
941
+ footer: wt,
942
+ form: $t,
943
+ h1: V,
944
+ h2: V,
945
+ h3: V,
946
+ h4: V,
947
+ h5: V,
948
+ h6: V,
949
+ header: Mt,
950
+ hr: Tt,
951
+ i: Wt,
952
+ img: Ct,
953
+ input: St,
954
+ ins: Rt,
955
+ kbd: jt,
956
+ label: zt,
957
+ li: Ht,
958
+ main: It,
959
+ mark: Lt,
960
+ nav: qt,
961
+ ol: Pt,
962
+ optgroup: Et,
963
+ option: Bt,
964
+ p: Ot,
965
+ pre: At,
966
+ s: Gt,
967
+ section: Dt,
968
+ select: Ft,
969
+ span: Xt,
970
+ strong: Vt,
971
+ sub: Kt,
972
+ sup: Nt,
973
+ textarea: _t,
974
+ u: Yt,
975
+ ul: Zt
976
+ }, Ut = b("a", f.a), Jt = b("article", f.article), Qt = b("aside", f.aside), eo = b("b", f.b), to = b("bdi", f.bdi), oo = b("bdo", f.bdo), ro = b("blockquote", f.blockquote), no = b("br", f.br), io = b("button", f.button), so = b("code", f.code), lo = b("del", f.del), ao = b("div", f.div), co = b("em", f.em), uo = b("fieldset", f.fieldset), po = b("footer", f.footer), xo = b("form", f.form), go = b("h1", f.h1), ho = b("h2", f.h2), bo = b("h3", f.h3), fo = b("h4", f.h4), mo = b("h5", f.h5), ko = b("h6", f.h6), vo = b("header", f.header), yo = b("hr", f.hr), wo = b("i", f.i), $o = b("img", f.img), Mo = b("input", f.input), To = b("ins", f.ins), Wo = b("kbd", f.kbd), Co = b("label", f.label), So = b("li", f.li), Ro = b("main", f.main), jo = b("mark", f.mark), zo = b("nav", f.nav), Ho = b("ol", f.ol), Io = b("optgroup", f.optgroup), Lo = b("option", f.option), qo = b("p", f.p), Po = b("pre", f.pre), Eo = b("s", f.s), Bo = b("section", f.section), Oo = b("select", f.select), Ao = b("span", f.span), Go = b("strong", f.strong), Do = b("sub", f.sub), Fo = b("sup", f.sup), Xo = b("textarea", f.textarea), Vo = b("u", f.u), Ko = b("ul", f.ul);
977
+ var No = /* @__PURE__ */ Object.freeze({
978
+ __proto__: null,
979
+ a: Ut,
980
+ article: Jt,
981
+ aside: Qt,
982
+ b: eo,
983
+ bdi: to,
984
+ bdo: oo,
985
+ blockquote: ro,
986
+ br: no,
987
+ button: io,
988
+ code: so,
989
+ del: lo,
990
+ div: ao,
991
+ em: co,
992
+ fieldset: uo,
993
+ footer: po,
994
+ form: xo,
995
+ h1: go,
996
+ h2: ho,
997
+ h3: bo,
998
+ h4: fo,
999
+ h5: mo,
1000
+ h6: ko,
1001
+ header: vo,
1002
+ hr: yo,
1003
+ i: wo,
1004
+ img: $o,
1005
+ input: Mo,
1006
+ ins: To,
1007
+ kbd: Wo,
1008
+ label: Co,
1009
+ li: So,
1010
+ main: Ro,
1011
+ mark: jo,
1012
+ nav: zo,
1013
+ ol: Ho,
1014
+ optgroup: Io,
1015
+ option: Lo,
1016
+ p: qo,
1017
+ pre: Po,
1018
+ s: Eo,
1019
+ section: Bo,
1020
+ select: Oo,
1021
+ span: Ao,
1022
+ strong: Go,
1023
+ sub: Do,
1024
+ sup: Fo,
1025
+ textarea: Xo,
1026
+ u: Vo,
1027
+ ul: Ko
1028
+ });
1029
+ const gr = {
1030
+ xs: 480,
1031
+ sm: 640,
1032
+ md: 768,
1033
+ lg: 1024,
1034
+ xl: 1280
1035
+ }, $ = {
1036
+ container: {
1037
+ "containerType-k9g6sI": "containerType-x12h1iku",
1038
+ "display-k1xSpc": "display-x78zum5",
1039
+ "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
1040
+ "gap-kOIVth": "gap-x175yhtj",
1041
+ $$css: "Table/styles.css.ts:25"
1042
+ },
1043
+ rootContainer: {
1044
+ "containerType-k9g6sI": "containerType-x12h1iku",
1045
+ "display-k1xSpc": "display-x78zum5",
1046
+ "flexDirection-kXwgrk": "flexDirection-xdt5ytf",
1047
+ "gap-kOIVth": "gap-x175yhtj",
1048
+ $$css: "Table/styles.css.ts:34"
1049
+ },
1050
+ clickableRow: {
1051
+ "cursor-kkrTdU": "cursor-x1ypdohk",
1052
+ "outlineWidth-kMeerF": "outlineWidth-x1k57tk5 outlineWidth-x4u4vcp",
1053
+ "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
1054
+ "outlineColor-kjBf7l": "outlineColor-x1e3ajik",
1055
+ "outlineOffset-kInvED": "outlineOffset-x1j8r21s",
1056
+ $$css: "Table/styles.css.ts:43"
1057
+ },
1058
+ root: {
1059
+ "display-k1xSpc": "display-xrvj5dj",
1060
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q",
1061
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
1062
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
1063
+ "borderRadius-kaIpWk": "borderRadius-xwbokb3",
1064
+ "overflow-kVQacm": "overflow-xb3r6kr",
1065
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
1066
+ "fontFamily-kMv6JI": "fontFamily-xce2pww",
1067
+ "color-kMwMTN": "color-x95150z",
1068
+ $$css: "Table/styles.css.ts:55"
1069
+ },
1070
+ rootResponsive: {
1071
+ "minWidth-k7Eaqz": "minWidth-x13qp9f6 minWidth-xym1sjy",
1072
+ "borderWidth-kMzoRj": "borderWidth-x1qc3l2q borderWidth-xtteep3",
1073
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu backgroundColor-x1i4f0qi",
1074
+ "overflow-kVQacm": "overflow-xb3r6kr overflow-x2v4zgh",
1075
+ "rowGap-khm7nJ": "rowGap-xxs79tx rowGap-xijoxap",
1076
+ $$css: "Table/styles.css.ts:74"
1077
+ },
1078
+ header: {
1079
+ "display-k1xSpc": "display-xrvj5dj display-xncg82s",
1080
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1081
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
1082
+ "backgroundColor-kWkggS": "backgroundColor-xuw63hu",
1083
+ $$css: "Table/styles.css.ts:106"
1084
+ },
1085
+ body: {
1086
+ "display-k1xSpc": "display-xrvj5dj",
1087
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1088
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx",
1089
+ $$css: "Table/styles.css.ts:117"
1090
+ },
1091
+ row: {
1092
+ "display-k1xSpc": "display-xrvj5dj",
1093
+ "gridColumn-kBCFzs": "gridColumn-x1osaytk",
1094
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x4w6khx gridTemplateColumns-x1iukyyp",
1095
+ "borderBottomWidth-kt9PQ7": "borderBottomWidth-x12yxxv5 borderBottomWidth-xatuo0m",
1096
+ "borderBottomStyle-kfdmCh": "borderBottomStyle-x1q0q8m5",
1097
+ "borderBottomColor-kL6WhQ": "borderBottomColor-x19cyuh1",
1098
+ $$css: "Table/styles.css.ts:126"
1099
+ },
1100
+ bodyRow: {
1101
+ "backgroundColor-kWkggS": "backgroundColor-xjbqb8w backgroundColor-xp88rol backgroundColor-x14zl4n5",
1102
+ "transitionProperty-k1ekBW": "transitionProperty-x15406qy",
1103
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
1104
+ "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
1105
+ "padding-kmVPX3": "padding-x1717udv padding-x1s7rzzx",
1106
+ "borderRadius-kaIpWk": "borderRadius-x2u8bby borderRadius-x95x1h7",
1107
+ "borderWidth-kMzoRj": "borderWidth-xc342km borderWidth-xrp8l4a",
1108
+ "borderStyle-ksu8eU": "borderStyle-x1y0btm7",
1109
+ "borderColor-kVAM5u": "borderColor-x15ykms2",
1110
+ $$css: "Table/styles.css.ts:140"
1111
+ },
1112
+ headerCell: {
1113
+ "fontWeight-k63SB2": "fontWeight-x1x12jc5",
1114
+ "color-kMwMTN": "color-x4opovt",
1115
+ "textAlign-k9WMMc": "textAlign-x1yc453h",
1116
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
1117
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1118
+ "whiteSpace-khDVqt": "whiteSpace-xeaf4i8 whiteSpace-x1348v4l",
1119
+ $$css: "Table/styles.css.ts:167"
1120
+ },
1121
+ cell: {
1122
+ "color-kMwMTN": "color-x95150z",
1123
+ "display-k1xSpc": "display-x78zum5 display-xs8gwy4",
1124
+ "alignItems-kGNEyG": "alignItems-x6s0dn4",
1125
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
1126
+ "overflow-kVQacm": "overflow-x1rea2x4 overflow-x1axt6uq",
1127
+ "whiteSpace-khDVqt": "whiteSpace-xeaf4i8",
1128
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1129
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-xzgtm8w",
1130
+ "gap-kOIVth": "gap-xxhr3t gap-xgrwfsz",
1131
+ $$css: "Table/styles.css.ts:190"
1132
+ },
1133
+ cellValue: {
1134
+ "minWidth-k7Eaqz": "minWidth-xeuugli",
1135
+ "flexGrow-kzQI83": "flexGrow-x1iyjqo2",
1136
+ "overflowWrap-kHjlTd": "overflowWrap-x1mzt3pk",
1137
+ $$css: "Table/styles.css.ts:228"
1138
+ },
1139
+ cellLabel: {
1140
+ "display-k1xSpc": "display-x1s85apg display-x1sim00f",
1141
+ "color-kMwMTN": "color-x4opovt",
1142
+ "fontWeight-k63SB2": "fontWeight-x120ksxs",
1143
+ "fontSize-kGuDYH": "fontSize-x1f81oxx",
1144
+ $$css: "Table/styles.css.ts:237"
1145
+ },
1146
+ cellActions: {
1147
+ "gridTemplateColumns-kumcoG": "gridTemplateColumns-x1iukyyp",
1148
+ "justifyContent-kjj79g": "justifyContent-xalo3at",
1149
+ "marginTop-keoZOQ": "marginTop-xdj266r marginTop-x1mip588",
1150
+ "paddingTop-kLKAdn": "paddingTop-x1waenea",
1151
+ "borderTopWidth-kEafiO": "borderTopWidth-x972fbf borderTopWidth-x1ijfi2n",
1152
+ "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
1153
+ "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
1154
+ $$css: "Table/styles.css.ts:251"
1155
+ },
1156
+ cellSm: {
1157
+ "paddingTop-kLKAdn": "paddingTop-x1i738hq paddingTop-x81it4n",
1158
+ "paddingBottom-kGO01o": "paddingBottom-x6sojwk paddingBottom-x1jele16",
1159
+ "paddingLeft-kE3dHu": "paddingLeft-x6xq64o",
1160
+ "paddingRight-kpe85a": "paddingRight-xpkaq21",
1161
+ "fontSize-kGuDYH": "fontSize-x1f81oxx",
1162
+ $$css: "Table/styles.css.ts:277"
1163
+ },
1164
+ cellMd: {
1165
+ "paddingTop-kLKAdn": "paddingTop-xc2wovk",
1166
+ "paddingBottom-kGO01o": "paddingBottom-x1dr83cj",
1167
+ "paddingLeft-kE3dHu": "paddingLeft-x2rk66v paddingLeft-x1u39w1b",
1168
+ "paddingRight-kpe85a": "paddingRight-x7huf2v paddingRight-x1cevoma",
1169
+ "fontSize-kGuDYH": "fontSize-x1tzajr0",
1170
+ $$css: "Table/styles.css.ts:291"
1171
+ },
1172
+ stripedEven: {
1173
+ "backgroundColor-kWkggS": "backgroundColor-xlyqa1p backgroundColor-xp88rol backgroundColor-x14zl4n5",
1174
+ $$css: "Table/styles.css.ts:307"
1175
+ },
1176
+ borderedCell: {
1177
+ "borderRightWidth-kWqL5O": "borderRightWidth-xnwp6cp borderRightWidth-xc5nm28",
1178
+ "borderRightStyle-kSWEuD": "borderRightStyle-x32b0ac",
1179
+ "borderRightColor-k26BEO": "borderRightColor-x9iiiab",
1180
+ $$css: "Table/styles.css.ts:316"
1181
+ },
1182
+ borderedCellLast: {
1183
+ "borderRightWidth-kWqL5O": "borderRightWidth-xgfja2r",
1184
+ $$css: "Table/styles.css.ts:324"
1185
+ },
1186
+ sortChip: {
1187
+ "display-k1xSpc": "display-x1s85apg display-x11cgw9t",
1188
+ "alignSelf-kSGwAc": "alignSelf-xqcrz7y",
1189
+ $$css: "Table/styles.css.ts:329"
1190
+ },
1191
+ scrollX: {
1192
+ "overflowX-kXHlph": "overflowX-xw2csxc",
1193
+ "overflowY-kORKVm": "overflowY-xryxfnj",
1194
+ "WebkitOverflowScrolling-kuHK5b": "WebkitOverflowScrolling-x5lxg6s",
1195
+ $$css: "Table/styles.css.ts:343"
1196
+ },
1197
+ scrollFrame: {
1198
+ "position-kVAEAm": "position-x1n2onr6",
1199
+ $$css: "Table/styles.css.ts:354"
1200
+ },
1201
+ edgeFade: {
1202
+ "position-kVAEAm": "position-x10l6tqk",
1203
+ "top-k87sOh": "top-xnfr1j",
1204
+ "bottom-krVfgx": "bottom-x19ip775",
1205
+ "width-kzqmXN": "width-x1xju080",
1206
+ "pointerEvents-kfzvcC": "pointerEvents-x47corl",
1207
+ "opacity-kSiTet": "opacity-xg01cxk",
1208
+ "transitionProperty-k1ekBW": "transitionProperty-x19991ni",
1209
+ "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
1210
+ "transitionTimingFunction-kAMwcw": "transitionTimingFunction-xrbxpra",
1211
+ $$css: "Table/styles.css.ts:361"
1212
+ },
1213
+ edgeFadeLeft: {
1214
+ "left-kbCHJM": "left-xt9097p",
1215
+ "borderTopLeftRadius-kIxVMA": "borderTopLeftRadius-xha5hpv",
1216
+ "borderBottomLeftRadius-kqGeR4": "borderBottomLeftRadius-x1hsk2v7",
1217
+ "backgroundImage-kKwaWg": "backgroundImage-xvdn1ag",
1218
+ $$css: "Table/styles.css.ts:372"
1219
+ },
1220
+ edgeFadeRight: {
1221
+ "right-kCIrl2": "right-x1hp3iq1",
1222
+ "borderTopRightRadius-ksF3WI": "borderTopRightRadius-xbbsgyh",
1223
+ "borderBottomRightRadius-kYm2EN": "borderBottomRightRadius-xitffcu",
1224
+ "backgroundImage-kKwaWg": "backgroundImage-x1ykoi01",
1225
+ $$css: "Table/styles.css.ts:378"
1226
+ },
1227
+ edgeFadeVisible: {
1228
+ "opacity-kSiTet": "opacity-x1hc1fzr",
1229
+ $$css: "Table/styles.css.ts:384"
1230
+ },
1231
+ gridColumns: (t) => [{
1232
+ "gridTemplateColumns-kumcoG": t != null ? "gridTemplateColumns-xqketvx" : t,
1233
+ $$css: "Table/styles.css.ts:389"
1234
+ }, {
1235
+ "--x-gridTemplateColumns": t ?? void 0
1236
+ }],
1237
+ gridColumnsResponsive: (t, e) => [{
1238
+ "gridTemplateColumns-kumcoG": (t != null ? "gridTemplateColumns-x39pwss " : t) + (e != null ? "gridTemplateColumns-x17u3dsi " : e) + "gridTemplateColumns-x1iukyyp",
1239
+ $$css: "Table/styles.css.ts:408"
1240
+ }, {
1241
+ "--x-1pds3uo": t ?? void 0,
1242
+ "--x-1n5740v": e ?? void 0
1243
+ }]
1244
+ }, we = G(null);
1245
+ function te() {
1246
+ const t = A(we);
1247
+ if (!t)
1248
+ throw new Error("Table compound components must be used within Table.Root");
1249
+ return t;
1250
+ }
1251
+ const re = G(!1);
1252
+ function _o(t) {
1253
+ const e = I.c(2), {
1254
+ children: o
1255
+ } = t;
1256
+ let r;
1257
+ return e[0] !== o ? (r = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:55", ...W(C.div, $.container), children: o }), e[0] = o, e[1] = r) : r = e[1], r;
1258
+ }
1259
+ function Yo(t) {
1260
+ let e = "";
1261
+ return Q.forEach(t, (o) => {
1262
+ (typeof o == "string" || typeof o == "number") && (e += String(o));
1263
+ }), e;
1264
+ }
1265
+ function Zo(t) {
1266
+ let e = t;
1267
+ for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
1268
+ const r = e.type ?? e.render;
1269
+ if (r == null) break;
1270
+ e = r;
1271
+ }
1272
+ return e;
1273
+ }
1274
+ function Uo(t, e) {
1275
+ const o = [], r = [], c = [];
1276
+ function l(a) {
1277
+ Q.forEach(a, (i) => {
1278
+ if (!Te(i)) return;
1279
+ const n = i.props, s = Zo(i.type), u = s?.displayName || s?.name || "";
1280
+ if (s === ie || u === "HeaderCell") {
1281
+ const p = n.width ? String(de(n.width)) : `minmax(${me(e)}, 1fr)`;
1282
+ o.push(p), r.push(n.compactWidth ? String(de(n.compactWidth)) : p);
1283
+ const d = typeof n.label == "string" ? n.label : void 0, x = Yo(n.children).trim(), g = d ?? x;
1284
+ !d && x === "" && n.children != null && he("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(g);
1285
+ } else n.children && l(n.children);
1286
+ });
1287
+ }
1288
+ return l(t), {
1289
+ template: o.join(" "),
1290
+ compactTemplate: r.join(" "),
1291
+ labels: c
1292
+ };
1293
+ }
1294
+ function Jo(t) {
1295
+ const e = I.c(13), {
1296
+ children: o
1297
+ } = t, r = q(null);
1298
+ let c;
1299
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
1300
+ start: !1,
1301
+ end: !1
1302
+ }, e[0] = c) : c = e[0];
1303
+ const [l, a] = Z(c);
1304
+ let i, n;
1305
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
1306
+ const h = r.current;
1307
+ if (!h)
1308
+ return;
1309
+ const m = () => {
1310
+ const k = h.scrollWidth - h.clientWidth > 1;
1311
+ a({
1312
+ start: k && h.scrollLeft > 1,
1313
+ end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
1314
+ });
1315
+ };
1316
+ m(), h.addEventListener("scroll", m, {
1317
+ passive: !0
1318
+ });
1319
+ const y = typeof ResizeObserver < "u" ? new ResizeObserver(m) : null;
1320
+ return y?.observe(h), () => {
1321
+ h.removeEventListener("scroll", m), y?.disconnect();
1322
+ };
1323
+ }, n = [], e[1] = i, e[2] = n) : (i = e[1], n = e[2]), F(i, n);
1324
+ let s;
1325
+ e[3] !== o ? (s = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...W(C.div, $.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
1326
+ const u = l.start && $.edgeFadeVisible;
1327
+ let p;
1328
+ e[5] !== u ? (p = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(C.div, $.edgeFade, $.edgeFadeLeft, u) }), e[5] = u, e[6] = p) : p = e[6];
1329
+ const d = l.end && $.edgeFadeVisible;
1330
+ let x;
1331
+ e[7] !== d ? (x = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(C.div, $.edgeFade, $.edgeFadeRight, d) }), e[7] = d, e[8] = x) : x = e[8];
1332
+ let g;
1333
+ return e[9] !== s || e[10] !== p || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(C.div, $.scrollFrame), children: [
1334
+ s,
1335
+ p,
1336
+ x
1337
+ ] }), e[9] = s, e[10] = p, e[11] = x, e[12] = g) : g = e[12], g;
1338
+ }
1339
+ function Qo({
1340
+ children: t,
1341
+ variant: e = "default",
1342
+ size: o = "md",
1343
+ responsive: r = !0,
1344
+ minColumnWidth: c = "labelMinW",
1345
+ sortChip: l,
1346
+ pagination: a
1347
+ }) {
1348
+ const i = q(null), {
1349
+ template: n,
1350
+ compactTemplate: s,
1351
+ labels: u
1352
+ } = Uo(t, c);
1353
+ n && (i.current = n);
1354
+ const p = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
1355
+ C.div,
1356
+ $.root,
1357
+ // When responsive, use gridColumnsResponsive so the explicit column
1358
+ // template and the stack-mode @container override live in one StyleX
1359
+ // style object. Splitting them across two styles (gridColumns +
1360
+ // rootResponsive) causes StyleX conflict resolution to drop the
1361
+ // column template because rootResponsive's gridTemplateColumns key
1362
+ // always wins as the later entry in the array.
1363
+ n ? r ? $.gridColumnsResponsive(n, s) : $.gridColumns(n) : void 0,
1364
+ r && $.rootResponsive
1365
+ ), children: t }), x = /* @__PURE__ */ U(Me, { children: [
1366
+ l,
1367
+ r ? /* @__PURE__ */ M(Jo, { children: p }) : p,
1368
+ a
1369
+ ] });
1370
+ return /* @__PURE__ */ M(we.Provider, { value: {
1371
+ variant: e,
1372
+ size: o,
1373
+ responsive: r,
1374
+ labels: u,
1375
+ inferredTemplateRef: i
1376
+ }, children: r ? /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:299", ...W(C.div, $.rootContainer), children: x }) : x });
1377
+ }
1378
+ function er(t) {
1379
+ const e = I.c(2), {
1380
+ children: o
1381
+ } = t;
1382
+ let r;
1383
+ return e[0] !== o ? (r = /* @__PURE__ */ M(re.Provider, { value: !0, children: /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(C.div, $.header), children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
1384
+ }
1385
+ function tr(t) {
1386
+ const e = I.c(19), {
1387
+ children: o
1388
+ } = t, {
1389
+ variant: r
1390
+ } = te();
1391
+ let c, l, a, i, n, s;
1392
+ if (e[0] !== o || e[1] !== r) {
1393
+ const d = Q.toArray(o);
1394
+ l = re.Provider, s = !1, c = No.div, a = "rowgroup", i = $.body;
1395
+ let x;
1396
+ e[8] !== r ? (x = (g, h) => r !== "striped" ? g : /* @__PURE__ */ M($e.Provider, { value: h, children: g }, g.key ?? h), e[8] = r, e[9] = x) : x = e[9], n = d.map(x), e[0] = o, e[1] = r, e[2] = c, e[3] = l, e[4] = a, e[5] = i, e[6] = n, e[7] = s;
1397
+ } else
1398
+ c = e[2], l = e[3], a = e[4], i = e[5], n = e[6], s = e[7];
1399
+ let u;
1400
+ e[10] !== c || e[11] !== a || e[12] !== i || e[13] !== n ? (u = /* @__PURE__ */ M(c, { role: a, style: i, children: n }), e[10] = c, e[11] = a, e[12] = i, e[13] = n, e[14] = u) : u = e[14];
1401
+ let p;
1402
+ return e[15] !== l || e[16] !== s || e[17] !== u ? (p = /* @__PURE__ */ M(l, { value: s, children: u }), e[15] = l, e[16] = s, e[17] = u, e[18] = p) : p = e[18], p;
1403
+ }
1404
+ const $e = G(-1), or = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1405
+ function rr(t) {
1406
+ const e = I.c(17), {
1407
+ children: o,
1408
+ onClick: r,
1409
+ "aria-label": c
1410
+ } = t, {
1411
+ variant: l
1412
+ } = te(), a = A(re), i = A($e), n = i >= 0 && i % 2 === 1;
1413
+ let s;
1414
+ if (e[0] !== c || e[1] !== o || e[2] !== n || e[3] !== a || e[4] !== r || e[5] !== l) {
1415
+ const u = Q.toArray(o), p = r !== void 0 && !a;
1416
+ let d;
1417
+ e[7] !== p || e[8] !== r ? (d = p ? (k) => {
1418
+ const w = k.target;
1419
+ w instanceof Element && w.closest(or) || r();
1420
+ } : void 0, e[7] = p, e[8] = r, e[9] = d) : d = e[9];
1421
+ let x;
1422
+ e[10] !== p || e[11] !== r ? (x = p ? (k) => {
1423
+ (k.key === "Enter" || k.key === " ") && r();
1424
+ } : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
1425
+ const g = !a && $.bodyRow, h = !a && l === "striped" && n && $.stripedEven, m = p && $.clickableRow;
1426
+ let y;
1427
+ e[13] !== g || e[14] !== h || e[15] !== m ? (y = [$.row, g, h, m], e[13] = g, e[14] = h, e[15] = m, e[16] = y) : y = e[16], s = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: p ? 0 : void 0, "aria-label": p ? c : void 0, onClick: d, onKeyDown: x, ...W(C.div, y), children: u.map((k, w) => /* @__PURE__ */ M(ne.Provider, { value: {
1428
+ index: w,
1429
+ total: u.length
1430
+ }, children: k }, k.key ?? w)) }), e[0] = c, e[1] = o, e[2] = n, e[3] = a, e[4] = r, e[5] = l, e[6] = s;
1431
+ } else
1432
+ s = e[6];
1433
+ return s;
1434
+ }
1435
+ const ne = G({
1436
+ index: 0,
1437
+ total: 0
1438
+ });
1439
+ function ie(t) {
1440
+ const e = I.c(8), {
1441
+ children: o,
1442
+ "aria-label": r
1443
+ } = t, {
1444
+ size: c,
1445
+ variant: l
1446
+ } = te(), {
1447
+ index: a,
1448
+ total: i
1449
+ } = A(ne), n = l === "bordered" && a === i - 1, s = c === "sm" ? $.cellSm : $.cellMd, u = l === "bordered" && $.borderedCell, p = n && $.borderedCellLast;
1450
+ let d;
1451
+ e[0] !== s || e[1] !== u || e[2] !== p ? (d = [$.headerCell, s, u, p], e[0] = s, e[1] = u, e[2] = p, e[3] = d) : d = e[3];
1452
+ let x;
1453
+ return e[4] !== r || e[5] !== o || e[6] !== d ? (x = /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...W(C.div, d), children: o }), e[4] = r, e[5] = o, e[6] = d, e[7] = x) : x = e[7], x;
1454
+ }
1455
+ ie.displayName = "HeaderCell";
1456
+ function nr(t) {
1457
+ const e = I.c(16), {
1458
+ children: o,
1459
+ isActions: r
1460
+ } = t, {
1461
+ size: c,
1462
+ variant: l,
1463
+ labels: a,
1464
+ responsive: i
1465
+ } = te(), {
1466
+ index: n,
1467
+ total: s
1468
+ } = A(ne), u = l === "bordered" && n === s - 1, p = a[n] ?? "", d = c === "sm" ? $.cellSm : $.cellMd, x = l === "bordered" && $.borderedCell, g = u && $.borderedCellLast, h = r && $.cellActions;
1469
+ let m;
1470
+ e[0] !== d || e[1] !== x || e[2] !== g || e[3] !== h ? (m = [$.cell, d, x, g, h], e[0] = d, e[1] = x, e[2] = g, e[3] = h, e[4] = m) : m = e[4];
1471
+ let y;
1472
+ e[5] !== r || e[6] !== p || e[7] !== i ? (y = i && !r && p !== "" ? /* @__PURE__ */ M("span", { "data-element-src": "Table/Table.tsx:507", ...W(C.span, $.cellLabel), children: p }) : null, e[5] = r, e[6] = p, e[7] = i, e[8] = y) : y = e[8];
1473
+ let k;
1474
+ e[9] !== o || e[10] !== r ? (k = r ? o : /* @__PURE__ */ M("div", { "data-element-src": "Table/Table.tsx:509", ...W(C.div, $.cellValue), children: o }), e[9] = o, e[10] = r, e[11] = k) : k = e[11];
1475
+ let w;
1476
+ return e[12] !== m || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(C.div, m), children: [
1477
+ y,
1478
+ k
1479
+ ] }), e[12] = m, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
1480
+ }
1481
+ const ir = {
1482
+ /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1483
+ Container: _o,
1484
+ Root: Qo,
1485
+ Header: er,
1486
+ Body: tr,
1487
+ Row: rr,
1488
+ HeaderCell: ie,
1489
+ Cell: nr
1490
+ }, hr = ir;
1491
+ export {
1492
+ xe as B,
1493
+ Oe as C,
1494
+ dr as D,
1495
+ ie as H,
1496
+ ur as I,
1497
+ xr as M,
1498
+ Xe as P,
1499
+ rr as R,
1500
+ Ce as S,
1501
+ pr as T,
1502
+ Be as a,
1503
+ Ve as b,
1504
+ Fe as c,
1505
+ he as d,
1506
+ Re as e,
1507
+ je as f,
1508
+ pe as g,
1509
+ de as h,
1510
+ Ge as i,
1511
+ gr as j,
1512
+ hr as k,
1513
+ $ as l,
1514
+ er as m,
1515
+ tr as n,
1516
+ Qo as o,
1517
+ nr as p,
1518
+ _ as q,
1519
+ me as r,
1520
+ be as s,
1521
+ ir as t,
1522
+ He as u
1523
+ };
1524
+ //# sourceMappingURL=Table-Cm5cCnZD.js.map