@altinn/altinn-components 0.63.3 → 0.63.5

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 (225) hide show
  1. package/dist/{ToolbarSearch-OLv6DjhT.js → ToolbarSearch-BQfKHZnX.js} +912 -903
  2. package/dist/assets/TabMenu.css +1 -1
  3. package/dist/assets/ToolbarSearch.css +1 -1
  4. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +4 -3
  5. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +10 -9
  6. package/dist/components/Account/AccountList.js +8 -7
  7. package/dist/components/Account/AccountListItem.js +8 -7
  8. package/dist/components/Account/AccountListItemControls.js +4 -3
  9. package/dist/components/Account/AccountListItemDetails.js +4 -3
  10. package/dist/components/Account/AccountListVirtual.js +4 -3
  11. package/dist/components/Account/AccountMenu.js +8 -7
  12. package/dist/components/Account/AccountNotificationSettings.js +8 -7
  13. package/dist/components/Account/AccountOrganization.js +4 -3
  14. package/dist/components/AccountSelector/AccountSelector.js +35 -34
  15. package/dist/components/ActivityLog/ActivityLog.js +4 -3
  16. package/dist/components/ActivityLog/ActivityLogItem.js +4 -3
  17. package/dist/components/ActivityLog/ActivityLogSegment.js +4 -3
  18. package/dist/components/Alert/Alert.js +8 -7
  19. package/dist/components/Article/Article.js +4 -3
  20. package/dist/components/Article/ArticleContact.js +4 -3
  21. package/dist/components/Article/ArticleHeader.js +4 -3
  22. package/dist/components/Attachment/AttachmentLink.js +1 -1
  23. package/dist/components/Badge/Badge.js +3 -2
  24. package/dist/components/Badge/index.js +1 -1
  25. package/dist/components/Banner/Banner.js +4 -3
  26. package/dist/components/Bookmarks/BookmarkModal.js +7 -6
  27. package/dist/components/Bookmarks/BookmarkSettingsItem.js +4 -3
  28. package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +7 -6
  29. package/dist/components/Bookmarks/BookmarkSettingsList.js +8 -7
  30. package/dist/components/Breadcrumbs/Breadcrumbs.js +4 -3
  31. package/dist/components/Breadcrumbs/BreadcrumbsLink.js +15 -15
  32. package/dist/components/Bulk/BulkHeader.js +8 -7
  33. package/dist/components/Button/Button.js +4 -4
  34. package/dist/components/Button/ButtonIcon.js +4 -3
  35. package/dist/components/Button/ComboButton.js +4 -3
  36. package/dist/components/Button/FloatingActionButton.js +4 -3
  37. package/dist/components/Button/IconButton.js +7 -6
  38. package/dist/components/Byline/Byline.js +3 -2
  39. package/dist/components/Byline/index.js +1 -1
  40. package/dist/components/ContextMenu/ContextMenu.js +17 -16
  41. package/dist/components/Dashboard/DashboardCard.js +22 -40
  42. package/dist/components/Dashboard/DashboardHeader.js +8 -7
  43. package/dist/components/Datepicker/Datepicker.js +1 -1
  44. package/dist/components/Datepicker/DatepickerHeader.js +7 -6
  45. package/dist/components/Datepicker/DatepickerTable.js +11 -10
  46. package/dist/components/Dialog/Dialog.js +4 -3
  47. package/dist/components/Dialog/DialogActions.js +4 -3
  48. package/dist/components/Dialog/DialogActivityLog.js +4 -3
  49. package/dist/components/Dialog/DialogAttachments.js +5 -4
  50. package/dist/components/Dialog/DialogBody.js +4 -3
  51. package/dist/components/Dialog/DialogByline.js +3 -2
  52. package/dist/components/Dialog/DialogContact.js +4 -3
  53. package/dist/components/Dialog/DialogHeader.js +8 -7
  54. package/dist/components/Dialog/DialogHistory.js +8 -7
  55. package/dist/components/Dialog/DialogHistoryItem.js +4 -3
  56. package/dist/components/Dialog/DialogHistorySegment.js +4 -3
  57. package/dist/components/Dialog/DialogLayout.js +7 -6
  58. package/dist/components/Dialog/DialogList.js +3 -2
  59. package/dist/components/Dialog/DialogListItem.js +3 -2
  60. package/dist/components/Dialog/DialogMetadata.js +3 -2
  61. package/dist/components/Dialog/DialogSection.js +6 -5
  62. package/dist/components/Dialog/DialogSeenBy.js +19 -18
  63. package/dist/components/Dialog/DialogSelect.js +10 -9
  64. package/dist/components/Dialog/DialogStatus.js +4 -3
  65. package/dist/components/Dialog/DialogTabs.js +4 -3
  66. package/dist/components/Dialog/SeenByLog.js +10 -9
  67. package/dist/components/Dialog/SeenByLogButton.js +4 -3
  68. package/dist/components/Dialog/SeenByLogItem.js +8 -7
  69. package/dist/components/Dialog/index.js +1 -1
  70. package/dist/components/Dropdown/DrawerButton.js +4 -3
  71. package/dist/components/Dropdown/DrawerHeader.js +4 -3
  72. package/dist/components/Dropdown/Dropdown.js +3 -2
  73. package/dist/components/Dropdown/DropdownBase.js +4 -3
  74. package/dist/components/Dropdown/FloatingDropdown.js +4 -3
  75. package/dist/components/Dropdown/index.js +1 -1
  76. package/dist/components/DsComponents/index.js +26 -31
  77. package/dist/components/Forms/Checkbox.js +4 -3
  78. package/dist/components/Forms/CheckboxOptions.js +4 -3
  79. package/dist/components/Forms/Field.js +6 -5
  80. package/dist/components/Forms/FieldBase.js +3 -2
  81. package/dist/components/Forms/Fieldset.js +10 -23
  82. package/dist/components/Forms/FieldsetBase.js +4 -3
  83. package/dist/components/Forms/Input.js +8 -7
  84. package/dist/components/Forms/Label.js +3 -2
  85. package/dist/components/Forms/Legend.js +4 -3
  86. package/dist/components/Forms/Radio.js +4 -3
  87. package/dist/components/Forms/RadioOptions.js +4 -3
  88. package/dist/components/Forms/SearchField.js +3 -2
  89. package/dist/components/Forms/Select.js +5 -23
  90. package/dist/components/Forms/SelectField.js +4 -3
  91. package/dist/components/Forms/Switch.js +4 -3
  92. package/dist/components/Forms/SwitchOptions.js +4 -3
  93. package/dist/components/Forms/TextField.js +4 -3
  94. package/dist/components/Forms/TextFieldDropdown.js +4 -3
  95. package/dist/components/Forms/Textarea.js +4 -3
  96. package/dist/components/Forms/TextareaField.js +4 -3
  97. package/dist/components/Forms/index.js +1 -1
  98. package/dist/components/GlobalHeader/GlobalAccountButton.js +4 -3
  99. package/dist/components/GlobalHeader/GlobalHeader.js +29 -28
  100. package/dist/components/GlobalHeader/GlobalMenuButton.js +7 -6
  101. package/dist/components/GlobalHeader/HeaderDrawer.js +12 -11
  102. package/dist/components/GlobalHeader/HeaderDropdown.js +6 -5
  103. package/dist/components/GlobalHeader/HeaderLogo.js +4 -3
  104. package/dist/components/GlobalMenu/GlobalMenu.js +11 -10
  105. package/dist/components/GlobalMenu/LocaleSwitcher.js +4 -3
  106. package/dist/components/GlobalMenu/LogoutButton.js +7 -6
  107. package/dist/components/Icon/Icon.js +4 -3
  108. package/dist/components/Icon/index.js +1 -1
  109. package/dist/components/Inbox/InboxPage.js +7 -6
  110. package/dist/components/InboxSearch/InboxSearch.js +7 -6
  111. package/dist/components/Item/ItemLabel.js +1 -1
  112. package/dist/components/Item/ItemMedia.js +3 -2
  113. package/dist/components/Item/ItemSelect.js +5 -4
  114. package/dist/components/Item/index.js +1 -1
  115. package/dist/components/Layout/Layout.js +8 -7
  116. package/dist/components/List/List.js +4 -3
  117. package/dist/components/List/ListBase.js +4 -3
  118. package/dist/components/List/ListItemHeader.js +14 -13
  119. package/dist/components/List/ListItemIcon.js +5 -4
  120. package/dist/components/List/ListItemLabel.js +12 -11
  121. package/dist/components/Menu/Menu.js +1 -1
  122. package/dist/components/Menu/MenuItem.js +3 -2
  123. package/dist/components/Menu/MenuItems.js +3 -2
  124. package/dist/components/Menu/MenuListSearch.js +3 -2
  125. package/dist/components/Menu/MenuOption.js +1 -1
  126. package/dist/components/Menu/TabMenu.js +5 -4
  127. package/dist/components/Menu/VirtualizedMenuItems.js +3 -2
  128. package/dist/components/Menu/index.js +1 -1
  129. package/dist/components/Menu/useMenuSearch.js +1 -1
  130. package/dist/components/Metadata/MetaItem.js +1 -1
  131. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  132. package/dist/components/Metadata/MetaTimestamp.js +1 -1
  133. package/dist/components/Metadata/Metadata.js +4 -3
  134. package/dist/components/Metadata/index.js +1 -1
  135. package/dist/components/Modal/Modal.js +4 -3
  136. package/dist/components/Modal/ModalBase.js +4 -3
  137. package/dist/components/Modal/ModalHeader.js +4 -3
  138. package/dist/components/Modal/ModalIcon.js +6 -5
  139. package/dist/components/Notifications/NotificationItem.js +4 -3
  140. package/dist/components/Notifications/NotificationItemBase.js +4 -3
  141. package/dist/components/Notifications/NotificationItemControls.js +7 -6
  142. package/dist/components/Notifications/NotificationItemIcon.js +6 -5
  143. package/dist/components/Page/AccordionSection.js +4 -3
  144. package/dist/components/Page/ContactButtons.js +4 -3
  145. package/dist/components/Page/ContactSection.js +4 -3
  146. package/dist/components/Page/PageDetails.js +7 -6
  147. package/dist/components/Page/PageMenu.js +9 -8
  148. package/dist/components/Page/PageNav.js +8 -7
  149. package/dist/components/Page/Section.js +8 -7
  150. package/dist/components/Pagination/Pagination.js +11 -10
  151. package/dist/components/ResourceListItem/ResourceListItem.js +14 -12
  152. package/dist/components/RootProvider/RootProvider.js +4 -3
  153. package/dist/components/RootProvider/index.js +1 -1
  154. package/dist/components/Search/SearchItem.js +8 -7
  155. package/dist/components/Searchbar/Autocomplete.js +11 -10
  156. package/dist/components/Searchbar/AutocompleteItem.js +4 -3
  157. package/dist/components/Searchbar/Searchbar.js +8 -7
  158. package/dist/components/Searchbar/SearchbarField.js +8 -7
  159. package/dist/components/Settings/SettingsItem.js +4 -3
  160. package/dist/components/Settings/SettingsItemBase.js +13 -12
  161. package/dist/components/Settings/SettingsList.js +4 -3
  162. package/dist/components/Settings/SettingsListVirtual.js +4 -3
  163. package/dist/components/Settings/SettingsModal.js +4 -3
  164. package/dist/components/Settings/SettingsSection.js +10 -9
  165. package/dist/components/Settings/UsedByLog.js +12 -11
  166. package/dist/components/Settings/UsedByLogItem.js +10 -9
  167. package/dist/components/SkipLink/SkipLink.js +9 -12
  168. package/dist/components/Snackbar/SnackbarItem.js +4 -3
  169. package/dist/components/Timeline/Timeline.js +4 -3
  170. package/dist/components/Timeline/TimelineActivity.js +4 -3
  171. package/dist/components/Timeline/TimelineBase.js +8 -7
  172. package/dist/components/Timeline/TimelineFooter.js +4 -3
  173. package/dist/components/Timeline/TimelineHeader.js +4 -3
  174. package/dist/components/Timeline/TimelineIcon.js +6 -5
  175. package/dist/components/Timeline/TimelineSection.js +4 -3
  176. package/dist/components/Timeline/TimelineSegment.js +4 -3
  177. package/dist/components/Toolbar/DatepickerFilter.js +5 -4
  178. package/dist/components/Toolbar/SelectDateFilter.js +4 -3
  179. package/dist/components/Toolbar/Toolbar.js +1 -1
  180. package/dist/components/Toolbar/ToolbarFilter.js +4 -3
  181. package/dist/components/Toolbar/ToolbarFilterAddMenu.js +4 -3
  182. package/dist/components/Toolbar/ToolbarFilterButton.js +4 -3
  183. package/dist/components/Toolbar/ToolbarFilterMenu.js +12 -11
  184. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  185. package/dist/components/Toolbar/ToolbarSearch.js +3 -2
  186. package/dist/components/Toolbar/index.js +1 -1
  187. package/dist/components/Tooltip/Tooltip.js +7 -99
  188. package/dist/components/Transmission/Transmission.js +4 -3
  189. package/dist/components/Transmission/TransmissionList.js +10 -9
  190. package/dist/components/Transmission/TransmissionType.js +4 -3
  191. package/dist/components/Typography/Heading.js +3 -2
  192. package/dist/components/Typography/Link.js +4 -4
  193. package/dist/components/Typography/index.js +1 -1
  194. package/dist/components/UserListItem/UserListItem.js +4 -3
  195. package/dist/components/index.js +421 -426
  196. package/dist/hooks/useAccountSelector.js +4 -3
  197. package/dist/index.js +434 -439
  198. package/dist/tooltip-B5zQ3zF0.js +6303 -0
  199. package/dist/types/lib/components/Forms/FieldBase.d.ts +2 -1
  200. package/dist/types/lib/components/Forms/SearchField.d.ts +2 -1
  201. package/dist/types/lib/components/Forms/SearchField.stories.d.ts +2 -1
  202. package/dist/types/lib/components/ResourceListItem/ResourceListItem.d.ts +3 -1
  203. package/dist/types/lib/components/ResourceListItem/ResourceListItem.stories.d.ts +1 -1
  204. package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +1 -1
  205. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +6 -1
  206. package/dist/types/lib/components/UserListItem/UserListItem.d.ts +1 -1
  207. package/dist/types/lib/components/UserListItem/UserListItem.stories.d.ts +7 -0
  208. package/dist/use-pagination-mAaJfKMF.js +52 -0
  209. package/package.json +4 -4
  210. package/dist/alert-BzifOfXl.js +0 -10
  211. package/dist/button-BB5sYVKY.js +0 -38
  212. package/dist/fieldset-legend-B6lDmp0N.js +0 -10
  213. package/dist/floating-ui.dom-bEgaHJCq.js +0 -997
  214. package/dist/heading-C_XYsUfi.js +0 -12
  215. package/dist/index-D7FJjvrv.js +0 -86
  216. package/dist/index-Q0EA2XB0.js +0 -111
  217. package/dist/index-z82sbSVU.js +0 -105
  218. package/dist/input-wBv_FkEV.js +0 -12
  219. package/dist/label-xTmTyPhk.js +0 -11
  220. package/dist/link-D1SA3LCe.js +0 -10
  221. package/dist/lite-1fxw3LjI.js +0 -7
  222. package/dist/paragraph-BRiIBpbY.js +0 -11
  223. package/dist/textarea-BBstVlPT.js +0 -10
  224. package/dist/textfield-f4Za2qt6.js +0 -3484
  225. package/dist/use-merge-refs-Cj4kTYVj.js +0 -29
@@ -1,8 +1,9 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as O, Fragment as xe } from "react/jsx-runtime";
2
+ import { jsx as a, jsxs as I, Fragment as xe } from "react/jsx-runtime";
3
3
  import * as G from "react";
4
- import C, { forwardRef as Y, useRef as J, useState as oe, useMemo as le, useEffect as W, Fragment as He, useLayoutEffect as Ce, createContext as ot, useContext as at, isValidElement as Ge, useId as De, useCallback as qe, memo as Oe, createElement as st } from "react";
5
- import { c as K } from "./index-p1eeF8LQ.js";
4
+ import E, { forwardRef as Y, useRef as J, useState as oe, useMemo as le, useEffect as W, Fragment as He, useLayoutEffect as Ee, createContext as ot, useContext as at, isValidElement as Ge, useId as De, useCallback as qe, memo as Oe, createElement as st } from "react";
5
+ import "./tooltip-B5zQ3zF0.js";
6
+ import { c as V } from "./index-p1eeF8LQ.js";
6
7
  import { useEscapeKey as lt } from "./hooks/useEscapeKey.js";
7
8
  import "./components/Typography/Link.js";
8
9
  import { Button as ve } from "./components/Button/Button.js";
@@ -19,9 +20,9 @@ import { Field as mt } from "./components/Forms/Field.js";
19
20
  import { Label as ft } from "./components/Forms/Label.js";
20
21
  import { TypingIcon as pt } from "./components/Icon/TypingIcon.js";
21
22
  import { u as Q } from "./useId-BVFxCjkq.js";
22
- import { isAvatarProps as Ee, Avatar as je } from "./components/Avatar/Avatar.js";
23
- import { isAvatarGroupProps as Se, AvatarGroup as be } from "./components/Avatar/AvatarGroup.js";
24
- import { ItemControls as ke } from "./components/Item/ItemControls.js";
23
+ import { isAvatarProps as Se, Avatar as je } from "./components/Avatar/Avatar.js";
24
+ import { isAvatarGroupProps as ke, AvatarGroup as be } from "./components/Avatar/AvatarGroup.js";
25
+ import { ItemControls as Re } from "./components/Item/ItemControls.js";
25
26
  import { pickAriaProps as ht } from "./components/Menu/aria.js";
26
27
  import { MenuList as Ie } from "./components/Menu/MenuList.js";
27
28
  import { MenuListItem as Ve } from "./components/Menu/MenuListItem.js";
@@ -30,8 +31,8 @@ import { MenuListDivider as We } from "./components/Menu/MenuListDivider.js";
30
31
  import { MenuListHeading as Ye } from "./components/Menu/MenuListHeading.js";
31
32
  import { a as vt } from "./useMenuVirtualization-Cs426RCN.js";
32
33
  import { S as bt, a as gt, b as yt } from "./Paperclip-DjN7qVfQ.js";
33
- import { useDropdownMenuController as wt } from "./components/Menu/useDropdownMenuController.js";
34
- import { ItemBase as _t } from "./components/Item/ItemBase.js";
34
+ import { useDropdownMenuController as _t } from "./components/Menu/useDropdownMenuController.js";
35
+ import { ItemBase as wt } from "./components/Item/ItemBase.js";
35
36
  import { ItemLink as xt } from "./components/Item/ItemLink.js";
36
37
  import { MetaBase as It } from "./components/Metadata/MetaBase.js";
37
38
  import { ProgressIcon as Ot } from "./components/Icon/ProgressIcon.js";
@@ -43,17 +44,17 @@ import './assets/ToolbarSearch.css';var Nt = function(e, o) {
43
44
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
44
45
  return n;
45
46
  };
46
- const zt = Y((e, o) => {
47
+ const Ct = Y((e, o) => {
47
48
  var { title: n, titleId: t } = e, r = Nt(e, ["title", "titleId"]);
48
49
  let s = Q();
49
- return s = n ? t || "title-" + s : void 0, C.createElement(
50
+ return s = n ? t || "title-" + s : void 0, E.createElement(
50
51
  "svg",
51
52
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
52
- n ? C.createElement("title", { id: s }, n) : null,
53
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm15.5 6a.25.25 0 0 1 .25.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V9.5a.25.25 0 0 1 .25-.25zm-4.75 3.25a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75", clipRule: "evenodd" })
53
+ n ? E.createElement("title", { id: s }, n) : null,
54
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm15.5 6a.25.25 0 0 1 .25.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V9.5a.25.25 0 0 1 .25-.25zm-4.75 3.25a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75", clipRule: "evenodd" })
54
55
  );
55
56
  });
56
- var Ct = function(e, o) {
57
+ var Et = function(e, o) {
57
58
  var n = {};
58
59
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
59
60
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -61,17 +62,17 @@ var Ct = function(e, o) {
61
62
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
62
63
  return n;
63
64
  };
64
- const Et = Y((e, o) => {
65
- var { title: n, titleId: t } = e, r = Ct(e, ["title", "titleId"]);
65
+ const St = Y((e, o) => {
66
+ var { title: n, titleId: t } = e, r = Et(e, ["title", "titleId"]);
66
67
  let s = Q();
67
- return s = n ? t || "title-" + s : void 0, C.createElement(
68
+ return s = n ? t || "title-" + s : void 0, E.createElement(
68
69
  "svg",
69
70
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
70
- n ? C.createElement("title", { id: s }, n) : null,
71
- C.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
71
+ n ? E.createElement("title", { id: s }, n) : null,
72
+ E.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
72
73
  );
73
74
  });
74
- var St = function(e, o) {
75
+ var kt = function(e, o) {
75
76
  var n = {};
76
77
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
77
78
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -80,16 +81,16 @@ var St = function(e, o) {
80
81
  return n;
81
82
  };
82
83
  const Qe = Y((e, o) => {
83
- var { title: n, titleId: t } = e, r = St(e, ["title", "titleId"]);
84
+ var { title: n, titleId: t } = e, r = kt(e, ["title", "titleId"]);
84
85
  let s = Q();
85
- return s = n ? t || "title-" + s : void 0, C.createElement(
86
+ return s = n ? t || "title-" + s : void 0, E.createElement(
86
87
  "svg",
87
88
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
88
- n ? C.createElement("title", { id: s }, n) : null,
89
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
89
+ n ? E.createElement("title", { id: s }, n) : null,
90
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
90
91
  );
91
92
  });
92
- var kt = function(e, o) {
93
+ var Rt = function(e, o) {
93
94
  var n = {};
94
95
  for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
95
96
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -97,14 +98,14 @@ var kt = function(e, o) {
97
98
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
98
99
  return n;
99
100
  };
100
- const Rt = Y((e, o) => {
101
- var { title: n, titleId: t } = e, r = kt(e, ["title", "titleId"]);
101
+ const zt = Y((e, o) => {
102
+ var { title: n, titleId: t } = e, r = Rt(e, ["title", "titleId"]);
102
103
  let s = Q();
103
- return s = n ? t || "title-" + s : void 0, C.createElement(
104
+ return s = n ? t || "title-" + s : void 0, E.createElement(
104
105
  "svg",
105
106
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
106
- n ? C.createElement("title", { id: s }, n) : null,
107
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.47 5.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 1 1-1.06-1.06L14.44 12 9.47 7.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
107
+ n ? E.createElement("title", { id: s }, n) : null,
108
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.47 5.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 1 1-1.06-1.06L14.44 12 9.47 7.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
108
109
  );
109
110
  });
110
111
  var Pt = function(e, o) {
@@ -118,11 +119,11 @@ var Pt = function(e, o) {
118
119
  const Be = Y((e, o) => {
119
120
  var { title: n, titleId: t } = e, r = Pt(e, ["title", "titleId"]);
120
121
  let s = Q();
121
- return s = n ? t || "title-" + s : void 0, C.createElement(
122
+ return s = n ? t || "title-" + s : void 0, E.createElement(
122
123
  "svg",
123
124
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
124
- n ? C.createElement("title", { id: s }, n) : null,
125
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L12 6.06l2.97 2.97a.75.75 0 1 0 1.06-1.06zm-3.5 10.5a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06L12 17.94z", clipRule: "evenodd" })
125
+ n ? E.createElement("title", { id: s }, n) : null,
126
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L12 6.06l2.97 2.97a.75.75 0 1 0 1.06-1.06zm-3.5 10.5a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06L12 17.94z", clipRule: "evenodd" })
126
127
  );
127
128
  });
128
129
  var Mt = function(e, o) {
@@ -136,11 +137,11 @@ var Mt = function(e, o) {
136
137
  const $t = Y((e, o) => {
137
138
  var { title: n, titleId: t } = e, r = Mt(e, ["title", "titleId"]);
138
139
  let s = Q();
139
- return s = n ? t || "title-" + s : void 0, C.createElement(
140
+ return s = n ? t || "title-" + s : void 0, E.createElement(
140
141
  "svg",
141
142
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
142
- n ? C.createElement("title", { id: s }, n) : null,
143
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
143
+ n ? E.createElement("title", { id: s }, n) : null,
144
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
144
145
  );
145
146
  });
146
147
  var jt = function(e, o) {
@@ -154,11 +155,11 @@ var jt = function(e, o) {
154
155
  const At = Y((e, o) => {
155
156
  var { title: n, titleId: t } = e, r = jt(e, ["title", "titleId"]);
156
157
  let s = Q();
157
- return s = n ? t || "title-" + s : void 0, C.createElement(
158
+ return s = n ? t || "title-" + s : void 0, E.createElement(
158
159
  "svg",
159
160
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
160
- n ? C.createElement("title", { id: s }, n) : null,
161
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
161
+ n ? E.createElement("title", { id: s }, n) : null,
162
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
162
163
  );
163
164
  });
164
165
  var Dt = function(e, o) {
@@ -172,11 +173,11 @@ var Dt = function(e, o) {
172
173
  const Bt = Y((e, o) => {
173
174
  var { title: n, titleId: t } = e, r = Dt(e, ["title", "titleId"]);
174
175
  let s = Q();
175
- return s = n ? t || "title-" + s : void 0, C.createElement(
176
+ return s = n ? t || "title-" + s : void 0, E.createElement(
176
177
  "svg",
177
178
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
178
- n ? C.createElement("title", { id: s }, n) : null,
179
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
179
+ n ? E.createElement("title", { id: s }, n) : null,
180
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
180
181
  );
181
182
  });
182
183
  var Tt = function(e, o) {
@@ -190,11 +191,11 @@ var Tt = function(e, o) {
190
191
  const Lt = Y((e, o) => {
191
192
  var { title: n, titleId: t } = e, r = Tt(e, ["title", "titleId"]);
192
193
  let s = Q();
193
- return s = n ? t || "title-" + s : void 0, C.createElement(
194
+ return s = n ? t || "title-" + s : void 0, E.createElement(
194
195
  "svg",
195
196
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
196
- n ? C.createElement("title", { id: s }, n) : null,
197
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
197
+ n ? E.createElement("title", { id: s }, n) : null,
198
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
198
199
  );
199
200
  });
200
201
  var Ft = function(e, o) {
@@ -208,11 +209,11 @@ var Ft = function(e, o) {
208
209
  const Ht = Y((e, o) => {
209
210
  var { title: n, titleId: t } = e, r = Ft(e, ["title", "titleId"]);
210
211
  let s = Q();
211
- return s = n ? t || "title-" + s : void 0, C.createElement(
212
+ return s = n ? t || "title-" + s : void 0, E.createElement(
212
213
  "svg",
213
214
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
214
- n ? C.createElement("title", { id: s }, n) : null,
215
- C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.75c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm6.75 1.5V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25H4.5a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.875-11.384h.806a.75.75 0 0 0 0-1.5h-2.75m-6 4.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0zM14 9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
215
+ n ? E.createElement("title", { id: s }, n) : null,
216
+ E.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.75c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm6.75 1.5V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25H4.5a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.875-11.384h.806a.75.75 0 0 0 0-1.5h-2.75m-6 4.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0zM14 9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
216
217
  );
217
218
  });
218
219
  var Gt = function(e, o) {
@@ -226,11 +227,11 @@ var Gt = function(e, o) {
226
227
  const Ae = Y((e, o) => {
227
228
  var { title: n, titleId: t } = e, r = Gt(e, ["title", "titleId"]);
228
229
  let s = Q();
229
- return s = n ? t || "title-" + s : void 0, C.createElement(
230
+ return s = n ? t || "title-" + s : void 0, E.createElement(
230
231
  "svg",
231
232
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
232
- n ? C.createElement("title", { id: s }, n) : null,
233
- C.createElement("path", { fill: "currentColor", d: "M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z" })
233
+ n ? E.createElement("title", { id: s }, n) : null,
234
+ E.createElement("path", { fill: "currentColor", d: "M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z" })
234
235
  );
235
236
  }), qt = "_badge_5li3b_1", Kt = "_label_5li3b_33", ye = {
236
237
  badge: qt,
@@ -242,58 +243,58 @@ const Ae = Y((e, o) => {
242
243
  theme: t,
243
244
  size: r = "sm",
244
245
  tooltip: s,
245
- className: m,
246
- style: c,
247
- children: d
246
+ className: u,
247
+ style: f,
248
+ children: i
248
249
  }) => s ? /* @__PURE__ */ a($e, { content: s, children: /* @__PURE__ */ a(
249
250
  "span",
250
251
  {
251
- className: K(ye.badge, m),
252
- style: c,
252
+ className: V(ye.badge, u),
253
+ style: f,
253
254
  "data-color": o,
254
255
  "data-variant": n,
255
256
  "data-theme": t,
256
257
  "data-size": r,
257
258
  ...r === "xs" && { "aria-hidden": !0 },
258
- children: /* @__PURE__ */ a("span", { className: ye.label, children: e || d })
259
+ children: /* @__PURE__ */ a("span", { className: ye.label, children: e || i })
259
260
  }
260
261
  ) }) : /* @__PURE__ */ a(
261
262
  "span",
262
263
  {
263
- className: K(ye.badge, m),
264
- style: c,
264
+ className: V(ye.badge, u),
265
+ style: f,
265
266
  "data-color": o,
266
267
  "data-variant": n,
267
268
  "data-theme": t,
268
269
  "data-size": r,
269
270
  ...r === "xs" && { "aria-hidden": !0 },
270
- children: /* @__PURE__ */ a("span", { className: ye.label, children: e || d })
271
+ children: /* @__PURE__ */ a("span", { className: ye.label, children: e || i })
271
272
  }
272
273
  ), Vt = "_icon_1y3dz_1", Ut = "_shape_1y3dz_9", Wt = "_svg_1y3dz_14", Yt = "_image_1y3dz_15", fe = {
273
274
  icon: Vt,
274
275
  shape: Ut,
275
276
  svg: Wt,
276
277
  image: Yt
277
- }, Re = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), se = ({
278
+ }, ze = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), se = ({
278
279
  loading: e,
279
280
  altText: o,
280
281
  svgElement: n,
281
282
  size: t,
282
283
  color: r,
283
284
  iconUrl: s,
284
- className: m,
285
- style: c,
286
- children: d
287
- }) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: K(fe.icon, m), style: c, children: /* @__PURE__ */ O(ue, { loading: e, variant: "circle", className: fe.shape, children: [
285
+ className: u,
286
+ style: f,
287
+ children: i
288
+ }) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: V(fe.icon, u), style: f, children: /* @__PURE__ */ I(ue, { loading: e, variant: "circle", className: fe.shape, children: [
288
289
  /* @__PURE__ */ a("span", { className: fe.shape }),
289
290
  n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: fe.svg }),
290
291
  s && /* @__PURE__ */ a("img", { src: s, alt: o, className: fe.image }),
291
- d
292
- ] }) }), Qt = ({ size: e, color: o, label: n, helperText: t, children: r, ...s }) => /* @__PURE__ */ O(mt, { size: e, color: o, ...s, children: [
293
- n && /* @__PURE__ */ a(ft, { size: e, children: n }),
294
- r,
295
- t && /* @__PURE__ */ a(Ke, { size: "xs", children: t })
296
- ] }), Xt = "_search_18jfe_1", Jt = "_searchInput_18jfe_8", ze = {
292
+ i
293
+ ] }) }), Qt = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: s, ...u }) => /* @__PURE__ */ I(mt, { size: e, color: o, ...u, children: [
294
+ n && /* @__PURE__ */ a(ft, { size: e, htmlFor: t, children: n }),
295
+ s,
296
+ r && /* @__PURE__ */ a(Ke, { size: "xs", children: r })
297
+ ] }), Xt = "_search_18jfe_1", Jt = "_searchInput_18jfe_8", Ce = {
297
298
  search: Xt,
298
299
  searchInput: Jt
299
300
  }, Xe = ({
@@ -303,67 +304,67 @@ const Ae = Y((e, o) => {
303
304
  value: t,
304
305
  placeholder: r = "Search",
305
306
  clearButtonAltText: s = "Clear search",
306
- onChange: m,
307
- onClear: c,
308
- onNavigate: d,
309
- combobox: l = !1,
310
- listId: p,
311
- "aria-activedescendant": i,
312
- onKeyDown: w,
313
- onInput: v,
314
- onFocus: x,
315
- ...E
316
- }) => /* @__PURE__ */ a("li", { className: ze.search, style: e, "data-index": o, "data-menu-search": "true", children: l ? (
307
+ onChange: u,
308
+ onClear: f,
309
+ onNavigate: i,
310
+ combobox: c = !1,
311
+ listId: _,
312
+ "aria-activedescendant": l,
313
+ onKeyDown: b,
314
+ onInput: p,
315
+ onFocus: w,
316
+ ...z
317
+ }) => /* @__PURE__ */ a("li", { className: Ce.search, style: e, "data-index": o, "data-menu-search": "true", children: c ? (
317
318
  // biome-ignore lint/a11y/useFocusableInteractive: <explanation>
318
319
  // biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
319
320
  // biome-ignore lint/a11y/useSemanticElements: <explanation>
320
- /* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns": p, children: /* @__PURE__ */ a(
321
+ /* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns": _, children: /* @__PURE__ */ a(
321
322
  Pe,
322
323
  {
323
324
  size: "xs",
324
- className: ze.searchInput,
325
+ className: Ce.searchInput,
325
326
  name: n,
326
327
  value: t,
327
328
  placeholder: r,
328
- onChange: m,
329
- onClear: c,
329
+ onChange: u,
330
+ onClear: f,
330
331
  clearButtonAltText: s,
331
332
  autoComplete: "off",
332
333
  autoCorrect: "off",
333
334
  autoCapitalize: "off",
334
335
  "aria-autocomplete": "list",
335
- "aria-controls": p,
336
- "aria-activedescendant": i,
336
+ "aria-controls": _,
337
+ "aria-activedescendant": l,
337
338
  autoFocus: !0,
338
- onKeyDown: (g) => {
339
- (g.key === "ArrowUp" || g.key === "ArrowDown") && (g.preventDefault(), d?.()), w?.(g);
339
+ onKeyDown: (h) => {
340
+ (h.key === "ArrowUp" || h.key === "ArrowDown") && (h.preventDefault(), i?.()), b?.(h);
340
341
  },
341
- onInput: v,
342
- onFocus: x,
343
- ...E
342
+ onInput: p,
343
+ onFocus: w,
344
+ ...z
344
345
  }
345
346
  ) })
346
347
  ) : /* @__PURE__ */ a(
347
348
  Pe,
348
349
  {
349
350
  size: "xs",
350
- className: ze.searchInput,
351
+ className: Ce.searchInput,
351
352
  name: n,
352
353
  value: t,
353
354
  placeholder: r,
354
- onChange: m,
355
- onClear: c,
355
+ onChange: u,
356
+ onClear: f,
356
357
  clearButtonAltText: s,
357
358
  autoComplete: "off",
358
359
  autoCorrect: "off",
359
360
  autoCapitalize: "off",
360
361
  autoFocus: !0,
361
- onKeyDown: (g) => {
362
- (g.key === "ArrowUp" || g.key === "ArrowDown") && (g.preventDefault(), d?.()), w?.(g);
362
+ onKeyDown: (h) => {
363
+ (h.key === "ArrowUp" || h.key === "ArrowDown") && (h.preventDefault(), i?.()), b?.(h);
363
364
  },
364
- onInput: v,
365
- onFocus: x,
366
- ...E
365
+ onInput: p,
366
+ onFocus: w,
367
+ ...z
367
368
  }
368
369
  ) }), Je = ({
369
370
  level: e = 0,
@@ -372,116 +373,116 @@ const Ae = Y((e, o) => {
372
373
  a11yMode: t = "menu",
373
374
  open: r,
374
375
  scrollToTopOnOpen: s = !1,
375
- autoActivateFirstItem: m = !0,
376
- autoFocusList: c = !0,
377
- announceNoResults: d = !1,
378
- search: l,
379
- items: p,
380
- groups: i = {},
381
- size: w,
382
- id: v,
383
- color: x,
384
- variant: E,
385
- scrollRefStyles: g = {},
386
- keyboardEvents: S = !1,
387
- onSelect: j = () => {
376
+ autoActivateFirstItem: u = !0,
377
+ autoFocusList: f = !0,
378
+ announceNoResults: i = !1,
379
+ search: c,
380
+ items: _,
381
+ groups: l = {},
382
+ size: b,
383
+ id: p,
384
+ color: w,
385
+ variant: z,
386
+ scrollRefStyles: h = {},
387
+ keyboardEvents: N = !1,
388
+ onSelect: A = () => {
388
389
  },
389
- onActiveItemIdChange: k
390
+ onActiveItemIdChange: R
390
391
  }) => {
391
392
  if (o && e >= o)
392
393
  return null;
393
- const _ = t === "combobox", f = _ && v ? `${v}-listbox` : v, D = J(r), R = J(r), [A, P] = oe(!1), M = le(
394
- () => p.map((u, z) => ({
395
- ...u,
396
- id: u.id || `${v}-item-${z}`
394
+ const y = t === "combobox", v = y && p ? `${p}-listbox` : p, k = J(r), P = J(r), [D, M] = oe(!1), $ = le(
395
+ () => _.map((d, C) => ({
396
+ ...d,
397
+ id: d.id || `${p}-item-${C}`
397
398
  })),
398
- [p, v]
399
- ), $ = J(null), { menu: N, setActiveIndex: h, activeItem: y } = Me({
400
- items: M,
401
- groups: i,
399
+ [_, p]
400
+ ), j = J(null), { menu: S, setActiveIndex: O, activeItem: m } = Me({
401
+ items: $,
402
+ groups: l,
402
403
  groupByKey: "groupId",
403
- keyboardEvents: S,
404
- autoActivateFirstItem: m,
405
- onSelect: j,
406
- ref: $
404
+ keyboardEvents: N,
405
+ autoActivateFirstItem: u,
406
+ onSelect: A,
407
+ ref: j
407
408
  });
408
409
  return W(() => {
409
- k?.(y?.id);
410
- }, [y?.id, k]), W(() => {
410
+ R?.(m?.id);
411
+ }, [m?.id, R]), W(() => {
411
412
  if (!s) {
412
- D.current = r;
413
+ k.current = r;
413
414
  return;
414
415
  }
415
- const u = D.current;
416
- D.current = r, r && !u && $.current?.scrollTo({ top: 0 });
416
+ const d = k.current;
417
+ k.current = r, r && !d && j.current?.scrollTo({ top: 0 });
417
418
  }, [r, s]), W(() => {
418
- const u = R.current;
419
- R.current = r, !(!S || l || !c) && r && !u && requestAnimationFrame(() => $.current?.focus?.({ preventScroll: !0 }));
420
- }, [r, S, l]), W(() => {
421
- if (_ && d) {
422
- h(0), P(!0);
419
+ const d = P.current;
420
+ P.current = r, !(!N || c || !f) && r && !d && requestAnimationFrame(() => j.current?.focus?.({ preventScroll: !0 }));
421
+ }, [r, N, c]), W(() => {
422
+ if (y && i) {
423
+ O(0), M(!0);
423
424
  return;
424
425
  }
425
- }, [d, _, h]), /* @__PURE__ */ O(
426
+ }, [i, y, O]), /* @__PURE__ */ I(
426
427
  Ie,
427
428
  {
428
- variant: E,
429
+ variant: z,
429
430
  expanded: n,
430
- ref: $,
431
- style: g,
432
- id: f,
433
- role: _ ? "listbox" : void 0,
434
- tabIndex: S ? -1 : void 0,
431
+ ref: j,
432
+ style: h,
433
+ id: v,
434
+ role: y ? "listbox" : void 0,
435
+ tabIndex: N ? -1 : void 0,
435
436
  children: [
436
- l && /* @__PURE__ */ a(
437
+ c && /* @__PURE__ */ a(
437
438
  Xe,
438
439
  {
439
- ...l,
440
- combobox: _,
441
- listId: f,
442
- "aria-activedescendant": _ && A ? y?.id : void 0,
443
- onNavigate: _ ? () => P(!0) : void 0,
444
- onChange: (u) => {
445
- P(!1), l.onChange?.(u);
440
+ ...c,
441
+ combobox: y,
442
+ listId: v,
443
+ "aria-activedescendant": y && D ? m?.id : void 0,
444
+ onNavigate: y ? () => M(!0) : void 0,
445
+ onChange: (d) => {
446
+ M(!1), c.onChange?.(d);
446
447
  },
447
- onFocus: (u) => {
448
- P(!1), l.onFocus?.(u);
448
+ onFocus: (d) => {
449
+ M(!1), c.onFocus?.(d);
449
450
  },
450
- onInput: (u) => {
451
- P(!1), l.onInput?.(u);
451
+ onInput: (d) => {
452
+ M(!1), c.onInput?.(d);
452
453
  },
453
- onKeyDown: (u) => {
454
- const z = u.key === "ArrowUp" || u.key === "ArrowDown", L = u.key.length === 1 || u.key === "Backspace" || u.key === "Delete";
455
- _ && !z && L && P(!1), l.onKeyDown?.(u);
454
+ onKeyDown: (d) => {
455
+ const C = d.key === "ArrowUp" || d.key === "ArrowDown", F = d.key.length === 1 || d.key === "Backspace" || d.key === "Delete";
456
+ y && !C && F && M(!1), c.onKeyDown?.(d);
456
457
  }
457
458
  }
458
459
  ),
459
- N.map((u, z) => {
460
- const L = u?.props || {}, { title: F, hidden: H = !1, divider: V = !0 } = L;
461
- return /* @__PURE__ */ O(He, { children: [
462
- (e > 0 || z) && V ? /* @__PURE__ */ a(We, {}) : "",
463
- /* @__PURE__ */ a(Ue, { hidden: H, children: /* @__PURE__ */ O(Ie, { role: "presentation", children: [
464
- F && /* @__PURE__ */ a(Ye, { title: F, level: e }),
465
- u?.items.filter((ne) => !ne.props?.hidden).map((ne, b) => {
466
- const { active: I, onMouseEnter: T } = ne, { groupId: U, ...B } = ne.props || {}, { expanded: re } = B, ie = Array.isArray(B?.items) && B.items.length > 0, ge = B.role === "checkbox" || B.role === "radio", Ne = _ && !ge ? "option" : B.role;
467
- return /* @__PURE__ */ O(
460
+ S.map((d, C) => {
461
+ const F = d?.props || {}, { title: H, hidden: L = !1, divider: q = !0 } = F;
462
+ return /* @__PURE__ */ I(He, { children: [
463
+ (e > 0 || C) && q ? /* @__PURE__ */ a(We, {}) : "",
464
+ /* @__PURE__ */ a(Ue, { hidden: L, children: /* @__PURE__ */ I(Ie, { role: "presentation", children: [
465
+ H && /* @__PURE__ */ a(Ye, { title: H, level: e }),
466
+ d?.items.filter((ne) => !ne.props?.hidden).map((ne, g) => {
467
+ const { active: x, onMouseEnter: T } = ne, { groupId: U, ...B } = ne.props || {}, { expanded: re } = B, ie = Array.isArray(B?.items) && B.items.length > 0, ge = B.role === "checkbox" || B.role === "radio", Ne = y && !ge ? "option" : B.role;
468
+ return /* @__PURE__ */ I(
468
469
  Ve,
469
470
  {
470
471
  expanded: re,
471
- onMouseLeave: () => h(-1),
472
- role: _ || ge ? "presentation" : void 0,
472
+ onMouseLeave: () => O(-1),
473
+ role: y || ge ? "presentation" : void 0,
473
474
  children: [
474
475
  /* @__PURE__ */ a(
475
476
  tt,
476
477
  {
477
478
  ...B,
478
- size: B?.size || L?.size || w,
479
- color: B?.color || L?.color || x,
480
- variant: B?.variant || L?.variant || E,
481
- active: I,
479
+ size: B?.size || F?.size || b,
480
+ color: B?.color || F?.color || w,
481
+ variant: B?.variant || F?.variant || z,
482
+ active: x,
482
483
  role: Ne,
483
484
  selected: B.selected,
484
- tabIndex: B?.disabled || S ? -1 : B.tabIndex ?? 0,
485
+ tabIndex: B?.disabled || N ? -1 : B.tabIndex ?? 0,
485
486
  onMouseEnter: T,
486
487
  "aria-haspopup": ie ? "menu" : void 0,
487
488
  "aria-expanded": ie ? re : void 0,
@@ -496,19 +497,19 @@ const Ae = Y((e, o) => {
496
497
  level: e + 1,
497
498
  maxLevels: o,
498
499
  items: B?.items,
499
- groups: i,
500
- size: w,
501
- color: x,
502
- variant: E
500
+ groups: l,
501
+ size: b,
502
+ color: w,
503
+ variant: z
503
504
  }
504
505
  )
505
506
  ]
506
507
  },
507
- b
508
+ g
508
509
  );
509
510
  })
510
- ] }) }, z)
511
- ] }, z);
511
+ ] }) }, C)
512
+ ] }, C);
512
513
  })
513
514
  ]
514
515
  }
@@ -516,138 +517,138 @@ const Ae = Y((e, o) => {
516
517
  }, Zt = (e) => {
517
518
  const o = J(null), n = J(null), [t, r] = oe(0), {
518
519
  search: s,
519
- items: m,
520
- groups: c = {},
521
- size: d,
522
- color: l,
523
- variant: p,
524
- keyboardEvents: i,
525
- scrollRefStyles: w = {},
526
- id: v,
527
- expanded: x,
528
- a11yMode: E = "menu",
529
- open: g,
530
- scrollToTopOnOpen: S = !1,
531
- autoActivateFirstItem: j = !0,
532
- announceNoResults: k = !1,
533
- onActiveItemIdChange: _
534
- } = e, f = E === "combobox", D = f && v ? `${v}-listbox` : v, R = J(g), [A, P] = oe(!1), M = le(
535
- () => m.map((b, I) => ({
536
- ...b,
537
- id: b.id || `${v}-item-${I}`
520
+ items: u,
521
+ groups: f = {},
522
+ size: i,
523
+ color: c,
524
+ variant: _,
525
+ keyboardEvents: l,
526
+ scrollRefStyles: b = {},
527
+ id: p,
528
+ expanded: w,
529
+ a11yMode: z = "menu",
530
+ open: h,
531
+ scrollToTopOnOpen: N = !1,
532
+ autoActivateFirstItem: A = !0,
533
+ announceNoResults: R = !1,
534
+ onActiveItemIdChange: y
535
+ } = e, v = z === "combobox", k = v && p ? `${p}-listbox` : p, P = J(h), [D, M] = oe(!1), $ = le(
536
+ () => u.map((g, x) => ({
537
+ ...g,
538
+ id: g.id || `${p}-item-${x}`
538
539
  })),
539
- [m, v]
540
- ), { menu: $, activeItem: N, setActiveIndex: h, activeIndex: y } = Me({
541
- items: M,
542
- groups: c,
540
+ [u, p]
541
+ ), { menu: j, activeItem: S, setActiveIndex: O, activeIndex: m } = Me({
542
+ items: $,
543
+ groups: f,
543
544
  groupByKey: "groupId",
544
- keyboardEvents: i,
545
- autoActivateFirstItem: j,
545
+ keyboardEvents: l,
546
+ autoActivateFirstItem: A,
546
547
  ref: o
547
- }), { flatMenu: u, virtualizer: z, scrollMaxHeight: L } = vt({
548
- menu: $,
548
+ }), { flatMenu: d, virtualizer: C, scrollMaxHeight: F } = vt({
549
+ menu: j,
549
550
  scrollRef: o
550
551
  });
551
- Ce(() => {
552
- const b = n.current;
553
- if (!b) return;
554
- const I = Math.round(b.offsetTop);
555
- r((T) => T === I ? T : I);
552
+ Ee(() => {
553
+ const g = n.current;
554
+ if (!g) return;
555
+ const x = Math.round(g.offsetTop);
556
+ r((T) => T === x ? T : x);
556
557
  });
557
- const F = le(() => {
558
- const b = N?.id;
559
- if (b)
560
- return u.findIndex((T) => T.type === "item" && T.itemProps?.id === b);
561
- if (y < 0) return -1;
562
- let I = -1;
563
- for (let T = 0; T < u.length; T++)
564
- if (u[T]?.type === "item" && (I += 1, I === y))
558
+ const H = le(() => {
559
+ const g = S?.id;
560
+ if (g)
561
+ return d.findIndex((T) => T.type === "item" && T.itemProps?.id === g);
562
+ if (m < 0) return -1;
563
+ let x = -1;
564
+ for (let T = 0; T < d.length; T++)
565
+ if (d[T]?.type === "item" && (x += 1, x === m))
565
566
  return T;
566
567
  return -1;
567
- }, [N?.id, y, u]), H = J(null);
568
- Ce(() => {
569
- const b = H?.current, I = typeof b == "number" ? F <= b : !1;
570
- H.current = F;
571
- const T = I ? F : F + 2;
572
- if (!I) {
573
- const ie = z.getOffsetForIndex(T, "auto");
568
+ }, [S?.id, m, d]), L = J(null);
569
+ Ee(() => {
570
+ const g = L?.current, x = typeof g == "number" ? H <= g : !1;
571
+ L.current = H;
572
+ const T = x ? H : H + 2;
573
+ if (!x) {
574
+ const ie = C.getOffsetForIndex(T, "auto");
574
575
  if (!ie) return;
575
576
  const [ge, Ne] = ie;
576
577
  if (Ne === "auto") return;
577
- z.scrollToOffset(ge + t + 10, { align: "start" });
578
+ C.scrollToOffset(ge + t + 10, { align: "start" });
578
579
  return;
579
580
  }
580
- if (F <= 3) {
581
- z.scrollToOffset(0);
581
+ if (H <= 3) {
582
+ C.scrollToOffset(0);
582
583
  return;
583
584
  }
584
- const U = z.getOffsetForIndex(F - 1, "auto");
585
+ const U = C.getOffsetForIndex(H - 1, "auto");
585
586
  if (!U) return;
586
587
  const [B, re] = U;
587
- re !== "auto" && z.scrollToOffset(B + t + 10, { align: "start" });
588
- }, [F, t, z, H]);
589
- const V = le(() => {
590
- const b = /* @__PURE__ */ new Map();
591
- let I = 0;
592
- return u.forEach((T, U) => {
593
- T.type === "item" && (I += 1, b.set(U, I));
594
- }), { positions: b, total: I };
595
- }, [u]);
588
+ re !== "auto" && C.scrollToOffset(B + t + 10, { align: "start" });
589
+ }, [H, t, C, L]);
590
+ const q = le(() => {
591
+ const g = /* @__PURE__ */ new Map();
592
+ let x = 0;
593
+ return d.forEach((T, U) => {
594
+ T.type === "item" && (x += 1, g.set(U, x));
595
+ }), { positions: g, total: x };
596
+ }, [d]);
596
597
  W(() => {
597
- _?.(N?.id);
598
- }, [N?.id, _]), W(() => {
599
- if (f && k) {
600
- h(0), P(!0);
598
+ y?.(S?.id);
599
+ }, [S?.id, y]), W(() => {
600
+ if (v && R) {
601
+ O(0), M(!0);
601
602
  return;
602
603
  }
603
- }, [k, f, h]), W(() => {
604
- if (!S) {
605
- R.current = g;
604
+ }, [R, v, O]), W(() => {
605
+ if (!N) {
606
+ P.current = h;
606
607
  return;
607
608
  }
608
- const b = R.current;
609
- R.current = g, g && !b && o.current?.scrollTo({ top: 0 });
610
- }, [g, S]);
609
+ const g = P.current;
610
+ P.current = h, h && !g && o.current?.scrollTo({ top: 0 });
611
+ }, [h, N]);
611
612
  const ne = {
612
613
  position: "relative",
613
- maxHeight: w?.maxHeight || L,
614
+ maxHeight: b?.maxHeight || F,
614
615
  margin: "-0.5rem",
615
616
  padding: "0.5rem 0.5rem 1rem 0.5rem",
616
- minWidth: w?.minWidth ?? "20rem",
617
+ minWidth: b?.minWidth ?? "20rem",
617
618
  overflowY: "auto",
618
- ...w
619
+ ...b
619
620
  };
620
- return /* @__PURE__ */ O(
621
+ return /* @__PURE__ */ I(
621
622
  Ie,
622
623
  {
623
624
  ref: o,
624
625
  style: ne,
625
- variant: p,
626
- color: l,
627
- expanded: x,
628
- id: D,
629
- role: f ? "listbox" : void 0,
626
+ variant: _,
627
+ color: c,
628
+ expanded: w,
629
+ id: k,
630
+ role: v ? "listbox" : void 0,
630
631
  children: [
631
632
  s && /* @__PURE__ */ a(
632
633
  Xe,
633
634
  {
634
635
  ...s,
635
- combobox: f,
636
- listId: D,
637
- "aria-activedescendant": f && A ? N?.id : void 0,
638
- onNavigate: f ? () => P(!0) : void 0,
639
- onChange: (b) => {
640
- P(!1), s.onChange?.(b);
636
+ combobox: v,
637
+ listId: k,
638
+ "aria-activedescendant": v && D ? S?.id : void 0,
639
+ onNavigate: v ? () => M(!0) : void 0,
640
+ onChange: (g) => {
641
+ M(!1), s.onChange?.(g);
641
642
  },
642
- onFocus: (b) => {
643
- P(!1), s.onFocus?.(b);
643
+ onFocus: (g) => {
644
+ M(!1), s.onFocus?.(g);
644
645
  },
645
- onInput: (b) => {
646
- P(!1), s.onInput?.(b);
646
+ onInput: (g) => {
647
+ M(!1), s.onInput?.(g);
647
648
  },
648
- onKeyDown: (b) => {
649
- const I = b.key === "ArrowUp" || b.key === "ArrowDown", T = b.key.length === 1 || b.key === "Backspace" || b.key === "Delete";
650
- f && !I && T && P(!1), s.onKeyDown?.(b);
649
+ onKeyDown: (g) => {
650
+ const x = g.key === "ArrowUp" || g.key === "ArrowDown", T = g.key.length === 1 || g.key === "Backspace" || g.key === "Delete";
651
+ v && !x && T && M(!1), s.onKeyDown?.(g);
651
652
  }
652
653
  }
653
654
  ),
@@ -657,25 +658,25 @@ const Ae = Y((e, o) => {
657
658
  ref: n,
658
659
  style: {
659
660
  position: "relative",
660
- height: `${z.getTotalSize()}px`,
661
+ height: `${C.getTotalSize()}px`,
661
662
  width: "100%"
662
663
  },
663
- children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children: z.getVirtualItems().map((b) => {
664
- const I = u[b.index];
665
- if (!I) return null;
664
+ children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children: C.getVirtualItems().map((g) => {
665
+ const x = d[g.index];
666
+ if (!x) return null;
666
667
  const T = {
667
668
  position: "absolute",
668
669
  top: 0,
669
670
  left: 0,
670
671
  width: "100%",
671
- transform: `translateY(${b.start}px)`
672
+ transform: `translateY(${g.start}px)`
672
673
  }, U = {
673
674
  style: T,
674
- index: b.index,
675
- "data-index": b.index,
676
- ref: z.measureElement
675
+ index: g.index,
676
+ "data-index": g.index,
677
+ ref: C.measureElement
677
678
  };
678
- switch (I.type) {
679
+ switch (x.type) {
679
680
  case "divider":
680
681
  return /* @__PURE__ */ a(
681
682
  We,
@@ -683,34 +684,34 @@ const Ae = Y((e, o) => {
683
684
  ...U,
684
685
  style: { ...T, padding: "0.25rem 0" }
685
686
  },
686
- b.key
687
+ g.key
687
688
  );
688
689
  case "header":
689
- return /* @__PURE__ */ a(Ye, { ...U, title: I.title || "", level: 1 }, b.key);
690
+ return /* @__PURE__ */ a(Ye, { ...U, title: x.title || "", level: 1 }, g.key);
690
691
  default: {
691
- const B = I.itemProps?.role === "checkbox" || I.itemProps?.role === "radio", re = f && !B ? "option" : I.itemProps?.role;
692
+ const B = x.itemProps?.role === "checkbox" || x.itemProps?.role === "radio", re = v && !B ? "option" : x.itemProps?.role;
692
693
  return /* @__PURE__ */ a(
693
694
  Ve,
694
695
  {
695
696
  ...U,
696
- role: f || B ? "presentation" : "menuitem",
697
+ role: v || B ? "presentation" : "menuitem",
697
698
  children: /* @__PURE__ */ a(
698
699
  tt,
699
700
  {
700
- ...I.itemProps || {},
701
- size: I.itemProps?.size || d,
702
- color: I.itemProps?.color || l,
703
- variant: I.itemProps?.variant || p,
704
- active: I.active,
701
+ ...x.itemProps || {},
702
+ size: x.itemProps?.size || i,
703
+ color: x.itemProps?.color || c,
704
+ variant: x.itemProps?.variant || _,
705
+ active: x.active,
705
706
  role: re,
706
- selected: I.itemProps?.selected,
707
- "aria-posinset": f ? V.positions.get(b.index) : void 0,
708
- "aria-setsize": f ? V.total : void 0,
709
- tabIndex: I.itemProps?.disabled || i ? -1 : 0
707
+ selected: x.itemProps?.selected,
708
+ "aria-posinset": v ? q.positions.get(g.index) : void 0,
709
+ "aria-setsize": v ? q.total : void 0,
710
+ tabIndex: x.itemProps?.disabled || l ? -1 : 0
710
711
  }
711
712
  )
712
713
  },
713
- b.key
714
+ g.key
714
715
  );
715
716
  }
716
717
  }
@@ -731,16 +732,16 @@ const Ae = Y((e, o) => {
731
732
  console.warn("setPreviousId called outside of RootProvider context");
732
733
  },
733
734
  languageCode: "nb"
734
- }, Ze = ot(en), Xr = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
735
- const [r, s] = oe(o?.currentId || ""), [m, c] = oe(o?.previousId || "");
735
+ }, Ze = ot(en), Jr = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
736
+ const [r, s] = oe(o?.currentId || ""), [u, f] = oe(o?.previousId || "");
736
737
  return /* @__PURE__ */ a(
737
738
  Ze.Provider,
738
739
  {
739
740
  value: {
740
741
  currentId: r,
741
742
  setCurrentId: s,
742
- setPreviousId: c,
743
- previousId: m,
743
+ setPreviousId: f,
744
+ previousId: u,
744
745
  debug: n,
745
746
  languageCode: t
746
747
  },
@@ -751,22 +752,22 @@ const Ae = Y((e, o) => {
751
752
  const e = at(Ze);
752
753
  if (!e)
753
754
  throw new Error("useRootContext must be used within a RootProvider.");
754
- const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: m } = e, c = (i) => {
755
- o && r(o), n(i);
756
- }, d = (i) => {
757
- t && console.debug(`useRootContext: toggleId called with value: ${i}`), c(o === i ? "" : i);
758
- }, l = () => {
759
- t && console.debug("useRootContext: closeAll called"), c("");
755
+ const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: u } = e, f = (l) => {
756
+ o && r(o), n(l);
757
+ }, i = (l) => {
758
+ t && console.debug(`useRootContext: toggleId called with value: ${l}`), f(o === l ? "" : l);
759
+ }, c = () => {
760
+ t && console.debug("useRootContext: closeAll called"), f("");
760
761
  };
761
- return lt(l), {
762
+ return lt(c), {
762
763
  currentId: o,
763
764
  previousId: s,
764
- toggleId: d,
765
- closeAll: l,
766
- openId: (i) => {
767
- t && console.debug(`useRootContext: openId called with value: ${i}`), c(i);
765
+ toggleId: i,
766
+ closeAll: c,
767
+ openId: (l) => {
768
+ t && console.debug(`useRootContext: openId called with value: ${l}`), f(l);
768
769
  },
769
- languageCode: m
770
+ languageCode: u
770
771
  };
771
772
  }, nn = (e) => {
772
773
  switch (e) {
@@ -810,102 +811,102 @@ const Ae = Y((e, o) => {
810
811
  onClear: t,
811
812
  clearButtonAltText: r,
812
813
  items: s = [],
813
- groups: m = {}
814
+ groups: u = {}
814
815
  }) => {
815
- const { languageCode: c } = tn(), d = G.useMemo(() => nn(c), [c]), [l, p] = G.useState(""), i = G.useCallback(
816
- (y) => {
817
- p(y.target.value), n?.(y);
816
+ const { languageCode: f } = tn(), i = G.useMemo(() => nn(f), [f]), [c, _] = G.useState(""), l = G.useCallback(
817
+ (m) => {
818
+ _(m.target.value), n?.(m);
818
819
  },
819
820
  [n]
820
- ), w = G.useCallback(() => {
821
- p(""), t?.();
822
- }, [t]), v = G.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), x = v.length > 0, E = G.useMemo(() => v.toLowerCase(), [v]), g = G.useMemo(() => v ? v.split(" ") : [], [v]), S = G.useMemo(
821
+ ), b = G.useCallback(() => {
822
+ _(""), t?.();
823
+ }, [t]), p = G.useMemo(() => c.trim().replace(/\s+/g, " "), [c]), w = p.length > 0, z = G.useMemo(() => p.toLowerCase(), [p]), h = G.useMemo(() => p ? p.split(" ") : [], [p]), N = G.useMemo(
823
824
  () => ({
824
- placeholder: e ?? d.placeholder,
825
+ placeholder: e ?? i.placeholder,
825
826
  name: o ?? "search",
826
- value: l,
827
- onChange: i,
828
- onClear: w,
827
+ value: c,
828
+ onChange: l,
829
+ onClear: b,
829
830
  clearButtonAltText: r
830
831
  }),
831
- [e, d.placeholder, o, l, i, w, r]
832
- ), j = G.useMemo(
833
- () => s.map((y) => {
834
- const u = y?.searchWords?.length ? y.searchWords : [y?.title, y?.description].filter(Boolean);
832
+ [e, i.placeholder, o, c, l, b, r]
833
+ ), A = G.useMemo(
834
+ () => s.map((m) => {
835
+ const d = m?.searchWords?.length ? m.searchWords : [m?.title, m?.description].filter(Boolean);
835
836
  return {
836
- ...y,
837
- searchWords: u ?? []
837
+ ...m,
838
+ searchWords: d ?? []
838
839
  };
839
840
  }),
840
841
  [s]
841
- ), k = G.useMemo(
842
+ ), R = G.useMemo(
842
843
  () => [
843
844
  {
844
845
  id: "emptySearch",
845
846
  "aria-disabled": !0,
846
- title: d.noResults,
847
+ title: i.noResults,
847
848
  groupId: "emptySearch",
848
849
  icon: bt,
849
850
  size: "sm",
850
851
  as: "div"
851
852
  }
852
853
  ],
853
- [d.noResults]
854
- ), _ = G.useMemo(() => {
855
- const y = s.filter((u) => u.groupId === "emptySearch").map((u) => ({ ...u, hidden: !1 }));
856
- return y.length ? y : k;
857
- }, [s, k]), { selectedItems: f, results: D } = G.useMemo(() => {
858
- if (!x) return { selectedItems: [], results: [] };
859
- const y = [], u = [];
860
- for (const z of j)
861
- z.checked === !0 && y.push({ ...z, groupId: "selected" }), (z.searchWords ?? []).some((H) => String(H).toLowerCase().includes(E)) && u.push({
862
- ...z,
854
+ [i.noResults]
855
+ ), y = G.useMemo(() => {
856
+ const m = s.filter((d) => d.groupId === "emptySearch").map((d) => ({ ...d, hidden: !1 }));
857
+ return m.length ? m : R;
858
+ }, [s, R]), { selectedItems: v, results: k } = G.useMemo(() => {
859
+ if (!w) return { selectedItems: [], results: [] };
860
+ const m = [], d = [];
861
+ for (const C of A)
862
+ C.checked === !0 && m.push({ ...C, groupId: "selected" }), (C.searchWords ?? []).some((L) => String(L).toLowerCase().includes(z)) && d.push({
863
+ ...C,
863
864
  groupId: "search",
864
- highlightWords: g
865
+ highlightWords: h
865
866
  });
866
- return { selectedItems: y, results: u };
867
- }, [x, j, E, g]), R = D.length, A = f.length, P = G.useMemo(
867
+ return { selectedItems: m, results: d };
868
+ }, [w, A, z, h]), P = k.length, D = v.length, M = G.useMemo(
868
869
  () => ({
869
870
  search: {
870
871
  hidden: !0,
871
- title: d.hits(R)
872
+ title: i.hits(P)
872
873
  },
873
874
  selected: {
874
875
  hidden: !0,
875
- title: d.selected(A)
876
+ title: i.selected(D)
876
877
  },
877
878
  emptySearch: {
878
879
  hidden: !0,
879
- title: d.noResults
880
+ title: i.noResults
880
881
  },
881
- ...m
882
+ ...u
882
883
  }),
883
- [d, R, A, m]
884
- ), M = G.useMemo(
884
+ [i, P, D, u]
885
+ ), $ = G.useMemo(
885
886
  () => ({
886
- ...P,
887
+ ...M,
887
888
  search: {
888
- hidden: !x,
889
- title: d.hits(R)
889
+ hidden: !w,
890
+ title: i.hits(P)
890
891
  },
891
892
  selected: {
892
- hidden: A === 0,
893
- title: d.selected(A)
893
+ hidden: D === 0,
894
+ title: i.selected(D)
894
895
  },
895
896
  emptySearch: {
896
- hidden: x && (R > 0 || A > 0),
897
- title: d.noResults
897
+ hidden: w && (P > 0 || D > 0),
898
+ title: i.noResults
898
899
  }
899
900
  }),
900
- [P, x, d, R, A]
901
- ), $ = G.useMemo(() => x ? rn([...D, ...f]) : [], [x, D, f]), N = G.useMemo(() => [..._ || [], ...f || []], [_, f]), h = G.useMemo(() => x ? R ? $ : N : s, [x, s, R, $, N]);
901
+ [M, w, i, P, D]
902
+ ), j = G.useMemo(() => w ? rn([...k, ...v]) : [], [w, k, v]), S = G.useMemo(() => [...y || [], ...v || []], [y, v]), O = G.useMemo(() => w ? P ? j : S : s, [w, s, P, j, S]);
902
903
  return {
903
- search: S,
904
- results: D,
905
- resultCount: R,
906
- hasQuery: x,
907
- items: h,
908
- groups: M
904
+ search: N,
905
+ results: k,
906
+ resultCount: P,
907
+ hasQuery: w,
908
+ items: O,
909
+ groups: $
909
910
  };
910
911
  }, et = ({
911
912
  searchable: e,
@@ -914,60 +915,60 @@ const Ae = Y((e, o) => {
914
915
  groups: t = {},
915
916
  variant: r = "default",
916
917
  size: s,
917
- level: m = 0,
918
- maxLevels: c = 3,
919
- virtualized: d = !1,
920
- keyboardEvents: l = !1,
921
- scrollRefStyles: p = {},
922
- onActiveItemIdChange: i,
923
- a11yMode: w = "menu",
924
- open: v,
925
- scrollToTopOnOpen: x,
926
- autoFocusList: E,
927
- id: g
918
+ level: u = 0,
919
+ maxLevels: f = 3,
920
+ virtualized: i = !1,
921
+ keyboardEvents: c = !1,
922
+ scrollRefStyles: _ = {},
923
+ onActiveItemIdChange: l,
924
+ a11yMode: b = "menu",
925
+ open: p,
926
+ scrollToTopOnOpen: w,
927
+ autoFocusList: z,
928
+ id: h
928
929
  }) => {
929
- const S = on({ ...o, items: n, groups: t }), j = e ? S.search : o, k = e && S.hasQuery && S.resultCount === 0, _ = e ? S.items : n, f = e ? { ...t, ...S.groups } : t, D = w !== "combobox";
930
- return d ? /* @__PURE__ */ a(
930
+ const N = on({ ...o, items: n, groups: t }), A = e ? N.search : o, R = e && N.hasQuery && N.resultCount === 0, y = e ? N.items : n, v = e ? { ...t, ...N.groups } : t, k = b !== "combobox";
931
+ return i ? /* @__PURE__ */ a(
931
932
  Zt,
932
933
  {
933
- id: g,
934
- search: j,
935
- announceNoResults: k,
936
- items: _,
937
- groups: f,
934
+ id: h,
935
+ search: A,
936
+ announceNoResults: R,
937
+ items: y,
938
+ groups: v,
938
939
  variant: r,
939
940
  size: s,
940
- level: m,
941
- maxLevels: c,
942
- keyboardEvents: l,
943
- scrollRefStyles: p,
944
- onActiveItemIdChange: i,
945
- a11yMode: w,
946
- open: v,
947
- scrollToTopOnOpen: x,
948
- autoActivateFirstItem: D,
949
- autoFocusList: E
941
+ level: u,
942
+ maxLevels: f,
943
+ keyboardEvents: c,
944
+ scrollRefStyles: _,
945
+ onActiveItemIdChange: l,
946
+ a11yMode: b,
947
+ open: p,
948
+ scrollToTopOnOpen: w,
949
+ autoActivateFirstItem: k,
950
+ autoFocusList: z
950
951
  }
951
952
  ) : /* @__PURE__ */ a(
952
953
  Je,
953
954
  {
954
- id: g,
955
- search: j,
956
- announceNoResults: k,
957
- items: _,
958
- groups: f,
955
+ id: h,
956
+ search: A,
957
+ announceNoResults: R,
958
+ items: y,
959
+ groups: v,
959
960
  variant: r,
960
961
  size: s,
961
- level: m,
962
- maxLevels: c,
963
- keyboardEvents: l,
964
- scrollRefStyles: p,
965
- onActiveItemIdChange: i,
966
- a11yMode: w,
967
- open: v,
968
- scrollToTopOnOpen: x,
969
- autoActivateFirstItem: D,
970
- autoFocusList: E
962
+ level: u,
963
+ maxLevels: f,
964
+ keyboardEvents: c,
965
+ scrollRefStyles: _,
966
+ onActiveItemIdChange: l,
967
+ a11yMode: b,
968
+ open: p,
969
+ scrollToTopOnOpen: w,
970
+ autoActivateFirstItem: k,
971
+ autoFocusList: z
971
972
  }
972
973
  );
973
974
  }, an = "_media_1089b_3", sn = "_icon_1089b_10", ln = "_avatar_1089b_14", cn = "_avatarGroup_1089b_18", ae = {
@@ -983,10 +984,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
983
984
  if (!n)
984
985
  return null;
985
986
  if (o)
986
- return /* @__PURE__ */ a("div", { className: K(ae.icon, e), children: /* @__PURE__ */ a(se, { svgElement: Ae, loading: !0 }) });
987
- const r = Ee(n) ? "avatar" : Se(n) ? "avatarGroup" : (Re(n), "icon");
988
- return /* @__PURE__ */ O("div", { className: K(ae.media, e), "data-variant": r, children: [
989
- Ee(n) && /* @__PURE__ */ a(je, { ...n, className: ae.avatar }) || Se(n) && /* @__PURE__ */ a(be, { ...n, className: ae.avatarGroup }) || Re(n) && /* @__PURE__ */ a(se, { ...n, className: ae.icon }) || dn(n) && /* @__PURE__ */ a(se, { className: ae.icon, children: n }) || /* @__PURE__ */ a(se, { className: ae.icon, svgElement: n }),
987
+ return /* @__PURE__ */ a("div", { className: V(ae.icon, e), children: /* @__PURE__ */ a(se, { svgElement: Ae, loading: !0 }) });
988
+ const r = Se(n) ? "avatar" : ke(n) ? "avatarGroup" : (ze(n), "icon");
989
+ return /* @__PURE__ */ I("div", { className: V(ae.media, e), "data-variant": r, children: [
990
+ Se(n) && /* @__PURE__ */ a(je, { ...n, className: ae.avatar }) || ke(n) && /* @__PURE__ */ a(be, { ...n, className: ae.avatarGroup }) || ze(n) && /* @__PURE__ */ a(se, { ...n, className: ae.icon }) || dn(n) && /* @__PURE__ */ a(se, { className: ae.icon, children: n }) || /* @__PURE__ */ a(se, { className: ae.icon, svgElement: n }),
990
991
  t
991
992
  ] });
992
993
  }, un = "_heading_ydkmu_1", mn = {
@@ -998,28 +999,28 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
998
999
  as: t = "h2",
999
1000
  size: r,
1000
1001
  leading: s = "tight",
1001
- weight: m = "medium",
1002
- color: c,
1003
- variant: d,
1004
- maxRows: l,
1005
- className: p,
1006
- style: i,
1007
- children: w
1002
+ weight: u = "medium",
1003
+ color: f,
1004
+ variant: i,
1005
+ maxRows: c,
1006
+ className: _,
1007
+ style: l,
1008
+ children: b
1008
1009
  }) => {
1009
- const v = t, x = ct(w, n || []);
1010
+ const p = t, w = ct(b, n || []);
1010
1011
  return /* @__PURE__ */ a(
1011
- v,
1012
+ p,
1012
1013
  {
1013
1014
  id: e,
1014
- className: K(mn.heading, p),
1015
- style: i,
1015
+ className: V(mn.heading, _),
1016
+ style: l,
1016
1017
  "data-size": r,
1017
1018
  "data-leading": s,
1018
- "data-weight": m,
1019
- "data-color": c,
1020
- "data-variant": r === "xxs" && "default" || d,
1021
- "data-max-rows": l,
1022
- children: /* @__PURE__ */ a(ue, { loading: o, children: x })
1019
+ "data-weight": u,
1020
+ "data-color": f,
1021
+ "data-variant": r === "xxs" && "default" || i,
1022
+ "data-max-rows": c,
1023
+ children: /* @__PURE__ */ a(ue, { loading: o, children: w })
1023
1024
  }
1024
1025
  );
1025
1026
  }, fn = "_label_e5q28_3", pn = {
@@ -1031,10 +1032,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1031
1032
  description: t,
1032
1033
  descriptionProps: r = {},
1033
1034
  highlightWords: s,
1034
- loading: m,
1035
- children: c
1036
- }) => /* @__PURE__ */ a("span", { className: K(pn.label, e), children: c || /* @__PURE__ */ O(xe, { children: [
1037
- o && /* @__PURE__ */ a(me, { ...n, as: "span", loading: m, highlightWords: s, maxRows: 2, children: o }),
1035
+ loading: u,
1036
+ children: f
1037
+ }) => /* @__PURE__ */ a("span", { className: V(pn.label, e), children: f || /* @__PURE__ */ I(xe, { children: [
1038
+ o && /* @__PURE__ */ a(me, { ...n, as: "span", loading: u, highlightWords: s, maxRows: 2, children: o }),
1038
1039
  t && /* @__PURE__ */ a(
1039
1040
  me,
1040
1041
  {
@@ -1042,20 +1043,20 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1042
1043
  as: "span",
1043
1044
  weight: "normal",
1044
1045
  leading: "inherit",
1045
- loading: m,
1046
+ loading: u,
1046
1047
  highlightWords: s,
1047
1048
  maxRows: 2,
1048
1049
  children: t
1049
1050
  }
1050
1051
  )
1051
- ] }) }), hn = "_item_h7sxa_3", vn = "_media_h7sxa_136", bn = "_label_h7sxa_157", gn = "_title_h7sxa_172", yn = "_description_h7sxa_176", wn = "_count_h7sxa_188", _n = "_linkIcon_h7sxa_196", q = {
1052
+ ] }) }), hn = "_item_h7sxa_3", vn = "_media_h7sxa_136", bn = "_label_h7sxa_157", gn = "_title_h7sxa_172", yn = "_description_h7sxa_176", _n = "_count_h7sxa_188", wn = "_linkIcon_h7sxa_196", K = {
1052
1053
  item: hn,
1053
1054
  media: vn,
1054
1055
  label: bn,
1055
1056
  title: gn,
1056
1057
  description: yn,
1057
- count: wn,
1058
- linkIcon: _n
1058
+ count: _n,
1059
+ linkIcon: wn
1059
1060
  }, tt = ({
1060
1061
  id: e,
1061
1062
  groupId: o,
@@ -1063,174 +1064,175 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1063
1064
  as: t,
1064
1065
  href: r,
1065
1066
  onClick: s,
1066
- onChange: m,
1067
- onKeyPress: c,
1068
- onMouseEnter: d,
1069
- size: l = "sm",
1070
- variant: p,
1071
- color: i,
1072
- name: w,
1073
- value: v,
1074
- checked: x,
1075
- icon: E,
1076
- label: g,
1077
- badge: S,
1078
- controls: j,
1079
- title: k,
1080
- description: _,
1081
- highlightWords: f,
1082
- count: D,
1083
- linkIcon: R = !1,
1084
- disabled: A,
1085
- selected: P,
1086
- active: M,
1087
- tabIndex: $ = 0,
1088
- className: N,
1089
- "data-testid": h,
1090
- ...y
1067
+ onChange: u,
1068
+ onKeyPress: f,
1069
+ onMouseEnter: i,
1070
+ size: c = "sm",
1071
+ variant: _,
1072
+ color: l,
1073
+ name: b,
1074
+ value: p,
1075
+ checked: w,
1076
+ icon: z,
1077
+ label: h,
1078
+ badge: N,
1079
+ controls: A,
1080
+ title: R,
1081
+ description: y,
1082
+ highlightWords: v,
1083
+ count: k,
1084
+ linkIcon: P = !1,
1085
+ disabled: D,
1086
+ selected: M,
1087
+ active: $,
1088
+ tabIndex: j = 0,
1089
+ className: S,
1090
+ "data-testid": O,
1091
+ ...m
1091
1092
  }) => {
1092
- const u = typeof g == "function" ? g() : g, z = ht(y);
1093
+ const d = typeof h == "function" ? h() : h, C = ht(m);
1093
1094
  if (n === "checkbox" || n === "radio") {
1094
- const H = E || (x ? Qe : Lt);
1095
- return /* @__PURE__ */ O(
1095
+ const L = z || (w ? Qe : Lt);
1096
+ return /* @__PURE__ */ I(
1096
1097
  "label",
1097
1098
  {
1098
- ...z,
1099
- className: K(q.item, N),
1099
+ ...C,
1100
+ className: V(K.item, S),
1100
1101
  id: e,
1101
1102
  "data-id": e,
1102
1103
  "data-group-id": o,
1103
- "data-size": l,
1104
- "data-variant": p,
1105
- "data-color": i,
1106
- "data-active": M,
1104
+ "data-size": c,
1105
+ "data-variant": _,
1106
+ "data-color": l,
1107
+ "data-active": $,
1107
1108
  role: n,
1108
- "aria-disabled": A,
1109
- "aria-checked": x,
1110
- "aria-selected": x,
1111
- "data-selected": x,
1112
- "aria-label": k,
1113
- "data-testid": h,
1114
- onKeyUp: (V) => {
1115
- A || (V.key === "Enter" && s?.(), c?.(V));
1109
+ "aria-disabled": D,
1110
+ "aria-checked": w,
1111
+ "aria-selected": w,
1112
+ "data-selected": w,
1113
+ "aria-label": R,
1114
+ "data-testid": O,
1115
+ onKeyUp: (q) => {
1116
+ D || (q.target === q.currentTarget && q.key === "Enter" && s?.(), f?.(q));
1116
1117
  },
1117
1118
  onClick: s,
1118
- onMouseEnter: d,
1119
- tabIndex: $,
1119
+ onMouseEnter: i,
1120
+ tabIndex: j,
1120
1121
  children: [
1121
1122
  /* @__PURE__ */ a(
1122
1123
  "input",
1123
1124
  {
1124
- name: w,
1125
- value: v,
1125
+ name: b,
1126
+ value: p,
1126
1127
  type: n,
1127
- checked: !!x,
1128
- onChange: m,
1129
- readOnly: !m,
1128
+ checked: !!w,
1129
+ onChange: u,
1130
+ readOnly: !u,
1130
1131
  style: { opacity: 0, position: "absolute" },
1131
1132
  tabIndex: -1
1132
1133
  }
1133
1134
  ),
1134
- /* @__PURE__ */ a(Te, { icon: H, className: q.media }),
1135
+ /* @__PURE__ */ a(Te, { icon: L, className: K.media }),
1135
1136
  /* @__PURE__ */ a(
1136
1137
  Le,
1137
1138
  {
1138
- className: q.label,
1139
- highlightWords: f,
1140
- title: /* @__PURE__ */ O(xe, { children: [
1141
- k,
1139
+ className: K.label,
1140
+ highlightWords: v,
1141
+ title: /* @__PURE__ */ I(xe, { children: [
1142
+ R,
1142
1143
  " ",
1143
- D && /* @__PURE__ */ a("i", { className: q.count, children: D })
1144
+ k && /* @__PURE__ */ a("i", { className: K.count, children: k })
1144
1145
  ] }),
1145
1146
  titleProps: {
1146
1147
  weight: "medium",
1147
- className: q.title
1148
+ className: K.title
1148
1149
  },
1149
- description: _,
1150
+ description: y,
1150
1151
  descriptionProps: {
1151
1152
  weight: "normal",
1152
1153
  variant: "subtle",
1153
- className: q.description
1154
+ className: K.description
1154
1155
  },
1155
- children: u
1156
+ children: d
1156
1157
  }
1157
1158
  ),
1158
- /* @__PURE__ */ O(ke, { children: [
1159
- S && /* @__PURE__ */ a(te, { ...S }),
1160
- !A && j
1159
+ /* @__PURE__ */ I(Re, { children: [
1160
+ N && /* @__PURE__ */ a(te, { ...N }),
1161
+ !D && A
1161
1162
  ] })
1162
1163
  ]
1163
1164
  }
1164
1165
  );
1165
1166
  }
1166
- const L = t || (r ? "a" : "button"), F = R && Rt;
1167
- return /* @__PURE__ */ O(
1168
- L,
1167
+ const F = t || (r ? "a" : "button"), H = P && zt;
1168
+ return /* @__PURE__ */ I(
1169
+ F,
1169
1170
  {
1170
1171
  href: r,
1171
- className: K(q.item, N),
1172
+ className: V(K.item, S),
1172
1173
  id: e,
1173
1174
  "data-id": e,
1174
1175
  "data-group-id": o,
1175
- "data-size": l,
1176
- "data-variant": p,
1177
- "data-color": i,
1178
- "data-active": M,
1179
- "aria-disabled": A,
1180
- ...A ? { disabled: A } : {},
1181
- "aria-selected": P,
1182
- "data-selected": P,
1183
- "aria-label": k,
1184
- "data-testid": h,
1185
- onKeyUp: (H) => {
1186
- A || (H.key === "Enter" && s?.(), c?.(H));
1176
+ "data-size": c,
1177
+ "data-variant": _,
1178
+ "data-color": l,
1179
+ "data-active": $,
1180
+ "aria-disabled": D,
1181
+ ...D ? { disabled: D } : {},
1182
+ "aria-current": r && M ? "page" : void 0,
1183
+ "aria-selected": r ? void 0 : M,
1184
+ "data-selected": M,
1185
+ "aria-label": R,
1186
+ "data-testid": O,
1187
+ onKeyUp: (L) => {
1188
+ D || (L.target === L.currentTarget && L.key === "Enter" && s?.(), f?.(L));
1187
1189
  },
1188
1190
  onClick: s,
1189
- onMouseEnter: d,
1190
- tabIndex: A ? -1 : $ ?? 0,
1191
+ onMouseEnter: i,
1192
+ tabIndex: D ? -1 : j ?? 0,
1191
1193
  role: n === "menuItem" ? "menuitem" : n,
1192
- ...z,
1194
+ ...C,
1193
1195
  children: [
1194
- E && /* @__PURE__ */ a(Te, { icon: E, className: q.media }),
1196
+ z && /* @__PURE__ */ a(Te, { icon: z, className: K.media }),
1195
1197
  /* @__PURE__ */ a(
1196
1198
  Le,
1197
1199
  {
1198
- className: q.label,
1199
- highlightWords: f,
1200
- title: /* @__PURE__ */ O(xe, { children: [
1201
- k,
1200
+ className: K.label,
1201
+ highlightWords: v,
1202
+ title: /* @__PURE__ */ I(xe, { children: [
1203
+ R,
1202
1204
  " ",
1203
- D && /* @__PURE__ */ a("i", { className: q.count, children: D })
1205
+ k && /* @__PURE__ */ a("i", { className: K.count, children: k })
1204
1206
  ] }),
1205
1207
  titleProps: {
1206
1208
  weight: "medium",
1207
- className: q.title
1209
+ className: K.title
1208
1210
  },
1209
- description: _,
1211
+ description: y,
1210
1212
  descriptionProps: {
1211
1213
  variant: "subtle",
1212
- className: q.description
1214
+ className: K.description
1213
1215
  },
1214
- children: u
1216
+ children: d
1215
1217
  }
1216
1218
  ),
1217
- /* @__PURE__ */ O(ke, { children: [
1218
- S && /* @__PURE__ */ a(te, { ...S }),
1219
- !A && j,
1220
- R && /* @__PURE__ */ a(se, { svgElement: F, className: q.linkIcon })
1219
+ /* @__PURE__ */ I(Re, { children: [
1220
+ N && /* @__PURE__ */ a(te, { ...N }),
1221
+ !D && A,
1222
+ P && /* @__PURE__ */ a(se, { svgElement: H, className: K.linkIcon })
1221
1223
  ] })
1222
1224
  ]
1223
1225
  }
1224
1226
  );
1225
- }, xn = "_fieldContainer_zxswz_1", In = "_field_zxswz_1", On = "_input_zxswz_16", Nn = "_hiddenInput_zxswz_17", zn = "_icon_zxswz_50", Cn = "_clear_zxswz_68", En = "_clearButton_zxswz_81", Sn = "_autocomplete_zxswz_108", Z = {
1227
+ }, xn = "_fieldContainer_1g9fo_13", In = "_field_1g9fo_13", On = "_input_1g9fo_28", Nn = "_hiddenInput_1g9fo_29", Cn = "_icon_1g9fo_62", En = "_clear_1g9fo_80", Sn = "_clearButton_1g9fo_93", kn = "_autocomplete_1g9fo_120", Z = {
1226
1228
  fieldContainer: xn,
1227
1229
  field: In,
1228
1230
  input: On,
1229
1231
  hiddenInput: Nn,
1230
- icon: zn,
1231
- clear: Cn,
1232
- clearButton: En,
1233
- autocomplete: Sn
1232
+ icon: Cn,
1233
+ clear: En,
1234
+ clearButton: Sn,
1235
+ autocomplete: kn
1234
1236
  }, Pe = ({
1235
1237
  className: e,
1236
1238
  collapsible: o,
@@ -1238,81 +1240,84 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1238
1240
  loadingLabel: t = "Loading ...",
1239
1241
  size: r,
1240
1242
  color: s = "neutral",
1241
- label: m,
1242
- value: c,
1243
- onClear: d,
1244
- clearButtonAltText: l = "Clear search",
1245
- menu: p,
1246
- minLength: i,
1247
- ...w
1243
+ label: u,
1244
+ hideLabel: f,
1245
+ value: i,
1246
+ onClear: c,
1247
+ clearButtonAltText: _ = "Clear search",
1248
+ menu: l,
1249
+ minLength: b,
1250
+ ...p
1248
1251
  }) => {
1249
- const v = De(), [x, E] = oe(!1), g = w.id || `search-field-${v}`, S = `${g}-listbox`, [j, k] = oe(void 0), _ = "searchfield-clear-button-" + De(), f = le(() => !p || !c || typeof i == "number" && typeof c == "string" && c.length < i ? !1 : x, [p, x, i, c]), D = le(() => (p?.items ?? []).map((h) => ({
1250
- ...h,
1252
+ const w = De(), [z, h] = oe(!1), N = p.id || `search-field-${w}`, A = `${N}-listbox`, [R, y] = oe(void 0), v = "searchfield-clear-button-" + De(), k = le(() => !l || !i || typeof b == "number" && typeof i == "string" && i.length < b ? !1 : z, [l, z, b, i]), P = le(() => (l?.items ?? []).map((m) => ({
1253
+ ...m,
1251
1254
  onClick: () => {
1252
- h.onClick?.(), E(!1);
1255
+ m.onClick?.(), h(!1);
1253
1256
  }
1254
- })), [p]), R = (h) => {
1255
- if (h.key === "Enter" && f) {
1256
- p?.items?.[0]?.onClick?.(), E(!1);
1257
+ })), [l]), D = (m) => {
1258
+ if (m.key === "Enter" && k) {
1259
+ l?.items?.[0]?.onClick?.(), h(!1);
1257
1260
  return;
1258
1261
  }
1259
- if (h.key === "Escape" && f) {
1260
- h.preventDefault(), h.stopPropagation(), E(!1), p?.onClose(), document.getElementById(g)?.focus();
1262
+ if (m.key === "Escape" && k) {
1263
+ m.preventDefault(), m.stopPropagation(), h(!1), l?.onClose(), document.getElementById(N)?.focus();
1261
1264
  return;
1262
1265
  }
1263
- w.onKeyDown?.(h), E(!0);
1264
- }, A = () => {
1265
- E(!0);
1266
- }, P = (h) => {
1267
- if (!x) return;
1268
- const y = h.relatedTarget;
1269
- y && h.currentTarget.contains(y) || E(!1);
1270
- }, M = (h) => {
1271
- h.preventDefault();
1272
- }, $ = (h) => {
1273
- h.relatedTarget?.id === _ && k(void 0), w.onBlur?.(h);
1274
- }, N = /* @__PURE__ */ O(
1266
+ p.onKeyDown?.(m), h(!0);
1267
+ }, M = () => {
1268
+ h(!0);
1269
+ }, $ = (m) => {
1270
+ if (!z) return;
1271
+ const d = m.relatedTarget;
1272
+ d && m.currentTarget.contains(d) || h(!1);
1273
+ }, j = (m) => {
1274
+ m.preventDefault();
1275
+ }, S = (m) => {
1276
+ m.relatedTarget?.id === v && y(void 0), p.onBlur?.(m);
1277
+ }, O = /* @__PURE__ */ I(
1275
1278
  Qt,
1276
1279
  {
1277
1280
  size: r,
1278
1281
  color: s,
1279
- label: m,
1280
- className: K(Z.field, e),
1282
+ label: f ? void 0 : u,
1283
+ htmlFor: N,
1284
+ className: V(Z.field, e),
1281
1285
  "data-collapsible": o,
1282
- onBlurCapture: P,
1286
+ onBlurCapture: $,
1283
1287
  children: [
1284
- /* @__PURE__ */ a("span", { className: Z.hiddenInput, "aria-hidden": "true", children: c + " " }),
1288
+ /* @__PURE__ */ a("span", { className: Z.hiddenInput, "aria-hidden": "true", children: i + " " }),
1285
1289
  /* @__PURE__ */ a(
1286
1290
  ut,
1287
1291
  {
1288
- ...w,
1289
- id: g,
1292
+ ...p,
1293
+ id: N,
1294
+ "aria-label": f && typeof u == "string" ? u : void 0,
1290
1295
  inputSize: 5,
1291
1296
  type: "search",
1292
- value: c,
1297
+ value: i,
1293
1298
  className: Z.input,
1294
1299
  "data-collapsible": o,
1295
1300
  autoCapitalize: "off",
1296
1301
  autoComplete: "off",
1297
- minLength: i,
1298
- onKeyDown: R,
1299
- onBlur: $,
1300
- ...p && {
1302
+ minLength: b,
1303
+ onKeyDown: D,
1304
+ onBlur: S,
1305
+ ...l && {
1301
1306
  role: "combobox",
1302
1307
  "aria-autocomplete": "list",
1303
- "aria-expanded": !!f,
1308
+ "aria-expanded": !!k,
1304
1309
  "aria-haspopup": "listbox",
1305
- "aria-controls": S,
1306
- "aria-activedescendant": f ? j : void 0,
1307
- onFocus: A
1310
+ "aria-controls": A,
1311
+ "aria-activedescendant": k ? R : void 0,
1312
+ onFocus: M
1308
1313
  }
1309
1314
  }
1310
1315
  ),
1311
1316
  n ? /* @__PURE__ */ a(pt, { "aria-hidden": !0, className: Z.icon }) : /* @__PURE__ */ a(Bt, { "aria-hidden": !0, className: Z.icon }),
1312
- d && !!c && /* @__PURE__ */ a("span", { className: Z.clear, children: /* @__PURE__ */ a(
1317
+ c && !!i && /* @__PURE__ */ a("span", { className: Z.clear, children: /* @__PURE__ */ a(
1313
1318
  ve,
1314
1319
  {
1315
- id: _,
1320
+ id: v,
1316
1321
  "data-testid": "clear-button",
1317
1322
  size: "xs",
1318
1323
  rounded: !0,
@@ -1320,9 +1325,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1320
1325
  variant: "tinted",
1321
1326
  className: Z.clearButton,
1322
1327
  onClick: () => {
1323
- d?.(), document.getElementById(g)?.focus();
1328
+ c?.(), document.getElementById(N)?.focus();
1324
1329
  },
1325
- "aria-label": l,
1330
+ "aria-label": _,
1326
1331
  "data-action": "clear-input",
1327
1332
  children: /* @__PURE__ */ a(Ae, {})
1328
1333
  }
@@ -1330,26 +1335,26 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1330
1335
  ]
1331
1336
  }
1332
1337
  );
1333
- return p ? /* @__PURE__ */ O("div", { className: Z.fieldContainer, children: [
1334
- N,
1335
- f && /* @__PURE__ */ a("div", { className: Z.autocomplete, "aria-hidden": !f, onMouseDown: M, children: /* @__PURE__ */ a(
1338
+ return l ? /* @__PURE__ */ I("div", { className: Z.fieldContainer, children: [
1339
+ O,
1340
+ k && /* @__PURE__ */ a("div", { className: Z.autocomplete, "aria-hidden": !k, onMouseDown: j, children: /* @__PURE__ */ a(
1336
1341
  et,
1337
1342
  {
1338
- ...p,
1339
- id: S,
1340
- items: D,
1341
- groups: p?.groups,
1343
+ ...l,
1344
+ id: A,
1345
+ items: P,
1346
+ groups: l?.groups,
1342
1347
  keyboardEvents: !0,
1343
1348
  a11yMode: "combobox",
1344
- open: f,
1349
+ open: k,
1345
1350
  autoFocusList: !1,
1346
- onActiveItemIdChange: k
1351
+ onActiveItemIdChange: y
1347
1352
  }
1348
1353
  ) })
1349
- ] }) : N;
1350
- }, kn = "_byline_fzp7k_1", Rn = "_avatar_fzp7k_7", Pn = "_avatarGroup_fzp7k_12", Mn = "_label_fzp7k_26", pe = {
1351
- byline: kn,
1352
- avatar: Rn,
1354
+ ] }) : O;
1355
+ }, Rn = "_byline_fzp7k_1", zn = "_avatar_fzp7k_7", Pn = "_avatarGroup_fzp7k_12", Mn = "_label_fzp7k_26", pe = {
1356
+ byline: Rn,
1357
+ avatar: zn,
1353
1358
  avatarGroup: Pn,
1354
1359
  label: Mn
1355
1360
  }, $n = ({
@@ -1359,16 +1364,16 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1359
1364
  avatar: t,
1360
1365
  avatarGroup: r,
1361
1366
  datetime: s,
1362
- children: m,
1363
- as: c,
1364
- ...d
1367
+ children: u,
1368
+ as: f,
1369
+ ...i
1365
1370
  }) => {
1366
- const l = c || "div", p = s ? "time" : "span";
1367
- return /* @__PURE__ */ O(l, { ...d, className: pe.byline, "data-color": o, "data-size": n, children: [
1371
+ const c = f || "div", _ = s ? "time" : "span";
1372
+ return /* @__PURE__ */ I(c, { ...i, className: pe.byline, "data-color": o, "data-size": n, children: [
1368
1373
  (r || t) && /* @__PURE__ */ a(ue, { variant: "circle", className: pe.avatar, loading: e, children: r ? /* @__PURE__ */ a(be, { ...r, size: n, className: pe.avatarGroup }) : t && /* @__PURE__ */ a(je, { ...t, size: n, className: pe.avatar }) }),
1369
- /* @__PURE__ */ a(p, { "data-size": n, dateTime: s, className: pe.label, children: /* @__PURE__ */ a(ue, { loading: e, children: m }) })
1374
+ /* @__PURE__ */ a(_, { "data-size": n, dateTime: s, className: pe.label, children: /* @__PURE__ */ a(ue, { loading: e, children: u }) })
1370
1375
  ] });
1371
- }, jn = "_dropdown_1mtdm_1", An = "_content_1mtdm_17", Dn = "_backdrop_1mtdm_47", Bn = "_header_1mtdm_76", Tn = "_footer_1mtdm_77", Ln = "_title_1mtdm_148", ce = {
1376
+ }, jn = "_dropdown_11cza_1", An = "_content_11cza_17", Dn = "_backdrop_11cza_47", Bn = "_header_11cza_76", Tn = "_footer_11cza_77", Ln = "_title_11cza_156", ce = {
1372
1377
  dropdown: jn,
1373
1378
  content: An,
1374
1379
  backdrop: Dn,
@@ -1398,169 +1403,169 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1398
1403
  backdrop: t = !0,
1399
1404
  placement: r = "bottom-left",
1400
1405
  variant: s = "dropdown",
1401
- title: m = "Title",
1402
- closeLabel: c = "Close",
1403
- submitLabel: d,
1404
- trigger: l,
1405
- children: p,
1406
- open: i,
1407
- onClose: w,
1408
- color: v,
1409
- onSubmit: x,
1410
- activeDescendantId: E,
1411
- useFixedPosition: g = !1,
1412
- expanded: S = !1
1406
+ title: u = "Title",
1407
+ closeLabel: f = "Close",
1408
+ submitLabel: i,
1409
+ trigger: c,
1410
+ children: _,
1411
+ open: l,
1412
+ onClose: b,
1413
+ color: p,
1414
+ onSubmit: w,
1415
+ activeDescendantId: z,
1416
+ useFixedPosition: h = !1,
1417
+ expanded: N = !1
1413
1418
  }) => {
1414
- const j = J(null), k = J(null), _ = J(i);
1419
+ const A = J(null), R = J(null), y = J(l);
1415
1420
  W(() => {
1416
- _.current = i;
1417
- }, [i]);
1418
- const [f, D] = oe({
1421
+ y.current = l;
1422
+ }, [l]);
1423
+ const [v, k] = oe({
1419
1424
  yDir: r.includes("top") ? "top" : "bottom",
1420
1425
  xDir: r.includes("right") ? "right" : "left",
1421
1426
  maxHeight: 300
1422
- }), R = qe(() => {
1423
- if (i && j.current && k.current) {
1424
- const M = j.current.getBoundingClientRect(), $ = k.current.getBoundingClientRect(), N = window.innerHeight, h = window.innerWidth, y = 16, u = N - M.bottom, z = M.top, L = h - M.right - $.width, F = u < 250 && z > u, H = F ? "top" : "bottom", V = (F ? z : u) - y, b = L < y ? "right" : "left";
1425
- D((I) => ({
1426
- ...I,
1427
- yDir: H,
1428
- maxHeight: V,
1429
- xDir: b,
1430
- triggerRect: g ? M : void 0
1427
+ }), P = qe(() => {
1428
+ if (l && A.current && R.current) {
1429
+ const $ = A.current.getBoundingClientRect(), j = R.current.getBoundingClientRect(), S = window.innerHeight, O = window.innerWidth, m = 16, d = S - $.bottom, C = $.top, F = O - $.right - j.width, H = d < 250 && C > d, L = H ? "top" : "bottom", q = (H ? C : d) - m, g = F < m ? "right" : "left";
1430
+ k((x) => ({
1431
+ ...x,
1432
+ yDir: L,
1433
+ maxHeight: q,
1434
+ xDir: g,
1435
+ triggerRect: h ? $ : void 0
1431
1436
  }));
1432
1437
  }
1433
- }, [i, g]);
1434
- Ce(() => (R(), window.addEventListener("resize", R), g && window.addEventListener("scroll", R, !0), () => {
1435
- window.removeEventListener("resize", R), g && window.removeEventListener("scroll", R, !0);
1436
- }), [R, g]), W(() => {
1437
- if (!i) return;
1438
- const M = requestAnimationFrame(() => {
1439
- const $ = k.current;
1440
- if (!$) return;
1441
- const N = $.querySelector(
1438
+ }, [l, h]);
1439
+ Ee(() => (P(), window.addEventListener("resize", P), h && window.addEventListener("scroll", P, !0), () => {
1440
+ window.removeEventListener("resize", P), h && window.removeEventListener("scroll", P, !0);
1441
+ }), [P, h]), W(() => {
1442
+ if (!l) return;
1443
+ const $ = requestAnimationFrame(() => {
1444
+ const j = R.current;
1445
+ if (!j) return;
1446
+ const S = j.querySelector(
1442
1447
  'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
1443
1448
  );
1444
- if (N) {
1445
- const h = N.value.length;
1446
- N.focus({ preventScroll: !0 });
1449
+ if (S) {
1450
+ const O = S.value.length;
1451
+ S.focus({ preventScroll: !0 });
1447
1452
  try {
1448
- N.setSelectionRange(h, h);
1453
+ S.setSelectionRange(O, O);
1449
1454
  } catch {
1450
1455
  }
1451
1456
  return;
1452
1457
  }
1453
- $.focus?.({ preventScroll: !0 });
1458
+ j.focus?.({ preventScroll: !0 });
1454
1459
  });
1455
- return () => cancelAnimationFrame(M);
1456
- }, [i]), W(() => {
1457
- const M = (N) => {
1458
- N.key === "Escape" && (N.preventDefault(), w());
1459
- }, $ = (N) => {
1460
- const h = N.target, y = j.current?.contains(h), u = k.current?.contains(h);
1461
- !y && !u && w();
1460
+ return () => cancelAnimationFrame($);
1461
+ }, [l]), W(() => {
1462
+ const $ = (S) => {
1463
+ S.key === "Escape" && (S.preventDefault(), b());
1464
+ }, j = (S) => {
1465
+ const O = S.target, m = A.current?.contains(O), d = R.current?.contains(O);
1466
+ !m && !d && b();
1462
1467
  };
1463
- return i && (document.addEventListener("mousedown", $), document.addEventListener("keydown", M)), () => {
1464
- document.removeEventListener("mousedown", $), document.removeEventListener("keydown", M);
1468
+ return l && (document.addEventListener("mousedown", j), document.addEventListener("keydown", $)), () => {
1469
+ document.removeEventListener("mousedown", j), document.removeEventListener("keydown", $);
1465
1470
  };
1466
- }, [i, w]), W(() => {
1467
- if (!i) return;
1468
- const M = k.current;
1469
- if (!M) return;
1470
- const $ = (h) => {
1471
- if (!_.current)
1471
+ }, [l, b]), W(() => {
1472
+ if (!l) return;
1473
+ const $ = R.current;
1474
+ if (!$) return;
1475
+ const j = (O) => {
1476
+ if (!y.current)
1472
1477
  return;
1473
- const y = h.target;
1474
- y && !M.contains(y) && Hn(M);
1475
- }, N = (h) => {
1476
- if (h.key !== "Tab") return;
1477
- const y = nt(M);
1478
- if (y.length === 0) {
1479
- h.preventDefault(), M.focus?.({ preventScroll: !0 });
1478
+ const m = O.target;
1479
+ m && !$.contains(m) && Hn($);
1480
+ }, S = (O) => {
1481
+ if (O.key !== "Tab") return;
1482
+ const m = nt($);
1483
+ if (m.length === 0) {
1484
+ O.preventDefault(), $.focus?.({ preventScroll: !0 });
1480
1485
  return;
1481
1486
  }
1482
- const u = y[0], z = y[y.length - 1], L = document.activeElement;
1483
- h.shiftKey ? L === u && (h.preventDefault(), z.focus({ preventScroll: !0 })) : L === z && (h.preventDefault(), u.focus({ preventScroll: !0 }));
1487
+ const d = m[0], C = m[m.length - 1], F = document.activeElement;
1488
+ O.shiftKey ? F === d && (O.preventDefault(), C.focus({ preventScroll: !0 })) : F === C && (O.preventDefault(), d.focus({ preventScroll: !0 }));
1484
1489
  };
1485
- return document.addEventListener("focusin", $), document.addEventListener("keydown", N), () => {
1486
- document.removeEventListener("focusin", $), document.removeEventListener("keydown", N);
1490
+ return document.addEventListener("focusin", j), document.addEventListener("keydown", S), () => {
1491
+ document.removeEventListener("focusin", j), document.removeEventListener("keydown", S);
1487
1492
  };
1488
- }, [i]);
1489
- const A = g && f.triggerRect ? {
1493
+ }, [l]);
1494
+ const D = h && v.triggerRect ? {
1490
1495
  position: "fixed",
1491
1496
  zIndex: 1e3,
1492
1497
  width: "max-content",
1493
- maxHeight: `${f.maxHeight}px`,
1498
+ maxHeight: `${v.maxHeight}px`,
1494
1499
  overflowY: "auto",
1495
- [f.xDir === "left" ? "left" : "right"]: f.xDir === "left" ? f.triggerRect.left : window.innerWidth - f.triggerRect.right,
1496
- [f.yDir === "bottom" ? "top" : "bottom"]: f.yDir === "bottom" ? f.triggerRect.bottom + 8 : window.innerHeight - f.triggerRect.top + 8
1500
+ [v.xDir === "left" ? "left" : "right"]: v.xDir === "left" ? v.triggerRect.left : window.innerWidth - v.triggerRect.right,
1501
+ [v.yDir === "bottom" ? "top" : "bottom"]: v.yDir === "bottom" ? v.triggerRect.bottom + 8 : window.innerHeight - v.triggerRect.top + 8
1497
1502
  } : {
1498
1503
  position: "absolute",
1499
1504
  zIndex: 50,
1500
1505
  width: "max-content",
1501
- maxHeight: `${f.maxHeight}px`,
1506
+ maxHeight: `${v.maxHeight}px`,
1502
1507
  overflowY: "auto",
1503
- [f.xDir]: 0,
1504
- [f.yDir === "bottom" ? "top" : "bottom"]: "100%"
1505
- }, P = /* @__PURE__ */ O(
1508
+ [v.xDir]: 0,
1509
+ [v.yDir === "bottom" ? "top" : "bottom"]: "100%"
1510
+ }, M = /* @__PURE__ */ I(
1506
1511
  "div",
1507
1512
  {
1508
- ref: k,
1509
- className: K(ce.dropdown, n),
1510
- style: A,
1511
- "aria-hidden": !i,
1513
+ ref: R,
1514
+ className: V(ce.dropdown, n),
1515
+ style: D,
1516
+ "aria-hidden": !l,
1512
1517
  "data-variant": s,
1513
- "data-color": v,
1514
- "data-expanded": S,
1518
+ "data-color": p,
1519
+ "data-expanded": N,
1515
1520
  "data-size": o,
1516
1521
  tabIndex: -1,
1517
1522
  role: "menu",
1518
1523
  "aria-modal": s === "drawer-dropdown" ? !0 : void 0,
1519
- "aria-activedescendant": E,
1524
+ "aria-activedescendant": z,
1520
1525
  children: [
1521
- /* @__PURE__ */ O("header", { className: ce.header, children: [
1522
- /* @__PURE__ */ a("h2", { className: ce.title, children: m }),
1523
- /* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: w, "aria-label": c, children: /* @__PURE__ */ a(Ae, {}) })
1526
+ /* @__PURE__ */ I("header", { className: ce.header, children: [
1527
+ /* @__PURE__ */ a("h2", { className: ce.title, children: u }),
1528
+ /* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: b, "aria-label": f, children: /* @__PURE__ */ a(Ae, {}) })
1524
1529
  ] }),
1525
- /* @__PURE__ */ a("div", { className: ce.content, children: p }),
1526
- d && /* @__PURE__ */ a("footer", { className: ce.footer, children: /* @__PURE__ */ a(ve, { size: "lg", variant: "solid", onClick: x || w, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: d }) }) })
1530
+ /* @__PURE__ */ a("div", { className: ce.content, children: _ }),
1531
+ i && /* @__PURE__ */ a("footer", { className: ce.footer, children: /* @__PURE__ */ a(ve, { size: "lg", variant: "solid", onClick: w || b, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: i }) }) })
1527
1532
  ]
1528
1533
  }
1529
1534
  );
1530
- return /* @__PURE__ */ O(xe, { children: [
1531
- t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !i }),
1532
- /* @__PURE__ */ O("div", { id: e + "-root", ref: j, style: { position: "relative", display: "inline-block" }, children: [
1533
- l,
1534
- g ? it(P, document.body) : P
1535
+ return /* @__PURE__ */ I(xe, { children: [
1536
+ t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !l }),
1537
+ /* @__PURE__ */ I("div", { id: e + "-root", ref: A, style: { position: "relative", display: "inline-block" }, children: [
1538
+ c,
1539
+ h ? it(M, document.body) : M
1535
1540
  ] })
1536
1541
  ] });
1537
- }, qn = "_section_1v20z_1", Kn = "_header_1v20z_7", Vn = "_list_1v20z_13", we = {
1542
+ }, qn = "_section_1v20z_1", Kn = "_header_1v20z_7", Vn = "_list_1v20z_13", _e = {
1538
1543
  section: qn,
1539
1544
  header: Kn,
1540
1545
  list: Vn
1541
1546
  }, Un = Oe(
1542
- ({ title: e, description: o, items: n, groups: t = {}, sortGroupBy: r, highlightWords: s, isLoading: m }) => {
1543
- const { menu: c } = Me({
1547
+ ({ title: e, description: o, items: n, groups: t = {}, sortGroupBy: r, highlightWords: s, isLoading: u }) => {
1548
+ const { menu: f } = Me({
1544
1549
  items: n,
1545
1550
  groups: t,
1546
1551
  groupByKey: "groupId",
1547
1552
  keyboardEvents: !1,
1548
1553
  sortGroupBy: r
1549
1554
  });
1550
- return /* @__PURE__ */ O("section", { className: we.section, "aria-busy": m, children: [
1551
- e || o ? /* @__PURE__ */ O("header", { className: we.header, children: [
1555
+ return /* @__PURE__ */ I("section", { className: _e.section, "aria-busy": u, children: [
1556
+ e || o ? /* @__PURE__ */ I("header", { className: _e.header, children: [
1552
1557
  e && /* @__PURE__ */ a(me, { as: "h1", size: "lg", children: e }),
1553
- o && /* @__PURE__ */ a(Ke, { as: "p", size: "sm", variant: "subtle", className: we.description, children: o })
1558
+ o && /* @__PURE__ */ a(Ke, { as: "p", size: "sm", variant: "subtle", className: _e.description, children: o })
1554
1559
  ] }) : null,
1555
- c?.map((d, l) => {
1556
- const p = d.props || {};
1557
- return /* @__PURE__ */ O(He, { children: [
1558
- p?.title && /* @__PURE__ */ a(me, { as: "h2", size: "lg", children: p.title }),
1559
- /* @__PURE__ */ a("ul", { className: we.list, children: d?.items.map((i, w) => {
1560
- const v = i.props || {};
1561
- return /* @__PURE__ */ st(rt, { ...v, highlightWords: s, key: "dialog-list-item" + w });
1560
+ f?.map((i, c) => {
1561
+ const _ = i.props || {};
1562
+ return /* @__PURE__ */ I(He, { children: [
1563
+ _?.title && /* @__PURE__ */ a(me, { as: "h2", size: "lg", children: _.title }),
1564
+ /* @__PURE__ */ a("ul", { className: _e.list, children: i?.items.map((l, b) => {
1565
+ const p = l.props || {};
1566
+ return /* @__PURE__ */ st(rt, { ...p, highlightWords: s, key: "dialog-list-item" + b });
1562
1567
  }) })
1563
- ] }, "dialog-list-item" + l);
1568
+ ] }, "dialog-list-item" + c);
1564
1569
  })
1565
1570
  ] });
1566
1571
  }
@@ -1584,46 +1589,46 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1584
1589
  color: t,
1585
1590
  loading: r,
1586
1591
  controls: s,
1587
- selectable: m,
1588
- selected: c,
1589
- status: d,
1590
- extendedStatusLabel: l,
1591
- sender: p,
1592
- recipient: i,
1593
- recipientLabel: w = "to",
1594
- grouped: v = !1,
1595
- updatedAt: x,
1596
- updatedAtLabel: E,
1597
- archived: g,
1598
- archivedAt: S,
1599
- archivedAtLabel: j,
1600
- trashed: k,
1601
- trashedAt: _,
1602
- trashedAtLabel: f,
1603
- badge: D,
1604
- dueAt: R,
1605
- dueAtLabel: A,
1606
- unread: P,
1607
- unreadLabel: M = "Ulest",
1608
- unreadItems: $,
1609
- unreadItemsLabel: N = "Ulest innhold",
1610
- seenByLog: h,
1611
- draftsLabel: y,
1612
- sentCount: u,
1613
- receivedCount: z,
1614
- attachmentsCount: L,
1615
- attachmentsLabel: F,
1616
- tooltips: H = {},
1617
- title: V,
1592
+ selectable: u,
1593
+ selected: f,
1594
+ status: i,
1595
+ extendedStatusLabel: c,
1596
+ sender: _,
1597
+ recipient: l,
1598
+ recipientLabel: b = "to",
1599
+ grouped: p = !1,
1600
+ updatedAt: w,
1601
+ updatedAtLabel: z,
1602
+ archived: h,
1603
+ archivedAt: N,
1604
+ archivedAtLabel: A,
1605
+ trashed: R,
1606
+ trashedAt: y,
1607
+ trashedAtLabel: v,
1608
+ badge: k,
1609
+ dueAt: P,
1610
+ dueAtLabel: D,
1611
+ unread: M,
1612
+ unreadLabel: $ = "Ulest",
1613
+ unreadItems: j,
1614
+ unreadItemsLabel: S = "Ulest innhold",
1615
+ seenByLog: O,
1616
+ draftsLabel: m,
1617
+ sentCount: d,
1618
+ receivedCount: C,
1619
+ attachmentsCount: F,
1620
+ attachmentsLabel: H,
1621
+ tooltips: L = {},
1622
+ title: q,
1618
1623
  description: ne,
1619
- summary: b,
1620
- highlightWords: I,
1624
+ summary: g,
1625
+ highlightWords: x,
1621
1626
  id: T,
1622
1627
  ...U
1623
1628
  }) => {
1624
- const B = m ? "select" : n;
1625
- return /* @__PURE__ */ O(
1626
- _t,
1629
+ const B = u ? "select" : n;
1630
+ return /* @__PURE__ */ I(
1631
+ wt,
1627
1632
  {
1628
1633
  as: "li",
1629
1634
  id: T,
@@ -1631,26 +1636,26 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1631
1636
  size: o,
1632
1637
  color: t,
1633
1638
  variant: B,
1634
- "data-unread": P ? "true" : "false",
1635
- "data-selected": c,
1636
- "data-trashed": k,
1637
- "data-archived": g,
1639
+ "data-unread": M ? "true" : "false",
1640
+ "data-selected": f,
1641
+ "data-trashed": R,
1642
+ "data-archived": h,
1638
1643
  "data-loading": r,
1639
1644
  children: [
1640
- /* @__PURE__ */ a(xt, { ...U, className: X.link, as: e, children: /* @__PURE__ */ O("div", { className: X.border, children: [
1641
- /* @__PURE__ */ O("header", { className: X.header, children: [
1642
- /* @__PURE__ */ O(
1645
+ /* @__PURE__ */ a(xt, { ...U, className: X.link, as: e, children: /* @__PURE__ */ I("div", { className: X.border, children: [
1646
+ /* @__PURE__ */ I("header", { className: X.header, children: [
1647
+ /* @__PURE__ */ I(
1643
1648
  me,
1644
1649
  {
1645
1650
  as: "h2",
1646
- highlightWords: I,
1647
- weight: P ? "bold" : "normal",
1651
+ highlightWords: x,
1652
+ weight: M ? "bold" : "normal",
1648
1653
  loading: r,
1649
1654
  maxRows: 2,
1650
1655
  className: X.title,
1651
1656
  children: [
1652
- V,
1653
- P && /* @__PURE__ */ a(te, { label: M, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } }) || $ && /* @__PURE__ */ a(te, { label: N, style: { marginLeft: "0.75em", marginTop: "-2px" } })
1657
+ q,
1658
+ M && /* @__PURE__ */ a(te, { label: $, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } }) || j && /* @__PURE__ */ a(te, { label: S, style: { marginLeft: "0.75em", marginTop: "-2px" } })
1654
1659
  ]
1655
1660
  }
1656
1661
  ),
@@ -1659,22 +1664,22 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1659
1664
  {
1660
1665
  size: "xs",
1661
1666
  loading: r,
1662
- sender: p,
1663
- recipient: i,
1664
- recipientLabel: w,
1665
- grouped: v
1667
+ sender: _,
1668
+ recipient: l,
1669
+ recipientLabel: b,
1670
+ grouped: p
1666
1671
  }
1667
1672
  ),
1668
- b && /* @__PURE__ */ a(
1673
+ g && /* @__PURE__ */ a(
1669
1674
  me,
1670
1675
  {
1671
1676
  as: "h3",
1672
- highlightWords: I,
1677
+ highlightWords: x,
1673
1678
  weight: "normal",
1674
1679
  className: X.summary,
1675
1680
  loading: r,
1676
1681
  maxRows: 2,
1677
- children: b
1682
+ children: g
1678
1683
  }
1679
1684
  )
1680
1685
  ] }),
@@ -1683,28 +1688,28 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1683
1688
  {
1684
1689
  className: X.footer,
1685
1690
  loading: r,
1686
- badge: D,
1687
- status: d,
1688
- extendedStatusLabel: l,
1689
- draftsLabel: y,
1690
- sentCount: u,
1691
- receivedCount: z,
1692
- updatedAt: x,
1693
- updatedAtLabel: E,
1694
- archivedAt: S,
1695
- archivedAtLabel: j,
1696
- trashedAt: _,
1697
- trashedAtLabel: f,
1698
- dueAt: R,
1699
- dueAtLabel: A,
1700
- attachmentsCount: L,
1701
- attachmentsLabel: F,
1702
- tooltips: H
1691
+ badge: k,
1692
+ status: i,
1693
+ extendedStatusLabel: c,
1694
+ draftsLabel: m,
1695
+ sentCount: d,
1696
+ receivedCount: C,
1697
+ updatedAt: w,
1698
+ updatedAtLabel: z,
1699
+ archivedAt: N,
1700
+ archivedAtLabel: A,
1701
+ trashedAt: y,
1702
+ trashedAtLabel: v,
1703
+ dueAt: P,
1704
+ dueAtLabel: D,
1705
+ attachmentsCount: F,
1706
+ attachmentsLabel: H,
1707
+ tooltips: L
1703
1708
  }
1704
1709
  ),
1705
- h && H?.seenBy ? /* @__PURE__ */ a($e, { placement: "bottom", content: H?.seenBy, children: /* @__PURE__ */ a("span", { className: X.seenBy, children: /* @__PURE__ */ a(be, { items: h.items }) }) }) : h && /* @__PURE__ */ a(be, { items: h.items, className: X.seenBy })
1710
+ O && L?.seenBy ? /* @__PURE__ */ a($e, { placement: "bottom", content: L?.seenBy, children: /* @__PURE__ */ a("span", { className: X.seenBy, children: /* @__PURE__ */ a(be, { items: O.items }) }) }) : O && /* @__PURE__ */ a(be, { items: O.items, className: X.seenBy })
1706
1711
  ] }) }),
1707
- /* @__PURE__ */ a(ke, { className: X.controls, children: s })
1712
+ /* @__PURE__ */ a(Re, { className: X.controls, children: s })
1708
1713
  ]
1709
1714
  }
1710
1715
  );
@@ -1718,69 +1723,69 @@ const rr = ({
1718
1723
  sender: t,
1719
1724
  updatedAt: r,
1720
1725
  updatedAtLabel: s,
1721
- dueAt: m,
1722
- dueAtLabel: c,
1723
- archivedAt: d,
1724
- archivedAtLabel: l,
1725
- trashedAt: p,
1726
- trashedAtLabel: i,
1727
- draftsLabel: w,
1728
- sentCount: v = 0,
1729
- receivedCount: x = 0,
1730
- attachmentsCount: E = 0,
1731
- attachmentsLabel: g,
1732
- transmissionsLabel: S,
1733
- activityLog: j,
1734
- extendedStatusLabel: k,
1735
- tooltips: _ = {}
1736
- }) => /* @__PURE__ */ O(It, { className: e, size: "xs", children: [
1737
- n && /* @__PURE__ */ a(mr, { tooltip: _.status, loading: o, ...n }),
1738
- k && /* @__PURE__ */ a(te, { tooltip: _.extendedStatus, variant: "outline", children: k }),
1739
- w && /* @__PURE__ */ a(te, { tooltip: _.drafts, variant: "dotted", children: w }),
1740
- r && /* @__PURE__ */ O(ee, { tooltip: _.updatedAt, loading: o, datetime: r, size: "xs", children: [
1726
+ dueAt: u,
1727
+ dueAtLabel: f,
1728
+ archivedAt: i,
1729
+ archivedAtLabel: c,
1730
+ trashedAt: _,
1731
+ trashedAtLabel: l,
1732
+ draftsLabel: b,
1733
+ sentCount: p = 0,
1734
+ receivedCount: w = 0,
1735
+ attachmentsCount: z = 0,
1736
+ attachmentsLabel: h,
1737
+ transmissionsLabel: N,
1738
+ activityLog: A,
1739
+ extendedStatusLabel: R,
1740
+ tooltips: y = {}
1741
+ }) => /* @__PURE__ */ I(It, { className: e, size: "xs", children: [
1742
+ n && /* @__PURE__ */ a(mr, { tooltip: y.status, loading: o, ...n }),
1743
+ R && /* @__PURE__ */ a(te, { tooltip: y.extendedStatus, variant: "outline", children: R }),
1744
+ b && /* @__PURE__ */ a(te, { tooltip: y.drafts, variant: "dotted", children: b }),
1745
+ r && /* @__PURE__ */ I(ee, { tooltip: y.updatedAt, loading: o, datetime: r, size: "xs", children: [
1741
1746
  /* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
1742
1747
  s
1743
1748
  ] }),
1744
- m && c && /* @__PURE__ */ a(ee, { tooltip: _.dueAt, loading: o, datetime: m, size: "xs", icon: gt, children: c }),
1745
- E > 0 && /* @__PURE__ */ a(ee, { tooltip: _.attachments, loading: o, size: "xs", icon: yt, children: g || E }),
1746
- S && /* @__PURE__ */ a(ee, { tooltip: _.transmissions, loading: o, size: "xs", icon: At, children: S }),
1747
- v > 0 && /* @__PURE__ */ a(ee, { tooltip: _.sent, size: "xs", icon: Qe, children: v }),
1748
- x > 0 && /* @__PURE__ */ a(ee, { tooltip: _.received, size: "xs", icon: Et, children: x }),
1749
- i && /* @__PURE__ */ a(
1749
+ u && f && /* @__PURE__ */ a(ee, { tooltip: y.dueAt, loading: o, datetime: u, size: "xs", icon: gt, children: f }),
1750
+ z > 0 && /* @__PURE__ */ a(ee, { tooltip: y.attachments, loading: o, size: "xs", icon: yt, children: h || z }),
1751
+ N && /* @__PURE__ */ a(ee, { tooltip: y.transmissions, loading: o, size: "xs", icon: At, children: N }),
1752
+ p > 0 && /* @__PURE__ */ a(ee, { tooltip: y.sent, size: "xs", icon: Qe, children: p }),
1753
+ w > 0 && /* @__PURE__ */ a(ee, { tooltip: y.received, size: "xs", icon: St, children: w }),
1754
+ l && /* @__PURE__ */ a(
1750
1755
  ee,
1751
1756
  {
1752
1757
  variant: "tinted",
1753
1758
  color: "neutral",
1754
- tooltip: _.trashedAt,
1759
+ tooltip: y.trashedAt,
1755
1760
  loading: o,
1756
- datetime: p,
1761
+ datetime: _,
1757
1762
  size: "xs",
1758
1763
  icon: Ht,
1759
- children: i
1764
+ children: l
1760
1765
  }
1761
- ) || l && /* @__PURE__ */ a(
1766
+ ) || c && /* @__PURE__ */ a(
1762
1767
  ee,
1763
1768
  {
1764
1769
  variant: "tinted",
1765
1770
  color: "neutral",
1766
- tooltip: _.archivedAt,
1771
+ tooltip: y.archivedAt,
1767
1772
  loading: o,
1768
- datetime: d,
1773
+ datetime: i,
1769
1774
  size: "xs",
1770
- icon: zt,
1771
- children: l
1775
+ icon: Ct,
1776
+ children: c
1772
1777
  }
1773
1778
  ),
1774
- j && /* @__PURE__ */ a(
1779
+ A && /* @__PURE__ */ a(
1775
1780
  ee,
1776
1781
  {
1777
- tooltip: _.activityLog,
1782
+ tooltip: y.activityLog,
1778
1783
  loading: o,
1779
1784
  size: "xs",
1780
1785
  icon: $t,
1781
- as: j?.onClick ? "button" : "span",
1782
- onClick: j?.onClick,
1783
- children: j?.label || "Activity log"
1786
+ as: A?.onClick ? "button" : "span",
1787
+ onClick: A?.onClick,
1788
+ children: A?.label || "Activity log"
1784
1789
  }
1785
1790
  )
1786
1791
  ] }), or = ({
@@ -1790,7 +1795,7 @@ const rr = ({
1790
1795
  grouped: t = !1,
1791
1796
  loading: r,
1792
1797
  size: s = "xs"
1793
- }) => !e && !o ? null : /* @__PURE__ */ O($n, { loading: r, size: s, avatar: e, avatarGroup: !r && t && e && o ? {
1798
+ }) => !e && !o ? null : /* @__PURE__ */ I($n, { loading: r, size: s, avatar: e, avatarGroup: !r && t && e && o ? {
1794
1799
  items: [o, e]
1795
1800
  } : void 0, children: [
1796
1801
  /* @__PURE__ */ a("strong", { children: e?.name }),
@@ -1804,10 +1809,10 @@ const rr = ({
1804
1809
  function ir(e) {
1805
1810
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || Ge(e);
1806
1811
  }
1807
- const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ O("span", { className: de.media, "data-size": e, children: [
1808
- Ee(o) && /* @__PURE__ */ a(je, { ...o, className: de.avatar }) || Se(o) && /* @__PURE__ */ a(be, { ...o, className: de.avatarGroup }) || Re(o) && /* @__PURE__ */ a(se, { ...o, className: de.icon }) || ir(o) && o || /* @__PURE__ */ a(se, { svgElement: o, className: de.icon }),
1812
+ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ I("span", { className: de.media, "data-size": e, children: [
1813
+ Se(o) && /* @__PURE__ */ a(je, { ...o, className: de.avatar }) || ke(o) && /* @__PURE__ */ a(be, { ...o, className: de.avatarGroup }) || ze(o) && /* @__PURE__ */ a(se, { ...o, className: de.icon }) || ir(o) && o || /* @__PURE__ */ a(se, { svgElement: o, className: de.icon }),
1809
1814
  n && /* @__PURE__ */ a(Ot, { value: n, className: de.icon })
1810
- ] }), cr = "_item_ugak2_1", dr = "_label_ugak2_53", _e = {
1815
+ ] }), cr = "_item_ugak2_1", dr = "_label_ugak2_53", we = {
1811
1816
  item: cr,
1812
1817
  label: dr
1813
1818
  }, ee = ({
@@ -1817,40 +1822,40 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
1817
1822
  reverse: t,
1818
1823
  size: r = "xs",
1819
1824
  variant: s,
1820
- color: m,
1821
- icon: c,
1822
- children: d,
1823
- datetime: l,
1824
- tooltip: p,
1825
- ...i
1825
+ color: u,
1826
+ icon: f,
1827
+ children: i,
1828
+ datetime: c,
1829
+ tooltip: _,
1830
+ ...l
1826
1831
  }) => {
1827
- const w = e || (l ? "time" : "span");
1828
- return p ? /* @__PURE__ */ a($e, { content: p, placement: "bottom", children: /* @__PURE__ */ a(
1829
- w,
1832
+ const b = e || (c ? "time" : "span");
1833
+ return _ ? /* @__PURE__ */ a($e, { content: _, placement: "bottom", children: /* @__PURE__ */ a(
1834
+ b,
1830
1835
  {
1831
1836
  "data-size": r,
1832
- "data-color": m,
1837
+ "data-color": u,
1833
1838
  "data-variant": s,
1834
- dateTime: l,
1835
- className: K(_e.item, n),
1836
- ...i,
1837
- children: /* @__PURE__ */ O(ue, { loading: o, children: [
1838
- !o && c && /* @__PURE__ */ a(Fe, { size: r, icon: c }),
1839
- /* @__PURE__ */ a("span", { className: _e.label, children: d })
1839
+ dateTime: c,
1840
+ className: V(we.item, n),
1841
+ ...l,
1842
+ children: /* @__PURE__ */ I(ue, { loading: o, children: [
1843
+ !o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
1844
+ /* @__PURE__ */ a("span", { className: we.label, children: i })
1840
1845
  ] })
1841
1846
  }
1842
1847
  ) }) : /* @__PURE__ */ a(
1843
- w,
1848
+ b,
1844
1849
  {
1845
1850
  "data-size": r,
1846
- "data-color": m,
1851
+ "data-color": u,
1847
1852
  "data-variant": s,
1848
- dateTime: l,
1849
- className: K(_e.item, n),
1850
- ...i,
1851
- children: /* @__PURE__ */ O(ue, { loading: o, children: [
1852
- !o && c && /* @__PURE__ */ a(Fe, { size: r, icon: c }),
1853
- /* @__PURE__ */ a("span", { className: _e.label, children: d })
1853
+ dateTime: c,
1854
+ className: V(we.item, n),
1855
+ ...l,
1856
+ children: /* @__PURE__ */ I(ue, { loading: o, children: [
1857
+ !o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
1858
+ /* @__PURE__ */ a("span", { className: we.label, children: i })
1854
1859
  ] })
1855
1860
  }
1856
1861
  );
@@ -1873,7 +1878,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1873
1878
  menu: fr,
1874
1879
  button: pr,
1875
1880
  label: hr
1876
- }, Jr = Oe(
1881
+ }, Zr = Oe(
1877
1882
  ({
1878
1883
  disabled: e,
1879
1884
  label: o = "Label",
@@ -1881,99 +1886,103 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1881
1886
  title: t = "Title",
1882
1887
  items: r = [],
1883
1888
  dropdownSize: s = "sm",
1884
- id: m = "toolbar-menu",
1885
- onSelectId: c,
1886
- ...d
1889
+ id: u = "toolbar-menu",
1890
+ onSelectId: f,
1891
+ ...i
1887
1892
  }) => {
1888
- const l = wt({ id: m, returnFocusOnClose: !0 }), p = d.searchable ? "combobox" : "menu", i = qe(
1889
- (v) => {
1890
- c?.(v?.id ?? ""), v?.role !== "checkbox" && l.setOpen(!1);
1893
+ const c = _t({ id: u, returnFocusOnClose: !0 }), _ = i.searchable ? "combobox" : "menu", l = qe(
1894
+ (p) => {
1895
+ f?.(p?.id ?? ""), p?.role !== "checkbox" && c.setOpen(!1);
1891
1896
  },
1892
- [c, l]
1893
- ), w = le(
1894
- () => r.map((v) => ({
1895
- ...v,
1896
- onClick: () => i(v)
1897
+ [f, c]
1898
+ ), b = le(
1899
+ () => r.map((p) => ({
1900
+ ...p,
1901
+ onClick: () => l(p)
1897
1902
  })),
1898
- [r, i]
1903
+ [r, l]
1899
1904
  );
1900
- return e ? /* @__PURE__ */ O(ve, { className: he.button, variant: n, disabled: !0, children: [
1905
+ return e ? /* @__PURE__ */ I(ve, { className: he.button, variant: n, disabled: !0, children: [
1901
1906
  /* @__PURE__ */ a("span", { className: he.label, children: o }),
1902
1907
  /* @__PURE__ */ a(Be, { "aria-hidden": "true", focusable: "false" })
1903
1908
  ] }) : /* @__PURE__ */ a("span", { className: he.menu, children: /* @__PURE__ */ a(
1904
1909
  Gn,
1905
1910
  {
1906
- id: m,
1911
+ id: u,
1907
1912
  variant: "drawer-dropdown",
1908
1913
  title: t,
1909
1914
  size: s,
1910
- trigger: /* @__PURE__ */ O(
1915
+ trigger: /* @__PURE__ */ I(
1911
1916
  ve,
1912
1917
  {
1913
1918
  className: he.button,
1914
1919
  variant: n,
1915
- onClick: l.toggleMenu,
1916
- "aria-expanded": l.open,
1920
+ onClick: c.toggleMenu,
1921
+ "aria-expanded": c.open,
1917
1922
  "aria-haspopup": "menu",
1918
- "aria-controls": l.open ? l.menuId : void 0,
1919
- ref: l.triggerRef,
1923
+ "aria-controls": c.open ? c.menuId : void 0,
1924
+ ref: c.triggerRef,
1920
1925
  children: [
1921
1926
  /* @__PURE__ */ a("span", { className: he.label, children: o }),
1922
1927
  /* @__PURE__ */ a(Be, { "aria-hidden": "true", focusable: "false" })
1923
1928
  ]
1924
1929
  }
1925
1930
  ),
1926
- open: l.open,
1927
- onClose: () => l.setOpen(!1),
1928
- ...d?.searchable ? {} : l.dropdownA11yProps,
1931
+ open: c.open,
1932
+ onClose: () => c.setOpen(!1),
1933
+ ...i?.searchable ? {} : c.dropdownA11yProps,
1929
1934
  children: /* @__PURE__ */ a(
1930
1935
  et,
1931
1936
  {
1932
- ...d,
1933
- items: w,
1934
- keyboardEvents: l.open,
1935
- a11yMode: p,
1936
- open: l.open,
1937
- scrollToTopOnOpen: d.virtualized,
1938
- ...p === "combobox" ? { id: l.menuId } : l.menuA11yProps
1937
+ ...i,
1938
+ items: b,
1939
+ keyboardEvents: c.open,
1940
+ a11yMode: _,
1941
+ open: c.open,
1942
+ scrollToTopOnOpen: i.virtualized,
1943
+ ..._ === "combobox" ? { id: c.menuId } : c.menuA11yProps
1939
1944
  }
1940
1945
  )
1941
1946
  }
1942
1947
  ) });
1943
1948
  }
1944
- ), Zr = Oe(
1949
+ ), eo = Oe(
1945
1950
  ({
1946
- value: e,
1947
- name: o,
1948
- placeholder: n = "Search",
1949
- loading: t,
1950
- collapsible: r,
1951
- clearButtonAltText: s = "Clear search",
1952
- onChange: m,
1951
+ label: e,
1952
+ hideLabel: o = !0,
1953
+ value: n,
1954
+ name: t,
1955
+ placeholder: r = "Search",
1956
+ loading: s,
1957
+ collapsible: u,
1958
+ clearButtonAltText: f = "Clear search",
1959
+ onChange: i,
1953
1960
  onClear: c,
1954
- onKeyDown: d,
1961
+ onKeyDown: _,
1955
1962
  menu: l,
1956
- minLength: p,
1957
- disabled: i
1963
+ minLength: b,
1964
+ disabled: p
1958
1965
  }) => /* @__PURE__ */ a(
1959
1966
  Pe,
1960
1967
  {
1961
1968
  size: "xs",
1962
- value: e,
1963
- name: o,
1964
- placeholder: n,
1965
- clearButtonAltText: s,
1966
- onChange: m,
1969
+ label: e,
1970
+ hideLabel: o,
1971
+ value: n,
1972
+ name: t,
1973
+ placeholder: r,
1974
+ clearButtonAltText: f,
1975
+ onChange: i,
1967
1976
  onClear: c,
1968
- onKeyDown: d,
1969
- collapsible: r,
1977
+ onKeyDown: _,
1978
+ collapsible: u,
1970
1979
  autoComplete: "off",
1971
1980
  autoCapitalize: "off",
1972
1981
  type: "search",
1973
- minLength: p,
1974
- loading: t,
1982
+ minLength: b,
1983
+ loading: s,
1975
1984
  menu: l,
1976
- disabled: i
1985
+ disabled: p
1977
1986
  }
1978
1987
  )
1979
1988
  );
@@ -1984,9 +1993,9 @@ export {
1984
1993
  me as H,
1985
1994
  se as I,
1986
1995
  et as M,
1987
- Xr as R,
1996
+ Jr as R,
1988
1997
  Pe as S,
1989
- Zr as T,
1998
+ eo as T,
1990
1999
  Zt as V,
1991
2000
  $n as a,
1992
2001
  rt as b,
@@ -1996,19 +2005,19 @@ export {
1996
2005
  mr as f,
1997
2006
  Gn as g,
1998
2007
  Te as h,
1999
- Re as i,
2008
+ ze as i,
2000
2009
  Le as j,
2001
2010
  tt as k,
2002
2011
  Je as l,
2003
2012
  Xe as m,
2004
2013
  Fe as n,
2005
2014
  ee as o,
2006
- Jr as p,
2015
+ Zr as p,
2007
2016
  Bt as q,
2008
2017
  Qe as r,
2009
2018
  Ae as s,
2010
2019
  Be as t,
2011
2020
  tn as u,
2012
- Rt as v,
2021
+ zt as v,
2013
2022
  on as w
2014
2023
  };