@amazon-devices/shopify__react-native-performance-lists-profiler 1.1.9000000000-rn-83 → 1.1.9000000000
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/SystemBundles/{6743d0ab46870e67568228f604e78f1d6859819c6aebd2ec3252cb756af16701.bundle → 703ad8748989dd5aaaf4c553184252136576b4f5df3ea2de7bd1c71c9b11d3d4.bundle} +1395 -722
- package/SystemBundles/{6743d0ab46870e67568228f604e78f1d6859819c6aebd2ec3252cb756af16701.map → 703ad8748989dd5aaaf4c553184252136576b4f5df3ea2de7bd1c71c9b11d3d4.map} +382 -100
- package/SystemModules/amzn__shopify__react-native-performance-lists-profiler-1.private.modules.txt +36 -29
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -60
- package/react-native.config.js +0 -22
|
@@ -1,34 +1,633 @@
|
|
|
1
1
|
var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production";
|
|
2
2
|
(function (global) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @format
|
|
10
|
+
*
|
|
11
|
+
* @nolint
|
|
12
|
+
* @polyfill
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
'use client';
|
|
16
|
+
|
|
17
|
+
/* eslint-disable no-shadow, eqeqeq, no-unused-vars, no-control-regex */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This pipes all of our console logging functions to native logging so that
|
|
21
|
+
* JavaScript errors in required modules show up in Xcode via NSLog.
|
|
22
|
+
*/
|
|
23
|
+
var inspect = function () {
|
|
24
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
25
|
+
//
|
|
26
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
27
|
+
// copy of this software and associated documentation files (the
|
|
28
|
+
// "Software"), to deal in the Software without restriction, including
|
|
29
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
30
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
31
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
32
|
+
// following conditions:
|
|
33
|
+
//
|
|
34
|
+
// The above copyright notice and this permission notice shall be included
|
|
35
|
+
// in all copies or substantial portions of the Software.
|
|
36
|
+
//
|
|
37
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
38
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
39
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
40
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
41
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
42
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
43
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
44
|
+
//
|
|
45
|
+
// https://github.com/joyent/node/blob/master/lib/util.js
|
|
46
|
+
|
|
47
|
+
function inspect(obj, opts) {
|
|
48
|
+
var ctx = {
|
|
49
|
+
seen: [],
|
|
50
|
+
formatValueCalls: 0,
|
|
51
|
+
stylize: stylizeNoColor
|
|
52
|
+
};
|
|
53
|
+
return formatValue(ctx, obj, opts.depth);
|
|
54
|
+
}
|
|
55
|
+
function stylizeNoColor(str, styleType) {
|
|
56
|
+
return str;
|
|
57
|
+
}
|
|
58
|
+
function arrayToHash(array) {
|
|
59
|
+
var hash = {};
|
|
60
|
+
array.forEach(function (val, idx) {
|
|
61
|
+
hash[val] = true;
|
|
62
|
+
});
|
|
63
|
+
return hash;
|
|
64
|
+
}
|
|
65
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
66
|
+
ctx.formatValueCalls++;
|
|
67
|
+
if (ctx.formatValueCalls > 200) {
|
|
68
|
+
return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Primitive types cannot have properties
|
|
72
|
+
var primitive = formatPrimitive(ctx, value);
|
|
73
|
+
if (primitive) {
|
|
74
|
+
return primitive;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Look up the keys of the object.
|
|
78
|
+
var keys = Object.keys(value);
|
|
79
|
+
var visibleKeys = arrayToHash(keys);
|
|
80
|
+
|
|
81
|
+
// IE doesn't make error fields non-enumerable
|
|
82
|
+
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
83
|
+
if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
84
|
+
return formatError(value);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Some type of object without properties can be shortcutted.
|
|
88
|
+
if (keys.length === 0) {
|
|
89
|
+
if (isFunction(value)) {
|
|
90
|
+
var name = value.name ? ': ' + value.name : '';
|
|
91
|
+
return ctx.stylize('[Function' + name + ']', 'special');
|
|
92
|
+
}
|
|
93
|
+
if (isRegExp(value)) {
|
|
94
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
95
|
+
}
|
|
96
|
+
if (isDate(value)) {
|
|
97
|
+
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
98
|
+
}
|
|
99
|
+
if (isError(value)) {
|
|
100
|
+
return formatError(value);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
var base = '',
|
|
104
|
+
array = false,
|
|
105
|
+
braces = ['{', '}'];
|
|
106
|
+
|
|
107
|
+
// Make Array say that they are Array
|
|
108
|
+
if (isArray(value)) {
|
|
109
|
+
array = true;
|
|
110
|
+
braces = ['[', ']'];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Make functions say that they are functions
|
|
114
|
+
if (isFunction(value)) {
|
|
115
|
+
var n = value.name ? ': ' + value.name : '';
|
|
116
|
+
base = ' [Function' + n + ']';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Make RegExps say that they are RegExps
|
|
120
|
+
if (isRegExp(value)) {
|
|
121
|
+
base = ' ' + RegExp.prototype.toString.call(value);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Make dates with properties first say the date
|
|
125
|
+
if (isDate(value)) {
|
|
126
|
+
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Make error with message first say the error
|
|
130
|
+
if (isError(value)) {
|
|
131
|
+
base = ' ' + formatError(value);
|
|
132
|
+
}
|
|
133
|
+
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
134
|
+
return braces[0] + base + braces[1];
|
|
135
|
+
}
|
|
136
|
+
if (recurseTimes < 0) {
|
|
137
|
+
if (isRegExp(value)) {
|
|
138
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
139
|
+
} else {
|
|
140
|
+
return ctx.stylize('[Object]', 'special');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
ctx.seen.push(value);
|
|
144
|
+
var output;
|
|
145
|
+
if (array) {
|
|
146
|
+
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
147
|
+
} else {
|
|
148
|
+
output = keys.map(function (key) {
|
|
149
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
ctx.seen.pop();
|
|
153
|
+
return reduceToSingleString(output, base, braces);
|
|
154
|
+
}
|
|
155
|
+
function formatPrimitive(ctx, value) {
|
|
156
|
+
if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');
|
|
157
|
+
if (isString(value)) {
|
|
158
|
+
var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
159
|
+
return ctx.stylize(simple, 'string');
|
|
160
|
+
}
|
|
161
|
+
if (isNumber(value)) return ctx.stylize('' + value, 'number');
|
|
162
|
+
if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');
|
|
163
|
+
// For some reason typeof null is "object", so special case here.
|
|
164
|
+
if (isNull(value)) return ctx.stylize('null', 'null');
|
|
165
|
+
}
|
|
166
|
+
function formatError(value) {
|
|
167
|
+
return '[' + Error.prototype.toString.call(value) + ']';
|
|
168
|
+
}
|
|
169
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
170
|
+
var output = [];
|
|
171
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
172
|
+
if (hasOwnProperty(value, String(i))) {
|
|
173
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
|
|
174
|
+
} else {
|
|
175
|
+
output.push('');
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
keys.forEach(function (key) {
|
|
179
|
+
if (!key.match(/^\d+$/)) {
|
|
180
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return output;
|
|
184
|
+
}
|
|
185
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
186
|
+
var name, str, desc;
|
|
187
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || {
|
|
188
|
+
value: value[key]
|
|
189
|
+
};
|
|
190
|
+
if (desc.get) {
|
|
191
|
+
if (desc.set) {
|
|
192
|
+
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
193
|
+
} else {
|
|
194
|
+
str = ctx.stylize('[Getter]', 'special');
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
if (desc.set) {
|
|
198
|
+
str = ctx.stylize('[Setter]', 'special');
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (!hasOwnProperty(visibleKeys, key)) {
|
|
202
|
+
name = '[' + key + ']';
|
|
203
|
+
}
|
|
204
|
+
if (!str) {
|
|
205
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
206
|
+
if (isNull(recurseTimes)) {
|
|
207
|
+
str = formatValue(ctx, desc.value, null);
|
|
208
|
+
} else {
|
|
209
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
210
|
+
}
|
|
211
|
+
if (str.indexOf('\n') > -1) {
|
|
212
|
+
if (array) {
|
|
213
|
+
str = str.split('\n').map(function (line) {
|
|
214
|
+
return ' ' + line;
|
|
215
|
+
}).join('\n').slice(2);
|
|
216
|
+
} else {
|
|
217
|
+
str = '\n' + str.split('\n').map(function (line) {
|
|
218
|
+
return ' ' + line;
|
|
219
|
+
}).join('\n');
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
} else {
|
|
223
|
+
str = ctx.stylize('[Circular]', 'special');
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
if (isUndefined(name)) {
|
|
227
|
+
if (array && key.match(/^\d+$/)) {
|
|
228
|
+
return str;
|
|
229
|
+
}
|
|
230
|
+
name = JSON.stringify('' + key);
|
|
231
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
232
|
+
name = name.slice(1, name.length - 1);
|
|
233
|
+
name = ctx.stylize(name, 'name');
|
|
234
|
+
} else {
|
|
235
|
+
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
236
|
+
name = ctx.stylize(name, 'string');
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return name + ': ' + str;
|
|
240
|
+
}
|
|
241
|
+
function reduceToSingleString(output, base, braces) {
|
|
242
|
+
var numLinesEst = 0;
|
|
243
|
+
var length = output.reduce(function (prev, cur) {
|
|
244
|
+
numLinesEst++;
|
|
245
|
+
if (cur.indexOf('\n') >= 0) numLinesEst++;
|
|
246
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
247
|
+
}, 0);
|
|
248
|
+
if (length > 60) {
|
|
249
|
+
return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1];
|
|
250
|
+
}
|
|
251
|
+
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
255
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
256
|
+
function isArray(ar) {
|
|
257
|
+
return Array.isArray(ar);
|
|
258
|
+
}
|
|
259
|
+
function isBoolean(arg) {
|
|
260
|
+
return typeof arg === 'boolean';
|
|
261
|
+
}
|
|
262
|
+
function isNull(arg) {
|
|
263
|
+
return arg === null;
|
|
264
|
+
}
|
|
265
|
+
function isNumber(arg) {
|
|
266
|
+
return typeof arg === 'number';
|
|
267
|
+
}
|
|
268
|
+
function isString(arg) {
|
|
269
|
+
return typeof arg === 'string';
|
|
270
|
+
}
|
|
271
|
+
function isUndefined(arg) {
|
|
272
|
+
return arg === undefined;
|
|
273
|
+
}
|
|
274
|
+
function isRegExp(re) {
|
|
275
|
+
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
276
|
+
}
|
|
277
|
+
function isObject(arg) {
|
|
278
|
+
return typeof arg === 'object' && arg !== null;
|
|
279
|
+
}
|
|
280
|
+
function isDate(d) {
|
|
281
|
+
return isObject(d) && objectToString(d) === '[object Date]';
|
|
282
|
+
}
|
|
283
|
+
function isError(e) {
|
|
284
|
+
return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);
|
|
285
|
+
}
|
|
286
|
+
function isFunction(arg) {
|
|
287
|
+
return typeof arg === 'function';
|
|
288
|
+
}
|
|
289
|
+
function objectToString(o) {
|
|
290
|
+
return Object.prototype.toString.call(o);
|
|
291
|
+
}
|
|
292
|
+
function hasOwnProperty(obj, prop) {
|
|
293
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
294
|
+
}
|
|
295
|
+
return inspect;
|
|
296
|
+
}();
|
|
297
|
+
var INDEX_COLUMN_NAME = '(index)';
|
|
298
|
+
var LOG_LEVELS = {
|
|
299
|
+
trace: 0,
|
|
300
|
+
info: 1,
|
|
301
|
+
warn: 2,
|
|
302
|
+
error: 3
|
|
303
|
+
};
|
|
304
|
+
function getNativeLogFunction(level) {
|
|
305
|
+
return function () {
|
|
306
|
+
var str;
|
|
307
|
+
if (arguments.length === 1 && typeof arguments[0] === 'string') {
|
|
308
|
+
str = arguments[0];
|
|
309
|
+
} else {
|
|
310
|
+
str = Array.prototype.map.call(arguments, function (arg) {
|
|
311
|
+
return inspect(arg, {
|
|
312
|
+
depth: 10
|
|
313
|
+
});
|
|
314
|
+
}).join(', ');
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// TRICKY
|
|
318
|
+
// If more than one argument is provided, the code above collapses them all
|
|
319
|
+
// into a single formatted string. This transform wraps string arguments in
|
|
320
|
+
// single quotes (e.g. "foo" -> "'foo'") which then breaks the "Warning:"
|
|
321
|
+
// check below. So it's important that we look at the first argument, rather
|
|
322
|
+
// than the formatted argument string.
|
|
323
|
+
var firstArg = arguments[0];
|
|
324
|
+
var logLevel = level;
|
|
325
|
+
if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) {
|
|
326
|
+
// React warnings use console.error so that a stack trace is shown,
|
|
327
|
+
// but we don't (currently) want these to show a redbox
|
|
328
|
+
// (Note: Logic duplicated in ExceptionsManager.js.)
|
|
329
|
+
logLevel = LOG_LEVELS.warn;
|
|
330
|
+
}
|
|
331
|
+
if (groupStack.length) {
|
|
332
|
+
str = groupFormat('', str);
|
|
333
|
+
}
|
|
334
|
+
global.nativeLoggingHook(str, logLevel);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function repeat(element, n) {
|
|
338
|
+
return Array.apply(null, Array(n)).map(function () {
|
|
339
|
+
return element;
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
function formatCellValue(cell, key) {
|
|
343
|
+
if (key === INDEX_COLUMN_NAME) {
|
|
344
|
+
return cell[key];
|
|
345
|
+
}
|
|
346
|
+
if (cell.hasOwnProperty(key)) {
|
|
347
|
+
var cellValue = cell[key];
|
|
348
|
+
switch (typeof cellValue) {
|
|
349
|
+
case 'function':
|
|
350
|
+
return 'ƒ';
|
|
351
|
+
case 'string':
|
|
352
|
+
return "'" + cellValue + "'";
|
|
353
|
+
case 'object':
|
|
354
|
+
return cellValue == null ? 'null' : '{…}';
|
|
355
|
+
}
|
|
356
|
+
return String(cellValue);
|
|
357
|
+
}
|
|
358
|
+
return '';
|
|
359
|
+
}
|
|
360
|
+
function consoleTablePolyfill(data, columns) {
|
|
361
|
+
var rows;
|
|
362
|
+
|
|
363
|
+
// convert object -> array
|
|
364
|
+
if (Array.isArray(data)) {
|
|
365
|
+
rows = data.map(function (row, index) {
|
|
366
|
+
var processedRow = {};
|
|
367
|
+
processedRow[INDEX_COLUMN_NAME] = String(index);
|
|
368
|
+
Object.assign(processedRow, row);
|
|
369
|
+
return processedRow;
|
|
370
|
+
});
|
|
371
|
+
} else {
|
|
372
|
+
rows = [];
|
|
373
|
+
for (var key in data) {
|
|
374
|
+
if (data.hasOwnProperty(key)) {
|
|
375
|
+
var processedRow = {};
|
|
376
|
+
processedRow[INDEX_COLUMN_NAME] = key;
|
|
377
|
+
Object.assign(processedRow, data[key]);
|
|
378
|
+
rows.push(processedRow);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (rows.length === 0) {
|
|
383
|
+
global.nativeLoggingHook('', LOG_LEVELS.info);
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
if (Array.isArray(columns)) {
|
|
387
|
+
columns = [INDEX_COLUMN_NAME].concat(columns);
|
|
388
|
+
} else {
|
|
389
|
+
columns = Array.from(rows.reduce(function (columnSet, row) {
|
|
390
|
+
Object.keys(row).forEach(function (key) {
|
|
391
|
+
return columnSet.add(key);
|
|
392
|
+
});
|
|
393
|
+
return columnSet;
|
|
394
|
+
}, new Set()));
|
|
395
|
+
}
|
|
396
|
+
var stringRows = [];
|
|
397
|
+
var columnWidths = [];
|
|
398
|
+
|
|
399
|
+
// Convert each cell to a string. Also
|
|
400
|
+
// figure out max cell width for each column
|
|
401
|
+
columns.forEach(function (k, i) {
|
|
402
|
+
columnWidths[i] = k.length;
|
|
403
|
+
for (var j = 0; j < rows.length; j++) {
|
|
404
|
+
var cellStr = formatCellValue(rows[j], k);
|
|
405
|
+
stringRows[j] = stringRows[j] || [];
|
|
406
|
+
stringRows[j][i] = cellStr;
|
|
407
|
+
columnWidths[i] = Math.max(columnWidths[i], cellStr.length);
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
// Join all elements in the row into a single string with | separators
|
|
412
|
+
// (appends extra spaces to each cell to make separators | aligned)
|
|
413
|
+
function joinRow(row, space) {
|
|
414
|
+
var cells = row.map(function (cell, i) {
|
|
415
|
+
var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');
|
|
416
|
+
return cell + extraSpaces;
|
|
417
|
+
});
|
|
418
|
+
space = space || ' ';
|
|
419
|
+
return '| ' + cells.join(space + '|' + space) + ' |';
|
|
420
|
+
}
|
|
421
|
+
var separators = columnWidths.map(function (columnWidth) {
|
|
422
|
+
return repeat('-', columnWidth).join('');
|
|
423
|
+
});
|
|
424
|
+
var separatorRow = joinRow(separators);
|
|
425
|
+
var header = joinRow(columns);
|
|
426
|
+
var table = [header, separatorRow];
|
|
427
|
+
for (var i = 0; i < rows.length; i++) {
|
|
428
|
+
table.push(joinRow(stringRows[i]));
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
// Notice extra empty line at the beginning.
|
|
432
|
+
// Native logging hook adds "RCTLog >" at the front of every
|
|
433
|
+
// logged string, which would shift the header and screw up
|
|
434
|
+
// the table
|
|
435
|
+
global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info);
|
|
436
|
+
}
|
|
437
|
+
var GROUP_PAD = "\u2502"; // Box light vertical
|
|
438
|
+
var GROUP_OPEN = "\u2510"; // Box light down+left
|
|
439
|
+
var GROUP_CLOSE = "\u2518"; // Box light up+left
|
|
440
|
+
|
|
441
|
+
var groupStack = [];
|
|
442
|
+
function groupFormat(prefix, msg) {
|
|
443
|
+
// Insert group formatting before the console message
|
|
444
|
+
return groupStack.join('') + prefix + ' ' + (msg || '');
|
|
445
|
+
}
|
|
446
|
+
function consoleGroupPolyfill(label) {
|
|
447
|
+
global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);
|
|
448
|
+
groupStack.push(GROUP_PAD);
|
|
449
|
+
}
|
|
450
|
+
function consoleGroupCollapsedPolyfill(label) {
|
|
451
|
+
global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);
|
|
452
|
+
groupStack.push(GROUP_PAD);
|
|
453
|
+
}
|
|
454
|
+
function consoleGroupEndPolyfill() {
|
|
455
|
+
groupStack.pop();
|
|
456
|
+
global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);
|
|
457
|
+
}
|
|
458
|
+
function consoleAssertPolyfill(expression, label) {
|
|
459
|
+
if (!expression) {
|
|
460
|
+
global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
function stub() {}
|
|
464
|
+
if (global.nativeLoggingHook) {
|
|
465
|
+
var originalConsole = global.console;
|
|
466
|
+
// Preserve the original `console` as `originalConsole`
|
|
467
|
+
|
|
468
|
+
global.console = Object.assign({
|
|
469
|
+
time: stub,
|
|
470
|
+
timeEnd: stub,
|
|
471
|
+
timeStamp: stub,
|
|
472
|
+
count: stub,
|
|
473
|
+
countReset: stub
|
|
474
|
+
}, originalConsole != null ? originalConsole : {}, {
|
|
475
|
+
error: getNativeLogFunction(LOG_LEVELS.error),
|
|
476
|
+
info: getNativeLogFunction(LOG_LEVELS.info),
|
|
477
|
+
log: getNativeLogFunction(LOG_LEVELS.info),
|
|
478
|
+
warn: getNativeLogFunction(LOG_LEVELS.warn),
|
|
479
|
+
trace: getNativeLogFunction(LOG_LEVELS.trace),
|
|
480
|
+
debug: getNativeLogFunction(LOG_LEVELS.trace),
|
|
481
|
+
table: consoleTablePolyfill,
|
|
482
|
+
group: consoleGroupPolyfill,
|
|
483
|
+
groupEnd: consoleGroupEndPolyfill,
|
|
484
|
+
groupCollapsed: consoleGroupCollapsedPolyfill,
|
|
485
|
+
assert: consoleAssertPolyfill
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
// TODO(T206796580): This was copy-pasted from ExceptionsManager.js
|
|
489
|
+
// Delete the copy there after the c++ pipeline is rolled out everywhere.
|
|
490
|
+
if (global.RN$useAlwaysAvailableJSErrorHandling === true) {
|
|
491
|
+
var stringifySafe = function stringifySafe(arg) {
|
|
492
|
+
return inspect(arg, {
|
|
493
|
+
depth: 10
|
|
494
|
+
}).replace(/\n\s*/g, ' ');
|
|
495
|
+
};
|
|
496
|
+
var originalConsoleError = console.error;
|
|
497
|
+
console.reportErrorsAsExceptions = true;
|
|
498
|
+
console.error = function () {
|
|
499
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
500
|
+
args[_key] = arguments[_key];
|
|
501
|
+
}
|
|
502
|
+
originalConsoleError.apply(this, args);
|
|
503
|
+
if (!console.reportErrorsAsExceptions) {
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
if (global.RN$inExceptionHandler != null && global.RN$inExceptionHandler()) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
var error;
|
|
510
|
+
var firstArg = args[0];
|
|
511
|
+
if (firstArg != null && firstArg.stack) {
|
|
512
|
+
// RN$handleException will console.error this with high enough fidelity.
|
|
513
|
+
error = firstArg;
|
|
514
|
+
} else {
|
|
515
|
+
if (typeof firstArg === 'string' && firstArg.startsWith('Warning: ')) {
|
|
516
|
+
// React warnings use console.error so that a stack trace is shown, but
|
|
517
|
+
// we don't (currently) want these to show a redbox
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
var message = args.map(function (arg) {
|
|
521
|
+
return typeof arg === 'string' ? arg : stringifySafe(arg);
|
|
522
|
+
}).join(' ');
|
|
523
|
+
error = new Error(message);
|
|
524
|
+
error.name = 'console.error';
|
|
525
|
+
}
|
|
526
|
+
var isFatal = false;
|
|
527
|
+
var reportToConsole = false;
|
|
528
|
+
global.RN$handleException(error, isFatal, reportToConsole);
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
Object.defineProperty(console, '_isPolyfilled', {
|
|
532
|
+
value: true,
|
|
533
|
+
enumerable: false
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
// If available, also call the original `console` method since that is
|
|
537
|
+
// sometimes useful. Ex: on OS X, this will let you see rich output in
|
|
538
|
+
// the Safari Web Inspector console.
|
|
539
|
+
} else if (!global.console) {
|
|
540
|
+
var log = global.print || stub;
|
|
541
|
+
global.console = {
|
|
542
|
+
debug: log,
|
|
543
|
+
error: log,
|
|
544
|
+
info: log,
|
|
545
|
+
log: log,
|
|
546
|
+
trace: log,
|
|
547
|
+
warn: log,
|
|
548
|
+
assert: function assert(expression, label) {
|
|
549
|
+
if (!expression) {
|
|
550
|
+
log('Assertion failed: ' + label);
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
clear: stub,
|
|
554
|
+
count: stub,
|
|
555
|
+
countReset: stub,
|
|
556
|
+
dir: stub,
|
|
557
|
+
dirxml: stub,
|
|
558
|
+
group: stub,
|
|
559
|
+
groupCollapsed: stub,
|
|
560
|
+
groupEnd: stub,
|
|
561
|
+
profile: stub,
|
|
562
|
+
profileEnd: stub,
|
|
563
|
+
table: stub,
|
|
564
|
+
time: stub,
|
|
565
|
+
timeEnd: stub,
|
|
566
|
+
timeStamp: stub
|
|
567
|
+
};
|
|
568
|
+
Object.defineProperty(console, '_isPolyfilled', {
|
|
569
|
+
value: true,
|
|
570
|
+
enumerable: false
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
|
|
574
|
+
(function (global) {
|
|
575
|
+
var _inGuard = 0;
|
|
576
|
+
var _globalHandler = global.RN$useAlwaysAvailableJSErrorHandling === true ? global.RN$handleException : function (e, isFatal) {
|
|
577
|
+
throw e;
|
|
578
|
+
};
|
|
579
|
+
var ErrorUtils = {
|
|
580
|
+
setGlobalHandler: function setGlobalHandler(fun) {
|
|
581
|
+
_globalHandler = fun;
|
|
582
|
+
},
|
|
583
|
+
getGlobalHandler: function getGlobalHandler() {
|
|
584
|
+
return _globalHandler;
|
|
585
|
+
},
|
|
586
|
+
reportError: function reportError(error) {
|
|
587
|
+
_globalHandler && _globalHandler(error, false);
|
|
588
|
+
},
|
|
589
|
+
reportFatalError: function reportFatalError(error) {
|
|
590
|
+
_globalHandler && _globalHandler(error, true);
|
|
591
|
+
},
|
|
592
|
+
applyWithGuard: function applyWithGuard(fun, context, args, unused_onError, unused_name) {
|
|
593
|
+
try {
|
|
594
|
+
_inGuard++;
|
|
595
|
+
return fun.apply(context, args);
|
|
596
|
+
} catch (e) {
|
|
597
|
+
ErrorUtils.reportError(e);
|
|
598
|
+
} finally {
|
|
599
|
+
_inGuard--;
|
|
600
|
+
}
|
|
601
|
+
return null;
|
|
602
|
+
},
|
|
603
|
+
applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) {
|
|
604
|
+
if (ErrorUtils.inGuard()) {
|
|
605
|
+
return fun.apply(context, args);
|
|
606
|
+
} else {
|
|
607
|
+
ErrorUtils.applyWithGuard(fun, context, args);
|
|
608
|
+
}
|
|
609
|
+
return null;
|
|
610
|
+
},
|
|
611
|
+
inGuard: function inGuard() {
|
|
612
|
+
return !!_inGuard;
|
|
613
|
+
},
|
|
614
|
+
guard: function guard(fun, name, context) {
|
|
615
|
+
var _ref;
|
|
616
|
+
if (typeof fun !== 'function') {
|
|
617
|
+
console.warn('A function must be passed to ErrorUtils.guard, got ', fun);
|
|
618
|
+
return null;
|
|
619
|
+
}
|
|
620
|
+
var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : '<generated guard>';
|
|
621
|
+
function guarded() {
|
|
622
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
623
|
+
args[_key] = arguments[_key];
|
|
624
|
+
}
|
|
625
|
+
return ErrorUtils.applyWithGuard(fun, context != null ? context : this, args, null, guardName);
|
|
626
|
+
}
|
|
627
|
+
return guarded;
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
global.ErrorUtils = ErrorUtils;
|
|
32
631
|
})(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
|
|
33
632
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
34
633
|
"use strict";
|
|
@@ -42,7 +641,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
42
641
|
/**
|
|
43
642
|
* Wrap your `FlashList` with this component.
|
|
44
643
|
*/
|
|
45
|
-
var FlashListPerformanceView = function (_a) {
|
|
644
|
+
var FlashListPerformanceView = function FlashListPerformanceView(_a) {
|
|
46
645
|
var listName = _a.listName,
|
|
47
646
|
children = _a.children;
|
|
48
647
|
var time = (0, react_1.useRef)(Date.now()).current;
|
|
@@ -51,16 +650,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
51
650
|
style: {
|
|
52
651
|
flex: 1
|
|
53
652
|
},
|
|
54
|
-
onInteractive: function (_a) {
|
|
653
|
+
onInteractive: function onInteractive(_a) {
|
|
55
654
|
var nativeEvent = _a.nativeEvent;
|
|
56
655
|
listsProfilerController.onInteractive(nativeEvent.timestamp - time, listName);
|
|
57
656
|
},
|
|
58
|
-
onBlankAreaEvent: function (_a) {
|
|
657
|
+
onBlankAreaEvent: function onBlankAreaEvent(_a) {
|
|
59
658
|
var nativeEvent = _a.nativeEvent;
|
|
60
659
|
listsProfilerController.onBlankArea(nativeEvent.offsetStart, nativeEvent.offsetEnd, listName);
|
|
61
660
|
}
|
|
62
661
|
}, react_1.default.cloneElement(children, {
|
|
63
|
-
onScroll: function () {
|
|
662
|
+
onScroll: function onScroll() {
|
|
64
663
|
var _a;
|
|
65
664
|
if ((_a = children === null || children === undefined ? undefined : children.props) === null || _a === undefined ? undefined : _a.onScroll) {
|
|
66
665
|
children.props.onScroll();
|
|
@@ -105,7 +704,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
105
704
|
var __spread;
|
|
106
705
|
var __spreadArrays;
|
|
107
706
|
var __spreadArray;
|
|
108
|
-
var
|
|
707
|
+
var _await;
|
|
109
708
|
var __asyncGenerator;
|
|
110
709
|
var __asyncDelegator;
|
|
111
710
|
var __asyncValues;
|
|
@@ -152,7 +751,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
152
751
|
} || function (d, b) {
|
|
153
752
|
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
154
753
|
};
|
|
155
|
-
__extends = function (d, b) {
|
|
754
|
+
__extends = function __extends(d, b) {
|
|
156
755
|
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
157
756
|
extendStatics(d, b);
|
|
158
757
|
function __() {
|
|
@@ -167,7 +766,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
167
766
|
}
|
|
168
767
|
return t;
|
|
169
768
|
};
|
|
170
|
-
__rest = function (s, e) {
|
|
769
|
+
__rest = function __rest(s, e) {
|
|
171
770
|
var t = {};
|
|
172
771
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
173
772
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -175,19 +774,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
175
774
|
}
|
|
176
775
|
return t;
|
|
177
776
|
};
|
|
178
|
-
__decorate = function (decorators, target, key, desc) {
|
|
777
|
+
__decorate = function __decorate(decorators, target, key, desc) {
|
|
179
778
|
var c = arguments.length,
|
|
180
779
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
181
780
|
d;
|
|
182
781
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
183
782
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
184
783
|
};
|
|
185
|
-
__param = function (paramIndex, decorator) {
|
|
784
|
+
__param = function __param(paramIndex, decorator) {
|
|
186
785
|
return function (target, key) {
|
|
187
786
|
decorator(target, key, paramIndex);
|
|
188
787
|
};
|
|
189
788
|
};
|
|
190
|
-
__esDecorate = function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
789
|
+
__esDecorate = function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
191
790
|
function accept(f) {
|
|
192
791
|
if (f !== undefined && typeof f !== "function") throw new TypeError("Function expected");
|
|
193
792
|
return f;
|
|
@@ -223,27 +822,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
223
822
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
224
823
|
done = true;
|
|
225
824
|
};
|
|
226
|
-
__runInitializers = function (thisArg, initializers, value) {
|
|
825
|
+
__runInitializers = function __runInitializers(thisArg, initializers, value) {
|
|
227
826
|
var useValue = arguments.length > 2;
|
|
228
827
|
for (var i = 0; i < initializers.length; i++) {
|
|
229
828
|
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
230
829
|
}
|
|
231
830
|
return useValue ? value : undefined;
|
|
232
831
|
};
|
|
233
|
-
__propKey = function (x) {
|
|
832
|
+
__propKey = function __propKey(x) {
|
|
234
833
|
return typeof x === "symbol" ? x : "".concat(x);
|
|
235
834
|
};
|
|
236
|
-
__setFunctionName = function (f, name, prefix) {
|
|
835
|
+
__setFunctionName = function __setFunctionName(f, name, prefix) {
|
|
237
836
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
238
837
|
return Object.defineProperty(f, "name", {
|
|
239
838
|
configurable: true,
|
|
240
839
|
value: prefix ? "".concat(prefix, " ", name) : name
|
|
241
840
|
});
|
|
242
841
|
};
|
|
243
|
-
__metadata = function (metadataKey, metadataValue) {
|
|
842
|
+
__metadata = function __metadata(metadataKey, metadataValue) {
|
|
244
843
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
245
844
|
};
|
|
246
|
-
__awaiter = function (thisArg, _arguments, P, generator) {
|
|
845
|
+
__awaiter = function __awaiter(thisArg, _arguments, P, generator) {
|
|
247
846
|
function adopt(value) {
|
|
248
847
|
return value instanceof P ? value : new P(function (resolve) {
|
|
249
848
|
resolve(value);
|
|
@@ -270,10 +869,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
270
869
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
271
870
|
});
|
|
272
871
|
};
|
|
273
|
-
__generator = function (thisArg, body) {
|
|
872
|
+
__generator = function __generator(thisArg, body) {
|
|
274
873
|
var _ = {
|
|
275
874
|
label: 0,
|
|
276
|
-
sent: function () {
|
|
875
|
+
sent: function sent() {
|
|
277
876
|
if (t[0] & 1) throw t[1];
|
|
278
877
|
return t[1];
|
|
279
878
|
},
|
|
@@ -354,7 +953,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
354
953
|
};
|
|
355
954
|
}
|
|
356
955
|
};
|
|
357
|
-
__exportStar = function (m, o) {
|
|
956
|
+
__exportStar = function __exportStar(m, o) {
|
|
358
957
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
359
958
|
};
|
|
360
959
|
__createBinding = Object.create ? function (o, m, k, k2) {
|
|
@@ -363,7 +962,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
363
962
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
364
963
|
desc = {
|
|
365
964
|
enumerable: true,
|
|
366
|
-
get: function () {
|
|
965
|
+
get: function get() {
|
|
367
966
|
return m[k];
|
|
368
967
|
}
|
|
369
968
|
};
|
|
@@ -373,13 +972,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
373
972
|
if (k2 === undefined) k2 = k;
|
|
374
973
|
o[k2] = m[k];
|
|
375
974
|
};
|
|
376
|
-
__values = function (o) {
|
|
975
|
+
__values = function __values(o) {
|
|
377
976
|
var s = typeof Symbol === "function" && Symbol.iterator,
|
|
378
977
|
m = s && o[s],
|
|
379
978
|
i = 0;
|
|
380
979
|
if (m) return m.call(o);
|
|
381
980
|
if (o && typeof o.length === "number") return {
|
|
382
|
-
next: function () {
|
|
981
|
+
next: function next() {
|
|
383
982
|
if (o && i >= o.length) o = undefined;
|
|
384
983
|
return {
|
|
385
984
|
value: o && o[i++],
|
|
@@ -389,7 +988,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
389
988
|
};
|
|
390
989
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
391
990
|
};
|
|
392
|
-
__read = function (o, n) {
|
|
991
|
+
__read = function __read(o, n) {
|
|
393
992
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
394
993
|
if (!m) return o;
|
|
395
994
|
var i = m.call(o),
|
|
@@ -413,18 +1012,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
413
1012
|
};
|
|
414
1013
|
|
|
415
1014
|
/** @deprecated */
|
|
416
|
-
__spread = function () {
|
|
1015
|
+
__spread = function __spread() {
|
|
417
1016
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
418
1017
|
return ar;
|
|
419
1018
|
};
|
|
420
1019
|
|
|
421
1020
|
/** @deprecated */
|
|
422
|
-
__spreadArrays = function () {
|
|
1021
|
+
__spreadArrays = function __spreadArrays() {
|
|
423
1022
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
424
1023
|
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
425
1024
|
return r;
|
|
426
1025
|
};
|
|
427
|
-
__spreadArray = function (to, from, pack) {
|
|
1026
|
+
__spreadArray = function __spreadArray(to, from, pack) {
|
|
428
1027
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
429
1028
|
if (ar || !(i in from)) {
|
|
430
1029
|
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
@@ -433,10 +1032,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
433
1032
|
}
|
|
434
1033
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
435
1034
|
};
|
|
436
|
-
|
|
437
|
-
return this instanceof
|
|
1035
|
+
_await = function __await(v) {
|
|
1036
|
+
return this instanceof _await ? (this.v = v, this) : new _await(v);
|
|
438
1037
|
};
|
|
439
|
-
__asyncGenerator = function (thisArg, _arguments, generator) {
|
|
1038
|
+
__asyncGenerator = function __asyncGenerator(thisArg, _arguments, generator) {
|
|
440
1039
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
441
1040
|
var g = generator.apply(thisArg, _arguments || []),
|
|
442
1041
|
i,
|
|
@@ -467,7 +1066,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
467
1066
|
}
|
|
468
1067
|
}
|
|
469
1068
|
function step(r) {
|
|
470
|
-
r.value instanceof
|
|
1069
|
+
r.value instanceof _await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
471
1070
|
}
|
|
472
1071
|
function fulfill(value) {
|
|
473
1072
|
resume("next", value);
|
|
@@ -479,7 +1078,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
479
1078
|
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
480
1079
|
}
|
|
481
1080
|
};
|
|
482
|
-
__asyncDelegator = function (o) {
|
|
1081
|
+
__asyncDelegator = function __asyncDelegator(o) {
|
|
483
1082
|
var i, p;
|
|
484
1083
|
return i = {}, verb("next"), verb("throw", function (e) {
|
|
485
1084
|
throw e;
|
|
@@ -489,13 +1088,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
489
1088
|
function verb(n, f) {
|
|
490
1089
|
i[n] = o[n] ? function (v) {
|
|
491
1090
|
return (p = !p) ? {
|
|
492
|
-
value:
|
|
1091
|
+
value: _await(o[n](v)),
|
|
493
1092
|
done: false
|
|
494
1093
|
} : f ? f(v) : v;
|
|
495
1094
|
} : f;
|
|
496
1095
|
}
|
|
497
1096
|
};
|
|
498
|
-
__asyncValues = function (o) {
|
|
1097
|
+
__asyncValues = function __asyncValues(o) {
|
|
499
1098
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
500
1099
|
var m = o[Symbol.asyncIterator],
|
|
501
1100
|
i;
|
|
@@ -518,7 +1117,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
518
1117
|
}, reject);
|
|
519
1118
|
}
|
|
520
1119
|
};
|
|
521
|
-
__makeTemplateObject = function (cooked, raw) {
|
|
1120
|
+
__makeTemplateObject = function __makeTemplateObject(cooked, raw) {
|
|
522
1121
|
if (Object.defineProperty) {
|
|
523
1122
|
Object.defineProperty(cooked, "raw", {
|
|
524
1123
|
value: raw
|
|
@@ -536,42 +1135,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
536
1135
|
} : function (o, v) {
|
|
537
1136
|
o["default"] = v;
|
|
538
1137
|
};
|
|
539
|
-
var
|
|
540
|
-
|
|
1138
|
+
var _ownKeys = function ownKeys(o) {
|
|
1139
|
+
_ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
541
1140
|
var ar = [];
|
|
542
1141
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
543
1142
|
return ar;
|
|
544
1143
|
};
|
|
545
|
-
return
|
|
1144
|
+
return _ownKeys(o);
|
|
546
1145
|
};
|
|
547
|
-
__importStar = function (mod) {
|
|
1146
|
+
__importStar = function __importStar(mod) {
|
|
548
1147
|
if (mod && mod.__esModule) return mod;
|
|
549
1148
|
var result = {};
|
|
550
|
-
if (mod != null) for (var k =
|
|
1149
|
+
if (mod != null) for (var k = _ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
551
1150
|
__setModuleDefault(result, mod);
|
|
552
1151
|
return result;
|
|
553
1152
|
};
|
|
554
|
-
__importDefault = function (mod) {
|
|
1153
|
+
__importDefault = function __importDefault(mod) {
|
|
555
1154
|
return mod && mod.__esModule ? mod : {
|
|
556
1155
|
"default": mod
|
|
557
1156
|
};
|
|
558
1157
|
};
|
|
559
|
-
__classPrivateFieldGet = function (receiver, state, kind, f) {
|
|
1158
|
+
__classPrivateFieldGet = function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
560
1159
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
561
1160
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
562
1161
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
563
1162
|
};
|
|
564
|
-
__classPrivateFieldSet = function (receiver, state, value, kind, f) {
|
|
1163
|
+
__classPrivateFieldSet = function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
565
1164
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
566
1165
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
567
1166
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
568
1167
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
569
1168
|
};
|
|
570
|
-
__classPrivateFieldIn = function (state, receiver) {
|
|
1169
|
+
__classPrivateFieldIn = function __classPrivateFieldIn(state, receiver) {
|
|
571
1170
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
572
1171
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
573
1172
|
};
|
|
574
|
-
__addDisposableResource = function (env, value, async) {
|
|
1173
|
+
__addDisposableResource = function __addDisposableResource(env, value, async) {
|
|
575
1174
|
if (value !== null && value !== undefined) {
|
|
576
1175
|
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
577
1176
|
var dispose, inner;
|
|
@@ -585,7 +1184,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
585
1184
|
if (async) inner = dispose;
|
|
586
1185
|
}
|
|
587
1186
|
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
588
|
-
if (inner) dispose = function () {
|
|
1187
|
+
if (inner) dispose = function dispose() {
|
|
589
1188
|
try {
|
|
590
1189
|
inner.call(this);
|
|
591
1190
|
} catch (e) {
|
|
@@ -608,7 +1207,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
608
1207
|
var e = new Error(message);
|
|
609
1208
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
610
1209
|
};
|
|
611
|
-
__disposeResources = function (env) {
|
|
1210
|
+
__disposeResources = function __disposeResources(env) {
|
|
612
1211
|
function fail(e) {
|
|
613
1212
|
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
614
1213
|
env.hasError = true;
|
|
@@ -635,7 +1234,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
635
1234
|
}
|
|
636
1235
|
return next();
|
|
637
1236
|
};
|
|
638
|
-
__rewriteRelativeImportExtension = function (path, preserveJsx) {
|
|
1237
|
+
__rewriteRelativeImportExtension = function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
639
1238
|
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
640
1239
|
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
641
1240
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
@@ -662,7 +1261,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
662
1261
|
exporter("__spread", __spread);
|
|
663
1262
|
exporter("__spreadArrays", __spreadArrays);
|
|
664
1263
|
exporter("__spreadArray", __spreadArray);
|
|
665
|
-
exporter("__await",
|
|
1264
|
+
exporter("__await", _await);
|
|
666
1265
|
exporter("__asyncGenerator", __asyncGenerator);
|
|
667
1266
|
exporter("__asyncDelegator", __asyncDelegator);
|
|
668
1267
|
exporter("__asyncValues", __asyncValues);
|
|
@@ -686,7 +1285,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
686
1285
|
});
|
|
687
1286
|
var nativeModule = _$$_REQUIRE(_dependencyMap[0]).TurboModuleRegistry.get('AmazonReactNativePerformanceListsProfilerModule');
|
|
688
1287
|
var module = {
|
|
689
|
-
invokeCallback: function () {
|
|
1288
|
+
invokeCallback: function invokeCallback() {
|
|
690
1289
|
if (!nativeModule) {
|
|
691
1290
|
throw new Error('Lists profiler module not found in NativeModules. Chances are you\'re in a test environment, but the mocks have not been setup correctly');
|
|
692
1291
|
}
|
|
@@ -785,14 +1384,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
785
1384
|
* will remain to ensure logic does not differ in production.
|
|
786
1385
|
*/
|
|
787
1386
|
var NODE_ENV = "production";
|
|
788
|
-
var invariant = (condition, format
|
|
1387
|
+
var invariant = function invariant(condition, format) {
|
|
1388
|
+
for (var _len = arguments.length, extraArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
1389
|
+
extraArgs[_key - 2] = arguments[_key];
|
|
1390
|
+
}
|
|
789
1391
|
if (!condition) {
|
|
790
1392
|
var error;
|
|
791
1393
|
if (format === undefined) {
|
|
792
1394
|
error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
793
1395
|
} else {
|
|
794
1396
|
var argIndex = 0;
|
|
795
|
-
error = new Error(format.replace(/%s/g, ()
|
|
1397
|
+
error = new Error(format.replace(/%s/g, function () {
|
|
1398
|
+
return extraArgs[argIndex++];
|
|
1399
|
+
}));
|
|
796
1400
|
error.name = 'Invariant Violation';
|
|
797
1401
|
}
|
|
798
1402
|
// @ts-ignore `framesToPop` is not part of Error type but something Meta (and maybe RN) uses.
|
|
@@ -811,8 +1415,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
811
1415
|
exports.ListsProfilerContextProvider = exports.ListsProfilerContext = undefined;
|
|
812
1416
|
var react_1 = _$$_REQUIRE(_dependencyMap[0]).__importDefault(_$$_REQUIRE(_dependencyMap[1]));
|
|
813
1417
|
exports.ListsProfilerContext = react_1.default.createContext({
|
|
814
|
-
onInteractive: function () {},
|
|
815
|
-
onBlankArea: function () {}
|
|
1418
|
+
onInteractive: function onInteractive() {},
|
|
1419
|
+
onBlankArea: function onBlankArea() {}
|
|
816
1420
|
});
|
|
817
1421
|
exports.ListsProfilerContextProvider = exports.ListsProfilerContext.Provider;
|
|
818
1422
|
},"97c078610d0d00604266",["b315a84be841b96ec849","6ed0e34da2b23bd3554f"]);
|
|
@@ -853,7 +1457,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
853
1457
|
});
|
|
854
1458
|
var FlashListPerformanceViewNativeComponent = FlashListPerformanceView;
|
|
855
1459
|
exports.FlashListPerformanceViewNativeComponent = FlashListPerformanceViewNativeComponent;
|
|
856
|
-
},"d7de96e97d9f3cc12bb5",["b315a84be841b96ec849","
|
|
1460
|
+
},"d7de96e97d9f3cc12bb5",["b315a84be841b96ec849","76b52edafd968705fff3"]);
|
|
857
1461
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
858
1462
|
function _interopRequireDefault(e) {
|
|
859
1463
|
return e && e.__esModule ? e : {
|
|
@@ -861,7 +1465,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
861
1465
|
};
|
|
862
1466
|
}
|
|
863
1467
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
864
|
-
},"
|
|
1468
|
+
},"277a84013d7e1a1ace05",[]);
|
|
865
1469
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
866
1470
|
/**
|
|
867
1471
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -882,7 +1486,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
882
1486
|
* The invariant message will be stripped in production, but the invariant
|
|
883
1487
|
* will remain to ensure logic does not differ in production.
|
|
884
1488
|
*/
|
|
885
|
-
var invariant = function (condition, format, a, b, c, d, e, f) {
|
|
1489
|
+
var invariant = function invariant(condition, format, a, b, c, d, e, f) {
|
|
886
1490
|
if (!condition) {
|
|
887
1491
|
var error;
|
|
888
1492
|
if (format === undefined) {
|
|
@@ -923,13 +1527,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
923
1527
|
return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r, e) || _$$_REQUIRE(_dependencyMap[2])(r, e) || _$$_REQUIRE(_dependencyMap[3])();
|
|
924
1528
|
}
|
|
925
1529
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
926
|
-
},"
|
|
1530
|
+
},"d73b3a84588342abd1b6",["c18fba4833d885627fc3","db861c9134e305a92464","e7044bb724c5bd68e2cc","d2c95b166a5bd41ca703"]);
|
|
927
1531
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
928
1532
|
function _arrayWithHoles(r) {
|
|
929
1533
|
if (Array.isArray(r)) return r;
|
|
930
1534
|
}
|
|
931
1535
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
932
|
-
},"
|
|
1536
|
+
},"c18fba4833d885627fc3",[]);
|
|
933
1537
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
934
1538
|
function _iterableToArrayLimit(r, l) {
|
|
935
1539
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -959,7 +1563,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
959
1563
|
}
|
|
960
1564
|
}
|
|
961
1565
|
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
962
|
-
},"
|
|
1566
|
+
},"db861c9134e305a92464",[]);
|
|
963
1567
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
964
1568
|
function _unsupportedIterableToArray(r, a) {
|
|
965
1569
|
if (r) {
|
|
@@ -969,7 +1573,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
969
1573
|
}
|
|
970
1574
|
}
|
|
971
1575
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
972
|
-
},"
|
|
1576
|
+
},"e7044bb724c5bd68e2cc",["378be3062418cfac9327"]);
|
|
973
1577
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
974
1578
|
function _arrayLikeToArray(r, a) {
|
|
975
1579
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -977,19 +1581,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
977
1581
|
return n;
|
|
978
1582
|
}
|
|
979
1583
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
980
|
-
},"
|
|
1584
|
+
},"378be3062418cfac9327",[]);
|
|
981
1585
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
982
1586
|
function _nonIterableRest() {
|
|
983
1587
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
984
1588
|
}
|
|
985
1589
|
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
986
|
-
},"
|
|
1590
|
+
},"d2c95b166a5bd41ca703",[]);
|
|
987
1591
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
988
1592
|
function _classCallCheck(a, n) {
|
|
989
1593
|
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
990
1594
|
}
|
|
991
1595
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
992
|
-
},"
|
|
1596
|
+
},"cb664999166f9660a878",[]);
|
|
993
1597
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
994
1598
|
function _defineProperties(e, r) {
|
|
995
1599
|
for (var t = 0; t < r.length; t++) {
|
|
@@ -1003,14 +1607,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1003
1607
|
}), e;
|
|
1004
1608
|
}
|
|
1005
1609
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1006
|
-
},"
|
|
1610
|
+
},"68819e29ebee24bb0e88",["cbba112244d360ffda7a"]);
|
|
1007
1611
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1008
1612
|
function toPropertyKey(t) {
|
|
1009
1613
|
var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
|
|
1010
1614
|
return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
|
|
1011
1615
|
}
|
|
1012
1616
|
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1013
|
-
},"
|
|
1617
|
+
},"cbba112244d360ffda7a",["ad82d340d0b5dc5f0801","e08c69ed06cf526909e3"]);
|
|
1014
1618
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1015
1619
|
function toPrimitive(t, r) {
|
|
1016
1620
|
if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
|
|
@@ -1023,7 +1627,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1023
1627
|
return ("string" === r ? String : Number)(t);
|
|
1024
1628
|
}
|
|
1025
1629
|
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1026
|
-
},"
|
|
1630
|
+
},"ad82d340d0b5dc5f0801",["e08c69ed06cf526909e3"]);
|
|
1027
1631
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1028
1632
|
function _typeof(o) {
|
|
1029
1633
|
"@babel/helpers - typeof";
|
|
@@ -1035,7 +1639,31 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1035
1639
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
1036
1640
|
}
|
|
1037
1641
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1038
|
-
},"
|
|
1642
|
+
},"e08c69ed06cf526909e3",[]);
|
|
1643
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1644
|
+
function _toConsumableArray(r) {
|
|
1645
|
+
return _$$_REQUIRE(_dependencyMap[0])(r) || _$$_REQUIRE(_dependencyMap[1])(r) || _$$_REQUIRE(_dependencyMap[2])(r) || _$$_REQUIRE(_dependencyMap[3])();
|
|
1646
|
+
}
|
|
1647
|
+
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1648
|
+
},"838d7a057beeb5db50df",["a425fd4fe3cf47759e99","67d028b72bb61755baea","e7044bb724c5bd68e2cc","b4810fa44dd496b7d9f5"]);
|
|
1649
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1650
|
+
function _arrayWithoutHoles(r) {
|
|
1651
|
+
if (Array.isArray(r)) return _$$_REQUIRE(_dependencyMap[0])(r);
|
|
1652
|
+
}
|
|
1653
|
+
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1654
|
+
},"a425fd4fe3cf47759e99",["378be3062418cfac9327"]);
|
|
1655
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1656
|
+
function _iterableToArray(r) {
|
|
1657
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
1658
|
+
}
|
|
1659
|
+
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1660
|
+
},"67d028b72bb61755baea",[]);
|
|
1661
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1662
|
+
function _nonIterableSpread() {
|
|
1663
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1664
|
+
}
|
|
1665
|
+
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1666
|
+
},"b4810fa44dd496b7d9f5",[]);
|
|
1039
1667
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1040
1668
|
/**
|
|
1041
1669
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -1218,13 +1846,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1218
1846
|
}
|
|
1219
1847
|
var NUMBER = '[-+]?\\d*\\.?\\d+';
|
|
1220
1848
|
var PERCENTAGE = "[-+]?\\d*\\.?\\d+%";
|
|
1221
|
-
function call(
|
|
1849
|
+
function call() {
|
|
1850
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1851
|
+
args[_key] = arguments[_key];
|
|
1852
|
+
}
|
|
1222
1853
|
return '\\(\\s*(' + args.join(')\\s*,?\\s*(') + ')\\s*\\)';
|
|
1223
1854
|
}
|
|
1224
|
-
function callWithSlashSeparator(
|
|
1855
|
+
function callWithSlashSeparator() {
|
|
1856
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1857
|
+
args[_key2] = arguments[_key2];
|
|
1858
|
+
}
|
|
1225
1859
|
return '\\(\\s*(' + args.slice(0, args.length - 1).join(')\\s*,?\\s*(') + ')\\s*/\\s*(' + args[args.length - 1] + ')\\s*\\)';
|
|
1226
1860
|
}
|
|
1227
|
-
function commaSeparatedCall(
|
|
1861
|
+
function commaSeparatedCall() {
|
|
1862
|
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
1863
|
+
args[_key3] = arguments[_key3];
|
|
1864
|
+
}
|
|
1228
1865
|
return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)';
|
|
1229
1866
|
}
|
|
1230
1867
|
var cachedMatchers;
|
|
@@ -1588,6 +2225,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1588
2225
|
}
|
|
1589
2226
|
module.exports = normalizeColor;
|
|
1590
2227
|
},"bab9017c6ff43bb4a95b",[]);
|
|
2228
|
+
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
2229
|
+
function _defineProperty(e, r, t) {
|
|
2230
|
+
return (r = _$$_REQUIRE(_dependencyMap[0])(r)) in e ? Object.defineProperty(e, r, {
|
|
2231
|
+
value: t,
|
|
2232
|
+
enumerable: true,
|
|
2233
|
+
configurable: true,
|
|
2234
|
+
writable: true
|
|
2235
|
+
}) : e[r] = t, e;
|
|
2236
|
+
}
|
|
2237
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2238
|
+
},"4926d0dbc109dc5bb6c9",["cbba112244d360ffda7a"]);
|
|
1591
2239
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1592
2240
|
'use strict';
|
|
1593
2241
|
|
|
@@ -1599,8 +2247,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1599
2247
|
return assets[assetId - 1];
|
|
1600
2248
|
}
|
|
1601
2249
|
module.exports = {
|
|
1602
|
-
registerAsset,
|
|
1603
|
-
getAssetByID
|
|
2250
|
+
registerAsset: registerAsset,
|
|
2251
|
+
getAssetByID: getAssetByID
|
|
1604
2252
|
};
|
|
1605
2253
|
},"05d58bec2a6d939f08d8",[]);
|
|
1606
2254
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -1643,9 +2291,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1643
2291
|
return basePath.startsWith('/') ? basePath.substr(1) : basePath;
|
|
1644
2292
|
}
|
|
1645
2293
|
module.exports = {
|
|
1646
|
-
getAndroidResourceFolderName,
|
|
1647
|
-
getAndroidResourceIdentifier,
|
|
1648
|
-
getBasePath
|
|
2294
|
+
getAndroidResourceFolderName: getAndroidResourceFolderName,
|
|
2295
|
+
getAndroidResourceIdentifier: getAndroidResourceIdentifier,
|
|
2296
|
+
getBasePath: getBasePath
|
|
1649
2297
|
};
|
|
1650
2298
|
},"914260cfb55fe13c431c",[]);
|
|
1651
2299
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -1665,7 +2313,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1665
2313
|
var react_native_1 = _$$_REQUIRE(_dependencyMap[0]);
|
|
1666
2314
|
var FlashListPerformanceViewNativeComponent = (0, react_native_1.requireNativeComponent)('FlashListPerformanceView');
|
|
1667
2315
|
exports.FlashListPerformanceViewNativeComponent = FlashListPerformanceViewNativeComponent;
|
|
1668
|
-
},"aa354e11cfcee2413fa2",["
|
|
2316
|
+
},"aa354e11cfcee2413fa2",["26ef620f86acf7f6932a"]);
|
|
1669
2317
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1670
2318
|
function _possibleConstructorReturn(t, e) {
|
|
1671
2319
|
if (e && ("object" == _$$_REQUIRE(_dependencyMap[0])["default"](e) || "function" == typeof e)) return e;
|
|
@@ -1673,14 +2321,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1673
2321
|
return _$$_REQUIRE(_dependencyMap[1])(t);
|
|
1674
2322
|
}
|
|
1675
2323
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1676
|
-
},"
|
|
2324
|
+
},"aab42168bb4cb23540ec",["e08c69ed06cf526909e3","0716ce96f45f287fb302"]);
|
|
1677
2325
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1678
2326
|
function _assertThisInitialized(e) {
|
|
1679
2327
|
if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1680
2328
|
return e;
|
|
1681
2329
|
}
|
|
1682
2330
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1683
|
-
},"
|
|
2331
|
+
},"0716ce96f45f287fb302",[]);
|
|
1684
2332
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1685
2333
|
function _getPrototypeOf(t) {
|
|
1686
2334
|
return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
@@ -1688,7 +2336,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1688
2336
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
|
|
1689
2337
|
}
|
|
1690
2338
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1691
|
-
},"
|
|
2339
|
+
},"ba9efe5c53f1d07f5c9d",[]);
|
|
1692
2340
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1693
2341
|
function _inherits(t, e) {
|
|
1694
2342
|
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1703,7 +2351,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1703
2351
|
}), e && _$$_REQUIRE(_dependencyMap[0])(t, e);
|
|
1704
2352
|
}
|
|
1705
2353
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1706
|
-
},"
|
|
2354
|
+
},"9822a58ca7726d551fe0",["79c731bcf4b10abe8e4d"]);
|
|
1707
2355
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1708
2356
|
function _setPrototypeOf(t, e) {
|
|
1709
2357
|
return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1711,13 +2359,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1711
2359
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
|
|
1712
2360
|
}
|
|
1713
2361
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1714
|
-
},"
|
|
2362
|
+
},"79c731bcf4b10abe8e4d",[]);
|
|
1715
2363
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1716
2364
|
function _readOnlyError(r) {
|
|
1717
2365
|
throw new TypeError('"' + r + '" is read-only');
|
|
1718
2366
|
}
|
|
1719
2367
|
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1720
|
-
},"
|
|
2368
|
+
},"9a3a31f49f0e1fee57b0",[]);
|
|
1721
2369
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1722
2370
|
function _wrapNativeSuper(t) {
|
|
1723
2371
|
var r = "function" == typeof Map ? new Map() : undefined;
|
|
@@ -1742,7 +2390,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1742
2390
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
|
|
1743
2391
|
}
|
|
1744
2392
|
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1745
|
-
},"
|
|
2393
|
+
},"66be7ef871ad04671969",["9cf198b81404c8b483b0","20524c8783215c6329fe","ba9efe5c53f1d07f5c9d","79c731bcf4b10abe8e4d"]);
|
|
1746
2394
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1747
2395
|
function _isNativeFunction(t) {
|
|
1748
2396
|
try {
|
|
@@ -1752,7 +2400,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1752
2400
|
}
|
|
1753
2401
|
}
|
|
1754
2402
|
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1755
|
-
},"
|
|
2403
|
+
},"9cf198b81404c8b483b0",[]);
|
|
1756
2404
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1757
2405
|
function _construct(t, e, r) {
|
|
1758
2406
|
if (_$$_REQUIRE(_dependencyMap[0])()) return Reflect.construct.apply(null, arguments);
|
|
@@ -1762,7 +2410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1762
2410
|
return r && _$$_REQUIRE(_dependencyMap[1])(p, r.prototype), p;
|
|
1763
2411
|
}
|
|
1764
2412
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1765
|
-
},"
|
|
2413
|
+
},"20524c8783215c6329fe",["df21df9938c0adbd59f1","79c731bcf4b10abe8e4d"]);
|
|
1766
2414
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1767
2415
|
function _isNativeReflectConstruct() {
|
|
1768
2416
|
try {
|
|
@@ -1773,7 +2421,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
1773
2421
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports)();
|
|
1774
2422
|
}
|
|
1775
2423
|
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1776
|
-
},"
|
|
2424
|
+
},"df21df9938c0adbd59f1",[]);
|
|
1777
2425
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
1778
2426
|
'use strict';
|
|
1779
2427
|
|
|
@@ -2144,21 +2792,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2144
2792
|
}
|
|
2145
2793
|
return valuePromise(value);
|
|
2146
2794
|
};
|
|
2147
|
-
var
|
|
2795
|
+
var _iterableToArray = function iterableToArray(iterable) {
|
|
2148
2796
|
if (typeof Array.from === 'function') {
|
|
2149
2797
|
// ES2015+, iterables exist
|
|
2150
|
-
|
|
2798
|
+
_iterableToArray = Array.from;
|
|
2151
2799
|
return Array.from(iterable);
|
|
2152
2800
|
}
|
|
2153
2801
|
|
|
2154
2802
|
// ES5, only arrays and array-likes exist
|
|
2155
|
-
|
|
2803
|
+
_iterableToArray = function iterableToArray(x) {
|
|
2156
2804
|
return Array.prototype.slice.call(x);
|
|
2157
2805
|
};
|
|
2158
2806
|
return Array.prototype.slice.call(iterable);
|
|
2159
2807
|
};
|
|
2160
2808
|
_$$_REQUIRE(_dependencyMap[0]).all = function (arr) {
|
|
2161
|
-
var args =
|
|
2809
|
+
var args = _iterableToArray(arr);
|
|
2162
2810
|
return new (_$$_REQUIRE(_dependencyMap[0]))(function (resolve, reject) {
|
|
2163
2811
|
if (args.length === 0) return resolve([]);
|
|
2164
2812
|
var remaining = args.length;
|
|
@@ -2220,7 +2868,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2220
2868
|
return onSettledFulfill(item);
|
|
2221
2869
|
}
|
|
2222
2870
|
_$$_REQUIRE(_dependencyMap[0]).allSettled = function (iterable) {
|
|
2223
|
-
return _$$_REQUIRE(_dependencyMap[0]).all(
|
|
2871
|
+
return _$$_REQUIRE(_dependencyMap[0]).all(_iterableToArray(iterable).map(mapAllSettled));
|
|
2224
2872
|
};
|
|
2225
2873
|
_$$_REQUIRE(_dependencyMap[0]).reject = function (value) {
|
|
2226
2874
|
return new (_$$_REQUIRE(_dependencyMap[0]))(function (resolve, reject) {
|
|
@@ -2229,7 +2877,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2229
2877
|
};
|
|
2230
2878
|
_$$_REQUIRE(_dependencyMap[0]).race = function (values) {
|
|
2231
2879
|
return new (_$$_REQUIRE(_dependencyMap[0]))(function (resolve, reject) {
|
|
2232
|
-
|
|
2880
|
+
_iterableToArray(values).forEach(function (value) {
|
|
2233
2881
|
_$$_REQUIRE(_dependencyMap[0]).resolve(value).then(resolve, reject);
|
|
2234
2882
|
});
|
|
2235
2883
|
});
|
|
@@ -2251,7 +2899,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2251
2899
|
}
|
|
2252
2900
|
_$$_REQUIRE(_dependencyMap[0]).any = function promiseAny(values) {
|
|
2253
2901
|
return new (_$$_REQUIRE(_dependencyMap[0]))(function (resolve, reject) {
|
|
2254
|
-
var promises =
|
|
2902
|
+
var promises = _iterableToArray(values);
|
|
2255
2903
|
var hasResolved = false;
|
|
2256
2904
|
var rejectionReasons = [];
|
|
2257
2905
|
function resolveOnce(value) {
|
|
@@ -2310,7 +2958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2310
2958
|
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
2311
2959
|
define({}, "");
|
|
2312
2960
|
} catch (err) {
|
|
2313
|
-
define = function (obj, key, value) {
|
|
2961
|
+
define = function define(obj, key, value) {
|
|
2314
2962
|
return obj[key] = value;
|
|
2315
2963
|
};
|
|
2316
2964
|
}
|
|
@@ -2758,7 +3406,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2758
3406
|
}
|
|
2759
3407
|
Context.prototype = {
|
|
2760
3408
|
constructor: Context,
|
|
2761
|
-
reset: function (skipTempReset) {
|
|
3409
|
+
reset: function reset(skipTempReset) {
|
|
2762
3410
|
this.prev = 0;
|
|
2763
3411
|
this.next = 0;
|
|
2764
3412
|
// Resetting context._sent for legacy support of Babel's
|
|
@@ -2778,7 +3426,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2778
3426
|
}
|
|
2779
3427
|
}
|
|
2780
3428
|
},
|
|
2781
|
-
stop: function () {
|
|
3429
|
+
stop: function stop() {
|
|
2782
3430
|
this.done = true;
|
|
2783
3431
|
var rootEntry = this.tryEntries[0];
|
|
2784
3432
|
var rootRecord = rootEntry.completion;
|
|
@@ -2787,7 +3435,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2787
3435
|
}
|
|
2788
3436
|
return this.rval;
|
|
2789
3437
|
},
|
|
2790
|
-
dispatchException: function (exception) {
|
|
3438
|
+
dispatchException: function dispatchException(exception) {
|
|
2791
3439
|
if (this.done) {
|
|
2792
3440
|
throw exception;
|
|
2793
3441
|
}
|
|
@@ -2836,7 +3484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2836
3484
|
}
|
|
2837
3485
|
}
|
|
2838
3486
|
},
|
|
2839
|
-
abrupt: function (type, arg) {
|
|
3487
|
+
abrupt: function abrupt(type, arg) {
|
|
2840
3488
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2841
3489
|
var entry = this.tryEntries[i];
|
|
2842
3490
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
@@ -2859,7 +3507,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2859
3507
|
}
|
|
2860
3508
|
return this.complete(record);
|
|
2861
3509
|
},
|
|
2862
|
-
complete: function (record, afterLoc) {
|
|
3510
|
+
complete: function complete(record, afterLoc) {
|
|
2863
3511
|
if (record.type === "throw") {
|
|
2864
3512
|
throw record.arg;
|
|
2865
3513
|
}
|
|
@@ -2874,7 +3522,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2874
3522
|
}
|
|
2875
3523
|
return ContinueSentinel;
|
|
2876
3524
|
},
|
|
2877
|
-
finish: function (finallyLoc) {
|
|
3525
|
+
finish: function finish(finallyLoc) {
|
|
2878
3526
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2879
3527
|
var entry = this.tryEntries[i];
|
|
2880
3528
|
if (entry.finallyLoc === finallyLoc) {
|
|
@@ -2884,7 +3532,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2884
3532
|
}
|
|
2885
3533
|
}
|
|
2886
3534
|
},
|
|
2887
|
-
"catch": function (tryLoc) {
|
|
3535
|
+
"catch": function _catch(tryLoc) {
|
|
2888
3536
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2889
3537
|
var entry = this.tryEntries[i];
|
|
2890
3538
|
if (entry.tryLoc === tryLoc) {
|
|
@@ -2901,7 +3549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2901
3549
|
// argument that corresponds to a known catch block.
|
|
2902
3550
|
throw new Error("illegal catch attempt");
|
|
2903
3551
|
},
|
|
2904
|
-
delegateYield: function (iterable, resultName, nextLoc) {
|
|
3552
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
2905
3553
|
this.delegate = {
|
|
2906
3554
|
iterator: values(iterable),
|
|
2907
3555
|
resultName: resultName,
|
|
@@ -2958,14 +3606,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
2958
3606
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
|
|
2959
3607
|
}
|
|
2960
3608
|
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2961
|
-
},"
|
|
3609
|
+
},"55062adb34159de0ea92",["d53f05ad44723a08f608"]);
|
|
2962
3610
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
2963
3611
|
function _superPropBase(t, o) {
|
|
2964
3612
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _$$_REQUIRE(_dependencyMap[0])(t)););
|
|
2965
3613
|
return t;
|
|
2966
3614
|
}
|
|
2967
3615
|
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2968
|
-
},"
|
|
3616
|
+
},"d53f05ad44723a08f608",["ba9efe5c53f1d07f5c9d"]);
|
|
2969
3617
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
2970
3618
|
/**
|
|
2971
3619
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
@@ -3050,8 +3698,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3050
3698
|
*/
|
|
3051
3699
|
function Event(eventTarget, event) {
|
|
3052
3700
|
privateData.set(this, {
|
|
3053
|
-
eventTarget,
|
|
3054
|
-
event,
|
|
3701
|
+
eventTarget: eventTarget,
|
|
3702
|
+
event: event,
|
|
3055
3703
|
eventPhase: 2,
|
|
3056
3704
|
currentTarget: eventTarget,
|
|
3057
3705
|
canceled: false,
|
|
@@ -3103,7 +3751,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3103
3751
|
/**
|
|
3104
3752
|
* @returns {EventTarget[]} The composed path of this event.
|
|
3105
3753
|
*/
|
|
3106
|
-
composedPath() {
|
|
3754
|
+
composedPath: function composedPath() {
|
|
3107
3755
|
var currentTarget = pd(this).currentTarget;
|
|
3108
3756
|
if (currentTarget == null) {
|
|
3109
3757
|
return [];
|
|
@@ -3149,7 +3797,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3149
3797
|
* Stop event bubbling.
|
|
3150
3798
|
* @returns {void}
|
|
3151
3799
|
*/
|
|
3152
|
-
stopPropagation() {
|
|
3800
|
+
stopPropagation: function stopPropagation() {
|
|
3153
3801
|
var data = pd(this);
|
|
3154
3802
|
data.stopped = true;
|
|
3155
3803
|
if (typeof data.event.stopPropagation === "function") {
|
|
@@ -3160,7 +3808,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3160
3808
|
* Stop event bubbling.
|
|
3161
3809
|
* @returns {void}
|
|
3162
3810
|
*/
|
|
3163
|
-
stopImmediatePropagation() {
|
|
3811
|
+
stopImmediatePropagation: function stopImmediatePropagation() {
|
|
3164
3812
|
var data = pd(this);
|
|
3165
3813
|
data.stopped = true;
|
|
3166
3814
|
data.immediateStopped = true;
|
|
@@ -3186,7 +3834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3186
3834
|
* Cancel this event.
|
|
3187
3835
|
* @returns {void}
|
|
3188
3836
|
*/
|
|
3189
|
-
preventDefault() {
|
|
3837
|
+
preventDefault: function preventDefault() {
|
|
3190
3838
|
setCancelFlag(pd(this));
|
|
3191
3839
|
},
|
|
3192
3840
|
/**
|
|
@@ -3256,7 +3904,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3256
3904
|
* @param {boolean} [cancelable=false] The flag to be possible to cancel.
|
|
3257
3905
|
* @deprecated
|
|
3258
3906
|
*/
|
|
3259
|
-
initEvent() {
|
|
3907
|
+
initEvent: function initEvent() {
|
|
3260
3908
|
// Do nothing.
|
|
3261
3909
|
}
|
|
3262
3910
|
};
|
|
@@ -3284,10 +3932,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3284
3932
|
*/
|
|
3285
3933
|
function defineRedirectDescriptor(key) {
|
|
3286
3934
|
return {
|
|
3287
|
-
get() {
|
|
3935
|
+
get: function get() {
|
|
3288
3936
|
return pd(this).event[key];
|
|
3289
3937
|
},
|
|
3290
|
-
set(value) {
|
|
3938
|
+
set: function set(value) {
|
|
3291
3939
|
pd(this).event[key] = value;
|
|
3292
3940
|
},
|
|
3293
3941
|
configurable: true,
|
|
@@ -3303,7 +3951,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3303
3951
|
*/
|
|
3304
3952
|
function defineCallDescriptor(key) {
|
|
3305
3953
|
return {
|
|
3306
|
-
value() {
|
|
3954
|
+
value: function value() {
|
|
3307
3955
|
var event = pd(this).event;
|
|
3308
3956
|
return event[key].apply(event, arguments);
|
|
3309
3957
|
},
|
|
@@ -3474,7 +4122,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3474
4122
|
*/
|
|
3475
4123
|
function defineEventAttributeDescriptor(eventName) {
|
|
3476
4124
|
return {
|
|
3477
|
-
get() {
|
|
4125
|
+
get: function get() {
|
|
3478
4126
|
var listeners = getListeners(this);
|
|
3479
4127
|
var node = listeners.get(eventName);
|
|
3480
4128
|
while (node != null) {
|
|
@@ -3485,7 +4133,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3485
4133
|
}
|
|
3486
4134
|
return null;
|
|
3487
4135
|
},
|
|
3488
|
-
set(listener) {
|
|
4136
|
+
set: function set(listener) {
|
|
3489
4137
|
if (typeof listener !== "function" && !isObject(listener)) {
|
|
3490
4138
|
listener = null; // eslint-disable-line no-param-reassign
|
|
3491
4139
|
}
|
|
@@ -3513,7 +4161,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3513
4161
|
// Add new value.
|
|
3514
4162
|
if (listener !== null) {
|
|
3515
4163
|
var newNode = {
|
|
3516
|
-
listener,
|
|
4164
|
+
listener: listener,
|
|
3517
4165
|
listenerType: ATTRIBUTE,
|
|
3518
4166
|
passive: false,
|
|
3519
4167
|
once: false,
|
|
@@ -3607,7 +4255,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3607
4255
|
* @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.
|
|
3608
4256
|
* @returns {void}
|
|
3609
4257
|
*/
|
|
3610
|
-
addEventListener(eventName, listener, options) {
|
|
4258
|
+
addEventListener: function addEventListener(eventName, listener, options) {
|
|
3611
4259
|
if (listener == null) {
|
|
3612
4260
|
return;
|
|
3613
4261
|
}
|
|
@@ -3619,8 +4267,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3619
4267
|
var capture = optionsIsObj ? Boolean(options.capture) : Boolean(options);
|
|
3620
4268
|
var listenerType = capture ? CAPTURE : BUBBLE;
|
|
3621
4269
|
var newNode = {
|
|
3622
|
-
listener,
|
|
3623
|
-
listenerType,
|
|
4270
|
+
listener: listener,
|
|
4271
|
+
listenerType: listenerType,
|
|
3624
4272
|
passive: optionsIsObj && Boolean(options.passive),
|
|
3625
4273
|
once: optionsIsObj && Boolean(options.once),
|
|
3626
4274
|
next: null
|
|
@@ -3654,7 +4302,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3654
4302
|
* @param {boolean|{capture?:boolean,passive?:boolean,once?:boolean}} [options] The options for this listener.
|
|
3655
4303
|
* @returns {void}
|
|
3656
4304
|
*/
|
|
3657
|
-
removeEventListener(eventName, listener, options) {
|
|
4305
|
+
removeEventListener: function removeEventListener(eventName, listener, options) {
|
|
3658
4306
|
if (listener == null) {
|
|
3659
4307
|
return;
|
|
3660
4308
|
}
|
|
@@ -3683,7 +4331,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3683
4331
|
* @param {Event|{type:string}} event The event to dispatch.
|
|
3684
4332
|
* @returns {boolean} `false` if canceled.
|
|
3685
4333
|
*/
|
|
3686
|
-
dispatchEvent(event) {
|
|
4334
|
+
dispatchEvent: function dispatchEvent(event) {
|
|
3687
4335
|
if (event == null || typeof event.type !== "string") {
|
|
3688
4336
|
throw new TypeError('"event.type" should be a string.');
|
|
3689
4337
|
}
|
|
@@ -3919,7 +4567,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
3919
4567
|
// Build a destructive iterator for the value list
|
|
3920
4568
|
function iteratorFor(items) {
|
|
3921
4569
|
var iterator = {
|
|
3922
|
-
next: function () {
|
|
4570
|
+
next: function next() {
|
|
3923
4571
|
var value = items.shift();
|
|
3924
4572
|
return {
|
|
3925
4573
|
done: value === undefined,
|
|
@@ -4443,7 +5091,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4443
5091
|
return i;
|
|
4444
5092
|
}
|
|
4445
5093
|
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4446
|
-
},"
|
|
5094
|
+
},"a2c8e692f78bae5b8b98",["5927789db7c756c318ed"]);
|
|
4447
5095
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4448
5096
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
4449
5097
|
if (null == r) return {};
|
|
@@ -4455,7 +5103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4455
5103
|
return t;
|
|
4456
5104
|
}
|
|
4457
5105
|
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4458
|
-
},"
|
|
5106
|
+
},"5927789db7c756c318ed",[]);
|
|
4459
5107
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4460
5108
|
/**
|
|
4461
5109
|
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
@@ -4464,7 +5112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4464
5112
|
'use strict';
|
|
4465
5113
|
|
|
4466
5114
|
function _callSuper(t, o, e) { return o = _$$_REQUIRE(_dependencyMap[0])(o), _$$_REQUIRE(_dependencyMap[1])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _$$_REQUIRE(_dependencyMap[0])(t).constructor) : o.apply(t, e)); }
|
|
4467
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
5115
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
4468
5116
|
Object.defineProperty(exports, '__esModule', {
|
|
4469
5117
|
value: true
|
|
4470
5118
|
});
|
|
@@ -4489,7 +5137,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4489
5137
|
_$$_REQUIRE(_dependencyMap[3])(AbortSignal, _eventTargetShim$Even);
|
|
4490
5138
|
return _$$_REQUIRE(_dependencyMap[4])(AbortSignal, [{
|
|
4491
5139
|
key: "aborted",
|
|
4492
|
-
get: function () {
|
|
5140
|
+
get: function get() {
|
|
4493
5141
|
var aborted = abortedFlags.get(this);
|
|
4494
5142
|
if (typeof aborted !== "boolean") {
|
|
4495
5143
|
throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
|
|
@@ -4555,7 +5203,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4555
5203
|
*/
|
|
4556
5204
|
return _$$_REQUIRE(_dependencyMap[4])(AbortController, [{
|
|
4557
5205
|
key: "signal",
|
|
4558
|
-
get: function () {
|
|
5206
|
+
get: function get() {
|
|
4559
5207
|
return getSignal(this);
|
|
4560
5208
|
}
|
|
4561
5209
|
/**
|
|
@@ -4603,7 +5251,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4603
5251
|
module.exports = AbortController;
|
|
4604
5252
|
module.exports.AbortController = module.exports["default"] = AbortController;
|
|
4605
5253
|
module.exports.AbortSignal = AbortSignal;
|
|
4606
|
-
},"ea8fcbd647aab1cfcdaa",["
|
|
5254
|
+
},"ea8fcbd647aab1cfcdaa",["ba9efe5c53f1d07f5c9d","aab42168bb4cb23540ec","cb664999166f9660a878","9822a58ca7726d551fe0","68819e29ebee24bb0e88","2bd3f165b1ed6b916de7"]);
|
|
4607
5255
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
4608
5256
|
'use strict';
|
|
4609
5257
|
|
|
@@ -4658,13 +5306,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4658
5306
|
var l;
|
|
4659
5307
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
4660
5308
|
var p = performance;
|
|
4661
|
-
l = function () {
|
|
5309
|
+
l = function l() {
|
|
4662
5310
|
return p.now();
|
|
4663
5311
|
};
|
|
4664
5312
|
} else {
|
|
4665
5313
|
var q = Date,
|
|
4666
5314
|
r = q.now();
|
|
4667
|
-
l = function () {
|
|
5315
|
+
l = function l() {
|
|
4668
5316
|
return q.now() - r;
|
|
4669
5317
|
};
|
|
4670
5318
|
}
|
|
@@ -4787,16 +5435,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4787
5435
|
} else L = false;
|
|
4788
5436
|
}
|
|
4789
5437
|
var M;
|
|
4790
|
-
if ("function" === typeof G) M = function () {
|
|
5438
|
+
if ("function" === typeof G) M = function M() {
|
|
4791
5439
|
G(V);
|
|
4792
5440
|
};else if ("undefined" !== typeof MessageChannel) {
|
|
4793
5441
|
var W = new MessageChannel(),
|
|
4794
5442
|
X = W.port2;
|
|
4795
5443
|
W.port1.onmessage = V;
|
|
4796
|
-
M = function () {
|
|
5444
|
+
M = function M() {
|
|
4797
5445
|
X.postMessage(null);
|
|
4798
5446
|
};
|
|
4799
|
-
} else M = function () {
|
|
5447
|
+
} else M = function M() {
|
|
4800
5448
|
D(V, 0);
|
|
4801
5449
|
};
|
|
4802
5450
|
function N(a, b) {
|
|
@@ -4879,7 +5527,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
4879
5527
|
/**
|
|
4880
5528
|
* @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js
|
|
4881
5529
|
*/
|
|
4882
|
-
var colorPropType = function (isRequired, props, propName, componentName, location, propFullName) {
|
|
5530
|
+
var colorPropType = function colorPropType(isRequired, props, propName, componentName, location, propFullName) {
|
|
4883
5531
|
var color = props[propName];
|
|
4884
5532
|
if (color == null) {
|
|
4885
5533
|
if (isRequired) {
|
|
@@ -5036,8 +5684,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5036
5684
|
/**
|
|
5037
5685
|
* @see facebook/react-native/Libraries/Image/ImageProps.js
|
|
5038
5686
|
*/
|
|
5039
|
-
var DeprecatedImagePropType = {
|
|
5040
|
-
..._$$_REQUIRE(_dependencyMap[0]),
|
|
5687
|
+
var DeprecatedImagePropType = Object.assign({}, _$$_REQUIRE(_dependencyMap[0]), {
|
|
5041
5688
|
alt: _$$_REQUIRE(_dependencyMap[1]).string,
|
|
5042
5689
|
blurRadius: _$$_REQUIRE(_dependencyMap[1]).number,
|
|
5043
5690
|
capInsets: _$$_REQUIRE(_dependencyMap[2]),
|
|
@@ -5066,7 +5713,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5066
5713
|
testID: _$$_REQUIRE(_dependencyMap[1]).string,
|
|
5067
5714
|
tintColor: _$$_REQUIRE(_dependencyMap[6]),
|
|
5068
5715
|
width: _$$_REQUIRE(_dependencyMap[1]).number
|
|
5069
|
-
};
|
|
5716
|
+
});
|
|
5070
5717
|
module.exports = DeprecatedImagePropType;
|
|
5071
5718
|
},"9f1779357aba412bb49f",["6a37ec0494ff683c49f2","385f56cce85bf58dda18","e113bc2a6b8133e753f1","00fed86b64880bf848bf","ecd8893ff4b33ee73955","0b77c2d463c8dbef3508","0ff2848f3ff6f1a02356"]);
|
|
5072
5719
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5139,12 +5786,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5139
5786
|
/**
|
|
5140
5787
|
* @see facebook/react-native/Libraries/Components/View/ViewPropTypes.js
|
|
5141
5788
|
*/
|
|
5142
|
-
var DeprecatedViewPropTypes = {
|
|
5143
|
-
...MouseEventPropTypes,
|
|
5144
|
-
...PointerEventPropTypes,
|
|
5145
|
-
...FocusEventPropTypes,
|
|
5146
|
-
...TouchEventPropTypes,
|
|
5147
|
-
...GestureResponderEventPropTypes,
|
|
5789
|
+
var DeprecatedViewPropTypes = Object.assign({}, MouseEventPropTypes, PointerEventPropTypes, FocusEventPropTypes, TouchEventPropTypes, GestureResponderEventPropTypes, {
|
|
5148
5790
|
'aria-busy': _$$_REQUIRE(_dependencyMap[0]).bool,
|
|
5149
5791
|
'aria-checked': _$$_REQUIRE(_dependencyMap[0]).oneOfType([_$$_REQUIRE(_dependencyMap[0]).bool, _$$_REQUIRE(_dependencyMap[0]).oneOf(['mixed'])]),
|
|
5150
5792
|
'aria-disabled': _$$_REQUIRE(_dependencyMap[0]).bool,
|
|
@@ -5194,7 +5836,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5194
5836
|
style: _$$_REQUIRE(_dependencyMap[3])(_$$_REQUIRE(_dependencyMap[4])),
|
|
5195
5837
|
tabIndex: _$$_REQUIRE(_dependencyMap[0]).oneOf([0, -1]),
|
|
5196
5838
|
testID: _$$_REQUIRE(_dependencyMap[0]).string
|
|
5197
|
-
};
|
|
5839
|
+
});
|
|
5198
5840
|
module.exports = DeprecatedViewPropTypes;
|
|
5199
5841
|
},"6a37ec0494ff683c49f2",["385f56cce85bf58dda18","dc269c006cd52aa8a392","e113bc2a6b8133e753f1","ecd8893ff4b33ee73955","b0bd5168a69d8a903511"]);
|
|
5200
5842
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5235,14 +5877,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5235
5877
|
|
|
5236
5878
|
function DeprecatedStyleSheetPropType(shape) {
|
|
5237
5879
|
var shapePropType = _$$_REQUIRE(_dependencyMap[0])(shape);
|
|
5238
|
-
return function (props, propName, componentName, location
|
|
5880
|
+
return function (props, propName, componentName, location) {
|
|
5239
5881
|
var newProps = props;
|
|
5240
5882
|
if (props[propName]) {
|
|
5241
5883
|
// Just make a dummy prop object with only the flattened style
|
|
5242
5884
|
newProps = {};
|
|
5243
5885
|
newProps[propName] = flattenStyle(props[propName]);
|
|
5244
5886
|
}
|
|
5245
|
-
|
|
5887
|
+
for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
|
|
5888
|
+
rest[_key - 4] = arguments[_key];
|
|
5889
|
+
}
|
|
5890
|
+
return shapePropType.apply(undefined, [newProps, propName, componentName, location].concat(rest));
|
|
5246
5891
|
};
|
|
5247
5892
|
}
|
|
5248
5893
|
function flattenStyle(style) {
|
|
@@ -5278,7 +5923,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5278
5923
|
'use strict';
|
|
5279
5924
|
|
|
5280
5925
|
function deprecatedCreateStrictShapeTypeChecker(shapeTypes) {
|
|
5281
|
-
function checkType(isRequired, props, propName, componentName, location
|
|
5926
|
+
function checkType(isRequired, props, propName, componentName, location) {
|
|
5282
5927
|
if (!props[propName]) {
|
|
5283
5928
|
if (isRequired) {
|
|
5284
5929
|
_$$_REQUIRE(_dependencyMap[0])(false, `Required object \`${propName}\` was not specified in ` + `\`${componentName}\`.`);
|
|
@@ -5293,23 +5938,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5293
5938
|
}
|
|
5294
5939
|
// We need to check all keys in case some are required but missing from
|
|
5295
5940
|
// props.
|
|
5296
|
-
var allKeys = {
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
}
|
|
5941
|
+
var allKeys = Object.assign({}, props[propName], shapeTypes);
|
|
5942
|
+
for (var _len = arguments.length, rest = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
|
|
5943
|
+
rest[_key - 5] = arguments[_key];
|
|
5944
|
+
}
|
|
5300
5945
|
for (var key in allKeys) {
|
|
5301
5946
|
var checker = shapeTypes[key];
|
|
5302
5947
|
if (!checker) {
|
|
5303
5948
|
_$$_REQUIRE(_dependencyMap[0])(false, `Invalid props.${propName} key \`${key}\` supplied to \`${componentName}\`.` + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
|
5304
5949
|
}
|
|
5305
|
-
var error = checker(propValue, key, componentName, location
|
|
5950
|
+
var error = checker.apply(undefined, [propValue, key, componentName, location].concat(rest));
|
|
5306
5951
|
if (error) {
|
|
5307
5952
|
_$$_REQUIRE(_dependencyMap[0])(false, error.message + '\nBad object: ' + JSON.stringify(props[propName], null, ' '));
|
|
5308
5953
|
}
|
|
5309
5954
|
}
|
|
5310
5955
|
}
|
|
5311
|
-
function chainedCheckType(props, propName, componentName, location
|
|
5312
|
-
|
|
5956
|
+
function chainedCheckType(props, propName, componentName, location) {
|
|
5957
|
+
for (var _len2 = arguments.length, rest = new Array(_len2 > 4 ? _len2 - 4 : 0), _key2 = 4; _key2 < _len2; _key2++) {
|
|
5958
|
+
rest[_key2 - 4] = arguments[_key2];
|
|
5959
|
+
}
|
|
5960
|
+
return checkType.apply(undefined, [false, props, propName, componentName, location].concat(rest));
|
|
5313
5961
|
}
|
|
5314
5962
|
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
5315
5963
|
return chainedCheckType;
|
|
@@ -5331,10 +5979,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5331
5979
|
/**
|
|
5332
5980
|
* @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js
|
|
5333
5981
|
*/
|
|
5334
|
-
var DeprecatedViewStylePropTypes = {
|
|
5335
|
-
..._$$_REQUIRE(_dependencyMap[0]),
|
|
5336
|
-
..._$$_REQUIRE(_dependencyMap[1]),
|
|
5337
|
-
..._$$_REQUIRE(_dependencyMap[2]),
|
|
5982
|
+
var DeprecatedViewStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0]), _$$_REQUIRE(_dependencyMap[1]), _$$_REQUIRE(_dependencyMap[2]), {
|
|
5338
5983
|
backfaceVisibility: _$$_REQUIRE(_dependencyMap[3]).oneOf(['hidden', 'visible']),
|
|
5339
5984
|
backgroundColor: _$$_REQUIRE(_dependencyMap[4]),
|
|
5340
5985
|
borderBottomColor: _$$_REQUIRE(_dependencyMap[4]),
|
|
@@ -5367,7 +6012,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5367
6012
|
elevation: _$$_REQUIRE(_dependencyMap[3]).number,
|
|
5368
6013
|
opacity: _$$_REQUIRE(_dependencyMap[3]).number,
|
|
5369
6014
|
pointerEvents: _$$_REQUIRE(_dependencyMap[3]).oneOf(['auto', 'box-none', 'box-only', 'none'])
|
|
5370
|
-
};
|
|
6015
|
+
});
|
|
5371
6016
|
module.exports = DeprecatedViewStylePropTypes;
|
|
5372
6017
|
},"b0bd5168a69d8a903511",["fdc284a1196df7b8b1c7","c694fefe532e4748da9d","1dd7395967b3c81dc0f2","385f56cce85bf58dda18","0ff2848f3ff6f1a02356"]);
|
|
5373
6018
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5580,10 +6225,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5580
6225
|
/**
|
|
5581
6226
|
* @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js
|
|
5582
6227
|
*/
|
|
5583
|
-
var DeprecatedImageStylePropTypes = {
|
|
5584
|
-
..._$$_REQUIRE(_dependencyMap[0]),
|
|
5585
|
-
..._$$_REQUIRE(_dependencyMap[1]),
|
|
5586
|
-
..._$$_REQUIRE(_dependencyMap[2]),
|
|
6228
|
+
var DeprecatedImageStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0]), _$$_REQUIRE(_dependencyMap[1]), _$$_REQUIRE(_dependencyMap[2]), {
|
|
5587
6229
|
backfaceVisibility: _$$_REQUIRE(_dependencyMap[3]).oneOf(['hidden', 'visible']),
|
|
5588
6230
|
backgroundColor: _$$_REQUIRE(_dependencyMap[4]),
|
|
5589
6231
|
borderBottomLeftRadius: _$$_REQUIRE(_dependencyMap[3]).number,
|
|
@@ -5599,7 +6241,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5599
6241
|
overlayColor: _$$_REQUIRE(_dependencyMap[3]).string,
|
|
5600
6242
|
tintColor: _$$_REQUIRE(_dependencyMap[4]),
|
|
5601
6243
|
resizeMode: _$$_REQUIRE(_dependencyMap[3]).oneOf(['center', 'contain', 'cover', 'repeat', 'stretch'])
|
|
5602
|
-
};
|
|
6244
|
+
});
|
|
5603
6245
|
module.exports = DeprecatedImageStylePropTypes;
|
|
5604
6246
|
},"0b77c2d463c8dbef3508",["fdc284a1196df7b8b1c7","c694fefe532e4748da9d","1dd7395967b3c81dc0f2","385f56cce85bf58dda18","0ff2848f3ff6f1a02356"]);
|
|
5605
6247
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5640,8 +6282,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5640
6282
|
/**
|
|
5641
6283
|
* @see facebook/react-native/Libraries/TextInput/TextInput.js
|
|
5642
6284
|
*/
|
|
5643
|
-
var DeprecatedTextInputPropTypes = {
|
|
5644
|
-
..._$$_REQUIRE(_dependencyMap[0]),
|
|
6285
|
+
var DeprecatedTextInputPropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0]), {
|
|
5645
6286
|
allowFontScaling: _$$_REQUIRE(_dependencyMap[1]).bool,
|
|
5646
6287
|
autoCapitalize: _$$_REQUIRE(_dependencyMap[1]).oneOf(['none', 'sentences', 'words', 'characters']),
|
|
5647
6288
|
autoComplete: _$$_REQUIRE(_dependencyMap[1]).oneOf(['additional-name', 'address-line1', 'address-line2', 'bday', 'bday-day', 'bday-month', 'bday-year', 'birthdate-day', 'birthdate-full', 'birthdate-month', 'birthdate-year', 'cc-csc', 'cc-exp', 'cc-exp-day', 'cc-exp-month', 'cc-exp-year', 'cc-number', 'country', 'current-password', 'email', 'family-name', 'gender', 'given-name', 'honorific-prefix', 'honorific-suffix', 'name', 'name-family', 'name-given', 'name-middle', 'name-middle-initial', 'name-prefix', 'name-suffix', 'new-password', 'nickname', 'off', 'one-time-code', 'organization', 'organization-title', 'password', 'password-new', 'postal-address', 'postal-address-country', 'postal-address-extended', 'postal-address-extended-postal-code', 'postal-address-locality', 'postal-address-region', 'postal-code', 'sex', 'sms-otp', 'street-address', 'tel', 'tel-country-code', 'tel-device', 'tel-national', 'url', 'username', 'username-new']),
|
|
@@ -5705,7 +6346,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5705
6346
|
textContentType: _$$_REQUIRE(_dependencyMap[1]).oneOf(['addressCity', 'addressCityAndState', 'addressState', 'countryName', 'creditCardNumber', 'emailAddress', 'familyName', 'fullStreetAddress', 'givenName', 'jobTitle', 'location', 'middleName', 'name', 'namePrefix', 'nameSuffix', 'newPassword', 'nickname', 'none', 'oneTimeCode', 'organizationName', 'password', 'postalCode', 'streetAddressLine1', 'streetAddressLine2', 'sublocality', 'telephoneNumber', 'URL', 'username']),
|
|
5706
6347
|
underlineColorAndroid: _$$_REQUIRE(_dependencyMap[2]),
|
|
5707
6348
|
value: _$$_REQUIRE(_dependencyMap[1]).string
|
|
5708
|
-
};
|
|
6349
|
+
});
|
|
5709
6350
|
module.exports = DeprecatedTextInputPropTypes;
|
|
5710
6351
|
},"a287f54379336e9f732c",["6a37ec0494ff683c49f2","385f56cce85bf58dda18","0ff2848f3ff6f1a02356","14b8482f38362fa2f8cd"]);
|
|
5711
6352
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5790,8 +6431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5790
6431
|
/**
|
|
5791
6432
|
* @see facebook/react-native/Libraries/StyleSheet/StyleSheetTypes.js
|
|
5792
6433
|
*/
|
|
5793
|
-
var DeprecatedTextStylePropTypes = {
|
|
5794
|
-
..._$$_REQUIRE(_dependencyMap[0]),
|
|
6434
|
+
var DeprecatedTextStylePropTypes = Object.assign({}, _$$_REQUIRE(_dependencyMap[0]), {
|
|
5795
6435
|
color: _$$_REQUIRE(_dependencyMap[1]),
|
|
5796
6436
|
fontFamily: _$$_REQUIRE(_dependencyMap[2]).string,
|
|
5797
6437
|
fontSize: _$$_REQUIRE(_dependencyMap[2]).number,
|
|
@@ -5816,7 +6456,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5816
6456
|
userSelect: _$$_REQUIRE(_dependencyMap[2]).oneOf(['all', 'auto', 'contain', 'none', 'text']),
|
|
5817
6457
|
verticalAlign: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'bottom', 'middle', 'top']),
|
|
5818
6458
|
writingDirection: _$$_REQUIRE(_dependencyMap[2]).oneOf(['auto', 'ltr', 'rtl'])
|
|
5819
|
-
};
|
|
6459
|
+
});
|
|
5820
6460
|
module.exports = DeprecatedTextStylePropTypes;
|
|
5821
6461
|
},"41bd16fe8e2d1af40264",["b0bd5168a69d8a903511","0ff2848f3ff6f1a02356","385f56cce85bf58dda18"]);
|
|
5822
6462
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
@@ -5905,7 +6545,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5905
6545
|
exports.keyExtractor = keyExtractor;
|
|
5906
6546
|
exports.newRangeCount = newRangeCount;
|
|
5907
6547
|
var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
5908
|
-
function elementsThatOverlapOffsets(offsets, props, getFrameMetrics
|
|
6548
|
+
function elementsThatOverlapOffsets(offsets, props, getFrameMetrics) {
|
|
6549
|
+
var zoomScale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
5909
6550
|
var itemCount = props.getItemCount(props.data);
|
|
5910
6551
|
var result = [];
|
|
5911
6552
|
for (var offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {
|
|
@@ -5970,8 +6611,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
5970
6611
|
overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;
|
|
5971
6612
|
last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last;
|
|
5972
6613
|
var visible = {
|
|
5973
|
-
first,
|
|
5974
|
-
last
|
|
6614
|
+
first: first,
|
|
6615
|
+
last: last
|
|
5975
6616
|
};
|
|
5976
6617
|
var newCellCount = newRangeCount(prev, visible);
|
|
5977
6618
|
while (true) {
|
|
@@ -6001,76 +6642,78 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6001
6642
|
}
|
|
6002
6643
|
if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) {
|
|
6003
6644
|
throw new Error('Bad window calculation ' + JSON.stringify({
|
|
6004
|
-
first,
|
|
6005
|
-
last,
|
|
6006
|
-
itemCount,
|
|
6007
|
-
overscanFirst,
|
|
6008
|
-
overscanLast,
|
|
6009
|
-
visible
|
|
6645
|
+
first: first,
|
|
6646
|
+
last: last,
|
|
6647
|
+
itemCount: itemCount,
|
|
6648
|
+
overscanFirst: overscanFirst,
|
|
6649
|
+
overscanLast: overscanLast,
|
|
6650
|
+
visible: visible
|
|
6010
6651
|
}));
|
|
6011
6652
|
}
|
|
6012
6653
|
return {
|
|
6013
|
-
first,
|
|
6014
|
-
last
|
|
6654
|
+
first: first,
|
|
6655
|
+
last: last
|
|
6015
6656
|
};
|
|
6016
6657
|
}
|
|
6017
6658
|
function keyExtractor(item, index) {
|
|
6018
|
-
if (typeof item === 'object' && item
|
|
6659
|
+
if (typeof item === 'object' && (item == null ? undefined : item.key) != null) {
|
|
6019
6660
|
return item.key;
|
|
6020
6661
|
}
|
|
6021
|
-
if (typeof item === 'object' && item
|
|
6662
|
+
if (typeof item === 'object' && (item == null ? undefined : item.id) != null) {
|
|
6022
6663
|
return item.id;
|
|
6023
6664
|
}
|
|
6024
6665
|
return String(index);
|
|
6025
6666
|
}
|
|
6026
|
-
},"a26dbe2a3afa21c3cf22",["
|
|
6667
|
+
},"a26dbe2a3afa21c3cf22",["277a84013d7e1a1ace05","d73b3a84588342abd1b6"]);
|
|
6027
6668
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
6028
|
-
var
|
|
6029
|
-
var
|
|
6030
|
-
var
|
|
6031
|
-
var
|
|
6032
|
-
var
|
|
6033
|
-
var
|
|
6034
|
-
var
|
|
6035
|
-
var
|
|
6036
|
-
var
|
|
6037
|
-
var
|
|
6038
|
-
var
|
|
6039
|
-
var
|
|
6040
|
-
var
|
|
6041
|
-
var
|
|
6042
|
-
var
|
|
6043
|
-
var
|
|
6044
|
-
var
|
|
6045
|
-
|
|
6669
|
+
var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
6670
|
+
var _defineProperty2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
6671
|
+
var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
|
|
6672
|
+
var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4]));
|
|
6673
|
+
var _possibleConstructorReturn2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5]));
|
|
6674
|
+
var _getPrototypeOf2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6]));
|
|
6675
|
+
var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
|
|
6676
|
+
var _reactNative = _$$_REQUIRE(_dependencyMap[8]);
|
|
6677
|
+
var _Batchinator = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[9]));
|
|
6678
|
+
var _clamp = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10]));
|
|
6679
|
+
var _infoLog = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[11]));
|
|
6680
|
+
var _ChildListCollection = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[12]));
|
|
6681
|
+
var _FillRateHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[13]));
|
|
6682
|
+
var _StateSafePureComponent = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[14]));
|
|
6683
|
+
var _ViewabilityHelper = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[15]));
|
|
6684
|
+
var _VirtualizedListCellRenderer = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[16]));
|
|
6685
|
+
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[17]));
|
|
6686
|
+
var _nullthrows = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[18]));
|
|
6687
|
+
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[19]));
|
|
6688
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
6046
6689
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
6047
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
6690
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
6048
6691
|
var ON_EDGE_REACHED_EPSILON = 0.001;
|
|
6049
6692
|
var _usedIndexForKey = false;
|
|
6050
6693
|
var _keylessItemComponentName = '';
|
|
6051
6694
|
function horizontalOrDefault(horizontal) {
|
|
6052
|
-
return horizontal
|
|
6695
|
+
return horizontal != null ? horizontal : false;
|
|
6053
6696
|
}
|
|
6054
6697
|
function initialNumToRenderOrDefault(initialNumToRender) {
|
|
6055
|
-
return initialNumToRender
|
|
6698
|
+
return initialNumToRender != null ? initialNumToRender : 10;
|
|
6056
6699
|
}
|
|
6057
6700
|
function maxToRenderPerBatchOrDefault(maxToRenderPerBatch) {
|
|
6058
|
-
return maxToRenderPerBatch
|
|
6701
|
+
return maxToRenderPerBatch != null ? maxToRenderPerBatch : 10;
|
|
6059
6702
|
}
|
|
6060
6703
|
function onStartReachedThresholdOrDefault(onStartReachedThreshold) {
|
|
6061
|
-
return onStartReachedThreshold
|
|
6704
|
+
return onStartReachedThreshold != null ? onStartReachedThreshold : 2;
|
|
6062
6705
|
}
|
|
6063
6706
|
function onEndReachedThresholdOrDefault(onEndReachedThreshold) {
|
|
6064
|
-
return onEndReachedThreshold
|
|
6707
|
+
return onEndReachedThreshold != null ? onEndReachedThreshold : 2;
|
|
6065
6708
|
}
|
|
6066
6709
|
function getScrollingThreshold(threshold, visibleLength) {
|
|
6067
6710
|
return threshold * visibleLength / 2;
|
|
6068
6711
|
}
|
|
6069
6712
|
function scrollEventThrottleOrDefault(scrollEventThrottle) {
|
|
6070
|
-
return scrollEventThrottle
|
|
6713
|
+
return scrollEventThrottle != null ? scrollEventThrottle : 50;
|
|
6071
6714
|
}
|
|
6072
6715
|
function windowSizeOrDefault(windowSize) {
|
|
6073
|
-
return windowSize
|
|
6716
|
+
return windowSize != null ? windowSize : 21;
|
|
6074
6717
|
}
|
|
6075
6718
|
function findLastWhere(arr, predicate) {
|
|
6076
6719
|
for (var i = arr.length - 1; i >= 0; i--) {
|
|
@@ -6082,35 +6725,38 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6082
6725
|
}
|
|
6083
6726
|
var VirtualizedList = /*#__PURE__*/function (_StateSafePureCompone) {
|
|
6084
6727
|
function VirtualizedList(_props) {
|
|
6728
|
+
var _this$props$updateCel, _this$props$maintainV, _this$props$maintainV2;
|
|
6085
6729
|
var _this;
|
|
6086
6730
|
(0, _classCallCheck2.default)(this, VirtualizedList);
|
|
6087
6731
|
_this = _callSuper(this, VirtualizedList, [_props]);
|
|
6088
|
-
_this._getScrollMetrics = ()
|
|
6732
|
+
_this._getScrollMetrics = function () {
|
|
6089
6733
|
return _this._scrollMetrics;
|
|
6090
6734
|
};
|
|
6091
|
-
_this._getOutermostParentListRef = ()
|
|
6735
|
+
_this._getOutermostParentListRef = function () {
|
|
6092
6736
|
if (_this._isNestedWithSameOrientation()) {
|
|
6093
6737
|
return _this.context.getOutermostParentListRef();
|
|
6094
6738
|
} else {
|
|
6095
6739
|
return _this;
|
|
6096
6740
|
}
|
|
6097
6741
|
};
|
|
6098
|
-
_this._registerAsNestedChild = childList
|
|
6742
|
+
_this._registerAsNestedChild = function (childList) {
|
|
6099
6743
|
_this._nestedChildLists.add(childList.ref, childList.cellKey);
|
|
6100
6744
|
if (_this._hasInteracted) {
|
|
6101
6745
|
childList.ref.recordInteraction();
|
|
6102
6746
|
}
|
|
6103
6747
|
};
|
|
6104
|
-
_this._unregisterAsNestedChild = childList
|
|
6748
|
+
_this._unregisterAsNestedChild = function (childList) {
|
|
6105
6749
|
_this._nestedChildLists.remove(childList.ref);
|
|
6106
6750
|
};
|
|
6107
|
-
_this._onUpdateSeparators = (keys, newProps)
|
|
6108
|
-
keys.forEach(key
|
|
6751
|
+
_this._onUpdateSeparators = function (keys, newProps) {
|
|
6752
|
+
keys.forEach(function (key) {
|
|
6109
6753
|
var ref = key != null && _this._cellRefs[key];
|
|
6110
6754
|
ref && ref.updateSeparatorProps(newProps);
|
|
6111
6755
|
});
|
|
6112
6756
|
};
|
|
6113
|
-
_this._getSpacerKey =
|
|
6757
|
+
_this._getSpacerKey = function (isVertical) {
|
|
6758
|
+
return isVertical ? 'height' : 'width';
|
|
6759
|
+
};
|
|
6114
6760
|
_this._averageCellLength = 0;
|
|
6115
6761
|
_this._cellRefs = {};
|
|
6116
6762
|
_this._frames = {};
|
|
@@ -6143,37 +6789,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6143
6789
|
_this._totalCellLength = 0;
|
|
6144
6790
|
_this._totalCellsMeasured = 0;
|
|
6145
6791
|
_this._viewabilityTuples = [];
|
|
6146
|
-
_this._captureScrollRef = ref
|
|
6792
|
+
_this._captureScrollRef = function (ref) {
|
|
6147
6793
|
_this._scrollRef = ref;
|
|
6148
6794
|
};
|
|
6149
|
-
_this._defaultRenderScrollComponent = props
|
|
6795
|
+
_this._defaultRenderScrollComponent = function (props) {
|
|
6150
6796
|
var onRefresh = props.onRefresh;
|
|
6151
6797
|
if (_this._isNestedWithSameOrientation()) {
|
|
6152
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6153
|
-
...props
|
|
6154
|
-
});
|
|
6798
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, Object.assign({}, props));
|
|
6155
6799
|
} else if (onRefresh) {
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6800
|
+
var _props$refreshing;
|
|
6801
|
+
(0, _invariant.default)(typeof props.refreshing === 'boolean', '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' + JSON.stringify((_props$refreshing = props.refreshing) != null ? _props$refreshing : 'undefined') + '`');
|
|
6802
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props, {
|
|
6803
|
+
refreshControl: props.refreshControl == null ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.RefreshControl, {
|
|
6160
6804
|
refreshing: props.refreshing,
|
|
6161
6805
|
onRefresh: onRefresh,
|
|
6162
6806
|
progressViewOffset: props.progressViewOffset
|
|
6163
6807
|
}) : props.refreshControl
|
|
6164
|
-
});
|
|
6808
|
+
}));
|
|
6165
6809
|
} else {
|
|
6166
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6167
|
-
...props
|
|
6168
|
-
});
|
|
6810
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.ScrollView, Object.assign({}, props));
|
|
6169
6811
|
}
|
|
6170
6812
|
};
|
|
6171
|
-
_this._onCellLayout = (e, cellKey, index)
|
|
6813
|
+
_this._onCellLayout = function (e, cellKey, index) {
|
|
6172
6814
|
var layout = e.nativeEvent.layout;
|
|
6173
6815
|
var next = {
|
|
6174
6816
|
offset: _this._selectOffset(layout),
|
|
6175
6817
|
length: _this._selectLength(layout),
|
|
6176
|
-
index,
|
|
6818
|
+
index: index,
|
|
6177
6819
|
inLayout: true
|
|
6178
6820
|
};
|
|
6179
6821
|
var curr = _this._frames[cellKey];
|
|
@@ -6191,17 +6833,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6191
6833
|
_this._computeBlankness();
|
|
6192
6834
|
_this._updateViewableItems(_this.props, _this.state.cellsAroundViewport);
|
|
6193
6835
|
};
|
|
6194
|
-
_this._onCellUnmount = cellKey
|
|
6836
|
+
_this._onCellUnmount = function (cellKey) {
|
|
6195
6837
|
delete _this._cellRefs[cellKey];
|
|
6196
6838
|
var curr = _this._frames[cellKey];
|
|
6197
6839
|
if (curr) {
|
|
6198
|
-
_this._frames[cellKey] = {
|
|
6199
|
-
...curr,
|
|
6840
|
+
_this._frames[cellKey] = Object.assign({}, curr, {
|
|
6200
6841
|
inLayout: false
|
|
6201
|
-
};
|
|
6842
|
+
});
|
|
6202
6843
|
}
|
|
6203
6844
|
};
|
|
6204
|
-
_this._onLayout = e
|
|
6845
|
+
_this._onLayout = function (e) {
|
|
6205
6846
|
if (_this._isNestedWithSameOrientation()) {
|
|
6206
6847
|
_this.measureLayoutRelativeToContainingList();
|
|
6207
6848
|
} else {
|
|
@@ -6211,17 +6852,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6211
6852
|
_this._scheduleCellsToRenderUpdate();
|
|
6212
6853
|
_this._maybeCallOnEdgeReached();
|
|
6213
6854
|
};
|
|
6214
|
-
_this._onLayoutEmpty = e
|
|
6855
|
+
_this._onLayoutEmpty = function (e) {
|
|
6215
6856
|
_this.props.onLayout && _this.props.onLayout(e);
|
|
6216
6857
|
};
|
|
6217
|
-
_this._onLayoutFooter = e
|
|
6858
|
+
_this._onLayoutFooter = function (e) {
|
|
6218
6859
|
_this._triggerRemeasureForChildListsInCell(_this._getFooterCellKey());
|
|
6219
6860
|
_this._footerLength = _this._selectLength(e.nativeEvent.layout);
|
|
6220
6861
|
};
|
|
6221
|
-
_this._onLayoutHeader = e
|
|
6862
|
+
_this._onLayoutHeader = function (e) {
|
|
6222
6863
|
_this._headerLength = _this._selectLength(e.nativeEvent.layout);
|
|
6223
6864
|
};
|
|
6224
|
-
_this._onContentSizeChange = (width, height)
|
|
6865
|
+
_this._onContentSizeChange = function (width, height) {
|
|
6225
6866
|
if (width > 0 && height > 0 && _this.props.initialScrollIndex != null && _this.props.initialScrollIndex > 0 && !_this._hasTriggeredInitialScrollToIndex) {
|
|
6226
6867
|
if (_this.props.contentOffset == null) {
|
|
6227
6868
|
if (_this.props.initialScrollIndex < _this.props.getItemCount(_this.props.data)) {
|
|
@@ -6241,26 +6882,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6241
6882
|
_this.props.onContentSizeChange(width, height);
|
|
6242
6883
|
}
|
|
6243
6884
|
_this._scrollMetrics.contentLength = _this._selectLength({
|
|
6244
|
-
height,
|
|
6245
|
-
width
|
|
6885
|
+
height: height,
|
|
6886
|
+
width: width
|
|
6246
6887
|
});
|
|
6247
6888
|
_this._scheduleCellsToRenderUpdate();
|
|
6248
6889
|
_this._maybeCallOnEdgeReached();
|
|
6249
6890
|
};
|
|
6250
|
-
_this._convertParentScrollMetrics = metrics
|
|
6891
|
+
_this._convertParentScrollMetrics = function (metrics) {
|
|
6251
6892
|
var offset = metrics.offset - _this._offsetFromParentVirtualizedList;
|
|
6252
6893
|
var visibleLength = metrics.visibleLength;
|
|
6253
6894
|
var dOffset = offset - _this._scrollMetrics.offset;
|
|
6254
6895
|
var contentLength = _this._scrollMetrics.contentLength;
|
|
6255
6896
|
return {
|
|
6256
|
-
visibleLength,
|
|
6257
|
-
contentLength,
|
|
6258
|
-
offset,
|
|
6259
|
-
dOffset
|
|
6897
|
+
visibleLength: visibleLength,
|
|
6898
|
+
contentLength: contentLength,
|
|
6899
|
+
offset: offset,
|
|
6900
|
+
dOffset: dOffset
|
|
6260
6901
|
};
|
|
6261
6902
|
};
|
|
6262
|
-
_this._onScroll = e
|
|
6263
|
-
_this._nestedChildLists.forEach(childList
|
|
6903
|
+
_this._onScroll = function (e) {
|
|
6904
|
+
_this._nestedChildLists.forEach(function (childList) {
|
|
6264
6905
|
childList._onScroll(e);
|
|
6265
6906
|
});
|
|
6266
6907
|
if (_this.props.onScroll) {
|
|
@@ -6276,8 +6917,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6276
6917
|
return;
|
|
6277
6918
|
}
|
|
6278
6919
|
var _this$_convertParentS = _this._convertParentScrollMetrics({
|
|
6279
|
-
visibleLength,
|
|
6280
|
-
offset
|
|
6920
|
+
visibleLength: visibleLength,
|
|
6921
|
+
offset: offset
|
|
6281
6922
|
});
|
|
6282
6923
|
visibleLength = _this$_convertParentS.visibleLength;
|
|
6283
6924
|
contentLength = _this$_convertParentS.contentLength;
|
|
@@ -6288,27 +6929,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6288
6929
|
var velocity = dOffset / dt;
|
|
6289
6930
|
if (dt > 500 && _this._scrollMetrics.dt > 500 && contentLength > 5 * visibleLength && !_this._hasWarned.perf) {
|
|
6290
6931
|
(0, _infoLog.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.", {
|
|
6291
|
-
dt,
|
|
6932
|
+
dt: dt,
|
|
6292
6933
|
prevDt: _this._scrollMetrics.dt,
|
|
6293
|
-
contentLength
|
|
6934
|
+
contentLength: contentLength
|
|
6294
6935
|
});
|
|
6295
6936
|
_this._hasWarned.perf = true;
|
|
6296
6937
|
}
|
|
6297
6938
|
var zoomScale = e.nativeEvent.zoomScale < 0 ? 1 : e.nativeEvent.zoomScale;
|
|
6298
6939
|
_this._scrollMetrics = {
|
|
6299
|
-
contentLength,
|
|
6300
|
-
dt,
|
|
6301
|
-
dOffset,
|
|
6302
|
-
offset,
|
|
6303
|
-
timestamp,
|
|
6304
|
-
velocity,
|
|
6305
|
-
visibleLength,
|
|
6306
|
-
zoomScale
|
|
6940
|
+
contentLength: contentLength,
|
|
6941
|
+
dt: dt,
|
|
6942
|
+
dOffset: dOffset,
|
|
6943
|
+
offset: offset,
|
|
6944
|
+
timestamp: timestamp,
|
|
6945
|
+
velocity: velocity,
|
|
6946
|
+
visibleLength: visibleLength,
|
|
6947
|
+
zoomScale: zoomScale
|
|
6307
6948
|
};
|
|
6308
6949
|
if (_this.state.pendingScrollUpdateCount > 0) {
|
|
6309
|
-
_this.setState(state
|
|
6310
|
-
|
|
6311
|
-
|
|
6950
|
+
_this.setState(function (state) {
|
|
6951
|
+
return {
|
|
6952
|
+
pendingScrollUpdateCount: state.pendingScrollUpdateCount - 1
|
|
6953
|
+
};
|
|
6954
|
+
});
|
|
6312
6955
|
}
|
|
6313
6956
|
_this._updateViewableItems(_this.props, _this.state.cellsAroundViewport);
|
|
6314
6957
|
if (!_this.props) {
|
|
@@ -6321,18 +6964,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6321
6964
|
_this._computeBlankness();
|
|
6322
6965
|
_this._scheduleCellsToRenderUpdate();
|
|
6323
6966
|
};
|
|
6324
|
-
_this._onScrollBeginDrag = e
|
|
6325
|
-
_this._nestedChildLists.forEach(childList
|
|
6967
|
+
_this._onScrollBeginDrag = function (e) {
|
|
6968
|
+
_this._nestedChildLists.forEach(function (childList) {
|
|
6326
6969
|
childList._onScrollBeginDrag(e);
|
|
6327
6970
|
});
|
|
6328
|
-
_this._viewabilityTuples.forEach(tuple
|
|
6971
|
+
_this._viewabilityTuples.forEach(function (tuple) {
|
|
6329
6972
|
tuple.viewabilityHelper.recordInteraction();
|
|
6330
6973
|
});
|
|
6331
6974
|
_this._hasInteracted = true;
|
|
6332
6975
|
_this.props.onScrollBeginDrag && _this.props.onScrollBeginDrag(e);
|
|
6333
6976
|
};
|
|
6334
|
-
_this._onScrollEndDrag = e
|
|
6335
|
-
_this._nestedChildLists.forEach(childList
|
|
6977
|
+
_this._onScrollEndDrag = function (e) {
|
|
6978
|
+
_this._nestedChildLists.forEach(function (childList) {
|
|
6336
6979
|
childList._onScrollEndDrag(e);
|
|
6337
6980
|
});
|
|
6338
6981
|
var velocity = e.nativeEvent.velocity;
|
|
@@ -6342,46 +6985,46 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6342
6985
|
_this._computeBlankness();
|
|
6343
6986
|
_this.props.onScrollEndDrag && _this.props.onScrollEndDrag(e);
|
|
6344
6987
|
};
|
|
6345
|
-
_this._onMomentumScrollBegin = e
|
|
6346
|
-
_this._nestedChildLists.forEach(childList
|
|
6988
|
+
_this._onMomentumScrollBegin = function (e) {
|
|
6989
|
+
_this._nestedChildLists.forEach(function (childList) {
|
|
6347
6990
|
childList._onMomentumScrollBegin(e);
|
|
6348
6991
|
});
|
|
6349
6992
|
_this.props.onMomentumScrollBegin && _this.props.onMomentumScrollBegin(e);
|
|
6350
6993
|
};
|
|
6351
|
-
_this._onMomentumScrollEnd = e
|
|
6352
|
-
_this._nestedChildLists.forEach(childList
|
|
6994
|
+
_this._onMomentumScrollEnd = function (e) {
|
|
6995
|
+
_this._nestedChildLists.forEach(function (childList) {
|
|
6353
6996
|
childList._onMomentumScrollEnd(e);
|
|
6354
6997
|
});
|
|
6355
6998
|
_this._scrollMetrics.velocity = 0;
|
|
6356
6999
|
_this._computeBlankness();
|
|
6357
7000
|
_this.props.onMomentumScrollEnd && _this.props.onMomentumScrollEnd(e);
|
|
6358
7001
|
};
|
|
6359
|
-
_this._updateCellsToRender = ()
|
|
7002
|
+
_this._updateCellsToRender = function () {
|
|
6360
7003
|
_this._updateViewableItems(_this.props, _this.state.cellsAroundViewport);
|
|
6361
|
-
_this.setState((state, props)
|
|
7004
|
+
_this.setState(function (state, props) {
|
|
6362
7005
|
var cellsAroundViewport = _this._adjustCellsAroundViewport(props, state.cellsAroundViewport, state.pendingScrollUpdateCount);
|
|
6363
7006
|
var renderMask = VirtualizedList._createRenderMask(props, cellsAroundViewport, _this._getNonViewportRenderRegions(props));
|
|
6364
7007
|
if (cellsAroundViewport.first === state.cellsAroundViewport.first && cellsAroundViewport.last === state.cellsAroundViewport.last && renderMask.equals(state.renderMask)) {
|
|
6365
7008
|
return null;
|
|
6366
7009
|
}
|
|
6367
7010
|
return {
|
|
6368
|
-
cellsAroundViewport,
|
|
6369
|
-
renderMask
|
|
7011
|
+
cellsAroundViewport: cellsAroundViewport,
|
|
7012
|
+
renderMask: renderMask
|
|
6370
7013
|
};
|
|
6371
7014
|
});
|
|
6372
7015
|
};
|
|
6373
|
-
_this._createViewToken = (index, isViewable, props)
|
|
7016
|
+
_this._createViewToken = function (index, isViewable, props) {
|
|
6374
7017
|
var data = props.data,
|
|
6375
7018
|
getItem = props.getItem;
|
|
6376
7019
|
var item = getItem(data, index);
|
|
6377
7020
|
return {
|
|
6378
|
-
index,
|
|
6379
|
-
item,
|
|
7021
|
+
index: index,
|
|
7022
|
+
item: item,
|
|
6380
7023
|
key: VirtualizedList._keyExtractor(item, index, props),
|
|
6381
|
-
isViewable
|
|
7024
|
+
isViewable: isViewable
|
|
6382
7025
|
};
|
|
6383
7026
|
};
|
|
6384
|
-
_this._getOffsetApprox = (index, props)
|
|
7027
|
+
_this._getOffsetApprox = function (index, props) {
|
|
6385
7028
|
if (Number.isInteger(index)) {
|
|
6386
7029
|
return _this.__getFrameMetricsApprox(index, props).offset;
|
|
6387
7030
|
} else {
|
|
@@ -6390,7 +7033,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6390
7033
|
return frameMetrics.offset + remainder * frameMetrics.length;
|
|
6391
7034
|
}
|
|
6392
7035
|
};
|
|
6393
|
-
_this.__getFrameMetricsApprox = (index, props)
|
|
7036
|
+
_this.__getFrameMetricsApprox = function (index, props) {
|
|
6394
7037
|
var frame = _this._getFrameMetrics(index, props);
|
|
6395
7038
|
if (frame && frame.index === index) {
|
|
6396
7039
|
return frame;
|
|
@@ -6406,7 +7049,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6406
7049
|
};
|
|
6407
7050
|
}
|
|
6408
7051
|
};
|
|
6409
|
-
_this._getFrameMetrics = (index, props)
|
|
7052
|
+
_this._getFrameMetrics = function (index, props) {
|
|
6410
7053
|
var data = props.data,
|
|
6411
7054
|
getItemCount = props.getItemCount,
|
|
6412
7055
|
getItemLayout = props.getItemLayout;
|
|
@@ -6419,7 +7062,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6419
7062
|
}
|
|
6420
7063
|
return frame;
|
|
6421
7064
|
};
|
|
6422
|
-
_this._getNonViewportRenderRegions = props
|
|
7065
|
+
_this._getNonViewportRenderRegions = function (props) {
|
|
6423
7066
|
if (!(_this._lastFocusedCellKey && _this._cellRefs[_this._lastFocusedCellKey])) {
|
|
6424
7067
|
return [];
|
|
6425
7068
|
}
|
|
@@ -6442,18 +7085,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6442
7085
|
heightOfCellsAfterFocused += _this.__getFrameMetricsApprox(_i, props).length;
|
|
6443
7086
|
}
|
|
6444
7087
|
return [{
|
|
6445
|
-
first,
|
|
6446
|
-
last
|
|
7088
|
+
first: first,
|
|
7089
|
+
last: last
|
|
6447
7090
|
}];
|
|
6448
7091
|
};
|
|
6449
7092
|
_this._checkProps(_props);
|
|
6450
7093
|
_this._fillRateHelper = new _FillRateHelper.default(_this._getFrameMetrics);
|
|
6451
|
-
_this._updateCellsToRenderBatcher = new _Batchinator.default(_this._updateCellsToRender, _this.props.updateCellsBatchingPeriod
|
|
7094
|
+
_this._updateCellsToRenderBatcher = new _Batchinator.default(_this._updateCellsToRender, (_this$props$updateCel = _this.props.updateCellsBatchingPeriod) != null ? _this$props$updateCel : 50);
|
|
6452
7095
|
if (_this.props.viewabilityConfigCallbackPairs) {
|
|
6453
|
-
_this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(pair
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
7096
|
+
_this._viewabilityTuples = _this.props.viewabilityConfigCallbackPairs.map(function (pair) {
|
|
7097
|
+
return {
|
|
7098
|
+
viewabilityHelper: new _ViewabilityHelper.default(pair.viewabilityConfig),
|
|
7099
|
+
onViewableItemsChanged: pair.onViewableItemsChanged
|
|
7100
|
+
};
|
|
7101
|
+
});
|
|
6457
7102
|
} else {
|
|
6458
7103
|
var _this$props = _this.props,
|
|
6459
7104
|
onViewableItemsChanged = _this$props.onViewableItemsChanged,
|
|
@@ -6466,7 +7111,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6466
7111
|
}
|
|
6467
7112
|
}
|
|
6468
7113
|
var initialRenderRegion = VirtualizedList._initialRenderRegion(_props);
|
|
6469
|
-
var minIndexForVisible = _this.props.maintainVisibleContentPosition
|
|
7114
|
+
var minIndexForVisible = (_this$props$maintainV = (_this$props$maintainV2 = _this.props.maintainVisibleContentPosition) == null ? undefined : _this$props$maintainV2.minIndexForVisible) != null ? _this$props$maintainV : 0;
|
|
6470
7115
|
_this.state = {
|
|
6471
7116
|
cellsAroundViewport: initialRenderRegion,
|
|
6472
7117
|
renderMask: VirtualizedList._createRenderMask(_props, initialRenderRegion),
|
|
@@ -6495,10 +7140,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6495
7140
|
}
|
|
6496
7141
|
this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
|
|
6497
7142
|
x: offset,
|
|
6498
|
-
animated
|
|
7143
|
+
animated: animated
|
|
6499
7144
|
} : {
|
|
6500
7145
|
y: offset,
|
|
6501
|
-
animated
|
|
7146
|
+
animated: animated
|
|
6502
7147
|
});
|
|
6503
7148
|
}
|
|
6504
7149
|
}, {
|
|
@@ -6522,7 +7167,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6522
7167
|
onScrollToIndexFailed({
|
|
6523
7168
|
averageItemLength: this._averageCellLength,
|
|
6524
7169
|
highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,
|
|
6525
|
-
index
|
|
7170
|
+
index: index
|
|
6526
7171
|
});
|
|
6527
7172
|
return;
|
|
6528
7173
|
}
|
|
@@ -6537,10 +7182,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6537
7182
|
}
|
|
6538
7183
|
this._scrollRef.scrollTo(horizontal ? {
|
|
6539
7184
|
x: offset,
|
|
6540
|
-
animated
|
|
7185
|
+
animated: animated
|
|
6541
7186
|
} : {
|
|
6542
7187
|
y: offset,
|
|
6543
|
-
animated
|
|
7188
|
+
animated: animated
|
|
6544
7189
|
});
|
|
6545
7190
|
}
|
|
6546
7191
|
}, {
|
|
@@ -6554,10 +7199,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6554
7199
|
var itemCount = getItemCount(data);
|
|
6555
7200
|
for (var _index = 0; _index < itemCount; _index++) {
|
|
6556
7201
|
if (getItem(data, _index) === item) {
|
|
6557
|
-
this.scrollToIndex({
|
|
6558
|
-
...params,
|
|
7202
|
+
this.scrollToIndex(Object.assign({}, params, {
|
|
6559
7203
|
index: _index
|
|
6560
|
-
});
|
|
7204
|
+
}));
|
|
6561
7205
|
break;
|
|
6562
7206
|
}
|
|
6563
7207
|
}
|
|
@@ -6576,19 +7220,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6576
7220
|
}
|
|
6577
7221
|
this._scrollRef.scrollTo(horizontalOrDefault(this.props.horizontal) ? {
|
|
6578
7222
|
x: offset,
|
|
6579
|
-
animated
|
|
7223
|
+
animated: animated
|
|
6580
7224
|
} : {
|
|
6581
7225
|
y: offset,
|
|
6582
|
-
animated
|
|
7226
|
+
animated: animated
|
|
6583
7227
|
});
|
|
6584
7228
|
}
|
|
6585
7229
|
}, {
|
|
6586
7230
|
key: "recordInteraction",
|
|
6587
7231
|
value: function recordInteraction() {
|
|
6588
|
-
this._nestedChildLists.forEach(childList
|
|
7232
|
+
this._nestedChildLists.forEach(function (childList) {
|
|
6589
7233
|
childList.recordInteraction();
|
|
6590
7234
|
});
|
|
6591
|
-
this._viewabilityTuples.forEach(t
|
|
7235
|
+
this._viewabilityTuples.forEach(function (t) {
|
|
6592
7236
|
t.viewabilityHelper.recordInteraction();
|
|
6593
7237
|
});
|
|
6594
7238
|
this._updateViewableItems(this.props, this.state.cellsAroundViewport);
|
|
@@ -6636,7 +7280,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6636
7280
|
}, {
|
|
6637
7281
|
key: "_getCellKey",
|
|
6638
7282
|
value: function _getCellKey() {
|
|
6639
|
-
|
|
7283
|
+
var _this$context;
|
|
7284
|
+
return ((_this$context = this.context) == null ? undefined : _this$context.cellKey) || 'rootList';
|
|
6640
7285
|
}
|
|
6641
7286
|
}, {
|
|
6642
7287
|
key: "hasMore",
|
|
@@ -6685,12 +7330,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6685
7330
|
if (pendingScrollUpdateCount > 0) {
|
|
6686
7331
|
return cellsAroundViewport.last >= getItemCount(data) ? VirtualizedList._constrainToItemCount(cellsAroundViewport, props) : cellsAroundViewport;
|
|
6687
7332
|
}
|
|
6688
|
-
newCellsAroundViewport = (0, _$$_REQUIRE(_dependencyMap[
|
|
7333
|
+
newCellsAroundViewport = (0, _$$_REQUIRE(_dependencyMap[21]).computeWindowedRenderLimits)(props, maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch), windowSizeOrDefault(props.windowSize), cellsAroundViewport, this.__getFrameMetricsApprox, this._scrollMetrics);
|
|
6689
7334
|
(0, _invariant.default)(newCellsAroundViewport.last < getItemCount(data), 'computeWindowedRenderLimits() should return range in-bounds');
|
|
6690
7335
|
}
|
|
6691
7336
|
if (this._nestedChildLists.size() > 0) {
|
|
6692
7337
|
var childIdx = this._findFirstChildWithMore(newCellsAroundViewport.first, newCellsAroundViewport.last);
|
|
6693
|
-
newCellsAroundViewport.last = childIdx
|
|
7338
|
+
newCellsAroundViewport.last = childIdx != null ? childIdx : newCellsAroundViewport.last;
|
|
6694
7339
|
}
|
|
6695
7340
|
return newCellsAroundViewport;
|
|
6696
7341
|
}
|
|
@@ -6699,7 +7344,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6699
7344
|
value: function _findFirstChildWithMore(first, last) {
|
|
6700
7345
|
for (var ii = first; ii <= last; ii++) {
|
|
6701
7346
|
var cellKeyForIndex = this._indicesToKeys.get(ii);
|
|
6702
|
-
if (cellKeyForIndex != null && this._nestedChildLists.anyInCell(cellKeyForIndex,
|
|
7347
|
+
if (cellKeyForIndex != null && this._nestedChildLists.anyInCell(cellKeyForIndex, function (childList) {
|
|
7348
|
+
return childList.hasMore();
|
|
7349
|
+
})) {
|
|
6703
7350
|
return ii;
|
|
6704
7351
|
}
|
|
6705
7352
|
}
|
|
@@ -6726,7 +7373,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6726
7373
|
this._updateCellsToRenderBatcher.dispose({
|
|
6727
7374
|
abort: true
|
|
6728
7375
|
});
|
|
6729
|
-
this._viewabilityTuples.forEach(tuple
|
|
7376
|
+
this._viewabilityTuples.forEach(function (tuple) {
|
|
6730
7377
|
tuple.viewabilityHelper.dispose();
|
|
6731
7378
|
});
|
|
6732
7379
|
this._fillRateHelper.deactivateAndFlush();
|
|
@@ -6751,7 +7398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6751
7398
|
var end = getItemCount(data) - 1;
|
|
6752
7399
|
var prevCellKey;
|
|
6753
7400
|
last = Math.min(end, last);
|
|
6754
|
-
var _loop = function () {
|
|
7401
|
+
var _loop = function _loop() {
|
|
6755
7402
|
var item = getItem(data, ii);
|
|
6756
7403
|
var key = VirtualizedList._keyExtractor(item, ii, _this2.props);
|
|
6757
7404
|
_this2._indicesToKeys.set(ii, key);
|
|
@@ -6759,7 +7406,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6759
7406
|
stickyHeaderIndices.push(cells.length);
|
|
6760
7407
|
}
|
|
6761
7408
|
var shouldListenForLayout = getItemLayout == null || debug || _this2._fillRateHelper.enabled();
|
|
6762
|
-
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7409
|
+
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_VirtualizedListCellRenderer.default, Object.assign({
|
|
6763
7410
|
CellRendererComponent: CellRendererComponent,
|
|
6764
7411
|
ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined,
|
|
6765
7412
|
ListItemComponent: ListItemComponent,
|
|
@@ -6770,16 +7417,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6770
7417
|
item: item,
|
|
6771
7418
|
prevCellKey: prevCellKey,
|
|
6772
7419
|
onUpdateSeparators: _this2._onUpdateSeparators,
|
|
6773
|
-
onCellFocusCapture:
|
|
7420
|
+
onCellFocusCapture: function onCellFocusCapture(e) {
|
|
7421
|
+
return _this2._onCellFocusCapture(key);
|
|
7422
|
+
},
|
|
6774
7423
|
onUnmount: _this2._onCellUnmount,
|
|
6775
|
-
ref: ref
|
|
6776
|
-
_this2._cellRefs[key] =
|
|
7424
|
+
ref: function ref(_ref) {
|
|
7425
|
+
_this2._cellRefs[key] = _ref;
|
|
6777
7426
|
},
|
|
6778
|
-
renderItem: renderItem
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
}, key));
|
|
7427
|
+
renderItem: renderItem
|
|
7428
|
+
}, shouldListenForLayout && {
|
|
7429
|
+
onCellLayout: _this2._onCellLayout
|
|
7430
|
+
}), key));
|
|
6783
7431
|
prevCellKey = key;
|
|
6784
7432
|
};
|
|
6785
7433
|
for (var ii = first; ii <= last; ii++) {
|
|
@@ -6795,6 +7443,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6795
7443
|
}, {
|
|
6796
7444
|
key: "render",
|
|
6797
7445
|
value: function render() {
|
|
7446
|
+
var _this3 = this;
|
|
6798
7447
|
this._checkProps(this.props);
|
|
6799
7448
|
var _this$props5 = this.props,
|
|
6800
7449
|
ListEmptyComponent = _this$props5.ListEmptyComponent,
|
|
@@ -6811,10 +7460,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6811
7460
|
if (stickyIndicesFromProps.has(0)) {
|
|
6812
7461
|
stickyHeaderIndices.push(0);
|
|
6813
7462
|
}
|
|
6814
|
-
var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6815
|
-
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7463
|
+
var _element = React.isValidElement(ListHeaderComponent) ? ListHeaderComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListHeaderComponent, {});
|
|
7464
|
+
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
6816
7465
|
cellKey: this._getCellKey() + '-header',
|
|
6817
|
-
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7466
|
+
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
6818
7467
|
collapsable: false,
|
|
6819
7468
|
onLayout: this._onLayoutHeader,
|
|
6820
7469
|
style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListHeaderComponentStyle),
|
|
@@ -6824,12 +7473,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6824
7473
|
}
|
|
6825
7474
|
var itemCount = this.props.getItemCount(data);
|
|
6826
7475
|
if (itemCount === 0 && ListEmptyComponent) {
|
|
6827
|
-
var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6828
|
-
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7476
|
+
var _element2 = React.isValidElement(ListEmptyComponent) ? ListEmptyComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListEmptyComponent, {});
|
|
7477
|
+
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
6829
7478
|
cellKey: this._getCellKey() + '-empty',
|
|
6830
7479
|
children: React.cloneElement(_element2, {
|
|
6831
|
-
onLayout: event
|
|
6832
|
-
|
|
7480
|
+
onLayout: function onLayout(event) {
|
|
7481
|
+
_this3._onLayoutEmpty(event);
|
|
6833
7482
|
if (_element2.props.onLayout) {
|
|
6834
7483
|
_element2.props.onLayout(event);
|
|
6835
7484
|
}
|
|
@@ -6843,7 +7492,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6843
7492
|
_keylessItemComponentName = '';
|
|
6844
7493
|
var spacerKey = this._getSpacerKey(!horizontal);
|
|
6845
7494
|
var renderRegions = this.state.renderMask.enumerateRegions();
|
|
6846
|
-
var lastSpacer = findLastWhere(renderRegions,
|
|
7495
|
+
var lastSpacer = findLastWhere(renderRegions, function (r) {
|
|
7496
|
+
return r.isSpacer;
|
|
7497
|
+
});
|
|
6847
7498
|
for (var section of renderRegions) {
|
|
6848
7499
|
if (section.isSpacer) {
|
|
6849
7500
|
if (this.props.disableVirtualization) {
|
|
@@ -6855,10 +7506,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6855
7506
|
var firstMetrics = this.__getFrameMetricsApprox(section.first, this.props);
|
|
6856
7507
|
var lastMetrics = this.__getFrameMetricsApprox(last, this.props);
|
|
6857
7508
|
var spacerSize = lastMetrics.offset + lastMetrics.length - firstMetrics.offset;
|
|
6858
|
-
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6859
|
-
style: {
|
|
6860
|
-
[spacerKey]: spacerSize
|
|
6861
|
-
}
|
|
7509
|
+
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7510
|
+
style: (0, _defineProperty2.default)({}, spacerKey, spacerSize)
|
|
6862
7511
|
}, `$spacer-${section.first}`));
|
|
6863
7512
|
} else {
|
|
6864
7513
|
this._pushCells(cells, stickyHeaderIndices, stickyIndicesFromProps, section.first, section.last, inversionStyle);
|
|
@@ -6870,18 +7519,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6870
7519
|
}
|
|
6871
7520
|
}
|
|
6872
7521
|
if (ListFooterComponent) {
|
|
6873
|
-
var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
6874
|
-
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7522
|
+
var _element3 = React.isValidElement(ListFooterComponent) ? ListFooterComponent : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(ListFooterComponent, {});
|
|
7523
|
+
cells.push(/*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListCellContextProvider, {
|
|
6875
7524
|
cellKey: this._getFooterCellKey(),
|
|
6876
|
-
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7525
|
+
children: /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
6877
7526
|
onLayout: this._onLayoutFooter,
|
|
6878
7527
|
style: _reactNative.StyleSheet.compose(inversionStyle, this.props.ListFooterComponentStyle),
|
|
6879
7528
|
children: _element3
|
|
6880
7529
|
})
|
|
6881
7530
|
}, "$footer"));
|
|
6882
7531
|
}
|
|
6883
|
-
var scrollProps = {
|
|
6884
|
-
...this.props,
|
|
7532
|
+
var scrollProps = Object.assign({}, this.props, {
|
|
6885
7533
|
onContentSizeChange: this._onContentSizeChange,
|
|
6886
7534
|
onLayout: this._onLayout,
|
|
6887
7535
|
onScroll: this._onScroll,
|
|
@@ -6891,16 +7539,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6891
7539
|
onMomentumScrollEnd: this._onMomentumScrollEnd,
|
|
6892
7540
|
scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),
|
|
6893
7541
|
invertStickyHeaders: this.props.invertStickyHeaders !== undefined ? this.props.invertStickyHeaders : this.props.inverted,
|
|
6894
|
-
stickyHeaderIndices,
|
|
7542
|
+
stickyHeaderIndices: stickyHeaderIndices,
|
|
6895
7543
|
style: inversionStyle ? [inversionStyle, this.props.style] : this.props.style,
|
|
6896
7544
|
isInvertedVirtualizedList: this.props.inverted,
|
|
6897
|
-
maintainVisibleContentPosition: this.props.maintainVisibleContentPosition != null ? {
|
|
6898
|
-
...this.props.maintainVisibleContentPosition,
|
|
7545
|
+
maintainVisibleContentPosition: this.props.maintainVisibleContentPosition != null ? Object.assign({}, this.props.maintainVisibleContentPosition, {
|
|
6899
7546
|
minIndexForVisible: this.props.maintainVisibleContentPosition.minIndexForVisible + (this.props.ListHeaderComponent ? 1 : 0)
|
|
6900
|
-
} : undefined
|
|
6901
|
-
};
|
|
7547
|
+
}) : undefined
|
|
7548
|
+
});
|
|
6902
7549
|
this._hasMore = this.state.cellsAroundViewport.last < itemCount - 1;
|
|
6903
|
-
var innerRet = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7550
|
+
var innerRet = /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_$$_REQUIRE(_dependencyMap[22]).VirtualizedListContextProvider, {
|
|
6904
7551
|
value: {
|
|
6905
7552
|
cellKey: null,
|
|
6906
7553
|
getScrollMetrics: this._getScrollMetrics,
|
|
@@ -6915,7 +7562,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6915
7562
|
});
|
|
6916
7563
|
var ret = innerRet;
|
|
6917
7564
|
if (this.props.debug) {
|
|
6918
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7565
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsxs)(_reactNative.View, {
|
|
6919
7566
|
style: styles.debug,
|
|
6920
7567
|
children: [ret, this._renderDebugOverlay()]
|
|
6921
7568
|
});
|
|
@@ -6930,7 +7577,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6930
7577
|
data = _this$props7.data,
|
|
6931
7578
|
extraData = _this$props7.extraData;
|
|
6932
7579
|
if (data !== prevProps.data || extraData !== prevProps.extraData) {
|
|
6933
|
-
this._viewabilityTuples.forEach(tuple
|
|
7580
|
+
this._viewabilityTuples.forEach(function (tuple) {
|
|
6934
7581
|
tuple.viewabilityHelper.resetViewableIndices();
|
|
6935
7582
|
});
|
|
6936
7583
|
}
|
|
@@ -6954,36 +7601,37 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
6954
7601
|
}, {
|
|
6955
7602
|
key: "_triggerRemeasureForChildListsInCell",
|
|
6956
7603
|
value: function _triggerRemeasureForChildListsInCell(cellKey) {
|
|
6957
|
-
this._nestedChildLists.forEachInCell(cellKey, childList
|
|
7604
|
+
this._nestedChildLists.forEachInCell(cellKey, function (childList) {
|
|
6958
7605
|
childList.measureLayoutRelativeToContainingList();
|
|
6959
7606
|
});
|
|
6960
7607
|
}
|
|
6961
7608
|
}, {
|
|
6962
7609
|
key: "measureLayoutRelativeToContainingList",
|
|
6963
7610
|
value: function measureLayoutRelativeToContainingList() {
|
|
7611
|
+
var _this4 = this;
|
|
6964
7612
|
try {
|
|
6965
7613
|
if (!this._scrollRef) {
|
|
6966
7614
|
return;
|
|
6967
7615
|
}
|
|
6968
|
-
this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), (x, y, width, height)
|
|
6969
|
-
|
|
6970
|
-
x,
|
|
6971
|
-
y
|
|
7616
|
+
this._scrollRef.measureLayout(this.context.getOutermostParentListRef().getScrollRef(), function (x, y, width, height) {
|
|
7617
|
+
_this4._offsetFromParentVirtualizedList = _this4._selectOffset({
|
|
7618
|
+
x: x,
|
|
7619
|
+
y: y
|
|
6972
7620
|
});
|
|
6973
|
-
|
|
6974
|
-
width,
|
|
6975
|
-
height
|
|
7621
|
+
_this4._scrollMetrics.contentLength = _this4._selectLength({
|
|
7622
|
+
width: width,
|
|
7623
|
+
height: height
|
|
6976
7624
|
});
|
|
6977
|
-
var scrollMetrics =
|
|
6978
|
-
var metricsChanged =
|
|
7625
|
+
var scrollMetrics = _this4._convertParentScrollMetrics(_this4.context.getScrollMetrics());
|
|
7626
|
+
var metricsChanged = _this4._scrollMetrics.visibleLength !== scrollMetrics.visibleLength || _this4._scrollMetrics.offset !== scrollMetrics.offset;
|
|
6979
7627
|
if (metricsChanged) {
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
7628
|
+
_this4._scrollMetrics.visibleLength = scrollMetrics.visibleLength;
|
|
7629
|
+
_this4._scrollMetrics.offset = scrollMetrics.offset;
|
|
7630
|
+
_this4._nestedChildLists.forEach(function (childList) {
|
|
6983
7631
|
childList.measureLayoutRelativeToContainingList();
|
|
6984
7632
|
});
|
|
6985
7633
|
}
|
|
6986
|
-
}, error
|
|
7634
|
+
}, function (error) {
|
|
6987
7635
|
console.warn("VirtualizedList: Encountered an error while measuring a list's offset from its containing VirtualizedList.");
|
|
6988
7636
|
});
|
|
6989
7637
|
} catch (error) {
|
|
@@ -7012,19 +7660,21 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7012
7660
|
var windowLen = frameLast.offset + frameLast.length - windowTop;
|
|
7013
7661
|
var visTop = this._scrollMetrics.offset;
|
|
7014
7662
|
var visLen = this._scrollMetrics.visibleLength;
|
|
7015
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7663
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsxs)(_reactNative.View, {
|
|
7016
7664
|
style: [styles.debugOverlayBase, styles.debugOverlay],
|
|
7017
|
-
children: [framesInLayout.map((f, ii)
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7665
|
+
children: [framesInLayout.map(function (f, ii) {
|
|
7666
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7667
|
+
style: [styles.debugOverlayBase, styles.debugOverlayFrame, {
|
|
7668
|
+
top: f.offset * normalize,
|
|
7669
|
+
height: f.length * normalize
|
|
7670
|
+
}]
|
|
7671
|
+
}, 'f' + ii);
|
|
7672
|
+
}), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7023
7673
|
style: [styles.debugOverlayBase, styles.debugOverlayFrameLast, {
|
|
7024
7674
|
top: windowTop * normalize,
|
|
7025
7675
|
height: windowLen * normalize
|
|
7026
7676
|
}]
|
|
7027
|
-
}), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[
|
|
7677
|
+
}), /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[20]).jsx)(_reactNative.View, {
|
|
7028
7678
|
style: [styles.debugOverlayBase, styles.debugOverlayFrameVis, {
|
|
7029
7679
|
top: visTop * normalize,
|
|
7030
7680
|
height: visLen * normalize
|
|
@@ -7075,12 +7725,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7075
7725
|
if (onEndReached && this.state.cellsAroundViewport.last === getItemCount(data) - 1 && isWithinEndThreshold && this._scrollMetrics.contentLength !== this._sentEndForContentLength) {
|
|
7076
7726
|
this._sentEndForContentLength = this._scrollMetrics.contentLength;
|
|
7077
7727
|
onEndReached({
|
|
7078
|
-
distanceFromEnd
|
|
7728
|
+
distanceFromEnd: distanceFromEnd
|
|
7079
7729
|
});
|
|
7080
7730
|
} else if (onStartReached != null && this.state.cellsAroundViewport.first === 0 && isWithinStartThreshold && this._scrollMetrics.contentLength !== this._sentStartForContentLength) {
|
|
7081
7731
|
this._sentStartForContentLength = this._scrollMetrics.contentLength;
|
|
7082
7732
|
onStartReached({
|
|
7083
|
-
distanceFromStart
|
|
7733
|
+
distanceFromStart: distanceFromStart
|
|
7084
7734
|
});
|
|
7085
7735
|
} else {
|
|
7086
7736
|
this._sentStartForContentLength = isWithinStartThreshold ? this._sentStartForContentLength : 0;
|
|
@@ -7123,11 +7773,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7123
7773
|
}, {
|
|
7124
7774
|
key: "_updateViewableItems",
|
|
7125
7775
|
value: function _updateViewableItems(props, cellsAroundViewport) {
|
|
7776
|
+
var _this5 = this;
|
|
7126
7777
|
if (this.state.pendingScrollUpdateCount > 0) {
|
|
7127
7778
|
return;
|
|
7128
7779
|
}
|
|
7129
|
-
this._viewabilityTuples.forEach(tuple
|
|
7130
|
-
tuple.viewabilityHelper.onUpdate(props,
|
|
7780
|
+
this._viewabilityTuples.forEach(function (tuple) {
|
|
7781
|
+
tuple.viewabilityHelper.onUpdate(props, _this5._scrollMetrics.offset, _this5._scrollMetrics.visibleLength, _this5._getFrameMetrics, _this5._createViewToken, tuple.onViewableItemsChanged, cellsAroundViewport);
|
|
7131
7782
|
});
|
|
7132
7783
|
}
|
|
7133
7784
|
}], [{
|
|
@@ -7159,9 +7810,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7159
7810
|
value: function _createRenderMask(props, cellsAroundViewport, additionalRegions) {
|
|
7160
7811
|
var itemCount = props.getItemCount(props.data);
|
|
7161
7812
|
(0, _invariant.default)(cellsAroundViewport.first >= 0 && cellsAroundViewport.last >= cellsAroundViewport.first - 1 && cellsAroundViewport.last < itemCount, `Invalid cells around viewport "[${cellsAroundViewport.first}, ${cellsAroundViewport.last}]" was passed to VirtualizedList._createRenderMask`);
|
|
7162
|
-
var renderMask = new (_$$_REQUIRE(_dependencyMap[
|
|
7813
|
+
var renderMask = new (_$$_REQUIRE(_dependencyMap[23]).CellRenderMask)(itemCount);
|
|
7163
7814
|
if (itemCount > 0) {
|
|
7164
|
-
var allRegions = [cellsAroundViewport,
|
|
7815
|
+
var allRegions = [cellsAroundViewport].concat((0, _toConsumableArray2.default)(additionalRegions != null ? additionalRegions : []));
|
|
7165
7816
|
for (var region of allRegions) {
|
|
7166
7817
|
renderMask.addCells(region);
|
|
7167
7818
|
}
|
|
@@ -7177,8 +7828,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7177
7828
|
}, {
|
|
7178
7829
|
key: "_initialRenderRegion",
|
|
7179
7830
|
value: function _initialRenderRegion(props) {
|
|
7831
|
+
var _props$initialScrollI;
|
|
7180
7832
|
var itemCount = props.getItemCount(props.data);
|
|
7181
|
-
var firstCellIndex = Math.max(0, Math.min(itemCount - 1, Math.floor(props.initialScrollIndex
|
|
7833
|
+
var firstCellIndex = Math.max(0, Math.min(itemCount - 1, Math.floor((_props$initialScrollI = props.initialScrollIndex) != null ? _props$initialScrollI : 0)));
|
|
7182
7834
|
var lastCellIndex = Math.min(itemCount, firstCellIndex + initialNumToRenderOrDefault(props.initialNumToRender)) - 1;
|
|
7183
7835
|
return {
|
|
7184
7836
|
first: firstCellIndex,
|
|
@@ -7202,13 +7854,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7202
7854
|
}, {
|
|
7203
7855
|
key: "getDerivedStateFromProps",
|
|
7204
7856
|
value: function getDerivedStateFromProps(newProps, prevState) {
|
|
7857
|
+
var _newProps$maintainVis, _newProps$maintainVis2;
|
|
7205
7858
|
var itemCount = newProps.getItemCount(newProps.data);
|
|
7206
7859
|
if (itemCount === prevState.renderMask.numCells()) {
|
|
7207
7860
|
return prevState;
|
|
7208
7861
|
}
|
|
7209
7862
|
var maintainVisibleContentPositionAdjustment = null;
|
|
7210
7863
|
var prevFirstVisibleItemKey = prevState.firstVisibleItemKey;
|
|
7211
|
-
var minIndexForVisible = newProps.maintainVisibleContentPosition
|
|
7864
|
+
var minIndexForVisible = (_newProps$maintainVis = (_newProps$maintainVis2 = newProps.maintainVisibleContentPosition) == null ? undefined : _newProps$maintainVis2.minIndexForVisible) != null ? _newProps$maintainVis : 0;
|
|
7212
7865
|
var newFirstVisibleItemKey = newProps.getItemCount(newProps.data) > minIndexForVisible ? VirtualizedList._getItemKey(newProps, minIndexForVisible) : null;
|
|
7213
7866
|
if (newProps.maintainVisibleContentPosition != null && prevFirstVisibleItemKey != null && newFirstVisibleItemKey != null) {
|
|
7214
7867
|
if (newFirstVisibleItemKey !== prevFirstVisibleItemKey) {
|
|
@@ -7238,7 +7891,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7238
7891
|
var maxToRenderPerBatch = maxToRenderPerBatchOrDefault(props.maxToRenderPerBatch);
|
|
7239
7892
|
return {
|
|
7240
7893
|
first: (0, _clamp.default)(0, itemCount - 1 - maxToRenderPerBatch, cells.first),
|
|
7241
|
-
last
|
|
7894
|
+
last: last
|
|
7242
7895
|
};
|
|
7243
7896
|
}
|
|
7244
7897
|
}, {
|
|
@@ -7247,7 +7900,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7247
7900
|
if (props.keyExtractor != null) {
|
|
7248
7901
|
return props.keyExtractor(item, index);
|
|
7249
7902
|
}
|
|
7250
|
-
var key = (0, _$$_REQUIRE(_dependencyMap[
|
|
7903
|
+
var key = (0, _$$_REQUIRE(_dependencyMap[21]).keyExtractor)(item, index);
|
|
7251
7904
|
if (key === String(index)) {
|
|
7252
7905
|
_usedIndexForKey = true;
|
|
7253
7906
|
if (item.type && item.type.displayName) {
|
|
@@ -7258,7 +7911,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7258
7911
|
}
|
|
7259
7912
|
}]);
|
|
7260
7913
|
}(_StateSafePureComponent.default);
|
|
7261
|
-
VirtualizedList.contextType = _$$_REQUIRE(_dependencyMap[
|
|
7914
|
+
VirtualizedList.contextType = _$$_REQUIRE(_dependencyMap[22]).VirtualizedListContext;
|
|
7262
7915
|
var styles = _reactNative.StyleSheet.create({
|
|
7263
7916
|
verticallyInverted: _reactNative.Platform.OS === 'android' ? {
|
|
7264
7917
|
transform: [{
|
|
@@ -7304,7 +7957,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7304
7957
|
}
|
|
7305
7958
|
});
|
|
7306
7959
|
module.exports = VirtualizedList;
|
|
7307
|
-
},"c4b46015e44050527820",["
|
|
7960
|
+
},"c4b46015e44050527820",["277a84013d7e1a1ace05","838d7a057beeb5db50df","4926d0dbc109dc5bb6c9","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","1953ac0cbf7ac32b33d6","a30729068ebd0dea58f8","4fd7218f700134f011e9","718d6cdfb3fb081a232d","3e01a5bc929e85870fe5","04ffc79d4da370644bce","8bafab90a37cab64b100","ce5f423367f40f3628a8","fd099686726b2dfb6f66","afd4874b36ccd4e13961","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","a26dbe2a3afa21c3cf22","e6b1ef1f5b720d640981","de5ab026f9499640d730"]);
|
|
7308
7961
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7309
7962
|
'use strict';
|
|
7310
7963
|
|
|
@@ -7318,9 +7971,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7318
7971
|
}
|
|
7319
7972
|
return _$$_REQUIRE(_dependencyMap[2])(Batchinator, [{
|
|
7320
7973
|
key: "dispose",
|
|
7321
|
-
value: function dispose(
|
|
7322
|
-
|
|
7323
|
-
|
|
7974
|
+
value: function dispose() {
|
|
7975
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
7976
|
+
abort: false
|
|
7977
|
+
};
|
|
7324
7978
|
if (this._taskHandle) {
|
|
7325
7979
|
this._taskHandle.cancel();
|
|
7326
7980
|
if (!options.abort) {
|
|
@@ -7332,23 +7986,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7332
7986
|
}, {
|
|
7333
7987
|
key: "schedule",
|
|
7334
7988
|
value: function schedule() {
|
|
7989
|
+
var _this = this;
|
|
7335
7990
|
if (this._taskHandle) {
|
|
7336
7991
|
return;
|
|
7337
7992
|
}
|
|
7338
|
-
var timeoutHandle = setTimeout(()
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7993
|
+
var timeoutHandle = setTimeout(function () {
|
|
7994
|
+
_this._taskHandle = InteractionManager.runAfterInteractions(function () {
|
|
7995
|
+
_this._taskHandle = null;
|
|
7996
|
+
_this._callback();
|
|
7342
7997
|
});
|
|
7343
7998
|
}, this._delay);
|
|
7344
7999
|
this._taskHandle = {
|
|
7345
|
-
cancel: ()
|
|
8000
|
+
cancel: function cancel() {
|
|
8001
|
+
return clearTimeout(timeoutHandle);
|
|
8002
|
+
}
|
|
7346
8003
|
};
|
|
7347
8004
|
}
|
|
7348
8005
|
}]);
|
|
7349
8006
|
}();
|
|
7350
8007
|
module.exports = Batchinator;
|
|
7351
|
-
},"1953ac0cbf7ac32b33d6",["
|
|
8008
|
+
},"1953ac0cbf7ac32b33d6",["26ef620f86acf7f6932a","cb664999166f9660a878","68819e29ebee24bb0e88"]);
|
|
7352
8009
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7353
8010
|
'use strict';
|
|
7354
8011
|
|
|
@@ -7366,8 +8023,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7366
8023
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7367
8024
|
'use strict';
|
|
7368
8025
|
|
|
7369
|
-
function infoLog(
|
|
7370
|
-
|
|
8026
|
+
function infoLog() {
|
|
8027
|
+
var _console;
|
|
8028
|
+
return (_console = console).log.apply(_console, arguments);
|
|
7371
8029
|
}
|
|
7372
8030
|
module.exports = infoLog;
|
|
7373
8031
|
},"4fd7218f700134f011e9",[]);
|
|
@@ -7388,8 +8046,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7388
8046
|
return (0, _createClass2.default)(ChildListCollection, [{
|
|
7389
8047
|
key: "add",
|
|
7390
8048
|
value: function add(list, cellKey) {
|
|
8049
|
+
var _this$_cellKeyToChild;
|
|
7391
8050
|
(0, _invariant.default)(!this._childrenToCellKey.has(list), 'Trying to add already present child list');
|
|
7392
|
-
var cellLists = this._cellKeyToChildren.get(cellKey)
|
|
8051
|
+
var cellLists = (_this$_cellKeyToChild = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild : new Set();
|
|
7393
8052
|
cellLists.add(list);
|
|
7394
8053
|
this._cellKeyToChildren.set(cellKey, cellLists);
|
|
7395
8054
|
this._childrenToCellKey.set(list, cellKey);
|
|
@@ -7419,7 +8078,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7419
8078
|
}, {
|
|
7420
8079
|
key: "forEachInCell",
|
|
7421
8080
|
value: function forEachInCell(cellKey, fn) {
|
|
7422
|
-
var
|
|
8081
|
+
var _this$_cellKeyToChild2;
|
|
8082
|
+
var listSet = (_this$_cellKeyToChild2 = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild2 : [];
|
|
7423
8083
|
for (var list of listSet) {
|
|
7424
8084
|
fn(list);
|
|
7425
8085
|
}
|
|
@@ -7427,7 +8087,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7427
8087
|
}, {
|
|
7428
8088
|
key: "anyInCell",
|
|
7429
8089
|
value: function anyInCell(cellKey, fn) {
|
|
7430
|
-
var
|
|
8090
|
+
var _this$_cellKeyToChild3;
|
|
8091
|
+
var listSet = (_this$_cellKeyToChild3 = this._cellKeyToChildren.get(cellKey)) != null ? _this$_cellKeyToChild3 : [];
|
|
7431
8092
|
for (var list of listSet) {
|
|
7432
8093
|
if (fn(list)) {
|
|
7433
8094
|
return true;
|
|
@@ -7442,7 +8103,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7442
8103
|
}
|
|
7443
8104
|
}]);
|
|
7444
8105
|
}();
|
|
7445
|
-
},"718d6cdfb3fb081a232d",["
|
|
8106
|
+
},"718d6cdfb3fb081a232d",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
|
|
7446
8107
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7447
8108
|
'use strict';
|
|
7448
8109
|
|
|
@@ -7499,11 +8160,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7499
8160
|
return;
|
|
7500
8161
|
}
|
|
7501
8162
|
var total_time_spent = global.performance.now() - start;
|
|
7502
|
-
var info = {
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
8163
|
+
var info = Object.assign({}, this._info, {
|
|
8164
|
+
total_time_spent: total_time_spent
|
|
8165
|
+
});
|
|
8166
|
+
_listeners.forEach(function (listener) {
|
|
8167
|
+
return listener(info);
|
|
8168
|
+
});
|
|
7507
8169
|
this._resetData();
|
|
7508
8170
|
}
|
|
7509
8171
|
}, {
|
|
@@ -7587,8 +8249,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7587
8249
|
}
|
|
7588
8250
|
_listeners.push(callback);
|
|
7589
8251
|
return {
|
|
7590
|
-
remove: ()
|
|
7591
|
-
_listeners = _listeners.filter(
|
|
8252
|
+
remove: function remove() {
|
|
8253
|
+
_listeners = _listeners.filter(function (listener) {
|
|
8254
|
+
return callback !== listener;
|
|
8255
|
+
});
|
|
7592
8256
|
}
|
|
7593
8257
|
};
|
|
7594
8258
|
}
|
|
@@ -7605,7 +8269,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7605
8269
|
}]);
|
|
7606
8270
|
}();
|
|
7607
8271
|
module.exports = FillRateHelper;
|
|
7608
|
-
},"3e01a5bc929e85870fe5",["
|
|
8272
|
+
},"3e01a5bc929e85870fe5",["68819e29ebee24bb0e88","cb664999166f9660a878"]);
|
|
7609
8273
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7610
8274
|
Object.defineProperty(exports, "__esModule", {
|
|
7611
8275
|
value: true
|
|
@@ -7619,9 +8283,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7619
8283
|
var _inherits2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[6]));
|
|
7620
8284
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
|
|
7621
8285
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
|
|
7622
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8286
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
7623
8287
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
7624
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
8288
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
7625
8289
|
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
7626
8290
|
var StateSafePureComponent = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
7627
8291
|
function StateSafePureComponent(props) {
|
|
@@ -7636,16 +8300,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7636
8300
|
return (0, _createClass2.default)(StateSafePureComponent, [{
|
|
7637
8301
|
key: "setState",
|
|
7638
8302
|
value: function setState(partialState, callback) {
|
|
8303
|
+
var _this2 = this;
|
|
7639
8304
|
if (typeof partialState === 'function') {
|
|
7640
|
-
_superPropGet(StateSafePureComponent, "setState", this, 3)([(state, props)
|
|
7641
|
-
|
|
8305
|
+
_superPropGet(StateSafePureComponent, "setState", this, 3)([function (state, props) {
|
|
8306
|
+
_this2._inAsyncStateUpdate = true;
|
|
7642
8307
|
var ret;
|
|
7643
8308
|
try {
|
|
7644
8309
|
ret = partialState(state, props);
|
|
7645
8310
|
} catch (err) {
|
|
7646
8311
|
throw err;
|
|
7647
8312
|
} finally {
|
|
7648
|
-
|
|
8313
|
+
_this2._inAsyncStateUpdate = false;
|
|
7649
8314
|
}
|
|
7650
8315
|
return ret;
|
|
7651
8316
|
}, callback]);
|
|
@@ -7660,34 +8325,35 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7660
8325
|
var props = this.props,
|
|
7661
8326
|
state = this.state;
|
|
7662
8327
|
Object.defineProperty(this, 'props', {
|
|
7663
|
-
get() {
|
|
8328
|
+
get: function get() {
|
|
7664
8329
|
(0, _invariant.default)(!that._inAsyncStateUpdate, '"this.props" should not be accessed during state updates');
|
|
7665
8330
|
return props;
|
|
7666
8331
|
},
|
|
7667
|
-
set(newProps) {
|
|
8332
|
+
set: function set(newProps) {
|
|
7668
8333
|
props = newProps;
|
|
7669
8334
|
}
|
|
7670
8335
|
});
|
|
7671
8336
|
Object.defineProperty(this, 'state', {
|
|
7672
|
-
get() {
|
|
8337
|
+
get: function get() {
|
|
7673
8338
|
(0, _invariant.default)(!that._inAsyncStateUpdate, '"this.state" should not be acceessed during state updates');
|
|
7674
8339
|
return state;
|
|
7675
8340
|
},
|
|
7676
|
-
set(newState) {
|
|
8341
|
+
set: function set(newState) {
|
|
7677
8342
|
state = newState;
|
|
7678
8343
|
}
|
|
7679
8344
|
});
|
|
7680
8345
|
}
|
|
7681
8346
|
}]);
|
|
7682
8347
|
}(React.PureComponent);
|
|
7683
|
-
},"04ffc79d4da370644bce",["
|
|
8348
|
+
},"04ffc79d4da370644bce",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","55062adb34159de0ea92","9822a58ca7726d551fe0","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f"]);
|
|
7684
8349
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7685
8350
|
'use strict';
|
|
7686
8351
|
|
|
7687
8352
|
var ViewabilityHelper = /*#__PURE__*/function () {
|
|
7688
|
-
function ViewabilityHelper(
|
|
7689
|
-
|
|
7690
|
-
|
|
8353
|
+
function ViewabilityHelper() {
|
|
8354
|
+
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
8355
|
+
viewAreaCoveragePercentThreshold: 0
|
|
8356
|
+
};
|
|
7691
8357
|
_$$_REQUIRE(_dependencyMap[0])(this, ViewabilityHelper);
|
|
7692
8358
|
this._hasInteracted = false;
|
|
7693
8359
|
this._timers = new Set();
|
|
@@ -7723,8 +8389,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7723
8389
|
last = _ref.last;
|
|
7724
8390
|
if (last >= itemCount) {
|
|
7725
8391
|
console.warn('Invalid render range computing viewability ' + JSON.stringify({
|
|
7726
|
-
renderRange,
|
|
7727
|
-
itemCount
|
|
8392
|
+
renderRange: renderRange,
|
|
8393
|
+
itemCount: itemCount
|
|
7728
8394
|
}));
|
|
7729
8395
|
return [];
|
|
7730
8396
|
}
|
|
@@ -7749,6 +8415,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7749
8415
|
}, {
|
|
7750
8416
|
key: "onUpdate",
|
|
7751
8417
|
value: function onUpdate(props, scrollOffset, viewportHeight, getFrameMetrics, createViewToken, onViewableItemsChanged, renderRange) {
|
|
8418
|
+
var _this = this;
|
|
7752
8419
|
var itemCount = props.getItemCount(props.data);
|
|
7753
8420
|
if (this._config.waitForInteraction && !this._hasInteracted || itemCount === 0 || !getFrameMetrics(0, props)) {
|
|
7754
8421
|
return;
|
|
@@ -7757,14 +8424,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7757
8424
|
if (itemCount) {
|
|
7758
8425
|
viewableIndices = this.computeViewableItems(props, scrollOffset, viewportHeight, getFrameMetrics, renderRange);
|
|
7759
8426
|
}
|
|
7760
|
-
if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every((v, ii)
|
|
8427
|
+
if (this._viewableIndices.length === viewableIndices.length && this._viewableIndices.every(function (v, ii) {
|
|
8428
|
+
return v === viewableIndices[ii];
|
|
8429
|
+
})) {
|
|
7761
8430
|
return;
|
|
7762
8431
|
}
|
|
7763
8432
|
this._viewableIndices = viewableIndices;
|
|
7764
8433
|
if (this._config.minimumViewTime) {
|
|
7765
|
-
var handle = setTimeout(()
|
|
7766
|
-
|
|
7767
|
-
|
|
8434
|
+
var handle = setTimeout(function () {
|
|
8435
|
+
_this._timers.delete(handle);
|
|
8436
|
+
_this._onUpdateSync(props, viewableIndices, onViewableItemsChanged, createViewToken);
|
|
7768
8437
|
}, this._config.minimumViewTime);
|
|
7769
8438
|
this._timers.add(handle);
|
|
7770
8439
|
} else {
|
|
@@ -7784,9 +8453,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7784
8453
|
}, {
|
|
7785
8454
|
key: "_onUpdateSync",
|
|
7786
8455
|
value: function _onUpdateSync(props, viewableIndicesToCheck, onViewableItemsChanged, createViewToken) {
|
|
7787
|
-
|
|
8456
|
+
var _this2 = this;
|
|
8457
|
+
viewableIndicesToCheck = viewableIndicesToCheck.filter(function (ii) {
|
|
8458
|
+
return _this2._viewableIndices.includes(ii);
|
|
8459
|
+
});
|
|
7788
8460
|
var prevItems = this._viewableItems;
|
|
7789
|
-
var nextItems = new Map(viewableIndicesToCheck.map(ii
|
|
8461
|
+
var nextItems = new Map(viewableIndicesToCheck.map(function (ii) {
|
|
7790
8462
|
var viewable = createViewToken(ii, true, props);
|
|
7791
8463
|
return [viewable.key, viewable];
|
|
7792
8464
|
}));
|
|
@@ -7804,17 +8476,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7804
8476
|
var _key = _ref5[0];
|
|
7805
8477
|
var _viewable = _ref5[1];
|
|
7806
8478
|
if (!nextItems.has(_key)) {
|
|
7807
|
-
changed.push({
|
|
7808
|
-
..._viewable,
|
|
8479
|
+
changed.push(Object.assign({}, _viewable, {
|
|
7809
8480
|
isViewable: false
|
|
7810
|
-
});
|
|
8481
|
+
}));
|
|
7811
8482
|
}
|
|
7812
8483
|
}
|
|
7813
8484
|
if (changed.length > 0) {
|
|
7814
8485
|
this._viewableItems = nextItems;
|
|
7815
8486
|
onViewableItemsChanged({
|
|
7816
8487
|
viewableItems: Array.from(nextItems.values()),
|
|
7817
|
-
changed,
|
|
8488
|
+
changed: changed,
|
|
7818
8489
|
viewabilityConfig: this._config
|
|
7819
8490
|
});
|
|
7820
8491
|
}
|
|
@@ -7838,7 +8509,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7838
8509
|
return top >= 0 && bottom <= viewportHeight && bottom > top;
|
|
7839
8510
|
}
|
|
7840
8511
|
module.exports = ViewabilityHelper;
|
|
7841
|
-
},"8bafab90a37cab64b100",["
|
|
8512
|
+
},"8bafab90a37cab64b100",["cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66","d73b3a84588342abd1b6"]);
|
|
7842
8513
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
7843
8514
|
Object.defineProperty(exports, "__esModule", {
|
|
7844
8515
|
value: true
|
|
@@ -7852,14 +8523,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7852
8523
|
var _reactNative = _$$_REQUIRE(_dependencyMap[6]);
|
|
7853
8524
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[7]));
|
|
7854
8525
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[8]));
|
|
7855
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8526
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
7856
8527
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
7857
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
8528
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
7858
8529
|
var CellRenderer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
7859
|
-
function CellRenderer(
|
|
8530
|
+
function CellRenderer() {
|
|
7860
8531
|
var _this;
|
|
7861
8532
|
(0, _classCallCheck2.default)(this, CellRenderer);
|
|
7862
|
-
|
|
8533
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8534
|
+
args[_key] = arguments[_key];
|
|
8535
|
+
}
|
|
8536
|
+
_this = _callSuper(this, CellRenderer, [].concat(args));
|
|
7863
8537
|
_this.state = {
|
|
7864
8538
|
separatorProps: {
|
|
7865
8539
|
highlighted: false,
|
|
@@ -7867,7 +8541,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7867
8541
|
}
|
|
7868
8542
|
};
|
|
7869
8543
|
_this._separators = {
|
|
7870
|
-
highlight: ()
|
|
8544
|
+
highlight: function highlight() {
|
|
7871
8545
|
var _this$props = _this.props,
|
|
7872
8546
|
cellKey = _this$props.cellKey,
|
|
7873
8547
|
prevCellKey = _this$props.prevCellKey;
|
|
@@ -7875,7 +8549,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7875
8549
|
highlighted: true
|
|
7876
8550
|
});
|
|
7877
8551
|
},
|
|
7878
|
-
unhighlight: ()
|
|
8552
|
+
unhighlight: function unhighlight() {
|
|
7879
8553
|
var _this$props2 = _this.props,
|
|
7880
8554
|
cellKey = _this$props2.cellKey,
|
|
7881
8555
|
prevCellKey = _this$props2.prevCellKey;
|
|
@@ -7883,14 +8557,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7883
8557
|
highlighted: false
|
|
7884
8558
|
});
|
|
7885
8559
|
},
|
|
7886
|
-
updateProps: (select, newProps)
|
|
8560
|
+
updateProps: function updateProps(select, newProps) {
|
|
7887
8561
|
var _this$props3 = _this.props,
|
|
7888
8562
|
cellKey = _this$props3.cellKey,
|
|
7889
8563
|
prevCellKey = _this$props3.prevCellKey;
|
|
7890
8564
|
_this.props.onUpdateSeparators([select === 'leading' ? prevCellKey : cellKey], newProps);
|
|
7891
8565
|
}
|
|
7892
8566
|
};
|
|
7893
|
-
_this._onLayout = nativeEvent
|
|
8567
|
+
_this._onLayout = function (nativeEvent) {
|
|
7894
8568
|
_this.props.onCellLayout && _this.props.onCellLayout(nativeEvent, _this.props.cellKey, _this.props.index);
|
|
7895
8569
|
};
|
|
7896
8570
|
return _this;
|
|
@@ -7899,12 +8573,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7899
8573
|
return (0, _createClass2.default)(CellRenderer, [{
|
|
7900
8574
|
key: "updateSeparatorProps",
|
|
7901
8575
|
value: function updateSeparatorProps(newProps) {
|
|
7902
|
-
this.setState(state
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
}));
|
|
8576
|
+
this.setState(function (state) {
|
|
8577
|
+
return {
|
|
8578
|
+
separatorProps: Object.assign({}, state.separatorProps, newProps)
|
|
8579
|
+
};
|
|
8580
|
+
});
|
|
7908
8581
|
}
|
|
7909
8582
|
}, {
|
|
7910
8583
|
key: "componentWillUnmount",
|
|
@@ -7919,15 +8592,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7919
8592
|
}
|
|
7920
8593
|
if (ListItemComponent) {
|
|
7921
8594
|
return React.createElement(ListItemComponent, {
|
|
7922
|
-
item,
|
|
7923
|
-
index,
|
|
8595
|
+
item: item,
|
|
8596
|
+
index: index,
|
|
7924
8597
|
separators: this._separators
|
|
7925
8598
|
});
|
|
7926
8599
|
}
|
|
7927
8600
|
if (renderItem) {
|
|
7928
8601
|
return renderItem({
|
|
7929
|
-
item,
|
|
7930
|
-
index,
|
|
8602
|
+
item: item,
|
|
8603
|
+
index: index,
|
|
7931
8604
|
separators: this._separators
|
|
7932
8605
|
});
|
|
7933
8606
|
}
|
|
@@ -7949,28 +8622,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7949
8622
|
onCellLayout = _this$props4.onCellLayout,
|
|
7950
8623
|
renderItem = _this$props4.renderItem;
|
|
7951
8624
|
var element = this._renderElement(renderItem, ListItemComponent, item, index);
|
|
7952
|
-
var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, {
|
|
7953
|
-
...this.state.separatorProps
|
|
7954
|
-
});
|
|
8625
|
+
var itemSeparator = React.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(ItemSeparatorComponent, Object.assign({}, this.state.separatorProps));
|
|
7955
8626
|
var cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle;
|
|
7956
|
-
var result = !CellRendererComponent ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, {
|
|
8627
|
+
var result = !CellRendererComponent ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(_reactNative.View, Object.assign({
|
|
7957
8628
|
style: cellStyle,
|
|
7958
|
-
onFocusCapture: onCellFocusCapture
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
8629
|
+
onFocusCapture: onCellFocusCapture
|
|
8630
|
+
}, onCellLayout && {
|
|
8631
|
+
onLayout: this._onLayout
|
|
8632
|
+
}, {
|
|
7962
8633
|
children: [element, itemSeparator]
|
|
7963
|
-
}) : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(CellRendererComponent, {
|
|
8634
|
+
})) : /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsxs)(CellRendererComponent, Object.assign({
|
|
7964
8635
|
cellKey: cellKey,
|
|
7965
8636
|
index: index,
|
|
7966
8637
|
item: item,
|
|
7967
8638
|
style: cellStyle,
|
|
7968
|
-
onFocusCapture: onCellFocusCapture
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
8639
|
+
onFocusCapture: onCellFocusCapture
|
|
8640
|
+
}, onCellLayout && {
|
|
8641
|
+
onLayout: this._onLayout
|
|
8642
|
+
}, {
|
|
7972
8643
|
children: [element, itemSeparator]
|
|
7973
|
-
});
|
|
8644
|
+
}));
|
|
7974
8645
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[9]).jsx)(_$$_REQUIRE(_dependencyMap[10]).VirtualizedListCellContextProvider, {
|
|
7975
8646
|
cellKey: this.props.cellKey,
|
|
7976
8647
|
children: result
|
|
@@ -7980,10 +8651,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7980
8651
|
key: "getDerivedStateFromProps",
|
|
7981
8652
|
value: function getDerivedStateFromProps(props, prevState) {
|
|
7982
8653
|
return {
|
|
7983
|
-
separatorProps: {
|
|
7984
|
-
...prevState.separatorProps,
|
|
8654
|
+
separatorProps: Object.assign({}, prevState.separatorProps, {
|
|
7985
8655
|
leadingItem: props.item
|
|
7986
|
-
}
|
|
8656
|
+
})
|
|
7987
8657
|
};
|
|
7988
8658
|
}
|
|
7989
8659
|
}]);
|
|
@@ -7999,7 +8669,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
7999
8669
|
flexDirection: 'column-reverse'
|
|
8000
8670
|
}
|
|
8001
8671
|
});
|
|
8002
|
-
},"ce5f423367f40f3628a8",["
|
|
8672
|
+
},"ce5f423367f40f3628a8",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","048fed5a64a04bdb7fed","e6b1ef1f5b720d640981"]);
|
|
8003
8673
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8004
8674
|
Object.defineProperty(exports, "__esModule", {
|
|
8005
8675
|
value: true
|
|
@@ -8010,41 +8680,41 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8010
8680
|
exports.VirtualizedListContextResetter = VirtualizedListContextResetter;
|
|
8011
8681
|
var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
|
|
8012
8682
|
var React = _react;
|
|
8013
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8683
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8014
8684
|
var VirtualizedListContext = exports.VirtualizedListContext = React.createContext(null);
|
|
8015
|
-
function VirtualizedListContextResetter({
|
|
8016
|
-
children
|
|
8017
|
-
}) {
|
|
8685
|
+
function VirtualizedListContextResetter(_ref) {
|
|
8686
|
+
var children = _ref.children;
|
|
8018
8687
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1]).jsx)(VirtualizedListContext.Provider, {
|
|
8019
8688
|
value: null,
|
|
8020
8689
|
children: children
|
|
8021
8690
|
});
|
|
8022
8691
|
}
|
|
8023
|
-
function VirtualizedListContextProvider({
|
|
8024
|
-
children,
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8692
|
+
function VirtualizedListContextProvider(_ref2) {
|
|
8693
|
+
var children = _ref2.children,
|
|
8694
|
+
value = _ref2.value;
|
|
8695
|
+
var context = (0, _react.useMemo)(function () {
|
|
8696
|
+
return {
|
|
8697
|
+
cellKey: null,
|
|
8698
|
+
getScrollMetrics: value.getScrollMetrics,
|
|
8699
|
+
horizontal: value.horizontal,
|
|
8700
|
+
getOutermostParentListRef: value.getOutermostParentListRef,
|
|
8701
|
+
registerAsNestedChild: value.registerAsNestedChild,
|
|
8702
|
+
unregisterAsNestedChild: value.unregisterAsNestedChild
|
|
8703
|
+
};
|
|
8704
|
+
}, [value.getScrollMetrics, value.horizontal, value.getOutermostParentListRef, value.registerAsNestedChild, value.unregisterAsNestedChild]);
|
|
8035
8705
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1]).jsx)(VirtualizedListContext.Provider, {
|
|
8036
8706
|
value: context,
|
|
8037
8707
|
children: children
|
|
8038
8708
|
});
|
|
8039
8709
|
}
|
|
8040
|
-
function VirtualizedListCellContextProvider({
|
|
8041
|
-
cellKey,
|
|
8042
|
-
|
|
8043
|
-
}) {
|
|
8710
|
+
function VirtualizedListCellContextProvider(_ref3) {
|
|
8711
|
+
var cellKey = _ref3.cellKey,
|
|
8712
|
+
children = _ref3.children;
|
|
8044
8713
|
var currContext = (0, _react.useContext)(VirtualizedListContext);
|
|
8045
|
-
var context = (0, _react.useMemo)(()
|
|
8046
|
-
|
|
8047
|
-
|
|
8714
|
+
var context = (0, _react.useMemo)(function () {
|
|
8715
|
+
return currContext == null ? null : Object.assign({}, currContext, {
|
|
8716
|
+
cellKey: cellKey
|
|
8717
|
+
});
|
|
8048
8718
|
}, [currContext, cellKey]);
|
|
8049
8719
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[1]).jsx)(VirtualizedListContext.Provider, {
|
|
8050
8720
|
value: context,
|
|
@@ -8057,10 +8727,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8057
8727
|
value: true
|
|
8058
8728
|
});
|
|
8059
8729
|
exports.CellRenderMask = undefined;
|
|
8060
|
-
var
|
|
8061
|
-
var
|
|
8062
|
-
var
|
|
8063
|
-
var
|
|
8730
|
+
var _toConsumableArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
8731
|
+
var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
8732
|
+
var _classCallCheck2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
|
|
8733
|
+
var _createClass2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[4]));
|
|
8734
|
+
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[5]));
|
|
8064
8735
|
var CellRenderMask = exports.CellRenderMask = /*#__PURE__*/function () {
|
|
8065
8736
|
function CellRenderMask(numCells) {
|
|
8066
8737
|
(0, _classCallCheck2.default)(this, CellRenderMask);
|
|
@@ -8084,6 +8755,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8084
8755
|
}, {
|
|
8085
8756
|
key: "addCells",
|
|
8086
8757
|
value: function addCells(cells) {
|
|
8758
|
+
var _this$_regions;
|
|
8087
8759
|
(0, _invariant.default)(cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1, 'CellRenderMask.addCells called with invalid cell range');
|
|
8088
8760
|
if (cells.last < cells.first) {
|
|
8089
8761
|
return;
|
|
@@ -8101,10 +8773,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8101
8773
|
}
|
|
8102
8774
|
var newLeadRegion = [];
|
|
8103
8775
|
var newTailRegion = [];
|
|
8104
|
-
var newMainRegion = {
|
|
8105
|
-
...cells,
|
|
8776
|
+
var newMainRegion = Object.assign({}, cells, {
|
|
8106
8777
|
isSpacer: false
|
|
8107
|
-
};
|
|
8778
|
+
});
|
|
8108
8779
|
if (firstIntersect.first < newMainRegion.first) {
|
|
8109
8780
|
if (firstIntersect.isSpacer) {
|
|
8110
8781
|
newLeadRegion.push({
|
|
@@ -8127,9 +8798,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8127
8798
|
newMainRegion.last = lastIntersect.last;
|
|
8128
8799
|
}
|
|
8129
8800
|
}
|
|
8130
|
-
var replacementRegions = [
|
|
8801
|
+
var replacementRegions = [].concat(newLeadRegion, [newMainRegion], newTailRegion);
|
|
8131
8802
|
var numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;
|
|
8132
|
-
this._regions.splice(firstIntersectIdx, numRegionsToDelete,
|
|
8803
|
+
(_this$_regions = this._regions).splice.apply(_this$_regions, [firstIntersectIdx, numRegionsToDelete].concat((0, _toConsumableArray2.default)(replacementRegions)));
|
|
8133
8804
|
}
|
|
8134
8805
|
}, {
|
|
8135
8806
|
key: "numCells",
|
|
@@ -8139,7 +8810,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8139
8810
|
}, {
|
|
8140
8811
|
key: "equals",
|
|
8141
8812
|
value: function equals(other) {
|
|
8142
|
-
return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every((region, i)
|
|
8813
|
+
return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(function (region, i) {
|
|
8814
|
+
return region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer;
|
|
8815
|
+
});
|
|
8143
8816
|
}
|
|
8144
8817
|
}, {
|
|
8145
8818
|
key: "_findRegion",
|
|
@@ -8161,7 +8834,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8161
8834
|
}
|
|
8162
8835
|
}]);
|
|
8163
8836
|
}();
|
|
8164
|
-
},"de5ab026f9499640d730",["
|
|
8837
|
+
},"de5ab026f9499640d730",["277a84013d7e1a1ace05","838d7a057beeb5db50df","d73b3a84588342abd1b6","cb664999166f9660a878","68819e29ebee24bb0e88","fd099686726b2dfb6f66"]);
|
|
8165
8838
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8166
8839
|
var _slicedToArray2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
8167
8840
|
var _objectWithoutProperties2 = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
@@ -8175,19 +8848,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8175
8848
|
var _invariant = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[10]));
|
|
8176
8849
|
var React = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[11]));
|
|
8177
8850
|
var _excluded = ["ItemSeparatorComponent", "SectionSeparatorComponent", "renderItem", "renderSectionFooter", "renderSectionHeader", "sections", "stickySectionHeadersEnabled"];
|
|
8178
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8851
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
8179
8852
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
8180
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
8853
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8181
8854
|
var VirtualizedSectionList = /*#__PURE__*/function (_React$PureComponent) {
|
|
8182
|
-
function VirtualizedSectionList(
|
|
8855
|
+
function VirtualizedSectionList() {
|
|
8183
8856
|
var _this;
|
|
8184
8857
|
(0, _classCallCheck2.default)(this, VirtualizedSectionList);
|
|
8185
|
-
|
|
8186
|
-
|
|
8858
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8859
|
+
args[_key] = arguments[_key];
|
|
8860
|
+
}
|
|
8861
|
+
_this = _callSuper(this, VirtualizedSectionList, [].concat(args));
|
|
8862
|
+
_this._keyExtractor = function (item, index) {
|
|
8187
8863
|
var info = _this._subExtractor(index);
|
|
8188
8864
|
return info && info.key || String(index);
|
|
8189
8865
|
};
|
|
8190
|
-
_this._convertViewable = viewable
|
|
8866
|
+
_this._convertViewable = function (viewable) {
|
|
8867
|
+
var _info$index;
|
|
8191
8868
|
(0, _invariant.default)(viewable.index != null, 'Received a broken ViewToken');
|
|
8192
8869
|
var info = _this._subExtractor(viewable.index);
|
|
8193
8870
|
if (!info) {
|
|
@@ -8195,18 +8872,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8195
8872
|
}
|
|
8196
8873
|
var keyExtractorWithNullableIndex = info.section.keyExtractor;
|
|
8197
8874
|
var keyExtractorWithNonNullableIndex = _this.props.keyExtractor || _$$_REQUIRE(_dependencyMap[12]).keyExtractor;
|
|
8198
|
-
var key = keyExtractorWithNullableIndex != null ? keyExtractorWithNullableIndex(viewable.item, info.index) : keyExtractorWithNonNullableIndex(viewable.item, info.index
|
|
8199
|
-
return {
|
|
8200
|
-
...viewable,
|
|
8875
|
+
var key = keyExtractorWithNullableIndex != null ? keyExtractorWithNullableIndex(viewable.item, info.index) : keyExtractorWithNonNullableIndex(viewable.item, (_info$index = info.index) != null ? _info$index : 0);
|
|
8876
|
+
return Object.assign({}, viewable, {
|
|
8201
8877
|
index: info.index,
|
|
8202
|
-
key,
|
|
8878
|
+
key: key,
|
|
8203
8879
|
section: info.section
|
|
8204
|
-
};
|
|
8880
|
+
});
|
|
8205
8881
|
};
|
|
8206
|
-
_this._onViewableItemsChanged = ({
|
|
8207
|
-
viewableItems,
|
|
8208
|
-
|
|
8209
|
-
}) => {
|
|
8882
|
+
_this._onViewableItemsChanged = function (_ref) {
|
|
8883
|
+
var viewableItems = _ref.viewableItems,
|
|
8884
|
+
changed = _ref.changed;
|
|
8210
8885
|
var onViewableItemsChanged = _this.props.onViewableItemsChanged;
|
|
8211
8886
|
if (onViewableItemsChanged != null) {
|
|
8212
8887
|
onViewableItemsChanged({
|
|
@@ -8215,73 +8890,74 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8215
8890
|
});
|
|
8216
8891
|
}
|
|
8217
8892
|
};
|
|
8218
|
-
_this._renderItem = listItemCount
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8893
|
+
_this._renderItem = function (listItemCount) {
|
|
8894
|
+
return function (_ref2) {
|
|
8895
|
+
var item = _ref2.item,
|
|
8896
|
+
index = _ref2.index;
|
|
8897
|
+
var info = _this._subExtractor(index);
|
|
8898
|
+
if (!info) {
|
|
8899
|
+
return null;
|
|
8900
|
+
}
|
|
8901
|
+
var infoIndex = info.index;
|
|
8902
|
+
if (infoIndex == null) {
|
|
8903
|
+
var section = info.section;
|
|
8904
|
+
if (info.header === true) {
|
|
8905
|
+
var renderSectionHeader = _this.props.renderSectionHeader;
|
|
8906
|
+
return renderSectionHeader ? renderSectionHeader({
|
|
8907
|
+
section: section
|
|
8908
|
+
}) : null;
|
|
8909
|
+
} else {
|
|
8910
|
+
var renderSectionFooter = _this.props.renderSectionFooter;
|
|
8911
|
+
return renderSectionFooter ? renderSectionFooter({
|
|
8912
|
+
section: section
|
|
8913
|
+
}) : null;
|
|
8914
|
+
}
|
|
8234
8915
|
} else {
|
|
8235
|
-
var
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8916
|
+
var renderItem = info.section.renderItem || _this.props.renderItem;
|
|
8917
|
+
var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount);
|
|
8918
|
+
(0, _invariant.default)(renderItem, 'no renderItem!');
|
|
8919
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(ItemWithSeparator, {
|
|
8920
|
+
SeparatorComponent: SeparatorComponent,
|
|
8921
|
+
LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
|
|
8922
|
+
cellKey: info.key,
|
|
8923
|
+
index: infoIndex,
|
|
8924
|
+
item: item,
|
|
8925
|
+
leadingItem: info.leadingItem,
|
|
8926
|
+
leadingSection: info.leadingSection,
|
|
8927
|
+
prevCellKey: (_this._subExtractor(index - 1) || {}).key,
|
|
8928
|
+
setSelfHighlightCallback: _this._setUpdateHighlightFor,
|
|
8929
|
+
setSelfUpdatePropsCallback: _this._setUpdatePropsFor,
|
|
8930
|
+
updateHighlightFor: _this._updateHighlightFor,
|
|
8931
|
+
updatePropsFor: _this._updatePropsFor,
|
|
8932
|
+
renderItem: renderItem,
|
|
8933
|
+
section: info.section,
|
|
8934
|
+
trailingItem: info.trailingItem,
|
|
8935
|
+
trailingSection: info.trailingSection,
|
|
8936
|
+
inverted: !!_this.props.inverted
|
|
8937
|
+
});
|
|
8239
8938
|
}
|
|
8240
|
-
}
|
|
8241
|
-
var renderItem = info.section.renderItem || _this.props.renderItem;
|
|
8242
|
-
var SeparatorComponent = _this._getSeparatorComponent(index, info, listItemCount);
|
|
8243
|
-
(0, _invariant.default)(renderItem, 'no renderItem!');
|
|
8244
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(ItemWithSeparator, {
|
|
8245
|
-
SeparatorComponent: SeparatorComponent,
|
|
8246
|
-
LeadingSeparatorComponent: infoIndex === 0 ? _this.props.SectionSeparatorComponent : undefined,
|
|
8247
|
-
cellKey: info.key,
|
|
8248
|
-
index: infoIndex,
|
|
8249
|
-
item: item,
|
|
8250
|
-
leadingItem: info.leadingItem,
|
|
8251
|
-
leadingSection: info.leadingSection,
|
|
8252
|
-
prevCellKey: (_this._subExtractor(index - 1) || {}).key,
|
|
8253
|
-
setSelfHighlightCallback: _this._setUpdateHighlightFor,
|
|
8254
|
-
setSelfUpdatePropsCallback: _this._setUpdatePropsFor,
|
|
8255
|
-
updateHighlightFor: _this._updateHighlightFor,
|
|
8256
|
-
updatePropsFor: _this._updatePropsFor,
|
|
8257
|
-
renderItem: renderItem,
|
|
8258
|
-
section: info.section,
|
|
8259
|
-
trailingItem: info.trailingItem,
|
|
8260
|
-
trailingSection: info.trailingSection,
|
|
8261
|
-
inverted: !!_this.props.inverted
|
|
8262
|
-
});
|
|
8263
|
-
}
|
|
8939
|
+
};
|
|
8264
8940
|
};
|
|
8265
|
-
_this._updatePropsFor = (cellKey, value)
|
|
8941
|
+
_this._updatePropsFor = function (cellKey, value) {
|
|
8266
8942
|
var updateProps = _this._updatePropsMap[cellKey];
|
|
8267
8943
|
if (updateProps != null) {
|
|
8268
8944
|
updateProps(value);
|
|
8269
8945
|
}
|
|
8270
8946
|
};
|
|
8271
|
-
_this._updateHighlightFor = (cellKey, value)
|
|
8947
|
+
_this._updateHighlightFor = function (cellKey, value) {
|
|
8272
8948
|
var updateHighlight = _this._updateHighlightMap[cellKey];
|
|
8273
8949
|
if (updateHighlight != null) {
|
|
8274
8950
|
updateHighlight(value);
|
|
8275
8951
|
}
|
|
8276
8952
|
};
|
|
8277
|
-
_this._setUpdateHighlightFor = (cellKey, updateHighlightFn)
|
|
8953
|
+
_this._setUpdateHighlightFor = function (cellKey, updateHighlightFn) {
|
|
8278
8954
|
if (updateHighlightFn != null) {
|
|
8279
8955
|
_this._updateHighlightMap[cellKey] = updateHighlightFn;
|
|
8280
8956
|
} else {
|
|
8281
8957
|
delete _this._updateHighlightFor[cellKey];
|
|
8282
8958
|
}
|
|
8283
8959
|
};
|
|
8284
|
-
_this._setUpdatePropsFor = (cellKey, updatePropsFn)
|
|
8960
|
+
_this._setUpdatePropsFor = function (cellKey, updatePropsFn) {
|
|
8285
8961
|
if (updatePropsFn != null) {
|
|
8286
8962
|
_this._updatePropsMap[cellKey] = updatePropsFn;
|
|
8287
8963
|
} else {
|
|
@@ -8290,7 +8966,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8290
8966
|
};
|
|
8291
8967
|
_this._updateHighlightMap = {};
|
|
8292
8968
|
_this._updatePropsMap = {};
|
|
8293
|
-
_this._captureRef = ref
|
|
8969
|
+
_this._captureRef = function (ref) {
|
|
8294
8970
|
_this._listRef = ref;
|
|
8295
8971
|
};
|
|
8296
8972
|
return _this;
|
|
@@ -8311,11 +8987,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8311
8987
|
var frame = this._listRef.__getFrameMetricsApprox(index - params.itemIndex, this._listRef.props);
|
|
8312
8988
|
viewOffset += frame.length;
|
|
8313
8989
|
}
|
|
8314
|
-
var toIndexParams = {
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
};
|
|
8990
|
+
var toIndexParams = Object.assign({}, params, {
|
|
8991
|
+
viewOffset: viewOffset,
|
|
8992
|
+
index: index
|
|
8993
|
+
});
|
|
8319
8994
|
this._listRef.scrollToIndex(toIndexParams);
|
|
8320
8995
|
}
|
|
8321
8996
|
}, {
|
|
@@ -8326,6 +9001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8326
9001
|
}, {
|
|
8327
9002
|
key: "render",
|
|
8328
9003
|
value: function render() {
|
|
9004
|
+
var _this2 = this;
|
|
8329
9005
|
var _this$props = this.props,
|
|
8330
9006
|
ItemSeparatorComponent = _this$props.ItemSeparatorComponent,
|
|
8331
9007
|
SectionSeparatorComponent = _this$props.SectionSeparatorComponent,
|
|
@@ -8346,17 +9022,20 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8346
9022
|
itemCount += this.props.getItemCount(section.data);
|
|
8347
9023
|
}
|
|
8348
9024
|
var renderItem = this._renderItem(itemCount);
|
|
8349
|
-
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_VirtualizedList.default, {
|
|
8350
|
-
...passThroughProps,
|
|
9025
|
+
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(_VirtualizedList.default, Object.assign({}, passThroughProps, {
|
|
8351
9026
|
keyExtractor: this._keyExtractor,
|
|
8352
9027
|
stickyHeaderIndices: stickyHeaderIndices,
|
|
8353
9028
|
renderItem: renderItem,
|
|
8354
9029
|
data: this.props.sections,
|
|
8355
|
-
getItem: (sections, index)
|
|
8356
|
-
|
|
9030
|
+
getItem: function getItem(sections, index) {
|
|
9031
|
+
return _this2._getItem(_this2.props, sections, index);
|
|
9032
|
+
},
|
|
9033
|
+
getItemCount: function getItemCount() {
|
|
9034
|
+
return itemCount;
|
|
9035
|
+
},
|
|
8357
9036
|
onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : undefined,
|
|
8358
9037
|
ref: this._captureRef
|
|
8359
|
-
});
|
|
9038
|
+
}));
|
|
8360
9039
|
}
|
|
8361
9040
|
}, {
|
|
8362
9041
|
key: "_getItem",
|
|
@@ -8397,7 +9076,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8397
9076
|
itemIndex -= getItemCount(sectionData) + 1;
|
|
8398
9077
|
} else if (itemIndex === -1) {
|
|
8399
9078
|
return {
|
|
8400
|
-
section,
|
|
9079
|
+
section: section,
|
|
8401
9080
|
key: key + ':header',
|
|
8402
9081
|
index: null,
|
|
8403
9082
|
header: true,
|
|
@@ -8405,7 +9084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8405
9084
|
};
|
|
8406
9085
|
} else if (itemIndex === getItemCount(sectionData)) {
|
|
8407
9086
|
return {
|
|
8408
|
-
section,
|
|
9087
|
+
section: section,
|
|
8409
9088
|
key: key + ':footer',
|
|
8410
9089
|
index: null,
|
|
8411
9090
|
header: false,
|
|
@@ -8414,7 +9093,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8414
9093
|
} else {
|
|
8415
9094
|
var extractor = section.keyExtractor || keyExtractor || _$$_REQUIRE(_dependencyMap[12]).keyExtractor;
|
|
8416
9095
|
return {
|
|
8417
|
-
section,
|
|
9096
|
+
section: section,
|
|
8418
9097
|
key: key + ':' + extractor(getItem(sectionData, itemIndex), itemIndex),
|
|
8419
9098
|
index: itemIndex,
|
|
8420
9099
|
leadingItem: getItem(sectionData, itemIndex - 1),
|
|
@@ -8487,70 +9166,59 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8487
9166
|
_React$useState8 = (0, _slicedToArray2.default)(_React$useState7, 2),
|
|
8488
9167
|
separatorProps = _React$useState8[0],
|
|
8489
9168
|
setSeparatorProps = _React$useState8[1];
|
|
8490
|
-
React.useEffect(()
|
|
9169
|
+
React.useEffect(function () {
|
|
8491
9170
|
setSelfHighlightCallback(cellKey, setSeparatorHighlighted);
|
|
8492
9171
|
setSelfUpdatePropsCallback(cellKey, setSeparatorProps);
|
|
8493
|
-
return ()
|
|
9172
|
+
return function () {
|
|
8494
9173
|
setSelfUpdatePropsCallback(cellKey, null);
|
|
8495
9174
|
setSelfHighlightCallback(cellKey, null);
|
|
8496
9175
|
};
|
|
8497
9176
|
}, [cellKey, setSelfHighlightCallback, setSeparatorProps, setSelfUpdatePropsCallback]);
|
|
8498
9177
|
var separators = {
|
|
8499
|
-
highlight: ()
|
|
9178
|
+
highlight: function highlight() {
|
|
8500
9179
|
setLeadingSeparatorHighlighted(true);
|
|
8501
9180
|
setSeparatorHighlighted(true);
|
|
8502
9181
|
if (prevCellKey != null) {
|
|
8503
9182
|
updateHighlightFor(prevCellKey, true);
|
|
8504
9183
|
}
|
|
8505
9184
|
},
|
|
8506
|
-
unhighlight: ()
|
|
9185
|
+
unhighlight: function unhighlight() {
|
|
8507
9186
|
setLeadingSeparatorHighlighted(false);
|
|
8508
9187
|
setSeparatorHighlighted(false);
|
|
8509
9188
|
if (prevCellKey != null) {
|
|
8510
9189
|
updateHighlightFor(prevCellKey, false);
|
|
8511
9190
|
}
|
|
8512
9191
|
},
|
|
8513
|
-
updateProps: (select, newProps)
|
|
9192
|
+
updateProps: function updateProps(select, newProps) {
|
|
8514
9193
|
if (select === 'leading') {
|
|
8515
9194
|
if (LeadingSeparatorComponent != null) {
|
|
8516
|
-
setLeadingSeparatorProps({
|
|
8517
|
-
...leadingSeparatorProps,
|
|
8518
|
-
...newProps
|
|
8519
|
-
});
|
|
9195
|
+
setLeadingSeparatorProps(Object.assign({}, leadingSeparatorProps, newProps));
|
|
8520
9196
|
} else if (prevCellKey != null) {
|
|
8521
|
-
updatePropsFor(prevCellKey, {
|
|
8522
|
-
...leadingSeparatorProps,
|
|
8523
|
-
...newProps
|
|
8524
|
-
});
|
|
9197
|
+
updatePropsFor(prevCellKey, Object.assign({}, leadingSeparatorProps, newProps));
|
|
8525
9198
|
}
|
|
8526
9199
|
} else if (select === 'trailing' && SeparatorComponent != null) {
|
|
8527
|
-
setSeparatorProps({
|
|
8528
|
-
...separatorProps,
|
|
8529
|
-
...newProps
|
|
8530
|
-
});
|
|
9200
|
+
setSeparatorProps(Object.assign({}, separatorProps, newProps));
|
|
8531
9201
|
}
|
|
8532
9202
|
}
|
|
8533
9203
|
};
|
|
8534
9204
|
var element = props.renderItem({
|
|
8535
|
-
item,
|
|
8536
|
-
index,
|
|
8537
|
-
section,
|
|
8538
|
-
separators
|
|
8539
|
-
});
|
|
8540
|
-
var leadingSeparator = LeadingSeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(LeadingSeparatorComponent, {
|
|
8541
|
-
highlighted: leadingSeparatorHiglighted,
|
|
8542
|
-
...leadingSeparatorProps
|
|
8543
|
-
});
|
|
8544
|
-
var separator = SeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(SeparatorComponent, {
|
|
8545
|
-
highlighted: separatorHighlighted,
|
|
8546
|
-
...separatorProps
|
|
9205
|
+
item: item,
|
|
9206
|
+
index: index,
|
|
9207
|
+
section: section,
|
|
9208
|
+
separators: separators
|
|
8547
9209
|
});
|
|
9210
|
+
var leadingSeparator = LeadingSeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(LeadingSeparatorComponent, Object.assign({
|
|
9211
|
+
highlighted: leadingSeparatorHiglighted
|
|
9212
|
+
}, leadingSeparatorProps));
|
|
9213
|
+
var separator = SeparatorComponent != null && /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsx)(SeparatorComponent, Object.assign({
|
|
9214
|
+
highlighted: separatorHighlighted
|
|
9215
|
+
}, separatorProps));
|
|
8548
9216
|
return leadingSeparator || separator ? /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[13]).jsxs)(_reactNative.View, {
|
|
8549
9217
|
children: [inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator]
|
|
8550
9218
|
}) : element;
|
|
8551
9219
|
}
|
|
8552
9220
|
module.exports = VirtualizedSectionList;
|
|
8553
|
-
},"d2355175ff6609a3def1",["
|
|
9221
|
+
},"d2355175ff6609a3def1",["277a84013d7e1a1ace05","d73b3a84588342abd1b6","a2c8e692f78bae5b8b98","cb664999166f9660a878","68819e29ebee24bb0e88","aab42168bb4cb23540ec","ba9efe5c53f1d07f5c9d","9822a58ca7726d551fe0","26ef620f86acf7f6932a","c4b46015e44050527820","fd099686726b2dfb6f66","6ed0e34da2b23bd3554f","a26dbe2a3afa21c3cf22","048fed5a64a04bdb7fed"]);
|
|
8554
9222
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8555
9223
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
8556
9224
|
try {
|
|
@@ -8578,7 +9246,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8578
9246
|
};
|
|
8579
9247
|
}
|
|
8580
9248
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8581
|
-
},"
|
|
9249
|
+
},"77f56f33f638c3751138",[]);
|
|
8582
9250
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8583
9251
|
'use strict';
|
|
8584
9252
|
|
|
@@ -8656,14 +9324,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8656
9324
|
return "__private_" + id++ + "_" + e;
|
|
8657
9325
|
}
|
|
8658
9326
|
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8659
|
-
},"
|
|
9327
|
+
},"cb8ece4f72f02a959885",[]);
|
|
8660
9328
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8661
9329
|
function _classPrivateFieldBase(e, t) {
|
|
8662
9330
|
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
|
|
8663
9331
|
return e;
|
|
8664
9332
|
}
|
|
8665
9333
|
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8666
|
-
},"
|
|
9334
|
+
},"39eb90fd8fb300b049c2",[]);
|
|
8667
9335
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8668
9336
|
"use strict";
|
|
8669
9337
|
|
|
@@ -8676,7 +9344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8676
9344
|
/**
|
|
8677
9345
|
* Wrap your `FlatList` with this component.
|
|
8678
9346
|
*/
|
|
8679
|
-
var FlatListPerformanceView = function (_a) {
|
|
9347
|
+
var FlatListPerformanceView = function FlatListPerformanceView(_a) {
|
|
8680
9348
|
var children = _a.children,
|
|
8681
9349
|
listName = _a.listName,
|
|
8682
9350
|
_b = _a.onInteractive,
|
|
@@ -8700,7 +9368,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8700
9368
|
onInteractive: onInteractiveCallback,
|
|
8701
9369
|
onBlankAreaEvent: onBlankAreaCallback
|
|
8702
9370
|
}, react_1.default.cloneElement(children, {
|
|
8703
|
-
onScroll: function () {
|
|
9371
|
+
onScroll: function onScroll() {
|
|
8704
9372
|
var _a;
|
|
8705
9373
|
if ((_a = children === null || children === undefined ? undefined : children.props) === null || _a === undefined ? undefined : _a.onScroll) {
|
|
8706
9374
|
children.props.onScroll();
|
|
@@ -8748,7 +9416,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8748
9416
|
});
|
|
8749
9417
|
var FlatListPerformanceViewNativeComponent = FlatListPerformanceView;
|
|
8750
9418
|
exports.FlatListPerformanceViewNativeComponent = FlatListPerformanceViewNativeComponent;
|
|
8751
|
-
},"71a5c239a7b806620201",["b315a84be841b96ec849","
|
|
9419
|
+
},"71a5c239a7b806620201",["b315a84be841b96ec849","76b52edafd968705fff3"]);
|
|
8752
9420
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8753
9421
|
"use strict";
|
|
8754
9422
|
|
|
@@ -8773,7 +9441,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8773
9441
|
var react_native_1 = _$$_REQUIRE(_dependencyMap[0]);
|
|
8774
9442
|
var FlatListPerformanceViewNativeComponent = (0, react_native_1.requireNativeComponent)('FlatListPerformanceView');
|
|
8775
9443
|
exports.FlatListPerformanceViewNativeComponent = FlatListPerformanceViewNativeComponent;
|
|
8776
|
-
},"5da70bcbd5dd817145d2",["
|
|
9444
|
+
},"5da70bcbd5dd817145d2",["26ef620f86acf7f6932a"]);
|
|
8777
9445
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8778
9446
|
"use strict";
|
|
8779
9447
|
|
|
@@ -8781,17 +9449,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8781
9449
|
value: true
|
|
8782
9450
|
});
|
|
8783
9451
|
var react_1 = _$$_REQUIRE(_dependencyMap[0]).__importStar(_$$_REQUIRE(_dependencyMap[1]));
|
|
8784
|
-
var bootstrapPlugin = function () {
|
|
9452
|
+
var bootstrapPlugin = function bootstrapPlugin() {
|
|
8785
9453
|
return new Promise(function (resolve) {
|
|
8786
9454
|
(0, _$$_REQUIRE(_dependencyMap[2]).addPlugin)({
|
|
8787
|
-
getId: function () {
|
|
9455
|
+
getId: function getId() {
|
|
8788
9456
|
return '@shopify/react-native-performance';
|
|
8789
9457
|
},
|
|
8790
|
-
onConnect: function (connection) {
|
|
9458
|
+
onConnect: function onConnect(connection) {
|
|
8791
9459
|
return resolve(connection);
|
|
8792
9460
|
},
|
|
8793
|
-
onDisconnect: function () {},
|
|
8794
|
-
runInBackground: function () {
|
|
9461
|
+
onDisconnect: function onDisconnect() {},
|
|
9462
|
+
runInBackground: function runInBackground() {
|
|
8795
9463
|
return true;
|
|
8796
9464
|
}
|
|
8797
9465
|
});
|
|
@@ -8801,7 +9469,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8801
9469
|
* Wrap your app with this component to get events from all the lists wrapped with their performance view.
|
|
8802
9470
|
* For example, `FlatList` must be wrapped in the `FlatListPerformanceView`.
|
|
8803
9471
|
*/
|
|
8804
|
-
var ListsProfiler = function (_a) {
|
|
9472
|
+
var ListsProfiler = function ListsProfiler(_a) {
|
|
8805
9473
|
var _b = _a.onInteractive,
|
|
8806
9474
|
onInteractive = _b === undefined ? function () {} : _b,
|
|
8807
9475
|
_c = _a.onBlankArea,
|
|
@@ -8925,7 +9593,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8925
9593
|
}();
|
|
8926
9594
|
function startEventListeners() {
|
|
8927
9595
|
var emitter = new _reactNative.NativeEventEmitter(Flipper);
|
|
8928
|
-
emitter.addListener('react-native-flipper-plugin-connect', event
|
|
9596
|
+
emitter.addListener('react-native-flipper-plugin-connect', function (event) {
|
|
8929
9597
|
var plugin = event.plugin;
|
|
8930
9598
|
if (plugins[plugin]) {
|
|
8931
9599
|
var p = plugins[plugin];
|
|
@@ -8933,7 +9601,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8933
9601
|
p.onConnect(p._connection);
|
|
8934
9602
|
}
|
|
8935
9603
|
});
|
|
8936
|
-
emitter.addListener('react-native-flipper-plugin-disconnect', event
|
|
9604
|
+
emitter.addListener('react-native-flipper-plugin-disconnect', function (event) {
|
|
8937
9605
|
var plugin = event.plugin;
|
|
8938
9606
|
if (plugins[plugin]) {
|
|
8939
9607
|
var p = plugins[plugin];
|
|
@@ -8941,7 +9609,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8941
9609
|
p.onDisconnect();
|
|
8942
9610
|
}
|
|
8943
9611
|
});
|
|
8944
|
-
emitter.addListener('react-native-flipper-receive-event', event
|
|
9612
|
+
emitter.addListener('react-native-flipper-receive-event', function (event) {
|
|
8945
9613
|
var plugin = event.plugin,
|
|
8946
9614
|
method = event.method,
|
|
8947
9615
|
params = event.params,
|
|
@@ -8963,7 +9631,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8963
9631
|
if (!plugin || typeof plugin !== 'object') {
|
|
8964
9632
|
throw new Error('Expected plugin, got ' + plugin);
|
|
8965
9633
|
}
|
|
8966
|
-
['getId', 'onConnect', 'onDisconnect'].forEach(method
|
|
9634
|
+
['getId', 'onConnect', 'onDisconnect'].forEach(function (method) {
|
|
8967
9635
|
if (typeof plugin[method] !== 'function') {
|
|
8968
9636
|
throw new Error(`Plugin misses an implementation for '${method}'`);
|
|
8969
9637
|
}
|
|
@@ -8972,7 +9640,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8972
9640
|
var id = plugin.getId();
|
|
8973
9641
|
plugin._connection = new Connection(id);
|
|
8974
9642
|
plugins[id] = plugin;
|
|
8975
|
-
Flipper.registerPlugin(id, runInBackground, status
|
|
9643
|
+
Flipper.registerPlugin(id, runInBackground, function (status) {
|
|
8976
9644
|
if (status === 'noflipper') {
|
|
8977
9645
|
printNoFlipperWarning();
|
|
8978
9646
|
}
|
|
@@ -8982,7 +9650,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
8982
9650
|
if (Flipper) {
|
|
8983
9651
|
startEventListeners();
|
|
8984
9652
|
}
|
|
8985
|
-
},"009c5b3393756c881893",["
|
|
9653
|
+
},"009c5b3393756c881893",["277a84013d7e1a1ace05","cb664999166f9660a878","68819e29ebee24bb0e88","26ef620f86acf7f6932a"]);
|
|
8986
9654
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
8987
9655
|
"use strict";
|
|
8988
9656
|
|
|
@@ -9004,19 +9672,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9004
9672
|
exports.ListsProfiler = exports.FlashListPerformanceView = exports.FlatListPerformanceView = undefined;
|
|
9005
9673
|
Object.defineProperty(exports, "FlatListPerformanceView", {
|
|
9006
9674
|
enumerable: true,
|
|
9007
|
-
get: function () {
|
|
9675
|
+
get: function get() {
|
|
9008
9676
|
return __importDefault(_$$_REQUIRE(_dependencyMap[0])).default;
|
|
9009
9677
|
}
|
|
9010
9678
|
});
|
|
9011
9679
|
Object.defineProperty(exports, "FlashListPerformanceView", {
|
|
9012
9680
|
enumerable: true,
|
|
9013
|
-
get: function () {
|
|
9681
|
+
get: function get() {
|
|
9014
9682
|
return __importDefault(_$$_REQUIRE(_dependencyMap[1])).default;
|
|
9015
9683
|
}
|
|
9016
9684
|
});
|
|
9017
9685
|
Object.defineProperty(exports, "ListsProfiler", {
|
|
9018
9686
|
enumerable: true,
|
|
9019
|
-
get: function () {
|
|
9687
|
+
get: function get() {
|
|
9020
9688
|
return __importDefault(_$$_REQUIRE(_dependencyMap[2])).default;
|
|
9021
9689
|
}
|
|
9022
9690
|
});
|
|
@@ -9028,44 +9696,42 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9028
9696
|
exports.default = undefined;
|
|
9029
9697
|
var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
|
|
9030
9698
|
var _ListsProfilerModule = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2]));
|
|
9031
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9699
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9032
9700
|
// @amznmod_react - Add import for the turbomodule
|
|
9033
9701
|
|
|
9034
9702
|
/**
|
|
9035
9703
|
* Wrap your `FlashList` with this component.
|
|
9036
9704
|
*/
|
|
9037
|
-
var FlashListPerformanceView = ({
|
|
9038
|
-
listName,
|
|
9039
|
-
|
|
9040
|
-
}) => {
|
|
9705
|
+
var FlashListPerformanceView = function FlashListPerformanceView(_ref) {
|
|
9706
|
+
var listName = _ref.listName,
|
|
9707
|
+
children = _ref.children;
|
|
9041
9708
|
var time = (0, _react.useRef)(Date.now()).current;
|
|
9042
9709
|
var listsProfilerController = (0, _react.useContext)(_$$_REQUIRE(_dependencyMap[3]).ListsProfilerContext);
|
|
9043
9710
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[4]).jsx)(_$$_REQUIRE(_dependencyMap[5]).FlashListPerformanceViewNativeComponent, {
|
|
9044
9711
|
style: {
|
|
9045
9712
|
flex: 1
|
|
9046
9713
|
},
|
|
9047
|
-
onInteractive: ({
|
|
9048
|
-
nativeEvent
|
|
9049
|
-
}) => {
|
|
9714
|
+
onInteractive: function onInteractive(_ref2) {
|
|
9715
|
+
var nativeEvent = _ref2.nativeEvent;
|
|
9050
9716
|
listsProfilerController.onInteractive(nativeEvent.timestamp - time, listName);
|
|
9051
9717
|
},
|
|
9052
|
-
onBlankAreaEvent: ({
|
|
9053
|
-
nativeEvent
|
|
9054
|
-
}) => {
|
|
9718
|
+
onBlankAreaEvent: function onBlankAreaEvent(_ref3) {
|
|
9719
|
+
var nativeEvent = _ref3.nativeEvent;
|
|
9055
9720
|
listsProfilerController.onBlankArea(nativeEvent.offsetStart, nativeEvent.offsetEnd, listName);
|
|
9056
9721
|
},
|
|
9057
9722
|
children: _react.default.cloneElement(children, {
|
|
9058
|
-
onScroll: ()
|
|
9059
|
-
|
|
9723
|
+
onScroll: function onScroll() {
|
|
9724
|
+
var _children$props;
|
|
9725
|
+
if (children != null && (_children$props = children.props) != null && _children$props.onScroll) {
|
|
9060
9726
|
children.props.onScroll();
|
|
9061
9727
|
}
|
|
9062
|
-
_ListsProfilerModule.default
|
|
9728
|
+
_ListsProfilerModule.default == null || _ListsProfilerModule.default.invokeCallback();
|
|
9063
9729
|
}
|
|
9064
9730
|
})
|
|
9065
9731
|
});
|
|
9066
9732
|
};
|
|
9067
9733
|
var _default = exports.default = FlashListPerformanceView;
|
|
9068
|
-
},"f7c649769e37ee38416a",["6ed0e34da2b23bd3554f","
|
|
9734
|
+
},"f7c649769e37ee38416a",["6ed0e34da2b23bd3554f","277a84013d7e1a1ace05","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","b476c1614bb053516d93"]);
|
|
9069
9735
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9070
9736
|
Object.defineProperty(exports, "__esModule", {
|
|
9071
9737
|
value: true
|
|
@@ -9073,7 +9739,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9073
9739
|
exports.default = undefined;
|
|
9074
9740
|
var nativeModule = _$$_REQUIRE(_dependencyMap[0]).TurboModuleRegistry.get('AmazonReactNativePerformanceListsProfilerModule');
|
|
9075
9741
|
var _module = {
|
|
9076
|
-
invokeCallback() {
|
|
9742
|
+
invokeCallback: function invokeCallback() {
|
|
9077
9743
|
if (!nativeModule) {
|
|
9078
9744
|
throw new Error('Lists profiler module not found in NativeModules. Chances are you\'re in a test environment, but the mocks have not been setup correctly');
|
|
9079
9745
|
}
|
|
@@ -9089,11 +9755,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9089
9755
|
exports.ListsProfilerContextProvider = exports.ListsProfilerContext = undefined;
|
|
9090
9756
|
var _react = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
9091
9757
|
var ListsProfilerContext = exports.ListsProfilerContext = _react.default.createContext({
|
|
9092
|
-
onInteractive: ()
|
|
9093
|
-
onBlankArea: ()
|
|
9758
|
+
onInteractive: function onInteractive() {},
|
|
9759
|
+
onBlankArea: function onBlankArea() {}
|
|
9094
9760
|
});
|
|
9095
9761
|
var ListsProfilerContextProvider = exports.ListsProfilerContextProvider = ListsProfilerContext.Provider;
|
|
9096
|
-
},"f657a38ddc7dad0bdcde",["
|
|
9762
|
+
},"f657a38ddc7dad0bdcde",["277a84013d7e1a1ace05","6ed0e34da2b23bd3554f"]);
|
|
9097
9763
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9098
9764
|
Object.defineProperty(exports, "__esModule", {
|
|
9099
9765
|
value: true
|
|
@@ -9130,7 +9796,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9130
9796
|
}
|
|
9131
9797
|
});
|
|
9132
9798
|
var FlashListPerformanceViewNativeComponent = exports.FlashListPerformanceViewNativeComponent = FlashListPerformanceView;
|
|
9133
|
-
},"b476c1614bb053516d93",["
|
|
9799
|
+
},"b476c1614bb053516d93",["277a84013d7e1a1ace05","76b52edafd968705fff3"]);
|
|
9134
9800
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9135
9801
|
Object.defineProperty(exports, "__esModule", {
|
|
9136
9802
|
value: true
|
|
@@ -9143,7 +9809,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9143
9809
|
exports.FlashListPerformanceViewNativeComponent = undefined;
|
|
9144
9810
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0]);
|
|
9145
9811
|
var FlashListPerformanceViewNativeComponent = exports.FlashListPerformanceViewNativeComponent = (0, _reactNative.requireNativeComponent)('FlashListPerformanceView');
|
|
9146
|
-
},"0f133d1bf7f22a73ef66",["
|
|
9812
|
+
},"0f133d1bf7f22a73ef66",["26ef620f86acf7f6932a"]);
|
|
9147
9813
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9148
9814
|
Object.defineProperty(exports, "__esModule", {
|
|
9149
9815
|
value: true
|
|
@@ -9151,30 +9817,29 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9151
9817
|
exports.default = undefined;
|
|
9152
9818
|
var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
|
|
9153
9819
|
var _ListsProfilerModule = _$$_REQUIRE(_dependencyMap[1])(_$$_REQUIRE(_dependencyMap[2]));
|
|
9154
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9820
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9155
9821
|
// @amznmod_react - Add import for the turbomodule
|
|
9156
9822
|
|
|
9157
9823
|
/**
|
|
9158
9824
|
* Wrap your `FlatList` with this component.
|
|
9159
9825
|
*/
|
|
9160
|
-
var FlatListPerformanceView = ({
|
|
9161
|
-
children,
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9826
|
+
var FlatListPerformanceView = function FlatListPerformanceView(_ref) {
|
|
9827
|
+
var children = _ref.children,
|
|
9828
|
+
listName = _ref.listName,
|
|
9829
|
+
_ref$onInteractive = _ref.onInteractive,
|
|
9830
|
+
onInteractive = _ref$onInteractive === undefined ? function () {} : _ref$onInteractive,
|
|
9831
|
+
_ref$onBlankArea = _ref.onBlankArea,
|
|
9832
|
+
onBlankArea = _ref$onBlankArea === undefined ? function () {} : _ref$onBlankArea;
|
|
9166
9833
|
var time = (0, _react.useRef)(Date.now()).current;
|
|
9167
9834
|
var listsProfilerController = (0, _react.useContext)(_$$_REQUIRE(_dependencyMap[3]).ListsProfilerContext);
|
|
9168
|
-
var onInteractiveCallback = (0, _react.useCallback)(({
|
|
9169
|
-
nativeEvent
|
|
9170
|
-
}) => {
|
|
9835
|
+
var onInteractiveCallback = (0, _react.useCallback)(function (_ref2) {
|
|
9836
|
+
var nativeEvent = _ref2.nativeEvent;
|
|
9171
9837
|
var tti = nativeEvent.timestamp - time;
|
|
9172
9838
|
onInteractive(tti, listName);
|
|
9173
9839
|
listsProfilerController.onInteractive(tti, listName);
|
|
9174
9840
|
}, [listsProfilerController, onInteractive, listName, time]);
|
|
9175
|
-
var onBlankAreaCallback = (0, _react.useCallback)(({
|
|
9176
|
-
nativeEvent
|
|
9177
|
-
}) => {
|
|
9841
|
+
var onBlankAreaCallback = (0, _react.useCallback)(function (_ref3) {
|
|
9842
|
+
var nativeEvent = _ref3.nativeEvent;
|
|
9178
9843
|
onBlankArea(nativeEvent.offsetStart, nativeEvent.offsetEnd, listName);
|
|
9179
9844
|
listsProfilerController.onBlankArea(nativeEvent.offsetStart, nativeEvent.offsetEnd, listName);
|
|
9180
9845
|
}, [onBlankArea, listsProfilerController, listName]);
|
|
@@ -9182,17 +9847,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9182
9847
|
onInteractive: onInteractiveCallback,
|
|
9183
9848
|
onBlankAreaEvent: onBlankAreaCallback,
|
|
9184
9849
|
children: _react.default.cloneElement(children, {
|
|
9185
|
-
onScroll: ()
|
|
9186
|
-
|
|
9850
|
+
onScroll: function onScroll() {
|
|
9851
|
+
var _children$props;
|
|
9852
|
+
if (children != null && (_children$props = children.props) != null && _children$props.onScroll) {
|
|
9187
9853
|
children.props.onScroll();
|
|
9188
9854
|
}
|
|
9189
|
-
_ListsProfilerModule.default
|
|
9855
|
+
_ListsProfilerModule.default == null || _ListsProfilerModule.default.invokeCallback();
|
|
9190
9856
|
}
|
|
9191
9857
|
})
|
|
9192
9858
|
});
|
|
9193
9859
|
};
|
|
9194
9860
|
var _default = exports.default = FlatListPerformanceView;
|
|
9195
|
-
},"b5b357b642aec35f0ce8",["6ed0e34da2b23bd3554f","
|
|
9861
|
+
},"b5b357b642aec35f0ce8",["6ed0e34da2b23bd3554f","277a84013d7e1a1ace05","82c156b157a1551ae933","f657a38ddc7dad0bdcde","048fed5a64a04bdb7fed","0e6b2b579cc6e3be19da"]);
|
|
9196
9862
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9197
9863
|
Object.defineProperty(exports, "__esModule", {
|
|
9198
9864
|
value: true
|
|
@@ -9229,7 +9895,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9229
9895
|
}
|
|
9230
9896
|
});
|
|
9231
9897
|
var FlatListPerformanceViewNativeComponent = exports.FlatListPerformanceViewNativeComponent = FlatListPerformanceView;
|
|
9232
|
-
},"0e6b2b579cc6e3be19da",["
|
|
9898
|
+
},"0e6b2b579cc6e3be19da",["277a84013d7e1a1ace05","76b52edafd968705fff3"]);
|
|
9233
9899
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {},"7bd71be4c569ea6344c9",[]);
|
|
9234
9900
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9235
9901
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -9238,23 +9904,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9238
9904
|
exports.FlatListPerformanceViewNativeComponent = undefined;
|
|
9239
9905
|
var _reactNative = _$$_REQUIRE(_dependencyMap[0]);
|
|
9240
9906
|
var FlatListPerformanceViewNativeComponent = exports.FlatListPerformanceViewNativeComponent = (0, _reactNative.requireNativeComponent)('FlatListPerformanceView');
|
|
9241
|
-
},"f4d9b38c601097da897e",["
|
|
9907
|
+
},"f4d9b38c601097da897e",["26ef620f86acf7f6932a"]);
|
|
9242
9908
|
__d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
|
|
9243
9909
|
Object.defineProperty(exports, "__esModule", {
|
|
9244
9910
|
value: true
|
|
9245
9911
|
});
|
|
9246
9912
|
exports.default = undefined;
|
|
9247
9913
|
var _react = _interopRequireWildcard(_$$_REQUIRE(_dependencyMap[0]));
|
|
9248
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9249
|
-
var bootstrapPlugin = ()
|
|
9250
|
-
return new Promise(resolve
|
|
9914
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
9915
|
+
var bootstrapPlugin = function bootstrapPlugin() {
|
|
9916
|
+
return new Promise(function (resolve) {
|
|
9251
9917
|
(0, _$$_REQUIRE(_dependencyMap[1]).addPlugin)({
|
|
9252
|
-
getId: ()
|
|
9253
|
-
|
|
9918
|
+
getId: function getId() {
|
|
9919
|
+
return '@shopify/react-native-performance';
|
|
9920
|
+
},
|
|
9921
|
+
onConnect: function onConnect(connection) {
|
|
9254
9922
|
return resolve(connection);
|
|
9255
9923
|
},
|
|
9256
|
-
onDisconnect: ()
|
|
9257
|
-
runInBackground: ()
|
|
9924
|
+
onDisconnect: function onDisconnect() {},
|
|
9925
|
+
runInBackground: function runInBackground() {
|
|
9926
|
+
return true;
|
|
9927
|
+
}
|
|
9258
9928
|
});
|
|
9259
9929
|
});
|
|
9260
9930
|
};
|
|
@@ -9263,30 +9933,33 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9263
9933
|
* Wrap your app with this component to get events from all the lists wrapped with their performance view.
|
|
9264
9934
|
* For example, `FlatList` must be wrapped in the `FlatListPerformanceView`.
|
|
9265
9935
|
*/
|
|
9266
|
-
var ListsProfiler = ({
|
|
9267
|
-
onInteractive =
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9936
|
+
var ListsProfiler = function ListsProfiler(_ref) {
|
|
9937
|
+
var _ref$onInteractive = _ref.onInteractive,
|
|
9938
|
+
onInteractive = _ref$onInteractive === undefined ? function () {} : _ref$onInteractive,
|
|
9939
|
+
_ref$onBlankArea = _ref.onBlankArea,
|
|
9940
|
+
onBlankArea = _ref$onBlankArea === undefined ? function () {} : _ref$onBlankArea,
|
|
9941
|
+
children = _ref.children;
|
|
9271
9942
|
var connection;
|
|
9272
|
-
bootstrapPlugin().then(conn
|
|
9943
|
+
bootstrapPlugin().then(function (conn) {
|
|
9273
9944
|
connection = conn;
|
|
9274
|
-
}).catch(error
|
|
9945
|
+
}).catch(function (error) {
|
|
9275
9946
|
throw error;
|
|
9276
9947
|
});
|
|
9277
|
-
var onInteractiveCallback = (0, _react.useCallback)((TTI, listName)
|
|
9948
|
+
var onInteractiveCallback = (0, _react.useCallback)(function (TTI, listName) {
|
|
9949
|
+
var _connection;
|
|
9278
9950
|
onInteractive(TTI, listName);
|
|
9279
|
-
connection
|
|
9280
|
-
TTI,
|
|
9281
|
-
listName
|
|
9951
|
+
(_connection = connection) == null || _connection.send('newListTTIData', {
|
|
9952
|
+
TTI: TTI,
|
|
9953
|
+
listName: listName
|
|
9282
9954
|
});
|
|
9283
9955
|
}, [connection, onInteractive]);
|
|
9284
|
-
var onBlankAreaCallback = (0, _react.useCallback)((offsetStart, offsetEnd, listName)
|
|
9956
|
+
var onBlankAreaCallback = (0, _react.useCallback)(function (offsetStart, offsetEnd, listName) {
|
|
9957
|
+
var _connection2;
|
|
9285
9958
|
onBlankArea(offsetStart, offsetEnd, listName);
|
|
9286
9959
|
var blankArea = Math.max(Math.max(offsetStart, offsetEnd), 0);
|
|
9287
|
-
connection
|
|
9960
|
+
(_connection2 = connection) == null || _connection2.send('newBlankData', {
|
|
9288
9961
|
offset: blankArea,
|
|
9289
|
-
listName
|
|
9962
|
+
listName: listName
|
|
9290
9963
|
});
|
|
9291
9964
|
}, [connection, onBlankArea]);
|
|
9292
9965
|
return /*#__PURE__*/(0, _$$_REQUIRE(_dependencyMap[2]).jsx)(_$$_REQUIRE(_dependencyMap[3]).ListsProfilerContextProvider, {
|
|
@@ -9310,23 +9983,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
|
|
|
9310
9983
|
});
|
|
9311
9984
|
Object.defineProperty(exports, "FlashListPerformanceView", {
|
|
9312
9985
|
enumerable: true,
|
|
9313
|
-
get: function () {
|
|
9986
|
+
get: function get() {
|
|
9314
9987
|
return _FlashListPerformanceView.default;
|
|
9315
9988
|
}
|
|
9316
9989
|
});
|
|
9317
9990
|
Object.defineProperty(exports, "FlatListPerformanceView", {
|
|
9318
9991
|
enumerable: true,
|
|
9319
|
-
get: function () {
|
|
9992
|
+
get: function get() {
|
|
9320
9993
|
return _FlatListPerformanceView.default;
|
|
9321
9994
|
}
|
|
9322
9995
|
});
|
|
9323
9996
|
Object.defineProperty(exports, "ListsProfiler", {
|
|
9324
9997
|
enumerable: true,
|
|
9325
|
-
get: function () {
|
|
9998
|
+
get: function get() {
|
|
9326
9999
|
return _ListsProfiler.default;
|
|
9327
10000
|
}
|
|
9328
10001
|
});
|
|
9329
10002
|
var _FlatListPerformanceView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[1]));
|
|
9330
10003
|
var _FlashListPerformanceView = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[2]));
|
|
9331
10004
|
var _ListsProfiler = _$$_REQUIRE(_dependencyMap[0])(_$$_REQUIRE(_dependencyMap[3]));
|
|
9332
|
-
},"8609ce5d599b91023a98",["
|
|
10005
|
+
},"8609ce5d599b91023a98",["277a84013d7e1a1ace05","b5b357b642aec35f0ce8","f7c649769e37ee38416a","3a5f2d2eabadd5b74fe0"]);
|