@altinn/altinn-components 0.63.3 → 0.63.4

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