@amazon-devices/kepler-parental-controls 1.0.8

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.
Files changed (33) hide show
  1. package/LICENSE +7 -0
  2. package/LICENSE.TXT +8 -0
  3. package/SystemBundles/769c9bbaf8d8b9d87ee60e838e9198ec534452e488850274aa9c0c38b87c343a.bundle +1113 -0
  4. package/SystemBundles/769c9bbaf8d8b9d87ee60e838e9198ec534452e488850274aa9c0c38b87c343a.bundle.map +1 -0
  5. package/SystemModules/amzn__kepler-parental-controls-1.modules.txt +5 -0
  6. package/SystemModules/amzn__kepler-parental-controls-1.private.modules.txt +12 -0
  7. package/SystemModules/keplerscript-system-bundle-config.json +7 -0
  8. package/THIRD_PARTY_NOTICES.txt +6512 -0
  9. package/dist/index.d.ts +3 -0
  10. package/dist/index.js +17 -0
  11. package/dist/kepler/tm-manifest.json +1 -0
  12. package/dist/lib/KeplerParentalControls.d.ts +23 -0
  13. package/dist/lib/KeplerParentalControls.js +57 -0
  14. package/dist/models/ParentalControlsComponent.d.ts +59 -0
  15. package/dist/models/ParentalControlsComponent.js +15 -0
  16. package/dist/models/ParentalControlsModel.d.ts +80 -0
  17. package/dist/models/ParentalControlsModel.js +15 -0
  18. package/dist/models/index.d.ts +2 -0
  19. package/dist/models/index.js +15 -0
  20. package/dist/turbo-modules/KeplerPconJs.d.ts +14 -0
  21. package/dist/turbo-modules/KeplerPconJs.js +19 -0
  22. package/dist/turbo-modules/KeplerPconResultWrapper.d.ts +9 -0
  23. package/dist/turbo-modules/KeplerPconResultWrapper.js +37 -0
  24. package/dist/turbo-modules/__mocks__/KeplerPconJs.d.ts +10 -0
  25. package/dist/turbo-modules/__mocks__/KeplerPconJs.js +25 -0
  26. package/dist/turbo-modules/lib/TurboModuleResult.d.ts +57 -0
  27. package/dist/turbo-modules/lib/TurboModuleResult.js +82 -0
  28. package/dist/turbo-modules/lib/index.d.ts +2 -0
  29. package/dist/turbo-modules/lib/index.js +20 -0
  30. package/kepler-compatibility.json +13 -0
  31. package/kepler-transformed-package-info.json +3 -0
  32. package/package.json +1 -0
  33. package/react-native.config.js +14 -0
@@ -0,0 +1,1113 @@
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
+ (function (global) {
3
+ /**
4
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ *
9
+ * @polyfill
10
+ * @nolint
11
+ * @format
12
+ */
13
+
14
+ /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */
15
+
16
+ /**
17
+ * This pipes all of our console logging functions to native logging so that
18
+ * JavaScript errors in required modules show up in Xcode via NSLog.
19
+ */
20
+ var inspect = function () {
21
+ // Copyright Joyent, Inc. and other Node contributors.
22
+ //
23
+ // Permission is hereby granted, free of charge, to any person obtaining a
24
+ // copy of this software and associated documentation files (the
25
+ // "Software"), to deal in the Software without restriction, including
26
+ // without limitation the rights to use, copy, modify, merge, publish,
27
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
28
+ // persons to whom the Software is furnished to do so, subject to the
29
+ // following conditions:
30
+ //
31
+ // The above copyright notice and this permission notice shall be included
32
+ // in all copies or substantial portions of the Software.
33
+ //
34
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
35
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
36
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
37
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
38
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
39
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
40
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
41
+ //
42
+ // https://github.com/joyent/node/blob/master/lib/util.js
43
+
44
+ function inspect(obj, opts) {
45
+ var ctx = {
46
+ seen: [],
47
+ formatValueCalls: 0,
48
+ stylize: stylizeNoColor
49
+ };
50
+ return formatValue(ctx, obj, opts.depth);
51
+ }
52
+ function stylizeNoColor(str, styleType) {
53
+ return str;
54
+ }
55
+ function arrayToHash(array) {
56
+ var hash = {};
57
+ array.forEach(function (val, idx) {
58
+ hash[val] = true;
59
+ });
60
+ return hash;
61
+ }
62
+ function formatValue(ctx, value, recurseTimes) {
63
+ ctx.formatValueCalls++;
64
+ if (ctx.formatValueCalls > 200) {
65
+ return `[TOO BIG formatValueCalls ${ctx.formatValueCalls} exceeded limit of 200]`;
66
+ }
67
+
68
+ // Primitive types cannot have properties
69
+ var primitive = formatPrimitive(ctx, value);
70
+ if (primitive) {
71
+ return primitive;
72
+ }
73
+
74
+ // Look up the keys of the object.
75
+ var keys = Object.keys(value);
76
+ var visibleKeys = arrayToHash(keys);
77
+
78
+ // IE doesn't make error fields non-enumerable
79
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
80
+ if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
81
+ return formatError(value);
82
+ }
83
+
84
+ // Some type of object without properties can be shortcutted.
85
+ if (keys.length === 0) {
86
+ if (isFunction(value)) {
87
+ var name = value.name ? ': ' + value.name : '';
88
+ return ctx.stylize('[Function' + name + ']', 'special');
89
+ }
90
+ if (isRegExp(value)) {
91
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
92
+ }
93
+ if (isDate(value)) {
94
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
95
+ }
96
+ if (isError(value)) {
97
+ return formatError(value);
98
+ }
99
+ }
100
+ var base = '',
101
+ array = false,
102
+ braces = ['{', '}'];
103
+
104
+ // Make Array say that they are Array
105
+ if (isArray(value)) {
106
+ array = true;
107
+ braces = ['[', ']'];
108
+ }
109
+
110
+ // Make functions say that they are functions
111
+ if (isFunction(value)) {
112
+ var n = value.name ? ': ' + value.name : '';
113
+ base = ' [Function' + n + ']';
114
+ }
115
+
116
+ // Make RegExps say that they are RegExps
117
+ if (isRegExp(value)) {
118
+ base = ' ' + RegExp.prototype.toString.call(value);
119
+ }
120
+
121
+ // Make dates with properties first say the date
122
+ if (isDate(value)) {
123
+ base = ' ' + Date.prototype.toUTCString.call(value);
124
+ }
125
+
126
+ // Make error with message first say the error
127
+ if (isError(value)) {
128
+ base = ' ' + formatError(value);
129
+ }
130
+ if (keys.length === 0 && (!array || value.length == 0)) {
131
+ return braces[0] + base + braces[1];
132
+ }
133
+ if (recurseTimes < 0) {
134
+ if (isRegExp(value)) {
135
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
136
+ } else {
137
+ return ctx.stylize('[Object]', 'special');
138
+ }
139
+ }
140
+ ctx.seen.push(value);
141
+ var output;
142
+ if (array) {
143
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
144
+ } else {
145
+ output = keys.map(function (key) {
146
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
147
+ });
148
+ }
149
+ ctx.seen.pop();
150
+ return reduceToSingleString(output, base, braces);
151
+ }
152
+ function formatPrimitive(ctx, value) {
153
+ if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');
154
+ if (isString(value)) {
155
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, '').replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
156
+ return ctx.stylize(simple, 'string');
157
+ }
158
+ if (isNumber(value)) return ctx.stylize('' + value, 'number');
159
+ if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');
160
+ // For some reason typeof null is "object", so special case here.
161
+ if (isNull(value)) return ctx.stylize('null', 'null');
162
+ }
163
+ function formatError(value) {
164
+ return '[' + Error.prototype.toString.call(value) + ']';
165
+ }
166
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
167
+ var output = [];
168
+ for (var i = 0, l = value.length; i < l; ++i) {
169
+ if (hasOwnProperty(value, String(i))) {
170
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
171
+ } else {
172
+ output.push('');
173
+ }
174
+ }
175
+ keys.forEach(function (key) {
176
+ if (!key.match(/^\d+$/)) {
177
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
178
+ }
179
+ });
180
+ return output;
181
+ }
182
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
183
+ var name, str, desc;
184
+ desc = Object.getOwnPropertyDescriptor(value, key) || {
185
+ value: value[key]
186
+ };
187
+ if (desc.get) {
188
+ if (desc.set) {
189
+ str = ctx.stylize('[Getter/Setter]', 'special');
190
+ } else {
191
+ str = ctx.stylize('[Getter]', 'special');
192
+ }
193
+ } else {
194
+ if (desc.set) {
195
+ str = ctx.stylize('[Setter]', 'special');
196
+ }
197
+ }
198
+ if (!hasOwnProperty(visibleKeys, key)) {
199
+ name = '[' + key + ']';
200
+ }
201
+ if (!str) {
202
+ if (ctx.seen.indexOf(desc.value) < 0) {
203
+ if (isNull(recurseTimes)) {
204
+ str = formatValue(ctx, desc.value, null);
205
+ } else {
206
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
207
+ }
208
+ if (str.indexOf('\n') > -1) {
209
+ if (array) {
210
+ str = str.split('\n').map(function (line) {
211
+ return ' ' + line;
212
+ }).join('\n').substr(2);
213
+ } else {
214
+ str = '\n' + str.split('\n').map(function (line) {
215
+ return ' ' + line;
216
+ }).join('\n');
217
+ }
218
+ }
219
+ } else {
220
+ str = ctx.stylize('[Circular]', 'special');
221
+ }
222
+ }
223
+ if (isUndefined(name)) {
224
+ if (array && key.match(/^\d+$/)) {
225
+ return str;
226
+ }
227
+ name = JSON.stringify('' + key);
228
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
229
+ name = name.substr(1, name.length - 2);
230
+ name = ctx.stylize(name, 'name');
231
+ } else {
232
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
233
+ name = ctx.stylize(name, 'string');
234
+ }
235
+ }
236
+ return name + ': ' + str;
237
+ }
238
+ function reduceToSingleString(output, base, braces) {
239
+ var numLinesEst = 0;
240
+ var length = output.reduce(function (prev, cur) {
241
+ numLinesEst++;
242
+ if (cur.indexOf('\n') >= 0) numLinesEst++;
243
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
244
+ }, 0);
245
+ if (length > 60) {
246
+ return braces[0] + (base === '' ? '' : base + '\n ') + ' ' + output.join(',\n ') + ' ' + braces[1];
247
+ }
248
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
249
+ }
250
+
251
+ // NOTE: These type checking functions intentionally don't use `instanceof`
252
+ // because it is fragile and can be easily faked with `Object.create()`.
253
+ function isArray(ar) {
254
+ return Array.isArray(ar);
255
+ }
256
+ function isBoolean(arg) {
257
+ return typeof arg === 'boolean';
258
+ }
259
+ function isNull(arg) {
260
+ return arg === null;
261
+ }
262
+ function isNumber(arg) {
263
+ return typeof arg === 'number';
264
+ }
265
+ function isString(arg) {
266
+ return typeof arg === 'string';
267
+ }
268
+ function isUndefined(arg) {
269
+ return arg === undefined;
270
+ }
271
+ function isRegExp(re) {
272
+ return isObject(re) && objectToString(re) === '[object RegExp]';
273
+ }
274
+ function isObject(arg) {
275
+ return typeof arg === 'object' && arg !== null;
276
+ }
277
+ function isDate(d) {
278
+ return isObject(d) && objectToString(d) === '[object Date]';
279
+ }
280
+ function isError(e) {
281
+ return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);
282
+ }
283
+ function isFunction(arg) {
284
+ return typeof arg === 'function';
285
+ }
286
+ function objectToString(o) {
287
+ return Object.prototype.toString.call(o);
288
+ }
289
+ function hasOwnProperty(obj, prop) {
290
+ return Object.prototype.hasOwnProperty.call(obj, prop);
291
+ }
292
+ return inspect;
293
+ }();
294
+ var OBJECT_COLUMN_NAME = '(index)';
295
+ var LOG_LEVELS = {
296
+ trace: 0,
297
+ info: 1,
298
+ warn: 2,
299
+ error: 3
300
+ };
301
+ var INSPECTOR_LEVELS = [];
302
+ INSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';
303
+ INSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';
304
+ INSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';
305
+ INSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';
306
+
307
+ // Strip the inner function in getNativeLogFunction(), if in dev also
308
+ // strip method printing to originalConsole.
309
+ var INSPECTOR_FRAMES_TO_SKIP = 1;
310
+ function getNativeLogFunction(level) {
311
+ return function () {
312
+ var str;
313
+ if (arguments.length === 1 && typeof arguments[0] === 'string') {
314
+ str = arguments[0];
315
+ } else {
316
+ str = Array.prototype.map.call(arguments, function (arg) {
317
+ return inspect(arg, {
318
+ depth: 10
319
+ });
320
+ }).join(', ');
321
+ }
322
+
323
+ // TRICKY
324
+ // If more than one argument is provided, the code above collapses them all
325
+ // into a single formatted string. This transform wraps string arguments in
326
+ // single quotes (e.g. "foo" -> "'foo'") which then breaks the "Warning:"
327
+ // check below. So it's important that we look at the first argument, rather
328
+ // than the formatted argument string.
329
+ var firstArg = arguments[0];
330
+ var logLevel = level;
331
+ if (typeof firstArg === 'string' && firstArg.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) {
332
+ // React warnings use console.error so that a stack trace is shown,
333
+ // but we don't (currently) want these to show a redbox
334
+ // (Note: Logic duplicated in ExceptionsManager.js.)
335
+ logLevel = LOG_LEVELS.warn;
336
+ }
337
+ if (global.__inspectorLog) {
338
+ global.__inspectorLog(INSPECTOR_LEVELS[logLevel], str, [].slice.call(arguments), INSPECTOR_FRAMES_TO_SKIP);
339
+ }
340
+ if (groupStack.length) {
341
+ str = groupFormat('', str);
342
+ }
343
+ global.nativeLoggingHook(str, logLevel);
344
+ };
345
+ }
346
+ function repeat(element, n) {
347
+ return Array.apply(null, Array(n)).map(function () {
348
+ return element;
349
+ });
350
+ }
351
+ function consoleTablePolyfill(rows) {
352
+ // convert object -> array
353
+ if (!Array.isArray(rows)) {
354
+ var data = rows;
355
+ rows = [];
356
+ for (var key in data) {
357
+ if (data.hasOwnProperty(key)) {
358
+ var row = data[key];
359
+ row[OBJECT_COLUMN_NAME] = key;
360
+ rows.push(row);
361
+ }
362
+ }
363
+ }
364
+ if (rows.length === 0) {
365
+ global.nativeLoggingHook('', LOG_LEVELS.info);
366
+ return;
367
+ }
368
+ var columns = Object.keys(rows[0]).sort();
369
+ var stringRows = [];
370
+ var columnWidths = [];
371
+
372
+ // Convert each cell to a string. Also
373
+ // figure out max cell width for each column
374
+ columns.forEach(function (k, i) {
375
+ columnWidths[i] = k.length;
376
+ for (var j = 0; j < rows.length; j++) {
377
+ var cellStr = (rows[j][k] || '?').toString();
378
+ stringRows[j] = stringRows[j] || [];
379
+ stringRows[j][i] = cellStr;
380
+ columnWidths[i] = Math.max(columnWidths[i], cellStr.length);
381
+ }
382
+ });
383
+
384
+ // Join all elements in the row into a single string with | separators
385
+ // (appends extra spaces to each cell to make separators | aligned)
386
+ function joinRow(row, space) {
387
+ var cells = row.map(function (cell, i) {
388
+ var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');
389
+ return cell + extraSpaces;
390
+ });
391
+ space = space || ' ';
392
+ return cells.join(space + '|' + space);
393
+ }
394
+ var separators = columnWidths.map(function (columnWidth) {
395
+ return repeat('-', columnWidth).join('');
396
+ });
397
+ var separatorRow = joinRow(separators, '-');
398
+ var header = joinRow(columns);
399
+ var table = [header, separatorRow];
400
+ for (var i = 0; i < rows.length; i++) {
401
+ table.push(joinRow(stringRows[i]));
402
+ }
403
+
404
+ // Notice extra empty line at the beginning.
405
+ // Native logging hook adds "RCTLog >" at the front of every
406
+ // logged string, which would shift the header and screw up
407
+ // the table
408
+ global.nativeLoggingHook('\n' + table.join('\n'), LOG_LEVELS.info);
409
+ }
410
+ var GROUP_PAD = "\u2502"; // Box light vertical
411
+ var GROUP_OPEN = "\u2510"; // Box light down+left
412
+ var GROUP_CLOSE = "\u2518"; // Box light up+left
413
+
414
+ var groupStack = [];
415
+ function groupFormat(prefix, msg) {
416
+ // Insert group formatting before the console message
417
+ return groupStack.join('') + prefix + ' ' + (msg || '');
418
+ }
419
+ function consoleGroupPolyfill(label) {
420
+ global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);
421
+ groupStack.push(GROUP_PAD);
422
+ }
423
+ function consoleGroupCollapsedPolyfill(label) {
424
+ global.nativeLoggingHook(groupFormat(GROUP_CLOSE, label), LOG_LEVELS.info);
425
+ groupStack.push(GROUP_PAD);
426
+ }
427
+ function consoleGroupEndPolyfill() {
428
+ groupStack.pop();
429
+ global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);
430
+ }
431
+ function consoleAssertPolyfill(expression, label) {
432
+ if (!expression) {
433
+ global.nativeLoggingHook('Assertion failed: ' + label, LOG_LEVELS.error);
434
+ }
435
+ }
436
+ if (global.nativeLoggingHook) {
437
+ var originalConsole = global.console;
438
+ // Preserve the original `console` as `originalConsole`
439
+
440
+ global.console = {
441
+ error: getNativeLogFunction(LOG_LEVELS.error),
442
+ info: getNativeLogFunction(LOG_LEVELS.info),
443
+ log: getNativeLogFunction(LOG_LEVELS.info),
444
+ warn: getNativeLogFunction(LOG_LEVELS.warn),
445
+ trace: getNativeLogFunction(LOG_LEVELS.trace),
446
+ debug: getNativeLogFunction(LOG_LEVELS.trace),
447
+ table: consoleTablePolyfill,
448
+ group: consoleGroupPolyfill,
449
+ groupEnd: consoleGroupEndPolyfill,
450
+ groupCollapsed: consoleGroupCollapsedPolyfill,
451
+ assert: consoleAssertPolyfill
452
+ };
453
+ Object.defineProperty(console, '_isPolyfilled', {
454
+ value: true,
455
+ enumerable: false
456
+ });
457
+
458
+ // If available, also call the original `console` method since that is
459
+ // sometimes useful. Ex: on OS X, this will let you see rich output in
460
+ // the Safari Web Inspector console.
461
+ } else if (!global.console) {
462
+ var stub = function stub() {};
463
+ var log = global.print || stub;
464
+ global.console = {
465
+ debug: log,
466
+ error: log,
467
+ info: log,
468
+ log: log,
469
+ trace: log,
470
+ warn: log,
471
+ assert: function assert(expression, label) {
472
+ if (!expression) {
473
+ log('Assertion failed: ' + label);
474
+ }
475
+ },
476
+ clear: stub,
477
+ dir: stub,
478
+ dirxml: stub,
479
+ group: stub,
480
+ groupCollapsed: stub,
481
+ groupEnd: stub,
482
+ profile: stub,
483
+ profileEnd: stub,
484
+ table: stub
485
+ };
486
+ Object.defineProperty(console, '_isPolyfilled', {
487
+ value: true,
488
+ enumerable: false
489
+ });
490
+ }
491
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
492
+ (function (global) {
493
+ /**
494
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
495
+ *
496
+ * This source code is licensed under the MIT license found in the
497
+ * LICENSE file in the root directory of this source tree.
498
+ *
499
+ * @format
500
+ *
501
+ * @polyfill
502
+ */
503
+
504
+ var _inGuard = 0;
505
+ /**
506
+ * This is the error handler that is called when we encounter an exception
507
+ * when loading a module. This will report any errors encountered before
508
+ * ExceptionsManager is configured.
509
+ */
510
+ var _globalHandler = function onError(e, isFatal) {
511
+ throw e;
512
+ };
513
+
514
+ /**
515
+ * The particular require runtime that we are using looks for a global
516
+ * `ErrorUtils` object and if it exists, then it requires modules with the
517
+ * error handler specified via ErrorUtils.setGlobalHandler by calling the
518
+ * require function with applyWithGuard. Since the require module is loaded
519
+ * before any of the modules, this ErrorUtils must be defined (and the handler
520
+ * set) globally before requiring anything.
521
+ */
522
+ var ErrorUtils = {
523
+ setGlobalHandler: function setGlobalHandler(fun) {
524
+ _globalHandler = fun;
525
+ },
526
+ getGlobalHandler: function getGlobalHandler() {
527
+ return _globalHandler;
528
+ },
529
+ reportError: function reportError(error) {
530
+ _globalHandler && _globalHandler(error, false);
531
+ },
532
+ reportFatalError: function reportFatalError(error) {
533
+ // NOTE: This has an untyped call site in Metro.
534
+ _globalHandler && _globalHandler(error, true);
535
+ },
536
+ applyWithGuard: function applyWithGuard(fun, context, args,
537
+ // Unused, but some code synced from www sets it to null.
538
+ unused_onError,
539
+ // Some callers pass a name here, which we ignore.
540
+ unused_name) {
541
+ try {
542
+ _inGuard++;
543
+ /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
544
+ * null) is fine. (2) array -> rest array should work */
545
+ /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
546
+ * null) is fine. (2) array -> rest array should work */
547
+ return fun.apply(context, args);
548
+ } catch (e) {
549
+ ErrorUtils.reportError(e);
550
+ } finally {
551
+ _inGuard--;
552
+ }
553
+ return null;
554
+ },
555
+ applyWithGuardIfNeeded: function applyWithGuardIfNeeded(fun, context, args) {
556
+ if (ErrorUtils.inGuard()) {
557
+ /* $FlowFixMe[incompatible-call] : TODO T48204745 (1) apply(context,
558
+ * null) is fine. (2) array -> rest array should work */
559
+ /* $FlowFixMe[incompatible-type] : TODO T48204745 (1) apply(context,
560
+ * null) is fine. (2) array -> rest array should work */
561
+ return fun.apply(context, args);
562
+ } else {
563
+ ErrorUtils.applyWithGuard(fun, context, args);
564
+ }
565
+ return null;
566
+ },
567
+ inGuard: function inGuard() {
568
+ return !!_inGuard;
569
+ },
570
+ guard: function guard(fun, name, context) {
571
+ var _ref;
572
+ // TODO: (moti) T48204753 Make sure this warning is never hit and remove it - types
573
+ // should be sufficient.
574
+ if (typeof fun !== 'function') {
575
+ console.warn('A function must be passed to ErrorUtils.guard, got ', fun);
576
+ return null;
577
+ }
578
+ var guardName = (_ref = name != null ? name : fun.name) != null ? _ref : '<generated guard>';
579
+ /* $FlowFixMe[missing-this-annot] The 'this' type annotation(s) required by
580
+ * Flow's LTI update could not be added via codemod */
581
+ function guarded() {
582
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
583
+ args[_key] = arguments[_key];
584
+ }
585
+ return ErrorUtils.applyWithGuard(fun, context != null ? context : this, args, null, guardName);
586
+ }
587
+ return guarded;
588
+ }
589
+ };
590
+ global.ErrorUtils = ErrorUtils;
591
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
592
+ (function (global) {
593
+ /**
594
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
595
+ *
596
+ * This source code is licensed under the MIT license found in the
597
+ * LICENSE file in the root directory of this source tree.
598
+ *
599
+ * @format
600
+ * @polyfill
601
+ * @nolint
602
+ */
603
+
604
+ (function () {
605
+ 'use strict';
606
+
607
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
608
+
609
+ /**
610
+ * Returns an array of the given object's own enumerable entries.
611
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
612
+ */
613
+ if (typeof Object.entries !== 'function') {
614
+ Object.entries = function (object) {
615
+ // `null` and `undefined` values are not allowed.
616
+ if (object == null) {
617
+ throw new TypeError('Object.entries called on non-object');
618
+ }
619
+ var entries = [];
620
+ for (var key in object) {
621
+ if (hasOwnProperty.call(object, key)) {
622
+ entries.push([key, object[key]]);
623
+ }
624
+ }
625
+ return entries;
626
+ };
627
+ }
628
+
629
+ /**
630
+ * Returns an array of the given object's own enumerable entries.
631
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values
632
+ */
633
+ if (typeof Object.values !== 'function') {
634
+ Object.values = function (object) {
635
+ // `null` and `undefined` values are not allowed.
636
+ if (object == null) {
637
+ throw new TypeError('Object.values called on non-object');
638
+ }
639
+ var values = [];
640
+ for (var key in object) {
641
+ if (hasOwnProperty.call(object, key)) {
642
+ values.push(object[key]);
643
+ }
644
+ }
645
+ return values;
646
+ };
647
+ }
648
+ })();
649
+ })(typeof globalThis !== 'undefined' ? globalThis : typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
650
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
651
+ "use strict";
652
+
653
+ /*
654
+ * Copyright 2023-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
655
+ *
656
+ * AMAZON PROPRIETARY/CONFIDENTIAL
657
+ *
658
+ * You may not use this file except in compliance with the terms and
659
+ * conditions set forth in the accompanying LICENSE.TXT file.
660
+ *
661
+ * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
662
+ * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
663
+ * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
664
+ * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
665
+ */
666
+ Object.defineProperty(exports, "__esModule", {
667
+ value: true
668
+ });
669
+ Object.defineProperty(exports, "ParentalControlsComponent", {
670
+ enumerable: true,
671
+ get: function get() {
672
+ return _$$_REQUIRE(_dependencyMap[0]).default;
673
+ }
674
+ });
675
+ },"40ec14c03fd07ea0e322",["addd30921dc1a920c84e"]);
676
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
677
+ "use strict";
678
+
679
+ /*
680
+ * Copyright 2023-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
681
+ *
682
+ * AMAZON PROPRIETARY/CONFIDENTIAL
683
+ *
684
+ * You may not use this file except in compliance with the terms and
685
+ * conditions set forth in the accompanying LICENSE.TXT file.
686
+ *
687
+ * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
688
+ * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
689
+ * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
690
+ * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
691
+ */
692
+ var __importDefault = this && this.__importDefault || function (mod) {
693
+ return mod && mod.__esModule ? mod : {
694
+ "default": mod
695
+ };
696
+ };
697
+ Object.defineProperty(exports, "__esModule", {
698
+ value: true
699
+ });
700
+ exports.ParentalControlsComponentTmGlue = exports.ParentalControlsPreferenceReaderTmGlue = undefined;
701
+ var KeplerPconJs_1 = __importDefault(_$$_REQUIRE(_dependencyMap[0]));
702
+ /**
703
+ * A module-private implementation of IParentalControlsComponent that invokes the TM.
704
+ * Factory-constructed by ParentalControlsComponent.
705
+ */
706
+ var ParentalControlsPreferenceReaderTmGlue = /*#__PURE__*/function () {
707
+ function ParentalControlsPreferenceReaderTmGlue() {
708
+ _$$_REQUIRE(_dependencyMap[1])(this, ParentalControlsPreferenceReaderTmGlue);
709
+ }
710
+ return _$$_REQUIRE(_dependencyMap[2])(ParentalControlsPreferenceReaderTmGlue, [{
711
+ key: "isEnabled",
712
+ value: function isEnabled() {
713
+ return _$$_REQUIRE(_dependencyMap[3]).translatePconAsyncTurboModuleResponse(KeplerPconJs_1.default.preferenceReader_isEnabled());
714
+ }
715
+ }, {
716
+ key: "getContentRestrictionLevel",
717
+ value: function getContentRestrictionLevel() {
718
+ return _$$_REQUIRE(_dependencyMap[3]).translatePconAsyncTurboModuleResponse(KeplerPconJs_1.default.preferenceReader_getContentRestrictionLevel());
719
+ }
720
+ }]);
721
+ }();
722
+ exports.ParentalControlsPreferenceReaderTmGlue = ParentalControlsPreferenceReaderTmGlue;
723
+ /**
724
+ * Concrete implementation of IParentalControlsComponent.
725
+ */
726
+ var ParentalControlsComponentTmGlue = /*#__PURE__*/function () {
727
+ function ParentalControlsComponentTmGlue() {
728
+ _$$_REQUIRE(_dependencyMap[1])(this, ParentalControlsComponentTmGlue);
729
+ }
730
+ return _$$_REQUIRE(_dependencyMap[2])(ParentalControlsComponentTmGlue, [{
731
+ key: "makePreferenceReader",
732
+ value: function makePreferenceReader() {
733
+ return new ParentalControlsPreferenceReaderTmGlue();
734
+ }
735
+ }, {
736
+ key: "gateContentPlayback",
737
+ value: function gateContentPlayback(contentRating) {
738
+ return _$$_REQUIRE(_dependencyMap[3]).translatePconAsyncTurboModuleResponse(KeplerPconJs_1.default.gateContentPlayback(contentRating != null ? contentRating : {}));
739
+ }
740
+ }, {
741
+ key: "getMajorVersion",
742
+ value: function getMajorVersion() {
743
+ return KeplerPconJs_1.default.getMajorVersion();
744
+ }
745
+ }, {
746
+ key: "getMinorVersion",
747
+ value: function getMinorVersion() {
748
+ return KeplerPconJs_1.default.getMinorVersion();
749
+ }
750
+ }, {
751
+ key: "getPatchVersion",
752
+ value: function getPatchVersion() {
753
+ return KeplerPconJs_1.default.getPatchVersion();
754
+ }
755
+ }]);
756
+ }();
757
+ exports.ParentalControlsComponentTmGlue = ParentalControlsComponentTmGlue;
758
+ var instance = new ParentalControlsComponentTmGlue();
759
+ exports.default = instance;
760
+ },"addd30921dc1a920c84e",["1f66c26e9329d24f4d64","cf3c049ea50efe649bfc","be8a01356f5723930509","29c4f5aa27f9b16b086d"]);
761
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
762
+ "use strict";
763
+
764
+ /*
765
+ * Copyright 2023-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
766
+ *
767
+ * AMAZON PROPRIETARY/CONFIDENTIAL
768
+ *
769
+ * You may not use this file except in compliance with the terms and
770
+ * conditions set forth in the accompanying LICENSE.TXT file.
771
+ *
772
+ * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
773
+ * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
774
+ * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
775
+ * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
776
+ */
777
+ Object.defineProperty(exports, "__esModule", {
778
+ value: true
779
+ });
780
+ //@ts-ignore
781
+
782
+ // prettier-ignore
783
+ exports.default = _$$_REQUIRE(_dependencyMap[0]).TurboModuleRegistry.getEnforcing('AmazonParentalControls');
784
+ },"1f66c26e9329d24f4d64",["8a35a86b7946c72e0207"]);
785
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
786
+ "use strict";
787
+
788
+ /**
789
+ * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
790
+ *
791
+ * PROPRIETARY/CONFIDENTIAL
792
+ *
793
+ * Use is subject to license terms.
794
+ *
795
+ */
796
+ Object.defineProperty(exports, "__esModule", {
797
+ value: true
798
+ });
799
+ exports.TurboModuleRegistry = undefined;
800
+ exports.TurboModuleRegistry = _$$_REQUIRE(_dependencyMap[0]);
801
+ },"8a35a86b7946c72e0207",["33d6b98d6e39f6b0a8f9"]);
802
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
803
+ "use strict";
804
+
805
+ /**
806
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
807
+ *
808
+ * This source code is licensed under the MIT license found in the
809
+ * LICENSE file in the root directory of this source tree.
810
+ *
811
+ * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
812
+ * affiliates. All rights reserved.
813
+ *
814
+ * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
815
+ * LICENSE TERMS.
816
+ *
817
+ * Amazon modifications are indicated by [amznmod_* comments].
818
+ */
819
+ Object.defineProperty(exports, "__esModule", {
820
+ value: true
821
+ });
822
+ exports.getEnforcing = exports.get = undefined;
823
+ var turboModuleProxy = global.__turboModuleProxy;
824
+ function requireModule(name) {
825
+ if (turboModuleProxy != null) {
826
+ return turboModuleProxy(name);
827
+ }
828
+ return null;
829
+ }
830
+ function get(name) {
831
+ return requireModule(name);
832
+ }
833
+ exports.get = get;
834
+ function getEnforcing(name) {
835
+ var module = requireModule(name);
836
+ (0, _$$_REQUIRE(_dependencyMap[0]).default)(module != null, `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` + 'Verify that a module by this name is registered in the native binary.');
837
+ return module;
838
+ }
839
+ exports.getEnforcing = getEnforcing;
840
+ },"33d6b98d6e39f6b0a8f9",["8d9475a2cb77b53e450d"]);
841
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
842
+ /**
843
+ * Copyright (c) 2013-present, Facebook, Inc.
844
+ *
845
+ * This source code is licensed under the MIT license found in the
846
+ * LICENSE file in the root directory of this source tree.
847
+ *
848
+ * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its
849
+ * affiliates. All rights reserved.
850
+ *
851
+ * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO
852
+ * LICENSE TERMS.
853
+ *
854
+ * Amazon modifications are indicated by [amznmod_* comments].
855
+ */
856
+ /**
857
+ * amznmod_tmapi: Migrated to typescript
858
+ */
859
+ 'use strict';
860
+
861
+ Object.defineProperty(exports, "__esModule", {
862
+ value: true
863
+ });
864
+ /**
865
+ * Use invariant() to assert state which your program assumes to be true.
866
+ *
867
+ * Provide sprintf-style format (only %s is supported) and arguments
868
+ * to provide information about what broke and what you were
869
+ * expecting.
870
+ *
871
+ * The invariant message will be stripped in production, but the invariant
872
+ * will remain to ensure logic does not differ in production.
873
+ */
874
+ var NODE_ENV = "production";
875
+ var invariant = function invariant(condition, format) {
876
+ for (var _len = arguments.length, extraArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
877
+ extraArgs[_key - 2] = arguments[_key];
878
+ }
879
+ if (!condition) {
880
+ var error;
881
+ if (format === undefined) {
882
+ error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
883
+ } else {
884
+ var argIndex = 0;
885
+ error = new Error(format.replace(/%s/g, function () {
886
+ return extraArgs[argIndex++];
887
+ }));
888
+ error.name = 'Invariant Violation';
889
+ }
890
+ // @ts-ignore `framesToPop` is not part of Error type but something Meta (and maybe RN) uses.
891
+ error.framesToPop = 1; // we don't care about invariant's own frame
892
+ throw error;
893
+ }
894
+ };
895
+ exports.default = invariant;
896
+ },"8d9475a2cb77b53e450d",[]);
897
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
898
+ function _classCallCheck(a, n) {
899
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
900
+ }
901
+ module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
902
+ },"cf3c049ea50efe649bfc",[]);
903
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
904
+ function _defineProperties(e, r) {
905
+ for (var t = 0; t < r.length; t++) {
906
+ var o = r[t];
907
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _$$_REQUIRE(_dependencyMap[0])(o.key), o);
908
+ }
909
+ }
910
+ function _createClass(e, r, t) {
911
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
912
+ writable: false
913
+ }), e;
914
+ }
915
+ module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
916
+ },"be8a01356f5723930509",["3b6f25861377925d8169"]);
917
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
918
+ function toPropertyKey(t) {
919
+ var i = _$$_REQUIRE(_dependencyMap[0])(t, "string");
920
+ return "symbol" == _$$_REQUIRE(_dependencyMap[1])["default"](i) ? i : i + "";
921
+ }
922
+ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
923
+ },"3b6f25861377925d8169",["735506462487c8d6a161","70afbc33bc38afcbc4d8"]);
924
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
925
+ function toPrimitive(t, r) {
926
+ if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](t) || !t) return t;
927
+ var e = t[Symbol.toPrimitive];
928
+ if (undefined !== e) {
929
+ var i = e.call(t, r || "default");
930
+ if ("object" != _$$_REQUIRE(_dependencyMap[0])["default"](i)) return i;
931
+ throw new TypeError("@@toPrimitive must return a primitive value.");
932
+ }
933
+ return ("string" === r ? String : Number)(t);
934
+ }
935
+ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
936
+ },"735506462487c8d6a161",["70afbc33bc38afcbc4d8"]);
937
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
938
+ function _typeof(o) {
939
+ "@babel/helpers - typeof";
940
+
941
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
942
+ return typeof o;
943
+ } : function (o) {
944
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
945
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
946
+ }
947
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
948
+ },"70afbc33bc38afcbc4d8",[]);
949
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
950
+ "use strict";
951
+
952
+ /*
953
+ * Copyright 2023-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
954
+ *
955
+ * AMAZON PROPRIETARY/CONFIDENTIAL
956
+ *
957
+ * You may not use this file except in compliance with the terms and
958
+ * conditions set forth in the accompanying LICENSE.TXT file.
959
+ *
960
+ * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
961
+ * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
962
+ * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
963
+ * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
964
+ */
965
+ Object.defineProperty(exports, "__esModule", {
966
+ value: true
967
+ });
968
+ exports.unwrapPconTurboModuleResponse = exports.translatePconAsyncTurboModuleResponse = undefined;
969
+ /**
970
+ * @module Contains KeplerMediaContentMetadata-specific configuration of TurboModuleResult's
971
+ * wrapper concept.
972
+ */
973
+ // Empty to start; derived errors go here
974
+ var pconErrorNameToConstructor = {};
975
+ /**
976
+ * Unwraps an async result, applying the specific error mapping for KeplerPcon-Js.
977
+ */
978
+ function translatePconAsyncTurboModuleResponse(_x) {
979
+ return _translatePconAsyncTurboModuleResponse.apply(this, arguments);
980
+ }
981
+ function _translatePconAsyncTurboModuleResponse() {
982
+ _translatePconAsyncTurboModuleResponse = _$$_REQUIRE(_dependencyMap[0])(function* (asyncResult) {
983
+ return _$$_REQUIRE(_dependencyMap[1]).translateAsyncTurboModuleResponse(asyncResult, pconErrorNameToConstructor);
984
+ });
985
+ return _translatePconAsyncTurboModuleResponse.apply(this, arguments);
986
+ }
987
+ exports.translatePconAsyncTurboModuleResponse = translatePconAsyncTurboModuleResponse;
988
+ /**
989
+ * Unwraps a (synchronous) result, applying the specific error mapping for KeplerPcon-Js.
990
+ */
991
+ function unwrapPconTurboModuleResponse(result) {
992
+ return _$$_REQUIRE(_dependencyMap[1]).unwrapResult(result, pconErrorNameToConstructor);
993
+ }
994
+ exports.unwrapPconTurboModuleResponse = unwrapPconTurboModuleResponse;
995
+ },"29c4f5aa27f9b16b086d",["071fa6e2cd425bede9f2","80f0942af3a52732a541"]);
996
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
997
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
998
+ try {
999
+ var i = n[a](c),
1000
+ u = i.value;
1001
+ } catch (n) {
1002
+ return void e(n);
1003
+ }
1004
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
1005
+ }
1006
+ function _asyncToGenerator(n) {
1007
+ return function () {
1008
+ var t = this,
1009
+ e = arguments;
1010
+ return new Promise(function (r, o) {
1011
+ var a = n.apply(t, e);
1012
+ function _next(n) {
1013
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
1014
+ }
1015
+ function _throw(n) {
1016
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
1017
+ }
1018
+ _next(undefined);
1019
+ });
1020
+ };
1021
+ }
1022
+ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
1023
+ },"071fa6e2cd425bede9f2",[]);
1024
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
1025
+ "use strict";
1026
+
1027
+ /*
1028
+ * Copyright 2023-2024 Amazon.com, Inc. or its affiliates. All rights reserved.
1029
+ *
1030
+ * AMAZON PROPRIETARY/CONFIDENTIAL
1031
+ *
1032
+ * You may not use this file except in compliance with the terms and
1033
+ * conditions set forth in the accompanying LICENSE.TXT file.
1034
+ *
1035
+ * THESE MATERIALS ARE PROVIDED ON AN "AS IS" BASIS. AMAZON SPECIFICALLY
1036
+ * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,
1037
+ * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
1038
+ * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
1039
+ */
1040
+ Object.defineProperty(exports, "__esModule", {
1041
+ value: true
1042
+ });
1043
+ exports.makeTurboModuleResultErr = exports.makeTurboModuleResultOk = exports.translateAsyncTurboModuleResponse = exports.unwrapResult = exports.makeError = undefined;
1044
+ function makeError(errorName, errorMessage, errorNameToConstructorMapping) {
1045
+ if (errorName in errorNameToConstructorMapping) {
1046
+ var ErrorConstructor = errorNameToConstructorMapping[errorName];
1047
+ return new ErrorConstructor(errorMessage);
1048
+ } else {
1049
+ return new Error(errorName + ': ' + errorMessage);
1050
+ }
1051
+ }
1052
+ exports.makeError = makeError;
1053
+ /**
1054
+ * Unwrap value of type T on success else throw mapped Error type.
1055
+ */
1056
+ function unwrapResult(result, errorNameToConstructorMapping) {
1057
+ if (result.isSuccess) {
1058
+ return result.value;
1059
+ } else {
1060
+ var err = result;
1061
+ throw makeError(err.errorName, err.errorMessage, errorNameToConstructorMapping);
1062
+ }
1063
+ }
1064
+ exports.unwrapResult = unwrapResult;
1065
+ function translateAsyncTurboModuleResponse(_x, _x2) {
1066
+ return _translateAsyncTurboModuleResponse.apply(this, arguments);
1067
+ }
1068
+ function _translateAsyncTurboModuleResponse() {
1069
+ _translateAsyncTurboModuleResponse = _$$_REQUIRE(_dependencyMap[0])(function* (asyncResult, errorNameToConstructorMapping) {
1070
+ var result;
1071
+ try {
1072
+ result = yield asyncResult;
1073
+ } catch (error) {
1074
+ throw new Error('Unknown error in module Kepler Parental Controls');
1075
+ }
1076
+ // Returns wrapped value if successful or throws (rejecting Promise) if failure.
1077
+ return unwrapResult(result, errorNameToConstructorMapping);
1078
+ });
1079
+ return _translateAsyncTurboModuleResponse.apply(this, arguments);
1080
+ }
1081
+ exports.translateAsyncTurboModuleResponse = translateAsyncTurboModuleResponse;
1082
+ /**
1083
+ * Wraps a value in success-case TurboModuleResult. Since these values are typically
1084
+ * constructed on the Turbo Module implementation side (C++), this method is generally
1085
+ * only used for mocking/faking Turbo Modules.
1086
+ *
1087
+ * @param value wrapped value to ensconse in a TurboModuleResultOk<T>.
1088
+ * @returns wrapped TurboModuleResultOk<T>
1089
+ */
1090
+ function makeTurboModuleResultOk(value) {
1091
+ return {
1092
+ isSuccess: true,
1093
+ value: value
1094
+ };
1095
+ }
1096
+ exports.makeTurboModuleResultOk = makeTurboModuleResultOk;
1097
+ /**
1098
+ * Wraps a value in failure-case TurboModuleResult. Since these values are typically
1099
+ * constructed on the Turbo Module implementation side (C++), this method is generally
1100
+ * only used for mocking/faking Turbo Modules.
1101
+ *
1102
+ * @param value wrapped value to ensconse in a TurboModuleResultErr.
1103
+ * @returns wrapped TurboModuleResultErr
1104
+ */
1105
+ function makeTurboModuleResultErr(errorName, errorMessage) {
1106
+ return {
1107
+ isSuccess: false,
1108
+ errorName: errorName,
1109
+ errorMessage: errorMessage
1110
+ };
1111
+ }
1112
+ exports.makeTurboModuleResultErr = makeTurboModuleResultErr;
1113
+ },"80f0942af3a52732a541",["071fa6e2cd425bede9f2"]);