@darajs/core 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/download-content.d.ts.map +1 -1
- package/dist/actions/download-content.js +1 -0
- package/dist/actions/download-content.js.map +1 -1
- package/dist/actions/download-variable.d.ts.map +1 -1
- package/dist/actions/download-variable.js +1 -0
- package/dist/actions/download-variable.js.map +1 -1
- package/dist/actions/logout.d.ts.map +1 -1
- package/dist/actions/logout.js +1 -0
- package/dist/actions/logout.js.map +1 -1
- package/dist/actions/navigate-to.d.ts.map +1 -1
- package/dist/actions/navigate-to.js +1 -0
- package/dist/actions/navigate-to.js.map +1 -1
- package/dist/actions/notify.d.ts.map +1 -1
- package/dist/actions/notify.js +1 -0
- package/dist/actions/notify.js.map +1 -1
- package/dist/actions/side-effect.d.ts.map +1 -1
- package/dist/actions/side-effect.js +1 -0
- package/dist/actions/side-effect.js.map +1 -1
- package/dist/actions/update-variable.d.ts.map +1 -1
- package/dist/actions/update-variable.js +1 -0
- package/dist/actions/update-variable.js.map +1 -1
- package/dist/actions/utils.d.ts.map +1 -1
- package/dist/actions/utils.js +2 -1
- package/dist/actions/utils.js.map +1 -1
- package/dist/auth/auth-wrapper.d.ts.map +1 -1
- package/dist/auth/auth-wrapper.js +1 -0
- package/dist/auth/auth-wrapper.js.map +1 -1
- package/dist/auth/basic/basic-auth-login.d.ts.map +1 -1
- package/dist/auth/basic/basic-auth-login.js +1 -0
- package/dist/auth/basic/basic-auth-login.js.map +1 -1
- package/dist/auth/basic/basic-auth-logout.d.ts.map +1 -1
- package/dist/auth/basic/basic-auth-logout.js +1 -0
- package/dist/auth/basic/basic-auth-logout.js.map +1 -1
- package/dist/auth/default/default-auth-login.d.ts.map +1 -1
- package/dist/auth/default/default-auth-login.js +1 -0
- package/dist/auth/default/default-auth-login.js.map +1 -1
- package/dist/components/for/for.d.ts.map +1 -1
- package/dist/components/for/for.js +1 -0
- package/dist/components/for/for.js.map +1 -1
- package/dist/components/progress-tracker/progress-tracker.d.ts.map +1 -1
- package/dist/components/progress-tracker/progress-tracker.js +3 -1
- package/dist/components/progress-tracker/progress-tracker.js.map +1 -1
- package/dist/{dara_core-1.1.8-py3-none-any.whl → dara_core-1.1.10-py3-none-any.whl} +0 -0
- package/dist/devtools/floating-button.d.ts.map +1 -1
- package/dist/devtools/floating-button.js +1 -0
- package/dist/devtools/floating-button.js.map +1 -1
- package/dist/devtools/use-move.d.ts.map +1 -1
- package/dist/devtools/use-move.js +1 -0
- package/dist/devtools/use-move.js.map +1 -1
- package/dist/shared/context/global-task-context.d.ts.map +1 -1
- package/dist/shared/context/global-task-context.js +1 -0
- package/dist/shared/context/global-task-context.js.map +1 -1
- package/dist/shared/dynamic-component/dynamic-component.d.ts.map +1 -1
- package/dist/shared/dynamic-component/dynamic-component.js +1 -0
- package/dist/shared/dynamic-component/dynamic-component.js.map +1 -1
- package/dist/shared/interactivity/data-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/data-variable.js +1 -0
- package/dist/shared/interactivity/data-variable.js.map +1 -1
- package/dist/shared/interactivity/derived-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/derived-variable.js +1 -0
- package/dist/shared/interactivity/derived-variable.js.map +1 -1
- package/dist/shared/interactivity/nested.d.ts.map +1 -1
- package/dist/shared/interactivity/nested.js +8 -4
- package/dist/shared/interactivity/nested.js.map +1 -1
- package/dist/shared/interactivity/store.d.ts.map +1 -1
- package/dist/shared/interactivity/store.js +2 -1
- package/dist/shared/interactivity/store.js.map +1 -1
- package/dist/shared/interactivity/use-any-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/use-any-variable.js +2 -1
- package/dist/shared/interactivity/use-any-variable.js.map +1 -1
- package/dist/shared/interactivity/use-data-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/use-data-variable.js +1 -0
- package/dist/shared/interactivity/use-data-variable.js.map +1 -1
- package/dist/shared/interactivity/use-server-component.d.ts.map +1 -1
- package/dist/shared/interactivity/use-server-component.js +1 -0
- package/dist/shared/interactivity/use-server-component.js.map +1 -1
- package/dist/shared/interactivity/use-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/use-variable.js +1 -0
- package/dist/shared/interactivity/use-variable.js.map +1 -1
- package/dist/shared/private-route/private-route.d.ts.map +1 -1
- package/dist/shared/private-route/private-route.js +1 -0
- package/dist/shared/private-route/private-route.js.map +1 -1
- package/dist/shared/template-root/dynamic-context.d.ts.map +1 -1
- package/dist/shared/template-root/dynamic-context.js +1 -0
- package/dist/shared/template-root/dynamic-context.js.map +1 -1
- package/dist/shared/template-root/template-root.d.ts.map +1 -1
- package/dist/shared/template-root/template-root.js +1 -0
- package/dist/shared/template-root/template-root.js.map +1 -1
- package/dist/shared/utils/use-action.d.ts.map +1 -1
- package/dist/shared/utils/use-action.js +1 -0
- package/dist/shared/utils/use-action.js.map +1 -1
- package/dist/shared/utils/use-component-registry.d.ts.map +1 -1
- package/dist/shared/utils/use-component-registry.js +2 -1
- package/dist/shared/utils/use-component-registry.js.map +1 -1
- package/dist/shared/utils/use-component-styles.d.ts.map +1 -1
- package/dist/shared/utils/use-component-styles.js +1 -0
- package/dist/shared/utils/use-component-styles.js.map +1 -1
- package/dist/shared/utils/use-interval.d.ts.map +1 -1
- package/dist/shared/utils/use-interval.js +1 -0
- package/dist/shared/utils/use-interval.js.map +1 -1
- package/dist/shared/utils/use-url-sync.d.ts.map +1 -1
- package/dist/shared/utils/use-url-sync.js +1 -0
- package/dist/shared/utils/use-url-sync.js.map +1 -1
- package/dist/umd/dara.core.umd.js +774 -921
- package/package.json +10 -10
|
@@ -31,8 +31,8 @@ var __publicField = (obj, key, value) => {
|
|
|
31
31
|
const React__namespace = /* @__PURE__ */ _interopNamespace(React$2);
|
|
32
32
|
const ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
|
|
33
33
|
const styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
|
|
34
|
-
function _extends$
|
|
35
|
-
_extends$
|
|
34
|
+
function _extends$4() {
|
|
35
|
+
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
36
36
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
37
37
|
var source = arguments[i2];
|
|
38
38
|
for (var key in source) {
|
|
@@ -43,7 +43,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43
43
|
}
|
|
44
44
|
return target;
|
|
45
45
|
};
|
|
46
|
-
return _extends$
|
|
46
|
+
return _extends$4.apply(this, arguments);
|
|
47
47
|
}
|
|
48
48
|
function isAbsolute(pathname) {
|
|
49
49
|
return pathname.charAt(0) === "/";
|
|
@@ -187,7 +187,7 @@ var __publicField = (obj, key, value) => {
|
|
|
187
187
|
location2 = parsePath(path);
|
|
188
188
|
location2.state = state;
|
|
189
189
|
} else {
|
|
190
|
-
location2 = _extends$
|
|
190
|
+
location2 = _extends$4({}, path);
|
|
191
191
|
if (location2.pathname === void 0)
|
|
192
192
|
location2.pathname = "";
|
|
193
193
|
if (location2.search) {
|
|
@@ -338,7 +338,7 @@ var __publicField = (obj, key, value) => {
|
|
|
338
338
|
}
|
|
339
339
|
var transitionManager = createTransitionManager();
|
|
340
340
|
function setState(nextState) {
|
|
341
|
-
_extends$
|
|
341
|
+
_extends$4(history2, nextState);
|
|
342
342
|
history2.length = globalHistory.length;
|
|
343
343
|
transitionManager.notifyListeners(history2.location, history2.action);
|
|
344
344
|
}
|
|
@@ -562,7 +562,7 @@ var __publicField = (obj, key, value) => {
|
|
|
562
562
|
}
|
|
563
563
|
var transitionManager = createTransitionManager();
|
|
564
564
|
function setState(nextState) {
|
|
565
|
-
_extends$
|
|
565
|
+
_extends$4(history2, nextState);
|
|
566
566
|
history2.length = globalHistory.length;
|
|
567
567
|
transitionManager.notifyListeners(history2.location, history2.action);
|
|
568
568
|
}
|
|
@@ -749,7 +749,7 @@ var __publicField = (obj, key, value) => {
|
|
|
749
749
|
var _props = props, getUserConfirmation = _props.getUserConfirmation, _props$initialEntries = _props.initialEntries, initialEntries = _props$initialEntries === void 0 ? ["/"] : _props$initialEntries, _props$initialIndex = _props.initialIndex, initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
750
750
|
var transitionManager = createTransitionManager();
|
|
751
751
|
function setState(nextState) {
|
|
752
|
-
_extends$
|
|
752
|
+
_extends$4(history2, nextState);
|
|
753
753
|
history2.length = history2.entries.length;
|
|
754
754
|
transitionManager.notifyListeners(history2.location, history2.action);
|
|
755
755
|
}
|
|
@@ -859,17 +859,17 @@ var __publicField = (obj, key, value) => {
|
|
|
859
859
|
createRoot = m$3.createRoot;
|
|
860
860
|
m$3.hydrateRoot;
|
|
861
861
|
}
|
|
862
|
-
function _setPrototypeOf$
|
|
863
|
-
_setPrototypeOf$
|
|
862
|
+
function _setPrototypeOf$5(o2, p2) {
|
|
863
|
+
_setPrototypeOf$5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
864
864
|
o3.__proto__ = p3;
|
|
865
865
|
return o3;
|
|
866
866
|
};
|
|
867
|
-
return _setPrototypeOf$
|
|
867
|
+
return _setPrototypeOf$5(o2, p2);
|
|
868
868
|
}
|
|
869
|
-
function _inheritsLoose$
|
|
869
|
+
function _inheritsLoose$2(subClass, superClass) {
|
|
870
870
|
subClass.prototype = Object.create(superClass.prototype);
|
|
871
871
|
subClass.prototype.constructor = subClass;
|
|
872
|
-
_setPrototypeOf$
|
|
872
|
+
_setPrototypeOf$5(subClass, superClass);
|
|
873
873
|
}
|
|
874
874
|
var propTypes = { exports: {} };
|
|
875
875
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -1403,7 +1403,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1403
1403
|
var _Provider$childContex, _Consumer$contextType;
|
|
1404
1404
|
var contextProp = "__create-react-context-" + getUniqueId() + "__";
|
|
1405
1405
|
var Provider = /* @__PURE__ */ function(_React$Component) {
|
|
1406
|
-
_inheritsLoose$
|
|
1406
|
+
_inheritsLoose$2(Provider2, _React$Component);
|
|
1407
1407
|
function Provider2() {
|
|
1408
1408
|
var _this;
|
|
1409
1409
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1441,7 +1441,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1441
1441
|
}(React__default.default.Component);
|
|
1442
1442
|
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = propTypes.exports.object.isRequired, _Provider$childContex);
|
|
1443
1443
|
var Consumer = /* @__PURE__ */ function(_React$Component2) {
|
|
1444
|
-
_inheritsLoose$
|
|
1444
|
+
_inheritsLoose$2(Consumer2, _React$Component2);
|
|
1445
1445
|
function Consumer2() {
|
|
1446
1446
|
var _this2;
|
|
1447
1447
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -1506,7 +1506,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1506
1506
|
var historyContext = /* @__PURE__ */ createNamedContext("Router-History");
|
|
1507
1507
|
var context = /* @__PURE__ */ createNamedContext("Router");
|
|
1508
1508
|
var Router = /* @__PURE__ */ function(_React$Component) {
|
|
1509
|
-
_inheritsLoose$
|
|
1509
|
+
_inheritsLoose$2(Router2, _React$Component);
|
|
1510
1510
|
Router2.computeRootMatch = function computeRootMatch(pathname) {
|
|
1511
1511
|
return {
|
|
1512
1512
|
path: "/",
|
|
@@ -1575,7 +1575,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1575
1575
|
return Router2;
|
|
1576
1576
|
}(React__default.default.Component);
|
|
1577
1577
|
var MemoryRouter = /* @__PURE__ */ function(_React$Component) {
|
|
1578
|
-
_inheritsLoose$
|
|
1578
|
+
_inheritsLoose$2(MemoryRouter2, _React$Component);
|
|
1579
1579
|
function MemoryRouter2() {
|
|
1580
1580
|
var _this;
|
|
1581
1581
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1595,7 +1595,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1595
1595
|
return MemoryRouter2;
|
|
1596
1596
|
}(React__default.default.Component);
|
|
1597
1597
|
var Lifecycle = /* @__PURE__ */ function(_React$Component) {
|
|
1598
|
-
_inheritsLoose$
|
|
1598
|
+
_inheritsLoose$2(Lifecycle2, _React$Component);
|
|
1599
1599
|
function Lifecycle2() {
|
|
1600
1600
|
return _React$Component.apply(this, arguments) || this;
|
|
1601
1601
|
}
|
|
@@ -1671,7 +1671,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1671
1671
|
!context2 ? invariant$1(false) : void 0;
|
|
1672
1672
|
var history2 = context2.history, staticContext = context2.staticContext;
|
|
1673
1673
|
var method = push ? history2.push : history2.replace;
|
|
1674
|
-
var location2 = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends$
|
|
1674
|
+
var location2 = createLocation(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : _extends$4({}, to, {
|
|
1675
1675
|
pathname: generatePath(to.pathname, computedMatch.params)
|
|
1676
1676
|
}) : to);
|
|
1677
1677
|
if (staticContext) {
|
|
@@ -1684,7 +1684,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1684
1684
|
},
|
|
1685
1685
|
onUpdate: function onUpdate(self2, prevProps) {
|
|
1686
1686
|
var prevLocation = createLocation(prevProps.to);
|
|
1687
|
-
if (!locationsAreEqual(prevLocation, _extends$
|
|
1687
|
+
if (!locationsAreEqual(prevLocation, _extends$4({}, location2, {
|
|
1688
1688
|
key: prevLocation.key
|
|
1689
1689
|
}))) {
|
|
1690
1690
|
method(location2);
|
|
@@ -1757,7 +1757,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1757
1757
|
return React__default.default.Children.count(children) === 0;
|
|
1758
1758
|
}
|
|
1759
1759
|
var Route = /* @__PURE__ */ function(_React$Component) {
|
|
1760
|
-
_inheritsLoose$
|
|
1760
|
+
_inheritsLoose$2(Route2, _React$Component);
|
|
1761
1761
|
function Route2() {
|
|
1762
1762
|
return _React$Component.apply(this, arguments) || this;
|
|
1763
1763
|
}
|
|
@@ -1768,7 +1768,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1768
1768
|
!context$1 ? invariant$1(false) : void 0;
|
|
1769
1769
|
var location2 = _this.props.location || context$1.location;
|
|
1770
1770
|
var match2 = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location2.pathname, _this.props) : context$1.match;
|
|
1771
|
-
var props = _extends$
|
|
1771
|
+
var props = _extends$4({}, context$1, {
|
|
1772
1772
|
location: location2,
|
|
1773
1773
|
match: match2
|
|
1774
1774
|
});
|
|
@@ -1789,7 +1789,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1789
1789
|
function addBasename(basename, location2) {
|
|
1790
1790
|
if (!basename)
|
|
1791
1791
|
return location2;
|
|
1792
|
-
return _extends$
|
|
1792
|
+
return _extends$4({}, location2, {
|
|
1793
1793
|
pathname: addLeadingSlash(basename) + location2.pathname
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
@@ -1799,7 +1799,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1799
1799
|
var base = addLeadingSlash(basename);
|
|
1800
1800
|
if (location2.pathname.indexOf(base) !== 0)
|
|
1801
1801
|
return location2;
|
|
1802
|
-
return _extends$
|
|
1802
|
+
return _extends$4({}, location2, {
|
|
1803
1803
|
pathname: location2.pathname.substr(base.length)
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
@@ -1814,7 +1814,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1814
1814
|
function noop$5() {
|
|
1815
1815
|
}
|
|
1816
1816
|
var StaticRouter = /* @__PURE__ */ function(_React$Component) {
|
|
1817
|
-
_inheritsLoose$
|
|
1817
|
+
_inheritsLoose$2(StaticRouter2, _React$Component);
|
|
1818
1818
|
function StaticRouter2() {
|
|
1819
1819
|
var _this;
|
|
1820
1820
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1858,7 +1858,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1858
1858
|
listen: this.handleListen,
|
|
1859
1859
|
block: this.handleBlock
|
|
1860
1860
|
};
|
|
1861
|
-
return /* @__PURE__ */ React__default.default.createElement(Router, _extends$
|
|
1861
|
+
return /* @__PURE__ */ React__default.default.createElement(Router, _extends$4({}, rest, {
|
|
1862
1862
|
history: history2,
|
|
1863
1863
|
staticContext: context2
|
|
1864
1864
|
}));
|
|
@@ -1866,7 +1866,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1866
1866
|
return StaticRouter2;
|
|
1867
1867
|
}(React__default.default.Component);
|
|
1868
1868
|
var Switch$1 = /* @__PURE__ */ function(_React$Component) {
|
|
1869
|
-
_inheritsLoose$
|
|
1869
|
+
_inheritsLoose$2(Switch2, _React$Component);
|
|
1870
1870
|
function Switch2() {
|
|
1871
1871
|
return _React$Component.apply(this, arguments) || this;
|
|
1872
1872
|
}
|
|
@@ -1881,7 +1881,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1881
1881
|
if (match2 == null && /* @__PURE__ */ React__default.default.isValidElement(child)) {
|
|
1882
1882
|
element = child;
|
|
1883
1883
|
var path = child.props.path || child.props.from;
|
|
1884
|
-
match2 = path ? matchPath(location2.pathname, _extends$
|
|
1884
|
+
match2 = path ? matchPath(location2.pathname, _extends$4({}, child.props, {
|
|
1885
1885
|
path
|
|
1886
1886
|
})) : context2.match;
|
|
1887
1887
|
}
|
|
@@ -1900,7 +1900,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1900
1900
|
var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$6(props, ["wrappedComponentRef"]);
|
|
1901
1901
|
return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
|
|
1902
1902
|
!context2 ? invariant$1(false) : void 0;
|
|
1903
|
-
return /* @__PURE__ */ React__default.default.createElement(Component, _extends$
|
|
1903
|
+
return /* @__PURE__ */ React__default.default.createElement(Component, _extends$4({}, remainingProps, context2, {
|
|
1904
1904
|
ref: wrappedComponentRef
|
|
1905
1905
|
}));
|
|
1906
1906
|
});
|
|
@@ -1926,7 +1926,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1926
1926
|
return path ? matchPath(location2.pathname, path) : match2;
|
|
1927
1927
|
}
|
|
1928
1928
|
var BrowserRouter = /* @__PURE__ */ function(_React$Component) {
|
|
1929
|
-
_inheritsLoose$
|
|
1929
|
+
_inheritsLoose$2(BrowserRouter2, _React$Component);
|
|
1930
1930
|
function BrowserRouter2() {
|
|
1931
1931
|
var _this;
|
|
1932
1932
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1946,7 +1946,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1946
1946
|
return BrowserRouter2;
|
|
1947
1947
|
}(React__default.default.Component);
|
|
1948
1948
|
var HashRouter = /* @__PURE__ */ function(_React$Component) {
|
|
1949
|
-
_inheritsLoose$
|
|
1949
|
+
_inheritsLoose$2(HashRouter2, _React$Component);
|
|
1950
1950
|
function HashRouter2() {
|
|
1951
1951
|
var _this;
|
|
1952
1952
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -1984,7 +1984,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1984
1984
|
var LinkAnchor = forwardRef$1(function(_ref2, forwardedRef) {
|
|
1985
1985
|
var innerRef = _ref2.innerRef, navigate = _ref2.navigate, _onClick = _ref2.onClick, rest = _objectWithoutPropertiesLoose$6(_ref2, ["innerRef", "navigate", "onClick"]);
|
|
1986
1986
|
var target = rest.target;
|
|
1987
|
-
var props = _extends$
|
|
1987
|
+
var props = _extends$4({}, rest, {
|
|
1988
1988
|
onClick: function onClick(event) {
|
|
1989
1989
|
try {
|
|
1990
1990
|
if (_onClick)
|
|
@@ -2013,7 +2013,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2013
2013
|
var history2 = context2.history;
|
|
2014
2014
|
var location2 = normalizeToLocation(resolveToLocation(to, context2.location), context2.location);
|
|
2015
2015
|
var href = location2 ? history2.createHref(location2) : "";
|
|
2016
|
-
var props = _extends$
|
|
2016
|
+
var props = _extends$4({}, rest, {
|
|
2017
2017
|
href,
|
|
2018
2018
|
navigate: function navigate() {
|
|
2019
2019
|
var location3 = resolveToLocation(to, context2.location);
|
|
@@ -2064,9 +2064,9 @@ var __publicField = (obj, key, value) => {
|
|
|
2064
2064
|
var style = typeof styleProp === "function" ? styleProp(isActive) : styleProp;
|
|
2065
2065
|
if (isActive) {
|
|
2066
2066
|
className = joinClassnames(className, activeClassName);
|
|
2067
|
-
style = _extends$
|
|
2067
|
+
style = _extends$4({}, style, activeStyle);
|
|
2068
2068
|
}
|
|
2069
|
-
var props = _extends$
|
|
2069
|
+
var props = _extends$4({
|
|
2070
2070
|
"aria-current": isActive && ariaCurrent || null,
|
|
2071
2071
|
className,
|
|
2072
2072
|
style,
|
|
@@ -2124,7 +2124,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2124
2124
|
throw Recoil_err$2(message !== null && message !== void 0 ? message : "Got unexpected null or undefined");
|
|
2125
2125
|
}
|
|
2126
2126
|
var Recoil_nullthrows$1 = nullthrows$1;
|
|
2127
|
-
function _defineProperty$
|
|
2127
|
+
function _defineProperty$a(obj, key, value) {
|
|
2128
2128
|
if (key in obj) {
|
|
2129
2129
|
Object.defineProperty(obj, key, {
|
|
2130
2130
|
value,
|
|
@@ -2172,8 +2172,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2172
2172
|
class ValueLoadable extends BaseLoadable {
|
|
2173
2173
|
constructor(value) {
|
|
2174
2174
|
super();
|
|
2175
|
-
_defineProperty$
|
|
2176
|
-
_defineProperty$
|
|
2175
|
+
_defineProperty$a(this, "state", "hasValue");
|
|
2176
|
+
_defineProperty$a(this, "contents", void 0);
|
|
2177
2177
|
this.contents = value;
|
|
2178
2178
|
}
|
|
2179
2179
|
getValue() {
|
|
@@ -2206,8 +2206,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2206
2206
|
class ErrorLoadable extends BaseLoadable {
|
|
2207
2207
|
constructor(error) {
|
|
2208
2208
|
super();
|
|
2209
|
-
_defineProperty$
|
|
2210
|
-
_defineProperty$
|
|
2209
|
+
_defineProperty$a(this, "state", "hasError");
|
|
2210
|
+
_defineProperty$a(this, "contents", void 0);
|
|
2211
2211
|
this.contents = error;
|
|
2212
2212
|
}
|
|
2213
2213
|
getValue() {
|
|
@@ -2235,8 +2235,8 @@ var __publicField = (obj, key, value) => {
|
|
|
2235
2235
|
class LoadingLoadable extends BaseLoadable {
|
|
2236
2236
|
constructor(promise) {
|
|
2237
2237
|
super();
|
|
2238
|
-
_defineProperty$
|
|
2239
|
-
_defineProperty$
|
|
2238
|
+
_defineProperty$a(this, "state", "loading");
|
|
2239
|
+
_defineProperty$a(this, "contents", void 0);
|
|
2240
2240
|
this.contents = promise;
|
|
2241
2241
|
}
|
|
2242
2242
|
getValue() {
|
|
@@ -2470,7 +2470,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2470
2470
|
};
|
|
2471
2471
|
class AbstractRecoilValue {
|
|
2472
2472
|
constructor(newKey) {
|
|
2473
|
-
_defineProperty$
|
|
2473
|
+
_defineProperty$a(this, "key", void 0);
|
|
2474
2474
|
this.key = newKey;
|
|
2475
2475
|
}
|
|
2476
2476
|
toJSON() {
|
|
@@ -3208,7 +3208,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3208
3208
|
});
|
|
3209
3209
|
class BuiltInMap {
|
|
3210
3210
|
constructor(existing) {
|
|
3211
|
-
_defineProperty$
|
|
3211
|
+
_defineProperty$a(this, "_map", void 0);
|
|
3212
3212
|
this._map = new Map(existing === null || existing === void 0 ? void 0 : existing.entries());
|
|
3213
3213
|
}
|
|
3214
3214
|
keys() {
|
|
@@ -3240,7 +3240,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
class HashArrayMappedTrieMap {
|
|
3242
3242
|
constructor(existing) {
|
|
3243
|
-
_defineProperty$
|
|
3243
|
+
_defineProperty$a(this, "_hamt", hamt_1.empty.beginMutation());
|
|
3244
3244
|
if (existing instanceof HashArrayMappedTrieMap) {
|
|
3245
3245
|
const h2 = existing._hamt.endMutation();
|
|
3246
3246
|
existing._hamt = h2.beginMutation();
|
|
@@ -4305,17 +4305,17 @@ var __publicField = (obj, key, value) => {
|
|
|
4305
4305
|
} = Recoil_Memoize;
|
|
4306
4306
|
class Snapshot {
|
|
4307
4307
|
constructor(storeState, parentStoreID) {
|
|
4308
|
-
_defineProperty$
|
|
4309
|
-
_defineProperty$
|
|
4310
|
-
_defineProperty$
|
|
4308
|
+
_defineProperty$a(this, "_store", void 0);
|
|
4309
|
+
_defineProperty$a(this, "_refCount", 1);
|
|
4310
|
+
_defineProperty$a(this, "getLoadable", (recoilValue) => {
|
|
4311
4311
|
this.checkRefCount_INTERNAL();
|
|
4312
4312
|
return getRecoilValueAsLoadable$1(this._store, recoilValue);
|
|
4313
4313
|
});
|
|
4314
|
-
_defineProperty$
|
|
4314
|
+
_defineProperty$a(this, "getPromise", (recoilValue) => {
|
|
4315
4315
|
this.checkRefCount_INTERNAL();
|
|
4316
4316
|
return this.getLoadable(recoilValue).toPromise();
|
|
4317
4317
|
});
|
|
4318
|
-
_defineProperty$
|
|
4318
|
+
_defineProperty$a(this, "getNodes_UNSTABLE", (opt) => {
|
|
4319
4319
|
this.checkRefCount_INTERNAL();
|
|
4320
4320
|
if ((opt === null || opt === void 0 ? void 0 : opt.isModified) === true) {
|
|
4321
4321
|
if ((opt === null || opt === void 0 ? void 0 : opt.isInitialized) === false) {
|
|
@@ -4330,19 +4330,19 @@ var __publicField = (obj, key, value) => {
|
|
|
4330
4330
|
key
|
|
4331
4331
|
}) => !knownAtoms.has(key) && !knownSelectors.has(key));
|
|
4332
4332
|
});
|
|
4333
|
-
_defineProperty$
|
|
4333
|
+
_defineProperty$a(this, "getInfo_UNSTABLE", ({
|
|
4334
4334
|
key
|
|
4335
4335
|
}) => {
|
|
4336
4336
|
this.checkRefCount_INTERNAL();
|
|
4337
4337
|
return peekNodeInfo$1(this._store, this._store.getState().currentTree, key);
|
|
4338
4338
|
});
|
|
4339
|
-
_defineProperty$
|
|
4339
|
+
_defineProperty$a(this, "map", (mapper) => {
|
|
4340
4340
|
this.checkRefCount_INTERNAL();
|
|
4341
4341
|
const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);
|
|
4342
4342
|
mapper(mutableSnapshot);
|
|
4343
4343
|
return mutableSnapshot;
|
|
4344
4344
|
});
|
|
4345
|
-
_defineProperty$
|
|
4345
|
+
_defineProperty$a(this, "asyncMap", async (mapper) => {
|
|
4346
4346
|
this.checkRefCount_INTERNAL();
|
|
4347
4347
|
const mutableSnapshot = new MutableSnapshot(this, batchUpdates$1);
|
|
4348
4348
|
mutableSnapshot.retain();
|
|
@@ -4490,8 +4490,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4490
4490
|
class MutableSnapshot extends Snapshot {
|
|
4491
4491
|
constructor(snapshot, batch) {
|
|
4492
4492
|
super(cloneStoreState(snapshot.getStore_INTERNAL(), snapshot.getStore_INTERNAL().getState().currentTree, true), snapshot.getStoreID());
|
|
4493
|
-
_defineProperty$
|
|
4494
|
-
_defineProperty$
|
|
4493
|
+
_defineProperty$a(this, "_batch", void 0);
|
|
4494
|
+
_defineProperty$a(this, "set", (recoilState, newValueOrUpdater) => {
|
|
4495
4495
|
this.checkRefCount_INTERNAL();
|
|
4496
4496
|
const store = this.getStore_INTERNAL();
|
|
4497
4497
|
this._batch(() => {
|
|
@@ -4499,7 +4499,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4499
4499
|
setRecoilValue$1(this.getStore_INTERNAL(), recoilState, newValueOrUpdater);
|
|
4500
4500
|
});
|
|
4501
4501
|
});
|
|
4502
|
-
_defineProperty$
|
|
4502
|
+
_defineProperty$a(this, "reset", (recoilState) => {
|
|
4503
4503
|
this.checkRefCount_INTERNAL();
|
|
4504
4504
|
const store = this.getStore_INTERNAL();
|
|
4505
4505
|
this._batch(() => {
|
|
@@ -4507,7 +4507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4507
4507
|
setRecoilValue$1(this.getStore_INTERNAL(), recoilState, DEFAULT_VALUE$1$1);
|
|
4508
4508
|
});
|
|
4509
4509
|
});
|
|
4510
|
-
_defineProperty$
|
|
4510
|
+
_defineProperty$a(this, "setUnvalidatedAtomValues_DEPRECATED", (values) => {
|
|
4511
4511
|
this.checkRefCount_INTERNAL();
|
|
4512
4512
|
const store = this.getStore_INTERNAL();
|
|
4513
4513
|
batchUpdates$1(() => {
|
|
@@ -5622,10 +5622,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5622
5622
|
}
|
|
5623
5623
|
class TransactionInterfaceImpl {
|
|
5624
5624
|
constructor(store, treeState) {
|
|
5625
|
-
_defineProperty$
|
|
5626
|
-
_defineProperty$
|
|
5627
|
-
_defineProperty$
|
|
5628
|
-
_defineProperty$
|
|
5625
|
+
_defineProperty$a(this, "_store", void 0);
|
|
5626
|
+
_defineProperty$a(this, "_treeState", void 0);
|
|
5627
|
+
_defineProperty$a(this, "_changes", void 0);
|
|
5628
|
+
_defineProperty$a(this, "get", (recoilValue) => {
|
|
5629
5629
|
if (this._changes.has(recoilValue.key)) {
|
|
5630
5630
|
return this._changes.get(recoilValue.key);
|
|
5631
5631
|
}
|
|
@@ -5641,7 +5641,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5641
5641
|
throw Recoil_err$2(`Expected Recoil atom ${recoilValue.key} to have a value, but it is in a loading state.`);
|
|
5642
5642
|
}
|
|
5643
5643
|
});
|
|
5644
|
-
_defineProperty$
|
|
5644
|
+
_defineProperty$a(this, "set", (recoilState, valueOrUpdater) => {
|
|
5645
5645
|
if (!isAtom(recoilState)) {
|
|
5646
5646
|
throw Recoil_err$2("Setting selectors within atomicUpdate is not supported");
|
|
5647
5647
|
}
|
|
@@ -5653,7 +5653,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5653
5653
|
this._changes.set(recoilState.key, valueOrUpdater);
|
|
5654
5654
|
}
|
|
5655
5655
|
});
|
|
5656
|
-
_defineProperty$
|
|
5656
|
+
_defineProperty$a(this, "reset", (recoilState) => {
|
|
5657
5657
|
this.set(recoilState, DEFAULT_VALUE$4);
|
|
5658
5658
|
});
|
|
5659
5659
|
this._store = store;
|
|
@@ -5818,7 +5818,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5818
5818
|
var Recoil_useRecoilTransaction = useRecoilTransaction;
|
|
5819
5819
|
class WrappedValue {
|
|
5820
5820
|
constructor(value) {
|
|
5821
|
-
_defineProperty$
|
|
5821
|
+
_defineProperty$a(this, "value", void 0);
|
|
5822
5822
|
this.value = value;
|
|
5823
5823
|
}
|
|
5824
5824
|
}
|
|
@@ -5838,12 +5838,12 @@ var __publicField = (obj, key, value) => {
|
|
|
5838
5838
|
class TreeCache {
|
|
5839
5839
|
constructor(options) {
|
|
5840
5840
|
var _options$onHit, _options$onSet, _options$mapNodeValue;
|
|
5841
|
-
_defineProperty$
|
|
5842
|
-
_defineProperty$
|
|
5843
|
-
_defineProperty$
|
|
5844
|
-
_defineProperty$
|
|
5845
|
-
_defineProperty$
|
|
5846
|
-
_defineProperty$
|
|
5841
|
+
_defineProperty$a(this, "_name", void 0);
|
|
5842
|
+
_defineProperty$a(this, "_numLeafs", void 0);
|
|
5843
|
+
_defineProperty$a(this, "_root", void 0);
|
|
5844
|
+
_defineProperty$a(this, "_onHit", void 0);
|
|
5845
|
+
_defineProperty$a(this, "_onSet", void 0);
|
|
5846
|
+
_defineProperty$a(this, "_mapNodeValue", void 0);
|
|
5847
5847
|
this._name = options === null || options === void 0 ? void 0 : options.name;
|
|
5848
5848
|
this._numLeafs = 0;
|
|
5849
5849
|
this._root = null;
|
|
@@ -5993,12 +5993,12 @@ var __publicField = (obj, key, value) => {
|
|
|
5993
5993
|
class LRUCache {
|
|
5994
5994
|
constructor(options) {
|
|
5995
5995
|
var _options$mapKey;
|
|
5996
|
-
_defineProperty$
|
|
5997
|
-
_defineProperty$
|
|
5998
|
-
_defineProperty$
|
|
5999
|
-
_defineProperty$
|
|
6000
|
-
_defineProperty$
|
|
6001
|
-
_defineProperty$
|
|
5996
|
+
_defineProperty$a(this, "_maxSize", void 0);
|
|
5997
|
+
_defineProperty$a(this, "_size", void 0);
|
|
5998
|
+
_defineProperty$a(this, "_head", void 0);
|
|
5999
|
+
_defineProperty$a(this, "_tail", void 0);
|
|
6000
|
+
_defineProperty$a(this, "_map", void 0);
|
|
6001
|
+
_defineProperty$a(this, "_keyMapper", void 0);
|
|
6002
6002
|
this._maxSize = options.maxSize;
|
|
6003
6003
|
this._size = 0;
|
|
6004
6004
|
this._head = null;
|
|
@@ -7087,8 +7087,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7087
7087
|
class MapCache$4 {
|
|
7088
7088
|
constructor(options) {
|
|
7089
7089
|
var _options$mapKey;
|
|
7090
|
-
_defineProperty$
|
|
7091
|
-
_defineProperty$
|
|
7090
|
+
_defineProperty$a(this, "_map", void 0);
|
|
7091
|
+
_defineProperty$a(this, "_keyMapper", void 0);
|
|
7092
7092
|
this._map = /* @__PURE__ */ new Map();
|
|
7093
7093
|
this._keyMapper = (_options$mapKey = options === null || options === void 0 ? void 0 : options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : (v2) => v2;
|
|
7094
7094
|
}
|
|
@@ -10566,7 +10566,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10566
10566
|
return proxy;
|
|
10567
10567
|
}
|
|
10568
10568
|
var Recoil_lazyProxy = lazyProxy;
|
|
10569
|
-
function _defineProperty$
|
|
10569
|
+
function _defineProperty$9(obj, key, value) {
|
|
10570
10570
|
if (key in obj) {
|
|
10571
10571
|
Object.defineProperty(obj, key, {
|
|
10572
10572
|
value,
|
|
@@ -10579,8 +10579,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10579
10579
|
}
|
|
10580
10580
|
return obj;
|
|
10581
10581
|
}
|
|
10582
|
-
function _extends$
|
|
10583
|
-
_extends$
|
|
10582
|
+
function _extends$3() {
|
|
10583
|
+
_extends$3 = Object.assign || function(target) {
|
|
10584
10584
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
10585
10585
|
var source = arguments[i2];
|
|
10586
10586
|
for (var key in source) {
|
|
@@ -10591,7 +10591,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10591
10591
|
}
|
|
10592
10592
|
return target;
|
|
10593
10593
|
};
|
|
10594
|
-
return _extends$
|
|
10594
|
+
return _extends$3.apply(this, arguments);
|
|
10595
10595
|
}
|
|
10596
10596
|
const {
|
|
10597
10597
|
DefaultValue,
|
|
@@ -10624,9 +10624,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10624
10624
|
}
|
|
10625
10625
|
class Registries {
|
|
10626
10626
|
constructor() {
|
|
10627
|
-
_defineProperty$
|
|
10628
|
-
_defineProperty$
|
|
10629
|
-
_defineProperty$
|
|
10627
|
+
_defineProperty$9(this, "atomRegistries", /* @__PURE__ */ new Map());
|
|
10628
|
+
_defineProperty$9(this, "nextEffectKey", 0);
|
|
10629
|
+
_defineProperty$9(this, "storageRegistries", /* @__PURE__ */ new Map());
|
|
10630
10630
|
}
|
|
10631
10631
|
getAtomRegistry(recoilStoreID, externalStoreKey) {
|
|
10632
10632
|
if (!this.atomRegistries.has(recoilStoreID)) {
|
|
@@ -11011,8 +11011,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11011
11011
|
};
|
|
11012
11012
|
class Path$5 {
|
|
11013
11013
|
constructor(parent = null, field = "<root>") {
|
|
11014
|
-
_defineProperty$
|
|
11015
|
-
_defineProperty$
|
|
11014
|
+
_defineProperty$9(this, "parent", void 0);
|
|
11015
|
+
_defineProperty$9(this, "field", void 0);
|
|
11016
11016
|
this.parent = parent;
|
|
11017
11017
|
this.field = field;
|
|
11018
11018
|
}
|
|
@@ -11147,7 +11147,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11147
11147
|
}
|
|
11148
11148
|
class OptionalProperty$1 {
|
|
11149
11149
|
constructor(checker) {
|
|
11150
|
-
_defineProperty$
|
|
11150
|
+
_defineProperty$9(this, "checker", void 0);
|
|
11151
11151
|
this.checker = checker;
|
|
11152
11152
|
}
|
|
11153
11153
|
}
|
|
@@ -11855,7 +11855,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11855
11855
|
}
|
|
11856
11856
|
const serialize = useCallback$2((x2) => x2 === void 0 ? "" : Recoil_nullthrows(JSON.stringify(x2), "Unable to serialize state with JSON"), []);
|
|
11857
11857
|
const deserialize = useCallback$2((x2) => JSON.parse(x2), []);
|
|
11858
|
-
return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$1, _extends$
|
|
11858
|
+
return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$1, _extends$3({}, options, {
|
|
11859
11859
|
serialize,
|
|
11860
11860
|
deserialize
|
|
11861
11861
|
}));
|
|
@@ -11948,7 +11948,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11948
11948
|
}
|
|
11949
11949
|
}), [handlers]);
|
|
11950
11950
|
const deserialize = useCallback$3((x2) => reader.read(x2), [reader]);
|
|
11951
|
-
return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$2, _extends$
|
|
11951
|
+
return /* @__PURE__ */ React__default.default.createElement(RecoilURLSync$2, _extends$3({}, options, {
|
|
11952
11952
|
serialize,
|
|
11953
11953
|
deserialize
|
|
11954
11954
|
}));
|
|
@@ -12146,18 +12146,18 @@ var __publicField = (obj, key, value) => {
|
|
|
12146
12146
|
}
|
|
12147
12147
|
})(jsxRuntime);
|
|
12148
12148
|
var Collapse$2 = {};
|
|
12149
|
-
function _typeof$
|
|
12149
|
+
function _typeof$4(obj) {
|
|
12150
12150
|
"@babel/helpers - typeof";
|
|
12151
12151
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
12152
|
-
_typeof$
|
|
12152
|
+
_typeof$4 = function _typeof2(obj2) {
|
|
12153
12153
|
return typeof obj2;
|
|
12154
12154
|
};
|
|
12155
12155
|
} else {
|
|
12156
|
-
_typeof$
|
|
12156
|
+
_typeof$4 = function _typeof2(obj2) {
|
|
12157
12157
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
12158
12158
|
};
|
|
12159
12159
|
}
|
|
12160
|
-
return _typeof$
|
|
12160
|
+
return _typeof$4(obj);
|
|
12161
12161
|
}
|
|
12162
12162
|
Object.defineProperty(Collapse$2, "__esModule", {
|
|
12163
12163
|
value: true
|
|
@@ -12195,21 +12195,21 @@ var __publicField = (obj, key, value) => {
|
|
|
12195
12195
|
}
|
|
12196
12196
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
12197
12197
|
if (superClass)
|
|
12198
|
-
_setPrototypeOf$
|
|
12198
|
+
_setPrototypeOf$4(subClass, superClass);
|
|
12199
12199
|
}
|
|
12200
|
-
function _setPrototypeOf$
|
|
12201
|
-
_setPrototypeOf$
|
|
12200
|
+
function _setPrototypeOf$4(o2, p2) {
|
|
12201
|
+
_setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12202
12202
|
o3.__proto__ = p3;
|
|
12203
12203
|
return o3;
|
|
12204
12204
|
};
|
|
12205
|
-
return _setPrototypeOf$
|
|
12205
|
+
return _setPrototypeOf$4(o2, p2);
|
|
12206
12206
|
}
|
|
12207
12207
|
function _createSuper$3(Derived) {
|
|
12208
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12208
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$4();
|
|
12209
12209
|
return function _createSuperInternal() {
|
|
12210
|
-
var Super = _getPrototypeOf$
|
|
12210
|
+
var Super = _getPrototypeOf$4(Derived), result;
|
|
12211
12211
|
if (hasNativeReflectConstruct) {
|
|
12212
|
-
var NewTarget = _getPrototypeOf$
|
|
12212
|
+
var NewTarget = _getPrototypeOf$4(this).constructor;
|
|
12213
12213
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
12214
12214
|
} else {
|
|
12215
12215
|
result = Super.apply(this, arguments);
|
|
@@ -12218,20 +12218,20 @@ var __publicField = (obj, key, value) => {
|
|
|
12218
12218
|
};
|
|
12219
12219
|
}
|
|
12220
12220
|
function _possibleConstructorReturn$3(self2, call) {
|
|
12221
|
-
if (call && (_typeof$
|
|
12221
|
+
if (call && (_typeof$4(call) === "object" || typeof call === "function")) {
|
|
12222
12222
|
return call;
|
|
12223
12223
|
} else if (call !== void 0) {
|
|
12224
12224
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
12225
12225
|
}
|
|
12226
|
-
return _assertThisInitialized$
|
|
12226
|
+
return _assertThisInitialized$5(self2);
|
|
12227
12227
|
}
|
|
12228
|
-
function _assertThisInitialized$
|
|
12228
|
+
function _assertThisInitialized$5(self2) {
|
|
12229
12229
|
if (self2 === void 0) {
|
|
12230
12230
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12231
12231
|
}
|
|
12232
12232
|
return self2;
|
|
12233
12233
|
}
|
|
12234
|
-
function _isNativeReflectConstruct$
|
|
12234
|
+
function _isNativeReflectConstruct$4() {
|
|
12235
12235
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
12236
12236
|
return false;
|
|
12237
12237
|
if (Reflect.construct.sham)
|
|
@@ -12246,13 +12246,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12246
12246
|
return false;
|
|
12247
12247
|
}
|
|
12248
12248
|
}
|
|
12249
|
-
function _getPrototypeOf$
|
|
12250
|
-
_getPrototypeOf$
|
|
12249
|
+
function _getPrototypeOf$4(o2) {
|
|
12250
|
+
_getPrototypeOf$4 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12251
12251
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12252
12252
|
};
|
|
12253
|
-
return _getPrototypeOf$
|
|
12253
|
+
return _getPrototypeOf$4(o2);
|
|
12254
12254
|
}
|
|
12255
|
-
function _defineProperty$
|
|
12255
|
+
function _defineProperty$8(obj, key, value) {
|
|
12256
12256
|
if (key in obj) {
|
|
12257
12257
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12258
12258
|
} else {
|
|
@@ -12267,10 +12267,10 @@ var __publicField = (obj, key, value) => {
|
|
|
12267
12267
|
var _this;
|
|
12268
12268
|
_classCallCheck$4(this, Collapse2);
|
|
12269
12269
|
_this = _super.call(this, props);
|
|
12270
|
-
_defineProperty$
|
|
12271
|
-
_defineProperty$
|
|
12272
|
-
_defineProperty$
|
|
12273
|
-
_defineProperty$
|
|
12270
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "timeout", void 0);
|
|
12271
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "container", void 0);
|
|
12272
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "content", void 0);
|
|
12273
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "onResize", function() {
|
|
12274
12274
|
clearTimeout(_this.timeout);
|
|
12275
12275
|
if (!_this.container || !_this.content) {
|
|
12276
12276
|
return;
|
|
@@ -12301,7 +12301,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12301
12301
|
}, checkTimeout);
|
|
12302
12302
|
}
|
|
12303
12303
|
});
|
|
12304
|
-
_defineProperty$
|
|
12304
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "onRest", function(_ref2) {
|
|
12305
12305
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
12306
12306
|
if (!_this.container || !_this.content) {
|
|
12307
12307
|
return;
|
|
@@ -12323,7 +12323,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12323
12323
|
}
|
|
12324
12324
|
}
|
|
12325
12325
|
});
|
|
12326
|
-
_defineProperty$
|
|
12326
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "onWork", function(_ref2) {
|
|
12327
12327
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
12328
12328
|
if (!_this.container || !_this.content) {
|
|
12329
12329
|
return;
|
|
@@ -12346,10 +12346,10 @@ var __publicField = (obj, key, value) => {
|
|
|
12346
12346
|
});
|
|
12347
12347
|
}
|
|
12348
12348
|
});
|
|
12349
|
-
_defineProperty$
|
|
12349
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "onRefContainer", function(container) {
|
|
12350
12350
|
_this.container = container;
|
|
12351
12351
|
});
|
|
12352
|
-
_defineProperty$
|
|
12352
|
+
_defineProperty$8(_assertThisInitialized$5(_this), "onRefContent", function(content) {
|
|
12353
12353
|
_this.content = content;
|
|
12354
12354
|
});
|
|
12355
12355
|
if (props.initialStyle) {
|
|
@@ -12418,7 +12418,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12418
12418
|
return Collapse2;
|
|
12419
12419
|
}(_react$1["default"].Component);
|
|
12420
12420
|
Collapse$2.Collapse = Collapse$1;
|
|
12421
|
-
_defineProperty$
|
|
12421
|
+
_defineProperty$8(Collapse$1, "defaultProps", {
|
|
12422
12422
|
theme: {
|
|
12423
12423
|
collapse: "ReactCollapse--collapse",
|
|
12424
12424
|
content: "ReactCollapse--content"
|
|
@@ -12429,18 +12429,18 @@ var __publicField = (obj, key, value) => {
|
|
|
12429
12429
|
checkTimeout: 50
|
|
12430
12430
|
});
|
|
12431
12431
|
var UnmountClosed$2 = {};
|
|
12432
|
-
function _typeof$
|
|
12432
|
+
function _typeof$3(obj) {
|
|
12433
12433
|
"@babel/helpers - typeof";
|
|
12434
12434
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
12435
|
-
_typeof$
|
|
12435
|
+
_typeof$3 = function _typeof2(obj2) {
|
|
12436
12436
|
return typeof obj2;
|
|
12437
12437
|
};
|
|
12438
12438
|
} else {
|
|
12439
|
-
_typeof$
|
|
12439
|
+
_typeof$3 = function _typeof2(obj2) {
|
|
12440
12440
|
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
12441
12441
|
};
|
|
12442
12442
|
}
|
|
12443
|
-
return _typeof$
|
|
12443
|
+
return _typeof$3(obj);
|
|
12444
12444
|
}
|
|
12445
12445
|
Object.defineProperty(UnmountClosed$2, "__esModule", {
|
|
12446
12446
|
value: true
|
|
@@ -12448,12 +12448,12 @@ var __publicField = (obj, key, value) => {
|
|
|
12448
12448
|
UnmountClosed$2.UnmountClosed = void 0;
|
|
12449
12449
|
var _react = _interopRequireDefault(React__default.default);
|
|
12450
12450
|
var _Collapse = Collapse$2;
|
|
12451
|
-
var _excluded$
|
|
12451
|
+
var _excluded$4 = ["isOpened"], _excluded2 = ["isOpened"];
|
|
12452
12452
|
function _interopRequireDefault(obj) {
|
|
12453
12453
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
12454
12454
|
}
|
|
12455
|
-
function _extends$
|
|
12456
|
-
_extends$
|
|
12455
|
+
function _extends$2() {
|
|
12456
|
+
_extends$2 = Object.assign || function(target) {
|
|
12457
12457
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
12458
12458
|
var source = arguments[i2];
|
|
12459
12459
|
for (var key in source) {
|
|
@@ -12464,9 +12464,9 @@ var __publicField = (obj, key, value) => {
|
|
|
12464
12464
|
}
|
|
12465
12465
|
return target;
|
|
12466
12466
|
};
|
|
12467
|
-
return _extends$
|
|
12467
|
+
return _extends$2.apply(this, arguments);
|
|
12468
12468
|
}
|
|
12469
|
-
function ownKeys$
|
|
12469
|
+
function ownKeys$4(object2, enumerableOnly) {
|
|
12470
12470
|
var keys2 = Object.keys(object2);
|
|
12471
12471
|
if (Object.getOwnPropertySymbols) {
|
|
12472
12472
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -12483,20 +12483,20 @@ var __publicField = (obj, key, value) => {
|
|
|
12483
12483
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
12484
12484
|
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
12485
12485
|
if (i2 % 2) {
|
|
12486
|
-
ownKeys$
|
|
12487
|
-
_defineProperty$
|
|
12486
|
+
ownKeys$4(Object(source), true).forEach(function(key) {
|
|
12487
|
+
_defineProperty$7(target, key, source[key]);
|
|
12488
12488
|
});
|
|
12489
12489
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
12490
12490
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12491
12491
|
} else {
|
|
12492
|
-
ownKeys$
|
|
12492
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
12493
12493
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12494
12494
|
});
|
|
12495
12495
|
}
|
|
12496
12496
|
}
|
|
12497
12497
|
return target;
|
|
12498
12498
|
}
|
|
12499
|
-
function _objectWithoutProperties$
|
|
12499
|
+
function _objectWithoutProperties$2(source, excluded) {
|
|
12500
12500
|
if (source == null)
|
|
12501
12501
|
return {};
|
|
12502
12502
|
var target = _objectWithoutPropertiesLoose$5(source, excluded);
|
|
@@ -12556,21 +12556,21 @@ var __publicField = (obj, key, value) => {
|
|
|
12556
12556
|
}
|
|
12557
12557
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
12558
12558
|
if (superClass)
|
|
12559
|
-
_setPrototypeOf$
|
|
12559
|
+
_setPrototypeOf$3(subClass, superClass);
|
|
12560
12560
|
}
|
|
12561
|
-
function _setPrototypeOf$
|
|
12562
|
-
_setPrototypeOf$
|
|
12561
|
+
function _setPrototypeOf$3(o2, p2) {
|
|
12562
|
+
_setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12563
12563
|
o3.__proto__ = p3;
|
|
12564
12564
|
return o3;
|
|
12565
12565
|
};
|
|
12566
|
-
return _setPrototypeOf$
|
|
12566
|
+
return _setPrototypeOf$3(o2, p2);
|
|
12567
12567
|
}
|
|
12568
12568
|
function _createSuper$2(Derived) {
|
|
12569
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12569
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$3();
|
|
12570
12570
|
return function _createSuperInternal() {
|
|
12571
|
-
var Super = _getPrototypeOf$
|
|
12571
|
+
var Super = _getPrototypeOf$3(Derived), result;
|
|
12572
12572
|
if (hasNativeReflectConstruct) {
|
|
12573
|
-
var NewTarget = _getPrototypeOf$
|
|
12573
|
+
var NewTarget = _getPrototypeOf$3(this).constructor;
|
|
12574
12574
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
12575
12575
|
} else {
|
|
12576
12576
|
result = Super.apply(this, arguments);
|
|
@@ -12579,20 +12579,20 @@ var __publicField = (obj, key, value) => {
|
|
|
12579
12579
|
};
|
|
12580
12580
|
}
|
|
12581
12581
|
function _possibleConstructorReturn$2(self2, call) {
|
|
12582
|
-
if (call && (_typeof$
|
|
12582
|
+
if (call && (_typeof$3(call) === "object" || typeof call === "function")) {
|
|
12583
12583
|
return call;
|
|
12584
12584
|
} else if (call !== void 0) {
|
|
12585
12585
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
12586
12586
|
}
|
|
12587
|
-
return _assertThisInitialized$
|
|
12587
|
+
return _assertThisInitialized$4(self2);
|
|
12588
12588
|
}
|
|
12589
|
-
function _assertThisInitialized$
|
|
12589
|
+
function _assertThisInitialized$4(self2) {
|
|
12590
12590
|
if (self2 === void 0) {
|
|
12591
12591
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12592
12592
|
}
|
|
12593
12593
|
return self2;
|
|
12594
12594
|
}
|
|
12595
|
-
function _isNativeReflectConstruct$
|
|
12595
|
+
function _isNativeReflectConstruct$3() {
|
|
12596
12596
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
12597
12597
|
return false;
|
|
12598
12598
|
if (Reflect.construct.sham)
|
|
@@ -12607,13 +12607,13 @@ var __publicField = (obj, key, value) => {
|
|
|
12607
12607
|
return false;
|
|
12608
12608
|
}
|
|
12609
12609
|
}
|
|
12610
|
-
function _getPrototypeOf$
|
|
12611
|
-
_getPrototypeOf$
|
|
12610
|
+
function _getPrototypeOf$3(o2) {
|
|
12611
|
+
_getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12612
12612
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12613
12613
|
};
|
|
12614
|
-
return _getPrototypeOf$
|
|
12614
|
+
return _getPrototypeOf$3(o2);
|
|
12615
12615
|
}
|
|
12616
|
-
function _defineProperty$
|
|
12616
|
+
function _defineProperty$7(obj, key, value) {
|
|
12617
12617
|
if (key in obj) {
|
|
12618
12618
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12619
12619
|
} else {
|
|
@@ -12628,8 +12628,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12628
12628
|
var _this;
|
|
12629
12629
|
_classCallCheck$3(this, UnmountClosed2);
|
|
12630
12630
|
_this = _super.call(this, props);
|
|
12631
|
-
_defineProperty$
|
|
12632
|
-
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$
|
|
12631
|
+
_defineProperty$7(_assertThisInitialized$4(_this), "onWork", function(_ref2) {
|
|
12632
|
+
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$2(_ref2, _excluded$4);
|
|
12633
12633
|
_this.setState({
|
|
12634
12634
|
isResting: false,
|
|
12635
12635
|
isOpened
|
|
@@ -12641,8 +12641,8 @@ var __publicField = (obj, key, value) => {
|
|
|
12641
12641
|
}, rest));
|
|
12642
12642
|
}
|
|
12643
12643
|
});
|
|
12644
|
-
_defineProperty$
|
|
12645
|
-
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$
|
|
12644
|
+
_defineProperty$7(_assertThisInitialized$4(_this), "onRest", function(_ref2) {
|
|
12645
|
+
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$2(_ref2, _excluded2);
|
|
12646
12646
|
_this.setState({
|
|
12647
12647
|
isResting: true,
|
|
12648
12648
|
isOpened,
|
|
@@ -12655,7 +12655,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12655
12655
|
}, rest));
|
|
12656
12656
|
}
|
|
12657
12657
|
});
|
|
12658
|
-
_defineProperty$
|
|
12658
|
+
_defineProperty$7(_assertThisInitialized$4(_this), "getInitialStyle", function() {
|
|
12659
12659
|
var _this$state = _this.state, isOpened = _this$state.isOpened, isInitialRender = _this$state.isInitialRender;
|
|
12660
12660
|
if (isInitialRender) {
|
|
12661
12661
|
return isOpened ? {
|
|
@@ -12694,7 +12694,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12694
12694
|
key: "render",
|
|
12695
12695
|
value: function render2() {
|
|
12696
12696
|
var _this$state2 = this.state, isResting = _this$state2.isResting, isOpened = _this$state2.isOpened;
|
|
12697
|
-
return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$
|
|
12697
|
+
return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$2({}, this.props, {
|
|
12698
12698
|
initialStyle: this.getInitialStyle(),
|
|
12699
12699
|
onWork: this.onWork,
|
|
12700
12700
|
onRest: this.onRest
|
|
@@ -12704,7 +12704,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12704
12704
|
return UnmountClosed2;
|
|
12705
12705
|
}(_react["default"].PureComponent);
|
|
12706
12706
|
UnmountClosed$2.UnmountClosed = UnmountClosed$1;
|
|
12707
|
-
_defineProperty$
|
|
12707
|
+
_defineProperty$7(UnmountClosed$1, "defaultProps", {
|
|
12708
12708
|
onWork: void 0,
|
|
12709
12709
|
onRest: void 0
|
|
12710
12710
|
});
|
|
@@ -12816,7 +12816,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12816
12816
|
iconName: "circle-xmark",
|
|
12817
12817
|
icon: [512, 512, [61532, "times-circle", "xmark-circle"], "f057", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]
|
|
12818
12818
|
};
|
|
12819
|
-
function ownKeys$
|
|
12819
|
+
function ownKeys$3(object2, enumerableOnly) {
|
|
12820
12820
|
var keys2 = Object.keys(object2);
|
|
12821
12821
|
if (Object.getOwnPropertySymbols) {
|
|
12822
12822
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -12826,24 +12826,24 @@ var __publicField = (obj, key, value) => {
|
|
|
12826
12826
|
}
|
|
12827
12827
|
return keys2;
|
|
12828
12828
|
}
|
|
12829
|
-
function _objectSpread2$
|
|
12829
|
+
function _objectSpread2$2(target) {
|
|
12830
12830
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
12831
12831
|
var source = null != arguments[i2] ? arguments[i2] : {};
|
|
12832
|
-
i2 % 2 ? ownKeys$
|
|
12833
|
-
_defineProperty$
|
|
12834
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
12832
|
+
i2 % 2 ? ownKeys$3(Object(source), true).forEach(function(key) {
|
|
12833
|
+
_defineProperty$6(target, key, source[key]);
|
|
12834
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function(key) {
|
|
12835
12835
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12836
12836
|
});
|
|
12837
12837
|
}
|
|
12838
12838
|
return target;
|
|
12839
12839
|
}
|
|
12840
|
-
function _typeof$
|
|
12840
|
+
function _typeof$2(obj) {
|
|
12841
12841
|
"@babel/helpers - typeof";
|
|
12842
|
-
return _typeof$
|
|
12842
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
12843
12843
|
return typeof obj2;
|
|
12844
12844
|
} : function(obj2) {
|
|
12845
12845
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
12846
|
-
}, _typeof$
|
|
12846
|
+
}, _typeof$2(obj);
|
|
12847
12847
|
}
|
|
12848
12848
|
function _classCallCheck$2(instance, Constructor) {
|
|
12849
12849
|
if (!(instance instanceof Constructor)) {
|
|
@@ -12870,7 +12870,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12870
12870
|
});
|
|
12871
12871
|
return Constructor;
|
|
12872
12872
|
}
|
|
12873
|
-
function _defineProperty$
|
|
12873
|
+
function _defineProperty$6(obj, key, value) {
|
|
12874
12874
|
if (key in obj) {
|
|
12875
12875
|
Object.defineProperty(obj, key, {
|
|
12876
12876
|
value,
|
|
@@ -12884,20 +12884,20 @@ var __publicField = (obj, key, value) => {
|
|
|
12884
12884
|
return obj;
|
|
12885
12885
|
}
|
|
12886
12886
|
function _slicedToArray$3(arr, i2) {
|
|
12887
|
-
return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i2) || _unsupportedIterableToArray$
|
|
12887
|
+
return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i2) || _unsupportedIterableToArray$3(arr, i2) || _nonIterableRest$3();
|
|
12888
12888
|
}
|
|
12889
|
-
function _toConsumableArray$
|
|
12890
|
-
return _arrayWithoutHoles$
|
|
12889
|
+
function _toConsumableArray$3(arr) {
|
|
12890
|
+
return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$3();
|
|
12891
12891
|
}
|
|
12892
|
-
function _arrayWithoutHoles$
|
|
12892
|
+
function _arrayWithoutHoles$3(arr) {
|
|
12893
12893
|
if (Array.isArray(arr))
|
|
12894
|
-
return _arrayLikeToArray$
|
|
12894
|
+
return _arrayLikeToArray$3(arr);
|
|
12895
12895
|
}
|
|
12896
12896
|
function _arrayWithHoles$3(arr) {
|
|
12897
12897
|
if (Array.isArray(arr))
|
|
12898
12898
|
return arr;
|
|
12899
12899
|
}
|
|
12900
|
-
function _iterableToArray$
|
|
12900
|
+
function _iterableToArray$3(iter) {
|
|
12901
12901
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
12902
12902
|
return Array.from(iter);
|
|
12903
12903
|
}
|
|
@@ -12929,27 +12929,27 @@ var __publicField = (obj, key, value) => {
|
|
|
12929
12929
|
}
|
|
12930
12930
|
return _arr;
|
|
12931
12931
|
}
|
|
12932
|
-
function _unsupportedIterableToArray$
|
|
12932
|
+
function _unsupportedIterableToArray$3(o2, minLen) {
|
|
12933
12933
|
if (!o2)
|
|
12934
12934
|
return;
|
|
12935
12935
|
if (typeof o2 === "string")
|
|
12936
|
-
return _arrayLikeToArray$
|
|
12936
|
+
return _arrayLikeToArray$3(o2, minLen);
|
|
12937
12937
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
12938
12938
|
if (n2 === "Object" && o2.constructor)
|
|
12939
12939
|
n2 = o2.constructor.name;
|
|
12940
12940
|
if (n2 === "Map" || n2 === "Set")
|
|
12941
12941
|
return Array.from(o2);
|
|
12942
12942
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
12943
|
-
return _arrayLikeToArray$
|
|
12943
|
+
return _arrayLikeToArray$3(o2, minLen);
|
|
12944
12944
|
}
|
|
12945
|
-
function _arrayLikeToArray$
|
|
12945
|
+
function _arrayLikeToArray$3(arr, len) {
|
|
12946
12946
|
if (len == null || len > arr.length)
|
|
12947
12947
|
len = arr.length;
|
|
12948
12948
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
12949
12949
|
arr2[i2] = arr[i2];
|
|
12950
12950
|
return arr2;
|
|
12951
12951
|
}
|
|
12952
|
-
function _nonIterableSpread$
|
|
12952
|
+
function _nonIterableSpread$3() {
|
|
12953
12953
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12954
12954
|
}
|
|
12955
12955
|
function _nonIterableRest$3() {
|
|
@@ -12996,7 +12996,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12996
12996
|
var HTML_CLASS_I2SVG_BASE_CLASS = "fontawesome-i2svg";
|
|
12997
12997
|
var MUTATION_APPROACH_ASYNC = "async";
|
|
12998
12998
|
var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ["HTML", "HEAD", "STYLE", "SCRIPT"];
|
|
12999
|
-
var PRODUCTION$
|
|
12999
|
+
var PRODUCTION$1 = function() {
|
|
13000
13000
|
try {
|
|
13001
13001
|
return true;
|
|
13002
13002
|
} catch (e3) {
|
|
@@ -13013,7 +13013,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13013
13013
|
}
|
|
13014
13014
|
});
|
|
13015
13015
|
}
|
|
13016
|
-
var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty$
|
|
13016
|
+
var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty$6(_familyProxy, FAMILY_CLASSIC, {
|
|
13017
13017
|
"fa": "solid",
|
|
13018
13018
|
"fas": "solid",
|
|
13019
13019
|
"fa-solid": "solid",
|
|
@@ -13029,7 +13029,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13029
13029
|
"fa-brands": "brands",
|
|
13030
13030
|
"fak": "kit",
|
|
13031
13031
|
"fa-kit": "kit"
|
|
13032
|
-
}), _defineProperty$
|
|
13032
|
+
}), _defineProperty$6(_familyProxy, FAMILY_SHARP, {
|
|
13033
13033
|
"fa": "solid",
|
|
13034
13034
|
"fass": "solid",
|
|
13035
13035
|
"fa-solid": "solid",
|
|
@@ -13038,7 +13038,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13038
13038
|
"fasl": "light",
|
|
13039
13039
|
"fa-light": "light"
|
|
13040
13040
|
}), _familyProxy));
|
|
13041
|
-
var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty$
|
|
13041
|
+
var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty$6(_familyProxy2, FAMILY_CLASSIC, {
|
|
13042
13042
|
"solid": "fas",
|
|
13043
13043
|
"regular": "far",
|
|
13044
13044
|
"light": "fal",
|
|
@@ -13046,12 +13046,12 @@ var __publicField = (obj, key, value) => {
|
|
|
13046
13046
|
"duotone": "fad",
|
|
13047
13047
|
"brands": "fab",
|
|
13048
13048
|
"kit": "fak"
|
|
13049
|
-
}), _defineProperty$
|
|
13049
|
+
}), _defineProperty$6(_familyProxy2, FAMILY_SHARP, {
|
|
13050
13050
|
"solid": "fass",
|
|
13051
13051
|
"regular": "fasr",
|
|
13052
13052
|
"light": "fasl"
|
|
13053
13053
|
}), _familyProxy2));
|
|
13054
|
-
var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty$
|
|
13054
|
+
var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty$6(_familyProxy3, FAMILY_CLASSIC, {
|
|
13055
13055
|
"fab": "fa-brands",
|
|
13056
13056
|
"fad": "fa-duotone",
|
|
13057
13057
|
"fak": "fa-kit",
|
|
@@ -13059,12 +13059,12 @@ var __publicField = (obj, key, value) => {
|
|
|
13059
13059
|
"far": "fa-regular",
|
|
13060
13060
|
"fas": "fa-solid",
|
|
13061
13061
|
"fat": "fa-thin"
|
|
13062
|
-
}), _defineProperty$
|
|
13062
|
+
}), _defineProperty$6(_familyProxy3, FAMILY_SHARP, {
|
|
13063
13063
|
"fass": "fa-solid",
|
|
13064
13064
|
"fasr": "fa-regular",
|
|
13065
13065
|
"fasl": "fa-light"
|
|
13066
13066
|
}), _familyProxy3));
|
|
13067
|
-
var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty$
|
|
13067
|
+
var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty$6(_familyProxy4, FAMILY_CLASSIC, {
|
|
13068
13068
|
"fa-brands": "fab",
|
|
13069
13069
|
"fa-duotone": "fad",
|
|
13070
13070
|
"fa-kit": "fak",
|
|
@@ -13072,7 +13072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13072
13072
|
"fa-regular": "far",
|
|
13073
13073
|
"fa-solid": "fas",
|
|
13074
13074
|
"fa-thin": "fat"
|
|
13075
|
-
}), _defineProperty$
|
|
13075
|
+
}), _defineProperty$6(_familyProxy4, FAMILY_SHARP, {
|
|
13076
13076
|
"fa-solid": "fass",
|
|
13077
13077
|
"fa-regular": "fasr",
|
|
13078
13078
|
"fa-light": "fasl"
|
|
@@ -13080,13 +13080,13 @@ var __publicField = (obj, key, value) => {
|
|
|
13080
13080
|
var ICON_SELECTION_SYNTAX_PATTERN = /fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/;
|
|
13081
13081
|
var LAYERS_TEXT_CLASSNAME = "fa-layers-text";
|
|
13082
13082
|
var FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i;
|
|
13083
|
-
var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty$
|
|
13083
|
+
var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty$6(_familyProxy5, FAMILY_CLASSIC, {
|
|
13084
13084
|
"900": "fas",
|
|
13085
13085
|
"400": "far",
|
|
13086
13086
|
"normal": "far",
|
|
13087
13087
|
"300": "fal",
|
|
13088
13088
|
"100": "fat"
|
|
13089
|
-
}), _defineProperty$
|
|
13089
|
+
}), _defineProperty$6(_familyProxy5, FAMILY_SHARP, {
|
|
13090
13090
|
"900": "fass",
|
|
13091
13091
|
"400": "fasr",
|
|
13092
13092
|
"300": "fasl"
|
|
@@ -13103,7 +13103,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13103
13103
|
var prefixes = /* @__PURE__ */ new Set();
|
|
13104
13104
|
Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
|
|
13105
13105
|
Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
|
|
13106
|
-
var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray$
|
|
13106
|
+
var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray$3(prefixes), ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function(n2) {
|
|
13107
13107
|
return "".concat(n2, "x");
|
|
13108
13108
|
})).concat(oneToTwenty.map(function(n2) {
|
|
13109
13109
|
return "w-".concat(n2);
|
|
@@ -13152,7 +13152,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13152
13152
|
if (initial.familyPrefix) {
|
|
13153
13153
|
initial.cssPrefix = initial.familyPrefix;
|
|
13154
13154
|
}
|
|
13155
|
-
var _config = _objectSpread2$
|
|
13155
|
+
var _config = _objectSpread2$2(_objectSpread2$2({}, _default$1), initial);
|
|
13156
13156
|
if (!_config.autoReplaceSvg)
|
|
13157
13157
|
_config.observeMutations = false;
|
|
13158
13158
|
var config$2 = {};
|
|
@@ -13456,7 +13456,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13456
13456
|
if (typeof namespace.hooks.addPack === "function" && !skipHooks) {
|
|
13457
13457
|
namespace.hooks.addPack(prefix2, normalizeIcons(icons));
|
|
13458
13458
|
} else {
|
|
13459
|
-
namespace.styles[prefix2] = _objectSpread2$
|
|
13459
|
+
namespace.styles[prefix2] = _objectSpread2$2(_objectSpread2$2({}, namespace.styles[prefix2] || {}), normalized);
|
|
13460
13460
|
}
|
|
13461
13461
|
if (prefix2 === "fas") {
|
|
13462
13462
|
defineIcons("fa", icons);
|
|
@@ -13464,14 +13464,14 @@ var __publicField = (obj, key, value) => {
|
|
|
13464
13464
|
}
|
|
13465
13465
|
var _LONG_STYLE, _PREFIXES, _PREFIXES_FOR_FAMILY;
|
|
13466
13466
|
var styles = namespace.styles, shims = namespace.shims;
|
|
13467
|
-
var LONG_STYLE = (_LONG_STYLE = {}, _defineProperty$
|
|
13467
|
+
var LONG_STYLE = (_LONG_STYLE = {}, _defineProperty$6(_LONG_STYLE, FAMILY_CLASSIC, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$6(_LONG_STYLE, FAMILY_SHARP, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _LONG_STYLE);
|
|
13468
13468
|
var _defaultUsablePrefix = null;
|
|
13469
13469
|
var _byUnicode = {};
|
|
13470
13470
|
var _byLigature = {};
|
|
13471
13471
|
var _byOldName = {};
|
|
13472
13472
|
var _byOldUnicode = {};
|
|
13473
13473
|
var _byAlias = {};
|
|
13474
|
-
var PREFIXES = (_PREFIXES = {}, _defineProperty$
|
|
13474
|
+
var PREFIXES = (_PREFIXES = {}, _defineProperty$6(_PREFIXES, FAMILY_CLASSIC, Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC])), _defineProperty$6(_PREFIXES, FAMILY_SHARP, Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP])), _PREFIXES);
|
|
13475
13475
|
function isReserved(name) {
|
|
13476
13476
|
return ~RESERVED_CLASSES.indexOf(name);
|
|
13477
13477
|
}
|
|
@@ -13607,12 +13607,12 @@ var __publicField = (obj, key, value) => {
|
|
|
13607
13607
|
var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
|
|
13608
13608
|
return prefix2 || defined || null;
|
|
13609
13609
|
}
|
|
13610
|
-
var PREFIXES_FOR_FAMILY = (_PREFIXES_FOR_FAMILY = {}, _defineProperty$
|
|
13610
|
+
var PREFIXES_FOR_FAMILY = (_PREFIXES_FOR_FAMILY = {}, _defineProperty$6(_PREFIXES_FOR_FAMILY, FAMILY_CLASSIC, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$6(_PREFIXES_FOR_FAMILY, FAMILY_SHARP, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _PREFIXES_FOR_FAMILY);
|
|
13611
13611
|
function getCanonicalIcon(values) {
|
|
13612
13612
|
var _famProps;
|
|
13613
13613
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13614
13614
|
var _params$skipLookups = params.skipLookups, skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
|
|
13615
|
-
var famProps = (_famProps = {}, _defineProperty$
|
|
13615
|
+
var famProps = (_famProps = {}, _defineProperty$6(_famProps, FAMILY_CLASSIC, "".concat(config$2.cssPrefix, "-").concat(FAMILY_CLASSIC)), _defineProperty$6(_famProps, FAMILY_SHARP, "".concat(config$2.cssPrefix, "-").concat(FAMILY_SHARP)), _famProps);
|
|
13616
13616
|
var givenPrefix = null;
|
|
13617
13617
|
var family = FAMILY_CLASSIC;
|
|
13618
13618
|
if (values.includes(famProps[FAMILY_CLASSIC]) || values.some(function(v2) {
|
|
@@ -13684,7 +13684,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13684
13684
|
}
|
|
13685
13685
|
var additions = definitions.reduce(this._pullDefinitions, {});
|
|
13686
13686
|
Object.keys(additions).forEach(function(key) {
|
|
13687
|
-
_this.definitions[key] = _objectSpread2$
|
|
13687
|
+
_this.definitions[key] = _objectSpread2$2(_objectSpread2$2({}, _this.definitions[key] || {}), additions[key]);
|
|
13688
13688
|
defineIcons(key, additions[key]);
|
|
13689
13689
|
var longPrefix = PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC][key];
|
|
13690
13690
|
if (longPrefix)
|
|
@@ -13741,7 +13741,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13741
13741
|
if (typeof mixout[tk] === "function") {
|
|
13742
13742
|
obj[tk] = mixout[tk];
|
|
13743
13743
|
}
|
|
13744
|
-
if (_typeof$
|
|
13744
|
+
if (_typeof$2(mixout[tk]) === "object") {
|
|
13745
13745
|
Object.keys(mixout[tk]).forEach(function(sk) {
|
|
13746
13746
|
if (!obj[tk]) {
|
|
13747
13747
|
obj[tk] = {};
|
|
@@ -13838,7 +13838,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13838
13838
|
if (_icon === null) {
|
|
13839
13839
|
return null;
|
|
13840
13840
|
}
|
|
13841
|
-
if (_typeof$
|
|
13841
|
+
if (_typeof$2(_icon) === "object" && _icon.prefix && _icon.iconName) {
|
|
13842
13842
|
return {
|
|
13843
13843
|
prefix: _icon.prefix,
|
|
13844
13844
|
iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
|
|
@@ -13917,7 +13917,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13917
13917
|
x: width / height / 2,
|
|
13918
13918
|
y: 0.5
|
|
13919
13919
|
};
|
|
13920
|
-
attributes["style"] = joinStyles(_objectSpread2$
|
|
13920
|
+
attributes["style"] = joinStyles(_objectSpread2$2(_objectSpread2$2({}, styles2), {}, {
|
|
13921
13921
|
"transform-origin": "".concat(offset2.x + transform.x / 16, "em ").concat(offset2.y + transform.y / 16, "em")
|
|
13922
13922
|
}));
|
|
13923
13923
|
}
|
|
@@ -13937,7 +13937,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13937
13937
|
},
|
|
13938
13938
|
children: [{
|
|
13939
13939
|
tag: "symbol",
|
|
13940
|
-
attributes: _objectSpread2$
|
|
13940
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, attributes), {}, {
|
|
13941
13941
|
id
|
|
13942
13942
|
}),
|
|
13943
13943
|
children
|
|
@@ -13955,7 +13955,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13955
13955
|
}).concat(extra.classes).join(" ");
|
|
13956
13956
|
var content = {
|
|
13957
13957
|
children: [],
|
|
13958
|
-
attributes: _objectSpread2$
|
|
13958
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, extra.attributes), {}, {
|
|
13959
13959
|
"data-prefix": prefix2,
|
|
13960
13960
|
"data-icon": iconName,
|
|
13961
13961
|
"class": attrClass,
|
|
@@ -13980,7 +13980,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13980
13980
|
});
|
|
13981
13981
|
delete content.attributes.title;
|
|
13982
13982
|
}
|
|
13983
|
-
var args = _objectSpread2$
|
|
13983
|
+
var args = _objectSpread2$2(_objectSpread2$2({}, content), {}, {
|
|
13984
13984
|
prefix: prefix2,
|
|
13985
13985
|
iconName,
|
|
13986
13986
|
main: main2,
|
|
@@ -13988,7 +13988,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13988
13988
|
maskId,
|
|
13989
13989
|
transform,
|
|
13990
13990
|
symbol,
|
|
13991
|
-
styles: _objectSpread2$
|
|
13991
|
+
styles: _objectSpread2$2(_objectSpread2$2({}, uploadedIconWidthStyle), extra.styles)
|
|
13992
13992
|
});
|
|
13993
13993
|
var _ref22 = mask.found && main2.found ? callProvided("generateAbstractMask", args) || {
|
|
13994
13994
|
children: [],
|
|
@@ -14007,7 +14007,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14007
14007
|
}
|
|
14008
14008
|
function makeLayersTextAbstract(params) {
|
|
14009
14009
|
var content = params.content, width = params.width, height = params.height, transform = params.transform, title = params.title, extra = params.extra, _params$watchable2 = params.watchable, watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
|
|
14010
|
-
var attributes = _objectSpread2$
|
|
14010
|
+
var attributes = _objectSpread2$2(_objectSpread2$2(_objectSpread2$2({}, extra.attributes), title ? {
|
|
14011
14011
|
"title": title
|
|
14012
14012
|
} : {}), {}, {
|
|
14013
14013
|
"class": extra.classes.join(" ")
|
|
@@ -14015,7 +14015,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14015
14015
|
if (watchable) {
|
|
14016
14016
|
attributes[DATA_FA_I2SVG] = "";
|
|
14017
14017
|
}
|
|
14018
|
-
var styles2 = _objectSpread2$
|
|
14018
|
+
var styles2 = _objectSpread2$2({}, extra.styles);
|
|
14019
14019
|
if (transformIsMeaningful(transform)) {
|
|
14020
14020
|
styles2["transform"] = transformForCss({
|
|
14021
14021
|
transform,
|
|
@@ -14048,7 +14048,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14048
14048
|
}
|
|
14049
14049
|
function makeLayersCounterAbstract(params) {
|
|
14050
14050
|
var content = params.content, title = params.title, extra = params.extra;
|
|
14051
|
-
var attributes = _objectSpread2$
|
|
14051
|
+
var attributes = _objectSpread2$2(_objectSpread2$2(_objectSpread2$2({}, extra.attributes), title ? {
|
|
14052
14052
|
"title": title
|
|
14053
14053
|
} : {}), {}, {
|
|
14054
14054
|
"class": extra.classes.join(" ")
|
|
@@ -14124,7 +14124,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14124
14124
|
height: 512
|
|
14125
14125
|
};
|
|
14126
14126
|
function maybeNotifyMissing(iconName, prefix2) {
|
|
14127
|
-
if (!PRODUCTION$
|
|
14127
|
+
if (!PRODUCTION$1 && !config$2.showMissingIcons && iconName) {
|
|
14128
14128
|
console.error('Icon with name "'.concat(iconName, '" and prefix "').concat(prefix2, '" is missing.'));
|
|
14129
14129
|
}
|
|
14130
14130
|
}
|
|
@@ -14150,7 +14150,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14150
14150
|
return resolve(asFoundIcon(icon2));
|
|
14151
14151
|
}
|
|
14152
14152
|
maybeNotifyMissing(iconName, prefix2);
|
|
14153
|
-
resolve(_objectSpread2$
|
|
14153
|
+
resolve(_objectSpread2$2(_objectSpread2$2({}, missingIconResolutionMixin), {}, {
|
|
14154
14154
|
icon: config$2.showMissingIcons && iconName ? callProvided("missingIconAbstract") || {} : {}
|
|
14155
14155
|
}));
|
|
14156
14156
|
});
|
|
@@ -14161,7 +14161,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14161
14161
|
mark: noop$1$1,
|
|
14162
14162
|
measure: noop$1$1
|
|
14163
14163
|
};
|
|
14164
|
-
var preamble = 'FA "6.4.
|
|
14164
|
+
var preamble = 'FA "6.4.2"';
|
|
14165
14165
|
var begin = function begin2(name) {
|
|
14166
14166
|
p$1.mark("".concat(preamble, " ").concat(name, " begins"));
|
|
14167
14167
|
return function() {
|
|
@@ -14439,7 +14439,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14439
14439
|
var extraAttributes = attributesParser(node);
|
|
14440
14440
|
var pluginMeta = chainHooks("parseNodeAttributes", {}, node);
|
|
14441
14441
|
var extraStyles = parser.styleParser ? styleParser(node) : [];
|
|
14442
|
-
return _objectSpread2$
|
|
14442
|
+
return _objectSpread2$2({
|
|
14443
14443
|
iconName,
|
|
14444
14444
|
title: node.getAttribute("title"),
|
|
14445
14445
|
titleId: node.getAttribute("data-fa-title-id"),
|
|
@@ -14476,7 +14476,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14476
14476
|
});
|
|
14477
14477
|
Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC]).map(knownPrefixes.add.bind(knownPrefixes));
|
|
14478
14478
|
Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP]).map(knownPrefixes.add.bind(knownPrefixes));
|
|
14479
|
-
knownPrefixes = _toConsumableArray$
|
|
14479
|
+
knownPrefixes = _toConsumableArray$3(knownPrefixes);
|
|
14480
14480
|
function onTree(root2) {
|
|
14481
14481
|
var callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
14482
14482
|
if (!IS_DOM)
|
|
@@ -14519,7 +14519,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14519
14519
|
acc.push(mutation);
|
|
14520
14520
|
}
|
|
14521
14521
|
} catch (e3) {
|
|
14522
|
-
if (!PRODUCTION$
|
|
14522
|
+
if (!PRODUCTION$1) {
|
|
14523
14523
|
if (e3.name === "MissingIcon") {
|
|
14524
14524
|
console.error(e3);
|
|
14525
14525
|
}
|
|
@@ -14560,7 +14560,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14560
14560
|
if (mask) {
|
|
14561
14561
|
mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
|
|
14562
14562
|
}
|
|
14563
|
-
return next(iconDefinition, _objectSpread2$
|
|
14563
|
+
return next(iconDefinition, _objectSpread2$2(_objectSpread2$2({}, params), {}, {
|
|
14564
14564
|
mask
|
|
14565
14565
|
}));
|
|
14566
14566
|
};
|
|
@@ -14571,7 +14571,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14571
14571
|
if (!iconDefinition)
|
|
14572
14572
|
return;
|
|
14573
14573
|
var prefix2 = iconDefinition.prefix, iconName = iconDefinition.iconName, icon2 = iconDefinition.icon;
|
|
14574
|
-
return domVariants(_objectSpread2$
|
|
14574
|
+
return domVariants(_objectSpread2$2({
|
|
14575
14575
|
type: "icon"
|
|
14576
14576
|
}, iconDefinition), function() {
|
|
14577
14577
|
callHooks("beforeDOMElementCreation", {
|
|
@@ -14598,7 +14598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14598
14598
|
},
|
|
14599
14599
|
prefix: prefix2,
|
|
14600
14600
|
iconName,
|
|
14601
|
-
transform: _objectSpread2$
|
|
14601
|
+
transform: _objectSpread2$2(_objectSpread2$2({}, meaninglessTransform), transform),
|
|
14602
14602
|
symbol,
|
|
14603
14603
|
title,
|
|
14604
14604
|
maskId,
|
|
@@ -14705,7 +14705,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14705
14705
|
return [{
|
|
14706
14706
|
tag: "span",
|
|
14707
14707
|
attributes: {
|
|
14708
|
-
class: ["".concat(config$2.cssPrefix, "-layers")].concat(_toConsumableArray$
|
|
14708
|
+
class: ["".concat(config$2.cssPrefix, "-layers")].concat(_toConsumableArray$3(classes)).join(" ")
|
|
14709
14709
|
},
|
|
14710
14710
|
children
|
|
14711
14711
|
}];
|
|
@@ -14734,7 +14734,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14734
14734
|
extra: {
|
|
14735
14735
|
attributes,
|
|
14736
14736
|
styles: styles2,
|
|
14737
|
-
classes: ["".concat(config$2.cssPrefix, "-layers-counter")].concat(_toConsumableArray$
|
|
14737
|
+
classes: ["".concat(config$2.cssPrefix, "-layers-counter")].concat(_toConsumableArray$3(classes))
|
|
14738
14738
|
}
|
|
14739
14739
|
});
|
|
14740
14740
|
});
|
|
@@ -14758,12 +14758,12 @@ var __publicField = (obj, key, value) => {
|
|
|
14758
14758
|
});
|
|
14759
14759
|
return makeLayersTextAbstract({
|
|
14760
14760
|
content,
|
|
14761
|
-
transform: _objectSpread2$
|
|
14761
|
+
transform: _objectSpread2$2(_objectSpread2$2({}, meaninglessTransform), transform),
|
|
14762
14762
|
title,
|
|
14763
14763
|
extra: {
|
|
14764
14764
|
attributes,
|
|
14765
14765
|
styles: styles2,
|
|
14766
|
-
classes: ["".concat(config$2.cssPrefix, "-layers-text")].concat(_toConsumableArray$
|
|
14766
|
+
classes: ["".concat(config$2.cssPrefix, "-layers-text")].concat(_toConsumableArray$3(classes))
|
|
14767
14767
|
}
|
|
14768
14768
|
});
|
|
14769
14769
|
});
|
|
@@ -14849,7 +14849,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14849
14849
|
var extra = meta.extra;
|
|
14850
14850
|
extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
|
|
14851
14851
|
findIcon(iconName, prefix2).then(function(main2) {
|
|
14852
|
-
var _abstract = makeInlineSvgAbstract(_objectSpread2$
|
|
14852
|
+
var _abstract = makeInlineSvgAbstract(_objectSpread2$2(_objectSpread2$2({}, meta), {}, {
|
|
14853
14853
|
icons: {
|
|
14854
14854
|
main: main2,
|
|
14855
14855
|
mask: emptyCanonicalIcon()
|
|
@@ -14859,7 +14859,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14859
14859
|
extra,
|
|
14860
14860
|
watchable: true
|
|
14861
14861
|
}));
|
|
14862
|
-
var element = DOCUMENT.
|
|
14862
|
+
var element = DOCUMENT.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
14863
14863
|
if (position === "::before") {
|
|
14864
14864
|
node.insertBefore(element, node.firstChild);
|
|
14865
14865
|
} else {
|
|
@@ -15048,14 +15048,14 @@ var __publicField = (obj, key, value) => {
|
|
|
15048
15048
|
};
|
|
15049
15049
|
return {
|
|
15050
15050
|
tag: "g",
|
|
15051
|
-
attributes: _objectSpread2$
|
|
15051
|
+
attributes: _objectSpread2$2({}, operations.outer),
|
|
15052
15052
|
children: [{
|
|
15053
15053
|
tag: "g",
|
|
15054
|
-
attributes: _objectSpread2$
|
|
15054
|
+
attributes: _objectSpread2$2({}, operations.inner),
|
|
15055
15055
|
children: [{
|
|
15056
15056
|
tag: main2.icon.tag,
|
|
15057
15057
|
children: main2.icon.children,
|
|
15058
|
-
attributes: _objectSpread2$
|
|
15058
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, main2.icon.attributes), operations.path)
|
|
15059
15059
|
}]
|
|
15060
15060
|
}]
|
|
15061
15061
|
};
|
|
@@ -15111,7 +15111,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15111
15111
|
});
|
|
15112
15112
|
var maskRect = {
|
|
15113
15113
|
tag: "rect",
|
|
15114
|
-
attributes: _objectSpread2$
|
|
15114
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, ALL_SPACE), {}, {
|
|
15115
15115
|
fill: "white"
|
|
15116
15116
|
})
|
|
15117
15117
|
};
|
|
@@ -15120,22 +15120,22 @@ var __publicField = (obj, key, value) => {
|
|
|
15120
15120
|
} : {};
|
|
15121
15121
|
var maskInnerGroup = {
|
|
15122
15122
|
tag: "g",
|
|
15123
|
-
attributes: _objectSpread2$
|
|
15124
|
-
children: [fillBlack(_objectSpread2$
|
|
15123
|
+
attributes: _objectSpread2$2({}, trans.inner),
|
|
15124
|
+
children: [fillBlack(_objectSpread2$2({
|
|
15125
15125
|
tag: mainPath.tag,
|
|
15126
|
-
attributes: _objectSpread2$
|
|
15126
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, mainPath.attributes), trans.path)
|
|
15127
15127
|
}, maskInnerGroupChildrenMixin))]
|
|
15128
15128
|
};
|
|
15129
15129
|
var maskOuterGroup = {
|
|
15130
15130
|
tag: "g",
|
|
15131
|
-
attributes: _objectSpread2$
|
|
15131
|
+
attributes: _objectSpread2$2({}, trans.outer),
|
|
15132
15132
|
children: [maskInnerGroup]
|
|
15133
15133
|
};
|
|
15134
15134
|
var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
|
|
15135
15135
|
var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
|
|
15136
15136
|
var maskTag = {
|
|
15137
15137
|
tag: "mask",
|
|
15138
|
-
attributes: _objectSpread2$
|
|
15138
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, ALL_SPACE), {}, {
|
|
15139
15139
|
id: maskId,
|
|
15140
15140
|
maskUnits: "userSpaceOnUse",
|
|
15141
15141
|
maskContentUnits: "userSpaceOnUse"
|
|
@@ -15154,7 +15154,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15154
15154
|
};
|
|
15155
15155
|
children.push(defs, {
|
|
15156
15156
|
tag: "rect",
|
|
15157
|
-
attributes: _objectSpread2$
|
|
15157
|
+
attributes: _objectSpread2$2({
|
|
15158
15158
|
fill: "currentColor",
|
|
15159
15159
|
"clip-path": "url(#".concat(clipId, ")"),
|
|
15160
15160
|
mask: "url(#".concat(maskId, ")")
|
|
@@ -15185,16 +15185,16 @@ var __publicField = (obj, key, value) => {
|
|
|
15185
15185
|
};
|
|
15186
15186
|
gChildren.push({
|
|
15187
15187
|
tag: "path",
|
|
15188
|
-
attributes: _objectSpread2$
|
|
15188
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, FILL), {}, {
|
|
15189
15189
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
|
15190
15190
|
})
|
|
15191
15191
|
});
|
|
15192
|
-
var OPACITY_ANIMATE = _objectSpread2$
|
|
15192
|
+
var OPACITY_ANIMATE = _objectSpread2$2(_objectSpread2$2({}, ANIMATION_BASE), {}, {
|
|
15193
15193
|
attributeName: "opacity"
|
|
15194
15194
|
});
|
|
15195
15195
|
var dot = {
|
|
15196
15196
|
tag: "circle",
|
|
15197
|
-
attributes: _objectSpread2$
|
|
15197
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, FILL), {}, {
|
|
15198
15198
|
cx: "256",
|
|
15199
15199
|
cy: "364",
|
|
15200
15200
|
r: "28"
|
|
@@ -15204,13 +15204,13 @@ var __publicField = (obj, key, value) => {
|
|
|
15204
15204
|
if (!reduceMotion) {
|
|
15205
15205
|
dot.children.push({
|
|
15206
15206
|
tag: "animate",
|
|
15207
|
-
attributes: _objectSpread2$
|
|
15207
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, ANIMATION_BASE), {}, {
|
|
15208
15208
|
attributeName: "r",
|
|
15209
15209
|
values: "28;14;28;28;14;28;"
|
|
15210
15210
|
})
|
|
15211
15211
|
}, {
|
|
15212
15212
|
tag: "animate",
|
|
15213
|
-
attributes: _objectSpread2$
|
|
15213
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, OPACITY_ANIMATE), {}, {
|
|
15214
15214
|
values: "1;0;1;1;0;1;"
|
|
15215
15215
|
})
|
|
15216
15216
|
});
|
|
@@ -15218,13 +15218,13 @@ var __publicField = (obj, key, value) => {
|
|
|
15218
15218
|
gChildren.push(dot);
|
|
15219
15219
|
gChildren.push({
|
|
15220
15220
|
tag: "path",
|
|
15221
|
-
attributes: _objectSpread2$
|
|
15221
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, FILL), {}, {
|
|
15222
15222
|
opacity: "1",
|
|
15223
15223
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
|
15224
15224
|
}),
|
|
15225
15225
|
children: reduceMotion ? [] : [{
|
|
15226
15226
|
tag: "animate",
|
|
15227
|
-
attributes: _objectSpread2$
|
|
15227
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, OPACITY_ANIMATE), {}, {
|
|
15228
15228
|
values: "1;0;0;0;0;1;"
|
|
15229
15229
|
})
|
|
15230
15230
|
}]
|
|
@@ -15232,13 +15232,13 @@ var __publicField = (obj, key, value) => {
|
|
|
15232
15232
|
if (!reduceMotion) {
|
|
15233
15233
|
gChildren.push({
|
|
15234
15234
|
tag: "path",
|
|
15235
|
-
attributes: _objectSpread2$
|
|
15235
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, FILL), {}, {
|
|
15236
15236
|
opacity: "0",
|
|
15237
15237
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
|
15238
15238
|
}),
|
|
15239
15239
|
children: [{
|
|
15240
15240
|
tag: "animate",
|
|
15241
|
-
attributes: _objectSpread2$
|
|
15241
|
+
attributes: _objectSpread2$2(_objectSpread2$2({}, OPACITY_ANIMATE), {}, {
|
|
15242
15242
|
values: "0;0;1;1;0;0;"
|
|
15243
15243
|
})
|
|
15244
15244
|
}]
|
|
@@ -15281,7 +15281,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15281
15281
|
api.layer;
|
|
15282
15282
|
api.text;
|
|
15283
15283
|
api.counter;
|
|
15284
|
-
function ownKeys$
|
|
15284
|
+
function ownKeys$2(object2, enumerableOnly) {
|
|
15285
15285
|
var keys2 = Object.keys(object2);
|
|
15286
15286
|
if (Object.getOwnPropertySymbols) {
|
|
15287
15287
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -15291,26 +15291,26 @@ var __publicField = (obj, key, value) => {
|
|
|
15291
15291
|
}
|
|
15292
15292
|
return keys2;
|
|
15293
15293
|
}
|
|
15294
|
-
function _objectSpread2$
|
|
15294
|
+
function _objectSpread2$1(target) {
|
|
15295
15295
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
15296
15296
|
var source = null != arguments[i2] ? arguments[i2] : {};
|
|
15297
|
-
i2 % 2 ? ownKeys$
|
|
15298
|
-
_defineProperty$
|
|
15299
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
15297
|
+
i2 % 2 ? ownKeys$2(Object(source), true).forEach(function(key) {
|
|
15298
|
+
_defineProperty$5(target, key, source[key]);
|
|
15299
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function(key) {
|
|
15300
15300
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15301
15301
|
});
|
|
15302
15302
|
}
|
|
15303
15303
|
return target;
|
|
15304
15304
|
}
|
|
15305
|
-
function _typeof$
|
|
15305
|
+
function _typeof$1(obj) {
|
|
15306
15306
|
"@babel/helpers - typeof";
|
|
15307
|
-
return _typeof$
|
|
15307
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
15308
15308
|
return typeof obj2;
|
|
15309
15309
|
} : function(obj2) {
|
|
15310
15310
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
15311
|
-
}, _typeof$
|
|
15311
|
+
}, _typeof$1(obj);
|
|
15312
15312
|
}
|
|
15313
|
-
function _defineProperty$
|
|
15313
|
+
function _defineProperty$5(obj, key, value) {
|
|
15314
15314
|
if (key in obj) {
|
|
15315
15315
|
Object.defineProperty(obj, key, {
|
|
15316
15316
|
value,
|
|
@@ -15337,7 +15337,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15337
15337
|
}
|
|
15338
15338
|
return target;
|
|
15339
15339
|
}
|
|
15340
|
-
function _objectWithoutProperties$
|
|
15340
|
+
function _objectWithoutProperties$1(source, excluded) {
|
|
15341
15341
|
if (source == null)
|
|
15342
15342
|
return {};
|
|
15343
15343
|
var target = _objectWithoutPropertiesLoose$4(source, excluded);
|
|
@@ -15355,41 +15355,41 @@ var __publicField = (obj, key, value) => {
|
|
|
15355
15355
|
}
|
|
15356
15356
|
return target;
|
|
15357
15357
|
}
|
|
15358
|
-
function _toConsumableArray$
|
|
15359
|
-
return _arrayWithoutHoles$
|
|
15358
|
+
function _toConsumableArray$2(arr) {
|
|
15359
|
+
return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2();
|
|
15360
15360
|
}
|
|
15361
|
-
function _arrayWithoutHoles$
|
|
15361
|
+
function _arrayWithoutHoles$2(arr) {
|
|
15362
15362
|
if (Array.isArray(arr))
|
|
15363
|
-
return _arrayLikeToArray$
|
|
15363
|
+
return _arrayLikeToArray$2(arr);
|
|
15364
15364
|
}
|
|
15365
|
-
function _iterableToArray$
|
|
15365
|
+
function _iterableToArray$2(iter) {
|
|
15366
15366
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
15367
15367
|
return Array.from(iter);
|
|
15368
15368
|
}
|
|
15369
|
-
function _unsupportedIterableToArray$
|
|
15369
|
+
function _unsupportedIterableToArray$2(o2, minLen) {
|
|
15370
15370
|
if (!o2)
|
|
15371
15371
|
return;
|
|
15372
15372
|
if (typeof o2 === "string")
|
|
15373
|
-
return _arrayLikeToArray$
|
|
15373
|
+
return _arrayLikeToArray$2(o2, minLen);
|
|
15374
15374
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
15375
15375
|
if (n2 === "Object" && o2.constructor)
|
|
15376
15376
|
n2 = o2.constructor.name;
|
|
15377
15377
|
if (n2 === "Map" || n2 === "Set")
|
|
15378
15378
|
return Array.from(o2);
|
|
15379
15379
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
15380
|
-
return _arrayLikeToArray$
|
|
15380
|
+
return _arrayLikeToArray$2(o2, minLen);
|
|
15381
15381
|
}
|
|
15382
|
-
function _arrayLikeToArray$
|
|
15382
|
+
function _arrayLikeToArray$2(arr, len) {
|
|
15383
15383
|
if (len == null || len > arr.length)
|
|
15384
15384
|
len = arr.length;
|
|
15385
15385
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
15386
15386
|
arr2[i2] = arr[i2];
|
|
15387
15387
|
return arr2;
|
|
15388
15388
|
}
|
|
15389
|
-
function _nonIterableSpread$
|
|
15389
|
+
function _nonIterableSpread$2() {
|
|
15390
15390
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15391
15391
|
}
|
|
15392
|
-
function classList
|
|
15392
|
+
function classList(props) {
|
|
15393
15393
|
var _classes;
|
|
15394
15394
|
var beat = props.beat, fade = props.fade, beatFade = props.beatFade, bounce = props.bounce, shake = props.shake, flash = props.flash, spin = props.spin, spinPulse = props.spinPulse, spinReverse = props.spinReverse, pulse = props.pulse, fixedWidth = props.fixedWidth, inverse = props.inverse, border = props.border, listItem = props.listItem, flip2 = props.flip, size2 = props.size, rotation = props.rotation, pull = props.pull;
|
|
15395
15395
|
var classes = (_classes = {
|
|
@@ -15410,19 +15410,19 @@ var __publicField = (obj, key, value) => {
|
|
|
15410
15410
|
"fa-flip": flip2 === true,
|
|
15411
15411
|
"fa-flip-horizontal": flip2 === "horizontal" || flip2 === "both",
|
|
15412
15412
|
"fa-flip-vertical": flip2 === "vertical" || flip2 === "both"
|
|
15413
|
-
}, _defineProperty$
|
|
15413
|
+
}, _defineProperty$5(_classes, "fa-".concat(size2), typeof size2 !== "undefined" && size2 !== null), _defineProperty$5(_classes, "fa-rotate-".concat(rotation), typeof rotation !== "undefined" && rotation !== null && rotation !== 0), _defineProperty$5(_classes, "fa-pull-".concat(pull), typeof pull !== "undefined" && pull !== null), _defineProperty$5(_classes, "fa-swap-opacity", props.swapOpacity), _classes);
|
|
15414
15414
|
return Object.keys(classes).map(function(key) {
|
|
15415
15415
|
return classes[key] ? key : null;
|
|
15416
15416
|
}).filter(function(key) {
|
|
15417
15417
|
return key;
|
|
15418
15418
|
});
|
|
15419
15419
|
}
|
|
15420
|
-
function _isNumerical
|
|
15420
|
+
function _isNumerical(obj) {
|
|
15421
15421
|
obj = obj - 0;
|
|
15422
15422
|
return obj === obj;
|
|
15423
15423
|
}
|
|
15424
|
-
function camelize
|
|
15425
|
-
if (_isNumerical
|
|
15424
|
+
function camelize(string2) {
|
|
15425
|
+
if (_isNumerical(string2)) {
|
|
15426
15426
|
return string2;
|
|
15427
15427
|
}
|
|
15428
15428
|
string2 = string2.replace(/[\-_\s]+(.)?/g, function(match2, chr) {
|
|
@@ -15430,30 +15430,30 @@ var __publicField = (obj, key, value) => {
|
|
|
15430
15430
|
});
|
|
15431
15431
|
return string2.substr(0, 1).toLowerCase() + string2.substr(1);
|
|
15432
15432
|
}
|
|
15433
|
-
var _excluded
|
|
15434
|
-
function capitalize
|
|
15433
|
+
var _excluded = ["style"];
|
|
15434
|
+
function capitalize(val) {
|
|
15435
15435
|
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
15436
15436
|
}
|
|
15437
|
-
function styleToObject
|
|
15437
|
+
function styleToObject(style) {
|
|
15438
15438
|
return style.split(";").map(function(s) {
|
|
15439
15439
|
return s.trim();
|
|
15440
15440
|
}).filter(function(s) {
|
|
15441
15441
|
return s;
|
|
15442
15442
|
}).reduce(function(acc, pair) {
|
|
15443
15443
|
var i2 = pair.indexOf(":");
|
|
15444
|
-
var prop = camelize
|
|
15444
|
+
var prop = camelize(pair.slice(0, i2));
|
|
15445
15445
|
var value = pair.slice(i2 + 1).trim();
|
|
15446
|
-
prop.startsWith("webkit") ? acc[capitalize
|
|
15446
|
+
prop.startsWith("webkit") ? acc[capitalize(prop)] = value : acc[prop] = value;
|
|
15447
15447
|
return acc;
|
|
15448
15448
|
}, {});
|
|
15449
15449
|
}
|
|
15450
|
-
function convert
|
|
15450
|
+
function convert(createElement2, element) {
|
|
15451
15451
|
var extraProps = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
15452
15452
|
if (typeof element === "string") {
|
|
15453
15453
|
return element;
|
|
15454
15454
|
}
|
|
15455
15455
|
var children = (element.children || []).map(function(child) {
|
|
15456
|
-
return convert
|
|
15456
|
+
return convert(createElement2, child);
|
|
15457
15457
|
});
|
|
15458
15458
|
var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
|
|
15459
15459
|
var val = element.attributes[key];
|
|
@@ -15463,36 +15463,36 @@ var __publicField = (obj, key, value) => {
|
|
|
15463
15463
|
delete element.attributes["class"];
|
|
15464
15464
|
break;
|
|
15465
15465
|
case "style":
|
|
15466
|
-
acc.attrs["style"] = styleToObject
|
|
15466
|
+
acc.attrs["style"] = styleToObject(val);
|
|
15467
15467
|
break;
|
|
15468
15468
|
default:
|
|
15469
15469
|
if (key.indexOf("aria-") === 0 || key.indexOf("data-") === 0) {
|
|
15470
15470
|
acc.attrs[key.toLowerCase()] = val;
|
|
15471
15471
|
} else {
|
|
15472
|
-
acc.attrs[camelize
|
|
15472
|
+
acc.attrs[camelize(key)] = val;
|
|
15473
15473
|
}
|
|
15474
15474
|
}
|
|
15475
15475
|
return acc;
|
|
15476
15476
|
}, {
|
|
15477
15477
|
attrs: {}
|
|
15478
15478
|
});
|
|
15479
|
-
var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties$
|
|
15480
|
-
mixins.attrs["style"] = _objectSpread2$
|
|
15481
|
-
return createElement2.apply(void 0, [element.tag, _objectSpread2$
|
|
15479
|
+
var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties$1(extraProps, _excluded);
|
|
15480
|
+
mixins.attrs["style"] = _objectSpread2$1(_objectSpread2$1({}, mixins.attrs["style"]), existingStyle);
|
|
15481
|
+
return createElement2.apply(void 0, [element.tag, _objectSpread2$1(_objectSpread2$1({}, mixins.attrs), remaining)].concat(_toConsumableArray$2(children)));
|
|
15482
15482
|
}
|
|
15483
|
-
var PRODUCTION
|
|
15483
|
+
var PRODUCTION = false;
|
|
15484
15484
|
try {
|
|
15485
|
-
PRODUCTION
|
|
15485
|
+
PRODUCTION = true;
|
|
15486
15486
|
} catch (e3) {
|
|
15487
15487
|
}
|
|
15488
|
-
function log
|
|
15489
|
-
if (!PRODUCTION
|
|
15488
|
+
function log() {
|
|
15489
|
+
if (!PRODUCTION && console && typeof console.error === "function") {
|
|
15490
15490
|
var _console;
|
|
15491
15491
|
(_console = console).error.apply(_console, arguments);
|
|
15492
15492
|
}
|
|
15493
15493
|
}
|
|
15494
|
-
function normalizeIconArgs
|
|
15495
|
-
if (icon2 && _typeof$
|
|
15494
|
+
function normalizeIconArgs(icon2) {
|
|
15495
|
+
if (icon2 && _typeof$1(icon2) === "object" && icon2.prefix && icon2.iconName && icon2.icon) {
|
|
15496
15496
|
return icon2;
|
|
15497
15497
|
}
|
|
15498
15498
|
if (parse$1$1.icon) {
|
|
@@ -15501,7 +15501,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15501
15501
|
if (icon2 === null) {
|
|
15502
15502
|
return null;
|
|
15503
15503
|
}
|
|
15504
|
-
if (icon2 && _typeof$
|
|
15504
|
+
if (icon2 && _typeof$1(icon2) === "object" && icon2.prefix && icon2.iconName) {
|
|
15505
15505
|
return icon2;
|
|
15506
15506
|
}
|
|
15507
15507
|
if (Array.isArray(icon2) && icon2.length === 2) {
|
|
@@ -15517,23 +15517,23 @@ var __publicField = (obj, key, value) => {
|
|
|
15517
15517
|
};
|
|
15518
15518
|
}
|
|
15519
15519
|
}
|
|
15520
|
-
function objectWithKey
|
|
15521
|
-
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$
|
|
15520
|
+
function objectWithKey(key, value) {
|
|
15521
|
+
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$5({}, key, value) : {};
|
|
15522
15522
|
}
|
|
15523
|
-
var FontAwesomeIcon
|
|
15523
|
+
var FontAwesomeIcon = /* @__PURE__ */ React__default.default.forwardRef(function(props, ref) {
|
|
15524
15524
|
var iconArgs = props.icon, maskArgs = props.mask, symbol = props.symbol, className = props.className, title = props.title, titleId = props.titleId, maskId = props.maskId;
|
|
15525
|
-
var iconLookup = normalizeIconArgs
|
|
15526
|
-
var classes = objectWithKey
|
|
15527
|
-
var transform = objectWithKey
|
|
15528
|
-
var mask = objectWithKey
|
|
15529
|
-
var renderedIcon = icon(iconLookup, _objectSpread2$
|
|
15525
|
+
var iconLookup = normalizeIconArgs(iconArgs);
|
|
15526
|
+
var classes = objectWithKey("classes", [].concat(_toConsumableArray$2(classList(props)), _toConsumableArray$2(className.split(" "))));
|
|
15527
|
+
var transform = objectWithKey("transform", typeof props.transform === "string" ? parse$1$1.transform(props.transform) : props.transform);
|
|
15528
|
+
var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
|
|
15529
|
+
var renderedIcon = icon(iconLookup, _objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, classes), transform), mask), {}, {
|
|
15530
15530
|
symbol,
|
|
15531
15531
|
title,
|
|
15532
15532
|
titleId,
|
|
15533
15533
|
maskId
|
|
15534
15534
|
}));
|
|
15535
15535
|
if (!renderedIcon) {
|
|
15536
|
-
log
|
|
15536
|
+
log("Could not find icon", iconLookup);
|
|
15537
15537
|
return null;
|
|
15538
15538
|
}
|
|
15539
15539
|
var abstract = renderedIcon.abstract;
|
|
@@ -15541,14 +15541,14 @@ var __publicField = (obj, key, value) => {
|
|
|
15541
15541
|
ref
|
|
15542
15542
|
};
|
|
15543
15543
|
Object.keys(props).forEach(function(key) {
|
|
15544
|
-
if (!FontAwesomeIcon
|
|
15544
|
+
if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
|
|
15545
15545
|
extraProps[key] = props[key];
|
|
15546
15546
|
}
|
|
15547
15547
|
});
|
|
15548
|
-
return convertCurry
|
|
15548
|
+
return convertCurry(abstract[0], extraProps);
|
|
15549
15549
|
});
|
|
15550
|
-
FontAwesomeIcon
|
|
15551
|
-
FontAwesomeIcon
|
|
15550
|
+
FontAwesomeIcon.displayName = "FontAwesomeIcon";
|
|
15551
|
+
FontAwesomeIcon.propTypes = {
|
|
15552
15552
|
beat: propTypes.exports.bool,
|
|
15553
15553
|
border: propTypes.exports.bool,
|
|
15554
15554
|
beatFade: propTypes.exports.bool,
|
|
@@ -15577,7 +15577,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15577
15577
|
transform: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.object]),
|
|
15578
15578
|
swapOpacity: propTypes.exports.bool
|
|
15579
15579
|
};
|
|
15580
|
-
FontAwesomeIcon
|
|
15580
|
+
FontAwesomeIcon.defaultProps = {
|
|
15581
15581
|
border: false,
|
|
15582
15582
|
className: "",
|
|
15583
15583
|
mask: null,
|
|
@@ -15605,7 +15605,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15605
15605
|
transform: null,
|
|
15606
15606
|
swapOpacity: false
|
|
15607
15607
|
};
|
|
15608
|
-
var convertCurry
|
|
15608
|
+
var convertCurry = convert.bind(null, React__default.default.createElement);
|
|
15609
15609
|
var Icon$3 = function(e3) {
|
|
15610
15610
|
var t2 = {};
|
|
15611
15611
|
function r2(n2) {
|
|
@@ -15727,7 +15727,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15727
15727
|
t2.default = d2;
|
|
15728
15728
|
}]);
|
|
15729
15729
|
const shouldForwardProp$6 = (prop) => !["asButton"].includes(prop);
|
|
15730
|
-
const StyledFAIcon = styled__default.default(FontAwesomeIcon
|
|
15730
|
+
const StyledFAIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$6 })`
|
|
15731
15731
|
cursor: ${(props) => props.asButton ? "pointer" : "inherit"};
|
|
15732
15732
|
color: inherit;
|
|
15733
15733
|
${(props) => props.asButton ? `:hover { color: ${props.theme.colors.grey6}; }` : ""}
|
|
@@ -15783,7 +15783,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15783
15783
|
var faCopy = {
|
|
15784
15784
|
prefix: "far",
|
|
15785
15785
|
iconName: "copy",
|
|
15786
|
-
icon: [
|
|
15786
|
+
icon: [448, 512, [], "f0c5", "M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"]
|
|
15787
15787
|
};
|
|
15788
15788
|
const Copy = (props) => {
|
|
15789
15789
|
return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCopy }, props));
|
|
@@ -17243,7 +17243,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17243
17243
|
React$2.useEffect(() => {
|
|
17244
17244
|
cbRef.current = cb;
|
|
17245
17245
|
});
|
|
17246
|
-
return React$2.useCallback(throttle_1((...args) => cbRef.current(...args), delay2, options), [delay2]);
|
|
17246
|
+
return React$2.useCallback(throttle_1((...args) => cbRef.current(...args), delay2, options), [delay2, options]);
|
|
17247
17247
|
}
|
|
17248
17248
|
function useThrottledState(initialValue, delay2, options = { leading: false, trailing: true }) {
|
|
17249
17249
|
const [value, setValue] = React$2.useState(initialValue);
|
|
@@ -17421,22 +17421,48 @@ var __publicField = (obj, key, value) => {
|
|
|
17421
17421
|
border: 1px solid ${(props) => props.color};
|
|
17422
17422
|
border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
|
|
17423
17423
|
`;
|
|
17424
|
-
function
|
|
17424
|
+
function _extends$1() {
|
|
17425
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
17426
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
17427
|
+
var source = arguments[i2];
|
|
17428
|
+
for (var key in source) {
|
|
17429
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17430
|
+
target[key] = source[key];
|
|
17431
|
+
}
|
|
17432
|
+
}
|
|
17433
|
+
}
|
|
17434
|
+
return target;
|
|
17435
|
+
};
|
|
17436
|
+
return _extends$1.apply(this, arguments);
|
|
17437
|
+
}
|
|
17438
|
+
function _assertThisInitialized$3(self2) {
|
|
17425
17439
|
if (self2 === void 0) {
|
|
17426
17440
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17427
17441
|
}
|
|
17428
17442
|
return self2;
|
|
17429
17443
|
}
|
|
17430
|
-
function
|
|
17431
|
-
|
|
17444
|
+
function _setPrototypeOf$2(o2, p2) {
|
|
17445
|
+
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
17446
|
+
o3.__proto__ = p3;
|
|
17447
|
+
return o3;
|
|
17448
|
+
};
|
|
17449
|
+
return _setPrototypeOf$2(o2, p2);
|
|
17450
|
+
}
|
|
17451
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
17452
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
17453
|
+
subClass.prototype.constructor = subClass;
|
|
17454
|
+
_setPrototypeOf$2(subClass, superClass);
|
|
17455
|
+
}
|
|
17456
|
+
function _getPrototypeOf$2(o2) {
|
|
17457
|
+
_getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
17432
17458
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
17433
17459
|
};
|
|
17434
|
-
return _getPrototypeOf$
|
|
17460
|
+
return _getPrototypeOf$2(o2);
|
|
17435
17461
|
}
|
|
17436
|
-
function _isNativeFunction(fn) {
|
|
17462
|
+
function _isNativeFunction$1(fn) {
|
|
17437
17463
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
17438
17464
|
}
|
|
17439
|
-
function _isNativeReflectConstruct$
|
|
17465
|
+
function _isNativeReflectConstruct$2() {
|
|
17440
17466
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
17441
17467
|
return false;
|
|
17442
17468
|
if (Reflect.construct.sham)
|
|
@@ -17451,26 +17477,26 @@ var __publicField = (obj, key, value) => {
|
|
|
17451
17477
|
return false;
|
|
17452
17478
|
}
|
|
17453
17479
|
}
|
|
17454
|
-
function _construct(Parent, args, Class) {
|
|
17455
|
-
if (_isNativeReflectConstruct$
|
|
17456
|
-
_construct = Reflect.construct.bind();
|
|
17480
|
+
function _construct$1(Parent, args, Class) {
|
|
17481
|
+
if (_isNativeReflectConstruct$2()) {
|
|
17482
|
+
_construct$1 = Reflect.construct.bind();
|
|
17457
17483
|
} else {
|
|
17458
|
-
_construct = function _construct2(Parent2, args2, Class2) {
|
|
17484
|
+
_construct$1 = function _construct2(Parent2, args2, Class2) {
|
|
17459
17485
|
var a2 = [null];
|
|
17460
17486
|
a2.push.apply(a2, args2);
|
|
17461
17487
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
17462
17488
|
var instance = new Constructor();
|
|
17463
17489
|
if (Class2)
|
|
17464
|
-
_setPrototypeOf$
|
|
17490
|
+
_setPrototypeOf$2(instance, Class2.prototype);
|
|
17465
17491
|
return instance;
|
|
17466
17492
|
};
|
|
17467
17493
|
}
|
|
17468
|
-
return _construct.apply(null, arguments);
|
|
17494
|
+
return _construct$1.apply(null, arguments);
|
|
17469
17495
|
}
|
|
17470
|
-
function _wrapNativeSuper(Class) {
|
|
17496
|
+
function _wrapNativeSuper$1(Class) {
|
|
17471
17497
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
17472
|
-
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
17473
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
17498
|
+
_wrapNativeSuper$1 = function _wrapNativeSuper2(Class2) {
|
|
17499
|
+
if (Class2 === null || !_isNativeFunction$1(Class2))
|
|
17474
17500
|
return Class2;
|
|
17475
17501
|
if (typeof Class2 !== "function") {
|
|
17476
17502
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -17481,7 +17507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17481
17507
|
_cache.set(Class2, Wrapper2);
|
|
17482
17508
|
}
|
|
17483
17509
|
function Wrapper2() {
|
|
17484
|
-
return _construct(Class2, arguments, _getPrototypeOf$
|
|
17510
|
+
return _construct$1(Class2, arguments, _getPrototypeOf$2(this).constructor);
|
|
17485
17511
|
}
|
|
17486
17512
|
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
17487
17513
|
constructor: {
|
|
@@ -17491,9 +17517,9 @@ var __publicField = (obj, key, value) => {
|
|
|
17491
17517
|
configurable: true
|
|
17492
17518
|
}
|
|
17493
17519
|
});
|
|
17494
|
-
return _setPrototypeOf$
|
|
17520
|
+
return _setPrototypeOf$2(Wrapper2, Class2);
|
|
17495
17521
|
};
|
|
17496
|
-
return _wrapNativeSuper(Class);
|
|
17522
|
+
return _wrapNativeSuper$1(Class);
|
|
17497
17523
|
}
|
|
17498
17524
|
var PolishedError$1 = /* @__PURE__ */ function(_Error) {
|
|
17499
17525
|
_inheritsLoose$1(PolishedError2, _Error);
|
|
@@ -17502,10 +17528,10 @@ var __publicField = (obj, key, value) => {
|
|
|
17502
17528
|
{
|
|
17503
17529
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
17504
17530
|
}
|
|
17505
|
-
return _assertThisInitialized$
|
|
17531
|
+
return _assertThisInitialized$3(_this);
|
|
17506
17532
|
}
|
|
17507
17533
|
return PolishedError2;
|
|
17508
|
-
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
17534
|
+
}(/* @__PURE__ */ _wrapNativeSuper$1(Error));
|
|
17509
17535
|
function colorToInt$1(color) {
|
|
17510
17536
|
return Math.round(color * 255);
|
|
17511
17537
|
}
|
|
@@ -17849,7 +17875,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17849
17875
|
return color;
|
|
17850
17876
|
var parsedColor = parseToRgb$1(color);
|
|
17851
17877
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
17852
|
-
var colorWithAlpha = _extends$
|
|
17878
|
+
var colorWithAlpha = _extends$1({}, parsedColor, {
|
|
17853
17879
|
alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
|
|
17854
17880
|
});
|
|
17855
17881
|
return rgba$1(colorWithAlpha);
|
|
@@ -18023,8 +18049,9 @@ var __publicField = (obj, key, value) => {
|
|
|
18023
18049
|
}
|
|
18024
18050
|
function getFilledButtonStyle(buttonColor, hoverColor, clickColor, disabled2, theme2, textColor) {
|
|
18025
18051
|
let color = theme2.themeType === "dark" ? theme2.colors.text : theme2.colors.blue1;
|
|
18026
|
-
if (textColor)
|
|
18052
|
+
if (textColor) {
|
|
18027
18053
|
color = textColor;
|
|
18054
|
+
}
|
|
18028
18055
|
return `
|
|
18029
18056
|
color: ${color};
|
|
18030
18057
|
|
|
@@ -18549,8 +18576,9 @@ var __publicField = (obj, key, value) => {
|
|
|
18549
18576
|
}
|
|
18550
18577
|
};
|
|
18551
18578
|
const onKeyDown = (e3) => {
|
|
18552
|
-
if (props.onKeyDown)
|
|
18579
|
+
if (props.onKeyDown) {
|
|
18553
18580
|
props.onKeyDown(e3);
|
|
18581
|
+
}
|
|
18554
18582
|
if (props.keydownFilter && !props.keydownFilter(e3)) {
|
|
18555
18583
|
e3.preventDefault();
|
|
18556
18584
|
}
|
|
@@ -18560,10 +18588,12 @@ var __publicField = (obj, key, value) => {
|
|
|
18560
18588
|
};
|
|
18561
18589
|
const addOptionalItems = () => {
|
|
18562
18590
|
const result = {};
|
|
18563
|
-
if (props.minValue)
|
|
18591
|
+
if (props.minValue) {
|
|
18564
18592
|
result.minValue = props.minValue;
|
|
18565
|
-
|
|
18593
|
+
}
|
|
18594
|
+
if (props.maxValue) {
|
|
18566
18595
|
result.maxValue = props.minValue;
|
|
18596
|
+
}
|
|
18567
18597
|
return result;
|
|
18568
18598
|
};
|
|
18569
18599
|
return jsxRuntime.exports.jsxs(InputWrapper$3, { className: props.className, style: props.style, children: [jsxRuntime.exports.jsx(PrimaryInput, Object.assign({ autoFocus: props.autoFocus, defaultValue: props.initialValue, disabled: props.disabled, isErrored: !!props.errorMsg, maxLength: props.maxLength, onBlur: props.onBlur, onChange: onChange2, onClick: props.onClick, onKeyDown, placeholder: props.placeholder, ref, type, value: props.value }, addOptionalItems())), props.errorMsg && jsxRuntime.exports.jsxs(ErrorMessage$1, { children: [props.errorMsg, " "] })] });
|
|
@@ -18709,6 +18739,20 @@ var __publicField = (obj, key, value) => {
|
|
|
18709
18739
|
setPreviousFilter(filterValue);
|
|
18710
18740
|
}, children: "Apply" })] });
|
|
18711
18741
|
}
|
|
18742
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
18743
|
+
if (source == null)
|
|
18744
|
+
return {};
|
|
18745
|
+
var target = {};
|
|
18746
|
+
var sourceKeys = Object.keys(source);
|
|
18747
|
+
var key, i2;
|
|
18748
|
+
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
18749
|
+
key = sourceKeys[i2];
|
|
18750
|
+
if (excluded.indexOf(key) >= 0)
|
|
18751
|
+
continue;
|
|
18752
|
+
target[key] = source[key];
|
|
18753
|
+
}
|
|
18754
|
+
return target;
|
|
18755
|
+
}
|
|
18712
18756
|
var reactIs = { exports: {} };
|
|
18713
18757
|
var reactIs_production_min = {};
|
|
18714
18758
|
/** @license React v17.0.2
|
|
@@ -19239,7 +19283,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19239
19283
|
}
|
|
19240
19284
|
});
|
|
19241
19285
|
if (props.onStateChange && Object.keys(changes).length) {
|
|
19242
|
-
props.onStateChange(_extends$
|
|
19286
|
+
props.onStateChange(_extends$1({
|
|
19243
19287
|
type
|
|
19244
19288
|
}, changes));
|
|
19245
19289
|
}
|
|
@@ -19248,7 +19292,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19248
19292
|
var props = action.props, type = action.type;
|
|
19249
19293
|
var handler = "on" + capitalizeString(key) + "Change";
|
|
19250
19294
|
if (props[handler] && newState[key] !== void 0 && newState[key] !== state[key]) {
|
|
19251
|
-
props[handler](_extends$
|
|
19295
|
+
props[handler](_extends$1({
|
|
19252
19296
|
type
|
|
19253
19297
|
}, newState));
|
|
19254
19298
|
}
|
|
@@ -19312,7 +19356,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19312
19356
|
actionRef.current = action2;
|
|
19313
19357
|
state2 = getState(state2, action2.props);
|
|
19314
19358
|
var changes = reducer2(state2, action2);
|
|
19315
|
-
var newState = action2.props.stateReducer(state2, _extends$
|
|
19359
|
+
var newState = action2.props.stateReducer(state2, _extends$1({}, action2, {
|
|
19316
19360
|
changes
|
|
19317
19361
|
}));
|
|
19318
19362
|
return newState;
|
|
@@ -19320,7 +19364,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19320
19364
|
var _useReducer = React$2.useReducer(enhancedReducer, initialState2), state = _useReducer[0], dispatch2 = _useReducer[1];
|
|
19321
19365
|
var propsRef = useLatestRef(props);
|
|
19322
19366
|
var dispatchWithProps = React$2.useCallback(function(action2) {
|
|
19323
|
-
return dispatch2(_extends$
|
|
19367
|
+
return dispatch2(_extends$1({
|
|
19324
19368
|
props: propsRef.current
|
|
19325
19369
|
}, action2));
|
|
19326
19370
|
}, [propsRef]);
|
|
@@ -19452,13 +19496,13 @@ var __publicField = (obj, key, value) => {
|
|
|
19452
19496
|
return noop$3;
|
|
19453
19497
|
};
|
|
19454
19498
|
function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
|
|
19455
|
-
var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$
|
|
19499
|
+
var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$3(_ref2, _excluded$3);
|
|
19456
19500
|
React$2.useEffect(function() {
|
|
19457
19501
|
if (isInitialMount || false) {
|
|
19458
19502
|
return;
|
|
19459
19503
|
}
|
|
19460
19504
|
updateA11yStatus(function() {
|
|
19461
|
-
return getA11yMessage(_extends$
|
|
19505
|
+
return getA11yMessage(_extends$1({
|
|
19462
19506
|
highlightedIndex,
|
|
19463
19507
|
highlightedItem: items[highlightedIndex],
|
|
19464
19508
|
resultCount: items.length
|
|
@@ -19488,10 +19532,10 @@ var __publicField = (obj, key, value) => {
|
|
|
19488
19532
|
inputValue = true;
|
|
19489
19533
|
}
|
|
19490
19534
|
var shouldSelect = ((_props$items = props.items) == null ? void 0 : _props$items.length) && highlightedIndex >= 0;
|
|
19491
|
-
return _extends$
|
|
19535
|
+
return _extends$1({
|
|
19492
19536
|
isOpen: false,
|
|
19493
19537
|
highlightedIndex: -1
|
|
19494
|
-
}, shouldSelect && _extends$
|
|
19538
|
+
}, shouldSelect && _extends$1({
|
|
19495
19539
|
selectedItem: props.items[highlightedIndex],
|
|
19496
19540
|
isOpen: getDefaultValue$1(props, "isOpen"),
|
|
19497
19541
|
highlightedIndex: getDefaultValue$1(props, "highlightedIndex")
|
|
@@ -19552,7 +19596,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19552
19596
|
default:
|
|
19553
19597
|
throw new Error("Reducer called without proper action type.");
|
|
19554
19598
|
}
|
|
19555
|
-
return _extends$
|
|
19599
|
+
return _extends$1({}, state, changes);
|
|
19556
19600
|
}
|
|
19557
19601
|
function getItemIndexByCharacterKey(_a) {
|
|
19558
19602
|
var keysSoFar = _a.keysSoFar, highlightedIndex = _a.highlightedIndex, items = _a.items, itemToString2 = _a.itemToString, getItemNodeFromIndex = _a.getItemNodeFromIndex;
|
|
@@ -19748,7 +19792,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19748
19792
|
};
|
|
19749
19793
|
break;
|
|
19750
19794
|
case ToggleButtonBlur:
|
|
19751
|
-
changes = _extends$
|
|
19795
|
+
changes = _extends$1({
|
|
19752
19796
|
isOpen: false,
|
|
19753
19797
|
highlightedIndex: -1
|
|
19754
19798
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && {
|
|
@@ -19763,7 +19807,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19763
19807
|
default:
|
|
19764
19808
|
return downshiftCommonReducer(state, action, stateChangeTypes$2);
|
|
19765
19809
|
}
|
|
19766
|
-
return _extends$
|
|
19810
|
+
return _extends$1({}, state, changes);
|
|
19767
19811
|
}
|
|
19768
19812
|
var _excluded$2 = ["onMouseLeave", "refKey", "onKeyDown", "onBlur", "ref"], _excluded2$2 = ["onBlur", "onClick", "onPress", "onKeyDown", "refKey", "ref"], _excluded3$1 = ["item", "index", "onMouseMove", "onClick", "onPress", "refKey", "ref", "disabled"];
|
|
19769
19813
|
useSelect.stateChangeTypes = stateChangeTypes$2;
|
|
@@ -19771,7 +19815,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19771
19815
|
if (userProps === void 0) {
|
|
19772
19816
|
userProps = {};
|
|
19773
19817
|
}
|
|
19774
|
-
var props = _extends$
|
|
19818
|
+
var props = _extends$1({}, defaultProps$2, userProps);
|
|
19775
19819
|
var items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, itemToString2 = props.itemToString, getA11ySelectionMessage2 = props.getA11ySelectionMessage, getA11yStatusMessage2 = props.getA11yStatusMessage;
|
|
19776
19820
|
var initialState2 = getInitialState$2(props);
|
|
19777
19821
|
var _useControlledReducer = useControlledReducer$1(downshiftSelectReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -19790,14 +19834,14 @@ var __publicField = (obj, key, value) => {
|
|
|
19790
19834
|
var getItemNodeFromIndex = React$2.useCallback(function(index2) {
|
|
19791
19835
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
19792
19836
|
}, [elementIds]);
|
|
19793
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
19837
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$1({
|
|
19794
19838
|
isInitialMount: isInitialMountRef.current,
|
|
19795
19839
|
previousResultCount: previousResultCountRef.current,
|
|
19796
19840
|
items,
|
|
19797
19841
|
environment,
|
|
19798
19842
|
itemToString: itemToString2
|
|
19799
19843
|
}, state));
|
|
19800
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
19844
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$1({
|
|
19801
19845
|
isInitialMount: isInitialMountRef.current,
|
|
19802
19846
|
previousResultCount: previousResultCountRef.current,
|
|
19803
19847
|
items,
|
|
@@ -19982,7 +20026,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19982
20026
|
});
|
|
19983
20027
|
}, [dispatch2]);
|
|
19984
20028
|
var getLabelProps = React$2.useCallback(function(labelProps) {
|
|
19985
|
-
return _extends$
|
|
20029
|
+
return _extends$1({
|
|
19986
20030
|
id: elementIds.labelId,
|
|
19987
20031
|
htmlFor: elementIds.toggleButtonId
|
|
19988
20032
|
}, labelProps);
|
|
@@ -19992,7 +20036,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19992
20036
|
var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey;
|
|
19993
20037
|
_ref2.onKeyDown;
|
|
19994
20038
|
_ref2.onBlur;
|
|
19995
|
-
var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$
|
|
20039
|
+
var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$3(_ref2, _excluded$2);
|
|
19996
20040
|
var _ref22 = _temp2 === void 0 ? {} : _temp2;
|
|
19997
20041
|
_ref22.suppressRefError;
|
|
19998
20042
|
var menuHandleMouseLeave = function menuHandleMouseLeave2() {
|
|
@@ -20000,7 +20044,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20000
20044
|
type: MenuMouseLeave$1
|
|
20001
20045
|
});
|
|
20002
20046
|
};
|
|
20003
|
-
return _extends$
|
|
20047
|
+
return _extends$1((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
20004
20048
|
menuRef.current = menuNode;
|
|
20005
20049
|
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, menuHandleMouseLeave), _extends2), rest);
|
|
20006
20050
|
}, [dispatch2, setGetterPropCallInfo, elementIds]);
|
|
@@ -20008,7 +20052,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20008
20052
|
var _extends3;
|
|
20009
20053
|
var _ref3 = _temp3 === void 0 ? {} : _temp3, onBlur = _ref3.onBlur, onClick = _ref3.onClick;
|
|
20010
20054
|
_ref3.onPress;
|
|
20011
|
-
var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$
|
|
20055
|
+
var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$3(_ref3, _excluded2$2);
|
|
20012
20056
|
var _ref4 = _temp4 === void 0 ? {} : _temp4;
|
|
20013
20057
|
_ref4.suppressRefError;
|
|
20014
20058
|
var latestState = latest.current.state;
|
|
@@ -20036,7 +20080,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20036
20080
|
});
|
|
20037
20081
|
}
|
|
20038
20082
|
};
|
|
20039
|
-
var toggleProps = _extends$
|
|
20083
|
+
var toggleProps = _extends$1((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
20040
20084
|
toggleButtonRef.current = toggleButtonNode;
|
|
20041
20085
|
}), _extends3["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends3["aria-controls"] = elementIds.menuId, _extends3["aria-expanded"] = latest.current.state.isOpen, _extends3["aria-haspopup"] = "listbox", _extends3["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends3.id = elementIds.toggleButtonId, _extends3.role = "combobox", _extends3.tabIndex = 0, _extends3.onBlur = callAllEventHandlers(onBlur, toggleButtonHandleBlur), _extends3), rest);
|
|
20042
20086
|
if (!rest.disabled) {
|
|
@@ -20051,7 +20095,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20051
20095
|
var _extends4;
|
|
20052
20096
|
var _ref5 = _temp5 === void 0 ? {} : _temp5, itemProp = _ref5.item, indexProp = _ref5.index, onMouseMove = _ref5.onMouseMove, onClick = _ref5.onClick;
|
|
20053
20097
|
_ref5.onPress;
|
|
20054
|
-
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$
|
|
20098
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$3(_ref5, _excluded3$1);
|
|
20055
20099
|
var _latest$current = latest.current, latestState = _latest$current.state, latestProps = _latest$current.props;
|
|
20056
20100
|
var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), item = _getItemAndIndex[0], index2 = _getItemAndIndex[1];
|
|
20057
20101
|
var itemHandleMouseMove = function itemHandleMouseMove2() {
|
|
@@ -20071,7 +20115,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20071
20115
|
index: index2
|
|
20072
20116
|
});
|
|
20073
20117
|
};
|
|
20074
|
-
var itemProps = _extends$
|
|
20118
|
+
var itemProps = _extends$1((_extends4 = {
|
|
20075
20119
|
disabled: disabled2,
|
|
20076
20120
|
role: "option",
|
|
20077
20121
|
"aria-selected": "" + (item === selectedItem),
|
|
@@ -20163,7 +20207,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20163
20207
|
if (inputValue === "" && selectedItem && props.defaultInputValue === void 0 && props.initialInputValue === void 0 && props.inputValue === void 0) {
|
|
20164
20208
|
inputValue = props.itemToString(selectedItem);
|
|
20165
20209
|
}
|
|
20166
|
-
return _extends$
|
|
20210
|
+
return _extends$1({}, initialState2, {
|
|
20167
20211
|
inputValue
|
|
20168
20212
|
});
|
|
20169
20213
|
}
|
|
@@ -20224,7 +20268,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20224
20268
|
}, [state.selectedItem, props.selectedItem]);
|
|
20225
20269
|
return [getState(state, props), dispatch2];
|
|
20226
20270
|
}
|
|
20227
|
-
var defaultProps$1$1 = _extends$
|
|
20271
|
+
var defaultProps$1$1 = _extends$1({}, defaultProps$3, {
|
|
20228
20272
|
selectedItemChanged: function selectedItemChanged(prevItem, item) {
|
|
20229
20273
|
return prevItem !== item;
|
|
20230
20274
|
},
|
|
@@ -20275,7 +20319,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20275
20319
|
changes = getChangesOnSelection(props, state.highlightedIndex);
|
|
20276
20320
|
break;
|
|
20277
20321
|
case InputKeyDownEscape:
|
|
20278
|
-
changes = _extends$
|
|
20322
|
+
changes = _extends$1({
|
|
20279
20323
|
isOpen: false,
|
|
20280
20324
|
highlightedIndex: -1
|
|
20281
20325
|
}, !state.isOpen && {
|
|
@@ -20304,7 +20348,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20304
20348
|
};
|
|
20305
20349
|
break;
|
|
20306
20350
|
case InputBlur:
|
|
20307
|
-
changes = _extends$
|
|
20351
|
+
changes = _extends$1({
|
|
20308
20352
|
isOpen: false,
|
|
20309
20353
|
highlightedIndex: -1
|
|
20310
20354
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && action.selectItem && {
|
|
@@ -20339,7 +20383,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20339
20383
|
default:
|
|
20340
20384
|
return downshiftCommonReducer(state, action, stateChangeTypes$1$1);
|
|
20341
20385
|
}
|
|
20342
|
-
return _extends$
|
|
20386
|
+
return _extends$1({}, state, changes);
|
|
20343
20387
|
}
|
|
20344
20388
|
var _excluded$1 = ["onMouseLeave", "refKey", "ref"], _excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], _excluded3 = ["onClick", "onPress", "refKey", "ref"], _excluded4 = ["onKeyDown", "onChange", "onInput", "onFocus", "onBlur", "onChangeText", "refKey", "ref"];
|
|
20345
20389
|
useCombobox.stateChangeTypes = stateChangeTypes$1$1;
|
|
@@ -20347,7 +20391,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20347
20391
|
if (userProps === void 0) {
|
|
20348
20392
|
userProps = {};
|
|
20349
20393
|
}
|
|
20350
|
-
var props = _extends$
|
|
20394
|
+
var props = _extends$1({}, defaultProps$1$1, userProps);
|
|
20351
20395
|
var initialIsOpen = props.initialIsOpen, defaultIsOpen = props.defaultIsOpen, items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, getA11yStatusMessage2 = props.getA11yStatusMessage, getA11ySelectionMessage2 = props.getA11ySelectionMessage, itemToString2 = props.itemToString;
|
|
20352
20396
|
var initialState2 = getInitialState$1(props);
|
|
20353
20397
|
var _useControlledReducer = useControlledReducer(downshiftUseComboboxReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -20366,14 +20410,14 @@ var __publicField = (obj, key, value) => {
|
|
|
20366
20410
|
var getItemNodeFromIndex = React$2.useCallback(function(index2) {
|
|
20367
20411
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
20368
20412
|
}, [elementIds]);
|
|
20369
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
20413
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$1({
|
|
20370
20414
|
isInitialMount: isInitialMountRef.current,
|
|
20371
20415
|
previousResultCount: previousResultCountRef.current,
|
|
20372
20416
|
items,
|
|
20373
20417
|
environment,
|
|
20374
20418
|
itemToString: itemToString2
|
|
20375
20419
|
}, state));
|
|
20376
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
20420
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$1({
|
|
20377
20421
|
isInitialMount: isInitialMountRef.current,
|
|
20378
20422
|
previousResultCount: previousResultCountRef.current,
|
|
20379
20423
|
items,
|
|
@@ -20506,17 +20550,17 @@ var __publicField = (obj, key, value) => {
|
|
|
20506
20550
|
};
|
|
20507
20551
|
}, [dispatch2, latest, getItemNodeFromIndex]);
|
|
20508
20552
|
var getLabelProps = React$2.useCallback(function(labelProps) {
|
|
20509
|
-
return _extends$
|
|
20553
|
+
return _extends$1({
|
|
20510
20554
|
id: elementIds.labelId,
|
|
20511
20555
|
htmlFor: elementIds.inputId
|
|
20512
20556
|
}, labelProps);
|
|
20513
20557
|
}, [elementIds]);
|
|
20514
20558
|
var getMenuProps = React$2.useCallback(function(_temp, _temp2) {
|
|
20515
20559
|
var _extends2;
|
|
20516
|
-
var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$
|
|
20560
|
+
var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$3(_ref2, _excluded$1);
|
|
20517
20561
|
var _ref22 = _temp2 === void 0 ? {} : _temp2;
|
|
20518
20562
|
_ref22.suppressRefError;
|
|
20519
|
-
return _extends$
|
|
20563
|
+
return _extends$1((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
20520
20564
|
menuRef.current = menuNode;
|
|
20521
20565
|
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
|
|
20522
20566
|
dispatch2({
|
|
@@ -20528,7 +20572,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20528
20572
|
var _extends3, _ref4;
|
|
20529
20573
|
var _ref3 = _temp3 === void 0 ? {} : _temp3, itemProp = _ref3.item, indexProp = _ref3.index, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, onMouseMove = _ref3.onMouseMove, onMouseDown = _ref3.onMouseDown, onClick = _ref3.onClick;
|
|
20530
20574
|
_ref3.onPress;
|
|
20531
|
-
var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$
|
|
20575
|
+
var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$3(_ref3, _excluded2$1);
|
|
20532
20576
|
var _latest$current = latest.current, latestProps = _latest$current.props, latestState = _latest$current.state;
|
|
20533
20577
|
var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), index2 = _getItemAndIndex[1];
|
|
20534
20578
|
var onSelectKey = "onClick";
|
|
@@ -20553,7 +20597,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20553
20597
|
var itemHandleMouseDown = function itemHandleMouseDown2(e3) {
|
|
20554
20598
|
return e3.preventDefault();
|
|
20555
20599
|
};
|
|
20556
|
-
return _extends$
|
|
20600
|
+
return _extends$1((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
|
|
20557
20601
|
if (itemNode) {
|
|
20558
20602
|
itemRefs.current[elementIds.getItemId(index2)] = itemNode;
|
|
20559
20603
|
}
|
|
@@ -20566,16 +20610,16 @@ var __publicField = (obj, key, value) => {
|
|
|
20566
20610
|
var _extends4;
|
|
20567
20611
|
var _ref5 = _temp4 === void 0 ? {} : _temp4, onClick = _ref5.onClick;
|
|
20568
20612
|
_ref5.onPress;
|
|
20569
|
-
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$
|
|
20613
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$3(_ref5, _excluded3);
|
|
20570
20614
|
var latestState = latest.current.state;
|
|
20571
20615
|
var toggleButtonHandleClick = function toggleButtonHandleClick2() {
|
|
20572
20616
|
dispatch2({
|
|
20573
20617
|
type: ToggleButtonClick
|
|
20574
20618
|
});
|
|
20575
20619
|
};
|
|
20576
|
-
return _extends$
|
|
20620
|
+
return _extends$1((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
20577
20621
|
toggleButtonRef.current = toggleButtonNode;
|
|
20578
|
-
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$
|
|
20622
|
+
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$1({}, {
|
|
20579
20623
|
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
20580
20624
|
}), rest);
|
|
20581
20625
|
}, [dispatch2, latest, elementIds]);
|
|
@@ -20583,7 +20627,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20583
20627
|
var _extends5;
|
|
20584
20628
|
var _ref6 = _temp5 === void 0 ? {} : _temp5, onKeyDown = _ref6.onKeyDown, onChange2 = _ref6.onChange, onInput = _ref6.onInput, onFocus = _ref6.onFocus, onBlur = _ref6.onBlur;
|
|
20585
20629
|
_ref6.onChangeText;
|
|
20586
|
-
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$
|
|
20630
|
+
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$3(_ref6, _excluded4);
|
|
20587
20631
|
var _ref7 = _temp6 === void 0 ? {} : _temp6;
|
|
20588
20632
|
_ref7.suppressRefError;
|
|
20589
20633
|
var latestState = latest.current.state;
|
|
@@ -20621,7 +20665,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20621
20665
|
var _eventHandlers;
|
|
20622
20666
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange2, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers.onFocus = callAllEventHandlers(onFocus, inputHandleFocus), _eventHandlers);
|
|
20623
20667
|
}
|
|
20624
|
-
return _extends$
|
|
20668
|
+
return _extends$1((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
|
|
20625
20669
|
inputRef.current = inputNode;
|
|
20626
20670
|
}), _extends5["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends5["aria-autocomplete"] = "list", _extends5["aria-controls"] = elementIds.menuId, _extends5["aria-expanded"] = latestState.isOpen, _extends5["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends5.autoComplete = "off", _extends5.id = elementIds.inputId, _extends5.role = "combobox", _extends5.value = latestState.inputValue, _extends5), eventHandlers, rest);
|
|
20627
20671
|
}, [setGetterPropCallInfo, latest, elementIds, inputKeyDownHandlers, dispatch2, mouseAndTouchTrackersRef, environment]);
|
|
@@ -24418,7 +24462,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24418
24462
|
tippy$1.setDefaultProps({
|
|
24419
24463
|
animation: false
|
|
24420
24464
|
});
|
|
24421
|
-
function _objectWithoutPropertiesLoose$
|
|
24465
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
24422
24466
|
if (source == null)
|
|
24423
24467
|
return {};
|
|
24424
24468
|
var target = {};
|
|
@@ -24515,7 +24559,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24515
24559
|
var children = _ref2.children, content = _ref2.content, visible = _ref2.visible, singleton = _ref2.singleton, render2 = _ref2.render, reference2 = _ref2.reference, _ref$disabled = _ref2.disabled, disabled2 = _ref$disabled === void 0 ? false : _ref$disabled, _ref$ignoreAttributes = _ref2.ignoreAttributes, ignoreAttributes = _ref$ignoreAttributes === void 0 ? true : _ref$ignoreAttributes;
|
|
24516
24560
|
_ref2.__source;
|
|
24517
24561
|
_ref2.__self;
|
|
24518
|
-
var restOfNativeProps = _objectWithoutPropertiesLoose$
|
|
24562
|
+
var restOfNativeProps = _objectWithoutPropertiesLoose$2(_ref2, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
|
|
24519
24563
|
var isControlledMode = visible !== void 0;
|
|
24520
24564
|
var isSingletonMode = singleton !== void 0;
|
|
24521
24565
|
var _useState = React$2.useState(false), mounted = _useState[0], setMounted = _useState[1];
|
|
@@ -24660,7 +24704,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24660
24704
|
}
|
|
24661
24705
|
var forwardRef = function(Tippy2, defaultProps2) {
|
|
24662
24706
|
return /* @__PURE__ */ React$2.forwardRef(function TippyWrapper(_ref2, _ref22) {
|
|
24663
|
-
var children = _ref2.children, props = _objectWithoutPropertiesLoose$
|
|
24707
|
+
var children = _ref2.children, props = _objectWithoutPropertiesLoose$2(_ref2, ["children"]);
|
|
24664
24708
|
return /* @__PURE__ */ React__default.default.createElement(Tippy2, Object.assign({}, defaultProps2, props), children ? /* @__PURE__ */ React$2.cloneElement(children, {
|
|
24665
24709
|
ref: function ref(node) {
|
|
24666
24710
|
preserveRef(_ref22, node);
|
|
@@ -34753,13 +34797,13 @@ var __publicField = (obj, key, value) => {
|
|
|
34753
34797
|
})();
|
|
34754
34798
|
})(classnames);
|
|
34755
34799
|
const r = classnames.exports;
|
|
34756
|
-
function _typeof
|
|
34800
|
+
function _typeof(o2) {
|
|
34757
34801
|
"@babel/helpers - typeof";
|
|
34758
|
-
return _typeof
|
|
34759
|
-
return typeof
|
|
34760
|
-
} : function(
|
|
34761
|
-
return
|
|
34762
|
-
}, _typeof
|
|
34802
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
|
|
34803
|
+
return typeof o3;
|
|
34804
|
+
} : function(o3) {
|
|
34805
|
+
return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
|
|
34806
|
+
}, _typeof(o2);
|
|
34763
34807
|
}
|
|
34764
34808
|
function requiredArgs(required, args) {
|
|
34765
34809
|
if (args.length < required) {
|
|
@@ -34768,12 +34812,12 @@ var __publicField = (obj, key, value) => {
|
|
|
34768
34812
|
}
|
|
34769
34813
|
function isDate$1(value) {
|
|
34770
34814
|
requiredArgs(1, arguments);
|
|
34771
|
-
return value instanceof Date || _typeof
|
|
34815
|
+
return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
34772
34816
|
}
|
|
34773
34817
|
function toDate(argument) {
|
|
34774
34818
|
requiredArgs(1, arguments);
|
|
34775
34819
|
var argStr = Object.prototype.toString.call(argument);
|
|
34776
|
-
if (argument instanceof Date || _typeof
|
|
34820
|
+
if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
|
|
34777
34821
|
return new Date(argument.getTime());
|
|
34778
34822
|
} else if (typeof argument === "number" || argStr === "[object Number]") {
|
|
34779
34823
|
return new Date(argument);
|
|
@@ -36473,7 +36517,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36473
36517
|
var datesArray;
|
|
36474
36518
|
if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") {
|
|
36475
36519
|
datesArray = dirtyDatesArray;
|
|
36476
|
-
} else if (_typeof
|
|
36520
|
+
} else if (_typeof(dirtyDatesArray) === "object" && dirtyDatesArray !== null) {
|
|
36477
36521
|
datesArray = Array.prototype.slice.call(dirtyDatesArray);
|
|
36478
36522
|
} else {
|
|
36479
36523
|
return new Date(NaN);
|
|
@@ -36492,7 +36536,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36492
36536
|
var datesArray;
|
|
36493
36537
|
if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") {
|
|
36494
36538
|
datesArray = dirtyDatesArray;
|
|
36495
|
-
} else if (_typeof
|
|
36539
|
+
} else if (_typeof(dirtyDatesArray) === "object" && dirtyDatesArray !== null) {
|
|
36496
36540
|
datesArray = Array.prototype.slice.call(dirtyDatesArray);
|
|
36497
36541
|
} else {
|
|
36498
36542
|
return new Date(NaN);
|
|
@@ -36617,30 +36661,30 @@ var __publicField = (obj, key, value) => {
|
|
|
36617
36661
|
}
|
|
36618
36662
|
return time >= startTime && time <= endTime;
|
|
36619
36663
|
}
|
|
36620
|
-
function _arrayLikeToArray$
|
|
36664
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
36621
36665
|
if (len == null || len > arr.length)
|
|
36622
36666
|
len = arr.length;
|
|
36623
36667
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
36624
36668
|
arr2[i2] = arr[i2];
|
|
36625
36669
|
return arr2;
|
|
36626
36670
|
}
|
|
36627
|
-
function _unsupportedIterableToArray$
|
|
36671
|
+
function _unsupportedIterableToArray$1(o2, minLen) {
|
|
36628
36672
|
if (!o2)
|
|
36629
36673
|
return;
|
|
36630
36674
|
if (typeof o2 === "string")
|
|
36631
|
-
return _arrayLikeToArray$
|
|
36675
|
+
return _arrayLikeToArray$1(o2, minLen);
|
|
36632
36676
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
36633
36677
|
if (n2 === "Object" && o2.constructor)
|
|
36634
36678
|
n2 = o2.constructor.name;
|
|
36635
36679
|
if (n2 === "Map" || n2 === "Set")
|
|
36636
36680
|
return Array.from(o2);
|
|
36637
36681
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
36638
|
-
return _arrayLikeToArray$
|
|
36682
|
+
return _arrayLikeToArray$1(o2, minLen);
|
|
36639
36683
|
}
|
|
36640
36684
|
function _createForOfIteratorHelper(o2, allowArrayLike) {
|
|
36641
36685
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
36642
36686
|
if (!it2) {
|
|
36643
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$
|
|
36687
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$1(o2)) || allowArrayLike && o2 && typeof o2.length === "number") {
|
|
36644
36688
|
if (it2)
|
|
36645
36689
|
o2 = it2;
|
|
36646
36690
|
var i2 = 0;
|
|
@@ -36717,22 +36761,22 @@ var __publicField = (obj, key, value) => {
|
|
|
36717
36761
|
writable: false
|
|
36718
36762
|
});
|
|
36719
36763
|
if (superClass)
|
|
36720
|
-
_setPrototypeOf$
|
|
36764
|
+
_setPrototypeOf$2(subClass, superClass);
|
|
36721
36765
|
}
|
|
36722
36766
|
function _possibleConstructorReturn$1(self2, call) {
|
|
36723
|
-
if (call && (_typeof
|
|
36767
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
36724
36768
|
return call;
|
|
36725
36769
|
} else if (call !== void 0) {
|
|
36726
36770
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
36727
36771
|
}
|
|
36728
|
-
return _assertThisInitialized$
|
|
36772
|
+
return _assertThisInitialized$3(self2);
|
|
36729
36773
|
}
|
|
36730
36774
|
function _createSuper$1(Derived) {
|
|
36731
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
36775
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$2();
|
|
36732
36776
|
return function _createSuperInternal() {
|
|
36733
|
-
var Super = _getPrototypeOf$
|
|
36777
|
+
var Super = _getPrototypeOf$2(Derived), result;
|
|
36734
36778
|
if (hasNativeReflectConstruct) {
|
|
36735
|
-
var NewTarget = _getPrototypeOf$
|
|
36779
|
+
var NewTarget = _getPrototypeOf$2(this).constructor;
|
|
36736
36780
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
36737
36781
|
} else {
|
|
36738
36782
|
result = Super.apply(this, arguments);
|
|
@@ -36746,12 +36790,12 @@ var __publicField = (obj, key, value) => {
|
|
|
36746
36790
|
}
|
|
36747
36791
|
}
|
|
36748
36792
|
function _toPrimitive(input, hint) {
|
|
36749
|
-
if (_typeof
|
|
36793
|
+
if (_typeof(input) !== "object" || input === null)
|
|
36750
36794
|
return input;
|
|
36751
36795
|
var prim = input[Symbol.toPrimitive];
|
|
36752
36796
|
if (prim !== void 0) {
|
|
36753
36797
|
var res = prim.call(input, hint || "default");
|
|
36754
|
-
if (_typeof
|
|
36798
|
+
if (_typeof(res) !== "object")
|
|
36755
36799
|
return res;
|
|
36756
36800
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36757
36801
|
}
|
|
@@ -36759,7 +36803,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36759
36803
|
}
|
|
36760
36804
|
function _toPropertyKey(arg) {
|
|
36761
36805
|
var key = _toPrimitive(arg, "string");
|
|
36762
|
-
return _typeof
|
|
36806
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
36763
36807
|
}
|
|
36764
36808
|
function _defineProperties$1(target, props) {
|
|
36765
36809
|
for (var i2 = 0; i2 < props.length; i2++) {
|
|
@@ -36781,7 +36825,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36781
36825
|
});
|
|
36782
36826
|
return Constructor;
|
|
36783
36827
|
}
|
|
36784
|
-
function _defineProperty$
|
|
36828
|
+
function _defineProperty$4(obj, key, value) {
|
|
36785
36829
|
key = _toPropertyKey(key);
|
|
36786
36830
|
if (key in obj) {
|
|
36787
36831
|
Object.defineProperty(obj, key, {
|
|
@@ -36799,8 +36843,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36799
36843
|
var Setter = /* @__PURE__ */ function() {
|
|
36800
36844
|
function Setter2() {
|
|
36801
36845
|
_classCallCheck$1(this, Setter2);
|
|
36802
|
-
_defineProperty$
|
|
36803
|
-
_defineProperty$
|
|
36846
|
+
_defineProperty$4(this, "priority", void 0);
|
|
36847
|
+
_defineProperty$4(this, "subPriority", 0);
|
|
36804
36848
|
}
|
|
36805
36849
|
_createClass$1(Setter2, [{
|
|
36806
36850
|
key: "validate",
|
|
@@ -36849,8 +36893,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36849
36893
|
args[_key] = arguments[_key];
|
|
36850
36894
|
}
|
|
36851
36895
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
36852
|
-
_defineProperty$
|
|
36853
|
-
_defineProperty$
|
|
36896
|
+
_defineProperty$4(_assertThisInitialized$3(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
|
|
36897
|
+
_defineProperty$4(_assertThisInitialized$3(_this2), "subPriority", -1);
|
|
36854
36898
|
return _this2;
|
|
36855
36899
|
}
|
|
36856
36900
|
_createClass$1(DateToSystemTimezoneSetter2, [{
|
|
@@ -36870,9 +36914,9 @@ var __publicField = (obj, key, value) => {
|
|
|
36870
36914
|
var Parser = /* @__PURE__ */ function() {
|
|
36871
36915
|
function Parser2() {
|
|
36872
36916
|
_classCallCheck$1(this, Parser2);
|
|
36873
|
-
_defineProperty$
|
|
36874
|
-
_defineProperty$
|
|
36875
|
-
_defineProperty$
|
|
36917
|
+
_defineProperty$4(this, "incompatibleTokens", void 0);
|
|
36918
|
+
_defineProperty$4(this, "priority", void 0);
|
|
36919
|
+
_defineProperty$4(this, "subPriority", void 0);
|
|
36876
36920
|
}
|
|
36877
36921
|
_createClass$1(Parser2, [{
|
|
36878
36922
|
key: "run",
|
|
@@ -36904,8 +36948,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36904
36948
|
args[_key] = arguments[_key];
|
|
36905
36949
|
}
|
|
36906
36950
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36907
|
-
_defineProperty$
|
|
36908
|
-
_defineProperty$
|
|
36951
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 140);
|
|
36952
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
36909
36953
|
return _this;
|
|
36910
36954
|
}
|
|
36911
36955
|
_createClass$1(EraParser2, [{
|
|
@@ -37091,8 +37135,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37091
37135
|
args[_key] = arguments[_key];
|
|
37092
37136
|
}
|
|
37093
37137
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37094
|
-
_defineProperty$
|
|
37095
|
-
_defineProperty$
|
|
37138
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 130);
|
|
37139
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
37096
37140
|
return _this;
|
|
37097
37141
|
}
|
|
37098
37142
|
_createClass$1(YearParser2, [{
|
|
@@ -37148,8 +37192,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37148
37192
|
args[_key] = arguments[_key];
|
|
37149
37193
|
}
|
|
37150
37194
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37151
|
-
_defineProperty$
|
|
37152
|
-
_defineProperty$
|
|
37195
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 130);
|
|
37196
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]);
|
|
37153
37197
|
return _this;
|
|
37154
37198
|
}
|
|
37155
37199
|
_createClass$1(LocalWeekYearParser2, [{
|
|
@@ -37205,8 +37249,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37205
37249
|
args[_key] = arguments[_key];
|
|
37206
37250
|
}
|
|
37207
37251
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37208
|
-
_defineProperty$
|
|
37209
|
-
_defineProperty$
|
|
37252
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 130);
|
|
37253
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]);
|
|
37210
37254
|
return _this;
|
|
37211
37255
|
}
|
|
37212
37256
|
_createClass$1(ISOWeekYearParser2, [{
|
|
@@ -37238,8 +37282,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37238
37282
|
args[_key] = arguments[_key];
|
|
37239
37283
|
}
|
|
37240
37284
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37241
|
-
_defineProperty$
|
|
37242
|
-
_defineProperty$
|
|
37285
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 130);
|
|
37286
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
37243
37287
|
return _this;
|
|
37244
37288
|
}
|
|
37245
37289
|
_createClass$1(ExtendedYearParser2, [{
|
|
@@ -37270,8 +37314,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37270
37314
|
args[_key] = arguments[_key];
|
|
37271
37315
|
}
|
|
37272
37316
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37273
|
-
_defineProperty$
|
|
37274
|
-
_defineProperty$
|
|
37317
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 120);
|
|
37318
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]);
|
|
37275
37319
|
return _this;
|
|
37276
37320
|
}
|
|
37277
37321
|
_createClass$1(QuarterParser2, [{
|
|
@@ -37337,8 +37381,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37337
37381
|
args[_key] = arguments[_key];
|
|
37338
37382
|
}
|
|
37339
37383
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37340
|
-
_defineProperty$
|
|
37341
|
-
_defineProperty$
|
|
37384
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 120);
|
|
37385
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]);
|
|
37342
37386
|
return _this;
|
|
37343
37387
|
}
|
|
37344
37388
|
_createClass$1(StandAloneQuarterParser2, [{
|
|
@@ -37404,8 +37448,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37404
37448
|
args[_key] = arguments[_key];
|
|
37405
37449
|
}
|
|
37406
37450
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37407
|
-
_defineProperty$
|
|
37408
|
-
_defineProperty$
|
|
37451
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37452
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 110);
|
|
37409
37453
|
return _this;
|
|
37410
37454
|
}
|
|
37411
37455
|
_createClass$1(MonthParser2, [{
|
|
@@ -37475,8 +37519,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37475
37519
|
args[_key] = arguments[_key];
|
|
37476
37520
|
}
|
|
37477
37521
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37478
|
-
_defineProperty$
|
|
37479
|
-
_defineProperty$
|
|
37522
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 110);
|
|
37523
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37480
37524
|
return _this;
|
|
37481
37525
|
}
|
|
37482
37526
|
_createClass$1(StandAloneMonthParser2, [{
|
|
@@ -37554,8 +37598,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37554
37598
|
args[_key] = arguments[_key];
|
|
37555
37599
|
}
|
|
37556
37600
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37557
|
-
_defineProperty$
|
|
37558
|
-
_defineProperty$
|
|
37601
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 100);
|
|
37602
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]);
|
|
37559
37603
|
return _this;
|
|
37560
37604
|
}
|
|
37561
37605
|
_createClass$1(LocalWeekParser2, [{
|
|
@@ -37603,8 +37647,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37603
37647
|
args[_key] = arguments[_key];
|
|
37604
37648
|
}
|
|
37605
37649
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37606
|
-
_defineProperty$
|
|
37607
|
-
_defineProperty$
|
|
37650
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 100);
|
|
37651
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]);
|
|
37608
37652
|
return _this;
|
|
37609
37653
|
}
|
|
37610
37654
|
_createClass$1(ISOWeekParser2, [{
|
|
@@ -37646,9 +37690,9 @@ var __publicField = (obj, key, value) => {
|
|
|
37646
37690
|
args[_key] = arguments[_key];
|
|
37647
37691
|
}
|
|
37648
37692
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37649
|
-
_defineProperty$
|
|
37650
|
-
_defineProperty$
|
|
37651
|
-
_defineProperty$
|
|
37693
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
37694
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "subPriority", 1);
|
|
37695
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37652
37696
|
return _this;
|
|
37653
37697
|
}
|
|
37654
37698
|
_createClass$1(DateParser2, [{
|
|
@@ -37697,9 +37741,9 @@ var __publicField = (obj, key, value) => {
|
|
|
37697
37741
|
args[_key] = arguments[_key];
|
|
37698
37742
|
}
|
|
37699
37743
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37700
|
-
_defineProperty$
|
|
37701
|
-
_defineProperty$
|
|
37702
|
-
_defineProperty$
|
|
37744
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
37745
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "subpriority", 1);
|
|
37746
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]);
|
|
37703
37747
|
return _this;
|
|
37704
37748
|
}
|
|
37705
37749
|
_createClass$1(DayOfYearParser2, [{
|
|
@@ -37765,8 +37809,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37765
37809
|
args[_key] = arguments[_key];
|
|
37766
37810
|
}
|
|
37767
37811
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37768
|
-
_defineProperty$
|
|
37769
|
-
_defineProperty$
|
|
37812
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
37813
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
37770
37814
|
return _this;
|
|
37771
37815
|
}
|
|
37772
37816
|
_createClass$1(DayParser2, [{
|
|
@@ -37841,8 +37885,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37841
37885
|
args[_key] = arguments[_key];
|
|
37842
37886
|
}
|
|
37843
37887
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37844
|
-
_defineProperty$
|
|
37845
|
-
_defineProperty$
|
|
37888
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
37889
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]);
|
|
37846
37890
|
return _this;
|
|
37847
37891
|
}
|
|
37848
37892
|
_createClass$1(LocalDayParser2, [{
|
|
@@ -37926,8 +37970,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37926
37970
|
args[_key] = arguments[_key];
|
|
37927
37971
|
}
|
|
37928
37972
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37929
|
-
_defineProperty$
|
|
37930
|
-
_defineProperty$
|
|
37973
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
37974
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]);
|
|
37931
37975
|
return _this;
|
|
37932
37976
|
}
|
|
37933
37977
|
_createClass$1(StandAloneLocalDayParser2, [{
|
|
@@ -38026,8 +38070,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38026
38070
|
args[_key] = arguments[_key];
|
|
38027
38071
|
}
|
|
38028
38072
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38029
|
-
_defineProperty$
|
|
38030
|
-
_defineProperty$
|
|
38073
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 90);
|
|
38074
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]);
|
|
38031
38075
|
return _this;
|
|
38032
38076
|
}
|
|
38033
38077
|
_createClass$1(ISODayParser2, [{
|
|
@@ -38113,8 +38157,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38113
38157
|
args[_key] = arguments[_key];
|
|
38114
38158
|
}
|
|
38115
38159
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38116
|
-
_defineProperty$
|
|
38117
|
-
_defineProperty$
|
|
38160
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 80);
|
|
38161
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
38118
38162
|
return _this;
|
|
38119
38163
|
}
|
|
38120
38164
|
_createClass$1(AMPMParser2, [{
|
|
@@ -38169,8 +38213,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38169
38213
|
args[_key] = arguments[_key];
|
|
38170
38214
|
}
|
|
38171
38215
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38172
|
-
_defineProperty$
|
|
38173
|
-
_defineProperty$
|
|
38216
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 80);
|
|
38217
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
38174
38218
|
return _this;
|
|
38175
38219
|
}
|
|
38176
38220
|
_createClass$1(AMPMMidnightParser2, [{
|
|
@@ -38225,8 +38269,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38225
38269
|
args[_key] = arguments[_key];
|
|
38226
38270
|
}
|
|
38227
38271
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38228
|
-
_defineProperty$
|
|
38229
|
-
_defineProperty$
|
|
38272
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 80);
|
|
38273
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
38230
38274
|
return _this;
|
|
38231
38275
|
}
|
|
38232
38276
|
_createClass$1(DayPeriodParser2, [{
|
|
@@ -38281,8 +38325,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38281
38325
|
args[_key] = arguments[_key];
|
|
38282
38326
|
}
|
|
38283
38327
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38284
|
-
_defineProperty$
|
|
38285
|
-
_defineProperty$
|
|
38328
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 70);
|
|
38329
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
38286
38330
|
return _this;
|
|
38287
38331
|
}
|
|
38288
38332
|
_createClass$1(Hour1to12Parser2, [{
|
|
@@ -38330,8 +38374,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38330
38374
|
args[_key] = arguments[_key];
|
|
38331
38375
|
}
|
|
38332
38376
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38333
|
-
_defineProperty$
|
|
38334
|
-
_defineProperty$
|
|
38377
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 70);
|
|
38378
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
38335
38379
|
return _this;
|
|
38336
38380
|
}
|
|
38337
38381
|
_createClass$1(Hour0to23Parser2, [{
|
|
@@ -38372,8 +38416,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38372
38416
|
args[_key] = arguments[_key];
|
|
38373
38417
|
}
|
|
38374
38418
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38375
|
-
_defineProperty$
|
|
38376
|
-
_defineProperty$
|
|
38419
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 70);
|
|
38420
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
38377
38421
|
return _this;
|
|
38378
38422
|
}
|
|
38379
38423
|
_createClass$1(Hour0To11Parser2, [{
|
|
@@ -38419,8 +38463,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38419
38463
|
args[_key] = arguments[_key];
|
|
38420
38464
|
}
|
|
38421
38465
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38422
|
-
_defineProperty$
|
|
38423
|
-
_defineProperty$
|
|
38466
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 70);
|
|
38467
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
38424
38468
|
return _this;
|
|
38425
38469
|
}
|
|
38426
38470
|
_createClass$1(Hour1To24Parser2, [{
|
|
@@ -38462,8 +38506,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38462
38506
|
args[_key] = arguments[_key];
|
|
38463
38507
|
}
|
|
38464
38508
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38465
|
-
_defineProperty$
|
|
38466
|
-
_defineProperty$
|
|
38509
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 60);
|
|
38510
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["t", "T"]);
|
|
38467
38511
|
return _this;
|
|
38468
38512
|
}
|
|
38469
38513
|
_createClass$1(MinuteParser2, [{
|
|
@@ -38504,8 +38548,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38504
38548
|
args[_key] = arguments[_key];
|
|
38505
38549
|
}
|
|
38506
38550
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38507
|
-
_defineProperty$
|
|
38508
|
-
_defineProperty$
|
|
38551
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 50);
|
|
38552
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["t", "T"]);
|
|
38509
38553
|
return _this;
|
|
38510
38554
|
}
|
|
38511
38555
|
_createClass$1(SecondParser2, [{
|
|
@@ -38546,8 +38590,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38546
38590
|
args[_key] = arguments[_key];
|
|
38547
38591
|
}
|
|
38548
38592
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38549
|
-
_defineProperty$
|
|
38550
|
-
_defineProperty$
|
|
38593
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 30);
|
|
38594
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["t", "T"]);
|
|
38551
38595
|
return _this;
|
|
38552
38596
|
}
|
|
38553
38597
|
_createClass$1(FractionOfSecondParser2, [{
|
|
@@ -38577,8 +38621,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38577
38621
|
args[_key] = arguments[_key];
|
|
38578
38622
|
}
|
|
38579
38623
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38580
|
-
_defineProperty$
|
|
38581
|
-
_defineProperty$
|
|
38624
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 10);
|
|
38625
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["t", "T", "x"]);
|
|
38582
38626
|
return _this;
|
|
38583
38627
|
}
|
|
38584
38628
|
_createClass$1(ISOTimezoneWithZParser2, [{
|
|
@@ -38619,8 +38663,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38619
38663
|
args[_key] = arguments[_key];
|
|
38620
38664
|
}
|
|
38621
38665
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38622
|
-
_defineProperty$
|
|
38623
|
-
_defineProperty$
|
|
38666
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 10);
|
|
38667
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", ["t", "T", "X"]);
|
|
38624
38668
|
return _this;
|
|
38625
38669
|
}
|
|
38626
38670
|
_createClass$1(ISOTimezoneParser2, [{
|
|
@@ -38661,8 +38705,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38661
38705
|
args[_key] = arguments[_key];
|
|
38662
38706
|
}
|
|
38663
38707
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38664
|
-
_defineProperty$
|
|
38665
|
-
_defineProperty$
|
|
38708
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 40);
|
|
38709
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", "*");
|
|
38666
38710
|
return _this;
|
|
38667
38711
|
}
|
|
38668
38712
|
_createClass$1(TimestampSecondsParser2, [{
|
|
@@ -38690,8 +38734,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38690
38734
|
args[_key] = arguments[_key];
|
|
38691
38735
|
}
|
|
38692
38736
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38693
|
-
_defineProperty$
|
|
38694
|
-
_defineProperty$
|
|
38737
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "priority", 20);
|
|
38738
|
+
_defineProperty$4(_assertThisInitialized$3(_this), "incompatibleTokens", "*");
|
|
38695
38739
|
return _this;
|
|
38696
38740
|
}
|
|
38697
38741
|
_createClass$1(TimestampMillisecondsParser2, [{
|
|
@@ -38844,7 +38888,7 @@ var __publicField = (obj, key, value) => {
|
|
|
38844
38888
|
};
|
|
38845
38889
|
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
38846
38890
|
var _ret = _loop();
|
|
38847
|
-
if (_typeof
|
|
38891
|
+
if (_typeof(_ret) === "object")
|
|
38848
38892
|
return _ret.v;
|
|
38849
38893
|
}
|
|
38850
38894
|
} catch (err2) {
|
|
@@ -39094,7 +39138,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39094
39138
|
};
|
|
39095
39139
|
return _setPrototypeOf$1(o2, p2);
|
|
39096
39140
|
}
|
|
39097
|
-
function _objectWithoutPropertiesLoose$
|
|
39141
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
39098
39142
|
if (source == null)
|
|
39099
39143
|
return {};
|
|
39100
39144
|
var target = {};
|
|
@@ -39108,7 +39152,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39108
39152
|
}
|
|
39109
39153
|
return target;
|
|
39110
39154
|
}
|
|
39111
|
-
function _assertThisInitialized$
|
|
39155
|
+
function _assertThisInitialized$2(self2) {
|
|
39112
39156
|
if (self2 === void 0) {
|
|
39113
39157
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
39114
39158
|
}
|
|
@@ -39240,7 +39284,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39240
39284
|
_this.__outsideClickHandler(event);
|
|
39241
39285
|
};
|
|
39242
39286
|
events.forEach(function(eventName) {
|
|
39243
|
-
document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized$
|
|
39287
|
+
document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized$2(_this), eventName));
|
|
39244
39288
|
});
|
|
39245
39289
|
};
|
|
39246
39290
|
_this.disableOnClickOutside = function() {
|
|
@@ -39252,7 +39296,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39252
39296
|
events = [events];
|
|
39253
39297
|
}
|
|
39254
39298
|
events.forEach(function(eventName) {
|
|
39255
|
-
return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized$
|
|
39299
|
+
return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized$2(_this), eventName));
|
|
39256
39300
|
});
|
|
39257
39301
|
delete handlersMap[_this._uid];
|
|
39258
39302
|
}
|
|
@@ -39296,7 +39340,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39296
39340
|
_proto.render = function render2() {
|
|
39297
39341
|
var _this$props = this.props;
|
|
39298
39342
|
_this$props.excludeScrollbar;
|
|
39299
|
-
var props = _objectWithoutPropertiesLoose$
|
|
39343
|
+
var props = _objectWithoutPropertiesLoose$1(_this$props, ["excludeScrollbar"]);
|
|
39300
39344
|
if (WrappedComponent.prototype && WrappedComponent.prototype.isReactComponent) {
|
|
39301
39345
|
props.ref = this.getRef;
|
|
39302
39346
|
} else {
|
|
@@ -41269,7 +41313,7 @@ var __publicField = (obj, key, value) => {
|
|
|
41269
41313
|
var _a, _b;
|
|
41270
41314
|
const minYear = (_a = minDate === null || minDate === void 0 ? void 0 : minDate.getFullYear()) !== null && _a !== void 0 ? _a : 1900;
|
|
41271
41315
|
const maxYear = (_b = maxDate === null || maxDate === void 0 ? void 0 : maxDate.getFullYear()) !== null && _b !== void 0 ? _b : 2100;
|
|
41272
|
-
return lodash$2.exports.range(minYear, maxYear, 1).map((val) => ({ label: val.toString(), value: val }));
|
|
41316
|
+
return lodash$2.exports.range(minYear, maxYear + 1, 1).map((val) => ({ label: val.toString(), value: val }));
|
|
41273
41317
|
}
|
|
41274
41318
|
const IGNORE_CLASSNAME = "react-datepicker-ignore-onclickoutside";
|
|
41275
41319
|
const DatepickerWrapper$1 = styled__default.default.div`
|
|
@@ -41645,6 +41689,8 @@ var __publicField = (obj, key, value) => {
|
|
|
41645
41689
|
const formatToApply = (_b = props.dateFormat) !== null && _b !== void 0 ? _b : "dd/MM/yyyy";
|
|
41646
41690
|
const [startDate, setStartDate] = React$2.useState(() => getInitialDate(value, formatToApply, true));
|
|
41647
41691
|
const [endDate, setEndDate] = React$2.useState(() => getInitialDate(value, formatToApply, false));
|
|
41692
|
+
const selectedDateRef = React$2.useRef(selectedDate);
|
|
41693
|
+
selectedDateRef.current = selectedDate;
|
|
41648
41694
|
const datepickerRef = React$2.useRef(null);
|
|
41649
41695
|
const extraProps = React$2.useMemo(() => {
|
|
41650
41696
|
if (props.selectsRange) {
|
|
@@ -41724,11 +41770,18 @@ var __publicField = (obj, key, value) => {
|
|
|
41724
41770
|
React$2.useEffect(() => {
|
|
41725
41771
|
var _a2;
|
|
41726
41772
|
const newValue = (_a2 = props.value) !== null && _a2 !== void 0 ? _a2 : props.initialValue;
|
|
41727
|
-
|
|
41728
|
-
|
|
41729
|
-
|
|
41730
|
-
|
|
41731
|
-
|
|
41773
|
+
const newDate = newValue || (props.selectsRange ? [null, null] : null);
|
|
41774
|
+
if (JSON.stringify(newDate) === JSON.stringify(selectedDateRef.current)) {
|
|
41775
|
+
return;
|
|
41776
|
+
}
|
|
41777
|
+
setSelectedDate(newDate);
|
|
41778
|
+
const newTime = getInitialTime(newValue, props.selectsRange);
|
|
41779
|
+
setSelectedTime(newTime);
|
|
41780
|
+
const newStartDate = getInitialDate(newValue, formatToApply, true);
|
|
41781
|
+
setStartDate(newStartDate);
|
|
41782
|
+
const newEndDate = getInitialDate(newValue, formatToApply, false);
|
|
41783
|
+
setEndDate(newEndDate);
|
|
41784
|
+
}, [props.value, props.initialValue]);
|
|
41732
41785
|
React$2.useEffect(() => {
|
|
41733
41786
|
var _a2;
|
|
41734
41787
|
let time = selectedTime;
|
|
@@ -42134,17 +42187,17 @@ var __publicField = (obj, key, value) => {
|
|
|
42134
42187
|
});
|
|
42135
42188
|
};
|
|
42136
42189
|
}
|
|
42137
|
-
function _toConsumableArray$
|
|
42138
|
-
return _arrayWithoutHoles$
|
|
42190
|
+
function _toConsumableArray$1(arr) {
|
|
42191
|
+
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
|
|
42139
42192
|
}
|
|
42140
|
-
function _nonIterableSpread$
|
|
42193
|
+
function _nonIterableSpread$1() {
|
|
42141
42194
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
42142
42195
|
}
|
|
42143
|
-
function _iterableToArray$
|
|
42196
|
+
function _iterableToArray$1(iter) {
|
|
42144
42197
|
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]")
|
|
42145
42198
|
return Array.from(iter);
|
|
42146
42199
|
}
|
|
42147
|
-
function _arrayWithoutHoles$
|
|
42200
|
+
function _arrayWithoutHoles$1(arr) {
|
|
42148
42201
|
if (Array.isArray(arr)) {
|
|
42149
42202
|
for (var i2 = 0, arr2 = new Array(arr.length); i2 < arr.length; i2++) {
|
|
42150
42203
|
arr2[i2] = arr[i2];
|
|
@@ -42190,7 +42243,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42190
42243
|
if (Array.isArray(arr))
|
|
42191
42244
|
return arr;
|
|
42192
42245
|
}
|
|
42193
|
-
function ownKeys$
|
|
42246
|
+
function ownKeys$1(object2, enumerableOnly) {
|
|
42194
42247
|
var keys2 = Object.keys(object2);
|
|
42195
42248
|
if (Object.getOwnPropertySymbols) {
|
|
42196
42249
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -42206,20 +42259,20 @@ var __publicField = (obj, key, value) => {
|
|
|
42206
42259
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
42207
42260
|
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
42208
42261
|
if (i2 % 2) {
|
|
42209
|
-
ownKeys$
|
|
42210
|
-
_defineProperty$
|
|
42262
|
+
ownKeys$1(source, true).forEach(function(key) {
|
|
42263
|
+
_defineProperty$3(target, key, source[key]);
|
|
42211
42264
|
});
|
|
42212
42265
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
42213
42266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
42214
42267
|
} else {
|
|
42215
|
-
ownKeys$
|
|
42268
|
+
ownKeys$1(source).forEach(function(key) {
|
|
42216
42269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
42217
42270
|
});
|
|
42218
42271
|
}
|
|
42219
42272
|
}
|
|
42220
42273
|
return target;
|
|
42221
42274
|
}
|
|
42222
|
-
function _defineProperty$
|
|
42275
|
+
function _defineProperty$3(obj, key, value) {
|
|
42223
42276
|
if (key in obj) {
|
|
42224
42277
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
42225
42278
|
} else {
|
|
@@ -42227,10 +42280,10 @@ var __publicField = (obj, key, value) => {
|
|
|
42227
42280
|
}
|
|
42228
42281
|
return obj;
|
|
42229
42282
|
}
|
|
42230
|
-
function _objectWithoutProperties
|
|
42283
|
+
function _objectWithoutProperties(source, excluded) {
|
|
42231
42284
|
if (source == null)
|
|
42232
42285
|
return {};
|
|
42233
|
-
var target = _objectWithoutPropertiesLoose
|
|
42286
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
42234
42287
|
var key, i2;
|
|
42235
42288
|
if (Object.getOwnPropertySymbols) {
|
|
42236
42289
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -42245,7 +42298,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42245
42298
|
}
|
|
42246
42299
|
return target;
|
|
42247
42300
|
}
|
|
42248
|
-
function _objectWithoutPropertiesLoose
|
|
42301
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
42249
42302
|
if (source == null)
|
|
42250
42303
|
return {};
|
|
42251
42304
|
var target = {};
|
|
@@ -42260,8 +42313,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42260
42313
|
return target;
|
|
42261
42314
|
}
|
|
42262
42315
|
var Dropzone = React$2.forwardRef(function(_ref2, ref) {
|
|
42263
|
-
var children = _ref2.children, params = _objectWithoutProperties
|
|
42264
|
-
var _useDropzone = useDropzone(params), open2 = _useDropzone.open, props = _objectWithoutProperties
|
|
42316
|
+
var children = _ref2.children, params = _objectWithoutProperties(_ref2, ["children"]);
|
|
42317
|
+
var _useDropzone = useDropzone(params), open2 = _useDropzone.open, props = _objectWithoutProperties(_useDropzone, ["open"]);
|
|
42265
42318
|
React$2.useImperativeHandle(ref, function() {
|
|
42266
42319
|
return {
|
|
42267
42320
|
open: open2
|
|
@@ -42394,7 +42447,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42394
42447
|
event.preventDefault();
|
|
42395
42448
|
event.persist();
|
|
42396
42449
|
stopPropagation(event);
|
|
42397
|
-
dragTargetsRef.current = [].concat(_toConsumableArray$
|
|
42450
|
+
dragTargetsRef.current = [].concat(_toConsumableArray$1(dragTargetsRef.current), [event.target]);
|
|
42398
42451
|
if (isEvtWithFiles(event)) {
|
|
42399
42452
|
Promise.resolve(getFilesFromEvent(event)).then(function(draggedFiles2) {
|
|
42400
42453
|
if (isPropagationStopped(event) && !noDragEventsBubbling) {
|
|
@@ -42522,8 +42575,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42522
42575
|
};
|
|
42523
42576
|
var getRootProps = React$2.useMemo(function() {
|
|
42524
42577
|
return function() {
|
|
42525
|
-
var _ref3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, onKeyDown = _ref3.onKeyDown, onFocus = _ref3.onFocus, onBlur = _ref3.onBlur, onClick = _ref3.onClick, onDragEnter2 = _ref3.onDragEnter, onDragOver2 = _ref3.onDragOver, onDragLeave2 = _ref3.onDragLeave, onDrop2 = _ref3.onDrop, rest = _objectWithoutProperties
|
|
42526
|
-
return _objectSpread(_defineProperty$
|
|
42578
|
+
var _ref3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, onKeyDown = _ref3.onKeyDown, onFocus = _ref3.onFocus, onBlur = _ref3.onBlur, onClick = _ref3.onClick, onDragEnter2 = _ref3.onDragEnter, onDragOver2 = _ref3.onDragOver, onDragLeave2 = _ref3.onDragLeave, onDrop2 = _ref3.onDrop, rest = _objectWithoutProperties(_ref3, ["refKey", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"]);
|
|
42579
|
+
return _objectSpread(_defineProperty$3({
|
|
42527
42580
|
onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
|
|
42528
42581
|
onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
|
|
42529
42582
|
onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
|
|
@@ -42542,8 +42595,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42542
42595
|
}, []);
|
|
42543
42596
|
var getInputProps = React$2.useMemo(function() {
|
|
42544
42597
|
return function() {
|
|
42545
|
-
var _ref4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref4$refKey = _ref4.refKey, refKey = _ref4$refKey === void 0 ? "ref" : _ref4$refKey, onChange2 = _ref4.onChange, onClick = _ref4.onClick, rest = _objectWithoutProperties
|
|
42546
|
-
var inputProps = _defineProperty$
|
|
42598
|
+
var _ref4 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref4$refKey = _ref4.refKey, refKey = _ref4$refKey === void 0 ? "ref" : _ref4$refKey, onChange2 = _ref4.onChange, onClick = _ref4.onClick, rest = _objectWithoutProperties(_ref4, ["refKey", "onChange", "onClick"]);
|
|
42599
|
+
var inputProps = _defineProperty$3({
|
|
42547
42600
|
accept,
|
|
42548
42601
|
multiple,
|
|
42549
42602
|
type: "file",
|
|
@@ -42920,7 +42973,6 @@ var __publicField = (obj, key, value) => {
|
|
|
42920
42973
|
overflow: hidden;
|
|
42921
42974
|
flex: 1 1 auto;
|
|
42922
42975
|
|
|
42923
|
-
height: 100%;
|
|
42924
42976
|
margin-right: 0.5rem;
|
|
42925
42977
|
padding: 0rem;
|
|
42926
42978
|
|
|
@@ -42947,6 +42999,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42947
42999
|
align-items: center;
|
|
42948
43000
|
|
|
42949
43001
|
width: 100%;
|
|
43002
|
+
height: 100%;
|
|
42950
43003
|
max-height: ${(props) => props.maxRows * (tagHeight + tagTopMargin) - 0.25}rem;
|
|
42951
43004
|
`;
|
|
42952
43005
|
styled__default.default.span`
|
|
@@ -43314,8 +43367,9 @@ var __publicField = (obj, key, value) => {
|
|
|
43314
43367
|
background-color: ${(props) => props.theme.colors.grey1};
|
|
43315
43368
|
border: 1px solid
|
|
43316
43369
|
${(props) => {
|
|
43317
|
-
if (props.errorMsg)
|
|
43370
|
+
if (props.errorMsg) {
|
|
43318
43371
|
return props.theme.colors.error;
|
|
43372
|
+
}
|
|
43319
43373
|
return props.theme.colors.grey1;
|
|
43320
43374
|
}};
|
|
43321
43375
|
border-radius: 0.25rem;
|
|
@@ -43323,8 +43377,9 @@ var __publicField = (obj, key, value) => {
|
|
|
43323
43377
|
:focus-within:not(:disabled) {
|
|
43324
43378
|
border: 1px solid
|
|
43325
43379
|
${(props) => {
|
|
43326
|
-
if (props.errorMsg)
|
|
43380
|
+
if (props.errorMsg) {
|
|
43327
43381
|
return props.theme.colors.error;
|
|
43382
|
+
}
|
|
43328
43383
|
return props.theme.colors.grey3;
|
|
43329
43384
|
}};
|
|
43330
43385
|
|
|
@@ -43353,10 +43408,12 @@ var __publicField = (obj, key, value) => {
|
|
|
43353
43408
|
background-color: ${(props) => props.disabled ? props.theme.colors.grey1 : props.theme.colors.grey2};
|
|
43354
43409
|
border: 1px solid
|
|
43355
43410
|
${(props) => {
|
|
43356
|
-
if (props.disabled)
|
|
43411
|
+
if (props.disabled) {
|
|
43357
43412
|
return props.theme.colors.grey1;
|
|
43358
|
-
|
|
43413
|
+
}
|
|
43414
|
+
if (props.errorMsg) {
|
|
43359
43415
|
return props.theme.colors.error;
|
|
43416
|
+
}
|
|
43360
43417
|
return props.theme.colors.grey2;
|
|
43361
43418
|
}};
|
|
43362
43419
|
|
|
@@ -43368,6 +43425,11 @@ var __publicField = (obj, key, value) => {
|
|
|
43368
43425
|
background-color: ${(props) => props.disabled ? props.theme.colors.grey1 : props.theme.colors.grey2};
|
|
43369
43426
|
}
|
|
43370
43427
|
}
|
|
43428
|
+
|
|
43429
|
+
// Fix: Overrides the 22ch default width of the nested regular input
|
|
43430
|
+
> div:first-child {
|
|
43431
|
+
width: 100%;
|
|
43432
|
+
}
|
|
43371
43433
|
`;
|
|
43372
43434
|
const numericFilter = (integerOnly) => (e3) => {
|
|
43373
43435
|
if (parseInt(e3.key) || parseInt(e3.key) === 0) {
|
|
@@ -43386,10 +43448,12 @@ var __publicField = (obj, key, value) => {
|
|
|
43386
43448
|
return false;
|
|
43387
43449
|
};
|
|
43388
43450
|
const getInitialValue = (value, initialValue) => {
|
|
43389
|
-
if (Number.isFinite(value))
|
|
43451
|
+
if (Number.isFinite(value)) {
|
|
43390
43452
|
return String(value);
|
|
43391
|
-
|
|
43453
|
+
}
|
|
43454
|
+
if (Number.isFinite(initialValue)) {
|
|
43392
43455
|
return String(initialValue);
|
|
43456
|
+
}
|
|
43393
43457
|
return "";
|
|
43394
43458
|
};
|
|
43395
43459
|
React__namespace.forwardRef((props, ref) => {
|
|
@@ -43397,8 +43461,9 @@ var __publicField = (obj, key, value) => {
|
|
|
43397
43461
|
const [input, setInput] = React$2.useState(getInitialValue(props.value, props.initialValue));
|
|
43398
43462
|
const step = (value) => {
|
|
43399
43463
|
var _a;
|
|
43400
|
-
if (!input || input === "-")
|
|
43464
|
+
if (!input || input === "-") {
|
|
43401
43465
|
return;
|
|
43466
|
+
}
|
|
43402
43467
|
const isFloat = input.includes(".");
|
|
43403
43468
|
const parsedValue = isFloat ? parseFloat(input) : parseInt(input);
|
|
43404
43469
|
let nextValueNumber = parsedValue + value;
|
|
@@ -43422,28 +43487,34 @@ var __publicField = (obj, key, value) => {
|
|
|
43422
43487
|
};
|
|
43423
43488
|
const onKeyDown = (e3) => {
|
|
43424
43489
|
var _a;
|
|
43425
|
-
if (!props.stepper)
|
|
43490
|
+
if (!props.stepper) {
|
|
43426
43491
|
return;
|
|
43492
|
+
}
|
|
43427
43493
|
const stepSkip = Math.abs((_a = props.stepSkip) !== null && _a !== void 0 ? _a : 1);
|
|
43428
|
-
if (e3.key === Key.UP)
|
|
43494
|
+
if (e3.key === Key.UP) {
|
|
43429
43495
|
step(stepSkip);
|
|
43430
|
-
if (e3.key === Key.DOWN)
|
|
43431
|
-
step(stepSkip * -1);
|
|
43432
|
-
};
|
|
43433
|
-
const onChange2 = React$2.useCallback((value, e3) => {
|
|
43434
|
-
var _a, _b;
|
|
43435
|
-
const parsed = props.integerOnly ? parseInt(value) : parseFloat(value);
|
|
43436
|
-
if (props.value === void 0) {
|
|
43437
|
-
setInput(value);
|
|
43438
|
-
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, parsed, e3);
|
|
43439
|
-
return;
|
|
43440
43496
|
}
|
|
43441
|
-
if (
|
|
43442
|
-
|
|
43443
|
-
return;
|
|
43497
|
+
if (e3.key === Key.DOWN) {
|
|
43498
|
+
step(stepSkip * -1);
|
|
43444
43499
|
}
|
|
43445
|
-
|
|
43446
|
-
|
|
43500
|
+
};
|
|
43501
|
+
const onChange2 = React$2.useCallback(
|
|
43502
|
+
(value, e3) => {
|
|
43503
|
+
var _a, _b;
|
|
43504
|
+
const parsed = props.integerOnly ? parseInt(value) : parseFloat(value);
|
|
43505
|
+
if (props.value === void 0) {
|
|
43506
|
+
setInput(value);
|
|
43507
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, parsed, e3);
|
|
43508
|
+
return;
|
|
43509
|
+
}
|
|
43510
|
+
if (value.endsWith(".")) {
|
|
43511
|
+
setInput(value);
|
|
43512
|
+
return;
|
|
43513
|
+
}
|
|
43514
|
+
(_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, parsed, e3);
|
|
43515
|
+
},
|
|
43516
|
+
[props.integerOnly, props.value]
|
|
43517
|
+
);
|
|
43447
43518
|
React$2.useEffect(() => {
|
|
43448
43519
|
setInput(getInitialValue(props.value, props.initialValue));
|
|
43449
43520
|
}, [props.value]);
|
|
@@ -43545,10 +43616,12 @@ var __publicField = (obj, key, value) => {
|
|
|
43545
43616
|
`;
|
|
43546
43617
|
const defaultColors = [theme.colors.primary, theme.colors.success, theme.colors.warning, theme.colors.error];
|
|
43547
43618
|
const arrayify = (input, defaultInput) => {
|
|
43548
|
-
if (typeof input === "undefined")
|
|
43619
|
+
if (typeof input === "undefined") {
|
|
43549
43620
|
return defaultInput;
|
|
43550
|
-
|
|
43621
|
+
}
|
|
43622
|
+
if (Array.isArray(input)) {
|
|
43551
43623
|
return input;
|
|
43624
|
+
}
|
|
43552
43625
|
return [input];
|
|
43553
43626
|
};
|
|
43554
43627
|
function ProgressBar(props) {
|
|
@@ -43893,7 +43966,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43893
43966
|
_defineProperties(Constructor, staticProps);
|
|
43894
43967
|
return Constructor;
|
|
43895
43968
|
}
|
|
43896
|
-
function _defineProperty$
|
|
43969
|
+
function _defineProperty$2(obj, key, value) {
|
|
43897
43970
|
if (key in obj) {
|
|
43898
43971
|
Object.defineProperty(obj, key, {
|
|
43899
43972
|
value,
|
|
@@ -43906,7 +43979,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43906
43979
|
}
|
|
43907
43980
|
return obj;
|
|
43908
43981
|
}
|
|
43909
|
-
function ownKeys
|
|
43982
|
+
function ownKeys(object2, enumerableOnly) {
|
|
43910
43983
|
var keys2 = Object.keys(object2);
|
|
43911
43984
|
if (Object.getOwnPropertySymbols) {
|
|
43912
43985
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -43918,17 +43991,17 @@ var __publicField = (obj, key, value) => {
|
|
|
43918
43991
|
}
|
|
43919
43992
|
return keys2;
|
|
43920
43993
|
}
|
|
43921
|
-
function _objectSpread2
|
|
43994
|
+
function _objectSpread2(target) {
|
|
43922
43995
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43923
43996
|
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
43924
43997
|
if (i2 % 2) {
|
|
43925
|
-
ownKeys
|
|
43926
|
-
_defineProperty$
|
|
43998
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
|
43999
|
+
_defineProperty$2(target, key, source[key]);
|
|
43927
44000
|
});
|
|
43928
44001
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
43929
44002
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
43930
44003
|
} else {
|
|
43931
|
-
ownKeys
|
|
44004
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
43932
44005
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
43933
44006
|
});
|
|
43934
44007
|
}
|
|
@@ -43949,11 +44022,11 @@ var __publicField = (obj, key, value) => {
|
|
|
43949
44022
|
if (superClass)
|
|
43950
44023
|
_setPrototypeOf(subClass, superClass);
|
|
43951
44024
|
}
|
|
43952
|
-
function _getPrototypeOf(o2) {
|
|
43953
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
44025
|
+
function _getPrototypeOf$1(o2) {
|
|
44026
|
+
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
43954
44027
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
43955
44028
|
};
|
|
43956
|
-
return _getPrototypeOf(o2);
|
|
44029
|
+
return _getPrototypeOf$1(o2);
|
|
43957
44030
|
}
|
|
43958
44031
|
function _setPrototypeOf(o2, p2) {
|
|
43959
44032
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
@@ -43962,7 +44035,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43962
44035
|
};
|
|
43963
44036
|
return _setPrototypeOf(o2, p2);
|
|
43964
44037
|
}
|
|
43965
|
-
function _isNativeReflectConstruct() {
|
|
44038
|
+
function _isNativeReflectConstruct$1() {
|
|
43966
44039
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
43967
44040
|
return false;
|
|
43968
44041
|
if (Reflect.construct.sham)
|
|
@@ -43977,7 +44050,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43977
44050
|
return false;
|
|
43978
44051
|
}
|
|
43979
44052
|
}
|
|
43980
|
-
function _assertThisInitialized(self2) {
|
|
44053
|
+
function _assertThisInitialized$1(self2) {
|
|
43981
44054
|
if (self2 === void 0) {
|
|
43982
44055
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
43983
44056
|
}
|
|
@@ -43987,14 +44060,14 @@ var __publicField = (obj, key, value) => {
|
|
|
43987
44060
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
43988
44061
|
return call;
|
|
43989
44062
|
}
|
|
43990
|
-
return _assertThisInitialized(self2);
|
|
44063
|
+
return _assertThisInitialized$1(self2);
|
|
43991
44064
|
}
|
|
43992
44065
|
function _createSuper(Derived) {
|
|
43993
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
44066
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
43994
44067
|
return function _createSuperInternal() {
|
|
43995
|
-
var Super = _getPrototypeOf(Derived), result;
|
|
44068
|
+
var Super = _getPrototypeOf$1(Derived), result;
|
|
43996
44069
|
if (hasNativeReflectConstruct) {
|
|
43997
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
44070
|
+
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
43998
44071
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
43999
44072
|
} else {
|
|
44000
44073
|
result = Super.apply(this, arguments);
|
|
@@ -44003,20 +44076,20 @@ var __publicField = (obj, key, value) => {
|
|
|
44003
44076
|
};
|
|
44004
44077
|
}
|
|
44005
44078
|
function _slicedToArray(arr, i2) {
|
|
44006
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray
|
|
44079
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
|
|
44007
44080
|
}
|
|
44008
|
-
function _toConsumableArray
|
|
44009
|
-
return _arrayWithoutHoles
|
|
44081
|
+
function _toConsumableArray(arr) {
|
|
44082
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
44010
44083
|
}
|
|
44011
|
-
function _arrayWithoutHoles
|
|
44084
|
+
function _arrayWithoutHoles(arr) {
|
|
44012
44085
|
if (Array.isArray(arr))
|
|
44013
|
-
return _arrayLikeToArray
|
|
44086
|
+
return _arrayLikeToArray(arr);
|
|
44014
44087
|
}
|
|
44015
44088
|
function _arrayWithHoles(arr) {
|
|
44016
44089
|
if (Array.isArray(arr))
|
|
44017
44090
|
return arr;
|
|
44018
44091
|
}
|
|
44019
|
-
function _iterableToArray
|
|
44092
|
+
function _iterableToArray(iter) {
|
|
44020
44093
|
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter))
|
|
44021
44094
|
return Array.from(iter);
|
|
44022
44095
|
}
|
|
@@ -44047,27 +44120,27 @@ var __publicField = (obj, key, value) => {
|
|
|
44047
44120
|
}
|
|
44048
44121
|
return _arr;
|
|
44049
44122
|
}
|
|
44050
|
-
function _unsupportedIterableToArray
|
|
44123
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
44051
44124
|
if (!o2)
|
|
44052
44125
|
return;
|
|
44053
44126
|
if (typeof o2 === "string")
|
|
44054
|
-
return _arrayLikeToArray
|
|
44127
|
+
return _arrayLikeToArray(o2, minLen);
|
|
44055
44128
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
44056
44129
|
if (n2 === "Object" && o2.constructor)
|
|
44057
44130
|
n2 = o2.constructor.name;
|
|
44058
44131
|
if (n2 === "Map" || n2 === "Set")
|
|
44059
44132
|
return Array.from(o2);
|
|
44060
44133
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
44061
|
-
return _arrayLikeToArray
|
|
44134
|
+
return _arrayLikeToArray(o2, minLen);
|
|
44062
44135
|
}
|
|
44063
|
-
function _arrayLikeToArray
|
|
44136
|
+
function _arrayLikeToArray(arr, len) {
|
|
44064
44137
|
if (len == null || len > arr.length)
|
|
44065
44138
|
len = arr.length;
|
|
44066
44139
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
44067
44140
|
arr2[i2] = arr[i2];
|
|
44068
44141
|
return arr2;
|
|
44069
44142
|
}
|
|
44070
|
-
function _nonIterableSpread
|
|
44143
|
+
function _nonIterableSpread() {
|
|
44071
44144
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44072
44145
|
}
|
|
44073
44146
|
function _nonIterableRest() {
|
|
@@ -44095,10 +44168,10 @@ var __publicField = (obj, key, value) => {
|
|
|
44095
44168
|
if (val === updateValue) {
|
|
44096
44169
|
return handles;
|
|
44097
44170
|
}
|
|
44098
|
-
return [].concat(_toConsumableArray
|
|
44171
|
+
return [].concat(_toConsumableArray(handles.slice(0, index2)), [{
|
|
44099
44172
|
key,
|
|
44100
44173
|
val: updateValue
|
|
44101
|
-
}], _toConsumableArray
|
|
44174
|
+
}], _toConsumableArray(handles.slice(index2 + 1))).sort(getSortByVal(reversed));
|
|
44102
44175
|
}
|
|
44103
44176
|
return handles;
|
|
44104
44177
|
}
|
|
@@ -44236,7 +44309,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44236
44309
|
_this.getRailProps = function() {
|
|
44237
44310
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
44238
44311
|
var _this$props = _this.props, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44239
|
-
return _objectSpread2
|
|
44312
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
44240
44313
|
onMouseDown: callAll(props && props.onMouseDown, emitMouse),
|
|
44241
44314
|
onTouchStart: callAll(props && props.onTouchStart, emitTouch)
|
|
44242
44315
|
});
|
|
@@ -44275,7 +44348,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44275
44348
|
_this.getHandleProps = function(id) {
|
|
44276
44349
|
var props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
44277
44350
|
var _this$props = _this.props, emitKeyboard = _this$props.emitKeyboard, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44278
|
-
return _objectSpread2
|
|
44351
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
44279
44352
|
onKeyDown: callAll(props && props.onKeyDown, function(e3) {
|
|
44280
44353
|
return emitKeyboard && emitKeyboard(e3, id);
|
|
44281
44354
|
}),
|
|
@@ -44438,7 +44511,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44438
44511
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
44439
44512
|
_this.getTrackProps = function(props) {
|
|
44440
44513
|
var _this$props = _this.props, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44441
|
-
return _objectSpread2
|
|
44514
|
+
return _objectSpread2(_objectSpread2({}, props || {}), {}, {
|
|
44442
44515
|
onMouseDown: callAll(props && props.onMouseDown, emitMouse),
|
|
44443
44516
|
onTouchStart: callAll(props && props.onTouchStart, emitTouch)
|
|
44444
44517
|
});
|
|
@@ -44566,7 +44639,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44566
44639
|
_this.onKeyDown = function(e3, handleID) {
|
|
44567
44640
|
var validUpKeys = ["ArrowRight", "ArrowUp"];
|
|
44568
44641
|
var validDownKeys = ["ArrowDown", "ArrowLeft"];
|
|
44569
|
-
var _assertThisInitialize = _assertThisInitialized(_this), handles = _assertThisInitialize.state.handles, _assertThisInitialize2 = _assertThisInitialize.props, _assertThisInitialize3 = _assertThisInitialize2.step, step = _assertThisInitialize3 === void 0 ? 0.1 : _assertThisInitialize3, _assertThisInitialize4 = _assertThisInitialize2.reversed, reversed = _assertThisInitialize4 === void 0 ? false : _assertThisInitialize4, _assertThisInitialize5 = _assertThisInitialize2.vertical, vertical = _assertThisInitialize5 === void 0 ? false : _assertThisInitialize5, _assertThisInitialize6 = _assertThisInitialize2.domain, domain = _assertThisInitialize6 === void 0 ? [0, 100] : _assertThisInitialize6;
|
|
44642
|
+
var _assertThisInitialize = _assertThisInitialized$1(_this), handles = _assertThisInitialize.state.handles, _assertThisInitialize2 = _assertThisInitialize.props, _assertThisInitialize3 = _assertThisInitialize2.step, step = _assertThisInitialize3 === void 0 ? 0.1 : _assertThisInitialize3, _assertThisInitialize4 = _assertThisInitialize2.reversed, reversed = _assertThisInitialize4 === void 0 ? false : _assertThisInitialize4, _assertThisInitialize5 = _assertThisInitialize2.vertical, vertical = _assertThisInitialize5 === void 0 ? false : _assertThisInitialize5, _assertThisInitialize6 = _assertThisInitialize2.domain, domain = _assertThisInitialize6 === void 0 ? [0, 100] : _assertThisInitialize6;
|
|
44570
44643
|
var key = e3.key || "".concat(e3.keyCode);
|
|
44571
44644
|
if (!validUpKeys.concat(validDownKeys).includes(key)) {
|
|
44572
44645
|
return;
|
|
@@ -44609,7 +44682,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44609
44682
|
_this.onStart(e3, handleID, true);
|
|
44610
44683
|
};
|
|
44611
44684
|
_this.getEventData = function(e3, isTouch) {
|
|
44612
|
-
var _assertThisInitialize7 = _assertThisInitialized(_this), _assertThisInitialize8 = _assertThisInitialize7.state, pixelToStep = _assertThisInitialize8.pixelToStep, valueToPerc = _assertThisInitialize8.valueToPerc, vertical = _assertThisInitialize7.props.vertical;
|
|
44685
|
+
var _assertThisInitialize7 = _assertThisInitialized$1(_this), _assertThisInitialize8 = _assertThisInitialize7.state, pixelToStep = _assertThisInitialize8.pixelToStep, valueToPerc = _assertThisInitialize8.valueToPerc, vertical = _assertThisInitialize7.props.vertical;
|
|
44613
44686
|
pixelToStep.setDomain(getSliderDomain(_this.slider.current, vertical));
|
|
44614
44687
|
var value;
|
|
44615
44688
|
if (isTouch && e3 instanceof TouchEvent) {
|
|
@@ -44623,14 +44696,14 @@ var __publicField = (obj, key, value) => {
|
|
|
44623
44696
|
};
|
|
44624
44697
|
};
|
|
44625
44698
|
_this.onMouseMove = function(e3) {
|
|
44626
|
-
var _assertThisInitialize9 = _assertThisInitialized(_this), _assertThisInitialize10 = _assertThisInitialize9.state, curr = _assertThisInitialize10.handles, pixelToStep = _assertThisInitialize10.pixelToStep, _assertThisInitialize11 = _assertThisInitialize10.activeHandleID, activeHandleID = _assertThisInitialize11 === void 0 ? "" : _assertThisInitialize11, _assertThisInitialize12 = _assertThisInitialize9.props, vertical = _assertThisInitialize12.vertical, _assertThisInitialize13 = _assertThisInitialize12.reversed, reversed = _assertThisInitialize13 === void 0 ? false : _assertThisInitialize13;
|
|
44699
|
+
var _assertThisInitialize9 = _assertThisInitialized$1(_this), _assertThisInitialize10 = _assertThisInitialize9.state, curr = _assertThisInitialize10.handles, pixelToStep = _assertThisInitialize10.pixelToStep, _assertThisInitialize11 = _assertThisInitialize10.activeHandleID, activeHandleID = _assertThisInitialize11 === void 0 ? "" : _assertThisInitialize11, _assertThisInitialize12 = _assertThisInitialize9.props, vertical = _assertThisInitialize12.vertical, _assertThisInitialize13 = _assertThisInitialize12.reversed, reversed = _assertThisInitialize13 === void 0 ? false : _assertThisInitialize13;
|
|
44627
44700
|
pixelToStep.setDomain(getSliderDomain(_this.slider.current, vertical));
|
|
44628
44701
|
var updateValue = pixelToStep.getValue(vertical ? e3.clientY : e3.pageX);
|
|
44629
44702
|
var nextHandles = getUpdatedHandles(curr, activeHandleID, updateValue, reversed);
|
|
44630
44703
|
_this.submitUpdate(nextHandles);
|
|
44631
44704
|
};
|
|
44632
44705
|
_this.onTouchMove = function(e3) {
|
|
44633
|
-
var _assertThisInitialize14 = _assertThisInitialized(_this), _assertThisInitialize15 = _assertThisInitialize14.state, curr = _assertThisInitialize15.handles, pixelToStep = _assertThisInitialize15.pixelToStep, activeHandleID = _assertThisInitialize15.activeHandleID, _assertThisInitialize16 = _assertThisInitialize14.props, vertical = _assertThisInitialize16.vertical, reversed = _assertThisInitialize16.reversed;
|
|
44706
|
+
var _assertThisInitialize14 = _assertThisInitialized$1(_this), _assertThisInitialize15 = _assertThisInitialize14.state, curr = _assertThisInitialize15.handles, pixelToStep = _assertThisInitialize15.pixelToStep, activeHandleID = _assertThisInitialize15.activeHandleID, _assertThisInitialize16 = _assertThisInitialize14.props, vertical = _assertThisInitialize16.vertical, reversed = _assertThisInitialize16.reversed;
|
|
44634
44707
|
if (pixelToStep === null || isNotValidTouch(e3)) {
|
|
44635
44708
|
return;
|
|
44636
44709
|
}
|
|
@@ -44640,7 +44713,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44640
44713
|
_this.submitUpdate(nextHandles);
|
|
44641
44714
|
};
|
|
44642
44715
|
_this.onMouseUp = function() {
|
|
44643
|
-
var _assertThisInitialize17 = _assertThisInitialized(_this), _assertThisInitialize18 = _assertThisInitialize17.state, _assertThisInitialize19 = _assertThisInitialize18.handles, handles = _assertThisInitialize19 === void 0 ? [] : _assertThisInitialize19, activeHandleID = _assertThisInitialize18.activeHandleID, _assertThisInitialize20 = _assertThisInitialize17.props, _assertThisInitialize21 = _assertThisInitialize20.onChange, onChange2 = _assertThisInitialize21 === void 0 ? noop$2 : _assertThisInitialize21, _assertThisInitialize22 = _assertThisInitialize20.onSlideEnd, onSlideEnd = _assertThisInitialize22 === void 0 ? noop$2 : _assertThisInitialize22;
|
|
44716
|
+
var _assertThisInitialize17 = _assertThisInitialized$1(_this), _assertThisInitialize18 = _assertThisInitialize17.state, _assertThisInitialize19 = _assertThisInitialize18.handles, handles = _assertThisInitialize19 === void 0 ? [] : _assertThisInitialize19, activeHandleID = _assertThisInitialize18.activeHandleID, _assertThisInitialize20 = _assertThisInitialize17.props, _assertThisInitialize21 = _assertThisInitialize20.onChange, onChange2 = _assertThisInitialize21 === void 0 ? noop$2 : _assertThisInitialize21, _assertThisInitialize22 = _assertThisInitialize20.onSlideEnd, onSlideEnd = _assertThisInitialize22 === void 0 ? noop$2 : _assertThisInitialize22;
|
|
44644
44717
|
onChange2(handles.map(function(d2) {
|
|
44645
44718
|
return d2.val;
|
|
44646
44719
|
}));
|
|
@@ -44658,7 +44731,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44658
44731
|
}
|
|
44659
44732
|
};
|
|
44660
44733
|
_this.onTouchEnd = function() {
|
|
44661
|
-
var _assertThisInitialize23 = _assertThisInitialized(_this), _assertThisInitialize24 = _assertThisInitialize23.state, handles = _assertThisInitialize24.handles, activeHandleID = _assertThisInitialize24.activeHandleID, _assertThisInitialize25 = _assertThisInitialize23.props, _assertThisInitialize26 = _assertThisInitialize25.onChange, onChange2 = _assertThisInitialize26 === void 0 ? noop$2 : _assertThisInitialize26, _assertThisInitialize27 = _assertThisInitialize25.onSlideEnd, onSlideEnd = _assertThisInitialize27 === void 0 ? noop$2 : _assertThisInitialize27;
|
|
44734
|
+
var _assertThisInitialize23 = _assertThisInitialized$1(_this), _assertThisInitialize24 = _assertThisInitialize23.state, handles = _assertThisInitialize24.handles, activeHandleID = _assertThisInitialize24.activeHandleID, _assertThisInitialize25 = _assertThisInitialize23.props, _assertThisInitialize26 = _assertThisInitialize25.onChange, onChange2 = _assertThisInitialize26 === void 0 ? noop$2 : _assertThisInitialize26, _assertThisInitialize27 = _assertThisInitialize25.onSlideEnd, onSlideEnd = _assertThisInitialize27 === void 0 ? noop$2 : _assertThisInitialize27;
|
|
44662
44735
|
onChange2(handles.map(function(d2) {
|
|
44663
44736
|
return d2.val;
|
|
44664
44737
|
}));
|
|
@@ -44841,11 +44914,11 @@ var __publicField = (obj, key, value) => {
|
|
|
44841
44914
|
return child;
|
|
44842
44915
|
}
|
|
44843
44916
|
});
|
|
44844
|
-
return flatten2 ? /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2
|
|
44917
|
+
return flatten2 ? /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
44845
44918
|
style: rootStyle,
|
|
44846
44919
|
className,
|
|
44847
44920
|
ref: this.slider
|
|
44848
|
-
})), children) : /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2
|
|
44921
|
+
})), children) : /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
44849
44922
|
style: rootStyle,
|
|
44850
44923
|
className,
|
|
44851
44924
|
ref: this.slider
|
|
@@ -45049,13 +45122,12 @@ var __publicField = (obj, key, value) => {
|
|
|
45049
45122
|
cursor: pointer;
|
|
45050
45123
|
|
|
45051
45124
|
position: relative;
|
|
45052
|
-
|
|
45053
45125
|
display: flex;
|
|
45054
45126
|
align-items: center;
|
|
45055
45127
|
justify-content: ${(props) => props.enabled ? "flex-start" : "flex-end"};
|
|
45056
45128
|
|
|
45057
45129
|
width: max-content;
|
|
45058
|
-
height:
|
|
45130
|
+
height: 1.5rem;
|
|
45059
45131
|
padding: 0;
|
|
45060
45132
|
padding-right: ${(props) => props.enabled ? "1.75rem" : "0.5rem"};
|
|
45061
45133
|
padding-left: ${(props) => props.enabled ? "0.5rem" : "1.75rem"};
|
|
@@ -45110,331 +45182,6 @@ var __publicField = (obj, key, value) => {
|
|
|
45110
45182
|
return jsxRuntime.exports.jsxs(SwitchWrapper, { className, "data-testid": "wrapper", enabled, onClick, ref, style, children: [jsxRuntime.exports.jsx(SwitchHandle, { "data-testid": "handle", enabled }), jsxRuntime.exports.jsx("div", { style: { userSelect: "none" }, children: labelIconToShow })] });
|
|
45111
45183
|
}
|
|
45112
45184
|
React$2.forwardRef(Switch);
|
|
45113
|
-
function ownKeys(object2, enumerableOnly) {
|
|
45114
|
-
var keys2 = Object.keys(object2);
|
|
45115
|
-
if (Object.getOwnPropertySymbols) {
|
|
45116
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
45117
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
45118
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
45119
|
-
})), keys2.push.apply(keys2, symbols);
|
|
45120
|
-
}
|
|
45121
|
-
return keys2;
|
|
45122
|
-
}
|
|
45123
|
-
function _objectSpread2(target) {
|
|
45124
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
45125
|
-
var source = null != arguments[i2] ? arguments[i2] : {};
|
|
45126
|
-
i2 % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
45127
|
-
_defineProperty$2(target, key, source[key]);
|
|
45128
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
45129
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45130
|
-
});
|
|
45131
|
-
}
|
|
45132
|
-
return target;
|
|
45133
|
-
}
|
|
45134
|
-
function _typeof(obj) {
|
|
45135
|
-
"@babel/helpers - typeof";
|
|
45136
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
45137
|
-
return typeof obj2;
|
|
45138
|
-
} : function(obj2) {
|
|
45139
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
45140
|
-
}, _typeof(obj);
|
|
45141
|
-
}
|
|
45142
|
-
function _defineProperty$2(obj, key, value) {
|
|
45143
|
-
if (key in obj) {
|
|
45144
|
-
Object.defineProperty(obj, key, {
|
|
45145
|
-
value,
|
|
45146
|
-
enumerable: true,
|
|
45147
|
-
configurable: true,
|
|
45148
|
-
writable: true
|
|
45149
|
-
});
|
|
45150
|
-
} else {
|
|
45151
|
-
obj[key] = value;
|
|
45152
|
-
}
|
|
45153
|
-
return obj;
|
|
45154
|
-
}
|
|
45155
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45156
|
-
if (source == null)
|
|
45157
|
-
return {};
|
|
45158
|
-
var target = {};
|
|
45159
|
-
var sourceKeys = Object.keys(source);
|
|
45160
|
-
var key, i2;
|
|
45161
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
45162
|
-
key = sourceKeys[i2];
|
|
45163
|
-
if (excluded.indexOf(key) >= 0)
|
|
45164
|
-
continue;
|
|
45165
|
-
target[key] = source[key];
|
|
45166
|
-
}
|
|
45167
|
-
return target;
|
|
45168
|
-
}
|
|
45169
|
-
function _objectWithoutProperties(source, excluded) {
|
|
45170
|
-
if (source == null)
|
|
45171
|
-
return {};
|
|
45172
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
45173
|
-
var key, i2;
|
|
45174
|
-
if (Object.getOwnPropertySymbols) {
|
|
45175
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45176
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
45177
|
-
key = sourceSymbolKeys[i2];
|
|
45178
|
-
if (excluded.indexOf(key) >= 0)
|
|
45179
|
-
continue;
|
|
45180
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
45181
|
-
continue;
|
|
45182
|
-
target[key] = source[key];
|
|
45183
|
-
}
|
|
45184
|
-
}
|
|
45185
|
-
return target;
|
|
45186
|
-
}
|
|
45187
|
-
function _toConsumableArray(arr) {
|
|
45188
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
45189
|
-
}
|
|
45190
|
-
function _arrayWithoutHoles(arr) {
|
|
45191
|
-
if (Array.isArray(arr))
|
|
45192
|
-
return _arrayLikeToArray(arr);
|
|
45193
|
-
}
|
|
45194
|
-
function _iterableToArray(iter) {
|
|
45195
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
45196
|
-
return Array.from(iter);
|
|
45197
|
-
}
|
|
45198
|
-
function _unsupportedIterableToArray(o2, minLen) {
|
|
45199
|
-
if (!o2)
|
|
45200
|
-
return;
|
|
45201
|
-
if (typeof o2 === "string")
|
|
45202
|
-
return _arrayLikeToArray(o2, minLen);
|
|
45203
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
45204
|
-
if (n2 === "Object" && o2.constructor)
|
|
45205
|
-
n2 = o2.constructor.name;
|
|
45206
|
-
if (n2 === "Map" || n2 === "Set")
|
|
45207
|
-
return Array.from(o2);
|
|
45208
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
45209
|
-
return _arrayLikeToArray(o2, minLen);
|
|
45210
|
-
}
|
|
45211
|
-
function _arrayLikeToArray(arr, len) {
|
|
45212
|
-
if (len == null || len > arr.length)
|
|
45213
|
-
len = arr.length;
|
|
45214
|
-
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
45215
|
-
arr2[i2] = arr[i2];
|
|
45216
|
-
return arr2;
|
|
45217
|
-
}
|
|
45218
|
-
function _nonIterableSpread() {
|
|
45219
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45220
|
-
}
|
|
45221
|
-
function classList(props) {
|
|
45222
|
-
var _classes;
|
|
45223
|
-
var beat = props.beat, fade = props.fade, beatFade = props.beatFade, bounce = props.bounce, shake = props.shake, flash = props.flash, spin = props.spin, spinPulse = props.spinPulse, spinReverse = props.spinReverse, pulse = props.pulse, fixedWidth = props.fixedWidth, inverse = props.inverse, border = props.border, listItem = props.listItem, flip2 = props.flip, size2 = props.size, rotation = props.rotation, pull = props.pull;
|
|
45224
|
-
var classes = (_classes = {
|
|
45225
|
-
"fa-beat": beat,
|
|
45226
|
-
"fa-fade": fade,
|
|
45227
|
-
"fa-beat-fade": beatFade,
|
|
45228
|
-
"fa-bounce": bounce,
|
|
45229
|
-
"fa-shake": shake,
|
|
45230
|
-
"fa-flash": flash,
|
|
45231
|
-
"fa-spin": spin,
|
|
45232
|
-
"fa-spin-reverse": spinReverse,
|
|
45233
|
-
"fa-spin-pulse": spinPulse,
|
|
45234
|
-
"fa-pulse": pulse,
|
|
45235
|
-
"fa-fw": fixedWidth,
|
|
45236
|
-
"fa-inverse": inverse,
|
|
45237
|
-
"fa-border": border,
|
|
45238
|
-
"fa-li": listItem,
|
|
45239
|
-
"fa-flip": flip2 === true,
|
|
45240
|
-
"fa-flip-horizontal": flip2 === "horizontal" || flip2 === "both",
|
|
45241
|
-
"fa-flip-vertical": flip2 === "vertical" || flip2 === "both"
|
|
45242
|
-
}, _defineProperty$2(_classes, "fa-".concat(size2), typeof size2 !== "undefined" && size2 !== null), _defineProperty$2(_classes, "fa-rotate-".concat(rotation), typeof rotation !== "undefined" && rotation !== null && rotation !== 0), _defineProperty$2(_classes, "fa-pull-".concat(pull), typeof pull !== "undefined" && pull !== null), _defineProperty$2(_classes, "fa-swap-opacity", props.swapOpacity), _classes);
|
|
45243
|
-
return Object.keys(classes).map(function(key) {
|
|
45244
|
-
return classes[key] ? key : null;
|
|
45245
|
-
}).filter(function(key) {
|
|
45246
|
-
return key;
|
|
45247
|
-
});
|
|
45248
|
-
}
|
|
45249
|
-
function _isNumerical(obj) {
|
|
45250
|
-
obj = obj - 0;
|
|
45251
|
-
return obj === obj;
|
|
45252
|
-
}
|
|
45253
|
-
function camelize(string2) {
|
|
45254
|
-
if (_isNumerical(string2)) {
|
|
45255
|
-
return string2;
|
|
45256
|
-
}
|
|
45257
|
-
string2 = string2.replace(/[\-_\s]+(.)?/g, function(match2, chr) {
|
|
45258
|
-
return chr ? chr.toUpperCase() : "";
|
|
45259
|
-
});
|
|
45260
|
-
return string2.substr(0, 1).toLowerCase() + string2.substr(1);
|
|
45261
|
-
}
|
|
45262
|
-
var _excluded = ["style"];
|
|
45263
|
-
function capitalize(val) {
|
|
45264
|
-
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
45265
|
-
}
|
|
45266
|
-
function styleToObject(style) {
|
|
45267
|
-
return style.split(";").map(function(s) {
|
|
45268
|
-
return s.trim();
|
|
45269
|
-
}).filter(function(s) {
|
|
45270
|
-
return s;
|
|
45271
|
-
}).reduce(function(acc, pair) {
|
|
45272
|
-
var i2 = pair.indexOf(":");
|
|
45273
|
-
var prop = camelize(pair.slice(0, i2));
|
|
45274
|
-
var value = pair.slice(i2 + 1).trim();
|
|
45275
|
-
prop.startsWith("webkit") ? acc[capitalize(prop)] = value : acc[prop] = value;
|
|
45276
|
-
return acc;
|
|
45277
|
-
}, {});
|
|
45278
|
-
}
|
|
45279
|
-
function convert(createElement2, element) {
|
|
45280
|
-
var extraProps = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45281
|
-
if (typeof element === "string") {
|
|
45282
|
-
return element;
|
|
45283
|
-
}
|
|
45284
|
-
var children = (element.children || []).map(function(child) {
|
|
45285
|
-
return convert(createElement2, child);
|
|
45286
|
-
});
|
|
45287
|
-
var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
|
|
45288
|
-
var val = element.attributes[key];
|
|
45289
|
-
switch (key) {
|
|
45290
|
-
case "class":
|
|
45291
|
-
acc.attrs["className"] = val;
|
|
45292
|
-
delete element.attributes["class"];
|
|
45293
|
-
break;
|
|
45294
|
-
case "style":
|
|
45295
|
-
acc.attrs["style"] = styleToObject(val);
|
|
45296
|
-
break;
|
|
45297
|
-
default:
|
|
45298
|
-
if (key.indexOf("aria-") === 0 || key.indexOf("data-") === 0) {
|
|
45299
|
-
acc.attrs[key.toLowerCase()] = val;
|
|
45300
|
-
} else {
|
|
45301
|
-
acc.attrs[camelize(key)] = val;
|
|
45302
|
-
}
|
|
45303
|
-
}
|
|
45304
|
-
return acc;
|
|
45305
|
-
}, {
|
|
45306
|
-
attrs: {}
|
|
45307
|
-
});
|
|
45308
|
-
var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties(extraProps, _excluded);
|
|
45309
|
-
mixins.attrs["style"] = _objectSpread2(_objectSpread2({}, mixins.attrs["style"]), existingStyle);
|
|
45310
|
-
return createElement2.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
|
|
45311
|
-
}
|
|
45312
|
-
var PRODUCTION = false;
|
|
45313
|
-
try {
|
|
45314
|
-
PRODUCTION = true;
|
|
45315
|
-
} catch (e3) {
|
|
45316
|
-
}
|
|
45317
|
-
function log() {
|
|
45318
|
-
if (!PRODUCTION && console && typeof console.error === "function") {
|
|
45319
|
-
var _console;
|
|
45320
|
-
(_console = console).error.apply(_console, arguments);
|
|
45321
|
-
}
|
|
45322
|
-
}
|
|
45323
|
-
function normalizeIconArgs(icon2) {
|
|
45324
|
-
if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName && icon2.icon) {
|
|
45325
|
-
return icon2;
|
|
45326
|
-
}
|
|
45327
|
-
if (parse$1$1.icon) {
|
|
45328
|
-
return parse$1$1.icon(icon2);
|
|
45329
|
-
}
|
|
45330
|
-
if (icon2 === null) {
|
|
45331
|
-
return null;
|
|
45332
|
-
}
|
|
45333
|
-
if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName) {
|
|
45334
|
-
return icon2;
|
|
45335
|
-
}
|
|
45336
|
-
if (Array.isArray(icon2) && icon2.length === 2) {
|
|
45337
|
-
return {
|
|
45338
|
-
prefix: icon2[0],
|
|
45339
|
-
iconName: icon2[1]
|
|
45340
|
-
};
|
|
45341
|
-
}
|
|
45342
|
-
if (typeof icon2 === "string") {
|
|
45343
|
-
return {
|
|
45344
|
-
prefix: "fas",
|
|
45345
|
-
iconName: icon2
|
|
45346
|
-
};
|
|
45347
|
-
}
|
|
45348
|
-
}
|
|
45349
|
-
function objectWithKey(key, value) {
|
|
45350
|
-
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$2({}, key, value) : {};
|
|
45351
|
-
}
|
|
45352
|
-
var FontAwesomeIcon = /* @__PURE__ */ React__default.default.forwardRef(function(props, ref) {
|
|
45353
|
-
var iconArgs = props.icon, maskArgs = props.mask, symbol = props.symbol, className = props.className, title = props.title, titleId = props.titleId, maskId = props.maskId;
|
|
45354
|
-
var iconLookup = normalizeIconArgs(iconArgs);
|
|
45355
|
-
var classes = objectWithKey("classes", [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(" "))));
|
|
45356
|
-
var transform = objectWithKey("transform", typeof props.transform === "string" ? parse$1$1.transform(props.transform) : props.transform);
|
|
45357
|
-
var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
|
|
45358
|
-
var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
|
|
45359
|
-
symbol,
|
|
45360
|
-
title,
|
|
45361
|
-
titleId,
|
|
45362
|
-
maskId
|
|
45363
|
-
}));
|
|
45364
|
-
if (!renderedIcon) {
|
|
45365
|
-
log("Could not find icon", iconLookup);
|
|
45366
|
-
return null;
|
|
45367
|
-
}
|
|
45368
|
-
var abstract = renderedIcon.abstract;
|
|
45369
|
-
var extraProps = {
|
|
45370
|
-
ref
|
|
45371
|
-
};
|
|
45372
|
-
Object.keys(props).forEach(function(key) {
|
|
45373
|
-
if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
|
|
45374
|
-
extraProps[key] = props[key];
|
|
45375
|
-
}
|
|
45376
|
-
});
|
|
45377
|
-
return convertCurry(abstract[0], extraProps);
|
|
45378
|
-
});
|
|
45379
|
-
FontAwesomeIcon.displayName = "FontAwesomeIcon";
|
|
45380
|
-
FontAwesomeIcon.propTypes = {
|
|
45381
|
-
beat: propTypes.exports.bool,
|
|
45382
|
-
border: propTypes.exports.bool,
|
|
45383
|
-
beatFade: propTypes.exports.bool,
|
|
45384
|
-
bounce: propTypes.exports.bool,
|
|
45385
|
-
className: propTypes.exports.string,
|
|
45386
|
-
fade: propTypes.exports.bool,
|
|
45387
|
-
flash: propTypes.exports.bool,
|
|
45388
|
-
mask: propTypes.exports.oneOfType([propTypes.exports.object, propTypes.exports.array, propTypes.exports.string]),
|
|
45389
|
-
maskId: propTypes.exports.string,
|
|
45390
|
-
fixedWidth: propTypes.exports.bool,
|
|
45391
|
-
inverse: propTypes.exports.bool,
|
|
45392
|
-
flip: propTypes.exports.oneOf([true, false, "horizontal", "vertical", "both"]),
|
|
45393
|
-
icon: propTypes.exports.oneOfType([propTypes.exports.object, propTypes.exports.array, propTypes.exports.string]),
|
|
45394
|
-
listItem: propTypes.exports.bool,
|
|
45395
|
-
pull: propTypes.exports.oneOf(["right", "left"]),
|
|
45396
|
-
pulse: propTypes.exports.bool,
|
|
45397
|
-
rotation: propTypes.exports.oneOf([0, 90, 180, 270]),
|
|
45398
|
-
shake: propTypes.exports.bool,
|
|
45399
|
-
size: propTypes.exports.oneOf(["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"]),
|
|
45400
|
-
spin: propTypes.exports.bool,
|
|
45401
|
-
spinPulse: propTypes.exports.bool,
|
|
45402
|
-
spinReverse: propTypes.exports.bool,
|
|
45403
|
-
symbol: propTypes.exports.oneOfType([propTypes.exports.bool, propTypes.exports.string]),
|
|
45404
|
-
title: propTypes.exports.string,
|
|
45405
|
-
titleId: propTypes.exports.string,
|
|
45406
|
-
transform: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.object]),
|
|
45407
|
-
swapOpacity: propTypes.exports.bool
|
|
45408
|
-
};
|
|
45409
|
-
FontAwesomeIcon.defaultProps = {
|
|
45410
|
-
border: false,
|
|
45411
|
-
className: "",
|
|
45412
|
-
mask: null,
|
|
45413
|
-
maskId: null,
|
|
45414
|
-
fixedWidth: false,
|
|
45415
|
-
inverse: false,
|
|
45416
|
-
flip: false,
|
|
45417
|
-
icon: null,
|
|
45418
|
-
listItem: false,
|
|
45419
|
-
pull: null,
|
|
45420
|
-
pulse: false,
|
|
45421
|
-
rotation: null,
|
|
45422
|
-
size: null,
|
|
45423
|
-
spin: false,
|
|
45424
|
-
spinPulse: false,
|
|
45425
|
-
spinReverse: false,
|
|
45426
|
-
beat: false,
|
|
45427
|
-
fade: false,
|
|
45428
|
-
beatFade: false,
|
|
45429
|
-
bounce: false,
|
|
45430
|
-
shake: false,
|
|
45431
|
-
symbol: false,
|
|
45432
|
-
title: "",
|
|
45433
|
-
titleId: null,
|
|
45434
|
-
transform: null,
|
|
45435
|
-
swapOpacity: false
|
|
45436
|
-
};
|
|
45437
|
-
var convertCurry = convert.bind(null, React__default.default.createElement);
|
|
45438
45185
|
var safeIsNaN$1 = Number.isNaN || function ponyfill(value) {
|
|
45439
45186
|
return typeof value === "number" && value !== value;
|
|
45440
45187
|
};
|
|
@@ -47773,11 +47520,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
47773
47520
|
function List2(props) {
|
|
47774
47521
|
var _this;
|
|
47775
47522
|
_this = _PureComponent.call(this, props) || this;
|
|
47776
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$
|
|
47523
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$3(_assertThisInitialized$3(_this)));
|
|
47777
47524
|
_this._outerRef = void 0;
|
|
47778
47525
|
_this._resetIsScrollingTimeoutId = null;
|
|
47779
47526
|
_this.state = {
|
|
47780
|
-
instance: _assertThisInitialized$
|
|
47527
|
+
instance: _assertThisInitialized$3(_assertThisInitialized$3(_this)),
|
|
47781
47528
|
isScrolling: false,
|
|
47782
47529
|
scrollDirection: "forward",
|
|
47783
47530
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -47991,7 +47738,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
47991
47738
|
className,
|
|
47992
47739
|
onScroll,
|
|
47993
47740
|
ref: this._outerRefSetter,
|
|
47994
|
-
style: _extends$
|
|
47741
|
+
style: _extends$1({
|
|
47995
47742
|
position: "relative",
|
|
47996
47743
|
height,
|
|
47997
47744
|
width,
|
|
@@ -48143,8 +47890,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48143
47890
|
return false;
|
|
48144
47891
|
}
|
|
48145
47892
|
function areEqual(prevProps, nextProps) {
|
|
48146
|
-
var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$
|
|
48147
|
-
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$
|
|
47893
|
+
var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$3(prevProps, ["style"]);
|
|
47894
|
+
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$3(nextProps, ["style"]);
|
|
48148
47895
|
return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
|
|
48149
47896
|
}
|
|
48150
47897
|
const GlobalStyle = styled.createGlobalStyle`
|
|
@@ -48530,15 +48277,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48530
48277
|
function numeric(rows, columnIds, filterValue) {
|
|
48531
48278
|
const { selected, value } = filterValue;
|
|
48532
48279
|
const [colId] = columnIds;
|
|
48533
|
-
if (!isValidOperator(selected) || !value && value !== 0)
|
|
48280
|
+
if (!isValidOperator(selected) || !value && value !== 0) {
|
|
48534
48281
|
return rows;
|
|
48282
|
+
}
|
|
48535
48283
|
return rows.filter((row) => applyNumericOperator(selected, row.values[colId], value));
|
|
48536
48284
|
}
|
|
48537
48285
|
function datetime(rows, columnIds, filterValue) {
|
|
48538
48286
|
const { selected, value } = filterValue;
|
|
48539
48287
|
const [colId] = columnIds;
|
|
48540
|
-
if (!isValidDatetimeOperator(selected) || !value)
|
|
48288
|
+
if (!isValidDatetimeOperator(selected) || !value) {
|
|
48541
48289
|
return rows;
|
|
48290
|
+
}
|
|
48542
48291
|
return rows.filter((row) => applyDatetimeOperator(selected, row.values[colId], value));
|
|
48543
48292
|
}
|
|
48544
48293
|
function categorical(rows, columnIds, filterItems) {
|
|
@@ -48681,13 +48430,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48681
48430
|
option.onClick();
|
|
48682
48431
|
};
|
|
48683
48432
|
const clickOutsideOptionsHandler = () => {
|
|
48684
|
-
if (showOptions)
|
|
48433
|
+
if (showOptions) {
|
|
48685
48434
|
toggleOptions();
|
|
48435
|
+
}
|
|
48686
48436
|
};
|
|
48687
48437
|
useOnClickOutside(popperElement, clickOutsideOptionsHandler);
|
|
48688
48438
|
React$2.useEffect(() => {
|
|
48689
|
-
if (showOptions)
|
|
48439
|
+
if (showOptions) {
|
|
48690
48440
|
update();
|
|
48441
|
+
}
|
|
48691
48442
|
}, [showOptions, update]);
|
|
48692
48443
|
const resetFunctions = React$2.useMemo(() => {
|
|
48693
48444
|
const functions2 = {
|
|
@@ -48710,8 +48461,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48710
48461
|
label: "Show All Columns",
|
|
48711
48462
|
onClick: () => {
|
|
48712
48463
|
allColumns.forEach((column) => {
|
|
48713
|
-
if (!column.isVisible)
|
|
48464
|
+
if (!column.isVisible) {
|
|
48714
48465
|
column.toggleHidden();
|
|
48466
|
+
}
|
|
48715
48467
|
});
|
|
48716
48468
|
},
|
|
48717
48469
|
value: "showAllColumns"
|
|
@@ -48728,7 +48480,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48728
48480
|
})),
|
|
48729
48481
|
label: "Columns"
|
|
48730
48482
|
};
|
|
48731
|
-
}, [allColumns, allowColumnHiding]);
|
|
48483
|
+
}, [allColumns, allowColumnHiding, numVisibleColumns]);
|
|
48732
48484
|
return jsxRuntime.exports.jsxs(HeaderOptions, { ref: setOptionsElement, children: [jsxRuntime.exports.jsx(HeaderOptionsIcon, { icon: faEllipsisV, onClick: toggleOptions }), ReactDOM__default.default.createPortal(jsxRuntime.exports.jsx(OptionsDropdownList, Object.assign({}, attributes.popper, { isOpen: showOptions, ref: setPopperElement, style: Object.assign(Object.assign(Object.assign({}, styles2.popper), { maxHeight: 800, minWidth: 150, zIndex: 9999 }), style), children: jsxRuntime.exports.jsx(SectionedList, { items: allowColumnHiding ? [resetFunctions, columnToggles] : [resetFunctions], onSelect: onOptionSelect }) })), document.body)] });
|
|
48733
48485
|
};
|
|
48734
48486
|
var __rest$1 = globalThis && globalThis.__rest || function(s, e3) {
|
|
@@ -48743,7 +48495,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48743
48495
|
}
|
|
48744
48496
|
return t2;
|
|
48745
48497
|
};
|
|
48746
|
-
const
|
|
48498
|
+
const { fontSize } = window.getComputedStyle(document.documentElement);
|
|
48499
|
+
const ROW_HEIGHT = parseFloat(fontSize) * 2.5;
|
|
48747
48500
|
const shouldForwardProp$2 = (prop) => !["isSorted", "onClickRow"].includes(prop);
|
|
48748
48501
|
const Row = styled__default.default.div.withConfig({ shouldForwardProp: shouldForwardProp$2 })`
|
|
48749
48502
|
cursor: ${(props) => props.onClickRow ? "pointer" : "default"};
|
|
@@ -48799,7 +48552,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48799
48552
|
align-items: center;
|
|
48800
48553
|
|
|
48801
48554
|
min-width: 80px;
|
|
48802
|
-
height:
|
|
48555
|
+
height: ${() => `${ROW_HEIGHT}px`};
|
|
48803
48556
|
|
|
48804
48557
|
color: ${(props) => props.theme.colors.grey6};
|
|
48805
48558
|
|
|
@@ -48819,6 +48572,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48819
48572
|
text-overflow: ellipsis;
|
|
48820
48573
|
white-space: nowrap;
|
|
48821
48574
|
`;
|
|
48575
|
+
const arePropsEqual = (prevProps, nextProps) => {
|
|
48576
|
+
var _a;
|
|
48577
|
+
return areEqual(prevProps, nextProps) && !(((_a = nextProps.data) === null || _a === void 0 ? void 0 : _a.headerGroups) || []).some((headerGroup) => ((headerGroup === null || headerGroup === void 0 ? void 0 : headerGroup.headers) || []).some((header) => header.isResizing));
|
|
48578
|
+
};
|
|
48822
48579
|
const RenderRow = React__namespace.memo(({ data: { width, currentEditCell, headerGroups, rows, prepareRow, getItem, totalColumnsWidth, onClickRow, throttledClickRow, backgroundColor, mappedColumns }, index: index2, style: renderRowStyle }) => {
|
|
48823
48580
|
let row = rows[index2];
|
|
48824
48581
|
if (getItem) {
|
|
@@ -48864,7 +48621,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48864
48621
|
}) })
|
|
48865
48622
|
);
|
|
48866
48623
|
}));
|
|
48867
|
-
},
|
|
48624
|
+
}, arePropsEqual);
|
|
48868
48625
|
var __rest = globalThis && globalThis.__rest || function(s, e3) {
|
|
48869
48626
|
var t2 = {};
|
|
48870
48627
|
for (var p2 in s)
|
|
@@ -49028,8 +48785,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49028
48785
|
};
|
|
49029
48786
|
const appendFilterComponents = (columns) => {
|
|
49030
48787
|
return columns.map((col) => {
|
|
49031
|
-
if (!col.filter)
|
|
48788
|
+
if (!col.filter) {
|
|
49032
48789
|
return col;
|
|
48790
|
+
}
|
|
49033
48791
|
if (!(col.filter in filterComponentMap)) {
|
|
49034
48792
|
throw new Error(`Invalid filter ${col.filter} encountered in column ${col.id}, only ${Object.keys(filterComponentMap).join(",")} are supported`);
|
|
49035
48793
|
}
|
|
@@ -50425,14 +50183,88 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50425
50183
|
}
|
|
50426
50184
|
return DelayMessage2;
|
|
50427
50185
|
}();
|
|
50186
|
+
function _assertThisInitialized(self2) {
|
|
50187
|
+
if (self2 === void 0) {
|
|
50188
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
50189
|
+
}
|
|
50190
|
+
return self2;
|
|
50191
|
+
}
|
|
50192
|
+
function _getPrototypeOf(o2) {
|
|
50193
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
50194
|
+
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
50195
|
+
};
|
|
50196
|
+
return _getPrototypeOf(o2);
|
|
50197
|
+
}
|
|
50198
|
+
function _isNativeFunction(fn) {
|
|
50199
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
50200
|
+
}
|
|
50201
|
+
function _isNativeReflectConstruct() {
|
|
50202
|
+
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
50203
|
+
return false;
|
|
50204
|
+
if (Reflect.construct.sham)
|
|
50205
|
+
return false;
|
|
50206
|
+
if (typeof Proxy === "function")
|
|
50207
|
+
return true;
|
|
50208
|
+
try {
|
|
50209
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
50210
|
+
}));
|
|
50211
|
+
return true;
|
|
50212
|
+
} catch (e3) {
|
|
50213
|
+
return false;
|
|
50214
|
+
}
|
|
50215
|
+
}
|
|
50216
|
+
function _construct(Parent, args, Class) {
|
|
50217
|
+
if (_isNativeReflectConstruct()) {
|
|
50218
|
+
_construct = Reflect.construct.bind();
|
|
50219
|
+
} else {
|
|
50220
|
+
_construct = function _construct2(Parent2, args2, Class2) {
|
|
50221
|
+
var a2 = [null];
|
|
50222
|
+
a2.push.apply(a2, args2);
|
|
50223
|
+
var Constructor = Function.bind.apply(Parent2, a2);
|
|
50224
|
+
var instance = new Constructor();
|
|
50225
|
+
if (Class2)
|
|
50226
|
+
_setPrototypeOf$5(instance, Class2.prototype);
|
|
50227
|
+
return instance;
|
|
50228
|
+
};
|
|
50229
|
+
}
|
|
50230
|
+
return _construct.apply(null, arguments);
|
|
50231
|
+
}
|
|
50232
|
+
function _wrapNativeSuper(Class) {
|
|
50233
|
+
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
50234
|
+
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
50235
|
+
if (Class2 === null || !_isNativeFunction(Class2))
|
|
50236
|
+
return Class2;
|
|
50237
|
+
if (typeof Class2 !== "function") {
|
|
50238
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
50239
|
+
}
|
|
50240
|
+
if (typeof _cache !== "undefined") {
|
|
50241
|
+
if (_cache.has(Class2))
|
|
50242
|
+
return _cache.get(Class2);
|
|
50243
|
+
_cache.set(Class2, Wrapper2);
|
|
50244
|
+
}
|
|
50245
|
+
function Wrapper2() {
|
|
50246
|
+
return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
|
|
50247
|
+
}
|
|
50248
|
+
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
50249
|
+
constructor: {
|
|
50250
|
+
value: Wrapper2,
|
|
50251
|
+
enumerable: false,
|
|
50252
|
+
writable: true,
|
|
50253
|
+
configurable: true
|
|
50254
|
+
}
|
|
50255
|
+
});
|
|
50256
|
+
return _setPrototypeOf$5(Wrapper2, Class2);
|
|
50257
|
+
};
|
|
50258
|
+
return _wrapNativeSuper(Class);
|
|
50259
|
+
}
|
|
50428
50260
|
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
50429
|
-
_inheritsLoose$
|
|
50261
|
+
_inheritsLoose$2(PolishedError2, _Error);
|
|
50430
50262
|
function PolishedError2(code) {
|
|
50431
50263
|
var _this;
|
|
50432
50264
|
{
|
|
50433
50265
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
|
|
50434
50266
|
}
|
|
50435
|
-
return _assertThisInitialized
|
|
50267
|
+
return _assertThisInitialized(_this);
|
|
50436
50268
|
}
|
|
50437
50269
|
return PolishedError2;
|
|
50438
50270
|
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
@@ -50783,11 +50615,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50783
50615
|
if (weight === 0)
|
|
50784
50616
|
return otherColor;
|
|
50785
50617
|
var parsedColor1 = parseToRgb(color);
|
|
50786
|
-
var color1 = _extends$
|
|
50618
|
+
var color1 = _extends$4({}, parsedColor1, {
|
|
50787
50619
|
alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
|
|
50788
50620
|
});
|
|
50789
50621
|
var parsedColor2 = parseToRgb(otherColor);
|
|
50790
|
-
var color2 = _extends$
|
|
50622
|
+
var color2 = _extends$4({}, parsedColor2, {
|
|
50791
50623
|
alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
|
|
50792
50624
|
});
|
|
50793
50625
|
var alphaDelta = color1.alpha - color2.alpha;
|
|
@@ -50811,7 +50643,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50811
50643
|
return color;
|
|
50812
50644
|
var parsedColor = parseToRgb(color);
|
|
50813
50645
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
50814
|
-
var colorWithAlpha = _extends$
|
|
50646
|
+
var colorWithAlpha = _extends$4({}, parsedColor, {
|
|
50815
50647
|
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
50816
50648
|
});
|
|
50817
50649
|
return rgba(colorWithAlpha);
|
|
@@ -50862,9 +50694,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50862
50694
|
|
|
50863
50695
|
font-weight: 400;
|
|
50864
50696
|
text-overflow: ellipsis;
|
|
50697
|
+
line-height: 1.25rem;
|
|
50865
50698
|
|
|
50866
50699
|
-webkit-box-orient: vertical;
|
|
50867
|
-
-webkit-line-clamp: 2;
|
|
50700
|
+
-webkit-line-clamp: ${(props) => props.moreDetailsShown ? 1 : 2};
|
|
50868
50701
|
`;
|
|
50869
50702
|
const Icon$1 = styled__default.default.div`
|
|
50870
50703
|
display: flex;
|
|
@@ -50874,6 +50707,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50874
50707
|
height: 1.3125rem;
|
|
50875
50708
|
color: ${(props) => getStatusColor(props.status, props.theme.colors)};
|
|
50876
50709
|
}
|
|
50710
|
+
`;
|
|
50711
|
+
const MoreDetailsButton = styled__default.default.button`
|
|
50712
|
+
color: ${() => theme.colors.grey4};
|
|
50713
|
+
border: none;
|
|
50714
|
+
background: transparent;
|
|
50715
|
+
cursor: pointer;
|
|
50716
|
+
display: flex;
|
|
50717
|
+
padding-left: 0;
|
|
50718
|
+
:hover {
|
|
50719
|
+
text-decoration: underline;
|
|
50720
|
+
}
|
|
50877
50721
|
`;
|
|
50878
50722
|
const CloseBtn = styled__default.default(Cross)`
|
|
50879
50723
|
height: 1.2rem;
|
|
@@ -50889,7 +50733,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50889
50733
|
return status === Status.SUCCESS ? jsxRuntime.exports.jsx(CircleCheck, {}) : jsxRuntime.exports.jsx(CircleInfo, {});
|
|
50890
50734
|
}
|
|
50891
50735
|
function Notification(props) {
|
|
50892
|
-
|
|
50736
|
+
const isOverflowing = props.notification.message.length > 30;
|
|
50737
|
+
const showMoreDetails = props.onMoreDetailsClick && isOverflowing;
|
|
50738
|
+
return jsxRuntime.exports.jsxs(NotificationWrapper$1, { hasTitle: !!props.notification.title, status: props.notification.status, children: [jsxRuntime.exports.jsx(Icon$1, { status: props.notification.status, children: getIcon$1(props.notification.status) }), jsxRuntime.exports.jsxs(Message, { children: [jsxRuntime.exports.jsx(Heading, { children: props.notification.title }), jsxRuntime.exports.jsx(Body, { moreDetailsShown: showMoreDetails, children: props.notification.message }), showMoreDetails && jsxRuntime.exports.jsx(MoreDetailsButton, { onClick: (e3) => props.onMoreDetailsClick(e3, props.notification), type: "button", children: "Details >" })] }), jsxRuntime.exports.jsx(CloseBtn, { asButton: true, onClick: () => props.onDismiss(props.notification.key), status: props.notification.status })] });
|
|
50893
50739
|
}
|
|
50894
50740
|
const Container = styled__default.default.div`
|
|
50895
50741
|
pointer-events: none;
|
|
@@ -50911,13 +50757,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50911
50757
|
const baseNotifications$ = new Subject$1();
|
|
50912
50758
|
const NotificationContext = React__namespace.createContext({
|
|
50913
50759
|
notifications$: baseNotifications$,
|
|
50760
|
+
onMoreDetailsClick: null,
|
|
50914
50761
|
push: (notification) => baseNotifications$.next(notification)
|
|
50915
50762
|
});
|
|
50916
50763
|
const EXPIRY = 9900;
|
|
50917
50764
|
function NotificationWrapper(props) {
|
|
50918
50765
|
const [notifications, setNotifications] = React$2.useState([]);
|
|
50919
50766
|
const wrapSub = useSubscription();
|
|
50920
|
-
const { notifications
|
|
50767
|
+
const { notifications$, onMoreDetailsClick } = React$2.useContext(NotificationContext);
|
|
50921
50768
|
React$2.useEffect(() => {
|
|
50922
50769
|
if (notifications$) {
|
|
50923
50770
|
wrapSub(notifications$.subscribe({
|
|
@@ -50926,18 +50773,18 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50926
50773
|
}
|
|
50927
50774
|
}));
|
|
50928
50775
|
}
|
|
50929
|
-
}, [notifications
|
|
50776
|
+
}, [notifications$, wrapSub]);
|
|
50930
50777
|
React$2.useEffect(() => {
|
|
50931
50778
|
wrapSub(notifications$.pipe(delay(EXPIRY)).subscribe({
|
|
50932
50779
|
next: (notification) => {
|
|
50933
50780
|
setNotifications((prev) => prev.filter(({ key }) => notification.key !== key));
|
|
50934
50781
|
}
|
|
50935
50782
|
}));
|
|
50936
|
-
}, [notifications
|
|
50783
|
+
}, [notifications$, wrapSub]);
|
|
50937
50784
|
const onDismiss = React$2.useCallback((key) => {
|
|
50938
50785
|
setNotifications((prev) => prev.filter((notification) => notification.key !== key));
|
|
50939
50786
|
}, []);
|
|
50940
|
-
return jsxRuntime.exports.jsx(Container, { style: props.style, children: notifications.map((notification) => jsxRuntime.exports.jsx(Notification, { notification, onDismiss }, notification.key)) });
|
|
50787
|
+
return jsxRuntime.exports.jsx(Container, { style: props.style, children: notifications.map((notification) => jsxRuntime.exports.jsx(Notification, { notification, onDismiss, onMoreDetailsClick }, notification.key)) });
|
|
50941
50788
|
}
|
|
50942
50789
|
function identity$4(value) {
|
|
50943
50790
|
return value;
|
|
@@ -56316,8 +56163,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
56316
56163
|
return `${getUniqueIdentifier(variable)}-${type}`;
|
|
56317
56164
|
}
|
|
56318
56165
|
function isRegistered(variable) {
|
|
56319
|
-
if (!isVariable(variable))
|
|
56166
|
+
if (!isVariable(variable)) {
|
|
56320
56167
|
return false;
|
|
56168
|
+
}
|
|
56321
56169
|
switch (variable.__typename) {
|
|
56322
56170
|
case "Variable":
|
|
56323
56171
|
case "UrlVariable":
|
|
@@ -58228,10 +58076,12 @@ Inferred class string: "${iconClasses}."`
|
|
|
58228
58076
|
}
|
|
58229
58077
|
var clone_1 = clone;
|
|
58230
58078
|
function resolveNested(obj, nested) {
|
|
58231
|
-
if (!nested || nested.length === 0)
|
|
58079
|
+
if (!nested || nested.length === 0) {
|
|
58232
58080
|
return obj;
|
|
58233
|
-
|
|
58081
|
+
}
|
|
58082
|
+
if (!obj || !(typeof obj === "object" && !Array.isArray(obj))) {
|
|
58234
58083
|
return obj;
|
|
58084
|
+
}
|
|
58235
58085
|
let returnVal = obj;
|
|
58236
58086
|
for (const key of nested) {
|
|
58237
58087
|
if (!Object.keys(returnVal).includes(key)) {
|
|
@@ -58242,10 +58092,12 @@ Inferred class string: "${iconClasses}."`
|
|
|
58242
58092
|
return returnVal;
|
|
58243
58093
|
}
|
|
58244
58094
|
function setNested(obj, nested, newValue) {
|
|
58245
|
-
if (!nested || nested.length === 0)
|
|
58095
|
+
if (!nested || nested.length === 0) {
|
|
58246
58096
|
return cloneDeep_1(obj);
|
|
58247
|
-
|
|
58097
|
+
}
|
|
58098
|
+
if (!obj || !(typeof obj === "object" && !Array.isArray(obj))) {
|
|
58248
58099
|
return cloneDeep_1(obj);
|
|
58100
|
+
}
|
|
58249
58101
|
const cloned = clone_1(obj);
|
|
58250
58102
|
const [key] = nested;
|
|
58251
58103
|
if (!Object.keys(obj).includes(key)) {
|
|
@@ -58865,8 +58717,9 @@ Inferred class string: "${iconClasses}."`
|
|
|
58865
58717
|
}, [subscribedTaskIds]);
|
|
58866
58718
|
React$2.useEffect(() => {
|
|
58867
58719
|
var _a, _b;
|
|
58868
|
-
if (!latestProgressUpdate)
|
|
58720
|
+
if (!latestProgressUpdate) {
|
|
58869
58721
|
return;
|
|
58722
|
+
}
|
|
58870
58723
|
if (fakeInterval.current) {
|
|
58871
58724
|
clearInterval(fakeInterval.current);
|
|
58872
58725
|
}
|
|
@@ -93201,15 +93054,15 @@ Inferred class string: "${iconClasses}."`
|
|
|
93201
93054
|
var _class;
|
|
93202
93055
|
var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize2 = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
|
|
93203
93056
|
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
93204
|
-
_inheritsLoose$
|
|
93057
|
+
_inheritsLoose$2(List2, _PureComponent);
|
|
93205
93058
|
function List2(props) {
|
|
93206
93059
|
var _this;
|
|
93207
93060
|
_this = _PureComponent.call(this, props) || this;
|
|
93208
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized
|
|
93061
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
93209
93062
|
_this._outerRef = void 0;
|
|
93210
93063
|
_this._resetIsScrollingTimeoutId = null;
|
|
93211
93064
|
_this.state = {
|
|
93212
|
-
instance: _assertThisInitialized
|
|
93065
|
+
instance: _assertThisInitialized(_this),
|
|
93213
93066
|
isScrolling: false,
|
|
93214
93067
|
scrollDirection: "forward",
|
|
93215
93068
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -93432,7 +93285,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
93432
93285
|
className,
|
|
93433
93286
|
onScroll,
|
|
93434
93287
|
ref: this._outerRefSetter,
|
|
93435
|
-
style: _extends$
|
|
93288
|
+
style: _extends$4({
|
|
93436
93289
|
position: "relative",
|
|
93437
93290
|
height,
|
|
93438
93291
|
width,
|