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