@nulogy/components 15.4.0 → 15.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +933 -1820
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +720 -1606
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.js +1 -1
- package/dist/src/AppTag/AppTag.js +1 -1
- package/dist/src/AppTag/components/LogoWrapper.js +1 -1
- package/dist/src/BottomSheet/BottomSheet.styled.js +1 -1
- package/dist/src/Box/Box.js +1 -1
- package/dist/src/Box/Box.story.js +1 -1
- package/dist/src/BrandedNavBar/DesktopMenu.js +1 -1
- package/dist/src/BrandedNavBar/MenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.js +1 -1
- package/dist/src/BrandedNavBar/NavBar.js +1 -1
- package/dist/src/BrandedNavBar/NavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/NavBarBackground.js +1 -1
- package/dist/src/BrandedNavBar/SmallNavBar.js +1 -1
- package/dist/src/BrandedNavBar/SmallNavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTrigger.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/renderSubMenuItems.js +1 -1
- package/dist/src/Branding/Branding.js +1 -1
- package/dist/src/Branding/BrandingText.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsList.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +1 -1
- package/dist/src/Button/Button.js +1 -1
- package/dist/src/Button/CloseButton.js +1 -1
- package/dist/src/Button/ControlIcon.js +1 -1
- package/dist/src/Button/DangerButton.js +1 -1
- package/dist/src/Button/IconicButton.js +1 -1
- package/dist/src/Button/PrimaryButton.js +1 -1
- package/dist/src/Button/QuietButton.js +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/src/Card/CardSet.js +1 -1
- package/dist/src/Checkbox/Checkbox.js +1 -1
- package/dist/src/Checkbox/CheckboxGroup.js +1 -1
- package/dist/src/DateRange/EndTime.js +1 -1
- package/dist/src/DateRange/StartTime.js +1 -1
- package/dist/src/Decorations/index.js +1 -1
- package/dist/src/DescriptionList/DescriptionList.parts.js +1 -1
- package/dist/src/DescriptionList/stories/fixtures.js +1 -1
- package/dist/src/Divider/Divider.js +1 -1
- package/dist/src/DropdownMenu/DropdownButton.js +1 -1
- package/dist/src/DropdownMenu/DropdownItem.js +1 -1
- package/dist/src/DropdownMenu/DropdownLink.js +1 -1
- package/dist/src/DropdownMenu/DropdownMenuContainer.js +1 -1
- package/dist/src/DropdownMenu/DropdownText.js +1 -1
- package/dist/src/FieldLabel/HelpText.js +1 -1
- package/dist/src/FieldLabel/Label.js +1 -1
- package/dist/src/FieldLabel/LabelText.js +1 -1
- package/dist/src/Flex/Flex.js +1 -1
- package/dist/src/Flex/Flex.story.js +1 -1
- package/dist/src/Form/Field.js +1 -1
- package/dist/src/Form/Fieldset.js +1 -1
- package/dist/src/Form/Form.js +1 -1
- package/dist/src/Form/FormSection.js +1 -1
- package/dist/src/Icon/Icon.js +1 -1
- package/dist/src/Input/InputField.js +1 -1
- package/dist/src/Link/Link.js +1 -1
- package/dist/src/List/List.js +1 -1
- package/dist/src/List/ListItem.js +1 -1
- package/dist/src/MiniTooltip/index.js +1 -1
- package/dist/src/Modal/Modal.js +1 -1
- package/dist/src/Modal/ModalCloseButton.js +1 -1
- package/dist/src/Modal/ModalContent.js +1 -1
- package/dist/src/Modal/ModalFooter.js +1 -1
- package/dist/src/Modal/ModalHeader.js +1 -1
- package/dist/src/NDSProvider/GlobalStyles.js +1 -1
- package/dist/src/NavBarSearch/NavBarSearch.js +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.js +1 -1
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +1 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +1 -1
- package/dist/src/Navigation/components/MobileNav/parts/styled.js +1 -1
- package/dist/src/Navigation/components/UserMenu/UserMenu.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/Header.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogo.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogoLink.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuContent.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +1 -1
- package/dist/src/Navigation/components/shared/components.js +1 -1
- package/dist/src/Overlay/Overlay.js +1 -1
- package/dist/src/Pagination/PageNumber.js +1 -1
- package/dist/src/Pagination/PaginationButton.js +1 -1
- package/dist/src/Primitives/index.js +1 -1
- package/dist/src/Radio/Radio.js +1 -1
- package/dist/src/Select/Select.story.fixture.js +1 -1
- package/dist/src/Select/SelectOption.js +1 -1
- package/dist/src/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/src/Summary/Summary.js +1 -1
- package/dist/src/Summary/SummaryDivider.js +1 -1
- package/dist/src/Summary/SummaryItem.js +1 -1
- package/dist/src/Switcher/Switch.js +1 -1
- package/dist/src/Table/BaseTable.js +1 -1
- package/dist/src/Table/StyledTh.js +1 -1
- package/dist/src/Table/TableBody.js +1 -1
- package/dist/src/Table/TableCell.js +1 -1
- package/dist/src/Table/TableFoot.js +1 -1
- package/dist/src/Table/TableHead.js +1 -1
- package/dist/src/Tabs/Tab.js +1 -1
- package/dist/src/Tabs/TabContainer.js +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +1 -1
- package/dist/src/Tabs/TabScrollIndicators.js +1 -1
- package/dist/src/Textarea/StyledTextarea.js +1 -1
- package/dist/src/TimePicker/TimePickerDropdown.js +1 -1
- package/dist/src/TimePicker/TimePickerInput.js +1 -1
- package/dist/src/TimePicker/TimePickerOption.js +1 -1
- package/dist/src/Toggle/ToggleButton.js +1 -1
- package/dist/src/Tooltip/TooltipContainer.js +1 -1
- package/dist/src/Tooltip/components/TooltipComponents.js +1 -1
- package/dist/src/TopBar/TopBar.styled.js +1 -1
- package/dist/src/Type/Headings.js +1 -1
- package/dist/src/Type/Text.js +1 -1
- package/dist/src/Validation/InlineValidation.js +1 -1
- package/dist/src/VerticalDivider/VerticalDivider.js +1 -1
- package/dist/src/utils/ClickInputLabel.js +1 -1
- package/dist/src/utils/PopperArrow.js +1 -1
- package/dist/src/utils/ScrollIndicators.js +1 -1
- package/dist/src/utils/story/code.js +1 -1
- package/dist/src/utils/story/dashed.js +1 -1
- package/dist/src/utils/story/placeholder.js +1 -1
- package/dist/src/utils/story/resizable.js +1 -1
- package/dist/vite.config.js +11 -1
- package/package.json +9 -2
package/dist/main.module.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx as jsx$1, jsxs, Fragment } from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import React__default, { createContext as createContext$1, useContext, useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, forwardRef, createElement, cloneElement, Children, isValidElement, Fragment, useReducer, Component, PureComponent, createRef, useImperativeHandle } from "react";
|
|
3
|
-
import
|
|
3
|
+
import React__default, { createContext as createContext$1, useContext, useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, forwardRef, createElement, cloneElement, Children, isValidElement, Fragment as Fragment$1, useReducer, Component, PureComponent, createRef, useImperativeHandle } from "react";
|
|
4
|
+
import { useTheme, styled, keyframes as keyframes$3, createGlobalStyle, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from "styled-components";
|
|
4
5
|
import icons from "@nulogy/icons";
|
|
5
6
|
import isEqual$3 from "react-fast-compare";
|
|
6
7
|
import warning$2 from "warning";
|
|
@@ -10,999 +11,9 @@ import require$$0 from "react-is";
|
|
|
10
11
|
import equal from "deep-equal";
|
|
11
12
|
import r from "classnames";
|
|
12
13
|
import require$$0$1 from "exenv";
|
|
13
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
14
|
-
function getDefaultExportFromCjs(x2) {
|
|
15
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
16
|
-
}
|
|
17
|
-
function getAugmentedNamespace(n2) {
|
|
18
|
-
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
19
|
-
var f2 = n2.default;
|
|
20
|
-
if (typeof f2 == "function") {
|
|
21
|
-
var a4 = function a5() {
|
|
22
|
-
if (this instanceof a5) {
|
|
23
|
-
return Reflect.construct(f2, arguments, this.constructor);
|
|
24
|
-
}
|
|
25
|
-
return f2.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
a4.prototype = f2.prototype;
|
|
28
|
-
} else a4 = {};
|
|
29
|
-
Object.defineProperty(a4, "__esModule", { value: true });
|
|
30
|
-
Object.keys(n2).forEach(function(k2) {
|
|
31
|
-
var d4 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
32
|
-
Object.defineProperty(a4, k2, d4.get ? d4 : {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function() {
|
|
35
|
-
return n2[k2];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
return a4;
|
|
40
|
-
}
|
|
41
|
-
var jsxRuntime = { exports: {} };
|
|
42
|
-
var reactJsxRuntime_production_min = {};
|
|
43
|
-
/*
|
|
44
|
-
object-assign
|
|
45
|
-
(c) Sindre Sorhus
|
|
46
|
-
@license MIT
|
|
47
|
-
*/
|
|
48
|
-
var objectAssign;
|
|
49
|
-
var hasRequiredObjectAssign;
|
|
50
|
-
function requireObjectAssign() {
|
|
51
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
52
|
-
hasRequiredObjectAssign = 1;
|
|
53
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
54
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
55
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
56
|
-
function toObject(val) {
|
|
57
|
-
if (val === null || val === void 0) {
|
|
58
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
59
|
-
}
|
|
60
|
-
return Object(val);
|
|
61
|
-
}
|
|
62
|
-
function shouldUseNative() {
|
|
63
|
-
try {
|
|
64
|
-
if (!Object.assign) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
var test1 = new String("abc");
|
|
68
|
-
test1[5] = "de";
|
|
69
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
var test2 = {};
|
|
73
|
-
for (var i3 = 0; i3 < 10; i3++) {
|
|
74
|
-
test2["_" + String.fromCharCode(i3)] = i3;
|
|
75
|
-
}
|
|
76
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
77
|
-
return test2[n2];
|
|
78
|
-
});
|
|
79
|
-
if (order2.join("") !== "0123456789") {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
var test3 = {};
|
|
83
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
84
|
-
test3[letter] = letter;
|
|
85
|
-
});
|
|
86
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return true;
|
|
90
|
-
} catch (err) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
95
|
-
var from2;
|
|
96
|
-
var to = toObject(target);
|
|
97
|
-
var symbols;
|
|
98
|
-
for (var s4 = 1; s4 < arguments.length; s4++) {
|
|
99
|
-
from2 = Object(arguments[s4]);
|
|
100
|
-
for (var key in from2) {
|
|
101
|
-
if (hasOwnProperty2.call(from2, key)) {
|
|
102
|
-
to[key] = from2[key];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (getOwnPropertySymbols) {
|
|
106
|
-
symbols = getOwnPropertySymbols(from2);
|
|
107
|
-
for (var i3 = 0; i3 < symbols.length; i3++) {
|
|
108
|
-
if (propIsEnumerable.call(from2, symbols[i3])) {
|
|
109
|
-
to[symbols[i3]] = from2[symbols[i3]];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return to;
|
|
115
|
-
};
|
|
116
|
-
return objectAssign;
|
|
117
|
-
}
|
|
118
|
-
/** @license React v17.0.2
|
|
119
|
-
* react-jsx-runtime.production.min.js
|
|
120
|
-
*
|
|
121
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the MIT license found in the
|
|
124
|
-
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/
|
|
126
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
127
|
-
function requireReactJsxRuntime_production_min() {
|
|
128
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
129
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
130
|
-
requireObjectAssign();
|
|
131
|
-
var f2 = React__default, g2 = 60103;
|
|
132
|
-
reactJsxRuntime_production_min.Fragment = 60107;
|
|
133
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
134
|
-
var h4 = Symbol.for;
|
|
135
|
-
g2 = h4("react.element");
|
|
136
|
-
reactJsxRuntime_production_min.Fragment = h4("react.fragment");
|
|
137
|
-
}
|
|
138
|
-
var m4 = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p2 = { key: true, ref: true, __self: true, __source: true };
|
|
139
|
-
function q2(c3, a4, k2) {
|
|
140
|
-
var b3, d4 = {}, e3 = null, l2 = null;
|
|
141
|
-
void 0 !== k2 && (e3 = "" + k2);
|
|
142
|
-
void 0 !== a4.key && (e3 = "" + a4.key);
|
|
143
|
-
void 0 !== a4.ref && (l2 = a4.ref);
|
|
144
|
-
for (b3 in a4) n2.call(a4, b3) && !p2.hasOwnProperty(b3) && (d4[b3] = a4[b3]);
|
|
145
|
-
if (c3 && c3.defaultProps) for (b3 in a4 = c3.defaultProps, a4) void 0 === d4[b3] && (d4[b3] = a4[b3]);
|
|
146
|
-
return { $$typeof: g2, type: c3, key: e3, ref: l2, props: d4, _owner: m4.current };
|
|
147
|
-
}
|
|
148
|
-
reactJsxRuntime_production_min.jsx = q2;
|
|
149
|
-
reactJsxRuntime_production_min.jsxs = q2;
|
|
150
|
-
return reactJsxRuntime_production_min;
|
|
151
|
-
}
|
|
152
|
-
var reactJsxRuntime_development = {};
|
|
153
|
-
var hasRequiredReactJsxRuntime_development;
|
|
154
|
-
function requireReactJsxRuntime_development() {
|
|
155
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
156
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
157
|
-
(function(exports$1) {
|
|
158
|
-
/** @license React v17.0.2
|
|
159
|
-
* react-jsx-runtime.development.js
|
|
160
|
-
*
|
|
161
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the MIT license found in the
|
|
164
|
-
* LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/
|
|
166
|
-
if (process.env.NODE_ENV !== "production") {
|
|
167
|
-
(function() {
|
|
168
|
-
var React2 = React__default;
|
|
169
|
-
var _assign = requireObjectAssign();
|
|
170
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
171
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
172
|
-
exports$1.Fragment = 60107;
|
|
173
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
174
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
175
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
176
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
177
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
178
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
179
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
180
|
-
var REACT_MEMO_TYPE = 60115;
|
|
181
|
-
var REACT_LAZY_TYPE = 60116;
|
|
182
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
183
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
184
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
185
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
186
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
187
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
188
|
-
var symbolFor = Symbol.for;
|
|
189
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
190
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
191
|
-
exports$1.Fragment = symbolFor("react.fragment");
|
|
192
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
193
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
194
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
195
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
196
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
197
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
198
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
199
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
200
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
201
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
202
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
203
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
204
|
-
symbolFor("react.scope");
|
|
205
|
-
symbolFor("react.opaque.id");
|
|
206
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
207
|
-
symbolFor("react.offscreen");
|
|
208
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
209
|
-
}
|
|
210
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
211
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
212
|
-
function getIteratorFn(maybeIterable) {
|
|
213
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
214
|
-
return null;
|
|
215
|
-
}
|
|
216
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
217
|
-
if (typeof maybeIterator === "function") {
|
|
218
|
-
return maybeIterator;
|
|
219
|
-
}
|
|
220
|
-
return null;
|
|
221
|
-
}
|
|
222
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
223
|
-
function error2(format2) {
|
|
224
|
-
{
|
|
225
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
226
|
-
args[_key2 - 1] = arguments[_key2];
|
|
227
|
-
}
|
|
228
|
-
printWarning("error", format2, args);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
function printWarning(level, format2, args) {
|
|
232
|
-
{
|
|
233
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
234
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
235
|
-
if (stack !== "") {
|
|
236
|
-
format2 += "%s";
|
|
237
|
-
args = args.concat([stack]);
|
|
238
|
-
}
|
|
239
|
-
var argsWithFormat = args.map(function(item) {
|
|
240
|
-
return "" + item;
|
|
241
|
-
});
|
|
242
|
-
argsWithFormat.unshift("Warning: " + format2);
|
|
243
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
var enableScopeAPI = false;
|
|
247
|
-
function isValidElementType(type) {
|
|
248
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
249
|
-
return true;
|
|
250
|
-
}
|
|
251
|
-
if (type === exports$1.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
252
|
-
return true;
|
|
253
|
-
}
|
|
254
|
-
if (typeof type === "object" && type !== null) {
|
|
255
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
262
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
263
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
264
|
-
}
|
|
265
|
-
function getContextName(type) {
|
|
266
|
-
return type.displayName || "Context";
|
|
267
|
-
}
|
|
268
|
-
function getComponentName(type) {
|
|
269
|
-
if (type == null) {
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
{
|
|
273
|
-
if (typeof type.tag === "number") {
|
|
274
|
-
error2("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
if (typeof type === "function") {
|
|
278
|
-
return type.displayName || type.name || null;
|
|
279
|
-
}
|
|
280
|
-
if (typeof type === "string") {
|
|
281
|
-
return type;
|
|
282
|
-
}
|
|
283
|
-
switch (type) {
|
|
284
|
-
case exports$1.Fragment:
|
|
285
|
-
return "Fragment";
|
|
286
|
-
case REACT_PORTAL_TYPE:
|
|
287
|
-
return "Portal";
|
|
288
|
-
case REACT_PROFILER_TYPE:
|
|
289
|
-
return "Profiler";
|
|
290
|
-
case REACT_STRICT_MODE_TYPE:
|
|
291
|
-
return "StrictMode";
|
|
292
|
-
case REACT_SUSPENSE_TYPE:
|
|
293
|
-
return "Suspense";
|
|
294
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
295
|
-
return "SuspenseList";
|
|
296
|
-
}
|
|
297
|
-
if (typeof type === "object") {
|
|
298
|
-
switch (type.$$typeof) {
|
|
299
|
-
case REACT_CONTEXT_TYPE:
|
|
300
|
-
var context = type;
|
|
301
|
-
return getContextName(context) + ".Consumer";
|
|
302
|
-
case REACT_PROVIDER_TYPE:
|
|
303
|
-
var provider = type;
|
|
304
|
-
return getContextName(provider._context) + ".Provider";
|
|
305
|
-
case REACT_FORWARD_REF_TYPE:
|
|
306
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
307
|
-
case REACT_MEMO_TYPE:
|
|
308
|
-
return getComponentName(type.type);
|
|
309
|
-
case REACT_BLOCK_TYPE:
|
|
310
|
-
return getComponentName(type._render);
|
|
311
|
-
case REACT_LAZY_TYPE: {
|
|
312
|
-
var lazyComponent = type;
|
|
313
|
-
var payload = lazyComponent._payload;
|
|
314
|
-
var init = lazyComponent._init;
|
|
315
|
-
try {
|
|
316
|
-
return getComponentName(init(payload));
|
|
317
|
-
} catch (x2) {
|
|
318
|
-
return null;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
var disabledDepth = 0;
|
|
326
|
-
var prevLog;
|
|
327
|
-
var prevInfo;
|
|
328
|
-
var prevWarn;
|
|
329
|
-
var prevError;
|
|
330
|
-
var prevGroup;
|
|
331
|
-
var prevGroupCollapsed;
|
|
332
|
-
var prevGroupEnd;
|
|
333
|
-
function disabledLog() {
|
|
334
|
-
}
|
|
335
|
-
disabledLog.__reactDisabledLog = true;
|
|
336
|
-
function disableLogs() {
|
|
337
|
-
{
|
|
338
|
-
if (disabledDepth === 0) {
|
|
339
|
-
prevLog = console.log;
|
|
340
|
-
prevInfo = console.info;
|
|
341
|
-
prevWarn = console.warn;
|
|
342
|
-
prevError = console.error;
|
|
343
|
-
prevGroup = console.group;
|
|
344
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
345
|
-
prevGroupEnd = console.groupEnd;
|
|
346
|
-
var props = {
|
|
347
|
-
configurable: true,
|
|
348
|
-
enumerable: true,
|
|
349
|
-
value: disabledLog,
|
|
350
|
-
writable: true
|
|
351
|
-
};
|
|
352
|
-
Object.defineProperties(console, {
|
|
353
|
-
info: props,
|
|
354
|
-
log: props,
|
|
355
|
-
warn: props,
|
|
356
|
-
error: props,
|
|
357
|
-
group: props,
|
|
358
|
-
groupCollapsed: props,
|
|
359
|
-
groupEnd: props
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
disabledDepth++;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function reenableLogs() {
|
|
366
|
-
{
|
|
367
|
-
disabledDepth--;
|
|
368
|
-
if (disabledDepth === 0) {
|
|
369
|
-
var props = {
|
|
370
|
-
configurable: true,
|
|
371
|
-
enumerable: true,
|
|
372
|
-
writable: true
|
|
373
|
-
};
|
|
374
|
-
Object.defineProperties(console, {
|
|
375
|
-
log: _assign({}, props, {
|
|
376
|
-
value: prevLog
|
|
377
|
-
}),
|
|
378
|
-
info: _assign({}, props, {
|
|
379
|
-
value: prevInfo
|
|
380
|
-
}),
|
|
381
|
-
warn: _assign({}, props, {
|
|
382
|
-
value: prevWarn
|
|
383
|
-
}),
|
|
384
|
-
error: _assign({}, props, {
|
|
385
|
-
value: prevError
|
|
386
|
-
}),
|
|
387
|
-
group: _assign({}, props, {
|
|
388
|
-
value: prevGroup
|
|
389
|
-
}),
|
|
390
|
-
groupCollapsed: _assign({}, props, {
|
|
391
|
-
value: prevGroupCollapsed
|
|
392
|
-
}),
|
|
393
|
-
groupEnd: _assign({}, props, {
|
|
394
|
-
value: prevGroupEnd
|
|
395
|
-
})
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
if (disabledDepth < 0) {
|
|
399
|
-
error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
404
|
-
var prefix2;
|
|
405
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
406
|
-
{
|
|
407
|
-
if (prefix2 === void 0) {
|
|
408
|
-
try {
|
|
409
|
-
throw Error();
|
|
410
|
-
} catch (x2) {
|
|
411
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
412
|
-
prefix2 = match2 && match2[1] || "";
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
return "\n" + prefix2 + name;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
var reentry = false;
|
|
419
|
-
var componentFrameCache;
|
|
420
|
-
{
|
|
421
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
422
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
423
|
-
}
|
|
424
|
-
function describeNativeComponentFrame(fn2, construct) {
|
|
425
|
-
if (!fn2 || reentry) {
|
|
426
|
-
return "";
|
|
427
|
-
}
|
|
428
|
-
{
|
|
429
|
-
var frame2 = componentFrameCache.get(fn2);
|
|
430
|
-
if (frame2 !== void 0) {
|
|
431
|
-
return frame2;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
var control;
|
|
435
|
-
reentry = true;
|
|
436
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
437
|
-
Error.prepareStackTrace = void 0;
|
|
438
|
-
var previousDispatcher;
|
|
439
|
-
{
|
|
440
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
441
|
-
ReactCurrentDispatcher.current = null;
|
|
442
|
-
disableLogs();
|
|
443
|
-
}
|
|
444
|
-
try {
|
|
445
|
-
if (construct) {
|
|
446
|
-
var Fake = function() {
|
|
447
|
-
throw Error();
|
|
448
|
-
};
|
|
449
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
450
|
-
set: function() {
|
|
451
|
-
throw Error();
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
455
|
-
try {
|
|
456
|
-
Reflect.construct(Fake, []);
|
|
457
|
-
} catch (x2) {
|
|
458
|
-
control = x2;
|
|
459
|
-
}
|
|
460
|
-
Reflect.construct(fn2, [], Fake);
|
|
461
|
-
} else {
|
|
462
|
-
try {
|
|
463
|
-
Fake.call();
|
|
464
|
-
} catch (x2) {
|
|
465
|
-
control = x2;
|
|
466
|
-
}
|
|
467
|
-
fn2.call(Fake.prototype);
|
|
468
|
-
}
|
|
469
|
-
} else {
|
|
470
|
-
try {
|
|
471
|
-
throw Error();
|
|
472
|
-
} catch (x2) {
|
|
473
|
-
control = x2;
|
|
474
|
-
}
|
|
475
|
-
fn2();
|
|
476
|
-
}
|
|
477
|
-
} catch (sample) {
|
|
478
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
479
|
-
var sampleLines = sample.stack.split("\n");
|
|
480
|
-
var controlLines = control.stack.split("\n");
|
|
481
|
-
var s4 = sampleLines.length - 1;
|
|
482
|
-
var c3 = controlLines.length - 1;
|
|
483
|
-
while (s4 >= 1 && c3 >= 0 && sampleLines[s4] !== controlLines[c3]) {
|
|
484
|
-
c3--;
|
|
485
|
-
}
|
|
486
|
-
for (; s4 >= 1 && c3 >= 0; s4--, c3--) {
|
|
487
|
-
if (sampleLines[s4] !== controlLines[c3]) {
|
|
488
|
-
if (s4 !== 1 || c3 !== 1) {
|
|
489
|
-
do {
|
|
490
|
-
s4--;
|
|
491
|
-
c3--;
|
|
492
|
-
if (c3 < 0 || sampleLines[s4] !== controlLines[c3]) {
|
|
493
|
-
var _frame = "\n" + sampleLines[s4].replace(" at new ", " at ");
|
|
494
|
-
{
|
|
495
|
-
if (typeof fn2 === "function") {
|
|
496
|
-
componentFrameCache.set(fn2, _frame);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return _frame;
|
|
500
|
-
}
|
|
501
|
-
} while (s4 >= 1 && c3 >= 0);
|
|
502
|
-
}
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
} finally {
|
|
508
|
-
reentry = false;
|
|
509
|
-
{
|
|
510
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
511
|
-
reenableLogs();
|
|
512
|
-
}
|
|
513
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
514
|
-
}
|
|
515
|
-
var name = fn2 ? fn2.displayName || fn2.name : "";
|
|
516
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
517
|
-
{
|
|
518
|
-
if (typeof fn2 === "function") {
|
|
519
|
-
componentFrameCache.set(fn2, syntheticFrame);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
return syntheticFrame;
|
|
523
|
-
}
|
|
524
|
-
function describeFunctionComponentFrame(fn2, source, ownerFn) {
|
|
525
|
-
{
|
|
526
|
-
return describeNativeComponentFrame(fn2, false);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
function shouldConstruct(Component2) {
|
|
530
|
-
var prototype = Component2.prototype;
|
|
531
|
-
return !!(prototype && prototype.isReactComponent);
|
|
532
|
-
}
|
|
533
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
534
|
-
if (type == null) {
|
|
535
|
-
return "";
|
|
536
|
-
}
|
|
537
|
-
if (typeof type === "function") {
|
|
538
|
-
{
|
|
539
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
if (typeof type === "string") {
|
|
543
|
-
return describeBuiltInComponentFrame(type);
|
|
544
|
-
}
|
|
545
|
-
switch (type) {
|
|
546
|
-
case REACT_SUSPENSE_TYPE:
|
|
547
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
548
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
549
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
550
|
-
}
|
|
551
|
-
if (typeof type === "object") {
|
|
552
|
-
switch (type.$$typeof) {
|
|
553
|
-
case REACT_FORWARD_REF_TYPE:
|
|
554
|
-
return describeFunctionComponentFrame(type.render);
|
|
555
|
-
case REACT_MEMO_TYPE:
|
|
556
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
557
|
-
case REACT_BLOCK_TYPE:
|
|
558
|
-
return describeFunctionComponentFrame(type._render);
|
|
559
|
-
case REACT_LAZY_TYPE: {
|
|
560
|
-
var lazyComponent = type;
|
|
561
|
-
var payload = lazyComponent._payload;
|
|
562
|
-
var init = lazyComponent._init;
|
|
563
|
-
try {
|
|
564
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
565
|
-
} catch (x2) {
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
return "";
|
|
571
|
-
}
|
|
572
|
-
var loggedTypeFailures = {};
|
|
573
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
574
|
-
function setCurrentlyValidatingElement(element) {
|
|
575
|
-
{
|
|
576
|
-
if (element) {
|
|
577
|
-
var owner = element._owner;
|
|
578
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
579
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
580
|
-
} else {
|
|
581
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
586
|
-
{
|
|
587
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
588
|
-
for (var typeSpecName in typeSpecs) {
|
|
589
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
590
|
-
var error$1 = void 0;
|
|
591
|
-
try {
|
|
592
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
593
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
594
|
-
err.name = "Invariant Violation";
|
|
595
|
-
throw err;
|
|
596
|
-
}
|
|
597
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
598
|
-
} catch (ex) {
|
|
599
|
-
error$1 = ex;
|
|
600
|
-
}
|
|
601
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
602
|
-
setCurrentlyValidatingElement(element);
|
|
603
|
-
error2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
604
|
-
setCurrentlyValidatingElement(null);
|
|
605
|
-
}
|
|
606
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
607
|
-
loggedTypeFailures[error$1.message] = true;
|
|
608
|
-
setCurrentlyValidatingElement(element);
|
|
609
|
-
error2("Failed %s type: %s", location, error$1.message);
|
|
610
|
-
setCurrentlyValidatingElement(null);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
617
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
618
|
-
var RESERVED_PROPS = {
|
|
619
|
-
key: true,
|
|
620
|
-
ref: true,
|
|
621
|
-
__self: true,
|
|
622
|
-
__source: true
|
|
623
|
-
};
|
|
624
|
-
var specialPropKeyWarningShown;
|
|
625
|
-
var specialPropRefWarningShown;
|
|
626
|
-
function hasValidRef(config2) {
|
|
627
|
-
{
|
|
628
|
-
if (hasOwnProperty2.call(config2, "ref")) {
|
|
629
|
-
var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
|
|
630
|
-
if (getter && getter.isReactWarning) {
|
|
631
|
-
return false;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return config2.ref !== void 0;
|
|
636
|
-
}
|
|
637
|
-
function hasValidKey(config2) {
|
|
638
|
-
{
|
|
639
|
-
if (hasOwnProperty2.call(config2, "key")) {
|
|
640
|
-
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
641
|
-
if (getter && getter.isReactWarning) {
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return config2.key !== void 0;
|
|
647
|
-
}
|
|
648
|
-
function warnIfStringRefCannotBeAutoConverted(config2, self2) {
|
|
649
|
-
{
|
|
650
|
-
if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2) ;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
654
|
-
{
|
|
655
|
-
var warnAboutAccessingKey = function() {
|
|
656
|
-
if (!specialPropKeyWarningShown) {
|
|
657
|
-
specialPropKeyWarningShown = true;
|
|
658
|
-
error2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
662
|
-
Object.defineProperty(props, "key", {
|
|
663
|
-
get: warnAboutAccessingKey,
|
|
664
|
-
configurable: true
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
669
|
-
{
|
|
670
|
-
var warnAboutAccessingRef = function() {
|
|
671
|
-
if (!specialPropRefWarningShown) {
|
|
672
|
-
specialPropRefWarningShown = true;
|
|
673
|
-
error2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
677
|
-
Object.defineProperty(props, "ref", {
|
|
678
|
-
get: warnAboutAccessingRef,
|
|
679
|
-
configurable: true
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
684
|
-
var element = {
|
|
685
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
686
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
687
|
-
// Built-in properties that belong on the element
|
|
688
|
-
type,
|
|
689
|
-
key,
|
|
690
|
-
ref,
|
|
691
|
-
props,
|
|
692
|
-
// Record the component responsible for creating this element.
|
|
693
|
-
_owner: owner
|
|
694
|
-
};
|
|
695
|
-
{
|
|
696
|
-
element._store = {};
|
|
697
|
-
Object.defineProperty(element._store, "validated", {
|
|
698
|
-
configurable: false,
|
|
699
|
-
enumerable: false,
|
|
700
|
-
writable: true,
|
|
701
|
-
value: false
|
|
702
|
-
});
|
|
703
|
-
Object.defineProperty(element, "_self", {
|
|
704
|
-
configurable: false,
|
|
705
|
-
enumerable: false,
|
|
706
|
-
writable: false,
|
|
707
|
-
value: self2
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(element, "_source", {
|
|
710
|
-
configurable: false,
|
|
711
|
-
enumerable: false,
|
|
712
|
-
writable: false,
|
|
713
|
-
value: source
|
|
714
|
-
});
|
|
715
|
-
if (Object.freeze) {
|
|
716
|
-
Object.freeze(element.props);
|
|
717
|
-
Object.freeze(element);
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return element;
|
|
721
|
-
};
|
|
722
|
-
function jsxDEV(type, config2, maybeKey, source, self2) {
|
|
723
|
-
{
|
|
724
|
-
var propName;
|
|
725
|
-
var props = {};
|
|
726
|
-
var key = null;
|
|
727
|
-
var ref = null;
|
|
728
|
-
if (maybeKey !== void 0) {
|
|
729
|
-
key = "" + maybeKey;
|
|
730
|
-
}
|
|
731
|
-
if (hasValidKey(config2)) {
|
|
732
|
-
key = "" + config2.key;
|
|
733
|
-
}
|
|
734
|
-
if (hasValidRef(config2)) {
|
|
735
|
-
ref = config2.ref;
|
|
736
|
-
warnIfStringRefCannotBeAutoConverted(config2, self2);
|
|
737
|
-
}
|
|
738
|
-
for (propName in config2) {
|
|
739
|
-
if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
740
|
-
props[propName] = config2[propName];
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
if (type && type.defaultProps) {
|
|
744
|
-
var defaultProps2 = type.defaultProps;
|
|
745
|
-
for (propName in defaultProps2) {
|
|
746
|
-
if (props[propName] === void 0) {
|
|
747
|
-
props[propName] = defaultProps2[propName];
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
if (key || ref) {
|
|
752
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
753
|
-
if (key) {
|
|
754
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
755
|
-
}
|
|
756
|
-
if (ref) {
|
|
757
|
-
defineRefPropWarningGetter(props, displayName);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
764
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
765
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
766
|
-
{
|
|
767
|
-
if (element) {
|
|
768
|
-
var owner = element._owner;
|
|
769
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
770
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
771
|
-
} else {
|
|
772
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
var propTypesMisspellWarningShown;
|
|
777
|
-
{
|
|
778
|
-
propTypesMisspellWarningShown = false;
|
|
779
|
-
}
|
|
780
|
-
function isValidElement2(object) {
|
|
781
|
-
{
|
|
782
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
function getDeclarationErrorAddendum() {
|
|
786
|
-
{
|
|
787
|
-
if (ReactCurrentOwner$1.current) {
|
|
788
|
-
var name = getComponentName(ReactCurrentOwner$1.current.type);
|
|
789
|
-
if (name) {
|
|
790
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
return "";
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
function getSourceInfoErrorAddendum(source) {
|
|
797
|
-
{
|
|
798
|
-
return "";
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
var ownerHasKeyUseWarning = {};
|
|
802
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
803
|
-
{
|
|
804
|
-
var info = getDeclarationErrorAddendum();
|
|
805
|
-
if (!info) {
|
|
806
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
807
|
-
if (parentName) {
|
|
808
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
return info;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function validateExplicitKey(element, parentType) {
|
|
815
|
-
{
|
|
816
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
817
|
-
return;
|
|
818
|
-
}
|
|
819
|
-
element._store.validated = true;
|
|
820
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
821
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
825
|
-
var childOwner = "";
|
|
826
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
827
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
828
|
-
}
|
|
829
|
-
setCurrentlyValidatingElement$1(element);
|
|
830
|
-
error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
831
|
-
setCurrentlyValidatingElement$1(null);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
function validateChildKeys(node2, parentType) {
|
|
835
|
-
{
|
|
836
|
-
if (typeof node2 !== "object") {
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
if (Array.isArray(node2)) {
|
|
840
|
-
for (var i3 = 0; i3 < node2.length; i3++) {
|
|
841
|
-
var child = node2[i3];
|
|
842
|
-
if (isValidElement2(child)) {
|
|
843
|
-
validateExplicitKey(child, parentType);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
} else if (isValidElement2(node2)) {
|
|
847
|
-
if (node2._store) {
|
|
848
|
-
node2._store.validated = true;
|
|
849
|
-
}
|
|
850
|
-
} else if (node2) {
|
|
851
|
-
var iteratorFn = getIteratorFn(node2);
|
|
852
|
-
if (typeof iteratorFn === "function") {
|
|
853
|
-
if (iteratorFn !== node2.entries) {
|
|
854
|
-
var iterator = iteratorFn.call(node2);
|
|
855
|
-
var step;
|
|
856
|
-
while (!(step = iterator.next()).done) {
|
|
857
|
-
if (isValidElement2(step.value)) {
|
|
858
|
-
validateExplicitKey(step.value, parentType);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
function validatePropTypes(element) {
|
|
867
|
-
{
|
|
868
|
-
var type = element.type;
|
|
869
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
var propTypes2;
|
|
873
|
-
if (typeof type === "function") {
|
|
874
|
-
propTypes2 = type.propTypes;
|
|
875
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
876
|
-
// Inner props are checked in the reconciler.
|
|
877
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
878
|
-
propTypes2 = type.propTypes;
|
|
879
|
-
} else {
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
if (propTypes2) {
|
|
883
|
-
var name = getComponentName(type);
|
|
884
|
-
checkPropTypes(propTypes2, element.props, "prop", name, element);
|
|
885
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
886
|
-
propTypesMisspellWarningShown = true;
|
|
887
|
-
var _name = getComponentName(type);
|
|
888
|
-
error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
889
|
-
}
|
|
890
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
891
|
-
error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
function validateFragmentProps(fragment) {
|
|
896
|
-
{
|
|
897
|
-
var keys = Object.keys(fragment.props);
|
|
898
|
-
for (var i3 = 0; i3 < keys.length; i3++) {
|
|
899
|
-
var key = keys[i3];
|
|
900
|
-
if (key !== "children" && key !== "key") {
|
|
901
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
902
|
-
error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
903
|
-
setCurrentlyValidatingElement$1(null);
|
|
904
|
-
break;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
if (fragment.ref !== null) {
|
|
908
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
909
|
-
error2("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
910
|
-
setCurrentlyValidatingElement$1(null);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
915
|
-
{
|
|
916
|
-
var validType = isValidElementType(type);
|
|
917
|
-
if (!validType) {
|
|
918
|
-
var info = "";
|
|
919
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
920
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
921
|
-
}
|
|
922
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
923
|
-
if (sourceInfo) {
|
|
924
|
-
info += sourceInfo;
|
|
925
|
-
} else {
|
|
926
|
-
info += getDeclarationErrorAddendum();
|
|
927
|
-
}
|
|
928
|
-
var typeString;
|
|
929
|
-
if (type === null) {
|
|
930
|
-
typeString = "null";
|
|
931
|
-
} else if (Array.isArray(type)) {
|
|
932
|
-
typeString = "array";
|
|
933
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
934
|
-
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
935
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
936
|
-
} else {
|
|
937
|
-
typeString = typeof type;
|
|
938
|
-
}
|
|
939
|
-
error2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
940
|
-
}
|
|
941
|
-
var element = jsxDEV(type, props, key, source, self2);
|
|
942
|
-
if (element == null) {
|
|
943
|
-
return element;
|
|
944
|
-
}
|
|
945
|
-
if (validType) {
|
|
946
|
-
var children = props.children;
|
|
947
|
-
if (children !== void 0) {
|
|
948
|
-
if (isStaticChildren) {
|
|
949
|
-
if (Array.isArray(children)) {
|
|
950
|
-
for (var i3 = 0; i3 < children.length; i3++) {
|
|
951
|
-
validateChildKeys(children[i3], type);
|
|
952
|
-
}
|
|
953
|
-
if (Object.freeze) {
|
|
954
|
-
Object.freeze(children);
|
|
955
|
-
}
|
|
956
|
-
} else {
|
|
957
|
-
error2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
958
|
-
}
|
|
959
|
-
} else {
|
|
960
|
-
validateChildKeys(children, type);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
if (type === exports$1.Fragment) {
|
|
965
|
-
validateFragmentProps(element);
|
|
966
|
-
} else {
|
|
967
|
-
validatePropTypes(element);
|
|
968
|
-
}
|
|
969
|
-
return element;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
973
|
-
{
|
|
974
|
-
return jsxWithValidation(type, props, key, true);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
978
|
-
{
|
|
979
|
-
return jsxWithValidation(type, props, key, false);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
var jsx3 = jsxWithValidationDynamic;
|
|
983
|
-
var jsxs = jsxWithValidationStatic;
|
|
984
|
-
exports$1.jsx = jsx3;
|
|
985
|
-
exports$1.jsxs = jsxs;
|
|
986
|
-
})();
|
|
987
|
-
}
|
|
988
|
-
})(reactJsxRuntime_development);
|
|
989
|
-
return reactJsxRuntime_development;
|
|
990
|
-
}
|
|
991
|
-
var hasRequiredJsxRuntime;
|
|
992
|
-
function requireJsxRuntime() {
|
|
993
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
994
|
-
hasRequiredJsxRuntime = 1;
|
|
995
|
-
if (process.env.NODE_ENV === "production") {
|
|
996
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
997
|
-
} else {
|
|
998
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
999
|
-
}
|
|
1000
|
-
return jsxRuntime.exports;
|
|
1001
|
-
}
|
|
1002
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1003
14
|
const ComponentVariantContext = createContext$1(void 0);
|
|
1004
15
|
function ComponentVariantContextProvider({ variant: variant3, children }) {
|
|
1005
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx$1(ComponentVariantContext.Provider, { value: { variant: variant3 }, children });
|
|
1006
17
|
}
|
|
1007
18
|
function useComponentVariant(selectedVariant) {
|
|
1008
19
|
const context = useContext(ComponentVariantContext);
|
|
@@ -7437,6 +6448,109 @@ var AnimatePresence = function(_a) {
|
|
|
7437
6448
|
return cloneElement(child);
|
|
7438
6449
|
}));
|
|
7439
6450
|
};
|
|
6451
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6452
|
+
function getDefaultExportFromCjs(x2) {
|
|
6453
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
6454
|
+
}
|
|
6455
|
+
function getAugmentedNamespace(n2) {
|
|
6456
|
+
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
6457
|
+
var f2 = n2.default;
|
|
6458
|
+
if (typeof f2 == "function") {
|
|
6459
|
+
var a4 = function a5() {
|
|
6460
|
+
if (this instanceof a5) {
|
|
6461
|
+
return Reflect.construct(f2, arguments, this.constructor);
|
|
6462
|
+
}
|
|
6463
|
+
return f2.apply(this, arguments);
|
|
6464
|
+
};
|
|
6465
|
+
a4.prototype = f2.prototype;
|
|
6466
|
+
} else a4 = {};
|
|
6467
|
+
Object.defineProperty(a4, "__esModule", { value: true });
|
|
6468
|
+
Object.keys(n2).forEach(function(k2) {
|
|
6469
|
+
var d4 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
6470
|
+
Object.defineProperty(a4, k2, d4.get ? d4 : {
|
|
6471
|
+
enumerable: true,
|
|
6472
|
+
get: function() {
|
|
6473
|
+
return n2[k2];
|
|
6474
|
+
}
|
|
6475
|
+
});
|
|
6476
|
+
});
|
|
6477
|
+
return a4;
|
|
6478
|
+
}
|
|
6479
|
+
/*
|
|
6480
|
+
object-assign
|
|
6481
|
+
(c) Sindre Sorhus
|
|
6482
|
+
@license MIT
|
|
6483
|
+
*/
|
|
6484
|
+
var objectAssign;
|
|
6485
|
+
var hasRequiredObjectAssign;
|
|
6486
|
+
function requireObjectAssign() {
|
|
6487
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
6488
|
+
hasRequiredObjectAssign = 1;
|
|
6489
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6490
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
6491
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6492
|
+
function toObject(val) {
|
|
6493
|
+
if (val === null || val === void 0) {
|
|
6494
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
6495
|
+
}
|
|
6496
|
+
return Object(val);
|
|
6497
|
+
}
|
|
6498
|
+
function shouldUseNative() {
|
|
6499
|
+
try {
|
|
6500
|
+
if (!Object.assign) {
|
|
6501
|
+
return false;
|
|
6502
|
+
}
|
|
6503
|
+
var test1 = new String("abc");
|
|
6504
|
+
test1[5] = "de";
|
|
6505
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
6506
|
+
return false;
|
|
6507
|
+
}
|
|
6508
|
+
var test2 = {};
|
|
6509
|
+
for (var i3 = 0; i3 < 10; i3++) {
|
|
6510
|
+
test2["_" + String.fromCharCode(i3)] = i3;
|
|
6511
|
+
}
|
|
6512
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
6513
|
+
return test2[n2];
|
|
6514
|
+
});
|
|
6515
|
+
if (order2.join("") !== "0123456789") {
|
|
6516
|
+
return false;
|
|
6517
|
+
}
|
|
6518
|
+
var test3 = {};
|
|
6519
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
6520
|
+
test3[letter] = letter;
|
|
6521
|
+
});
|
|
6522
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
6523
|
+
return false;
|
|
6524
|
+
}
|
|
6525
|
+
return true;
|
|
6526
|
+
} catch (err) {
|
|
6527
|
+
return false;
|
|
6528
|
+
}
|
|
6529
|
+
}
|
|
6530
|
+
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
6531
|
+
var from2;
|
|
6532
|
+
var to = toObject(target);
|
|
6533
|
+
var symbols;
|
|
6534
|
+
for (var s4 = 1; s4 < arguments.length; s4++) {
|
|
6535
|
+
from2 = Object(arguments[s4]);
|
|
6536
|
+
for (var key in from2) {
|
|
6537
|
+
if (hasOwnProperty2.call(from2, key)) {
|
|
6538
|
+
to[key] = from2[key];
|
|
6539
|
+
}
|
|
6540
|
+
}
|
|
6541
|
+
if (getOwnPropertySymbols) {
|
|
6542
|
+
symbols = getOwnPropertySymbols(from2);
|
|
6543
|
+
for (var i3 = 0; i3 < symbols.length; i3++) {
|
|
6544
|
+
if (propIsEnumerable.call(from2, symbols[i3])) {
|
|
6545
|
+
to[symbols[i3]] = from2[symbols[i3]];
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
return to;
|
|
6551
|
+
};
|
|
6552
|
+
return objectAssign;
|
|
6553
|
+
}
|
|
7440
6554
|
var objectAssignExports = requireObjectAssign();
|
|
7441
6555
|
const assign$2 = /* @__PURE__ */ getDefaultExportFromCjs(objectAssignExports);
|
|
7442
6556
|
var merge$1 = function merge(a4, b3) {
|
|
@@ -8397,7 +7511,7 @@ const AnimatedBox = styled(motion.div)(addStyledProps);
|
|
|
8397
7511
|
const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) => {
|
|
8398
7512
|
const theme = useTheme();
|
|
8399
7513
|
size2 || (size2 = theme.sizes.x3);
|
|
8400
|
-
return /* @__PURE__ */
|
|
7514
|
+
return /* @__PURE__ */ jsx$1(
|
|
8401
7515
|
"svg",
|
|
8402
7516
|
{
|
|
8403
7517
|
ref,
|
|
@@ -8408,9 +7522,9 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8408
7522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8409
7523
|
preserveAspectRatio: "xMidYMid",
|
|
8410
7524
|
...props,
|
|
8411
|
-
children: /* @__PURE__ */
|
|
8412
|
-
/* @__PURE__ */
|
|
8413
|
-
/* @__PURE__ */
|
|
7525
|
+
children: /* @__PURE__ */ jsxs("g", { children: [
|
|
7526
|
+
/* @__PURE__ */ jsxs("circle", { cx: "3.5", cy: "12", fill: "#C0C8D1", "transform-origin": "3.5 3.5", children: [
|
|
7527
|
+
/* @__PURE__ */ jsx$1(
|
|
8414
7528
|
"animate",
|
|
8415
7529
|
{
|
|
8416
7530
|
attributeName: "r",
|
|
@@ -8422,7 +7536,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8422
7536
|
repeatCount: "indefinite"
|
|
8423
7537
|
}
|
|
8424
7538
|
),
|
|
8425
|
-
/* @__PURE__ */
|
|
7539
|
+
/* @__PURE__ */ jsx$1(
|
|
8426
7540
|
"animate",
|
|
8427
7541
|
{
|
|
8428
7542
|
id: "first",
|
|
@@ -8436,8 +7550,8 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8436
7550
|
}
|
|
8437
7551
|
)
|
|
8438
7552
|
] }),
|
|
8439
|
-
/* @__PURE__ */
|
|
8440
|
-
/* @__PURE__ */
|
|
7553
|
+
/* @__PURE__ */ jsxs("circle", { cx: "12", cy: "12", r: "3", fill: "#C0C8D1", "transform-origin": "12 3.5", children: [
|
|
7554
|
+
/* @__PURE__ */ jsx$1(
|
|
8441
7555
|
"animate",
|
|
8442
7556
|
{
|
|
8443
7557
|
attributeName: "r",
|
|
@@ -8450,7 +7564,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8450
7564
|
repeatCount: "indefinite"
|
|
8451
7565
|
}
|
|
8452
7566
|
),
|
|
8453
|
-
/* @__PURE__ */
|
|
7567
|
+
/* @__PURE__ */ jsx$1(
|
|
8454
7568
|
"animate",
|
|
8455
7569
|
{
|
|
8456
7570
|
id: "second",
|
|
@@ -8465,8 +7579,8 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8465
7579
|
}
|
|
8466
7580
|
)
|
|
8467
7581
|
] }),
|
|
8468
|
-
/* @__PURE__ */
|
|
8469
|
-
/* @__PURE__ */
|
|
7582
|
+
/* @__PURE__ */ jsxs("circle", { cx: "20.5", cy: "12", r: "3", fill: "#C0C8D1", "transform-origin": "20.5 3.5", children: [
|
|
7583
|
+
/* @__PURE__ */ jsx$1(
|
|
8470
7584
|
"animate",
|
|
8471
7585
|
{
|
|
8472
7586
|
attributeName: "r",
|
|
@@ -8479,7 +7593,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8479
7593
|
repeatCount: "indefinite"
|
|
8480
7594
|
}
|
|
8481
7595
|
),
|
|
8482
|
-
/* @__PURE__ */
|
|
7596
|
+
/* @__PURE__ */ jsx$1(
|
|
8483
7597
|
"animate",
|
|
8484
7598
|
{
|
|
8485
7599
|
id: "third",
|
|
@@ -8498,7 +7612,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8498
7612
|
}
|
|
8499
7613
|
);
|
|
8500
7614
|
});
|
|
8501
|
-
const getPathElements = (icon) => /* @__PURE__ */
|
|
7615
|
+
const getPathElements = (icon) => /* @__PURE__ */ jsx$1(Fragment, { children: icon.path.map((path, index2) => /* @__PURE__ */ jsx$1("path", { d: path }, index2)) });
|
|
8502
7616
|
const ICON_SIZE_RATIO = 1.25;
|
|
8503
7617
|
const Svg$1 = React__default.forwardRef(
|
|
8504
7618
|
({
|
|
@@ -8513,7 +7627,7 @@ const Svg$1 = React__default.forwardRef(
|
|
|
8513
7627
|
const theme = useTheme();
|
|
8514
7628
|
size2 || (size2 = theme.sizes.x3);
|
|
8515
7629
|
if (icon === "loading") {
|
|
8516
|
-
return /* @__PURE__ */
|
|
7630
|
+
return /* @__PURE__ */ jsx$1(
|
|
8517
7631
|
LoadingIcon,
|
|
8518
7632
|
{
|
|
8519
7633
|
ref,
|
|
@@ -8527,7 +7641,7 @@ const Svg$1 = React__default.forwardRef(
|
|
|
8527
7641
|
}
|
|
8528
7642
|
);
|
|
8529
7643
|
}
|
|
8530
|
-
return icons[icon] && /* @__PURE__ */
|
|
7644
|
+
return icons[icon] && /* @__PURE__ */ jsx$1(
|
|
8531
7645
|
"svg",
|
|
8532
7646
|
{
|
|
8533
7647
|
ref,
|
|
@@ -8561,7 +7675,7 @@ const IconContainer = styled.span(space, {
|
|
|
8561
7675
|
width: `${ICON_SIZE_RATIO}em`
|
|
8562
7676
|
});
|
|
8563
7677
|
const InlineIcon = React__default.forwardRef((props, ref) => {
|
|
8564
|
-
return /* @__PURE__ */
|
|
7678
|
+
return /* @__PURE__ */ jsx$1(IconContainer, { ref, ...props, children: /* @__PURE__ */ jsx$1(CenteredIcon, { size: `${ICON_SIZE_RATIO}em`, ...props }) });
|
|
8565
7679
|
});
|
|
8566
7680
|
const InputIcon = styled(Icon)(
|
|
8567
7681
|
({ theme }) => ({
|
|
@@ -9119,7 +8233,7 @@ class DetectOutsideClick extends React__default.Component {
|
|
|
9119
8233
|
}
|
|
9120
8234
|
render() {
|
|
9121
8235
|
const { children } = this.props;
|
|
9122
|
-
return /* @__PURE__ */
|
|
8236
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
9123
8237
|
}
|
|
9124
8238
|
}
|
|
9125
8239
|
const getThemeColor = (color2, theme) => theme.colors[color2] ? theme.colors[color2] : color2;
|
|
@@ -9275,9 +8389,9 @@ const ScrollIndicatorWrapper = styled.div(
|
|
|
9275
8389
|
position$1
|
|
9276
8390
|
);
|
|
9277
8391
|
const ScrollIndicatorTop = () => {
|
|
9278
|
-
return /* @__PURE__ */
|
|
8392
|
+
return /* @__PURE__ */ jsx$1(ScrollIndicatorWrapper, { top: 0, children: /* @__PURE__ */ jsx$1(Icon, { margin: "0 auto", display: "block", color: "darkGrey", icon: "upArrow" }) });
|
|
9279
8393
|
};
|
|
9280
|
-
const ScrollIndicatorBottom = () => /* @__PURE__ */
|
|
8394
|
+
const ScrollIndicatorBottom = () => /* @__PURE__ */ jsx$1(ScrollIndicatorWrapper, { bottom: 1, children: /* @__PURE__ */ jsx$1(Icon, { display: "block", margin: "0 auto", color: "darkGrey", icon: "downArrow" }) });
|
|
9281
8395
|
class ScrollIndicators extends React__default.Component {
|
|
9282
8396
|
constructor() {
|
|
9283
8397
|
super();
|
|
@@ -9307,13 +8421,13 @@ class ScrollIndicators extends React__default.Component {
|
|
|
9307
8421
|
return this.state.scrollTop !== 0 && this.offsetHeight < this.scrollHeight;
|
|
9308
8422
|
}
|
|
9309
8423
|
render() {
|
|
9310
|
-
return /* @__PURE__ */
|
|
9311
|
-
this.contentHiddenAbove() && /* @__PURE__ */
|
|
8424
|
+
return /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
8425
|
+
this.contentHiddenAbove() && /* @__PURE__ */ jsx$1(ScrollIndicatorTop, {}),
|
|
9312
8426
|
React__default.cloneElement(this.props.children, {
|
|
9313
8427
|
ref: this.menuRef,
|
|
9314
8428
|
onScroll: this.handleScroll
|
|
9315
8429
|
}),
|
|
9316
|
-
this.contentHiddenBelow() && /* @__PURE__ */
|
|
8430
|
+
this.contentHiddenBelow() && /* @__PURE__ */ jsx$1(ScrollIndicatorBottom, {})
|
|
9317
8431
|
] });
|
|
9318
8432
|
}
|
|
9319
8433
|
}
|
|
@@ -9407,7 +8521,7 @@ class MenuState extends MenuStateInt {
|
|
|
9407
8521
|
}
|
|
9408
8522
|
}
|
|
9409
8523
|
function withMenuState(MenuComponent) {
|
|
9410
|
-
return (props) => /* @__PURE__ */
|
|
8524
|
+
return (props) => /* @__PURE__ */ jsx$1(MenuState, { showDelay: props.showDelay, hideDelay: props.hideDelay, defaultOpen: props.defaultOpen, children: (menuComponentProps) => /* @__PURE__ */ jsx$1(MenuComponent, { menuState: menuComponentProps, ...props }) });
|
|
9411
8525
|
}
|
|
9412
8526
|
const convertPxToNumber = (px2) => {
|
|
9413
8527
|
return parseFloat(px2);
|
|
@@ -9528,7 +8642,7 @@ const Button$1 = React__default.forwardRef(
|
|
|
9528
8642
|
lineHeights: { smallTextCompressed }
|
|
9529
8643
|
} = useTheme();
|
|
9530
8644
|
const componentVariant = useComponentVariant(variant22);
|
|
9531
|
-
return /* @__PURE__ */
|
|
8645
|
+
return /* @__PURE__ */ jsxs(
|
|
9532
8646
|
WrapperButton$2,
|
|
9533
8647
|
{
|
|
9534
8648
|
as: asLink ? "a" : "button",
|
|
@@ -9538,9 +8652,9 @@ const Button$1 = React__default.forwardRef(
|
|
|
9538
8652
|
size: size2,
|
|
9539
8653
|
...props,
|
|
9540
8654
|
children: [
|
|
9541
|
-
icon && iconSide === "left" && /* @__PURE__ */
|
|
8655
|
+
icon && iconSide === "left" && /* @__PURE__ */ jsx$1(Icon, { size: `${smallTextCompressed}em`, mr: "half", icon }),
|
|
9542
8656
|
children,
|
|
9543
|
-
icon && iconSide === "right" && /* @__PURE__ */
|
|
8657
|
+
icon && iconSide === "right" && /* @__PURE__ */ jsx$1(Icon, { size: `${smallTextCompressed}em`, ml: "half", icon })
|
|
9544
8658
|
]
|
|
9545
8659
|
}
|
|
9546
8660
|
);
|
|
@@ -11852,7 +10966,7 @@ const IconicButton = React__default.forwardRef(
|
|
|
11852
10966
|
...props
|
|
11853
10967
|
}, forwardedRef) => {
|
|
11854
10968
|
const componentVariant = useComponentVariant(variant22);
|
|
11855
|
-
return /* @__PURE__ */
|
|
10969
|
+
return /* @__PURE__ */ jsxs(
|
|
11856
10970
|
WrapperButton$1,
|
|
11857
10971
|
{
|
|
11858
10972
|
ref: forwardedRef,
|
|
@@ -11862,9 +10976,9 @@ const IconicButton = React__default.forwardRef(
|
|
|
11862
10976
|
variant: componentVariant,
|
|
11863
10977
|
...props,
|
|
11864
10978
|
children: [
|
|
11865
|
-
/* @__PURE__ */
|
|
11866
|
-
/* @__PURE__ */
|
|
11867
|
-
/* @__PURE__ */
|
|
10979
|
+
/* @__PURE__ */ jsxs(Manager$2, { children: [
|
|
10980
|
+
/* @__PURE__ */ jsx$1(Reference$2, { children: ({ ref }) => /* @__PURE__ */ jsx$1(IconWrapper, { ref, size: iconSize, children: /* @__PURE__ */ jsx$1(Icon, { size: iconSize, icon, color: color2 }) }) }),
|
|
10981
|
+
/* @__PURE__ */ jsx$1(
|
|
11868
10982
|
Popper$4,
|
|
11869
10983
|
{
|
|
11870
10984
|
placement: "bottom",
|
|
@@ -11878,11 +10992,11 @@ const IconicButton = React__default.forwardRef(
|
|
|
11878
10992
|
}
|
|
11879
10993
|
}
|
|
11880
10994
|
],
|
|
11881
|
-
children: ({ ref, style }) => labelHidden || tooltip ? /* @__PURE__ */
|
|
10995
|
+
children: ({ ref, style }) => labelHidden || tooltip ? /* @__PURE__ */ jsx$1(HoverText, { ref, style, children: tooltip ? tooltip : children }) : null
|
|
11882
10996
|
}
|
|
11883
10997
|
)
|
|
11884
10998
|
] }),
|
|
11885
|
-
children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /* @__PURE__ */
|
|
10999
|
+
children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx$1(Text, { fontSize: fontSize2, mr: "half", ml: "half", color: color2, children }) : children)
|
|
11886
11000
|
]
|
|
11887
11001
|
}
|
|
11888
11002
|
);
|
|
@@ -11931,7 +11045,7 @@ const WrapperButton = styled.button(({ disabled, theme }) => ({
|
|
|
11931
11045
|
const CloseButton$1 = React__default.forwardRef((props, ref) => {
|
|
11932
11046
|
const { t: t3 } = useTranslation();
|
|
11933
11047
|
const theme = useTheme();
|
|
11934
|
-
return /* @__PURE__ */
|
|
11048
|
+
return /* @__PURE__ */ jsx$1(WrapperButton, { "aria-label": t3("close"), ref, ...props, children: /* @__PURE__ */ jsx$1(Icon, { size: theme.space.x4, icon: "close", p: "half" }) });
|
|
11935
11049
|
});
|
|
11936
11050
|
const getIconColorByState = ({ toggled, disabled, theme }) => {
|
|
11937
11051
|
if (toggled) return theme.colors.darkBlue;
|
|
@@ -11961,11 +11075,11 @@ const StyledButton$2 = styled.button(
|
|
|
11961
11075
|
layout
|
|
11962
11076
|
);
|
|
11963
11077
|
const ControlIcon = React__default.forwardRef(
|
|
11964
|
-
({ icon, toggled, disabled, label, size: size2 = "x4", type = "button", ...props }, ref) => /* @__PURE__ */
|
|
11078
|
+
({ icon, toggled, disabled, label, size: size2 = "x4", type = "button", ...props }, ref) => /* @__PURE__ */ jsx$1(StyledButton$2, { "aria-label": label, ref, disabled, toggled, type, ...props, children: /* @__PURE__ */ jsx$1(Icon, { size: size2, icon }) })
|
|
11965
11079
|
);
|
|
11966
11080
|
const CloseButton = ({ onClick, "aria-label": ariaLabel }) => {
|
|
11967
11081
|
const { t: t3 } = useTranslation();
|
|
11968
|
-
return /* @__PURE__ */
|
|
11082
|
+
return /* @__PURE__ */ jsx$1(Flex, { ml: "x2", height: "x3", children: /* @__PURE__ */ jsx$1(ControlIcon, { size: "x3", icon: "close", onClick, "aria-label": ariaLabel || t3("close"), label: t3("close") }) });
|
|
11969
11083
|
};
|
|
11970
11084
|
const NotificationTypes = {
|
|
11971
11085
|
danger: "danger",
|
|
@@ -12015,7 +11129,7 @@ const Alert$1 = ({
|
|
|
12015
11129
|
}
|
|
12016
11130
|
};
|
|
12017
11131
|
if (!isVisible) return null;
|
|
12018
|
-
return /* @__PURE__ */
|
|
11132
|
+
return /* @__PURE__ */ jsxs(
|
|
12019
11133
|
Flex,
|
|
12020
11134
|
{
|
|
12021
11135
|
bg: alertColours[type].backgroundColor,
|
|
@@ -12028,13 +11142,13 @@ const Alert$1 = ({
|
|
|
12028
11142
|
alignItems: children ? "flex-start" : void 0,
|
|
12029
11143
|
...props,
|
|
12030
11144
|
children: [
|
|
12031
|
-
type === "danger" && /* @__PURE__ */
|
|
12032
|
-
type === "success" && /* @__PURE__ */
|
|
12033
|
-
/* @__PURE__ */
|
|
12034
|
-
title && /* @__PURE__ */
|
|
12035
|
-
/* @__PURE__ */
|
|
11145
|
+
type === "danger" && /* @__PURE__ */ jsx$1(Icon, { size: "x3", icon: "error", mr: "x1", color: alertColours[type].borderColor }),
|
|
11146
|
+
type === "success" && /* @__PURE__ */ jsx$1(Icon, { size: "x3", icon: "check", mr: "x1", color: alertColours[type].borderColor }),
|
|
11147
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", gap: componentVariant === "touch" ? "half" : "none", mr: "auto", children: [
|
|
11148
|
+
title && /* @__PURE__ */ jsx$1(Text, { fontWeight: "bold", children: title }),
|
|
11149
|
+
/* @__PURE__ */ jsx$1(Box, { children })
|
|
12036
11150
|
] }),
|
|
12037
|
-
isCloseable && /* @__PURE__ */
|
|
11151
|
+
isCloseable && /* @__PURE__ */ jsx$1(CloseButton, { onClick: hideAlert, "aria-label": closeAriaLabel })
|
|
12038
11152
|
]
|
|
12039
11153
|
}
|
|
12040
11154
|
);
|
|
@@ -12198,7 +11312,7 @@ const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ forwardRef((props, forwa
|
|
|
12198
11312
|
});
|
|
12199
11313
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
12200
11314
|
const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
|
|
12201
|
-
return /* @__PURE__ */ createElement(Fragment, null, children);
|
|
11315
|
+
return /* @__PURE__ */ createElement(Fragment$1, null, children);
|
|
12202
11316
|
};
|
|
12203
11317
|
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
12204
11318
|
return /* @__PURE__ */ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
@@ -15357,11 +14471,11 @@ function MiniTooltip({
|
|
|
15357
14471
|
delayDuration = 700
|
|
15358
14472
|
}) {
|
|
15359
14473
|
if (hideTooltip) {
|
|
15360
|
-
return /* @__PURE__ */
|
|
14474
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
15361
14475
|
}
|
|
15362
|
-
return /* @__PURE__ */
|
|
15363
|
-
/* @__PURE__ */
|
|
15364
|
-
/* @__PURE__ */
|
|
14476
|
+
return /* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$2881499e37b75b9a, { delayDuration, children: /* @__PURE__ */ jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { children: [
|
|
14477
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children }),
|
|
14478
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsx$1(TooltipContent$1, { sideOffset, children: content }) })
|
|
15365
14479
|
] }) });
|
|
15366
14480
|
}
|
|
15367
14481
|
const slideUpAndFade$1 = keyframes$3`
|
|
@@ -15458,7 +14572,7 @@ const LogoWrapper = styled.span(({ theme, $type }) => {
|
|
|
15458
14572
|
};
|
|
15459
14573
|
});
|
|
15460
14574
|
function NulogyLogo$2({ width: width2 = 8, height: height2 = 8, ...props }) {
|
|
15461
|
-
return /* @__PURE__ */
|
|
14575
|
+
return /* @__PURE__ */ jsx$1("svg", { width: width2, height: height2, viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx$1(
|
|
15462
14576
|
"path",
|
|
15463
14577
|
{
|
|
15464
14578
|
d: "M6.75004 0.290783L8 0.872348V6.10892C8 7.23335 6.80591 7.43084 5.99989 7.56333C6.4609 7.43084 6.7526 7.28197 6.75004 6.10892V1.45441L5.50008 0.872348L6.75004 0.290783ZM1.49987 7.27255V4.07344C1.49987 3.7514 1.70755 3.38717 1.95959 3.26163L3.25007 2.61655V4.65104L4.50003 5.52785C4.75207 5.67671 5.25017 5.68019 5.25017 5.23657V4.36373L4.74951 4.07245V0L0.938216 1.63404C0.420065 1.85585 0 2.55502 0 3.2001V8L1.49987 7.27255Z",
|
|
@@ -15470,9 +14584,9 @@ function AppTag({ app, type = "active", hideTooltip = false }) {
|
|
|
15470
14584
|
const theme = useTheme();
|
|
15471
14585
|
const abbreviation = APP_ABBREVIATIONS[app];
|
|
15472
14586
|
const displayName = APP_DISPLAY_NAMES[app];
|
|
15473
|
-
return /* @__PURE__ */
|
|
15474
|
-
/* @__PURE__ */
|
|
15475
|
-
/* @__PURE__ */
|
|
14587
|
+
return /* @__PURE__ */ jsx$1(MiniTooltip, { content: displayName, hideTooltip, children: /* @__PURE__ */ jsxs(Wrapper$1, { $type: type, children: [
|
|
14588
|
+
/* @__PURE__ */ jsx$1(LogoWrapper, { $type: type, children: /* @__PURE__ */ jsx$1(NulogyLogo$2, { width: theme.space.x1, height: theme.space.x1 }) }),
|
|
14589
|
+
/* @__PURE__ */ jsx$1(
|
|
15476
14590
|
Text,
|
|
15477
14591
|
{
|
|
15478
14592
|
fontSize: "smaller",
|
|
@@ -18469,7 +17583,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
18469
17583
|
}
|
|
18470
17584
|
return guidanceMsg;
|
|
18471
17585
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
18472
|
-
var ScreenReaderText = jsx(Fragment, null, jsx("span", {
|
|
17586
|
+
var ScreenReaderText = jsx(Fragment$1, null, jsx("span", {
|
|
18473
17587
|
id: "aria-selection"
|
|
18474
17588
|
}, ariaSelected), jsx("span", {
|
|
18475
17589
|
id: "aria-focused"
|
|
@@ -18478,7 +17592,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
18478
17592
|
}, ariaResults), jsx("span", {
|
|
18479
17593
|
id: "aria-guidance"
|
|
18480
17594
|
}, ariaGuidance));
|
|
18481
|
-
return jsx(Fragment, null, jsx(A11yText$1, {
|
|
17595
|
+
return jsx(Fragment$1, null, jsx(A11yText$1, {
|
|
18482
17596
|
id: id2
|
|
18483
17597
|
}, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
|
|
18484
17598
|
"aria-live": ariaLive,
|
|
@@ -19032,7 +18146,7 @@ function ScrollManager(_ref3) {
|
|
|
19032
18146
|
setScrollCaptureTarget(element);
|
|
19033
18147
|
setScrollLockTarget(element);
|
|
19034
18148
|
};
|
|
19035
|
-
return jsx(Fragment, null, lockEnabled && jsx("div", {
|
|
18149
|
+
return jsx(Fragment$1, null, lockEnabled && jsx("div", {
|
|
19036
18150
|
onClick: blurSelectInput,
|
|
19037
18151
|
css: _ref2$1
|
|
19038
18152
|
}), children(targetRef));
|
|
@@ -21379,8 +20493,8 @@ const Fieldset = styled.fieldset(
|
|
|
21379
20493
|
},
|
|
21380
20494
|
space
|
|
21381
20495
|
);
|
|
21382
|
-
const BaseFormSection = ({ title, children, ...props }) => /* @__PURE__ */
|
|
21383
|
-
title != null && /* @__PURE__ */
|
|
20496
|
+
const BaseFormSection = ({ title, children, ...props }) => /* @__PURE__ */ jsxs("fieldset", { ...props, children: [
|
|
20497
|
+
title != null && /* @__PURE__ */ jsx$1(FormSectionTitle, { children: title }),
|
|
21384
20498
|
children
|
|
21385
20499
|
] });
|
|
21386
20500
|
const FormSectionTitle = styled(Heading3).attrs({
|
|
@@ -21423,8 +20537,8 @@ const FormStyles = ({ title, theme }) => ({
|
|
|
21423
20537
|
}
|
|
21424
20538
|
}
|
|
21425
20539
|
});
|
|
21426
|
-
const Form = styled(({ title, children, ...props }) => /* @__PURE__ */
|
|
21427
|
-
title && /* @__PURE__ */
|
|
20540
|
+
const Form = styled(({ title, children, ...props }) => /* @__PURE__ */ jsxs("form", { ...props, children: [
|
|
20541
|
+
title && /* @__PURE__ */ jsx$1(Heading2, { children: title }),
|
|
21428
20542
|
children
|
|
21429
20543
|
] }))(space, FormStyles);
|
|
21430
20544
|
var themeGet = function themeGet2(path, fallback) {
|
|
@@ -21439,15 +20553,15 @@ function Link$1({ children, forApp, openInNewTab, ...props }) {
|
|
|
21439
20553
|
const openInNewTabProps = openInNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {};
|
|
21440
20554
|
const renderContent = () => {
|
|
21441
20555
|
if (forApp || openInNewTab) {
|
|
21442
|
-
return /* @__PURE__ */
|
|
21443
|
-
/* @__PURE__ */
|
|
21444
|
-
forApp && /* @__PURE__ */
|
|
21445
|
-
openInNewTab && /* @__PURE__ */
|
|
20556
|
+
return /* @__PURE__ */ jsxs(InlineFlex, { alignItems: "center", gap: "half", children: [
|
|
20557
|
+
/* @__PURE__ */ jsx$1(LinkWrapper, { underline: props.underline, children }),
|
|
20558
|
+
forApp && /* @__PURE__ */ jsx$1(AppTag, { app: forApp, type: "interactive" }),
|
|
20559
|
+
openInNewTab && /* @__PURE__ */ jsx$1(Icon, { icon: "openInNew", size: "x2", color: "midGrey" })
|
|
21446
20560
|
] });
|
|
21447
20561
|
}
|
|
21448
20562
|
return children;
|
|
21449
20563
|
};
|
|
21450
|
-
return /* @__PURE__ */
|
|
20564
|
+
return /* @__PURE__ */ jsx$1(Anchor, { ...openInNewTabProps, ...props, children: renderContent() });
|
|
21451
20565
|
}
|
|
21452
20566
|
const LinkWrapper = styled.span(({ underline = true }) => ({
|
|
21453
20567
|
textDecoration: underline ? "underline" : "none"
|
|
@@ -21484,7 +20598,7 @@ const HelpText$1 = styled(Text)(({ theme }) => ({
|
|
|
21484
20598
|
fontSize: theme.fontSizes.small
|
|
21485
20599
|
}
|
|
21486
20600
|
}));
|
|
21487
|
-
const RequirementText = (props) => /* @__PURE__ */
|
|
20601
|
+
const RequirementText = (props) => /* @__PURE__ */ jsx$1(Text, { inline: true, ml: "x1", fontSize: "smaller", color: "darkGrey", ...props });
|
|
21488
20602
|
function useHasHover() {
|
|
21489
20603
|
try {
|
|
21490
20604
|
return matchMedia("(hover: hover)").matches;
|
|
@@ -21502,13 +20616,13 @@ const TooltipProvider = $a093c7e1ec25a057$export$2881499e37b75b9a;
|
|
|
21502
20616
|
function Tooltip$1({ children, ...props }) {
|
|
21503
20617
|
const [open2, setOpen] = React.useState(props.defaultOpen ?? false);
|
|
21504
20618
|
const hasHover = useHasHover();
|
|
21505
|
-
return /* @__PURE__ */
|
|
20619
|
+
return /* @__PURE__ */ jsx$1(
|
|
21506
20620
|
$a093c7e1ec25a057$export$be92b6f5f03c0fe9,
|
|
21507
20621
|
{
|
|
21508
20622
|
delayDuration: !hasHover && props.supportMobileTap ? 0 : props.delayDuration,
|
|
21509
20623
|
onOpenChange: setOpen,
|
|
21510
20624
|
open: open2,
|
|
21511
|
-
children: /* @__PURE__ */
|
|
20625
|
+
children: /* @__PURE__ */ jsx$1(
|
|
21512
20626
|
TooltipTriggerContext.Provider,
|
|
21513
20627
|
{
|
|
21514
20628
|
value: {
|
|
@@ -21538,7 +20652,7 @@ const TooltipTrigger = React.forwardRef(({ children, ...props }, ref) => {
|
|
|
21538
20652
|
},
|
|
21539
20653
|
[setOpen, hasHover, supportMobileTap, onClickProp]
|
|
21540
20654
|
);
|
|
21541
|
-
return /* @__PURE__ */
|
|
20655
|
+
return /* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$41fb9f06171c75f4, { ref, ...props, onClick, children });
|
|
21542
20656
|
});
|
|
21543
20657
|
TooltipTrigger.displayName = $a093c7e1ec25a057$export$41fb9f06171c75f4.displayName;
|
|
21544
20658
|
const slideUpAndFade = keyframes$3`
|
|
@@ -21617,9 +20731,9 @@ const StyledArrow = styled($a093c7e1ec25a057$export$21b07c8f274aebd5)(({ theme }
|
|
|
21617
20731
|
const TooltipContent = React.forwardRef(
|
|
21618
20732
|
({ sideOffset = 4, children, ...props }, ref) => {
|
|
21619
20733
|
const theme = useTheme();
|
|
21620
|
-
return /* @__PURE__ */
|
|
20734
|
+
return /* @__PURE__ */ jsxs(StyledContent, { ref, sideOffset, ...props, children: [
|
|
21621
20735
|
children,
|
|
21622
|
-
/* @__PURE__ */
|
|
20736
|
+
/* @__PURE__ */ jsx$1(StyledArrow, { width: theme.space.x1_5, height: theme.space.x0_75 })
|
|
21623
20737
|
] });
|
|
21624
20738
|
}
|
|
21625
20739
|
);
|
|
@@ -21639,9 +20753,9 @@ function Tooltip({
|
|
|
21639
20753
|
}) {
|
|
21640
20754
|
const delayDuration = typeof showDelay === "string" ? parseInt(showDelay, 10) : showDelay;
|
|
21641
20755
|
const { side, align } = getPlacementProps(placement);
|
|
21642
|
-
return /* @__PURE__ */
|
|
21643
|
-
/* @__PURE__ */
|
|
21644
|
-
/* @__PURE__ */
|
|
20756
|
+
return /* @__PURE__ */ jsx$1(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { defaultOpen, delayDuration, supportMobileTap: true, children: [
|
|
20757
|
+
/* @__PURE__ */ jsx$1(TooltipTrigger, { asChild: true, "data-testid": "nds-tooltip-trigger", children }),
|
|
20758
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsx$1(TooltipContent, { side, align, className, maxWidth: maxWidth2, children: tooltip }) })
|
|
21645
20759
|
] }) });
|
|
21646
20760
|
}
|
|
21647
20761
|
const Label = styled.label(
|
|
@@ -21673,19 +20787,19 @@ function FieldLabel({
|
|
|
21673
20787
|
children,
|
|
21674
20788
|
...props
|
|
21675
20789
|
}) {
|
|
21676
|
-
return /* @__PURE__ */
|
|
21677
|
-
/* @__PURE__ */
|
|
21678
|
-
/* @__PURE__ */
|
|
21679
|
-
/* @__PURE__ */
|
|
21680
|
-
requirementText && /* @__PURE__ */
|
|
21681
|
-
hint && /* @__PURE__ */
|
|
20790
|
+
return /* @__PURE__ */ jsxs(Label, { display: "block", ...props, children: [
|
|
20791
|
+
/* @__PURE__ */ jsxs(Box, { mb: children && "x1", "data-testid": "field-label", children: [
|
|
20792
|
+
/* @__PURE__ */ jsxs(LabelContent, { "data-testid": "label-content", children: [
|
|
20793
|
+
/* @__PURE__ */ jsx$1(LabelText, { "data-testid": "label-text", children: labelText }),
|
|
20794
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { "data-testid": "requirement-text", ml: "none", children: requirementText }),
|
|
20795
|
+
hint && /* @__PURE__ */ jsx$1(Tooltip, { tooltip: hint, children: /* @__PURE__ */ jsx$1(InlineIcon, { color: "darkGrey", size: "x2", icon: "info" }) })
|
|
21682
20796
|
] }),
|
|
21683
|
-
helpText && /* @__PURE__ */
|
|
20797
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { "data-testid": "help-text", children: helpText })
|
|
21684
20798
|
] }),
|
|
21685
20799
|
children
|
|
21686
20800
|
] });
|
|
21687
20801
|
}
|
|
21688
|
-
const MaybeFieldLabel = ({ labelText, children, ...props }) => labelText ? /* @__PURE__ */
|
|
20802
|
+
const MaybeFieldLabel = ({ labelText, children, ...props }) => labelText ? /* @__PURE__ */ jsx$1(FieldLabel, { labelText, ...props, children }) : /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
21689
20803
|
const ListItem = styled.li(
|
|
21690
20804
|
({ theme }) => ({
|
|
21691
20805
|
color: "currentcolor",
|
|
@@ -21714,7 +20828,7 @@ const mapErrorsToList = (errors) => {
|
|
|
21714
20828
|
if (!Array.isArray(errors) || !errors.length) {
|
|
21715
20829
|
return null;
|
|
21716
20830
|
}
|
|
21717
|
-
return /* @__PURE__ */
|
|
20831
|
+
return /* @__PURE__ */ jsx$1(List$1, { compact: true, leftAlign: true, children: errors.map((error2) => /* @__PURE__ */ jsx$1(ListItem, { children: error2 }, error2)) });
|
|
21718
20832
|
};
|
|
21719
20833
|
const Wrapper = styled.div(({ theme }) => ({
|
|
21720
20834
|
[`${Text}`]: {
|
|
@@ -21731,10 +20845,10 @@ function InlineValidation({
|
|
|
21731
20845
|
children,
|
|
21732
20846
|
...boxProps
|
|
21733
20847
|
}) {
|
|
21734
|
-
return errorMessage || errorList ? /* @__PURE__ */
|
|
21735
|
-
/* @__PURE__ */
|
|
21736
|
-
/* @__PURE__ */
|
|
21737
|
-
errorMessage && /* @__PURE__ */
|
|
20848
|
+
return errorMessage || errorList ? /* @__PURE__ */ jsxs(Flex, { className, color: "red", ...boxProps, children: [
|
|
20849
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "error", mr: "x1" }),
|
|
20850
|
+
/* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
20851
|
+
errorMessage && /* @__PURE__ */ jsx$1(Text, { children: errorMessage }),
|
|
21738
20852
|
mapErrorsToList(errorList),
|
|
21739
20853
|
children
|
|
21740
20854
|
] })
|
|
@@ -22096,49 +21210,49 @@ const StyledOption = styled.div(
|
|
|
22096
21210
|
})
|
|
22097
21211
|
);
|
|
22098
21212
|
function SelectOption$1(props) {
|
|
22099
|
-
return /* @__PURE__ */
|
|
21213
|
+
return /* @__PURE__ */ jsx$1(StyledOption, { isSelected: props.isSelected, isFocused: props.isFocused, "data-testid": "select-option", children: /* @__PURE__ */ jsx$1(components.Option, { ...props, children: props.children }) });
|
|
22100
21214
|
}
|
|
22101
21215
|
const SelectControl$1 = ({
|
|
22102
21216
|
isFocused: isFocused2,
|
|
22103
21217
|
children,
|
|
22104
21218
|
...props
|
|
22105
21219
|
}) => {
|
|
22106
|
-
return /* @__PURE__ */
|
|
21220
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-control", children: /* @__PURE__ */ jsxs(
|
|
22107
21221
|
components.Control,
|
|
22108
21222
|
{
|
|
22109
21223
|
className: isFocused2 ? "nds-select--is-focused" : null,
|
|
22110
21224
|
isFocused: isFocused2,
|
|
22111
21225
|
...props,
|
|
22112
21226
|
children: [
|
|
22113
|
-
props.selectProps.iconLeft && /* @__PURE__ */
|
|
21227
|
+
props.selectProps.iconLeft && /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: props.selectProps.iconLeft, size: "x3" }),
|
|
22114
21228
|
children
|
|
22115
21229
|
]
|
|
22116
21230
|
}
|
|
22117
21231
|
) });
|
|
22118
21232
|
};
|
|
22119
21233
|
const SelectMultiValue$1 = (props) => {
|
|
22120
|
-
return /* @__PURE__ */
|
|
21234
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-multivalue", children: /* @__PURE__ */ jsx$1(components.MultiValue, { ...props, children: props.children }) });
|
|
22121
21235
|
};
|
|
22122
21236
|
const SelectClearIndicator$1 = (props) => {
|
|
22123
|
-
return /* @__PURE__ */
|
|
21237
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-clear", children: /* @__PURE__ */ jsx$1(components.ClearIndicator, { ...props, children: props.children }) });
|
|
22124
21238
|
};
|
|
22125
21239
|
const SelectDropdownIndicator$1 = (props) => {
|
|
22126
|
-
return /* @__PURE__ */
|
|
21240
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-arrow", children: /* @__PURE__ */ jsx$1(components.DropdownIndicator, { ...props, children: props.children }) });
|
|
22127
21241
|
};
|
|
22128
21242
|
const SelectContainer$1 = (props) => {
|
|
22129
|
-
return /* @__PURE__ */
|
|
21243
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-container", children: /* @__PURE__ */ jsx$1(components.SelectContainer, { ...props, children: props.children }) });
|
|
22130
21244
|
};
|
|
22131
21245
|
const SelectInput$1 = (props) => {
|
|
22132
|
-
return /* @__PURE__ */
|
|
21246
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-input", children: /* @__PURE__ */ jsx$1(components.Input, { ...props, children: props.children }) });
|
|
22133
21247
|
};
|
|
22134
21248
|
const SelectMenu$1 = (props) => {
|
|
22135
21249
|
if (!props.selectProps.inputValue && props.options.length === 0) {
|
|
22136
21250
|
return null;
|
|
22137
21251
|
}
|
|
22138
|
-
return /* @__PURE__ */
|
|
21252
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-dropdown", children: /* @__PURE__ */ jsx$1(components.Menu, { ...props, children: props.children }) });
|
|
22139
21253
|
};
|
|
22140
21254
|
function SelectOption(props) {
|
|
22141
|
-
return /* @__PURE__ */
|
|
21255
|
+
return /* @__PURE__ */ jsx$1(StyledOption, { isSelected: props.isSelected, isFocused: props.isFocused, "data-testid": "select-option", children: /* @__PURE__ */ jsx$1(components.Option, { ...props, children: props.children }) });
|
|
22142
21256
|
}
|
|
22143
21257
|
const AsyncSelect = forwardRef(
|
|
22144
21258
|
({
|
|
@@ -22183,8 +21297,8 @@ const AsyncSelect = forwardRef(
|
|
|
22183
21297
|
const error2 = !!(errorMessage || errorList);
|
|
22184
21298
|
const componentVariant = useComponentVariant(variant3);
|
|
22185
21299
|
noOptionsMessage2 || (noOptionsMessage2 = () => t3("no options"));
|
|
22186
|
-
return /* @__PURE__ */
|
|
22187
|
-
/* @__PURE__ */
|
|
21300
|
+
return /* @__PURE__ */ jsx$1(Field, { ...spaceProps, children: /* @__PURE__ */ jsxs(MaybeFieldLabel, { labelText, requirementText, helpText, children: [
|
|
21301
|
+
/* @__PURE__ */ jsx$1(
|
|
22188
21302
|
AsyncSelect$1$1,
|
|
22189
21303
|
{
|
|
22190
21304
|
className,
|
|
@@ -22220,7 +21334,7 @@ const AsyncSelect = forwardRef(
|
|
|
22220
21334
|
menuPosition,
|
|
22221
21335
|
onInputChange,
|
|
22222
21336
|
components: {
|
|
22223
|
-
Option: (props2) => /* @__PURE__ */
|
|
21337
|
+
Option: (props2) => /* @__PURE__ */ jsx$1(SelectOption, { variant: componentVariant, ...props2, children: props2.children }),
|
|
22224
21338
|
Control: SelectControl$1,
|
|
22225
21339
|
MultiValue: SelectMultiValue$1,
|
|
22226
21340
|
ClearIndicator: SelectClearIndicator$1,
|
|
@@ -22238,11 +21352,11 @@ const AsyncSelect = forwardRef(
|
|
|
22238
21352
|
...props
|
|
22239
21353
|
}
|
|
22240
21354
|
),
|
|
22241
|
-
/* @__PURE__ */
|
|
21355
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
22242
21356
|
] }) });
|
|
22243
21357
|
}
|
|
22244
21358
|
);
|
|
22245
|
-
const Banner = ({ ...props }) => /* @__PURE__ */
|
|
21359
|
+
const Banner = ({ ...props }) => /* @__PURE__ */ jsx$1(Alert, { borderStyle: "none", borderRadius: "0", px: "x3", ...props });
|
|
22246
21360
|
function noop$2() {
|
|
22247
21361
|
}
|
|
22248
21362
|
function canUseDOM() {
|
|
@@ -24599,7 +23713,7 @@ function BottomSheetProvider({
|
|
|
24599
23713
|
onClose = noop$2,
|
|
24600
23714
|
children
|
|
24601
23715
|
}) {
|
|
24602
|
-
return /* @__PURE__ */
|
|
23716
|
+
return /* @__PURE__ */ jsx$1(BottomSheetContext.Provider, { value: { isOpen, onClose }, children });
|
|
24603
23717
|
}
|
|
24604
23718
|
const overlayVariants = {
|
|
24605
23719
|
hidden: { opacity: 0 },
|
|
@@ -24614,12 +23728,12 @@ const transition = {
|
|
|
24614
23728
|
ease: [0.32, 0.72, 0, 1]
|
|
24615
23729
|
};
|
|
24616
23730
|
function Root$1({ isOpen, onClose, children, ...props }) {
|
|
24617
|
-
return /* @__PURE__ */
|
|
23731
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { ...props, children: isOpen && /* @__PURE__ */ jsx$1(BottomSheetProvider, { isOpen, onClose, children }) });
|
|
24618
23732
|
}
|
|
24619
23733
|
function OverlayPart({ closeOnClick, children, ...props }) {
|
|
24620
23734
|
const { onClose, isOpen } = useBottomSheet();
|
|
24621
23735
|
const [isAnimationComplete, setAnimationComplete] = React__default.useState(false);
|
|
24622
|
-
return /* @__PURE__ */
|
|
23736
|
+
return /* @__PURE__ */ jsx$1(
|
|
24623
23737
|
Overlay$2,
|
|
24624
23738
|
{
|
|
24625
23739
|
"data-testid": "bottom-sheet-overlay",
|
|
@@ -24647,7 +23761,7 @@ function SheetPart({ children, ...props }) {
|
|
|
24647
23761
|
function handleSheetClick(e3) {
|
|
24648
23762
|
e3.stopPropagation();
|
|
24649
23763
|
}
|
|
24650
|
-
return /* @__PURE__ */
|
|
23764
|
+
return /* @__PURE__ */ jsx$1(
|
|
24651
23765
|
Sheet,
|
|
24652
23766
|
{
|
|
24653
23767
|
"data-testid": "bottom-sheet-body",
|
|
@@ -24699,24 +23813,24 @@ function BottomSheet({
|
|
|
24699
23813
|
closeButtonLabel || (closeButtonLabel = t3("close"));
|
|
24700
23814
|
const closeOnClick = !disableCloseOnOverlayClick;
|
|
24701
23815
|
const footerHeight = `calc(${theme.space.x5} + (${theme.space.x2} * 2) + ${theme.space.x4})`;
|
|
24702
|
-
return /* @__PURE__ */
|
|
23816
|
+
return /* @__PURE__ */ jsx$1(BottomSheetParts.Root, { isOpen, onClose, children: /* @__PURE__ */ jsx$1(BottomSheetParts.Overlay, { closeOnClick, children: /* @__PURE__ */ jsx$1(
|
|
24703
23817
|
BottomSheetParts.Sheet,
|
|
24704
23818
|
{
|
|
24705
23819
|
width: sheetWidth,
|
|
24706
23820
|
maxWidth: { small: `calc(100% - ${theme.space.x8})` },
|
|
24707
23821
|
maxHeight: { small: `calc(100dvh - ${theme.space.x7})`, medium: "85.4dvh" },
|
|
24708
23822
|
"aria-label": props["aria-label"] ?? title,
|
|
24709
|
-
children: /* @__PURE__ */
|
|
24710
|
-
/* @__PURE__ */
|
|
24711
|
-
/* @__PURE__ */
|
|
24712
|
-
title && /* @__PURE__ */
|
|
24713
|
-
helpText && (typeof helpText === "string" ? /* @__PURE__ */
|
|
23823
|
+
children: /* @__PURE__ */ jsxs(BottomSheetParts.ContentContainer, { children: [
|
|
23824
|
+
/* @__PURE__ */ jsxs(Box, { width: contentWidth, margin: "0 auto", children: [
|
|
23825
|
+
/* @__PURE__ */ jsxs(BottomSheetParts.Header, { children: [
|
|
23826
|
+
title && /* @__PURE__ */ jsx$1(BottomSheetParts.Title, { children: title }),
|
|
23827
|
+
helpText && (typeof helpText === "string" ? /* @__PURE__ */ jsx$1(BottomSheetParts.HelpText, { children: helpText }) : helpText)
|
|
24714
23828
|
] }),
|
|
24715
|
-
/* @__PURE__ */
|
|
23829
|
+
/* @__PURE__ */ jsx$1(Box, { px: "x3", pt: "x4", pb: footerHeight, children })
|
|
24716
23830
|
] }),
|
|
24717
|
-
/* @__PURE__ */
|
|
24718
|
-
!hideCloseButton && /* @__PURE__ */
|
|
24719
|
-
/* @__PURE__ */
|
|
23831
|
+
/* @__PURE__ */ jsx$1(BottomSheetParts.Footer, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "space-between", gap: "x2", children: [
|
|
23832
|
+
!hideCloseButton && /* @__PURE__ */ jsx$1(QuietButton, { onClick: onClose, children: closeButtonLabel }),
|
|
23833
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "x2", alignItems: "center", ml: "auto", children: [
|
|
24720
23834
|
secondaryAction && secondaryAction({ onClose }),
|
|
24721
23835
|
primaryAction && primaryAction({ onClose })
|
|
24722
23836
|
] })
|
|
@@ -27324,8 +26438,8 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27324
26438
|
menuState: { isOpen, closeMenu, openMenu }
|
|
27325
26439
|
} = this.props;
|
|
27326
26440
|
const childrenFnc = typeof children === "function" ? children : () => children;
|
|
27327
|
-
return /* @__PURE__ */
|
|
27328
|
-
/* @__PURE__ */
|
|
26441
|
+
return /* @__PURE__ */ jsxs(Manager$1, { children: [
|
|
26442
|
+
/* @__PURE__ */ jsx$1(Reference$1, { children: ({ ref }) => React__default.cloneElement(
|
|
27329
26443
|
trigger({
|
|
27330
26444
|
closeMenu,
|
|
27331
26445
|
openMenu,
|
|
@@ -27342,7 +26456,7 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27342
26456
|
}
|
|
27343
26457
|
}
|
|
27344
26458
|
) }),
|
|
27345
|
-
isOpen && /* @__PURE__ */
|
|
26459
|
+
isOpen && /* @__PURE__ */ jsx$1(Popper$2, { placement, modifiers: modifiers2, children: (popperProps) => /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
27346
26460
|
DropdownMenuContainer,
|
|
27347
26461
|
{
|
|
27348
26462
|
...popperProps,
|
|
@@ -27364,7 +26478,7 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27364
26478
|
closeMenu
|
|
27365
26479
|
}),
|
|
27366
26480
|
children: [
|
|
27367
|
-
/* @__PURE__ */
|
|
26481
|
+
/* @__PURE__ */ jsx$1(
|
|
27368
26482
|
PopperArrow,
|
|
27369
26483
|
{
|
|
27370
26484
|
...popperProps.arrowProps,
|
|
@@ -27374,7 +26488,7 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27374
26488
|
borderColor: "white"
|
|
27375
26489
|
}
|
|
27376
26490
|
),
|
|
27377
|
-
/* @__PURE__ */
|
|
26491
|
+
/* @__PURE__ */ jsx$1(DetectOutsideClick, { onClick: this.handleOutsideClick, clickRef: [this.menuRef, this.triggerRef] }),
|
|
27378
26492
|
childrenFnc({
|
|
27379
26493
|
closeMenu,
|
|
27380
26494
|
openMenu
|
|
@@ -27503,8 +26617,8 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27503
26617
|
const { t: t3 } = useTranslation();
|
|
27504
26618
|
const openLabel = openAriaLabel || t3("open");
|
|
27505
26619
|
const closeLabel = closeAriaLabel || t3("close");
|
|
27506
|
-
return /* @__PURE__ */
|
|
27507
|
-
/* @__PURE__ */
|
|
26620
|
+
return /* @__PURE__ */ jsxs(Manager$1, { ref: popperRef, children: [
|
|
26621
|
+
/* @__PURE__ */ jsx$1(Reference$1, { children: ({ ref }) => React__default.cloneElement(trigger, {
|
|
27508
26622
|
"aria-haspopup": true,
|
|
27509
26623
|
"aria-expanded": isOpen,
|
|
27510
26624
|
"aria-describedby": id2,
|
|
@@ -27512,7 +26626,7 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27512
26626
|
...eventHandlers,
|
|
27513
26627
|
ref
|
|
27514
26628
|
}) }),
|
|
27515
|
-
/* @__PURE__ */
|
|
26629
|
+
/* @__PURE__ */ jsx$1(Popper$2, { placement: popperPlacement, modifiers: modifiers2, children: ({ ref, style, placement, arrowProps }) => /* @__PURE__ */ jsx$1(Fragment, { children: isOpen && React__default.cloneElement(
|
|
27516
26630
|
children,
|
|
27517
26631
|
{
|
|
27518
26632
|
open: isOpen,
|
|
@@ -27529,7 +26643,7 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27529
26643
|
},
|
|
27530
26644
|
[
|
|
27531
26645
|
...renderInnerChildren(),
|
|
27532
|
-
showArrow && /* @__PURE__ */
|
|
26646
|
+
showArrow && /* @__PURE__ */ jsx$1(
|
|
27533
26647
|
PopperArrow,
|
|
27534
26648
|
{
|
|
27535
26649
|
...arrowProps,
|
|
@@ -27554,7 +26668,7 @@ const transformPropsToModifiers = ({ boundariesElement }) => ({
|
|
|
27554
26668
|
});
|
|
27555
26669
|
const DropdownMenu = React__default.forwardRef(
|
|
27556
26670
|
({
|
|
27557
|
-
trigger = () => /* @__PURE__ */
|
|
26671
|
+
trigger = () => /* @__PURE__ */ jsx$1(IconicButton, { icon: "more" }),
|
|
27558
26672
|
children,
|
|
27559
26673
|
showArrow = true,
|
|
27560
26674
|
variant: variant3,
|
|
@@ -27578,7 +26692,7 @@ const DropdownMenu = React__default.forwardRef(
|
|
|
27578
26692
|
return transformPropsToModifiers({ boundariesElement });
|
|
27579
26693
|
}, [boundariesElement]);
|
|
27580
26694
|
const componentVariant = useComponentVariant(variant3);
|
|
27581
|
-
return /* @__PURE__ */
|
|
26695
|
+
return /* @__PURE__ */ jsx$1(
|
|
27582
26696
|
Popper$1,
|
|
27583
26697
|
{
|
|
27584
26698
|
trigger: React__default.cloneElement(trigger(), {
|
|
@@ -27600,7 +26714,7 @@ const DropdownMenu = React__default.forwardRef(
|
|
|
27600
26714
|
borderColor: backgroundColor,
|
|
27601
26715
|
openAriaLabel,
|
|
27602
26716
|
closeAriaLabel,
|
|
27603
|
-
children: /* @__PURE__ */
|
|
26717
|
+
children: /* @__PURE__ */ jsx$1(
|
|
27604
26718
|
DropdownMenuContainer,
|
|
27605
26719
|
{
|
|
27606
26720
|
className,
|
|
@@ -27762,7 +26876,7 @@ const DropdownText = styled(Text)(
|
|
|
27762
26876
|
}),
|
|
27763
26877
|
addStyledProps
|
|
27764
26878
|
);
|
|
27765
|
-
const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger2, layer, menuType) => /* @__PURE__ */
|
|
26879
|
+
const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger2, layer, menuType) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsx$1(
|
|
27766
26880
|
SubMenuTrigger2,
|
|
27767
26881
|
{
|
|
27768
26882
|
onItemClick,
|
|
@@ -27781,13 +26895,13 @@ const renderSubMenuLink = (subMenuItem, onItemClick) => {
|
|
|
27781
26895
|
as: subMenuItem.as,
|
|
27782
26896
|
target: subMenuItem.openInNew ? "_blank" : void 0
|
|
27783
26897
|
};
|
|
27784
|
-
return /* @__PURE__ */
|
|
26898
|
+
return /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsxs(DropdownLink, { ...linkProps, children: [
|
|
27785
26899
|
subMenuItem.name,
|
|
27786
|
-
subMenuItem.openInNew && /* @__PURE__ */
|
|
26900
|
+
subMenuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: "x2", icon: "openInNew" })
|
|
27787
26901
|
] }) }, subMenuItem.key ?? subMenuItem.name);
|
|
27788
26902
|
};
|
|
27789
|
-
const renderCustom$2 = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => /* @__PURE__ */
|
|
27790
|
-
const renderText$2 = (subMenuItem) => /* @__PURE__ */
|
|
26903
|
+
const renderCustom$2 = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: subMenuItem.render({ size: "medium", onItemClick, layer }) }, subMenuItem.key ?? subMenuItem.name);
|
|
26904
|
+
const renderText$2 = (subMenuItem) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsx$1(DropdownText, { children: subMenuItem.name }) }, subMenuItem.key ?? subMenuItem.name);
|
|
27791
26905
|
const getRenderFunction$2 = (subMenuItem) => {
|
|
27792
26906
|
if (subMenuItem.items) {
|
|
27793
26907
|
return renderSubMenuTrigger;
|
|
@@ -27816,16 +26930,16 @@ const StyledButton$1 = styled(DropdownButton)(
|
|
|
27816
26930
|
);
|
|
27817
26931
|
const SubMenuTriggerButton = React__default.forwardRef(
|
|
27818
26932
|
({ name, isOpen, ...props }, ref) => {
|
|
27819
|
-
return /* @__PURE__ */
|
|
26933
|
+
return /* @__PURE__ */ jsx$1(StyledButton$1, { isOpen, ref, ...props, children: /* @__PURE__ */ jsxs(Flex, { gap: "half", justifyContent: "space-between", alignItems: "center", children: [
|
|
27820
26934
|
name,
|
|
27821
|
-
/* @__PURE__ */
|
|
26935
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow", size: "20px" })
|
|
27822
26936
|
] }) });
|
|
27823
26937
|
}
|
|
27824
26938
|
);
|
|
27825
26939
|
SubMenuTriggerButton.displayName = "SubMenuTriggerButton";
|
|
27826
26940
|
const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType, ...props }) => {
|
|
27827
26941
|
const theme = useTheme();
|
|
27828
|
-
return /* @__PURE__ */
|
|
26942
|
+
return /* @__PURE__ */ jsx$1(
|
|
27829
26943
|
NavBarDropdownMenu,
|
|
27830
26944
|
{
|
|
27831
26945
|
placement: getPlacement(menuType),
|
|
@@ -27844,7 +26958,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
|
|
|
27844
26958
|
onMouseLeave: closeMenu
|
|
27845
26959
|
}),
|
|
27846
26960
|
trigger: ({ closeMenu, openMenu, isOpen }) => {
|
|
27847
|
-
const defaultRender = () => /* @__PURE__ */
|
|
26961
|
+
const defaultRender = () => /* @__PURE__ */ jsx$1(SubMenuTriggerButton, { isOpen, name, onMouseEnter: openMenu, onMouseLeave: closeMenu });
|
|
27848
26962
|
const triggerProps = {
|
|
27849
26963
|
size: "medium",
|
|
27850
26964
|
closeMenu,
|
|
@@ -27855,7 +26969,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
|
|
|
27855
26969
|
};
|
|
27856
26970
|
return trigger ? trigger(triggerProps) : defaultRender();
|
|
27857
26971
|
},
|
|
27858
|
-
children: /* @__PURE__ */
|
|
26972
|
+
children: /* @__PURE__ */ jsx$1(SubMenuItemsList$1, { children: renderSubMenuItems(menuData, onItemClick, SubMenuTrigger, layer + 1, menuType) })
|
|
27859
26973
|
}
|
|
27860
26974
|
);
|
|
27861
26975
|
};
|
|
@@ -27907,9 +27021,9 @@ const StyledButton = styled.button(
|
|
|
27907
27021
|
})
|
|
27908
27022
|
);
|
|
27909
27023
|
const MenuTriggerButton = React__default.forwardRef(
|
|
27910
|
-
({ name, color: color2, hoverColor, hoverBackground, ...props }, ref) => /* @__PURE__ */
|
|
27024
|
+
({ name, color: color2, hoverColor, hoverBackground, ...props }, ref) => /* @__PURE__ */ jsxs(StyledButton, { color: color2, hoverColor, hoverBackground, ref, ...props, children: [
|
|
27911
27025
|
name,
|
|
27912
|
-
/* @__PURE__ */
|
|
27026
|
+
/* @__PURE__ */ jsx$1(
|
|
27913
27027
|
Icon,
|
|
27914
27028
|
{
|
|
27915
27029
|
style: {
|
|
@@ -27953,7 +27067,7 @@ const MenuTrigger = ({
|
|
|
27953
27067
|
};
|
|
27954
27068
|
return (
|
|
27955
27069
|
// @ts-ignore
|
|
27956
|
-
/* @__PURE__ */
|
|
27070
|
+
/* @__PURE__ */ jsx$1(
|
|
27957
27071
|
NavBarDropdownMenu,
|
|
27958
27072
|
{
|
|
27959
27073
|
...props,
|
|
@@ -27971,10 +27085,10 @@ const MenuTrigger = ({
|
|
|
27971
27085
|
}
|
|
27972
27086
|
},
|
|
27973
27087
|
trigger: () => {
|
|
27974
|
-
const defaultRender = () => /* @__PURE__ */
|
|
27088
|
+
const defaultRender = () => /* @__PURE__ */ jsx$1(MenuTriggerButton, { ...triggerProps });
|
|
27975
27089
|
return trigger ? trigger({ size: "medium", defaultRender, layer }) : defaultRender();
|
|
27976
27090
|
},
|
|
27977
|
-
children: ({ closeMenu }) => /* @__PURE__ */
|
|
27091
|
+
children: ({ closeMenu }) => /* @__PURE__ */ jsx$1(
|
|
27978
27092
|
"ul",
|
|
27979
27093
|
{
|
|
27980
27094
|
style: {
|
|
@@ -28040,7 +27154,7 @@ const Nav$1 = styled.nav({
|
|
|
28040
27154
|
display: "flex",
|
|
28041
27155
|
alignItems: "center"
|
|
28042
27156
|
});
|
|
28043
|
-
const renderMenuTrigger = (menuItem, themeColorObject2, layer, menuType) => /* @__PURE__ */
|
|
27157
|
+
const renderMenuTrigger = (menuItem, themeColorObject2, layer, menuType) => /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsx$1(
|
|
28044
27158
|
MenuTrigger,
|
|
28045
27159
|
{
|
|
28046
27160
|
menuType,
|
|
@@ -28059,13 +27173,13 @@ const renderMenuLink$1 = (menuItem, themeColorObject2) => {
|
|
|
28059
27173
|
as: menuItem.as,
|
|
28060
27174
|
target: menuItem.openInNew ? "_blank" : void 0
|
|
28061
27175
|
};
|
|
28062
|
-
return /* @__PURE__ */
|
|
27176
|
+
return /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsxs(MenuLink, { ...linkProps, ...themeColorObject2, children: [
|
|
28063
27177
|
menuItem.name,
|
|
28064
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
27178
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: "x2", icon: "openInNew" })
|
|
28065
27179
|
] }) }, menuItem.key ?? menuItem.name);
|
|
28066
27180
|
};
|
|
28067
|
-
const renderCustom$1 = (menuItem, _themeColorObject, layer) => /* @__PURE__ */
|
|
28068
|
-
const renderText$1 = (menuItem, themeColorObject2) => /* @__PURE__ */
|
|
27181
|
+
const renderCustom$1 = (menuItem, _themeColorObject, layer) => /* @__PURE__ */ jsx$1("div", { children: menuItem.render({ size: "medium", layer }) }, menuItem.key ?? menuItem.name);
|
|
27182
|
+
const renderText$1 = (menuItem, themeColorObject2) => /* @__PURE__ */ jsx$1(MenuText, { ...themeColorObject2, children: menuItem.name }, menuItem.key ?? menuItem.name);
|
|
28069
27183
|
const getRenderFunction$1 = (menuItem) => {
|
|
28070
27184
|
if (menuItem.items) {
|
|
28071
27185
|
return renderMenuTrigger;
|
|
@@ -28080,7 +27194,7 @@ const getRenderFunction$1 = (menuItem) => {
|
|
|
28080
27194
|
};
|
|
28081
27195
|
const renderMenuItem = (menuItem, themeColorObject2, layer, menuType) => getRenderFunction$1(menuItem)(menuItem, themeColorObject2, layer, menuType);
|
|
28082
27196
|
const BaseDesktopMenu = React__default.forwardRef(
|
|
28083
|
-
({ menuData, menuType, themeColorObject: themeColorObject2, ...props }, ref) => /* @__PURE__ */
|
|
27197
|
+
({ menuData, menuType, themeColorObject: themeColorObject2, ...props }, ref) => /* @__PURE__ */ jsx$1(Nav$1, { ...props, ref, children: menuData.map((menuItem) => renderMenuItem(menuItem, themeColorObject2, 0, menuType)) })
|
|
28084
27198
|
);
|
|
28085
27199
|
const DesktopMenu = styled(BaseDesktopMenu)({
|
|
28086
27200
|
"& > div": {
|
|
@@ -28089,8 +27203,8 @@ const DesktopMenu = styled(BaseDesktopMenu)({
|
|
|
28089
27203
|
}
|
|
28090
27204
|
}
|
|
28091
27205
|
});
|
|
28092
|
-
const NulogyLogo$1 = () => /* @__PURE__ */
|
|
28093
|
-
/* @__PURE__ */
|
|
27206
|
+
const NulogyLogo$1 = () => /* @__PURE__ */ jsx$1("svg", { width: "76px", height: "18px", viewBox: "0 0 76 18", children: /* @__PURE__ */ jsx$1("g", { id: "FInal", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx$1("g", { id: "DQI", transform: "translate(-924.000000, -30.000000)", children: /* @__PURE__ */ jsx$1("g", { id: "Branding", transform: "translate(916.000000, 24.000000)", children: /* @__PURE__ */ jsx$1("g", { id: "Logo/Wordmark/White", transform: "translate(8.000000, 6.000000)", children: /* @__PURE__ */ jsxs("g", { id: "Group", children: [
|
|
27207
|
+
/* @__PURE__ */ jsx$1(
|
|
28094
27208
|
"path",
|
|
28095
27209
|
{
|
|
28096
27210
|
d: "M27.2853035,13.6251552 L24.3693609,13.6251552 L24.3693609,5.29388243 L27.0621839,5.29388243 L27.0621839,6.69024606 C27.4508582,6.19089626 27.9367815,5.77426587 28.4910287,5.46515515 C28.9949427,5.19647371 29.5588999,5.05803724 30.1309029,5.0626097 C31.018985,5.0626097 31.6927403,5.31533697 32.1521688,5.82079152 C32.6115974,6.32624606 32.8413117,7.06588243 32.8413117,8.03970061 L32.8413117,13.6251552 L29.9407567,13.6251552 L29.9407567,8.85242788 C29.9407567,8.41606425 29.8506295,8.08624606 29.6703753,7.86297334 C29.490121,7.63970061 29.2230369,7.5306097 28.869123,7.53570061 C28.3606008,7.53570061 27.9693172,7.70515515 27.695272,8.04406425 C27.4212269,8.38297334 27.2845707,8.87642788 27.2853035,9.52442788 L27.2853035,13.6251552 Z",
|
|
@@ -28098,7 +27212,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28098
27212
|
fill: "#00438F"
|
|
28099
27213
|
}
|
|
28100
27214
|
),
|
|
28101
|
-
/* @__PURE__ */
|
|
27215
|
+
/* @__PURE__ */ jsx$1(
|
|
28102
27216
|
"path",
|
|
28103
27217
|
{
|
|
28104
27218
|
d: "M40.1451818,5.0625 L43.0435386,5.0625 L43.0435386,12.7239545 L40.3507157,13.7919545 L40.3507157,12.1643182 C39.9614808,12.6643061 39.4757347,13.082268 38.9218708,13.3937727 C38.4207722,13.6600419 37.8602579,13.7969677 37.2918886,13.7919545 C36.4023411,13.7919545 35.7267539,13.5374091 35.2651271,13.0283182 C34.8035003,12.5192273 34.5719542,11.7792273 34.5704887,10.8083182 L34.5704887,5.0625 L37.4864313,5.0625 L37.4864313,10.0010455 C37.4864313,10.4374091 37.5765584,10.7686818 37.7568127,10.9948636 C37.937067,11.2210455 38.2041511,11.3334091 38.5580649,11.3319545 C39.0709836,11.3319545 39.4622673,11.1610455 39.7319159,10.8192273 C40.0015646,10.4774091 40.1382208,9.98577273 40.1418845,9.34431818 L40.1451818,5.0625 Z",
|
|
@@ -28106,7 +27220,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28106
27220
|
fill: "#00438F"
|
|
28107
27221
|
}
|
|
28108
27222
|
),
|
|
28109
|
-
/* @__PURE__ */
|
|
27223
|
+
/* @__PURE__ */ jsx$1(
|
|
28110
27224
|
"polygon",
|
|
28111
27225
|
{
|
|
28112
27226
|
id: "Path",
|
|
@@ -28114,7 +27228,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28114
27228
|
points: "46.3103725 13.812 44.7716165 13.812 44.7716165 0.612 46.3103725 9.99200722e-16"
|
|
28115
27229
|
}
|
|
28116
27230
|
),
|
|
28117
|
-
/* @__PURE__ */
|
|
27231
|
+
/* @__PURE__ */ jsx$1(
|
|
28118
27232
|
"path",
|
|
28119
27233
|
{
|
|
28120
27234
|
d: "M47.6052632,9.60286364 C47.6052632,8.28359091 48.0276883,7.19704545 48.8725386,6.34322727 C49.7173889,5.48940909 50.7886562,5.0625 52.0863404,5.0625 C53.3840246,5.0625 54.4552919,5.48940909 55.3001422,6.34322727 C56.1449925,7.19704545 56.5674176,8.28359091 56.5674176,9.60286364 C56.5674176,10.9279545 56.1449925,12.0188636 55.3001422,12.8755909 C54.4552919,13.7323182 53.3840246,14.1592273 52.0863404,14.1563329 C50.7937854,14.1563329 49.7239836,13.7294091 48.8769351,12.8755909 C48.0298865,12.0217727 47.6059959,10.9308636 47.6052632,9.60286364 Z M49.133028,9.60286364 C49.133028,10.6392273 49.4030431,11.4730455 49.9430731,12.1043182 C50.4831032,12.7355909 51.1912973,13.0515909 52.0676555,13.0523182 C52.9469446,13.0523182 53.6580697,12.7363182 54.2010308,12.1043182 C54.7439918,11.4723182 55.0173042,10.6385 55.0209679,9.60286364 C55.0209679,8.57377273 54.7476555,7.74322727 54.2010308,7.11122727 C53.654406,6.47922727 52.9432809,6.16359091 52.0676555,6.16431693 C51.1883664,6.16431693 50.4801722,6.48031818 49.9430731,7.11231818 C49.405974,7.74431818 49.135959,8.5745 49.133028,9.60286364 Z",
|
|
@@ -28122,7 +27236,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28122
27236
|
fill: "#00438F"
|
|
28123
27237
|
}
|
|
28124
27238
|
),
|
|
28125
|
-
/* @__PURE__ */
|
|
27239
|
+
/* @__PURE__ */ jsx$1(
|
|
28126
27240
|
"path",
|
|
28127
27241
|
{
|
|
28128
27242
|
d: "M64.0871268,13.2650455 C63.6599049,13.5160632 63.2028112,13.7132209 62.7264269,13.8519545 C62.2872699,13.9773973 61.8326004,14.0412883 61.375619,14.0417727 C60.1402177,14.0417727 59.1418582,13.6348636 58.3805404,12.8210455 C57.6192225,12.0072273 57.23893,10.9377727 57.2396617,9.61268182 C57.2396617,8.26213636 57.6463339,7.16613636 58.4596764,6.32468182 C59.2730188,5.48322727 60.3354932,5.0625 61.6470995,5.0625 C62.0607066,5.06850508 62.4731354,5.10790785 62.8803025,5.18031818 C63.3492567,5.25740909 63.891485,5.37595455 64.5069874,5.53595455 L65.5962068,5.09959091 L65.5962068,12.6159545 C65.5962068,13.6203182 65.5482123,14.3552273 65.4522232,14.8206818 C65.3679541,15.2558519 65.2020399,15.6714278 64.9631186,16.0457727 C64.6019617,16.5876404 64.0882569,17.0121536 63.4859129,17.2665 C62.7842363,17.5630036 62.0270581,17.7080287 61.2646087,17.6919545 C60.7156985,17.6919213 60.1690427,17.6222662 59.6379238,17.4846818 C59.0829675,17.3384872 58.5470293,17.1287137 58.0409149,16.8595909 L57.7892184,15.0475909 L58.9158076,15.7785 C59.2556951,15.9885109 59.62653,16.1445715 60.014919,16.2410455 C60.4392817,16.3595698 60.8776378,16.4215675 61.3184652,16.4254091 C62.1977543,16.4254091 62.8795698,16.2072273 63.3639115,15.7708636 C63.8482533,15.3345 64.089325,14.7134091 64.0871268,13.9075909 L64.0871268,13.2650455 Z M64.0871268,12.1272273 L64.0871268,6.79159091 C63.7249004,6.6117699 63.3457079,6.46780202 62.9550421,6.36177273 C62.6131894,6.26948879 62.2607514,6.22145438 61.9064898,6.21886364 C60.9693141,6.21886364 60.2149573,6.53159091 59.6434194,7.15704545 C59.0718814,7.7825 58.7857461,8.6145 58.7850134,9.65304545 C58.7850134,10.6508636 59.0414727,11.4428636 59.5543914,12.0290455 C60.06731,12.6152273 60.7582847,12.9079545 61.6273155,12.9072286 C61.9914329,12.9029522 62.3527769,12.8437294 62.6989491,12.7315909 C63.1785695,12.5707605 63.6430713,12.3685328 64.0871268,12.1272273 L64.0871268,12.1272273 Z",
|
|
@@ -28130,7 +27244,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28130
27244
|
fill: "#00438F"
|
|
28131
27245
|
}
|
|
28132
27246
|
),
|
|
28133
|
-
/* @__PURE__ */
|
|
27247
|
+
/* @__PURE__ */ jsx$1(
|
|
28134
27248
|
"path",
|
|
28135
27249
|
{
|
|
28136
27250
|
d: "M66.8740602,5.0625 L68.4765646,5.0625 L70.9913315,11.6079545 L73.7588941,5.0625 L75.0635393,5.0625 L71.0572782,14.2446818 L70.9913315,14.3745 C70.3582433,15.8043182 69.8706042,16.8225 69.5284142,17.4290455 L67.8610622,17.4290455 C68.2162734,17.063213 68.5346911,16.6638682 68.8117936,16.2366818 C69.158768,15.6835017 69.4668841,15.1072249 69.7339481,14.5119545 L70.2747109,13.3566818 L66.8740602,5.0625 Z",
|
|
@@ -28138,7 +27252,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28138
27252
|
fill: "#00438F"
|
|
28139
27253
|
}
|
|
28140
27254
|
),
|
|
28141
|
-
/* @__PURE__ */
|
|
27255
|
+
/* @__PURE__ */ jsx$1(
|
|
28142
27256
|
"path",
|
|
28143
27257
|
{
|
|
28144
27258
|
d: "M17.3967355,0.639272727 L20.618231,1.91781818 L20.618231,13.4301818 C20.618231,15.9021818 17.5407191,16.3363636 15.4633985,16.6276364 C16.6515379,16.3363636 17.4033301,16.0090909 17.3967355,13.4301818 L17.3967355,3.19745455 L14.1752399,1.91781818 L17.3967355,0.639272727 Z M3.86557485,15.9883636 L3.86557485,8.95527273 C3.86557485,8.24727273 4.40084211,7.44654545 5.05041695,7.17054545 L8.37632809,5.75236364 L8.37632809,10.2250909 L11.5978237,12.1527273 C12.2473985,12.48 13.5311606,12.4876364 13.5311606,11.5123636 L13.5311606,9.59345455 L12.2408038,8.95309091 L12.2408038,0 L2.41804511,3.59236364 C1.08262474,4.08 1.81208432e-14,5.61709091 1.81208432e-14,7.03527273 L1.81208432e-14,17.5876364 L3.86557485,15.9883636 Z",
|
|
@@ -28148,7 +27262,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28148
27262
|
)
|
|
28149
27263
|
] }) }) }) }) }) });
|
|
28150
27264
|
const borderStyle$1 = "1px solid #e4e7eb";
|
|
28151
|
-
const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */
|
|
27265
|
+
const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ jsxs(
|
|
28152
27266
|
Flex,
|
|
28153
27267
|
{
|
|
28154
27268
|
px: "x1",
|
|
@@ -28160,8 +27274,8 @@ const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ js
|
|
|
28160
27274
|
borderLeft: borderStyle$1,
|
|
28161
27275
|
borderRight: borderStyle$1,
|
|
28162
27276
|
children: [
|
|
28163
|
-
/* @__PURE__ */
|
|
28164
|
-
subText && /* @__PURE__ */
|
|
27277
|
+
/* @__PURE__ */ jsx$1(Box, { width: "76px", height: "18px", children: /* @__PURE__ */ jsx$1(NulogyLogo$1, {}) }),
|
|
27278
|
+
subText && /* @__PURE__ */ jsx$1(
|
|
28165
27279
|
Text,
|
|
28166
27280
|
{
|
|
28167
27281
|
fontSize: "8px",
|
|
@@ -28176,7 +27290,7 @@ const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ js
|
|
|
28176
27290
|
]
|
|
28177
27291
|
}
|
|
28178
27292
|
);
|
|
28179
|
-
const EnvironmentBanner = ({ children }) => /* @__PURE__ */
|
|
27293
|
+
const EnvironmentBanner = ({ children }) => /* @__PURE__ */ jsx$1(Box, { bg: "darkBlue", textAlign: "center", children: /* @__PURE__ */ jsx$1(Text, { fontSize: "10px", letterSpacing: "0.5px", fontWeight: "bold", color: "white", textTransform: "uppercase", py: "2px", children }) });
|
|
28180
27294
|
const logoColors = {
|
|
28181
27295
|
white: "#FFFFFF",
|
|
28182
27296
|
blue: "#0E77D2"
|
|
@@ -28214,14 +27328,14 @@ const sizes$1 = {
|
|
|
28214
27328
|
};
|
|
28215
27329
|
const getSize$1 = (size2) => sizes$1[size2] || sizes$1.medium;
|
|
28216
27330
|
function LettermarkLogo({ size: size2, letterFill, ...props }) {
|
|
28217
|
-
return /* @__PURE__ */
|
|
27331
|
+
return /* @__PURE__ */ jsx$1(
|
|
28218
27332
|
"svg",
|
|
28219
27333
|
{
|
|
28220
27334
|
...getSize$1(size2),
|
|
28221
27335
|
...props,
|
|
28222
27336
|
viewBox: "0 0 37 32",
|
|
28223
27337
|
style: { display: "block", margin: size2 === "large" ? null : "2px 0" },
|
|
28224
|
-
children: /* @__PURE__ */
|
|
27338
|
+
children: /* @__PURE__ */ jsx$1(
|
|
28225
27339
|
"path",
|
|
28226
27340
|
{
|
|
28227
27341
|
fill: letterFill,
|
|
@@ -28247,7 +27361,7 @@ const sizes = {
|
|
|
28247
27361
|
};
|
|
28248
27362
|
const getSize = (size2) => sizes[size2] || sizes.medium;
|
|
28249
27363
|
function WordmarkLogo({ size: size2, logoFill, letterFill, ...props }) {
|
|
28250
|
-
return /* @__PURE__ */
|
|
27364
|
+
return /* @__PURE__ */ jsxs(
|
|
28251
27365
|
"svg",
|
|
28252
27366
|
{
|
|
28253
27367
|
...getSize(size2),
|
|
@@ -28255,20 +27369,20 @@ function WordmarkLogo({ size: size2, logoFill, letterFill, ...props }) {
|
|
|
28255
27369
|
viewBox: "0 0 133 32",
|
|
28256
27370
|
style: { display: "block", margin: size2 === "medium" ? "2px 0" : null },
|
|
28257
27371
|
children: [
|
|
28258
|
-
/* @__PURE__ */
|
|
27372
|
+
/* @__PURE__ */ jsx$1(
|
|
28259
27373
|
"path",
|
|
28260
27374
|
{
|
|
28261
27375
|
fill: letterFill,
|
|
28262
27376
|
d: "M30.6967273,1.13648485 L36.3810909,3.40945455 L36.3810909,23.8758788 C36.3810909,28.2705455 30.9507879,29.0424242 27.2853333,29.5602424 C29.3818182,29.0424242 30.7083636,28.4606061 30.6967273,23.8758788 L30.6967273,5.68436364 L25.0123636,3.40945455 L30.6967273,1.13648485 Z M6.82084848,28.4237576 L6.82084848,15.9204848 C6.82084848,14.6618182 7.76533333,13.238303 8.91151515,12.7476364 L14.7801212,10.2264242 L14.7801212,18.1779394 L20.4644848,21.6048485 C21.6106667,22.1866667 23.8758788,22.2002424 23.8758788,20.4664242 L23.8758788,17.0550303 L21.5990303,15.9166061 L21.5990303,1.56319402e-13 L4.26666667,6.38642424 C1.91030303,7.25333333 3.55271368e-15,9.98593939 3.55271368e-15,12.5071515 L3.55271368e-15,31.2669091 L6.82084848,28.4237576 Z"
|
|
28263
27377
|
}
|
|
28264
27378
|
),
|
|
28265
|
-
/* @__PURE__ */
|
|
28266
|
-
/* @__PURE__ */
|
|
28267
|
-
/* @__PURE__ */
|
|
28268
|
-
/* @__PURE__ */
|
|
28269
|
-
/* @__PURE__ */
|
|
28270
|
-
/* @__PURE__ */
|
|
28271
|
-
/* @__PURE__ */
|
|
27379
|
+
/* @__PURE__ */ jsxs("g", { transform: "translate(43.000000, 0.000000)", fill: logoFill, children: [
|
|
27380
|
+
/* @__PURE__ */ jsx$1("path", { d: "M5.14521212,24.2224981 L1.33226763e-14,24.2224981 L1.33226763e-14,9.41134654 L4.75151515,9.41134654 L4.75151515,11.8937708 C5.43733518,11.0060378 6.29475204,10.2653615 7.27272727,9.71583139 C8.16188898,9.23817548 9.15699751,8.9920662 10.166303,9.00019502 C11.7333333,9.00019502 12.9221818,9.44948795 13.7328485,10.3480738 C14.5435152,11.2466597 14.9488485,12.5615688 14.9488485,14.2928011 L14.9488485,24.2224981 L9.83078788,24.2224981 L9.83078788,15.7376496 C9.83078788,14.961892 9.67175758,14.3755486 9.35369697,13.9786193 C9.03563636,13.58169 8.56436364,13.3877506 7.93987879,13.3968011 C7.04258586,13.3968011 6.35216162,13.6980536 5.86860606,14.3005587 C5.38505051,14.9030637 5.14391919,15.7803162 5.14521212,16.9323162 L5.14521212,24.2224981 Z" }),
|
|
27381
|
+
/* @__PURE__ */ jsx$1("path", { d: "M27.8366061,9 L32.9507879,9 L32.9507879,22.6203636 L28.1992727,24.5190303 L28.1992727,21.6254545 C27.5124636,22.5143219 26.6553593,23.2573653 25.6780606,23.8111515 C24.7938668,24.2845189 23.8048332,24.5279425 22.8019394,24.5190303 C21.2323232,24.5190303 20.0402424,24.0665051 19.225697,23.1614545 C18.4111515,22.256404 18.0025859,20.9408485 18,19.2147879 L18,9 L23.1452121,9 L23.1452121,17.7796364 C23.1452121,18.5553939 23.3042424,19.1443232 23.622303,19.5464242 C23.9403636,19.9485253 24.4116364,20.1482828 25.0361212,20.145697 C25.9411717,20.145697 26.631596,19.8418586 27.1073939,19.2341818 C27.5831919,18.6265051 27.8243232,17.7524848 27.8307879,16.6121212 L27.8366061,9 Z" }),
|
|
27382
|
+
/* @__PURE__ */ jsx$1("polygon", { id: "Path", points: "38.7151515 24.5546667 36 24.5546667 36 1.088 38.7151515 1.15463195e-13" }),
|
|
27383
|
+
/* @__PURE__ */ jsx$1("path", { d: "M41,17.0717576 C41,14.7263838 41.7453737,12.7947475 43.2361212,11.2768485 C44.7268687,9.75894949 46.6171313,9 48.9069091,9 C51.1966869,9 53.0869495,9.75894949 54.577697,11.2768485 C56.0684444,12.7947475 56.8138182,14.7263838 56.8138182,17.0717576 C56.8138182,19.4274747 56.0684444,21.3668687 54.577697,22.8899394 C53.0869495,24.4130101 51.1966869,25.1719596 48.9069091,25.1667879 C46.6261818,25.1667879 44.7385051,24.4078384 43.2438788,22.8899394 C41.7492525,21.3720404 41.0012929,19.4326465 41,17.0717576 Z M43.6957576,17.0717576 C43.6957576,18.9141818 44.172202,20.3965253 45.1250909,21.5187879 C46.0779798,22.6410505 47.327596,23.2028283 48.8739394,23.2041212 C50.4254545,23.2041212 51.6802424,22.6423434 52.638303,21.5187879 C53.5963636,20.3952323 54.0786263,18.9128889 54.0850909,17.0717576 C54.0850909,15.2422626 53.6028283,13.7657374 52.638303,12.6421818 C51.6737778,11.5186263 50.4189899,10.9574949 48.8739394,10.9587879 C47.3224242,10.9587879 46.0728081,11.5205657 45.1250909,12.6441212 C44.1773737,13.7676768 43.7009293,15.2435556 43.6957576,17.0717576 Z" }),
|
|
27384
|
+
/* @__PURE__ */ jsx$1("path", { d: "M70.0824261,23.582303 C69.3285884,24.0285568 68.5220417,24.3790594 67.6814564,24.625697 C66.9065592,24.8487063 66.1042899,24.9622904 65.2979413,24.9631515 C63.1180625,24.9631515 61.3564463,24.2397576 60.0130928,22.7929697 C58.6697392,21.3461818 57.9987089,19.4449293 58.0000019,17.0892121 C58.0000019,14.6882424 58.7175776,12.739798 60.1527291,11.2438788 C61.5878807,9.7479596 63.4626281,9 65.7769716,9 C66.5067857,9.0106757 67.2345208,9.08072506 67.9529716,9.20945455 C68.7804463,9.34650505 69.737214,9.55725253 70.8232746,9.84169697 L72.745214,9.06593939 L72.745214,22.4283636 C72.745214,24.213899 72.6605271,25.520404 72.4911534,26.3478788 C72.3424597,27.1215145 72.0497022,27.860316 71.6281231,28.5258182 C70.9908577,29.4891385 70.0844202,30.2438287 69.0215776,30.696 C67.7834618,31.2231176 66.4474127,31.48094 65.1020625,31.4523636 C64.1335045,31.4523045 63.1689244,31.3284732 62.2317594,31.0838788 C61.252533,30.8239772 60.3068642,30.4510466 59.41382,29.9726061 L58.9696988,26.7512727 L60.9575776,28.0506667 C61.5573127,28.4240193 62.2116549,28.7014604 62.8969716,28.8729697 C63.6457641,29.0836796 64.4192481,29.1938978 65.1970928,29.2007273 C66.7486079,29.2007273 67.9516786,28.8128485 68.8063049,28.0370909 C69.6609312,27.2613333 70.0863049,26.1571717 70.0824261,24.7246061 L70.0824261,23.582303 Z M70.0824261,21.5595152 L70.0824261,12.0739394 C69.4432737,11.7542576 68.7741844,11.4983147 68.0848503,11.3098182 C67.4816476,11.1457578 66.859767,11.0603633 66.2346685,11.0557576 C64.581012,11.0557576 63.2499413,11.6117172 62.2414564,12.7236364 C61.2329716,13.8355556 60.7280827,15.3146667 60.7267897,17.1609697 C60.7267897,18.9348687 61.179315,20.3428687 62.0843655,21.3849697 C62.989416,22.4270707 64.2086483,22.9474747 65.7420625,22.9461818 C66.3845516,22.9385817 67.0221469,22.8332967 67.6329716,22.6339394 C68.4792669,22.3480186 69.2988853,21.9885027 70.0824261,21.5595152 L70.0824261,21.5595152 Z" }),
|
|
27385
|
+
/* @__PURE__ */ jsx$1("path", { d: "M75,9 L77.8276364,9 L82.2649697,20.6363636 L87.1483636,9 L89.4504242,9 L82.3813333,25.3238788 L82.2649697,25.5546667 C81.1478788,28.0965657 80.2874343,29.9066667 79.6836364,30.9849697 L76.7415758,30.9849697 C77.3683498,30.3346009 77.9302011,29.6246546 78.4191515,28.8652121 C79.0313917,27.8817808 79.5750659,26.8572886 80.046303,25.7990303 L81.0004848,23.7452121 L75,9 Z" })
|
|
28272
27386
|
] })
|
|
28273
27387
|
]
|
|
28274
27388
|
}
|
|
@@ -28335,8 +27449,8 @@ const Branding = ({
|
|
|
28335
27449
|
...props
|
|
28336
27450
|
}) => {
|
|
28337
27451
|
const theme = useTheme();
|
|
28338
|
-
return /* @__PURE__ */
|
|
28339
|
-
logoType === "lettermark" ? /* @__PURE__ */
|
|
27452
|
+
return /* @__PURE__ */ jsxs(BrandingWrap$1, { size: size2, alignment, className, ...props, children: [
|
|
27453
|
+
logoType === "lettermark" ? /* @__PURE__ */ jsx$1(LettermarkLogo, { size: size2, letterFill: getLogoColor(logoColor, theme).letter }) : /* @__PURE__ */ jsx$1(
|
|
28340
27454
|
WordmarkLogo,
|
|
28341
27455
|
{
|
|
28342
27456
|
size: size2,
|
|
@@ -28344,9 +27458,9 @@ const Branding = ({
|
|
|
28344
27458
|
logoFill: getLogoColor(logoColor, theme).logo
|
|
28345
27459
|
}
|
|
28346
27460
|
),
|
|
28347
|
-
subtext && /* @__PURE__ */
|
|
28348
|
-
alignment !== "left" && withLine && /* @__PURE__ */
|
|
28349
|
-
/* @__PURE__ */
|
|
27461
|
+
subtext && /* @__PURE__ */ jsxs(Flex, { justifyContent: getAlignment$1(alignment), width: "100%", py: BrandingBoxPaddings[size2], children: [
|
|
27462
|
+
alignment !== "left" && withLine && /* @__PURE__ */ jsx$1(Line, { logoColor }),
|
|
27463
|
+
/* @__PURE__ */ jsx$1(
|
|
28350
27464
|
BrandingText,
|
|
28351
27465
|
{
|
|
28352
27466
|
logoColor,
|
|
@@ -28358,7 +27472,7 @@ const Branding = ({
|
|
|
28358
27472
|
children: subtext
|
|
28359
27473
|
}
|
|
28360
27474
|
),
|
|
28361
|
-
alignment !== "right" && withLine && /* @__PURE__ */
|
|
27475
|
+
alignment !== "right" && withLine && /* @__PURE__ */ jsx$1(Line, { logoColor })
|
|
28362
27476
|
] })
|
|
28363
27477
|
] });
|
|
28364
27478
|
};
|
|
@@ -28371,7 +27485,7 @@ const BrandLogoContainer = ({
|
|
|
28371
27485
|
brandingLinkComponent,
|
|
28372
27486
|
subtext
|
|
28373
27487
|
}) => {
|
|
28374
|
-
return /* @__PURE__ */
|
|
27488
|
+
return /* @__PURE__ */ jsx$1(Box, { maxWidth: MAX_LOGO_WIDTH, maxHeight: MAX_LOGO_HEIGHT, children: /* @__PURE__ */ jsxs(
|
|
28375
27489
|
Link$1,
|
|
28376
27490
|
{
|
|
28377
27491
|
"aria-label": "Home",
|
|
@@ -28382,15 +27496,15 @@ const BrandLogoContainer = ({
|
|
|
28382
27496
|
variant: "desktop",
|
|
28383
27497
|
style: { display: "block" },
|
|
28384
27498
|
children: [
|
|
28385
|
-
logoSrc && /* @__PURE__ */
|
|
28386
|
-
!logoSrc && /* @__PURE__ */
|
|
27499
|
+
logoSrc && /* @__PURE__ */ jsx$1("img", { src: logoSrc, style: { maxWidth: MAX_LOGO_WIDTH, maxHeight: MAX_LOGO_HEIGHT }, alt: "" }),
|
|
27500
|
+
!logoSrc && /* @__PURE__ */ jsx$1(Branding, { size: subtext ? "small" : "medium", logoColor: "blue", subtext })
|
|
28387
27501
|
]
|
|
28388
27502
|
}
|
|
28389
27503
|
) });
|
|
28390
27504
|
};
|
|
28391
|
-
const Prefix = ({ prefix: prefix2, prefixWidth, ...props }) => prefix2 ? /* @__PURE__ */
|
|
27505
|
+
const Prefix = ({ prefix: prefix2, prefixWidth, ...props }) => prefix2 ? /* @__PURE__ */ jsx$1(Box, { width: prefixWidth, pt: "x1", pr: "x1", pb: "x1", children: /* @__PURE__ */ jsx$1(Text, { ...props, children: prefix2 }) }) : null;
|
|
28392
27506
|
function Suffix({ suffix, suffixWidth, ...props }) {
|
|
28393
|
-
return suffix ? /* @__PURE__ */
|
|
27507
|
+
return suffix ? /* @__PURE__ */ jsx$1(Box, { width: suffixWidth, pt: "x1", pb: "x1", pl: "x1", children: /* @__PURE__ */ jsx$1(Text, { ...props, children: suffix }) }) : null;
|
|
28394
27508
|
}
|
|
28395
27509
|
const InputField = forwardRef(
|
|
28396
27510
|
({
|
|
@@ -28420,11 +27534,11 @@ const InputField = forwardRef(
|
|
|
28420
27534
|
}, ref) => {
|
|
28421
27535
|
const componentVariant = useComponentVariant(variant22);
|
|
28422
27536
|
const theme = useTheme();
|
|
28423
|
-
return /* @__PURE__ */
|
|
28424
|
-
/* @__PURE__ */
|
|
28425
|
-
/* @__PURE__ */
|
|
28426
|
-
iconLeft && (iconLeftTooltip ? /* @__PURE__ */
|
|
28427
|
-
/* @__PURE__ */
|
|
27537
|
+
return /* @__PURE__ */ jsx$1(MaybeFieldLabel, { labelText, requirementText, helpText, children: /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", children: [
|
|
27538
|
+
/* @__PURE__ */ jsx$1(Prefix, { prefix: prefix2, prefixWidth, textAlign: prefixAlignment }),
|
|
27539
|
+
/* @__PURE__ */ jsxs(InputWrapper, { maxWidth: inputWidth, children: [
|
|
27540
|
+
iconLeft && (iconLeftTooltip ? /* @__PURE__ */ jsx$1(Tooltip, { tooltip: iconLeftTooltip, ...iconLeftTooltipProps, children: /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: iconLeft, size: iconLeftSize }) }) : /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: iconLeft, size: iconLeftSize })),
|
|
27541
|
+
/* @__PURE__ */ jsx$1(
|
|
28428
27542
|
StyledInput,
|
|
28429
27543
|
{
|
|
28430
27544
|
paddingLeft: iconLeft ? `calc(${theme.space[iconLeftSize]} + ${theme.space.x1_5})` : theme.space.x1,
|
|
@@ -28440,9 +27554,9 @@ const InputField = forwardRef(
|
|
|
28440
27554
|
...props
|
|
28441
27555
|
}
|
|
28442
27556
|
),
|
|
28443
|
-
iconRight && (iconRightTooltip ? /* @__PURE__ */
|
|
27557
|
+
iconRight && (iconRightTooltip ? /* @__PURE__ */ jsx$1(Tooltip, { tooltip: iconRightTooltip, ...iconRightTooltipProps, children: /* @__PURE__ */ jsx$1(InputIcon, { right: "x1", icon: iconRight, size: iconRightSize }) }) : /* @__PURE__ */ jsx$1(InputIcon, { right: "x1", icon: iconRight, size: iconRightSize }))
|
|
28444
27558
|
] }),
|
|
28445
|
-
/* @__PURE__ */
|
|
27559
|
+
/* @__PURE__ */ jsx$1(Suffix, { suffix, suffixWidth, textAlign: suffixAlignment })
|
|
28446
27560
|
] }) });
|
|
28447
27561
|
}
|
|
28448
27562
|
);
|
|
@@ -28526,9 +27640,9 @@ const Input = forwardRef(({ errorMessage, errorList, className, ...props }, ref)
|
|
|
28526
27640
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
28527
27641
|
const layoutProps = getSubset(props, propTypes$1.space);
|
|
28528
27642
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
28529
|
-
return /* @__PURE__ */
|
|
28530
|
-
/* @__PURE__ */
|
|
28531
|
-
/* @__PURE__ */
|
|
27643
|
+
return /* @__PURE__ */ jsxs(Field, { className, ...spaceProps, ...layoutProps, children: [
|
|
27644
|
+
/* @__PURE__ */ jsx$1(InputField, { ...restProps, error: !!(errorMessage || errorList), ref }),
|
|
27645
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
28532
27646
|
] });
|
|
28533
27647
|
});
|
|
28534
27648
|
const BaseNavBarSearch = ({ name = "global-search", onSubmit, ...props }) => {
|
|
@@ -28537,9 +27651,9 @@ const BaseNavBarSearch = ({ name = "global-search", onSubmit, ...props }) => {
|
|
|
28537
27651
|
onSubmit(e3);
|
|
28538
27652
|
};
|
|
28539
27653
|
const { t: t3 } = useTranslation();
|
|
28540
|
-
return /* @__PURE__ */
|
|
28541
|
-
/* @__PURE__ */
|
|
28542
|
-
/* @__PURE__ */
|
|
27654
|
+
return /* @__PURE__ */ jsx$1("form", { ...props, onSubmit: handleOnSubmit, children: /* @__PURE__ */ jsxs(Flex, { role: "search", children: [
|
|
27655
|
+
/* @__PURE__ */ jsx$1(Input, { id: "navbar-search", type: "search", "aria-labelledby": name, required: true, placeholder: t3("search nulogy") }),
|
|
27656
|
+
/* @__PURE__ */ jsx$1("button", { id: name, "aria-label": name, children: /* @__PURE__ */ jsx$1(Icon, { icon: "search" }) })
|
|
28543
27657
|
] }) });
|
|
28544
27658
|
};
|
|
28545
27659
|
const NavBarSearch = styled(BaseNavBarSearch)(({ theme }) => ({
|
|
@@ -28702,19 +27816,19 @@ const renderMenuLink = (menuItem, linkOnClick, themeColorObject2, layer) => {
|
|
|
28702
27816
|
target: menuItem.openInNew ? "_blank" : void 0
|
|
28703
27817
|
};
|
|
28704
27818
|
const topLevel = layer === 0;
|
|
28705
|
-
return /* @__PURE__ */
|
|
27819
|
+
return /* @__PURE__ */ jsx$1("li", { children: topLevel ? /* @__PURE__ */ jsxs(TopLevelLink, { ...sharedLinkProps, children: [
|
|
28706
27820
|
menuItem.name,
|
|
28707
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
28708
|
-
] }) : /* @__PURE__ */
|
|
27821
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: topLevel ? "x3" : "x2", icon: "openInNew" })
|
|
27822
|
+
] }) : /* @__PURE__ */ jsxs(DropdownLink, { ...sharedLinkProps, children: [
|
|
28709
27823
|
menuItem.name,
|
|
28710
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
27824
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: topLevel ? "x3" : "x2", icon: "openInNew" })
|
|
28711
27825
|
] }) }, menuItem.key ?? menuItem.name);
|
|
28712
27826
|
};
|
|
28713
|
-
const renderCustom = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */
|
|
28714
|
-
const renderSubMenu = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */
|
|
27827
|
+
const renderCustom = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */ jsx$1("li", { children: menuItem.render({ size: "small", onItemClick: linkOnClick, layer }) }, menuItem.key ?? menuItem.name);
|
|
27828
|
+
const renderSubMenu = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */ jsx$1("li", { style: { display: "block" }, children: /* @__PURE__ */ jsx$1(SubMenu, { menuItem, layer, themeColorObject: themeColorObject2, linkOnClick }) }, menuItem.key ?? menuItem.name);
|
|
28715
27829
|
const renderText = (menuItem, linkOnClick, themeColorObject2, layer) => {
|
|
28716
27830
|
const MenuText2 = layer === 0 ? TopLevelText : DropdownText;
|
|
28717
|
-
return /* @__PURE__ */
|
|
27831
|
+
return /* @__PURE__ */ jsx$1("li", { children: /* @__PURE__ */ jsx$1(MenuText2, { pl: getPaddingLeft(layer), mb: "x1", children: menuItem.name }) }, menuItem.key ?? menuItem.name);
|
|
28718
27832
|
};
|
|
28719
27833
|
const getRenderFunction = (menuItem) => {
|
|
28720
27834
|
if (menuItem.items) {
|
|
@@ -28732,12 +27846,12 @@ const renderMenuItems = (menuItems, linkOnClick, themeColorObject2, layer) => me
|
|
|
28732
27846
|
return render(menuItem, linkOnClick, themeColorObject2, layer);
|
|
28733
27847
|
});
|
|
28734
27848
|
const renderTopLayerMenuItems = (menuData, linkOnClick, themeColorObject2) => renderMenuItems(menuData, linkOnClick, themeColorObject2, 0);
|
|
28735
|
-
const getSubMenuHeading = (layer, name) => layer === 0 ? /* @__PURE__ */
|
|
27849
|
+
const getSubMenuHeading = (layer, name) => layer === 0 ? /* @__PURE__ */ jsx$1(TopLevelText, { as: "h3", mb: "x1", children: name }) : /* @__PURE__ */ jsx$1(DropdownText, { mb: "x1", pl: getPaddingLeft(layer), children: name });
|
|
28736
27850
|
const SubMenu = ({ menuItem, linkOnClick, themeColorObject: themeColorObject2, layer }) => {
|
|
28737
27851
|
const defaultRender = () => getSubMenuHeading(layer, menuItem.name);
|
|
28738
|
-
return /* @__PURE__ */
|
|
27852
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28739
27853
|
menuItem.trigger ? menuItem.trigger({ size: "small", defaultRender, layer }) : defaultRender(),
|
|
28740
|
-
/* @__PURE__ */
|
|
27854
|
+
/* @__PURE__ */ jsx$1(SubMenuItemsList, { children: renderMenuItems(menuItem.items, linkOnClick, themeColorObject2, layer + 1) })
|
|
28741
27855
|
] });
|
|
28742
27856
|
};
|
|
28743
27857
|
const Menu$1 = styled.ul(({ theme }) => ({
|
|
@@ -28768,15 +27882,15 @@ const BaseMobileMenu = ({
|
|
|
28768
27882
|
...props
|
|
28769
27883
|
}) => {
|
|
28770
27884
|
useScrollLock();
|
|
28771
|
-
return /* @__PURE__ */
|
|
28772
|
-
/* @__PURE__ */
|
|
28773
|
-
/* @__PURE__ */
|
|
27885
|
+
return /* @__PURE__ */ jsxs(Nav, { backgroundColor: themeColorObject2 && themeColorObject2.background, ...props, children: [
|
|
27886
|
+
/* @__PURE__ */ jsx$1(BrandingWrap, { children: /* @__PURE__ */ jsx$1(BrandingText, { logoColor: themeColorObject2?.logoColor }) }),
|
|
27887
|
+
/* @__PURE__ */ jsxs(Menu$1, { children: [
|
|
28774
27888
|
menuData.primaryMenu && renderTopLayerMenuItems(menuData.primaryMenu, closeMenu, themeColorObject2),
|
|
28775
27889
|
menuData.secondaryMenu && renderTopLayerMenuItems(menuData.secondaryMenu, closeMenu, themeColorObject2)
|
|
28776
27890
|
] }),
|
|
28777
|
-
showNulogyLogo && /* @__PURE__ */
|
|
28778
|
-
/* @__PURE__ */
|
|
28779
|
-
subtext && /* @__PURE__ */
|
|
27891
|
+
showNulogyLogo && /* @__PURE__ */ jsxs(Flex, { textAlign: "center", borderTop: borderStyle, height: "40px", alignItems: "center", justifyContent: "center", children: [
|
|
27892
|
+
/* @__PURE__ */ jsx$1(NulogyLogo$1, {}),
|
|
27893
|
+
subtext && /* @__PURE__ */ jsx$1(
|
|
28780
27894
|
Text,
|
|
28781
27895
|
{
|
|
28782
27896
|
fontSize: "8px",
|
|
@@ -28839,7 +27953,7 @@ const MenuIcon = ({ isOpen }) => {
|
|
|
28839
27953
|
const { t: t3 } = useTranslation();
|
|
28840
27954
|
const icon = isOpen ? "close" : "menu";
|
|
28841
27955
|
const title = isOpen ? t3("close menu") : t3("open menu");
|
|
28842
|
-
return /* @__PURE__ */
|
|
27956
|
+
return /* @__PURE__ */ jsx$1(Icon, { icon, title });
|
|
28843
27957
|
};
|
|
28844
27958
|
const SmallNavBarNoState = ({
|
|
28845
27959
|
menuData,
|
|
@@ -28862,7 +27976,7 @@ const SmallNavBarNoState = ({
|
|
|
28862
27976
|
}, [isOpen]);
|
|
28863
27977
|
const { breakpoints } = useTheme();
|
|
28864
27978
|
const ariaExpanded = isOpen ? true : null;
|
|
28865
|
-
return /* @__PURE__ */
|
|
27979
|
+
return /* @__PURE__ */ jsxs(
|
|
28866
27980
|
SmallHeader,
|
|
28867
27981
|
{
|
|
28868
27982
|
ref: navRef,
|
|
@@ -28870,20 +27984,20 @@ const SmallNavBarNoState = ({
|
|
|
28870
27984
|
breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower,
|
|
28871
27985
|
...props,
|
|
28872
27986
|
children: [
|
|
28873
|
-
environment && /* @__PURE__ */
|
|
28874
|
-
/* @__PURE__ */
|
|
27987
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
27988
|
+
/* @__PURE__ */ jsxs(NavBarBackground, { backgroundColor: "white", height: navBarHeight, children: [
|
|
28875
27989
|
logo,
|
|
28876
|
-
/* @__PURE__ */
|
|
28877
|
-
menuData.search && /* @__PURE__ */
|
|
27990
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "flex-end", ml: "x3", flexGrow: 1, children: [
|
|
27991
|
+
menuData.search && /* @__PURE__ */ jsx$1(Flex, { maxWidth: "18em", alignItems: "center", px: "0", children: /* @__PURE__ */ jsx$1(NavBarSearch, { ...menuData.search }) }),
|
|
28878
27992
|
(menuData.primaryMenu || menuData.secondaryMenu) && (renderMenuButton ? renderMenuButton({
|
|
28879
27993
|
themeColorObject: themeColorObject2,
|
|
28880
27994
|
onClick: toggleMenu,
|
|
28881
27995
|
ariaExpanded,
|
|
28882
27996
|
isOpen
|
|
28883
|
-
}) : /* @__PURE__ */
|
|
27997
|
+
}) : /* @__PURE__ */ jsx$1(MobileMenuTrigger, { ...themeColorObject2, onClick: toggleMenu, "aria-expanded": ariaExpanded, children: /* @__PURE__ */ jsx$1(MenuIcon, { isOpen }) }))
|
|
28884
27998
|
] })
|
|
28885
27999
|
] }),
|
|
28886
|
-
isOpen && /* @__PURE__ */
|
|
28000
|
+
isOpen && /* @__PURE__ */ jsx$1(
|
|
28887
28001
|
MobileMenu,
|
|
28888
28002
|
{
|
|
28889
28003
|
themeColorObject: themeColorObject2,
|
|
@@ -28916,12 +28030,12 @@ const MediumNavBar = ({
|
|
|
28916
28030
|
...props
|
|
28917
28031
|
}) => {
|
|
28918
28032
|
const { t: t3 } = useTranslation();
|
|
28919
|
-
return /* @__PURE__ */
|
|
28920
|
-
environment && /* @__PURE__ */
|
|
28921
|
-
/* @__PURE__ */
|
|
28033
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28034
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
28035
|
+
/* @__PURE__ */ jsx$1("header", { ...props, children: /* @__PURE__ */ jsxs(NavBarBackground, { backgroundColor: "white", height: NAVBAR_HEIGHT, children: [
|
|
28922
28036
|
logo,
|
|
28923
|
-
/* @__PURE__ */
|
|
28924
|
-
menuData.primaryMenu && /* @__PURE__ */
|
|
28037
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignContent: "flex-end", flexGrow: 1, ml: "x3", alignItems: "center", children: [
|
|
28038
|
+
menuData.primaryMenu && /* @__PURE__ */ jsx$1(
|
|
28925
28039
|
DesktopMenu,
|
|
28926
28040
|
{
|
|
28927
28041
|
themeColorObject,
|
|
@@ -28930,8 +28044,8 @@ const MediumNavBar = ({
|
|
|
28930
28044
|
menuData: menuData.primaryMenu
|
|
28931
28045
|
}
|
|
28932
28046
|
),
|
|
28933
|
-
/* @__PURE__ */
|
|
28934
|
-
menuData.secondaryMenu && /* @__PURE__ */
|
|
28047
|
+
/* @__PURE__ */ jsxs(Flex, { justifySelf: "flex-end", alignItems: "center", children: [
|
|
28048
|
+
menuData.secondaryMenu && /* @__PURE__ */ jsx$1(
|
|
28935
28049
|
DesktopMenu,
|
|
28936
28050
|
{
|
|
28937
28051
|
themeColorObject,
|
|
@@ -28940,7 +28054,7 @@ const MediumNavBar = ({
|
|
|
28940
28054
|
menuData: menuData.secondaryMenu
|
|
28941
28055
|
}
|
|
28942
28056
|
),
|
|
28943
|
-
showNulogyLogo && /* @__PURE__ */
|
|
28057
|
+
showNulogyLogo && /* @__PURE__ */ jsx$1(Box, { pl: "x3", children: /* @__PURE__ */ jsx$1(NulogyLogoContainer, { height: NAVBAR_HEIGHT, subText: subtext }) })
|
|
28944
28058
|
] })
|
|
28945
28059
|
] })
|
|
28946
28060
|
] }) })
|
|
@@ -28957,7 +28071,7 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28957
28071
|
...props
|
|
28958
28072
|
}) => {
|
|
28959
28073
|
const currentWidth = width2 || typeof window !== "undefined" && window.innerWidth;
|
|
28960
|
-
const logo = /* @__PURE__ */
|
|
28074
|
+
const logo = /* @__PURE__ */ jsx$1(
|
|
28961
28075
|
BrandLogoContainer,
|
|
28962
28076
|
{
|
|
28963
28077
|
logoSrc,
|
|
@@ -28968,9 +28082,9 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28968
28082
|
}
|
|
28969
28083
|
);
|
|
28970
28084
|
if (currentWidth >= numberFromDimension(breakpointUpper)) {
|
|
28971
|
-
return /* @__PURE__ */
|
|
28085
|
+
return /* @__PURE__ */ jsx$1(MediumNavBar, { logo, showNulogyLogo: logoSrc, ...props });
|
|
28972
28086
|
} else {
|
|
28973
|
-
return /* @__PURE__ */
|
|
28087
|
+
return /* @__PURE__ */ jsx$1(
|
|
28974
28088
|
SmallNavBar,
|
|
28975
28089
|
{
|
|
28976
28090
|
width: currentWidth,
|
|
@@ -28986,7 +28100,7 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28986
28100
|
};
|
|
28987
28101
|
const BaseNavBar = ({ environment, breakpointUpper = "medium", ...props }) => {
|
|
28988
28102
|
const { breakpoints } = useTheme();
|
|
28989
|
-
return /* @__PURE__ */
|
|
28103
|
+
return /* @__PURE__ */ jsx$1(ResizeDetector, { handleWidth: true, children: ({ width: width2 }) => /* @__PURE__ */ jsx$1(
|
|
28990
28104
|
SelectNavBarBasedOnWidth,
|
|
28991
28105
|
{
|
|
28992
28106
|
breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper,
|
|
@@ -29050,7 +28164,7 @@ const insertSeparators = (items) => {
|
|
|
29050
28164
|
return items.reduce((acc, current, index2) => {
|
|
29051
28165
|
return acc.concat(
|
|
29052
28166
|
current,
|
|
29053
|
-
/* @__PURE__ */
|
|
28167
|
+
/* @__PURE__ */ jsx$1(BreadcrumbsListSeparator, { "aria-hidden": true, className: "separator", children: /* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow" }) }, `separator-${index2}`)
|
|
29054
28168
|
);
|
|
29055
28169
|
}, []);
|
|
29056
28170
|
};
|
|
@@ -29058,9 +28172,9 @@ const Breadcrumbs = ({ variant: variant3, as = "nav", children, ...props }) => {
|
|
|
29058
28172
|
const componentVariant = useComponentVariant(variant3);
|
|
29059
28173
|
const allItems = React__default.Children.map(children, (child, index2) => {
|
|
29060
28174
|
if (!isValidElement(child)) return null;
|
|
29061
|
-
return /* @__PURE__ */
|
|
28175
|
+
return /* @__PURE__ */ jsx$1(BreadcrumbsListItem, { variant: componentVariant, children: child }, `child-${index2}`);
|
|
29062
28176
|
}).filter(Boolean);
|
|
29063
|
-
return /* @__PURE__ */
|
|
28177
|
+
return /* @__PURE__ */ jsx$1(Flex, { as, ...props, children: /* @__PURE__ */ jsx$1(BreadcrumbsList, { children: insertSeparators(allItems) }) });
|
|
29064
28178
|
};
|
|
29065
28179
|
const alignments = {
|
|
29066
28180
|
left: "flex-start",
|
|
@@ -29104,7 +28218,7 @@ function Card({
|
|
|
29104
28218
|
children,
|
|
29105
28219
|
...props
|
|
29106
28220
|
}) {
|
|
29107
|
-
return /* @__PURE__ */
|
|
28221
|
+
return /* @__PURE__ */ jsx$1(
|
|
29108
28222
|
Box,
|
|
29109
28223
|
{
|
|
29110
28224
|
border: "1px solid",
|
|
@@ -29224,8 +28338,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29224
28338
|
const componentVariant = useComponentVariant(variant3);
|
|
29225
28339
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
29226
28340
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
29227
|
-
return /* @__PURE__ */
|
|
29228
|
-
/* @__PURE__ */
|
|
28341
|
+
return /* @__PURE__ */ jsx$1(Box, { className, px: "0", ...spaceProps, children: /* @__PURE__ */ jsxs(ClickInputLabel, { variant: componentVariant, disabled, children: [
|
|
28342
|
+
/* @__PURE__ */ jsx$1(
|
|
29229
28343
|
CheckboxInput,
|
|
29230
28344
|
{
|
|
29231
28345
|
type: "checkbox",
|
|
@@ -29237,7 +28351,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29237
28351
|
...restProps
|
|
29238
28352
|
}
|
|
29239
28353
|
),
|
|
29240
|
-
/* @__PURE__ */
|
|
28354
|
+
/* @__PURE__ */ jsx$1(
|
|
29241
28355
|
VisualCheckbox,
|
|
29242
28356
|
{
|
|
29243
28357
|
disabled,
|
|
@@ -29246,7 +28360,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29246
28360
|
"data-testid": "visual-checkbox"
|
|
29247
28361
|
}
|
|
29248
28362
|
),
|
|
29249
|
-
labelText && /* @__PURE__ */
|
|
28363
|
+
labelText && /* @__PURE__ */ jsx$1(
|
|
29250
28364
|
Text,
|
|
29251
28365
|
{
|
|
29252
28366
|
fontSize: componentVariant === "touch" ? "md" : void 0,
|
|
@@ -29270,21 +28384,21 @@ function CheckboxGroup({
|
|
|
29270
28384
|
...props
|
|
29271
28385
|
}) {
|
|
29272
28386
|
const otherProps = { ...props, errorMessage, errorList };
|
|
29273
|
-
return /* @__PURE__ */
|
|
29274
|
-
/* @__PURE__ */
|
|
29275
|
-
/* @__PURE__ */
|
|
29276
|
-
requirementText && /* @__PURE__ */
|
|
29277
|
-
hint && /* @__PURE__ */
|
|
28387
|
+
return /* @__PURE__ */ jsxs(Fieldset, { className, id: id2, children: [
|
|
28388
|
+
/* @__PURE__ */ jsx$1(Legend, { children: /* @__PURE__ */ jsxs(LabelContent, { "data-testid": "label-content", children: [
|
|
28389
|
+
/* @__PURE__ */ jsx$1(LabelText, { "data-testid": "label-text", children: labelText }),
|
|
28390
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { "data-testid": "requirement-text", ml: "none", children: requirementText }),
|
|
28391
|
+
hint && /* @__PURE__ */ jsx$1(Tooltip, { tooltip: hint, children: /* @__PURE__ */ jsx$1(InlineIcon, { color: "darkGrey", size: "x2", icon: "info" }) })
|
|
29278
28392
|
] }) }),
|
|
29279
|
-
helpText && /* @__PURE__ */
|
|
28393
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { children: helpText }),
|
|
29280
28394
|
getCheckboxButtons(otherProps),
|
|
29281
|
-
/* @__PURE__ */
|
|
28395
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
29282
28396
|
] });
|
|
29283
28397
|
}
|
|
29284
28398
|
const getCheckboxButtons = (props) => {
|
|
29285
28399
|
const checkboxButtons = React__default.Children.map(props.children, (checkbox) => {
|
|
29286
28400
|
const { value, disabled, required, onChange: onChange2, ...checkboxProps } = checkbox.props;
|
|
29287
|
-
return /* @__PURE__ */
|
|
28401
|
+
return /* @__PURE__ */ jsx$1(
|
|
29288
28402
|
Checkbox,
|
|
29289
28403
|
{
|
|
29290
28404
|
...checkboxProps,
|
|
@@ -40910,7 +40024,7 @@ const DatePickerInput = forwardRef(
|
|
|
40910
40024
|
break;
|
|
40911
40025
|
}
|
|
40912
40026
|
};
|
|
40913
|
-
return /* @__PURE__ */
|
|
40027
|
+
return /* @__PURE__ */ jsx$1(
|
|
40914
40028
|
InputField,
|
|
40915
40029
|
{
|
|
40916
40030
|
onBlur: onBlur3,
|
|
@@ -40991,7 +40105,7 @@ const BasePicker = forwardRef(
|
|
|
40991
40105
|
...inputProps,
|
|
40992
40106
|
placeholder: inputProps && inputProps.placeholder || (dateFormat === defaultFormat ? defaultPlaceholder : dateFormat)
|
|
40993
40107
|
};
|
|
40994
|
-
const customInput = /* @__PURE__ */
|
|
40108
|
+
const customInput = /* @__PURE__ */ jsx$1(
|
|
40995
40109
|
DatePickerInput,
|
|
40996
40110
|
{
|
|
40997
40111
|
locale: currentLocale,
|
|
@@ -41011,9 +40125,9 @@ const BasePicker = forwardRef(
|
|
|
41011
40125
|
onRefChange(r2);
|
|
41012
40126
|
};
|
|
41013
40127
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
41014
|
-
return /* @__PURE__ */
|
|
41015
|
-
/* @__PURE__ */
|
|
41016
|
-
/* @__PURE__ */
|
|
40128
|
+
return /* @__PURE__ */ jsxs(Field, { className: `${className} nds-date-picker`, ...spaceProps, children: [
|
|
40129
|
+
/* @__PURE__ */ jsx$1(DatePickerStyles, {}),
|
|
40130
|
+
/* @__PURE__ */ jsx$1(
|
|
41017
40131
|
er,
|
|
41018
40132
|
{
|
|
41019
40133
|
highlightDates: highlightDates2,
|
|
@@ -41039,7 +40153,7 @@ const BasePicker = forwardRef(
|
|
|
41039
40153
|
disabledKeyboardNavigation
|
|
41040
40154
|
}
|
|
41041
40155
|
),
|
|
41042
|
-
/* @__PURE__ */
|
|
40156
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41043
40157
|
] });
|
|
41044
40158
|
}
|
|
41045
40159
|
);
|
|
@@ -41054,8 +40168,8 @@ function DatePickerHeader({
|
|
|
41054
40168
|
nextMonthButtonDisabled,
|
|
41055
40169
|
locale: locale2
|
|
41056
40170
|
}) {
|
|
41057
|
-
return /* @__PURE__ */
|
|
41058
|
-
/* @__PURE__ */
|
|
40171
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", py: "half", px: "x1", children: [
|
|
40172
|
+
/* @__PURE__ */ jsx$1(
|
|
41059
40173
|
ControlIcon,
|
|
41060
40174
|
{
|
|
41061
40175
|
icon: "leftArrow",
|
|
@@ -41064,7 +40178,7 @@ function DatePickerHeader({
|
|
|
41064
40178
|
disabled: prevMonthButtonDisabled
|
|
41065
40179
|
}
|
|
41066
40180
|
),
|
|
41067
|
-
/* @__PURE__ */
|
|
40181
|
+
/* @__PURE__ */ jsx$1(
|
|
41068
40182
|
Text,
|
|
41069
40183
|
{
|
|
41070
40184
|
fontWeight: "bold",
|
|
@@ -41076,7 +40190,7 @@ function DatePickerHeader({
|
|
|
41076
40190
|
children: localizedFormat(date, "MMMM yyyy", locale2)
|
|
41077
40191
|
}
|
|
41078
40192
|
),
|
|
41079
|
-
/* @__PURE__ */
|
|
40193
|
+
/* @__PURE__ */ jsx$1(
|
|
41080
40194
|
ControlIcon,
|
|
41081
40195
|
{
|
|
41082
40196
|
icon: "rightArrow",
|
|
@@ -41120,7 +40234,7 @@ const DatePicker = forwardRef(
|
|
|
41120
40234
|
ref.setOpen(!isOpen);
|
|
41121
40235
|
}
|
|
41122
40236
|
};
|
|
41123
|
-
return /* @__PURE__ */
|
|
40237
|
+
return /* @__PURE__ */ jsx$1(
|
|
41124
40238
|
BasePicker,
|
|
41125
40239
|
{
|
|
41126
40240
|
...props,
|
|
@@ -41135,7 +40249,7 @@ const DatePicker = forwardRef(
|
|
|
41135
40249
|
onUpKeyPress: handleUpKey,
|
|
41136
40250
|
onDownKeyPress: handleDownKey,
|
|
41137
40251
|
onEnterKeyPress: handleEnterKey,
|
|
41138
|
-
renderHeader: (headerProps) => /* @__PURE__ */
|
|
40252
|
+
renderHeader: (headerProps) => /* @__PURE__ */ jsx$1(DatePickerHeader, { locale: props.locale, ...headerProps })
|
|
41139
40253
|
}
|
|
41140
40254
|
);
|
|
41141
40255
|
}
|
|
@@ -41149,8 +40263,8 @@ function MonthDatePickerHeader({
|
|
|
41149
40263
|
locale: locale2
|
|
41150
40264
|
}) {
|
|
41151
40265
|
const { t: t3 } = useTranslation();
|
|
41152
|
-
return /* @__PURE__ */
|
|
41153
|
-
/* @__PURE__ */
|
|
40266
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", pb: "x1_5", children: [
|
|
40267
|
+
/* @__PURE__ */ jsx$1(
|
|
41154
40268
|
ControlIcon,
|
|
41155
40269
|
{
|
|
41156
40270
|
icon: "leftArrow",
|
|
@@ -41159,8 +40273,8 @@ function MonthDatePickerHeader({
|
|
|
41159
40273
|
disabled: prevMonthButtonDisabled
|
|
41160
40274
|
}
|
|
41161
40275
|
),
|
|
41162
|
-
/* @__PURE__ */
|
|
41163
|
-
/* @__PURE__ */
|
|
40276
|
+
/* @__PURE__ */ jsx$1(Text, { fontWeight: "bold", color: "blackBlue", px: "x8", fontSize: "large", style: { textTransform: "capitalize" }, children: localizedFormat(date, "yyyy", locale2) }),
|
|
40277
|
+
/* @__PURE__ */ jsx$1(
|
|
41164
40278
|
ControlIcon,
|
|
41165
40279
|
{
|
|
41166
40280
|
icon: "rightArrow",
|
|
@@ -41194,7 +40308,7 @@ const MonthPicker = forwardRef(
|
|
|
41194
40308
|
ref.setOpen(!isOpen);
|
|
41195
40309
|
}
|
|
41196
40310
|
};
|
|
41197
|
-
return /* @__PURE__ */
|
|
40311
|
+
return /* @__PURE__ */ jsx$1(
|
|
41198
40312
|
BasePicker,
|
|
41199
40313
|
{
|
|
41200
40314
|
...props,
|
|
@@ -41205,7 +40319,7 @@ const MonthPicker = forwardRef(
|
|
|
41205
40319
|
defaultFormat: DEFAULT_MONTH_FORMAT,
|
|
41206
40320
|
defaultPlaceholder: DEFAULT_PLACEHOLDER$1,
|
|
41207
40321
|
showMonthYearPicker: true,
|
|
41208
|
-
renderHeader: (headerProps) => /* @__PURE__ */
|
|
40322
|
+
renderHeader: (headerProps) => /* @__PURE__ */ jsx$1(MonthDatePickerHeader, { locale: props.locale, ...headerProps }),
|
|
41209
40323
|
onUpKeyPress: handleUpKey,
|
|
41210
40324
|
onDownKeyPress: handleDownKey,
|
|
41211
40325
|
onEnterKeyPress: handleEnterKey
|
|
@@ -41413,7 +40527,7 @@ const WeekPicker = forwardRef(
|
|
|
41413
40527
|
}
|
|
41414
40528
|
};
|
|
41415
40529
|
const renderCustomHeader = (props2) => {
|
|
41416
|
-
return /* @__PURE__ */
|
|
40530
|
+
return /* @__PURE__ */ jsx$1(DatePickerHeader, { locale: currentLocale, ...props2 });
|
|
41417
40531
|
};
|
|
41418
40532
|
const weekPickerRefHandler = (r2) => {
|
|
41419
40533
|
if (datePickerRef) {
|
|
@@ -41427,7 +40541,7 @@ const WeekPicker = forwardRef(
|
|
|
41427
40541
|
...inputProps,
|
|
41428
40542
|
placeholder: inputProps && inputProps.placeholder || (finalDateFormat === defaultDateFormat ? defaultPlaceholder : finalDateFormat)
|
|
41429
40543
|
};
|
|
41430
|
-
const customInput = /* @__PURE__ */
|
|
40544
|
+
const customInput = /* @__PURE__ */ jsx$1(
|
|
41431
40545
|
DatePickerInput,
|
|
41432
40546
|
{
|
|
41433
40547
|
locale: currentLocale,
|
|
@@ -41440,10 +40554,10 @@ const WeekPicker = forwardRef(
|
|
|
41440
40554
|
onEnterKeyPress: handleEnterKey
|
|
41441
40555
|
}
|
|
41442
40556
|
);
|
|
41443
|
-
return /* @__PURE__ */
|
|
41444
|
-
/* @__PURE__ */
|
|
41445
|
-
/* @__PURE__ */
|
|
41446
|
-
/* @__PURE__ */
|
|
40557
|
+
return /* @__PURE__ */ jsxs(Field, { className: `${className} nds-date-picker`, ...spaceProps, children: [
|
|
40558
|
+
/* @__PURE__ */ jsx$1(DatePickerStyles, {}),
|
|
40559
|
+
/* @__PURE__ */ jsx$1(WeekPickerStyles, { variant: componentVariant }),
|
|
40560
|
+
/* @__PURE__ */ jsx$1(
|
|
41447
40561
|
er,
|
|
41448
40562
|
{
|
|
41449
40563
|
showWeekNumbers: true,
|
|
@@ -41467,7 +40581,7 @@ const WeekPicker = forwardRef(
|
|
|
41467
40581
|
disabledKeyboardNavigation: true
|
|
41468
40582
|
}
|
|
41469
40583
|
),
|
|
41470
|
-
/* @__PURE__ */
|
|
40584
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41471
40585
|
] });
|
|
41472
40586
|
}
|
|
41473
40587
|
);
|
|
@@ -41490,16 +40604,16 @@ const RangeContainer = ({
|
|
|
41490
40604
|
}) => {
|
|
41491
40605
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
41492
40606
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
41493
|
-
return /* @__PURE__ */
|
|
41494
|
-
/* @__PURE__ */
|
|
41495
|
-
/* @__PURE__ */
|
|
41496
|
-
/* @__PURE__ */
|
|
41497
|
-
/* @__PURE__ */
|
|
41498
|
-
/* @__PURE__ */
|
|
40607
|
+
return /* @__PURE__ */ jsxs(Flex, { ...spaceProps, flexDirection: "column", children: [
|
|
40608
|
+
/* @__PURE__ */ jsx$1(FieldLabel, { ...labelProps, ...restProps }),
|
|
40609
|
+
/* @__PURE__ */ jsxs(Flex, { flexWrap: "wrap", mt: "x1", mb: errorMessages.length ? "x1" : "x3", children: [
|
|
40610
|
+
/* @__PURE__ */ jsx$1(Flex, { children: startComponent }),
|
|
40611
|
+
/* @__PURE__ */ jsx$1(Flex, { px: "half", alignItems: "flex-end", alignSelf: "flex-end", children: /* @__PURE__ */ jsx$1(Text, { lineHeight: variant3 === "touch" ? "56px" : "38px", children: "-" }) }),
|
|
40612
|
+
/* @__PURE__ */ jsx$1(Flex, { children: endComponent })
|
|
41499
40613
|
] }),
|
|
41500
40614
|
errorMessages.map((errorMessage, i3) => (
|
|
41501
40615
|
// eslint-disable-next-line react/no-array-index-key
|
|
41502
|
-
/* @__PURE__ */
|
|
40616
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { errorMessage }, i3)
|
|
41503
40617
|
))
|
|
41504
40618
|
] });
|
|
41505
40619
|
};
|
|
@@ -41871,8 +40985,8 @@ const TimePicker = forwardRef(
|
|
|
41871
40985
|
}
|
|
41872
40986
|
};
|
|
41873
40987
|
const displayValue = value ? value : input || "";
|
|
41874
|
-
return /* @__PURE__ */
|
|
41875
|
-
/* @__PURE__ */
|
|
40988
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40989
|
+
/* @__PURE__ */ jsxs(
|
|
41876
40990
|
Box,
|
|
41877
40991
|
{
|
|
41878
40992
|
className: `nds-time-picker ${className || ""}`,
|
|
@@ -41882,7 +40996,7 @@ const TimePicker = forwardRef(
|
|
|
41882
40996
|
"data-testid": "select-container",
|
|
41883
40997
|
...props,
|
|
41884
40998
|
children: [
|
|
41885
|
-
/* @__PURE__ */
|
|
40999
|
+
/* @__PURE__ */ jsx$1(
|
|
41886
41000
|
TimePickerInput,
|
|
41887
41001
|
{
|
|
41888
41002
|
labelText,
|
|
@@ -41906,7 +41020,7 @@ const TimePicker = forwardRef(
|
|
|
41906
41020
|
variant: componentVariant
|
|
41907
41021
|
}
|
|
41908
41022
|
),
|
|
41909
|
-
/* @__PURE__ */
|
|
41023
|
+
/* @__PURE__ */ jsx$1(
|
|
41910
41024
|
TimePickerDropdown,
|
|
41911
41025
|
{
|
|
41912
41026
|
isOpen: dropdownIsOpen,
|
|
@@ -41919,7 +41033,7 @@ const TimePicker = forwardRef(
|
|
|
41919
41033
|
const isSelected = standardizeTime(option.label) === standardizeTime(input);
|
|
41920
41034
|
const closestTestId = isClosest ? "closest-select-option" : "";
|
|
41921
41035
|
const selectedTestId = isSelected ? "selected-select-option" : "";
|
|
41922
|
-
return /* @__PURE__ */
|
|
41036
|
+
return /* @__PURE__ */ jsx$1(
|
|
41923
41037
|
TimePickerOption,
|
|
41924
41038
|
{
|
|
41925
41039
|
ref: isClosest ? onCurrentOptionRefChange : void 0,
|
|
@@ -41940,11 +41054,11 @@ const TimePicker = forwardRef(
|
|
|
41940
41054
|
})
|
|
41941
41055
|
}
|
|
41942
41056
|
),
|
|
41943
|
-
/* @__PURE__ */
|
|
41057
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41944
41058
|
]
|
|
41945
41059
|
}
|
|
41946
41060
|
),
|
|
41947
|
-
/* @__PURE__ */
|
|
41061
|
+
/* @__PURE__ */ jsx$1(DetectOutsideClick, { onClick: handleBlur, clickRef: [ref] })
|
|
41948
41062
|
] });
|
|
41949
41063
|
}
|
|
41950
41064
|
);
|
|
@@ -42097,8 +41211,8 @@ const DateRange = forwardRef(
|
|
|
42097
41211
|
error: rangeError,
|
|
42098
41212
|
...startDateInputProps
|
|
42099
41213
|
};
|
|
42100
|
-
const startDateInput = /* @__PURE__ */
|
|
42101
|
-
/* @__PURE__ */
|
|
41214
|
+
const startDateInput = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41215
|
+
/* @__PURE__ */ jsx$1(
|
|
42102
41216
|
DatePicker,
|
|
42103
41217
|
{
|
|
42104
41218
|
dateFormat,
|
|
@@ -42114,7 +41228,7 @@ const DateRange = forwardRef(
|
|
|
42114
41228
|
ref: dateRef1
|
|
42115
41229
|
}
|
|
42116
41230
|
),
|
|
42117
|
-
showTimes && /* @__PURE__ */
|
|
41231
|
+
showTimes && /* @__PURE__ */ jsx$1(
|
|
42118
41232
|
StartTime,
|
|
42119
41233
|
{
|
|
42120
41234
|
variant: componentVariant,
|
|
@@ -42134,8 +41248,8 @@ const DateRange = forwardRef(
|
|
|
42134
41248
|
}
|
|
42135
41249
|
)
|
|
42136
41250
|
] });
|
|
42137
|
-
const endDateInput = /* @__PURE__ */
|
|
42138
|
-
showTimes && /* @__PURE__ */
|
|
41251
|
+
const endDateInput = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41252
|
+
showTimes && /* @__PURE__ */ jsx$1(
|
|
42139
41253
|
EndTime,
|
|
42140
41254
|
{
|
|
42141
41255
|
variant: componentVariant,
|
|
@@ -42154,7 +41268,7 @@ const DateRange = forwardRef(
|
|
|
42154
41268
|
...endTimeProps
|
|
42155
41269
|
}
|
|
42156
41270
|
),
|
|
42157
|
-
/* @__PURE__ */
|
|
41271
|
+
/* @__PURE__ */ jsx$1(
|
|
42158
41272
|
DatePicker,
|
|
42159
41273
|
{
|
|
42160
41274
|
dateFormat,
|
|
@@ -42175,9 +41289,9 @@ const DateRange = forwardRef(
|
|
|
42175
41289
|
}
|
|
42176
41290
|
)
|
|
42177
41291
|
] });
|
|
42178
|
-
return /* @__PURE__ */
|
|
42179
|
-
/* @__PURE__ */
|
|
42180
|
-
/* @__PURE__ */
|
|
41292
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41293
|
+
/* @__PURE__ */ jsx$1(DateRangeStyles, {}),
|
|
41294
|
+
/* @__PURE__ */ jsx$1(
|
|
42181
41295
|
RangeContainer,
|
|
42182
41296
|
{
|
|
42183
41297
|
variant: componentVariant,
|
|
@@ -42198,7 +41312,7 @@ const DescriptionListContext = createContext$1(void 0);
|
|
|
42198
41312
|
const DescriptionListProvider = ({
|
|
42199
41313
|
children,
|
|
42200
41314
|
...contextProps
|
|
42201
|
-
}) => /* @__PURE__ */
|
|
41315
|
+
}) => /* @__PURE__ */ jsx$1(DescriptionListContext.Provider, { value: contextProps, children });
|
|
42202
41316
|
const useDescriptionListContext = () => {
|
|
42203
41317
|
const context = useContext(DescriptionListContext);
|
|
42204
41318
|
if (!context) {
|
|
@@ -42409,7 +41523,7 @@ function DescriptionList({
|
|
|
42409
41523
|
...props
|
|
42410
41524
|
}) {
|
|
42411
41525
|
const { columns, groupMinWidth } = validateAndExtractGridProps(props);
|
|
42412
|
-
return /* @__PURE__ */
|
|
41526
|
+
return /* @__PURE__ */ jsx$1(
|
|
42413
41527
|
DescriptionListProvider,
|
|
42414
41528
|
{
|
|
42415
41529
|
descriptionTermMaxWidth,
|
|
@@ -42421,7 +41535,7 @@ function DescriptionList({
|
|
|
42421
41535
|
lineHeight: lineHeight2,
|
|
42422
41536
|
columns,
|
|
42423
41537
|
groupMinWidth,
|
|
42424
|
-
children: /* @__PURE__ */
|
|
41538
|
+
children: /* @__PURE__ */ jsx$1(DescriptionListContainer, { children: /* @__PURE__ */ jsx$1(DescriptionList$1, { children }) })
|
|
42425
41539
|
}
|
|
42426
41540
|
);
|
|
42427
41541
|
}
|
|
@@ -42466,12 +41580,12 @@ function useMediaQuery(q2) {
|
|
|
42466
41580
|
return matches;
|
|
42467
41581
|
}
|
|
42468
41582
|
const ApplicationFrame = ({ navBar, children, environment, ...props }) => {
|
|
42469
|
-
return /* @__PURE__ */
|
|
42470
|
-
/* @__PURE__ */
|
|
42471
|
-
environment && /* @__PURE__ */
|
|
41583
|
+
return /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", minHeight: "100vh", ...props, children: [
|
|
41584
|
+
/* @__PURE__ */ jsxs(Box, { position: "sticky", top: "0", zIndex: "navBar", children: [
|
|
41585
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
42472
41586
|
navBar
|
|
42473
41587
|
] }),
|
|
42474
|
-
/* @__PURE__ */
|
|
41588
|
+
/* @__PURE__ */ jsx$1(Flex, { flexDirection: "column", position: "relative", flexGrow: 1, children })
|
|
42475
41589
|
] });
|
|
42476
41590
|
};
|
|
42477
41591
|
const RightAngleTriangle = styled(Box)`
|
|
@@ -42483,7 +41597,7 @@ const RightAngleTriangle = styled(Box)`
|
|
|
42483
41597
|
`;
|
|
42484
41598
|
function BackgroundTriangles(props) {
|
|
42485
41599
|
const theme = useTheme();
|
|
42486
|
-
return /* @__PURE__ */
|
|
41600
|
+
return /* @__PURE__ */ jsxs(
|
|
42487
41601
|
Box,
|
|
42488
41602
|
{
|
|
42489
41603
|
"aria-hidden": "true",
|
|
@@ -42496,7 +41610,7 @@ function BackgroundTriangles(props) {
|
|
|
42496
41610
|
width: "90%",
|
|
42497
41611
|
...props,
|
|
42498
41612
|
children: [
|
|
42499
|
-
/* @__PURE__ */
|
|
41613
|
+
/* @__PURE__ */ jsx$1(
|
|
42500
41614
|
RightAngleTriangle,
|
|
42501
41615
|
{
|
|
42502
41616
|
"aria-hidden": "true",
|
|
@@ -42505,7 +41619,7 @@ function BackgroundTriangles(props) {
|
|
|
42505
41619
|
background: "linear-gradient(178.25deg, rgba(192, 200, 209, 0.5) 62.98%, rgba(225, 235, 250, 0.25) 98.52%)"
|
|
42506
41620
|
}
|
|
42507
41621
|
),
|
|
42508
|
-
/* @__PURE__ */
|
|
41622
|
+
/* @__PURE__ */ jsx$1(
|
|
42509
41623
|
RightAngleTriangle,
|
|
42510
41624
|
{
|
|
42511
41625
|
"aria-hidden": "true",
|
|
@@ -42536,8 +41650,8 @@ const Header$3 = ({
|
|
|
42536
41650
|
const m4 = useMediaQuery(`(max-width: ${mediumBreakpoint2}px)`);
|
|
42537
41651
|
const sm = useMediaQuery(`(max-width: ${smallBreakpoint2}px)`);
|
|
42538
41652
|
const bg = background2 ? background2 : undecorated ? "transparent" : "whiteGrey";
|
|
42539
|
-
return /* @__PURE__ */
|
|
42540
|
-
/* @__PURE__ */
|
|
41653
|
+
return /* @__PURE__ */ jsxs(Flex, { py: "x1", px: "x3", gap: "x2", position: "relative", bg, ...rest, children: [
|
|
41654
|
+
/* @__PURE__ */ jsxs(
|
|
42541
41655
|
Flex,
|
|
42542
41656
|
{
|
|
42543
41657
|
flexGrow: 3,
|
|
@@ -42545,24 +41659,24 @@ const Header$3 = ({
|
|
|
42545
41659
|
flexDirection: m4 || sm ? "column" : "row",
|
|
42546
41660
|
zIndex: "content",
|
|
42547
41661
|
children: [
|
|
42548
|
-
/* @__PURE__ */
|
|
41662
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", children: [
|
|
42549
41663
|
renderBreadcrumbs && renderBreadcrumbs(),
|
|
42550
|
-
/* @__PURE__ */
|
|
41664
|
+
/* @__PURE__ */ jsxs(
|
|
42551
41665
|
Flex,
|
|
42552
41666
|
{
|
|
42553
41667
|
gap: !sm ? "x2" : void 0,
|
|
42554
41668
|
flexDirection: !sm ? "row" : "column",
|
|
42555
41669
|
alignItems: !sm ? "center" : void 0,
|
|
42556
41670
|
children: [
|
|
42557
|
-
/* @__PURE__ */
|
|
41671
|
+
/* @__PURE__ */ jsxs(
|
|
42558
41672
|
Flex,
|
|
42559
41673
|
{
|
|
42560
41674
|
alignItems: !sm ? "flex-end" : void 0,
|
|
42561
41675
|
gap: !sm ? "x2" : void 0,
|
|
42562
41676
|
flexDirection: !sm ? "row" : "column",
|
|
42563
41677
|
children: [
|
|
42564
|
-
title && typeof title === "string" ? /* @__PURE__ */
|
|
42565
|
-
subtitle && /* @__PURE__ */
|
|
41678
|
+
title && typeof title === "string" ? /* @__PURE__ */ jsx$1(Heading1, { mb: "0", children: title }) : title,
|
|
41679
|
+
subtitle && /* @__PURE__ */ jsx$1(Text, { pl: !sm ? "x2" : void 0, borderLeft: !sm ? "1px solid" : "none", my: "half", borderColor: "grey", children: subtitle })
|
|
42566
41680
|
]
|
|
42567
41681
|
}
|
|
42568
41682
|
),
|
|
@@ -42575,17 +41689,17 @@ const Header$3 = ({
|
|
|
42575
41689
|
]
|
|
42576
41690
|
}
|
|
42577
41691
|
),
|
|
42578
|
-
renderActions && /* @__PURE__ */
|
|
42579
|
-
!undecorated && /* @__PURE__ */
|
|
41692
|
+
renderActions && /* @__PURE__ */ jsx$1(Flex, { display: "flex", flexGrow: 0, alignItems: "flex-start", zIndex: "content", children: renderActions() }),
|
|
41693
|
+
!undecorated && /* @__PURE__ */ jsx$1(BackgroundTriangles, { zIndex: 1 })
|
|
42580
41694
|
] });
|
|
42581
41695
|
};
|
|
42582
|
-
const Page = ({ breadcrumbs, title, children, headerContent, fullHeight, renderHeader, ...rest }) => /* @__PURE__ */
|
|
42583
|
-
renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /* @__PURE__ */
|
|
42584
|
-
/* @__PURE__ */
|
|
41696
|
+
const Page = ({ breadcrumbs, title, children, headerContent, fullHeight, renderHeader, ...rest }) => /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", flexGrow: fullHeight ? 1 : 0, ...rest, children: [
|
|
41697
|
+
renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /* @__PURE__ */ jsx$1(Header$3, { renderBreadcrumbs: () => breadcrumbs, title, children: headerContent }),
|
|
41698
|
+
/* @__PURE__ */ jsx$1(Box, { p: "x3", children })
|
|
42585
41699
|
] });
|
|
42586
41700
|
const FeatureFlagsContext = createContext$1(void 0);
|
|
42587
41701
|
function FeatureFlagsProvider({ featureFlags, children }) {
|
|
42588
|
-
return /* @__PURE__ */
|
|
41702
|
+
return /* @__PURE__ */ jsx$1(FeatureFlagsContext.Provider, { value: { featureFlags }, children });
|
|
42589
41703
|
}
|
|
42590
41704
|
function useFeatureFlags() {
|
|
42591
41705
|
const context = useContext(FeatureFlagsContext);
|
|
@@ -42613,7 +41727,7 @@ const focusFirstElement = () => {
|
|
|
42613
41727
|
focusable[0].focus();
|
|
42614
41728
|
}
|
|
42615
41729
|
};
|
|
42616
|
-
const SidebarOverlay = ({ transitionDuration, top: top2, transparent, zIndex: zIndex2 = 799, onClick }) => /* @__PURE__ */
|
|
41730
|
+
const SidebarOverlay = ({ transitionDuration, top: top2, transparent, zIndex: zIndex2 = 799, onClick }) => /* @__PURE__ */ jsx$1(
|
|
42617
41731
|
AnimatedBox,
|
|
42618
41732
|
{
|
|
42619
41733
|
position: "fixed",
|
|
@@ -42714,8 +41828,8 @@ function Sidebar({
|
|
|
42714
41828
|
}
|
|
42715
41829
|
}
|
|
42716
41830
|
};
|
|
42717
|
-
return /* @__PURE__ */
|
|
42718
|
-
closeOnOutsideClick && /* @__PURE__ */
|
|
41831
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41832
|
+
closeOnOutsideClick && /* @__PURE__ */ jsx$1(AnimatePresence, { children: isOpen && overlay !== "hide" && /* @__PURE__ */ jsx$1(
|
|
42719
41833
|
SidebarOverlay,
|
|
42720
41834
|
{
|
|
42721
41835
|
top: top2,
|
|
@@ -42725,7 +41839,7 @@ function Sidebar({
|
|
|
42725
41839
|
onClick: closeOnOutsideClick && isOpen && onClose
|
|
42726
41840
|
}
|
|
42727
41841
|
) }),
|
|
42728
|
-
/* @__PURE__ */
|
|
41842
|
+
/* @__PURE__ */ jsxs(
|
|
42729
41843
|
AnimatedBox,
|
|
42730
41844
|
{
|
|
42731
41845
|
role: "dialog",
|
|
@@ -42748,7 +41862,7 @@ function Sidebar({
|
|
|
42748
41862
|
ref: sideBarRef,
|
|
42749
41863
|
...props,
|
|
42750
41864
|
children: [
|
|
42751
|
-
/* @__PURE__ */
|
|
41865
|
+
/* @__PURE__ */ jsx$1(
|
|
42752
41866
|
Flex,
|
|
42753
41867
|
{
|
|
42754
41868
|
flexDirection: "column",
|
|
@@ -42756,10 +41870,10 @@ function Sidebar({
|
|
|
42756
41870
|
borderBottomWidth: "1px",
|
|
42757
41871
|
borderBottomStyle: "solid",
|
|
42758
41872
|
borderBottomColor: "lightGrey",
|
|
42759
|
-
children: /* @__PURE__ */
|
|
42760
|
-
/* @__PURE__ */
|
|
42761
|
-
title && /* @__PURE__ */
|
|
42762
|
-
!hideCloseButton && /* @__PURE__ */
|
|
41873
|
+
children: /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", gap: "x1", children: [
|
|
41874
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
41875
|
+
title && /* @__PURE__ */ jsx$1(Flex, { alignItems: "center", height: "100%", children: /* @__PURE__ */ jsx$1(Heading2, { mb: 0, children: title }) }),
|
|
41876
|
+
!hideCloseButton && /* @__PURE__ */ jsx$1(Box, { marginLeft: "x2", children: /* @__PURE__ */ jsx$1(
|
|
42763
41877
|
IconicButton,
|
|
42764
41878
|
{
|
|
42765
41879
|
type: "button",
|
|
@@ -42771,11 +41885,11 @@ function Sidebar({
|
|
|
42771
41885
|
}
|
|
42772
41886
|
) })
|
|
42773
41887
|
] }),
|
|
42774
|
-
renderHelpText ? renderHelpText() : helpText && /* @__PURE__ */
|
|
41888
|
+
renderHelpText ? renderHelpText() : helpText && /* @__PURE__ */ jsx$1(Text, { color: "midGrey", children: helpText })
|
|
42775
41889
|
] })
|
|
42776
41890
|
}
|
|
42777
41891
|
),
|
|
42778
|
-
/* @__PURE__ */
|
|
41892
|
+
/* @__PURE__ */ jsx$1(
|
|
42779
41893
|
Flex,
|
|
42780
41894
|
{
|
|
42781
41895
|
p: p2,
|
|
@@ -42784,10 +41898,10 @@ function Sidebar({
|
|
|
42784
41898
|
flexGrow: 1,
|
|
42785
41899
|
flexDirection: "column",
|
|
42786
41900
|
style: { overflowBehaviour: "contain" },
|
|
42787
|
-
children: /* @__PURE__ */
|
|
41901
|
+
children: /* @__PURE__ */ jsx$1(AnimatedBox, { variants: childVariants, animate: isOpen ? "open" : "closed", flexGrow: 1, ref: contentRef, children })
|
|
42788
41902
|
}
|
|
42789
41903
|
),
|
|
42790
|
-
footer && /* @__PURE__ */
|
|
41904
|
+
footer && /* @__PURE__ */ jsx$1(
|
|
42791
41905
|
Box,
|
|
42792
41906
|
{
|
|
42793
41907
|
position: "sticky",
|
|
@@ -42813,7 +41927,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42813
41927
|
const color2 = inactive ? colors2.lightGrey : colors2.yellow;
|
|
42814
41928
|
return (
|
|
42815
41929
|
// Modified svg By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL
|
|
42816
|
-
/* @__PURE__ */
|
|
41930
|
+
/* @__PURE__ */ jsxs(
|
|
42817
41931
|
"svg",
|
|
42818
41932
|
{
|
|
42819
41933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42823,8 +41937,8 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42823
41937
|
preserveAspectRatio: "xMidYMid",
|
|
42824
41938
|
role: "img",
|
|
42825
41939
|
children: [
|
|
42826
|
-
/* @__PURE__ */
|
|
42827
|
-
/* @__PURE__ */
|
|
41940
|
+
/* @__PURE__ */ jsx$1("title", { children: "Loading animation" }),
|
|
41941
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(4 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.275039 0.275039)", children: /* @__PURE__ */ jsx$1(
|
|
42828
41942
|
"animateTransform",
|
|
42829
41943
|
{
|
|
42830
41944
|
attributeName: "transform",
|
|
@@ -42838,7 +41952,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42838
41952
|
repeatCount: "indefinite"
|
|
42839
41953
|
}
|
|
42840
41954
|
) }) }),
|
|
42841
|
-
/* @__PURE__ */
|
|
41955
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(22.4 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.0862935 0.0862935)", children: /* @__PURE__ */ jsx$1(
|
|
42842
41956
|
"animateTransform",
|
|
42843
41957
|
{
|
|
42844
41958
|
attributeName: "transform",
|
|
@@ -42852,7 +41966,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42852
41966
|
repeatCount: "indefinite"
|
|
42853
41967
|
}
|
|
42854
41968
|
) }) }),
|
|
42855
|
-
/* @__PURE__ */
|
|
41969
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(40.0 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.0000823166 0.0000823166)", children: /* @__PURE__ */ jsx$1(
|
|
42856
41970
|
"animateTransform",
|
|
42857
41971
|
{
|
|
42858
41972
|
attributeName: "transform",
|
|
@@ -42866,7 +41980,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42866
41980
|
repeatCount: "indefinite"
|
|
42867
41981
|
}
|
|
42868
41982
|
) }) }),
|
|
42869
|
-
/* @__PURE__ */
|
|
41983
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(59.2 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.0779504 0.0779504)", children: /* @__PURE__ */ jsx$1(
|
|
42870
41984
|
"animateTransform",
|
|
42871
41985
|
{
|
|
42872
41986
|
attributeName: "transform",
|
|
@@ -42880,7 +41994,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42880
41994
|
repeatCount: "indefinite"
|
|
42881
41995
|
}
|
|
42882
41996
|
) }) }),
|
|
42883
|
-
/* @__PURE__ */
|
|
41997
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(77.6 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.262719 0.262719)", children: /* @__PURE__ */ jsx$1(
|
|
42884
41998
|
"animateTransform",
|
|
42885
41999
|
{
|
|
42886
42000
|
attributeName: "transform",
|
|
@@ -42894,7 +42008,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42894
42008
|
repeatCount: "indefinite"
|
|
42895
42009
|
}
|
|
42896
42010
|
) }) }),
|
|
42897
|
-
/* @__PURE__ */
|
|
42011
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(96 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.49324 0.49324)", children: /* @__PURE__ */ jsx$1(
|
|
42898
42012
|
"animateTransform",
|
|
42899
42013
|
{
|
|
42900
42014
|
attributeName: "transform",
|
|
@@ -44452,7 +43566,7 @@ const Modal = ({
|
|
|
44452
43566
|
}) => {
|
|
44453
43567
|
const modalHasHeader = Boolean(onRequestClose || title);
|
|
44454
43568
|
const themeContext = useContext(ThemeContext$1);
|
|
44455
|
-
return /* @__PURE__ */
|
|
43569
|
+
return /* @__PURE__ */ jsx$1(
|
|
44456
43570
|
StyledReactModal,
|
|
44457
43571
|
{
|
|
44458
43572
|
maxWidth: maxWidth2,
|
|
@@ -44478,7 +43592,7 @@ const Modal = ({
|
|
|
44478
43592
|
appElement,
|
|
44479
43593
|
ariaHideApp,
|
|
44480
43594
|
parentSelector,
|
|
44481
|
-
children: /* @__PURE__ */
|
|
43595
|
+
children: /* @__PURE__ */ jsx$1(
|
|
44482
43596
|
ModalWrapper,
|
|
44483
43597
|
{
|
|
44484
43598
|
closeAriaLabel,
|
|
@@ -44502,13 +43616,13 @@ function ModalWrapper({
|
|
|
44502
43616
|
}) {
|
|
44503
43617
|
const theme = useTheme();
|
|
44504
43618
|
useScrollLock();
|
|
44505
|
-
return /* @__PURE__ */
|
|
44506
|
-
modalHasHeader && /* @__PURE__ */
|
|
44507
|
-
title ? /* @__PURE__ */
|
|
44508
|
-
onRequestClose && /* @__PURE__ */
|
|
43619
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43620
|
+
modalHasHeader && /* @__PURE__ */ jsxs(ModalHeader, { hasCloseButton: Boolean(onRequestClose), children: [
|
|
43621
|
+
title ? /* @__PURE__ */ jsx$1(Heading2, { id: "modal-title", mb: "none", children: title }) : /* @__PURE__ */ jsx$1("div", { style: { height: theme.space.x4 } }),
|
|
43622
|
+
onRequestClose && /* @__PURE__ */ jsx$1(ModalCloseButton, { onClick: onRequestClose, "aria-label": closeAriaLabel })
|
|
44509
43623
|
] }),
|
|
44510
|
-
/* @__PURE__ */
|
|
44511
|
-
footerContent && /* @__PURE__ */
|
|
43624
|
+
/* @__PURE__ */ jsx$1(ModalContent, { hasFooter: !!footerContent, children }),
|
|
43625
|
+
footerContent && /* @__PURE__ */ jsx$1(ModalFooter, { children: footerContent })
|
|
44512
43626
|
] });
|
|
44513
43627
|
}
|
|
44514
43628
|
Modal.setAppElement = ReactModal.setAppElement;
|
|
@@ -44854,7 +43968,7 @@ const $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ forwardRef((pro
|
|
|
44854
43968
|
const hasPointerMoveOpenedRef = useRef(false);
|
|
44855
43969
|
const wasClickCloseRef = useRef(false);
|
|
44856
43970
|
const open2 = itemContext.value === context.value;
|
|
44857
|
-
return /* @__PURE__ */ createElement(Fragment, null, /* @__PURE__ */ createElement($322c88a641701f3b$var$Collection.ItemSlot, {
|
|
43971
|
+
return /* @__PURE__ */ createElement(Fragment$1, null, /* @__PURE__ */ createElement($322c88a641701f3b$var$Collection.ItemSlot, {
|
|
44858
43972
|
scope: __scopeNavigationMenu,
|
|
44859
43973
|
value: itemContext.value
|
|
44860
43974
|
}, /* @__PURE__ */ createElement($322c88a641701f3b$var$FocusGroupItem, {
|
|
@@ -44897,7 +44011,7 @@ const $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ forwardRef((pro
|
|
|
44897
44011
|
event.preventDefault();
|
|
44898
44012
|
}
|
|
44899
44013
|
})
|
|
44900
|
-
})))), open2 && /* @__PURE__ */ createElement(Fragment, null, /* @__PURE__ */ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
44014
|
+
})))), open2 && /* @__PURE__ */ createElement(Fragment$1, null, /* @__PURE__ */ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
44901
44015
|
"aria-hidden": true,
|
|
44902
44016
|
tabIndex: 0,
|
|
44903
44017
|
ref: itemContext.focusProxyRef,
|
|
@@ -45462,34 +44576,34 @@ const SubMenuList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)(
|
|
|
45462
44576
|
function MenuSubItem({ item, level }) {
|
|
45463
44577
|
const theme = useTheme();
|
|
45464
44578
|
if (item.type === "separator") {
|
|
45465
|
-
return /* @__PURE__ */
|
|
44579
|
+
return /* @__PURE__ */ jsx$1(Divider$1, { my: "x1", mx: "x1", width: "auto" });
|
|
45466
44580
|
}
|
|
45467
44581
|
if (item.type === "custom") {
|
|
45468
|
-
return /* @__PURE__ */
|
|
44582
|
+
return /* @__PURE__ */ jsx$1($322c88a641701f3b$export$6d08773d2e66f8f2, { children: item.render({ withinSubMenu: true, level, withinMobileNav: false }) }, item.key);
|
|
45469
44583
|
}
|
|
45470
44584
|
const hasIcon = "icon" in item;
|
|
45471
44585
|
const isLink = item.type === "link";
|
|
45472
44586
|
const hasSubMenu = item.type === "button" && !!item.items && item.items.length > 0;
|
|
45473
|
-
const content = /* @__PURE__ */
|
|
45474
|
-
hasIcon && /* @__PURE__ */
|
|
45475
|
-
/* @__PURE__ */
|
|
45476
|
-
/* @__PURE__ */
|
|
44587
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44588
|
+
hasIcon && /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: "x1", children: [
|
|
44589
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: item.icon, size: "x3", "aria-hidden": true }),
|
|
44590
|
+
/* @__PURE__ */ jsx$1("span", { children: item.label ?? item.tooltip })
|
|
45477
44591
|
] }),
|
|
45478
|
-
"label" in item && item.label && !hasIcon && /* @__PURE__ */
|
|
45479
|
-
hasSubMenu && /* @__PURE__ */
|
|
44592
|
+
"label" in item && item.label && !hasIcon && /* @__PURE__ */ jsx$1("span", { children: item.label }),
|
|
44593
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(CaretRight, { "aria-hidden": true, size: "x2" })
|
|
45480
44594
|
] });
|
|
45481
|
-
return /* @__PURE__ */
|
|
45482
|
-
/* @__PURE__ */
|
|
45483
|
-
hasSubMenu && /* @__PURE__ */
|
|
44595
|
+
return /* @__PURE__ */ jsx$1(SubMenuItem, { value: "label" in item ? item.label : item.key, children: isLink ? /* @__PURE__ */ jsx$1(SubMenuItemLink, { asChild: true, children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: content }) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: content }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44596
|
+
/* @__PURE__ */ jsx$1(SubMenuItemButton, { ...item.props, children: content }),
|
|
44597
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(SubMenuContent, { left: `calc(100% - ${theme.space.half})`, top: `calc(-1 * ${theme.space.x1})`, children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(SubMenuList, { children: item.items?.map((subItem) => /* @__PURE__ */ jsx$1(MenuSubItem, { item: subItem, level: level + 1 }, subItem.key)) }) }) })
|
|
45484
44598
|
] }) }, item.key);
|
|
45485
44599
|
}
|
|
45486
44600
|
const NavigationMenuItem = React__default.forwardRef(
|
|
45487
44601
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45488
44602
|
if (item.type === "separator") {
|
|
45489
|
-
return /* @__PURE__ */
|
|
44603
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(VerticalDivider, { mx: "x1" }) });
|
|
45490
44604
|
}
|
|
45491
44605
|
if (item.type === "custom") {
|
|
45492
|
-
return /* @__PURE__ */
|
|
44606
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: item.render({ withinSubMenu: level > 0, level, withinMobileNav: false }) });
|
|
45493
44607
|
}
|
|
45494
44608
|
const hasIcon = "icon" in item;
|
|
45495
44609
|
const isLink = item.type === "link";
|
|
@@ -45497,26 +44611,26 @@ const NavigationMenuItem = React__default.forwardRef(
|
|
|
45497
44611
|
const hasLabel = "label" in item && item.label;
|
|
45498
44612
|
const hasIconOnly = hasIcon && !hasLabel;
|
|
45499
44613
|
const hasTooltip = hasIconOnly && Boolean(item.tooltip);
|
|
45500
|
-
const Content = /* @__PURE__ */
|
|
45501
|
-
hasIcon && /* @__PURE__ */
|
|
45502
|
-
"label" in item && item.label && /* @__PURE__ */
|
|
45503
|
-
hasSubMenu && /* @__PURE__ */
|
|
44614
|
+
const Content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44615
|
+
hasIcon && /* @__PURE__ */ jsx$1(Icon, { icon: item.icon, size: "x3", "aria-hidden": true }),
|
|
44616
|
+
"label" in item && item.label && /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextCompressed", children: item.label }),
|
|
44617
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(CaretDown, { "aria-hidden": true, size: "x2" })
|
|
45504
44618
|
] });
|
|
45505
44619
|
if (isLink) {
|
|
45506
|
-
const Item22 = /* @__PURE__ */
|
|
44620
|
+
const Item22 = /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(
|
|
45507
44621
|
NavigationMenuLink$1,
|
|
45508
44622
|
{
|
|
45509
44623
|
asChild: true,
|
|
45510
44624
|
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : item.label,
|
|
45511
44625
|
borderRadius: hasIconOnly ? "rounded" : void 0,
|
|
45512
44626
|
p: hasIcon ? "x1" : void 0,
|
|
45513
|
-
children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: Content }) : /* @__PURE__ */
|
|
44627
|
+
children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: Content }) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: Content })
|
|
45514
44628
|
}
|
|
45515
44629
|
) });
|
|
45516
|
-
return hasTooltip ? /* @__PURE__ */
|
|
44630
|
+
return hasTooltip ? /* @__PURE__ */ jsx$1(MiniTooltip, { delayDuration: 0, sideOffset: 0, content: item.tooltip, children: Item22 }) : Item22;
|
|
45517
44631
|
}
|
|
45518
|
-
const Item2 = /* @__PURE__ */
|
|
45519
|
-
/* @__PURE__ */
|
|
44632
|
+
const Item2 = /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
44633
|
+
/* @__PURE__ */ jsx$1(
|
|
45520
44634
|
NavigationMenuTrigger,
|
|
45521
44635
|
{
|
|
45522
44636
|
asChild: true,
|
|
@@ -45524,12 +44638,12 @@ const NavigationMenuItem = React__default.forwardRef(
|
|
|
45524
44638
|
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : hasLabel ? item.label : void 0,
|
|
45525
44639
|
borderRadius: hasIconOnly ? "rounded" : void 0,
|
|
45526
44640
|
p: hasIcon ? "x1" : void 0,
|
|
45527
|
-
children: /* @__PURE__ */
|
|
44641
|
+
children: /* @__PURE__ */ jsx$1(Button, { ...item.props, children: Content })
|
|
45528
44642
|
}
|
|
45529
44643
|
),
|
|
45530
|
-
hasSubMenu && /* @__PURE__ */
|
|
44644
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(SubMenuContent, { children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: item.items?.map((sub) => /* @__PURE__ */ jsx$1(MenuSubItem, { item: sub, level: level + 1 }, sub.key)) }) }) })
|
|
45531
44645
|
] });
|
|
45532
|
-
return hasTooltip ? /* @__PURE__ */
|
|
44646
|
+
return hasTooltip ? /* @__PURE__ */ jsx$1(MiniTooltip, { delayDuration: 0, sideOffset: 0, content: item.tooltip, children: Item2 }) : Item2;
|
|
45533
44647
|
}
|
|
45534
44648
|
);
|
|
45535
44649
|
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
@@ -45544,7 +44658,7 @@ const NavigationMenuSubList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)`
|
|
|
45544
44658
|
`;
|
|
45545
44659
|
const Button = React__default.forwardRef(
|
|
45546
44660
|
({ onPointerEnter: _24, onPointerLeave: __, onPointerMove: ___, ...props }, forwardedRef) => {
|
|
45547
|
-
return /* @__PURE__ */
|
|
44661
|
+
return /* @__PURE__ */ jsx$1("button", { ...props, ref: forwardedRef });
|
|
45548
44662
|
}
|
|
45549
44663
|
);
|
|
45550
44664
|
Button.displayName = "Button";
|
|
@@ -45576,11 +44690,11 @@ const HeaderWrapper = styled(Flex).attrs({
|
|
|
45576
44690
|
}
|
|
45577
44691
|
}));
|
|
45578
44692
|
const Header$2 = ({ title, subtitle1, subtitle2, containerProps }) => {
|
|
45579
|
-
return /* @__PURE__ */
|
|
45580
|
-
/* @__PURE__ */
|
|
45581
|
-
/* @__PURE__ */
|
|
45582
|
-
/* @__PURE__ */
|
|
45583
|
-
/* @__PURE__ */
|
|
44693
|
+
return /* @__PURE__ */ jsxs(HeaderWrapper, { ...containerProps, children: [
|
|
44694
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "bold", children: title }),
|
|
44695
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "normal", children: subtitle1 }),
|
|
44696
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "normal", children: subtitle2 }),
|
|
44697
|
+
/* @__PURE__ */ jsx$1(BackgroundTriangles, {})
|
|
45584
44698
|
] });
|
|
45585
44699
|
};
|
|
45586
44700
|
const baseUserMenuItemStyles = (theme, isMobile) => ({
|
|
@@ -45635,12 +44749,12 @@ const UserMenuTrigger = styled($322c88a641701f3b$export$41fb9f06171c75f4)(
|
|
|
45635
44749
|
);
|
|
45636
44750
|
const Item$1 = React__default.forwardRef(
|
|
45637
44751
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45638
|
-
return /* @__PURE__ */
|
|
45639
|
-
item.type === "link" && /* @__PURE__ */
|
|
44752
|
+
return /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
44753
|
+
item.type === "link" && /* @__PURE__ */ jsx$1(UserMenuLink, { asChild: true, children: item.element ? React__default.cloneElement(item.element, {
|
|
45640
44754
|
...item.props,
|
|
45641
44755
|
children: item.label
|
|
45642
|
-
}) : /* @__PURE__ */
|
|
45643
|
-
item.type === "button" && /* @__PURE__ */
|
|
44756
|
+
}) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: item.label }) }),
|
|
44757
|
+
item.type === "button" && /* @__PURE__ */ jsx$1(UserMenuTrigger, { ...item.props, children: item.label }),
|
|
45644
44758
|
item.type === "custom" && item.render({ level, withinMobileNav: false })
|
|
45645
44759
|
] });
|
|
45646
44760
|
}
|
|
@@ -45698,15 +44812,15 @@ const MobileSecondaryLogoContainer = styled($322c88a641701f3b$export$d7a01e11500
|
|
|
45698
44812
|
}));
|
|
45699
44813
|
const MobileItem = React__default.forwardRef(
|
|
45700
44814
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45701
|
-
const content = /* @__PURE__ */
|
|
45702
|
-
item.type === "link" && /* @__PURE__ */
|
|
44815
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44816
|
+
item.type === "link" && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(UserMenuLink, { asChild: true, $isMobile: true, children: item.element ? React__default.cloneElement(item.element, {
|
|
45703
44817
|
...item.props,
|
|
45704
44818
|
children: item.label
|
|
45705
|
-
}) : /* @__PURE__ */
|
|
45706
|
-
item.type === "button" && /* @__PURE__ */
|
|
44819
|
+
}) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: item.label }) }) }),
|
|
44820
|
+
item.type === "button" && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(UserMenuTrigger, { ...item.props, $isMobile: true, children: item.label }) }),
|
|
45707
44821
|
item.type === "custom" && item.render({ level, withinMobileNav: true })
|
|
45708
44822
|
] });
|
|
45709
|
-
return /* @__PURE__ */
|
|
44823
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: content });
|
|
45710
44824
|
}
|
|
45711
44825
|
);
|
|
45712
44826
|
MobileItem.displayName = "MobileItem";
|
|
@@ -45739,9 +44853,9 @@ const NavigationMenuContent = styled($322c88a641701f3b$export$7c6e2c02157bb7d2).
|
|
|
45739
44853
|
}),
|
|
45740
44854
|
addStyledProps
|
|
45741
44855
|
);
|
|
45742
|
-
const Link = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */
|
|
44856
|
+
const Link = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx$1($322c88a641701f3b$export$a6c7ac8248d6e38a, { asChild: true, children: /* @__PURE__ */ jsx$1(A$1, { ...props, ref: forwardedRef, children }) }));
|
|
45743
44857
|
Link.displayName = "Link";
|
|
45744
|
-
const A$1 = styled
|
|
44858
|
+
const A$1 = styled("a")(({ theme }) => ({
|
|
45745
44859
|
textDecoration: "none",
|
|
45746
44860
|
width: "100%",
|
|
45747
44861
|
display: "flex",
|
|
@@ -45759,10 +44873,10 @@ const A$1 = styled$1("a")(({ theme }) => ({
|
|
|
45759
44873
|
outline: "none"
|
|
45760
44874
|
}
|
|
45761
44875
|
}));
|
|
45762
|
-
const FullWidthItem = styled
|
|
44876
|
+
const FullWidthItem = styled($322c88a641701f3b$export$6d08773d2e66f8f2)({
|
|
45763
44877
|
width: "100%"
|
|
45764
44878
|
});
|
|
45765
|
-
const Item = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */
|
|
44879
|
+
const Item = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx$1(FullWidthItem, { ...props, ref: forwardedRef, children }));
|
|
45766
44880
|
Item.displayName = "Item";
|
|
45767
44881
|
const List = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)(({ theme }) => ({
|
|
45768
44882
|
margin: 0,
|
|
@@ -45845,14 +44959,14 @@ function NulogyAppSwitcher({ config: config2 }) {
|
|
|
45845
44959
|
});
|
|
45846
44960
|
}, [config2, t3]);
|
|
45847
44961
|
if (!config2) return null;
|
|
45848
|
-
return /* @__PURE__ */
|
|
45849
|
-
/* @__PURE__ */
|
|
45850
|
-
/* @__PURE__ */
|
|
45851
|
-
app.indicator ? /* @__PURE__ */
|
|
45852
|
-
/* @__PURE__ */
|
|
44962
|
+
return /* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
44963
|
+
/* @__PURE__ */ jsx$1(NavigationMenuIconTrigger, { "aria-label": t3("toggle app switcher"), children: /* @__PURE__ */ jsx$1(Icon, { icon: "apps", size: "x3" }) }),
|
|
44964
|
+
/* @__PURE__ */ jsx$1(NavigationMenuContent, { left: 0, "aria-label": t3("app switcher"), children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { children: /* @__PURE__ */ jsx$1(AppSwitcher.List, { children: includedApps.map((app) => /* @__PURE__ */ jsx$1(AppSwitcher.Item, { children: /* @__PURE__ */ jsxs(AppSwitcher.Link, { href: app.url, "aria-label": app.label, children: [
|
|
44965
|
+
app.indicator ? /* @__PURE__ */ jsxs(AppSwitcher.Header, { children: [
|
|
44966
|
+
/* @__PURE__ */ jsx$1(AppSwitcher.Title, { children: app.label }),
|
|
45853
44967
|
app.indicator
|
|
45854
|
-
] }) : /* @__PURE__ */
|
|
45855
|
-
/* @__PURE__ */
|
|
44968
|
+
] }) : /* @__PURE__ */ jsx$1(AppSwitcher.Title, { children: app.label }),
|
|
44969
|
+
/* @__PURE__ */ jsx$1(AppSwitcher.Description, { children: app.description })
|
|
45856
44970
|
] }) }, app.id)) }) }) })
|
|
45857
44971
|
] });
|
|
45858
44972
|
}
|
|
@@ -45918,44 +45032,44 @@ const useResponsiveMenu = (initialMenuItems) => {
|
|
|
45918
45032
|
};
|
|
45919
45033
|
};
|
|
45920
45034
|
function SvgNulogyLogo(props) {
|
|
45921
|
-
return /* @__PURE__ */
|
|
45922
|
-
/* @__PURE__ */
|
|
45035
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 102 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
45036
|
+
/* @__PURE__ */ jsx$1(
|
|
45923
45037
|
"path",
|
|
45924
45038
|
{
|
|
45925
45039
|
d: "M23.4218 0.867146L27.759 2.60144V18.2175C27.759 21.5706 23.6157 22.1596 20.8189 22.5547C22.4185 22.1596 23.4307 21.7156 23.4218 18.2175V4.33721L19.0846 2.60144L23.4218 0.867146ZM5.20435 21.6875V12.1474C5.20435 11.1871 5.925 10.1009 6.79955 9.72653L11.2773 7.80283V13.8699L15.6145 16.4846C16.4891 16.9286 18.2175 16.9389 18.2175 15.616V13.0131L16.4802 12.1445V0L3.2555 4.87288C1.45757 5.53434 0 7.61934 0 9.54304V23.8569L5.20435 21.6875Z",
|
|
45926
45040
|
fill: "#F0B41C"
|
|
45927
45041
|
}
|
|
45928
45042
|
),
|
|
45929
|
-
/* @__PURE__ */
|
|
45043
|
+
/* @__PURE__ */ jsx$1(
|
|
45930
45044
|
"path",
|
|
45931
45045
|
{
|
|
45932
45046
|
d: "M36.7354 18.4818H32.8096V7.1808H36.435V9.07491C36.9583 8.39756 37.6125 7.83242 38.3587 7.41313C39.0371 7.04867 39.7964 6.86089 40.5665 6.86709C41.7622 6.86709 42.6693 7.20991 43.2878 7.89553C43.9064 8.58116 44.2156 9.58444 44.2156 10.9054V18.4818H40.3105V12.0078C40.3105 11.4159 40.1892 10.9685 39.9465 10.6657C39.7038 10.3628 39.3442 10.2148 38.8678 10.2217C38.1831 10.2217 37.6563 10.4516 37.2874 10.9113C36.9184 11.371 36.7344 12.0404 36.7354 12.9194V18.4818Z",
|
|
45933
45047
|
fill: "#1C68A5"
|
|
45934
45048
|
}
|
|
45935
45049
|
),
|
|
45936
|
-
/* @__PURE__ */
|
|
45050
|
+
/* @__PURE__ */ jsx$1(
|
|
45937
45051
|
"path",
|
|
45938
45052
|
{
|
|
45939
45053
|
d: "M54.0493 6.86694H57.9515V17.2594L54.3261 18.7081V16.5003C53.802 17.1785 53.148 17.7454 52.4024 18.168C51.7277 18.5291 50.9731 18.7149 50.2079 18.7081C49.0102 18.7081 48.1007 18.3628 47.4792 17.6722C46.8577 16.9817 46.5459 15.9779 46.5439 14.6609V6.86694H50.4698V13.5659C50.4698 14.1578 50.5911 14.6071 50.8338 14.9139C51.0765 15.2207 51.4361 15.3732 51.9126 15.3712C52.6031 15.3712 53.1299 15.1394 53.4929 14.6757C53.856 14.212 54.04 13.5451 54.0449 12.675L54.0493 6.86694Z",
|
|
45940
45054
|
fill: "#1C68A5"
|
|
45941
45055
|
}
|
|
45942
45056
|
),
|
|
45943
|
-
/* @__PURE__ */
|
|
45944
|
-
/* @__PURE__ */
|
|
45057
|
+
/* @__PURE__ */ jsx$1("path", { d: "M62.349 18.7354H60.2773V0.830151L62.349 0V18.7354Z", fill: "#1C68A5" }),
|
|
45058
|
+
/* @__PURE__ */ jsx$1(
|
|
45945
45059
|
"path",
|
|
45946
45060
|
{
|
|
45947
45061
|
d: "M64.0928 13.0257C64.0928 11.2362 64.6615 9.76236 65.7989 8.60419C66.9364 7.44603 68.3787 6.86694 70.1258 6.86694C71.8729 6.86694 73.3152 7.44603 74.4526 8.60419C75.5901 9.76236 76.1588 11.2362 76.1588 13.0257C76.1588 14.8232 75.5901 16.3029 74.4526 17.4651C73.3152 18.6272 71.8729 19.2063 70.1258 19.2023C68.3856 19.2023 66.9453 18.6232 65.8049 17.4651C64.6645 16.3069 64.0938 14.8271 64.0928 13.0257ZM66.1497 13.0257C66.1497 14.4315 66.5132 15.5626 67.2402 16.4189C67.9673 17.2752 68.9208 17.7038 70.1006 17.7048C71.2845 17.7048 72.2419 17.2761 72.9729 16.4189C73.7039 15.5616 74.0719 14.4305 74.0768 13.0257C74.0768 11.6298 73.7088 10.5032 72.9729 9.64595C72.2369 8.78867 71.2795 8.36053 70.1006 8.36151C68.9168 8.36151 67.9634 8.79015 67.2402 9.64743C66.5171 10.5047 66.1536 11.6308 66.1497 13.0257Z",
|
|
45948
45062
|
fill: "#1C68A5"
|
|
45949
45063
|
}
|
|
45950
45064
|
),
|
|
45951
|
-
/* @__PURE__ */
|
|
45065
|
+
/* @__PURE__ */ jsx$1(
|
|
45952
45066
|
"path",
|
|
45953
45067
|
{
|
|
45954
45068
|
d: "M86.2825 17.9933C85.7073 18.3338 85.0919 18.6013 84.4505 18.7895C83.8592 18.9596 83.2471 19.0463 82.6319 19.0469C80.9686 19.0469 79.6245 18.495 78.5995 17.3911C77.5745 16.2872 77.0625 14.8365 77.0635 13.0391C77.0635 11.2071 77.611 9.72043 78.706 8.57904C79.8011 7.43764 81.2315 6.86694 82.9974 6.86694C83.5542 6.87509 84.1095 6.92854 84.6577 7.02676C85.289 7.13133 86.0191 7.29213 86.8477 7.50916L88.3142 6.91726V17.1129C88.3142 18.4753 88.2496 19.4721 88.1203 20.1035C88.0069 20.6938 87.7835 21.2575 87.4618 21.7653C86.9756 22.5003 86.284 23.0761 85.473 23.4211C84.5283 23.8233 83.5089 24.0201 82.4824 23.9982C81.7434 23.9982 81.0074 23.9037 80.2923 23.7171C79.5452 23.5188 78.8236 23.2342 78.1422 22.8692L77.8034 20.4113L79.3201 21.4027C79.7777 21.6876 80.277 21.8993 80.7999 22.0302C81.3712 22.1909 81.9614 22.275 82.5549 22.2802C83.7387 22.2802 84.6567 21.9843 85.3088 21.3924C85.9608 20.8005 86.2854 19.958 86.2825 18.8649V17.9933ZM86.2825 16.4499V9.21238C85.7948 8.96846 85.2843 8.77317 84.7583 8.62935C84.298 8.50417 83.8235 8.43901 83.3466 8.4355C82.0848 8.4355 81.0692 8.8597 80.2997 9.7081C79.5303 10.5565 79.145 11.6851 79.144 13.0938C79.144 14.4473 79.4893 15.5216 80.1799 16.3168C80.8704 17.1119 81.8007 17.509 82.9707 17.508C83.461 17.5022 83.9474 17.4218 84.4135 17.2697C85.0592 17.0516 85.6846 16.7773 86.2825 16.4499Z",
|
|
45955
45069
|
fill: "#1C68A5"
|
|
45956
45070
|
}
|
|
45957
45071
|
),
|
|
45958
|
-
/* @__PURE__ */
|
|
45072
|
+
/* @__PURE__ */ jsx$1(
|
|
45959
45073
|
"path",
|
|
45960
45074
|
{
|
|
45961
45075
|
d: "M90.0352 6.86694H92.1927L95.5784 15.7456L99.3044 6.86694H101.061L95.6672 19.3222L95.5784 19.4983C94.726 21.4378 94.0695 22.8189 93.6088 23.6416H91.364C91.8422 23.1454 92.2709 22.6037 92.644 22.0242C93.1111 21.2739 93.526 20.4922 93.8855 19.6847L94.6136 18.1176L90.0352 6.86694Z",
|
|
@@ -45969,14 +45083,14 @@ function NulogyLogo({ app }) {
|
|
|
45969
45083
|
if (app && !(app in APP_DISPLAY_NAMES)) {
|
|
45970
45084
|
throw new Error(`Invalid app name: ${app}. Valid names are: ${Object.keys(APP_DISPLAY_NAMES).join(", ")}`);
|
|
45971
45085
|
}
|
|
45972
|
-
return /* @__PURE__ */
|
|
45973
|
-
/* @__PURE__ */
|
|
45086
|
+
return /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", justifyContent: "center", flexDirection: appDisplayName ? "column" : "row", children: [
|
|
45087
|
+
/* @__PURE__ */ jsx$1(SvgNulogyLogo, { width: "102", height: "24" }),
|
|
45974
45088
|
appDisplayName && /*
|
|
45975
45089
|
This Text component is using custom properties that are not
|
|
45976
45090
|
in the theme because we're trying to match the branding
|
|
45977
45091
|
typography and colors of the Nulogy logo.
|
|
45978
45092
|
*/
|
|
45979
|
-
/* @__PURE__ */
|
|
45093
|
+
/* @__PURE__ */ jsx$1(
|
|
45980
45094
|
Text,
|
|
45981
45095
|
{
|
|
45982
45096
|
fontSize: "10px",
|
|
@@ -45996,11 +45110,11 @@ const NavigationMenuLink = styled(NavigationMenuLink$1)(({ theme }) => ({
|
|
|
45996
45110
|
padding: theme.space.x1
|
|
45997
45111
|
}));
|
|
45998
45112
|
const NavigationLogoLink = ({ href, renderAsFragment = false, ...props }) => {
|
|
45999
|
-
return /* @__PURE__ */
|
|
45113
|
+
return /* @__PURE__ */ jsx$1(NavigationMenuLink, { href, asChild: renderAsFragment, ...props });
|
|
46000
45114
|
};
|
|
46001
45115
|
function MoreMenuItem({ moreMenu }) {
|
|
46002
45116
|
const { t: t3 } = useTranslation();
|
|
46003
|
-
return /* @__PURE__ */
|
|
45117
|
+
return /* @__PURE__ */ jsx$1(
|
|
46004
45118
|
NavigationMenuItem,
|
|
46005
45119
|
{
|
|
46006
45120
|
item: {
|
|
@@ -46034,29 +45148,29 @@ function DesktopNav({
|
|
|
46034
45148
|
() => userMenuExists && (userMenu.header || userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0),
|
|
46035
45149
|
[userMenuExists, userMenu]
|
|
46036
45150
|
);
|
|
46037
|
-
return /* @__PURE__ */
|
|
46038
|
-
/* @__PURE__ */
|
|
46039
|
-
/* @__PURE__ */
|
|
46040
|
-
/* @__PURE__ */
|
|
46041
|
-
menuItems.map((item) => /* @__PURE__ */
|
|
46042
|
-
moreMenu.length > 0 && /* @__PURE__ */
|
|
46043
|
-
hiddenMenuItem && /* @__PURE__ */
|
|
45151
|
+
return /* @__PURE__ */ jsxs(NavigationMenuRoot, { children: [
|
|
45152
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { ref: primaryMenuRef, children: [
|
|
45153
|
+
/* @__PURE__ */ jsx$1(NulogyAppSwitcher, { config: appSwitcher }),
|
|
45154
|
+
/* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: primaryLogo ?? /* @__PURE__ */ jsx$1(NavigationLogoLink, { href: "/", "aria-label": "Nulogy Logo", children: /* @__PURE__ */ jsx$1(NulogyLogo, {}) }) }),
|
|
45155
|
+
menuItems.map((item) => /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }, item.key)),
|
|
45156
|
+
moreMenu.length > 0 && /* @__PURE__ */ jsx$1(MoreMenuItem, { moreMenu }),
|
|
45157
|
+
hiddenMenuItem && /* @__PURE__ */ jsx$1(HiddenNavigationMenuItem, { ref: hiddenButtonRef, item: hiddenMenuItem })
|
|
46044
45158
|
] }),
|
|
46045
|
-
/* @__PURE__ */
|
|
46046
|
-
secondaryNavigation.map((item) => /* @__PURE__ */
|
|
46047
|
-
secondaryNavigation.length > 0 && userMenuExists && /* @__PURE__ */
|
|
46048
|
-
secondaryLogo && /* @__PURE__ */
|
|
46049
|
-
secondaryLogo && userMenuExists && /* @__PURE__ */
|
|
46050
|
-
userMenuExists && /* @__PURE__ */
|
|
46051
|
-
/* @__PURE__ */
|
|
46052
|
-
/* @__PURE__ */
|
|
46053
|
-
/* @__PURE__ */
|
|
46054
|
-
userMenu.triggerText.subtitle1 && /* @__PURE__ */
|
|
46055
|
-
userMenu.triggerText.subtitle2 && /* @__PURE__ */
|
|
45159
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { ref: secondaryMenuRef, children: [
|
|
45160
|
+
secondaryNavigation.map((item) => /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }, item.key)),
|
|
45161
|
+
secondaryNavigation.length > 0 && userMenuExists && /* @__PURE__ */ jsx$1(VerticalDivider, {}),
|
|
45162
|
+
secondaryLogo && /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: secondaryLogo }),
|
|
45163
|
+
secondaryLogo && userMenuExists && /* @__PURE__ */ jsx$1(VerticalDivider, {}),
|
|
45164
|
+
userMenuExists && /* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
45165
|
+
/* @__PURE__ */ jsxs(NavigationMenuTrigger, { py: "half", disabled: !hasUserMenuContent, "aria-label": t3("toggle user menu"), children: [
|
|
45166
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", alignItems: "flex-start", children: [
|
|
45167
|
+
/* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.title }),
|
|
45168
|
+
userMenu.triggerText.subtitle1 && /* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.subtitle1 }),
|
|
45169
|
+
userMenu.triggerText.subtitle2 && /* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.subtitle2 })
|
|
46056
45170
|
] }),
|
|
46057
|
-
hasUserMenuContent && /* @__PURE__ */
|
|
45171
|
+
hasUserMenuContent && /* @__PURE__ */ jsx$1(CaretDown, { icon: "downArrow", size: "x2", "aria-hidden": true })
|
|
46058
45172
|
] }),
|
|
46059
|
-
hasUserMenuContent && /* @__PURE__ */
|
|
45173
|
+
hasUserMenuContent && /* @__PURE__ */ jsxs(
|
|
46060
45174
|
NavigationMenuContent,
|
|
46061
45175
|
{
|
|
46062
45176
|
right: 0,
|
|
@@ -46065,11 +45179,11 @@ function DesktopNav({
|
|
|
46065
45179
|
pb: userMenu.menuItems && userMenu.menuItems.length ? "x1" : "none",
|
|
46066
45180
|
"aria-label": t3("user menu"),
|
|
46067
45181
|
children: [
|
|
46068
|
-
userMenu.header && /* @__PURE__ */
|
|
46069
|
-
(userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0) && /* @__PURE__ */
|
|
46070
|
-
userMenu.controls && /* @__PURE__ */
|
|
46071
|
-
userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
46072
|
-
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
45182
|
+
userMenu.header && /* @__PURE__ */ jsx$1(UserMenu.Header, { ...userMenu.header }),
|
|
45183
|
+
(userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0) && /* @__PURE__ */ jsxs(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column", children: [
|
|
45184
|
+
userMenu.controls && /* @__PURE__ */ jsx$1(Box, { p: "x2", children: userMenu.controls({ withinMobileNav: false }) }),
|
|
45185
|
+
userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1(Divider$1, { my: "x2" }) }),
|
|
45186
|
+
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "none", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: userMenu.menuItems.map((item) => /* @__PURE__ */ jsx$1(UserMenu.Item, { item }, item.key)) }) }) })
|
|
46073
45187
|
] })
|
|
46074
45188
|
]
|
|
46075
45189
|
}
|
|
@@ -46099,25 +45213,25 @@ const MobileMenuItem = React__default.forwardRef(
|
|
|
46099
45213
|
return null;
|
|
46100
45214
|
}
|
|
46101
45215
|
if (menuItem.type === "separator") {
|
|
46102
|
-
return /* @__PURE__ */
|
|
45216
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(Divider$1, { secondary: level > 0, my: "x2" }) }) });
|
|
46103
45217
|
}
|
|
46104
45218
|
if (menuItem.type === "custom") {
|
|
46105
|
-
return /* @__PURE__ */
|
|
45219
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: menuItem.render({ withinSubMenu: level > 0, level, withinMobileNav: true }) }) });
|
|
46106
45220
|
}
|
|
46107
45221
|
const hasIcon = "icon" in menuItem;
|
|
46108
45222
|
const hasLabel = "label" in menuItem && !!menuItem.label;
|
|
46109
45223
|
const hasTooltip = "tooltip" in menuItem && !!menuItem.tooltip;
|
|
46110
|
-
const IconFragment = hasIcon ? /* @__PURE__ */
|
|
45224
|
+
const IconFragment = hasIcon ? /* @__PURE__ */ jsx$1(Icon, { icon: menuItem.icon, size: "x3", "aria-hidden": true }) : null;
|
|
46111
45225
|
const labelText = hasLabel ? menuItem.label : hasIcon && hasTooltip ? menuItem.tooltip : null;
|
|
46112
|
-
const LabelFragment = labelText ? /* @__PURE__ */
|
|
45226
|
+
const LabelFragment = labelText ? /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextCompressed", children: labelText }) : null;
|
|
46113
45227
|
if (menuItem.type === "link") {
|
|
46114
|
-
return /* @__PURE__ */
|
|
45228
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(MobileNavigationLink, { asChild: true, children: menuItem.element ? React__default.cloneElement(menuItem.element, {
|
|
46115
45229
|
...menuItem.props,
|
|
46116
|
-
children: /* @__PURE__ */
|
|
45230
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46117
45231
|
IconFragment,
|
|
46118
45232
|
LabelFragment
|
|
46119
45233
|
] })
|
|
46120
|
-
}) : /* @__PURE__ */
|
|
45234
|
+
}) : /* @__PURE__ */ jsxs("a", { ...menuItem.props, children: [
|
|
46121
45235
|
IconFragment,
|
|
46122
45236
|
LabelFragment
|
|
46123
45237
|
] }) }) }) });
|
|
@@ -46125,12 +45239,12 @@ const MobileMenuItem = React__default.forwardRef(
|
|
|
46125
45239
|
if (menuItem.type === "button") {
|
|
46126
45240
|
const hasItems = !!menuItem.items && menuItem.items.length > 0;
|
|
46127
45241
|
if (hasItems) {
|
|
46128
|
-
return /* @__PURE__ */
|
|
46129
|
-
LabelFragment && /* @__PURE__ */
|
|
46130
|
-
/* @__PURE__ */
|
|
45242
|
+
return /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
45243
|
+
LabelFragment && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(MenuItemGroupLabel, { children: labelText }) }),
|
|
45244
|
+
/* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: (menuItem.items || []).map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item, level: level + 1 }, item.key)) }) })
|
|
46131
45245
|
] });
|
|
46132
45246
|
}
|
|
46133
|
-
return /* @__PURE__ */
|
|
45247
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsxs(MobileNavigationButton, { ..."props" in menuItem ? menuItem.props : {}, children: [
|
|
46134
45248
|
IconFragment,
|
|
46135
45249
|
LabelFragment
|
|
46136
45250
|
] }) }) });
|
|
@@ -46148,26 +45262,26 @@ function MobileNav({
|
|
|
46148
45262
|
userMenu
|
|
46149
45263
|
}) {
|
|
46150
45264
|
const { t: t3 } = useTranslation();
|
|
46151
|
-
return /* @__PURE__ */
|
|
46152
|
-
/* @__PURE__ */
|
|
46153
|
-
/* @__PURE__ */
|
|
46154
|
-
/* @__PURE__ */
|
|
45265
|
+
return /* @__PURE__ */ jsxs(NavigationMenuRoot, { children: [
|
|
45266
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { children: [
|
|
45267
|
+
/* @__PURE__ */ jsx$1(NulogyAppSwitcher, { config: appSwitcher }),
|
|
45268
|
+
/* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: primaryLogo ?? /* @__PURE__ */ jsx$1(NavigationLogoLink, { href: "/", "aria-label": t3("nulogy logo"), children: /* @__PURE__ */ jsx$1(NulogyLogo, {}) }) })
|
|
46155
45269
|
] }),
|
|
46156
|
-
(primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && /* @__PURE__ */
|
|
46157
|
-
getNavigationBarItems([...primaryNavigation, ...secondaryNavigation]).map((item) => /* @__PURE__ */
|
|
46158
|
-
/* @__PURE__ */
|
|
46159
|
-
/* @__PURE__ */
|
|
46160
|
-
/* @__PURE__ */
|
|
46161
|
-
/* @__PURE__ */
|
|
46162
|
-
primaryNavigation.length > 0 && /* @__PURE__ */
|
|
46163
|
-
secondaryNavigation.length > 0 && /* @__PURE__ */
|
|
46164
|
-
userMenu && /* @__PURE__ */
|
|
46165
|
-
userMenu.header && /* @__PURE__ */
|
|
46166
|
-
userMenu.controls && /* @__PURE__ */
|
|
46167
|
-
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
45270
|
+
(primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && /* @__PURE__ */ jsxs(NavigationMenuList, { children: [
|
|
45271
|
+
getNavigationBarItems([...primaryNavigation, ...secondaryNavigation]).map((item) => /* @__PURE__ */ jsx$1($322c88a641701f3b$export$6d08773d2e66f8f2, { children: /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }) }, item.key)),
|
|
45272
|
+
/* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
45273
|
+
/* @__PURE__ */ jsx$1(NavigationMenuTrigger, { "aria-label": t3("toggle mobile menu"), children: /* @__PURE__ */ jsx$1(Icon, { icon: "menu" }) }),
|
|
45274
|
+
/* @__PURE__ */ jsxs(NavigationMenuContent, { right: 0, children: [
|
|
45275
|
+
/* @__PURE__ */ jsxs(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column", gap: "x4", children: [
|
|
45276
|
+
primaryNavigation.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: primaryNavigation.map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item }, item.key)) }) }) }),
|
|
45277
|
+
secondaryNavigation.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: secondaryNavigation.map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item }, item.key)) }) }) }),
|
|
45278
|
+
userMenu && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45279
|
+
userMenu.header && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1(UserMenu.Header, { ...userMenu.header, containerProps: { borderRadius: "large" } }) }),
|
|
45280
|
+
userMenu.controls && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: userMenu.controls({ withinMobileNav: true }) }),
|
|
45281
|
+
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "none", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: userMenu.menuItems.map((item) => /* @__PURE__ */ jsx$1(UserMenu.MobileItem, { item }, item.key)) }) })
|
|
46168
45282
|
] })
|
|
46169
45283
|
] }),
|
|
46170
|
-
secondaryLogo && /* @__PURE__ */
|
|
45284
|
+
secondaryLogo && /* @__PURE__ */ jsx$1(MobileSecondaryLogoContainer, { children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { children: secondaryLogo }) }) })
|
|
46171
45285
|
] })
|
|
46172
45286
|
] })
|
|
46173
45287
|
] })
|
|
@@ -46177,7 +45291,7 @@ const Navigation$1 = ({ breakpoint = NAVIGATION_DEFAULT_BREAKPOINT_THEME_KEY, ..
|
|
|
46177
45291
|
const theme = useTheme();
|
|
46178
45292
|
const query = theme?.breakpoints?.[breakpoint] ? breakpoint : `(min-width: ${breakpoint})`;
|
|
46179
45293
|
const largeScreen = useMediaQuery(query);
|
|
46180
|
-
return /* @__PURE__ */
|
|
45294
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: largeScreen ? /* @__PURE__ */ jsx$1(DesktopNav, { ...props }) : /* @__PURE__ */ jsx$1(MobileNav, { ...props }) });
|
|
46181
45295
|
};
|
|
46182
45296
|
const LogoContainer = styled.div(({ $maxWidth, $maxHeight }) => ({
|
|
46183
45297
|
display: "flex",
|
|
@@ -46190,7 +45304,7 @@ const LogoContainer = styled.div(({ $maxWidth, $maxHeight }) => ({
|
|
|
46190
45304
|
}
|
|
46191
45305
|
}));
|
|
46192
45306
|
const NavigationLogo = ({ children, maxWidth: maxWidth2, maxHeight: maxHeight2, ...props }) => {
|
|
46193
|
-
return /* @__PURE__ */
|
|
45307
|
+
return /* @__PURE__ */ jsx$1(LogoContainer, { $maxWidth: maxWidth2, $maxHeight: maxHeight2, ...props, children });
|
|
46194
45308
|
};
|
|
46195
45309
|
function _objectSpread(e3) {
|
|
46196
45310
|
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
@@ -49957,7 +49071,7 @@ function useNDSTheme(variant3 = "desktop", customTheme) {
|
|
|
49957
49071
|
function NDSThemeProvider({ customTheme, children }) {
|
|
49958
49072
|
const variant3 = useComponentVariant();
|
|
49959
49073
|
const theme = useNDSTheme(variant3, customTheme);
|
|
49960
|
-
return /* @__PURE__ */
|
|
49074
|
+
return /* @__PURE__ */ jsx$1(StyleSheetManager, { enableVendorPrefixes: true, shouldForwardProp, children: /* @__PURE__ */ jsx$1(ThemeProvider, { theme, children }) });
|
|
49961
49075
|
}
|
|
49962
49076
|
function shouldForwardProp(propName, target) {
|
|
49963
49077
|
if (typeof target === "string") {
|
|
@@ -50036,12 +49150,12 @@ function GlobalStylesComposer({
|
|
|
50036
49150
|
children
|
|
50037
49151
|
}) {
|
|
50038
49152
|
if (disableGlobalStyles) {
|
|
50039
|
-
return /* @__PURE__ */
|
|
49153
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
50040
49154
|
}
|
|
50041
|
-
return /* @__PURE__ */
|
|
50042
|
-
/* @__PURE__ */
|
|
50043
|
-
/* @__PURE__ */
|
|
50044
|
-
/* @__PURE__ */
|
|
49155
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49156
|
+
/* @__PURE__ */ jsx$1(Reset, {}),
|
|
49157
|
+
/* @__PURE__ */ jsx$1(ModalStyleOverride, { theme, locale: locale2 }),
|
|
49158
|
+
/* @__PURE__ */ jsx$1(GlobalStyles, { theme, locale: locale2, children })
|
|
50045
49159
|
] });
|
|
50046
49160
|
}
|
|
50047
49161
|
function NDSProvider({
|
|
@@ -50057,7 +49171,7 @@ function NDSProvider({
|
|
|
50057
49171
|
useEffect(() => {
|
|
50058
49172
|
i18next.changeLanguage(locale2);
|
|
50059
49173
|
}, [locale2]);
|
|
50060
|
-
return /* @__PURE__ */
|
|
49174
|
+
return /* @__PURE__ */ jsx$1(LocaleContext.Provider, { value: { locale: locale2 }, children: /* @__PURE__ */ jsx$1(FeatureFlagsProvider, { featureFlags, children: /* @__PURE__ */ jsx$1(ComponentVariantContextProvider, { variant: variant3, children: /* @__PURE__ */ jsx$1(I18nextProvider, { i18n: i18next, children: /* @__PURE__ */ jsx$1(NDSThemeProvider, { customTheme, children: /* @__PURE__ */ jsx$1(GlobalStylesComposer, { locale: locale2, disableGlobalStyles, children }) }) }) }) }) });
|
|
50061
49175
|
}
|
|
50062
49176
|
const Overlay$1 = styled(Flex)(({ dark = false, theme }) => ({
|
|
50063
49177
|
position: "fixed",
|
|
@@ -50102,7 +49216,7 @@ const PageNumber = styled(PaginationButton)(({ theme, currentPage }) => ({
|
|
|
50102
49216
|
const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, showIconOnly }) => {
|
|
50103
49217
|
const { t: t3 } = useTranslation();
|
|
50104
49218
|
const theme = useTheme();
|
|
50105
|
-
return /* @__PURE__ */
|
|
49219
|
+
return /* @__PURE__ */ jsxs(
|
|
50106
49220
|
PaginationButton,
|
|
50107
49221
|
{
|
|
50108
49222
|
disabled,
|
|
@@ -50110,7 +49224,7 @@ const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, sh
|
|
|
50110
49224
|
"aria-label": ariaLabel || t3("go to previous results"),
|
|
50111
49225
|
iconOnly: showIconOnly,
|
|
50112
49226
|
children: [
|
|
50113
|
-
/* @__PURE__ */
|
|
49227
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "leftArrow", ml: showIconOnly ? "0" : `-${theme.space.x1}` }),
|
|
50114
49228
|
!showIconOnly && (label || t3("previous"))
|
|
50115
49229
|
]
|
|
50116
49230
|
}
|
|
@@ -50119,7 +49233,7 @@ const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, sh
|
|
|
50119
49233
|
const NextButton = ({ disabled, onClick, label, ariaLabel, showIconOnly }) => {
|
|
50120
49234
|
const { t: t3 } = useTranslation();
|
|
50121
49235
|
const theme = useTheme();
|
|
50122
|
-
return /* @__PURE__ */
|
|
49236
|
+
return /* @__PURE__ */ jsxs(
|
|
50123
49237
|
PaginationButton,
|
|
50124
49238
|
{
|
|
50125
49239
|
disabled,
|
|
@@ -50128,14 +49242,14 @@ const NextButton = ({ disabled, onClick, label, ariaLabel, showIconOnly }) => {
|
|
|
50128
49242
|
iconOnly: showIconOnly,
|
|
50129
49243
|
children: [
|
|
50130
49244
|
!showIconOnly && (label || t3("next")),
|
|
50131
|
-
/* @__PURE__ */
|
|
49245
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow", mr: showIconOnly ? "0" : `-${theme.space.x1}` })
|
|
50132
49246
|
]
|
|
50133
49247
|
}
|
|
50134
49248
|
);
|
|
50135
49249
|
};
|
|
50136
49250
|
const PaginationCount = ({ currentPage, totalPages }) => {
|
|
50137
49251
|
const { t: t3 } = useTranslation();
|
|
50138
|
-
return /* @__PURE__ */
|
|
49252
|
+
return /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextBase", mx: "x2", children: t3("current page of total", { currentPage, totalPages }) });
|
|
50139
49253
|
};
|
|
50140
49254
|
function validateAndSetMaxVisiblePages(maxVisiblePages) {
|
|
50141
49255
|
if (maxVisiblePages < 3) {
|
|
@@ -50206,8 +49320,8 @@ function Pagination({
|
|
|
50206
49320
|
});
|
|
50207
49321
|
}
|
|
50208
49322
|
};
|
|
50209
|
-
return /* @__PURE__ */
|
|
50210
|
-
/* @__PURE__ */
|
|
49323
|
+
return /* @__PURE__ */ jsxs(Flex, { as: "nav", gap: "x2", "aria-label": ariaLabel || t3("pagination navigation"), alignItems: "center", ...restProps, children: [
|
|
49324
|
+
/* @__PURE__ */ jsx$1(
|
|
50211
49325
|
PreviousButton,
|
|
50212
49326
|
{
|
|
50213
49327
|
disabled: currentPage === 1,
|
|
@@ -50225,9 +49339,9 @@ function Pagination({
|
|
|
50225
49339
|
largerThanPhone ? getPageItemsToDisplay({ totalPages, currentPage, maxVisiblePages }).map((page, index2) => {
|
|
50226
49340
|
const isCurrentPage = currentPage === page;
|
|
50227
49341
|
if (page === SEPARATOR)
|
|
50228
|
-
return /* @__PURE__ */
|
|
49342
|
+
return /* @__PURE__ */ jsx$1(Text, { py: "x1", fontSize: "small", lineHeight: "smallTextBase", children: SEPARATOR }, `sep${index2}`);
|
|
50229
49343
|
else
|
|
50230
|
-
return /* @__PURE__ */
|
|
49344
|
+
return /* @__PURE__ */ jsx$1(
|
|
50231
49345
|
PageNumber,
|
|
50232
49346
|
{
|
|
50233
49347
|
"aria-current": isCurrentPage,
|
|
@@ -50244,8 +49358,8 @@ function Pagination({
|
|
|
50244
49358
|
},
|
|
50245
49359
|
page
|
|
50246
49360
|
);
|
|
50247
|
-
}) : /* @__PURE__ */
|
|
50248
|
-
/* @__PURE__ */
|
|
49361
|
+
}) : /* @__PURE__ */ jsx$1(PaginationCount, { currentPage, totalPages }),
|
|
49362
|
+
/* @__PURE__ */ jsx$1(
|
|
50249
49363
|
NextButton,
|
|
50250
49364
|
{
|
|
50251
49365
|
disabled: currentPage === totalPages,
|
|
@@ -50358,8 +49472,8 @@ const Radio = forwardRef(
|
|
|
50358
49472
|
const componentVariant = useComponentVariant(variant22);
|
|
50359
49473
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
50360
49474
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
50361
|
-
return /* @__PURE__ */
|
|
50362
|
-
/* @__PURE__ */
|
|
49475
|
+
return /* @__PURE__ */ jsx$1(Box, { position: "relative", className, px: "0", ...spaceProps, children: /* @__PURE__ */ jsxs(ClickInputLabel, { variant: componentVariant, disabled, children: [
|
|
49476
|
+
/* @__PURE__ */ jsx$1(
|
|
50363
49477
|
RadioInput,
|
|
50364
49478
|
{
|
|
50365
49479
|
type: "radio",
|
|
@@ -50374,8 +49488,8 @@ const Radio = forwardRef(
|
|
|
50374
49488
|
"aria-invalid": error2
|
|
50375
49489
|
}
|
|
50376
49490
|
),
|
|
50377
|
-
/* @__PURE__ */
|
|
50378
|
-
/* @__PURE__ */
|
|
49491
|
+
/* @__PURE__ */ jsx$1(VisualRadio, { disabled }),
|
|
49492
|
+
/* @__PURE__ */ jsxs(
|
|
50379
49493
|
Text,
|
|
50380
49494
|
{
|
|
50381
49495
|
inline: true,
|
|
@@ -50404,14 +49518,14 @@ function RadioGroup({
|
|
|
50404
49518
|
}) {
|
|
50405
49519
|
const otherProps = { ...props, errorMessage, errorList };
|
|
50406
49520
|
const theme = useTheme();
|
|
50407
|
-
return /* @__PURE__ */
|
|
50408
|
-
/* @__PURE__ */
|
|
50409
|
-
/* @__PURE__ */
|
|
50410
|
-
requirementText && /* @__PURE__ */
|
|
49521
|
+
return /* @__PURE__ */ jsxs(Fieldset, { className, id: id2, children: [
|
|
49522
|
+
/* @__PURE__ */ jsxs("legend", { style: { marginBottom: theme.space.x1 }, children: [
|
|
49523
|
+
/* @__PURE__ */ jsx$1("span", { style: labelTextStyles(theme), children: labelText }),
|
|
49524
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { children: requirementText })
|
|
50411
49525
|
] }),
|
|
50412
|
-
helpText && /* @__PURE__ */
|
|
49526
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { children: helpText }),
|
|
50413
49527
|
getRadioButtons(otherProps),
|
|
50414
|
-
/* @__PURE__ */
|
|
49528
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
50415
49529
|
] });
|
|
50416
49530
|
}
|
|
50417
49531
|
const labelTextStyles = (theme) => ({
|
|
@@ -50422,7 +49536,7 @@ const labelTextStyles = (theme) => ({
|
|
|
50422
49536
|
const getRadioButtons = (props) => {
|
|
50423
49537
|
const radioButtons = React__default.Children.map(props.children, (radio) => {
|
|
50424
49538
|
const { value, disabled, required, onChange: onChange2, ...radioProps } = radio.props;
|
|
50425
|
-
return /* @__PURE__ */
|
|
49539
|
+
return /* @__PURE__ */ jsx$1(
|
|
50426
49540
|
Radio,
|
|
50427
49541
|
{
|
|
50428
49542
|
...radioProps,
|
|
@@ -50441,25 +49555,25 @@ const getRadioButtons = (props) => {
|
|
|
50441
49555
|
};
|
|
50442
49556
|
function SelectControl(props) {
|
|
50443
49557
|
const { isFocused: isFocused2 } = props;
|
|
50444
|
-
return /* @__PURE__ */
|
|
49558
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-control", children: /* @__PURE__ */ jsx$1(components.Control, { className: isFocused2 ? "nds-select--is-focused" : null, isFocused: isFocused2, ...props, children: props.children }) });
|
|
50445
49559
|
}
|
|
50446
49560
|
function SelectMultiValue(props) {
|
|
50447
|
-
return /* @__PURE__ */
|
|
49561
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-multivalue", children: /* @__PURE__ */ jsx$1(components.MultiValue, { ...props, children: props.children }) });
|
|
50448
49562
|
}
|
|
50449
49563
|
function SelectClearIndicator(props) {
|
|
50450
|
-
return /* @__PURE__ */
|
|
49564
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-clear", children: /* @__PURE__ */ jsx$1(components.ClearIndicator, { ...props }) });
|
|
50451
49565
|
}
|
|
50452
49566
|
function SelectDropdownIndicator(props) {
|
|
50453
|
-
return /* @__PURE__ */
|
|
49567
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-arrow", children: /* @__PURE__ */ jsx$1(components.DropdownIndicator, { ...props }) });
|
|
50454
49568
|
}
|
|
50455
49569
|
function SelectMenu(props) {
|
|
50456
|
-
return /* @__PURE__ */
|
|
49570
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-dropdown", children: /* @__PURE__ */ jsx$1(components.Menu, { ...props, children: props.children }) });
|
|
50457
49571
|
}
|
|
50458
49572
|
function SelectContainer(props) {
|
|
50459
|
-
return /* @__PURE__ */
|
|
49573
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-container", children: /* @__PURE__ */ jsx$1(components.SelectContainer, { ...props, children: props.children }) });
|
|
50460
49574
|
}
|
|
50461
49575
|
function SelectInput(props) {
|
|
50462
|
-
return /* @__PURE__ */
|
|
49576
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-input", children: /* @__PURE__ */ jsx$1(components.Input, { ...props, children: props.children }) });
|
|
50463
49577
|
}
|
|
50464
49578
|
var safeIsNaN = Number.isNaN || function ponyfill2(value) {
|
|
50465
49579
|
return typeof value === "number" && value !== value;
|
|
@@ -51236,7 +50350,7 @@ function MenuList(props) {
|
|
|
51236
50350
|
list.current.scrollToItem(currentIndex);
|
|
51237
50351
|
}
|
|
51238
50352
|
}, [currentIndex, children, list]);
|
|
51239
|
-
return /* @__PURE__ */
|
|
50353
|
+
return /* @__PURE__ */ jsx$1(
|
|
51240
50354
|
VariableSizeList,
|
|
51241
50355
|
{
|
|
51242
50356
|
className: classNamePrefix ? `${classNamePrefix}__menu-list${isMulti ? ` ${classNamePrefix}__menu-list--is-multi` : ""}` : "",
|
|
@@ -51244,7 +50358,7 @@ function MenuList(props) {
|
|
|
51244
50358
|
ref: list,
|
|
51245
50359
|
outerRef: innerRef,
|
|
51246
50360
|
estimatedItemSize,
|
|
51247
|
-
innerElementType: React.forwardRef(({ style, ...rest }, ref) => /* @__PURE__ */
|
|
50361
|
+
innerElementType: React.forwardRef(({ style, ...rest }, ref) => /* @__PURE__ */ jsx$1(
|
|
51248
50362
|
"div",
|
|
51249
50363
|
{
|
|
51250
50364
|
ref,
|
|
@@ -51261,14 +50375,14 @@ function MenuList(props) {
|
|
|
51261
50375
|
itemData: children,
|
|
51262
50376
|
itemSize: (index2) => measuredHeights[index2] || heights[index2],
|
|
51263
50377
|
children: ({ data, index: index2, style }) => {
|
|
51264
|
-
return /* @__PURE__ */
|
|
50378
|
+
return /* @__PURE__ */ jsx$1(
|
|
51265
50379
|
"div",
|
|
51266
50380
|
{
|
|
51267
50381
|
style: {
|
|
51268
50382
|
...style,
|
|
51269
50383
|
top: `${parseFloat(style.top.toString()) + paddingTop}px`
|
|
51270
50384
|
},
|
|
51271
|
-
children: /* @__PURE__ */
|
|
50385
|
+
children: /* @__PURE__ */ jsx$1(MenuItem$1, { data: data[index2], index: index2, setMeasuredHeight })
|
|
51272
50386
|
}
|
|
51273
50387
|
);
|
|
51274
50388
|
}
|
|
@@ -51283,7 +50397,7 @@ function MenuItem$1({ data, index: index2, setMeasuredHeight }) {
|
|
|
51283
50397
|
setMeasuredHeight({ index: index2, measuredHeight });
|
|
51284
50398
|
}
|
|
51285
50399
|
}, [ref.current]);
|
|
51286
|
-
return /* @__PURE__ */
|
|
50400
|
+
return /* @__PURE__ */ jsx$1("div", { ref, children: data }, `option-${index2}`);
|
|
51287
50401
|
}
|
|
51288
50402
|
const NDSSelect = forwardRef(
|
|
51289
50403
|
({
|
|
@@ -51333,8 +50447,8 @@ const NDSSelect = forwardRef(
|
|
|
51333
50447
|
maxHeight: maxHeight2,
|
|
51334
50448
|
windowed: options.length > windowThreshold
|
|
51335
50449
|
});
|
|
51336
|
-
return /* @__PURE__ */
|
|
51337
|
-
/* @__PURE__ */
|
|
50450
|
+
return /* @__PURE__ */ jsx$1(Field, { ...styledProps, children: /* @__PURE__ */ jsxs(MaybeFieldLabel, { ...fieldLabelProps, children: [
|
|
50451
|
+
/* @__PURE__ */ jsx$1(
|
|
51338
50452
|
StateManagedSelect$1,
|
|
51339
50453
|
{
|
|
51340
50454
|
ref,
|
|
@@ -51357,7 +50471,7 @@ const NDSSelect = forwardRef(
|
|
|
51357
50471
|
inputId: id2,
|
|
51358
50472
|
styles: styles2 ? styles2(stylesConfig) : stylesConfig,
|
|
51359
50473
|
components: {
|
|
51360
|
-
Option: (props2) => /* @__PURE__ */
|
|
50474
|
+
Option: (props2) => /* @__PURE__ */ jsx$1(SelectOption$1, { ...props2, children: props2.children }),
|
|
51361
50475
|
Control: SelectControl,
|
|
51362
50476
|
MultiValue: SelectMultiValue,
|
|
51363
50477
|
ClearIndicator: SelectClearIndicator,
|
|
@@ -51377,7 +50491,7 @@ const NDSSelect = forwardRef(
|
|
|
51377
50491
|
...props
|
|
51378
50492
|
}
|
|
51379
50493
|
),
|
|
51380
|
-
/* @__PURE__ */
|
|
50494
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
51381
50495
|
] }) });
|
|
51382
50496
|
}
|
|
51383
50497
|
);
|
|
@@ -51419,7 +50533,7 @@ function renderHeaderCellContent({
|
|
|
51419
50533
|
return key ? headerFormatter({ align, label, width: width2, metadata, key }) : headerFormatter({ align, label, width: width2, metadata, dataKey });
|
|
51420
50534
|
}
|
|
51421
50535
|
function TableHead({ columns, compact, sticky }) {
|
|
51422
|
-
const renderColumns = (allColumns) => allColumns.map((column2, index2) => /* @__PURE__ */
|
|
50536
|
+
const renderColumns = (allColumns) => allColumns.map((column2, index2) => /* @__PURE__ */ jsx$1(
|
|
51423
50537
|
StyledTh,
|
|
51424
50538
|
{
|
|
51425
50539
|
scope: "col",
|
|
@@ -51431,7 +50545,7 @@ function TableHead({ columns, compact, sticky }) {
|
|
|
51431
50545
|
},
|
|
51432
50546
|
column2.dataKey ?? column2.key ?? index2
|
|
51433
50547
|
));
|
|
51434
|
-
return /* @__PURE__ */
|
|
50548
|
+
return /* @__PURE__ */ jsx$1("thead", { children: /* @__PURE__ */ jsx$1(StyledHeaderRow, { children: renderColumns(columns) }) });
|
|
51435
50549
|
}
|
|
51436
50550
|
const StyledTableCell = styled.td(
|
|
51437
50551
|
({ align, compact, verticalAlign: verticalAlign2, theme }) => {
|
|
@@ -51454,9 +50568,9 @@ const TableCell = ({ column: column2 = {}, row = {}, cellData = "", colSpan = vo
|
|
|
51454
50568
|
const isCustomCell = Boolean(cellRenderer);
|
|
51455
50569
|
const cellContent = cellFormatter ? cellFormatter({ cellData, column: column2, row }) : cellData;
|
|
51456
50570
|
if (isCustomCell) {
|
|
51457
|
-
return /* @__PURE__ */
|
|
50571
|
+
return /* @__PURE__ */ jsx$1("td", { colSpan, children: cellRenderer ? cellRenderer({ cellData, column: column2, row }) : cellData });
|
|
51458
50572
|
}
|
|
51459
|
-
return /* @__PURE__ */
|
|
50573
|
+
return /* @__PURE__ */ jsx$1(StyledTableCell, { align: column2.align, compact, verticalAlign: row.verticalAlign, children: cellContent });
|
|
51460
50574
|
};
|
|
51461
50575
|
const StyledMessageContainer = styled(Box)(({ theme }) => ({
|
|
51462
50576
|
padding: `${theme.space.x3} 0`,
|
|
@@ -51476,7 +50590,7 @@ const StyledTr = styled.tr(({ rowHovers, rowBorder, theme }) => ({
|
|
|
51476
50590
|
}));
|
|
51477
50591
|
const renderRows$1 = (rows, columns, keyField, rowHovers, noRowsContent, compact, onRowMouseLeave, onRowMouseEnter, rowBorder) => rows.length > 0 ? rows.map((row, rowIndex) => {
|
|
51478
50592
|
const rowKey = row[keyField] !== void 0 ? row[keyField] : rowIndex;
|
|
51479
|
-
return /* @__PURE__ */
|
|
50593
|
+
return /* @__PURE__ */ jsx$1(
|
|
51480
50594
|
TableBodyRow,
|
|
51481
50595
|
{
|
|
51482
50596
|
row,
|
|
@@ -51491,7 +50605,7 @@ const renderRows$1 = (rows, columns, keyField, rowHovers, noRowsContent, compact
|
|
|
51491
50605
|
},
|
|
51492
50606
|
rowKey
|
|
51493
50607
|
);
|
|
51494
|
-
}) : /* @__PURE__ */
|
|
50608
|
+
}) : /* @__PURE__ */ jsx$1(TableMessageContainer, { colSpan: columns.length, children: noRowsContent });
|
|
51495
50609
|
const TableBodyRow = ({
|
|
51496
50610
|
row,
|
|
51497
50611
|
columns,
|
|
@@ -51502,7 +50616,7 @@ const TableBodyRow = ({
|
|
|
51502
50616
|
onMouseEnter,
|
|
51503
50617
|
rowBorder
|
|
51504
50618
|
}) => {
|
|
51505
|
-
const renderAllCells = () => columns.map((column2, index2) => /* @__PURE__ */
|
|
50619
|
+
const renderAllCells = () => columns.map((column2, index2) => /* @__PURE__ */ jsx$1(
|
|
51506
50620
|
TableCell,
|
|
51507
50621
|
{
|
|
51508
50622
|
row,
|
|
@@ -51512,8 +50626,8 @@ const TableBodyRow = ({
|
|
|
51512
50626
|
},
|
|
51513
50627
|
column2.dataKey ?? column2.key ?? index2
|
|
51514
50628
|
));
|
|
51515
|
-
return /* @__PURE__ */
|
|
51516
|
-
/* @__PURE__ */
|
|
50629
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50630
|
+
/* @__PURE__ */ jsx$1(
|
|
51517
50631
|
StyledTr,
|
|
51518
50632
|
{
|
|
51519
50633
|
rowHovers,
|
|
@@ -51522,14 +50636,14 @@ const TableBodyRow = ({
|
|
|
51522
50636
|
onMouseLeave,
|
|
51523
50637
|
onMouseEnter,
|
|
51524
50638
|
rowBorder,
|
|
51525
|
-
children: row.heading ? /* @__PURE__ */
|
|
50639
|
+
children: row.heading ? /* @__PURE__ */ jsx$1(TableCell, { row, colSpan: columns.length, cellData: row.heading, compact }) : renderAllCells()
|
|
51526
50640
|
}
|
|
51527
50641
|
),
|
|
51528
|
-
row.expandedContent && row.expanded && /* @__PURE__ */
|
|
50642
|
+
row.expandedContent && row.expanded && /* @__PURE__ */ jsx$1("tr", { "data-testid": "expanded-table-row", children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, children: row.expandedContent({ row }) }) })
|
|
51529
50643
|
] });
|
|
51530
50644
|
};
|
|
51531
|
-
const TableMessageContainer = ({ colSpan, children }) => /* @__PURE__ */
|
|
51532
|
-
const LoadingContent = ({ colSpan }) => /* @__PURE__ */
|
|
50645
|
+
const TableMessageContainer = ({ colSpan, children }) => /* @__PURE__ */ jsx$1("tr", { "data-testid": "table-message-container", children: /* @__PURE__ */ jsx$1("td", { colSpan, children: /* @__PURE__ */ jsx$1(StyledMessageContainer, { className: "nds-table__no-rows-content", children }) }) });
|
|
50646
|
+
const LoadingContent = ({ colSpan }) => /* @__PURE__ */ jsx$1(TableMessageContainer, { colSpan, children: "Loading..." });
|
|
51533
50647
|
const TableBody = ({
|
|
51534
50648
|
rows,
|
|
51535
50649
|
columns,
|
|
@@ -51541,7 +50655,7 @@ const TableBody = ({
|
|
|
51541
50655
|
onRowMouseLeave,
|
|
51542
50656
|
onRowMouseEnter,
|
|
51543
50657
|
rowBorder
|
|
51544
|
-
}) => /* @__PURE__ */
|
|
50658
|
+
}) => /* @__PURE__ */ jsx$1("tbody", { "data-testid": "table-body", children: !loading ? renderRows$1(
|
|
51545
50659
|
rows,
|
|
51546
50660
|
columns,
|
|
51547
50661
|
keyField,
|
|
@@ -51551,20 +50665,20 @@ const TableBody = ({
|
|
|
51551
50665
|
onRowMouseLeave,
|
|
51552
50666
|
onRowMouseEnter,
|
|
51553
50667
|
rowBorder
|
|
51554
|
-
) : /* @__PURE__ */
|
|
50668
|
+
) : /* @__PURE__ */ jsx$1(LoadingContent, { colSpan: columns.length }) });
|
|
51555
50669
|
const StyledFooterRow = styled.tr(({ theme }) => ({
|
|
51556
50670
|
"&:first-of-type": {
|
|
51557
50671
|
borderTop: `1px solid ${theme.colors.lightGrey}`
|
|
51558
50672
|
}
|
|
51559
50673
|
}));
|
|
51560
|
-
const renderRows = (rows, columns, keyField, loading, compact) => rows.map((row) => /* @__PURE__ */
|
|
50674
|
+
const renderRows = (rows, columns, keyField, loading, compact) => rows.map((row) => /* @__PURE__ */ jsx$1(TableFooterRow, { row, columns, loading, compact }, row[keyField]));
|
|
51561
50675
|
const TableFooterRow = ({ row, columns, loading, compact }) => {
|
|
51562
50676
|
const columnsWithoutControls = columns.filter(
|
|
51563
50677
|
(column2) => column2.dataKey !== "selected" && column2.dataKey !== "expanded"
|
|
51564
50678
|
);
|
|
51565
50679
|
const numberOfControlColumns = columns.length - columnsWithoutControls.length;
|
|
51566
|
-
return /* @__PURE__ */
|
|
51567
|
-
(column2, index2) => index2 === 0 ? /* @__PURE__ */
|
|
50680
|
+
return /* @__PURE__ */ jsx$1(StyledFooterRow, { children: columnsWithoutControls.map(
|
|
50681
|
+
(column2, index2) => index2 === 0 ? /* @__PURE__ */ jsx$1(StyledTh, { scope: "row", colSpan: numberOfControlColumns + 1, compact, children: row[column2.dataKey] }, column2.dataKey) : !loading && /* @__PURE__ */ jsx$1(
|
|
51568
50682
|
TableCell,
|
|
51569
50683
|
{
|
|
51570
50684
|
row,
|
|
@@ -51587,7 +50701,7 @@ function TableFoot({
|
|
|
51587
50701
|
loading = false,
|
|
51588
50702
|
compact = false
|
|
51589
50703
|
}) {
|
|
51590
|
-
return /* @__PURE__ */
|
|
50704
|
+
return /* @__PURE__ */ jsx$1("tfoot", { children: renderRows(rows, columns, keyField, loading, compact) });
|
|
51591
50705
|
}
|
|
51592
50706
|
const StyledTable = styled.table(space, {
|
|
51593
50707
|
borderCollapse: "collapse",
|
|
@@ -51614,9 +50728,9 @@ function BaseTable({
|
|
|
51614
50728
|
rowBorder = false,
|
|
51615
50729
|
...props
|
|
51616
50730
|
}) {
|
|
51617
|
-
return /* @__PURE__ */
|
|
51618
|
-
/* @__PURE__ */
|
|
51619
|
-
/* @__PURE__ */
|
|
50731
|
+
return /* @__PURE__ */ jsxs(StyledTable, { id: id2, className, ...props, children: [
|
|
50732
|
+
/* @__PURE__ */ jsx$1(TableHead, { columns, compact, sticky: stickyHeader }),
|
|
50733
|
+
/* @__PURE__ */ jsx$1(
|
|
51620
50734
|
TableBody,
|
|
51621
50735
|
{
|
|
51622
50736
|
columns,
|
|
@@ -51631,7 +50745,7 @@ function BaseTable({
|
|
|
51631
50745
|
rowBorder
|
|
51632
50746
|
}
|
|
51633
50747
|
),
|
|
51634
|
-
footerRows && /* @__PURE__ */
|
|
50748
|
+
footerRows && /* @__PURE__ */ jsx$1(TableFoot, { columns, rows: footerRows, keyField, loading, compact })
|
|
51635
50749
|
] });
|
|
51636
50750
|
}
|
|
51637
50751
|
const SELECTABLE_COLUMN_DATA_KEY = "selected";
|
|
@@ -51640,7 +50754,7 @@ const selectHeaderFormatter = (onSelectHeader, isHeaderSelected, selectAllAriaLa
|
|
|
51640
50754
|
const checkedAriaLabel = deselectAllAriaLabel || t3("deselect all");
|
|
51641
50755
|
const uncheckedAriaLabel = selectAllAriaLabel || t3("select all");
|
|
51642
50756
|
const ariaLabel = isHeaderSelected ? checkedAriaLabel : uncheckedAriaLabel;
|
|
51643
|
-
return /* @__PURE__ */
|
|
50757
|
+
return /* @__PURE__ */ jsx$1(Checkbox, { checked: isHeaderSelected, onChange: onSelectHeader, "aria-label": ariaLabel });
|
|
51644
50758
|
};
|
|
51645
50759
|
const SelectCell = ({ row, onSelectRow }) => {
|
|
51646
50760
|
const selectRowHandler = () => onSelectRow(row);
|
|
@@ -51649,9 +50763,9 @@ const SelectCell = ({ row, onSelectRow }) => {
|
|
|
51649
50763
|
const checkedAriaLabel = row.selectAriaLabel || t3("select row");
|
|
51650
50764
|
const uncheckedAriaLabel = row.deselectAriaLabel || t3("select row");
|
|
51651
50765
|
const ariaLabel = checked ? checkedAriaLabel : uncheckedAriaLabel;
|
|
51652
|
-
return /* @__PURE__ */
|
|
50766
|
+
return /* @__PURE__ */ jsx$1(Checkbox, { "aria-label": ariaLabel, checked, onChange: selectRowHandler });
|
|
51653
50767
|
};
|
|
51654
|
-
const selectCellRenderer = (onSelectRow) => (props) => /* @__PURE__ */
|
|
50768
|
+
const selectCellRenderer = (onSelectRow) => (props) => /* @__PURE__ */ jsx$1(SelectCell, { onSelectRow, ...props });
|
|
51655
50769
|
const addSelectableControl = ({
|
|
51656
50770
|
columns,
|
|
51657
50771
|
rows,
|
|
@@ -51688,7 +50802,7 @@ const ExpandCell = ({ row, onRowExpansionChange }) => {
|
|
|
51688
50802
|
const { t: t3 } = useTranslation();
|
|
51689
50803
|
const collapseLabel = row.collapseAriaLabel || t3("collapse row");
|
|
51690
50804
|
const expandLabel = row.expandAriaLabel || t3("expand row");
|
|
51691
|
-
return /* @__PURE__ */
|
|
50805
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: row.expandedContent && /* @__PURE__ */ jsx$1(
|
|
51692
50806
|
ControlIcon,
|
|
51693
50807
|
{
|
|
51694
50808
|
icon: row[EXPANDABLE_COLUMN_DATA_KEY] ? "upArrow" : "downArrow",
|
|
@@ -51697,7 +50811,7 @@ const ExpandCell = ({ row, onRowExpansionChange }) => {
|
|
|
51697
50811
|
}
|
|
51698
50812
|
) });
|
|
51699
50813
|
};
|
|
51700
|
-
const expandCellRenderer = (onRowExpansionChange) => (props) => /* @__PURE__ */
|
|
50814
|
+
const expandCellRenderer = (onRowExpansionChange) => (props) => /* @__PURE__ */ jsx$1(ExpandCell, { onRowExpansionChange, ...props });
|
|
51701
50815
|
const addExpandableColumn = ({ columns, onRowExpansionChange }) => {
|
|
51702
50816
|
const expandableColumn = {
|
|
51703
50817
|
dataKey: EXPANDABLE_COLUMN_DATA_KEY,
|
|
@@ -51911,9 +51025,9 @@ const _StatefulTable = class _StatefulTable extends Component {
|
|
|
51911
51025
|
const { paginatedRows, currentPage } = this.state;
|
|
51912
51026
|
const { rowsPerPage, paginationProps, paginationCss } = this.props;
|
|
51913
51027
|
const baseTableProps = pick(this.getControlProps(), ...propNames);
|
|
51914
|
-
return /* @__PURE__ */
|
|
51915
|
-
/* @__PURE__ */
|
|
51916
|
-
rowsPerPage && /* @__PURE__ */
|
|
51028
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51029
|
+
/* @__PURE__ */ jsx$1(BaseTable, { ...baseTableProps }),
|
|
51030
|
+
rowsPerPage && /* @__PURE__ */ jsx$1(
|
|
51917
51031
|
Pagination,
|
|
51918
51032
|
{
|
|
51919
51033
|
pt: "x2",
|
|
@@ -51965,9 +51079,9 @@ function SortingColumnHeader({
|
|
|
51965
51079
|
}) {
|
|
51966
51080
|
const { t: t3 } = useTranslation();
|
|
51967
51081
|
const defaultAriaLabel = ascending ? t3("sort descending") : t3("sort ascending");
|
|
51968
|
-
return /* @__PURE__ */
|
|
51969
|
-
/* @__PURE__ */
|
|
51970
|
-
/* @__PURE__ */
|
|
51082
|
+
return /* @__PURE__ */ jsxs(Flex, { alignItems: "center", children: [
|
|
51083
|
+
/* @__PURE__ */ jsx$1(Text, { mr: "x1", children: label }),
|
|
51084
|
+
/* @__PURE__ */ jsx$1(
|
|
51971
51085
|
ControlIcon,
|
|
51972
51086
|
{
|
|
51973
51087
|
size: "x3",
|
|
@@ -51993,7 +51107,7 @@ function Table({
|
|
|
51993
51107
|
paginationProps,
|
|
51994
51108
|
...props
|
|
51995
51109
|
}) {
|
|
51996
|
-
return hasSelectableRows || rowsPerPage || hasExpandableRows ? /* @__PURE__ */
|
|
51110
|
+
return hasSelectableRows || rowsPerPage || hasExpandableRows ? /* @__PURE__ */ jsx$1(
|
|
51997
51111
|
StatefulTable,
|
|
51998
51112
|
{
|
|
51999
51113
|
hasExpandableRows,
|
|
@@ -52009,7 +51123,7 @@ function Table({
|
|
|
52009
51123
|
paginationProps,
|
|
52010
51124
|
...props
|
|
52011
51125
|
}
|
|
52012
|
-
) : /* @__PURE__ */
|
|
51126
|
+
) : /* @__PURE__ */ jsx$1(BaseTable, { ...props });
|
|
52013
51127
|
}
|
|
52014
51128
|
Table.SortingHeader = SortingColumnHeader;
|
|
52015
51129
|
const numericAlphabeticalSort = (a4, b3, numeric) => String(a4).localeCompare(b3, void 0, { numeric, sensitivity: "base" });
|
|
@@ -52048,7 +51162,7 @@ function SortingTable({
|
|
|
52048
51162
|
const isAscending = sortState.ascending && column2.dataKey === sortState.sortColumn;
|
|
52049
51163
|
return {
|
|
52050
51164
|
...column2,
|
|
52051
|
-
headerFormatter: ({ label, dataKey }) => /* @__PURE__ */
|
|
51165
|
+
headerFormatter: ({ label, dataKey }) => /* @__PURE__ */ jsx$1(
|
|
52052
51166
|
Table.SortingHeader,
|
|
52053
51167
|
{
|
|
52054
51168
|
onChange: () => onSortChange(dataKey),
|
|
@@ -52060,7 +51174,7 @@ function SortingTable({
|
|
|
52060
51174
|
};
|
|
52061
51175
|
};
|
|
52062
51176
|
const columns = incomingColumns.map((column2) => transformColumn(column2));
|
|
52063
|
-
return /* @__PURE__ */
|
|
51177
|
+
return /* @__PURE__ */ jsx$1(Table, { columns, rows, ...props });
|
|
52064
51178
|
}
|
|
52065
51179
|
const StatusIndicatorValues = {
|
|
52066
51180
|
neutral: "neutral",
|
|
@@ -52142,7 +51256,7 @@ const SummaryContextProvider = ({
|
|
|
52142
51256
|
breakpoint,
|
|
52143
51257
|
children
|
|
52144
51258
|
}) => {
|
|
52145
|
-
return /* @__PURE__ */
|
|
51259
|
+
return /* @__PURE__ */ jsx$1(
|
|
52146
51260
|
SummaryContext.Provider,
|
|
52147
51261
|
{
|
|
52148
51262
|
value: {
|
|
@@ -52174,7 +51288,7 @@ const Summary = ({ breakpoint, children, ...rest }) => {
|
|
|
52174
51288
|
const theme = useTheme();
|
|
52175
51289
|
breakpoint || (breakpoint = theme.breakpoints.medium);
|
|
52176
51290
|
const breakpointPx = numberFromDimension(breakpoint);
|
|
52177
|
-
return /* @__PURE__ */
|
|
51291
|
+
return /* @__PURE__ */ jsx$1(SummaryContextProvider, { breakpoint: breakpointPx, children: /* @__PURE__ */ jsx$1(SummaryWrapper, { breakpoint: breakpointPx, ...rest, children }) });
|
|
52178
51292
|
};
|
|
52179
51293
|
const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
52180
51294
|
gap: theme.space.half,
|
|
@@ -52187,8 +51301,8 @@ const SummaryItem = ({ value, status, ...rest }) => {
|
|
|
52187
51301
|
const { breakpoint } = useSummaryContext();
|
|
52188
51302
|
const matches = useMediaQuery(`(max-width: ${breakpoint}px)`);
|
|
52189
51303
|
delete rest["children"];
|
|
52190
|
-
return /* @__PURE__ */
|
|
52191
|
-
/* @__PURE__ */
|
|
51304
|
+
return /* @__PURE__ */ jsxs(SummaryItemWrapper, { breakpoint, ...rest, children: [
|
|
51305
|
+
/* @__PURE__ */ jsx$1(Text, { fontWeight: "medium", fontSize: !matches ? "heading4" : void 0, children: value }),
|
|
52192
51306
|
status
|
|
52193
51307
|
] });
|
|
52194
51308
|
};
|
|
@@ -52205,7 +51319,7 @@ const Divider = styled(Box)(({ theme, breakpoint }) => ({
|
|
|
52205
51319
|
}));
|
|
52206
51320
|
const SummaryDivider = (props) => {
|
|
52207
51321
|
const { breakpoint } = useSummaryContext();
|
|
52208
|
-
return /* @__PURE__ */
|
|
51322
|
+
return /* @__PURE__ */ jsx$1(Divider, { breakpoint: numberFromDimension(breakpoint), ...props });
|
|
52209
51323
|
};
|
|
52210
51324
|
const FocusManager = ({
|
|
52211
51325
|
children,
|
|
@@ -52241,7 +51355,7 @@ const FocusManager = ({
|
|
|
52241
51355
|
prevFocusedIndex.current = focusedIndex;
|
|
52242
51356
|
}
|
|
52243
51357
|
}, [focusedIndex, refs]);
|
|
52244
|
-
return /* @__PURE__ */
|
|
51358
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: children({
|
|
52245
51359
|
focusedIndex,
|
|
52246
51360
|
setFocusedIndex,
|
|
52247
51361
|
handleArrowNavigation
|
|
@@ -52280,10 +51394,10 @@ const Switcher = ({ variant: variant3, selected, onChange: onChange2, ...rest })
|
|
|
52280
51394
|
});
|
|
52281
51395
|
});
|
|
52282
51396
|
};
|
|
52283
|
-
return /* @__PURE__ */
|
|
51397
|
+
return /* @__PURE__ */ jsx$1(Box, { display: "inline-flex", bg: "whiteGrey", borderRadius: "9999px", ...rest, children: /* @__PURE__ */ jsx$1(FocusManager, { refs: optionRefs, defaultFocusedIndex: getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => options(focusedIndex, setFocusedIndex, handleArrowNavigation) }) });
|
|
52284
51398
|
};
|
|
52285
51399
|
const Switch$1 = React__default.forwardRef(({ children, ...rest }, ref) => {
|
|
52286
|
-
return /* @__PURE__ */
|
|
51400
|
+
return /* @__PURE__ */ jsx$1(SwitchButton, { ...rest, ref, children });
|
|
52287
51401
|
});
|
|
52288
51402
|
const SwitchButton = styled.button(
|
|
52289
51403
|
({ selected, theme }) => ({
|
|
@@ -52397,7 +51511,7 @@ const TabButton = styled.button(
|
|
|
52397
51511
|
}
|
|
52398
51512
|
})
|
|
52399
51513
|
);
|
|
52400
|
-
const Tab = React__default.forwardRef(({ label, ...props }, ref) => /* @__PURE__ */
|
|
51514
|
+
const Tab = React__default.forwardRef(({ label, ...props }, ref) => /* @__PURE__ */ jsx$1(TabButton, { role: "tab", type: "button", ref, ...props, children: label }));
|
|
52401
51515
|
const TabContainer = styled(Box)(({ theme }) => ({
|
|
52402
51516
|
display: "flex",
|
|
52403
51517
|
whiteSpace: "nowrap",
|
|
@@ -52467,7 +51581,7 @@ const TabScrollIndicator = ({
|
|
|
52467
51581
|
function preventFocusMovement(event) {
|
|
52468
51582
|
event.preventDefault();
|
|
52469
51583
|
}
|
|
52470
|
-
return /* @__PURE__ */
|
|
51584
|
+
return /* @__PURE__ */ jsx$1(
|
|
52471
51585
|
TabScrollIndicatorButton,
|
|
52472
51586
|
{
|
|
52473
51587
|
...props,
|
|
@@ -52477,7 +51591,7 @@ const TabScrollIndicator = ({
|
|
|
52477
51591
|
onMouseDown: preventFocusMovement,
|
|
52478
51592
|
side,
|
|
52479
51593
|
"aria-label": side === "right" ? rightArrowLabel : leftArrowLabel,
|
|
52480
|
-
children: /* @__PURE__ */
|
|
51594
|
+
children: /* @__PURE__ */ jsx$1(Icon, { icon: side === "right" ? "rightArrow" : "leftArrow" })
|
|
52481
51595
|
}
|
|
52482
51596
|
);
|
|
52483
51597
|
};
|
|
@@ -52588,10 +51702,10 @@ class TabScrollIndicators extends React__default.Component {
|
|
|
52588
51702
|
render() {
|
|
52589
51703
|
const { tabContainerRef, indicatorWidth, children } = this.props;
|
|
52590
51704
|
const { contentHiddenLeft, contentHiddenRight } = this.state;
|
|
52591
|
-
return /* @__PURE__ */
|
|
52592
|
-
/* @__PURE__ */
|
|
52593
|
-
contentHiddenLeft && /* @__PURE__ */
|
|
52594
|
-
contentHiddenRight && /* @__PURE__ */
|
|
51705
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51706
|
+
/* @__PURE__ */ jsxs(TabScrollIndicatorContainer, { width: tabContainerRef.current ? tabContainerRef.current.offsetWidth : 0, children: [
|
|
51707
|
+
contentHiddenLeft && /* @__PURE__ */ jsx$1(TabScrollIndicator, { width: indicatorWidth, side: "left", onClick: this.handleIndicatorClick }),
|
|
51708
|
+
contentHiddenRight && /* @__PURE__ */ jsx$1(TabScrollIndicator, { width: indicatorWidth, side: "right", onClick: this.handleIndicatorClick })
|
|
52595
51709
|
] }),
|
|
52596
51710
|
children({
|
|
52597
51711
|
handleScroll: this.handleScroll,
|
|
@@ -52666,7 +51780,7 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52666
51780
|
if (renderTabContentOnlyWhenSelected && !selected) {
|
|
52667
51781
|
return null;
|
|
52668
51782
|
} else {
|
|
52669
|
-
return /* @__PURE__ */
|
|
51783
|
+
return /* @__PURE__ */ jsx$1("div", { "aria-hidden": !selected, hidden: !selected, selected, children: tab?.props?.children }, tab.key || tab.label);
|
|
52670
51784
|
}
|
|
52671
51785
|
});
|
|
52672
51786
|
return tabContent;
|
|
@@ -52679,8 +51793,8 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52679
51793
|
render() {
|
|
52680
51794
|
const { className } = this.props;
|
|
52681
51795
|
const spaceProps = getSubset(this.props, propTypes$1.space);
|
|
52682
|
-
return /* @__PURE__ */
|
|
52683
|
-
/* @__PURE__ */
|
|
51796
|
+
return /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
|
|
51797
|
+
/* @__PURE__ */ jsx$1(FocusManager, { refs: this.tabRefs, defaultFocusedIndex: this.getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => /* @__PURE__ */ jsx$1(TabScrollIndicators, { tabRefs: this.tabRefs, tabContainerRef: this.tabContainerRef, children: ({ handleScroll: handleScroll2, handleResize }) => /* @__PURE__ */ jsxs(
|
|
52684
51798
|
TabContainer,
|
|
52685
51799
|
{
|
|
52686
51800
|
className,
|
|
@@ -52689,7 +51803,7 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52689
51803
|
ref: this.tabContainerRef,
|
|
52690
51804
|
...spaceProps,
|
|
52691
51805
|
children: [
|
|
52692
|
-
/* @__PURE__ */
|
|
51806
|
+
/* @__PURE__ */ jsx$1(ResizeDetector, { handleWidth: true, onResize: handleResize }),
|
|
52693
51807
|
this.getTabs(setFocusedIndex, focusedIndex, handleArrowNavigation)
|
|
52694
51808
|
]
|
|
52695
51809
|
}
|
|
@@ -52787,8 +51901,8 @@ const Textarea = forwardRef(
|
|
|
52787
51901
|
const componentVariant = useComponentVariant(variant3);
|
|
52788
51902
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
52789
51903
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
52790
|
-
return /* @__PURE__ */
|
|
52791
|
-
/* @__PURE__ */
|
|
51904
|
+
return /* @__PURE__ */ jsxs(Field, { className, ...spaceProps, children: [
|
|
51905
|
+
/* @__PURE__ */ jsx$1(MaybeFieldLabel, { labelText, requirementText, helpText, children: /* @__PURE__ */ jsx$1(
|
|
52792
51906
|
StyledTextarea,
|
|
52793
51907
|
{
|
|
52794
51908
|
"aria-invalid": error2,
|
|
@@ -52806,7 +51920,7 @@ const Textarea = forwardRef(
|
|
|
52806
51920
|
...restProps
|
|
52807
51921
|
}
|
|
52808
51922
|
) }),
|
|
52809
|
-
/* @__PURE__ */
|
|
51923
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
52810
51924
|
] });
|
|
52811
51925
|
}
|
|
52812
51926
|
);
|
|
@@ -52894,7 +52008,7 @@ const TimeRange = forwardRef(
|
|
|
52894
52008
|
});
|
|
52895
52009
|
}
|
|
52896
52010
|
};
|
|
52897
|
-
const startInput = /* @__PURE__ */
|
|
52011
|
+
const startInput = /* @__PURE__ */ jsx$1(
|
|
52898
52012
|
TimePicker,
|
|
52899
52013
|
{
|
|
52900
52014
|
timeFormat,
|
|
@@ -52912,7 +52026,7 @@ const TimeRange = forwardRef(
|
|
|
52912
52026
|
...startTimeProps
|
|
52913
52027
|
}
|
|
52914
52028
|
);
|
|
52915
|
-
const endInput = /* @__PURE__ */
|
|
52029
|
+
const endInput = /* @__PURE__ */ jsx$1(
|
|
52916
52030
|
TimePicker,
|
|
52917
52031
|
{
|
|
52918
52032
|
timeFormat,
|
|
@@ -52930,7 +52044,7 @@ const TimeRange = forwardRef(
|
|
|
52930
52044
|
...endTimeProps
|
|
52931
52045
|
}
|
|
52932
52046
|
);
|
|
52933
|
-
return /* @__PURE__ */
|
|
52047
|
+
return /* @__PURE__ */ jsx$1(
|
|
52934
52048
|
RangeContainer,
|
|
52935
52049
|
{
|
|
52936
52050
|
labelProps: {
|
|
@@ -53021,7 +52135,7 @@ const Toast = ({
|
|
|
53021
52135
|
const handleCloseButtonClick = () => {
|
|
53022
52136
|
hideToast(0);
|
|
53023
52137
|
};
|
|
53024
|
-
return /* @__PURE__ */
|
|
52138
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { initial: false, children: visible && /* @__PURE__ */ jsx$1(
|
|
53025
52139
|
AnimatedBox,
|
|
53026
52140
|
{
|
|
53027
52141
|
onMouseEnter: onMouseIn,
|
|
@@ -53039,7 +52153,7 @@ const Toast = ({
|
|
|
53039
52153
|
boxShadow: "medium",
|
|
53040
52154
|
layout: true,
|
|
53041
52155
|
...toastAnimationConfig,
|
|
53042
|
-
children: /* @__PURE__ */
|
|
52156
|
+
children: /* @__PURE__ */ jsx$1(
|
|
53043
52157
|
Alert,
|
|
53044
52158
|
{
|
|
53045
52159
|
minWidth: "200px",
|
|
@@ -53452,7 +52566,7 @@ const ToastContainer = ({
|
|
|
53452
52566
|
useEffect(() => {
|
|
53453
52567
|
toasts.filter((t3) => t3.visible).filter((_24, i3) => i3 >= maxVisibleToasts).forEach((t3) => n.dismiss(t3.id));
|
|
53454
52568
|
}, [toasts, maxVisibleToasts]);
|
|
53455
|
-
return /* @__PURE__ */
|
|
52569
|
+
return /* @__PURE__ */ jsx$1(
|
|
53456
52570
|
Ie,
|
|
53457
52571
|
{
|
|
53458
52572
|
gutter: gap2 || numberFromDimension(theme.space.x1),
|
|
@@ -53470,23 +52584,23 @@ const CustomToast = ({ isVisible, id: id2, children, ...props }) => {
|
|
|
53470
52584
|
const handleClose = () => {
|
|
53471
52585
|
n.dismiss(id2);
|
|
53472
52586
|
};
|
|
53473
|
-
return /* @__PURE__ */
|
|
52587
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { children: isVisible && /* @__PURE__ */ jsx$1(AnimatedBox, { role: "alert", ...toastAnimationConfig, children: /* @__PURE__ */ jsx$1(Alert, { controlled: true, onClose: handleClose, ...props, children }) }, "notification") });
|
|
53474
52588
|
};
|
|
53475
52589
|
const toast = {
|
|
53476
52590
|
danger: (children, props = {}, options = {}) => n.custom(
|
|
53477
|
-
(t3) => /* @__PURE__ */
|
|
52591
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "danger", ...props, children }),
|
|
53478
52592
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53479
52593
|
),
|
|
53480
52594
|
informative: (children, props = {}, options = {}) => n.custom(
|
|
53481
|
-
(t3) => /* @__PURE__ */
|
|
52595
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "informative", ...props, children }),
|
|
53482
52596
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53483
52597
|
),
|
|
53484
52598
|
success: (children, props = {}, options = {}) => n.custom(
|
|
53485
|
-
(t3) => /* @__PURE__ */
|
|
52599
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "success", ...props, children }),
|
|
53486
52600
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53487
52601
|
),
|
|
53488
52602
|
warning: (children, props = {}, options = {}) => n.custom(
|
|
53489
|
-
(t3) => /* @__PURE__ */
|
|
52603
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "warning", ...props, children }),
|
|
53490
52604
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53491
52605
|
)
|
|
53492
52606
|
};
|
|
@@ -53502,7 +52616,7 @@ const animationConfig = {
|
|
|
53502
52616
|
};
|
|
53503
52617
|
function Switch({ children, disabled, checked }) {
|
|
53504
52618
|
const componentVariant = useComponentVariant();
|
|
53505
|
-
return /* @__PURE__ */
|
|
52619
|
+
return /* @__PURE__ */ jsx$1(
|
|
53506
52620
|
AnimatedBox,
|
|
53507
52621
|
{
|
|
53508
52622
|
marginTop: componentVariant === "touch" ? "x0_25" : "none",
|
|
@@ -53523,7 +52637,7 @@ function Switch({ children, disabled, checked }) {
|
|
|
53523
52637
|
}
|
|
53524
52638
|
const Slider = ({ disabled, children }) => {
|
|
53525
52639
|
const theme = useTheme();
|
|
53526
|
-
return /* @__PURE__ */
|
|
52640
|
+
return /* @__PURE__ */ jsx$1(
|
|
53527
52641
|
motion.div,
|
|
53528
52642
|
{
|
|
53529
52643
|
className: "slider",
|
|
@@ -53565,8 +52679,8 @@ const ToggleInput = styled.input(({ disabled, theme }) => ({
|
|
|
53565
52679
|
}
|
|
53566
52680
|
}));
|
|
53567
52681
|
const ToggleButton = React__default.forwardRef(({ disabled, checked, ...props }, ref) => {
|
|
53568
|
-
return /* @__PURE__ */
|
|
53569
|
-
/* @__PURE__ */
|
|
52682
|
+
return /* @__PURE__ */ jsxs(Switch, { disabled, checked, children: [
|
|
52683
|
+
/* @__PURE__ */ jsx$1(
|
|
53570
52684
|
ToggleInput,
|
|
53571
52685
|
{
|
|
53572
52686
|
type: "checkbox",
|
|
@@ -53578,7 +52692,7 @@ const ToggleButton = React__default.forwardRef(({ disabled, checked, ...props },
|
|
|
53578
52692
|
...props
|
|
53579
52693
|
}
|
|
53580
52694
|
),
|
|
53581
|
-
/* @__PURE__ */
|
|
52695
|
+
/* @__PURE__ */ jsx$1(Slider, { disabled })
|
|
53582
52696
|
] });
|
|
53583
52697
|
});
|
|
53584
52698
|
const Toggle = React__default.forwardRef(
|
|
@@ -53634,7 +52748,7 @@ const Toggle = React__default.forwardRef(
|
|
|
53634
52748
|
console.warn("onChange or onClick is required when checked is set.");
|
|
53635
52749
|
}
|
|
53636
52750
|
}, []);
|
|
53637
|
-
return /* @__PURE__ */
|
|
52751
|
+
return /* @__PURE__ */ jsx$1(Field, { className, alignItems: "flex-start", py: "half", ...spaceProps, children: /* @__PURE__ */ jsx$1(
|
|
53638
52752
|
FieldLabel,
|
|
53639
52753
|
{
|
|
53640
52754
|
htmlFor: id2,
|
|
@@ -53645,8 +52759,8 @@ const Toggle = React__default.forwardRef(
|
|
|
53645
52759
|
disabled,
|
|
53646
52760
|
variant: componentVariant,
|
|
53647
52761
|
"data-testid": dataTestId,
|
|
53648
|
-
children: /* @__PURE__ */
|
|
53649
|
-
/* @__PURE__ */
|
|
52762
|
+
children: /* @__PURE__ */ jsxs(Flex, { flexDirection: "row", alignItems: "center", children: [
|
|
52763
|
+
/* @__PURE__ */ jsx$1(
|
|
53650
52764
|
ToggleButton,
|
|
53651
52765
|
{
|
|
53652
52766
|
id: id2,
|
|
@@ -53660,7 +52774,7 @@ const Toggle = React__default.forwardRef(
|
|
|
53660
52774
|
ref
|
|
53661
52775
|
}
|
|
53662
52776
|
),
|
|
53663
|
-
(onText || offText) && /* @__PURE__ */
|
|
52777
|
+
(onText || offText) && /* @__PURE__ */ jsx$1(Text, { disabled, mb: "none", ml: "x1", "aria-hidden": true, children: _checked ? onText : offText })
|
|
53664
52778
|
] })
|
|
53665
52779
|
}
|
|
53666
52780
|
) });
|
|
@@ -53813,9 +52927,9 @@ const BACK_LINK_MAX_WIDTH = {
|
|
|
53813
52927
|
};
|
|
53814
52928
|
function BackLink({ children, maxWidth: maxWidth2 = BACK_LINK_MAX_WIDTH, ...props }) {
|
|
53815
52929
|
const md = useMediaQuery("phoneLandscape");
|
|
53816
|
-
return /* @__PURE__ */
|
|
53817
|
-
/* @__PURE__ */
|
|
53818
|
-
md && /* @__PURE__ */
|
|
52930
|
+
return /* @__PURE__ */ jsx$1(Box, { as: "li", flex: "1 1", children: /* @__PURE__ */ jsxs(StyledBackLink, { ...props, "data-testid": "topbar-back-link", children: [
|
|
52931
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "arrowBack" }),
|
|
52932
|
+
md && /* @__PURE__ */ jsx$1(Text, { maxWidth: maxWidth2, textOverflow: "ellipsis", overflow: "hidden", fontSize: "small", children })
|
|
53819
52933
|
] }) });
|
|
53820
52934
|
}
|
|
53821
52935
|
const blurVariants = {
|
|
@@ -53858,9 +52972,9 @@ function Menu({
|
|
|
53858
52972
|
}
|
|
53859
52973
|
setShowMenu((s4) => !s4);
|
|
53860
52974
|
}
|
|
53861
|
-
return /* @__PURE__ */
|
|
53862
|
-
/* @__PURE__ */
|
|
53863
|
-
/* @__PURE__ */
|
|
52975
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "flex-end", as: "li", color: "black", flex: "1 1", children: [
|
|
52976
|
+
/* @__PURE__ */ jsx$1(MenuButton, { onClick: toggle, "data-testid": "topbar-menu-button", children: /* @__PURE__ */ jsx$1(Icon, { size: "x3", color: "midGrey", icon: showMenu ? "close" : "apps" }) }),
|
|
52977
|
+
/* @__PURE__ */ jsx$1(AnimatePresence, { children: showMenu && /* @__PURE__ */ jsx$1(
|
|
53864
52978
|
Overlay,
|
|
53865
52979
|
{
|
|
53866
52980
|
"data-testid": "topbar-menu-overlay",
|
|
@@ -53876,13 +52990,13 @@ function Menu({
|
|
|
53876
52990
|
}
|
|
53877
52991
|
},
|
|
53878
52992
|
onDismiss: close2,
|
|
53879
|
-
children: /* @__PURE__ */
|
|
52993
|
+
children: /* @__PURE__ */ jsx$1(
|
|
53880
52994
|
DialogContent,
|
|
53881
52995
|
{
|
|
53882
52996
|
"data-testid": "topbar-menu",
|
|
53883
52997
|
"data-visible": animationComplete ? true : void 0,
|
|
53884
52998
|
"aria-label": props["aria-label"] ?? t3("menu options"),
|
|
53885
|
-
children: /* @__PURE__ */
|
|
52999
|
+
children: /* @__PURE__ */ jsx$1(MenuItemList, { children })
|
|
53886
53000
|
}
|
|
53887
53001
|
)
|
|
53888
53002
|
}
|
|
@@ -53912,7 +53026,7 @@ const fadeInVariants = {
|
|
|
53912
53026
|
}
|
|
53913
53027
|
};
|
|
53914
53028
|
function MenuItem({ children }) {
|
|
53915
|
-
return /* @__PURE__ */
|
|
53029
|
+
return /* @__PURE__ */ jsx$1(
|
|
53916
53030
|
StyledMenuItem,
|
|
53917
53031
|
{
|
|
53918
53032
|
"data-testid": "topbar-menu-item",
|
|
@@ -53926,19 +53040,19 @@ function MenuItem({ children }) {
|
|
|
53926
53040
|
}
|
|
53927
53041
|
const MotionText = motion(Text);
|
|
53928
53042
|
function MenuItemLink({ description, title, icon, ...props }) {
|
|
53929
|
-
return /* @__PURE__ */
|
|
53930
|
-
/* @__PURE__ */
|
|
53931
|
-
/* @__PURE__ */
|
|
53932
|
-
/* @__PURE__ */
|
|
53933
|
-
/* @__PURE__ */
|
|
53043
|
+
return /* @__PURE__ */ jsxs(TileLink, { ...props, children: [
|
|
53044
|
+
/* @__PURE__ */ jsx$1(Icon, { icon, size: "x3" }),
|
|
53045
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", justifyContent: "center", children: [
|
|
53046
|
+
/* @__PURE__ */ jsx$1(MotionText, { fontWeight: "medium", fontSize: "md", lineHeight: "base", children: title }),
|
|
53047
|
+
/* @__PURE__ */ jsx$1(MotionText, { fontSize: "xs", children: description })
|
|
53934
53048
|
] })
|
|
53935
53049
|
] });
|
|
53936
53050
|
}
|
|
53937
53051
|
function PageTitle({ children, ...props }) {
|
|
53938
|
-
return /* @__PURE__ */
|
|
53052
|
+
return /* @__PURE__ */ jsx$1(StyledPageTitle, { "data-testid": "topbar-page-title", ...props, children });
|
|
53939
53053
|
}
|
|
53940
53054
|
function Root({ children }) {
|
|
53941
|
-
return /* @__PURE__ */
|
|
53055
|
+
return /* @__PURE__ */ jsx$1(Header, { children: /* @__PURE__ */ jsx$1(Navigation, { children: /* @__PURE__ */ jsx$1(NavigationItemsList, { children }) }) });
|
|
53942
53056
|
}
|
|
53943
53057
|
const TopBar = {
|
|
53944
53058
|
Root,
|
|
@@ -53961,9 +53075,9 @@ function MaybeTooltip({
|
|
|
53961
53075
|
children
|
|
53962
53076
|
}) {
|
|
53963
53077
|
if (!showTooltip) {
|
|
53964
|
-
return /* @__PURE__ */
|
|
53078
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
53965
53079
|
}
|
|
53966
|
-
return /* @__PURE__ */
|
|
53080
|
+
return /* @__PURE__ */ jsx$1(
|
|
53967
53081
|
Tooltip,
|
|
53968
53082
|
{
|
|
53969
53083
|
tooltip,
|
|
@@ -53992,7 +53106,7 @@ const TruncatedTextFillWidth = ({
|
|
|
53992
53106
|
setHasOverflowText(true);
|
|
53993
53107
|
}
|
|
53994
53108
|
};
|
|
53995
|
-
return /* @__PURE__ */
|
|
53109
|
+
return /* @__PURE__ */ jsx$1(MaybeTooltip, { showTooltip: hasTooltip, tooltip: children, defaultOpen: true, ...tooltipProps, children: /* @__PURE__ */ jsx$1(
|
|
53996
53110
|
Text,
|
|
53997
53111
|
{
|
|
53998
53112
|
as: element.type,
|
|
@@ -54023,7 +53137,7 @@ const TruncatedTextMaxCharacters = ({
|
|
|
54023
53137
|
const requiresTruncation = innerText.length > maxCharacters;
|
|
54024
53138
|
const truncatedText = requiresTruncation ? innerText.slice(0, maxCharacters) + indicator : innerText;
|
|
54025
53139
|
const hasTooltip = showTooltip && requiresTruncation;
|
|
54026
|
-
return /* @__PURE__ */
|
|
53140
|
+
return /* @__PURE__ */ jsx$1(MaybeTooltip, { showTooltip: hasTooltip, tooltip: innerText, ...tooltipProps, children: /* @__PURE__ */ jsx$1(
|
|
54027
53141
|
Text,
|
|
54028
53142
|
{
|
|
54029
53143
|
as: element.type,
|
|
@@ -54038,7 +53152,7 @@ const TruncatedTextMaxCharacters = ({
|
|
|
54038
53152
|
};
|
|
54039
53153
|
const TruncatedText = ({
|
|
54040
53154
|
indicator = "...",
|
|
54041
|
-
element = /* @__PURE__ */
|
|
53155
|
+
element = /* @__PURE__ */ jsx$1(Text, {}),
|
|
54042
53156
|
maxCharacters = 20,
|
|
54043
53157
|
fullWidth = false,
|
|
54044
53158
|
showTooltip = true,
|
|
@@ -54054,7 +53168,7 @@ const TruncatedText = ({
|
|
|
54054
53168
|
"data-testid": dataTestId,
|
|
54055
53169
|
...rest
|
|
54056
53170
|
};
|
|
54057
|
-
return fullWidth ? /* @__PURE__ */
|
|
53171
|
+
return fullWidth ? /* @__PURE__ */ jsx$1(TruncatedTextFillWidth, { ...props, children }) : /* @__PURE__ */ jsx$1(TruncatedTextMaxCharacters, { ...props, children });
|
|
54058
53172
|
};
|
|
54059
53173
|
export {
|
|
54060
53174
|
ALL_NDS_LOCALES,
|