@altinn/altinn-components 0.57.2 → 0.57.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Section-jhq4n77E.js → Section-xbt3ft20.js} +557 -552
- package/dist/assets/Button.css +1 -1
- package/dist/assets/InboxPage.css +1 -0
- package/dist/assets/LayoutBase.css +1 -1
- package/dist/assets/MenuListItem.css +1 -1
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/QueryLabelItem.css +1 -1
- package/dist/assets/Section.css +1 -1
- package/dist/assets/Toolbar.css +1 -0
- package/dist/assets/ToolbarControls.css +1 -0
- package/dist/assets/Typography.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 +1 -1
- 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/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/Bulk/BulkFooter.js +3 -3
- package/dist/components/Bulk/BulkHeader.js +49 -31
- package/dist/components/Button/Button.js +5 -5
- 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/DialogListGroup.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/DrawerOrDropdown.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/GlobalMenu_old/BackButton.js +1 -1
- package/dist/components/GlobalMenu_old/CurrentAccount.js +1 -1
- package/dist/components/GlobalMenu_old/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +1 -1
- package/dist/components/GlobalMenu_old/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.js +1 -1
- package/dist/components/Header/LocaleButton.js +1 -1
- package/dist/components/Header/LocaleSwitcher.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 +20 -0
- package/dist/components/Inbox/index.js +4 -0
- 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/Layout/LayoutBase.js +3 -3
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItem.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/List/index.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/MenuListItem.js +7 -7
- package/dist/components/Menu/MenuListSearch.js +1 -1
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/TabMenu.js +1 -1
- 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/MetaProgress.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/Page/index.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
- 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/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/QueryLabel.js +4 -4
- package/dist/components/Toolbar/QueryLabelItem.js +4 -4
- package/dist/components/Toolbar/SelectDateFilter.js +1 -1
- package/dist/components/Toolbar/Toolbar.js +12 -16
- package/dist/components/Toolbar/ToolbarControls.js +8 -0
- package/dist/components/Toolbar/ToolbarFilter.js +43 -38
- 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/Typography.js +15 -15
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +368 -366
- package/dist/hooks/useAccountSelector.js +1 -1
- package/dist/index.js +386 -384
- package/dist/types/lib/components/Button/Button.d.ts +1 -1
- package/dist/types/lib/components/Inbox/InboxPage.d.ts +10 -0
- package/dist/types/lib/components/Inbox/InboxPage.stories.d.ts +37 -0
- package/dist/types/lib/components/Inbox/index.d.ts +1 -0
- package/dist/types/lib/components/Layout/LayoutBase.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/QueryLabel.stories.d.ts +11 -0
- package/dist/types/lib/components/Toolbar/QueryLabelItem.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/Toolbar.d.ts +2 -1
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/ToolbarControls.d.ts +6 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilter.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilter.stories.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,45 +2,45 @@
|
|
|
2
2
|
import { jsx as a, jsxs as _, Fragment as pe } from "react/jsx-runtime";
|
|
3
3
|
import { c as K } from "./index-p1eeF8LQ.js";
|
|
4
4
|
import * as T from "react";
|
|
5
|
-
import C, { forwardRef as V, useRef as te, useState as se, useMemo as ce, useEffect as X, Fragment as
|
|
6
|
-
import { useEscapeKey as
|
|
5
|
+
import C, { forwardRef as V, useRef as te, useState as se, useMemo as ce, useEffect as X, Fragment as gt, useLayoutEffect as Me, createContext as yt, useContext as _t, isValidElement as we, useId as Ne, useCallback as Ze, memo as Ie, createElement as ze } from "react";
|
|
6
|
+
import { useEscapeKey as wt } from "./hooks/useEscapeKey.js";
|
|
7
7
|
import { Button as de } from "./components/Button/Button.js";
|
|
8
|
-
import { createPortal as
|
|
9
|
-
import { useMenu as
|
|
10
|
-
import { Typography as
|
|
11
|
-
import { Skeleton as
|
|
12
|
-
import { useHighlightedText as
|
|
13
|
-
import { Badge as
|
|
14
|
-
import { isAvatarGroupProps as
|
|
15
|
-
import { ItemControls as
|
|
16
|
-
import { ItemBase as
|
|
17
|
-
import { ItemLink as
|
|
18
|
-
import { Tooltip as
|
|
19
|
-
import { MetaBase as
|
|
20
|
-
import { MetaItemBase as
|
|
21
|
-
import { SnackbarProvider as
|
|
22
|
-
import { Input as
|
|
23
|
-
import { Field as
|
|
24
|
-
import { Label as
|
|
25
|
-
import { TypingIcon as
|
|
8
|
+
import { createPortal as It } from "react-dom";
|
|
9
|
+
import { useMenu as Le } from "./hooks/useMenu.js";
|
|
10
|
+
import { Typography as et } from "./components/Typography/Typography.js";
|
|
11
|
+
import { Skeleton as ke } from "./components/Skeleton/Skeleton.js";
|
|
12
|
+
import { useHighlightedText as xt } from "./components/Typography/useHighlightedText.js";
|
|
13
|
+
import { Badge as ye } from "./components/Badge/Badge.js";
|
|
14
|
+
import { isAvatarGroupProps as Ce, AvatarGroup as he } from "./components/Avatar/AvatarGroup.js";
|
|
15
|
+
import { ItemControls as De } from "./components/Item/ItemControls.js";
|
|
16
|
+
import { ItemBase as Ot } from "./components/Item/ItemBase.js";
|
|
17
|
+
import { ItemLink as Nt } from "./components/Item/ItemLink.js";
|
|
18
|
+
import { Tooltip as kt } from "./components/Tooltip/Tooltip.js";
|
|
19
|
+
import { MetaBase as Ct } from "./components/Metadata/MetaBase.js";
|
|
20
|
+
import { MetaItemBase as Fe } from "./components/Metadata/MetaItemBase.js";
|
|
21
|
+
import { SnackbarProvider as Et } from "./components/Snackbar/useSnackbar.js";
|
|
22
|
+
import { Input as Ae } from "./components/Forms/Input.js";
|
|
23
|
+
import { Field as Pt } from "./components/Forms/Field.js";
|
|
24
|
+
import { Label as St } from "./components/Forms/Label.js";
|
|
25
|
+
import { TypingIcon as jt } from "./components/Icon/TypingIcon.js";
|
|
26
26
|
import { u as W } from "./useId-BVFxCjkq.js";
|
|
27
|
-
import { isAvatarProps as
|
|
28
|
-
import { pickAriaProps as
|
|
29
|
-
import { MenuList as
|
|
30
|
-
import { MenuListItem as
|
|
31
|
-
import { MenuListGroup as
|
|
32
|
-
import { MenuListDivider as
|
|
33
|
-
import { MenuListHeading as
|
|
27
|
+
import { isAvatarProps as Ee, Avatar as je } from "./components/Avatar/Avatar.js";
|
|
28
|
+
import { pickAriaProps as $t } from "./components/Menu/aria.js";
|
|
29
|
+
import { MenuList as Pe } from "./components/Menu/MenuList.js";
|
|
30
|
+
import { MenuListItem as tt } from "./components/Menu/MenuListItem.js";
|
|
31
|
+
import { MenuListGroup as rt } from "./components/Menu/MenuListGroup.js";
|
|
32
|
+
import { MenuListDivider as nt } from "./components/Menu/MenuListDivider.js";
|
|
33
|
+
import { MenuListHeading as ot } from "./components/Menu/MenuListHeading.js";
|
|
34
34
|
import { a as Rt } from "./useMenuVirtualization-Cs426RCN.js";
|
|
35
|
-
import { S as
|
|
36
|
-
import { useDropdownMenuController as
|
|
37
|
-
import { ProgressIcon as
|
|
38
|
-
import { MetaItemLabel as
|
|
39
|
-
import { ListItemBase as
|
|
40
|
-
import { ListItemLink as
|
|
41
|
-
import { ListItemControls as
|
|
42
|
-
import { Flex as
|
|
43
|
-
import './assets/Section.css';var
|
|
35
|
+
import { S as Mt, a as zt, b as Dt, d as At, c as Bt } from "./Trash-BG9YcGIl.js";
|
|
36
|
+
import { useDropdownMenuController as Lt } from "./components/Menu/useDropdownMenuController.js";
|
|
37
|
+
import { ProgressIcon as Ft } from "./components/Icon/ProgressIcon.js";
|
|
38
|
+
import { MetaItemLabel as Te } from "./components/Metadata/MetaItemLabel.js";
|
|
39
|
+
import { ListItemBase as Tt } from "./components/List/ListItemBase.js";
|
|
40
|
+
import { ListItemLink as Gt } from "./components/List/ListItemLink.js";
|
|
41
|
+
import { ListItemControls as Ht } from "./components/List/ListItemControls.js";
|
|
42
|
+
import { Flex as Ge } from "./components/Page/Flex.js";
|
|
43
|
+
import './assets/Section.css';var Kt = function(e, o) {
|
|
44
44
|
var r = {};
|
|
45
45
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
46
46
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -48,8 +48,8 @@ import './assets/Section.css';var Ht = function(e, o) {
|
|
|
48
48
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
49
49
|
return r;
|
|
50
50
|
};
|
|
51
|
-
const
|
|
52
|
-
var { title: r, titleId: t } = e, n =
|
|
51
|
+
const qt = V((e, o) => {
|
|
52
|
+
var { title: r, titleId: t } = e, n = Kt(e, ["title", "titleId"]);
|
|
53
53
|
let s = W();
|
|
54
54
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
55
55
|
"svg",
|
|
@@ -58,7 +58,7 @@ const Kt = V((e, o) => {
|
|
|
58
58
|
C.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
59
59
|
);
|
|
60
60
|
});
|
|
61
|
-
var
|
|
61
|
+
var Ut = function(e, o) {
|
|
62
62
|
var r = {};
|
|
63
63
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
64
64
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -66,8 +66,8 @@ var qt = function(e, o) {
|
|
|
66
66
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
67
67
|
return r;
|
|
68
68
|
};
|
|
69
|
-
const
|
|
70
|
-
var { title: r, titleId: t } = e, n =
|
|
69
|
+
const at = V((e, o) => {
|
|
70
|
+
var { title: r, titleId: t } = e, n = Ut(e, ["title", "titleId"]);
|
|
71
71
|
let s = W();
|
|
72
72
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
73
73
|
"svg",
|
|
@@ -76,7 +76,7 @@ const ot = V((e, o) => {
|
|
|
76
76
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
|
|
77
77
|
);
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var Vt = function(e, o) {
|
|
80
80
|
var r = {};
|
|
81
81
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
82
82
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -84,8 +84,8 @@ var Ut = function(e, o) {
|
|
|
84
84
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
85
85
|
return r;
|
|
86
86
|
};
|
|
87
|
-
const
|
|
88
|
-
var { title: r, titleId: t } = e, n =
|
|
87
|
+
const Wt = V((e, o) => {
|
|
88
|
+
var { title: r, titleId: t } = e, n = Vt(e, ["title", "titleId"]);
|
|
89
89
|
let s = W();
|
|
90
90
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
91
91
|
"svg",
|
|
@@ -94,7 +94,7 @@ const Vt = V((e, o) => {
|
|
|
94
94
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.97 9.47a.75.75 0 0 1 1.06 0L12 14.44l4.97-4.97a.75.75 0 1 1 1.06 1.06l-5.5 5.5a.75.75 0 0 1-1.06 0l-5.5-5.5a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
95
95
|
);
|
|
96
96
|
});
|
|
97
|
-
var
|
|
97
|
+
var Yt = function(e, o) {
|
|
98
98
|
var r = {};
|
|
99
99
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
100
100
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -102,8 +102,8 @@ var Wt = function(e, o) {
|
|
|
102
102
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
103
103
|
return r;
|
|
104
104
|
};
|
|
105
|
-
const
|
|
106
|
-
var { title: r, titleId: t } = e, n =
|
|
105
|
+
const st = V((e, o) => {
|
|
106
|
+
var { title: r, titleId: t } = e, n = Yt(e, ["title", "titleId"]);
|
|
107
107
|
let s = W();
|
|
108
108
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
109
109
|
"svg",
|
|
@@ -112,7 +112,7 @@ const at = V((e, o) => {
|
|
|
112
112
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.47 5.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 1 1-1.06-1.06L14.44 12 9.47 7.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
113
113
|
);
|
|
114
114
|
});
|
|
115
|
-
var
|
|
115
|
+
var Qt = function(e, o) {
|
|
116
116
|
var r = {};
|
|
117
117
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
118
118
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -120,8 +120,8 @@ var Yt = function(e, o) {
|
|
|
120
120
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
121
121
|
return r;
|
|
122
122
|
};
|
|
123
|
-
const
|
|
124
|
-
var { title: r, titleId: t } = e, n =
|
|
123
|
+
const Xt = V((e, o) => {
|
|
124
|
+
var { title: r, titleId: t } = e, n = Qt(e, ["title", "titleId"]);
|
|
125
125
|
let s = W();
|
|
126
126
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
127
127
|
"svg",
|
|
@@ -130,7 +130,7 @@ const Qt = V((e, o) => {
|
|
|
130
130
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M11.47 7.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 1 1-1.06 1.06L12 9.56l-4.97 4.97a.75.75 0 0 1-1.06-1.06z", clipRule: "evenodd" })
|
|
131
131
|
);
|
|
132
132
|
});
|
|
133
|
-
var
|
|
133
|
+
var Jt = function(e, o) {
|
|
134
134
|
var r = {};
|
|
135
135
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
136
136
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -138,8 +138,8 @@ var Xt = function(e, o) {
|
|
|
138
138
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
139
139
|
return r;
|
|
140
140
|
};
|
|
141
|
-
const
|
|
142
|
-
var { title: r, titleId: t } = e, n =
|
|
141
|
+
const Ke = V((e, o) => {
|
|
142
|
+
var { title: r, titleId: t } = e, n = Jt(e, ["title", "titleId"]);
|
|
143
143
|
let s = W();
|
|
144
144
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
145
145
|
"svg",
|
|
@@ -148,7 +148,7 @@ const He = V((e, o) => {
|
|
|
148
148
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L12 6.06l2.97 2.97a.75.75 0 1 0 1.06-1.06zm-3.5 10.5a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06L12 17.94z", clipRule: "evenodd" })
|
|
149
149
|
);
|
|
150
150
|
});
|
|
151
|
-
var
|
|
151
|
+
var Zt = function(e, o) {
|
|
152
152
|
var r = {};
|
|
153
153
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
154
154
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -156,8 +156,8 @@ var Jt = function(e, o) {
|
|
|
156
156
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
157
157
|
return r;
|
|
158
158
|
};
|
|
159
|
-
const
|
|
160
|
-
var { title: r, titleId: t } = e, n =
|
|
159
|
+
const er = V((e, o) => {
|
|
160
|
+
var { title: r, titleId: t } = e, n = Zt(e, ["title", "titleId"]);
|
|
161
161
|
let s = W();
|
|
162
162
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
163
163
|
"svg",
|
|
@@ -166,7 +166,7 @@ const Zt = V((e, o) => {
|
|
|
166
166
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
|
|
167
167
|
);
|
|
168
168
|
});
|
|
169
|
-
var
|
|
169
|
+
var tr = function(e, o) {
|
|
170
170
|
var r = {};
|
|
171
171
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
172
172
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -174,8 +174,8 @@ var er = function(e, o) {
|
|
|
174
174
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
175
175
|
return r;
|
|
176
176
|
};
|
|
177
|
-
const
|
|
178
|
-
var { title: r, titleId: t } = e, n =
|
|
177
|
+
const rr = V((e, o) => {
|
|
178
|
+
var { title: r, titleId: t } = e, n = tr(e, ["title", "titleId"]);
|
|
179
179
|
let s = W();
|
|
180
180
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
181
181
|
"svg",
|
|
@@ -184,7 +184,7 @@ const tr = V((e, o) => {
|
|
|
184
184
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
|
|
185
185
|
);
|
|
186
186
|
});
|
|
187
|
-
var
|
|
187
|
+
var nr = function(e, o) {
|
|
188
188
|
var r = {};
|
|
189
189
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
190
190
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -192,8 +192,8 @@ var rr = function(e, o) {
|
|
|
192
192
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
193
193
|
return r;
|
|
194
194
|
};
|
|
195
|
-
const
|
|
196
|
-
var { title: r, titleId: t } = e, n =
|
|
195
|
+
const or = V((e, o) => {
|
|
196
|
+
var { title: r, titleId: t } = e, n = nr(e, ["title", "titleId"]);
|
|
197
197
|
let s = W();
|
|
198
198
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
199
199
|
"svg",
|
|
@@ -202,7 +202,7 @@ const nr = V((e, o) => {
|
|
|
202
202
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6 3.25a.75.75 0 0 0 0 1.5h.315c.109 1.966.642 3.846 1.546 5.302.502.81 1.116 1.479 1.81 1.948-.694.47-1.308 1.138-1.81 1.948-.904 1.456-1.437 3.336-1.546 5.302H6a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5h-.298c-.109-1.966-.643-3.846-1.546-5.302-.503-.81-1.116-1.479-1.81-1.948.694-.47 1.307-1.138 1.81-1.948.904-1.456 1.437-3.336 1.546-5.302H18a.75.75 0 0 0 0-1.5zm6.008 8c.972 0 2.027-.624 2.873-1.989.738-1.189 1.211-2.785 1.318-4.511H7.818c.107 1.726.58 3.322 1.318 4.511.846 1.365 1.901 1.989 2.872 1.989m0 1.5c-.971 0-2.026.624-2.872 1.989-.738 1.189-1.211 2.784-1.318 4.511h8.381c-.107-1.727-.58-3.322-1.318-4.511-.846-1.365-1.901-1.989-2.873-1.989", clipRule: "evenodd" })
|
|
203
203
|
);
|
|
204
204
|
});
|
|
205
|
-
var
|
|
205
|
+
var ar = function(e, o) {
|
|
206
206
|
var r = {};
|
|
207
207
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
208
208
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -210,8 +210,8 @@ var or = function(e, o) {
|
|
|
210
210
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
211
211
|
return r;
|
|
212
212
|
};
|
|
213
|
-
const
|
|
214
|
-
var { title: r, titleId: t } = e, n =
|
|
213
|
+
const qe = V((e, o) => {
|
|
214
|
+
var { title: r, titleId: t } = e, n = ar(e, ["title", "titleId"]);
|
|
215
215
|
let s = W();
|
|
216
216
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
217
217
|
"svg",
|
|
@@ -220,7 +220,7 @@ const Ke = V((e, o) => {
|
|
|
220
220
|
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
|
|
221
221
|
);
|
|
222
222
|
});
|
|
223
|
-
var
|
|
223
|
+
var sr = function(e, o) {
|
|
224
224
|
var r = {};
|
|
225
225
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (r[t] = e[t]);
|
|
226
226
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -228,8 +228,8 @@ var ar = function(e, o) {
|
|
|
228
228
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
229
229
|
return r;
|
|
230
230
|
};
|
|
231
|
-
const
|
|
232
|
-
var { title: r, titleId: t } = e, n =
|
|
231
|
+
const lr = V((e, o) => {
|
|
232
|
+
var { title: r, titleId: t } = e, n = sr(e, ["title", "titleId"]);
|
|
233
233
|
let s = W();
|
|
234
234
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
235
235
|
"svg",
|
|
@@ -246,7 +246,7 @@ var ir = function(e, o) {
|
|
|
246
246
|
o.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
247
247
|
return r;
|
|
248
248
|
};
|
|
249
|
-
const
|
|
249
|
+
const _e = V((e, o) => {
|
|
250
250
|
var { title: r, titleId: t } = e, n = ir(e, ["title", "titleId"]);
|
|
251
251
|
let s = W();
|
|
252
252
|
return s = r ? t || "title-" + s : void 0, C.createElement(
|
|
@@ -255,12 +255,12 @@ const ye = V((e, o) => {
|
|
|
255
255
|
r ? C.createElement("title", { id: s }, r) : null,
|
|
256
256
|
C.createElement("path", { fill: "currentColor", d: "M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z" })
|
|
257
257
|
);
|
|
258
|
-
}),
|
|
259
|
-
icon:
|
|
260
|
-
shape:
|
|
261
|
-
svg:
|
|
262
|
-
image:
|
|
263
|
-
},
|
|
258
|
+
}), cr = "_icon_1y3dz_1", dr = "_shape_1y3dz_9", ur = "_svg_1y3dz_14", mr = "_image_1y3dz_15", ve = {
|
|
259
|
+
icon: cr,
|
|
260
|
+
shape: dr,
|
|
261
|
+
svg: ur,
|
|
262
|
+
image: mr
|
|
263
|
+
}, Se = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), J = ({
|
|
264
264
|
loading: e,
|
|
265
265
|
altText: o,
|
|
266
266
|
svgElement: r,
|
|
@@ -270,19 +270,19 @@ const ye = V((e, o) => {
|
|
|
270
270
|
className: c,
|
|
271
271
|
style: u,
|
|
272
272
|
children: d
|
|
273
|
-
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": n, className: K(ve.icon, c), style: u, children: /* @__PURE__ */ _(
|
|
273
|
+
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": n, className: K(ve.icon, c), style: u, children: /* @__PURE__ */ _(ke, { loading: e, variant: "circle", className: ve.shape, children: [
|
|
274
274
|
/* @__PURE__ */ a("span", { className: ve.shape }),
|
|
275
275
|
r && /* @__PURE__ */ a(r, { "aria-hidden": "true", "alt-label": o, className: ve.svg }),
|
|
276
276
|
s && /* @__PURE__ */ a("img", { src: s, alt: o, className: ve.image }),
|
|
277
277
|
d
|
|
278
|
-
] }) }),
|
|
279
|
-
r && /* @__PURE__ */ a(
|
|
278
|
+
] }) }), Ue = ({ size: e, color: o, label: r, helperText: t, children: n, ...s }) => /* @__PURE__ */ _(Pt, { size: e, color: o, ...s, children: [
|
|
279
|
+
r && /* @__PURE__ */ a(St, { size: e, children: r }),
|
|
280
280
|
n,
|
|
281
|
-
t && /* @__PURE__ */ a(
|
|
282
|
-
] }),
|
|
283
|
-
search:
|
|
284
|
-
searchInput:
|
|
285
|
-
},
|
|
281
|
+
t && /* @__PURE__ */ a(et, { size: "xs", children: t })
|
|
282
|
+
] }), fr = "_search_18jfe_1", pr = "_searchInput_18jfe_8", Re = {
|
|
283
|
+
search: fr,
|
|
284
|
+
searchInput: pr
|
|
285
|
+
}, lt = ({
|
|
286
286
|
style: e,
|
|
287
287
|
index: o,
|
|
288
288
|
name: r,
|
|
@@ -292,19 +292,19 @@ const ye = V((e, o) => {
|
|
|
292
292
|
onChange: c,
|
|
293
293
|
onClear: u,
|
|
294
294
|
onNavigate: d,
|
|
295
|
-
combobox:
|
|
295
|
+
combobox: l = !1,
|
|
296
296
|
listId: f,
|
|
297
|
-
"aria-activedescendant":
|
|
297
|
+
"aria-activedescendant": i,
|
|
298
298
|
onKeyDown: g,
|
|
299
299
|
onInput: v,
|
|
300
300
|
onFocus: y,
|
|
301
301
|
...w
|
|
302
|
-
}) => /* @__PURE__ */ a("li", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children:
|
|
302
|
+
}) => /* @__PURE__ */ a("li", { className: Re.search, style: e, "data-index": o, "data-menu-search": "true", children: l ? (
|
|
303
303
|
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
304
304
|
// biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
|
|
305
305
|
// biome-ignore lint/a11y/useSemanticElements: <explanation>
|
|
306
306
|
/* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns": f, children: /* @__PURE__ */ a(
|
|
307
|
-
|
|
307
|
+
Be,
|
|
308
308
|
{
|
|
309
309
|
size: "xs",
|
|
310
310
|
className: Re.searchInput,
|
|
@@ -319,7 +319,7 @@ const ye = V((e, o) => {
|
|
|
319
319
|
autoCapitalize: "off",
|
|
320
320
|
"aria-autocomplete": "list",
|
|
321
321
|
"aria-controls": f,
|
|
322
|
-
"aria-activedescendant":
|
|
322
|
+
"aria-activedescendant": i,
|
|
323
323
|
autoFocus: !0,
|
|
324
324
|
onKeyDown: (I) => {
|
|
325
325
|
(I.key === "ArrowUp" || I.key === "ArrowDown") && (I.preventDefault(), d?.()), g?.(I);
|
|
@@ -330,7 +330,7 @@ const ye = V((e, o) => {
|
|
|
330
330
|
}
|
|
331
331
|
) })
|
|
332
332
|
) : /* @__PURE__ */ a(
|
|
333
|
-
|
|
333
|
+
Be,
|
|
334
334
|
{
|
|
335
335
|
size: "xs",
|
|
336
336
|
className: Re.searchInput,
|
|
@@ -361,16 +361,16 @@ const ye = V((e, o) => {
|
|
|
361
361
|
autoActivateFirstItem: c = !0,
|
|
362
362
|
autoFocusList: u = !0,
|
|
363
363
|
announceNoResults: d = !1,
|
|
364
|
-
search:
|
|
364
|
+
search: l,
|
|
365
365
|
items: f,
|
|
366
|
-
groups:
|
|
366
|
+
groups: i = {},
|
|
367
367
|
size: g,
|
|
368
368
|
id: v,
|
|
369
369
|
color: y,
|
|
370
370
|
variant: w,
|
|
371
371
|
scrollRefStyles: I = {},
|
|
372
372
|
keyboardEvents: N = !1,
|
|
373
|
-
onSelect:
|
|
373
|
+
onSelect: $ = () => {
|
|
374
374
|
},
|
|
375
375
|
onActiveItemIdChange: k
|
|
376
376
|
}) => {
|
|
@@ -382,14 +382,14 @@ const ye = V((e, o) => {
|
|
|
382
382
|
id: h.id || `${v}-item-${S}`
|
|
383
383
|
})),
|
|
384
384
|
[f, v]
|
|
385
|
-
),
|
|
385
|
+
), R = te(null), { menu: p, setActiveIndex: z, activeItem: P } = Le({
|
|
386
386
|
items: A,
|
|
387
|
-
groups:
|
|
387
|
+
groups: i,
|
|
388
388
|
groupByKey: "groupId",
|
|
389
389
|
keyboardEvents: N,
|
|
390
390
|
autoActivateFirstItem: c,
|
|
391
|
-
onSelect:
|
|
392
|
-
ref:
|
|
391
|
+
onSelect: $,
|
|
392
|
+
ref: R
|
|
393
393
|
});
|
|
394
394
|
return X(() => {
|
|
395
395
|
k?.(P?.id);
|
|
@@ -399,73 +399,73 @@ const ye = V((e, o) => {
|
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
401
|
const h = E.current;
|
|
402
|
-
E.current = n, n && !h &&
|
|
402
|
+
E.current = n, n && !h && R.current?.scrollTo({ top: 0 });
|
|
403
403
|
}, [n, s]), X(() => {
|
|
404
404
|
const h = D.current;
|
|
405
|
-
D.current = n, !(!N ||
|
|
406
|
-
}, [n, N,
|
|
405
|
+
D.current = n, !(!N || l || !u) && n && !h && requestAnimationFrame(() => R.current?.focus?.({ preventScroll: !0 }));
|
|
406
|
+
}, [n, N, l]), X(() => {
|
|
407
407
|
if (m && d) {
|
|
408
408
|
z(0), b(!0);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
411
|
}, [d, m, z]), /* @__PURE__ */ _(
|
|
412
|
-
|
|
412
|
+
Pe,
|
|
413
413
|
{
|
|
414
414
|
variant: w,
|
|
415
415
|
expanded: r,
|
|
416
|
-
ref:
|
|
416
|
+
ref: R,
|
|
417
417
|
style: I,
|
|
418
418
|
id: O,
|
|
419
419
|
role: m ? "listbox" : void 0,
|
|
420
420
|
tabIndex: N ? -1 : void 0,
|
|
421
421
|
children: [
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
l && /* @__PURE__ */ a(
|
|
423
|
+
lt,
|
|
424
424
|
{
|
|
425
|
-
...
|
|
425
|
+
...l,
|
|
426
426
|
combobox: m,
|
|
427
427
|
listId: O,
|
|
428
428
|
"aria-activedescendant": m && M ? P?.id : void 0,
|
|
429
429
|
onNavigate: m ? () => b(!0) : void 0,
|
|
430
430
|
onChange: (h) => {
|
|
431
|
-
b(!1),
|
|
431
|
+
b(!1), l.onChange?.(h);
|
|
432
432
|
},
|
|
433
433
|
onFocus: (h) => {
|
|
434
|
-
b(!1),
|
|
434
|
+
b(!1), l.onFocus?.(h);
|
|
435
435
|
},
|
|
436
436
|
onInput: (h) => {
|
|
437
|
-
b(!1),
|
|
437
|
+
b(!1), l.onInput?.(h);
|
|
438
438
|
},
|
|
439
439
|
onKeyDown: (h) => {
|
|
440
440
|
const S = h.key === "ArrowUp" || h.key === "ArrowDown", G = h.key.length === 1 || h.key === "Backspace" || h.key === "Delete";
|
|
441
|
-
m && !S && G && b(!1),
|
|
441
|
+
m && !S && G && b(!1), l.onKeyDown?.(h);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
),
|
|
445
445
|
p.map((h, S) => {
|
|
446
446
|
const G = h?.props || {}, { title: H, hidden: F = !1, divider: Y = !0 } = G;
|
|
447
|
-
return /* @__PURE__ */ _(
|
|
448
|
-
(e > 0 || S) && Y ? /* @__PURE__ */ a(
|
|
449
|
-
/* @__PURE__ */ a(
|
|
450
|
-
H && /* @__PURE__ */ a(
|
|
447
|
+
return /* @__PURE__ */ _(gt, { children: [
|
|
448
|
+
(e > 0 || S) && Y ? /* @__PURE__ */ a(nt, {}) : "",
|
|
449
|
+
/* @__PURE__ */ a(rt, { hidden: F, children: /* @__PURE__ */ _(Pe, { role: "presentation", children: [
|
|
450
|
+
H && /* @__PURE__ */ a(ot, { title: H, level: e }),
|
|
451
451
|
h?.items.filter((Z) => !Z.props?.hidden).map((Z, x) => {
|
|
452
|
-
const { active: j, onMouseEnter: L } = Z, { groupId: re, ...B } = Z.props || {}, { expanded: ae } = B, ue = Array.isArray(B?.items) && B.items.length > 0,
|
|
452
|
+
const { active: j, onMouseEnter: L } = Z, { groupId: re, ...B } = Z.props || {}, { expanded: ae } = B, ue = Array.isArray(B?.items) && B.items.length > 0, xe = B.role === "checkbox" || B.role === "radio", $e = m && !xe ? "option" : B.role;
|
|
453
453
|
return /* @__PURE__ */ _(
|
|
454
|
-
|
|
454
|
+
tt,
|
|
455
455
|
{
|
|
456
456
|
expanded: ae,
|
|
457
457
|
onMouseLeave: () => z(-1),
|
|
458
|
-
role: m ||
|
|
458
|
+
role: m || xe ? "presentation" : void 0,
|
|
459
459
|
children: [
|
|
460
460
|
/* @__PURE__ */ a(
|
|
461
|
-
|
|
461
|
+
ut,
|
|
462
462
|
{
|
|
463
463
|
...B,
|
|
464
464
|
size: B?.size || G?.size || g,
|
|
465
465
|
color: B?.color || G?.color || y,
|
|
466
466
|
variant: B?.variant || G?.variant || w,
|
|
467
467
|
active: j,
|
|
468
|
-
role:
|
|
468
|
+
role: $e,
|
|
469
469
|
selected: B.selected,
|
|
470
470
|
tabIndex: B?.disabled || N ? -1 : B.tabIndex ?? 0,
|
|
471
471
|
onMouseEnter: L,
|
|
@@ -482,7 +482,7 @@ const ye = V((e, o) => {
|
|
|
482
482
|
level: e + 1,
|
|
483
483
|
maxLevels: o,
|
|
484
484
|
items: B?.items,
|
|
485
|
-
groups:
|
|
485
|
+
groups: i,
|
|
486
486
|
size: g,
|
|
487
487
|
color: y,
|
|
488
488
|
variant: w
|
|
@@ -499,22 +499,22 @@ const ye = V((e, o) => {
|
|
|
499
499
|
]
|
|
500
500
|
}
|
|
501
501
|
);
|
|
502
|
-
},
|
|
502
|
+
}, hr = (e) => {
|
|
503
503
|
const o = te(null), r = te(null), [t, n] = se(0), {
|
|
504
504
|
search: s,
|
|
505
505
|
items: c,
|
|
506
506
|
groups: u = {},
|
|
507
507
|
size: d,
|
|
508
|
-
color:
|
|
508
|
+
color: l,
|
|
509
509
|
variant: f,
|
|
510
|
-
keyboardEvents:
|
|
510
|
+
keyboardEvents: i,
|
|
511
511
|
scrollRefStyles: g = {},
|
|
512
512
|
id: v,
|
|
513
513
|
expanded: y,
|
|
514
514
|
a11yMode: w = "menu",
|
|
515
515
|
open: I,
|
|
516
516
|
scrollToTopOnOpen: N = !1,
|
|
517
|
-
autoActivateFirstItem:
|
|
517
|
+
autoActivateFirstItem: $ = !0,
|
|
518
518
|
announceNoResults: k = !1,
|
|
519
519
|
onActiveItemIdChange: m
|
|
520
520
|
} = e, O = w === "combobox", E = O && v ? `${v}-listbox` : v, D = te(I), [M, b] = se(!1), A = ce(
|
|
@@ -523,18 +523,18 @@ const ye = V((e, o) => {
|
|
|
523
523
|
id: x.id || `${v}-item-${j}`
|
|
524
524
|
})),
|
|
525
525
|
[c, v]
|
|
526
|
-
), { menu:
|
|
526
|
+
), { menu: R, activeItem: p, setActiveIndex: z, activeIndex: P } = Le({
|
|
527
527
|
items: A,
|
|
528
528
|
groups: u,
|
|
529
529
|
groupByKey: "groupId",
|
|
530
|
-
keyboardEvents:
|
|
531
|
-
autoActivateFirstItem:
|
|
530
|
+
keyboardEvents: i,
|
|
531
|
+
autoActivateFirstItem: $,
|
|
532
532
|
ref: o
|
|
533
533
|
}), { flatMenu: h, virtualizer: S, scrollMaxHeight: G } = Rt({
|
|
534
|
-
menu:
|
|
534
|
+
menu: R,
|
|
535
535
|
scrollRef: o
|
|
536
536
|
});
|
|
537
|
-
|
|
537
|
+
Me(() => {
|
|
538
538
|
const x = r.current;
|
|
539
539
|
if (!x) return;
|
|
540
540
|
const j = Math.round(x.offsetTop);
|
|
@@ -551,16 +551,16 @@ const ye = V((e, o) => {
|
|
|
551
551
|
return L;
|
|
552
552
|
return -1;
|
|
553
553
|
}, [p?.id, P, h]), F = te(null);
|
|
554
|
-
|
|
554
|
+
Me(() => {
|
|
555
555
|
const x = F?.current, j = typeof x == "number" ? H <= x : !1;
|
|
556
556
|
F.current = H;
|
|
557
557
|
const L = j ? H : H + 2;
|
|
558
558
|
if (!j) {
|
|
559
559
|
const ue = S.getOffsetForIndex(L, "auto");
|
|
560
560
|
if (!ue) return;
|
|
561
|
-
const [
|
|
562
|
-
if (
|
|
563
|
-
S.scrollToOffset(
|
|
561
|
+
const [xe, $e] = ue;
|
|
562
|
+
if ($e === "auto") return;
|
|
563
|
+
S.scrollToOffset(xe + t + 10, { align: "start" });
|
|
564
564
|
return;
|
|
565
565
|
}
|
|
566
566
|
if (H <= 3) {
|
|
@@ -604,18 +604,18 @@ const ye = V((e, o) => {
|
|
|
604
604
|
...g
|
|
605
605
|
};
|
|
606
606
|
return /* @__PURE__ */ _(
|
|
607
|
-
|
|
607
|
+
Pe,
|
|
608
608
|
{
|
|
609
609
|
ref: o,
|
|
610
610
|
style: Z,
|
|
611
611
|
variant: f,
|
|
612
|
-
color:
|
|
612
|
+
color: l,
|
|
613
613
|
expanded: y,
|
|
614
614
|
id: E,
|
|
615
615
|
role: O ? "listbox" : void 0,
|
|
616
616
|
children: [
|
|
617
617
|
s && /* @__PURE__ */ a(
|
|
618
|
-
|
|
618
|
+
lt,
|
|
619
619
|
{
|
|
620
620
|
...s,
|
|
621
621
|
combobox: O,
|
|
@@ -638,7 +638,7 @@ const ye = V((e, o) => {
|
|
|
638
638
|
}
|
|
639
639
|
),
|
|
640
640
|
/* @__PURE__ */ a(
|
|
641
|
-
|
|
641
|
+
rt,
|
|
642
642
|
{
|
|
643
643
|
ref: r,
|
|
644
644
|
style: {
|
|
@@ -646,7 +646,7 @@ const ye = V((e, o) => {
|
|
|
646
646
|
height: `${S.getTotalSize()}px`,
|
|
647
647
|
width: "100%"
|
|
648
648
|
},
|
|
649
|
-
children: /* @__PURE__ */ a(
|
|
649
|
+
children: /* @__PURE__ */ a(Pe, { style: { width: "100%", minWidth: "100%" }, children: S.getVirtualItems().map((x) => {
|
|
650
650
|
const j = h[x.index];
|
|
651
651
|
if (!j) return null;
|
|
652
652
|
const L = {
|
|
@@ -664,7 +664,7 @@ const ye = V((e, o) => {
|
|
|
664
664
|
switch (j.type) {
|
|
665
665
|
case "divider":
|
|
666
666
|
return /* @__PURE__ */ a(
|
|
667
|
-
|
|
667
|
+
nt,
|
|
668
668
|
{
|
|
669
669
|
...re,
|
|
670
670
|
style: { ...L, padding: "0.25rem 0" }
|
|
@@ -672,27 +672,27 @@ const ye = V((e, o) => {
|
|
|
672
672
|
x.key
|
|
673
673
|
);
|
|
674
674
|
case "header":
|
|
675
|
-
return /* @__PURE__ */ a(
|
|
675
|
+
return /* @__PURE__ */ a(ot, { ...re, title: j.title || "", level: 1 }, x.key);
|
|
676
676
|
default: {
|
|
677
677
|
const B = j.itemProps?.role === "checkbox" || j.itemProps?.role === "radio", ae = O && !B ? "option" : j.itemProps?.role;
|
|
678
678
|
return /* @__PURE__ */ a(
|
|
679
|
-
|
|
679
|
+
tt,
|
|
680
680
|
{
|
|
681
681
|
...re,
|
|
682
682
|
role: O || B ? "presentation" : "menuitem",
|
|
683
683
|
children: /* @__PURE__ */ a(
|
|
684
|
-
|
|
684
|
+
ut,
|
|
685
685
|
{
|
|
686
686
|
...j.itemProps || {},
|
|
687
687
|
size: j.itemProps?.size || d,
|
|
688
|
-
color: j.itemProps?.color ||
|
|
688
|
+
color: j.itemProps?.color || l,
|
|
689
689
|
variant: j.itemProps?.variant || f,
|
|
690
690
|
active: j.active,
|
|
691
691
|
role: ae,
|
|
692
692
|
selected: j.itemProps?.selected,
|
|
693
693
|
"aria-posinset": O ? Y.positions.get(x.index) : void 0,
|
|
694
694
|
"aria-setsize": O ? Y.total : void 0,
|
|
695
|
-
tabIndex: j.itemProps?.disabled ||
|
|
695
|
+
tabIndex: j.itemProps?.disabled || i ? -1 : 0
|
|
696
696
|
}
|
|
697
697
|
)
|
|
698
698
|
},
|
|
@@ -706,7 +706,7 @@ const ye = V((e, o) => {
|
|
|
706
706
|
]
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
|
-
},
|
|
709
|
+
}, vr = {
|
|
710
710
|
currentId: "",
|
|
711
711
|
previousId: "",
|
|
712
712
|
debug: !1,
|
|
@@ -717,10 +717,10 @@ const ye = V((e, o) => {
|
|
|
717
717
|
console.warn("setPreviousId called outside of RootProvider context");
|
|
718
718
|
},
|
|
719
719
|
languageCode: "nb"
|
|
720
|
-
},
|
|
720
|
+
}, ct = yt(vr), Lo = ({ children: e, initialValue: o, debug: r, languageCode: t }) => {
|
|
721
721
|
const [n, s] = se(o?.currentId || ""), [c, u] = se(o?.previousId || "");
|
|
722
722
|
return /* @__PURE__ */ a(
|
|
723
|
-
|
|
723
|
+
ct.Provider,
|
|
724
724
|
{
|
|
725
725
|
value: {
|
|
726
726
|
currentId: n,
|
|
@@ -730,31 +730,31 @@ const ye = V((e, o) => {
|
|
|
730
730
|
debug: r,
|
|
731
731
|
languageCode: t
|
|
732
732
|
},
|
|
733
|
-
children: /* @__PURE__ */ a(
|
|
733
|
+
children: /* @__PURE__ */ a(Et, { children: e })
|
|
734
734
|
}
|
|
735
735
|
);
|
|
736
|
-
},
|
|
737
|
-
const e =
|
|
736
|
+
}, br = () => {
|
|
737
|
+
const e = _t(ct);
|
|
738
738
|
if (!e)
|
|
739
739
|
throw new Error("useRootContext must be used within a RootProvider.");
|
|
740
|
-
const { currentId: o, setCurrentId: r, debug: t, setPreviousId: n, previousId: s, languageCode: c } = e, u = (
|
|
741
|
-
o && n(o), r(
|
|
742
|
-
}, d = (
|
|
743
|
-
t && console.debug(`useRootContext: toggleId called with value: ${
|
|
744
|
-
},
|
|
740
|
+
const { currentId: o, setCurrentId: r, debug: t, setPreviousId: n, previousId: s, languageCode: c } = e, u = (i) => {
|
|
741
|
+
o && n(o), r(i);
|
|
742
|
+
}, d = (i) => {
|
|
743
|
+
t && console.debug(`useRootContext: toggleId called with value: ${i}`), u(o === i ? "" : i);
|
|
744
|
+
}, l = () => {
|
|
745
745
|
t && console.debug("useRootContext: closeAll called"), u("");
|
|
746
746
|
};
|
|
747
|
-
return
|
|
747
|
+
return wt(l), {
|
|
748
748
|
currentId: o,
|
|
749
749
|
previousId: s,
|
|
750
750
|
toggleId: d,
|
|
751
|
-
closeAll:
|
|
752
|
-
openId: (
|
|
753
|
-
t && console.debug(`useRootContext: openId called with value: ${
|
|
751
|
+
closeAll: l,
|
|
752
|
+
openId: (i) => {
|
|
753
|
+
t && console.debug(`useRootContext: openId called with value: ${i}`), u(i);
|
|
754
754
|
},
|
|
755
755
|
languageCode: c
|
|
756
756
|
};
|
|
757
|
-
},
|
|
757
|
+
}, gr = (e) => {
|
|
758
758
|
switch (e) {
|
|
759
759
|
case "nn":
|
|
760
760
|
return {
|
|
@@ -778,7 +778,7 @@ const ye = V((e, o) => {
|
|
|
778
778
|
noResults: "Ingen treff"
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
|
-
},
|
|
781
|
+
}, yr = (e) => {
|
|
782
782
|
const o = /* @__PURE__ */ new Set(), r = [];
|
|
783
783
|
for (const t of e) {
|
|
784
784
|
const n = t.id;
|
|
@@ -789,7 +789,7 @@ const ye = V((e, o) => {
|
|
|
789
789
|
o.has(n) || (o.add(n), r.push(t));
|
|
790
790
|
}
|
|
791
791
|
return r;
|
|
792
|
-
},
|
|
792
|
+
}, _r = ({
|
|
793
793
|
placeholder: e,
|
|
794
794
|
name: o,
|
|
795
795
|
onChange: r,
|
|
@@ -798,24 +798,24 @@ const ye = V((e, o) => {
|
|
|
798
798
|
items: s = [],
|
|
799
799
|
groups: c = {}
|
|
800
800
|
}) => {
|
|
801
|
-
const { languageCode: u } =
|
|
801
|
+
const { languageCode: u } = br(), d = T.useMemo(() => gr(u), [u]), [l, f] = T.useState(""), i = T.useCallback(
|
|
802
802
|
(P) => {
|
|
803
803
|
f(P.target.value), r?.(P);
|
|
804
804
|
},
|
|
805
805
|
[r]
|
|
806
806
|
), g = T.useCallback(() => {
|
|
807
807
|
f(""), t?.();
|
|
808
|
-
}, [t]), v = T.useMemo(() =>
|
|
808
|
+
}, [t]), v = T.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), y = v.length > 0, w = T.useMemo(() => v.toLowerCase(), [v]), I = T.useMemo(() => v ? v.split(" ") : [], [v]), N = T.useMemo(
|
|
809
809
|
() => ({
|
|
810
810
|
placeholder: e ?? d.placeholder,
|
|
811
811
|
name: o ?? "search",
|
|
812
|
-
value:
|
|
813
|
-
onChange:
|
|
812
|
+
value: l,
|
|
813
|
+
onChange: i,
|
|
814
814
|
onClear: g,
|
|
815
815
|
clearButtonAltText: n
|
|
816
816
|
}),
|
|
817
|
-
[e, d.placeholder, o,
|
|
818
|
-
),
|
|
817
|
+
[e, d.placeholder, o, l, i, g, n]
|
|
818
|
+
), $ = T.useMemo(
|
|
819
819
|
() => s.map((P) => {
|
|
820
820
|
const h = P?.searchWords?.length ? P.searchWords : [P?.title, P?.description].filter(Boolean);
|
|
821
821
|
return {
|
|
@@ -831,7 +831,7 @@ const ye = V((e, o) => {
|
|
|
831
831
|
"aria-disabled": !0,
|
|
832
832
|
title: d.noResults,
|
|
833
833
|
groupId: "emptySearch",
|
|
834
|
-
icon:
|
|
834
|
+
icon: Mt,
|
|
835
835
|
size: "sm",
|
|
836
836
|
as: "div"
|
|
837
837
|
}
|
|
@@ -843,14 +843,14 @@ const ye = V((e, o) => {
|
|
|
843
843
|
}, [s, k]), { selectedItems: O, results: E } = T.useMemo(() => {
|
|
844
844
|
if (!y) return { selectedItems: [], results: [] };
|
|
845
845
|
const P = [], h = [];
|
|
846
|
-
for (const S of
|
|
846
|
+
for (const S of $)
|
|
847
847
|
S.checked === !0 && P.push({ ...S, groupId: "selected" }), (S.searchWords ?? []).some((F) => String(F).toLowerCase().includes(w)) && h.push({
|
|
848
848
|
...S,
|
|
849
849
|
groupId: "search",
|
|
850
850
|
highlightWords: I
|
|
851
851
|
});
|
|
852
852
|
return { selectedItems: P, results: h };
|
|
853
|
-
}, [y,
|
|
853
|
+
}, [y, $, w, I]), D = E.length, M = O.length, b = T.useMemo(
|
|
854
854
|
() => ({
|
|
855
855
|
search: {
|
|
856
856
|
hidden: !0,
|
|
@@ -884,7 +884,7 @@ const ye = V((e, o) => {
|
|
|
884
884
|
}
|
|
885
885
|
}),
|
|
886
886
|
[b, y, d, D, M]
|
|
887
|
-
),
|
|
887
|
+
), R = T.useMemo(() => y ? yr([...E, ...O]) : [], [y, E, O]), p = T.useMemo(() => [...m || [], ...O || []], [m, O]), z = T.useMemo(() => y ? D ? R : p : s, [y, s, D, R, p]);
|
|
888
888
|
return {
|
|
889
889
|
search: N,
|
|
890
890
|
results: E,
|
|
@@ -893,7 +893,7 @@ const ye = V((e, o) => {
|
|
|
893
893
|
items: z,
|
|
894
894
|
groups: A
|
|
895
895
|
};
|
|
896
|
-
},
|
|
896
|
+
}, dt = ({
|
|
897
897
|
searchable: e,
|
|
898
898
|
search: o,
|
|
899
899
|
items: r = [],
|
|
@@ -903,21 +903,21 @@ const ye = V((e, o) => {
|
|
|
903
903
|
level: c = 0,
|
|
904
904
|
maxLevels: u = 3,
|
|
905
905
|
virtualized: d = !1,
|
|
906
|
-
keyboardEvents:
|
|
906
|
+
keyboardEvents: l = !1,
|
|
907
907
|
scrollRefStyles: f = {},
|
|
908
|
-
onActiveItemIdChange:
|
|
908
|
+
onActiveItemIdChange: i,
|
|
909
909
|
a11yMode: g = "menu",
|
|
910
910
|
open: v,
|
|
911
911
|
scrollToTopOnOpen: y,
|
|
912
912
|
autoFocusList: w,
|
|
913
913
|
id: I
|
|
914
914
|
}) => {
|
|
915
|
-
const N =
|
|
915
|
+
const N = _r({ ...o, items: r, groups: t }), $ = e ? N.search : o, k = e && N.hasQuery && N.resultCount === 0, m = e ? N.items : r, O = e ? { ...t, ...N.groups } : t, E = g !== "combobox";
|
|
916
916
|
return d ? /* @__PURE__ */ a(
|
|
917
|
-
|
|
917
|
+
hr,
|
|
918
918
|
{
|
|
919
919
|
id: I,
|
|
920
|
-
search:
|
|
920
|
+
search: $,
|
|
921
921
|
announceNoResults: k,
|
|
922
922
|
items: m,
|
|
923
923
|
groups: O,
|
|
@@ -925,9 +925,9 @@ const ye = V((e, o) => {
|
|
|
925
925
|
size: s,
|
|
926
926
|
level: c,
|
|
927
927
|
maxLevels: u,
|
|
928
|
-
keyboardEvents:
|
|
928
|
+
keyboardEvents: l,
|
|
929
929
|
scrollRefStyles: f,
|
|
930
|
-
onActiveItemIdChange:
|
|
930
|
+
onActiveItemIdChange: i,
|
|
931
931
|
a11yMode: g,
|
|
932
932
|
open: v,
|
|
933
933
|
scrollToTopOnOpen: y,
|
|
@@ -938,7 +938,7 @@ const ye = V((e, o) => {
|
|
|
938
938
|
it,
|
|
939
939
|
{
|
|
940
940
|
id: I,
|
|
941
|
-
search:
|
|
941
|
+
search: $,
|
|
942
942
|
announceNoResults: k,
|
|
943
943
|
items: m,
|
|
944
944
|
groups: O,
|
|
@@ -946,9 +946,9 @@ const ye = V((e, o) => {
|
|
|
946
946
|
size: s,
|
|
947
947
|
level: c,
|
|
948
948
|
maxLevels: u,
|
|
949
|
-
keyboardEvents:
|
|
949
|
+
keyboardEvents: l,
|
|
950
950
|
scrollRefStyles: f,
|
|
951
|
-
onActiveItemIdChange:
|
|
951
|
+
onActiveItemIdChange: i,
|
|
952
952
|
a11yMode: g,
|
|
953
953
|
open: v,
|
|
954
954
|
scrollToTopOnOpen: y,
|
|
@@ -956,27 +956,27 @@ const ye = V((e, o) => {
|
|
|
956
956
|
autoFocusList: w
|
|
957
957
|
}
|
|
958
958
|
);
|
|
959
|
-
},
|
|
960
|
-
media:
|
|
961
|
-
icon:
|
|
962
|
-
avatar:
|
|
963
|
-
avatarGroup:
|
|
959
|
+
}, wr = "_media_1089b_3", Ir = "_icon_1089b_10", xr = "_avatar_1089b_14", Or = "_avatarGroup_1089b_18", le = {
|
|
960
|
+
media: wr,
|
|
961
|
+
icon: Ir,
|
|
962
|
+
avatar: xr,
|
|
963
|
+
avatarGroup: Or
|
|
964
964
|
};
|
|
965
|
-
function
|
|
966
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ||
|
|
965
|
+
function Nr(e) {
|
|
966
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
967
967
|
}
|
|
968
|
-
const
|
|
968
|
+
const Ve = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
969
969
|
if (!r)
|
|
970
970
|
return null;
|
|
971
971
|
if (o)
|
|
972
|
-
return /* @__PURE__ */ a("div", { className: K(
|
|
973
|
-
const n =
|
|
974
|
-
return /* @__PURE__ */ _("div", { className: K(
|
|
975
|
-
|
|
972
|
+
return /* @__PURE__ */ a("div", { className: K(le.icon, e), children: /* @__PURE__ */ a(J, { svgElement: _e, loading: !0 }) });
|
|
973
|
+
const n = Ee(r) ? "avatar" : Ce(r) ? "avatarGroup" : (Se(r), "icon");
|
|
974
|
+
return /* @__PURE__ */ _("div", { className: K(le.media, e), "data-variant": n, children: [
|
|
975
|
+
Ee(r) && /* @__PURE__ */ a(je, { ...r, className: le.avatar }) || Ce(r) && /* @__PURE__ */ a(he, { ...r, className: le.avatarGroup }) || Se(r) && /* @__PURE__ */ a(J, { ...r, className: le.icon }) || Nr(r) && /* @__PURE__ */ a(J, { className: le.icon, children: r }) || /* @__PURE__ */ a(J, { className: le.icon, svgElement: r }),
|
|
976
976
|
t
|
|
977
977
|
] });
|
|
978
|
-
},
|
|
979
|
-
heading:
|
|
978
|
+
}, kr = "_heading_1dyne_1", Cr = {
|
|
979
|
+
heading: kr
|
|
980
980
|
}, oe = ({
|
|
981
981
|
id: e,
|
|
982
982
|
loading: o,
|
|
@@ -987,30 +987,30 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
987
987
|
weight: c = "medium",
|
|
988
988
|
color: u,
|
|
989
989
|
variant: d,
|
|
990
|
-
maxRows:
|
|
990
|
+
maxRows: l,
|
|
991
991
|
className: f,
|
|
992
|
-
style:
|
|
992
|
+
style: i,
|
|
993
993
|
children: g
|
|
994
994
|
}) => {
|
|
995
|
-
const v = t, y =
|
|
995
|
+
const v = t, y = xt(g, r || []);
|
|
996
996
|
return /* @__PURE__ */ a(
|
|
997
997
|
v,
|
|
998
998
|
{
|
|
999
999
|
id: e,
|
|
1000
|
-
className: K(
|
|
1001
|
-
style:
|
|
1000
|
+
className: K(Cr.heading, f),
|
|
1001
|
+
style: i,
|
|
1002
1002
|
"data-size": n,
|
|
1003
1003
|
"data-leading": s,
|
|
1004
1004
|
"data-weight": c,
|
|
1005
1005
|
"data-color": u,
|
|
1006
1006
|
"data-variant": n === "xxs" && "default" || d,
|
|
1007
|
-
"data-max-rows":
|
|
1008
|
-
children: /* @__PURE__ */ a(
|
|
1007
|
+
"data-max-rows": l,
|
|
1008
|
+
children: /* @__PURE__ */ a(ke, { loading: o, children: y })
|
|
1009
1009
|
}
|
|
1010
1010
|
);
|
|
1011
|
-
},
|
|
1012
|
-
label:
|
|
1013
|
-
},
|
|
1011
|
+
}, Er = "_label_e5q28_3", Pr = {
|
|
1012
|
+
label: Er
|
|
1013
|
+
}, We = ({
|
|
1014
1014
|
className: e,
|
|
1015
1015
|
title: o,
|
|
1016
1016
|
titleProps: r = {},
|
|
@@ -1019,7 +1019,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1019
1019
|
highlightWords: s,
|
|
1020
1020
|
loading: c,
|
|
1021
1021
|
children: u
|
|
1022
|
-
}) => /* @__PURE__ */ a("span", { className: K(
|
|
1022
|
+
}) => /* @__PURE__ */ a("span", { className: K(Pr.label, e), children: u || /* @__PURE__ */ _(pe, { children: [
|
|
1023
1023
|
o && /* @__PURE__ */ a(oe, { ...r, as: "span", loading: c, highlightWords: s, maxRows: 2, children: o }),
|
|
1024
1024
|
t && /* @__PURE__ */ a(
|
|
1025
1025
|
oe,
|
|
@@ -1034,15 +1034,15 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1034
1034
|
children: t
|
|
1035
1035
|
}
|
|
1036
1036
|
)
|
|
1037
|
-
] }) }),
|
|
1038
|
-
item:
|
|
1039
|
-
media:
|
|
1037
|
+
] }) }), Sr = ({ className: e, onClick: o, checked: r, onChange: t, ...n }) => /* @__PURE__ */ a(de, { className: e, size: "xs", variant: "ghost", icon: !0, rounded: !0, onClick: o, children: /* @__PURE__ */ a(Ae, { ...n, type: "checkbox", size: "xs", checked: r, onChange: t }) }), jr = "_item_h7sxa_3", $r = "_media_h7sxa_136", Rr = "_label_h7sxa_157", Mr = "_title_h7sxa_172", zr = "_description_h7sxa_176", Dr = "_count_h7sxa_188", Ar = "_linkIcon_h7sxa_196", q = {
|
|
1038
|
+
item: jr,
|
|
1039
|
+
media: $r,
|
|
1040
1040
|
label: Rr,
|
|
1041
|
-
title:
|
|
1042
|
-
description:
|
|
1043
|
-
count:
|
|
1044
|
-
linkIcon:
|
|
1045
|
-
},
|
|
1041
|
+
title: Mr,
|
|
1042
|
+
description: zr,
|
|
1043
|
+
count: Dr,
|
|
1044
|
+
linkIcon: Ar
|
|
1045
|
+
}, ut = ({
|
|
1046
1046
|
id: e,
|
|
1047
1047
|
groupId: o,
|
|
1048
1048
|
role: r = "menuItem",
|
|
@@ -1052,16 +1052,16 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1052
1052
|
onChange: c,
|
|
1053
1053
|
onKeyPress: u,
|
|
1054
1054
|
onMouseEnter: d,
|
|
1055
|
-
size:
|
|
1055
|
+
size: l = "sm",
|
|
1056
1056
|
variant: f,
|
|
1057
|
-
color:
|
|
1057
|
+
color: i,
|
|
1058
1058
|
name: g,
|
|
1059
1059
|
value: v,
|
|
1060
1060
|
checked: y,
|
|
1061
1061
|
icon: w,
|
|
1062
1062
|
label: I,
|
|
1063
1063
|
badge: N,
|
|
1064
|
-
controls:
|
|
1064
|
+
controls: $,
|
|
1065
1065
|
title: k,
|
|
1066
1066
|
description: m,
|
|
1067
1067
|
highlightWords: O,
|
|
@@ -1070,14 +1070,14 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1070
1070
|
disabled: M,
|
|
1071
1071
|
selected: b,
|
|
1072
1072
|
active: A,
|
|
1073
|
-
tabIndex:
|
|
1073
|
+
tabIndex: R = 0,
|
|
1074
1074
|
className: p,
|
|
1075
1075
|
"data-testid": z,
|
|
1076
1076
|
...P
|
|
1077
1077
|
}) => {
|
|
1078
|
-
const h = typeof I == "function" ? I() : I, S =
|
|
1078
|
+
const h = typeof I == "function" ? I() : I, S = $t(P);
|
|
1079
1079
|
if (r === "checkbox" || r === "radio") {
|
|
1080
|
-
const F = w || (y ?
|
|
1080
|
+
const F = w || (y ? at : lr);
|
|
1081
1081
|
return /* @__PURE__ */ _(
|
|
1082
1082
|
"label",
|
|
1083
1083
|
{
|
|
@@ -1086,9 +1086,9 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1086
1086
|
id: e,
|
|
1087
1087
|
"data-id": e,
|
|
1088
1088
|
"data-group-id": o,
|
|
1089
|
-
"data-size":
|
|
1089
|
+
"data-size": l,
|
|
1090
1090
|
"data-variant": f,
|
|
1091
|
-
"data-color":
|
|
1091
|
+
"data-color": i,
|
|
1092
1092
|
"data-active": A,
|
|
1093
1093
|
role: r,
|
|
1094
1094
|
"aria-disabled": M,
|
|
@@ -1102,7 +1102,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1102
1102
|
},
|
|
1103
1103
|
onClick: s,
|
|
1104
1104
|
onMouseEnter: d,
|
|
1105
|
-
tabIndex:
|
|
1105
|
+
tabIndex: R,
|
|
1106
1106
|
children: [
|
|
1107
1107
|
/* @__PURE__ */ a(
|
|
1108
1108
|
"input",
|
|
@@ -1117,9 +1117,9 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1117
1117
|
tabIndex: -1
|
|
1118
1118
|
}
|
|
1119
1119
|
),
|
|
1120
|
-
/* @__PURE__ */ a(
|
|
1120
|
+
/* @__PURE__ */ a(Ve, { icon: F, className: q.media }),
|
|
1121
1121
|
/* @__PURE__ */ a(
|
|
1122
|
-
|
|
1122
|
+
We,
|
|
1123
1123
|
{
|
|
1124
1124
|
className: q.label,
|
|
1125
1125
|
highlightWords: O,
|
|
@@ -1141,15 +1141,15 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1141
1141
|
children: h
|
|
1142
1142
|
}
|
|
1143
1143
|
),
|
|
1144
|
-
/* @__PURE__ */ _(
|
|
1145
|
-
N && /* @__PURE__ */ a(
|
|
1146
|
-
!M &&
|
|
1144
|
+
/* @__PURE__ */ _(De, { children: [
|
|
1145
|
+
N && /* @__PURE__ */ a(ye, { ...N }),
|
|
1146
|
+
!M && $
|
|
1147
1147
|
] })
|
|
1148
1148
|
]
|
|
1149
1149
|
}
|
|
1150
1150
|
);
|
|
1151
1151
|
}
|
|
1152
|
-
const G = t || (n ? "a" : "button"), H = D &&
|
|
1152
|
+
const G = t || (n ? "a" : "button"), H = D && st;
|
|
1153
1153
|
return /* @__PURE__ */ _(
|
|
1154
1154
|
G,
|
|
1155
1155
|
{
|
|
@@ -1158,9 +1158,9 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1158
1158
|
id: e,
|
|
1159
1159
|
"data-id": e,
|
|
1160
1160
|
"data-group-id": o,
|
|
1161
|
-
"data-size":
|
|
1161
|
+
"data-size": l,
|
|
1162
1162
|
"data-variant": f,
|
|
1163
|
-
"data-color":
|
|
1163
|
+
"data-color": i,
|
|
1164
1164
|
"data-active": A,
|
|
1165
1165
|
"aria-disabled": M,
|
|
1166
1166
|
...M ? { disabled: M } : {},
|
|
@@ -1173,13 +1173,13 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1173
1173
|
},
|
|
1174
1174
|
onClick: s,
|
|
1175
1175
|
onMouseEnter: d,
|
|
1176
|
-
tabIndex: M ? -1 :
|
|
1176
|
+
tabIndex: M ? -1 : R ?? 0,
|
|
1177
1177
|
role: r === "menuItem" ? "menuitem" : r,
|
|
1178
1178
|
...S,
|
|
1179
1179
|
children: [
|
|
1180
|
-
w && /* @__PURE__ */ a(
|
|
1180
|
+
w && /* @__PURE__ */ a(Ve, { icon: w, className: q.media }),
|
|
1181
1181
|
/* @__PURE__ */ a(
|
|
1182
|
-
|
|
1182
|
+
We,
|
|
1183
1183
|
{
|
|
1184
1184
|
className: q.label,
|
|
1185
1185
|
highlightWords: O,
|
|
@@ -1200,23 +1200,23 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1200
1200
|
children: h
|
|
1201
1201
|
}
|
|
1202
1202
|
),
|
|
1203
|
-
/* @__PURE__ */ _(
|
|
1204
|
-
N && /* @__PURE__ */ a(
|
|
1205
|
-
!M &&
|
|
1203
|
+
/* @__PURE__ */ _(De, { children: [
|
|
1204
|
+
N && /* @__PURE__ */ a(ye, { ...N }),
|
|
1205
|
+
!M && $,
|
|
1206
1206
|
D && /* @__PURE__ */ a(J, { svgElement: H, className: q.linkIcon })
|
|
1207
1207
|
] })
|
|
1208
1208
|
]
|
|
1209
1209
|
}
|
|
1210
1210
|
);
|
|
1211
|
-
},
|
|
1212
|
-
fieldContainer:
|
|
1213
|
-
field:
|
|
1214
|
-
icon:
|
|
1215
|
-
input:
|
|
1216
|
-
clear:
|
|
1217
|
-
clearButton:
|
|
1218
|
-
autocomplete:
|
|
1219
|
-
},
|
|
1211
|
+
}, Br = "_fieldContainer_1986v_1", Lr = "_field_1986v_1", Fr = "_icon_1986v_15", Tr = "_input_1986v_9", Gr = "_clear_1986v_61", Hr = "_clearButton_1986v_74", Kr = "_autocomplete_1986v_103", U = {
|
|
1212
|
+
fieldContainer: Br,
|
|
1213
|
+
field: Lr,
|
|
1214
|
+
icon: Fr,
|
|
1215
|
+
input: Tr,
|
|
1216
|
+
clear: Gr,
|
|
1217
|
+
clearButton: Hr,
|
|
1218
|
+
autocomplete: Kr
|
|
1219
|
+
}, Be = ({
|
|
1220
1220
|
className: e,
|
|
1221
1221
|
collapsible: o,
|
|
1222
1222
|
loading: r,
|
|
@@ -1226,12 +1226,12 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1226
1226
|
label: c,
|
|
1227
1227
|
value: u,
|
|
1228
1228
|
onClear: d,
|
|
1229
|
-
clearButtonAltText:
|
|
1229
|
+
clearButtonAltText: l = "Clear search",
|
|
1230
1230
|
menu: f,
|
|
1231
|
-
minLength:
|
|
1231
|
+
minLength: i,
|
|
1232
1232
|
...g
|
|
1233
1233
|
}) => {
|
|
1234
|
-
const v =
|
|
1234
|
+
const v = Ne(), [y, w] = se(!1), I = g.id || `search-field-${v}`, N = `${I}-listbox`, [$, k] = se(void 0), m = "searchfield-clear-button-" + Ne(), O = ce(() => !f || !u || typeof i == "number" && typeof u == "string" && u.length < i ? !1 : y, [f, y, i, u]), E = ce(() => (f?.items ?? []).map((p) => ({
|
|
1235
1235
|
...p,
|
|
1236
1236
|
onClick: () => {
|
|
1237
1237
|
p.onClick?.(), w(!1);
|
|
@@ -1254,12 +1254,12 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1254
1254
|
z && p.currentTarget.contains(z) || w(!1);
|
|
1255
1255
|
}, A = (p) => {
|
|
1256
1256
|
p.preventDefault();
|
|
1257
|
-
},
|
|
1257
|
+
}, R = (p) => {
|
|
1258
1258
|
p.relatedTarget?.id === m && k(void 0), g.onBlur?.(p);
|
|
1259
1259
|
};
|
|
1260
1260
|
return f ? /* @__PURE__ */ _("div", { className: U.fieldContainer, children: [
|
|
1261
1261
|
/* @__PURE__ */ _(
|
|
1262
|
-
|
|
1262
|
+
Ue,
|
|
1263
1263
|
{
|
|
1264
1264
|
size: n,
|
|
1265
1265
|
color: s,
|
|
@@ -1268,7 +1268,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1268
1268
|
onBlurCapture: b,
|
|
1269
1269
|
children: [
|
|
1270
1270
|
/* @__PURE__ */ a(
|
|
1271
|
-
|
|
1271
|
+
Ae,
|
|
1272
1272
|
{
|
|
1273
1273
|
...g,
|
|
1274
1274
|
id: I,
|
|
@@ -1278,21 +1278,21 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1278
1278
|
"data-collapsible": o,
|
|
1279
1279
|
autoCapitalize: "off",
|
|
1280
1280
|
autoComplete: "off",
|
|
1281
|
-
minLength:
|
|
1281
|
+
minLength: i,
|
|
1282
1282
|
onKeyDown: D,
|
|
1283
|
-
onBlur:
|
|
1283
|
+
onBlur: R,
|
|
1284
1284
|
...f && {
|
|
1285
1285
|
role: "combobox",
|
|
1286
1286
|
"aria-autocomplete": "list",
|
|
1287
1287
|
"aria-expanded": !!O,
|
|
1288
1288
|
"aria-haspopup": "listbox",
|
|
1289
1289
|
"aria-controls": N,
|
|
1290
|
-
"aria-activedescendant": O ?
|
|
1290
|
+
"aria-activedescendant": O ? $ : void 0,
|
|
1291
1291
|
onFocus: M
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
),
|
|
1295
|
-
/* @__PURE__ */ a(
|
|
1295
|
+
/* @__PURE__ */ a(qe, { className: U.icon }),
|
|
1296
1296
|
d && !!u && /* @__PURE__ */ a("span", { className: U.clear, children: /* @__PURE__ */ a(
|
|
1297
1297
|
de,
|
|
1298
1298
|
{
|
|
@@ -1306,16 +1306,16 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1306
1306
|
onClick: () => {
|
|
1307
1307
|
d?.(), document.getElementById(I)?.focus();
|
|
1308
1308
|
},
|
|
1309
|
-
"aria-label":
|
|
1309
|
+
"aria-label": l,
|
|
1310
1310
|
"data-action": "clear-input",
|
|
1311
|
-
children: /* @__PURE__ */ a(
|
|
1311
|
+
children: /* @__PURE__ */ a(_e, {})
|
|
1312
1312
|
}
|
|
1313
1313
|
) })
|
|
1314
1314
|
]
|
|
1315
1315
|
}
|
|
1316
1316
|
),
|
|
1317
1317
|
f && O && /* @__PURE__ */ a("div", { className: U.autocomplete, "aria-hidden": !O, onMouseDown: A, children: /* @__PURE__ */ a(
|
|
1318
|
-
|
|
1318
|
+
dt,
|
|
1319
1319
|
{
|
|
1320
1320
|
...f,
|
|
1321
1321
|
id: N,
|
|
@@ -1329,7 +1329,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
) })
|
|
1331
1331
|
] }) : /* @__PURE__ */ _(
|
|
1332
|
-
|
|
1332
|
+
Ue,
|
|
1333
1333
|
{
|
|
1334
1334
|
size: n,
|
|
1335
1335
|
color: s,
|
|
@@ -1338,7 +1338,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1338
1338
|
onBlurCapture: b,
|
|
1339
1339
|
children: [
|
|
1340
1340
|
/* @__PURE__ */ a(
|
|
1341
|
-
|
|
1341
|
+
Ae,
|
|
1342
1342
|
{
|
|
1343
1343
|
...g,
|
|
1344
1344
|
id: I,
|
|
@@ -1348,12 +1348,12 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1348
1348
|
"data-collapsible": o,
|
|
1349
1349
|
autoCapitalize: "off",
|
|
1350
1350
|
autoComplete: "off",
|
|
1351
|
-
minLength:
|
|
1351
|
+
minLength: i,
|
|
1352
1352
|
onKeyDown: D,
|
|
1353
|
-
onBlur:
|
|
1353
|
+
onBlur: R
|
|
1354
1354
|
}
|
|
1355
1355
|
),
|
|
1356
|
-
r ? /* @__PURE__ */ a(
|
|
1356
|
+
r ? /* @__PURE__ */ a(jt, { "aria-hidden": !0, className: U.icon }) : /* @__PURE__ */ a(qe, { "aria-hidden": !0, className: U.icon }),
|
|
1357
1357
|
d && !!u && /* @__PURE__ */ a("span", { className: U.clear, children: /* @__PURE__ */ a(
|
|
1358
1358
|
de,
|
|
1359
1359
|
{
|
|
@@ -1367,20 +1367,20 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1367
1367
|
onClick: () => {
|
|
1368
1368
|
d?.(), document.getElementById(I)?.focus();
|
|
1369
1369
|
},
|
|
1370
|
-
"aria-label":
|
|
1370
|
+
"aria-label": l,
|
|
1371
1371
|
"data-action": "clear-input",
|
|
1372
|
-
children: /* @__PURE__ */ a(
|
|
1372
|
+
children: /* @__PURE__ */ a(_e, {})
|
|
1373
1373
|
}
|
|
1374
1374
|
) })
|
|
1375
1375
|
]
|
|
1376
1376
|
}
|
|
1377
1377
|
);
|
|
1378
|
-
},
|
|
1379
|
-
byline:
|
|
1380
|
-
avatar:
|
|
1381
|
-
avatarGroup:
|
|
1382
|
-
label:
|
|
1383
|
-
},
|
|
1378
|
+
}, qr = "_byline_fzp7k_1", Ur = "_avatar_fzp7k_7", Vr = "_avatarGroup_fzp7k_12", Wr = "_label_fzp7k_26", be = {
|
|
1379
|
+
byline: qr,
|
|
1380
|
+
avatar: Ur,
|
|
1381
|
+
avatarGroup: Vr,
|
|
1382
|
+
label: Wr
|
|
1383
|
+
}, Yr = ({
|
|
1384
1384
|
loading: e,
|
|
1385
1385
|
color: o = "neutral",
|
|
1386
1386
|
size: r = "xs",
|
|
@@ -1391,19 +1391,19 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1391
1391
|
as: u,
|
|
1392
1392
|
...d
|
|
1393
1393
|
}) => {
|
|
1394
|
-
const
|
|
1395
|
-
return /* @__PURE__ */ _(
|
|
1396
|
-
(n || t) && /* @__PURE__ */ a(
|
|
1397
|
-
/* @__PURE__ */ a(f, { "data-size": r, dateTime: s, className: be.label, children: /* @__PURE__ */ a(
|
|
1394
|
+
const l = u || "div", f = s ? "time" : "span";
|
|
1395
|
+
return /* @__PURE__ */ _(l, { ...d, className: be.byline, "data-color": o, "data-size": r, children: [
|
|
1396
|
+
(n || t) && /* @__PURE__ */ a(ke, { variant: "circle", className: be.avatar, loading: e, children: n ? /* @__PURE__ */ a(he, { ...n, size: r, className: be.avatarGroup }) : t && /* @__PURE__ */ a(je, { ...t, size: r, className: be.avatar }) }),
|
|
1397
|
+
/* @__PURE__ */ a(f, { "data-size": r, dateTime: s, className: be.label, children: /* @__PURE__ */ a(ke, { loading: e, children: c }) })
|
|
1398
1398
|
] });
|
|
1399
|
-
},
|
|
1400
|
-
dropdown:
|
|
1401
|
-
content:
|
|
1402
|
-
backdrop:
|
|
1403
|
-
header:
|
|
1404
|
-
footer:
|
|
1405
|
-
title:
|
|
1406
|
-
},
|
|
1399
|
+
}, Qr = "_dropdown_1mtdm_1", Xr = "_content_1mtdm_17", Jr = "_backdrop_1mtdm_47", Zr = "_header_1mtdm_76", en = "_footer_1mtdm_77", tn = "_title_1mtdm_148", me = {
|
|
1400
|
+
dropdown: Qr,
|
|
1401
|
+
content: Xr,
|
|
1402
|
+
backdrop: Jr,
|
|
1403
|
+
header: Zr,
|
|
1404
|
+
footer: en,
|
|
1405
|
+
title: tn
|
|
1406
|
+
}, rn = "data-focus-guard", mt = (e) => {
|
|
1407
1407
|
const o = [
|
|
1408
1408
|
"a[href]",
|
|
1409
1409
|
"button:not([disabled])",
|
|
@@ -1413,13 +1413,13 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1413
1413
|
'[tabindex]:not([tabindex="-1"])',
|
|
1414
1414
|
'[contenteditable="true"]'
|
|
1415
1415
|
].join(",");
|
|
1416
|
-
return Array.from(e.querySelectorAll(o)).filter((r) => !r.hasAttribute(
|
|
1416
|
+
return Array.from(e.querySelectorAll(o)).filter((r) => !r.hasAttribute(rn)).filter((r) => !r.hasAttribute("disabled")).filter((r) => r.getAttribute("aria-hidden") !== "true").filter((r) => r.tabIndex !== -1).filter((r) => {
|
|
1417
1417
|
const t = r.getClientRects();
|
|
1418
1418
|
return t.length > 0 && t[0].width > 0 && t[0].height > 0;
|
|
1419
1419
|
});
|
|
1420
|
-
},
|
|
1421
|
-
|
|
1422
|
-
},
|
|
1420
|
+
}, nn = (e) => {
|
|
1421
|
+
mt(e)[0]?.focus({ preventScroll: !0 });
|
|
1422
|
+
}, on = ({
|
|
1423
1423
|
id: e = "dropdown",
|
|
1424
1424
|
size: o = "sm",
|
|
1425
1425
|
className: r,
|
|
@@ -1429,26 +1429,26 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1429
1429
|
title: c = "Title",
|
|
1430
1430
|
closeLabel: u = "Close",
|
|
1431
1431
|
submitLabel: d,
|
|
1432
|
-
trigger:
|
|
1432
|
+
trigger: l,
|
|
1433
1433
|
children: f,
|
|
1434
|
-
open:
|
|
1434
|
+
open: i,
|
|
1435
1435
|
onClose: g,
|
|
1436
1436
|
onSubmit: v,
|
|
1437
1437
|
activeDescendantId: y,
|
|
1438
1438
|
useFixedPosition: w = !1,
|
|
1439
1439
|
expanded: I = !1
|
|
1440
1440
|
}) => {
|
|
1441
|
-
const N = te(null),
|
|
1441
|
+
const N = te(null), $ = te(null), k = te(i);
|
|
1442
1442
|
X(() => {
|
|
1443
|
-
k.current =
|
|
1444
|
-
}, [
|
|
1443
|
+
k.current = i;
|
|
1444
|
+
}, [i]);
|
|
1445
1445
|
const [m, O] = se({
|
|
1446
1446
|
yDir: n.includes("top") ? "top" : "bottom",
|
|
1447
1447
|
xDir: n.includes("right") ? "right" : "left",
|
|
1448
1448
|
maxHeight: 300
|
|
1449
|
-
}), E =
|
|
1450
|
-
if (
|
|
1451
|
-
const b = N.current.getBoundingClientRect(), A =
|
|
1449
|
+
}), E = Ze(() => {
|
|
1450
|
+
if (i && N.current && $.current) {
|
|
1451
|
+
const b = N.current.getBoundingClientRect(), A = $.current.getBoundingClientRect(), R = window.innerHeight, p = window.innerWidth, z = 16, P = R - b.bottom, h = b.top, S = p - b.right - A.width, G = P < 250 && h > P, H = G ? "top" : "bottom", F = (G ? h : P) - z, Z = S < z ? "right" : "left";
|
|
1452
1452
|
O((x) => ({
|
|
1453
1453
|
...x,
|
|
1454
1454
|
yDir: H,
|
|
@@ -1457,22 +1457,22 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1457
1457
|
triggerRect: w ? b : void 0
|
|
1458
1458
|
}));
|
|
1459
1459
|
}
|
|
1460
|
-
}, [
|
|
1461
|
-
|
|
1460
|
+
}, [i, w]);
|
|
1461
|
+
Me(() => (E(), window.addEventListener("resize", E), w && window.addEventListener("scroll", E, !0), () => {
|
|
1462
1462
|
window.removeEventListener("resize", E), w && window.removeEventListener("scroll", E, !0);
|
|
1463
1463
|
}), [E, w]), X(() => {
|
|
1464
|
-
if (!
|
|
1464
|
+
if (!i) return;
|
|
1465
1465
|
const b = requestAnimationFrame(() => {
|
|
1466
|
-
const A =
|
|
1466
|
+
const A = $.current;
|
|
1467
1467
|
if (!A) return;
|
|
1468
|
-
const
|
|
1468
|
+
const R = A.querySelector(
|
|
1469
1469
|
'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
|
|
1470
1470
|
);
|
|
1471
|
-
if (
|
|
1472
|
-
const p =
|
|
1473
|
-
|
|
1471
|
+
if (R) {
|
|
1472
|
+
const p = R.value.length;
|
|
1473
|
+
R.focus({ preventScroll: !0 });
|
|
1474
1474
|
try {
|
|
1475
|
-
|
|
1475
|
+
R.setSelectionRange(p, p);
|
|
1476
1476
|
} catch {
|
|
1477
1477
|
}
|
|
1478
1478
|
return;
|
|
@@ -1480,28 +1480,28 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1480
1480
|
A.focus?.({ preventScroll: !0 });
|
|
1481
1481
|
});
|
|
1482
1482
|
return () => cancelAnimationFrame(b);
|
|
1483
|
-
}, [
|
|
1484
|
-
const b = (
|
|
1485
|
-
|
|
1486
|
-
}, A = (
|
|
1487
|
-
const p =
|
|
1483
|
+
}, [i]), X(() => {
|
|
1484
|
+
const b = (R) => {
|
|
1485
|
+
R.key === "Escape" && g();
|
|
1486
|
+
}, A = (R) => {
|
|
1487
|
+
const p = R.target, z = N.current?.contains(p), P = $.current?.contains(p);
|
|
1488
1488
|
!z && !P && g();
|
|
1489
1489
|
};
|
|
1490
|
-
return
|
|
1490
|
+
return i && (document.addEventListener("mousedown", A), document.addEventListener("keydown", b)), () => {
|
|
1491
1491
|
document.removeEventListener("mousedown", A), document.removeEventListener("keydown", b);
|
|
1492
1492
|
};
|
|
1493
|
-
}, [
|
|
1494
|
-
if (!
|
|
1495
|
-
const b =
|
|
1493
|
+
}, [i, g]), X(() => {
|
|
1494
|
+
if (!i) return;
|
|
1495
|
+
const b = $.current;
|
|
1496
1496
|
if (!b) return;
|
|
1497
1497
|
const A = (p) => {
|
|
1498
1498
|
if (!k.current)
|
|
1499
1499
|
return;
|
|
1500
1500
|
const z = p.target;
|
|
1501
|
-
z && !b.contains(z) &&
|
|
1502
|
-
},
|
|
1501
|
+
z && !b.contains(z) && nn(b);
|
|
1502
|
+
}, R = (p) => {
|
|
1503
1503
|
if (p.key !== "Tab") return;
|
|
1504
|
-
const z =
|
|
1504
|
+
const z = mt(b);
|
|
1505
1505
|
if (z.length === 0) {
|
|
1506
1506
|
p.preventDefault(), b.focus?.({ preventScroll: !0 });
|
|
1507
1507
|
return;
|
|
@@ -1509,10 +1509,10 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1509
1509
|
const P = z[0], h = z[z.length - 1], S = document.activeElement;
|
|
1510
1510
|
p.shiftKey ? S === P && (p.preventDefault(), h.focus({ preventScroll: !0 })) : S === h && (p.preventDefault(), P.focus({ preventScroll: !0 }));
|
|
1511
1511
|
};
|
|
1512
|
-
return document.addEventListener("focusin", A), document.addEventListener("keydown",
|
|
1513
|
-
document.removeEventListener("focusin", A), document.removeEventListener("keydown",
|
|
1512
|
+
return document.addEventListener("focusin", A), document.addEventListener("keydown", R), () => {
|
|
1513
|
+
document.removeEventListener("focusin", A), document.removeEventListener("keydown", R);
|
|
1514
1514
|
};
|
|
1515
|
-
}, [
|
|
1515
|
+
}, [i]);
|
|
1516
1516
|
const D = w && m.triggerRect ? {
|
|
1517
1517
|
position: "fixed",
|
|
1518
1518
|
zIndex: 1e3,
|
|
@@ -1532,10 +1532,10 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1532
1532
|
}, M = /* @__PURE__ */ _(
|
|
1533
1533
|
"div",
|
|
1534
1534
|
{
|
|
1535
|
-
ref:
|
|
1535
|
+
ref: $,
|
|
1536
1536
|
className: K(me.dropdown, r),
|
|
1537
1537
|
style: D,
|
|
1538
|
-
"aria-hidden": !
|
|
1538
|
+
"aria-hidden": !i,
|
|
1539
1539
|
"data-variant": s,
|
|
1540
1540
|
"data-expanded": I,
|
|
1541
1541
|
"data-size": o,
|
|
@@ -1546,7 +1546,7 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1546
1546
|
children: [
|
|
1547
1547
|
/* @__PURE__ */ _("header", { className: me.header, children: [
|
|
1548
1548
|
/* @__PURE__ */ a("h2", { className: me.title, children: c }),
|
|
1549
|
-
/* @__PURE__ */ a(de, { size: "sm", variant: "outline", onClick: g, "aria-label": u, children: /* @__PURE__ */ a(
|
|
1549
|
+
/* @__PURE__ */ a(de, { size: "sm", variant: "outline", onClick: g, "aria-label": u, children: /* @__PURE__ */ a(_e, {}) })
|
|
1550
1550
|
] }),
|
|
1551
1551
|
/* @__PURE__ */ a("div", { className: me.content, children: f }),
|
|
1552
1552
|
d && /* @__PURE__ */ a("footer", { className: me.footer, children: /* @__PURE__ */ a(de, { size: "lg", variant: "solid", onClick: v || g, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: d }) }) })
|
|
@@ -1554,49 +1554,49 @@ const Ue = ({ className: e, loading: o, icon: r, children: t }) => {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
);
|
|
1556
1556
|
return /* @__PURE__ */ _(pe, { children: [
|
|
1557
|
-
t && /* @__PURE__ */ a("div", { className: me.backdrop, "aria-hidden": !
|
|
1557
|
+
t && /* @__PURE__ */ a("div", { className: me.backdrop, "aria-hidden": !i }),
|
|
1558
1558
|
/* @__PURE__ */ _("div", { id: e + "-root", ref: N, style: { position: "relative", display: "inline-block" }, children: [
|
|
1559
|
-
|
|
1560
|
-
w ?
|
|
1559
|
+
l,
|
|
1560
|
+
w ? It(M, document.body) : M
|
|
1561
1561
|
] })
|
|
1562
1562
|
] });
|
|
1563
|
-
},
|
|
1564
|
-
const { menu: s } =
|
|
1563
|
+
}, an = Ie(({ items: e, groups: o = {}, sortGroupBy: r, highlightWords: t, isLoading: n }) => {
|
|
1564
|
+
const { menu: s } = Le({
|
|
1565
1565
|
items: e,
|
|
1566
1566
|
groups: o,
|
|
1567
1567
|
groupByKey: "groupId",
|
|
1568
1568
|
keyboardEvents: !1,
|
|
1569
1569
|
sortGroupBy: r
|
|
1570
1570
|
});
|
|
1571
|
-
return /* @__PURE__ */ a(
|
|
1571
|
+
return /* @__PURE__ */ a(bt, { spacing: 6, "aria-busy": n, children: s?.map((c, u) => {
|
|
1572
1572
|
const d = c.props || {};
|
|
1573
|
-
return /* @__PURE__ */
|
|
1574
|
-
const
|
|
1575
|
-
return /* @__PURE__ */
|
|
1573
|
+
return /* @__PURE__ */ ze(ft, { ...d, key: "dialog-list-item" + u }, c?.items.map((l, f) => {
|
|
1574
|
+
const i = l.props || {};
|
|
1575
|
+
return /* @__PURE__ */ ze(pt, { ...i, highlightWords: t, key: "dialog-list-item" + f });
|
|
1576
1576
|
}));
|
|
1577
1577
|
}) });
|
|
1578
1578
|
});
|
|
1579
|
-
|
|
1580
|
-
const
|
|
1581
|
-
/* @__PURE__ */ _(
|
|
1579
|
+
an.displayName = "DialogList";
|
|
1580
|
+
const ft = Ie(({ title: e, description: o, children: r }) => /* @__PURE__ */ _(bt, { spacing: 4, children: [
|
|
1581
|
+
/* @__PURE__ */ _(Ge, { direction: "col", spacing: 2, children: [
|
|
1582
1582
|
e && /* @__PURE__ */ a(oe, { size: "lg", children: e }),
|
|
1583
|
-
o && /* @__PURE__ */ a(
|
|
1583
|
+
o && /* @__PURE__ */ a(et, { size: "sm", style: { marginBottom: ".5em" }, children: o })
|
|
1584
1584
|
] }),
|
|
1585
|
-
/* @__PURE__ */ a(
|
|
1585
|
+
/* @__PURE__ */ a(Un, { spacing: 3, children: r })
|
|
1586
1586
|
] }));
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1589
|
-
item:
|
|
1590
|
-
border:
|
|
1591
|
-
header:
|
|
1592
|
-
summary:
|
|
1593
|
-
controls:
|
|
1594
|
-
footer:
|
|
1595
|
-
seenBy:
|
|
1596
|
-
link:
|
|
1597
|
-
title:
|
|
1598
|
-
badge:
|
|
1599
|
-
},
|
|
1587
|
+
ft.displayName = "DialogListGroup";
|
|
1588
|
+
const sn = "_item_e034j_3", ln = "_border_e034j_58", cn = "_header_e034j_69", dn = "_summary_e034j_85", un = "_controls_e034j_99", mn = "_footer_e034j_106", fn = "_seenBy_e034j_111", pn = "_link_e034j_121", hn = "_title_e034j_126", vn = "_badge_e034j_140", Q = {
|
|
1589
|
+
item: sn,
|
|
1590
|
+
border: ln,
|
|
1591
|
+
header: cn,
|
|
1592
|
+
summary: dn,
|
|
1593
|
+
controls: un,
|
|
1594
|
+
footer: mn,
|
|
1595
|
+
seenBy: fn,
|
|
1596
|
+
link: pn,
|
|
1597
|
+
title: hn,
|
|
1598
|
+
badge: vn
|
|
1599
|
+
}, pt = Ie(
|
|
1600
1600
|
({
|
|
1601
1601
|
as: e = "a",
|
|
1602
1602
|
size: o = "xl",
|
|
@@ -1607,16 +1607,16 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1607
1607
|
selectable: c,
|
|
1608
1608
|
selected: u,
|
|
1609
1609
|
status: d,
|
|
1610
|
-
extendedStatusLabel:
|
|
1610
|
+
extendedStatusLabel: l,
|
|
1611
1611
|
sender: f,
|
|
1612
|
-
recipient:
|
|
1612
|
+
recipient: i,
|
|
1613
1613
|
recipientLabel: g = "to",
|
|
1614
1614
|
grouped: v = !1,
|
|
1615
1615
|
updatedAt: y,
|
|
1616
1616
|
updatedAtLabel: w,
|
|
1617
1617
|
archived: I,
|
|
1618
1618
|
archivedAt: N,
|
|
1619
|
-
archivedAtLabel:
|
|
1619
|
+
archivedAtLabel: $,
|
|
1620
1620
|
trashed: k,
|
|
1621
1621
|
trashedAt: m,
|
|
1622
1622
|
trashedAtLabel: O,
|
|
@@ -1625,7 +1625,7 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1625
1625
|
dueAtLabel: M,
|
|
1626
1626
|
unread: b,
|
|
1627
1627
|
seenByLog: A,
|
|
1628
|
-
draftsLabel:
|
|
1628
|
+
draftsLabel: R,
|
|
1629
1629
|
sentCount: p,
|
|
1630
1630
|
receivedCount: z,
|
|
1631
1631
|
attachmentsCount: P,
|
|
@@ -1640,7 +1640,7 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1640
1640
|
}) => {
|
|
1641
1641
|
const j = c ? "select" : r;
|
|
1642
1642
|
return /* @__PURE__ */ _(
|
|
1643
|
-
|
|
1643
|
+
Ot,
|
|
1644
1644
|
{
|
|
1645
1645
|
as: "li",
|
|
1646
1646
|
id: Z,
|
|
@@ -1654,7 +1654,7 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1654
1654
|
"data-archived": I,
|
|
1655
1655
|
"data-loading": n,
|
|
1656
1656
|
children: [
|
|
1657
|
-
/* @__PURE__ */ a(
|
|
1657
|
+
/* @__PURE__ */ a(Nt, { ...x, className: Q.link, as: e, children: /* @__PURE__ */ _("div", { className: Q.border, children: [
|
|
1658
1658
|
/* @__PURE__ */ _("header", { className: Q.header, children: [
|
|
1659
1659
|
/* @__PURE__ */ _(
|
|
1660
1660
|
oe,
|
|
@@ -1667,17 +1667,17 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1667
1667
|
className: Q.title,
|
|
1668
1668
|
children: [
|
|
1669
1669
|
G,
|
|
1670
|
-
E && /* @__PURE__ */ a(
|
|
1670
|
+
E && /* @__PURE__ */ a(ye, { className: Q.badge, variant: "tinted", size: "xs", ...E })
|
|
1671
1671
|
]
|
|
1672
1672
|
}
|
|
1673
1673
|
),
|
|
1674
1674
|
/* @__PURE__ */ a(
|
|
1675
|
-
|
|
1675
|
+
gn,
|
|
1676
1676
|
{
|
|
1677
1677
|
size: "xs",
|
|
1678
1678
|
loading: n,
|
|
1679
1679
|
sender: f,
|
|
1680
|
-
recipient:
|
|
1680
|
+
recipient: i,
|
|
1681
1681
|
recipientLabel: g,
|
|
1682
1682
|
grouped: v
|
|
1683
1683
|
}
|
|
@@ -1696,19 +1696,19 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1696
1696
|
)
|
|
1697
1697
|
] }),
|
|
1698
1698
|
/* @__PURE__ */ a(
|
|
1699
|
-
|
|
1699
|
+
bn,
|
|
1700
1700
|
{
|
|
1701
1701
|
className: Q.footer,
|
|
1702
1702
|
loading: n,
|
|
1703
1703
|
status: d,
|
|
1704
|
-
extendedStatusLabel:
|
|
1705
|
-
draftsLabel:
|
|
1704
|
+
extendedStatusLabel: l,
|
|
1705
|
+
draftsLabel: R,
|
|
1706
1706
|
sentCount: p,
|
|
1707
1707
|
receivedCount: z,
|
|
1708
1708
|
updatedAt: y,
|
|
1709
1709
|
updatedAtLabel: w,
|
|
1710
1710
|
archivedAt: N,
|
|
1711
|
-
archivedAtLabel:
|
|
1711
|
+
archivedAtLabel: $,
|
|
1712
1712
|
trashedAt: m,
|
|
1713
1713
|
trashedAtLabel: O,
|
|
1714
1714
|
dueAt: D,
|
|
@@ -1718,16 +1718,16 @@ const an = "_item_e034j_3", sn = "_border_e034j_58", ln = "_header_e034j_69", cn
|
|
|
1718
1718
|
tooltips: S
|
|
1719
1719
|
}
|
|
1720
1720
|
),
|
|
1721
|
-
A && S?.seenBy ? /* @__PURE__ */ a(
|
|
1721
|
+
A && S?.seenBy ? /* @__PURE__ */ a(kt, { placement: "bottom", content: S?.seenBy, children: /* @__PURE__ */ a("span", { className: Q.seenBy, children: /* @__PURE__ */ a(he, { items: A.items }) }) }) : A && /* @__PURE__ */ a(he, { items: A.items, className: Q.seenBy })
|
|
1722
1722
|
] }) }),
|
|
1723
|
-
/* @__PURE__ */ a(
|
|
1723
|
+
/* @__PURE__ */ a(De, { className: Q.controls, children: s })
|
|
1724
1724
|
]
|
|
1725
1725
|
}
|
|
1726
1726
|
);
|
|
1727
1727
|
}
|
|
1728
1728
|
);
|
|
1729
|
-
|
|
1730
|
-
const
|
|
1729
|
+
pt.displayName = "DialogListItem";
|
|
1730
|
+
const bn = ({
|
|
1731
1731
|
className: e,
|
|
1732
1732
|
loading: o,
|
|
1733
1733
|
status: r,
|
|
@@ -1737,78 +1737,78 @@ const vn = ({
|
|
|
1737
1737
|
dueAt: c,
|
|
1738
1738
|
dueAtLabel: u,
|
|
1739
1739
|
archivedAt: d,
|
|
1740
|
-
archivedAtLabel:
|
|
1740
|
+
archivedAtLabel: l,
|
|
1741
1741
|
trashedAt: f,
|
|
1742
|
-
trashedAtLabel:
|
|
1742
|
+
trashedAtLabel: i,
|
|
1743
1743
|
draftsLabel: g,
|
|
1744
1744
|
sentCount: v = 0,
|
|
1745
1745
|
receivedCount: y = 0,
|
|
1746
1746
|
attachmentsCount: w = 0,
|
|
1747
1747
|
attachmentsLabel: I,
|
|
1748
1748
|
transmissionsLabel: N,
|
|
1749
|
-
activityLog:
|
|
1749
|
+
activityLog: $,
|
|
1750
1750
|
extendedStatusLabel: k,
|
|
1751
1751
|
tooltips: m = {}
|
|
1752
|
-
}) => /* @__PURE__ */ _(
|
|
1753
|
-
r && /* @__PURE__ */ a(
|
|
1752
|
+
}) => /* @__PURE__ */ _(Ct, { className: e, size: "xs", children: [
|
|
1753
|
+
r && /* @__PURE__ */ a(On, { tooltip: m.status, loading: o, size: "xs", ...r }),
|
|
1754
1754
|
k && /* @__PURE__ */ a(ee, { tooltip: m.extendedStatus, size: "xs", variant: "outline", children: k }),
|
|
1755
1755
|
g && /* @__PURE__ */ a(ee, { tooltip: m.drafts, size: "xs", variant: "dotted", children: g }),
|
|
1756
|
-
v > 0 && /* @__PURE__ */ a(ee, { tooltip: m.sent, size: "xs", variant: "outline", icon:
|
|
1757
|
-
y > 0 && /* @__PURE__ */ a(ee, { tooltip: m.received, size: "xs", variant: "outline", icon:
|
|
1758
|
-
n && /* @__PURE__ */ _(
|
|
1756
|
+
v > 0 && /* @__PURE__ */ a(ee, { tooltip: m.sent, size: "xs", variant: "outline", icon: at, children: v }),
|
|
1757
|
+
y > 0 && /* @__PURE__ */ a(ee, { tooltip: m.received, size: "xs", variant: "outline", icon: qt, children: y }),
|
|
1758
|
+
n && /* @__PURE__ */ _(Oe, { tooltip: m.updatedAt, loading: o, datetime: n, size: "xs", children: [
|
|
1759
1759
|
/* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
|
|
1760
1760
|
s
|
|
1761
1761
|
] }),
|
|
1762
|
-
c && u && /* @__PURE__ */ a(
|
|
1763
|
-
w > 0 && /* @__PURE__ */ a(ee, { tooltip: m.attachments, loading: o, size: "xs", icon:
|
|
1764
|
-
N && /* @__PURE__ */ a(ee, { tooltip: m.transmissions, loading: o, size: "xs", icon:
|
|
1765
|
-
f &&
|
|
1766
|
-
|
|
1762
|
+
c && u && /* @__PURE__ */ a(Oe, { tooltip: m.dueAt, loading: o, datetime: c, size: "xs", icon: zt, children: u }),
|
|
1763
|
+
w > 0 && /* @__PURE__ */ a(ee, { tooltip: m.attachments, loading: o, size: "xs", icon: Dt, children: I || w }),
|
|
1764
|
+
N && /* @__PURE__ */ a(ee, { tooltip: m.transmissions, loading: o, size: "xs", icon: rr, children: N }),
|
|
1765
|
+
f && i && /* @__PURE__ */ a(Oe, { tooltip: m.trashedAt, loading: o, datetime: f, size: "xs", icon: At, children: i }) || d && l && /* @__PURE__ */ a(
|
|
1766
|
+
Oe,
|
|
1767
1767
|
{
|
|
1768
1768
|
tooltip: m.archivedAt,
|
|
1769
1769
|
loading: o,
|
|
1770
1770
|
datetime: d,
|
|
1771
1771
|
size: "xs",
|
|
1772
|
-
icon:
|
|
1773
|
-
children:
|
|
1772
|
+
icon: Bt,
|
|
1773
|
+
children: l
|
|
1774
1774
|
}
|
|
1775
1775
|
),
|
|
1776
|
-
|
|
1776
|
+
$ && /* @__PURE__ */ a(
|
|
1777
1777
|
ee,
|
|
1778
1778
|
{
|
|
1779
1779
|
tooltip: m.activityLog,
|
|
1780
1780
|
loading: o,
|
|
1781
1781
|
size: "xs",
|
|
1782
|
-
icon:
|
|
1783
|
-
as:
|
|
1784
|
-
onClick:
|
|
1785
|
-
children:
|
|
1782
|
+
icon: er,
|
|
1783
|
+
as: $?.onClick ? "button" : "span",
|
|
1784
|
+
onClick: $?.onClick,
|
|
1785
|
+
children: $?.label || "Activity log"
|
|
1786
1786
|
}
|
|
1787
1787
|
)
|
|
1788
|
-
] }),
|
|
1788
|
+
] }), gn = ({
|
|
1789
1789
|
sender: e,
|
|
1790
1790
|
recipient: o,
|
|
1791
1791
|
recipientLabel: r = "to",
|
|
1792
1792
|
grouped: t = !1,
|
|
1793
1793
|
loading: n,
|
|
1794
1794
|
size: s = "xs"
|
|
1795
|
-
}) => !e && !o ? null : /* @__PURE__ */ _(
|
|
1795
|
+
}) => !e && !o ? null : /* @__PURE__ */ _(Yr, { loading: n, size: s, avatar: e, avatarGroup: !n && t && e && o ? {
|
|
1796
1796
|
items: [o, e]
|
|
1797
1797
|
} : void 0, children: [
|
|
1798
1798
|
/* @__PURE__ */ a("strong", { children: e?.name }),
|
|
1799
1799
|
" ",
|
|
1800
1800
|
o && r + " " + o?.name
|
|
1801
|
-
] }),
|
|
1802
|
-
media:
|
|
1803
|
-
icon:
|
|
1804
|
-
avatarGroup:
|
|
1801
|
+
] }), yn = "_media_1x8z9_1", _n = "_icon_1x8z9_10", wn = "_avatarGroup_1x8z9_17", fe = {
|
|
1802
|
+
media: yn,
|
|
1803
|
+
icon: _n,
|
|
1804
|
+
avatarGroup: wn
|
|
1805
1805
|
};
|
|
1806
|
-
function
|
|
1807
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ||
|
|
1806
|
+
function In(e) {
|
|
1807
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
1808
1808
|
}
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1811
|
-
r && /* @__PURE__ */ a(
|
|
1809
|
+
const He = ({ size: e = "xs", icon: o, progress: r }) => !o && typeof r != "number" ? !1 : /* @__PURE__ */ _("span", { className: fe.media, "data-size": e, children: [
|
|
1810
|
+
Ee(o) && /* @__PURE__ */ a(je, { ...o, className: fe.avatar }) || Ce(o) && /* @__PURE__ */ a(he, { ...o, className: fe.avatarGroup }) || Se(o) && /* @__PURE__ */ a(J, { ...o, className: fe.icon }) || In(o) && o || /* @__PURE__ */ a(J, { svgElement: o, className: fe.icon }),
|
|
1811
|
+
r && /* @__PURE__ */ a(Ft, { value: r, className: fe.icon })
|
|
1812
1812
|
] }), ee = ({
|
|
1813
1813
|
loading: e,
|
|
1814
1814
|
reverse: o,
|
|
@@ -1818,13 +1818,13 @@ const Ge = ({ size: e = "xs", icon: o, progress: r }) => !o && typeof r != "numb
|
|
|
1818
1818
|
children: s,
|
|
1819
1819
|
tooltip: c,
|
|
1820
1820
|
...u
|
|
1821
|
-
}) => /* @__PURE__ */ _(
|
|
1822
|
-
!e && n && /* @__PURE__ */ a(
|
|
1823
|
-
/* @__PURE__ */ a(
|
|
1824
|
-
] }),
|
|
1825
|
-
/* @__PURE__ */ a(
|
|
1826
|
-
/* @__PURE__ */ a(
|
|
1827
|
-
] }),
|
|
1821
|
+
}) => /* @__PURE__ */ _(Fe, { loading: e, reverse: o, variant: t, tooltip: c, size: r, ...u, children: [
|
|
1822
|
+
!e && n && /* @__PURE__ */ a(He, { icon: n }),
|
|
1823
|
+
/* @__PURE__ */ a(Te, { variant: t, size: r, children: s })
|
|
1824
|
+
] }), Ye = ({ size: e = "xs", variant: o = "text", progress: r = 0, tooltip: t, children: n }) => /* @__PURE__ */ _(Fe, { variant: o, size: e, tooltip: t, children: [
|
|
1825
|
+
/* @__PURE__ */ a(He, { size: e, progress: r }),
|
|
1826
|
+
/* @__PURE__ */ a(Te, { variant: o, size: e, children: n })
|
|
1827
|
+
] }), Oe = ({
|
|
1828
1828
|
loading: e,
|
|
1829
1829
|
size: o = "xs",
|
|
1830
1830
|
variant: r = "text",
|
|
@@ -1832,12 +1832,12 @@ const Ge = ({ size: e = "xs", icon: o, progress: r }) => !o && typeof r != "numb
|
|
|
1832
1832
|
icon: n,
|
|
1833
1833
|
tooltip: s,
|
|
1834
1834
|
children: c
|
|
1835
|
-
}) => /* @__PURE__ */ _(
|
|
1836
|
-
!e && n && /* @__PURE__ */ a(
|
|
1837
|
-
/* @__PURE__ */ a(
|
|
1835
|
+
}) => /* @__PURE__ */ _(Fe, { tooltip: s, loading: e, as: "time", variant: r, datetime: t, size: o, children: [
|
|
1836
|
+
!e && n && /* @__PURE__ */ a(He, { size: o, icon: n }),
|
|
1837
|
+
/* @__PURE__ */ a(Te, { variant: r, size: o, children: c })
|
|
1838
1838
|
] });
|
|
1839
|
-
var
|
|
1840
|
-
const
|
|
1839
|
+
var xn = /* @__PURE__ */ ((e) => (e["not-applicable"] = "NOT_APPLICABLE", e.draft = "DRAFT", e.awaiting = "AWAITING", e.completed = "COMPLETED", e["in-progress"] = "IN_PROGRESS", e["requires-attention"] = "REQUIRES_ATTENTION", e))(xn || {});
|
|
1840
|
+
const On = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t, tooltip: n }) => {
|
|
1841
1841
|
if (e)
|
|
1842
1842
|
return null;
|
|
1843
1843
|
switch (r) {
|
|
@@ -1846,23 +1846,23 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1846
1846
|
case "requires-attention":
|
|
1847
1847
|
return /* @__PURE__ */ a(ee, { tooltip: n, variant: "solid", children: t || r });
|
|
1848
1848
|
case "awaiting":
|
|
1849
|
-
return /* @__PURE__ */ a(ee, { tooltip: n, size: o, variant: "outline", icon:
|
|
1849
|
+
return /* @__PURE__ */ a(ee, { tooltip: n, size: o, variant: "outline", icon: or, children: t || r });
|
|
1850
1850
|
case "in-progress":
|
|
1851
|
-
return /* @__PURE__ */ a(
|
|
1851
|
+
return /* @__PURE__ */ a(Ye, { tooltip: n, size: o, variant: "outline", progress: 75, children: t || r });
|
|
1852
1852
|
case "completed":
|
|
1853
|
-
return /* @__PURE__ */ a(
|
|
1853
|
+
return /* @__PURE__ */ a(Ye, { tooltip: n, size: o, variant: "outline", progress: 100, children: t || r });
|
|
1854
1854
|
default:
|
|
1855
1855
|
return null;
|
|
1856
1856
|
}
|
|
1857
|
-
},
|
|
1858
|
-
header:
|
|
1859
|
-
label:
|
|
1860
|
-
link:
|
|
1861
|
-
badge:
|
|
1862
|
-
linkIcon:
|
|
1863
|
-
linkFocus:
|
|
1864
|
-
controls:
|
|
1865
|
-
},
|
|
1857
|
+
}, Nn = "_header_29hv7_1", kn = "_label_29hv7_27", Cn = "_link_29hv7_43", En = "_badge_29hv7_47", Pn = "_linkIcon_29hv7_51", Sn = "_linkFocus_29hv7_61", jn = "_controls_29hv7_69", ne = {
|
|
1858
|
+
header: Nn,
|
|
1859
|
+
label: kn,
|
|
1860
|
+
link: Cn,
|
|
1861
|
+
badge: En,
|
|
1862
|
+
linkIcon: Pn,
|
|
1863
|
+
linkFocus: Sn,
|
|
1864
|
+
controls: jn
|
|
1865
|
+
}, $n = ({
|
|
1866
1866
|
as: e,
|
|
1867
1867
|
highlightWords: o,
|
|
1868
1868
|
interactive: r = !0,
|
|
@@ -1872,16 +1872,16 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1872
1872
|
collapsible: c,
|
|
1873
1873
|
linkIcon: u,
|
|
1874
1874
|
expanded: d,
|
|
1875
|
-
select:
|
|
1875
|
+
select: l,
|
|
1876
1876
|
href: f,
|
|
1877
|
-
onClick:
|
|
1877
|
+
onClick: i,
|
|
1878
1878
|
onKeyPress: g,
|
|
1879
1879
|
tabIndex: v,
|
|
1880
1880
|
size: y,
|
|
1881
1881
|
title: w,
|
|
1882
1882
|
description: I,
|
|
1883
1883
|
icon: N,
|
|
1884
|
-
active:
|
|
1884
|
+
active: $,
|
|
1885
1885
|
badge: k,
|
|
1886
1886
|
controls: m,
|
|
1887
1887
|
className: O,
|
|
@@ -1889,7 +1889,7 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1889
1889
|
ariaLabel: D,
|
|
1890
1890
|
ariaControlsId: M
|
|
1891
1891
|
}) => {
|
|
1892
|
-
const b = c ? d ?
|
|
1892
|
+
const b = c ? d ? Xt : Wt : u ? st : void 0, A = () => k && !n && typeof k == "object" && "label" in k ? /* @__PURE__ */ a(ye, { ...k, className: ne.badge }) : we(k) ? k : null, R = D !== void 0 ? D : typeof w == "string" ? w : void 0, p = Ne();
|
|
1893
1893
|
return /* @__PURE__ */ _(
|
|
1894
1894
|
"div",
|
|
1895
1895
|
{
|
|
@@ -1897,31 +1897,31 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1897
1897
|
"data-color": t,
|
|
1898
1898
|
"data-interactive": r,
|
|
1899
1899
|
"data-size": y,
|
|
1900
|
-
"data-has-active-child":
|
|
1900
|
+
"data-has-active-child": $,
|
|
1901
1901
|
"aria-disabled": s,
|
|
1902
1902
|
children: [
|
|
1903
1903
|
/* @__PURE__ */ _(
|
|
1904
|
-
|
|
1904
|
+
Gt,
|
|
1905
1905
|
{
|
|
1906
1906
|
as: e,
|
|
1907
1907
|
href: f,
|
|
1908
|
-
onClick:
|
|
1908
|
+
onClick: i,
|
|
1909
1909
|
onKeyPress: g,
|
|
1910
1910
|
tabIndex: v,
|
|
1911
1911
|
loading: n,
|
|
1912
1912
|
disabled: s || n,
|
|
1913
|
-
active:
|
|
1914
|
-
ariaLabel:
|
|
1913
|
+
active: $,
|
|
1914
|
+
ariaLabel: R,
|
|
1915
1915
|
className: ne.link,
|
|
1916
1916
|
expanded: d,
|
|
1917
1917
|
ariaControlsId: M,
|
|
1918
1918
|
collapsible: c,
|
|
1919
1919
|
children: [
|
|
1920
1920
|
r && /* @__PURE__ */ a("div", { className: ne.linkFocus, "aria-hidden": "true" }),
|
|
1921
|
-
|
|
1922
|
-
/* @__PURE__ */ a(
|
|
1921
|
+
l && /* @__PURE__ */ a(Sr, { ...l, className: ne.select }),
|
|
1922
|
+
/* @__PURE__ */ a(Fn, { loading: n, icon: N }),
|
|
1923
1923
|
/* @__PURE__ */ a(
|
|
1924
|
-
|
|
1924
|
+
Mn,
|
|
1925
1925
|
{
|
|
1926
1926
|
size: y,
|
|
1927
1927
|
loading: n,
|
|
@@ -1936,7 +1936,7 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1936
1936
|
]
|
|
1937
1937
|
}
|
|
1938
1938
|
),
|
|
1939
|
-
/* @__PURE__ */ _(
|
|
1939
|
+
/* @__PURE__ */ _(Ht, { className: ne.controls, children: [
|
|
1940
1940
|
m && !n && /* @__PURE__ */ a("span", { className: ne.customControls, children: m }),
|
|
1941
1941
|
A(),
|
|
1942
1942
|
b && !s && /* @__PURE__ */ a("span", { className: ne.linkIcon, children: /* @__PURE__ */ a(
|
|
@@ -1952,33 +1952,33 @@ const xn = ({ loading: e, size: o = "xs", value: r = "not-applicable", label: t,
|
|
|
1952
1952
|
]
|
|
1953
1953
|
}
|
|
1954
1954
|
);
|
|
1955
|
-
}, Rn = "_label_1tmg6_1",
|
|
1955
|
+
}, Rn = "_label_1tmg6_1", Qe = {
|
|
1956
1956
|
label: Rn
|
|
1957
|
-
},
|
|
1958
|
-
function
|
|
1959
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ||
|
|
1957
|
+
}, ht = (e) => typeof e == "object" && e !== null && "children" in e;
|
|
1958
|
+
function vt(e) {
|
|
1959
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
1960
1960
|
}
|
|
1961
|
-
const
|
|
1961
|
+
const Xe = (e) => {
|
|
1962
1962
|
const o = {
|
|
1963
1963
|
as: "h3",
|
|
1964
1964
|
size: "sm"
|
|
1965
1965
|
};
|
|
1966
|
-
return
|
|
1966
|
+
return ht(e) ? { ...o, ...e } : vt(e) ? {
|
|
1967
1967
|
...o,
|
|
1968
1968
|
children: e
|
|
1969
1969
|
} : null;
|
|
1970
|
-
},
|
|
1970
|
+
}, Je = (e) => {
|
|
1971
1971
|
const o = {
|
|
1972
1972
|
as: "span",
|
|
1973
1973
|
size: "xs",
|
|
1974
1974
|
weight: "normal",
|
|
1975
1975
|
variant: "subtle"
|
|
1976
1976
|
};
|
|
1977
|
-
return
|
|
1977
|
+
return ht(e) ? { ...o, ...e } : vt(e) ? {
|
|
1978
1978
|
...o,
|
|
1979
1979
|
children: e
|
|
1980
1980
|
} : null;
|
|
1981
|
-
},
|
|
1981
|
+
}, Mn = ({
|
|
1982
1982
|
loading: e = !1,
|
|
1983
1983
|
highlightWords: o,
|
|
1984
1984
|
size: r,
|
|
@@ -1990,32 +1990,32 @@ const Qe = (e) => {
|
|
|
1990
1990
|
className: d
|
|
1991
1991
|
}) => {
|
|
1992
1992
|
if (t && n) {
|
|
1993
|
-
const
|
|
1994
|
-
return /* @__PURE__ */ a("span", { className: K(
|
|
1995
|
-
|
|
1993
|
+
const i = t && Je(t), g = n && Xe(n);
|
|
1994
|
+
return /* @__PURE__ */ a("span", { className: K(Qe.label, d), id: u, "data-size": r, children: c || /* @__PURE__ */ _(pe, { children: [
|
|
1995
|
+
i && /* @__PURE__ */ a(oe, { ...i, loading: e, highlightWords: o }),
|
|
1996
1996
|
g && /* @__PURE__ */ a(oe, { ...g, loading: e, highlightWords: o })
|
|
1997
1997
|
] }) });
|
|
1998
1998
|
}
|
|
1999
|
-
const
|
|
2000
|
-
return /* @__PURE__ */ a("span", { className: K(
|
|
2001
|
-
|
|
1999
|
+
const l = t && Xe(t), f = s && Je(s);
|
|
2000
|
+
return /* @__PURE__ */ a("span", { className: K(Qe.label, d), id: u, "data-size": r, children: c || /* @__PURE__ */ _(pe, { children: [
|
|
2001
|
+
l && /* @__PURE__ */ a(oe, { ...l, loading: e, highlightWords: o }),
|
|
2002
2002
|
f && /* @__PURE__ */ a(oe, { ...f, loading: e, highlightWords: o })
|
|
2003
2003
|
] }) });
|
|
2004
|
-
},
|
|
2005
|
-
wrapper:
|
|
2006
|
-
icon:
|
|
2007
|
-
avatar:
|
|
2008
|
-
avatarGroup:
|
|
2004
|
+
}, zn = "_wrapper_rcjve_1", Dn = "_icon_rcjve_11", An = "_avatar_rcjve_19", Bn = "_avatarGroup_rcjve_23", ie = {
|
|
2005
|
+
wrapper: zn,
|
|
2006
|
+
icon: Dn,
|
|
2007
|
+
avatar: An,
|
|
2008
|
+
avatarGroup: Bn
|
|
2009
2009
|
};
|
|
2010
|
-
function
|
|
2011
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null ||
|
|
2010
|
+
function Ln(e) {
|
|
2011
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2015
|
-
n && /* @__PURE__ */ a(
|
|
2016
|
-
] }) : null,
|
|
2017
|
-
item:
|
|
2018
|
-
},
|
|
2013
|
+
const Fn = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /* @__PURE__ */ a(J, { className: ie.wrapper, svgElement: _e, loading: !0 }) : /* @__PURE__ */ _("div", { className: ie.wrapper, "data-size": o, children: [
|
|
2014
|
+
Ee(r) && /* @__PURE__ */ a(je, { ...r, className: ie.avatar }) || Ce(r) && /* @__PURE__ */ a(he, { ...r, className: ie.avatarGroup }) || Se(r) && /* @__PURE__ */ a(J, { ...r, theme: r.theme || t, className: ie.icon }) || Ln(r) && r || /* @__PURE__ */ a(J, { theme: t, svgElement: r, className: ie.icon }),
|
|
2015
|
+
n && /* @__PURE__ */ a(ye, { ...n, className: ie.badge })
|
|
2016
|
+
] }) : null, Tn = "_item_1nwey_3", Gn = {
|
|
2017
|
+
item: Tn
|
|
2018
|
+
}, Hn = ({
|
|
2019
2019
|
className: e,
|
|
2020
2020
|
color: o,
|
|
2021
2021
|
variant: r = "default",
|
|
@@ -2025,28 +2025,28 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2025
2025
|
disabled: c,
|
|
2026
2026
|
collapsible: u,
|
|
2027
2027
|
expanded: d,
|
|
2028
|
-
size:
|
|
2028
|
+
size: l,
|
|
2029
2029
|
icon: f,
|
|
2030
|
-
label:
|
|
2030
|
+
label: i,
|
|
2031
2031
|
title: g,
|
|
2032
2032
|
description: v,
|
|
2033
2033
|
badge: y,
|
|
2034
2034
|
linkIcon: w = !1,
|
|
2035
2035
|
select: I,
|
|
2036
2036
|
selected: N,
|
|
2037
|
-
controls:
|
|
2037
|
+
controls: $,
|
|
2038
2038
|
children: k,
|
|
2039
2039
|
interactive: m,
|
|
2040
2040
|
id: O,
|
|
2041
2041
|
containerAs: E,
|
|
2042
2042
|
...D
|
|
2043
2043
|
}) => {
|
|
2044
|
-
const M = typeof
|
|
2044
|
+
const M = typeof i == "function" ? i() : i, b = Ne();
|
|
2045
2045
|
return /* @__PURE__ */ _(
|
|
2046
|
-
|
|
2046
|
+
Tt,
|
|
2047
2047
|
{
|
|
2048
|
-
className: K(
|
|
2049
|
-
size:
|
|
2048
|
+
className: K(Gn.item, e),
|
|
2049
|
+
size: l,
|
|
2050
2050
|
color: o,
|
|
2051
2051
|
variant: r,
|
|
2052
2052
|
shadow: t,
|
|
@@ -2060,7 +2060,7 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2060
2060
|
as: E,
|
|
2061
2061
|
children: [
|
|
2062
2062
|
/* @__PURE__ */ a(
|
|
2063
|
-
|
|
2063
|
+
$n,
|
|
2064
2064
|
{
|
|
2065
2065
|
color: o,
|
|
2066
2066
|
loading: s,
|
|
@@ -2070,11 +2070,11 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2070
2070
|
expanded: d,
|
|
2071
2071
|
select: I,
|
|
2072
2072
|
title: g,
|
|
2073
|
-
size:
|
|
2073
|
+
size: l,
|
|
2074
2074
|
description: v,
|
|
2075
2075
|
icon: f,
|
|
2076
2076
|
badge: y,
|
|
2077
|
-
controls:
|
|
2077
|
+
controls: $,
|
|
2078
2078
|
interactive: m,
|
|
2079
2079
|
ariaControlsId: d ? b : void 0,
|
|
2080
2080
|
...D,
|
|
@@ -2085,9 +2085,13 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2085
2085
|
]
|
|
2086
2086
|
}
|
|
2087
2087
|
);
|
|
2088
|
-
},
|
|
2089
|
-
list:
|
|
2090
|
-
},
|
|
2088
|
+
}, Kn = "_list_14rag_1", qn = {
|
|
2089
|
+
list: Kn
|
|
2090
|
+
}, Un = ({ children: e, className: o, spacing: r, items: t = [], ...n }) => /* @__PURE__ */ a(Ge, { direction: "col", as: "ul", spacing: r, className: K(qn.list, o), ...n, children: e || t.map((s, c) => /* @__PURE__ */ ze(Hn, { ...s, key: `item-${s.id ?? c}` })) }), Vn = "_menu_16mue_4", Wn = "_button_16mue_12", Yn = "_label_16mue_16", ge = {
|
|
2091
|
+
menu: Vn,
|
|
2092
|
+
button: Wn,
|
|
2093
|
+
label: Yn
|
|
2094
|
+
}, Fo = Ie(
|
|
2091
2095
|
({
|
|
2092
2096
|
disabled: e,
|
|
2093
2097
|
label: o = "Label",
|
|
@@ -2099,23 +2103,23 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2099
2103
|
onSelectId: u,
|
|
2100
2104
|
...d
|
|
2101
2105
|
}) => {
|
|
2102
|
-
const
|
|
2106
|
+
const l = Lt({ id: c, returnFocusOnClose: !0 }), f = d.searchable ? "combobox" : "menu", i = Ze(
|
|
2103
2107
|
(v) => {
|
|
2104
|
-
u?.(v?.id ?? ""), v?.role !== "checkbox" &&
|
|
2108
|
+
u?.(v?.id ?? ""), v?.role !== "checkbox" && l.setOpen(!1);
|
|
2105
2109
|
},
|
|
2106
|
-
[u,
|
|
2110
|
+
[u, l]
|
|
2107
2111
|
), g = ce(
|
|
2108
2112
|
() => n.map((v) => ({
|
|
2109
2113
|
...v,
|
|
2110
|
-
onClick: () =>
|
|
2114
|
+
onClick: () => i(v)
|
|
2111
2115
|
})),
|
|
2112
|
-
[n,
|
|
2116
|
+
[n, i]
|
|
2113
2117
|
);
|
|
2114
|
-
return e ? /* @__PURE__ */ _(de, { variant: r, disabled: !0, children: [
|
|
2115
|
-
/* @__PURE__ */ a("span", { children: o }),
|
|
2116
|
-
/* @__PURE__ */ a(
|
|
2117
|
-
] }) : /* @__PURE__ */ a(
|
|
2118
|
-
|
|
2118
|
+
return e ? /* @__PURE__ */ _(de, { className: ge.button, variant: r, disabled: !0, children: [
|
|
2119
|
+
/* @__PURE__ */ a("span", { className: ge.label, children: o }),
|
|
2120
|
+
/* @__PURE__ */ a(Ke, { "aria-hidden": "true", focusable: "false" })
|
|
2121
|
+
] }) : /* @__PURE__ */ a("span", { className: ge.menu, children: /* @__PURE__ */ a(
|
|
2122
|
+
on,
|
|
2119
2123
|
{
|
|
2120
2124
|
id: c,
|
|
2121
2125
|
variant: "drawer-dropdown",
|
|
@@ -2124,37 +2128,38 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2124
2128
|
trigger: /* @__PURE__ */ _(
|
|
2125
2129
|
de,
|
|
2126
2130
|
{
|
|
2131
|
+
className: ge.button,
|
|
2127
2132
|
variant: r,
|
|
2128
|
-
onClick:
|
|
2129
|
-
"aria-expanded":
|
|
2133
|
+
onClick: l.toggleMenu,
|
|
2134
|
+
"aria-expanded": l.open,
|
|
2130
2135
|
"aria-haspopup": "menu",
|
|
2131
|
-
"aria-controls":
|
|
2132
|
-
ref:
|
|
2136
|
+
"aria-controls": l.open ? l.menuId : void 0,
|
|
2137
|
+
ref: l.triggerRef,
|
|
2133
2138
|
children: [
|
|
2134
|
-
/* @__PURE__ */ a("span", { children: o }),
|
|
2135
|
-
/* @__PURE__ */ a(
|
|
2139
|
+
/* @__PURE__ */ a("span", { className: ge.label, children: o }),
|
|
2140
|
+
/* @__PURE__ */ a(Ke, { "aria-hidden": "true", focusable: "false" })
|
|
2136
2141
|
]
|
|
2137
2142
|
}
|
|
2138
2143
|
),
|
|
2139
|
-
open:
|
|
2140
|
-
onClose: () =>
|
|
2141
|
-
...d?.searchable ? {} :
|
|
2144
|
+
open: l.open,
|
|
2145
|
+
onClose: () => l.setOpen(!1),
|
|
2146
|
+
...d?.searchable ? {} : l.dropdownA11yProps,
|
|
2142
2147
|
children: /* @__PURE__ */ a(
|
|
2143
|
-
|
|
2148
|
+
dt,
|
|
2144
2149
|
{
|
|
2145
2150
|
...d,
|
|
2146
2151
|
items: g,
|
|
2147
|
-
keyboardEvents:
|
|
2152
|
+
keyboardEvents: l.open,
|
|
2148
2153
|
a11yMode: f,
|
|
2149
|
-
open:
|
|
2154
|
+
open: l.open,
|
|
2150
2155
|
scrollToTopOnOpen: d.virtualized,
|
|
2151
|
-
...f === "combobox" ? { id:
|
|
2156
|
+
...f === "combobox" ? { id: l.menuId } : l.menuA11yProps
|
|
2152
2157
|
}
|
|
2153
2158
|
)
|
|
2154
2159
|
}
|
|
2155
|
-
);
|
|
2160
|
+
) });
|
|
2156
2161
|
}
|
|
2157
|
-
),
|
|
2162
|
+
), To = Ie(
|
|
2158
2163
|
({
|
|
2159
2164
|
value: e,
|
|
2160
2165
|
name: o,
|
|
@@ -2165,11 +2170,11 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2165
2170
|
onChange: c,
|
|
2166
2171
|
onClear: u,
|
|
2167
2172
|
onKeyDown: d,
|
|
2168
|
-
menu:
|
|
2173
|
+
menu: l,
|
|
2169
2174
|
minLength: f,
|
|
2170
|
-
disabled:
|
|
2175
|
+
disabled: i
|
|
2171
2176
|
}) => /* @__PURE__ */ a(
|
|
2172
|
-
|
|
2177
|
+
Be,
|
|
2173
2178
|
{
|
|
2174
2179
|
size: "xs",
|
|
2175
2180
|
value: e,
|
|
@@ -2185,13 +2190,13 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2185
2190
|
type: "search",
|
|
2186
2191
|
minLength: f,
|
|
2187
2192
|
loading: t,
|
|
2188
|
-
menu:
|
|
2189
|
-
disabled:
|
|
2193
|
+
menu: l,
|
|
2194
|
+
disabled: i
|
|
2190
2195
|
}
|
|
2191
2196
|
)
|
|
2192
|
-
),
|
|
2193
|
-
section:
|
|
2194
|
-
},
|
|
2197
|
+
), Qn = "_section_1w6kc_1", Xn = {
|
|
2198
|
+
section: Qn
|
|
2199
|
+
}, bt = ({
|
|
2195
2200
|
as: e = "section",
|
|
2196
2201
|
direction: o = "col",
|
|
2197
2202
|
align: r = "initial",
|
|
@@ -2200,61 +2205,61 @@ const Ln = ({ loading: e, size: o, icon: r, theme: t, badge: n }) => r ? e ? /*
|
|
|
2200
2205
|
children: s,
|
|
2201
2206
|
...c
|
|
2202
2207
|
}) => /* @__PURE__ */ a(
|
|
2203
|
-
|
|
2208
|
+
Ge,
|
|
2204
2209
|
{
|
|
2205
2210
|
as: e,
|
|
2206
2211
|
align: r,
|
|
2207
2212
|
direction: o,
|
|
2208
2213
|
theme: t,
|
|
2209
|
-
className: K(
|
|
2214
|
+
className: K(Xn.section, n),
|
|
2210
2215
|
...c,
|
|
2211
2216
|
children: s
|
|
2212
2217
|
}
|
|
2213
2218
|
);
|
|
2214
2219
|
export {
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2220
|
+
qe as A,
|
|
2221
|
+
Yr as B,
|
|
2222
|
+
at as C,
|
|
2223
|
+
an as D,
|
|
2224
|
+
_e as E,
|
|
2225
|
+
Ue as F,
|
|
2226
|
+
Ke as G,
|
|
2222
2227
|
oe as H,
|
|
2223
2228
|
J as I,
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2229
|
+
Xt as J,
|
|
2230
|
+
Wt as K,
|
|
2231
|
+
$n as L,
|
|
2232
|
+
dt as M,
|
|
2233
|
+
st as N,
|
|
2234
|
+
_r as O,
|
|
2235
|
+
Lo as R,
|
|
2236
|
+
bt as S,
|
|
2237
|
+
To as T,
|
|
2238
|
+
hr as V,
|
|
2239
|
+
ft as a,
|
|
2240
|
+
pt as b,
|
|
2241
|
+
bn as c,
|
|
2242
|
+
gn as d,
|
|
2243
|
+
xn as e,
|
|
2244
|
+
On as f,
|
|
2245
|
+
on as g,
|
|
2246
|
+
Ve as h,
|
|
2247
|
+
Se as i,
|
|
2248
|
+
We as j,
|
|
2249
|
+
Sr as k,
|
|
2250
|
+
ht as l,
|
|
2251
|
+
Mn as m,
|
|
2252
|
+
Fn as n,
|
|
2253
|
+
Hn as o,
|
|
2254
|
+
Un as p,
|
|
2255
|
+
ut as q,
|
|
2251
2256
|
it as r,
|
|
2252
|
-
|
|
2253
|
-
|
|
2257
|
+
lt as s,
|
|
2258
|
+
He as t,
|
|
2254
2259
|
ee as u,
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
+
Ye as v,
|
|
2261
|
+
Oe as w,
|
|
2262
|
+
br as x,
|
|
2263
|
+
Fo as y,
|
|
2264
|
+
Be as z
|
|
2260
2265
|
};
|