@altinn/altinn-components 0.63.2 → 0.63.4

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