@altinn/altinn-components 0.65.0 → 0.66.0

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