@altinn/altinn-components 0.68.8 → 0.68.10
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-CX_woN0c.js → ToolbarSearch-BWqWKrm-.js} +567 -573
- package/dist/assets/ToolbarSearch.css +1 -1
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +14 -15
- 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 +1 -1
- package/dist/components/Datepicker/DatepickerHeader.js +1 -1
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +21 -25
- 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/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/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Snackbar/index.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/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 +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/Typography/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/index.js +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +12 -6
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +4 -1
- package/dist/types/lib/components/Metadata/MetaItem.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i, jsxs as w, Fragment as we } from "react/jsx-runtime";
|
|
3
3
|
import * as q from "react";
|
|
4
|
-
import
|
|
4
|
+
import S, { forwardRef as Q, useRef as J, useState as ue, useMemo as me, useEffect as U, Fragment as wt, useLayoutEffect as Xe, createContext as Ht, useContext as Ft, isValidElement as _t, useId as lt, useCallback as xt, memo as Fe, createElement as qt } from "react";
|
|
5
5
|
import "./tooltip-Caqi75cv.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as K } from "./index-p1eeF8LQ.js";
|
|
7
7
|
import { useEscapeKey as Wt } from "./hooks/useEscapeKey.js";
|
|
8
8
|
import "./components/Typography/Link.js";
|
|
9
9
|
import { Button as _e } from "./components/Button/Button.js";
|
|
@@ -48,11 +48,11 @@ import './assets/ToolbarSearch.css';var un = function(e, n) {
|
|
|
48
48
|
const pn = Q((e, n) => {
|
|
49
49
|
var { title: o, titleId: t } = e, r = un(e, ["title", "titleId"]);
|
|
50
50
|
let a = X();
|
|
51
|
-
return a = o ? t || "title-" + a : void 0,
|
|
51
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
52
52
|
"svg",
|
|
53
53
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
54
|
-
o ?
|
|
55
|
-
|
|
54
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
55
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm15.5 6a.25.25 0 0 1 .25.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V9.5a.25.25 0 0 1 .25-.25zm-4.75 3.25a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75", clipRule: "evenodd" })
|
|
56
56
|
);
|
|
57
57
|
});
|
|
58
58
|
var fn = function(e, n) {
|
|
@@ -66,11 +66,11 @@ var fn = function(e, n) {
|
|
|
66
66
|
const mn = Q((e, n) => {
|
|
67
67
|
var { title: o, titleId: t } = e, r = fn(e, ["title", "titleId"]);
|
|
68
68
|
let a = X();
|
|
69
|
-
return a = o ? t || "title-" + a : void 0,
|
|
69
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
70
70
|
"svg",
|
|
71
71
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
72
|
-
o ?
|
|
73
|
-
|
|
72
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
73
|
+
S.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
76
|
var hn = function(e, n) {
|
|
@@ -84,11 +84,11 @@ var hn = function(e, n) {
|
|
|
84
84
|
const vn = Q((e, n) => {
|
|
85
85
|
var { title: o, titleId: t } = e, r = hn(e, ["title", "titleId"]);
|
|
86
86
|
let a = X();
|
|
87
|
-
return a = o ? t || "title-" + a : void 0,
|
|
87
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
88
88
|
"svg",
|
|
89
89
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
90
|
-
o ?
|
|
91
|
-
|
|
90
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
91
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.75 2.5a.75.75 0 0 0-1.5 0v1.273c-2.222.14-3.655.92-4.499 2.186-.887 1.33-1.001 3.04-1.001 4.541v3c0 .809-.424 1.92-.92 2.915a18 18 0 0 1-.936 1.641l-.014.022-.004.006A.75.75 0 0 0 4.5 19.25h4.338a3.25 3.25 0 0 0 6.324 0H19.5a.75.75 0 0 0 .624-1.166l-.004-.006-.014-.022-.06-.091c-.05-.081-.125-.2-.215-.35-.18-.301-.42-.722-.66-1.2-.497-.994-.921-2.106-.921-2.915v-3c0-1.501-.114-3.21-1.001-4.541-.844-1.266-2.277-2.046-4.499-2.186zm-1.987 17.237a1.8 1.8 0 0 1-.344-.487h3.162a1.75 1.75 0 0 1-1.581 1 1.75 1.75 0 0 1-1.237-.513", clipRule: "evenodd" })
|
|
92
92
|
);
|
|
93
93
|
});
|
|
94
94
|
var gn = function(e, n) {
|
|
@@ -102,11 +102,11 @@ var gn = function(e, n) {
|
|
|
102
102
|
const Pt = Q((e, n) => {
|
|
103
103
|
var { title: o, titleId: t } = e, r = gn(e, ["title", "titleId"]);
|
|
104
104
|
let a = X();
|
|
105
|
-
return a = o ? t || "title-" + a : void 0,
|
|
105
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
106
106
|
"svg",
|
|
107
107
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
108
|
-
o ?
|
|
109
|
-
|
|
108
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
109
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
|
|
110
110
|
);
|
|
111
111
|
});
|
|
112
112
|
var bn = function(e, n) {
|
|
@@ -120,11 +120,11 @@ var bn = function(e, n) {
|
|
|
120
120
|
const yn = Q((e, n) => {
|
|
121
121
|
var { title: o, titleId: t } = e, r = bn(e, ["title", "titleId"]);
|
|
122
122
|
let a = X();
|
|
123
|
-
return a = o ? t || "title-" + a : void 0,
|
|
123
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
124
124
|
"svg",
|
|
125
125
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
126
|
-
o ?
|
|
127
|
-
|
|
126
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
127
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.47 5.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 1 1-1.06-1.06L14.44 12 9.47 7.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
128
128
|
);
|
|
129
129
|
});
|
|
130
130
|
var wn = function(e, n) {
|
|
@@ -138,11 +138,11 @@ var wn = function(e, n) {
|
|
|
138
138
|
const ct = Q((e, n) => {
|
|
139
139
|
var { title: o, titleId: t } = e, r = wn(e, ["title", "titleId"]);
|
|
140
140
|
let a = X();
|
|
141
|
-
return a = o ? t || "title-" + a : void 0,
|
|
141
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
142
142
|
"svg",
|
|
143
143
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
144
|
-
o ?
|
|
145
|
-
|
|
144
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
145
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L12 6.06l2.97 2.97a.75.75 0 1 0 1.06-1.06zm-3.5 10.5a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06L12 17.94z", clipRule: "evenodd" })
|
|
146
146
|
);
|
|
147
147
|
});
|
|
148
148
|
var _n = function(e, n) {
|
|
@@ -156,11 +156,11 @@ var _n = function(e, n) {
|
|
|
156
156
|
const xn = Q((e, n) => {
|
|
157
157
|
var { title: o, titleId: t } = e, r = _n(e, ["title", "titleId"]);
|
|
158
158
|
let a = X();
|
|
159
|
-
return a = o ? t || "title-" + a : void 0,
|
|
159
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
160
160
|
"svg",
|
|
161
161
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
162
|
-
o ?
|
|
163
|
-
|
|
162
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
163
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
|
|
164
164
|
);
|
|
165
165
|
});
|
|
166
166
|
var In = function(e, n) {
|
|
@@ -174,11 +174,11 @@ var In = function(e, n) {
|
|
|
174
174
|
const On = Q((e, n) => {
|
|
175
175
|
var { title: o, titleId: t } = e, r = In(e, ["title", "titleId"]);
|
|
176
176
|
let a = X();
|
|
177
|
-
return a = o ? t || "title-" + a : void 0,
|
|
177
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
178
178
|
"svg",
|
|
179
179
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
180
|
-
o ?
|
|
181
|
-
|
|
180
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
181
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
|
|
182
182
|
);
|
|
183
183
|
});
|
|
184
184
|
var Sn = function(e, n) {
|
|
@@ -192,11 +192,11 @@ var Sn = function(e, n) {
|
|
|
192
192
|
const En = Q((e, n) => {
|
|
193
193
|
var { title: o, titleId: t } = e, r = Sn(e, ["title", "titleId"]);
|
|
194
194
|
let a = X();
|
|
195
|
-
return a = o ? t || "title-" + a : void 0,
|
|
195
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
196
196
|
"svg",
|
|
197
197
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
198
|
-
o ?
|
|
199
|
-
|
|
198
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
199
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
|
|
200
200
|
);
|
|
201
201
|
});
|
|
202
202
|
var kn = function(e, n) {
|
|
@@ -210,11 +210,11 @@ var kn = function(e, n) {
|
|
|
210
210
|
const Pn = Q((e, n) => {
|
|
211
211
|
var { title: o, titleId: t } = e, r = kn(e, ["title", "titleId"]);
|
|
212
212
|
let a = X();
|
|
213
|
-
return a = o ? t || "title-" + a : void 0,
|
|
213
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
214
214
|
"svg",
|
|
215
215
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
216
|
-
o ?
|
|
217
|
-
|
|
216
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
217
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
|
|
218
218
|
);
|
|
219
219
|
});
|
|
220
220
|
var Nn = function(e, n) {
|
|
@@ -228,11 +228,11 @@ var Nn = function(e, n) {
|
|
|
228
228
|
const Mn = Q((e, n) => {
|
|
229
229
|
var { title: o, titleId: t } = e, r = Nn(e, ["title", "titleId"]);
|
|
230
230
|
let a = X();
|
|
231
|
-
return a = o ? t || "title-" + a : void 0,
|
|
231
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
232
232
|
"svg",
|
|
233
233
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
234
|
-
o ?
|
|
235
|
-
|
|
234
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
235
|
+
S.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.75c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm6.75 1.5V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25H4.5a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.875-11.384h.806a.75.75 0 0 0 0-1.5h-2.75m-6 4.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0zM14 9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
|
|
236
236
|
);
|
|
237
237
|
});
|
|
238
238
|
var An = function(e, n) {
|
|
@@ -246,11 +246,11 @@ var An = function(e, n) {
|
|
|
246
246
|
const qe = Q((e, n) => {
|
|
247
247
|
var { title: o, titleId: t } = e, r = An(e, ["title", "titleId"]);
|
|
248
248
|
let a = X();
|
|
249
|
-
return a = o ? t || "title-" + a : void 0,
|
|
249
|
+
return a = o ? t || "title-" + a : void 0, S.createElement(
|
|
250
250
|
"svg",
|
|
251
251
|
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: n, "aria-labelledby": a }, r),
|
|
252
|
-
o ?
|
|
253
|
-
|
|
252
|
+
o ? S.createElement("title", { id: a }, o) : null,
|
|
253
|
+
S.createElement("path", { fill: "currentColor", d: "M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z" })
|
|
254
254
|
);
|
|
255
255
|
}), Cn = "_badge_5li3b_1", Rn = "_label_5li3b_33", ze = {
|
|
256
256
|
badge: Cn,
|
|
@@ -268,7 +268,7 @@ const qe = Q((e, n) => {
|
|
|
268
268
|
}) => a ? /* @__PURE__ */ i(at, { content: a, children: /* @__PURE__ */ i(
|
|
269
269
|
"span",
|
|
270
270
|
{
|
|
271
|
-
className:
|
|
271
|
+
className: K(ze.badge, d),
|
|
272
272
|
style: u,
|
|
273
273
|
"data-color": n,
|
|
274
274
|
"data-variant": o,
|
|
@@ -280,7 +280,7 @@ const qe = Q((e, n) => {
|
|
|
280
280
|
) }) : /* @__PURE__ */ i(
|
|
281
281
|
"span",
|
|
282
282
|
{
|
|
283
|
-
className:
|
|
283
|
+
className: K(ze.badge, d),
|
|
284
284
|
style: u,
|
|
285
285
|
"data-color": n,
|
|
286
286
|
"data-variant": o,
|
|
@@ -294,7 +294,7 @@ const qe = Q((e, n) => {
|
|
|
294
294
|
shape: Ln,
|
|
295
295
|
svg: Tn,
|
|
296
296
|
image: $n
|
|
297
|
-
}, tt = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e),
|
|
297
|
+
}, tt = (e) => typeof e == "object" && e !== null && ("svgElement" in e || "iconUrl" in e), de = ({
|
|
298
298
|
loading: e,
|
|
299
299
|
altText: n,
|
|
300
300
|
svgElement: o,
|
|
@@ -304,10 +304,10 @@ const qe = Q((e, n) => {
|
|
|
304
304
|
className: d,
|
|
305
305
|
style: u,
|
|
306
306
|
children: s
|
|
307
|
-
}) => /* @__PURE__ */ i("span", { "data-ui": "icon", "data-size": t, "data-color": r, className:
|
|
307
|
+
}) => /* @__PURE__ */ i("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: K(ke.icon, d), style: u, children: /* @__PURE__ */ w(xe, { loading: e, variant: "circle", className: ke.shape, children: [
|
|
308
308
|
/* @__PURE__ */ i("span", { className: ke.shape }),
|
|
309
309
|
o && /* @__PURE__ */ i(o, { "aria-hidden": "true", "alt-label": n, className: ke.svg }),
|
|
310
|
-
a && /* @__PURE__ */ i("img", { src: a, alt: n, className: ke.image }),
|
|
310
|
+
a && /* @__PURE__ */ i("img", { src: a, alt: n, "aria-hidden": !n, className: ke.image }),
|
|
311
311
|
s
|
|
312
312
|
] }) }), Dn = ({ size: e, color: n, label: o, htmlFor: t, helperText: r, children: a, ...d }) => /* @__PURE__ */ w(Xt, { size: e, color: n, ...d, children: [
|
|
313
313
|
o && /* @__PURE__ */ i(Jt, { size: e, htmlFor: t, children: o }),
|
|
@@ -329,10 +329,10 @@ const qe = Q((e, n) => {
|
|
|
329
329
|
combobox: l = !1,
|
|
330
330
|
listId: p,
|
|
331
331
|
"aria-activedescendant": c,
|
|
332
|
-
onKeyDown:
|
|
332
|
+
onKeyDown: m,
|
|
333
333
|
onInput: v,
|
|
334
334
|
onFocus: g,
|
|
335
|
-
...
|
|
335
|
+
...C
|
|
336
336
|
}) => {
|
|
337
337
|
const _ = /* @__PURE__ */ i(
|
|
338
338
|
$t,
|
|
@@ -349,8 +349,8 @@ const qe = Q((e, n) => {
|
|
|
349
349
|
autoCorrect: "off",
|
|
350
350
|
autoCapitalize: "off",
|
|
351
351
|
autoFocus: !0,
|
|
352
|
-
onKeyDown: (
|
|
353
|
-
(
|
|
352
|
+
onKeyDown: (b) => {
|
|
353
|
+
(b.key === "ArrowUp" || b.key === "ArrowDown") && (b.preventDefault(), s?.()), m?.(b);
|
|
354
354
|
},
|
|
355
355
|
onInput: v,
|
|
356
356
|
onFocus: g,
|
|
@@ -362,7 +362,7 @@ const qe = Q((e, n) => {
|
|
|
362
362
|
"aria-controls": p,
|
|
363
363
|
"aria-activedescendant": c
|
|
364
364
|
} : {},
|
|
365
|
-
...
|
|
365
|
+
...C
|
|
366
366
|
}
|
|
367
367
|
);
|
|
368
368
|
return l ? /* @__PURE__ */ i("div", { className: Ve.search, style: e, "data-index": n, "data-menu-search": "true", children: _ }) : /* @__PURE__ */ i("li", { className: Ve.search, style: e, "data-index": n, "data-menu-search": "true", children: _ });
|
|
@@ -379,150 +379,150 @@ const qe = Q((e, n) => {
|
|
|
379
379
|
search: l,
|
|
380
380
|
items: p,
|
|
381
381
|
groups: c = {},
|
|
382
|
-
size:
|
|
382
|
+
size: m,
|
|
383
383
|
id: v,
|
|
384
384
|
color: g,
|
|
385
|
-
variant:
|
|
385
|
+
variant: C,
|
|
386
386
|
scrollRefStyles: _ = {},
|
|
387
|
-
keyboardEvents:
|
|
387
|
+
keyboardEvents: b = !1,
|
|
388
388
|
onSelect: L = () => {
|
|
389
389
|
},
|
|
390
|
-
onActiveItemIdChange:
|
|
390
|
+
onActiveItemIdChange: x
|
|
391
391
|
}) => {
|
|
392
392
|
if (n && e >= n)
|
|
393
393
|
return null;
|
|
394
|
-
const
|
|
395
|
-
() => p.map((
|
|
396
|
-
...
|
|
397
|
-
id: `${v}-item-${
|
|
394
|
+
const A = t === "combobox", h = t === "navigation", R = A && v ? `${v}-listbox` : v, O = J(r), $ = J(r), [W, I] = ue(!1), T = me(
|
|
395
|
+
() => p.map((P, j) => ({
|
|
396
|
+
...P,
|
|
397
|
+
id: `${v}-item-${j}`
|
|
398
398
|
})),
|
|
399
399
|
[p, v]
|
|
400
|
-
),
|
|
400
|
+
), k = J(null), { menu: M, setActiveIndex: f, activeItem: E } = rt({
|
|
401
401
|
items: T,
|
|
402
402
|
groups: c,
|
|
403
403
|
groupByKey: "groupId",
|
|
404
|
-
keyboardEvents:
|
|
404
|
+
keyboardEvents: b,
|
|
405
405
|
autoActivateFirstItem: d,
|
|
406
406
|
onSelect: L,
|
|
407
|
-
ref:
|
|
407
|
+
ref: k
|
|
408
408
|
});
|
|
409
409
|
U(() => {
|
|
410
|
-
|
|
411
|
-
}, [
|
|
410
|
+
x?.(E?.id);
|
|
411
|
+
}, [E?.id, x]), U(() => {
|
|
412
412
|
if (!a) {
|
|
413
|
-
|
|
413
|
+
O.current = r;
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
|
|
416
|
+
const P = O.current;
|
|
417
|
+
O.current = r, r && !P && k.current?.scrollTo({ top: 0 });
|
|
418
418
|
}, [r, a]), U(() => {
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
}, [r,
|
|
422
|
-
if (
|
|
423
|
-
|
|
419
|
+
const P = $.current;
|
|
420
|
+
$.current = r, !(!b || l || !u) && r && !P && requestAnimationFrame(() => k.current?.focus?.({ preventScroll: !0 }));
|
|
421
|
+
}, [r, b, l]), U(() => {
|
|
422
|
+
if (A && s) {
|
|
423
|
+
f(0), I(!0);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
}, [s,
|
|
426
|
+
}, [s, A, f]);
|
|
427
427
|
const z = l ? /* @__PURE__ */ i(
|
|
428
428
|
Nt,
|
|
429
429
|
{
|
|
430
430
|
...l,
|
|
431
|
-
combobox:
|
|
431
|
+
combobox: A,
|
|
432
432
|
listId: R,
|
|
433
|
-
"aria-activedescendant":
|
|
434
|
-
onNavigate:
|
|
435
|
-
onChange: (
|
|
436
|
-
|
|
433
|
+
"aria-activedescendant": A && W ? E?.id : void 0,
|
|
434
|
+
onNavigate: A ? () => I(!0) : void 0,
|
|
435
|
+
onChange: (P) => {
|
|
436
|
+
I(!1), l.onChange?.(P);
|
|
437
437
|
},
|
|
438
|
-
onFocus: (
|
|
439
|
-
|
|
438
|
+
onFocus: (P) => {
|
|
439
|
+
I(!1), l.onFocus?.(P);
|
|
440
440
|
},
|
|
441
|
-
onInput: (
|
|
442
|
-
|
|
441
|
+
onInput: (P) => {
|
|
442
|
+
I(!1), l.onInput?.(P);
|
|
443
443
|
},
|
|
444
|
-
onKeyDown: (
|
|
445
|
-
const
|
|
446
|
-
|
|
444
|
+
onKeyDown: (P) => {
|
|
445
|
+
const j = P.key === "ArrowUp" || P.key === "ArrowDown", F = P.key.length === 1 || P.key === "Backspace" || P.key === "Delete";
|
|
446
|
+
A && !j && F && I(!1), l.onKeyDown?.(P);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
) : null,
|
|
449
|
+
) : null, D = /* @__PURE__ */ w(
|
|
450
450
|
De,
|
|
451
451
|
{
|
|
452
|
-
variant:
|
|
452
|
+
variant: C,
|
|
453
453
|
expanded: o,
|
|
454
|
-
ref:
|
|
454
|
+
ref: k,
|
|
455
455
|
style: _,
|
|
456
456
|
id: R,
|
|
457
|
-
role:
|
|
458
|
-
tabIndex:
|
|
457
|
+
role: A ? "listbox" : h ? "list" : "menu",
|
|
458
|
+
tabIndex: b ? -1 : void 0,
|
|
459
459
|
children: [
|
|
460
|
-
!
|
|
461
|
-
|
|
462
|
-
const
|
|
460
|
+
!A && z,
|
|
461
|
+
M.map((P, j) => {
|
|
462
|
+
const F = P?.props || {}, { title: G, hidden: se = !1, divider: ee = !0 } = F;
|
|
463
463
|
return /* @__PURE__ */ w(wt, { children: [
|
|
464
|
-
(e > 0 ||
|
|
465
|
-
/* @__PURE__ */ i(St, { hidden:
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
const { active:
|
|
464
|
+
(e > 0 || j) && ee ? /* @__PURE__ */ i(Et, {}) : "",
|
|
465
|
+
/* @__PURE__ */ i(St, { hidden: se, children: /* @__PURE__ */ w(De, { role: "presentation", children: [
|
|
466
|
+
G && /* @__PURE__ */ i(kt, { title: G, level: e }),
|
|
467
|
+
P?.items.filter((te) => !te.props?.hidden).map((te, y) => {
|
|
468
|
+
const { active: N, onMouseEnter: H } = te, { groupId: ne, ...B } = te.props || {}, { expanded: le } = B, ce = Array.isArray(B?.items) && B.items.length > 0, Ge = B.role === "checkbox" || B.role === "radio", Ke = B.role === "radio" ? "menuitemradio" : "menuitemcheckbox", Bt = h ? void 0 : A ? "option" : Ge ? Ke : B.role;
|
|
469
469
|
return /* @__PURE__ */ w(
|
|
470
470
|
Ot,
|
|
471
471
|
{
|
|
472
|
-
expanded:
|
|
473
|
-
onMouseLeave: () =>
|
|
474
|
-
role:
|
|
472
|
+
expanded: le,
|
|
473
|
+
onMouseLeave: () => f(-1),
|
|
474
|
+
role: h ? "listitem" : "presentation",
|
|
475
475
|
children: [
|
|
476
476
|
/* @__PURE__ */ i(
|
|
477
477
|
Tt,
|
|
478
478
|
{
|
|
479
|
-
...
|
|
480
|
-
size:
|
|
481
|
-
color:
|
|
482
|
-
variant:
|
|
483
|
-
active:
|
|
479
|
+
...B,
|
|
480
|
+
size: B?.size || F?.size || m,
|
|
481
|
+
color: B?.color || F?.color || g,
|
|
482
|
+
variant: B?.variant || F?.variant || C,
|
|
483
|
+
active: N,
|
|
484
484
|
role: Bt,
|
|
485
485
|
a11yMode: t,
|
|
486
|
-
selected:
|
|
487
|
-
tabIndex:
|
|
488
|
-
onMouseEnter:
|
|
489
|
-
"aria-haspopup":
|
|
490
|
-
"aria-expanded":
|
|
491
|
-
"aria-controls":
|
|
486
|
+
selected: B.selected,
|
|
487
|
+
tabIndex: B?.disabled || b ? -1 : B.tabIndex ?? 0,
|
|
488
|
+
onMouseEnter: H,
|
|
489
|
+
"aria-haspopup": ce && !h ? "menu" : void 0,
|
|
490
|
+
"aria-expanded": ce ? le : void 0,
|
|
491
|
+
"aria-controls": ce ? B.id + "-menu" : void 0
|
|
492
492
|
}
|
|
493
493
|
),
|
|
494
|
-
|
|
494
|
+
le && B?.items && /* @__PURE__ */ i(
|
|
495
495
|
Mt,
|
|
496
496
|
{
|
|
497
|
-
id:
|
|
498
|
-
expanded:
|
|
497
|
+
id: B.id + "-menu",
|
|
498
|
+
expanded: le,
|
|
499
499
|
level: e + 1,
|
|
500
500
|
maxLevels: n,
|
|
501
|
-
items:
|
|
501
|
+
items: B?.items,
|
|
502
502
|
groups: c,
|
|
503
|
-
size:
|
|
503
|
+
size: m,
|
|
504
504
|
color: g,
|
|
505
|
-
variant:
|
|
505
|
+
variant: C,
|
|
506
506
|
a11yMode: t
|
|
507
507
|
}
|
|
508
508
|
)
|
|
509
509
|
]
|
|
510
510
|
},
|
|
511
|
-
|
|
511
|
+
y
|
|
512
512
|
);
|
|
513
513
|
})
|
|
514
|
-
] }) },
|
|
515
|
-
] },
|
|
514
|
+
] }) }, j)
|
|
515
|
+
] }, j);
|
|
516
516
|
})
|
|
517
517
|
]
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
|
-
return
|
|
520
|
+
return A && z ? /* @__PURE__ */ w(we, { children: [
|
|
521
521
|
z,
|
|
522
|
-
|
|
523
|
-
] }) :
|
|
522
|
+
D
|
|
523
|
+
] }) : D;
|
|
524
524
|
}, Hn = (e) => {
|
|
525
|
-
const n = J(null), o = J(null), [t, r] =
|
|
525
|
+
const n = J(null), o = J(null), [t, r] = ue(0), {
|
|
526
526
|
search: a,
|
|
527
527
|
items: d,
|
|
528
528
|
groups: u = {},
|
|
@@ -530,184 +530,184 @@ const qe = Q((e, n) => {
|
|
|
530
530
|
color: l,
|
|
531
531
|
variant: p,
|
|
532
532
|
keyboardEvents: c,
|
|
533
|
-
scrollRefStyles:
|
|
533
|
+
scrollRefStyles: m = {},
|
|
534
534
|
id: v,
|
|
535
535
|
expanded: g,
|
|
536
|
-
a11yMode:
|
|
536
|
+
a11yMode: C = "menu",
|
|
537
537
|
open: _,
|
|
538
|
-
scrollToTopOnOpen:
|
|
538
|
+
scrollToTopOnOpen: b = !1,
|
|
539
539
|
autoActivateFirstItem: L = !0,
|
|
540
|
-
announceNoResults:
|
|
541
|
-
onActiveItemIdChange:
|
|
542
|
-
} = e,
|
|
543
|
-
() => d.map((
|
|
544
|
-
...
|
|
545
|
-
id: `${v}-item-${
|
|
540
|
+
announceNoResults: x = !1,
|
|
541
|
+
onActiveItemIdChange: A
|
|
542
|
+
} = e, h = C === "combobox", R = C === "navigation", O = h && v ? `${v}-listbox` : v, $ = J(_), [W, I] = ue(!1), T = me(
|
|
543
|
+
() => d.map((y, N) => ({
|
|
544
|
+
...y,
|
|
545
|
+
id: `${v}-item-${N}`
|
|
546
546
|
})),
|
|
547
547
|
[d, v]
|
|
548
|
-
), { menu:
|
|
548
|
+
), { menu: k, activeItem: M, setActiveIndex: f, activeIndex: E } = rt({
|
|
549
549
|
items: T,
|
|
550
550
|
groups: u,
|
|
551
551
|
groupByKey: "groupId",
|
|
552
552
|
keyboardEvents: c,
|
|
553
553
|
autoActivateFirstItem: L,
|
|
554
554
|
ref: n
|
|
555
|
-
}), { flatMenu: z, virtualizer:
|
|
556
|
-
menu:
|
|
555
|
+
}), { flatMenu: z, virtualizer: D, scrollMaxHeight: P } = tn({
|
|
556
|
+
menu: k,
|
|
557
557
|
scrollRef: n
|
|
558
558
|
});
|
|
559
559
|
Xe(() => {
|
|
560
|
-
const
|
|
561
|
-
if (!
|
|
562
|
-
const
|
|
563
|
-
r((
|
|
560
|
+
const y = o.current;
|
|
561
|
+
if (!y) return;
|
|
562
|
+
const N = Math.round(y.offsetTop);
|
|
563
|
+
r((H) => H === N ? H : N);
|
|
564
564
|
});
|
|
565
|
-
const
|
|
566
|
-
const
|
|
567
|
-
if (
|
|
568
|
-
return z.findIndex((
|
|
569
|
-
if (
|
|
570
|
-
let
|
|
571
|
-
for (let
|
|
572
|
-
if (z[
|
|
573
|
-
return
|
|
565
|
+
const j = me(() => {
|
|
566
|
+
const y = M?.id;
|
|
567
|
+
if (y)
|
|
568
|
+
return z.findIndex((H) => H.type === "item" && H.itemProps?.id === y);
|
|
569
|
+
if (E < 0) return -1;
|
|
570
|
+
let N = -1;
|
|
571
|
+
for (let H = 0; H < z.length; H++)
|
|
572
|
+
if (z[H]?.type === "item" && (N += 1, N === E))
|
|
573
|
+
return H;
|
|
574
574
|
return -1;
|
|
575
|
-
}, [
|
|
575
|
+
}, [M?.id, E, z]), F = J(null);
|
|
576
576
|
Xe(() => {
|
|
577
|
-
const
|
|
578
|
-
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
581
|
-
const
|
|
582
|
-
if (!
|
|
583
|
-
const [Ge, Ke] =
|
|
577
|
+
const y = F?.current, N = typeof y == "number" ? j <= y : !1;
|
|
578
|
+
F.current = j;
|
|
579
|
+
const H = N ? j : j + 2;
|
|
580
|
+
if (!N) {
|
|
581
|
+
const ce = D.getOffsetForIndex(H, "auto");
|
|
582
|
+
if (!ce) return;
|
|
583
|
+
const [Ge, Ke] = ce;
|
|
584
584
|
if (Ke === "auto") return;
|
|
585
|
-
|
|
585
|
+
D.scrollToOffset(Ge + t + 10, { align: "start" });
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
589
|
-
|
|
588
|
+
if (j <= 3) {
|
|
589
|
+
D.scrollToOffset(0);
|
|
590
590
|
return;
|
|
591
591
|
}
|
|
592
|
-
const ne =
|
|
592
|
+
const ne = D.getOffsetForIndex(j - 1, "auto");
|
|
593
593
|
if (!ne) return;
|
|
594
|
-
const [
|
|
595
|
-
|
|
596
|
-
}, [
|
|
597
|
-
const
|
|
598
|
-
const
|
|
599
|
-
let
|
|
600
|
-
return z.forEach((
|
|
601
|
-
|
|
602
|
-
}), { positions:
|
|
594
|
+
const [B, le] = ne;
|
|
595
|
+
le !== "auto" && D.scrollToOffset(B + t + 10, { align: "start" });
|
|
596
|
+
}, [j, t, D, F]);
|
|
597
|
+
const G = me(() => {
|
|
598
|
+
const y = /* @__PURE__ */ new Map();
|
|
599
|
+
let N = 0;
|
|
600
|
+
return z.forEach((H, ne) => {
|
|
601
|
+
H.type === "item" && (N += 1, y.set(ne, N));
|
|
602
|
+
}), { positions: y, total: N };
|
|
603
603
|
}, [z]);
|
|
604
604
|
U(() => {
|
|
605
|
-
|
|
606
|
-
}, [
|
|
607
|
-
if (
|
|
608
|
-
|
|
605
|
+
A?.(M?.id);
|
|
606
|
+
}, [M?.id, A]), U(() => {
|
|
607
|
+
if (h && x) {
|
|
608
|
+
f(0), I(!0);
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
}, [
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
}, [_,
|
|
615
|
-
const
|
|
611
|
+
}, [x, h, f]), U(() => {
|
|
612
|
+
const y = $.current;
|
|
613
|
+
$.current = _, !(!_ || y) && (D.measure(), b && n.current?.scrollTo({ top: 0 }));
|
|
614
|
+
}, [_, b, D]);
|
|
615
|
+
const se = {
|
|
616
616
|
position: "relative",
|
|
617
|
-
maxHeight:
|
|
617
|
+
maxHeight: m?.maxHeight || P,
|
|
618
618
|
margin: "-0.5rem",
|
|
619
619
|
padding: "0.5rem 0.5rem 1rem 0.5rem",
|
|
620
|
-
minWidth:
|
|
620
|
+
minWidth: m?.minWidth ?? "20rem",
|
|
621
621
|
overflowY: "auto",
|
|
622
|
-
...
|
|
623
|
-
},
|
|
622
|
+
...m
|
|
623
|
+
}, ee = a ? /* @__PURE__ */ i(
|
|
624
624
|
Nt,
|
|
625
625
|
{
|
|
626
626
|
...a,
|
|
627
|
-
combobox:
|
|
628
|
-
listId:
|
|
629
|
-
"aria-activedescendant":
|
|
630
|
-
onNavigate:
|
|
631
|
-
onChange: (
|
|
632
|
-
|
|
627
|
+
combobox: h,
|
|
628
|
+
listId: O,
|
|
629
|
+
"aria-activedescendant": h && W ? M?.id : void 0,
|
|
630
|
+
onNavigate: h ? () => I(!0) : void 0,
|
|
631
|
+
onChange: (y) => {
|
|
632
|
+
I(!1), a.onChange?.(y);
|
|
633
633
|
},
|
|
634
|
-
onFocus: (
|
|
635
|
-
|
|
634
|
+
onFocus: (y) => {
|
|
635
|
+
I(!1), a.onFocus?.(y);
|
|
636
636
|
},
|
|
637
|
-
onInput: (
|
|
638
|
-
|
|
637
|
+
onInput: (y) => {
|
|
638
|
+
I(!1), a.onInput?.(y);
|
|
639
639
|
},
|
|
640
|
-
onKeyDown: (
|
|
641
|
-
const
|
|
642
|
-
|
|
640
|
+
onKeyDown: (y) => {
|
|
641
|
+
const N = y.key === "ArrowUp" || y.key === "ArrowDown", H = y.key.length === 1 || y.key === "Backspace" || y.key === "Delete";
|
|
642
|
+
h && !N && H && I(!1), a.onKeyDown?.(y);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
) : null,
|
|
645
|
+
) : null, te = /* @__PURE__ */ w(
|
|
646
646
|
De,
|
|
647
647
|
{
|
|
648
648
|
ref: n,
|
|
649
|
-
style:
|
|
649
|
+
style: se,
|
|
650
650
|
variant: p,
|
|
651
651
|
color: l,
|
|
652
652
|
expanded: g,
|
|
653
|
-
id:
|
|
654
|
-
role:
|
|
653
|
+
id: O,
|
|
654
|
+
role: h ? "listbox" : R ? "list" : "menu",
|
|
655
655
|
children: [
|
|
656
|
-
!
|
|
656
|
+
!h && ee,
|
|
657
657
|
/* @__PURE__ */ i(
|
|
658
658
|
St,
|
|
659
659
|
{
|
|
660
660
|
ref: o,
|
|
661
661
|
style: {
|
|
662
662
|
position: "relative",
|
|
663
|
-
height: `${
|
|
663
|
+
height: `${D.getTotalSize()}px`,
|
|
664
664
|
width: "100%"
|
|
665
665
|
},
|
|
666
|
-
children: /* @__PURE__ */ i(De, { style: { width: "100%", minWidth: "100%" }, children:
|
|
667
|
-
const
|
|
668
|
-
if (!
|
|
669
|
-
const
|
|
666
|
+
children: /* @__PURE__ */ i(De, { style: { width: "100%", minWidth: "100%" }, children: D.getVirtualItems().map((y) => {
|
|
667
|
+
const N = z[y.index];
|
|
668
|
+
if (!N) return null;
|
|
669
|
+
const H = {
|
|
670
670
|
position: "absolute",
|
|
671
671
|
top: 0,
|
|
672
672
|
left: 0,
|
|
673
673
|
width: "100%",
|
|
674
|
-
transform: `translateY(${
|
|
674
|
+
transform: `translateY(${y.start}px)`
|
|
675
675
|
}, ne = {
|
|
676
|
-
style:
|
|
677
|
-
index:
|
|
678
|
-
"data-index":
|
|
679
|
-
ref:
|
|
676
|
+
style: H,
|
|
677
|
+
index: y.index,
|
|
678
|
+
"data-index": y.index,
|
|
679
|
+
ref: D.measureElement
|
|
680
680
|
};
|
|
681
|
-
switch (
|
|
681
|
+
switch (N.type) {
|
|
682
682
|
case "divider":
|
|
683
683
|
return /* @__PURE__ */ i(
|
|
684
684
|
Et,
|
|
685
685
|
{
|
|
686
686
|
...ne,
|
|
687
|
-
style: { ...
|
|
687
|
+
style: { ...H, padding: "0.25rem 0" }
|
|
688
688
|
},
|
|
689
|
-
|
|
689
|
+
y.key
|
|
690
690
|
);
|
|
691
691
|
case "header":
|
|
692
|
-
return /* @__PURE__ */ i(kt, { ...ne, title:
|
|
692
|
+
return /* @__PURE__ */ i(kt, { ...ne, title: N.title || "", level: 1 }, y.key);
|
|
693
693
|
default: {
|
|
694
|
-
const
|
|
694
|
+
const B = N.itemProps?.role === "checkbox" || N.itemProps?.role === "radio", le = N.itemProps?.role === "radio" ? "menuitemradio" : "menuitemcheckbox", ce = R ? void 0 : h ? "option" : B ? le : N.itemProps?.role;
|
|
695
695
|
return /* @__PURE__ */ i(Ot, { ...ne, role: R ? "listitem" : "presentation", children: /* @__PURE__ */ i(
|
|
696
696
|
Tt,
|
|
697
697
|
{
|
|
698
|
-
...
|
|
699
|
-
size:
|
|
700
|
-
color:
|
|
701
|
-
variant:
|
|
702
|
-
active:
|
|
703
|
-
role:
|
|
704
|
-
a11yMode:
|
|
705
|
-
selected:
|
|
706
|
-
"aria-posinset":
|
|
707
|
-
"aria-setsize":
|
|
708
|
-
tabIndex:
|
|
698
|
+
...N.itemProps || {},
|
|
699
|
+
size: N.itemProps?.size || s,
|
|
700
|
+
color: N.itemProps?.color || l,
|
|
701
|
+
variant: N.itemProps?.variant || p,
|
|
702
|
+
active: N.active,
|
|
703
|
+
role: ce,
|
|
704
|
+
a11yMode: C,
|
|
705
|
+
selected: N.itemProps?.selected,
|
|
706
|
+
"aria-posinset": h ? G.positions.get(y.index) : void 0,
|
|
707
|
+
"aria-setsize": h ? G.total : void 0,
|
|
708
|
+
tabIndex: N.itemProps?.disabled || c ? -1 : 0
|
|
709
709
|
}
|
|
710
|
-
) },
|
|
710
|
+
) }, y.key);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
}) })
|
|
@@ -716,10 +716,10 @@ const qe = Q((e, n) => {
|
|
|
716
716
|
]
|
|
717
717
|
}
|
|
718
718
|
);
|
|
719
|
-
return
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
] }) :
|
|
719
|
+
return h && ee ? /* @__PURE__ */ w(we, { children: [
|
|
720
|
+
ee,
|
|
721
|
+
te
|
|
722
|
+
] }) : te;
|
|
723
723
|
};
|
|
724
724
|
var We = class extends Event {
|
|
725
725
|
oldState;
|
|
@@ -757,9 +757,9 @@ function qn(e) {
|
|
|
757
757
|
if (!(n instanceof HTMLElement))
|
|
758
758
|
return;
|
|
759
759
|
const o = je(n);
|
|
760
|
-
e.popoverTargetAction === "show" && o === "showing" || e.popoverTargetAction === "hide" && o === "hidden" || (o === "showing" ? Se(n, !0, !0) :
|
|
760
|
+
e.popoverTargetAction === "show" && o === "showing" || e.popoverTargetAction === "hide" && o === "hidden" || (o === "showing" ? Se(n, !0, !0) : he(n, !1) && (Be.set(n, e), nt(n)));
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function he(e, n) {
|
|
763
763
|
return !(e.popover !== "auto" && e.popover !== "manual" && e.popover !== "hint" || !e.isConnected || n && je(e) !== "showing" || !n && je(e) !== "hidden" || e instanceof Fn && e.hasAttribute("open") || document.fullscreenElement === e);
|
|
764
764
|
}
|
|
765
765
|
function ut(e) {
|
|
@@ -859,7 +859,7 @@ function Un(e) {
|
|
|
859
859
|
}
|
|
860
860
|
var He = /* @__PURE__ */ new WeakMap();
|
|
861
861
|
function nt(e) {
|
|
862
|
-
if (!
|
|
862
|
+
if (!he(e, !1))
|
|
863
863
|
return;
|
|
864
864
|
const n = e.ownerDocument;
|
|
865
865
|
if (!e.dispatchEvent(
|
|
@@ -868,7 +868,7 @@ function nt(e) {
|
|
|
868
868
|
oldState: "closed",
|
|
869
869
|
newState: "open"
|
|
870
870
|
})
|
|
871
|
-
) || !
|
|
871
|
+
) || !he(e, !1))
|
|
872
872
|
return;
|
|
873
873
|
let o = !1;
|
|
874
874
|
const t = e.popover;
|
|
@@ -884,12 +884,12 @@ function nt(e) {
|
|
|
884
884
|
Y.get(n) || /* @__PURE__ */ new Set(),
|
|
885
885
|
o,
|
|
886
886
|
!0
|
|
887
|
-
),
|
|
887
|
+
), ve(a || n, o, !0), r = "auto"), t === "hint" && (d ? (ve(d, o, !0), r = "hint") : (ot(
|
|
888
888
|
Y.get(n) || /* @__PURE__ */ new Set(),
|
|
889
889
|
o,
|
|
890
890
|
!0
|
|
891
|
-
), a ? (
|
|
892
|
-
if (t !== e.popover || !
|
|
891
|
+
), a ? (ve(a, o, !0), r = "auto") : r = "hint")), t === "auto" || t === "hint") {
|
|
892
|
+
if (t !== e.popover || !he(e, !1))
|
|
893
893
|
return;
|
|
894
894
|
Re(n) || (o = !0), r === "auto" ? (ae.has(n) || ae.set(n, /* @__PURE__ */ new Set()), ae.get(n).add(e)) : r === "hint" && (Y.has(n) || Y.set(n, /* @__PURE__ */ new Set()), Y.get(n).add(e));
|
|
895
895
|
}
|
|
@@ -899,10 +899,10 @@ function nt(e) {
|
|
|
899
899
|
}
|
|
900
900
|
function Se(e, n = !1, o = !1) {
|
|
901
901
|
var t, r;
|
|
902
|
-
if (!
|
|
902
|
+
if (!he(e, !0))
|
|
903
903
|
return;
|
|
904
904
|
const a = e.ownerDocument;
|
|
905
|
-
if (["auto", "hint"].includes(e.popover) && (
|
|
905
|
+
if (["auto", "hint"].includes(e.popover) && (ve(e, n, o), !he(e, !0)))
|
|
906
906
|
return;
|
|
907
907
|
const d = ae.get(a) || /* @__PURE__ */ new Set(), u = d.has(e) && Ce(d) === e;
|
|
908
908
|
if (Rt(Be.get(e), !1), Be.delete(e), o && (e.dispatchEvent(
|
|
@@ -910,7 +910,7 @@ function Se(e, n = !1, o = !1) {
|
|
|
910
910
|
oldState: "open",
|
|
911
911
|
newState: "closed"
|
|
912
912
|
})
|
|
913
|
-
), u && Ce(d) !== e &&
|
|
913
|
+
), u && Ce(d) !== e && ve(e, n, o), !he(e, !0)))
|
|
914
914
|
return;
|
|
915
915
|
(t = $e.get(a)) == null || t.delete(e), d.delete(e), (r = Y.get(a)) == null || r.delete(e), e.classList.remove(":popover-open"), Ie.set(e, "hidden"), o && At(e, "open", "closed");
|
|
916
916
|
const s = He.get(e);
|
|
@@ -944,7 +944,7 @@ function mt(e, n, o, t) {
|
|
|
944
944
|
n.has(e) && Ce(n) !== e && (r = !0), r && (t = !1);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function ve(e, n, o) {
|
|
948
948
|
var t, r;
|
|
949
949
|
const a = e.ownerDocument || e;
|
|
950
950
|
if (e instanceof Document)
|
|
@@ -981,7 +981,7 @@ function ht(e) {
|
|
|
981
981
|
Ue.set(o, r);
|
|
982
982
|
else if (e.type === "pointerup") {
|
|
983
983
|
const a = Ue.get(o) === r;
|
|
984
|
-
Ue.delete(o), a &&
|
|
984
|
+
Ue.delete(o), a && ve(r || o, !1, !0);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
var Ye = /* @__PURE__ */ new WeakMap();
|
|
@@ -1001,7 +1001,7 @@ var vt = globalThis.ShadowRoot || function() {
|
|
|
1001
1001
|
function Qn() {
|
|
1002
1002
|
return typeof HTMLElement < "u" && typeof HTMLElement.prototype == "object" && "popover" in HTMLElement.prototype;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function pe(e, n, o) {
|
|
1005
1005
|
const t = e[n];
|
|
1006
1006
|
Object.defineProperty(e, n, {
|
|
1007
1007
|
value(r) {
|
|
@@ -1103,7 +1103,7 @@ function eo() {
|
|
|
1103
1103
|
"$1.\\:popover-open"
|
|
1104
1104
|
)), s;
|
|
1105
1105
|
}
|
|
1106
|
-
|
|
1106
|
+
pe(Document.prototype, "querySelector", e), pe(Document.prototype, "querySelectorAll", e), pe(Element.prototype, "querySelector", e), pe(Element.prototype, "querySelectorAll", e), pe(Element.prototype, "matches", e), pe(Element.prototype, "closest", e), pe(
|
|
1107
1107
|
DocumentFragment.prototype,
|
|
1108
1108
|
"querySelectorAll",
|
|
1109
1109
|
e
|
|
@@ -1218,19 +1218,19 @@ function eo() {
|
|
|
1218
1218
|
const c = Oe(p);
|
|
1219
1219
|
if (!(c instanceof vt || c instanceof Document))
|
|
1220
1220
|
return;
|
|
1221
|
-
const
|
|
1221
|
+
const m = l.find(
|
|
1222
1222
|
(v) => {
|
|
1223
1223
|
var g;
|
|
1224
1224
|
return (g = v.matches) == null ? void 0 : g.call(v, "[popovertargetaction],[popovertarget]");
|
|
1225
1225
|
}
|
|
1226
1226
|
);
|
|
1227
|
-
if (
|
|
1228
|
-
qn(
|
|
1227
|
+
if (m) {
|
|
1228
|
+
qn(m), s.preventDefault();
|
|
1229
1229
|
return;
|
|
1230
1230
|
}
|
|
1231
1231
|
}, d = (s) => {
|
|
1232
1232
|
const l = s.key, p = s.target;
|
|
1233
|
-
!s.defaultPrevented && p && (l === "Escape" || l === "Esc") &&
|
|
1233
|
+
!s.defaultPrevented && p && (l === "Escape" || l === "Esc") && ve(p.ownerDocument, !0, !0);
|
|
1234
1234
|
};
|
|
1235
1235
|
((s) => {
|
|
1236
1236
|
s.addEventListener("click", a), s.addEventListener("keydown", d), s.addEventListener("pointerdown", ht), s.addEventListener("pointerup", ht);
|
|
@@ -1275,8 +1275,8 @@ const so = ({
|
|
|
1275
1275
|
}), p.appendChild(c)), c.textContent = "", requestAnimationFrame(() => {
|
|
1276
1276
|
c.textContent = n;
|
|
1277
1277
|
});
|
|
1278
|
-
}, [n]), /* @__PURE__ */ i("span", { className: Pe.itemWrapper, children: /* @__PURE__ */ w(l, { className:
|
|
1279
|
-
/* @__PURE__ */ i(
|
|
1278
|
+
}, [n]), /* @__PURE__ */ i("span", { className: Pe.itemWrapper, children: /* @__PURE__ */ w(l, { className: K(Pe.item, o), "data-color": t, role: "alert", ...s, children: [
|
|
1279
|
+
/* @__PURE__ */ i(de, { svgElement: r, className: Pe.icon, "aria-hidden": "true" }),
|
|
1280
1280
|
/* @__PURE__ */ i("div", { className: Pe.content, children: n }),
|
|
1281
1281
|
d && /* @__PURE__ */ i("div", { className: Pe.action, children: /* @__PURE__ */ i(_e, { variant: "solid", onClick: u, "aria-label": "close", children: /* @__PURE__ */ i(qe, { style: { fontSize: "1.5em" } }) }) })
|
|
1282
1282
|
] }) });
|
|
@@ -1314,7 +1314,7 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1314
1314
|
},
|
|
1315
1315
|
languageCode: "nb"
|
|
1316
1316
|
}, zt = Ht(po), ua = ({ children: e, initialValue: n, debug: o, languageCode: t }) => {
|
|
1317
|
-
const [r, a] =
|
|
1317
|
+
const [r, a] = ue(n?.currentId || ""), [d, u] = ue(n?.previousId || "");
|
|
1318
1318
|
return /* @__PURE__ */ i(
|
|
1319
1319
|
zt.Provider,
|
|
1320
1320
|
{
|
|
@@ -1395,32 +1395,32 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1395
1395
|
groups: d = {}
|
|
1396
1396
|
}) => {
|
|
1397
1397
|
const { languageCode: u } = fo(), s = q.useMemo(() => mo(u), [u]), [l, p] = q.useState(""), c = q.useCallback(
|
|
1398
|
-
(
|
|
1399
|
-
p(
|
|
1398
|
+
(f) => {
|
|
1399
|
+
p(f.target.value), o?.(f);
|
|
1400
1400
|
},
|
|
1401
1401
|
[o]
|
|
1402
|
-
),
|
|
1402
|
+
), m = q.useCallback(() => {
|
|
1403
1403
|
p(""), t?.();
|
|
1404
|
-
}, [t]), v = q.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), g = v.length > 0,
|
|
1404
|
+
}, [t]), v = q.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), g = v.length > 0, C = q.useMemo(() => v.toLowerCase(), [v]), _ = q.useMemo(() => v ? v.split(" ") : [], [v]), b = q.useMemo(
|
|
1405
1405
|
() => ({
|
|
1406
1406
|
placeholder: e ?? s.placeholder,
|
|
1407
1407
|
name: n ?? "search",
|
|
1408
1408
|
value: l,
|
|
1409
1409
|
onChange: c,
|
|
1410
|
-
onClear:
|
|
1410
|
+
onClear: m,
|
|
1411
1411
|
clearButtonAltText: r
|
|
1412
1412
|
}),
|
|
1413
|
-
[e, s.placeholder, n, l, c,
|
|
1413
|
+
[e, s.placeholder, n, l, c, m, r]
|
|
1414
1414
|
), L = q.useMemo(
|
|
1415
|
-
() => a.map((
|
|
1416
|
-
const
|
|
1415
|
+
() => a.map((f) => {
|
|
1416
|
+
const E = f?.searchWords?.length ? f.searchWords : [f?.title, f?.description].filter(Boolean);
|
|
1417
1417
|
return {
|
|
1418
|
-
...
|
|
1419
|
-
searchWords:
|
|
1418
|
+
...f,
|
|
1419
|
+
searchWords: E ?? []
|
|
1420
1420
|
};
|
|
1421
1421
|
}),
|
|
1422
1422
|
[a]
|
|
1423
|
-
),
|
|
1423
|
+
), x = q.useMemo(
|
|
1424
1424
|
() => [
|
|
1425
1425
|
{
|
|
1426
1426
|
id: "emptySearch",
|
|
@@ -1433,28 +1433,28 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
],
|
|
1435
1435
|
[s.noResults]
|
|
1436
|
-
),
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1439
|
-
}, [a,
|
|
1436
|
+
), A = q.useMemo(() => {
|
|
1437
|
+
const f = a.filter((E) => E.groupId === "emptySearch").map((E) => ({ ...E, hidden: !1 }));
|
|
1438
|
+
return f.length ? f : x;
|
|
1439
|
+
}, [a, x]), { selectedItems: h, results: R } = q.useMemo(() => {
|
|
1440
1440
|
if (!g) return { selectedItems: [], results: [] };
|
|
1441
|
-
const
|
|
1441
|
+
const f = [], E = [];
|
|
1442
1442
|
for (const z of L)
|
|
1443
|
-
z.checked === !0 &&
|
|
1443
|
+
z.checked === !0 && f.push({ ...z, groupId: "selected" }), (z.searchWords ?? []).some((j) => String(j).toLowerCase().includes(C)) && E.push({
|
|
1444
1444
|
...z,
|
|
1445
1445
|
groupId: "search",
|
|
1446
1446
|
highlightWords: _
|
|
1447
1447
|
});
|
|
1448
|
-
return { selectedItems:
|
|
1449
|
-
}, [g, L,
|
|
1448
|
+
return { selectedItems: f, results: E };
|
|
1449
|
+
}, [g, L, C, _]), O = R.length, $ = h.length, W = q.useMemo(
|
|
1450
1450
|
() => ({
|
|
1451
1451
|
search: {
|
|
1452
1452
|
hidden: !0,
|
|
1453
|
-
title: s.hits(
|
|
1453
|
+
title: s.hits(O)
|
|
1454
1454
|
},
|
|
1455
1455
|
selected: {
|
|
1456
1456
|
hidden: !0,
|
|
1457
|
-
title: s.selected(
|
|
1457
|
+
title: s.selected($)
|
|
1458
1458
|
},
|
|
1459
1459
|
emptySearch: {
|
|
1460
1460
|
hidden: !0,
|
|
@@ -1462,32 +1462,32 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1462
1462
|
},
|
|
1463
1463
|
...d
|
|
1464
1464
|
}),
|
|
1465
|
-
[s,
|
|
1466
|
-
),
|
|
1465
|
+
[s, O, $, d]
|
|
1466
|
+
), I = q.useMemo(
|
|
1467
1467
|
() => ({
|
|
1468
1468
|
...W,
|
|
1469
1469
|
search: {
|
|
1470
1470
|
hidden: !g,
|
|
1471
|
-
title: s.hits(
|
|
1471
|
+
title: s.hits(O)
|
|
1472
1472
|
},
|
|
1473
1473
|
selected: {
|
|
1474
|
-
hidden:
|
|
1475
|
-
title: s.selected(
|
|
1474
|
+
hidden: $ === 0,
|
|
1475
|
+
title: s.selected($)
|
|
1476
1476
|
},
|
|
1477
1477
|
emptySearch: {
|
|
1478
|
-
hidden: g && (
|
|
1478
|
+
hidden: g && (O > 0 || $ > 0),
|
|
1479
1479
|
title: s.noResults
|
|
1480
1480
|
}
|
|
1481
1481
|
}),
|
|
1482
|
-
[W, g, s,
|
|
1483
|
-
), T = q.useMemo(() => g ? ho([...R, ...
|
|
1482
|
+
[W, g, s, O, $]
|
|
1483
|
+
), T = q.useMemo(() => g ? ho([...R, ...h]) : [], [g, R, h]), k = q.useMemo(() => [...A || [], ...h || []], [A, h]), M = q.useMemo(() => g ? O ? T : k : a, [g, a, O, T, k]);
|
|
1484
1484
|
return {
|
|
1485
|
-
search:
|
|
1485
|
+
search: b,
|
|
1486
1486
|
results: R,
|
|
1487
|
-
resultCount:
|
|
1487
|
+
resultCount: O,
|
|
1488
1488
|
hasQuery: g,
|
|
1489
|
-
items:
|
|
1490
|
-
groups:
|
|
1489
|
+
items: M,
|
|
1490
|
+
groups: I
|
|
1491
1491
|
};
|
|
1492
1492
|
}, Lt = ({
|
|
1493
1493
|
searchable: e,
|
|
@@ -1502,21 +1502,21 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1502
1502
|
keyboardEvents: l = !1,
|
|
1503
1503
|
scrollRefStyles: p = {},
|
|
1504
1504
|
onActiveItemIdChange: c,
|
|
1505
|
-
a11yMode:
|
|
1505
|
+
a11yMode: m = "menu",
|
|
1506
1506
|
open: v,
|
|
1507
1507
|
scrollToTopOnOpen: g,
|
|
1508
|
-
autoFocusList:
|
|
1508
|
+
autoFocusList: C,
|
|
1509
1509
|
id: _
|
|
1510
1510
|
}) => {
|
|
1511
|
-
const
|
|
1511
|
+
const b = vo({ ...n, items: o, groups: t }), L = e ? { label: n?.label, hideLabel: n?.hideLabel, ...b.search } : n, x = e && b.hasQuery && b.resultCount === 0, A = e ? b.items : o, h = e ? { ...t, ...b.groups } : t, R = m !== "combobox";
|
|
1512
1512
|
return s ? /* @__PURE__ */ i(
|
|
1513
1513
|
Hn,
|
|
1514
1514
|
{
|
|
1515
1515
|
id: _,
|
|
1516
1516
|
search: L,
|
|
1517
|
-
announceNoResults:
|
|
1518
|
-
items:
|
|
1519
|
-
groups:
|
|
1517
|
+
announceNoResults: x,
|
|
1518
|
+
items: A,
|
|
1519
|
+
groups: h,
|
|
1520
1520
|
variant: r,
|
|
1521
1521
|
size: a,
|
|
1522
1522
|
level: d,
|
|
@@ -1524,20 +1524,20 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1524
1524
|
keyboardEvents: l,
|
|
1525
1525
|
scrollRefStyles: p,
|
|
1526
1526
|
onActiveItemIdChange: c,
|
|
1527
|
-
a11yMode:
|
|
1527
|
+
a11yMode: m,
|
|
1528
1528
|
open: v,
|
|
1529
1529
|
scrollToTopOnOpen: g,
|
|
1530
1530
|
autoActivateFirstItem: R,
|
|
1531
|
-
autoFocusList:
|
|
1531
|
+
autoFocusList: C
|
|
1532
1532
|
}
|
|
1533
1533
|
) : /* @__PURE__ */ i(
|
|
1534
1534
|
Mt,
|
|
1535
1535
|
{
|
|
1536
1536
|
id: _,
|
|
1537
1537
|
search: L,
|
|
1538
|
-
announceNoResults:
|
|
1539
|
-
items:
|
|
1540
|
-
groups:
|
|
1538
|
+
announceNoResults: x,
|
|
1539
|
+
items: A,
|
|
1540
|
+
groups: h,
|
|
1541
1541
|
variant: r,
|
|
1542
1542
|
size: a,
|
|
1543
1543
|
level: d,
|
|
@@ -1545,14 +1545,14 @@ const co = 0.3, uo = 0.4, da = ({ className: e }) => {
|
|
|
1545
1545
|
keyboardEvents: l,
|
|
1546
1546
|
scrollRefStyles: p,
|
|
1547
1547
|
onActiveItemIdChange: c,
|
|
1548
|
-
a11yMode:
|
|
1548
|
+
a11yMode: m,
|
|
1549
1549
|
open: v,
|
|
1550
1550
|
scrollToTopOnOpen: g,
|
|
1551
1551
|
autoActivateFirstItem: R,
|
|
1552
|
-
autoFocusList:
|
|
1552
|
+
autoFocusList: C
|
|
1553
1553
|
}
|
|
1554
1554
|
);
|
|
1555
|
-
}, go = "_media_1089b_3", bo = "_icon_1089b_10", yo = "_avatar_1089b_14", wo = "_avatarGroup_1089b_18",
|
|
1555
|
+
}, go = "_media_1089b_3", bo = "_icon_1089b_10", yo = "_avatar_1089b_14", wo = "_avatarGroup_1089b_18", fe = {
|
|
1556
1556
|
media: go,
|
|
1557
1557
|
icon: bo,
|
|
1558
1558
|
avatar: yo,
|
|
@@ -1565,10 +1565,10 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1565
1565
|
if (!o)
|
|
1566
1566
|
return null;
|
|
1567
1567
|
if (n)
|
|
1568
|
-
return /* @__PURE__ */ i("div", { className:
|
|
1568
|
+
return /* @__PURE__ */ i("div", { className: K(fe.icon, e), children: /* @__PURE__ */ i(de, { svgElement: qe, loading: !0 }) });
|
|
1569
1569
|
const r = Je(o) ? "avatar" : Ze(o) ? "avatarGroup" : (tt(o), "icon");
|
|
1570
|
-
return /* @__PURE__ */ w("div", { className:
|
|
1571
|
-
Je(o) && /* @__PURE__ */ i(it, { ...o, className:
|
|
1570
|
+
return /* @__PURE__ */ w("div", { className: K(fe.media, e), "data-variant": r, children: [
|
|
1571
|
+
Je(o) && /* @__PURE__ */ i(it, { ...o, className: fe.avatar }) || Ze(o) && /* @__PURE__ */ i(Ae, { ...o, className: fe.avatarGroup }) || tt(o) && /* @__PURE__ */ i(de, { ...o, className: fe.icon }) || _o(o) && /* @__PURE__ */ i(de, { className: fe.icon, children: o }) || /* @__PURE__ */ i(de, { className: fe.icon, svgElement: o }),
|
|
1572
1572
|
t
|
|
1573
1573
|
] });
|
|
1574
1574
|
}, xo = "_heading_ydkmu_1", Io = {
|
|
@@ -1586,14 +1586,14 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1586
1586
|
maxRows: l,
|
|
1587
1587
|
className: p,
|
|
1588
1588
|
style: c,
|
|
1589
|
-
children:
|
|
1589
|
+
children: m
|
|
1590
1590
|
}) => {
|
|
1591
|
-
const v = t, g = Kt(
|
|
1591
|
+
const v = t, g = Kt(m, o || []);
|
|
1592
1592
|
return /* @__PURE__ */ i(
|
|
1593
1593
|
v,
|
|
1594
1594
|
{
|
|
1595
1595
|
id: e,
|
|
1596
|
-
className:
|
|
1596
|
+
className: K(Io.heading, p),
|
|
1597
1597
|
style: c,
|
|
1598
1598
|
"data-size": r,
|
|
1599
1599
|
"data-leading": a,
|
|
@@ -1615,7 +1615,7 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1615
1615
|
highlightWords: a,
|
|
1616
1616
|
loading: d,
|
|
1617
1617
|
children: u
|
|
1618
|
-
}) => /* @__PURE__ */ i("span", { className:
|
|
1618
|
+
}) => /* @__PURE__ */ i("span", { className: K(So.label, e), children: u || /* @__PURE__ */ w(we, { children: [
|
|
1619
1619
|
n && /* @__PURE__ */ i(Ee, { ...o, as: "span", loading: d, highlightWords: a, maxRows: 2, children: n }),
|
|
1620
1620
|
t && /* @__PURE__ */ i(
|
|
1621
1621
|
Ee,
|
|
@@ -1651,33 +1651,33 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1651
1651
|
size: l = "sm",
|
|
1652
1652
|
variant: p,
|
|
1653
1653
|
color: c,
|
|
1654
|
-
checked:
|
|
1654
|
+
checked: m,
|
|
1655
1655
|
icon: v,
|
|
1656
1656
|
label: g,
|
|
1657
|
-
badge:
|
|
1657
|
+
badge: C,
|
|
1658
1658
|
controls: _,
|
|
1659
|
-
title:
|
|
1659
|
+
title: b,
|
|
1660
1660
|
htmlTitle: L,
|
|
1661
|
-
description:
|
|
1662
|
-
highlightWords:
|
|
1663
|
-
count:
|
|
1661
|
+
description: x,
|
|
1662
|
+
highlightWords: A,
|
|
1663
|
+
count: h,
|
|
1664
1664
|
linkIcon: R = !1,
|
|
1665
|
-
disabled:
|
|
1666
|
-
selected:
|
|
1665
|
+
disabled: O,
|
|
1666
|
+
selected: $,
|
|
1667
1667
|
active: W,
|
|
1668
|
-
tabIndex:
|
|
1668
|
+
tabIndex: I = 0,
|
|
1669
1669
|
className: T,
|
|
1670
|
-
"data-testid":
|
|
1671
|
-
...
|
|
1670
|
+
"data-testid": k,
|
|
1671
|
+
...M
|
|
1672
1672
|
}) => {
|
|
1673
|
-
const
|
|
1674
|
-
if (o === "radio" || o === "checkbox" || o === "menuitemradio" || o === "menuitemcheckbox" || z && typeof
|
|
1675
|
-
const
|
|
1673
|
+
const f = typeof g == "function" ? g() : g, E = en(M), z = o === "option";
|
|
1674
|
+
if (o === "radio" || o === "checkbox" || o === "menuitemradio" || o === "menuitemcheckbox" || z && typeof m == "boolean") {
|
|
1675
|
+
const F = v || (m ? Pt : Pn);
|
|
1676
1676
|
return /* @__PURE__ */ w(
|
|
1677
1677
|
"div",
|
|
1678
1678
|
{
|
|
1679
|
-
...
|
|
1680
|
-
className:
|
|
1679
|
+
...E,
|
|
1680
|
+
className: K(V.item, T),
|
|
1681
1681
|
id: e,
|
|
1682
1682
|
"data-id": e,
|
|
1683
1683
|
"data-group-id": n,
|
|
@@ -1686,58 +1686,58 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1686
1686
|
"data-color": c,
|
|
1687
1687
|
"data-active": W,
|
|
1688
1688
|
role: o,
|
|
1689
|
-
"aria-disabled":
|
|
1690
|
-
"aria-checked": z ? void 0 : !!
|
|
1691
|
-
"aria-selected": z ? !!
|
|
1692
|
-
"data-selected":
|
|
1693
|
-
"aria-label":
|
|
1689
|
+
"aria-disabled": O,
|
|
1690
|
+
"aria-checked": z ? void 0 : !!m,
|
|
1691
|
+
"aria-selected": z ? !!m : void 0,
|
|
1692
|
+
"data-selected": m,
|
|
1693
|
+
"aria-label": b,
|
|
1694
1694
|
title: L,
|
|
1695
|
-
"data-testid":
|
|
1696
|
-
onKeyUp: (
|
|
1697
|
-
|
|
1695
|
+
"data-testid": k,
|
|
1696
|
+
onKeyUp: (G) => {
|
|
1697
|
+
O || (G.target === G.currentTarget && G.key === "Enter" && d?.(), u?.(G));
|
|
1698
1698
|
},
|
|
1699
|
-
onClick:
|
|
1699
|
+
onClick: O ? void 0 : d,
|
|
1700
1700
|
onMouseEnter: s,
|
|
1701
|
-
tabIndex:
|
|
1701
|
+
tabIndex: I,
|
|
1702
1702
|
children: [
|
|
1703
|
-
/* @__PURE__ */ i(gt, { icon:
|
|
1703
|
+
/* @__PURE__ */ i(gt, { icon: F, className: V.media }),
|
|
1704
1704
|
/* @__PURE__ */ i(
|
|
1705
1705
|
bt,
|
|
1706
1706
|
{
|
|
1707
1707
|
className: V.label,
|
|
1708
|
-
highlightWords:
|
|
1708
|
+
highlightWords: A,
|
|
1709
1709
|
title: /* @__PURE__ */ w(we, { children: [
|
|
1710
|
-
|
|
1710
|
+
b,
|
|
1711
1711
|
" ",
|
|
1712
|
-
|
|
1712
|
+
h && /* @__PURE__ */ i("i", { className: V.count, children: h })
|
|
1713
1713
|
] }),
|
|
1714
1714
|
titleProps: {
|
|
1715
1715
|
weight: "medium",
|
|
1716
1716
|
className: V.title
|
|
1717
1717
|
},
|
|
1718
|
-
description:
|
|
1718
|
+
description: x,
|
|
1719
1719
|
descriptionProps: {
|
|
1720
1720
|
weight: "normal",
|
|
1721
1721
|
variant: "subtle",
|
|
1722
1722
|
className: V.description
|
|
1723
1723
|
},
|
|
1724
|
-
children:
|
|
1724
|
+
children: f
|
|
1725
1725
|
}
|
|
1726
1726
|
),
|
|
1727
1727
|
/* @__PURE__ */ w(et, { children: [
|
|
1728
|
-
|
|
1729
|
-
!
|
|
1728
|
+
C && /* @__PURE__ */ i(ie, { ...C }),
|
|
1729
|
+
!O && _
|
|
1730
1730
|
] })
|
|
1731
1731
|
]
|
|
1732
1732
|
}
|
|
1733
1733
|
);
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1735
|
+
const P = r || (a ? "a" : "button"), j = R && yn;
|
|
1736
1736
|
return /* @__PURE__ */ w(
|
|
1737
|
-
|
|
1737
|
+
P,
|
|
1738
1738
|
{
|
|
1739
1739
|
href: a,
|
|
1740
|
-
className:
|
|
1740
|
+
className: K(V.item, T),
|
|
1741
1741
|
id: e,
|
|
1742
1742
|
"data-id": e,
|
|
1743
1743
|
"data-group-id": n,
|
|
@@ -1745,50 +1745,50 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1745
1745
|
"data-variant": p,
|
|
1746
1746
|
"data-color": c,
|
|
1747
1747
|
"data-active": W,
|
|
1748
|
-
"aria-disabled":
|
|
1749
|
-
...
|
|
1750
|
-
"aria-current": o !== "option" &&
|
|
1751
|
-
"aria-selected": o === "option" ?
|
|
1752
|
-
"data-selected":
|
|
1753
|
-
"aria-label":
|
|
1748
|
+
"aria-disabled": O,
|
|
1749
|
+
...O ? { disabled: O } : {},
|
|
1750
|
+
"aria-current": o !== "option" && $ ? "page" : void 0,
|
|
1751
|
+
"aria-selected": o === "option" ? $ : void 0,
|
|
1752
|
+
"data-selected": $,
|
|
1753
|
+
"aria-label": b,
|
|
1754
1754
|
title: L,
|
|
1755
|
-
"data-testid":
|
|
1756
|
-
onKeyUp: (
|
|
1757
|
-
|
|
1755
|
+
"data-testid": k,
|
|
1756
|
+
onKeyUp: (F) => {
|
|
1757
|
+
O || (F.target === F.currentTarget && F.key === "Enter" && d?.(), u?.(F));
|
|
1758
1758
|
},
|
|
1759
1759
|
onClick: d,
|
|
1760
1760
|
onMouseEnter: s,
|
|
1761
|
-
tabIndex:
|
|
1761
|
+
tabIndex: O ? -1 : I ?? 0,
|
|
1762
1762
|
role: t === "navigation" ? void 0 : o === "menuItem" ? "menuitem" : o,
|
|
1763
|
-
...
|
|
1763
|
+
...E,
|
|
1764
1764
|
children: [
|
|
1765
1765
|
v && /* @__PURE__ */ i(gt, { icon: v, className: V.media }),
|
|
1766
1766
|
/* @__PURE__ */ i(
|
|
1767
1767
|
bt,
|
|
1768
1768
|
{
|
|
1769
1769
|
className: V.label,
|
|
1770
|
-
highlightWords:
|
|
1770
|
+
highlightWords: A,
|
|
1771
1771
|
title: /* @__PURE__ */ w(we, { children: [
|
|
1772
|
-
|
|
1772
|
+
b,
|
|
1773
1773
|
" ",
|
|
1774
|
-
|
|
1774
|
+
h && /* @__PURE__ */ i("i", { className: V.count, children: h })
|
|
1775
1775
|
] }),
|
|
1776
1776
|
titleProps: {
|
|
1777
1777
|
weight: "medium",
|
|
1778
1778
|
className: V.title
|
|
1779
1779
|
},
|
|
1780
|
-
description:
|
|
1780
|
+
description: x,
|
|
1781
1781
|
descriptionProps: {
|
|
1782
1782
|
variant: "subtle",
|
|
1783
1783
|
className: V.description
|
|
1784
1784
|
},
|
|
1785
|
-
children:
|
|
1785
|
+
children: f
|
|
1786
1786
|
}
|
|
1787
1787
|
),
|
|
1788
1788
|
/* @__PURE__ */ w(et, { children: [
|
|
1789
|
-
|
|
1790
|
-
!
|
|
1791
|
-
R && /* @__PURE__ */ i(
|
|
1789
|
+
C && /* @__PURE__ */ i(ie, { ...C }),
|
|
1790
|
+
!O && _,
|
|
1791
|
+
R && /* @__PURE__ */ i(de, { svgElement: j, className: V.linkIcon })
|
|
1792
1792
|
] })
|
|
1793
1793
|
]
|
|
1794
1794
|
}
|
|
@@ -1815,51 +1815,51 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1815
1815
|
onClear: l,
|
|
1816
1816
|
clearButtonAltText: p = "Clear search",
|
|
1817
1817
|
menu: c,
|
|
1818
|
-
minLength:
|
|
1818
|
+
minLength: m,
|
|
1819
1819
|
...v
|
|
1820
1820
|
}) => {
|
|
1821
|
-
const g = lt(), [
|
|
1822
|
-
...
|
|
1821
|
+
const g = lt(), [C, _] = ue(!1), b = v.id || `search-field-${g}`, L = `${b}-listbox`, [x, A] = ue(void 0), h = "searchfield-clear-button-" + lt(), R = me(() => !c || !s || typeof m == "number" && typeof s == "string" && s.length < m ? !1 : C, [c, C, m, s]), O = me(() => (c?.items ?? []).map((f) => ({
|
|
1822
|
+
...f,
|
|
1823
1823
|
onClick: () => {
|
|
1824
|
-
|
|
1824
|
+
f.onClick?.(), _(!1);
|
|
1825
1825
|
}
|
|
1826
|
-
})), [c]),
|
|
1827
|
-
if (
|
|
1826
|
+
})), [c]), $ = (f) => {
|
|
1827
|
+
if (f.key === "Enter" && R) {
|
|
1828
1828
|
c?.items?.[0]?.onClick?.(), _(!1);
|
|
1829
1829
|
return;
|
|
1830
1830
|
}
|
|
1831
|
-
if (
|
|
1832
|
-
|
|
1831
|
+
if (f.key === "Escape" && R) {
|
|
1832
|
+
f.preventDefault(), f.stopPropagation(), _(!1), c?.onClose(), document.getElementById(b)?.focus();
|
|
1833
1833
|
return;
|
|
1834
1834
|
}
|
|
1835
|
-
v.onKeyDown?.(
|
|
1835
|
+
v.onKeyDown?.(f), _(!0);
|
|
1836
1836
|
}, W = () => {
|
|
1837
1837
|
_(!0);
|
|
1838
|
-
},
|
|
1839
|
-
if (!
|
|
1840
|
-
const
|
|
1841
|
-
|
|
1842
|
-
}, T = (
|
|
1843
|
-
|
|
1844
|
-
},
|
|
1845
|
-
|
|
1846
|
-
},
|
|
1838
|
+
}, I = (f) => {
|
|
1839
|
+
if (!C) return;
|
|
1840
|
+
const E = f.relatedTarget;
|
|
1841
|
+
E && f.currentTarget.contains(E) || _(!1);
|
|
1842
|
+
}, T = (f) => {
|
|
1843
|
+
f.preventDefault();
|
|
1844
|
+
}, k = (f) => {
|
|
1845
|
+
f.relatedTarget?.id === h && A(void 0), v.onBlur?.(f);
|
|
1846
|
+
}, M = /* @__PURE__ */ w(
|
|
1847
1847
|
Dn,
|
|
1848
1848
|
{
|
|
1849
1849
|
size: r,
|
|
1850
1850
|
color: a,
|
|
1851
1851
|
label: u ? void 0 : d,
|
|
1852
|
-
htmlFor:
|
|
1853
|
-
className:
|
|
1852
|
+
htmlFor: b,
|
|
1853
|
+
className: K(oe.field, e),
|
|
1854
1854
|
"data-collapsible": n ? !0 : void 0,
|
|
1855
|
-
onBlurCapture:
|
|
1855
|
+
onBlurCapture: I,
|
|
1856
1856
|
children: [
|
|
1857
1857
|
/* @__PURE__ */ i("span", { className: oe.hiddenInput, "aria-hidden": "true", children: s + " " }),
|
|
1858
1858
|
/* @__PURE__ */ i(
|
|
1859
1859
|
Qt,
|
|
1860
1860
|
{
|
|
1861
1861
|
...v,
|
|
1862
|
-
id:
|
|
1862
|
+
id: b,
|
|
1863
1863
|
"aria-label": u && typeof d == "string" ? d : void 0,
|
|
1864
1864
|
inputSize: 5,
|
|
1865
1865
|
type: "search",
|
|
@@ -1868,16 +1868,16 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1868
1868
|
"data-collapsible": n ? !0 : void 0,
|
|
1869
1869
|
autoCapitalize: "off",
|
|
1870
1870
|
autoComplete: "off",
|
|
1871
|
-
minLength:
|
|
1872
|
-
onKeyDown:
|
|
1873
|
-
onBlur:
|
|
1871
|
+
minLength: m,
|
|
1872
|
+
onKeyDown: $,
|
|
1873
|
+
onBlur: k,
|
|
1874
1874
|
...c && {
|
|
1875
1875
|
role: "combobox",
|
|
1876
1876
|
"aria-autocomplete": "list",
|
|
1877
1877
|
"aria-expanded": !!R,
|
|
1878
1878
|
"aria-haspopup": "listbox",
|
|
1879
1879
|
"aria-controls": R ? L : void 0,
|
|
1880
|
-
"aria-activedescendant": R ?
|
|
1880
|
+
"aria-activedescendant": R ? x : void 0,
|
|
1881
1881
|
onFocus: W
|
|
1882
1882
|
}
|
|
1883
1883
|
}
|
|
@@ -1886,7 +1886,7 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1886
1886
|
l && !!s && /* @__PURE__ */ i("span", { className: oe.clear, children: /* @__PURE__ */ i(
|
|
1887
1887
|
_e,
|
|
1888
1888
|
{
|
|
1889
|
-
id:
|
|
1889
|
+
id: h,
|
|
1890
1890
|
"data-testid": "clear-button",
|
|
1891
1891
|
size: "xs",
|
|
1892
1892
|
rounded: !0,
|
|
@@ -1894,7 +1894,7 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1894
1894
|
variant: "tinted",
|
|
1895
1895
|
className: oe.clearButton,
|
|
1896
1896
|
onClick: () => {
|
|
1897
|
-
l?.(), document.getElementById(
|
|
1897
|
+
l?.(), document.getElementById(b)?.focus();
|
|
1898
1898
|
},
|
|
1899
1899
|
"aria-label": p,
|
|
1900
1900
|
"data-action": "clear-input",
|
|
@@ -1905,22 +1905,22 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
);
|
|
1907
1907
|
return c ? /* @__PURE__ */ w("div", { className: oe.fieldContainer, children: [
|
|
1908
|
-
|
|
1908
|
+
M,
|
|
1909
1909
|
R && /* @__PURE__ */ i("div", { className: oe.autocomplete, "aria-hidden": !R, onMouseDown: T, children: /* @__PURE__ */ i(
|
|
1910
1910
|
Lt,
|
|
1911
1911
|
{
|
|
1912
1912
|
...c,
|
|
1913
1913
|
id: L,
|
|
1914
|
-
items:
|
|
1914
|
+
items: O,
|
|
1915
1915
|
groups: c?.groups,
|
|
1916
1916
|
keyboardEvents: !0,
|
|
1917
1917
|
a11yMode: "combobox",
|
|
1918
1918
|
open: R,
|
|
1919
1919
|
autoFocusList: !1,
|
|
1920
|
-
onActiveItemIdChange:
|
|
1920
|
+
onActiveItemIdChange: A
|
|
1921
1921
|
}
|
|
1922
1922
|
) })
|
|
1923
|
-
] }) :
|
|
1923
|
+
] }) : M;
|
|
1924
1924
|
}, Ho = "_byline_fzp7k_1", Fo = "_avatar_fzp7k_7", qo = "_avatarGroup_fzp7k_12", Wo = "_label_fzp7k_26", Ne = {
|
|
1925
1925
|
byline: Ho,
|
|
1926
1926
|
avatar: Fo,
|
|
@@ -1978,126 +1978,126 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
1978
1978
|
trigger: l,
|
|
1979
1979
|
children: p,
|
|
1980
1980
|
open: c,
|
|
1981
|
-
onClose:
|
|
1981
|
+
onClose: m,
|
|
1982
1982
|
color: v,
|
|
1983
1983
|
onSubmit: g,
|
|
1984
|
-
activeDescendantId:
|
|
1984
|
+
activeDescendantId: C,
|
|
1985
1985
|
useFixedPosition: _ = !1,
|
|
1986
|
-
expanded:
|
|
1986
|
+
expanded: b = !1
|
|
1987
1987
|
}) => {
|
|
1988
|
-
const L = J(null),
|
|
1988
|
+
const L = J(null), x = J(null), A = J(c);
|
|
1989
1989
|
U(() => {
|
|
1990
|
-
|
|
1990
|
+
A.current = c;
|
|
1991
1991
|
}, [c]);
|
|
1992
|
-
const [
|
|
1992
|
+
const [h, R] = ue({
|
|
1993
1993
|
yDir: r.includes("top") ? "top" : "bottom",
|
|
1994
1994
|
xDir: r.includes("right") ? "right" : "left",
|
|
1995
1995
|
maxHeight: 300
|
|
1996
|
-
}),
|
|
1997
|
-
if (c && L.current &&
|
|
1998
|
-
const
|
|
1999
|
-
R((
|
|
2000
|
-
...
|
|
2001
|
-
yDir:
|
|
2002
|
-
maxHeight:
|
|
2003
|
-
xDir:
|
|
2004
|
-
triggerRect: _ ?
|
|
1996
|
+
}), O = xt(() => {
|
|
1997
|
+
if (c && L.current && x.current) {
|
|
1998
|
+
const I = L.current.getBoundingClientRect(), T = x.current.getBoundingClientRect(), k = window.innerHeight, M = window.innerWidth, f = 16, E = k - I.bottom, z = I.top, D = M - I.right - T.width, P = E < 250 && z > E, j = P ? "top" : "bottom", F = (P ? z : E) - f, se = D < f ? "right" : "left";
|
|
1999
|
+
R((ee) => ({
|
|
2000
|
+
...ee,
|
|
2001
|
+
yDir: j,
|
|
2002
|
+
maxHeight: F,
|
|
2003
|
+
xDir: se,
|
|
2004
|
+
triggerRect: _ ? I : void 0
|
|
2005
2005
|
}));
|
|
2006
2006
|
}
|
|
2007
2007
|
}, [c, _]);
|
|
2008
|
-
Xe(() => (
|
|
2009
|
-
window.removeEventListener("resize",
|
|
2010
|
-
}), [
|
|
2008
|
+
Xe(() => (O(), window.addEventListener("resize", O), _ && window.addEventListener("scroll", O, !0), () => {
|
|
2009
|
+
window.removeEventListener("resize", O), _ && window.removeEventListener("scroll", O, !0);
|
|
2010
|
+
}), [O, _]), U(() => {
|
|
2011
2011
|
if (!c) return;
|
|
2012
|
-
const
|
|
2013
|
-
const T =
|
|
2012
|
+
const I = requestAnimationFrame(() => {
|
|
2013
|
+
const T = x.current;
|
|
2014
2014
|
if (!T) return;
|
|
2015
|
-
const
|
|
2015
|
+
const k = T.querySelector(
|
|
2016
2016
|
'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
|
|
2017
2017
|
);
|
|
2018
|
-
if (
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2018
|
+
if (k) {
|
|
2019
|
+
const M = k.value.length;
|
|
2020
|
+
k.focus({ preventScroll: !0 });
|
|
2021
2021
|
try {
|
|
2022
|
-
|
|
2022
|
+
k.setSelectionRange(M, M);
|
|
2023
2023
|
} catch {
|
|
2024
2024
|
}
|
|
2025
2025
|
return;
|
|
2026
2026
|
}
|
|
2027
2027
|
T.focus?.({ preventScroll: !0 });
|
|
2028
2028
|
});
|
|
2029
|
-
return () => cancelAnimationFrame(
|
|
2029
|
+
return () => cancelAnimationFrame(I);
|
|
2030
2030
|
}, [c]), U(() => {
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2033
|
-
}, T = (
|
|
2034
|
-
const
|
|
2035
|
-
!
|
|
2031
|
+
const I = (k) => {
|
|
2032
|
+
k.key === "Escape" && (k.preventDefault(), m());
|
|
2033
|
+
}, T = (k) => {
|
|
2034
|
+
const M = k.target, f = L.current?.contains(M), E = x.current?.contains(M);
|
|
2035
|
+
!f && !E && m();
|
|
2036
2036
|
};
|
|
2037
|
-
return c && (document.addEventListener("mousedown", T), document.addEventListener("keydown",
|
|
2038
|
-
document.removeEventListener("mousedown", T), document.removeEventListener("keydown",
|
|
2037
|
+
return c && (document.addEventListener("mousedown", T), document.addEventListener("keydown", I)), () => {
|
|
2038
|
+
document.removeEventListener("mousedown", T), document.removeEventListener("keydown", I);
|
|
2039
2039
|
};
|
|
2040
|
-
}, [c,
|
|
2040
|
+
}, [c, m]), U(() => {
|
|
2041
2041
|
if (!c) return;
|
|
2042
|
-
const
|
|
2043
|
-
if (!
|
|
2044
|
-
const T = (
|
|
2045
|
-
if (!
|
|
2042
|
+
const I = x.current;
|
|
2043
|
+
if (!I) return;
|
|
2044
|
+
const T = (M) => {
|
|
2045
|
+
if (!A.current)
|
|
2046
2046
|
return;
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2049
|
-
},
|
|
2050
|
-
if (
|
|
2051
|
-
const
|
|
2052
|
-
if (
|
|
2053
|
-
|
|
2047
|
+
const f = M.target;
|
|
2048
|
+
f && !I.contains(f) && Zo(I);
|
|
2049
|
+
}, k = (M) => {
|
|
2050
|
+
if (M.key !== "Tab") return;
|
|
2051
|
+
const f = Dt(I);
|
|
2052
|
+
if (f.length === 0) {
|
|
2053
|
+
M.preventDefault(), I.focus?.({ preventScroll: !0 });
|
|
2054
2054
|
return;
|
|
2055
2055
|
}
|
|
2056
|
-
const
|
|
2057
|
-
|
|
2056
|
+
const E = f[0], z = f[f.length - 1], D = document.activeElement;
|
|
2057
|
+
M.shiftKey ? D === E && (M.preventDefault(), z.focus({ preventScroll: !0 })) : D === z && (M.preventDefault(), E.focus({ preventScroll: !0 }));
|
|
2058
2058
|
};
|
|
2059
|
-
return document.addEventListener("focusin", T), document.addEventListener("keydown",
|
|
2060
|
-
document.removeEventListener("focusin", T), document.removeEventListener("keydown",
|
|
2059
|
+
return document.addEventListener("focusin", T), document.addEventListener("keydown", k), () => {
|
|
2060
|
+
document.removeEventListener("focusin", T), document.removeEventListener("keydown", k);
|
|
2061
2061
|
};
|
|
2062
2062
|
}, [c]);
|
|
2063
|
-
const
|
|
2063
|
+
const $ = _ && h.triggerRect ? {
|
|
2064
2064
|
position: "fixed",
|
|
2065
2065
|
zIndex: 1e3,
|
|
2066
2066
|
width: "max-content",
|
|
2067
|
-
maxHeight: `${
|
|
2067
|
+
maxHeight: `${h.maxHeight}px`,
|
|
2068
2068
|
overflowY: "auto",
|
|
2069
|
-
[
|
|
2070
|
-
[
|
|
2069
|
+
[h.xDir === "left" ? "left" : "right"]: h.xDir === "left" ? h.triggerRect.left : window.innerWidth - h.triggerRect.right,
|
|
2070
|
+
[h.yDir === "bottom" ? "top" : "bottom"]: h.yDir === "bottom" ? h.triggerRect.bottom + 8 : window.innerHeight - h.triggerRect.top + 8
|
|
2071
2071
|
} : {
|
|
2072
2072
|
position: "absolute",
|
|
2073
2073
|
zIndex: 50,
|
|
2074
2074
|
width: "max-content",
|
|
2075
|
-
maxHeight: `${
|
|
2075
|
+
maxHeight: `${h.maxHeight}px`,
|
|
2076
2076
|
overflowY: "auto",
|
|
2077
|
-
[
|
|
2078
|
-
[
|
|
2077
|
+
[h.xDir]: 0,
|
|
2078
|
+
[h.yDir === "bottom" ? "top" : "bottom"]: "100%"
|
|
2079
2079
|
}, W = /* @__PURE__ */ w(
|
|
2080
2080
|
"div",
|
|
2081
2081
|
{
|
|
2082
|
-
ref:
|
|
2083
|
-
className:
|
|
2084
|
-
style:
|
|
2082
|
+
ref: x,
|
|
2083
|
+
className: K(be.dropdown, o),
|
|
2084
|
+
style: $,
|
|
2085
2085
|
"aria-hidden": !c,
|
|
2086
2086
|
"data-variant": a,
|
|
2087
2087
|
"data-color": v,
|
|
2088
|
-
"data-expanded":
|
|
2088
|
+
"data-expanded": b,
|
|
2089
2089
|
"data-size": n,
|
|
2090
2090
|
tabIndex: -1,
|
|
2091
2091
|
role: c ? "menu" : void 0,
|
|
2092
2092
|
"aria-modal": c && a === "drawer-dropdown" ? !0 : void 0,
|
|
2093
|
-
"aria-activedescendant": c ?
|
|
2093
|
+
"aria-activedescendant": c ? C : void 0,
|
|
2094
2094
|
children: [
|
|
2095
2095
|
/* @__PURE__ */ w("header", { className: be.header, children: [
|
|
2096
2096
|
/* @__PURE__ */ i("h2", { className: be.title, children: d }),
|
|
2097
|
-
/* @__PURE__ */ i(_e, { size: "sm", variant: "outline", onClick:
|
|
2097
|
+
/* @__PURE__ */ i(_e, { size: "sm", variant: "outline", onClick: m, "aria-label": u, children: /* @__PURE__ */ i(qe, {}) })
|
|
2098
2098
|
] }),
|
|
2099
2099
|
/* @__PURE__ */ i("div", { className: be.content, children: p }),
|
|
2100
|
-
s && /* @__PURE__ */ i("footer", { className: be.footer, children: /* @__PURE__ */ i(_e, { size: "lg", variant: "solid", onClick: g ||
|
|
2100
|
+
s && /* @__PURE__ */ i("footer", { className: be.footer, children: /* @__PURE__ */ i(_e, { size: "lg", variant: "solid", onClick: g || m, rounded: !0, children: /* @__PURE__ */ i("span", { "data-size": "md", children: s }) }) })
|
|
2101
2101
|
]
|
|
2102
2102
|
}
|
|
2103
2103
|
);
|
|
@@ -2130,9 +2130,9 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
2130
2130
|
const p = s.props || {};
|
|
2131
2131
|
return /* @__PURE__ */ w(wt, { children: [
|
|
2132
2132
|
p?.title && /* @__PURE__ */ i(Ee, { as: "h2", size: "lg", children: p.title }),
|
|
2133
|
-
/* @__PURE__ */ i("ul", { className: Le.list, children: s?.items.map((c,
|
|
2133
|
+
/* @__PURE__ */ i("ul", { className: Le.list, children: s?.items.map((c, m) => {
|
|
2134
2134
|
const v = c.props || {};
|
|
2135
|
-
return /* @__PURE__ */ qt(jt, { ...v, highlightWords: a, key: "dialog-list-item" +
|
|
2135
|
+
return /* @__PURE__ */ qt(jt, { ...v, highlightWords: a, key: "dialog-list-item" + m });
|
|
2136
2136
|
}) })
|
|
2137
2137
|
] }, "dialog-list-item" + l);
|
|
2138
2138
|
})
|
|
@@ -2140,7 +2140,7 @@ const gt = ({ className: e, loading: n, icon: o, children: t }) => {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
);
|
|
2142
2142
|
rr.displayName = "DialogList";
|
|
2143
|
-
const ar = "_item_1cw3x_3", ir = "_border_1cw3x_75", sr = "_header_1cw3x_86", lr = "_summary_1cw3x_102", cr = "_controls_1cw3x_116", dr = "_footer_1cw3x_123", ur = "_seenBy_1cw3x_128", pr = "_link_1cw3x_138", fr = "_title_1cw3x_143",
|
|
2143
|
+
const ar = "_item_1cw3x_3", ir = "_border_1cw3x_75", sr = "_header_1cw3x_86", lr = "_summary_1cw3x_102", cr = "_controls_1cw3x_116", dr = "_footer_1cw3x_123", ur = "_seenBy_1cw3x_128", pr = "_link_1cw3x_138", fr = "_title_1cw3x_143", Z = {
|
|
2144
2144
|
item: ar,
|
|
2145
2145
|
border: ir,
|
|
2146
2146
|
header: sr,
|
|
@@ -2164,68 +2164,66 @@ const ar = "_item_1cw3x_3", ir = "_border_1cw3x_75", sr = "_header_1cw3x_86", lr
|
|
|
2164
2164
|
extendedStatusLabel: l,
|
|
2165
2165
|
sender: p,
|
|
2166
2166
|
recipient: c,
|
|
2167
|
-
recipientLabel:
|
|
2167
|
+
recipientLabel: m = "to",
|
|
2168
2168
|
grouped: v = !1,
|
|
2169
2169
|
updatedAt: g,
|
|
2170
|
-
updatedAtLabel:
|
|
2170
|
+
updatedAtLabel: C,
|
|
2171
2171
|
archived: _,
|
|
2172
|
-
archivedAt:
|
|
2172
|
+
archivedAt: b,
|
|
2173
2173
|
archivedAtLabel: L,
|
|
2174
|
-
trashed:
|
|
2175
|
-
trashedAt:
|
|
2176
|
-
trashedAtLabel:
|
|
2174
|
+
trashed: x,
|
|
2175
|
+
trashedAt: A,
|
|
2176
|
+
trashedAtLabel: h,
|
|
2177
2177
|
badge: R,
|
|
2178
|
-
dueAt:
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
receivedCount: $,
|
|
2189
|
-
attachmentsCount: A,
|
|
2178
|
+
dueAt: O,
|
|
2179
|
+
unread: $,
|
|
2180
|
+
unreadLabel: W = "Ulest",
|
|
2181
|
+
unreadItems: I,
|
|
2182
|
+
unreadItemsLabel: T = "Ulest innhold",
|
|
2183
|
+
seenByLog: k,
|
|
2184
|
+
draftsLabel: M,
|
|
2185
|
+
sentCount: f,
|
|
2186
|
+
receivedCount: E,
|
|
2187
|
+
attachmentsCount: z,
|
|
2190
2188
|
attachmentsLabel: D,
|
|
2191
|
-
tooltips:
|
|
2192
|
-
title:
|
|
2193
|
-
description:
|
|
2194
|
-
summary:
|
|
2195
|
-
highlightWords:
|
|
2196
|
-
id:
|
|
2197
|
-
...
|
|
2189
|
+
tooltips: P = {},
|
|
2190
|
+
title: j,
|
|
2191
|
+
description: F,
|
|
2192
|
+
summary: G,
|
|
2193
|
+
highlightWords: se,
|
|
2194
|
+
id: ee,
|
|
2195
|
+
...te
|
|
2198
2196
|
}) => {
|
|
2199
|
-
const
|
|
2197
|
+
const y = d ? "select" : o;
|
|
2200
2198
|
return /* @__PURE__ */ w(
|
|
2201
2199
|
sn,
|
|
2202
2200
|
{
|
|
2203
2201
|
as: "li",
|
|
2204
|
-
id:
|
|
2205
|
-
className:
|
|
2202
|
+
id: ee,
|
|
2203
|
+
className: Z.item,
|
|
2206
2204
|
size: n,
|
|
2207
2205
|
color: t,
|
|
2208
|
-
variant:
|
|
2209
|
-
"data-unread":
|
|
2206
|
+
variant: y,
|
|
2207
|
+
"data-unread": $ ? "true" : "false",
|
|
2210
2208
|
"data-selected": u,
|
|
2211
|
-
"data-trashed":
|
|
2209
|
+
"data-trashed": x,
|
|
2212
2210
|
"data-archived": _,
|
|
2213
2211
|
"data-loading": r,
|
|
2214
2212
|
children: [
|
|
2215
|
-
/* @__PURE__ */ i(ln, { ...
|
|
2216
|
-
/* @__PURE__ */ w("header", { className:
|
|
2213
|
+
/* @__PURE__ */ i(ln, { ...te, className: Z.link, as: e, children: /* @__PURE__ */ w("div", { className: Z.border, children: [
|
|
2214
|
+
/* @__PURE__ */ w("header", { className: Z.header, children: [
|
|
2217
2215
|
/* @__PURE__ */ w(
|
|
2218
2216
|
Ee,
|
|
2219
2217
|
{
|
|
2220
2218
|
as: "h2",
|
|
2221
|
-
highlightWords:
|
|
2222
|
-
weight:
|
|
2219
|
+
highlightWords: se,
|
|
2220
|
+
weight: $ ? "bold" : "normal",
|
|
2223
2221
|
loading: r,
|
|
2224
2222
|
maxRows: 2,
|
|
2225
|
-
className:
|
|
2223
|
+
className: Z.title,
|
|
2226
2224
|
children: [
|
|
2227
|
-
|
|
2228
|
-
|
|
2225
|
+
j,
|
|
2226
|
+
$ && /* @__PURE__ */ i(ie, { label: W, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } }) || I && /* @__PURE__ */ i(ie, { label: T, style: { marginLeft: "0.75em", marginTop: "-2px" } })
|
|
2229
2227
|
]
|
|
2230
2228
|
}
|
|
2231
2229
|
),
|
|
@@ -2236,51 +2234,49 @@ const ar = "_item_1cw3x_3", ir = "_border_1cw3x_75", sr = "_header_1cw3x_86", lr
|
|
|
2236
2234
|
loading: r,
|
|
2237
2235
|
sender: p,
|
|
2238
2236
|
recipient: c,
|
|
2239
|
-
recipientLabel:
|
|
2237
|
+
recipientLabel: m,
|
|
2240
2238
|
grouped: v
|
|
2241
2239
|
}
|
|
2242
2240
|
),
|
|
2243
|
-
|
|
2241
|
+
G && /* @__PURE__ */ i(
|
|
2244
2242
|
Ee,
|
|
2245
2243
|
{
|
|
2246
2244
|
as: "h3",
|
|
2247
|
-
highlightWords:
|
|
2245
|
+
highlightWords: se,
|
|
2248
2246
|
weight: "normal",
|
|
2249
|
-
className:
|
|
2247
|
+
className: Z.summary,
|
|
2250
2248
|
loading: r,
|
|
2251
2249
|
maxRows: 2,
|
|
2252
|
-
children:
|
|
2250
|
+
children: G
|
|
2253
2251
|
}
|
|
2254
2252
|
)
|
|
2255
2253
|
] }),
|
|
2256
2254
|
/* @__PURE__ */ i(
|
|
2257
2255
|
mr,
|
|
2258
2256
|
{
|
|
2259
|
-
className:
|
|
2257
|
+
className: Z.footer,
|
|
2260
2258
|
loading: r,
|
|
2261
2259
|
badge: R,
|
|
2262
2260
|
status: s,
|
|
2263
2261
|
extendedStatusLabel: l,
|
|
2264
|
-
draftsLabel:
|
|
2265
|
-
sentCount:
|
|
2266
|
-
receivedCount:
|
|
2262
|
+
draftsLabel: M,
|
|
2263
|
+
sentCount: f,
|
|
2264
|
+
receivedCount: E,
|
|
2267
2265
|
updatedAt: g,
|
|
2268
|
-
updatedAtLabel:
|
|
2269
|
-
archivedAt:
|
|
2266
|
+
updatedAtLabel: C,
|
|
2267
|
+
archivedAt: b,
|
|
2270
2268
|
archivedAtLabel: L,
|
|
2271
|
-
trashedAt:
|
|
2272
|
-
trashedAtLabel:
|
|
2273
|
-
dueAt:
|
|
2274
|
-
|
|
2275
|
-
dueAtLabel: W,
|
|
2276
|
-
attachmentsCount: A,
|
|
2269
|
+
trashedAt: A,
|
|
2270
|
+
trashedAtLabel: h,
|
|
2271
|
+
dueAt: O,
|
|
2272
|
+
attachmentsCount: z,
|
|
2277
2273
|
attachmentsLabel: D,
|
|
2278
|
-
tooltips:
|
|
2274
|
+
tooltips: P
|
|
2279
2275
|
}
|
|
2280
2276
|
),
|
|
2281
|
-
|
|
2277
|
+
k && P?.seenBy ? /* @__PURE__ */ i(at, { placement: "bottom", content: P?.seenBy, children: /* @__PURE__ */ i("span", { className: Z.seenBy, children: /* @__PURE__ */ i(Ae, { items: k.items }) }) }) : k && /* @__PURE__ */ i(Ae, { items: k.items, className: Z.seenBy })
|
|
2282
2278
|
] }) }),
|
|
2283
|
-
/* @__PURE__ */ i(et, { className:
|
|
2279
|
+
/* @__PURE__ */ i(et, { className: Z.controls, children: a })
|
|
2284
2280
|
]
|
|
2285
2281
|
}
|
|
2286
2282
|
);
|
|
@@ -2295,81 +2291,79 @@ const mr = ({
|
|
|
2295
2291
|
updatedAt: r,
|
|
2296
2292
|
updatedAtLabel: a,
|
|
2297
2293
|
dueAt: d,
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
extendedStatusLabel: k,
|
|
2312
|
-
tooltips: f = {}
|
|
2294
|
+
archivedAt: u,
|
|
2295
|
+
archivedAtLabel: s,
|
|
2296
|
+
trashedAt: l,
|
|
2297
|
+
trashedAtLabel: p,
|
|
2298
|
+
draftsLabel: c,
|
|
2299
|
+
sentCount: m = 0,
|
|
2300
|
+
receivedCount: v = 0,
|
|
2301
|
+
attachmentsCount: g = 0,
|
|
2302
|
+
attachmentsLabel: C,
|
|
2303
|
+
transmissionsLabel: _,
|
|
2304
|
+
activityLog: b,
|
|
2305
|
+
extendedStatusLabel: L,
|
|
2306
|
+
tooltips: x = {}
|
|
2313
2307
|
}) => /* @__PURE__ */ w(cn, { className: e, size: "xs", children: [
|
|
2314
|
-
o && /* @__PURE__ */ i(Ir, { tooltip:
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
r && /* @__PURE__ */ w(re, { tooltip:
|
|
2308
|
+
o && /* @__PURE__ */ i(Ir, { tooltip: x.status, loading: n, ...o }),
|
|
2309
|
+
L && /* @__PURE__ */ i(ie, { tooltip: x.extendedStatus, variant: "outline", children: L }),
|
|
2310
|
+
c && /* @__PURE__ */ i(ie, { tooltip: x.drafts, variant: "dotted", children: c }),
|
|
2311
|
+
r && /* @__PURE__ */ w(re, { tooltip: x.updatedAt, loading: n, datetime: r, size: "xs", children: [
|
|
2318
2312
|
/* @__PURE__ */ i("strong", { children: t && t.name + ", " }),
|
|
2319
2313
|
a
|
|
2320
2314
|
] }),
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
d &&
|
|
2315
|
+
g > 0 && /* @__PURE__ */ i(re, { tooltip: x.attachments, loading: n, size: "xs", icon: on, children: C || g }),
|
|
2316
|
+
_ && /* @__PURE__ */ i(re, { tooltip: x.transmissions, loading: n, size: "xs", icon: On, children: _ }),
|
|
2317
|
+
m > 0 && /* @__PURE__ */ i(re, { tooltip: x.sent, size: "xs", icon: Pt, children: m }),
|
|
2318
|
+
v > 0 && /* @__PURE__ */ i(re, { tooltip: x.received, size: "xs", icon: mn, children: v }),
|
|
2319
|
+
d && /* @__PURE__ */ i(
|
|
2326
2320
|
re,
|
|
2327
2321
|
{
|
|
2328
|
-
variant: "tinted",
|
|
2329
|
-
color:
|
|
2330
|
-
tooltip:
|
|
2322
|
+
variant: d.variant ?? "tinted",
|
|
2323
|
+
color: d.color ?? "warning",
|
|
2324
|
+
tooltip: x.dueAt,
|
|
2331
2325
|
loading: n,
|
|
2332
|
-
datetime: d,
|
|
2326
|
+
datetime: d.datetime,
|
|
2333
2327
|
size: "xs",
|
|
2334
2328
|
icon: rn,
|
|
2335
|
-
children:
|
|
2329
|
+
children: d.label
|
|
2336
2330
|
}
|
|
2337
2331
|
),
|
|
2338
|
-
|
|
2332
|
+
p && /* @__PURE__ */ i(
|
|
2339
2333
|
re,
|
|
2340
2334
|
{
|
|
2341
2335
|
variant: "tinted",
|
|
2342
2336
|
color: "neutral",
|
|
2343
|
-
tooltip:
|
|
2337
|
+
tooltip: x.trashedAt,
|
|
2344
2338
|
loading: n,
|
|
2345
|
-
datetime:
|
|
2339
|
+
datetime: l,
|
|
2346
2340
|
size: "xs",
|
|
2347
2341
|
icon: Mn,
|
|
2348
|
-
children:
|
|
2342
|
+
children: p
|
|
2349
2343
|
}
|
|
2350
|
-
) ||
|
|
2344
|
+
) || s && /* @__PURE__ */ i(
|
|
2351
2345
|
re,
|
|
2352
2346
|
{
|
|
2353
2347
|
variant: "tinted",
|
|
2354
2348
|
color: "neutral",
|
|
2355
|
-
tooltip:
|
|
2349
|
+
tooltip: x.archivedAt,
|
|
2356
2350
|
loading: n,
|
|
2357
|
-
datetime:
|
|
2351
|
+
datetime: u,
|
|
2358
2352
|
size: "xs",
|
|
2359
2353
|
icon: pn,
|
|
2360
|
-
children:
|
|
2354
|
+
children: s
|
|
2361
2355
|
}
|
|
2362
2356
|
),
|
|
2363
|
-
|
|
2357
|
+
b && /* @__PURE__ */ i(
|
|
2364
2358
|
re,
|
|
2365
2359
|
{
|
|
2366
|
-
tooltip:
|
|
2360
|
+
tooltip: x.activityLog,
|
|
2367
2361
|
loading: n,
|
|
2368
2362
|
size: "xs",
|
|
2369
2363
|
icon: xn,
|
|
2370
|
-
as:
|
|
2371
|
-
onClick:
|
|
2372
|
-
children:
|
|
2364
|
+
as: b?.onClick ? "button" : "span",
|
|
2365
|
+
onClick: b?.onClick,
|
|
2366
|
+
children: b?.label || "Activity log"
|
|
2373
2367
|
}
|
|
2374
2368
|
)
|
|
2375
2369
|
] }), hr = ({
|
|
@@ -2394,9 +2388,9 @@ function yr(e) {
|
|
|
2394
2388
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || _t(e);
|
|
2395
2389
|
}
|
|
2396
2390
|
const yt = ({ size: e = "xs", icon: n, progress: o }) => !n && typeof o != "number" ? !1 : /* @__PURE__ */ w("span", { className: ye.media, "data-size": e, children: [
|
|
2397
|
-
Je(n) && /* @__PURE__ */ i(it, { ...n, className: ye.avatar }) || Ze(n) && /* @__PURE__ */ i(Ae, { ...n, className: ye.avatarGroup }) || tt(n) && /* @__PURE__ */ i(
|
|
2391
|
+
Je(n) && /* @__PURE__ */ i(it, { ...n, className: ye.avatar }) || Ze(n) && /* @__PURE__ */ i(Ae, { ...n, className: ye.avatarGroup }) || tt(n) && /* @__PURE__ */ i(de, { ...n, className: ye.icon }) || yr(n) && n || /* @__PURE__ */ i(de, { svgElement: n, className: ye.icon }),
|
|
2398
2392
|
o && /* @__PURE__ */ i(dn, { value: o, className: ye.icon })
|
|
2399
|
-
] }), wr = "
|
|
2393
|
+
] }), wr = "_item_10b23_1", _r = "_label_10b23_65", Te = {
|
|
2400
2394
|
item: wr,
|
|
2401
2395
|
label: _r
|
|
2402
2396
|
}, re = ({
|
|
@@ -2413,15 +2407,15 @@ const yt = ({ size: e = "xs", icon: n, progress: o }) => !n && typeof o != "numb
|
|
|
2413
2407
|
tooltip: p,
|
|
2414
2408
|
...c
|
|
2415
2409
|
}) => {
|
|
2416
|
-
const
|
|
2410
|
+
const m = e || (l ? "time" : "span");
|
|
2417
2411
|
return p ? /* @__PURE__ */ i(at, { content: p, placement: "bottom", children: /* @__PURE__ */ i(
|
|
2418
|
-
|
|
2412
|
+
m,
|
|
2419
2413
|
{
|
|
2420
2414
|
"data-size": r,
|
|
2421
2415
|
"data-color": d,
|
|
2422
2416
|
"data-variant": a,
|
|
2423
2417
|
dateTime: l,
|
|
2424
|
-
className:
|
|
2418
|
+
className: K(Te.item, o),
|
|
2425
2419
|
...c,
|
|
2426
2420
|
children: /* @__PURE__ */ w(xe, { loading: n, children: [
|
|
2427
2421
|
!n && u && /* @__PURE__ */ i(yt, { size: r, icon: u }),
|
|
@@ -2429,13 +2423,13 @@ const yt = ({ size: e = "xs", icon: n, progress: o }) => !n && typeof o != "numb
|
|
|
2429
2423
|
] })
|
|
2430
2424
|
}
|
|
2431
2425
|
) }) : /* @__PURE__ */ i(
|
|
2432
|
-
|
|
2426
|
+
m,
|
|
2433
2427
|
{
|
|
2434
2428
|
"data-size": r,
|
|
2435
2429
|
"data-color": d,
|
|
2436
2430
|
"data-variant": a,
|
|
2437
2431
|
dateTime: l,
|
|
2438
|
-
className:
|
|
2432
|
+
className: K(Te.item, o),
|
|
2439
2433
|
...c,
|
|
2440
2434
|
children: /* @__PURE__ */ w(xe, { loading: n, children: [
|
|
2441
2435
|
!n && u && /* @__PURE__ */ i(yt, { size: r, icon: u }),
|
|
@@ -2475,17 +2469,17 @@ const Ir = ({ loading: e, value: n = "not-applicable", label: o, tooltip: t }) =
|
|
|
2475
2469
|
onSelectId: s,
|
|
2476
2470
|
...l
|
|
2477
2471
|
}) => {
|
|
2478
|
-
const p = an({ id: u, returnFocusOnClose: !0 }), c = l.searchable ? "combobox" : "menu",
|
|
2472
|
+
const p = an({ id: u, returnFocusOnClose: !0 }), c = l.searchable ? "combobox" : "menu", m = xt(
|
|
2479
2473
|
(g) => {
|
|
2480
2474
|
s?.(g?.id ?? ""), g?.role !== "checkbox" && p.setOpen(!1);
|
|
2481
2475
|
},
|
|
2482
2476
|
[s, p]
|
|
2483
|
-
), v =
|
|
2477
|
+
), v = me(
|
|
2484
2478
|
() => a.map((g) => ({
|
|
2485
2479
|
...g,
|
|
2486
|
-
onClick: () =>
|
|
2480
|
+
onClick: () => m(g)
|
|
2487
2481
|
})),
|
|
2488
|
-
[a,
|
|
2482
|
+
[a, m]
|
|
2489
2483
|
);
|
|
2490
2484
|
return e ? /* @__PURE__ */ w(_e, { className: Me.button, variant: o, title: r, disabled: !0, children: [
|
|
2491
2485
|
/* @__PURE__ */ i("span", { className: Me.label, children: n }),
|
|
@@ -2546,7 +2540,7 @@ const Ir = ({ loading: e, value: n = "not-applicable", label: o, tooltip: t }) =
|
|
|
2546
2540
|
onClear: l,
|
|
2547
2541
|
onKeyDown: p,
|
|
2548
2542
|
menu: c,
|
|
2549
|
-
minLength:
|
|
2543
|
+
minLength: m,
|
|
2550
2544
|
disabled: v,
|
|
2551
2545
|
htmlTitle: g
|
|
2552
2546
|
}) => /* @__PURE__ */ i(
|
|
@@ -2567,7 +2561,7 @@ const Ir = ({ loading: e, value: n = "not-applicable", label: o, tooltip: t }) =
|
|
|
2567
2561
|
autoComplete: "off",
|
|
2568
2562
|
autoCapitalize: "off",
|
|
2569
2563
|
type: "search",
|
|
2570
|
-
minLength:
|
|
2564
|
+
minLength: m,
|
|
2571
2565
|
loading: a,
|
|
2572
2566
|
menu: c,
|
|
2573
2567
|
disabled: v
|
|
@@ -2579,7 +2573,7 @@ export {
|
|
|
2579
2573
|
hr as D,
|
|
2580
2574
|
Dn as F,
|
|
2581
2575
|
Ee as H,
|
|
2582
|
-
|
|
2576
|
+
de as I,
|
|
2583
2577
|
Lt as M,
|
|
2584
2578
|
ua as R,
|
|
2585
2579
|
$t as S,
|