@darajs/core 1.3.1 → 1.3.2
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.
|
@@ -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$3() {
|
|
35
|
+
_extends$3 = 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$3.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$3({}, 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$3(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$3(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$3(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$4(o2, p2) {
|
|
863
|
+
_setPrototypeOf$4 = 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$4(o2, p2);
|
|
868
868
|
}
|
|
869
|
-
function _inheritsLoose$
|
|
869
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
870
870
|
subClass.prototype = Object.create(superClass.prototype);
|
|
871
871
|
subClass.prototype.constructor = subClass;
|
|
872
|
-
_setPrototypeOf$
|
|
872
|
+
_setPrototypeOf$4(subClass, superClass);
|
|
873
873
|
}
|
|
874
874
|
var propTypes = { exports: {} };
|
|
875
875
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -1265,7 +1265,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1265
1265
|
module2.exports = reactIs_production_min$1;
|
|
1266
1266
|
}
|
|
1267
1267
|
})(reactIs$2);
|
|
1268
|
-
function _objectWithoutPropertiesLoose$
|
|
1268
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
1269
1269
|
if (source == null)
|
|
1270
1270
|
return {};
|
|
1271
1271
|
var target = {};
|
|
@@ -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$1(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$1(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$1(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$1(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$1(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$3({}, 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$3({}, 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$1(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$3({}, 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$3({}, 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$3({}, 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$1(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++) {
|
|
@@ -1843,7 +1843,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1843
1843
|
context2.url = createURL(context2.location);
|
|
1844
1844
|
};
|
|
1845
1845
|
_proto.render = function render2() {
|
|
1846
|
-
var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location2 = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$
|
|
1846
|
+
var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location2 = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$5(_this$props2, ["basename", "context", "location"]);
|
|
1847
1847
|
var history2 = {
|
|
1848
1848
|
createHref: function createHref(path) {
|
|
1849
1849
|
return addLeadingSlash(basename + createURL(path));
|
|
@@ -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$3({}, 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$1(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$3({}, child.props, {
|
|
1885
1885
|
path
|
|
1886
1886
|
})) : context2.match;
|
|
1887
1887
|
}
|
|
@@ -1897,10 +1897,10 @@ var __publicField = (obj, key, value) => {
|
|
|
1897
1897
|
function withRouter(Component) {
|
|
1898
1898
|
var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
|
|
1899
1899
|
var C2 = function C3(props) {
|
|
1900
|
-
var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$
|
|
1900
|
+
var wrappedComponentRef = props.wrappedComponentRef, remainingProps = _objectWithoutPropertiesLoose$5(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$3({}, 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$1(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$1(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++) {
|
|
@@ -1982,9 +1982,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1982
1982
|
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
|
|
1983
1983
|
}
|
|
1984
1984
|
var LinkAnchor = forwardRef$1(function(_ref2, forwardedRef) {
|
|
1985
|
-
var innerRef = _ref2.innerRef, navigate = _ref2.navigate, _onClick = _ref2.onClick, rest = _objectWithoutPropertiesLoose$
|
|
1985
|
+
var innerRef = _ref2.innerRef, navigate = _ref2.navigate, _onClick = _ref2.onClick, rest = _objectWithoutPropertiesLoose$5(_ref2, ["innerRef", "navigate", "onClick"]);
|
|
1986
1986
|
var target = rest.target;
|
|
1987
|
-
var props = _extends$
|
|
1987
|
+
var props = _extends$3({}, rest, {
|
|
1988
1988
|
onClick: function onClick(event) {
|
|
1989
1989
|
try {
|
|
1990
1990
|
if (_onClick)
|
|
@@ -2007,13 +2007,13 @@ var __publicField = (obj, key, value) => {
|
|
|
2007
2007
|
return /* @__PURE__ */ React__default.default.createElement("a", props);
|
|
2008
2008
|
});
|
|
2009
2009
|
var Link = forwardRef$1(function(_ref2, forwardedRef) {
|
|
2010
|
-
var _ref2$component = _ref2.component, component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, replace2 = _ref2.replace, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$
|
|
2010
|
+
var _ref2$component = _ref2.component, component = _ref2$component === void 0 ? LinkAnchor : _ref2$component, replace2 = _ref2.replace, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$5(_ref2, ["component", "replace", "to", "innerRef"]);
|
|
2011
2011
|
return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
|
|
2012
2012
|
!context2 ? invariant$1(false) : void 0;
|
|
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$3({}, rest, {
|
|
2017
2017
|
href,
|
|
2018
2018
|
navigate: function navigate() {
|
|
2019
2019
|
var location3 = resolveToLocation(to, context2.location);
|
|
@@ -2046,7 +2046,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2046
2046
|
}).join(" ");
|
|
2047
2047
|
}
|
|
2048
2048
|
var NavLink = forwardRef$1$1(function(_ref2, forwardedRef) {
|
|
2049
|
-
var _ref$ariaCurrent = _ref2["aria-current"], ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, _ref$activeClassName = _ref2.activeClassName, activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, activeStyle = _ref2.activeStyle, classNameProp = _ref2.className, exact = _ref2.exact, isActiveProp = _ref2.isActive, locationProp = _ref2.location, sensitive = _ref2.sensitive, strict = _ref2.strict, styleProp = _ref2.style, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$
|
|
2049
|
+
var _ref$ariaCurrent = _ref2["aria-current"], ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent, _ref$activeClassName = _ref2.activeClassName, activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName, activeStyle = _ref2.activeStyle, classNameProp = _ref2.className, exact = _ref2.exact, isActiveProp = _ref2.isActive, locationProp = _ref2.location, sensitive = _ref2.sensitive, strict = _ref2.strict, styleProp = _ref2.style, to = _ref2.to, innerRef = _ref2.innerRef, rest = _objectWithoutPropertiesLoose$5(_ref2, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
|
|
2050
2050
|
return /* @__PURE__ */ React__default.default.createElement(context.Consumer, null, function(context2) {
|
|
2051
2051
|
!context2 ? invariant$1(false) : void 0;
|
|
2052
2052
|
var currentLocation = locationProp || 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$3({}, style, activeStyle);
|
|
2068
2068
|
}
|
|
2069
|
-
var props = _extends$
|
|
2069
|
+
var props = _extends$3({
|
|
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$2() {
|
|
10583
|
+
_extends$2 = 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$2.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$2({}, 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$2({}, 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$3(subClass, superClass);
|
|
12199
12199
|
}
|
|
12200
|
-
function _setPrototypeOf$
|
|
12201
|
-
_setPrototypeOf$
|
|
12200
|
+
function _setPrototypeOf$3(o2, p2) {
|
|
12201
|
+
_setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12202
12202
|
o3.__proto__ = p3;
|
|
12203
12203
|
return o3;
|
|
12204
12204
|
};
|
|
12205
|
-
return _setPrototypeOf$
|
|
12205
|
+
return _setPrototypeOf$3(o2, p2);
|
|
12206
12206
|
}
|
|
12207
12207
|
function _createSuper$3(Derived) {
|
|
12208
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12208
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$3();
|
|
12209
12209
|
return function _createSuperInternal() {
|
|
12210
|
-
var Super = _getPrototypeOf$
|
|
12210
|
+
var Super = _getPrototypeOf$3(Derived), result;
|
|
12211
12211
|
if (hasNativeReflectConstruct) {
|
|
12212
|
-
var NewTarget = _getPrototypeOf$
|
|
12212
|
+
var NewTarget = _getPrototypeOf$3(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$4(self2);
|
|
12227
12227
|
}
|
|
12228
|
-
function _assertThisInitialized$
|
|
12228
|
+
function _assertThisInitialized$4(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$3() {
|
|
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$3(o2) {
|
|
12250
|
+
_getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12251
12251
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12252
12252
|
};
|
|
12253
|
-
return _getPrototypeOf$
|
|
12253
|
+
return _getPrototypeOf$3(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$4(_this), "timeout", void 0);
|
|
12271
|
+
_defineProperty$8(_assertThisInitialized$4(_this), "container", void 0);
|
|
12272
|
+
_defineProperty$8(_assertThisInitialized$4(_this), "content", void 0);
|
|
12273
|
+
_defineProperty$8(_assertThisInitialized$4(_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$4(_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$4(_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$4(_this), "onRefContainer", function(container) {
|
|
12350
12350
|
_this.container = container;
|
|
12351
12351
|
});
|
|
12352
|
-
_defineProperty$
|
|
12352
|
+
_defineProperty$8(_assertThisInitialized$4(_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$1() {
|
|
12456
|
+
_extends$1 = 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$1.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,23 +12483,23 @@ 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
|
-
var target = _objectWithoutPropertiesLoose$
|
|
12502
|
+
var target = _objectWithoutPropertiesLoose$4(source, excluded);
|
|
12503
12503
|
var key, i2;
|
|
12504
12504
|
if (Object.getOwnPropertySymbols) {
|
|
12505
12505
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12514,7 +12514,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12514
12514
|
}
|
|
12515
12515
|
return target;
|
|
12516
12516
|
}
|
|
12517
|
-
function _objectWithoutPropertiesLoose$
|
|
12517
|
+
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
12518
12518
|
if (source == null)
|
|
12519
12519
|
return {};
|
|
12520
12520
|
var target = {};
|
|
@@ -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$2(subClass, superClass);
|
|
12560
12560
|
}
|
|
12561
|
-
function _setPrototypeOf$
|
|
12562
|
-
_setPrototypeOf$
|
|
12561
|
+
function _setPrototypeOf$2(o2, p2) {
|
|
12562
|
+
_setPrototypeOf$2 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
12563
12563
|
o3.__proto__ = p3;
|
|
12564
12564
|
return o3;
|
|
12565
12565
|
};
|
|
12566
|
-
return _setPrototypeOf$
|
|
12566
|
+
return _setPrototypeOf$2(o2, p2);
|
|
12567
12567
|
}
|
|
12568
12568
|
function _createSuper$2(Derived) {
|
|
12569
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
12569
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$2();
|
|
12570
12570
|
return function _createSuperInternal() {
|
|
12571
|
-
var Super = _getPrototypeOf$
|
|
12571
|
+
var Super = _getPrototypeOf$2(Derived), result;
|
|
12572
12572
|
if (hasNativeReflectConstruct) {
|
|
12573
|
-
var NewTarget = _getPrototypeOf$
|
|
12573
|
+
var NewTarget = _getPrototypeOf$2(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$3(self2);
|
|
12588
12588
|
}
|
|
12589
|
-
function _assertThisInitialized$
|
|
12589
|
+
function _assertThisInitialized$3(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$2() {
|
|
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$2(o2) {
|
|
12611
|
+
_getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
12612
12612
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
12613
12613
|
};
|
|
12614
|
-
return _getPrototypeOf$
|
|
12614
|
+
return _getPrototypeOf$2(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$3(_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$3(_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$3(_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$1({}, 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
|
});
|
|
@@ -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()
|
|
@@ -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,
|
|
@@ -15323,7 +15323,7 @@ var __publicField = (obj, key, value) => {
|
|
|
15323
15323
|
}
|
|
15324
15324
|
return obj;
|
|
15325
15325
|
}
|
|
15326
|
-
function _objectWithoutPropertiesLoose$
|
|
15326
|
+
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
15327
15327
|
if (source == null)
|
|
15328
15328
|
return {};
|
|
15329
15329
|
var target = {};
|
|
@@ -15337,10 +15337,10 @@ 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
|
-
var target = _objectWithoutPropertiesLoose$
|
|
15343
|
+
var target = _objectWithoutPropertiesLoose$3(source, excluded);
|
|
15344
15344
|
var key, i2;
|
|
15345
15345
|
if (Object.getOwnPropertySymbols) {
|
|
15346
15346
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -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}; }` : ""}
|
|
@@ -17421,48 +17421,26 @@ 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
|
|
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) {
|
|
17424
|
+
function _assertThisInitialized$2(self2) {
|
|
17439
17425
|
if (self2 === void 0) {
|
|
17440
17426
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17441
17427
|
}
|
|
17442
17428
|
return self2;
|
|
17443
17429
|
}
|
|
17444
|
-
function
|
|
17445
|
-
|
|
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) {
|
|
17430
|
+
function _getPrototypeOf$1(o2) {
|
|
17431
|
+
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
17458
17432
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
17459
17433
|
};
|
|
17460
|
-
return _getPrototypeOf$
|
|
17434
|
+
return _getPrototypeOf$1(o2);
|
|
17461
17435
|
}
|
|
17462
|
-
function _isNativeFunction
|
|
17463
|
-
|
|
17436
|
+
function _isNativeFunction(fn) {
|
|
17437
|
+
try {
|
|
17438
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
17439
|
+
} catch (e3) {
|
|
17440
|
+
return typeof fn === "function";
|
|
17441
|
+
}
|
|
17464
17442
|
}
|
|
17465
|
-
function _isNativeReflectConstruct$
|
|
17443
|
+
function _isNativeReflectConstruct$1() {
|
|
17466
17444
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
17467
17445
|
return false;
|
|
17468
17446
|
if (Reflect.construct.sham)
|
|
@@ -17477,26 +17455,26 @@ var __publicField = (obj, key, value) => {
|
|
|
17477
17455
|
return false;
|
|
17478
17456
|
}
|
|
17479
17457
|
}
|
|
17480
|
-
function _construct
|
|
17481
|
-
if (_isNativeReflectConstruct$
|
|
17482
|
-
_construct
|
|
17458
|
+
function _construct(Parent, args, Class) {
|
|
17459
|
+
if (_isNativeReflectConstruct$1()) {
|
|
17460
|
+
_construct = Reflect.construct.bind();
|
|
17483
17461
|
} else {
|
|
17484
|
-
_construct
|
|
17462
|
+
_construct = function _construct2(Parent2, args2, Class2) {
|
|
17485
17463
|
var a2 = [null];
|
|
17486
17464
|
a2.push.apply(a2, args2);
|
|
17487
17465
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
17488
17466
|
var instance = new Constructor();
|
|
17489
17467
|
if (Class2)
|
|
17490
|
-
_setPrototypeOf$
|
|
17468
|
+
_setPrototypeOf$4(instance, Class2.prototype);
|
|
17491
17469
|
return instance;
|
|
17492
17470
|
};
|
|
17493
17471
|
}
|
|
17494
|
-
return _construct
|
|
17472
|
+
return _construct.apply(null, arguments);
|
|
17495
17473
|
}
|
|
17496
|
-
function _wrapNativeSuper
|
|
17474
|
+
function _wrapNativeSuper(Class) {
|
|
17497
17475
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
17498
|
-
_wrapNativeSuper
|
|
17499
|
-
if (Class2 === null || !_isNativeFunction
|
|
17476
|
+
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
17477
|
+
if (Class2 === null || !_isNativeFunction(Class2))
|
|
17500
17478
|
return Class2;
|
|
17501
17479
|
if (typeof Class2 !== "function") {
|
|
17502
17480
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -17507,7 +17485,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17507
17485
|
_cache.set(Class2, Wrapper2);
|
|
17508
17486
|
}
|
|
17509
17487
|
function Wrapper2() {
|
|
17510
|
-
return _construct
|
|
17488
|
+
return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
|
|
17511
17489
|
}
|
|
17512
17490
|
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
17513
17491
|
constructor: {
|
|
@@ -17517,9 +17495,9 @@ var __publicField = (obj, key, value) => {
|
|
|
17517
17495
|
configurable: true
|
|
17518
17496
|
}
|
|
17519
17497
|
});
|
|
17520
|
-
return _setPrototypeOf$
|
|
17498
|
+
return _setPrototypeOf$4(Wrapper2, Class2);
|
|
17521
17499
|
};
|
|
17522
|
-
return _wrapNativeSuper
|
|
17500
|
+
return _wrapNativeSuper(Class);
|
|
17523
17501
|
}
|
|
17524
17502
|
var PolishedError$1 = /* @__PURE__ */ function(_Error) {
|
|
17525
17503
|
_inheritsLoose$1(PolishedError2, _Error);
|
|
@@ -17528,10 +17506,10 @@ var __publicField = (obj, key, value) => {
|
|
|
17528
17506
|
{
|
|
17529
17507
|
_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;
|
|
17530
17508
|
}
|
|
17531
|
-
return _assertThisInitialized$
|
|
17509
|
+
return _assertThisInitialized$2(_this);
|
|
17532
17510
|
}
|
|
17533
17511
|
return PolishedError2;
|
|
17534
|
-
}(/* @__PURE__ */ _wrapNativeSuper
|
|
17512
|
+
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
17535
17513
|
function colorToInt$1(color) {
|
|
17536
17514
|
return Math.round(color * 255);
|
|
17537
17515
|
}
|
|
@@ -17875,7 +17853,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17875
17853
|
return color;
|
|
17876
17854
|
var parsedColor = parseToRgb$1(color);
|
|
17877
17855
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
17878
|
-
var colorWithAlpha = _extends$
|
|
17856
|
+
var colorWithAlpha = _extends$3({}, parsedColor, {
|
|
17879
17857
|
alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
|
|
17880
17858
|
});
|
|
17881
17859
|
return rgba$1(colorWithAlpha);
|
|
@@ -18739,20 +18717,6 @@ var __publicField = (obj, key, value) => {
|
|
|
18739
18717
|
setPreviousFilter(filterValue);
|
|
18740
18718
|
}, children: "Apply" })] });
|
|
18741
18719
|
}
|
|
18742
|
-
function _objectWithoutPropertiesLoose$4(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
|
-
}
|
|
18756
18720
|
var reactIs = { exports: {} };
|
|
18757
18721
|
var reactIs_production_min = {};
|
|
18758
18722
|
/** @license React v17.0.2
|
|
@@ -19283,7 +19247,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19283
19247
|
}
|
|
19284
19248
|
});
|
|
19285
19249
|
if (props.onStateChange && Object.keys(changes).length) {
|
|
19286
|
-
props.onStateChange(_extends$
|
|
19250
|
+
props.onStateChange(_extends$3({
|
|
19287
19251
|
type
|
|
19288
19252
|
}, changes));
|
|
19289
19253
|
}
|
|
@@ -19292,7 +19256,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19292
19256
|
var props = action.props, type = action.type;
|
|
19293
19257
|
var handler = "on" + capitalizeString(key) + "Change";
|
|
19294
19258
|
if (props[handler] && newState[key] !== void 0 && newState[key] !== state[key]) {
|
|
19295
|
-
props[handler](_extends$
|
|
19259
|
+
props[handler](_extends$3({
|
|
19296
19260
|
type
|
|
19297
19261
|
}, newState));
|
|
19298
19262
|
}
|
|
@@ -19356,7 +19320,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19356
19320
|
actionRef.current = action2;
|
|
19357
19321
|
state2 = getState(state2, action2.props);
|
|
19358
19322
|
var changes = reducer2(state2, action2);
|
|
19359
|
-
var newState = action2.props.stateReducer(state2, _extends$
|
|
19323
|
+
var newState = action2.props.stateReducer(state2, _extends$3({}, action2, {
|
|
19360
19324
|
changes
|
|
19361
19325
|
}));
|
|
19362
19326
|
return newState;
|
|
@@ -19364,7 +19328,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19364
19328
|
var _useReducer = React$2.useReducer(enhancedReducer, initialState2), state = _useReducer[0], dispatch2 = _useReducer[1];
|
|
19365
19329
|
var propsRef = useLatestRef(props);
|
|
19366
19330
|
var dispatchWithProps = React$2.useCallback(function(action2) {
|
|
19367
|
-
return dispatch2(_extends$
|
|
19331
|
+
return dispatch2(_extends$3({
|
|
19368
19332
|
props: propsRef.current
|
|
19369
19333
|
}, action2));
|
|
19370
19334
|
}, [propsRef]);
|
|
@@ -19496,13 +19460,13 @@ var __publicField = (obj, key, value) => {
|
|
|
19496
19460
|
return noop$3;
|
|
19497
19461
|
};
|
|
19498
19462
|
function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
|
|
19499
|
-
var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$
|
|
19463
|
+
var isInitialMount = _ref2.isInitialMount, highlightedIndex = _ref2.highlightedIndex, items = _ref2.items, environment = _ref2.environment, rest = _objectWithoutPropertiesLoose$5(_ref2, _excluded$3);
|
|
19500
19464
|
React$2.useEffect(function() {
|
|
19501
19465
|
if (isInitialMount || false) {
|
|
19502
19466
|
return;
|
|
19503
19467
|
}
|
|
19504
19468
|
updateA11yStatus(function() {
|
|
19505
|
-
return getA11yMessage(_extends$
|
|
19469
|
+
return getA11yMessage(_extends$3({
|
|
19506
19470
|
highlightedIndex,
|
|
19507
19471
|
highlightedItem: items[highlightedIndex],
|
|
19508
19472
|
resultCount: items.length
|
|
@@ -19532,10 +19496,10 @@ var __publicField = (obj, key, value) => {
|
|
|
19532
19496
|
inputValue = true;
|
|
19533
19497
|
}
|
|
19534
19498
|
var shouldSelect = ((_props$items = props.items) == null ? void 0 : _props$items.length) && highlightedIndex >= 0;
|
|
19535
|
-
return _extends$
|
|
19499
|
+
return _extends$3({
|
|
19536
19500
|
isOpen: false,
|
|
19537
19501
|
highlightedIndex: -1
|
|
19538
|
-
}, shouldSelect && _extends$
|
|
19502
|
+
}, shouldSelect && _extends$3({
|
|
19539
19503
|
selectedItem: props.items[highlightedIndex],
|
|
19540
19504
|
isOpen: getDefaultValue$1(props, "isOpen"),
|
|
19541
19505
|
highlightedIndex: getDefaultValue$1(props, "highlightedIndex")
|
|
@@ -19596,7 +19560,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19596
19560
|
default:
|
|
19597
19561
|
throw new Error("Reducer called without proper action type.");
|
|
19598
19562
|
}
|
|
19599
|
-
return _extends$
|
|
19563
|
+
return _extends$3({}, state, changes);
|
|
19600
19564
|
}
|
|
19601
19565
|
function getItemIndexByCharacterKey(_a) {
|
|
19602
19566
|
var keysSoFar = _a.keysSoFar, highlightedIndex = _a.highlightedIndex, items = _a.items, itemToString2 = _a.itemToString, getItemNodeFromIndex = _a.getItemNodeFromIndex;
|
|
@@ -19792,7 +19756,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19792
19756
|
};
|
|
19793
19757
|
break;
|
|
19794
19758
|
case ToggleButtonBlur:
|
|
19795
|
-
changes = _extends$
|
|
19759
|
+
changes = _extends$3({
|
|
19796
19760
|
isOpen: false,
|
|
19797
19761
|
highlightedIndex: -1
|
|
19798
19762
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && {
|
|
@@ -19807,7 +19771,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19807
19771
|
default:
|
|
19808
19772
|
return downshiftCommonReducer(state, action, stateChangeTypes$2);
|
|
19809
19773
|
}
|
|
19810
|
-
return _extends$
|
|
19774
|
+
return _extends$3({}, state, changes);
|
|
19811
19775
|
}
|
|
19812
19776
|
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"];
|
|
19813
19777
|
useSelect.stateChangeTypes = stateChangeTypes$2;
|
|
@@ -19815,7 +19779,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19815
19779
|
if (userProps === void 0) {
|
|
19816
19780
|
userProps = {};
|
|
19817
19781
|
}
|
|
19818
|
-
var props = _extends$
|
|
19782
|
+
var props = _extends$3({}, defaultProps$2, userProps);
|
|
19819
19783
|
var items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, itemToString2 = props.itemToString, getA11ySelectionMessage2 = props.getA11ySelectionMessage, getA11yStatusMessage2 = props.getA11yStatusMessage;
|
|
19820
19784
|
var initialState2 = getInitialState$2(props);
|
|
19821
19785
|
var _useControlledReducer = useControlledReducer$1(downshiftSelectReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -19834,14 +19798,14 @@ var __publicField = (obj, key, value) => {
|
|
|
19834
19798
|
var getItemNodeFromIndex = React$2.useCallback(function(index2) {
|
|
19835
19799
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
19836
19800
|
}, [elementIds]);
|
|
19837
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
19801
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$3({
|
|
19838
19802
|
isInitialMount: isInitialMountRef.current,
|
|
19839
19803
|
previousResultCount: previousResultCountRef.current,
|
|
19840
19804
|
items,
|
|
19841
19805
|
environment,
|
|
19842
19806
|
itemToString: itemToString2
|
|
19843
19807
|
}, state));
|
|
19844
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
19808
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$3({
|
|
19845
19809
|
isInitialMount: isInitialMountRef.current,
|
|
19846
19810
|
previousResultCount: previousResultCountRef.current,
|
|
19847
19811
|
items,
|
|
@@ -20026,7 +19990,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20026
19990
|
});
|
|
20027
19991
|
}, [dispatch2]);
|
|
20028
19992
|
var getLabelProps = React$2.useCallback(function(labelProps) {
|
|
20029
|
-
return _extends$
|
|
19993
|
+
return _extends$3({
|
|
20030
19994
|
id: elementIds.labelId,
|
|
20031
19995
|
htmlFor: elementIds.toggleButtonId
|
|
20032
19996
|
}, labelProps);
|
|
@@ -20036,7 +20000,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20036
20000
|
var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey;
|
|
20037
20001
|
_ref2.onKeyDown;
|
|
20038
20002
|
_ref2.onBlur;
|
|
20039
|
-
var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$
|
|
20003
|
+
var ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$5(_ref2, _excluded$2);
|
|
20040
20004
|
var _ref22 = _temp2 === void 0 ? {} : _temp2;
|
|
20041
20005
|
_ref22.suppressRefError;
|
|
20042
20006
|
var menuHandleMouseLeave = function menuHandleMouseLeave2() {
|
|
@@ -20044,7 +20008,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20044
20008
|
type: MenuMouseLeave$1
|
|
20045
20009
|
});
|
|
20046
20010
|
};
|
|
20047
|
-
return _extends$
|
|
20011
|
+
return _extends$3((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
20048
20012
|
menuRef.current = menuNode;
|
|
20049
20013
|
}), _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);
|
|
20050
20014
|
}, [dispatch2, setGetterPropCallInfo, elementIds]);
|
|
@@ -20052,7 +20016,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20052
20016
|
var _extends3;
|
|
20053
20017
|
var _ref3 = _temp3 === void 0 ? {} : _temp3, onBlur = _ref3.onBlur, onClick = _ref3.onClick;
|
|
20054
20018
|
_ref3.onPress;
|
|
20055
|
-
var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$
|
|
20019
|
+
var onKeyDown = _ref3.onKeyDown, _ref3$refKey = _ref3.refKey, refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey, ref = _ref3.ref, rest = _objectWithoutPropertiesLoose$5(_ref3, _excluded2$2);
|
|
20056
20020
|
var _ref4 = _temp4 === void 0 ? {} : _temp4;
|
|
20057
20021
|
_ref4.suppressRefError;
|
|
20058
20022
|
var latestState = latest.current.state;
|
|
@@ -20080,7 +20044,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20080
20044
|
});
|
|
20081
20045
|
}
|
|
20082
20046
|
};
|
|
20083
|
-
var toggleProps = _extends$
|
|
20047
|
+
var toggleProps = _extends$3((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
20084
20048
|
toggleButtonRef.current = toggleButtonNode;
|
|
20085
20049
|
}), _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);
|
|
20086
20050
|
if (!rest.disabled) {
|
|
@@ -20095,7 +20059,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20095
20059
|
var _extends4;
|
|
20096
20060
|
var _ref5 = _temp5 === void 0 ? {} : _temp5, itemProp = _ref5.item, indexProp = _ref5.index, onMouseMove = _ref5.onMouseMove, onClick = _ref5.onClick;
|
|
20097
20061
|
_ref5.onPress;
|
|
20098
|
-
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$
|
|
20062
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, disabled2 = _ref5.disabled, rest = _objectWithoutPropertiesLoose$5(_ref5, _excluded3$1);
|
|
20099
20063
|
var _latest$current = latest.current, latestState = _latest$current.state, latestProps = _latest$current.props;
|
|
20100
20064
|
var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), item = _getItemAndIndex[0], index2 = _getItemAndIndex[1];
|
|
20101
20065
|
var itemHandleMouseMove = function itemHandleMouseMove2() {
|
|
@@ -20115,7 +20079,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20115
20079
|
index: index2
|
|
20116
20080
|
});
|
|
20117
20081
|
};
|
|
20118
|
-
var itemProps = _extends$
|
|
20082
|
+
var itemProps = _extends$3((_extends4 = {
|
|
20119
20083
|
disabled: disabled2,
|
|
20120
20084
|
role: "option",
|
|
20121
20085
|
"aria-selected": "" + (item === selectedItem),
|
|
@@ -20207,7 +20171,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20207
20171
|
if (inputValue === "" && selectedItem && props.defaultInputValue === void 0 && props.initialInputValue === void 0 && props.inputValue === void 0) {
|
|
20208
20172
|
inputValue = props.itemToString(selectedItem);
|
|
20209
20173
|
}
|
|
20210
|
-
return _extends$
|
|
20174
|
+
return _extends$3({}, initialState2, {
|
|
20211
20175
|
inputValue
|
|
20212
20176
|
});
|
|
20213
20177
|
}
|
|
@@ -20268,7 +20232,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20268
20232
|
}, [state.selectedItem, props.selectedItem]);
|
|
20269
20233
|
return [getState(state, props), dispatch2];
|
|
20270
20234
|
}
|
|
20271
|
-
var defaultProps$1$1 = _extends$
|
|
20235
|
+
var defaultProps$1$1 = _extends$3({}, defaultProps$3, {
|
|
20272
20236
|
selectedItemChanged: function selectedItemChanged(prevItem, item) {
|
|
20273
20237
|
return prevItem !== item;
|
|
20274
20238
|
},
|
|
@@ -20319,7 +20283,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20319
20283
|
changes = getChangesOnSelection(props, state.highlightedIndex);
|
|
20320
20284
|
break;
|
|
20321
20285
|
case InputKeyDownEscape:
|
|
20322
|
-
changes = _extends$
|
|
20286
|
+
changes = _extends$3({
|
|
20323
20287
|
isOpen: false,
|
|
20324
20288
|
highlightedIndex: -1
|
|
20325
20289
|
}, !state.isOpen && {
|
|
@@ -20348,7 +20312,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20348
20312
|
};
|
|
20349
20313
|
break;
|
|
20350
20314
|
case InputBlur:
|
|
20351
|
-
changes = _extends$
|
|
20315
|
+
changes = _extends$3({
|
|
20352
20316
|
isOpen: false,
|
|
20353
20317
|
highlightedIndex: -1
|
|
20354
20318
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && action.selectItem && {
|
|
@@ -20383,7 +20347,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20383
20347
|
default:
|
|
20384
20348
|
return downshiftCommonReducer(state, action, stateChangeTypes$1$1);
|
|
20385
20349
|
}
|
|
20386
|
-
return _extends$
|
|
20350
|
+
return _extends$3({}, state, changes);
|
|
20387
20351
|
}
|
|
20388
20352
|
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"];
|
|
20389
20353
|
useCombobox.stateChangeTypes = stateChangeTypes$1$1;
|
|
@@ -20391,7 +20355,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20391
20355
|
if (userProps === void 0) {
|
|
20392
20356
|
userProps = {};
|
|
20393
20357
|
}
|
|
20394
|
-
var props = _extends$
|
|
20358
|
+
var props = _extends$3({}, defaultProps$1$1, userProps);
|
|
20395
20359
|
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;
|
|
20396
20360
|
var initialState2 = getInitialState$1(props);
|
|
20397
20361
|
var _useControlledReducer = useControlledReducer(downshiftUseComboboxReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -20410,14 +20374,14 @@ var __publicField = (obj, key, value) => {
|
|
|
20410
20374
|
var getItemNodeFromIndex = React$2.useCallback(function(index2) {
|
|
20411
20375
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
20412
20376
|
}, [elementIds]);
|
|
20413
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
20377
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$3({
|
|
20414
20378
|
isInitialMount: isInitialMountRef.current,
|
|
20415
20379
|
previousResultCount: previousResultCountRef.current,
|
|
20416
20380
|
items,
|
|
20417
20381
|
environment,
|
|
20418
20382
|
itemToString: itemToString2
|
|
20419
20383
|
}, state));
|
|
20420
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
20384
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$3({
|
|
20421
20385
|
isInitialMount: isInitialMountRef.current,
|
|
20422
20386
|
previousResultCount: previousResultCountRef.current,
|
|
20423
20387
|
items,
|
|
@@ -20550,17 +20514,17 @@ var __publicField = (obj, key, value) => {
|
|
|
20550
20514
|
};
|
|
20551
20515
|
}, [dispatch2, latest, getItemNodeFromIndex]);
|
|
20552
20516
|
var getLabelProps = React$2.useCallback(function(labelProps) {
|
|
20553
|
-
return _extends$
|
|
20517
|
+
return _extends$3({
|
|
20554
20518
|
id: elementIds.labelId,
|
|
20555
20519
|
htmlFor: elementIds.inputId
|
|
20556
20520
|
}, labelProps);
|
|
20557
20521
|
}, [elementIds]);
|
|
20558
20522
|
var getMenuProps = React$2.useCallback(function(_temp, _temp2) {
|
|
20559
20523
|
var _extends2;
|
|
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$
|
|
20524
|
+
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$5(_ref2, _excluded$1);
|
|
20561
20525
|
var _ref22 = _temp2 === void 0 ? {} : _temp2;
|
|
20562
20526
|
_ref22.suppressRefError;
|
|
20563
|
-
return _extends$
|
|
20527
|
+
return _extends$3((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
20564
20528
|
menuRef.current = menuNode;
|
|
20565
20529
|
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
|
|
20566
20530
|
dispatch2({
|
|
@@ -20572,7 +20536,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20572
20536
|
var _extends3, _ref4;
|
|
20573
20537
|
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;
|
|
20574
20538
|
_ref3.onPress;
|
|
20575
|
-
var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$
|
|
20539
|
+
var disabled2 = _ref3.disabled, rest = _objectWithoutPropertiesLoose$5(_ref3, _excluded2$1);
|
|
20576
20540
|
var _latest$current = latest.current, latestProps = _latest$current.props, latestState = _latest$current.state;
|
|
20577
20541
|
var _getItemAndIndex = getItemAndIndex(itemProp, indexProp, latestProps.items, "Pass either item or index to getItemProps!"), index2 = _getItemAndIndex[1];
|
|
20578
20542
|
var onSelectKey = "onClick";
|
|
@@ -20597,7 +20561,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20597
20561
|
var itemHandleMouseDown = function itemHandleMouseDown2(e3) {
|
|
20598
20562
|
return e3.preventDefault();
|
|
20599
20563
|
};
|
|
20600
|
-
return _extends$
|
|
20564
|
+
return _extends$3((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
|
|
20601
20565
|
if (itemNode) {
|
|
20602
20566
|
itemRefs.current[elementIds.getItemId(index2)] = itemNode;
|
|
20603
20567
|
}
|
|
@@ -20610,16 +20574,16 @@ var __publicField = (obj, key, value) => {
|
|
|
20610
20574
|
var _extends4;
|
|
20611
20575
|
var _ref5 = _temp4 === void 0 ? {} : _temp4, onClick = _ref5.onClick;
|
|
20612
20576
|
_ref5.onPress;
|
|
20613
|
-
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$
|
|
20577
|
+
var _ref5$refKey = _ref5.refKey, refKey = _ref5$refKey === void 0 ? "ref" : _ref5$refKey, ref = _ref5.ref, rest = _objectWithoutPropertiesLoose$5(_ref5, _excluded3);
|
|
20614
20578
|
var latestState = latest.current.state;
|
|
20615
20579
|
var toggleButtonHandleClick = function toggleButtonHandleClick2() {
|
|
20616
20580
|
dispatch2({
|
|
20617
20581
|
type: ToggleButtonClick
|
|
20618
20582
|
});
|
|
20619
20583
|
};
|
|
20620
|
-
return _extends$
|
|
20584
|
+
return _extends$3((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
20621
20585
|
toggleButtonRef.current = toggleButtonNode;
|
|
20622
|
-
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$
|
|
20586
|
+
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$3({}, {
|
|
20623
20587
|
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
20624
20588
|
}), rest);
|
|
20625
20589
|
}, [dispatch2, latest, elementIds]);
|
|
@@ -20627,7 +20591,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20627
20591
|
var _extends5;
|
|
20628
20592
|
var _ref6 = _temp5 === void 0 ? {} : _temp5, onKeyDown = _ref6.onKeyDown, onChange2 = _ref6.onChange, onInput = _ref6.onInput, onFocus = _ref6.onFocus, onBlur = _ref6.onBlur;
|
|
20629
20593
|
_ref6.onChangeText;
|
|
20630
|
-
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$
|
|
20594
|
+
var _ref6$refKey = _ref6.refKey, refKey = _ref6$refKey === void 0 ? "ref" : _ref6$refKey, ref = _ref6.ref, rest = _objectWithoutPropertiesLoose$5(_ref6, _excluded4);
|
|
20631
20595
|
var _ref7 = _temp6 === void 0 ? {} : _temp6;
|
|
20632
20596
|
_ref7.suppressRefError;
|
|
20633
20597
|
var latestState = latest.current.state;
|
|
@@ -20665,7 +20629,7 @@ var __publicField = (obj, key, value) => {
|
|
|
20665
20629
|
var _eventHandlers;
|
|
20666
20630
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange2, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers.onFocus = callAllEventHandlers(onFocus, inputHandleFocus), _eventHandlers);
|
|
20667
20631
|
}
|
|
20668
|
-
return _extends$
|
|
20632
|
+
return _extends$3((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
|
|
20669
20633
|
inputRef.current = inputNode;
|
|
20670
20634
|
}), _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);
|
|
20671
20635
|
}, [setGetterPropCallInfo, latest, elementIds, inputKeyDownHandlers, dispatch2, mouseAndTouchTrackersRef, environment]);
|
|
@@ -24462,7 +24426,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24462
24426
|
tippy$1.setDefaultProps({
|
|
24463
24427
|
animation: false
|
|
24464
24428
|
});
|
|
24465
|
-
function _objectWithoutPropertiesLoose$
|
|
24429
|
+
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
24466
24430
|
if (source == null)
|
|
24467
24431
|
return {};
|
|
24468
24432
|
var target = {};
|
|
@@ -24559,7 +24523,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24559
24523
|
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;
|
|
24560
24524
|
_ref2.__source;
|
|
24561
24525
|
_ref2.__self;
|
|
24562
|
-
var restOfNativeProps = _objectWithoutPropertiesLoose$
|
|
24526
|
+
var restOfNativeProps = _objectWithoutPropertiesLoose$2(_ref2, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
|
|
24563
24527
|
var isControlledMode = visible !== void 0;
|
|
24564
24528
|
var isSingletonMode = singleton !== void 0;
|
|
24565
24529
|
var _useState = React$2.useState(false), mounted = _useState[0], setMounted = _useState[1];
|
|
@@ -24704,7 +24668,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24704
24668
|
}
|
|
24705
24669
|
var forwardRef = function(Tippy2, defaultProps2) {
|
|
24706
24670
|
return /* @__PURE__ */ React$2.forwardRef(function TippyWrapper(_ref2, _ref22) {
|
|
24707
|
-
var children = _ref2.children, props = _objectWithoutPropertiesLoose$
|
|
24671
|
+
var children = _ref2.children, props = _objectWithoutPropertiesLoose$2(_ref2, ["children"]);
|
|
24708
24672
|
return /* @__PURE__ */ React__default.default.createElement(Tippy2, Object.assign({}, defaultProps2, props), children ? /* @__PURE__ */ React$2.cloneElement(children, {
|
|
24709
24673
|
ref: function ref(node) {
|
|
24710
24674
|
preserveRef(_ref22, node);
|
|
@@ -34797,13 +34761,13 @@ var __publicField = (obj, key, value) => {
|
|
|
34797
34761
|
})();
|
|
34798
34762
|
})(classnames);
|
|
34799
34763
|
const r = classnames.exports;
|
|
34800
|
-
function _typeof
|
|
34764
|
+
function _typeof(o2) {
|
|
34801
34765
|
"@babel/helpers - typeof";
|
|
34802
|
-
return _typeof
|
|
34766
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
|
|
34803
34767
|
return typeof o3;
|
|
34804
34768
|
} : function(o3) {
|
|
34805
34769
|
return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
|
|
34806
|
-
}, _typeof
|
|
34770
|
+
}, _typeof(o2);
|
|
34807
34771
|
}
|
|
34808
34772
|
function requiredArgs(required, args) {
|
|
34809
34773
|
if (args.length < required) {
|
|
@@ -34812,12 +34776,12 @@ var __publicField = (obj, key, value) => {
|
|
|
34812
34776
|
}
|
|
34813
34777
|
function isDate$1(value) {
|
|
34814
34778
|
requiredArgs(1, arguments);
|
|
34815
|
-
return value instanceof Date || _typeof
|
|
34779
|
+
return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
|
|
34816
34780
|
}
|
|
34817
34781
|
function toDate(argument) {
|
|
34818
34782
|
requiredArgs(1, arguments);
|
|
34819
34783
|
var argStr = Object.prototype.toString.call(argument);
|
|
34820
|
-
if (argument instanceof Date || _typeof
|
|
34784
|
+
if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
|
|
34821
34785
|
return new Date(argument.getTime());
|
|
34822
34786
|
} else if (typeof argument === "number" || argStr === "[object Number]") {
|
|
34823
34787
|
return new Date(argument);
|
|
@@ -36517,7 +36481,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36517
36481
|
var datesArray;
|
|
36518
36482
|
if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") {
|
|
36519
36483
|
datesArray = dirtyDatesArray;
|
|
36520
|
-
} else if (_typeof
|
|
36484
|
+
} else if (_typeof(dirtyDatesArray) === "object" && dirtyDatesArray !== null) {
|
|
36521
36485
|
datesArray = Array.prototype.slice.call(dirtyDatesArray);
|
|
36522
36486
|
} else {
|
|
36523
36487
|
return new Date(NaN);
|
|
@@ -36536,7 +36500,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36536
36500
|
var datesArray;
|
|
36537
36501
|
if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") {
|
|
36538
36502
|
datesArray = dirtyDatesArray;
|
|
36539
|
-
} else if (_typeof
|
|
36503
|
+
} else if (_typeof(dirtyDatesArray) === "object" && dirtyDatesArray !== null) {
|
|
36540
36504
|
datesArray = Array.prototype.slice.call(dirtyDatesArray);
|
|
36541
36505
|
} else {
|
|
36542
36506
|
return new Date(NaN);
|
|
@@ -36661,30 +36625,30 @@ var __publicField = (obj, key, value) => {
|
|
|
36661
36625
|
}
|
|
36662
36626
|
return time >= startTime && time <= endTime;
|
|
36663
36627
|
}
|
|
36664
|
-
function _arrayLikeToArray$
|
|
36628
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
36665
36629
|
if (len == null || len > arr.length)
|
|
36666
36630
|
len = arr.length;
|
|
36667
36631
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
36668
36632
|
arr2[i2] = arr[i2];
|
|
36669
36633
|
return arr2;
|
|
36670
36634
|
}
|
|
36671
|
-
function _unsupportedIterableToArray$
|
|
36635
|
+
function _unsupportedIterableToArray$1(o2, minLen) {
|
|
36672
36636
|
if (!o2)
|
|
36673
36637
|
return;
|
|
36674
36638
|
if (typeof o2 === "string")
|
|
36675
|
-
return _arrayLikeToArray$
|
|
36639
|
+
return _arrayLikeToArray$1(o2, minLen);
|
|
36676
36640
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
36677
36641
|
if (n2 === "Object" && o2.constructor)
|
|
36678
36642
|
n2 = o2.constructor.name;
|
|
36679
36643
|
if (n2 === "Map" || n2 === "Set")
|
|
36680
36644
|
return Array.from(o2);
|
|
36681
36645
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
36682
|
-
return _arrayLikeToArray$
|
|
36646
|
+
return _arrayLikeToArray$1(o2, minLen);
|
|
36683
36647
|
}
|
|
36684
36648
|
function _createForOfIteratorHelper(o2, allowArrayLike) {
|
|
36685
36649
|
var it2 = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"];
|
|
36686
36650
|
if (!it2) {
|
|
36687
|
-
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$
|
|
36651
|
+
if (Array.isArray(o2) || (it2 = _unsupportedIterableToArray$1(o2)) || allowArrayLike && o2 && typeof o2.length === "number") {
|
|
36688
36652
|
if (it2)
|
|
36689
36653
|
o2 = it2;
|
|
36690
36654
|
var i2 = 0;
|
|
@@ -36761,22 +36725,22 @@ var __publicField = (obj, key, value) => {
|
|
|
36761
36725
|
writable: false
|
|
36762
36726
|
});
|
|
36763
36727
|
if (superClass)
|
|
36764
|
-
_setPrototypeOf$
|
|
36728
|
+
_setPrototypeOf$4(subClass, superClass);
|
|
36765
36729
|
}
|
|
36766
36730
|
function _possibleConstructorReturn$1(self2, call) {
|
|
36767
|
-
if (call && (_typeof
|
|
36731
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
36768
36732
|
return call;
|
|
36769
36733
|
} else if (call !== void 0) {
|
|
36770
36734
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
36771
36735
|
}
|
|
36772
|
-
return _assertThisInitialized$
|
|
36736
|
+
return _assertThisInitialized$2(self2);
|
|
36773
36737
|
}
|
|
36774
36738
|
function _createSuper$1(Derived) {
|
|
36775
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
36739
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
|
|
36776
36740
|
return function _createSuperInternal() {
|
|
36777
|
-
var Super = _getPrototypeOf$
|
|
36741
|
+
var Super = _getPrototypeOf$1(Derived), result;
|
|
36778
36742
|
if (hasNativeReflectConstruct) {
|
|
36779
|
-
var NewTarget = _getPrototypeOf$
|
|
36743
|
+
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
36780
36744
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
36781
36745
|
} else {
|
|
36782
36746
|
result = Super.apply(this, arguments);
|
|
@@ -36790,12 +36754,12 @@ var __publicField = (obj, key, value) => {
|
|
|
36790
36754
|
}
|
|
36791
36755
|
}
|
|
36792
36756
|
function _toPrimitive(input, hint) {
|
|
36793
|
-
if (_typeof
|
|
36757
|
+
if (_typeof(input) !== "object" || input === null)
|
|
36794
36758
|
return input;
|
|
36795
36759
|
var prim = input[Symbol.toPrimitive];
|
|
36796
36760
|
if (prim !== void 0) {
|
|
36797
36761
|
var res = prim.call(input, hint || "default");
|
|
36798
|
-
if (_typeof
|
|
36762
|
+
if (_typeof(res) !== "object")
|
|
36799
36763
|
return res;
|
|
36800
36764
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36801
36765
|
}
|
|
@@ -36803,7 +36767,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36803
36767
|
}
|
|
36804
36768
|
function _toPropertyKey(arg) {
|
|
36805
36769
|
var key = _toPrimitive(arg, "string");
|
|
36806
|
-
return _typeof
|
|
36770
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
36807
36771
|
}
|
|
36808
36772
|
function _defineProperties$1(target, props) {
|
|
36809
36773
|
for (var i2 = 0; i2 < props.length; i2++) {
|
|
@@ -36825,7 +36789,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36825
36789
|
});
|
|
36826
36790
|
return Constructor;
|
|
36827
36791
|
}
|
|
36828
|
-
function _defineProperty$
|
|
36792
|
+
function _defineProperty$4(obj, key, value) {
|
|
36829
36793
|
key = _toPropertyKey(key);
|
|
36830
36794
|
if (key in obj) {
|
|
36831
36795
|
Object.defineProperty(obj, key, {
|
|
@@ -36843,8 +36807,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36843
36807
|
var Setter = /* @__PURE__ */ function() {
|
|
36844
36808
|
function Setter2() {
|
|
36845
36809
|
_classCallCheck$1(this, Setter2);
|
|
36846
|
-
_defineProperty$
|
|
36847
|
-
_defineProperty$
|
|
36810
|
+
_defineProperty$4(this, "priority", void 0);
|
|
36811
|
+
_defineProperty$4(this, "subPriority", 0);
|
|
36848
36812
|
}
|
|
36849
36813
|
_createClass$1(Setter2, [{
|
|
36850
36814
|
key: "validate",
|
|
@@ -36893,8 +36857,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36893
36857
|
args[_key] = arguments[_key];
|
|
36894
36858
|
}
|
|
36895
36859
|
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
36896
|
-
_defineProperty$
|
|
36897
|
-
_defineProperty$
|
|
36860
|
+
_defineProperty$4(_assertThisInitialized$2(_this2), "priority", TIMEZONE_UNIT_PRIORITY);
|
|
36861
|
+
_defineProperty$4(_assertThisInitialized$2(_this2), "subPriority", -1);
|
|
36898
36862
|
return _this2;
|
|
36899
36863
|
}
|
|
36900
36864
|
_createClass$1(DateToSystemTimezoneSetter2, [{
|
|
@@ -36914,9 +36878,9 @@ var __publicField = (obj, key, value) => {
|
|
|
36914
36878
|
var Parser = /* @__PURE__ */ function() {
|
|
36915
36879
|
function Parser2() {
|
|
36916
36880
|
_classCallCheck$1(this, Parser2);
|
|
36917
|
-
_defineProperty$
|
|
36918
|
-
_defineProperty$
|
|
36919
|
-
_defineProperty$
|
|
36881
|
+
_defineProperty$4(this, "incompatibleTokens", void 0);
|
|
36882
|
+
_defineProperty$4(this, "priority", void 0);
|
|
36883
|
+
_defineProperty$4(this, "subPriority", void 0);
|
|
36920
36884
|
}
|
|
36921
36885
|
_createClass$1(Parser2, [{
|
|
36922
36886
|
key: "run",
|
|
@@ -36948,8 +36912,8 @@ var __publicField = (obj, key, value) => {
|
|
|
36948
36912
|
args[_key] = arguments[_key];
|
|
36949
36913
|
}
|
|
36950
36914
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36951
|
-
_defineProperty$
|
|
36952
|
-
_defineProperty$
|
|
36915
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 140);
|
|
36916
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
36953
36917
|
return _this;
|
|
36954
36918
|
}
|
|
36955
36919
|
_createClass$1(EraParser2, [{
|
|
@@ -37135,8 +37099,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37135
37099
|
args[_key] = arguments[_key];
|
|
37136
37100
|
}
|
|
37137
37101
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37138
|
-
_defineProperty$
|
|
37139
|
-
_defineProperty$
|
|
37102
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 130);
|
|
37103
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
37140
37104
|
return _this;
|
|
37141
37105
|
}
|
|
37142
37106
|
_createClass$1(YearParser2, [{
|
|
@@ -37192,8 +37156,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37192
37156
|
args[_key] = arguments[_key];
|
|
37193
37157
|
}
|
|
37194
37158
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37195
|
-
_defineProperty$
|
|
37196
|
-
_defineProperty$
|
|
37159
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 130);
|
|
37160
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]);
|
|
37197
37161
|
return _this;
|
|
37198
37162
|
}
|
|
37199
37163
|
_createClass$1(LocalWeekYearParser2, [{
|
|
@@ -37249,8 +37213,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37249
37213
|
args[_key] = arguments[_key];
|
|
37250
37214
|
}
|
|
37251
37215
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37252
|
-
_defineProperty$
|
|
37253
|
-
_defineProperty$
|
|
37216
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 130);
|
|
37217
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]);
|
|
37254
37218
|
return _this;
|
|
37255
37219
|
}
|
|
37256
37220
|
_createClass$1(ISOWeekYearParser2, [{
|
|
@@ -37282,8 +37246,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37282
37246
|
args[_key] = arguments[_key];
|
|
37283
37247
|
}
|
|
37284
37248
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37285
|
-
_defineProperty$
|
|
37286
|
-
_defineProperty$
|
|
37249
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 130);
|
|
37250
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
37287
37251
|
return _this;
|
|
37288
37252
|
}
|
|
37289
37253
|
_createClass$1(ExtendedYearParser2, [{
|
|
@@ -37314,8 +37278,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37314
37278
|
args[_key] = arguments[_key];
|
|
37315
37279
|
}
|
|
37316
37280
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37317
|
-
_defineProperty$
|
|
37318
|
-
_defineProperty$
|
|
37281
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 120);
|
|
37282
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]);
|
|
37319
37283
|
return _this;
|
|
37320
37284
|
}
|
|
37321
37285
|
_createClass$1(QuarterParser2, [{
|
|
@@ -37381,8 +37345,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37381
37345
|
args[_key] = arguments[_key];
|
|
37382
37346
|
}
|
|
37383
37347
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37384
|
-
_defineProperty$
|
|
37385
|
-
_defineProperty$
|
|
37348
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 120);
|
|
37349
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]);
|
|
37386
37350
|
return _this;
|
|
37387
37351
|
}
|
|
37388
37352
|
_createClass$1(StandAloneQuarterParser2, [{
|
|
@@ -37448,8 +37412,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37448
37412
|
args[_key] = arguments[_key];
|
|
37449
37413
|
}
|
|
37450
37414
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37451
|
-
_defineProperty$
|
|
37452
|
-
_defineProperty$
|
|
37415
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37416
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 110);
|
|
37453
37417
|
return _this;
|
|
37454
37418
|
}
|
|
37455
37419
|
_createClass$1(MonthParser2, [{
|
|
@@ -37519,8 +37483,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37519
37483
|
args[_key] = arguments[_key];
|
|
37520
37484
|
}
|
|
37521
37485
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37522
|
-
_defineProperty$
|
|
37523
|
-
_defineProperty$
|
|
37486
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 110);
|
|
37487
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37524
37488
|
return _this;
|
|
37525
37489
|
}
|
|
37526
37490
|
_createClass$1(StandAloneMonthParser2, [{
|
|
@@ -37598,8 +37562,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37598
37562
|
args[_key] = arguments[_key];
|
|
37599
37563
|
}
|
|
37600
37564
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37601
|
-
_defineProperty$
|
|
37602
|
-
_defineProperty$
|
|
37565
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 100);
|
|
37566
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]);
|
|
37603
37567
|
return _this;
|
|
37604
37568
|
}
|
|
37605
37569
|
_createClass$1(LocalWeekParser2, [{
|
|
@@ -37647,8 +37611,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37647
37611
|
args[_key] = arguments[_key];
|
|
37648
37612
|
}
|
|
37649
37613
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37650
|
-
_defineProperty$
|
|
37651
|
-
_defineProperty$
|
|
37614
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 100);
|
|
37615
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]);
|
|
37652
37616
|
return _this;
|
|
37653
37617
|
}
|
|
37654
37618
|
_createClass$1(ISOWeekParser2, [{
|
|
@@ -37690,9 +37654,9 @@ var __publicField = (obj, key, value) => {
|
|
|
37690
37654
|
args[_key] = arguments[_key];
|
|
37691
37655
|
}
|
|
37692
37656
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37693
|
-
_defineProperty$
|
|
37694
|
-
_defineProperty$
|
|
37695
|
-
_defineProperty$
|
|
37657
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
37658
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "subPriority", 1);
|
|
37659
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]);
|
|
37696
37660
|
return _this;
|
|
37697
37661
|
}
|
|
37698
37662
|
_createClass$1(DateParser2, [{
|
|
@@ -37741,9 +37705,9 @@ var __publicField = (obj, key, value) => {
|
|
|
37741
37705
|
args[_key] = arguments[_key];
|
|
37742
37706
|
}
|
|
37743
37707
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37744
|
-
_defineProperty$
|
|
37745
|
-
_defineProperty$
|
|
37746
|
-
_defineProperty$
|
|
37708
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
37709
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "subpriority", 1);
|
|
37710
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]);
|
|
37747
37711
|
return _this;
|
|
37748
37712
|
}
|
|
37749
37713
|
_createClass$1(DayOfYearParser2, [{
|
|
@@ -37809,8 +37773,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37809
37773
|
args[_key] = arguments[_key];
|
|
37810
37774
|
}
|
|
37811
37775
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37812
|
-
_defineProperty$
|
|
37813
|
-
_defineProperty$
|
|
37776
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
37777
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
37814
37778
|
return _this;
|
|
37815
37779
|
}
|
|
37816
37780
|
_createClass$1(DayParser2, [{
|
|
@@ -37885,8 +37849,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37885
37849
|
args[_key] = arguments[_key];
|
|
37886
37850
|
}
|
|
37887
37851
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37888
|
-
_defineProperty$
|
|
37889
|
-
_defineProperty$
|
|
37852
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
37853
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]);
|
|
37890
37854
|
return _this;
|
|
37891
37855
|
}
|
|
37892
37856
|
_createClass$1(LocalDayParser2, [{
|
|
@@ -37970,8 +37934,8 @@ var __publicField = (obj, key, value) => {
|
|
|
37970
37934
|
args[_key] = arguments[_key];
|
|
37971
37935
|
}
|
|
37972
37936
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
37973
|
-
_defineProperty$
|
|
37974
|
-
_defineProperty$
|
|
37937
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
37938
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]);
|
|
37975
37939
|
return _this;
|
|
37976
37940
|
}
|
|
37977
37941
|
_createClass$1(StandAloneLocalDayParser2, [{
|
|
@@ -38070,8 +38034,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38070
38034
|
args[_key] = arguments[_key];
|
|
38071
38035
|
}
|
|
38072
38036
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38073
|
-
_defineProperty$
|
|
38074
|
-
_defineProperty$
|
|
38037
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 90);
|
|
38038
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]);
|
|
38075
38039
|
return _this;
|
|
38076
38040
|
}
|
|
38077
38041
|
_createClass$1(ISODayParser2, [{
|
|
@@ -38157,8 +38121,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38157
38121
|
args[_key] = arguments[_key];
|
|
38158
38122
|
}
|
|
38159
38123
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38160
|
-
_defineProperty$
|
|
38161
|
-
_defineProperty$
|
|
38124
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 80);
|
|
38125
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
38162
38126
|
return _this;
|
|
38163
38127
|
}
|
|
38164
38128
|
_createClass$1(AMPMParser2, [{
|
|
@@ -38213,8 +38177,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38213
38177
|
args[_key] = arguments[_key];
|
|
38214
38178
|
}
|
|
38215
38179
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38216
|
-
_defineProperty$
|
|
38217
|
-
_defineProperty$
|
|
38180
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 80);
|
|
38181
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
38218
38182
|
return _this;
|
|
38219
38183
|
}
|
|
38220
38184
|
_createClass$1(AMPMMidnightParser2, [{
|
|
@@ -38269,8 +38233,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38269
38233
|
args[_key] = arguments[_key];
|
|
38270
38234
|
}
|
|
38271
38235
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38272
|
-
_defineProperty$
|
|
38273
|
-
_defineProperty$
|
|
38236
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 80);
|
|
38237
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
38274
38238
|
return _this;
|
|
38275
38239
|
}
|
|
38276
38240
|
_createClass$1(DayPeriodParser2, [{
|
|
@@ -38325,8 +38289,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38325
38289
|
args[_key] = arguments[_key];
|
|
38326
38290
|
}
|
|
38327
38291
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38328
|
-
_defineProperty$
|
|
38329
|
-
_defineProperty$
|
|
38292
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 70);
|
|
38293
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
38330
38294
|
return _this;
|
|
38331
38295
|
}
|
|
38332
38296
|
_createClass$1(Hour1to12Parser2, [{
|
|
@@ -38374,8 +38338,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38374
38338
|
args[_key] = arguments[_key];
|
|
38375
38339
|
}
|
|
38376
38340
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38377
|
-
_defineProperty$
|
|
38378
|
-
_defineProperty$
|
|
38341
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 70);
|
|
38342
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
38379
38343
|
return _this;
|
|
38380
38344
|
}
|
|
38381
38345
|
_createClass$1(Hour0to23Parser2, [{
|
|
@@ -38416,8 +38380,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38416
38380
|
args[_key] = arguments[_key];
|
|
38417
38381
|
}
|
|
38418
38382
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38419
|
-
_defineProperty$
|
|
38420
|
-
_defineProperty$
|
|
38383
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 70);
|
|
38384
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
38421
38385
|
return _this;
|
|
38422
38386
|
}
|
|
38423
38387
|
_createClass$1(Hour0To11Parser2, [{
|
|
@@ -38463,8 +38427,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38463
38427
|
args[_key] = arguments[_key];
|
|
38464
38428
|
}
|
|
38465
38429
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38466
|
-
_defineProperty$
|
|
38467
|
-
_defineProperty$
|
|
38430
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 70);
|
|
38431
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
38468
38432
|
return _this;
|
|
38469
38433
|
}
|
|
38470
38434
|
_createClass$1(Hour1To24Parser2, [{
|
|
@@ -38506,8 +38470,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38506
38470
|
args[_key] = arguments[_key];
|
|
38507
38471
|
}
|
|
38508
38472
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38509
|
-
_defineProperty$
|
|
38510
|
-
_defineProperty$
|
|
38473
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 60);
|
|
38474
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["t", "T"]);
|
|
38511
38475
|
return _this;
|
|
38512
38476
|
}
|
|
38513
38477
|
_createClass$1(MinuteParser2, [{
|
|
@@ -38548,8 +38512,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38548
38512
|
args[_key] = arguments[_key];
|
|
38549
38513
|
}
|
|
38550
38514
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38551
|
-
_defineProperty$
|
|
38552
|
-
_defineProperty$
|
|
38515
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 50);
|
|
38516
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["t", "T"]);
|
|
38553
38517
|
return _this;
|
|
38554
38518
|
}
|
|
38555
38519
|
_createClass$1(SecondParser2, [{
|
|
@@ -38590,8 +38554,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38590
38554
|
args[_key] = arguments[_key];
|
|
38591
38555
|
}
|
|
38592
38556
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38593
|
-
_defineProperty$
|
|
38594
|
-
_defineProperty$
|
|
38557
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 30);
|
|
38558
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["t", "T"]);
|
|
38595
38559
|
return _this;
|
|
38596
38560
|
}
|
|
38597
38561
|
_createClass$1(FractionOfSecondParser2, [{
|
|
@@ -38621,8 +38585,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38621
38585
|
args[_key] = arguments[_key];
|
|
38622
38586
|
}
|
|
38623
38587
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38624
|
-
_defineProperty$
|
|
38625
|
-
_defineProperty$
|
|
38588
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 10);
|
|
38589
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["t", "T", "x"]);
|
|
38626
38590
|
return _this;
|
|
38627
38591
|
}
|
|
38628
38592
|
_createClass$1(ISOTimezoneWithZParser2, [{
|
|
@@ -38663,8 +38627,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38663
38627
|
args[_key] = arguments[_key];
|
|
38664
38628
|
}
|
|
38665
38629
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38666
|
-
_defineProperty$
|
|
38667
|
-
_defineProperty$
|
|
38630
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 10);
|
|
38631
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", ["t", "T", "X"]);
|
|
38668
38632
|
return _this;
|
|
38669
38633
|
}
|
|
38670
38634
|
_createClass$1(ISOTimezoneParser2, [{
|
|
@@ -38705,8 +38669,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38705
38669
|
args[_key] = arguments[_key];
|
|
38706
38670
|
}
|
|
38707
38671
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38708
|
-
_defineProperty$
|
|
38709
|
-
_defineProperty$
|
|
38672
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 40);
|
|
38673
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", "*");
|
|
38710
38674
|
return _this;
|
|
38711
38675
|
}
|
|
38712
38676
|
_createClass$1(TimestampSecondsParser2, [{
|
|
@@ -38734,8 +38698,8 @@ var __publicField = (obj, key, value) => {
|
|
|
38734
38698
|
args[_key] = arguments[_key];
|
|
38735
38699
|
}
|
|
38736
38700
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38737
|
-
_defineProperty$
|
|
38738
|
-
_defineProperty$
|
|
38701
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "priority", 20);
|
|
38702
|
+
_defineProperty$4(_assertThisInitialized$2(_this), "incompatibleTokens", "*");
|
|
38739
38703
|
return _this;
|
|
38740
38704
|
}
|
|
38741
38705
|
_createClass$1(TimestampMillisecondsParser2, [{
|
|
@@ -38888,7 +38852,7 @@ var __publicField = (obj, key, value) => {
|
|
|
38888
38852
|
};
|
|
38889
38853
|
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
38890
38854
|
var _ret = _loop();
|
|
38891
|
-
if (_typeof
|
|
38855
|
+
if (_typeof(_ret) === "object")
|
|
38892
38856
|
return _ret.v;
|
|
38893
38857
|
}
|
|
38894
38858
|
} catch (err2) {
|
|
@@ -39138,7 +39102,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39138
39102
|
};
|
|
39139
39103
|
return _setPrototypeOf$1(o2, p2);
|
|
39140
39104
|
}
|
|
39141
|
-
function _objectWithoutPropertiesLoose$
|
|
39105
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
39142
39106
|
if (source == null)
|
|
39143
39107
|
return {};
|
|
39144
39108
|
var target = {};
|
|
@@ -39152,7 +39116,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39152
39116
|
}
|
|
39153
39117
|
return target;
|
|
39154
39118
|
}
|
|
39155
|
-
function _assertThisInitialized$
|
|
39119
|
+
function _assertThisInitialized$1(self2) {
|
|
39156
39120
|
if (self2 === void 0) {
|
|
39157
39121
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
39158
39122
|
}
|
|
@@ -39284,7 +39248,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39284
39248
|
_this.__outsideClickHandler(event);
|
|
39285
39249
|
};
|
|
39286
39250
|
events.forEach(function(eventName) {
|
|
39287
|
-
document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized$
|
|
39251
|
+
document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized$1(_this), eventName));
|
|
39288
39252
|
});
|
|
39289
39253
|
};
|
|
39290
39254
|
_this.disableOnClickOutside = function() {
|
|
@@ -39296,7 +39260,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39296
39260
|
events = [events];
|
|
39297
39261
|
}
|
|
39298
39262
|
events.forEach(function(eventName) {
|
|
39299
|
-
return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized$
|
|
39263
|
+
return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized$1(_this), eventName));
|
|
39300
39264
|
});
|
|
39301
39265
|
delete handlersMap[_this._uid];
|
|
39302
39266
|
}
|
|
@@ -39340,7 +39304,7 @@ var __publicField = (obj, key, value) => {
|
|
|
39340
39304
|
_proto.render = function render2() {
|
|
39341
39305
|
var _this$props = this.props;
|
|
39342
39306
|
_this$props.excludeScrollbar;
|
|
39343
|
-
var props = _objectWithoutPropertiesLoose$
|
|
39307
|
+
var props = _objectWithoutPropertiesLoose$1(_this$props, ["excludeScrollbar"]);
|
|
39344
39308
|
if (WrappedComponent.prototype && WrappedComponent.prototype.isReactComponent) {
|
|
39345
39309
|
props.ref = this.getRef;
|
|
39346
39310
|
} else {
|
|
@@ -41320,6 +41284,9 @@ var __publicField = (obj, key, value) => {
|
|
|
41320
41284
|
display: flex;
|
|
41321
41285
|
flex-direction: ${(props) => props.inline ? "column" : "row"};
|
|
41322
41286
|
align-items: ${(props) => props.inline ? "baseline" : "center"};
|
|
41287
|
+
|
|
41288
|
+
width: 8.5rem;
|
|
41289
|
+
|
|
41323
41290
|
color: ${(props) => props.theme.colors.text};
|
|
41324
41291
|
|
|
41325
41292
|
.react-datepicker-popper {
|
|
@@ -42187,17 +42154,17 @@ var __publicField = (obj, key, value) => {
|
|
|
42187
42154
|
});
|
|
42188
42155
|
};
|
|
42189
42156
|
}
|
|
42190
|
-
function _toConsumableArray$
|
|
42191
|
-
return _arrayWithoutHoles$
|
|
42157
|
+
function _toConsumableArray$1(arr) {
|
|
42158
|
+
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _nonIterableSpread$1();
|
|
42192
42159
|
}
|
|
42193
|
-
function _nonIterableSpread$
|
|
42160
|
+
function _nonIterableSpread$1() {
|
|
42194
42161
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
42195
42162
|
}
|
|
42196
|
-
function _iterableToArray$
|
|
42163
|
+
function _iterableToArray$1(iter) {
|
|
42197
42164
|
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]")
|
|
42198
42165
|
return Array.from(iter);
|
|
42199
42166
|
}
|
|
42200
|
-
function _arrayWithoutHoles$
|
|
42167
|
+
function _arrayWithoutHoles$1(arr) {
|
|
42201
42168
|
if (Array.isArray(arr)) {
|
|
42202
42169
|
for (var i2 = 0, arr2 = new Array(arr.length); i2 < arr.length; i2++) {
|
|
42203
42170
|
arr2[i2] = arr[i2];
|
|
@@ -42243,7 +42210,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42243
42210
|
if (Array.isArray(arr))
|
|
42244
42211
|
return arr;
|
|
42245
42212
|
}
|
|
42246
|
-
function ownKeys$
|
|
42213
|
+
function ownKeys$1(object2, enumerableOnly) {
|
|
42247
42214
|
var keys2 = Object.keys(object2);
|
|
42248
42215
|
if (Object.getOwnPropertySymbols) {
|
|
42249
42216
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -42259,20 +42226,20 @@ var __publicField = (obj, key, value) => {
|
|
|
42259
42226
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
42260
42227
|
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
42261
42228
|
if (i2 % 2) {
|
|
42262
|
-
ownKeys$
|
|
42263
|
-
_defineProperty$
|
|
42229
|
+
ownKeys$1(source, true).forEach(function(key) {
|
|
42230
|
+
_defineProperty$3(target, key, source[key]);
|
|
42264
42231
|
});
|
|
42265
42232
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
42266
42233
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
42267
42234
|
} else {
|
|
42268
|
-
ownKeys$
|
|
42235
|
+
ownKeys$1(source).forEach(function(key) {
|
|
42269
42236
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
42270
42237
|
});
|
|
42271
42238
|
}
|
|
42272
42239
|
}
|
|
42273
42240
|
return target;
|
|
42274
42241
|
}
|
|
42275
|
-
function _defineProperty$
|
|
42242
|
+
function _defineProperty$3(obj, key, value) {
|
|
42276
42243
|
if (key in obj) {
|
|
42277
42244
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
42278
42245
|
} else {
|
|
@@ -42280,10 +42247,10 @@ var __publicField = (obj, key, value) => {
|
|
|
42280
42247
|
}
|
|
42281
42248
|
return obj;
|
|
42282
42249
|
}
|
|
42283
|
-
function _objectWithoutProperties
|
|
42250
|
+
function _objectWithoutProperties(source, excluded) {
|
|
42284
42251
|
if (source == null)
|
|
42285
42252
|
return {};
|
|
42286
|
-
var target = _objectWithoutPropertiesLoose
|
|
42253
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
42287
42254
|
var key, i2;
|
|
42288
42255
|
if (Object.getOwnPropertySymbols) {
|
|
42289
42256
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -42298,7 +42265,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42298
42265
|
}
|
|
42299
42266
|
return target;
|
|
42300
42267
|
}
|
|
42301
|
-
function _objectWithoutPropertiesLoose
|
|
42268
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
42302
42269
|
if (source == null)
|
|
42303
42270
|
return {};
|
|
42304
42271
|
var target = {};
|
|
@@ -42313,8 +42280,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42313
42280
|
return target;
|
|
42314
42281
|
}
|
|
42315
42282
|
var Dropzone = React$2.forwardRef(function(_ref2, ref) {
|
|
42316
|
-
var children = _ref2.children, params = _objectWithoutProperties
|
|
42317
|
-
var _useDropzone = useDropzone(params), open2 = _useDropzone.open, props = _objectWithoutProperties
|
|
42283
|
+
var children = _ref2.children, params = _objectWithoutProperties(_ref2, ["children"]);
|
|
42284
|
+
var _useDropzone = useDropzone(params), open2 = _useDropzone.open, props = _objectWithoutProperties(_useDropzone, ["open"]);
|
|
42318
42285
|
React$2.useImperativeHandle(ref, function() {
|
|
42319
42286
|
return {
|
|
42320
42287
|
open: open2
|
|
@@ -42447,7 +42414,7 @@ var __publicField = (obj, key, value) => {
|
|
|
42447
42414
|
event.preventDefault();
|
|
42448
42415
|
event.persist();
|
|
42449
42416
|
stopPropagation(event);
|
|
42450
|
-
dragTargetsRef.current = [].concat(_toConsumableArray$
|
|
42417
|
+
dragTargetsRef.current = [].concat(_toConsumableArray$1(dragTargetsRef.current), [event.target]);
|
|
42451
42418
|
if (isEvtWithFiles(event)) {
|
|
42452
42419
|
Promise.resolve(getFilesFromEvent(event)).then(function(draggedFiles2) {
|
|
42453
42420
|
if (isPropagationStopped(event) && !noDragEventsBubbling) {
|
|
@@ -42575,8 +42542,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42575
42542
|
};
|
|
42576
42543
|
var getRootProps = React$2.useMemo(function() {
|
|
42577
42544
|
return function() {
|
|
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
|
|
42579
|
-
return _objectSpread(_defineProperty$
|
|
42545
|
+
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"]);
|
|
42546
|
+
return _objectSpread(_defineProperty$3({
|
|
42580
42547
|
onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
|
|
42581
42548
|
onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
|
|
42582
42549
|
onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
|
|
@@ -42595,8 +42562,8 @@ var __publicField = (obj, key, value) => {
|
|
|
42595
42562
|
}, []);
|
|
42596
42563
|
var getInputProps = React$2.useMemo(function() {
|
|
42597
42564
|
return function() {
|
|
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
|
|
42599
|
-
var inputProps = _defineProperty$
|
|
42565
|
+
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"]);
|
|
42566
|
+
var inputProps = _defineProperty$3({
|
|
42600
42567
|
accept,
|
|
42601
42568
|
multiple,
|
|
42602
42569
|
type: "file",
|
|
@@ -43389,7 +43356,6 @@ var __publicField = (obj, key, value) => {
|
|
|
43389
43356
|
}
|
|
43390
43357
|
|
|
43391
43358
|
input {
|
|
43392
|
-
width: calc(100% - 1.25rem);
|
|
43393
43359
|
height: calc(2.5rem - 2px);
|
|
43394
43360
|
border: none;
|
|
43395
43361
|
border-radius: 0.25rem;
|
|
@@ -43429,6 +43395,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43429
43395
|
// Fix: Overrides the 22ch default width of the nested regular input
|
|
43430
43396
|
> div:first-child {
|
|
43431
43397
|
width: 100%;
|
|
43398
|
+
height: auto;
|
|
43432
43399
|
}
|
|
43433
43400
|
`;
|
|
43434
43401
|
const numericFilter = (integerOnly) => (e3) => {
|
|
@@ -43518,7 +43485,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43518
43485
|
React$2.useEffect(() => {
|
|
43519
43486
|
setInput(getInitialValue(props.value, props.initialValue));
|
|
43520
43487
|
}, [props.value]);
|
|
43521
|
-
return jsxRuntime.exports.jsxs("div", { children: [jsxRuntime.exports.jsxs(InputWrapper$1, { disabled: props.disabled, errorMsg: props.errorMsg, stepper: props.stepper, children: [jsxRuntime.exports.jsx(Input$1, { autoFocus: props.autoFocus, className: props.className, disabled: props.disabled, keydownFilter, maxValue: props.maxValue, minValue: props.minValue, onBlur: props.onBlur, onChange: onChange2, onComplete: props.onComplete, onKeyDown, placeholder: props.placeholder, ref,
|
|
43488
|
+
return jsxRuntime.exports.jsxs("div", { children: [jsxRuntime.exports.jsxs(InputWrapper$1, { disabled: props.disabled, errorMsg: props.errorMsg, stepper: props.stepper, style: props.style, children: [jsxRuntime.exports.jsx(Input$1, { autoFocus: props.autoFocus, className: props.className, disabled: props.disabled, keydownFilter, maxValue: props.maxValue, minValue: props.minValue, onBlur: props.onBlur, onChange: onChange2, onComplete: props.onComplete, onKeyDown, placeholder: props.placeholder, ref, value: input }), props.stepper && jsxRuntime.exports.jsx(InputStepper, { disabled: props.disabled, step, stepSkip: props.stepSkip })] }), props.errorMsg && jsxRuntime.exports.jsx(ErrorMessage$1, { children: props.errorMsg })] });
|
|
43522
43489
|
});
|
|
43523
43490
|
Input$1.displayName = "NumericInput";
|
|
43524
43491
|
styled__default.default.div`
|
|
@@ -43966,7 +43933,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43966
43933
|
_defineProperties(Constructor, staticProps);
|
|
43967
43934
|
return Constructor;
|
|
43968
43935
|
}
|
|
43969
|
-
function _defineProperty$
|
|
43936
|
+
function _defineProperty$2(obj, key, value) {
|
|
43970
43937
|
if (key in obj) {
|
|
43971
43938
|
Object.defineProperty(obj, key, {
|
|
43972
43939
|
value,
|
|
@@ -43979,7 +43946,7 @@ var __publicField = (obj, key, value) => {
|
|
|
43979
43946
|
}
|
|
43980
43947
|
return obj;
|
|
43981
43948
|
}
|
|
43982
|
-
function ownKeys
|
|
43949
|
+
function ownKeys(object2, enumerableOnly) {
|
|
43983
43950
|
var keys2 = Object.keys(object2);
|
|
43984
43951
|
if (Object.getOwnPropertySymbols) {
|
|
43985
43952
|
var symbols = Object.getOwnPropertySymbols(object2);
|
|
@@ -43991,17 +43958,17 @@ var __publicField = (obj, key, value) => {
|
|
|
43991
43958
|
}
|
|
43992
43959
|
return keys2;
|
|
43993
43960
|
}
|
|
43994
|
-
function _objectSpread2
|
|
43961
|
+
function _objectSpread2(target) {
|
|
43995
43962
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43996
43963
|
var source = arguments[i2] != null ? arguments[i2] : {};
|
|
43997
43964
|
if (i2 % 2) {
|
|
43998
|
-
ownKeys
|
|
43999
|
-
_defineProperty$
|
|
43965
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
|
43966
|
+
_defineProperty$2(target, key, source[key]);
|
|
44000
43967
|
});
|
|
44001
43968
|
} else if (Object.getOwnPropertyDescriptors) {
|
|
44002
43969
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
44003
43970
|
} else {
|
|
44004
|
-
ownKeys
|
|
43971
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
44005
43972
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
44006
43973
|
});
|
|
44007
43974
|
}
|
|
@@ -44022,11 +43989,11 @@ var __publicField = (obj, key, value) => {
|
|
|
44022
43989
|
if (superClass)
|
|
44023
43990
|
_setPrototypeOf(subClass, superClass);
|
|
44024
43991
|
}
|
|
44025
|
-
function _getPrototypeOf
|
|
44026
|
-
_getPrototypeOf
|
|
43992
|
+
function _getPrototypeOf(o2) {
|
|
43993
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
44027
43994
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
44028
43995
|
};
|
|
44029
|
-
return _getPrototypeOf
|
|
43996
|
+
return _getPrototypeOf(o2);
|
|
44030
43997
|
}
|
|
44031
43998
|
function _setPrototypeOf(o2, p2) {
|
|
44032
43999
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
@@ -44035,7 +44002,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44035
44002
|
};
|
|
44036
44003
|
return _setPrototypeOf(o2, p2);
|
|
44037
44004
|
}
|
|
44038
|
-
function _isNativeReflectConstruct
|
|
44005
|
+
function _isNativeReflectConstruct() {
|
|
44039
44006
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
44040
44007
|
return false;
|
|
44041
44008
|
if (Reflect.construct.sham)
|
|
@@ -44050,7 +44017,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44050
44017
|
return false;
|
|
44051
44018
|
}
|
|
44052
44019
|
}
|
|
44053
|
-
function _assertThisInitialized
|
|
44020
|
+
function _assertThisInitialized(self2) {
|
|
44054
44021
|
if (self2 === void 0) {
|
|
44055
44022
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
44056
44023
|
}
|
|
@@ -44060,14 +44027,14 @@ var __publicField = (obj, key, value) => {
|
|
|
44060
44027
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
44061
44028
|
return call;
|
|
44062
44029
|
}
|
|
44063
|
-
return _assertThisInitialized
|
|
44030
|
+
return _assertThisInitialized(self2);
|
|
44064
44031
|
}
|
|
44065
44032
|
function _createSuper(Derived) {
|
|
44066
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct
|
|
44033
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
44067
44034
|
return function _createSuperInternal() {
|
|
44068
|
-
var Super = _getPrototypeOf
|
|
44035
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
44069
44036
|
if (hasNativeReflectConstruct) {
|
|
44070
|
-
var NewTarget = _getPrototypeOf
|
|
44037
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
44071
44038
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
44072
44039
|
} else {
|
|
44073
44040
|
result = Super.apply(this, arguments);
|
|
@@ -44076,20 +44043,20 @@ var __publicField = (obj, key, value) => {
|
|
|
44076
44043
|
};
|
|
44077
44044
|
}
|
|
44078
44045
|
function _slicedToArray(arr, i2) {
|
|
44079
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray
|
|
44046
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
|
|
44080
44047
|
}
|
|
44081
|
-
function _toConsumableArray
|
|
44082
|
-
return _arrayWithoutHoles
|
|
44048
|
+
function _toConsumableArray(arr) {
|
|
44049
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
44083
44050
|
}
|
|
44084
|
-
function _arrayWithoutHoles
|
|
44051
|
+
function _arrayWithoutHoles(arr) {
|
|
44085
44052
|
if (Array.isArray(arr))
|
|
44086
|
-
return _arrayLikeToArray
|
|
44053
|
+
return _arrayLikeToArray(arr);
|
|
44087
44054
|
}
|
|
44088
44055
|
function _arrayWithHoles(arr) {
|
|
44089
44056
|
if (Array.isArray(arr))
|
|
44090
44057
|
return arr;
|
|
44091
44058
|
}
|
|
44092
|
-
function _iterableToArray
|
|
44059
|
+
function _iterableToArray(iter) {
|
|
44093
44060
|
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter))
|
|
44094
44061
|
return Array.from(iter);
|
|
44095
44062
|
}
|
|
@@ -44120,27 +44087,27 @@ var __publicField = (obj, key, value) => {
|
|
|
44120
44087
|
}
|
|
44121
44088
|
return _arr;
|
|
44122
44089
|
}
|
|
44123
|
-
function _unsupportedIterableToArray
|
|
44090
|
+
function _unsupportedIterableToArray(o2, minLen) {
|
|
44124
44091
|
if (!o2)
|
|
44125
44092
|
return;
|
|
44126
44093
|
if (typeof o2 === "string")
|
|
44127
|
-
return _arrayLikeToArray
|
|
44094
|
+
return _arrayLikeToArray(o2, minLen);
|
|
44128
44095
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
44129
44096
|
if (n2 === "Object" && o2.constructor)
|
|
44130
44097
|
n2 = o2.constructor.name;
|
|
44131
44098
|
if (n2 === "Map" || n2 === "Set")
|
|
44132
44099
|
return Array.from(o2);
|
|
44133
44100
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
44134
|
-
return _arrayLikeToArray
|
|
44101
|
+
return _arrayLikeToArray(o2, minLen);
|
|
44135
44102
|
}
|
|
44136
|
-
function _arrayLikeToArray
|
|
44103
|
+
function _arrayLikeToArray(arr, len) {
|
|
44137
44104
|
if (len == null || len > arr.length)
|
|
44138
44105
|
len = arr.length;
|
|
44139
44106
|
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
44140
44107
|
arr2[i2] = arr[i2];
|
|
44141
44108
|
return arr2;
|
|
44142
44109
|
}
|
|
44143
|
-
function _nonIterableSpread
|
|
44110
|
+
function _nonIterableSpread() {
|
|
44144
44111
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
44145
44112
|
}
|
|
44146
44113
|
function _nonIterableRest() {
|
|
@@ -44168,10 +44135,10 @@ var __publicField = (obj, key, value) => {
|
|
|
44168
44135
|
if (val === updateValue) {
|
|
44169
44136
|
return handles;
|
|
44170
44137
|
}
|
|
44171
|
-
return [].concat(_toConsumableArray
|
|
44138
|
+
return [].concat(_toConsumableArray(handles.slice(0, index2)), [{
|
|
44172
44139
|
key,
|
|
44173
44140
|
val: updateValue
|
|
44174
|
-
}], _toConsumableArray
|
|
44141
|
+
}], _toConsumableArray(handles.slice(index2 + 1))).sort(getSortByVal(reversed));
|
|
44175
44142
|
}
|
|
44176
44143
|
return handles;
|
|
44177
44144
|
}
|
|
@@ -44309,7 +44276,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44309
44276
|
_this.getRailProps = function() {
|
|
44310
44277
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
44311
44278
|
var _this$props = _this.props, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44312
|
-
return _objectSpread2
|
|
44279
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
44313
44280
|
onMouseDown: callAll(props && props.onMouseDown, emitMouse),
|
|
44314
44281
|
onTouchStart: callAll(props && props.onTouchStart, emitTouch)
|
|
44315
44282
|
});
|
|
@@ -44348,7 +44315,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44348
44315
|
_this.getHandleProps = function(id) {
|
|
44349
44316
|
var props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
44350
44317
|
var _this$props = _this.props, emitKeyboard = _this$props.emitKeyboard, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44351
|
-
return _objectSpread2
|
|
44318
|
+
return _objectSpread2(_objectSpread2({}, props), {}, {
|
|
44352
44319
|
onKeyDown: callAll(props && props.onKeyDown, function(e3) {
|
|
44353
44320
|
return emitKeyboard && emitKeyboard(e3, id);
|
|
44354
44321
|
}),
|
|
@@ -44511,7 +44478,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44511
44478
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
44512
44479
|
_this.getTrackProps = function(props) {
|
|
44513
44480
|
var _this$props = _this.props, emitMouse = _this$props.emitMouse, emitTouch = _this$props.emitTouch;
|
|
44514
|
-
return _objectSpread2
|
|
44481
|
+
return _objectSpread2(_objectSpread2({}, props || {}), {}, {
|
|
44515
44482
|
onMouseDown: callAll(props && props.onMouseDown, emitMouse),
|
|
44516
44483
|
onTouchStart: callAll(props && props.onTouchStart, emitTouch)
|
|
44517
44484
|
});
|
|
@@ -44639,7 +44606,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44639
44606
|
_this.onKeyDown = function(e3, handleID) {
|
|
44640
44607
|
var validUpKeys = ["ArrowRight", "ArrowUp"];
|
|
44641
44608
|
var validDownKeys = ["ArrowDown", "ArrowLeft"];
|
|
44642
|
-
var _assertThisInitialize = _assertThisInitialized
|
|
44609
|
+
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;
|
|
44643
44610
|
var key = e3.key || "".concat(e3.keyCode);
|
|
44644
44611
|
if (!validUpKeys.concat(validDownKeys).includes(key)) {
|
|
44645
44612
|
return;
|
|
@@ -44682,7 +44649,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44682
44649
|
_this.onStart(e3, handleID, true);
|
|
44683
44650
|
};
|
|
44684
44651
|
_this.getEventData = function(e3, isTouch) {
|
|
44685
|
-
var _assertThisInitialize7 = _assertThisInitialized
|
|
44652
|
+
var _assertThisInitialize7 = _assertThisInitialized(_this), _assertThisInitialize8 = _assertThisInitialize7.state, pixelToStep = _assertThisInitialize8.pixelToStep, valueToPerc = _assertThisInitialize8.valueToPerc, vertical = _assertThisInitialize7.props.vertical;
|
|
44686
44653
|
pixelToStep.setDomain(getSliderDomain(_this.slider.current, vertical));
|
|
44687
44654
|
var value;
|
|
44688
44655
|
if (isTouch && e3 instanceof TouchEvent) {
|
|
@@ -44696,14 +44663,14 @@ var __publicField = (obj, key, value) => {
|
|
|
44696
44663
|
};
|
|
44697
44664
|
};
|
|
44698
44665
|
_this.onMouseMove = function(e3) {
|
|
44699
|
-
var _assertThisInitialize9 = _assertThisInitialized
|
|
44666
|
+
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;
|
|
44700
44667
|
pixelToStep.setDomain(getSliderDomain(_this.slider.current, vertical));
|
|
44701
44668
|
var updateValue = pixelToStep.getValue(vertical ? e3.clientY : e3.pageX);
|
|
44702
44669
|
var nextHandles = getUpdatedHandles(curr, activeHandleID, updateValue, reversed);
|
|
44703
44670
|
_this.submitUpdate(nextHandles);
|
|
44704
44671
|
};
|
|
44705
44672
|
_this.onTouchMove = function(e3) {
|
|
44706
|
-
var _assertThisInitialize14 = _assertThisInitialized
|
|
44673
|
+
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;
|
|
44707
44674
|
if (pixelToStep === null || isNotValidTouch(e3)) {
|
|
44708
44675
|
return;
|
|
44709
44676
|
}
|
|
@@ -44713,7 +44680,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44713
44680
|
_this.submitUpdate(nextHandles);
|
|
44714
44681
|
};
|
|
44715
44682
|
_this.onMouseUp = function() {
|
|
44716
|
-
var _assertThisInitialize17 = _assertThisInitialized
|
|
44683
|
+
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;
|
|
44717
44684
|
onChange2(handles.map(function(d2) {
|
|
44718
44685
|
return d2.val;
|
|
44719
44686
|
}));
|
|
@@ -44731,7 +44698,7 @@ var __publicField = (obj, key, value) => {
|
|
|
44731
44698
|
}
|
|
44732
44699
|
};
|
|
44733
44700
|
_this.onTouchEnd = function() {
|
|
44734
|
-
var _assertThisInitialize23 = _assertThisInitialized
|
|
44701
|
+
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;
|
|
44735
44702
|
onChange2(handles.map(function(d2) {
|
|
44736
44703
|
return d2.val;
|
|
44737
44704
|
}));
|
|
@@ -44914,11 +44881,11 @@ var __publicField = (obj, key, value) => {
|
|
|
44914
44881
|
return child;
|
|
44915
44882
|
}
|
|
44916
44883
|
});
|
|
44917
|
-
return flatten2 ? /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2
|
|
44884
|
+
return flatten2 ? /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
44918
44885
|
style: rootStyle,
|
|
44919
44886
|
className,
|
|
44920
44887
|
ref: this.slider
|
|
44921
|
-
})), children) : /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2
|
|
44888
|
+
})), children) : /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(Comp, _objectSpread2(_objectSpread2({}, rootProps), {}, {
|
|
44922
44889
|
style: rootStyle,
|
|
44923
44890
|
className,
|
|
44924
44891
|
ref: this.slider
|
|
@@ -45182,331 +45149,6 @@ var __publicField = (obj, key, value) => {
|
|
|
45182
45149
|
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 })] });
|
|
45183
45150
|
}
|
|
45184
45151
|
React$2.forwardRef(Switch);
|
|
45185
|
-
function ownKeys(object2, enumerableOnly) {
|
|
45186
|
-
var keys2 = Object.keys(object2);
|
|
45187
|
-
if (Object.getOwnPropertySymbols) {
|
|
45188
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
45189
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
45190
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
45191
|
-
})), keys2.push.apply(keys2, symbols);
|
|
45192
|
-
}
|
|
45193
|
-
return keys2;
|
|
45194
|
-
}
|
|
45195
|
-
function _objectSpread2(target) {
|
|
45196
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
45197
|
-
var source = null != arguments[i2] ? arguments[i2] : {};
|
|
45198
|
-
i2 % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
45199
|
-
_defineProperty$2(target, key, source[key]);
|
|
45200
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
45201
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
45202
|
-
});
|
|
45203
|
-
}
|
|
45204
|
-
return target;
|
|
45205
|
-
}
|
|
45206
|
-
function _typeof(obj) {
|
|
45207
|
-
"@babel/helpers - typeof";
|
|
45208
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
45209
|
-
return typeof obj2;
|
|
45210
|
-
} : function(obj2) {
|
|
45211
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
45212
|
-
}, _typeof(obj);
|
|
45213
|
-
}
|
|
45214
|
-
function _defineProperty$2(obj, key, value) {
|
|
45215
|
-
if (key in obj) {
|
|
45216
|
-
Object.defineProperty(obj, key, {
|
|
45217
|
-
value,
|
|
45218
|
-
enumerable: true,
|
|
45219
|
-
configurable: true,
|
|
45220
|
-
writable: true
|
|
45221
|
-
});
|
|
45222
|
-
} else {
|
|
45223
|
-
obj[key] = value;
|
|
45224
|
-
}
|
|
45225
|
-
return obj;
|
|
45226
|
-
}
|
|
45227
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45228
|
-
if (source == null)
|
|
45229
|
-
return {};
|
|
45230
|
-
var target = {};
|
|
45231
|
-
var sourceKeys = Object.keys(source);
|
|
45232
|
-
var key, i2;
|
|
45233
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
45234
|
-
key = sourceKeys[i2];
|
|
45235
|
-
if (excluded.indexOf(key) >= 0)
|
|
45236
|
-
continue;
|
|
45237
|
-
target[key] = source[key];
|
|
45238
|
-
}
|
|
45239
|
-
return target;
|
|
45240
|
-
}
|
|
45241
|
-
function _objectWithoutProperties(source, excluded) {
|
|
45242
|
-
if (source == null)
|
|
45243
|
-
return {};
|
|
45244
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
45245
|
-
var key, i2;
|
|
45246
|
-
if (Object.getOwnPropertySymbols) {
|
|
45247
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
45248
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
45249
|
-
key = sourceSymbolKeys[i2];
|
|
45250
|
-
if (excluded.indexOf(key) >= 0)
|
|
45251
|
-
continue;
|
|
45252
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
45253
|
-
continue;
|
|
45254
|
-
target[key] = source[key];
|
|
45255
|
-
}
|
|
45256
|
-
}
|
|
45257
|
-
return target;
|
|
45258
|
-
}
|
|
45259
|
-
function _toConsumableArray(arr) {
|
|
45260
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
45261
|
-
}
|
|
45262
|
-
function _arrayWithoutHoles(arr) {
|
|
45263
|
-
if (Array.isArray(arr))
|
|
45264
|
-
return _arrayLikeToArray(arr);
|
|
45265
|
-
}
|
|
45266
|
-
function _iterableToArray(iter) {
|
|
45267
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
45268
|
-
return Array.from(iter);
|
|
45269
|
-
}
|
|
45270
|
-
function _unsupportedIterableToArray(o2, minLen) {
|
|
45271
|
-
if (!o2)
|
|
45272
|
-
return;
|
|
45273
|
-
if (typeof o2 === "string")
|
|
45274
|
-
return _arrayLikeToArray(o2, minLen);
|
|
45275
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
45276
|
-
if (n2 === "Object" && o2.constructor)
|
|
45277
|
-
n2 = o2.constructor.name;
|
|
45278
|
-
if (n2 === "Map" || n2 === "Set")
|
|
45279
|
-
return Array.from(o2);
|
|
45280
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
45281
|
-
return _arrayLikeToArray(o2, minLen);
|
|
45282
|
-
}
|
|
45283
|
-
function _arrayLikeToArray(arr, len) {
|
|
45284
|
-
if (len == null || len > arr.length)
|
|
45285
|
-
len = arr.length;
|
|
45286
|
-
for (var i2 = 0, arr2 = new Array(len); i2 < len; i2++)
|
|
45287
|
-
arr2[i2] = arr[i2];
|
|
45288
|
-
return arr2;
|
|
45289
|
-
}
|
|
45290
|
-
function _nonIterableSpread() {
|
|
45291
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45292
|
-
}
|
|
45293
|
-
function classList(props) {
|
|
45294
|
-
var _classes;
|
|
45295
|
-
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;
|
|
45296
|
-
var classes = (_classes = {
|
|
45297
|
-
"fa-beat": beat,
|
|
45298
|
-
"fa-fade": fade,
|
|
45299
|
-
"fa-beat-fade": beatFade,
|
|
45300
|
-
"fa-bounce": bounce,
|
|
45301
|
-
"fa-shake": shake,
|
|
45302
|
-
"fa-flash": flash,
|
|
45303
|
-
"fa-spin": spin,
|
|
45304
|
-
"fa-spin-reverse": spinReverse,
|
|
45305
|
-
"fa-spin-pulse": spinPulse,
|
|
45306
|
-
"fa-pulse": pulse,
|
|
45307
|
-
"fa-fw": fixedWidth,
|
|
45308
|
-
"fa-inverse": inverse,
|
|
45309
|
-
"fa-border": border,
|
|
45310
|
-
"fa-li": listItem,
|
|
45311
|
-
"fa-flip": flip2 === true,
|
|
45312
|
-
"fa-flip-horizontal": flip2 === "horizontal" || flip2 === "both",
|
|
45313
|
-
"fa-flip-vertical": flip2 === "vertical" || flip2 === "both"
|
|
45314
|
-
}, _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);
|
|
45315
|
-
return Object.keys(classes).map(function(key) {
|
|
45316
|
-
return classes[key] ? key : null;
|
|
45317
|
-
}).filter(function(key) {
|
|
45318
|
-
return key;
|
|
45319
|
-
});
|
|
45320
|
-
}
|
|
45321
|
-
function _isNumerical(obj) {
|
|
45322
|
-
obj = obj - 0;
|
|
45323
|
-
return obj === obj;
|
|
45324
|
-
}
|
|
45325
|
-
function camelize(string2) {
|
|
45326
|
-
if (_isNumerical(string2)) {
|
|
45327
|
-
return string2;
|
|
45328
|
-
}
|
|
45329
|
-
string2 = string2.replace(/[\-_\s]+(.)?/g, function(match2, chr) {
|
|
45330
|
-
return chr ? chr.toUpperCase() : "";
|
|
45331
|
-
});
|
|
45332
|
-
return string2.substr(0, 1).toLowerCase() + string2.substr(1);
|
|
45333
|
-
}
|
|
45334
|
-
var _excluded = ["style"];
|
|
45335
|
-
function capitalize(val) {
|
|
45336
|
-
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
45337
|
-
}
|
|
45338
|
-
function styleToObject(style) {
|
|
45339
|
-
return style.split(";").map(function(s) {
|
|
45340
|
-
return s.trim();
|
|
45341
|
-
}).filter(function(s) {
|
|
45342
|
-
return s;
|
|
45343
|
-
}).reduce(function(acc, pair) {
|
|
45344
|
-
var i2 = pair.indexOf(":");
|
|
45345
|
-
var prop = camelize(pair.slice(0, i2));
|
|
45346
|
-
var value = pair.slice(i2 + 1).trim();
|
|
45347
|
-
prop.startsWith("webkit") ? acc[capitalize(prop)] = value : acc[prop] = value;
|
|
45348
|
-
return acc;
|
|
45349
|
-
}, {});
|
|
45350
|
-
}
|
|
45351
|
-
function convert(createElement2, element) {
|
|
45352
|
-
var extraProps = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45353
|
-
if (typeof element === "string") {
|
|
45354
|
-
return element;
|
|
45355
|
-
}
|
|
45356
|
-
var children = (element.children || []).map(function(child) {
|
|
45357
|
-
return convert(createElement2, child);
|
|
45358
|
-
});
|
|
45359
|
-
var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
|
|
45360
|
-
var val = element.attributes[key];
|
|
45361
|
-
switch (key) {
|
|
45362
|
-
case "class":
|
|
45363
|
-
acc.attrs["className"] = val;
|
|
45364
|
-
delete element.attributes["class"];
|
|
45365
|
-
break;
|
|
45366
|
-
case "style":
|
|
45367
|
-
acc.attrs["style"] = styleToObject(val);
|
|
45368
|
-
break;
|
|
45369
|
-
default:
|
|
45370
|
-
if (key.indexOf("aria-") === 0 || key.indexOf("data-") === 0) {
|
|
45371
|
-
acc.attrs[key.toLowerCase()] = val;
|
|
45372
|
-
} else {
|
|
45373
|
-
acc.attrs[camelize(key)] = val;
|
|
45374
|
-
}
|
|
45375
|
-
}
|
|
45376
|
-
return acc;
|
|
45377
|
-
}, {
|
|
45378
|
-
attrs: {}
|
|
45379
|
-
});
|
|
45380
|
-
var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties(extraProps, _excluded);
|
|
45381
|
-
mixins.attrs["style"] = _objectSpread2(_objectSpread2({}, mixins.attrs["style"]), existingStyle);
|
|
45382
|
-
return createElement2.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
|
|
45383
|
-
}
|
|
45384
|
-
var PRODUCTION = false;
|
|
45385
|
-
try {
|
|
45386
|
-
PRODUCTION = true;
|
|
45387
|
-
} catch (e3) {
|
|
45388
|
-
}
|
|
45389
|
-
function log() {
|
|
45390
|
-
if (!PRODUCTION && console && typeof console.error === "function") {
|
|
45391
|
-
var _console;
|
|
45392
|
-
(_console = console).error.apply(_console, arguments);
|
|
45393
|
-
}
|
|
45394
|
-
}
|
|
45395
|
-
function normalizeIconArgs(icon2) {
|
|
45396
|
-
if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName && icon2.icon) {
|
|
45397
|
-
return icon2;
|
|
45398
|
-
}
|
|
45399
|
-
if (parse$1$1.icon) {
|
|
45400
|
-
return parse$1$1.icon(icon2);
|
|
45401
|
-
}
|
|
45402
|
-
if (icon2 === null) {
|
|
45403
|
-
return null;
|
|
45404
|
-
}
|
|
45405
|
-
if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName) {
|
|
45406
|
-
return icon2;
|
|
45407
|
-
}
|
|
45408
|
-
if (Array.isArray(icon2) && icon2.length === 2) {
|
|
45409
|
-
return {
|
|
45410
|
-
prefix: icon2[0],
|
|
45411
|
-
iconName: icon2[1]
|
|
45412
|
-
};
|
|
45413
|
-
}
|
|
45414
|
-
if (typeof icon2 === "string") {
|
|
45415
|
-
return {
|
|
45416
|
-
prefix: "fas",
|
|
45417
|
-
iconName: icon2
|
|
45418
|
-
};
|
|
45419
|
-
}
|
|
45420
|
-
}
|
|
45421
|
-
function objectWithKey(key, value) {
|
|
45422
|
-
return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$2({}, key, value) : {};
|
|
45423
|
-
}
|
|
45424
|
-
var FontAwesomeIcon = /* @__PURE__ */ React__default.default.forwardRef(function(props, ref) {
|
|
45425
|
-
var iconArgs = props.icon, maskArgs = props.mask, symbol = props.symbol, className = props.className, title = props.title, titleId = props.titleId, maskId = props.maskId;
|
|
45426
|
-
var iconLookup = normalizeIconArgs(iconArgs);
|
|
45427
|
-
var classes = objectWithKey("classes", [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(" "))));
|
|
45428
|
-
var transform = objectWithKey("transform", typeof props.transform === "string" ? parse$1$1.transform(props.transform) : props.transform);
|
|
45429
|
-
var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
|
|
45430
|
-
var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
|
|
45431
|
-
symbol,
|
|
45432
|
-
title,
|
|
45433
|
-
titleId,
|
|
45434
|
-
maskId
|
|
45435
|
-
}));
|
|
45436
|
-
if (!renderedIcon) {
|
|
45437
|
-
log("Could not find icon", iconLookup);
|
|
45438
|
-
return null;
|
|
45439
|
-
}
|
|
45440
|
-
var abstract = renderedIcon.abstract;
|
|
45441
|
-
var extraProps = {
|
|
45442
|
-
ref
|
|
45443
|
-
};
|
|
45444
|
-
Object.keys(props).forEach(function(key) {
|
|
45445
|
-
if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
|
|
45446
|
-
extraProps[key] = props[key];
|
|
45447
|
-
}
|
|
45448
|
-
});
|
|
45449
|
-
return convertCurry(abstract[0], extraProps);
|
|
45450
|
-
});
|
|
45451
|
-
FontAwesomeIcon.displayName = "FontAwesomeIcon";
|
|
45452
|
-
FontAwesomeIcon.propTypes = {
|
|
45453
|
-
beat: propTypes.exports.bool,
|
|
45454
|
-
border: propTypes.exports.bool,
|
|
45455
|
-
beatFade: propTypes.exports.bool,
|
|
45456
|
-
bounce: propTypes.exports.bool,
|
|
45457
|
-
className: propTypes.exports.string,
|
|
45458
|
-
fade: propTypes.exports.bool,
|
|
45459
|
-
flash: propTypes.exports.bool,
|
|
45460
|
-
mask: propTypes.exports.oneOfType([propTypes.exports.object, propTypes.exports.array, propTypes.exports.string]),
|
|
45461
|
-
maskId: propTypes.exports.string,
|
|
45462
|
-
fixedWidth: propTypes.exports.bool,
|
|
45463
|
-
inverse: propTypes.exports.bool,
|
|
45464
|
-
flip: propTypes.exports.oneOf([true, false, "horizontal", "vertical", "both"]),
|
|
45465
|
-
icon: propTypes.exports.oneOfType([propTypes.exports.object, propTypes.exports.array, propTypes.exports.string]),
|
|
45466
|
-
listItem: propTypes.exports.bool,
|
|
45467
|
-
pull: propTypes.exports.oneOf(["right", "left"]),
|
|
45468
|
-
pulse: propTypes.exports.bool,
|
|
45469
|
-
rotation: propTypes.exports.oneOf([0, 90, 180, 270]),
|
|
45470
|
-
shake: propTypes.exports.bool,
|
|
45471
|
-
size: propTypes.exports.oneOf(["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"]),
|
|
45472
|
-
spin: propTypes.exports.bool,
|
|
45473
|
-
spinPulse: propTypes.exports.bool,
|
|
45474
|
-
spinReverse: propTypes.exports.bool,
|
|
45475
|
-
symbol: propTypes.exports.oneOfType([propTypes.exports.bool, propTypes.exports.string]),
|
|
45476
|
-
title: propTypes.exports.string,
|
|
45477
|
-
titleId: propTypes.exports.string,
|
|
45478
|
-
transform: propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.object]),
|
|
45479
|
-
swapOpacity: propTypes.exports.bool
|
|
45480
|
-
};
|
|
45481
|
-
FontAwesomeIcon.defaultProps = {
|
|
45482
|
-
border: false,
|
|
45483
|
-
className: "",
|
|
45484
|
-
mask: null,
|
|
45485
|
-
maskId: null,
|
|
45486
|
-
fixedWidth: false,
|
|
45487
|
-
inverse: false,
|
|
45488
|
-
flip: false,
|
|
45489
|
-
icon: null,
|
|
45490
|
-
listItem: false,
|
|
45491
|
-
pull: null,
|
|
45492
|
-
pulse: false,
|
|
45493
|
-
rotation: null,
|
|
45494
|
-
size: null,
|
|
45495
|
-
spin: false,
|
|
45496
|
-
spinPulse: false,
|
|
45497
|
-
spinReverse: false,
|
|
45498
|
-
beat: false,
|
|
45499
|
-
fade: false,
|
|
45500
|
-
beatFade: false,
|
|
45501
|
-
bounce: false,
|
|
45502
|
-
shake: false,
|
|
45503
|
-
symbol: false,
|
|
45504
|
-
title: "",
|
|
45505
|
-
titleId: null,
|
|
45506
|
-
transform: null,
|
|
45507
|
-
swapOpacity: false
|
|
45508
|
-
};
|
|
45509
|
-
var convertCurry = convert.bind(null, React__default.default.createElement);
|
|
45510
45152
|
var safeIsNaN$1 = Number.isNaN || function ponyfill(value) {
|
|
45511
45153
|
return typeof value === "number" && value !== value;
|
|
45512
45154
|
};
|
|
@@ -47845,11 +47487,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
47845
47487
|
function List2(props) {
|
|
47846
47488
|
var _this;
|
|
47847
47489
|
_this = _PureComponent.call(this, props) || this;
|
|
47848
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$
|
|
47490
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$2(_assertThisInitialized$2(_this)));
|
|
47849
47491
|
_this._outerRef = void 0;
|
|
47850
47492
|
_this._resetIsScrollingTimeoutId = null;
|
|
47851
47493
|
_this.state = {
|
|
47852
|
-
instance: _assertThisInitialized$
|
|
47494
|
+
instance: _assertThisInitialized$2(_assertThisInitialized$2(_this)),
|
|
47853
47495
|
isScrolling: false,
|
|
47854
47496
|
scrollDirection: "forward",
|
|
47855
47497
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -48063,7 +47705,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48063
47705
|
className,
|
|
48064
47706
|
onScroll,
|
|
48065
47707
|
ref: this._outerRefSetter,
|
|
48066
|
-
style: _extends$
|
|
47708
|
+
style: _extends$3({
|
|
48067
47709
|
position: "relative",
|
|
48068
47710
|
height,
|
|
48069
47711
|
width,
|
|
@@ -48215,8 +47857,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
48215
47857
|
return false;
|
|
48216
47858
|
}
|
|
48217
47859
|
function areEqual(prevProps, nextProps) {
|
|
48218
|
-
var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$
|
|
48219
|
-
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$
|
|
47860
|
+
var prevStyle = prevProps.style, prevRest = _objectWithoutPropertiesLoose$5(prevProps, ["style"]);
|
|
47861
|
+
var nextStyle = nextProps.style, nextRest = _objectWithoutPropertiesLoose$5(nextProps, ["style"]);
|
|
48220
47862
|
return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
|
|
48221
47863
|
}
|
|
48222
47864
|
const GlobalStyle = styled.createGlobalStyle`
|
|
@@ -50508,88 +50150,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50508
50150
|
}
|
|
50509
50151
|
return DelayMessage2;
|
|
50510
50152
|
}();
|
|
50511
|
-
function _assertThisInitialized(self2) {
|
|
50512
|
-
if (self2 === void 0) {
|
|
50513
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
50514
|
-
}
|
|
50515
|
-
return self2;
|
|
50516
|
-
}
|
|
50517
|
-
function _getPrototypeOf(o2) {
|
|
50518
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
50519
|
-
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
50520
|
-
};
|
|
50521
|
-
return _getPrototypeOf(o2);
|
|
50522
|
-
}
|
|
50523
|
-
function _isNativeFunction(fn) {
|
|
50524
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
50525
|
-
}
|
|
50526
|
-
function _isNativeReflectConstruct() {
|
|
50527
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
50528
|
-
return false;
|
|
50529
|
-
if (Reflect.construct.sham)
|
|
50530
|
-
return false;
|
|
50531
|
-
if (typeof Proxy === "function")
|
|
50532
|
-
return true;
|
|
50533
|
-
try {
|
|
50534
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
50535
|
-
}));
|
|
50536
|
-
return true;
|
|
50537
|
-
} catch (e3) {
|
|
50538
|
-
return false;
|
|
50539
|
-
}
|
|
50540
|
-
}
|
|
50541
|
-
function _construct(Parent, args, Class) {
|
|
50542
|
-
if (_isNativeReflectConstruct()) {
|
|
50543
|
-
_construct = Reflect.construct.bind();
|
|
50544
|
-
} else {
|
|
50545
|
-
_construct = function _construct2(Parent2, args2, Class2) {
|
|
50546
|
-
var a2 = [null];
|
|
50547
|
-
a2.push.apply(a2, args2);
|
|
50548
|
-
var Constructor = Function.bind.apply(Parent2, a2);
|
|
50549
|
-
var instance = new Constructor();
|
|
50550
|
-
if (Class2)
|
|
50551
|
-
_setPrototypeOf$5(instance, Class2.prototype);
|
|
50552
|
-
return instance;
|
|
50553
|
-
};
|
|
50554
|
-
}
|
|
50555
|
-
return _construct.apply(null, arguments);
|
|
50556
|
-
}
|
|
50557
|
-
function _wrapNativeSuper(Class) {
|
|
50558
|
-
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
50559
|
-
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
50560
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
50561
|
-
return Class2;
|
|
50562
|
-
if (typeof Class2 !== "function") {
|
|
50563
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
50564
|
-
}
|
|
50565
|
-
if (typeof _cache !== "undefined") {
|
|
50566
|
-
if (_cache.has(Class2))
|
|
50567
|
-
return _cache.get(Class2);
|
|
50568
|
-
_cache.set(Class2, Wrapper2);
|
|
50569
|
-
}
|
|
50570
|
-
function Wrapper2() {
|
|
50571
|
-
return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
|
|
50572
|
-
}
|
|
50573
|
-
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
50574
|
-
constructor: {
|
|
50575
|
-
value: Wrapper2,
|
|
50576
|
-
enumerable: false,
|
|
50577
|
-
writable: true,
|
|
50578
|
-
configurable: true
|
|
50579
|
-
}
|
|
50580
|
-
});
|
|
50581
|
-
return _setPrototypeOf$5(Wrapper2, Class2);
|
|
50582
|
-
};
|
|
50583
|
-
return _wrapNativeSuper(Class);
|
|
50584
|
-
}
|
|
50585
50153
|
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
50586
|
-
_inheritsLoose$
|
|
50154
|
+
_inheritsLoose$1(PolishedError2, _Error);
|
|
50587
50155
|
function PolishedError2(code) {
|
|
50588
50156
|
var _this;
|
|
50589
50157
|
{
|
|
50590
50158
|
_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;
|
|
50591
50159
|
}
|
|
50592
|
-
return _assertThisInitialized(_this);
|
|
50160
|
+
return _assertThisInitialized$2(_this);
|
|
50593
50161
|
}
|
|
50594
50162
|
return PolishedError2;
|
|
50595
50163
|
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
@@ -50940,11 +50508,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50940
50508
|
if (weight === 0)
|
|
50941
50509
|
return otherColor;
|
|
50942
50510
|
var parsedColor1 = parseToRgb(color);
|
|
50943
|
-
var color1 = _extends$
|
|
50511
|
+
var color1 = _extends$3({}, parsedColor1, {
|
|
50944
50512
|
alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
|
|
50945
50513
|
});
|
|
50946
50514
|
var parsedColor2 = parseToRgb(otherColor);
|
|
50947
|
-
var color2 = _extends$
|
|
50515
|
+
var color2 = _extends$3({}, parsedColor2, {
|
|
50948
50516
|
alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
|
|
50949
50517
|
});
|
|
50950
50518
|
var alphaDelta = color1.alpha - color2.alpha;
|
|
@@ -50968,7 +50536,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
50968
50536
|
return color;
|
|
50969
50537
|
var parsedColor = parseToRgb(color);
|
|
50970
50538
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
50971
|
-
var colorWithAlpha = _extends$
|
|
50539
|
+
var colorWithAlpha = _extends$3({}, parsedColor, {
|
|
50972
50540
|
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
50973
50541
|
});
|
|
50974
50542
|
return rgba(colorWithAlpha);
|
|
@@ -58919,7 +58487,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
58919
58487
|
} else if (FallbackComponent) {
|
|
58920
58488
|
childToRender = React$2.createElement(FallbackComponent, props);
|
|
58921
58489
|
} else {
|
|
58922
|
-
throw
|
|
58490
|
+
throw error;
|
|
58923
58491
|
}
|
|
58924
58492
|
}
|
|
58925
58493
|
return React$2.createElement(ErrorBoundaryContext.Provider, {
|
|
@@ -93379,15 +92947,15 @@ Inferred class string: "${iconClasses}."`
|
|
|
93379
92947
|
var _class;
|
|
93380
92948
|
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;
|
|
93381
92949
|
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
93382
|
-
_inheritsLoose$
|
|
92950
|
+
_inheritsLoose$1(List2, _PureComponent);
|
|
93383
92951
|
function List2(props) {
|
|
93384
92952
|
var _this;
|
|
93385
92953
|
_this = _PureComponent.call(this, props) || this;
|
|
93386
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
92954
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$2(_this));
|
|
93387
92955
|
_this._outerRef = void 0;
|
|
93388
92956
|
_this._resetIsScrollingTimeoutId = null;
|
|
93389
92957
|
_this.state = {
|
|
93390
|
-
instance: _assertThisInitialized(_this),
|
|
92958
|
+
instance: _assertThisInitialized$2(_this),
|
|
93391
92959
|
isScrolling: false,
|
|
93392
92960
|
scrollDirection: "forward",
|
|
93393
92961
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -93610,7 +93178,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
93610
93178
|
className,
|
|
93611
93179
|
onScroll,
|
|
93612
93180
|
ref: this._outerRefSetter,
|
|
93613
|
-
style: _extends$
|
|
93181
|
+
style: _extends$3({
|
|
93614
93182
|
position: "relative",
|
|
93615
93183
|
height,
|
|
93616
93184
|
width,
|