@northlight/ui 2.12.3 → 2.12.5
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/es/northlight.d.ts +8 -7
- package/dist/es/northlight.js +1410 -1375
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +1409 -1374
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +2 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -454,8 +454,8 @@
|
|
|
454
454
|
};
|
|
455
455
|
|
|
456
456
|
var __defProp$25 = Object.defineProperty;
|
|
457
|
-
var __defProps$
|
|
458
|
-
var __getOwnPropDescs$
|
|
457
|
+
var __defProps$y = Object.defineProperties;
|
|
458
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
|
459
459
|
var __getOwnPropSymbols$25 = Object.getOwnPropertySymbols;
|
|
460
460
|
var __hasOwnProp$25 = Object.prototype.hasOwnProperty;
|
|
461
461
|
var __propIsEnum$25 = Object.prototype.propertyIsEnumerable;
|
|
@@ -471,43 +471,43 @@
|
|
|
471
471
|
}
|
|
472
472
|
return a;
|
|
473
473
|
};
|
|
474
|
-
var __spreadProps$
|
|
474
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
|
475
475
|
const customSelectStyles = {
|
|
476
|
-
container: (provided) => __spreadProps$
|
|
476
|
+
container: (provided) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
477
477
|
width: "100%",
|
|
478
478
|
color: "text.default"
|
|
479
479
|
}),
|
|
480
|
-
option: (provided, state) => __spreadProps$
|
|
480
|
+
option: (provided, state) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
481
481
|
background: state.isFocused && "background.select.option-focus",
|
|
482
482
|
_active: {
|
|
483
483
|
background: "background.select.option-active"
|
|
484
484
|
}
|
|
485
485
|
}),
|
|
486
|
-
valueContainer: (provided) => __spreadProps$
|
|
486
|
+
valueContainer: (provided) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
487
487
|
paddingInlineStart: "padding-inline.select.default"
|
|
488
488
|
}),
|
|
489
|
-
downChevron: (provided) => __spreadProps$
|
|
489
|
+
downChevron: (provided) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
490
490
|
color: "icon.select.default"
|
|
491
491
|
}),
|
|
492
|
-
placeholder: (provided) => __spreadProps$
|
|
492
|
+
placeholder: (provided) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
493
493
|
color: "text.select.placeholder"
|
|
494
494
|
}),
|
|
495
495
|
multiValue: (provided, state) => {
|
|
496
496
|
var _a;
|
|
497
497
|
const background = state.data.isFixed ? "background.select.option-disabled" : (_a = state.data.color) != null ? _a : provided.bgColor;
|
|
498
|
-
return __spreadProps$
|
|
498
|
+
return __spreadProps$y(__spreadValues$25({}, provided), {
|
|
499
499
|
bgColor: background,
|
|
500
500
|
color: getContrastColor(background)
|
|
501
501
|
});
|
|
502
502
|
},
|
|
503
|
-
menuList: (provided) => __spreadProps$
|
|
503
|
+
menuList: (provided) => __spreadProps$y(__spreadValues$25({}, provided), {
|
|
504
504
|
bgColor: "background.default"
|
|
505
505
|
})
|
|
506
506
|
};
|
|
507
507
|
|
|
508
508
|
var __defProp$24 = Object.defineProperty;
|
|
509
|
-
var __defProps$
|
|
510
|
-
var __getOwnPropDescs$
|
|
509
|
+
var __defProps$x = Object.defineProperties;
|
|
510
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
|
511
511
|
var __getOwnPropSymbols$24 = Object.getOwnPropertySymbols;
|
|
512
512
|
var __hasOwnProp$24 = Object.prototype.hasOwnProperty;
|
|
513
513
|
var __propIsEnum$24 = Object.prototype.propertyIsEnumerable;
|
|
@@ -523,9 +523,9 @@
|
|
|
523
523
|
}
|
|
524
524
|
return a;
|
|
525
525
|
};
|
|
526
|
-
var __spreadProps$
|
|
527
|
-
const tagsInputStyles = (isFocused, borderColor) => __spreadProps$
|
|
528
|
-
container: (provided) => __spreadProps$
|
|
526
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
|
527
|
+
const tagsInputStyles = (isFocused, borderColor) => __spreadProps$x(__spreadValues$24({}, customSelectStyles), {
|
|
528
|
+
container: (provided) => __spreadProps$x(__spreadValues$24({}, provided), {
|
|
529
529
|
w: "full",
|
|
530
530
|
height: "100%",
|
|
531
531
|
resize: "vertical",
|
|
@@ -538,12 +538,12 @@
|
|
|
538
538
|
color: "text.default",
|
|
539
539
|
boxShadow: isFocused ? `0 0 0 1px ${borderColor}` : "none"
|
|
540
540
|
}),
|
|
541
|
-
control: (provided) => __spreadProps$
|
|
541
|
+
control: (provided) => __spreadProps$x(__spreadValues$24({}, provided), {
|
|
542
542
|
minHeight: "20",
|
|
543
543
|
height: "100%",
|
|
544
544
|
alignItems: "start"
|
|
545
545
|
}),
|
|
546
|
-
valueContainer: (provided) => __spreadProps$
|
|
546
|
+
valueContainer: (provided) => __spreadProps$x(__spreadValues$24({}, provided), {
|
|
547
547
|
paddingInlineStart: "padding-inline.select.default",
|
|
548
548
|
overflowY: "auto",
|
|
549
549
|
maxH: "100%"
|
|
@@ -551,8 +551,8 @@
|
|
|
551
551
|
});
|
|
552
552
|
|
|
553
553
|
var __defProp$23 = Object.defineProperty;
|
|
554
|
-
var __defProps$
|
|
555
|
-
var __getOwnPropDescs$
|
|
554
|
+
var __defProps$w = Object.defineProperties;
|
|
555
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
|
556
556
|
var __getOwnPropSymbols$23 = Object.getOwnPropertySymbols;
|
|
557
557
|
var __hasOwnProp$23 = Object.prototype.hasOwnProperty;
|
|
558
558
|
var __propIsEnum$23 = Object.prototype.propertyIsEnumerable;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
}
|
|
569
569
|
return a;
|
|
570
570
|
};
|
|
571
|
-
var __spreadProps$
|
|
571
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
|
572
572
|
var __objRest$1w = (source, exclude) => {
|
|
573
573
|
var target = {};
|
|
574
574
|
for (var prop in source)
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
};
|
|
658
658
|
return /* @__PURE__ */ React.createElement(react.Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
659
659
|
CustomSelect,
|
|
660
|
-
__spreadValues$23(__spreadProps$
|
|
660
|
+
__spreadValues$23(__spreadProps$w(__spreadValues$23({
|
|
661
661
|
isMulti: true,
|
|
662
662
|
menuPortalTarget: document.body,
|
|
663
663
|
placeholder: "Type something and press Enter or comma...",
|
|
@@ -1743,12 +1743,10 @@
|
|
|
1743
1743
|
}
|
|
1744
1744
|
return target;
|
|
1745
1745
|
};
|
|
1746
|
-
const
|
|
1747
|
-
(_a,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
}
|
|
1751
|
-
);
|
|
1746
|
+
const Spinner$1 = (_a) => {
|
|
1747
|
+
var rest = __objRest$1c(_a, []);
|
|
1748
|
+
return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$1J({}, rest));
|
|
1749
|
+
};
|
|
1752
1750
|
|
|
1753
1751
|
var __defProp$1I = Object.defineProperty;
|
|
1754
1752
|
var __getOwnPropSymbols$1I = Object.getOwnPropertySymbols;
|
|
@@ -1778,6 +1776,61 @@
|
|
|
1778
1776
|
}
|
|
1779
1777
|
return target;
|
|
1780
1778
|
};
|
|
1779
|
+
const SpinnerSizeMap = {
|
|
1780
|
+
xs: "xs",
|
|
1781
|
+
sm: "sm",
|
|
1782
|
+
md: "sm",
|
|
1783
|
+
lg: "md"
|
|
1784
|
+
};
|
|
1785
|
+
const Button$1 = React.forwardRef(
|
|
1786
|
+
(_a, ref) => {
|
|
1787
|
+
var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$1b(_b, ["variant", "children", "size"]);
|
|
1788
|
+
return /* @__PURE__ */ React.createElement(
|
|
1789
|
+
react.Button,
|
|
1790
|
+
__spreadValues$1I({
|
|
1791
|
+
variant,
|
|
1792
|
+
ref,
|
|
1793
|
+
size,
|
|
1794
|
+
spinner: /* @__PURE__ */ React.createElement(
|
|
1795
|
+
Spinner$1,
|
|
1796
|
+
{
|
|
1797
|
+
size: SpinnerSizeMap[size]
|
|
1798
|
+
}
|
|
1799
|
+
)
|
|
1800
|
+
}, rest),
|
|
1801
|
+
children
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
);
|
|
1805
|
+
|
|
1806
|
+
var __defProp$1H = Object.defineProperty;
|
|
1807
|
+
var __getOwnPropSymbols$1H = Object.getOwnPropertySymbols;
|
|
1808
|
+
var __hasOwnProp$1H = Object.prototype.hasOwnProperty;
|
|
1809
|
+
var __propIsEnum$1H = Object.prototype.propertyIsEnumerable;
|
|
1810
|
+
var __defNormalProp$1H = (obj, key, value) => key in obj ? __defProp$1H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1811
|
+
var __spreadValues$1H = (a, b) => {
|
|
1812
|
+
for (var prop in b || (b = {}))
|
|
1813
|
+
if (__hasOwnProp$1H.call(b, prop))
|
|
1814
|
+
__defNormalProp$1H(a, prop, b[prop]);
|
|
1815
|
+
if (__getOwnPropSymbols$1H)
|
|
1816
|
+
for (var prop of __getOwnPropSymbols$1H(b)) {
|
|
1817
|
+
if (__propIsEnum$1H.call(b, prop))
|
|
1818
|
+
__defNormalProp$1H(a, prop, b[prop]);
|
|
1819
|
+
}
|
|
1820
|
+
return a;
|
|
1821
|
+
};
|
|
1822
|
+
var __objRest$1a = (source, exclude) => {
|
|
1823
|
+
var target = {};
|
|
1824
|
+
for (var prop in source)
|
|
1825
|
+
if (__hasOwnProp$1H.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1826
|
+
target[prop] = source[prop];
|
|
1827
|
+
if (source != null && __getOwnPropSymbols$1H)
|
|
1828
|
+
for (var prop of __getOwnPropSymbols$1H(source)) {
|
|
1829
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1H.call(source, prop))
|
|
1830
|
+
target[prop] = source[prop];
|
|
1831
|
+
}
|
|
1832
|
+
return target;
|
|
1833
|
+
};
|
|
1781
1834
|
const Checkbox$1 = (_a) => {
|
|
1782
1835
|
var _b = _a, {
|
|
1783
1836
|
value,
|
|
@@ -1785,7 +1838,7 @@
|
|
|
1785
1838
|
name,
|
|
1786
1839
|
size = "md",
|
|
1787
1840
|
variant = "default"
|
|
1788
|
-
} = _b, rest = __objRest$
|
|
1841
|
+
} = _b, rest = __objRest$1a(_b, [
|
|
1789
1842
|
"value",
|
|
1790
1843
|
"onChange",
|
|
1791
1844
|
"name",
|
|
@@ -1794,7 +1847,7 @@
|
|
|
1794
1847
|
]);
|
|
1795
1848
|
return /* @__PURE__ */ React.createElement(
|
|
1796
1849
|
react.Checkbox,
|
|
1797
|
-
__spreadValues$
|
|
1850
|
+
__spreadValues$1H({
|
|
1798
1851
|
size,
|
|
1799
1852
|
id: name,
|
|
1800
1853
|
onChange,
|
|
@@ -1820,30 +1873,30 @@
|
|
|
1820
1873
|
return newObj;
|
|
1821
1874
|
};
|
|
1822
1875
|
|
|
1823
|
-
var __defProp$
|
|
1824
|
-
var __getOwnPropSymbols$
|
|
1825
|
-
var __hasOwnProp$
|
|
1826
|
-
var __propIsEnum$
|
|
1827
|
-
var __defNormalProp$
|
|
1828
|
-
var __spreadValues$
|
|
1876
|
+
var __defProp$1G = Object.defineProperty;
|
|
1877
|
+
var __getOwnPropSymbols$1G = Object.getOwnPropertySymbols;
|
|
1878
|
+
var __hasOwnProp$1G = Object.prototype.hasOwnProperty;
|
|
1879
|
+
var __propIsEnum$1G = Object.prototype.propertyIsEnumerable;
|
|
1880
|
+
var __defNormalProp$1G = (obj, key, value) => key in obj ? __defProp$1G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1881
|
+
var __spreadValues$1G = (a, b) => {
|
|
1829
1882
|
for (var prop in b || (b = {}))
|
|
1830
|
-
if (__hasOwnProp$
|
|
1831
|
-
__defNormalProp$
|
|
1832
|
-
if (__getOwnPropSymbols$
|
|
1833
|
-
for (var prop of __getOwnPropSymbols$
|
|
1834
|
-
if (__propIsEnum$
|
|
1835
|
-
__defNormalProp$
|
|
1883
|
+
if (__hasOwnProp$1G.call(b, prop))
|
|
1884
|
+
__defNormalProp$1G(a, prop, b[prop]);
|
|
1885
|
+
if (__getOwnPropSymbols$1G)
|
|
1886
|
+
for (var prop of __getOwnPropSymbols$1G(b)) {
|
|
1887
|
+
if (__propIsEnum$1G.call(b, prop))
|
|
1888
|
+
__defNormalProp$1G(a, prop, b[prop]);
|
|
1836
1889
|
}
|
|
1837
1890
|
return a;
|
|
1838
1891
|
};
|
|
1839
|
-
var __objRest$
|
|
1892
|
+
var __objRest$19 = (source, exclude) => {
|
|
1840
1893
|
var target = {};
|
|
1841
1894
|
for (var prop in source)
|
|
1842
|
-
if (__hasOwnProp$
|
|
1895
|
+
if (__hasOwnProp$1G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1843
1896
|
target[prop] = source[prop];
|
|
1844
|
-
if (source != null && __getOwnPropSymbols$
|
|
1845
|
-
for (var prop of __getOwnPropSymbols$
|
|
1846
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1897
|
+
if (source != null && __getOwnPropSymbols$1G)
|
|
1898
|
+
for (var prop of __getOwnPropSymbols$1G(source)) {
|
|
1899
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1G.call(source, prop))
|
|
1847
1900
|
target[prop] = source[prop];
|
|
1848
1901
|
}
|
|
1849
1902
|
return target;
|
|
@@ -1859,7 +1912,7 @@
|
|
|
1859
1912
|
enableReinitialize = false,
|
|
1860
1913
|
shouldTrim = true,
|
|
1861
1914
|
innerFormStyle = {}
|
|
1862
|
-
} = _b, rest = __objRest$
|
|
1915
|
+
} = _b, rest = __objRest$19(_b, [
|
|
1863
1916
|
"initialValues",
|
|
1864
1917
|
"onSubmit",
|
|
1865
1918
|
"children",
|
|
@@ -1874,7 +1927,7 @@
|
|
|
1874
1927
|
values,
|
|
1875
1928
|
errors: validate(values)
|
|
1876
1929
|
});
|
|
1877
|
-
const newMethods = methods || reactHookForm.useForm(__spreadValues$
|
|
1930
|
+
const newMethods = methods || reactHookForm.useForm(__spreadValues$1G({
|
|
1878
1931
|
defaultValues: initialValues,
|
|
1879
1932
|
resolver: validate ? customResolver : void 0
|
|
1880
1933
|
}, formSettings));
|
|
@@ -1900,36 +1953,36 @@
|
|
|
1900
1953
|
newMethods.trigger();
|
|
1901
1954
|
e.preventDefault();
|
|
1902
1955
|
};
|
|
1903
|
-
return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$
|
|
1956
|
+
return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$1G(__spreadValues$1G({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1G({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
|
|
1904
1957
|
});
|
|
1905
1958
|
|
|
1906
|
-
var __defProp$
|
|
1907
|
-
var __defProps$
|
|
1908
|
-
var __getOwnPropDescs$
|
|
1909
|
-
var __getOwnPropSymbols$
|
|
1910
|
-
var __hasOwnProp$
|
|
1911
|
-
var __propIsEnum$
|
|
1912
|
-
var __defNormalProp$
|
|
1913
|
-
var __spreadValues$
|
|
1959
|
+
var __defProp$1F = Object.defineProperty;
|
|
1960
|
+
var __defProps$v = Object.defineProperties;
|
|
1961
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
|
1962
|
+
var __getOwnPropSymbols$1F = Object.getOwnPropertySymbols;
|
|
1963
|
+
var __hasOwnProp$1F = Object.prototype.hasOwnProperty;
|
|
1964
|
+
var __propIsEnum$1F = Object.prototype.propertyIsEnumerable;
|
|
1965
|
+
var __defNormalProp$1F = (obj, key, value) => key in obj ? __defProp$1F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1966
|
+
var __spreadValues$1F = (a, b) => {
|
|
1914
1967
|
for (var prop in b || (b = {}))
|
|
1915
|
-
if (__hasOwnProp$
|
|
1916
|
-
__defNormalProp$
|
|
1917
|
-
if (__getOwnPropSymbols$
|
|
1918
|
-
for (var prop of __getOwnPropSymbols$
|
|
1919
|
-
if (__propIsEnum$
|
|
1920
|
-
__defNormalProp$
|
|
1968
|
+
if (__hasOwnProp$1F.call(b, prop))
|
|
1969
|
+
__defNormalProp$1F(a, prop, b[prop]);
|
|
1970
|
+
if (__getOwnPropSymbols$1F)
|
|
1971
|
+
for (var prop of __getOwnPropSymbols$1F(b)) {
|
|
1972
|
+
if (__propIsEnum$1F.call(b, prop))
|
|
1973
|
+
__defNormalProp$1F(a, prop, b[prop]);
|
|
1921
1974
|
}
|
|
1922
1975
|
return a;
|
|
1923
1976
|
};
|
|
1924
|
-
var __spreadProps$
|
|
1925
|
-
var __objRest$
|
|
1977
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
|
1978
|
+
var __objRest$18 = (source, exclude) => {
|
|
1926
1979
|
var target = {};
|
|
1927
1980
|
for (var prop in source)
|
|
1928
|
-
if (__hasOwnProp$
|
|
1981
|
+
if (__hasOwnProp$1F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1929
1982
|
target[prop] = source[prop];
|
|
1930
|
-
if (source != null && __getOwnPropSymbols$
|
|
1931
|
-
for (var prop of __getOwnPropSymbols$
|
|
1932
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1983
|
+
if (source != null && __getOwnPropSymbols$1F)
|
|
1984
|
+
for (var prop of __getOwnPropSymbols$1F(source)) {
|
|
1985
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1F.call(source, prop))
|
|
1933
1986
|
target[prop] = source[prop];
|
|
1934
1987
|
}
|
|
1935
1988
|
return target;
|
|
@@ -1937,12 +1990,12 @@
|
|
|
1937
1990
|
const FormLabel = React.forwardRef((_a, ref) => {
|
|
1938
1991
|
var _b = _a, {
|
|
1939
1992
|
children: label
|
|
1940
|
-
} = _b, rest = __objRest$
|
|
1993
|
+
} = _b, rest = __objRest$18(_b, [
|
|
1941
1994
|
"children"
|
|
1942
1995
|
]);
|
|
1943
1996
|
return /* @__PURE__ */ React.createElement(
|
|
1944
1997
|
Label$1,
|
|
1945
|
-
__spreadProps$
|
|
1998
|
+
__spreadProps$v(__spreadValues$1F({
|
|
1946
1999
|
size: "sm",
|
|
1947
2000
|
sx: {
|
|
1948
2001
|
width: "80%",
|
|
@@ -1958,30 +2011,30 @@
|
|
|
1958
2011
|
);
|
|
1959
2012
|
});
|
|
1960
2013
|
|
|
1961
|
-
var __defProp$
|
|
1962
|
-
var __getOwnPropSymbols$
|
|
1963
|
-
var __hasOwnProp$
|
|
1964
|
-
var __propIsEnum$
|
|
1965
|
-
var __defNormalProp$
|
|
1966
|
-
var __spreadValues$
|
|
2014
|
+
var __defProp$1E = Object.defineProperty;
|
|
2015
|
+
var __getOwnPropSymbols$1E = Object.getOwnPropertySymbols;
|
|
2016
|
+
var __hasOwnProp$1E = Object.prototype.hasOwnProperty;
|
|
2017
|
+
var __propIsEnum$1E = Object.prototype.propertyIsEnumerable;
|
|
2018
|
+
var __defNormalProp$1E = (obj, key, value) => key in obj ? __defProp$1E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2019
|
+
var __spreadValues$1E = (a, b) => {
|
|
1967
2020
|
for (var prop in b || (b = {}))
|
|
1968
|
-
if (__hasOwnProp$
|
|
1969
|
-
__defNormalProp$
|
|
1970
|
-
if (__getOwnPropSymbols$
|
|
1971
|
-
for (var prop of __getOwnPropSymbols$
|
|
1972
|
-
if (__propIsEnum$
|
|
1973
|
-
__defNormalProp$
|
|
2021
|
+
if (__hasOwnProp$1E.call(b, prop))
|
|
2022
|
+
__defNormalProp$1E(a, prop, b[prop]);
|
|
2023
|
+
if (__getOwnPropSymbols$1E)
|
|
2024
|
+
for (var prop of __getOwnPropSymbols$1E(b)) {
|
|
2025
|
+
if (__propIsEnum$1E.call(b, prop))
|
|
2026
|
+
__defNormalProp$1E(a, prop, b[prop]);
|
|
1974
2027
|
}
|
|
1975
2028
|
return a;
|
|
1976
2029
|
};
|
|
1977
|
-
var __objRest$
|
|
2030
|
+
var __objRest$17 = (source, exclude) => {
|
|
1978
2031
|
var target = {};
|
|
1979
2032
|
for (var prop in source)
|
|
1980
|
-
if (__hasOwnProp$
|
|
2033
|
+
if (__hasOwnProp$1E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1981
2034
|
target[prop] = source[prop];
|
|
1982
|
-
if (source != null && __getOwnPropSymbols$
|
|
1983
|
-
for (var prop of __getOwnPropSymbols$
|
|
1984
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2035
|
+
if (source != null && __getOwnPropSymbols$1E)
|
|
2036
|
+
for (var prop of __getOwnPropSymbols$1E(source)) {
|
|
2037
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1E.call(source, prop))
|
|
1985
2038
|
target[prop] = source[prop];
|
|
1986
2039
|
}
|
|
1987
2040
|
return target;
|
|
@@ -1996,7 +2049,7 @@
|
|
|
1996
2049
|
noLabelConnection = false,
|
|
1997
2050
|
validate,
|
|
1998
2051
|
control: passedControl
|
|
1999
|
-
} = _b, rest = __objRest$
|
|
2052
|
+
} = _b, rest = __objRest$17(_b, [
|
|
2000
2053
|
"name",
|
|
2001
2054
|
"label",
|
|
2002
2055
|
"children",
|
|
@@ -2012,7 +2065,7 @@
|
|
|
2012
2065
|
const fieldError = getFieldError(name, errors);
|
|
2013
2066
|
return /* @__PURE__ */ React.createElement(react.FormControl, { isInvalid: !!fieldError, isRequired, ref }, /* @__PURE__ */ React.createElement(
|
|
2014
2067
|
react.Stack,
|
|
2015
|
-
__spreadValues$
|
|
2068
|
+
__spreadValues$1E({
|
|
2016
2069
|
spacing: "auto",
|
|
2017
2070
|
direction,
|
|
2018
2071
|
alignItems: direction === "column" ? "stretch" : "center"
|
|
@@ -2040,30 +2093,30 @@
|
|
|
2040
2093
|
return setValueRefreshed;
|
|
2041
2094
|
};
|
|
2042
2095
|
|
|
2043
|
-
var __defProp$
|
|
2044
|
-
var __getOwnPropSymbols$
|
|
2045
|
-
var __hasOwnProp$
|
|
2046
|
-
var __propIsEnum$
|
|
2047
|
-
var __defNormalProp$
|
|
2048
|
-
var __spreadValues$
|
|
2096
|
+
var __defProp$1D = Object.defineProperty;
|
|
2097
|
+
var __getOwnPropSymbols$1D = Object.getOwnPropertySymbols;
|
|
2098
|
+
var __hasOwnProp$1D = Object.prototype.hasOwnProperty;
|
|
2099
|
+
var __propIsEnum$1D = Object.prototype.propertyIsEnumerable;
|
|
2100
|
+
var __defNormalProp$1D = (obj, key, value) => key in obj ? __defProp$1D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2101
|
+
var __spreadValues$1D = (a, b) => {
|
|
2049
2102
|
for (var prop in b || (b = {}))
|
|
2050
|
-
if (__hasOwnProp$
|
|
2051
|
-
__defNormalProp$
|
|
2052
|
-
if (__getOwnPropSymbols$
|
|
2053
|
-
for (var prop of __getOwnPropSymbols$
|
|
2054
|
-
if (__propIsEnum$
|
|
2055
|
-
__defNormalProp$
|
|
2103
|
+
if (__hasOwnProp$1D.call(b, prop))
|
|
2104
|
+
__defNormalProp$1D(a, prop, b[prop]);
|
|
2105
|
+
if (__getOwnPropSymbols$1D)
|
|
2106
|
+
for (var prop of __getOwnPropSymbols$1D(b)) {
|
|
2107
|
+
if (__propIsEnum$1D.call(b, prop))
|
|
2108
|
+
__defNormalProp$1D(a, prop, b[prop]);
|
|
2056
2109
|
}
|
|
2057
2110
|
return a;
|
|
2058
2111
|
};
|
|
2059
|
-
var __objRest$
|
|
2112
|
+
var __objRest$16 = (source, exclude) => {
|
|
2060
2113
|
var target = {};
|
|
2061
2114
|
for (var prop in source)
|
|
2062
|
-
if (__hasOwnProp$
|
|
2115
|
+
if (__hasOwnProp$1D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2063
2116
|
target[prop] = source[prop];
|
|
2064
|
-
if (source != null && __getOwnPropSymbols$
|
|
2065
|
-
for (var prop of __getOwnPropSymbols$
|
|
2066
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2117
|
+
if (source != null && __getOwnPropSymbols$1D)
|
|
2118
|
+
for (var prop of __getOwnPropSymbols$1D(source)) {
|
|
2119
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1D.call(source, prop))
|
|
2067
2120
|
target[prop] = source[prop];
|
|
2068
2121
|
}
|
|
2069
2122
|
return target;
|
|
@@ -2079,7 +2132,7 @@
|
|
|
2079
2132
|
direction = "row",
|
|
2080
2133
|
labelPlacement = "left",
|
|
2081
2134
|
labelSize = "md"
|
|
2082
|
-
} = _b, rest = __objRest$
|
|
2135
|
+
} = _b, rest = __objRest$16(_b, [
|
|
2083
2136
|
"name",
|
|
2084
2137
|
"label",
|
|
2085
2138
|
"variant",
|
|
@@ -2114,7 +2167,7 @@
|
|
|
2114
2167
|
},
|
|
2115
2168
|
/* @__PURE__ */ React.createElement(
|
|
2116
2169
|
Checkbox$1,
|
|
2117
|
-
__spreadValues$
|
|
2170
|
+
__spreadValues$1D({
|
|
2118
2171
|
name,
|
|
2119
2172
|
onChange: (e) => {
|
|
2120
2173
|
onChange(e);
|
|
@@ -2131,30 +2184,30 @@
|
|
|
2131
2184
|
);
|
|
2132
2185
|
});
|
|
2133
2186
|
|
|
2134
|
-
var __defProp$
|
|
2135
|
-
var __getOwnPropSymbols$
|
|
2136
|
-
var __hasOwnProp$
|
|
2137
|
-
var __propIsEnum$
|
|
2138
|
-
var __defNormalProp$
|
|
2139
|
-
var __spreadValues$
|
|
2187
|
+
var __defProp$1C = Object.defineProperty;
|
|
2188
|
+
var __getOwnPropSymbols$1C = Object.getOwnPropertySymbols;
|
|
2189
|
+
var __hasOwnProp$1C = Object.prototype.hasOwnProperty;
|
|
2190
|
+
var __propIsEnum$1C = Object.prototype.propertyIsEnumerable;
|
|
2191
|
+
var __defNormalProp$1C = (obj, key, value) => key in obj ? __defProp$1C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2192
|
+
var __spreadValues$1C = (a, b) => {
|
|
2140
2193
|
for (var prop in b || (b = {}))
|
|
2141
|
-
if (__hasOwnProp$
|
|
2142
|
-
__defNormalProp$
|
|
2143
|
-
if (__getOwnPropSymbols$
|
|
2144
|
-
for (var prop of __getOwnPropSymbols$
|
|
2145
|
-
if (__propIsEnum$
|
|
2146
|
-
__defNormalProp$
|
|
2194
|
+
if (__hasOwnProp$1C.call(b, prop))
|
|
2195
|
+
__defNormalProp$1C(a, prop, b[prop]);
|
|
2196
|
+
if (__getOwnPropSymbols$1C)
|
|
2197
|
+
for (var prop of __getOwnPropSymbols$1C(b)) {
|
|
2198
|
+
if (__propIsEnum$1C.call(b, prop))
|
|
2199
|
+
__defNormalProp$1C(a, prop, b[prop]);
|
|
2147
2200
|
}
|
|
2148
2201
|
return a;
|
|
2149
2202
|
};
|
|
2150
|
-
var __objRest$
|
|
2203
|
+
var __objRest$15 = (source, exclude) => {
|
|
2151
2204
|
var target = {};
|
|
2152
2205
|
for (var prop in source)
|
|
2153
|
-
if (__hasOwnProp$
|
|
2206
|
+
if (__hasOwnProp$1C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2154
2207
|
target[prop] = source[prop];
|
|
2155
|
-
if (source != null && __getOwnPropSymbols$
|
|
2156
|
-
for (var prop of __getOwnPropSymbols$
|
|
2157
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2208
|
+
if (source != null && __getOwnPropSymbols$1C)
|
|
2209
|
+
for (var prop of __getOwnPropSymbols$1C(source)) {
|
|
2210
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1C.call(source, prop))
|
|
2158
2211
|
target[prop] = source[prop];
|
|
2159
2212
|
}
|
|
2160
2213
|
return target;
|
|
@@ -2165,7 +2218,7 @@
|
|
|
2165
2218
|
icon,
|
|
2166
2219
|
"aria-label": ariaLabel,
|
|
2167
2220
|
children
|
|
2168
|
-
} = _b, rest = __objRest$
|
|
2221
|
+
} = _b, rest = __objRest$15(_b, [
|
|
2169
2222
|
"variant",
|
|
2170
2223
|
"icon",
|
|
2171
2224
|
"aria-label",
|
|
@@ -2175,7 +2228,7 @@
|
|
|
2175
2228
|
const IconWithSize = React.cloneElement(IconComponent, { size: rest.size });
|
|
2176
2229
|
return /* @__PURE__ */ React.createElement(
|
|
2177
2230
|
react.IconButton,
|
|
2178
|
-
__spreadValues$
|
|
2231
|
+
__spreadValues$1C({
|
|
2179
2232
|
variant,
|
|
2180
2233
|
icon: IconWithSize,
|
|
2181
2234
|
"aria-label": ariaLabel,
|
|
@@ -2266,30 +2319,30 @@
|
|
|
2266
2319
|
);
|
|
2267
2320
|
};
|
|
2268
2321
|
|
|
2269
|
-
var __defProp$
|
|
2270
|
-
var __getOwnPropSymbols$
|
|
2271
|
-
var __hasOwnProp$
|
|
2272
|
-
var __propIsEnum$
|
|
2273
|
-
var __defNormalProp$
|
|
2274
|
-
var __spreadValues$
|
|
2322
|
+
var __defProp$1B = Object.defineProperty;
|
|
2323
|
+
var __getOwnPropSymbols$1B = Object.getOwnPropertySymbols;
|
|
2324
|
+
var __hasOwnProp$1B = Object.prototype.hasOwnProperty;
|
|
2325
|
+
var __propIsEnum$1B = Object.prototype.propertyIsEnumerable;
|
|
2326
|
+
var __defNormalProp$1B = (obj, key, value) => key in obj ? __defProp$1B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2327
|
+
var __spreadValues$1B = (a, b) => {
|
|
2275
2328
|
for (var prop in b || (b = {}))
|
|
2276
|
-
if (__hasOwnProp$
|
|
2277
|
-
__defNormalProp$
|
|
2278
|
-
if (__getOwnPropSymbols$
|
|
2279
|
-
for (var prop of __getOwnPropSymbols$
|
|
2280
|
-
if (__propIsEnum$
|
|
2281
|
-
__defNormalProp$
|
|
2329
|
+
if (__hasOwnProp$1B.call(b, prop))
|
|
2330
|
+
__defNormalProp$1B(a, prop, b[prop]);
|
|
2331
|
+
if (__getOwnPropSymbols$1B)
|
|
2332
|
+
for (var prop of __getOwnPropSymbols$1B(b)) {
|
|
2333
|
+
if (__propIsEnum$1B.call(b, prop))
|
|
2334
|
+
__defNormalProp$1B(a, prop, b[prop]);
|
|
2282
2335
|
}
|
|
2283
2336
|
return a;
|
|
2284
2337
|
};
|
|
2285
|
-
var __objRest$
|
|
2338
|
+
var __objRest$14 = (source, exclude) => {
|
|
2286
2339
|
var target = {};
|
|
2287
2340
|
for (var prop in source)
|
|
2288
|
-
if (__hasOwnProp$
|
|
2341
|
+
if (__hasOwnProp$1B.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2289
2342
|
target[prop] = source[prop];
|
|
2290
|
-
if (source != null && __getOwnPropSymbols$
|
|
2291
|
-
for (var prop of __getOwnPropSymbols$
|
|
2292
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2343
|
+
if (source != null && __getOwnPropSymbols$1B)
|
|
2344
|
+
for (var prop of __getOwnPropSymbols$1B(source)) {
|
|
2345
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1B.call(source, prop))
|
|
2293
2346
|
target[prop] = source[prop];
|
|
2294
2347
|
}
|
|
2295
2348
|
return target;
|
|
@@ -2302,14 +2355,16 @@
|
|
|
2302
2355
|
expandedColors = paletteColors,
|
|
2303
2356
|
value = null,
|
|
2304
2357
|
name,
|
|
2305
|
-
size = "md"
|
|
2306
|
-
|
|
2358
|
+
size = "md",
|
|
2359
|
+
popoverProps
|
|
2360
|
+
} = _b, rest = __objRest$14(_b, [
|
|
2307
2361
|
"onChange",
|
|
2308
2362
|
"colors",
|
|
2309
2363
|
"expandedColors",
|
|
2310
2364
|
"value",
|
|
2311
2365
|
"name",
|
|
2312
|
-
"size"
|
|
2366
|
+
"size",
|
|
2367
|
+
"popoverProps"
|
|
2313
2368
|
]);
|
|
2314
2369
|
const { isOpen, onToggle, onClose } = react.useDisclosure();
|
|
2315
2370
|
const [expanded, setExpanded] = react.useBoolean();
|
|
@@ -2361,14 +2416,14 @@
|
|
|
2361
2416
|
};
|
|
2362
2417
|
return /* @__PURE__ */ React.createElement(react.Box, { "data-testid": "color-picker-test-id" }, /* @__PURE__ */ React.createElement(
|
|
2363
2418
|
react.Popover,
|
|
2364
|
-
{
|
|
2419
|
+
__spreadValues$1B({
|
|
2365
2420
|
isOpen,
|
|
2366
2421
|
onClose,
|
|
2367
2422
|
initialFocusRef
|
|
2368
|
-
},
|
|
2423
|
+
}, popoverProps),
|
|
2369
2424
|
/* @__PURE__ */ React.createElement(react.PopoverTrigger, null, /* @__PURE__ */ React.createElement(
|
|
2370
2425
|
IconButton,
|
|
2371
|
-
__spreadValues$
|
|
2426
|
+
__spreadValues$1B({
|
|
2372
2427
|
onClick: onToggle,
|
|
2373
2428
|
"aria-label": name || "color picker",
|
|
2374
2429
|
name,
|
|
@@ -2417,30 +2472,30 @@
|
|
|
2417
2472
|
));
|
|
2418
2473
|
};
|
|
2419
2474
|
|
|
2420
|
-
var __defProp$
|
|
2421
|
-
var __getOwnPropSymbols$
|
|
2422
|
-
var __hasOwnProp$
|
|
2423
|
-
var __propIsEnum$
|
|
2424
|
-
var __defNormalProp$
|
|
2425
|
-
var __spreadValues$
|
|
2475
|
+
var __defProp$1A = Object.defineProperty;
|
|
2476
|
+
var __getOwnPropSymbols$1A = Object.getOwnPropertySymbols;
|
|
2477
|
+
var __hasOwnProp$1A = Object.prototype.hasOwnProperty;
|
|
2478
|
+
var __propIsEnum$1A = Object.prototype.propertyIsEnumerable;
|
|
2479
|
+
var __defNormalProp$1A = (obj, key, value) => key in obj ? __defProp$1A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2480
|
+
var __spreadValues$1A = (a, b) => {
|
|
2426
2481
|
for (var prop in b || (b = {}))
|
|
2427
|
-
if (__hasOwnProp$
|
|
2428
|
-
__defNormalProp$
|
|
2429
|
-
if (__getOwnPropSymbols$
|
|
2430
|
-
for (var prop of __getOwnPropSymbols$
|
|
2431
|
-
if (__propIsEnum$
|
|
2432
|
-
__defNormalProp$
|
|
2482
|
+
if (__hasOwnProp$1A.call(b, prop))
|
|
2483
|
+
__defNormalProp$1A(a, prop, b[prop]);
|
|
2484
|
+
if (__getOwnPropSymbols$1A)
|
|
2485
|
+
for (var prop of __getOwnPropSymbols$1A(b)) {
|
|
2486
|
+
if (__propIsEnum$1A.call(b, prop))
|
|
2487
|
+
__defNormalProp$1A(a, prop, b[prop]);
|
|
2433
2488
|
}
|
|
2434
2489
|
return a;
|
|
2435
2490
|
};
|
|
2436
|
-
var __objRest$
|
|
2491
|
+
var __objRest$13 = (source, exclude) => {
|
|
2437
2492
|
var target = {};
|
|
2438
2493
|
for (var prop in source)
|
|
2439
|
-
if (__hasOwnProp$
|
|
2494
|
+
if (__hasOwnProp$1A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2440
2495
|
target[prop] = source[prop];
|
|
2441
|
-
if (source != null && __getOwnPropSymbols$
|
|
2442
|
-
for (var prop of __getOwnPropSymbols$
|
|
2443
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2496
|
+
if (source != null && __getOwnPropSymbols$1A)
|
|
2497
|
+
for (var prop of __getOwnPropSymbols$1A(source)) {
|
|
2498
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1A.call(source, prop))
|
|
2444
2499
|
target[prop] = source[prop];
|
|
2445
2500
|
}
|
|
2446
2501
|
return target;
|
|
@@ -2452,7 +2507,7 @@
|
|
|
2452
2507
|
direction,
|
|
2453
2508
|
isRequired,
|
|
2454
2509
|
validate
|
|
2455
|
-
} = _b, rest = __objRest$
|
|
2510
|
+
} = _b, rest = __objRest$13(_b, [
|
|
2456
2511
|
"name",
|
|
2457
2512
|
"label",
|
|
2458
2513
|
"direction",
|
|
@@ -2470,7 +2525,7 @@
|
|
|
2470
2525
|
},
|
|
2471
2526
|
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
2472
2527
|
ColorPicker$1,
|
|
2473
|
-
__spreadValues$
|
|
2528
|
+
__spreadValues$1A({
|
|
2474
2529
|
name,
|
|
2475
2530
|
onChange,
|
|
2476
2531
|
value
|
|
@@ -2479,29 +2534,29 @@
|
|
|
2479
2534
|
);
|
|
2480
2535
|
};
|
|
2481
2536
|
|
|
2482
|
-
var __defProp$
|
|
2483
|
-
var __defProps$
|
|
2484
|
-
var __getOwnPropDescs$
|
|
2485
|
-
var __getOwnPropSymbols$
|
|
2486
|
-
var __hasOwnProp$
|
|
2487
|
-
var __propIsEnum$
|
|
2488
|
-
var __defNormalProp$
|
|
2489
|
-
var __spreadValues$
|
|
2537
|
+
var __defProp$1z = Object.defineProperty;
|
|
2538
|
+
var __defProps$u = Object.defineProperties;
|
|
2539
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
|
2540
|
+
var __getOwnPropSymbols$1z = Object.getOwnPropertySymbols;
|
|
2541
|
+
var __hasOwnProp$1z = Object.prototype.hasOwnProperty;
|
|
2542
|
+
var __propIsEnum$1z = Object.prototype.propertyIsEnumerable;
|
|
2543
|
+
var __defNormalProp$1z = (obj, key, value) => key in obj ? __defProp$1z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2544
|
+
var __spreadValues$1z = (a, b) => {
|
|
2490
2545
|
for (var prop in b || (b = {}))
|
|
2491
|
-
if (__hasOwnProp$
|
|
2492
|
-
__defNormalProp$
|
|
2493
|
-
if (__getOwnPropSymbols$
|
|
2494
|
-
for (var prop of __getOwnPropSymbols$
|
|
2495
|
-
if (__propIsEnum$
|
|
2496
|
-
__defNormalProp$
|
|
2546
|
+
if (__hasOwnProp$1z.call(b, prop))
|
|
2547
|
+
__defNormalProp$1z(a, prop, b[prop]);
|
|
2548
|
+
if (__getOwnPropSymbols$1z)
|
|
2549
|
+
for (var prop of __getOwnPropSymbols$1z(b)) {
|
|
2550
|
+
if (__propIsEnum$1z.call(b, prop))
|
|
2551
|
+
__defNormalProp$1z(a, prop, b[prop]);
|
|
2497
2552
|
}
|
|
2498
2553
|
return a;
|
|
2499
2554
|
};
|
|
2500
|
-
var __spreadProps$
|
|
2555
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
|
2501
2556
|
const FlipButtonContext = React.createContext(null);
|
|
2502
2557
|
const useFlipButtonState = (props, isMulti) => isMulti ? checkbox.useCheckboxGroupState(props) : radio.useRadioGroupState(props);
|
|
2503
2558
|
const useFlipButtonGroup = (props, state, isMulti) => {
|
|
2504
|
-
const propsWithLabel = __spreadProps$
|
|
2559
|
+
const propsWithLabel = __spreadProps$u(__spreadValues$1z({}, props), {
|
|
2505
2560
|
"aria-label": `${isMulti ? "Checkbox" : "Radio"}-button-group`
|
|
2506
2561
|
});
|
|
2507
2562
|
return isMulti ? checkbox$1.useCheckboxGroup(
|
|
@@ -2518,33 +2573,33 @@
|
|
|
2518
2573
|
return { state, flipButtonGroupProps };
|
|
2519
2574
|
};
|
|
2520
2575
|
|
|
2521
|
-
var __defProp$
|
|
2522
|
-
var __defProps$
|
|
2523
|
-
var __getOwnPropDescs$
|
|
2524
|
-
var __getOwnPropSymbols$
|
|
2525
|
-
var __hasOwnProp$
|
|
2526
|
-
var __propIsEnum$
|
|
2527
|
-
var __defNormalProp$
|
|
2528
|
-
var __spreadValues$
|
|
2576
|
+
var __defProp$1y = Object.defineProperty;
|
|
2577
|
+
var __defProps$t = Object.defineProperties;
|
|
2578
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
|
2579
|
+
var __getOwnPropSymbols$1y = Object.getOwnPropertySymbols;
|
|
2580
|
+
var __hasOwnProp$1y = Object.prototype.hasOwnProperty;
|
|
2581
|
+
var __propIsEnum$1y = Object.prototype.propertyIsEnumerable;
|
|
2582
|
+
var __defNormalProp$1y = (obj, key, value) => key in obj ? __defProp$1y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2583
|
+
var __spreadValues$1y = (a, b) => {
|
|
2529
2584
|
for (var prop in b || (b = {}))
|
|
2530
|
-
if (__hasOwnProp$
|
|
2531
|
-
__defNormalProp$
|
|
2532
|
-
if (__getOwnPropSymbols$
|
|
2533
|
-
for (var prop of __getOwnPropSymbols$
|
|
2534
|
-
if (__propIsEnum$
|
|
2535
|
-
__defNormalProp$
|
|
2585
|
+
if (__hasOwnProp$1y.call(b, prop))
|
|
2586
|
+
__defNormalProp$1y(a, prop, b[prop]);
|
|
2587
|
+
if (__getOwnPropSymbols$1y)
|
|
2588
|
+
for (var prop of __getOwnPropSymbols$1y(b)) {
|
|
2589
|
+
if (__propIsEnum$1y.call(b, prop))
|
|
2590
|
+
__defNormalProp$1y(a, prop, b[prop]);
|
|
2536
2591
|
}
|
|
2537
2592
|
return a;
|
|
2538
2593
|
};
|
|
2539
|
-
var __spreadProps$
|
|
2540
|
-
var __objRest$
|
|
2594
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
2595
|
+
var __objRest$12 = (source, exclude) => {
|
|
2541
2596
|
var target = {};
|
|
2542
2597
|
for (var prop in source)
|
|
2543
|
-
if (__hasOwnProp$
|
|
2598
|
+
if (__hasOwnProp$1y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2544
2599
|
target[prop] = source[prop];
|
|
2545
|
-
if (source != null && __getOwnPropSymbols$
|
|
2546
|
-
for (var prop of __getOwnPropSymbols$
|
|
2547
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2600
|
+
if (source != null && __getOwnPropSymbols$1y)
|
|
2601
|
+
for (var prop of __getOwnPropSymbols$1y(source)) {
|
|
2602
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1y.call(source, prop))
|
|
2548
2603
|
target[prop] = source[prop];
|
|
2549
2604
|
}
|
|
2550
2605
|
return target;
|
|
@@ -2559,7 +2614,7 @@
|
|
|
2559
2614
|
icon,
|
|
2560
2615
|
value,
|
|
2561
2616
|
iconPlacement = "left"
|
|
2562
|
-
} = _a, rest = __objRest$
|
|
2617
|
+
} = _a, rest = __objRest$12(_a, [
|
|
2563
2618
|
"children",
|
|
2564
2619
|
"size",
|
|
2565
2620
|
"variant",
|
|
@@ -2583,7 +2638,7 @@
|
|
|
2583
2638
|
};
|
|
2584
2639
|
const focusRing = isFocused ? focusStyles : {};
|
|
2585
2640
|
const isSelected = isMulti ? state.isSelected(value) : state.selectedValue === value;
|
|
2586
|
-
const flipButtonProps = __spreadProps$
|
|
2641
|
+
const flipButtonProps = __spreadProps$t(__spreadValues$1y({}, utils.mergeProps(inputProps, focusProps)), {
|
|
2587
2642
|
ref,
|
|
2588
2643
|
style: { opacity: "0", width: "0", height: "0" },
|
|
2589
2644
|
"aria-label": isMulti ? "Checkbox-input" : "Radio-input"
|
|
@@ -2595,7 +2650,7 @@
|
|
|
2595
2650
|
as: "label",
|
|
2596
2651
|
cursor: "pointer"
|
|
2597
2652
|
};
|
|
2598
|
-
return typeof children === "function" ? children(__spreadValues$
|
|
2653
|
+
return typeof children === "function" ? children(__spreadValues$1y({
|
|
2599
2654
|
state,
|
|
2600
2655
|
containerProps,
|
|
2601
2656
|
flipButtonProps,
|
|
@@ -2614,39 +2669,39 @@
|
|
|
2614
2669
|
"aria-disabled": isDisabled,
|
|
2615
2670
|
as: "label"
|
|
2616
2671
|
},
|
|
2617
|
-
/* @__PURE__ */ React.createElement("input", __spreadValues$
|
|
2672
|
+
/* @__PURE__ */ React.createElement("input", __spreadValues$1y({}, flipButtonProps)),
|
|
2618
2673
|
icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon$1, { as: icon || icons.CheckSolid, sx: buttonIcon }) : isSelected && iconPlacement !== "none" && /* @__PURE__ */ React.createElement(react.SlideFade, { in: isSelected }, /* @__PURE__ */ React.createElement(Icon$1, { as: icon || icons.CheckSolid, sx: buttonIcon })),
|
|
2619
2674
|
/* @__PURE__ */ React.createElement(react.Text, { textAlign: "center" }, children)
|
|
2620
2675
|
);
|
|
2621
2676
|
};
|
|
2622
2677
|
|
|
2623
|
-
var __defProp$
|
|
2624
|
-
var __defProps$
|
|
2625
|
-
var __getOwnPropDescs$
|
|
2626
|
-
var __getOwnPropSymbols$
|
|
2627
|
-
var __hasOwnProp$
|
|
2628
|
-
var __propIsEnum$
|
|
2629
|
-
var __defNormalProp$
|
|
2630
|
-
var __spreadValues$
|
|
2678
|
+
var __defProp$1x = Object.defineProperty;
|
|
2679
|
+
var __defProps$s = Object.defineProperties;
|
|
2680
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
|
2681
|
+
var __getOwnPropSymbols$1x = Object.getOwnPropertySymbols;
|
|
2682
|
+
var __hasOwnProp$1x = Object.prototype.hasOwnProperty;
|
|
2683
|
+
var __propIsEnum$1x = Object.prototype.propertyIsEnumerable;
|
|
2684
|
+
var __defNormalProp$1x = (obj, key, value) => key in obj ? __defProp$1x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2685
|
+
var __spreadValues$1x = (a, b) => {
|
|
2631
2686
|
for (var prop in b || (b = {}))
|
|
2632
|
-
if (__hasOwnProp$
|
|
2633
|
-
__defNormalProp$
|
|
2634
|
-
if (__getOwnPropSymbols$
|
|
2635
|
-
for (var prop of __getOwnPropSymbols$
|
|
2636
|
-
if (__propIsEnum$
|
|
2637
|
-
__defNormalProp$
|
|
2687
|
+
if (__hasOwnProp$1x.call(b, prop))
|
|
2688
|
+
__defNormalProp$1x(a, prop, b[prop]);
|
|
2689
|
+
if (__getOwnPropSymbols$1x)
|
|
2690
|
+
for (var prop of __getOwnPropSymbols$1x(b)) {
|
|
2691
|
+
if (__propIsEnum$1x.call(b, prop))
|
|
2692
|
+
__defNormalProp$1x(a, prop, b[prop]);
|
|
2638
2693
|
}
|
|
2639
2694
|
return a;
|
|
2640
2695
|
};
|
|
2641
|
-
var __spreadProps$
|
|
2642
|
-
var __objRest$
|
|
2696
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
2697
|
+
var __objRest$11 = (source, exclude) => {
|
|
2643
2698
|
var target = {};
|
|
2644
2699
|
for (var prop in source)
|
|
2645
|
-
if (__hasOwnProp$
|
|
2700
|
+
if (__hasOwnProp$1x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2646
2701
|
target[prop] = source[prop];
|
|
2647
|
-
if (source != null && __getOwnPropSymbols$
|
|
2648
|
-
for (var prop of __getOwnPropSymbols$
|
|
2649
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2702
|
+
if (source != null && __getOwnPropSymbols$1x)
|
|
2703
|
+
for (var prop of __getOwnPropSymbols$1x(source)) {
|
|
2704
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1x.call(source, prop))
|
|
2650
2705
|
target[prop] = source[prop];
|
|
2651
2706
|
}
|
|
2652
2707
|
return target;
|
|
@@ -2663,7 +2718,7 @@
|
|
|
2663
2718
|
variant,
|
|
2664
2719
|
icon,
|
|
2665
2720
|
sx = {}
|
|
2666
|
-
} = _a, rest = __objRest$
|
|
2721
|
+
} = _a, rest = __objRest$11(_a, [
|
|
2667
2722
|
"isMulti",
|
|
2668
2723
|
"name",
|
|
2669
2724
|
"children",
|
|
@@ -2678,7 +2733,7 @@
|
|
|
2678
2733
|
const { state, flipButtonGroupProps } = useFlipButton(props, isMulti);
|
|
2679
2734
|
const numberOfButtons = React.Children.count(children);
|
|
2680
2735
|
const childrenWithProps = React.Children.toArray(children).map(
|
|
2681
|
-
(child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$
|
|
2736
|
+
(child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$1x({
|
|
2682
2737
|
key: child.props.value,
|
|
2683
2738
|
isMulti,
|
|
2684
2739
|
variant,
|
|
@@ -2697,7 +2752,7 @@
|
|
|
2697
2752
|
const restWithoutOnChange = ramda.omit(["onChange"], rest);
|
|
2698
2753
|
return /* @__PURE__ */ React.createElement(
|
|
2699
2754
|
react.Stack,
|
|
2700
|
-
__spreadValues$
|
|
2755
|
+
__spreadValues$1x(__spreadProps$s(__spreadValues$1x({}, flipButtonGroupProps), {
|
|
2701
2756
|
direction,
|
|
2702
2757
|
id: name,
|
|
2703
2758
|
spacing: 0,
|
|
@@ -2707,30 +2762,30 @@
|
|
|
2707
2762
|
);
|
|
2708
2763
|
};
|
|
2709
2764
|
|
|
2710
|
-
var __defProp$
|
|
2711
|
-
var __getOwnPropSymbols$
|
|
2712
|
-
var __hasOwnProp$
|
|
2713
|
-
var __propIsEnum$
|
|
2714
|
-
var __defNormalProp$
|
|
2715
|
-
var __spreadValues$
|
|
2765
|
+
var __defProp$1w = Object.defineProperty;
|
|
2766
|
+
var __getOwnPropSymbols$1w = Object.getOwnPropertySymbols;
|
|
2767
|
+
var __hasOwnProp$1w = Object.prototype.hasOwnProperty;
|
|
2768
|
+
var __propIsEnum$1w = Object.prototype.propertyIsEnumerable;
|
|
2769
|
+
var __defNormalProp$1w = (obj, key, value) => key in obj ? __defProp$1w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2770
|
+
var __spreadValues$1w = (a, b) => {
|
|
2716
2771
|
for (var prop in b || (b = {}))
|
|
2717
|
-
if (__hasOwnProp$
|
|
2718
|
-
__defNormalProp$
|
|
2719
|
-
if (__getOwnPropSymbols$
|
|
2720
|
-
for (var prop of __getOwnPropSymbols$
|
|
2721
|
-
if (__propIsEnum$
|
|
2722
|
-
__defNormalProp$
|
|
2772
|
+
if (__hasOwnProp$1w.call(b, prop))
|
|
2773
|
+
__defNormalProp$1w(a, prop, b[prop]);
|
|
2774
|
+
if (__getOwnPropSymbols$1w)
|
|
2775
|
+
for (var prop of __getOwnPropSymbols$1w(b)) {
|
|
2776
|
+
if (__propIsEnum$1w.call(b, prop))
|
|
2777
|
+
__defNormalProp$1w(a, prop, b[prop]);
|
|
2723
2778
|
}
|
|
2724
2779
|
return a;
|
|
2725
2780
|
};
|
|
2726
|
-
var __objRest$
|
|
2781
|
+
var __objRest$10 = (source, exclude) => {
|
|
2727
2782
|
var target = {};
|
|
2728
2783
|
for (var prop in source)
|
|
2729
|
-
if (__hasOwnProp$
|
|
2784
|
+
if (__hasOwnProp$1w.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2730
2785
|
target[prop] = source[prop];
|
|
2731
|
-
if (source != null && __getOwnPropSymbols$
|
|
2732
|
-
for (var prop of __getOwnPropSymbols$
|
|
2733
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
2786
|
+
if (source != null && __getOwnPropSymbols$1w)
|
|
2787
|
+
for (var prop of __getOwnPropSymbols$1w(source)) {
|
|
2788
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1w.call(source, prop))
|
|
2734
2789
|
target[prop] = source[prop];
|
|
2735
2790
|
}
|
|
2736
2791
|
return target;
|
|
@@ -2745,7 +2800,7 @@
|
|
|
2745
2800
|
iconPlacement = "left",
|
|
2746
2801
|
onChange: onChangeCallback = ramda.identity,
|
|
2747
2802
|
validate
|
|
2748
|
-
} = _b, rest = __objRest$
|
|
2803
|
+
} = _b, rest = __objRest$10(_b, [
|
|
2749
2804
|
"name",
|
|
2750
2805
|
"label",
|
|
2751
2806
|
"children",
|
|
@@ -2767,7 +2822,7 @@
|
|
|
2767
2822
|
},
|
|
2768
2823
|
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
2769
2824
|
FlipButtonGroup,
|
|
2770
|
-
__spreadValues$
|
|
2825
|
+
__spreadValues$1w({
|
|
2771
2826
|
name,
|
|
2772
2827
|
onChange: (e) => {
|
|
2773
2828
|
onChange(e);
|
|
@@ -2782,32 +2837,32 @@
|
|
|
2782
2837
|
);
|
|
2783
2838
|
});
|
|
2784
2839
|
|
|
2785
|
-
var __defProp$
|
|
2786
|
-
var __defProps$
|
|
2787
|
-
var __getOwnPropDescs$
|
|
2788
|
-
var __getOwnPropSymbols$
|
|
2789
|
-
var __hasOwnProp$
|
|
2790
|
-
var __propIsEnum$
|
|
2791
|
-
var __defNormalProp$
|
|
2792
|
-
var __spreadValues$
|
|
2840
|
+
var __defProp$1v = Object.defineProperty;
|
|
2841
|
+
var __defProps$r = Object.defineProperties;
|
|
2842
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
|
2843
|
+
var __getOwnPropSymbols$1v = Object.getOwnPropertySymbols;
|
|
2844
|
+
var __hasOwnProp$1v = Object.prototype.hasOwnProperty;
|
|
2845
|
+
var __propIsEnum$1v = Object.prototype.propertyIsEnumerable;
|
|
2846
|
+
var __defNormalProp$1v = (obj, key, value) => key in obj ? __defProp$1v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2847
|
+
var __spreadValues$1v = (a, b) => {
|
|
2793
2848
|
for (var prop in b || (b = {}))
|
|
2794
|
-
if (__hasOwnProp$
|
|
2795
|
-
__defNormalProp$
|
|
2796
|
-
if (__getOwnPropSymbols$
|
|
2797
|
-
for (var prop of __getOwnPropSymbols$
|
|
2798
|
-
if (__propIsEnum$
|
|
2799
|
-
__defNormalProp$
|
|
2849
|
+
if (__hasOwnProp$1v.call(b, prop))
|
|
2850
|
+
__defNormalProp$1v(a, prop, b[prop]);
|
|
2851
|
+
if (__getOwnPropSymbols$1v)
|
|
2852
|
+
for (var prop of __getOwnPropSymbols$1v(b)) {
|
|
2853
|
+
if (__propIsEnum$1v.call(b, prop))
|
|
2854
|
+
__defNormalProp$1v(a, prop, b[prop]);
|
|
2800
2855
|
}
|
|
2801
2856
|
return a;
|
|
2802
2857
|
};
|
|
2803
|
-
var __spreadProps$
|
|
2858
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
|
2804
2859
|
const Trigger = (props) => {
|
|
2805
2860
|
const { isDisabled, handleClick } = props;
|
|
2806
2861
|
const ref = React.useRef(null);
|
|
2807
2862
|
const { buttonProps } = button.useButton(props, ref);
|
|
2808
2863
|
return /* @__PURE__ */ React.createElement(
|
|
2809
2864
|
Button$1,
|
|
2810
|
-
__spreadProps$
|
|
2865
|
+
__spreadProps$r(__spreadValues$1v({}, buttonProps), {
|
|
2811
2866
|
ref,
|
|
2812
2867
|
size: "sm",
|
|
2813
2868
|
boxSize: 8,
|
|
@@ -2820,25 +2875,25 @@
|
|
|
2820
2875
|
);
|
|
2821
2876
|
};
|
|
2822
2877
|
|
|
2823
|
-
var __defProp$
|
|
2824
|
-
var __defProps$
|
|
2825
|
-
var __getOwnPropDescs$
|
|
2826
|
-
var __getOwnPropSymbols$
|
|
2827
|
-
var __hasOwnProp$
|
|
2828
|
-
var __propIsEnum$
|
|
2829
|
-
var __defNormalProp$
|
|
2830
|
-
var __spreadValues$
|
|
2878
|
+
var __defProp$1u = Object.defineProperty;
|
|
2879
|
+
var __defProps$q = Object.defineProperties;
|
|
2880
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
|
2881
|
+
var __getOwnPropSymbols$1u = Object.getOwnPropertySymbols;
|
|
2882
|
+
var __hasOwnProp$1u = Object.prototype.hasOwnProperty;
|
|
2883
|
+
var __propIsEnum$1u = Object.prototype.propertyIsEnumerable;
|
|
2884
|
+
var __defNormalProp$1u = (obj, key, value) => key in obj ? __defProp$1u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2885
|
+
var __spreadValues$1u = (a, b) => {
|
|
2831
2886
|
for (var prop in b || (b = {}))
|
|
2832
|
-
if (__hasOwnProp$
|
|
2833
|
-
__defNormalProp$
|
|
2834
|
-
if (__getOwnPropSymbols$
|
|
2835
|
-
for (var prop of __getOwnPropSymbols$
|
|
2836
|
-
if (__propIsEnum$
|
|
2837
|
-
__defNormalProp$
|
|
2887
|
+
if (__hasOwnProp$1u.call(b, prop))
|
|
2888
|
+
__defNormalProp$1u(a, prop, b[prop]);
|
|
2889
|
+
if (__getOwnPropSymbols$1u)
|
|
2890
|
+
for (var prop of __getOwnPropSymbols$1u(b)) {
|
|
2891
|
+
if (__propIsEnum$1u.call(b, prop))
|
|
2892
|
+
__defNormalProp$1u(a, prop, b[prop]);
|
|
2838
2893
|
}
|
|
2839
2894
|
return a;
|
|
2840
2895
|
};
|
|
2841
|
-
var __spreadProps$
|
|
2896
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
|
2842
2897
|
const DateSegment = ({ segment, state }) => {
|
|
2843
2898
|
const ref = React.useRef(null);
|
|
2844
2899
|
const { segmentProps } = datepicker.useDateSegment(segment, state, ref);
|
|
@@ -2847,7 +2902,7 @@
|
|
|
2847
2902
|
const minWidth = `${String(segment.maxValue).length}ch`;
|
|
2848
2903
|
return /* @__PURE__ */ React.createElement(
|
|
2849
2904
|
react.Box,
|
|
2850
|
-
__spreadProps$
|
|
2905
|
+
__spreadProps$q(__spreadValues$1u({}, segmentProps), {
|
|
2851
2906
|
ref,
|
|
2852
2907
|
__css: dateSegment,
|
|
2853
2908
|
minWidth: isDivider ? 0 : minWidth,
|
|
@@ -2867,28 +2922,28 @@
|
|
|
2867
2922
|
const formatQuery = (query) => mapFormat[ramda.toLower(query)[0]];
|
|
2868
2923
|
const delimeterIncluded = /([.,:;|\-/\\])/;
|
|
2869
2924
|
|
|
2870
|
-
var __defProp$
|
|
2871
|
-
var __defProps$
|
|
2872
|
-
var __getOwnPropDescs$
|
|
2873
|
-
var __getOwnPropSymbols$
|
|
2874
|
-
var __hasOwnProp$
|
|
2875
|
-
var __propIsEnum$
|
|
2876
|
-
var __defNormalProp$
|
|
2877
|
-
var __spreadValues$
|
|
2925
|
+
var __defProp$1t = Object.defineProperty;
|
|
2926
|
+
var __defProps$p = Object.defineProperties;
|
|
2927
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
|
2928
|
+
var __getOwnPropSymbols$1t = Object.getOwnPropertySymbols;
|
|
2929
|
+
var __hasOwnProp$1t = Object.prototype.hasOwnProperty;
|
|
2930
|
+
var __propIsEnum$1t = Object.prototype.propertyIsEnumerable;
|
|
2931
|
+
var __defNormalProp$1t = (obj, key, value) => key in obj ? __defProp$1t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2932
|
+
var __spreadValues$1t = (a, b) => {
|
|
2878
2933
|
for (var prop in b || (b = {}))
|
|
2879
|
-
if (__hasOwnProp$
|
|
2880
|
-
__defNormalProp$
|
|
2881
|
-
if (__getOwnPropSymbols$
|
|
2882
|
-
for (var prop of __getOwnPropSymbols$
|
|
2883
|
-
if (__propIsEnum$
|
|
2884
|
-
__defNormalProp$
|
|
2934
|
+
if (__hasOwnProp$1t.call(b, prop))
|
|
2935
|
+
__defNormalProp$1t(a, prop, b[prop]);
|
|
2936
|
+
if (__getOwnPropSymbols$1t)
|
|
2937
|
+
for (var prop of __getOwnPropSymbols$1t(b)) {
|
|
2938
|
+
if (__propIsEnum$1t.call(b, prop))
|
|
2939
|
+
__defNormalProp$1t(a, prop, b[prop]);
|
|
2885
2940
|
}
|
|
2886
2941
|
return a;
|
|
2887
2942
|
};
|
|
2888
|
-
var __spreadProps$
|
|
2943
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
|
2889
2944
|
const DateField = (props) => {
|
|
2890
2945
|
const ref = React.useRef(null);
|
|
2891
|
-
const state = datepicker$1.useDateFieldState(__spreadProps$
|
|
2946
|
+
const state = datepicker$1.useDateFieldState(__spreadProps$p(__spreadValues$1t({}, props), {
|
|
2892
2947
|
/* Hard coding the United Kingdom locale,
|
|
2893
2948
|
this enforces using english characters e.g.
|
|
2894
2949
|
yyyy and not other such as åååå or chinese, which prevents hard to predict bugs */
|
|
@@ -2901,13 +2956,13 @@
|
|
|
2901
2956
|
const { dateFormat = "dd/mm/yyyy" } = props;
|
|
2902
2957
|
const getMatchingSegment = (query, index) => ramda.find(
|
|
2903
2958
|
(segment) => segment.placeholder === formatQuery(query)
|
|
2904
|
-
)(segments) || __spreadProps$
|
|
2959
|
+
)(segments) || __spreadProps$p(__spreadValues$1t({}, segments[index]), { text: query });
|
|
2905
2960
|
const sortedSegments = ramda.split(delimeterIncluded, dateFormat).map(
|
|
2906
2961
|
(query, index) => getMatchingSegment(query, index)
|
|
2907
2962
|
);
|
|
2908
2963
|
return /* @__PURE__ */ React.createElement(
|
|
2909
2964
|
react.Box,
|
|
2910
|
-
__spreadProps$
|
|
2965
|
+
__spreadProps$p(__spreadValues$1t({}, fieldProps), {
|
|
2911
2966
|
ref,
|
|
2912
2967
|
display: "flex",
|
|
2913
2968
|
__css: dateField,
|
|
@@ -2920,44 +2975,44 @@
|
|
|
2920
2975
|
);
|
|
2921
2976
|
};
|
|
2922
2977
|
|
|
2923
|
-
var __defProp$
|
|
2924
|
-
var __defProps$
|
|
2925
|
-
var __getOwnPropDescs$
|
|
2926
|
-
var __getOwnPropSymbols$
|
|
2927
|
-
var __hasOwnProp$
|
|
2928
|
-
var __propIsEnum$
|
|
2929
|
-
var __defNormalProp$
|
|
2930
|
-
var __spreadValues$
|
|
2978
|
+
var __defProp$1s = Object.defineProperty;
|
|
2979
|
+
var __defProps$o = Object.defineProperties;
|
|
2980
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2981
|
+
var __getOwnPropSymbols$1s = Object.getOwnPropertySymbols;
|
|
2982
|
+
var __hasOwnProp$1s = Object.prototype.hasOwnProperty;
|
|
2983
|
+
var __propIsEnum$1s = Object.prototype.propertyIsEnumerable;
|
|
2984
|
+
var __defNormalProp$1s = (obj, key, value) => key in obj ? __defProp$1s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2985
|
+
var __spreadValues$1s = (a, b) => {
|
|
2931
2986
|
for (var prop in b || (b = {}))
|
|
2932
|
-
if (__hasOwnProp$
|
|
2933
|
-
__defNormalProp$
|
|
2934
|
-
if (__getOwnPropSymbols$
|
|
2935
|
-
for (var prop of __getOwnPropSymbols$
|
|
2936
|
-
if (__propIsEnum$
|
|
2937
|
-
__defNormalProp$
|
|
2987
|
+
if (__hasOwnProp$1s.call(b, prop))
|
|
2988
|
+
__defNormalProp$1s(a, prop, b[prop]);
|
|
2989
|
+
if (__getOwnPropSymbols$1s)
|
|
2990
|
+
for (var prop of __getOwnPropSymbols$1s(b)) {
|
|
2991
|
+
if (__propIsEnum$1s.call(b, prop))
|
|
2992
|
+
__defNormalProp$1s(a, prop, b[prop]);
|
|
2938
2993
|
}
|
|
2939
2994
|
return a;
|
|
2940
2995
|
};
|
|
2941
|
-
var __spreadProps$
|
|
2942
|
-
var __objRest
|
|
2996
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2997
|
+
var __objRest$$ = (source, exclude) => {
|
|
2943
2998
|
var target = {};
|
|
2944
2999
|
for (var prop in source)
|
|
2945
|
-
if (__hasOwnProp$
|
|
3000
|
+
if (__hasOwnProp$1s.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
2946
3001
|
target[prop] = source[prop];
|
|
2947
|
-
if (source != null && __getOwnPropSymbols$
|
|
2948
|
-
for (var prop of __getOwnPropSymbols$
|
|
2949
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3002
|
+
if (source != null && __getOwnPropSymbols$1s)
|
|
3003
|
+
for (var prop of __getOwnPropSymbols$1s(source)) {
|
|
3004
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1s.call(source, prop))
|
|
2950
3005
|
target[prop] = source[prop];
|
|
2951
3006
|
}
|
|
2952
3007
|
return target;
|
|
2953
3008
|
};
|
|
2954
3009
|
const StyledField = React.forwardRef(
|
|
2955
3010
|
(_a, ref) => {
|
|
2956
|
-
var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest
|
|
3011
|
+
var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest$$(_b, ["isInvalid", "isDisabled", "children", "variant"]);
|
|
2957
3012
|
const { styledField } = react.useMultiStyleConfig("DatePicker", { variant });
|
|
2958
3013
|
return /* @__PURE__ */ React.createElement(
|
|
2959
3014
|
react.Box,
|
|
2960
|
-
__spreadProps$
|
|
3015
|
+
__spreadProps$o(__spreadValues$1s({}, rest), {
|
|
2961
3016
|
ref,
|
|
2962
3017
|
"aria-invalid": isInvalid,
|
|
2963
3018
|
"aria-disabled": isDisabled,
|
|
@@ -2971,27 +3026,7 @@
|
|
|
2971
3026
|
}
|
|
2972
3027
|
);
|
|
2973
3028
|
|
|
2974
|
-
var __defProp$1s = Object.defineProperty;
|
|
2975
|
-
var __getOwnPropSymbols$1s = Object.getOwnPropertySymbols;
|
|
2976
|
-
var __hasOwnProp$1s = Object.prototype.hasOwnProperty;
|
|
2977
|
-
var __propIsEnum$1s = Object.prototype.propertyIsEnumerable;
|
|
2978
|
-
var __defNormalProp$1s = (obj, key, value) => key in obj ? __defProp$1s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2979
|
-
var __spreadValues$1s = (a, b) => {
|
|
2980
|
-
for (var prop in b || (b = {}))
|
|
2981
|
-
if (__hasOwnProp$1s.call(b, prop))
|
|
2982
|
-
__defNormalProp$1s(a, prop, b[prop]);
|
|
2983
|
-
if (__getOwnPropSymbols$1s)
|
|
2984
|
-
for (var prop of __getOwnPropSymbols$1s(b)) {
|
|
2985
|
-
if (__propIsEnum$1s.call(b, prop))
|
|
2986
|
-
__defNormalProp$1s(a, prop, b[prop]);
|
|
2987
|
-
}
|
|
2988
|
-
return a;
|
|
2989
|
-
};
|
|
2990
|
-
const Table$1 = (props) => /* @__PURE__ */ React.createElement(react.Table, __spreadValues$1s({}, props));
|
|
2991
|
-
|
|
2992
3029
|
var __defProp$1r = Object.defineProperty;
|
|
2993
|
-
var __defProps$o = Object.defineProperties;
|
|
2994
|
-
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
|
2995
3030
|
var __getOwnPropSymbols$1r = Object.getOwnPropertySymbols;
|
|
2996
3031
|
var __hasOwnProp$1r = Object.prototype.hasOwnProperty;
|
|
2997
3032
|
var __propIsEnum$1r = Object.prototype.propertyIsEnumerable;
|
|
@@ -3007,7 +3042,27 @@
|
|
|
3007
3042
|
}
|
|
3008
3043
|
return a;
|
|
3009
3044
|
};
|
|
3010
|
-
|
|
3045
|
+
const Table$1 = (props) => /* @__PURE__ */ React.createElement(react.Table, __spreadValues$1r({}, props));
|
|
3046
|
+
|
|
3047
|
+
var __defProp$1q = Object.defineProperty;
|
|
3048
|
+
var __defProps$n = Object.defineProperties;
|
|
3049
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
|
3050
|
+
var __getOwnPropSymbols$1q = Object.getOwnPropertySymbols;
|
|
3051
|
+
var __hasOwnProp$1q = Object.prototype.hasOwnProperty;
|
|
3052
|
+
var __propIsEnum$1q = Object.prototype.propertyIsEnumerable;
|
|
3053
|
+
var __defNormalProp$1q = (obj, key, value) => key in obj ? __defProp$1q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3054
|
+
var __spreadValues$1q = (a, b) => {
|
|
3055
|
+
for (var prop in b || (b = {}))
|
|
3056
|
+
if (__hasOwnProp$1q.call(b, prop))
|
|
3057
|
+
__defNormalProp$1q(a, prop, b[prop]);
|
|
3058
|
+
if (__getOwnPropSymbols$1q)
|
|
3059
|
+
for (var prop of __getOwnPropSymbols$1q(b)) {
|
|
3060
|
+
if (__propIsEnum$1q.call(b, prop))
|
|
3061
|
+
__defNormalProp$1q(a, prop, b[prop]);
|
|
3062
|
+
}
|
|
3063
|
+
return a;
|
|
3064
|
+
};
|
|
3065
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
|
3011
3066
|
const CalendarCell = ({
|
|
3012
3067
|
state,
|
|
3013
3068
|
date: date$1,
|
|
@@ -3021,9 +3076,9 @@
|
|
|
3021
3076
|
);
|
|
3022
3077
|
const isToday = date$1.compare(date.today(state.timeZone)) === 0;
|
|
3023
3078
|
const isOutsideMonth = !date.isSameMonth(currentMonth, date$1);
|
|
3024
|
-
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$
|
|
3079
|
+
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$1q({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
3025
3080
|
Button$1,
|
|
3026
|
-
__spreadProps$
|
|
3081
|
+
__spreadProps$n(__spreadValues$1q({}, buttonProps), {
|
|
3027
3082
|
ref,
|
|
3028
3083
|
borderRadius: "xs",
|
|
3029
3084
|
boxSize: 8,
|
|
@@ -3046,41 +3101,41 @@
|
|
|
3046
3101
|
return /* @__PURE__ */ React.createElement(system.chakra.tr, null, weekDaysWithIds.map(({ label, _id }) => /* @__PURE__ */ React.createElement(system.chakra.th, { key: _id, __css: dayLabel }, label)));
|
|
3047
3102
|
});
|
|
3048
3103
|
|
|
3049
|
-
var __defProp$
|
|
3050
|
-
var __getOwnPropSymbols$
|
|
3051
|
-
var __hasOwnProp$
|
|
3052
|
-
var __propIsEnum$
|
|
3053
|
-
var __defNormalProp$
|
|
3054
|
-
var __spreadValues$
|
|
3104
|
+
var __defProp$1p = Object.defineProperty;
|
|
3105
|
+
var __getOwnPropSymbols$1p = Object.getOwnPropertySymbols;
|
|
3106
|
+
var __hasOwnProp$1p = Object.prototype.hasOwnProperty;
|
|
3107
|
+
var __propIsEnum$1p = Object.prototype.propertyIsEnumerable;
|
|
3108
|
+
var __defNormalProp$1p = (obj, key, value) => key in obj ? __defProp$1p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3109
|
+
var __spreadValues$1p = (a, b) => {
|
|
3055
3110
|
for (var prop in b || (b = {}))
|
|
3056
|
-
if (__hasOwnProp$
|
|
3057
|
-
__defNormalProp$
|
|
3058
|
-
if (__getOwnPropSymbols$
|
|
3059
|
-
for (var prop of __getOwnPropSymbols$
|
|
3060
|
-
if (__propIsEnum$
|
|
3061
|
-
__defNormalProp$
|
|
3111
|
+
if (__hasOwnProp$1p.call(b, prop))
|
|
3112
|
+
__defNormalProp$1p(a, prop, b[prop]);
|
|
3113
|
+
if (__getOwnPropSymbols$1p)
|
|
3114
|
+
for (var prop of __getOwnPropSymbols$1p(b)) {
|
|
3115
|
+
if (__propIsEnum$1p.call(b, prop))
|
|
3116
|
+
__defNormalProp$1p(a, prop, b[prop]);
|
|
3062
3117
|
}
|
|
3063
3118
|
return a;
|
|
3064
3119
|
};
|
|
3065
|
-
var __objRest
|
|
3120
|
+
var __objRest$_ = (source, exclude) => {
|
|
3066
3121
|
var target = {};
|
|
3067
3122
|
for (var prop in source)
|
|
3068
|
-
if (__hasOwnProp$
|
|
3123
|
+
if (__hasOwnProp$1p.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3069
3124
|
target[prop] = source[prop];
|
|
3070
|
-
if (source != null && __getOwnPropSymbols$
|
|
3071
|
-
for (var prop of __getOwnPropSymbols$
|
|
3072
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3125
|
+
if (source != null && __getOwnPropSymbols$1p)
|
|
3126
|
+
for (var prop of __getOwnPropSymbols$1p(source)) {
|
|
3127
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1p.call(source, prop))
|
|
3073
3128
|
target[prop] = source[prop];
|
|
3074
3129
|
}
|
|
3075
3130
|
return target;
|
|
3076
3131
|
};
|
|
3077
3132
|
const CalendarGrid = React.memo(
|
|
3078
3133
|
(_a) => {
|
|
3079
|
-
var _b = _a, { state, locale } = _b, rest = __objRest
|
|
3134
|
+
var _b = _a, { state, locale } = _b, rest = __objRest$_(_b, ["state", "locale"]);
|
|
3080
3135
|
const startDate = state.visibleRange.start;
|
|
3081
3136
|
const { gridProps, headerProps, weekDays } = calendar.useCalendarGrid(rest, state);
|
|
3082
3137
|
const weeksInMonth = date.getWeeksInMonth(startDate, locale);
|
|
3083
|
-
return /* @__PURE__ */ React.createElement(Table$1, __spreadValues$
|
|
3138
|
+
return /* @__PURE__ */ React.createElement(Table$1, __spreadValues$1p({ variant: "unstyled" }, gridProps), /* @__PURE__ */ React.createElement(react.Thead, __spreadValues$1p({}, headerProps), /* @__PURE__ */ React.createElement(DayLabels, { weekDays })), /* @__PURE__ */ React.createElement(react.Tbody, null, ramda.times((weekIndex) => /* @__PURE__ */ React.createElement(react.Tr, { key: weekIndex }, state.getDatesInWeek(weekIndex, startDate).map(
|
|
3084
3139
|
(date) => date ? /* @__PURE__ */ React.createElement(
|
|
3085
3140
|
CalendarCell,
|
|
3086
3141
|
{
|
|
@@ -3094,44 +3149,44 @@
|
|
|
3094
3149
|
}
|
|
3095
3150
|
);
|
|
3096
3151
|
|
|
3097
|
-
var __defProp$
|
|
3098
|
-
var __defProps$
|
|
3099
|
-
var __getOwnPropDescs$
|
|
3100
|
-
var __getOwnPropSymbols$
|
|
3101
|
-
var __hasOwnProp$
|
|
3102
|
-
var __propIsEnum$
|
|
3103
|
-
var __defNormalProp$
|
|
3104
|
-
var __spreadValues$
|
|
3152
|
+
var __defProp$1o = Object.defineProperty;
|
|
3153
|
+
var __defProps$m = Object.defineProperties;
|
|
3154
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
|
3155
|
+
var __getOwnPropSymbols$1o = Object.getOwnPropertySymbols;
|
|
3156
|
+
var __hasOwnProp$1o = Object.prototype.hasOwnProperty;
|
|
3157
|
+
var __propIsEnum$1o = Object.prototype.propertyIsEnumerable;
|
|
3158
|
+
var __defNormalProp$1o = (obj, key, value) => key in obj ? __defProp$1o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3159
|
+
var __spreadValues$1o = (a, b) => {
|
|
3105
3160
|
for (var prop in b || (b = {}))
|
|
3106
|
-
if (__hasOwnProp$
|
|
3107
|
-
__defNormalProp$
|
|
3108
|
-
if (__getOwnPropSymbols$
|
|
3109
|
-
for (var prop of __getOwnPropSymbols$
|
|
3110
|
-
if (__propIsEnum$
|
|
3111
|
-
__defNormalProp$
|
|
3161
|
+
if (__hasOwnProp$1o.call(b, prop))
|
|
3162
|
+
__defNormalProp$1o(a, prop, b[prop]);
|
|
3163
|
+
if (__getOwnPropSymbols$1o)
|
|
3164
|
+
for (var prop of __getOwnPropSymbols$1o(b)) {
|
|
3165
|
+
if (__propIsEnum$1o.call(b, prop))
|
|
3166
|
+
__defNormalProp$1o(a, prop, b[prop]);
|
|
3112
3167
|
}
|
|
3113
3168
|
return a;
|
|
3114
3169
|
};
|
|
3115
|
-
var __spreadProps$
|
|
3116
|
-
var __objRest$
|
|
3170
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
3171
|
+
var __objRest$Z = (source, exclude) => {
|
|
3117
3172
|
var target = {};
|
|
3118
3173
|
for (var prop in source)
|
|
3119
|
-
if (__hasOwnProp$
|
|
3174
|
+
if (__hasOwnProp$1o.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3120
3175
|
target[prop] = source[prop];
|
|
3121
|
-
if (source != null && __getOwnPropSymbols$
|
|
3122
|
-
for (var prop of __getOwnPropSymbols$
|
|
3123
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3176
|
+
if (source != null && __getOwnPropSymbols$1o)
|
|
3177
|
+
for (var prop of __getOwnPropSymbols$1o(source)) {
|
|
3178
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1o.call(source, prop))
|
|
3124
3179
|
target[prop] = source[prop];
|
|
3125
3180
|
}
|
|
3126
3181
|
return target;
|
|
3127
3182
|
};
|
|
3128
3183
|
const MonthButton = (_a) => {
|
|
3129
|
-
var _b = _a, { children } = _b, rest = __objRest$
|
|
3184
|
+
var _b = _a, { children } = _b, rest = __objRest$Z(_b, ["children"]);
|
|
3130
3185
|
const ref = React.useRef(null);
|
|
3131
3186
|
const { buttonProps } = button.useButton(rest, ref);
|
|
3132
3187
|
return /* @__PURE__ */ React.createElement(
|
|
3133
3188
|
Button$1,
|
|
3134
|
-
__spreadProps$
|
|
3189
|
+
__spreadProps$m(__spreadValues$1o({}, buttonProps), {
|
|
3135
3190
|
boxSize: 8,
|
|
3136
3191
|
size: "xs",
|
|
3137
3192
|
variant: "ghost",
|
|
@@ -3280,29 +3335,29 @@
|
|
|
3280
3335
|
return /* @__PURE__ */ React.createElement(YearSelect, { onChange, years });
|
|
3281
3336
|
};
|
|
3282
3337
|
|
|
3283
|
-
var __defProp$
|
|
3284
|
-
var __defProps$
|
|
3285
|
-
var __getOwnPropDescs$
|
|
3286
|
-
var __getOwnPropSymbols$
|
|
3287
|
-
var __hasOwnProp$
|
|
3288
|
-
var __propIsEnum$
|
|
3289
|
-
var __defNormalProp$
|
|
3290
|
-
var __spreadValues$
|
|
3338
|
+
var __defProp$1n = Object.defineProperty;
|
|
3339
|
+
var __defProps$l = Object.defineProperties;
|
|
3340
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
3341
|
+
var __getOwnPropSymbols$1n = Object.getOwnPropertySymbols;
|
|
3342
|
+
var __hasOwnProp$1n = Object.prototype.hasOwnProperty;
|
|
3343
|
+
var __propIsEnum$1n = Object.prototype.propertyIsEnumerable;
|
|
3344
|
+
var __defNormalProp$1n = (obj, key, value) => key in obj ? __defProp$1n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3345
|
+
var __spreadValues$1n = (a, b) => {
|
|
3291
3346
|
for (var prop in b || (b = {}))
|
|
3292
|
-
if (__hasOwnProp$
|
|
3293
|
-
__defNormalProp$
|
|
3294
|
-
if (__getOwnPropSymbols$
|
|
3295
|
-
for (var prop of __getOwnPropSymbols$
|
|
3296
|
-
if (__propIsEnum$
|
|
3297
|
-
__defNormalProp$
|
|
3347
|
+
if (__hasOwnProp$1n.call(b, prop))
|
|
3348
|
+
__defNormalProp$1n(a, prop, b[prop]);
|
|
3349
|
+
if (__getOwnPropSymbols$1n)
|
|
3350
|
+
for (var prop of __getOwnPropSymbols$1n(b)) {
|
|
3351
|
+
if (__propIsEnum$1n.call(b, prop))
|
|
3352
|
+
__defNormalProp$1n(a, prop, b[prop]);
|
|
3298
3353
|
}
|
|
3299
3354
|
return a;
|
|
3300
3355
|
};
|
|
3301
|
-
var __spreadProps$
|
|
3356
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
3302
3357
|
const Calendar$1 = (props) => {
|
|
3303
3358
|
const { locale } = i18n.useLocale();
|
|
3304
3359
|
const { container } = react.useMultiStyleConfig("Calendar");
|
|
3305
|
-
const state = calendar$1.useCalendarState(__spreadProps$
|
|
3360
|
+
const state = calendar$1.useCalendarState(__spreadProps$l(__spreadValues$1n({}, props), {
|
|
3306
3361
|
locale,
|
|
3307
3362
|
createCalendar: () => new date.GregorianCalendar()
|
|
3308
3363
|
}));
|
|
@@ -3310,28 +3365,28 @@
|
|
|
3310
3365
|
props,
|
|
3311
3366
|
state
|
|
3312
3367
|
);
|
|
3313
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$
|
|
3368
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$l(__spreadValues$1n({}, calendarProps), { __css: container }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "2" }, /* @__PURE__ */ React.createElement(YearSelectCalendar, { state })), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2 }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1n({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1n({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 })))), /* @__PURE__ */ React.createElement(CalendarGrid, { state, locale })));
|
|
3314
3369
|
};
|
|
3315
3370
|
|
|
3316
|
-
var __defProp$
|
|
3317
|
-
var __defProps$
|
|
3318
|
-
var __getOwnPropDescs$
|
|
3319
|
-
var __getOwnPropSymbols$
|
|
3320
|
-
var __hasOwnProp$
|
|
3321
|
-
var __propIsEnum$
|
|
3322
|
-
var __defNormalProp$
|
|
3323
|
-
var __spreadValues$
|
|
3371
|
+
var __defProp$1m = Object.defineProperty;
|
|
3372
|
+
var __defProps$k = Object.defineProperties;
|
|
3373
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3374
|
+
var __getOwnPropSymbols$1m = Object.getOwnPropertySymbols;
|
|
3375
|
+
var __hasOwnProp$1m = Object.prototype.hasOwnProperty;
|
|
3376
|
+
var __propIsEnum$1m = Object.prototype.propertyIsEnumerable;
|
|
3377
|
+
var __defNormalProp$1m = (obj, key, value) => key in obj ? __defProp$1m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3378
|
+
var __spreadValues$1m = (a, b) => {
|
|
3324
3379
|
for (var prop in b || (b = {}))
|
|
3325
|
-
if (__hasOwnProp$
|
|
3326
|
-
__defNormalProp$
|
|
3327
|
-
if (__getOwnPropSymbols$
|
|
3328
|
-
for (var prop of __getOwnPropSymbols$
|
|
3329
|
-
if (__propIsEnum$
|
|
3330
|
-
__defNormalProp$
|
|
3380
|
+
if (__hasOwnProp$1m.call(b, prop))
|
|
3381
|
+
__defNormalProp$1m(a, prop, b[prop]);
|
|
3382
|
+
if (__getOwnPropSymbols$1m)
|
|
3383
|
+
for (var prop of __getOwnPropSymbols$1m(b)) {
|
|
3384
|
+
if (__propIsEnum$1m.call(b, prop))
|
|
3385
|
+
__defNormalProp$1m(a, prop, b[prop]);
|
|
3331
3386
|
}
|
|
3332
3387
|
return a;
|
|
3333
3388
|
};
|
|
3334
|
-
var __spreadProps$
|
|
3389
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
3335
3390
|
const DatePicker$1 = (props) => {
|
|
3336
3391
|
const {
|
|
3337
3392
|
isDisabled,
|
|
@@ -3344,12 +3399,12 @@
|
|
|
3344
3399
|
} = props;
|
|
3345
3400
|
const ref = React.useRef();
|
|
3346
3401
|
const { group } = react.useMultiStyleConfig("DatePicker");
|
|
3347
|
-
const state = datepicker$1.useDatePickerState(__spreadProps$
|
|
3402
|
+
const state = datepicker$1.useDatePickerState(__spreadProps$k(__spreadValues$1m({}, props), {
|
|
3348
3403
|
shouldCloseOnSelect: false,
|
|
3349
3404
|
hideTimeZone: true
|
|
3350
3405
|
}));
|
|
3351
3406
|
const { buttonProps, fieldProps, calendarProps, groupProps, dialogProps } = datepicker.useDatePicker(
|
|
3352
|
-
__spreadProps$
|
|
3407
|
+
__spreadProps$k(__spreadValues$1m({}, props), { minValue: minValue || date.parseDate("1994-03-08") }),
|
|
3353
3408
|
state,
|
|
3354
3409
|
ref
|
|
3355
3410
|
);
|
|
@@ -3361,7 +3416,7 @@
|
|
|
3361
3416
|
onClose: () => state.setOpen(false),
|
|
3362
3417
|
placement: "bottom-end"
|
|
3363
3418
|
},
|
|
3364
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$
|
|
3419
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$k(__spreadValues$1m({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(StyledField, { isDisabled, isInvalid, variant }, /* @__PURE__ */ React.createElement(
|
|
3365
3420
|
react.Box,
|
|
3366
3421
|
{
|
|
3367
3422
|
paddingInlineStart: "1a",
|
|
@@ -3369,7 +3424,7 @@
|
|
|
3369
3424
|
},
|
|
3370
3425
|
/* @__PURE__ */ React.createElement(
|
|
3371
3426
|
DateField,
|
|
3372
|
-
__spreadProps$
|
|
3427
|
+
__spreadProps$k(__spreadValues$1m({}, fieldProps), {
|
|
3373
3428
|
dateFormat
|
|
3374
3429
|
})
|
|
3375
3430
|
)
|
|
@@ -3381,7 +3436,7 @@
|
|
|
3381
3436
|
},
|
|
3382
3437
|
/* @__PURE__ */ React.createElement(
|
|
3383
3438
|
Trigger,
|
|
3384
|
-
__spreadProps$
|
|
3439
|
+
__spreadProps$k(__spreadValues$1m({}, buttonProps), {
|
|
3385
3440
|
isDisabled,
|
|
3386
3441
|
handleClick: togglePopup
|
|
3387
3442
|
})
|
|
@@ -3399,50 +3454,50 @@
|
|
|
3399
3454
|
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.XCloseSolid })
|
|
3400
3455
|
}
|
|
3401
3456
|
))),
|
|
3402
|
-
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$
|
|
3457
|
+
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$k(__spreadValues$1m({}, dialogProps), { ref, w: 64, border: "none" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(Calendar$1, __spreadValues$1m({}, calendarProps))))
|
|
3403
3458
|
);
|
|
3404
3459
|
};
|
|
3405
3460
|
|
|
3406
|
-
var __defProp$
|
|
3407
|
-
var __getOwnPropSymbols$
|
|
3408
|
-
var __hasOwnProp$
|
|
3409
|
-
var __propIsEnum$
|
|
3410
|
-
var __defNormalProp$
|
|
3411
|
-
var __spreadValues$
|
|
3461
|
+
var __defProp$1l = Object.defineProperty;
|
|
3462
|
+
var __getOwnPropSymbols$1l = Object.getOwnPropertySymbols;
|
|
3463
|
+
var __hasOwnProp$1l = Object.prototype.hasOwnProperty;
|
|
3464
|
+
var __propIsEnum$1l = Object.prototype.propertyIsEnumerable;
|
|
3465
|
+
var __defNormalProp$1l = (obj, key, value) => key in obj ? __defProp$1l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3466
|
+
var __spreadValues$1l = (a, b) => {
|
|
3412
3467
|
for (var prop in b || (b = {}))
|
|
3413
|
-
if (__hasOwnProp$
|
|
3414
|
-
__defNormalProp$
|
|
3415
|
-
if (__getOwnPropSymbols$
|
|
3416
|
-
for (var prop of __getOwnPropSymbols$
|
|
3417
|
-
if (__propIsEnum$
|
|
3418
|
-
__defNormalProp$
|
|
3468
|
+
if (__hasOwnProp$1l.call(b, prop))
|
|
3469
|
+
__defNormalProp$1l(a, prop, b[prop]);
|
|
3470
|
+
if (__getOwnPropSymbols$1l)
|
|
3471
|
+
for (var prop of __getOwnPropSymbols$1l(b)) {
|
|
3472
|
+
if (__propIsEnum$1l.call(b, prop))
|
|
3473
|
+
__defNormalProp$1l(a, prop, b[prop]);
|
|
3419
3474
|
}
|
|
3420
3475
|
return a;
|
|
3421
3476
|
};
|
|
3422
|
-
var __objRest$
|
|
3477
|
+
var __objRest$Y = (source, exclude) => {
|
|
3423
3478
|
var target = {};
|
|
3424
3479
|
for (var prop in source)
|
|
3425
|
-
if (__hasOwnProp$
|
|
3480
|
+
if (__hasOwnProp$1l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3426
3481
|
target[prop] = source[prop];
|
|
3427
|
-
if (source != null && __getOwnPropSymbols$
|
|
3428
|
-
for (var prop of __getOwnPropSymbols$
|
|
3429
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
3482
|
+
if (source != null && __getOwnPropSymbols$1l)
|
|
3483
|
+
for (var prop of __getOwnPropSymbols$1l(source)) {
|
|
3484
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1l.call(source, prop))
|
|
3430
3485
|
target[prop] = source[prop];
|
|
3431
3486
|
}
|
|
3432
3487
|
return target;
|
|
3433
3488
|
};
|
|
3434
3489
|
const Clickable = (_a) => {
|
|
3435
|
-
var _b = _a, { href, linkProps } = _b, rest = __objRest$
|
|
3490
|
+
var _b = _a, { href, linkProps } = _b, rest = __objRest$Y(_b, ["href", "linkProps"]);
|
|
3436
3491
|
const clickable$1 = clickable.useClickable(rest);
|
|
3437
3492
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, !ramda.isNil(href) && /* @__PURE__ */ React.createElement(
|
|
3438
3493
|
react.Link,
|
|
3439
|
-
__spreadValues$
|
|
3494
|
+
__spreadValues$1l(__spreadValues$1l({
|
|
3440
3495
|
as: reactRouterDom.Link,
|
|
3441
3496
|
_focusVisible: ring,
|
|
3442
3497
|
to: href,
|
|
3443
3498
|
_hover: { textDecoration: "none" }
|
|
3444
3499
|
}, linkProps), clickable$1)
|
|
3445
|
-
), ramda.isNil(href) && /* @__PURE__ */ React.createElement(react.chakra.button, __spreadValues$
|
|
3500
|
+
), ramda.isNil(href) && /* @__PURE__ */ React.createElement(react.chakra.button, __spreadValues$1l({ _focusVisible: ring }, clickable$1)));
|
|
3446
3501
|
};
|
|
3447
3502
|
|
|
3448
3503
|
const defaultFadeDelay = 250;
|
|
@@ -3505,73 +3560,6 @@
|
|
|
3505
3560
|
return hidden;
|
|
3506
3561
|
};
|
|
3507
3562
|
|
|
3508
|
-
var __defProp$1l = Object.defineProperty;
|
|
3509
|
-
var __getOwnPropSymbols$1l = Object.getOwnPropertySymbols;
|
|
3510
|
-
var __hasOwnProp$1l = Object.prototype.hasOwnProperty;
|
|
3511
|
-
var __propIsEnum$1l = Object.prototype.propertyIsEnumerable;
|
|
3512
|
-
var __defNormalProp$1l = (obj, key, value) => key in obj ? __defProp$1l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3513
|
-
var __spreadValues$1l = (a, b) => {
|
|
3514
|
-
for (var prop in b || (b = {}))
|
|
3515
|
-
if (__hasOwnProp$1l.call(b, prop))
|
|
3516
|
-
__defNormalProp$1l(a, prop, b[prop]);
|
|
3517
|
-
if (__getOwnPropSymbols$1l)
|
|
3518
|
-
for (var prop of __getOwnPropSymbols$1l(b)) {
|
|
3519
|
-
if (__propIsEnum$1l.call(b, prop))
|
|
3520
|
-
__defNormalProp$1l(a, prop, b[prop]);
|
|
3521
|
-
}
|
|
3522
|
-
return a;
|
|
3523
|
-
};
|
|
3524
|
-
var __objRest$Y = (source, exclude) => {
|
|
3525
|
-
var target = {};
|
|
3526
|
-
for (var prop in source)
|
|
3527
|
-
if (__hasOwnProp$1l.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3528
|
-
target[prop] = source[prop];
|
|
3529
|
-
if (source != null && __getOwnPropSymbols$1l)
|
|
3530
|
-
for (var prop of __getOwnPropSymbols$1l(source)) {
|
|
3531
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$1l.call(source, prop))
|
|
3532
|
-
target[prop] = source[prop];
|
|
3533
|
-
}
|
|
3534
|
-
return target;
|
|
3535
|
-
};
|
|
3536
|
-
const Fade = (_a) => {
|
|
3537
|
-
var _b = _a, {
|
|
3538
|
-
children,
|
|
3539
|
-
enterDuration = null,
|
|
3540
|
-
exitDuration = null,
|
|
3541
|
-
duration = null,
|
|
3542
|
-
in: show = false,
|
|
3543
|
-
disableFocus = true,
|
|
3544
|
-
hideDisplay = false,
|
|
3545
|
-
enterDelay = 0,
|
|
3546
|
-
exitDelay = 0,
|
|
3547
|
-
onTransitionComplete = ramda.identity
|
|
3548
|
-
} = _b, rest = __objRest$Y(_b, [
|
|
3549
|
-
"children",
|
|
3550
|
-
"enterDuration",
|
|
3551
|
-
"exitDuration",
|
|
3552
|
-
"duration",
|
|
3553
|
-
"in",
|
|
3554
|
-
"disableFocus",
|
|
3555
|
-
"hideDisplay",
|
|
3556
|
-
"enterDelay",
|
|
3557
|
-
"exitDelay",
|
|
3558
|
-
"onTransitionComplete"
|
|
3559
|
-
]);
|
|
3560
|
-
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3561
|
-
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3562
|
-
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3563
|
-
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3564
|
-
return /* @__PURE__ */ React.createElement(
|
|
3565
|
-
react.Fade,
|
|
3566
|
-
__spreadValues$1l({
|
|
3567
|
-
in: showWithDelay,
|
|
3568
|
-
transition,
|
|
3569
|
-
unmountOnExit: hideDisplay
|
|
3570
|
-
}, rest),
|
|
3571
|
-
childrenWithProps
|
|
3572
|
-
);
|
|
3573
|
-
};
|
|
3574
|
-
|
|
3575
3563
|
var __defProp$1k = Object.defineProperty;
|
|
3576
3564
|
var __getOwnPropSymbols$1k = Object.getOwnPropertySymbols;
|
|
3577
3565
|
var __hasOwnProp$1k = Object.prototype.hasOwnProperty;
|
|
@@ -3600,7 +3588,7 @@
|
|
|
3600
3588
|
}
|
|
3601
3589
|
return target;
|
|
3602
3590
|
};
|
|
3603
|
-
const
|
|
3591
|
+
const Fade = (_a) => {
|
|
3604
3592
|
var _b = _a, {
|
|
3605
3593
|
children,
|
|
3606
3594
|
enterDuration = null,
|
|
@@ -3629,7 +3617,7 @@
|
|
|
3629
3617
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3630
3618
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3631
3619
|
return /* @__PURE__ */ React.createElement(
|
|
3632
|
-
react.
|
|
3620
|
+
react.Fade,
|
|
3633
3621
|
__spreadValues$1k({
|
|
3634
3622
|
in: showWithDelay,
|
|
3635
3623
|
transition,
|
|
@@ -3667,7 +3655,7 @@
|
|
|
3667
3655
|
}
|
|
3668
3656
|
return target;
|
|
3669
3657
|
};
|
|
3670
|
-
const
|
|
3658
|
+
const ScaleFade = (_a) => {
|
|
3671
3659
|
var _b = _a, {
|
|
3672
3660
|
children,
|
|
3673
3661
|
enterDuration = null,
|
|
@@ -3678,7 +3666,6 @@
|
|
|
3678
3666
|
hideDisplay = false,
|
|
3679
3667
|
enterDelay = 0,
|
|
3680
3668
|
exitDelay = 0,
|
|
3681
|
-
direction = "bottom",
|
|
3682
3669
|
onTransitionComplete = ramda.identity
|
|
3683
3670
|
} = _b, rest = __objRest$W(_b, [
|
|
3684
3671
|
"children",
|
|
@@ -3690,7 +3677,6 @@
|
|
|
3690
3677
|
"hideDisplay",
|
|
3691
3678
|
"enterDelay",
|
|
3692
3679
|
"exitDelay",
|
|
3693
|
-
"direction",
|
|
3694
3680
|
"onTransitionComplete"
|
|
3695
3681
|
]);
|
|
3696
3682
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
@@ -3698,11 +3684,10 @@
|
|
|
3698
3684
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3699
3685
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3700
3686
|
return /* @__PURE__ */ React.createElement(
|
|
3701
|
-
react.
|
|
3687
|
+
react.ScaleFade,
|
|
3702
3688
|
__spreadValues$1j({
|
|
3703
3689
|
in: showWithDelay,
|
|
3704
3690
|
transition,
|
|
3705
|
-
direction,
|
|
3706
3691
|
unmountOnExit: hideDisplay
|
|
3707
3692
|
}, rest),
|
|
3708
3693
|
childrenWithProps
|
|
@@ -3737,7 +3722,7 @@
|
|
|
3737
3722
|
}
|
|
3738
3723
|
return target;
|
|
3739
3724
|
};
|
|
3740
|
-
const
|
|
3725
|
+
const Slide = (_a) => {
|
|
3741
3726
|
var _b = _a, {
|
|
3742
3727
|
children,
|
|
3743
3728
|
enterDuration = null,
|
|
@@ -3746,12 +3731,9 @@
|
|
|
3746
3731
|
in: show = false,
|
|
3747
3732
|
disableFocus = true,
|
|
3748
3733
|
hideDisplay = false,
|
|
3749
|
-
direction = "bottom",
|
|
3750
|
-
offset: delta = defaultOffset,
|
|
3751
|
-
offsetX: deltaX = 0,
|
|
3752
|
-
offsetY: deltaY = 0,
|
|
3753
3734
|
enterDelay = 0,
|
|
3754
3735
|
exitDelay = 0,
|
|
3736
|
+
direction = "bottom",
|
|
3755
3737
|
onTransitionComplete = ramda.identity
|
|
3756
3738
|
} = _b, rest = __objRest$V(_b, [
|
|
3757
3739
|
"children",
|
|
@@ -3761,26 +3743,21 @@
|
|
|
3761
3743
|
"in",
|
|
3762
3744
|
"disableFocus",
|
|
3763
3745
|
"hideDisplay",
|
|
3764
|
-
"direction",
|
|
3765
|
-
"offset",
|
|
3766
|
-
"offsetX",
|
|
3767
|
-
"offsetY",
|
|
3768
3746
|
"enterDelay",
|
|
3769
3747
|
"exitDelay",
|
|
3748
|
+
"direction",
|
|
3770
3749
|
"onTransitionComplete"
|
|
3771
3750
|
]);
|
|
3772
3751
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3773
|
-
const { offsetX, offsetY } = getOffsets(direction, delta, deltaX, deltaY);
|
|
3774
3752
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3775
3753
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3776
3754
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3777
3755
|
return /* @__PURE__ */ React.createElement(
|
|
3778
|
-
react.
|
|
3756
|
+
react.Slide,
|
|
3779
3757
|
__spreadValues$1i({
|
|
3780
3758
|
in: showWithDelay,
|
|
3781
3759
|
transition,
|
|
3782
|
-
|
|
3783
|
-
offsetY,
|
|
3760
|
+
direction,
|
|
3784
3761
|
unmountOnExit: hideDisplay
|
|
3785
3762
|
}, rest),
|
|
3786
3763
|
childrenWithProps
|
|
@@ -3815,7 +3792,7 @@
|
|
|
3815
3792
|
}
|
|
3816
3793
|
return target;
|
|
3817
3794
|
};
|
|
3818
|
-
const
|
|
3795
|
+
const SlideFade = (_a) => {
|
|
3819
3796
|
var _b = _a, {
|
|
3820
3797
|
children,
|
|
3821
3798
|
enterDuration = null,
|
|
@@ -3824,6 +3801,10 @@
|
|
|
3824
3801
|
in: show = false,
|
|
3825
3802
|
disableFocus = true,
|
|
3826
3803
|
hideDisplay = false,
|
|
3804
|
+
direction = "bottom",
|
|
3805
|
+
offset: delta = defaultOffset,
|
|
3806
|
+
offsetX: deltaX = 0,
|
|
3807
|
+
offsetY: deltaY = 0,
|
|
3827
3808
|
enterDelay = 0,
|
|
3828
3809
|
exitDelay = 0,
|
|
3829
3810
|
onTransitionComplete = ramda.identity
|
|
@@ -3835,19 +3816,26 @@
|
|
|
3835
3816
|
"in",
|
|
3836
3817
|
"disableFocus",
|
|
3837
3818
|
"hideDisplay",
|
|
3819
|
+
"direction",
|
|
3820
|
+
"offset",
|
|
3821
|
+
"offsetX",
|
|
3822
|
+
"offsetY",
|
|
3838
3823
|
"enterDelay",
|
|
3839
3824
|
"exitDelay",
|
|
3840
3825
|
"onTransitionComplete"
|
|
3841
3826
|
]);
|
|
3842
3827
|
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3828
|
+
const { offsetX, offsetY } = getOffsets(direction, delta, deltaX, deltaY);
|
|
3843
3829
|
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3844
3830
|
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3845
3831
|
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3846
3832
|
return /* @__PURE__ */ React.createElement(
|
|
3847
|
-
react.
|
|
3833
|
+
react.SlideFade,
|
|
3848
3834
|
__spreadValues$1h({
|
|
3849
3835
|
in: showWithDelay,
|
|
3850
3836
|
transition,
|
|
3837
|
+
offsetX,
|
|
3838
|
+
offsetY,
|
|
3851
3839
|
unmountOnExit: hideDisplay
|
|
3852
3840
|
}, rest),
|
|
3853
3841
|
childrenWithProps
|
|
@@ -3855,8 +3843,6 @@
|
|
|
3855
3843
|
};
|
|
3856
3844
|
|
|
3857
3845
|
var __defProp$1g = Object.defineProperty;
|
|
3858
|
-
var __defProps$k = Object.defineProperties;
|
|
3859
|
-
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
3860
3846
|
var __getOwnPropSymbols$1g = Object.getOwnPropertySymbols;
|
|
3861
3847
|
var __hasOwnProp$1g = Object.prototype.hasOwnProperty;
|
|
3862
3848
|
var __propIsEnum$1g = Object.prototype.propertyIsEnumerable;
|
|
@@ -3872,8 +3858,77 @@
|
|
|
3872
3858
|
}
|
|
3873
3859
|
return a;
|
|
3874
3860
|
};
|
|
3875
|
-
var
|
|
3876
|
-
|
|
3861
|
+
var __objRest$T = (source, exclude) => {
|
|
3862
|
+
var target = {};
|
|
3863
|
+
for (var prop in source)
|
|
3864
|
+
if (__hasOwnProp$1g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
3865
|
+
target[prop] = source[prop];
|
|
3866
|
+
if (source != null && __getOwnPropSymbols$1g)
|
|
3867
|
+
for (var prop of __getOwnPropSymbols$1g(source)) {
|
|
3868
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1g.call(source, prop))
|
|
3869
|
+
target[prop] = source[prop];
|
|
3870
|
+
}
|
|
3871
|
+
return target;
|
|
3872
|
+
};
|
|
3873
|
+
const Collapse = (_a) => {
|
|
3874
|
+
var _b = _a, {
|
|
3875
|
+
children,
|
|
3876
|
+
enterDuration = null,
|
|
3877
|
+
exitDuration = null,
|
|
3878
|
+
duration = null,
|
|
3879
|
+
in: show = false,
|
|
3880
|
+
disableFocus = true,
|
|
3881
|
+
hideDisplay = false,
|
|
3882
|
+
enterDelay = 0,
|
|
3883
|
+
exitDelay = 0,
|
|
3884
|
+
onTransitionComplete = ramda.identity
|
|
3885
|
+
} = _b, rest = __objRest$T(_b, [
|
|
3886
|
+
"children",
|
|
3887
|
+
"enterDuration",
|
|
3888
|
+
"exitDuration",
|
|
3889
|
+
"duration",
|
|
3890
|
+
"in",
|
|
3891
|
+
"disableFocus",
|
|
3892
|
+
"hideDisplay",
|
|
3893
|
+
"enterDelay",
|
|
3894
|
+
"exitDelay",
|
|
3895
|
+
"onTransitionComplete"
|
|
3896
|
+
]);
|
|
3897
|
+
const transition = getDuration(enterDuration, exitDuration, duration);
|
|
3898
|
+
const showWithDelay = useDelay(show, enterDelay, exitDelay);
|
|
3899
|
+
const isHidden = useHiddenDisplay(show, exitDelay, exitDuration, duration, onTransitionComplete);
|
|
3900
|
+
const childrenWithProps = getChildrenWithFocus(children, disableFocus, isHidden);
|
|
3901
|
+
return /* @__PURE__ */ React.createElement(
|
|
3902
|
+
react.Collapse,
|
|
3903
|
+
__spreadValues$1g({
|
|
3904
|
+
in: showWithDelay,
|
|
3905
|
+
transition,
|
|
3906
|
+
unmountOnExit: hideDisplay
|
|
3907
|
+
}, rest),
|
|
3908
|
+
childrenWithProps
|
|
3909
|
+
);
|
|
3910
|
+
};
|
|
3911
|
+
|
|
3912
|
+
var __defProp$1f = Object.defineProperty;
|
|
3913
|
+
var __defProps$j = Object.defineProperties;
|
|
3914
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
3915
|
+
var __getOwnPropSymbols$1f = Object.getOwnPropertySymbols;
|
|
3916
|
+
var __hasOwnProp$1f = Object.prototype.hasOwnProperty;
|
|
3917
|
+
var __propIsEnum$1f = Object.prototype.propertyIsEnumerable;
|
|
3918
|
+
var __defNormalProp$1f = (obj, key, value) => key in obj ? __defProp$1f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3919
|
+
var __spreadValues$1f = (a, b) => {
|
|
3920
|
+
for (var prop in b || (b = {}))
|
|
3921
|
+
if (__hasOwnProp$1f.call(b, prop))
|
|
3922
|
+
__defNormalProp$1f(a, prop, b[prop]);
|
|
3923
|
+
if (__getOwnPropSymbols$1f)
|
|
3924
|
+
for (var prop of __getOwnPropSymbols$1f(b)) {
|
|
3925
|
+
if (__propIsEnum$1f.call(b, prop))
|
|
3926
|
+
__defNormalProp$1f(a, prop, b[prop]);
|
|
3927
|
+
}
|
|
3928
|
+
return a;
|
|
3929
|
+
};
|
|
3930
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
3931
|
+
const MoveButton = (props) => /* @__PURE__ */ React.createElement(Clickable, __spreadProps$j(__spreadValues$1f({}, props), { w: "max-content" }), /* @__PURE__ */ React.createElement(
|
|
3877
3932
|
P$1,
|
|
3878
3933
|
{
|
|
3879
3934
|
variant: "14",
|
|
@@ -3892,19 +3947,19 @@
|
|
|
3892
3947
|
|
|
3893
3948
|
const validRange = (date, state) => !date || (!state.minValue || date.start >= state.minValue) && (!state.maxValue || date.end <= state.maxValue) && date.end >= date.start;
|
|
3894
3949
|
|
|
3895
|
-
var __defProp$
|
|
3896
|
-
var __getOwnPropSymbols$
|
|
3897
|
-
var __hasOwnProp$
|
|
3898
|
-
var __propIsEnum$
|
|
3899
|
-
var __defNormalProp$
|
|
3900
|
-
var __spreadValues$
|
|
3950
|
+
var __defProp$1e = Object.defineProperty;
|
|
3951
|
+
var __getOwnPropSymbols$1e = Object.getOwnPropertySymbols;
|
|
3952
|
+
var __hasOwnProp$1e = Object.prototype.hasOwnProperty;
|
|
3953
|
+
var __propIsEnum$1e = Object.prototype.propertyIsEnumerable;
|
|
3954
|
+
var __defNormalProp$1e = (obj, key, value) => key in obj ? __defProp$1e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3955
|
+
var __spreadValues$1e = (a, b) => {
|
|
3901
3956
|
for (var prop in b || (b = {}))
|
|
3902
|
-
if (__hasOwnProp$
|
|
3903
|
-
__defNormalProp$
|
|
3904
|
-
if (__getOwnPropSymbols$
|
|
3905
|
-
for (var prop of __getOwnPropSymbols$
|
|
3906
|
-
if (__propIsEnum$
|
|
3907
|
-
__defNormalProp$
|
|
3957
|
+
if (__hasOwnProp$1e.call(b, prop))
|
|
3958
|
+
__defNormalProp$1e(a, prop, b[prop]);
|
|
3959
|
+
if (__getOwnPropSymbols$1e)
|
|
3960
|
+
for (var prop of __getOwnPropSymbols$1e(b)) {
|
|
3961
|
+
if (__propIsEnum$1e.call(b, prop))
|
|
3962
|
+
__defNormalProp$1e(a, prop, b[prop]);
|
|
3908
3963
|
}
|
|
3909
3964
|
return a;
|
|
3910
3965
|
};
|
|
@@ -3920,7 +3975,7 @@
|
|
|
3920
3975
|
},
|
|
3921
3976
|
/* @__PURE__ */ React.createElement(Icon$1, { as: icon, color: "blue.500", size: "lg" }),
|
|
3922
3977
|
dates.map(
|
|
3923
|
-
(date) => validRange(date.value, state) && /* @__PURE__ */ React.createElement(MoveButton, __spreadValues$
|
|
3978
|
+
(date) => validRange(date.value, state) && /* @__PURE__ */ React.createElement(MoveButton, __spreadValues$1e({}, getMethods(date)), date.label)
|
|
3924
3979
|
)
|
|
3925
3980
|
);
|
|
3926
3981
|
|
|
@@ -4090,25 +4145,25 @@
|
|
|
4090
4145
|
);
|
|
4091
4146
|
};
|
|
4092
4147
|
|
|
4093
|
-
var __defProp$
|
|
4094
|
-
var __defProps$
|
|
4095
|
-
var __getOwnPropDescs$
|
|
4096
|
-
var __getOwnPropSymbols$
|
|
4097
|
-
var __hasOwnProp$
|
|
4098
|
-
var __propIsEnum$
|
|
4099
|
-
var __defNormalProp$
|
|
4100
|
-
var __spreadValues$
|
|
4148
|
+
var __defProp$1d = Object.defineProperty;
|
|
4149
|
+
var __defProps$i = Object.defineProperties;
|
|
4150
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
4151
|
+
var __getOwnPropSymbols$1d = Object.getOwnPropertySymbols;
|
|
4152
|
+
var __hasOwnProp$1d = Object.prototype.hasOwnProperty;
|
|
4153
|
+
var __propIsEnum$1d = Object.prototype.propertyIsEnumerable;
|
|
4154
|
+
var __defNormalProp$1d = (obj, key, value) => key in obj ? __defProp$1d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4155
|
+
var __spreadValues$1d = (a, b) => {
|
|
4101
4156
|
for (var prop in b || (b = {}))
|
|
4102
|
-
if (__hasOwnProp$
|
|
4103
|
-
__defNormalProp$
|
|
4104
|
-
if (__getOwnPropSymbols$
|
|
4105
|
-
for (var prop of __getOwnPropSymbols$
|
|
4106
|
-
if (__propIsEnum$
|
|
4107
|
-
__defNormalProp$
|
|
4157
|
+
if (__hasOwnProp$1d.call(b, prop))
|
|
4158
|
+
__defNormalProp$1d(a, prop, b[prop]);
|
|
4159
|
+
if (__getOwnPropSymbols$1d)
|
|
4160
|
+
for (var prop of __getOwnPropSymbols$1d(b)) {
|
|
4161
|
+
if (__propIsEnum$1d.call(b, prop))
|
|
4162
|
+
__defNormalProp$1d(a, prop, b[prop]);
|
|
4108
4163
|
}
|
|
4109
4164
|
return a;
|
|
4110
4165
|
};
|
|
4111
|
-
var __spreadProps$
|
|
4166
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
4112
4167
|
const RangeCell = ({ state, date: date$1, currentMonth }) => {
|
|
4113
4168
|
const isOutsideMonth = !date.isSameMonth(currentMonth, date$1);
|
|
4114
4169
|
if (isOutsideMonth)
|
|
@@ -4120,9 +4175,9 @@
|
|
|
4120
4175
|
ref
|
|
4121
4176
|
);
|
|
4122
4177
|
const isToday = date$1.compare(date.today(state.timeZone)) === 0;
|
|
4123
|
-
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$
|
|
4178
|
+
return /* @__PURE__ */ React.createElement(react.chakra.td, __spreadValues$1d({}, cellProps), /* @__PURE__ */ React.createElement(
|
|
4124
4179
|
react.chakra.button,
|
|
4125
|
-
__spreadProps$
|
|
4180
|
+
__spreadProps$i(__spreadValues$1d({}, buttonProps), {
|
|
4126
4181
|
type: "button",
|
|
4127
4182
|
ref,
|
|
4128
4183
|
borderRadius: "xs",
|
|
@@ -4158,31 +4213,31 @@
|
|
|
4158
4213
|
));
|
|
4159
4214
|
};
|
|
4160
4215
|
|
|
4161
|
-
var __defProp$
|
|
4162
|
-
var __defProps$
|
|
4163
|
-
var __getOwnPropDescs$
|
|
4164
|
-
var __getOwnPropSymbols$
|
|
4165
|
-
var __hasOwnProp$
|
|
4166
|
-
var __propIsEnum$
|
|
4167
|
-
var __defNormalProp$
|
|
4168
|
-
var __spreadValues$
|
|
4169
|
-
for (var prop in b || (b = {}))
|
|
4170
|
-
if (__hasOwnProp$
|
|
4171
|
-
__defNormalProp$
|
|
4172
|
-
if (__getOwnPropSymbols$
|
|
4173
|
-
for (var prop of __getOwnPropSymbols$
|
|
4174
|
-
if (__propIsEnum$
|
|
4175
|
-
__defNormalProp$
|
|
4216
|
+
var __defProp$1c = Object.defineProperty;
|
|
4217
|
+
var __defProps$h = Object.defineProperties;
|
|
4218
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
4219
|
+
var __getOwnPropSymbols$1c = Object.getOwnPropertySymbols;
|
|
4220
|
+
var __hasOwnProp$1c = Object.prototype.hasOwnProperty;
|
|
4221
|
+
var __propIsEnum$1c = Object.prototype.propertyIsEnumerable;
|
|
4222
|
+
var __defNormalProp$1c = (obj, key, value) => key in obj ? __defProp$1c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4223
|
+
var __spreadValues$1c = (a, b) => {
|
|
4224
|
+
for (var prop in b || (b = {}))
|
|
4225
|
+
if (__hasOwnProp$1c.call(b, prop))
|
|
4226
|
+
__defNormalProp$1c(a, prop, b[prop]);
|
|
4227
|
+
if (__getOwnPropSymbols$1c)
|
|
4228
|
+
for (var prop of __getOwnPropSymbols$1c(b)) {
|
|
4229
|
+
if (__propIsEnum$1c.call(b, prop))
|
|
4230
|
+
__defNormalProp$1c(a, prop, b[prop]);
|
|
4176
4231
|
}
|
|
4177
4232
|
return a;
|
|
4178
4233
|
};
|
|
4179
|
-
var __spreadProps$
|
|
4234
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
4180
4235
|
const RangeCalendarGrid = ({ state, locale, offset = {} }) => {
|
|
4181
4236
|
const startDate = state.visibleRange.start.add(offset);
|
|
4182
4237
|
const endDate = date.endOfMonth(startDate);
|
|
4183
4238
|
const { gridProps, headerProps, weekDays } = calendar.useCalendarGrid({ startDate, endDate }, state);
|
|
4184
4239
|
const weeksInMonth = date.getWeeksInMonth(state.visibleRange.start, locale);
|
|
4185
|
-
return /* @__PURE__ */ React.createElement(react.Box, { h: "245px", p: "0" }, /* @__PURE__ */ React.createElement(react.chakra.table, __spreadProps$
|
|
4240
|
+
return /* @__PURE__ */ React.createElement(react.Box, { h: "245px", p: "0" }, /* @__PURE__ */ React.createElement(react.chakra.table, __spreadProps$h(__spreadValues$1c({}, gridProps), { sx: { borderSpacing: "0px" } }), /* @__PURE__ */ React.createElement(react.chakra.thead, __spreadValues$1c({}, headerProps), /* @__PURE__ */ React.createElement(DayLabels, { weekDays })), /* @__PURE__ */ React.createElement(react.chakra.tbody, null, ramda.times((weekIndex) => /* @__PURE__ */ React.createElement(react.chakra.tr, { key: weekIndex }, state.getDatesInWeek(weekIndex, startDate).map(
|
|
4186
4241
|
(date, i) => date ? /* @__PURE__ */ React.createElement(
|
|
4187
4242
|
RangeCell,
|
|
4188
4243
|
{
|
|
@@ -4248,7 +4303,7 @@
|
|
|
4248
4303
|
start: date.startOfMonth(thisDay),
|
|
4249
4304
|
end: date.endOfMonth(thisDay)
|
|
4250
4305
|
},
|
|
4251
|
-
label: "This
|
|
4306
|
+
label: "This Month"
|
|
4252
4307
|
};
|
|
4253
4308
|
const lastMonth = {
|
|
4254
4309
|
value: {
|
|
@@ -4325,6 +4380,16 @@
|
|
|
4325
4380
|
},
|
|
4326
4381
|
label: "Last Fiscal Year"
|
|
4327
4382
|
};
|
|
4383
|
+
const yearToDate = {
|
|
4384
|
+
value: {
|
|
4385
|
+
start: startOfMonthWithDays(
|
|
4386
|
+
date.startOfYear(thisDay),
|
|
4387
|
+
{ months: fiscalStartMonth, days: fiscalStartDay }
|
|
4388
|
+
),
|
|
4389
|
+
end: thisDay
|
|
4390
|
+
},
|
|
4391
|
+
label: "Year to Date"
|
|
4392
|
+
};
|
|
4328
4393
|
const F1 = {
|
|
4329
4394
|
value: {
|
|
4330
4395
|
start: startOfMonthWithDays(
|
|
@@ -4385,6 +4450,7 @@
|
|
|
4385
4450
|
thisMonth,
|
|
4386
4451
|
lastMonth,
|
|
4387
4452
|
thisYear,
|
|
4453
|
+
yearToDate,
|
|
4388
4454
|
lastYear,
|
|
4389
4455
|
nextMonth,
|
|
4390
4456
|
nextThreeMonths,
|
|
@@ -4470,29 +4536,29 @@
|
|
|
4470
4536
|
));
|
|
4471
4537
|
};
|
|
4472
4538
|
|
|
4473
|
-
var __defProp$
|
|
4474
|
-
var __defProps$
|
|
4475
|
-
var __getOwnPropDescs$
|
|
4476
|
-
var __getOwnPropSymbols$
|
|
4477
|
-
var __hasOwnProp$
|
|
4478
|
-
var __propIsEnum$
|
|
4479
|
-
var __defNormalProp$
|
|
4480
|
-
var __spreadValues$
|
|
4539
|
+
var __defProp$1b = Object.defineProperty;
|
|
4540
|
+
var __defProps$g = Object.defineProperties;
|
|
4541
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
4542
|
+
var __getOwnPropSymbols$1b = Object.getOwnPropertySymbols;
|
|
4543
|
+
var __hasOwnProp$1b = Object.prototype.hasOwnProperty;
|
|
4544
|
+
var __propIsEnum$1b = Object.prototype.propertyIsEnumerable;
|
|
4545
|
+
var __defNormalProp$1b = (obj, key, value) => key in obj ? __defProp$1b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4546
|
+
var __spreadValues$1b = (a, b) => {
|
|
4481
4547
|
for (var prop in b || (b = {}))
|
|
4482
|
-
if (__hasOwnProp$
|
|
4483
|
-
__defNormalProp$
|
|
4484
|
-
if (__getOwnPropSymbols$
|
|
4485
|
-
for (var prop of __getOwnPropSymbols$
|
|
4486
|
-
if (__propIsEnum$
|
|
4487
|
-
__defNormalProp$
|
|
4548
|
+
if (__hasOwnProp$1b.call(b, prop))
|
|
4549
|
+
__defNormalProp$1b(a, prop, b[prop]);
|
|
4550
|
+
if (__getOwnPropSymbols$1b)
|
|
4551
|
+
for (var prop of __getOwnPropSymbols$1b(b)) {
|
|
4552
|
+
if (__propIsEnum$1b.call(b, prop))
|
|
4553
|
+
__defNormalProp$1b(a, prop, b[prop]);
|
|
4488
4554
|
}
|
|
4489
4555
|
return a;
|
|
4490
4556
|
};
|
|
4491
|
-
var __spreadProps$
|
|
4557
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
4492
4558
|
const RangeCalendar = (props) => {
|
|
4493
4559
|
const { locale } = i18n.useLocale();
|
|
4494
4560
|
const [updateRange, setUpdateRange] = React.useState(false);
|
|
4495
|
-
const state = calendar$1.useRangeCalendarState(__spreadProps$
|
|
4561
|
+
const state = calendar$1.useRangeCalendarState(__spreadProps$g(__spreadValues$1b({}, props), {
|
|
4496
4562
|
visibleDuration: { months: updateRange ? 1 : 2 },
|
|
4497
4563
|
locale,
|
|
4498
4564
|
createCalendar: () => new date.GregorianCalendar()
|
|
@@ -4510,7 +4576,7 @@
|
|
|
4510
4576
|
ref
|
|
4511
4577
|
);
|
|
4512
4578
|
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4513
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$
|
|
4579
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$1b({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4514
4580
|
QuickSelect,
|
|
4515
4581
|
{
|
|
4516
4582
|
state,
|
|
@@ -4519,7 +4585,7 @@
|
|
|
4519
4585
|
fiscalStartMonth,
|
|
4520
4586
|
fiscalStartDay
|
|
4521
4587
|
}
|
|
4522
|
-
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$
|
|
4588
|
+
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1b({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.Box, { w: "52" }, /* @__PURE__ */ React.createElement(Label$1, { textAlign: "center" }, months[state.visibleRange.start.month - 1], " -", " ", months[state.visibleRange.start.month], " ", state.visibleRange.end.year)), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1b({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "start", spacing: 4 }, /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(AdjustRange, { state, adjust: "start" })), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "center", spacing: "0a" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 1 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 1 }), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronSelectorVerticalSolid, size: "xs", fontWeight: "bold" })), /* @__PURE__ */ React.createElement(
|
|
4523
4589
|
RangeCalendarGrid,
|
|
4524
4590
|
{
|
|
4525
4591
|
state,
|
|
@@ -4529,28 +4595,28 @@
|
|
|
4529
4595
|
), /* @__PURE__ */ React.createElement(AdjustRange, { state, adjust: "end" }), /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "end", pt: "2" }, isClearable && /* @__PURE__ */ React.createElement(Button$1, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button$1, { variant: "brand", onClick: handleClose, size: "sm" }, "Save"))))))));
|
|
4530
4596
|
};
|
|
4531
4597
|
|
|
4532
|
-
var __defProp$
|
|
4533
|
-
var __defProps$
|
|
4534
|
-
var __getOwnPropDescs$
|
|
4535
|
-
var __getOwnPropSymbols$
|
|
4536
|
-
var __hasOwnProp$
|
|
4537
|
-
var __propIsEnum$
|
|
4538
|
-
var __defNormalProp$
|
|
4539
|
-
var __spreadValues$
|
|
4598
|
+
var __defProp$1a = Object.defineProperty;
|
|
4599
|
+
var __defProps$f = Object.defineProperties;
|
|
4600
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
4601
|
+
var __getOwnPropSymbols$1a = Object.getOwnPropertySymbols;
|
|
4602
|
+
var __hasOwnProp$1a = Object.prototype.hasOwnProperty;
|
|
4603
|
+
var __propIsEnum$1a = Object.prototype.propertyIsEnumerable;
|
|
4604
|
+
var __defNormalProp$1a = (obj, key, value) => key in obj ? __defProp$1a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4605
|
+
var __spreadValues$1a = (a, b) => {
|
|
4540
4606
|
for (var prop in b || (b = {}))
|
|
4541
|
-
if (__hasOwnProp$
|
|
4542
|
-
__defNormalProp$
|
|
4543
|
-
if (__getOwnPropSymbols$
|
|
4544
|
-
for (var prop of __getOwnPropSymbols$
|
|
4545
|
-
if (__propIsEnum$
|
|
4546
|
-
__defNormalProp$
|
|
4607
|
+
if (__hasOwnProp$1a.call(b, prop))
|
|
4608
|
+
__defNormalProp$1a(a, prop, b[prop]);
|
|
4609
|
+
if (__getOwnPropSymbols$1a)
|
|
4610
|
+
for (var prop of __getOwnPropSymbols$1a(b)) {
|
|
4611
|
+
if (__propIsEnum$1a.call(b, prop))
|
|
4612
|
+
__defNormalProp$1a(a, prop, b[prop]);
|
|
4547
4613
|
}
|
|
4548
4614
|
return a;
|
|
4549
4615
|
};
|
|
4550
|
-
var __spreadProps$
|
|
4616
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
4551
4617
|
const SimpleRangeCalendar = (props) => {
|
|
4552
4618
|
const { locale } = i18n.useLocale();
|
|
4553
|
-
const state = calendar$1.useRangeCalendarState(__spreadProps$
|
|
4619
|
+
const state = calendar$1.useRangeCalendarState(__spreadProps$f(__spreadValues$1a({}, props), {
|
|
4554
4620
|
visibleDuration: { months: 1 },
|
|
4555
4621
|
locale,
|
|
4556
4622
|
createCalendar: () => new date.GregorianCalendar()
|
|
@@ -4563,7 +4629,7 @@
|
|
|
4563
4629
|
ref
|
|
4564
4630
|
);
|
|
4565
4631
|
const { fiscalStartMonth, fiscalStartDay, handleClose, resetDate, isClearable = true } = props;
|
|
4566
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$
|
|
4632
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$f(__spreadValues$1a({}, calendarProps), { ref, __css: rangeCalendarContainer }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { gap: 4 }, /* @__PURE__ */ React.createElement(
|
|
4567
4633
|
QuickSelect,
|
|
4568
4634
|
{
|
|
4569
4635
|
state,
|
|
@@ -4574,30 +4640,30 @@
|
|
|
4574
4640
|
fiscalStartDay,
|
|
4575
4641
|
height: "72"
|
|
4576
4642
|
}
|
|
4577
|
-
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$
|
|
4643
|
+
), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2, alignSelf: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1a({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.HStack, { w: "full", justify: "center" }, /* @__PURE__ */ React.createElement(MonthSelect, { state, offset: 0 }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state, offset: 0 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1a({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon$1, { as: icons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.Stack, { h: "full", justify: "space-between" }, /* @__PURE__ */ React.createElement(RangeCalendarGrid, { state, locale }), /* @__PURE__ */ React.createElement(react.HStack, { alignSelf: "end", pt: "2" }, isClearable && /* @__PURE__ */ React.createElement(Button$1, { onClick: resetDate, variant: "ghost", size: "sm" }, "Clear"), /* @__PURE__ */ React.createElement(Button$1, { variant: "brand", onClick: handleClose, size: "sm" }, "Save")))))));
|
|
4578
4644
|
};
|
|
4579
4645
|
|
|
4580
4646
|
const isValidDateRange = (value) => ramda.is(Object, value) && ramda.has("startDate", value) && ramda.has("endDate", value) && ramda.is(String, value.startDate) && ramda.is(String, value.endDate);
|
|
4581
4647
|
|
|
4582
|
-
var __defProp$
|
|
4583
|
-
var __defProps$
|
|
4584
|
-
var __getOwnPropDescs$
|
|
4585
|
-
var __getOwnPropSymbols$
|
|
4586
|
-
var __hasOwnProp$
|
|
4587
|
-
var __propIsEnum$
|
|
4588
|
-
var __defNormalProp$
|
|
4589
|
-
var __spreadValues$
|
|
4648
|
+
var __defProp$19 = Object.defineProperty;
|
|
4649
|
+
var __defProps$e = Object.defineProperties;
|
|
4650
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
4651
|
+
var __getOwnPropSymbols$19 = Object.getOwnPropertySymbols;
|
|
4652
|
+
var __hasOwnProp$19 = Object.prototype.hasOwnProperty;
|
|
4653
|
+
var __propIsEnum$19 = Object.prototype.propertyIsEnumerable;
|
|
4654
|
+
var __defNormalProp$19 = (obj, key, value) => key in obj ? __defProp$19(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4655
|
+
var __spreadValues$19 = (a, b) => {
|
|
4590
4656
|
for (var prop in b || (b = {}))
|
|
4591
|
-
if (__hasOwnProp$
|
|
4592
|
-
__defNormalProp$
|
|
4593
|
-
if (__getOwnPropSymbols$
|
|
4594
|
-
for (var prop of __getOwnPropSymbols$
|
|
4595
|
-
if (__propIsEnum$
|
|
4596
|
-
__defNormalProp$
|
|
4657
|
+
if (__hasOwnProp$19.call(b, prop))
|
|
4658
|
+
__defNormalProp$19(a, prop, b[prop]);
|
|
4659
|
+
if (__getOwnPropSymbols$19)
|
|
4660
|
+
for (var prop of __getOwnPropSymbols$19(b)) {
|
|
4661
|
+
if (__propIsEnum$19.call(b, prop))
|
|
4662
|
+
__defNormalProp$19(a, prop, b[prop]);
|
|
4597
4663
|
}
|
|
4598
4664
|
return a;
|
|
4599
4665
|
};
|
|
4600
|
-
var __spreadProps$
|
|
4666
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
4601
4667
|
const parseValue = (value) => {
|
|
4602
4668
|
if (!isValidDateRange(value))
|
|
4603
4669
|
return null;
|
|
@@ -4632,7 +4698,7 @@
|
|
|
4632
4698
|
minValue: ramda.isNil(minValue) ? void 0 : date.parseDate(minValue),
|
|
4633
4699
|
maxValue: ramda.isNil(maxValue) ? void 0 : date.parseDate(maxValue)
|
|
4634
4700
|
};
|
|
4635
|
-
const state = datepicker$1.useDateRangePickerState(__spreadProps$
|
|
4701
|
+
const state = datepicker$1.useDateRangePickerState(__spreadProps$e(__spreadValues$19(__spreadValues$19({}, props), parsedProps), {
|
|
4636
4702
|
shouldCloseOnSelect: false,
|
|
4637
4703
|
hideTimeZone: true
|
|
4638
4704
|
}));
|
|
@@ -4644,7 +4710,7 @@
|
|
|
4644
4710
|
dialogProps,
|
|
4645
4711
|
calendarProps
|
|
4646
4712
|
} = datepicker.useDateRangePicker(
|
|
4647
|
-
__spreadProps$
|
|
4713
|
+
__spreadProps$e(__spreadValues$19(__spreadValues$19({}, props), parsedProps), {
|
|
4648
4714
|
minValue: parsedProps.minValue || date.parseDate("1994-03-08")
|
|
4649
4715
|
}),
|
|
4650
4716
|
state,
|
|
@@ -4661,7 +4727,7 @@
|
|
|
4661
4727
|
onClose: handleClose,
|
|
4662
4728
|
placement: "bottom-start"
|
|
4663
4729
|
},
|
|
4664
|
-
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$
|
|
4730
|
+
/* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$e(__spreadValues$19({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(StyledField, { isDisabled, isInvalid, variant }, /* @__PURE__ */ React.createElement(
|
|
4665
4731
|
react.HStack,
|
|
4666
4732
|
{
|
|
4667
4733
|
paddingInlineStart: "1a",
|
|
@@ -4669,20 +4735,20 @@
|
|
|
4669
4735
|
},
|
|
4670
4736
|
/* @__PURE__ */ React.createElement(
|
|
4671
4737
|
DateField,
|
|
4672
|
-
__spreadProps$
|
|
4738
|
+
__spreadProps$e(__spreadValues$19({}, startFieldProps), {
|
|
4673
4739
|
dateFormat
|
|
4674
4740
|
})
|
|
4675
4741
|
),
|
|
4676
4742
|
/* @__PURE__ */ React.createElement(P$1, null, "-"),
|
|
4677
4743
|
/* @__PURE__ */ React.createElement(
|
|
4678
4744
|
DateField,
|
|
4679
|
-
__spreadProps$
|
|
4745
|
+
__spreadProps$e(__spreadValues$19({}, endFieldProps), {
|
|
4680
4746
|
dateFormat
|
|
4681
4747
|
})
|
|
4682
4748
|
)
|
|
4683
4749
|
)), /* @__PURE__ */ React.createElement(react.InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
|
|
4684
4750
|
Trigger,
|
|
4685
|
-
__spreadProps$
|
|
4751
|
+
__spreadProps$e(__spreadValues$19({}, buttonProps), {
|
|
4686
4752
|
isDisabled,
|
|
4687
4753
|
handleClick: togglePopup
|
|
4688
4754
|
})
|
|
@@ -4699,9 +4765,9 @@
|
|
|
4699
4765
|
icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.XCloseSolid })
|
|
4700
4766
|
}
|
|
4701
4767
|
))),
|
|
4702
|
-
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$
|
|
4768
|
+
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$e(__spreadValues$19({}, dialogProps), { ref, w: "max-content" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, mode === "simple" && /* @__PURE__ */ React.createElement(
|
|
4703
4769
|
SimpleRangeCalendar,
|
|
4704
|
-
__spreadProps$
|
|
4770
|
+
__spreadProps$e(__spreadValues$19({}, calendarProps), {
|
|
4705
4771
|
resetDate,
|
|
4706
4772
|
handleClose,
|
|
4707
4773
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
@@ -4710,7 +4776,7 @@
|
|
|
4710
4776
|
})
|
|
4711
4777
|
), mode === "advanced" && /* @__PURE__ */ React.createElement(
|
|
4712
4778
|
RangeCalendar,
|
|
4713
|
-
__spreadProps$
|
|
4779
|
+
__spreadProps$e(__spreadValues$19({}, calendarProps), {
|
|
4714
4780
|
resetDate,
|
|
4715
4781
|
handleClose,
|
|
4716
4782
|
fiscalStartMonth: fiscalStartMonth || 0,
|
|
@@ -4721,30 +4787,30 @@
|
|
|
4721
4787
|
);
|
|
4722
4788
|
};
|
|
4723
4789
|
|
|
4724
|
-
var __defProp$
|
|
4725
|
-
var __getOwnPropSymbols$
|
|
4726
|
-
var __hasOwnProp$
|
|
4727
|
-
var __propIsEnum$
|
|
4728
|
-
var __defNormalProp$
|
|
4729
|
-
var __spreadValues$
|
|
4790
|
+
var __defProp$18 = Object.defineProperty;
|
|
4791
|
+
var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
|
|
4792
|
+
var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
|
|
4793
|
+
var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
|
|
4794
|
+
var __defNormalProp$18 = (obj, key, value) => key in obj ? __defProp$18(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4795
|
+
var __spreadValues$18 = (a, b) => {
|
|
4730
4796
|
for (var prop in b || (b = {}))
|
|
4731
|
-
if (__hasOwnProp$
|
|
4732
|
-
__defNormalProp$
|
|
4733
|
-
if (__getOwnPropSymbols$
|
|
4734
|
-
for (var prop of __getOwnPropSymbols$
|
|
4735
|
-
if (__propIsEnum$
|
|
4736
|
-
__defNormalProp$
|
|
4797
|
+
if (__hasOwnProp$18.call(b, prop))
|
|
4798
|
+
__defNormalProp$18(a, prop, b[prop]);
|
|
4799
|
+
if (__getOwnPropSymbols$18)
|
|
4800
|
+
for (var prop of __getOwnPropSymbols$18(b)) {
|
|
4801
|
+
if (__propIsEnum$18.call(b, prop))
|
|
4802
|
+
__defNormalProp$18(a, prop, b[prop]);
|
|
4737
4803
|
}
|
|
4738
4804
|
return a;
|
|
4739
4805
|
};
|
|
4740
|
-
var __objRest$
|
|
4806
|
+
var __objRest$S = (source, exclude) => {
|
|
4741
4807
|
var target = {};
|
|
4742
4808
|
for (var prop in source)
|
|
4743
|
-
if (__hasOwnProp$
|
|
4809
|
+
if (__hasOwnProp$18.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4744
4810
|
target[prop] = source[prop];
|
|
4745
|
-
if (source != null && __getOwnPropSymbols$
|
|
4746
|
-
for (var prop of __getOwnPropSymbols$
|
|
4747
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4811
|
+
if (source != null && __getOwnPropSymbols$18)
|
|
4812
|
+
for (var prop of __getOwnPropSymbols$18(source)) {
|
|
4813
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$18.call(source, prop))
|
|
4748
4814
|
target[prop] = source[prop];
|
|
4749
4815
|
}
|
|
4750
4816
|
return target;
|
|
@@ -4754,39 +4820,39 @@
|
|
|
4754
4820
|
inputLeftElement,
|
|
4755
4821
|
inputRightElement,
|
|
4756
4822
|
children
|
|
4757
|
-
} = _b, rest = __objRest$
|
|
4823
|
+
} = _b, rest = __objRest$S(_b, [
|
|
4758
4824
|
"inputLeftElement",
|
|
4759
4825
|
"inputRightElement",
|
|
4760
4826
|
"children"
|
|
4761
4827
|
]);
|
|
4762
4828
|
const containsInputGroupElement = ramda.not(ramda.all(ramda.isNil, [inputLeftElement, inputRightElement]));
|
|
4763
|
-
return containsInputGroupElement ? /* @__PURE__ */ React.createElement(react.InputGroup, __spreadValues$
|
|
4829
|
+
return containsInputGroupElement ? /* @__PURE__ */ React.createElement(react.InputGroup, __spreadValues$18({}, rest), inputLeftElement, children, inputRightElement) : /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
4764
4830
|
};
|
|
4765
4831
|
|
|
4766
|
-
var __defProp$
|
|
4767
|
-
var __getOwnPropSymbols$
|
|
4768
|
-
var __hasOwnProp$
|
|
4769
|
-
var __propIsEnum$
|
|
4770
|
-
var __defNormalProp$
|
|
4771
|
-
var __spreadValues$
|
|
4832
|
+
var __defProp$17 = Object.defineProperty;
|
|
4833
|
+
var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
|
|
4834
|
+
var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
|
|
4835
|
+
var __propIsEnum$17 = Object.prototype.propertyIsEnumerable;
|
|
4836
|
+
var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4837
|
+
var __spreadValues$17 = (a, b) => {
|
|
4772
4838
|
for (var prop in b || (b = {}))
|
|
4773
|
-
if (__hasOwnProp$
|
|
4774
|
-
__defNormalProp$
|
|
4775
|
-
if (__getOwnPropSymbols$
|
|
4776
|
-
for (var prop of __getOwnPropSymbols$
|
|
4777
|
-
if (__propIsEnum$
|
|
4778
|
-
__defNormalProp$
|
|
4839
|
+
if (__hasOwnProp$17.call(b, prop))
|
|
4840
|
+
__defNormalProp$17(a, prop, b[prop]);
|
|
4841
|
+
if (__getOwnPropSymbols$17)
|
|
4842
|
+
for (var prop of __getOwnPropSymbols$17(b)) {
|
|
4843
|
+
if (__propIsEnum$17.call(b, prop))
|
|
4844
|
+
__defNormalProp$17(a, prop, b[prop]);
|
|
4779
4845
|
}
|
|
4780
4846
|
return a;
|
|
4781
4847
|
};
|
|
4782
|
-
var __objRest$
|
|
4848
|
+
var __objRest$R = (source, exclude) => {
|
|
4783
4849
|
var target = {};
|
|
4784
4850
|
for (var prop in source)
|
|
4785
|
-
if (__hasOwnProp$
|
|
4851
|
+
if (__hasOwnProp$17.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4786
4852
|
target[prop] = source[prop];
|
|
4787
|
-
if (source != null && __getOwnPropSymbols$
|
|
4788
|
-
for (var prop of __getOwnPropSymbols$
|
|
4789
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4853
|
+
if (source != null && __getOwnPropSymbols$17)
|
|
4854
|
+
for (var prop of __getOwnPropSymbols$17(source)) {
|
|
4855
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$17.call(source, prop))
|
|
4790
4856
|
target[prop] = source[prop];
|
|
4791
4857
|
}
|
|
4792
4858
|
return target;
|
|
@@ -4804,7 +4870,7 @@
|
|
|
4804
4870
|
onChange: onChangeCallback = ramda.identity,
|
|
4805
4871
|
inputLeftElement,
|
|
4806
4872
|
inputRightElement
|
|
4807
|
-
} = _b, rest = __objRest$
|
|
4873
|
+
} = _b, rest = __objRest$R(_b, [
|
|
4808
4874
|
"name",
|
|
4809
4875
|
"minValue",
|
|
4810
4876
|
"maxValue",
|
|
@@ -4848,7 +4914,7 @@
|
|
|
4848
4914
|
},
|
|
4849
4915
|
/* @__PURE__ */ React.createElement(
|
|
4850
4916
|
DatePicker$1,
|
|
4851
|
-
__spreadValues$
|
|
4917
|
+
__spreadValues$17({
|
|
4852
4918
|
firstDayOfWeek,
|
|
4853
4919
|
"aria-label": label,
|
|
4854
4920
|
isInvalid: !!errors[name],
|
|
@@ -4864,30 +4930,30 @@
|
|
|
4864
4930
|
);
|
|
4865
4931
|
});
|
|
4866
4932
|
|
|
4867
|
-
var __defProp$
|
|
4868
|
-
var __getOwnPropSymbols$
|
|
4869
|
-
var __hasOwnProp$
|
|
4870
|
-
var __propIsEnum$
|
|
4871
|
-
var __defNormalProp$
|
|
4872
|
-
var __spreadValues$
|
|
4933
|
+
var __defProp$16 = Object.defineProperty;
|
|
4934
|
+
var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
|
|
4935
|
+
var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
|
|
4936
|
+
var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
|
|
4937
|
+
var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4938
|
+
var __spreadValues$16 = (a, b) => {
|
|
4873
4939
|
for (var prop in b || (b = {}))
|
|
4874
|
-
if (__hasOwnProp$
|
|
4875
|
-
__defNormalProp$
|
|
4876
|
-
if (__getOwnPropSymbols$
|
|
4877
|
-
for (var prop of __getOwnPropSymbols$
|
|
4878
|
-
if (__propIsEnum$
|
|
4879
|
-
__defNormalProp$
|
|
4940
|
+
if (__hasOwnProp$16.call(b, prop))
|
|
4941
|
+
__defNormalProp$16(a, prop, b[prop]);
|
|
4942
|
+
if (__getOwnPropSymbols$16)
|
|
4943
|
+
for (var prop of __getOwnPropSymbols$16(b)) {
|
|
4944
|
+
if (__propIsEnum$16.call(b, prop))
|
|
4945
|
+
__defNormalProp$16(a, prop, b[prop]);
|
|
4880
4946
|
}
|
|
4881
4947
|
return a;
|
|
4882
4948
|
};
|
|
4883
|
-
var __objRest$
|
|
4949
|
+
var __objRest$Q = (source, exclude) => {
|
|
4884
4950
|
var target = {};
|
|
4885
4951
|
for (var prop in source)
|
|
4886
|
-
if (__hasOwnProp$
|
|
4952
|
+
if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4887
4953
|
target[prop] = source[prop];
|
|
4888
|
-
if (source != null && __getOwnPropSymbols$
|
|
4889
|
-
for (var prop of __getOwnPropSymbols$
|
|
4890
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
4954
|
+
if (source != null && __getOwnPropSymbols$16)
|
|
4955
|
+
for (var prop of __getOwnPropSymbols$16(source)) {
|
|
4956
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
|
|
4891
4957
|
target[prop] = source[prop];
|
|
4892
4958
|
}
|
|
4893
4959
|
return target;
|
|
@@ -4904,7 +4970,7 @@
|
|
|
4904
4970
|
firstDayOfWeek = "monday",
|
|
4905
4971
|
onChange: onChangeCallback = ramda.identity,
|
|
4906
4972
|
isClearable = true
|
|
4907
|
-
} = _b, rest = __objRest$
|
|
4973
|
+
} = _b, rest = __objRest$Q(_b, [
|
|
4908
4974
|
"name",
|
|
4909
4975
|
"minValue",
|
|
4910
4976
|
"maxValue",
|
|
@@ -4941,7 +5007,7 @@
|
|
|
4941
5007
|
},
|
|
4942
5008
|
({ value, onChange }, { formState: { errors } }) => /* @__PURE__ */ React.createElement(
|
|
4943
5009
|
DateRangePicker,
|
|
4944
|
-
__spreadValues$
|
|
5010
|
+
__spreadValues$16({
|
|
4945
5011
|
firstDayOfWeek,
|
|
4946
5012
|
"aria-label": label,
|
|
4947
5013
|
isInvalid: !!errors[name],
|
|
@@ -4957,33 +5023,33 @@
|
|
|
4957
5023
|
);
|
|
4958
5024
|
});
|
|
4959
5025
|
|
|
4960
|
-
var __defProp$
|
|
4961
|
-
var __defProps$
|
|
4962
|
-
var __getOwnPropDescs$
|
|
4963
|
-
var __getOwnPropSymbols$
|
|
4964
|
-
var __hasOwnProp$
|
|
4965
|
-
var __propIsEnum$
|
|
4966
|
-
var __defNormalProp$
|
|
4967
|
-
var __spreadValues$
|
|
5026
|
+
var __defProp$15 = Object.defineProperty;
|
|
5027
|
+
var __defProps$d = Object.defineProperties;
|
|
5028
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
5029
|
+
var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
|
|
5030
|
+
var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
|
|
5031
|
+
var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
|
|
5032
|
+
var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5033
|
+
var __spreadValues$15 = (a, b) => {
|
|
4968
5034
|
for (var prop in b || (b = {}))
|
|
4969
|
-
if (__hasOwnProp$
|
|
4970
|
-
__defNormalProp$
|
|
4971
|
-
if (__getOwnPropSymbols$
|
|
4972
|
-
for (var prop of __getOwnPropSymbols$
|
|
4973
|
-
if (__propIsEnum$
|
|
4974
|
-
__defNormalProp$
|
|
5035
|
+
if (__hasOwnProp$15.call(b, prop))
|
|
5036
|
+
__defNormalProp$15(a, prop, b[prop]);
|
|
5037
|
+
if (__getOwnPropSymbols$15)
|
|
5038
|
+
for (var prop of __getOwnPropSymbols$15(b)) {
|
|
5039
|
+
if (__propIsEnum$15.call(b, prop))
|
|
5040
|
+
__defNormalProp$15(a, prop, b[prop]);
|
|
4975
5041
|
}
|
|
4976
5042
|
return a;
|
|
4977
5043
|
};
|
|
4978
|
-
var __spreadProps$
|
|
4979
|
-
var __objRest$
|
|
5044
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
5045
|
+
var __objRest$P = (source, exclude) => {
|
|
4980
5046
|
var target = {};
|
|
4981
5047
|
for (var prop in source)
|
|
4982
|
-
if (__hasOwnProp$
|
|
5048
|
+
if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4983
5049
|
target[prop] = source[prop];
|
|
4984
|
-
if (source != null && __getOwnPropSymbols$
|
|
4985
|
-
for (var prop of __getOwnPropSymbols$
|
|
4986
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5050
|
+
if (source != null && __getOwnPropSymbols$15)
|
|
5051
|
+
for (var prop of __getOwnPropSymbols$15(source)) {
|
|
5052
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
|
|
4987
5053
|
target[prop] = source[prop];
|
|
4988
5054
|
}
|
|
4989
5055
|
return target;
|
|
@@ -4999,7 +5065,7 @@
|
|
|
4999
5065
|
size = "sm",
|
|
5000
5066
|
onClose,
|
|
5001
5067
|
autoFocus = true
|
|
5002
|
-
} = _b, rest = __objRest$
|
|
5068
|
+
} = _b, rest = __objRest$P(_b, [
|
|
5003
5069
|
"isResizable",
|
|
5004
5070
|
"isOpen",
|
|
5005
5071
|
"children",
|
|
@@ -5038,8 +5104,8 @@
|
|
|
5038
5104
|
},
|
|
5039
5105
|
/* @__PURE__ */ React.createElement(
|
|
5040
5106
|
react.Flex,
|
|
5041
|
-
__spreadValues$
|
|
5042
|
-
sx: __spreadProps$
|
|
5107
|
+
__spreadValues$15({
|
|
5108
|
+
sx: __spreadProps$d(__spreadValues$15({}, container), { w: adjustableWidth }),
|
|
5043
5109
|
onKeyDown: handleKeyDown,
|
|
5044
5110
|
position: "relative",
|
|
5045
5111
|
overflow: "hidden"
|
|
@@ -5078,54 +5144,6 @@
|
|
|
5078
5144
|
)));
|
|
5079
5145
|
};
|
|
5080
5146
|
|
|
5081
|
-
var __defProp$15 = Object.defineProperty;
|
|
5082
|
-
var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
|
|
5083
|
-
var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
|
|
5084
|
-
var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
|
|
5085
|
-
var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5086
|
-
var __spreadValues$15 = (a, b) => {
|
|
5087
|
-
for (var prop in b || (b = {}))
|
|
5088
|
-
if (__hasOwnProp$15.call(b, prop))
|
|
5089
|
-
__defNormalProp$15(a, prop, b[prop]);
|
|
5090
|
-
if (__getOwnPropSymbols$15)
|
|
5091
|
-
for (var prop of __getOwnPropSymbols$15(b)) {
|
|
5092
|
-
if (__propIsEnum$15.call(b, prop))
|
|
5093
|
-
__defNormalProp$15(a, prop, b[prop]);
|
|
5094
|
-
}
|
|
5095
|
-
return a;
|
|
5096
|
-
};
|
|
5097
|
-
var __objRest$P = (source, exclude) => {
|
|
5098
|
-
var target = {};
|
|
5099
|
-
for (var prop in source)
|
|
5100
|
-
if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5101
|
-
target[prop] = source[prop];
|
|
5102
|
-
if (source != null && __getOwnPropSymbols$15)
|
|
5103
|
-
for (var prop of __getOwnPropSymbols$15(source)) {
|
|
5104
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
|
|
5105
|
-
target[prop] = source[prop];
|
|
5106
|
-
}
|
|
5107
|
-
return target;
|
|
5108
|
-
};
|
|
5109
|
-
const ToolboxHeader = (_a) => {
|
|
5110
|
-
var _b = _a, {
|
|
5111
|
-
children,
|
|
5112
|
-
onClose
|
|
5113
|
-
} = _b, rest = __objRest$P(_b, [
|
|
5114
|
-
"children",
|
|
5115
|
-
"onClose"
|
|
5116
|
-
]);
|
|
5117
|
-
const { header } = system.useMultiStyleConfig("Toolbox", {});
|
|
5118
|
-
return /* @__PURE__ */ React.createElement(react.Flex, __spreadValues$15({ sx: header }, rest), typeof children === "string" ? /* @__PURE__ */ React.createElement(H3$1, null, children) : children, /* @__PURE__ */ React.createElement(
|
|
5119
|
-
react.CloseButton,
|
|
5120
|
-
{
|
|
5121
|
-
"aria-label": "Close toolbox",
|
|
5122
|
-
position: "fixed",
|
|
5123
|
-
right: 4,
|
|
5124
|
-
onClick: onClose
|
|
5125
|
-
}
|
|
5126
|
-
));
|
|
5127
|
-
};
|
|
5128
|
-
|
|
5129
5147
|
var __defProp$14 = Object.defineProperty;
|
|
5130
5148
|
var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
|
|
5131
5149
|
var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
|
|
@@ -5154,16 +5172,24 @@
|
|
|
5154
5172
|
}
|
|
5155
5173
|
return target;
|
|
5156
5174
|
};
|
|
5157
|
-
const
|
|
5158
|
-
var _b = _a, {
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
)
|
|
5175
|
+
const ToolboxHeader = (_a) => {
|
|
5176
|
+
var _b = _a, {
|
|
5177
|
+
children,
|
|
5178
|
+
onClose
|
|
5179
|
+
} = _b, rest = __objRest$O(_b, [
|
|
5180
|
+
"children",
|
|
5181
|
+
"onClose"
|
|
5182
|
+
]);
|
|
5183
|
+
const { header } = system.useMultiStyleConfig("Toolbox", {});
|
|
5184
|
+
return /* @__PURE__ */ React.createElement(react.Flex, __spreadValues$14({ sx: header }, rest), typeof children === "string" ? /* @__PURE__ */ React.createElement(H3$1, null, children) : children, /* @__PURE__ */ React.createElement(
|
|
5185
|
+
react.CloseButton,
|
|
5186
|
+
{
|
|
5187
|
+
"aria-label": "Close toolbox",
|
|
5188
|
+
position: "fixed",
|
|
5189
|
+
right: 4,
|
|
5190
|
+
onClick: onClose
|
|
5191
|
+
}
|
|
5192
|
+
));
|
|
5167
5193
|
};
|
|
5168
5194
|
|
|
5169
5195
|
var __defProp$13 = Object.defineProperty;
|
|
@@ -5194,10 +5220,16 @@
|
|
|
5194
5220
|
}
|
|
5195
5221
|
return target;
|
|
5196
5222
|
};
|
|
5197
|
-
const
|
|
5223
|
+
const ToolboxContent = (_a) => {
|
|
5198
5224
|
var _b = _a, { children } = _b, rest = __objRest$N(_b, ["children"]);
|
|
5199
|
-
const {
|
|
5200
|
-
return /* @__PURE__ */ React.createElement(
|
|
5225
|
+
const { body } = system.useMultiStyleConfig("Toolbox", {});
|
|
5226
|
+
return /* @__PURE__ */ React.createElement(
|
|
5227
|
+
react.Flex,
|
|
5228
|
+
__spreadValues$13({
|
|
5229
|
+
sx: body
|
|
5230
|
+
}, rest),
|
|
5231
|
+
children
|
|
5232
|
+
);
|
|
5201
5233
|
};
|
|
5202
5234
|
|
|
5203
5235
|
var __defProp$12 = Object.defineProperty;
|
|
@@ -5228,27 +5260,10 @@
|
|
|
5228
5260
|
}
|
|
5229
5261
|
return target;
|
|
5230
5262
|
};
|
|
5231
|
-
const
|
|
5232
|
-
var _b = _a, {
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
name,
|
|
5236
|
-
value
|
|
5237
|
-
} = _b, rest = __objRest$M(_b, [
|
|
5238
|
-
"size",
|
|
5239
|
-
"onChange",
|
|
5240
|
-
"name",
|
|
5241
|
-
"value"
|
|
5242
|
-
]);
|
|
5243
|
-
return /* @__PURE__ */ React.createElement(
|
|
5244
|
-
react.Radio,
|
|
5245
|
-
__spreadValues$12({
|
|
5246
|
-
size,
|
|
5247
|
-
id: name,
|
|
5248
|
-
onChange,
|
|
5249
|
-
value
|
|
5250
|
-
}, rest)
|
|
5251
|
-
);
|
|
5263
|
+
const ToolboxFooter = (_a) => {
|
|
5264
|
+
var _b = _a, { children } = _b, rest = __objRest$M(_b, ["children"]);
|
|
5265
|
+
const { footer } = system.useMultiStyleConfig("Toolbox", {});
|
|
5266
|
+
return /* @__PURE__ */ React.createElement(react.Flex, __spreadValues$12({ sx: footer }, rest), children);
|
|
5252
5267
|
};
|
|
5253
5268
|
|
|
5254
5269
|
var __defProp$11 = Object.defineProperty;
|
|
@@ -5279,17 +5294,27 @@
|
|
|
5279
5294
|
}
|
|
5280
5295
|
return target;
|
|
5281
5296
|
};
|
|
5282
|
-
const
|
|
5297
|
+
const Radio$1 = (_a) => {
|
|
5283
5298
|
var _b = _a, {
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
name
|
|
5299
|
+
size = "md",
|
|
5300
|
+
onChange,
|
|
5301
|
+
name,
|
|
5302
|
+
value
|
|
5287
5303
|
} = _b, rest = __objRest$L(_b, [
|
|
5288
|
-
"
|
|
5289
|
-
"
|
|
5290
|
-
"name"
|
|
5304
|
+
"size",
|
|
5305
|
+
"onChange",
|
|
5306
|
+
"name",
|
|
5307
|
+
"value"
|
|
5291
5308
|
]);
|
|
5292
|
-
return /* @__PURE__ */ React.createElement(
|
|
5309
|
+
return /* @__PURE__ */ React.createElement(
|
|
5310
|
+
react.Radio,
|
|
5311
|
+
__spreadValues$11({
|
|
5312
|
+
size,
|
|
5313
|
+
id: name,
|
|
5314
|
+
onChange,
|
|
5315
|
+
value
|
|
5316
|
+
}, rest)
|
|
5317
|
+
);
|
|
5293
5318
|
};
|
|
5294
5319
|
|
|
5295
5320
|
var __defProp$10 = Object.defineProperty;
|
|
@@ -5320,6 +5345,47 @@
|
|
|
5320
5345
|
}
|
|
5321
5346
|
return target;
|
|
5322
5347
|
};
|
|
5348
|
+
const RadioGroup = (_a) => {
|
|
5349
|
+
var _b = _a, {
|
|
5350
|
+
direction = "row",
|
|
5351
|
+
children,
|
|
5352
|
+
name
|
|
5353
|
+
} = _b, rest = __objRest$K(_b, [
|
|
5354
|
+
"direction",
|
|
5355
|
+
"children",
|
|
5356
|
+
"name"
|
|
5357
|
+
]);
|
|
5358
|
+
return /* @__PURE__ */ React.createElement(react.RadioGroup, __spreadValues$10({ name, id: name }, rest), /* @__PURE__ */ React.createElement(react.Stack, { direction }, children));
|
|
5359
|
+
};
|
|
5360
|
+
|
|
5361
|
+
var __defProp$$ = Object.defineProperty;
|
|
5362
|
+
var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
|
|
5363
|
+
var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
|
|
5364
|
+
var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
|
|
5365
|
+
var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5366
|
+
var __spreadValues$$ = (a, b) => {
|
|
5367
|
+
for (var prop in b || (b = {}))
|
|
5368
|
+
if (__hasOwnProp$$.call(b, prop))
|
|
5369
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
5370
|
+
if (__getOwnPropSymbols$$)
|
|
5371
|
+
for (var prop of __getOwnPropSymbols$$(b)) {
|
|
5372
|
+
if (__propIsEnum$$.call(b, prop))
|
|
5373
|
+
__defNormalProp$$(a, prop, b[prop]);
|
|
5374
|
+
}
|
|
5375
|
+
return a;
|
|
5376
|
+
};
|
|
5377
|
+
var __objRest$J = (source, exclude) => {
|
|
5378
|
+
var target = {};
|
|
5379
|
+
for (var prop in source)
|
|
5380
|
+
if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5381
|
+
target[prop] = source[prop];
|
|
5382
|
+
if (source != null && __getOwnPropSymbols$$)
|
|
5383
|
+
for (var prop of __getOwnPropSymbols$$(source)) {
|
|
5384
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
|
|
5385
|
+
target[prop] = source[prop];
|
|
5386
|
+
}
|
|
5387
|
+
return target;
|
|
5388
|
+
};
|
|
5323
5389
|
const RadioGroupField = React.forwardRef((_a, ref) => {
|
|
5324
5390
|
var _b = _a, {
|
|
5325
5391
|
name,
|
|
@@ -5329,7 +5395,7 @@
|
|
|
5329
5395
|
isRequired,
|
|
5330
5396
|
validate,
|
|
5331
5397
|
onChange: onChangeCallback = ramda.identity
|
|
5332
|
-
} = _b, rest = __objRest$
|
|
5398
|
+
} = _b, rest = __objRest$J(_b, [
|
|
5333
5399
|
"name",
|
|
5334
5400
|
"label",
|
|
5335
5401
|
"children",
|
|
@@ -5350,7 +5416,7 @@
|
|
|
5350
5416
|
},
|
|
5351
5417
|
({ onChange, value }) => /* @__PURE__ */ React.createElement(
|
|
5352
5418
|
RadioGroup,
|
|
5353
|
-
__spreadValues
|
|
5419
|
+
__spreadValues$$({
|
|
5354
5420
|
name,
|
|
5355
5421
|
onChange: (e) => {
|
|
5356
5422
|
onChange(e);
|
|
@@ -5379,30 +5445,30 @@
|
|
|
5379
5445
|
itemHeight = carouselItemWidth
|
|
5380
5446
|
}) => /* @__PURE__ */ React.createElement(framerMotion.motion.div, { animate: isActive ? "active" : "inActive", variants }, /* @__PURE__ */ React.createElement(react.Center, { minW: `${itemWidth}px`, h: `${itemHeight}px ` }, children));
|
|
5381
5447
|
|
|
5382
|
-
var __defProp
|
|
5383
|
-
var __getOwnPropSymbols
|
|
5384
|
-
var __hasOwnProp
|
|
5385
|
-
var __propIsEnum
|
|
5386
|
-
var __defNormalProp
|
|
5387
|
-
var __spreadValues
|
|
5448
|
+
var __defProp$_ = Object.defineProperty;
|
|
5449
|
+
var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
|
|
5450
|
+
var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
|
|
5451
|
+
var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
|
|
5452
|
+
var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5453
|
+
var __spreadValues$_ = (a, b) => {
|
|
5388
5454
|
for (var prop in b || (b = {}))
|
|
5389
|
-
if (__hasOwnProp
|
|
5390
|
-
__defNormalProp
|
|
5391
|
-
if (__getOwnPropSymbols
|
|
5392
|
-
for (var prop of __getOwnPropSymbols
|
|
5393
|
-
if (__propIsEnum
|
|
5394
|
-
__defNormalProp
|
|
5455
|
+
if (__hasOwnProp$_.call(b, prop))
|
|
5456
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
5457
|
+
if (__getOwnPropSymbols$_)
|
|
5458
|
+
for (var prop of __getOwnPropSymbols$_(b)) {
|
|
5459
|
+
if (__propIsEnum$_.call(b, prop))
|
|
5460
|
+
__defNormalProp$_(a, prop, b[prop]);
|
|
5395
5461
|
}
|
|
5396
5462
|
return a;
|
|
5397
5463
|
};
|
|
5398
|
-
var __objRest$
|
|
5464
|
+
var __objRest$I = (source, exclude) => {
|
|
5399
5465
|
var target = {};
|
|
5400
5466
|
for (var prop in source)
|
|
5401
|
-
if (__hasOwnProp
|
|
5467
|
+
if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5402
5468
|
target[prop] = source[prop];
|
|
5403
|
-
if (source != null && __getOwnPropSymbols
|
|
5404
|
-
for (var prop of __getOwnPropSymbols
|
|
5405
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum
|
|
5469
|
+
if (source != null && __getOwnPropSymbols$_)
|
|
5470
|
+
for (var prop of __getOwnPropSymbols$_(source)) {
|
|
5471
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
|
|
5406
5472
|
target[prop] = source[prop];
|
|
5407
5473
|
}
|
|
5408
5474
|
return target;
|
|
@@ -5411,14 +5477,14 @@
|
|
|
5411
5477
|
var _b = _a, {
|
|
5412
5478
|
onClick,
|
|
5413
5479
|
direction
|
|
5414
|
-
} = _b, rest = __objRest$
|
|
5480
|
+
} = _b, rest = __objRest$I(_b, [
|
|
5415
5481
|
"onClick",
|
|
5416
5482
|
"direction"
|
|
5417
5483
|
]);
|
|
5418
5484
|
const { arrow } = react.useMultiStyleConfig("Carousel", {});
|
|
5419
5485
|
return /* @__PURE__ */ React.createElement(
|
|
5420
5486
|
react.Center,
|
|
5421
|
-
__spreadValues
|
|
5487
|
+
__spreadValues$_({
|
|
5422
5488
|
sx: arrow,
|
|
5423
5489
|
onClick
|
|
5424
5490
|
}, rest),
|
|
@@ -5426,30 +5492,30 @@
|
|
|
5426
5492
|
);
|
|
5427
5493
|
};
|
|
5428
5494
|
|
|
5429
|
-
var __defProp$
|
|
5430
|
-
var __getOwnPropSymbols$
|
|
5431
|
-
var __hasOwnProp$
|
|
5432
|
-
var __propIsEnum$
|
|
5433
|
-
var __defNormalProp$
|
|
5434
|
-
var __spreadValues$
|
|
5495
|
+
var __defProp$Z = Object.defineProperty;
|
|
5496
|
+
var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
|
|
5497
|
+
var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
|
|
5498
|
+
var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
|
|
5499
|
+
var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5500
|
+
var __spreadValues$Z = (a, b) => {
|
|
5435
5501
|
for (var prop in b || (b = {}))
|
|
5436
|
-
if (__hasOwnProp$
|
|
5437
|
-
__defNormalProp$
|
|
5438
|
-
if (__getOwnPropSymbols$
|
|
5439
|
-
for (var prop of __getOwnPropSymbols$
|
|
5440
|
-
if (__propIsEnum$
|
|
5441
|
-
__defNormalProp$
|
|
5502
|
+
if (__hasOwnProp$Z.call(b, prop))
|
|
5503
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
5504
|
+
if (__getOwnPropSymbols$Z)
|
|
5505
|
+
for (var prop of __getOwnPropSymbols$Z(b)) {
|
|
5506
|
+
if (__propIsEnum$Z.call(b, prop))
|
|
5507
|
+
__defNormalProp$Z(a, prop, b[prop]);
|
|
5442
5508
|
}
|
|
5443
5509
|
return a;
|
|
5444
5510
|
};
|
|
5445
|
-
var __objRest$
|
|
5511
|
+
var __objRest$H = (source, exclude) => {
|
|
5446
5512
|
var target = {};
|
|
5447
5513
|
for (var prop in source)
|
|
5448
|
-
if (__hasOwnProp$
|
|
5514
|
+
if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5449
5515
|
target[prop] = source[prop];
|
|
5450
|
-
if (source != null && __getOwnPropSymbols$
|
|
5451
|
-
for (var prop of __getOwnPropSymbols$
|
|
5452
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5516
|
+
if (source != null && __getOwnPropSymbols$Z)
|
|
5517
|
+
for (var prop of __getOwnPropSymbols$Z(source)) {
|
|
5518
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
|
|
5453
5519
|
target[prop] = source[prop];
|
|
5454
5520
|
}
|
|
5455
5521
|
return target;
|
|
@@ -5465,7 +5531,7 @@
|
|
|
5465
5531
|
itemHeight = carouselItemWidth,
|
|
5466
5532
|
spacing = carouselItemSpacing,
|
|
5467
5533
|
carouselStyles = {}
|
|
5468
|
-
} = _b, rest = __objRest$
|
|
5534
|
+
} = _b, rest = __objRest$H(_b, [
|
|
5469
5535
|
"children",
|
|
5470
5536
|
"showArrows",
|
|
5471
5537
|
"showRadio",
|
|
@@ -5512,7 +5578,7 @@
|
|
|
5512
5578
|
};
|
|
5513
5579
|
return /* @__PURE__ */ React.createElement(
|
|
5514
5580
|
react.Box,
|
|
5515
|
-
__spreadValues$
|
|
5581
|
+
__spreadValues$Z({
|
|
5516
5582
|
cursor: dragging ? "grabbing" : "grab",
|
|
5517
5583
|
onMouseDown: () => setDragging(true),
|
|
5518
5584
|
onMouseUp: () => setDragging(false),
|
|
@@ -5534,7 +5600,7 @@
|
|
|
5534
5600
|
},
|
|
5535
5601
|
/* @__PURE__ */ React.createElement(
|
|
5536
5602
|
react.HStack,
|
|
5537
|
-
__spreadValues$
|
|
5603
|
+
__spreadValues$Z({
|
|
5538
5604
|
spacing: `${spacing}px`,
|
|
5539
5605
|
width: `${totalWidth}px`,
|
|
5540
5606
|
h: "full"
|
|
@@ -5585,127 +5651,127 @@
|
|
|
5585
5651
|
);
|
|
5586
5652
|
};
|
|
5587
5653
|
|
|
5588
|
-
var __defProp$
|
|
5589
|
-
var __defProps$
|
|
5590
|
-
var __getOwnPropDescs$
|
|
5591
|
-
var __getOwnPropSymbols$
|
|
5592
|
-
var __hasOwnProp$
|
|
5593
|
-
var __propIsEnum$
|
|
5594
|
-
var __defNormalProp$
|
|
5595
|
-
var __spreadValues$
|
|
5654
|
+
var __defProp$Y = Object.defineProperty;
|
|
5655
|
+
var __defProps$c = Object.defineProperties;
|
|
5656
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
5657
|
+
var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
|
|
5658
|
+
var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
|
|
5659
|
+
var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
|
|
5660
|
+
var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5661
|
+
var __spreadValues$Y = (a, b) => {
|
|
5596
5662
|
for (var prop in b || (b = {}))
|
|
5597
|
-
if (__hasOwnProp$
|
|
5598
|
-
__defNormalProp$
|
|
5599
|
-
if (__getOwnPropSymbols$
|
|
5600
|
-
for (var prop of __getOwnPropSymbols$
|
|
5601
|
-
if (__propIsEnum$
|
|
5602
|
-
__defNormalProp$
|
|
5663
|
+
if (__hasOwnProp$Y.call(b, prop))
|
|
5664
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
5665
|
+
if (__getOwnPropSymbols$Y)
|
|
5666
|
+
for (var prop of __getOwnPropSymbols$Y(b)) {
|
|
5667
|
+
if (__propIsEnum$Y.call(b, prop))
|
|
5668
|
+
__defNormalProp$Y(a, prop, b[prop]);
|
|
5603
5669
|
}
|
|
5604
5670
|
return a;
|
|
5605
5671
|
};
|
|
5606
|
-
var __spreadProps$
|
|
5672
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
5607
5673
|
const searchBarStyles = (sx) => ramda.merge({
|
|
5608
|
-
container: (provided) => __spreadProps$
|
|
5674
|
+
container: (provided) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5609
5675
|
width: "100%",
|
|
5610
5676
|
color: "text.default",
|
|
5611
5677
|
alignSelf: "center"
|
|
5612
5678
|
}),
|
|
5613
|
-
option: (provided, state) => __spreadProps$
|
|
5679
|
+
option: (provided, state) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5614
5680
|
background: state.isFocused && "background.select.option-focus",
|
|
5615
5681
|
_active: {
|
|
5616
5682
|
background: "background.select.option-active"
|
|
5617
5683
|
}
|
|
5618
5684
|
}),
|
|
5619
|
-
valueContainer: (provided) => __spreadProps$
|
|
5685
|
+
valueContainer: (provided) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5620
5686
|
paddingInlineStart: "padding-inline.select.default"
|
|
5621
5687
|
}),
|
|
5622
|
-
downChevron: (provided) => __spreadProps$
|
|
5688
|
+
downChevron: (provided) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5623
5689
|
color: "icon.select.default"
|
|
5624
5690
|
}),
|
|
5625
|
-
placeholder: (provided) => __spreadProps$
|
|
5691
|
+
placeholder: (provided) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5626
5692
|
color: "text.select.placeholder"
|
|
5627
5693
|
}),
|
|
5628
5694
|
multiValue: (provided, state) => {
|
|
5629
5695
|
var _a;
|
|
5630
5696
|
const background = state.data.isFixed ? "background.select.option-disabled" : (_a = state.data.color) != null ? _a : provided.bgColor;
|
|
5631
|
-
return __spreadValues$
|
|
5697
|
+
return __spreadValues$Y(__spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5632
5698
|
bgColor: background,
|
|
5633
5699
|
color: getContrastColor(background)
|
|
5634
5700
|
}), sx.multiValue);
|
|
5635
5701
|
},
|
|
5636
|
-
menuList: (provided) => __spreadProps$
|
|
5702
|
+
menuList: (provided) => __spreadProps$c(__spreadValues$Y({}, provided), {
|
|
5637
5703
|
bgColor: "background.default"
|
|
5638
5704
|
})
|
|
5639
5705
|
}, sx);
|
|
5640
5706
|
|
|
5641
|
-
var __defProp$
|
|
5642
|
-
var __getOwnPropSymbols$
|
|
5643
|
-
var __hasOwnProp$
|
|
5644
|
-
var __propIsEnum$
|
|
5645
|
-
var __defNormalProp$
|
|
5646
|
-
var __spreadValues$
|
|
5707
|
+
var __defProp$X = Object.defineProperty;
|
|
5708
|
+
var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
|
|
5709
|
+
var __hasOwnProp$X = Object.prototype.hasOwnProperty;
|
|
5710
|
+
var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
|
|
5711
|
+
var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5712
|
+
var __spreadValues$X = (a, b) => {
|
|
5647
5713
|
for (var prop in b || (b = {}))
|
|
5648
|
-
if (__hasOwnProp$
|
|
5649
|
-
__defNormalProp$
|
|
5650
|
-
if (__getOwnPropSymbols$
|
|
5651
|
-
for (var prop of __getOwnPropSymbols$
|
|
5652
|
-
if (__propIsEnum$
|
|
5653
|
-
__defNormalProp$
|
|
5714
|
+
if (__hasOwnProp$X.call(b, prop))
|
|
5715
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
5716
|
+
if (__getOwnPropSymbols$X)
|
|
5717
|
+
for (var prop of __getOwnPropSymbols$X(b)) {
|
|
5718
|
+
if (__propIsEnum$X.call(b, prop))
|
|
5719
|
+
__defNormalProp$X(a, prop, b[prop]);
|
|
5654
5720
|
}
|
|
5655
5721
|
return a;
|
|
5656
5722
|
};
|
|
5657
|
-
var __objRest$
|
|
5723
|
+
var __objRest$G = (source, exclude) => {
|
|
5658
5724
|
var target = {};
|
|
5659
5725
|
for (var prop in source)
|
|
5660
|
-
if (__hasOwnProp$
|
|
5726
|
+
if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5661
5727
|
target[prop] = source[prop];
|
|
5662
|
-
if (source != null && __getOwnPropSymbols$
|
|
5663
|
-
for (var prop of __getOwnPropSymbols$
|
|
5664
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5728
|
+
if (source != null && __getOwnPropSymbols$X)
|
|
5729
|
+
for (var prop of __getOwnPropSymbols$X(source)) {
|
|
5730
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
|
|
5665
5731
|
target[prop] = source[prop];
|
|
5666
5732
|
}
|
|
5667
5733
|
return target;
|
|
5668
5734
|
};
|
|
5669
5735
|
function getComponents() {
|
|
5670
5736
|
return {
|
|
5671
|
-
DropdownIndicator: (props) => props.selectProps.icon ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.DropdownIndicator, __spreadValues$
|
|
5672
|
-
Option: (props) => props.selectProps.customOption ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Option, __spreadValues$
|
|
5673
|
-
MultiValueContainer: (props) => props.selectProps.customTag ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.MultiValueContainer, __spreadValues$
|
|
5737
|
+
DropdownIndicator: (props) => props.selectProps.icon ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.DropdownIndicator, __spreadValues$X({}, props), /* @__PURE__ */ React.createElement(Icon$1, { as: props.selectProps.icon })) : /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.DropdownIndicator, __spreadValues$X({}, props)),
|
|
5738
|
+
Option: (props) => props.selectProps.customOption ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Option, __spreadValues$X({}, props), props.selectProps.customOption(props.data)) : /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Option, __spreadValues$X({}, props)),
|
|
5739
|
+
MultiValueContainer: (props) => props.selectProps.customTag ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.MultiValueContainer, __spreadValues$X({}, props), props.selectProps.customTag(props.data)) : /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.MultiValueContainer, __spreadValues$X({}, props)),
|
|
5674
5740
|
Control: (_a) => {
|
|
5675
5741
|
var _b = _a, {
|
|
5676
5742
|
children
|
|
5677
|
-
} = _b, props = __objRest$
|
|
5743
|
+
} = _b, props = __objRest$G(_b, [
|
|
5678
5744
|
"children"
|
|
5679
5745
|
]);
|
|
5680
|
-
return props.selectProps.leftIcon ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Control, __spreadValues$
|
|
5746
|
+
return props.selectProps.leftIcon ? /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Control, __spreadValues$X({}, props), /* @__PURE__ */ React.createElement(react.HStack, { w: "full", pl: "2" }, /* @__PURE__ */ React.createElement(Icon$1, { as: props.selectProps.leftIcon }), /* @__PURE__ */ React.createElement(react.HStack, { w: "full", justify: "space-between" }, children))) : /* @__PURE__ */ React.createElement(chakraReactSelect.chakraComponents.Control, __spreadValues$X({}, props), children);
|
|
5681
5747
|
}
|
|
5682
5748
|
};
|
|
5683
5749
|
}
|
|
5684
5750
|
|
|
5685
|
-
var __defProp$
|
|
5686
|
-
var __getOwnPropSymbols$
|
|
5687
|
-
var __hasOwnProp$
|
|
5688
|
-
var __propIsEnum$
|
|
5689
|
-
var __defNormalProp$
|
|
5690
|
-
var __spreadValues$
|
|
5751
|
+
var __defProp$W = Object.defineProperty;
|
|
5752
|
+
var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
|
|
5753
|
+
var __hasOwnProp$W = Object.prototype.hasOwnProperty;
|
|
5754
|
+
var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
|
|
5755
|
+
var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5756
|
+
var __spreadValues$W = (a, b) => {
|
|
5691
5757
|
for (var prop in b || (b = {}))
|
|
5692
|
-
if (__hasOwnProp$
|
|
5693
|
-
__defNormalProp$
|
|
5694
|
-
if (__getOwnPropSymbols$
|
|
5695
|
-
for (var prop of __getOwnPropSymbols$
|
|
5696
|
-
if (__propIsEnum$
|
|
5697
|
-
__defNormalProp$
|
|
5758
|
+
if (__hasOwnProp$W.call(b, prop))
|
|
5759
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
5760
|
+
if (__getOwnPropSymbols$W)
|
|
5761
|
+
for (var prop of __getOwnPropSymbols$W(b)) {
|
|
5762
|
+
if (__propIsEnum$W.call(b, prop))
|
|
5763
|
+
__defNormalProp$W(a, prop, b[prop]);
|
|
5698
5764
|
}
|
|
5699
5765
|
return a;
|
|
5700
5766
|
};
|
|
5701
|
-
var __objRest$
|
|
5767
|
+
var __objRest$F = (source, exclude) => {
|
|
5702
5768
|
var target = {};
|
|
5703
5769
|
for (var prop in source)
|
|
5704
|
-
if (__hasOwnProp$
|
|
5770
|
+
if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5705
5771
|
target[prop] = source[prop];
|
|
5706
|
-
if (source != null && __getOwnPropSymbols$
|
|
5707
|
-
for (var prop of __getOwnPropSymbols$
|
|
5708
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5772
|
+
if (source != null && __getOwnPropSymbols$W)
|
|
5773
|
+
for (var prop of __getOwnPropSymbols$W(source)) {
|
|
5774
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
|
|
5709
5775
|
target[prop] = source[prop];
|
|
5710
5776
|
}
|
|
5711
5777
|
return target;
|
|
@@ -5729,7 +5795,7 @@
|
|
|
5729
5795
|
value,
|
|
5730
5796
|
onSearchInputChange = ramda.identity,
|
|
5731
5797
|
icon = icons.SearchDuo
|
|
5732
|
-
} = _b, rest = __objRest$
|
|
5798
|
+
} = _b, rest = __objRest$F(_b, [
|
|
5733
5799
|
"defaultOptions",
|
|
5734
5800
|
"isMulti",
|
|
5735
5801
|
"customOption",
|
|
@@ -5789,7 +5855,7 @@
|
|
|
5789
5855
|
};
|
|
5790
5856
|
return /* @__PURE__ */ React.createElement(react.Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
5791
5857
|
chakraReactSelect.AsyncSelect,
|
|
5792
|
-
__spreadValues$
|
|
5858
|
+
__spreadValues$W({
|
|
5793
5859
|
cacheOptions: true,
|
|
5794
5860
|
defaultOptions: filtered,
|
|
5795
5861
|
loadOptions,
|
|
@@ -5815,30 +5881,30 @@
|
|
|
5815
5881
|
}
|
|
5816
5882
|
);
|
|
5817
5883
|
|
|
5818
|
-
var __defProp$
|
|
5819
|
-
var __getOwnPropSymbols$
|
|
5820
|
-
var __hasOwnProp$
|
|
5821
|
-
var __propIsEnum$
|
|
5822
|
-
var __defNormalProp$
|
|
5823
|
-
var __spreadValues$
|
|
5884
|
+
var __defProp$V = Object.defineProperty;
|
|
5885
|
+
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
5886
|
+
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
5887
|
+
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
5888
|
+
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5889
|
+
var __spreadValues$V = (a, b) => {
|
|
5824
5890
|
for (var prop in b || (b = {}))
|
|
5825
|
-
if (__hasOwnProp$
|
|
5826
|
-
__defNormalProp$
|
|
5827
|
-
if (__getOwnPropSymbols$
|
|
5828
|
-
for (var prop of __getOwnPropSymbols$
|
|
5829
|
-
if (__propIsEnum$
|
|
5830
|
-
__defNormalProp$
|
|
5891
|
+
if (__hasOwnProp$V.call(b, prop))
|
|
5892
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
5893
|
+
if (__getOwnPropSymbols$V)
|
|
5894
|
+
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
5895
|
+
if (__propIsEnum$V.call(b, prop))
|
|
5896
|
+
__defNormalProp$V(a, prop, b[prop]);
|
|
5831
5897
|
}
|
|
5832
5898
|
return a;
|
|
5833
5899
|
};
|
|
5834
|
-
var __objRest$
|
|
5900
|
+
var __objRest$E = (source, exclude) => {
|
|
5835
5901
|
var target = {};
|
|
5836
5902
|
for (var prop in source)
|
|
5837
|
-
if (__hasOwnProp$
|
|
5903
|
+
if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5838
5904
|
target[prop] = source[prop];
|
|
5839
|
-
if (source != null && __getOwnPropSymbols$
|
|
5840
|
-
for (var prop of __getOwnPropSymbols$
|
|
5841
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5905
|
+
if (source != null && __getOwnPropSymbols$V)
|
|
5906
|
+
for (var prop of __getOwnPropSymbols$V(source)) {
|
|
5907
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
|
|
5842
5908
|
target[prop] = source[prop];
|
|
5843
5909
|
}
|
|
5844
5910
|
return target;
|
|
@@ -5855,7 +5921,7 @@
|
|
|
5855
5921
|
onChange: onChangeCallback = ramda.identity,
|
|
5856
5922
|
inputLeftElement,
|
|
5857
5923
|
inputRightElement
|
|
5858
|
-
} = _b, rest = __objRest$
|
|
5924
|
+
} = _b, rest = __objRest$E(_b, [
|
|
5859
5925
|
"name",
|
|
5860
5926
|
"label",
|
|
5861
5927
|
"direction",
|
|
@@ -5886,7 +5952,7 @@
|
|
|
5886
5952
|
},
|
|
5887
5953
|
/* @__PURE__ */ React.createElement(
|
|
5888
5954
|
SearchBar,
|
|
5889
|
-
__spreadValues$
|
|
5955
|
+
__spreadValues$V({
|
|
5890
5956
|
name,
|
|
5891
5957
|
isMulti,
|
|
5892
5958
|
onChange: (values, event) => {
|
|
@@ -5914,24 +5980,6 @@
|
|
|
5914
5980
|
};
|
|
5915
5981
|
const SearchBarField = React.forwardRef(BaseSearchBarField);
|
|
5916
5982
|
|
|
5917
|
-
var __defProp$V = Object.defineProperty;
|
|
5918
|
-
var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
|
|
5919
|
-
var __hasOwnProp$V = Object.prototype.hasOwnProperty;
|
|
5920
|
-
var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
|
|
5921
|
-
var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5922
|
-
var __spreadValues$V = (a, b) => {
|
|
5923
|
-
for (var prop in b || (b = {}))
|
|
5924
|
-
if (__hasOwnProp$V.call(b, prop))
|
|
5925
|
-
__defNormalProp$V(a, prop, b[prop]);
|
|
5926
|
-
if (__getOwnPropSymbols$V)
|
|
5927
|
-
for (var prop of __getOwnPropSymbols$V(b)) {
|
|
5928
|
-
if (__propIsEnum$V.call(b, prop))
|
|
5929
|
-
__defNormalProp$V(a, prop, b[prop]);
|
|
5930
|
-
}
|
|
5931
|
-
return a;
|
|
5932
|
-
};
|
|
5933
|
-
const DragAndDrop$1 = (props) => /* @__PURE__ */ React.createElement(core.DndContext, __spreadValues$V({}, props));
|
|
5934
|
-
|
|
5935
5983
|
var __defProp$U = Object.defineProperty;
|
|
5936
5984
|
var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
|
|
5937
5985
|
var __hasOwnProp$U = Object.prototype.hasOwnProperty;
|
|
@@ -5948,14 +5996,32 @@
|
|
|
5948
5996
|
}
|
|
5949
5997
|
return a;
|
|
5950
5998
|
};
|
|
5951
|
-
|
|
5999
|
+
const DragAndDrop$1 = (props) => /* @__PURE__ */ React.createElement(core.DndContext, __spreadValues$U({}, props));
|
|
6000
|
+
|
|
6001
|
+
var __defProp$T = Object.defineProperty;
|
|
6002
|
+
var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
|
|
6003
|
+
var __hasOwnProp$T = Object.prototype.hasOwnProperty;
|
|
6004
|
+
var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
|
|
6005
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6006
|
+
var __spreadValues$T = (a, b) => {
|
|
6007
|
+
for (var prop in b || (b = {}))
|
|
6008
|
+
if (__hasOwnProp$T.call(b, prop))
|
|
6009
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
6010
|
+
if (__getOwnPropSymbols$T)
|
|
6011
|
+
for (var prop of __getOwnPropSymbols$T(b)) {
|
|
6012
|
+
if (__propIsEnum$T.call(b, prop))
|
|
6013
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
6014
|
+
}
|
|
6015
|
+
return a;
|
|
6016
|
+
};
|
|
6017
|
+
var __objRest$D = (source, exclude) => {
|
|
5952
6018
|
var target = {};
|
|
5953
6019
|
for (var prop in source)
|
|
5954
|
-
if (__hasOwnProp$
|
|
6020
|
+
if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5955
6021
|
target[prop] = source[prop];
|
|
5956
|
-
if (source != null && __getOwnPropSymbols$
|
|
5957
|
-
for (var prop of __getOwnPropSymbols$
|
|
5958
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6022
|
+
if (source != null && __getOwnPropSymbols$T)
|
|
6023
|
+
for (var prop of __getOwnPropSymbols$T(source)) {
|
|
6024
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
|
|
5959
6025
|
target[prop] = source[prop];
|
|
5960
6026
|
}
|
|
5961
6027
|
return target;
|
|
@@ -5966,7 +6032,7 @@
|
|
|
5966
6032
|
variant = "solid",
|
|
5967
6033
|
bgColor,
|
|
5968
6034
|
colorScheme
|
|
5969
|
-
} = _b, rest = __objRest$
|
|
6035
|
+
} = _b, rest = __objRest$D(_b, [
|
|
5970
6036
|
"children",
|
|
5971
6037
|
"variant",
|
|
5972
6038
|
"bgColor",
|
|
@@ -5974,7 +6040,7 @@
|
|
|
5974
6040
|
]);
|
|
5975
6041
|
return /* @__PURE__ */ React.createElement(
|
|
5976
6042
|
react.Tag,
|
|
5977
|
-
__spreadValues$
|
|
6043
|
+
__spreadValues$T({
|
|
5978
6044
|
bgColor,
|
|
5979
6045
|
colorScheme,
|
|
5980
6046
|
ref,
|
|
@@ -5988,30 +6054,30 @@
|
|
|
5988
6054
|
nbrRemainingTags
|
|
5989
6055
|
}) => /* @__PURE__ */ React.createElement(Tag$1, { variant: "subtle", minW: "max-content" }, "+", nbrRemainingTags);
|
|
5990
6056
|
|
|
5991
|
-
var __defProp$
|
|
5992
|
-
var __getOwnPropSymbols$
|
|
5993
|
-
var __hasOwnProp$
|
|
5994
|
-
var __propIsEnum$
|
|
5995
|
-
var __defNormalProp$
|
|
5996
|
-
var __spreadValues$
|
|
6057
|
+
var __defProp$S = Object.defineProperty;
|
|
6058
|
+
var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
|
|
6059
|
+
var __hasOwnProp$S = Object.prototype.hasOwnProperty;
|
|
6060
|
+
var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
|
|
6061
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6062
|
+
var __spreadValues$S = (a, b) => {
|
|
5997
6063
|
for (var prop in b || (b = {}))
|
|
5998
|
-
if (__hasOwnProp$
|
|
5999
|
-
__defNormalProp$
|
|
6000
|
-
if (__getOwnPropSymbols$
|
|
6001
|
-
for (var prop of __getOwnPropSymbols$
|
|
6002
|
-
if (__propIsEnum$
|
|
6003
|
-
__defNormalProp$
|
|
6064
|
+
if (__hasOwnProp$S.call(b, prop))
|
|
6065
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
6066
|
+
if (__getOwnPropSymbols$S)
|
|
6067
|
+
for (var prop of __getOwnPropSymbols$S(b)) {
|
|
6068
|
+
if (__propIsEnum$S.call(b, prop))
|
|
6069
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
6004
6070
|
}
|
|
6005
6071
|
return a;
|
|
6006
6072
|
};
|
|
6007
|
-
var __objRest$
|
|
6073
|
+
var __objRest$C = (source, exclude) => {
|
|
6008
6074
|
var target = {};
|
|
6009
6075
|
for (var prop in source)
|
|
6010
|
-
if (__hasOwnProp$
|
|
6076
|
+
if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6011
6077
|
target[prop] = source[prop];
|
|
6012
|
-
if (source != null && __getOwnPropSymbols$
|
|
6013
|
-
for (var prop of __getOwnPropSymbols$
|
|
6014
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6078
|
+
if (source != null && __getOwnPropSymbols$S)
|
|
6079
|
+
for (var prop of __getOwnPropSymbols$S(source)) {
|
|
6080
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
|
|
6015
6081
|
target[prop] = source[prop];
|
|
6016
6082
|
}
|
|
6017
6083
|
return target;
|
|
@@ -6022,7 +6088,7 @@
|
|
|
6022
6088
|
max = Infinity,
|
|
6023
6089
|
spacing = "2",
|
|
6024
6090
|
OverflowIndicator: OverflowIndicator$1 = OverflowIndicator
|
|
6025
|
-
} = _b, rest = __objRest$
|
|
6091
|
+
} = _b, rest = __objRest$C(_b, [
|
|
6026
6092
|
"children",
|
|
6027
6093
|
"max",
|
|
6028
6094
|
"spacing",
|
|
@@ -6032,7 +6098,7 @@
|
|
|
6032
6098
|
const { rect, containerRef } = useOverflowGroup();
|
|
6033
6099
|
return /* @__PURE__ */ React.createElement(
|
|
6034
6100
|
react.HStack,
|
|
6035
|
-
__spreadValues$
|
|
6101
|
+
__spreadValues$S({
|
|
6036
6102
|
bgColor: "background.default",
|
|
6037
6103
|
ref: containerRef,
|
|
6038
6104
|
overflow: "hidden"
|
|
@@ -6042,30 +6108,30 @@
|
|
|
6042
6108
|
);
|
|
6043
6109
|
};
|
|
6044
6110
|
|
|
6045
|
-
var __defProp$
|
|
6046
|
-
var __getOwnPropSymbols$
|
|
6047
|
-
var __hasOwnProp$
|
|
6048
|
-
var __propIsEnum$
|
|
6049
|
-
var __defNormalProp$
|
|
6050
|
-
var __spreadValues$
|
|
6111
|
+
var __defProp$R = Object.defineProperty;
|
|
6112
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
|
6113
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
|
6114
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
|
6115
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6116
|
+
var __spreadValues$R = (a, b) => {
|
|
6051
6117
|
for (var prop in b || (b = {}))
|
|
6052
|
-
if (__hasOwnProp$
|
|
6053
|
-
__defNormalProp$
|
|
6054
|
-
if (__getOwnPropSymbols$
|
|
6055
|
-
for (var prop of __getOwnPropSymbols$
|
|
6056
|
-
if (__propIsEnum$
|
|
6057
|
-
__defNormalProp$
|
|
6118
|
+
if (__hasOwnProp$R.call(b, prop))
|
|
6119
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
6120
|
+
if (__getOwnPropSymbols$R)
|
|
6121
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
|
6122
|
+
if (__propIsEnum$R.call(b, prop))
|
|
6123
|
+
__defNormalProp$R(a, prop, b[prop]);
|
|
6058
6124
|
}
|
|
6059
6125
|
return a;
|
|
6060
6126
|
};
|
|
6061
|
-
var __objRest$
|
|
6127
|
+
var __objRest$B = (source, exclude) => {
|
|
6062
6128
|
var target = {};
|
|
6063
6129
|
for (var prop in source)
|
|
6064
|
-
if (__hasOwnProp$
|
|
6130
|
+
if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6065
6131
|
target[prop] = source[prop];
|
|
6066
|
-
if (source != null && __getOwnPropSymbols$
|
|
6067
|
-
for (var prop of __getOwnPropSymbols$
|
|
6068
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6132
|
+
if (source != null && __getOwnPropSymbols$R)
|
|
6133
|
+
for (var prop of __getOwnPropSymbols$R(source)) {
|
|
6134
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
|
|
6069
6135
|
target[prop] = source[prop];
|
|
6070
6136
|
}
|
|
6071
6137
|
return target;
|
|
@@ -6077,7 +6143,7 @@
|
|
|
6077
6143
|
isDragging,
|
|
6078
6144
|
itemLabel = "Drag Me",
|
|
6079
6145
|
bgColor
|
|
6080
|
-
} = _b, rest = __objRest$
|
|
6146
|
+
} = _b, rest = __objRest$B(_b, [
|
|
6081
6147
|
"size",
|
|
6082
6148
|
"isDragging",
|
|
6083
6149
|
"itemLabel",
|
|
@@ -6085,7 +6151,7 @@
|
|
|
6085
6151
|
]);
|
|
6086
6152
|
return /* @__PURE__ */ React.createElement(
|
|
6087
6153
|
Tag$1,
|
|
6088
|
-
__spreadValues$
|
|
6154
|
+
__spreadValues$R({
|
|
6089
6155
|
ref,
|
|
6090
6156
|
cursor: isDragging ? "grabbing" : "grab",
|
|
6091
6157
|
bgColor: bgColor || (isDragging ? "blue.200" : void 0),
|
|
@@ -6098,33 +6164,33 @@
|
|
|
6098
6164
|
}
|
|
6099
6165
|
);
|
|
6100
6166
|
|
|
6101
|
-
var __defProp$
|
|
6102
|
-
var __defProps$
|
|
6103
|
-
var __getOwnPropDescs$
|
|
6104
|
-
var __getOwnPropSymbols$
|
|
6105
|
-
var __hasOwnProp$
|
|
6106
|
-
var __propIsEnum$
|
|
6107
|
-
var __defNormalProp$
|
|
6108
|
-
var __spreadValues$
|
|
6167
|
+
var __defProp$Q = Object.defineProperty;
|
|
6168
|
+
var __defProps$b = Object.defineProperties;
|
|
6169
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
6170
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
6171
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
6172
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
6173
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6174
|
+
var __spreadValues$Q = (a, b) => {
|
|
6109
6175
|
for (var prop in b || (b = {}))
|
|
6110
|
-
if (__hasOwnProp$
|
|
6111
|
-
__defNormalProp$
|
|
6112
|
-
if (__getOwnPropSymbols$
|
|
6113
|
-
for (var prop of __getOwnPropSymbols$
|
|
6114
|
-
if (__propIsEnum$
|
|
6115
|
-
__defNormalProp$
|
|
6176
|
+
if (__hasOwnProp$Q.call(b, prop))
|
|
6177
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
6178
|
+
if (__getOwnPropSymbols$Q)
|
|
6179
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
6180
|
+
if (__propIsEnum$Q.call(b, prop))
|
|
6181
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
|
6116
6182
|
}
|
|
6117
6183
|
return a;
|
|
6118
6184
|
};
|
|
6119
|
-
var __spreadProps$
|
|
6120
|
-
var __objRest$
|
|
6185
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
6186
|
+
var __objRest$A = (source, exclude) => {
|
|
6121
6187
|
var target = {};
|
|
6122
6188
|
for (var prop in source)
|
|
6123
|
-
if (__hasOwnProp$
|
|
6189
|
+
if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6124
6190
|
target[prop] = source[prop];
|
|
6125
|
-
if (source != null && __getOwnPropSymbols$
|
|
6126
|
-
for (var prop of __getOwnPropSymbols$
|
|
6127
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6191
|
+
if (source != null && __getOwnPropSymbols$Q)
|
|
6192
|
+
for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
6193
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
|
|
6128
6194
|
target[prop] = source[prop];
|
|
6129
6195
|
}
|
|
6130
6196
|
return target;
|
|
@@ -6134,18 +6200,18 @@
|
|
|
6134
6200
|
itemLabel,
|
|
6135
6201
|
children,
|
|
6136
6202
|
disableDrag = false
|
|
6137
|
-
} = _b, rest = __objRest$
|
|
6203
|
+
} = _b, rest = __objRest$A(_b, [
|
|
6138
6204
|
"itemLabel",
|
|
6139
6205
|
"children",
|
|
6140
6206
|
"disableDrag"
|
|
6141
6207
|
]);
|
|
6142
|
-
const _a2 = core.useDraggable(__spreadValues$
|
|
6208
|
+
const _a2 = core.useDraggable(__spreadValues$Q({}, rest)), {
|
|
6143
6209
|
attributes,
|
|
6144
6210
|
listeners,
|
|
6145
6211
|
setNodeRef,
|
|
6146
6212
|
transform,
|
|
6147
6213
|
isDragging
|
|
6148
|
-
} = _a2, props = __objRest$
|
|
6214
|
+
} = _a2, props = __objRest$A(_a2, [
|
|
6149
6215
|
"attributes",
|
|
6150
6216
|
"listeners",
|
|
6151
6217
|
"setNodeRef",
|
|
@@ -6157,54 +6223,20 @@
|
|
|
6157
6223
|
}
|
|
6158
6224
|
const childrenWithDragCursor = React.isValidElement(children) ? React.cloneElement(children, {
|
|
6159
6225
|
cursor: isDragging ? "grabbing" : "grab"
|
|
6160
|
-
}) : children;
|
|
6161
|
-
const dragEventListeners = !disableDrag && listeners;
|
|
6162
|
-
return /* @__PURE__ */ React.createElement(
|
|
6163
|
-
react.Box,
|
|
6164
|
-
__spreadValues$
|
|
6165
|
-
ref: setNodeRef
|
|
6166
|
-
}, attributes), {
|
|
6167
|
-
transform: utilities.CSS.Translate.toString(transform),
|
|
6168
|
-
_focusVisible: ring,
|
|
6169
|
-
tabIndex: disableDrag ? -1 : 0,
|
|
6170
|
-
w: "max-content"
|
|
6171
|
-
}), dragEventListeners),
|
|
6172
|
-
typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor || /* @__PURE__ */ React.createElement(DragItem, { isDragging, itemLabel })
|
|
6173
|
-
);
|
|
6174
|
-
};
|
|
6175
|
-
|
|
6176
|
-
var __defProp$Q = Object.defineProperty;
|
|
6177
|
-
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
|
6178
|
-
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
|
6179
|
-
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
|
6180
|
-
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6181
|
-
var __spreadValues$Q = (a, b) => {
|
|
6182
|
-
for (var prop in b || (b = {}))
|
|
6183
|
-
if (__hasOwnProp$Q.call(b, prop))
|
|
6184
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
6185
|
-
if (__getOwnPropSymbols$Q)
|
|
6186
|
-
for (var prop of __getOwnPropSymbols$Q(b)) {
|
|
6187
|
-
if (__propIsEnum$Q.call(b, prop))
|
|
6188
|
-
__defNormalProp$Q(a, prop, b[prop]);
|
|
6189
|
-
}
|
|
6190
|
-
return a;
|
|
6191
|
-
};
|
|
6192
|
-
var __objRest$A = (source, exclude) => {
|
|
6193
|
-
var target = {};
|
|
6194
|
-
for (var prop in source)
|
|
6195
|
-
if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6196
|
-
target[prop] = source[prop];
|
|
6197
|
-
if (source != null && __getOwnPropSymbols$Q)
|
|
6198
|
-
for (var prop of __getOwnPropSymbols$Q(source)) {
|
|
6199
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
|
|
6200
|
-
target[prop] = source[prop];
|
|
6201
|
-
}
|
|
6202
|
-
return target;
|
|
6203
|
-
};
|
|
6204
|
-
const Droppable = (_a) => {
|
|
6205
|
-
var _b = _a, { children } = _b, rest = __objRest$A(_b, ["children"]);
|
|
6206
|
-
const _a2 = core.useDroppable(__spreadValues$Q({}, rest)), { setNodeRef } = _a2, props = __objRest$A(_a2, ["setNodeRef"]);
|
|
6207
|
-
return /* @__PURE__ */ React.createElement(react.Box, { ref: setNodeRef }, typeof children === "function" ? children(props) : children || /* @__PURE__ */ React.createElement(react.Center, null, "Drop here"));
|
|
6226
|
+
}) : children;
|
|
6227
|
+
const dragEventListeners = !disableDrag && listeners;
|
|
6228
|
+
return /* @__PURE__ */ React.createElement(
|
|
6229
|
+
react.Box,
|
|
6230
|
+
__spreadValues$Q(__spreadProps$b(__spreadValues$Q({
|
|
6231
|
+
ref: setNodeRef
|
|
6232
|
+
}, attributes), {
|
|
6233
|
+
transform: utilities.CSS.Translate.toString(transform),
|
|
6234
|
+
_focusVisible: ring,
|
|
6235
|
+
tabIndex: disableDrag ? -1 : 0,
|
|
6236
|
+
w: "max-content"
|
|
6237
|
+
}), dragEventListeners),
|
|
6238
|
+
typeof childrenWithDragCursor === "function" ? childrenWithDragCursor(listeners, props) : childrenWithDragCursor || /* @__PURE__ */ React.createElement(DragItem, { isDragging, itemLabel })
|
|
6239
|
+
);
|
|
6208
6240
|
};
|
|
6209
6241
|
|
|
6210
6242
|
var __defProp$P = Object.defineProperty;
|
|
@@ -6223,11 +6255,25 @@
|
|
|
6223
6255
|
}
|
|
6224
6256
|
return a;
|
|
6225
6257
|
};
|
|
6226
|
-
|
|
6258
|
+
var __objRest$z = (source, exclude) => {
|
|
6259
|
+
var target = {};
|
|
6260
|
+
for (var prop in source)
|
|
6261
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6262
|
+
target[prop] = source[prop];
|
|
6263
|
+
if (source != null && __getOwnPropSymbols$P)
|
|
6264
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
|
6265
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
|
6266
|
+
target[prop] = source[prop];
|
|
6267
|
+
}
|
|
6268
|
+
return target;
|
|
6269
|
+
};
|
|
6270
|
+
const Droppable = (_a) => {
|
|
6271
|
+
var _b = _a, { children } = _b, rest = __objRest$z(_b, ["children"]);
|
|
6272
|
+
const _a2 = core.useDroppable(__spreadValues$P({}, rest)), { setNodeRef } = _a2, props = __objRest$z(_a2, ["setNodeRef"]);
|
|
6273
|
+
return /* @__PURE__ */ React.createElement(react.Box, { ref: setNodeRef }, typeof children === "function" ? children(props) : children || /* @__PURE__ */ React.createElement(react.Center, null, "Drop here"));
|
|
6274
|
+
};
|
|
6227
6275
|
|
|
6228
6276
|
var __defProp$O = Object.defineProperty;
|
|
6229
|
-
var __defProps$b = Object.defineProperties;
|
|
6230
|
-
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
6231
6277
|
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
|
6232
6278
|
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
|
6233
6279
|
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
|
@@ -6243,15 +6289,35 @@
|
|
|
6243
6289
|
}
|
|
6244
6290
|
return a;
|
|
6245
6291
|
};
|
|
6246
|
-
|
|
6247
|
-
|
|
6292
|
+
const Sortable = (props) => /* @__PURE__ */ React.createElement(sortable.SortableContext, __spreadValues$O({}, props));
|
|
6293
|
+
|
|
6294
|
+
var __defProp$N = Object.defineProperty;
|
|
6295
|
+
var __defProps$a = Object.defineProperties;
|
|
6296
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
6297
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
6298
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
6299
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
6300
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6301
|
+
var __spreadValues$N = (a, b) => {
|
|
6302
|
+
for (var prop in b || (b = {}))
|
|
6303
|
+
if (__hasOwnProp$N.call(b, prop))
|
|
6304
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
6305
|
+
if (__getOwnPropSymbols$N)
|
|
6306
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
6307
|
+
if (__propIsEnum$N.call(b, prop))
|
|
6308
|
+
__defNormalProp$N(a, prop, b[prop]);
|
|
6309
|
+
}
|
|
6310
|
+
return a;
|
|
6311
|
+
};
|
|
6312
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
6313
|
+
var __objRest$y = (source, exclude) => {
|
|
6248
6314
|
var target = {};
|
|
6249
6315
|
for (var prop in source)
|
|
6250
|
-
if (__hasOwnProp$
|
|
6316
|
+
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6251
6317
|
target[prop] = source[prop];
|
|
6252
|
-
if (source != null && __getOwnPropSymbols$
|
|
6253
|
-
for (var prop of __getOwnPropSymbols$
|
|
6254
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6318
|
+
if (source != null && __getOwnPropSymbols$N)
|
|
6319
|
+
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
6320
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
6255
6321
|
target[prop] = source[prop];
|
|
6256
6322
|
}
|
|
6257
6323
|
return target;
|
|
@@ -6262,20 +6328,20 @@
|
|
|
6262
6328
|
dblClickThreshold = 300,
|
|
6263
6329
|
children,
|
|
6264
6330
|
disableDrag = false
|
|
6265
|
-
} = _b, rest = __objRest$
|
|
6331
|
+
} = _b, rest = __objRest$y(_b, [
|
|
6266
6332
|
"itemLabel",
|
|
6267
6333
|
"dblClickThreshold",
|
|
6268
6334
|
"children",
|
|
6269
6335
|
"disableDrag"
|
|
6270
6336
|
]);
|
|
6271
|
-
const _a2 = sortable.useSortable(__spreadValues$
|
|
6337
|
+
const _a2 = sortable.useSortable(__spreadValues$N({}, rest)), {
|
|
6272
6338
|
attributes,
|
|
6273
6339
|
listeners,
|
|
6274
6340
|
setNodeRef,
|
|
6275
6341
|
transform,
|
|
6276
6342
|
transition,
|
|
6277
6343
|
isDragging
|
|
6278
|
-
} = _a2, props = __objRest$
|
|
6344
|
+
} = _a2, props = __objRest$y(_a2, [
|
|
6279
6345
|
"attributes",
|
|
6280
6346
|
"listeners",
|
|
6281
6347
|
"setNodeRef",
|
|
@@ -6317,7 +6383,7 @@
|
|
|
6317
6383
|
};
|
|
6318
6384
|
return /* @__PURE__ */ React.createElement(
|
|
6319
6385
|
react.Box,
|
|
6320
|
-
__spreadValues$
|
|
6386
|
+
__spreadValues$N(__spreadProps$a(__spreadValues$N({
|
|
6321
6387
|
ref: setNodeRef,
|
|
6322
6388
|
sx: style
|
|
6323
6389
|
}, attributes), {
|
|
@@ -6329,45 +6395,6 @@
|
|
|
6329
6395
|
);
|
|
6330
6396
|
};
|
|
6331
6397
|
|
|
6332
|
-
var __defProp$N = Object.defineProperty;
|
|
6333
|
-
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
|
6334
|
-
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
|
6335
|
-
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
|
6336
|
-
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6337
|
-
var __spreadValues$N = (a, b) => {
|
|
6338
|
-
for (var prop in b || (b = {}))
|
|
6339
|
-
if (__hasOwnProp$N.call(b, prop))
|
|
6340
|
-
__defNormalProp$N(a, prop, b[prop]);
|
|
6341
|
-
if (__getOwnPropSymbols$N)
|
|
6342
|
-
for (var prop of __getOwnPropSymbols$N(b)) {
|
|
6343
|
-
if (__propIsEnum$N.call(b, prop))
|
|
6344
|
-
__defNormalProp$N(a, prop, b[prop]);
|
|
6345
|
-
}
|
|
6346
|
-
return a;
|
|
6347
|
-
};
|
|
6348
|
-
var __objRest$y = (source, exclude) => {
|
|
6349
|
-
var target = {};
|
|
6350
|
-
for (var prop in source)
|
|
6351
|
-
if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6352
|
-
target[prop] = source[prop];
|
|
6353
|
-
if (source != null && __getOwnPropSymbols$N)
|
|
6354
|
-
for (var prop of __getOwnPropSymbols$N(source)) {
|
|
6355
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
|
|
6356
|
-
target[prop] = source[prop];
|
|
6357
|
-
}
|
|
6358
|
-
return target;
|
|
6359
|
-
};
|
|
6360
|
-
const DragHandle = (_a) => {
|
|
6361
|
-
var _b = _a, { icon, isDragging } = _b, rest = __objRest$y(_b, ["icon", "isDragging"]);
|
|
6362
|
-
return /* @__PURE__ */ React.createElement(
|
|
6363
|
-
Icon$1,
|
|
6364
|
-
__spreadValues$N({
|
|
6365
|
-
as: icon || icons.DragDuo,
|
|
6366
|
-
cursor: isDragging ? "grabbing" : "grab"
|
|
6367
|
-
}, rest)
|
|
6368
|
-
);
|
|
6369
|
-
};
|
|
6370
|
-
|
|
6371
6398
|
var __defProp$M = Object.defineProperty;
|
|
6372
6399
|
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
|
6373
6400
|
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
|
@@ -6396,15 +6423,18 @@
|
|
|
6396
6423
|
}
|
|
6397
6424
|
return target;
|
|
6398
6425
|
};
|
|
6399
|
-
const
|
|
6400
|
-
var _b = _a, {
|
|
6401
|
-
|
|
6402
|
-
|
|
6426
|
+
const DragHandle = (_a) => {
|
|
6427
|
+
var _b = _a, { icon, isDragging } = _b, rest = __objRest$x(_b, ["icon", "isDragging"]);
|
|
6428
|
+
return /* @__PURE__ */ React.createElement(
|
|
6429
|
+
Icon$1,
|
|
6430
|
+
__spreadValues$M({
|
|
6431
|
+
as: icon || icons.DragDuo,
|
|
6432
|
+
cursor: isDragging ? "grabbing" : "grab"
|
|
6433
|
+
}, rest)
|
|
6434
|
+
);
|
|
6403
6435
|
};
|
|
6404
6436
|
|
|
6405
6437
|
var __defProp$L = Object.defineProperty;
|
|
6406
|
-
var __defProps$a = Object.defineProperties;
|
|
6407
|
-
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
6408
6438
|
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
|
6409
6439
|
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
|
6410
6440
|
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
|
@@ -6420,7 +6450,43 @@
|
|
|
6420
6450
|
}
|
|
6421
6451
|
return a;
|
|
6422
6452
|
};
|
|
6423
|
-
var
|
|
6453
|
+
var __objRest$w = (source, exclude) => {
|
|
6454
|
+
var target = {};
|
|
6455
|
+
for (var prop in source)
|
|
6456
|
+
if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6457
|
+
target[prop] = source[prop];
|
|
6458
|
+
if (source != null && __getOwnPropSymbols$L)
|
|
6459
|
+
for (var prop of __getOwnPropSymbols$L(source)) {
|
|
6460
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop))
|
|
6461
|
+
target[prop] = source[prop];
|
|
6462
|
+
}
|
|
6463
|
+
return target;
|
|
6464
|
+
};
|
|
6465
|
+
const DropZone = (_a) => {
|
|
6466
|
+
var _b = _a, { sx = {}, name, children } = _b, rest = __objRest$w(_b, ["sx", "name", "children"]);
|
|
6467
|
+
const { dropZone } = react.useMultiStyleConfig("DragAndDrop", { sx });
|
|
6468
|
+
return /* @__PURE__ */ React.createElement(Droppable, { id: name }, /* @__PURE__ */ React.createElement(react.Stack, __spreadValues$L({ sx: dropZone }, rest), children));
|
|
6469
|
+
};
|
|
6470
|
+
|
|
6471
|
+
var __defProp$K = Object.defineProperty;
|
|
6472
|
+
var __defProps$9 = Object.defineProperties;
|
|
6473
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
6474
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
|
6475
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
|
6476
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
|
6477
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6478
|
+
var __spreadValues$K = (a, b) => {
|
|
6479
|
+
for (var prop in b || (b = {}))
|
|
6480
|
+
if (__hasOwnProp$K.call(b, prop))
|
|
6481
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
6482
|
+
if (__getOwnPropSymbols$K)
|
|
6483
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
|
6484
|
+
if (__propIsEnum$K.call(b, prop))
|
|
6485
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
6486
|
+
}
|
|
6487
|
+
return a;
|
|
6488
|
+
};
|
|
6489
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
6424
6490
|
function MultiSort({
|
|
6425
6491
|
items: sortableItems,
|
|
6426
6492
|
onChange = () => {
|
|
@@ -6431,7 +6497,7 @@
|
|
|
6431
6497
|
}) {
|
|
6432
6498
|
const [items, setItems] = React.useState(sortableItems);
|
|
6433
6499
|
const [activeItem, setActiveItem] = React.useState(null);
|
|
6434
|
-
const moveBetweenContainers = (activeContainerName, activeIndex, overContainerName, overIndex, item) => __spreadProps$
|
|
6500
|
+
const moveBetweenContainers = (activeContainerName, activeIndex, overContainerName, overIndex, item) => __spreadProps$9(__spreadValues$K({}, items), {
|
|
6435
6501
|
[activeContainerName]: ramda.remove(activeIndex, 1, items[activeContainerName]),
|
|
6436
6502
|
[overContainerName]: ramda.insert(overIndex, item, items[overContainerName])
|
|
6437
6503
|
});
|
|
@@ -6489,7 +6555,7 @@
|
|
|
6489
6555
|
const overIndex = ramda.indexOf(overId, prev[overContainerName]);
|
|
6490
6556
|
let newItems;
|
|
6491
6557
|
if (activeContainerName === overContainerName) {
|
|
6492
|
-
newItems = __spreadProps$
|
|
6558
|
+
newItems = __spreadProps$9(__spreadValues$K({}, prev), {
|
|
6493
6559
|
[overContainerName]: sortable.arrayMove(
|
|
6494
6560
|
prev[overContainerName],
|
|
6495
6561
|
activeIndex,
|
|
@@ -6597,30 +6663,30 @@
|
|
|
6597
6663
|
|
|
6598
6664
|
const SortableContainer = ({ children, items, strategy }) => /* @__PURE__ */ React.createElement(Sortable, { items, strategy: strategy || sortable.rectSortingStrategy }, items.map((id) => /* @__PURE__ */ React.createElement(SortableItem, { key: id, id, itemLabel: id }, typeof children === "function" ? children(id) : children)));
|
|
6599
6665
|
|
|
6600
|
-
var __defProp$
|
|
6601
|
-
var __getOwnPropSymbols$
|
|
6602
|
-
var __hasOwnProp$
|
|
6603
|
-
var __propIsEnum$
|
|
6604
|
-
var __defNormalProp$
|
|
6605
|
-
var __spreadValues$
|
|
6666
|
+
var __defProp$J = Object.defineProperty;
|
|
6667
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
|
6668
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
|
6669
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
|
6670
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6671
|
+
var __spreadValues$J = (a, b) => {
|
|
6606
6672
|
for (var prop in b || (b = {}))
|
|
6607
|
-
if (__hasOwnProp$
|
|
6608
|
-
__defNormalProp$
|
|
6609
|
-
if (__getOwnPropSymbols$
|
|
6610
|
-
for (var prop of __getOwnPropSymbols$
|
|
6611
|
-
if (__propIsEnum$
|
|
6612
|
-
__defNormalProp$
|
|
6673
|
+
if (__hasOwnProp$J.call(b, prop))
|
|
6674
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
6675
|
+
if (__getOwnPropSymbols$J)
|
|
6676
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
|
6677
|
+
if (__propIsEnum$J.call(b, prop))
|
|
6678
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
6613
6679
|
}
|
|
6614
6680
|
return a;
|
|
6615
6681
|
};
|
|
6616
|
-
var __objRest$
|
|
6682
|
+
var __objRest$v = (source, exclude) => {
|
|
6617
6683
|
var target = {};
|
|
6618
6684
|
for (var prop in source)
|
|
6619
|
-
if (__hasOwnProp$
|
|
6685
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6620
6686
|
target[prop] = source[prop];
|
|
6621
|
-
if (source != null && __getOwnPropSymbols$
|
|
6622
|
-
for (var prop of __getOwnPropSymbols$
|
|
6623
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6687
|
+
if (source != null && __getOwnPropSymbols$J)
|
|
6688
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
|
6689
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
|
6624
6690
|
target[prop] = source[prop];
|
|
6625
6691
|
}
|
|
6626
6692
|
return target;
|
|
@@ -6635,7 +6701,7 @@
|
|
|
6635
6701
|
height,
|
|
6636
6702
|
overscanCount = 0,
|
|
6637
6703
|
initialScrollOffset
|
|
6638
|
-
} = _b, rest = __objRest$
|
|
6704
|
+
} = _b, rest = __objRest$v(_b, [
|
|
6639
6705
|
"itemCount",
|
|
6640
6706
|
"itemSize",
|
|
6641
6707
|
"direction",
|
|
@@ -6647,7 +6713,7 @@
|
|
|
6647
6713
|
]);
|
|
6648
6714
|
return /* @__PURE__ */ React.createElement(AutoSizer, null, ({ width: autoWidth, height: autoHeight }) => /* @__PURE__ */ React.createElement(
|
|
6649
6715
|
reactWindow.VariableSizeList,
|
|
6650
|
-
__spreadValues$
|
|
6716
|
+
__spreadValues$J({
|
|
6651
6717
|
itemCount,
|
|
6652
6718
|
itemSize: typeof itemSize === "number" ? (_index) => itemSize : itemSize,
|
|
6653
6719
|
height: height != null ? height : autoHeight,
|
|
@@ -6661,30 +6727,30 @@
|
|
|
6661
6727
|
));
|
|
6662
6728
|
});
|
|
6663
6729
|
|
|
6664
|
-
var __defProp$
|
|
6665
|
-
var __getOwnPropSymbols$
|
|
6666
|
-
var __hasOwnProp$
|
|
6667
|
-
var __propIsEnum$
|
|
6668
|
-
var __defNormalProp$
|
|
6669
|
-
var __spreadValues$
|
|
6730
|
+
var __defProp$I = Object.defineProperty;
|
|
6731
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
|
6732
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
|
6733
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
|
6734
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6735
|
+
var __spreadValues$I = (a, b) => {
|
|
6670
6736
|
for (var prop in b || (b = {}))
|
|
6671
|
-
if (__hasOwnProp$
|
|
6672
|
-
__defNormalProp$
|
|
6673
|
-
if (__getOwnPropSymbols$
|
|
6674
|
-
for (var prop of __getOwnPropSymbols$
|
|
6675
|
-
if (__propIsEnum$
|
|
6676
|
-
__defNormalProp$
|
|
6737
|
+
if (__hasOwnProp$I.call(b, prop))
|
|
6738
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
6739
|
+
if (__getOwnPropSymbols$I)
|
|
6740
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
|
6741
|
+
if (__propIsEnum$I.call(b, prop))
|
|
6742
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
6677
6743
|
}
|
|
6678
6744
|
return a;
|
|
6679
6745
|
};
|
|
6680
|
-
var __objRest$
|
|
6746
|
+
var __objRest$u = (source, exclude) => {
|
|
6681
6747
|
var target = {};
|
|
6682
6748
|
for (var prop in source)
|
|
6683
|
-
if (__hasOwnProp$
|
|
6749
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6684
6750
|
target[prop] = source[prop];
|
|
6685
|
-
if (source != null && __getOwnPropSymbols$
|
|
6686
|
-
for (var prop of __getOwnPropSymbols$
|
|
6687
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6751
|
+
if (source != null && __getOwnPropSymbols$I)
|
|
6752
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
|
6753
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
|
|
6688
6754
|
target[prop] = source[prop];
|
|
6689
6755
|
}
|
|
6690
6756
|
return target;
|
|
@@ -6700,7 +6766,7 @@
|
|
|
6700
6766
|
height,
|
|
6701
6767
|
overscanRowCount = 0,
|
|
6702
6768
|
overscanColumnCount = 0
|
|
6703
|
-
} = _b, rest = __objRest$
|
|
6769
|
+
} = _b, rest = __objRest$u(_b, [
|
|
6704
6770
|
"columns",
|
|
6705
6771
|
"rows",
|
|
6706
6772
|
"columnSize",
|
|
@@ -6713,7 +6779,7 @@
|
|
|
6713
6779
|
]);
|
|
6714
6780
|
return /* @__PURE__ */ React.createElement(AutoSizer, null, ({ width: autoWidth, height: autoHeight }) => /* @__PURE__ */ React.createElement(
|
|
6715
6781
|
reactWindow.VariableSizeGrid,
|
|
6716
|
-
__spreadValues$
|
|
6782
|
+
__spreadValues$I({
|
|
6717
6783
|
rowCount: rows,
|
|
6718
6784
|
columnCount: columns,
|
|
6719
6785
|
columnWidth: typeof columnSize === "number" ? (_index) => columnSize : columnSize,
|
|
@@ -6728,19 +6794,19 @@
|
|
|
6728
6794
|
));
|
|
6729
6795
|
});
|
|
6730
6796
|
|
|
6731
|
-
var __defProp$
|
|
6732
|
-
var __getOwnPropSymbols$
|
|
6733
|
-
var __hasOwnProp$
|
|
6734
|
-
var __propIsEnum$
|
|
6735
|
-
var __defNormalProp$
|
|
6736
|
-
var __spreadValues$
|
|
6797
|
+
var __defProp$H = Object.defineProperty;
|
|
6798
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
|
6799
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
|
6800
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
|
6801
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6802
|
+
var __spreadValues$H = (a, b) => {
|
|
6737
6803
|
for (var prop in b || (b = {}))
|
|
6738
|
-
if (__hasOwnProp$
|
|
6739
|
-
__defNormalProp$
|
|
6740
|
-
if (__getOwnPropSymbols$
|
|
6741
|
-
for (var prop of __getOwnPropSymbols$
|
|
6742
|
-
if (__propIsEnum$
|
|
6743
|
-
__defNormalProp$
|
|
6804
|
+
if (__hasOwnProp$H.call(b, prop))
|
|
6805
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
6806
|
+
if (__getOwnPropSymbols$H)
|
|
6807
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
|
6808
|
+
if (__propIsEnum$H.call(b, prop))
|
|
6809
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
6744
6810
|
}
|
|
6745
6811
|
return a;
|
|
6746
6812
|
};
|
|
@@ -6753,7 +6819,7 @@
|
|
|
6753
6819
|
const { button, icon, controls } = react.useMultiStyleConfig("EditableText", { size, isEditing });
|
|
6754
6820
|
return /* @__PURE__ */ React.createElement(react.HStack, { spacing: 1, sx: controls }, isEditing ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
6755
6821
|
IconButton,
|
|
6756
|
-
__spreadValues$
|
|
6822
|
+
__spreadValues$H({
|
|
6757
6823
|
"aria-label": "Cancel",
|
|
6758
6824
|
sx: button,
|
|
6759
6825
|
variant: "danger"
|
|
@@ -6761,7 +6827,7 @@
|
|
|
6761
6827
|
/* @__PURE__ */ React.createElement(Icon$1, { sx: icon, as: icons.XCloseSolid })
|
|
6762
6828
|
), /* @__PURE__ */ React.createElement(
|
|
6763
6829
|
IconButton,
|
|
6764
|
-
__spreadValues$
|
|
6830
|
+
__spreadValues$H({
|
|
6765
6831
|
"aria-label": "Save",
|
|
6766
6832
|
sx: button,
|
|
6767
6833
|
variant: "success"
|
|
@@ -6779,30 +6845,30 @@
|
|
|
6779
6845
|
));
|
|
6780
6846
|
};
|
|
6781
6847
|
|
|
6782
|
-
var __defProp$
|
|
6783
|
-
var __getOwnPropSymbols$
|
|
6784
|
-
var __hasOwnProp$
|
|
6785
|
-
var __propIsEnum$
|
|
6786
|
-
var __defNormalProp$
|
|
6787
|
-
var __spreadValues$
|
|
6848
|
+
var __defProp$G = Object.defineProperty;
|
|
6849
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
|
6850
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
|
6851
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
|
6852
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6853
|
+
var __spreadValues$G = (a, b) => {
|
|
6788
6854
|
for (var prop in b || (b = {}))
|
|
6789
|
-
if (__hasOwnProp$
|
|
6790
|
-
__defNormalProp$
|
|
6791
|
-
if (__getOwnPropSymbols$
|
|
6792
|
-
for (var prop of __getOwnPropSymbols$
|
|
6793
|
-
if (__propIsEnum$
|
|
6794
|
-
__defNormalProp$
|
|
6855
|
+
if (__hasOwnProp$G.call(b, prop))
|
|
6856
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
6857
|
+
if (__getOwnPropSymbols$G)
|
|
6858
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
|
6859
|
+
if (__propIsEnum$G.call(b, prop))
|
|
6860
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
6795
6861
|
}
|
|
6796
6862
|
return a;
|
|
6797
6863
|
};
|
|
6798
|
-
var __objRest$
|
|
6864
|
+
var __objRest$t = (source, exclude) => {
|
|
6799
6865
|
var target = {};
|
|
6800
6866
|
for (var prop in source)
|
|
6801
|
-
if (__hasOwnProp$
|
|
6867
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6802
6868
|
target[prop] = source[prop];
|
|
6803
|
-
if (source != null && __getOwnPropSymbols$
|
|
6804
|
-
for (var prop of __getOwnPropSymbols$
|
|
6805
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6869
|
+
if (source != null && __getOwnPropSymbols$G)
|
|
6870
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
|
6871
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
|
6806
6872
|
target[prop] = source[prop];
|
|
6807
6873
|
}
|
|
6808
6874
|
return target;
|
|
@@ -6813,7 +6879,7 @@
|
|
|
6813
6879
|
value: inputValue,
|
|
6814
6880
|
onSubmit,
|
|
6815
6881
|
leftItem
|
|
6816
|
-
} = _b, rest = __objRest$
|
|
6882
|
+
} = _b, rest = __objRest$t(_b, [
|
|
6817
6883
|
"size",
|
|
6818
6884
|
"value",
|
|
6819
6885
|
"onSubmit",
|
|
@@ -6826,7 +6892,7 @@
|
|
|
6826
6892
|
}, [inputValue]);
|
|
6827
6893
|
return /* @__PURE__ */ React.createElement(
|
|
6828
6894
|
react.Editable,
|
|
6829
|
-
__spreadValues$
|
|
6895
|
+
__spreadValues$G({
|
|
6830
6896
|
isPreviewFocusable: true,
|
|
6831
6897
|
selectAllOnFocus: false,
|
|
6832
6898
|
value,
|
|
@@ -6850,30 +6916,30 @@
|
|
|
6850
6916
|
);
|
|
6851
6917
|
};
|
|
6852
6918
|
|
|
6853
|
-
var __defProp$
|
|
6854
|
-
var __getOwnPropSymbols$
|
|
6855
|
-
var __hasOwnProp$
|
|
6856
|
-
var __propIsEnum$
|
|
6857
|
-
var __defNormalProp$
|
|
6858
|
-
var __spreadValues$
|
|
6919
|
+
var __defProp$F = Object.defineProperty;
|
|
6920
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
|
6921
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
|
6922
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
|
6923
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6924
|
+
var __spreadValues$F = (a, b) => {
|
|
6859
6925
|
for (var prop in b || (b = {}))
|
|
6860
|
-
if (__hasOwnProp$
|
|
6861
|
-
__defNormalProp$
|
|
6862
|
-
if (__getOwnPropSymbols$
|
|
6863
|
-
for (var prop of __getOwnPropSymbols$
|
|
6864
|
-
if (__propIsEnum$
|
|
6865
|
-
__defNormalProp$
|
|
6926
|
+
if (__hasOwnProp$F.call(b, prop))
|
|
6927
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
6928
|
+
if (__getOwnPropSymbols$F)
|
|
6929
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
|
6930
|
+
if (__propIsEnum$F.call(b, prop))
|
|
6931
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
6866
6932
|
}
|
|
6867
6933
|
return a;
|
|
6868
6934
|
};
|
|
6869
|
-
var __objRest$
|
|
6935
|
+
var __objRest$s = (source, exclude) => {
|
|
6870
6936
|
var target = {};
|
|
6871
6937
|
for (var prop in source)
|
|
6872
|
-
if (__hasOwnProp$
|
|
6938
|
+
if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6873
6939
|
target[prop] = source[prop];
|
|
6874
|
-
if (source != null && __getOwnPropSymbols$
|
|
6875
|
-
for (var prop of __getOwnPropSymbols$
|
|
6876
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6940
|
+
if (source != null && __getOwnPropSymbols$F)
|
|
6941
|
+
for (var prop of __getOwnPropSymbols$F(source)) {
|
|
6942
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
|
|
6877
6943
|
target[prop] = source[prop];
|
|
6878
6944
|
}
|
|
6879
6945
|
return target;
|
|
@@ -6882,13 +6948,13 @@
|
|
|
6882
6948
|
var _b = _a, {
|
|
6883
6949
|
isCentered = true,
|
|
6884
6950
|
children
|
|
6885
|
-
} = _b, rest = __objRest$
|
|
6951
|
+
} = _b, rest = __objRest$s(_b, [
|
|
6886
6952
|
"isCentered",
|
|
6887
6953
|
"children"
|
|
6888
6954
|
]);
|
|
6889
6955
|
return /* @__PURE__ */ React.createElement(
|
|
6890
6956
|
react.Modal,
|
|
6891
|
-
__spreadValues$
|
|
6957
|
+
__spreadValues$F({
|
|
6892
6958
|
isCentered,
|
|
6893
6959
|
scrollBehavior: "inside",
|
|
6894
6960
|
motionPreset: "slideInBottom"
|
|
@@ -6901,37 +6967,37 @@
|
|
|
6901
6967
|
var _d = _c, {
|
|
6902
6968
|
stayMountedOnClose = false,
|
|
6903
6969
|
isOpen
|
|
6904
|
-
} = _d, rest = __objRest$
|
|
6970
|
+
} = _d, rest = __objRest$s(_d, [
|
|
6905
6971
|
"stayMountedOnClose",
|
|
6906
6972
|
"isOpen"
|
|
6907
6973
|
]);
|
|
6908
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (stayMountedOnClose || isOpen) && /* @__PURE__ */ React.createElement(ModalBase, __spreadValues$
|
|
6974
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (stayMountedOnClose || isOpen) && /* @__PURE__ */ React.createElement(ModalBase, __spreadValues$F({ isOpen }, rest)));
|
|
6909
6975
|
};
|
|
6910
6976
|
|
|
6911
|
-
var __defProp$
|
|
6912
|
-
var __getOwnPropSymbols$
|
|
6913
|
-
var __hasOwnProp$
|
|
6914
|
-
var __propIsEnum$
|
|
6915
|
-
var __defNormalProp$
|
|
6916
|
-
var __spreadValues$
|
|
6977
|
+
var __defProp$E = Object.defineProperty;
|
|
6978
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
|
6979
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
|
6980
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
|
6981
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6982
|
+
var __spreadValues$E = (a, b) => {
|
|
6917
6983
|
for (var prop in b || (b = {}))
|
|
6918
|
-
if (__hasOwnProp$
|
|
6919
|
-
__defNormalProp$
|
|
6920
|
-
if (__getOwnPropSymbols$
|
|
6921
|
-
for (var prop of __getOwnPropSymbols$
|
|
6922
|
-
if (__propIsEnum$
|
|
6923
|
-
__defNormalProp$
|
|
6984
|
+
if (__hasOwnProp$E.call(b, prop))
|
|
6985
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
6986
|
+
if (__getOwnPropSymbols$E)
|
|
6987
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
|
6988
|
+
if (__propIsEnum$E.call(b, prop))
|
|
6989
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
6924
6990
|
}
|
|
6925
6991
|
return a;
|
|
6926
6992
|
};
|
|
6927
|
-
var __objRest$
|
|
6993
|
+
var __objRest$r = (source, exclude) => {
|
|
6928
6994
|
var target = {};
|
|
6929
6995
|
for (var prop in source)
|
|
6930
|
-
if (__hasOwnProp$
|
|
6996
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6931
6997
|
target[prop] = source[prop];
|
|
6932
|
-
if (source != null && __getOwnPropSymbols$
|
|
6933
|
-
for (var prop of __getOwnPropSymbols$
|
|
6934
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6998
|
+
if (source != null && __getOwnPropSymbols$E)
|
|
6999
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
|
7000
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
|
6935
7001
|
target[prop] = source[prop];
|
|
6936
7002
|
}
|
|
6937
7003
|
return target;
|
|
@@ -6947,7 +7013,7 @@
|
|
|
6947
7013
|
isImage,
|
|
6948
7014
|
canEditFileName = true,
|
|
6949
7015
|
canCropImage = false
|
|
6950
|
-
} = _b, rest = __objRest$
|
|
7016
|
+
} = _b, rest = __objRest$r(_b, [
|
|
6951
7017
|
"fileName",
|
|
6952
7018
|
"setFileName",
|
|
6953
7019
|
"isOpen",
|
|
@@ -6966,7 +7032,7 @@
|
|
|
6966
7032
|
};
|
|
6967
7033
|
return /* @__PURE__ */ React.createElement(
|
|
6968
7034
|
Modal$1,
|
|
6969
|
-
__spreadValues$
|
|
7035
|
+
__spreadValues$E({
|
|
6970
7036
|
isOpen,
|
|
6971
7037
|
onClose,
|
|
6972
7038
|
closeOnOverlayClick: false
|
|
@@ -7016,30 +7082,30 @@
|
|
|
7016
7082
|
);
|
|
7017
7083
|
});
|
|
7018
7084
|
|
|
7019
|
-
var __defProp$
|
|
7020
|
-
var __getOwnPropSymbols$
|
|
7021
|
-
var __hasOwnProp$
|
|
7022
|
-
var __propIsEnum$
|
|
7023
|
-
var __defNormalProp$
|
|
7024
|
-
var __spreadValues$
|
|
7085
|
+
var __defProp$D = Object.defineProperty;
|
|
7086
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
|
7087
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
|
7088
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
|
7089
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7090
|
+
var __spreadValues$D = (a, b) => {
|
|
7025
7091
|
for (var prop in b || (b = {}))
|
|
7026
|
-
if (__hasOwnProp$
|
|
7027
|
-
__defNormalProp$
|
|
7028
|
-
if (__getOwnPropSymbols$
|
|
7029
|
-
for (var prop of __getOwnPropSymbols$
|
|
7030
|
-
if (__propIsEnum$
|
|
7031
|
-
__defNormalProp$
|
|
7092
|
+
if (__hasOwnProp$D.call(b, prop))
|
|
7093
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
7094
|
+
if (__getOwnPropSymbols$D)
|
|
7095
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
|
7096
|
+
if (__propIsEnum$D.call(b, prop))
|
|
7097
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
7032
7098
|
}
|
|
7033
7099
|
return a;
|
|
7034
7100
|
};
|
|
7035
|
-
var __objRest$
|
|
7101
|
+
var __objRest$q = (source, exclude) => {
|
|
7036
7102
|
var target = {};
|
|
7037
7103
|
for (var prop in source)
|
|
7038
|
-
if (__hasOwnProp$
|
|
7104
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7039
7105
|
target[prop] = source[prop];
|
|
7040
|
-
if (source != null && __getOwnPropSymbols$
|
|
7041
|
-
for (var prop of __getOwnPropSymbols$
|
|
7042
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7106
|
+
if (source != null && __getOwnPropSymbols$D)
|
|
7107
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
|
7108
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
|
7043
7109
|
target[prop] = source[prop];
|
|
7044
7110
|
}
|
|
7045
7111
|
return target;
|
|
@@ -7050,7 +7116,7 @@
|
|
|
7050
7116
|
onClose,
|
|
7051
7117
|
confirmDelete,
|
|
7052
7118
|
fileName
|
|
7053
|
-
} = _b, rest = __objRest$
|
|
7119
|
+
} = _b, rest = __objRest$q(_b, [
|
|
7054
7120
|
"isOpen",
|
|
7055
7121
|
"onClose",
|
|
7056
7122
|
"confirmDelete",
|
|
@@ -7060,7 +7126,7 @@
|
|
|
7060
7126
|
confirmDelete();
|
|
7061
7127
|
onClose();
|
|
7062
7128
|
};
|
|
7063
|
-
return /* @__PURE__ */ React.createElement(Modal$1, __spreadValues$
|
|
7129
|
+
return /* @__PURE__ */ React.createElement(Modal$1, __spreadValues$D({ isOpen, onClose }, rest), /* @__PURE__ */ React.createElement(
|
|
7064
7130
|
react.ModalHeader,
|
|
7065
7131
|
{
|
|
7066
7132
|
sx: { fontSize: "lg" },
|
|
@@ -7094,30 +7160,30 @@
|
|
|
7094
7160
|
const updateTimeThreshold = 0.5;
|
|
7095
7161
|
const animationSlideTime = 250;
|
|
7096
7162
|
|
|
7097
|
-
var __defProp$
|
|
7098
|
-
var __getOwnPropSymbols$
|
|
7099
|
-
var __hasOwnProp$
|
|
7100
|
-
var __propIsEnum$
|
|
7101
|
-
var __defNormalProp$
|
|
7102
|
-
var __spreadValues$
|
|
7163
|
+
var __defProp$C = Object.defineProperty;
|
|
7164
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
7165
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
7166
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
7167
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7168
|
+
var __spreadValues$C = (a, b) => {
|
|
7103
7169
|
for (var prop in b || (b = {}))
|
|
7104
|
-
if (__hasOwnProp$
|
|
7105
|
-
__defNormalProp$
|
|
7106
|
-
if (__getOwnPropSymbols$
|
|
7107
|
-
for (var prop of __getOwnPropSymbols$
|
|
7108
|
-
if (__propIsEnum$
|
|
7109
|
-
__defNormalProp$
|
|
7170
|
+
if (__hasOwnProp$C.call(b, prop))
|
|
7171
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
7172
|
+
if (__getOwnPropSymbols$C)
|
|
7173
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
7174
|
+
if (__propIsEnum$C.call(b, prop))
|
|
7175
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
7110
7176
|
}
|
|
7111
7177
|
return a;
|
|
7112
7178
|
};
|
|
7113
|
-
var __objRest$
|
|
7179
|
+
var __objRest$p = (source, exclude) => {
|
|
7114
7180
|
var target = {};
|
|
7115
7181
|
for (var prop in source)
|
|
7116
|
-
if (__hasOwnProp$
|
|
7182
|
+
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7117
7183
|
target[prop] = source[prop];
|
|
7118
|
-
if (source != null && __getOwnPropSymbols$
|
|
7119
|
-
for (var prop of __getOwnPropSymbols$
|
|
7120
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
7184
|
+
if (source != null && __getOwnPropSymbols$C)
|
|
7185
|
+
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
7186
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
7121
7187
|
target[prop] = source[prop];
|
|
7122
7188
|
}
|
|
7123
7189
|
return target;
|
|
@@ -7128,7 +7194,7 @@
|
|
|
7128
7194
|
onLoadEnd = () => {
|
|
7129
7195
|
},
|
|
7130
7196
|
hideDisplay = true
|
|
7131
|
-
} = _b, rest = __objRest$
|
|
7197
|
+
} = _b, rest = __objRest$p(_b, [
|
|
7132
7198
|
"loaded",
|
|
7133
7199
|
"onLoadEnd",
|
|
7134
7200
|
"hideDisplay"
|
|
@@ -7165,7 +7231,7 @@
|
|
|
7165
7231
|
}
|
|
7166
7232
|
}
|
|
7167
7233
|
},
|
|
7168
|
-
/* @__PURE__ */ React.createElement(react.VStack, __spreadValues$
|
|
7234
|
+
/* @__PURE__ */ React.createElement(react.VStack, __spreadValues$C({}, rest), /* @__PURE__ */ React.createElement(Small$1, null, Math.round(progress * 100), "%", " ", !!timeLeft && `\xB7 ${formattedTime(timeLeft)} left`), /* @__PURE__ */ React.createElement(
|
|
7169
7235
|
react.Progress,
|
|
7170
7236
|
{
|
|
7171
7237
|
ref,
|
|
@@ -7178,39 +7244,6 @@
|
|
|
7178
7244
|
);
|
|
7179
7245
|
};
|
|
7180
7246
|
|
|
7181
|
-
var __defProp$C = Object.defineProperty;
|
|
7182
|
-
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
|
7183
|
-
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
|
7184
|
-
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
|
7185
|
-
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7186
|
-
var __spreadValues$C = (a, b) => {
|
|
7187
|
-
for (var prop in b || (b = {}))
|
|
7188
|
-
if (__hasOwnProp$C.call(b, prop))
|
|
7189
|
-
__defNormalProp$C(a, prop, b[prop]);
|
|
7190
|
-
if (__getOwnPropSymbols$C)
|
|
7191
|
-
for (var prop of __getOwnPropSymbols$C(b)) {
|
|
7192
|
-
if (__propIsEnum$C.call(b, prop))
|
|
7193
|
-
__defNormalProp$C(a, prop, b[prop]);
|
|
7194
|
-
}
|
|
7195
|
-
return a;
|
|
7196
|
-
};
|
|
7197
|
-
var __objRest$p = (source, exclude) => {
|
|
7198
|
-
var target = {};
|
|
7199
|
-
for (var prop in source)
|
|
7200
|
-
if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
7201
|
-
target[prop] = source[prop];
|
|
7202
|
-
if (source != null && __getOwnPropSymbols$C)
|
|
7203
|
-
for (var prop of __getOwnPropSymbols$C(source)) {
|
|
7204
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
|
|
7205
|
-
target[prop] = source[prop];
|
|
7206
|
-
}
|
|
7207
|
-
return target;
|
|
7208
|
-
};
|
|
7209
|
-
const Spinner$1 = (_a) => {
|
|
7210
|
-
var rest = __objRest$p(_a, []);
|
|
7211
|
-
return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$C({}, rest));
|
|
7212
|
-
};
|
|
7213
|
-
|
|
7214
7247
|
const fiveHundredMB = 524288e3;
|
|
7215
7248
|
const imageLazyThreshold = 15728540;
|
|
7216
7249
|
const defaultEditOptions = {
|
|
@@ -7220,8 +7253,8 @@
|
|
|
7220
7253
|
};
|
|
7221
7254
|
|
|
7222
7255
|
var __defProp$B = Object.defineProperty;
|
|
7223
|
-
var __defProps$
|
|
7224
|
-
var __getOwnPropDescs$
|
|
7256
|
+
var __defProps$8 = Object.defineProperties;
|
|
7257
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
7225
7258
|
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
7226
7259
|
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
7227
7260
|
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
@@ -7237,7 +7270,7 @@
|
|
|
7237
7270
|
}
|
|
7238
7271
|
return a;
|
|
7239
7272
|
};
|
|
7240
|
-
var __spreadProps$
|
|
7273
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
7241
7274
|
const getResizingFactor = (imgWidth, imgHeight, maxWidth, maxHeight) => Math.min(1, Math.min(maxWidth / imgWidth, maxHeight / imgHeight));
|
|
7242
7275
|
const convertBlobToFile = (blob, name, type) => new File([blob], name, { type });
|
|
7243
7276
|
const compressImage = (file, maxWidth = 3e3, maxHeight = 3e3, quality = 0.75) => {
|
|
@@ -7313,7 +7346,7 @@
|
|
|
7313
7346
|
buffer.forEach(
|
|
7314
7347
|
(value, index) => {
|
|
7315
7348
|
if (removedItemsIDs.includes(value.name)) {
|
|
7316
|
-
const updatedData = __spreadProps$
|
|
7349
|
+
const updatedData = __spreadProps$8(__spreadValues$B({}, value), {
|
|
7317
7350
|
uploaded: ramda.has("size", value) ? value.size : 0
|
|
7318
7351
|
});
|
|
7319
7352
|
buffer[index] = updatedData;
|
|
@@ -7452,8 +7485,8 @@
|
|
|
7452
7485
|
};
|
|
7453
7486
|
|
|
7454
7487
|
var __defProp$z = Object.defineProperty;
|
|
7455
|
-
var __defProps$
|
|
7456
|
-
var __getOwnPropDescs$
|
|
7488
|
+
var __defProps$7 = Object.defineProperties;
|
|
7489
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
7457
7490
|
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
7458
7491
|
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
7459
7492
|
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
@@ -7469,7 +7502,7 @@
|
|
|
7469
7502
|
}
|
|
7470
7503
|
return a;
|
|
7471
7504
|
};
|
|
7472
|
-
var __spreadProps$
|
|
7505
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
7473
7506
|
const FilePicker$1 = ({
|
|
7474
7507
|
acceptFormat = "*",
|
|
7475
7508
|
onChange = ramda.identity,
|
|
@@ -7741,7 +7774,7 @@
|
|
|
7741
7774
|
))
|
|
7742
7775
|
), /* @__PURE__ */ React.createElement(
|
|
7743
7776
|
FileEditorModal,
|
|
7744
|
-
__spreadProps$
|
|
7777
|
+
__spreadProps$7(__spreadValues$z({}, editModal), {
|
|
7745
7778
|
fileName: name,
|
|
7746
7779
|
setFileName: setName,
|
|
7747
7780
|
image: file,
|
|
@@ -7753,7 +7786,7 @@
|
|
|
7753
7786
|
})
|
|
7754
7787
|
), /* @__PURE__ */ React.createElement(
|
|
7755
7788
|
ConfirmDeleteModal,
|
|
7756
|
-
__spreadProps$
|
|
7789
|
+
__spreadProps$7(__spreadValues$z({}, deleteModal), {
|
|
7757
7790
|
confirmDelete: clearImage,
|
|
7758
7791
|
fileName: name || "file"
|
|
7759
7792
|
})
|
|
@@ -7952,8 +7985,8 @@
|
|
|
7952
7985
|
}
|
|
7953
7986
|
|
|
7954
7987
|
var __defProp$x = Object.defineProperty;
|
|
7955
|
-
var __defProps$
|
|
7956
|
-
var __getOwnPropDescs$
|
|
7988
|
+
var __defProps$6 = Object.defineProperties;
|
|
7989
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
7957
7990
|
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
7958
7991
|
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
7959
7992
|
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
@@ -7969,7 +8002,7 @@
|
|
|
7969
8002
|
}
|
|
7970
8003
|
return a;
|
|
7971
8004
|
};
|
|
7972
|
-
var __spreadProps$
|
|
8005
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
7973
8006
|
function FileItem({
|
|
7974
8007
|
onChangeCallback,
|
|
7975
8008
|
addFile = ramda.identity,
|
|
@@ -8143,7 +8176,7 @@
|
|
|
8143
8176
|
)
|
|
8144
8177
|
), canEdit && /* @__PURE__ */ React.createElement(
|
|
8145
8178
|
FileEditorModal,
|
|
8146
|
-
__spreadProps$
|
|
8179
|
+
__spreadProps$6(__spreadValues$x({}, editModalDisclosure), {
|
|
8147
8180
|
fileName: fileName || file.name,
|
|
8148
8181
|
setFileName,
|
|
8149
8182
|
image: file.src,
|
|
@@ -8155,7 +8188,7 @@
|
|
|
8155
8188
|
})
|
|
8156
8189
|
), /* @__PURE__ */ React.createElement(
|
|
8157
8190
|
ConfirmDeleteModal,
|
|
8158
|
-
__spreadProps$
|
|
8191
|
+
__spreadProps$6(__spreadValues$x({}, deleteModalDisclosure), {
|
|
8159
8192
|
confirmDelete: clearImage,
|
|
8160
8193
|
fileName: fileName || file.name
|
|
8161
8194
|
})
|
|
@@ -10084,6 +10117,10 @@
|
|
|
10084
10117
|
bgColor: color.background.step.hover,
|
|
10085
10118
|
borderColor: color.border.step.hover
|
|
10086
10119
|
},
|
|
10120
|
+
_disabled: {
|
|
10121
|
+
cursor: "not-allowed",
|
|
10122
|
+
_hover: { borderColor: color.border.step.default }
|
|
10123
|
+
},
|
|
10087
10124
|
_active: {
|
|
10088
10125
|
bgColor: color.background.step.active
|
|
10089
10126
|
},
|
|
@@ -10783,8 +10820,8 @@
|
|
|
10783
10820
|
});
|
|
10784
10821
|
|
|
10785
10822
|
var __defProp$t = Object.defineProperty;
|
|
10786
|
-
var __defProps$
|
|
10787
|
-
var __getOwnPropDescs$
|
|
10823
|
+
var __defProps$5 = Object.defineProperties;
|
|
10824
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
10788
10825
|
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
10789
10826
|
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
10790
10827
|
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
@@ -10800,9 +10837,9 @@
|
|
|
10800
10837
|
}
|
|
10801
10838
|
return a;
|
|
10802
10839
|
};
|
|
10803
|
-
var __spreadProps$
|
|
10840
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
10804
10841
|
const WebappSkin = {
|
|
10805
|
-
colors: __spreadProps$
|
|
10842
|
+
colors: __spreadProps$5(__spreadValues$t(__spreadValues$t({}, tokens.WebappSystemTokensSet.st.color), tokens.WebappComponentsTokensSet.color), {
|
|
10806
10843
|
border: __spreadValues$t(__spreadValues$t({}, tokens.WebappSystemTokensSet.st.color.border), tokens.WebappComponentsTokensSet.color.border)
|
|
10807
10844
|
}),
|
|
10808
10845
|
sizes: tokens.WebappComponentsTokensSet.sizing,
|
|
@@ -10815,8 +10852,8 @@
|
|
|
10815
10852
|
};
|
|
10816
10853
|
|
|
10817
10854
|
var __defProp$s = Object.defineProperty;
|
|
10818
|
-
var __defProps$
|
|
10819
|
-
var __getOwnPropDescs$
|
|
10855
|
+
var __defProps$4 = Object.defineProperties;
|
|
10856
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
10820
10857
|
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
10821
10858
|
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
10822
10859
|
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
@@ -10832,9 +10869,9 @@
|
|
|
10832
10869
|
}
|
|
10833
10870
|
return a;
|
|
10834
10871
|
};
|
|
10835
|
-
var __spreadProps$
|
|
10872
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
10836
10873
|
const TottSkin = {
|
|
10837
|
-
colors: __spreadProps$
|
|
10874
|
+
colors: __spreadProps$4(__spreadValues$s(__spreadValues$s({}, tokens.TottSysstemTokensSet.st.color), tokens.TottComponentsTokensSet.color), {
|
|
10838
10875
|
border: __spreadValues$s(__spreadValues$s({}, tokens.TottSysstemTokensSet.st.color.border), tokens.TottComponentsTokensSet.color.border)
|
|
10839
10876
|
}),
|
|
10840
10877
|
sizes: tokens.TottComponentsTokensSet.sizing,
|
|
@@ -11180,8 +11217,8 @@
|
|
|
11180
11217
|
});
|
|
11181
11218
|
|
|
11182
11219
|
var __defProp$n = Object.defineProperty;
|
|
11183
|
-
var __defProps$
|
|
11184
|
-
var __getOwnPropDescs$
|
|
11220
|
+
var __defProps$3 = Object.defineProperties;
|
|
11221
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
11185
11222
|
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
11186
11223
|
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
11187
11224
|
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
@@ -11197,7 +11234,7 @@
|
|
|
11197
11234
|
}
|
|
11198
11235
|
return a;
|
|
11199
11236
|
};
|
|
11200
|
-
var __spreadProps$
|
|
11237
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
11201
11238
|
var __objRest$i = (source, exclude) => {
|
|
11202
11239
|
var target = {};
|
|
11203
11240
|
for (var prop in source)
|
|
@@ -11220,7 +11257,7 @@
|
|
|
11220
11257
|
"hidden",
|
|
11221
11258
|
"children"
|
|
11222
11259
|
]);
|
|
11223
|
-
return /* @__PURE__ */ React.createElement(react.PinInput, __spreadProps$
|
|
11260
|
+
return /* @__PURE__ */ React.createElement(react.PinInput, __spreadProps$3(__spreadValues$n({}, rest), { variant, placeholder: "\u25CF", mask: hidden }), children);
|
|
11224
11261
|
};
|
|
11225
11262
|
|
|
11226
11263
|
const isStringArray = (value) => ramda.is(Array, value) && ramda.length(value) > 0 && typeof value[0] === "string";
|
|
@@ -11281,8 +11318,8 @@
|
|
|
11281
11318
|
const DROPDOWN_PADDING = 30;
|
|
11282
11319
|
|
|
11283
11320
|
var __defProp$m = Object.defineProperty;
|
|
11284
|
-
var __defProps$
|
|
11285
|
-
var __getOwnPropDescs$
|
|
11321
|
+
var __defProps$2 = Object.defineProperties;
|
|
11322
|
+
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|
11286
11323
|
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
11287
11324
|
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
11288
11325
|
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
@@ -11298,7 +11335,7 @@
|
|
|
11298
11335
|
}
|
|
11299
11336
|
return a;
|
|
11300
11337
|
};
|
|
11301
|
-
var __spreadProps$
|
|
11338
|
+
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|
11302
11339
|
var __objRest$h = (source, exclude) => {
|
|
11303
11340
|
var target = {};
|
|
11304
11341
|
for (var prop in source)
|
|
@@ -11376,7 +11413,7 @@
|
|
|
11376
11413
|
});
|
|
11377
11414
|
return /* @__PURE__ */ React.createElement(react.Box, { w: "full", "data-testid": testId, "data-role": "select-container", ref: selectContainerRef }, /* @__PURE__ */ React.createElement(
|
|
11378
11415
|
chakraReactSelect.Select,
|
|
11379
|
-
__spreadValues$m(__spreadProps$
|
|
11416
|
+
__spreadValues$m(__spreadProps$2(__spreadValues$m({
|
|
11380
11417
|
isMulti,
|
|
11381
11418
|
options: renderedOptions,
|
|
11382
11419
|
useBasicStyles: true,
|
|
@@ -11826,8 +11863,8 @@
|
|
|
11826
11863
|
const roundToPrecision = (value, numberOfDecimals) => parseFloat(value.toFixed(numberOfDecimals));
|
|
11827
11864
|
|
|
11828
11865
|
var __defProp$e = Object.defineProperty;
|
|
11829
|
-
var __defProps$
|
|
11830
|
-
var __getOwnPropDescs$
|
|
11866
|
+
var __defProps$1 = Object.defineProperties;
|
|
11867
|
+
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
11831
11868
|
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
11832
11869
|
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
11833
11870
|
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
@@ -11843,7 +11880,7 @@
|
|
|
11843
11880
|
}
|
|
11844
11881
|
return a;
|
|
11845
11882
|
};
|
|
11846
|
-
var __spreadProps$
|
|
11883
|
+
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
11847
11884
|
var __objRest$a = (source, exclude) => {
|
|
11848
11885
|
var target = {};
|
|
11849
11886
|
for (var prop in source)
|
|
@@ -11912,7 +11949,7 @@
|
|
|
11912
11949
|
const newFloatValue = values.floatValue && isPercentage ? roundToPrecision(values.floatValue / 100, numberOfDecimals) : values.floatValue;
|
|
11913
11950
|
setV(newFloatValue);
|
|
11914
11951
|
onChange(
|
|
11915
|
-
__spreadProps$
|
|
11952
|
+
__spreadProps$1(__spreadValues$e({}, values), {
|
|
11916
11953
|
floatValue: newFloatValue
|
|
11917
11954
|
}),
|
|
11918
11955
|
sourceInfo
|
|
@@ -12410,8 +12447,6 @@
|
|
|
12410
12447
|
const Steps = (props) => /* @__PURE__ */ React.createElement(react.Tabs, __spreadValues$6({ isManual: true }, props));
|
|
12411
12448
|
|
|
12412
12449
|
var __defProp$5 = Object.defineProperty;
|
|
12413
|
-
var __defProps$1 = Object.defineProperties;
|
|
12414
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
12415
12450
|
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
12416
12451
|
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
12417
12452
|
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
@@ -12427,7 +12462,6 @@
|
|
|
12427
12462
|
}
|
|
12428
12463
|
return a;
|
|
12429
12464
|
};
|
|
12430
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
12431
12465
|
var __objRest$4 = (source, exclude) => {
|
|
12432
12466
|
var target = {};
|
|
12433
12467
|
for (var prop in source)
|
|
@@ -12441,28 +12475,28 @@
|
|
|
12441
12475
|
return target;
|
|
12442
12476
|
};
|
|
12443
12477
|
const Step = (_a) => {
|
|
12444
|
-
var _b = _a, {
|
|
12445
|
-
label,
|
|
12446
|
-
description
|
|
12447
|
-
} = _b, rest = __objRest$4(_b, [
|
|
12448
|
-
"label",
|
|
12449
|
-
"description"
|
|
12450
|
-
]);
|
|
12478
|
+
var _b = _a, { label, description } = _b, rest = __objRest$4(_b, ["label", "description"]);
|
|
12451
12479
|
const {
|
|
12452
12480
|
step,
|
|
12453
12481
|
label: labelStyle,
|
|
12454
12482
|
description: descriptionStyle
|
|
12455
12483
|
} = react.useMultiStyleConfig("Step");
|
|
12456
|
-
return /* @__PURE__ */ React.createElement(
|
|
12457
|
-
react.
|
|
12458
|
-
{
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12484
|
+
return /* @__PURE__ */ React.createElement(
|
|
12485
|
+
react.Tab,
|
|
12486
|
+
__spreadValues$5({
|
|
12487
|
+
sx: step
|
|
12488
|
+
}, rest),
|
|
12489
|
+
/* @__PURE__ */ React.createElement(
|
|
12490
|
+
react.Flex,
|
|
12491
|
+
{
|
|
12492
|
+
flexDirection: "column",
|
|
12493
|
+
alignItems: "flex-start",
|
|
12494
|
+
_groupFocusVisible: ring
|
|
12495
|
+
},
|
|
12496
|
+
/* @__PURE__ */ React.createElement(Capitalized$1, { sx: labelStyle }, label),
|
|
12497
|
+
/* @__PURE__ */ React.createElement(Lead$1, { sx: descriptionStyle }, description)
|
|
12498
|
+
)
|
|
12499
|
+
);
|
|
12466
12500
|
};
|
|
12467
12501
|
|
|
12468
12502
|
var __defProp$4 = Object.defineProperty;
|
|
@@ -12531,7 +12565,7 @@
|
|
|
12531
12565
|
}
|
|
12532
12566
|
return target;
|
|
12533
12567
|
};
|
|
12534
|
-
const ClipboardInput = (_a) => {
|
|
12568
|
+
const ClipboardInput = React.forwardRef((_a, ref) => {
|
|
12535
12569
|
var _b = _a, {
|
|
12536
12570
|
size = "md",
|
|
12537
12571
|
value,
|
|
@@ -12546,9 +12580,10 @@
|
|
|
12546
12580
|
React.useEffect(() => {
|
|
12547
12581
|
setValue(value);
|
|
12548
12582
|
}, [value]);
|
|
12549
|
-
return /* @__PURE__ */ React.createElement(react.InputGroup, { size, "data-testid": "clipboard-input-test-id" }, /* @__PURE__ */ React.createElement(
|
|
12583
|
+
return /* @__PURE__ */ React.createElement(react.InputGroup, { size, "data-testid": "clipboard-input-test-id", ref }, /* @__PURE__ */ React.createElement(
|
|
12550
12584
|
react.Input,
|
|
12551
12585
|
__spreadValues$3({
|
|
12586
|
+
textOverflow: "ellipsis",
|
|
12552
12587
|
"aria-label": `Value to copy: ${value}`,
|
|
12553
12588
|
isReadOnly: true,
|
|
12554
12589
|
value
|
|
@@ -12578,7 +12613,7 @@
|
|
|
12578
12613
|
)
|
|
12579
12614
|
)
|
|
12580
12615
|
)));
|
|
12581
|
-
};
|
|
12616
|
+
});
|
|
12582
12617
|
|
|
12583
12618
|
const SplitPane = ({
|
|
12584
12619
|
children,
|