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