@altinn/altinn-components 0.63.2 → 0.63.3

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 (185) hide show
  1. package/dist/{ToolbarSearch-DT-KvnVb.js → ToolbarSearch-OLv6DjhT.js} +367 -364
  2. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +12 -11
  3. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +4 -3
  4. package/dist/components/Account/AccountList.js +7 -6
  5. package/dist/components/Account/AccountListItem.js +4 -3
  6. package/dist/components/Account/AccountListItemControls.js +13 -12
  7. package/dist/components/Account/AccountListItemDetails.js +4 -3
  8. package/dist/components/Account/AccountListVirtual.js +4 -3
  9. package/dist/components/Account/AccountMenu.js +8 -7
  10. package/dist/components/Account/AccountNotificationSettings.js +4 -3
  11. package/dist/components/Account/AccountOrganization.js +8 -7
  12. package/dist/components/AccountSelector/AccountSelector.js +9 -8
  13. package/dist/components/ActivityLog/ActivityLog.js +11 -10
  14. package/dist/components/ActivityLog/ActivityLogItem.js +4 -3
  15. package/dist/components/ActivityLog/ActivityLogSegment.js +5 -4
  16. package/dist/components/Alert/Alert.js +1 -1
  17. package/dist/components/Article/Article.js +4 -3
  18. package/dist/components/Article/ArticleContact.js +4 -3
  19. package/dist/components/Article/ArticleHeader.js +5 -4
  20. package/dist/components/Attachment/AttachmentLink.js +1 -1
  21. package/dist/components/Badge/Badge.js +3 -2
  22. package/dist/components/Badge/index.js +1 -1
  23. package/dist/components/Banner/Banner.js +4 -3
  24. package/dist/components/Bookmarks/BookmarkModal.js +8 -7
  25. package/dist/components/Bookmarks/BookmarkSettingsItem.js +7 -6
  26. package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +9 -8
  27. package/dist/components/Bookmarks/BookmarkSettingsList.js +11 -10
  28. package/dist/components/Breadcrumbs/Breadcrumbs.js +12 -11
  29. package/dist/components/Bulk/BulkHeader.js +8 -7
  30. package/dist/components/Button/ButtonIcon.js +4 -3
  31. package/dist/components/Button/ComboButton.js +4 -3
  32. package/dist/components/Button/FloatingActionButton.js +8 -7
  33. package/dist/components/Button/IconButton.js +6 -5
  34. package/dist/components/Byline/Byline.js +3 -2
  35. package/dist/components/Byline/index.js +1 -1
  36. package/dist/components/ContextMenu/ContextMenu.js +4 -3
  37. package/dist/components/Dashboard/DashboardCard.js +12 -11
  38. package/dist/components/Dashboard/DashboardHeader.js +11 -10
  39. package/dist/components/Datepicker/Datepicker.js +1 -1
  40. package/dist/components/Datepicker/DatepickerHeader.js +4 -3
  41. package/dist/components/Datepicker/DatepickerTable.js +12 -11
  42. package/dist/components/Dialog/Dialog.js +4 -3
  43. package/dist/components/Dialog/DialogActions.js +4 -3
  44. package/dist/components/Dialog/DialogActivityLog.js +4 -3
  45. package/dist/components/Dialog/DialogAttachments.js +4 -3
  46. package/dist/components/Dialog/DialogBody.js +4 -3
  47. package/dist/components/Dialog/DialogByline.js +3 -2
  48. package/dist/components/Dialog/DialogContact.js +18 -17
  49. package/dist/components/Dialog/DialogHeader.js +13 -12
  50. package/dist/components/Dialog/DialogHistory.js +4 -3
  51. package/dist/components/Dialog/DialogHistoryItem.js +4 -3
  52. package/dist/components/Dialog/DialogHistorySegment.js +4 -3
  53. package/dist/components/Dialog/DialogLayout.js +8 -7
  54. package/dist/components/Dialog/DialogList.js +3 -2
  55. package/dist/components/Dialog/DialogListItem.js +3 -2
  56. package/dist/components/Dialog/DialogMetadata.js +3 -2
  57. package/dist/components/Dialog/DialogSection.js +8 -7
  58. package/dist/components/Dialog/DialogSeenBy.js +8 -7
  59. package/dist/components/Dialog/DialogSelect.js +7 -6
  60. package/dist/components/Dialog/DialogStatus.js +4 -3
  61. package/dist/components/Dialog/DialogTabs.js +4 -3
  62. package/dist/components/Dialog/SeenByLog.js +4 -3
  63. package/dist/components/Dialog/SeenByLogButton.js +12 -11
  64. package/dist/components/Dialog/SeenByLogItem.js +16 -15
  65. package/dist/components/Dialog/index.js +1 -1
  66. package/dist/components/Dropdown/DrawerButton.js +7 -6
  67. package/dist/components/Dropdown/DrawerHeader.js +6 -5
  68. package/dist/components/Dropdown/Dropdown.js +3 -2
  69. package/dist/components/Dropdown/DropdownBase.js +8 -7
  70. package/dist/components/Dropdown/FloatingDropdown.js +11 -10
  71. package/dist/components/Dropdown/index.js +1 -1
  72. package/dist/components/Forms/Checkbox.js +4 -3
  73. package/dist/components/Forms/CheckboxOptions.js +4 -3
  74. package/dist/components/Forms/FieldBase.js +3 -2
  75. package/dist/components/Forms/FieldsetBase.js +4 -3
  76. package/dist/components/Forms/Radio.js +4 -3
  77. package/dist/components/Forms/RadioOptions.js +4 -3
  78. package/dist/components/Forms/SearchField.js +3 -2
  79. package/dist/components/Forms/SelectField.js +4 -3
  80. package/dist/components/Forms/Switch.js +5 -4
  81. package/dist/components/Forms/SwitchOptions.js +4 -3
  82. package/dist/components/Forms/TextField.js +4 -3
  83. package/dist/components/Forms/TextFieldDropdown.js +4 -3
  84. package/dist/components/Forms/TextareaField.js +5 -4
  85. package/dist/components/Forms/index.js +1 -1
  86. package/dist/components/GlobalHeader/GlobalAccountButton.js +4 -3
  87. package/dist/components/GlobalHeader/GlobalHeader.js +1 -1
  88. package/dist/components/GlobalHeader/GlobalMenuButton.js +4 -3
  89. package/dist/components/GlobalHeader/HeaderDrawer.js +6 -5
  90. package/dist/components/GlobalHeader/HeaderDropdown.js +7 -6
  91. package/dist/components/GlobalHeader/HeaderLogo.js +6 -5
  92. package/dist/components/GlobalMenu/GlobalMenu.js +44 -41
  93. package/dist/components/GlobalMenu/GlobalMenuBase.js +9 -6
  94. package/dist/components/GlobalMenu/LocaleSwitcher.js +10 -9
  95. package/dist/components/GlobalMenu/LogoutButton.js +7 -6
  96. package/dist/components/Icon/Icon.js +4 -3
  97. package/dist/components/Icon/index.js +1 -1
  98. package/dist/components/Inbox/InboxPage.js +6 -5
  99. package/dist/components/InboxSearch/InboxSearch.js +9 -8
  100. package/dist/components/Item/ItemLabel.js +1 -1
  101. package/dist/components/Item/ItemMedia.js +3 -2
  102. package/dist/components/Item/ItemSelect.js +4 -3
  103. package/dist/components/Item/index.js +1 -1
  104. package/dist/components/Layout/Layout.js +4 -3
  105. package/dist/components/List/List.js +4 -3
  106. package/dist/components/List/ListBase.js +4 -3
  107. package/dist/components/List/ListItemHeader.js +20 -19
  108. package/dist/components/List/ListItemIcon.js +4 -3
  109. package/dist/components/List/ListItemLabel.js +9 -8
  110. package/dist/components/Menu/Menu.js +1 -1
  111. package/dist/components/Menu/MenuItem.js +3 -2
  112. package/dist/components/Menu/MenuItems.js +3 -2
  113. package/dist/components/Menu/MenuListSearch.js +3 -2
  114. package/dist/components/Menu/MenuOption.js +1 -1
  115. package/dist/components/Menu/TabMenu.js +4 -3
  116. package/dist/components/Menu/VirtualizedMenuItems.js +3 -2
  117. package/dist/components/Menu/index.js +1 -1
  118. package/dist/components/Menu/useMenuSearch.js +1 -1
  119. package/dist/components/Metadata/MetaItem.js +1 -1
  120. package/dist/components/Metadata/MetaItemIcon.js +3 -2
  121. package/dist/components/Metadata/MetaTimestamp.js +1 -1
  122. package/dist/components/Metadata/Metadata.js +4 -3
  123. package/dist/components/Metadata/index.js +1 -1
  124. package/dist/components/Modal/Modal.js +8 -7
  125. package/dist/components/Modal/ModalBase.js +4 -3
  126. package/dist/components/Modal/ModalHeader.js +13 -12
  127. package/dist/components/Modal/ModalIcon.js +5 -4
  128. package/dist/components/Notifications/NotificationItem.js +4 -3
  129. package/dist/components/Notifications/NotificationItemBase.js +13 -12
  130. package/dist/components/Notifications/NotificationItemControls.js +4 -3
  131. package/dist/components/Notifications/NotificationItemIcon.js +10 -9
  132. package/dist/components/Page/AccordionSection.js +4 -3
  133. package/dist/components/Page/ContactButtons.js +6 -5
  134. package/dist/components/Page/ContactSection.js +8 -7
  135. package/dist/components/Page/PageMenu.js +10 -9
  136. package/dist/components/Page/PageNav.js +21 -20
  137. package/dist/components/Page/Section.js +8 -7
  138. package/dist/components/Pagination/Pagination.js +10 -9
  139. package/dist/components/ResourceListItem/ResourceListItem.js +4 -3
  140. package/dist/components/RootProvider/RootProvider.js +4 -3
  141. package/dist/components/RootProvider/index.js +1 -1
  142. package/dist/components/Search/SearchItem.js +4 -3
  143. package/dist/components/Searchbar/Autocomplete.js +9 -8
  144. package/dist/components/Searchbar/AutocompleteItem.js +4 -3
  145. package/dist/components/Searchbar/Searchbar.js +4 -3
  146. package/dist/components/Searchbar/SearchbarField.js +4 -3
  147. package/dist/components/Settings/SettingsItem.js +19 -18
  148. package/dist/components/Settings/SettingsItemBase.js +4 -3
  149. package/dist/components/Settings/SettingsList.js +11 -10
  150. package/dist/components/Settings/SettingsListVirtual.js +4 -3
  151. package/dist/components/Settings/SettingsModal.js +9 -8
  152. package/dist/components/Settings/SettingsSection.js +7 -6
  153. package/dist/components/Settings/UsedByLog.js +17 -16
  154. package/dist/components/Settings/UsedByLogItem.js +11 -10
  155. package/dist/components/Snackbar/SnackbarItem.js +4 -3
  156. package/dist/components/Timeline/Timeline.js +4 -3
  157. package/dist/components/Timeline/TimelineActivity.js +4 -3
  158. package/dist/components/Timeline/TimelineBase.js +8 -7
  159. package/dist/components/Timeline/TimelineFooter.js +4 -3
  160. package/dist/components/Timeline/TimelineHeader.js +6 -5
  161. package/dist/components/Timeline/TimelineIcon.js +4 -3
  162. package/dist/components/Timeline/TimelineSection.js +4 -3
  163. package/dist/components/Timeline/TimelineSegment.js +4 -3
  164. package/dist/components/Toolbar/DatepickerFilter.js +13 -12
  165. package/dist/components/Toolbar/SelectDateFilter.js +4 -3
  166. package/dist/components/Toolbar/Toolbar.js +1 -1
  167. package/dist/components/Toolbar/ToolbarFilter.js +4 -3
  168. package/dist/components/Toolbar/ToolbarFilterAddMenu.js +12 -11
  169. package/dist/components/Toolbar/ToolbarFilterButton.js +4 -3
  170. package/dist/components/Toolbar/ToolbarFilterMenu.js +17 -16
  171. package/dist/components/Toolbar/ToolbarMenu.js +3 -2
  172. package/dist/components/Toolbar/ToolbarSearch.js +3 -2
  173. package/dist/components/Toolbar/index.js +1 -1
  174. package/dist/components/Transmission/Transmission.js +4 -3
  175. package/dist/components/Transmission/TransmissionList.js +6 -5
  176. package/dist/components/Transmission/TransmissionType.js +4 -3
  177. package/dist/components/Typography/Heading.js +3 -2
  178. package/dist/components/Typography/index.js +1 -1
  179. package/dist/components/UserListItem/UserListItem.js +9 -8
  180. package/dist/components/index.js +1 -1
  181. package/dist/hooks/useAccountSelector.js +4 -3
  182. package/dist/index.js +1 -1
  183. package/dist/types/lib/components/Dialog/DialogListItem.d.ts +5 -1
  184. package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +4 -1
  185. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as I, Fragment as xe } from "react/jsx-runtime";
3
- import * as H from "react";
4
- import C, { forwardRef as W, useRef as J, useState as oe, useMemo as le, useEffect as U, Fragment as He, useLayoutEffect as Ce, createContext as ot, useContext as at, isValidElement as Ge, useId as De, useCallback as qe, memo as Oe, createElement as st } from "react";
2
+ import { jsx as a, jsxs as O, Fragment as xe } from "react/jsx-runtime";
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
5
  import { c as K } from "./index-p1eeF8LQ.js";
6
6
  import { useEscapeKey as lt } from "./hooks/useEscapeKey.js";
7
7
  import "./components/Typography/Link.js";
@@ -12,12 +12,13 @@ import { Typography as Ke } from "./components/Typography/Typography.js";
12
12
  import { Skeleton as ue } from "./components/Skeleton/Skeleton.js";
13
13
  import { useHighlightedText as ct } from "./components/Typography/useHighlightedText.js";
14
14
  import { Tooltip as $e } from "./components/Tooltip/Tooltip.js";
15
+ import "./components/GlobalMenu/GlobalMenuBase.js";
15
16
  import { SnackbarProvider as dt } from "./components/Snackbar/useSnackbar.js";
16
17
  import { Input as ut } from "./components/Forms/Input.js";
17
18
  import { Field as mt } from "./components/Forms/Field.js";
18
19
  import { Label as ft } from "./components/Forms/Label.js";
19
20
  import { TypingIcon as pt } from "./components/Icon/TypingIcon.js";
20
- import { u as Y } from "./useId-BVFxCjkq.js";
21
+ import { u as Q } from "./useId-BVFxCjkq.js";
21
22
  import { isAvatarProps as Ee, Avatar as je } from "./components/Avatar/Avatar.js";
22
23
  import { isAvatarGroupProps as Se, AvatarGroup as be } from "./components/Avatar/AvatarGroup.js";
23
24
  import { ItemControls as ke } from "./components/Item/ItemControls.js";
@@ -42,9 +43,9 @@ import './assets/ToolbarSearch.css';var Nt = function(e, o) {
42
43
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
43
44
  return n;
44
45
  };
45
- const zt = W((e, o) => {
46
+ const zt = Y((e, o) => {
46
47
  var { title: n, titleId: t } = e, r = Nt(e, ["title", "titleId"]);
47
- let s = Y();
48
+ let s = Q();
48
49
  return s = n ? t || "title-" + s : void 0, C.createElement(
49
50
  "svg",
50
51
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -60,9 +61,9 @@ var Ct = function(e, o) {
60
61
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
61
62
  return n;
62
63
  };
63
- const Et = W((e, o) => {
64
+ const Et = Y((e, o) => {
64
65
  var { title: n, titleId: t } = e, r = Ct(e, ["title", "titleId"]);
65
- let s = Y();
66
+ let s = Q();
66
67
  return s = n ? t || "title-" + s : void 0, C.createElement(
67
68
  "svg",
68
69
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -78,9 +79,9 @@ var St = function(e, o) {
78
79
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
79
80
  return n;
80
81
  };
81
- const Qe = W((e, o) => {
82
+ const Qe = Y((e, o) => {
82
83
  var { title: n, titleId: t } = e, r = St(e, ["title", "titleId"]);
83
- let s = Y();
84
+ let s = Q();
84
85
  return s = n ? t || "title-" + s : void 0, C.createElement(
85
86
  "svg",
86
87
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -96,9 +97,9 @@ var kt = function(e, o) {
96
97
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
97
98
  return n;
98
99
  };
99
- const Rt = W((e, o) => {
100
+ const Rt = Y((e, o) => {
100
101
  var { title: n, titleId: t } = e, r = kt(e, ["title", "titleId"]);
101
- let s = Y();
102
+ let s = Q();
102
103
  return s = n ? t || "title-" + s : void 0, C.createElement(
103
104
  "svg",
104
105
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -114,9 +115,9 @@ var Pt = function(e, o) {
114
115
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
115
116
  return n;
116
117
  };
117
- const Be = W((e, o) => {
118
+ const Be = Y((e, o) => {
118
119
  var { title: n, titleId: t } = e, r = Pt(e, ["title", "titleId"]);
119
- let s = Y();
120
+ let s = Q();
120
121
  return s = n ? t || "title-" + s : void 0, C.createElement(
121
122
  "svg",
122
123
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -132,9 +133,9 @@ var Mt = function(e, o) {
132
133
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
133
134
  return n;
134
135
  };
135
- const $t = W((e, o) => {
136
+ const $t = Y((e, o) => {
136
137
  var { title: n, titleId: t } = e, r = Mt(e, ["title", "titleId"]);
137
- let s = Y();
138
+ let s = Q();
138
139
  return s = n ? t || "title-" + s : void 0, C.createElement(
139
140
  "svg",
140
141
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -150,9 +151,9 @@ var jt = function(e, o) {
150
151
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
151
152
  return n;
152
153
  };
153
- const At = W((e, o) => {
154
+ const At = Y((e, o) => {
154
155
  var { title: n, titleId: t } = e, r = jt(e, ["title", "titleId"]);
155
- let s = Y();
156
+ let s = Q();
156
157
  return s = n ? t || "title-" + s : void 0, C.createElement(
157
158
  "svg",
158
159
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -168,9 +169,9 @@ var Dt = function(e, o) {
168
169
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
169
170
  return n;
170
171
  };
171
- const Bt = W((e, o) => {
172
+ const Bt = Y((e, o) => {
172
173
  var { title: n, titleId: t } = e, r = Dt(e, ["title", "titleId"]);
173
- let s = Y();
174
+ let s = Q();
174
175
  return s = n ? t || "title-" + s : void 0, C.createElement(
175
176
  "svg",
176
177
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -186,9 +187,9 @@ var Tt = function(e, o) {
186
187
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
187
188
  return n;
188
189
  };
189
- const Lt = W((e, o) => {
190
+ const Lt = Y((e, o) => {
190
191
  var { title: n, titleId: t } = e, r = Tt(e, ["title", "titleId"]);
191
- let s = Y();
192
+ let s = Q();
192
193
  return s = n ? t || "title-" + s : void 0, C.createElement(
193
194
  "svg",
194
195
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -204,9 +205,9 @@ var Ft = function(e, o) {
204
205
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
205
206
  return n;
206
207
  };
207
- const Ht = W((e, o) => {
208
+ const Ht = Y((e, o) => {
208
209
  var { title: n, titleId: t } = e, r = Ft(e, ["title", "titleId"]);
209
- let s = Y();
210
+ let s = Q();
210
211
  return s = n ? t || "title-" + s : void 0, C.createElement(
211
212
  "svg",
212
213
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -222,9 +223,9 @@ var Gt = function(e, o) {
222
223
  o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
223
224
  return n;
224
225
  };
225
- const Ae = W((e, o) => {
226
+ const Ae = Y((e, o) => {
226
227
  var { title: n, titleId: t } = e, r = Gt(e, ["title", "titleId"]);
227
- let s = Y();
228
+ let s = Q();
228
229
  return s = n ? t || "title-" + s : void 0, C.createElement(
229
230
  "svg",
230
231
  Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
@@ -234,7 +235,7 @@ const Ae = W((e, o) => {
234
235
  }), qt = "_badge_5li3b_1", Kt = "_label_5li3b_33", ye = {
235
236
  badge: qt,
236
237
  label: Kt
237
- }, re = ({
238
+ }, te = ({
238
239
  label: e,
239
240
  color: o,
240
241
  variant: n = "subtle",
@@ -283,12 +284,12 @@ const Ae = W((e, o) => {
283
284
  className: m,
284
285
  style: c,
285
286
  children: d
286
- }) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: K(fe.icon, m), style: c, children: /* @__PURE__ */ I(ue, { loading: e, variant: "circle", className: fe.shape, children: [
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: [
287
288
  /* @__PURE__ */ a("span", { className: fe.shape }),
288
289
  n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: fe.svg }),
289
290
  s && /* @__PURE__ */ a("img", { src: s, alt: o, className: fe.image }),
290
291
  d
291
- ] }) }), Qt = ({ size: e, color: o, label: n, helperText: t, children: r, ...s }) => /* @__PURE__ */ I(mt, { size: e, color: o, ...s, children: [
292
+ ] }) }), Qt = ({ size: e, color: o, label: n, helperText: t, children: r, ...s }) => /* @__PURE__ */ O(mt, { size: e, color: o, ...s, children: [
292
293
  n && /* @__PURE__ */ a(ft, { size: e, children: n }),
293
294
  r,
294
295
  t && /* @__PURE__ */ a(Ke, { size: "xs", children: t })
@@ -334,8 +335,8 @@ const Ae = W((e, o) => {
334
335
  "aria-controls": p,
335
336
  "aria-activedescendant": i,
336
337
  autoFocus: !0,
337
- onKeyDown: (b) => {
338
- (b.key === "ArrowUp" || b.key === "ArrowDown") && (b.preventDefault(), d?.()), w?.(b);
338
+ onKeyDown: (g) => {
339
+ (g.key === "ArrowUp" || g.key === "ArrowDown") && (g.preventDefault(), d?.()), w?.(g);
339
340
  },
340
341
  onInput: v,
341
342
  onFocus: x,
@@ -357,8 +358,8 @@ const Ae = W((e, o) => {
357
358
  autoCorrect: "off",
358
359
  autoCapitalize: "off",
359
360
  autoFocus: !0,
360
- onKeyDown: (b) => {
361
- (b.key === "ArrowUp" || b.key === "ArrowDown") && (b.preventDefault(), d?.()), w?.(b);
361
+ onKeyDown: (g) => {
362
+ (g.key === "ArrowUp" || g.key === "ArrowDown") && (g.preventDefault(), d?.()), w?.(g);
362
363
  },
363
364
  onInput: v,
364
365
  onFocus: x,
@@ -381,7 +382,7 @@ const Ae = W((e, o) => {
381
382
  id: v,
382
383
  color: x,
383
384
  variant: E,
384
- scrollRefStyles: b = {},
385
+ scrollRefStyles: g = {},
385
386
  keyboardEvents: S = !1,
386
387
  onSelect: j = () => {
387
388
  },
@@ -389,45 +390,45 @@ const Ae = W((e, o) => {
389
390
  }) => {
390
391
  if (o && e >= o)
391
392
  return null;
392
- const _ = t === "combobox", f = _ && v ? `${v}-listbox` : v, D = J(r), P = J(r), [A, M] = oe(!1), $ = le(
393
+ const _ = t === "combobox", f = _ && v ? `${v}-listbox` : v, D = J(r), R = J(r), [A, P] = oe(!1), M = le(
393
394
  () => p.map((u, z) => ({
394
395
  ...u,
395
396
  id: u.id || `${v}-item-${z}`
396
397
  })),
397
398
  [p, v]
398
- ), R = J(null), { menu: N, setActiveIndex: h, activeItem: g } = Me({
399
- items: $,
399
+ ), $ = J(null), { menu: N, setActiveIndex: h, activeItem: y } = Me({
400
+ items: M,
400
401
  groups: i,
401
402
  groupByKey: "groupId",
402
403
  keyboardEvents: S,
403
404
  autoActivateFirstItem: m,
404
405
  onSelect: j,
405
- ref: R
406
+ ref: $
406
407
  });
407
- return U(() => {
408
- k?.(g?.id);
409
- }, [g?.id, k]), U(() => {
408
+ return W(() => {
409
+ k?.(y?.id);
410
+ }, [y?.id, k]), W(() => {
410
411
  if (!s) {
411
412
  D.current = r;
412
413
  return;
413
414
  }
414
415
  const u = D.current;
415
- D.current = r, r && !u && R.current?.scrollTo({ top: 0 });
416
- }, [r, s]), U(() => {
417
- const u = P.current;
418
- P.current = r, !(!S || l || !c) && r && !u && requestAnimationFrame(() => R.current?.focus?.({ preventScroll: !0 }));
419
- }, [r, S, l]), U(() => {
416
+ D.current = r, r && !u && $.current?.scrollTo({ top: 0 });
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(() => {
420
421
  if (_ && d) {
421
- h(0), M(!0);
422
+ h(0), P(!0);
422
423
  return;
423
424
  }
424
- }, [d, _, h]), /* @__PURE__ */ I(
425
+ }, [d, _, h]), /* @__PURE__ */ O(
425
426
  Ie,
426
427
  {
427
428
  variant: E,
428
429
  expanded: n,
429
- ref: R,
430
- style: b,
430
+ ref: $,
431
+ style: g,
431
432
  id: f,
432
433
  role: _ ? "listbox" : void 0,
433
434
  tabIndex: S ? -1 : void 0,
@@ -438,63 +439,63 @@ const Ae = W((e, o) => {
438
439
  ...l,
439
440
  combobox: _,
440
441
  listId: f,
441
- "aria-activedescendant": _ && A ? g?.id : void 0,
442
- onNavigate: _ ? () => M(!0) : void 0,
442
+ "aria-activedescendant": _ && A ? y?.id : void 0,
443
+ onNavigate: _ ? () => P(!0) : void 0,
443
444
  onChange: (u) => {
444
- M(!1), l.onChange?.(u);
445
+ P(!1), l.onChange?.(u);
445
446
  },
446
447
  onFocus: (u) => {
447
- M(!1), l.onFocus?.(u);
448
+ P(!1), l.onFocus?.(u);
448
449
  },
449
450
  onInput: (u) => {
450
- M(!1), l.onInput?.(u);
451
+ P(!1), l.onInput?.(u);
451
452
  },
452
453
  onKeyDown: (u) => {
453
454
  const z = u.key === "ArrowUp" || u.key === "ArrowDown", L = u.key.length === 1 || u.key === "Backspace" || u.key === "Delete";
454
- _ && !z && L && M(!1), l.onKeyDown?.(u);
455
+ _ && !z && L && P(!1), l.onKeyDown?.(u);
455
456
  }
456
457
  }
457
458
  ),
458
459
  N.map((u, z) => {
459
- const L = u?.props || {}, { title: F, hidden: G = !1, divider: V = !0 } = L;
460
- return /* @__PURE__ */ I(He, { children: [
460
+ const L = u?.props || {}, { title: F, hidden: H = !1, divider: V = !0 } = L;
461
+ return /* @__PURE__ */ O(He, { children: [
461
462
  (e > 0 || z) && V ? /* @__PURE__ */ a(We, {}) : "",
462
- /* @__PURE__ */ a(Ue, { hidden: G, children: /* @__PURE__ */ I(Ie, { role: "presentation", children: [
463
+ /* @__PURE__ */ a(Ue, { hidden: H, children: /* @__PURE__ */ O(Ie, { role: "presentation", children: [
463
464
  F && /* @__PURE__ */ a(Ye, { title: F, level: e }),
464
- u?.items.filter((Q) => !Q.props?.hidden).map((Q, y) => {
465
- const { active: O, onMouseEnter: B } = Q, { groupId: Z, ...T } = Q.props || {}, { expanded: ne } = T, ie = Array.isArray(T?.items) && T.items.length > 0, ge = T.role === "checkbox" || T.role === "radio", Ne = _ && !ge ? "option" : T.role;
466
- return /* @__PURE__ */ I(
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(
467
468
  Ve,
468
469
  {
469
- expanded: ne,
470
+ expanded: re,
470
471
  onMouseLeave: () => h(-1),
471
472
  role: _ || ge ? "presentation" : void 0,
472
473
  children: [
473
474
  /* @__PURE__ */ a(
474
475
  tt,
475
476
  {
476
- ...T,
477
- size: T?.size || L?.size || w,
478
- color: T?.color || L?.color || x,
479
- variant: T?.variant || L?.variant || E,
480
- active: O,
477
+ ...B,
478
+ size: B?.size || L?.size || w,
479
+ color: B?.color || L?.color || x,
480
+ variant: B?.variant || L?.variant || E,
481
+ active: I,
481
482
  role: Ne,
482
- selected: T.selected,
483
- tabIndex: T?.disabled || S ? -1 : T.tabIndex ?? 0,
484
- onMouseEnter: B,
483
+ selected: B.selected,
484
+ tabIndex: B?.disabled || S ? -1 : B.tabIndex ?? 0,
485
+ onMouseEnter: T,
485
486
  "aria-haspopup": ie ? "menu" : void 0,
486
- "aria-expanded": ie ? ne : void 0,
487
- "aria-controls": ie ? T.id + "-menu" : void 0
487
+ "aria-expanded": ie ? re : void 0,
488
+ "aria-controls": ie ? B.id + "-menu" : void 0
488
489
  }
489
490
  ),
490
- ne && T?.items && /* @__PURE__ */ a(
491
+ re && B?.items && /* @__PURE__ */ a(
491
492
  Je,
492
493
  {
493
- id: T.id + "-menu",
494
- expanded: ne,
494
+ id: B.id + "-menu",
495
+ expanded: re,
495
496
  level: e + 1,
496
497
  maxLevels: o,
497
- items: T?.items,
498
+ items: B?.items,
498
499
  groups: i,
499
500
  size: w,
500
501
  color: x,
@@ -503,7 +504,7 @@ const Ae = W((e, o) => {
503
504
  )
504
505
  ]
505
506
  },
506
- y
507
+ b
507
508
  );
508
509
  })
509
510
  ] }) }, z)
@@ -525,51 +526,51 @@ const Ae = W((e, o) => {
525
526
  id: v,
526
527
  expanded: x,
527
528
  a11yMode: E = "menu",
528
- open: b,
529
+ open: g,
529
530
  scrollToTopOnOpen: S = !1,
530
531
  autoActivateFirstItem: j = !0,
531
532
  announceNoResults: k = !1,
532
533
  onActiveItemIdChange: _
533
- } = e, f = E === "combobox", D = f && v ? `${v}-listbox` : v, P = J(b), [A, M] = oe(!1), $ = le(
534
- () => m.map((y, O) => ({
535
- ...y,
536
- id: y.id || `${v}-item-${O}`
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}`
537
538
  })),
538
539
  [m, v]
539
- ), { menu: R, activeItem: N, setActiveIndex: h, activeIndex: g } = Me({
540
- items: $,
540
+ ), { menu: $, activeItem: N, setActiveIndex: h, activeIndex: y } = Me({
541
+ items: M,
541
542
  groups: c,
542
543
  groupByKey: "groupId",
543
544
  keyboardEvents: i,
544
545
  autoActivateFirstItem: j,
545
546
  ref: o
546
547
  }), { flatMenu: u, virtualizer: z, scrollMaxHeight: L } = vt({
547
- menu: R,
548
+ menu: $,
548
549
  scrollRef: o
549
550
  });
550
551
  Ce(() => {
551
- const y = n.current;
552
- if (!y) return;
553
- const O = Math.round(y.offsetTop);
554
- r((B) => B === O ? B : O);
552
+ const b = n.current;
553
+ if (!b) return;
554
+ const I = Math.round(b.offsetTop);
555
+ r((T) => T === I ? T : I);
555
556
  });
556
557
  const F = le(() => {
557
- const y = N?.id;
558
- if (y)
559
- return u.findIndex((B) => B.type === "item" && B.itemProps?.id === y);
560
- if (g < 0) return -1;
561
- let O = -1;
562
- for (let B = 0; B < u.length; B++)
563
- if (u[B]?.type === "item" && (O += 1, O === g))
564
- return B;
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))
565
+ return T;
565
566
  return -1;
566
- }, [N?.id, g, u]), G = J(null);
567
+ }, [N?.id, y, u]), H = J(null);
567
568
  Ce(() => {
568
- const y = G?.current, O = typeof y == "number" ? F <= y : !1;
569
- G.current = F;
570
- const B = O ? F : F + 2;
571
- if (!O) {
572
- const ie = z.getOffsetForIndex(B, "auto");
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");
573
574
  if (!ie) return;
574
575
  const [ge, Ne] = ie;
575
576
  if (Ne === "auto") return;
@@ -580,34 +581,34 @@ const Ae = W((e, o) => {
580
581
  z.scrollToOffset(0);
581
582
  return;
582
583
  }
583
- const Z = z.getOffsetForIndex(F - 1, "auto");
584
- if (!Z) return;
585
- const [T, ne] = Z;
586
- ne !== "auto" && z.scrollToOffset(T + t + 10, { align: "start" });
587
- }, [F, t, z, G]);
584
+ const U = z.getOffsetForIndex(F - 1, "auto");
585
+ if (!U) return;
586
+ const [B, re] = U;
587
+ re !== "auto" && z.scrollToOffset(B + t + 10, { align: "start" });
588
+ }, [F, t, z, H]);
588
589
  const V = le(() => {
589
- const y = /* @__PURE__ */ new Map();
590
- let O = 0;
591
- return u.forEach((B, Z) => {
592
- B.type === "item" && (O += 1, y.set(Z, O));
593
- }), { positions: y, total: O };
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 };
594
595
  }, [u]);
595
- U(() => {
596
+ W(() => {
596
597
  _?.(N?.id);
597
- }, [N?.id, _]), U(() => {
598
+ }, [N?.id, _]), W(() => {
598
599
  if (f && k) {
599
- h(0), M(!0);
600
+ h(0), P(!0);
600
601
  return;
601
602
  }
602
- }, [k, f, h]), U(() => {
603
+ }, [k, f, h]), W(() => {
603
604
  if (!S) {
604
- P.current = b;
605
+ R.current = g;
605
606
  return;
606
607
  }
607
- const y = P.current;
608
- P.current = b, b && !y && o.current?.scrollTo({ top: 0 });
609
- }, [b, S]);
610
- const Q = {
608
+ const b = R.current;
609
+ R.current = g, g && !b && o.current?.scrollTo({ top: 0 });
610
+ }, [g, S]);
611
+ const ne = {
611
612
  position: "relative",
612
613
  maxHeight: w?.maxHeight || L,
613
614
  margin: "-0.5rem",
@@ -616,11 +617,11 @@ const Ae = W((e, o) => {
616
617
  overflowY: "auto",
617
618
  ...w
618
619
  };
619
- return /* @__PURE__ */ I(
620
+ return /* @__PURE__ */ O(
620
621
  Ie,
621
622
  {
622
623
  ref: o,
623
- style: Q,
624
+ style: ne,
624
625
  variant: p,
625
626
  color: l,
626
627
  expanded: x,
@@ -634,19 +635,19 @@ const Ae = W((e, o) => {
634
635
  combobox: f,
635
636
  listId: D,
636
637
  "aria-activedescendant": f && A ? N?.id : void 0,
637
- onNavigate: f ? () => M(!0) : void 0,
638
- onChange: (y) => {
639
- M(!1), s.onChange?.(y);
638
+ onNavigate: f ? () => P(!0) : void 0,
639
+ onChange: (b) => {
640
+ P(!1), s.onChange?.(b);
640
641
  },
641
- onFocus: (y) => {
642
- M(!1), s.onFocus?.(y);
642
+ onFocus: (b) => {
643
+ P(!1), s.onFocus?.(b);
643
644
  },
644
- onInput: (y) => {
645
- M(!1), s.onInput?.(y);
645
+ onInput: (b) => {
646
+ P(!1), s.onInput?.(b);
646
647
  },
647
- onKeyDown: (y) => {
648
- const O = y.key === "ArrowUp" || y.key === "ArrowDown", B = y.key.length === 1 || y.key === "Backspace" || y.key === "Delete";
649
- f && !O && B && M(!1), s.onKeyDown?.(y);
648
+ onKeyDown: (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);
650
651
  }
651
652
  }
652
653
  ),
@@ -659,57 +660,57 @@ const Ae = W((e, o) => {
659
660
  height: `${z.getTotalSize()}px`,
660
661
  width: "100%"
661
662
  },
662
- children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children: z.getVirtualItems().map((y) => {
663
- const O = u[y.index];
664
- if (!O) return null;
665
- const B = {
663
+ children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children: z.getVirtualItems().map((b) => {
664
+ const I = u[b.index];
665
+ if (!I) return null;
666
+ const T = {
666
667
  position: "absolute",
667
668
  top: 0,
668
669
  left: 0,
669
670
  width: "100%",
670
- transform: `translateY(${y.start}px)`
671
- }, Z = {
672
- style: B,
673
- index: y.index,
674
- "data-index": y.index,
671
+ transform: `translateY(${b.start}px)`
672
+ }, U = {
673
+ style: T,
674
+ index: b.index,
675
+ "data-index": b.index,
675
676
  ref: z.measureElement
676
677
  };
677
- switch (O.type) {
678
+ switch (I.type) {
678
679
  case "divider":
679
680
  return /* @__PURE__ */ a(
680
681
  We,
681
682
  {
682
- ...Z,
683
- style: { ...B, padding: "0.25rem 0" }
683
+ ...U,
684
+ style: { ...T, padding: "0.25rem 0" }
684
685
  },
685
- y.key
686
+ b.key
686
687
  );
687
688
  case "header":
688
- return /* @__PURE__ */ a(Ye, { ...Z, title: O.title || "", level: 1 }, y.key);
689
+ return /* @__PURE__ */ a(Ye, { ...U, title: I.title || "", level: 1 }, b.key);
689
690
  default: {
690
- const T = O.itemProps?.role === "checkbox" || O.itemProps?.role === "radio", ne = f && !T ? "option" : O.itemProps?.role;
691
+ const B = I.itemProps?.role === "checkbox" || I.itemProps?.role === "radio", re = f && !B ? "option" : I.itemProps?.role;
691
692
  return /* @__PURE__ */ a(
692
693
  Ve,
693
694
  {
694
- ...Z,
695
- role: f || T ? "presentation" : "menuitem",
695
+ ...U,
696
+ role: f || B ? "presentation" : "menuitem",
696
697
  children: /* @__PURE__ */ a(
697
698
  tt,
698
699
  {
699
- ...O.itemProps || {},
700
- size: O.itemProps?.size || d,
701
- color: O.itemProps?.color || l,
702
- variant: O.itemProps?.variant || p,
703
- active: O.active,
704
- role: ne,
705
- selected: O.itemProps?.selected,
706
- "aria-posinset": f ? V.positions.get(y.index) : void 0,
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,
705
+ role: re,
706
+ selected: I.itemProps?.selected,
707
+ "aria-posinset": f ? V.positions.get(b.index) : void 0,
707
708
  "aria-setsize": f ? V.total : void 0,
708
- tabIndex: O.itemProps?.disabled || i ? -1 : 0
709
+ tabIndex: I.itemProps?.disabled || i ? -1 : 0
709
710
  }
710
711
  )
711
712
  },
712
- y.key
713
+ b.key
713
714
  );
714
715
  }
715
716
  }
@@ -730,7 +731,7 @@ const Ae = W((e, o) => {
730
731
  console.warn("setPreviousId called outside of RootProvider context");
731
732
  },
732
733
  languageCode: "nb"
733
- }, Ze = ot(en), Qr = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
734
+ }, Ze = ot(en), Xr = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
734
735
  const [r, s] = oe(o?.currentId || ""), [m, c] = oe(o?.previousId || "");
735
736
  return /* @__PURE__ */ a(
736
737
  Ze.Provider,
@@ -811,14 +812,14 @@ const Ae = W((e, o) => {
811
812
  items: s = [],
812
813
  groups: m = {}
813
814
  }) => {
814
- const { languageCode: c } = tn(), d = H.useMemo(() => nn(c), [c]), [l, p] = H.useState(""), i = H.useCallback(
815
- (g) => {
816
- p(g.target.value), n?.(g);
815
+ const { languageCode: c } = tn(), d = G.useMemo(() => nn(c), [c]), [l, p] = G.useState(""), i = G.useCallback(
816
+ (y) => {
817
+ p(y.target.value), n?.(y);
817
818
  },
818
819
  [n]
819
- ), w = H.useCallback(() => {
820
+ ), w = G.useCallback(() => {
820
821
  p(""), t?.();
821
- }, [t]), v = H.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), x = v.length > 0, E = H.useMemo(() => v.toLowerCase(), [v]), b = H.useMemo(() => v ? v.split(" ") : [], [v]), S = H.useMemo(
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(
822
823
  () => ({
823
824
  placeholder: e ?? d.placeholder,
824
825
  name: o ?? "search",
@@ -828,16 +829,16 @@ const Ae = W((e, o) => {
828
829
  clearButtonAltText: r
829
830
  }),
830
831
  [e, d.placeholder, o, l, i, w, r]
831
- ), j = H.useMemo(
832
- () => s.map((g) => {
833
- const u = g?.searchWords?.length ? g.searchWords : [g?.title, g?.description].filter(Boolean);
832
+ ), j = G.useMemo(
833
+ () => s.map((y) => {
834
+ const u = y?.searchWords?.length ? y.searchWords : [y?.title, y?.description].filter(Boolean);
834
835
  return {
835
- ...g,
836
+ ...y,
836
837
  searchWords: u ?? []
837
838
  };
838
839
  }),
839
840
  [s]
840
- ), k = H.useMemo(
841
+ ), k = G.useMemo(
841
842
  () => [
842
843
  {
843
844
  id: "emptySearch",
@@ -850,24 +851,24 @@ const Ae = W((e, o) => {
850
851
  }
851
852
  ],
852
853
  [d.noResults]
853
- ), _ = H.useMemo(() => {
854
- const g = s.filter((u) => u.groupId === "emptySearch").map((u) => ({ ...u, hidden: !1 }));
855
- return g.length ? g : k;
856
- }, [s, k]), { selectedItems: f, results: D } = H.useMemo(() => {
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(() => {
857
858
  if (!x) return { selectedItems: [], results: [] };
858
- const g = [], u = [];
859
+ const y = [], u = [];
859
860
  for (const z of j)
860
- z.checked === !0 && g.push({ ...z, groupId: "selected" }), (z.searchWords ?? []).some((G) => String(G).toLowerCase().includes(E)) && u.push({
861
+ z.checked === !0 && y.push({ ...z, groupId: "selected" }), (z.searchWords ?? []).some((H) => String(H).toLowerCase().includes(E)) && u.push({
861
862
  ...z,
862
863
  groupId: "search",
863
- highlightWords: b
864
+ highlightWords: g
864
865
  });
865
- return { selectedItems: g, results: u };
866
- }, [x, j, E, b]), P = D.length, A = f.length, M = H.useMemo(
866
+ return { selectedItems: y, results: u };
867
+ }, [x, j, E, g]), R = D.length, A = f.length, P = G.useMemo(
867
868
  () => ({
868
869
  search: {
869
870
  hidden: !0,
870
- title: d.hits(P)
871
+ title: d.hits(R)
871
872
  },
872
873
  selected: {
873
874
  hidden: !0,
@@ -879,32 +880,32 @@ const Ae = W((e, o) => {
879
880
  },
880
881
  ...m
881
882
  }),
882
- [d, P, A, m]
883
- ), $ = H.useMemo(
883
+ [d, R, A, m]
884
+ ), M = G.useMemo(
884
885
  () => ({
885
- ...M,
886
+ ...P,
886
887
  search: {
887
888
  hidden: !x,
888
- title: d.hits(P)
889
+ title: d.hits(R)
889
890
  },
890
891
  selected: {
891
892
  hidden: A === 0,
892
893
  title: d.selected(A)
893
894
  },
894
895
  emptySearch: {
895
- hidden: x && (P > 0 || A > 0),
896
+ hidden: x && (R > 0 || A > 0),
896
897
  title: d.noResults
897
898
  }
898
899
  }),
899
- [M, x, d, P, A]
900
- ), R = H.useMemo(() => x ? rn([...D, ...f]) : [], [x, D, f]), N = H.useMemo(() => [..._ || [], ...f || []], [_, f]), h = H.useMemo(() => x ? P ? R : N : s, [x, s, P, R, N]);
900
+ [P, x, d, R, A]
901
+ ), $ = G.useMemo(() => x ? rn([...D, ...f]) : [], [x, D, f]), N = G.useMemo(() => [..._ || [], ...f || []], [_, f]), h = G.useMemo(() => x ? R ? $ : N : s, [x, s, R, $, N]);
901
902
  return {
902
903
  search: S,
903
904
  results: D,
904
- resultCount: P,
905
+ resultCount: R,
905
906
  hasQuery: x,
906
907
  items: h,
907
- groups: $
908
+ groups: M
908
909
  };
909
910
  }, et = ({
910
911
  searchable: e,
@@ -923,13 +924,13 @@ const Ae = W((e, o) => {
923
924
  open: v,
924
925
  scrollToTopOnOpen: x,
925
926
  autoFocusList: E,
926
- id: b
927
+ id: g
927
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";
929
930
  return d ? /* @__PURE__ */ a(
930
931
  Zt,
931
932
  {
932
- id: b,
933
+ id: g,
933
934
  search: j,
934
935
  announceNoResults: k,
935
936
  items: _,
@@ -950,7 +951,7 @@ const Ae = W((e, o) => {
950
951
  ) : /* @__PURE__ */ a(
951
952
  Je,
952
953
  {
953
- id: b,
954
+ id: g,
954
955
  search: j,
955
956
  announceNoResults: k,
956
957
  items: _,
@@ -984,7 +985,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
984
985
  if (o)
985
986
  return /* @__PURE__ */ a("div", { className: K(ae.icon, e), children: /* @__PURE__ */ a(se, { svgElement: Ae, loading: !0 }) });
986
987
  const r = Ee(n) ? "avatar" : Se(n) ? "avatarGroup" : (Re(n), "icon");
987
- return /* @__PURE__ */ I("div", { className: K(ae.media, e), "data-variant": r, children: [
988
+ return /* @__PURE__ */ O("div", { className: K(ae.media, e), "data-variant": r, children: [
988
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 }),
989
990
  t
990
991
  ] });
@@ -1032,7 +1033,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1032
1033
  highlightWords: s,
1033
1034
  loading: m,
1034
1035
  children: c
1035
- }) => /* @__PURE__ */ a("span", { className: K(pn.label, e), children: c || /* @__PURE__ */ I(xe, { children: [
1036
+ }) => /* @__PURE__ */ a("span", { className: K(pn.label, e), children: c || /* @__PURE__ */ O(xe, { children: [
1036
1037
  o && /* @__PURE__ */ a(me, { ...n, as: "span", loading: m, highlightWords: s, maxRows: 2, children: o }),
1037
1038
  t && /* @__PURE__ */ a(
1038
1039
  me,
@@ -1072,26 +1073,26 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1072
1073
  value: v,
1073
1074
  checked: x,
1074
1075
  icon: E,
1075
- label: b,
1076
+ label: g,
1076
1077
  badge: S,
1077
1078
  controls: j,
1078
1079
  title: k,
1079
1080
  description: _,
1080
1081
  highlightWords: f,
1081
1082
  count: D,
1082
- linkIcon: P = !1,
1083
+ linkIcon: R = !1,
1083
1084
  disabled: A,
1084
- selected: M,
1085
- active: $,
1086
- tabIndex: R = 0,
1085
+ selected: P,
1086
+ active: M,
1087
+ tabIndex: $ = 0,
1087
1088
  className: N,
1088
1089
  "data-testid": h,
1089
- ...g
1090
+ ...y
1090
1091
  }) => {
1091
- const u = typeof b == "function" ? b() : b, z = ht(g);
1092
+ const u = typeof g == "function" ? g() : g, z = ht(y);
1092
1093
  if (n === "checkbox" || n === "radio") {
1093
- const G = E || (x ? Qe : Lt);
1094
- return /* @__PURE__ */ I(
1094
+ const H = E || (x ? Qe : Lt);
1095
+ return /* @__PURE__ */ O(
1095
1096
  "label",
1096
1097
  {
1097
1098
  ...z,
@@ -1102,7 +1103,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1102
1103
  "data-size": l,
1103
1104
  "data-variant": p,
1104
1105
  "data-color": i,
1105
- "data-active": $,
1106
+ "data-active": M,
1106
1107
  role: n,
1107
1108
  "aria-disabled": A,
1108
1109
  "aria-checked": x,
@@ -1115,7 +1116,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1115
1116
  },
1116
1117
  onClick: s,
1117
1118
  onMouseEnter: d,
1118
- tabIndex: R,
1119
+ tabIndex: $,
1119
1120
  children: [
1120
1121
  /* @__PURE__ */ a(
1121
1122
  "input",
@@ -1130,13 +1131,13 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1130
1131
  tabIndex: -1
1131
1132
  }
1132
1133
  ),
1133
- /* @__PURE__ */ a(Te, { icon: G, className: q.media }),
1134
+ /* @__PURE__ */ a(Te, { icon: H, className: q.media }),
1134
1135
  /* @__PURE__ */ a(
1135
1136
  Le,
1136
1137
  {
1137
1138
  className: q.label,
1138
1139
  highlightWords: f,
1139
- title: /* @__PURE__ */ I(xe, { children: [
1140
+ title: /* @__PURE__ */ O(xe, { children: [
1140
1141
  k,
1141
1142
  " ",
1142
1143
  D && /* @__PURE__ */ a("i", { className: q.count, children: D })
@@ -1154,16 +1155,16 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1154
1155
  children: u
1155
1156
  }
1156
1157
  ),
1157
- /* @__PURE__ */ I(ke, { children: [
1158
- S && /* @__PURE__ */ a(re, { ...S }),
1158
+ /* @__PURE__ */ O(ke, { children: [
1159
+ S && /* @__PURE__ */ a(te, { ...S }),
1159
1160
  !A && j
1160
1161
  ] })
1161
1162
  ]
1162
1163
  }
1163
1164
  );
1164
1165
  }
1165
- const L = t || (r ? "a" : "button"), F = P && Rt;
1166
- return /* @__PURE__ */ I(
1166
+ const L = t || (r ? "a" : "button"), F = R && Rt;
1167
+ return /* @__PURE__ */ O(
1167
1168
  L,
1168
1169
  {
1169
1170
  href: r,
@@ -1174,19 +1175,19 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1174
1175
  "data-size": l,
1175
1176
  "data-variant": p,
1176
1177
  "data-color": i,
1177
- "data-active": $,
1178
+ "data-active": M,
1178
1179
  "aria-disabled": A,
1179
1180
  ...A ? { disabled: A } : {},
1180
- "aria-selected": M,
1181
- "data-selected": M,
1181
+ "aria-selected": P,
1182
+ "data-selected": P,
1182
1183
  "aria-label": k,
1183
1184
  "data-testid": h,
1184
- onKeyUp: (G) => {
1185
- A || (G.key === "Enter" && s?.(), c?.(G));
1185
+ onKeyUp: (H) => {
1186
+ A || (H.key === "Enter" && s?.(), c?.(H));
1186
1187
  },
1187
1188
  onClick: s,
1188
1189
  onMouseEnter: d,
1189
- tabIndex: A ? -1 : R ?? 0,
1190
+ tabIndex: A ? -1 : $ ?? 0,
1190
1191
  role: n === "menuItem" ? "menuitem" : n,
1191
1192
  ...z,
1192
1193
  children: [
@@ -1196,7 +1197,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1196
1197
  {
1197
1198
  className: q.label,
1198
1199
  highlightWords: f,
1199
- title: /* @__PURE__ */ I(xe, { children: [
1200
+ title: /* @__PURE__ */ O(xe, { children: [
1200
1201
  k,
1201
1202
  " ",
1202
1203
  D && /* @__PURE__ */ a("i", { className: q.count, children: D })
@@ -1213,15 +1214,15 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1213
1214
  children: u
1214
1215
  }
1215
1216
  ),
1216
- /* @__PURE__ */ I(ke, { children: [
1217
- S && /* @__PURE__ */ a(re, { ...S }),
1217
+ /* @__PURE__ */ O(ke, { children: [
1218
+ S && /* @__PURE__ */ a(te, { ...S }),
1218
1219
  !A && j,
1219
- P && /* @__PURE__ */ a(se, { svgElement: F, className: q.linkIcon })
1220
+ R && /* @__PURE__ */ a(se, { svgElement: F, className: q.linkIcon })
1220
1221
  ] })
1221
1222
  ]
1222
1223
  }
1223
1224
  );
1224
- }, xn = "_fieldContainer_zxswz_1", In = "_field_zxswz_1", On = "_input_zxswz_16", Nn = "_hiddenInput_zxswz_17", zn = "_icon_zxswz_50", Cn = "_clear_zxswz_68", En = "_clearButton_zxswz_81", Sn = "_autocomplete_zxswz_108", ee = {
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 = {
1225
1226
  fieldContainer: xn,
1226
1227
  field: In,
1227
1228
  input: On,
@@ -1245,57 +1246,57 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1245
1246
  minLength: i,
1246
1247
  ...w
1247
1248
  }) => {
1248
- const v = De(), [x, E] = oe(!1), b = w.id || `search-field-${v}`, S = `${b}-listbox`, [j, k] = oe(void 0), _ = "searchfield-clear-button-" + De(), f = le(() => !p || !c || typeof i == "number" && typeof c == "string" && c.length < i ? !1 : x, [p, x, i, c]), D = le(() => (p?.items ?? []).map((h) => ({
1249
+ 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) => ({
1249
1250
  ...h,
1250
1251
  onClick: () => {
1251
1252
  h.onClick?.(), E(!1);
1252
1253
  }
1253
- })), [p]), P = (h) => {
1254
+ })), [p]), R = (h) => {
1254
1255
  if (h.key === "Enter" && f) {
1255
1256
  p?.items?.[0]?.onClick?.(), E(!1);
1256
1257
  return;
1257
1258
  }
1258
1259
  if (h.key === "Escape" && f) {
1259
- h.preventDefault(), h.stopPropagation(), E(!1), p?.onClose(), document.getElementById(b)?.focus();
1260
+ h.preventDefault(), h.stopPropagation(), E(!1), p?.onClose(), document.getElementById(g)?.focus();
1260
1261
  return;
1261
1262
  }
1262
1263
  w.onKeyDown?.(h), E(!0);
1263
1264
  }, A = () => {
1264
1265
  E(!0);
1265
- }, M = (h) => {
1266
+ }, P = (h) => {
1266
1267
  if (!x) return;
1267
- const g = h.relatedTarget;
1268
- g && h.currentTarget.contains(g) || E(!1);
1269
- }, $ = (h) => {
1268
+ const y = h.relatedTarget;
1269
+ y && h.currentTarget.contains(y) || E(!1);
1270
+ }, M = (h) => {
1270
1271
  h.preventDefault();
1271
- }, R = (h) => {
1272
+ }, $ = (h) => {
1272
1273
  h.relatedTarget?.id === _ && k(void 0), w.onBlur?.(h);
1273
- }, N = /* @__PURE__ */ I(
1274
+ }, N = /* @__PURE__ */ O(
1274
1275
  Qt,
1275
1276
  {
1276
1277
  size: r,
1277
1278
  color: s,
1278
1279
  label: m,
1279
- className: K(ee.field, e),
1280
+ className: K(Z.field, e),
1280
1281
  "data-collapsible": o,
1281
- onBlurCapture: M,
1282
+ onBlurCapture: P,
1282
1283
  children: [
1283
- /* @__PURE__ */ a("span", { className: ee.hiddenInput, "aria-hidden": "true", children: c + " " }),
1284
+ /* @__PURE__ */ a("span", { className: Z.hiddenInput, "aria-hidden": "true", children: c + " " }),
1284
1285
  /* @__PURE__ */ a(
1285
1286
  ut,
1286
1287
  {
1287
1288
  ...w,
1288
- id: b,
1289
+ id: g,
1289
1290
  inputSize: 5,
1290
1291
  type: "search",
1291
1292
  value: c,
1292
- className: ee.input,
1293
+ className: Z.input,
1293
1294
  "data-collapsible": o,
1294
1295
  autoCapitalize: "off",
1295
1296
  autoComplete: "off",
1296
1297
  minLength: i,
1297
- onKeyDown: P,
1298
- onBlur: R,
1298
+ onKeyDown: R,
1299
+ onBlur: $,
1299
1300
  ...p && {
1300
1301
  role: "combobox",
1301
1302
  "aria-autocomplete": "list",
@@ -1307,8 +1308,8 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1307
1308
  }
1308
1309
  }
1309
1310
  ),
1310
- n ? /* @__PURE__ */ a(pt, { "aria-hidden": !0, className: ee.icon }) : /* @__PURE__ */ a(Bt, { "aria-hidden": !0, className: ee.icon }),
1311
- d && !!c && /* @__PURE__ */ a("span", { className: ee.clear, children: /* @__PURE__ */ a(
1311
+ 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(
1312
1313
  ve,
1313
1314
  {
1314
1315
  id: _,
@@ -1317,9 +1318,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1317
1318
  rounded: !0,
1318
1319
  icon: !0,
1319
1320
  variant: "tinted",
1320
- className: ee.clearButton,
1321
+ className: Z.clearButton,
1321
1322
  onClick: () => {
1322
- d?.(), document.getElementById(b)?.focus();
1323
+ d?.(), document.getElementById(g)?.focus();
1323
1324
  },
1324
1325
  "aria-label": l,
1325
1326
  "data-action": "clear-input",
@@ -1329,9 +1330,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1329
1330
  ]
1330
1331
  }
1331
1332
  );
1332
- return p ? /* @__PURE__ */ I("div", { className: ee.fieldContainer, children: [
1333
+ return p ? /* @__PURE__ */ O("div", { className: Z.fieldContainer, children: [
1333
1334
  N,
1334
- f && /* @__PURE__ */ a("div", { className: ee.autocomplete, "aria-hidden": !f, onMouseDown: $, children: /* @__PURE__ */ a(
1335
+ f && /* @__PURE__ */ a("div", { className: Z.autocomplete, "aria-hidden": !f, onMouseDown: M, children: /* @__PURE__ */ a(
1335
1336
  et,
1336
1337
  {
1337
1338
  ...p,
@@ -1363,7 +1364,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1363
1364
  ...d
1364
1365
  }) => {
1365
1366
  const l = c || "div", p = s ? "time" : "span";
1366
- return /* @__PURE__ */ I(l, { ...d, className: pe.byline, "data-color": o, "data-size": n, children: [
1367
+ return /* @__PURE__ */ O(l, { ...d, className: pe.byline, "data-color": o, "data-size": n, children: [
1367
1368
  (r || t) && /* @__PURE__ */ a(ue, { variant: "circle", className: pe.avatar, loading: e, children: r ? /* @__PURE__ */ a(be, { ...r, size: n, className: pe.avatarGroup }) : t && /* @__PURE__ */ a(je, { ...t, size: n, className: pe.avatar }) }),
1368
1369
  /* @__PURE__ */ a(p, { "data-size": n, dateTime: s, className: pe.label, children: /* @__PURE__ */ a(ue, { loading: e, children: m }) })
1369
1370
  ] });
@@ -1407,37 +1408,37 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1407
1408
  color: v,
1408
1409
  onSubmit: x,
1409
1410
  activeDescendantId: E,
1410
- useFixedPosition: b = !1,
1411
+ useFixedPosition: g = !1,
1411
1412
  expanded: S = !1
1412
1413
  }) => {
1413
1414
  const j = J(null), k = J(null), _ = J(i);
1414
- U(() => {
1415
+ W(() => {
1415
1416
  _.current = i;
1416
1417
  }, [i]);
1417
1418
  const [f, D] = oe({
1418
1419
  yDir: r.includes("top") ? "top" : "bottom",
1419
1420
  xDir: r.includes("right") ? "right" : "left",
1420
1421
  maxHeight: 300
1421
- }), P = qe(() => {
1422
+ }), R = qe(() => {
1422
1423
  if (i && j.current && k.current) {
1423
- const $ = j.current.getBoundingClientRect(), R = k.current.getBoundingClientRect(), N = window.innerHeight, h = window.innerWidth, g = 16, u = N - $.bottom, z = $.top, L = h - $.right - R.width, F = u < 250 && z > u, G = F ? "top" : "bottom", V = (F ? z : u) - g, y = L < g ? "right" : "left";
1424
- D((O) => ({
1425
- ...O,
1426
- yDir: G,
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,
1427
1428
  maxHeight: V,
1428
- xDir: y,
1429
- triggerRect: b ? $ : void 0
1429
+ xDir: b,
1430
+ triggerRect: g ? M : void 0
1430
1431
  }));
1431
1432
  }
1432
- }, [i, b]);
1433
- Ce(() => (P(), window.addEventListener("resize", P), b && window.addEventListener("scroll", P, !0), () => {
1434
- window.removeEventListener("resize", P), b && window.removeEventListener("scroll", P, !0);
1435
- }), [P, b]), U(() => {
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(() => {
1436
1437
  if (!i) return;
1437
- const $ = requestAnimationFrame(() => {
1438
- const R = k.current;
1439
- if (!R) return;
1440
- const N = R.querySelector(
1438
+ const M = requestAnimationFrame(() => {
1439
+ const $ = k.current;
1440
+ if (!$) return;
1441
+ const N = $.querySelector(
1441
1442
  'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
1442
1443
  );
1443
1444
  if (N) {
@@ -1449,43 +1450,43 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1449
1450
  }
1450
1451
  return;
1451
1452
  }
1452
- R.focus?.({ preventScroll: !0 });
1453
+ $.focus?.({ preventScroll: !0 });
1453
1454
  });
1454
- return () => cancelAnimationFrame($);
1455
- }, [i]), U(() => {
1456
- const $ = (N) => {
1455
+ return () => cancelAnimationFrame(M);
1456
+ }, [i]), W(() => {
1457
+ const M = (N) => {
1457
1458
  N.key === "Escape" && (N.preventDefault(), w());
1458
- }, R = (N) => {
1459
- const h = N.target, g = j.current?.contains(h), u = k.current?.contains(h);
1460
- !g && !u && w();
1459
+ }, $ = (N) => {
1460
+ const h = N.target, y = j.current?.contains(h), u = k.current?.contains(h);
1461
+ !y && !u && w();
1461
1462
  };
1462
- return i && (document.addEventListener("mousedown", R), document.addEventListener("keydown", $)), () => {
1463
- document.removeEventListener("mousedown", R), document.removeEventListener("keydown", $);
1463
+ return i && (document.addEventListener("mousedown", $), document.addEventListener("keydown", M)), () => {
1464
+ document.removeEventListener("mousedown", $), document.removeEventListener("keydown", M);
1464
1465
  };
1465
- }, [i, w]), U(() => {
1466
+ }, [i, w]), W(() => {
1466
1467
  if (!i) return;
1467
- const $ = k.current;
1468
- if (!$) return;
1469
- const R = (h) => {
1468
+ const M = k.current;
1469
+ if (!M) return;
1470
+ const $ = (h) => {
1470
1471
  if (!_.current)
1471
1472
  return;
1472
- const g = h.target;
1473
- g && !$.contains(g) && Hn($);
1473
+ const y = h.target;
1474
+ y && !M.contains(y) && Hn(M);
1474
1475
  }, N = (h) => {
1475
1476
  if (h.key !== "Tab") return;
1476
- const g = nt($);
1477
- if (g.length === 0) {
1478
- h.preventDefault(), $.focus?.({ preventScroll: !0 });
1477
+ const y = nt(M);
1478
+ if (y.length === 0) {
1479
+ h.preventDefault(), M.focus?.({ preventScroll: !0 });
1479
1480
  return;
1480
1481
  }
1481
- const u = g[0], z = g[g.length - 1], L = document.activeElement;
1482
+ const u = y[0], z = y[y.length - 1], L = document.activeElement;
1482
1483
  h.shiftKey ? L === u && (h.preventDefault(), z.focus({ preventScroll: !0 })) : L === z && (h.preventDefault(), u.focus({ preventScroll: !0 }));
1483
1484
  };
1484
- return document.addEventListener("focusin", R), document.addEventListener("keydown", N), () => {
1485
- document.removeEventListener("focusin", R), document.removeEventListener("keydown", N);
1485
+ return document.addEventListener("focusin", $), document.addEventListener("keydown", N), () => {
1486
+ document.removeEventListener("focusin", $), document.removeEventListener("keydown", N);
1486
1487
  };
1487
1488
  }, [i]);
1488
- const A = b && f.triggerRect ? {
1489
+ const A = g && f.triggerRect ? {
1489
1490
  position: "fixed",
1490
1491
  zIndex: 1e3,
1491
1492
  width: "max-content",
@@ -1501,7 +1502,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1501
1502
  overflowY: "auto",
1502
1503
  [f.xDir]: 0,
1503
1504
  [f.yDir === "bottom" ? "top" : "bottom"]: "100%"
1504
- }, M = /* @__PURE__ */ I(
1505
+ }, P = /* @__PURE__ */ O(
1505
1506
  "div",
1506
1507
  {
1507
1508
  ref: k,
@@ -1517,7 +1518,7 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1517
1518
  "aria-modal": s === "drawer-dropdown" ? !0 : void 0,
1518
1519
  "aria-activedescendant": E,
1519
1520
  children: [
1520
- /* @__PURE__ */ I("header", { className: ce.header, children: [
1521
+ /* @__PURE__ */ O("header", { className: ce.header, children: [
1521
1522
  /* @__PURE__ */ a("h2", { className: ce.title, children: m }),
1522
1523
  /* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: w, "aria-label": c, children: /* @__PURE__ */ a(Ae, {}) })
1523
1524
  ] }),
@@ -1526,11 +1527,11 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1526
1527
  ]
1527
1528
  }
1528
1529
  );
1529
- return /* @__PURE__ */ I(xe, { children: [
1530
+ return /* @__PURE__ */ O(xe, { children: [
1530
1531
  t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !i }),
1531
- /* @__PURE__ */ I("div", { id: e + "-root", ref: j, style: { position: "relative", display: "inline-block" }, children: [
1532
+ /* @__PURE__ */ O("div", { id: e + "-root", ref: j, style: { position: "relative", display: "inline-block" }, children: [
1532
1533
  l,
1533
- b ? it(M, document.body) : M
1534
+ g ? it(P, document.body) : P
1534
1535
  ] })
1535
1536
  ] });
1536
1537
  }, qn = "_section_1v20z_1", Kn = "_header_1v20z_7", Vn = "_list_1v20z_13", we = {
@@ -1546,14 +1547,14 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
1546
1547
  keyboardEvents: !1,
1547
1548
  sortGroupBy: r
1548
1549
  });
1549
- return /* @__PURE__ */ I("section", { className: we.section, "aria-busy": m, children: [
1550
- e || o ? /* @__PURE__ */ I("header", { className: we.header, children: [
1550
+ return /* @__PURE__ */ O("section", { className: we.section, "aria-busy": m, children: [
1551
+ e || o ? /* @__PURE__ */ O("header", { className: we.header, children: [
1551
1552
  e && /* @__PURE__ */ a(me, { as: "h1", size: "lg", children: e }),
1552
1553
  o && /* @__PURE__ */ a(Ke, { as: "p", size: "sm", variant: "subtle", className: we.description, children: o })
1553
1554
  ] }) : null,
1554
1555
  c?.map((d, l) => {
1555
1556
  const p = d.props || {};
1556
- return /* @__PURE__ */ I(He, { children: [
1557
+ return /* @__PURE__ */ O(He, { children: [
1557
1558
  p?.title && /* @__PURE__ */ a(me, { as: "h2", size: "lg", children: p.title }),
1558
1559
  /* @__PURE__ */ a("ul", { className: we.list, children: d?.items.map((i, w) => {
1559
1560
  const v = i.props || {};
@@ -1593,61 +1594,63 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1593
1594
  grouped: v = !1,
1594
1595
  updatedAt: x,
1595
1596
  updatedAtLabel: E,
1596
- archived: b,
1597
+ archived: g,
1597
1598
  archivedAt: S,
1598
1599
  archivedAtLabel: j,
1599
1600
  trashed: k,
1600
1601
  trashedAt: _,
1601
1602
  trashedAtLabel: f,
1602
1603
  badge: D,
1603
- dueAt: P,
1604
+ dueAt: R,
1604
1605
  dueAtLabel: A,
1605
- unread: M,
1606
- unreadLabel: $ = "Ulest",
1607
- seenByLog: R,
1608
- draftsLabel: N,
1609
- sentCount: h,
1610
- receivedCount: g,
1611
- attachmentsCount: u,
1612
- attachmentsLabel: z,
1613
- tooltips: L = {},
1614
- title: F,
1615
- description: G,
1616
- summary: V,
1617
- highlightWords: Q,
1618
- id: y,
1619
- ...O
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,
1618
+ description: ne,
1619
+ summary: b,
1620
+ highlightWords: I,
1621
+ id: T,
1622
+ ...U
1620
1623
  }) => {
1621
1624
  const B = m ? "select" : n;
1622
- return /* @__PURE__ */ I(
1625
+ return /* @__PURE__ */ O(
1623
1626
  _t,
1624
1627
  {
1625
1628
  as: "li",
1626
- id: y,
1629
+ id: T,
1627
1630
  className: X.item,
1628
1631
  size: o,
1629
1632
  color: t,
1630
1633
  variant: B,
1631
- "data-unread": M ? "true" : "false",
1634
+ "data-unread": P ? "true" : "false",
1632
1635
  "data-selected": c,
1633
1636
  "data-trashed": k,
1634
- "data-archived": b,
1637
+ "data-archived": g,
1635
1638
  "data-loading": r,
1636
1639
  children: [
1637
- /* @__PURE__ */ a(xt, { ...O, className: X.link, as: e, children: /* @__PURE__ */ I("div", { className: X.border, children: [
1638
- /* @__PURE__ */ I("header", { className: X.header, children: [
1639
- /* @__PURE__ */ I(
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(
1640
1643
  me,
1641
1644
  {
1642
1645
  as: "h2",
1643
- highlightWords: Q,
1644
- weight: M ? "bold" : "normal",
1646
+ highlightWords: I,
1647
+ weight: P ? "bold" : "normal",
1645
1648
  loading: r,
1646
1649
  maxRows: 2,
1647
1650
  className: X.title,
1648
1651
  children: [
1649
- F,
1650
- M && /* @__PURE__ */ a(re, { label: $, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } })
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" } })
1651
1654
  ]
1652
1655
  }
1653
1656
  ),
@@ -1662,16 +1665,16 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1662
1665
  grouped: v
1663
1666
  }
1664
1667
  ),
1665
- V && /* @__PURE__ */ a(
1668
+ b && /* @__PURE__ */ a(
1666
1669
  me,
1667
1670
  {
1668
1671
  as: "h3",
1669
- highlightWords: Q,
1672
+ highlightWords: I,
1670
1673
  weight: "normal",
1671
1674
  className: X.summary,
1672
1675
  loading: r,
1673
1676
  maxRows: 2,
1674
- children: V
1677
+ children: b
1675
1678
  }
1676
1679
  )
1677
1680
  ] }),
@@ -1683,23 +1686,23 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
1683
1686
  badge: D,
1684
1687
  status: d,
1685
1688
  extendedStatusLabel: l,
1686
- draftsLabel: N,
1687
- sentCount: h,
1688
- receivedCount: g,
1689
+ draftsLabel: y,
1690
+ sentCount: u,
1691
+ receivedCount: z,
1689
1692
  updatedAt: x,
1690
1693
  updatedAtLabel: E,
1691
1694
  archivedAt: S,
1692
1695
  archivedAtLabel: j,
1693
1696
  trashedAt: _,
1694
1697
  trashedAtLabel: f,
1695
- dueAt: P,
1698
+ dueAt: R,
1696
1699
  dueAtLabel: A,
1697
- attachmentsCount: u,
1698
- attachmentsLabel: z,
1699
- tooltips: L
1700
+ attachmentsCount: L,
1701
+ attachmentsLabel: F,
1702
+ tooltips: H
1700
1703
  }
1701
1704
  ),
1702
- R && L?.seenBy ? /* @__PURE__ */ a($e, { placement: "bottom", content: L?.seenBy, children: /* @__PURE__ */ a("span", { className: X.seenBy, children: /* @__PURE__ */ a(be, { items: R.items }) }) }) : R && /* @__PURE__ */ a(be, { items: R.items, className: X.seenBy })
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 })
1703
1706
  ] }) }),
1704
1707
  /* @__PURE__ */ a(ke, { className: X.controls, children: s })
1705
1708
  ]
@@ -1725,26 +1728,26 @@ const rr = ({
1725
1728
  sentCount: v = 0,
1726
1729
  receivedCount: x = 0,
1727
1730
  attachmentsCount: E = 0,
1728
- attachmentsLabel: b,
1731
+ attachmentsLabel: g,
1729
1732
  transmissionsLabel: S,
1730
1733
  activityLog: j,
1731
1734
  extendedStatusLabel: k,
1732
1735
  tooltips: _ = {}
1733
- }) => /* @__PURE__ */ I(It, { className: e, size: "xs", children: [
1736
+ }) => /* @__PURE__ */ O(It, { className: e, size: "xs", children: [
1734
1737
  n && /* @__PURE__ */ a(mr, { tooltip: _.status, loading: o, ...n }),
1735
- k && /* @__PURE__ */ a(re, { tooltip: _.extendedStatus, variant: "outline", children: k }),
1736
- w && /* @__PURE__ */ a(re, { tooltip: _.drafts, variant: "dotted", children: w }),
1737
- r && /* @__PURE__ */ I(te, { tooltip: _.updatedAt, loading: o, datetime: r, size: "xs", children: [
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: [
1738
1741
  /* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
1739
1742
  s
1740
1743
  ] }),
1741
- m && c && /* @__PURE__ */ a(te, { tooltip: _.dueAt, loading: o, datetime: m, size: "xs", icon: gt, children: c }),
1742
- E > 0 && /* @__PURE__ */ a(te, { tooltip: _.attachments, loading: o, size: "xs", icon: yt, children: b || E }),
1743
- S && /* @__PURE__ */ a(te, { tooltip: _.transmissions, loading: o, size: "xs", icon: At, children: S }),
1744
- v > 0 && /* @__PURE__ */ a(te, { tooltip: _.sent, size: "xs", icon: Qe, children: v }),
1745
- x > 0 && /* @__PURE__ */ a(te, { tooltip: _.received, size: "xs", icon: Et, children: x }),
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 }),
1746
1749
  i && /* @__PURE__ */ a(
1747
- te,
1750
+ ee,
1748
1751
  {
1749
1752
  variant: "tinted",
1750
1753
  color: "neutral",
@@ -1756,7 +1759,7 @@ const rr = ({
1756
1759
  children: i
1757
1760
  }
1758
1761
  ) || l && /* @__PURE__ */ a(
1759
- te,
1762
+ ee,
1760
1763
  {
1761
1764
  variant: "tinted",
1762
1765
  color: "neutral",
@@ -1769,7 +1772,7 @@ const rr = ({
1769
1772
  }
1770
1773
  ),
1771
1774
  j && /* @__PURE__ */ a(
1772
- te,
1775
+ ee,
1773
1776
  {
1774
1777
  tooltip: _.activityLog,
1775
1778
  loading: o,
@@ -1787,7 +1790,7 @@ const rr = ({
1787
1790
  grouped: t = !1,
1788
1791
  loading: r,
1789
1792
  size: s = "xs"
1790
- }) => !e && !o ? null : /* @__PURE__ */ I($n, { loading: r, size: s, avatar: e, avatarGroup: !r && t && e && o ? {
1793
+ }) => !e && !o ? null : /* @__PURE__ */ O($n, { loading: r, size: s, avatar: e, avatarGroup: !r && t && e && o ? {
1791
1794
  items: [o, e]
1792
1795
  } : void 0, children: [
1793
1796
  /* @__PURE__ */ a("strong", { children: e?.name }),
@@ -1801,13 +1804,13 @@ const rr = ({
1801
1804
  function ir(e) {
1802
1805
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || Ge(e);
1803
1806
  }
1804
- const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ I("span", { className: de.media, "data-size": e, children: [
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: [
1805
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 }),
1806
1809
  n && /* @__PURE__ */ a(Ot, { value: n, className: de.icon })
1807
1810
  ] }), cr = "_item_ugak2_1", dr = "_label_ugak2_53", _e = {
1808
1811
  item: cr,
1809
1812
  label: dr
1810
- }, te = ({
1813
+ }, ee = ({
1811
1814
  as: e,
1812
1815
  loading: o,
1813
1816
  className: n,
@@ -1831,7 +1834,7 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
1831
1834
  dateTime: l,
1832
1835
  className: K(_e.item, n),
1833
1836
  ...i,
1834
- children: /* @__PURE__ */ I(ue, { loading: o, children: [
1837
+ children: /* @__PURE__ */ O(ue, { loading: o, children: [
1835
1838
  !o && c && /* @__PURE__ */ a(Fe, { size: r, icon: c }),
1836
1839
  /* @__PURE__ */ a("span", { className: _e.label, children: d })
1837
1840
  ] })
@@ -1845,7 +1848,7 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
1845
1848
  dateTime: l,
1846
1849
  className: K(_e.item, n),
1847
1850
  ...i,
1848
- children: /* @__PURE__ */ I(ue, { loading: o, children: [
1851
+ children: /* @__PURE__ */ O(ue, { loading: o, children: [
1849
1852
  !o && c && /* @__PURE__ */ a(Fe, { size: r, icon: c }),
1850
1853
  /* @__PURE__ */ a("span", { className: _e.label, children: d })
1851
1854
  ] })
@@ -1858,19 +1861,19 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1858
1861
  return null;
1859
1862
  switch (o) {
1860
1863
  case "draft":
1861
- return /* @__PURE__ */ a(re, { tooltip: t, variant: "dotted", children: n || o });
1864
+ return /* @__PURE__ */ a(te, { tooltip: t, variant: "dotted", children: n || o });
1862
1865
  case "requires-attention":
1863
- return /* @__PURE__ */ a(re, { tooltip: t, variant: "strong", children: n || o });
1866
+ return /* @__PURE__ */ a(te, { tooltip: t, variant: "strong", children: n || o });
1864
1867
  case "not-applicable":
1865
1868
  return null;
1866
1869
  default:
1867
- return /* @__PURE__ */ a(re, { tooltip: t, variant: "outline", children: n || o });
1870
+ return /* @__PURE__ */ a(te, { tooltip: t, variant: "outline", children: n || o });
1868
1871
  }
1869
1872
  }, fr = "_menu_16mue_4", pr = "_button_16mue_12", hr = "_label_16mue_16", he = {
1870
1873
  menu: fr,
1871
1874
  button: pr,
1872
1875
  label: hr
1873
- }, Xr = Oe(
1876
+ }, Jr = Oe(
1874
1877
  ({
1875
1878
  disabled: e,
1876
1879
  label: o = "Label",
@@ -1894,7 +1897,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1894
1897
  })),
1895
1898
  [r, i]
1896
1899
  );
1897
- return e ? /* @__PURE__ */ I(ve, { className: he.button, variant: n, disabled: !0, children: [
1900
+ return e ? /* @__PURE__ */ O(ve, { className: he.button, variant: n, disabled: !0, children: [
1898
1901
  /* @__PURE__ */ a("span", { className: he.label, children: o }),
1899
1902
  /* @__PURE__ */ a(Be, { "aria-hidden": "true", focusable: "false" })
1900
1903
  ] }) : /* @__PURE__ */ a("span", { className: he.menu, children: /* @__PURE__ */ a(
@@ -1904,7 +1907,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1904
1907
  variant: "drawer-dropdown",
1905
1908
  title: t,
1906
1909
  size: s,
1907
- trigger: /* @__PURE__ */ I(
1910
+ trigger: /* @__PURE__ */ O(
1908
1911
  ve,
1909
1912
  {
1910
1913
  className: he.button,
@@ -1938,7 +1941,7 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1938
1941
  }
1939
1942
  ) });
1940
1943
  }
1941
- ), Jr = Oe(
1944
+ ), Zr = Oe(
1942
1945
  ({
1943
1946
  value: e,
1944
1947
  name: o,
@@ -1975,15 +1978,15 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1975
1978
  )
1976
1979
  );
1977
1980
  export {
1978
- re as B,
1981
+ te as B,
1979
1982
  Un as D,
1980
1983
  Qt as F,
1981
1984
  me as H,
1982
1985
  se as I,
1983
1986
  et as M,
1984
- Qr as R,
1987
+ Xr as R,
1985
1988
  Pe as S,
1986
- Jr as T,
1989
+ Zr as T,
1987
1990
  Zt as V,
1988
1991
  $n as a,
1989
1992
  rt as b,
@@ -1999,8 +2002,8 @@ export {
1999
2002
  Je as l,
2000
2003
  Xe as m,
2001
2004
  Fe as n,
2002
- te as o,
2003
- Xr as p,
2005
+ ee as o,
2006
+ Jr as p,
2004
2007
  Bt as q,
2005
2008
  Qe as r,
2006
2009
  Ae as s,