@hero-design/rn 7.16.0 → 7.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +151 -2396
- package/lib/index.js +429 -2674
- package/package.json +3 -4
- package/rollup.config.js +2 -0
package/es/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import React, { useContext, createContext, createElement, forwardRef, useEffect, useCallback, useRef, useMemo, useState,
|
|
1
|
+
import * as reactNative from 'react-native';
|
|
2
|
+
import { Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image, Platform, TouchableWithoutFeedback, Pressable, SafeAreaView, TouchableHighlight, Modal, TextInput as TextInput$1, InteractionManager, FlatList, Keyboard, LayoutAnimation } from 'react-native';
|
|
3
|
+
import React, { useContext, createContext, createElement, forwardRef, useEffect, useCallback, useRef, useMemo, useState, useLayoutEffect, useImperativeHandle } from 'react';
|
|
4
|
+
import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
|
|
4
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
5
6
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
7
|
+
import PagerView from 'react-native-pager-view';
|
|
6
8
|
import { EventEmitter } from 'events';
|
|
7
9
|
import { WebView } from 'react-native-webview';
|
|
8
10
|
|
|
@@ -23,7 +25,7 @@ function _objectSpread2(target) {
|
|
|
23
25
|
for (var i = 1; i < arguments.length; i++) {
|
|
24
26
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
25
27
|
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
26
|
-
_defineProperty
|
|
28
|
+
_defineProperty(target, key, source[key]);
|
|
27
29
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
28
30
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
29
31
|
});
|
|
@@ -32,23 +34,23 @@ function _objectSpread2(target) {
|
|
|
32
34
|
return target;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
function _typeof
|
|
37
|
+
function _typeof(obj) {
|
|
36
38
|
"@babel/helpers - typeof";
|
|
37
39
|
|
|
38
|
-
return _typeof
|
|
40
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
39
41
|
return typeof obj;
|
|
40
42
|
} : function (obj) {
|
|
41
43
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
42
|
-
}, _typeof
|
|
44
|
+
}, _typeof(obj);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
function _classCallCheck
|
|
47
|
+
function _classCallCheck(instance, Constructor) {
|
|
46
48
|
if (!(instance instanceof Constructor)) {
|
|
47
49
|
throw new TypeError("Cannot call a class as a function");
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
function _defineProperties
|
|
53
|
+
function _defineProperties(target, props) {
|
|
52
54
|
for (var i = 0; i < props.length; i++) {
|
|
53
55
|
var descriptor = props[i];
|
|
54
56
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -58,16 +60,16 @@ function _defineProperties$1(target, props) {
|
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
function _createClass
|
|
62
|
-
if (protoProps) _defineProperties
|
|
63
|
-
if (staticProps) _defineProperties
|
|
63
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
64
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
65
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
64
66
|
Object.defineProperty(Constructor, "prototype", {
|
|
65
67
|
writable: false
|
|
66
68
|
});
|
|
67
69
|
return Constructor;
|
|
68
70
|
}
|
|
69
71
|
|
|
70
|
-
function _defineProperty
|
|
72
|
+
function _defineProperty(obj, key, value) {
|
|
71
73
|
if (key in obj) {
|
|
72
74
|
Object.defineProperty(obj, key, {
|
|
73
75
|
value: value,
|
|
@@ -82,8 +84,8 @@ function _defineProperty$2(obj, key, value) {
|
|
|
82
84
|
return obj;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
function _extends$
|
|
86
|
-
_extends$
|
|
87
|
+
function _extends$1() {
|
|
88
|
+
_extends$1 = Object.assign || function (target) {
|
|
87
89
|
for (var i = 1; i < arguments.length; i++) {
|
|
88
90
|
var source = arguments[i];
|
|
89
91
|
|
|
@@ -97,57 +99,10 @@ function _extends$3() {
|
|
|
97
99
|
return target;
|
|
98
100
|
};
|
|
99
101
|
|
|
100
|
-
return _extends$
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _inherits$1(subClass, superClass) {
|
|
104
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
105
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
109
|
-
constructor: {
|
|
110
|
-
value: subClass,
|
|
111
|
-
writable: true,
|
|
112
|
-
configurable: true
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(subClass, "prototype", {
|
|
116
|
-
writable: false
|
|
117
|
-
});
|
|
118
|
-
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function _getPrototypeOf$1(o) {
|
|
122
|
-
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
123
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
124
|
-
};
|
|
125
|
-
return _getPrototypeOf$1(o);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function _setPrototypeOf$1(o, p) {
|
|
129
|
-
_setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
130
|
-
o.__proto__ = p;
|
|
131
|
-
return o;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
return _setPrototypeOf$1(o, p);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
function _isNativeReflectConstruct() {
|
|
138
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
139
|
-
if (Reflect.construct.sham) return false;
|
|
140
|
-
if (typeof Proxy === "function") return true;
|
|
141
|
-
|
|
142
|
-
try {
|
|
143
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
144
|
-
return true;
|
|
145
|
-
} catch (e) {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
102
|
+
return _extends$1.apply(this, arguments);
|
|
148
103
|
}
|
|
149
104
|
|
|
150
|
-
function _objectWithoutPropertiesLoose
|
|
105
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
151
106
|
if (source == null) return {};
|
|
152
107
|
var target = {};
|
|
153
108
|
var sourceKeys = Object.keys(source);
|
|
@@ -162,10 +117,10 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
162
117
|
return target;
|
|
163
118
|
}
|
|
164
119
|
|
|
165
|
-
function _objectWithoutProperties
|
|
120
|
+
function _objectWithoutProperties(source, excluded) {
|
|
166
121
|
if (source == null) return {};
|
|
167
122
|
|
|
168
|
-
var target = _objectWithoutPropertiesLoose
|
|
123
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
169
124
|
|
|
170
125
|
var key, i;
|
|
171
126
|
|
|
@@ -183,52 +138,15 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
183
138
|
return target;
|
|
184
139
|
}
|
|
185
140
|
|
|
186
|
-
function _assertThisInitialized$1(self) {
|
|
187
|
-
if (self === void 0) {
|
|
188
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
return self;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function _possibleConstructorReturn$1(self, call) {
|
|
195
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
196
|
-
return call;
|
|
197
|
-
} else if (call !== void 0) {
|
|
198
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return _assertThisInitialized$1(self);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
function _createSuper(Derived) {
|
|
205
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
206
|
-
|
|
207
|
-
return function _createSuperInternal() {
|
|
208
|
-
var Super = _getPrototypeOf$1(Derived),
|
|
209
|
-
result;
|
|
210
|
-
|
|
211
|
-
if (hasNativeReflectConstruct) {
|
|
212
|
-
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
213
|
-
|
|
214
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
215
|
-
} else {
|
|
216
|
-
result = Super.apply(this, arguments);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return _possibleConstructorReturn$1(this, result);
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
141
|
function _slicedToArray(arr, i) {
|
|
224
142
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
225
143
|
}
|
|
226
144
|
|
|
227
|
-
function _toConsumableArray
|
|
228
|
-
return _arrayWithoutHoles
|
|
145
|
+
function _toConsumableArray(arr) {
|
|
146
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
229
147
|
}
|
|
230
148
|
|
|
231
|
-
function _arrayWithoutHoles
|
|
149
|
+
function _arrayWithoutHoles(arr) {
|
|
232
150
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
233
151
|
}
|
|
234
152
|
|
|
@@ -236,7 +154,7 @@ function _arrayWithHoles(arr) {
|
|
|
236
154
|
if (Array.isArray(arr)) return arr;
|
|
237
155
|
}
|
|
238
156
|
|
|
239
|
-
function _iterableToArray
|
|
157
|
+
function _iterableToArray(iter) {
|
|
240
158
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
241
159
|
}
|
|
242
160
|
|
|
@@ -287,7 +205,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
287
205
|
return arr2;
|
|
288
206
|
}
|
|
289
207
|
|
|
290
|
-
function _nonIterableSpread
|
|
208
|
+
function _nonIterableSpread() {
|
|
291
209
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
292
210
|
}
|
|
293
211
|
|
|
@@ -1591,8 +1509,8 @@ var createCache = function createCache(options) {
|
|
|
1591
1509
|
return cache;
|
|
1592
1510
|
};
|
|
1593
1511
|
|
|
1594
|
-
function _extends
|
|
1595
|
-
_extends
|
|
1512
|
+
function _extends() {
|
|
1513
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1596
1514
|
for (var i = 1; i < arguments.length; i++) {
|
|
1597
1515
|
var source = arguments[i];
|
|
1598
1516
|
|
|
@@ -1605,7 +1523,7 @@ function _extends$2() {
|
|
|
1605
1523
|
|
|
1606
1524
|
return target;
|
|
1607
1525
|
};
|
|
1608
|
-
return _extends
|
|
1526
|
+
return _extends.apply(this, arguments);
|
|
1609
1527
|
}
|
|
1610
1528
|
|
|
1611
1529
|
var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
@@ -1633,7 +1551,7 @@ var getTheme$1 = function getTheme(outerTheme, theme) {
|
|
|
1633
1551
|
return mergedTheme;
|
|
1634
1552
|
}
|
|
1635
1553
|
|
|
1636
|
-
return _extends
|
|
1554
|
+
return _extends({}, outerTheme, theme);
|
|
1637
1555
|
};
|
|
1638
1556
|
|
|
1639
1557
|
var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
@@ -2107,7 +2025,7 @@ function mix(color1, color2) {
|
|
|
2107
2025
|
hex: rgb2hex_1([r, g, b]),
|
|
2108
2026
|
hexa: rgb2hex_1([r, g, b, alpha]),
|
|
2109
2027
|
rgba: [r, g, b, alpha],
|
|
2110
|
-
hsla: [].concat(_toConsumableArray
|
|
2028
|
+
hsla: [].concat(_toConsumableArray(rgb2hsl_1([r, g, b]).map(Math.round)), [alpha])
|
|
2111
2029
|
};
|
|
2112
2030
|
}
|
|
2113
2031
|
|
|
@@ -2249,7 +2167,7 @@ var Values = /*#__PURE__*/function () {
|
|
|
2249
2167
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
|
|
2250
2168
|
var weight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
2251
2169
|
|
|
2252
|
-
_classCallCheck
|
|
2170
|
+
_classCallCheck(this, Values);
|
|
2253
2171
|
|
|
2254
2172
|
var _ref9 = [[0, 0, 0], 1, type, weight];
|
|
2255
2173
|
this.rgb = _ref9[0];
|
|
@@ -2260,10 +2178,10 @@ var Values = /*#__PURE__*/function () {
|
|
|
2260
2178
|
if (typeof c !== 'string') throw new TypeError("Input should be a string: ".concat(c));
|
|
2261
2179
|
var parsed = parseCSSColor(c);
|
|
2262
2180
|
if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
|
|
2263
|
-
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray
|
|
2181
|
+
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray(parsed.values), [parsed.alpha]));
|
|
2264
2182
|
}
|
|
2265
2183
|
|
|
2266
|
-
_createClass
|
|
2184
|
+
_createClass(Values, [{
|
|
2267
2185
|
key: "hex",
|
|
2268
2186
|
get: function get() {
|
|
2269
2187
|
return this.hexString().replace(/^#/, '');
|
|
@@ -2273,7 +2191,7 @@ var Values = /*#__PURE__*/function () {
|
|
|
2273
2191
|
value: function setColor(color) {
|
|
2274
2192
|
var parsed = parseCSSColor(color);
|
|
2275
2193
|
if (!parsed) return null;
|
|
2276
|
-
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray
|
|
2194
|
+
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray(parsed.values), [parsed.alpha]));
|
|
2277
2195
|
}
|
|
2278
2196
|
}, {
|
|
2279
2197
|
key: "tint",
|
|
@@ -2315,17 +2233,17 @@ var Values = /*#__PURE__*/function () {
|
|
|
2315
2233
|
key: "all",
|
|
2316
2234
|
value: function all() {
|
|
2317
2235
|
var weight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
2318
|
-
return [].concat(_toConsumableArray
|
|
2236
|
+
return [].concat(_toConsumableArray(this.tints(weight).reverse()), [Object.assign(this)], _toConsumableArray(this.shades(weight)));
|
|
2319
2237
|
}
|
|
2320
2238
|
}, {
|
|
2321
2239
|
key: "hexString",
|
|
2322
2240
|
value: function hexString() {
|
|
2323
|
-
return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray
|
|
2241
|
+
return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray(this.rgb), [this.alpha]));
|
|
2324
2242
|
}
|
|
2325
2243
|
}, {
|
|
2326
2244
|
key: "rgbString",
|
|
2327
2245
|
value: function rgbString() {
|
|
2328
|
-
var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray
|
|
2246
|
+
var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray(this.rgb), [this.alpha])).join(', ');
|
|
2329
2247
|
return "".concat(this.alpha >= 1 ? 'rgb' : 'rgba', "(").concat(channels, ")");
|
|
2330
2248
|
}
|
|
2331
2249
|
}, {
|
|
@@ -2377,7 +2295,7 @@ var createColorScales = function createColorScales(base) {
|
|
|
2377
2295
|
return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
|
|
2378
2296
|
var _objectSpread2$1;
|
|
2379
2297
|
|
|
2380
|
-
return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty
|
|
2298
|
+
return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty(_objectSpread2$1, "darken".concat(step), colorValues.shade(step).hexString()), _objectSpread2$1));
|
|
2381
2299
|
}, {})), {}, {
|
|
2382
2300
|
base: colorValues.hexString()
|
|
2383
2301
|
});
|
|
@@ -2428,7 +2346,7 @@ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
|
2428
2346
|
key = _ref17[0],
|
|
2429
2347
|
value = _ref17[1];
|
|
2430
2348
|
|
|
2431
|
-
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty
|
|
2349
|
+
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty({}, key, createColorScales(value)));
|
|
2432
2350
|
}, {});
|
|
2433
2351
|
var blue$1 = colorScales.blue,
|
|
2434
2352
|
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
@@ -4416,7 +4334,7 @@ var camelize = function camelize(obj) {
|
|
|
4416
4334
|
};
|
|
4417
4335
|
|
|
4418
4336
|
function walk(obj) {
|
|
4419
|
-
if (!obj || _typeof
|
|
4337
|
+
if (!obj || _typeof(obj) !== 'object') return obj;
|
|
4420
4338
|
if (isDate(obj) || isRegex(obj)) return obj;
|
|
4421
4339
|
if (isArray(obj)) return map(obj, walk);
|
|
4422
4340
|
return reduce(objectKeys(obj), function (acc, key) {
|
|
@@ -4781,7 +4699,7 @@ var cssColorKeywords = require$$0;
|
|
|
4781
4699
|
});
|
|
4782
4700
|
|
|
4783
4701
|
function _interopDefault(ex) {
|
|
4784
|
-
return ex && _typeof
|
|
4702
|
+
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
4785
4703
|
}
|
|
4786
4704
|
|
|
4787
4705
|
var parse = lib$1;
|
|
@@ -5630,13 +5548,13 @@ function interleave(vals) {
|
|
|
5630
5548
|
// handleInterpolation function on every css call
|
|
5631
5549
|
|
|
5632
5550
|
|
|
5633
|
-
var styles
|
|
5551
|
+
var styles;
|
|
5634
5552
|
var generated = {};
|
|
5635
5553
|
var buffer = '';
|
|
5636
5554
|
var lastType;
|
|
5637
5555
|
|
|
5638
5556
|
function handleInterpolation(interpolation, i, arr) {
|
|
5639
|
-
var type = _typeof
|
|
5557
|
+
var type = _typeof(interpolation);
|
|
5640
5558
|
|
|
5641
5559
|
if (type === 'string') {
|
|
5642
5560
|
// strip comments
|
|
@@ -5659,7 +5577,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5659
5577
|
var converted = convertStyles(buffer);
|
|
5660
5578
|
|
|
5661
5579
|
if (converted !== undefined) {
|
|
5662
|
-
styles
|
|
5580
|
+
styles.push(converted);
|
|
5663
5581
|
}
|
|
5664
5582
|
|
|
5665
5583
|
buffer = '';
|
|
@@ -5676,7 +5594,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5676
5594
|
var _converted = convertStyles(buffer);
|
|
5677
5595
|
|
|
5678
5596
|
if (_converted !== undefined) {
|
|
5679
|
-
styles
|
|
5597
|
+
styles.push(_converted);
|
|
5680
5598
|
}
|
|
5681
5599
|
|
|
5682
5600
|
buffer = '';
|
|
@@ -5684,7 +5602,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5684
5602
|
}
|
|
5685
5603
|
|
|
5686
5604
|
if (isRnStyle) {
|
|
5687
|
-
styles
|
|
5605
|
+
styles.push(interpolation);
|
|
5688
5606
|
}
|
|
5689
5607
|
|
|
5690
5608
|
if (Array.isArray(interpolation)) {
|
|
@@ -5703,7 +5621,7 @@ function createCss(StyleSheet) {
|
|
|
5703
5621
|
// this is done so we don't create a new
|
|
5704
5622
|
// handleInterpolation function on every css call
|
|
5705
5623
|
|
|
5706
|
-
styles
|
|
5624
|
+
styles = [];
|
|
5707
5625
|
buffer = '';
|
|
5708
5626
|
lastType = undefined;
|
|
5709
5627
|
|
|
@@ -5723,11 +5641,11 @@ function createCss(StyleSheet) {
|
|
|
5723
5641
|
buffer = prevBuffer;
|
|
5724
5642
|
}
|
|
5725
5643
|
|
|
5726
|
-
var hash = JSON.stringify(styles
|
|
5644
|
+
var hash = JSON.stringify(styles);
|
|
5727
5645
|
|
|
5728
5646
|
if (!generated[hash]) {
|
|
5729
5647
|
var styleSheet = StyleSheet.create({
|
|
5730
|
-
generated: StyleSheet.flatten(styles
|
|
5648
|
+
generated: StyleSheet.flatten(styles)
|
|
5731
5649
|
});
|
|
5732
5650
|
generated[hash] = styleSheet.generated;
|
|
5733
5651
|
}
|
|
@@ -5858,7 +5776,7 @@ var index$6 = components.reduce(function (acc, comp) {
|
|
|
5858
5776
|
enumerable: true,
|
|
5859
5777
|
configurable: false,
|
|
5860
5778
|
get: function get() {
|
|
5861
|
-
return styled(
|
|
5779
|
+
return styled(reactNative[comp]);
|
|
5862
5780
|
}
|
|
5863
5781
|
});
|
|
5864
5782
|
}, styled);
|
|
@@ -5998,9 +5916,9 @@ var Text = function Text(_ref) {
|
|
|
5998
5916
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
5999
5917
|
_ref$intent = _ref.intent,
|
|
6000
5918
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6001
|
-
nativeProps = _objectWithoutProperties
|
|
5919
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
6002
5920
|
|
|
6003
|
-
return /*#__PURE__*/React.createElement(StyledText$3, _extends$
|
|
5921
|
+
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6004
5922
|
themeFontSize: fontSize,
|
|
6005
5923
|
themeFontWeight: fontWeight,
|
|
6006
5924
|
themeIntent: intent
|
|
@@ -6011,1969 +5929,6 @@ var Typography = {
|
|
|
6011
5929
|
Text: Text
|
|
6012
5930
|
};
|
|
6013
5931
|
|
|
6014
|
-
var dist = {};
|
|
6015
|
-
|
|
6016
|
-
function _interopRequireDefault$5(obj) {
|
|
6017
|
-
return obj && obj.__esModule ? obj : {
|
|
6018
|
-
"default": obj
|
|
6019
|
-
};
|
|
6020
|
-
}
|
|
6021
|
-
|
|
6022
|
-
var interopRequireDefault = _interopRequireDefault$5;
|
|
6023
|
-
|
|
6024
|
-
var createIconSet$1 = {};
|
|
6025
|
-
|
|
6026
|
-
function _arrayWithoutHoles(arr) {
|
|
6027
|
-
if (Array.isArray(arr)) {
|
|
6028
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
6029
|
-
arr2[i] = arr[i];
|
|
6030
|
-
}
|
|
6031
|
-
|
|
6032
|
-
return arr2;
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
|
|
6036
|
-
var arrayWithoutHoles$1 = _arrayWithoutHoles;
|
|
6037
|
-
|
|
6038
|
-
function _iterableToArray(iter) {
|
|
6039
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
6040
|
-
}
|
|
6041
|
-
|
|
6042
|
-
var iterableToArray$1 = _iterableToArray;
|
|
6043
|
-
|
|
6044
|
-
function _nonIterableSpread() {
|
|
6045
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
6046
|
-
}
|
|
6047
|
-
|
|
6048
|
-
var nonIterableSpread$1 = _nonIterableSpread;
|
|
6049
|
-
|
|
6050
|
-
var arrayWithoutHoles = arrayWithoutHoles$1;
|
|
6051
|
-
var iterableToArray = iterableToArray$1;
|
|
6052
|
-
var nonIterableSpread = nonIterableSpread$1;
|
|
6053
|
-
|
|
6054
|
-
function _toConsumableArray(arr) {
|
|
6055
|
-
return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
|
|
6056
|
-
}
|
|
6057
|
-
|
|
6058
|
-
var toConsumableArray = _toConsumableArray;
|
|
6059
|
-
|
|
6060
|
-
var runtime = {exports: {}};
|
|
6061
|
-
|
|
6062
|
-
(function (module) {
|
|
6063
|
-
var runtime = function (exports) {
|
|
6064
|
-
|
|
6065
|
-
var Op = Object.prototype;
|
|
6066
|
-
var hasOwn = Op.hasOwnProperty;
|
|
6067
|
-
var undefined$1; // More compressible than void 0.
|
|
6068
|
-
|
|
6069
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
6070
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
6071
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
6072
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
6073
|
-
|
|
6074
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
6075
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
6076
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
6077
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
6078
|
-
var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
|
|
6079
|
-
// .throw, and .return methods.
|
|
6080
|
-
|
|
6081
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
6082
|
-
return generator;
|
|
6083
|
-
}
|
|
6084
|
-
|
|
6085
|
-
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
|
|
6086
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
6087
|
-
// have been (and was previously) designed to take a closure to be
|
|
6088
|
-
// invoked without arguments, but in all the cases we care about we
|
|
6089
|
-
// already have an existing method we want to call, so there's no need
|
|
6090
|
-
// to create a new function object. We can even get away with assuming
|
|
6091
|
-
// the method takes exactly one argument, since that happens to be true
|
|
6092
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
6093
|
-
// only additional allocation required is the completion record, which
|
|
6094
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
6095
|
-
|
|
6096
|
-
function tryCatch(fn, obj, arg) {
|
|
6097
|
-
try {
|
|
6098
|
-
return {
|
|
6099
|
-
type: "normal",
|
|
6100
|
-
arg: fn.call(obj, arg)
|
|
6101
|
-
};
|
|
6102
|
-
} catch (err) {
|
|
6103
|
-
return {
|
|
6104
|
-
type: "throw",
|
|
6105
|
-
arg: err
|
|
6106
|
-
};
|
|
6107
|
-
}
|
|
6108
|
-
}
|
|
6109
|
-
|
|
6110
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
6111
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
6112
|
-
var GenStateExecuting = "executing";
|
|
6113
|
-
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
|
|
6114
|
-
// breaking out of the dispatch switch statement.
|
|
6115
|
-
|
|
6116
|
-
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
|
|
6117
|
-
// .constructor.prototype properties for functions that return Generator
|
|
6118
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
6119
|
-
// minifier not to mangle the names of these two functions.
|
|
6120
|
-
|
|
6121
|
-
function Generator() {}
|
|
6122
|
-
|
|
6123
|
-
function GeneratorFunction() {}
|
|
6124
|
-
|
|
6125
|
-
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
|
|
6126
|
-
// don't natively support it.
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
var IteratorPrototype = {};
|
|
6130
|
-
|
|
6131
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
6132
|
-
return this;
|
|
6133
|
-
};
|
|
6134
|
-
|
|
6135
|
-
var getProto = Object.getPrototypeOf;
|
|
6136
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
6137
|
-
|
|
6138
|
-
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
6139
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
6140
|
-
// of the polyfill.
|
|
6141
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
6142
|
-
}
|
|
6143
|
-
|
|
6144
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
6145
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
6146
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
6147
|
-
GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the
|
|
6148
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
6149
|
-
|
|
6150
|
-
function defineIteratorMethods(prototype) {
|
|
6151
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
6152
|
-
prototype[method] = function (arg) {
|
|
6153
|
-
return this._invoke(method, arg);
|
|
6154
|
-
};
|
|
6155
|
-
});
|
|
6156
|
-
}
|
|
6157
|
-
|
|
6158
|
-
exports.isGeneratorFunction = function (genFun) {
|
|
6159
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
6160
|
-
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
|
|
6161
|
-
// do is to check its .name property.
|
|
6162
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
6163
|
-
};
|
|
6164
|
-
|
|
6165
|
-
exports.mark = function (genFun) {
|
|
6166
|
-
if (Object.setPrototypeOf) {
|
|
6167
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
6168
|
-
} else {
|
|
6169
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
6170
|
-
|
|
6171
|
-
if (!(toStringTagSymbol in genFun)) {
|
|
6172
|
-
genFun[toStringTagSymbol] = "GeneratorFunction";
|
|
6173
|
-
}
|
|
6174
|
-
}
|
|
6175
|
-
|
|
6176
|
-
genFun.prototype = Object.create(Gp);
|
|
6177
|
-
return genFun;
|
|
6178
|
-
}; // Within the body of any async function, `await x` is transformed to
|
|
6179
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
6180
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
6181
|
-
// meant to be awaited.
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
exports.awrap = function (arg) {
|
|
6185
|
-
return {
|
|
6186
|
-
__await: arg
|
|
6187
|
-
};
|
|
6188
|
-
};
|
|
6189
|
-
|
|
6190
|
-
function AsyncIterator(generator) {
|
|
6191
|
-
function invoke(method, arg, resolve, reject) {
|
|
6192
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
6193
|
-
|
|
6194
|
-
if (record.type === "throw") {
|
|
6195
|
-
reject(record.arg);
|
|
6196
|
-
} else {
|
|
6197
|
-
var result = record.arg;
|
|
6198
|
-
var value = result.value;
|
|
6199
|
-
|
|
6200
|
-
if (value && _typeof$2(value) === "object" && hasOwn.call(value, "__await")) {
|
|
6201
|
-
return Promise.resolve(value.__await).then(function (value) {
|
|
6202
|
-
invoke("next", value, resolve, reject);
|
|
6203
|
-
}, function (err) {
|
|
6204
|
-
invoke("throw", err, resolve, reject);
|
|
6205
|
-
});
|
|
6206
|
-
}
|
|
6207
|
-
|
|
6208
|
-
return Promise.resolve(value).then(function (unwrapped) {
|
|
6209
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
6210
|
-
// the .value of the Promise<{value,done}> result for the
|
|
6211
|
-
// current iteration.
|
|
6212
|
-
result.value = unwrapped;
|
|
6213
|
-
resolve(result);
|
|
6214
|
-
}, function (error) {
|
|
6215
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
6216
|
-
// into the async generator function so it can be handled there.
|
|
6217
|
-
return invoke("throw", error, resolve, reject);
|
|
6218
|
-
});
|
|
6219
|
-
}
|
|
6220
|
-
}
|
|
6221
|
-
|
|
6222
|
-
var previousPromise;
|
|
6223
|
-
|
|
6224
|
-
function enqueue(method, arg) {
|
|
6225
|
-
function callInvokeWithMethodAndArg() {
|
|
6226
|
-
return new Promise(function (resolve, reject) {
|
|
6227
|
-
invoke(method, arg, resolve, reject);
|
|
6228
|
-
});
|
|
6229
|
-
}
|
|
6230
|
-
|
|
6231
|
-
return previousPromise = // If enqueue has been called before, then we want to wait until
|
|
6232
|
-
// all previous Promises have been resolved before calling invoke,
|
|
6233
|
-
// so that results are always delivered in the correct order. If
|
|
6234
|
-
// enqueue has not been called before, then it is important to
|
|
6235
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
6236
|
-
// so that the async generator function has the opportunity to do
|
|
6237
|
-
// any necessary setup in a predictable way. This predictability
|
|
6238
|
-
// is why the Promise constructor synchronously invokes its
|
|
6239
|
-
// executor callback, and why async functions synchronously
|
|
6240
|
-
// execute code before the first await. Since we implement simple
|
|
6241
|
-
// async functions in terms of async generators, it is especially
|
|
6242
|
-
// important to get this right, even though it requires care.
|
|
6243
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
|
|
6244
|
-
// invocations of the iterator.
|
|
6245
|
-
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
6246
|
-
} // Define the unified helper method that is used to implement .next,
|
|
6247
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
this._invoke = enqueue;
|
|
6251
|
-
}
|
|
6252
|
-
|
|
6253
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
6254
|
-
|
|
6255
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
6256
|
-
return this;
|
|
6257
|
-
};
|
|
6258
|
-
|
|
6259
|
-
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
6260
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
6261
|
-
// the final result produced by the iterator.
|
|
6262
|
-
|
|
6263
|
-
exports.async = function (innerFn, outerFn, self, tryLocsList) {
|
|
6264
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList));
|
|
6265
|
-
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
6266
|
-
: iter.next().then(function (result) {
|
|
6267
|
-
return result.done ? result.value : iter.next();
|
|
6268
|
-
});
|
|
6269
|
-
};
|
|
6270
|
-
|
|
6271
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
6272
|
-
var state = GenStateSuspendedStart;
|
|
6273
|
-
return function invoke(method, arg) {
|
|
6274
|
-
if (state === GenStateExecuting) {
|
|
6275
|
-
throw new Error("Generator is already running");
|
|
6276
|
-
}
|
|
6277
|
-
|
|
6278
|
-
if (state === GenStateCompleted) {
|
|
6279
|
-
if (method === "throw") {
|
|
6280
|
-
throw arg;
|
|
6281
|
-
} // Be forgiving, per 25.3.3.3.3 of the spec:
|
|
6282
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
return doneResult();
|
|
6286
|
-
}
|
|
6287
|
-
|
|
6288
|
-
context.method = method;
|
|
6289
|
-
context.arg = arg;
|
|
6290
|
-
|
|
6291
|
-
while (true) {
|
|
6292
|
-
var delegate = context.delegate;
|
|
6293
|
-
|
|
6294
|
-
if (delegate) {
|
|
6295
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
6296
|
-
|
|
6297
|
-
if (delegateResult) {
|
|
6298
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
6299
|
-
return delegateResult;
|
|
6300
|
-
}
|
|
6301
|
-
}
|
|
6302
|
-
|
|
6303
|
-
if (context.method === "next") {
|
|
6304
|
-
// Setting context._sent for legacy support of Babel's
|
|
6305
|
-
// function.sent implementation.
|
|
6306
|
-
context.sent = context._sent = context.arg;
|
|
6307
|
-
} else if (context.method === "throw") {
|
|
6308
|
-
if (state === GenStateSuspendedStart) {
|
|
6309
|
-
state = GenStateCompleted;
|
|
6310
|
-
throw context.arg;
|
|
6311
|
-
}
|
|
6312
|
-
|
|
6313
|
-
context.dispatchException(context.arg);
|
|
6314
|
-
} else if (context.method === "return") {
|
|
6315
|
-
context.abrupt("return", context.arg);
|
|
6316
|
-
}
|
|
6317
|
-
|
|
6318
|
-
state = GenStateExecuting;
|
|
6319
|
-
var record = tryCatch(innerFn, self, context);
|
|
6320
|
-
|
|
6321
|
-
if (record.type === "normal") {
|
|
6322
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
6323
|
-
// GenStateExecuting and loop back for another invocation.
|
|
6324
|
-
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
6325
|
-
|
|
6326
|
-
if (record.arg === ContinueSentinel) {
|
|
6327
|
-
continue;
|
|
6328
|
-
}
|
|
6329
|
-
|
|
6330
|
-
return {
|
|
6331
|
-
value: record.arg,
|
|
6332
|
-
done: context.done
|
|
6333
|
-
};
|
|
6334
|
-
} else if (record.type === "throw") {
|
|
6335
|
-
state = GenStateCompleted; // Dispatch the exception by looping back around to the
|
|
6336
|
-
// context.dispatchException(context.arg) call above.
|
|
6337
|
-
|
|
6338
|
-
context.method = "throw";
|
|
6339
|
-
context.arg = record.arg;
|
|
6340
|
-
}
|
|
6341
|
-
}
|
|
6342
|
-
};
|
|
6343
|
-
} // Call delegate.iterator[context.method](context.arg) and handle the
|
|
6344
|
-
// result, either by returning a { value, done } result from the
|
|
6345
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
6346
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
6350
|
-
var method = delegate.iterator[context.method];
|
|
6351
|
-
|
|
6352
|
-
if (method === undefined$1) {
|
|
6353
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
6354
|
-
// method always terminates the yield* loop.
|
|
6355
|
-
context.delegate = null;
|
|
6356
|
-
|
|
6357
|
-
if (context.method === "throw") {
|
|
6358
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
6359
|
-
if (delegate.iterator["return"]) {
|
|
6360
|
-
// If the delegate iterator has a return method, give it a
|
|
6361
|
-
// chance to clean up.
|
|
6362
|
-
context.method = "return";
|
|
6363
|
-
context.arg = undefined$1;
|
|
6364
|
-
maybeInvokeDelegate(delegate, context);
|
|
6365
|
-
|
|
6366
|
-
if (context.method === "throw") {
|
|
6367
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
6368
|
-
// "return" to "throw", let that override the TypeError below.
|
|
6369
|
-
return ContinueSentinel;
|
|
6370
|
-
}
|
|
6371
|
-
}
|
|
6372
|
-
|
|
6373
|
-
context.method = "throw";
|
|
6374
|
-
context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
6375
|
-
}
|
|
6376
|
-
|
|
6377
|
-
return ContinueSentinel;
|
|
6378
|
-
}
|
|
6379
|
-
|
|
6380
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
6381
|
-
|
|
6382
|
-
if (record.type === "throw") {
|
|
6383
|
-
context.method = "throw";
|
|
6384
|
-
context.arg = record.arg;
|
|
6385
|
-
context.delegate = null;
|
|
6386
|
-
return ContinueSentinel;
|
|
6387
|
-
}
|
|
6388
|
-
|
|
6389
|
-
var info = record.arg;
|
|
6390
|
-
|
|
6391
|
-
if (!info) {
|
|
6392
|
-
context.method = "throw";
|
|
6393
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
6394
|
-
context.delegate = null;
|
|
6395
|
-
return ContinueSentinel;
|
|
6396
|
-
}
|
|
6397
|
-
|
|
6398
|
-
if (info.done) {
|
|
6399
|
-
// Assign the result of the finished delegate to the temporary
|
|
6400
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
6401
|
-
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
|
|
6402
|
-
|
|
6403
|
-
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
|
|
6404
|
-
// exception, let the outer generator proceed normally. If
|
|
6405
|
-
// context.method was "next", forget context.arg since it has been
|
|
6406
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
6407
|
-
// "return", allow the original .return call to continue in the
|
|
6408
|
-
// outer generator.
|
|
6409
|
-
|
|
6410
|
-
if (context.method !== "return") {
|
|
6411
|
-
context.method = "next";
|
|
6412
|
-
context.arg = undefined$1;
|
|
6413
|
-
}
|
|
6414
|
-
} else {
|
|
6415
|
-
// Re-yield the result returned by the delegate method.
|
|
6416
|
-
return info;
|
|
6417
|
-
} // The delegate iterator is finished, so forget it and continue with
|
|
6418
|
-
// the outer generator.
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
context.delegate = null;
|
|
6422
|
-
return ContinueSentinel;
|
|
6423
|
-
} // Define Generator.prototype.{next,throw,return} in terms of the
|
|
6424
|
-
// unified ._invoke helper method.
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
defineIteratorMethods(Gp);
|
|
6428
|
-
Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the
|
|
6429
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
6430
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
6431
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
6432
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
6433
|
-
|
|
6434
|
-
Gp[iteratorSymbol] = function () {
|
|
6435
|
-
return this;
|
|
6436
|
-
};
|
|
6437
|
-
|
|
6438
|
-
Gp.toString = function () {
|
|
6439
|
-
return "[object Generator]";
|
|
6440
|
-
};
|
|
6441
|
-
|
|
6442
|
-
function pushTryEntry(locs) {
|
|
6443
|
-
var entry = {
|
|
6444
|
-
tryLoc: locs[0]
|
|
6445
|
-
};
|
|
6446
|
-
|
|
6447
|
-
if (1 in locs) {
|
|
6448
|
-
entry.catchLoc = locs[1];
|
|
6449
|
-
}
|
|
6450
|
-
|
|
6451
|
-
if (2 in locs) {
|
|
6452
|
-
entry.finallyLoc = locs[2];
|
|
6453
|
-
entry.afterLoc = locs[3];
|
|
6454
|
-
}
|
|
6455
|
-
|
|
6456
|
-
this.tryEntries.push(entry);
|
|
6457
|
-
}
|
|
6458
|
-
|
|
6459
|
-
function resetTryEntry(entry) {
|
|
6460
|
-
var record = entry.completion || {};
|
|
6461
|
-
record.type = "normal";
|
|
6462
|
-
delete record.arg;
|
|
6463
|
-
entry.completion = record;
|
|
6464
|
-
}
|
|
6465
|
-
|
|
6466
|
-
function Context(tryLocsList) {
|
|
6467
|
-
// The root entry object (effectively a try statement without a catch
|
|
6468
|
-
// or a finally block) gives us a place to store values thrown from
|
|
6469
|
-
// locations where there is no enclosing try statement.
|
|
6470
|
-
this.tryEntries = [{
|
|
6471
|
-
tryLoc: "root"
|
|
6472
|
-
}];
|
|
6473
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
6474
|
-
this.reset(true);
|
|
6475
|
-
}
|
|
6476
|
-
|
|
6477
|
-
exports.keys = function (object) {
|
|
6478
|
-
var keys = [];
|
|
6479
|
-
|
|
6480
|
-
for (var key in object) {
|
|
6481
|
-
keys.push(key);
|
|
6482
|
-
}
|
|
6483
|
-
|
|
6484
|
-
keys.reverse(); // Rather than returning an object with a next method, we keep
|
|
6485
|
-
// things simple and return the next function itself.
|
|
6486
|
-
|
|
6487
|
-
return function next() {
|
|
6488
|
-
while (keys.length) {
|
|
6489
|
-
var key = keys.pop();
|
|
6490
|
-
|
|
6491
|
-
if (key in object) {
|
|
6492
|
-
next.value = key;
|
|
6493
|
-
next.done = false;
|
|
6494
|
-
return next;
|
|
6495
|
-
}
|
|
6496
|
-
} // To avoid creating an additional object, we just hang the .value
|
|
6497
|
-
// and .done properties off the next function object itself. This
|
|
6498
|
-
// also ensures that the minifier will not anonymize the function.
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
next.done = true;
|
|
6502
|
-
return next;
|
|
6503
|
-
};
|
|
6504
|
-
};
|
|
6505
|
-
|
|
6506
|
-
function values(iterable) {
|
|
6507
|
-
if (iterable) {
|
|
6508
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
6509
|
-
|
|
6510
|
-
if (iteratorMethod) {
|
|
6511
|
-
return iteratorMethod.call(iterable);
|
|
6512
|
-
}
|
|
6513
|
-
|
|
6514
|
-
if (typeof iterable.next === "function") {
|
|
6515
|
-
return iterable;
|
|
6516
|
-
}
|
|
6517
|
-
|
|
6518
|
-
if (!isNaN(iterable.length)) {
|
|
6519
|
-
var i = -1,
|
|
6520
|
-
next = function next() {
|
|
6521
|
-
while (++i < iterable.length) {
|
|
6522
|
-
if (hasOwn.call(iterable, i)) {
|
|
6523
|
-
next.value = iterable[i];
|
|
6524
|
-
next.done = false;
|
|
6525
|
-
return next;
|
|
6526
|
-
}
|
|
6527
|
-
}
|
|
6528
|
-
|
|
6529
|
-
next.value = undefined$1;
|
|
6530
|
-
next.done = true;
|
|
6531
|
-
return next;
|
|
6532
|
-
};
|
|
6533
|
-
|
|
6534
|
-
return next.next = next;
|
|
6535
|
-
}
|
|
6536
|
-
} // Return an iterator with no values.
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
return {
|
|
6540
|
-
next: doneResult
|
|
6541
|
-
};
|
|
6542
|
-
}
|
|
6543
|
-
|
|
6544
|
-
exports.values = values;
|
|
6545
|
-
|
|
6546
|
-
function doneResult() {
|
|
6547
|
-
return {
|
|
6548
|
-
value: undefined$1,
|
|
6549
|
-
done: true
|
|
6550
|
-
};
|
|
6551
|
-
}
|
|
6552
|
-
|
|
6553
|
-
Context.prototype = {
|
|
6554
|
-
constructor: Context,
|
|
6555
|
-
reset: function reset(skipTempReset) {
|
|
6556
|
-
this.prev = 0;
|
|
6557
|
-
this.next = 0; // Resetting context._sent for legacy support of Babel's
|
|
6558
|
-
// function.sent implementation.
|
|
6559
|
-
|
|
6560
|
-
this.sent = this._sent = undefined$1;
|
|
6561
|
-
this.done = false;
|
|
6562
|
-
this.delegate = null;
|
|
6563
|
-
this.method = "next";
|
|
6564
|
-
this.arg = undefined$1;
|
|
6565
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
6566
|
-
|
|
6567
|
-
if (!skipTempReset) {
|
|
6568
|
-
for (var name in this) {
|
|
6569
|
-
// Not sure about the optimal order of these conditions:
|
|
6570
|
-
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
6571
|
-
this[name] = undefined$1;
|
|
6572
|
-
}
|
|
6573
|
-
}
|
|
6574
|
-
}
|
|
6575
|
-
},
|
|
6576
|
-
stop: function stop() {
|
|
6577
|
-
this.done = true;
|
|
6578
|
-
var rootEntry = this.tryEntries[0];
|
|
6579
|
-
var rootRecord = rootEntry.completion;
|
|
6580
|
-
|
|
6581
|
-
if (rootRecord.type === "throw") {
|
|
6582
|
-
throw rootRecord.arg;
|
|
6583
|
-
}
|
|
6584
|
-
|
|
6585
|
-
return this.rval;
|
|
6586
|
-
},
|
|
6587
|
-
dispatchException: function dispatchException(exception) {
|
|
6588
|
-
if (this.done) {
|
|
6589
|
-
throw exception;
|
|
6590
|
-
}
|
|
6591
|
-
|
|
6592
|
-
var context = this;
|
|
6593
|
-
|
|
6594
|
-
function handle(loc, caught) {
|
|
6595
|
-
record.type = "throw";
|
|
6596
|
-
record.arg = exception;
|
|
6597
|
-
context.next = loc;
|
|
6598
|
-
|
|
6599
|
-
if (caught) {
|
|
6600
|
-
// If the dispatched exception was caught by a catch block,
|
|
6601
|
-
// then let that catch block handle the exception normally.
|
|
6602
|
-
context.method = "next";
|
|
6603
|
-
context.arg = undefined$1;
|
|
6604
|
-
}
|
|
6605
|
-
|
|
6606
|
-
return !!caught;
|
|
6607
|
-
}
|
|
6608
|
-
|
|
6609
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6610
|
-
var entry = this.tryEntries[i];
|
|
6611
|
-
var record = entry.completion;
|
|
6612
|
-
|
|
6613
|
-
if (entry.tryLoc === "root") {
|
|
6614
|
-
// Exception thrown outside of any try block that could handle
|
|
6615
|
-
// it, so set the completion value of the entire function to
|
|
6616
|
-
// throw the exception.
|
|
6617
|
-
return handle("end");
|
|
6618
|
-
}
|
|
6619
|
-
|
|
6620
|
-
if (entry.tryLoc <= this.prev) {
|
|
6621
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
6622
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
6623
|
-
|
|
6624
|
-
if (hasCatch && hasFinally) {
|
|
6625
|
-
if (this.prev < entry.catchLoc) {
|
|
6626
|
-
return handle(entry.catchLoc, true);
|
|
6627
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
6628
|
-
return handle(entry.finallyLoc);
|
|
6629
|
-
}
|
|
6630
|
-
} else if (hasCatch) {
|
|
6631
|
-
if (this.prev < entry.catchLoc) {
|
|
6632
|
-
return handle(entry.catchLoc, true);
|
|
6633
|
-
}
|
|
6634
|
-
} else if (hasFinally) {
|
|
6635
|
-
if (this.prev < entry.finallyLoc) {
|
|
6636
|
-
return handle(entry.finallyLoc);
|
|
6637
|
-
}
|
|
6638
|
-
} else {
|
|
6639
|
-
throw new Error("try statement without catch or finally");
|
|
6640
|
-
}
|
|
6641
|
-
}
|
|
6642
|
-
}
|
|
6643
|
-
},
|
|
6644
|
-
abrupt: function abrupt(type, arg) {
|
|
6645
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6646
|
-
var entry = this.tryEntries[i];
|
|
6647
|
-
|
|
6648
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
6649
|
-
var finallyEntry = entry;
|
|
6650
|
-
break;
|
|
6651
|
-
}
|
|
6652
|
-
}
|
|
6653
|
-
|
|
6654
|
-
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
6655
|
-
// Ignore the finally entry if control is not jumping to a
|
|
6656
|
-
// location outside the try/catch block.
|
|
6657
|
-
finallyEntry = null;
|
|
6658
|
-
}
|
|
6659
|
-
|
|
6660
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
6661
|
-
record.type = type;
|
|
6662
|
-
record.arg = arg;
|
|
6663
|
-
|
|
6664
|
-
if (finallyEntry) {
|
|
6665
|
-
this.method = "next";
|
|
6666
|
-
this.next = finallyEntry.finallyLoc;
|
|
6667
|
-
return ContinueSentinel;
|
|
6668
|
-
}
|
|
6669
|
-
|
|
6670
|
-
return this.complete(record);
|
|
6671
|
-
},
|
|
6672
|
-
complete: function complete(record, afterLoc) {
|
|
6673
|
-
if (record.type === "throw") {
|
|
6674
|
-
throw record.arg;
|
|
6675
|
-
}
|
|
6676
|
-
|
|
6677
|
-
if (record.type === "break" || record.type === "continue") {
|
|
6678
|
-
this.next = record.arg;
|
|
6679
|
-
} else if (record.type === "return") {
|
|
6680
|
-
this.rval = this.arg = record.arg;
|
|
6681
|
-
this.method = "return";
|
|
6682
|
-
this.next = "end";
|
|
6683
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
6684
|
-
this.next = afterLoc;
|
|
6685
|
-
}
|
|
6686
|
-
|
|
6687
|
-
return ContinueSentinel;
|
|
6688
|
-
},
|
|
6689
|
-
finish: function finish(finallyLoc) {
|
|
6690
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6691
|
-
var entry = this.tryEntries[i];
|
|
6692
|
-
|
|
6693
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
6694
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
6695
|
-
resetTryEntry(entry);
|
|
6696
|
-
return ContinueSentinel;
|
|
6697
|
-
}
|
|
6698
|
-
}
|
|
6699
|
-
},
|
|
6700
|
-
"catch": function _catch(tryLoc) {
|
|
6701
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
6702
|
-
var entry = this.tryEntries[i];
|
|
6703
|
-
|
|
6704
|
-
if (entry.tryLoc === tryLoc) {
|
|
6705
|
-
var record = entry.completion;
|
|
6706
|
-
|
|
6707
|
-
if (record.type === "throw") {
|
|
6708
|
-
var thrown = record.arg;
|
|
6709
|
-
resetTryEntry(entry);
|
|
6710
|
-
}
|
|
6711
|
-
|
|
6712
|
-
return thrown;
|
|
6713
|
-
}
|
|
6714
|
-
} // The context.catch method must only be called with a location
|
|
6715
|
-
// argument that corresponds to a known catch block.
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
throw new Error("illegal catch attempt");
|
|
6719
|
-
},
|
|
6720
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
6721
|
-
this.delegate = {
|
|
6722
|
-
iterator: values(iterable),
|
|
6723
|
-
resultName: resultName,
|
|
6724
|
-
nextLoc: nextLoc
|
|
6725
|
-
};
|
|
6726
|
-
|
|
6727
|
-
if (this.method === "next") {
|
|
6728
|
-
// Deliberately forget the last sent value so that we don't
|
|
6729
|
-
// accidentally pass it on to the delegate.
|
|
6730
|
-
this.arg = undefined$1;
|
|
6731
|
-
}
|
|
6732
|
-
|
|
6733
|
-
return ContinueSentinel;
|
|
6734
|
-
}
|
|
6735
|
-
}; // Regardless of whether this script is executing as a CommonJS module
|
|
6736
|
-
// or not, return the runtime object so that we can declare the variable
|
|
6737
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
6738
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
6739
|
-
|
|
6740
|
-
return exports;
|
|
6741
|
-
}( // If this script is executing as a CommonJS module, use module.exports
|
|
6742
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
6743
|
-
// object. Either way, the resulting object will be used to initialize
|
|
6744
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
6745
|
-
module.exports );
|
|
6746
|
-
|
|
6747
|
-
try {
|
|
6748
|
-
regeneratorRuntime = runtime;
|
|
6749
|
-
} catch (accidentalStrictMode) {
|
|
6750
|
-
// This module should not be running in strict mode, so the above
|
|
6751
|
-
// assignment should always work unless something is misconfigured. Just
|
|
6752
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
6753
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
6754
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
6755
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
6756
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
6757
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
6758
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
6759
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
6760
|
-
}
|
|
6761
|
-
})(runtime);
|
|
6762
|
-
|
|
6763
|
-
var regenerator = runtime.exports;
|
|
6764
|
-
|
|
6765
|
-
function _extends$1() {
|
|
6766
|
-
_extends_1 = _extends$1 = Object.assign || function (target) {
|
|
6767
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
6768
|
-
var source = arguments[i];
|
|
6769
|
-
|
|
6770
|
-
for (var key in source) {
|
|
6771
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6772
|
-
target[key] = source[key];
|
|
6773
|
-
}
|
|
6774
|
-
}
|
|
6775
|
-
}
|
|
6776
|
-
|
|
6777
|
-
return target;
|
|
6778
|
-
};
|
|
6779
|
-
|
|
6780
|
-
return _extends$1.apply(this, arguments);
|
|
6781
|
-
}
|
|
6782
|
-
|
|
6783
|
-
var _extends_1 = _extends$1;
|
|
6784
|
-
|
|
6785
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
6786
|
-
if (source == null) return {};
|
|
6787
|
-
var target = {};
|
|
6788
|
-
var sourceKeys = Object.keys(source);
|
|
6789
|
-
var key, i;
|
|
6790
|
-
|
|
6791
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
6792
|
-
key = sourceKeys[i];
|
|
6793
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
6794
|
-
target[key] = source[key];
|
|
6795
|
-
}
|
|
6796
|
-
|
|
6797
|
-
return target;
|
|
6798
|
-
}
|
|
6799
|
-
|
|
6800
|
-
var objectWithoutPropertiesLoose$1 = _objectWithoutPropertiesLoose;
|
|
6801
|
-
|
|
6802
|
-
var objectWithoutPropertiesLoose = objectWithoutPropertiesLoose$1;
|
|
6803
|
-
|
|
6804
|
-
function _objectWithoutProperties(source, excluded) {
|
|
6805
|
-
if (source == null) return {};
|
|
6806
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
6807
|
-
var key, i;
|
|
6808
|
-
|
|
6809
|
-
if (Object.getOwnPropertySymbols) {
|
|
6810
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
6811
|
-
|
|
6812
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
6813
|
-
key = sourceSymbolKeys[i];
|
|
6814
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
6815
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
6816
|
-
target[key] = source[key];
|
|
6817
|
-
}
|
|
6818
|
-
}
|
|
6819
|
-
|
|
6820
|
-
return target;
|
|
6821
|
-
}
|
|
6822
|
-
|
|
6823
|
-
var objectWithoutProperties = _objectWithoutProperties;
|
|
6824
|
-
|
|
6825
|
-
function _classCallCheck(instance, Constructor) {
|
|
6826
|
-
if (!(instance instanceof Constructor)) {
|
|
6827
|
-
throw new TypeError("Cannot call a class as a function");
|
|
6828
|
-
}
|
|
6829
|
-
}
|
|
6830
|
-
|
|
6831
|
-
var classCallCheck = _classCallCheck;
|
|
6832
|
-
|
|
6833
|
-
function _defineProperties(target, props) {
|
|
6834
|
-
for (var i = 0; i < props.length; i++) {
|
|
6835
|
-
var descriptor = props[i];
|
|
6836
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
6837
|
-
descriptor.configurable = true;
|
|
6838
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
6839
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6840
|
-
}
|
|
6841
|
-
}
|
|
6842
|
-
|
|
6843
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
6844
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
6845
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
6846
|
-
return Constructor;
|
|
6847
|
-
}
|
|
6848
|
-
|
|
6849
|
-
var createClass = _createClass;
|
|
6850
|
-
|
|
6851
|
-
function _typeof2(obj) {
|
|
6852
|
-
if (typeof Symbol === "function" && _typeof$2(Symbol.iterator) === "symbol") {
|
|
6853
|
-
_typeof2 = function _typeof2(obj) {
|
|
6854
|
-
return _typeof$2(obj);
|
|
6855
|
-
};
|
|
6856
|
-
} else {
|
|
6857
|
-
_typeof2 = function _typeof2(obj) {
|
|
6858
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof$2(obj);
|
|
6859
|
-
};
|
|
6860
|
-
}
|
|
6861
|
-
|
|
6862
|
-
return _typeof2(obj);
|
|
6863
|
-
}
|
|
6864
|
-
|
|
6865
|
-
function _typeof$1(obj) {
|
|
6866
|
-
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
6867
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
6868
|
-
return _typeof2(obj);
|
|
6869
|
-
};
|
|
6870
|
-
} else {
|
|
6871
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
6872
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
6873
|
-
};
|
|
6874
|
-
}
|
|
6875
|
-
|
|
6876
|
-
return _typeof$1(obj);
|
|
6877
|
-
}
|
|
6878
|
-
|
|
6879
|
-
var _typeof_1 = _typeof$1;
|
|
6880
|
-
|
|
6881
|
-
function _assertThisInitialized(self) {
|
|
6882
|
-
if (self === void 0) {
|
|
6883
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6884
|
-
}
|
|
6885
|
-
|
|
6886
|
-
return self;
|
|
6887
|
-
}
|
|
6888
|
-
|
|
6889
|
-
var assertThisInitialized$1 = _assertThisInitialized;
|
|
6890
|
-
|
|
6891
|
-
var _typeof = _typeof_1;
|
|
6892
|
-
var assertThisInitialized = assertThisInitialized$1;
|
|
6893
|
-
|
|
6894
|
-
function _possibleConstructorReturn(self, call) {
|
|
6895
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
6896
|
-
return call;
|
|
6897
|
-
}
|
|
6898
|
-
|
|
6899
|
-
return assertThisInitialized(self);
|
|
6900
|
-
}
|
|
6901
|
-
|
|
6902
|
-
var possibleConstructorReturn = _possibleConstructorReturn;
|
|
6903
|
-
|
|
6904
|
-
function _getPrototypeOf(o) {
|
|
6905
|
-
getPrototypeOf = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
6906
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
6907
|
-
};
|
|
6908
|
-
return _getPrototypeOf(o);
|
|
6909
|
-
}
|
|
6910
|
-
|
|
6911
|
-
var getPrototypeOf = _getPrototypeOf;
|
|
6912
|
-
|
|
6913
|
-
function _setPrototypeOf(o, p) {
|
|
6914
|
-
setPrototypeOf$1 = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
6915
|
-
o.__proto__ = p;
|
|
6916
|
-
return o;
|
|
6917
|
-
};
|
|
6918
|
-
|
|
6919
|
-
return _setPrototypeOf(o, p);
|
|
6920
|
-
}
|
|
6921
|
-
|
|
6922
|
-
var setPrototypeOf$1 = _setPrototypeOf;
|
|
6923
|
-
|
|
6924
|
-
var setPrototypeOf = setPrototypeOf$1;
|
|
6925
|
-
|
|
6926
|
-
function _inherits(subClass, superClass) {
|
|
6927
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
6928
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
6929
|
-
}
|
|
6930
|
-
|
|
6931
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
6932
|
-
constructor: {
|
|
6933
|
-
value: subClass,
|
|
6934
|
-
writable: true,
|
|
6935
|
-
configurable: true
|
|
6936
|
-
}
|
|
6937
|
-
});
|
|
6938
|
-
if (superClass) setPrototypeOf(subClass, superClass);
|
|
6939
|
-
}
|
|
6940
|
-
|
|
6941
|
-
var inherits = _inherits;
|
|
6942
|
-
|
|
6943
|
-
var propTypes = {exports: {}};
|
|
6944
|
-
|
|
6945
|
-
/**
|
|
6946
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6947
|
-
*
|
|
6948
|
-
* This source code is licensed under the MIT license found in the
|
|
6949
|
-
* LICENSE file in the root directory of this source tree.
|
|
6950
|
-
*/
|
|
6951
|
-
|
|
6952
|
-
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
6953
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
6954
|
-
|
|
6955
|
-
/**
|
|
6956
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6957
|
-
*
|
|
6958
|
-
* This source code is licensed under the MIT license found in the
|
|
6959
|
-
* LICENSE file in the root directory of this source tree.
|
|
6960
|
-
*/
|
|
6961
|
-
|
|
6962
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
6963
|
-
|
|
6964
|
-
function emptyFunction() {}
|
|
6965
|
-
|
|
6966
|
-
function emptyFunctionWithReset() {}
|
|
6967
|
-
|
|
6968
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
6969
|
-
|
|
6970
|
-
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
6971
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
6972
|
-
if (secret === ReactPropTypesSecret) {
|
|
6973
|
-
// It is still safe when called from React.
|
|
6974
|
-
return;
|
|
6975
|
-
}
|
|
6976
|
-
|
|
6977
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
6978
|
-
err.name = 'Invariant Violation';
|
|
6979
|
-
throw err;
|
|
6980
|
-
}
|
|
6981
|
-
shim.isRequired = shim;
|
|
6982
|
-
|
|
6983
|
-
function getShim() {
|
|
6984
|
-
return shim;
|
|
6985
|
-
}
|
|
6986
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
6987
|
-
|
|
6988
|
-
var ReactPropTypes = {
|
|
6989
|
-
array: shim,
|
|
6990
|
-
bool: shim,
|
|
6991
|
-
func: shim,
|
|
6992
|
-
number: shim,
|
|
6993
|
-
object: shim,
|
|
6994
|
-
string: shim,
|
|
6995
|
-
symbol: shim,
|
|
6996
|
-
any: shim,
|
|
6997
|
-
arrayOf: getShim,
|
|
6998
|
-
element: shim,
|
|
6999
|
-
elementType: shim,
|
|
7000
|
-
instanceOf: getShim,
|
|
7001
|
-
node: shim,
|
|
7002
|
-
objectOf: getShim,
|
|
7003
|
-
oneOf: getShim,
|
|
7004
|
-
oneOfType: getShim,
|
|
7005
|
-
shape: getShim,
|
|
7006
|
-
exact: getShim,
|
|
7007
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
7008
|
-
resetWarningCache: emptyFunction
|
|
7009
|
-
};
|
|
7010
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
7011
|
-
return ReactPropTypes;
|
|
7012
|
-
};
|
|
7013
|
-
|
|
7014
|
-
/**
|
|
7015
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7016
|
-
*
|
|
7017
|
-
* This source code is licensed under the MIT license found in the
|
|
7018
|
-
* LICENSE file in the root directory of this source tree.
|
|
7019
|
-
*/
|
|
7020
|
-
|
|
7021
|
-
{
|
|
7022
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
7023
|
-
// http://fb.me/prop-types-in-prod
|
|
7024
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
7025
|
-
}
|
|
7026
|
-
|
|
7027
|
-
var ensureNativeModuleAvailable$1 = {};
|
|
7028
|
-
|
|
7029
|
-
Object.defineProperty(ensureNativeModuleAvailable$1, "__esModule", {
|
|
7030
|
-
value: true
|
|
7031
|
-
});
|
|
7032
|
-
|
|
7033
|
-
ensureNativeModuleAvailable$1["default"] = ensureNativeModuleAvailable;
|
|
7034
|
-
|
|
7035
|
-
var _reactNative$2 = ReactNative__default;
|
|
7036
|
-
var NativeIconAPI$1 = _reactNative$2.NativeModules.RNVectorIconsManager || _reactNative$2.NativeModules.RNVectorIconsModule;
|
|
7037
|
-
|
|
7038
|
-
function ensureNativeModuleAvailable() {
|
|
7039
|
-
if (!NativeIconAPI$1) {
|
|
7040
|
-
if (_reactNative$2.Platform.OS === 'android') {
|
|
7041
|
-
throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');
|
|
7042
|
-
}
|
|
7043
|
-
|
|
7044
|
-
throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.');
|
|
7045
|
-
}
|
|
7046
|
-
}
|
|
7047
|
-
|
|
7048
|
-
var createIconSourceCache$1 = {};
|
|
7049
|
-
|
|
7050
|
-
Object.defineProperty(createIconSourceCache$1, "__esModule", {
|
|
7051
|
-
value: true
|
|
7052
|
-
});
|
|
7053
|
-
|
|
7054
|
-
createIconSourceCache$1["default"] = createIconSourceCache;
|
|
7055
|
-
|
|
7056
|
-
var TYPE_VALUE = 'value';
|
|
7057
|
-
var TYPE_ERROR = 'error';
|
|
7058
|
-
|
|
7059
|
-
function createIconSourceCache() {
|
|
7060
|
-
var cache = new Map();
|
|
7061
|
-
|
|
7062
|
-
var setValue = function setValue(key, value) {
|
|
7063
|
-
return cache.set(key, {
|
|
7064
|
-
type: TYPE_VALUE,
|
|
7065
|
-
data: value
|
|
7066
|
-
});
|
|
7067
|
-
};
|
|
7068
|
-
|
|
7069
|
-
var setError = function setError(key, error) {
|
|
7070
|
-
return cache.set(key, {
|
|
7071
|
-
type: TYPE_ERROR,
|
|
7072
|
-
data: error
|
|
7073
|
-
});
|
|
7074
|
-
};
|
|
7075
|
-
|
|
7076
|
-
var has = function has(key) {
|
|
7077
|
-
return cache.has(key);
|
|
7078
|
-
};
|
|
7079
|
-
|
|
7080
|
-
var get = function get(key) {
|
|
7081
|
-
if (!cache.has(key)) {
|
|
7082
|
-
return undefined;
|
|
7083
|
-
}
|
|
7084
|
-
|
|
7085
|
-
var _cache$get = cache.get(key),
|
|
7086
|
-
type = _cache$get.type,
|
|
7087
|
-
data = _cache$get.data;
|
|
7088
|
-
|
|
7089
|
-
if (type === TYPE_ERROR) {
|
|
7090
|
-
throw data;
|
|
7091
|
-
}
|
|
7092
|
-
|
|
7093
|
-
return data;
|
|
7094
|
-
};
|
|
7095
|
-
|
|
7096
|
-
return {
|
|
7097
|
-
setValue: setValue,
|
|
7098
|
-
setError: setError,
|
|
7099
|
-
has: has,
|
|
7100
|
-
get: get
|
|
7101
|
-
};
|
|
7102
|
-
}
|
|
7103
|
-
|
|
7104
|
-
var iconButton = {};
|
|
7105
|
-
|
|
7106
|
-
var pick = function pick(obj) {
|
|
7107
|
-
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
7108
|
-
keys[_key - 1] = arguments[_key];
|
|
7109
|
-
}
|
|
7110
|
-
|
|
7111
|
-
return keys.flat().filter(function (key) {
|
|
7112
|
-
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
7113
|
-
}).reduce(function (acc, key) {
|
|
7114
|
-
acc[key] = obj[key];
|
|
7115
|
-
return acc;
|
|
7116
|
-
}, {});
|
|
7117
|
-
};
|
|
7118
|
-
|
|
7119
|
-
var omit = function omit(obj) {
|
|
7120
|
-
for (var _len2 = arguments.length, keysToOmit = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
7121
|
-
keysToOmit[_key2 - 1] = arguments[_key2];
|
|
7122
|
-
}
|
|
7123
|
-
|
|
7124
|
-
var keysToOmitSet = new Set(keysToOmit.flat());
|
|
7125
|
-
return Object.getOwnPropertyNames(obj).filter(function (key) {
|
|
7126
|
-
return !keysToOmitSet.has(key);
|
|
7127
|
-
}).reduce(function (acc, key) {
|
|
7128
|
-
acc[key] = obj[key];
|
|
7129
|
-
return acc;
|
|
7130
|
-
}, {});
|
|
7131
|
-
};
|
|
7132
|
-
|
|
7133
|
-
var objectUtils = {
|
|
7134
|
-
pick: pick,
|
|
7135
|
-
omit: omit
|
|
7136
|
-
};
|
|
7137
|
-
|
|
7138
|
-
var _interopRequireDefault$4 = interopRequireDefault;
|
|
7139
|
-
Object.defineProperty(iconButton, "__esModule", {
|
|
7140
|
-
value: true
|
|
7141
|
-
});
|
|
7142
|
-
|
|
7143
|
-
iconButton["default"] = createIconButtonComponent;
|
|
7144
|
-
|
|
7145
|
-
var _extends2$2 = _interopRequireDefault$4(_extends_1);
|
|
7146
|
-
|
|
7147
|
-
var _objectWithoutProperties2$1 = _interopRequireDefault$4(objectWithoutProperties);
|
|
7148
|
-
|
|
7149
|
-
var _classCallCheck2$2 = _interopRequireDefault$4(classCallCheck);
|
|
7150
|
-
|
|
7151
|
-
var _createClass2$2 = _interopRequireDefault$4(createClass);
|
|
7152
|
-
|
|
7153
|
-
var _possibleConstructorReturn2$2 = _interopRequireDefault$4(possibleConstructorReturn);
|
|
7154
|
-
|
|
7155
|
-
var _getPrototypeOf2$1 = _interopRequireDefault$4(getPrototypeOf);
|
|
7156
|
-
|
|
7157
|
-
var _inherits2$2 = _interopRequireDefault$4(inherits);
|
|
7158
|
-
|
|
7159
|
-
var _react$2 = _interopRequireWildcard$2(React);
|
|
7160
|
-
|
|
7161
|
-
var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
|
|
7162
|
-
|
|
7163
|
-
var _reactNative$1 = ReactNative__default;
|
|
7164
|
-
var _objectUtils = objectUtils;
|
|
7165
|
-
var _jsxFileName$2 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/icon-button.js";
|
|
7166
|
-
|
|
7167
|
-
function _getRequireWildcardCache$2(nodeInterop) {
|
|
7168
|
-
if (typeof WeakMap !== "function") return null;
|
|
7169
|
-
var cacheBabelInterop = new WeakMap();
|
|
7170
|
-
var cacheNodeInterop = new WeakMap();
|
|
7171
|
-
return (_getRequireWildcardCache$2 = function _getRequireWildcardCache(nodeInterop) {
|
|
7172
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
7173
|
-
})(nodeInterop);
|
|
7174
|
-
}
|
|
7175
|
-
|
|
7176
|
-
function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
7177
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
7178
|
-
return obj;
|
|
7179
|
-
}
|
|
7180
|
-
|
|
7181
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
7182
|
-
return {
|
|
7183
|
-
"default": obj
|
|
7184
|
-
};
|
|
7185
|
-
}
|
|
7186
|
-
|
|
7187
|
-
var cache = _getRequireWildcardCache$2(nodeInterop);
|
|
7188
|
-
|
|
7189
|
-
if (cache && cache.has(obj)) {
|
|
7190
|
-
return cache.get(obj);
|
|
7191
|
-
}
|
|
7192
|
-
|
|
7193
|
-
var newObj = {};
|
|
7194
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
7195
|
-
|
|
7196
|
-
for (var key in obj) {
|
|
7197
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
7198
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
7199
|
-
|
|
7200
|
-
if (desc && (desc.get || desc.set)) {
|
|
7201
|
-
Object.defineProperty(newObj, key, desc);
|
|
7202
|
-
} else {
|
|
7203
|
-
newObj[key] = obj[key];
|
|
7204
|
-
}
|
|
7205
|
-
}
|
|
7206
|
-
}
|
|
7207
|
-
|
|
7208
|
-
newObj["default"] = obj;
|
|
7209
|
-
|
|
7210
|
-
if (cache) {
|
|
7211
|
-
cache.set(obj, newObj);
|
|
7212
|
-
}
|
|
7213
|
-
|
|
7214
|
-
return newObj;
|
|
7215
|
-
}
|
|
7216
|
-
|
|
7217
|
-
var styles = _reactNative$1.StyleSheet.create({
|
|
7218
|
-
container: {
|
|
7219
|
-
flexDirection: 'row',
|
|
7220
|
-
justifyContent: 'flex-start',
|
|
7221
|
-
alignItems: 'center',
|
|
7222
|
-
padding: 8
|
|
7223
|
-
},
|
|
7224
|
-
touchable: {
|
|
7225
|
-
overflow: 'hidden'
|
|
7226
|
-
},
|
|
7227
|
-
icon: {
|
|
7228
|
-
marginRight: 10
|
|
7229
|
-
},
|
|
7230
|
-
text: {
|
|
7231
|
-
fontWeight: '600',
|
|
7232
|
-
backgroundColor: 'transparent'
|
|
7233
|
-
}
|
|
7234
|
-
});
|
|
7235
|
-
|
|
7236
|
-
var IOS7_BLUE = '#007AFF';
|
|
7237
|
-
var TEXT_PROP_NAMES = ['ellipsizeMode', 'numberOfLines', 'textBreakStrategy', 'selectable', 'suppressHighlighting', 'allowFontScaling', 'adjustsFontSizeToFit', 'minimumFontScale'];
|
|
7238
|
-
var TOUCHABLE_PROP_NAMES = ['accessible', 'accessibilityLabel', 'accessibilityHint', 'accessibilityComponentType', 'accessibilityRole', 'accessibilityStates', 'accessibilityTraits', 'onFocus', 'onBlur', 'disabled', 'onPress', 'onPressIn', 'onPressOut', 'onLayout', 'onLongPress', 'nativeID', 'testID', 'delayPressIn', 'delayPressOut', 'delayLongPress', 'activeOpacity', 'underlayColor', 'selectionColor', 'onShowUnderlay', 'onHideUnderlay', 'hasTVPreferredFocus', 'tvParallaxProperties'];
|
|
7239
|
-
|
|
7240
|
-
function createIconButtonComponent(Icon) {
|
|
7241
|
-
var _class, _temp;
|
|
7242
|
-
|
|
7243
|
-
return _temp = _class = function (_PureComponent) {
|
|
7244
|
-
(0, _inherits2$2["default"])(IconButton, _PureComponent);
|
|
7245
|
-
|
|
7246
|
-
function IconButton() {
|
|
7247
|
-
(0, _classCallCheck2$2["default"])(this, IconButton);
|
|
7248
|
-
return (0, _possibleConstructorReturn2$2["default"])(this, (0, _getPrototypeOf2$1["default"])(IconButton).apply(this, arguments));
|
|
7249
|
-
}
|
|
7250
|
-
|
|
7251
|
-
(0, _createClass2$2["default"])(IconButton, [{
|
|
7252
|
-
key: "render",
|
|
7253
|
-
value: function render() {
|
|
7254
|
-
var _this$props = this.props,
|
|
7255
|
-
style = _this$props.style,
|
|
7256
|
-
iconStyle = _this$props.iconStyle,
|
|
7257
|
-
children = _this$props.children,
|
|
7258
|
-
restProps = (0, _objectWithoutProperties2$1["default"])(_this$props, ["style", "iconStyle", "children"]);
|
|
7259
|
-
var iconProps = (0, _objectUtils.pick)(restProps, TEXT_PROP_NAMES, 'style', 'name', 'size', 'color');
|
|
7260
|
-
var touchableProps = (0, _objectUtils.pick)(restProps, TOUCHABLE_PROP_NAMES);
|
|
7261
|
-
var props = (0, _objectUtils.omit)(restProps, Object.keys(iconProps), Object.keys(touchableProps), 'iconStyle', 'borderRadius', 'backgroundColor');
|
|
7262
|
-
iconProps.style = iconStyle ? [styles.icon, iconStyle] : styles.icon;
|
|
7263
|
-
var colorStyle = (0, _objectUtils.pick)(this.props, 'color');
|
|
7264
|
-
var blockStyle = (0, _objectUtils.pick)(this.props, 'backgroundColor', 'borderRadius');
|
|
7265
|
-
return _react$2["default"].createElement(_reactNative$1.TouchableHighlight, (0, _extends2$2["default"])({
|
|
7266
|
-
style: [styles.touchable, blockStyle]
|
|
7267
|
-
}, touchableProps, {
|
|
7268
|
-
__self: this,
|
|
7269
|
-
__source: {
|
|
7270
|
-
fileName: _jsxFileName$2,
|
|
7271
|
-
lineNumber: 116
|
|
7272
|
-
}
|
|
7273
|
-
}), _react$2["default"].createElement(_reactNative$1.View, (0, _extends2$2["default"])({
|
|
7274
|
-
style: [styles.container, blockStyle, style]
|
|
7275
|
-
}, props, {
|
|
7276
|
-
__self: this,
|
|
7277
|
-
__source: {
|
|
7278
|
-
fileName: _jsxFileName$2,
|
|
7279
|
-
lineNumber: 120
|
|
7280
|
-
}
|
|
7281
|
-
}), _react$2["default"].createElement(Icon, (0, _extends2$2["default"])({}, iconProps, {
|
|
7282
|
-
__self: this,
|
|
7283
|
-
__source: {
|
|
7284
|
-
fileName: _jsxFileName$2,
|
|
7285
|
-
lineNumber: 121
|
|
7286
|
-
}
|
|
7287
|
-
})), typeof children === 'string' ? _react$2["default"].createElement(_reactNative$1.Text, {
|
|
7288
|
-
style: [styles.text, colorStyle],
|
|
7289
|
-
selectable: false,
|
|
7290
|
-
__self: this,
|
|
7291
|
-
__source: {
|
|
7292
|
-
fileName: _jsxFileName$2,
|
|
7293
|
-
lineNumber: 123
|
|
7294
|
-
}
|
|
7295
|
-
}, children) : children));
|
|
7296
|
-
}
|
|
7297
|
-
}]);
|
|
7298
|
-
return IconButton;
|
|
7299
|
-
}(_react$2.PureComponent), _class.propTypes = {
|
|
7300
|
-
backgroundColor: _propTypes$2["default"].oneOfType([_propTypes$2["default"].string, _propTypes$2["default"].number]),
|
|
7301
|
-
borderRadius: _propTypes$2["default"].number,
|
|
7302
|
-
color: _propTypes$2["default"].any,
|
|
7303
|
-
size: _propTypes$2["default"].number,
|
|
7304
|
-
iconStyle: _propTypes$2["default"].any,
|
|
7305
|
-
style: _propTypes$2["default"].any,
|
|
7306
|
-
children: _propTypes$2["default"].node
|
|
7307
|
-
}, _class.defaultProps = {
|
|
7308
|
-
backgroundColor: IOS7_BLUE,
|
|
7309
|
-
borderRadius: 5,
|
|
7310
|
-
color: 'white',
|
|
7311
|
-
size: 20
|
|
7312
|
-
}, _temp;
|
|
7313
|
-
}
|
|
7314
|
-
|
|
7315
|
-
var _interopRequireDefault$3 = interopRequireDefault;
|
|
7316
|
-
Object.defineProperty(createIconSet$1, "__esModule", {
|
|
7317
|
-
value: true
|
|
7318
|
-
});
|
|
7319
|
-
createIconSet$1.NativeIconAPI = createIconSet$1.DEFAULT_ICON_SIZE = createIconSet$1.DEFAULT_ICON_COLOR = void 0;
|
|
7320
|
-
|
|
7321
|
-
createIconSet$1["default"] = createIconSet;
|
|
7322
|
-
|
|
7323
|
-
var _toConsumableArray2 = _interopRequireDefault$3(toConsumableArray);
|
|
7324
|
-
|
|
7325
|
-
var _regenerator = _interopRequireDefault$3(regenerator);
|
|
7326
|
-
|
|
7327
|
-
var _extends2$1 = _interopRequireDefault$3(_extends_1);
|
|
7328
|
-
|
|
7329
|
-
var _objectWithoutProperties2 = _interopRequireDefault$3(objectWithoutProperties);
|
|
7330
|
-
|
|
7331
|
-
var _classCallCheck2$1 = _interopRequireDefault$3(classCallCheck);
|
|
7332
|
-
|
|
7333
|
-
var _createClass2$1 = _interopRequireDefault$3(createClass);
|
|
7334
|
-
|
|
7335
|
-
var _possibleConstructorReturn2$1 = _interopRequireDefault$3(possibleConstructorReturn);
|
|
7336
|
-
|
|
7337
|
-
var _getPrototypeOf3 = _interopRequireDefault$3(getPrototypeOf);
|
|
7338
|
-
|
|
7339
|
-
var _inherits2$1 = _interopRequireDefault$3(inherits);
|
|
7340
|
-
|
|
7341
|
-
var _react$1 = _interopRequireWildcard$1(React);
|
|
7342
|
-
|
|
7343
|
-
var _propTypes$1 = _interopRequireDefault$3(propTypes.exports);
|
|
7344
|
-
|
|
7345
|
-
var _reactNative = ReactNative__default;
|
|
7346
|
-
|
|
7347
|
-
var _ensureNativeModuleAvailable = _interopRequireDefault$3(ensureNativeModuleAvailable$1);
|
|
7348
|
-
|
|
7349
|
-
var _createIconSourceCache = _interopRequireDefault$3(createIconSourceCache$1);
|
|
7350
|
-
|
|
7351
|
-
var _iconButton = _interopRequireDefault$3(iconButton);
|
|
7352
|
-
|
|
7353
|
-
var _jsxFileName$1 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-icon-set.js";
|
|
7354
|
-
|
|
7355
|
-
function _getRequireWildcardCache$1(nodeInterop) {
|
|
7356
|
-
if (typeof WeakMap !== "function") return null;
|
|
7357
|
-
var cacheBabelInterop = new WeakMap();
|
|
7358
|
-
var cacheNodeInterop = new WeakMap();
|
|
7359
|
-
return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) {
|
|
7360
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
7361
|
-
})(nodeInterop);
|
|
7362
|
-
}
|
|
7363
|
-
|
|
7364
|
-
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
7365
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
7366
|
-
return obj;
|
|
7367
|
-
}
|
|
7368
|
-
|
|
7369
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
7370
|
-
return {
|
|
7371
|
-
"default": obj
|
|
7372
|
-
};
|
|
7373
|
-
}
|
|
7374
|
-
|
|
7375
|
-
var cache = _getRequireWildcardCache$1(nodeInterop);
|
|
7376
|
-
|
|
7377
|
-
if (cache && cache.has(obj)) {
|
|
7378
|
-
return cache.get(obj);
|
|
7379
|
-
}
|
|
7380
|
-
|
|
7381
|
-
var newObj = {};
|
|
7382
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
7383
|
-
|
|
7384
|
-
for (var key in obj) {
|
|
7385
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
7386
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
7387
|
-
|
|
7388
|
-
if (desc && (desc.get || desc.set)) {
|
|
7389
|
-
Object.defineProperty(newObj, key, desc);
|
|
7390
|
-
} else {
|
|
7391
|
-
newObj[key] = obj[key];
|
|
7392
|
-
}
|
|
7393
|
-
}
|
|
7394
|
-
}
|
|
7395
|
-
|
|
7396
|
-
newObj["default"] = obj;
|
|
7397
|
-
|
|
7398
|
-
if (cache) {
|
|
7399
|
-
cache.set(obj, newObj);
|
|
7400
|
-
}
|
|
7401
|
-
|
|
7402
|
-
return newObj;
|
|
7403
|
-
}
|
|
7404
|
-
|
|
7405
|
-
var NativeIconAPI = _reactNative.NativeModules.RNVectorIconsManager || _reactNative.NativeModules.RNVectorIconsModule;
|
|
7406
|
-
createIconSet$1.NativeIconAPI = NativeIconAPI;
|
|
7407
|
-
var DEFAULT_ICON_SIZE = 12;
|
|
7408
|
-
createIconSet$1.DEFAULT_ICON_SIZE = DEFAULT_ICON_SIZE;
|
|
7409
|
-
var DEFAULT_ICON_COLOR = 'black';
|
|
7410
|
-
createIconSet$1.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR;
|
|
7411
|
-
|
|
7412
|
-
function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) {
|
|
7413
|
-
var fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily;
|
|
7414
|
-
|
|
7415
|
-
var fontReference = _reactNative.Platform.select({
|
|
7416
|
-
windows: "/Assets/" + fontFile + "#" + fontFamily,
|
|
7417
|
-
android: fontBasename,
|
|
7418
|
-
web: fontBasename,
|
|
7419
|
-
"default": fontFamily
|
|
7420
|
-
});
|
|
7421
|
-
|
|
7422
|
-
var IconNamePropType = _propTypes$1["default"].oneOf(Object.keys(glyphMap));
|
|
7423
|
-
|
|
7424
|
-
var Icon = function (_PureComponent) {
|
|
7425
|
-
(0, _inherits2$1["default"])(Icon, _PureComponent);
|
|
7426
|
-
|
|
7427
|
-
function Icon() {
|
|
7428
|
-
var _getPrototypeOf2;
|
|
7429
|
-
|
|
7430
|
-
var _this;
|
|
7431
|
-
|
|
7432
|
-
(0, _classCallCheck2$1["default"])(this, Icon);
|
|
7433
|
-
|
|
7434
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7435
|
-
args[_key] = arguments[_key];
|
|
7436
|
-
}
|
|
7437
|
-
|
|
7438
|
-
_this = (0, _possibleConstructorReturn2$1["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(Icon)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
7439
|
-
_this.root = null;
|
|
7440
|
-
|
|
7441
|
-
_this.handleRef = function (ref) {
|
|
7442
|
-
_this.root = ref;
|
|
7443
|
-
};
|
|
7444
|
-
|
|
7445
|
-
return _this;
|
|
7446
|
-
}
|
|
7447
|
-
|
|
7448
|
-
(0, _createClass2$1["default"])(Icon, [{
|
|
7449
|
-
key: "setNativeProps",
|
|
7450
|
-
value: function setNativeProps(nativeProps) {
|
|
7451
|
-
if (this.root) {
|
|
7452
|
-
this.root.setNativeProps(nativeProps);
|
|
7453
|
-
}
|
|
7454
|
-
}
|
|
7455
|
-
}, {
|
|
7456
|
-
key: "render",
|
|
7457
|
-
value: function render() {
|
|
7458
|
-
var _this$props = this.props,
|
|
7459
|
-
name = _this$props.name,
|
|
7460
|
-
size = _this$props.size,
|
|
7461
|
-
color = _this$props.color,
|
|
7462
|
-
style = _this$props.style,
|
|
7463
|
-
children = _this$props.children,
|
|
7464
|
-
props = (0, _objectWithoutProperties2["default"])(_this$props, ["name", "size", "color", "style", "children"]);
|
|
7465
|
-
var glyph = name ? glyphMap[name] || '?' : '';
|
|
7466
|
-
|
|
7467
|
-
if (typeof glyph === 'number') {
|
|
7468
|
-
glyph = String.fromCodePoint(glyph);
|
|
7469
|
-
}
|
|
7470
|
-
|
|
7471
|
-
var styleDefaults = {
|
|
7472
|
-
fontSize: size,
|
|
7473
|
-
color: color
|
|
7474
|
-
};
|
|
7475
|
-
var styleOverrides = {
|
|
7476
|
-
fontFamily: fontReference,
|
|
7477
|
-
fontWeight: 'normal',
|
|
7478
|
-
fontStyle: 'normal'
|
|
7479
|
-
};
|
|
7480
|
-
props.style = [styleDefaults, style, styleOverrides, fontStyle || {}];
|
|
7481
|
-
props.ref = this.handleRef;
|
|
7482
|
-
return _react$1["default"].createElement(_reactNative.Text, (0, _extends2$1["default"])({
|
|
7483
|
-
selectable: false
|
|
7484
|
-
}, props, {
|
|
7485
|
-
__self: this,
|
|
7486
|
-
__source: {
|
|
7487
|
-
fileName: _jsxFileName$1,
|
|
7488
|
-
lineNumber: 91
|
|
7489
|
-
}
|
|
7490
|
-
}), glyph, children);
|
|
7491
|
-
}
|
|
7492
|
-
}]);
|
|
7493
|
-
return Icon;
|
|
7494
|
-
}(_react$1.PureComponent);
|
|
7495
|
-
|
|
7496
|
-
Icon.propTypes = {
|
|
7497
|
-
allowFontScaling: _propTypes$1["default"].bool,
|
|
7498
|
-
name: IconNamePropType,
|
|
7499
|
-
size: _propTypes$1["default"].number,
|
|
7500
|
-
color: _propTypes$1["default"].any,
|
|
7501
|
-
children: _propTypes$1["default"].node,
|
|
7502
|
-
style: _propTypes$1["default"].any
|
|
7503
|
-
};
|
|
7504
|
-
Icon.defaultProps = {
|
|
7505
|
-
size: DEFAULT_ICON_SIZE,
|
|
7506
|
-
allowFontScaling: false
|
|
7507
|
-
};
|
|
7508
|
-
var imageSourceCache = (0, _createIconSourceCache["default"])();
|
|
7509
|
-
|
|
7510
|
-
function resolveGlyph(name) {
|
|
7511
|
-
var glyph = glyphMap[name] || '?';
|
|
7512
|
-
|
|
7513
|
-
if (typeof glyph === 'number') {
|
|
7514
|
-
return String.fromCodePoint(glyph);
|
|
7515
|
-
}
|
|
7516
|
-
|
|
7517
|
-
return glyph;
|
|
7518
|
-
}
|
|
7519
|
-
|
|
7520
|
-
function getImageSourceSync(name) {
|
|
7521
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ICON_SIZE;
|
|
7522
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ICON_COLOR;
|
|
7523
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
7524
|
-
var glyph = resolveGlyph(name);
|
|
7525
|
-
var processedColor = (0, _reactNative.processColor)(color);
|
|
7526
|
-
var cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
7527
|
-
|
|
7528
|
-
if (imageSourceCache.has(cacheKey)) {
|
|
7529
|
-
return imageSourceCache.get(cacheKey);
|
|
7530
|
-
}
|
|
7531
|
-
|
|
7532
|
-
try {
|
|
7533
|
-
var imagePath = NativeIconAPI.getImageForFontSync(fontReference, glyph, size, processedColor);
|
|
7534
|
-
var value = {
|
|
7535
|
-
uri: imagePath,
|
|
7536
|
-
scale: _reactNative.PixelRatio.get()
|
|
7537
|
-
};
|
|
7538
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
7539
|
-
return value;
|
|
7540
|
-
} catch (error) {
|
|
7541
|
-
imageSourceCache.setError(cacheKey, error);
|
|
7542
|
-
throw error;
|
|
7543
|
-
}
|
|
7544
|
-
}
|
|
7545
|
-
|
|
7546
|
-
function getImageSource(name) {
|
|
7547
|
-
var size,
|
|
7548
|
-
color,
|
|
7549
|
-
glyph,
|
|
7550
|
-
processedColor,
|
|
7551
|
-
cacheKey,
|
|
7552
|
-
imagePath,
|
|
7553
|
-
value,
|
|
7554
|
-
_args = arguments;
|
|
7555
|
-
return _regenerator["default"].async(function getImageSource$(_context) {
|
|
7556
|
-
while (1) {
|
|
7557
|
-
switch (_context.prev = _context.next) {
|
|
7558
|
-
case 0:
|
|
7559
|
-
size = _args.length > 1 && _args[1] !== undefined ? _args[1] : DEFAULT_ICON_SIZE;
|
|
7560
|
-
color = _args.length > 2 && _args[2] !== undefined ? _args[2] : DEFAULT_ICON_COLOR;
|
|
7561
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
7562
|
-
glyph = resolveGlyph(name);
|
|
7563
|
-
processedColor = (0, _reactNative.processColor)(color);
|
|
7564
|
-
cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
7565
|
-
|
|
7566
|
-
if (!imageSourceCache.has(cacheKey)) {
|
|
7567
|
-
_context.next = 8;
|
|
7568
|
-
break;
|
|
7569
|
-
}
|
|
7570
|
-
|
|
7571
|
-
return _context.abrupt("return", imageSourceCache.get(cacheKey));
|
|
7572
|
-
|
|
7573
|
-
case 8:
|
|
7574
|
-
_context.prev = 8;
|
|
7575
|
-
_context.next = 11;
|
|
7576
|
-
return _regenerator["default"].awrap(NativeIconAPI.getImageForFont(fontReference, glyph, size, processedColor));
|
|
7577
|
-
|
|
7578
|
-
case 11:
|
|
7579
|
-
imagePath = _context.sent;
|
|
7580
|
-
value = {
|
|
7581
|
-
uri: imagePath,
|
|
7582
|
-
scale: _reactNative.PixelRatio.get()
|
|
7583
|
-
};
|
|
7584
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
7585
|
-
return _context.abrupt("return", value);
|
|
7586
|
-
|
|
7587
|
-
case 17:
|
|
7588
|
-
_context.prev = 17;
|
|
7589
|
-
_context.t0 = _context["catch"](8);
|
|
7590
|
-
imageSourceCache.setError(cacheKey, _context.t0);
|
|
7591
|
-
throw _context.t0;
|
|
7592
|
-
|
|
7593
|
-
case 21:
|
|
7594
|
-
case "end":
|
|
7595
|
-
return _context.stop();
|
|
7596
|
-
}
|
|
7597
|
-
}
|
|
7598
|
-
}, null, null, [[8, 17]]);
|
|
7599
|
-
}
|
|
7600
|
-
|
|
7601
|
-
function loadFont() {
|
|
7602
|
-
var file,
|
|
7603
|
-
_args2 = arguments;
|
|
7604
|
-
return _regenerator["default"].async(function loadFont$(_context2) {
|
|
7605
|
-
while (1) {
|
|
7606
|
-
switch (_context2.prev = _context2.next) {
|
|
7607
|
-
case 0:
|
|
7608
|
-
file = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : fontFile;
|
|
7609
|
-
|
|
7610
|
-
if (!(_reactNative.Platform.OS === 'ios')) {
|
|
7611
|
-
_context2.next = 7;
|
|
7612
|
-
break;
|
|
7613
|
-
}
|
|
7614
|
-
|
|
7615
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
7616
|
-
|
|
7617
|
-
if (file) {
|
|
7618
|
-
_context2.next = 5;
|
|
7619
|
-
break;
|
|
7620
|
-
}
|
|
7621
|
-
|
|
7622
|
-
throw new Error('Unable to load font, because no file was specified. ');
|
|
7623
|
-
|
|
7624
|
-
case 5:
|
|
7625
|
-
_context2.next = 7;
|
|
7626
|
-
return _regenerator["default"].awrap(NativeIconAPI.loadFontWithFileName.apply(NativeIconAPI, (0, _toConsumableArray2["default"])(file.split('.'))));
|
|
7627
|
-
|
|
7628
|
-
case 7:
|
|
7629
|
-
case "end":
|
|
7630
|
-
return _context2.stop();
|
|
7631
|
-
}
|
|
7632
|
-
}
|
|
7633
|
-
});
|
|
7634
|
-
}
|
|
7635
|
-
|
|
7636
|
-
function hasIcon(name) {
|
|
7637
|
-
return Object.prototype.hasOwnProperty.call(glyphMap, name);
|
|
7638
|
-
}
|
|
7639
|
-
|
|
7640
|
-
function getRawGlyphMap() {
|
|
7641
|
-
return glyphMap;
|
|
7642
|
-
}
|
|
7643
|
-
|
|
7644
|
-
function getFontFamily() {
|
|
7645
|
-
return fontReference;
|
|
7646
|
-
}
|
|
7647
|
-
|
|
7648
|
-
Icon.Button = (0, _iconButton["default"])(Icon);
|
|
7649
|
-
Icon.getImageSource = getImageSource;
|
|
7650
|
-
Icon.getImageSourceSync = getImageSourceSync;
|
|
7651
|
-
Icon.loadFont = loadFont;
|
|
7652
|
-
Icon.hasIcon = hasIcon;
|
|
7653
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
7654
|
-
Icon.getFontFamily = getFontFamily;
|
|
7655
|
-
return Icon;
|
|
7656
|
-
}
|
|
7657
|
-
|
|
7658
|
-
var createMultiStyleIconSet$1 = {};
|
|
7659
|
-
|
|
7660
|
-
function _defineProperty$1(obj, key, value) {
|
|
7661
|
-
if (key in obj) {
|
|
7662
|
-
Object.defineProperty(obj, key, {
|
|
7663
|
-
value: value,
|
|
7664
|
-
enumerable: true,
|
|
7665
|
-
configurable: true,
|
|
7666
|
-
writable: true
|
|
7667
|
-
});
|
|
7668
|
-
} else {
|
|
7669
|
-
obj[key] = value;
|
|
7670
|
-
}
|
|
7671
|
-
|
|
7672
|
-
return obj;
|
|
7673
|
-
}
|
|
7674
|
-
|
|
7675
|
-
var defineProperty = _defineProperty$1;
|
|
7676
|
-
|
|
7677
|
-
var _interopRequireDefault$2 = interopRequireDefault;
|
|
7678
|
-
Object.defineProperty(createMultiStyleIconSet$1, "__esModule", {
|
|
7679
|
-
value: true
|
|
7680
|
-
});
|
|
7681
|
-
|
|
7682
|
-
createMultiStyleIconSet$1["default"] = createMultiStyleIconSet;
|
|
7683
|
-
|
|
7684
|
-
var _classCallCheck2 = _interopRequireDefault$2(classCallCheck);
|
|
7685
|
-
|
|
7686
|
-
var _createClass2 = _interopRequireDefault$2(createClass);
|
|
7687
|
-
|
|
7688
|
-
var _possibleConstructorReturn2 = _interopRequireDefault$2(possibleConstructorReturn);
|
|
7689
|
-
|
|
7690
|
-
var _getPrototypeOf2 = _interopRequireDefault$2(getPrototypeOf);
|
|
7691
|
-
|
|
7692
|
-
var _inherits2 = _interopRequireDefault$2(inherits);
|
|
7693
|
-
|
|
7694
|
-
var _defineProperty2 = _interopRequireDefault$2(defineProperty);
|
|
7695
|
-
|
|
7696
|
-
var _extends2 = _interopRequireDefault$2(_extends_1);
|
|
7697
|
-
|
|
7698
|
-
var _react = _interopRequireWildcard(React);
|
|
7699
|
-
|
|
7700
|
-
var _propTypes = _interopRequireDefault$2(propTypes.exports);
|
|
7701
|
-
|
|
7702
|
-
var _createIconSet$2 = _interopRequireWildcard(createIconSet$1);
|
|
7703
|
-
|
|
7704
|
-
var _jsxFileName = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-multi-style-icon-set.js";
|
|
7705
|
-
|
|
7706
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
7707
|
-
if (typeof WeakMap !== "function") return null;
|
|
7708
|
-
var cacheBabelInterop = new WeakMap();
|
|
7709
|
-
var cacheNodeInterop = new WeakMap();
|
|
7710
|
-
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
7711
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
7712
|
-
})(nodeInterop);
|
|
7713
|
-
}
|
|
7714
|
-
|
|
7715
|
-
function _interopRequireWildcard(obj, nodeInterop) {
|
|
7716
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
7717
|
-
return obj;
|
|
7718
|
-
}
|
|
7719
|
-
|
|
7720
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
7721
|
-
return {
|
|
7722
|
-
"default": obj
|
|
7723
|
-
};
|
|
7724
|
-
}
|
|
7725
|
-
|
|
7726
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
7727
|
-
|
|
7728
|
-
if (cache && cache.has(obj)) {
|
|
7729
|
-
return cache.get(obj);
|
|
7730
|
-
}
|
|
7731
|
-
|
|
7732
|
-
var newObj = {};
|
|
7733
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
7734
|
-
|
|
7735
|
-
for (var key in obj) {
|
|
7736
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
7737
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
7738
|
-
|
|
7739
|
-
if (desc && (desc.get || desc.set)) {
|
|
7740
|
-
Object.defineProperty(newObj, key, desc);
|
|
7741
|
-
} else {
|
|
7742
|
-
newObj[key] = obj[key];
|
|
7743
|
-
}
|
|
7744
|
-
}
|
|
7745
|
-
}
|
|
7746
|
-
|
|
7747
|
-
newObj["default"] = obj;
|
|
7748
|
-
|
|
7749
|
-
if (cache) {
|
|
7750
|
-
cache.set(obj, newObj);
|
|
7751
|
-
}
|
|
7752
|
-
|
|
7753
|
-
return newObj;
|
|
7754
|
-
}
|
|
7755
|
-
|
|
7756
|
-
function createMultiStyleIconSet(styles) {
|
|
7757
|
-
var optionsInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
7758
|
-
var styleNames = Object.keys(styles);
|
|
7759
|
-
|
|
7760
|
-
if (styleNames.length === 0) {
|
|
7761
|
-
throw new Error('You need to add at least one style');
|
|
7762
|
-
}
|
|
7763
|
-
|
|
7764
|
-
var options = (0, _extends2["default"])({
|
|
7765
|
-
defaultStyle: styleNames[0],
|
|
7766
|
-
fallbackFamily: function fallbackFamily() {
|
|
7767
|
-
return styleNames[0];
|
|
7768
|
-
},
|
|
7769
|
-
glyphValidator: function glyphValidator() {
|
|
7770
|
-
return true;
|
|
7771
|
-
}
|
|
7772
|
-
}, optionsInput);
|
|
7773
|
-
var iconSets = styleNames.reduce(function (acc, name) {
|
|
7774
|
-
var style = styles[name];
|
|
7775
|
-
acc[name] = (0, _createIconSet$2["default"])(style.glyphMap || {}, style.fontFamily || '', style.fontFile || '', style.fontStyle || {});
|
|
7776
|
-
return acc;
|
|
7777
|
-
}, {});
|
|
7778
|
-
|
|
7779
|
-
function styleFromProps(props) {
|
|
7780
|
-
return Object.keys(props).reduce(function (result, propName) {
|
|
7781
|
-
return styleNames.indexOf(propName) !== -1 && props[propName] === true ? propName : result;
|
|
7782
|
-
}, options.defaultStyle);
|
|
7783
|
-
}
|
|
7784
|
-
|
|
7785
|
-
function getIconSetForProps(props) {
|
|
7786
|
-
var name = props.name;
|
|
7787
|
-
var style = styleFromProps(props);
|
|
7788
|
-
if (options.glyphValidator(name, style)) return iconSets[style];
|
|
7789
|
-
var family = options.fallbackFamily(name);
|
|
7790
|
-
|
|
7791
|
-
if (styleNames.indexOf(family) === -1) {
|
|
7792
|
-
return options.defaultStyle;
|
|
7793
|
-
}
|
|
7794
|
-
|
|
7795
|
-
return iconSets[family];
|
|
7796
|
-
}
|
|
7797
|
-
|
|
7798
|
-
function selectIconClass(iconSet, iconClass) {
|
|
7799
|
-
return iconClass.length > 0 ? iconSet[iconClass] : iconSet;
|
|
7800
|
-
}
|
|
7801
|
-
|
|
7802
|
-
function reduceProps(props) {
|
|
7803
|
-
return Object.keys(props).reduce(function (acc, prop) {
|
|
7804
|
-
if (styleNames.indexOf(prop) === -1) {
|
|
7805
|
-
acc[prop] = props[prop];
|
|
7806
|
-
}
|
|
7807
|
-
|
|
7808
|
-
return acc;
|
|
7809
|
-
}, {});
|
|
7810
|
-
}
|
|
7811
|
-
|
|
7812
|
-
function getStyledIconSet(style) {
|
|
7813
|
-
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
7814
|
-
|
|
7815
|
-
if (styleNames.indexOf(style) === -1) {
|
|
7816
|
-
return iconSets[options.defaultStyle];
|
|
7817
|
-
}
|
|
7818
|
-
|
|
7819
|
-
return !name ? iconSets[styleFromProps((0, _defineProperty2["default"])({}, style, true))] : getIconSetForProps((0, _defineProperty2["default"])({
|
|
7820
|
-
name: name
|
|
7821
|
-
}, style, true));
|
|
7822
|
-
}
|
|
7823
|
-
|
|
7824
|
-
function getImageSource(name) {
|
|
7825
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _createIconSet$2.DEFAULT_ICON_SIZE;
|
|
7826
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _createIconSet$2.DEFAULT_ICON_COLOR;
|
|
7827
|
-
var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : options.defaultStyle;
|
|
7828
|
-
return getStyledIconSet(style, name).getImageSource(name, size, color);
|
|
7829
|
-
}
|
|
7830
|
-
|
|
7831
|
-
function getFontFamily() {
|
|
7832
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
7833
|
-
return getStyledIconSet(style).getFontFamily();
|
|
7834
|
-
}
|
|
7835
|
-
|
|
7836
|
-
function getRawGlyphMap() {
|
|
7837
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
7838
|
-
return getStyledIconSet(style).getRawGlyphMap();
|
|
7839
|
-
}
|
|
7840
|
-
|
|
7841
|
-
function hasIcon(name) {
|
|
7842
|
-
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : options.defaultStyle;
|
|
7843
|
-
return options.glyphValidator(name, style);
|
|
7844
|
-
}
|
|
7845
|
-
|
|
7846
|
-
function createStyledIconClass() {
|
|
7847
|
-
var selectClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
7848
|
-
|
|
7849
|
-
var IconClass = function (_PureComponent) {
|
|
7850
|
-
(0, _inherits2["default"])(IconClass, _PureComponent);
|
|
7851
|
-
|
|
7852
|
-
function IconClass() {
|
|
7853
|
-
(0, _classCallCheck2["default"])(this, IconClass);
|
|
7854
|
-
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(IconClass).apply(this, arguments));
|
|
7855
|
-
}
|
|
7856
|
-
|
|
7857
|
-
(0, _createClass2["default"])(IconClass, [{
|
|
7858
|
-
key: "render",
|
|
7859
|
-
value: function render() {
|
|
7860
|
-
var selectedIconSet = getIconSetForProps(this.props);
|
|
7861
|
-
var SelectedIconClass = selectIconClass(selectedIconSet, selectClass);
|
|
7862
|
-
var props = reduceProps(this.props);
|
|
7863
|
-
return _react["default"].createElement(SelectedIconClass, (0, _extends2["default"])({}, props, {
|
|
7864
|
-
__self: this,
|
|
7865
|
-
__source: {
|
|
7866
|
-
fileName: _jsxFileName,
|
|
7867
|
-
lineNumber: 123
|
|
7868
|
-
}
|
|
7869
|
-
}));
|
|
7870
|
-
}
|
|
7871
|
-
}]);
|
|
7872
|
-
return IconClass;
|
|
7873
|
-
}(_react.PureComponent);
|
|
7874
|
-
|
|
7875
|
-
IconClass.propTypes = styleNames.reduce(function (acc, name) {
|
|
7876
|
-
acc[name] = _propTypes["default"].bool;
|
|
7877
|
-
return acc;
|
|
7878
|
-
}, {});
|
|
7879
|
-
IconClass.defaultProps = styleNames.reduce(function (acc, name) {
|
|
7880
|
-
acc[name] = false;
|
|
7881
|
-
return acc;
|
|
7882
|
-
}, {});
|
|
7883
|
-
return IconClass;
|
|
7884
|
-
}
|
|
7885
|
-
|
|
7886
|
-
var Icon = createStyledIconClass();
|
|
7887
|
-
Icon.Button = createStyledIconClass('Button');
|
|
7888
|
-
Icon.getStyledIconSet = getStyledIconSet;
|
|
7889
|
-
Icon.getImageSource = getImageSource;
|
|
7890
|
-
Icon.getFontFamily = getFontFamily;
|
|
7891
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
7892
|
-
Icon.hasIcon = hasIcon;
|
|
7893
|
-
return Icon;
|
|
7894
|
-
}
|
|
7895
|
-
|
|
7896
|
-
var createIconSetFromFontello$1 = {};
|
|
7897
|
-
|
|
7898
|
-
var _interopRequireDefault$1 = interopRequireDefault;
|
|
7899
|
-
Object.defineProperty(createIconSetFromFontello$1, "__esModule", {
|
|
7900
|
-
value: true
|
|
7901
|
-
});
|
|
7902
|
-
|
|
7903
|
-
createIconSetFromFontello$1["default"] = createIconSetFromFontello;
|
|
7904
|
-
|
|
7905
|
-
var _createIconSet$1 = _interopRequireDefault$1(createIconSet$1);
|
|
7906
|
-
|
|
7907
|
-
function createIconSetFromFontello(config, fontFamilyArg, fontFile) {
|
|
7908
|
-
var glyphMap = {};
|
|
7909
|
-
config.glyphs.forEach(function (glyph) {
|
|
7910
|
-
glyphMap[glyph.css] = glyph.code;
|
|
7911
|
-
});
|
|
7912
|
-
var fontFamily = fontFamilyArg || config.name || 'fontello';
|
|
7913
|
-
return (0, _createIconSet$1["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
|
|
7914
|
-
}
|
|
7915
|
-
|
|
7916
|
-
var createIconSetFromIcomoon = {};
|
|
7917
|
-
|
|
7918
|
-
var _interopRequireDefault = interopRequireDefault;
|
|
7919
|
-
Object.defineProperty(createIconSetFromIcomoon, "__esModule", {
|
|
7920
|
-
value: true
|
|
7921
|
-
});
|
|
7922
|
-
|
|
7923
|
-
createIconSetFromIcomoon["default"] = createIconSetFromIcoMoon;
|
|
7924
|
-
|
|
7925
|
-
var _createIconSet = _interopRequireDefault(createIconSet$1);
|
|
7926
|
-
|
|
7927
|
-
function createIconSetFromIcoMoon(config, fontFamilyArg, fontFile) {
|
|
7928
|
-
var glyphMap = {};
|
|
7929
|
-
config.icons.forEach(function (icon) {
|
|
7930
|
-
icon.properties.name.split(/\s*,\s*/g).forEach(function (name) {
|
|
7931
|
-
glyphMap[name] = icon.properties.code;
|
|
7932
|
-
});
|
|
7933
|
-
});
|
|
7934
|
-
var fontFamily = fontFamilyArg || config.preferences.fontPref.metadata.fontFamily;
|
|
7935
|
-
return (0, _createIconSet["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
|
|
7936
|
-
}
|
|
7937
|
-
|
|
7938
|
-
(function (exports) {
|
|
7939
|
-
var _interopRequireDefault = interopRequireDefault;
|
|
7940
|
-
Object.defineProperty(exports, "__esModule", {
|
|
7941
|
-
value: true
|
|
7942
|
-
});
|
|
7943
|
-
Object.defineProperty(exports, "createIconSet", {
|
|
7944
|
-
enumerable: true,
|
|
7945
|
-
get: function get() {
|
|
7946
|
-
return _createIconSet["default"];
|
|
7947
|
-
}
|
|
7948
|
-
});
|
|
7949
|
-
Object.defineProperty(exports, "createIconSetFromFontello", {
|
|
7950
|
-
enumerable: true,
|
|
7951
|
-
get: function get() {
|
|
7952
|
-
return _createIconSetFromFontello["default"];
|
|
7953
|
-
}
|
|
7954
|
-
});
|
|
7955
|
-
Object.defineProperty(exports, "createIconSetFromIcoMoon", {
|
|
7956
|
-
enumerable: true,
|
|
7957
|
-
get: function get() {
|
|
7958
|
-
return _createIconSetFromIcomoon["default"];
|
|
7959
|
-
}
|
|
7960
|
-
});
|
|
7961
|
-
Object.defineProperty(exports, "createMultiStyleIconSet", {
|
|
7962
|
-
enumerable: true,
|
|
7963
|
-
get: function get() {
|
|
7964
|
-
return _createMultiStyleIconSet["default"];
|
|
7965
|
-
}
|
|
7966
|
-
});
|
|
7967
|
-
|
|
7968
|
-
var _createIconSet = _interopRequireDefault(createIconSet$1);
|
|
7969
|
-
|
|
7970
|
-
var _createMultiStyleIconSet = _interopRequireDefault(createMultiStyleIconSet$1);
|
|
7971
|
-
|
|
7972
|
-
var _createIconSetFromFontello = _interopRequireDefault(createIconSetFromFontello$1);
|
|
7973
|
-
|
|
7974
|
-
var _createIconSetFromIcomoon = _interopRequireDefault(createIconSetFromIcomoon);
|
|
7975
|
-
})(dist);
|
|
7976
|
-
|
|
7977
5932
|
var IcoMoonType = "selection";
|
|
7978
5933
|
var icons = [
|
|
7979
5934
|
{
|
|
@@ -16485,7 +14440,7 @@ var heroIconConfig = {
|
|
|
16485
14440
|
preferences: preferences
|
|
16486
14441
|
};
|
|
16487
14442
|
|
|
16488
|
-
var HeroIcon =
|
|
14443
|
+
var HeroIcon = createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
|
|
16489
14444
|
var COLOR_INTENTS = {
|
|
16490
14445
|
text: 'text',
|
|
16491
14446
|
primary: 'primary',
|
|
@@ -16510,7 +14465,7 @@ var _excluded$e = ["style"];
|
|
|
16510
14465
|
|
|
16511
14466
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
16512
14467
|
var style = _ref.style,
|
|
16513
|
-
otherProps = _objectWithoutProperties
|
|
14468
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
16514
14469
|
|
|
16515
14470
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
16516
14471
|
useEffect(function () {
|
|
@@ -16624,14 +14579,14 @@ var Accordion = function Accordion(_ref) {
|
|
|
16624
14579
|
testID: testID
|
|
16625
14580
|
}, items.map(function (_ref2, index) {
|
|
16626
14581
|
var key = _ref2.key,
|
|
16627
|
-
props = _objectWithoutProperties
|
|
14582
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
16628
14583
|
|
|
16629
14584
|
var open = _activeItemKey === key;
|
|
16630
14585
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16631
14586
|
key: key
|
|
16632
14587
|
}, variant === 'card' && index !== 0 && /*#__PURE__*/React.createElement(Spacer$1, {
|
|
16633
14588
|
testID: "accordion-spacer"
|
|
16634
|
-
}), /*#__PURE__*/React.createElement(AccordionItem, _extends$
|
|
14589
|
+
}), /*#__PURE__*/React.createElement(AccordionItem, _extends$1({}, props, {
|
|
16635
14590
|
open: open,
|
|
16636
14591
|
onPress: function onPress() {
|
|
16637
14592
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -16866,7 +14821,7 @@ var Status = function Status(_ref) {
|
|
|
16866
14821
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
16867
14822
|
style = _ref.style,
|
|
16868
14823
|
testID = _ref.testID,
|
|
16869
|
-
nativeProps = _objectWithoutProperties
|
|
14824
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16870
14825
|
|
|
16871
14826
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
16872
14827
|
opacity = _React$useRef.current;
|
|
@@ -16885,7 +14840,7 @@ var Status = function Status(_ref) {
|
|
|
16885
14840
|
useNativeDriver: true
|
|
16886
14841
|
}).start();
|
|
16887
14842
|
}, [visible, opacity]);
|
|
16888
|
-
return /*#__PURE__*/React.createElement(View, _extends$
|
|
14843
|
+
return /*#__PURE__*/React.createElement(View, _extends$1({}, nativeProps, {
|
|
16889
14844
|
style: style,
|
|
16890
14845
|
testID: testID
|
|
16891
14846
|
}), children, /*#__PURE__*/React.createElement(StyledStatus, {
|
|
@@ -16919,7 +14874,7 @@ var Badge = function Badge(_ref) {
|
|
|
16919
14874
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
16920
14875
|
style = _ref.style,
|
|
16921
14876
|
testID = _ref.testID,
|
|
16922
|
-
nativeProps = _objectWithoutProperties
|
|
14877
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
16923
14878
|
|
|
16924
14879
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
16925
14880
|
opacity = _React$useRef.current;
|
|
@@ -16939,7 +14894,7 @@ var Badge = function Badge(_ref) {
|
|
|
16939
14894
|
}).start();
|
|
16940
14895
|
}, [visible, opacity]);
|
|
16941
14896
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
16942
|
-
return /*#__PURE__*/React.createElement(StyledView$2, _extends$
|
|
14897
|
+
return /*#__PURE__*/React.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
16943
14898
|
themeIntent: intent,
|
|
16944
14899
|
themePadding: getPaddingState(content),
|
|
16945
14900
|
style: [{
|
|
@@ -17028,7 +14983,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
17028
14983
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
17029
14984
|
selectedTabKey = _ref.selectedTabKey,
|
|
17030
14985
|
tabs = _ref.tabs,
|
|
17031
|
-
nativeProps = _objectWithoutProperties
|
|
14986
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
17032
14987
|
|
|
17033
14988
|
var insets = useSafeAreaInsets();
|
|
17034
14989
|
/**
|
|
@@ -17043,7 +14998,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
17043
14998
|
if (!loaded.includes(selectedTabKey)) {
|
|
17044
14999
|
// Set the current tab to be loaded if it was not loaded before
|
|
17045
15000
|
setLoaded(function (loadedState) {
|
|
17046
|
-
return [].concat(_toConsumableArray
|
|
15001
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
17047
15002
|
});
|
|
17048
15003
|
}
|
|
17049
15004
|
|
|
@@ -17126,9 +15081,9 @@ var Divider = function Divider(_ref) {
|
|
|
17126
15081
|
marginVertical = _ref.marginVertical,
|
|
17127
15082
|
style = _ref.style,
|
|
17128
15083
|
testID = _ref.testID,
|
|
17129
|
-
nativeProps = _objectWithoutProperties
|
|
15084
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
17130
15085
|
|
|
17131
|
-
return /*#__PURE__*/React.createElement(StyledDivider, _extends$
|
|
15086
|
+
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
17132
15087
|
themeMarginHorizontal: marginHorizontal,
|
|
17133
15088
|
themeMarginVertical: marginVertical,
|
|
17134
15089
|
style: style,
|
|
@@ -17292,7 +15247,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
17292
15247
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
17293
15248
|
testID = _ref2.testID,
|
|
17294
15249
|
themeVariant = _ref2.themeVariant,
|
|
17295
|
-
nativeProps = _objectWithoutProperties
|
|
15250
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
17296
15251
|
|
|
17297
15252
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
17298
15253
|
useEffect(function () {
|
|
@@ -17322,7 +15277,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
17322
15277
|
return null;
|
|
17323
15278
|
};
|
|
17324
15279
|
|
|
17325
|
-
return /*#__PURE__*/React.createElement(AnimatedLoadingIndicatorWrapper, _extends$
|
|
15280
|
+
return /*#__PURE__*/React.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
17326
15281
|
testID: testID
|
|
17327
15282
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
17328
15283
|
};
|
|
@@ -17974,7 +15929,7 @@ function toDate(argument) {
|
|
|
17974
15929
|
requiredArgs(1, arguments);
|
|
17975
15930
|
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
17976
15931
|
|
|
17977
|
-
if (argument instanceof Date || _typeof
|
|
15932
|
+
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
17978
15933
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
17979
15934
|
return new Date(argument.getTime());
|
|
17980
15935
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -20540,7 +18495,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
20540
18495
|
var currentYear = visibleDate.getFullYear();
|
|
20541
18496
|
var now = new Date();
|
|
20542
18497
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
20543
|
-
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty
|
|
18498
|
+
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
20544
18499
|
}, {});
|
|
20545
18500
|
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
20546
18501
|
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
@@ -20646,7 +18601,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
20646
18601
|
var _ref$intent = _ref.intent,
|
|
20647
18602
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
20648
18603
|
children = _ref.children,
|
|
20649
|
-
nativeProps = _objectWithoutProperties
|
|
18604
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
20650
18605
|
|
|
20651
18606
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
20652
18607
|
themeIntent: intent,
|
|
@@ -20688,9 +18643,9 @@ var Card = function Card(_ref) {
|
|
|
20688
18643
|
var _ref$variant = _ref.variant,
|
|
20689
18644
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
20690
18645
|
children = _ref.children,
|
|
20691
|
-
nativeProps = _objectWithoutProperties
|
|
18646
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
20692
18647
|
|
|
20693
|
-
return /*#__PURE__*/React.createElement(StyledCard, _extends$
|
|
18648
|
+
return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
20694
18649
|
themeVariant: variant
|
|
20695
18650
|
}), variant === 'data' && /*#__PURE__*/React.createElement(LeftDataCard, {
|
|
20696
18651
|
testID: "data-card-indicator"
|
|
@@ -20938,7 +18893,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
20938
18893
|
helpText = _ref2.helpText,
|
|
20939
18894
|
value = _ref2.value,
|
|
20940
18895
|
defaultValue = _ref2.defaultValue,
|
|
20941
|
-
nativeProps = _objectWithoutProperties
|
|
18896
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
20942
18897
|
|
|
20943
18898
|
var textInputReference = useRef(null);
|
|
20944
18899
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
@@ -20990,7 +18945,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
20990
18945
|
themeVariant: variant
|
|
20991
18946
|
}, label)), /*#__PURE__*/React.createElement(StyledTextInput // when input is not editable on Android, the text color is gray
|
|
20992
18947
|
// hence, adding this to make the text color the same as iOS
|
|
20993
|
-
, _extends$
|
|
18948
|
+
, _extends$1({
|
|
20994
18949
|
style: StyleSheet$1.flatten([{
|
|
20995
18950
|
color: theme.__hd__.textInput.colors.text
|
|
20996
18951
|
}, textStyle]),
|
|
@@ -21383,7 +19338,7 @@ var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
|
21383
19338
|
|
|
21384
19339
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
21385
19340
|
var active = _ref.active,
|
|
21386
|
-
iconProps = _objectWithoutProperties
|
|
19341
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
21387
19342
|
|
|
21388
19343
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
21389
19344
|
useEffect(function () {
|
|
@@ -21563,7 +19518,7 @@ var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
|
|
|
21563
19518
|
return /*#__PURE__*/React.createElement(View, {
|
|
21564
19519
|
style: style
|
|
21565
19520
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp) {
|
|
21566
|
-
return /*#__PURE__*/React.createElement(ActionItem, _extends$
|
|
19521
|
+
return /*#__PURE__*/React.createElement(ActionItem, _extends$1({
|
|
21567
19522
|
key: itemProp.icon
|
|
21568
19523
|
}, itemProp));
|
|
21569
19524
|
}));
|
|
@@ -22017,7 +19972,7 @@ function PinInput(_ref2) {
|
|
|
22017
19972
|
return /*#__PURE__*/React.createElement(StyledWrapper$3, {
|
|
22018
19973
|
style: style,
|
|
22019
19974
|
testID: testID
|
|
22020
|
-
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray
|
|
19975
|
+
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
22021
19976
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
22022
19977
|
key: index
|
|
22023
19978
|
}, index !== 0 && /*#__PURE__*/React.createElement(StyledSpacer, null), /*#__PURE__*/React.createElement(PinCell, {
|
|
@@ -22123,7 +20078,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
22123
20078
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
22124
20079
|
style = _ref2.style,
|
|
22125
20080
|
testID = _ref2.testID,
|
|
22126
|
-
nativeProps = _objectWithoutProperties
|
|
20081
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$3);
|
|
22127
20082
|
|
|
22128
20083
|
var theme = useTheme$1();
|
|
22129
20084
|
var radius = theme.__hd__.progress.sizes.radius;
|
|
@@ -22161,7 +20116,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
22161
20116
|
outputRange: ['0deg', '360deg'],
|
|
22162
20117
|
extrapolate: 'clamp'
|
|
22163
20118
|
});
|
|
22164
|
-
return /*#__PURE__*/React.createElement(View, _extends$
|
|
20119
|
+
return /*#__PURE__*/React.createElement(View, _extends$1({}, nativeProps, {
|
|
22165
20120
|
testID: testID,
|
|
22166
20121
|
style: style
|
|
22167
20122
|
}), /*#__PURE__*/React.createElement(View, {
|
|
@@ -22249,7 +20204,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
22249
20204
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
22250
20205
|
style = _ref.style,
|
|
22251
20206
|
testID = _ref.testID,
|
|
22252
|
-
nativeProps = _objectWithoutProperties
|
|
20207
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
22253
20208
|
|
|
22254
20209
|
var _useState = useState(0),
|
|
22255
20210
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22277,7 +20232,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
22277
20232
|
outputRange: [999, 0],
|
|
22278
20233
|
extrapolate: 'clamp'
|
|
22279
20234
|
});
|
|
22280
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$2, _extends$
|
|
20235
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
|
|
22281
20236
|
testID: testID,
|
|
22282
20237
|
style: style
|
|
22283
20238
|
}), /*#__PURE__*/React.createElement(StyledInner, {
|
|
@@ -22399,7 +20354,7 @@ var _excluded$1 = ["testID"];
|
|
|
22399
20354
|
|
|
22400
20355
|
var Spinner = function Spinner(_ref) {
|
|
22401
20356
|
var testID = _ref.testID,
|
|
22402
|
-
nativeProps = _objectWithoutProperties
|
|
20357
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
22403
20358
|
|
|
22404
20359
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
22405
20360
|
testID: testID
|
|
@@ -22742,7 +20697,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
22742
20697
|
return val !== item.value;
|
|
22743
20698
|
}));
|
|
22744
20699
|
} else {
|
|
22745
|
-
_onPress([].concat(_toConsumableArray
|
|
20700
|
+
_onPress([].concat(_toConsumableArray(value), [item.value]));
|
|
22746
20701
|
}
|
|
22747
20702
|
}
|
|
22748
20703
|
});
|
|
@@ -23127,206 +21082,6 @@ var Switch = function Switch(_ref) {
|
|
|
23127
21082
|
}))));
|
|
23128
21083
|
};
|
|
23129
21084
|
|
|
23130
|
-
var childrenWithOverriddenStyle = function childrenWithOverriddenStyle(children) {
|
|
23131
|
-
return Children.map(children, function (child) {
|
|
23132
|
-
var element = child;
|
|
23133
|
-
return (
|
|
23134
|
-
/*#__PURE__*/
|
|
23135
|
-
// Add a wrapper to ensure layout is calculated correctly
|
|
23136
|
-
React.createElement(View, {
|
|
23137
|
-
style: StyleSheet$1.absoluteFill,
|
|
23138
|
-
collapsable: false
|
|
23139
|
-
}, /*#__PURE__*/React.cloneElement(element, _objectSpread2(_objectSpread2({}, element.props), {}, {
|
|
23140
|
-
// Override styles so that each page will fill the parent.
|
|
23141
|
-
style: [element.props.style, StyleSheet$1.absoluteFill]
|
|
23142
|
-
})))
|
|
23143
|
-
);
|
|
23144
|
-
});
|
|
23145
|
-
};
|
|
23146
|
-
|
|
23147
|
-
var VIEW_MANAGER_NAME = 'RNCViewPager';
|
|
23148
|
-
var PagerViewViewManager = requireNativeComponent(VIEW_MANAGER_NAME);
|
|
23149
|
-
function getViewManagerConfig() {
|
|
23150
|
-
var viewManagerName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : VIEW_MANAGER_NAME;
|
|
23151
|
-
return UIManager.getViewManagerConfig(viewManagerName);
|
|
23152
|
-
}
|
|
23153
|
-
|
|
23154
|
-
function _extends() {
|
|
23155
|
-
_extends = Object.assign || function (target) {
|
|
23156
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
23157
|
-
var source = arguments[i];
|
|
23158
|
-
|
|
23159
|
-
for (var key in source) {
|
|
23160
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
23161
|
-
target[key] = source[key];
|
|
23162
|
-
}
|
|
23163
|
-
}
|
|
23164
|
-
}
|
|
23165
|
-
|
|
23166
|
-
return target;
|
|
23167
|
-
};
|
|
23168
|
-
|
|
23169
|
-
return _extends.apply(this, arguments);
|
|
23170
|
-
}
|
|
23171
|
-
|
|
23172
|
-
function _defineProperty(obj, key, value) {
|
|
23173
|
-
if (key in obj) {
|
|
23174
|
-
Object.defineProperty(obj, key, {
|
|
23175
|
-
value: value,
|
|
23176
|
-
enumerable: true,
|
|
23177
|
-
configurable: true,
|
|
23178
|
-
writable: true
|
|
23179
|
-
});
|
|
23180
|
-
} else {
|
|
23181
|
-
obj[key] = value;
|
|
23182
|
-
}
|
|
23183
|
-
|
|
23184
|
-
return obj;
|
|
23185
|
-
}
|
|
23186
|
-
/**
|
|
23187
|
-
* Container that allows to flip left and right between child views. Each
|
|
23188
|
-
* child view of the `PagerView` will be treated as a separate page
|
|
23189
|
-
* and will be stretched to fill the `PagerView`.
|
|
23190
|
-
*
|
|
23191
|
-
* It is important all children are `<View>`s and not composite components.
|
|
23192
|
-
* You can set style properties like `padding` or `backgroundColor` for each
|
|
23193
|
-
* child. It is also important that each child have a `key` prop.
|
|
23194
|
-
*
|
|
23195
|
-
* Example:
|
|
23196
|
-
*
|
|
23197
|
-
* ```
|
|
23198
|
-
* render: function() {
|
|
23199
|
-
* return (
|
|
23200
|
-
* <PagerView
|
|
23201
|
-
* style={styles.PagerView}
|
|
23202
|
-
* initialPage={0}>
|
|
23203
|
-
* <View style={styles.pageStyle} key="1">
|
|
23204
|
-
* <Text>First page</Text>
|
|
23205
|
-
* </View>
|
|
23206
|
-
* <View style={styles.pageStyle} key="2">
|
|
23207
|
-
* <Text>Second page</Text>
|
|
23208
|
-
* </View>
|
|
23209
|
-
* </PagerView>
|
|
23210
|
-
* );
|
|
23211
|
-
* }
|
|
23212
|
-
*
|
|
23213
|
-
* ...
|
|
23214
|
-
*
|
|
23215
|
-
* var styles = {
|
|
23216
|
-
* ...
|
|
23217
|
-
* PagerView: {
|
|
23218
|
-
* flex: 1
|
|
23219
|
-
* },
|
|
23220
|
-
* pageStyle: {
|
|
23221
|
-
* alignItems: 'center',
|
|
23222
|
-
* padding: 20,
|
|
23223
|
-
* }
|
|
23224
|
-
* }
|
|
23225
|
-
* ```
|
|
23226
|
-
*/
|
|
23227
|
-
|
|
23228
|
-
var PagerView = /*#__PURE__*/function (_React$Component) {
|
|
23229
|
-
_inherits$1(PagerView, _React$Component);
|
|
23230
|
-
|
|
23231
|
-
var _super = _createSuper(PagerView);
|
|
23232
|
-
|
|
23233
|
-
function PagerView() {
|
|
23234
|
-
var _this;
|
|
23235
|
-
|
|
23236
|
-
_classCallCheck$1(this, PagerView);
|
|
23237
|
-
|
|
23238
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23239
|
-
args[_key] = arguments[_key];
|
|
23240
|
-
}
|
|
23241
|
-
|
|
23242
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
23243
|
-
|
|
23244
|
-
_defineProperty(_assertThisInitialized$1(_this), "isScrolling", false);
|
|
23245
|
-
|
|
23246
|
-
_defineProperty(_assertThisInitialized$1(_this), "PagerView", /*#__PURE__*/React.createRef());
|
|
23247
|
-
|
|
23248
|
-
_defineProperty(_assertThisInitialized$1(_this), "getInnerViewNode", function () {
|
|
23249
|
-
return _this.PagerView.current.getInnerViewNode();
|
|
23250
|
-
});
|
|
23251
|
-
|
|
23252
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageScroll", function (e) {
|
|
23253
|
-
if (_this.props.onPageScroll) {
|
|
23254
|
-
_this.props.onPageScroll(e);
|
|
23255
|
-
} // Not implemented on iOS yet
|
|
23256
|
-
|
|
23257
|
-
|
|
23258
|
-
if (Platform.OS === 'android') {
|
|
23259
|
-
if (_this.props.keyboardDismissMode === 'on-drag') {
|
|
23260
|
-
Keyboard.dismiss();
|
|
23261
|
-
}
|
|
23262
|
-
}
|
|
23263
|
-
});
|
|
23264
|
-
|
|
23265
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageScrollStateChanged", function (e) {
|
|
23266
|
-
if (_this.props.onPageScrollStateChanged) {
|
|
23267
|
-
_this.props.onPageScrollStateChanged(e);
|
|
23268
|
-
}
|
|
23269
|
-
|
|
23270
|
-
_this.isScrolling = e.nativeEvent.pageScrollState === 'dragging';
|
|
23271
|
-
});
|
|
23272
|
-
|
|
23273
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageSelected", function (e) {
|
|
23274
|
-
if (_this.props.onPageSelected) {
|
|
23275
|
-
_this.props.onPageSelected(e);
|
|
23276
|
-
}
|
|
23277
|
-
});
|
|
23278
|
-
|
|
23279
|
-
_defineProperty(_assertThisInitialized$1(_this), "setPage", function (selectedPage) {
|
|
23280
|
-
UIManager.dispatchViewManagerCommand(ReactNative__default.findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPage, [selectedPage]);
|
|
23281
|
-
});
|
|
23282
|
-
|
|
23283
|
-
_defineProperty(_assertThisInitialized$1(_this), "setPageWithoutAnimation", function (selectedPage) {
|
|
23284
|
-
UIManager.dispatchViewManagerCommand(ReactNative__default.findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPageWithoutAnimation, [selectedPage]);
|
|
23285
|
-
});
|
|
23286
|
-
|
|
23287
|
-
_defineProperty(_assertThisInitialized$1(_this), "setScrollEnabled", function (scrollEnabled) {
|
|
23288
|
-
UIManager.dispatchViewManagerCommand(ReactNative__default.findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setScrollEnabled, [scrollEnabled]);
|
|
23289
|
-
});
|
|
23290
|
-
|
|
23291
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onMoveShouldSetResponderCapture", function () {
|
|
23292
|
-
return _this.isScrolling;
|
|
23293
|
-
});
|
|
23294
|
-
|
|
23295
|
-
return _this;
|
|
23296
|
-
}
|
|
23297
|
-
|
|
23298
|
-
_createClass$1(PagerView, [{
|
|
23299
|
-
key: "deducedLayoutDirection",
|
|
23300
|
-
get: function get() {
|
|
23301
|
-
var shouldUseDeviceRtlSetup = !this.props.layoutDirection || this.props.layoutDirection === 'locale';
|
|
23302
|
-
|
|
23303
|
-
if (shouldUseDeviceRtlSetup) {
|
|
23304
|
-
return I18nManager.isRTL ? 'rtl' : 'ltr';
|
|
23305
|
-
} else {
|
|
23306
|
-
return this.props.layoutDirection;
|
|
23307
|
-
}
|
|
23308
|
-
}
|
|
23309
|
-
}, {
|
|
23310
|
-
key: "render",
|
|
23311
|
-
value: function render() {
|
|
23312
|
-
return /*#__PURE__*/React.createElement(PagerViewViewManager, _extends({}, this.props, {
|
|
23313
|
-
ref: this.PagerView
|
|
23314
|
-
/** TODO: Fix ref type */
|
|
23315
|
-
,
|
|
23316
|
-
style: this.props.style,
|
|
23317
|
-
layoutDirection: this.deducedLayoutDirection,
|
|
23318
|
-
onPageScroll: this._onPageScroll,
|
|
23319
|
-
onPageScrollStateChanged: this._onPageScrollStateChanged,
|
|
23320
|
-
onPageSelected: this._onPageSelected,
|
|
23321
|
-
onMoveShouldSetResponderCapture: this._onMoveShouldSetResponderCapture,
|
|
23322
|
-
children: childrenWithOverriddenStyle(this.props.children)
|
|
23323
|
-
}));
|
|
23324
|
-
}
|
|
23325
|
-
}]);
|
|
23326
|
-
|
|
23327
|
-
return PagerView;
|
|
23328
|
-
}(React.Component);
|
|
23329
|
-
|
|
23330
21085
|
var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
|
|
23331
21086
|
var TabContainer$1 = index$6(View)({
|
|
23332
21087
|
flex: 1,
|
|
@@ -23510,7 +21265,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
23510
21265
|
});
|
|
23511
21266
|
}
|
|
23512
21267
|
|
|
23513
|
-
var animation = Animated.parallel(_toConsumableArray
|
|
21268
|
+
var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
23514
21269
|
return Animated.timing(tabsAnims[i], {
|
|
23515
21270
|
toValue: i === selectedTabIndex ? 1 : 0,
|
|
23516
21271
|
duration: 150,
|
|
@@ -23789,9 +21544,9 @@ var Tag = function Tag(_ref) {
|
|
|
23789
21544
|
intent = _ref$intent === void 0 ? 'default' : _ref$intent,
|
|
23790
21545
|
style = _ref.style,
|
|
23791
21546
|
testID = _ref.testID,
|
|
23792
|
-
nativeProps = _objectWithoutProperties
|
|
21547
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
23793
21548
|
|
|
23794
|
-
return /*#__PURE__*/React.createElement(StyledView, _extends$
|
|
21549
|
+
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
23795
21550
|
themeIntent: intent,
|
|
23796
21551
|
style: style,
|
|
23797
21552
|
testID: testID
|
|
@@ -24120,7 +21875,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
24120
21875
|
setToastList = _ref.setToastList;
|
|
24121
21876
|
var theme = useTheme$1();
|
|
24122
21877
|
var toast = toastList[toastList.length - 1];
|
|
24123
|
-
return toast ? /*#__PURE__*/React.createElement(Toast$1, _extends$
|
|
21878
|
+
return toast ? /*#__PURE__*/React.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
24124
21879
|
key: toast.id,
|
|
24125
21880
|
style: {
|
|
24126
21881
|
marginBottom: theme.space.small
|
|
@@ -24159,7 +21914,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
24159
21914
|
props: props
|
|
24160
21915
|
};
|
|
24161
21916
|
setToastList(function (state) {
|
|
24162
|
-
return [item].concat(_toConsumableArray
|
|
21917
|
+
return [item].concat(_toConsumableArray(state));
|
|
24163
21918
|
});
|
|
24164
21919
|
return item.id;
|
|
24165
21920
|
},
|
|
@@ -24185,7 +21940,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
24185
21940
|
}) : toastList.map(function (_ref3) {
|
|
24186
21941
|
var id = _ref3.id,
|
|
24187
21942
|
props = _ref3.props;
|
|
24188
|
-
return /*#__PURE__*/React.createElement(Toast$1, _extends$
|
|
21943
|
+
return /*#__PURE__*/React.createElement(Toast$1, _extends$1({}, props, {
|
|
24189
21944
|
key: id,
|
|
24190
21945
|
style: {
|
|
24191
21946
|
marginBottom: theme.space.small
|
|
@@ -24432,28 +22187,28 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
24432
22187
|
}));
|
|
24433
22188
|
};
|
|
24434
22189
|
|
|
24435
|
-
var buttonConfigs = (_buttonConfigs = {}, _defineProperty
|
|
22190
|
+
var buttonConfigs = (_buttonConfigs = {}, _defineProperty(_buttonConfigs, ToolbarButtonName.Bold, {
|
|
24436
22191
|
icon: 'format-bold',
|
|
24437
22192
|
eventName: ToolbarEvents.Bold
|
|
24438
|
-
}), _defineProperty
|
|
22193
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.Italic, {
|
|
24439
22194
|
icon: 'format-italic',
|
|
24440
22195
|
eventName: ToolbarEvents.Italic
|
|
24441
|
-
}), _defineProperty
|
|
22196
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.Underline, {
|
|
24442
22197
|
icon: 'format-underlined',
|
|
24443
22198
|
eventName: ToolbarEvents.Underline
|
|
24444
|
-
}), _defineProperty
|
|
22199
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.BulletedList, {
|
|
24445
22200
|
icon: 'format-list-bulleted',
|
|
24446
22201
|
eventName: ToolbarEvents.BulletedList,
|
|
24447
22202
|
standalone: true
|
|
24448
|
-
}), _defineProperty
|
|
22203
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.NumberedList, {
|
|
24449
22204
|
icon: 'format-list-numbered',
|
|
24450
22205
|
eventName: ToolbarEvents.NumberedList,
|
|
24451
22206
|
standalone: true
|
|
24452
|
-
}), _defineProperty
|
|
22207
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.HeadingOne, {
|
|
24453
22208
|
icon: 'format-heading1',
|
|
24454
22209
|
eventName: ToolbarEvents.HeadingOne,
|
|
24455
22210
|
standalone: true
|
|
24456
|
-
}), _defineProperty
|
|
22211
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.HeadingTwo, {
|
|
24457
22212
|
icon: 'format-heading2',
|
|
24458
22213
|
eventName: ToolbarEvents.HeadingTwo,
|
|
24459
22214
|
standalone: true
|
|
@@ -24758,7 +22513,7 @@ var scheduler_production_min = {};
|
|
|
24758
22513
|
A = window.requestAnimationFrame,
|
|
24759
22514
|
B = window.cancelAnimationFrame;
|
|
24760
22515
|
"undefined" !== typeof console && ("function" !== typeof A && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"), "function" !== typeof B && console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));
|
|
24761
|
-
if ("object" === _typeof
|
|
22516
|
+
if ("object" === _typeof(w) && "function" === typeof w.now) exports.unstable_now = function () {
|
|
24762
22517
|
return w.now();
|
|
24763
22518
|
};else {
|
|
24764
22519
|
var C = x.now();
|
|
@@ -24995,7 +22750,7 @@ var scheduler_production_min = {};
|
|
|
24995
22750
|
exports.unstable_scheduleCallback = function (a, b, c) {
|
|
24996
22751
|
var d = exports.unstable_now();
|
|
24997
22752
|
|
|
24998
|
-
if ("object" === _typeof
|
|
22753
|
+
if ("object" === _typeof(c) && null !== c) {
|
|
24999
22754
|
var e = c.delay;
|
|
25000
22755
|
e = "number" === typeof e && 0 < e ? d + e : d;
|
|
25001
22756
|
c = "number" === typeof c.timeout ? c.timeout : Z(a);
|
|
@@ -25272,7 +23027,7 @@ function Da(a, b) {
|
|
|
25272
23027
|
}
|
|
25273
23028
|
|
|
25274
23029
|
if (a) return null;
|
|
25275
|
-
if (c && "function" !== typeof c) throw Error(u(231, b, _typeof
|
|
23030
|
+
if (c && "function" !== typeof c) throw Error(u(231, b, _typeof(c)));
|
|
25276
23031
|
return c;
|
|
25277
23032
|
}
|
|
25278
23033
|
|
|
@@ -25301,7 +23056,7 @@ var Fa = /^(.*)[\\\/]/,
|
|
|
25301
23056
|
var Ta = "function" === typeof Symbol && Symbol.iterator;
|
|
25302
23057
|
|
|
25303
23058
|
function Ua(a) {
|
|
25304
|
-
if (null === a || "object" !== _typeof
|
|
23059
|
+
if (null === a || "object" !== _typeof(a)) return null;
|
|
25305
23060
|
a = Ta && a[Ta] || a["@@iterator"];
|
|
25306
23061
|
return "function" === typeof a ? a : null;
|
|
25307
23062
|
}
|
|
@@ -25345,7 +23100,7 @@ function Wa(a) {
|
|
|
25345
23100
|
return "SuspenseList";
|
|
25346
23101
|
}
|
|
25347
23102
|
|
|
25348
|
-
if ("object" === _typeof
|
|
23103
|
+
if ("object" === _typeof(a)) switch (a.$$typeof) {
|
|
25349
23104
|
case Ma:
|
|
25350
23105
|
return "Context.Consumer";
|
|
25351
23106
|
|
|
@@ -25461,7 +23216,7 @@ function pb(a) {
|
|
|
25461
23216
|
function qb(a, b, c, d) {
|
|
25462
23217
|
if (null !== c && 0 === c.type) return !1;
|
|
25463
23218
|
|
|
25464
|
-
switch (_typeof
|
|
23219
|
+
switch (_typeof(b)) {
|
|
25465
23220
|
case "function":
|
|
25466
23221
|
case "symbol":
|
|
25467
23222
|
return !0;
|
|
@@ -25562,7 +23317,7 @@ D.xlinkHref = new B("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xl
|
|
|
25562
23317
|
});
|
|
25563
23318
|
|
|
25564
23319
|
function ub(a) {
|
|
25565
|
-
switch (_typeof
|
|
23320
|
+
switch (_typeof(a)) {
|
|
25566
23321
|
case "boolean":
|
|
25567
23322
|
case "number":
|
|
25568
23323
|
case "object":
|
|
@@ -26968,10 +24723,10 @@ function Yd(a, b) {
|
|
|
26968
24723
|
|
|
26969
24724
|
if (null != b.dangerouslySetInnerHTML) {
|
|
26970
24725
|
if (null != b.children) throw Error(u(60));
|
|
26971
|
-
if (!("object" === _typeof
|
|
24726
|
+
if (!("object" === _typeof(b.dangerouslySetInnerHTML) && "__html" in b.dangerouslySetInnerHTML)) throw Error(u(61));
|
|
26972
24727
|
}
|
|
26973
24728
|
|
|
26974
|
-
if (null != b.style && "object" !== _typeof
|
|
24729
|
+
if (null != b.style && "object" !== _typeof(b.style)) throw Error(u(62, ""));
|
|
26975
24730
|
}
|
|
26976
24731
|
}
|
|
26977
24732
|
|
|
@@ -27100,7 +24855,7 @@ function ne(a, b) {
|
|
|
27100
24855
|
}
|
|
27101
24856
|
|
|
27102
24857
|
function oe(a, b) {
|
|
27103
|
-
return "textarea" === a || "option" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof
|
|
24858
|
+
return "textarea" === a || "option" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof(b.dangerouslySetInnerHTML) && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
|
|
27104
24859
|
}
|
|
27105
24860
|
|
|
27106
24861
|
var pe = "function" === typeof setTimeout ? setTimeout : void 0,
|
|
@@ -27263,7 +25018,7 @@ function Ne(a, b) {
|
|
|
27263
25018
|
|
|
27264
25019
|
function Oe(a) {
|
|
27265
25020
|
a = a.detail;
|
|
27266
|
-
return "object" === _typeof
|
|
25021
|
+
return "object" === _typeof(a) && "data" in a ? a.data : null;
|
|
27267
25022
|
}
|
|
27268
25023
|
|
|
27269
25024
|
var Pe = !1;
|
|
@@ -27566,7 +25321,7 @@ var of = "function" === typeof Object.is ? Object.is : nf,
|
|
|
27566
25321
|
|
|
27567
25322
|
function qf(a, b) {
|
|
27568
25323
|
if (of(a, b)) return !0;
|
|
27569
|
-
if ("object" !== _typeof
|
|
25324
|
+
if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1;
|
|
27570
25325
|
var c = Object.keys(a),
|
|
27571
25326
|
d = Object.keys(b);
|
|
27572
25327
|
if (c.length !== d.length) return !1;
|
|
@@ -28166,7 +25921,7 @@ function Ug(a, b, c) {
|
|
|
28166
25921
|
var d = !1,
|
|
28167
25922
|
e = Cf;
|
|
28168
25923
|
var f = b.contextType;
|
|
28169
|
-
"object" === _typeof
|
|
25924
|
+
"object" === _typeof(f) && null !== f ? f = xg(f) : (e = L(b) ? Df : J.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Ef(a, e) : Cf);
|
|
28170
25925
|
b = new b(c, f);
|
|
28171
25926
|
a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
|
|
28172
25927
|
b.updater = Sg;
|
|
@@ -28189,7 +25944,7 @@ function Wg(a, b, c, d) {
|
|
|
28189
25944
|
e.state = a.memoizedState;
|
|
28190
25945
|
e.refs = Ng;
|
|
28191
25946
|
var f = b.contextType;
|
|
28192
|
-
"object" === _typeof
|
|
25947
|
+
"object" === _typeof(f) && null !== f ? e.context = xg(f) : (f = L(b) ? Df : J.current, e.context = Ef(a, f));
|
|
28193
25948
|
f = a.updateQueue;
|
|
28194
25949
|
null !== f && (Hg(a, f, c, e, d), e.state = a.memoizedState);
|
|
28195
25950
|
f = b.getDerivedStateFromProps;
|
|
@@ -28203,7 +25958,7 @@ var Xg = Array.isArray;
|
|
|
28203
25958
|
function Yg(a, b, c) {
|
|
28204
25959
|
a = c.ref;
|
|
28205
25960
|
|
|
28206
|
-
if (null !== a && "function" !== typeof a && "object" !== _typeof
|
|
25961
|
+
if (null !== a && "function" !== typeof a && "object" !== _typeof(a)) {
|
|
28207
25962
|
if (c._owner) {
|
|
28208
25963
|
c = c._owner;
|
|
28209
25964
|
|
|
@@ -28318,7 +26073,7 @@ function $g(a) {
|
|
|
28318
26073
|
function C(a, b, c) {
|
|
28319
26074
|
if ("string" === typeof b || "number" === typeof b) return b = bh("" + b, a.mode, c), b["return"] = a, b;
|
|
28320
26075
|
|
|
28321
|
-
if ("object" === _typeof
|
|
26076
|
+
if ("object" === _typeof(b) && null !== b) {
|
|
28322
26077
|
switch (b.$$typeof) {
|
|
28323
26078
|
case Ga:
|
|
28324
26079
|
return c = ch(b.type, b.key, b.props, null, a.mode, c), c.ref = Yg(a, null, b), c["return"] = a, c;
|
|
@@ -28338,7 +26093,7 @@ function $g(a) {
|
|
|
28338
26093
|
var e = null !== b ? b.key : null;
|
|
28339
26094
|
if ("string" === typeof c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
|
|
28340
26095
|
|
|
28341
|
-
if ("object" === _typeof
|
|
26096
|
+
if ("object" === _typeof(c) && null !== c) {
|
|
28342
26097
|
switch (c.$$typeof) {
|
|
28343
26098
|
case Ga:
|
|
28344
26099
|
return c.key === e ? c.type === Ia ? m(a, b, c.props.children, d, e) : k(a, b, c, d) : null;
|
|
@@ -28357,7 +26112,7 @@ function $g(a) {
|
|
|
28357
26112
|
function H(a, b, c, d, e) {
|
|
28358
26113
|
if ("string" === typeof d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
|
|
28359
26114
|
|
|
28360
|
-
if ("object" === _typeof
|
|
26115
|
+
if ("object" === _typeof(d) && null !== d) {
|
|
28361
26116
|
switch (d.$$typeof) {
|
|
28362
26117
|
case Ga:
|
|
28363
26118
|
return a = a.get(null === d.key ? c : d.key) || null, d.type === Ia ? m(b, a, d.props.children, e, d.key) : k(b, a, d, e);
|
|
@@ -28453,9 +26208,9 @@ function $g(a) {
|
|
|
28453
26208
|
}
|
|
28454
26209
|
|
|
28455
26210
|
return function (a, d, f, h) {
|
|
28456
|
-
var k = "object" === _typeof
|
|
26211
|
+
var k = "object" === _typeof(f) && null !== f && f.type === Ia && null === f.key;
|
|
28457
26212
|
k && (f = f.props.children);
|
|
28458
|
-
var l = "object" === _typeof
|
|
26213
|
+
var l = "object" === _typeof(f) && null !== f;
|
|
28459
26214
|
if (l) switch (f.$$typeof) {
|
|
28460
26215
|
case Ga:
|
|
28461
26216
|
a: {
|
|
@@ -29260,7 +27015,7 @@ function ui(a, b, c, d, e) {
|
|
|
29260
27015
|
g.props = h;
|
|
29261
27016
|
var k = g.context,
|
|
29262
27017
|
l = c.contextType;
|
|
29263
|
-
"object" === _typeof
|
|
27018
|
+
"object" === _typeof(l) && null !== l ? l = xg(l) : (l = L(c) ? Df : J.current, l = Ef(b, l));
|
|
29264
27019
|
var m = c.getDerivedStateFromProps,
|
|
29265
27020
|
C = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
|
|
29266
27021
|
C || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Vg(b, g, d, l);
|
|
@@ -29270,7 +27025,7 @@ function ui(a, b, c, d, e) {
|
|
|
29270
27025
|
var H = b.updateQueue;
|
|
29271
27026
|
null !== H && (Hg(b, H, d, g, e), k = b.memoizedState);
|
|
29272
27027
|
h !== d || y !== k || K.current || yg ? ("function" === typeof m && (Og(b, c, m, d), k = b.memoizedState), (h = yg || Tg(b, c, h, d, y, k, l)) ? (C || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.effectTag |= 4)) : ("function" === typeof g.componentDidMount && (b.effectTag |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.effectTag |= 4), d = !1);
|
|
29273
|
-
} else g = b.stateNode, h = b.memoizedProps, g.props = b.type === b.elementType ? h : mg(b.type, h), k = g.context, l = c.contextType, "object" === _typeof
|
|
27028
|
+
} else g = b.stateNode, h = b.memoizedProps, g.props = b.type === b.elementType ? h : mg(b.type, h), k = g.context, l = c.contextType, "object" === _typeof(l) && null !== l ? l = xg(l) : (l = L(c) ? Df : J.current, l = Ef(b, l)), m = c.getDerivedStateFromProps, (C = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Vg(b, g, d, l), yg = !1, k = b.memoizedState, y = g.state = k, H = b.updateQueue, null !== H && (Hg(b, H, d, g, e), y = b.memoizedState), h !== d || k !== y || K.current || yg ? ("function" === typeof m && (Og(b, c, m, d), y = b.memoizedState), (m = yg || Tg(b, c, h, d, k, y, l)) ? (C || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, y, l), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, y, l)), "function" === typeof g.componentDidUpdate && (b.effectTag |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), b.memoizedProps = d, b.memoizedState = y), g.props = d, g.state = y, g.context = l, d = m) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), d = !1);
|
|
29274
27029
|
return vi(a, b, c, d, f, e);
|
|
29275
27030
|
}
|
|
29276
27031
|
|
|
@@ -30557,7 +28312,7 @@ function Wj(a, b) {
|
|
|
30557
28312
|
e.effectTag |= 2048;
|
|
30558
28313
|
e.firstEffect = e.lastEffect = null;
|
|
30559
28314
|
|
|
30560
|
-
if (null !== f && "object" === _typeof
|
|
28315
|
+
if (null !== f && "object" === _typeof(f) && "function" === typeof f.then) {
|
|
30561
28316
|
var g = f,
|
|
30562
28317
|
h = 0 !== (M.current & 1),
|
|
30563
28318
|
k = d;
|
|
@@ -31651,7 +29406,7 @@ gk = function gk(a, b, c) {
|
|
|
31651
29406
|
e = Ih(null, b, d, a, e, c);
|
|
31652
29407
|
b.effectTag |= 1;
|
|
31653
29408
|
|
|
31654
|
-
if ("object" === _typeof
|
|
29409
|
+
if ("object" === _typeof(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof) {
|
|
31655
29410
|
b.tag = 1;
|
|
31656
29411
|
Mh();
|
|
31657
29412
|
|
|
@@ -31947,7 +29702,7 @@ function ch(a, b, c, d, e, f) {
|
|
|
31947
29702
|
return a = gi(19, c, b, e), a.elementType = Qa, a.expirationTime = f, a;
|
|
31948
29703
|
|
|
31949
29704
|
default:
|
|
31950
|
-
if ("object" === _typeof
|
|
29705
|
+
if ("object" === _typeof(a) && null !== a) switch (a.$$typeof) {
|
|
31951
29706
|
case La:
|
|
31952
29707
|
g = 10;
|
|
31953
29708
|
break a;
|
|
@@ -31969,7 +29724,7 @@ function ch(a, b, c, d, e, f) {
|
|
|
31969
29724
|
d = null;
|
|
31970
29725
|
break a;
|
|
31971
29726
|
}
|
|
31972
|
-
throw Error(u(130, null == a ? a : _typeof
|
|
29727
|
+
throw Error(u(130, null == a ? a : _typeof(a), ""));
|
|
31973
29728
|
}
|
|
31974
29729
|
b = gi(g, c, b, e);
|
|
31975
29730
|
b.elementType = a;
|
|
@@ -32449,7 +30204,7 @@ function checkDCE() {
|
|
|
32449
30204
|
});
|
|
32450
30205
|
}, r.t = function (e, t) {
|
|
32451
30206
|
if (1 & t && (e = r(e)), 8 & t) return e;
|
|
32452
|
-
if (4 & t && "object" == _typeof
|
|
30207
|
+
if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
|
|
32453
30208
|
var n = Object.create(null);
|
|
32454
30209
|
if (r.r(n), Object.defineProperty(n, "default", {
|
|
32455
30210
|
enumerable: !0,
|
|
@@ -32636,7 +30391,7 @@ function checkDCE() {
|
|
|
32636
30391
|
}, t.parseHotkey = c, t.compareHotkey = u, t.toKeyCode = f, t.toKeyName = d;
|
|
32637
30392
|
}, function (e, t) {
|
|
32638
30393
|
e.exports = function (e) {
|
|
32639
|
-
var t = _typeof
|
|
30394
|
+
var t = _typeof(e);
|
|
32640
30395
|
|
|
32641
30396
|
return null != e && ("object" == t || "function" == t);
|
|
32642
30397
|
};
|
|
@@ -32667,7 +30422,7 @@ function checkDCE() {
|
|
|
32667
30422
|
};
|
|
32668
30423
|
}, function (e, t, r) {
|
|
32669
30424
|
var n = r(11),
|
|
32670
|
-
a = "object" == (typeof self === "undefined" ? "undefined" : _typeof
|
|
30425
|
+
a = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self,
|
|
32671
30426
|
o = n || a || Function("return this")();
|
|
32672
30427
|
e.exports = o;
|
|
32673
30428
|
}, function (e, t, r) {
|
|
@@ -32749,7 +30504,7 @@ function checkDCE() {
|
|
|
32749
30504
|
};
|
|
32750
30505
|
}, function (e, t, r) {
|
|
32751
30506
|
(function (t) {
|
|
32752
|
-
var r = "object" == _typeof
|
|
30507
|
+
var r = "object" == _typeof(t) && t && t.Object === Object && t;
|
|
32753
30508
|
e.exports = r;
|
|
32754
30509
|
}).call(this, r(12));
|
|
32755
30510
|
}, function (e, t) {
|
|
@@ -32762,7 +30517,7 @@ function checkDCE() {
|
|
|
32762
30517
|
try {
|
|
32763
30518
|
r = r || new Function("return this")();
|
|
32764
30519
|
} catch (e) {
|
|
32765
|
-
"object" == (typeof window === "undefined" ? "undefined" : _typeof
|
|
30520
|
+
"object" == (typeof window === "undefined" ? "undefined" : _typeof(window)) && (r = window);
|
|
32766
30521
|
}
|
|
32767
30522
|
|
|
32768
30523
|
e.exports = r;
|
|
@@ -32794,7 +30549,7 @@ function checkDCE() {
|
|
|
32794
30549
|
a = r(18);
|
|
32795
30550
|
|
|
32796
30551
|
e.exports = function (e) {
|
|
32797
|
-
return "symbol" == _typeof
|
|
30552
|
+
return "symbol" == _typeof(e) || a(e) && "[object Symbol]" == n(e);
|
|
32798
30553
|
};
|
|
32799
30554
|
}, function (e, t, r) {
|
|
32800
30555
|
var n = r(7),
|
|
@@ -32832,7 +30587,7 @@ function checkDCE() {
|
|
|
32832
30587
|
};
|
|
32833
30588
|
}, function (e, t) {
|
|
32834
30589
|
e.exports = function (e) {
|
|
32835
|
-
return null != e && "object" == _typeof
|
|
30590
|
+
return null != e && "object" == _typeof(e);
|
|
32836
30591
|
};
|
|
32837
30592
|
}, function (e, t, r) {
|
|
32838
30593
|
|
|
@@ -32921,7 +30676,7 @@ function checkDCE() {
|
|
|
32921
30676
|
|
|
32922
30677
|
function c(e) {
|
|
32923
30678
|
return !!e && (function (e) {
|
|
32924
|
-
if (!e || "object" != _typeof
|
|
30679
|
+
if (!e || "object" != _typeof(e)) return !1;
|
|
32925
30680
|
var t = Object.getPrototypeOf(e);
|
|
32926
30681
|
if (null === t) return !0;
|
|
32927
30682
|
var r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -32931,7 +30686,7 @@ function checkDCE() {
|
|
|
32931
30686
|
|
|
32932
30687
|
function u(e, t, r) {
|
|
32933
30688
|
void 0 === r && (r = !1), 0 === f(e) ? (r ? Object.keys : Z)(e).forEach(function (n) {
|
|
32934
|
-
r && "symbol" == _typeof
|
|
30689
|
+
r && "symbol" == _typeof(n) || t(n, e[n], e);
|
|
32935
30690
|
}) : e.forEach(function (r, n) {
|
|
32936
30691
|
return t(n, r, e);
|
|
32937
30692
|
});
|
|
@@ -33001,7 +30756,7 @@ function checkDCE() {
|
|
|
33001
30756
|
}
|
|
33002
30757
|
|
|
33003
30758
|
function E(e) {
|
|
33004
|
-
return null == e || "object" != _typeof
|
|
30759
|
+
return null == e || "object" != _typeof(e) || Object.isFrozen(e);
|
|
33005
30760
|
}
|
|
33006
30761
|
|
|
33007
30762
|
function x(e) {
|
|
@@ -33164,7 +30919,7 @@ function checkDCE() {
|
|
|
33164
30919
|
|
|
33165
30920
|
var z,
|
|
33166
30921
|
q,
|
|
33167
|
-
V = "undefined" != typeof Symbol && "symbol" == _typeof
|
|
30922
|
+
V = "undefined" != typeof Symbol && "symbol" == _typeof(Symbol("x")),
|
|
33168
30923
|
H = "undefined" != typeof Map,
|
|
33169
30924
|
U = "undefined" != typeof Set,
|
|
33170
30925
|
K = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect,
|
|
@@ -33291,7 +31046,7 @@ function checkDCE() {
|
|
|
33291
31046
|
}) : (k(l, n), A(i, l));
|
|
33292
31047
|
}
|
|
33293
31048
|
|
|
33294
|
-
if (!e || "object" != _typeof
|
|
31049
|
+
if (!e || "object" != _typeof(e)) {
|
|
33295
31050
|
if ((i = r(e)) === J) return;
|
|
33296
31051
|
return void 0 === i && (i = e), t.F && w(i, !0), i;
|
|
33297
31052
|
}
|
|
@@ -33491,11 +31246,11 @@ function checkDCE() {
|
|
|
33491
31246
|
},
|
|
33492
31247
|
addMark: function addMark(t, r) {
|
|
33493
31248
|
var n = e.selection;
|
|
33494
|
-
if (n) if (st.isExpanded(n)) Ft.setNodes(e, _defineProperty
|
|
31249
|
+
if (n) if (st.isExpanded(n)) Ft.setNodes(e, _defineProperty({}, t, r), {
|
|
33495
31250
|
match: vt.isText,
|
|
33496
31251
|
split: !0
|
|
33497
31252
|
});else {
|
|
33498
|
-
var a = ve(ve({}, He.marks(e) || {}), {}, _defineProperty
|
|
31253
|
+
var a = ve(ve({}, He.marks(e) || {}), {}, _defineProperty({}, t, r));
|
|
33499
31254
|
e.marks = a, le.get(e) || e.onChange();
|
|
33500
31255
|
}
|
|
33501
31256
|
},
|
|
@@ -33627,7 +31382,7 @@ function checkDCE() {
|
|
|
33627
31382
|
case "insert_node":
|
|
33628
31383
|
var r = e.node,
|
|
33629
31384
|
n = e.path;
|
|
33630
|
-
return [].concat(_toConsumableArray
|
|
31385
|
+
return [].concat(_toConsumableArray(Ge.levels(n)), _toConsumableArray(vt.isText(r) ? [] : Array.from(Xe.nodes(r), function (e) {
|
|
33631
31386
|
var _e2 = _slicedToArray(e, 2),
|
|
33632
31387
|
t = _e2[1];
|
|
33633
31388
|
|
|
@@ -33636,7 +31391,7 @@ function checkDCE() {
|
|
|
33636
31391
|
|
|
33637
31392
|
case "merge_node":
|
|
33638
31393
|
var a = e.path;
|
|
33639
|
-
return [].concat(_toConsumableArray
|
|
31394
|
+
return [].concat(_toConsumableArray(Ge.ancestors(a)), [Ge.previous(a)]);
|
|
33640
31395
|
|
|
33641
31396
|
case "move_node":
|
|
33642
31397
|
var o = e.path,
|
|
@@ -33682,11 +31437,11 @@ function checkDCE() {
|
|
|
33682
31437
|
|
|
33683
31438
|
case "remove_node":
|
|
33684
31439
|
var g = e.path;
|
|
33685
|
-
return _toConsumableArray
|
|
31440
|
+
return _toConsumableArray(Ge.ancestors(g));
|
|
33686
31441
|
|
|
33687
31442
|
case "split_node":
|
|
33688
31443
|
var m = e.path;
|
|
33689
|
-
return [].concat(_toConsumableArray
|
|
31444
|
+
return [].concat(_toConsumableArray(Ge.levels(m)), [Ge.next(m)]);
|
|
33690
31445
|
|
|
33691
31446
|
default:
|
|
33692
31447
|
return [];
|
|
@@ -37441,7 +35196,7 @@ function checkDCE() {
|
|
|
37441
35196
|
var o = n.anchor,
|
|
37442
35197
|
i = n.focus,
|
|
37443
35198
|
s = "anchor" === a ? o : i;
|
|
37444
|
-
Ft.setSelection(e, _defineProperty
|
|
35199
|
+
Ft.setSelection(e, _defineProperty({}, "anchor" === a ? "anchor" : "focus", Pt(Pt({}, s), t)));
|
|
37445
35200
|
}
|
|
37446
35201
|
},
|
|
37447
35202
|
setSelection: function setSelection(e, t) {
|
|
@@ -37968,7 +35723,7 @@ function checkDCE() {
|
|
|
37968
35723
|
|
|
37969
35724
|
if (vt.isText(b) || vt.isText(w)) throw new Error('Cannot apply a "merge_node" operation at path ['.concat(m, "] to nodes of different interfaces: ").concat(b, " ").concat(w));
|
|
37970
35725
|
|
|
37971
|
-
(_w$children = w.children).push.apply(_w$children, _toConsumableArray
|
|
35726
|
+
(_w$children = w.children).push.apply(_w$children, _toConsumableArray(b.children));
|
|
37972
35727
|
}
|
|
37973
35728
|
|
|
37974
35729
|
if (O.children.splice(E, 1), t) {
|
|
@@ -38206,7 +35961,7 @@ function checkDCE() {
|
|
|
38206
35961
|
Tt = r.n(Mt);
|
|
38207
35962
|
|
|
38208
35963
|
function Rt(e) {
|
|
38209
|
-
return null != e && "object" == _typeof
|
|
35964
|
+
return null != e && "object" == _typeof(e) && 1 === e.nodeType;
|
|
38210
35965
|
}
|
|
38211
35966
|
|
|
38212
35967
|
function It(e, t) {
|
|
@@ -38899,8 +36654,8 @@ function checkDCE() {
|
|
|
38899
36654
|
},
|
|
38900
36655
|
bn = 0;
|
|
38901
36656
|
|
|
38902
|
-
var yn = /*#__PURE__*/_createClass
|
|
38903
|
-
_classCallCheck
|
|
36657
|
+
var yn = /*#__PURE__*/_createClass(function yn() {
|
|
36658
|
+
_classCallCheck(this, yn);
|
|
38904
36659
|
|
|
38905
36660
|
this.id = "".concat(bn++);
|
|
38906
36661
|
});
|
|
@@ -39133,7 +36888,7 @@ function checkDCE() {
|
|
|
39133
36888
|
var v = wn.getWindow(e).document.createRange();
|
|
39134
36889
|
v.setStart(l, 0), v.setEnd(o, i);
|
|
39135
36890
|
var p = v.cloneContents();
|
|
39136
|
-
[].concat(_toConsumableArray
|
|
36891
|
+
[].concat(_toConsumableArray(Array.prototype.slice.call(p.querySelectorAll("[data-slate-zero-width]"))), _toConsumableArray(Array.prototype.slice.call(p.querySelectorAll("[contenteditable=false]")))).forEach(function (e) {
|
|
39137
36892
|
e.parentNode.removeChild(e);
|
|
39138
36893
|
}), c = p.textContent.length, h = l;
|
|
39139
36894
|
} else f && ((d = f.querySelector("[data-slate-leaf]")) ? (l = d.closest('[data-slate-node="text"]'), c = (h = d).textContent.length, h.querySelectorAll("[data-slate-zero-width]").forEach(function (e) {
|
|
@@ -39274,10 +37029,10 @@ function checkDCE() {
|
|
|
39274
37029
|
return r;
|
|
39275
37030
|
}
|
|
39276
37031
|
|
|
39277
|
-
var Pn = /*#__PURE__*/_createClass
|
|
37032
|
+
var Pn = /*#__PURE__*/_createClass(function Pn(e) {
|
|
39278
37033
|
var _this = this;
|
|
39279
37034
|
|
|
39280
|
-
_classCallCheck
|
|
37035
|
+
_classCallCheck(this, Pn);
|
|
39281
37036
|
|
|
39282
37037
|
this.editor = e, this.flush = function (e) {
|
|
39283
37038
|
try {
|
|
@@ -39980,7 +37735,7 @@ function checkDCE() {
|
|
|
39980
37735
|
var _x$push;
|
|
39981
37736
|
|
|
39982
37737
|
var j = He.start(v, []);
|
|
39983
|
-
x.push((_x$push = {}, _defineProperty
|
|
37738
|
+
x.push((_x$push = {}, _defineProperty(_x$push, cr, !0), _defineProperty(_x$push, "placeholder", i), _defineProperty(_x$push, "anchor", j), _defineProperty(_x$push, "focus", j), _x$push));
|
|
39984
37739
|
}
|
|
39985
37740
|
|
|
39986
37741
|
return a.a.createElement(Ur.Provider, {
|
|
@@ -40310,7 +38065,7 @@ function checkDCE() {
|
|
|
40310
38065
|
var _j$push;
|
|
40311
38066
|
|
|
40312
38067
|
var k = He.start(p, []);
|
|
40313
|
-
j.push((_j$push = {}, _defineProperty
|
|
38068
|
+
j.push((_j$push = {}, _defineProperty(_j$push, cr, !0), _defineProperty(_j$push, "placeholder", i), _defineProperty(_j$push, "anchor", k), _defineProperty(_j$push, "focus", k), _j$push));
|
|
40314
38069
|
}
|
|
40315
38070
|
|
|
40316
38071
|
return a.a.createElement(Ur.Provider, {
|
|
@@ -42609,7 +40364,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
42609
40364
|
};
|
|
42610
40365
|
|
|
42611
40366
|
var RichTextEditor$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
42612
|
-
return /*#__PURE__*/React.createElement(RichTextEditor, _extends$
|
|
40367
|
+
return /*#__PURE__*/React.createElement(RichTextEditor, _extends$1({}, props, {
|
|
42613
40368
|
forwardedRef: ref
|
|
42614
40369
|
}));
|
|
42615
40370
|
});
|