@nulogy/components 14.7.2 → 14.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2732 -350
- package/dist/main.module.js +2731 -353
- package/dist/src/Alert/Alert.d.ts +1 -5
- package/dist/src/AppTag/AppTag.d.ts +2 -2
- package/dist/src/AppTag/constants.d.ts +0 -3
- package/dist/src/AppTag/index.d.ts +0 -1
- package/dist/src/BrandedNavBar/BrandLogoContainer.d.ts +2 -0
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +2 -0
- package/dist/src/BrandedNavBar/EnvironmentBanner.d.ts +2 -0
- package/dist/src/BrandedNavBar/MenuTrigger.d.ts +3 -0
- package/dist/src/BrandedNavBar/MenuTriggerButton.d.ts +1 -0
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -0
- package/dist/src/BrandedNavBar/NavBar.d.ts +2 -0
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +3 -5
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.d.ts +1 -0
- package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +1 -0
- package/dist/src/BrandedNavBar/SmallNavBar.d.ts +3 -0
- package/dist/src/BrandedNavBar/SubMenuTrigger.d.ts +1 -0
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.d.ts +1 -0
- package/dist/src/BrandedNavBar/TriggerFunctionProps.d.ts +1 -0
- package/dist/src/BrandedNavBar/isValidMenuItem.d.ts +1 -0
- package/dist/src/BrandedNavBar/renderSubMenuItems.d.ts +1 -0
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +1 -5
- package/dist/src/Card/CardSet.d.ts +1 -5
- package/dist/src/Decorations/index.d.ts +3 -0
- package/dist/src/Flex/Flex.d.ts +4 -6
- package/dist/src/Layout/Header.d.ts +1 -1
- package/dist/src/Link/Link.d.ts +2 -2
- package/dist/src/Navigation/Navigation.d.ts +16 -0
- package/dist/src/Navigation/components/AppSwitcher/NulogyAppSwitcher.d.ts +14 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +4 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/Link.d.ts +8 -0
- package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +56 -0
- package/dist/src/Navigation/components/DesktopNav/DesktopNav.d.ts +5 -0
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +8 -0
- package/dist/src/Navigation/components/MenuSubItem/MenuSubItem.d.ts +8 -0
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +8 -0
- package/dist/src/Navigation/components/MobileNav/MobileNav.d.ts +5 -0
- package/dist/src/Navigation/components/MobileNav/parts/MobileMenuItem.d.ts +9 -0
- package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +18 -0
- package/dist/src/Navigation/components/NulogyLogo/NulogyLogo.d.ts +6 -0
- package/dist/src/Navigation/components/NulogyLogo/SvgNulogyLogo.d.ts +2 -0
- package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +14 -0
- package/dist/src/Navigation/components/UserMenu/parts/Header.d.ts +7 -0
- package/dist/src/Navigation/components/UserMenu/parts/Item.d.ts +10 -0
- package/dist/src/Navigation/components/UserMenu/parts/MobileItem.d.ts +6 -0
- package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +10 -0
- package/dist/src/Navigation/components/shared/NavigationLogo.d.ts +8 -0
- package/dist/src/Navigation/components/shared/NavigationLogoLink.d.ts +7 -0
- package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +7 -0
- package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +12 -0
- package/dist/src/Navigation/components/shared/components.d.ts +17 -0
- package/dist/src/Navigation/components/shared/constants.d.ts +6 -0
- package/dist/src/Navigation/components/shared/disableHoverEvents.d.ts +6 -0
- package/dist/src/Navigation/components/utils/getNavigationBarItems.d.ts +2 -0
- package/dist/src/Navigation/hooks/useResponsiveMenu.d.ts +12 -0
- package/dist/src/Navigation/index.d.ts +7 -0
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +12 -0
- package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +22 -0
- package/dist/src/Navigation/stories/Navigation.mobileVisibility.story.d.ts +13 -0
- package/dist/src/Navigation/stories/Navigation.navigationMenus.story.d.ts +13 -0
- package/dist/src/Navigation/stories/Navigation.navigationMenus.subMenus.story.d.ts +11 -0
- package/dist/src/Navigation/stories/Navigation.story.d.ts +10 -0
- package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +13 -0
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo2.d.ts +2 -0
- package/dist/src/Navigation/stories/fixtures/logos/CustomLogo3.d.ts +2 -0
- package/dist/src/Navigation/stories/fixtures/logos/Customlogo1.d.ts +2 -0
- package/dist/src/Navigation/types.d.ts +87 -0
- package/dist/src/Overlay/Overlay.d.ts +1 -5
- package/dist/src/Primitives/index.d.ts +5 -0
- package/dist/src/StyledProps/index.d.ts +7 -1
- package/dist/src/Tooltip2/index.d.ts +10 -0
- package/dist/src/index.d.ts +4 -1
- package/dist/src/types/NulogyApp.d.ts +3 -0
- package/dist/src/utils/story/resizable.d.ts +4 -4
- package/dist/src/utils/testing/useConditionalAutoClick.d.ts +60 -0
- package/package.json +3 -1
- package/dist/src/AppTag/components/Tooltip.d.ts +0 -8
package/dist/main.module.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { createContext, useContext, useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, forwardRef, createElement, cloneElement, Children, isValidElement, Fragment, useReducer, Component, PureComponent, useImperativeHandle } from 'react';
|
|
3
|
-
import styled, { useTheme, keyframes as keyframes$3, createGlobalStyle, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
3
|
+
import styled, { useTheme, keyframes as keyframes$3, createGlobalStyle, ThemeContext as ThemeContext$1, styled as styled$1, StyleSheetManager, ThemeProvider } from 'styled-components';
|
|
4
4
|
import assign from 'object-assign';
|
|
5
5
|
import icons from '@nulogy/icons';
|
|
6
|
-
import _extends$
|
|
6
|
+
import _extends$e from '@babel/runtime/helpers/extends';
|
|
7
7
|
import _assertThisInitialized$1 from '@babel/runtime/helpers/assertThisInitialized';
|
|
8
8
|
import _inheritsLoose$2 from '@babel/runtime/helpers/inheritsLoose';
|
|
9
9
|
import isEqual$2 from 'react-fast-compare';
|
|
@@ -25,7 +25,7 @@ import '@babel/runtime/helpers/objectWithoutProperties';
|
|
|
25
25
|
import '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
26
26
|
import PropTypes, { node, bool, oneOfType, object, func, string, arrayOf, any } from 'prop-types';
|
|
27
27
|
import _objectWithoutPropertiesLoose$3 from '@babel/runtime/helpers/objectWithoutPropertiesLoose';
|
|
28
|
-
import
|
|
28
|
+
import equal from 'deep-equal';
|
|
29
29
|
import createContext$1 from '@hypnosphi/create-react-context';
|
|
30
30
|
import ReactResizeDetector from 'react-resize-detector';
|
|
31
31
|
import ReactDatePicker, { registerLocale } from 'react-datepicker';
|
|
@@ -9211,7 +9211,7 @@ var shadow = system({
|
|
|
9211
9211
|
}
|
|
9212
9212
|
});
|
|
9213
9213
|
|
|
9214
|
-
function _extends$
|
|
9214
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
9215
9215
|
|
|
9216
9216
|
// based on https://github.com/developit/dlv
|
|
9217
9217
|
var get$1 = function get(obj, key, def, p, undef) {
|
|
@@ -9342,7 +9342,7 @@ var positiveOrNegative = function positiveOrNegative(scale, value) {
|
|
|
9342
9342
|
var transforms = ['margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'top', 'bottom', 'left', 'right'].reduce(function (acc, curr) {
|
|
9343
9343
|
var _extends2;
|
|
9344
9344
|
|
|
9345
|
-
return _extends$
|
|
9345
|
+
return _extends$d({}, acc, (_extends2 = {}, _extends2[curr] = positiveOrNegative, _extends2));
|
|
9346
9346
|
}, {});
|
|
9347
9347
|
var responsive = function responsive(styles) {
|
|
9348
9348
|
return function (theme) {
|
|
@@ -9384,7 +9384,7 @@ var css$3 = function css(args) {
|
|
|
9384
9384
|
props = {};
|
|
9385
9385
|
}
|
|
9386
9386
|
|
|
9387
|
-
var theme = _extends$
|
|
9387
|
+
var theme = _extends$d({}, defaultTheme$1, {}, props.theme || props);
|
|
9388
9388
|
|
|
9389
9389
|
var result = {};
|
|
9390
9390
|
var obj = typeof args === 'function' ? args(theme) : args;
|
|
@@ -9396,7 +9396,7 @@ var css$3 = function css(args) {
|
|
|
9396
9396
|
|
|
9397
9397
|
if (key === 'variant') {
|
|
9398
9398
|
var variant = css(get$1(theme, val))(theme);
|
|
9399
|
-
result = _extends$
|
|
9399
|
+
result = _extends$d({}, result, {}, variant);
|
|
9400
9400
|
continue;
|
|
9401
9401
|
}
|
|
9402
9402
|
|
|
@@ -9529,6 +9529,20 @@ var zIndex = position.zIndex,
|
|
|
9529
9529
|
bottom$1 = position.bottom,
|
|
9530
9530
|
left$1 = position.left;
|
|
9531
9531
|
|
|
9532
|
+
var gap = system({
|
|
9533
|
+
gap: {
|
|
9534
|
+
property: "gap",
|
|
9535
|
+
scale: "space"
|
|
9536
|
+
},
|
|
9537
|
+
rowGap: {
|
|
9538
|
+
property: "rowGap",
|
|
9539
|
+
scale: "space"
|
|
9540
|
+
},
|
|
9541
|
+
columnGap: {
|
|
9542
|
+
property: "columnGap",
|
|
9543
|
+
scale: "space"
|
|
9544
|
+
}
|
|
9545
|
+
});
|
|
9532
9546
|
function getStyledPropNames() {
|
|
9533
9547
|
for (var _len = arguments.length, styleFns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9534
9548
|
styleFns[_key] = arguments[_key];
|
|
@@ -9557,7 +9571,7 @@ var variant = function variant(variants) {
|
|
|
9557
9571
|
};
|
|
9558
9572
|
var addStyledProps = compose(
|
|
9559
9573
|
// After
|
|
9560
|
-
space, margin, padding, width, fontSize, color, fontFamily, textAlign, lineHeight, fontWeight, fontStyle, letterSpacing, display, maxWidth, minWidth, height, maxHeight, minHeight, size$4, verticalAlign, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexBasis, flexDirection, flex, flexbox, justifySelf, alignSelf, order$1, grid, gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea, border, borderTop, borderRight, borderBottom, borderLeft, border, borderColor, borderRadius$1, shadow, opacity, overflow, position, zIndex, top$1, right$1, bottom$1, left$1, textStyle, colorStyle, buttonStyle, background, backgroundSize, backgroundRepeat, backgroundPosition, backgroundImage, layout, flexGrow, typography, system({
|
|
9574
|
+
space, margin, padding, width, fontSize, color, fontFamily, textAlign, lineHeight, fontWeight, fontStyle, letterSpacing, display, maxWidth, minWidth, height, maxHeight, minHeight, size$4, verticalAlign, alignItems, alignContent, justifyItems, justifyContent, flexWrap, flexBasis, flexDirection, flex, flexbox, justifySelf, alignSelf, order$1, grid, gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea, border, borderTop, borderRight, borderBottom, borderLeft, border, borderColor, borderRadius$1, shadow, opacity, overflow, position, zIndex, top$1, right$1, bottom$1, left$1, textStyle, colorStyle, buttonStyle, background, backgroundSize, backgroundRepeat, backgroundPosition, backgroundImage, layout, flexGrow, typography, gap, system({
|
|
9561
9575
|
visibility: true,
|
|
9562
9576
|
transition: true,
|
|
9563
9577
|
transform: true,
|
|
@@ -9760,20 +9774,6 @@ var InputIcon = styled(Icon).withConfig({
|
|
|
9760
9774
|
};
|
|
9761
9775
|
}, position);
|
|
9762
9776
|
|
|
9763
|
-
var gap = system({
|
|
9764
|
-
gap: {
|
|
9765
|
-
property: "gap",
|
|
9766
|
-
scale: "space"
|
|
9767
|
-
},
|
|
9768
|
-
rowGap: {
|
|
9769
|
-
property: "rowGap",
|
|
9770
|
-
scale: "space"
|
|
9771
|
-
},
|
|
9772
|
-
columnGap: {
|
|
9773
|
-
property: "columnGap",
|
|
9774
|
-
scale: "space"
|
|
9775
|
-
}
|
|
9776
|
-
});
|
|
9777
9777
|
var Flex = styled(Box).withConfig({
|
|
9778
9778
|
displayName: "Flex",
|
|
9779
9779
|
componentId: "sc-1whlq91-0"
|
|
@@ -10848,7 +10848,7 @@ var WrapperButton$2 = styled.button.withConfig({
|
|
|
10848
10848
|
}
|
|
10849
10849
|
});
|
|
10850
10850
|
}, space);
|
|
10851
|
-
var Button = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
10851
|
+
var Button$1 = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
10852
10852
|
var children = _a.children,
|
|
10853
10853
|
_a$iconSide = _a.iconSide,
|
|
10854
10854
|
iconSide = _a$iconSide === void 0 ? "right" : _a$iconSide,
|
|
@@ -10878,8 +10878,8 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
10878
10878
|
}));
|
|
10879
10879
|
});
|
|
10880
10880
|
|
|
10881
|
-
function _extends$
|
|
10882
|
-
_extends$
|
|
10881
|
+
function _extends$c() {
|
|
10882
|
+
_extends$c = Object.assign ? Object.assign.bind() : function (target) {
|
|
10883
10883
|
for (var i = 1; i < arguments.length; i++) {
|
|
10884
10884
|
var source = arguments[i];
|
|
10885
10885
|
for (var key in source) {
|
|
@@ -10890,7 +10890,7 @@ function _extends$b() {
|
|
|
10890
10890
|
}
|
|
10891
10891
|
return target;
|
|
10892
10892
|
};
|
|
10893
|
-
return _extends$
|
|
10893
|
+
return _extends$c.apply(this, arguments);
|
|
10894
10894
|
}
|
|
10895
10895
|
|
|
10896
10896
|
function _assertThisInitialized(self) {
|
|
@@ -11820,7 +11820,7 @@ function guard(lowerBoundary, upperBoundary, value) {
|
|
|
11820
11820
|
function darken(amount, color) {
|
|
11821
11821
|
if (color === 'transparent') return color;
|
|
11822
11822
|
var hslColor = parseToHsl(color);
|
|
11823
|
-
return toColorString(_extends$
|
|
11823
|
+
return toColorString(_extends$c({}, hslColor, {
|
|
11824
11824
|
lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
|
|
11825
11825
|
}));
|
|
11826
11826
|
} // prettier-ignore
|
|
@@ -11865,7 +11865,7 @@ function transparentize(amount, color) {
|
|
|
11865
11865
|
var parsedColor = parseToRgb(color);
|
|
11866
11866
|
var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
|
|
11867
11867
|
|
|
11868
|
-
var colorWithAlpha = _extends$
|
|
11868
|
+
var colorWithAlpha = _extends$c({}, parsedColor, {
|
|
11869
11869
|
alpha: guard(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
|
|
11870
11870
|
});
|
|
11871
11871
|
|
|
@@ -11879,7 +11879,7 @@ curry
|
|
|
11879
11879
|
/* ::<number | string, string, string> */
|
|
11880
11880
|
(transparentize);
|
|
11881
11881
|
|
|
11882
|
-
var PrimaryButton = styled(Button).withConfig({
|
|
11882
|
+
var PrimaryButton = styled(Button$1).withConfig({
|
|
11883
11883
|
displayName: "PrimaryButton",
|
|
11884
11884
|
componentId: "sc-1btjl04-0"
|
|
11885
11885
|
})(function (_ref) {
|
|
@@ -11905,7 +11905,7 @@ var PrimaryButton = styled(Button).withConfig({
|
|
|
11905
11905
|
};
|
|
11906
11906
|
});
|
|
11907
11907
|
|
|
11908
|
-
var DangerButton = styled(Button).withConfig({
|
|
11908
|
+
var DangerButton = styled(Button$1).withConfig({
|
|
11909
11909
|
displayName: "DangerButton",
|
|
11910
11910
|
componentId: "sc-wmt3mt-0"
|
|
11911
11911
|
})(function (_ref) {
|
|
@@ -11931,7 +11931,7 @@ var DangerButton = styled(Button).withConfig({
|
|
|
11931
11931
|
};
|
|
11932
11932
|
});
|
|
11933
11933
|
|
|
11934
|
-
var QuietButton = styled(Button).withConfig({
|
|
11934
|
+
var QuietButton = styled(Button$1).withConfig({
|
|
11935
11935
|
displayName: "QuietButton",
|
|
11936
11936
|
componentId: "sc-9hn6d3-0"
|
|
11937
11937
|
})(function (_ref) {
|
|
@@ -14444,72 +14444,28 @@ var APP_ABBREVIATIONS = {
|
|
|
14444
14444
|
"supplier-collaboration": "SC",
|
|
14445
14445
|
"digital-quality-inspection": "DQI",
|
|
14446
14446
|
"shop-floor": "SF",
|
|
14447
|
-
"smart-factory": "SFac"
|
|
14447
|
+
"smart-factory": "SFac",
|
|
14448
|
+
connections: "CN",
|
|
14449
|
+
data: "Data"
|
|
14448
14450
|
};
|
|
14449
14451
|
var APP_DISPLAY_NAMES = {
|
|
14450
14452
|
"production-scheduling": "Production Scheduling",
|
|
14451
14453
|
"supplier-collaboration": "Supplier Collaboration",
|
|
14452
14454
|
"digital-quality-inspection": "Digital Quality Inspection",
|
|
14453
14455
|
"shop-floor": "Shop Floor",
|
|
14454
|
-
"smart-factory": "Smart Factory"
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
active: {
|
|
14458
|
-
primary: "darkGrey",
|
|
14459
|
-
secondary: "lightGrey"
|
|
14460
|
-
},
|
|
14461
|
-
inactive: {
|
|
14462
|
-
primary: "midGrey",
|
|
14463
|
-
secondary: "whiteGrey"
|
|
14464
|
-
},
|
|
14465
|
-
interactive: {
|
|
14466
|
-
primary: "blue",
|
|
14467
|
-
secondary: "lightBlue"
|
|
14468
|
-
}
|
|
14456
|
+
"smart-factory": "Smart Factory",
|
|
14457
|
+
connections: "Connections",
|
|
14458
|
+
data: "Data"
|
|
14469
14459
|
};
|
|
14470
14460
|
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
componentId: "sc-a1yhff-0"
|
|
14474
|
-
})(function (_ref) {
|
|
14475
|
-
var theme = _ref.theme,
|
|
14476
|
-
$type = _ref.$type;
|
|
14477
|
-
var color = theme.colors[appTagColors[$type].primary];
|
|
14478
|
-
return {
|
|
14479
|
-
background: color,
|
|
14480
|
-
display: "inline-block",
|
|
14481
|
-
padding: theme.space.half,
|
|
14482
|
-
borderRadius: theme.radii.circle,
|
|
14483
|
-
lineHeight: 0
|
|
14484
|
-
};
|
|
14485
|
-
});
|
|
14486
|
-
|
|
14487
|
-
function NulogyLogo$1(_a) {
|
|
14488
|
-
var _a$width = _a.width,
|
|
14489
|
-
width = _a$width === void 0 ? 8 : _a$width,
|
|
14490
|
-
_a$height = _a.height,
|
|
14491
|
-
height = _a$height === void 0 ? 8 : _a$height,
|
|
14492
|
-
props = __rest(_a, ["width", "height"]);
|
|
14493
|
-
return /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
14494
|
-
width: width,
|
|
14495
|
-
height: height,
|
|
14496
|
-
viewBox: "0 0 8 8",
|
|
14497
|
-
fill: "none",
|
|
14498
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
14499
|
-
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
14500
|
-
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",
|
|
14501
|
-
fill: "white"
|
|
14502
|
-
}));
|
|
14503
|
-
}
|
|
14504
|
-
|
|
14505
|
-
function _extends$a() {
|
|
14506
|
-
return _extends$a = Object.assign ? Object.assign.bind() : function (n) {
|
|
14461
|
+
function _extends$b() {
|
|
14462
|
+
return _extends$b = Object.assign ? Object.assign.bind() : function (n) {
|
|
14507
14463
|
for (var e = 1; e < arguments.length; e++) {
|
|
14508
14464
|
var t = arguments[e];
|
|
14509
14465
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14510
14466
|
}
|
|
14511
14467
|
return n;
|
|
14512
|
-
}, _extends$
|
|
14468
|
+
}, _extends$b.apply(null, arguments);
|
|
14513
14469
|
}
|
|
14514
14470
|
|
|
14515
14471
|
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
|
|
@@ -14639,34 +14595,34 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
|
|
|
14639
14595
|
return createScope1;
|
|
14640
14596
|
}
|
|
14641
14597
|
|
|
14642
|
-
function _extends$
|
|
14643
|
-
return _extends$
|
|
14598
|
+
function _extends$a() {
|
|
14599
|
+
return _extends$a = Object.assign ? Object.assign.bind() : function (n) {
|
|
14644
14600
|
for (var e = 1; e < arguments.length; e++) {
|
|
14645
14601
|
var t = arguments[e];
|
|
14646
14602
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14647
14603
|
}
|
|
14648
14604
|
return n;
|
|
14649
|
-
}, _extends$
|
|
14605
|
+
}, _extends$a.apply(null, arguments);
|
|
14650
14606
|
}
|
|
14651
14607
|
|
|
14652
|
-
function _extends$
|
|
14653
|
-
return _extends$
|
|
14608
|
+
function _extends$9() {
|
|
14609
|
+
return _extends$9 = Object.assign ? Object.assign.bind() : function (n) {
|
|
14654
14610
|
for (var e = 1; e < arguments.length; e++) {
|
|
14655
14611
|
var t = arguments[e];
|
|
14656
14612
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14657
14613
|
}
|
|
14658
14614
|
return n;
|
|
14659
|
-
}, _extends$
|
|
14615
|
+
}, _extends$9.apply(null, arguments);
|
|
14660
14616
|
}
|
|
14661
14617
|
|
|
14662
|
-
function _extends$
|
|
14663
|
-
return _extends$
|
|
14618
|
+
function _extends$8() {
|
|
14619
|
+
return _extends$8 = Object.assign ? Object.assign.bind() : function (n) {
|
|
14664
14620
|
for (var e = 1; e < arguments.length; e++) {
|
|
14665
14621
|
var t = arguments[e];
|
|
14666
14622
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
14667
14623
|
}
|
|
14668
14624
|
return n;
|
|
14669
|
-
}, _extends$
|
|
14625
|
+
}, _extends$8.apply(null, arguments);
|
|
14670
14626
|
}
|
|
14671
14627
|
|
|
14672
14628
|
/* -------------------------------------------------------------------------------------------------
|
|
@@ -14686,11 +14642,11 @@ function _extends$7() {
|
|
|
14686
14642
|
return /*#__PURE__*/ isValidElement(newElement) ? newElement.props.children : null;
|
|
14687
14643
|
} else return child;
|
|
14688
14644
|
});
|
|
14689
|
-
return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
14645
|
+
return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$8({}, slotProps, {
|
|
14690
14646
|
ref: forwardedRef
|
|
14691
14647
|
}), /*#__PURE__*/ isValidElement(newElement) ? /*#__PURE__*/ cloneElement(newElement, undefined, newChildren) : null);
|
|
14692
14648
|
}
|
|
14693
|
-
return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
14649
|
+
return /*#__PURE__*/ createElement($5e63c961fc1ce211$var$SlotClone, _extends$8({}, slotProps, {
|
|
14694
14650
|
ref: forwardedRef
|
|
14695
14651
|
}), children);
|
|
14696
14652
|
});
|
|
@@ -14774,7 +14730,7 @@ const $8927f6f2acc4f386$var$NODES = [
|
|
|
14774
14730
|
useEffect(()=>{
|
|
14775
14731
|
window[Symbol.for('radix-ui')] = true;
|
|
14776
14732
|
}, []);
|
|
14777
|
-
return /*#__PURE__*/ createElement(Comp, _extends$
|
|
14733
|
+
return /*#__PURE__*/ createElement(Comp, _extends$9({}, primitiveProps, {
|
|
14778
14734
|
ref: forwardedRef
|
|
14779
14735
|
}));
|
|
14780
14736
|
});
|
|
@@ -14958,7 +14914,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ forwardRef((prop
|
|
|
14958
14914
|
return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
|
|
14959
14915
|
;
|
|
14960
14916
|
}, []);
|
|
14961
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
14917
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$a({}, layerProps, {
|
|
14962
14918
|
ref: composedRefs,
|
|
14963
14919
|
style: {
|
|
14964
14920
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
|
|
@@ -15110,14 +15066,14 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
|
15110
15066
|
return deterministicId || (id ? `radix-${id}` : '');
|
|
15111
15067
|
}
|
|
15112
15068
|
|
|
15113
|
-
function _extends$
|
|
15114
|
-
return _extends$
|
|
15069
|
+
function _extends$7() {
|
|
15070
|
+
return _extends$7 = Object.assign ? Object.assign.bind() : function (n) {
|
|
15115
15071
|
for (var e = 1; e < arguments.length; e++) {
|
|
15116
15072
|
var t = arguments[e];
|
|
15117
15073
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
15118
15074
|
}
|
|
15119
15075
|
return n;
|
|
15120
|
-
}, _extends$
|
|
15076
|
+
}, _extends$7.apply(null, arguments);
|
|
15121
15077
|
}
|
|
15122
15078
|
|
|
15123
15079
|
/**
|
|
@@ -17523,19 +17479,19 @@ const arrow$2 = (options, deps) => ({
|
|
|
17523
17479
|
options: [options, deps]
|
|
17524
17480
|
});
|
|
17525
17481
|
|
|
17526
|
-
function _extends$
|
|
17527
|
-
return _extends$
|
|
17482
|
+
function _extends$6() {
|
|
17483
|
+
return _extends$6 = Object.assign ? Object.assign.bind() : function (n) {
|
|
17528
17484
|
for (var e = 1; e < arguments.length; e++) {
|
|
17529
17485
|
var t = arguments[e];
|
|
17530
17486
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
17531
17487
|
}
|
|
17532
17488
|
return n;
|
|
17533
|
-
}, _extends$
|
|
17489
|
+
}, _extends$6.apply(null, arguments);
|
|
17534
17490
|
}
|
|
17535
17491
|
|
|
17536
17492
|
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
17537
17493
|
const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
|
|
17538
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$
|
|
17494
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$6({}, arrowProps, {
|
|
17539
17495
|
ref: forwardedRef,
|
|
17540
17496
|
width: width,
|
|
17541
17497
|
height: height,
|
|
@@ -17622,7 +17578,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ forwardRef((props
|
|
|
17622
17578
|
// `anchorRef` with their virtual ref in this case.
|
|
17623
17579
|
context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
|
|
17624
17580
|
});
|
|
17625
|
-
return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
17581
|
+
return virtualRef ? null : /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$7({}, anchorProps, {
|
|
17626
17582
|
ref: composedRefs
|
|
17627
17583
|
}));
|
|
17628
17584
|
});
|
|
@@ -17751,7 +17707,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /*#__PURE__*/ forwardRef((props
|
|
|
17751
17707
|
arrowX: arrowX,
|
|
17752
17708
|
arrowY: arrowY,
|
|
17753
17709
|
shouldHideArrow: cannotCenterArrow
|
|
17754
|
-
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
17710
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$7({
|
|
17755
17711
|
"data-side": placedSide,
|
|
17756
17712
|
"data-align": placedAlign
|
|
17757
17713
|
}, contentProps, {
|
|
@@ -17803,7 +17759,7 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ forwardRef(funct
|
|
|
17803
17759
|
}[contentContext.placedSide],
|
|
17804
17760
|
visibility: contentContext.shouldHideArrow ? 'hidden' : undefined
|
|
17805
17761
|
}
|
|
17806
|
-
}, /*#__PURE__*/ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$
|
|
17762
|
+
}, /*#__PURE__*/ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$7({}, arrowProps, {
|
|
17807
17763
|
ref: forwardedRef,
|
|
17808
17764
|
style: {
|
|
17809
17765
|
...arrowProps.style,
|
|
@@ -17869,20 +17825,20 @@ const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e
|
|
|
17869
17825
|
const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
|
|
17870
17826
|
const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
|
|
17871
17827
|
|
|
17872
|
-
function _extends$
|
|
17873
|
-
return _extends$
|
|
17828
|
+
function _extends$5() {
|
|
17829
|
+
return _extends$5 = Object.assign ? Object.assign.bind() : function (n) {
|
|
17874
17830
|
for (var e = 1; e < arguments.length; e++) {
|
|
17875
17831
|
var t = arguments[e];
|
|
17876
17832
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
17877
17833
|
}
|
|
17878
17834
|
return n;
|
|
17879
|
-
}, _extends$
|
|
17835
|
+
}, _extends$5.apply(null, arguments);
|
|
17880
17836
|
}
|
|
17881
17837
|
|
|
17882
17838
|
const $f1701beae083dbae$export$602eac185826482c = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
17883
17839
|
var _globalThis$document;
|
|
17884
17840
|
const { container: container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body , ...portalProps } = props;
|
|
17885
|
-
return container ? /*#__PURE__*/ ReactDOM__default.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
17841
|
+
return container ? /*#__PURE__*/ ReactDOM__default.createPortal(/*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$5({}, portalProps, {
|
|
17886
17842
|
ref: forwardedRef
|
|
17887
17843
|
})), container) : null;
|
|
17888
17844
|
});
|
|
@@ -18054,18 +18010,18 @@ function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp: defaultProp ,
|
|
|
18054
18010
|
return uncontrolledState;
|
|
18055
18011
|
}
|
|
18056
18012
|
|
|
18057
|
-
function _extends$
|
|
18058
|
-
return _extends$
|
|
18013
|
+
function _extends$4() {
|
|
18014
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function (n) {
|
|
18059
18015
|
for (var e = 1; e < arguments.length; e++) {
|
|
18060
18016
|
var t = arguments[e];
|
|
18061
18017
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
18062
18018
|
}
|
|
18063
18019
|
return n;
|
|
18064
|
-
}, _extends$
|
|
18020
|
+
}, _extends$4.apply(null, arguments);
|
|
18065
18021
|
}
|
|
18066
18022
|
|
|
18067
18023
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
18068
|
-
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
18024
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$4({}, props, {
|
|
18069
18025
|
ref: forwardedRef,
|
|
18070
18026
|
style: {
|
|
18071
18027
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -18233,9 +18189,9 @@ const $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ forwardRef((prop
|
|
|
18233
18189
|
}, [
|
|
18234
18190
|
handlePointerUp
|
|
18235
18191
|
]);
|
|
18236
|
-
return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
18192
|
+
return /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$b({
|
|
18237
18193
|
asChild: true
|
|
18238
|
-
}, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
18194
|
+
}, popperScope), /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$b({
|
|
18239
18195
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
18240
18196
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
18241
18197
|
"aria-describedby": context.open ? context.contentId : undefined,
|
|
@@ -18294,11 +18250,11 @@ const $a093c7e1ec25a057$export$e9003e2be37ec060 = /*#__PURE__*/ forwardRef((prop
|
|
|
18294
18250
|
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
18295
18251
|
return /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
18296
18252
|
present: forceMount || context.open
|
|
18297
|
-
}, context.disableHoverableContent ? /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
18253
|
+
}, context.disableHoverableContent ? /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$b({
|
|
18298
18254
|
side: side
|
|
18299
18255
|
}, contentProps, {
|
|
18300
18256
|
ref: forwardedRef
|
|
18301
|
-
})) : /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$
|
|
18257
|
+
})) : /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$b({
|
|
18302
18258
|
side: side
|
|
18303
18259
|
}, contentProps, {
|
|
18304
18260
|
ref: forwardedRef
|
|
@@ -18389,7 +18345,7 @@ const $a093c7e1ec25a057$var$TooltipContentHoverable = /*#__PURE__*/ forwardRef((
|
|
|
18389
18345
|
onClose,
|
|
18390
18346
|
handleRemoveGraceArea
|
|
18391
18347
|
]);
|
|
18392
|
-
return /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
18348
|
+
return /*#__PURE__*/ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$b({}, props, {
|
|
18393
18349
|
ref: composedRefs
|
|
18394
18350
|
}));
|
|
18395
18351
|
});
|
|
@@ -18434,7 +18390,7 @@ const $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ forwardRef((props
|
|
|
18434
18390
|
onFocusOutside: (event)=>event.preventDefault()
|
|
18435
18391
|
,
|
|
18436
18392
|
onDismiss: onClose
|
|
18437
|
-
}, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
18393
|
+
}, /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$b({
|
|
18438
18394
|
"data-state": context.stateAttribute
|
|
18439
18395
|
}, popperScope, contentProps, {
|
|
18440
18396
|
ref: forwardedRef,
|
|
@@ -18462,7 +18418,7 @@ const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /*#__PURE__*/ forwardRef((prop
|
|
|
18462
18418
|
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
18463
18419
|
const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip); // if the arrow is inside the `VisuallyHidden`, we don't want to render it all to
|
|
18464
18420
|
// prevent issues in positioning the arrow due to the duplicate
|
|
18465
|
-
return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
18421
|
+
return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$b({}, popperScope, arrowProps, {
|
|
18466
18422
|
ref: forwardedRef
|
|
18467
18423
|
}));
|
|
18468
18424
|
});
|
|
@@ -18612,15 +18568,21 @@ const $a093c7e1ec25a057$export$21b07c8f274aebd5 = $a093c7e1ec25a057$export$c27ee
|
|
|
18612
18568
|
function Tooltip$2(_ref) {
|
|
18613
18569
|
var children = _ref.children,
|
|
18614
18570
|
content = _ref.content,
|
|
18571
|
+
_ref$sideOffset = _ref.sideOffset,
|
|
18572
|
+
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
18615
18573
|
_ref$hideTooltip = _ref.hideTooltip,
|
|
18616
|
-
hideTooltip = _ref$hideTooltip === void 0 ? false : _ref$hideTooltip
|
|
18574
|
+
hideTooltip = _ref$hideTooltip === void 0 ? false : _ref$hideTooltip,
|
|
18575
|
+
_ref$delayDuration = _ref.delayDuration,
|
|
18576
|
+
delayDuration = _ref$delayDuration === void 0 ? 700 : _ref$delayDuration;
|
|
18617
18577
|
if (hideTooltip) {
|
|
18618
18578
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
18619
18579
|
}
|
|
18620
|
-
return /*#__PURE__*/React__default.createElement($a093c7e1ec25a057$export$2881499e37b75b9a,
|
|
18580
|
+
return /*#__PURE__*/React__default.createElement($a093c7e1ec25a057$export$2881499e37b75b9a, {
|
|
18581
|
+
delayDuration: delayDuration
|
|
18582
|
+
}, /*#__PURE__*/React__default.createElement($a093c7e1ec25a057$export$be92b6f5f03c0fe9, null, /*#__PURE__*/React__default.createElement($a093c7e1ec25a057$export$41fb9f06171c75f4, {
|
|
18621
18583
|
asChild: true
|
|
18622
18584
|
}, children), /*#__PURE__*/React__default.createElement($a093c7e1ec25a057$export$602eac185826482c, null, /*#__PURE__*/React__default.createElement(TooltipContent$1, {
|
|
18623
|
-
sideOffset:
|
|
18585
|
+
sideOffset: sideOffset
|
|
18624
18586
|
}, content))));
|
|
18625
18587
|
}
|
|
18626
18588
|
var slideUpAndFade$1 = keyframes$3(["from{opacity:0;transform:translateY(2px);}to{opacity:1;transform:translateY(0);}"]);
|
|
@@ -18628,8 +18590,8 @@ var slideRightAndFade$1 = keyframes$3(["from{opacity:0;transform:translateX(-2px
|
|
|
18628
18590
|
var slideDownAndFade$1 = keyframes$3(["from{opacity:0;transform:translateY(-2px);}to{opacity:1;transform:translateY(0);}"]);
|
|
18629
18591
|
var slideLeftAndFade$1 = keyframes$3(["from{opacity:0;transform:translateX(2px);}to{opacity:1;transform:translateX(0);}"]);
|
|
18630
18592
|
var TooltipContent$1 = styled($a093c7e1ec25a057$export$7c6e2c02157bb7d2).withConfig({
|
|
18631
|
-
displayName: "
|
|
18632
|
-
componentId: "sc-
|
|
18593
|
+
displayName: "Tooltip2__TooltipContent",
|
|
18594
|
+
componentId: "sc-1l2zpgv-0"
|
|
18633
18595
|
})(["font-family:", ";white-space:nowrap;font-size:", ";line-height:", ";color:", ";background-color:", ";border-radius:", ";margin-top:", ";padding:", ";z-index:", ";pointer-events:none;animation-duration:400ms;animation-timing-function:cubic-bezier(0.16,1,0.3,1);will-change:transform,opacity;&[data-state=\"delayed-open\"][data-side=\"top\"]{animation-name:", ";}&[data-state=\"delayed-open\"][data-side=\"right\"]{animation-name:", ";}&[data-state=\"delayed-open\"][data-side=\"bottom\"]{animation-name:", ";}&[data-state=\"delayed-open\"][data-side=\"left\"]{animation-name:", ";}"], function (_ref2) {
|
|
18634
18596
|
var theme = _ref2.theme;
|
|
18635
18597
|
return theme.fonts.base;
|
|
@@ -18659,6 +18621,55 @@ var TooltipContent$1 = styled($a093c7e1ec25a057$export$7c6e2c02157bb7d2).withCon
|
|
|
18659
18621
|
return theme.zIndices.aboveOverlay;
|
|
18660
18622
|
}, slideUpAndFade$1, slideRightAndFade$1, slideDownAndFade$1, slideLeftAndFade$1);
|
|
18661
18623
|
|
|
18624
|
+
var appTagColors = {
|
|
18625
|
+
active: {
|
|
18626
|
+
primary: "darkGrey",
|
|
18627
|
+
secondary: "lightGrey"
|
|
18628
|
+
},
|
|
18629
|
+
inactive: {
|
|
18630
|
+
primary: "midGrey",
|
|
18631
|
+
secondary: "whiteGrey"
|
|
18632
|
+
},
|
|
18633
|
+
interactive: {
|
|
18634
|
+
primary: "blue",
|
|
18635
|
+
secondary: "lightBlue"
|
|
18636
|
+
}
|
|
18637
|
+
};
|
|
18638
|
+
|
|
18639
|
+
var LogoWrapper = styled.span.withConfig({
|
|
18640
|
+
displayName: "LogoWrapper",
|
|
18641
|
+
componentId: "sc-a1yhff-0"
|
|
18642
|
+
})(function (_ref) {
|
|
18643
|
+
var theme = _ref.theme,
|
|
18644
|
+
$type = _ref.$type;
|
|
18645
|
+
var color = theme.colors[appTagColors[$type].primary];
|
|
18646
|
+
return {
|
|
18647
|
+
background: color,
|
|
18648
|
+
display: "inline-block",
|
|
18649
|
+
padding: theme.space.half,
|
|
18650
|
+
borderRadius: theme.radii.circle,
|
|
18651
|
+
lineHeight: 0
|
|
18652
|
+
};
|
|
18653
|
+
});
|
|
18654
|
+
|
|
18655
|
+
function NulogyLogo$2(_a) {
|
|
18656
|
+
var _a$width = _a.width,
|
|
18657
|
+
width = _a$width === void 0 ? 8 : _a$width,
|
|
18658
|
+
_a$height = _a.height,
|
|
18659
|
+
height = _a$height === void 0 ? 8 : _a$height,
|
|
18660
|
+
props = __rest(_a, ["width", "height"]);
|
|
18661
|
+
return /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
18662
|
+
width: width,
|
|
18663
|
+
height: height,
|
|
18664
|
+
viewBox: "0 0 8 8",
|
|
18665
|
+
fill: "none",
|
|
18666
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18667
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
18668
|
+
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",
|
|
18669
|
+
fill: "white"
|
|
18670
|
+
}));
|
|
18671
|
+
}
|
|
18672
|
+
|
|
18662
18673
|
function AppTag(_ref) {
|
|
18663
18674
|
var app = _ref.app,
|
|
18664
18675
|
_ref$type = _ref.type,
|
|
@@ -18675,7 +18686,7 @@ function AppTag(_ref) {
|
|
|
18675
18686
|
"$type": type
|
|
18676
18687
|
}, /*#__PURE__*/React__default.createElement(LogoWrapper, {
|
|
18677
18688
|
"$type": type
|
|
18678
|
-
}, /*#__PURE__*/React__default.createElement(NulogyLogo$
|
|
18689
|
+
}, /*#__PURE__*/React__default.createElement(NulogyLogo$2, {
|
|
18679
18690
|
width: theme.space.x1,
|
|
18680
18691
|
height: theme.space.x1
|
|
18681
18692
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -18843,27 +18854,27 @@ function _createSuper(Derived) {
|
|
|
18843
18854
|
};
|
|
18844
18855
|
}
|
|
18845
18856
|
|
|
18846
|
-
function _arrayLikeToArray$
|
|
18857
|
+
function _arrayLikeToArray$2(arr, len) {
|
|
18847
18858
|
if (len == null || len > arr.length) len = arr.length;
|
|
18848
18859
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
18849
18860
|
return arr2;
|
|
18850
18861
|
}
|
|
18851
18862
|
|
|
18852
18863
|
function _arrayWithoutHoles(arr) {
|
|
18853
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
18864
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
18854
18865
|
}
|
|
18855
18866
|
|
|
18856
18867
|
function _iterableToArray(iter) {
|
|
18857
18868
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
18858
18869
|
}
|
|
18859
18870
|
|
|
18860
|
-
function _unsupportedIterableToArray$
|
|
18871
|
+
function _unsupportedIterableToArray$2(o, minLen) {
|
|
18861
18872
|
if (!o) return;
|
|
18862
|
-
if (typeof o === "string") return _arrayLikeToArray$
|
|
18873
|
+
if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
|
|
18863
18874
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
18864
18875
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18865
18876
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
18866
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$
|
|
18877
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
18867
18878
|
}
|
|
18868
18879
|
|
|
18869
18880
|
function _nonIterableSpread() {
|
|
@@ -18871,7 +18882,7 @@ function _nonIterableSpread() {
|
|
|
18871
18882
|
}
|
|
18872
18883
|
|
|
18873
18884
|
function _toConsumableArray(arr) {
|
|
18874
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$
|
|
18885
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread();
|
|
18875
18886
|
}
|
|
18876
18887
|
|
|
18877
18888
|
/*
|
|
@@ -20863,7 +20874,7 @@ function _nonIterableRest() {
|
|
|
20863
20874
|
}
|
|
20864
20875
|
|
|
20865
20876
|
function _slicedToArray(arr, i) {
|
|
20866
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$
|
|
20877
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
|
|
20867
20878
|
}
|
|
20868
20879
|
|
|
20869
20880
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
@@ -21841,7 +21852,7 @@ var Menu$2 = function Menu(props) {
|
|
|
21841
21852
|
var children = props.children,
|
|
21842
21853
|
innerRef = props.innerRef,
|
|
21843
21854
|
innerProps = props.innerProps;
|
|
21844
|
-
return jsx("div", _extends$
|
|
21855
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'menu', {
|
|
21845
21856
|
menu: true
|
|
21846
21857
|
}), {
|
|
21847
21858
|
ref: innerRef
|
|
@@ -21872,7 +21883,7 @@ var MenuList$1 = function MenuList(props) {
|
|
|
21872
21883
|
innerProps = props.innerProps,
|
|
21873
21884
|
innerRef = props.innerRef,
|
|
21874
21885
|
isMulti = props.isMulti;
|
|
21875
|
-
return jsx("div", _extends$
|
|
21886
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'menuList', {
|
|
21876
21887
|
'menu-list': true,
|
|
21877
21888
|
'menu-list--is-multi': isMulti
|
|
21878
21889
|
}), {
|
|
@@ -21902,7 +21913,7 @@ var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
|
21902
21913
|
children = _ref6$children === void 0 ? 'No options' : _ref6$children,
|
|
21903
21914
|
innerProps = _ref6.innerProps,
|
|
21904
21915
|
restProps = _objectWithoutProperties(_ref6, _excluded$3$1);
|
|
21905
|
-
return jsx("div", _extends$
|
|
21916
|
+
return jsx("div", _extends$c({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
21906
21917
|
children: children,
|
|
21907
21918
|
innerProps: innerProps
|
|
21908
21919
|
}), 'noOptionsMessage', {
|
|
@@ -21915,7 +21926,7 @@ var LoadingMessage = function LoadingMessage(_ref7) {
|
|
|
21915
21926
|
children = _ref7$children === void 0 ? 'Loading...' : _ref7$children,
|
|
21916
21927
|
innerProps = _ref7.innerProps,
|
|
21917
21928
|
restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
21918
|
-
return jsx("div", _extends$
|
|
21929
|
+
return jsx("div", _extends$c({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
21919
21930
|
children: children,
|
|
21920
21931
|
innerProps: innerProps
|
|
21921
21932
|
}), 'loadingMessage', {
|
|
@@ -22000,7 +22011,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
22000
22011
|
if (!appendTo && menuPosition !== 'fixed' || !computedPosition) return null;
|
|
22001
22012
|
|
|
22002
22013
|
// same wrapper element whether fixed or portalled
|
|
22003
|
-
var menuWrapper = jsx("div", _extends$
|
|
22014
|
+
var menuWrapper = jsx("div", _extends$c({
|
|
22004
22015
|
ref: setMenuPortalElement
|
|
22005
22016
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
22006
22017
|
offset: computedPosition.offset,
|
|
@@ -22034,7 +22045,7 @@ var SelectContainer$2 = function SelectContainer(props) {
|
|
|
22034
22045
|
innerProps = props.innerProps,
|
|
22035
22046
|
isDisabled = props.isDisabled,
|
|
22036
22047
|
isRtl = props.isRtl;
|
|
22037
|
-
return jsx("div", _extends$
|
|
22048
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'container', {
|
|
22038
22049
|
'--is-disabled': isDisabled,
|
|
22039
22050
|
'--is-rtl': isRtl
|
|
22040
22051
|
}), innerProps), children);
|
|
@@ -22066,7 +22077,7 @@ var ValueContainer = function ValueContainer(props) {
|
|
|
22066
22077
|
innerProps = props.innerProps,
|
|
22067
22078
|
isMulti = props.isMulti,
|
|
22068
22079
|
hasValue = props.hasValue;
|
|
22069
|
-
return jsx("div", _extends$
|
|
22080
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'valueContainer', {
|
|
22070
22081
|
'value-container': true,
|
|
22071
22082
|
'value-container--is-multi': isMulti,
|
|
22072
22083
|
'value-container--has-value': hasValue
|
|
@@ -22088,7 +22099,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
|
|
22088
22099
|
var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
22089
22100
|
var children = props.children,
|
|
22090
22101
|
innerProps = props.innerProps;
|
|
22091
|
-
return jsx("div", _extends$
|
|
22102
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'indicatorsContainer', {
|
|
22092
22103
|
indicators: true
|
|
22093
22104
|
}), innerProps), children);
|
|
22094
22105
|
};
|
|
@@ -22113,7 +22124,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
22113
22124
|
var Svg = function Svg(_ref) {
|
|
22114
22125
|
var size = _ref.size,
|
|
22115
22126
|
props = _objectWithoutProperties(_ref, _excluded$2$1);
|
|
22116
|
-
return jsx("svg", _extends$
|
|
22127
|
+
return jsx("svg", _extends$c({
|
|
22117
22128
|
height: size,
|
|
22118
22129
|
width: size,
|
|
22119
22130
|
viewBox: "0 0 20 20",
|
|
@@ -22123,14 +22134,14 @@ var Svg = function Svg(_ref) {
|
|
|
22123
22134
|
}, props));
|
|
22124
22135
|
};
|
|
22125
22136
|
var CrossIcon = function CrossIcon(props) {
|
|
22126
|
-
return jsx(Svg, _extends$
|
|
22137
|
+
return jsx(Svg, _extends$c({
|
|
22127
22138
|
size: 20
|
|
22128
22139
|
}, props), jsx("path", {
|
|
22129
22140
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
22130
22141
|
}));
|
|
22131
22142
|
};
|
|
22132
22143
|
var DownChevron = function DownChevron(props) {
|
|
22133
|
-
return jsx(Svg, _extends$
|
|
22144
|
+
return jsx(Svg, _extends$c({
|
|
22134
22145
|
size: 20
|
|
22135
22146
|
}, props), jsx("path", {
|
|
22136
22147
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -22162,7 +22173,7 @@ var dropdownIndicatorCSS = baseCSS;
|
|
|
22162
22173
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
22163
22174
|
var children = props.children,
|
|
22164
22175
|
innerProps = props.innerProps;
|
|
22165
|
-
return jsx("div", _extends$
|
|
22176
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'dropdownIndicator', {
|
|
22166
22177
|
indicator: true,
|
|
22167
22178
|
'dropdown-indicator': true
|
|
22168
22179
|
}), innerProps), children || jsx(DownChevron, null));
|
|
@@ -22171,7 +22182,7 @@ var clearIndicatorCSS = baseCSS;
|
|
|
22171
22182
|
var ClearIndicator = function ClearIndicator(props) {
|
|
22172
22183
|
var children = props.children,
|
|
22173
22184
|
innerProps = props.innerProps;
|
|
22174
|
-
return jsx("div", _extends$
|
|
22185
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'clearIndicator', {
|
|
22175
22186
|
indicator: true,
|
|
22176
22187
|
'clear-indicator': true
|
|
22177
22188
|
}), innerProps), children || jsx(CrossIcon, null));
|
|
@@ -22198,7 +22209,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) {
|
|
|
22198
22209
|
};
|
|
22199
22210
|
var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
22200
22211
|
var innerProps = props.innerProps;
|
|
22201
|
-
return jsx("span", _extends$
|
|
22212
|
+
return jsx("span", _extends$c({}, innerProps, getStyleProps(props, 'indicatorSeparator', {
|
|
22202
22213
|
'indicator-separator': true
|
|
22203
22214
|
})));
|
|
22204
22215
|
};
|
|
@@ -22251,7 +22262,7 @@ var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
|
22251
22262
|
_ref7$size = _ref7.size,
|
|
22252
22263
|
size = _ref7$size === void 0 ? 4 : _ref7$size,
|
|
22253
22264
|
restProps = _objectWithoutProperties(_ref7, _excluded2$2);
|
|
22254
|
-
return jsx("div", _extends$
|
|
22265
|
+
return jsx("div", _extends$c({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
22255
22266
|
innerProps: innerProps,
|
|
22256
22267
|
isRtl: isRtl,
|
|
22257
22268
|
size: size
|
|
@@ -22307,7 +22318,7 @@ var Control = function Control(props) {
|
|
|
22307
22318
|
innerRef = props.innerRef,
|
|
22308
22319
|
innerProps = props.innerProps,
|
|
22309
22320
|
menuIsOpen = props.menuIsOpen;
|
|
22310
|
-
return jsx("div", _extends$
|
|
22321
|
+
return jsx("div", _extends$c({
|
|
22311
22322
|
ref: innerRef
|
|
22312
22323
|
}, getStyleProps(props, 'control', {
|
|
22313
22324
|
control: true,
|
|
@@ -22339,9 +22350,9 @@ var Group = function Group(props) {
|
|
|
22339
22350
|
label = props.label,
|
|
22340
22351
|
theme = props.theme,
|
|
22341
22352
|
selectProps = props.selectProps;
|
|
22342
|
-
return jsx("div", _extends$
|
|
22353
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'group', {
|
|
22343
22354
|
group: true
|
|
22344
|
-
}), innerProps), jsx(Heading, _extends$
|
|
22355
|
+
}), innerProps), jsx(Heading, _extends$c({}, headingProps, {
|
|
22345
22356
|
selectProps: selectProps,
|
|
22346
22357
|
theme: theme,
|
|
22347
22358
|
getStyles: getStyles,
|
|
@@ -22371,7 +22382,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
22371
22382
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
22372
22383
|
_cleanCommonProps.data;
|
|
22373
22384
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
|
|
22374
|
-
return jsx("div", _extends$
|
|
22385
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'groupHeading', {
|
|
22375
22386
|
'group-heading': true
|
|
22376
22387
|
}), innerProps));
|
|
22377
22388
|
};
|
|
@@ -22434,11 +22445,11 @@ var Input$1 = function Input(props) {
|
|
|
22434
22445
|
isHidden = _cleanCommonProps.isHidden,
|
|
22435
22446
|
inputClassName = _cleanCommonProps.inputClassName,
|
|
22436
22447
|
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$6);
|
|
22437
|
-
return jsx("div", _extends$
|
|
22448
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'input', {
|
|
22438
22449
|
'input-container': true
|
|
22439
22450
|
}), {
|
|
22440
22451
|
"data-value": value || ''
|
|
22441
|
-
}), jsx("input", _extends$
|
|
22452
|
+
}), jsx("input", _extends$c({
|
|
22442
22453
|
className: cx({
|
|
22443
22454
|
input: true
|
|
22444
22455
|
}, inputClassName),
|
|
@@ -22511,7 +22522,7 @@ var MultiValueLabel = MultiValueGeneric;
|
|
|
22511
22522
|
function MultiValueRemove(_ref5) {
|
|
22512
22523
|
var children = _ref5.children,
|
|
22513
22524
|
innerProps = _ref5.innerProps;
|
|
22514
|
-
return jsx("div", _extends$
|
|
22525
|
+
return jsx("div", _extends$c({
|
|
22515
22526
|
role: "button"
|
|
22516
22527
|
}, innerProps), children || jsx(CrossIcon, {
|
|
22517
22528
|
size: 14
|
|
@@ -22585,7 +22596,7 @@ var Option = function Option(props) {
|
|
|
22585
22596
|
isSelected = props.isSelected,
|
|
22586
22597
|
innerRef = props.innerRef,
|
|
22587
22598
|
innerProps = props.innerProps;
|
|
22588
|
-
return jsx("div", _extends$
|
|
22599
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'option', {
|
|
22589
22600
|
option: true,
|
|
22590
22601
|
'option--is-disabled': isDisabled,
|
|
22591
22602
|
'option--is-focused': isFocused,
|
|
@@ -22613,7 +22624,7 @@ var placeholderCSS = function placeholderCSS(_ref, unstyled) {
|
|
|
22613
22624
|
var Placeholder = function Placeholder(props) {
|
|
22614
22625
|
var children = props.children,
|
|
22615
22626
|
innerProps = props.innerProps;
|
|
22616
|
-
return jsx("div", _extends$
|
|
22627
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'placeholder', {
|
|
22617
22628
|
placeholder: true
|
|
22618
22629
|
}), innerProps), children);
|
|
22619
22630
|
};
|
|
@@ -22641,7 +22652,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
22641
22652
|
var children = props.children,
|
|
22642
22653
|
isDisabled = props.isDisabled,
|
|
22643
22654
|
innerProps = props.innerProps;
|
|
22644
|
-
return jsx("div", _extends$
|
|
22655
|
+
return jsx("div", _extends$c({}, getStyleProps(props, 'singleValue', {
|
|
22645
22656
|
'single-value': true,
|
|
22646
22657
|
'single-value--is-disabled': isDisabled
|
|
22647
22658
|
}), innerProps), children);
|
|
@@ -22742,7 +22753,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
|
22742
22753
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
22743
22754
|
};
|
|
22744
22755
|
var A11yText = function A11yText(props) {
|
|
22745
|
-
return jsx("span", _extends$
|
|
22756
|
+
return jsx("span", _extends$c({
|
|
22746
22757
|
css: _ref$1
|
|
22747
22758
|
}, props));
|
|
22748
22759
|
};
|
|
@@ -23259,7 +23270,7 @@ function DummyInput(_ref) {
|
|
|
23259
23270
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
23260
23271
|
// Remove animation props not meant for HTML elements
|
|
23261
23272
|
var filteredProps = removeProps(props, 'onExited', 'in', 'enter', 'exit', 'appear');
|
|
23262
|
-
return jsx("input", _extends$
|
|
23273
|
+
return jsx("input", _extends$c({
|
|
23263
23274
|
ref: innerRef
|
|
23264
23275
|
}, filteredProps, {
|
|
23265
23276
|
css: /*#__PURE__*/css$2({
|
|
@@ -24835,7 +24846,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24835
24846
|
});
|
|
24836
24847
|
if (!isSearchable) {
|
|
24837
24848
|
// use a dummy input to maintain focus/blur functionality
|
|
24838
|
-
return /*#__PURE__*/React.createElement(DummyInput, _extends$
|
|
24849
|
+
return /*#__PURE__*/React.createElement(DummyInput, _extends$c({
|
|
24839
24850
|
id: id,
|
|
24840
24851
|
innerRef: this.getInputRef,
|
|
24841
24852
|
onBlur: this.onInputBlur,
|
|
@@ -24848,7 +24859,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24848
24859
|
value: ""
|
|
24849
24860
|
}, ariaAttributes));
|
|
24850
24861
|
}
|
|
24851
|
-
return /*#__PURE__*/React.createElement(Input, _extends$
|
|
24862
|
+
return /*#__PURE__*/React.createElement(Input, _extends$c({}, commonProps, {
|
|
24852
24863
|
autoCapitalize: "none",
|
|
24853
24864
|
autoComplete: "off",
|
|
24854
24865
|
autoCorrect: "off",
|
|
@@ -24889,7 +24900,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24889
24900
|
focusedValue = _this$state5.focusedValue,
|
|
24890
24901
|
isFocused = _this$state5.isFocused;
|
|
24891
24902
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
24892
|
-
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends$
|
|
24903
|
+
return inputValue ? null : /*#__PURE__*/React.createElement(Placeholder, _extends$c({}, commonProps, {
|
|
24893
24904
|
key: "placeholder",
|
|
24894
24905
|
isDisabled: isDisabled,
|
|
24895
24906
|
isFocused: isFocused,
|
|
@@ -24902,7 +24913,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24902
24913
|
return selectValue.map(function (opt, index) {
|
|
24903
24914
|
var isOptionFocused = opt === focusedValue;
|
|
24904
24915
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
24905
|
-
return /*#__PURE__*/React.createElement(MultiValue, _extends$
|
|
24916
|
+
return /*#__PURE__*/React.createElement(MultiValue, _extends$c({}, commonProps, {
|
|
24906
24917
|
components: {
|
|
24907
24918
|
Container: MultiValueContainer,
|
|
24908
24919
|
Label: MultiValueLabel,
|
|
@@ -24931,7 +24942,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24931
24942
|
return null;
|
|
24932
24943
|
}
|
|
24933
24944
|
var singleValue = selectValue[0];
|
|
24934
|
-
return /*#__PURE__*/React.createElement(SingleValue, _extends$
|
|
24945
|
+
return /*#__PURE__*/React.createElement(SingleValue, _extends$c({}, commonProps, {
|
|
24935
24946
|
data: singleValue,
|
|
24936
24947
|
isDisabled: isDisabled
|
|
24937
24948
|
}), this.formatOptionLabel(singleValue, 'value'));
|
|
@@ -24954,7 +24965,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24954
24965
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
24955
24966
|
'aria-hidden': 'true'
|
|
24956
24967
|
};
|
|
24957
|
-
return /*#__PURE__*/React.createElement(ClearIndicator, _extends$
|
|
24968
|
+
return /*#__PURE__*/React.createElement(ClearIndicator, _extends$c({}, commonProps, {
|
|
24958
24969
|
innerProps: innerProps,
|
|
24959
24970
|
isFocused: isFocused
|
|
24960
24971
|
}));
|
|
@@ -24973,7 +24984,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24973
24984
|
var innerProps = {
|
|
24974
24985
|
'aria-hidden': 'true'
|
|
24975
24986
|
};
|
|
24976
|
-
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends$
|
|
24987
|
+
return /*#__PURE__*/React.createElement(LoadingIndicator, _extends$c({}, commonProps, {
|
|
24977
24988
|
innerProps: innerProps,
|
|
24978
24989
|
isDisabled: isDisabled,
|
|
24979
24990
|
isFocused: isFocused
|
|
@@ -24991,7 +25002,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
24991
25002
|
var commonProps = this.commonProps;
|
|
24992
25003
|
var isDisabled = this.props.isDisabled;
|
|
24993
25004
|
var isFocused = this.state.isFocused;
|
|
24994
|
-
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends$
|
|
25005
|
+
return /*#__PURE__*/React.createElement(IndicatorSeparator, _extends$c({}, commonProps, {
|
|
24995
25006
|
isDisabled: isDisabled,
|
|
24996
25007
|
isFocused: isFocused
|
|
24997
25008
|
}));
|
|
@@ -25010,7 +25021,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25010
25021
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
25011
25022
|
'aria-hidden': 'true'
|
|
25012
25023
|
};
|
|
25013
|
-
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends$
|
|
25024
|
+
return /*#__PURE__*/React.createElement(DropdownIndicator, _extends$c({}, commonProps, {
|
|
25014
25025
|
innerProps: innerProps,
|
|
25015
25026
|
isDisabled: isDisabled,
|
|
25016
25027
|
isFocused: isFocused
|
|
@@ -25075,7 +25086,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25075
25086
|
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
25076
25087
|
};
|
|
25077
25088
|
|
|
25078
|
-
return /*#__PURE__*/React.createElement(Option, _extends$
|
|
25089
|
+
return /*#__PURE__*/React.createElement(Option, _extends$c({}, commonProps, {
|
|
25079
25090
|
innerProps: innerProps,
|
|
25080
25091
|
data: data,
|
|
25081
25092
|
isDisabled: isDisabled,
|
|
@@ -25097,7 +25108,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25097
25108
|
groupIndex = item.index;
|
|
25098
25109
|
var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
|
|
25099
25110
|
var headingId = "".concat(groupId, "-heading");
|
|
25100
|
-
return /*#__PURE__*/React.createElement(Group, _extends$
|
|
25111
|
+
return /*#__PURE__*/React.createElement(Group, _extends$c({}, commonProps, {
|
|
25101
25112
|
key: groupId,
|
|
25102
25113
|
data: _data,
|
|
25103
25114
|
options: options,
|
|
@@ -25134,12 +25145,12 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25134
25145
|
menuPosition: menuPosition,
|
|
25135
25146
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
25136
25147
|
};
|
|
25137
|
-
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends$
|
|
25148
|
+
var menuElement = /*#__PURE__*/React.createElement(MenuPlacer, _extends$c({}, commonProps, menuPlacementProps), function (_ref4) {
|
|
25138
25149
|
var ref = _ref4.ref,
|
|
25139
25150
|
_ref4$placerProps = _ref4.placerProps,
|
|
25140
25151
|
placement = _ref4$placerProps.placement,
|
|
25141
25152
|
maxHeight = _ref4$placerProps.maxHeight;
|
|
25142
|
-
return /*#__PURE__*/React.createElement(Menu, _extends$
|
|
25153
|
+
return /*#__PURE__*/React.createElement(Menu, _extends$c({}, commonProps, menuPlacementProps, {
|
|
25143
25154
|
innerRef: ref,
|
|
25144
25155
|
innerProps: {
|
|
25145
25156
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -25153,7 +25164,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25153
25164
|
onBottomArrive: onMenuScrollToBottom,
|
|
25154
25165
|
lockEnabled: menuShouldBlockScroll
|
|
25155
25166
|
}, function (scrollTargetRef) {
|
|
25156
|
-
return /*#__PURE__*/React.createElement(MenuList, _extends$
|
|
25167
|
+
return /*#__PURE__*/React.createElement(MenuList, _extends$c({}, commonProps, {
|
|
25157
25168
|
innerRef: function innerRef(instance) {
|
|
25158
25169
|
_this4.getMenuListRef(instance);
|
|
25159
25170
|
scrollTargetRef(instance);
|
|
@@ -25173,7 +25184,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25173
25184
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
25174
25185
|
// so we use the same component. the actual portalling logic is forked
|
|
25175
25186
|
// within the component based on `menuPosition`
|
|
25176
|
-
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends$
|
|
25187
|
+
return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React.createElement(MenuPortal, _extends$c({}, commonProps, {
|
|
25177
25188
|
appendTo: menuPortalTarget,
|
|
25178
25189
|
controlElement: this.controlRef,
|
|
25179
25190
|
menuPlacement: menuPlacement,
|
|
@@ -25243,7 +25254,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25243
25254
|
isFocused = _this$state6.isFocused,
|
|
25244
25255
|
selectValue = _this$state6.selectValue;
|
|
25245
25256
|
var focusableOptions = this.getFocusableOptions();
|
|
25246
|
-
return /*#__PURE__*/React.createElement(LiveRegion$1, _extends$
|
|
25257
|
+
return /*#__PURE__*/React.createElement(LiveRegion$1, _extends$c({}, commonProps, {
|
|
25247
25258
|
id: this.getElementId('live-region'),
|
|
25248
25259
|
ariaSelection: ariaSelection,
|
|
25249
25260
|
focusedOption: focusedOption,
|
|
@@ -25269,7 +25280,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25269
25280
|
menuIsOpen = _this$props14.menuIsOpen;
|
|
25270
25281
|
var isFocused = this.state.isFocused;
|
|
25271
25282
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
25272
|
-
return /*#__PURE__*/React.createElement(SelectContainer, _extends$
|
|
25283
|
+
return /*#__PURE__*/React.createElement(SelectContainer, _extends$c({}, commonProps, {
|
|
25273
25284
|
className: className,
|
|
25274
25285
|
innerProps: {
|
|
25275
25286
|
id: id,
|
|
@@ -25277,7 +25288,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25277
25288
|
},
|
|
25278
25289
|
isDisabled: isDisabled,
|
|
25279
25290
|
isFocused: isFocused
|
|
25280
|
-
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends$
|
|
25291
|
+
}), this.renderLiveRegion(), /*#__PURE__*/React.createElement(Control, _extends$c({}, commonProps, {
|
|
25281
25292
|
innerRef: this.getControlRef,
|
|
25282
25293
|
innerProps: {
|
|
25283
25294
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -25286,9 +25297,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
25286
25297
|
isDisabled: isDisabled,
|
|
25287
25298
|
isFocused: isFocused,
|
|
25288
25299
|
menuIsOpen: menuIsOpen
|
|
25289
|
-
}), /*#__PURE__*/React.createElement(ValueContainer, _extends$
|
|
25300
|
+
}), /*#__PURE__*/React.createElement(ValueContainer, _extends$c({}, commonProps, {
|
|
25290
25301
|
isDisabled: isDisabled
|
|
25291
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends$
|
|
25302
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React.createElement(IndicatorsContainer, _extends$c({}, commonProps, {
|
|
25292
25303
|
isDisabled: isDisabled
|
|
25293
25304
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
25294
25305
|
}
|
|
@@ -25559,19 +25570,19 @@ function useAsync(_ref) {
|
|
|
25559
25570
|
var AsyncSelect$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
25560
25571
|
var stateManagedProps = useAsync(props);
|
|
25561
25572
|
var selectProps = useStateManager(stateManagedProps);
|
|
25562
|
-
return /*#__PURE__*/React.createElement(Select, _extends$
|
|
25573
|
+
return /*#__PURE__*/React.createElement(Select, _extends$c({
|
|
25563
25574
|
ref: ref
|
|
25564
25575
|
}, selectProps));
|
|
25565
25576
|
});
|
|
25566
25577
|
var AsyncSelect$1$1 = AsyncSelect$1;
|
|
25567
25578
|
|
|
25568
|
-
function _extends$
|
|
25579
|
+
function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
25569
25580
|
var propType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array, PropTypes.object]);
|
|
25570
25581
|
var createPropTypes = function createPropTypes(props) {
|
|
25571
25582
|
return props.reduce(function (acc, name) {
|
|
25572
25583
|
var _extends2;
|
|
25573
25584
|
|
|
25574
|
-
return _extends$
|
|
25585
|
+
return _extends$3({}, acc, (_extends2 = {}, _extends2[name] = propType, _extends2));
|
|
25575
25586
|
}, {});
|
|
25576
25587
|
};
|
|
25577
25588
|
var propTypes$1 = {
|
|
@@ -25687,7 +25698,7 @@ var themeGet = function themeGet(path, fallback) {
|
|
|
25687
25698
|
};
|
|
25688
25699
|
};
|
|
25689
25700
|
|
|
25690
|
-
function Link(_a) {
|
|
25701
|
+
function Link$1(_a) {
|
|
25691
25702
|
var children = _a.children,
|
|
25692
25703
|
forApp = _a.forApp,
|
|
25693
25704
|
openInNewTab = _a.openInNewTab,
|
|
@@ -25768,7 +25779,7 @@ var HelpText$1 = styled(Text).withConfig({
|
|
|
25768
25779
|
return _ref2 = {
|
|
25769
25780
|
fontSize: theme.fontSizes.small,
|
|
25770
25781
|
lineHeight: theme.lineHeights.smallTextBase
|
|
25771
|
-
}, _ref2["" + Link] = {
|
|
25782
|
+
}, _ref2["" + Link$1] = {
|
|
25772
25783
|
fontSize: theme.fontSizes.small
|
|
25773
25784
|
}, _ref2;
|
|
25774
25785
|
});
|
|
@@ -26191,7 +26202,7 @@ var defineProperty = function (obj, key, value) {
|
|
|
26191
26202
|
return obj;
|
|
26192
26203
|
};
|
|
26193
26204
|
|
|
26194
|
-
var _extends$
|
|
26205
|
+
var _extends$2 = Object.assign || function (target) {
|
|
26195
26206
|
for (var i = 1; i < arguments.length; i++) {
|
|
26196
26207
|
var source = arguments[i];
|
|
26197
26208
|
|
|
@@ -26213,7 +26224,7 @@ var _extends$1 = Object.assign || function (target) {
|
|
|
26213
26224
|
* @returns {Object} ClientRect like output
|
|
26214
26225
|
*/
|
|
26215
26226
|
function getClientRect(offsets) {
|
|
26216
|
-
return _extends$
|
|
26227
|
+
return _extends$2({}, offsets, {
|
|
26217
26228
|
right: offsets.left + offsets.width,
|
|
26218
26229
|
bottom: offsets.top + offsets.height
|
|
26219
26230
|
});
|
|
@@ -26501,7 +26512,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
|
|
|
26501
26512
|
};
|
|
26502
26513
|
|
|
26503
26514
|
var sortedAreas = Object.keys(rects).map(function (key) {
|
|
26504
|
-
return _extends$
|
|
26515
|
+
return _extends$2({
|
|
26505
26516
|
key: key
|
|
26506
26517
|
}, rects[key], {
|
|
26507
26518
|
area: getArea(rects[key])
|
|
@@ -27143,9 +27154,9 @@ function computeStyle(data, options) {
|
|
|
27143
27154
|
};
|
|
27144
27155
|
|
|
27145
27156
|
// Update `data` attributes, styles and arrowStyles
|
|
27146
|
-
data.attributes = _extends$
|
|
27147
|
-
data.styles = _extends$
|
|
27148
|
-
data.arrowStyles = _extends$
|
|
27157
|
+
data.attributes = _extends$2({}, attributes, data.attributes);
|
|
27158
|
+
data.styles = _extends$2({}, styles, data.styles);
|
|
27159
|
+
data.arrowStyles = _extends$2({}, data.offsets.arrow, data.arrowStyles);
|
|
27149
27160
|
|
|
27150
27161
|
return data;
|
|
27151
27162
|
}
|
|
@@ -27425,7 +27436,7 @@ function flip(data, options) {
|
|
|
27425
27436
|
|
|
27426
27437
|
// this object contains `position`, we want to preserve it along with
|
|
27427
27438
|
// any additional property we may add in the future
|
|
27428
|
-
data.offsets.popper = _extends$
|
|
27439
|
+
data.offsets.popper = _extends$2({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
|
|
27429
27440
|
|
|
27430
27441
|
data = runModifiers(data.instance.modifiers, data, 'flip');
|
|
27431
27442
|
}
|
|
@@ -27699,7 +27710,7 @@ function preventOverflow(data, options) {
|
|
|
27699
27710
|
|
|
27700
27711
|
order.forEach(function (placement) {
|
|
27701
27712
|
var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';
|
|
27702
|
-
popper = _extends$
|
|
27713
|
+
popper = _extends$2({}, popper, check[side](placement));
|
|
27703
27714
|
});
|
|
27704
27715
|
|
|
27705
27716
|
data.offsets.popper = popper;
|
|
@@ -27734,7 +27745,7 @@ function shift(data) {
|
|
|
27734
27745
|
end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
|
|
27735
27746
|
};
|
|
27736
27747
|
|
|
27737
|
-
data.offsets.popper = _extends$
|
|
27748
|
+
data.offsets.popper = _extends$2({}, popper, shiftOffsets[shiftvariation]);
|
|
27738
27749
|
}
|
|
27739
27750
|
|
|
27740
27751
|
return data;
|
|
@@ -28266,7 +28277,7 @@ var Popper$2 = function () {
|
|
|
28266
28277
|
this.update = debounce(this.update.bind(this));
|
|
28267
28278
|
|
|
28268
28279
|
// with {} we create a new object with the options inside it
|
|
28269
|
-
this.options = _extends$
|
|
28280
|
+
this.options = _extends$2({}, Popper.Defaults, options);
|
|
28270
28281
|
|
|
28271
28282
|
// init state
|
|
28272
28283
|
this.state = {
|
|
@@ -28281,13 +28292,13 @@ var Popper$2 = function () {
|
|
|
28281
28292
|
|
|
28282
28293
|
// Deep merge modifiers options
|
|
28283
28294
|
this.options.modifiers = {};
|
|
28284
|
-
Object.keys(_extends$
|
|
28285
|
-
_this.options.modifiers[name] = _extends$
|
|
28295
|
+
Object.keys(_extends$2({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {
|
|
28296
|
+
_this.options.modifiers[name] = _extends$2({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});
|
|
28286
28297
|
});
|
|
28287
28298
|
|
|
28288
28299
|
// Refactoring modifiers' list (Object => Array)
|
|
28289
28300
|
this.modifiers = Object.keys(this.options.modifiers).map(function (name) {
|
|
28290
|
-
return _extends$
|
|
28301
|
+
return _extends$2({
|
|
28291
28302
|
name: name
|
|
28292
28303
|
}, _this.options.modifiers[name]);
|
|
28293
28304
|
})
|
|
@@ -28568,8 +28579,8 @@ function (_React$Component) {
|
|
|
28568
28579
|
placement: _this.props.placement,
|
|
28569
28580
|
eventsEnabled: _this.props.eventsEnabled,
|
|
28570
28581
|
positionFixed: _this.props.positionFixed,
|
|
28571
|
-
modifiers: _extends$
|
|
28572
|
-
arrow: _extends$
|
|
28582
|
+
modifiers: _extends$e({}, _this.props.modifiers, {
|
|
28583
|
+
arrow: _extends$e({}, _this.props.modifiers && _this.props.modifiers.arrow, {
|
|
28573
28584
|
enabled: !!_this.arrowNode,
|
|
28574
28585
|
element: _this.arrowNode
|
|
28575
28586
|
}),
|
|
@@ -28582,7 +28593,7 @@ function (_React$Component) {
|
|
|
28582
28593
|
});
|
|
28583
28594
|
|
|
28584
28595
|
_defineProperty$2(_assertThisInitialized$1(_assertThisInitialized$1(_this)), "getPopperStyle", function () {
|
|
28585
|
-
return !_this.popperNode || !_this.state.data ? initialStyle : _extends$
|
|
28596
|
+
return !_this.popperNode || !_this.state.data ? initialStyle : _extends$e({
|
|
28586
28597
|
position: _this.state.data.offsets.popper.position
|
|
28587
28598
|
}, _this.state.data.styles);
|
|
28588
28599
|
});
|
|
@@ -28631,7 +28642,7 @@ function (_React$Component) {
|
|
|
28631
28642
|
|
|
28632
28643
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
28633
28644
|
// If the Popper.js options have changed, update the instance (destroy + create)
|
|
28634
|
-
if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !
|
|
28645
|
+
if (this.props.placement !== prevProps.placement || this.props.referenceElement !== prevProps.referenceElement || this.props.positionFixed !== prevProps.positionFixed || !equal(this.props.modifiers, prevProps.modifiers, {
|
|
28635
28646
|
strict: true
|
|
28636
28647
|
})) {
|
|
28637
28648
|
// develop only check that modifiers isn't being updated needlessly
|
|
@@ -28690,7 +28701,7 @@ function Popper$1(_ref) {
|
|
|
28690
28701
|
props = _objectWithoutPropertiesLoose$3(_ref, ["referenceElement"]);
|
|
28691
28702
|
|
|
28692
28703
|
return React.createElement(ManagerReferenceNodeContext.Consumer, null, function (referenceNode) {
|
|
28693
|
-
return React.createElement(InnerPopper, _extends$
|
|
28704
|
+
return React.createElement(InnerPopper, _extends$e({
|
|
28694
28705
|
referenceElement: referenceElement !== undefined ? referenceElement : referenceNode
|
|
28695
28706
|
}, props));
|
|
28696
28707
|
});
|
|
@@ -28736,7 +28747,7 @@ function (_React$Component) {
|
|
|
28736
28747
|
|
|
28737
28748
|
function Reference(props) {
|
|
28738
28749
|
return React.createElement(ManagerReferenceNodeSetterContext.Consumer, null, function (setReferenceNode) {
|
|
28739
|
-
return React.createElement(InnerReference, _extends$
|
|
28750
|
+
return React.createElement(InnerReference, _extends$e({
|
|
28740
28751
|
setReferenceNode: setReferenceNode
|
|
28741
28752
|
}, props));
|
|
28742
28753
|
});
|
|
@@ -29089,7 +29100,7 @@ var ListItem = styled.li.withConfig({
|
|
|
29089
29100
|
};
|
|
29090
29101
|
}, space, color, typography);
|
|
29091
29102
|
|
|
29092
|
-
var List = styled.ul.withConfig({
|
|
29103
|
+
var List$1 = styled.ul.withConfig({
|
|
29093
29104
|
displayName: "List",
|
|
29094
29105
|
componentId: "sc-1ueqoqt-0"
|
|
29095
29106
|
})(function (_ref) {
|
|
@@ -29116,7 +29127,7 @@ var mapErrorsToList = function mapErrorsToList(errors) {
|
|
|
29116
29127
|
if (!Array.isArray(errors) || !errors.length) {
|
|
29117
29128
|
return null;
|
|
29118
29129
|
}
|
|
29119
|
-
return /*#__PURE__*/React__default.createElement(List, {
|
|
29130
|
+
return /*#__PURE__*/React__default.createElement(List$1, {
|
|
29120
29131
|
compact: true,
|
|
29121
29132
|
leftAlign: true
|
|
29122
29133
|
}, errors.map(function (error) {
|
|
@@ -29517,7 +29528,7 @@ var pick = function pick(o) {
|
|
|
29517
29528
|
|
|
29518
29529
|
var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
29519
29530
|
var baseSelectProps = useStateManager(props);
|
|
29520
|
-
return /*#__PURE__*/React.createElement(Select, _extends$
|
|
29531
|
+
return /*#__PURE__*/React.createElement(Select, _extends$c({
|
|
29521
29532
|
ref: ref
|
|
29522
29533
|
}, baseSelectProps));
|
|
29523
29534
|
});
|
|
@@ -29994,7 +30005,7 @@ function useCheckStyles(packageName) {
|
|
|
29994
30005
|
}
|
|
29995
30006
|
}
|
|
29996
30007
|
|
|
29997
|
-
function _arrayLikeToArray(arr, len) {
|
|
30008
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
29998
30009
|
if (len == null || len > arr.length) len = arr.length;
|
|
29999
30010
|
|
|
30000
30011
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -30002,20 +30013,20 @@ function _arrayLikeToArray(arr, len) {
|
|
|
30002
30013
|
return arr2;
|
|
30003
30014
|
}
|
|
30004
30015
|
|
|
30005
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
30016
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
30006
30017
|
if (!o) return;
|
|
30007
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
30018
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
30008
30019
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
30009
30020
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
30010
30021
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
30011
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
30022
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
30012
30023
|
}
|
|
30013
30024
|
|
|
30014
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
30025
|
+
function _createForOfIteratorHelperLoose$1(o, allowArrayLike) {
|
|
30015
30026
|
var it;
|
|
30016
30027
|
|
|
30017
30028
|
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
30018
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
30029
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
30019
30030
|
if (it) o = it;
|
|
30020
30031
|
var i = 0;
|
|
30021
30032
|
return function () {
|
|
@@ -30069,7 +30080,7 @@ function useComposedRefs() {
|
|
|
30069
30080
|
}
|
|
30070
30081
|
|
|
30071
30082
|
return useCallback(function (node) {
|
|
30072
|
-
for (var _iterator = _createForOfIteratorHelperLoose(refs), _step; !(_step = _iterator()).done;) {
|
|
30083
|
+
for (var _iterator = _createForOfIteratorHelperLoose$1(refs), _step; !(_step = _iterator()).done;) {
|
|
30073
30084
|
var ref = _step.value;
|
|
30074
30085
|
assignRef$1(ref, node);
|
|
30075
30086
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -30452,7 +30463,7 @@ var FocusLock$1 = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, pare
|
|
|
30452
30463
|
}
|
|
30453
30464
|
}, []);
|
|
30454
30465
|
}
|
|
30455
|
-
var lockProps = _extends$
|
|
30466
|
+
var lockProps = _extends$c((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
|
|
30456
30467
|
var hasLeadingGuards = noFocusGuards !== true;
|
|
30457
30468
|
var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';
|
|
30458
30469
|
var mergedRef = useMergeRefs([parentRef, setObserveNode]);
|
|
@@ -30491,7 +30502,7 @@ var FocusLock$1 = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, pare
|
|
|
30491
30502
|
returnFocus: returnFocus,
|
|
30492
30503
|
focusOptions: focusOptions,
|
|
30493
30504
|
noFocusGuards: noFocusGuards
|
|
30494
|
-
}), /*#__PURE__*/React.createElement(Container, _extends$
|
|
30505
|
+
}), /*#__PURE__*/React.createElement(Container, _extends$c({
|
|
30495
30506
|
ref: mergedRef
|
|
30496
30507
|
}, lockProps, {
|
|
30497
30508
|
className: className,
|
|
@@ -31821,7 +31832,7 @@ mediumEffect.assignMedium(function (cb) {
|
|
|
31821
31832
|
var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);
|
|
31822
31833
|
|
|
31823
31834
|
var FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {
|
|
31824
|
-
return /*#__PURE__*/React.createElement(FocusLockUI, _extends$
|
|
31835
|
+
return /*#__PURE__*/React.createElement(FocusLockUI, _extends$c({
|
|
31825
31836
|
sideCar: FocusTrap,
|
|
31826
31837
|
ref: ref
|
|
31827
31838
|
}, props));
|
|
@@ -32332,8 +32343,8 @@ var ReactRemoveScroll = React.forwardRef(function (props, ref) { return (React.c
|
|
|
32332
32343
|
ReactRemoveScroll.classNames = RemoveScroll$1.classNames;
|
|
32333
32344
|
var RemoveScroll = ReactRemoveScroll;
|
|
32334
32345
|
|
|
32335
|
-
function _extends() {
|
|
32336
|
-
_extends = Object.assign || function (target) {
|
|
32346
|
+
function _extends$1() {
|
|
32347
|
+
_extends$1 = Object.assign || function (target) {
|
|
32337
32348
|
for (var i = 1; i < arguments.length; i++) {
|
|
32338
32349
|
var source = arguments[i];
|
|
32339
32350
|
|
|
@@ -32347,7 +32358,7 @@ function _extends() {
|
|
|
32347
32358
|
return target;
|
|
32348
32359
|
};
|
|
32349
32360
|
|
|
32350
|
-
return _extends.apply(this, arguments);
|
|
32361
|
+
return _extends$1.apply(this, arguments);
|
|
32351
32362
|
}
|
|
32352
32363
|
|
|
32353
32364
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -32416,7 +32427,7 @@ var DialogOverlay = /*#__PURE__*/forwardRef(function DialogOverlay(_ref, forward
|
|
|
32416
32427
|
}, [isOpen]);
|
|
32417
32428
|
return isOpen ? /*#__PURE__*/createElement(Portal, {
|
|
32418
32429
|
"data-reach-dialog-wrapper": ""
|
|
32419
|
-
}, /*#__PURE__*/createElement(DialogInner, _extends({
|
|
32430
|
+
}, /*#__PURE__*/createElement(DialogInner, _extends$1({
|
|
32420
32431
|
ref: forwardedRef,
|
|
32421
32432
|
as: Comp
|
|
32422
32433
|
}, props))) : null;
|
|
@@ -32424,7 +32435,7 @@ var DialogOverlay = /*#__PURE__*/forwardRef(function DialogOverlay(_ref, forward
|
|
|
32424
32435
|
|
|
32425
32436
|
if (process.env.NODE_ENV !== "production") {
|
|
32426
32437
|
DialogOverlay.displayName = "DialogOverlay";
|
|
32427
|
-
DialogOverlay.propTypes = /*#__PURE__*/_extends({}, overlayPropTypes, {
|
|
32438
|
+
DialogOverlay.propTypes = /*#__PURE__*/_extends$1({}, overlayPropTypes, {
|
|
32428
32439
|
isOpen: PropTypes.bool
|
|
32429
32440
|
});
|
|
32430
32441
|
}
|
|
@@ -32501,7 +32512,7 @@ var DialogInner = /*#__PURE__*/forwardRef(function DialogInner(_ref2, forwardedR
|
|
|
32501
32512
|
}, /*#__PURE__*/createElement(RemoveScroll, {
|
|
32502
32513
|
allowPinchZoom: allowPinchZoom,
|
|
32503
32514
|
enabled: !dangerouslyBypassScrollLock
|
|
32504
|
-
}, /*#__PURE__*/createElement(Comp, _extends({}, props, {
|
|
32515
|
+
}, /*#__PURE__*/createElement(Comp, _extends$1({}, props, {
|
|
32505
32516
|
ref: ref,
|
|
32506
32517
|
"data-reach-dialog-overlay": ""
|
|
32507
32518
|
/*
|
|
@@ -32518,7 +32529,7 @@ var DialogInner = /*#__PURE__*/forwardRef(function DialogInner(_ref2, forwardedR
|
|
|
32518
32529
|
|
|
32519
32530
|
if (process.env.NODE_ENV !== "production") {
|
|
32520
32531
|
DialogOverlay.displayName = "DialogOverlay";
|
|
32521
|
-
DialogOverlay.propTypes = /*#__PURE__*/_extends({}, overlayPropTypes);
|
|
32532
|
+
DialogOverlay.propTypes = /*#__PURE__*/_extends$1({}, overlayPropTypes);
|
|
32522
32533
|
} ////////////////////////////////////////////////////////////////////////////////
|
|
32523
32534
|
|
|
32524
32535
|
/**
|
|
@@ -32545,7 +32556,7 @@ var DialogContent = /*#__PURE__*/forwardRef(function DialogContent(_ref3, forwar
|
|
|
32545
32556
|
_ref3.onKeyDown;
|
|
32546
32557
|
var props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
32547
32558
|
|
|
32548
|
-
return /*#__PURE__*/createElement(Comp, _extends({
|
|
32559
|
+
return /*#__PURE__*/createElement(Comp, _extends$1({
|
|
32549
32560
|
"aria-modal": "true",
|
|
32550
32561
|
role: "dialog",
|
|
32551
32562
|
tabIndex: -1
|
|
@@ -32593,7 +32604,7 @@ var Dialog = /*#__PURE__*/forwardRef(function Dialog(_ref4, forwardedRef) {
|
|
|
32593
32604
|
initialFocusRef: initialFocusRef,
|
|
32594
32605
|
isOpen: isOpen,
|
|
32595
32606
|
onDismiss: onDismiss
|
|
32596
|
-
}, /*#__PURE__*/createElement(DialogContent, _extends({
|
|
32607
|
+
}, /*#__PURE__*/createElement(DialogContent, _extends$1({
|
|
32597
32608
|
ref: forwardedRef
|
|
32598
32609
|
}, props)));
|
|
32599
32610
|
});
|
|
@@ -32758,7 +32769,7 @@ var Footer = styled.div.withConfig({
|
|
|
32758
32769
|
marginTop: "auto"
|
|
32759
32770
|
};
|
|
32760
32771
|
});
|
|
32761
|
-
var Header$
|
|
32772
|
+
var Header$4 = styled.div.withConfig({
|
|
32762
32773
|
displayName: "BottomSheetstyled__Header",
|
|
32763
32774
|
componentId: "sc-1v36wsf-4"
|
|
32764
32775
|
})(function (_ref4) {
|
|
@@ -32771,7 +32782,7 @@ var Header$2 = styled.div.withConfig({
|
|
|
32771
32782
|
paddingBottom: theme.space.none
|
|
32772
32783
|
};
|
|
32773
32784
|
});
|
|
32774
|
-
var Title = styled(Heading2).withConfig({
|
|
32785
|
+
var Title$1 = styled(Heading2).withConfig({
|
|
32775
32786
|
displayName: "BottomSheetstyled__Title",
|
|
32776
32787
|
componentId: "sc-1v36wsf-5"
|
|
32777
32788
|
})(function (_ref5) {
|
|
@@ -32905,8 +32916,8 @@ var BottomSheetParts = {
|
|
|
32905
32916
|
Overlay: OverlayPart,
|
|
32906
32917
|
Sheet: SheetPart,
|
|
32907
32918
|
ContentContainer: ContentContainer,
|
|
32908
|
-
Header: Header$
|
|
32909
|
-
Title: Title,
|
|
32919
|
+
Header: Header$4,
|
|
32920
|
+
Title: Title$1,
|
|
32910
32921
|
HelpText: HelpText,
|
|
32911
32922
|
Footer: Footer
|
|
32912
32923
|
};
|
|
@@ -33872,6 +33883,7 @@ var BaseDesktopMenu = /*#__PURE__*/React__default.forwardRef(function (_a, ref)
|
|
|
33872
33883
|
return renderMenuItem(menuItem, themeColorObject, 0, menuType);
|
|
33873
33884
|
}));
|
|
33874
33885
|
});
|
|
33886
|
+
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
33875
33887
|
var DesktopMenu = styled(BaseDesktopMenu).withConfig({
|
|
33876
33888
|
displayName: "DesktopMenu",
|
|
33877
33889
|
componentId: "sc-8mrjkc-3"
|
|
@@ -33883,7 +33895,7 @@ var DesktopMenu = styled(BaseDesktopMenu).withConfig({
|
|
|
33883
33895
|
}
|
|
33884
33896
|
});
|
|
33885
33897
|
|
|
33886
|
-
var NulogyLogo = function NulogyLogo() {
|
|
33898
|
+
var NulogyLogo$1 = function NulogyLogo() {
|
|
33887
33899
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
33888
33900
|
width: "76px",
|
|
33889
33901
|
height: "18px",
|
|
@@ -33937,6 +33949,7 @@ var NulogyLogo = function NulogyLogo() {
|
|
|
33937
33949
|
};
|
|
33938
33950
|
|
|
33939
33951
|
var borderStyle$1 = "1px solid #e4e7eb";
|
|
33952
|
+
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
33940
33953
|
var NulogyLogoContainer = function NulogyLogoContainer(_ref) {
|
|
33941
33954
|
var subText = _ref.subText,
|
|
33942
33955
|
height = _ref.height;
|
|
@@ -33952,7 +33965,7 @@ var NulogyLogoContainer = function NulogyLogoContainer(_ref) {
|
|
|
33952
33965
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
33953
33966
|
width: "76px",
|
|
33954
33967
|
height: "18px"
|
|
33955
|
-
}, /*#__PURE__*/React__default.createElement(NulogyLogo, null)), subText && (/*#__PURE__*/React__default.createElement(Text, {
|
|
33968
|
+
}, /*#__PURE__*/React__default.createElement(NulogyLogo$1, null)), subText && (/*#__PURE__*/React__default.createElement(Text, {
|
|
33956
33969
|
fontSize: "8px",
|
|
33957
33970
|
lineHeight: "10px",
|
|
33958
33971
|
color: "darkGrey",
|
|
@@ -34216,7 +34229,7 @@ var BrandLogoContainer = function BrandLogoContainer(_ref) {
|
|
|
34216
34229
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
34217
34230
|
maxWidth: MAX_LOGO_WIDTH,
|
|
34218
34231
|
maxHeight: MAX_LOGO_HEIGHT
|
|
34219
|
-
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
34232
|
+
}, /*#__PURE__*/React__default.createElement(Link$1, {
|
|
34220
34233
|
"aria-label": "Home",
|
|
34221
34234
|
href: brandingLinkHref,
|
|
34222
34235
|
to: brandingLinkTo,
|
|
@@ -34464,7 +34477,7 @@ var BaseNavBarSearch = function BaseNavBarSearch(_ref) {
|
|
|
34464
34477
|
};
|
|
34465
34478
|
var _useTranslation = useTranslation(),
|
|
34466
34479
|
t = _useTranslation.t;
|
|
34467
|
-
return /*#__PURE__*/React__default.createElement("form", _extends$
|
|
34480
|
+
return /*#__PURE__*/React__default.createElement("form", _extends$e({}, props, {
|
|
34468
34481
|
onSubmit: handleOnSubmit
|
|
34469
34482
|
}), /*#__PURE__*/React__default.createElement(Flex, {
|
|
34470
34483
|
role: "search"
|
|
@@ -34661,7 +34674,7 @@ var getSharedStyles = function getSharedStyles(theme) {
|
|
|
34661
34674
|
padding: theme.space.x1 + " " + theme.space.x3
|
|
34662
34675
|
};
|
|
34663
34676
|
};
|
|
34664
|
-
var TopLevelLink = styled(Link).withConfig({
|
|
34677
|
+
var TopLevelLink = styled(Link$1).withConfig({
|
|
34665
34678
|
displayName: "MobileMenu__TopLevelLink",
|
|
34666
34679
|
componentId: "sc-18t6zrc-1"
|
|
34667
34680
|
})(function (_ref2) {
|
|
@@ -34851,7 +34864,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
|
|
|
34851
34864
|
height: "40px",
|
|
34852
34865
|
alignItems: "center",
|
|
34853
34866
|
justifyContent: "center"
|
|
34854
|
-
}, /*#__PURE__*/React__default.createElement(NulogyLogo, null), subtext && (/*#__PURE__*/React__default.createElement(Text, {
|
|
34867
|
+
}, /*#__PURE__*/React__default.createElement(NulogyLogo$1, null), subtext && (/*#__PURE__*/React__default.createElement(Text, {
|
|
34855
34868
|
fontSize: "8px",
|
|
34856
34869
|
lineHeight: "0",
|
|
34857
34870
|
color: "darkGrey",
|
|
@@ -34860,6 +34873,7 @@ var BaseMobileMenu = function BaseMobileMenu(_a) {
|
|
|
34860
34873
|
letterSpacing: ".5px"
|
|
34861
34874
|
}, subtext)))));
|
|
34862
34875
|
};
|
|
34876
|
+
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
34863
34877
|
var MobileMenu = styled(BaseMobileMenu).withConfig({
|
|
34864
34878
|
displayName: "MobileMenu",
|
|
34865
34879
|
componentId: "sc-18t6zrc-6"
|
|
@@ -34999,6 +35013,7 @@ var SmallNavBarNoState = function SmallNavBarNoState(_a) {
|
|
|
34999
35013
|
/* eslint-enable react/destructuring-assignment */
|
|
35000
35014
|
var SmallNavBar = withMenuState(SmallNavBarNoState);
|
|
35001
35015
|
|
|
35016
|
+
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
35002
35017
|
var NAVBAR_HEIGHT = "56px";
|
|
35003
35018
|
var themeColorObject = {
|
|
35004
35019
|
color: "darkBlue",
|
|
@@ -35098,6 +35113,7 @@ var BaseNavBar = function BaseNavBar(_a) {
|
|
|
35098
35113
|
}, props));
|
|
35099
35114
|
});
|
|
35100
35115
|
};
|
|
35116
|
+
/** @deprecated The BrandedNavBar component is deprecated. Use the Navigation component instead. */
|
|
35101
35117
|
var NavBar = styled(BaseNavBar).withConfig({
|
|
35102
35118
|
displayName: "NavBar",
|
|
35103
35119
|
componentId: "sc-cszq6w-0"
|
|
@@ -43717,8 +43733,6 @@ var ApplicationFrame = function ApplicationFrame(_a) {
|
|
|
43717
43733
|
flexDirection: "column",
|
|
43718
43734
|
minHeight: "100vh"
|
|
43719
43735
|
}, props), /*#__PURE__*/React__default.createElement(Box, {
|
|
43720
|
-
position: "sticky",
|
|
43721
|
-
top: "0",
|
|
43722
43736
|
zIndex: "navBar"
|
|
43723
43737
|
}, environment && /*#__PURE__*/React__default.createElement(EnvironmentBanner, null, environment), navBar), /*#__PURE__*/React__default.createElement(Flex, {
|
|
43724
43738
|
flexDirection: "column",
|
|
@@ -43727,7 +43741,40 @@ var ApplicationFrame = function ApplicationFrame(_a) {
|
|
|
43727
43741
|
}, children));
|
|
43728
43742
|
};
|
|
43729
43743
|
|
|
43730
|
-
var
|
|
43744
|
+
var RightAngleTriangle = styled(Box).withConfig({
|
|
43745
|
+
displayName: "Decorations__RightAngleTriangle",
|
|
43746
|
+
componentId: "sc-16th6oj-0"
|
|
43747
|
+
})(["position:absolute;bottom:0;right:0;width:100%;clip-path:polygon(100% 0,0 100%,100% 100%);"]);
|
|
43748
|
+
function BackgroundTriangles(props) {
|
|
43749
|
+
var theme = useTheme();
|
|
43750
|
+
return /*#__PURE__*/React__default.createElement(Box, Object.assign({
|
|
43751
|
+
"aria-hidden": "true",
|
|
43752
|
+
transition: "max-width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955)",
|
|
43753
|
+
position: "absolute",
|
|
43754
|
+
bottom: 0,
|
|
43755
|
+
right: 0,
|
|
43756
|
+
height: "100%",
|
|
43757
|
+
maxWidth: {
|
|
43758
|
+
extraSmall: "320px",
|
|
43759
|
+
small: "768px",
|
|
43760
|
+
medium: "1024px",
|
|
43761
|
+
large: "1280px"
|
|
43762
|
+
},
|
|
43763
|
+
width: "90%"
|
|
43764
|
+
}, props), /*#__PURE__*/React__default.createElement(RightAngleTriangle, {
|
|
43765
|
+
"aria-hidden": "true",
|
|
43766
|
+
height: "44.85%",
|
|
43767
|
+
opacity: "0.5",
|
|
43768
|
+
background: "linear-gradient(178.25deg, rgba(192, 200, 209, 0.5) 62.98%, rgba(225, 235, 250, 0.25) 98.52%)"
|
|
43769
|
+
}), /*#__PURE__*/React__default.createElement(RightAngleTriangle, {
|
|
43770
|
+
"aria-hidden": "true",
|
|
43771
|
+
height: "19.85%",
|
|
43772
|
+
opacity: "0.25",
|
|
43773
|
+
background: "linear-gradient(196.88deg, " + theme.colors.grey + " 11.92%, rgba(0, 67, 143, 0) 88.36%)"
|
|
43774
|
+
}));
|
|
43775
|
+
}
|
|
43776
|
+
|
|
43777
|
+
var Header$3 = function Header(_a) {
|
|
43731
43778
|
var _b, _c;
|
|
43732
43779
|
var background = _a.background,
|
|
43733
43780
|
renderBreadcrumbs = _a.renderBreadcrumbs,
|
|
@@ -43783,28 +43830,6 @@ var Header$1 = function Header(_a) {
|
|
|
43783
43830
|
zIndex: 1
|
|
43784
43831
|
}));
|
|
43785
43832
|
};
|
|
43786
|
-
var RightAngleTriangle = styled(Box).withConfig({
|
|
43787
|
-
displayName: "Header__RightAngleTriangle",
|
|
43788
|
-
componentId: "sc-1kuwqm0-0"
|
|
43789
|
-
})(["position:absolute;bottom:0;right:0;width:100%;clip-path:polygon(100% 0,0 100%,100% 100%);"]);
|
|
43790
|
-
var BackgroundTriangles = function BackgroundTriangles(props) {
|
|
43791
|
-
var theme = useTheme();
|
|
43792
|
-
return /*#__PURE__*/React__default.createElement(Box, Object.assign({
|
|
43793
|
-
position: "absolute",
|
|
43794
|
-
bottom: 0,
|
|
43795
|
-
right: 0,
|
|
43796
|
-
height: "100%",
|
|
43797
|
-
minWidth: "55%"
|
|
43798
|
-
}, props), /*#__PURE__*/React__default.createElement(RightAngleTriangle, {
|
|
43799
|
-
height: "33.33%",
|
|
43800
|
-
opacity: "0.5",
|
|
43801
|
-
background: "linear-gradient(178.25deg, rgba(192, 200, 209, 0.5) 62.98%, rgba(225, 235, 250, 0.25) 98.52%)"
|
|
43802
|
-
}), /*#__PURE__*/React__default.createElement(RightAngleTriangle, {
|
|
43803
|
-
height: "17%",
|
|
43804
|
-
opacity: "0.25",
|
|
43805
|
-
background: "linear-gradient(196.88deg, " + theme.colors.grey + " 11.92%, rgba(0, 67, 143, 0) 88.36%)"
|
|
43806
|
-
}));
|
|
43807
|
-
};
|
|
43808
43833
|
|
|
43809
43834
|
var Page = function Page(_a) {
|
|
43810
43835
|
var breadcrumbs = _a.breadcrumbs,
|
|
@@ -43817,7 +43842,7 @@ var Page = function Page(_a) {
|
|
|
43817
43842
|
return /*#__PURE__*/React__default.createElement(Flex, Object.assign({
|
|
43818
43843
|
flexDirection: "column",
|
|
43819
43844
|
flexGrow: fullHeight ? 1 : 0
|
|
43820
|
-
}, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && (/*#__PURE__*/React__default.createElement(Header$
|
|
43845
|
+
}, rest), renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && (/*#__PURE__*/React__default.createElement(Header$3, {
|
|
43821
43846
|
renderBreadcrumbs: function renderBreadcrumbs() {
|
|
43822
43847
|
return breadcrumbs;
|
|
43823
43848
|
},
|
|
@@ -44398,72 +44423,2307 @@ function ModalWrapper(_ref5) {
|
|
|
44398
44423
|
}
|
|
44399
44424
|
Modal.setAppElement = ReactModal.setAppElement;
|
|
44400
44425
|
|
|
44401
|
-
function
|
|
44402
|
-
|
|
44403
|
-
var
|
|
44404
|
-
|
|
44405
|
-
|
|
44406
|
-
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
44407
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44408
|
-
}));
|
|
44426
|
+
function _extends() {
|
|
44427
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
44428
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
44429
|
+
var t = arguments[e];
|
|
44430
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
44409
44431
|
}
|
|
44410
|
-
|
|
44411
|
-
|
|
44432
|
+
return n;
|
|
44433
|
+
}, _extends.apply(null, arguments);
|
|
44434
|
+
}
|
|
44435
|
+
|
|
44436
|
+
const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ createContext(undefined);
|
|
44437
|
+
/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
|
|
44438
|
+
const globalDir = useContext($f631663db3294ace$var$DirectionContext);
|
|
44439
|
+
return localDir || globalDir || 'ltr';
|
|
44440
|
+
}
|
|
44441
|
+
|
|
44442
|
+
// We have resorted to returning slots directly rather than exposing primitives that can then
|
|
44443
|
+
// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
|
|
44444
|
+
// This is because we encountered issues with generic types that cannot be statically analysed
|
|
44445
|
+
// due to creating them dynamically via createCollection.
|
|
44446
|
+
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
44447
|
+
/* -----------------------------------------------------------------------------------------------
|
|
44448
|
+
* CollectionProvider
|
|
44449
|
+
* ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
|
|
44450
|
+
const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
|
|
44451
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
|
|
44452
|
+
collectionRef: {
|
|
44453
|
+
current: null
|
|
44454
|
+
},
|
|
44455
|
+
itemMap: new Map()
|
|
44412
44456
|
});
|
|
44413
|
-
|
|
44414
|
-
|
|
44457
|
+
const CollectionProvider = (props)=>{
|
|
44458
|
+
const { scope: scope , children: children } = props;
|
|
44459
|
+
const ref = React__default.useRef(null);
|
|
44460
|
+
const itemMap = React__default.useRef(new Map()).current;
|
|
44461
|
+
return /*#__PURE__*/ React__default.createElement(CollectionProviderImpl, {
|
|
44462
|
+
scope: scope,
|
|
44463
|
+
itemMap: itemMap,
|
|
44464
|
+
collectionRef: ref
|
|
44465
|
+
}, children);
|
|
44466
|
+
};
|
|
44467
|
+
/* -----------------------------------------------------------------------------------------------
|
|
44468
|
+
* CollectionSlot
|
|
44469
|
+
* ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
|
|
44470
|
+
const CollectionSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
44471
|
+
const { scope: scope , children: children } = props;
|
|
44472
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
44473
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.collectionRef);
|
|
44474
|
+
return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
|
|
44475
|
+
ref: composedRefs
|
|
44476
|
+
}, children);
|
|
44477
|
+
});
|
|
44478
|
+
/* -----------------------------------------------------------------------------------------------
|
|
44479
|
+
* CollectionItem
|
|
44480
|
+
* ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
|
|
44481
|
+
const ITEM_DATA_ATTR = 'data-radix-collection-item';
|
|
44482
|
+
const CollectionItemSlot = /*#__PURE__*/ React__default.forwardRef((props, forwardedRef)=>{
|
|
44483
|
+
const { scope: scope , children: children , ...itemData } = props;
|
|
44484
|
+
const ref = React__default.useRef(null);
|
|
44485
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
44486
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
44487
|
+
React__default.useEffect(()=>{
|
|
44488
|
+
context.itemMap.set(ref, {
|
|
44489
|
+
ref: ref,
|
|
44490
|
+
...itemData
|
|
44491
|
+
});
|
|
44492
|
+
return ()=>void context.itemMap.delete(ref)
|
|
44493
|
+
;
|
|
44494
|
+
});
|
|
44495
|
+
return /*#__PURE__*/ React__default.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, {
|
|
44496
|
+
[ITEM_DATA_ATTR]: '',
|
|
44497
|
+
ref: composedRefs
|
|
44498
|
+
}, children);
|
|
44499
|
+
});
|
|
44500
|
+
/* -----------------------------------------------------------------------------------------------
|
|
44501
|
+
* useCollection
|
|
44502
|
+
* ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
|
|
44503
|
+
const context = useCollectionContext(name + 'CollectionConsumer', scope);
|
|
44504
|
+
const getItems = React__default.useCallback(()=>{
|
|
44505
|
+
const collectionNode = context.collectionRef.current;
|
|
44506
|
+
if (!collectionNode) return [];
|
|
44507
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
44508
|
+
const items = Array.from(context.itemMap.values());
|
|
44509
|
+
const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
44510
|
+
);
|
|
44511
|
+
return orderedItems;
|
|
44512
|
+
}, [
|
|
44513
|
+
context.collectionRef,
|
|
44514
|
+
context.itemMap
|
|
44515
|
+
]);
|
|
44516
|
+
return getItems;
|
|
44517
|
+
}
|
|
44518
|
+
return [
|
|
44519
|
+
{
|
|
44520
|
+
Provider: CollectionProvider,
|
|
44521
|
+
Slot: CollectionSlot,
|
|
44522
|
+
ItemSlot: CollectionItemSlot
|
|
44523
|
+
},
|
|
44524
|
+
useCollection,
|
|
44525
|
+
createCollectionScope
|
|
44526
|
+
];
|
|
44415
44527
|
}
|
|
44416
44528
|
|
|
44417
|
-
|
|
44418
|
-
|
|
44419
|
-
|
|
44420
|
-
|
|
44421
|
-
|
|
44422
|
-
|
|
44423
|
-
|
|
44424
|
-
|
|
44425
|
-
|
|
44426
|
-
|
|
44427
|
-
|
|
44428
|
-
|
|
44429
|
-
|
|
44430
|
-
|
|
44529
|
+
function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
|
|
44530
|
+
const ref = useRef({
|
|
44531
|
+
value: value,
|
|
44532
|
+
previous: value
|
|
44533
|
+
}); // We compare values before making an update to ensure that
|
|
44534
|
+
// a change has been made. This ensures the previous value is
|
|
44535
|
+
// persisted correctly between renders.
|
|
44536
|
+
return useMemo(()=>{
|
|
44537
|
+
if (ref.current.value !== value) {
|
|
44538
|
+
ref.current.previous = ref.current.value;
|
|
44539
|
+
ref.current.value = value;
|
|
44540
|
+
}
|
|
44541
|
+
return ref.current.previous;
|
|
44542
|
+
}, [
|
|
44543
|
+
value
|
|
44544
|
+
]);
|
|
44545
|
+
}
|
|
44546
|
+
|
|
44547
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44548
|
+
* NavigationMenu
|
|
44549
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$NAVIGATION_MENU_NAME = 'NavigationMenu';
|
|
44550
|
+
const [$322c88a641701f3b$var$Collection, $322c88a641701f3b$var$useCollection, $322c88a641701f3b$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
|
|
44551
|
+
const [$322c88a641701f3b$var$FocusGroupCollection, $322c88a641701f3b$var$useFocusGroupCollection, $322c88a641701f3b$var$createFocusGroupCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
|
|
44552
|
+
const [$322c88a641701f3b$var$createNavigationMenuContext, $322c88a641701f3b$export$fb8ea5af8c9fcdf0] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($322c88a641701f3b$var$NAVIGATION_MENU_NAME, [
|
|
44553
|
+
$322c88a641701f3b$var$createCollectionScope,
|
|
44554
|
+
$322c88a641701f3b$var$createFocusGroupCollectionScope
|
|
44555
|
+
]);
|
|
44556
|
+
const [$322c88a641701f3b$var$NavigationMenuProviderImpl, $322c88a641701f3b$var$useNavigationMenuContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
|
|
44557
|
+
const [$322c88a641701f3b$var$ViewportContentProvider, $322c88a641701f3b$var$useViewportContentContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$NAVIGATION_MENU_NAME);
|
|
44558
|
+
const $322c88a641701f3b$export$5b2278cf1e8bcae2 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44559
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , value: valueProp , onValueChange: onValueChange , defaultValue: defaultValue , delayDuration: delayDuration = 200 , skipDelayDuration: skipDelayDuration = 300 , orientation: orientation = 'horizontal' , dir: dir , ...NavigationMenuProps } = props;
|
|
44560
|
+
const [navigationMenu, setNavigationMenu] = useState(null);
|
|
44561
|
+
const composedRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, (node)=>setNavigationMenu(node)
|
|
44562
|
+
);
|
|
44563
|
+
const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
|
|
44564
|
+
const openTimerRef = useRef(0);
|
|
44565
|
+
const closeTimerRef = useRef(0);
|
|
44566
|
+
const skipDelayTimerRef = useRef(0);
|
|
44567
|
+
const [isOpenDelayed, setIsOpenDelayed] = useState(true);
|
|
44568
|
+
const [value1 = '', setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
44569
|
+
prop: valueProp,
|
|
44570
|
+
onChange: (value)=>{
|
|
44571
|
+
const isOpen = value !== '';
|
|
44572
|
+
const hasSkipDelayDuration = skipDelayDuration > 0;
|
|
44573
|
+
if (isOpen) {
|
|
44574
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
44575
|
+
if (hasSkipDelayDuration) setIsOpenDelayed(false);
|
|
44576
|
+
} else {
|
|
44577
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
44578
|
+
skipDelayTimerRef.current = window.setTimeout(()=>setIsOpenDelayed(true)
|
|
44579
|
+
, skipDelayDuration);
|
|
44580
|
+
}
|
|
44581
|
+
onValueChange === null || onValueChange === void 0 || onValueChange(value);
|
|
44582
|
+
},
|
|
44583
|
+
defaultProp: defaultValue
|
|
44584
|
+
});
|
|
44585
|
+
const startCloseTimer = useCallback(()=>{
|
|
44586
|
+
window.clearTimeout(closeTimerRef.current);
|
|
44587
|
+
closeTimerRef.current = window.setTimeout(()=>setValue('')
|
|
44588
|
+
, 150);
|
|
44589
|
+
}, [
|
|
44590
|
+
setValue
|
|
44591
|
+
]);
|
|
44592
|
+
const handleOpen = useCallback((itemValue)=>{
|
|
44593
|
+
window.clearTimeout(closeTimerRef.current);
|
|
44594
|
+
setValue(itemValue);
|
|
44595
|
+
}, [
|
|
44596
|
+
setValue
|
|
44597
|
+
]);
|
|
44598
|
+
const handleDelayedOpen = useCallback((itemValue)=>{
|
|
44599
|
+
const isOpenItem = value1 === itemValue;
|
|
44600
|
+
if (isOpenItem) // If the item is already open (e.g. we're transitioning from the content to the trigger)
|
|
44601
|
+
// then we want to clear the close timer immediately.
|
|
44602
|
+
window.clearTimeout(closeTimerRef.current);
|
|
44603
|
+
else openTimerRef.current = window.setTimeout(()=>{
|
|
44604
|
+
window.clearTimeout(closeTimerRef.current);
|
|
44605
|
+
setValue(itemValue);
|
|
44606
|
+
}, delayDuration);
|
|
44607
|
+
}, [
|
|
44608
|
+
value1,
|
|
44609
|
+
setValue,
|
|
44610
|
+
delayDuration
|
|
44611
|
+
]);
|
|
44612
|
+
useEffect(()=>{
|
|
44613
|
+
return ()=>{
|
|
44614
|
+
window.clearTimeout(openTimerRef.current);
|
|
44615
|
+
window.clearTimeout(closeTimerRef.current);
|
|
44616
|
+
window.clearTimeout(skipDelayTimerRef.current);
|
|
44617
|
+
};
|
|
44618
|
+
}, []);
|
|
44619
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$NavigationMenuProvider, {
|
|
44620
|
+
scope: __scopeNavigationMenu,
|
|
44621
|
+
isRootMenu: true,
|
|
44622
|
+
value: value1,
|
|
44623
|
+
dir: direction,
|
|
44624
|
+
orientation: orientation,
|
|
44625
|
+
rootNavigationMenu: navigationMenu,
|
|
44626
|
+
onTriggerEnter: (itemValue)=>{
|
|
44627
|
+
window.clearTimeout(openTimerRef.current);
|
|
44628
|
+
if (isOpenDelayed) handleDelayedOpen(itemValue);
|
|
44629
|
+
else handleOpen(itemValue);
|
|
44630
|
+
},
|
|
44631
|
+
onTriggerLeave: ()=>{
|
|
44632
|
+
window.clearTimeout(openTimerRef.current);
|
|
44633
|
+
startCloseTimer();
|
|
44634
|
+
},
|
|
44635
|
+
onContentEnter: ()=>window.clearTimeout(closeTimerRef.current)
|
|
44636
|
+
,
|
|
44637
|
+
onContentLeave: startCloseTimer,
|
|
44638
|
+
onItemSelect: (itemValue)=>{
|
|
44639
|
+
setValue((prevValue)=>prevValue === itemValue ? '' : itemValue
|
|
44640
|
+
);
|
|
44641
|
+
},
|
|
44642
|
+
onItemDismiss: ()=>setValue('')
|
|
44643
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.nav, _extends({
|
|
44644
|
+
"aria-label": "Main",
|
|
44645
|
+
"data-orientation": orientation,
|
|
44646
|
+
dir: direction
|
|
44647
|
+
}, NavigationMenuProps, {
|
|
44648
|
+
ref: composedRef
|
|
44649
|
+
})));
|
|
44650
|
+
});
|
|
44651
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44652
|
+
* NavigationMenuSub
|
|
44653
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$SUB_NAME = 'NavigationMenuSub';
|
|
44654
|
+
const $322c88a641701f3b$export$5958edd6c4ee7c79 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44655
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , value: valueProp , onValueChange: onValueChange , defaultValue: defaultValue , orientation: orientation = 'horizontal' , ...subProps } = props;
|
|
44656
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$SUB_NAME, __scopeNavigationMenu);
|
|
44657
|
+
const [value = '', setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
44658
|
+
prop: valueProp,
|
|
44659
|
+
onChange: onValueChange,
|
|
44660
|
+
defaultProp: defaultValue
|
|
44661
|
+
});
|
|
44662
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$NavigationMenuProvider, {
|
|
44663
|
+
scope: __scopeNavigationMenu,
|
|
44664
|
+
isRootMenu: false,
|
|
44665
|
+
value: value,
|
|
44666
|
+
dir: context.dir,
|
|
44667
|
+
orientation: orientation,
|
|
44668
|
+
rootNavigationMenu: context.rootNavigationMenu,
|
|
44669
|
+
onTriggerEnter: (itemValue)=>setValue(itemValue)
|
|
44670
|
+
,
|
|
44671
|
+
onItemSelect: (itemValue)=>setValue(itemValue)
|
|
44672
|
+
,
|
|
44673
|
+
onItemDismiss: ()=>setValue('')
|
|
44674
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
44675
|
+
"data-orientation": orientation
|
|
44676
|
+
}, subProps, {
|
|
44677
|
+
ref: forwardedRef
|
|
44678
|
+
})));
|
|
44679
|
+
});
|
|
44680
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$NavigationMenuProvider = (props)=>{
|
|
44681
|
+
const { scope: scope , isRootMenu: isRootMenu , rootNavigationMenu: rootNavigationMenu , dir: dir , orientation: orientation , children: children , value: value , onItemSelect: onItemSelect , onItemDismiss: onItemDismiss , onTriggerEnter: onTriggerEnter , onTriggerLeave: onTriggerLeave , onContentEnter: onContentEnter , onContentLeave: onContentLeave } = props;
|
|
44682
|
+
const [viewport, setViewport] = useState(null);
|
|
44683
|
+
const [viewportContent, setViewportContent] = useState(new Map());
|
|
44684
|
+
const [indicatorTrack, setIndicatorTrack] = useState(null);
|
|
44685
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$NavigationMenuProviderImpl, {
|
|
44686
|
+
scope: scope,
|
|
44687
|
+
isRootMenu: isRootMenu,
|
|
44688
|
+
rootNavigationMenu: rootNavigationMenu,
|
|
44689
|
+
value: value,
|
|
44690
|
+
previousValue: $010c2913dbd2fe3d$export$5cae361ad82dce8b(value),
|
|
44691
|
+
baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
|
|
44692
|
+
dir: dir,
|
|
44693
|
+
orientation: orientation,
|
|
44694
|
+
viewport: viewport,
|
|
44695
|
+
onViewportChange: setViewport,
|
|
44696
|
+
indicatorTrack: indicatorTrack,
|
|
44697
|
+
onIndicatorTrackChange: setIndicatorTrack,
|
|
44698
|
+
onTriggerEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerEnter),
|
|
44699
|
+
onTriggerLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onTriggerLeave),
|
|
44700
|
+
onContentEnter: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentEnter),
|
|
44701
|
+
onContentLeave: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onContentLeave),
|
|
44702
|
+
onItemSelect: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemSelect),
|
|
44703
|
+
onItemDismiss: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onItemDismiss),
|
|
44704
|
+
onViewportContentChange: useCallback((contentValue, contentData)=>{
|
|
44705
|
+
setViewportContent((prevContent)=>{
|
|
44706
|
+
prevContent.set(contentValue, contentData);
|
|
44707
|
+
return new Map(prevContent);
|
|
44708
|
+
});
|
|
44709
|
+
}, []),
|
|
44710
|
+
onViewportContentRemove: useCallback((contentValue)=>{
|
|
44711
|
+
setViewportContent((prevContent)=>{
|
|
44712
|
+
if (!prevContent.has(contentValue)) return prevContent;
|
|
44713
|
+
prevContent.delete(contentValue);
|
|
44714
|
+
return new Map(prevContent);
|
|
44715
|
+
});
|
|
44716
|
+
}, [])
|
|
44717
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$Collection.Provider, {
|
|
44718
|
+
scope: scope
|
|
44719
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$ViewportContentProvider, {
|
|
44720
|
+
scope: scope,
|
|
44721
|
+
items: viewportContent
|
|
44722
|
+
}, children)));
|
|
44431
44723
|
};
|
|
44724
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44725
|
+
* NavigationMenuList
|
|
44726
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$LIST_NAME = 'NavigationMenuList';
|
|
44727
|
+
const $322c88a641701f3b$export$c361068a95fd2286 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44728
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , ...listProps } = props;
|
|
44729
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$LIST_NAME, __scopeNavigationMenu);
|
|
44730
|
+
const list = /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.ul, _extends({
|
|
44731
|
+
"data-orientation": context.orientation
|
|
44732
|
+
}, listProps, {
|
|
44733
|
+
ref: forwardedRef
|
|
44734
|
+
}));
|
|
44735
|
+
return /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, {
|
|
44736
|
+
style: {
|
|
44737
|
+
position: 'relative'
|
|
44738
|
+
},
|
|
44739
|
+
ref: context.onIndicatorTrackChange
|
|
44740
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$Collection.Slot, {
|
|
44741
|
+
scope: __scopeNavigationMenu
|
|
44742
|
+
}, context.isRootMenu ? /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroup, {
|
|
44743
|
+
asChild: true
|
|
44744
|
+
}, list) : list));
|
|
44745
|
+
});
|
|
44746
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44747
|
+
* NavigationMenuItem
|
|
44748
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$ITEM_NAME = 'NavigationMenuItem';
|
|
44749
|
+
const [$322c88a641701f3b$var$NavigationMenuItemContextProvider, $322c88a641701f3b$var$useNavigationMenuItemContext] = $322c88a641701f3b$var$createNavigationMenuContext($322c88a641701f3b$var$ITEM_NAME);
|
|
44750
|
+
const $322c88a641701f3b$export$ffdbb83a2de845c2 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44751
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , value: valueProp , ...itemProps } = props;
|
|
44752
|
+
const autoValue = $1746a345f3d73bb7$export$f680877a34711e37(); // We need to provide an initial deterministic value as `useId` will return
|
|
44753
|
+
// empty string on the first render and we don't want to match our internal "closed" value.
|
|
44754
|
+
const value = valueProp || autoValue || 'LEGACY_REACT_AUTO_VALUE';
|
|
44755
|
+
const contentRef = useRef(null);
|
|
44756
|
+
const triggerRef = useRef(null);
|
|
44757
|
+
const focusProxyRef = useRef(null);
|
|
44758
|
+
const restoreContentTabOrderRef = useRef(()=>{});
|
|
44759
|
+
const wasEscapeCloseRef = useRef(false);
|
|
44760
|
+
const handleContentEntry = useCallback((side = 'start')=>{
|
|
44761
|
+
if (contentRef.current) {
|
|
44762
|
+
restoreContentTabOrderRef.current();
|
|
44763
|
+
const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
|
|
44764
|
+
if (candidates.length) $322c88a641701f3b$var$focusFirst(side === 'start' ? candidates : candidates.reverse());
|
|
44765
|
+
}
|
|
44766
|
+
}, []);
|
|
44767
|
+
const handleContentExit = useCallback(()=>{
|
|
44768
|
+
if (contentRef.current) {
|
|
44769
|
+
const candidates = $322c88a641701f3b$var$getTabbableCandidates(contentRef.current);
|
|
44770
|
+
if (candidates.length) restoreContentTabOrderRef.current = $322c88a641701f3b$var$removeFromTabOrder(candidates);
|
|
44771
|
+
}
|
|
44772
|
+
}, []);
|
|
44773
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$NavigationMenuItemContextProvider, {
|
|
44774
|
+
scope: __scopeNavigationMenu,
|
|
44775
|
+
value: value,
|
|
44776
|
+
triggerRef: triggerRef,
|
|
44777
|
+
contentRef: contentRef,
|
|
44778
|
+
focusProxyRef: focusProxyRef,
|
|
44779
|
+
wasEscapeCloseRef: wasEscapeCloseRef,
|
|
44780
|
+
onEntryKeyDown: handleContentEntry,
|
|
44781
|
+
onFocusProxyEnter: handleContentEntry,
|
|
44782
|
+
onRootContentClose: handleContentExit,
|
|
44783
|
+
onContentFocusOutside: handleContentExit
|
|
44784
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.li, _extends({}, itemProps, {
|
|
44785
|
+
ref: forwardedRef
|
|
44786
|
+
})));
|
|
44787
|
+
});
|
|
44788
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44789
|
+
* NavigationMenuTrigger
|
|
44790
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$TRIGGER_NAME = 'NavigationMenuTrigger';
|
|
44791
|
+
const $322c88a641701f3b$export$37fe8002734d8f2 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44792
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , disabled: disabled , ...triggerProps } = props;
|
|
44793
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
|
|
44794
|
+
const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$TRIGGER_NAME, props.__scopeNavigationMenu);
|
|
44795
|
+
const ref = useRef(null);
|
|
44796
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, itemContext.triggerRef, forwardedRef);
|
|
44797
|
+
const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, itemContext.value);
|
|
44798
|
+
const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, itemContext.value);
|
|
44799
|
+
const hasPointerMoveOpenedRef = useRef(false);
|
|
44800
|
+
const wasClickCloseRef = useRef(false);
|
|
44801
|
+
const open = itemContext.value === context.value;
|
|
44802
|
+
return /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($322c88a641701f3b$var$Collection.ItemSlot, {
|
|
44803
|
+
scope: __scopeNavigationMenu,
|
|
44804
|
+
value: itemContext.value
|
|
44805
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroupItem, {
|
|
44806
|
+
asChild: true
|
|
44807
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
44808
|
+
id: triggerId,
|
|
44809
|
+
disabled: disabled,
|
|
44810
|
+
"data-disabled": disabled ? '' : undefined,
|
|
44811
|
+
"data-state": $322c88a641701f3b$var$getOpenState(open),
|
|
44812
|
+
"aria-expanded": open,
|
|
44813
|
+
"aria-controls": contentId
|
|
44814
|
+
}, triggerProps, {
|
|
44815
|
+
ref: composedRefs,
|
|
44816
|
+
onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, ()=>{
|
|
44817
|
+
wasClickCloseRef.current = false;
|
|
44818
|
+
itemContext.wasEscapeCloseRef.current = false;
|
|
44819
|
+
}),
|
|
44820
|
+
onPointerMove: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $322c88a641701f3b$var$whenMouse(()=>{
|
|
44821
|
+
if (disabled || wasClickCloseRef.current || itemContext.wasEscapeCloseRef.current || hasPointerMoveOpenedRef.current) return;
|
|
44822
|
+
context.onTriggerEnter(itemContext.value);
|
|
44823
|
+
hasPointerMoveOpenedRef.current = true;
|
|
44824
|
+
})),
|
|
44825
|
+
onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(()=>{
|
|
44826
|
+
if (disabled) return;
|
|
44827
|
+
context.onTriggerLeave();
|
|
44828
|
+
hasPointerMoveOpenedRef.current = false;
|
|
44829
|
+
})),
|
|
44830
|
+
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, ()=>{
|
|
44831
|
+
context.onItemSelect(itemContext.value);
|
|
44832
|
+
wasClickCloseRef.current = open;
|
|
44833
|
+
}),
|
|
44834
|
+
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
|
|
44835
|
+
const verticalEntryKey = context.dir === 'rtl' ? 'ArrowLeft' : 'ArrowRight';
|
|
44836
|
+
const entryKey = {
|
|
44837
|
+
horizontal: 'ArrowDown',
|
|
44838
|
+
vertical: verticalEntryKey
|
|
44839
|
+
}[context.orientation];
|
|
44840
|
+
if (open && event.key === entryKey) {
|
|
44841
|
+
itemContext.onEntryKeyDown(); // Prevent FocusGroupItem from handling the event
|
|
44842
|
+
event.preventDefault();
|
|
44843
|
+
}
|
|
44844
|
+
})
|
|
44845
|
+
})))), open && /*#__PURE__*/ createElement(Fragment, null, /*#__PURE__*/ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
44846
|
+
"aria-hidden": true,
|
|
44847
|
+
tabIndex: 0,
|
|
44848
|
+
ref: itemContext.focusProxyRef,
|
|
44849
|
+
onFocus: (event)=>{
|
|
44850
|
+
const content = itemContext.contentRef.current;
|
|
44851
|
+
const prevFocusedElement = event.relatedTarget;
|
|
44852
|
+
const wasTriggerFocused = prevFocusedElement === ref.current;
|
|
44853
|
+
const wasFocusFromContent = content === null || content === void 0 ? void 0 : content.contains(prevFocusedElement);
|
|
44854
|
+
if (wasTriggerFocused || !wasFocusFromContent) itemContext.onFocusProxyEnter(wasTriggerFocused ? 'start' : 'end');
|
|
44855
|
+
}
|
|
44856
|
+
}), context.viewport && /*#__PURE__*/ createElement("span", {
|
|
44857
|
+
"aria-owns": contentId
|
|
44858
|
+
})));
|
|
44859
|
+
});
|
|
44860
|
+
const $322c88a641701f3b$var$LINK_SELECT = 'navigationMenu.linkSelect';
|
|
44861
|
+
const $322c88a641701f3b$export$6893bf21536567da = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44862
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , active: active , onSelect: onSelect , ...linkProps } = props;
|
|
44863
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroupItem, {
|
|
44864
|
+
asChild: true
|
|
44865
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.a, _extends({
|
|
44866
|
+
"data-active": active ? '' : undefined,
|
|
44867
|
+
"aria-current": active ? 'page' : undefined
|
|
44868
|
+
}, linkProps, {
|
|
44869
|
+
ref: forwardedRef,
|
|
44870
|
+
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event1)=>{
|
|
44871
|
+
const target = event1.target;
|
|
44872
|
+
const linkSelectEvent = new CustomEvent($322c88a641701f3b$var$LINK_SELECT, {
|
|
44873
|
+
bubbles: true,
|
|
44874
|
+
cancelable: true
|
|
44875
|
+
});
|
|
44876
|
+
target.addEventListener($322c88a641701f3b$var$LINK_SELECT, (event)=>onSelect === null || onSelect === void 0 ? void 0 : onSelect(event)
|
|
44877
|
+
, {
|
|
44878
|
+
once: true
|
|
44879
|
+
});
|
|
44880
|
+
$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, linkSelectEvent);
|
|
44881
|
+
if (!linkSelectEvent.defaultPrevented && !event1.metaKey) {
|
|
44882
|
+
const rootContentDismissEvent = new CustomEvent($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
|
|
44883
|
+
bubbles: true,
|
|
44884
|
+
cancelable: true
|
|
44885
|
+
});
|
|
44886
|
+
$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, rootContentDismissEvent);
|
|
44887
|
+
}
|
|
44888
|
+
}, {
|
|
44889
|
+
checkForDefaultPrevented: false
|
|
44890
|
+
})
|
|
44891
|
+
})));
|
|
44892
|
+
});
|
|
44893
|
+
/* -------------------------------------------------------------------------------------------------
|
|
44894
|
+
* NavigationMenuContent
|
|
44895
|
+
* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$CONTENT_NAME = 'NavigationMenuContent';
|
|
44896
|
+
const $322c88a641701f3b$export$38e00e996c2f93f7 = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44897
|
+
const { forceMount: forceMount , ...contentProps } = props;
|
|
44898
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
|
|
44899
|
+
const itemContext = $322c88a641701f3b$var$useNavigationMenuItemContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
|
|
44900
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(itemContext.contentRef, forwardedRef);
|
|
44901
|
+
const open = itemContext.value === context.value;
|
|
44902
|
+
const commonProps = {
|
|
44903
|
+
value: itemContext.value,
|
|
44904
|
+
triggerRef: itemContext.triggerRef,
|
|
44905
|
+
focusProxyRef: itemContext.focusProxyRef,
|
|
44906
|
+
wasEscapeCloseRef: itemContext.wasEscapeCloseRef,
|
|
44907
|
+
onContentFocusOutside: itemContext.onContentFocusOutside,
|
|
44908
|
+
onRootContentClose: itemContext.onRootContentClose,
|
|
44909
|
+
...contentProps
|
|
44910
|
+
};
|
|
44911
|
+
return !context.viewport ? /*#__PURE__*/ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
44912
|
+
present: forceMount || open
|
|
44913
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$NavigationMenuContentImpl, _extends({
|
|
44914
|
+
"data-state": $322c88a641701f3b$var$getOpenState(open)
|
|
44915
|
+
}, commonProps, {
|
|
44916
|
+
ref: composedRefs,
|
|
44917
|
+
onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter, context.onContentEnter),
|
|
44918
|
+
onPointerLeave: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave, $322c88a641701f3b$var$whenMouse(context.onContentLeave)),
|
|
44919
|
+
style: {
|
|
44920
|
+
// Prevent interaction when animating out
|
|
44921
|
+
pointerEvents: !open && context.isRootMenu ? 'none' : undefined,
|
|
44922
|
+
...commonProps.style
|
|
44923
|
+
}
|
|
44924
|
+
}))) : /*#__PURE__*/ createElement($322c88a641701f3b$var$ViewportContentMounter, _extends({
|
|
44925
|
+
forceMount: forceMount
|
|
44926
|
+
}, commonProps, {
|
|
44927
|
+
ref: composedRefs
|
|
44928
|
+
}));
|
|
44929
|
+
});
|
|
44930
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$ViewportContentMounter = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44931
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, props.__scopeNavigationMenu);
|
|
44932
|
+
const { onViewportContentChange: onViewportContentChange , onViewportContentRemove: onViewportContentRemove } = context;
|
|
44933
|
+
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
44934
|
+
onViewportContentChange(props.value, {
|
|
44935
|
+
ref: forwardedRef,
|
|
44936
|
+
...props
|
|
44937
|
+
});
|
|
44938
|
+
}, [
|
|
44939
|
+
props,
|
|
44940
|
+
forwardedRef,
|
|
44941
|
+
onViewportContentChange
|
|
44942
|
+
]);
|
|
44943
|
+
$9f79659886946c16$export$e5c5a5f917a5871c(()=>{
|
|
44944
|
+
return ()=>onViewportContentRemove(props.value)
|
|
44945
|
+
;
|
|
44946
|
+
}, [
|
|
44947
|
+
props.value,
|
|
44948
|
+
onViewportContentRemove
|
|
44949
|
+
]); // Content is proxied into the viewport
|
|
44950
|
+
return null;
|
|
44951
|
+
});
|
|
44952
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$ROOT_CONTENT_DISMISS = 'navigationMenu.rootContentDismiss';
|
|
44953
|
+
const $322c88a641701f3b$var$NavigationMenuContentImpl = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
44954
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , value: value , triggerRef: triggerRef , focusProxyRef: focusProxyRef , wasEscapeCloseRef: wasEscapeCloseRef , onRootContentClose: onRootContentClose , onContentFocusOutside: onContentFocusOutside , ...contentProps } = props;
|
|
44955
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$CONTENT_NAME, __scopeNavigationMenu);
|
|
44956
|
+
const ref = useRef(null);
|
|
44957
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(ref, forwardedRef);
|
|
44958
|
+
const triggerId = $322c88a641701f3b$var$makeTriggerId(context.baseId, value);
|
|
44959
|
+
const contentId = $322c88a641701f3b$var$makeContentId(context.baseId, value);
|
|
44960
|
+
const getItems = $322c88a641701f3b$var$useCollection(__scopeNavigationMenu);
|
|
44961
|
+
const prevMotionAttributeRef = useRef(null);
|
|
44962
|
+
const { onItemDismiss: onItemDismiss } = context;
|
|
44963
|
+
useEffect(()=>{
|
|
44964
|
+
const content = ref.current; // Bubble dismiss to the root content node and focus its trigger
|
|
44965
|
+
if (context.isRootMenu && content) {
|
|
44966
|
+
const handleClose = ()=>{
|
|
44967
|
+
var _triggerRef$current;
|
|
44968
|
+
onItemDismiss();
|
|
44969
|
+
onRootContentClose();
|
|
44970
|
+
if (content.contains(document.activeElement)) (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
|
|
44971
|
+
};
|
|
44972
|
+
content.addEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose);
|
|
44973
|
+
return ()=>content.removeEventListener($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, handleClose)
|
|
44974
|
+
;
|
|
44975
|
+
}
|
|
44976
|
+
}, [
|
|
44977
|
+
context.isRootMenu,
|
|
44978
|
+
props.value,
|
|
44979
|
+
triggerRef,
|
|
44980
|
+
onItemDismiss,
|
|
44981
|
+
onRootContentClose
|
|
44982
|
+
]);
|
|
44983
|
+
const motionAttribute = useMemo(()=>{
|
|
44984
|
+
const items = getItems();
|
|
44985
|
+
const values = items.map((item)=>item.value
|
|
44986
|
+
);
|
|
44987
|
+
if (context.dir === 'rtl') values.reverse();
|
|
44988
|
+
const index = values.indexOf(context.value);
|
|
44989
|
+
const prevIndex = values.indexOf(context.previousValue);
|
|
44990
|
+
const isSelected = value === context.value;
|
|
44991
|
+
const wasSelected = prevIndex === values.indexOf(value); // We only want to update selected and the last selected content
|
|
44992
|
+
// this avoids animations being interrupted outside of that range
|
|
44993
|
+
if (!isSelected && !wasSelected) return prevMotionAttributeRef.current;
|
|
44994
|
+
const attribute = (()=>{
|
|
44995
|
+
// Don't provide a direction on the initial open
|
|
44996
|
+
if (index !== prevIndex) {
|
|
44997
|
+
// If we're moving to this item from another
|
|
44998
|
+
if (isSelected && prevIndex !== -1) return index > prevIndex ? 'from-end' : 'from-start'; // If we're leaving this item for another
|
|
44999
|
+
if (wasSelected && index !== -1) return index > prevIndex ? 'to-start' : 'to-end';
|
|
45000
|
+
} // Otherwise we're entering from closed or leaving the list
|
|
45001
|
+
// entirely and should not animate in any direction
|
|
45002
|
+
return null;
|
|
45003
|
+
})();
|
|
45004
|
+
prevMotionAttributeRef.current = attribute;
|
|
45005
|
+
return attribute;
|
|
45006
|
+
}, [
|
|
45007
|
+
context.previousValue,
|
|
45008
|
+
context.value,
|
|
45009
|
+
context.dir,
|
|
45010
|
+
getItems,
|
|
45011
|
+
value
|
|
45012
|
+
]);
|
|
45013
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroup, {
|
|
45014
|
+
asChild: true
|
|
45015
|
+
}, /*#__PURE__*/ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends({
|
|
45016
|
+
id: contentId,
|
|
45017
|
+
"aria-labelledby": triggerId,
|
|
45018
|
+
"data-motion": motionAttribute,
|
|
45019
|
+
"data-orientation": context.orientation
|
|
45020
|
+
}, contentProps, {
|
|
45021
|
+
ref: composedRefs,
|
|
45022
|
+
onDismiss: ()=>{
|
|
45023
|
+
var _ref$current;
|
|
45024
|
+
const rootContentDismissEvent = new Event($322c88a641701f3b$var$ROOT_CONTENT_DISMISS, {
|
|
45025
|
+
bubbles: true,
|
|
45026
|
+
cancelable: true
|
|
45027
|
+
});
|
|
45028
|
+
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.dispatchEvent(rootContentDismissEvent);
|
|
45029
|
+
},
|
|
45030
|
+
onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onFocusOutside, (event)=>{
|
|
45031
|
+
var _context$rootNavigati;
|
|
45032
|
+
onContentFocusOutside();
|
|
45033
|
+
const target = event.target; // Only dismiss content when focus moves outside of the menu
|
|
45034
|
+
if ((_context$rootNavigati = context.rootNavigationMenu) !== null && _context$rootNavigati !== void 0 && _context$rootNavigati.contains(target)) event.preventDefault();
|
|
45035
|
+
}),
|
|
45036
|
+
onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event)=>{
|
|
45037
|
+
var _context$viewport;
|
|
45038
|
+
const target = event.target;
|
|
45039
|
+
const isTrigger = getItems().some((item)=>{
|
|
45040
|
+
var _item$ref$current;
|
|
45041
|
+
return (_item$ref$current = item.ref.current) === null || _item$ref$current === void 0 ? void 0 : _item$ref$current.contains(target);
|
|
45042
|
+
});
|
|
45043
|
+
const isRootViewport = context.isRootMenu && ((_context$viewport = context.viewport) === null || _context$viewport === void 0 ? void 0 : _context$viewport.contains(target));
|
|
45044
|
+
if (isTrigger || isRootViewport || !context.isRootMenu) event.preventDefault();
|
|
45045
|
+
}),
|
|
45046
|
+
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
|
|
45047
|
+
const isMetaKey = event.altKey || event.ctrlKey || event.metaKey;
|
|
45048
|
+
const isTabKey = event.key === 'Tab' && !isMetaKey;
|
|
45049
|
+
if (isTabKey) {
|
|
45050
|
+
const candidates = $322c88a641701f3b$var$getTabbableCandidates(event.currentTarget);
|
|
45051
|
+
const focusedElement = document.activeElement;
|
|
45052
|
+
const index = candidates.findIndex((candidate)=>candidate === focusedElement
|
|
45053
|
+
);
|
|
45054
|
+
const isMovingBackwards = event.shiftKey;
|
|
45055
|
+
const nextCandidates = isMovingBackwards ? candidates.slice(0, index).reverse() : candidates.slice(index + 1, candidates.length);
|
|
45056
|
+
if ($322c88a641701f3b$var$focusFirst(nextCandidates)) // prevent browser tab keydown because we've handled focus
|
|
45057
|
+
event.preventDefault();
|
|
45058
|
+
else {
|
|
45059
|
+
var _focusProxyRef$curren;
|
|
45060
|
+
// If we can't focus that means we're at the edges
|
|
45061
|
+
// so focus the proxy and let browser handle
|
|
45062
|
+
// tab/shift+tab keypress on the proxy instead
|
|
45063
|
+
(_focusProxyRef$curren = focusProxyRef.current) === null || _focusProxyRef$curren === void 0 || _focusProxyRef$curren.focus();
|
|
45064
|
+
}
|
|
45065
|
+
}
|
|
45066
|
+
}),
|
|
45067
|
+
onEscapeKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onEscapeKeyDown, (event)=>{
|
|
45068
|
+
// prevent the dropdown from reopening
|
|
45069
|
+
// after the escape key has been pressed
|
|
45070
|
+
wasEscapeCloseRef.current = true;
|
|
45071
|
+
})
|
|
45072
|
+
})));
|
|
45073
|
+
});
|
|
45074
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$FOCUS_GROUP_NAME = 'FocusGroup';
|
|
45075
|
+
const $322c88a641701f3b$var$FocusGroup = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
45076
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , ...groupProps } = props;
|
|
45077
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_NAME, __scopeNavigationMenu);
|
|
45078
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroupCollection.Provider, {
|
|
45079
|
+
scope: __scopeNavigationMenu
|
|
45080
|
+
}, /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroupCollection.Slot, {
|
|
45081
|
+
scope: __scopeNavigationMenu
|
|
45082
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
45083
|
+
dir: context.dir
|
|
45084
|
+
}, groupProps, {
|
|
45085
|
+
ref: forwardedRef
|
|
45086
|
+
}))));
|
|
45087
|
+
});
|
|
45088
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$var$ARROW_KEYS = [
|
|
45089
|
+
'ArrowRight',
|
|
45090
|
+
'ArrowLeft',
|
|
45091
|
+
'ArrowUp',
|
|
45092
|
+
'ArrowDown'
|
|
45093
|
+
];
|
|
45094
|
+
const $322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME = 'FocusGroupItem';
|
|
45095
|
+
const $322c88a641701f3b$var$FocusGroupItem = /*#__PURE__*/ forwardRef((props, forwardedRef)=>{
|
|
45096
|
+
const { __scopeNavigationMenu: __scopeNavigationMenu , ...groupProps } = props;
|
|
45097
|
+
const getItems = $322c88a641701f3b$var$useFocusGroupCollection(__scopeNavigationMenu);
|
|
45098
|
+
const context = $322c88a641701f3b$var$useNavigationMenuContext($322c88a641701f3b$var$FOCUS_GROUP_ITEM_NAME, __scopeNavigationMenu);
|
|
45099
|
+
return /*#__PURE__*/ createElement($322c88a641701f3b$var$FocusGroupCollection.ItemSlot, {
|
|
45100
|
+
scope: __scopeNavigationMenu
|
|
45101
|
+
}, /*#__PURE__*/ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({}, groupProps, {
|
|
45102
|
+
ref: forwardedRef,
|
|
45103
|
+
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event)=>{
|
|
45104
|
+
const isFocusNavigationKey = [
|
|
45105
|
+
'Home',
|
|
45106
|
+
'End',
|
|
45107
|
+
...$322c88a641701f3b$var$ARROW_KEYS
|
|
45108
|
+
].includes(event.key);
|
|
45109
|
+
if (isFocusNavigationKey) {
|
|
45110
|
+
let candidateNodes = getItems().map((item)=>item.ref.current
|
|
45111
|
+
);
|
|
45112
|
+
const prevItemKey = context.dir === 'rtl' ? 'ArrowRight' : 'ArrowLeft';
|
|
45113
|
+
const prevKeys = [
|
|
45114
|
+
prevItemKey,
|
|
45115
|
+
'ArrowUp',
|
|
45116
|
+
'End'
|
|
45117
|
+
];
|
|
45118
|
+
if (prevKeys.includes(event.key)) candidateNodes.reverse();
|
|
45119
|
+
if ($322c88a641701f3b$var$ARROW_KEYS.includes(event.key)) {
|
|
45120
|
+
const currentIndex = candidateNodes.indexOf(event.currentTarget);
|
|
45121
|
+
candidateNodes = candidateNodes.slice(currentIndex + 1);
|
|
45122
|
+
}
|
|
45123
|
+
/**
|
|
45124
|
+
* Imperative focus during keydown is risky so we prevent React's batching updates
|
|
45125
|
+
* to avoid potential bugs. See: https://github.com/facebook/react/issues/20332
|
|
45126
|
+
*/ setTimeout(()=>$322c88a641701f3b$var$focusFirst(candidateNodes)
|
|
45127
|
+
); // Prevent page scroll while navigating
|
|
45128
|
+
event.preventDefault();
|
|
45129
|
+
}
|
|
45130
|
+
})
|
|
45131
|
+
})));
|
|
45132
|
+
});
|
|
45133
|
+
/**
|
|
45134
|
+
* Returns a list of potential tabbable candidates.
|
|
45135
|
+
*
|
|
45136
|
+
* NOTE: This is only a close approximation. For example it doesn't take into account cases like when
|
|
45137
|
+
* elements are not visible. This cannot be worked out easily by just reading a property, but rather
|
|
45138
|
+
* necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.
|
|
45139
|
+
*
|
|
45140
|
+
* See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker
|
|
45141
|
+
* Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1
|
|
45142
|
+
*/ function $322c88a641701f3b$var$getTabbableCandidates(container) {
|
|
45143
|
+
const nodes = [];
|
|
45144
|
+
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
45145
|
+
acceptNode: (node)=>{
|
|
45146
|
+
const isHiddenInput = node.tagName === 'INPUT' && node.type === 'hidden';
|
|
45147
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP; // `.tabIndex` is not the same as the `tabindex` attribute. It works on the
|
|
45148
|
+
// runtime's understanding of tabbability, so this automatically accounts
|
|
45149
|
+
// for any kind of element that could be tabbed to.
|
|
45150
|
+
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
45151
|
+
}
|
|
45152
|
+
});
|
|
45153
|
+
while(walker.nextNode())nodes.push(walker.currentNode); // we do not take into account the order of nodes with positive `tabIndex` as it
|
|
45154
|
+
// hinders accessibility to have tab order different from visual order.
|
|
45155
|
+
return nodes;
|
|
45156
|
+
}
|
|
45157
|
+
function $322c88a641701f3b$var$focusFirst(candidates) {
|
|
45158
|
+
const previouslyFocusedElement = document.activeElement;
|
|
45159
|
+
return candidates.some((candidate)=>{
|
|
45160
|
+
// if focus is already where we want to go, we don't want to keep going through the candidates
|
|
45161
|
+
if (candidate === previouslyFocusedElement) return true;
|
|
45162
|
+
candidate.focus();
|
|
45163
|
+
return document.activeElement !== previouslyFocusedElement;
|
|
45164
|
+
});
|
|
45165
|
+
}
|
|
45166
|
+
function $322c88a641701f3b$var$removeFromTabOrder(candidates) {
|
|
45167
|
+
candidates.forEach((candidate)=>{
|
|
45168
|
+
candidate.dataset.tabindex = candidate.getAttribute('tabindex') || '';
|
|
45169
|
+
candidate.setAttribute('tabindex', '-1');
|
|
45170
|
+
});
|
|
45171
|
+
return ()=>{
|
|
45172
|
+
candidates.forEach((candidate)=>{
|
|
45173
|
+
const prevTabIndex = candidate.dataset.tabindex;
|
|
45174
|
+
candidate.setAttribute('tabindex', prevTabIndex);
|
|
45175
|
+
});
|
|
45176
|
+
};
|
|
45177
|
+
}
|
|
45178
|
+
function $322c88a641701f3b$var$getOpenState(open) {
|
|
45179
|
+
return open ? 'open' : 'closed';
|
|
45180
|
+
}
|
|
45181
|
+
function $322c88a641701f3b$var$makeTriggerId(baseId, value) {
|
|
45182
|
+
return `${baseId}-trigger-${value}`;
|
|
45183
|
+
}
|
|
45184
|
+
function $322c88a641701f3b$var$makeContentId(baseId, value) {
|
|
45185
|
+
return `${baseId}-content-${value}`;
|
|
45186
|
+
}
|
|
45187
|
+
function $322c88a641701f3b$var$whenMouse(handler) {
|
|
45188
|
+
return (event)=>event.pointerType === 'mouse' ? handler(event) : undefined
|
|
45189
|
+
;
|
|
45190
|
+
}
|
|
45191
|
+
/* -----------------------------------------------------------------------------------------------*/ const $322c88a641701f3b$export$be92b6f5f03c0fe9 = $322c88a641701f3b$export$5b2278cf1e8bcae2;
|
|
45192
|
+
const $322c88a641701f3b$export$d7a01e11500dfb6f = $322c88a641701f3b$export$5958edd6c4ee7c79;
|
|
45193
|
+
const $322c88a641701f3b$export$54c2e3dc7acea9f5 = $322c88a641701f3b$export$c361068a95fd2286;
|
|
45194
|
+
const $322c88a641701f3b$export$6d08773d2e66f8f2 = $322c88a641701f3b$export$ffdbb83a2de845c2;
|
|
45195
|
+
const $322c88a641701f3b$export$41fb9f06171c75f4 = $322c88a641701f3b$export$37fe8002734d8f2;
|
|
45196
|
+
const $322c88a641701f3b$export$a6c7ac8248d6e38a = $322c88a641701f3b$export$6893bf21536567da;
|
|
45197
|
+
const $322c88a641701f3b$export$7c6e2c02157bb7d2 = $322c88a641701f3b$export$38e00e996c2f93f7;
|
|
44432
45198
|
|
|
44433
|
-
var
|
|
44434
|
-
|
|
44435
|
-
|
|
45199
|
+
var VerticalDivider = styled.div.withConfig({
|
|
45200
|
+
displayName: "VerticalDivider",
|
|
45201
|
+
componentId: "sc-18klwrc-0"
|
|
45202
|
+
})(function (_ref) {
|
|
45203
|
+
var theme = _ref.theme,
|
|
45204
|
+
color = _ref.color,
|
|
45205
|
+
secondary = _ref.secondary;
|
|
45206
|
+
return {
|
|
45207
|
+
display: "inline",
|
|
45208
|
+
borderLeftColor: color || (secondary ? theme.colors.whiteGrey : theme.colors.lightGrey),
|
|
45209
|
+
borderLeftWidth: "1px",
|
|
45210
|
+
borderLeftStyle: "solid",
|
|
45211
|
+
borderTop: "none",
|
|
45212
|
+
borderBottom: "none",
|
|
45213
|
+
borderRight: "none",
|
|
45214
|
+
height: theme.sizes.x2,
|
|
45215
|
+
marginLeft: theme.space.x2,
|
|
45216
|
+
marginRight: theme.space.x2
|
|
45217
|
+
};
|
|
45218
|
+
}, addStyledProps);
|
|
45219
|
+
VerticalDivider.displayName = "VerticalDivider";
|
|
44436
45220
|
|
|
44437
|
-
|
|
45221
|
+
var NAVIGATION_MENU_HEIGHT_STYLED_UNITS = "x8";
|
|
45222
|
+
var NAVIGATION_MENU_CONTENT_WIDTH_MAX_WIDTH_PX = 400;
|
|
45223
|
+
var NAVIGATION_DEFAULT_BREAKPOINT_THEME_KEY = "medium";
|
|
45224
|
+
var NAVIGATION_SUB_MENU_MIN_WIDTH_PX = 180;
|
|
45225
|
+
var MIN_DISTANCE_BETWEEN_MENUS_PX = 64;
|
|
44438
45226
|
|
|
44439
|
-
|
|
45227
|
+
var disableHoverEvents = {
|
|
45228
|
+
onPointerMove: function onPointerMove(e) {
|
|
45229
|
+
return e.preventDefault();
|
|
45230
|
+
},
|
|
45231
|
+
onPointerEnter: function onPointerEnter(e) {
|
|
45232
|
+
return e.preventDefault();
|
|
45233
|
+
},
|
|
45234
|
+
onPointerLeave: function onPointerLeave(e) {
|
|
45235
|
+
return e.preventDefault();
|
|
44440
45236
|
}
|
|
45237
|
+
};
|
|
44441
45238
|
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
45239
|
+
function itemStyles(theme) {
|
|
45240
|
+
return {
|
|
45241
|
+
paddingLeft: theme.space.x2,
|
|
45242
|
+
paddingRight: theme.space.x2,
|
|
45243
|
+
paddingTop: theme.space.x1_5,
|
|
45244
|
+
paddingBottom: theme.space.x1_5,
|
|
45245
|
+
outline: "none",
|
|
45246
|
+
userSelect: "none",
|
|
45247
|
+
fontWeight: theme.fontWeights.medium,
|
|
45248
|
+
fontSize: theme.fontSizes.small,
|
|
45249
|
+
lineHeight: theme.lineHeights.smallTextCompressed,
|
|
45250
|
+
borderRadius: theme.radii.large,
|
|
45251
|
+
color: theme.colors.darkGrey,
|
|
45252
|
+
transition: "background-color 250ms ease",
|
|
45253
|
+
whiteSpace: "nowrap"
|
|
45254
|
+
};
|
|
45255
|
+
}
|
|
45256
|
+
var NavigationMenuRoot = styled($322c88a641701f3b$export$be92b6f5f03c0fe9).withConfig({
|
|
45257
|
+
displayName: "components__NavigationMenuRoot",
|
|
45258
|
+
componentId: "sc-lzok1t-0"
|
|
45259
|
+
})(function (_ref) {
|
|
45260
|
+
var theme = _ref.theme;
|
|
45261
|
+
return {
|
|
45262
|
+
height: theme.space[NAVIGATION_MENU_HEIGHT_STYLED_UNITS],
|
|
45263
|
+
display: "flex",
|
|
45264
|
+
width: "100%",
|
|
45265
|
+
justifyContent: "space-between",
|
|
45266
|
+
padding: "0px 16px",
|
|
45267
|
+
backgroundColor: "white",
|
|
45268
|
+
borderBottom: "1px solid #E4E7EB",
|
|
45269
|
+
"& > div": {
|
|
45270
|
+
display: "flex"
|
|
44464
45271
|
}
|
|
44465
|
-
}
|
|
44466
|
-
|
|
45272
|
+
};
|
|
45273
|
+
}, addStyledProps);
|
|
45274
|
+
var NavigationMenuList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5).withConfig({
|
|
45275
|
+
displayName: "components__NavigationMenuList",
|
|
45276
|
+
componentId: "sc-lzok1t-1"
|
|
45277
|
+
})(function (_ref2) {
|
|
45278
|
+
var theme = _ref2.theme;
|
|
45279
|
+
return {
|
|
45280
|
+
display: "flex",
|
|
45281
|
+
alignItems: "center",
|
|
45282
|
+
width: "100%",
|
|
45283
|
+
padding: theme.space.none,
|
|
45284
|
+
listStyle: "none",
|
|
45285
|
+
gap: theme.space.x1,
|
|
45286
|
+
margin: theme.space.none
|
|
45287
|
+
};
|
|
45288
|
+
});
|
|
45289
|
+
var NavigationMenuTrigger = styled($322c88a641701f3b$export$41fb9f06171c75f4).attrs(function (_ref3) {
|
|
45290
|
+
var _ref3$disableMenuTogg = _ref3.disableMenuToggleOnHover,
|
|
45291
|
+
disableMenuToggleOnHover = _ref3$disableMenuTogg === void 0 ? true : _ref3$disableMenuTogg;
|
|
45292
|
+
if (disableMenuToggleOnHover) {
|
|
45293
|
+
return Object.assign({}, disableHoverEvents);
|
|
45294
|
+
}
|
|
45295
|
+
}).withConfig({
|
|
45296
|
+
displayName: "components__NavigationMenuTrigger",
|
|
45297
|
+
componentId: "sc-lzok1t-2"
|
|
45298
|
+
})(function (_ref4) {
|
|
45299
|
+
var theme = _ref4.theme;
|
|
45300
|
+
return Object.assign(Object.assign({
|
|
45301
|
+
all: "unset"
|
|
45302
|
+
}, itemStyles(theme)), {
|
|
45303
|
+
display: "flex",
|
|
45304
|
+
alignItems: "center",
|
|
45305
|
+
justifyContent: "space-between",
|
|
45306
|
+
gap: theme.space.half,
|
|
45307
|
+
"&:focus": {
|
|
45308
|
+
boxShadow: theme.shadows.focus
|
|
45309
|
+
},
|
|
45310
|
+
"&:hover": {
|
|
45311
|
+
backgroundColor: theme.colors.lightBlue,
|
|
45312
|
+
color: theme.colors.darkBlue
|
|
45313
|
+
},
|
|
45314
|
+
"&:disabled": {
|
|
45315
|
+
cursor: "default",
|
|
45316
|
+
"&:hover": {
|
|
45317
|
+
backgroundColor: "transparent",
|
|
45318
|
+
color: theme.colors.darkGrey
|
|
45319
|
+
}
|
|
45320
|
+
}
|
|
45321
|
+
});
|
|
45322
|
+
}, addStyledProps);
|
|
45323
|
+
var NavigationMenuLink$1 = styled($322c88a641701f3b$export$a6c7ac8248d6e38a).withConfig({
|
|
45324
|
+
displayName: "components__NavigationMenuLink",
|
|
45325
|
+
componentId: "sc-lzok1t-3"
|
|
45326
|
+
})(function (_ref5) {
|
|
45327
|
+
var theme = _ref5.theme;
|
|
45328
|
+
return Object.assign(Object.assign({}, itemStyles(theme)), {
|
|
45329
|
+
display: "flex",
|
|
45330
|
+
alignItems: "center",
|
|
45331
|
+
justifyContent: "space-between",
|
|
45332
|
+
gap: theme.space.half,
|
|
45333
|
+
textDecoration: "none",
|
|
45334
|
+
fontSize: theme.fontSizes.small,
|
|
45335
|
+
lineHeight: theme.lineHeights.smallTextCompressed,
|
|
45336
|
+
"&:focus": {
|
|
45337
|
+
boxShadow: theme.shadows.focus
|
|
45338
|
+
},
|
|
45339
|
+
"&:hover": {
|
|
45340
|
+
backgroundColor: theme.colors.lightBlue,
|
|
45341
|
+
color: theme.colors.darkBlue
|
|
45342
|
+
},
|
|
45343
|
+
"&:disabled": {
|
|
45344
|
+
cursor: "default",
|
|
45345
|
+
"&:hover": {
|
|
45346
|
+
backgroundColor: "transparent",
|
|
45347
|
+
color: theme.colors.darkGrey
|
|
45348
|
+
}
|
|
45349
|
+
}
|
|
45350
|
+
});
|
|
45351
|
+
}, addStyledProps);
|
|
45352
|
+
styled(NavigationMenuLink$1).withConfig({
|
|
45353
|
+
displayName: "components__NavigationMenuIconLink",
|
|
45354
|
+
componentId: "sc-lzok1t-4"
|
|
45355
|
+
})(function (_ref6) {
|
|
45356
|
+
var theme = _ref6.theme;
|
|
45357
|
+
return {
|
|
45358
|
+
paddingRight: theme.space.x1,
|
|
45359
|
+
borderRadius: theme.radii.rounded
|
|
45360
|
+
};
|
|
45361
|
+
});
|
|
45362
|
+
var NavigationMenuIconTrigger = styled(NavigationMenuTrigger).withConfig({
|
|
45363
|
+
displayName: "components__NavigationMenuIconTrigger",
|
|
45364
|
+
componentId: "sc-lzok1t-5"
|
|
45365
|
+
})(function (_ref7) {
|
|
45366
|
+
var theme = _ref7.theme;
|
|
45367
|
+
return {
|
|
45368
|
+
padding: theme.space.x1,
|
|
45369
|
+
borderRadius: theme.radii.rounded
|
|
45370
|
+
};
|
|
45371
|
+
});
|
|
45372
|
+
var CaretDown = styled(Icon).attrs({
|
|
45373
|
+
icon: "downArrow"
|
|
45374
|
+
}).withConfig({
|
|
45375
|
+
displayName: "components__CaretDown",
|
|
45376
|
+
componentId: "sc-lzok1t-6"
|
|
45377
|
+
})({
|
|
45378
|
+
position: "relative",
|
|
45379
|
+
color: "currentColor",
|
|
45380
|
+
transition: "transform 250ms ease",
|
|
45381
|
+
"[data-state=open] &": {
|
|
45382
|
+
transform: "rotate(-180deg)"
|
|
45383
|
+
}
|
|
45384
|
+
});
|
|
45385
|
+
var CaretRight = styled(Icon).attrs({
|
|
45386
|
+
icon: "rightArrow"
|
|
45387
|
+
}).withConfig({
|
|
45388
|
+
displayName: "components__CaretRight",
|
|
45389
|
+
componentId: "sc-lzok1t-7"
|
|
45390
|
+
})({
|
|
45391
|
+
position: "relative",
|
|
45392
|
+
color: "currentColor"
|
|
45393
|
+
});
|
|
45394
|
+
var RadixNavigationMenuItem = styled($322c88a641701f3b$export$6d08773d2e66f8f2).withConfig({
|
|
45395
|
+
displayName: "components__RadixNavigationMenuItem",
|
|
45396
|
+
componentId: "sc-lzok1t-8"
|
|
45397
|
+
})({
|
|
45398
|
+
position: "relative"
|
|
45399
|
+
}, addStyledProps);
|
|
45400
|
+
|
|
45401
|
+
var getSharedPaddingStyles = function getSharedPaddingStyles(theme) {
|
|
45402
|
+
return {
|
|
45403
|
+
paddingTop: theme.space.x1,
|
|
45404
|
+
paddingBottom: theme.space.x1
|
|
45405
|
+
};
|
|
45406
|
+
};
|
|
45407
|
+
var getSharedInteractiveItemStyles = function getSharedInteractiveItemStyles(theme) {
|
|
45408
|
+
return {
|
|
45409
|
+
paddingLeft: theme.space.x1_5,
|
|
45410
|
+
paddingRight: theme.space.x1_5,
|
|
45411
|
+
fontWeight: theme.fontWeights.medium,
|
|
45412
|
+
fontSize: theme.fontSizes.small,
|
|
45413
|
+
lineHeight: theme.lineHeights.smallRelaxed,
|
|
45414
|
+
whiteSpace: "nowrap",
|
|
45415
|
+
transition: "background-color 250ms ease"
|
|
45416
|
+
};
|
|
45417
|
+
};
|
|
45418
|
+
var SubMenuItemLink = styled($322c88a641701f3b$export$a6c7ac8248d6e38a).withConfig({
|
|
45419
|
+
displayName: "styled__SubMenuItemLink",
|
|
45420
|
+
componentId: "sc-11znyq0-0"
|
|
45421
|
+
})(function (_ref) {
|
|
45422
|
+
var theme = _ref.theme;
|
|
45423
|
+
return Object.assign(Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), getSharedInteractiveItemStyles(theme)), {
|
|
45424
|
+
display: "flex",
|
|
45425
|
+
flexDirection: "column",
|
|
45426
|
+
alignItems: "flex-start",
|
|
45427
|
+
alignSelf: "stretch",
|
|
45428
|
+
width: "100%",
|
|
45429
|
+
textDecoration: "none",
|
|
45430
|
+
"&:hover, &:focus": {
|
|
45431
|
+
backgroundColor: theme.colors.lightBlue,
|
|
45432
|
+
color: theme.colors.darkBlue,
|
|
45433
|
+
outline: "none"
|
|
45434
|
+
},
|
|
45435
|
+
"&:visited": {
|
|
45436
|
+
color: "inherit"
|
|
45437
|
+
}
|
|
45438
|
+
});
|
|
45439
|
+
}, addStyledProps);
|
|
45440
|
+
var SubMenuItemButton = styled($322c88a641701f3b$export$41fb9f06171c75f4).withConfig({
|
|
45441
|
+
displayName: "styled__SubMenuItemButton",
|
|
45442
|
+
componentId: "sc-11znyq0-1"
|
|
45443
|
+
})(function (_ref2) {
|
|
45444
|
+
var theme = _ref2.theme;
|
|
45445
|
+
return Object.assign(Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), getSharedInteractiveItemStyles(theme)), {
|
|
45446
|
+
display: "flex",
|
|
45447
|
+
alignItems: "center",
|
|
45448
|
+
justifyContent: "space-between",
|
|
45449
|
+
width: "100%",
|
|
45450
|
+
gap: theme.space.x2,
|
|
45451
|
+
background: "none",
|
|
45452
|
+
border: "none",
|
|
45453
|
+
outline: "none",
|
|
45454
|
+
color: theme.colors.darkGrey,
|
|
45455
|
+
userSelect: "none",
|
|
45456
|
+
"&:hover, &:focus": {
|
|
45457
|
+
backgroundColor: theme.colors.lightBlue,
|
|
45458
|
+
color: theme.colors.darkBlue
|
|
45459
|
+
}
|
|
45460
|
+
});
|
|
45461
|
+
}, addStyledProps);
|
|
45462
|
+
var SubMenuContent$1 = styled($322c88a641701f3b$export$7c6e2c02157bb7d2).attrs(disableHoverEvents).withConfig({
|
|
45463
|
+
displayName: "styled__SubMenuContent",
|
|
45464
|
+
componentId: "sc-11znyq0-2"
|
|
45465
|
+
})(function (_ref3) {
|
|
45466
|
+
var theme = _ref3.theme;
|
|
45467
|
+
return Object.assign(Object.assign({}, getSharedPaddingStyles(theme)), {
|
|
45468
|
+
position: "absolute",
|
|
45469
|
+
top: "calc(100% + " + theme.space.half + ")",
|
|
45470
|
+
left: 0,
|
|
45471
|
+
minWidth: NAVIGATION_SUB_MENU_MIN_WIDTH_PX,
|
|
45472
|
+
display: "flex",
|
|
45473
|
+
flexDirection: "column",
|
|
45474
|
+
alignItems: "flex-start",
|
|
45475
|
+
background: theme.colors.white,
|
|
45476
|
+
color: theme.colors.darkGrey,
|
|
45477
|
+
borderRadius: theme.radii.medium,
|
|
45478
|
+
boxShadow: theme.shadows.medium,
|
|
45479
|
+
paddingRight: 0,
|
|
45480
|
+
paddingLeft: 0,
|
|
45481
|
+
listStyle: "none",
|
|
45482
|
+
"& > div": {
|
|
45483
|
+
width: "100%"
|
|
45484
|
+
}
|
|
45485
|
+
});
|
|
45486
|
+
}, addStyledProps);
|
|
45487
|
+
var SubMenuItem = styled($322c88a641701f3b$export$6d08773d2e66f8f2).withConfig({
|
|
45488
|
+
displayName: "styled__SubMenuItem",
|
|
45489
|
+
componentId: "sc-11znyq0-3"
|
|
45490
|
+
})({
|
|
45491
|
+
position: "relative",
|
|
45492
|
+
width: "100%"
|
|
45493
|
+
}, addStyledProps);
|
|
45494
|
+
var SubMenuList$1 = styled($322c88a641701f3b$export$54c2e3dc7acea9f5).withConfig({
|
|
45495
|
+
displayName: "styled__SubMenuList",
|
|
45496
|
+
componentId: "sc-11znyq0-4"
|
|
45497
|
+
})({
|
|
45498
|
+
padding: 0,
|
|
45499
|
+
listStyle: "none"
|
|
45500
|
+
}, addStyledProps);
|
|
45501
|
+
|
|
45502
|
+
function MenuSubItem(_ref) {
|
|
45503
|
+
var item = _ref.item,
|
|
45504
|
+
level = _ref.level;
|
|
45505
|
+
var _a, _b;
|
|
45506
|
+
var theme = useTheme();
|
|
45507
|
+
/* ---------------------------------------------------------------------
|
|
45508
|
+
* Separator
|
|
45509
|
+
* -------------------------------------------------------------------*/
|
|
45510
|
+
if (item.type === "separator") {
|
|
45511
|
+
return /*#__PURE__*/React__default.createElement(Divider$1, {
|
|
45512
|
+
my: "x1",
|
|
45513
|
+
mx: "x1",
|
|
45514
|
+
width: "auto"
|
|
45515
|
+
});
|
|
45516
|
+
}
|
|
45517
|
+
/* ---------------------------------------------------------------------
|
|
45518
|
+
* Custom render
|
|
45519
|
+
* -------------------------------------------------------------------*/
|
|
45520
|
+
if (item.type === "custom") {
|
|
45521
|
+
return /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$6d08773d2e66f8f2, {
|
|
45522
|
+
key: item.key
|
|
45523
|
+
}, item.render({
|
|
45524
|
+
withinSubMenu: true,
|
|
45525
|
+
level: level,
|
|
45526
|
+
withinMobileNav: false
|
|
45527
|
+
}));
|
|
45528
|
+
}
|
|
45529
|
+
/* ---------------------------------------------------------------------
|
|
45530
|
+
* Default render
|
|
45531
|
+
* -------------------------------------------------------------------*/
|
|
45532
|
+
var hasIcon = "icon" in item;
|
|
45533
|
+
var isLink = item.type === "link";
|
|
45534
|
+
var hasSubMenu = item.type === "button" && !!item.items && item.items.length > 0;
|
|
45535
|
+
var content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasIcon && (/*#__PURE__*/React__default.createElement(Flex, {
|
|
45536
|
+
alignItems: "center",
|
|
45537
|
+
gap: "x1"
|
|
45538
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
45539
|
+
icon: item.icon,
|
|
45540
|
+
size: "x3",
|
|
45541
|
+
"aria-hidden": true
|
|
45542
|
+
}), /*#__PURE__*/React__default.createElement("span", null, (_a = item.label) !== null && _a !== void 0 ? _a : item.tooltip))), "label" in item && item.label && !hasIcon && /*#__PURE__*/React__default.createElement("span", null, item.label), hasSubMenu && /*#__PURE__*/React__default.createElement(CaretRight, {
|
|
45543
|
+
"aria-hidden": true,
|
|
45544
|
+
size: "x2"
|
|
45545
|
+
}));
|
|
45546
|
+
return /*#__PURE__*/React__default.createElement(SubMenuItem, {
|
|
45547
|
+
key: item.key,
|
|
45548
|
+
value: "label" in item ? item.label : item.key
|
|
45549
|
+
}, isLink ? (/*#__PURE__*/React__default.createElement(SubMenuItemLink, {
|
|
45550
|
+
asChild: true
|
|
45551
|
+
}, item.element ? (/*#__PURE__*/React__default.cloneElement(item.element, Object.assign(Object.assign({}, item.props), {
|
|
45552
|
+
children: content
|
|
45553
|
+
}))) : (/*#__PURE__*/React__default.createElement("a", Object.assign({}, item.props), content)))) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(SubMenuItemButton, Object.assign({}, item.props), content), hasSubMenu && (/*#__PURE__*/React__default.createElement(SubMenuContent$1, {
|
|
45554
|
+
left: "calc(100% - " + theme.space.half + ")",
|
|
45555
|
+
top: "calc(-1 * " + theme.space.x1 + ")"
|
|
45556
|
+
}, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
45557
|
+
orientation: "vertical"
|
|
45558
|
+
}, /*#__PURE__*/React__default.createElement(SubMenuList$1, null, (_b = item.items) === null || _b === void 0 ? void 0 : _b.map(function (subItem) {
|
|
45559
|
+
return /*#__PURE__*/React__default.createElement(MenuSubItem, {
|
|
45560
|
+
key: subItem.key,
|
|
45561
|
+
item: subItem,
|
|
45562
|
+
level: level + 1
|
|
45563
|
+
});
|
|
45564
|
+
}))))))));
|
|
45565
|
+
}
|
|
45566
|
+
|
|
45567
|
+
/**
|
|
45568
|
+
* A single Radix <NavigationMenu.Item> that can represent any MenuItem variant.
|
|
45569
|
+
*/
|
|
45570
|
+
var NavigationMenuItem = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
45571
|
+
var _b;
|
|
45572
|
+
var item = _a.item,
|
|
45573
|
+
_a$level = _a.level,
|
|
45574
|
+
level = _a$level === void 0 ? 0 : _a$level,
|
|
45575
|
+
props = __rest(_a, ["item", "level"]);
|
|
45576
|
+
if (item.type === "separator") {
|
|
45577
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45578
|
+
ref: forwardedRef
|
|
45579
|
+
}, props), /*#__PURE__*/React__default.createElement(VerticalDivider, {
|
|
45580
|
+
mx: "x1"
|
|
45581
|
+
}));
|
|
45582
|
+
}
|
|
45583
|
+
/* ---------------------------------------------------------------------
|
|
45584
|
+
* Handle "custom” items
|
|
45585
|
+
* -------------------------------------------------------------------*/
|
|
45586
|
+
if (item.type === "custom") {
|
|
45587
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45588
|
+
ref: forwardedRef
|
|
45589
|
+
}, props), item.render({
|
|
45590
|
+
withinSubMenu: level > 0,
|
|
45591
|
+
level: level,
|
|
45592
|
+
withinMobileNav: false
|
|
45593
|
+
}));
|
|
45594
|
+
}
|
|
45595
|
+
var hasIcon = "icon" in item;
|
|
45596
|
+
var isLink = item.type === "link";
|
|
45597
|
+
var hasSubMenu = item.type === "button" && !!item.items && item.items.length > 0;
|
|
45598
|
+
var hasLabel = "label" in item && item.label;
|
|
45599
|
+
var hasIconOnly = hasIcon && !hasLabel;
|
|
45600
|
+
var hasTooltip = hasIconOnly && Boolean(item.tooltip);
|
|
45601
|
+
var Content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
45602
|
+
icon: item.icon,
|
|
45603
|
+
size: "x3",
|
|
45604
|
+
"aria-hidden": true
|
|
45605
|
+
}), "label" in item && item.label && (/*#__PURE__*/React__default.createElement(Text, {
|
|
45606
|
+
fontSize: "small",
|
|
45607
|
+
lineHeight: "smallTextCompressed"
|
|
45608
|
+
}, item.label)), hasSubMenu && /*#__PURE__*/React__default.createElement(CaretDown, {
|
|
45609
|
+
"aria-hidden": true,
|
|
45610
|
+
size: "x2"
|
|
45611
|
+
}));
|
|
45612
|
+
if (isLink) {
|
|
45613
|
+
var _Item = /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45614
|
+
ref: forwardedRef
|
|
45615
|
+
}, props), /*#__PURE__*/React__default.createElement(NavigationMenuLink$1, {
|
|
45616
|
+
asChild: true,
|
|
45617
|
+
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : item.label,
|
|
45618
|
+
borderRadius: hasIconOnly ? "rounded" : undefined,
|
|
45619
|
+
p: hasIcon ? "x1" : undefined
|
|
45620
|
+
}, item.element ? (/*#__PURE__*/React__default.cloneElement(item.element, Object.assign(Object.assign({}, item.props), {
|
|
45621
|
+
children: Content
|
|
45622
|
+
}))) : (/*#__PURE__*/React__default.createElement("a", Object.assign({}, item.props), Content))));
|
|
45623
|
+
return hasTooltip ? (/*#__PURE__*/React__default.createElement(Tooltip$2, {
|
|
45624
|
+
delayDuration: 0,
|
|
45625
|
+
sideOffset: 0,
|
|
45626
|
+
content: item.tooltip
|
|
45627
|
+
}, _Item)) : _Item;
|
|
45628
|
+
}
|
|
45629
|
+
var Item = /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45630
|
+
ref: forwardedRef
|
|
45631
|
+
}, props), /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
|
|
45632
|
+
asChild: true,
|
|
45633
|
+
position: "relative",
|
|
45634
|
+
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : hasLabel ? item.label : undefined,
|
|
45635
|
+
borderRadius: hasIconOnly ? "rounded" : undefined,
|
|
45636
|
+
p: hasIcon ? "x1" : undefined
|
|
45637
|
+
}, /*#__PURE__*/React__default.createElement(Button, Object.assign({}, item.props), Content)), hasSubMenu && (/*#__PURE__*/React__default.createElement(SubMenuContent$1, null, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
45638
|
+
orientation: "vertical"
|
|
45639
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, (_b = item.items) === null || _b === void 0 ? void 0 : _b.map(function (sub) {
|
|
45640
|
+
return /*#__PURE__*/React__default.createElement(MenuSubItem, {
|
|
45641
|
+
key: sub.key,
|
|
45642
|
+
item: sub,
|
|
45643
|
+
level: level + 1
|
|
45644
|
+
});
|
|
45645
|
+
}))))));
|
|
45646
|
+
return hasTooltip ? (/*#__PURE__*/React__default.createElement(Tooltip$2, {
|
|
45647
|
+
delayDuration: 0,
|
|
45648
|
+
sideOffset: 0,
|
|
45649
|
+
content: item.tooltip
|
|
45650
|
+
}, Item)) : Item;
|
|
45651
|
+
});
|
|
45652
|
+
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
45653
|
+
var NavigationMenuSubList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5).withConfig({
|
|
45654
|
+
displayName: "NavigationMenuItem__NavigationMenuSubList",
|
|
45655
|
+
componentId: "sc-1yowz2u-0"
|
|
45656
|
+
})(["list-style:none;margin:0;padding:0;& > ", ":first-child{display:none;}"], Divider$1);
|
|
45657
|
+
var Button = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
45658
|
+
_a.onPointerEnter;
|
|
45659
|
+
_a.onPointerLeave;
|
|
45660
|
+
_a.onPointerMove;
|
|
45661
|
+
var props = __rest(_a, ["onPointerEnter", "onPointerLeave", "onPointerMove"]);
|
|
45662
|
+
return /*#__PURE__*/React__default.createElement("button", Object.assign({}, props, {
|
|
45663
|
+
ref: forwardedRef
|
|
45664
|
+
}));
|
|
45665
|
+
});
|
|
45666
|
+
Button.displayName = "Button";
|
|
45667
|
+
|
|
45668
|
+
var USER_MENU_HEADER_HEIGHT = "104px";
|
|
45669
|
+
var HeaderText = styled(Text).attrs({
|
|
45670
|
+
color: "darkGrey",
|
|
45671
|
+
fontSize: "small",
|
|
45672
|
+
fontStyle: "normal",
|
|
45673
|
+
lineHeight: "smallTextBase",
|
|
45674
|
+
m: "none"
|
|
45675
|
+
}).withConfig({
|
|
45676
|
+
displayName: "Header__HeaderText",
|
|
45677
|
+
componentId: "sc-e7lhxf-0"
|
|
45678
|
+
})({});
|
|
45679
|
+
var HeaderWrapper = styled(Flex).attrs({
|
|
45680
|
+
position: "relative",
|
|
45681
|
+
flexDirection: "column",
|
|
45682
|
+
justifyContent: "center",
|
|
45683
|
+
alignItems: "flex-start",
|
|
45684
|
+
alignSelf: "stretch",
|
|
45685
|
+
px: "x3",
|
|
45686
|
+
py: "none",
|
|
45687
|
+
bg: "whiteGrey",
|
|
45688
|
+
borderTopLeftRadius: "large",
|
|
45689
|
+
borderTopRightRadius: "large",
|
|
45690
|
+
height: USER_MENU_HEADER_HEIGHT,
|
|
45691
|
+
overflow: "hidden"
|
|
45692
|
+
}).withConfig({
|
|
45693
|
+
displayName: "Header__HeaderWrapper",
|
|
45694
|
+
componentId: "sc-e7lhxf-1"
|
|
45695
|
+
})(function (_ref) {
|
|
45696
|
+
var theme = _ref.theme;
|
|
45697
|
+
return {
|
|
45698
|
+
"&:last-child": {
|
|
45699
|
+
borderBottomLeftRadius: theme.radii.large,
|
|
45700
|
+
borderBottomRightRadius: theme.radii.large
|
|
45701
|
+
}
|
|
45702
|
+
};
|
|
45703
|
+
});
|
|
45704
|
+
var Header$2 = function Header(_ref2) {
|
|
45705
|
+
var title = _ref2.title,
|
|
45706
|
+
subtitle1 = _ref2.subtitle1,
|
|
45707
|
+
subtitle2 = _ref2.subtitle2,
|
|
45708
|
+
containerProps = _ref2.containerProps;
|
|
45709
|
+
return /*#__PURE__*/React__default.createElement(HeaderWrapper, Object.assign({}, containerProps), /*#__PURE__*/React__default.createElement(HeaderText, {
|
|
45710
|
+
fontWeight: "bold"
|
|
45711
|
+
}, title), /*#__PURE__*/React__default.createElement(HeaderText, {
|
|
45712
|
+
fontWeight: "normal"
|
|
45713
|
+
}, subtitle1), /*#__PURE__*/React__default.createElement(HeaderText, {
|
|
45714
|
+
fontWeight: "normal"
|
|
45715
|
+
}, subtitle2), /*#__PURE__*/React__default.createElement(BackgroundTriangles, null));
|
|
45716
|
+
};
|
|
45717
|
+
|
|
45718
|
+
var baseUserMenuItemStyles = function baseUserMenuItemStyles(theme, isMobile) {
|
|
45719
|
+
return Object.assign(Object.assign({
|
|
45720
|
+
width: "100%",
|
|
45721
|
+
color: theme.colors.darkGrey,
|
|
45722
|
+
fontSize: theme.fontSizes.small,
|
|
45723
|
+
fontWeight: theme.fontWeights.bold,
|
|
45724
|
+
lineHeight: theme.lineHeights.smallTextBase,
|
|
45725
|
+
paddingTop: theme.space.x1_5,
|
|
45726
|
+
paddingBottom: theme.space.x1_5,
|
|
45727
|
+
paddingLeft: theme.space.x2,
|
|
45728
|
+
paddingRight: theme.space.x2
|
|
45729
|
+
}, !isMobile && {
|
|
45730
|
+
"&:hover, &:focus": {
|
|
45731
|
+
backgroundColor: theme.colors.lightBlue,
|
|
45732
|
+
color: theme.colors.darkBlue,
|
|
45733
|
+
outline: "none"
|
|
45734
|
+
}
|
|
45735
|
+
}), isMobile && {
|
|
45736
|
+
"&:hover": {
|
|
45737
|
+
// No background or color change on hover for mobile
|
|
45738
|
+
},
|
|
45739
|
+
"&:focus": {
|
|
45740
|
+
backgroundColor: "transparent",
|
|
45741
|
+
color: theme.colors.darkBlue,
|
|
45742
|
+
outline: "none"
|
|
45743
|
+
}
|
|
45744
|
+
});
|
|
45745
|
+
};
|
|
45746
|
+
var UserMenuLink = styled($322c88a641701f3b$export$a6c7ac8248d6e38a).withConfig({
|
|
45747
|
+
displayName: "styled__UserMenuLink",
|
|
45748
|
+
componentId: "sc-11w4bv0-0"
|
|
45749
|
+
})(function (_ref) {
|
|
45750
|
+
var theme = _ref.theme,
|
|
45751
|
+
$isMobile = _ref.$isMobile;
|
|
45752
|
+
return Object.assign(Object.assign({}, baseUserMenuItemStyles(theme, $isMobile)), {
|
|
45753
|
+
display: "block",
|
|
45754
|
+
textDecoration: "none"
|
|
45755
|
+
});
|
|
45756
|
+
}, addStyledProps);
|
|
45757
|
+
var UserMenuTrigger = styled($322c88a641701f3b$export$41fb9f06171c75f4).withConfig({
|
|
45758
|
+
displayName: "styled__UserMenuTrigger",
|
|
45759
|
+
componentId: "sc-11w4bv0-1"
|
|
45760
|
+
})(function (_ref2) {
|
|
45761
|
+
var theme = _ref2.theme,
|
|
45762
|
+
$isMobile = _ref2.$isMobile;
|
|
45763
|
+
return Object.assign(Object.assign({}, baseUserMenuItemStyles(theme, $isMobile)), {
|
|
45764
|
+
background: "none",
|
|
45765
|
+
border: "none",
|
|
45766
|
+
userSelect: "none",
|
|
45767
|
+
display: "flex",
|
|
45768
|
+
justifyContent: "space-between",
|
|
45769
|
+
alignItems: "center",
|
|
45770
|
+
textAlign: "left"
|
|
45771
|
+
});
|
|
45772
|
+
}, addStyledProps);
|
|
45773
|
+
var SubMenuContent = styled($322c88a641701f3b$export$7c6e2c02157bb7d2).withConfig({
|
|
45774
|
+
displayName: "styled__SubMenuContent",
|
|
45775
|
+
componentId: "sc-11w4bv0-2"
|
|
45776
|
+
})(function (_ref3) {
|
|
45777
|
+
var theme = _ref3.theme;
|
|
45778
|
+
return {
|
|
45779
|
+
position: "absolute",
|
|
45780
|
+
top: "calc(-1 * " + theme.space.x1 + ")",
|
|
45781
|
+
right: "calc(100% - " + theme.space.half + ")",
|
|
45782
|
+
width: "max-content",
|
|
45783
|
+
minWidth: "150px",
|
|
45784
|
+
background: theme.colors.white,
|
|
45785
|
+
borderRadius: theme.radii.medium,
|
|
45786
|
+
boxShadow: theme.shadows.medium,
|
|
45787
|
+
padding: theme.space.none,
|
|
45788
|
+
listStyle: "none"
|
|
45789
|
+
};
|
|
45790
|
+
});
|
|
45791
|
+
var SubMenuList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5).withConfig({
|
|
45792
|
+
displayName: "styled__SubMenuList",
|
|
45793
|
+
componentId: "sc-11w4bv0-3"
|
|
45794
|
+
})(function (_ref4) {
|
|
45795
|
+
var theme = _ref4.theme;
|
|
45796
|
+
return {
|
|
45797
|
+
listStyle: "none",
|
|
45798
|
+
paddingLeft: theme.space.none,
|
|
45799
|
+
paddingRight: theme.space.none,
|
|
45800
|
+
paddingTop: theme.space.x1,
|
|
45801
|
+
paddingBottom: theme.space.x1,
|
|
45802
|
+
margin: 0
|
|
45803
|
+
};
|
|
45804
|
+
});
|
|
45805
|
+
|
|
45806
|
+
var Item$1 = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
45807
|
+
var item = _a.item,
|
|
45808
|
+
_a$level = _a.level,
|
|
45809
|
+
level = _a$level === void 0 ? 0 : _a$level,
|
|
45810
|
+
props = __rest(_a, ["item", "level"]);
|
|
45811
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45812
|
+
ref: forwardedRef
|
|
45813
|
+
}, props), item.type === "link" && (/*#__PURE__*/React__default.createElement(UserMenuLink, {
|
|
45814
|
+
asChild: true
|
|
45815
|
+
}, item.element ? (/*#__PURE__*/React__default.cloneElement(item.element, Object.assign(Object.assign({}, item.props), {
|
|
45816
|
+
children: item.label
|
|
45817
|
+
}))) : (/*#__PURE__*/React__default.createElement("a", Object.assign({}, item.props), item.label)))), item.type === "button" && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(UserMenuTrigger, Object.assign({}, item.props), item.label, "items" in item && item.items && item.items.length > 0 && /*#__PURE__*/React__default.createElement(CaretRight, {
|
|
45818
|
+
"aria-hidden": true,
|
|
45819
|
+
size: "x2"
|
|
45820
|
+
})), "items" in item && item.items && item.items.length > 0 && (/*#__PURE__*/React__default.createElement(SubMenuContent, null, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
45821
|
+
orientation: "vertical"
|
|
45822
|
+
}, /*#__PURE__*/React__default.createElement(SubMenuList, null, item.items.map(function (subItem) {
|
|
45823
|
+
return /*#__PURE__*/React__default.createElement(Item$1, {
|
|
45824
|
+
key: subItem.key,
|
|
45825
|
+
item: subItem,
|
|
45826
|
+
level: level + 1
|
|
45827
|
+
});
|
|
45828
|
+
}))))))), item.type === "custom" && item.render({
|
|
45829
|
+
level: level,
|
|
45830
|
+
withinMobileNav: false
|
|
45831
|
+
}));
|
|
45832
|
+
});
|
|
45833
|
+
Item$1.displayName = "Item";
|
|
45834
|
+
|
|
45835
|
+
var IndentedContainer = styled(Box).withConfig({
|
|
45836
|
+
displayName: "styled__IndentedContainer",
|
|
45837
|
+
componentId: "sc-1ncfbl2-0"
|
|
45838
|
+
})(function (_ref) {
|
|
45839
|
+
var theme = _ref.theme,
|
|
45840
|
+
level = _ref.level;
|
|
45841
|
+
return {
|
|
45842
|
+
paddingLeft: "calc(" + level + " * " + theme.space.x2 + ")"
|
|
45843
|
+
};
|
|
45844
|
+
});
|
|
45845
|
+
var commonPadding = function commonPadding(theme) {
|
|
45846
|
+
return {
|
|
45847
|
+
paddingLeft: 0,
|
|
45848
|
+
paddingRight: 0,
|
|
45849
|
+
paddingTop: theme.space.x2,
|
|
45850
|
+
paddingBottom: theme.space.x2
|
|
45851
|
+
};
|
|
45852
|
+
};
|
|
45853
|
+
var commonStyles = function commonStyles(theme) {
|
|
45854
|
+
return Object.assign(Object.assign({}, commonPadding(theme)), {
|
|
45855
|
+
background: "none",
|
|
45856
|
+
border: "none",
|
|
45857
|
+
outline: "none",
|
|
45858
|
+
userSelect: "none",
|
|
45859
|
+
display: "flex",
|
|
45860
|
+
alignItems: "center",
|
|
45861
|
+
gap: theme.space.x1,
|
|
45862
|
+
color: theme.colors.darkGrey,
|
|
45863
|
+
fontSize: theme.fontSizes.small,
|
|
45864
|
+
fontWeight: theme.fontWeights.medium,
|
|
45865
|
+
lineHeight: theme.lineHeights.smallTextBase,
|
|
45866
|
+
width: "100%",
|
|
45867
|
+
textAlign: "left"
|
|
45868
|
+
});
|
|
45869
|
+
};
|
|
45870
|
+
var MenuItemGroupLabel = styled(Text).withConfig({
|
|
45871
|
+
displayName: "styled__MenuItemGroupLabel",
|
|
45872
|
+
componentId: "sc-1ncfbl2-1"
|
|
45873
|
+
})(function (_ref2) {
|
|
45874
|
+
var theme = _ref2.theme;
|
|
45875
|
+
return Object.assign(Object.assign({}, commonPadding(theme)), {
|
|
45876
|
+
display: "flex",
|
|
45877
|
+
alignItems: "center",
|
|
45878
|
+
gap: theme.space.x1,
|
|
45879
|
+
color: theme.colors.darkGrey,
|
|
45880
|
+
fontSize: theme.fontSizes.small,
|
|
45881
|
+
fontWeight: theme.fontWeights.medium,
|
|
45882
|
+
lineHeight: theme.lineHeights.smallTextBase,
|
|
45883
|
+
width: "100%",
|
|
45884
|
+
textAlign: "left"
|
|
45885
|
+
});
|
|
45886
|
+
});
|
|
45887
|
+
var MobileNavigationButton = styled($322c88a641701f3b$export$41fb9f06171c75f4).withConfig({
|
|
45888
|
+
displayName: "styled__MobileNavigationButton",
|
|
45889
|
+
componentId: "sc-1ncfbl2-2"
|
|
45890
|
+
})(function (_ref3) {
|
|
45891
|
+
var theme = _ref3.theme;
|
|
45892
|
+
return Object.assign({}, commonStyles(theme));
|
|
45893
|
+
});
|
|
45894
|
+
var MobileNavigationLink = styled($322c88a641701f3b$export$a6c7ac8248d6e38a).withConfig({
|
|
45895
|
+
displayName: "styled__MobileNavigationLink",
|
|
45896
|
+
componentId: "sc-1ncfbl2-3"
|
|
45897
|
+
})(function (_ref4) {
|
|
45898
|
+
var theme = _ref4.theme;
|
|
45899
|
+
return Object.assign(Object.assign({}, commonStyles(theme)), {
|
|
45900
|
+
textDecoration: "none"
|
|
45901
|
+
});
|
|
45902
|
+
});
|
|
45903
|
+
var MobileSecondaryLogoContainer = styled($322c88a641701f3b$export$d7a01e11500dfb6f).withConfig({
|
|
45904
|
+
displayName: "styled__MobileSecondaryLogoContainer",
|
|
45905
|
+
componentId: "sc-1ncfbl2-4"
|
|
45906
|
+
})(function (_ref5) {
|
|
45907
|
+
var theme = _ref5.theme;
|
|
45908
|
+
return {
|
|
45909
|
+
marginTop: theme.space.x2,
|
|
45910
|
+
padding: theme.space.x2,
|
|
45911
|
+
display: "flex",
|
|
45912
|
+
justifyContent: "center"
|
|
45913
|
+
};
|
|
45914
|
+
});
|
|
45915
|
+
|
|
45916
|
+
var MobileItem = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
45917
|
+
var item = _a.item,
|
|
45918
|
+
_a$level = _a.level,
|
|
45919
|
+
level = _a$level === void 0 ? 0 : _a$level,
|
|
45920
|
+
props = __rest(_a, ["item", "level"]);
|
|
45921
|
+
var hasSubItems = "items" in item && item.items && item.items.length > 0;
|
|
45922
|
+
var content = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, item.type === "link" && (/*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
45923
|
+
level: level
|
|
45924
|
+
}, /*#__PURE__*/React__default.createElement(UserMenuLink, {
|
|
45925
|
+
asChild: true,
|
|
45926
|
+
"$isMobile": true
|
|
45927
|
+
}, item.element ? (/*#__PURE__*/React__default.cloneElement(item.element, Object.assign(Object.assign({}, item.props), {
|
|
45928
|
+
children: item.label
|
|
45929
|
+
}))) : (/*#__PURE__*/React__default.createElement("a", Object.assign({}, item.props), item.label))))), item.type === "button" && (/*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
45930
|
+
level: level
|
|
45931
|
+
}, /*#__PURE__*/React__default.createElement(UserMenuTrigger, Object.assign({}, item.props, {
|
|
45932
|
+
"$isMobile": true
|
|
45933
|
+
}), item.label))), item.type === "custom" && item.render({
|
|
45934
|
+
level: level,
|
|
45935
|
+
withinMobileNav: true
|
|
45936
|
+
}));
|
|
45937
|
+
if (item.type === "button" && hasSubItems) {
|
|
45938
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45939
|
+
ref: forwardedRef
|
|
45940
|
+
}, props), content, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
45941
|
+
orientation: "vertical"
|
|
45942
|
+
}, /*#__PURE__*/React__default.createElement(SubMenuList$1, null, item.items.map(function (subItem) {
|
|
45943
|
+
return /*#__PURE__*/React__default.createElement(MobileItem, {
|
|
45944
|
+
key: subItem.key,
|
|
45945
|
+
item: subItem,
|
|
45946
|
+
level: level + 1
|
|
45947
|
+
});
|
|
45948
|
+
}))));
|
|
45949
|
+
}
|
|
45950
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
45951
|
+
ref: forwardedRef
|
|
45952
|
+
}, props), content);
|
|
45953
|
+
});
|
|
45954
|
+
MobileItem.displayName = "MobileItem";
|
|
45955
|
+
|
|
45956
|
+
var Container = styled($322c88a641701f3b$export$d7a01e11500dfb6f).attrs({
|
|
45957
|
+
orientation: "vertical"
|
|
45958
|
+
}).withConfig({
|
|
45959
|
+
displayName: "UserMenu__Container",
|
|
45960
|
+
componentId: "sc-vvgsl3-0"
|
|
45961
|
+
})(addStyledProps);
|
|
45962
|
+
var UserMenu = {
|
|
45963
|
+
Header: Header$2,
|
|
45964
|
+
Container: Container,
|
|
45965
|
+
Item: Item$1,
|
|
45966
|
+
MobileItem: MobileItem
|
|
45967
|
+
};
|
|
45968
|
+
|
|
45969
|
+
var NavigationMenuContent = styled($322c88a641701f3b$export$7c6e2c02157bb7d2).attrs(disableHoverEvents).withConfig({
|
|
45970
|
+
displayName: "NavigationMenuContent",
|
|
45971
|
+
componentId: "sc-dchpnw-0"
|
|
45972
|
+
})(function (_ref) {
|
|
45973
|
+
var theme = _ref.theme;
|
|
45974
|
+
return {
|
|
45975
|
+
position: "absolute",
|
|
45976
|
+
top: "calc(100% + " + theme.space.x1 + ")",
|
|
45977
|
+
display: "flex",
|
|
45978
|
+
flexDirection: "column",
|
|
45979
|
+
borderRadius: theme.radii.large,
|
|
45980
|
+
background: theme.colors.white,
|
|
45981
|
+
boxShadow: theme.shadows.large,
|
|
45982
|
+
width: "calc(100vw - (" + theme.space.x4 + "))",
|
|
45983
|
+
maxWidth: NAVIGATION_MENU_CONTENT_WIDTH_MAX_WIDTH_PX,
|
|
45984
|
+
paddingTop: theme.space.x2,
|
|
45985
|
+
paddingBottom: theme.space.x2,
|
|
45986
|
+
paddingLeft: theme.space.none,
|
|
45987
|
+
paddingRight: theme.space.none
|
|
45988
|
+
};
|
|
45989
|
+
}, addStyledProps);
|
|
45990
|
+
|
|
45991
|
+
var Link = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
45992
|
+
var children = _a.children,
|
|
45993
|
+
props = __rest(_a, ["children"]);
|
|
45994
|
+
return /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$a6c7ac8248d6e38a, {
|
|
45995
|
+
asChild: true
|
|
45996
|
+
}, /*#__PURE__*/React__default.createElement(A, Object.assign({}, props, {
|
|
45997
|
+
ref: forwardedRef
|
|
45998
|
+
}), children));
|
|
45999
|
+
});
|
|
46000
|
+
Link.displayName = "Link";
|
|
46001
|
+
var A = styled$1("a").withConfig({
|
|
46002
|
+
displayName: "Link__A",
|
|
46003
|
+
componentId: "sc-1fx3wm3-0"
|
|
46004
|
+
})(function (_ref) {
|
|
46005
|
+
var theme = _ref.theme;
|
|
46006
|
+
return {
|
|
46007
|
+
textDecoration: "none",
|
|
46008
|
+
width: "100%",
|
|
46009
|
+
display: "flex",
|
|
46010
|
+
flexDirection: "column",
|
|
46011
|
+
alignItems: "flex-start",
|
|
46012
|
+
alignSelf: "stretch",
|
|
46013
|
+
paddingTop: theme.space.x1_5,
|
|
46014
|
+
paddingRight: theme.space.x3,
|
|
46015
|
+
paddingBottom: theme.space.x2,
|
|
46016
|
+
paddingLeft: theme.space.x3,
|
|
46017
|
+
transition: "background-color 250ms ease",
|
|
46018
|
+
"&:hover, &:focus": {
|
|
46019
|
+
backgroundColor: theme.colors.lightBlue,
|
|
46020
|
+
color: theme.colors.darkBlue,
|
|
46021
|
+
outline: "none"
|
|
46022
|
+
}
|
|
46023
|
+
};
|
|
46024
|
+
});
|
|
46025
|
+
|
|
46026
|
+
var FullWidthItem = styled$1($322c88a641701f3b$export$6d08773d2e66f8f2).withConfig({
|
|
46027
|
+
displayName: "Item__FullWidthItem",
|
|
46028
|
+
componentId: "sc-1l4ljj9-0"
|
|
46029
|
+
})({
|
|
46030
|
+
width: "100%"
|
|
46031
|
+
});
|
|
46032
|
+
var Item = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
46033
|
+
var children = _a.children,
|
|
46034
|
+
props = __rest(_a, ["children"]);
|
|
46035
|
+
return /*#__PURE__*/React__default.createElement(FullWidthItem, Object.assign({}, props, {
|
|
46036
|
+
ref: forwardedRef
|
|
46037
|
+
}), children);
|
|
46038
|
+
});
|
|
46039
|
+
Item.displayName = "Item";
|
|
46040
|
+
|
|
46041
|
+
var List = styled($322c88a641701f3b$export$54c2e3dc7acea9f5).withConfig({
|
|
46042
|
+
displayName: "parts__List",
|
|
46043
|
+
componentId: "sc-8zgtg7-0"
|
|
46044
|
+
})(function (_ref) {
|
|
46045
|
+
var theme = _ref.theme;
|
|
46046
|
+
return {
|
|
46047
|
+
margin: 0,
|
|
46048
|
+
padding: 0,
|
|
46049
|
+
gap: theme.space.x2,
|
|
46050
|
+
listStyle: "none"
|
|
46051
|
+
};
|
|
46052
|
+
});
|
|
46053
|
+
var Header$1 = styled("div").withConfig({
|
|
46054
|
+
displayName: "parts__Header",
|
|
46055
|
+
componentId: "sc-8zgtg7-1"
|
|
46056
|
+
})(function (_ref2) {
|
|
46057
|
+
var theme = _ref2.theme;
|
|
46058
|
+
return {
|
|
46059
|
+
display: "flex",
|
|
46060
|
+
alignItems: "center",
|
|
46061
|
+
gap: theme.space.x1
|
|
46062
|
+
};
|
|
46063
|
+
});
|
|
46064
|
+
var Title = styled(Heading4).attrs({
|
|
46065
|
+
color: "darkGrey",
|
|
46066
|
+
compact: true
|
|
46067
|
+
}).withConfig({
|
|
46068
|
+
displayName: "parts__Title",
|
|
46069
|
+
componentId: "sc-8zgtg7-2"
|
|
46070
|
+
})({});
|
|
46071
|
+
var Description = styled(Text).attrs({
|
|
46072
|
+
color: "midGrey",
|
|
46073
|
+
fontSize: "smaller"
|
|
46074
|
+
}).withConfig({
|
|
46075
|
+
displayName: "parts__Description",
|
|
46076
|
+
componentId: "sc-8zgtg7-3"
|
|
46077
|
+
})({});
|
|
46078
|
+
var AppSwitcher = {
|
|
46079
|
+
Content: NavigationMenuContent,
|
|
46080
|
+
List: List,
|
|
46081
|
+
Item: Item,
|
|
46082
|
+
Link: Link,
|
|
46083
|
+
Header: Header$1,
|
|
46084
|
+
Title: Title,
|
|
46085
|
+
Description: Description
|
|
46086
|
+
};
|
|
46087
|
+
|
|
46088
|
+
var apps = function apps(t) {
|
|
46089
|
+
return [{
|
|
46090
|
+
id: "connections",
|
|
46091
|
+
label: t("Connections"),
|
|
46092
|
+
description: t("connections app description")
|
|
46093
|
+
}, {
|
|
46094
|
+
id: "digital-quality-inspection",
|
|
46095
|
+
label: t("Digital Quality Inspection"),
|
|
46096
|
+
description: t("digital quality inspection app description")
|
|
46097
|
+
}, {
|
|
46098
|
+
id: "production-scheduling",
|
|
46099
|
+
label: t("Production Scheduling"),
|
|
46100
|
+
description: t("production scheduling app description")
|
|
46101
|
+
}, {
|
|
46102
|
+
id: "shop-floor",
|
|
46103
|
+
label: t("Shop Floor Control"),
|
|
46104
|
+
description: t("shop floor control app description")
|
|
46105
|
+
}, {
|
|
46106
|
+
id: "supplier-collaboration",
|
|
46107
|
+
label: t("Supplier Collaboration"),
|
|
46108
|
+
description: t("supplier collaboration app description")
|
|
46109
|
+
}, {
|
|
46110
|
+
id: "smart-factory",
|
|
46111
|
+
label: t("Smart Factory"),
|
|
46112
|
+
description: t("smart factory app description")
|
|
46113
|
+
}, {
|
|
46114
|
+
id: "data",
|
|
46115
|
+
label: t("Data"),
|
|
46116
|
+
description: t("data app description")
|
|
46117
|
+
}];
|
|
46118
|
+
};
|
|
46119
|
+
function NulogyAppSwitcher(_ref) {
|
|
46120
|
+
var config = _ref.config;
|
|
46121
|
+
var _useTranslation = useTranslation(),
|
|
46122
|
+
t = _useTranslation.t;
|
|
46123
|
+
var includedApps = useMemo(function () {
|
|
46124
|
+
if (!config) return [];
|
|
46125
|
+
return apps(t).filter(function (app) {
|
|
46126
|
+
var _a;
|
|
46127
|
+
var appConfig = config.apps[app.id];
|
|
46128
|
+
return Boolean(appConfig) && ((_a = appConfig.visible) !== null && _a !== void 0 ? _a : true);
|
|
46129
|
+
}).map(function (app) {
|
|
46130
|
+
var appConfig = config.apps[app.id];
|
|
46131
|
+
return Object.assign(Object.assign({}, app), {
|
|
46132
|
+
url: appConfig.url,
|
|
46133
|
+
indicator: appConfig.indicator
|
|
46134
|
+
});
|
|
46135
|
+
});
|
|
46136
|
+
}, [config, t]);
|
|
46137
|
+
if (!config) return null;
|
|
46138
|
+
return /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$6d08773d2e66f8f2, null, /*#__PURE__*/React__default.createElement(NavigationMenuIconTrigger, {
|
|
46139
|
+
"aria-label": t("toggle app switcher")
|
|
46140
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
46141
|
+
icon: "apps",
|
|
46142
|
+
size: "x3"
|
|
46143
|
+
})), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
|
|
46144
|
+
left: 0,
|
|
46145
|
+
"aria-label": t("app switcher")
|
|
46146
|
+
}, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, null, /*#__PURE__*/React__default.createElement(AppSwitcher.List, null, includedApps.map(function (app) {
|
|
46147
|
+
return /*#__PURE__*/React__default.createElement(AppSwitcher.Item, {
|
|
46148
|
+
key: app.id
|
|
46149
|
+
}, /*#__PURE__*/React__default.createElement(AppSwitcher.Link, {
|
|
46150
|
+
href: app.url,
|
|
46151
|
+
"aria-label": app.label
|
|
46152
|
+
}, app.indicator ? (/*#__PURE__*/React__default.createElement(AppSwitcher.Header, null, /*#__PURE__*/React__default.createElement(AppSwitcher.Title, null, app.label), app.indicator)) : (/*#__PURE__*/React__default.createElement(AppSwitcher.Title, null, app.label)), /*#__PURE__*/React__default.createElement(AppSwitcher.Description, null, app.description)));
|
|
46153
|
+
})))));
|
|
46154
|
+
}
|
|
46155
|
+
|
|
46156
|
+
var useResponsiveMenu = function useResponsiveMenu(initialMenuItems) {
|
|
46157
|
+
var _useState = useState({
|
|
46158
|
+
menuItems: initialMenuItems,
|
|
46159
|
+
moreMenu: [],
|
|
46160
|
+
hiddenMenuItem: {
|
|
46161
|
+
key: "hidden-menu-item",
|
|
46162
|
+
label: "",
|
|
46163
|
+
type: "button"
|
|
46164
|
+
}
|
|
46165
|
+
}),
|
|
46166
|
+
menuState = _useState[0],
|
|
46167
|
+
setMenuState = _useState[1];
|
|
46168
|
+
var primaryMenuRef = useRef(null);
|
|
46169
|
+
var secondaryMenuRef = useRef(null);
|
|
46170
|
+
var hiddenButtonRef = useRef(null);
|
|
46171
|
+
var calculateDistance = useCallback(function () {
|
|
46172
|
+
if (!primaryMenuRef.current || !secondaryMenuRef.current || !hiddenButtonRef.current) {
|
|
46173
|
+
return false;
|
|
46174
|
+
}
|
|
46175
|
+
var primaryRect = primaryMenuRef.current.getBoundingClientRect();
|
|
46176
|
+
var secondaryRect = secondaryMenuRef.current.getBoundingClientRect();
|
|
46177
|
+
var hiddenButtonWidth = hiddenButtonRef.current.getBoundingClientRect().width;
|
|
46178
|
+
var distance = secondaryRect.left - primaryRect.right;
|
|
46179
|
+
if (distance < MIN_DISTANCE_BETWEEN_MENUS_PX && menuState.menuItems.length > 0) {
|
|
46180
|
+
var lastItem = menuState.menuItems[menuState.menuItems.length - 1];
|
|
46181
|
+
var newMenuItems = menuState.menuItems.slice(0, -1);
|
|
46182
|
+
var newHiddenMenu = [lastItem].concat(menuState.moreMenu);
|
|
46183
|
+
if (!equal(newMenuItems, menuState.menuItems) || !equal(newHiddenMenu, menuState.moreMenu)) {
|
|
46184
|
+
setMenuState({
|
|
46185
|
+
menuItems: newMenuItems,
|
|
46186
|
+
moreMenu: newHiddenMenu,
|
|
46187
|
+
hiddenMenuItem: lastItem
|
|
46188
|
+
});
|
|
46189
|
+
}
|
|
46190
|
+
} else if (Math.floor(distance - hiddenButtonWidth - 8) > MIN_DISTANCE_BETWEEN_MENUS_PX && menuState.moreMenu.length > 0) {
|
|
46191
|
+
var firstHiddenItem = menuState.moreMenu[0];
|
|
46192
|
+
var _newHiddenMenu = menuState.moreMenu.slice(1);
|
|
46193
|
+
var _newMenuItems = [].concat(menuState.menuItems, [firstHiddenItem]);
|
|
46194
|
+
if (!equal(_newHiddenMenu, menuState.moreMenu) || !equal(_newMenuItems, menuState.menuItems)) {
|
|
46195
|
+
setMenuState({
|
|
46196
|
+
menuItems: _newMenuItems,
|
|
46197
|
+
moreMenu: _newHiddenMenu,
|
|
46198
|
+
hiddenMenuItem: firstHiddenItem
|
|
46199
|
+
});
|
|
46200
|
+
}
|
|
46201
|
+
}
|
|
46202
|
+
}, [menuState]);
|
|
46203
|
+
useLayoutEffect(function () {
|
|
46204
|
+
calculateDistance();
|
|
46205
|
+
window.addEventListener("resize", calculateDistance);
|
|
46206
|
+
return function () {
|
|
46207
|
+
window.removeEventListener("resize", calculateDistance);
|
|
46208
|
+
};
|
|
46209
|
+
}, [calculateDistance]);
|
|
46210
|
+
return {
|
|
46211
|
+
menuItems: menuState.menuItems,
|
|
46212
|
+
moreMenu: menuState.moreMenu,
|
|
46213
|
+
hiddenMenuItem: menuState.hiddenMenuItem,
|
|
46214
|
+
primaryMenuRef: primaryMenuRef,
|
|
46215
|
+
secondaryMenuRef: secondaryMenuRef,
|
|
46216
|
+
hiddenButtonRef: hiddenButtonRef
|
|
46217
|
+
};
|
|
46218
|
+
};
|
|
46219
|
+
|
|
46220
|
+
function SvgNulogyLogo(props) {
|
|
46221
|
+
return /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
46222
|
+
viewBox: "0 0 102 24",
|
|
46223
|
+
fill: "none",
|
|
46224
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
46225
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
46226
|
+
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",
|
|
46227
|
+
fill: "#F0B41C"
|
|
46228
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46229
|
+
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",
|
|
46230
|
+
fill: "#1C68A5"
|
|
46231
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46232
|
+
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",
|
|
46233
|
+
fill: "#1C68A5"
|
|
46234
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46235
|
+
d: "M62.349 18.7354H60.2773V0.830151L62.349 0V18.7354Z",
|
|
46236
|
+
fill: "#1C68A5"
|
|
46237
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46238
|
+
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",
|
|
46239
|
+
fill: "#1C68A5"
|
|
46240
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46241
|
+
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",
|
|
46242
|
+
fill: "#1C68A5"
|
|
46243
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
46244
|
+
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",
|
|
46245
|
+
fill: "#1C68A5"
|
|
46246
|
+
}));
|
|
46247
|
+
}
|
|
46248
|
+
|
|
46249
|
+
function NulogyLogo(_ref) {
|
|
46250
|
+
var app = _ref.app;
|
|
46251
|
+
var appDisplayName = APP_DISPLAY_NAMES[app];
|
|
46252
|
+
if (app && !(app in APP_DISPLAY_NAMES)) {
|
|
46253
|
+
throw new Error("Invalid app name: " + app + ". Valid names are: " + Object.keys(APP_DISPLAY_NAMES).join(", "));
|
|
46254
|
+
}
|
|
46255
|
+
return /*#__PURE__*/React__default.createElement(Flex, {
|
|
46256
|
+
alignItems: "flex-start",
|
|
46257
|
+
justifyContent: "center",
|
|
46258
|
+
flexDirection: appDisplayName ? "column" : "row"
|
|
46259
|
+
}, /*#__PURE__*/React__default.createElement(SvgNulogyLogo, {
|
|
46260
|
+
width: "102",
|
|
46261
|
+
height: "24"
|
|
46262
|
+
}), appDisplayName && (
|
|
46263
|
+
/*#__PURE__*/
|
|
46264
|
+
/*
|
|
46265
|
+
This Text component is using custom properties that are not
|
|
46266
|
+
in the theme because we're trying to match the branding
|
|
46267
|
+
typography and colors of the Nulogy logo.
|
|
46268
|
+
*/
|
|
46269
|
+
React__default.createElement(Text, {
|
|
46270
|
+
fontSize: "10px",
|
|
46271
|
+
lineHeight: "12px",
|
|
46272
|
+
color: "#1C68A5",
|
|
46273
|
+
fontWeight: "normal",
|
|
46274
|
+
textTransform: "uppercase",
|
|
46275
|
+
letterSpacing: "0.4px"
|
|
46276
|
+
}, appDisplayName)));
|
|
46277
|
+
}
|
|
46278
|
+
|
|
46279
|
+
var NavigationMenuLink = styled(NavigationMenuLink$1).withConfig({
|
|
46280
|
+
displayName: "NavigationLogoLink__NavigationMenuLink",
|
|
46281
|
+
componentId: "sc-1hn2kgx-0"
|
|
46282
|
+
})(function (_ref) {
|
|
46283
|
+
var theme = _ref.theme;
|
|
46284
|
+
return {
|
|
46285
|
+
display: "flex",
|
|
46286
|
+
alignItems: "center",
|
|
46287
|
+
padding: theme.space.x1
|
|
46288
|
+
};
|
|
46289
|
+
});
|
|
46290
|
+
var NavigationLogoLink = function NavigationLogoLink(_a) {
|
|
46291
|
+
var href = _a.href,
|
|
46292
|
+
_a$renderAsFragment = _a.renderAsFragment,
|
|
46293
|
+
renderAsFragment = _a$renderAsFragment === void 0 ? false : _a$renderAsFragment,
|
|
46294
|
+
props = __rest(_a, ["href", "renderAsFragment"]);
|
|
46295
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuLink, Object.assign({
|
|
46296
|
+
href: href,
|
|
46297
|
+
asChild: renderAsFragment
|
|
46298
|
+
}, props));
|
|
46299
|
+
};
|
|
46300
|
+
|
|
46301
|
+
function MoreMenuItem(_ref) {
|
|
46302
|
+
var moreMenu = _ref.moreMenu;
|
|
46303
|
+
var _useTranslation = useTranslation(),
|
|
46304
|
+
t = _useTranslation.t;
|
|
46305
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
46306
|
+
item: {
|
|
46307
|
+
key: "nds-primary-menu-more-item",
|
|
46308
|
+
label: t("more"),
|
|
46309
|
+
type: "button",
|
|
46310
|
+
items: moreMenu
|
|
46311
|
+
}
|
|
46312
|
+
});
|
|
46313
|
+
}
|
|
46314
|
+
var HiddenNavigationMenuItem = styled(NavigationMenuItem).attrs({
|
|
46315
|
+
tabIndex: -1,
|
|
46316
|
+
"aria-hidden": true
|
|
46317
|
+
}).withConfig({
|
|
46318
|
+
displayName: "MoreMenuItem__HiddenNavigationMenuItem",
|
|
46319
|
+
componentId: "sc-zkmm5o-0"
|
|
46320
|
+
})({
|
|
46321
|
+
position: "absolute",
|
|
46322
|
+
visibility: "hidden"
|
|
46323
|
+
});
|
|
46324
|
+
|
|
46325
|
+
function DesktopNav(_ref) {
|
|
46326
|
+
var _ref$primaryNavigatio = _ref.primaryNavigation,
|
|
46327
|
+
primaryNavigation = _ref$primaryNavigatio === void 0 ? [] : _ref$primaryNavigatio,
|
|
46328
|
+
_ref$secondaryNavigat = _ref.secondaryNavigation,
|
|
46329
|
+
secondaryNavigation = _ref$secondaryNavigat === void 0 ? [] : _ref$secondaryNavigat,
|
|
46330
|
+
appSwitcher = _ref.appSwitcher,
|
|
46331
|
+
secondaryLogo = _ref.secondaryLogo,
|
|
46332
|
+
primaryLogo = _ref.primaryLogo,
|
|
46333
|
+
userMenu = _ref.userMenu;
|
|
46334
|
+
var _useTranslation = useTranslation(),
|
|
46335
|
+
t = _useTranslation.t;
|
|
46336
|
+
var userMenuExists = !!userMenu;
|
|
46337
|
+
var _useResponsiveMenu = useResponsiveMenu(primaryNavigation),
|
|
46338
|
+
menuItems = _useResponsiveMenu.menuItems,
|
|
46339
|
+
moreMenu = _useResponsiveMenu.moreMenu,
|
|
46340
|
+
hiddenMenuItem = _useResponsiveMenu.hiddenMenuItem,
|
|
46341
|
+
primaryMenuRef = _useResponsiveMenu.primaryMenuRef,
|
|
46342
|
+
secondaryMenuRef = _useResponsiveMenu.secondaryMenuRef,
|
|
46343
|
+
hiddenButtonRef = _useResponsiveMenu.hiddenButtonRef;
|
|
46344
|
+
var hasUserMenuContent = useMemo(function () {
|
|
46345
|
+
return userMenuExists && (userMenu.header || userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0);
|
|
46346
|
+
}, [userMenuExists, userMenu]);
|
|
46347
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuRoot, null, /*#__PURE__*/React__default.createElement(NavigationMenuList, {
|
|
46348
|
+
ref: primaryMenuRef
|
|
46349
|
+
}, /*#__PURE__*/React__default.createElement(NulogyAppSwitcher, {
|
|
46350
|
+
config: appSwitcher
|
|
46351
|
+
}), /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, {
|
|
46352
|
+
display: "flex"
|
|
46353
|
+
}, primaryLogo !== null && primaryLogo !== void 0 ? primaryLogo : (/*#__PURE__*/React__default.createElement(NavigationLogoLink, {
|
|
46354
|
+
href: "/",
|
|
46355
|
+
"aria-label": "Nulogy Logo"
|
|
46356
|
+
}, /*#__PURE__*/React__default.createElement(NulogyLogo, null)))), menuItems.map(function (item) {
|
|
46357
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
46358
|
+
key: item.key,
|
|
46359
|
+
item: item
|
|
46360
|
+
});
|
|
46361
|
+
}), moreMenu.length > 0 && /*#__PURE__*/React__default.createElement(MoreMenuItem, {
|
|
46362
|
+
moreMenu: moreMenu
|
|
46363
|
+
}), hiddenMenuItem && /*#__PURE__*/React__default.createElement(HiddenNavigationMenuItem, {
|
|
46364
|
+
ref: hiddenButtonRef,
|
|
46365
|
+
item: hiddenMenuItem
|
|
46366
|
+
})), /*#__PURE__*/React__default.createElement(NavigationMenuList, {
|
|
46367
|
+
ref: secondaryMenuRef
|
|
46368
|
+
}, secondaryNavigation.map(function (item) {
|
|
46369
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
46370
|
+
key: item.key,
|
|
46371
|
+
item: item
|
|
46372
|
+
});
|
|
46373
|
+
}), secondaryNavigation.length > 0 && userMenuExists && /*#__PURE__*/React__default.createElement(VerticalDivider, null), secondaryLogo && /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, {
|
|
46374
|
+
display: "flex"
|
|
46375
|
+
}, secondaryLogo), secondaryLogo && userMenuExists && /*#__PURE__*/React__default.createElement(VerticalDivider, null), userMenuExists && (/*#__PURE__*/React__default.createElement($322c88a641701f3b$export$6d08773d2e66f8f2, null, /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
|
|
46376
|
+
py: "half",
|
|
46377
|
+
disabled: !hasUserMenuContent,
|
|
46378
|
+
"aria-label": t("toggle user menu")
|
|
46379
|
+
}, /*#__PURE__*/React__default.createElement(Flex, {
|
|
46380
|
+
flexDirection: "column",
|
|
46381
|
+
alignItems: "flex-start"
|
|
46382
|
+
}, /*#__PURE__*/React__default.createElement(TruncatedText, {
|
|
46383
|
+
showTooltip: false,
|
|
46384
|
+
fontSize: "smaller",
|
|
46385
|
+
lineHeight: "smallerText",
|
|
46386
|
+
fontWeight: "normal"
|
|
46387
|
+
}, userMenu.triggerText.title), userMenu.triggerText.subtitle1 && (/*#__PURE__*/React__default.createElement(TruncatedText, {
|
|
46388
|
+
showTooltip: false,
|
|
46389
|
+
fontSize: "smaller",
|
|
46390
|
+
lineHeight: "smallerText",
|
|
46391
|
+
fontWeight: "normal"
|
|
46392
|
+
}, userMenu.triggerText.subtitle1)), userMenu.triggerText.subtitle2 && (/*#__PURE__*/React__default.createElement(TruncatedText, {
|
|
46393
|
+
showTooltip: false,
|
|
46394
|
+
fontSize: "smaller",
|
|
46395
|
+
lineHeight: "smallerText",
|
|
46396
|
+
fontWeight: "normal"
|
|
46397
|
+
}, userMenu.triggerText.subtitle2))), hasUserMenuContent && /*#__PURE__*/React__default.createElement(CaretDown, {
|
|
46398
|
+
icon: "downArrow",
|
|
46399
|
+
size: "x2",
|
|
46400
|
+
"aria-hidden": true
|
|
46401
|
+
})), hasUserMenuContent && (/*#__PURE__*/React__default.createElement(NavigationMenuContent, {
|
|
46402
|
+
right: 0,
|
|
46403
|
+
p: "none",
|
|
46404
|
+
pt: userMenu.header || userMenu.controls ? "none" : "x1",
|
|
46405
|
+
pb: userMenu.menuItems && userMenu.menuItems.length ? "x1" : "none",
|
|
46406
|
+
"aria-label": t("user menu")
|
|
46407
|
+
}, userMenu.header && /*#__PURE__*/React__default.createElement(UserMenu.Header, Object.assign({}, userMenu.header)), (userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0) && (/*#__PURE__*/React__default.createElement(UserMenu.Container, {
|
|
46408
|
+
p: "none",
|
|
46409
|
+
display: "flex",
|
|
46410
|
+
flexDirection: "column"
|
|
46411
|
+
}, userMenu.controls && /*#__PURE__*/React__default.createElement(Box, {
|
|
46412
|
+
p: "x2"
|
|
46413
|
+
}, userMenu.controls({
|
|
46414
|
+
withinMobileNav: false
|
|
46415
|
+
})), userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46416
|
+
px: "x2"
|
|
46417
|
+
}, /*#__PURE__*/React__default.createElement(Divider$1, {
|
|
46418
|
+
my: "x2"
|
|
46419
|
+
}))), userMenu.menuItems && userMenu.menuItems.length > 0 && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46420
|
+
px: "none"
|
|
46421
|
+
}, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
46422
|
+
orientation: "vertical"
|
|
46423
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, userMenu.menuItems.map(function (item) {
|
|
46424
|
+
return /*#__PURE__*/React__default.createElement(UserMenu.Item, {
|
|
46425
|
+
key: item.key,
|
|
46426
|
+
item: item
|
|
46427
|
+
});
|
|
46428
|
+
})))))))))))));
|
|
46429
|
+
}
|
|
46430
|
+
|
|
46431
|
+
function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
46432
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
46433
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
46434
|
+
function getNavigationBarItems(items) {
|
|
46435
|
+
var navigationBarItems = [];
|
|
46436
|
+
function findNavigationBarItems(menuItems) {
|
|
46437
|
+
for (var _iterator = _createForOfIteratorHelperLoose(menuItems), _step; !(_step = _iterator()).done;) {
|
|
46438
|
+
var item = _step.value;
|
|
46439
|
+
if (item.mobileVisibility === "navigationBar") {
|
|
46440
|
+
navigationBarItems.push(item);
|
|
46441
|
+
}
|
|
46442
|
+
if (item.type === "button" && item.items) {
|
|
46443
|
+
findNavigationBarItems(item.items);
|
|
46444
|
+
}
|
|
46445
|
+
}
|
|
46446
|
+
}
|
|
46447
|
+
findNavigationBarItems(items);
|
|
46448
|
+
return navigationBarItems;
|
|
46449
|
+
}
|
|
46450
|
+
|
|
46451
|
+
var MobileMenuItem = /*#__PURE__*/React__default.forwardRef(function (_a, forwardedRef) {
|
|
46452
|
+
var menuItem = _a.menuItem,
|
|
46453
|
+
_a$level = _a.level,
|
|
46454
|
+
level = _a$level === void 0 ? 0 : _a$level,
|
|
46455
|
+
props = __rest(_a, ["menuItem", "level"]);
|
|
46456
|
+
if (menuItem.mobileVisibility !== undefined && menuItem.mobileVisibility !== "navigationMenu") {
|
|
46457
|
+
return null;
|
|
46458
|
+
}
|
|
46459
|
+
/* -------------------------------------------------------------------
|
|
46460
|
+
* Separator
|
|
46461
|
+
* -----------------------------------------------------------------*/
|
|
46462
|
+
if (menuItem.type === "separator") {
|
|
46463
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
46464
|
+
ref: forwardedRef
|
|
46465
|
+
}, props), /*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
46466
|
+
level: level
|
|
46467
|
+
}, /*#__PURE__*/React__default.createElement(Divider$1, {
|
|
46468
|
+
secondary: level > 0,
|
|
46469
|
+
my: "x2"
|
|
46470
|
+
})));
|
|
46471
|
+
}
|
|
46472
|
+
/* -------------------------------------------------------------------
|
|
46473
|
+
* Custom render fragment
|
|
46474
|
+
* -----------------------------------------------------------------*/
|
|
46475
|
+
if (menuItem.type === "custom") {
|
|
46476
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
46477
|
+
ref: forwardedRef
|
|
46478
|
+
}, props), /*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
46479
|
+
level: level
|
|
46480
|
+
}, menuItem.render({
|
|
46481
|
+
withinSubMenu: level > 0,
|
|
46482
|
+
level: level,
|
|
46483
|
+
withinMobileNav: true
|
|
46484
|
+
})));
|
|
46485
|
+
}
|
|
46486
|
+
/* -------------------------------------------------------------------
|
|
46487
|
+
* Helpers shared by link & button
|
|
46488
|
+
* -----------------------------------------------------------------*/
|
|
46489
|
+
var hasIcon = "icon" in menuItem;
|
|
46490
|
+
var hasLabel = "label" in menuItem && !!menuItem.label;
|
|
46491
|
+
var hasTooltip = "tooltip" in menuItem && !!menuItem.tooltip;
|
|
46492
|
+
var IconFragment = hasIcon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
46493
|
+
icon: menuItem.icon,
|
|
46494
|
+
size: "x3",
|
|
46495
|
+
"aria-hidden": true
|
|
46496
|
+
}) : null;
|
|
46497
|
+
// Determine the text to display: use label if available, otherwise use tooltip if icon is present
|
|
46498
|
+
var labelText = hasLabel ? menuItem.label : hasIcon && hasTooltip ? menuItem.tooltip : null;
|
|
46499
|
+
var LabelFragment = labelText ? (/*#__PURE__*/React__default.createElement(Text, {
|
|
46500
|
+
fontSize: "small",
|
|
46501
|
+
lineHeight: "smallTextCompressed"
|
|
46502
|
+
}, labelText)) : null;
|
|
46503
|
+
/* -------------------------------------------------------------------
|
|
46504
|
+
* Link
|
|
46505
|
+
* -----------------------------------------------------------------*/
|
|
46506
|
+
if (menuItem.type === "link") {
|
|
46507
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
46508
|
+
ref: forwardedRef
|
|
46509
|
+
}, props), /*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
46510
|
+
level: level
|
|
46511
|
+
}, /*#__PURE__*/React__default.createElement(MobileNavigationLink, {
|
|
46512
|
+
asChild: true
|
|
46513
|
+
}, menuItem.element ? (/*#__PURE__*/React__default.cloneElement(menuItem.element, Object.assign(Object.assign({}, menuItem.props), {
|
|
46514
|
+
children: (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, IconFragment, LabelFragment))
|
|
46515
|
+
}))) : (/*#__PURE__*/React__default.createElement("a", Object.assign({}, menuItem.props), IconFragment, LabelFragment)))));
|
|
46516
|
+
}
|
|
46517
|
+
/* -------------------------------------------------------------------
|
|
46518
|
+
* Button
|
|
46519
|
+
* -----------------------------------------------------------------*/
|
|
46520
|
+
if (menuItem.type === "button") {
|
|
46521
|
+
var hasItems = !!menuItem.items && menuItem.items.length > 0;
|
|
46522
|
+
// Button with nested items – show group label then children
|
|
46523
|
+
if (hasItems) {
|
|
46524
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
46525
|
+
ref: forwardedRef
|
|
46526
|
+
}, props), LabelFragment && (/*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
46527
|
+
level: level
|
|
46528
|
+
}, /*#__PURE__*/React__default.createElement(MenuItemGroupLabel, null, labelText))), /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
46529
|
+
orientation: "vertical"
|
|
46530
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, (menuItem.items || []).map(function (item) {
|
|
46531
|
+
return /*#__PURE__*/React__default.createElement(MobileMenuItem, {
|
|
46532
|
+
key: item.key,
|
|
46533
|
+
menuItem: item,
|
|
46534
|
+
level: level + 1
|
|
46535
|
+
});
|
|
46536
|
+
}))));
|
|
46537
|
+
}
|
|
46538
|
+
// Simple button with no children
|
|
46539
|
+
return /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, Object.assign({
|
|
46540
|
+
ref: forwardedRef
|
|
46541
|
+
}, props), /*#__PURE__*/React__default.createElement(IndentedContainer, {
|
|
46542
|
+
level: level
|
|
46543
|
+
}, /*#__PURE__*/React__default.createElement(MobileNavigationButton, Object.assign({}, "props" in menuItem ? menuItem.props : {}), IconFragment, LabelFragment)));
|
|
46544
|
+
}
|
|
46545
|
+
return null;
|
|
46546
|
+
});
|
|
46547
|
+
MobileMenuItem.displayName = "MobileMenuItem";
|
|
46548
|
+
|
|
46549
|
+
function MobileNav(_ref) {
|
|
46550
|
+
var _ref$primaryNavigatio = _ref.primaryNavigation,
|
|
46551
|
+
primaryNavigation = _ref$primaryNavigatio === void 0 ? [] : _ref$primaryNavigatio,
|
|
46552
|
+
_ref$secondaryNavigat = _ref.secondaryNavigation,
|
|
46553
|
+
secondaryNavigation = _ref$secondaryNavigat === void 0 ? [] : _ref$secondaryNavigat,
|
|
46554
|
+
appSwitcher = _ref.appSwitcher,
|
|
46555
|
+
primaryLogo = _ref.primaryLogo,
|
|
46556
|
+
secondaryLogo = _ref.secondaryLogo,
|
|
46557
|
+
userMenu = _ref.userMenu;
|
|
46558
|
+
var _useTranslation = useTranslation(),
|
|
46559
|
+
t = _useTranslation.t;
|
|
46560
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuRoot, null, /*#__PURE__*/React__default.createElement(NavigationMenuList, null, /*#__PURE__*/React__default.createElement(NulogyAppSwitcher, {
|
|
46561
|
+
config: appSwitcher
|
|
46562
|
+
}), /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, {
|
|
46563
|
+
display: "flex"
|
|
46564
|
+
}, primaryLogo !== null && primaryLogo !== void 0 ? primaryLogo : (/*#__PURE__*/React__default.createElement(NavigationLogoLink, {
|
|
46565
|
+
href: "/",
|
|
46566
|
+
"aria-label": t("nulogy logo")
|
|
46567
|
+
}, /*#__PURE__*/React__default.createElement(NulogyLogo, null))))), (primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && (/*#__PURE__*/React__default.createElement(NavigationMenuList, null, getNavigationBarItems([].concat(primaryNavigation, secondaryNavigation)).map(function (item) {
|
|
46568
|
+
return /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$6d08773d2e66f8f2, {
|
|
46569
|
+
key: item.key
|
|
46570
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
46571
|
+
item: item
|
|
46572
|
+
}));
|
|
46573
|
+
}), /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$6d08773d2e66f8f2, null, /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
|
|
46574
|
+
"aria-label": t("toggle mobile menu")
|
|
46575
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
46576
|
+
icon: "menu"
|
|
46577
|
+
})), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
|
|
46578
|
+
right: 0
|
|
46579
|
+
}, /*#__PURE__*/React__default.createElement(UserMenu.Container, {
|
|
46580
|
+
p: "none",
|
|
46581
|
+
display: "flex",
|
|
46582
|
+
flexDirection: "column",
|
|
46583
|
+
gap: "x4"
|
|
46584
|
+
}, primaryNavigation.length > 0 && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46585
|
+
px: "x2"
|
|
46586
|
+
}, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
46587
|
+
orientation: "vertical"
|
|
46588
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, primaryNavigation.map(function (item) {
|
|
46589
|
+
return /*#__PURE__*/React__default.createElement(MobileMenuItem, {
|
|
46590
|
+
menuItem: item,
|
|
46591
|
+
key: item.key
|
|
46592
|
+
});
|
|
46593
|
+
}))))), secondaryNavigation.length > 0 && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46594
|
+
px: "x2"
|
|
46595
|
+
}, /*#__PURE__*/React__default.createElement($322c88a641701f3b$export$d7a01e11500dfb6f, {
|
|
46596
|
+
orientation: "vertical"
|
|
46597
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, secondaryNavigation.map(function (item) {
|
|
46598
|
+
return /*#__PURE__*/React__default.createElement(MobileMenuItem, {
|
|
46599
|
+
menuItem: item,
|
|
46600
|
+
key: item.key
|
|
46601
|
+
});
|
|
46602
|
+
}))))), userMenu && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, userMenu.header && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46603
|
+
px: "x2"
|
|
46604
|
+
}, /*#__PURE__*/React__default.createElement(UserMenu.Header, Object.assign({}, userMenu.header, {
|
|
46605
|
+
containerProps: {
|
|
46606
|
+
borderRadius: "large"
|
|
46607
|
+
}
|
|
46608
|
+
})))), userMenu.controls && /*#__PURE__*/React__default.createElement(Box, {
|
|
46609
|
+
px: "x2"
|
|
46610
|
+
}, userMenu.controls({
|
|
46611
|
+
withinMobileNav: true
|
|
46612
|
+
})), userMenu.menuItems && userMenu.menuItems.length > 0 && (/*#__PURE__*/React__default.createElement(Box, {
|
|
46613
|
+
px: "none"
|
|
46614
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, userMenu.menuItems.map(function (item) {
|
|
46615
|
+
return /*#__PURE__*/React__default.createElement(UserMenu.MobileItem, {
|
|
46616
|
+
key: item.key,
|
|
46617
|
+
item: item
|
|
46618
|
+
});
|
|
46619
|
+
}))))))), secondaryLogo && (/*#__PURE__*/React__default.createElement(MobileSecondaryLogoContainer, null, /*#__PURE__*/React__default.createElement(NavigationMenuSubList, null, /*#__PURE__*/React__default.createElement(RadixNavigationMenuItem, null, secondaryLogo)))))))));
|
|
46620
|
+
}
|
|
46621
|
+
|
|
46622
|
+
var Navigation$1 = function Navigation(_a) {
|
|
46623
|
+
var _b;
|
|
46624
|
+
var _a$breakpoint = _a.breakpoint,
|
|
46625
|
+
breakpoint = _a$breakpoint === void 0 ? NAVIGATION_DEFAULT_BREAKPOINT_THEME_KEY : _a$breakpoint,
|
|
46626
|
+
props = __rest(_a, ["breakpoint"]);
|
|
46627
|
+
var theme = useTheme();
|
|
46628
|
+
var query = ((_b = theme === null || theme === void 0 ? void 0 : theme.breakpoints) === null || _b === void 0 ? void 0 : _b[breakpoint]) ? breakpoint : "(min-width: " + breakpoint + ")";
|
|
46629
|
+
var largeScreen = useMediaQuery(query);
|
|
46630
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, largeScreen ? /*#__PURE__*/React__default.createElement(DesktopNav, Object.assign({}, props)) : /*#__PURE__*/React__default.createElement(MobileNav, Object.assign({}, props)));
|
|
46631
|
+
};
|
|
46632
|
+
|
|
46633
|
+
var LogoContainer = styled.div.withConfig({
|
|
46634
|
+
displayName: "NavigationLogo__LogoContainer",
|
|
46635
|
+
componentId: "sc-105ygxh-0"
|
|
46636
|
+
})(function (_ref) {
|
|
46637
|
+
var $maxWidth = _ref.$maxWidth,
|
|
46638
|
+
$maxHeight = _ref.$maxHeight;
|
|
46639
|
+
return {
|
|
46640
|
+
display: "flex",
|
|
46641
|
+
alignItems: "center",
|
|
46642
|
+
maxWidth: $maxWidth !== null && $maxWidth !== void 0 ? $maxWidth : "184px",
|
|
46643
|
+
maxHeight: $maxHeight !== null && $maxHeight !== void 0 ? $maxHeight : "36px",
|
|
46644
|
+
"& > *": {
|
|
46645
|
+
width: "100%",
|
|
46646
|
+
objectFit: "contain"
|
|
46647
|
+
}
|
|
46648
|
+
};
|
|
46649
|
+
});
|
|
46650
|
+
var NavigationLogo = function NavigationLogo(_a) {
|
|
46651
|
+
var children = _a.children,
|
|
46652
|
+
maxWidth = _a.maxWidth,
|
|
46653
|
+
maxHeight = _a.maxHeight,
|
|
46654
|
+
props = __rest(_a, ["children", "maxWidth", "maxHeight"]);
|
|
46655
|
+
return /*#__PURE__*/React__default.createElement(LogoContainer, Object.assign({
|
|
46656
|
+
"$maxWidth": maxWidth,
|
|
46657
|
+
"$maxHeight": maxHeight
|
|
46658
|
+
}, props), children);
|
|
46659
|
+
};
|
|
46660
|
+
|
|
46661
|
+
function _objectSpread(target) {
|
|
46662
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
46663
|
+
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
46664
|
+
var ownKeys = Object.keys(source);
|
|
46665
|
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
46666
|
+
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
46667
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
46668
|
+
}));
|
|
46669
|
+
}
|
|
46670
|
+
ownKeys.forEach(function (key) {
|
|
46671
|
+
_defineProperty$1(target, key, source[key]);
|
|
46672
|
+
});
|
|
46673
|
+
}
|
|
46674
|
+
return target;
|
|
46675
|
+
}
|
|
46676
|
+
|
|
46677
|
+
var consoleLogger = {
|
|
46678
|
+
type: 'logger',
|
|
46679
|
+
log: function log(args) {
|
|
46680
|
+
this.output('log', args);
|
|
46681
|
+
},
|
|
46682
|
+
warn: function warn(args) {
|
|
46683
|
+
this.output('warn', args);
|
|
46684
|
+
},
|
|
46685
|
+
error: function error(args) {
|
|
46686
|
+
this.output('error', args);
|
|
46687
|
+
},
|
|
46688
|
+
output: function output(type, args) {
|
|
46689
|
+
if (console && console[type]) console[type].apply(console, args);
|
|
46690
|
+
}
|
|
46691
|
+
};
|
|
46692
|
+
|
|
46693
|
+
var Logger = function () {
|
|
46694
|
+
function Logger(concreteLogger) {
|
|
46695
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46696
|
+
|
|
46697
|
+
_classCallCheck(this, Logger);
|
|
46698
|
+
|
|
46699
|
+
this.init(concreteLogger, options);
|
|
46700
|
+
}
|
|
46701
|
+
|
|
46702
|
+
_createClass(Logger, [{
|
|
46703
|
+
key: "init",
|
|
46704
|
+
value: function init(concreteLogger) {
|
|
46705
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
46706
|
+
this.prefix = options.prefix || 'i18next:';
|
|
46707
|
+
this.logger = concreteLogger || consoleLogger;
|
|
46708
|
+
this.options = options;
|
|
46709
|
+
this.debug = options.debug;
|
|
46710
|
+
}
|
|
46711
|
+
}, {
|
|
46712
|
+
key: "setDebug",
|
|
46713
|
+
value: function setDebug(bool) {
|
|
46714
|
+
this.debug = bool;
|
|
46715
|
+
}
|
|
46716
|
+
}, {
|
|
46717
|
+
key: "log",
|
|
46718
|
+
value: function log() {
|
|
46719
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
46720
|
+
args[_key] = arguments[_key];
|
|
46721
|
+
}
|
|
46722
|
+
|
|
46723
|
+
return this.forward(args, 'log', '', true);
|
|
46724
|
+
}
|
|
46725
|
+
}, {
|
|
46726
|
+
key: "warn",
|
|
44467
46727
|
value: function warn() {
|
|
44468
46728
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
44469
46729
|
args[_key2] = arguments[_key2];
|
|
@@ -46755,7 +49015,21 @@ var de_DE = {
|
|
|
46755
49015
|
"weekPicker date format": "'KW'ww - d. MMM yyyy",
|
|
46756
49016
|
"weekPicker placeholder": "KW52 - 31. Dez 2023",
|
|
46757
49017
|
"week shorthand": "KW",
|
|
46758
|
-
|
|
49018
|
+
more: "Mehr",
|
|
49019
|
+
"no options": "Keine Optionen",
|
|
49020
|
+
"nulogy logo": "Nulogy-Logo",
|
|
49021
|
+
"toggle user menu": "Benutzer-Men\xFC umschalten",
|
|
49022
|
+
"user menu": "Benutzer-Men\xFC",
|
|
49023
|
+
"toggle app switcher": "App-Umschalter umschalten",
|
|
49024
|
+
"app switcher": "App-Umschalter",
|
|
49025
|
+
"toggle mobile menu": "Mobiles Men\xFC umschalten",
|
|
49026
|
+
"connections app description": "Verbinden Sie interne, Kunden- und Lieferantensysteme mit Self-Service-Low-Code/No-Code-Tools",
|
|
49027
|
+
"data app description": "Direkter Zugriff auf gesch\xE4ftsfertige Daten zur Erleichterung von Analysen und Entscheidungsintelligenz",
|
|
49028
|
+
"digital quality inspection app description": "Digitalisieren Sie Qualit\xE4tspr\xFCfungen mit tabletbasierten Inspektionen, E-Signaturen und vollst\xE4ndigen Audit-Trails",
|
|
49029
|
+
"production scheduling app description": "Visualisieren und optimieren Sie Ihren Produktionsplan anhand von Bedarf, Ausfallzeiten, Produktionsraten und mehr",
|
|
49030
|
+
"shop floor control app description": "Verwalten Sie den Fertigungsbereich, um Transparenz, Geschwindigkeit und betriebliche Effizienz zu steigern",
|
|
49031
|
+
"supplier collaboration app description": "Arbeiten Sie in Echtzeit mit Partnern im Lieferkettennetzwerk zusammen, um Transparenz und Reaktionsf\xE4higkeit zu verbessern",
|
|
49032
|
+
"smart factory app description": "Automatisieren Sie die Maschinendatenerfassung, um Ausfallzeiten zu reduzieren und den Produktionsdurchsatz zu verbessern"
|
|
46759
49033
|
};
|
|
46760
49034
|
var en_US = {
|
|
46761
49035
|
"close menu": "Close menu",
|
|
@@ -46804,7 +49078,21 @@ var en_US = {
|
|
|
46804
49078
|
"time range": "Time range",
|
|
46805
49079
|
"weekPicker date format": "'W'ww - MMM d, yyyy",
|
|
46806
49080
|
"weekPicker placeholder": "W52 - Dec 31, 2023",
|
|
46807
|
-
"week shorthand": "W"
|
|
49081
|
+
"week shorthand": "W",
|
|
49082
|
+
more: "More",
|
|
49083
|
+
"nulogy logo": "Nulogy logo",
|
|
49084
|
+
"toggle user menu": "Toggle user menu",
|
|
49085
|
+
"user menu": "User menu",
|
|
49086
|
+
"toggle app switcher": "Toggle app switcher",
|
|
49087
|
+
"app switcher": "App switcher",
|
|
49088
|
+
"toggle mobile menu": "Toggle mobile menu",
|
|
49089
|
+
"connections app description": "Connect internal, customer and supplier systems with self-serve low-code/no-code tools",
|
|
49090
|
+
"data app description": "Direct access to business ready data to facilitate analytics and decision intelligence",
|
|
49091
|
+
"digital quality inspection app description": "Digitize quality checks with tablet-based inspections, e-signatures, and full audit trails",
|
|
49092
|
+
"production scheduling app description": "Visualize and optimize your production schedule using demand, downtimes, run rates, and more",
|
|
49093
|
+
"shop floor control app description": "Manage shop floor operations to boost visibility, speed, and operational efficiency",
|
|
49094
|
+
"supplier collaboration app description": "Collaborate in real time with supply chain network partners for enhanced visibility and responsiveness",
|
|
49095
|
+
"smart factory app description": "Automate machine data capture to reduce downtime and improve production throughput"
|
|
46808
49096
|
};
|
|
46809
49097
|
var es_ES = {
|
|
46810
49098
|
"close menu": "Cerrar men\xFA",
|
|
@@ -46853,7 +49141,21 @@ var es_ES = {
|
|
|
46853
49141
|
"weekPicker date format": "'S'ww - d MMM, yyyy",
|
|
46854
49142
|
"weekPicker placeholder": "S52 - 31 dic, 2023",
|
|
46855
49143
|
"week shorthand": "S",
|
|
46856
|
-
|
|
49144
|
+
more: "M\xE1s",
|
|
49145
|
+
"no options": "Sin opciones",
|
|
49146
|
+
"nulogy logo": "Logo de Nulogy",
|
|
49147
|
+
"toggle user menu": "Alternar men\xFA de usuario",
|
|
49148
|
+
"user menu": "Men\xFA de usuario",
|
|
49149
|
+
"toggle app switcher": "Alternar selector de aplicaciones",
|
|
49150
|
+
"app switcher": "Selector de aplicaciones",
|
|
49151
|
+
"toggle mobile menu": "Alternar men\xFA m\xF3vil",
|
|
49152
|
+
"connections app description": "Conecte sistemas internos, de clientes y proveedores con herramientas de autoservicio de bajo c\xF3digo/sin c\xF3digo",
|
|
49153
|
+
"data app description": "Acceso directo a datos listos para el negocio para facilitar el an\xE1lisis y la inteligencia de decisiones",
|
|
49154
|
+
"digital quality inspection app description": "Digitalice las comprobaciones de calidad con inspecciones basadas en tabletas, firmas electr\xF3nicas y seguimientos de auditor\xEDa completos",
|
|
49155
|
+
"production scheduling app description": "Visualice y optimice su programa de producci\xF3n utilizando la demanda, los tiempos de inactividad, las tasas de producci\xF3n y m\xE1s",
|
|
49156
|
+
"shop floor control app description": "Gestione las operaciones de la planta de producci\xF3n para aumentar la visibilidad, la velocidad y la eficiencia operativa",
|
|
49157
|
+
"supplier collaboration app description": "Colabore en tiempo real con socios de la red de la cadena de suministro para mejorar la visibilidad y la capacidad de respuesta",
|
|
49158
|
+
"smart factory app description": "Automatice la captura de datos de m\xE1quinas para reducir el tiempo de inactividad y mejorar el rendimiento de la producci\xF3n"
|
|
46857
49159
|
};
|
|
46858
49160
|
var es_MX = {
|
|
46859
49161
|
"close menu": "Cerrar men\xFA",
|
|
@@ -46902,7 +49204,21 @@ var es_MX = {
|
|
|
46902
49204
|
"weekPicker date format": "'S'ww - d MMM yyyy",
|
|
46903
49205
|
"weekPicker placeholder": "S52 - 31 dic 2023",
|
|
46904
49206
|
"week shorthand": "S",
|
|
46905
|
-
|
|
49207
|
+
more: "M\xE1s",
|
|
49208
|
+
"no options": "Sin opciones",
|
|
49209
|
+
"nulogy logo": "Logo de Nulogy",
|
|
49210
|
+
"user menu": "Men\xFA de usuario",
|
|
49211
|
+
"app switcher": "Selector de aplicaciones",
|
|
49212
|
+
"toggle user menu": "Alternar men\xFA de usuario",
|
|
49213
|
+
"toggle app switcher": "Alternar selector de aplicaciones",
|
|
49214
|
+
"toggle mobile menu": "Alternar men\xFA m\xF3vil",
|
|
49215
|
+
"connections app description": "Conecte sistemas internos, de clientes y proveedores con herramientas de autoservicio de bajo c\xF3digo/sin c\xF3digo",
|
|
49216
|
+
"data app description": "Acceso directo a datos listos para el negocio para facilitar el an\xE1lisis y la inteligencia de decisiones",
|
|
49217
|
+
"digital quality inspection app description": "Digitalice las comprobaciones de calidad con inspecciones basadas en tabletas, firmas electr\xF3nicas y pistas de auditor\xEDa completas",
|
|
49218
|
+
"production scheduling app description": "Visualice y optimice su programa de producci\xF3n utilizando la demanda, los tiempos de inactividad, las tasas de producci\xF3n y m\xE1s",
|
|
49219
|
+
"shop floor control app description": "Gestione las operaciones del taller para impulsar la visibilidad, la velocidad y la eficiencia operativa",
|
|
49220
|
+
"supplier collaboration app description": "Colabore en tiempo real con socios de la red de la cadena de suministro para mejorar la visibilidad y la capacidad de respuesta",
|
|
49221
|
+
"smart factory app description": "Automatice la captura de datos de m\xE1quinas para reducir el tiempo de inactividad y mejorar el rendimiento de la producci\xF3n"
|
|
46906
49222
|
};
|
|
46907
49223
|
var fr_FR = {
|
|
46908
49224
|
"close menu": "Fermer le menu",
|
|
@@ -46951,7 +49267,21 @@ var fr_FR = {
|
|
|
46951
49267
|
"weekPicker date format": "'S'ww - d MMM yyyy",
|
|
46952
49268
|
"weekPicker placeholder": "S52 - 31 d\xE9c. 2023",
|
|
46953
49269
|
"week shorthand": "S",
|
|
46954
|
-
|
|
49270
|
+
more: "Plus",
|
|
49271
|
+
"no options": "Aucune option",
|
|
49272
|
+
"nulogy logo": "Logo Nulogy",
|
|
49273
|
+
"toggle user menu": "Basculer le menu utilisateur",
|
|
49274
|
+
"user menu": "Menu utilisateur",
|
|
49275
|
+
"app switcher": "S\xE9lecteur d\u2019applications",
|
|
49276
|
+
"toggle app switcher": "Basculer le s\xE9lecteur d\u2019applications",
|
|
49277
|
+
"toggle mobile menu": "Basculer le menu mobile",
|
|
49278
|
+
"connections app description": "Connectez les syst\xE8mes internes, clients et fournisseurs avec des outils low-code/no-code en libre-service",
|
|
49279
|
+
"data app description": "Acc\xE8s direct aux donn\xE9es pr\xEAtes \xE0 l'emploi pour faciliter l'analyse et l'intelligence d\xE9cisionnelle",
|
|
49280
|
+
"digital quality inspection app description": "Num\xE9risez les contr\xF4les qualit\xE9 avec des inspections sur tablette, des signatures \xE9lectroniques et des pistes d'audit compl\xE8tes",
|
|
49281
|
+
"production scheduling app description": "Visualisez et optimisez votre calendrier de production en utilisant la demande, les temps d'arr\xEAt, les cadences de production, et plus encore",
|
|
49282
|
+
"shop floor control app description": "G\xE9rez les op\xE9rations de l'atelier pour am\xE9liorer la visibilit\xE9, la vitesse et l'efficacit\xE9 op\xE9rationnelle",
|
|
49283
|
+
"supplier collaboration app description": "Collaborez en temps r\xE9el avec les partenaires du r\xE9seau de la cha\xEEne d'approvisionnement pour une visibilit\xE9 et une r\xE9activit\xE9 accrues",
|
|
49284
|
+
"smart factory app description": "Automatisez la capture des donn\xE9es machine pour r\xE9duire les temps d'arr\xEAt et am\xE9liorer le d\xE9bit de production"
|
|
46955
49285
|
};
|
|
46956
49286
|
var nl_NL = {
|
|
46957
49287
|
"close menu": "Menu sluiten",
|
|
@@ -47000,7 +49330,21 @@ var nl_NL = {
|
|
|
47000
49330
|
"weekPicker date format": "'W'ww - d MMM yyyy",
|
|
47001
49331
|
"weekPicker placeholder": "W52 - 31 dec 2023",
|
|
47002
49332
|
"week shorthand": "W",
|
|
47003
|
-
|
|
49333
|
+
more: "Meer",
|
|
49334
|
+
"no options": "Geen opties",
|
|
49335
|
+
"nulogy logo": "Nulogy-logo",
|
|
49336
|
+
"user menu": "Gebruikersmenu",
|
|
49337
|
+
"app switcher": "Appkiezer",
|
|
49338
|
+
"toggle user menu": "Gebruikersmenu wisselen",
|
|
49339
|
+
"toggle app switcher": "Appkiezer wisselen",
|
|
49340
|
+
"toggle mobile menu": "Mobiel menu wisselen",
|
|
49341
|
+
"connections app description": "Verbind interne, klant- en leverancierssystemen met self-service low-code/no-code tools",
|
|
49342
|
+
"data app description": "Directe toegang tot bedrijfsklare gegevens om analyses en besluitvormingsintelligentie te faciliteren",
|
|
49343
|
+
"digital quality inspection app description": "Digitaliseer kwaliteitscontroles met tabletgebaseerde inspecties, e-handtekeningen en volledige audittrails",
|
|
49344
|
+
"production scheduling app description": "Visualiseer en optimaliseer uw productieschema met behulp van vraag, stilstandtijden, productiesnelheden en meer",
|
|
49345
|
+
"shop floor control app description": "Beheer de werkvloeractiviteiten om de zichtbaarheid, snelheid en operationele effici\xEBntie te verhogen",
|
|
49346
|
+
"supplier collaboration app description": "Werk in realtime samen met partners in het supply chain-netwerk voor verbeterde zichtbaarheid en responsiviteit",
|
|
49347
|
+
"smart factory app description": "Automatiseer de gegevensverzameling van machines om stilstand te verminderen en de productiedoorvoer te verbeteren"
|
|
47004
49348
|
};
|
|
47005
49349
|
var pl_PL = {
|
|
47006
49350
|
"close menu": "Zamknij menu",
|
|
@@ -47049,7 +49393,21 @@ var pl_PL = {
|
|
|
47049
49393
|
"weekPicker date format": "'T'ww - d MMM yyyy",
|
|
47050
49394
|
"weekPicker placeholder": "T52 - 31 gru 2023",
|
|
47051
49395
|
"week shorthand": "T",
|
|
47052
|
-
|
|
49396
|
+
more: "Wi\u0119cej",
|
|
49397
|
+
"no options": "Brak opcji",
|
|
49398
|
+
"nulogy logo": "Logo Nulogy",
|
|
49399
|
+
"toggle user menu": "Prze\u0142\u0105cz menu u\u017Cytkownika",
|
|
49400
|
+
"user menu": "Menu u\u017Cytkownika",
|
|
49401
|
+
"app switcher": "Prze\u0142\u0105cznik aplikacji",
|
|
49402
|
+
"toggle app switcher": "Prze\u0142\u0105cznik aplikacji",
|
|
49403
|
+
"toggle mobile menu": "Prze\u0142\u0105cz menu mobilne",
|
|
49404
|
+
"connections app description": "\u0141\u0105cz systemy wewn\u0119trzne, klient\xF3w i dostawc\xF3w za pomoc\u0105 narz\u0119dzi samoobs\u0142ugowych typu low-code/no-code",
|
|
49405
|
+
"data app description": "Bezpo\u015Bredni dost\u0119p do danych gotowych do u\u017Cytku biznesowego w celu u\u0142atwienia analityki i inteligencji decyzyjnej",
|
|
49406
|
+
"digital quality inspection app description": "Digitalizuj kontrole jako\u015Bci za pomoc\u0105 inspekcji na tabletach, podpis\xF3w elektronicznych i pe\u0142nych \u015Bcie\u017Cek audytu",
|
|
49407
|
+
"production scheduling app description": "Wizualizuj i optymalizuj harmonogram produkcji, wykorzystuj\u0105c zapotrzebowanie, przestoje, tempo produkcji i inne",
|
|
49408
|
+
"shop floor control app description": "Zarz\u0105dzaj operacjami na hali produkcyjnej, aby zwi\u0119kszy\u0107 widoczno\u015B\u0107, szybko\u015B\u0107 i wydajno\u015B\u0107 operacyjn\u0105",
|
|
49409
|
+
"supplier collaboration app description": "Wsp\xF3\u0142pracuj w czasie rzeczywistym z partnerami w sieci \u0142a\u0144cucha dostaw, aby zwi\u0119kszy\u0107 widoczno\u015B\u0107 i responsywno\u015B\u0107",
|
|
49410
|
+
"smart factory app description": "Automatyzuj przechwytywanie danych maszynowych, aby zredukowa\u0107 przestoje i poprawi\u0107 przepustowo\u015B\u0107 produkcji"
|
|
47053
49411
|
};
|
|
47054
49412
|
var pt_BR = {
|
|
47055
49413
|
"close menu": "Fechar menu",
|
|
@@ -47098,7 +49456,21 @@ var pt_BR = {
|
|
|
47098
49456
|
"weekPicker date format": "'S'ww - d 'de' MMM yyyy",
|
|
47099
49457
|
"weekPicker placeholder": "S52 - 31 de dez 2023",
|
|
47100
49458
|
"week shorthand": "S",
|
|
47101
|
-
|
|
49459
|
+
more: "Mais",
|
|
49460
|
+
"no options": "Sem op\xE7\xF5es",
|
|
49461
|
+
"nulogy logo": "Logo da Nulogy",
|
|
49462
|
+
"user menu": "Menu de usu\xE1rio",
|
|
49463
|
+
"toggle user menu": "Alternar menu de usu\xE1rio",
|
|
49464
|
+
"app switcher": "Alternador de aplicativos",
|
|
49465
|
+
"toggle app switcher": "Alternar alternador de aplicativos",
|
|
49466
|
+
"toggle mobile menu": "Alternar menu m\xF3vel",
|
|
49467
|
+
"connections app description": "Conecte sistemas internos, de clientes e fornecedores com ferramentas self-service de baixo c\xF3digo/sem c\xF3digo (low-code/no-code)",
|
|
49468
|
+
"data app description": "Acesso direto a dados prontos para neg\xF3cios para facilitar an\xE1lises e intelig\xEAncia de decis\xE3o",
|
|
49469
|
+
"digital quality inspection app description": "Digitalize verifica\xE7\xF5es de qualidade com inspe\xE7\xF5es baseadas em tablet, assinaturas eletr\xF4nicas e trilhas de auditoria completas",
|
|
49470
|
+
"production scheduling app description": "Visualize e otimize seu cronograma de produ\xE7\xE3o usando demanda, tempos de inatividade, taxas de produ\xE7\xE3o e mais",
|
|
49471
|
+
"shop floor control app description": "Gerencie as opera\xE7\xF5es do ch\xE3o de f\xE1brica para aumentar a visibilidade, a velocidade e a efici\xEAncia operacional",
|
|
49472
|
+
"supplier collaboration app description": "Colabore em tempo real com parceiros da rede da cadeia de suprimentos para maior visibilidade e capacidade de resposta",
|
|
49473
|
+
"smart factory app description": "Automatize a captura de dados de m\xE1quinas para reduzir o tempo de inatividade e mejorar o rendimento da produ\xE7\xE3o"
|
|
47102
49474
|
};
|
|
47103
49475
|
var ro_RO = {
|
|
47104
49476
|
"close menu": "\xCEnchidere meniu",
|
|
@@ -47147,7 +49519,21 @@ var ro_RO = {
|
|
|
47147
49519
|
"weekPicker date format": "'S'ww - d MMM yyyy",
|
|
47148
49520
|
"weekPicker placeholder": "S52 - 31 dec. 2023",
|
|
47149
49521
|
"week shorthand": "S",
|
|
47150
|
-
|
|
49522
|
+
more: "Mai mult",
|
|
49523
|
+
"no options": "Nicio op\u021Biune",
|
|
49524
|
+
"nulogy logo": "Sigla Nulogy",
|
|
49525
|
+
"user menu": "Meniu utilizator",
|
|
49526
|
+
"app switcher": "Comutator de aplica\u021Bii",
|
|
49527
|
+
"toggle user menu": "Comutare meniu utilizator",
|
|
49528
|
+
"toggle app switcher": "Comutare comutator de aplica\u021Bii",
|
|
49529
|
+
"toggle mobile menu": "Comutare meniu mobil",
|
|
49530
|
+
"connections app description": "Conecta\u021Bi sistemele interne, ale clien\u021Bilor \u0219i furnizorilor cu instrumente self-service low-code/no-code",
|
|
49531
|
+
"data app description": "Acces direct la date preg\u0103tite pentru afaceri pentru a facilita analiza \u0219i inteligen\u021Ba decizional\u0103",
|
|
49532
|
+
"digital quality inspection app description": "Digitaliza\u021Bi verific\u0103rile de calitate cu inspec\u021Bii pe tablet\u0103, semn\u0103turi electronice \u0219i piste de audit complete",
|
|
49533
|
+
"production scheduling app description": "Vizualiza\u021Bi \u0219i optimiza\u021Bi programul de produc\u021Bie utiliz\xE2nd cererea, timpii de nefunc\u021Bionare, ratele de produc\u021Bie \u0219i multe altele",
|
|
49534
|
+
"shop floor control app description": "Gestiona\u021Bi opera\u021Biunile din atelierul de produc\u021Bie pentru a spori vizibilitatea, viteza \u0219i eficien\u021Ba opera\u021Bional\u0103",
|
|
49535
|
+
"supplier collaboration app description": "Colabora\u021Bi \xEEn timp real cu partenerii din re\u021Beaua lan\u021Bului de aprovizionare pentru vizibilitate \u0219i receptivitate sporite",
|
|
49536
|
+
"smart factory app description": "Automatiza\u021Bi captarea datelor de la ma\u0219ini pentru a reduce timpul de nefunc\u021Bionare \u0219i a \xEEmbun\u0103t\u0103\u021Bi debitul de produc\u021Bie"
|
|
47151
49537
|
};
|
|
47152
49538
|
var zh_CN = {
|
|
47153
49539
|
"close menu": "\u5173\u95ED\u83DC\u5355",
|
|
@@ -47196,7 +49582,21 @@ var zh_CN = {
|
|
|
47196
49582
|
"weekPicker date format": "'\u5468'ww - yyyy\u5E74MMM d\u65E5",
|
|
47197
49583
|
"weekPicker placeholder": "\u546852 - 2023\u5E7412\u670831\u65E5",
|
|
47198
49584
|
"week shorthand": "\u5468",
|
|
47199
|
-
|
|
49585
|
+
more: "\u66F4\u591A",
|
|
49586
|
+
"no options": "\u65E0\u9009\u9879",
|
|
49587
|
+
"nulogy logo": "Nulogy \u6807\u5FD7",
|
|
49588
|
+
"user menu": "\u7528\u6237\u83DC\u5355",
|
|
49589
|
+
"app switcher": "\u5E94\u7528\u5207\u6362\u5668",
|
|
49590
|
+
"toggle user menu": "\u5207\u6362\u7528\u6237\u83DC\u5355",
|
|
49591
|
+
"toggle app switcher": "\u5207\u6362\u5E94\u7528\u5207\u6362\u5668",
|
|
49592
|
+
"toggle mobile menu": "\u5207\u6362\u79FB\u52A8\u83DC\u5355",
|
|
49593
|
+
"connections app description": "\u901A\u8FC7\u81EA\u52A9\u5F0F\u4F4E\u4EE3\u7801/\u65E0\u4EE3\u7801\u5DE5\u5177\u8FDE\u63A5\u5185\u90E8\u3001\u5BA2\u6237\u548C\u4F9B\u5E94\u5546\u7CFB\u7EDF",
|
|
49594
|
+
"data app description": "\u76F4\u63A5\u8BBF\u95EE\u4E1A\u52A1\u5C31\u7EEA\u6570\u636E\uFF0C\u4EE5\u4FC3\u8FDB\u5206\u6790\u548C\u51B3\u7B56\u667A\u80FD",
|
|
49595
|
+
"digital quality inspection app description": "\u901A\u8FC7\u57FA\u4E8E\u5E73\u677F\u7535\u8111\u7684\u68C0\u67E5\u3001\u7535\u5B50\u7B7E\u540D\u548C\u5B8C\u6574\u7684\u5BA1\u8BA1\u8FFD\u8E2A\uFF0C\u5B9E\u73B0\u8D28\u91CF\u68C0\u67E5\u6570\u5B57\u5316",
|
|
49596
|
+
"production scheduling app description": "\u5229\u7528\u9700\u6C42\u3001\u505C\u673A\u65F6\u95F4\u3001\u8FD0\u884C\u7387\u7B49\u4FE1\u606F\uFF0C\u53EF\u89C6\u5316\u5E76\u4F18\u5316\u60A8\u7684\u751F\u4EA7\u8BA1\u5212",
|
|
49597
|
+
"shop floor control app description": "\u7BA1\u7406\u8F66\u95F4\u8FD0\u8425\uFF0C\u4EE5\u63D0\u9AD8\u53EF\u89C1\u6027\u3001\u901F\u5EA6\u548C\u8FD0\u8425\u6548\u7387",
|
|
49598
|
+
"supplier collaboration app description": "\u4E0E\u4F9B\u5E94\u94FE\u7F51\u7EDC\u5408\u4F5C\u4F19\u4F34\u5B9E\u65F6\u534F\u4F5C\uFF0C\u4EE5\u589E\u5F3A\u53EF\u89C1\u6027\u548C\u54CD\u5E94\u80FD\u529B",
|
|
49599
|
+
"smart factory app description": "\u81EA\u52A8\u5316\u673A\u5668\u6570\u636E\u6355\u83B7\uFF0C\u4EE5\u51CF\u5C11\u505C\u673A\u65F6\u95F4\u5E76\u63D0\u9AD8\u751F\u4EA7\u541E\u5410\u91CF"
|
|
47200
49600
|
};
|
|
47201
49601
|
/* eslint-enable */
|
|
47202
49602
|
var resources = {
|
|
@@ -49569,7 +51969,7 @@ function createListComponent(_ref) {
|
|
|
49569
51969
|
className: className,
|
|
49570
51970
|
onScroll: onScroll,
|
|
49571
51971
|
ref: this._outerRefSetter,
|
|
49572
|
-
style: _extends$
|
|
51972
|
+
style: _extends$c({
|
|
49573
51973
|
position: 'relative',
|
|
49574
51974
|
height: height,
|
|
49575
51975
|
width: width,
|
|
@@ -53374,26 +55774,4 @@ var TruncatedText = function TruncatedText(_a) {
|
|
|
53374
55774
|
return fullWidth ? (/*#__PURE__*/React__default.createElement(TruncatedTextFillWidth, Object.assign({}, props), children)) : (/*#__PURE__*/React__default.createElement(TruncatedTextMaxCharacters, Object.assign({}, props), children));
|
|
53375
55775
|
};
|
|
53376
55776
|
|
|
53377
|
-
|
|
53378
|
-
displayName: "VerticalDivider",
|
|
53379
|
-
componentId: "sc-18klwrc-0"
|
|
53380
|
-
})(function (_ref) {
|
|
53381
|
-
var theme = _ref.theme,
|
|
53382
|
-
color = _ref.color,
|
|
53383
|
-
secondary = _ref.secondary;
|
|
53384
|
-
return {
|
|
53385
|
-
display: "inline",
|
|
53386
|
-
borderLeftColor: color || (secondary ? theme.colors.whiteGrey : theme.colors.lightGrey),
|
|
53387
|
-
borderLeftWidth: "1px",
|
|
53388
|
-
borderLeftStyle: "solid",
|
|
53389
|
-
borderTop: "none",
|
|
53390
|
-
borderBottom: "none",
|
|
53391
|
-
borderRight: "none",
|
|
53392
|
-
height: theme.sizes.x2,
|
|
53393
|
-
marginLeft: theme.space.x2,
|
|
53394
|
-
marginRight: theme.space.x2
|
|
53395
|
-
};
|
|
53396
|
-
}, addStyledProps);
|
|
53397
|
-
VerticalDivider.displayName = "VerticalDivider";
|
|
53398
|
-
|
|
53399
|
-
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, AppTag, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DescriptionDetails, DescriptionGroup, DescriptionList, DescriptionTerm, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header$1 as Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineFlex, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, MonthPicker, NDSProvider, NavBarBackground, NotificationTypes, Overlay$1 as Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, NDSSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip$1 as Tooltip, TopBar, TruncatedText, VerticalDivider, WeekPicker, addStyledProps, legacy as desktop, phone, tablet, themes, toast, useMediaQuery, useWindowDimensions };
|
|
55777
|
+
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, AppTag, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button$1 as Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DescriptionDetails, DescriptionGroup, DescriptionList, DescriptionTerm, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header$3 as Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineFlex, InlineIcon, InlineValidation, Input, Link$1 as Link, List$1 as List, ListItem, LoadingAnimation, MenuTrigger, Modal, MonthPicker, NDSProvider, NavBarBackground, Navigation$1 as Navigation, NavigationLogo, NavigationLogoLink, NotificationTypes, NulogyLogo, Overlay$1 as Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, NDSSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip$1 as Tooltip, TopBar, TruncatedText, VerticalDivider, WeekPicker, addStyledProps, legacy as desktop, phone, tablet, themes, toast, useMediaQuery, useWindowDimensions };
|