@altinn/altinn-components 0.57.2 → 0.58.0
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/README.md +33 -0
- package/dist/Section-DPj8jAL1.js +2225 -0
- 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/BulkButton.js +11 -11
- 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 +27 -24
- 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 +9 -9
- 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/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 +5 -7
- 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 +20 -25
- 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 +98 -98
- package/dist/hooks/useAccountSelector.js +1 -1
- package/dist/index.js +105 -105
- package/dist/types/lib/components/Bulk/Bulk.stories.d.ts +4 -1
- package/dist/types/lib/components/Bulk/BulkButton.d.ts +2 -1
- package/dist/types/lib/components/Button/Button.d.ts +1 -1
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +3 -2
- package/dist/types/lib/components/Dropdown/Dropdown.d.ts +3 -1
- package/dist/types/lib/components/Dropdown/Dropdown.stories.d.ts +1 -2
- package/dist/types/lib/components/Dropdown/index.d.ts +0 -1
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +1 -0
- 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/Menu/VirtualizedMenu.stories.d.ts +24 -3
- 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/dist/types/lib/test-utils/screenshot-compare.d.ts +49 -0
- package/package.json +10 -3
- package/dist/Section-jhq4n77E.js +0 -2260
- package/dist/assets/DrawerOrDropdown.css +0 -1
- package/dist/components/Dropdown/DrawerOrDropdown.js +0 -42
- package/dist/types/lib/components/Dropdown/DrawerOrDropdown.d.ts +0 -11
|
@@ -0,0 +1,2225 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as x, Fragment as fe } from "react/jsx-runtime";
|
|
3
|
+
import { c as K } from "./index-p1eeF8LQ.js";
|
|
4
|
+
import * as H from "react";
|
|
5
|
+
import C, { forwardRef as V, useRef as Z, useState as se, useMemo as ce, useEffect as Q, Fragment as vt, useLayoutEffect as Re, createContext as bt, useContext as gt, isValidElement as _e, useId as Oe, useCallback as Qe, memo as we, createElement as Me } from "react";
|
|
6
|
+
import { useEscapeKey as yt } from "./hooks/useEscapeKey.js";
|
|
7
|
+
import { Button as pe } from "./components/Button/Button.js";
|
|
8
|
+
import { createPortal as _t } from "react-dom";
|
|
9
|
+
import { useMenu as Be } from "./hooks/useMenu.js";
|
|
10
|
+
import { Typography as Xe } from "./components/Typography/Typography.js";
|
|
11
|
+
import { Skeleton as Ne } from "./components/Skeleton/Skeleton.js";
|
|
12
|
+
import { useHighlightedText as wt } from "./components/Typography/useHighlightedText.js";
|
|
13
|
+
import { Badge as ye } from "./components/Badge/Badge.js";
|
|
14
|
+
import { isAvatarGroupProps as ke, AvatarGroup as he } from "./components/Avatar/AvatarGroup.js";
|
|
15
|
+
import { ItemControls as Ae } from "./components/Item/ItemControls.js";
|
|
16
|
+
import { ItemBase as It } from "./components/Item/ItemBase.js";
|
|
17
|
+
import { ItemLink as xt } from "./components/Item/ItemLink.js";
|
|
18
|
+
import { Tooltip as Ot } from "./components/Tooltip/Tooltip.js";
|
|
19
|
+
import { MetaBase as Nt } from "./components/Metadata/MetaBase.js";
|
|
20
|
+
import { MetaItemBase as Le } from "./components/Metadata/MetaItemBase.js";
|
|
21
|
+
import { SnackbarProvider as kt } from "./components/Snackbar/useSnackbar.js";
|
|
22
|
+
import { Input as Je } from "./components/Forms/Input.js";
|
|
23
|
+
import { Field as Ct } from "./components/Forms/Field.js";
|
|
24
|
+
import { Label as Et } from "./components/Forms/Label.js";
|
|
25
|
+
import { TypingIcon as Pt } from "./components/Icon/TypingIcon.js";
|
|
26
|
+
import { u as W } from "./useId-BVFxCjkq.js";
|
|
27
|
+
import { isAvatarProps as Ce, Avatar as Se } from "./components/Avatar/Avatar.js";
|
|
28
|
+
import { pickAriaProps as St } from "./components/Menu/aria.js";
|
|
29
|
+
import { MenuList as Ee } from "./components/Menu/MenuList.js";
|
|
30
|
+
import { MenuListItem as Ze } from "./components/Menu/MenuListItem.js";
|
|
31
|
+
import { MenuListGroup as et } from "./components/Menu/MenuListGroup.js";
|
|
32
|
+
import { MenuListDivider as tt } from "./components/Menu/MenuListDivider.js";
|
|
33
|
+
import { MenuListHeading as nt } from "./components/Menu/MenuListHeading.js";
|
|
34
|
+
import { a as zt } from "./useMenuVirtualization-Cs426RCN.js";
|
|
35
|
+
import { S as jt, a as $t, b as Rt, d as Mt, c as At } from "./Trash-BG9YcGIl.js";
|
|
36
|
+
import { useDropdownMenuController as Dt } from "./components/Menu/useDropdownMenuController.js";
|
|
37
|
+
import { ProgressIcon as Bt } from "./components/Icon/ProgressIcon.js";
|
|
38
|
+
import { MetaItemLabel as Fe } from "./components/Metadata/MetaItemLabel.js";
|
|
39
|
+
import { ListItemBase as Lt } from "./components/List/ListItemBase.js";
|
|
40
|
+
import { ListItemLink as Ft } from "./components/List/ListItemLink.js";
|
|
41
|
+
import { ListItemControls as Tt } from "./components/List/ListItemControls.js";
|
|
42
|
+
import { Flex as Te } from "./components/Page/Flex.js";
|
|
43
|
+
import './assets/Section.css';var Gt = function(e, o) {
|
|
44
|
+
var n = {};
|
|
45
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
46
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
47
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
48
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
49
|
+
return n;
|
|
50
|
+
};
|
|
51
|
+
const Ht = V((e, o) => {
|
|
52
|
+
var { title: n, titleId: t } = e, r = Gt(e, ["title", "titleId"]);
|
|
53
|
+
let s = W();
|
|
54
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
55
|
+
"svg",
|
|
56
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
57
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
60
|
+
});
|
|
61
|
+
var Kt = function(e, o) {
|
|
62
|
+
var n = {};
|
|
63
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
64
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
65
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
66
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
67
|
+
return n;
|
|
68
|
+
};
|
|
69
|
+
const rt = V((e, o) => {
|
|
70
|
+
var { title: n, titleId: t } = e, r = Kt(e, ["title", "titleId"]);
|
|
71
|
+
let s = W();
|
|
72
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
73
|
+
"svg",
|
|
74
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
75
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
78
|
+
});
|
|
79
|
+
var qt = function(e, o) {
|
|
80
|
+
var n = {};
|
|
81
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
82
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
83
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
84
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
85
|
+
return n;
|
|
86
|
+
};
|
|
87
|
+
const Ut = V((e, o) => {
|
|
88
|
+
var { title: n, titleId: t } = e, r = qt(e, ["title", "titleId"]);
|
|
89
|
+
let s = W();
|
|
90
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
91
|
+
"svg",
|
|
92
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
93
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
96
|
+
});
|
|
97
|
+
var Vt = function(e, o) {
|
|
98
|
+
var n = {};
|
|
99
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
100
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
101
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
102
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
103
|
+
return n;
|
|
104
|
+
};
|
|
105
|
+
const ot = V((e, o) => {
|
|
106
|
+
var { title: n, titleId: t } = e, r = Vt(e, ["title", "titleId"]);
|
|
107
|
+
let s = W();
|
|
108
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
109
|
+
"svg",
|
|
110
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
111
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
114
|
+
});
|
|
115
|
+
var Wt = function(e, o) {
|
|
116
|
+
var n = {};
|
|
117
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
118
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
119
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
120
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
121
|
+
return n;
|
|
122
|
+
};
|
|
123
|
+
const Yt = V((e, o) => {
|
|
124
|
+
var { title: n, titleId: t } = e, r = Wt(e, ["title", "titleId"]);
|
|
125
|
+
let s = W();
|
|
126
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
127
|
+
"svg",
|
|
128
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
129
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
132
|
+
});
|
|
133
|
+
var Qt = function(e, o) {
|
|
134
|
+
var n = {};
|
|
135
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
136
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
137
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
138
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
139
|
+
return n;
|
|
140
|
+
};
|
|
141
|
+
const He = V((e, o) => {
|
|
142
|
+
var { title: n, titleId: t } = e, r = Qt(e, ["title", "titleId"]);
|
|
143
|
+
let s = W();
|
|
144
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
145
|
+
"svg",
|
|
146
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
147
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
150
|
+
});
|
|
151
|
+
var Xt = function(e, o) {
|
|
152
|
+
var n = {};
|
|
153
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
154
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
155
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
156
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
157
|
+
return n;
|
|
158
|
+
};
|
|
159
|
+
const Jt = V((e, o) => {
|
|
160
|
+
var { title: n, titleId: t } = e, r = Xt(e, ["title", "titleId"]);
|
|
161
|
+
let s = W();
|
|
162
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
163
|
+
"svg",
|
|
164
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
165
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
168
|
+
});
|
|
169
|
+
var Zt = function(e, o) {
|
|
170
|
+
var n = {};
|
|
171
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
172
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
173
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
174
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
175
|
+
return n;
|
|
176
|
+
};
|
|
177
|
+
const en = V((e, o) => {
|
|
178
|
+
var { title: n, titleId: t } = e, r = Zt(e, ["title", "titleId"]);
|
|
179
|
+
let s = W();
|
|
180
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
181
|
+
"svg",
|
|
182
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
183
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
186
|
+
});
|
|
187
|
+
var tn = function(e, o) {
|
|
188
|
+
var n = {};
|
|
189
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
190
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
191
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
192
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
193
|
+
return n;
|
|
194
|
+
};
|
|
195
|
+
const nn = V((e, o) => {
|
|
196
|
+
var { title: n, titleId: t } = e, r = tn(e, ["title", "titleId"]);
|
|
197
|
+
let s = W();
|
|
198
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
199
|
+
"svg",
|
|
200
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
201
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
204
|
+
});
|
|
205
|
+
var rn = function(e, o) {
|
|
206
|
+
var n = {};
|
|
207
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
208
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
209
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
210
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
211
|
+
return n;
|
|
212
|
+
};
|
|
213
|
+
const on = V((e, o) => {
|
|
214
|
+
var { title: n, titleId: t } = e, r = rn(e, ["title", "titleId"]);
|
|
215
|
+
let s = W();
|
|
216
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
217
|
+
"svg",
|
|
218
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
219
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
222
|
+
});
|
|
223
|
+
var an = function(e, o) {
|
|
224
|
+
var n = {};
|
|
225
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
226
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
227
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
228
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
229
|
+
return n;
|
|
230
|
+
};
|
|
231
|
+
const sn = V((e, o) => {
|
|
232
|
+
var { title: n, titleId: t } = e, r = an(e, ["title", "titleId"]);
|
|
233
|
+
let s = W();
|
|
234
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
235
|
+
"svg",
|
|
236
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
237
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
238
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
|
|
239
|
+
);
|
|
240
|
+
});
|
|
241
|
+
var ln = function(e, o) {
|
|
242
|
+
var n = {};
|
|
243
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (n[t] = e[t]);
|
|
244
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
245
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
246
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
247
|
+
return n;
|
|
248
|
+
};
|
|
249
|
+
const ze = V((e, o) => {
|
|
250
|
+
var { title: n, titleId: t } = e, r = ln(e, ["title", "titleId"]);
|
|
251
|
+
let s = W();
|
|
252
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
253
|
+
"svg",
|
|
254
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: o, "aria-labelledby": s }, r),
|
|
255
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
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
|
+
);
|
|
258
|
+
}), cn = "_icon_1y3dz_1", dn = "_shape_1y3dz_9", un = "_svg_1y3dz_14", mn = "_image_1y3dz_15", ve = {
|
|
259
|
+
icon: cn,
|
|
260
|
+
shape: dn,
|
|
261
|
+
svg: un,
|
|
262
|
+
image: mn
|
|
263
|
+
}, Pe = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), X = ({
|
|
264
|
+
loading: e,
|
|
265
|
+
altText: o,
|
|
266
|
+
svgElement: n,
|
|
267
|
+
size: t,
|
|
268
|
+
color: r,
|
|
269
|
+
iconUrl: s,
|
|
270
|
+
className: c,
|
|
271
|
+
style: u,
|
|
272
|
+
children: d
|
|
273
|
+
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: K(ve.icon, c), style: u, children: /* @__PURE__ */ x(Ne, { loading: e, variant: "circle", className: ve.shape, children: [
|
|
274
|
+
/* @__PURE__ */ a("span", { className: ve.shape }),
|
|
275
|
+
n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: ve.svg }),
|
|
276
|
+
s && /* @__PURE__ */ a("img", { src: s, alt: o, className: ve.image }),
|
|
277
|
+
d
|
|
278
|
+
] }) }), fn = ({ size: e, color: o, label: n, helperText: t, children: r, ...s }) => /* @__PURE__ */ x(Ct, { size: e, color: o, ...s, children: [
|
|
279
|
+
n && /* @__PURE__ */ a(Et, { size: e, children: n }),
|
|
280
|
+
r,
|
|
281
|
+
t && /* @__PURE__ */ a(Xe, { size: "xs", children: t })
|
|
282
|
+
] }), pn = "_search_18jfe_1", hn = "_searchInput_18jfe_8", $e = {
|
|
283
|
+
search: pn,
|
|
284
|
+
searchInput: hn
|
|
285
|
+
}, at = ({
|
|
286
|
+
style: e,
|
|
287
|
+
index: o,
|
|
288
|
+
name: n,
|
|
289
|
+
value: t,
|
|
290
|
+
placeholder: r = "Search",
|
|
291
|
+
clearButtonAltText: s = "Clear search",
|
|
292
|
+
onChange: c,
|
|
293
|
+
onClear: u,
|
|
294
|
+
onNavigate: d,
|
|
295
|
+
combobox: l = !1,
|
|
296
|
+
listId: f,
|
|
297
|
+
"aria-activedescendant": i,
|
|
298
|
+
onKeyDown: y,
|
|
299
|
+
onInput: b,
|
|
300
|
+
onFocus: _,
|
|
301
|
+
...N
|
|
302
|
+
}) => /* @__PURE__ */ a("li", { className: $e.search, style: e, "data-index": o, "data-menu-search": "true", children: l ? (
|
|
303
|
+
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
304
|
+
// biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
|
|
305
|
+
// biome-ignore lint/a11y/useSemanticElements: <explanation>
|
|
306
|
+
/* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns": f, children: /* @__PURE__ */ a(
|
|
307
|
+
De,
|
|
308
|
+
{
|
|
309
|
+
size: "xs",
|
|
310
|
+
className: $e.searchInput,
|
|
311
|
+
name: n,
|
|
312
|
+
value: t,
|
|
313
|
+
placeholder: r,
|
|
314
|
+
onChange: c,
|
|
315
|
+
onClear: u,
|
|
316
|
+
clearButtonAltText: s,
|
|
317
|
+
autoComplete: "off",
|
|
318
|
+
autoCorrect: "off",
|
|
319
|
+
autoCapitalize: "off",
|
|
320
|
+
"aria-autocomplete": "list",
|
|
321
|
+
"aria-controls": f,
|
|
322
|
+
"aria-activedescendant": i,
|
|
323
|
+
autoFocus: !0,
|
|
324
|
+
onKeyDown: (v) => {
|
|
325
|
+
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), d?.()), y?.(v);
|
|
326
|
+
},
|
|
327
|
+
onInput: b,
|
|
328
|
+
onFocus: _,
|
|
329
|
+
...N
|
|
330
|
+
}
|
|
331
|
+
) })
|
|
332
|
+
) : /* @__PURE__ */ a(
|
|
333
|
+
De,
|
|
334
|
+
{
|
|
335
|
+
size: "xs",
|
|
336
|
+
className: $e.searchInput,
|
|
337
|
+
name: n,
|
|
338
|
+
value: t,
|
|
339
|
+
placeholder: r,
|
|
340
|
+
onChange: c,
|
|
341
|
+
onClear: u,
|
|
342
|
+
clearButtonAltText: s,
|
|
343
|
+
autoComplete: "off",
|
|
344
|
+
autoCorrect: "off",
|
|
345
|
+
autoCapitalize: "off",
|
|
346
|
+
autoFocus: !0,
|
|
347
|
+
onKeyDown: (v) => {
|
|
348
|
+
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), d?.()), y?.(v);
|
|
349
|
+
},
|
|
350
|
+
onInput: b,
|
|
351
|
+
onFocus: _,
|
|
352
|
+
...N
|
|
353
|
+
}
|
|
354
|
+
) }), st = ({
|
|
355
|
+
level: e = 0,
|
|
356
|
+
maxLevels: o,
|
|
357
|
+
expanded: n,
|
|
358
|
+
a11yMode: t = "menu",
|
|
359
|
+
open: r,
|
|
360
|
+
scrollToTopOnOpen: s = !1,
|
|
361
|
+
autoActivateFirstItem: c = !0,
|
|
362
|
+
autoFocusList: u = !0,
|
|
363
|
+
announceNoResults: d = !1,
|
|
364
|
+
search: l,
|
|
365
|
+
items: f,
|
|
366
|
+
groups: i = {},
|
|
367
|
+
size: y,
|
|
368
|
+
id: b,
|
|
369
|
+
color: _,
|
|
370
|
+
variant: N,
|
|
371
|
+
scrollRefStyles: v = {},
|
|
372
|
+
keyboardEvents: E = !1,
|
|
373
|
+
onSelect: R = () => {
|
|
374
|
+
},
|
|
375
|
+
onActiveItemIdChange: O
|
|
376
|
+
}) => {
|
|
377
|
+
if (o && e >= o)
|
|
378
|
+
return null;
|
|
379
|
+
const h = t === "combobox", m = h && b ? `${b}-listbox` : b, M = Z(r), S = Z(r), [A, j] = se(!1), $ = ce(
|
|
380
|
+
() => f.map((p, P) => ({
|
|
381
|
+
...p,
|
|
382
|
+
id: p.id || `${b}-item-${P}`
|
|
383
|
+
})),
|
|
384
|
+
[f, b]
|
|
385
|
+
), D = Z(null), { menu: z, setActiveIndex: g, activeItem: w } = Be({
|
|
386
|
+
items: $,
|
|
387
|
+
groups: i,
|
|
388
|
+
groupByKey: "groupId",
|
|
389
|
+
keyboardEvents: E,
|
|
390
|
+
autoActivateFirstItem: c,
|
|
391
|
+
onSelect: R,
|
|
392
|
+
ref: D
|
|
393
|
+
});
|
|
394
|
+
return Q(() => {
|
|
395
|
+
O?.(w?.id);
|
|
396
|
+
}, [w?.id, O]), Q(() => {
|
|
397
|
+
if (!s) {
|
|
398
|
+
M.current = r;
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
const p = M.current;
|
|
402
|
+
M.current = r, r && !p && D.current?.scrollTo({ top: 0 });
|
|
403
|
+
}, [r, s]), Q(() => {
|
|
404
|
+
const p = S.current;
|
|
405
|
+
S.current = r, !(!E || l || !u) && r && !p && requestAnimationFrame(() => D.current?.focus?.({ preventScroll: !0 }));
|
|
406
|
+
}, [r, E, l]), Q(() => {
|
|
407
|
+
if (h && d) {
|
|
408
|
+
g(0), j(!0);
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
}, [d, h, g]), /* @__PURE__ */ x(
|
|
412
|
+
Ee,
|
|
413
|
+
{
|
|
414
|
+
variant: N,
|
|
415
|
+
expanded: n,
|
|
416
|
+
ref: D,
|
|
417
|
+
style: v,
|
|
418
|
+
id: m,
|
|
419
|
+
role: h ? "listbox" : void 0,
|
|
420
|
+
tabIndex: E ? -1 : void 0,
|
|
421
|
+
children: [
|
|
422
|
+
l && /* @__PURE__ */ a(
|
|
423
|
+
at,
|
|
424
|
+
{
|
|
425
|
+
...l,
|
|
426
|
+
combobox: h,
|
|
427
|
+
listId: m,
|
|
428
|
+
"aria-activedescendant": h && A ? w?.id : void 0,
|
|
429
|
+
onNavigate: h ? () => j(!0) : void 0,
|
|
430
|
+
onChange: (p) => {
|
|
431
|
+
j(!1), l.onChange?.(p);
|
|
432
|
+
},
|
|
433
|
+
onFocus: (p) => {
|
|
434
|
+
j(!1), l.onFocus?.(p);
|
|
435
|
+
},
|
|
436
|
+
onInput: (p) => {
|
|
437
|
+
j(!1), l.onInput?.(p);
|
|
438
|
+
},
|
|
439
|
+
onKeyDown: (p) => {
|
|
440
|
+
const P = p.key === "ArrowUp" || p.key === "ArrowDown", F = p.key.length === 1 || p.key === "Backspace" || p.key === "Delete";
|
|
441
|
+
h && !P && F && j(!1), l.onKeyDown?.(p);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
),
|
|
445
|
+
z.map((p, P) => {
|
|
446
|
+
const F = p?.props || {}, { title: T, hidden: G = !1, divider: U = !0 } = F;
|
|
447
|
+
return /* @__PURE__ */ x(vt, { children: [
|
|
448
|
+
(e > 0 || P) && U ? /* @__PURE__ */ a(tt, {}) : "",
|
|
449
|
+
/* @__PURE__ */ a(et, { hidden: G, children: /* @__PURE__ */ x(Ee, { role: "presentation", children: [
|
|
450
|
+
T && /* @__PURE__ */ a(nt, { title: T, level: e }),
|
|
451
|
+
p?.items.filter((ee) => !ee.props?.hidden).map((ee, I) => {
|
|
452
|
+
const { active: k, onMouseEnter: L } = ee, { groupId: te, ...B } = ee.props || {}, { expanded: ae } = B, de = Array.isArray(B?.items) && B.items.length > 0, Ie = B.role === "checkbox" || B.role === "radio", je = h && !Ie ? "option" : B.role;
|
|
453
|
+
return /* @__PURE__ */ x(
|
|
454
|
+
Ze,
|
|
455
|
+
{
|
|
456
|
+
expanded: ae,
|
|
457
|
+
onMouseLeave: () => g(-1),
|
|
458
|
+
role: h || Ie ? "presentation" : void 0,
|
|
459
|
+
children: [
|
|
460
|
+
/* @__PURE__ */ a(
|
|
461
|
+
ct,
|
|
462
|
+
{
|
|
463
|
+
...B,
|
|
464
|
+
size: B?.size || F?.size || y,
|
|
465
|
+
color: B?.color || F?.color || _,
|
|
466
|
+
variant: B?.variant || F?.variant || N,
|
|
467
|
+
active: k,
|
|
468
|
+
role: je,
|
|
469
|
+
selected: B.selected,
|
|
470
|
+
tabIndex: B?.disabled || E ? -1 : B.tabIndex ?? 0,
|
|
471
|
+
onMouseEnter: L,
|
|
472
|
+
"aria-haspopup": de ? "menu" : void 0,
|
|
473
|
+
"aria-expanded": de ? ae : void 0,
|
|
474
|
+
"aria-controls": de ? B.id + "-menu" : void 0
|
|
475
|
+
}
|
|
476
|
+
),
|
|
477
|
+
ae && B?.items && /* @__PURE__ */ a(
|
|
478
|
+
st,
|
|
479
|
+
{
|
|
480
|
+
id: B.id + "-menu",
|
|
481
|
+
expanded: ae,
|
|
482
|
+
level: e + 1,
|
|
483
|
+
maxLevels: o,
|
|
484
|
+
items: B?.items,
|
|
485
|
+
groups: i,
|
|
486
|
+
size: y,
|
|
487
|
+
color: _,
|
|
488
|
+
variant: N
|
|
489
|
+
}
|
|
490
|
+
)
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
I
|
|
494
|
+
);
|
|
495
|
+
})
|
|
496
|
+
] }) }, P)
|
|
497
|
+
] }, P);
|
|
498
|
+
})
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
);
|
|
502
|
+
}, vn = (e) => {
|
|
503
|
+
const o = Z(null), n = Z(null), [t, r] = se(0), {
|
|
504
|
+
search: s,
|
|
505
|
+
items: c,
|
|
506
|
+
groups: u = {},
|
|
507
|
+
size: d,
|
|
508
|
+
color: l,
|
|
509
|
+
variant: f,
|
|
510
|
+
keyboardEvents: i,
|
|
511
|
+
scrollRefStyles: y = {},
|
|
512
|
+
id: b,
|
|
513
|
+
expanded: _,
|
|
514
|
+
a11yMode: N = "menu",
|
|
515
|
+
open: v,
|
|
516
|
+
scrollToTopOnOpen: E = !1,
|
|
517
|
+
autoActivateFirstItem: R = !0,
|
|
518
|
+
announceNoResults: O = !1,
|
|
519
|
+
onActiveItemIdChange: h
|
|
520
|
+
} = e, m = N === "combobox", M = m && b ? `${b}-listbox` : b, S = Z(v), [A, j] = se(!1), $ = ce(
|
|
521
|
+
() => c.map((I, k) => ({
|
|
522
|
+
...I,
|
|
523
|
+
id: I.id || `${b}-item-${k}`
|
|
524
|
+
})),
|
|
525
|
+
[c, b]
|
|
526
|
+
), { menu: D, activeItem: z, setActiveIndex: g, activeIndex: w } = Be({
|
|
527
|
+
items: $,
|
|
528
|
+
groups: u,
|
|
529
|
+
groupByKey: "groupId",
|
|
530
|
+
keyboardEvents: i,
|
|
531
|
+
autoActivateFirstItem: R,
|
|
532
|
+
ref: o
|
|
533
|
+
}), { flatMenu: p, virtualizer: P, scrollMaxHeight: F } = zt({
|
|
534
|
+
menu: D,
|
|
535
|
+
scrollRef: o
|
|
536
|
+
});
|
|
537
|
+
Re(() => {
|
|
538
|
+
const I = n.current;
|
|
539
|
+
if (!I) return;
|
|
540
|
+
const k = Math.round(I.offsetTop);
|
|
541
|
+
r((L) => L === k ? L : k);
|
|
542
|
+
});
|
|
543
|
+
const T = ce(() => {
|
|
544
|
+
const I = z?.id;
|
|
545
|
+
if (I)
|
|
546
|
+
return p.findIndex((L) => L.type === "item" && L.itemProps?.id === I);
|
|
547
|
+
if (w < 0) return -1;
|
|
548
|
+
let k = -1;
|
|
549
|
+
for (let L = 0; L < p.length; L++)
|
|
550
|
+
if (p[L]?.type === "item" && (k += 1, k === w))
|
|
551
|
+
return L;
|
|
552
|
+
return -1;
|
|
553
|
+
}, [z?.id, w, p]), G = Z(null);
|
|
554
|
+
Re(() => {
|
|
555
|
+
const I = G?.current, k = typeof I == "number" ? T <= I : !1;
|
|
556
|
+
G.current = T;
|
|
557
|
+
const L = k ? T : T + 2;
|
|
558
|
+
if (!k) {
|
|
559
|
+
const de = P.getOffsetForIndex(L, "auto");
|
|
560
|
+
if (!de) return;
|
|
561
|
+
const [Ie, je] = de;
|
|
562
|
+
if (je === "auto") return;
|
|
563
|
+
P.scrollToOffset(Ie + t + 10, { align: "start" });
|
|
564
|
+
return;
|
|
565
|
+
}
|
|
566
|
+
if (T <= 3) {
|
|
567
|
+
P.scrollToOffset(0);
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
const te = P.getOffsetForIndex(T - 1, "auto");
|
|
571
|
+
if (!te) return;
|
|
572
|
+
const [B, ae] = te;
|
|
573
|
+
ae !== "auto" && P.scrollToOffset(B + t + 10, { align: "start" });
|
|
574
|
+
}, [T, t, P, G]);
|
|
575
|
+
const U = ce(() => {
|
|
576
|
+
const I = /* @__PURE__ */ new Map();
|
|
577
|
+
let k = 0;
|
|
578
|
+
return p.forEach((L, te) => {
|
|
579
|
+
L.type === "item" && (k += 1, I.set(te, k));
|
|
580
|
+
}), { positions: I, total: k };
|
|
581
|
+
}, [p]);
|
|
582
|
+
Q(() => {
|
|
583
|
+
h?.(z?.id);
|
|
584
|
+
}, [z?.id, h]), Q(() => {
|
|
585
|
+
if (m && O) {
|
|
586
|
+
g(0), j(!0);
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
}, [O, m, g]), Q(() => {
|
|
590
|
+
if (!E) {
|
|
591
|
+
S.current = v;
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
const I = S.current;
|
|
595
|
+
S.current = v, v && !I && o.current?.scrollTo({ top: 0 });
|
|
596
|
+
}, [v, E]);
|
|
597
|
+
const ee = {
|
|
598
|
+
position: "relative",
|
|
599
|
+
maxHeight: y?.maxHeight || F,
|
|
600
|
+
margin: "-0.5rem",
|
|
601
|
+
padding: "0.5rem",
|
|
602
|
+
minWidth: y?.minWidth ?? "20rem",
|
|
603
|
+
overflowY: "auto",
|
|
604
|
+
...y
|
|
605
|
+
};
|
|
606
|
+
return /* @__PURE__ */ x(
|
|
607
|
+
Ee,
|
|
608
|
+
{
|
|
609
|
+
ref: o,
|
|
610
|
+
style: ee,
|
|
611
|
+
variant: f,
|
|
612
|
+
color: l,
|
|
613
|
+
expanded: _,
|
|
614
|
+
id: M,
|
|
615
|
+
role: m ? "listbox" : void 0,
|
|
616
|
+
children: [
|
|
617
|
+
s && /* @__PURE__ */ a(
|
|
618
|
+
at,
|
|
619
|
+
{
|
|
620
|
+
...s,
|
|
621
|
+
combobox: m,
|
|
622
|
+
listId: M,
|
|
623
|
+
"aria-activedescendant": m && A ? z?.id : void 0,
|
|
624
|
+
onNavigate: m ? () => j(!0) : void 0,
|
|
625
|
+
onChange: (I) => {
|
|
626
|
+
j(!1), s.onChange?.(I);
|
|
627
|
+
},
|
|
628
|
+
onFocus: (I) => {
|
|
629
|
+
j(!1), s.onFocus?.(I);
|
|
630
|
+
},
|
|
631
|
+
onInput: (I) => {
|
|
632
|
+
j(!1), s.onInput?.(I);
|
|
633
|
+
},
|
|
634
|
+
onKeyDown: (I) => {
|
|
635
|
+
const k = I.key === "ArrowUp" || I.key === "ArrowDown", L = I.key.length === 1 || I.key === "Backspace" || I.key === "Delete";
|
|
636
|
+
m && !k && L && j(!1), s.onKeyDown?.(I);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
),
|
|
640
|
+
/* @__PURE__ */ a(
|
|
641
|
+
et,
|
|
642
|
+
{
|
|
643
|
+
ref: n,
|
|
644
|
+
style: {
|
|
645
|
+
position: "relative",
|
|
646
|
+
height: `${P.getTotalSize()}px`,
|
|
647
|
+
width: "100%"
|
|
648
|
+
},
|
|
649
|
+
children: /* @__PURE__ */ a(Ee, { style: { width: "100%", minWidth: "100%" }, children: P.getVirtualItems().map((I) => {
|
|
650
|
+
const k = p[I.index];
|
|
651
|
+
if (!k) return null;
|
|
652
|
+
const L = {
|
|
653
|
+
position: "absolute",
|
|
654
|
+
top: 0,
|
|
655
|
+
left: 0,
|
|
656
|
+
width: "100%",
|
|
657
|
+
transform: `translateY(${I.start}px)`
|
|
658
|
+
}, te = {
|
|
659
|
+
style: L,
|
|
660
|
+
index: I.index,
|
|
661
|
+
"data-index": I.index,
|
|
662
|
+
ref: P.measureElement
|
|
663
|
+
};
|
|
664
|
+
switch (k.type) {
|
|
665
|
+
case "divider":
|
|
666
|
+
return /* @__PURE__ */ a(
|
|
667
|
+
tt,
|
|
668
|
+
{
|
|
669
|
+
...te,
|
|
670
|
+
style: { ...L, padding: "0.25rem 0" }
|
|
671
|
+
},
|
|
672
|
+
I.key
|
|
673
|
+
);
|
|
674
|
+
case "header":
|
|
675
|
+
return /* @__PURE__ */ a(nt, { ...te, title: k.title || "", level: 1 }, I.key);
|
|
676
|
+
default: {
|
|
677
|
+
const B = k.itemProps?.role === "checkbox" || k.itemProps?.role === "radio", ae = m && !B ? "option" : k.itemProps?.role;
|
|
678
|
+
return /* @__PURE__ */ a(
|
|
679
|
+
Ze,
|
|
680
|
+
{
|
|
681
|
+
...te,
|
|
682
|
+
role: m || B ? "presentation" : "menuitem",
|
|
683
|
+
children: /* @__PURE__ */ a(
|
|
684
|
+
ct,
|
|
685
|
+
{
|
|
686
|
+
...k.itemProps || {},
|
|
687
|
+
size: k.itemProps?.size || d,
|
|
688
|
+
color: k.itemProps?.color || l,
|
|
689
|
+
variant: k.itemProps?.variant || f,
|
|
690
|
+
active: k.active,
|
|
691
|
+
role: ae,
|
|
692
|
+
selected: k.itemProps?.selected,
|
|
693
|
+
"aria-posinset": m ? U.positions.get(I.index) : void 0,
|
|
694
|
+
"aria-setsize": m ? U.total : void 0,
|
|
695
|
+
tabIndex: k.itemProps?.disabled || i ? -1 : 0
|
|
696
|
+
}
|
|
697
|
+
)
|
|
698
|
+
},
|
|
699
|
+
I.key
|
|
700
|
+
);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}) })
|
|
704
|
+
}
|
|
705
|
+
)
|
|
706
|
+
]
|
|
707
|
+
}
|
|
708
|
+
);
|
|
709
|
+
}, bn = {
|
|
710
|
+
currentId: "",
|
|
711
|
+
previousId: "",
|
|
712
|
+
debug: !1,
|
|
713
|
+
setCurrentId: () => {
|
|
714
|
+
console.warn("setCurrentId called outside of RootProvider context");
|
|
715
|
+
},
|
|
716
|
+
setPreviousId: () => {
|
|
717
|
+
console.warn("setPreviousId called outside of RootProvider context");
|
|
718
|
+
},
|
|
719
|
+
languageCode: "nb"
|
|
720
|
+
}, lt = bt(bn), Fo = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
|
|
721
|
+
const [r, s] = se(o?.currentId || ""), [c, u] = se(o?.previousId || "");
|
|
722
|
+
return /* @__PURE__ */ a(
|
|
723
|
+
lt.Provider,
|
|
724
|
+
{
|
|
725
|
+
value: {
|
|
726
|
+
currentId: r,
|
|
727
|
+
setCurrentId: s,
|
|
728
|
+
setPreviousId: u,
|
|
729
|
+
previousId: c,
|
|
730
|
+
debug: n,
|
|
731
|
+
languageCode: t
|
|
732
|
+
},
|
|
733
|
+
children: /* @__PURE__ */ a(kt, { children: e })
|
|
734
|
+
}
|
|
735
|
+
);
|
|
736
|
+
}, gn = () => {
|
|
737
|
+
const e = gt(lt);
|
|
738
|
+
if (!e)
|
|
739
|
+
throw new Error("useRootContext must be used within a RootProvider.");
|
|
740
|
+
const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: c } = e, u = (i) => {
|
|
741
|
+
o && r(o), n(i);
|
|
742
|
+
}, d = (i) => {
|
|
743
|
+
t && console.debug(`useRootContext: toggleId called with value: ${i}`), u(o === i ? "" : i);
|
|
744
|
+
}, l = () => {
|
|
745
|
+
t && console.debug("useRootContext: closeAll called"), u("");
|
|
746
|
+
};
|
|
747
|
+
return yt(l), {
|
|
748
|
+
currentId: o,
|
|
749
|
+
previousId: s,
|
|
750
|
+
toggleId: d,
|
|
751
|
+
closeAll: l,
|
|
752
|
+
openId: (i) => {
|
|
753
|
+
t && console.debug(`useRootContext: openId called with value: ${i}`), u(i);
|
|
754
|
+
},
|
|
755
|
+
languageCode: c
|
|
756
|
+
};
|
|
757
|
+
}, yn = (e) => {
|
|
758
|
+
switch (e) {
|
|
759
|
+
case "nn":
|
|
760
|
+
return {
|
|
761
|
+
placeholder: "Søk ...",
|
|
762
|
+
hits: (o) => `${o} treff`,
|
|
763
|
+
selected: (o) => `${o} valt`,
|
|
764
|
+
noResults: "Ingen treff"
|
|
765
|
+
};
|
|
766
|
+
case "en":
|
|
767
|
+
return {
|
|
768
|
+
placeholder: "Search ...",
|
|
769
|
+
hits: (o) => `${o} hit${o === 1 ? "" : "s"}`,
|
|
770
|
+
selected: (o) => `${o} selected`,
|
|
771
|
+
noResults: "No results"
|
|
772
|
+
};
|
|
773
|
+
default:
|
|
774
|
+
return {
|
|
775
|
+
placeholder: "Søk ...",
|
|
776
|
+
hits: (o) => `${o} treff`,
|
|
777
|
+
selected: (o) => `${o} valgt`,
|
|
778
|
+
noResults: "Ingen treff"
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
}, _n = (e) => {
|
|
782
|
+
const o = /* @__PURE__ */ new Set(), n = [];
|
|
783
|
+
for (const t of e) {
|
|
784
|
+
const r = t.id;
|
|
785
|
+
if (!r) {
|
|
786
|
+
n.push(t);
|
|
787
|
+
continue;
|
|
788
|
+
}
|
|
789
|
+
o.has(r) || (o.add(r), n.push(t));
|
|
790
|
+
}
|
|
791
|
+
return n;
|
|
792
|
+
}, wn = ({
|
|
793
|
+
placeholder: e,
|
|
794
|
+
name: o,
|
|
795
|
+
onChange: n,
|
|
796
|
+
onClear: t,
|
|
797
|
+
clearButtonAltText: r,
|
|
798
|
+
items: s = [],
|
|
799
|
+
groups: c = {}
|
|
800
|
+
}) => {
|
|
801
|
+
const { languageCode: u } = gn(), d = H.useMemo(() => yn(u), [u]), [l, f] = H.useState(""), i = H.useCallback(
|
|
802
|
+
(w) => {
|
|
803
|
+
f(w.target.value), n?.(w);
|
|
804
|
+
},
|
|
805
|
+
[n]
|
|
806
|
+
), y = H.useCallback(() => {
|
|
807
|
+
f(""), t?.();
|
|
808
|
+
}, [t]), b = H.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), _ = b.length > 0, N = H.useMemo(() => b.toLowerCase(), [b]), v = H.useMemo(() => b ? b.split(" ") : [], [b]), E = H.useMemo(
|
|
809
|
+
() => ({
|
|
810
|
+
placeholder: e ?? d.placeholder,
|
|
811
|
+
name: o ?? "search",
|
|
812
|
+
value: l,
|
|
813
|
+
onChange: i,
|
|
814
|
+
onClear: y,
|
|
815
|
+
clearButtonAltText: r
|
|
816
|
+
}),
|
|
817
|
+
[e, d.placeholder, o, l, i, y, r]
|
|
818
|
+
), R = H.useMemo(
|
|
819
|
+
() => s.map((w) => {
|
|
820
|
+
const p = w?.searchWords?.length ? w.searchWords : [w?.title, w?.description].filter(Boolean);
|
|
821
|
+
return {
|
|
822
|
+
...w,
|
|
823
|
+
searchWords: p ?? []
|
|
824
|
+
};
|
|
825
|
+
}),
|
|
826
|
+
[s]
|
|
827
|
+
), O = H.useMemo(
|
|
828
|
+
() => [
|
|
829
|
+
{
|
|
830
|
+
id: "emptySearch",
|
|
831
|
+
"aria-disabled": !0,
|
|
832
|
+
title: d.noResults,
|
|
833
|
+
groupId: "emptySearch",
|
|
834
|
+
icon: jt,
|
|
835
|
+
size: "sm",
|
|
836
|
+
as: "div"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
[d.noResults]
|
|
840
|
+
), h = H.useMemo(() => {
|
|
841
|
+
const w = s.filter((p) => p.groupId === "emptySearch").map((p) => ({ ...p, hidden: !1 }));
|
|
842
|
+
return w.length ? w : O;
|
|
843
|
+
}, [s, O]), { selectedItems: m, results: M } = H.useMemo(() => {
|
|
844
|
+
if (!_) return { selectedItems: [], results: [] };
|
|
845
|
+
const w = [], p = [];
|
|
846
|
+
for (const P of R)
|
|
847
|
+
P.checked === !0 && w.push({ ...P, groupId: "selected" }), (P.searchWords ?? []).some((G) => String(G).toLowerCase().includes(N)) && p.push({
|
|
848
|
+
...P,
|
|
849
|
+
groupId: "search",
|
|
850
|
+
highlightWords: v
|
|
851
|
+
});
|
|
852
|
+
return { selectedItems: w, results: p };
|
|
853
|
+
}, [_, R, N, v]), S = M.length, A = m.length, j = H.useMemo(
|
|
854
|
+
() => ({
|
|
855
|
+
search: {
|
|
856
|
+
hidden: !0,
|
|
857
|
+
title: d.hits(S)
|
|
858
|
+
},
|
|
859
|
+
selected: {
|
|
860
|
+
hidden: !0,
|
|
861
|
+
title: d.selected(A)
|
|
862
|
+
},
|
|
863
|
+
emptySearch: {
|
|
864
|
+
hidden: !0,
|
|
865
|
+
title: d.noResults
|
|
866
|
+
},
|
|
867
|
+
...c
|
|
868
|
+
}),
|
|
869
|
+
[d, S, A, c]
|
|
870
|
+
), $ = H.useMemo(
|
|
871
|
+
() => ({
|
|
872
|
+
...j,
|
|
873
|
+
search: {
|
|
874
|
+
hidden: !_,
|
|
875
|
+
title: d.hits(S)
|
|
876
|
+
},
|
|
877
|
+
selected: {
|
|
878
|
+
hidden: A === 0,
|
|
879
|
+
title: d.selected(A)
|
|
880
|
+
},
|
|
881
|
+
emptySearch: {
|
|
882
|
+
hidden: _ && (S > 0 || A > 0),
|
|
883
|
+
title: d.noResults
|
|
884
|
+
}
|
|
885
|
+
}),
|
|
886
|
+
[j, _, d, S, A]
|
|
887
|
+
), D = H.useMemo(() => _ ? _n([...M, ...m]) : [], [_, M, m]), z = H.useMemo(() => [...h || [], ...m || []], [h, m]), g = H.useMemo(() => _ ? S ? D : z : s, [_, s, S, D, z]);
|
|
888
|
+
return {
|
|
889
|
+
search: E,
|
|
890
|
+
results: M,
|
|
891
|
+
resultCount: S,
|
|
892
|
+
hasQuery: _,
|
|
893
|
+
items: g,
|
|
894
|
+
groups: $
|
|
895
|
+
};
|
|
896
|
+
}, it = ({
|
|
897
|
+
searchable: e,
|
|
898
|
+
search: o,
|
|
899
|
+
items: n = [],
|
|
900
|
+
groups: t = {},
|
|
901
|
+
variant: r = "default",
|
|
902
|
+
size: s,
|
|
903
|
+
level: c = 0,
|
|
904
|
+
maxLevels: u = 3,
|
|
905
|
+
virtualized: d = !1,
|
|
906
|
+
keyboardEvents: l = !1,
|
|
907
|
+
scrollRefStyles: f = {},
|
|
908
|
+
onActiveItemIdChange: i,
|
|
909
|
+
a11yMode: y = "menu",
|
|
910
|
+
open: b,
|
|
911
|
+
scrollToTopOnOpen: _,
|
|
912
|
+
autoFocusList: N,
|
|
913
|
+
id: v
|
|
914
|
+
}) => {
|
|
915
|
+
const E = wn({ ...o, items: n, groups: t }), R = e ? E.search : o, O = e && E.hasQuery && E.resultCount === 0, h = e ? E.items : n, m = e ? { ...t, ...E.groups } : t, M = y !== "combobox";
|
|
916
|
+
return d ? /* @__PURE__ */ a(
|
|
917
|
+
vn,
|
|
918
|
+
{
|
|
919
|
+
id: v,
|
|
920
|
+
search: R,
|
|
921
|
+
announceNoResults: O,
|
|
922
|
+
items: h,
|
|
923
|
+
groups: m,
|
|
924
|
+
variant: r,
|
|
925
|
+
size: s,
|
|
926
|
+
level: c,
|
|
927
|
+
maxLevels: u,
|
|
928
|
+
keyboardEvents: l,
|
|
929
|
+
scrollRefStyles: f,
|
|
930
|
+
onActiveItemIdChange: i,
|
|
931
|
+
a11yMode: y,
|
|
932
|
+
open: b,
|
|
933
|
+
scrollToTopOnOpen: _,
|
|
934
|
+
autoActivateFirstItem: M,
|
|
935
|
+
autoFocusList: N
|
|
936
|
+
}
|
|
937
|
+
) : /* @__PURE__ */ a(
|
|
938
|
+
st,
|
|
939
|
+
{
|
|
940
|
+
id: v,
|
|
941
|
+
search: R,
|
|
942
|
+
announceNoResults: O,
|
|
943
|
+
items: h,
|
|
944
|
+
groups: m,
|
|
945
|
+
variant: r,
|
|
946
|
+
size: s,
|
|
947
|
+
level: c,
|
|
948
|
+
maxLevels: u,
|
|
949
|
+
keyboardEvents: l,
|
|
950
|
+
scrollRefStyles: f,
|
|
951
|
+
onActiveItemIdChange: i,
|
|
952
|
+
a11yMode: y,
|
|
953
|
+
open: b,
|
|
954
|
+
scrollToTopOnOpen: _,
|
|
955
|
+
autoActivateFirstItem: M,
|
|
956
|
+
autoFocusList: N
|
|
957
|
+
}
|
|
958
|
+
);
|
|
959
|
+
}, In = "_media_1089b_3", xn = "_icon_1089b_10", On = "_avatar_1089b_14", Nn = "_avatarGroup_1089b_18", le = {
|
|
960
|
+
media: In,
|
|
961
|
+
icon: xn,
|
|
962
|
+
avatar: On,
|
|
963
|
+
avatarGroup: Nn
|
|
964
|
+
};
|
|
965
|
+
function kn(e) {
|
|
966
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _e(e);
|
|
967
|
+
}
|
|
968
|
+
const Ke = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
969
|
+
if (!n)
|
|
970
|
+
return null;
|
|
971
|
+
if (o)
|
|
972
|
+
return /* @__PURE__ */ a("div", { className: K(le.icon, e), children: /* @__PURE__ */ a(X, { svgElement: ze, loading: !0 }) });
|
|
973
|
+
const r = Ce(n) ? "avatar" : ke(n) ? "avatarGroup" : (Pe(n), "icon");
|
|
974
|
+
return /* @__PURE__ */ x("div", { className: K(le.media, e), "data-variant": r, children: [
|
|
975
|
+
Ce(n) && /* @__PURE__ */ a(Se, { ...n, className: le.avatar }) || ke(n) && /* @__PURE__ */ a(he, { ...n, className: le.avatarGroup }) || Pe(n) && /* @__PURE__ */ a(X, { ...n, className: le.icon }) || kn(n) && /* @__PURE__ */ a(X, { className: le.icon, children: n }) || /* @__PURE__ */ a(X, { className: le.icon, svgElement: n }),
|
|
976
|
+
t
|
|
977
|
+
] });
|
|
978
|
+
}, Cn = "_heading_1dyne_1", En = {
|
|
979
|
+
heading: Cn
|
|
980
|
+
}, oe = ({
|
|
981
|
+
id: e,
|
|
982
|
+
loading: o,
|
|
983
|
+
highlightWords: n = [],
|
|
984
|
+
as: t = "h2",
|
|
985
|
+
size: r,
|
|
986
|
+
leading: s = "tight",
|
|
987
|
+
weight: c = "medium",
|
|
988
|
+
color: u,
|
|
989
|
+
variant: d,
|
|
990
|
+
maxRows: l,
|
|
991
|
+
className: f,
|
|
992
|
+
style: i,
|
|
993
|
+
children: y
|
|
994
|
+
}) => {
|
|
995
|
+
const b = t, _ = wt(y, n || []);
|
|
996
|
+
return /* @__PURE__ */ a(
|
|
997
|
+
b,
|
|
998
|
+
{
|
|
999
|
+
id: e,
|
|
1000
|
+
className: K(En.heading, f),
|
|
1001
|
+
style: i,
|
|
1002
|
+
"data-size": r,
|
|
1003
|
+
"data-leading": s,
|
|
1004
|
+
"data-weight": c,
|
|
1005
|
+
"data-color": u,
|
|
1006
|
+
"data-variant": r === "xxs" && "default" || d,
|
|
1007
|
+
"data-max-rows": l,
|
|
1008
|
+
children: /* @__PURE__ */ a(Ne, { loading: o, children: _ })
|
|
1009
|
+
}
|
|
1010
|
+
);
|
|
1011
|
+
}, Pn = "_label_e5q28_3", Sn = {
|
|
1012
|
+
label: Pn
|
|
1013
|
+
}, qe = ({
|
|
1014
|
+
className: e,
|
|
1015
|
+
title: o,
|
|
1016
|
+
titleProps: n = {},
|
|
1017
|
+
description: t,
|
|
1018
|
+
descriptionProps: r = {},
|
|
1019
|
+
highlightWords: s,
|
|
1020
|
+
loading: c,
|
|
1021
|
+
children: u
|
|
1022
|
+
}) => /* @__PURE__ */ a("span", { className: K(Sn.label, e), children: u || /* @__PURE__ */ x(fe, { children: [
|
|
1023
|
+
o && /* @__PURE__ */ a(oe, { ...n, as: "span", loading: c, highlightWords: s, maxRows: 2, children: o }),
|
|
1024
|
+
t && /* @__PURE__ */ a(
|
|
1025
|
+
oe,
|
|
1026
|
+
{
|
|
1027
|
+
...r,
|
|
1028
|
+
as: "span",
|
|
1029
|
+
weight: "normal",
|
|
1030
|
+
leading: "inherit",
|
|
1031
|
+
loading: c,
|
|
1032
|
+
highlightWords: s,
|
|
1033
|
+
maxRows: 2,
|
|
1034
|
+
children: t
|
|
1035
|
+
}
|
|
1036
|
+
)
|
|
1037
|
+
] }) }), zn = ({ className: e, onClick: o, checked: n, onChange: t, ...r }) => /* @__PURE__ */ a(pe, { className: e, size: "xs", variant: "ghost", icon: !0, rounded: !0, onClick: o, children: /* @__PURE__ */ a(Je, { ...r, type: "checkbox", size: "xs", checked: n, onChange: t }) }), jn = "_item_h7sxa_3", $n = "_media_h7sxa_136", Rn = "_label_h7sxa_157", Mn = "_title_h7sxa_172", An = "_description_h7sxa_176", Dn = "_count_h7sxa_188", Bn = "_linkIcon_h7sxa_196", q = {
|
|
1038
|
+
item: jn,
|
|
1039
|
+
media: $n,
|
|
1040
|
+
label: Rn,
|
|
1041
|
+
title: Mn,
|
|
1042
|
+
description: An,
|
|
1043
|
+
count: Dn,
|
|
1044
|
+
linkIcon: Bn
|
|
1045
|
+
}, ct = ({
|
|
1046
|
+
id: e,
|
|
1047
|
+
groupId: o,
|
|
1048
|
+
role: n = "menuItem",
|
|
1049
|
+
as: t,
|
|
1050
|
+
href: r,
|
|
1051
|
+
onClick: s,
|
|
1052
|
+
onChange: c,
|
|
1053
|
+
onKeyPress: u,
|
|
1054
|
+
onMouseEnter: d,
|
|
1055
|
+
size: l = "sm",
|
|
1056
|
+
variant: f,
|
|
1057
|
+
color: i,
|
|
1058
|
+
name: y,
|
|
1059
|
+
value: b,
|
|
1060
|
+
checked: _,
|
|
1061
|
+
icon: N,
|
|
1062
|
+
label: v,
|
|
1063
|
+
badge: E,
|
|
1064
|
+
controls: R,
|
|
1065
|
+
title: O,
|
|
1066
|
+
description: h,
|
|
1067
|
+
highlightWords: m,
|
|
1068
|
+
count: M,
|
|
1069
|
+
linkIcon: S = !1,
|
|
1070
|
+
disabled: A,
|
|
1071
|
+
selected: j,
|
|
1072
|
+
active: $,
|
|
1073
|
+
tabIndex: D = 0,
|
|
1074
|
+
className: z,
|
|
1075
|
+
"data-testid": g,
|
|
1076
|
+
...w
|
|
1077
|
+
}) => {
|
|
1078
|
+
const p = typeof v == "function" ? v() : v, P = St(w);
|
|
1079
|
+
if (n === "checkbox" || n === "radio") {
|
|
1080
|
+
const G = N || (_ ? rt : sn);
|
|
1081
|
+
return /* @__PURE__ */ x(
|
|
1082
|
+
"label",
|
|
1083
|
+
{
|
|
1084
|
+
...P,
|
|
1085
|
+
className: K(q.item, z),
|
|
1086
|
+
id: e,
|
|
1087
|
+
"data-id": e,
|
|
1088
|
+
"data-group-id": o,
|
|
1089
|
+
"data-size": l,
|
|
1090
|
+
"data-variant": f,
|
|
1091
|
+
"data-color": i,
|
|
1092
|
+
"data-active": $,
|
|
1093
|
+
role: n,
|
|
1094
|
+
"aria-disabled": A,
|
|
1095
|
+
"aria-checked": _,
|
|
1096
|
+
"aria-selected": _,
|
|
1097
|
+
"data-selected": _,
|
|
1098
|
+
"aria-label": O,
|
|
1099
|
+
"data-testid": g,
|
|
1100
|
+
onKeyUp: (U) => {
|
|
1101
|
+
A || (U.key === "Enter" && s?.(), u?.(U));
|
|
1102
|
+
},
|
|
1103
|
+
onClick: s,
|
|
1104
|
+
onMouseEnter: d,
|
|
1105
|
+
tabIndex: D,
|
|
1106
|
+
children: [
|
|
1107
|
+
/* @__PURE__ */ a(
|
|
1108
|
+
"input",
|
|
1109
|
+
{
|
|
1110
|
+
name: y,
|
|
1111
|
+
value: b,
|
|
1112
|
+
type: n,
|
|
1113
|
+
checked: !!_,
|
|
1114
|
+
onChange: c,
|
|
1115
|
+
readOnly: !c,
|
|
1116
|
+
style: { opacity: 0, position: "absolute" },
|
|
1117
|
+
tabIndex: -1
|
|
1118
|
+
}
|
|
1119
|
+
),
|
|
1120
|
+
/* @__PURE__ */ a(Ke, { icon: G, className: q.media }),
|
|
1121
|
+
/* @__PURE__ */ a(
|
|
1122
|
+
qe,
|
|
1123
|
+
{
|
|
1124
|
+
className: q.label,
|
|
1125
|
+
highlightWords: m,
|
|
1126
|
+
title: /* @__PURE__ */ x(fe, { children: [
|
|
1127
|
+
O,
|
|
1128
|
+
" ",
|
|
1129
|
+
M && /* @__PURE__ */ a("i", { className: q.count, children: M })
|
|
1130
|
+
] }),
|
|
1131
|
+
titleProps: {
|
|
1132
|
+
weight: "medium",
|
|
1133
|
+
className: q.title
|
|
1134
|
+
},
|
|
1135
|
+
description: h,
|
|
1136
|
+
descriptionProps: {
|
|
1137
|
+
weight: "normal",
|
|
1138
|
+
variant: "subtle",
|
|
1139
|
+
className: q.description
|
|
1140
|
+
},
|
|
1141
|
+
children: p
|
|
1142
|
+
}
|
|
1143
|
+
),
|
|
1144
|
+
/* @__PURE__ */ x(Ae, { children: [
|
|
1145
|
+
E && /* @__PURE__ */ a(ye, { ...E }),
|
|
1146
|
+
!A && R
|
|
1147
|
+
] })
|
|
1148
|
+
]
|
|
1149
|
+
}
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
const F = t || (r ? "a" : "button"), T = S && ot;
|
|
1153
|
+
return /* @__PURE__ */ x(
|
|
1154
|
+
F,
|
|
1155
|
+
{
|
|
1156
|
+
href: r,
|
|
1157
|
+
className: K(q.item, z),
|
|
1158
|
+
id: e,
|
|
1159
|
+
"data-id": e,
|
|
1160
|
+
"data-group-id": o,
|
|
1161
|
+
"data-size": l,
|
|
1162
|
+
"data-variant": f,
|
|
1163
|
+
"data-color": i,
|
|
1164
|
+
"data-active": $,
|
|
1165
|
+
"aria-disabled": A,
|
|
1166
|
+
...A ? { disabled: A } : {},
|
|
1167
|
+
"aria-selected": j,
|
|
1168
|
+
"data-selected": j,
|
|
1169
|
+
"aria-label": O,
|
|
1170
|
+
"data-testid": g,
|
|
1171
|
+
onKeyUp: (G) => {
|
|
1172
|
+
A || (G.key === "Enter" && s?.(), u?.(G));
|
|
1173
|
+
},
|
|
1174
|
+
onClick: s,
|
|
1175
|
+
onMouseEnter: d,
|
|
1176
|
+
tabIndex: A ? -1 : D ?? 0,
|
|
1177
|
+
role: n === "menuItem" ? "menuitem" : n,
|
|
1178
|
+
...P,
|
|
1179
|
+
children: [
|
|
1180
|
+
N && /* @__PURE__ */ a(Ke, { icon: N, className: q.media }),
|
|
1181
|
+
/* @__PURE__ */ a(
|
|
1182
|
+
qe,
|
|
1183
|
+
{
|
|
1184
|
+
className: q.label,
|
|
1185
|
+
highlightWords: m,
|
|
1186
|
+
title: /* @__PURE__ */ x(fe, { children: [
|
|
1187
|
+
O,
|
|
1188
|
+
" ",
|
|
1189
|
+
M && /* @__PURE__ */ a("i", { className: q.count, children: M })
|
|
1190
|
+
] }),
|
|
1191
|
+
titleProps: {
|
|
1192
|
+
weight: "medium",
|
|
1193
|
+
className: q.title
|
|
1194
|
+
},
|
|
1195
|
+
description: h,
|
|
1196
|
+
descriptionProps: {
|
|
1197
|
+
variant: "subtle",
|
|
1198
|
+
className: q.description
|
|
1199
|
+
},
|
|
1200
|
+
children: p
|
|
1201
|
+
}
|
|
1202
|
+
),
|
|
1203
|
+
/* @__PURE__ */ x(Ae, { children: [
|
|
1204
|
+
E && /* @__PURE__ */ a(ye, { ...E }),
|
|
1205
|
+
!A && R,
|
|
1206
|
+
S && /* @__PURE__ */ a(X, { svgElement: T, className: q.linkIcon })
|
|
1207
|
+
] })
|
|
1208
|
+
]
|
|
1209
|
+
}
|
|
1210
|
+
);
|
|
1211
|
+
}, Ln = "_fieldContainer_zxswz_1", Fn = "_field_zxswz_1", Tn = "_input_zxswz_16", Gn = "_hiddenInput_zxswz_17", Hn = "_icon_zxswz_50", Kn = "_clear_zxswz_68", qn = "_clearButton_zxswz_81", Un = "_autocomplete_zxswz_108", ne = {
|
|
1212
|
+
fieldContainer: Ln,
|
|
1213
|
+
field: Fn,
|
|
1214
|
+
input: Tn,
|
|
1215
|
+
hiddenInput: Gn,
|
|
1216
|
+
icon: Hn,
|
|
1217
|
+
clear: Kn,
|
|
1218
|
+
clearButton: qn,
|
|
1219
|
+
autocomplete: Un
|
|
1220
|
+
}, De = ({
|
|
1221
|
+
className: e,
|
|
1222
|
+
collapsible: o,
|
|
1223
|
+
loading: n,
|
|
1224
|
+
loadingLabel: t = "Loading ...",
|
|
1225
|
+
size: r,
|
|
1226
|
+
color: s = "neutral",
|
|
1227
|
+
label: c,
|
|
1228
|
+
value: u,
|
|
1229
|
+
onClear: d,
|
|
1230
|
+
clearButtonAltText: l = "Clear search",
|
|
1231
|
+
menu: f,
|
|
1232
|
+
minLength: i,
|
|
1233
|
+
...y
|
|
1234
|
+
}) => {
|
|
1235
|
+
const b = Oe(), [_, N] = se(!1), v = y.id || `search-field-${b}`, E = `${v}-listbox`, [R, O] = se(void 0), h = "searchfield-clear-button-" + Oe(), m = ce(() => !f || !u || typeof i == "number" && typeof u == "string" && u.length < i ? !1 : _, [f, _, i, u]), M = ce(() => (f?.items ?? []).map((g) => ({
|
|
1236
|
+
...g,
|
|
1237
|
+
onClick: () => {
|
|
1238
|
+
g.onClick?.(), N(!1);
|
|
1239
|
+
}
|
|
1240
|
+
})), [f]), S = (g) => {
|
|
1241
|
+
if (g.key === "Enter" && m) {
|
|
1242
|
+
f?.items?.[0]?.onClick?.(), N(!1);
|
|
1243
|
+
return;
|
|
1244
|
+
}
|
|
1245
|
+
if (g.key === "Escape" && m) {
|
|
1246
|
+
g.preventDefault(), g.stopPropagation(), N(!1), f?.onClose(), document.getElementById(v)?.focus();
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
y.onKeyDown?.(g), N(!0);
|
|
1250
|
+
}, A = () => {
|
|
1251
|
+
N(!0);
|
|
1252
|
+
}, j = (g) => {
|
|
1253
|
+
if (!_) return;
|
|
1254
|
+
const w = g.relatedTarget;
|
|
1255
|
+
w && g.currentTarget.contains(w) || N(!1);
|
|
1256
|
+
}, $ = (g) => {
|
|
1257
|
+
g.preventDefault();
|
|
1258
|
+
}, D = (g) => {
|
|
1259
|
+
g.relatedTarget?.id === h && O(void 0), y.onBlur?.(g);
|
|
1260
|
+
}, z = /* @__PURE__ */ x(
|
|
1261
|
+
fn,
|
|
1262
|
+
{
|
|
1263
|
+
size: r,
|
|
1264
|
+
color: s,
|
|
1265
|
+
label: c,
|
|
1266
|
+
className: K(ne.field, e),
|
|
1267
|
+
"data-collapsible": o,
|
|
1268
|
+
onBlurCapture: j,
|
|
1269
|
+
children: [
|
|
1270
|
+
/* @__PURE__ */ a("span", { className: ne.hiddenInput, "aria-hidden": "true", children: u + " " }),
|
|
1271
|
+
/* @__PURE__ */ a(
|
|
1272
|
+
Je,
|
|
1273
|
+
{
|
|
1274
|
+
...y,
|
|
1275
|
+
id: v,
|
|
1276
|
+
inputSize: 5,
|
|
1277
|
+
type: "search",
|
|
1278
|
+
value: u,
|
|
1279
|
+
className: ne.input,
|
|
1280
|
+
"data-collapsible": o,
|
|
1281
|
+
autoCapitalize: "off",
|
|
1282
|
+
autoComplete: "off",
|
|
1283
|
+
minLength: i,
|
|
1284
|
+
onKeyDown: S,
|
|
1285
|
+
onBlur: D,
|
|
1286
|
+
...f && {
|
|
1287
|
+
role: "combobox",
|
|
1288
|
+
"aria-autocomplete": "list",
|
|
1289
|
+
"aria-expanded": !!m,
|
|
1290
|
+
"aria-haspopup": "listbox",
|
|
1291
|
+
"aria-controls": E,
|
|
1292
|
+
"aria-activedescendant": m ? R : void 0,
|
|
1293
|
+
onFocus: A
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
),
|
|
1297
|
+
n ? /* @__PURE__ */ a(Pt, { "aria-hidden": !0, className: ne.icon }) : /* @__PURE__ */ a(on, { "aria-hidden": !0, className: ne.icon }),
|
|
1298
|
+
d && !!u && /* @__PURE__ */ a("span", { className: ne.clear, children: /* @__PURE__ */ a(
|
|
1299
|
+
pe,
|
|
1300
|
+
{
|
|
1301
|
+
id: h,
|
|
1302
|
+
"data-testid": "clear-button",
|
|
1303
|
+
size: "xs",
|
|
1304
|
+
rounded: !0,
|
|
1305
|
+
icon: !0,
|
|
1306
|
+
variant: "tinted",
|
|
1307
|
+
className: ne.clearButton,
|
|
1308
|
+
onClick: () => {
|
|
1309
|
+
d?.(), document.getElementById(v)?.focus();
|
|
1310
|
+
},
|
|
1311
|
+
"aria-label": l,
|
|
1312
|
+
"data-action": "clear-input",
|
|
1313
|
+
children: /* @__PURE__ */ a(ze, {})
|
|
1314
|
+
}
|
|
1315
|
+
) })
|
|
1316
|
+
]
|
|
1317
|
+
}
|
|
1318
|
+
);
|
|
1319
|
+
return f ? /* @__PURE__ */ x("div", { className: ne.fieldContainer, children: [
|
|
1320
|
+
z,
|
|
1321
|
+
m && /* @__PURE__ */ a("div", { className: ne.autocomplete, "aria-hidden": !m, onMouseDown: $, children: /* @__PURE__ */ a(
|
|
1322
|
+
it,
|
|
1323
|
+
{
|
|
1324
|
+
...f,
|
|
1325
|
+
id: E,
|
|
1326
|
+
items: M,
|
|
1327
|
+
groups: f?.groups,
|
|
1328
|
+
keyboardEvents: !0,
|
|
1329
|
+
a11yMode: "combobox",
|
|
1330
|
+
open: m,
|
|
1331
|
+
autoFocusList: !1,
|
|
1332
|
+
onActiveItemIdChange: O
|
|
1333
|
+
}
|
|
1334
|
+
) })
|
|
1335
|
+
] }) : z;
|
|
1336
|
+
}, Vn = "_byline_fzp7k_1", Wn = "_avatar_fzp7k_7", Yn = "_avatarGroup_fzp7k_12", Qn = "_label_fzp7k_26", be = {
|
|
1337
|
+
byline: Vn,
|
|
1338
|
+
avatar: Wn,
|
|
1339
|
+
avatarGroup: Yn,
|
|
1340
|
+
label: Qn
|
|
1341
|
+
}, Xn = ({
|
|
1342
|
+
loading: e,
|
|
1343
|
+
color: o = "neutral",
|
|
1344
|
+
size: n = "xs",
|
|
1345
|
+
avatar: t,
|
|
1346
|
+
avatarGroup: r,
|
|
1347
|
+
datetime: s,
|
|
1348
|
+
children: c,
|
|
1349
|
+
as: u,
|
|
1350
|
+
...d
|
|
1351
|
+
}) => {
|
|
1352
|
+
const l = u || "div", f = s ? "time" : "span";
|
|
1353
|
+
return /* @__PURE__ */ x(l, { ...d, className: be.byline, "data-color": o, "data-size": n, children: [
|
|
1354
|
+
(r || t) && /* @__PURE__ */ a(Ne, { variant: "circle", className: be.avatar, loading: e, children: r ? /* @__PURE__ */ a(he, { ...r, size: n, className: be.avatarGroup }) : t && /* @__PURE__ */ a(Se, { ...t, size: n, className: be.avatar }) }),
|
|
1355
|
+
/* @__PURE__ */ a(f, { "data-size": n, dateTime: s, className: be.label, children: /* @__PURE__ */ a(Ne, { loading: e, children: c }) })
|
|
1356
|
+
] });
|
|
1357
|
+
}, Jn = "_dropdown_1mtdm_1", Zn = "_content_1mtdm_17", er = "_backdrop_1mtdm_47", tr = "_header_1mtdm_76", nr = "_footer_1mtdm_77", rr = "_title_1mtdm_148", ue = {
|
|
1358
|
+
dropdown: Jn,
|
|
1359
|
+
content: Zn,
|
|
1360
|
+
backdrop: er,
|
|
1361
|
+
header: tr,
|
|
1362
|
+
footer: nr,
|
|
1363
|
+
title: rr
|
|
1364
|
+
}, or = "data-focus-guard", dt = (e) => {
|
|
1365
|
+
const o = [
|
|
1366
|
+
"a[href]",
|
|
1367
|
+
"button:not([disabled])",
|
|
1368
|
+
"input:not([disabled])",
|
|
1369
|
+
"select:not([disabled])",
|
|
1370
|
+
"textarea:not([disabled])",
|
|
1371
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
1372
|
+
'[contenteditable="true"]'
|
|
1373
|
+
].join(",");
|
|
1374
|
+
return Array.from(e.querySelectorAll(o)).filter((n) => !n.hasAttribute(or)).filter((n) => !n.hasAttribute("disabled")).filter((n) => n.getAttribute("aria-hidden") !== "true").filter((n) => n.tabIndex !== -1).filter((n) => {
|
|
1375
|
+
const t = n.getClientRects();
|
|
1376
|
+
return t.length > 0 && t[0].width > 0 && t[0].height > 0;
|
|
1377
|
+
});
|
|
1378
|
+
}, ar = (e) => {
|
|
1379
|
+
dt(e)[0]?.focus({ preventScroll: !0 });
|
|
1380
|
+
}, sr = ({
|
|
1381
|
+
id: e = "dropdown",
|
|
1382
|
+
size: o = "sm",
|
|
1383
|
+
className: n,
|
|
1384
|
+
backdrop: t = !0,
|
|
1385
|
+
placement: r = "bottom-left",
|
|
1386
|
+
variant: s = "dropdown",
|
|
1387
|
+
title: c = "Title",
|
|
1388
|
+
closeLabel: u = "Close",
|
|
1389
|
+
submitLabel: d,
|
|
1390
|
+
trigger: l,
|
|
1391
|
+
children: f,
|
|
1392
|
+
open: i,
|
|
1393
|
+
onClose: y,
|
|
1394
|
+
color: b,
|
|
1395
|
+
onSubmit: _,
|
|
1396
|
+
activeDescendantId: N,
|
|
1397
|
+
useFixedPosition: v = !1,
|
|
1398
|
+
expanded: E = !1
|
|
1399
|
+
}) => {
|
|
1400
|
+
const R = Z(null), O = Z(null), h = Z(i);
|
|
1401
|
+
Q(() => {
|
|
1402
|
+
h.current = i;
|
|
1403
|
+
}, [i]);
|
|
1404
|
+
const [m, M] = se({
|
|
1405
|
+
yDir: r.includes("top") ? "top" : "bottom",
|
|
1406
|
+
xDir: r.includes("right") ? "right" : "left",
|
|
1407
|
+
maxHeight: 300
|
|
1408
|
+
}), S = Qe(() => {
|
|
1409
|
+
if (i && R.current && O.current) {
|
|
1410
|
+
const $ = R.current.getBoundingClientRect(), D = O.current.getBoundingClientRect(), z = window.innerHeight, g = window.innerWidth, w = 16, p = z - $.bottom, P = $.top, F = g - $.right - D.width, T = p < 250 && P > p, G = T ? "top" : "bottom", U = (T ? P : p) - w, I = F < w ? "right" : "left";
|
|
1411
|
+
M((k) => ({
|
|
1412
|
+
...k,
|
|
1413
|
+
yDir: G,
|
|
1414
|
+
maxHeight: U,
|
|
1415
|
+
xDir: I,
|
|
1416
|
+
triggerRect: v ? $ : void 0
|
|
1417
|
+
}));
|
|
1418
|
+
}
|
|
1419
|
+
}, [i, v]);
|
|
1420
|
+
Re(() => (S(), window.addEventListener("resize", S), v && window.addEventListener("scroll", S, !0), () => {
|
|
1421
|
+
window.removeEventListener("resize", S), v && window.removeEventListener("scroll", S, !0);
|
|
1422
|
+
}), [S, v]), Q(() => {
|
|
1423
|
+
if (!i) return;
|
|
1424
|
+
const $ = requestAnimationFrame(() => {
|
|
1425
|
+
const D = O.current;
|
|
1426
|
+
if (!D) return;
|
|
1427
|
+
const z = D.querySelector(
|
|
1428
|
+
'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
|
|
1429
|
+
);
|
|
1430
|
+
if (z) {
|
|
1431
|
+
const g = z.value.length;
|
|
1432
|
+
z.focus({ preventScroll: !0 });
|
|
1433
|
+
try {
|
|
1434
|
+
z.setSelectionRange(g, g);
|
|
1435
|
+
} catch {
|
|
1436
|
+
}
|
|
1437
|
+
return;
|
|
1438
|
+
}
|
|
1439
|
+
D.focus?.({ preventScroll: !0 });
|
|
1440
|
+
});
|
|
1441
|
+
return () => cancelAnimationFrame($);
|
|
1442
|
+
}, [i]), Q(() => {
|
|
1443
|
+
const $ = (z) => {
|
|
1444
|
+
z.key === "Escape" && y();
|
|
1445
|
+
}, D = (z) => {
|
|
1446
|
+
const g = z.target, w = R.current?.contains(g), p = O.current?.contains(g);
|
|
1447
|
+
!w && !p && y();
|
|
1448
|
+
};
|
|
1449
|
+
return i && (document.addEventListener("mousedown", D), document.addEventListener("keydown", $)), () => {
|
|
1450
|
+
document.removeEventListener("mousedown", D), document.removeEventListener("keydown", $);
|
|
1451
|
+
};
|
|
1452
|
+
}, [i, y]), Q(() => {
|
|
1453
|
+
if (!i) return;
|
|
1454
|
+
const $ = O.current;
|
|
1455
|
+
if (!$) return;
|
|
1456
|
+
const D = (g) => {
|
|
1457
|
+
if (!h.current)
|
|
1458
|
+
return;
|
|
1459
|
+
const w = g.target;
|
|
1460
|
+
w && !$.contains(w) && ar($);
|
|
1461
|
+
}, z = (g) => {
|
|
1462
|
+
if (g.key !== "Tab") return;
|
|
1463
|
+
const w = dt($);
|
|
1464
|
+
if (w.length === 0) {
|
|
1465
|
+
g.preventDefault(), $.focus?.({ preventScroll: !0 });
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
const p = w[0], P = w[w.length - 1], F = document.activeElement;
|
|
1469
|
+
g.shiftKey ? F === p && (g.preventDefault(), P.focus({ preventScroll: !0 })) : F === P && (g.preventDefault(), p.focus({ preventScroll: !0 }));
|
|
1470
|
+
};
|
|
1471
|
+
return document.addEventListener("focusin", D), document.addEventListener("keydown", z), () => {
|
|
1472
|
+
document.removeEventListener("focusin", D), document.removeEventListener("keydown", z);
|
|
1473
|
+
};
|
|
1474
|
+
}, [i]);
|
|
1475
|
+
const A = v && m.triggerRect ? {
|
|
1476
|
+
position: "fixed",
|
|
1477
|
+
zIndex: 1e3,
|
|
1478
|
+
width: "max-content",
|
|
1479
|
+
maxHeight: `${m.maxHeight}px`,
|
|
1480
|
+
overflowY: "auto",
|
|
1481
|
+
[m.xDir === "left" ? "left" : "right"]: m.xDir === "left" ? m.triggerRect.left : window.innerWidth - m.triggerRect.right,
|
|
1482
|
+
[m.yDir === "bottom" ? "top" : "bottom"]: m.yDir === "bottom" ? m.triggerRect.bottom + 8 : window.innerHeight - m.triggerRect.top + 8
|
|
1483
|
+
} : {
|
|
1484
|
+
position: "absolute",
|
|
1485
|
+
zIndex: 50,
|
|
1486
|
+
width: "max-content",
|
|
1487
|
+
maxHeight: `${m.maxHeight}px`,
|
|
1488
|
+
overflowY: "auto",
|
|
1489
|
+
[m.xDir]: 0,
|
|
1490
|
+
[m.yDir === "bottom" ? "top" : "bottom"]: "100%"
|
|
1491
|
+
}, j = /* @__PURE__ */ x(
|
|
1492
|
+
"div",
|
|
1493
|
+
{
|
|
1494
|
+
ref: O,
|
|
1495
|
+
className: K(ue.dropdown, n),
|
|
1496
|
+
style: A,
|
|
1497
|
+
"aria-hidden": !i,
|
|
1498
|
+
"data-variant": s,
|
|
1499
|
+
"data-color": b,
|
|
1500
|
+
"data-expanded": E,
|
|
1501
|
+
"data-size": o,
|
|
1502
|
+
tabIndex: -1,
|
|
1503
|
+
role: "menu",
|
|
1504
|
+
"aria-modal": s === "drawer-dropdown" ? !0 : void 0,
|
|
1505
|
+
"aria-activedescendant": N,
|
|
1506
|
+
children: [
|
|
1507
|
+
/* @__PURE__ */ x("header", { className: ue.header, children: [
|
|
1508
|
+
/* @__PURE__ */ a("h2", { className: ue.title, children: c }),
|
|
1509
|
+
/* @__PURE__ */ a(pe, { size: "sm", variant: "outline", onClick: y, "aria-label": u, children: /* @__PURE__ */ a(ze, {}) })
|
|
1510
|
+
] }),
|
|
1511
|
+
/* @__PURE__ */ a("div", { className: ue.content, children: f }),
|
|
1512
|
+
d && /* @__PURE__ */ a("footer", { className: ue.footer, children: /* @__PURE__ */ a(pe, { size: "lg", variant: "solid", onClick: _ || y, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: d }) }) })
|
|
1513
|
+
]
|
|
1514
|
+
}
|
|
1515
|
+
);
|
|
1516
|
+
return /* @__PURE__ */ x(fe, { children: [
|
|
1517
|
+
t && /* @__PURE__ */ a("div", { className: ue.backdrop, "aria-hidden": !i }),
|
|
1518
|
+
/* @__PURE__ */ x("div", { id: e + "-root", ref: R, style: { position: "relative", display: "inline-block" }, children: [
|
|
1519
|
+
l,
|
|
1520
|
+
v ? _t(j, document.body) : j
|
|
1521
|
+
] })
|
|
1522
|
+
] });
|
|
1523
|
+
}, lr = we(({ items: e, groups: o = {}, sortGroupBy: n, highlightWords: t, isLoading: r }) => {
|
|
1524
|
+
const { menu: s } = Be({
|
|
1525
|
+
items: e,
|
|
1526
|
+
groups: o,
|
|
1527
|
+
groupByKey: "groupId",
|
|
1528
|
+
keyboardEvents: !1,
|
|
1529
|
+
sortGroupBy: n
|
|
1530
|
+
});
|
|
1531
|
+
return /* @__PURE__ */ a(ht, { spacing: 6, "aria-busy": r, children: s?.map((c, u) => {
|
|
1532
|
+
const d = c.props || {};
|
|
1533
|
+
return /* @__PURE__ */ Me(ut, { ...d, key: "dialog-list-item" + u }, c?.items.map((l, f) => {
|
|
1534
|
+
const i = l.props || {};
|
|
1535
|
+
return /* @__PURE__ */ Me(mt, { ...i, highlightWords: t, key: "dialog-list-item" + f });
|
|
1536
|
+
}));
|
|
1537
|
+
}) });
|
|
1538
|
+
});
|
|
1539
|
+
lr.displayName = "DialogList";
|
|
1540
|
+
const ut = we(({ title: e, description: o, children: n }) => /* @__PURE__ */ x(ht, { spacing: 4, children: [
|
|
1541
|
+
/* @__PURE__ */ x(Te, { direction: "col", spacing: 2, children: [
|
|
1542
|
+
e && /* @__PURE__ */ a(oe, { size: "lg", children: e }),
|
|
1543
|
+
o && /* @__PURE__ */ a(Xe, { size: "sm", style: { marginBottom: ".5em" }, children: o })
|
|
1544
|
+
] }),
|
|
1545
|
+
/* @__PURE__ */ a(Vr, { spacing: 3, children: n })
|
|
1546
|
+
] }));
|
|
1547
|
+
ut.displayName = "DialogListGroup";
|
|
1548
|
+
const ir = "_item_e034j_3", cr = "_border_e034j_58", dr = "_header_e034j_69", ur = "_summary_e034j_85", mr = "_controls_e034j_99", fr = "_footer_e034j_106", pr = "_seenBy_e034j_111", hr = "_link_e034j_121", vr = "_title_e034j_126", br = "_badge_e034j_140", Y = {
|
|
1549
|
+
item: ir,
|
|
1550
|
+
border: cr,
|
|
1551
|
+
header: dr,
|
|
1552
|
+
summary: ur,
|
|
1553
|
+
controls: mr,
|
|
1554
|
+
footer: fr,
|
|
1555
|
+
seenBy: pr,
|
|
1556
|
+
link: hr,
|
|
1557
|
+
title: vr,
|
|
1558
|
+
badge: br
|
|
1559
|
+
}, mt = we(
|
|
1560
|
+
({
|
|
1561
|
+
as: e = "a",
|
|
1562
|
+
size: o = "xl",
|
|
1563
|
+
variant: n = "default",
|
|
1564
|
+
color: t,
|
|
1565
|
+
loading: r,
|
|
1566
|
+
controls: s,
|
|
1567
|
+
selectable: c,
|
|
1568
|
+
selected: u,
|
|
1569
|
+
status: d,
|
|
1570
|
+
extendedStatusLabel: l,
|
|
1571
|
+
sender: f,
|
|
1572
|
+
recipient: i,
|
|
1573
|
+
recipientLabel: y = "to",
|
|
1574
|
+
grouped: b = !1,
|
|
1575
|
+
updatedAt: _,
|
|
1576
|
+
updatedAtLabel: N,
|
|
1577
|
+
archived: v,
|
|
1578
|
+
archivedAt: E,
|
|
1579
|
+
archivedAtLabel: R,
|
|
1580
|
+
trashed: O,
|
|
1581
|
+
trashedAt: h,
|
|
1582
|
+
trashedAtLabel: m,
|
|
1583
|
+
badge: M,
|
|
1584
|
+
dueAt: S,
|
|
1585
|
+
dueAtLabel: A,
|
|
1586
|
+
unread: j,
|
|
1587
|
+
seenByLog: $,
|
|
1588
|
+
draftsLabel: D,
|
|
1589
|
+
sentCount: z,
|
|
1590
|
+
receivedCount: g,
|
|
1591
|
+
attachmentsCount: w,
|
|
1592
|
+
attachmentsLabel: p,
|
|
1593
|
+
tooltips: P = {},
|
|
1594
|
+
title: F,
|
|
1595
|
+
description: T,
|
|
1596
|
+
summary: G,
|
|
1597
|
+
highlightWords: U,
|
|
1598
|
+
id: ee,
|
|
1599
|
+
...I
|
|
1600
|
+
}) => {
|
|
1601
|
+
const k = c ? "select" : n;
|
|
1602
|
+
return /* @__PURE__ */ x(
|
|
1603
|
+
It,
|
|
1604
|
+
{
|
|
1605
|
+
as: "li",
|
|
1606
|
+
id: ee,
|
|
1607
|
+
className: Y.item,
|
|
1608
|
+
size: o,
|
|
1609
|
+
color: t,
|
|
1610
|
+
variant: k,
|
|
1611
|
+
"data-unread": j ? "true" : "false",
|
|
1612
|
+
"data-selected": u,
|
|
1613
|
+
"data-trashed": O,
|
|
1614
|
+
"data-archived": v,
|
|
1615
|
+
"data-loading": r,
|
|
1616
|
+
children: [
|
|
1617
|
+
/* @__PURE__ */ a(xt, { ...I, className: Y.link, as: e, children: /* @__PURE__ */ x("div", { className: Y.border, children: [
|
|
1618
|
+
/* @__PURE__ */ x("header", { className: Y.header, children: [
|
|
1619
|
+
/* @__PURE__ */ x(
|
|
1620
|
+
oe,
|
|
1621
|
+
{
|
|
1622
|
+
as: "h2",
|
|
1623
|
+
highlightWords: U,
|
|
1624
|
+
weight: j ? "bold" : "normal",
|
|
1625
|
+
loading: r,
|
|
1626
|
+
maxRows: 2,
|
|
1627
|
+
className: Y.title,
|
|
1628
|
+
children: [
|
|
1629
|
+
F,
|
|
1630
|
+
M && /* @__PURE__ */ a(ye, { className: Y.badge, variant: "tinted", size: "xs", ...M })
|
|
1631
|
+
]
|
|
1632
|
+
}
|
|
1633
|
+
),
|
|
1634
|
+
/* @__PURE__ */ a(
|
|
1635
|
+
yr,
|
|
1636
|
+
{
|
|
1637
|
+
size: "xs",
|
|
1638
|
+
loading: r,
|
|
1639
|
+
sender: f,
|
|
1640
|
+
recipient: i,
|
|
1641
|
+
recipientLabel: y,
|
|
1642
|
+
grouped: b
|
|
1643
|
+
}
|
|
1644
|
+
),
|
|
1645
|
+
G && /* @__PURE__ */ a(
|
|
1646
|
+
oe,
|
|
1647
|
+
{
|
|
1648
|
+
as: "h3",
|
|
1649
|
+
highlightWords: U,
|
|
1650
|
+
weight: "normal",
|
|
1651
|
+
className: Y.summary,
|
|
1652
|
+
loading: r,
|
|
1653
|
+
maxRows: 2,
|
|
1654
|
+
children: G
|
|
1655
|
+
}
|
|
1656
|
+
)
|
|
1657
|
+
] }),
|
|
1658
|
+
/* @__PURE__ */ a(
|
|
1659
|
+
gr,
|
|
1660
|
+
{
|
|
1661
|
+
className: Y.footer,
|
|
1662
|
+
loading: r,
|
|
1663
|
+
status: d,
|
|
1664
|
+
extendedStatusLabel: l,
|
|
1665
|
+
draftsLabel: D,
|
|
1666
|
+
sentCount: z,
|
|
1667
|
+
receivedCount: g,
|
|
1668
|
+
updatedAt: _,
|
|
1669
|
+
updatedAtLabel: N,
|
|
1670
|
+
archivedAt: E,
|
|
1671
|
+
archivedAtLabel: R,
|
|
1672
|
+
trashedAt: h,
|
|
1673
|
+
trashedAtLabel: m,
|
|
1674
|
+
dueAt: S,
|
|
1675
|
+
dueAtLabel: A,
|
|
1676
|
+
attachmentsCount: w,
|
|
1677
|
+
attachmentsLabel: p,
|
|
1678
|
+
tooltips: P
|
|
1679
|
+
}
|
|
1680
|
+
),
|
|
1681
|
+
$ && P?.seenBy ? /* @__PURE__ */ a(Ot, { placement: "bottom", content: P?.seenBy, children: /* @__PURE__ */ a("span", { className: Y.seenBy, children: /* @__PURE__ */ a(he, { items: $.items }) }) }) : $ && /* @__PURE__ */ a(he, { items: $.items, className: Y.seenBy })
|
|
1682
|
+
] }) }),
|
|
1683
|
+
/* @__PURE__ */ a(Ae, { className: Y.controls, children: s })
|
|
1684
|
+
]
|
|
1685
|
+
}
|
|
1686
|
+
);
|
|
1687
|
+
}
|
|
1688
|
+
);
|
|
1689
|
+
mt.displayName = "DialogListItem";
|
|
1690
|
+
const gr = ({
|
|
1691
|
+
className: e,
|
|
1692
|
+
loading: o,
|
|
1693
|
+
status: n,
|
|
1694
|
+
sender: t,
|
|
1695
|
+
updatedAt: r,
|
|
1696
|
+
updatedAtLabel: s,
|
|
1697
|
+
dueAt: c,
|
|
1698
|
+
dueAtLabel: u,
|
|
1699
|
+
archivedAt: d,
|
|
1700
|
+
archivedAtLabel: l,
|
|
1701
|
+
trashedAt: f,
|
|
1702
|
+
trashedAtLabel: i,
|
|
1703
|
+
draftsLabel: y,
|
|
1704
|
+
sentCount: b = 0,
|
|
1705
|
+
receivedCount: _ = 0,
|
|
1706
|
+
attachmentsCount: N = 0,
|
|
1707
|
+
attachmentsLabel: v,
|
|
1708
|
+
transmissionsLabel: E,
|
|
1709
|
+
activityLog: R,
|
|
1710
|
+
extendedStatusLabel: O,
|
|
1711
|
+
tooltips: h = {}
|
|
1712
|
+
}) => /* @__PURE__ */ x(Nt, { className: e, size: "xs", children: [
|
|
1713
|
+
n && /* @__PURE__ */ a(Nr, { tooltip: h.status, loading: o, size: "xs", ...n }),
|
|
1714
|
+
O && /* @__PURE__ */ a(J, { tooltip: h.extendedStatus, size: "xs", variant: "outline", children: O }),
|
|
1715
|
+
y && /* @__PURE__ */ a(J, { tooltip: h.drafts, size: "xs", variant: "dotted", children: y }),
|
|
1716
|
+
b > 0 && /* @__PURE__ */ a(J, { tooltip: h.sent, size: "xs", variant: "outline", icon: rt, children: b }),
|
|
1717
|
+
_ > 0 && /* @__PURE__ */ a(J, { tooltip: h.received, size: "xs", variant: "outline", icon: Ht, children: _ }),
|
|
1718
|
+
r && /* @__PURE__ */ x(xe, { tooltip: h.updatedAt, loading: o, datetime: r, size: "xs", children: [
|
|
1719
|
+
/* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
|
|
1720
|
+
s
|
|
1721
|
+
] }),
|
|
1722
|
+
c && u && /* @__PURE__ */ a(xe, { tooltip: h.dueAt, loading: o, datetime: c, size: "xs", icon: $t, children: u }),
|
|
1723
|
+
N > 0 && /* @__PURE__ */ a(J, { tooltip: h.attachments, loading: o, size: "xs", icon: Rt, children: v || N }),
|
|
1724
|
+
E && /* @__PURE__ */ a(J, { tooltip: h.transmissions, loading: o, size: "xs", icon: en, children: E }),
|
|
1725
|
+
f && i && /* @__PURE__ */ a(xe, { tooltip: h.trashedAt, loading: o, datetime: f, size: "xs", icon: Mt, children: i }) || d && l && /* @__PURE__ */ a(
|
|
1726
|
+
xe,
|
|
1727
|
+
{
|
|
1728
|
+
tooltip: h.archivedAt,
|
|
1729
|
+
loading: o,
|
|
1730
|
+
datetime: d,
|
|
1731
|
+
size: "xs",
|
|
1732
|
+
icon: At,
|
|
1733
|
+
children: l
|
|
1734
|
+
}
|
|
1735
|
+
),
|
|
1736
|
+
R && /* @__PURE__ */ a(
|
|
1737
|
+
J,
|
|
1738
|
+
{
|
|
1739
|
+
tooltip: h.activityLog,
|
|
1740
|
+
loading: o,
|
|
1741
|
+
size: "xs",
|
|
1742
|
+
icon: Jt,
|
|
1743
|
+
as: R?.onClick ? "button" : "span",
|
|
1744
|
+
onClick: R?.onClick,
|
|
1745
|
+
children: R?.label || "Activity log"
|
|
1746
|
+
}
|
|
1747
|
+
)
|
|
1748
|
+
] }), yr = ({
|
|
1749
|
+
sender: e,
|
|
1750
|
+
recipient: o,
|
|
1751
|
+
recipientLabel: n = "to",
|
|
1752
|
+
grouped: t = !1,
|
|
1753
|
+
loading: r,
|
|
1754
|
+
size: s = "xs"
|
|
1755
|
+
}) => !e && !o ? null : /* @__PURE__ */ x(Xn, { loading: r, size: s, avatar: e, avatarGroup: !r && t && e && o ? {
|
|
1756
|
+
items: [o, e]
|
|
1757
|
+
} : void 0, children: [
|
|
1758
|
+
/* @__PURE__ */ a("strong", { children: e?.name }),
|
|
1759
|
+
" ",
|
|
1760
|
+
o && n + " " + o?.name
|
|
1761
|
+
] }), _r = "_media_1x8z9_1", wr = "_icon_1x8z9_10", Ir = "_avatarGroup_1x8z9_17", me = {
|
|
1762
|
+
media: _r,
|
|
1763
|
+
icon: wr,
|
|
1764
|
+
avatarGroup: Ir
|
|
1765
|
+
};
|
|
1766
|
+
function xr(e) {
|
|
1767
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _e(e);
|
|
1768
|
+
}
|
|
1769
|
+
const Ge = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ x("span", { className: me.media, "data-size": e, children: [
|
|
1770
|
+
Ce(o) && /* @__PURE__ */ a(Se, { ...o, className: me.avatar }) || ke(o) && /* @__PURE__ */ a(he, { ...o, className: me.avatarGroup }) || Pe(o) && /* @__PURE__ */ a(X, { ...o, className: me.icon }) || xr(o) && o || /* @__PURE__ */ a(X, { svgElement: o, className: me.icon }),
|
|
1771
|
+
n && /* @__PURE__ */ a(Bt, { value: n, className: me.icon })
|
|
1772
|
+
] }), J = ({
|
|
1773
|
+
loading: e,
|
|
1774
|
+
reverse: o,
|
|
1775
|
+
size: n = "xs",
|
|
1776
|
+
variant: t = "text",
|
|
1777
|
+
icon: r,
|
|
1778
|
+
children: s,
|
|
1779
|
+
tooltip: c,
|
|
1780
|
+
...u
|
|
1781
|
+
}) => /* @__PURE__ */ x(Le, { loading: e, reverse: o, variant: t, tooltip: c, size: n, ...u, children: [
|
|
1782
|
+
!e && r && /* @__PURE__ */ a(Ge, { icon: r }),
|
|
1783
|
+
/* @__PURE__ */ a(Fe, { variant: t, size: n, children: s })
|
|
1784
|
+
] }), Ue = ({ size: e = "xs", variant: o = "text", progress: n = 0, tooltip: t, children: r }) => /* @__PURE__ */ x(Le, { variant: o, size: e, tooltip: t, children: [
|
|
1785
|
+
/* @__PURE__ */ a(Ge, { size: e, progress: n }),
|
|
1786
|
+
/* @__PURE__ */ a(Fe, { variant: o, size: e, children: r })
|
|
1787
|
+
] }), xe = ({
|
|
1788
|
+
loading: e,
|
|
1789
|
+
size: o = "xs",
|
|
1790
|
+
variant: n = "text",
|
|
1791
|
+
datetime: t,
|
|
1792
|
+
icon: r,
|
|
1793
|
+
tooltip: s,
|
|
1794
|
+
children: c
|
|
1795
|
+
}) => /* @__PURE__ */ x(Le, { tooltip: s, loading: e, as: "time", variant: n, datetime: t, size: o, children: [
|
|
1796
|
+
!e && r && /* @__PURE__ */ a(Ge, { size: o, icon: r }),
|
|
1797
|
+
/* @__PURE__ */ a(Fe, { variant: n, size: o, children: c })
|
|
1798
|
+
] });
|
|
1799
|
+
var Or = /* @__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))(Or || {});
|
|
1800
|
+
const Nr = ({ loading: e, size: o = "xs", value: n = "not-applicable", label: t, tooltip: r }) => {
|
|
1801
|
+
if (e)
|
|
1802
|
+
return null;
|
|
1803
|
+
switch (n) {
|
|
1804
|
+
case "draft":
|
|
1805
|
+
return /* @__PURE__ */ a(J, { tooltip: r, size: o, variant: "dotted", children: t || n });
|
|
1806
|
+
case "requires-attention":
|
|
1807
|
+
return /* @__PURE__ */ a(J, { tooltip: r, variant: "solid", children: t || n });
|
|
1808
|
+
case "awaiting":
|
|
1809
|
+
return /* @__PURE__ */ a(J, { tooltip: r, size: o, variant: "outline", icon: nn, children: t || n });
|
|
1810
|
+
case "in-progress":
|
|
1811
|
+
return /* @__PURE__ */ a(Ue, { tooltip: r, size: o, variant: "outline", progress: 75, children: t || n });
|
|
1812
|
+
case "completed":
|
|
1813
|
+
return /* @__PURE__ */ a(Ue, { tooltip: r, size: o, variant: "outline", progress: 100, children: t || n });
|
|
1814
|
+
default:
|
|
1815
|
+
return null;
|
|
1816
|
+
}
|
|
1817
|
+
}, kr = "_header_29hv7_1", Cr = "_label_29hv7_27", Er = "_link_29hv7_43", Pr = "_badge_29hv7_47", Sr = "_linkIcon_29hv7_51", zr = "_linkFocus_29hv7_61", jr = "_controls_29hv7_69", re = {
|
|
1818
|
+
header: kr,
|
|
1819
|
+
label: Cr,
|
|
1820
|
+
link: Er,
|
|
1821
|
+
badge: Pr,
|
|
1822
|
+
linkIcon: Sr,
|
|
1823
|
+
linkFocus: zr,
|
|
1824
|
+
controls: jr
|
|
1825
|
+
}, $r = ({
|
|
1826
|
+
as: e,
|
|
1827
|
+
highlightWords: o,
|
|
1828
|
+
interactive: n = !0,
|
|
1829
|
+
color: t,
|
|
1830
|
+
loading: r,
|
|
1831
|
+
disabled: s,
|
|
1832
|
+
collapsible: c,
|
|
1833
|
+
linkIcon: u,
|
|
1834
|
+
expanded: d,
|
|
1835
|
+
select: l,
|
|
1836
|
+
href: f,
|
|
1837
|
+
onClick: i,
|
|
1838
|
+
onKeyPress: y,
|
|
1839
|
+
tabIndex: b,
|
|
1840
|
+
size: _,
|
|
1841
|
+
title: N,
|
|
1842
|
+
description: v,
|
|
1843
|
+
icon: E,
|
|
1844
|
+
active: R,
|
|
1845
|
+
badge: O,
|
|
1846
|
+
controls: h,
|
|
1847
|
+
className: m,
|
|
1848
|
+
children: M,
|
|
1849
|
+
ariaLabel: S,
|
|
1850
|
+
ariaControlsId: A
|
|
1851
|
+
}) => {
|
|
1852
|
+
const j = c ? d ? Yt : Ut : u ? ot : void 0, $ = () => O && !r && typeof O == "object" && "label" in O ? /* @__PURE__ */ a(ye, { ...O, className: re.badge }) : _e(O) ? O : null, D = S !== void 0 ? S : typeof N == "string" ? N : void 0, z = Oe();
|
|
1853
|
+
return /* @__PURE__ */ x(
|
|
1854
|
+
"div",
|
|
1855
|
+
{
|
|
1856
|
+
className: K(re.header, m),
|
|
1857
|
+
"data-color": t,
|
|
1858
|
+
"data-interactive": n,
|
|
1859
|
+
"data-size": _,
|
|
1860
|
+
"data-has-active-child": R,
|
|
1861
|
+
"aria-disabled": s,
|
|
1862
|
+
children: [
|
|
1863
|
+
/* @__PURE__ */ x(
|
|
1864
|
+
Ft,
|
|
1865
|
+
{
|
|
1866
|
+
as: e,
|
|
1867
|
+
href: f,
|
|
1868
|
+
onClick: i,
|
|
1869
|
+
onKeyPress: y,
|
|
1870
|
+
tabIndex: b,
|
|
1871
|
+
loading: r,
|
|
1872
|
+
disabled: s || r,
|
|
1873
|
+
active: R,
|
|
1874
|
+
ariaLabel: D,
|
|
1875
|
+
className: re.link,
|
|
1876
|
+
expanded: d,
|
|
1877
|
+
ariaControlsId: A,
|
|
1878
|
+
collapsible: c,
|
|
1879
|
+
children: [
|
|
1880
|
+
n && /* @__PURE__ */ a("div", { className: re.linkFocus, "aria-hidden": "true" }),
|
|
1881
|
+
l && /* @__PURE__ */ a(zn, { ...l, className: re.select }),
|
|
1882
|
+
/* @__PURE__ */ a(Tr, { loading: r, icon: E }),
|
|
1883
|
+
/* @__PURE__ */ a(
|
|
1884
|
+
Mr,
|
|
1885
|
+
{
|
|
1886
|
+
size: _,
|
|
1887
|
+
loading: r,
|
|
1888
|
+
highlightWords: o,
|
|
1889
|
+
title: N,
|
|
1890
|
+
description: v,
|
|
1891
|
+
id: z,
|
|
1892
|
+
className: re.label,
|
|
1893
|
+
children: M
|
|
1894
|
+
}
|
|
1895
|
+
)
|
|
1896
|
+
]
|
|
1897
|
+
}
|
|
1898
|
+
),
|
|
1899
|
+
/* @__PURE__ */ x(Tt, { className: re.controls, children: [
|
|
1900
|
+
h && !r && /* @__PURE__ */ a("span", { className: re.customControls, children: h }),
|
|
1901
|
+
$(),
|
|
1902
|
+
j && !s && /* @__PURE__ */ a("span", { className: re.linkIcon, children: /* @__PURE__ */ a(
|
|
1903
|
+
X,
|
|
1904
|
+
{
|
|
1905
|
+
svgElement: j,
|
|
1906
|
+
style: {
|
|
1907
|
+
fontSize: "1.5rem"
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
) })
|
|
1911
|
+
] })
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
);
|
|
1915
|
+
}, Rr = "_label_1tmg6_1", Ve = {
|
|
1916
|
+
label: Rr
|
|
1917
|
+
}, ft = (e) => typeof e == "object" && e !== null && "children" in e;
|
|
1918
|
+
function pt(e) {
|
|
1919
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _e(e);
|
|
1920
|
+
}
|
|
1921
|
+
const We = (e) => {
|
|
1922
|
+
const o = {
|
|
1923
|
+
as: "h3",
|
|
1924
|
+
size: "sm"
|
|
1925
|
+
};
|
|
1926
|
+
return ft(e) ? { ...o, ...e } : pt(e) ? {
|
|
1927
|
+
...o,
|
|
1928
|
+
children: e
|
|
1929
|
+
} : null;
|
|
1930
|
+
}, Ye = (e) => {
|
|
1931
|
+
const o = {
|
|
1932
|
+
as: "span",
|
|
1933
|
+
size: "xs",
|
|
1934
|
+
weight: "normal",
|
|
1935
|
+
variant: "subtle"
|
|
1936
|
+
};
|
|
1937
|
+
return ft(e) ? { ...o, ...e } : pt(e) ? {
|
|
1938
|
+
...o,
|
|
1939
|
+
children: e
|
|
1940
|
+
} : null;
|
|
1941
|
+
}, Mr = ({
|
|
1942
|
+
loading: e = !1,
|
|
1943
|
+
highlightWords: o,
|
|
1944
|
+
size: n,
|
|
1945
|
+
title: t,
|
|
1946
|
+
value: r,
|
|
1947
|
+
description: s,
|
|
1948
|
+
children: c,
|
|
1949
|
+
id: u,
|
|
1950
|
+
className: d
|
|
1951
|
+
}) => {
|
|
1952
|
+
if (t && r) {
|
|
1953
|
+
const i = t && Ye(t), y = r && We(r);
|
|
1954
|
+
return /* @__PURE__ */ a("span", { className: K(Ve.label, d), id: u, "data-size": n, children: c || /* @__PURE__ */ x(fe, { children: [
|
|
1955
|
+
i && /* @__PURE__ */ a(oe, { ...i, loading: e, highlightWords: o }),
|
|
1956
|
+
y && /* @__PURE__ */ a(oe, { ...y, loading: e, highlightWords: o })
|
|
1957
|
+
] }) });
|
|
1958
|
+
}
|
|
1959
|
+
const l = t && We(t), f = s && Ye(s);
|
|
1960
|
+
return /* @__PURE__ */ a("span", { className: K(Ve.label, d), id: u, "data-size": n, children: c || /* @__PURE__ */ x(fe, { children: [
|
|
1961
|
+
l && /* @__PURE__ */ a(oe, { ...l, loading: e, highlightWords: o }),
|
|
1962
|
+
f && /* @__PURE__ */ a(oe, { ...f, loading: e, highlightWords: o })
|
|
1963
|
+
] }) });
|
|
1964
|
+
}, Ar = "_wrapper_rcjve_1", Dr = "_icon_rcjve_11", Br = "_avatar_rcjve_19", Lr = "_avatarGroup_rcjve_23", ie = {
|
|
1965
|
+
wrapper: Ar,
|
|
1966
|
+
icon: Dr,
|
|
1967
|
+
avatar: Br,
|
|
1968
|
+
avatarGroup: Lr
|
|
1969
|
+
};
|
|
1970
|
+
function Fr(e) {
|
|
1971
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _e(e);
|
|
1972
|
+
}
|
|
1973
|
+
const Tr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /* @__PURE__ */ a(X, { className: ie.wrapper, svgElement: ze, loading: !0 }) : /* @__PURE__ */ x("div", { className: ie.wrapper, "data-size": o, children: [
|
|
1974
|
+
Ce(n) && /* @__PURE__ */ a(Se, { ...n, className: ie.avatar }) || ke(n) && /* @__PURE__ */ a(he, { ...n, className: ie.avatarGroup }) || Pe(n) && /* @__PURE__ */ a(X, { ...n, theme: n.theme || t, className: ie.icon }) || Fr(n) && n || /* @__PURE__ */ a(X, { theme: t, svgElement: n, className: ie.icon }),
|
|
1975
|
+
r && /* @__PURE__ */ a(ye, { ...r, className: ie.badge })
|
|
1976
|
+
] }) : null, Gr = "_item_1nwey_3", Hr = {
|
|
1977
|
+
item: Gr
|
|
1978
|
+
}, Kr = ({
|
|
1979
|
+
className: e,
|
|
1980
|
+
color: o,
|
|
1981
|
+
variant: n = "default",
|
|
1982
|
+
shadow: t = "xs",
|
|
1983
|
+
border: r = "none",
|
|
1984
|
+
loading: s,
|
|
1985
|
+
disabled: c,
|
|
1986
|
+
collapsible: u,
|
|
1987
|
+
expanded: d,
|
|
1988
|
+
size: l,
|
|
1989
|
+
icon: f,
|
|
1990
|
+
label: i,
|
|
1991
|
+
title: y,
|
|
1992
|
+
description: b,
|
|
1993
|
+
badge: _,
|
|
1994
|
+
linkIcon: N = !1,
|
|
1995
|
+
select: v,
|
|
1996
|
+
selected: E,
|
|
1997
|
+
controls: R,
|
|
1998
|
+
children: O,
|
|
1999
|
+
interactive: h,
|
|
2000
|
+
id: m,
|
|
2001
|
+
containerAs: M,
|
|
2002
|
+
...S
|
|
2003
|
+
}) => {
|
|
2004
|
+
const A = typeof i == "function" ? i() : i, j = Oe();
|
|
2005
|
+
return /* @__PURE__ */ x(
|
|
2006
|
+
Lt,
|
|
2007
|
+
{
|
|
2008
|
+
className: K(Hr.item, e),
|
|
2009
|
+
size: l,
|
|
2010
|
+
color: o,
|
|
2011
|
+
variant: n,
|
|
2012
|
+
shadow: t,
|
|
2013
|
+
border: r,
|
|
2014
|
+
disabled: c,
|
|
2015
|
+
selected: E,
|
|
2016
|
+
expanded: d,
|
|
2017
|
+
loading: s,
|
|
2018
|
+
interactive: h,
|
|
2019
|
+
id: m,
|
|
2020
|
+
as: M,
|
|
2021
|
+
children: [
|
|
2022
|
+
/* @__PURE__ */ a(
|
|
2023
|
+
$r,
|
|
2024
|
+
{
|
|
2025
|
+
color: o,
|
|
2026
|
+
loading: s,
|
|
2027
|
+
linkIcon: N,
|
|
2028
|
+
disabled: c,
|
|
2029
|
+
collapsible: u,
|
|
2030
|
+
expanded: d,
|
|
2031
|
+
select: v,
|
|
2032
|
+
title: y,
|
|
2033
|
+
size: l,
|
|
2034
|
+
description: b,
|
|
2035
|
+
icon: f,
|
|
2036
|
+
badge: _,
|
|
2037
|
+
controls: R,
|
|
2038
|
+
interactive: h,
|
|
2039
|
+
ariaControlsId: d ? j : void 0,
|
|
2040
|
+
...S,
|
|
2041
|
+
children: A
|
|
2042
|
+
}
|
|
2043
|
+
),
|
|
2044
|
+
d ? /* @__PURE__ */ a("div", { id: j, children: O }) : null
|
|
2045
|
+
]
|
|
2046
|
+
}
|
|
2047
|
+
);
|
|
2048
|
+
}, qr = "_list_14rag_1", Ur = {
|
|
2049
|
+
list: qr
|
|
2050
|
+
}, Vr = ({ children: e, className: o, spacing: n, items: t = [], ...r }) => /* @__PURE__ */ a(Te, { direction: "col", as: "ul", spacing: n, className: K(Ur.list, o), ...r, children: e || t.map((s, c) => /* @__PURE__ */ Me(Kr, { ...s, key: `item-${s.id ?? c}` })) }), Wr = "_menu_16mue_4", Yr = "_button_16mue_12", Qr = "_label_16mue_16", ge = {
|
|
2051
|
+
menu: Wr,
|
|
2052
|
+
button: Yr,
|
|
2053
|
+
label: Qr
|
|
2054
|
+
}, To = we(
|
|
2055
|
+
({
|
|
2056
|
+
disabled: e,
|
|
2057
|
+
label: o = "Label",
|
|
2058
|
+
variant: n = "solid",
|
|
2059
|
+
title: t = "Title",
|
|
2060
|
+
items: r = [],
|
|
2061
|
+
dropdownSize: s = "sm",
|
|
2062
|
+
id: c = "toolbar-menu",
|
|
2063
|
+
onSelectId: u,
|
|
2064
|
+
...d
|
|
2065
|
+
}) => {
|
|
2066
|
+
const l = Dt({ id: c, returnFocusOnClose: !0 }), f = d.searchable ? "combobox" : "menu", i = Qe(
|
|
2067
|
+
(b) => {
|
|
2068
|
+
u?.(b?.id ?? ""), b?.role !== "checkbox" && l.setOpen(!1);
|
|
2069
|
+
},
|
|
2070
|
+
[u, l]
|
|
2071
|
+
), y = ce(
|
|
2072
|
+
() => r.map((b) => ({
|
|
2073
|
+
...b,
|
|
2074
|
+
onClick: () => i(b)
|
|
2075
|
+
})),
|
|
2076
|
+
[r, i]
|
|
2077
|
+
);
|
|
2078
|
+
return e ? /* @__PURE__ */ x(pe, { className: ge.button, variant: n, disabled: !0, children: [
|
|
2079
|
+
/* @__PURE__ */ a("span", { className: ge.label, children: o }),
|
|
2080
|
+
/* @__PURE__ */ a(He, { "aria-hidden": "true", focusable: "false" })
|
|
2081
|
+
] }) : /* @__PURE__ */ a("span", { className: ge.menu, children: /* @__PURE__ */ a(
|
|
2082
|
+
sr,
|
|
2083
|
+
{
|
|
2084
|
+
id: c,
|
|
2085
|
+
variant: "drawer-dropdown",
|
|
2086
|
+
title: t,
|
|
2087
|
+
size: s,
|
|
2088
|
+
trigger: /* @__PURE__ */ x(
|
|
2089
|
+
pe,
|
|
2090
|
+
{
|
|
2091
|
+
className: ge.button,
|
|
2092
|
+
variant: n,
|
|
2093
|
+
onClick: l.toggleMenu,
|
|
2094
|
+
"aria-expanded": l.open,
|
|
2095
|
+
"aria-haspopup": "menu",
|
|
2096
|
+
"aria-controls": l.open ? l.menuId : void 0,
|
|
2097
|
+
ref: l.triggerRef,
|
|
2098
|
+
children: [
|
|
2099
|
+
/* @__PURE__ */ a("span", { className: ge.label, children: o }),
|
|
2100
|
+
/* @__PURE__ */ a(He, { "aria-hidden": "true", focusable: "false" })
|
|
2101
|
+
]
|
|
2102
|
+
}
|
|
2103
|
+
),
|
|
2104
|
+
open: l.open,
|
|
2105
|
+
onClose: () => l.setOpen(!1),
|
|
2106
|
+
...d?.searchable ? {} : l.dropdownA11yProps,
|
|
2107
|
+
children: /* @__PURE__ */ a(
|
|
2108
|
+
it,
|
|
2109
|
+
{
|
|
2110
|
+
...d,
|
|
2111
|
+
items: y,
|
|
2112
|
+
keyboardEvents: l.open,
|
|
2113
|
+
a11yMode: f,
|
|
2114
|
+
open: l.open,
|
|
2115
|
+
scrollToTopOnOpen: d.virtualized,
|
|
2116
|
+
...f === "combobox" ? { id: l.menuId } : l.menuA11yProps
|
|
2117
|
+
}
|
|
2118
|
+
)
|
|
2119
|
+
}
|
|
2120
|
+
) });
|
|
2121
|
+
}
|
|
2122
|
+
), Go = we(
|
|
2123
|
+
({
|
|
2124
|
+
value: e,
|
|
2125
|
+
name: o,
|
|
2126
|
+
placeholder: n = "Search",
|
|
2127
|
+
loading: t,
|
|
2128
|
+
collapsible: r,
|
|
2129
|
+
clearButtonAltText: s = "Clear search",
|
|
2130
|
+
onChange: c,
|
|
2131
|
+
onClear: u,
|
|
2132
|
+
onKeyDown: d,
|
|
2133
|
+
menu: l,
|
|
2134
|
+
minLength: f,
|
|
2135
|
+
disabled: i
|
|
2136
|
+
}) => /* @__PURE__ */ a(
|
|
2137
|
+
De,
|
|
2138
|
+
{
|
|
2139
|
+
size: "xs",
|
|
2140
|
+
value: e,
|
|
2141
|
+
name: o,
|
|
2142
|
+
placeholder: n,
|
|
2143
|
+
clearButtonAltText: s,
|
|
2144
|
+
onChange: c,
|
|
2145
|
+
onClear: u,
|
|
2146
|
+
onKeyDown: d,
|
|
2147
|
+
collapsible: r,
|
|
2148
|
+
autoComplete: "off",
|
|
2149
|
+
autoCapitalize: "off",
|
|
2150
|
+
type: "search",
|
|
2151
|
+
minLength: f,
|
|
2152
|
+
loading: t,
|
|
2153
|
+
menu: l,
|
|
2154
|
+
disabled: i
|
|
2155
|
+
}
|
|
2156
|
+
)
|
|
2157
|
+
), Xr = "_section_1w6kc_1", Jr = {
|
|
2158
|
+
section: Xr
|
|
2159
|
+
}, ht = ({
|
|
2160
|
+
as: e = "section",
|
|
2161
|
+
direction: o = "col",
|
|
2162
|
+
align: n = "initial",
|
|
2163
|
+
variant: t,
|
|
2164
|
+
className: r,
|
|
2165
|
+
children: s,
|
|
2166
|
+
...c
|
|
2167
|
+
}) => /* @__PURE__ */ a(
|
|
2168
|
+
Te,
|
|
2169
|
+
{
|
|
2170
|
+
as: e,
|
|
2171
|
+
align: n,
|
|
2172
|
+
direction: o,
|
|
2173
|
+
theme: t,
|
|
2174
|
+
className: K(Jr.section, r),
|
|
2175
|
+
...c,
|
|
2176
|
+
children: s
|
|
2177
|
+
}
|
|
2178
|
+
);
|
|
2179
|
+
export {
|
|
2180
|
+
on as A,
|
|
2181
|
+
Xn as B,
|
|
2182
|
+
rt as C,
|
|
2183
|
+
lr as D,
|
|
2184
|
+
ze as E,
|
|
2185
|
+
fn as F,
|
|
2186
|
+
He as G,
|
|
2187
|
+
oe as H,
|
|
2188
|
+
X as I,
|
|
2189
|
+
Yt as J,
|
|
2190
|
+
Ut as K,
|
|
2191
|
+
$r as L,
|
|
2192
|
+
it as M,
|
|
2193
|
+
ot as N,
|
|
2194
|
+
wn as O,
|
|
2195
|
+
Fo as R,
|
|
2196
|
+
ht as S,
|
|
2197
|
+
Go as T,
|
|
2198
|
+
vn as V,
|
|
2199
|
+
ut as a,
|
|
2200
|
+
mt as b,
|
|
2201
|
+
gr as c,
|
|
2202
|
+
yr as d,
|
|
2203
|
+
Or as e,
|
|
2204
|
+
Nr as f,
|
|
2205
|
+
sr as g,
|
|
2206
|
+
Ke as h,
|
|
2207
|
+
Pe as i,
|
|
2208
|
+
qe as j,
|
|
2209
|
+
zn as k,
|
|
2210
|
+
ft as l,
|
|
2211
|
+
Mr as m,
|
|
2212
|
+
Tr as n,
|
|
2213
|
+
Kr as o,
|
|
2214
|
+
Vr as p,
|
|
2215
|
+
ct as q,
|
|
2216
|
+
st as r,
|
|
2217
|
+
at as s,
|
|
2218
|
+
Ge as t,
|
|
2219
|
+
J as u,
|
|
2220
|
+
Ue as v,
|
|
2221
|
+
xe as w,
|
|
2222
|
+
gn as x,
|
|
2223
|
+
To as y,
|
|
2224
|
+
De as z
|
|
2225
|
+
};
|