@true-engineering/true-react-common-ui-kit 4.0.0-alpha19 → 4.0.0-alpha20
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/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.styles.d.ts +1 -1
- package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +2 -4
- package/dist/components/DatePicker/types.d.ts +2 -2
- package/dist/style.css +78 -142
- package/dist/theme/types.d.ts +1 -1
- package/dist/true-react-common-ui-kit.js +653 -526
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +652 -525
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +4 -5
- package/src/components/DatePicker/DatePicker.stories.tsx +2 -1
- package/src/components/DatePicker/DatePicker.styles.ts +3 -1
- package/src/components/DatePicker/DatePicker.tsx +3 -3
- package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +4 -4
- package/src/components/DatePicker/types.ts +5 -3
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +3 -4
- package/src/theme/types.ts +1 -1
|
@@ -1320,7 +1320,7 @@
|
|
|
1320
1320
|
_defineProperties$2(Constructor, staticProps);
|
|
1321
1321
|
return Constructor;
|
|
1322
1322
|
}
|
|
1323
|
-
function _define_property$
|
|
1323
|
+
function _define_property$1c(obj, key, value) {
|
|
1324
1324
|
if (key in obj) {
|
|
1325
1325
|
Object.defineProperty(obj, key, {
|
|
1326
1326
|
value,
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
function _non_iterable_spread$b() {
|
|
1372
1372
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1373
1373
|
}
|
|
1374
|
-
function _object_spread$
|
|
1374
|
+
function _object_spread$1a(target) {
|
|
1375
1375
|
for (var i = 1; i < arguments.length; i++) {
|
|
1376
1376
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1377
1377
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1381,7 +1381,7 @@
|
|
|
1381
1381
|
}));
|
|
1382
1382
|
}
|
|
1383
1383
|
ownKeys2.forEach(function(key) {
|
|
1384
|
-
_define_property$
|
|
1384
|
+
_define_property$1c(target, key, source[key]);
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
1387
|
return target;
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
first
|
|
1514
1514
|
].concat(_to_consumable_array$b(rest))) : first;
|
|
1515
1515
|
var rules = this.addRules(styles);
|
|
1516
|
-
var classes = _object_spread$
|
|
1516
|
+
var classes = _object_spread$1a({}, _class_private_field_get$1(this, _classes));
|
|
1517
1517
|
rules.forEach(function(rule, key) {
|
|
1518
1518
|
classes[key] = trueReactPlatformHelpers.joinStrings([
|
|
1519
1519
|
classes[key],
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
_defineProperties$1(Constructor, staticProps);
|
|
1649
1649
|
return Constructor;
|
|
1650
1650
|
}
|
|
1651
|
-
function _define_property$
|
|
1651
|
+
function _define_property$1b(obj, key, value) {
|
|
1652
1652
|
if (key in obj) {
|
|
1653
1653
|
Object.defineProperty(obj, key, {
|
|
1654
1654
|
value,
|
|
@@ -1661,7 +1661,7 @@
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return obj;
|
|
1663
1663
|
}
|
|
1664
|
-
function _object_spread$
|
|
1664
|
+
function _object_spread$19(target) {
|
|
1665
1665
|
for (var i = 1; i < arguments.length; i++) {
|
|
1666
1666
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1667
1667
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
}));
|
|
1672
1672
|
}
|
|
1673
1673
|
ownKeys2.forEach(function(key) {
|
|
1674
|
-
_define_property$
|
|
1674
|
+
_define_property$1b(target, key, source[key]);
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
return target;
|
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
meta: _class_private_field_get(this, _name),
|
|
1768
1768
|
generateId: jssContext.generateId
|
|
1769
1769
|
});
|
|
1770
|
-
var classes = _object_spread$
|
|
1770
|
+
var classes = _object_spread$19({}, sheet.classes);
|
|
1771
1771
|
var manager = new TweakStylesManager({
|
|
1772
1772
|
sheet,
|
|
1773
1773
|
classes
|
|
@@ -1784,7 +1784,7 @@
|
|
|
1784
1784
|
]);
|
|
1785
1785
|
return ThemedStylesManager2;
|
|
1786
1786
|
}();
|
|
1787
|
-
function _define_property$
|
|
1787
|
+
function _define_property$1a(obj, key, value) {
|
|
1788
1788
|
if (key in obj) {
|
|
1789
1789
|
Object.defineProperty(obj, key, {
|
|
1790
1790
|
value,
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
}
|
|
1798
1798
|
return obj;
|
|
1799
1799
|
}
|
|
1800
|
-
function _object_spread$
|
|
1800
|
+
function _object_spread$18(target) {
|
|
1801
1801
|
for (var i = 1; i < arguments.length; i++) {
|
|
1802
1802
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1803
1803
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1807,7 +1807,7 @@
|
|
|
1807
1807
|
}));
|
|
1808
1808
|
}
|
|
1809
1809
|
ownKeys2.forEach(function(key) {
|
|
1810
|
-
_define_property$
|
|
1810
|
+
_define_property$1a(target, key, source[key]);
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
return target;
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
var children = param.children, tweakStylesArch = param.tweakStylesArch, generateId = param.generateId;
|
|
1842
1842
|
var context = React.useContext(JssContext);
|
|
1843
1843
|
var value = React.useMemo(function() {
|
|
1844
|
-
return _object_spread_props$W(_object_spread$
|
|
1844
|
+
return _object_spread_props$W(_object_spread$18({}, context), {
|
|
1845
1845
|
tweakStylesArch: tweakStylesArch !== null && tweakStylesArch !== void 0 ? tweakStylesArch : context.tweakStylesArch,
|
|
1846
1846
|
generateId: generateId !== null && generateId !== void 0 ? generateId : context.generateId
|
|
1847
1847
|
});
|
|
@@ -1880,7 +1880,7 @@
|
|
|
1880
1880
|
if (Array.isArray(arr))
|
|
1881
1881
|
return arr;
|
|
1882
1882
|
}
|
|
1883
|
-
function _define_property$
|
|
1883
|
+
function _define_property$19(obj, key, value) {
|
|
1884
1884
|
if (key in obj) {
|
|
1885
1885
|
Object.defineProperty(obj, key, {
|
|
1886
1886
|
value,
|
|
@@ -1924,7 +1924,7 @@
|
|
|
1924
1924
|
function _non_iterable_rest$p() {
|
|
1925
1925
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1926
1926
|
}
|
|
1927
|
-
function _object_spread$
|
|
1927
|
+
function _object_spread$17(target) {
|
|
1928
1928
|
for (var i = 1; i < arguments.length; i++) {
|
|
1929
1929
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1930
1930
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1934,7 +1934,7 @@
|
|
|
1934
1934
|
}));
|
|
1935
1935
|
}
|
|
1936
1936
|
ownKeys2.forEach(function(key) {
|
|
1937
|
-
_define_property$
|
|
1937
|
+
_define_property$19(target, key, source[key]);
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
return target;
|
|
@@ -2017,7 +2017,7 @@
|
|
|
2017
2017
|
tweakStylesStrategy,
|
|
2018
2018
|
tweakStyles
|
|
2019
2019
|
]);
|
|
2020
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$V(_object_spread$
|
|
2020
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$V(_object_spread$17({}, data), {
|
|
2021
2021
|
theme
|
|
2022
2022
|
}) : data);
|
|
2023
2023
|
}
|
|
@@ -4777,12 +4777,12 @@
|
|
|
4777
4777
|
return info.countryCode === countryCode;
|
|
4778
4778
|
}) : -1;
|
|
4779
4779
|
};
|
|
4780
|
-
var getCountryTextByLocale = function(country,
|
|
4781
|
-
return
|
|
4780
|
+
var getCountryTextByLocale = function(country, locale) {
|
|
4781
|
+
return locale.toLowerCase() === "ru" ? country.countryRu : country.countryEn;
|
|
4782
4782
|
};
|
|
4783
|
-
var sortCountriesByLocale = function(countriesList,
|
|
4783
|
+
var sortCountriesByLocale = function(countriesList, locale) {
|
|
4784
4784
|
return countriesList.sort(function(countryA, countryB) {
|
|
4785
|
-
return getCountryTextByLocale(countryA,
|
|
4785
|
+
return getCountryTextByLocale(countryA, locale).localeCompare(getCountryTextByLocale(countryB, locale));
|
|
4786
4786
|
});
|
|
4787
4787
|
};
|
|
4788
4788
|
var checkSearchStringInCountry = function(country, searchString) {
|
|
@@ -6565,7 +6565,7 @@
|
|
|
6565
6565
|
if (Array.isArray(arr))
|
|
6566
6566
|
return _array_like_to_array$o(arr);
|
|
6567
6567
|
}
|
|
6568
|
-
function _define_property$
|
|
6568
|
+
function _define_property$18(obj, key, value) {
|
|
6569
6569
|
if (key in obj) {
|
|
6570
6570
|
Object.defineProperty(obj, key, {
|
|
6571
6571
|
value,
|
|
@@ -6585,7 +6585,7 @@
|
|
|
6585
6585
|
function _non_iterable_spread$9() {
|
|
6586
6586
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6587
6587
|
}
|
|
6588
|
-
function _object_spread$
|
|
6588
|
+
function _object_spread$16(target) {
|
|
6589
6589
|
for (var i = 1; i < arguments.length; i++) {
|
|
6590
6590
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6591
6591
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6595,7 +6595,7 @@
|
|
|
6595
6595
|
}));
|
|
6596
6596
|
}
|
|
6597
6597
|
ownKeys2.forEach(function(key) {
|
|
6598
|
-
_define_property$
|
|
6598
|
+
_define_property$18(target, key, source[key]);
|
|
6599
6599
|
});
|
|
6600
6600
|
}
|
|
6601
6601
|
return target;
|
|
@@ -6651,7 +6651,7 @@
|
|
|
6651
6651
|
},
|
|
6652
6652
|
{
|
|
6653
6653
|
name: "flip",
|
|
6654
|
-
options: _object_spread$
|
|
6654
|
+
options: _object_spread$16({
|
|
6655
6655
|
fallbackPlacements: canBeFlipped ? [
|
|
6656
6656
|
"bottom-start",
|
|
6657
6657
|
"top-start"
|
|
@@ -6856,7 +6856,7 @@
|
|
|
6856
6856
|
"file-xml": fileXml,
|
|
6857
6857
|
"file-zip": fileZip
|
|
6858
6858
|
};
|
|
6859
|
-
function _define_property$
|
|
6859
|
+
function _define_property$17(obj, key, value) {
|
|
6860
6860
|
if (key in obj) {
|
|
6861
6861
|
Object.defineProperty(obj, key, {
|
|
6862
6862
|
value,
|
|
@@ -6869,7 +6869,7 @@
|
|
|
6869
6869
|
}
|
|
6870
6870
|
return obj;
|
|
6871
6871
|
}
|
|
6872
|
-
function _object_spread$
|
|
6872
|
+
function _object_spread$15(target) {
|
|
6873
6873
|
for (var i = 1; i < arguments.length; i++) {
|
|
6874
6874
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6875
6875
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6879,7 +6879,7 @@
|
|
|
6879
6879
|
}));
|
|
6880
6880
|
}
|
|
6881
6881
|
ownKeys2.forEach(function(key) {
|
|
6882
|
-
_define_property$
|
|
6882
|
+
_define_property$17(target, key, source[key]);
|
|
6883
6883
|
});
|
|
6884
6884
|
}
|
|
6885
6885
|
return target;
|
|
@@ -6888,7 +6888,7 @@
|
|
|
6888
6888
|
var type = param.type;
|
|
6889
6889
|
var theme = React.useContext(ThemeContext).theme;
|
|
6890
6890
|
var icons = React.useMemo(function() {
|
|
6891
|
-
return _object_spread$
|
|
6891
|
+
return _object_spread$15({}, complexIcons, theme.complexIcons);
|
|
6892
6892
|
}, []);
|
|
6893
6893
|
var ComplexIcon = icons[type];
|
|
6894
6894
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7759,7 +7759,7 @@
|
|
|
7759
7759
|
]
|
|
7760
7760
|
}
|
|
7761
7761
|
});
|
|
7762
|
-
function _define_property$
|
|
7762
|
+
function _define_property$16(obj, key, value) {
|
|
7763
7763
|
if (key in obj) {
|
|
7764
7764
|
Object.defineProperty(obj, key, {
|
|
7765
7765
|
value,
|
|
@@ -7772,7 +7772,7 @@
|
|
|
7772
7772
|
}
|
|
7773
7773
|
return obj;
|
|
7774
7774
|
}
|
|
7775
|
-
function _object_spread$
|
|
7775
|
+
function _object_spread$14(target) {
|
|
7776
7776
|
for (var i = 1; i < arguments.length; i++) {
|
|
7777
7777
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7778
7778
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7782,7 +7782,7 @@
|
|
|
7782
7782
|
}));
|
|
7783
7783
|
}
|
|
7784
7784
|
ownKeys2.forEach(function(key) {
|
|
7785
|
-
_define_property$
|
|
7785
|
+
_define_property$16(target, key, source[key]);
|
|
7786
7786
|
});
|
|
7787
7787
|
}
|
|
7788
7788
|
return target;
|
|
@@ -7816,7 +7816,7 @@
|
|
|
7816
7816
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7817
7817
|
var theme = React.useContext(ThemeContext).theme;
|
|
7818
7818
|
var icons = React.useMemo(function() {
|
|
7819
|
-
return _object_spread$
|
|
7819
|
+
return _object_spread$14({}, iconsList, theme.icons);
|
|
7820
7820
|
}, []);
|
|
7821
7821
|
var icon = icons[type];
|
|
7822
7822
|
var _icon_viewBox;
|
|
@@ -7829,7 +7829,7 @@
|
|
|
7829
7829
|
children: [
|
|
7830
7830
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7831
7831
|
var _path_fill, _path_stroke;
|
|
7832
|
-
return jsx("path", _object_spread$
|
|
7832
|
+
return jsx("path", _object_spread$14({
|
|
7833
7833
|
fillRule: "evenodd",
|
|
7834
7834
|
clipRule: "evenodd",
|
|
7835
7835
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7837,12 +7837,12 @@
|
|
|
7837
7837
|
}, path), index);
|
|
7838
7838
|
}),
|
|
7839
7839
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7840
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$U(_object_spread$
|
|
7840
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$U(_object_spread$14({}, rect), {
|
|
7841
7841
|
key: index
|
|
7842
7842
|
}));
|
|
7843
7843
|
}),
|
|
7844
7844
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7845
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$U(_object_spread$
|
|
7845
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$U(_object_spread$14({}, circle), {
|
|
7846
7846
|
key: index
|
|
7847
7847
|
}));
|
|
7848
7848
|
})
|
|
@@ -7855,7 +7855,7 @@
|
|
|
7855
7855
|
alignItems: "center"
|
|
7856
7856
|
}
|
|
7857
7857
|
});
|
|
7858
|
-
function _define_property$
|
|
7858
|
+
function _define_property$15(obj, key, value) {
|
|
7859
7859
|
if (key in obj) {
|
|
7860
7860
|
Object.defineProperty(obj, key, {
|
|
7861
7861
|
value,
|
|
@@ -7868,7 +7868,7 @@
|
|
|
7868
7868
|
}
|
|
7869
7869
|
return obj;
|
|
7870
7870
|
}
|
|
7871
|
-
function _object_spread$
|
|
7871
|
+
function _object_spread$13(target) {
|
|
7872
7872
|
for (var i = 1; i < arguments.length; i++) {
|
|
7873
7873
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7874
7874
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7878,7 +7878,7 @@
|
|
|
7878
7878
|
}));
|
|
7879
7879
|
}
|
|
7880
7880
|
ownKeys2.forEach(function(key) {
|
|
7881
|
-
_define_property$
|
|
7881
|
+
_define_property$15(target, key, source[key]);
|
|
7882
7882
|
});
|
|
7883
7883
|
}
|
|
7884
7884
|
return target;
|
|
@@ -7912,7 +7912,7 @@
|
|
|
7912
7912
|
var classes = useStyles$W({
|
|
7913
7913
|
theme: tweakStyles
|
|
7914
7914
|
});
|
|
7915
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$
|
|
7915
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$T(_object_spread$13({
|
|
7916
7916
|
className: classes.root
|
|
7917
7917
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7918
7918
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7983,7 +7983,7 @@
|
|
|
7983
7983
|
if (Array.isArray(arr))
|
|
7984
7984
|
return _array_like_to_array$m(arr);
|
|
7985
7985
|
}
|
|
7986
|
-
function _define_property$
|
|
7986
|
+
function _define_property$14(obj, key, value) {
|
|
7987
7987
|
if (key in obj) {
|
|
7988
7988
|
Object.defineProperty(obj, key, {
|
|
7989
7989
|
value,
|
|
@@ -8034,7 +8034,7 @@
|
|
|
8034
8034
|
function _non_iterable_spread$7() {
|
|
8035
8035
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8036
8036
|
}
|
|
8037
|
-
function _object_spread$
|
|
8037
|
+
function _object_spread$12(target) {
|
|
8038
8038
|
for (var i = 1; i < arguments.length; i++) {
|
|
8039
8039
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8040
8040
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8044,7 +8044,7 @@
|
|
|
8044
8044
|
}));
|
|
8045
8045
|
}
|
|
8046
8046
|
ownKeys2.forEach(function(key) {
|
|
8047
|
-
_define_property$
|
|
8047
|
+
_define_property$14(target, key, source[key]);
|
|
8048
8048
|
});
|
|
8049
8049
|
}
|
|
8050
8050
|
return target;
|
|
@@ -8126,7 +8126,7 @@
|
|
|
8126
8126
|
placement,
|
|
8127
8127
|
onOpenChange: handleToggle
|
|
8128
8128
|
}), refs = _useFloating.refs, floatingStyles = _useFloating.floatingStyles, context = _useFloating.context;
|
|
8129
|
-
var hover = react.useHover(context, _object_spread$
|
|
8129
|
+
var hover = react.useHover(context, _object_spread$12({
|
|
8130
8130
|
enabled: eventType === "hover",
|
|
8131
8131
|
delay: {
|
|
8132
8132
|
open: hoverDelay,
|
|
@@ -8134,13 +8134,13 @@
|
|
|
8134
8134
|
},
|
|
8135
8135
|
handleClose: react.safePolygon()
|
|
8136
8136
|
}, hoverOptions));
|
|
8137
|
-
var focus = react.useFocus(context, _object_spread$
|
|
8137
|
+
var focus = react.useFocus(context, _object_spread$12({
|
|
8138
8138
|
enabled: eventType === "hover"
|
|
8139
8139
|
}, focusOptions));
|
|
8140
|
-
var click = react.useClick(context, _object_spread$
|
|
8140
|
+
var click = react.useClick(context, _object_spread$12({
|
|
8141
8141
|
enabled: eventType === "click"
|
|
8142
8142
|
}, clickOptions));
|
|
8143
|
-
var dismiss = react.useDismiss(context, _object_spread$
|
|
8143
|
+
var dismiss = react.useDismiss(context, _object_spread$12({
|
|
8144
8144
|
enabled: eventType === "click",
|
|
8145
8145
|
ancestorScroll: shouldHideOnScroll
|
|
8146
8146
|
}, dismissOptions));
|
|
@@ -8150,22 +8150,22 @@
|
|
|
8150
8150
|
focus,
|
|
8151
8151
|
dismiss
|
|
8152
8152
|
]), getFloatingProps = _useInteractions.getFloatingProps, getReferenceProps = _useInteractions.getReferenceProps;
|
|
8153
|
-
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread$
|
|
8153
|
+
var _useTransitionStatus = react.useTransitionStatus(context, _object_spread$12({
|
|
8154
8154
|
duration: {
|
|
8155
8155
|
close: 500
|
|
8156
8156
|
}
|
|
8157
8157
|
}, transitionOptions)), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8158
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
8158
|
+
var referenceProps = getReferenceProps(_object_spread$12({
|
|
8159
8159
|
ref: refs.setReference
|
|
8160
8160
|
}, shouldStopPropagation && {
|
|
8161
8161
|
onClick: trueReactPlatformHelpers.stopPropagation
|
|
8162
8162
|
}));
|
|
8163
8163
|
var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
|
|
8164
8164
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8165
|
-
triggerProps: _object_spread$
|
|
8165
|
+
triggerProps: _object_spread$12({
|
|
8166
8166
|
isActive: isOpen,
|
|
8167
8167
|
isDisabled
|
|
8168
|
-
}, !isTriggerWrapped && _object_spread$
|
|
8168
|
+
}, !isTriggerWrapped && _object_spread$12({
|
|
8169
8169
|
data,
|
|
8170
8170
|
testId
|
|
8171
8171
|
}, referenceProps))
|
|
@@ -8173,14 +8173,14 @@
|
|
|
8173
8173
|
var _obj2;
|
|
8174
8174
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8175
8175
|
children: [
|
|
8176
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$
|
|
8177
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8176
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$12({
|
|
8177
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$14(_obj2, classes.clickable, eventType === "click"), _define_property$14(_obj2, classes.disabled, isDisabled), _define_property$14(_obj2, classes.active, isOpen), _obj2))
|
|
8178
8178
|
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
8179
8179
|
children: triggerElement
|
|
8180
8180
|
})) : triggerElement,
|
|
8181
8181
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8182
8182
|
root: shouldRenderInBody ? document.body : refs.reference.current,
|
|
8183
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$
|
|
8183
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$12({
|
|
8184
8184
|
ref: refs.setFloating,
|
|
8185
8185
|
style: floatingStyles,
|
|
8186
8186
|
className: classes.popup
|
|
@@ -8188,7 +8188,7 @@
|
|
|
8188
8188
|
children: /* @__PURE__ */ jsxs("div", {
|
|
8189
8189
|
className: classes["dropdown-".concat(status)],
|
|
8190
8190
|
children: [
|
|
8191
|
-
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$S(_object_spread$
|
|
8191
|
+
shouldShowArrow && /* @__PURE__ */ jsx(react.FloatingArrow, _object_spread_props$S(_object_spread$12({}, arrowProps), {
|
|
8192
8192
|
ref: arrowRef,
|
|
8193
8193
|
context,
|
|
8194
8194
|
className: classes.arrow
|
|
@@ -8246,7 +8246,7 @@
|
|
|
8246
8246
|
flexGrow: 1
|
|
8247
8247
|
}
|
|
8248
8248
|
});
|
|
8249
|
-
function _define_property$
|
|
8249
|
+
function _define_property$13(obj, key, value) {
|
|
8250
8250
|
if (key in obj) {
|
|
8251
8251
|
Object.defineProperty(obj, key, {
|
|
8252
8252
|
value,
|
|
@@ -8259,7 +8259,7 @@
|
|
|
8259
8259
|
}
|
|
8260
8260
|
return obj;
|
|
8261
8261
|
}
|
|
8262
|
-
function _object_spread$
|
|
8262
|
+
function _object_spread$11(target) {
|
|
8263
8263
|
for (var i = 1; i < arguments.length; i++) {
|
|
8264
8264
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8265
8265
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8269,7 +8269,7 @@
|
|
|
8269
8269
|
}));
|
|
8270
8270
|
}
|
|
8271
8271
|
ownKeys2.forEach(function(key) {
|
|
8272
|
-
_define_property$
|
|
8272
|
+
_define_property$13(target, key, source[key]);
|
|
8273
8273
|
});
|
|
8274
8274
|
}
|
|
8275
8275
|
return target;
|
|
@@ -8309,9 +8309,9 @@
|
|
|
8309
8309
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8310
8310
|
className: classes.spacer
|
|
8311
8311
|
}),
|
|
8312
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$
|
|
8313
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$
|
|
8314
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$R(_object_spread$
|
|
8312
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$11({
|
|
8313
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$13(_obj2, classes.disabledItem, isDisabled), _define_property$13(_obj2, classes.withIconGap, withIconGap), _define_property$13(_obj2, classes.focused, isFocused), _obj2))
|
|
8314
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$R(_object_spread$11({}, data), {
|
|
8315
8315
|
disabled: isDisabled ? true : void 0
|
|
8316
8316
|
}))), {
|
|
8317
8317
|
children: [
|
|
@@ -8358,7 +8358,7 @@
|
|
|
8358
8358
|
width: "100%"
|
|
8359
8359
|
}
|
|
8360
8360
|
};
|
|
8361
|
-
function _define_property$
|
|
8361
|
+
function _define_property$12(obj, key, value) {
|
|
8362
8362
|
if (key in obj) {
|
|
8363
8363
|
Object.defineProperty(obj, key, {
|
|
8364
8364
|
value,
|
|
@@ -8371,7 +8371,7 @@
|
|
|
8371
8371
|
}
|
|
8372
8372
|
return obj;
|
|
8373
8373
|
}
|
|
8374
|
-
function _object_spread
|
|
8374
|
+
function _object_spread$10(target) {
|
|
8375
8375
|
for (var i = 1; i < arguments.length; i++) {
|
|
8376
8376
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8377
8377
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8381,7 +8381,7 @@
|
|
|
8381
8381
|
}));
|
|
8382
8382
|
}
|
|
8383
8383
|
ownKeys2.forEach(function(key) {
|
|
8384
|
-
_define_property$
|
|
8384
|
+
_define_property$12(target, key, source[key]);
|
|
8385
8385
|
});
|
|
8386
8386
|
}
|
|
8387
8387
|
return target;
|
|
@@ -8426,11 +8426,11 @@
|
|
|
8426
8426
|
var isHidden = param2.isHidden;
|
|
8427
8427
|
return !isHidden;
|
|
8428
8428
|
});
|
|
8429
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread
|
|
8429
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$Q(_object_spread$10({
|
|
8430
8430
|
className: classes.root
|
|
8431
8431
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8432
8432
|
children: filteredItems.map(function(item, i) {
|
|
8433
|
-
var itemProps = _object_spread_props$Q(_object_spread
|
|
8433
|
+
var itemProps = _object_spread_props$Q(_object_spread$10({
|
|
8434
8434
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8435
8435
|
}, item), {
|
|
8436
8436
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8448,7 +8448,7 @@
|
|
|
8448
8448
|
shouldRenderInBody: false,
|
|
8449
8449
|
trigger: function(param2) {
|
|
8450
8450
|
var triggerProps = param2.triggerProps;
|
|
8451
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$Q(_object_spread
|
|
8451
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$Q(_object_spread$10({}, itemProps), {
|
|
8452
8452
|
isFocused: triggerProps.isActive
|
|
8453
8453
|
}));
|
|
8454
8454
|
},
|
|
@@ -8459,13 +8459,13 @@
|
|
|
8459
8459
|
onClick
|
|
8460
8460
|
})
|
|
8461
8461
|
})
|
|
8462
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread
|
|
8462
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$10({}, itemProps))
|
|
8463
8463
|
}, i);
|
|
8464
8464
|
})
|
|
8465
8465
|
}));
|
|
8466
8466
|
};
|
|
8467
8467
|
var ANIMATION_TIMEOUT = 150;
|
|
8468
|
-
function _define_property$
|
|
8468
|
+
function _define_property$11(obj, key, value) {
|
|
8469
8469
|
if (key in obj) {
|
|
8470
8470
|
Object.defineProperty(obj, key, {
|
|
8471
8471
|
value,
|
|
@@ -8478,7 +8478,7 @@
|
|
|
8478
8478
|
}
|
|
8479
8479
|
return obj;
|
|
8480
8480
|
}
|
|
8481
|
-
function _object_spread
|
|
8481
|
+
function _object_spread$$(target) {
|
|
8482
8482
|
for (var i = 1; i < arguments.length; i++) {
|
|
8483
8483
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8484
8484
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8488,12 +8488,12 @@
|
|
|
8488
8488
|
}));
|
|
8489
8489
|
}
|
|
8490
8490
|
ownKeys2.forEach(function(key) {
|
|
8491
|
-
_define_property$
|
|
8491
|
+
_define_property$11(target, key, source[key]);
|
|
8492
8492
|
});
|
|
8493
8493
|
}
|
|
8494
8494
|
return target;
|
|
8495
8495
|
}
|
|
8496
|
-
var useStyles$S = createThemedStyles("AccountInfo", _object_spread
|
|
8496
|
+
var useStyles$S = createThemedStyles("AccountInfo", _object_spread$$({
|
|
8497
8497
|
root: {
|
|
8498
8498
|
display: "flex"
|
|
8499
8499
|
},
|
|
@@ -8547,7 +8547,7 @@
|
|
|
8547
8547
|
if (Array.isArray(arr))
|
|
8548
8548
|
return arr;
|
|
8549
8549
|
}
|
|
8550
|
-
function _define_property
|
|
8550
|
+
function _define_property$10(obj, key, value) {
|
|
8551
8551
|
if (key in obj) {
|
|
8552
8552
|
Object.defineProperty(obj, key, {
|
|
8553
8553
|
value,
|
|
@@ -8591,7 +8591,7 @@
|
|
|
8591
8591
|
function _non_iterable_rest$l() {
|
|
8592
8592
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8593
8593
|
}
|
|
8594
|
-
function _object_spread$
|
|
8594
|
+
function _object_spread$_(target) {
|
|
8595
8595
|
for (var i = 1; i < arguments.length; i++) {
|
|
8596
8596
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8597
8597
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8601,7 +8601,7 @@
|
|
|
8601
8601
|
}));
|
|
8602
8602
|
}
|
|
8603
8603
|
ownKeys2.forEach(function(key) {
|
|
8604
|
-
_define_property
|
|
8604
|
+
_define_property$10(target, key, source[key]);
|
|
8605
8605
|
});
|
|
8606
8606
|
}
|
|
8607
8607
|
return target;
|
|
@@ -8668,7 +8668,7 @@
|
|
|
8668
8668
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8669
8669
|
return setIsMenuOpen(false);
|
|
8670
8670
|
}, nameRef);
|
|
8671
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$P(_object_spread$
|
|
8671
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$P(_object_spread$_({
|
|
8672
8672
|
className: classes.root
|
|
8673
8673
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8674
8674
|
children: [
|
|
@@ -8744,7 +8744,7 @@
|
|
|
8744
8744
|
width: "100%"
|
|
8745
8745
|
}
|
|
8746
8746
|
});
|
|
8747
|
-
function _define_property
|
|
8747
|
+
function _define_property$$(obj, key, value) {
|
|
8748
8748
|
if (key in obj) {
|
|
8749
8749
|
Object.defineProperty(obj, key, {
|
|
8750
8750
|
value,
|
|
@@ -8757,7 +8757,7 @@
|
|
|
8757
8757
|
}
|
|
8758
8758
|
return obj;
|
|
8759
8759
|
}
|
|
8760
|
-
function _object_spread$
|
|
8760
|
+
function _object_spread$Z(target) {
|
|
8761
8761
|
for (var i = 1; i < arguments.length; i++) {
|
|
8762
8762
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8763
8763
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8767,7 +8767,7 @@
|
|
|
8767
8767
|
}));
|
|
8768
8768
|
}
|
|
8769
8769
|
ownKeys2.forEach(function(key) {
|
|
8770
|
-
_define_property
|
|
8770
|
+
_define_property$$(target, key, source[key]);
|
|
8771
8771
|
});
|
|
8772
8772
|
}
|
|
8773
8773
|
return target;
|
|
@@ -8801,7 +8801,7 @@
|
|
|
8801
8801
|
var classes = useStyles$R({
|
|
8802
8802
|
theme: tweakStyles
|
|
8803
8803
|
});
|
|
8804
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$
|
|
8804
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$Z({
|
|
8805
8805
|
type,
|
|
8806
8806
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8807
8807
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8967,7 +8967,7 @@
|
|
|
8967
8967
|
color: "currentColor"
|
|
8968
8968
|
}
|
|
8969
8969
|
});
|
|
8970
|
-
function _define_property$
|
|
8970
|
+
function _define_property$_(obj, key, value) {
|
|
8971
8971
|
if (key in obj) {
|
|
8972
8972
|
Object.defineProperty(obj, key, {
|
|
8973
8973
|
value,
|
|
@@ -8980,7 +8980,7 @@
|
|
|
8980
8980
|
}
|
|
8981
8981
|
return obj;
|
|
8982
8982
|
}
|
|
8983
|
-
function _object_spread$
|
|
8983
|
+
function _object_spread$Y(target) {
|
|
8984
8984
|
for (var i = 1; i < arguments.length; i++) {
|
|
8985
8985
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8986
8986
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8990,7 +8990,7 @@
|
|
|
8990
8990
|
}));
|
|
8991
8991
|
}
|
|
8992
8992
|
ownKeys2.forEach(function(key) {
|
|
8993
|
-
_define_property$
|
|
8993
|
+
_define_property$_(target, key, source[key]);
|
|
8994
8994
|
});
|
|
8995
8995
|
}
|
|
8996
8996
|
return target;
|
|
@@ -9034,8 +9034,8 @@
|
|
|
9034
9034
|
className: "tweakSvgPreloader",
|
|
9035
9035
|
currentComponentName: "ThemedPreloader"
|
|
9036
9036
|
});
|
|
9037
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$
|
|
9038
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
9037
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$N(_object_spread$Y({
|
|
9038
|
+
className: clsx(classes.root, classes[type], _define_property$_({}, classes.currentColor, useCurrentColor))
|
|
9039
9039
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9040
9040
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
9041
9041
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -9216,7 +9216,7 @@
|
|
|
9216
9216
|
var getPreloaderStyles = function(size) {
|
|
9217
9217
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
9218
9218
|
};
|
|
9219
|
-
function _define_property$
|
|
9219
|
+
function _define_property$Z(obj, key, value) {
|
|
9220
9220
|
if (key in obj) {
|
|
9221
9221
|
Object.defineProperty(obj, key, {
|
|
9222
9222
|
value,
|
|
@@ -9229,7 +9229,7 @@
|
|
|
9229
9229
|
}
|
|
9230
9230
|
return obj;
|
|
9231
9231
|
}
|
|
9232
|
-
function _object_spread$
|
|
9232
|
+
function _object_spread$X(target) {
|
|
9233
9233
|
for (var i = 1; i < arguments.length; i++) {
|
|
9234
9234
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9235
9235
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9239,7 +9239,7 @@
|
|
|
9239
9239
|
}));
|
|
9240
9240
|
}
|
|
9241
9241
|
ownKeys2.forEach(function(key) {
|
|
9242
|
-
_define_property$
|
|
9242
|
+
_define_property$Z(target, key, source[key]);
|
|
9243
9243
|
});
|
|
9244
9244
|
}
|
|
9245
9245
|
return target;
|
|
@@ -9332,16 +9332,16 @@
|
|
|
9332
9332
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9333
9333
|
var hasNoAction = isDisabled || isLoading;
|
|
9334
9334
|
var _obj2, _obj1;
|
|
9335
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$M(_object_spread$
|
|
9335
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$M(_object_spread$X({
|
|
9336
9336
|
ref,
|
|
9337
9337
|
type,
|
|
9338
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$
|
|
9338
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Z(_obj2, classes.disabled, isDisabled), _define_property$Z(_obj2, classes.fullWidth, isFullWidth), _define_property$Z(_obj2, classes.inline, isInline), _define_property$Z(_obj2, classes.active, isActive), _define_property$Z(_obj2, classes.loading, isLoading), _define_property$Z(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
9339
9339
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9340
9340
|
disabled: hasNoAction
|
|
9341
9341
|
}, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9342
9342
|
children: [
|
|
9343
9343
|
/* @__PURE__ */ jsxs("span", {
|
|
9344
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9344
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Z(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Z(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9345
9345
|
children: [
|
|
9346
9346
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9347
9347
|
className: classes.icon,
|
|
@@ -9402,7 +9402,7 @@
|
|
|
9402
9402
|
flexDirection: "row-reverse"
|
|
9403
9403
|
}
|
|
9404
9404
|
});
|
|
9405
|
-
function _define_property$
|
|
9405
|
+
function _define_property$Y(obj, key, value) {
|
|
9406
9406
|
if (key in obj) {
|
|
9407
9407
|
Object.defineProperty(obj, key, {
|
|
9408
9408
|
value,
|
|
@@ -9415,7 +9415,7 @@
|
|
|
9415
9415
|
}
|
|
9416
9416
|
return obj;
|
|
9417
9417
|
}
|
|
9418
|
-
function _object_spread$
|
|
9418
|
+
function _object_spread$W(target) {
|
|
9419
9419
|
for (var i = 1; i < arguments.length; i++) {
|
|
9420
9420
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9421
9421
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9425,7 +9425,7 @@
|
|
|
9425
9425
|
}));
|
|
9426
9426
|
}
|
|
9427
9427
|
ownKeys2.forEach(function(key) {
|
|
9428
|
-
_define_property$
|
|
9428
|
+
_define_property$Y(target, key, source[key]);
|
|
9429
9429
|
});
|
|
9430
9430
|
}
|
|
9431
9431
|
return target;
|
|
@@ -9468,11 +9468,11 @@
|
|
|
9468
9468
|
}, event);
|
|
9469
9469
|
};
|
|
9470
9470
|
var _obj2;
|
|
9471
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$L(_object_spread$
|
|
9472
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9471
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$L(_object_spread$W({
|
|
9472
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$Y(_obj2, classes.checked, isSelected), _define_property$Y(_obj2, classes.invalid, isInvalid), _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9473
9473
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9474
9474
|
children: [
|
|
9475
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9475
|
+
/* @__PURE__ */ jsx("input", _object_spread$W({
|
|
9476
9476
|
className: classes.input,
|
|
9477
9477
|
type: "checkbox",
|
|
9478
9478
|
checked: isSelected,
|
|
@@ -9521,7 +9521,7 @@
|
|
|
9521
9521
|
}
|
|
9522
9522
|
}
|
|
9523
9523
|
});
|
|
9524
|
-
function _define_property$
|
|
9524
|
+
function _define_property$X(obj, key, value) {
|
|
9525
9525
|
if (key in obj) {
|
|
9526
9526
|
Object.defineProperty(obj, key, {
|
|
9527
9527
|
value,
|
|
@@ -9534,7 +9534,7 @@
|
|
|
9534
9534
|
}
|
|
9535
9535
|
return obj;
|
|
9536
9536
|
}
|
|
9537
|
-
function _object_spread$
|
|
9537
|
+
function _object_spread$V(target) {
|
|
9538
9538
|
for (var i = 1; i < arguments.length; i++) {
|
|
9539
9539
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9540
9540
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9544,7 +9544,7 @@
|
|
|
9544
9544
|
}));
|
|
9545
9545
|
}
|
|
9546
9546
|
ownKeys2.forEach(function(key) {
|
|
9547
|
-
_define_property$
|
|
9547
|
+
_define_property$X(target, key, source[key]);
|
|
9548
9548
|
});
|
|
9549
9549
|
}
|
|
9550
9550
|
return target;
|
|
@@ -9578,7 +9578,7 @@
|
|
|
9578
9578
|
var classes = useStyles$L({
|
|
9579
9579
|
theme: tweakStyles
|
|
9580
9580
|
});
|
|
9581
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$K(_object_spread$
|
|
9581
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$K(_object_spread$V({
|
|
9582
9582
|
type: "button",
|
|
9583
9583
|
className: classes.root,
|
|
9584
9584
|
onClick: onClose
|
|
@@ -9720,7 +9720,7 @@
|
|
|
9720
9720
|
},
|
|
9721
9721
|
root: {}
|
|
9722
9722
|
});
|
|
9723
|
-
function _define_property$
|
|
9723
|
+
function _define_property$W(obj, key, value) {
|
|
9724
9724
|
if (key in obj) {
|
|
9725
9725
|
Object.defineProperty(obj, key, {
|
|
9726
9726
|
value,
|
|
@@ -9733,7 +9733,7 @@
|
|
|
9733
9733
|
}
|
|
9734
9734
|
return obj;
|
|
9735
9735
|
}
|
|
9736
|
-
function _object_spread$
|
|
9736
|
+
function _object_spread$U(target) {
|
|
9737
9737
|
for (var i = 1; i < arguments.length; i++) {
|
|
9738
9738
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9739
9739
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9743,7 +9743,7 @@
|
|
|
9743
9743
|
}));
|
|
9744
9744
|
}
|
|
9745
9745
|
ownKeys2.forEach(function(key) {
|
|
9746
|
-
_define_property$
|
|
9746
|
+
_define_property$W(target, key, source[key]);
|
|
9747
9747
|
});
|
|
9748
9748
|
}
|
|
9749
9749
|
return target;
|
|
@@ -9753,7 +9753,7 @@
|
|
|
9753
9753
|
var classes = useStyles$J({
|
|
9754
9754
|
theme: tweakStyles
|
|
9755
9755
|
});
|
|
9756
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9756
|
+
return /* @__PURE__ */ jsx("div", _object_spread$U({
|
|
9757
9757
|
className: classes.root
|
|
9758
9758
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9759
9759
|
};
|
|
@@ -9791,7 +9791,7 @@
|
|
|
9791
9791
|
},
|
|
9792
9792
|
children: {}
|
|
9793
9793
|
});
|
|
9794
|
-
function _define_property$
|
|
9794
|
+
function _define_property$V(obj, key, value) {
|
|
9795
9795
|
if (key in obj) {
|
|
9796
9796
|
Object.defineProperty(obj, key, {
|
|
9797
9797
|
value,
|
|
@@ -9804,7 +9804,7 @@
|
|
|
9804
9804
|
}
|
|
9805
9805
|
return obj;
|
|
9806
9806
|
}
|
|
9807
|
-
function _object_spread$
|
|
9807
|
+
function _object_spread$T(target) {
|
|
9808
9808
|
for (var i = 1; i < arguments.length; i++) {
|
|
9809
9809
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9810
9810
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9814,7 +9814,7 @@
|
|
|
9814
9814
|
}));
|
|
9815
9815
|
}
|
|
9816
9816
|
ownKeys2.forEach(function(key) {
|
|
9817
|
-
_define_property$
|
|
9817
|
+
_define_property$V(target, key, source[key]);
|
|
9818
9818
|
});
|
|
9819
9819
|
}
|
|
9820
9820
|
return target;
|
|
@@ -9851,25 +9851,25 @@
|
|
|
9851
9851
|
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9852
9852
|
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9853
9853
|
var _obj2;
|
|
9854
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$
|
|
9854
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$J(_object_spread$T({
|
|
9855
9855
|
ref,
|
|
9856
9856
|
className: classes.withMessages,
|
|
9857
9857
|
"data-invalid": shouldShowError ? true : void 0
|
|
9858
9858
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9859
9859
|
children: [
|
|
9860
9860
|
trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9861
|
-
className: clsx(classes.children, (_obj2 = {}, _define_property$
|
|
9861
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$V(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$V(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9862
9862
|
children
|
|
9863
9863
|
}),
|
|
9864
9864
|
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9865
9865
|
className: classes.message,
|
|
9866
9866
|
children: [
|
|
9867
|
-
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$
|
|
9867
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$T({
|
|
9868
9868
|
className: classes.error
|
|
9869
9869
|
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9870
9870
|
children: errorMessage
|
|
9871
9871
|
})),
|
|
9872
|
-
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$
|
|
9872
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$J(_object_spread$T({
|
|
9873
9873
|
className: classes.info
|
|
9874
9874
|
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9875
9875
|
children: infoMessage
|
|
@@ -10031,7 +10031,7 @@
|
|
|
10031
10031
|
borderRadius: 0
|
|
10032
10032
|
}
|
|
10033
10033
|
});
|
|
10034
|
-
function _define_property$
|
|
10034
|
+
function _define_property$U(obj, key, value) {
|
|
10035
10035
|
if (key in obj) {
|
|
10036
10036
|
Object.defineProperty(obj, key, {
|
|
10037
10037
|
value,
|
|
@@ -10044,7 +10044,7 @@
|
|
|
10044
10044
|
}
|
|
10045
10045
|
return obj;
|
|
10046
10046
|
}
|
|
10047
|
-
function _object_spread$
|
|
10047
|
+
function _object_spread$S(target) {
|
|
10048
10048
|
for (var i = 1; i < arguments.length; i++) {
|
|
10049
10049
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10050
10050
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10054,7 +10054,7 @@
|
|
|
10054
10054
|
}));
|
|
10055
10055
|
}
|
|
10056
10056
|
ownKeys2.forEach(function(key) {
|
|
10057
|
-
_define_property$
|
|
10057
|
+
_define_property$U(target, key, source[key]);
|
|
10058
10058
|
});
|
|
10059
10059
|
}
|
|
10060
10060
|
return target;
|
|
@@ -10098,12 +10098,12 @@
|
|
|
10098
10098
|
currentComponentName: "ControlWrapper"
|
|
10099
10099
|
});
|
|
10100
10100
|
var _obj2, _obj1, _obj22;
|
|
10101
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$I(_object_spread$
|
|
10102
|
-
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], trueReactPlatformHelpers.isNotEmpty(size) && classes[size], (_obj2 = {}, _define_property$
|
|
10101
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$I(_object_spread$S({
|
|
10102
|
+
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && classes["placement-".concat(groupPlacement)], trueReactPlatformHelpers.isNotEmpty(size) && classes[size], (_obj2 = {}, _define_property$U(_obj2, classes.invalid, isInvalid), _define_property$U(_obj2, classes.focused, isFocused), _define_property$U(_obj2, classes.withValue, hasValue), _define_property$U(_obj2, classes.disabled, isDisabled), _define_property$U(_obj2, classes.loading, isLoading), _define_property$U(_obj2, classes.minContent, !isFullWidth), _obj2))
|
|
10103
10103
|
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
10104
10104
|
children: [
|
|
10105
10105
|
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
10106
|
-
className: clsx(classes.label, (_obj1 = {}, _define_property$
|
|
10106
|
+
className: clsx(classes.label, (_obj1 = {}, _define_property$U(_obj1, classes.requiredLabel, isRequired), _define_property$U(_obj1, classes.disabledLabel, isDisabled), _define_property$U(_obj1, classes.activeLabel, isActive), _obj1)),
|
|
10107
10107
|
children: label
|
|
10108
10108
|
}),
|
|
10109
10109
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -10113,7 +10113,7 @@
|
|
|
10113
10113
|
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
10114
10114
|
className: classes.controls,
|
|
10115
10115
|
children: [
|
|
10116
|
-
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$
|
|
10116
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$S({
|
|
10117
10117
|
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
10118
10118
|
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
10119
10119
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10123,15 +10123,15 @@
|
|
|
10123
10123
|
})
|
|
10124
10124
|
})
|
|
10125
10125
|
})),
|
|
10126
|
-
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$
|
|
10127
|
-
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$
|
|
10126
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$S({
|
|
10127
|
+
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$U(_obj22, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onIconClick)), _define_property$U(_obj22, classes.customIcon, !trueReactPlatformHelpers.isString(icon)), _obj22))
|
|
10128
10128
|
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
10129
10129
|
children: /* @__PURE__ */ jsx("div", {
|
|
10130
10130
|
className: classes.iconInner,
|
|
10131
10131
|
children: renderIcon(icon)
|
|
10132
10132
|
})
|
|
10133
10133
|
})),
|
|
10134
|
-
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$
|
|
10134
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$I(_object_spread$S({
|
|
10135
10135
|
className: clsx(classes.icon, classes.loader)
|
|
10136
10136
|
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
10137
10137
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -10262,7 +10262,7 @@
|
|
|
10262
10262
|
});
|
|
10263
10263
|
};
|
|
10264
10264
|
}
|
|
10265
|
-
function _define_property$
|
|
10265
|
+
function _define_property$T(obj, key, value) {
|
|
10266
10266
|
if (key in obj) {
|
|
10267
10267
|
Object.defineProperty(obj, key, {
|
|
10268
10268
|
value,
|
|
@@ -10306,7 +10306,7 @@
|
|
|
10306
10306
|
function _non_iterable_rest$j() {
|
|
10307
10307
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10308
10308
|
}
|
|
10309
|
-
function _object_spread$
|
|
10309
|
+
function _object_spread$R(target) {
|
|
10310
10310
|
for (var i = 1; i < arguments.length; i++) {
|
|
10311
10311
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10312
10312
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10316,7 +10316,7 @@
|
|
|
10316
10316
|
}));
|
|
10317
10317
|
}
|
|
10318
10318
|
ownKeys2.forEach(function(key) {
|
|
10319
|
-
_define_property$
|
|
10319
|
+
_define_property$T(target, key, source[key]);
|
|
10320
10320
|
});
|
|
10321
10321
|
}
|
|
10322
10322
|
return target;
|
|
@@ -10574,8 +10574,8 @@
|
|
|
10574
10574
|
units
|
|
10575
10575
|
]);
|
|
10576
10576
|
var _obj2;
|
|
10577
|
-
var props = _object_spread$
|
|
10578
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10577
|
+
var props = _object_spread$R({
|
|
10578
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$T(_obj2, classes.withUnits, hasUnits), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$T(_obj2, classes.autoSized, isAutoSized), _define_property$T(_obj2, classes.focusedInput, isFocused), _define_property$T(_obj2, classes.disabledInput, isDisabled), _define_property$T(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
10579
10579
|
style: hasUnits && hasValue ? {
|
|
10580
10580
|
"--units-width": "".concat(unitsWidth, "px")
|
|
10581
10581
|
} : void 0,
|
|
@@ -10603,13 +10603,13 @@
|
|
|
10603
10603
|
}, []);
|
|
10604
10604
|
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
10605
10605
|
children: [
|
|
10606
|
-
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$
|
|
10606
|
+
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$R({
|
|
10607
10607
|
ref: mergedRef,
|
|
10608
10608
|
mask,
|
|
10609
10609
|
maskPlaceholder,
|
|
10610
10610
|
alwaysShowMask,
|
|
10611
10611
|
beforeMaskedStateChange
|
|
10612
|
-
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$
|
|
10612
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$R({
|
|
10613
10613
|
ref: mergedRef
|
|
10614
10614
|
}, props)),
|
|
10615
10615
|
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
@@ -10645,7 +10645,7 @@
|
|
|
10645
10645
|
}) : inputContent
|
|
10646
10646
|
});
|
|
10647
10647
|
});
|
|
10648
|
-
function _define_property$
|
|
10648
|
+
function _define_property$S(obj, key, value) {
|
|
10649
10649
|
if (key in obj) {
|
|
10650
10650
|
Object.defineProperty(obj, key, {
|
|
10651
10651
|
value,
|
|
@@ -10658,7 +10658,7 @@
|
|
|
10658
10658
|
}
|
|
10659
10659
|
return obj;
|
|
10660
10660
|
}
|
|
10661
|
-
function _object_spread$
|
|
10661
|
+
function _object_spread$Q(target) {
|
|
10662
10662
|
for (var i = 1; i < arguments.length; i++) {
|
|
10663
10663
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10664
10664
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10668,7 +10668,7 @@
|
|
|
10668
10668
|
}));
|
|
10669
10669
|
}
|
|
10670
10670
|
ownKeys2.forEach(function(key) {
|
|
10671
|
-
_define_property$
|
|
10671
|
+
_define_property$S(target, key, source[key]);
|
|
10672
10672
|
});
|
|
10673
10673
|
}
|
|
10674
10674
|
return target;
|
|
@@ -10746,7 +10746,7 @@
|
|
|
10746
10746
|
infoMessage,
|
|
10747
10747
|
testId: trueReactPlatformHelpers.getTestId(testId, "wrapper"),
|
|
10748
10748
|
tweakStyles: tweakWithMessagesStyles,
|
|
10749
|
-
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$
|
|
10749
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$H(_object_spread$Q({}, inputProps), {
|
|
10750
10750
|
ref,
|
|
10751
10751
|
testId,
|
|
10752
10752
|
tweakStyles,
|
|
@@ -10764,7 +10764,7 @@
|
|
|
10764
10764
|
position: "relative"
|
|
10765
10765
|
}
|
|
10766
10766
|
});
|
|
10767
|
-
function _define_property$
|
|
10767
|
+
function _define_property$R(obj, key, value) {
|
|
10768
10768
|
if (key in obj) {
|
|
10769
10769
|
Object.defineProperty(obj, key, {
|
|
10770
10770
|
value,
|
|
@@ -10777,7 +10777,7 @@
|
|
|
10777
10777
|
}
|
|
10778
10778
|
return obj;
|
|
10779
10779
|
}
|
|
10780
|
-
function _object_spread$
|
|
10780
|
+
function _object_spread$P(target) {
|
|
10781
10781
|
for (var i = 1; i < arguments.length; i++) {
|
|
10782
10782
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10783
10783
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10787,7 +10787,7 @@
|
|
|
10787
10787
|
}));
|
|
10788
10788
|
}
|
|
10789
10789
|
ownKeys2.forEach(function(key) {
|
|
10790
|
-
_define_property$
|
|
10790
|
+
_define_property$R(target, key, source[key]);
|
|
10791
10791
|
});
|
|
10792
10792
|
}
|
|
10793
10793
|
return target;
|
|
@@ -10889,11 +10889,11 @@
|
|
|
10889
10889
|
}
|
|
10890
10890
|
onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
|
|
10891
10891
|
};
|
|
10892
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$
|
|
10892
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$G(_object_spread$P({
|
|
10893
10893
|
className: clsx(classes.root, className),
|
|
10894
10894
|
onClick
|
|
10895
10895
|
}, addDataAttributes(data)), {
|
|
10896
|
-
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$
|
|
10896
|
+
children: /* @__PURE__ */ jsx(Input, _object_spread_props$G(_object_spread$P({}, inputProps), {
|
|
10897
10897
|
ref,
|
|
10898
10898
|
value: isRange ? "".concat(startDate).concat(endDate) : date,
|
|
10899
10899
|
mask: mask !== null && mask !== void 0 ? mask : isRange ? "99.99.9999 - 99.99.9999" : "99.99.9999",
|
|
@@ -10927,7 +10927,7 @@
|
|
|
10927
10927
|
paddingLeft: 44
|
|
10928
10928
|
}
|
|
10929
10929
|
};
|
|
10930
|
-
function _define_property$
|
|
10930
|
+
function _define_property$Q(obj, key, value) {
|
|
10931
10931
|
if (key in obj) {
|
|
10932
10932
|
Object.defineProperty(obj, key, {
|
|
10933
10933
|
value,
|
|
@@ -10940,7 +10940,7 @@
|
|
|
10940
10940
|
}
|
|
10941
10941
|
return obj;
|
|
10942
10942
|
}
|
|
10943
|
-
function _object_spread$
|
|
10943
|
+
function _object_spread$O(target) {
|
|
10944
10944
|
for (var i = 1; i < arguments.length; i++) {
|
|
10945
10945
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10946
10946
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10950,7 +10950,7 @@
|
|
|
10950
10950
|
}));
|
|
10951
10951
|
}
|
|
10952
10952
|
ownKeys2.forEach(function(key) {
|
|
10953
|
-
_define_property$
|
|
10953
|
+
_define_property$Q(target, key, source[key]);
|
|
10954
10954
|
});
|
|
10955
10955
|
}
|
|
10956
10956
|
return target;
|
|
@@ -10998,7 +10998,7 @@
|
|
|
10998
10998
|
className: "tweakInput",
|
|
10999
10999
|
currentComponentName: "SearchInput"
|
|
11000
11000
|
});
|
|
11001
|
-
return /* @__PURE__ */ jsx(Input, _object_spread$
|
|
11001
|
+
return /* @__PURE__ */ jsx(Input, _object_spread$O({
|
|
11002
11002
|
ref,
|
|
11003
11003
|
icon: "search",
|
|
11004
11004
|
isClearable,
|
|
@@ -11042,7 +11042,7 @@
|
|
|
11042
11042
|
_defineProperties(Constructor, staticProps);
|
|
11043
11043
|
return Constructor;
|
|
11044
11044
|
}
|
|
11045
|
-
function _define_property$
|
|
11045
|
+
function _define_property$P(obj, key, value) {
|
|
11046
11046
|
if (key in obj) {
|
|
11047
11047
|
Object.defineProperty(obj, key, {
|
|
11048
11048
|
value,
|
|
@@ -11075,7 +11075,7 @@
|
|
|
11075
11075
|
if (superClass)
|
|
11076
11076
|
_set_prototype_of(subClass, superClass);
|
|
11077
11077
|
}
|
|
11078
|
-
function _object_spread$
|
|
11078
|
+
function _object_spread$N(target) {
|
|
11079
11079
|
for (var i = 1; i < arguments.length; i++) {
|
|
11080
11080
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11081
11081
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11085,7 +11085,7 @@
|
|
|
11085
11085
|
}));
|
|
11086
11086
|
}
|
|
11087
11087
|
ownKeys2.forEach(function(key) {
|
|
11088
|
-
_define_property$
|
|
11088
|
+
_define_property$P(target, key, source[key]);
|
|
11089
11089
|
});
|
|
11090
11090
|
}
|
|
11091
11091
|
return target;
|
|
@@ -11174,8 +11174,8 @@
|
|
|
11174
11174
|
_class_call_check(this, ScrollIntoViewIfNeeded2);
|
|
11175
11175
|
var _this;
|
|
11176
11176
|
_this = _super.apply(this, arguments);
|
|
11177
|
-
_define_property$
|
|
11178
|
-
_define_property$
|
|
11177
|
+
_define_property$P(_assert_this_initialized(_this), "node", React.createRef());
|
|
11178
|
+
_define_property$P(_assert_this_initialized(_this), "handleScrollIntoViewIfNeeded", function() {
|
|
11179
11179
|
var options = _this.props.options;
|
|
11180
11180
|
var _this_node = _this.node, node = _this_node.current;
|
|
11181
11181
|
if (node) {
|
|
@@ -11217,7 +11217,7 @@
|
|
|
11217
11217
|
"children",
|
|
11218
11218
|
"options"
|
|
11219
11219
|
]);
|
|
11220
|
-
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$
|
|
11220
|
+
return React.createElement(elementType !== null && elementType !== void 0 ? elementType : ScrollIntoViewIfNeededDefaultElementType, _object_spread$N({
|
|
11221
11221
|
ref: this.node
|
|
11222
11222
|
}, wrapperProps), children);
|
|
11223
11223
|
}
|
|
@@ -11225,10 +11225,10 @@
|
|
|
11225
11225
|
]);
|
|
11226
11226
|
return ScrollIntoViewIfNeeded2;
|
|
11227
11227
|
}(React.PureComponent);
|
|
11228
|
-
_define_property$
|
|
11228
|
+
_define_property$P(ScrollIntoViewIfNeeded, "defaultProps", ScrollIntoViewIfNeededDefaultProps);
|
|
11229
11229
|
var DEFAULT_OPTION_INDEX = -2;
|
|
11230
11230
|
var ALL_OPTION_INDEX = -1;
|
|
11231
|
-
function _define_property$
|
|
11231
|
+
function _define_property$O(obj, key, value) {
|
|
11232
11232
|
if (key in obj) {
|
|
11233
11233
|
Object.defineProperty(obj, key, {
|
|
11234
11234
|
value,
|
|
@@ -11241,7 +11241,7 @@
|
|
|
11241
11241
|
}
|
|
11242
11242
|
return obj;
|
|
11243
11243
|
}
|
|
11244
|
-
function _object_spread$
|
|
11244
|
+
function _object_spread$M(target) {
|
|
11245
11245
|
for (var i = 1; i < arguments.length; i++) {
|
|
11246
11246
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11247
11247
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11251,7 +11251,7 @@
|
|
|
11251
11251
|
}));
|
|
11252
11252
|
}
|
|
11253
11253
|
ownKeys2.forEach(function(key) {
|
|
11254
|
-
_define_property$
|
|
11254
|
+
_define_property$O(target, key, source[key]);
|
|
11255
11255
|
});
|
|
11256
11256
|
}
|
|
11257
11257
|
return target;
|
|
@@ -11282,7 +11282,7 @@
|
|
|
11282
11282
|
},
|
|
11283
11283
|
listHeader: {},
|
|
11284
11284
|
listFooter: {},
|
|
11285
|
-
list: _object_spread$
|
|
11285
|
+
list: _object_spread$M({
|
|
11286
11286
|
height: "100%",
|
|
11287
11287
|
maxHeight: ROW_HEIGHT$1 * 6,
|
|
11288
11288
|
cursor: "pointer",
|
|
@@ -11325,7 +11325,7 @@
|
|
|
11325
11325
|
display: "none"
|
|
11326
11326
|
}
|
|
11327
11327
|
};
|
|
11328
|
-
function _define_property$
|
|
11328
|
+
function _define_property$N(obj, key, value) {
|
|
11329
11329
|
if (key in obj) {
|
|
11330
11330
|
Object.defineProperty(obj, key, {
|
|
11331
11331
|
value,
|
|
@@ -11338,7 +11338,7 @@
|
|
|
11338
11338
|
}
|
|
11339
11339
|
return obj;
|
|
11340
11340
|
}
|
|
11341
|
-
function _object_spread$
|
|
11341
|
+
function _object_spread$L(target) {
|
|
11342
11342
|
for (var i = 1; i < arguments.length; i++) {
|
|
11343
11343
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11344
11344
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11348,7 +11348,7 @@
|
|
|
11348
11348
|
}));
|
|
11349
11349
|
}
|
|
11350
11350
|
ownKeys2.forEach(function(key) {
|
|
11351
|
-
_define_property$
|
|
11351
|
+
_define_property$N(target, key, source[key]);
|
|
11352
11352
|
});
|
|
11353
11353
|
}
|
|
11354
11354
|
return target;
|
|
@@ -11391,12 +11391,12 @@
|
|
|
11391
11391
|
children
|
|
11392
11392
|
});
|
|
11393
11393
|
var _obj2;
|
|
11394
|
-
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$F(_object_spread$
|
|
11394
|
+
return /* @__PURE__ */ jsx(ScrollIntoViewIfNeeded, _object_spread_props$F(_object_spread$L({
|
|
11395
11395
|
active: isFocused,
|
|
11396
11396
|
options: {
|
|
11397
11397
|
block: "nearest"
|
|
11398
11398
|
},
|
|
11399
|
-
className: clsx(classes.cell, (_obj2 = {}, _define_property$
|
|
11399
|
+
className: clsx(classes.cell, (_obj2 = {}, _define_property$N(_obj2, classes.cellWithCheckbox, isMultiSelect), _define_property$N(_obj2, classes.focused, isFocused), _define_property$N(_obj2, classes.active, isActive && !isMultiSelect), _define_property$N(_obj2, classes.disabled, isDisabled), _obj2))
|
|
11400
11400
|
}, addDataAttributes({
|
|
11401
11401
|
disabled: isDisabled,
|
|
11402
11402
|
active: isActive,
|
|
@@ -11408,7 +11408,7 @@
|
|
|
11408
11408
|
children: isMultiSelect ? multiSelectContent : children
|
|
11409
11409
|
}));
|
|
11410
11410
|
};
|
|
11411
|
-
function _define_property$
|
|
11411
|
+
function _define_property$M(obj, key, value) {
|
|
11412
11412
|
if (key in obj) {
|
|
11413
11413
|
Object.defineProperty(obj, key, {
|
|
11414
11414
|
value,
|
|
@@ -11421,7 +11421,7 @@
|
|
|
11421
11421
|
}
|
|
11422
11422
|
return obj;
|
|
11423
11423
|
}
|
|
11424
|
-
function _object_spread$
|
|
11424
|
+
function _object_spread$K(target) {
|
|
11425
11425
|
for (var i = 1; i < arguments.length; i++) {
|
|
11426
11426
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11427
11427
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11431,7 +11431,7 @@
|
|
|
11431
11431
|
}));
|
|
11432
11432
|
}
|
|
11433
11433
|
ownKeys2.forEach(function(key) {
|
|
11434
|
-
_define_property$
|
|
11434
|
+
_define_property$M(target, key, source[key]);
|
|
11435
11435
|
});
|
|
11436
11436
|
}
|
|
11437
11437
|
return target;
|
|
@@ -11491,13 +11491,13 @@
|
|
|
11491
11491
|
var _obj2;
|
|
11492
11492
|
return /* @__PURE__ */ jsxs(ScrollIntoViewIfNeeded, {
|
|
11493
11493
|
active: shouldScrollToList && !isMultiSelect,
|
|
11494
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
11494
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$M(_obj2, classes.withListHeader, isHeaderNotEmpty), _define_property$M(_obj2, classes.withListFooter, isFooterNotEmpty), _obj2)),
|
|
11495
11495
|
children: [
|
|
11496
11496
|
isHeaderNotEmpty && /* @__PURE__ */ jsx("div", {
|
|
11497
11497
|
className: classes.listHeader,
|
|
11498
11498
|
children: customListHeader
|
|
11499
11499
|
}),
|
|
11500
|
-
/* @__PURE__ */ jsx("div", _object_spread_props$E(_object_spread$
|
|
11500
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$E(_object_spread$K({
|
|
11501
11501
|
className: classes.list
|
|
11502
11502
|
}, trueReactPlatformHelpers.addDataTestId(testId)), {
|
|
11503
11503
|
tabIndex: -1,
|
|
@@ -11717,7 +11717,7 @@
|
|
|
11717
11717
|
});
|
|
11718
11718
|
};
|
|
11719
11719
|
}
|
|
11720
|
-
function _define_property$
|
|
11720
|
+
function _define_property$L(obj, key, value) {
|
|
11721
11721
|
if (key in obj) {
|
|
11722
11722
|
Object.defineProperty(obj, key, {
|
|
11723
11723
|
value,
|
|
@@ -11768,7 +11768,7 @@
|
|
|
11768
11768
|
function _non_iterable_spread$6() {
|
|
11769
11769
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11770
11770
|
}
|
|
11771
|
-
function _object_spread$
|
|
11771
|
+
function _object_spread$J(target) {
|
|
11772
11772
|
for (var i = 1; i < arguments.length; i++) {
|
|
11773
11773
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11774
11774
|
var ownKeys2 = Object.keys(source);
|
|
@@ -11778,7 +11778,7 @@
|
|
|
11778
11778
|
}));
|
|
11779
11779
|
}
|
|
11780
11780
|
ownKeys2.forEach(function(key) {
|
|
11781
|
-
_define_property$
|
|
11781
|
+
_define_property$L(target, key, source[key]);
|
|
11782
11782
|
});
|
|
11783
11783
|
}
|
|
11784
11784
|
return target;
|
|
@@ -12356,7 +12356,7 @@
|
|
|
12356
12356
|
}, [
|
|
12357
12357
|
isOpen
|
|
12358
12358
|
]);
|
|
12359
|
-
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$
|
|
12359
|
+
var searchInputEl = hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$J({
|
|
12360
12360
|
value: searchValue,
|
|
12361
12361
|
onChange: handleInputChange,
|
|
12362
12362
|
tweakStyles: tweakSearchInputStyles,
|
|
@@ -12369,8 +12369,8 @@
|
|
|
12369
12369
|
]
|
|
12370
12370
|
});
|
|
12371
12371
|
var _obj2;
|
|
12372
|
-
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$
|
|
12373
|
-
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$
|
|
12372
|
+
var listEl = /* @__PURE__ */ jsx("div", _object_spread_props$D(_object_spread$J({
|
|
12373
|
+
className: clsx(classes.listWrapper, (_obj2 = {}, _define_property$L(_obj2, classes.withoutPopper, !shouldUsePopper), _define_property$L(_obj2, classes.listWrapperInBody, shouldRenderInBody), _obj2)),
|
|
12374
12374
|
ref: list,
|
|
12375
12375
|
style: popperData === null || popperData === void 0 ? void 0 : popperData.styles.popper,
|
|
12376
12376
|
tabIndex: 0,
|
|
@@ -12432,7 +12432,7 @@
|
|
|
12432
12432
|
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12433
12433
|
ref: inputWrapper,
|
|
12434
12434
|
children: [
|
|
12435
|
-
/* @__PURE__ */ jsx(InputBase, _object_spread$
|
|
12435
|
+
/* @__PURE__ */ jsx(InputBase, _object_spread$J({
|
|
12436
12436
|
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12437
12437
|
onChange: handleInputChange,
|
|
12438
12438
|
isActive: isListOpen || isActive,
|
|
@@ -12574,77 +12574,100 @@
|
|
|
12574
12574
|
]
|
|
12575
12575
|
});
|
|
12576
12576
|
};
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12577
|
+
function _define_property$K(obj, key, value) {
|
|
12578
|
+
if (key in obj) {
|
|
12579
|
+
Object.defineProperty(obj, key, {
|
|
12580
|
+
value,
|
|
12581
|
+
enumerable: true,
|
|
12582
|
+
configurable: true,
|
|
12583
|
+
writable: true
|
|
12584
|
+
});
|
|
12585
|
+
} else {
|
|
12586
|
+
obj[key] = value;
|
|
12587
|
+
}
|
|
12588
|
+
return obj;
|
|
12589
|
+
}
|
|
12590
|
+
function _object_spread$I(target) {
|
|
12591
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12592
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
12593
|
+
var ownKeys2 = Object.keys(source);
|
|
12594
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
12595
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
12596
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
12597
|
+
}));
|
|
12598
|
+
}
|
|
12599
|
+
ownKeys2.forEach(function(key) {
|
|
12600
|
+
_define_property$K(target, key, source[key]);
|
|
12601
|
+
});
|
|
12602
|
+
}
|
|
12603
|
+
return target;
|
|
12604
|
+
}
|
|
12605
|
+
var PopperContainer = function(props) {
|
|
12606
|
+
return /* @__PURE__ */ jsx(react.FloatingPortal, _object_spread$I({
|
|
12607
|
+
root: document.body
|
|
12608
|
+
}, props));
|
|
12583
12609
|
};
|
|
12584
12610
|
var DEFAULT_DATE_FORMAT$2 = "dd.MM.yyyy";
|
|
12585
12611
|
var _ReactDatePicker_default;
|
|
12586
12612
|
var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker;
|
|
12587
12613
|
function buildFormatLongFn(args) {
|
|
12588
|
-
return
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
12614
|
+
return (options = {}) => {
|
|
12615
|
+
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
12616
|
+
const format = args.formats[width] || args.formats[args.defaultWidth];
|
|
12592
12617
|
return format;
|
|
12593
12618
|
};
|
|
12594
12619
|
}
|
|
12595
12620
|
function buildLocalizeFn(args) {
|
|
12596
|
-
return
|
|
12597
|
-
|
|
12598
|
-
|
|
12621
|
+
return (value, options) => {
|
|
12622
|
+
const context = (options == null ? void 0 : options.context) ? String(options.context) : "standalone";
|
|
12623
|
+
let valuesArray;
|
|
12599
12624
|
if (context === "formatting" && args.formattingValues) {
|
|
12600
|
-
|
|
12601
|
-
|
|
12625
|
+
const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
|
12626
|
+
const width = (options == null ? void 0 : options.width) ? String(options.width) : defaultWidth;
|
|
12602
12627
|
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
|
12603
12628
|
} else {
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
valuesArray = args.values[
|
|
12629
|
+
const defaultWidth = args.defaultWidth;
|
|
12630
|
+
const width = (options == null ? void 0 : options.width) ? String(options.width) : args.defaultWidth;
|
|
12631
|
+
valuesArray = args.values[width] || args.values[defaultWidth];
|
|
12607
12632
|
}
|
|
12608
|
-
|
|
12633
|
+
const index = args.argumentCallback ? args.argumentCallback(value) : value;
|
|
12609
12634
|
return valuesArray[index];
|
|
12610
12635
|
};
|
|
12611
12636
|
}
|
|
12612
12637
|
function buildMatchFn(args) {
|
|
12613
|
-
return
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
var matchResult = string.match(matchPattern);
|
|
12638
|
+
return (string, options = {}) => {
|
|
12639
|
+
const width = options.width;
|
|
12640
|
+
const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
|
|
12641
|
+
const matchResult = string.match(matchPattern);
|
|
12618
12642
|
if (!matchResult) {
|
|
12619
12643
|
return null;
|
|
12620
12644
|
}
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
var value;
|
|
12645
|
+
const matchedString = matchResult[0];
|
|
12646
|
+
const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
|
|
12647
|
+
const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : (
|
|
12648
|
+
// [TODO] -- I challenge you to fix the type
|
|
12649
|
+
findKey(parsePatterns, (pattern) => pattern.test(matchedString))
|
|
12650
|
+
);
|
|
12651
|
+
let value;
|
|
12629
12652
|
value = args.valueCallback ? args.valueCallback(key) : key;
|
|
12630
|
-
value = options.valueCallback ?
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
};
|
|
12653
|
+
value = options.valueCallback ? (
|
|
12654
|
+
// [TODO] -- I challenge you to fix the type
|
|
12655
|
+
options.valueCallback(value)
|
|
12656
|
+
) : value;
|
|
12657
|
+
const rest = string.slice(matchedString.length);
|
|
12658
|
+
return { value, rest };
|
|
12636
12659
|
};
|
|
12637
12660
|
}
|
|
12638
12661
|
function findKey(object, predicate) {
|
|
12639
|
-
for (
|
|
12640
|
-
if (
|
|
12662
|
+
for (const key in object) {
|
|
12663
|
+
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
|
|
12641
12664
|
return key;
|
|
12642
12665
|
}
|
|
12643
12666
|
}
|
|
12644
12667
|
return void 0;
|
|
12645
12668
|
}
|
|
12646
12669
|
function findIndex(array, predicate) {
|
|
12647
|
-
for (
|
|
12670
|
+
for (let key = 0; key < array.length; key++) {
|
|
12648
12671
|
if (predicate(array[key])) {
|
|
12649
12672
|
return key;
|
|
12650
12673
|
}
|
|
@@ -12652,87 +12675,64 @@
|
|
|
12652
12675
|
return void 0;
|
|
12653
12676
|
}
|
|
12654
12677
|
function buildMatchPatternFn(args) {
|
|
12655
|
-
return
|
|
12656
|
-
|
|
12657
|
-
var matchResult = string.match(args.matchPattern);
|
|
12678
|
+
return (string, options = {}) => {
|
|
12679
|
+
const matchResult = string.match(args.matchPattern);
|
|
12658
12680
|
if (!matchResult)
|
|
12659
12681
|
return null;
|
|
12660
|
-
|
|
12661
|
-
|
|
12682
|
+
const matchedString = matchResult[0];
|
|
12683
|
+
const parseResult = string.match(args.parsePattern);
|
|
12662
12684
|
if (!parseResult)
|
|
12663
12685
|
return null;
|
|
12664
|
-
|
|
12686
|
+
let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
|
|
12665
12687
|
value = options.valueCallback ? options.valueCallback(value) : value;
|
|
12666
|
-
|
|
12667
|
-
return {
|
|
12668
|
-
value,
|
|
12669
|
-
rest
|
|
12670
|
-
};
|
|
12688
|
+
const rest = string.slice(matchedString.length);
|
|
12689
|
+
return { value, rest };
|
|
12671
12690
|
};
|
|
12672
12691
|
}
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
return
|
|
12682
|
-
}
|
|
12683
|
-
function
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
"@babel/helpers - typeof";
|
|
12690
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
12691
|
-
_typeof = function _typeof2(obj2) {
|
|
12692
|
-
return typeof obj2;
|
|
12693
|
-
};
|
|
12694
|
-
} else {
|
|
12695
|
-
_typeof = function _typeof2(obj2) {
|
|
12696
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
12697
|
-
};
|
|
12698
|
-
}
|
|
12699
|
-
return _typeof(obj);
|
|
12700
|
-
}
|
|
12701
|
-
function toDate(argument) {
|
|
12702
|
-
requiredArgs(1, arguments);
|
|
12703
|
-
var argStr = Object.prototype.toString.call(argument);
|
|
12704
|
-
if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
|
|
12705
|
-
return new Date(argument.getTime());
|
|
12706
|
-
} else if (typeof argument === "number" || argStr === "[object Number]") {
|
|
12707
|
-
return new Date(argument);
|
|
12708
|
-
} else {
|
|
12709
|
-
if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") {
|
|
12710
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
12711
|
-
console.warn(new Error().stack);
|
|
12712
|
-
}
|
|
12713
|
-
return new Date(NaN);
|
|
12714
|
-
}
|
|
12692
|
+
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
12693
|
+
function constructFrom(date, value) {
|
|
12694
|
+
if (typeof date === "function")
|
|
12695
|
+
return date(value);
|
|
12696
|
+
if (date && typeof date === "object" && constructFromSymbol in date)
|
|
12697
|
+
return date[constructFromSymbol](value);
|
|
12698
|
+
if (date instanceof Date)
|
|
12699
|
+
return new date.constructor(value);
|
|
12700
|
+
return new Date(value);
|
|
12701
|
+
}
|
|
12702
|
+
function normalizeDates(context, ...dates) {
|
|
12703
|
+
const normalize = constructFrom.bind(
|
|
12704
|
+
null,
|
|
12705
|
+
context || dates.find((date) => typeof date === "object")
|
|
12706
|
+
);
|
|
12707
|
+
return dates.map(normalize);
|
|
12715
12708
|
}
|
|
12716
|
-
|
|
12709
|
+
let defaultOptions = {};
|
|
12717
12710
|
function getDefaultOptions() {
|
|
12718
12711
|
return defaultOptions;
|
|
12719
12712
|
}
|
|
12720
|
-
function
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
var
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12713
|
+
function toDate(argument, context) {
|
|
12714
|
+
return constructFrom(context || argument, argument);
|
|
12715
|
+
}
|
|
12716
|
+
function startOfWeek(date, options) {
|
|
12717
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
12718
|
+
const defaultOptions2 = getDefaultOptions();
|
|
12719
|
+
const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
|
|
12720
|
+
const _date = toDate(date, options == null ? void 0 : options.in);
|
|
12721
|
+
const day = _date.getDay();
|
|
12722
|
+
const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
|
12723
|
+
_date.setDate(_date.getDate() - diff);
|
|
12724
|
+
_date.setHours(0, 0, 0, 0);
|
|
12725
|
+
return _date;
|
|
12726
|
+
}
|
|
12727
|
+
function isSameWeek(laterDate, earlierDate, options) {
|
|
12728
|
+
const [laterDate_, earlierDate_] = normalizeDates(
|
|
12729
|
+
options == null ? void 0 : options.in,
|
|
12730
|
+
laterDate,
|
|
12731
|
+
earlierDate
|
|
12732
|
+
);
|
|
12733
|
+
return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options);
|
|
12734
|
+
}
|
|
12735
|
+
const formatDistanceLocale$1 = {
|
|
12736
12736
|
lessThanXSeconds: {
|
|
12737
12737
|
one: "less than a second",
|
|
12738
12738
|
other: "less than {{count}} seconds"
|
|
@@ -12795,9 +12795,9 @@
|
|
|
12795
12795
|
other: "almost {{count}} years"
|
|
12796
12796
|
}
|
|
12797
12797
|
};
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12798
|
+
const formatDistance$1 = (token, count, options) => {
|
|
12799
|
+
let result;
|
|
12800
|
+
const tokenValue = formatDistanceLocale$1[token];
|
|
12801
12801
|
if (typeof tokenValue === "string") {
|
|
12802
12802
|
result = tokenValue;
|
|
12803
12803
|
} else if (count === 1) {
|
|
@@ -12805,7 +12805,7 @@
|
|
|
12805
12805
|
} else {
|
|
12806
12806
|
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
12807
12807
|
}
|
|
12808
|
-
if (options
|
|
12808
|
+
if (options == null ? void 0 : options.addSuffix) {
|
|
12809
12809
|
if (options.comparison && options.comparison > 0) {
|
|
12810
12810
|
return "in " + result;
|
|
12811
12811
|
} else {
|
|
@@ -12814,41 +12814,7 @@
|
|
|
12814
12814
|
}
|
|
12815
12815
|
return result;
|
|
12816
12816
|
};
|
|
12817
|
-
const
|
|
12818
|
-
var dateFormats$1 = {
|
|
12819
|
-
full: "EEEE, MMMM do, y",
|
|
12820
|
-
long: "MMMM do, y",
|
|
12821
|
-
medium: "MMM d, y",
|
|
12822
|
-
short: "MM/dd/yyyy"
|
|
12823
|
-
};
|
|
12824
|
-
var timeFormats$1 = {
|
|
12825
|
-
full: "h:mm:ss a zzzz",
|
|
12826
|
-
long: "h:mm:ss a z",
|
|
12827
|
-
medium: "h:mm:ss a",
|
|
12828
|
-
short: "h:mm a"
|
|
12829
|
-
};
|
|
12830
|
-
var dateTimeFormats$1 = {
|
|
12831
|
-
full: "{{date}} 'at' {{time}}",
|
|
12832
|
-
long: "{{date}} 'at' {{time}}",
|
|
12833
|
-
medium: "{{date}}, {{time}}",
|
|
12834
|
-
short: "{{date}}, {{time}}"
|
|
12835
|
-
};
|
|
12836
|
-
var formatLong$2 = {
|
|
12837
|
-
date: buildFormatLongFn({
|
|
12838
|
-
formats: dateFormats$1,
|
|
12839
|
-
defaultWidth: "full"
|
|
12840
|
-
}),
|
|
12841
|
-
time: buildFormatLongFn({
|
|
12842
|
-
formats: timeFormats$1,
|
|
12843
|
-
defaultWidth: "full"
|
|
12844
|
-
}),
|
|
12845
|
-
dateTime: buildFormatLongFn({
|
|
12846
|
-
formats: dateTimeFormats$1,
|
|
12847
|
-
defaultWidth: "full"
|
|
12848
|
-
})
|
|
12849
|
-
};
|
|
12850
|
-
const formatLong$3 = formatLong$2;
|
|
12851
|
-
var formatRelativeLocale$1 = {
|
|
12817
|
+
const formatRelativeLocale$1 = {
|
|
12852
12818
|
lastWeek: "'last' eeee 'at' p",
|
|
12853
12819
|
yesterday: "'yesterday at' p",
|
|
12854
12820
|
today: "'today at' p",
|
|
@@ -12856,32 +12822,63 @@
|
|
|
12856
12822
|
nextWeek: "eeee 'at' p",
|
|
12857
12823
|
other: "P"
|
|
12858
12824
|
};
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
};
|
|
12862
|
-
const formatRelative$3 = formatRelative$2;
|
|
12863
|
-
var eraValues$1 = {
|
|
12825
|
+
const formatRelative$1 = (token, _date, _baseDate, _options) => formatRelativeLocale$1[token];
|
|
12826
|
+
const eraValues$1 = {
|
|
12864
12827
|
narrow: ["B", "A"],
|
|
12865
12828
|
abbreviated: ["BC", "AD"],
|
|
12866
12829
|
wide: ["Before Christ", "Anno Domini"]
|
|
12867
12830
|
};
|
|
12868
|
-
|
|
12831
|
+
const quarterValues$1 = {
|
|
12869
12832
|
narrow: ["1", "2", "3", "4"],
|
|
12870
12833
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
12871
12834
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
12872
12835
|
};
|
|
12873
|
-
|
|
12836
|
+
const monthValues$1 = {
|
|
12874
12837
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
12875
|
-
abbreviated: [
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12838
|
+
abbreviated: [
|
|
12839
|
+
"Jan",
|
|
12840
|
+
"Feb",
|
|
12841
|
+
"Mar",
|
|
12842
|
+
"Apr",
|
|
12843
|
+
"May",
|
|
12844
|
+
"Jun",
|
|
12845
|
+
"Jul",
|
|
12846
|
+
"Aug",
|
|
12847
|
+
"Sep",
|
|
12848
|
+
"Oct",
|
|
12849
|
+
"Nov",
|
|
12850
|
+
"Dec"
|
|
12851
|
+
],
|
|
12852
|
+
wide: [
|
|
12853
|
+
"January",
|
|
12854
|
+
"February",
|
|
12855
|
+
"March",
|
|
12856
|
+
"April",
|
|
12857
|
+
"May",
|
|
12858
|
+
"June",
|
|
12859
|
+
"July",
|
|
12860
|
+
"August",
|
|
12861
|
+
"September",
|
|
12862
|
+
"October",
|
|
12863
|
+
"November",
|
|
12864
|
+
"December"
|
|
12865
|
+
]
|
|
12866
|
+
};
|
|
12867
|
+
const dayValues$1 = {
|
|
12879
12868
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
12880
12869
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
12881
12870
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
12882
|
-
wide: [
|
|
12883
|
-
|
|
12884
|
-
|
|
12871
|
+
wide: [
|
|
12872
|
+
"Sunday",
|
|
12873
|
+
"Monday",
|
|
12874
|
+
"Tuesday",
|
|
12875
|
+
"Wednesday",
|
|
12876
|
+
"Thursday",
|
|
12877
|
+
"Friday",
|
|
12878
|
+
"Saturday"
|
|
12879
|
+
]
|
|
12880
|
+
};
|
|
12881
|
+
const dayPeriodValues$1 = {
|
|
12885
12882
|
narrow: {
|
|
12886
12883
|
am: "a",
|
|
12887
12884
|
pm: "p",
|
|
@@ -12913,7 +12910,7 @@
|
|
|
12913
12910
|
night: "night"
|
|
12914
12911
|
}
|
|
12915
12912
|
};
|
|
12916
|
-
|
|
12913
|
+
const formattingDayPeriodValues$1 = {
|
|
12917
12914
|
narrow: {
|
|
12918
12915
|
am: "a",
|
|
12919
12916
|
pm: "p",
|
|
@@ -12945,9 +12942,9 @@
|
|
|
12945
12942
|
night: "at night"
|
|
12946
12943
|
}
|
|
12947
12944
|
};
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12945
|
+
const ordinalNumber$1 = (dirtyNumber, _options) => {
|
|
12946
|
+
const number = Number(dirtyNumber);
|
|
12947
|
+
const rem100 = number % 100;
|
|
12951
12948
|
if (rem100 > 20 || rem100 < 10) {
|
|
12952
12949
|
switch (rem100 % 10) {
|
|
12953
12950
|
case 1:
|
|
@@ -12960,7 +12957,7 @@
|
|
|
12960
12957
|
}
|
|
12961
12958
|
return number + "th";
|
|
12962
12959
|
};
|
|
12963
|
-
|
|
12960
|
+
const localize$1 = {
|
|
12964
12961
|
ordinalNumber: ordinalNumber$1,
|
|
12965
12962
|
era: buildLocalizeFn({
|
|
12966
12963
|
values: eraValues$1,
|
|
@@ -12969,9 +12966,7 @@
|
|
|
12969
12966
|
quarter: buildLocalizeFn({
|
|
12970
12967
|
values: quarterValues$1,
|
|
12971
12968
|
defaultWidth: "wide",
|
|
12972
|
-
argumentCallback:
|
|
12973
|
-
return quarter - 1;
|
|
12974
|
-
}
|
|
12969
|
+
argumentCallback: (quarter) => quarter - 1
|
|
12975
12970
|
}),
|
|
12976
12971
|
month: buildLocalizeFn({
|
|
12977
12972
|
values: monthValues$1,
|
|
@@ -12988,49 +12983,74 @@
|
|
|
12988
12983
|
defaultFormattingWidth: "wide"
|
|
12989
12984
|
})
|
|
12990
12985
|
};
|
|
12991
|
-
const
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
var matchEraPatterns$1 = {
|
|
12986
|
+
const matchOrdinalNumberPattern$1 = /^(\d+)(th|st|nd|rd)?/i;
|
|
12987
|
+
const parseOrdinalNumberPattern$1 = /\d+/i;
|
|
12988
|
+
const matchEraPatterns$1 = {
|
|
12995
12989
|
narrow: /^(b|a)/i,
|
|
12996
12990
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
12997
12991
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
12998
12992
|
};
|
|
12999
|
-
|
|
12993
|
+
const parseEraPatterns$1 = {
|
|
13000
12994
|
any: [/^b/i, /^(a|c)/i]
|
|
13001
12995
|
};
|
|
13002
|
-
|
|
12996
|
+
const matchQuarterPatterns$1 = {
|
|
13003
12997
|
narrow: /^[1234]/i,
|
|
13004
12998
|
abbreviated: /^q[1234]/i,
|
|
13005
12999
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13006
13000
|
};
|
|
13007
|
-
|
|
13001
|
+
const parseQuarterPatterns$1 = {
|
|
13008
13002
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13009
13003
|
};
|
|
13010
|
-
|
|
13004
|
+
const matchMonthPatterns$1 = {
|
|
13011
13005
|
narrow: /^[jfmasond]/i,
|
|
13012
13006
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
13013
13007
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
13014
13008
|
};
|
|
13015
|
-
|
|
13016
|
-
narrow: [
|
|
13017
|
-
|
|
13018
|
-
|
|
13019
|
-
|
|
13009
|
+
const parseMonthPatterns$1 = {
|
|
13010
|
+
narrow: [
|
|
13011
|
+
/^j/i,
|
|
13012
|
+
/^f/i,
|
|
13013
|
+
/^m/i,
|
|
13014
|
+
/^a/i,
|
|
13015
|
+
/^m/i,
|
|
13016
|
+
/^j/i,
|
|
13017
|
+
/^j/i,
|
|
13018
|
+
/^a/i,
|
|
13019
|
+
/^s/i,
|
|
13020
|
+
/^o/i,
|
|
13021
|
+
/^n/i,
|
|
13022
|
+
/^d/i
|
|
13023
|
+
],
|
|
13024
|
+
any: [
|
|
13025
|
+
/^ja/i,
|
|
13026
|
+
/^f/i,
|
|
13027
|
+
/^mar/i,
|
|
13028
|
+
/^ap/i,
|
|
13029
|
+
/^may/i,
|
|
13030
|
+
/^jun/i,
|
|
13031
|
+
/^jul/i,
|
|
13032
|
+
/^au/i,
|
|
13033
|
+
/^s/i,
|
|
13034
|
+
/^o/i,
|
|
13035
|
+
/^n/i,
|
|
13036
|
+
/^d/i
|
|
13037
|
+
]
|
|
13038
|
+
};
|
|
13039
|
+
const matchDayPatterns$1 = {
|
|
13020
13040
|
narrow: /^[smtwf]/i,
|
|
13021
13041
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
13022
13042
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
13023
13043
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
13024
13044
|
};
|
|
13025
|
-
|
|
13045
|
+
const parseDayPatterns$1 = {
|
|
13026
13046
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
13027
13047
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
13028
13048
|
};
|
|
13029
|
-
|
|
13049
|
+
const matchDayPeriodPatterns$1 = {
|
|
13030
13050
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
13031
13051
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
13032
13052
|
};
|
|
13033
|
-
|
|
13053
|
+
const parseDayPeriodPatterns$1 = {
|
|
13034
13054
|
any: {
|
|
13035
13055
|
am: /^a/i,
|
|
13036
13056
|
pm: /^p/i,
|
|
@@ -13042,13 +13062,11 @@
|
|
|
13042
13062
|
night: /night/i
|
|
13043
13063
|
}
|
|
13044
13064
|
};
|
|
13045
|
-
|
|
13065
|
+
const match$1 = {
|
|
13046
13066
|
ordinalNumber: buildMatchPatternFn({
|
|
13047
13067
|
matchPattern: matchOrdinalNumberPattern$1,
|
|
13048
13068
|
parsePattern: parseOrdinalNumberPattern$1,
|
|
13049
|
-
valueCallback:
|
|
13050
|
-
return parseInt(value, 10);
|
|
13051
|
-
}
|
|
13069
|
+
valueCallback: (value) => parseInt(value, 10)
|
|
13052
13070
|
}),
|
|
13053
13071
|
era: buildMatchFn({
|
|
13054
13072
|
matchPatterns: matchEraPatterns$1,
|
|
@@ -13061,9 +13079,7 @@
|
|
|
13061
13079
|
defaultMatchWidth: "wide",
|
|
13062
13080
|
parsePatterns: parseQuarterPatterns$1,
|
|
13063
13081
|
defaultParseWidth: "any",
|
|
13064
|
-
valueCallback:
|
|
13065
|
-
return index + 1;
|
|
13066
|
-
}
|
|
13082
|
+
valueCallback: (index) => index + 1
|
|
13067
13083
|
}),
|
|
13068
13084
|
month: buildMatchFn({
|
|
13069
13085
|
matchPatterns: matchMonthPatterns$1,
|
|
@@ -13084,32 +13100,56 @@
|
|
|
13084
13100
|
defaultParseWidth: "any"
|
|
13085
13101
|
})
|
|
13086
13102
|
};
|
|
13087
|
-
const
|
|
13088
|
-
|
|
13103
|
+
const dateFormats$1 = {
|
|
13104
|
+
full: "EEEE, MMMM do, y",
|
|
13105
|
+
long: "MMMM do, y",
|
|
13106
|
+
medium: "MMM d, y",
|
|
13107
|
+
short: "MM/dd/yyyy"
|
|
13108
|
+
};
|
|
13109
|
+
const timeFormats$1 = {
|
|
13110
|
+
full: "h:mm:ss a zzzz",
|
|
13111
|
+
long: "h:mm:ss a z",
|
|
13112
|
+
medium: "h:mm:ss a",
|
|
13113
|
+
short: "h:mm a"
|
|
13114
|
+
};
|
|
13115
|
+
const dateTimeFormats$1 = {
|
|
13116
|
+
full: "{{date}} 'at' {{time}}",
|
|
13117
|
+
long: "{{date}} 'at' {{time}}",
|
|
13118
|
+
medium: "{{date}}, {{time}}",
|
|
13119
|
+
short: "{{date}}, {{time}}"
|
|
13120
|
+
};
|
|
13121
|
+
const formatLong$1 = {
|
|
13122
|
+
date: buildFormatLongFn({
|
|
13123
|
+
formats: dateFormats$1,
|
|
13124
|
+
defaultWidth: "full"
|
|
13125
|
+
}),
|
|
13126
|
+
time: buildFormatLongFn({
|
|
13127
|
+
formats: timeFormats$1,
|
|
13128
|
+
defaultWidth: "full"
|
|
13129
|
+
}),
|
|
13130
|
+
dateTime: buildFormatLongFn({
|
|
13131
|
+
formats: dateTimeFormats$1,
|
|
13132
|
+
defaultWidth: "full"
|
|
13133
|
+
})
|
|
13134
|
+
};
|
|
13135
|
+
const enUS = {
|
|
13089
13136
|
code: "en-US",
|
|
13090
|
-
formatDistance: formatDistance$
|
|
13091
|
-
formatLong: formatLong$
|
|
13092
|
-
formatRelative: formatRelative$
|
|
13093
|
-
localize: localize$
|
|
13094
|
-
match: match$
|
|
13137
|
+
formatDistance: formatDistance$1,
|
|
13138
|
+
formatLong: formatLong$1,
|
|
13139
|
+
formatRelative: formatRelative$1,
|
|
13140
|
+
localize: localize$1,
|
|
13141
|
+
match: match$1,
|
|
13095
13142
|
options: {
|
|
13096
13143
|
weekStartsOn: 0,
|
|
13097
13144
|
firstWeekContainsDate: 1
|
|
13098
13145
|
}
|
|
13099
13146
|
};
|
|
13100
|
-
const enUS = locale$1;
|
|
13101
|
-
function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) {
|
|
13102
|
-
requiredArgs(2, arguments);
|
|
13103
|
-
var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options);
|
|
13104
|
-
var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options);
|
|
13105
|
-
return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
|
|
13106
|
-
}
|
|
13107
13147
|
function declension(scheme, count) {
|
|
13108
13148
|
if (scheme.one !== void 0 && count === 1) {
|
|
13109
13149
|
return scheme.one;
|
|
13110
13150
|
}
|
|
13111
|
-
|
|
13112
|
-
|
|
13151
|
+
const rem10 = count % 10;
|
|
13152
|
+
const rem100 = count % 100;
|
|
13113
13153
|
if (rem10 === 1 && rem100 !== 11) {
|
|
13114
13154
|
return scheme.singularNominative.replace("{{count}}", String(count));
|
|
13115
13155
|
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
|
@@ -13119,8 +13159,8 @@
|
|
|
13119
13159
|
}
|
|
13120
13160
|
}
|
|
13121
13161
|
function buildLocalizeTokenFn(scheme) {
|
|
13122
|
-
return
|
|
13123
|
-
if (options
|
|
13162
|
+
return (count, options) => {
|
|
13163
|
+
if (options == null ? void 0 : options.addSuffix) {
|
|
13124
13164
|
if (options.comparison && options.comparison > 0) {
|
|
13125
13165
|
if (scheme.future) {
|
|
13126
13166
|
return declension(scheme.future, count);
|
|
@@ -13139,7 +13179,7 @@
|
|
|
13139
13179
|
}
|
|
13140
13180
|
};
|
|
13141
13181
|
}
|
|
13142
|
-
|
|
13182
|
+
const formatDistanceLocale = {
|
|
13143
13183
|
lessThanXSeconds: buildLocalizeTokenFn({
|
|
13144
13184
|
regular: {
|
|
13145
13185
|
one: "меньше секунды",
|
|
@@ -13171,8 +13211,8 @@
|
|
|
13171
13211
|
pluralGenitive: "через {{count}} секунд"
|
|
13172
13212
|
}
|
|
13173
13213
|
}),
|
|
13174
|
-
halfAMinute:
|
|
13175
|
-
if (options
|
|
13214
|
+
halfAMinute: (_count, options) => {
|
|
13215
|
+
if (options == null ? void 0 : options.addSuffix) {
|
|
13176
13216
|
if (options.comparison && options.comparison > 0) {
|
|
13177
13217
|
return "через полминуты";
|
|
13178
13218
|
} else {
|
|
@@ -13320,26 +13360,25 @@
|
|
|
13320
13360
|
}
|
|
13321
13361
|
})
|
|
13322
13362
|
};
|
|
13323
|
-
|
|
13363
|
+
const formatDistance = (token, count, options) => {
|
|
13324
13364
|
return formatDistanceLocale[token](count, options);
|
|
13325
13365
|
};
|
|
13326
|
-
const
|
|
13327
|
-
var dateFormats = {
|
|
13366
|
+
const dateFormats = {
|
|
13328
13367
|
full: "EEEE, d MMMM y 'г.'",
|
|
13329
13368
|
long: "d MMMM y 'г.'",
|
|
13330
13369
|
medium: "d MMM y 'г.'",
|
|
13331
13370
|
short: "dd.MM.y"
|
|
13332
13371
|
};
|
|
13333
|
-
|
|
13372
|
+
const timeFormats = {
|
|
13334
13373
|
full: "H:mm:ss zzzz",
|
|
13335
13374
|
long: "H:mm:ss z",
|
|
13336
13375
|
medium: "H:mm:ss",
|
|
13337
13376
|
short: "H:mm"
|
|
13338
13377
|
};
|
|
13339
|
-
|
|
13378
|
+
const dateTimeFormats = {
|
|
13340
13379
|
any: "{{date}}, {{time}}"
|
|
13341
13380
|
};
|
|
13342
|
-
|
|
13381
|
+
const formatLong = {
|
|
13343
13382
|
date: buildFormatLongFn({
|
|
13344
13383
|
formats: dateFormats,
|
|
13345
13384
|
defaultWidth: "full"
|
|
@@ -13353,10 +13392,17 @@
|
|
|
13353
13392
|
defaultWidth: "any"
|
|
13354
13393
|
})
|
|
13355
13394
|
};
|
|
13356
|
-
const
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13395
|
+
const accusativeWeekdays = [
|
|
13396
|
+
"воскресенье",
|
|
13397
|
+
"понедельник",
|
|
13398
|
+
"вторник",
|
|
13399
|
+
"среду",
|
|
13400
|
+
"четверг",
|
|
13401
|
+
"пятницу",
|
|
13402
|
+
"субботу"
|
|
13403
|
+
];
|
|
13404
|
+
function lastWeek(day) {
|
|
13405
|
+
const weekday = accusativeWeekdays[day];
|
|
13360
13406
|
switch (day) {
|
|
13361
13407
|
case 0:
|
|
13362
13408
|
return "'в прошлое " + weekday + " в' p";
|
|
@@ -13371,15 +13417,15 @@
|
|
|
13371
13417
|
}
|
|
13372
13418
|
}
|
|
13373
13419
|
function thisWeek(day) {
|
|
13374
|
-
|
|
13420
|
+
const weekday = accusativeWeekdays[day];
|
|
13375
13421
|
if (day === 2) {
|
|
13376
13422
|
return "'во " + weekday + " в' p";
|
|
13377
13423
|
} else {
|
|
13378
13424
|
return "'в " + weekday + " в' p";
|
|
13379
13425
|
}
|
|
13380
13426
|
}
|
|
13381
|
-
function
|
|
13382
|
-
|
|
13427
|
+
function nextWeek(day) {
|
|
13428
|
+
const weekday = accusativeWeekdays[day];
|
|
13383
13429
|
switch (day) {
|
|
13384
13430
|
case 0:
|
|
13385
13431
|
return "'в следующее " + weekday + " в' p";
|
|
@@ -13393,63 +13439,122 @@
|
|
|
13393
13439
|
return "'в следующую " + weekday + " в' p";
|
|
13394
13440
|
}
|
|
13395
13441
|
}
|
|
13396
|
-
|
|
13397
|
-
lastWeek:
|
|
13398
|
-
|
|
13399
|
-
if (
|
|
13442
|
+
const formatRelativeLocale = {
|
|
13443
|
+
lastWeek: (date, baseDate, options) => {
|
|
13444
|
+
const day = date.getDay();
|
|
13445
|
+
if (isSameWeek(date, baseDate, options)) {
|
|
13400
13446
|
return thisWeek(day);
|
|
13401
13447
|
} else {
|
|
13402
|
-
return
|
|
13448
|
+
return lastWeek(day);
|
|
13403
13449
|
}
|
|
13404
13450
|
},
|
|
13405
13451
|
yesterday: "'вчера в' p",
|
|
13406
13452
|
today: "'сегодня в' p",
|
|
13407
13453
|
tomorrow: "'завтра в' p",
|
|
13408
|
-
nextWeek:
|
|
13409
|
-
|
|
13410
|
-
if (
|
|
13454
|
+
nextWeek: (date, baseDate, options) => {
|
|
13455
|
+
const day = date.getDay();
|
|
13456
|
+
if (isSameWeek(date, baseDate, options)) {
|
|
13411
13457
|
return thisWeek(day);
|
|
13412
13458
|
} else {
|
|
13413
|
-
return
|
|
13459
|
+
return nextWeek(day);
|
|
13414
13460
|
}
|
|
13415
13461
|
},
|
|
13416
13462
|
other: "P"
|
|
13417
13463
|
};
|
|
13418
|
-
|
|
13419
|
-
|
|
13464
|
+
const formatRelative = (token, date, baseDate, options) => {
|
|
13465
|
+
const format = formatRelativeLocale[token];
|
|
13420
13466
|
if (typeof format === "function") {
|
|
13421
13467
|
return format(date, baseDate, options);
|
|
13422
13468
|
}
|
|
13423
13469
|
return format;
|
|
13424
13470
|
};
|
|
13425
|
-
const
|
|
13426
|
-
var eraValues = {
|
|
13471
|
+
const eraValues = {
|
|
13427
13472
|
narrow: ["до н.э.", "н.э."],
|
|
13428
13473
|
abbreviated: ["до н. э.", "н. э."],
|
|
13429
13474
|
wide: ["до нашей эры", "нашей эры"]
|
|
13430
13475
|
};
|
|
13431
|
-
|
|
13476
|
+
const quarterValues = {
|
|
13432
13477
|
narrow: ["1", "2", "3", "4"],
|
|
13433
13478
|
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
13434
13479
|
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
13435
13480
|
};
|
|
13436
|
-
|
|
13481
|
+
const monthValues = {
|
|
13437
13482
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
13438
|
-
abbreviated: [
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13483
|
+
abbreviated: [
|
|
13484
|
+
"янв.",
|
|
13485
|
+
"фев.",
|
|
13486
|
+
"март",
|
|
13487
|
+
"апр.",
|
|
13488
|
+
"май",
|
|
13489
|
+
"июнь",
|
|
13490
|
+
"июль",
|
|
13491
|
+
"авг.",
|
|
13492
|
+
"сент.",
|
|
13493
|
+
"окт.",
|
|
13494
|
+
"нояб.",
|
|
13495
|
+
"дек."
|
|
13496
|
+
],
|
|
13497
|
+
wide: [
|
|
13498
|
+
"январь",
|
|
13499
|
+
"февраль",
|
|
13500
|
+
"март",
|
|
13501
|
+
"апрель",
|
|
13502
|
+
"май",
|
|
13503
|
+
"июнь",
|
|
13504
|
+
"июль",
|
|
13505
|
+
"август",
|
|
13506
|
+
"сентябрь",
|
|
13507
|
+
"октябрь",
|
|
13508
|
+
"ноябрь",
|
|
13509
|
+
"декабрь"
|
|
13510
|
+
]
|
|
13511
|
+
};
|
|
13512
|
+
const formattingMonthValues = {
|
|
13442
13513
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
13443
|
-
abbreviated: [
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13514
|
+
abbreviated: [
|
|
13515
|
+
"янв.",
|
|
13516
|
+
"фев.",
|
|
13517
|
+
"мар.",
|
|
13518
|
+
"апр.",
|
|
13519
|
+
"мая",
|
|
13520
|
+
"июн.",
|
|
13521
|
+
"июл.",
|
|
13522
|
+
"авг.",
|
|
13523
|
+
"сент.",
|
|
13524
|
+
"окт.",
|
|
13525
|
+
"нояб.",
|
|
13526
|
+
"дек."
|
|
13527
|
+
],
|
|
13528
|
+
wide: [
|
|
13529
|
+
"января",
|
|
13530
|
+
"февраля",
|
|
13531
|
+
"марта",
|
|
13532
|
+
"апреля",
|
|
13533
|
+
"мая",
|
|
13534
|
+
"июня",
|
|
13535
|
+
"июля",
|
|
13536
|
+
"августа",
|
|
13537
|
+
"сентября",
|
|
13538
|
+
"октября",
|
|
13539
|
+
"ноября",
|
|
13540
|
+
"декабря"
|
|
13541
|
+
]
|
|
13542
|
+
};
|
|
13543
|
+
const dayValues = {
|
|
13447
13544
|
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
13448
13545
|
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
13449
13546
|
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
13450
|
-
wide: [
|
|
13451
|
-
|
|
13452
|
-
|
|
13547
|
+
wide: [
|
|
13548
|
+
"воскресенье",
|
|
13549
|
+
"понедельник",
|
|
13550
|
+
"вторник",
|
|
13551
|
+
"среда",
|
|
13552
|
+
"четверг",
|
|
13553
|
+
"пятница",
|
|
13554
|
+
"суббота"
|
|
13555
|
+
]
|
|
13556
|
+
};
|
|
13557
|
+
const dayPeriodValues = {
|
|
13453
13558
|
narrow: {
|
|
13454
13559
|
am: "ДП",
|
|
13455
13560
|
pm: "ПП",
|
|
@@ -13481,7 +13586,7 @@
|
|
|
13481
13586
|
night: "ночь"
|
|
13482
13587
|
}
|
|
13483
13588
|
};
|
|
13484
|
-
|
|
13589
|
+
const formattingDayPeriodValues = {
|
|
13485
13590
|
narrow: {
|
|
13486
13591
|
am: "ДП",
|
|
13487
13592
|
pm: "ПП",
|
|
@@ -13513,10 +13618,10 @@
|
|
|
13513
13618
|
night: "ночи"
|
|
13514
13619
|
}
|
|
13515
13620
|
};
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13621
|
+
const ordinalNumber = (dirtyNumber, options) => {
|
|
13622
|
+
const number = Number(dirtyNumber);
|
|
13623
|
+
const unit = options == null ? void 0 : options.unit;
|
|
13624
|
+
let suffix;
|
|
13520
13625
|
if (unit === "date") {
|
|
13521
13626
|
suffix = "-е";
|
|
13522
13627
|
} else if (unit === "week" || unit === "minute" || unit === "second") {
|
|
@@ -13526,7 +13631,7 @@
|
|
|
13526
13631
|
}
|
|
13527
13632
|
return number + suffix;
|
|
13528
13633
|
};
|
|
13529
|
-
|
|
13634
|
+
const localize = {
|
|
13530
13635
|
ordinalNumber,
|
|
13531
13636
|
era: buildLocalizeFn({
|
|
13532
13637
|
values: eraValues,
|
|
@@ -13535,9 +13640,7 @@
|
|
|
13535
13640
|
quarter: buildLocalizeFn({
|
|
13536
13641
|
values: quarterValues,
|
|
13537
13642
|
defaultWidth: "wide",
|
|
13538
|
-
argumentCallback:
|
|
13539
|
-
return quarter - 1;
|
|
13540
|
-
}
|
|
13643
|
+
argumentCallback: (quarter) => quarter - 1
|
|
13541
13644
|
}),
|
|
13542
13645
|
month: buildLocalizeFn({
|
|
13543
13646
|
values: monthValues,
|
|
@@ -13556,50 +13659,75 @@
|
|
|
13556
13659
|
defaultFormattingWidth: "wide"
|
|
13557
13660
|
})
|
|
13558
13661
|
};
|
|
13559
|
-
const
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
var matchEraPatterns = {
|
|
13662
|
+
const matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i;
|
|
13663
|
+
const parseOrdinalNumberPattern = /\d+/i;
|
|
13664
|
+
const matchEraPatterns = {
|
|
13563
13665
|
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
13564
13666
|
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
13565
13667
|
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
13566
13668
|
};
|
|
13567
|
-
|
|
13669
|
+
const parseEraPatterns = {
|
|
13568
13670
|
any: [/^д/i, /^н/i]
|
|
13569
13671
|
};
|
|
13570
|
-
|
|
13672
|
+
const matchQuarterPatterns = {
|
|
13571
13673
|
narrow: /^[1234]/i,
|
|
13572
13674
|
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
13573
13675
|
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
13574
13676
|
};
|
|
13575
|
-
|
|
13677
|
+
const parseQuarterPatterns = {
|
|
13576
13678
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13577
13679
|
};
|
|
13578
|
-
|
|
13680
|
+
const matchMonthPatterns = {
|
|
13579
13681
|
narrow: /^[яфмаисонд]/i,
|
|
13580
13682
|
abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
13581
13683
|
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
|
|
13582
13684
|
};
|
|
13583
|
-
|
|
13584
|
-
narrow: [
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13685
|
+
const parseMonthPatterns = {
|
|
13686
|
+
narrow: [
|
|
13687
|
+
/^я/i,
|
|
13688
|
+
/^ф/i,
|
|
13689
|
+
/^м/i,
|
|
13690
|
+
/^а/i,
|
|
13691
|
+
/^м/i,
|
|
13692
|
+
/^и/i,
|
|
13693
|
+
/^и/i,
|
|
13694
|
+
/^а/i,
|
|
13695
|
+
/^с/i,
|
|
13696
|
+
/^о/i,
|
|
13697
|
+
/^н/i,
|
|
13698
|
+
/^я/i
|
|
13699
|
+
],
|
|
13700
|
+
any: [
|
|
13701
|
+
/^я/i,
|
|
13702
|
+
/^ф/i,
|
|
13703
|
+
/^мар/i,
|
|
13704
|
+
/^ап/i,
|
|
13705
|
+
/^ма[йя]/i,
|
|
13706
|
+
/^июн/i,
|
|
13707
|
+
/^июл/i,
|
|
13708
|
+
/^ав/i,
|
|
13709
|
+
/^с/i,
|
|
13710
|
+
/^о/i,
|
|
13711
|
+
/^н/i,
|
|
13712
|
+
/^д/i
|
|
13713
|
+
]
|
|
13714
|
+
};
|
|
13715
|
+
const matchDayPatterns = {
|
|
13588
13716
|
narrow: /^[впсч]/i,
|
|
13589
13717
|
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
13590
13718
|
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
13591
13719
|
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
13592
13720
|
};
|
|
13593
|
-
|
|
13721
|
+
const parseDayPatterns = {
|
|
13594
13722
|
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
13595
13723
|
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
13596
13724
|
};
|
|
13597
|
-
|
|
13725
|
+
const matchDayPeriodPatterns = {
|
|
13598
13726
|
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
13599
13727
|
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
13600
13728
|
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
13601
13729
|
};
|
|
13602
|
-
|
|
13730
|
+
const parseDayPeriodPatterns = {
|
|
13603
13731
|
any: {
|
|
13604
13732
|
am: /^дп/i,
|
|
13605
13733
|
pm: /^пп/i,
|
|
@@ -13611,13 +13739,11 @@
|
|
|
13611
13739
|
night: /^н/i
|
|
13612
13740
|
}
|
|
13613
13741
|
};
|
|
13614
|
-
|
|
13742
|
+
const match = {
|
|
13615
13743
|
ordinalNumber: buildMatchPatternFn({
|
|
13616
13744
|
matchPattern: matchOrdinalNumberPattern,
|
|
13617
13745
|
parsePattern: parseOrdinalNumberPattern,
|
|
13618
|
-
valueCallback:
|
|
13619
|
-
return parseInt(value, 10);
|
|
13620
|
-
}
|
|
13746
|
+
valueCallback: (value) => parseInt(value, 10)
|
|
13621
13747
|
}),
|
|
13622
13748
|
era: buildMatchFn({
|
|
13623
13749
|
matchPatterns: matchEraPatterns,
|
|
@@ -13630,9 +13756,7 @@
|
|
|
13630
13756
|
defaultMatchWidth: "wide",
|
|
13631
13757
|
parsePatterns: parseQuarterPatterns,
|
|
13632
13758
|
defaultParseWidth: "any",
|
|
13633
|
-
valueCallback:
|
|
13634
|
-
return index + 1;
|
|
13635
|
-
}
|
|
13759
|
+
valueCallback: (index) => index + 1
|
|
13636
13760
|
}),
|
|
13637
13761
|
month: buildMatchFn({
|
|
13638
13762
|
matchPatterns: matchMonthPatterns,
|
|
@@ -13653,20 +13777,18 @@
|
|
|
13653
13777
|
defaultParseWidth: "any"
|
|
13654
13778
|
})
|
|
13655
13779
|
};
|
|
13656
|
-
const
|
|
13657
|
-
var locale = {
|
|
13780
|
+
const ru = {
|
|
13658
13781
|
code: "ru",
|
|
13659
|
-
formatDistance
|
|
13660
|
-
formatLong
|
|
13661
|
-
formatRelative
|
|
13662
|
-
localize
|
|
13663
|
-
match
|
|
13782
|
+
formatDistance,
|
|
13783
|
+
formatLong,
|
|
13784
|
+
formatRelative,
|
|
13785
|
+
localize,
|
|
13786
|
+
match,
|
|
13664
13787
|
options: {
|
|
13665
13788
|
weekStartsOn: 1,
|
|
13666
13789
|
firstWeekContainsDate: 1
|
|
13667
13790
|
}
|
|
13668
13791
|
};
|
|
13669
|
-
const ru = locale;
|
|
13670
13792
|
var getDateFormatter = function(dateFormat) {
|
|
13671
13793
|
return function(date) {
|
|
13672
13794
|
return trueReactPlatformHelpers.isNotEmpty(date) ? dateFns.format(date, dateFormat) : "";
|
|
@@ -13681,14 +13803,14 @@
|
|
|
13681
13803
|
var areDatesEquals = function(date1, date2) {
|
|
13682
13804
|
return trueReactPlatformHelpers.isEmpty(date1) && trueReactPlatformHelpers.isEmpty(date2) || trueReactPlatformHelpers.isNotEmpty(date1) && trueReactPlatformHelpers.isNotEmpty(date2) && dateFns.isSameDay(date1, date2);
|
|
13683
13805
|
};
|
|
13684
|
-
var preparateDatePickerLocale = function(
|
|
13685
|
-
if (
|
|
13806
|
+
var preparateDatePickerLocale = function(locale) {
|
|
13807
|
+
if (locale === "ru") {
|
|
13686
13808
|
return ru;
|
|
13687
13809
|
}
|
|
13688
|
-
if (
|
|
13810
|
+
if (locale === "en") {
|
|
13689
13811
|
return enUS;
|
|
13690
13812
|
}
|
|
13691
|
-
return
|
|
13813
|
+
return locale;
|
|
13692
13814
|
};
|
|
13693
13815
|
var useStyles$B = createThemedStyles("DatePicker", {
|
|
13694
13816
|
root: {
|
|
@@ -13696,6 +13818,7 @@
|
|
|
13696
13818
|
height: "100%"
|
|
13697
13819
|
},
|
|
13698
13820
|
day: {},
|
|
13821
|
+
dayInner: {},
|
|
13699
13822
|
datepicker: {},
|
|
13700
13823
|
popper: {
|
|
13701
13824
|
zIndex: 10,
|
|
@@ -13856,7 +13979,7 @@
|
|
|
13856
13979
|
return _array_like_to_array$h(o, minLen);
|
|
13857
13980
|
}
|
|
13858
13981
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13859
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate,
|
|
13982
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$c(_param, [
|
|
13860
13983
|
"data",
|
|
13861
13984
|
"selectedDate",
|
|
13862
13985
|
"minDate",
|
|
@@ -13875,7 +13998,6 @@
|
|
|
13875
13998
|
"isClearable",
|
|
13876
13999
|
"strictParsing",
|
|
13877
14000
|
"fixedHeight",
|
|
13878
|
-
"excludeScrollbar",
|
|
13879
14001
|
"focusSelectedMonth",
|
|
13880
14002
|
"disabledKeyboardNavigation",
|
|
13881
14003
|
"shouldRenderPopperInBody",
|
|
@@ -14032,14 +14154,13 @@
|
|
|
14032
14154
|
ref,
|
|
14033
14155
|
minDate,
|
|
14034
14156
|
maxDate,
|
|
14035
|
-
locale: preparateDatePickerLocale(
|
|
14157
|
+
locale: preparateDatePickerLocale(locale),
|
|
14036
14158
|
dateFormat,
|
|
14037
14159
|
placeholderText: placeholder,
|
|
14038
14160
|
calendarStartDay,
|
|
14039
14161
|
inline: isInline,
|
|
14040
14162
|
disabled: isDisabled,
|
|
14041
14163
|
fixedHeight,
|
|
14042
|
-
excludeScrollbar,
|
|
14043
14164
|
showPreviousMonths,
|
|
14044
14165
|
focusSelectedMonth,
|
|
14045
14166
|
monthsShown,
|
|
@@ -14054,12 +14175,17 @@
|
|
|
14054
14175
|
popperContainer: shouldRenderPopperInBody ? PopperContainer : void 0,
|
|
14055
14176
|
popperModifiers,
|
|
14056
14177
|
popperPlacement,
|
|
14057
|
-
selectsRange: isRange,
|
|
14058
14178
|
strictParsing,
|
|
14059
14179
|
preventOpenOnFocus,
|
|
14060
14180
|
shouldCloseOnSelect,
|
|
14061
14181
|
customInputRef,
|
|
14062
14182
|
customInput: /* @__PURE__ */ jsx(CustomInput, _object_spread$H({}, dateInputProps)),
|
|
14183
|
+
renderDayContents: function(day) {
|
|
14184
|
+
return /* @__PURE__ */ jsx("div", {
|
|
14185
|
+
className: classes.dayInner,
|
|
14186
|
+
children: day
|
|
14187
|
+
});
|
|
14188
|
+
},
|
|
14063
14189
|
renderCustomHeader: renderCustomHeader !== null && renderCustomHeader !== void 0 ? renderCustomHeader : function(baseProps) {
|
|
14064
14190
|
return /* @__PURE__ */ jsx(DatePickerHeader, _object_spread_props$C(_object_spread$H({}, baseProps), {
|
|
14065
14191
|
months
|
|
@@ -14089,6 +14215,7 @@
|
|
|
14089
14215
|
startDate: start2,
|
|
14090
14216
|
endDate: end2,
|
|
14091
14217
|
selected: start2,
|
|
14218
|
+
selectsRange: true,
|
|
14092
14219
|
onBlur: handleDateRangeInputBlur,
|
|
14093
14220
|
onChange: handleChangeRange
|
|
14094
14221
|
} : {
|
|
@@ -17068,15 +17195,15 @@
|
|
|
17068
17195
|
return target;
|
|
17069
17196
|
}
|
|
17070
17197
|
var FilterInterval = function(param) {
|
|
17071
|
-
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey,
|
|
17198
|
+
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, labelName = param.labelName, withFieldNameInLabel = param.withFieldNameInLabel, localeKey = param.localeKey, locale = param.locale, canBeFloat = param.canBeFloat, onChange = param.onChange, fromInput = param.fromInput, toInput = param.toInput, testId = param.testId;
|
|
17072
17199
|
var classes = useStyles$t({
|
|
17073
17200
|
theme: tweakStyles
|
|
17074
17201
|
});
|
|
17075
17202
|
var translates = React.useMemo(function() {
|
|
17076
|
-
return getLocale$1(localeKey,
|
|
17203
|
+
return getLocale$1(localeKey, locale);
|
|
17077
17204
|
}, [
|
|
17078
17205
|
localeKey,
|
|
17079
|
-
|
|
17206
|
+
locale
|
|
17080
17207
|
]);
|
|
17081
17208
|
var handleClear = function() {
|
|
17082
17209
|
onChange(void 0);
|
|
@@ -17614,7 +17741,7 @@
|
|
|
17614
17741
|
}
|
|
17615
17742
|
}
|
|
17616
17743
|
function MultiSelectList(param) {
|
|
17617
|
-
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale,
|
|
17744
|
+
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
17618
17745
|
var isMounted = useIsMounted();
|
|
17619
17746
|
var classes = useStyles$s({
|
|
17620
17747
|
theme: tweakStyles
|
|
@@ -17647,10 +17774,10 @@
|
|
|
17647
17774
|
var observer = React.useRef();
|
|
17648
17775
|
var chosenValues = value === null || value === void 0 ? void 0 : value.include;
|
|
17649
17776
|
var translates = React.useMemo(function() {
|
|
17650
|
-
return getLocale(localeKey,
|
|
17777
|
+
return getLocale(localeKey, locale);
|
|
17651
17778
|
}, [
|
|
17652
17779
|
localeKey,
|
|
17653
|
-
|
|
17780
|
+
locale
|
|
17654
17781
|
]);
|
|
17655
17782
|
var chosenValuesIds = React.useMemo(function() {
|
|
17656
17783
|
return chosenValues === null || chosenValues === void 0 ? void 0 : chosenValues.map(getValueId);
|
|
@@ -18550,7 +18677,7 @@
|
|
|
18550
18677
|
}
|
|
18551
18678
|
}
|
|
18552
18679
|
function FilterSelect(param) {
|
|
18553
|
-
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey,
|
|
18680
|
+
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale = param.locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId;
|
|
18554
18681
|
var classes = useStyles$r({
|
|
18555
18682
|
theme: tweakStyles
|
|
18556
18683
|
});
|
|
@@ -18568,10 +18695,10 @@
|
|
|
18568
18695
|
});
|
|
18569
18696
|
var isMounted = useIsMounted();
|
|
18570
18697
|
var translates = React.useMemo(function() {
|
|
18571
|
-
return getSelectLocale(localeKey,
|
|
18698
|
+
return getSelectLocale(localeKey, locale);
|
|
18572
18699
|
}, [
|
|
18573
18700
|
localeKey,
|
|
18574
|
-
|
|
18701
|
+
locale
|
|
18575
18702
|
]);
|
|
18576
18703
|
var observer = React.useRef();
|
|
18577
18704
|
var _useState = _sliced_to_array$b(React.useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1];
|
|
@@ -19124,7 +19251,7 @@
|
|
|
19124
19251
|
return _array_like_to_array$a(o, minLen);
|
|
19125
19252
|
}
|
|
19126
19253
|
var FilterWithDates = function(param) {
|
|
19127
|
-
var value = param.value, onChange = param.onChange, localeKey = param.localeKey,
|
|
19254
|
+
var value = param.value, onChange = param.onChange, localeKey = param.localeKey, locale = param.locale, onStartBtnSubmit = param.onStartBtnSubmit, onEndBtnSubmit = param.onEndBtnSubmit, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId, _param_startPickerProps = param.startPickerProps, startPickerProps = _param_startPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_startPickerProps, _param_endPickerProps = param.endPickerProps, endPickerProps = _param_endPickerProps === void 0 ? DEFAULT_PICKER_PROPS : _param_endPickerProps, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable;
|
|
19128
19255
|
var classes = useStyles$q({
|
|
19129
19256
|
theme: tweakStyles
|
|
19130
19257
|
});
|
|
@@ -19158,27 +19285,27 @@
|
|
|
19158
19285
|
var ref = React.useRef(null);
|
|
19159
19286
|
var dateLocale = localeKey === "ru" ? ru : enUS;
|
|
19160
19287
|
var translates = React.useMemo(function() {
|
|
19161
|
-
return getLocale$1(localeKey,
|
|
19288
|
+
return getLocale$1(localeKey, locale);
|
|
19162
19289
|
}, [
|
|
19163
19290
|
localeKey,
|
|
19164
|
-
|
|
19291
|
+
locale
|
|
19165
19292
|
]);
|
|
19166
19293
|
var handleClear = function() {
|
|
19167
19294
|
onEndBtnSubmit();
|
|
19168
19295
|
};
|
|
19169
19296
|
var isOpenCalendar = isOpenFrom || isOpenTo;
|
|
19170
19297
|
var handleFromSelected = function(val) {
|
|
19171
|
-
var
|
|
19298
|
+
var _value_to2;
|
|
19172
19299
|
onChange({
|
|
19173
19300
|
from: val,
|
|
19174
|
-
to: (
|
|
19301
|
+
to: (_value_to2 = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to2 !== void 0 ? _value_to2 : null
|
|
19175
19302
|
});
|
|
19176
19303
|
setOpenFrom(false);
|
|
19177
19304
|
};
|
|
19178
19305
|
var handleToSelected = function(val) {
|
|
19179
|
-
var
|
|
19306
|
+
var _value_from2;
|
|
19180
19307
|
onChange({
|
|
19181
|
-
from: (
|
|
19308
|
+
from: (_value_from2 = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from2 !== void 0 ? _value_from2 : null,
|
|
19182
19309
|
to: val
|
|
19183
19310
|
});
|
|
19184
19311
|
setOpenTo(false);
|
|
@@ -19190,10 +19317,10 @@
|
|
|
19190
19317
|
to: val
|
|
19191
19318
|
});
|
|
19192
19319
|
} else {
|
|
19193
|
-
var
|
|
19320
|
+
var _value_to2;
|
|
19194
19321
|
onChange({
|
|
19195
19322
|
from: val,
|
|
19196
|
-
to: (
|
|
19323
|
+
to: (_value_to2 = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to2 !== void 0 ? _value_to2 : null
|
|
19197
19324
|
});
|
|
19198
19325
|
}
|
|
19199
19326
|
};
|
|
@@ -19204,14 +19331,14 @@
|
|
|
19204
19331
|
to: value.from
|
|
19205
19332
|
});
|
|
19206
19333
|
} else {
|
|
19207
|
-
var
|
|
19334
|
+
var _value_from2;
|
|
19208
19335
|
onChange({
|
|
19209
|
-
from: (
|
|
19336
|
+
from: (_value_from2 = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from2 !== void 0 ? _value_from2 : null,
|
|
19210
19337
|
to: val
|
|
19211
19338
|
});
|
|
19212
19339
|
}
|
|
19213
19340
|
};
|
|
19214
|
-
var _ref;
|
|
19341
|
+
var _value_to, _value_from, _ref;
|
|
19215
19342
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$s(_object_spread$t({
|
|
19216
19343
|
className: classes.root
|
|
19217
19344
|
}, addDataAttributes(data)), {
|
|
@@ -19223,7 +19350,7 @@
|
|
|
19223
19350
|
className: classes.containerItem,
|
|
19224
19351
|
children: /* @__PURE__ */ jsx(DatePicker, _object_spread$t({
|
|
19225
19352
|
selectedDate: value === null || value === void 0 ? void 0 : value.from,
|
|
19226
|
-
maxDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19353
|
+
maxDate: (_value_to = value === null || value === void 0 ? void 0 : value.to) !== null && _value_to !== void 0 ? _value_to : void 0,
|
|
19227
19354
|
label: translates.from,
|
|
19228
19355
|
months: translates.months,
|
|
19229
19356
|
locale: dateLocale,
|
|
@@ -19239,7 +19366,7 @@
|
|
|
19239
19366
|
selectedDate: value === null || value === void 0 ? void 0 : value.to,
|
|
19240
19367
|
label: translates.to,
|
|
19241
19368
|
months: translates.months,
|
|
19242
|
-
minDate: value === null || value === void 0 ? void 0 : value.from,
|
|
19369
|
+
minDate: (_value_from = value === null || value === void 0 ? void 0 : value.from) !== null && _value_from !== void 0 ? _value_from : void 0,
|
|
19243
19370
|
locale: dateLocale,
|
|
19244
19371
|
onChangeDate: handleChangeTo,
|
|
19245
19372
|
tweakStyles: tweakEndDatePickerStyles,
|
|
@@ -19425,15 +19552,15 @@
|
|
|
19425
19552
|
return _array_like_to_array$9(o, minLen);
|
|
19426
19553
|
}
|
|
19427
19554
|
var FilterWithPeriod = function(param) {
|
|
19428
|
-
var value = param.value, localeKey = param.localeKey,
|
|
19555
|
+
var value = param.value, localeKey = param.localeKey, locale = param.locale, onChange = param.onChange, onClose = param.onClose, periods = param.periods, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
19429
19556
|
var classes = useStyles$p({
|
|
19430
19557
|
theme: tweakStyles
|
|
19431
19558
|
});
|
|
19432
19559
|
var translates = React.useMemo(function() {
|
|
19433
|
-
return getLocale$1(localeKey,
|
|
19560
|
+
return getLocale$1(localeKey, locale);
|
|
19434
19561
|
}, [
|
|
19435
19562
|
localeKey,
|
|
19436
|
-
|
|
19563
|
+
locale
|
|
19437
19564
|
]);
|
|
19438
19565
|
var _useState = _sliced_to_array$9(React.useState((value === null || value === void 0 ? void 0 : value.periodType) !== "CUSTOM"), 2), isPeriodPickerShown = _useState[0], setIsPeriodPickerShown = _useState[1];
|
|
19439
19566
|
var _useState1 = _sliced_to_array$9(React.useState((value === null || value === void 0 ? void 0 : value.periodType) === "CUSTOM"), 2), isDatePickerShown = _useState1[0], setIsDatePickerShown = _useState1[1];
|
|
@@ -19646,14 +19773,14 @@
|
|
|
19646
19773
|
return target;
|
|
19647
19774
|
}
|
|
19648
19775
|
function Filter(props) {
|
|
19649
|
-
var filter = props.filter, value = props.value, onChange = props.onChange, onClose = props.onClose, localeKey = props.localeKey,
|
|
19776
|
+
var filter = props.filter, value = props.value, onChange = props.onChange, onClose = props.onClose, localeKey = props.localeKey, locale = props.locale, testId = props.testId;
|
|
19650
19777
|
var _filter_localeKey;
|
|
19651
19778
|
var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey;
|
|
19652
19779
|
var translates = React.useMemo(function() {
|
|
19653
|
-
return getLocale$1(translatesLocaleKey,
|
|
19780
|
+
return getLocale$1(translatesLocaleKey, locale, filter.locale);
|
|
19654
19781
|
}, [
|
|
19655
19782
|
translatesLocaleKey,
|
|
19656
|
-
|
|
19783
|
+
locale,
|
|
19657
19784
|
filter.locale
|
|
19658
19785
|
]);
|
|
19659
19786
|
if (filter.type === "select") {
|
|
@@ -19938,7 +20065,7 @@
|
|
|
19938
20065
|
return _array_like_to_array$8(o, minLen);
|
|
19939
20066
|
}
|
|
19940
20067
|
function FiltersPaneSearch(param) {
|
|
19941
|
-
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey,
|
|
20068
|
+
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
19942
20069
|
var classes = useStyles$o({
|
|
19943
20070
|
theme: tweakStyles
|
|
19944
20071
|
});
|
|
@@ -19958,10 +20085,10 @@
|
|
|
19958
20085
|
var _useState1 = _sliced_to_array$8(React.useState(false), 2), isOpen = _useState1[0], setIsOpen = _useState1[1];
|
|
19959
20086
|
var refRoot = React.useRef(null);
|
|
19960
20087
|
var translates = React.useMemo(function() {
|
|
19961
|
-
return getLocale$1(localeKey,
|
|
20088
|
+
return getLocale$1(localeKey, locale);
|
|
19962
20089
|
}, [
|
|
19963
20090
|
localeKey,
|
|
19964
|
-
|
|
20091
|
+
locale
|
|
19965
20092
|
]);
|
|
19966
20093
|
useOnClickOutside(refRoot, function() {
|
|
19967
20094
|
return setIsOpen(false);
|
|
@@ -20068,17 +20195,17 @@
|
|
|
20068
20195
|
}
|
|
20069
20196
|
}
|
|
20070
20197
|
function FilterValueView(param) {
|
|
20071
|
-
var value = param.value, filter = param.filter,
|
|
20198
|
+
var value = param.value, filter = param.filter, locale = param.locale, localeKey = param.localeKey, tweakStyles = param.tweakStyles;
|
|
20072
20199
|
var classes = useStyles$n({
|
|
20073
20200
|
theme: tweakStyles
|
|
20074
20201
|
});
|
|
20075
20202
|
var _filter_localeKey;
|
|
20076
20203
|
var translatesLocaleKey = (_filter_localeKey = filter.localeKey) !== null && _filter_localeKey !== void 0 ? _filter_localeKey : localeKey;
|
|
20077
20204
|
var translates = React.useMemo(function() {
|
|
20078
|
-
return getLocale$1(translatesLocaleKey,
|
|
20205
|
+
return getLocale$1(translatesLocaleKey, locale, filter.locale);
|
|
20079
20206
|
}, [
|
|
20080
20207
|
translatesLocaleKey,
|
|
20081
|
-
|
|
20208
|
+
locale,
|
|
20082
20209
|
filter.locale
|
|
20083
20210
|
]);
|
|
20084
20211
|
if (trueReactPlatformHelpers.isEmpty(value)) {
|
|
@@ -20380,7 +20507,7 @@
|
|
|
20380
20507
|
return target;
|
|
20381
20508
|
}
|
|
20382
20509
|
function FilterWrapper(param) {
|
|
20383
|
-
var filter = param.filter, value = param.value, isDisabled = param.isDisabled,
|
|
20510
|
+
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
20384
20511
|
var classes = useStyles$m({
|
|
20385
20512
|
theme: tweakStyles
|
|
20386
20513
|
});
|
|
@@ -20399,7 +20526,7 @@
|
|
|
20399
20526
|
value,
|
|
20400
20527
|
filter,
|
|
20401
20528
|
localeKey,
|
|
20402
|
-
locale
|
|
20529
|
+
locale,
|
|
20403
20530
|
onChange,
|
|
20404
20531
|
testId
|
|
20405
20532
|
});
|
|
@@ -20441,7 +20568,7 @@
|
|
|
20441
20568
|
children: /* @__PURE__ */ jsx(FilterValueView, {
|
|
20442
20569
|
value,
|
|
20443
20570
|
filter,
|
|
20444
|
-
locale
|
|
20571
|
+
locale,
|
|
20445
20572
|
localeKey,
|
|
20446
20573
|
testId: trueReactPlatformHelpers.getTestId(testId, "value"),
|
|
20447
20574
|
tweakStyles: tweakFilterValueViewStyles
|
|
@@ -20469,7 +20596,7 @@
|
|
|
20469
20596
|
return /* @__PURE__ */ jsx(Filter, {
|
|
20470
20597
|
value,
|
|
20471
20598
|
filter,
|
|
20472
|
-
locale
|
|
20599
|
+
locale,
|
|
20473
20600
|
localeKey,
|
|
20474
20601
|
onClose,
|
|
20475
20602
|
onChange,
|
|
@@ -20531,7 +20658,7 @@
|
|
|
20531
20658
|
return target;
|
|
20532
20659
|
}
|
|
20533
20660
|
function FiltersPane(param) {
|
|
20534
|
-
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey,
|
|
20661
|
+
var data = param.data, tweakStyles = param.tweakStyles, filtersConfig = param.filtersConfig, enabledFilters = param.enabledFilters, _param_values = param.values, values = _param_values === void 0 ? {} : _param_values, localeKey = param.localeKey, locale = param.locale, search = param.search, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, _param_shouldRenderDataId = param.shouldRenderDataId, shouldRenderDataId = _param_shouldRenderDataId === void 0 ? false : _param_shouldRenderDataId, _param_settingsIcon = param.settingsIcon, settingsIcon = _param_settingsIcon === void 0 ? "filter" : _param_settingsIcon, testId = param.testId, onChangeFilters = param.onChangeFilters, onSettingsButtonClick = param.onSettingsButtonClick, onClear = param.onClear;
|
|
20535
20662
|
var classes = useStyles$u({
|
|
20536
20663
|
theme: tweakStyles
|
|
20537
20664
|
});
|
|
@@ -20547,10 +20674,10 @@
|
|
|
20547
20674
|
currentComponentName: "FiltersPane"
|
|
20548
20675
|
});
|
|
20549
20676
|
var translates = React.useMemo(function() {
|
|
20550
|
-
return getLocale$1(localeKey,
|
|
20677
|
+
return getLocale$1(localeKey, locale);
|
|
20551
20678
|
}, [
|
|
20552
20679
|
localeKey,
|
|
20553
|
-
|
|
20680
|
+
locale
|
|
20554
20681
|
]);
|
|
20555
20682
|
var filtersKeys = enabledFilters !== null && enabledFilters !== void 0 ? enabledFilters : Object.keys(filtersConfig);
|
|
20556
20683
|
var handleClear = function() {
|
|
@@ -20594,7 +20721,7 @@
|
|
|
20594
20721
|
})
|
|
20595
20722
|
})),
|
|
20596
20723
|
search !== void 0 && /* @__PURE__ */ jsx(FiltersPaneSearch, _object_spread_props$n(_object_spread$o({}, search), {
|
|
20597
|
-
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale,
|
|
20724
|
+
locale: getLocale$1((_search_localeKey = search.localeKey) !== null && _search_localeKey !== void 0 ? _search_localeKey : localeKey, search.locale, locale),
|
|
20598
20725
|
localeKey: (_search_localeKey1 = search.localeKey) !== null && _search_localeKey1 !== void 0 ? _search_localeKey1 : localeKey,
|
|
20599
20726
|
isDisabled: (_search_isDisabled = search.isDisabled) !== null && _search_isDisabled !== void 0 ? _search_isDisabled : isDisabled,
|
|
20600
20727
|
testId: trueReactPlatformHelpers.getTestId(testId, "search")
|
|
@@ -20614,7 +20741,7 @@
|
|
|
20614
20741
|
}
|
|
20615
20742
|
var filterWrapper = /* @__PURE__ */ jsx(FilterWrapper, {
|
|
20616
20743
|
filter,
|
|
20617
|
-
locale
|
|
20744
|
+
locale,
|
|
20618
20745
|
localeKey,
|
|
20619
20746
|
onChange: function(value) {
|
|
20620
20747
|
return onChangeFilters(_object_spread_props$n(_object_spread$o({}, values), _define_property$p({}, filterKey, value)));
|
|
@@ -29025,7 +29152,7 @@
|
|
|
29025
29152
|
return _array_like_to_array$4(o, minLen);
|
|
29026
29153
|
}
|
|
29027
29154
|
function MultiSelect(param) {
|
|
29028
|
-
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, localeKey = param.localeKey,
|
|
29155
|
+
var value = param.value, _param_corners = param.corners, corners = _param_corners === void 0 ? "full" : _param_corners, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isRequired = param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, localeKey = param.localeKey, locale = param.locale, testId = param.testId, data = param.data, onChange = param.onChange, fetchOptions = param.fetchOptions, tweakStyles = param.tweakStyles;
|
|
29029
29156
|
var classes = useStyles$c({
|
|
29030
29157
|
theme: tweakStyles
|
|
29031
29158
|
});
|
|
@@ -29061,7 +29188,7 @@
|
|
|
29061
29188
|
tweakStyles: tweakMultiSelectListStyles,
|
|
29062
29189
|
value,
|
|
29063
29190
|
localeKey,
|
|
29064
|
-
locale
|
|
29191
|
+
locale,
|
|
29065
29192
|
fetchOptions,
|
|
29066
29193
|
onChange,
|
|
29067
29194
|
onClose: handleOnClose
|
|
@@ -29409,7 +29536,7 @@
|
|
|
29409
29536
|
return _array_like_to_array$3(o, minLen);
|
|
29410
29537
|
}
|
|
29411
29538
|
var PhoneInputCountryList = function(param) {
|
|
29412
|
-
var
|
|
29539
|
+
var locale = param.locale, placeholder = param.placeholder, selectedCountryCode = param.selectedCountryCode, closeList = param.closeList, noMatchesLabel = param.noMatchesLabel, onChange = param.onChange, tweakStyles = param.tweakStyles;
|
|
29413
29540
|
var classes = useStyles$a({
|
|
29414
29541
|
theme: tweakStyles
|
|
29415
29542
|
});
|
|
@@ -29420,10 +29547,10 @@
|
|
|
29420
29547
|
currentComponentName: "PhoneInputCountryList"
|
|
29421
29548
|
});
|
|
29422
29549
|
var sortedCountries = React.useMemo(function() {
|
|
29423
|
-
return sortCountriesByLocale(phoneInfo,
|
|
29550
|
+
return sortCountriesByLocale(phoneInfo, locale);
|
|
29424
29551
|
}, [
|
|
29425
29552
|
phoneInfo,
|
|
29426
|
-
|
|
29553
|
+
locale
|
|
29427
29554
|
]);
|
|
29428
29555
|
var selectedCountryIdx = findCountryIndexByCode(selectedCountryCode, sortedCountries);
|
|
29429
29556
|
var _useState = _sliced_to_array$3(React.useState(""), 2), searchValue = _useState[0], setSearchValue = _useState[1];
|
|
@@ -29515,7 +29642,7 @@
|
|
|
29515
29642
|
}),
|
|
29516
29643
|
/* @__PURE__ */ jsx("div", {
|
|
29517
29644
|
className: classes.countryName,
|
|
29518
|
-
children: getCountryTextByLocale(country,
|
|
29645
|
+
children: getCountryTextByLocale(country, locale)
|
|
29519
29646
|
}),
|
|
29520
29647
|
/* @__PURE__ */ jsx("div", {
|
|
29521
29648
|
className: classes.dialCode,
|
|
@@ -29752,7 +29879,7 @@
|
|
|
29752
29879
|
return _array_like_to_array$2(o, minLen);
|
|
29753
29880
|
}
|
|
29754
29881
|
var PhoneInput = function(_param) {
|
|
29755
|
-
var _param_locale = _param.locale,
|
|
29882
|
+
var _param_locale = _param.locale, locale = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$5(_param, [
|
|
29756
29883
|
"locale",
|
|
29757
29884
|
"value",
|
|
29758
29885
|
"onChange",
|
|
@@ -29889,7 +30016,7 @@
|
|
|
29889
30016
|
children: /* @__PURE__ */ jsx(PhoneInputCountryList, {
|
|
29890
30017
|
selectedCountryCode: countryCode,
|
|
29891
30018
|
placeholder: codeSearchPlaceholder,
|
|
29892
|
-
locale
|
|
30019
|
+
locale,
|
|
29893
30020
|
tweakStyles: tweakCountryListStyles,
|
|
29894
30021
|
noMatchesLabel,
|
|
29895
30022
|
onChange: handleSelect,
|