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