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