@altinn/altinn-components 0.68.6 → 0.68.8
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 +3 -0
- package/dist/ToolbarSearch-CX_woN0c.js +2614 -0
- package/dist/assets/LayoutContent.css +1 -1
- package/dist/assets/ToolbarSearch.css +1 -1
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
- package/dist/components/Account/AccountList.js +1 -1
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Account/AccountListItemDetails.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +1 -1
- package/dist/components/Account/AccountMenu.js +1 -1
- package/dist/components/Account/AccountNotificationSettings.js +1 -1
- package/dist/components/Account/AccountOrganization.js +1 -1
- package/dist/components/AccountSelector/AccountSelector.js +9 -9
- 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/AuthEvidence/AuthEvidence.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceItem.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceOwner.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceParent.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceService.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsList.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Bulk/BulkHeader.js +3 -3
- package/dist/components/Button/ButtonIcon.js +7 -7
- package/dist/components/Button/ComboButton.js +1 -1
- package/dist/components/Button/FloatingActionButton.js +1 -1
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/Byline/index.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/Dashboard/DashboardCard.js +1 -1
- package/dist/components/Dashboard/DashboardHeader.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +6 -6
- package/dist/components/Datepicker/DatepickerHeader.js +7 -7
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +3 -3
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogLayout.js +1 -1
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +1 -1
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTabs.js +1 -1
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/SeenByLogButton.js +1 -1
- package/dist/components/Dialog/SeenByLogItem.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +5 -5
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/Dropdown/FloatingDropdown.js +7 -7
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Forms/Checkbox.js +1 -1
- package/dist/components/Forms/CheckboxOptions.js +1 -1
- package/dist/components/Forms/FieldBase.js +1 -1
- package/dist/components/Forms/FieldsetBase.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.js +1 -1
- package/dist/components/Forms/SearchField.js +1 -1
- package/dist/components/Forms/SelectField.js +1 -1
- package/dist/components/Forms/Switch.js +1 -1
- package/dist/components/Forms/SwitchOptions.js +1 -1
- package/dist/components/Forms/TextField.js +1 -1
- package/dist/components/Forms/TextFieldDropdown.js +1 -1
- package/dist/components/Forms/TextareaField.js +1 -1
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/GlobalAccountButton.js +1 -1
- package/dist/components/GlobalHeader/GlobalHeader.js +6 -6
- package/dist/components/GlobalHeader/GlobalMenuButton.js +5 -5
- package/dist/components/GlobalHeader/HeaderDrawer.js +7 -7
- 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 +5 -5
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/Icon/index.js +5 -5
- package/dist/components/Inbox/InboxPage.js +1 -1
- package/dist/components/InboxSearch/InboxSearch.js +1 -1
- package/dist/components/Item/ItemLabel.js +1 -1
- package/dist/components/Item/ItemMedia.js +1 -1
- package/dist/components/Item/ItemSelect.js +1 -1
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Layout/Layout.js +13 -13
- package/dist/components/Layout/LayoutContent.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItemHeader.js +7 -7
- package/dist/components/List/ListItemIcon.js +4 -4
- package/dist/components/List/ListItemLabel.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuListSearch.js +1 -1
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/TabMenu.js +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/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 +6 -6
- package/dist/components/Modal/ModalIcon.js +6 -6
- 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 +10 -10
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +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 +12 -12
- package/dist/components/Settings/SettingsItem.js +1 -1
- package/dist/components/Settings/SettingsItemBase.js +1 -1
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Settings/SettingsListVirtual.js +1 -1
- package/dist/components/Settings/SettingsModal.js +1 -1
- package/dist/components/Settings/SettingsSection.js +1 -1
- package/dist/components/Settings/UsedByLog.js +1 -1
- package/dist/components/Settings/UsedByLogItem.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +6 -28
- package/dist/components/Snackbar/SnackbarItem.js +7 -71
- package/dist/components/Snackbar/index.js +5 -6
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/SelectDateFilter.js +1 -1
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterButton.js +7 -7
- package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +405 -407
- package/dist/hooks/useAccountSelector.js +1 -1
- package/dist/index.js +423 -425
- package/package.json +3 -1
- package/dist/ToolbarSearch-L12-MUZz.js +0 -2010
- package/dist/assets/SnackbarItem.css +0 -1
|
@@ -0,0 +1,2614 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i, jsxs as w, Fragment as we } from "react/jsx-runtime";
|
|
3
|
+
import * as q from "react";
|
|
4
|
+
import O, { forwardRef as Q, useRef as J, useState as de, useMemo as fe, useEffect as U, Fragment as wt, useLayoutEffect as Xe, createContext as Ht, useContext as Ft, isValidElement as _t, useId as lt, useCallback as xt, memo as Fe, createElement as qt } from "react";
|
|
5
|
+
import "./tooltip-Caqi75cv.js";
|
|
6
|
+
import { c as G } from "./index-p1eeF8LQ.js";
|
|
7
|
+
import { useEscapeKey as Wt } from "./hooks/useEscapeKey.js";
|
|
8
|
+
import "./components/Typography/Link.js";
|
|
9
|
+
import { Button as _e } from "./components/Button/Button.js";
|
|
10
|
+
import { createPortal as Gt } from "react-dom";
|
|
11
|
+
import { useMenu as rt } from "./hooks/useMenu.js";
|
|
12
|
+
import { Typography as It } from "./components/Typography/Typography.js";
|
|
13
|
+
import { Skeleton as xe } from "./components/Skeleton/Skeleton.js";
|
|
14
|
+
import { useHighlightedText as Kt } from "./components/Typography/useHighlightedText.js";
|
|
15
|
+
import { Tooltip as at } from "./components/Tooltip/Tooltip.js";
|
|
16
|
+
import "./components/GlobalMenu/GlobalMenuBase.js";
|
|
17
|
+
import { SnackbarBase as Vt } from "./components/Snackbar/SnackbarBase.js";
|
|
18
|
+
import { useSnackbar as Ut, SnackbarProvider as Yt } from "./components/Snackbar/useSnackbar.js";
|
|
19
|
+
import { Input as Qt } from "./components/Forms/Input.js";
|
|
20
|
+
import { Field as Xt } from "./components/Forms/Field.js";
|
|
21
|
+
import { Label as Jt } from "./components/Forms/Label.js";
|
|
22
|
+
import { TypingIcon as Zt } from "./components/Icon/TypingIcon.js";
|
|
23
|
+
import { u as X } from "./useId-BVFxCjkq.js";
|
|
24
|
+
import { isAvatarProps as Je, Avatar as it } from "./components/Avatar/Avatar.js";
|
|
25
|
+
import { isAvatarGroupProps as Ze, AvatarGroup as Ae } from "./components/Avatar/AvatarGroup.js";
|
|
26
|
+
import { ItemControls as et } from "./components/Item/ItemControls.js";
|
|
27
|
+
import { pickAriaProps as en } from "./components/Menu/aria.js";
|
|
28
|
+
import { MenuList as De } from "./components/Menu/MenuList.js";
|
|
29
|
+
import { MenuListItem as Ot } from "./components/Menu/MenuListItem.js";
|
|
30
|
+
import { MenuListGroup as St } from "./components/Menu/MenuListGroup.js";
|
|
31
|
+
import { MenuListDivider as Et } from "./components/Menu/MenuListDivider.js";
|
|
32
|
+
import { MenuListHeading as kt } from "./components/Menu/MenuListHeading.js";
|
|
33
|
+
import { useMenuVirtualization as tn } from "./components/Menu/useMenuVirtualization.js";
|
|
34
|
+
import { a as nn, b as on, S as rn } from "./Paperclip-DhP0Uo69.js";
|
|
35
|
+
import { useDropdownMenuController as an } from "./components/Menu/useDropdownMenuController.js";
|
|
36
|
+
import { ItemBase as sn } from "./components/Item/ItemBase.js";
|
|
37
|
+
import { ItemLink as ln } from "./components/Item/ItemLink.js";
|
|
38
|
+
import { MetaBase as cn } from "./components/Metadata/MetaBase.js";
|
|
39
|
+
import { ProgressIcon as dn } from "./components/Icon/ProgressIcon.js";
|
|
40
|
+
import './assets/ToolbarSearch.css';var un = function(e, n) {
|
|
41
|
+
var o = {};
|
|
42
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
43
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
44
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
45
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
46
|
+
return o;
|
|
47
|
+
};
|
|
48
|
+
const pn = Q((e, n) => {
|
|
49
|
+
var { title: o, titleId: t } = e, r = un(e, ["title", "titleId"]);
|
|
50
|
+
let a = X();
|
|
51
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
52
|
+
"svg",
|
|
53
|
+
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: n, "aria-labelledby": a }, r),
|
|
54
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
55
|
+
O.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm15.5 6a.25.25 0 0 1 .25.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V9.5a.25.25 0 0 1 .25-.25zm-4.75 3.25a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75", clipRule: "evenodd" })
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
var fn = function(e, n) {
|
|
59
|
+
var o = {};
|
|
60
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
61
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
62
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
63
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
64
|
+
return o;
|
|
65
|
+
};
|
|
66
|
+
const mn = Q((e, n) => {
|
|
67
|
+
var { title: o, titleId: t } = e, r = fn(e, ["title", "titleId"]);
|
|
68
|
+
let a = X();
|
|
69
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
70
|
+
"svg",
|
|
71
|
+
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: n, "aria-labelledby": a }, r),
|
|
72
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
73
|
+
O.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" })
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
var hn = function(e, n) {
|
|
77
|
+
var o = {};
|
|
78
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
79
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
80
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
81
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
82
|
+
return o;
|
|
83
|
+
};
|
|
84
|
+
const vn = Q((e, n) => {
|
|
85
|
+
var { title: o, titleId: t } = e, r = hn(e, ["title", "titleId"]);
|
|
86
|
+
let a = X();
|
|
87
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
88
|
+
"svg",
|
|
89
|
+
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: n, "aria-labelledby": a }, r),
|
|
90
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
91
|
+
O.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.75 2.5a.75.75 0 0 0-1.5 0v1.273c-2.222.14-3.655.92-4.499 2.186-.887 1.33-1.001 3.04-1.001 4.541v3c0 .809-.424 1.92-.92 2.915a18 18 0 0 1-.936 1.641l-.014.022-.004.006A.75.75 0 0 0 4.5 19.25h4.338a3.25 3.25 0 0 0 6.324 0H19.5a.75.75 0 0 0 .624-1.166l-.004-.006-.014-.022-.06-.091c-.05-.081-.125-.2-.215-.35-.18-.301-.42-.722-.66-1.2-.497-.994-.921-2.106-.921-2.915v-3c0-1.501-.114-3.21-1.001-4.541-.844-1.266-2.277-2.046-4.499-2.186zm-1.987 17.237a1.8 1.8 0 0 1-.344-.487h3.162a1.75 1.75 0 0 1-1.581 1 1.75 1.75 0 0 1-1.237-.513", clipRule: "evenodd" })
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
var gn = function(e, n) {
|
|
95
|
+
var o = {};
|
|
96
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
97
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
98
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
99
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
100
|
+
return o;
|
|
101
|
+
};
|
|
102
|
+
const Pt = Q((e, n) => {
|
|
103
|
+
var { title: o, titleId: t } = e, r = gn(e, ["title", "titleId"]);
|
|
104
|
+
let a = X();
|
|
105
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
106
|
+
"svg",
|
|
107
|
+
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: n, "aria-labelledby": a }, r),
|
|
108
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
109
|
+
O.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" })
|
|
110
|
+
);
|
|
111
|
+
});
|
|
112
|
+
var bn = function(e, n) {
|
|
113
|
+
var o = {};
|
|
114
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
115
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
116
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
117
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
118
|
+
return o;
|
|
119
|
+
};
|
|
120
|
+
const yn = Q((e, n) => {
|
|
121
|
+
var { title: o, titleId: t } = e, r = bn(e, ["title", "titleId"]);
|
|
122
|
+
let a = X();
|
|
123
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
124
|
+
"svg",
|
|
125
|
+
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: n, "aria-labelledby": a }, r),
|
|
126
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
127
|
+
O.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" })
|
|
128
|
+
);
|
|
129
|
+
});
|
|
130
|
+
var wn = function(e, n) {
|
|
131
|
+
var o = {};
|
|
132
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
133
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
134
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
135
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
136
|
+
return o;
|
|
137
|
+
};
|
|
138
|
+
const ct = Q((e, n) => {
|
|
139
|
+
var { title: o, titleId: t } = e, r = wn(e, ["title", "titleId"]);
|
|
140
|
+
let a = X();
|
|
141
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
142
|
+
"svg",
|
|
143
|
+
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: n, "aria-labelledby": a }, r),
|
|
144
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
145
|
+
O.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" })
|
|
146
|
+
);
|
|
147
|
+
});
|
|
148
|
+
var _n = function(e, n) {
|
|
149
|
+
var o = {};
|
|
150
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
151
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
152
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
153
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
154
|
+
return o;
|
|
155
|
+
};
|
|
156
|
+
const xn = Q((e, n) => {
|
|
157
|
+
var { title: o, titleId: t } = e, r = _n(e, ["title", "titleId"]);
|
|
158
|
+
let a = X();
|
|
159
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
160
|
+
"svg",
|
|
161
|
+
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: n, "aria-labelledby": a }, r),
|
|
162
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
163
|
+
O.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" })
|
|
164
|
+
);
|
|
165
|
+
});
|
|
166
|
+
var In = function(e, n) {
|
|
167
|
+
var o = {};
|
|
168
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
169
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
170
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
171
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
172
|
+
return o;
|
|
173
|
+
};
|
|
174
|
+
const On = Q((e, n) => {
|
|
175
|
+
var { title: o, titleId: t } = e, r = In(e, ["title", "titleId"]);
|
|
176
|
+
let a = X();
|
|
177
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
178
|
+
"svg",
|
|
179
|
+
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: n, "aria-labelledby": a }, r),
|
|
180
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
181
|
+
O.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" })
|
|
182
|
+
);
|
|
183
|
+
});
|
|
184
|
+
var Sn = function(e, n) {
|
|
185
|
+
var o = {};
|
|
186
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
187
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
188
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
189
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
190
|
+
return o;
|
|
191
|
+
};
|
|
192
|
+
const En = Q((e, n) => {
|
|
193
|
+
var { title: o, titleId: t } = e, r = Sn(e, ["title", "titleId"]);
|
|
194
|
+
let a = X();
|
|
195
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
196
|
+
"svg",
|
|
197
|
+
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: n, "aria-labelledby": a }, r),
|
|
198
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
199
|
+
O.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" })
|
|
200
|
+
);
|
|
201
|
+
});
|
|
202
|
+
var kn = function(e, n) {
|
|
203
|
+
var o = {};
|
|
204
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
205
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
206
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
207
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
208
|
+
return o;
|
|
209
|
+
};
|
|
210
|
+
const Pn = Q((e, n) => {
|
|
211
|
+
var { title: o, titleId: t } = e, r = kn(e, ["title", "titleId"]);
|
|
212
|
+
let a = X();
|
|
213
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
214
|
+
"svg",
|
|
215
|
+
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: n, "aria-labelledby": a }, r),
|
|
216
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
217
|
+
O.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" })
|
|
218
|
+
);
|
|
219
|
+
});
|
|
220
|
+
var Nn = function(e, n) {
|
|
221
|
+
var o = {};
|
|
222
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
223
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
224
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
225
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
226
|
+
return o;
|
|
227
|
+
};
|
|
228
|
+
const Mn = Q((e, n) => {
|
|
229
|
+
var { title: o, titleId: t } = e, r = Nn(e, ["title", "titleId"]);
|
|
230
|
+
let a = X();
|
|
231
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
232
|
+
"svg",
|
|
233
|
+
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: n, "aria-labelledby": a }, r),
|
|
234
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
235
|
+
O.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.75c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm6.75 1.5V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25H4.5a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.875-11.384h.806a.75.75 0 0 0 0-1.5h-2.75m-6 4.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0zM14 9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
|
|
236
|
+
);
|
|
237
|
+
});
|
|
238
|
+
var An = function(e, n) {
|
|
239
|
+
var o = {};
|
|
240
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
241
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
242
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
243
|
+
n.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (o[t[r]] = e[t[r]]);
|
|
244
|
+
return o;
|
|
245
|
+
};
|
|
246
|
+
const qe = Q((e, n) => {
|
|
247
|
+
var { title: o, titleId: t } = e, r = An(e, ["title", "titleId"]);
|
|
248
|
+
let a = X();
|
|
249
|
+
return a = o ? t || "title-" + a : void 0, O.createElement(
|
|
250
|
+
"svg",
|
|
251
|
+
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: n, "aria-labelledby": a }, r),
|
|
252
|
+
o ? O.createElement("title", { id: a }, o) : null,
|
|
253
|
+
O.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" })
|
|
254
|
+
);
|
|
255
|
+
}), Cn = "_badge_5li3b_1", Rn = "_label_5li3b_33", ze = {
|
|
256
|
+
badge: Cn,
|
|
257
|
+
label: Rn
|
|
258
|
+
}, ie = ({
|
|
259
|
+
label: e,
|
|
260
|
+
color: n,
|
|
261
|
+
variant: o = "subtle",
|
|
262
|
+
theme: t,
|
|
263
|
+
size: r = "sm",
|
|
264
|
+
tooltip: a,
|
|
265
|
+
className: d,
|
|
266
|
+
style: u,
|
|
267
|
+
children: s
|
|
268
|
+
}) => a ? /* @__PURE__ */ i(at, { content: a, children: /* @__PURE__ */ i(
|
|
269
|
+
"span",
|
|
270
|
+
{
|
|
271
|
+
className: G(ze.badge, d),
|
|
272
|
+
style: u,
|
|
273
|
+
"data-color": n,
|
|
274
|
+
"data-variant": o,
|
|
275
|
+
"data-theme": t,
|
|
276
|
+
"data-size": r,
|
|
277
|
+
...r === "xs" && { "aria-hidden": !0 },
|
|
278
|
+
children: /* @__PURE__ */ i("span", { className: ze.label, children: e || s })
|
|
279
|
+
}
|
|
280
|
+
) }) : /* @__PURE__ */ i(
|
|
281
|
+
"span",
|
|
282
|
+
{
|
|
283
|
+
className: G(ze.badge, d),
|
|
284
|
+
style: u,
|
|
285
|
+
"data-color": n,
|
|
286
|
+
"data-variant": o,
|
|
287
|
+
"data-theme": t,
|
|
288
|
+
"data-size": r,
|
|
289
|
+
...r === "xs" && { "aria-hidden": !0 },
|
|
290
|
+
children: /* @__PURE__ */ i("span", { className: ze.label, children: e || s })
|
|
291
|
+
}
|
|
292
|
+
), zn = "_icon_1y3dz_1", Ln = "_shape_1y3dz_9", Tn = "_svg_1y3dz_14", $n = "_image_1y3dz_15", ke = {
|
|
293
|
+
icon: zn,
|
|
294
|
+
shape: Ln,
|
|
295
|
+
svg: Tn,
|
|
296
|
+
image: $n
|
|
297
|
+
}, tt = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), ce = ({
|
|
298
|
+
loading: e,
|
|
299
|
+
altText: n,
|
|
300
|
+
svgElement: o,
|
|
301
|
+
size: t,
|
|
302
|
+
color: r,
|
|
303
|
+
iconUrl: a,
|
|
304
|
+
className: d,
|
|
305
|
+
style: u,
|
|
306
|
+
children: s
|
|
307
|
+
}) => /* @__PURE__ */ i("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: G(ke.icon, d), style: u, children: /* @__PURE__ */ w(xe, { loading: e, variant: "circle", className: ke.shape, children: [
|
|
308
|
+
/* @__PURE__ */ i("span", { className: ke.shape }),
|
|
309
|
+
o && /* @__PURE__ */ i(o, { "aria-hidden": "true", "alt-label": n, className: ke.svg }),
|
|
310
|
+
a && /* @__PURE__ */ i("img", { src: a, alt: n, className: ke.image }),
|
|
311
|
+
s
|
|
312
|
+
] }) }), Dn = ({ size: e, color: n, label: o, htmlFor: t, helperText: r, children: a, ...d }) => /* @__PURE__ */ w(Xt, { size: e, color: n, ...d, children: [
|
|
313
|
+
o && /* @__PURE__ */ i(Jt, { size: e, htmlFor: t, children: o }),
|
|
314
|
+
a,
|
|
315
|
+
r && /* @__PURE__ */ i(It, { size: "xs", children: r })
|
|
316
|
+
] }), jn = "_search_18jfe_1", Bn = "_searchInput_18jfe_8", Ve = {
|
|
317
|
+
search: jn,
|
|
318
|
+
searchInput: Bn
|
|
319
|
+
}, Nt = ({
|
|
320
|
+
style: e,
|
|
321
|
+
index: n,
|
|
322
|
+
name: o,
|
|
323
|
+
value: t,
|
|
324
|
+
placeholder: r = "Search",
|
|
325
|
+
clearButtonAltText: a = "Clear search",
|
|
326
|
+
onChange: d,
|
|
327
|
+
onClear: u,
|
|
328
|
+
onNavigate: s,
|
|
329
|
+
combobox: l = !1,
|
|
330
|
+
listId: p,
|
|
331
|
+
"aria-activedescendant": c,
|
|
332
|
+
onKeyDown: h,
|
|
333
|
+
onInput: v,
|
|
334
|
+
onFocus: g,
|
|
335
|
+
...N
|
|
336
|
+
}) => {
|
|
337
|
+
const _ = /* @__PURE__ */ i(
|
|
338
|
+
$t,
|
|
339
|
+
{
|
|
340
|
+
size: "xs",
|
|
341
|
+
className: Ve.searchInput,
|
|
342
|
+
name: o,
|
|
343
|
+
value: t,
|
|
344
|
+
placeholder: r,
|
|
345
|
+
onChange: d,
|
|
346
|
+
onClear: u,
|
|
347
|
+
clearButtonAltText: a,
|
|
348
|
+
autoComplete: "off",
|
|
349
|
+
autoCorrect: "off",
|
|
350
|
+
autoCapitalize: "off",
|
|
351
|
+
autoFocus: !0,
|
|
352
|
+
onKeyDown: (x) => {
|
|
353
|
+
(x.key === "ArrowUp" || x.key === "ArrowDown") && (x.preventDefault(), s?.()), h?.(x);
|
|
354
|
+
},
|
|
355
|
+
onInput: v,
|
|
356
|
+
onFocus: g,
|
|
357
|
+
...l ? {
|
|
358
|
+
role: "combobox",
|
|
359
|
+
"aria-autocomplete": "list",
|
|
360
|
+
"aria-expanded": !0,
|
|
361
|
+
"aria-haspopup": "listbox",
|
|
362
|
+
"aria-controls": p,
|
|
363
|
+
"aria-activedescendant": c
|
|
364
|
+
} : {},
|
|
365
|
+
...N
|
|
366
|
+
}
|
|
367
|
+
);
|
|
368
|
+
return l ? /* @__PURE__ */ i("div", { className: Ve.search, style: e, "data-index": n, "data-menu-search": "true", children: _ }) : /* @__PURE__ */ i("li", { className: Ve.search, style: e, "data-index": n, "data-menu-search": "true", children: _ });
|
|
369
|
+
}, Mt = ({
|
|
370
|
+
level: e = 0,
|
|
371
|
+
maxLevels: n,
|
|
372
|
+
expanded: o,
|
|
373
|
+
a11yMode: t = "menu",
|
|
374
|
+
open: r,
|
|
375
|
+
scrollToTopOnOpen: a = !1,
|
|
376
|
+
autoActivateFirstItem: d = !0,
|
|
377
|
+
autoFocusList: u = !0,
|
|
378
|
+
announceNoResults: s = !1,
|
|
379
|
+
search: l,
|
|
380
|
+
items: p,
|
|
381
|
+
groups: c = {},
|
|
382
|
+
size: h,
|
|
383
|
+
id: v,
|
|
384
|
+
color: g,
|
|
385
|
+
variant: N,
|
|
386
|
+
scrollRefStyles: _ = {},
|
|
387
|
+
keyboardEvents: x = !1,
|
|
388
|
+
onSelect: L = () => {
|
|
389
|
+
},
|
|
390
|
+
onActiveItemIdChange: C
|
|
391
|
+
}) => {
|
|
392
|
+
if (n && e >= n)
|
|
393
|
+
return null;
|
|
394
|
+
const k = t === "combobox", f = t === "navigation", R = k && v ? `${v}-listbox` : v, I = J(r), H = J(r), [W, y] = de(!1), T = fe(
|
|
395
|
+
() => p.map((A, D) => ({
|
|
396
|
+
...A,
|
|
397
|
+
id: `${v}-item-${D}`
|
|
398
|
+
})),
|
|
399
|
+
[p, v]
|
|
400
|
+
), M = J(null), { menu: P, setActiveIndex: m, activeItem: S } = rt({
|
|
401
|
+
items: T,
|
|
402
|
+
groups: c,
|
|
403
|
+
groupByKey: "groupId",
|
|
404
|
+
keyboardEvents: x,
|
|
405
|
+
autoActivateFirstItem: d,
|
|
406
|
+
onSelect: L,
|
|
407
|
+
ref: M
|
|
408
|
+
});
|
|
409
|
+
U(() => {
|
|
410
|
+
C?.(S?.id);
|
|
411
|
+
}, [S?.id, C]), U(() => {
|
|
412
|
+
if (!a) {
|
|
413
|
+
I.current = r;
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
const A = I.current;
|
|
417
|
+
I.current = r, r && !A && M.current?.scrollTo({ top: 0 });
|
|
418
|
+
}, [r, a]), U(() => {
|
|
419
|
+
const A = H.current;
|
|
420
|
+
H.current = r, !(!x || l || !u) && r && !A && requestAnimationFrame(() => M.current?.focus?.({ preventScroll: !0 }));
|
|
421
|
+
}, [r, x, l]), U(() => {
|
|
422
|
+
if (k && s) {
|
|
423
|
+
m(0), y(!0);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
}, [s, k, m]);
|
|
427
|
+
const z = l ? /* @__PURE__ */ i(
|
|
428
|
+
Nt,
|
|
429
|
+
{
|
|
430
|
+
...l,
|
|
431
|
+
combobox: k,
|
|
432
|
+
listId: R,
|
|
433
|
+
"aria-activedescendant": k && W ? S?.id : void 0,
|
|
434
|
+
onNavigate: k ? () => y(!0) : void 0,
|
|
435
|
+
onChange: (A) => {
|
|
436
|
+
y(!1), l.onChange?.(A);
|
|
437
|
+
},
|
|
438
|
+
onFocus: (A) => {
|
|
439
|
+
y(!1), l.onFocus?.(A);
|
|
440
|
+
},
|
|
441
|
+
onInput: (A) => {
|
|
442
|
+
y(!1), l.onInput?.(A);
|
|
443
|
+
},
|
|
444
|
+
onKeyDown: (A) => {
|
|
445
|
+
const D = A.key === "ArrowUp" || A.key === "ArrowDown", j = A.key.length === 1 || A.key === "Backspace" || A.key === "Delete";
|
|
446
|
+
k && !D && j && y(!1), l.onKeyDown?.(A);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
) : null, $ = /* @__PURE__ */ w(
|
|
450
|
+
De,
|
|
451
|
+
{
|
|
452
|
+
variant: N,
|
|
453
|
+
expanded: o,
|
|
454
|
+
ref: M,
|
|
455
|
+
style: _,
|
|
456
|
+
id: R,
|
|
457
|
+
role: k ? "listbox" : f ? "list" : "menu",
|
|
458
|
+
tabIndex: x ? -1 : void 0,
|
|
459
|
+
children: [
|
|
460
|
+
!k && z,
|
|
461
|
+
P.map((A, D) => {
|
|
462
|
+
const j = A?.props || {}, { title: K, hidden: ve = !1, divider: Z = !0 } = j;
|
|
463
|
+
return /* @__PURE__ */ w(wt, { children: [
|
|
464
|
+
(e > 0 || D) && Z ? /* @__PURE__ */ i(Et, {}) : "",
|
|
465
|
+
/* @__PURE__ */ i(St, { hidden: ve, children: /* @__PURE__ */ w(De, { role: "presentation", children: [
|
|
466
|
+
K && /* @__PURE__ */ i(kt, { title: K, level: e }),
|
|
467
|
+
A?.items.filter((ee) => !ee.props?.hidden).map((ee, b) => {
|
|
468
|
+
const { active: E, onMouseEnter: B } = ee, { groupId: ne, ...F } = ee.props || {}, { expanded: se } = F, le = Array.isArray(F?.items) && F.items.length > 0, Ge = F.role === "checkbox" || F.role === "radio", Ke = F.role === "radio" ? "menuitemradio" : "menuitemcheckbox", Bt = f ? void 0 : k ? "option" : Ge ? Ke : F.role;
|
|
469
|
+
return /* @__PURE__ */ w(
|
|
470
|
+
Ot,
|
|
471
|
+
{
|
|
472
|
+
expanded: se,
|
|
473
|
+
onMouseLeave: () => m(-1),
|
|
474
|
+
role: f ? "listitem" : "presentation",
|
|
475
|
+
children: [
|
|
476
|
+
/* @__PURE__ */ i(
|
|
477
|
+
Tt,
|
|
478
|
+
{
|
|
479
|
+
...F,
|
|
480
|
+
size: F?.size || j?.size || h,
|
|
481
|
+
color: F?.color || j?.color || g,
|
|
482
|
+
variant: F?.variant || j?.variant || N,
|
|
483
|
+
active: E,
|
|
484
|
+
role: Bt,
|
|
485
|
+
a11yMode: t,
|
|
486
|
+
selected: F.selected,
|
|
487
|
+
tabIndex: F?.disabled || x ? -1 : F.tabIndex ?? 0,
|
|
488
|
+
onMouseEnter: B,
|
|
489
|
+
"aria-haspopup": le && !f ? "menu" : void 0,
|
|
490
|
+
"aria-expanded": le ? se : void 0,
|
|
491
|
+
"aria-controls": le ? F.id + "-menu" : void 0
|
|
492
|
+
}
|
|
493
|
+
),
|
|
494
|
+
se && F?.items && /* @__PURE__ */ i(
|
|
495
|
+
Mt,
|
|
496
|
+
{
|
|
497
|
+
id: F.id + "-menu",
|
|
498
|
+
expanded: se,
|
|
499
|
+
level: e + 1,
|
|
500
|
+
maxLevels: n,
|
|
501
|
+
items: F?.items,
|
|
502
|
+
groups: c,
|
|
503
|
+
size: h,
|
|
504
|
+
color: g,
|
|
505
|
+
variant: N,
|
|
506
|
+
a11yMode: t
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
b
|
|
512
|
+
);
|
|
513
|
+
})
|
|
514
|
+
] }) }, D)
|
|
515
|
+
] }, D);
|
|
516
|
+
})
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
);
|
|
520
|
+
return k && z ? /* @__PURE__ */ w(we, { children: [
|
|
521
|
+
z,
|
|
522
|
+
$
|
|
523
|
+
] }) : $;
|
|
524
|
+
}, Hn = (e) => {
|
|
525
|
+
const n = J(null), o = J(null), [t, r] = de(0), {
|
|
526
|
+
search: a,
|
|
527
|
+
items: d,
|
|
528
|
+
groups: u = {},
|
|
529
|
+
size: s,
|
|
530
|
+
color: l,
|
|
531
|
+
variant: p,
|
|
532
|
+
keyboardEvents: c,
|
|
533
|
+
scrollRefStyles: h = {},
|
|
534
|
+
id: v,
|
|
535
|
+
expanded: g,
|
|
536
|
+
a11yMode: N = "menu",
|
|
537
|
+
open: _,
|
|
538
|
+
scrollToTopOnOpen: x = !1,
|
|
539
|
+
autoActivateFirstItem: L = !0,
|
|
540
|
+
announceNoResults: C = !1,
|
|
541
|
+
onActiveItemIdChange: k
|
|
542
|
+
} = e, f = N === "combobox", R = N === "navigation", I = f && v ? `${v}-listbox` : v, H = J(_), [W, y] = de(!1), T = fe(
|
|
543
|
+
() => d.map((b, E) => ({
|
|
544
|
+
...b,
|
|
545
|
+
id: `${v}-item-${E}`
|
|
546
|
+
})),
|
|
547
|
+
[d, v]
|
|
548
|
+
), { menu: M, activeItem: P, setActiveIndex: m, activeIndex: S } = rt({
|
|
549
|
+
items: T,
|
|
550
|
+
groups: u,
|
|
551
|
+
groupByKey: "groupId",
|
|
552
|
+
keyboardEvents: c,
|
|
553
|
+
autoActivateFirstItem: L,
|
|
554
|
+
ref: n
|
|
555
|
+
}), { flatMenu: z, virtualizer: $, scrollMaxHeight: A } = tn({
|
|
556
|
+
menu: M,
|
|
557
|
+
scrollRef: n
|
|
558
|
+
});
|
|
559
|
+
Xe(() => {
|
|
560
|
+
const b = o.current;
|
|
561
|
+
if (!b) return;
|
|
562
|
+
const E = Math.round(b.offsetTop);
|
|
563
|
+
r((B) => B === E ? B : E);
|
|
564
|
+
});
|
|
565
|
+
const D = fe(() => {
|
|
566
|
+
const b = P?.id;
|
|
567
|
+
if (b)
|
|
568
|
+
return z.findIndex((B) => B.type === "item" && B.itemProps?.id === b);
|
|
569
|
+
if (S < 0) return -1;
|
|
570
|
+
let E = -1;
|
|
571
|
+
for (let B = 0; B < z.length; B++)
|
|
572
|
+
if (z[B]?.type === "item" && (E += 1, E === S))
|
|
573
|
+
return B;
|
|
574
|
+
return -1;
|
|
575
|
+
}, [P?.id, S, z]), j = J(null);
|
|
576
|
+
Xe(() => {
|
|
577
|
+
const b = j?.current, E = typeof b == "number" ? D <= b : !1;
|
|
578
|
+
j.current = D;
|
|
579
|
+
const B = E ? D : D + 2;
|
|
580
|
+
if (!E) {
|
|
581
|
+
const le = $.getOffsetForIndex(B, "auto");
|
|
582
|
+
if (!le) return;
|
|
583
|
+
const [Ge, Ke] = le;
|
|
584
|
+
if (Ke === "auto") return;
|
|
585
|
+
$.scrollToOffset(Ge + t + 10, { align: "start" });
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
if (D <= 3) {
|
|
589
|
+
$.scrollToOffset(0);
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
const ne = $.getOffsetForIndex(D - 1, "auto");
|
|
593
|
+
if (!ne) return;
|
|
594
|
+
const [F, se] = ne;
|
|
595
|
+
se !== "auto" && $.scrollToOffset(F + t + 10, { align: "start" });
|
|
596
|
+
}, [D, t, $, j]);
|
|
597
|
+
const K = fe(() => {
|
|
598
|
+
const b = /* @__PURE__ */ new Map();
|
|
599
|
+
let E = 0;
|
|
600
|
+
return z.forEach((B, ne) => {
|
|
601
|
+
B.type === "item" && (E += 1, b.set(ne, E));
|
|
602
|
+
}), { positions: b, total: E };
|
|
603
|
+
}, [z]);
|
|
604
|
+
U(() => {
|
|
605
|
+
k?.(P?.id);
|
|
606
|
+
}, [P?.id, k]), U(() => {
|
|
607
|
+
if (f && C) {
|
|
608
|
+
m(0), y(!0);
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
}, [C, f, m]), U(() => {
|
|
612
|
+
const b = H.current;
|
|
613
|
+
H.current = _, !(!_ || b) && ($.measure(), x && n.current?.scrollTo({ top: 0 }));
|
|
614
|
+
}, [_, x, $]);
|
|
615
|
+
const ve = {
|
|
616
|
+
position: "relative",
|
|
617
|
+
maxHeight: h?.maxHeight || A,
|
|
618
|
+
margin: "-0.5rem",
|
|
619
|
+
padding: "0.5rem 0.5rem 1rem 0.5rem",
|
|
620
|
+
minWidth: h?.minWidth ?? "20rem",
|
|
621
|
+
overflowY: "auto",
|
|
622
|
+
...h
|
|
623
|
+
}, Z = a ? /* @__PURE__ */ i(
|
|
624
|
+
Nt,
|
|
625
|
+
{
|
|
626
|
+
...a,
|
|
627
|
+
combobox: f,
|
|
628
|
+
listId: I,
|
|
629
|
+
"aria-activedescendant": f && W ? P?.id : void 0,
|
|
630
|
+
onNavigate: f ? () => y(!0) : void 0,
|
|
631
|
+
onChange: (b) => {
|
|
632
|
+
y(!1), a.onChange?.(b);
|
|
633
|
+
},
|
|
634
|
+
onFocus: (b) => {
|
|
635
|
+
y(!1), a.onFocus?.(b);
|
|
636
|
+
},
|
|
637
|
+
onInput: (b) => {
|
|
638
|
+
y(!1), a.onInput?.(b);
|
|
639
|
+
},
|
|
640
|
+
onKeyDown: (b) => {
|
|
641
|
+
const E = b.key === "ArrowUp" || b.key === "ArrowDown", B = b.key.length === 1 || b.key === "Backspace" || b.key === "Delete";
|
|
642
|
+
f && !E && B && y(!1), a.onKeyDown?.(b);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
) : null, ee = /* @__PURE__ */ w(
|
|
646
|
+
De,
|
|
647
|
+
{
|
|
648
|
+
ref: n,
|
|
649
|
+
style: ve,
|
|
650
|
+
variant: p,
|
|
651
|
+
color: l,
|
|
652
|
+
expanded: g,
|
|
653
|
+
id: I,
|
|
654
|
+
role: f ? "listbox" : R ? "list" : "menu",
|
|
655
|
+
children: [
|
|
656
|
+
!f && Z,
|
|
657
|
+
/* @__PURE__ */ i(
|
|
658
|
+
St,
|
|
659
|
+
{
|
|
660
|
+
ref: o,
|
|
661
|
+
style: {
|
|
662
|
+
position: "relative",
|
|
663
|
+
height: `${$.getTotalSize()}px`,
|
|
664
|
+
width: "100%"
|
|
665
|
+
},
|
|
666
|
+
children: /* @__PURE__ */ i(De, { style: { width: "100%", minWidth: "100%" }, children: $.getVirtualItems().map((b) => {
|
|
667
|
+
const E = z[b.index];
|
|
668
|
+
if (!E) return null;
|
|
669
|
+
const B = {
|
|
670
|
+
position: "absolute",
|
|
671
|
+
top: 0,
|
|
672
|
+
left: 0,
|
|
673
|
+
width: "100%",
|
|
674
|
+
transform: `translateY(${b.start}px)`
|
|
675
|
+
}, ne = {
|
|
676
|
+
style: B,
|
|
677
|
+
index: b.index,
|
|
678
|
+
"data-index": b.index,
|
|
679
|
+
ref: $.measureElement
|
|
680
|
+
};
|
|
681
|
+
switch (E.type) {
|
|
682
|
+
case "divider":
|
|
683
|
+
return /* @__PURE__ */ i(
|
|
684
|
+
Et,
|
|
685
|
+
{
|
|
686
|
+
...ne,
|
|
687
|
+
style: { ...B, padding: "0.25rem 0" }
|
|
688
|
+
},
|
|
689
|
+
b.key
|
|
690
|
+
);
|
|
691
|
+
case "header":
|
|
692
|
+
return /* @__PURE__ */ i(kt, { ...ne, title: E.title || "", level: 1 }, b.key);
|
|
693
|
+
default: {
|
|
694
|
+
const F = E.itemProps?.role === "checkbox" || E.itemProps?.role === "radio", se = E.itemProps?.role === "radio" ? "menuitemradio" : "menuitemcheckbox", le = R ? void 0 : f ? "option" : F ? se : E.itemProps?.role;
|
|
695
|
+
return /* @__PURE__ */ i(Ot, { ...ne, role: R ? "listitem" : "presentation", children: /* @__PURE__ */ i(
|
|
696
|
+
Tt,
|
|
697
|
+
{
|
|
698
|
+
...E.itemProps || {},
|
|
699
|
+
size: E.itemProps?.size || s,
|
|
700
|
+
color: E.itemProps?.color || l,
|
|
701
|
+
variant: E.itemProps?.variant || p,
|
|
702
|
+
active: E.active,
|
|
703
|
+
role: le,
|
|
704
|
+
a11yMode: N,
|
|
705
|
+
selected: E.itemProps?.selected,
|
|
706
|
+
"aria-posinset": f ? K.positions.get(b.index) : void 0,
|
|
707
|
+
"aria-setsize": f ? K.total : void 0,
|
|
708
|
+
tabIndex: E.itemProps?.disabled || c ? -1 : 0
|
|
709
|
+
}
|
|
710
|
+
) }, b.key);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}) })
|
|
714
|
+
}
|
|
715
|
+
)
|
|
716
|
+
]
|
|
717
|
+
}
|
|
718
|
+
);
|
|
719
|
+
return f && Z ? /* @__PURE__ */ w(we, { children: [
|
|
720
|
+
Z,
|
|
721
|
+
ee
|
|
722
|
+
] }) : ee;
|
|
723
|
+
};
|
|
724
|
+
var We = class extends Event {
|
|
725
|
+
oldState;
|
|
726
|
+
newState;
|
|
727
|
+
constructor(e, { oldState: n = "", newState: o = "", ...t } = {}) {
|
|
728
|
+
super(e, t), this.oldState = String(n || ""), this.newState = String(o || "");
|
|
729
|
+
}
|
|
730
|
+
}, dt = /* @__PURE__ */ new WeakMap();
|
|
731
|
+
function At(e, n, o) {
|
|
732
|
+
dt.set(
|
|
733
|
+
e,
|
|
734
|
+
setTimeout(() => {
|
|
735
|
+
dt.has(e) && e.dispatchEvent(
|
|
736
|
+
new We("toggle", {
|
|
737
|
+
cancelable: !1,
|
|
738
|
+
oldState: n,
|
|
739
|
+
newState: o
|
|
740
|
+
})
|
|
741
|
+
);
|
|
742
|
+
}, 0)
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
var st = globalThis.ShadowRoot || function() {
|
|
746
|
+
}, Fn = globalThis.HTMLDialogElement || function() {
|
|
747
|
+
}, $e = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap();
|
|
748
|
+
function je(e) {
|
|
749
|
+
return Ie.get(e) || "hidden";
|
|
750
|
+
}
|
|
751
|
+
var Be = /* @__PURE__ */ new WeakMap();
|
|
752
|
+
function Ce(e) {
|
|
753
|
+
return [...e].pop();
|
|
754
|
+
}
|
|
755
|
+
function qn(e) {
|
|
756
|
+
const n = e.popoverTargetElement;
|
|
757
|
+
if (!(n instanceof HTMLElement))
|
|
758
|
+
return;
|
|
759
|
+
const o = je(n);
|
|
760
|
+
e.popoverTargetAction === "show" && o === "showing" || e.popoverTargetAction === "hide" && o === "hidden" || (o === "showing" ? Se(n, !0, !0) : me(n, !1) && (Be.set(n, e), nt(n)));
|
|
761
|
+
}
|
|
762
|
+
function me(e, n) {
|
|
763
|
+
return !(e.popover !== "auto" && e.popover !== "manual" && e.popover !== "hint" || !e.isConnected || n && je(e) !== "showing" || !n && je(e) !== "hidden" || e instanceof Fn && e.hasAttribute("open") || document.fullscreenElement === e);
|
|
764
|
+
}
|
|
765
|
+
function ut(e) {
|
|
766
|
+
if (!e) return 0;
|
|
767
|
+
const n = ae.get(document) || /* @__PURE__ */ new Set(), o = Y.get(document) || /* @__PURE__ */ new Set();
|
|
768
|
+
return o.has(e) ? [...o].indexOf(e) + n.size + 1 : n.has(e) ? [...n].indexOf(e) + 1 : 0;
|
|
769
|
+
}
|
|
770
|
+
function Wn(e) {
|
|
771
|
+
const n = Ct(e), o = Gn(e);
|
|
772
|
+
return ut(n) > ut(o) ? n : o;
|
|
773
|
+
}
|
|
774
|
+
function Re(e) {
|
|
775
|
+
let n;
|
|
776
|
+
const o = Y.get(e) || /* @__PURE__ */ new Set(), t = ae.get(e) || /* @__PURE__ */ new Set(), r = o.size > 0 ? o : t.size > 0 ? t : null;
|
|
777
|
+
return r ? (n = Ce(r), n.isConnected ? n : (r.delete(n), Re(e))) : null;
|
|
778
|
+
}
|
|
779
|
+
function pt(e) {
|
|
780
|
+
for (const n of e || [])
|
|
781
|
+
if (!n.isConnected)
|
|
782
|
+
e.delete(n);
|
|
783
|
+
else
|
|
784
|
+
return n;
|
|
785
|
+
return null;
|
|
786
|
+
}
|
|
787
|
+
function Oe(e) {
|
|
788
|
+
return typeof e.getRootNode == "function" ? e.getRootNode() : e.parentNode ? Oe(e.parentNode) : e;
|
|
789
|
+
}
|
|
790
|
+
function Ct(e) {
|
|
791
|
+
for (; e; ) {
|
|
792
|
+
if (e instanceof HTMLElement && e.popover === "auto" && Ie.get(e) === "showing")
|
|
793
|
+
return e;
|
|
794
|
+
if (e = e instanceof Element && e.assignedSlot || e.parentElement || Oe(e), e instanceof st && (e = e.host), e instanceof Document) return;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
function Gn(e) {
|
|
798
|
+
for (; e; ) {
|
|
799
|
+
const n = e.popoverTargetElement;
|
|
800
|
+
if (n instanceof HTMLElement) return n;
|
|
801
|
+
if (e = e.parentElement || Oe(e), e instanceof st && (e = e.host), e instanceof Document) return;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
function ft(e, n) {
|
|
805
|
+
const o = /* @__PURE__ */ new Map();
|
|
806
|
+
let t = 0;
|
|
807
|
+
for (const d of n || [])
|
|
808
|
+
o.set(d, t), t += 1;
|
|
809
|
+
o.set(e, t), t += 1;
|
|
810
|
+
let r = null;
|
|
811
|
+
function a(d) {
|
|
812
|
+
if (!d) return;
|
|
813
|
+
let u = !1, s = null, l = null;
|
|
814
|
+
for (; !u; ) {
|
|
815
|
+
if (s = Ct(d) || null, s === null || !o.has(s)) return;
|
|
816
|
+
(e.popover === "hint" || s.popover === "auto") && (u = !0), u || (d = s.parentElement);
|
|
817
|
+
}
|
|
818
|
+
l = o.get(s), (r === null || o.get(r) < l) && (r = s);
|
|
819
|
+
}
|
|
820
|
+
return a(e.parentElement || Oe(e)), r;
|
|
821
|
+
}
|
|
822
|
+
function Kn(e) {
|
|
823
|
+
return e.hidden || e instanceof st || (e instanceof HTMLButtonElement || e instanceof HTMLInputElement || e instanceof HTMLSelectElement || e instanceof HTMLTextAreaElement || e instanceof HTMLOptGroupElement || e instanceof HTMLOptionElement || e instanceof HTMLFieldSetElement) && e.disabled || e instanceof HTMLInputElement && e.type === "hidden" || e instanceof HTMLAnchorElement && e.href === "" ? !1 : typeof e.tabIndex == "number" && e.tabIndex !== -1;
|
|
824
|
+
}
|
|
825
|
+
function Vn(e) {
|
|
826
|
+
if (e.shadowRoot && e.shadowRoot.delegatesFocus !== !0)
|
|
827
|
+
return null;
|
|
828
|
+
let n = e;
|
|
829
|
+
n.shadowRoot && (n = n.shadowRoot);
|
|
830
|
+
let o = n.querySelector("[autofocus]");
|
|
831
|
+
if (o)
|
|
832
|
+
return o;
|
|
833
|
+
{
|
|
834
|
+
const a = n.querySelectorAll("slot");
|
|
835
|
+
for (const d of a) {
|
|
836
|
+
const u = d.assignedElements({ flatten: !0 });
|
|
837
|
+
for (const s of u) {
|
|
838
|
+
if (s.hasAttribute("autofocus"))
|
|
839
|
+
return s;
|
|
840
|
+
if (o = s.querySelector("[autofocus]"), o)
|
|
841
|
+
return o;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
const t = e.ownerDocument.createTreeWalker(
|
|
846
|
+
n,
|
|
847
|
+
NodeFilter.SHOW_ELEMENT
|
|
848
|
+
);
|
|
849
|
+
let r = t.currentNode;
|
|
850
|
+
for (; r; ) {
|
|
851
|
+
if (Kn(r))
|
|
852
|
+
return r;
|
|
853
|
+
r = t.nextNode();
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
function Un(e) {
|
|
857
|
+
var n;
|
|
858
|
+
(n = Vn(e)) == null || n.focus();
|
|
859
|
+
}
|
|
860
|
+
var He = /* @__PURE__ */ new WeakMap();
|
|
861
|
+
function nt(e) {
|
|
862
|
+
if (!me(e, !1))
|
|
863
|
+
return;
|
|
864
|
+
const n = e.ownerDocument;
|
|
865
|
+
if (!e.dispatchEvent(
|
|
866
|
+
new We("beforetoggle", {
|
|
867
|
+
cancelable: !0,
|
|
868
|
+
oldState: "closed",
|
|
869
|
+
newState: "open"
|
|
870
|
+
})
|
|
871
|
+
) || !me(e, !1))
|
|
872
|
+
return;
|
|
873
|
+
let o = !1;
|
|
874
|
+
const t = e.popover;
|
|
875
|
+
let r = null;
|
|
876
|
+
const a = ft(
|
|
877
|
+
e,
|
|
878
|
+
ae.get(n) || /* @__PURE__ */ new Set()
|
|
879
|
+
), d = ft(
|
|
880
|
+
e,
|
|
881
|
+
Y.get(n) || /* @__PURE__ */ new Set()
|
|
882
|
+
);
|
|
883
|
+
if (t === "auto" && (ot(
|
|
884
|
+
Y.get(n) || /* @__PURE__ */ new Set(),
|
|
885
|
+
o,
|
|
886
|
+
!0
|
|
887
|
+
), he(a || n, o, !0), r = "auto"), t === "hint" && (d ? (he(d, o, !0), r = "hint") : (ot(
|
|
888
|
+
Y.get(n) || /* @__PURE__ */ new Set(),
|
|
889
|
+
o,
|
|
890
|
+
!0
|
|
891
|
+
), a ? (he(a, o, !0), r = "auto") : r = "hint")), t === "auto" || t === "hint") {
|
|
892
|
+
if (t !== e.popover || !me(e, !1))
|
|
893
|
+
return;
|
|
894
|
+
Re(n) || (o = !0), r === "auto" ? (ae.has(n) || ae.set(n, /* @__PURE__ */ new Set()), ae.get(n).add(e)) : r === "hint" && (Y.has(n) || Y.set(n, /* @__PURE__ */ new Set()), Y.get(n).add(e));
|
|
895
|
+
}
|
|
896
|
+
He.delete(e);
|
|
897
|
+
const u = n.activeElement;
|
|
898
|
+
e.classList.add(":popover-open"), Ie.set(e, "showing"), $e.has(n) || $e.set(n, /* @__PURE__ */ new Set()), $e.get(n).add(e), Rt(Be.get(e), !0), Un(e), o && u && e.popover === "auto" && He.set(e, u), At(e, "closed", "open");
|
|
899
|
+
}
|
|
900
|
+
function Se(e, n = !1, o = !1) {
|
|
901
|
+
var t, r;
|
|
902
|
+
if (!me(e, !0))
|
|
903
|
+
return;
|
|
904
|
+
const a = e.ownerDocument;
|
|
905
|
+
if (["auto", "hint"].includes(e.popover) && (he(e, n, o), !me(e, !0)))
|
|
906
|
+
return;
|
|
907
|
+
const d = ae.get(a) || /* @__PURE__ */ new Set(), u = d.has(e) && Ce(d) === e;
|
|
908
|
+
if (Rt(Be.get(e), !1), Be.delete(e), o && (e.dispatchEvent(
|
|
909
|
+
new We("beforetoggle", {
|
|
910
|
+
oldState: "open",
|
|
911
|
+
newState: "closed"
|
|
912
|
+
})
|
|
913
|
+
), u && Ce(d) !== e && he(e, n, o), !me(e, !0)))
|
|
914
|
+
return;
|
|
915
|
+
(t = $e.get(a)) == null || t.delete(e), d.delete(e), (r = Y.get(a)) == null || r.delete(e), e.classList.remove(":popover-open"), Ie.set(e, "hidden"), o && At(e, "open", "closed");
|
|
916
|
+
const s = He.get(e);
|
|
917
|
+
s && (He.delete(e), n && s.focus());
|
|
918
|
+
}
|
|
919
|
+
function Yn(e, n = !1, o = !1) {
|
|
920
|
+
let t = Re(e);
|
|
921
|
+
for (; t; )
|
|
922
|
+
Se(t, n, o), t = Re(e);
|
|
923
|
+
}
|
|
924
|
+
function ot(e, n = !1, o = !1) {
|
|
925
|
+
let t = pt(e);
|
|
926
|
+
for (; t; )
|
|
927
|
+
Se(t, n, o), t = pt(e);
|
|
928
|
+
}
|
|
929
|
+
function mt(e, n, o, t) {
|
|
930
|
+
let r = !1, a = !1;
|
|
931
|
+
for (; r || !a; ) {
|
|
932
|
+
a = !0;
|
|
933
|
+
let d = null, u = !1;
|
|
934
|
+
for (const s of n)
|
|
935
|
+
if (s === e)
|
|
936
|
+
u = !0;
|
|
937
|
+
else if (u) {
|
|
938
|
+
d = s;
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
if (!d) return;
|
|
942
|
+
for (; je(d) === "showing" && n.size; )
|
|
943
|
+
Se(Ce(n), o, t);
|
|
944
|
+
n.has(e) && Ce(n) !== e && (r = !0), r && (t = !1);
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
function he(e, n, o) {
|
|
948
|
+
var t, r;
|
|
949
|
+
const a = e.ownerDocument || e;
|
|
950
|
+
if (e instanceof Document)
|
|
951
|
+
return Yn(a, n, o);
|
|
952
|
+
if ((t = Y.get(a)) != null && t.has(e)) {
|
|
953
|
+
mt(
|
|
954
|
+
e,
|
|
955
|
+
Y.get(a),
|
|
956
|
+
n,
|
|
957
|
+
o
|
|
958
|
+
);
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
ot(
|
|
962
|
+
Y.get(a) || /* @__PURE__ */ new Set(),
|
|
963
|
+
n,
|
|
964
|
+
o
|
|
965
|
+
), (r = ae.get(a)) != null && r.has(e) && mt(
|
|
966
|
+
e,
|
|
967
|
+
ae.get(a),
|
|
968
|
+
n,
|
|
969
|
+
o
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
var Ue = /* @__PURE__ */ new WeakMap();
|
|
973
|
+
function ht(e) {
|
|
974
|
+
if (!e.isTrusted) return;
|
|
975
|
+
const n = e.composedPath()[0];
|
|
976
|
+
if (!n) return;
|
|
977
|
+
const o = n.ownerDocument;
|
|
978
|
+
if (!Re(o)) return;
|
|
979
|
+
const r = Wn(n);
|
|
980
|
+
if (r && e.type === "pointerdown")
|
|
981
|
+
Ue.set(o, r);
|
|
982
|
+
else if (e.type === "pointerup") {
|
|
983
|
+
const a = Ue.get(o) === r;
|
|
984
|
+
Ue.delete(o), a && he(r || o, !1, !0);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
var Ye = /* @__PURE__ */ new WeakMap();
|
|
988
|
+
function Rt(e, n = !1) {
|
|
989
|
+
if (!e) return;
|
|
990
|
+
Ye.has(e) || Ye.set(e, e.getAttribute("aria-expanded"));
|
|
991
|
+
const o = e.popoverTargetElement;
|
|
992
|
+
if (o instanceof HTMLElement && o.popover === "auto")
|
|
993
|
+
e.setAttribute("aria-expanded", String(n));
|
|
994
|
+
else {
|
|
995
|
+
const t = Ye.get(e);
|
|
996
|
+
t ? e.setAttribute("aria-expanded", t) : e.removeAttribute("aria-expanded");
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
var vt = globalThis.ShadowRoot || function() {
|
|
1000
|
+
};
|
|
1001
|
+
function Qn() {
|
|
1002
|
+
return typeof HTMLElement < "u" && typeof HTMLElement.prototype == "object" && "popover" in HTMLElement.prototype;
|
|
1003
|
+
}
|
|
1004
|
+
function ue(e, n, o) {
|
|
1005
|
+
const t = e[n];
|
|
1006
|
+
Object.defineProperty(e, n, {
|
|
1007
|
+
value(r) {
|
|
1008
|
+
return t.call(this, o(r));
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
var Xn = /(^|[^\\]):popover-open\b/g;
|
|
1013
|
+
function Jn() {
|
|
1014
|
+
return typeof globalThis.CSSLayerBlockRule == "function";
|
|
1015
|
+
}
|
|
1016
|
+
function Zn() {
|
|
1017
|
+
const e = Jn();
|
|
1018
|
+
return `
|
|
1019
|
+
${e ? "@layer popover-polyfill {" : ""}
|
|
1020
|
+
:where([popover]) {
|
|
1021
|
+
position: fixed;
|
|
1022
|
+
z-index: 2147483647;
|
|
1023
|
+
inset: 0;
|
|
1024
|
+
padding: 0.25em;
|
|
1025
|
+
width: fit-content;
|
|
1026
|
+
height: fit-content;
|
|
1027
|
+
border-width: initial;
|
|
1028
|
+
border-color: initial;
|
|
1029
|
+
border-image: initial;
|
|
1030
|
+
border-style: solid;
|
|
1031
|
+
background-color: canvas;
|
|
1032
|
+
color: canvastext;
|
|
1033
|
+
overflow: auto;
|
|
1034
|
+
margin: auto;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
:where([popover]:not(.\\:popover-open)) {
|
|
1038
|
+
display: none;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
:where(dialog[popover].\\:popover-open) {
|
|
1042
|
+
display: block;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
:where(dialog[popover][open]) {
|
|
1046
|
+
display: revert;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
:where([anchor].\\:popover-open) {
|
|
1050
|
+
inset: auto;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
:where([anchor]:popover-open) {
|
|
1054
|
+
inset: auto;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
@supports not (background-color: canvas) {
|
|
1058
|
+
:where([popover]) {
|
|
1059
|
+
background-color: white;
|
|
1060
|
+
color: black;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
@supports (width: -moz-fit-content) {
|
|
1065
|
+
:where([popover]) {
|
|
1066
|
+
width: -moz-fit-content;
|
|
1067
|
+
height: -moz-fit-content;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
@supports not (inset: 0) {
|
|
1072
|
+
:where([popover]) {
|
|
1073
|
+
top: 0;
|
|
1074
|
+
left: 0;
|
|
1075
|
+
right: 0;
|
|
1076
|
+
bottom: 0;
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
${e ? "}" : ""}
|
|
1080
|
+
`;
|
|
1081
|
+
}
|
|
1082
|
+
var ge = null;
|
|
1083
|
+
function Qe(e) {
|
|
1084
|
+
const n = Zn();
|
|
1085
|
+
if (ge === null)
|
|
1086
|
+
try {
|
|
1087
|
+
ge = new CSSStyleSheet(), ge.replaceSync(n);
|
|
1088
|
+
} catch {
|
|
1089
|
+
ge = !1;
|
|
1090
|
+
}
|
|
1091
|
+
if (ge === !1) {
|
|
1092
|
+
const o = document.createElement("style");
|
|
1093
|
+
o.textContent = n, e instanceof Document ? e.head.prepend(o) : e.prepend(o);
|
|
1094
|
+
} else
|
|
1095
|
+
e.adoptedStyleSheets = [ge, ...e.adoptedStyleSheets];
|
|
1096
|
+
}
|
|
1097
|
+
function eo() {
|
|
1098
|
+
if (typeof window > "u") return;
|
|
1099
|
+
window.ToggleEvent = window.ToggleEvent || We;
|
|
1100
|
+
function e(s) {
|
|
1101
|
+
return s?.includes(":popover-open") && (s = s.replace(
|
|
1102
|
+
Xn,
|
|
1103
|
+
"$1.\\:popover-open"
|
|
1104
|
+
)), s;
|
|
1105
|
+
}
|
|
1106
|
+
ue(Document.prototype, "querySelector", e), ue(Document.prototype, "querySelectorAll", e), ue(Element.prototype, "querySelector", e), ue(Element.prototype, "querySelectorAll", e), ue(Element.prototype, "matches", e), ue(Element.prototype, "closest", e), ue(
|
|
1107
|
+
DocumentFragment.prototype,
|
|
1108
|
+
"querySelectorAll",
|
|
1109
|
+
e
|
|
1110
|
+
), Object.defineProperties(HTMLElement.prototype, {
|
|
1111
|
+
popover: {
|
|
1112
|
+
enumerable: !0,
|
|
1113
|
+
configurable: !0,
|
|
1114
|
+
get() {
|
|
1115
|
+
if (!this.hasAttribute("popover")) return null;
|
|
1116
|
+
const s = (this.getAttribute("popover") || "").toLowerCase();
|
|
1117
|
+
return s === "" || s == "auto" ? "auto" : s == "hint" ? "hint" : "manual";
|
|
1118
|
+
},
|
|
1119
|
+
set(s) {
|
|
1120
|
+
s === null ? this.removeAttribute("popover") : this.setAttribute("popover", s);
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
showPopover: {
|
|
1124
|
+
enumerable: !0,
|
|
1125
|
+
configurable: !0,
|
|
1126
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1127
|
+
value(s = {}) {
|
|
1128
|
+
nt(this);
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
hidePopover: {
|
|
1132
|
+
enumerable: !0,
|
|
1133
|
+
configurable: !0,
|
|
1134
|
+
value() {
|
|
1135
|
+
Se(this, !0, !0);
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
togglePopover: {
|
|
1139
|
+
enumerable: !0,
|
|
1140
|
+
configurable: !0,
|
|
1141
|
+
value(s = {}) {
|
|
1142
|
+
return typeof s == "boolean" && (s = { force: s }), Ie.get(this) === "showing" && s.force === void 0 || s.force === !1 ? Se(this, !0, !0) : (s.force === void 0 || s.force === !0) && nt(this), Ie.get(this) === "showing";
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
const n = Element.prototype.attachShadow;
|
|
1147
|
+
n && Object.defineProperties(Element.prototype, {
|
|
1148
|
+
attachShadow: {
|
|
1149
|
+
enumerable: !0,
|
|
1150
|
+
configurable: !0,
|
|
1151
|
+
writable: !0,
|
|
1152
|
+
value(s) {
|
|
1153
|
+
const l = n.call(this, s);
|
|
1154
|
+
return Qe(l), l;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
const o = HTMLElement.prototype.attachInternals;
|
|
1159
|
+
o && Object.defineProperties(HTMLElement.prototype, {
|
|
1160
|
+
attachInternals: {
|
|
1161
|
+
enumerable: !0,
|
|
1162
|
+
configurable: !0,
|
|
1163
|
+
writable: !0,
|
|
1164
|
+
value() {
|
|
1165
|
+
const s = o.call(this);
|
|
1166
|
+
return s.shadowRoot && Qe(s.shadowRoot), s;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
const t = /* @__PURE__ */ new WeakMap();
|
|
1171
|
+
function r(s) {
|
|
1172
|
+
Object.defineProperties(s.prototype, {
|
|
1173
|
+
popoverTargetElement: {
|
|
1174
|
+
enumerable: !0,
|
|
1175
|
+
configurable: !0,
|
|
1176
|
+
set(l) {
|
|
1177
|
+
if (l === null)
|
|
1178
|
+
this.removeAttribute("popovertarget"), t.delete(this);
|
|
1179
|
+
else if (l instanceof Element)
|
|
1180
|
+
this.setAttribute("popovertarget", ""), t.set(this, l);
|
|
1181
|
+
else
|
|
1182
|
+
throw new TypeError(
|
|
1183
|
+
"popoverTargetElement must be an element or null"
|
|
1184
|
+
);
|
|
1185
|
+
},
|
|
1186
|
+
get() {
|
|
1187
|
+
if (this.localName !== "button" && this.localName !== "input" || this.localName === "input" && this.type !== "reset" && this.type !== "image" && this.type !== "button" || this.disabled || this.form && this.type === "submit")
|
|
1188
|
+
return null;
|
|
1189
|
+
const l = t.get(this);
|
|
1190
|
+
if (l && l.isConnected)
|
|
1191
|
+
return l;
|
|
1192
|
+
if (l && !l.isConnected)
|
|
1193
|
+
return t.delete(this), null;
|
|
1194
|
+
const p = Oe(this), c = this.getAttribute("popovertarget");
|
|
1195
|
+
return (p instanceof Document || p instanceof vt) && c && p.getElementById(c) || null;
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
popoverTargetAction: {
|
|
1199
|
+
enumerable: !0,
|
|
1200
|
+
configurable: !0,
|
|
1201
|
+
get() {
|
|
1202
|
+
const l = (this.getAttribute("popovertargetaction") || "").toLowerCase();
|
|
1203
|
+
return l === "show" || l === "hide" ? l : "toggle";
|
|
1204
|
+
},
|
|
1205
|
+
set(l) {
|
|
1206
|
+
this.setAttribute("popovertargetaction", l);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
r(HTMLButtonElement), r(HTMLInputElement);
|
|
1212
|
+
const a = (s) => {
|
|
1213
|
+
if (s.defaultPrevented)
|
|
1214
|
+
return;
|
|
1215
|
+
const l = s.composedPath(), p = l[0];
|
|
1216
|
+
if (!(p instanceof Element) || p?.shadowRoot)
|
|
1217
|
+
return;
|
|
1218
|
+
const c = Oe(p);
|
|
1219
|
+
if (!(c instanceof vt || c instanceof Document))
|
|
1220
|
+
return;
|
|
1221
|
+
const h = l.find(
|
|
1222
|
+
(v) => {
|
|
1223
|
+
var g;
|
|
1224
|
+
return (g = v.matches) == null ? void 0 : g.call(v, "[popovertargetaction],[popovertarget]");
|
|
1225
|
+
}
|
|
1226
|
+
);
|
|
1227
|
+
if (h) {
|
|
1228
|
+
qn(h), s.preventDefault();
|
|
1229
|
+
return;
|
|
1230
|
+
}
|
|
1231
|
+
}, d = (s) => {
|
|
1232
|
+
const l = s.key, p = s.target;
|
|
1233
|
+
!s.defaultPrevented && p && (l === "Escape" || l === "Esc") && he(p.ownerDocument, !0, !0);
|
|
1234
|
+
};
|
|
1235
|
+
((s) => {
|
|
1236
|
+
s.addEventListener("click", a), s.addEventListener("keydown", d), s.addEventListener("pointerdown", ht), s.addEventListener("pointerup", ht);
|
|
1237
|
+
})(document), Qe(document);
|
|
1238
|
+
}
|
|
1239
|
+
const to = "_item_18ro3_1", no = "_itemWrapper_18ro3_24", oo = "_icon_18ro3_29", ro = "_content_18ro3_39", ao = "_action_18ro3_47", Pe = {
|
|
1240
|
+
item: to,
|
|
1241
|
+
itemWrapper: no,
|
|
1242
|
+
icon: oo,
|
|
1243
|
+
content: ro,
|
|
1244
|
+
action: ao
|
|
1245
|
+
};
|
|
1246
|
+
var io = /* @__PURE__ */ ((e) => (e.company = "company", e.success = "success", e.warning = "warning", e.danger = "danger", e.info = "info", e))(io || {});
|
|
1247
|
+
const so = ({
|
|
1248
|
+
as: e,
|
|
1249
|
+
message: n,
|
|
1250
|
+
className: o,
|
|
1251
|
+
color: t,
|
|
1252
|
+
icon: r = vn,
|
|
1253
|
+
iconAltText: a = "Bell icon",
|
|
1254
|
+
dismissable: d = !0,
|
|
1255
|
+
onDismiss: u,
|
|
1256
|
+
...s
|
|
1257
|
+
}) => {
|
|
1258
|
+
const l = e || "div";
|
|
1259
|
+
return U(() => {
|
|
1260
|
+
if (!n)
|
|
1261
|
+
return;
|
|
1262
|
+
const p = document.querySelector("dialog[open]");
|
|
1263
|
+
if (!p)
|
|
1264
|
+
return;
|
|
1265
|
+
let c = p.querySelector("[data-snackbar-live]");
|
|
1266
|
+
c || (c = document.createElement("div"), c.setAttribute("data-snackbar-live", ""), c.setAttribute("aria-live", "polite"), c.setAttribute("aria-atomic", "true"), Object.assign(c.style, {
|
|
1267
|
+
position: "absolute",
|
|
1268
|
+
width: "1px",
|
|
1269
|
+
height: "1px",
|
|
1270
|
+
padding: "0",
|
|
1271
|
+
overflow: "hidden",
|
|
1272
|
+
clip: "rect(0,0,0,0)",
|
|
1273
|
+
whiteSpace: "nowrap",
|
|
1274
|
+
border: "0"
|
|
1275
|
+
}), p.appendChild(c)), c.textContent = "", requestAnimationFrame(() => {
|
|
1276
|
+
c.textContent = n;
|
|
1277
|
+
});
|
|
1278
|
+
}, [n]), /* @__PURE__ */ i("span", { className: Pe.itemWrapper, children: /* @__PURE__ */ w(l, { className: G(Pe.item, o), "data-color": t, role: "alert", ...s, children: [
|
|
1279
|
+
/* @__PURE__ */ i(ce, { svgElement: r, className: Pe.icon, "aria-hidden": "true" }),
|
|
1280
|
+
/* @__PURE__ */ i("div", { className: Pe.content, children: n }),
|
|
1281
|
+
d && /* @__PURE__ */ i("div", { className: Pe.action, children: /* @__PURE__ */ i(_e, { variant: "solid", onClick: u, "aria-label": "close", children: /* @__PURE__ */ i(qe, { style: { fontSize: "1.5em" } }) }) })
|
|
1282
|
+
] }) });
|
|
1283
|
+
}, lo = () => typeof window < "u" && typeof document < "u";
|
|
1284
|
+
lo() && !Qn() && eo();
|
|
1285
|
+
const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
1286
|
+
const { storedMessages: n, open: o, closeSnackbarItem: t } = Ut(), r = J(null);
|
|
1287
|
+
U(() => {
|
|
1288
|
+
const u = r.current;
|
|
1289
|
+
u && (o ? u.showPopover() : u.matches(":popover-open") && u.hidePopover());
|
|
1290
|
+
}, [o]);
|
|
1291
|
+
const a = n || [], d = a.length - 1;
|
|
1292
|
+
return /* @__PURE__ */ i(Vt, { ref: r, className: e, children: a.map((u, s) => {
|
|
1293
|
+
const l = d - s, p = Math.max(uo, 1 - l * co);
|
|
1294
|
+
return /* @__PURE__ */ i(
|
|
1295
|
+
so,
|
|
1296
|
+
{
|
|
1297
|
+
onDismiss: () => t(u.id),
|
|
1298
|
+
dismissable: u.dismissable,
|
|
1299
|
+
style: { opacity: p },
|
|
1300
|
+
...u
|
|
1301
|
+
},
|
|
1302
|
+
u.id
|
|
1303
|
+
);
|
|
1304
|
+
}) });
|
|
1305
|
+
}, po = {
|
|
1306
|
+
currentId: "",
|
|
1307
|
+
previousId: "",
|
|
1308
|
+
debug: !1,
|
|
1309
|
+
setCurrentId: () => {
|
|
1310
|
+
console.warn("setCurrentId called outside of RootProvider context");
|
|
1311
|
+
},
|
|
1312
|
+
setPreviousId: () => {
|
|
1313
|
+
console.warn("setPreviousId called outside of RootProvider context");
|
|
1314
|
+
},
|
|
1315
|
+
languageCode: "nb"
|
|
1316
|
+
}, zt = Ht(po), ua = ({ children: e, initialValue: n, debug: o, languageCode: t }) => {
|
|
1317
|
+
const [r, a] = de(n?.currentId || ""), [d, u] = de(n?.previousId || "");
|
|
1318
|
+
return /* @__PURE__ */ i(
|
|
1319
|
+
zt.Provider,
|
|
1320
|
+
{
|
|
1321
|
+
value: {
|
|
1322
|
+
currentId: r,
|
|
1323
|
+
setCurrentId: a,
|
|
1324
|
+
setPreviousId: u,
|
|
1325
|
+
previousId: d,
|
|
1326
|
+
debug: o,
|
|
1327
|
+
languageCode: t
|
|
1328
|
+
},
|
|
1329
|
+
children: /* @__PURE__ */ i(Yt, { children: e })
|
|
1330
|
+
}
|
|
1331
|
+
);
|
|
1332
|
+
}, fo = () => {
|
|
1333
|
+
const e = Ft(zt);
|
|
1334
|
+
if (!e)
|
|
1335
|
+
throw new Error("useRootContext must be used within a RootProvider.");
|
|
1336
|
+
const { currentId: n, setCurrentId: o, debug: t, setPreviousId: r, previousId: a, languageCode: d } = e, u = (c) => {
|
|
1337
|
+
n && r(n), o(c);
|
|
1338
|
+
}, s = (c) => {
|
|
1339
|
+
t && console.debug(`useRootContext: toggleId called with value: ${c}`), u(n === c ? "" : c);
|
|
1340
|
+
}, l = () => {
|
|
1341
|
+
t && console.debug("useRootContext: closeAll called"), u("");
|
|
1342
|
+
};
|
|
1343
|
+
return Wt(l), {
|
|
1344
|
+
currentId: n,
|
|
1345
|
+
previousId: a,
|
|
1346
|
+
toggleId: s,
|
|
1347
|
+
closeAll: l,
|
|
1348
|
+
openId: (c) => {
|
|
1349
|
+
t && console.debug(`useRootContext: openId called with value: ${c}`), u(c);
|
|
1350
|
+
},
|
|
1351
|
+
languageCode: d
|
|
1352
|
+
};
|
|
1353
|
+
}, mo = (e) => {
|
|
1354
|
+
switch (e) {
|
|
1355
|
+
case "nn":
|
|
1356
|
+
return {
|
|
1357
|
+
placeholder: "Søk ...",
|
|
1358
|
+
hits: (n) => `${n} treff`,
|
|
1359
|
+
selected: (n) => `${n} valt`,
|
|
1360
|
+
noResults: "Ingen treff"
|
|
1361
|
+
};
|
|
1362
|
+
case "en":
|
|
1363
|
+
return {
|
|
1364
|
+
placeholder: "Search ...",
|
|
1365
|
+
hits: (n) => `${n} hit${n === 1 ? "" : "s"}`,
|
|
1366
|
+
selected: (n) => `${n} selected`,
|
|
1367
|
+
noResults: "No results"
|
|
1368
|
+
};
|
|
1369
|
+
default:
|
|
1370
|
+
return {
|
|
1371
|
+
placeholder: "Søk ...",
|
|
1372
|
+
hits: (n) => `${n} treff`,
|
|
1373
|
+
selected: (n) => `${n} valgt`,
|
|
1374
|
+
noResults: "Ingen treff"
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
}, ho = (e) => {
|
|
1378
|
+
const n = /* @__PURE__ */ new Set(), o = [];
|
|
1379
|
+
for (const t of e) {
|
|
1380
|
+
const r = t.id;
|
|
1381
|
+
if (!r) {
|
|
1382
|
+
o.push(t);
|
|
1383
|
+
continue;
|
|
1384
|
+
}
|
|
1385
|
+
n.has(r) || (n.add(r), o.push(t));
|
|
1386
|
+
}
|
|
1387
|
+
return o;
|
|
1388
|
+
}, vo = ({
|
|
1389
|
+
placeholder: e,
|
|
1390
|
+
name: n,
|
|
1391
|
+
onChange: o,
|
|
1392
|
+
onClear: t,
|
|
1393
|
+
clearButtonAltText: r,
|
|
1394
|
+
items: a = [],
|
|
1395
|
+
groups: d = {}
|
|
1396
|
+
}) => {
|
|
1397
|
+
const { languageCode: u } = fo(), s = q.useMemo(() => mo(u), [u]), [l, p] = q.useState(""), c = q.useCallback(
|
|
1398
|
+
(m) => {
|
|
1399
|
+
p(m.target.value), o?.(m);
|
|
1400
|
+
},
|
|
1401
|
+
[o]
|
|
1402
|
+
), h = q.useCallback(() => {
|
|
1403
|
+
p(""), t?.();
|
|
1404
|
+
}, [t]), v = q.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), g = v.length > 0, N = q.useMemo(() => v.toLowerCase(), [v]), _ = q.useMemo(() => v ? v.split(" ") : [], [v]), x = q.useMemo(
|
|
1405
|
+
() => ({
|
|
1406
|
+
placeholder: e ?? s.placeholder,
|
|
1407
|
+
name: n ?? "search",
|
|
1408
|
+
value: l,
|
|
1409
|
+
onChange: c,
|
|
1410
|
+
onClear: h,
|
|
1411
|
+
clearButtonAltText: r
|
|
1412
|
+
}),
|
|
1413
|
+
[e, s.placeholder, n, l, c, h, r]
|
|
1414
|
+
), L = q.useMemo(
|
|
1415
|
+
() => a.map((m) => {
|
|
1416
|
+
const S = m?.searchWords?.length ? m.searchWords : [m?.title, m?.description].filter(Boolean);
|
|
1417
|
+
return {
|
|
1418
|
+
...m,
|
|
1419
|
+
searchWords: S ?? []
|
|
1420
|
+
};
|
|
1421
|
+
}),
|
|
1422
|
+
[a]
|
|
1423
|
+
), C = q.useMemo(
|
|
1424
|
+
() => [
|
|
1425
|
+
{
|
|
1426
|
+
id: "emptySearch",
|
|
1427
|
+
"aria-disabled": !0,
|
|
1428
|
+
title: s.noResults,
|
|
1429
|
+
groupId: "emptySearch",
|
|
1430
|
+
icon: nn,
|
|
1431
|
+
size: "sm",
|
|
1432
|
+
as: "div"
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
[s.noResults]
|
|
1436
|
+
), k = q.useMemo(() => {
|
|
1437
|
+
const m = a.filter((S) => S.groupId === "emptySearch").map((S) => ({ ...S, hidden: !1 }));
|
|
1438
|
+
return m.length ? m : C;
|
|
1439
|
+
}, [a, C]), { selectedItems: f, results: R } = q.useMemo(() => {
|
|
1440
|
+
if (!g) return { selectedItems: [], results: [] };
|
|
1441
|
+
const m = [], S = [];
|
|
1442
|
+
for (const z of L)
|
|
1443
|
+
z.checked === !0 && m.push({ ...z, groupId: "selected" }), (z.searchWords ?? []).some((D) => String(D).toLowerCase().includes(N)) && S.push({
|
|
1444
|
+
...z,
|
|
1445
|
+
groupId: "search",
|
|
1446
|
+
highlightWords: _
|
|
1447
|
+
});
|
|
1448
|
+
return { selectedItems: m, results: S };
|
|
1449
|
+
}, [g, L, N, _]), I = R.length, H = f.length, W = q.useMemo(
|
|
1450
|
+
() => ({
|
|
1451
|
+
search: {
|
|
1452
|
+
hidden: !0,
|
|
1453
|
+
title: s.hits(I)
|
|
1454
|
+
},
|
|
1455
|
+
selected: {
|
|
1456
|
+
hidden: !0,
|
|
1457
|
+
title: s.selected(H)
|
|
1458
|
+
},
|
|
1459
|
+
emptySearch: {
|
|
1460
|
+
hidden: !0,
|
|
1461
|
+
title: s.noResults
|
|
1462
|
+
},
|
|
1463
|
+
...d
|
|
1464
|
+
}),
|
|
1465
|
+
[s, I, H, d]
|
|
1466
|
+
), y = q.useMemo(
|
|
1467
|
+
() => ({
|
|
1468
|
+
...W,
|
|
1469
|
+
search: {
|
|
1470
|
+
hidden: !g,
|
|
1471
|
+
title: s.hits(I)
|
|
1472
|
+
},
|
|
1473
|
+
selected: {
|
|
1474
|
+
hidden: H === 0,
|
|
1475
|
+
title: s.selected(H)
|
|
1476
|
+
},
|
|
1477
|
+
emptySearch: {
|
|
1478
|
+
hidden: g && (I > 0 || H > 0),
|
|
1479
|
+
title: s.noResults
|
|
1480
|
+
}
|
|
1481
|
+
}),
|
|
1482
|
+
[W, g, s, I, H]
|
|
1483
|
+
), T = q.useMemo(() => g ? ho([...R, ...f]) : [], [g, R, f]), M = q.useMemo(() => [...k || [], ...f || []], [k, f]), P = q.useMemo(() => g ? I ? T : M : a, [g, a, I, T, M]);
|
|
1484
|
+
return {
|
|
1485
|
+
search: x,
|
|
1486
|
+
results: R,
|
|
1487
|
+
resultCount: I,
|
|
1488
|
+
hasQuery: g,
|
|
1489
|
+
items: P,
|
|
1490
|
+
groups: y
|
|
1491
|
+
};
|
|
1492
|
+
}, Lt = ({
|
|
1493
|
+
searchable: e,
|
|
1494
|
+
search: n,
|
|
1495
|
+
items: o = [],
|
|
1496
|
+
groups: t = {},
|
|
1497
|
+
variant: r = "default",
|
|
1498
|
+
size: a,
|
|
1499
|
+
level: d = 0,
|
|
1500
|
+
maxLevels: u = 3,
|
|
1501
|
+
virtualized: s = !1,
|
|
1502
|
+
keyboardEvents: l = !1,
|
|
1503
|
+
scrollRefStyles: p = {},
|
|
1504
|
+
onActiveItemIdChange: c,
|
|
1505
|
+
a11yMode: h = "menu",
|
|
1506
|
+
open: v,
|
|
1507
|
+
scrollToTopOnOpen: g,
|
|
1508
|
+
autoFocusList: N,
|
|
1509
|
+
id: _
|
|
1510
|
+
}) => {
|
|
1511
|
+
const x = vo({ ...n, items: o, groups: t }), L = e ? { label: n?.label, hideLabel: n?.hideLabel, ...x.search } : n, C = e && x.hasQuery && x.resultCount === 0, k = e ? x.items : o, f = e ? { ...t, ...x.groups } : t, R = h !== "combobox";
|
|
1512
|
+
return s ? /* @__PURE__ */ i(
|
|
1513
|
+
Hn,
|
|
1514
|
+
{
|
|
1515
|
+
id: _,
|
|
1516
|
+
search: L,
|
|
1517
|
+
announceNoResults: C,
|
|
1518
|
+
items: k,
|
|
1519
|
+
groups: f,
|
|
1520
|
+
variant: r,
|
|
1521
|
+
size: a,
|
|
1522
|
+
level: d,
|
|
1523
|
+
maxLevels: u,
|
|
1524
|
+
keyboardEvents: l,
|
|
1525
|
+
scrollRefStyles: p,
|
|
1526
|
+
onActiveItemIdChange: c,
|
|
1527
|
+
a11yMode: h,
|
|
1528
|
+
open: v,
|
|
1529
|
+
scrollToTopOnOpen: g,
|
|
1530
|
+
autoActivateFirstItem: R,
|
|
1531
|
+
autoFocusList: N
|
|
1532
|
+
}
|
|
1533
|
+
) : /* @__PURE__ */ i(
|
|
1534
|
+
Mt,
|
|
1535
|
+
{
|
|
1536
|
+
id: _,
|
|
1537
|
+
search: L,
|
|
1538
|
+
announceNoResults: C,
|
|
1539
|
+
items: k,
|
|
1540
|
+
groups: f,
|
|
1541
|
+
variant: r,
|
|
1542
|
+
size: a,
|
|
1543
|
+
level: d,
|
|
1544
|
+
maxLevels: u,
|
|
1545
|
+
keyboardEvents: l,
|
|
1546
|
+
scrollRefStyles: p,
|
|
1547
|
+
onActiveItemIdChange: c,
|
|
1548
|
+
a11yMode: h,
|
|
1549
|
+
open: v,
|
|
1550
|
+
scrollToTopOnOpen: g,
|
|
1551
|
+
autoActivateFirstItem: R,
|
|
1552
|
+
autoFocusList: N
|
|
1553
|
+
}
|
|
1554
|
+
);
|
|
1555
|
+
}, go = "_media_1089b_3", bo = "_icon_1089b_10", yo = "_avatar_1089b_14", wo = "_avatarGroup_1089b_18", pe = {
|
|
1556
|
+
media: go,
|
|
1557
|
+
icon: bo,
|
|
1558
|
+
avatar: yo,
|
|
1559
|
+
avatarGroup: wo
|
|
1560
|
+
};
|
|
1561
|
+
function _o(e) {
|
|
1562
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _t(e);
|
|
1563
|
+
}
|
|
1564
|
+
const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
1565
|
+
if (!o)
|
|
1566
|
+
return null;
|
|
1567
|
+
if (n)
|
|
1568
|
+
return /* @__PURE__ */ i("div", { className: G(pe.icon, e), children: /* @__PURE__ */ i(ce, { svgElement: qe, loading: !0 }) });
|
|
1569
|
+
const r = Je(o) ? "avatar" : Ze(o) ? "avatarGroup" : (tt(o), "icon");
|
|
1570
|
+
return /* @__PURE__ */ w("div", { className: G(pe.media, e), "data-variant": r, children: [
|
|
1571
|
+
Je(o) && /* @__PURE__ */ i(it, { ...o, className: pe.avatar }) || Ze(o) && /* @__PURE__ */ i(Ae, { ...o, className: pe.avatarGroup }) || tt(o) && /* @__PURE__ */ i(ce, { ...o, className: pe.icon }) || _o(o) && /* @__PURE__ */ i(ce, { className: pe.icon, children: o }) || /* @__PURE__ */ i(ce, { className: pe.icon, svgElement: o }),
|
|
1572
|
+
t
|
|
1573
|
+
] });
|
|
1574
|
+
}, xo = "_heading_ydkmu_1", Io = {
|
|
1575
|
+
heading: xo
|
|
1576
|
+
}, Ee = ({
|
|
1577
|
+
id: e,
|
|
1578
|
+
loading: n,
|
|
1579
|
+
highlightWords: o = [],
|
|
1580
|
+
as: t = "h2",
|
|
1581
|
+
size: r,
|
|
1582
|
+
leading: a = "tight",
|
|
1583
|
+
weight: d = "medium",
|
|
1584
|
+
color: u,
|
|
1585
|
+
variant: s,
|
|
1586
|
+
maxRows: l,
|
|
1587
|
+
className: p,
|
|
1588
|
+
style: c,
|
|
1589
|
+
children: h
|
|
1590
|
+
}) => {
|
|
1591
|
+
const v = t, g = Kt(h, o || []);
|
|
1592
|
+
return /* @__PURE__ */ i(
|
|
1593
|
+
v,
|
|
1594
|
+
{
|
|
1595
|
+
id: e,
|
|
1596
|
+
className: G(Io.heading, p),
|
|
1597
|
+
style: c,
|
|
1598
|
+
"data-size": r,
|
|
1599
|
+
"data-leading": a,
|
|
1600
|
+
"data-weight": d,
|
|
1601
|
+
"data-color": u,
|
|
1602
|
+
"data-variant": r === "xxs" && "default" || s,
|
|
1603
|
+
"data-max-rows": l,
|
|
1604
|
+
children: /* @__PURE__ */ i(xe, { loading: n, children: g })
|
|
1605
|
+
}
|
|
1606
|
+
);
|
|
1607
|
+
}, Oo = "_label_e5q28_3", So = {
|
|
1608
|
+
label: Oo
|
|
1609
|
+
}, bt = ({
|
|
1610
|
+
className: e,
|
|
1611
|
+
title: n,
|
|
1612
|
+
titleProps: o = {},
|
|
1613
|
+
description: t,
|
|
1614
|
+
descriptionProps: r = {},
|
|
1615
|
+
highlightWords: a,
|
|
1616
|
+
loading: d,
|
|
1617
|
+
children: u
|
|
1618
|
+
}) => /* @__PURE__ */ i("span", { className: G(So.label, e), children: u || /* @__PURE__ */ w(we, { children: [
|
|
1619
|
+
n && /* @__PURE__ */ i(Ee, { ...o, as: "span", loading: d, highlightWords: a, maxRows: 2, children: n }),
|
|
1620
|
+
t && /* @__PURE__ */ i(
|
|
1621
|
+
Ee,
|
|
1622
|
+
{
|
|
1623
|
+
...r,
|
|
1624
|
+
as: "span",
|
|
1625
|
+
weight: "normal",
|
|
1626
|
+
leading: "inherit",
|
|
1627
|
+
loading: d,
|
|
1628
|
+
highlightWords: a,
|
|
1629
|
+
maxRows: 2,
|
|
1630
|
+
children: t
|
|
1631
|
+
}
|
|
1632
|
+
)
|
|
1633
|
+
] }) }), Eo = "_item_h7sxa_3", ko = "_media_h7sxa_136", Po = "_label_h7sxa_157", No = "_title_h7sxa_172", Mo = "_description_h7sxa_176", Ao = "_count_h7sxa_188", Co = "_linkIcon_h7sxa_196", V = {
|
|
1634
|
+
item: Eo,
|
|
1635
|
+
media: ko,
|
|
1636
|
+
label: Po,
|
|
1637
|
+
title: No,
|
|
1638
|
+
description: Mo,
|
|
1639
|
+
count: Ao,
|
|
1640
|
+
linkIcon: Co
|
|
1641
|
+
}, Tt = ({
|
|
1642
|
+
id: e,
|
|
1643
|
+
groupId: n,
|
|
1644
|
+
role: o = "menuItem",
|
|
1645
|
+
a11yMode: t,
|
|
1646
|
+
as: r,
|
|
1647
|
+
href: a,
|
|
1648
|
+
onClick: d,
|
|
1649
|
+
onKeyPress: u,
|
|
1650
|
+
onMouseEnter: s,
|
|
1651
|
+
size: l = "sm",
|
|
1652
|
+
variant: p,
|
|
1653
|
+
color: c,
|
|
1654
|
+
checked: h,
|
|
1655
|
+
icon: v,
|
|
1656
|
+
label: g,
|
|
1657
|
+
badge: N,
|
|
1658
|
+
controls: _,
|
|
1659
|
+
title: x,
|
|
1660
|
+
htmlTitle: L,
|
|
1661
|
+
description: C,
|
|
1662
|
+
highlightWords: k,
|
|
1663
|
+
count: f,
|
|
1664
|
+
linkIcon: R = !1,
|
|
1665
|
+
disabled: I,
|
|
1666
|
+
selected: H,
|
|
1667
|
+
active: W,
|
|
1668
|
+
tabIndex: y = 0,
|
|
1669
|
+
className: T,
|
|
1670
|
+
"data-testid": M,
|
|
1671
|
+
...P
|
|
1672
|
+
}) => {
|
|
1673
|
+
const m = typeof g == "function" ? g() : g, S = en(P), z = o === "option";
|
|
1674
|
+
if (o === "radio" || o === "checkbox" || o === "menuitemradio" || o === "menuitemcheckbox" || z && typeof h == "boolean") {
|
|
1675
|
+
const j = v || (h ? Pt : Pn);
|
|
1676
|
+
return /* @__PURE__ */ w(
|
|
1677
|
+
"div",
|
|
1678
|
+
{
|
|
1679
|
+
...S,
|
|
1680
|
+
className: G(V.item, T),
|
|
1681
|
+
id: e,
|
|
1682
|
+
"data-id": e,
|
|
1683
|
+
"data-group-id": n,
|
|
1684
|
+
"data-size": l,
|
|
1685
|
+
"data-variant": p,
|
|
1686
|
+
"data-color": c,
|
|
1687
|
+
"data-active": W,
|
|
1688
|
+
role: o,
|
|
1689
|
+
"aria-disabled": I,
|
|
1690
|
+
"aria-checked": z ? void 0 : !!h,
|
|
1691
|
+
"aria-selected": z ? !!h : void 0,
|
|
1692
|
+
"data-selected": h,
|
|
1693
|
+
"aria-label": x,
|
|
1694
|
+
title: L,
|
|
1695
|
+
"data-testid": M,
|
|
1696
|
+
onKeyUp: (K) => {
|
|
1697
|
+
I || (K.target === K.currentTarget && K.key === "Enter" && d?.(), u?.(K));
|
|
1698
|
+
},
|
|
1699
|
+
onClick: I ? void 0 : d,
|
|
1700
|
+
onMouseEnter: s,
|
|
1701
|
+
tabIndex: y,
|
|
1702
|
+
children: [
|
|
1703
|
+
/* @__PURE__ */ i(gt, { icon: j, className: V.media }),
|
|
1704
|
+
/* @__PURE__ */ i(
|
|
1705
|
+
bt,
|
|
1706
|
+
{
|
|
1707
|
+
className: V.label,
|
|
1708
|
+
highlightWords: k,
|
|
1709
|
+
title: /* @__PURE__ */ w(we, { children: [
|
|
1710
|
+
x,
|
|
1711
|
+
" ",
|
|
1712
|
+
f && /* @__PURE__ */ i("i", { className: V.count, children: f })
|
|
1713
|
+
] }),
|
|
1714
|
+
titleProps: {
|
|
1715
|
+
weight: "medium",
|
|
1716
|
+
className: V.title
|
|
1717
|
+
},
|
|
1718
|
+
description: C,
|
|
1719
|
+
descriptionProps: {
|
|
1720
|
+
weight: "normal",
|
|
1721
|
+
variant: "subtle",
|
|
1722
|
+
className: V.description
|
|
1723
|
+
},
|
|
1724
|
+
children: m
|
|
1725
|
+
}
|
|
1726
|
+
),
|
|
1727
|
+
/* @__PURE__ */ w(et, { children: [
|
|
1728
|
+
N && /* @__PURE__ */ i(ie, { ...N }),
|
|
1729
|
+
!I && _
|
|
1730
|
+
] })
|
|
1731
|
+
]
|
|
1732
|
+
}
|
|
1733
|
+
);
|
|
1734
|
+
}
|
|
1735
|
+
const A = r || (a ? "a" : "button"), D = R && yn;
|
|
1736
|
+
return /* @__PURE__ */ w(
|
|
1737
|
+
A,
|
|
1738
|
+
{
|
|
1739
|
+
href: a,
|
|
1740
|
+
className: G(V.item, T),
|
|
1741
|
+
id: e,
|
|
1742
|
+
"data-id": e,
|
|
1743
|
+
"data-group-id": n,
|
|
1744
|
+
"data-size": l,
|
|
1745
|
+
"data-variant": p,
|
|
1746
|
+
"data-color": c,
|
|
1747
|
+
"data-active": W,
|
|
1748
|
+
"aria-disabled": I,
|
|
1749
|
+
...I ? { disabled: I } : {},
|
|
1750
|
+
"aria-current": o !== "option" && H ? "page" : void 0,
|
|
1751
|
+
"aria-selected": o === "option" ? H : void 0,
|
|
1752
|
+
"data-selected": H,
|
|
1753
|
+
"aria-label": x,
|
|
1754
|
+
title: L,
|
|
1755
|
+
"data-testid": M,
|
|
1756
|
+
onKeyUp: (j) => {
|
|
1757
|
+
I || (j.target === j.currentTarget && j.key === "Enter" && d?.(), u?.(j));
|
|
1758
|
+
},
|
|
1759
|
+
onClick: d,
|
|
1760
|
+
onMouseEnter: s,
|
|
1761
|
+
tabIndex: I ? -1 : y ?? 0,
|
|
1762
|
+
role: t === "navigation" ? void 0 : o === "menuItem" ? "menuitem" : o,
|
|
1763
|
+
...S,
|
|
1764
|
+
children: [
|
|
1765
|
+
v && /* @__PURE__ */ i(gt, { icon: v, className: V.media }),
|
|
1766
|
+
/* @__PURE__ */ i(
|
|
1767
|
+
bt,
|
|
1768
|
+
{
|
|
1769
|
+
className: V.label,
|
|
1770
|
+
highlightWords: k,
|
|
1771
|
+
title: /* @__PURE__ */ w(we, { children: [
|
|
1772
|
+
x,
|
|
1773
|
+
" ",
|
|
1774
|
+
f && /* @__PURE__ */ i("i", { className: V.count, children: f })
|
|
1775
|
+
] }),
|
|
1776
|
+
titleProps: {
|
|
1777
|
+
weight: "medium",
|
|
1778
|
+
className: V.title
|
|
1779
|
+
},
|
|
1780
|
+
description: C,
|
|
1781
|
+
descriptionProps: {
|
|
1782
|
+
variant: "subtle",
|
|
1783
|
+
className: V.description
|
|
1784
|
+
},
|
|
1785
|
+
children: m
|
|
1786
|
+
}
|
|
1787
|
+
),
|
|
1788
|
+
/* @__PURE__ */ w(et, { children: [
|
|
1789
|
+
N && /* @__PURE__ */ i(ie, { ...N }),
|
|
1790
|
+
!I && _,
|
|
1791
|
+
R && /* @__PURE__ */ i(ce, { svgElement: D, className: V.linkIcon })
|
|
1792
|
+
] })
|
|
1793
|
+
]
|
|
1794
|
+
}
|
|
1795
|
+
);
|
|
1796
|
+
}, Ro = "_fieldContainer_kk0vx_13", zo = "_field_kk0vx_13", Lo = "_input_kk0vx_28", To = "_hiddenInput_kk0vx_29", $o = "_icon_kk0vx_62", Do = "_clear_kk0vx_80", jo = "_clearButton_kk0vx_93", Bo = "_autocomplete_kk0vx_120", oe = {
|
|
1797
|
+
fieldContainer: Ro,
|
|
1798
|
+
field: zo,
|
|
1799
|
+
input: Lo,
|
|
1800
|
+
hiddenInput: To,
|
|
1801
|
+
icon: $o,
|
|
1802
|
+
clear: Do,
|
|
1803
|
+
clearButton: jo,
|
|
1804
|
+
autocomplete: Bo
|
|
1805
|
+
}, $t = ({
|
|
1806
|
+
className: e,
|
|
1807
|
+
collapsible: n,
|
|
1808
|
+
loading: o,
|
|
1809
|
+
loadingLabel: t = "Loading ...",
|
|
1810
|
+
size: r,
|
|
1811
|
+
color: a = "neutral",
|
|
1812
|
+
label: d,
|
|
1813
|
+
hideLabel: u,
|
|
1814
|
+
value: s,
|
|
1815
|
+
onClear: l,
|
|
1816
|
+
clearButtonAltText: p = "Clear search",
|
|
1817
|
+
menu: c,
|
|
1818
|
+
minLength: h,
|
|
1819
|
+
...v
|
|
1820
|
+
}) => {
|
|
1821
|
+
const g = lt(), [N, _] = de(!1), x = v.id || `search-field-${g}`, L = `${x}-listbox`, [C, k] = de(void 0), f = "searchfield-clear-button-" + lt(), R = fe(() => !c || !s || typeof h == "number" && typeof s == "string" && s.length < h ? !1 : N, [c, N, h, s]), I = fe(() => (c?.items ?? []).map((m) => ({
|
|
1822
|
+
...m,
|
|
1823
|
+
onClick: () => {
|
|
1824
|
+
m.onClick?.(), _(!1);
|
|
1825
|
+
}
|
|
1826
|
+
})), [c]), H = (m) => {
|
|
1827
|
+
if (m.key === "Enter" && R) {
|
|
1828
|
+
c?.items?.[0]?.onClick?.(), _(!1);
|
|
1829
|
+
return;
|
|
1830
|
+
}
|
|
1831
|
+
if (m.key === "Escape" && R) {
|
|
1832
|
+
m.preventDefault(), m.stopPropagation(), _(!1), c?.onClose(), document.getElementById(x)?.focus();
|
|
1833
|
+
return;
|
|
1834
|
+
}
|
|
1835
|
+
v.onKeyDown?.(m), _(!0);
|
|
1836
|
+
}, W = () => {
|
|
1837
|
+
_(!0);
|
|
1838
|
+
}, y = (m) => {
|
|
1839
|
+
if (!N) return;
|
|
1840
|
+
const S = m.relatedTarget;
|
|
1841
|
+
S && m.currentTarget.contains(S) || _(!1);
|
|
1842
|
+
}, T = (m) => {
|
|
1843
|
+
m.preventDefault();
|
|
1844
|
+
}, M = (m) => {
|
|
1845
|
+
m.relatedTarget?.id === f && k(void 0), v.onBlur?.(m);
|
|
1846
|
+
}, P = /* @__PURE__ */ w(
|
|
1847
|
+
Dn,
|
|
1848
|
+
{
|
|
1849
|
+
size: r,
|
|
1850
|
+
color: a,
|
|
1851
|
+
label: u ? void 0 : d,
|
|
1852
|
+
htmlFor: x,
|
|
1853
|
+
className: G(oe.field, e),
|
|
1854
|
+
"data-collapsible": n ? !0 : void 0,
|
|
1855
|
+
onBlurCapture: y,
|
|
1856
|
+
children: [
|
|
1857
|
+
/* @__PURE__ */ i("span", { className: oe.hiddenInput, "aria-hidden": "true", children: s + " " }),
|
|
1858
|
+
/* @__PURE__ */ i(
|
|
1859
|
+
Qt,
|
|
1860
|
+
{
|
|
1861
|
+
...v,
|
|
1862
|
+
id: x,
|
|
1863
|
+
"aria-label": u && typeof d == "string" ? d : void 0,
|
|
1864
|
+
inputSize: 5,
|
|
1865
|
+
type: "search",
|
|
1866
|
+
value: s,
|
|
1867
|
+
className: oe.input,
|
|
1868
|
+
"data-collapsible": n ? !0 : void 0,
|
|
1869
|
+
autoCapitalize: "off",
|
|
1870
|
+
autoComplete: "off",
|
|
1871
|
+
minLength: h,
|
|
1872
|
+
onKeyDown: H,
|
|
1873
|
+
onBlur: M,
|
|
1874
|
+
...c && {
|
|
1875
|
+
role: "combobox",
|
|
1876
|
+
"aria-autocomplete": "list",
|
|
1877
|
+
"aria-expanded": !!R,
|
|
1878
|
+
"aria-haspopup": "listbox",
|
|
1879
|
+
"aria-controls": R ? L : void 0,
|
|
1880
|
+
"aria-activedescendant": R ? C : void 0,
|
|
1881
|
+
onFocus: W
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
),
|
|
1885
|
+
o ? /* @__PURE__ */ i(Zt, { "aria-hidden": !0, className: oe.icon }) : /* @__PURE__ */ i(En, { "aria-hidden": !0, className: oe.icon }),
|
|
1886
|
+
l && !!s && /* @__PURE__ */ i("span", { className: oe.clear, children: /* @__PURE__ */ i(
|
|
1887
|
+
_e,
|
|
1888
|
+
{
|
|
1889
|
+
id: f,
|
|
1890
|
+
"data-testid": "clear-button",
|
|
1891
|
+
size: "xs",
|
|
1892
|
+
rounded: !0,
|
|
1893
|
+
icon: !0,
|
|
1894
|
+
variant: "tinted",
|
|
1895
|
+
className: oe.clearButton,
|
|
1896
|
+
onClick: () => {
|
|
1897
|
+
l?.(), document.getElementById(x)?.focus();
|
|
1898
|
+
},
|
|
1899
|
+
"aria-label": p,
|
|
1900
|
+
"data-action": "clear-input",
|
|
1901
|
+
children: /* @__PURE__ */ i(qe, {})
|
|
1902
|
+
}
|
|
1903
|
+
) })
|
|
1904
|
+
]
|
|
1905
|
+
}
|
|
1906
|
+
);
|
|
1907
|
+
return c ? /* @__PURE__ */ w("div", { className: oe.fieldContainer, children: [
|
|
1908
|
+
P,
|
|
1909
|
+
R && /* @__PURE__ */ i("div", { className: oe.autocomplete, "aria-hidden": !R, onMouseDown: T, children: /* @__PURE__ */ i(
|
|
1910
|
+
Lt,
|
|
1911
|
+
{
|
|
1912
|
+
...c,
|
|
1913
|
+
id: L,
|
|
1914
|
+
items: I,
|
|
1915
|
+
groups: c?.groups,
|
|
1916
|
+
keyboardEvents: !0,
|
|
1917
|
+
a11yMode: "combobox",
|
|
1918
|
+
open: R,
|
|
1919
|
+
autoFocusList: !1,
|
|
1920
|
+
onActiveItemIdChange: k
|
|
1921
|
+
}
|
|
1922
|
+
) })
|
|
1923
|
+
] }) : P;
|
|
1924
|
+
}, Ho = "_byline_fzp7k_1", Fo = "_avatar_fzp7k_7", qo = "_avatarGroup_fzp7k_12", Wo = "_label_fzp7k_26", Ne = {
|
|
1925
|
+
byline: Ho,
|
|
1926
|
+
avatar: Fo,
|
|
1927
|
+
avatarGroup: qo,
|
|
1928
|
+
label: Wo
|
|
1929
|
+
}, Go = ({
|
|
1930
|
+
loading: e,
|
|
1931
|
+
color: n = "neutral",
|
|
1932
|
+
size: o = "xs",
|
|
1933
|
+
avatar: t,
|
|
1934
|
+
avatarGroup: r,
|
|
1935
|
+
datetime: a,
|
|
1936
|
+
children: d,
|
|
1937
|
+
as: u,
|
|
1938
|
+
...s
|
|
1939
|
+
}) => {
|
|
1940
|
+
const l = u || "div", p = a ? "time" : "span";
|
|
1941
|
+
return /* @__PURE__ */ w(l, { ...s, className: Ne.byline, "data-color": n, "data-size": o, children: [
|
|
1942
|
+
(r || t) && /* @__PURE__ */ i(xe, { variant: "circle", className: Ne.avatar, loading: e, children: r ? /* @__PURE__ */ i(Ae, { ...r, size: o, className: Ne.avatarGroup }) : t && /* @__PURE__ */ i(it, { ...t, size: o, className: Ne.avatar }) }),
|
|
1943
|
+
/* @__PURE__ */ i(p, { "data-size": o, dateTime: a, className: Ne.label, children: /* @__PURE__ */ i(xe, { loading: e, children: d }) })
|
|
1944
|
+
] });
|
|
1945
|
+
}, Ko = "_dropdown_11cza_1", Vo = "_content_11cza_17", Uo = "_backdrop_11cza_47", Yo = "_header_11cza_76", Qo = "_footer_11cza_77", Xo = "_title_11cza_156", be = {
|
|
1946
|
+
dropdown: Ko,
|
|
1947
|
+
content: Vo,
|
|
1948
|
+
backdrop: Uo,
|
|
1949
|
+
header: Yo,
|
|
1950
|
+
footer: Qo,
|
|
1951
|
+
title: Xo
|
|
1952
|
+
}, Jo = "data-focus-guard", Dt = (e) => {
|
|
1953
|
+
const n = [
|
|
1954
|
+
"a[href]",
|
|
1955
|
+
"button:not([disabled])",
|
|
1956
|
+
"input:not([disabled])",
|
|
1957
|
+
"select:not([disabled])",
|
|
1958
|
+
"textarea:not([disabled])",
|
|
1959
|
+
'[tabindex]:not([tabindex="-1"])',
|
|
1960
|
+
'[contenteditable="true"]'
|
|
1961
|
+
].join(",");
|
|
1962
|
+
return Array.from(e.querySelectorAll(n)).filter((o) => !o.hasAttribute(Jo)).filter((o) => !o.hasAttribute("disabled")).filter((o) => o.getAttribute("aria-hidden") !== "true").filter((o) => o.tabIndex !== -1).filter((o) => {
|
|
1963
|
+
const t = o.getClientRects();
|
|
1964
|
+
return t.length > 0 && t[0].width > 0 && t[0].height > 0;
|
|
1965
|
+
});
|
|
1966
|
+
}, Zo = (e) => {
|
|
1967
|
+
Dt(e)[0]?.focus({ preventScroll: !0 });
|
|
1968
|
+
}, er = ({
|
|
1969
|
+
id: e = "dropdown",
|
|
1970
|
+
size: n = "sm",
|
|
1971
|
+
className: o,
|
|
1972
|
+
backdrop: t = !0,
|
|
1973
|
+
placement: r = "bottom-left",
|
|
1974
|
+
variant: a = "dropdown",
|
|
1975
|
+
title: d = "Title",
|
|
1976
|
+
closeLabel: u = "Close",
|
|
1977
|
+
submitLabel: s,
|
|
1978
|
+
trigger: l,
|
|
1979
|
+
children: p,
|
|
1980
|
+
open: c,
|
|
1981
|
+
onClose: h,
|
|
1982
|
+
color: v,
|
|
1983
|
+
onSubmit: g,
|
|
1984
|
+
activeDescendantId: N,
|
|
1985
|
+
useFixedPosition: _ = !1,
|
|
1986
|
+
expanded: x = !1
|
|
1987
|
+
}) => {
|
|
1988
|
+
const L = J(null), C = J(null), k = J(c);
|
|
1989
|
+
U(() => {
|
|
1990
|
+
k.current = c;
|
|
1991
|
+
}, [c]);
|
|
1992
|
+
const [f, R] = de({
|
|
1993
|
+
yDir: r.includes("top") ? "top" : "bottom",
|
|
1994
|
+
xDir: r.includes("right") ? "right" : "left",
|
|
1995
|
+
maxHeight: 300
|
|
1996
|
+
}), I = xt(() => {
|
|
1997
|
+
if (c && L.current && C.current) {
|
|
1998
|
+
const y = L.current.getBoundingClientRect(), T = C.current.getBoundingClientRect(), M = window.innerHeight, P = window.innerWidth, m = 16, S = M - y.bottom, z = y.top, $ = P - y.right - T.width, A = S < 250 && z > S, D = A ? "top" : "bottom", j = (A ? z : S) - m, ve = $ < m ? "right" : "left";
|
|
1999
|
+
R((Z) => ({
|
|
2000
|
+
...Z,
|
|
2001
|
+
yDir: D,
|
|
2002
|
+
maxHeight: j,
|
|
2003
|
+
xDir: ve,
|
|
2004
|
+
triggerRect: _ ? y : void 0
|
|
2005
|
+
}));
|
|
2006
|
+
}
|
|
2007
|
+
}, [c, _]);
|
|
2008
|
+
Xe(() => (I(), window.addEventListener("resize", I), _ && window.addEventListener("scroll", I, !0), () => {
|
|
2009
|
+
window.removeEventListener("resize", I), _ && window.removeEventListener("scroll", I, !0);
|
|
2010
|
+
}), [I, _]), U(() => {
|
|
2011
|
+
if (!c) return;
|
|
2012
|
+
const y = requestAnimationFrame(() => {
|
|
2013
|
+
const T = C.current;
|
|
2014
|
+
if (!T) return;
|
|
2015
|
+
const M = T.querySelector(
|
|
2016
|
+
'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
|
|
2017
|
+
);
|
|
2018
|
+
if (M) {
|
|
2019
|
+
const P = M.value.length;
|
|
2020
|
+
M.focus({ preventScroll: !0 });
|
|
2021
|
+
try {
|
|
2022
|
+
M.setSelectionRange(P, P);
|
|
2023
|
+
} catch {
|
|
2024
|
+
}
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
T.focus?.({ preventScroll: !0 });
|
|
2028
|
+
});
|
|
2029
|
+
return () => cancelAnimationFrame(y);
|
|
2030
|
+
}, [c]), U(() => {
|
|
2031
|
+
const y = (M) => {
|
|
2032
|
+
M.key === "Escape" && (M.preventDefault(), h());
|
|
2033
|
+
}, T = (M) => {
|
|
2034
|
+
const P = M.target, m = L.current?.contains(P), S = C.current?.contains(P);
|
|
2035
|
+
!m && !S && h();
|
|
2036
|
+
};
|
|
2037
|
+
return c && (document.addEventListener("mousedown", T), document.addEventListener("keydown", y)), () => {
|
|
2038
|
+
document.removeEventListener("mousedown", T), document.removeEventListener("keydown", y);
|
|
2039
|
+
};
|
|
2040
|
+
}, [c, h]), U(() => {
|
|
2041
|
+
if (!c) return;
|
|
2042
|
+
const y = C.current;
|
|
2043
|
+
if (!y) return;
|
|
2044
|
+
const T = (P) => {
|
|
2045
|
+
if (!k.current)
|
|
2046
|
+
return;
|
|
2047
|
+
const m = P.target;
|
|
2048
|
+
m && !y.contains(m) && Zo(y);
|
|
2049
|
+
}, M = (P) => {
|
|
2050
|
+
if (P.key !== "Tab") return;
|
|
2051
|
+
const m = Dt(y);
|
|
2052
|
+
if (m.length === 0) {
|
|
2053
|
+
P.preventDefault(), y.focus?.({ preventScroll: !0 });
|
|
2054
|
+
return;
|
|
2055
|
+
}
|
|
2056
|
+
const S = m[0], z = m[m.length - 1], $ = document.activeElement;
|
|
2057
|
+
P.shiftKey ? $ === S && (P.preventDefault(), z.focus({ preventScroll: !0 })) : $ === z && (P.preventDefault(), S.focus({ preventScroll: !0 }));
|
|
2058
|
+
};
|
|
2059
|
+
return document.addEventListener("focusin", T), document.addEventListener("keydown", M), () => {
|
|
2060
|
+
document.removeEventListener("focusin", T), document.removeEventListener("keydown", M);
|
|
2061
|
+
};
|
|
2062
|
+
}, [c]);
|
|
2063
|
+
const H = _ && f.triggerRect ? {
|
|
2064
|
+
position: "fixed",
|
|
2065
|
+
zIndex: 1e3,
|
|
2066
|
+
width: "max-content",
|
|
2067
|
+
maxHeight: `${f.maxHeight}px`,
|
|
2068
|
+
overflowY: "auto",
|
|
2069
|
+
[f.xDir === "left" ? "left" : "right"]: f.xDir === "left" ? f.triggerRect.left : window.innerWidth - f.triggerRect.right,
|
|
2070
|
+
[f.yDir === "bottom" ? "top" : "bottom"]: f.yDir === "bottom" ? f.triggerRect.bottom + 8 : window.innerHeight - f.triggerRect.top + 8
|
|
2071
|
+
} : {
|
|
2072
|
+
position: "absolute",
|
|
2073
|
+
zIndex: 50,
|
|
2074
|
+
width: "max-content",
|
|
2075
|
+
maxHeight: `${f.maxHeight}px`,
|
|
2076
|
+
overflowY: "auto",
|
|
2077
|
+
[f.xDir]: 0,
|
|
2078
|
+
[f.yDir === "bottom" ? "top" : "bottom"]: "100%"
|
|
2079
|
+
}, W = /* @__PURE__ */ w(
|
|
2080
|
+
"div",
|
|
2081
|
+
{
|
|
2082
|
+
ref: C,
|
|
2083
|
+
className: G(be.dropdown, o),
|
|
2084
|
+
style: H,
|
|
2085
|
+
"aria-hidden": !c,
|
|
2086
|
+
"data-variant": a,
|
|
2087
|
+
"data-color": v,
|
|
2088
|
+
"data-expanded": x,
|
|
2089
|
+
"data-size": n,
|
|
2090
|
+
tabIndex: -1,
|
|
2091
|
+
role: c ? "menu" : void 0,
|
|
2092
|
+
"aria-modal": c && a === "drawer-dropdown" ? !0 : void 0,
|
|
2093
|
+
"aria-activedescendant": c ? N : void 0,
|
|
2094
|
+
children: [
|
|
2095
|
+
/* @__PURE__ */ w("header", { className: be.header, children: [
|
|
2096
|
+
/* @__PURE__ */ i("h2", { className: be.title, children: d }),
|
|
2097
|
+
/* @__PURE__ */ i(_e, { size: "sm", variant: "outline", onClick: h, "aria-label": u, children: /* @__PURE__ */ i(qe, {}) })
|
|
2098
|
+
] }),
|
|
2099
|
+
/* @__PURE__ */ i("div", { className: be.content, children: p }),
|
|
2100
|
+
s && /* @__PURE__ */ i("footer", { className: be.footer, children: /* @__PURE__ */ i(_e, { size: "lg", variant: "solid", onClick: g || h, rounded: !0, children: /* @__PURE__ */ i("span", { "data-size": "md", children: s }) }) })
|
|
2101
|
+
]
|
|
2102
|
+
}
|
|
2103
|
+
);
|
|
2104
|
+
return /* @__PURE__ */ w(we, { children: [
|
|
2105
|
+
t && /* @__PURE__ */ i("div", { className: be.backdrop, "aria-hidden": !c }),
|
|
2106
|
+
/* @__PURE__ */ w("div", { id: e + "-root", ref: L, style: { position: "relative", display: "inline-block" }, children: [
|
|
2107
|
+
l,
|
|
2108
|
+
_ ? Gt(W, document.body) : W
|
|
2109
|
+
] })
|
|
2110
|
+
] });
|
|
2111
|
+
}, tr = "_section_1v20z_1", nr = "_header_1v20z_7", or = "_list_1v20z_13", Le = {
|
|
2112
|
+
section: tr,
|
|
2113
|
+
header: nr,
|
|
2114
|
+
list: or
|
|
2115
|
+
}, rr = Fe(
|
|
2116
|
+
({ title: e, description: n, items: o, groups: t = {}, sortGroupBy: r, highlightWords: a, isLoading: d }) => {
|
|
2117
|
+
const { menu: u } = rt({
|
|
2118
|
+
items: o,
|
|
2119
|
+
groups: t,
|
|
2120
|
+
groupByKey: "groupId",
|
|
2121
|
+
keyboardEvents: !1,
|
|
2122
|
+
sortGroupBy: r
|
|
2123
|
+
});
|
|
2124
|
+
return /* @__PURE__ */ w("section", { className: Le.section, "aria-busy": d, children: [
|
|
2125
|
+
e || n ? /* @__PURE__ */ w("header", { className: Le.header, children: [
|
|
2126
|
+
e && /* @__PURE__ */ i(Ee, { as: "h1", size: "lg", children: e }),
|
|
2127
|
+
n && /* @__PURE__ */ i(It, { as: "p", size: "sm", variant: "subtle", className: Le.description, children: n })
|
|
2128
|
+
] }) : null,
|
|
2129
|
+
u?.map((s, l) => {
|
|
2130
|
+
const p = s.props || {};
|
|
2131
|
+
return /* @__PURE__ */ w(wt, { children: [
|
|
2132
|
+
p?.title && /* @__PURE__ */ i(Ee, { as: "h2", size: "lg", children: p.title }),
|
|
2133
|
+
/* @__PURE__ */ i("ul", { className: Le.list, children: s?.items.map((c, h) => {
|
|
2134
|
+
const v = c.props || {};
|
|
2135
|
+
return /* @__PURE__ */ qt(jt, { ...v, highlightWords: a, key: "dialog-list-item" + h });
|
|
2136
|
+
}) })
|
|
2137
|
+
] }, "dialog-list-item" + l);
|
|
2138
|
+
})
|
|
2139
|
+
] });
|
|
2140
|
+
}
|
|
2141
|
+
);
|
|
2142
|
+
rr.displayName = "DialogList";
|
|
2143
|
+
const ar = "_item_1cw3x_3", ir = "_border_1cw3x_75", sr = "_header_1cw3x_86", lr = "_summary_1cw3x_102", cr = "_controls_1cw3x_116", dr = "_footer_1cw3x_123", ur = "_seenBy_1cw3x_128", pr = "_link_1cw3x_138", fr = "_title_1cw3x_143", te = {
|
|
2144
|
+
item: ar,
|
|
2145
|
+
border: ir,
|
|
2146
|
+
header: sr,
|
|
2147
|
+
summary: lr,
|
|
2148
|
+
controls: cr,
|
|
2149
|
+
footer: dr,
|
|
2150
|
+
seenBy: ur,
|
|
2151
|
+
link: pr,
|
|
2152
|
+
title: fr
|
|
2153
|
+
}, jt = Fe(
|
|
2154
|
+
({
|
|
2155
|
+
as: e = "a",
|
|
2156
|
+
size: n = "xl",
|
|
2157
|
+
variant: o = "default",
|
|
2158
|
+
color: t,
|
|
2159
|
+
loading: r,
|
|
2160
|
+
controls: a,
|
|
2161
|
+
selectable: d,
|
|
2162
|
+
selected: u,
|
|
2163
|
+
status: s,
|
|
2164
|
+
extendedStatusLabel: l,
|
|
2165
|
+
sender: p,
|
|
2166
|
+
recipient: c,
|
|
2167
|
+
recipientLabel: h = "to",
|
|
2168
|
+
grouped: v = !1,
|
|
2169
|
+
updatedAt: g,
|
|
2170
|
+
updatedAtLabel: N,
|
|
2171
|
+
archived: _,
|
|
2172
|
+
archivedAt: x,
|
|
2173
|
+
archivedAtLabel: L,
|
|
2174
|
+
trashed: C,
|
|
2175
|
+
trashedAt: k,
|
|
2176
|
+
trashedAtLabel: f,
|
|
2177
|
+
badge: R,
|
|
2178
|
+
dueAt: I,
|
|
2179
|
+
dueAtExpired: H,
|
|
2180
|
+
dueAtLabel: W,
|
|
2181
|
+
unread: y,
|
|
2182
|
+
unreadLabel: T = "Ulest",
|
|
2183
|
+
unreadItems: M,
|
|
2184
|
+
unreadItemsLabel: P = "Ulest innhold",
|
|
2185
|
+
seenByLog: m,
|
|
2186
|
+
draftsLabel: S,
|
|
2187
|
+
sentCount: z,
|
|
2188
|
+
receivedCount: $,
|
|
2189
|
+
attachmentsCount: A,
|
|
2190
|
+
attachmentsLabel: D,
|
|
2191
|
+
tooltips: j = {},
|
|
2192
|
+
title: K,
|
|
2193
|
+
description: ve,
|
|
2194
|
+
summary: Z,
|
|
2195
|
+
highlightWords: ee,
|
|
2196
|
+
id: b,
|
|
2197
|
+
...E
|
|
2198
|
+
}) => {
|
|
2199
|
+
const B = d ? "select" : o;
|
|
2200
|
+
return /* @__PURE__ */ w(
|
|
2201
|
+
sn,
|
|
2202
|
+
{
|
|
2203
|
+
as: "li",
|
|
2204
|
+
id: b,
|
|
2205
|
+
className: te.item,
|
|
2206
|
+
size: n,
|
|
2207
|
+
color: t,
|
|
2208
|
+
variant: B,
|
|
2209
|
+
"data-unread": y ? "true" : "false",
|
|
2210
|
+
"data-selected": u,
|
|
2211
|
+
"data-trashed": C,
|
|
2212
|
+
"data-archived": _,
|
|
2213
|
+
"data-loading": r,
|
|
2214
|
+
children: [
|
|
2215
|
+
/* @__PURE__ */ i(ln, { ...E, className: te.link, as: e, children: /* @__PURE__ */ w("div", { className: te.border, children: [
|
|
2216
|
+
/* @__PURE__ */ w("header", { className: te.header, children: [
|
|
2217
|
+
/* @__PURE__ */ w(
|
|
2218
|
+
Ee,
|
|
2219
|
+
{
|
|
2220
|
+
as: "h2",
|
|
2221
|
+
highlightWords: ee,
|
|
2222
|
+
weight: y ? "bold" : "normal",
|
|
2223
|
+
loading: r,
|
|
2224
|
+
maxRows: 2,
|
|
2225
|
+
className: te.title,
|
|
2226
|
+
children: [
|
|
2227
|
+
K,
|
|
2228
|
+
y && /* @__PURE__ */ i(ie, { label: T, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } }) || M && /* @__PURE__ */ i(ie, { label: P, style: { marginLeft: "0.75em", marginTop: "-2px" } })
|
|
2229
|
+
]
|
|
2230
|
+
}
|
|
2231
|
+
),
|
|
2232
|
+
/* @__PURE__ */ i(
|
|
2233
|
+
hr,
|
|
2234
|
+
{
|
|
2235
|
+
size: "xs",
|
|
2236
|
+
loading: r,
|
|
2237
|
+
sender: p,
|
|
2238
|
+
recipient: c,
|
|
2239
|
+
recipientLabel: h,
|
|
2240
|
+
grouped: v
|
|
2241
|
+
}
|
|
2242
|
+
),
|
|
2243
|
+
Z && /* @__PURE__ */ i(
|
|
2244
|
+
Ee,
|
|
2245
|
+
{
|
|
2246
|
+
as: "h3",
|
|
2247
|
+
highlightWords: ee,
|
|
2248
|
+
weight: "normal",
|
|
2249
|
+
className: te.summary,
|
|
2250
|
+
loading: r,
|
|
2251
|
+
maxRows: 2,
|
|
2252
|
+
children: Z
|
|
2253
|
+
}
|
|
2254
|
+
)
|
|
2255
|
+
] }),
|
|
2256
|
+
/* @__PURE__ */ i(
|
|
2257
|
+
mr,
|
|
2258
|
+
{
|
|
2259
|
+
className: te.footer,
|
|
2260
|
+
loading: r,
|
|
2261
|
+
badge: R,
|
|
2262
|
+
status: s,
|
|
2263
|
+
extendedStatusLabel: l,
|
|
2264
|
+
draftsLabel: S,
|
|
2265
|
+
sentCount: z,
|
|
2266
|
+
receivedCount: $,
|
|
2267
|
+
updatedAt: g,
|
|
2268
|
+
updatedAtLabel: N,
|
|
2269
|
+
archivedAt: x,
|
|
2270
|
+
archivedAtLabel: L,
|
|
2271
|
+
trashedAt: k,
|
|
2272
|
+
trashedAtLabel: f,
|
|
2273
|
+
dueAt: I,
|
|
2274
|
+
dueAtExpired: H,
|
|
2275
|
+
dueAtLabel: W,
|
|
2276
|
+
attachmentsCount: A,
|
|
2277
|
+
attachmentsLabel: D,
|
|
2278
|
+
tooltips: j
|
|
2279
|
+
}
|
|
2280
|
+
),
|
|
2281
|
+
m && j?.seenBy ? /* @__PURE__ */ i(at, { placement: "bottom", content: j?.seenBy, children: /* @__PURE__ */ i("span", { className: te.seenBy, children: /* @__PURE__ */ i(Ae, { items: m.items }) }) }) : m && /* @__PURE__ */ i(Ae, { items: m.items, className: te.seenBy })
|
|
2282
|
+
] }) }),
|
|
2283
|
+
/* @__PURE__ */ i(et, { className: te.controls, children: a })
|
|
2284
|
+
]
|
|
2285
|
+
}
|
|
2286
|
+
);
|
|
2287
|
+
}
|
|
2288
|
+
);
|
|
2289
|
+
jt.displayName = "DialogListItem";
|
|
2290
|
+
const mr = ({
|
|
2291
|
+
className: e,
|
|
2292
|
+
loading: n,
|
|
2293
|
+
status: o,
|
|
2294
|
+
sender: t,
|
|
2295
|
+
updatedAt: r,
|
|
2296
|
+
updatedAtLabel: a,
|
|
2297
|
+
dueAt: d,
|
|
2298
|
+
dueAtExpired: u,
|
|
2299
|
+
dueAtLabel: s,
|
|
2300
|
+
archivedAt: l,
|
|
2301
|
+
archivedAtLabel: p,
|
|
2302
|
+
trashedAt: c,
|
|
2303
|
+
trashedAtLabel: h,
|
|
2304
|
+
draftsLabel: v,
|
|
2305
|
+
sentCount: g = 0,
|
|
2306
|
+
receivedCount: N = 0,
|
|
2307
|
+
attachmentsCount: _ = 0,
|
|
2308
|
+
attachmentsLabel: x,
|
|
2309
|
+
transmissionsLabel: L,
|
|
2310
|
+
activityLog: C,
|
|
2311
|
+
extendedStatusLabel: k,
|
|
2312
|
+
tooltips: f = {}
|
|
2313
|
+
}) => /* @__PURE__ */ w(cn, { className: e, size: "xs", children: [
|
|
2314
|
+
o && /* @__PURE__ */ i(Ir, { tooltip: f.status, loading: n, ...o }),
|
|
2315
|
+
k && /* @__PURE__ */ i(ie, { tooltip: f.extendedStatus, variant: "outline", children: k }),
|
|
2316
|
+
v && /* @__PURE__ */ i(ie, { tooltip: f.drafts, variant: "dotted", children: v }),
|
|
2317
|
+
r && /* @__PURE__ */ w(re, { tooltip: f.updatedAt, loading: n, datetime: r, size: "xs", children: [
|
|
2318
|
+
/* @__PURE__ */ i("strong", { children: t && t.name + ", " }),
|
|
2319
|
+
a
|
|
2320
|
+
] }),
|
|
2321
|
+
_ > 0 && /* @__PURE__ */ i(re, { tooltip: f.attachments, loading: n, size: "xs", icon: on, children: x || _ }),
|
|
2322
|
+
L && /* @__PURE__ */ i(re, { tooltip: f.transmissions, loading: n, size: "xs", icon: On, children: L }),
|
|
2323
|
+
g > 0 && /* @__PURE__ */ i(re, { tooltip: f.sent, size: "xs", icon: Pt, children: g }),
|
|
2324
|
+
N > 0 && /* @__PURE__ */ i(re, { tooltip: f.received, size: "xs", icon: mn, children: N }),
|
|
2325
|
+
d && s && /* @__PURE__ */ i(
|
|
2326
|
+
re,
|
|
2327
|
+
{
|
|
2328
|
+
variant: "tinted",
|
|
2329
|
+
color: u ? "danger" : "warning",
|
|
2330
|
+
tooltip: f.dueAt,
|
|
2331
|
+
loading: n,
|
|
2332
|
+
datetime: d,
|
|
2333
|
+
size: "xs",
|
|
2334
|
+
icon: rn,
|
|
2335
|
+
children: s
|
|
2336
|
+
}
|
|
2337
|
+
),
|
|
2338
|
+
h && /* @__PURE__ */ i(
|
|
2339
|
+
re,
|
|
2340
|
+
{
|
|
2341
|
+
variant: "tinted",
|
|
2342
|
+
color: "neutral",
|
|
2343
|
+
tooltip: f.trashedAt,
|
|
2344
|
+
loading: n,
|
|
2345
|
+
datetime: c,
|
|
2346
|
+
size: "xs",
|
|
2347
|
+
icon: Mn,
|
|
2348
|
+
children: h
|
|
2349
|
+
}
|
|
2350
|
+
) || p && /* @__PURE__ */ i(
|
|
2351
|
+
re,
|
|
2352
|
+
{
|
|
2353
|
+
variant: "tinted",
|
|
2354
|
+
color: "neutral",
|
|
2355
|
+
tooltip: f.archivedAt,
|
|
2356
|
+
loading: n,
|
|
2357
|
+
datetime: l,
|
|
2358
|
+
size: "xs",
|
|
2359
|
+
icon: pn,
|
|
2360
|
+
children: p
|
|
2361
|
+
}
|
|
2362
|
+
),
|
|
2363
|
+
C && /* @__PURE__ */ i(
|
|
2364
|
+
re,
|
|
2365
|
+
{
|
|
2366
|
+
tooltip: f.activityLog,
|
|
2367
|
+
loading: n,
|
|
2368
|
+
size: "xs",
|
|
2369
|
+
icon: xn,
|
|
2370
|
+
as: C?.onClick ? "button" : "span",
|
|
2371
|
+
onClick: C?.onClick,
|
|
2372
|
+
children: C?.label || "Activity log"
|
|
2373
|
+
}
|
|
2374
|
+
)
|
|
2375
|
+
] }), hr = ({
|
|
2376
|
+
sender: e,
|
|
2377
|
+
recipient: n,
|
|
2378
|
+
recipientLabel: o = "to",
|
|
2379
|
+
grouped: t = !1,
|
|
2380
|
+
loading: r,
|
|
2381
|
+
size: a = "xs"
|
|
2382
|
+
}) => !e && !n ? null : /* @__PURE__ */ w(Go, { loading: r, size: a, avatar: e, avatarGroup: !r && t && e && n ? {
|
|
2383
|
+
items: [n, e]
|
|
2384
|
+
} : void 0, children: [
|
|
2385
|
+
/* @__PURE__ */ i("strong", { children: e?.name }),
|
|
2386
|
+
" ",
|
|
2387
|
+
n && o + " " + n?.name
|
|
2388
|
+
] }), vr = "_media_1x8z9_1", gr = "_icon_1x8z9_10", br = "_avatarGroup_1x8z9_17", ye = {
|
|
2389
|
+
media: vr,
|
|
2390
|
+
icon: gr,
|
|
2391
|
+
avatarGroup: br
|
|
2392
|
+
};
|
|
2393
|
+
function yr(e) {
|
|
2394
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _t(e);
|
|
2395
|
+
}
|
|
2396
|
+
const yt = ({ size: e = "xs", icon: n, progress: o }) => !n && typeof o != "number" ? !1 : /* @__PURE__ */ w("span", { className: ye.media, "data-size": e, children: [
|
|
2397
|
+
Je(n) && /* @__PURE__ */ i(it, { ...n, className: ye.avatar }) || Ze(n) && /* @__PURE__ */ i(Ae, { ...n, className: ye.avatarGroup }) || tt(n) && /* @__PURE__ */ i(ce, { ...n, className: ye.icon }) || yr(n) && n || /* @__PURE__ */ i(ce, { svgElement: n, className: ye.icon }),
|
|
2398
|
+
o && /* @__PURE__ */ i(dn, { value: o, className: ye.icon })
|
|
2399
|
+
] }), wr = "_item_cqtms_1", _r = "_label_cqtms_54", Te = {
|
|
2400
|
+
item: wr,
|
|
2401
|
+
label: _r
|
|
2402
|
+
}, re = ({
|
|
2403
|
+
as: e,
|
|
2404
|
+
loading: n,
|
|
2405
|
+
className: o,
|
|
2406
|
+
reverse: t,
|
|
2407
|
+
size: r = "xs",
|
|
2408
|
+
variant: a,
|
|
2409
|
+
color: d,
|
|
2410
|
+
icon: u,
|
|
2411
|
+
children: s,
|
|
2412
|
+
datetime: l,
|
|
2413
|
+
tooltip: p,
|
|
2414
|
+
...c
|
|
2415
|
+
}) => {
|
|
2416
|
+
const h = e || (l ? "time" : "span");
|
|
2417
|
+
return p ? /* @__PURE__ */ i(at, { content: p, placement: "bottom", children: /* @__PURE__ */ i(
|
|
2418
|
+
h,
|
|
2419
|
+
{
|
|
2420
|
+
"data-size": r,
|
|
2421
|
+
"data-color": d,
|
|
2422
|
+
"data-variant": a,
|
|
2423
|
+
dateTime: l,
|
|
2424
|
+
className: G(Te.item, o),
|
|
2425
|
+
...c,
|
|
2426
|
+
children: /* @__PURE__ */ w(xe, { loading: n, children: [
|
|
2427
|
+
!n && u && /* @__PURE__ */ i(yt, { size: r, icon: u }),
|
|
2428
|
+
/* @__PURE__ */ i("span", { className: Te.label, children: s })
|
|
2429
|
+
] })
|
|
2430
|
+
}
|
|
2431
|
+
) }) : /* @__PURE__ */ i(
|
|
2432
|
+
h,
|
|
2433
|
+
{
|
|
2434
|
+
"data-size": r,
|
|
2435
|
+
"data-color": d,
|
|
2436
|
+
"data-variant": a,
|
|
2437
|
+
dateTime: l,
|
|
2438
|
+
className: G(Te.item, o),
|
|
2439
|
+
...c,
|
|
2440
|
+
children: /* @__PURE__ */ w(xe, { loading: n, children: [
|
|
2441
|
+
!n && u && /* @__PURE__ */ i(yt, { size: r, icon: u }),
|
|
2442
|
+
/* @__PURE__ */ i("span", { className: Te.label, children: s })
|
|
2443
|
+
] })
|
|
2444
|
+
}
|
|
2445
|
+
);
|
|
2446
|
+
};
|
|
2447
|
+
var xr = /* @__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))(xr || {});
|
|
2448
|
+
const Ir = ({ loading: e, value: n = "not-applicable", label: o, tooltip: t }) => {
|
|
2449
|
+
if (e)
|
|
2450
|
+
return null;
|
|
2451
|
+
switch (n) {
|
|
2452
|
+
case "draft":
|
|
2453
|
+
return /* @__PURE__ */ i(ie, { tooltip: t, variant: "dotted", children: o || n });
|
|
2454
|
+
case "requires-attention":
|
|
2455
|
+
return /* @__PURE__ */ i(ie, { tooltip: t, variant: "strong", children: o || n });
|
|
2456
|
+
case "not-applicable":
|
|
2457
|
+
return null;
|
|
2458
|
+
default:
|
|
2459
|
+
return /* @__PURE__ */ i(ie, { tooltip: t, variant: "outline", children: o || n });
|
|
2460
|
+
}
|
|
2461
|
+
}, Or = "_menu_16mue_4", Sr = "_button_16mue_12", Er = "_label_16mue_16", Me = {
|
|
2462
|
+
menu: Or,
|
|
2463
|
+
button: Sr,
|
|
2464
|
+
label: Er
|
|
2465
|
+
}, pa = Fe(
|
|
2466
|
+
({
|
|
2467
|
+
disabled: e,
|
|
2468
|
+
label: n = "Label",
|
|
2469
|
+
variant: o = "solid",
|
|
2470
|
+
title: t = "Title",
|
|
2471
|
+
htmlTitle: r,
|
|
2472
|
+
items: a = [],
|
|
2473
|
+
dropdownSize: d = "sm",
|
|
2474
|
+
id: u = "toolbar-menu",
|
|
2475
|
+
onSelectId: s,
|
|
2476
|
+
...l
|
|
2477
|
+
}) => {
|
|
2478
|
+
const p = an({ id: u, returnFocusOnClose: !0 }), c = l.searchable ? "combobox" : "menu", h = xt(
|
|
2479
|
+
(g) => {
|
|
2480
|
+
s?.(g?.id ?? ""), g?.role !== "checkbox" && p.setOpen(!1);
|
|
2481
|
+
},
|
|
2482
|
+
[s, p]
|
|
2483
|
+
), v = fe(
|
|
2484
|
+
() => a.map((g) => ({
|
|
2485
|
+
...g,
|
|
2486
|
+
onClick: () => h(g)
|
|
2487
|
+
})),
|
|
2488
|
+
[a, h]
|
|
2489
|
+
);
|
|
2490
|
+
return e ? /* @__PURE__ */ w(_e, { className: Me.button, variant: o, title: r, disabled: !0, children: [
|
|
2491
|
+
/* @__PURE__ */ i("span", { className: Me.label, children: n }),
|
|
2492
|
+
/* @__PURE__ */ i(ct, { "aria-hidden": "true", focusable: "false" })
|
|
2493
|
+
] }) : /* @__PURE__ */ i("span", { className: Me.menu, children: /* @__PURE__ */ i(
|
|
2494
|
+
er,
|
|
2495
|
+
{
|
|
2496
|
+
id: u,
|
|
2497
|
+
variant: "drawer-dropdown",
|
|
2498
|
+
title: t,
|
|
2499
|
+
size: d,
|
|
2500
|
+
trigger: /* @__PURE__ */ w(
|
|
2501
|
+
_e,
|
|
2502
|
+
{
|
|
2503
|
+
className: Me.button,
|
|
2504
|
+
variant: o,
|
|
2505
|
+
title: r,
|
|
2506
|
+
onClick: p.toggleMenu,
|
|
2507
|
+
"aria-expanded": p.open,
|
|
2508
|
+
"aria-haspopup": "menu",
|
|
2509
|
+
"aria-controls": p.open ? p.menuId : void 0,
|
|
2510
|
+
ref: p.triggerRef,
|
|
2511
|
+
children: [
|
|
2512
|
+
/* @__PURE__ */ i("span", { className: Me.label, children: n }),
|
|
2513
|
+
/* @__PURE__ */ i(ct, { "aria-hidden": "true", focusable: "false" })
|
|
2514
|
+
]
|
|
2515
|
+
}
|
|
2516
|
+
),
|
|
2517
|
+
open: p.open,
|
|
2518
|
+
onClose: () => p.setOpen(!1),
|
|
2519
|
+
...l?.searchable ? {} : p.dropdownA11yProps,
|
|
2520
|
+
children: /* @__PURE__ */ i(
|
|
2521
|
+
Lt,
|
|
2522
|
+
{
|
|
2523
|
+
...l,
|
|
2524
|
+
items: v,
|
|
2525
|
+
keyboardEvents: p.open,
|
|
2526
|
+
a11yMode: c,
|
|
2527
|
+
open: p.open,
|
|
2528
|
+
scrollToTopOnOpen: l.virtualized,
|
|
2529
|
+
...c === "combobox" ? { id: p.menuId } : p.menuA11yProps
|
|
2530
|
+
}
|
|
2531
|
+
)
|
|
2532
|
+
}
|
|
2533
|
+
) });
|
|
2534
|
+
}
|
|
2535
|
+
), fa = Fe(
|
|
2536
|
+
({
|
|
2537
|
+
label: e,
|
|
2538
|
+
hideLabel: n = !0,
|
|
2539
|
+
value: o,
|
|
2540
|
+
name: t,
|
|
2541
|
+
placeholder: r = "Search",
|
|
2542
|
+
loading: a,
|
|
2543
|
+
collapsible: d,
|
|
2544
|
+
clearButtonAltText: u = "Clear search",
|
|
2545
|
+
onChange: s,
|
|
2546
|
+
onClear: l,
|
|
2547
|
+
onKeyDown: p,
|
|
2548
|
+
menu: c,
|
|
2549
|
+
minLength: h,
|
|
2550
|
+
disabled: v,
|
|
2551
|
+
htmlTitle: g
|
|
2552
|
+
}) => /* @__PURE__ */ i(
|
|
2553
|
+
$t,
|
|
2554
|
+
{
|
|
2555
|
+
size: "xs",
|
|
2556
|
+
label: e,
|
|
2557
|
+
hideLabel: n,
|
|
2558
|
+
value: o,
|
|
2559
|
+
name: t,
|
|
2560
|
+
title: g,
|
|
2561
|
+
placeholder: r,
|
|
2562
|
+
clearButtonAltText: u,
|
|
2563
|
+
onChange: s,
|
|
2564
|
+
onClear: l,
|
|
2565
|
+
onKeyDown: p,
|
|
2566
|
+
collapsible: d,
|
|
2567
|
+
autoComplete: "off",
|
|
2568
|
+
autoCapitalize: "off",
|
|
2569
|
+
type: "search",
|
|
2570
|
+
minLength: h,
|
|
2571
|
+
loading: a,
|
|
2572
|
+
menu: c,
|
|
2573
|
+
disabled: v
|
|
2574
|
+
}
|
|
2575
|
+
)
|
|
2576
|
+
);
|
|
2577
|
+
export {
|
|
2578
|
+
ie as B,
|
|
2579
|
+
hr as D,
|
|
2580
|
+
Dn as F,
|
|
2581
|
+
Ee as H,
|
|
2582
|
+
ce as I,
|
|
2583
|
+
Lt as M,
|
|
2584
|
+
ua as R,
|
|
2585
|
+
$t as S,
|
|
2586
|
+
pa as T,
|
|
2587
|
+
Hn as V,
|
|
2588
|
+
Go as a,
|
|
2589
|
+
rr as b,
|
|
2590
|
+
jt as c,
|
|
2591
|
+
mr as d,
|
|
2592
|
+
Ir as e,
|
|
2593
|
+
xr as f,
|
|
2594
|
+
er as g,
|
|
2595
|
+
bt as h,
|
|
2596
|
+
gt as i,
|
|
2597
|
+
Tt as j,
|
|
2598
|
+
Mt as k,
|
|
2599
|
+
Nt as l,
|
|
2600
|
+
re as m,
|
|
2601
|
+
yt as n,
|
|
2602
|
+
da as o,
|
|
2603
|
+
io as p,
|
|
2604
|
+
so as q,
|
|
2605
|
+
Pt as r,
|
|
2606
|
+
yn as s,
|
|
2607
|
+
ct as t,
|
|
2608
|
+
En as u,
|
|
2609
|
+
qe as v,
|
|
2610
|
+
fa as w,
|
|
2611
|
+
tt as x,
|
|
2612
|
+
vo as y,
|
|
2613
|
+
fo as z
|
|
2614
|
+
};
|