@altinn/altinn-components 0.68.4 → 0.68.6

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 (190) hide show
  1. package/dist/{ToolbarSearch-DdsPkd-G.js → ToolbarSearch-L12-MUZz.js} +125 -129
  2. package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
  3. package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
  4. package/dist/components/Account/AccountList.js +1 -1
  5. package/dist/components/Account/AccountListItem.js +1 -1
  6. package/dist/components/Account/AccountListItemControls.js +1 -1
  7. package/dist/components/Account/AccountListItemDetails.js +1 -1
  8. package/dist/components/Account/AccountListVirtual.js +1 -1
  9. package/dist/components/Account/AccountMenu.js +1 -1
  10. package/dist/components/Account/AccountNotificationSettings.js +1 -1
  11. package/dist/components/Account/AccountOrganization.js +1 -1
  12. package/dist/components/AccountSelector/AccountSelector.js +1 -1
  13. package/dist/components/ActivityLog/ActivityLog.js +1 -1
  14. package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
  15. package/dist/components/ActivityLog/ActivityLogSegment.js +1 -1
  16. package/dist/components/Alert/Alert.js +1 -1
  17. package/dist/components/Article/Article.js +1 -1
  18. package/dist/components/Article/ArticleContact.js +1 -1
  19. package/dist/components/Article/ArticleHeader.js +1 -1
  20. package/dist/components/Attachment/AttachmentLink.js +1 -1
  21. package/dist/components/AuthEvidence/AuthEvidence.js +1 -1
  22. package/dist/components/AuthEvidence/AuthEvidenceItem.js +1 -1
  23. package/dist/components/AuthEvidence/AuthEvidenceOwner.js +1 -1
  24. package/dist/components/AuthEvidence/AuthEvidenceParent.js +1 -1
  25. package/dist/components/AuthEvidence/AuthEvidenceService.js +1 -1
  26. package/dist/components/Badge/Badge.js +1 -1
  27. package/dist/components/Badge/index.js +1 -1
  28. package/dist/components/Banner/Banner.js +1 -1
  29. package/dist/components/Bookmarks/BookmarkModal.js +1 -1
  30. package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
  31. package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +1 -1
  32. package/dist/components/Bookmarks/BookmarkSettingsList.js +1 -1
  33. package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
  34. package/dist/components/Bulk/BulkHeader.js +1 -1
  35. package/dist/components/Button/ButtonIcon.js +1 -1
  36. package/dist/components/Button/ComboButton.js +1 -1
  37. package/dist/components/Button/FloatingActionButton.js +1 -1
  38. package/dist/components/Button/IconButton.js +1 -1
  39. package/dist/components/Byline/Byline.js +1 -1
  40. package/dist/components/Byline/index.js +1 -1
  41. package/dist/components/ContextMenu/ContextMenu.js +1 -1
  42. package/dist/components/Dashboard/DashboardCard.js +1 -1
  43. package/dist/components/Dashboard/DashboardHeader.js +1 -1
  44. package/dist/components/Datepicker/Datepicker.js +1 -1
  45. package/dist/components/Datepicker/DatepickerHeader.js +1 -1
  46. package/dist/components/Datepicker/DatepickerTable.js +1 -1
  47. package/dist/components/Dialog/Dialog.js +1 -1
  48. package/dist/components/Dialog/DialogActions.js +1 -1
  49. package/dist/components/Dialog/DialogActivityLog.js +1 -1
  50. package/dist/components/Dialog/DialogAttachments.js +1 -1
  51. package/dist/components/Dialog/DialogBody.js +1 -1
  52. package/dist/components/Dialog/DialogByline.js +1 -1
  53. package/dist/components/Dialog/DialogContact.js +1 -1
  54. package/dist/components/Dialog/DialogHeader.js +1 -1
  55. package/dist/components/Dialog/DialogHistory.js +1 -1
  56. package/dist/components/Dialog/DialogHistoryItem.js +1 -1
  57. package/dist/components/Dialog/DialogHistorySegment.js +1 -1
  58. package/dist/components/Dialog/DialogLayout.js +1 -1
  59. package/dist/components/Dialog/DialogList.js +1 -1
  60. package/dist/components/Dialog/DialogListItem.js +1 -1
  61. package/dist/components/Dialog/DialogMetadata.js +1 -1
  62. package/dist/components/Dialog/DialogSection.js +1 -1
  63. package/dist/components/Dialog/DialogSeenBy.js +1 -1
  64. package/dist/components/Dialog/DialogSelect.js +1 -1
  65. package/dist/components/Dialog/DialogStatus.js +1 -1
  66. package/dist/components/Dialog/DialogTabs.js +1 -1
  67. package/dist/components/Dialog/SeenByLog.js +1 -1
  68. package/dist/components/Dialog/SeenByLogButton.js +1 -1
  69. package/dist/components/Dialog/SeenByLogItem.js +1 -1
  70. package/dist/components/Dialog/index.js +1 -1
  71. package/dist/components/Dropdown/DrawerButton.js +1 -1
  72. package/dist/components/Dropdown/DrawerHeader.js +1 -1
  73. package/dist/components/Dropdown/Dropdown.js +1 -1
  74. package/dist/components/Dropdown/DropdownBase.js +1 -1
  75. package/dist/components/Dropdown/FloatingDropdown.js +1 -1
  76. package/dist/components/Dropdown/index.js +1 -1
  77. package/dist/components/Forms/Checkbox.js +1 -1
  78. package/dist/components/Forms/CheckboxOptions.js +1 -1
  79. package/dist/components/Forms/FieldBase.js +1 -1
  80. package/dist/components/Forms/FieldsetBase.js +1 -1
  81. package/dist/components/Forms/Radio.js +1 -1
  82. package/dist/components/Forms/RadioOptions.js +1 -1
  83. package/dist/components/Forms/SearchField.js +1 -1
  84. package/dist/components/Forms/SelectField.js +1 -1
  85. package/dist/components/Forms/Switch.js +1 -1
  86. package/dist/components/Forms/SwitchOptions.js +1 -1
  87. package/dist/components/Forms/TextField.js +1 -1
  88. package/dist/components/Forms/TextFieldDropdown.js +1 -1
  89. package/dist/components/Forms/TextareaField.js +1 -1
  90. package/dist/components/Forms/index.js +1 -1
  91. package/dist/components/GlobalHeader/GlobalAccountButton.js +1 -1
  92. package/dist/components/GlobalHeader/GlobalHeader.js +1 -1
  93. package/dist/components/GlobalHeader/GlobalMenuButton.js +1 -1
  94. package/dist/components/GlobalHeader/HeaderDrawer.js +1 -1
  95. package/dist/components/GlobalHeader/HeaderDropdown.js +1 -1
  96. package/dist/components/GlobalHeader/HeaderLogo.js +1 -1
  97. package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
  98. package/dist/components/GlobalMenu/LocaleSwitcher.js +1 -1
  99. package/dist/components/GlobalMenu/LogoutButton.js +1 -1
  100. package/dist/components/Icon/Icon.js +1 -1
  101. package/dist/components/Icon/index.js +1 -1
  102. package/dist/components/Inbox/InboxPage.js +1 -1
  103. package/dist/components/InboxSearch/InboxSearch.js +1 -1
  104. package/dist/components/Item/ItemLabel.js +1 -1
  105. package/dist/components/Item/ItemMedia.js +1 -1
  106. package/dist/components/Item/ItemSelect.js +1 -1
  107. package/dist/components/Item/index.js +1 -1
  108. package/dist/components/Layout/Layout.js +1 -1
  109. package/dist/components/List/List.js +1 -1
  110. package/dist/components/List/ListBase.js +1 -1
  111. package/dist/components/List/ListItemHeader.js +1 -1
  112. package/dist/components/List/ListItemIcon.js +1 -1
  113. package/dist/components/List/ListItemLabel.js +1 -1
  114. package/dist/components/Menu/Menu.js +1 -1
  115. package/dist/components/Menu/MenuItem.js +1 -1
  116. package/dist/components/Menu/MenuItems.js +1 -1
  117. package/dist/components/Menu/MenuListSearch.js +1 -1
  118. package/dist/components/Menu/MenuOption.js +1 -1
  119. package/dist/components/Menu/TabMenu.js +1 -1
  120. package/dist/components/Menu/VirtualizedMenuItems.js +1 -1
  121. package/dist/components/Menu/index.js +1 -1
  122. package/dist/components/Menu/useDropdownMenuController.js +34 -25
  123. package/dist/components/Menu/useMenuSearch.js +1 -1
  124. package/dist/components/Menu/useMenuVirtualization.js +31 -28
  125. package/dist/components/Metadata/MetaItem.js +1 -1
  126. package/dist/components/Metadata/MetaItemIcon.js +1 -1
  127. package/dist/components/Metadata/MetaTimestamp.js +1 -1
  128. package/dist/components/Metadata/Metadata.js +1 -1
  129. package/dist/components/Metadata/index.js +1 -1
  130. package/dist/components/Modal/Modal.js +1 -1
  131. package/dist/components/Modal/ModalBase.js +1 -1
  132. package/dist/components/Modal/ModalHeader.js +1 -1
  133. package/dist/components/Modal/ModalIcon.js +1 -1
  134. package/dist/components/Notifications/NotificationItem.js +1 -1
  135. package/dist/components/Notifications/NotificationItemBase.js +1 -1
  136. package/dist/components/Notifications/NotificationItemControls.js +1 -1
  137. package/dist/components/Notifications/NotificationItemIcon.js +1 -1
  138. package/dist/components/Page/AccordionSection.js +1 -1
  139. package/dist/components/Page/ContactButtons.js +1 -1
  140. package/dist/components/Page/ContactSection.js +1 -1
  141. package/dist/components/Page/PageMenu.js +1 -1
  142. package/dist/components/Page/PageNav.js +1 -1
  143. package/dist/components/Page/Section.js +1 -1
  144. package/dist/components/Pagination/Pagination.js +1 -1
  145. package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
  146. package/dist/components/RootProvider/RootProvider.js +1 -1
  147. package/dist/components/RootProvider/index.js +1 -1
  148. package/dist/components/Search/SearchItem.js +1 -1
  149. package/dist/components/Searchbar/Autocomplete.js +1 -1
  150. package/dist/components/Searchbar/AutocompleteItem.js +1 -1
  151. package/dist/components/Searchbar/Searchbar.js +1 -1
  152. package/dist/components/Searchbar/SearchbarField.js +1 -1
  153. package/dist/components/Settings/SettingsItem.js +1 -1
  154. package/dist/components/Settings/SettingsItemBase.js +1 -1
  155. package/dist/components/Settings/SettingsList.js +1 -1
  156. package/dist/components/Settings/SettingsListVirtual.js +1 -1
  157. package/dist/components/Settings/SettingsModal.js +1 -1
  158. package/dist/components/Settings/SettingsSection.js +1 -1
  159. package/dist/components/Settings/UsedByLog.js +1 -1
  160. package/dist/components/Settings/UsedByLogItem.js +1 -1
  161. package/dist/components/Snackbar/SnackbarItem.js +1 -1
  162. package/dist/components/Timeline/Timeline.js +1 -1
  163. package/dist/components/Timeline/TimelineActivity.js +1 -1
  164. package/dist/components/Timeline/TimelineBase.js +1 -1
  165. package/dist/components/Timeline/TimelineFooter.js +1 -1
  166. package/dist/components/Timeline/TimelineHeader.js +1 -1
  167. package/dist/components/Timeline/TimelineIcon.js +1 -1
  168. package/dist/components/Timeline/TimelineSection.js +1 -1
  169. package/dist/components/Timeline/TimelineSegment.js +1 -1
  170. package/dist/components/Toolbar/DatepickerFilter.js +1 -1
  171. package/dist/components/Toolbar/SelectDateFilter.js +1 -1
  172. package/dist/components/Toolbar/Toolbar.js +1 -1
  173. package/dist/components/Toolbar/ToolbarFilter.js +1 -1
  174. package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
  175. package/dist/components/Toolbar/ToolbarFilterButton.js +1 -1
  176. package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
  177. package/dist/components/Toolbar/ToolbarMenu.js +1 -1
  178. package/dist/components/Toolbar/ToolbarSearch.js +1 -1
  179. package/dist/components/Toolbar/index.js +1 -1
  180. package/dist/components/Transmission/Transmission.js +1 -1
  181. package/dist/components/Transmission/TransmissionList.js +1 -1
  182. package/dist/components/Transmission/TransmissionType.js +1 -1
  183. package/dist/components/Typography/Heading.js +1 -1
  184. package/dist/components/Typography/index.js +1 -1
  185. package/dist/components/UserListItem/UserListItem.js +1 -1
  186. package/dist/components/index.js +1 -1
  187. package/dist/hooks/useAccountSelector.js +1 -1
  188. package/dist/index.js +1 -1
  189. package/dist/types/lib/components/Dialog/DialogList.stories.d.ts +1 -0
  190. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as w, Fragment as pe } from "react/jsx-runtime";
2
+ import { jsx as a, jsxs as _, Fragment as pe } from "react/jsx-runtime";
3
3
  import * as G from "react";
4
4
  import C, { forwardRef as Y, useRef as ee, useState as se, useMemo as de, useEffect as W, Fragment as qe, useLayoutEffect as Se, createContext as lt, useContext as ct, isValidElement as Ke, useId as Te, useCallback as Ve, memo as ke, createElement as dt } from "react";
5
5
  import "./tooltip-Caqi75cv.js";
@@ -285,12 +285,12 @@ const Be = Y((e, o) => {
285
285
  className: u,
286
286
  style: f,
287
287
  children: c
288
- }) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: U(be.icon, u), style: f, children: /* @__PURE__ */ w(he, { loading: e, variant: "circle", className: be.shape, children: [
288
+ }) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: U(be.icon, u), style: f, children: /* @__PURE__ */ _(he, { loading: e, variant: "circle", className: be.shape, children: [
289
289
  /* @__PURE__ */ a("span", { className: be.shape }),
290
290
  n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: be.svg }),
291
291
  i && /* @__PURE__ */ a("img", { src: i, alt: o, className: be.image }),
292
292
  c
293
- ] }) }), en = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: i, ...u }) => /* @__PURE__ */ w(vt, { size: e, color: o, ...u, children: [
293
+ ] }) }), en = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: i, ...u }) => /* @__PURE__ */ _(vt, { size: e, color: o, ...u, children: [
294
294
  n && /* @__PURE__ */ a(bt, { size: e, htmlFor: t, children: n }),
295
295
  i,
296
296
  r && /* @__PURE__ */ a(Ue, { size: "xs", children: r })
@@ -315,7 +315,7 @@ const Be = Y((e, o) => {
315
315
  onFocus: b,
316
316
  ...R
317
317
  }) => {
318
- const _ = /* @__PURE__ */ a(
318
+ const w = /* @__PURE__ */ a(
319
319
  ot,
320
320
  {
321
321
  size: "xs",
@@ -346,7 +346,7 @@ const Be = Y((e, o) => {
346
346
  ...R
347
347
  }
348
348
  );
349
- return m ? /* @__PURE__ */ a("div", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children: _ }) : /* @__PURE__ */ a("li", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children: _ });
349
+ return m ? /* @__PURE__ */ a("div", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children: w }) : /* @__PURE__ */ a("li", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children: w });
350
350
  }, et = ({
351
351
  level: e = 0,
352
352
  maxLevels: o,
@@ -364,7 +364,7 @@ const Be = Y((e, o) => {
364
364
  id: v,
365
365
  color: b,
366
366
  variant: R,
367
- scrollRefStyles: _ = {},
367
+ scrollRefStyles: w = {},
368
368
  keyboardEvents: x = !1,
369
369
  onSelect: j = () => {
370
370
  },
@@ -372,7 +372,7 @@ const Be = Y((e, o) => {
372
372
  }) => {
373
373
  if (o && e >= o)
374
374
  return null;
375
- const k = t === "combobox", l = t === "navigation", $ = k && v ? `${v}-listbox` : v, I = ee(r), D = ee(r), [q, y] = se(!1), A = de(
375
+ const k = t === "combobox", l = t === "navigation", $ = k && v ? `${v}-listbox` : v, I = ee(r), F = ee(r), [q, y] = se(!1), A = de(
376
376
  () => p.map((P, B) => ({
377
377
  ...P,
378
378
  id: `${v}-item-${B}`
@@ -397,8 +397,8 @@ const Be = Y((e, o) => {
397
397
  const P = I.current;
398
398
  I.current = r, r && !P && S.current?.scrollTo({ top: 0 });
399
399
  }, [r, i]), W(() => {
400
- const P = D.current;
401
- D.current = r, !(!x || m || !f) && r && !P && requestAnimationFrame(() => S.current?.focus?.({ preventScroll: !0 }));
400
+ const P = F.current;
401
+ F.current = r, !(!x || m || !f) && r && !P && requestAnimationFrame(() => S.current?.focus?.({ preventScroll: !0 }));
402
402
  }, [r, x, m]), W(() => {
403
403
  if (k && c) {
404
404
  d(0), y(!0);
@@ -427,13 +427,13 @@ const Be = Y((e, o) => {
427
427
  k && !B && T && y(!1), m.onKeyDown?.(P);
428
428
  }
429
429
  }
430
- ) : null, H = /* @__PURE__ */ w(
430
+ ) : null, D = /* @__PURE__ */ _(
431
431
  Ne,
432
432
  {
433
433
  variant: R,
434
434
  expanded: n,
435
435
  ref: S,
436
- style: _,
436
+ style: w,
437
437
  id: $,
438
438
  role: k ? "listbox" : l ? "list" : "menu",
439
439
  tabIndex: x ? -1 : void 0,
@@ -441,13 +441,13 @@ const Be = Y((e, o) => {
441
441
  !k && M,
442
442
  E.map((P, B) => {
443
443
  const T = P?.props || {}, { title: K, hidden: ue = !1, divider: X = !0 } = T;
444
- return /* @__PURE__ */ w(qe, { children: [
444
+ return /* @__PURE__ */ _(qe, { children: [
445
445
  (e > 0 || B) && X ? /* @__PURE__ */ a(Qe, {}) : "",
446
- /* @__PURE__ */ a(Ye, { hidden: ue, children: /* @__PURE__ */ w(Ne, { role: "presentation", children: [
446
+ /* @__PURE__ */ a(Ye, { hidden: ue, children: /* @__PURE__ */ _(Ne, { role: "presentation", children: [
447
447
  K && /* @__PURE__ */ a(Xe, { title: K, level: e }),
448
448
  P?.items.filter((J) => !J.props?.hidden).map((J, g) => {
449
- const { active: N, onMouseEnter: L } = J, { groupId: te, ...F } = J.props || {}, { expanded: ae } = F, ie = Array.isArray(F?.items) && F.items.length > 0, Ce = F.role === "checkbox" || F.role === "radio", Ee = F.role === "radio" ? "menuitemradio" : "menuitemcheckbox", st = l ? void 0 : k ? "option" : Ce ? Ee : F.role;
450
- return /* @__PURE__ */ w(
449
+ const { active: N, onMouseEnter: L } = J, { groupId: te, ...H } = J.props || {}, { expanded: ae } = H, ie = Array.isArray(H?.items) && H.items.length > 0, Ce = H.role === "checkbox" || H.role === "radio", Ee = H.role === "radio" ? "menuitemradio" : "menuitemcheckbox", st = l ? void 0 : k ? "option" : Ce ? Ee : H.role;
450
+ return /* @__PURE__ */ _(
451
451
  We,
452
452
  {
453
453
  expanded: ae,
@@ -457,29 +457,29 @@ const Be = Y((e, o) => {
457
457
  /* @__PURE__ */ a(
458
458
  rt,
459
459
  {
460
- ...F,
461
- size: F?.size || T?.size || h,
462
- color: F?.color || T?.color || b,
463
- variant: F?.variant || T?.variant || R,
460
+ ...H,
461
+ size: H?.size || T?.size || h,
462
+ color: H?.color || T?.color || b,
463
+ variant: H?.variant || T?.variant || R,
464
464
  active: N,
465
465
  role: st,
466
466
  a11yMode: t,
467
- selected: F.selected,
468
- tabIndex: F?.disabled || x ? -1 : F.tabIndex ?? 0,
467
+ selected: H.selected,
468
+ tabIndex: H?.disabled || x ? -1 : H.tabIndex ?? 0,
469
469
  onMouseEnter: L,
470
470
  "aria-haspopup": ie && !l ? "menu" : void 0,
471
471
  "aria-expanded": ie ? ae : void 0,
472
- "aria-controls": ie ? F.id + "-menu" : void 0
472
+ "aria-controls": ie ? H.id + "-menu" : void 0
473
473
  }
474
474
  ),
475
- ae && F?.items && /* @__PURE__ */ a(
475
+ ae && H?.items && /* @__PURE__ */ a(
476
476
  et,
477
477
  {
478
- id: F.id + "-menu",
478
+ id: H.id + "-menu",
479
479
  expanded: ae,
480
480
  level: e + 1,
481
481
  maxLevels: o,
482
- items: F?.items,
482
+ items: H?.items,
483
483
  groups: s,
484
484
  size: h,
485
485
  color: b,
@@ -498,10 +498,10 @@ const Be = Y((e, o) => {
498
498
  ]
499
499
  }
500
500
  );
501
- return k && M ? /* @__PURE__ */ w(pe, { children: [
501
+ return k && M ? /* @__PURE__ */ _(pe, { children: [
502
502
  M,
503
- H
504
- ] }) : H;
503
+ D
504
+ ] }) : D;
505
505
  }, rn = (e) => {
506
506
  const o = ee(null), n = ee(null), [t, r] = se(0), {
507
507
  search: i,
@@ -515,12 +515,12 @@ const Be = Y((e, o) => {
515
515
  id: v,
516
516
  expanded: b,
517
517
  a11yMode: R = "menu",
518
- open: _,
518
+ open: w,
519
519
  scrollToTopOnOpen: x = !1,
520
520
  autoActivateFirstItem: j = !0,
521
521
  announceNoResults: z = !1,
522
522
  onActiveItemIdChange: k
523
- } = e, l = R === "combobox", $ = R === "navigation", I = l && v ? `${v}-listbox` : v, D = ee(_), [q, y] = se(!1), A = de(
523
+ } = e, l = R === "combobox", $ = R === "navigation", I = l && v ? `${v}-listbox` : v, F = ee(w), [q, y] = se(!1), A = de(
524
524
  () => u.map((g, N) => ({
525
525
  ...g,
526
526
  id: `${v}-item-${N}`
@@ -533,7 +533,7 @@ const Be = Y((e, o) => {
533
533
  keyboardEvents: s,
534
534
  autoActivateFirstItem: j,
535
535
  ref: o
536
- }), { flatMenu: M, virtualizer: H, scrollMaxHeight: P } = _t({
536
+ }), { flatMenu: M, virtualizer: D, scrollMaxHeight: P } = _t({
537
537
  menu: S,
538
538
  scrollRef: o
539
539
  });
@@ -559,22 +559,22 @@ const Be = Y((e, o) => {
559
559
  T.current = B;
560
560
  const L = N ? B : B + 2;
561
561
  if (!N) {
562
- const ie = H.getOffsetForIndex(L, "auto");
562
+ const ie = D.getOffsetForIndex(L, "auto");
563
563
  if (!ie) return;
564
564
  const [Ce, Ee] = ie;
565
565
  if (Ee === "auto") return;
566
- H.scrollToOffset(Ce + t + 10, { align: "start" });
566
+ D.scrollToOffset(Ce + t + 10, { align: "start" });
567
567
  return;
568
568
  }
569
569
  if (B <= 3) {
570
- H.scrollToOffset(0);
570
+ D.scrollToOffset(0);
571
571
  return;
572
572
  }
573
- const te = H.getOffsetForIndex(B - 1, "auto");
573
+ const te = D.getOffsetForIndex(B - 1, "auto");
574
574
  if (!te) return;
575
- const [F, ae] = te;
576
- ae !== "auto" && H.scrollToOffset(F + t + 10, { align: "start" });
577
- }, [B, t, H, T]);
575
+ const [H, ae] = te;
576
+ ae !== "auto" && D.scrollToOffset(H + t + 10, { align: "start" });
577
+ }, [B, t, D, T]);
578
578
  const K = de(() => {
579
579
  const g = /* @__PURE__ */ new Map();
580
580
  let N = 0;
@@ -590,13 +590,9 @@ const Be = Y((e, o) => {
590
590
  return;
591
591
  }
592
592
  }, [z, l, d]), W(() => {
593
- if (!x) {
594
- D.current = _;
595
- return;
596
- }
597
- const g = D.current;
598
- D.current = _, _ && !g && o.current?.scrollTo({ top: 0 });
599
- }, [_, x]);
593
+ const g = F.current;
594
+ F.current = w, !(!w || g) && (D.measure(), x && o.current?.scrollTo({ top: 0 }));
595
+ }, [w, x, D]);
600
596
  const ue = {
601
597
  position: "relative",
602
598
  maxHeight: h?.maxHeight || P,
@@ -627,7 +623,7 @@ const Be = Y((e, o) => {
627
623
  l && !N && L && y(!1), i.onKeyDown?.(g);
628
624
  }
629
625
  }
630
- ) : null, J = /* @__PURE__ */ w(
626
+ ) : null, J = /* @__PURE__ */ _(
631
627
  Ne,
632
628
  {
633
629
  ref: o,
@@ -645,10 +641,10 @@ const Be = Y((e, o) => {
645
641
  ref: n,
646
642
  style: {
647
643
  position: "relative",
648
- height: `${H.getTotalSize()}px`,
644
+ height: `${D.getTotalSize()}px`,
649
645
  width: "100%"
650
646
  },
651
- children: /* @__PURE__ */ a(Ne, { style: { width: "100%", minWidth: "100%" }, children: H.getVirtualItems().map((g) => {
647
+ children: /* @__PURE__ */ a(Ne, { style: { width: "100%", minWidth: "100%" }, children: D.getVirtualItems().map((g) => {
652
648
  const N = M[g.index];
653
649
  if (!N) return null;
654
650
  const L = {
@@ -661,7 +657,7 @@ const Be = Y((e, o) => {
661
657
  style: L,
662
658
  index: g.index,
663
659
  "data-index": g.index,
664
- ref: H.measureElement
660
+ ref: D.measureElement
665
661
  };
666
662
  switch (N.type) {
667
663
  case "divider":
@@ -676,7 +672,7 @@ const Be = Y((e, o) => {
676
672
  case "header":
677
673
  return /* @__PURE__ */ a(Xe, { ...te, title: N.title || "", level: 1 }, g.key);
678
674
  default: {
679
- const F = N.itemProps?.role === "checkbox" || N.itemProps?.role === "radio", ae = N.itemProps?.role === "radio" ? "menuitemradio" : "menuitemcheckbox", ie = $ ? void 0 : l ? "option" : F ? ae : N.itemProps?.role;
675
+ const H = N.itemProps?.role === "checkbox" || N.itemProps?.role === "radio", ae = N.itemProps?.role === "radio" ? "menuitemradio" : "menuitemcheckbox", ie = $ ? void 0 : l ? "option" : H ? ae : N.itemProps?.role;
680
676
  return /* @__PURE__ */ a(We, { ...te, role: $ ? "listitem" : "presentation", children: /* @__PURE__ */ a(
681
677
  rt,
682
678
  {
@@ -701,7 +697,7 @@ const Be = Y((e, o) => {
701
697
  ]
702
698
  }
703
699
  );
704
- return l && X ? /* @__PURE__ */ w(pe, { children: [
700
+ return l && X ? /* @__PURE__ */ _(pe, { children: [
705
701
  X,
706
702
  J
707
703
  ] }) : J;
@@ -804,7 +800,7 @@ const Be = Y((e, o) => {
804
800
  [n]
805
801
  ), h = G.useCallback(() => {
806
802
  p(""), t?.();
807
- }, [t]), v = G.useMemo(() => m.trim().replace(/\s+/g, " "), [m]), b = v.length > 0, R = G.useMemo(() => v.toLowerCase(), [v]), _ = G.useMemo(() => v ? v.split(" ") : [], [v]), x = G.useMemo(
803
+ }, [t]), v = G.useMemo(() => m.trim().replace(/\s+/g, " "), [m]), b = v.length > 0, R = G.useMemo(() => v.toLowerCase(), [v]), w = G.useMemo(() => v ? v.split(" ") : [], [v]), x = G.useMemo(
808
804
  () => ({
809
805
  placeholder: e ?? c.placeholder,
810
806
  name: o ?? "search",
@@ -846,10 +842,10 @@ const Be = Y((e, o) => {
846
842
  M.checked === !0 && d.push({ ...M, groupId: "selected" }), (M.searchWords ?? []).some((B) => String(B).toLowerCase().includes(R)) && O.push({
847
843
  ...M,
848
844
  groupId: "search",
849
- highlightWords: _
845
+ highlightWords: w
850
846
  });
851
847
  return { selectedItems: d, results: O };
852
- }, [b, j, R, _]), I = $.length, D = l.length, q = G.useMemo(
848
+ }, [b, j, R, w]), I = $.length, F = l.length, q = G.useMemo(
853
849
  () => ({
854
850
  search: {
855
851
  hidden: !0,
@@ -857,7 +853,7 @@ const Be = Y((e, o) => {
857
853
  },
858
854
  selected: {
859
855
  hidden: !0,
860
- title: c.selected(D)
856
+ title: c.selected(F)
861
857
  },
862
858
  emptySearch: {
863
859
  hidden: !0,
@@ -865,7 +861,7 @@ const Be = Y((e, o) => {
865
861
  },
866
862
  ...u
867
863
  }),
868
- [c, I, D, u]
864
+ [c, I, F, u]
869
865
  ), y = G.useMemo(
870
866
  () => ({
871
867
  ...q,
@@ -874,15 +870,15 @@ const Be = Y((e, o) => {
874
870
  title: c.hits(I)
875
871
  },
876
872
  selected: {
877
- hidden: D === 0,
878
- title: c.selected(D)
873
+ hidden: F === 0,
874
+ title: c.selected(F)
879
875
  },
880
876
  emptySearch: {
881
- hidden: b && (I > 0 || D > 0),
877
+ hidden: b && (I > 0 || F > 0),
882
878
  title: c.noResults
883
879
  }
884
880
  }),
885
- [q, b, c, I, D]
881
+ [q, b, c, I, F]
886
882
  ), A = G.useMemo(() => b ? ln([...$, ...l]) : [], [b, $, l]), S = G.useMemo(() => [...k || [], ...l || []], [k, l]), E = G.useMemo(() => b ? I ? A : S : i, [b, i, I, A, S]);
887
883
  return {
888
884
  search: x,
@@ -909,13 +905,13 @@ const Be = Y((e, o) => {
909
905
  open: v,
910
906
  scrollToTopOnOpen: b,
911
907
  autoFocusList: R,
912
- id: _
908
+ id: w
913
909
  }) => {
914
910
  const x = cn({ ...o, items: n, groups: t }), j = e ? { label: o?.label, hideLabel: o?.hideLabel, ...x.search } : o, z = e && x.hasQuery && x.resultCount === 0, k = e ? x.items : n, l = e ? { ...t, ...x.groups } : t, $ = h !== "combobox";
915
911
  return c ? /* @__PURE__ */ a(
916
912
  rn,
917
913
  {
918
- id: _,
914
+ id: w,
919
915
  search: j,
920
916
  announceNoResults: z,
921
917
  items: k,
@@ -936,7 +932,7 @@ const Be = Y((e, o) => {
936
932
  ) : /* @__PURE__ */ a(
937
933
  et,
938
934
  {
939
- id: _,
935
+ id: w,
940
936
  search: j,
941
937
  announceNoResults: z,
942
938
  items: k,
@@ -970,7 +966,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
970
966
  if (o)
971
967
  return /* @__PURE__ */ a("div", { className: U(le.icon, e), children: /* @__PURE__ */ a(ce, { svgElement: Be, loading: !0 }) });
972
968
  const r = Pe(n) ? "avatar" : ze(n) ? "avatarGroup" : (Me(n), "icon");
973
- return /* @__PURE__ */ w("div", { className: U(le.media, e), "data-variant": r, children: [
969
+ return /* @__PURE__ */ _("div", { className: U(le.media, e), "data-variant": r, children: [
974
970
  Pe(n) && /* @__PURE__ */ a(De, { ...n, className: le.avatar }) || ze(n) && /* @__PURE__ */ a(we, { ...n, className: le.avatarGroup }) || Me(n) && /* @__PURE__ */ a(ce, { ...n, className: le.icon }) || pn(n) && /* @__PURE__ */ a(ce, { className: le.icon, children: n }) || /* @__PURE__ */ a(ce, { className: le.icon, svgElement: n }),
975
971
  t
976
972
  ] });
@@ -1018,7 +1014,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1018
1014
  highlightWords: i,
1019
1015
  loading: u,
1020
1016
  children: f
1021
- }) => /* @__PURE__ */ a("span", { className: U(gn.label, e), children: f || /* @__PURE__ */ w(pe, { children: [
1017
+ }) => /* @__PURE__ */ a("span", { className: U(gn.label, e), children: f || /* @__PURE__ */ _(pe, { children: [
1022
1018
  o && /* @__PURE__ */ a(ve, { ...n, as: "span", loading: u, highlightWords: i, maxRows: 2, children: o }),
1023
1019
  t && /* @__PURE__ */ a(
1024
1020
  ve,
@@ -1058,7 +1054,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1058
1054
  icon: v,
1059
1055
  label: b,
1060
1056
  badge: R,
1061
- controls: _,
1057
+ controls: w,
1062
1058
  title: x,
1063
1059
  htmlTitle: j,
1064
1060
  description: z,
@@ -1066,7 +1062,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1066
1062
  count: l,
1067
1063
  linkIcon: $ = !1,
1068
1064
  disabled: I,
1069
- selected: D,
1065
+ selected: F,
1070
1066
  active: q,
1071
1067
  tabIndex: y = 0,
1072
1068
  className: A,
@@ -1076,7 +1072,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1076
1072
  const d = typeof b == "function" ? b() : b, O = yt(E), M = n === "option";
1077
1073
  if (n === "radio" || n === "checkbox" || n === "menuitemradio" || n === "menuitemcheckbox" || M && typeof h == "boolean") {
1078
1074
  const T = v || (h ? Je : qt);
1079
- return /* @__PURE__ */ w(
1075
+ return /* @__PURE__ */ _(
1080
1076
  "div",
1081
1077
  {
1082
1078
  ...O,
@@ -1109,7 +1105,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1109
1105
  {
1110
1106
  className: V.label,
1111
1107
  highlightWords: k,
1112
- title: /* @__PURE__ */ w(pe, { children: [
1108
+ title: /* @__PURE__ */ _(pe, { children: [
1113
1109
  x,
1114
1110
  " ",
1115
1111
  l && /* @__PURE__ */ a("i", { className: V.count, children: l })
@@ -1127,16 +1123,16 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1127
1123
  children: d
1128
1124
  }
1129
1125
  ),
1130
- /* @__PURE__ */ w($e, { children: [
1126
+ /* @__PURE__ */ _($e, { children: [
1131
1127
  R && /* @__PURE__ */ a(oe, { ...R }),
1132
- !I && _
1128
+ !I && w
1133
1129
  ] })
1134
1130
  ]
1135
1131
  }
1136
1132
  );
1137
1133
  }
1138
1134
  const P = r || (i ? "a" : "button"), B = $ && jt;
1139
- return /* @__PURE__ */ w(
1135
+ return /* @__PURE__ */ _(
1140
1136
  P,
1141
1137
  {
1142
1138
  href: i,
@@ -1150,9 +1146,9 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1150
1146
  "data-active": q,
1151
1147
  "aria-disabled": I,
1152
1148
  ...I ? { disabled: I } : {},
1153
- "aria-current": n !== "option" && D ? "page" : void 0,
1154
- "aria-selected": n === "option" ? D : void 0,
1155
- "data-selected": D,
1149
+ "aria-current": n !== "option" && F ? "page" : void 0,
1150
+ "aria-selected": n === "option" ? F : void 0,
1151
+ "data-selected": F,
1156
1152
  "aria-label": x,
1157
1153
  title: j,
1158
1154
  "data-testid": S,
@@ -1171,7 +1167,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1171
1167
  {
1172
1168
  className: V.label,
1173
1169
  highlightWords: k,
1174
- title: /* @__PURE__ */ w(pe, { children: [
1170
+ title: /* @__PURE__ */ _(pe, { children: [
1175
1171
  x,
1176
1172
  " ",
1177
1173
  l && /* @__PURE__ */ a("i", { className: V.count, children: l })
@@ -1188,9 +1184,9 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1188
1184
  children: d
1189
1185
  }
1190
1186
  ),
1191
- /* @__PURE__ */ w($e, { children: [
1187
+ /* @__PURE__ */ _($e, { children: [
1192
1188
  R && /* @__PURE__ */ a(oe, { ...R }),
1193
- !I && _,
1189
+ !I && w,
1194
1190
  $ && /* @__PURE__ */ a(ce, { svgElement: B, className: V.linkIcon })
1195
1191
  ] })
1196
1192
  ]
@@ -1221,32 +1217,32 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1221
1217
  minLength: h,
1222
1218
  ...v
1223
1219
  }) => {
1224
- const b = Te(), [R, _] = se(!1), x = v.id || `search-field-${b}`, j = `${x}-listbox`, [z, k] = se(void 0), l = "searchfield-clear-button-" + Te(), $ = de(() => !s || !c || typeof h == "number" && typeof c == "string" && c.length < h ? !1 : R, [s, R, h, c]), I = de(() => (s?.items ?? []).map((d) => ({
1220
+ const b = Te(), [R, w] = se(!1), x = v.id || `search-field-${b}`, j = `${x}-listbox`, [z, k] = se(void 0), l = "searchfield-clear-button-" + Te(), $ = de(() => !s || !c || typeof h == "number" && typeof c == "string" && c.length < h ? !1 : R, [s, R, h, c]), I = de(() => (s?.items ?? []).map((d) => ({
1225
1221
  ...d,
1226
1222
  onClick: () => {
1227
- d.onClick?.(), _(!1);
1223
+ d.onClick?.(), w(!1);
1228
1224
  }
1229
- })), [s]), D = (d) => {
1225
+ })), [s]), F = (d) => {
1230
1226
  if (d.key === "Enter" && $) {
1231
- s?.items?.[0]?.onClick?.(), _(!1);
1227
+ s?.items?.[0]?.onClick?.(), w(!1);
1232
1228
  return;
1233
1229
  }
1234
1230
  if (d.key === "Escape" && $) {
1235
- d.preventDefault(), d.stopPropagation(), _(!1), s?.onClose(), document.getElementById(x)?.focus();
1231
+ d.preventDefault(), d.stopPropagation(), w(!1), s?.onClose(), document.getElementById(x)?.focus();
1236
1232
  return;
1237
1233
  }
1238
- v.onKeyDown?.(d), _(!0);
1234
+ v.onKeyDown?.(d), w(!0);
1239
1235
  }, q = () => {
1240
- _(!0);
1236
+ w(!0);
1241
1237
  }, y = (d) => {
1242
1238
  if (!R) return;
1243
1239
  const O = d.relatedTarget;
1244
- O && d.currentTarget.contains(O) || _(!1);
1240
+ O && d.currentTarget.contains(O) || w(!1);
1245
1241
  }, A = (d) => {
1246
1242
  d.preventDefault();
1247
1243
  }, S = (d) => {
1248
1244
  d.relatedTarget?.id === l && k(void 0), v.onBlur?.(d);
1249
- }, E = /* @__PURE__ */ w(
1245
+ }, E = /* @__PURE__ */ _(
1250
1246
  en,
1251
1247
  {
1252
1248
  size: r,
@@ -1272,7 +1268,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1272
1268
  autoCapitalize: "off",
1273
1269
  autoComplete: "off",
1274
1270
  minLength: h,
1275
- onKeyDown: D,
1271
+ onKeyDown: F,
1276
1272
  onBlur: S,
1277
1273
  ...s && {
1278
1274
  role: "combobox",
@@ -1307,7 +1303,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1307
1303
  ]
1308
1304
  }
1309
1305
  );
1310
- return s ? /* @__PURE__ */ w("div", { className: ne.fieldContainer, children: [
1306
+ return s ? /* @__PURE__ */ _("div", { className: ne.fieldContainer, children: [
1311
1307
  E,
1312
1308
  $ && /* @__PURE__ */ a("div", { className: ne.autocomplete, "aria-hidden": !$, onMouseDown: A, children: /* @__PURE__ */ a(
1313
1309
  nt,
@@ -1341,7 +1337,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1341
1337
  ...c
1342
1338
  }) => {
1343
1339
  const m = f || "div", p = i ? "time" : "span";
1344
- return /* @__PURE__ */ w(m, { ...c, className: ge.byline, "data-color": o, "data-size": n, children: [
1340
+ return /* @__PURE__ */ _(m, { ...c, className: ge.byline, "data-color": o, "data-size": n, children: [
1345
1341
  (r || t) && /* @__PURE__ */ a(he, { variant: "circle", className: ge.avatar, loading: e, children: r ? /* @__PURE__ */ a(we, { ...r, size: n, className: ge.avatarGroup }) : t && /* @__PURE__ */ a(De, { ...t, size: n, className: ge.avatar }) }),
1346
1342
  /* @__PURE__ */ a(p, { "data-size": n, dateTime: i, className: ge.label, children: /* @__PURE__ */ a(he, { loading: e, children: u }) })
1347
1343
  ] });
@@ -1385,7 +1381,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1385
1381
  color: v,
1386
1382
  onSubmit: b,
1387
1383
  activeDescendantId: R,
1388
- useFixedPosition: _ = !1,
1384
+ useFixedPosition: w = !1,
1389
1385
  expanded: x = !1
1390
1386
  }) => {
1391
1387
  const j = ee(null), z = ee(null), k = ee(s);
@@ -1398,19 +1394,19 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1398
1394
  maxHeight: 300
1399
1395
  }), I = Ve(() => {
1400
1396
  if (s && j.current && z.current) {
1401
- const y = j.current.getBoundingClientRect(), A = z.current.getBoundingClientRect(), S = window.innerHeight, E = window.innerWidth, d = 16, O = S - y.bottom, M = y.top, H = E - y.right - A.width, P = O < 250 && M > O, B = P ? "top" : "bottom", T = (P ? M : O) - d, ue = H < d ? "right" : "left";
1397
+ const y = j.current.getBoundingClientRect(), A = z.current.getBoundingClientRect(), S = window.innerHeight, E = window.innerWidth, d = 16, O = S - y.bottom, M = y.top, D = E - y.right - A.width, P = O < 250 && M > O, B = P ? "top" : "bottom", T = (P ? M : O) - d, ue = D < d ? "right" : "left";
1402
1398
  $((X) => ({
1403
1399
  ...X,
1404
1400
  yDir: B,
1405
1401
  maxHeight: T,
1406
1402
  xDir: ue,
1407
- triggerRect: _ ? y : void 0
1403
+ triggerRect: w ? y : void 0
1408
1404
  }));
1409
1405
  }
1410
- }, [s, _]);
1411
- Se(() => (I(), window.addEventListener("resize", I), _ && window.addEventListener("scroll", I, !0), () => {
1412
- window.removeEventListener("resize", I), _ && window.removeEventListener("scroll", I, !0);
1413
- }), [I, _]), W(() => {
1406
+ }, [s, w]);
1407
+ Se(() => (I(), window.addEventListener("resize", I), w && window.addEventListener("scroll", I, !0), () => {
1408
+ window.removeEventListener("resize", I), w && window.removeEventListener("scroll", I, !0);
1409
+ }), [I, w]), W(() => {
1414
1410
  if (!s) return;
1415
1411
  const y = requestAnimationFrame(() => {
1416
1412
  const A = z.current;
@@ -1456,14 +1452,14 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1456
1452
  E.preventDefault(), y.focus?.({ preventScroll: !0 });
1457
1453
  return;
1458
1454
  }
1459
- const O = d[0], M = d[d.length - 1], H = document.activeElement;
1460
- E.shiftKey ? H === O && (E.preventDefault(), M.focus({ preventScroll: !0 })) : H === M && (E.preventDefault(), O.focus({ preventScroll: !0 }));
1455
+ const O = d[0], M = d[d.length - 1], D = document.activeElement;
1456
+ E.shiftKey ? D === O && (E.preventDefault(), M.focus({ preventScroll: !0 })) : D === M && (E.preventDefault(), O.focus({ preventScroll: !0 }));
1461
1457
  };
1462
1458
  return document.addEventListener("focusin", A), document.addEventListener("keydown", S), () => {
1463
1459
  document.removeEventListener("focusin", A), document.removeEventListener("keydown", S);
1464
1460
  };
1465
1461
  }, [s]);
1466
- const D = _ && l.triggerRect ? {
1462
+ const F = w && l.triggerRect ? {
1467
1463
  position: "fixed",
1468
1464
  zIndex: 1e3,
1469
1465
  width: "max-content",
@@ -1479,12 +1475,12 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1479
1475
  overflowY: "auto",
1480
1476
  [l.xDir]: 0,
1481
1477
  [l.yDir === "bottom" ? "top" : "bottom"]: "100%"
1482
- }, q = /* @__PURE__ */ w(
1478
+ }, q = /* @__PURE__ */ _(
1483
1479
  "div",
1484
1480
  {
1485
1481
  ref: z,
1486
1482
  className: U(me.dropdown, n),
1487
- style: D,
1483
+ style: F,
1488
1484
  "aria-hidden": !s,
1489
1485
  "data-variant": i,
1490
1486
  "data-color": v,
@@ -1495,7 +1491,7 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1495
1491
  "aria-modal": s && i === "drawer-dropdown" ? !0 : void 0,
1496
1492
  "aria-activedescendant": s ? R : void 0,
1497
1493
  children: [
1498
- /* @__PURE__ */ w("header", { className: me.header, children: [
1494
+ /* @__PURE__ */ _("header", { className: me.header, children: [
1499
1495
  /* @__PURE__ */ a("h2", { className: me.title, children: u }),
1500
1496
  /* @__PURE__ */ a(_e, { size: "sm", variant: "outline", onClick: h, "aria-label": f, children: /* @__PURE__ */ a(Be, {}) })
1501
1497
  ] }),
@@ -1504,11 +1500,11 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1504
1500
  ]
1505
1501
  }
1506
1502
  );
1507
- return /* @__PURE__ */ w(pe, { children: [
1503
+ return /* @__PURE__ */ _(pe, { children: [
1508
1504
  t && /* @__PURE__ */ a("div", { className: me.backdrop, "aria-hidden": !s }),
1509
- /* @__PURE__ */ w("div", { id: e + "-root", ref: j, style: { position: "relative", display: "inline-block" }, children: [
1505
+ /* @__PURE__ */ _("div", { id: e + "-root", ref: j, style: { position: "relative", display: "inline-block" }, children: [
1510
1506
  m,
1511
- _ ? mt(q, document.body) : q
1507
+ w ? mt(q, document.body) : q
1512
1508
  ] })
1513
1509
  ] });
1514
1510
  }, Wn = "_section_1v20z_1", Yn = "_header_1v20z_7", Qn = "_list_1v20z_13", Ie = {
@@ -1524,14 +1520,14 @@ const Fe = ({ className: e, loading: o, icon: n, children: t }) => {
1524
1520
  keyboardEvents: !1,
1525
1521
  sortGroupBy: r
1526
1522
  });
1527
- return /* @__PURE__ */ w("section", { className: Ie.section, "aria-busy": u, children: [
1528
- e || o ? /* @__PURE__ */ w("header", { className: Ie.header, children: [
1523
+ return /* @__PURE__ */ _("section", { className: Ie.section, "aria-busy": u, children: [
1524
+ e || o ? /* @__PURE__ */ _("header", { className: Ie.header, children: [
1529
1525
  e && /* @__PURE__ */ a(ve, { as: "h1", size: "lg", children: e }),
1530
1526
  o && /* @__PURE__ */ a(Ue, { as: "p", size: "sm", variant: "subtle", className: Ie.description, children: o })
1531
1527
  ] }) : null,
1532
1528
  f?.map((c, m) => {
1533
1529
  const p = c.props || {};
1534
- return /* @__PURE__ */ w(qe, { children: [
1530
+ return /* @__PURE__ */ _(qe, { children: [
1535
1531
  p?.title && /* @__PURE__ */ a(ve, { as: "h2", size: "lg", children: p.title }),
1536
1532
  /* @__PURE__ */ a("ul", { className: Ie.list, children: c?.items.map((s, h) => {
1537
1533
  const v = s.props || {};
@@ -1571,7 +1567,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1571
1567
  grouped: v = !1,
1572
1568
  updatedAt: b,
1573
1569
  updatedAtLabel: R,
1574
- archived: _,
1570
+ archived: w,
1575
1571
  archivedAt: x,
1576
1572
  archivedAtLabel: j,
1577
1573
  trashed: z,
@@ -1579,7 +1575,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1579
1575
  trashedAtLabel: l,
1580
1576
  badge: $,
1581
1577
  dueAt: I,
1582
- dueAtExpired: D,
1578
+ dueAtExpired: F,
1583
1579
  dueAtLabel: q,
1584
1580
  unread: y,
1585
1581
  unreadLabel: A = "Ulest",
@@ -1588,7 +1584,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1588
1584
  seenByLog: d,
1589
1585
  draftsLabel: O,
1590
1586
  sentCount: M,
1591
- receivedCount: H,
1587
+ receivedCount: D,
1592
1588
  attachmentsCount: P,
1593
1589
  attachmentsLabel: B,
1594
1590
  tooltips: T = {},
@@ -1600,7 +1596,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1600
1596
  ...N
1601
1597
  }) => {
1602
1598
  const L = u ? "select" : n;
1603
- return /* @__PURE__ */ w(
1599
+ return /* @__PURE__ */ _(
1604
1600
  Nt,
1605
1601
  {
1606
1602
  as: "li",
@@ -1612,12 +1608,12 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1612
1608
  "data-unread": y ? "true" : "false",
1613
1609
  "data-selected": f,
1614
1610
  "data-trashed": z,
1615
- "data-archived": _,
1611
+ "data-archived": w,
1616
1612
  "data-loading": r,
1617
1613
  children: [
1618
- /* @__PURE__ */ a(kt, { ...N, className: Z.link, as: e, children: /* @__PURE__ */ w("div", { className: Z.border, children: [
1619
- /* @__PURE__ */ w("header", { className: Z.header, children: [
1620
- /* @__PURE__ */ w(
1614
+ /* @__PURE__ */ a(kt, { ...N, className: Z.link, as: e, children: /* @__PURE__ */ _("div", { className: Z.border, children: [
1615
+ /* @__PURE__ */ _("header", { className: Z.header, children: [
1616
+ /* @__PURE__ */ _(
1621
1617
  ve,
1622
1618
  {
1623
1619
  as: "h2",
@@ -1666,7 +1662,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1666
1662
  extendedStatusLabel: m,
1667
1663
  draftsLabel: O,
1668
1664
  sentCount: M,
1669
- receivedCount: H,
1665
+ receivedCount: D,
1670
1666
  updatedAt: b,
1671
1667
  updatedAtLabel: R,
1672
1668
  archivedAt: x,
@@ -1674,7 +1670,7 @@ const Jn = "_item_1cw3x_3", Zn = "_border_1cw3x_75", er = "_header_1cw3x_86", tr
1674
1670
  trashedAt: k,
1675
1671
  trashedAtLabel: l,
1676
1672
  dueAt: I,
1677
- dueAtExpired: D,
1673
+ dueAtExpired: F,
1678
1674
  dueAtLabel: q,
1679
1675
  attachmentsCount: P,
1680
1676
  attachmentsLabel: B,
@@ -1707,21 +1703,21 @@ const sr = ({
1707
1703
  draftsLabel: v,
1708
1704
  sentCount: b = 0,
1709
1705
  receivedCount: R = 0,
1710
- attachmentsCount: _ = 0,
1706
+ attachmentsCount: w = 0,
1711
1707
  attachmentsLabel: x,
1712
1708
  transmissionsLabel: j,
1713
1709
  activityLog: z,
1714
1710
  extendedStatusLabel: k,
1715
1711
  tooltips: l = {}
1716
- }) => /* @__PURE__ */ w(Ct, { className: e, size: "xs", children: [
1712
+ }) => /* @__PURE__ */ _(Ct, { className: e, size: "xs", children: [
1717
1713
  n && /* @__PURE__ */ a(vr, { tooltip: l.status, loading: o, ...n }),
1718
1714
  k && /* @__PURE__ */ a(oe, { tooltip: l.extendedStatus, variant: "outline", children: k }),
1719
1715
  v && /* @__PURE__ */ a(oe, { tooltip: l.drafts, variant: "dotted", children: v }),
1720
- r && /* @__PURE__ */ w(re, { tooltip: l.updatedAt, loading: o, datetime: r, size: "xs", children: [
1716
+ r && /* @__PURE__ */ _(re, { tooltip: l.updatedAt, loading: o, datetime: r, size: "xs", children: [
1721
1717
  /* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
1722
1718
  i
1723
1719
  ] }),
1724
- _ > 0 && /* @__PURE__ */ a(re, { tooltip: l.attachments, loading: o, size: "xs", icon: xt, children: x || _ }),
1720
+ w > 0 && /* @__PURE__ */ a(re, { tooltip: l.attachments, loading: o, size: "xs", icon: xt, children: x || w }),
1725
1721
  j && /* @__PURE__ */ a(re, { tooltip: l.transmissions, loading: o, size: "xs", icon: Lt, children: j }),
1726
1722
  b > 0 && /* @__PURE__ */ a(re, { tooltip: l.sent, size: "xs", icon: Je, children: b }),
1727
1723
  R > 0 && /* @__PURE__ */ a(re, { tooltip: l.received, size: "xs", icon: zt, children: R }),
@@ -1782,7 +1778,7 @@ const sr = ({
1782
1778
  grouped: t = !1,
1783
1779
  loading: r,
1784
1780
  size: i = "xs"
1785
- }) => !e && !o ? null : /* @__PURE__ */ w(Bn, { loading: r, size: i, avatar: e, avatarGroup: !r && t && e && o ? {
1781
+ }) => !e && !o ? null : /* @__PURE__ */ _(Bn, { loading: r, size: i, avatar: e, avatarGroup: !r && t && e && o ? {
1786
1782
  items: [o, e]
1787
1783
  } : void 0, children: [
1788
1784
  /* @__PURE__ */ a("strong", { children: e?.name }),
@@ -1796,7 +1792,7 @@ const sr = ({
1796
1792
  function mr(e) {
1797
1793
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || Ke(e);
1798
1794
  }
1799
- const Ge = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ w("span", { className: fe.media, "data-size": e, children: [
1795
+ const Ge = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ _("span", { className: fe.media, "data-size": e, children: [
1800
1796
  Pe(o) && /* @__PURE__ */ a(De, { ...o, className: fe.avatar }) || ze(o) && /* @__PURE__ */ a(we, { ...o, className: fe.avatarGroup }) || Me(o) && /* @__PURE__ */ a(ce, { ...o, className: fe.icon }) || mr(o) && o || /* @__PURE__ */ a(ce, { svgElement: o, className: fe.icon }),
1801
1797
  n && /* @__PURE__ */ a(Et, { value: n, className: fe.icon })
1802
1798
  ] }), fr = "_item_cqtms_1", pr = "_label_cqtms_54", Oe = {
@@ -1826,7 +1822,7 @@ const Ge = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
1826
1822
  dateTime: m,
1827
1823
  className: U(Oe.item, n),
1828
1824
  ...s,
1829
- children: /* @__PURE__ */ w(he, { loading: o, children: [
1825
+ children: /* @__PURE__ */ _(he, { loading: o, children: [
1830
1826
  !o && f && /* @__PURE__ */ a(Ge, { size: r, icon: f }),
1831
1827
  /* @__PURE__ */ a("span", { className: Oe.label, children: c })
1832
1828
  ] })
@@ -1840,7 +1836,7 @@ const Ge = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
1840
1836
  dateTime: m,
1841
1837
  className: U(Oe.item, n),
1842
1838
  ...s,
1843
- children: /* @__PURE__ */ w(he, { loading: o, children: [
1839
+ children: /* @__PURE__ */ _(he, { loading: o, children: [
1844
1840
  !o && f && /* @__PURE__ */ a(Ge, { size: r, icon: f }),
1845
1841
  /* @__PURE__ */ a("span", { className: Oe.label, children: c })
1846
1842
  ] })
@@ -1890,7 +1886,7 @@ const vr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1890
1886
  })),
1891
1887
  [i, h]
1892
1888
  );
1893
- return e ? /* @__PURE__ */ w(_e, { className: ye.button, variant: n, title: r, disabled: !0, children: [
1889
+ return e ? /* @__PURE__ */ _(_e, { className: ye.button, variant: n, title: r, disabled: !0, children: [
1894
1890
  /* @__PURE__ */ a("span", { className: ye.label, children: o }),
1895
1891
  /* @__PURE__ */ a(Le, { "aria-hidden": "true", focusable: "false" })
1896
1892
  ] }) : /* @__PURE__ */ a("span", { className: ye.menu, children: /* @__PURE__ */ a(
@@ -1900,7 +1896,7 @@ const vr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
1900
1896
  variant: "drawer-dropdown",
1901
1897
  title: t,
1902
1898
  size: u,
1903
- trigger: /* @__PURE__ */ w(
1899
+ trigger: /* @__PURE__ */ _(
1904
1900
  _e,
1905
1901
  {
1906
1902
  className: ye.button,