@hero-design/rn 7.16.0 → 7.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +176 -2444
- package/lib/index.js +449 -2717
- package/package.json +3 -4
- package/rollup.config.js +2 -0
- package/src/components/DatePicker/DatePickerIOS.tsx +2 -2
- package/src/components/List/StyledBasicListItem.tsx +2 -2
- package/src/components/Select/MultiSelect/Option.tsx +7 -10
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +39 -21
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +342 -203
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +366 -224
- package/src/components/Select/SingleSelect/Option.tsx +2 -11
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +21 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +252 -168
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +294 -196
- package/src/components/Select/StyledSelect.tsx +2 -15
- package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -15
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -54
- package/src/components/TimePicker/TimePickerIOS.tsx +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -2
- package/src/theme/components/select.ts +0 -2
- package/types/components/Select/StyledSelect.d.ts +2 -10
- package/types/theme/components/select.d.ts +0 -2
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,
|
|
@@ -3537,8 +3455,6 @@ var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
|
3537
3455
|
|
|
3538
3456
|
var getSelectTheme = function getSelectTheme(theme) {
|
|
3539
3457
|
var colors = {
|
|
3540
|
-
option: theme.colors.platformBackground,
|
|
3541
|
-
checkedOption: theme.colors.primaryBackground,
|
|
3542
3458
|
footerText: theme.colors.primary
|
|
3543
3459
|
};
|
|
3544
3460
|
var space = {
|
|
@@ -4416,7 +4332,7 @@ var camelize = function camelize(obj) {
|
|
|
4416
4332
|
};
|
|
4417
4333
|
|
|
4418
4334
|
function walk(obj) {
|
|
4419
|
-
if (!obj || _typeof
|
|
4335
|
+
if (!obj || _typeof(obj) !== 'object') return obj;
|
|
4420
4336
|
if (isDate(obj) || isRegex(obj)) return obj;
|
|
4421
4337
|
if (isArray(obj)) return map(obj, walk);
|
|
4422
4338
|
return reduce(objectKeys(obj), function (acc, key) {
|
|
@@ -4781,7 +4697,7 @@ var cssColorKeywords = require$$0;
|
|
|
4781
4697
|
});
|
|
4782
4698
|
|
|
4783
4699
|
function _interopDefault(ex) {
|
|
4784
|
-
return ex && _typeof
|
|
4700
|
+
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
4785
4701
|
}
|
|
4786
4702
|
|
|
4787
4703
|
var parse = lib$1;
|
|
@@ -5630,13 +5546,13 @@ function interleave(vals) {
|
|
|
5630
5546
|
// handleInterpolation function on every css call
|
|
5631
5547
|
|
|
5632
5548
|
|
|
5633
|
-
var styles
|
|
5549
|
+
var styles;
|
|
5634
5550
|
var generated = {};
|
|
5635
5551
|
var buffer = '';
|
|
5636
5552
|
var lastType;
|
|
5637
5553
|
|
|
5638
5554
|
function handleInterpolation(interpolation, i, arr) {
|
|
5639
|
-
var type = _typeof
|
|
5555
|
+
var type = _typeof(interpolation);
|
|
5640
5556
|
|
|
5641
5557
|
if (type === 'string') {
|
|
5642
5558
|
// strip comments
|
|
@@ -5659,7 +5575,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5659
5575
|
var converted = convertStyles(buffer);
|
|
5660
5576
|
|
|
5661
5577
|
if (converted !== undefined) {
|
|
5662
|
-
styles
|
|
5578
|
+
styles.push(converted);
|
|
5663
5579
|
}
|
|
5664
5580
|
|
|
5665
5581
|
buffer = '';
|
|
@@ -5676,7 +5592,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5676
5592
|
var _converted = convertStyles(buffer);
|
|
5677
5593
|
|
|
5678
5594
|
if (_converted !== undefined) {
|
|
5679
|
-
styles
|
|
5595
|
+
styles.push(_converted);
|
|
5680
5596
|
}
|
|
5681
5597
|
|
|
5682
5598
|
buffer = '';
|
|
@@ -5684,7 +5600,7 @@ function handleInterpolation(interpolation, i, arr) {
|
|
|
5684
5600
|
}
|
|
5685
5601
|
|
|
5686
5602
|
if (isRnStyle) {
|
|
5687
|
-
styles
|
|
5603
|
+
styles.push(interpolation);
|
|
5688
5604
|
}
|
|
5689
5605
|
|
|
5690
5606
|
if (Array.isArray(interpolation)) {
|
|
@@ -5703,7 +5619,7 @@ function createCss(StyleSheet) {
|
|
|
5703
5619
|
// this is done so we don't create a new
|
|
5704
5620
|
// handleInterpolation function on every css call
|
|
5705
5621
|
|
|
5706
|
-
styles
|
|
5622
|
+
styles = [];
|
|
5707
5623
|
buffer = '';
|
|
5708
5624
|
lastType = undefined;
|
|
5709
5625
|
|
|
@@ -5723,11 +5639,11 @@ function createCss(StyleSheet) {
|
|
|
5723
5639
|
buffer = prevBuffer;
|
|
5724
5640
|
}
|
|
5725
5641
|
|
|
5726
|
-
var hash = JSON.stringify(styles
|
|
5642
|
+
var hash = JSON.stringify(styles);
|
|
5727
5643
|
|
|
5728
5644
|
if (!generated[hash]) {
|
|
5729
5645
|
var styleSheet = StyleSheet.create({
|
|
5730
|
-
generated: StyleSheet.flatten(styles
|
|
5646
|
+
generated: StyleSheet.flatten(styles)
|
|
5731
5647
|
});
|
|
5732
5648
|
generated[hash] = styleSheet.generated;
|
|
5733
5649
|
}
|
|
@@ -5858,7 +5774,7 @@ var index$6 = components.reduce(function (acc, comp) {
|
|
|
5858
5774
|
enumerable: true,
|
|
5859
5775
|
configurable: false,
|
|
5860
5776
|
get: function get() {
|
|
5861
|
-
return styled(
|
|
5777
|
+
return styled(reactNative[comp]);
|
|
5862
5778
|
}
|
|
5863
5779
|
});
|
|
5864
5780
|
}, styled);
|
|
@@ -5998,9 +5914,9 @@ var Text = function Text(_ref) {
|
|
|
5998
5914
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
5999
5915
|
_ref$intent = _ref.intent,
|
|
6000
5916
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6001
|
-
nativeProps = _objectWithoutProperties
|
|
5917
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
6002
5918
|
|
|
6003
|
-
return /*#__PURE__*/React.createElement(StyledText$3, _extends$
|
|
5919
|
+
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6004
5920
|
themeFontSize: fontSize,
|
|
6005
5921
|
themeFontWeight: fontWeight,
|
|
6006
5922
|
themeIntent: intent
|
|
@@ -6011,1969 +5927,6 @@ var Typography = {
|
|
|
6011
5927
|
Text: Text
|
|
6012
5928
|
};
|
|
6013
5929
|
|
|
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
5930
|
var IcoMoonType = "selection";
|
|
7978
5931
|
var icons = [
|
|
7979
5932
|
{
|
|
@@ -16485,7 +14438,7 @@ var heroIconConfig = {
|
|
|
16485
14438
|
preferences: preferences
|
|
16486
14439
|
};
|
|
16487
14440
|
|
|
16488
|
-
var HeroIcon =
|
|
14441
|
+
var HeroIcon = createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
|
|
16489
14442
|
var COLOR_INTENTS = {
|
|
16490
14443
|
text: 'text',
|
|
16491
14444
|
primary: 'primary',
|
|
@@ -16510,7 +14463,7 @@ var _excluded$e = ["style"];
|
|
|
16510
14463
|
|
|
16511
14464
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
16512
14465
|
var style = _ref.style,
|
|
16513
|
-
otherProps = _objectWithoutProperties
|
|
14466
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
16514
14467
|
|
|
16515
14468
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
16516
14469
|
useEffect(function () {
|
|
@@ -16624,14 +14577,14 @@ var Accordion = function Accordion(_ref) {
|
|
|
16624
14577
|
testID: testID
|
|
16625
14578
|
}, items.map(function (_ref2, index) {
|
|
16626
14579
|
var key = _ref2.key,
|
|
16627
|
-
props = _objectWithoutProperties
|
|
14580
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
16628
14581
|
|
|
16629
14582
|
var open = _activeItemKey === key;
|
|
16630
14583
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16631
14584
|
key: key
|
|
16632
14585
|
}, variant === 'card' && index !== 0 && /*#__PURE__*/React.createElement(Spacer$1, {
|
|
16633
14586
|
testID: "accordion-spacer"
|
|
16634
|
-
}), /*#__PURE__*/React.createElement(AccordionItem, _extends$
|
|
14587
|
+
}), /*#__PURE__*/React.createElement(AccordionItem, _extends$1({}, props, {
|
|
16635
14588
|
open: open,
|
|
16636
14589
|
onPress: function onPress() {
|
|
16637
14590
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -16866,7 +14819,7 @@ var Status = function Status(_ref) {
|
|
|
16866
14819
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
16867
14820
|
style = _ref.style,
|
|
16868
14821
|
testID = _ref.testID,
|
|
16869
|
-
nativeProps = _objectWithoutProperties
|
|
14822
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16870
14823
|
|
|
16871
14824
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
16872
14825
|
opacity = _React$useRef.current;
|
|
@@ -16885,7 +14838,7 @@ var Status = function Status(_ref) {
|
|
|
16885
14838
|
useNativeDriver: true
|
|
16886
14839
|
}).start();
|
|
16887
14840
|
}, [visible, opacity]);
|
|
16888
|
-
return /*#__PURE__*/React.createElement(View, _extends$
|
|
14841
|
+
return /*#__PURE__*/React.createElement(View, _extends$1({}, nativeProps, {
|
|
16889
14842
|
style: style,
|
|
16890
14843
|
testID: testID
|
|
16891
14844
|
}), children, /*#__PURE__*/React.createElement(StyledStatus, {
|
|
@@ -16919,7 +14872,7 @@ var Badge = function Badge(_ref) {
|
|
|
16919
14872
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
16920
14873
|
style = _ref.style,
|
|
16921
14874
|
testID = _ref.testID,
|
|
16922
|
-
nativeProps = _objectWithoutProperties
|
|
14875
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
16923
14876
|
|
|
16924
14877
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
16925
14878
|
opacity = _React$useRef.current;
|
|
@@ -16939,7 +14892,7 @@ var Badge = function Badge(_ref) {
|
|
|
16939
14892
|
}).start();
|
|
16940
14893
|
}, [visible, opacity]);
|
|
16941
14894
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
16942
|
-
return /*#__PURE__*/React.createElement(StyledView$2, _extends$
|
|
14895
|
+
return /*#__PURE__*/React.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
16943
14896
|
themeIntent: intent,
|
|
16944
14897
|
themePadding: getPaddingState(content),
|
|
16945
14898
|
style: [{
|
|
@@ -17028,7 +14981,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
17028
14981
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
17029
14982
|
selectedTabKey = _ref.selectedTabKey,
|
|
17030
14983
|
tabs = _ref.tabs,
|
|
17031
|
-
nativeProps = _objectWithoutProperties
|
|
14984
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
17032
14985
|
|
|
17033
14986
|
var insets = useSafeAreaInsets();
|
|
17034
14987
|
/**
|
|
@@ -17043,7 +14996,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
17043
14996
|
if (!loaded.includes(selectedTabKey)) {
|
|
17044
14997
|
// Set the current tab to be loaded if it was not loaded before
|
|
17045
14998
|
setLoaded(function (loadedState) {
|
|
17046
|
-
return [].concat(_toConsumableArray
|
|
14999
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
17047
15000
|
});
|
|
17048
15001
|
}
|
|
17049
15002
|
|
|
@@ -17126,9 +15079,9 @@ var Divider = function Divider(_ref) {
|
|
|
17126
15079
|
marginVertical = _ref.marginVertical,
|
|
17127
15080
|
style = _ref.style,
|
|
17128
15081
|
testID = _ref.testID,
|
|
17129
|
-
nativeProps = _objectWithoutProperties
|
|
15082
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
17130
15083
|
|
|
17131
|
-
return /*#__PURE__*/React.createElement(StyledDivider, _extends$
|
|
15084
|
+
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
17132
15085
|
themeMarginHorizontal: marginHorizontal,
|
|
17133
15086
|
themeMarginVertical: marginVertical,
|
|
17134
15087
|
style: style,
|
|
@@ -17292,7 +15245,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
17292
15245
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
17293
15246
|
testID = _ref2.testID,
|
|
17294
15247
|
themeVariant = _ref2.themeVariant,
|
|
17295
|
-
nativeProps = _objectWithoutProperties
|
|
15248
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$8);
|
|
17296
15249
|
|
|
17297
15250
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
17298
15251
|
useEffect(function () {
|
|
@@ -17322,7 +15275,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
17322
15275
|
return null;
|
|
17323
15276
|
};
|
|
17324
15277
|
|
|
17325
|
-
return /*#__PURE__*/React.createElement(AnimatedLoadingIndicatorWrapper, _extends$
|
|
15278
|
+
return /*#__PURE__*/React.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
17326
15279
|
testID: testID
|
|
17327
15280
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
17328
15281
|
};
|
|
@@ -17974,7 +15927,7 @@ function toDate(argument) {
|
|
|
17974
15927
|
requiredArgs(1, arguments);
|
|
17975
15928
|
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
17976
15929
|
|
|
17977
|
-
if (argument instanceof Date || _typeof
|
|
15930
|
+
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
17978
15931
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
17979
15932
|
return new Date(argument.getTime());
|
|
17980
15933
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -20540,7 +18493,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
20540
18493
|
var currentYear = visibleDate.getFullYear();
|
|
20541
18494
|
var now = new Date();
|
|
20542
18495
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
20543
|
-
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty
|
|
18496
|
+
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
20544
18497
|
}, {});
|
|
20545
18498
|
var firstDateOfMonth = new Date(currentYear, currentMonth, 1);
|
|
20546
18499
|
var lastDateOfMonth = new Date(currentYear, currentMonth + 1, 0);
|
|
@@ -20646,7 +18599,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
20646
18599
|
var _ref$intent = _ref.intent,
|
|
20647
18600
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
20648
18601
|
children = _ref.children,
|
|
20649
|
-
nativeProps = _objectWithoutProperties
|
|
18602
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
20650
18603
|
|
|
20651
18604
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
20652
18605
|
themeIntent: intent,
|
|
@@ -20688,9 +18641,9 @@ var Card = function Card(_ref) {
|
|
|
20688
18641
|
var _ref$variant = _ref.variant,
|
|
20689
18642
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
20690
18643
|
children = _ref.children,
|
|
20691
|
-
nativeProps = _objectWithoutProperties
|
|
18644
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
20692
18645
|
|
|
20693
|
-
return /*#__PURE__*/React.createElement(StyledCard, _extends$
|
|
18646
|
+
return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
20694
18647
|
themeVariant: variant
|
|
20695
18648
|
}), variant === 'data' && /*#__PURE__*/React.createElement(LeftDataCard, {
|
|
20696
18649
|
testID: "data-card-indicator"
|
|
@@ -20938,7 +18891,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
20938
18891
|
helpText = _ref2.helpText,
|
|
20939
18892
|
value = _ref2.value,
|
|
20940
18893
|
defaultValue = _ref2.defaultValue,
|
|
20941
|
-
nativeProps = _objectWithoutProperties
|
|
18894
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
20942
18895
|
|
|
20943
18896
|
var textInputReference = useRef(null);
|
|
20944
18897
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
@@ -20990,7 +18943,7 @@ var TextInput = function TextInput(_ref2) {
|
|
|
20990
18943
|
themeVariant: variant
|
|
20991
18944
|
}, label)), /*#__PURE__*/React.createElement(StyledTextInput // when input is not editable on Android, the text color is gray
|
|
20992
18945
|
// hence, adding this to make the text color the same as iOS
|
|
20993
|
-
, _extends$
|
|
18946
|
+
, _extends$1({
|
|
20994
18947
|
style: StyleSheet$1.flatten([{
|
|
20995
18948
|
color: theme.__hd__.textInput.colors.text
|
|
20996
18949
|
}, textStyle]),
|
|
@@ -21121,7 +19074,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21121
19074
|
style = _ref.style,
|
|
21122
19075
|
testID = _ref.testID;
|
|
21123
19076
|
|
|
21124
|
-
var _useState = useState(value),
|
|
19077
|
+
var _useState = useState(value || new Date()),
|
|
21125
19078
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21126
19079
|
selectingDate = _useState2[0],
|
|
21127
19080
|
setSelectingDate = _useState2[1];
|
|
@@ -21172,7 +19125,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21172
19125
|
}, confirmLabel))
|
|
21173
19126
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
21174
19127
|
testID: "datePickerIOS",
|
|
21175
|
-
value: selectingDate
|
|
19128
|
+
value: selectingDate,
|
|
21176
19129
|
mode: "date",
|
|
21177
19130
|
onChange: function onChange(_, date) {
|
|
21178
19131
|
if (date) {
|
|
@@ -21383,7 +19336,7 @@ var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
|
21383
19336
|
|
|
21384
19337
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
21385
19338
|
var active = _ref.active,
|
|
21386
|
-
iconProps = _objectWithoutProperties
|
|
19339
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
21387
19340
|
|
|
21388
19341
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
21389
19342
|
useEffect(function () {
|
|
@@ -21563,7 +19516,7 @@ var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
|
|
|
21563
19516
|
return /*#__PURE__*/React.createElement(View, {
|
|
21564
19517
|
style: style
|
|
21565
19518
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp) {
|
|
21566
|
-
return /*#__PURE__*/React.createElement(ActionItem, _extends$
|
|
19519
|
+
return /*#__PURE__*/React.createElement(ActionItem, _extends$1({
|
|
21567
19520
|
key: itemProp.icon
|
|
21568
19521
|
}, itemProp));
|
|
21569
19522
|
}));
|
|
@@ -21781,7 +19734,7 @@ var StyledListItemContainer = index$6(TouchableHighlight)(function (_ref3) {
|
|
|
21781
19734
|
return {
|
|
21782
19735
|
alignItems: 'center',
|
|
21783
19736
|
flexDirection: 'row',
|
|
21784
|
-
backgroundColor: themeSelected ? theme.__hd__.
|
|
19737
|
+
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
21785
19738
|
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
21786
19739
|
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
|
|
21787
19740
|
};
|
|
@@ -22017,7 +19970,7 @@ function PinInput(_ref2) {
|
|
|
22017
19970
|
return /*#__PURE__*/React.createElement(StyledWrapper$3, {
|
|
22018
19971
|
style: style,
|
|
22019
19972
|
testID: testID
|
|
22020
|
-
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray
|
|
19973
|
+
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
22021
19974
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
22022
19975
|
key: index
|
|
22023
19976
|
}, index !== 0 && /*#__PURE__*/React.createElement(StyledSpacer, null), /*#__PURE__*/React.createElement(PinCell, {
|
|
@@ -22123,7 +20076,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
22123
20076
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
22124
20077
|
style = _ref2.style,
|
|
22125
20078
|
testID = _ref2.testID,
|
|
22126
|
-
nativeProps = _objectWithoutProperties
|
|
20079
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$3);
|
|
22127
20080
|
|
|
22128
20081
|
var theme = useTheme$1();
|
|
22129
20082
|
var radius = theme.__hd__.progress.sizes.radius;
|
|
@@ -22161,7 +20114,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
22161
20114
|
outputRange: ['0deg', '360deg'],
|
|
22162
20115
|
extrapolate: 'clamp'
|
|
22163
20116
|
});
|
|
22164
|
-
return /*#__PURE__*/React.createElement(View, _extends$
|
|
20117
|
+
return /*#__PURE__*/React.createElement(View, _extends$1({}, nativeProps, {
|
|
22165
20118
|
testID: testID,
|
|
22166
20119
|
style: style
|
|
22167
20120
|
}), /*#__PURE__*/React.createElement(View, {
|
|
@@ -22249,7 +20202,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
22249
20202
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
22250
20203
|
style = _ref.style,
|
|
22251
20204
|
testID = _ref.testID,
|
|
22252
|
-
nativeProps = _objectWithoutProperties
|
|
20205
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
22253
20206
|
|
|
22254
20207
|
var _useState = useState(0),
|
|
22255
20208
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22277,7 +20230,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
22277
20230
|
outputRange: [999, 0],
|
|
22278
20231
|
extrapolate: 'clamp'
|
|
22279
20232
|
});
|
|
22280
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$2, _extends$
|
|
20233
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
|
|
22281
20234
|
testID: testID,
|
|
22282
20235
|
style: style
|
|
22283
20236
|
}), /*#__PURE__*/React.createElement(StyledInner, {
|
|
@@ -22399,7 +20352,7 @@ var _excluded$1 = ["testID"];
|
|
|
22399
20352
|
|
|
22400
20353
|
var Spinner = function Spinner(_ref) {
|
|
22401
20354
|
var testID = _ref.testID,
|
|
22402
|
-
nativeProps = _objectWithoutProperties
|
|
20355
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
22403
20356
|
|
|
22404
20357
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
22405
20358
|
testID: testID
|
|
@@ -22580,32 +20533,20 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
22580
20533
|
}, text)), rightChildren);
|
|
22581
20534
|
};
|
|
22582
20535
|
|
|
22583
|
-
|
|
22584
|
-
var theme = _ref.theme
|
|
22585
|
-
themeSelected = _ref.themeSelected;
|
|
22586
|
-
return {
|
|
22587
|
-
flexDirection: 'row',
|
|
22588
|
-
justifyContent: 'space-between',
|
|
22589
|
-
alignItems: 'center',
|
|
22590
|
-
borderRadius: theme.__hd__.select.radii.option,
|
|
22591
|
-
padding: theme.__hd__.select.space.optionPadding,
|
|
22592
|
-
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
|
|
22593
|
-
};
|
|
22594
|
-
});
|
|
22595
|
-
index$6(View)(function (_ref2) {
|
|
22596
|
-
var theme = _ref2.theme;
|
|
20536
|
+
index$6(View)(function (_ref) {
|
|
20537
|
+
var theme = _ref.theme;
|
|
22597
20538
|
return {
|
|
22598
20539
|
marginTop: theme.__hd__.select.space.optionListSpacing
|
|
22599
20540
|
};
|
|
22600
20541
|
});
|
|
22601
|
-
var FooterText = index$6(Typography.Text)(function (
|
|
22602
|
-
var theme =
|
|
20542
|
+
var FooterText = index$6(Typography.Text)(function (_ref2) {
|
|
20543
|
+
var theme = _ref2.theme;
|
|
22603
20544
|
return {
|
|
22604
20545
|
color: theme.__hd__.select.colors.footerText
|
|
22605
20546
|
};
|
|
22606
20547
|
});
|
|
22607
|
-
var StyledSearchBar = index$6(View)(function (
|
|
22608
|
-
var theme =
|
|
20548
|
+
var StyledSearchBar = index$6(View)(function (_ref3) {
|
|
20549
|
+
var theme = _ref3.theme;
|
|
22609
20550
|
return {
|
|
22610
20551
|
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
22611
20552
|
paddingHorizontal: theme.__hd__.select.space.searchBarHorizontalSpacing,
|
|
@@ -22703,19 +20644,15 @@ var Option$1 = function Option(_ref) {
|
|
|
22703
20644
|
var text = _ref.text,
|
|
22704
20645
|
selected = _ref.selected,
|
|
22705
20646
|
onPress = _ref.onPress;
|
|
22706
|
-
return /*#__PURE__*/React.createElement(
|
|
22707
|
-
|
|
22708
|
-
onPress: onPress
|
|
22709
|
-
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
-
|
|
22714
|
-
|
|
22715
|
-
}, text)), selected && /*#__PURE__*/React.createElement(Icon, {
|
|
22716
|
-
icon: "checkmark",
|
|
22717
|
-
size: "small"
|
|
22718
|
-
}));
|
|
20647
|
+
return /*#__PURE__*/React.createElement(List.BasicItem, {
|
|
20648
|
+
selected: selected,
|
|
20649
|
+
onPress: onPress,
|
|
20650
|
+
title: text,
|
|
20651
|
+
suffix: selected ? /*#__PURE__*/React.createElement(Icon, {
|
|
20652
|
+
icon: "checkmark",
|
|
20653
|
+
size: "small"
|
|
20654
|
+
}) : undefined
|
|
20655
|
+
});
|
|
22719
20656
|
};
|
|
22720
20657
|
|
|
22721
20658
|
var OptionList$1 = function OptionList(_ref) {
|
|
@@ -22742,7 +20679,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
22742
20679
|
return val !== item.value;
|
|
22743
20680
|
}));
|
|
22744
20681
|
} else {
|
|
22745
|
-
_onPress([].concat(_toConsumableArray
|
|
20682
|
+
_onPress([].concat(_toConsumableArray(value), [item.value]));
|
|
22746
20683
|
}
|
|
22747
20684
|
}
|
|
22748
20685
|
});
|
|
@@ -22874,16 +20811,11 @@ var Option = function Option(_ref) {
|
|
|
22874
20811
|
var text = _ref.text,
|
|
22875
20812
|
selected = _ref.selected,
|
|
22876
20813
|
onPress = _ref.onPress;
|
|
22877
|
-
return /*#__PURE__*/React.createElement(
|
|
22878
|
-
|
|
22879
|
-
onPress: onPress
|
|
22880
|
-
|
|
22881
|
-
|
|
22882
|
-
flex: 1
|
|
22883
|
-
}
|
|
22884
|
-
}, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
22885
|
-
fontSize: "large"
|
|
22886
|
-
}, text)));
|
|
20814
|
+
return /*#__PURE__*/React.createElement(List.BasicItem, {
|
|
20815
|
+
selected: selected,
|
|
20816
|
+
onPress: onPress,
|
|
20817
|
+
title: text
|
|
20818
|
+
});
|
|
22887
20819
|
};
|
|
22888
20820
|
|
|
22889
20821
|
var OptionList = function OptionList(_ref) {
|
|
@@ -23127,206 +21059,6 @@ var Switch = function Switch(_ref) {
|
|
|
23127
21059
|
}))));
|
|
23128
21060
|
};
|
|
23129
21061
|
|
|
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
21062
|
var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
|
|
23331
21063
|
var TabContainer$1 = index$6(View)({
|
|
23332
21064
|
flex: 1,
|
|
@@ -23510,7 +21242,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
23510
21242
|
});
|
|
23511
21243
|
}
|
|
23512
21244
|
|
|
23513
|
-
var animation = Animated.parallel(_toConsumableArray
|
|
21245
|
+
var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
23514
21246
|
return Animated.timing(tabsAnims[i], {
|
|
23515
21247
|
toValue: i === selectedTabIndex ? 1 : 0,
|
|
23516
21248
|
duration: 150,
|
|
@@ -23789,9 +21521,9 @@ var Tag = function Tag(_ref) {
|
|
|
23789
21521
|
intent = _ref$intent === void 0 ? 'default' : _ref$intent,
|
|
23790
21522
|
style = _ref.style,
|
|
23791
21523
|
testID = _ref.testID,
|
|
23792
|
-
nativeProps = _objectWithoutProperties
|
|
21524
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
23793
21525
|
|
|
23794
|
-
return /*#__PURE__*/React.createElement(StyledView, _extends$
|
|
21526
|
+
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
23795
21527
|
themeIntent: intent,
|
|
23796
21528
|
style: style,
|
|
23797
21529
|
testID: testID
|
|
@@ -23881,7 +21613,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
23881
21613
|
style = _ref.style,
|
|
23882
21614
|
testID = _ref.testID;
|
|
23883
21615
|
|
|
23884
|
-
var _useState = useState(value),
|
|
21616
|
+
var _useState = useState(value || new Date()),
|
|
23885
21617
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23886
21618
|
selectingDate = _useState2[0],
|
|
23887
21619
|
setSelectingDate = _useState2[1];
|
|
@@ -23933,7 +21665,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
23933
21665
|
}, confirmLabel))
|
|
23934
21666
|
}, /*#__PURE__*/React.createElement(StyledPickerWrapper, null, /*#__PURE__*/React.createElement(DateTimePicker, {
|
|
23935
21667
|
testID: "timePickerIOS",
|
|
23936
|
-
value: selectingDate
|
|
21668
|
+
value: selectingDate,
|
|
23937
21669
|
mode: "time" // Current prop is24Hour config only available for Android.
|
|
23938
21670
|
// This is a work around to get the picker to display 24 hour format for iOS.
|
|
23939
21671
|
,
|
|
@@ -24120,7 +21852,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
24120
21852
|
setToastList = _ref.setToastList;
|
|
24121
21853
|
var theme = useTheme$1();
|
|
24122
21854
|
var toast = toastList[toastList.length - 1];
|
|
24123
|
-
return toast ? /*#__PURE__*/React.createElement(Toast$1, _extends$
|
|
21855
|
+
return toast ? /*#__PURE__*/React.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
24124
21856
|
key: toast.id,
|
|
24125
21857
|
style: {
|
|
24126
21858
|
marginBottom: theme.space.small
|
|
@@ -24159,7 +21891,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
24159
21891
|
props: props
|
|
24160
21892
|
};
|
|
24161
21893
|
setToastList(function (state) {
|
|
24162
|
-
return [item].concat(_toConsumableArray
|
|
21894
|
+
return [item].concat(_toConsumableArray(state));
|
|
24163
21895
|
});
|
|
24164
21896
|
return item.id;
|
|
24165
21897
|
},
|
|
@@ -24185,7 +21917,7 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
24185
21917
|
}) : toastList.map(function (_ref3) {
|
|
24186
21918
|
var id = _ref3.id,
|
|
24187
21919
|
props = _ref3.props;
|
|
24188
|
-
return /*#__PURE__*/React.createElement(Toast$1, _extends$
|
|
21920
|
+
return /*#__PURE__*/React.createElement(Toast$1, _extends$1({}, props, {
|
|
24189
21921
|
key: id,
|
|
24190
21922
|
style: {
|
|
24191
21923
|
marginBottom: theme.space.small
|
|
@@ -24432,28 +22164,28 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
24432
22164
|
}));
|
|
24433
22165
|
};
|
|
24434
22166
|
|
|
24435
|
-
var buttonConfigs = (_buttonConfigs = {}, _defineProperty
|
|
22167
|
+
var buttonConfigs = (_buttonConfigs = {}, _defineProperty(_buttonConfigs, ToolbarButtonName.Bold, {
|
|
24436
22168
|
icon: 'format-bold',
|
|
24437
22169
|
eventName: ToolbarEvents.Bold
|
|
24438
|
-
}), _defineProperty
|
|
22170
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.Italic, {
|
|
24439
22171
|
icon: 'format-italic',
|
|
24440
22172
|
eventName: ToolbarEvents.Italic
|
|
24441
|
-
}), _defineProperty
|
|
22173
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.Underline, {
|
|
24442
22174
|
icon: 'format-underlined',
|
|
24443
22175
|
eventName: ToolbarEvents.Underline
|
|
24444
|
-
}), _defineProperty
|
|
22176
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.BulletedList, {
|
|
24445
22177
|
icon: 'format-list-bulleted',
|
|
24446
22178
|
eventName: ToolbarEvents.BulletedList,
|
|
24447
22179
|
standalone: true
|
|
24448
|
-
}), _defineProperty
|
|
22180
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.NumberedList, {
|
|
24449
22181
|
icon: 'format-list-numbered',
|
|
24450
22182
|
eventName: ToolbarEvents.NumberedList,
|
|
24451
22183
|
standalone: true
|
|
24452
|
-
}), _defineProperty
|
|
22184
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.HeadingOne, {
|
|
24453
22185
|
icon: 'format-heading1',
|
|
24454
22186
|
eventName: ToolbarEvents.HeadingOne,
|
|
24455
22187
|
standalone: true
|
|
24456
|
-
}), _defineProperty
|
|
22188
|
+
}), _defineProperty(_buttonConfigs, ToolbarButtonName.HeadingTwo, {
|
|
24457
22189
|
icon: 'format-heading2',
|
|
24458
22190
|
eventName: ToolbarEvents.HeadingTwo,
|
|
24459
22191
|
standalone: true
|
|
@@ -24758,7 +22490,7 @@ var scheduler_production_min = {};
|
|
|
24758
22490
|
A = window.requestAnimationFrame,
|
|
24759
22491
|
B = window.cancelAnimationFrame;
|
|
24760
22492
|
"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
|
|
22493
|
+
if ("object" === _typeof(w) && "function" === typeof w.now) exports.unstable_now = function () {
|
|
24762
22494
|
return w.now();
|
|
24763
22495
|
};else {
|
|
24764
22496
|
var C = x.now();
|
|
@@ -24995,7 +22727,7 @@ var scheduler_production_min = {};
|
|
|
24995
22727
|
exports.unstable_scheduleCallback = function (a, b, c) {
|
|
24996
22728
|
var d = exports.unstable_now();
|
|
24997
22729
|
|
|
24998
|
-
if ("object" === _typeof
|
|
22730
|
+
if ("object" === _typeof(c) && null !== c) {
|
|
24999
22731
|
var e = c.delay;
|
|
25000
22732
|
e = "number" === typeof e && 0 < e ? d + e : d;
|
|
25001
22733
|
c = "number" === typeof c.timeout ? c.timeout : Z(a);
|
|
@@ -25272,7 +23004,7 @@ function Da(a, b) {
|
|
|
25272
23004
|
}
|
|
25273
23005
|
|
|
25274
23006
|
if (a) return null;
|
|
25275
|
-
if (c && "function" !== typeof c) throw Error(u(231, b, _typeof
|
|
23007
|
+
if (c && "function" !== typeof c) throw Error(u(231, b, _typeof(c)));
|
|
25276
23008
|
return c;
|
|
25277
23009
|
}
|
|
25278
23010
|
|
|
@@ -25301,7 +23033,7 @@ var Fa = /^(.*)[\\\/]/,
|
|
|
25301
23033
|
var Ta = "function" === typeof Symbol && Symbol.iterator;
|
|
25302
23034
|
|
|
25303
23035
|
function Ua(a) {
|
|
25304
|
-
if (null === a || "object" !== _typeof
|
|
23036
|
+
if (null === a || "object" !== _typeof(a)) return null;
|
|
25305
23037
|
a = Ta && a[Ta] || a["@@iterator"];
|
|
25306
23038
|
return "function" === typeof a ? a : null;
|
|
25307
23039
|
}
|
|
@@ -25345,7 +23077,7 @@ function Wa(a) {
|
|
|
25345
23077
|
return "SuspenseList";
|
|
25346
23078
|
}
|
|
25347
23079
|
|
|
25348
|
-
if ("object" === _typeof
|
|
23080
|
+
if ("object" === _typeof(a)) switch (a.$$typeof) {
|
|
25349
23081
|
case Ma:
|
|
25350
23082
|
return "Context.Consumer";
|
|
25351
23083
|
|
|
@@ -25461,7 +23193,7 @@ function pb(a) {
|
|
|
25461
23193
|
function qb(a, b, c, d) {
|
|
25462
23194
|
if (null !== c && 0 === c.type) return !1;
|
|
25463
23195
|
|
|
25464
|
-
switch (_typeof
|
|
23196
|
+
switch (_typeof(b)) {
|
|
25465
23197
|
case "function":
|
|
25466
23198
|
case "symbol":
|
|
25467
23199
|
return !0;
|
|
@@ -25562,7 +23294,7 @@ D.xlinkHref = new B("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xl
|
|
|
25562
23294
|
});
|
|
25563
23295
|
|
|
25564
23296
|
function ub(a) {
|
|
25565
|
-
switch (_typeof
|
|
23297
|
+
switch (_typeof(a)) {
|
|
25566
23298
|
case "boolean":
|
|
25567
23299
|
case "number":
|
|
25568
23300
|
case "object":
|
|
@@ -26968,10 +24700,10 @@ function Yd(a, b) {
|
|
|
26968
24700
|
|
|
26969
24701
|
if (null != b.dangerouslySetInnerHTML) {
|
|
26970
24702
|
if (null != b.children) throw Error(u(60));
|
|
26971
|
-
if (!("object" === _typeof
|
|
24703
|
+
if (!("object" === _typeof(b.dangerouslySetInnerHTML) && "__html" in b.dangerouslySetInnerHTML)) throw Error(u(61));
|
|
26972
24704
|
}
|
|
26973
24705
|
|
|
26974
|
-
if (null != b.style && "object" !== _typeof
|
|
24706
|
+
if (null != b.style && "object" !== _typeof(b.style)) throw Error(u(62, ""));
|
|
26975
24707
|
}
|
|
26976
24708
|
}
|
|
26977
24709
|
|
|
@@ -27100,7 +24832,7 @@ function ne(a, b) {
|
|
|
27100
24832
|
}
|
|
27101
24833
|
|
|
27102
24834
|
function oe(a, b) {
|
|
27103
|
-
return "textarea" === a || "option" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === _typeof
|
|
24835
|
+
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
24836
|
}
|
|
27105
24837
|
|
|
27106
24838
|
var pe = "function" === typeof setTimeout ? setTimeout : void 0,
|
|
@@ -27263,7 +24995,7 @@ function Ne(a, b) {
|
|
|
27263
24995
|
|
|
27264
24996
|
function Oe(a) {
|
|
27265
24997
|
a = a.detail;
|
|
27266
|
-
return "object" === _typeof
|
|
24998
|
+
return "object" === _typeof(a) && "data" in a ? a.data : null;
|
|
27267
24999
|
}
|
|
27268
25000
|
|
|
27269
25001
|
var Pe = !1;
|
|
@@ -27566,7 +25298,7 @@ var of = "function" === typeof Object.is ? Object.is : nf,
|
|
|
27566
25298
|
|
|
27567
25299
|
function qf(a, b) {
|
|
27568
25300
|
if (of(a, b)) return !0;
|
|
27569
|
-
if ("object" !== _typeof
|
|
25301
|
+
if ("object" !== _typeof(a) || null === a || "object" !== _typeof(b) || null === b) return !1;
|
|
27570
25302
|
var c = Object.keys(a),
|
|
27571
25303
|
d = Object.keys(b);
|
|
27572
25304
|
if (c.length !== d.length) return !1;
|
|
@@ -28166,7 +25898,7 @@ function Ug(a, b, c) {
|
|
|
28166
25898
|
var d = !1,
|
|
28167
25899
|
e = Cf;
|
|
28168
25900
|
var f = b.contextType;
|
|
28169
|
-
"object" === _typeof
|
|
25901
|
+
"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
25902
|
b = new b(c, f);
|
|
28171
25903
|
a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
|
|
28172
25904
|
b.updater = Sg;
|
|
@@ -28189,7 +25921,7 @@ function Wg(a, b, c, d) {
|
|
|
28189
25921
|
e.state = a.memoizedState;
|
|
28190
25922
|
e.refs = Ng;
|
|
28191
25923
|
var f = b.contextType;
|
|
28192
|
-
"object" === _typeof
|
|
25924
|
+
"object" === _typeof(f) && null !== f ? e.context = xg(f) : (f = L(b) ? Df : J.current, e.context = Ef(a, f));
|
|
28193
25925
|
f = a.updateQueue;
|
|
28194
25926
|
null !== f && (Hg(a, f, c, e, d), e.state = a.memoizedState);
|
|
28195
25927
|
f = b.getDerivedStateFromProps;
|
|
@@ -28203,7 +25935,7 @@ var Xg = Array.isArray;
|
|
|
28203
25935
|
function Yg(a, b, c) {
|
|
28204
25936
|
a = c.ref;
|
|
28205
25937
|
|
|
28206
|
-
if (null !== a && "function" !== typeof a && "object" !== _typeof
|
|
25938
|
+
if (null !== a && "function" !== typeof a && "object" !== _typeof(a)) {
|
|
28207
25939
|
if (c._owner) {
|
|
28208
25940
|
c = c._owner;
|
|
28209
25941
|
|
|
@@ -28318,7 +26050,7 @@ function $g(a) {
|
|
|
28318
26050
|
function C(a, b, c) {
|
|
28319
26051
|
if ("string" === typeof b || "number" === typeof b) return b = bh("" + b, a.mode, c), b["return"] = a, b;
|
|
28320
26052
|
|
|
28321
|
-
if ("object" === _typeof
|
|
26053
|
+
if ("object" === _typeof(b) && null !== b) {
|
|
28322
26054
|
switch (b.$$typeof) {
|
|
28323
26055
|
case Ga:
|
|
28324
26056
|
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 +26070,7 @@ function $g(a) {
|
|
|
28338
26070
|
var e = null !== b ? b.key : null;
|
|
28339
26071
|
if ("string" === typeof c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
|
|
28340
26072
|
|
|
28341
|
-
if ("object" === _typeof
|
|
26073
|
+
if ("object" === _typeof(c) && null !== c) {
|
|
28342
26074
|
switch (c.$$typeof) {
|
|
28343
26075
|
case Ga:
|
|
28344
26076
|
return c.key === e ? c.type === Ia ? m(a, b, c.props.children, d, e) : k(a, b, c, d) : null;
|
|
@@ -28357,7 +26089,7 @@ function $g(a) {
|
|
|
28357
26089
|
function H(a, b, c, d, e) {
|
|
28358
26090
|
if ("string" === typeof d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
|
|
28359
26091
|
|
|
28360
|
-
if ("object" === _typeof
|
|
26092
|
+
if ("object" === _typeof(d) && null !== d) {
|
|
28361
26093
|
switch (d.$$typeof) {
|
|
28362
26094
|
case Ga:
|
|
28363
26095
|
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 +26185,9 @@ function $g(a) {
|
|
|
28453
26185
|
}
|
|
28454
26186
|
|
|
28455
26187
|
return function (a, d, f, h) {
|
|
28456
|
-
var k = "object" === _typeof
|
|
26188
|
+
var k = "object" === _typeof(f) && null !== f && f.type === Ia && null === f.key;
|
|
28457
26189
|
k && (f = f.props.children);
|
|
28458
|
-
var l = "object" === _typeof
|
|
26190
|
+
var l = "object" === _typeof(f) && null !== f;
|
|
28459
26191
|
if (l) switch (f.$$typeof) {
|
|
28460
26192
|
case Ga:
|
|
28461
26193
|
a: {
|
|
@@ -29260,7 +26992,7 @@ function ui(a, b, c, d, e) {
|
|
|
29260
26992
|
g.props = h;
|
|
29261
26993
|
var k = g.context,
|
|
29262
26994
|
l = c.contextType;
|
|
29263
|
-
"object" === _typeof
|
|
26995
|
+
"object" === _typeof(l) && null !== l ? l = xg(l) : (l = L(c) ? Df : J.current, l = Ef(b, l));
|
|
29264
26996
|
var m = c.getDerivedStateFromProps,
|
|
29265
26997
|
C = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
|
|
29266
26998
|
C || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Vg(b, g, d, l);
|
|
@@ -29270,7 +27002,7 @@ function ui(a, b, c, d, e) {
|
|
|
29270
27002
|
var H = b.updateQueue;
|
|
29271
27003
|
null !== H && (Hg(b, H, d, g, e), k = b.memoizedState);
|
|
29272
27004
|
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
|
|
27005
|
+
} 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
27006
|
return vi(a, b, c, d, f, e);
|
|
29275
27007
|
}
|
|
29276
27008
|
|
|
@@ -30557,7 +28289,7 @@ function Wj(a, b) {
|
|
|
30557
28289
|
e.effectTag |= 2048;
|
|
30558
28290
|
e.firstEffect = e.lastEffect = null;
|
|
30559
28291
|
|
|
30560
|
-
if (null !== f && "object" === _typeof
|
|
28292
|
+
if (null !== f && "object" === _typeof(f) && "function" === typeof f.then) {
|
|
30561
28293
|
var g = f,
|
|
30562
28294
|
h = 0 !== (M.current & 1),
|
|
30563
28295
|
k = d;
|
|
@@ -31651,7 +29383,7 @@ gk = function gk(a, b, c) {
|
|
|
31651
29383
|
e = Ih(null, b, d, a, e, c);
|
|
31652
29384
|
b.effectTag |= 1;
|
|
31653
29385
|
|
|
31654
|
-
if ("object" === _typeof
|
|
29386
|
+
if ("object" === _typeof(e) && null !== e && "function" === typeof e.render && void 0 === e.$$typeof) {
|
|
31655
29387
|
b.tag = 1;
|
|
31656
29388
|
Mh();
|
|
31657
29389
|
|
|
@@ -31947,7 +29679,7 @@ function ch(a, b, c, d, e, f) {
|
|
|
31947
29679
|
return a = gi(19, c, b, e), a.elementType = Qa, a.expirationTime = f, a;
|
|
31948
29680
|
|
|
31949
29681
|
default:
|
|
31950
|
-
if ("object" === _typeof
|
|
29682
|
+
if ("object" === _typeof(a) && null !== a) switch (a.$$typeof) {
|
|
31951
29683
|
case La:
|
|
31952
29684
|
g = 10;
|
|
31953
29685
|
break a;
|
|
@@ -31969,7 +29701,7 @@ function ch(a, b, c, d, e, f) {
|
|
|
31969
29701
|
d = null;
|
|
31970
29702
|
break a;
|
|
31971
29703
|
}
|
|
31972
|
-
throw Error(u(130, null == a ? a : _typeof
|
|
29704
|
+
throw Error(u(130, null == a ? a : _typeof(a), ""));
|
|
31973
29705
|
}
|
|
31974
29706
|
b = gi(g, c, b, e);
|
|
31975
29707
|
b.elementType = a;
|
|
@@ -32449,7 +30181,7 @@ function checkDCE() {
|
|
|
32449
30181
|
});
|
|
32450
30182
|
}, r.t = function (e, t) {
|
|
32451
30183
|
if (1 & t && (e = r(e)), 8 & t) return e;
|
|
32452
|
-
if (4 & t && "object" == _typeof
|
|
30184
|
+
if (4 & t && "object" == _typeof(e) && e && e.__esModule) return e;
|
|
32453
30185
|
var n = Object.create(null);
|
|
32454
30186
|
if (r.r(n), Object.defineProperty(n, "default", {
|
|
32455
30187
|
enumerable: !0,
|
|
@@ -32636,7 +30368,7 @@ function checkDCE() {
|
|
|
32636
30368
|
}, t.parseHotkey = c, t.compareHotkey = u, t.toKeyCode = f, t.toKeyName = d;
|
|
32637
30369
|
}, function (e, t) {
|
|
32638
30370
|
e.exports = function (e) {
|
|
32639
|
-
var t = _typeof
|
|
30371
|
+
var t = _typeof(e);
|
|
32640
30372
|
|
|
32641
30373
|
return null != e && ("object" == t || "function" == t);
|
|
32642
30374
|
};
|
|
@@ -32667,7 +30399,7 @@ function checkDCE() {
|
|
|
32667
30399
|
};
|
|
32668
30400
|
}, function (e, t, r) {
|
|
32669
30401
|
var n = r(11),
|
|
32670
|
-
a = "object" == (typeof self === "undefined" ? "undefined" : _typeof
|
|
30402
|
+
a = "object" == (typeof self === "undefined" ? "undefined" : _typeof(self)) && self && self.Object === Object && self,
|
|
32671
30403
|
o = n || a || Function("return this")();
|
|
32672
30404
|
e.exports = o;
|
|
32673
30405
|
}, function (e, t, r) {
|
|
@@ -32749,7 +30481,7 @@ function checkDCE() {
|
|
|
32749
30481
|
};
|
|
32750
30482
|
}, function (e, t, r) {
|
|
32751
30483
|
(function (t) {
|
|
32752
|
-
var r = "object" == _typeof
|
|
30484
|
+
var r = "object" == _typeof(t) && t && t.Object === Object && t;
|
|
32753
30485
|
e.exports = r;
|
|
32754
30486
|
}).call(this, r(12));
|
|
32755
30487
|
}, function (e, t) {
|
|
@@ -32762,7 +30494,7 @@ function checkDCE() {
|
|
|
32762
30494
|
try {
|
|
32763
30495
|
r = r || new Function("return this")();
|
|
32764
30496
|
} catch (e) {
|
|
32765
|
-
"object" == (typeof window === "undefined" ? "undefined" : _typeof
|
|
30497
|
+
"object" == (typeof window === "undefined" ? "undefined" : _typeof(window)) && (r = window);
|
|
32766
30498
|
}
|
|
32767
30499
|
|
|
32768
30500
|
e.exports = r;
|
|
@@ -32794,7 +30526,7 @@ function checkDCE() {
|
|
|
32794
30526
|
a = r(18);
|
|
32795
30527
|
|
|
32796
30528
|
e.exports = function (e) {
|
|
32797
|
-
return "symbol" == _typeof
|
|
30529
|
+
return "symbol" == _typeof(e) || a(e) && "[object Symbol]" == n(e);
|
|
32798
30530
|
};
|
|
32799
30531
|
}, function (e, t, r) {
|
|
32800
30532
|
var n = r(7),
|
|
@@ -32832,7 +30564,7 @@ function checkDCE() {
|
|
|
32832
30564
|
};
|
|
32833
30565
|
}, function (e, t) {
|
|
32834
30566
|
e.exports = function (e) {
|
|
32835
|
-
return null != e && "object" == _typeof
|
|
30567
|
+
return null != e && "object" == _typeof(e);
|
|
32836
30568
|
};
|
|
32837
30569
|
}, function (e, t, r) {
|
|
32838
30570
|
|
|
@@ -32921,7 +30653,7 @@ function checkDCE() {
|
|
|
32921
30653
|
|
|
32922
30654
|
function c(e) {
|
|
32923
30655
|
return !!e && (function (e) {
|
|
32924
|
-
if (!e || "object" != _typeof
|
|
30656
|
+
if (!e || "object" != _typeof(e)) return !1;
|
|
32925
30657
|
var t = Object.getPrototypeOf(e);
|
|
32926
30658
|
if (null === t) return !0;
|
|
32927
30659
|
var r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -32931,7 +30663,7 @@ function checkDCE() {
|
|
|
32931
30663
|
|
|
32932
30664
|
function u(e, t, r) {
|
|
32933
30665
|
void 0 === r && (r = !1), 0 === f(e) ? (r ? Object.keys : Z)(e).forEach(function (n) {
|
|
32934
|
-
r && "symbol" == _typeof
|
|
30666
|
+
r && "symbol" == _typeof(n) || t(n, e[n], e);
|
|
32935
30667
|
}) : e.forEach(function (r, n) {
|
|
32936
30668
|
return t(n, r, e);
|
|
32937
30669
|
});
|
|
@@ -33001,7 +30733,7 @@ function checkDCE() {
|
|
|
33001
30733
|
}
|
|
33002
30734
|
|
|
33003
30735
|
function E(e) {
|
|
33004
|
-
return null == e || "object" != _typeof
|
|
30736
|
+
return null == e || "object" != _typeof(e) || Object.isFrozen(e);
|
|
33005
30737
|
}
|
|
33006
30738
|
|
|
33007
30739
|
function x(e) {
|
|
@@ -33164,7 +30896,7 @@ function checkDCE() {
|
|
|
33164
30896
|
|
|
33165
30897
|
var z,
|
|
33166
30898
|
q,
|
|
33167
|
-
V = "undefined" != typeof Symbol && "symbol" == _typeof
|
|
30899
|
+
V = "undefined" != typeof Symbol && "symbol" == _typeof(Symbol("x")),
|
|
33168
30900
|
H = "undefined" != typeof Map,
|
|
33169
30901
|
U = "undefined" != typeof Set,
|
|
33170
30902
|
K = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect,
|
|
@@ -33291,7 +31023,7 @@ function checkDCE() {
|
|
|
33291
31023
|
}) : (k(l, n), A(i, l));
|
|
33292
31024
|
}
|
|
33293
31025
|
|
|
33294
|
-
if (!e || "object" != _typeof
|
|
31026
|
+
if (!e || "object" != _typeof(e)) {
|
|
33295
31027
|
if ((i = r(e)) === J) return;
|
|
33296
31028
|
return void 0 === i && (i = e), t.F && w(i, !0), i;
|
|
33297
31029
|
}
|
|
@@ -33491,11 +31223,11 @@ function checkDCE() {
|
|
|
33491
31223
|
},
|
|
33492
31224
|
addMark: function addMark(t, r) {
|
|
33493
31225
|
var n = e.selection;
|
|
33494
|
-
if (n) if (st.isExpanded(n)) Ft.setNodes(e, _defineProperty
|
|
31226
|
+
if (n) if (st.isExpanded(n)) Ft.setNodes(e, _defineProperty({}, t, r), {
|
|
33495
31227
|
match: vt.isText,
|
|
33496
31228
|
split: !0
|
|
33497
31229
|
});else {
|
|
33498
|
-
var a = ve(ve({}, He.marks(e) || {}), {}, _defineProperty
|
|
31230
|
+
var a = ve(ve({}, He.marks(e) || {}), {}, _defineProperty({}, t, r));
|
|
33499
31231
|
e.marks = a, le.get(e) || e.onChange();
|
|
33500
31232
|
}
|
|
33501
31233
|
},
|
|
@@ -33627,7 +31359,7 @@ function checkDCE() {
|
|
|
33627
31359
|
case "insert_node":
|
|
33628
31360
|
var r = e.node,
|
|
33629
31361
|
n = e.path;
|
|
33630
|
-
return [].concat(_toConsumableArray
|
|
31362
|
+
return [].concat(_toConsumableArray(Ge.levels(n)), _toConsumableArray(vt.isText(r) ? [] : Array.from(Xe.nodes(r), function (e) {
|
|
33631
31363
|
var _e2 = _slicedToArray(e, 2),
|
|
33632
31364
|
t = _e2[1];
|
|
33633
31365
|
|
|
@@ -33636,7 +31368,7 @@ function checkDCE() {
|
|
|
33636
31368
|
|
|
33637
31369
|
case "merge_node":
|
|
33638
31370
|
var a = e.path;
|
|
33639
|
-
return [].concat(_toConsumableArray
|
|
31371
|
+
return [].concat(_toConsumableArray(Ge.ancestors(a)), [Ge.previous(a)]);
|
|
33640
31372
|
|
|
33641
31373
|
case "move_node":
|
|
33642
31374
|
var o = e.path,
|
|
@@ -33682,11 +31414,11 @@ function checkDCE() {
|
|
|
33682
31414
|
|
|
33683
31415
|
case "remove_node":
|
|
33684
31416
|
var g = e.path;
|
|
33685
|
-
return _toConsumableArray
|
|
31417
|
+
return _toConsumableArray(Ge.ancestors(g));
|
|
33686
31418
|
|
|
33687
31419
|
case "split_node":
|
|
33688
31420
|
var m = e.path;
|
|
33689
|
-
return [].concat(_toConsumableArray
|
|
31421
|
+
return [].concat(_toConsumableArray(Ge.levels(m)), [Ge.next(m)]);
|
|
33690
31422
|
|
|
33691
31423
|
default:
|
|
33692
31424
|
return [];
|
|
@@ -37441,7 +35173,7 @@ function checkDCE() {
|
|
|
37441
35173
|
var o = n.anchor,
|
|
37442
35174
|
i = n.focus,
|
|
37443
35175
|
s = "anchor" === a ? o : i;
|
|
37444
|
-
Ft.setSelection(e, _defineProperty
|
|
35176
|
+
Ft.setSelection(e, _defineProperty({}, "anchor" === a ? "anchor" : "focus", Pt(Pt({}, s), t)));
|
|
37445
35177
|
}
|
|
37446
35178
|
},
|
|
37447
35179
|
setSelection: function setSelection(e, t) {
|
|
@@ -37968,7 +35700,7 @@ function checkDCE() {
|
|
|
37968
35700
|
|
|
37969
35701
|
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
35702
|
|
|
37971
|
-
(_w$children = w.children).push.apply(_w$children, _toConsumableArray
|
|
35703
|
+
(_w$children = w.children).push.apply(_w$children, _toConsumableArray(b.children));
|
|
37972
35704
|
}
|
|
37973
35705
|
|
|
37974
35706
|
if (O.children.splice(E, 1), t) {
|
|
@@ -38206,7 +35938,7 @@ function checkDCE() {
|
|
|
38206
35938
|
Tt = r.n(Mt);
|
|
38207
35939
|
|
|
38208
35940
|
function Rt(e) {
|
|
38209
|
-
return null != e && "object" == _typeof
|
|
35941
|
+
return null != e && "object" == _typeof(e) && 1 === e.nodeType;
|
|
38210
35942
|
}
|
|
38211
35943
|
|
|
38212
35944
|
function It(e, t) {
|
|
@@ -38899,8 +36631,8 @@ function checkDCE() {
|
|
|
38899
36631
|
},
|
|
38900
36632
|
bn = 0;
|
|
38901
36633
|
|
|
38902
|
-
var yn = /*#__PURE__*/_createClass
|
|
38903
|
-
_classCallCheck
|
|
36634
|
+
var yn = /*#__PURE__*/_createClass(function yn() {
|
|
36635
|
+
_classCallCheck(this, yn);
|
|
38904
36636
|
|
|
38905
36637
|
this.id = "".concat(bn++);
|
|
38906
36638
|
});
|
|
@@ -39133,7 +36865,7 @@ function checkDCE() {
|
|
|
39133
36865
|
var v = wn.getWindow(e).document.createRange();
|
|
39134
36866
|
v.setStart(l, 0), v.setEnd(o, i);
|
|
39135
36867
|
var p = v.cloneContents();
|
|
39136
|
-
[].concat(_toConsumableArray
|
|
36868
|
+
[].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
36869
|
e.parentNode.removeChild(e);
|
|
39138
36870
|
}), c = p.textContent.length, h = l;
|
|
39139
36871
|
} 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 +37006,10 @@ function checkDCE() {
|
|
|
39274
37006
|
return r;
|
|
39275
37007
|
}
|
|
39276
37008
|
|
|
39277
|
-
var Pn = /*#__PURE__*/_createClass
|
|
37009
|
+
var Pn = /*#__PURE__*/_createClass(function Pn(e) {
|
|
39278
37010
|
var _this = this;
|
|
39279
37011
|
|
|
39280
|
-
_classCallCheck
|
|
37012
|
+
_classCallCheck(this, Pn);
|
|
39281
37013
|
|
|
39282
37014
|
this.editor = e, this.flush = function (e) {
|
|
39283
37015
|
try {
|
|
@@ -39980,7 +37712,7 @@ function checkDCE() {
|
|
|
39980
37712
|
var _x$push;
|
|
39981
37713
|
|
|
39982
37714
|
var j = He.start(v, []);
|
|
39983
|
-
x.push((_x$push = {}, _defineProperty
|
|
37715
|
+
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
37716
|
}
|
|
39985
37717
|
|
|
39986
37718
|
return a.a.createElement(Ur.Provider, {
|
|
@@ -40310,7 +38042,7 @@ function checkDCE() {
|
|
|
40310
38042
|
var _j$push;
|
|
40311
38043
|
|
|
40312
38044
|
var k = He.start(p, []);
|
|
40313
|
-
j.push((_j$push = {}, _defineProperty
|
|
38045
|
+
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
38046
|
}
|
|
40315
38047
|
|
|
40316
38048
|
return a.a.createElement(Ur.Provider, {
|
|
@@ -42609,7 +40341,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
42609
40341
|
};
|
|
42610
40342
|
|
|
42611
40343
|
var RichTextEditor$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
42612
|
-
return /*#__PURE__*/React.createElement(RichTextEditor, _extends$
|
|
40344
|
+
return /*#__PURE__*/React.createElement(RichTextEditor, _extends$1({}, props, {
|
|
42613
40345
|
forwardedRef: ref
|
|
42614
40346
|
}));
|
|
42615
40347
|
});
|