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