@josephavelez77/base-design-system 0.2.1

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 (257) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/dist/components/Accordion/Accordion.d.ts +21 -0
  4. package/dist/components/Accordion/Accordion.d.ts.map +1 -0
  5. package/dist/components/Accordion/index.d.ts +3 -0
  6. package/dist/components/Accordion/index.d.ts.map +1 -0
  7. package/dist/components/AccordionGroup/AccordionGroup.d.ts +8 -0
  8. package/dist/components/AccordionGroup/AccordionGroup.d.ts.map +1 -0
  9. package/dist/components/AccordionGroup/AccordionGroupContext.d.ts +9 -0
  10. package/dist/components/AccordionGroup/AccordionGroupContext.d.ts.map +1 -0
  11. package/dist/components/AccordionGroup/index.d.ts +3 -0
  12. package/dist/components/AccordionGroup/index.d.ts.map +1 -0
  13. package/dist/components/Alert/Alert.d.ts +14 -0
  14. package/dist/components/Alert/Alert.d.ts.map +1 -0
  15. package/dist/components/Alert/index.d.ts +3 -0
  16. package/dist/components/Alert/index.d.ts.map +1 -0
  17. package/dist/components/AttributeChip/AttributeChip.d.ts +11 -0
  18. package/dist/components/AttributeChip/AttributeChip.d.ts.map +1 -0
  19. package/dist/components/AttributeChip/index.d.ts +3 -0
  20. package/dist/components/AttributeChip/index.d.ts.map +1 -0
  21. package/dist/components/Avatar/Avatar.d.ts +20 -0
  22. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  23. package/dist/components/Avatar/index.d.ts +3 -0
  24. package/dist/components/Avatar/index.d.ts.map +1 -0
  25. package/dist/components/Badge/Badge.d.ts +12 -0
  26. package/dist/components/Badge/Badge.d.ts.map +1 -0
  27. package/dist/components/Badge/index.d.ts +3 -0
  28. package/dist/components/Badge/index.d.ts.map +1 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
  30. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  31. package/dist/components/Breadcrumb/index.d.ts +3 -0
  32. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  33. package/dist/components/Button/Button.d.ts +14 -0
  34. package/dist/components/Button/Button.d.ts.map +1 -0
  35. package/dist/components/Button/index.d.ts +3 -0
  36. package/dist/components/Button/index.d.ts.map +1 -0
  37. package/dist/components/ButtonGroup/ButtonGroup.d.ts +17 -0
  38. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  39. package/dist/components/ButtonGroup/index.d.ts +3 -0
  40. package/dist/components/ButtonGroup/index.d.ts.map +1 -0
  41. package/dist/components/Card/Card.d.ts +22 -0
  42. package/dist/components/Card/Card.d.ts.map +1 -0
  43. package/dist/components/Card/index.d.ts +3 -0
  44. package/dist/components/Card/index.d.ts.map +1 -0
  45. package/dist/components/ChartCard/ChartCard.d.ts +15 -0
  46. package/dist/components/ChartCard/ChartCard.d.ts.map +1 -0
  47. package/dist/components/ChartCard/index.d.ts +3 -0
  48. package/dist/components/ChartCard/index.d.ts.map +1 -0
  49. package/dist/components/Checkbox/Checkbox.d.ts +8 -0
  50. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  51. package/dist/components/Checkbox/index.d.ts +3 -0
  52. package/dist/components/Checkbox/index.d.ts.map +1 -0
  53. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
  54. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
  55. package/dist/components/CheckboxGroup/index.d.ts +3 -0
  56. package/dist/components/CheckboxGroup/index.d.ts.map +1 -0
  57. package/dist/components/Chip/Chip.d.ts +11 -0
  58. package/dist/components/Chip/Chip.d.ts.map +1 -0
  59. package/dist/components/Chip/index.d.ts +3 -0
  60. package/dist/components/Chip/index.d.ts.map +1 -0
  61. package/dist/components/DataGrid/DataGrid.d.ts +95 -0
  62. package/dist/components/DataGrid/DataGrid.d.ts.map +1 -0
  63. package/dist/components/DataGrid/index.d.ts +3 -0
  64. package/dist/components/DataGrid/index.d.ts.map +1 -0
  65. package/dist/components/DateField/DateField.d.ts +19 -0
  66. package/dist/components/DateField/DateField.d.ts.map +1 -0
  67. package/dist/components/DateField/index.d.ts +3 -0
  68. package/dist/components/DateField/index.d.ts.map +1 -0
  69. package/dist/components/DatePicker/DatePicker.d.ts +13 -0
  70. package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
  71. package/dist/components/DatePicker/index.d.ts +3 -0
  72. package/dist/components/DatePicker/index.d.ts.map +1 -0
  73. package/dist/components/Dialog/Dialog.d.ts +29 -0
  74. package/dist/components/Dialog/Dialog.d.ts.map +1 -0
  75. package/dist/components/Dialog/index.d.ts +3 -0
  76. package/dist/components/Dialog/index.d.ts.map +1 -0
  77. package/dist/components/Divider/Divider.d.ts +9 -0
  78. package/dist/components/Divider/Divider.d.ts.map +1 -0
  79. package/dist/components/Divider/index.d.ts +3 -0
  80. package/dist/components/Divider/index.d.ts.map +1 -0
  81. package/dist/components/Drawer/Drawer.d.ts +23 -0
  82. package/dist/components/Drawer/Drawer.d.ts.map +1 -0
  83. package/dist/components/Drawer/index.d.ts +3 -0
  84. package/dist/components/Drawer/index.d.ts.map +1 -0
  85. package/dist/components/FileUploader/FileUploader.d.ts +18 -0
  86. package/dist/components/FileUploader/FileUploader.d.ts.map +1 -0
  87. package/dist/components/FileUploader/index.d.ts +3 -0
  88. package/dist/components/FileUploader/index.d.ts.map +1 -0
  89. package/dist/components/FileUploaderListItem/FileUploaderListItem.d.ts +15 -0
  90. package/dist/components/FileUploaderListItem/FileUploaderListItem.d.ts.map +1 -0
  91. package/dist/components/FileUploaderListItem/index.d.ts +3 -0
  92. package/dist/components/FileUploaderListItem/index.d.ts.map +1 -0
  93. package/dist/components/GlobalToolbar/GlobalToolbar.d.ts +12 -0
  94. package/dist/components/GlobalToolbar/GlobalToolbar.d.ts.map +1 -0
  95. package/dist/components/GlobalToolbar/index.d.ts +3 -0
  96. package/dist/components/GlobalToolbar/index.d.ts.map +1 -0
  97. package/dist/components/Icon/Icon.d.ts +16 -0
  98. package/dist/components/Icon/Icon.d.ts.map +1 -0
  99. package/dist/components/IconButton/IconButton.d.ts +13 -0
  100. package/dist/components/IconButton/IconButton.d.ts.map +1 -0
  101. package/dist/components/IconButton/index.d.ts +3 -0
  102. package/dist/components/IconButton/index.d.ts.map +1 -0
  103. package/dist/components/KpiCard/KpiCard.d.ts +12 -0
  104. package/dist/components/KpiCard/KpiCard.d.ts.map +1 -0
  105. package/dist/components/KpiCard/index.d.ts +3 -0
  106. package/dist/components/KpiCard/index.d.ts.map +1 -0
  107. package/dist/components/ListCard/ListCard.d.ts +14 -0
  108. package/dist/components/ListCard/ListCard.d.ts.map +1 -0
  109. package/dist/components/ListCard/index.d.ts +3 -0
  110. package/dist/components/ListCard/index.d.ts.map +1 -0
  111. package/dist/components/ListGroup/ListGroup.d.ts +6 -0
  112. package/dist/components/ListGroup/ListGroup.d.ts.map +1 -0
  113. package/dist/components/ListGroup/index.d.ts +3 -0
  114. package/dist/components/ListGroup/index.d.ts.map +1 -0
  115. package/dist/components/ListItem/ListItem.d.ts +30 -0
  116. package/dist/components/ListItem/ListItem.d.ts.map +1 -0
  117. package/dist/components/ListItem/index.d.ts +3 -0
  118. package/dist/components/ListItem/index.d.ts.map +1 -0
  119. package/dist/components/Logo/Logo.d.ts +12 -0
  120. package/dist/components/Logo/Logo.d.ts.map +1 -0
  121. package/dist/components/Logo/index.d.ts +3 -0
  122. package/dist/components/Logo/index.d.ts.map +1 -0
  123. package/dist/components/Menu/Menu.d.ts +6 -0
  124. package/dist/components/Menu/Menu.d.ts.map +1 -0
  125. package/dist/components/Menu/index.d.ts +3 -0
  126. package/dist/components/Menu/index.d.ts.map +1 -0
  127. package/dist/components/MenuItem/MenuItem.d.ts +11 -0
  128. package/dist/components/MenuItem/MenuItem.d.ts.map +1 -0
  129. package/dist/components/MenuItem/index.d.ts +3 -0
  130. package/dist/components/MenuItem/index.d.ts.map +1 -0
  131. package/dist/components/MultiSelectField/MultiSelectField.d.ts +21 -0
  132. package/dist/components/MultiSelectField/MultiSelectField.d.ts.map +1 -0
  133. package/dist/components/MultiSelectField/index.d.ts +3 -0
  134. package/dist/components/MultiSelectField/index.d.ts.map +1 -0
  135. package/dist/components/NavDrawer/NavDrawer.d.ts +25 -0
  136. package/dist/components/NavDrawer/NavDrawer.d.ts.map +1 -0
  137. package/dist/components/NavDrawer/index.d.ts +3 -0
  138. package/dist/components/NavDrawer/index.d.ts.map +1 -0
  139. package/dist/components/NumberField/NumberField.d.ts +21 -0
  140. package/dist/components/NumberField/NumberField.d.ts.map +1 -0
  141. package/dist/components/NumberField/index.d.ts +3 -0
  142. package/dist/components/NumberField/index.d.ts.map +1 -0
  143. package/dist/components/PageHeader/PageHeader.d.ts +19 -0
  144. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
  145. package/dist/components/PageHeader/index.d.ts +3 -0
  146. package/dist/components/PageHeader/index.d.ts.map +1 -0
  147. package/dist/components/Pagination/Pagination.d.ts +24 -0
  148. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  149. package/dist/components/Pagination/index.d.ts +3 -0
  150. package/dist/components/Pagination/index.d.ts.map +1 -0
  151. package/dist/components/PasswordField/PasswordField.d.ts +9 -0
  152. package/dist/components/PasswordField/PasswordField.d.ts.map +1 -0
  153. package/dist/components/PasswordField/index.d.ts +3 -0
  154. package/dist/components/PasswordField/index.d.ts.map +1 -0
  155. package/dist/components/Popover/Popover.d.ts +17 -0
  156. package/dist/components/Popover/Popover.d.ts.map +1 -0
  157. package/dist/components/Popover/index.d.ts +3 -0
  158. package/dist/components/Popover/index.d.ts.map +1 -0
  159. package/dist/components/PriorityChip/PriorityChip.d.ts +9 -0
  160. package/dist/components/PriorityChip/PriorityChip.d.ts.map +1 -0
  161. package/dist/components/PriorityChip/index.d.ts +3 -0
  162. package/dist/components/PriorityChip/index.d.ts.map +1 -0
  163. package/dist/components/ProgressBar/ProgressBar.d.ts +10 -0
  164. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  165. package/dist/components/ProgressBar/index.d.ts +3 -0
  166. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  167. package/dist/components/RadioButton/RadioButton.d.ts +7 -0
  168. package/dist/components/RadioButton/RadioButton.d.ts.map +1 -0
  169. package/dist/components/RadioButton/index.d.ts +3 -0
  170. package/dist/components/RadioButton/index.d.ts.map +1 -0
  171. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +21 -0
  172. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -0
  173. package/dist/components/RadioButtonGroup/index.d.ts +3 -0
  174. package/dist/components/RadioButtonGroup/index.d.ts.map +1 -0
  175. package/dist/components/RadioButtonItem/RadioButtonItem.d.ts +10 -0
  176. package/dist/components/RadioButtonItem/RadioButtonItem.d.ts.map +1 -0
  177. package/dist/components/RadioButtonItem/index.d.ts +3 -0
  178. package/dist/components/RadioButtonItem/index.d.ts.map +1 -0
  179. package/dist/components/SelectField/SelectField.d.ts +25 -0
  180. package/dist/components/SelectField/SelectField.d.ts.map +1 -0
  181. package/dist/components/SelectField/index.d.ts +3 -0
  182. package/dist/components/SelectField/index.d.ts.map +1 -0
  183. package/dist/components/Skeleton/Skeleton.d.ts +14 -0
  184. package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
  185. package/dist/components/Skeleton/index.d.ts +3 -0
  186. package/dist/components/Skeleton/index.d.ts.map +1 -0
  187. package/dist/components/Spinner/Spinner.d.ts +12 -0
  188. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  189. package/dist/components/Spinner/index.d.ts +3 -0
  190. package/dist/components/Spinner/index.d.ts.map +1 -0
  191. package/dist/components/SplitButton/SplitButton.d.ts +20 -0
  192. package/dist/components/SplitButton/SplitButton.d.ts.map +1 -0
  193. package/dist/components/SplitButton/index.d.ts +3 -0
  194. package/dist/components/SplitButton/index.d.ts.map +1 -0
  195. package/dist/components/StatusChip/StatusChip.d.ts +11 -0
  196. package/dist/components/StatusChip/StatusChip.d.ts.map +1 -0
  197. package/dist/components/StatusChip/index.d.ts +3 -0
  198. package/dist/components/StatusChip/index.d.ts.map +1 -0
  199. package/dist/components/Stepper/Stepper.d.ts +22 -0
  200. package/dist/components/Stepper/Stepper.d.ts.map +1 -0
  201. package/dist/components/Stepper/index.d.ts +3 -0
  202. package/dist/components/Stepper/index.d.ts.map +1 -0
  203. package/dist/components/Switch/Switch.d.ts +12 -0
  204. package/dist/components/Switch/Switch.d.ts.map +1 -0
  205. package/dist/components/Switch/index.d.ts +3 -0
  206. package/dist/components/Switch/index.d.ts.map +1 -0
  207. package/dist/components/SwitchGroup/SwitchGroup.d.ts +13 -0
  208. package/dist/components/SwitchGroup/SwitchGroup.d.ts.map +1 -0
  209. package/dist/components/SwitchGroup/index.d.ts +3 -0
  210. package/dist/components/SwitchGroup/index.d.ts.map +1 -0
  211. package/dist/components/SwitchItem/SwitchItem.d.ts +10 -0
  212. package/dist/components/SwitchItem/SwitchItem.d.ts.map +1 -0
  213. package/dist/components/SwitchItem/index.d.ts +3 -0
  214. package/dist/components/SwitchItem/index.d.ts.map +1 -0
  215. package/dist/components/TabGroup/TabGroup.d.ts +15 -0
  216. package/dist/components/TabGroup/TabGroup.d.ts.map +1 -0
  217. package/dist/components/TabGroup/index.d.ts +3 -0
  218. package/dist/components/TabGroup/index.d.ts.map +1 -0
  219. package/dist/components/Table/Table.d.ts +77 -0
  220. package/dist/components/Table/Table.d.ts.map +1 -0
  221. package/dist/components/Table/index.d.ts +3 -0
  222. package/dist/components/Table/index.d.ts.map +1 -0
  223. package/dist/components/TextArea/TextArea.d.ts +10 -0
  224. package/dist/components/TextArea/TextArea.d.ts.map +1 -0
  225. package/dist/components/TextArea/index.d.ts +3 -0
  226. package/dist/components/TextArea/index.d.ts.map +1 -0
  227. package/dist/components/TextField/TextField.d.ts +11 -0
  228. package/dist/components/TextField/TextField.d.ts.map +1 -0
  229. package/dist/components/TextField/index.d.ts +3 -0
  230. package/dist/components/TextField/index.d.ts.map +1 -0
  231. package/dist/components/TimeField/TimeField.d.ts +21 -0
  232. package/dist/components/TimeField/TimeField.d.ts.map +1 -0
  233. package/dist/components/TimeField/index.d.ts +3 -0
  234. package/dist/components/TimeField/index.d.ts.map +1 -0
  235. package/dist/components/TimePicker/TimePicker.d.ts +18 -0
  236. package/dist/components/TimePicker/TimePicker.d.ts.map +1 -0
  237. package/dist/components/TimePicker/index.d.ts +3 -0
  238. package/dist/components/TimePicker/index.d.ts.map +1 -0
  239. package/dist/components/Toast/Toast.d.ts +19 -0
  240. package/dist/components/Toast/Toast.d.ts.map +1 -0
  241. package/dist/components/Toast/index.d.ts +3 -0
  242. package/dist/components/Toast/index.d.ts.map +1 -0
  243. package/dist/components/Tooltip/Tooltip.d.ts +11 -0
  244. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  245. package/dist/components/Tooltip/index.d.ts +3 -0
  246. package/dist/components/Tooltip/index.d.ts.map +1 -0
  247. package/dist/components/UserIdentificationTag/UserIdentificationTag.d.ts +16 -0
  248. package/dist/components/UserIdentificationTag/UserIdentificationTag.d.ts.map +1 -0
  249. package/dist/components/UserIdentificationTag/index.d.ts +3 -0
  250. package/dist/components/UserIdentificationTag/index.d.ts.map +1 -0
  251. package/dist/index.cjs +1 -0
  252. package/dist/index.d.ts +123 -0
  253. package/dist/index.d.ts.map +1 -0
  254. package/dist/index.js +3944 -0
  255. package/dist/tokens/index.css +1 -0
  256. package/dist/tokens/variables.css +249 -0
  257. package/package.json +91 -0
package/dist/index.js ADDED
@@ -0,0 +1,3944 @@
1
+ import { jsx as e, jsxs as d, Fragment as xt } from "react/jsx-runtime";
2
+ import { FontAwesomeIcon as B } from "@fortawesome/react-fontawesome";
3
+ import M, { useState as I, useRef as A, useEffect as Y, useId as ce, useCallback as gt, useLayoutEffect as pn, createContext as hn, useContext as un } from "react";
4
+ import { faCircleInfo as $t, faCircleCheck as wt, faCircleExclamation as kt, faTriangleExclamation as Be, faXmark as Xe, faUser as mn, faSquareMinus as bn, faSquareCheck as vn, faChevronDown as qe, faChevronLeft as pt, faChevronRight as We, faChevronUp as zt, faMagnifyingGlass as Ct, faFilter as Ft, faInbox as At, faArrowUp as Gt, faArrowDown as Rt, faArrowsUpDown as Ut, faEllipsis as Ht, faCalendar as Vt, faCheck as Yt, faCircleXmark as fn, faTrash as gn, faFile as yn, faFileExcel as Nn, faFileWord as xn, faFilePdf as $n, faUpload as wn, faEyeSlash as kn, faEye as Cn, faMessage as In, faBell as Sn, faGear as jn, faEllipsisVertical as Tn } from "@fortawesome/free-solid-svg-icons";
5
+ import { faSquare as Bn, faClock as qn, faCircleDot as En, faCircle as Dn } from "@fortawesome/free-regular-svg-icons";
6
+ import { createPortal as Kt } from "react-dom";
7
+ const Pn = "_icon_h7mjs_1", On = "_xs_h7mjs_18", Mn = "_small_h7mjs_22", Ln = "_medium_h7mjs_26", Wn = "_large_h7mjs_30", zn = "_xl_h7mjs_34", Bt = {
8
+ icon: Pn,
9
+ xs: On,
10
+ small: Mn,
11
+ medium: Ln,
12
+ large: Wn,
13
+ xl: zn
14
+ }, z = ({
15
+ icon: t,
16
+ size: n = "medium",
17
+ color: a,
18
+ className: r,
19
+ "aria-label": o
20
+ }) => {
21
+ const s = [Bt.icon, Bt[n], r].filter(Boolean).join(" ");
22
+ return /* @__PURE__ */ e(
23
+ "span",
24
+ {
25
+ className: s,
26
+ style: a ? { color: a } : void 0,
27
+ "aria-label": o,
28
+ "aria-hidden": o ? void 0 : !0,
29
+ role: o ? "img" : void 0,
30
+ children: /* @__PURE__ */ e(B, { icon: t, "aria-hidden": !0 })
31
+ }
32
+ );
33
+ };
34
+ z.displayName = "Icon";
35
+ const Fn = "_iconButton_1h0xu_3", An = "_brandPrimary_1h0xu_29", Gn = "_brandSecondary_1h0xu_43", Rn = "_neutral_1h0xu_57", qt = {
36
+ iconButton: Fn,
37
+ brandPrimary: An,
38
+ brandSecondary: Gn,
39
+ neutral: Rn
40
+ }, U = M.forwardRef(
41
+ ({ icon: t, variant: n = "neutral", iconSize: a = "medium", disabled: r, className: o, ...s }, l) => {
42
+ const i = [qt.iconButton, qt[n], o].filter(Boolean).join(" ");
43
+ return /* @__PURE__ */ e("button", { ref: l, type: "button", className: i, disabled: r, ...s, children: /* @__PURE__ */ e(z, { icon: t, size: a }) });
44
+ }
45
+ );
46
+ U.displayName = "IconButton";
47
+ const Un = "_alert_i7cfd_3", Hn = "_content_i7cfd_13", Vn = "_leadingIcon_i7cfd_21", Yn = "_message_i7cfd_25", Kn = "_error_i7cfd_42", Zn = "_warning_i7cfd_50", Jn = "_success_i7cfd_58", Xn = "_info_i7cfd_66", Fe = {
48
+ alert: Un,
49
+ content: Hn,
50
+ leadingIcon: Vn,
51
+ message: Yn,
52
+ error: Kn,
53
+ warning: Zn,
54
+ success: Jn,
55
+ info: Xn
56
+ }, Qn = {
57
+ error: Be,
58
+ warning: kt,
59
+ success: wt,
60
+ info: $t
61
+ }, ea = ({
62
+ severity: t = "info",
63
+ children: n,
64
+ dismissible: a = !1,
65
+ onDismiss: r,
66
+ className: o
67
+ }) => {
68
+ const [s, l] = I(!1);
69
+ if (s) return null;
70
+ const i = () => {
71
+ l(!0), r == null || r();
72
+ }, _ = [Fe.alert, Fe[t], o].filter(Boolean).join(" ");
73
+ return /* @__PURE__ */ d("div", { role: t === "error" || t === "warning" ? "alert" : "status", className: _, children: [
74
+ /* @__PURE__ */ d("div", { className: Fe.content, children: [
75
+ /* @__PURE__ */ e("span", { className: Fe.leadingIcon, children: /* @__PURE__ */ e(z, { icon: Qn[t], size: "medium" }) }),
76
+ /* @__PURE__ */ e("p", { className: Fe.message, children: n })
77
+ ] }),
78
+ a && /* @__PURE__ */ e(
79
+ U,
80
+ {
81
+ icon: Xe,
82
+ iconSize: "small",
83
+ variant: "brandPrimary",
84
+ onClick: i,
85
+ "aria-label": "Dismiss alert"
86
+ }
87
+ )
88
+ ] });
89
+ };
90
+ ea.displayName = "Alert";
91
+ const ta = "_avatar_8lt3g_3", na = "_small_8lt3g_19", aa = "_initials_8lt3g_26", ra = "_icon_8lt3g_27", sa = "_initialsText_8lt3g_34", oa = "_initialsText_default_8lt3g_43", la = "_initialsText_small_8lt3g_47", ia = "_img_8lt3g_53", Ee = {
92
+ avatar: ta,
93
+ default: "_default_8lt3g_14",
94
+ small: na,
95
+ initials: aa,
96
+ icon: ra,
97
+ initialsText: sa,
98
+ initialsText_default: oa,
99
+ initialsText_small: la,
100
+ img: ia
101
+ }, ze = ({
102
+ type: t = "initials",
103
+ size: n = "default",
104
+ initials: a = "AB",
105
+ icon: r = mn,
106
+ src: o,
107
+ alt: s = "",
108
+ className: l
109
+ }) => {
110
+ const i = [Ee.avatar, Ee[t], Ee[n], l].filter(Boolean).join(" ");
111
+ return /* @__PURE__ */ d("div", { className: i, "aria-label": t === "initials" ? a : void 0, children: [
112
+ t === "initials" && /* @__PURE__ */ e("span", { className: `${Ee.initialsText} ${Ee[`initialsText_${n}`]}`, children: a }),
113
+ t === "icon" && /* @__PURE__ */ e(z, { icon: r, size: n === "default" ? "medium" : "small" }),
114
+ t === "image" && o && /* @__PURE__ */ e("img", { className: Ee.img, src: o, alt: s })
115
+ ] });
116
+ };
117
+ ze.displayName = "Avatar";
118
+ const ca = "_badge_1a9jh_1", da = "_numeric_1a9jh_12", _a = "_value_1a9jh_18", pa = "_plus_1a9jh_27", ha = "_dot_1a9jh_37", et = {
119
+ badge: ca,
120
+ numeric: da,
121
+ value: _a,
122
+ plus: pa,
123
+ dot: ha
124
+ }, ua = ({ variant: t = "numeric", value: n = 0, max: a, className: r, ...o }) => {
125
+ const s = [et.badge, et[t], r].filter(Boolean).join(" ");
126
+ if (t === "dot")
127
+ return /* @__PURE__ */ e("span", { className: s, "aria-hidden": "true", ...o });
128
+ const l = a !== void 0 && n > a, i = l ? a : n;
129
+ return /* @__PURE__ */ d("span", { className: s, "aria-label": `${n} notifications`, ...o, children: [
130
+ /* @__PURE__ */ e("span", { className: et.value, children: i }),
131
+ l && /* @__PURE__ */ e("span", { className: et.plus, children: "+" })
132
+ ] });
133
+ };
134
+ ua.displayName = "Badge";
135
+ const ma = "_wrapper_16e9j_3", ba = "_disabled_16e9j_10", va = "_hitArea_16e9j_16", fa = "_checked_16e9j_30", ga = "_input_16e9j_36", ya = "_label_16e9j_54", Na = "_asterisk_16e9j_73", ke = {
136
+ wrapper: ma,
137
+ disabled: ba,
138
+ hitArea: va,
139
+ checked: fa,
140
+ input: ga,
141
+ label: ya,
142
+ asterisk: Na
143
+ }, Le = M.forwardRef(
144
+ ({ label: t, required: n, disabled: a, indeterminate: r = !1, className: o, id: s, checked: l, defaultChecked: i, onChange: _, ...h }, c) => {
145
+ const p = l !== void 0, [u, m] = I(p ? l : i ?? !1), b = A(null);
146
+ Y(() => {
147
+ p && m(l);
148
+ }, [l, p]), Y(() => {
149
+ const C = (c == null ? void 0 : c.current) ?? b.current;
150
+ C && (C.indeterminate = r);
151
+ }, [r, c]);
152
+ const g = (C) => {
153
+ p || m(C.target.checked), _ == null || _(C);
154
+ }, f = r || u, w = r ? bn : u ? vn : Bn, y = a ? "var(--icon-color-themeable-disabled)" : f ? "var(--icon-color-static-brand-primary)" : "var(--icon-color-themeable-primary)";
155
+ return /* @__PURE__ */ d("label", { className: [ke.wrapper, a ? ke.disabled : "", f ? ke.checked : "", o ?? ""].filter(Boolean).join(" "), children: [
156
+ /* @__PURE__ */ d("span", { className: ke.hitArea, children: [
157
+ /* @__PURE__ */ e(
158
+ "input",
159
+ {
160
+ ref: c ?? b,
161
+ type: "checkbox",
162
+ id: s,
163
+ className: ke.input,
164
+ disabled: a,
165
+ required: n,
166
+ checked: p ? l : u,
167
+ onChange: g,
168
+ ...h
169
+ }
170
+ ),
171
+ /* @__PURE__ */ e(
172
+ B,
173
+ {
174
+ icon: w,
175
+ style: { color: y, width: 16, height: 16, flexShrink: 0 },
176
+ "aria-hidden": !0
177
+ }
178
+ )
179
+ ] }),
180
+ t && /* @__PURE__ */ d("span", { className: ke.label, children: [
181
+ t,
182
+ n && /* @__PURE__ */ e("span", { className: ke.asterisk, "aria-hidden": "true", children: "*" })
183
+ ] })
184
+ ] });
185
+ }
186
+ );
187
+ Le.displayName = "Checkbox";
188
+ const xa = "_button_13dpe_3", $a = "_brandPrimary_13dpe_43", wa = "_primary_13dpe_43", ka = "_secondary_13dpe_53", Ca = "_tertiary_13dpe_63", Ia = "_brandSecondary_13dpe_74", Sa = "_neutral_13dpe_105", ja = "_statusError_13dpe_136", Ta = "_fullWidth_13dpe_194", Ba = "_loading_13dpe_200", qa = "_spinner_13dpe_204", Ea = "_spin_13dpe_204", De = {
189
+ button: xa,
190
+ brandPrimary: $a,
191
+ primary: wa,
192
+ secondary: ka,
193
+ tertiary: Ca,
194
+ brandSecondary: Ia,
195
+ neutral: Sa,
196
+ statusError: ja,
197
+ fullWidth: Ta,
198
+ loading: Ba,
199
+ spinner: qa,
200
+ spin: Ea
201
+ }, V = M.forwardRef(
202
+ ({
203
+ variant: t = "brandPrimary",
204
+ emphasis: n = "primary",
205
+ leadingIcon: a,
206
+ trailingIcon: r,
207
+ fullWidth: o = !1,
208
+ loading: s = !1,
209
+ disabled: l,
210
+ className: i,
211
+ children: _,
212
+ ...h
213
+ }, c) => {
214
+ const p = [
215
+ De.button,
216
+ De[t],
217
+ De[n],
218
+ o ? De.fullWidth : "",
219
+ s ? De.loading : "",
220
+ i ?? ""
221
+ ].filter(Boolean).join(" ");
222
+ return /* @__PURE__ */ e(
223
+ "button",
224
+ {
225
+ ref: c,
226
+ className: p,
227
+ disabled: l || s,
228
+ "aria-busy": s || void 0,
229
+ ...h,
230
+ children: s ? /* @__PURE__ */ e("span", { className: De.spinner, "aria-hidden": "true" }) : /* @__PURE__ */ d(xt, { children: [
231
+ a,
232
+ _,
233
+ r
234
+ ] })
235
+ }
236
+ );
237
+ }
238
+ );
239
+ V.displayName = "Button";
240
+ const Da = "_picker_1ps7c_3", Pa = "_selectedDate_1ps7c_19", Oa = "_selectedDateText_1ps7c_27", Ma = "_calendarControls_1ps7c_37", La = "_monthSelector_1ps7c_46", Wa = "_monthLabel_1ps7c_57", za = "_navigation_1ps7c_64", Fa = "_navButton_1ps7c_70", Aa = "_calendar_1ps7c_37", Ga = "_dayOfWeekRow_1ps7c_100", Ra = "_dayOfWeek_1ps7c_100", Ua = "_weekRow_1ps7c_119", Ha = "_dayCell_1ps7c_123", Va = "_dayCellSelected_1ps7c_141", Ya = "_dayCellOutside_1ps7c_151", Ka = "_actions_1ps7c_162", Z = {
241
+ picker: Da,
242
+ selectedDate: Pa,
243
+ selectedDateText: Oa,
244
+ calendarControls: Ma,
245
+ monthSelector: La,
246
+ monthLabel: Wa,
247
+ navigation: za,
248
+ navButton: Fa,
249
+ calendar: Aa,
250
+ dayOfWeekRow: Ga,
251
+ dayOfWeek: Ra,
252
+ weekRow: Ua,
253
+ dayCell: Ha,
254
+ dayCellSelected: Va,
255
+ dayCellOutside: Ya,
256
+ actions: Ka
257
+ }, Za = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], Ja = [
258
+ "Jan",
259
+ "Feb",
260
+ "Mar",
261
+ "Apr",
262
+ "May",
263
+ "Jun",
264
+ "Jul",
265
+ "Aug",
266
+ "Sep",
267
+ "Oct",
268
+ "Nov",
269
+ "Dec"
270
+ ];
271
+ function Xa(t, n) {
272
+ const a = new Date(t, n, 1).getDay(), r = new Date(t, n + 1, 0).getDate(), o = new Date(t, n, 0).getDate(), s = [];
273
+ for (let i = a - 1; i >= 0; i--)
274
+ s.push({ date: new Date(t, n - 1, o - i), isCurrentMonth: !1 });
275
+ for (let i = 1; i <= r; i++)
276
+ s.push({ date: new Date(t, n, i), isCurrentMonth: !0 });
277
+ let l = 1;
278
+ for (; s.length < 42; )
279
+ s.push({ date: new Date(t, n + 1, l++), isCurrentMonth: !1 });
280
+ return s;
281
+ }
282
+ function Qa(t, n) {
283
+ return t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
284
+ }
285
+ function er(t) {
286
+ return t.toLocaleDateString("en-US", { weekday: "short", month: "short", day: "numeric" });
287
+ }
288
+ const Zt = ({
289
+ value: t,
290
+ cancelLabel: n = "Cancel",
291
+ confirmLabel: a = "OK",
292
+ className: r,
293
+ onConfirm: o,
294
+ onCancel: s
295
+ }) => {
296
+ const l = t ?? /* @__PURE__ */ new Date(), [i, _] = I(l.getFullYear()), [h, c] = I(l.getMonth()), [p, u] = I(l), m = Xa(i, h), b = () => {
297
+ h === 0 ? (_((y) => y - 1), c(11)) : c((y) => y - 1);
298
+ }, g = () => {
299
+ h === 11 ? (_((y) => y + 1), c(0)) : c((y) => y + 1);
300
+ }, f = (y) => {
301
+ u(y.date), y.isCurrentMonth || (_(y.date.getFullYear()), c(y.date.getMonth()));
302
+ }, w = Array.from({ length: 6 }, (y, C) => m.slice(C * 7, C * 7 + 7));
303
+ return /* @__PURE__ */ d("div", { className: [Z.picker, r ?? ""].filter(Boolean).join(" "), children: [
304
+ /* @__PURE__ */ e("div", { className: Z.selectedDate, children: /* @__PURE__ */ e("span", { className: Z.selectedDateText, children: er(p) }) }),
305
+ /* @__PURE__ */ d("div", { className: Z.calendarControls, children: [
306
+ /* @__PURE__ */ d("button", { type: "button", className: Z.monthSelector, children: [
307
+ /* @__PURE__ */ d("span", { className: Z.monthLabel, children: [
308
+ Ja[h],
309
+ ", ",
310
+ i
311
+ ] }),
312
+ /* @__PURE__ */ e(B, { icon: qe, style: { width: 8, height: 8 }, "aria-hidden": !0 })
313
+ ] }),
314
+ /* @__PURE__ */ d("div", { className: Z.navigation, children: [
315
+ /* @__PURE__ */ e(
316
+ "button",
317
+ {
318
+ type: "button",
319
+ className: Z.navButton,
320
+ onClick: b,
321
+ "aria-label": "Previous month",
322
+ children: /* @__PURE__ */ e(B, { icon: pt, style: { width: 8, height: 8 }, "aria-hidden": !0 })
323
+ }
324
+ ),
325
+ /* @__PURE__ */ e(
326
+ "button",
327
+ {
328
+ type: "button",
329
+ className: Z.navButton,
330
+ onClick: g,
331
+ "aria-label": "Next month",
332
+ children: /* @__PURE__ */ e(B, { icon: We, style: { width: 8, height: 8 }, "aria-hidden": !0 })
333
+ }
334
+ )
335
+ ] })
336
+ ] }),
337
+ /* @__PURE__ */ d("div", { className: Z.calendar, children: [
338
+ /* @__PURE__ */ e("div", { className: Z.dayOfWeekRow, children: Za.map((y) => /* @__PURE__ */ e("span", { className: Z.dayOfWeek, children: y }, y)) }),
339
+ w.map((y, C) => /* @__PURE__ */ e("div", { className: Z.weekRow, children: y.map((j, P) => {
340
+ const W = Qa(j.date, p);
341
+ return /* @__PURE__ */ e(
342
+ "button",
343
+ {
344
+ type: "button",
345
+ className: [
346
+ Z.dayCell,
347
+ j.isCurrentMonth ? "" : Z.dayCellOutside,
348
+ W ? Z.dayCellSelected : ""
349
+ ].filter(Boolean).join(" "),
350
+ onClick: () => f(j),
351
+ "aria-label": j.date.toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" }),
352
+ "aria-pressed": W,
353
+ children: j.date.getDate()
354
+ },
355
+ P
356
+ );
357
+ }) }, C))
358
+ ] }),
359
+ /* @__PURE__ */ d("div", { className: Z.actions, children: [
360
+ /* @__PURE__ */ e(V, { variant: "brandPrimary", emphasis: "tertiary", onClick: s, children: n }),
361
+ /* @__PURE__ */ e(
362
+ V,
363
+ {
364
+ variant: "brandPrimary",
365
+ emphasis: "tertiary",
366
+ onClick: () => o == null ? void 0 : o(p),
367
+ children: a
368
+ }
369
+ )
370
+ ] })
371
+ ] });
372
+ };
373
+ Zt.displayName = "DatePicker";
374
+ const tr = "_menu_6ee9j_1", nr = {
375
+ menu: tr
376
+ }, Ne = M.forwardRef(
377
+ ({ children: t, className: n, ...a }, r) => {
378
+ const o = [nr.menu, n ?? ""].filter(Boolean).join(" ");
379
+ return /* @__PURE__ */ e("div", { ref: r, role: "menu", className: o, ...a, children: t });
380
+ }
381
+ );
382
+ Ne.displayName = "Menu";
383
+ const ar = "_menuItem_180cn_3", rr = "_selected_180cn_36", sr = "_label_180cn_58", or = "_danger_180cn_79", tt = {
384
+ menuItem: ar,
385
+ selected: rr,
386
+ label: sr,
387
+ danger: or
388
+ }, xe = M.forwardRef(
389
+ ({ label: t, leadingIcon: n, trailingIcon: a, selected: r = !1, variant: o = "default", disabled: s, className: l, ...i }, _) => {
390
+ const h = [
391
+ tt.menuItem,
392
+ r ? tt.selected : "",
393
+ o === "danger" ? tt.danger : "",
394
+ l ?? ""
395
+ ].filter(Boolean).join(" "), c = s ? "var(--icon-color-themeable-disabled)" : r ? "var(--icon-color-static-light)" : o === "danger" ? "var(--icon-color-static-state-error)" : "var(--icon-color-themeable-primary)";
396
+ return /* @__PURE__ */ d(
397
+ "button",
398
+ {
399
+ ref: _,
400
+ type: "button",
401
+ role: "menuitem",
402
+ className: h,
403
+ disabled: s,
404
+ "aria-selected": r,
405
+ ...i,
406
+ children: [
407
+ n && /* @__PURE__ */ e(
408
+ B,
409
+ {
410
+ icon: n,
411
+ style: { color: c, width: 14, height: 14, flexShrink: 0 },
412
+ "aria-hidden": !0
413
+ }
414
+ ),
415
+ /* @__PURE__ */ e("span", { className: tt.label, children: t }),
416
+ a && /* @__PURE__ */ e(
417
+ B,
418
+ {
419
+ icon: a,
420
+ style: { color: c, width: 14, height: 14, flexShrink: 0, marginLeft: "auto" },
421
+ "aria-hidden": !0
422
+ }
423
+ )
424
+ ]
425
+ }
426
+ );
427
+ }
428
+ );
429
+ xe.displayName = "MenuItem";
430
+ const lr = "_root_1g0hn_1", ir = "_label_1g0hn_10", cr = "_triggerWrapper_1g0hn_21", dr = "_trigger_1g0hn_21", _r = "_triggerOpen_1g0hn_54", pr = "_triggerError_1g0hn_59", hr = "_triggerDisabled_1g0hn_68", ur = "_triggerContent_1g0hn_75", mr = "_triggerText_1g0hn_84", br = "_placeholder_1g0hn_96", vr = "_value_1g0hn_100", fr = "_chevron_1g0hn_106", gr = "_chevronOpen_1g0hn_117", yr = "_menuWrapper_1g0hn_127", Nr = "_disabled_1g0hn_140", xr = "_errorText_1g0hn_146", $r = "_hintText_1g0hn_147", wr = "_required_1g0hn_162", K = {
431
+ root: lr,
432
+ label: ir,
433
+ triggerWrapper: cr,
434
+ trigger: dr,
435
+ triggerOpen: _r,
436
+ triggerError: pr,
437
+ triggerDisabled: hr,
438
+ triggerContent: ur,
439
+ triggerText: mr,
440
+ placeholder: br,
441
+ value: vr,
442
+ chevron: fr,
443
+ chevronOpen: gr,
444
+ menuWrapper: yr,
445
+ disabled: Nr,
446
+ errorText: xr,
447
+ hintText: $r,
448
+ required: wr
449
+ }, Jt = ({
450
+ label: t,
451
+ error: n,
452
+ hint: a,
453
+ leadingIcon: r,
454
+ options: o,
455
+ value: s,
456
+ placeholder: l = "Select an option",
457
+ disabled: i = !1,
458
+ required: _,
459
+ className: h,
460
+ onChange: c
461
+ }) => {
462
+ const p = ce(), u = n ? `${p}-error` : void 0, m = a ? `${p}-hint` : void 0, b = s !== void 0, [g, f] = I(), w = b ? s : g, y = o.find((T) => T.value === w), [C, j] = I(!1), P = A(null);
463
+ Y(() => {
464
+ if (!C) return;
465
+ const T = (he) => {
466
+ P.current && !P.current.contains(he.target) && j(!1);
467
+ };
468
+ return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
469
+ }, [C]);
470
+ const W = () => {
471
+ i || j((T) => !T);
472
+ }, ne = (T) => {
473
+ b || f(T), c == null || c(T), j(!1);
474
+ }, L = i ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", Q = [
475
+ K.trigger,
476
+ C ? K.triggerOpen : "",
477
+ n ? K.triggerError : "",
478
+ i ? K.triggerDisabled : ""
479
+ ].filter(Boolean).join(" "), H = [K.chevron, C ? K.chevronOpen : ""].filter(Boolean).join(" ");
480
+ return /* @__PURE__ */ d(
481
+ "div",
482
+ {
483
+ ref: P,
484
+ className: [K.root, i ? K.disabled : "", h ?? ""].filter(Boolean).join(" "),
485
+ children: [
486
+ t && /* @__PURE__ */ d("label", { htmlFor: p, className: K.label, children: [
487
+ t,
488
+ _ && /* @__PURE__ */ e("span", { className: K.required, "aria-hidden": !0, children: " *" })
489
+ ] }),
490
+ /* @__PURE__ */ d("div", { className: K.triggerWrapper, children: [
491
+ /* @__PURE__ */ d(
492
+ "button",
493
+ {
494
+ id: p,
495
+ type: "button",
496
+ className: Q,
497
+ disabled: i,
498
+ "aria-haspopup": "listbox",
499
+ "aria-expanded": C,
500
+ "aria-describedby": [u, m].filter(Boolean).join(" ") || void 0,
501
+ onClick: W,
502
+ children: [
503
+ /* @__PURE__ */ d("div", { className: K.triggerContent, children: [
504
+ ((y == null ? void 0 : y.icon) ?? r) && /* @__PURE__ */ e(z, { icon: (y == null ? void 0 : y.icon) ?? r, color: L }),
505
+ /* @__PURE__ */ e("span", { className: [K.triggerText, y ? K.value : K.placeholder].join(" "), children: y ? y.label : l })
506
+ ] }),
507
+ /* @__PURE__ */ e("span", { className: H, children: /* @__PURE__ */ e(z, { icon: qe, size: "xs" }) })
508
+ ]
509
+ }
510
+ ),
511
+ C && /* @__PURE__ */ e("div", { className: K.menuWrapper, children: /* @__PURE__ */ e(Ne, { role: "listbox", children: o.map((T) => /* @__PURE__ */ e(
512
+ xe,
513
+ {
514
+ label: T.label,
515
+ leadingIcon: T.icon,
516
+ selected: T.value === w,
517
+ disabled: T.disabled,
518
+ role: "option",
519
+ onClick: () => ne(T.value)
520
+ },
521
+ T.value
522
+ )) }) })
523
+ ] }),
524
+ n && /* @__PURE__ */ e("span", { id: u, className: K.errorText, role: "alert", children: n }),
525
+ a && !n && /* @__PURE__ */ e("span", { id: m, className: K.hintText, children: a })
526
+ ]
527
+ }
528
+ );
529
+ };
530
+ Jt.displayName = "SelectField";
531
+ const kr = "_root_lccwy_1", Cr = "_label_lccwy_10", Ir = "_inputWrapper_lccwy_21", Sr = "_wrapperDisabled_lccwy_36", jr = "_wrapperFocused_lccwy_40", Tr = "_wrapperError_lccwy_45", Br = "_input_lccwy_21", qr = "_suffix_lccwy_97", Er = "_stepper_lccwy_109", Dr = "_stepperBtn_lccwy_118", Pr = "_stepperDivider_lccwy_141", Or = "_errorIcon_lccwy_149", Mr = "_disabled_lccwy_155", Lr = "_errorText_lccwy_161", Wr = "_hintText_lccwy_162", zr = "_required_lccwy_177", J = {
532
+ root: kr,
533
+ label: Cr,
534
+ inputWrapper: Ir,
535
+ wrapperDisabled: Sr,
536
+ wrapperFocused: jr,
537
+ wrapperError: Tr,
538
+ input: Br,
539
+ suffix: qr,
540
+ stepper: Er,
541
+ stepperBtn: Dr,
542
+ stepperDivider: Pr,
543
+ errorIcon: Or,
544
+ disabled: Mr,
545
+ errorText: Lr,
546
+ hintText: Wr,
547
+ required: zr
548
+ }, Xt = M.forwardRef(
549
+ ({
550
+ label: t,
551
+ error: n,
552
+ hint: a,
553
+ leadingIcon: r,
554
+ suffix: o,
555
+ required: s,
556
+ value: l,
557
+ defaultValue: i,
558
+ min: _,
559
+ max: h,
560
+ step: c = 1,
561
+ placeholder: p,
562
+ disabled: u,
563
+ className: m,
564
+ onChange: b
565
+ }, g) => {
566
+ const f = ce(), w = n ? `${f}-error` : void 0, y = a ? `${f}-hint` : void 0, C = l !== void 0, [j, P] = I(i), W = C ? l : j, ne = A(null), [L, Q] = I(!1), H = (X) => {
567
+ C || P(X), b == null || b(X);
568
+ }, T = () => {
569
+ const ee = (W ?? 0) + c;
570
+ H(h !== void 0 ? Math.min(h, ee) : ee);
571
+ }, he = () => {
572
+ const ee = (W ?? 0) - c;
573
+ H(_ !== void 0 ? Math.max(_, ee) : ee);
574
+ }, ge = (X) => {
575
+ const ee = X.target.value;
576
+ if (ee === "") {
577
+ H(void 0);
578
+ return;
579
+ }
580
+ const x = parseFloat(ee);
581
+ isNaN(x) || H(x);
582
+ }, be = u ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", $e = [
583
+ J.inputWrapper,
584
+ L ? J.wrapperFocused : "",
585
+ n ? J.wrapperError : "",
586
+ u ? J.wrapperDisabled : ""
587
+ ].filter(Boolean).join(" "), ve = _ !== void 0 && (W ?? 0) <= _, we = h !== void 0 && (W ?? 0) >= h;
588
+ return /* @__PURE__ */ d("div", { className: [J.root, u ? J.disabled : "", m ?? ""].filter(Boolean).join(" "), children: [
589
+ t && /* @__PURE__ */ d("label", { htmlFor: f, className: J.label, children: [
590
+ t,
591
+ s && /* @__PURE__ */ e("span", { className: J.required, "aria-hidden": !0, children: " *" })
592
+ ] }),
593
+ /* @__PURE__ */ d("div", { className: $e, children: [
594
+ r && /* @__PURE__ */ e(z, { icon: r, color: be }),
595
+ /* @__PURE__ */ e(
596
+ "input",
597
+ {
598
+ ref: (X) => {
599
+ ne.current = X, typeof g == "function" ? g(X) : g && (g.current = X);
600
+ },
601
+ id: f,
602
+ type: "number",
603
+ className: J.input,
604
+ value: W ?? "",
605
+ placeholder: p,
606
+ min: _,
607
+ max: h,
608
+ step: c,
609
+ disabled: u,
610
+ "aria-invalid": !!n,
611
+ "aria-describedby": [w, y].filter(Boolean).join(" ") || void 0,
612
+ onChange: ge,
613
+ onFocus: () => Q(!0),
614
+ onBlur: () => Q(!1)
615
+ }
616
+ ),
617
+ o && W !== void 0 && /* @__PURE__ */ e("span", { className: J.suffix, children: o }),
618
+ n ? /* @__PURE__ */ e(
619
+ z,
620
+ {
621
+ icon: Be,
622
+ className: J.errorIcon,
623
+ color: "var(--icon-color-static-state-error)"
624
+ }
625
+ ) : /* @__PURE__ */ d("div", { className: J.stepper, children: [
626
+ /* @__PURE__ */ e(
627
+ "button",
628
+ {
629
+ type: "button",
630
+ className: J.stepperBtn,
631
+ onClick: T,
632
+ disabled: u || we,
633
+ "aria-label": "Increment",
634
+ tabIndex: -1,
635
+ children: /* @__PURE__ */ e(B, { icon: zt, style: { width: 10, height: 10 }, "aria-hidden": !0 })
636
+ }
637
+ ),
638
+ /* @__PURE__ */ e("div", { className: J.stepperDivider }),
639
+ /* @__PURE__ */ e(
640
+ "button",
641
+ {
642
+ type: "button",
643
+ className: J.stepperBtn,
644
+ onClick: he,
645
+ disabled: u || ve,
646
+ "aria-label": "Decrement",
647
+ tabIndex: -1,
648
+ children: /* @__PURE__ */ e(B, { icon: qe, style: { width: 10, height: 10 }, "aria-hidden": !0 })
649
+ }
650
+ )
651
+ ] })
652
+ ] }),
653
+ n && /* @__PURE__ */ e("span", { id: w, className: J.errorText, role: "alert", children: n }),
654
+ a && !n && /* @__PURE__ */ e("span", { id: y, className: J.hintText, children: a })
655
+ ] });
656
+ }
657
+ );
658
+ Xt.displayName = "NumberField";
659
+ const Fr = "_pagination_pqktq_3", Ar = "_pageSizeSection_pqktq_12", Gr = "_label_pqktq_19", Rr = "_pageSizeSelect_pqktq_28", Ur = "_divider_pqktq_34", Hr = "_rangeText_pqktq_44", Vr = "_navSection_pqktq_55", Yr = "_pageInputSection_pqktq_64", Kr = "_pageInput_pqktq_64", Zr = "_ofText_pqktq_75", Jr = "_simplePagination_pqktq_85", Xr = "_simplePageCount_pqktq_91", ie = {
660
+ pagination: Fr,
661
+ pageSizeSection: Ar,
662
+ label: Gr,
663
+ pageSizeSelect: Rr,
664
+ divider: Ur,
665
+ rangeText: Hr,
666
+ navSection: Vr,
667
+ pageInputSection: Yr,
668
+ pageInput: Kr,
669
+ ofText: Zr,
670
+ simplePagination: Jr,
671
+ simplePageCount: Xr
672
+ }, Qr = [10, 25, 50, 100, 250, 500], It = ({
673
+ totalItems: t,
674
+ page: n,
675
+ pageSize: a,
676
+ onPageChange: r,
677
+ onPageSizeChange: o,
678
+ pageSizeOptions: s = Qr,
679
+ className: l
680
+ }) => {
681
+ const i = Math.max(1, Math.ceil(t / a)), _ = t === 0 ? 0 : (n - 1) * a + 1, h = Math.min(n * a, t), c = s.map((p) => ({
682
+ value: String(p),
683
+ label: String(p)
684
+ }));
685
+ return /* @__PURE__ */ d("div", { className: [ie.pagination, l ?? ""].filter(Boolean).join(" "), children: [
686
+ /* @__PURE__ */ d("div", { className: ie.pageSizeSection, children: [
687
+ /* @__PURE__ */ e("span", { className: ie.label, children: "Items per page:" }),
688
+ /* @__PURE__ */ e(
689
+ Jt,
690
+ {
691
+ options: c,
692
+ value: String(a),
693
+ className: ie.pageSizeSelect,
694
+ onChange: (p) => {
695
+ o(Number(p)), r(1);
696
+ }
697
+ }
698
+ )
699
+ ] }),
700
+ /* @__PURE__ */ e("span", { className: ie.divider, "aria-hidden": !0 }),
701
+ /* @__PURE__ */ d("span", { className: ie.rangeText, children: [
702
+ _,
703
+ "–",
704
+ h,
705
+ " of ",
706
+ t,
707
+ " items"
708
+ ] }),
709
+ /* @__PURE__ */ e("span", { className: ie.divider, "aria-hidden": !0 }),
710
+ /* @__PURE__ */ d("div", { className: ie.navSection, children: [
711
+ /* @__PURE__ */ e(
712
+ V,
713
+ {
714
+ variant: "brandPrimary",
715
+ emphasis: "tertiary",
716
+ disabled: n <= 1,
717
+ onClick: () => r(n - 1),
718
+ "aria-label": "Previous page",
719
+ leadingIcon: /* @__PURE__ */ e(B, { icon: pt, style: { width: 10, height: 10 }, "aria-hidden": !0 }),
720
+ children: "Back"
721
+ }
722
+ ),
723
+ /* @__PURE__ */ d("div", { className: ie.pageInputSection, children: [
724
+ /* @__PURE__ */ e(
725
+ Xt,
726
+ {
727
+ value: n,
728
+ min: 1,
729
+ max: i,
730
+ className: ie.pageInput,
731
+ onChange: (p) => {
732
+ p !== void 0 && p >= 1 && p <= i && r(p);
733
+ }
734
+ }
735
+ ),
736
+ /* @__PURE__ */ d("span", { className: ie.ofText, children: [
737
+ "of ",
738
+ i
739
+ ] })
740
+ ] }),
741
+ /* @__PURE__ */ e(
742
+ V,
743
+ {
744
+ variant: "brandPrimary",
745
+ emphasis: "tertiary",
746
+ disabled: n >= i,
747
+ onClick: () => r(n + 1),
748
+ "aria-label": "Next page",
749
+ trailingIcon: /* @__PURE__ */ e(B, { icon: We, style: { width: 10, height: 10 }, "aria-hidden": !0 }),
750
+ children: "Next"
751
+ }
752
+ )
753
+ ] })
754
+ ] });
755
+ };
756
+ It.displayName = "Pagination";
757
+ const Qt = ({
758
+ page: t,
759
+ totalPages: n,
760
+ onPageChange: a,
761
+ className: r
762
+ }) => /* @__PURE__ */ d("div", { className: [ie.simplePagination, r ?? ""].filter(Boolean).join(" "), children: [
763
+ /* @__PURE__ */ e(
764
+ V,
765
+ {
766
+ variant: "brandPrimary",
767
+ emphasis: "tertiary",
768
+ disabled: t <= 1,
769
+ onClick: () => a(t - 1),
770
+ "aria-label": "Previous page",
771
+ leadingIcon: /* @__PURE__ */ e(B, { icon: pt, style: { width: 10, height: 10 }, "aria-hidden": !0 }),
772
+ children: "Back"
773
+ }
774
+ ),
775
+ /* @__PURE__ */ d("span", { className: ie.simplePageCount, "aria-live": "polite", children: [
776
+ t,
777
+ " of ",
778
+ n
779
+ ] }),
780
+ /* @__PURE__ */ e(
781
+ V,
782
+ {
783
+ variant: "brandPrimary",
784
+ emphasis: "tertiary",
785
+ disabled: t >= n,
786
+ onClick: () => a(t + 1),
787
+ "aria-label": "Next page",
788
+ trailingIcon: /* @__PURE__ */ e(B, { icon: We, style: { width: 10, height: 10 }, "aria-hidden": !0 }),
789
+ children: "Next"
790
+ }
791
+ )
792
+ ] });
793
+ Qt.displayName = "SimplePagination";
794
+ const es = "_skeleton_1lh7k_8", ts = "_bar_1lh7k_15", ns = "_circle_1lh7k_19", as = "_shimmer_1lh7k_25", ht = {
795
+ skeleton: es,
796
+ bar: ts,
797
+ circle: ns,
798
+ shimmer: as,
799
+ "skeleton-shimmer": "_skeleton-shimmer_1lh7k_1"
800
+ }, Je = ({
801
+ width: t = "100%",
802
+ height: n = 24,
803
+ shape: a = "bar",
804
+ className: r
805
+ }) => {
806
+ const o = a === "circle" ? n : t, s = {
807
+ width: typeof o == "number" ? `${o}px` : o,
808
+ height: `${n}px`
809
+ };
810
+ return /* @__PURE__ */ e(
811
+ "div",
812
+ {
813
+ className: [ht.skeleton, ht[a], r ?? ""].filter(Boolean).join(" "),
814
+ style: s,
815
+ "aria-hidden": !0,
816
+ children: /* @__PURE__ */ e("div", { className: ht.shimmer })
817
+ }
818
+ );
819
+ };
820
+ Je.displayName = "Skeleton";
821
+ const rs = "_track_gkwaj_3", ss = "_checked_gkwaj_20", os = "_disabled_gkwaj_26", ls = "_knob_gkwaj_39", is = "_input_gkwaj_45", Ae = {
822
+ track: rs,
823
+ checked: ss,
824
+ disabled: os,
825
+ knob: ls,
826
+ input: is
827
+ }, St = M.forwardRef(
828
+ ({ checked: t, defaultChecked: n, disabled: a, onChange: r, className: o, id: s, ...l }, i) => {
829
+ const _ = t !== void 0, [h, c] = I(_ ? t : n ?? !1), p = A(null);
830
+ Y(() => {
831
+ _ && c(t);
832
+ }, [t, _]);
833
+ const u = (b) => {
834
+ _ || c(b.target.checked), r == null || r(b);
835
+ }, m = [
836
+ Ae.track,
837
+ h ? Ae.checked : "",
838
+ a ? Ae.disabled : "",
839
+ o ?? ""
840
+ ].filter(Boolean).join(" ");
841
+ return /* @__PURE__ */ d("span", { className: m, children: [
842
+ /* @__PURE__ */ e(
843
+ "input",
844
+ {
845
+ ref: i ?? p,
846
+ type: "checkbox",
847
+ role: "switch",
848
+ id: s,
849
+ className: Ae.input,
850
+ disabled: a,
851
+ checked: _ ? t : h,
852
+ onChange: u,
853
+ "aria-checked": _ ? t : h,
854
+ ...l
855
+ }
856
+ ),
857
+ /* @__PURE__ */ e("span", { className: Ae.knob, "aria-hidden": "true" })
858
+ ] });
859
+ }
860
+ );
861
+ St.displayName = "Switch";
862
+ const cs = "_wrapper_pp3jm_3", ds = "_actionBar_pp3jm_14", _s = "_searchWrapper_pp3jm_22", ps = "_filterWrapper_pp3jm_28", hs = "_searchIcon_pp3jm_32", us = "_searchInput_pp3jm_43", ms = "_tableScroll_pp3jm_67", bs = "_table_pp3jm_67", vs = "_headerRow_pp3jm_80", fs = "_th_pp3jm_84", gs = "_thCheckbox_pp3jm_91", ys = "_thOverflow_pp3jm_92", Ns = "_thSortable_pp3jm_99", xs = "_thLabel_pp3jm_103", $s = "_thContent_pp3jm_107", ws = "_sortIcon_pp3jm_121", ks = "_sortIconActive_pp3jm_128", Cs = "_row_pp3jm_134", Is = "_rowSelected_pp3jm_147", Ss = "_td_pp3jm_153", js = "_tdCheckbox_pp3jm_158", Ts = "_tdOverflow_pp3jm_159", Bs = "_tdCenter_pp3jm_165", qs = "_tdEditable_pp3jm_171", Es = "_cellText_pp3jm_178", Ds = "_userCell_pp3jm_188", Ps = "_userName_pp3jm_194", Os = "_cellInput_pp3jm_204", Ms = "_cellSelect_pp3jm_243", Ls = "_dateCellWrapper_pp3jm_274", Ws = "_dateCellTrigger_pp3jm_278", zs = "_cellPlaceholder_pp3jm_307", Fs = "_dateIcon_pp3jm_311", As = "_datepickerPopover_pp3jm_318", Gs = "_overflowContainer_pp3jm_327", Rs = "_overflowMenu_pp3jm_332", Us = "_emptyCell_pp3jm_342", Hs = "_emptyState_pp3jm_346", Vs = "_emptyIcon_pp3jm_355", Ys = "_emptyTitle_pp3jm_362", Ks = "_emptySubtitle_pp3jm_369", Zs = "_paginationRow_pp3jm_378", $ = {
863
+ wrapper: cs,
864
+ actionBar: ds,
865
+ searchWrapper: _s,
866
+ filterWrapper: ps,
867
+ searchIcon: hs,
868
+ searchInput: us,
869
+ tableScroll: ms,
870
+ table: bs,
871
+ headerRow: vs,
872
+ th: fs,
873
+ thCheckbox: gs,
874
+ thOverflow: ys,
875
+ thSortable: Ns,
876
+ thLabel: xs,
877
+ thContent: $s,
878
+ sortIcon: ws,
879
+ sortIconActive: ks,
880
+ row: Cs,
881
+ rowSelected: Is,
882
+ td: Ss,
883
+ tdCheckbox: js,
884
+ tdOverflow: Ts,
885
+ tdCenter: Bs,
886
+ tdEditable: qs,
887
+ cellText: Es,
888
+ userCell: Ds,
889
+ userName: Ps,
890
+ cellInput: Os,
891
+ cellSelect: Ms,
892
+ dateCellWrapper: Ls,
893
+ dateCellTrigger: Ws,
894
+ cellPlaceholder: zs,
895
+ dateIcon: Fs,
896
+ datepickerPopover: As,
897
+ overflowContainer: Gs,
898
+ overflowMenu: Rs,
899
+ emptyCell: Us,
900
+ emptyState: Hs,
901
+ emptyIcon: Vs,
902
+ emptyTitle: Ys,
903
+ emptySubtitle: Ks,
904
+ paginationRow: Zs
905
+ };
906
+ function ye(t, n) {
907
+ return typeof n == "function" ? n(t) : t[n];
908
+ }
909
+ function Js(t) {
910
+ return t.toLocaleDateString();
911
+ }
912
+ function Xs({
913
+ row: t,
914
+ items: n,
915
+ rowId: a,
916
+ openId: r,
917
+ onOpen: o,
918
+ onClose: s
919
+ }) {
920
+ const l = r === a, i = A(null), _ = n(t);
921
+ return Y(() => {
922
+ if (!l) return;
923
+ const h = (c) => {
924
+ var p;
925
+ (p = i.current) != null && p.contains(c.target) || s();
926
+ };
927
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
928
+ }, [l, s]), /* @__PURE__ */ d("div", { ref: i, className: $.overflowContainer, children: [
929
+ /* @__PURE__ */ e(
930
+ U,
931
+ {
932
+ icon: Ht,
933
+ variant: "brandPrimary",
934
+ "aria-label": "Row actions",
935
+ onClick: () => l ? s() : o(a)
936
+ }
937
+ ),
938
+ l && /* @__PURE__ */ e("div", { className: $.overflowMenu, children: /* @__PURE__ */ e(Ne, { children: _.map((h, c) => /* @__PURE__ */ e(
939
+ xe,
940
+ {
941
+ label: h.label,
942
+ leadingIcon: h.icon,
943
+ disabled: h.disabled,
944
+ onClick: () => {
945
+ h.onClick(), s();
946
+ }
947
+ },
948
+ c
949
+ )) }) })
950
+ ] });
951
+ }
952
+ function Qs({
953
+ row: t,
954
+ col: n,
955
+ cellId: a,
956
+ openCellId: r,
957
+ onOpen: o,
958
+ onClose: s,
959
+ onRowChange: l,
960
+ rowId: i
961
+ }) {
962
+ const _ = r === a, h = A(null), c = ye(t, n.accessor), p = n.formatDate ?? Js;
963
+ return Y(() => {
964
+ if (!_) return;
965
+ const u = (m) => {
966
+ var b;
967
+ (b = h.current) != null && b.contains(m.target) || s();
968
+ };
969
+ return document.addEventListener("mousedown", u), () => document.removeEventListener("mousedown", u);
970
+ }, [_, s]), /* @__PURE__ */ d("div", { ref: h, className: $.dateCellWrapper, children: [
971
+ /* @__PURE__ */ d(
972
+ "button",
973
+ {
974
+ type: "button",
975
+ className: $.dateCellTrigger,
976
+ onClick: () => _ ? s() : o(a),
977
+ children: [
978
+ /* @__PURE__ */ e("span", { children: c ? p(c) : /* @__PURE__ */ e("span", { className: $.cellPlaceholder, children: "Select date" }) }),
979
+ /* @__PURE__ */ e(B, { icon: Vt, className: $.dateIcon, "aria-hidden": !0 })
980
+ ]
981
+ }
982
+ ),
983
+ _ && /* @__PURE__ */ e("div", { className: $.datepickerPopover, children: /* @__PURE__ */ e(
984
+ Zt,
985
+ {
986
+ value: c,
987
+ onConfirm: (u) => {
988
+ l == null || l(i, n.setter(t, u)), s();
989
+ },
990
+ onCancel: s
991
+ }
992
+ ) })
993
+ ] });
994
+ }
995
+ function eo({
996
+ columns: t,
997
+ data: n,
998
+ getRowId: a,
999
+ onRowChange: r,
1000
+ loading: o = !1,
1001
+ loadingRowCount: s = 8,
1002
+ emptyTitle: l = "No Results Found",
1003
+ emptySubtitle: i = "Adjust your filters to check for any results.",
1004
+ searchValue: _ = "",
1005
+ onSearchChange: h,
1006
+ onFilterClick: c,
1007
+ selectedRows: p,
1008
+ onSelectionChange: u,
1009
+ sortKey: m,
1010
+ sortDirection: b,
1011
+ onSortChange: g,
1012
+ page: f,
1013
+ pageSize: w,
1014
+ totalItems: y,
1015
+ onPageChange: C,
1016
+ onPageSizeChange: j,
1017
+ pageSizeOptions: P,
1018
+ className: W
1019
+ }) {
1020
+ const [ne, L] = I(null), [Q, H] = I(null), T = gt(() => L(null), []), he = gt(() => H(null), []), ge = t.some((v) => v.type === "row-select"), be = n.map(a), $e = (p == null ? void 0 : p.size) ?? 0, ve = be.length > 0 && be.every((v) => p == null ? void 0 : p.has(v)), we = $e > 0 && !ve, X = () => {
1021
+ u && u(ve ? /* @__PURE__ */ new Set() : new Set(be));
1022
+ }, ee = (v, q) => {
1023
+ if (!u) return;
1024
+ const O = new Set(p ?? []);
1025
+ q ? O.add(v) : O.delete(v), u(O);
1026
+ }, x = (v) => {
1027
+ if (!v.sortable || !g) return;
1028
+ const q = m === v.key && b === "asc" ? "desc" : "asc";
1029
+ g(v.key, q);
1030
+ }, D = (v) => {
1031
+ const q = v.width ? { width: typeof v.width == "number" ? `${v.width}px` : v.width } : {};
1032
+ if (v.type === "row-select")
1033
+ return /* @__PURE__ */ e("th", { className: `${$.th} ${$.thCheckbox}`, style: q, children: ge && /* @__PURE__ */ e(
1034
+ Le,
1035
+ {
1036
+ checked: ve,
1037
+ indeterminate: we,
1038
+ onChange: X
1039
+ }
1040
+ ) }, "row-select");
1041
+ if (v.type === "overflow")
1042
+ return /* @__PURE__ */ e("th", { className: `${$.th} ${$.thOverflow}`, style: q }, v.key);
1043
+ const O = m === v.key, E = O ? b === "asc" ? Gt : Rt : Ut;
1044
+ return /* @__PURE__ */ e(
1045
+ "th",
1046
+ {
1047
+ className: [$.th, v.sortable ? $.thSortable : ""].filter(Boolean).join(" "),
1048
+ style: q,
1049
+ onClick: v.sortable ? () => x(v) : void 0,
1050
+ "aria-sort": O ? b === "asc" ? "ascending" : "descending" : void 0,
1051
+ children: /* @__PURE__ */ d("span", { className: $.thContent, children: [
1052
+ /* @__PURE__ */ e("span", { className: $.thLabel, children: v.header ?? "" }),
1053
+ v.sortable && /* @__PURE__ */ e(
1054
+ B,
1055
+ {
1056
+ icon: E,
1057
+ className: [$.sortIcon, O ? $.sortIconActive : ""].filter(Boolean).join(" "),
1058
+ "aria-hidden": !0
1059
+ }
1060
+ )
1061
+ ] })
1062
+ },
1063
+ v.key
1064
+ );
1065
+ }, N = (v, q, O) => {
1066
+ switch (v.type) {
1067
+ case "text": {
1068
+ const E = ye(q, v.accessor);
1069
+ return /* @__PURE__ */ e(
1070
+ "input",
1071
+ {
1072
+ type: "text",
1073
+ className: $.cellInput,
1074
+ value: E ?? "",
1075
+ placeholder: "—",
1076
+ onChange: (G) => r == null ? void 0 : r(O, v.setter(q, G.target.value))
1077
+ }
1078
+ );
1079
+ }
1080
+ case "number": {
1081
+ const E = ye(q, v.accessor);
1082
+ return /* @__PURE__ */ e(
1083
+ "input",
1084
+ {
1085
+ type: "number",
1086
+ className: $.cellInput,
1087
+ value: E ?? "",
1088
+ placeholder: "—",
1089
+ min: v.min,
1090
+ max: v.max,
1091
+ step: v.step ?? 1,
1092
+ onChange: (G) => {
1093
+ const Qe = G.target.value === "" ? void 0 : Number(G.target.value);
1094
+ r == null || r(O, v.setter(q, Qe));
1095
+ }
1096
+ }
1097
+ );
1098
+ }
1099
+ case "date": {
1100
+ const E = `${O}-${v.key}`;
1101
+ return /* @__PURE__ */ e(
1102
+ Qs,
1103
+ {
1104
+ row: q,
1105
+ col: v,
1106
+ cellId: E,
1107
+ openCellId: Q,
1108
+ onOpen: H,
1109
+ onClose: he,
1110
+ onRowChange: r,
1111
+ rowId: O
1112
+ }
1113
+ );
1114
+ }
1115
+ case "select": {
1116
+ const E = ye(q, v.accessor);
1117
+ return /* @__PURE__ */ d(
1118
+ "select",
1119
+ {
1120
+ className: $.cellSelect,
1121
+ value: E ?? "",
1122
+ onChange: (G) => r == null ? void 0 : r(O, v.setter(q, G.target.value)),
1123
+ children: [
1124
+ /* @__PURE__ */ e("option", { value: "", disabled: !0, children: "—" }),
1125
+ v.options.map((G) => /* @__PURE__ */ e("option", { value: G.value, children: G.label }, G.value))
1126
+ ]
1127
+ }
1128
+ );
1129
+ }
1130
+ case "checkbox": {
1131
+ const E = ye(q, v.accessor);
1132
+ return /* @__PURE__ */ e(
1133
+ Le,
1134
+ {
1135
+ checked: E ?? !1,
1136
+ onChange: (G) => r == null ? void 0 : r(O, v.setter(q, G.target.checked))
1137
+ }
1138
+ );
1139
+ }
1140
+ case "switch": {
1141
+ const E = ye(q, v.accessor);
1142
+ return /* @__PURE__ */ e(
1143
+ St,
1144
+ {
1145
+ checked: E ?? !1,
1146
+ onChange: (G) => r == null ? void 0 : r(O, v.setter(q, G.target.checked))
1147
+ }
1148
+ );
1149
+ }
1150
+ case "overflow":
1151
+ return /* @__PURE__ */ e(
1152
+ Xs,
1153
+ {
1154
+ row: q,
1155
+ items: v.items,
1156
+ rowId: O,
1157
+ openId: ne,
1158
+ onOpen: L,
1159
+ onClose: T
1160
+ }
1161
+ );
1162
+ case "text-readonly": {
1163
+ const E = ye(q, v.accessor);
1164
+ return /* @__PURE__ */ e("span", { className: $.cellText, children: String(E ?? "") });
1165
+ }
1166
+ case "user": {
1167
+ const E = ye(q, v.accessor);
1168
+ return /* @__PURE__ */ d("div", { className: $.userCell, children: [
1169
+ /* @__PURE__ */ e(
1170
+ ze,
1171
+ {
1172
+ type: E.avatarSrc ? "image" : "initials",
1173
+ size: "small",
1174
+ initials: E.initials ?? E.name.slice(0, 2).toUpperCase(),
1175
+ src: E.avatarSrc,
1176
+ alt: E.name
1177
+ }
1178
+ ),
1179
+ /* @__PURE__ */ e("span", { className: $.userName, children: E.name })
1180
+ ] });
1181
+ }
1182
+ case "row-select":
1183
+ return /* @__PURE__ */ e(
1184
+ Le,
1185
+ {
1186
+ checked: (p == null ? void 0 : p.has(O)) ?? !1,
1187
+ onChange: (E) => ee(O, E.target.checked)
1188
+ }
1189
+ );
1190
+ }
1191
+ }, k = (v) => v.type === "row-select" ? `${$.td} ${$.tdCheckbox}` : v.type === "overflow" ? `${$.td} ${$.tdOverflow}` : v.type === "checkbox" || v.type === "switch" ? `${$.td} ${$.tdCenter}` : v.type === "text" || v.type === "number" || v.type === "select" || v.type === "date" ? `${$.td} ${$.tdEditable}` : $.td, fe = (v) => v.type === "row-select" || v.type === "overflow" ? null : v.type === "checkbox" || v.type === "switch" ? /* @__PURE__ */ e(Je, { height: 20, width: 36 }) : v.type === "user" ? /* @__PURE__ */ e(Je, { height: 16, width: 120 }) : /* @__PURE__ */ e(Je, { height: 16, width: "70%" });
1192
+ return /* @__PURE__ */ d("div", { className: [$.wrapper, W ?? ""].filter(Boolean).join(" "), children: [
1193
+ (h || c) && /* @__PURE__ */ d("div", { className: $.actionBar, children: [
1194
+ h && /* @__PURE__ */ d("div", { className: $.searchWrapper, children: [
1195
+ /* @__PURE__ */ e(B, { icon: Ct, className: $.searchIcon, "aria-hidden": !0 }),
1196
+ /* @__PURE__ */ e(
1197
+ "input",
1198
+ {
1199
+ type: "search",
1200
+ className: $.searchInput,
1201
+ placeholder: "Search",
1202
+ value: _,
1203
+ onChange: (v) => h(v.target.value),
1204
+ "aria-label": "Search grid"
1205
+ }
1206
+ )
1207
+ ] }),
1208
+ c && /* @__PURE__ */ e("div", { className: $.filterWrapper, children: /* @__PURE__ */ e(U, { icon: Ft, variant: "brandPrimary", "aria-label": "Filter", onClick: c }) })
1209
+ ] }),
1210
+ /* @__PURE__ */ e("div", { className: $.tableScroll, children: /* @__PURE__ */ d("table", { className: $.table, children: [
1211
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: $.headerRow, children: t.map(D) }) }),
1212
+ /* @__PURE__ */ e("tbody", { children: o ? Array.from({ length: s }).map((v, q) => /* @__PURE__ */ e("tr", { className: $.row, children: t.map((O) => /* @__PURE__ */ e("td", { className: k(O), children: fe(O) }, O.key)) }, q)) : n.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: $.emptyCell, children: /* @__PURE__ */ d("div", { className: $.emptyState, children: [
1213
+ /* @__PURE__ */ e(B, { icon: At, className: $.emptyIcon, "aria-hidden": !0 }),
1214
+ /* @__PURE__ */ e("span", { className: $.emptyTitle, children: l }),
1215
+ /* @__PURE__ */ e("span", { className: $.emptySubtitle, children: i })
1216
+ ] }) }) }) : n.map((v) => {
1217
+ const q = a(v), O = (p == null ? void 0 : p.has(q)) ?? !1;
1218
+ return /* @__PURE__ */ e(
1219
+ "tr",
1220
+ {
1221
+ className: [$.row, O ? $.rowSelected : ""].filter(Boolean).join(" "),
1222
+ children: t.map((E) => /* @__PURE__ */ e("td", { className: k(E), children: N(E, v, q) }, E.key))
1223
+ },
1224
+ q
1225
+ );
1226
+ }) })
1227
+ ] }) }),
1228
+ /* @__PURE__ */ e("div", { className: $.paginationRow, children: /* @__PURE__ */ e(
1229
+ It,
1230
+ {
1231
+ totalItems: y,
1232
+ page: f,
1233
+ pageSize: w,
1234
+ onPageChange: C,
1235
+ onPageSizeChange: j,
1236
+ pageSizeOptions: P
1237
+ }
1238
+ ) })
1239
+ ] });
1240
+ }
1241
+ eo.displayName = "DataGrid";
1242
+ const to = "_root_1p4n1_1", no = "_info_1p4n1_7", ao = "_name_1p4n1_15", ro = "_userId_1p4n1_27", nt = {
1243
+ root: to,
1244
+ info: no,
1245
+ name: ao,
1246
+ userId: ro
1247
+ }, so = ({
1248
+ name: t,
1249
+ userId: n,
1250
+ avatarType: a = "initials",
1251
+ avatarSrc: r,
1252
+ avatarInitials: o,
1253
+ avatarIcon: s,
1254
+ className: l
1255
+ }) => {
1256
+ const i = [nt.root, l].filter(Boolean).join(" ");
1257
+ return /* @__PURE__ */ d("div", { className: i, children: [
1258
+ /* @__PURE__ */ e(
1259
+ ze,
1260
+ {
1261
+ type: a,
1262
+ size: "default",
1263
+ src: r,
1264
+ initials: o,
1265
+ icon: s,
1266
+ alt: t
1267
+ }
1268
+ ),
1269
+ /* @__PURE__ */ d("div", { className: nt.info, children: [
1270
+ /* @__PURE__ */ e("span", { className: nt.name, children: t }),
1271
+ /* @__PURE__ */ e("span", { className: nt.userId, children: n })
1272
+ ] })
1273
+ ] });
1274
+ };
1275
+ so.displayName = "UserIdentificationTag";
1276
+ const oo = "_buttonGroup_1hzt0_3", lo = "_item_1hzt0_11", io = "_brandPrimary_1hzt0_62", co = "_primary_1hzt0_62", _o = "_secondary_1hzt0_72", po = "_tertiary_1hzt0_82", ho = "_brandSecondary_1hzt0_93", uo = "_neutral_1hzt0_124", at = {
1277
+ buttonGroup: oo,
1278
+ item: lo,
1279
+ brandPrimary: io,
1280
+ primary: co,
1281
+ secondary: _o,
1282
+ tertiary: po,
1283
+ brandSecondary: ho,
1284
+ neutral: uo
1285
+ }, mo = ({
1286
+ items: t,
1287
+ variant: n = "brandPrimary",
1288
+ emphasis: a = "primary",
1289
+ className: r
1290
+ }) => /* @__PURE__ */ e(
1291
+ "div",
1292
+ {
1293
+ className: [at.buttonGroup, r ?? ""].filter(Boolean).join(" "),
1294
+ role: "group",
1295
+ children: t.map((o, s) => /* @__PURE__ */ e(
1296
+ "button",
1297
+ {
1298
+ type: "button",
1299
+ disabled: o.disabled,
1300
+ onClick: o.onClick,
1301
+ className: [
1302
+ at.item,
1303
+ at[n],
1304
+ at[a]
1305
+ ].join(" "),
1306
+ children: o.label
1307
+ },
1308
+ s
1309
+ ))
1310
+ }
1311
+ );
1312
+ mo.displayName = "ButtonGroup";
1313
+ const bo = "_splitButton_1kstx_3", vo = "_btn_1kstx_12", fo = "_main_1kstx_55", go = "_chevron_1kstx_62", yo = "_dropdown_1kstx_70", No = "_brandPrimary_1kstx_79", xo = "_primary_1kstx_79", $o = "_secondary_1kstx_89", wo = "_tertiary_1kstx_99", ko = "_brandSecondary_1kstx_110", Co = "_neutral_1kstx_141", Ce = {
1314
+ splitButton: bo,
1315
+ btn: vo,
1316
+ main: fo,
1317
+ chevron: go,
1318
+ dropdown: yo,
1319
+ brandPrimary: No,
1320
+ primary: xo,
1321
+ secondary: $o,
1322
+ tertiary: wo,
1323
+ brandSecondary: ko,
1324
+ neutral: Co
1325
+ }, Io = ({
1326
+ label: t,
1327
+ onClick: n,
1328
+ items: a,
1329
+ variant: r = "brandPrimary",
1330
+ emphasis: o = "primary",
1331
+ disabled: s = !1,
1332
+ className: l
1333
+ }) => {
1334
+ const [i, _] = I(!1), h = A(null);
1335
+ Y(() => {
1336
+ if (!i) return;
1337
+ const p = (m) => {
1338
+ h.current && !h.current.contains(m.target) && _(!1);
1339
+ }, u = (m) => {
1340
+ m.key === "Escape" && _(!1);
1341
+ };
1342
+ return document.addEventListener("mousedown", p), document.addEventListener("keydown", u), () => {
1343
+ document.removeEventListener("mousedown", p), document.removeEventListener("keydown", u);
1344
+ };
1345
+ }, [i]);
1346
+ const c = [Ce.btn, Ce[r], Ce[o]].join(" ");
1347
+ return /* @__PURE__ */ d(
1348
+ "div",
1349
+ {
1350
+ ref: h,
1351
+ className: [Ce.splitButton, l ?? ""].filter(Boolean).join(" "),
1352
+ children: [
1353
+ /* @__PURE__ */ e(
1354
+ "button",
1355
+ {
1356
+ type: "button",
1357
+ disabled: s,
1358
+ onClick: n,
1359
+ className: [c, Ce.main].join(" "),
1360
+ children: t
1361
+ }
1362
+ ),
1363
+ /* @__PURE__ */ e(
1364
+ "button",
1365
+ {
1366
+ type: "button",
1367
+ disabled: s,
1368
+ onClick: () => _((p) => !p),
1369
+ "aria-haspopup": "menu",
1370
+ "aria-expanded": i,
1371
+ className: [c, Ce.chevron].join(" "),
1372
+ children: /* @__PURE__ */ e(
1373
+ B,
1374
+ {
1375
+ icon: qe,
1376
+ style: { width: 12, height: 12 },
1377
+ "aria-hidden": !0
1378
+ }
1379
+ )
1380
+ }
1381
+ ),
1382
+ i && /* @__PURE__ */ e("div", { className: Ce.dropdown, children: /* @__PURE__ */ e(Ne, { children: a.map((p, u) => /* @__PURE__ */ e(
1383
+ xe,
1384
+ {
1385
+ label: p.label,
1386
+ disabled: p.disabled,
1387
+ onClick: () => {
1388
+ var m;
1389
+ (m = p.onClick) == null || m.call(p), _(!1);
1390
+ }
1391
+ },
1392
+ u
1393
+ )) }) })
1394
+ ]
1395
+ }
1396
+ );
1397
+ };
1398
+ Io.displayName = "SplitButton";
1399
+ const So = "_wrapper_755pw_1", jo = "_tooltip_755pw_6", To = "_top_755pw_30", Bo = "_visible_755pw_38", qo = "_text_755pw_43", Ge = {
1400
+ wrapper: So,
1401
+ tooltip: jo,
1402
+ top: To,
1403
+ visible: Bo,
1404
+ text: qo
1405
+ }, yt = ({ content: t, placement: n = "top", children: a }) => {
1406
+ const [r, o] = I(!1), [s, l] = I({ top: 0, left: 0 }), i = A(null), _ = ce(), h = (m) => {
1407
+ if (n === "right" && i.current) {
1408
+ const b = i.current.getBoundingClientRect();
1409
+ l({ top: b.top + b.height / 2, left: b.right + 6 });
1410
+ }
1411
+ o(!0);
1412
+ }, c = () => o(!1), p = M.cloneElement(a, {
1413
+ "aria-describedby": _,
1414
+ onMouseEnter: (m) => {
1415
+ var b, g;
1416
+ h(), (g = (b = a.props).onMouseEnter) == null || g.call(b, m);
1417
+ },
1418
+ onMouseLeave: (m) => {
1419
+ var b, g;
1420
+ c(), (g = (b = a.props).onMouseLeave) == null || g.call(b, m);
1421
+ },
1422
+ onFocus: (m) => {
1423
+ var b, g;
1424
+ h(), (g = (b = a.props).onFocus) == null || g.call(b, m);
1425
+ },
1426
+ onBlur: (m) => {
1427
+ var b, g;
1428
+ c(), (g = (b = a.props).onBlur) == null || g.call(b, m);
1429
+ }
1430
+ }), u = /* @__PURE__ */ e(
1431
+ "span",
1432
+ {
1433
+ id: _,
1434
+ role: "tooltip",
1435
+ className: [Ge.tooltip, Ge[n], r ? Ge.visible : ""].filter(Boolean).join(" "),
1436
+ style: n === "right" ? { position: "fixed", top: s.top, left: s.left, transform: "translateY(-50%)" } : void 0,
1437
+ children: /* @__PURE__ */ e("span", { className: Ge.text, children: t })
1438
+ }
1439
+ );
1440
+ return /* @__PURE__ */ d("span", { ref: i, className: Ge.wrapper, children: [
1441
+ p,
1442
+ n === "right" ? Kt(u, document.body) : u
1443
+ ] });
1444
+ };
1445
+ yt.displayName = "Tooltip";
1446
+ const Eo = "_drawer_3ta8x_3", Do = "_collapsed_3ta8x_15", Po = "_logoSection_3ta8x_21", Oo = "_logoMark_3ta8x_31", Mo = "_logoName_3ta8x_39", Lo = "_navList_3ta8x_58", Wo = "_navItem_3ta8x_70", zo = "_selected_3ta8x_96", Fo = "_navIcon_3ta8x_101", Ao = "_parentExpanded_3ta8x_105", Go = "_navLabel_3ta8x_120", Ro = "_chevron_3ta8x_132", Uo = "_navGroup_3ta8x_141", Ho = "_children_3ta8x_146", Vo = "_childItem_3ta8x_153", Yo = "_childSelected_3ta8x_182", Ko = "_childLabel_3ta8x_187", Zo = "_flyout_3ta8x_196", F = {
1447
+ drawer: Eo,
1448
+ collapsed: Do,
1449
+ logoSection: Po,
1450
+ logoMark: Oo,
1451
+ logoName: Mo,
1452
+ navList: Lo,
1453
+ navItem: Wo,
1454
+ selected: zo,
1455
+ navIcon: Fo,
1456
+ parentExpanded: Ao,
1457
+ navLabel: Go,
1458
+ chevron: Ro,
1459
+ navGroup: Uo,
1460
+ children: Ho,
1461
+ childItem: Vo,
1462
+ childSelected: Yo,
1463
+ childLabel: Ko,
1464
+ flyout: Zo
1465
+ };
1466
+ function Jo({
1467
+ items: t,
1468
+ triggerEl: n,
1469
+ onClose: a
1470
+ }) {
1471
+ const r = A(null), o = n.getBoundingClientRect();
1472
+ return Y(() => {
1473
+ const s = (l) => {
1474
+ var i;
1475
+ !((i = r.current) != null && i.contains(l.target)) && !n.contains(l.target) && a();
1476
+ };
1477
+ return document.addEventListener("mousedown", s), () => document.removeEventListener("mousedown", s);
1478
+ }, [a, n]), Kt(
1479
+ /* @__PURE__ */ e(
1480
+ "div",
1481
+ {
1482
+ ref: r,
1483
+ className: F.flyout,
1484
+ style: { top: o.top, left: o.right + 4 },
1485
+ children: /* @__PURE__ */ e(Ne, { children: t.map((s, l) => /* @__PURE__ */ e(
1486
+ xe,
1487
+ {
1488
+ label: s.label,
1489
+ onClick: () => {
1490
+ var i;
1491
+ (i = s.onClick) == null || i.call(s), a();
1492
+ }
1493
+ },
1494
+ l
1495
+ )) })
1496
+ }
1497
+ ),
1498
+ document.body
1499
+ );
1500
+ }
1501
+ const Xo = ({ item: t, collapsed: n, flyoutOpen: a, onOpenFlyout: r, onCloseFlyout: o }) => {
1502
+ var c;
1503
+ const [s, l] = I(!1), i = A(null);
1504
+ if (!!((c = t.children) != null && c.length)) {
1505
+ const p = /* @__PURE__ */ d(
1506
+ "button",
1507
+ {
1508
+ ref: i,
1509
+ type: "button",
1510
+ className: [
1511
+ F.navItem,
1512
+ !n && s ? F.parentExpanded : "",
1513
+ n && a ? F.parentExpanded : ""
1514
+ ].filter(Boolean).join(" "),
1515
+ onClick: n ? r : () => l((u) => !u),
1516
+ "aria-expanded": n ? a : s,
1517
+ children: [
1518
+ t.icon && /* @__PURE__ */ e(B, { icon: t.icon, className: F.navIcon, "aria-hidden": !0 }),
1519
+ !n && /* @__PURE__ */ d(xt, { children: [
1520
+ /* @__PURE__ */ e("span", { className: F.navLabel, children: t.label }),
1521
+ /* @__PURE__ */ e(
1522
+ B,
1523
+ {
1524
+ icon: s ? zt : qe,
1525
+ className: F.chevron,
1526
+ "aria-hidden": !0
1527
+ }
1528
+ )
1529
+ ] })
1530
+ ]
1531
+ }
1532
+ );
1533
+ return /* @__PURE__ */ d("div", { className: F.navGroup, children: [
1534
+ n ? /* @__PURE__ */ e(yt, { content: t.label, placement: "right", children: p }) : p,
1535
+ n && a && i.current && /* @__PURE__ */ e(
1536
+ Jo,
1537
+ {
1538
+ items: t.children,
1539
+ triggerEl: i.current,
1540
+ onClose: o
1541
+ }
1542
+ ),
1543
+ !n && s && /* @__PURE__ */ e("div", { className: F.children, children: t.children.map((u, m) => /* @__PURE__ */ e(
1544
+ "button",
1545
+ {
1546
+ type: "button",
1547
+ className: [F.childItem, u.selected ? F.childSelected : ""].filter(Boolean).join(" "),
1548
+ onClick: u.onClick,
1549
+ children: /* @__PURE__ */ e("span", { className: F.childLabel, children: u.label })
1550
+ },
1551
+ m
1552
+ )) })
1553
+ ] });
1554
+ }
1555
+ const h = /* @__PURE__ */ d(
1556
+ "button",
1557
+ {
1558
+ type: "button",
1559
+ className: [F.navItem, t.selected ? F.selected : ""].filter(Boolean).join(" "),
1560
+ onClick: t.onClick,
1561
+ children: [
1562
+ t.icon && /* @__PURE__ */ e(B, { icon: t.icon, className: F.navIcon, "aria-hidden": !0 }),
1563
+ !n && /* @__PURE__ */ e("span", { className: F.navLabel, children: t.label })
1564
+ ]
1565
+ }
1566
+ );
1567
+ return n ? /* @__PURE__ */ e(yt, { content: t.label, placement: "right", children: h }) : h;
1568
+ }, Qo = ({
1569
+ appName: t,
1570
+ items: n,
1571
+ defaultCollapsed: a = !1,
1572
+ onCollapsedChange: r,
1573
+ className: o
1574
+ }) => {
1575
+ const [s, l] = I(a), [i, _] = I(null), h = () => {
1576
+ const c = !s;
1577
+ l(c), _(null), r == null || r(c);
1578
+ };
1579
+ return /* @__PURE__ */ d(
1580
+ "nav",
1581
+ {
1582
+ className: [F.drawer, s ? F.collapsed : "", o ?? ""].filter(Boolean).join(" "),
1583
+ "aria-label": "Primary navigation",
1584
+ children: [
1585
+ /* @__PURE__ */ d("div", { className: F.logoSection, children: [
1586
+ !s && /* @__PURE__ */ e("div", { className: F.logoMark, "aria-hidden": !0 }),
1587
+ !s && /* @__PURE__ */ e("span", { className: F.logoName, children: t }),
1588
+ /* @__PURE__ */ e(
1589
+ U,
1590
+ {
1591
+ icon: s ? We : pt,
1592
+ variant: "brandPrimary",
1593
+ "aria-label": s ? "Expand navigation" : "Collapse navigation",
1594
+ onClick: h
1595
+ }
1596
+ )
1597
+ ] }),
1598
+ /* @__PURE__ */ e("div", { className: F.navList, role: "list", children: n.map((c, p) => /* @__PURE__ */ e(
1599
+ Xo,
1600
+ {
1601
+ item: c,
1602
+ collapsed: s,
1603
+ flyoutOpen: i === c.label,
1604
+ onOpenFlyout: () => _(c.label),
1605
+ onCloseFlyout: () => _(null)
1606
+ },
1607
+ p
1608
+ )) })
1609
+ ]
1610
+ }
1611
+ );
1612
+ };
1613
+ Qo.displayName = "NavDrawer";
1614
+ const el = "_chip_128z2_3", tl = "_selected_128z2_34", nl = "_label_128z2_65", ut = {
1615
+ chip: el,
1616
+ selected: tl,
1617
+ label: nl
1618
+ }, al = M.forwardRef(
1619
+ ({ label: t, icon: n, selected: a, defaultSelected: r = !1, disabled: o, onChange: s, className: l, onClick: i, ..._ }, h) => {
1620
+ const c = a !== void 0, [p, u] = I(c ? a : r), m = c ? a : p, b = (w) => {
1621
+ c || u((y) => !y), s == null || s(!m), i == null || i(w);
1622
+ }, g = [
1623
+ ut.chip,
1624
+ m ? ut.selected : "",
1625
+ l ?? ""
1626
+ ].filter(Boolean).join(" ");
1627
+ return /* @__PURE__ */ d(
1628
+ "button",
1629
+ {
1630
+ ref: h,
1631
+ type: "button",
1632
+ className: g,
1633
+ disabled: o,
1634
+ "aria-pressed": m,
1635
+ onClick: b,
1636
+ ..._,
1637
+ children: [
1638
+ n && /* @__PURE__ */ e(
1639
+ B,
1640
+ {
1641
+ icon: n,
1642
+ style: { color: o ? "var(--icon-color-themeable-disabled)" : m ? "var(--icon-color-static-light)" : "var(--icon-color-themeable-primary)", width: 8, height: 8, flexShrink: 0 },
1643
+ "aria-hidden": !0
1644
+ }
1645
+ ),
1646
+ /* @__PURE__ */ e("span", { className: ut.label, children: t })
1647
+ ]
1648
+ }
1649
+ );
1650
+ }
1651
+ );
1652
+ al.displayName = "Chip";
1653
+ const rl = "_chip_2x9rv_3", sl = "_disabled_2x9rv_17", ol = "_label_2x9rv_29", ll = "_dismiss_2x9rv_45", rt = {
1654
+ chip: rl,
1655
+ disabled: sl,
1656
+ label: ol,
1657
+ dismiss: ll
1658
+ }, Nt = M.forwardRef(
1659
+ ({ label: t, icon: n, disabled: a, onDismiss: r, className: o }, s) => {
1660
+ const l = a ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)";
1661
+ return /* @__PURE__ */ d(
1662
+ "div",
1663
+ {
1664
+ ref: s,
1665
+ className: [rt.chip, a ? rt.disabled : "", o ?? ""].filter(Boolean).join(" "),
1666
+ children: [
1667
+ n && /* @__PURE__ */ e(
1668
+ B,
1669
+ {
1670
+ icon: n,
1671
+ style: { color: l, width: 8, height: 8, flexShrink: 0 },
1672
+ "aria-hidden": !0
1673
+ }
1674
+ ),
1675
+ /* @__PURE__ */ e("span", { className: rt.label, children: t }),
1676
+ /* @__PURE__ */ e(
1677
+ "button",
1678
+ {
1679
+ type: "button",
1680
+ className: rt.dismiss,
1681
+ onClick: (i) => {
1682
+ i.stopPropagation(), r == null || r();
1683
+ },
1684
+ disabled: a,
1685
+ "aria-label": `Remove ${t}`,
1686
+ children: /* @__PURE__ */ e(
1687
+ B,
1688
+ {
1689
+ icon: Xe,
1690
+ style: { width: 8, height: 8 },
1691
+ "aria-hidden": !0
1692
+ }
1693
+ )
1694
+ }
1695
+ )
1696
+ ]
1697
+ }
1698
+ );
1699
+ }
1700
+ );
1701
+ Nt.displayName = "AttributeChip";
1702
+ const il = "_chip_hp6vd_3", cl = "_label_hp6vd_37", Et = {
1703
+ chip: il,
1704
+ label: cl
1705
+ }, dl = {
1706
+ urgent: Be,
1707
+ high: kt,
1708
+ medium: $t,
1709
+ low: wt
1710
+ }, _l = {
1711
+ urgent: "Urgent",
1712
+ high: "High",
1713
+ medium: "Medium",
1714
+ low: "Low"
1715
+ }, en = M.forwardRef(
1716
+ ({ priority: t, label: n, className: a }, r) => /* @__PURE__ */ d(
1717
+ "div",
1718
+ {
1719
+ ref: r,
1720
+ className: [Et.chip, a ?? ""].filter(Boolean).join(" "),
1721
+ "data-priority": t,
1722
+ children: [
1723
+ /* @__PURE__ */ e(
1724
+ B,
1725
+ {
1726
+ icon: dl[t],
1727
+ style: { width: 12, height: 12, flexShrink: 0 },
1728
+ "aria-hidden": !0
1729
+ }
1730
+ ),
1731
+ /* @__PURE__ */ e("span", { className: Et.label, children: n ?? _l[t] })
1732
+ ]
1733
+ }
1734
+ )
1735
+ );
1736
+ en.displayName = "PriorityChip";
1737
+ const pl = "_chip_xcsba_3", hl = "_label_xcsba_38", Dt = {
1738
+ chip: pl,
1739
+ label: hl
1740
+ }, tn = M.forwardRef(
1741
+ ({ label: t, statusType: n, level: a, className: r }, o) => /* @__PURE__ */ e(
1742
+ "div",
1743
+ {
1744
+ ref: o,
1745
+ className: [Dt.chip, r ?? ""].filter(Boolean).join(" "),
1746
+ "data-status": n,
1747
+ "data-level": a,
1748
+ children: /* @__PURE__ */ e("span", { className: Dt.label, children: t })
1749
+ }
1750
+ )
1751
+ );
1752
+ tn.displayName = "StatusChip";
1753
+ const ul = "_root_1uoox_1", ml = "_label_1uoox_10", bl = "_required_1uoox_19", vl = "_triggerWrapper_1uoox_25", fl = "_trigger_1uoox_25", gl = "_triggerDisabled_1uoox_49", yl = "_triggerOpen_1uoox_59", Nl = "_triggerError_1uoox_64", xl = "_triggerContent_1uoox_80", $l = "_placeholder_1uoox_89", wl = "_chipArea_1uoox_100", kl = "_measureContainer_1uoox_111", Cl = "_overflowChip_1uoox_124", Il = "_chevron_1uoox_141", Sl = "_chevronOpen_1uoox_152", jl = "_menuWrapper_1uoox_162", Tl = "_disabled_1uoox_175", Bl = "_errorText_1uoox_181", ql = "_hintText_1uoox_182", R = {
1754
+ root: ul,
1755
+ label: ml,
1756
+ required: bl,
1757
+ triggerWrapper: vl,
1758
+ trigger: fl,
1759
+ triggerDisabled: gl,
1760
+ triggerOpen: yl,
1761
+ triggerError: Nl,
1762
+ triggerContent: xl,
1763
+ placeholder: $l,
1764
+ chipArea: wl,
1765
+ measureContainer: kl,
1766
+ overflowChip: Cl,
1767
+ chevron: Il,
1768
+ chevronOpen: Sl,
1769
+ menuWrapper: jl,
1770
+ disabled: Tl,
1771
+ errorText: Bl,
1772
+ hintText: ql
1773
+ }, Pt = 8, El = ({
1774
+ label: t,
1775
+ error: n,
1776
+ hint: a,
1777
+ leadingIcon: r,
1778
+ options: o,
1779
+ value: s,
1780
+ defaultValue: l = [],
1781
+ placeholder: i = "Select options",
1782
+ disabled: _ = !1,
1783
+ required: h = !1,
1784
+ className: c,
1785
+ onChange: p
1786
+ }) => {
1787
+ const u = ce(), m = n ? `${u}-error` : void 0, b = a ? `${u}-hint` : void 0, g = s !== void 0, [f, w] = I(l), y = g ? s ?? [] : f, [C, j] = I(!1), [P, W] = I(null), ne = A(null), L = A(null), Q = A([]), H = A(null), T = o.filter((N) => y.includes(N.value)), he = T.map((N) => N.value).join(",");
1788
+ Y(() => {
1789
+ if (!C) return;
1790
+ const N = (k) => {
1791
+ ne.current && !ne.current.contains(k.target) && j(!1);
1792
+ };
1793
+ return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
1794
+ }, [C]), pn(() => {
1795
+ if (!L.current || T.length === 0) {
1796
+ W(T.length);
1797
+ return;
1798
+ }
1799
+ const N = () => {
1800
+ var E;
1801
+ const fe = L.current.offsetWidth, v = ((E = H.current) == null ? void 0 : E.offsetWidth) ?? 40;
1802
+ let q = 0, O = 0;
1803
+ for (let G = 0; G < T.length; G++) {
1804
+ const Qe = Q.current[G];
1805
+ if (!Qe) {
1806
+ O++;
1807
+ continue;
1808
+ }
1809
+ const jt = Qe.offsetWidth, Tt = G > 0 ? Pt : 0, _n = G === T.length - 1 ? 0 : Pt + v;
1810
+ if (q + Tt + jt + _n <= fe)
1811
+ q += Tt + jt, O++;
1812
+ else
1813
+ break;
1814
+ }
1815
+ W(O);
1816
+ };
1817
+ N();
1818
+ const k = new ResizeObserver(N);
1819
+ return k.observe(L.current), () => k.disconnect();
1820
+ }, [T.length, he]);
1821
+ const ge = () => {
1822
+ _ || j((N) => !N);
1823
+ }, be = (N) => {
1824
+ (N.key === "Enter" || N.key === " ") && (N.preventDefault(), ge()), N.key === "Escape" && j(!1);
1825
+ }, $e = (N) => {
1826
+ const k = y.includes(N) ? y.filter((fe) => fe !== N) : [...y, N];
1827
+ g || w(k), p == null || p(k);
1828
+ }, ve = (N) => {
1829
+ const k = y.filter((fe) => fe !== N);
1830
+ g || w(k), p == null || p(k);
1831
+ }, we = [
1832
+ R.trigger,
1833
+ C ? R.triggerOpen : "",
1834
+ n ? R.triggerError : "",
1835
+ _ ? R.triggerDisabled : ""
1836
+ ].filter(Boolean).join(" "), X = [R.chevron, C ? R.chevronOpen : ""].filter(Boolean).join(" "), ee = _ ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", x = T.slice(0, P ?? T.length), D = T.length - x.length;
1837
+ return /* @__PURE__ */ d(
1838
+ "div",
1839
+ {
1840
+ ref: ne,
1841
+ className: [R.root, _ ? R.disabled : "", c ?? ""].filter(Boolean).join(" "),
1842
+ children: [
1843
+ t && /* @__PURE__ */ d("label", { htmlFor: u, className: R.label, children: [
1844
+ t,
1845
+ h && /* @__PURE__ */ e("span", { className: R.required, "aria-hidden": !0, children: " *" })
1846
+ ] }),
1847
+ /* @__PURE__ */ d("div", { className: R.triggerWrapper, children: [
1848
+ /* @__PURE__ */ d(
1849
+ "div",
1850
+ {
1851
+ id: u,
1852
+ role: "combobox",
1853
+ "aria-haspopup": "listbox",
1854
+ "aria-expanded": C,
1855
+ "aria-multiselectable": "true",
1856
+ "aria-disabled": _ || void 0,
1857
+ "aria-describedby": [m, b].filter(Boolean).join(" ") || void 0,
1858
+ tabIndex: _ ? -1 : 0,
1859
+ className: we,
1860
+ onClick: ge,
1861
+ onKeyDown: be,
1862
+ children: [
1863
+ /* @__PURE__ */ d("div", { className: R.triggerContent, children: [
1864
+ r && /* @__PURE__ */ e(z, { icon: r, color: ee }),
1865
+ T.length === 0 ? /* @__PURE__ */ e("span", { className: R.placeholder, children: i }) : /* @__PURE__ */ d("div", { ref: L, className: R.chipArea, children: [
1866
+ /* @__PURE__ */ d("div", { className: R.measureContainer, "aria-hidden": !0, children: [
1867
+ T.map((N, k) => /* @__PURE__ */ e(
1868
+ Nt,
1869
+ {
1870
+ label: N.label,
1871
+ ref: (fe) => {
1872
+ Q.current[k] = fe;
1873
+ }
1874
+ },
1875
+ N.value
1876
+ )),
1877
+ /* @__PURE__ */ d("span", { ref: H, className: R.overflowChip, children: [
1878
+ "+",
1879
+ T.length
1880
+ ] })
1881
+ ] }),
1882
+ x.map((N) => /* @__PURE__ */ e(
1883
+ Nt,
1884
+ {
1885
+ label: N.label,
1886
+ disabled: _,
1887
+ onDismiss: () => ve(N.value)
1888
+ },
1889
+ N.value
1890
+ )),
1891
+ D > 0 && /* @__PURE__ */ d("span", { className: R.overflowChip, children: [
1892
+ "+",
1893
+ D
1894
+ ] })
1895
+ ] })
1896
+ ] }),
1897
+ /* @__PURE__ */ e("span", { className: X, children: /* @__PURE__ */ e(z, { icon: qe, size: "xs" }) })
1898
+ ]
1899
+ }
1900
+ ),
1901
+ C && /* @__PURE__ */ e("div", { className: R.menuWrapper, children: /* @__PURE__ */ e(Ne, { role: "listbox", children: o.map((N) => /* @__PURE__ */ e(
1902
+ xe,
1903
+ {
1904
+ label: N.label,
1905
+ selected: y.includes(N.value),
1906
+ trailingIcon: y.includes(N.value) ? Yt : void 0,
1907
+ disabled: N.disabled,
1908
+ role: "option",
1909
+ "aria-selected": y.includes(N.value),
1910
+ onClick: (k) => {
1911
+ k.stopPropagation(), $e(N.value);
1912
+ }
1913
+ },
1914
+ N.value
1915
+ )) }) })
1916
+ ] }),
1917
+ n && /* @__PURE__ */ e("span", { id: m, className: R.errorText, role: "alert", children: n }),
1918
+ a && !n && /* @__PURE__ */ e("span", { id: b, className: R.hintText, children: a })
1919
+ ]
1920
+ }
1921
+ );
1922
+ };
1923
+ El.displayName = "MultiSelectField";
1924
+ const Dl = "_root_1wacy_1", Pl = "_label_1wacy_10", Ol = "_required_1wacy_19", Ml = "_trigger_1wacy_25", Ll = "_triggerError_1wacy_51", Wl = "_triggerDisabled_1wacy_60", zl = "_triggerContent_1wacy_67", Fl = "_triggerText_1wacy_76", Al = "_placeholder_1wacy_88", Gl = "_value_1wacy_92", Rl = "_disabled_1wacy_114", Ul = "_errorText_1wacy_120", Hl = "_hintText_1wacy_121", ae = {
1925
+ root: Dl,
1926
+ label: Pl,
1927
+ required: Ol,
1928
+ trigger: Ml,
1929
+ triggerError: Ll,
1930
+ triggerDisabled: Wl,
1931
+ triggerContent: zl,
1932
+ triggerText: Fl,
1933
+ placeholder: Al,
1934
+ value: Gl,
1935
+ disabled: Rl,
1936
+ errorText: Ul,
1937
+ hintText: Hl
1938
+ }, Vl = (t) => t.toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" }), Yl = ({
1939
+ label: t,
1940
+ error: n,
1941
+ hint: a,
1942
+ leadingIcon: r,
1943
+ value: o,
1944
+ placeholder: s = "Select a date",
1945
+ disabled: l = !1,
1946
+ required: i = !1,
1947
+ formatDate: _ = Vl,
1948
+ className: h,
1949
+ onOpen: c
1950
+ }) => {
1951
+ const p = ce(), u = n ? `${p}-error` : void 0, m = a ? `${p}-hint` : void 0, b = o ? _(o) : null, g = l ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", f = [
1952
+ ae.trigger,
1953
+ n ? ae.triggerError : "",
1954
+ l ? ae.triggerDisabled : ""
1955
+ ].filter(Boolean).join(" ");
1956
+ return /* @__PURE__ */ d(
1957
+ "div",
1958
+ {
1959
+ className: [ae.root, l ? ae.disabled : "", h ?? ""].filter(Boolean).join(" "),
1960
+ children: [
1961
+ t && /* @__PURE__ */ d("label", { htmlFor: p, className: ae.label, children: [
1962
+ t,
1963
+ i && /* @__PURE__ */ e("span", { className: ae.required, "aria-hidden": !0, children: " *" })
1964
+ ] }),
1965
+ /* @__PURE__ */ d(
1966
+ "button",
1967
+ {
1968
+ id: p,
1969
+ type: "button",
1970
+ className: f,
1971
+ disabled: l,
1972
+ "aria-haspopup": "dialog",
1973
+ "aria-describedby": [u, m].filter(Boolean).join(" ") || void 0,
1974
+ onClick: c,
1975
+ children: [
1976
+ /* @__PURE__ */ d("div", { className: ae.triggerContent, children: [
1977
+ r && /* @__PURE__ */ e(z, { icon: r, color: g }),
1978
+ /* @__PURE__ */ e("span", { className: [ae.triggerText, b ? ae.value : ae.placeholder].join(" "), children: b ?? s })
1979
+ ] }),
1980
+ /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(U, { icon: Vt, variant: "brandPrimary", "aria-label": "Calendar", "aria-hidden": "true", tabIndex: -1 }) })
1981
+ ]
1982
+ }
1983
+ ),
1984
+ n && /* @__PURE__ */ e("span", { id: u, className: ae.errorText, role: "alert", children: n }),
1985
+ a && !n && /* @__PURE__ */ e("span", { id: m, className: ae.hintText, children: a })
1986
+ ]
1987
+ }
1988
+ );
1989
+ };
1990
+ Yl.displayName = "DateField";
1991
+ const Kl = "_root_1wacy_1", Zl = "_label_1wacy_10", Jl = "_required_1wacy_19", Xl = "_trigger_1wacy_25", Ql = "_triggerError_1wacy_51", ei = "_triggerDisabled_1wacy_60", ti = "_triggerContent_1wacy_67", ni = "_triggerText_1wacy_76", ai = "_placeholder_1wacy_88", ri = "_value_1wacy_92", si = "_disabled_1wacy_114", oi = "_errorText_1wacy_120", li = "_hintText_1wacy_121", re = {
1992
+ root: Kl,
1993
+ label: Zl,
1994
+ required: Jl,
1995
+ trigger: Xl,
1996
+ triggerError: Ql,
1997
+ triggerDisabled: ei,
1998
+ triggerContent: ti,
1999
+ triggerText: ni,
2000
+ placeholder: ai,
2001
+ value: ri,
2002
+ disabled: si,
2003
+ errorText: oi,
2004
+ hintText: li
2005
+ }, ii = (t, n) => {
2006
+ if (n === "12h") {
2007
+ const a = t.hours < 12 ? "AM" : "PM";
2008
+ return `${t.hours === 0 ? 12 : t.hours > 12 ? t.hours - 12 : t.hours}:${String(t.minutes).padStart(2, "0")} ${a}`;
2009
+ }
2010
+ return `${String(t.hours).padStart(2, "0")}:${String(t.minutes).padStart(2, "0")}`;
2011
+ }, ci = ({
2012
+ label: t,
2013
+ error: n,
2014
+ hint: a,
2015
+ leadingIcon: r,
2016
+ value: o,
2017
+ placeholder: s = "Select a time",
2018
+ disabled: l = !1,
2019
+ required: i = !1,
2020
+ format: _ = "12h",
2021
+ formatTime: h,
2022
+ className: c,
2023
+ onOpen: p
2024
+ }) => {
2025
+ const u = ce(), m = n ? `${u}-error` : void 0, b = a ? `${u}-hint` : void 0, g = o ? h ? h(o) : ii(o, _) : null, f = l ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", w = [
2026
+ re.trigger,
2027
+ n ? re.triggerError : "",
2028
+ l ? re.triggerDisabled : ""
2029
+ ].filter(Boolean).join(" ");
2030
+ return /* @__PURE__ */ d("div", { className: [re.root, l ? re.disabled : "", c ?? ""].filter(Boolean).join(" "), children: [
2031
+ t && /* @__PURE__ */ d("label", { htmlFor: u, className: re.label, children: [
2032
+ t,
2033
+ i && /* @__PURE__ */ e("span", { className: re.required, "aria-hidden": !0, children: " *" })
2034
+ ] }),
2035
+ /* @__PURE__ */ d(
2036
+ "button",
2037
+ {
2038
+ id: u,
2039
+ type: "button",
2040
+ className: w,
2041
+ disabled: l,
2042
+ "aria-haspopup": "dialog",
2043
+ "aria-describedby": [m, b].filter(Boolean).join(" ") || void 0,
2044
+ onClick: p,
2045
+ children: [
2046
+ /* @__PURE__ */ d("div", { className: re.triggerContent, children: [
2047
+ r && /* @__PURE__ */ e(z, { icon: r, color: f }),
2048
+ /* @__PURE__ */ e("span", { className: [re.triggerText, g ? re.value : re.placeholder].join(" "), children: g ?? s })
2049
+ ] }),
2050
+ /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(U, { icon: qn, variant: "brandPrimary", "aria-label": "Select time", "aria-hidden": "true", tabIndex: -1 }) })
2051
+ ]
2052
+ }
2053
+ ),
2054
+ n && /* @__PURE__ */ e("span", { id: m, className: re.errorText, role: "alert", children: n }),
2055
+ a && !n && /* @__PURE__ */ e("span", { id: b, className: re.hintText, children: a })
2056
+ ] });
2057
+ };
2058
+ ci.displayName = "TimeField";
2059
+ const di = "_divider_c5z1b_1", _i = "_horizontal_c5z1b_6", pi = "_vertical_c5z1b_11", mt = {
2060
+ divider: di,
2061
+ horizontal: _i,
2062
+ vertical: pi
2063
+ }, hi = ({ orientation: t = "horizontal", className: n }) => /* @__PURE__ */ e(
2064
+ "div",
2065
+ {
2066
+ role: "separator",
2067
+ "aria-orientation": t,
2068
+ className: [
2069
+ mt.divider,
2070
+ t === "vertical" ? mt.vertical : mt.horizontal,
2071
+ n ?? ""
2072
+ ].filter(Boolean).join(" ")
2073
+ }
2074
+ );
2075
+ hi.displayName = "Divider";
2076
+ const nn = hn(null), ui = () => un(nn), mi = "_accordion_oer2r_3", bi = "_header_oer2r_11", vi = "_leftContent_oer2r_42", fi = "_leadingIcon_oer2r_50", gi = "_textContent_oer2r_59", yi = "_title_oer2r_69", Ni = "_subtitle_oer2r_82", xi = "_chevron_oer2r_97", $i = "_chevronExpanded_oer2r_108", wi = "_body_oer2r_118", ki = "_bodyExpanded_oer2r_124", Ci = "_bodyInner_oer2r_128", Ii = "_bodyContent_oer2r_132", se = {
2077
+ accordion: mi,
2078
+ header: bi,
2079
+ leftContent: vi,
2080
+ leadingIcon: fi,
2081
+ textContent: gi,
2082
+ title: yi,
2083
+ subtitle: Ni,
2084
+ chevron: xi,
2085
+ chevronExpanded: $i,
2086
+ body: wi,
2087
+ bodyExpanded: ki,
2088
+ bodyInner: Ci,
2089
+ bodyContent: Ii
2090
+ }, Si = ({
2091
+ title: t,
2092
+ subtitle: n,
2093
+ icon: a,
2094
+ children: r,
2095
+ defaultExpanded: o = !1,
2096
+ expanded: s,
2097
+ onToggle: l,
2098
+ disabled: i = !1,
2099
+ className: _
2100
+ }) => {
2101
+ const h = ce(), c = `${h}-panel`, p = `${h}-header`, u = ui(), m = (u == null ? void 0 : u.exclusive) === !0, b = s !== void 0, [g, f] = I(o), w = m ? u.openId === h : b ? s : g, y = () => {
2102
+ if (m)
2103
+ u.onItemToggle(h, u.openId !== h);
2104
+ else {
2105
+ const W = !w;
2106
+ b || f(W), l == null || l(W);
2107
+ }
2108
+ }, C = [se.accordion, _].filter(Boolean).join(" "), j = [se.chevron, w ? se.chevronExpanded : ""].filter(Boolean).join(" "), P = [se.body, w ? se.bodyExpanded : ""].filter(Boolean).join(" ");
2109
+ return /* @__PURE__ */ d("div", { className: C, children: [
2110
+ /* @__PURE__ */ d(
2111
+ "button",
2112
+ {
2113
+ id: p,
2114
+ type: "button",
2115
+ className: se.header,
2116
+ onClick: y,
2117
+ disabled: i,
2118
+ "aria-expanded": w,
2119
+ "aria-controls": c,
2120
+ children: [
2121
+ /* @__PURE__ */ d("div", { className: se.leftContent, children: [
2122
+ a && /* @__PURE__ */ e("span", { className: se.leadingIcon, children: /* @__PURE__ */ e(z, { icon: a, size: "medium" }) }),
2123
+ /* @__PURE__ */ d("div", { className: se.textContent, children: [
2124
+ /* @__PURE__ */ e("span", { className: se.title, children: t }),
2125
+ n && /* @__PURE__ */ e("span", { className: se.subtitle, children: n })
2126
+ ] })
2127
+ ] }),
2128
+ /* @__PURE__ */ e("span", { className: j, children: /* @__PURE__ */ e(z, { icon: qe, size: "small" }) })
2129
+ ]
2130
+ }
2131
+ ),
2132
+ /* @__PURE__ */ e("div", { id: c, role: "region", "aria-labelledby": p, className: P, "aria-hidden": !w, children: /* @__PURE__ */ e("div", { className: se.bodyInner, children: /* @__PURE__ */ e("div", { className: se.bodyContent, children: r }) }) })
2133
+ ] });
2134
+ };
2135
+ Si.displayName = "AccordionItem";
2136
+ const ji = "_accordionGroup_1j3q5_1", Ti = {
2137
+ accordionGroup: ji
2138
+ }, Bi = M.forwardRef(
2139
+ ({ children: t, className: n, exclusive: a = !1, ...r }, o) => {
2140
+ const s = [Ti.accordionGroup, n].filter(Boolean).join(" "), [l, i] = I(null), _ = (h, c) => {
2141
+ i(c ? h : null);
2142
+ };
2143
+ return /* @__PURE__ */ e(nn.Provider, { value: { exclusive: a, openId: l, onItemToggle: _ }, children: /* @__PURE__ */ e("div", { ref: o, className: s, ...r, children: t }) });
2144
+ }
2145
+ );
2146
+ Bi.displayName = "AccordionGroup";
2147
+ const qi = "_root_1tici_1", Ei = "_label_1tici_10", Di = "_inputWrapper_1tici_21", Pi = "_wrapperDisabled_1tici_35", Oi = "_wrapperFocused_1tici_39", Mi = "_wrapperError_1tici_44", Li = "_input_1tici_21", Wi = "_disabled_1tici_86", zi = "_errorText_1tici_92", Fi = "_hintText_1tici_93", Ai = "_required_1tici_108", ue = {
2148
+ root: qi,
2149
+ label: Ei,
2150
+ inputWrapper: Di,
2151
+ wrapperDisabled: Pi,
2152
+ wrapperFocused: Oi,
2153
+ wrapperError: Mi,
2154
+ input: Li,
2155
+ disabled: Wi,
2156
+ errorText: zi,
2157
+ hintText: Fi,
2158
+ required: Ai
2159
+ }, an = M.forwardRef(
2160
+ ({ label: t, error: n, hint: a, leadingIcon: r, trailingIcon: o, className: s, disabled: l, onFocus: i, onBlur: _, ...h }, c) => {
2161
+ const p = ce(), u = h["aria-label"] ? void 0 : p, m = n ? `${p}-error` : void 0, b = a ? `${p}-hint` : void 0, g = A(null), [f, w] = I(!1), y = (L) => {
2162
+ w(!0), i == null || i(L);
2163
+ }, C = (L) => {
2164
+ w(!1), _ == null || _(L);
2165
+ }, j = () => {
2166
+ var H;
2167
+ const L = g.current;
2168
+ if (!L) return;
2169
+ const Q = (H = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")) == null ? void 0 : H.set;
2170
+ Q == null || Q.call(L, ""), L.dispatchEvent(new Event("input", { bubbles: !0 }));
2171
+ }, P = l ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", W = [
2172
+ ue.inputWrapper,
2173
+ f ? ue.wrapperFocused : "",
2174
+ n ? ue.wrapperError : "",
2175
+ l ? ue.wrapperDisabled : ""
2176
+ ].filter(Boolean).join(" "), ne = n ? /* @__PURE__ */ e(z, { icon: Be, color: "var(--icon-color-static-state-error)" }) : f ? /* @__PURE__ */ e(
2177
+ U,
2178
+ {
2179
+ icon: fn,
2180
+ variant: "brandPrimary",
2181
+ iconSize: "small",
2182
+ "aria-label": "Clear",
2183
+ tabIndex: -1,
2184
+ onMouseDown: (L) => {
2185
+ L.preventDefault(), j();
2186
+ }
2187
+ }
2188
+ ) : o ? /* @__PURE__ */ e(z, { icon: o, color: P }) : null;
2189
+ return /* @__PURE__ */ d("div", { className: [ue.root, l ? ue.disabled : "", s ?? ""].filter(Boolean).join(" "), children: [
2190
+ t && /* @__PURE__ */ d("label", { htmlFor: u, className: ue.label, children: [
2191
+ t,
2192
+ h.required && /* @__PURE__ */ e("span", { className: ue.required, "aria-hidden": !0, children: " *" })
2193
+ ] }),
2194
+ /* @__PURE__ */ d("div", { className: W, children: [
2195
+ r && /* @__PURE__ */ e(z, { icon: r, color: P }),
2196
+ /* @__PURE__ */ e(
2197
+ "input",
2198
+ {
2199
+ ref: (L) => {
2200
+ g.current = L, typeof c == "function" ? c(L) : c && (c.current = L);
2201
+ },
2202
+ id: u,
2203
+ className: ue.input,
2204
+ disabled: l,
2205
+ "aria-invalid": !!n,
2206
+ "aria-describedby": [m, b].filter(Boolean).join(" ") || void 0,
2207
+ onFocus: y,
2208
+ onBlur: C,
2209
+ ...h
2210
+ }
2211
+ ),
2212
+ ne
2213
+ ] }),
2214
+ n && /* @__PURE__ */ e("span", { id: m, className: ue.errorText, role: "alert", children: n }),
2215
+ a && !n && /* @__PURE__ */ e("span", { id: b, className: ue.hintText, children: a })
2216
+ ] });
2217
+ }
2218
+ );
2219
+ an.displayName = "TextField";
2220
+ const Gi = "_scrim_1o2za_3", Ri = "_dialog_1o2za_15", Ui = "_xs_1o2za_28", Hi = "_sm_1o2za_29", Vi = "_md_1o2za_30", Yi = "_lg_1o2za_31", Ki = "_xl_1o2za_32", Zi = "_header_1o2za_36", Ji = "_headerText_1o2za_44", Xi = "_title_1o2za_51", Qi = "_subtitle_1o2za_61", ec = "_content_1o2za_73", tc = "_contentText_1o2za_80", nc = "_actions_1o2za_92", me = {
2221
+ scrim: Gi,
2222
+ dialog: Ri,
2223
+ xs: Ui,
2224
+ sm: Hi,
2225
+ md: Vi,
2226
+ lg: Yi,
2227
+ xl: Ki,
2228
+ header: Zi,
2229
+ headerText: Ji,
2230
+ title: Xi,
2231
+ subtitle: Qi,
2232
+ content: ec,
2233
+ contentText: tc,
2234
+ actions: nc
2235
+ }, ac = ({
2236
+ open: t,
2237
+ onClose: n,
2238
+ title: a,
2239
+ subtitle: r,
2240
+ dismissible: o = !0,
2241
+ content: s,
2242
+ children: l,
2243
+ primaryAction: i,
2244
+ secondaryAction: _,
2245
+ size: h = "sm",
2246
+ className: c
2247
+ }) => {
2248
+ const p = ce();
2249
+ return t ? /* @__PURE__ */ e("div", { className: me.scrim, onClick: n, children: /* @__PURE__ */ d(
2250
+ "div",
2251
+ {
2252
+ role: "dialog",
2253
+ "aria-modal": "true",
2254
+ "aria-labelledby": p,
2255
+ className: [me.dialog, me[h], c].filter(Boolean).join(" "),
2256
+ onClick: (u) => u.stopPropagation(),
2257
+ children: [
2258
+ /* @__PURE__ */ d("div", { className: me.header, children: [
2259
+ /* @__PURE__ */ d("div", { className: me.headerText, children: [
2260
+ /* @__PURE__ */ e("h2", { id: p, className: me.title, children: a }),
2261
+ r && /* @__PURE__ */ e("p", { className: me.subtitle, children: r })
2262
+ ] }),
2263
+ o && /* @__PURE__ */ e(
2264
+ U,
2265
+ {
2266
+ icon: Xe,
2267
+ variant: "brandPrimary",
2268
+ "aria-label": "Dismiss dialog",
2269
+ onClick: n
2270
+ }
2271
+ )
2272
+ ] }),
2273
+ /* @__PURE__ */ e("div", { className: me.content, children: l ?? (s && /* @__PURE__ */ e("p", { className: me.contentText, children: s })) }),
2274
+ (i || _) && /* @__PURE__ */ d("div", { className: me.actions, children: [
2275
+ _ && /* @__PURE__ */ e(
2276
+ V,
2277
+ {
2278
+ variant: _.variant ?? "brandPrimary",
2279
+ emphasis: "tertiary",
2280
+ leadingIcon: _.leadingIcon && /* @__PURE__ */ e(z, { icon: _.leadingIcon }),
2281
+ onClick: _.onClick,
2282
+ disabled: _.disabled,
2283
+ children: _.label
2284
+ }
2285
+ ),
2286
+ i && /* @__PURE__ */ e(
2287
+ V,
2288
+ {
2289
+ variant: i.variant ?? "brandPrimary",
2290
+ emphasis: "primary",
2291
+ leadingIcon: i.leadingIcon && /* @__PURE__ */ e(z, { icon: i.leadingIcon }),
2292
+ onClick: i.onClick,
2293
+ disabled: i.disabled,
2294
+ children: i.label
2295
+ }
2296
+ )
2297
+ ] })
2298
+ ]
2299
+ }
2300
+ ) }) : null;
2301
+ };
2302
+ ac.displayName = "Dialog";
2303
+ const rc = "_scrim_rhrqn_25", sc = "_scrimEnter_rhrqn_32", oc = "_scrimExit_rhrqn_36", lc = "_drawer_rhrqn_42", ic = "_drawerEnter_rhrqn_59", cc = "_drawerExit_rhrqn_63", dc = "_header_rhrqn_69", _c = "_headerText_rhrqn_77", pc = "_title_rhrqn_84", hc = "_subtitle_rhrqn_94", uc = "_content_rhrqn_106", mc = "_contentText_rhrqn_114", bc = "_actions_rhrqn_126", oe = {
2304
+ scrim: rc,
2305
+ scrimEnter: sc,
2306
+ scrimExit: oc,
2307
+ drawer: lc,
2308
+ drawerEnter: ic,
2309
+ drawerExit: cc,
2310
+ header: dc,
2311
+ headerText: _c,
2312
+ title: pc,
2313
+ subtitle: hc,
2314
+ content: uc,
2315
+ contentText: mc,
2316
+ actions: bc
2317
+ }, vc = ({
2318
+ open: t,
2319
+ onClose: n,
2320
+ title: a,
2321
+ subtitle: r,
2322
+ dismissible: o = !0,
2323
+ content: s,
2324
+ children: l,
2325
+ primaryAction: i,
2326
+ secondaryAction: _,
2327
+ className: h
2328
+ }) => {
2329
+ const c = ce(), [p, u] = I(t), [m, b] = I(!1);
2330
+ Y(() => {
2331
+ t ? (u(!0), b(!1)) : p && b(!0);
2332
+ }, [t]);
2333
+ const g = () => {
2334
+ m && (u(!1), b(!1));
2335
+ };
2336
+ return p ? /* @__PURE__ */ e("div", { className: [oe.scrim, m ? oe.scrimExit : oe.scrimEnter].join(" "), onClick: n, children: /* @__PURE__ */ d(
2337
+ "aside",
2338
+ {
2339
+ role: "dialog",
2340
+ "aria-modal": "true",
2341
+ "aria-labelledby": c,
2342
+ className: [oe.drawer, m ? oe.drawerExit : oe.drawerEnter, h].filter(Boolean).join(" "),
2343
+ onClick: (f) => f.stopPropagation(),
2344
+ onAnimationEnd: g,
2345
+ children: [
2346
+ /* @__PURE__ */ d("div", { className: oe.header, children: [
2347
+ /* @__PURE__ */ d("div", { className: oe.headerText, children: [
2348
+ /* @__PURE__ */ e("h2", { id: c, className: oe.title, children: a }),
2349
+ r && /* @__PURE__ */ e("p", { className: oe.subtitle, children: r })
2350
+ ] }),
2351
+ o && /* @__PURE__ */ e(
2352
+ U,
2353
+ {
2354
+ icon: Xe,
2355
+ variant: "brandPrimary",
2356
+ "aria-label": "Dismiss drawer",
2357
+ onClick: n
2358
+ }
2359
+ )
2360
+ ] }),
2361
+ /* @__PURE__ */ e("div", { className: oe.content, children: l ?? (s && /* @__PURE__ */ e("p", { className: oe.contentText, children: s })) }),
2362
+ (i || _) && /* @__PURE__ */ d("div", { className: oe.actions, children: [
2363
+ _ && /* @__PURE__ */ e(
2364
+ V,
2365
+ {
2366
+ variant: "brandPrimary",
2367
+ emphasis: "tertiary",
2368
+ onClick: _.onClick,
2369
+ disabled: _.disabled,
2370
+ children: _.label
2371
+ }
2372
+ ),
2373
+ i && /* @__PURE__ */ e(
2374
+ V,
2375
+ {
2376
+ variant: "brandPrimary",
2377
+ emphasis: "primary",
2378
+ onClick: i.onClick,
2379
+ disabled: i.disabled,
2380
+ children: i.label
2381
+ }
2382
+ )
2383
+ ] })
2384
+ ]
2385
+ }
2386
+ ) }) : null;
2387
+ };
2388
+ vc.displayName = "Drawer";
2389
+ const fc = "_listItem_1bhil_3", gc = "_interactive_1bhil_17", yc = "_leading_1bhil_37", Nc = "_text_1bhil_45", xc = "_title_1bhil_52", $c = "_subtitle_1bhil_64", Pe = {
2390
+ listItem: fc,
2391
+ interactive: gc,
2392
+ leading: yc,
2393
+ text: Nc,
2394
+ title: xc,
2395
+ subtitle: $c
2396
+ }, rn = M.forwardRef(
2397
+ ({
2398
+ title: t,
2399
+ subtitle: n,
2400
+ leadingIcon: a,
2401
+ leadingAvatar: r,
2402
+ interactive: o = !1,
2403
+ disabled: s,
2404
+ onClick: l,
2405
+ className: i
2406
+ }, _) => {
2407
+ const h = [
2408
+ Pe.listItem,
2409
+ o ? Pe.interactive : "",
2410
+ i ?? ""
2411
+ ].filter(Boolean).join(" "), c = s ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", p = a ? /* @__PURE__ */ e(
2412
+ B,
2413
+ {
2414
+ icon: a,
2415
+ style: { color: c, width: 16, height: 16, flexShrink: 0 },
2416
+ "aria-hidden": !0
2417
+ }
2418
+ ) : r ? /* @__PURE__ */ e(ze, { ...r, size: "small" }) : null, u = /* @__PURE__ */ d(xt, { children: [
2419
+ p && /* @__PURE__ */ e("span", { className: Pe.leading, children: p }),
2420
+ /* @__PURE__ */ d("span", { className: Pe.text, children: [
2421
+ /* @__PURE__ */ e("span", { className: Pe.title, children: t }),
2422
+ n && /* @__PURE__ */ e("span", { className: Pe.subtitle, children: n })
2423
+ ] }),
2424
+ o && /* @__PURE__ */ e(
2425
+ B,
2426
+ {
2427
+ icon: We,
2428
+ style: { color: c, width: 12, height: 12, flexShrink: 0 },
2429
+ "aria-hidden": !0
2430
+ }
2431
+ )
2432
+ ] });
2433
+ return o ? /* @__PURE__ */ e(
2434
+ "button",
2435
+ {
2436
+ ref: _,
2437
+ type: "button",
2438
+ className: h,
2439
+ disabled: s,
2440
+ onClick: l,
2441
+ children: u
2442
+ }
2443
+ ) : /* @__PURE__ */ e("div", { ref: _, className: h, children: u });
2444
+ }
2445
+ );
2446
+ rn.displayName = "ListItem";
2447
+ const wc = "_listGroup_1dsbi_1", kc = "_itemWrapper_1dsbi_7", Ot = {
2448
+ listGroup: wc,
2449
+ itemWrapper: kc
2450
+ }, sn = M.forwardRef(
2451
+ ({ children: t, className: n, ...a }, r) => {
2452
+ const o = [Ot.listGroup, n ?? ""].filter(Boolean).join(" ");
2453
+ return /* @__PURE__ */ e("div", { ref: r, className: o, ...a, children: M.Children.map(t, (s, l) => /* @__PURE__ */ e(
2454
+ "div",
2455
+ {
2456
+ className: l < M.Children.count(t) - 1 ? Ot.itemWrapper : void 0,
2457
+ children: s
2458
+ },
2459
+ l
2460
+ )) });
2461
+ }
2462
+ );
2463
+ sn.displayName = "ListGroup";
2464
+ const Cc = "_group_1y2le_3", Ic = "_legend_1y2le_12", Sc = "_items_1y2le_25", jc = "_vertical_1y2le_29", Tc = "_horizontal_1y2le_33", Re = {
2465
+ group: Cc,
2466
+ legend: Ic,
2467
+ items: Sc,
2468
+ vertical: jc,
2469
+ horizontal: Tc
2470
+ }, Bc = ({
2471
+ children: t,
2472
+ orientation: n = "vertical",
2473
+ label: a,
2474
+ className: r
2475
+ }) => {
2476
+ const o = [
2477
+ Re.group,
2478
+ r ?? ""
2479
+ ].filter(Boolean).join(" "), s = [
2480
+ Re.items,
2481
+ n === "horizontal" ? Re.horizontal : Re.vertical
2482
+ ].join(" ");
2483
+ return /* @__PURE__ */ d("fieldset", { className: o, children: [
2484
+ a && /* @__PURE__ */ e("legend", { className: Re.legend, children: a }),
2485
+ /* @__PURE__ */ e("div", { className: s, children: t })
2486
+ ] });
2487
+ };
2488
+ Bc.displayName = "CheckboxGroup";
2489
+ const qc = "_track_xhekd_3", Ec = "_fill_xhekd_13", Dc = "_indeterminate_xhekd_22", bt = {
2490
+ track: qc,
2491
+ fill: Ec,
2492
+ indeterminate: Dc
2493
+ }, on = ({ value: t, className: n }) => {
2494
+ const a = t === void 0, r = a ? 0 : Math.min(100, Math.max(0, t));
2495
+ return /* @__PURE__ */ e(
2496
+ "div",
2497
+ {
2498
+ role: "progressbar",
2499
+ "aria-valuemin": a ? void 0 : 0,
2500
+ "aria-valuemax": a ? void 0 : 100,
2501
+ "aria-valuenow": a ? void 0 : r,
2502
+ className: [bt.track, n ?? ""].filter(Boolean).join(" "),
2503
+ children: /* @__PURE__ */ e(
2504
+ "div",
2505
+ {
2506
+ className: [bt.fill, a ? bt.indeterminate : ""].filter(Boolean).join(" "),
2507
+ style: a ? void 0 : { width: `${r}%` }
2508
+ }
2509
+ )
2510
+ }
2511
+ );
2512
+ };
2513
+ on.displayName = "ProgressBar";
2514
+ const Pc = "_item_1cak6_1", Oc = "_fileIcon_1cak6_13", Mc = "_content_1cak6_22", Lc = "_fileName_1cak6_30", Wc = "_fileSize_1cak6_41", Ue = {
2515
+ item: Pc,
2516
+ fileIcon: Oc,
2517
+ content: Mc,
2518
+ fileName: Lc,
2519
+ fileSize: Wc
2520
+ };
2521
+ function zc(t) {
2522
+ var a;
2523
+ switch ((a = t.split(".").pop()) == null ? void 0 : a.toLowerCase()) {
2524
+ case "pdf":
2525
+ return $n;
2526
+ case "doc":
2527
+ case "docx":
2528
+ return xn;
2529
+ case "xls":
2530
+ case "xlsx":
2531
+ return Nn;
2532
+ default:
2533
+ return yn;
2534
+ }
2535
+ }
2536
+ function Fc(t) {
2537
+ return t < 1024 ? `${t}B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)}kb` : `${(t / (1024 * 1024)).toFixed(1)}mb`;
2538
+ }
2539
+ const Ac = ({
2540
+ fileName: t,
2541
+ status: n,
2542
+ progress: a = 0,
2543
+ fileSize: r,
2544
+ onDelete: o,
2545
+ className: s
2546
+ }) => {
2547
+ const l = zc(t);
2548
+ return /* @__PURE__ */ d("div", { className: [Ue.item, s ?? ""].filter(Boolean).join(" "), children: [
2549
+ /* @__PURE__ */ e(
2550
+ B,
2551
+ {
2552
+ icon: l,
2553
+ className: Ue.fileIcon,
2554
+ "aria-hidden": !0
2555
+ }
2556
+ ),
2557
+ /* @__PURE__ */ d("div", { className: Ue.content, children: [
2558
+ /* @__PURE__ */ e("span", { className: Ue.fileName, children: t }),
2559
+ n === "uploading" ? /* @__PURE__ */ e(on, { value: a }) : /* @__PURE__ */ e("span", { className: Ue.fileSize, children: r !== void 0 ? Fc(r) : "" })
2560
+ ] }),
2561
+ n === "uploaded" && /* @__PURE__ */ e(
2562
+ U,
2563
+ {
2564
+ icon: gn,
2565
+ variant: "brandPrimary",
2566
+ iconSize: "small",
2567
+ "aria-label": `Remove ${t}`,
2568
+ onClick: o
2569
+ }
2570
+ )
2571
+ ] });
2572
+ };
2573
+ Ac.displayName = "FileUploaderListItem";
2574
+ const Gc = "_wrapper_1k3np_1", Rc = "_label_1k3np_9", Uc = "_container_1k3np_19", Hc = "_dragActive_1k3np_31", Vc = "_dropZone_1k3np_38", Yc = "_uploadIcon_1k3np_48", Kc = "_dropText_1k3np_54", Zc = "_clickToUpload_1k3np_63", Jc = "_requirements_1k3np_86", Xc = "_fileList_1k3np_97", Qc = "_helperText_1k3np_106", ed = "_hiddenInput_1k3np_116", de = {
2575
+ wrapper: Gc,
2576
+ label: Rc,
2577
+ container: Uc,
2578
+ dragActive: Hc,
2579
+ dropZone: Vc,
2580
+ uploadIcon: Yc,
2581
+ dropText: Kc,
2582
+ clickToUpload: Zc,
2583
+ requirements: Jc,
2584
+ fileList: Xc,
2585
+ helperText: Qc,
2586
+ hiddenInput: ed
2587
+ }, td = ({
2588
+ label: t,
2589
+ helperText: n,
2590
+ requirements: a,
2591
+ children: r,
2592
+ onFilesSelected: o,
2593
+ accept: s,
2594
+ multiple: l,
2595
+ className: i
2596
+ }) => {
2597
+ const _ = A(null), [h, c] = I(!1), p = (f) => {
2598
+ f.preventDefault(), c(!0);
2599
+ }, u = (f) => {
2600
+ f.currentTarget.contains(f.relatedTarget) || c(!1);
2601
+ }, m = (f) => {
2602
+ f.preventDefault(), c(!1);
2603
+ const w = Array.from(f.dataTransfer.files);
2604
+ w.length && (o == null || o(w));
2605
+ }, b = (f) => {
2606
+ const w = Array.from(f.target.files ?? []);
2607
+ w.length && (o == null || o(w)), f.target.value = "";
2608
+ }, g = [
2609
+ de.container,
2610
+ h ? de.dragActive : ""
2611
+ ].filter(Boolean).join(" ");
2612
+ return /* @__PURE__ */ d("div", { className: [de.wrapper, i ?? ""].filter(Boolean).join(" "), children: [
2613
+ t && /* @__PURE__ */ e("span", { className: de.label, children: t }),
2614
+ /* @__PURE__ */ d(
2615
+ "div",
2616
+ {
2617
+ className: g,
2618
+ onDragOver: p,
2619
+ onDragLeave: u,
2620
+ onDrop: m,
2621
+ children: [
2622
+ /* @__PURE__ */ d("div", { className: de.dropZone, children: [
2623
+ /* @__PURE__ */ e(B, { icon: wn, className: de.uploadIcon, "aria-hidden": !0 }),
2624
+ /* @__PURE__ */ d("p", { className: de.dropText, children: [
2625
+ /* @__PURE__ */ e(
2626
+ "button",
2627
+ {
2628
+ type: "button",
2629
+ className: de.clickToUpload,
2630
+ onClick: () => {
2631
+ var f;
2632
+ return (f = _.current) == null ? void 0 : f.click();
2633
+ },
2634
+ children: "Click to upload"
2635
+ }
2636
+ ),
2637
+ ", or drag and drop files here."
2638
+ ] }),
2639
+ a && /* @__PURE__ */ e("p", { className: de.requirements, children: a })
2640
+ ] }),
2641
+ r && /* @__PURE__ */ e("div", { className: de.fileList, children: r })
2642
+ ]
2643
+ }
2644
+ ),
2645
+ n && /* @__PURE__ */ e("span", { className: de.helperText, children: n }),
2646
+ /* @__PURE__ */ e(
2647
+ "input",
2648
+ {
2649
+ ref: _,
2650
+ type: "file",
2651
+ className: de.hiddenInput,
2652
+ accept: s,
2653
+ multiple: l,
2654
+ onChange: b
2655
+ }
2656
+ )
2657
+ ] });
2658
+ };
2659
+ td.displayName = "FileUploader";
2660
+ const nd = "_root_1kadq_1", ad = "_label_1kadq_10", rd = "_inputWrapper_1kadq_21", sd = "_wrapperDisabled_1kadq_34", od = "_wrapperFocused_1kadq_38", ld = "_wrapperError_1kadq_43", id = "_leadingIcon_1kadq_59", cd = "_textarea_1kadq_67", dd = "_errorIcon_1kadq_93", _d = "_disabled_1kadq_100", pd = "_errorText_1kadq_106", hd = "_hintText_1kadq_107", ud = "_required_1kadq_122", le = {
2661
+ root: nd,
2662
+ label: ad,
2663
+ inputWrapper: rd,
2664
+ wrapperDisabled: sd,
2665
+ wrapperFocused: od,
2666
+ wrapperError: ld,
2667
+ leadingIcon: id,
2668
+ textarea: cd,
2669
+ errorIcon: dd,
2670
+ disabled: _d,
2671
+ errorText: pd,
2672
+ hintText: hd,
2673
+ required: ud
2674
+ }, md = M.forwardRef(
2675
+ ({ label: t, error: n, hint: a, leadingIcon: r, className: o, disabled: s, onFocus: l, onBlur: i, rows: _ = 5, ...h }, c) => {
2676
+ const p = ce(), u = h["aria-label"] ? void 0 : p, m = n ? `${p}-error` : void 0, b = a ? `${p}-hint` : void 0, [g, f] = I(!1), w = (P) => {
2677
+ f(!0), l == null || l(P);
2678
+ }, y = (P) => {
2679
+ f(!1), i == null || i(P);
2680
+ }, C = s ? "var(--icon-color-themeable-disabled)" : "var(--icon-color-themeable-primary)", j = [
2681
+ le.inputWrapper,
2682
+ g ? le.wrapperFocused : "",
2683
+ n ? le.wrapperError : "",
2684
+ s ? le.wrapperDisabled : ""
2685
+ ].filter(Boolean).join(" ");
2686
+ return /* @__PURE__ */ d("div", { className: [le.root, s ? le.disabled : "", o ?? ""].filter(Boolean).join(" "), children: [
2687
+ t && /* @__PURE__ */ d("label", { htmlFor: u, className: le.label, children: [
2688
+ t,
2689
+ h.required && /* @__PURE__ */ e("span", { className: le.required, "aria-hidden": !0, children: " *" })
2690
+ ] }),
2691
+ /* @__PURE__ */ d("div", { className: j, children: [
2692
+ r && /* @__PURE__ */ e(z, { icon: r, className: le.leadingIcon, color: C }),
2693
+ /* @__PURE__ */ e(
2694
+ "textarea",
2695
+ {
2696
+ ref: c,
2697
+ id: u,
2698
+ rows: _,
2699
+ className: le.textarea,
2700
+ disabled: s,
2701
+ "aria-invalid": !!n,
2702
+ "aria-describedby": [m, b].filter(Boolean).join(" ") || void 0,
2703
+ onFocus: w,
2704
+ onBlur: y,
2705
+ ...h
2706
+ }
2707
+ ),
2708
+ n && /* @__PURE__ */ e(
2709
+ z,
2710
+ {
2711
+ icon: Be,
2712
+ className: le.errorIcon,
2713
+ color: "var(--icon-color-static-state-error)"
2714
+ }
2715
+ )
2716
+ ] }),
2717
+ n && /* @__PURE__ */ e("span", { id: m, className: le.errorText, role: "alert", children: n }),
2718
+ a && !n && /* @__PURE__ */ e("span", { id: b, className: le.hintText, children: a })
2719
+ ] });
2720
+ }
2721
+ );
2722
+ md.displayName = "TextArea";
2723
+ const bd = "_root_1qjer_1", vd = "_label_1qjer_10", fd = "_inputWrapper_1qjer_21", gd = "_wrapperDisabled_1qjer_35", yd = "_wrapperFocused_1qjer_39", Nd = "_wrapperError_1qjer_44", xd = "_input_1qjer_21", $d = "_errorIcon_1qjer_85", wd = "_disabled_1qjer_91", kd = "_errorText_1qjer_97", Cd = "_hintText_1qjer_98", Id = "_required_1qjer_113", _e = {
2724
+ root: bd,
2725
+ label: vd,
2726
+ inputWrapper: fd,
2727
+ wrapperDisabled: gd,
2728
+ wrapperFocused: yd,
2729
+ wrapperError: Nd,
2730
+ input: xd,
2731
+ errorIcon: $d,
2732
+ disabled: wd,
2733
+ errorText: kd,
2734
+ hintText: Cd,
2735
+ required: Id
2736
+ }, Sd = M.forwardRef(
2737
+ ({ label: t, error: n, hint: a, required: r, className: o, disabled: s, onFocus: l, onBlur: i, ..._ }, h) => {
2738
+ const c = ce(), p = _["aria-label"] ? void 0 : c, u = n ? `${c}-error` : void 0, m = a ? `${c}-hint` : void 0, [b, g] = I(!1), [f, w] = I(!1), y = (P) => {
2739
+ g(!0), l == null || l(P);
2740
+ }, C = (P) => {
2741
+ g(!1), i == null || i(P);
2742
+ }, j = [
2743
+ _e.inputWrapper,
2744
+ b ? _e.wrapperFocused : "",
2745
+ n ? _e.wrapperError : "",
2746
+ s ? _e.wrapperDisabled : ""
2747
+ ].filter(Boolean).join(" ");
2748
+ return /* @__PURE__ */ d("div", { className: [_e.root, s ? _e.disabled : "", o ?? ""].filter(Boolean).join(" "), children: [
2749
+ t && /* @__PURE__ */ d("label", { htmlFor: p, className: _e.label, children: [
2750
+ t,
2751
+ r && /* @__PURE__ */ e("span", { className: _e.required, "aria-hidden": !0, children: " *" })
2752
+ ] }),
2753
+ /* @__PURE__ */ d("div", { className: j, children: [
2754
+ /* @__PURE__ */ e(
2755
+ "input",
2756
+ {
2757
+ ref: h,
2758
+ id: p,
2759
+ type: f ? "text" : "password",
2760
+ className: _e.input,
2761
+ disabled: s,
2762
+ "aria-invalid": !!n,
2763
+ "aria-describedby": [u, m].filter(Boolean).join(" ") || void 0,
2764
+ onFocus: y,
2765
+ onBlur: C,
2766
+ ..._
2767
+ }
2768
+ ),
2769
+ n ? /* @__PURE__ */ e(
2770
+ z,
2771
+ {
2772
+ icon: Be,
2773
+ className: _e.errorIcon,
2774
+ color: "var(--icon-color-static-state-error)"
2775
+ }
2776
+ ) : /* @__PURE__ */ e(
2777
+ U,
2778
+ {
2779
+ icon: f ? kn : Cn,
2780
+ variant: "brandPrimary",
2781
+ iconSize: "small",
2782
+ "aria-label": f ? "Hide password" : "Show password",
2783
+ disabled: s,
2784
+ tabIndex: -1,
2785
+ onMouseDown: (P) => {
2786
+ P.preventDefault(), w((W) => !W);
2787
+ }
2788
+ }
2789
+ )
2790
+ ] }),
2791
+ n && /* @__PURE__ */ e("span", { id: u, className: _e.errorText, role: "alert", children: n }),
2792
+ a && !n && /* @__PURE__ */ e("span", { id: m, className: _e.hintText, children: a })
2793
+ ] });
2794
+ }
2795
+ );
2796
+ Sd.displayName = "PasswordField";
2797
+ const jd = "_toast_1va1n_1", Td = "_toastSlideIn_1va1n_1", Bd = "_dismissing_1va1n_14", qd = "_toastSlideOut_1va1n_1", Ed = "_error_1va1n_42", Dd = "_warning_1va1n_46", Pd = "_success_1va1n_50", Od = "_information_1va1n_54", Md = "_none_1va1n_58", Ld = "_message_1va1n_64", Wd = "_messageColored_1va1n_77", zd = "_messageNone_1va1n_81", Fd = "_actionColored_1va1n_87", Ie = {
2798
+ toast: jd,
2799
+ toastSlideIn: Td,
2800
+ dismissing: Bd,
2801
+ toastSlideOut: qd,
2802
+ error: Ed,
2803
+ warning: Dd,
2804
+ success: Pd,
2805
+ information: Od,
2806
+ none: Md,
2807
+ message: Ld,
2808
+ messageColored: Wd,
2809
+ messageNone: zd,
2810
+ actionColored: Fd
2811
+ }, Ad = {
2812
+ error: Be,
2813
+ warning: kt,
2814
+ success: wt,
2815
+ information: $t
2816
+ }, Gd = 220, Rd = ({
2817
+ urgency: t = "none",
2818
+ children: n,
2819
+ action: a,
2820
+ onAction: r,
2821
+ duration: o = 5e3,
2822
+ onDismiss: s,
2823
+ className: l
2824
+ }) => {
2825
+ const [i, _] = I(!1);
2826
+ Y(() => {
2827
+ if (!o) return;
2828
+ const m = setTimeout(() => _(!0), o);
2829
+ return () => clearTimeout(m);
2830
+ }, [o]), Y(() => {
2831
+ if (!i) return;
2832
+ const m = setTimeout(() => s == null ? void 0 : s(), Gd);
2833
+ return () => clearTimeout(m);
2834
+ }, [i, s]);
2835
+ const h = t !== "none", c = h ? Ad[t] : null, p = [
2836
+ Ie.toast,
2837
+ Ie[t],
2838
+ i ? Ie.dismissing : "",
2839
+ l
2840
+ ].filter(Boolean).join(" "), u = [
2841
+ Ie.message,
2842
+ h ? Ie.messageColored : Ie.messageNone
2843
+ ].join(" ");
2844
+ return /* @__PURE__ */ d("div", { className: p, role: "status", "aria-live": "polite", children: [
2845
+ c && /* @__PURE__ */ e(z, { icon: c, size: "medium", color: "var(--text-color-static-light)" }),
2846
+ /* @__PURE__ */ e("span", { className: u, children: n }),
2847
+ a && /* @__PURE__ */ e(
2848
+ V,
2849
+ {
2850
+ variant: "neutral",
2851
+ emphasis: "tertiary",
2852
+ className: h ? Ie.actionColored : void 0,
2853
+ onClick: r,
2854
+ children: a
2855
+ }
2856
+ )
2857
+ ] });
2858
+ };
2859
+ Rd.displayName = "Toast";
2860
+ const Ud = "_wrapper_12hwj_3", Hd = "_disabled_12hwj_13", Vd = "_label_12hwj_19", Yd = "_asterisk_12hwj_38", st = {
2861
+ wrapper: Ud,
2862
+ disabled: Hd,
2863
+ label: Vd,
2864
+ asterisk: Yd
2865
+ }, Kd = M.forwardRef(
2866
+ ({ label: t, required: n, disabled: a, id: r, className: o, ...s }, l) => /* @__PURE__ */ d(
2867
+ "label",
2868
+ {
2869
+ className: [st.wrapper, a ? st.disabled : "", o ?? ""].filter(Boolean).join(" "),
2870
+ children: [
2871
+ /* @__PURE__ */ e(St, { ref: l, id: r, disabled: a, ...s }),
2872
+ t && /* @__PURE__ */ d("span", { className: st.label, children: [
2873
+ t,
2874
+ n && /* @__PURE__ */ e("span", { className: st.asterisk, "aria-hidden": "true", children: "*" })
2875
+ ] })
2876
+ ]
2877
+ }
2878
+ )
2879
+ );
2880
+ Kd.displayName = "SwitchItem";
2881
+ const Zd = "_group_1v0dq_3", Jd = "_legend_1v0dq_12", Xd = "_items_1v0dq_25", Qd = "_vertical_1v0dq_29", e_ = "_horizontal_1v0dq_34", He = {
2882
+ group: Zd,
2883
+ legend: Jd,
2884
+ items: Xd,
2885
+ vertical: Qd,
2886
+ horizontal: e_
2887
+ }, t_ = ({
2888
+ children: t,
2889
+ orientation: n = "vertical",
2890
+ label: a,
2891
+ className: r
2892
+ }) => {
2893
+ const o = [He.group, r ?? ""].filter(Boolean).join(" "), s = [
2894
+ He.items,
2895
+ n === "horizontal" ? He.horizontal : He.vertical
2896
+ ].join(" ");
2897
+ return /* @__PURE__ */ d("fieldset", { className: o, children: [
2898
+ a && /* @__PURE__ */ e("legend", { className: He.legend, children: a }),
2899
+ /* @__PURE__ */ e("div", { className: s, children: t })
2900
+ ] });
2901
+ };
2902
+ t_.displayName = "SwitchGroup";
2903
+ const n_ = "_hitArea_f3688_3", a_ = "_disabled_f3688_15", r_ = "_checked_f3688_20", s_ = "_input_f3688_31", ot = {
2904
+ hitArea: n_,
2905
+ disabled: a_,
2906
+ checked: r_,
2907
+ input: s_
2908
+ }, ln = M.forwardRef(
2909
+ ({ disabled: t, className: n, id: a, checked: r = !1, onChange: o, name: s, ...l }, i) => {
2910
+ const _ = t ? "var(--icon-color-themeable-disabled)" : r ? "var(--icon-color-static-brand-primary)" : "var(--icon-color-themeable-primary)";
2911
+ return /* @__PURE__ */ d(
2912
+ "span",
2913
+ {
2914
+ className: [
2915
+ ot.hitArea,
2916
+ r ? ot.checked : "",
2917
+ t ? ot.disabled : "",
2918
+ n ?? ""
2919
+ ].filter(Boolean).join(" "),
2920
+ children: [
2921
+ /* @__PURE__ */ e(
2922
+ "input",
2923
+ {
2924
+ ref: i,
2925
+ type: "radio",
2926
+ id: a,
2927
+ name: s,
2928
+ className: ot.input,
2929
+ disabled: t,
2930
+ checked: r,
2931
+ onChange: o,
2932
+ ...l
2933
+ }
2934
+ ),
2935
+ /* @__PURE__ */ e(
2936
+ B,
2937
+ {
2938
+ icon: r ? En : Dn,
2939
+ style: { color: _, width: 16, height: 16, flexShrink: 0 },
2940
+ "aria-hidden": !0
2941
+ }
2942
+ )
2943
+ ]
2944
+ }
2945
+ );
2946
+ }
2947
+ );
2948
+ ln.displayName = "RadioButton";
2949
+ const o_ = "_wrapper_13exw_3", l_ = "_disabled_13exw_10", i_ = "_label_13exw_16", c_ = "_asterisk_13exw_35", lt = {
2950
+ wrapper: o_,
2951
+ disabled: l_,
2952
+ label: i_,
2953
+ asterisk: c_
2954
+ }, d_ = M.forwardRef(
2955
+ ({ label: t, required: n, disabled: a, id: r, className: o, ...s }, l) => /* @__PURE__ */ d(
2956
+ "label",
2957
+ {
2958
+ className: [lt.wrapper, a ? lt.disabled : "", o ?? ""].filter(Boolean).join(" "),
2959
+ children: [
2960
+ /* @__PURE__ */ e(ln, { ref: l, id: r, disabled: a, ...s }),
2961
+ t && /* @__PURE__ */ d("span", { className: lt.label, children: [
2962
+ t,
2963
+ n && /* @__PURE__ */ e("span", { className: lt.asterisk, "aria-hidden": "true", children: "*" })
2964
+ ] })
2965
+ ]
2966
+ }
2967
+ )
2968
+ );
2969
+ d_.displayName = "RadioButtonItem";
2970
+ const __ = "_group_1y2le_3", p_ = "_legend_1y2le_12", h_ = "_items_1y2le_25", u_ = "_vertical_1y2le_29", m_ = "_horizontal_1y2le_33", Ve = {
2971
+ group: __,
2972
+ legend: p_,
2973
+ items: h_,
2974
+ vertical: u_,
2975
+ horizontal: m_
2976
+ }, b_ = ({
2977
+ children: t,
2978
+ orientation: n = "vertical",
2979
+ label: a,
2980
+ name: r,
2981
+ value: o,
2982
+ defaultValue: s,
2983
+ onChange: l,
2984
+ className: i
2985
+ }) => {
2986
+ const _ = o !== void 0, [h, c] = I(s ?? ""), p = _ ? o : h, u = (f) => {
2987
+ _ || c(f), l == null || l(f);
2988
+ }, m = [Ve.group, i ?? ""].filter(Boolean).join(" "), b = [
2989
+ Ve.items,
2990
+ n === "horizontal" ? Ve.horizontal : Ve.vertical
2991
+ ].join(" "), g = M.Children.map(t, (f) => {
2992
+ if (!M.isValidElement(f)) return f;
2993
+ const w = f.props.value;
2994
+ return M.cloneElement(f, {
2995
+ name: r,
2996
+ checked: w !== void 0 ? w === p : void 0,
2997
+ onChange: w !== void 0 ? () => u(w) : f.props.onChange
2998
+ });
2999
+ });
3000
+ return /* @__PURE__ */ d("fieldset", { className: m, children: [
3001
+ a && /* @__PURE__ */ e("legend", { className: Ve.legend, children: a }),
3002
+ /* @__PURE__ */ e("div", { className: b, children: g })
3003
+ ] });
3004
+ };
3005
+ b_.displayName = "RadioButtonGroup";
3006
+ const v_ = "_wrapper_13jts_1", f_ = "_popover_13jts_8", g_ = "_open_13jts_36", y_ = "_bottom_13jts_44", N_ = "_top_13jts_50", x_ = "_right_13jts_56", $_ = "_left_13jts_62", w_ = "_header_13jts_70", k_ = "_label_13jts_78", C_ = "_content_13jts_92", Se = {
3007
+ wrapper: v_,
3008
+ popover: f_,
3009
+ open: g_,
3010
+ bottom: y_,
3011
+ top: N_,
3012
+ right: x_,
3013
+ left: $_,
3014
+ header: w_,
3015
+ label: k_,
3016
+ content: C_
3017
+ }, I_ = ({
3018
+ label: t,
3019
+ content: n,
3020
+ children: a,
3021
+ placement: r = "bottom"
3022
+ }) => {
3023
+ const [o, s] = I(!1), l = ce(), i = A(null);
3024
+ Y(() => {
3025
+ if (!o) return;
3026
+ const h = (c) => {
3027
+ i.current && !i.current.contains(c.target) && s(!1);
3028
+ };
3029
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
3030
+ }, [o]), Y(() => {
3031
+ if (!o) return;
3032
+ const h = (c) => {
3033
+ c.key === "Escape" && s(!1);
3034
+ };
3035
+ return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
3036
+ }, [o]);
3037
+ const _ = M.cloneElement(a, {
3038
+ "aria-expanded": o,
3039
+ "aria-controls": l,
3040
+ onClick: (h) => {
3041
+ var c, p;
3042
+ s((u) => !u), (p = (c = a.props).onClick) == null || p.call(c, h);
3043
+ }
3044
+ });
3045
+ return /* @__PURE__ */ d("span", { ref: i, className: Se.wrapper, children: [
3046
+ _,
3047
+ /* @__PURE__ */ d(
3048
+ "span",
3049
+ {
3050
+ id: l,
3051
+ role: "dialog",
3052
+ "aria-label": t,
3053
+ className: [
3054
+ Se.popover,
3055
+ Se[r],
3056
+ o ? Se.open : ""
3057
+ ].filter(Boolean).join(" "),
3058
+ children: [
3059
+ /* @__PURE__ */ d("span", { className: Se.header, children: [
3060
+ /* @__PURE__ */ e("span", { className: Se.label, children: t }),
3061
+ /* @__PURE__ */ e(
3062
+ U,
3063
+ {
3064
+ icon: Xe,
3065
+ variant: "brandPrimary",
3066
+ iconSize: "xs",
3067
+ "aria-label": "Dismiss",
3068
+ onClick: () => s(!1)
3069
+ }
3070
+ )
3071
+ ] }),
3072
+ /* @__PURE__ */ e("span", { className: Se.content, children: n })
3073
+ ]
3074
+ }
3075
+ )
3076
+ ] });
3077
+ };
3078
+ I_.displayName = "Popover";
3079
+ const S_ = "_picker_1nyqb_3", j_ = "_selectedTime_1nyqb_19", T_ = "_selectedTimeText_1nyqb_27", B_ = "_columnsArea_1nyqb_37", q_ = "_columnWrapper_1nyqb_45", E_ = "_scrollColumn_1nyqb_57", D_ = "_scrollSpacer_1nyqb_71", P_ = "_scrollItem_1nyqb_78", O_ = "_scrollItemSelected_1nyqb_95", M_ = "_gradientOverlay_1nyqb_113", L_ = "_periodSelector_1nyqb_128", W_ = "_periodBtn_1nyqb_134", z_ = "_periodBtnSelected_1nyqb_155", F_ = "_actions_1nyqb_173", te = {
3080
+ picker: S_,
3081
+ selectedTime: j_,
3082
+ selectedTimeText: T_,
3083
+ columnsArea: B_,
3084
+ columnWrapper: q_,
3085
+ scrollColumn: E_,
3086
+ scrollSpacer: D_,
3087
+ scrollItem: P_,
3088
+ scrollItemSelected: O_,
3089
+ gradientOverlay: M_,
3090
+ periodSelector: L_,
3091
+ periodBtn: W_,
3092
+ periodBtnSelected: z_,
3093
+ actions: F_
3094
+ }, Mt = 32, A_ = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], G_ = Array.from({ length: 24 }, (t, n) => n), R_ = Array.from({ length: 60 }, (t, n) => n);
3095
+ function cn(t) {
3096
+ return t === 0 ? { hour: 12, period: "AM" } : t === 12 ? { hour: 12, period: "PM" } : t > 12 ? { hour: t - 12, period: "PM" } : { hour: t, period: "AM" };
3097
+ }
3098
+ function Lt(t, n) {
3099
+ return n === "AM" ? t === 12 ? 0 : t : t === 12 ? 12 : t + 12;
3100
+ }
3101
+ function U_(t, n, a) {
3102
+ if (a === "12h") {
3103
+ const { hour: r, period: o } = cn(t);
3104
+ return `${r}:${String(n).padStart(2, "0")} ${o.toLowerCase()}`;
3105
+ }
3106
+ return `${String(t).padStart(2, "0")}:${String(n).padStart(2, "0")}`;
3107
+ }
3108
+ const vt = ({ items: t, value: n, onSelect: a, pad: r = !0 }) => {
3109
+ const o = A(null), s = A(!1);
3110
+ return Y(() => {
3111
+ const l = o.current;
3112
+ if (!l) return;
3113
+ const i = t.indexOf(n);
3114
+ if (i < 0) return;
3115
+ const _ = i * Mt;
3116
+ s.current ? l.scrollTo({ top: _, behavior: "smooth" }) : (l.scrollTop = _, s.current = !0);
3117
+ }, [n, t]), Y(() => {
3118
+ const l = o.current;
3119
+ if (!l) return;
3120
+ const i = () => {
3121
+ const _ = Math.round(l.scrollTop / Mt), h = Math.max(0, Math.min(_, t.length - 1));
3122
+ t[h] !== n && a(t[h]);
3123
+ };
3124
+ return l.addEventListener("scrollend", i), () => l.removeEventListener("scrollend", i);
3125
+ }, [t, n, a]), /* @__PURE__ */ d("div", { className: te.columnWrapper, children: [
3126
+ /* @__PURE__ */ d("div", { ref: o, className: te.scrollColumn, children: [
3127
+ /* @__PURE__ */ e("div", { className: te.scrollSpacer, "aria-hidden": "true" }),
3128
+ t.map((l) => /* @__PURE__ */ e(
3129
+ "button",
3130
+ {
3131
+ type: "button",
3132
+ className: [
3133
+ te.scrollItem,
3134
+ l === n ? te.scrollItemSelected : ""
3135
+ ].filter(Boolean).join(" "),
3136
+ onClick: () => a(l),
3137
+ children: r ? String(l).padStart(2, "0") : l
3138
+ },
3139
+ l
3140
+ )),
3141
+ /* @__PURE__ */ e("div", { className: te.scrollSpacer, "aria-hidden": "true" })
3142
+ ] }),
3143
+ /* @__PURE__ */ e("div", { className: te.gradientOverlay, "aria-hidden": "true" })
3144
+ ] });
3145
+ }, H_ = ({
3146
+ value: t,
3147
+ format: n = "12h",
3148
+ cancelLabel: a = "Cancel",
3149
+ confirmLabel: r = "OK",
3150
+ className: o,
3151
+ onConfirm: s,
3152
+ onCancel: l
3153
+ }) => {
3154
+ const i = t ?? { hours: 12, minutes: 0 }, [_, h] = I(i.hours), [c, p] = I(i.minutes), u = cn(i.hours), [m, b] = I(u.hour), [g, f] = I(u.period), w = (j) => {
3155
+ b(j), h(Lt(j, g));
3156
+ }, y = (j) => {
3157
+ f(j), h(Lt(m, j));
3158
+ }, C = () => {
3159
+ s == null || s({ hours: _, minutes: c });
3160
+ };
3161
+ return /* @__PURE__ */ d("div", { className: [te.picker, o ?? ""].filter(Boolean).join(" "), children: [
3162
+ /* @__PURE__ */ e("div", { className: te.selectedTime, children: /* @__PURE__ */ e("span", { className: te.selectedTimeText, children: U_(_, c, n) }) }),
3163
+ /* @__PURE__ */ d("div", { className: te.columnsArea, children: [
3164
+ n === "12h" ? /* @__PURE__ */ e(
3165
+ vt,
3166
+ {
3167
+ items: A_,
3168
+ value: m,
3169
+ onSelect: w,
3170
+ pad: !1
3171
+ }
3172
+ ) : /* @__PURE__ */ e(
3173
+ vt,
3174
+ {
3175
+ items: G_,
3176
+ value: _,
3177
+ onSelect: h
3178
+ }
3179
+ ),
3180
+ /* @__PURE__ */ e(
3181
+ vt,
3182
+ {
3183
+ items: R_,
3184
+ value: c,
3185
+ onSelect: p
3186
+ }
3187
+ )
3188
+ ] }),
3189
+ n === "12h" && /* @__PURE__ */ e("div", { className: te.periodSelector, children: ["AM", "PM"].map((j) => /* @__PURE__ */ e(
3190
+ "button",
3191
+ {
3192
+ type: "button",
3193
+ className: [
3194
+ te.periodBtn,
3195
+ g === j ? te.periodBtnSelected : ""
3196
+ ].filter(Boolean).join(" "),
3197
+ onClick: () => y(j),
3198
+ children: j
3199
+ },
3200
+ j
3201
+ )) }),
3202
+ /* @__PURE__ */ d("div", { className: te.actions, children: [
3203
+ /* @__PURE__ */ e(V, { variant: "brandPrimary", emphasis: "tertiary", onClick: l, children: a }),
3204
+ /* @__PURE__ */ e(V, { variant: "brandPrimary", emphasis: "tertiary", onClick: C, children: r })
3205
+ ] })
3206
+ ] });
3207
+ };
3208
+ H_.displayName = "TimePicker";
3209
+ const V_ = "_toolbar_rtdu6_3", Y_ = "_search_rtdu6_17", K_ = "_actions_rtdu6_24", Z_ = "_avatarButton_rtdu6_32", it = {
3210
+ toolbar: V_,
3211
+ search: Y_,
3212
+ actions: K_,
3213
+ avatarButton: Z_
3214
+ }, J_ = ({
3215
+ avatarSrc: t,
3216
+ avatarInitials: n = "AB",
3217
+ className: a
3218
+ }) => /* @__PURE__ */ d("div", { className: [it.toolbar, a ?? ""].filter(Boolean).join(" "), children: [
3219
+ /* @__PURE__ */ e("div", { className: it.search, children: /* @__PURE__ */ e(
3220
+ an,
3221
+ {
3222
+ "aria-label": "Search",
3223
+ placeholder: "Search",
3224
+ leadingIcon: Ct
3225
+ }
3226
+ ) }),
3227
+ /* @__PURE__ */ d("div", { className: it.actions, children: [
3228
+ /* @__PURE__ */ e(
3229
+ U,
3230
+ {
3231
+ icon: In,
3232
+ variant: "brandPrimary",
3233
+ "aria-label": "Messages"
3234
+ }
3235
+ ),
3236
+ /* @__PURE__ */ e(
3237
+ U,
3238
+ {
3239
+ icon: Sn,
3240
+ variant: "brandPrimary",
3241
+ "aria-label": "Notifications"
3242
+ }
3243
+ ),
3244
+ /* @__PURE__ */ e(
3245
+ U,
3246
+ {
3247
+ icon: jn,
3248
+ variant: "brandPrimary",
3249
+ "aria-label": "Settings"
3250
+ }
3251
+ ),
3252
+ /* @__PURE__ */ e("button", { type: "button", className: it.avatarButton, "aria-label": "Account menu", children: /* @__PURE__ */ e(
3253
+ ze,
3254
+ {
3255
+ type: t ? "image" : "initials",
3256
+ src: t,
3257
+ initials: n,
3258
+ size: "small"
3259
+ }
3260
+ ) })
3261
+ ] })
3262
+ ] });
3263
+ J_.displayName = "GlobalToolbar";
3264
+ const X_ = "_breadcrumb_ialwi_1", Q_ = "_list_ialwi_5", ep = "_item_ialwi_15", tp = "_separator_ialwi_20", np = "_link_ialwi_29", ap = "_current_ialwi_53", je = {
3265
+ breadcrumb: X_,
3266
+ list: Q_,
3267
+ item: ep,
3268
+ separator: tp,
3269
+ link: np,
3270
+ current: ap
3271
+ }, dn = ({ items: t, className: n }) => t.length === 0 ? null : /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [je.breadcrumb, n ?? ""].filter(Boolean).join(" "), children: /* @__PURE__ */ e("ol", { className: je.list, children: t.map((a, r) => {
3272
+ const o = r === t.length - 1;
3273
+ return /* @__PURE__ */ d("li", { className: je.item, children: [
3274
+ r > 0 && /* @__PURE__ */ e("span", { className: je.separator, "aria-hidden": !0, children: "/" }),
3275
+ o ? /* @__PURE__ */ e("span", { className: je.current, "aria-current": "page", children: a.label }) : a.href ? /* @__PURE__ */ e("a", { href: a.href, className: je.link, children: a.label }) : /* @__PURE__ */ e("button", { type: "button", className: je.link, onClick: a.onClick, children: a.label })
3276
+ ] }, r);
3277
+ }) }) });
3278
+ dn.displayName = "Breadcrumb";
3279
+ const rp = "_header_gdpgf_3", sp = "_left_gdpgf_18", op = "_title_gdpgf_25", lp = "_actions_gdpgf_38", ip = "_overflow_gdpgf_47", cp = "_overflowMenu_gdpgf_51", Oe = {
3280
+ header: rp,
3281
+ left: sp,
3282
+ title: op,
3283
+ actions: lp,
3284
+ overflow: ip,
3285
+ overflowMenu: cp
3286
+ }, dp = ({
3287
+ title: t,
3288
+ breadcrumbs: n,
3289
+ primaryAction: a,
3290
+ secondaryAction: r,
3291
+ tertiaryActions: o,
3292
+ className: s
3293
+ }) => {
3294
+ const [l, i] = I(!1), _ = A(null);
3295
+ Y(() => {
3296
+ if (!l) return;
3297
+ const c = (p) => {
3298
+ _.current && !_.current.contains(p.target) && i(!1);
3299
+ };
3300
+ return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
3301
+ }, [l]), Y(() => {
3302
+ if (!l) return;
3303
+ const c = (p) => {
3304
+ p.key === "Escape" && i(!1);
3305
+ };
3306
+ return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
3307
+ }, [l]);
3308
+ const h = a || r || o && o.length > 0;
3309
+ return /* @__PURE__ */ d("div", { className: [Oe.header, s ?? ""].filter(Boolean).join(" "), children: [
3310
+ /* @__PURE__ */ d("div", { className: Oe.left, children: [
3311
+ /* @__PURE__ */ e("span", { className: Oe.title, children: t }),
3312
+ n && n.length > 0 && /* @__PURE__ */ e(dn, { items: n })
3313
+ ] }),
3314
+ h && /* @__PURE__ */ d("div", { className: Oe.actions, children: [
3315
+ o && o.length > 0 && /* @__PURE__ */ d("div", { ref: _, className: Oe.overflow, children: [
3316
+ /* @__PURE__ */ e(
3317
+ U,
3318
+ {
3319
+ icon: Tn,
3320
+ variant: "brandPrimary",
3321
+ "aria-label": "More actions",
3322
+ "aria-expanded": l,
3323
+ "aria-haspopup": "menu",
3324
+ onClick: () => i((c) => !c)
3325
+ }
3326
+ ),
3327
+ l && /* @__PURE__ */ e("div", { className: Oe.overflowMenu, children: /* @__PURE__ */ e(Ne, { children: o.map((c, p) => /* @__PURE__ */ e(
3328
+ xe,
3329
+ {
3330
+ label: c.label,
3331
+ disabled: c.disabled,
3332
+ onClick: () => {
3333
+ var u;
3334
+ (u = c.onClick) == null || u.call(c), i(!1);
3335
+ }
3336
+ },
3337
+ p
3338
+ )) }) })
3339
+ ] }),
3340
+ r && /* @__PURE__ */ e(
3341
+ V,
3342
+ {
3343
+ variant: "brandPrimary",
3344
+ emphasis: "tertiary",
3345
+ disabled: r.disabled,
3346
+ onClick: r.onClick,
3347
+ children: r.label
3348
+ }
3349
+ ),
3350
+ a && /* @__PURE__ */ e(
3351
+ V,
3352
+ {
3353
+ variant: "brandPrimary",
3354
+ emphasis: "primary",
3355
+ disabled: a.disabled,
3356
+ onClick: a.onClick,
3357
+ children: a.label
3358
+ }
3359
+ )
3360
+ ] })
3361
+ ] });
3362
+ };
3363
+ dp.displayName = "PageHeader";
3364
+ const _p = "_spinner_1mv8i_6", pp = "_brand_1mv8i_14", hp = "_light_1mv8i_18", up = "_neutral_1mv8i_22", Wt = {
3365
+ spinner: _p,
3366
+ "spinner-spin": "_spinner-spin_1mv8i_1",
3367
+ brand: pp,
3368
+ light: hp,
3369
+ neutral: up
3370
+ }, mp = {
3371
+ small: { px: 16, stroke: 2 },
3372
+ medium: { px: 24, stroke: 2 },
3373
+ large: { px: 32, stroke: 3 }
3374
+ }, bp = ({ size: t = "medium", color: n = "brand", className: a }) => {
3375
+ const { px: r, stroke: o } = mp[t], s = (r - o) / 2, l = 2 * Math.PI * s, i = l * 0.75, _ = l - i;
3376
+ return /* @__PURE__ */ e(
3377
+ "svg",
3378
+ {
3379
+ width: r,
3380
+ height: r,
3381
+ viewBox: `0 0 ${r} ${r}`,
3382
+ fill: "none",
3383
+ "aria-hidden": !0,
3384
+ className: [Wt.spinner, Wt[n], a ?? ""].filter(Boolean).join(" "),
3385
+ children: /* @__PURE__ */ e(
3386
+ "circle",
3387
+ {
3388
+ cx: r / 2,
3389
+ cy: r / 2,
3390
+ r: s,
3391
+ stroke: "currentColor",
3392
+ strokeWidth: o,
3393
+ strokeDasharray: `${i} ${_}`,
3394
+ strokeLinecap: "round"
3395
+ }
3396
+ )
3397
+ }
3398
+ );
3399
+ };
3400
+ bp.displayName = "Spinner";
3401
+ const vp = "_logo_hjfdh_3", fp = "_horizontal_hjfdh_10", gp = "_vertical_hjfdh_14", yp = "_large_hjfdh_20", Np = "_mark_hjfdh_24", xp = "_wordmark_hjfdh_29", $p = "_small_hjfdh_36", Ye = {
3402
+ logo: vp,
3403
+ horizontal: fp,
3404
+ vertical: gp,
3405
+ large: yp,
3406
+ mark: Np,
3407
+ wordmark: xp,
3408
+ small: $p
3409
+ }, wp = ({
3410
+ orientation: t = "horizontal",
3411
+ size: n = "large",
3412
+ className: a
3413
+ }) => /* @__PURE__ */ d(
3414
+ "div",
3415
+ {
3416
+ className: [
3417
+ Ye.logo,
3418
+ Ye[t],
3419
+ Ye[n],
3420
+ a ?? ""
3421
+ ].filter(Boolean).join(" "),
3422
+ "aria-label": "base",
3423
+ role: "img",
3424
+ children: [
3425
+ /* @__PURE__ */ e("div", { className: Ye.mark }),
3426
+ /* @__PURE__ */ e("span", { className: Ye.wordmark, children: "base" })
3427
+ ]
3428
+ }
3429
+ );
3430
+ wp.displayName = "Logo";
3431
+ const kp = "_tabGroup_1ycen_3", Cp = "_tab_1ycen_3", Ip = "_active_1ycen_28", Sp = "_disabled_1ycen_28", jp = "_label_1ycen_55", Ke = {
3432
+ tabGroup: kp,
3433
+ tab: Cp,
3434
+ active: Ip,
3435
+ disabled: Sp,
3436
+ label: jp
3437
+ }, Tp = ({
3438
+ tabs: t,
3439
+ activeIndex: n = 0,
3440
+ onChange: a,
3441
+ className: r
3442
+ }) => /* @__PURE__ */ e(
3443
+ "div",
3444
+ {
3445
+ role: "tablist",
3446
+ className: [Ke.tabGroup, r ?? ""].filter(Boolean).join(" "),
3447
+ children: t.map((o, s) => {
3448
+ const l = s === n;
3449
+ return /* @__PURE__ */ e(
3450
+ "button",
3451
+ {
3452
+ role: "tab",
3453
+ type: "button",
3454
+ "aria-selected": l,
3455
+ disabled: o.disabled,
3456
+ className: [
3457
+ Ke.tab,
3458
+ l ? Ke.active : "",
3459
+ o.disabled ? Ke.disabled : ""
3460
+ ].filter(Boolean).join(" "),
3461
+ onClick: () => !o.disabled && (a == null ? void 0 : a(s)),
3462
+ tabIndex: l ? 0 : -1,
3463
+ children: /* @__PURE__ */ e("span", { className: Ke.label, children: o.label })
3464
+ },
3465
+ s
3466
+ );
3467
+ })
3468
+ }
3469
+ );
3470
+ Tp.displayName = "TabGroup";
3471
+ const Bp = "_stepper_tadmn_3", qp = "_stepsRow_tadmn_13", Ep = "_stepItem_tadmn_20", Dp = "_divider_tadmn_29", Pp = "_dividerComplete_tadmn_36", Op = "_badge_tadmn_42", Mp = "_badge_active_tadmn_52", Lp = "_badge_upcoming_tadmn_57", Wp = "_badge_complete_tadmn_62", zp = "_badgeNumber_tadmn_67", Fp = "_stepLabel_tadmn_78", Ap = "_label_active_tadmn_87", Gp = "_label_complete_tadmn_88", Rp = "_label_upcoming_tadmn_92", Up = "_controls_tadmn_98", Hp = "_leftControls_tadmn_106", pe = {
3472
+ stepper: Bp,
3473
+ stepsRow: qp,
3474
+ stepItem: Ep,
3475
+ divider: Dp,
3476
+ dividerComplete: Pp,
3477
+ badge: Op,
3478
+ badge_active: Mp,
3479
+ badge_upcoming: Lp,
3480
+ badge_complete: Wp,
3481
+ badgeNumber: zp,
3482
+ stepLabel: Fp,
3483
+ label_active: Ap,
3484
+ label_complete: Gp,
3485
+ label_upcoming: Rp,
3486
+ controls: Up,
3487
+ leftControls: Hp
3488
+ };
3489
+ function Vp({ state: t, number: n }) {
3490
+ return /* @__PURE__ */ e("div", { className: [pe.badge, pe[`badge_${t}`]].join(" "), children: t === "complete" ? /* @__PURE__ */ e(z, { icon: Yt, size: "small" }) : /* @__PURE__ */ e("span", { className: pe.badgeNumber, children: n }) });
3491
+ }
3492
+ const Yp = ({
3493
+ steps: t,
3494
+ activeStep: n,
3495
+ onNext: a,
3496
+ onBack: r,
3497
+ onCancel: o,
3498
+ onDone: s,
3499
+ cancelLabel: l = "Cancel",
3500
+ backLabel: i = "Back",
3501
+ nextLabel: _ = "Next",
3502
+ doneLabel: h = "Done",
3503
+ className: c
3504
+ }) => {
3505
+ const p = n === 0, u = n === t.length - 1;
3506
+ return /* @__PURE__ */ d("div", { className: [pe.stepper, c ?? ""].filter(Boolean).join(" "), children: [
3507
+ /* @__PURE__ */ e("div", { className: pe.stepsRow, children: t.map((m, b) => {
3508
+ const g = b < n ? "complete" : b === n ? "active" : "upcoming";
3509
+ return /* @__PURE__ */ d(M.Fragment, { children: [
3510
+ b > 0 && /* @__PURE__ */ e("div", { className: [pe.divider, b <= n ? pe.dividerComplete : ""].filter(Boolean).join(" ") }),
3511
+ /* @__PURE__ */ d("div", { className: pe.stepItem, children: [
3512
+ /* @__PURE__ */ e(Vp, { state: g, number: b + 1 }),
3513
+ /* @__PURE__ */ e("span", { className: [pe.stepLabel, pe[`label_${g}`]].join(" "), children: m.label })
3514
+ ] })
3515
+ ] }, b);
3516
+ }) }),
3517
+ /* @__PURE__ */ d("div", { className: pe.controls, children: [
3518
+ /* @__PURE__ */ d("div", { className: pe.leftControls, children: [
3519
+ /* @__PURE__ */ e(V, { variant: "brandPrimary", emphasis: "tertiary", onClick: o, children: l }),
3520
+ !p && /* @__PURE__ */ e(V, { variant: "brandSecondary", emphasis: "secondary", onClick: r, children: i })
3521
+ ] }),
3522
+ /* @__PURE__ */ e(V, { variant: "brandPrimary", emphasis: "primary", onClick: u ? s : a, children: u ? h : _ })
3523
+ ] })
3524
+ ] });
3525
+ };
3526
+ Yp.displayName = "Stepper";
3527
+ const Kp = "_card_bzcoo_1", Zp = "_valueSection_bzcoo_13", Jp = "_value_bzcoo_13", Xp = "_description_bzcoo_28", Qp = "_icon_bzcoo_37", Ze = {
3528
+ card: Kp,
3529
+ valueSection: Zp,
3530
+ value: Jp,
3531
+ description: Xp,
3532
+ icon: Qp
3533
+ }, eh = ({ value: t, description: n, trailingIcon: a, className: r }) => /* @__PURE__ */ d("div", { className: [Ze.card, r ?? ""].filter(Boolean).join(" "), children: [
3534
+ /* @__PURE__ */ d("div", { className: Ze.valueSection, children: [
3535
+ /* @__PURE__ */ e("span", { className: Ze.value, children: t }),
3536
+ /* @__PURE__ */ e("span", { className: Ze.description, children: n })
3537
+ ] }),
3538
+ a && /* @__PURE__ */ e(
3539
+ B,
3540
+ {
3541
+ icon: a,
3542
+ className: Ze.icon,
3543
+ "aria-hidden": !0
3544
+ }
3545
+ )
3546
+ ] });
3547
+ eh.displayName = "KpiCard";
3548
+ const th = "_card_dxqwo_1", nh = "_header_dxqwo_10", ah = "_value_dxqwo_16", rh = "_description_dxqwo_25", sh = "_listWrapper_dxqwo_34", oh = "_paginationRow_dxqwo_39", Me = {
3549
+ card: th,
3550
+ header: nh,
3551
+ value: ah,
3552
+ description: rh,
3553
+ listWrapper: sh,
3554
+ paginationRow: oh
3555
+ }, ct = 10, lh = ({ value: t, description: n, items: a, className: r }) => {
3556
+ const [o, s] = I(1), l = Math.ceil(a.length / ct), i = a.slice((o - 1) * ct, o * ct), _ = a.length > ct;
3557
+ return /* @__PURE__ */ d("div", { className: [Me.card, r ?? ""].filter(Boolean).join(" "), children: [
3558
+ /* @__PURE__ */ d("div", { className: Me.header, children: [
3559
+ /* @__PURE__ */ e("span", { className: Me.value, children: t }),
3560
+ /* @__PURE__ */ e("span", { className: Me.description, children: n })
3561
+ ] }),
3562
+ /* @__PURE__ */ e("div", { className: Me.listWrapper, children: /* @__PURE__ */ e(sn, { children: i.map((h, c) => /* @__PURE__ */ e(rn, { title: h.title, subtitle: h.subtitle }, c)) }) }),
3563
+ _ && /* @__PURE__ */ e("div", { className: Me.paginationRow, children: /* @__PURE__ */ e(Qt, { page: o, totalPages: l, onPageChange: s }) })
3564
+ ] });
3565
+ };
3566
+ lh.displayName = "ListCard";
3567
+ const ih = "_card_1atkf_1", ch = "_info_1atkf_13", dh = "_value_1atkf_19", _h = "_description_1atkf_28", ph = "_chartArea_1atkf_37", hh = "_chart_1atkf_37", uh = "_bar_1atkf_47", Te = {
3568
+ card: ih,
3569
+ info: ch,
3570
+ value: dh,
3571
+ description: _h,
3572
+ chartArea: ph,
3573
+ chart: hh,
3574
+ bar: uh
3575
+ }, dt = 80, ft = 4, mh = ({ data: t }) => {
3576
+ if (!t.length) return null;
3577
+ const n = Math.max(...t.map((l) => l.value)), a = t.length, o = Math.max(4, Math.floor((200 - ft * (a - 1)) / a)), s = a * o + ft * (a - 1);
3578
+ return /* @__PURE__ */ e(
3579
+ "svg",
3580
+ {
3581
+ viewBox: `0 0 ${s} ${dt}`,
3582
+ width: s,
3583
+ height: dt,
3584
+ className: Te.chart,
3585
+ "aria-hidden": !0,
3586
+ children: t.map((l, i) => {
3587
+ const _ = n > 0 ? Math.round(l.value / n * dt) : 0, h = i * (o + ft), c = dt - _;
3588
+ return /* @__PURE__ */ e(
3589
+ "rect",
3590
+ {
3591
+ x: h,
3592
+ y: c,
3593
+ width: o,
3594
+ height: _,
3595
+ rx: 2,
3596
+ className: Te.bar
3597
+ },
3598
+ i
3599
+ );
3600
+ })
3601
+ }
3602
+ );
3603
+ }, bh = ({ value: t, description: n, data: a, className: r }) => /* @__PURE__ */ d("div", { className: [Te.card, r ?? ""].filter(Boolean).join(" "), children: [
3604
+ /* @__PURE__ */ d("div", { className: Te.info, children: [
3605
+ /* @__PURE__ */ e("span", { className: Te.value, children: t }),
3606
+ /* @__PURE__ */ e("span", { className: Te.description, children: n })
3607
+ ] }),
3608
+ /* @__PURE__ */ e("div", { className: Te.chartArea, children: /* @__PURE__ */ e(mh, { data: a }) })
3609
+ ] });
3610
+ bh.displayName = "ChartCard";
3611
+ const vh = "_wrapper_117gq_1", fh = "_actionBar_117gq_12", gh = "_searchWrapper_117gq_20", yh = "_filterWrapper_117gq_26", Nh = "_searchIcon_117gq_30", xh = "_searchInput_117gq_41", $h = "_tableScroll_117gq_65", wh = "_table_117gq_65", kh = "_headerRow_117gq_78", Ch = "_th_117gq_82", Ih = "_thCheckbox_117gq_89", Sh = "_thOverflow_117gq_90", jh = "_thNav_117gq_91", Th = "_thSortable_117gq_98", Bh = "_thLabel_117gq_102", qh = "_thContent_117gq_106", Eh = "_sortIcon_117gq_121", Dh = "_sortIconActive_117gq_128", Ph = "_row_117gq_134", Oh = "_rowSelected_117gq_147", Mh = "_td_117gq_153", Lh = "_tdCheckbox_117gq_158", Wh = "_tdOverflow_117gq_159", zh = "_tdNav_117gq_160", Fh = "_cellText_117gq_166", Ah = "_userCell_117gq_177", Gh = "_userName_117gq_183", Rh = "_userSubtitle_117gq_192", Uh = "_overflowContainer_117gq_203", Hh = "_overflowMenu_117gq_208", Vh = "_emptyCell_117gq_218", Yh = "_emptyState_117gq_222", Kh = "_emptyIcon_117gq_231", Zh = "_emptyTitle_117gq_238", Jh = "_emptySubtitle_117gq_245", Xh = "_paginationRow_117gq_254", S = {
3612
+ wrapper: vh,
3613
+ actionBar: fh,
3614
+ searchWrapper: gh,
3615
+ filterWrapper: yh,
3616
+ searchIcon: Nh,
3617
+ searchInput: xh,
3618
+ tableScroll: $h,
3619
+ table: wh,
3620
+ headerRow: kh,
3621
+ th: Ch,
3622
+ thCheckbox: Ih,
3623
+ thOverflow: Sh,
3624
+ thNav: jh,
3625
+ thSortable: Th,
3626
+ thLabel: Bh,
3627
+ thContent: qh,
3628
+ sortIcon: Eh,
3629
+ sortIconActive: Dh,
3630
+ row: Ph,
3631
+ rowSelected: Oh,
3632
+ td: Mh,
3633
+ tdCheckbox: Lh,
3634
+ tdOverflow: Wh,
3635
+ tdNav: zh,
3636
+ cellText: Fh,
3637
+ userCell: Ah,
3638
+ userName: Gh,
3639
+ userSubtitle: Rh,
3640
+ overflowContainer: Uh,
3641
+ overflowMenu: Hh,
3642
+ emptyCell: Vh,
3643
+ emptyState: Yh,
3644
+ emptyIcon: Kh,
3645
+ emptyTitle: Zh,
3646
+ emptySubtitle: Jh,
3647
+ paginationRow: Xh
3648
+ };
3649
+ function _t(t, n) {
3650
+ return typeof n == "function" ? n(t) : t[n];
3651
+ }
3652
+ function Qh({
3653
+ row: t,
3654
+ items: n,
3655
+ rowId: a,
3656
+ openId: r,
3657
+ onOpen: o,
3658
+ onClose: s
3659
+ }) {
3660
+ const l = r === a, i = A(null), _ = n(t);
3661
+ return Y(() => {
3662
+ if (!l) return;
3663
+ const h = (c) => {
3664
+ var p;
3665
+ (p = i.current) != null && p.contains(c.target) || s();
3666
+ };
3667
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
3668
+ }, [l, s]), /* @__PURE__ */ d("div", { ref: i, className: S.overflowContainer, children: [
3669
+ /* @__PURE__ */ e(
3670
+ U,
3671
+ {
3672
+ icon: Ht,
3673
+ variant: "brandPrimary",
3674
+ "aria-label": "Row actions",
3675
+ onClick: () => l ? s() : o(a)
3676
+ }
3677
+ ),
3678
+ l && /* @__PURE__ */ e("div", { className: S.overflowMenu, children: /* @__PURE__ */ e(Ne, { children: _.map((h, c) => /* @__PURE__ */ e(
3679
+ xe,
3680
+ {
3681
+ label: h.label,
3682
+ leadingIcon: h.icon,
3683
+ disabled: h.disabled,
3684
+ onClick: () => {
3685
+ h.onClick(), s();
3686
+ }
3687
+ },
3688
+ c
3689
+ )) }) })
3690
+ ] });
3691
+ }
3692
+ function eu({
3693
+ columns: t,
3694
+ data: n,
3695
+ getRowId: a,
3696
+ loading: r = !1,
3697
+ loadingRowCount: o = 8,
3698
+ emptyTitle: s = "No Results Found",
3699
+ emptySubtitle: l = "Adjust your filters to check for any results.",
3700
+ searchValue: i = "",
3701
+ onSearchChange: _,
3702
+ onFilterClick: h,
3703
+ selectedRows: c,
3704
+ onSelectionChange: p,
3705
+ sortKey: u,
3706
+ sortDirection: m,
3707
+ onSortChange: b,
3708
+ page: g,
3709
+ pageSize: f,
3710
+ totalItems: w,
3711
+ onPageChange: y,
3712
+ onPageSizeChange: C,
3713
+ pageSizeOptions: j,
3714
+ className: P
3715
+ }) {
3716
+ const [W, ne] = I(null), L = gt(() => ne(null), []), Q = t.some((x) => x.type === "checkbox"), H = n.map(a), T = (c == null ? void 0 : c.size) ?? 0, he = H.length > 0 && H.every((x) => c == null ? void 0 : c.has(x)), ge = T > 0 && !he, be = () => {
3717
+ p && p(he ? /* @__PURE__ */ new Set() : new Set(H));
3718
+ }, $e = (x, D) => {
3719
+ if (!p) return;
3720
+ const N = new Set(c ?? []);
3721
+ D ? N.add(x) : N.delete(x), p(N);
3722
+ }, ve = (x) => {
3723
+ if (!x.sortable || !b) return;
3724
+ const D = u === x.key && m === "asc" ? "desc" : "asc";
3725
+ b(x.key, D);
3726
+ }, we = (x) => {
3727
+ if (x.type === "checkbox")
3728
+ return /* @__PURE__ */ e("th", { className: `${S.th} ${S.thCheckbox}`, children: Q && /* @__PURE__ */ e(
3729
+ Le,
3730
+ {
3731
+ checked: he,
3732
+ indeterminate: ge,
3733
+ onChange: be
3734
+ }
3735
+ ) }, x.key);
3736
+ const D = u === x.key, N = D ? m === "asc" ? Gt : Rt : Ut, k = x.width ? { width: typeof x.width == "number" ? `${x.width}px` : x.width } : {};
3737
+ return x.type === "overflow" || x.type === "nav" ? /* @__PURE__ */ e(
3738
+ "th",
3739
+ {
3740
+ className: `${S.th} ${x.type === "nav" ? S.thNav : S.thOverflow}`,
3741
+ style: k
3742
+ },
3743
+ x.key
3744
+ ) : /* @__PURE__ */ e(
3745
+ "th",
3746
+ {
3747
+ className: [S.th, x.sortable ? S.thSortable : ""].filter(Boolean).join(" "),
3748
+ style: k,
3749
+ onClick: x.sortable ? () => ve(x) : void 0,
3750
+ "aria-sort": D ? m === "asc" ? "ascending" : "descending" : void 0,
3751
+ children: /* @__PURE__ */ d("span", { className: S.thContent, children: [
3752
+ /* @__PURE__ */ e("span", { className: S.thLabel, children: x.header ?? "" }),
3753
+ x.sortable && /* @__PURE__ */ e(
3754
+ B,
3755
+ {
3756
+ icon: N,
3757
+ className: [S.sortIcon, D ? S.sortIconActive : ""].filter(Boolean).join(" "),
3758
+ "aria-hidden": !0
3759
+ }
3760
+ )
3761
+ ] })
3762
+ },
3763
+ x.key
3764
+ );
3765
+ }, X = (x, D, N) => {
3766
+ switch (x.type) {
3767
+ case "text": {
3768
+ const k = _t(D, x.accessor);
3769
+ return /* @__PURE__ */ e("span", { className: S.cellText, children: String(k ?? "") });
3770
+ }
3771
+ case "user": {
3772
+ const k = _t(D, x.accessor);
3773
+ return /* @__PURE__ */ d("div", { className: S.userCell, children: [
3774
+ /* @__PURE__ */ e(
3775
+ ze,
3776
+ {
3777
+ type: k.avatarSrc ? "image" : "initials",
3778
+ size: "small",
3779
+ initials: k.initials ?? k.name.slice(0, 2).toUpperCase(),
3780
+ src: k.avatarSrc,
3781
+ alt: k.name
3782
+ }
3783
+ ),
3784
+ /* @__PURE__ */ e("span", { className: S.userName, children: k.name }),
3785
+ k.subtitle && /* @__PURE__ */ e("span", { className: S.userSubtitle, children: k.subtitle })
3786
+ ] });
3787
+ }
3788
+ case "priority": {
3789
+ const k = _t(D, x.accessor);
3790
+ return /* @__PURE__ */ e(en, { priority: k });
3791
+ }
3792
+ case "status": {
3793
+ const k = _t(D, x.accessor);
3794
+ return /* @__PURE__ */ e(tn, { label: k.label, statusType: k.statusType, level: k.level });
3795
+ }
3796
+ case "checkbox":
3797
+ return /* @__PURE__ */ e(
3798
+ Le,
3799
+ {
3800
+ checked: (c == null ? void 0 : c.has(N)) ?? !1,
3801
+ onChange: (k) => $e(N, k.target.checked)
3802
+ }
3803
+ );
3804
+ case "overflow":
3805
+ return /* @__PURE__ */ e(
3806
+ Qh,
3807
+ {
3808
+ row: D,
3809
+ items: x.items,
3810
+ rowId: N,
3811
+ openId: W,
3812
+ onOpen: ne,
3813
+ onClose: L
3814
+ }
3815
+ );
3816
+ case "nav":
3817
+ return /* @__PURE__ */ e(
3818
+ U,
3819
+ {
3820
+ icon: We,
3821
+ variant: "brandPrimary",
3822
+ "aria-label": "Navigate",
3823
+ onClick: () => x.onClick(D)
3824
+ }
3825
+ );
3826
+ }
3827
+ }, ee = (x) => {
3828
+ const D = S.td;
3829
+ return x.type === "checkbox" ? `${D} ${S.tdCheckbox}` : x.type === "overflow" ? `${D} ${S.tdOverflow}` : x.type === "nav" ? `${D} ${S.tdNav}` : D;
3830
+ };
3831
+ return /* @__PURE__ */ d("div", { className: [S.wrapper, P ?? ""].filter(Boolean).join(" "), children: [
3832
+ (_ || h) && /* @__PURE__ */ d("div", { className: S.actionBar, children: [
3833
+ _ && /* @__PURE__ */ d("div", { className: S.searchWrapper, children: [
3834
+ /* @__PURE__ */ e(B, { icon: Ct, className: S.searchIcon, "aria-hidden": !0 }),
3835
+ /* @__PURE__ */ e(
3836
+ "input",
3837
+ {
3838
+ type: "search",
3839
+ className: S.searchInput,
3840
+ placeholder: "Search",
3841
+ value: i,
3842
+ onChange: (x) => _(x.target.value),
3843
+ "aria-label": "Search table"
3844
+ }
3845
+ )
3846
+ ] }),
3847
+ h && /* @__PURE__ */ e("div", { className: S.filterWrapper, children: /* @__PURE__ */ e(U, { icon: Ft, variant: "brandPrimary", "aria-label": "Filter", onClick: h }) })
3848
+ ] }),
3849
+ /* @__PURE__ */ e("div", { className: S.tableScroll, children: /* @__PURE__ */ d("table", { className: S.table, children: [
3850
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: S.headerRow, children: t.map(we) }) }),
3851
+ /* @__PURE__ */ e("tbody", { children: r ? Array.from({ length: o }).map((x, D) => /* @__PURE__ */ e("tr", { className: S.row, children: t.map((N) => /* @__PURE__ */ e("td", { className: ee(N), children: N.type === "checkbox" || N.type === "overflow" || N.type === "nav" ? null : /* @__PURE__ */ e(Je, { height: 16, width: N.type === "user" ? 120 : "80%" }) }, N.key)) }, D)) : n.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: S.emptyCell, children: /* @__PURE__ */ d("div", { className: S.emptyState, children: [
3852
+ /* @__PURE__ */ e(B, { icon: At, className: S.emptyIcon, "aria-hidden": !0 }),
3853
+ /* @__PURE__ */ e("span", { className: S.emptyTitle, children: s }),
3854
+ /* @__PURE__ */ e("span", { className: S.emptySubtitle, children: l })
3855
+ ] }) }) }) : n.map((x) => {
3856
+ const D = a(x), N = (c == null ? void 0 : c.has(D)) ?? !1;
3857
+ return /* @__PURE__ */ e(
3858
+ "tr",
3859
+ {
3860
+ className: [S.row, N ? S.rowSelected : ""].filter(Boolean).join(" "),
3861
+ children: t.map((k) => /* @__PURE__ */ e("td", { className: ee(k), children: X(k, x, D) }, k.key))
3862
+ },
3863
+ D
3864
+ );
3865
+ }) })
3866
+ ] }) }),
3867
+ /* @__PURE__ */ e("div", { className: S.paginationRow, children: /* @__PURE__ */ e(
3868
+ It,
3869
+ {
3870
+ totalItems: w,
3871
+ page: g,
3872
+ pageSize: f,
3873
+ onPageChange: y,
3874
+ onPageSizeChange: C,
3875
+ pageSizeOptions: j
3876
+ }
3877
+ ) })
3878
+ ] });
3879
+ }
3880
+ eu.displayName = "Table";
3881
+ export {
3882
+ Bi as AccordionGroup,
3883
+ Si as AccordionItem,
3884
+ ea as Alert,
3885
+ Nt as AttributeChip,
3886
+ ze as Avatar,
3887
+ ua as Badge,
3888
+ dn as Breadcrumb,
3889
+ V as Button,
3890
+ mo as ButtonGroup,
3891
+ bh as ChartCard,
3892
+ Le as Checkbox,
3893
+ Bc as CheckboxGroup,
3894
+ al as Chip,
3895
+ eo as DataGrid,
3896
+ Yl as DateField,
3897
+ Zt as DatePicker,
3898
+ ac as Dialog,
3899
+ hi as Divider,
3900
+ vc as Drawer,
3901
+ td as FileUploader,
3902
+ Ac as FileUploaderListItem,
3903
+ J_ as GlobalToolbar,
3904
+ z as Icon,
3905
+ U as IconButton,
3906
+ eh as KpiCard,
3907
+ lh as ListCard,
3908
+ sn as ListGroup,
3909
+ rn as ListItem,
3910
+ wp as Logo,
3911
+ Ne as Menu,
3912
+ xe as MenuItem,
3913
+ El as MultiSelectField,
3914
+ Qo as NavDrawer,
3915
+ Xt as NumberField,
3916
+ dp as PageHeader,
3917
+ It as Pagination,
3918
+ Sd as PasswordField,
3919
+ I_ as Popover,
3920
+ en as PriorityChip,
3921
+ on as ProgressBar,
3922
+ ln as RadioButton,
3923
+ b_ as RadioButtonGroup,
3924
+ d_ as RadioButtonItem,
3925
+ Jt as SelectField,
3926
+ Qt as SimplePagination,
3927
+ Je as Skeleton,
3928
+ bp as Spinner,
3929
+ Io as SplitButton,
3930
+ tn as StatusChip,
3931
+ Yp as Stepper,
3932
+ St as Switch,
3933
+ t_ as SwitchGroup,
3934
+ Kd as SwitchItem,
3935
+ Tp as TabGroup,
3936
+ eu as Table,
3937
+ md as TextArea,
3938
+ an as TextField,
3939
+ ci as TimeField,
3940
+ H_ as TimePicker,
3941
+ Rd as Toast,
3942
+ yt as Tooltip,
3943
+ so as UserIdentificationTag
3944
+ };