idmission-web-sdk 2.5.79-changeset-release-develop-17aef99 → 2.5.79-react16compat.0
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/dist/components/customer_flows/IdValidation.d.ts +26 -128
- package/dist/components/id_capture/IdCaptureLoadingOverlay.d.ts +0 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +2 -9
- package/dist/index.d.ts +136 -1057
- package/dist/props.json +1 -1
- package/dist/sdk2.cjs.development.js +1235 -268
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +1226 -259
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +212 -121
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/package.json +12 -8
package/dist/sdk2.esm.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect, useLayoutEffect, useCallback, useMemo, useContext, createContext, createElement, forwardRef, useImperativeHandle, memo, useReducer } from 'react';
|
|
2
|
-
import { createStore } from 'zustand/vanilla';
|
|
3
2
|
import platform from 'platform';
|
|
4
3
|
import { DetailedError, Upload } from 'tus-js-client';
|
|
5
4
|
import SparkMD5 from 'spark-md5';
|
|
@@ -9,16 +8,14 @@ import { useSyncExternalStore } from 'use-sync-external-store/shim';
|
|
|
9
8
|
import { useTranslation } from 'react-i18next';
|
|
10
9
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
11
10
|
import { createInstance } from 'i18next';
|
|
12
|
-
import { createPortal } from 'react-dom';
|
|
11
|
+
import ReactDOM, { createPortal } from 'react-dom';
|
|
13
12
|
import SignaturePad from 'signature_pad';
|
|
14
|
-
import { ThinkingOrb } from 'thinking-orbs';
|
|
15
|
-
import ReactDOM from 'react-dom/client';
|
|
16
13
|
import { ImageSegmenter, FilesetResolver, ObjectDetector, ImageClassifier, FaceLandmarker as FaceLandmarker$2 } from '@mediapipe/tasks-vision';
|
|
17
14
|
import { isWebGPUSupported, loadAndCompile, loadLiteRt, Tensor } from '@litertjs/core';
|
|
18
15
|
|
|
19
16
|
// Extracted from the barrel so modules inside this package can read the
|
|
20
17
|
// version without importing index.ts (which would be circular).
|
|
21
|
-
var webSdkUiVersion = '0.
|
|
18
|
+
var webSdkUiVersion = '0.4.0';
|
|
22
19
|
|
|
23
20
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
24
21
|
try {
|
|
@@ -446,17 +443,17 @@ function _iterableToArrayLimit(r, l) {
|
|
|
446
443
|
}
|
|
447
444
|
}
|
|
448
445
|
|
|
449
|
-
function _arrayLikeToArray$
|
|
446
|
+
function _arrayLikeToArray$w(r, a) {
|
|
450
447
|
(null == a || a > r.length) && (a = r.length);
|
|
451
448
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
452
449
|
return n;
|
|
453
450
|
}
|
|
454
451
|
|
|
455
|
-
function _unsupportedIterableToArray$
|
|
452
|
+
function _unsupportedIterableToArray$w(r, a) {
|
|
456
453
|
if (r) {
|
|
457
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
454
|
+
if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
|
|
458
455
|
var t = {}.toString.call(r).slice(8, -1);
|
|
459
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
456
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
|
|
460
457
|
}
|
|
461
458
|
}
|
|
462
459
|
|
|
@@ -465,11 +462,11 @@ function _nonIterableRest() {
|
|
|
465
462
|
}
|
|
466
463
|
|
|
467
464
|
function _slicedToArray(r, e) {
|
|
468
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$
|
|
465
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
|
|
469
466
|
}
|
|
470
467
|
|
|
471
468
|
function _arrayWithoutHoles(r) {
|
|
472
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
469
|
+
if (Array.isArray(r)) return _arrayLikeToArray$w(r);
|
|
473
470
|
}
|
|
474
471
|
|
|
475
472
|
function _iterableToArray(r) {
|
|
@@ -481,10 +478,10 @@ function _nonIterableSpread() {
|
|
|
481
478
|
}
|
|
482
479
|
|
|
483
480
|
function _toConsumableArray(r) {
|
|
484
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$
|
|
481
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
|
|
485
482
|
}
|
|
486
483
|
|
|
487
|
-
var webSdkCoreVersion = '0.
|
|
484
|
+
var webSdkCoreVersion = '0.4.0';
|
|
488
485
|
|
|
489
486
|
var maxTime = 86400000;
|
|
490
487
|
var maxCount = 1000000;
|
|
@@ -1256,9 +1253,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
|
|
|
1256
1253
|
({
|
|
1257
1254
|
workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
|
|
1258
1255
|
|
|
1259
|
-
function _createForOfIteratorHelperLoose$
|
|
1260
|
-
function _unsupportedIterableToArray$
|
|
1261
|
-
function _arrayLikeToArray$
|
|
1256
|
+
function _createForOfIteratorHelperLoose$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1257
|
+
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
|
|
1258
|
+
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1262
1259
|
var maximumBytes = 32 * 1024;
|
|
1263
1260
|
var maximumTime = 86400000;
|
|
1264
1261
|
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -1326,7 +1323,7 @@ function validateSnapshot(report) {
|
|
|
1326
1323
|
unique(report.phaseTotals.map(function (total) {
|
|
1327
1324
|
return total.phase;
|
|
1328
1325
|
}));
|
|
1329
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1326
|
+
for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
|
|
1330
1327
|
var _total4 = _step.value;
|
|
1331
1328
|
requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
|
|
1332
1329
|
durationValid(_total4.duration);
|
|
@@ -1348,7 +1345,7 @@ function validateSnapshot(report) {
|
|
|
1348
1345
|
requireValid(report.recentTransitions.length <= 32);
|
|
1349
1346
|
var index = 0;
|
|
1350
1347
|
var atMs = 0;
|
|
1351
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1348
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
|
|
1352
1349
|
var transition = _step2.value;
|
|
1353
1350
|
requireValid(member(transitionKinds, transition.kind));
|
|
1354
1351
|
requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
|
|
@@ -1372,12 +1369,12 @@ function validateSnapshot(report) {
|
|
|
1372
1369
|
unique(report.controllerGuidanceTotals.map(function (total) {
|
|
1373
1370
|
return JSON.stringify([total.phase, total.guidance]);
|
|
1374
1371
|
}));
|
|
1375
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1372
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
|
|
1376
1373
|
var _total2 = _step3.value;
|
|
1377
1374
|
durationValid(_total2.duration);
|
|
1378
1375
|
exposureValid(_total2.phase, _total2.exposure);
|
|
1379
1376
|
}
|
|
1380
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1377
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
|
|
1381
1378
|
var _total3 = _step4.value;
|
|
1382
1379
|
durationValid(_total3.duration);
|
|
1383
1380
|
guidanceValid(_total3.phase, _total3.guidance, false);
|
|
@@ -1411,7 +1408,7 @@ function encodeProgressBatch(batch) {
|
|
|
1411
1408
|
requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
|
|
1412
1409
|
var reports = [];
|
|
1413
1410
|
var dropped = [];
|
|
1414
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1411
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
|
|
1415
1412
|
var report = _step5.value;
|
|
1416
1413
|
try {
|
|
1417
1414
|
validateSnapshot(report);
|
|
@@ -1440,9 +1437,9 @@ function encodeProgressBatch(batch) {
|
|
|
1440
1437
|
};
|
|
1441
1438
|
}
|
|
1442
1439
|
|
|
1443
|
-
function _createForOfIteratorHelperLoose$
|
|
1444
|
-
function _unsupportedIterableToArray$
|
|
1445
|
-
function _arrayLikeToArray$
|
|
1440
|
+
function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1441
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
1442
|
+
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1446
1443
|
var taskOpeners = new WeakMap();
|
|
1447
1444
|
var inertObserver = {
|
|
1448
1445
|
observe: function observe() {},
|
|
@@ -1496,7 +1493,7 @@ function createSessionActor(options, deps) {
|
|
|
1496
1493
|
var due = new Map();
|
|
1497
1494
|
var eligibilityRetries = new Map();
|
|
1498
1495
|
function dropped(report) {
|
|
1499
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1496
|
+
for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
|
|
1500
1497
|
var stream = _step.value;
|
|
1501
1498
|
if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
|
|
1502
1499
|
report: _extends({}, stream.state.report, {
|
|
@@ -1540,7 +1537,7 @@ function createSessionActor(options, deps) {
|
|
|
1540
1537
|
var retained = new Set(queued.map(function (report) {
|
|
1541
1538
|
return report.sequence;
|
|
1542
1539
|
}));
|
|
1543
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1540
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
|
|
1544
1541
|
var _sequence = _step2.value;
|
|
1545
1542
|
if (!retained.has(_sequence)) due["delete"](_sequence);
|
|
1546
1543
|
}
|
|
@@ -1553,7 +1550,7 @@ function createSessionActor(options, deps) {
|
|
|
1553
1550
|
var keys = new Set(reports.map(function (report) {
|
|
1554
1551
|
return report.sequence;
|
|
1555
1552
|
}));
|
|
1556
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1553
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
|
|
1557
1554
|
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
1558
1555
|
key = _step3$value[0],
|
|
1559
1556
|
report = _step3$value[1];
|
|
@@ -1577,14 +1574,14 @@ function createSessionActor(options, deps) {
|
|
|
1577
1574
|
if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
|
|
1578
1575
|
return report.context === context;
|
|
1579
1576
|
})) emergency = null;
|
|
1580
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1577
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
|
|
1581
1578
|
var _step4$value = _slicedToArray(_step4.value, 2),
|
|
1582
1579
|
key = _step4$value[0],
|
|
1583
1580
|
report = _step4$value[1];
|
|
1584
1581
|
if (report.context === context) pending["delete"](key);
|
|
1585
1582
|
}
|
|
1586
1583
|
for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
|
|
1587
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1584
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
|
|
1588
1585
|
var stream = _step5.value;
|
|
1589
1586
|
if (stream.state.report.context === context) {
|
|
1590
1587
|
stream.disposed = true;
|
|
@@ -1613,7 +1610,7 @@ function createSessionActor(options, deps) {
|
|
|
1613
1610
|
unsubscribe();
|
|
1614
1611
|
cancelTimer == null || cancelTimer();
|
|
1615
1612
|
cancelRequest == null || cancelRequest();
|
|
1616
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
1613
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
|
|
1617
1614
|
var stream = _step6.value;
|
|
1618
1615
|
stream.disposed = true;
|
|
1619
1616
|
}
|
|
@@ -1635,7 +1632,7 @@ function createSessionActor(options, deps) {
|
|
|
1635
1632
|
sentAtUnixMs: Math.floor(deps.unixMs()),
|
|
1636
1633
|
reports: reports
|
|
1637
1634
|
});
|
|
1638
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
1635
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
|
|
1639
1636
|
var report = _step7.value;
|
|
1640
1637
|
dropped(report);
|
|
1641
1638
|
removeReports([report]);
|
|
@@ -1805,14 +1802,14 @@ function createSessionActor(options, deps) {
|
|
|
1805
1802
|
retries = 0;
|
|
1806
1803
|
failureStreak = 0;
|
|
1807
1804
|
} else if (result.kind === "permanent") {
|
|
1808
|
-
for (_iterator11 = _createForOfIteratorHelperLoose$
|
|
1805
|
+
for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
|
|
1809
1806
|
report = _step11.value;
|
|
1810
1807
|
disable(report.context);
|
|
1811
1808
|
}
|
|
1812
1809
|
} else {
|
|
1813
1810
|
backoff(result);
|
|
1814
1811
|
if (++retries > 3) {
|
|
1815
|
-
for (_iterator12 = _createForOfIteratorHelperLoose$
|
|
1812
|
+
for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
|
|
1816
1813
|
_report = _step12.value;
|
|
1817
1814
|
dropped(_report);
|
|
1818
1815
|
}
|
|
@@ -1834,7 +1831,7 @@ function createSessionActor(options, deps) {
|
|
|
1834
1831
|
backoff({});
|
|
1835
1832
|
if (authorizing) failedEligibility(authorizing);
|
|
1836
1833
|
if (frozen && ++retries > 3) {
|
|
1837
|
-
for (_iterator13 = _createForOfIteratorHelperLoose$
|
|
1834
|
+
for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
|
|
1838
1835
|
_report2 = _step13.value;
|
|
1839
1836
|
dropped(_report2);
|
|
1840
1837
|
}
|
|
@@ -1877,7 +1874,7 @@ function createSessionActor(options, deps) {
|
|
|
1877
1874
|
} else if (outcome.kind === "committed") {
|
|
1878
1875
|
if (emergency === sending) emergency = null;
|
|
1879
1876
|
} else if (outcome.kind === "permanent") {
|
|
1880
|
-
for (var _iterator8 = _createForOfIteratorHelperLoose$
|
|
1877
|
+
for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
|
|
1881
1878
|
var report = _step8.value;
|
|
1882
1879
|
disable(report.context);
|
|
1883
1880
|
}
|
|
@@ -1909,7 +1906,7 @@ function createSessionActor(options, deps) {
|
|
|
1909
1906
|
}
|
|
1910
1907
|
function tick() {
|
|
1911
1908
|
if (disposed || visibility === "hidden") return;
|
|
1912
|
-
for (var _iterator9 = _createForOfIteratorHelperLoose$
|
|
1909
|
+
for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
|
|
1913
1910
|
var stream = _step9.value;
|
|
1914
1911
|
var report = prepareDeadline(stream);
|
|
1915
1912
|
if (!(report != null && report.current)) continue;
|
|
@@ -1936,7 +1933,7 @@ function createSessionActor(options, deps) {
|
|
|
1936
1933
|
if (disposed || visibility === "hidden") return;
|
|
1937
1934
|
var delay = Infinity;
|
|
1938
1935
|
if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
|
|
1939
|
-
for (var _iterator0 = _createForOfIteratorHelperLoose$
|
|
1936
|
+
for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
|
|
1940
1937
|
var stream = _step0.value;
|
|
1941
1938
|
var report = prepareDeadline(stream);
|
|
1942
1939
|
if (!(report != null && report.current)) continue;
|
|
@@ -2022,7 +2019,7 @@ function createSessionActor(options, deps) {
|
|
|
2022
2019
|
return guard$2(function () {
|
|
2023
2020
|
if (disposed || next === visibility) return;
|
|
2024
2021
|
visibility = next;
|
|
2025
|
-
for (var _iterator1 = _createForOfIteratorHelperLoose$
|
|
2022
|
+
for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
|
|
2026
2023
|
var stream = _step1.value;
|
|
2027
2024
|
if (stream.state.report.attemptStatus !== "active") continue;
|
|
2028
2025
|
stream.state = reduceObservation(stream.state, {
|
|
@@ -2063,7 +2060,7 @@ function createSessionActor(options, deps) {
|
|
|
2063
2060
|
if (taskDisposed) return;
|
|
2064
2061
|
taskDisposed = true;
|
|
2065
2062
|
if (workflowStream) close(workflowStream, "disposed");
|
|
2066
|
-
for (var _iterator10 = _createForOfIteratorHelperLoose$
|
|
2063
|
+
for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
|
|
2067
2064
|
var capture = _step10.value;
|
|
2068
2065
|
capture.dispose();
|
|
2069
2066
|
}
|
|
@@ -2201,6 +2198,44 @@ function isApprovedResponse(action, response) {
|
|
|
2201
2198
|
return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
|
|
2202
2199
|
}
|
|
2203
2200
|
|
|
2201
|
+
var createStoreImpl = function createStoreImpl(createState) {
|
|
2202
|
+
var state;
|
|
2203
|
+
var listeners = /* @__PURE__ */new Set();
|
|
2204
|
+
var setState = function setState(partial, replace) {
|
|
2205
|
+
var nextState = typeof partial === "function" ? partial(state) : partial;
|
|
2206
|
+
if (!Object.is(nextState, state)) {
|
|
2207
|
+
var previousState = state;
|
|
2208
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
2209
|
+
listeners.forEach(function (listener) {
|
|
2210
|
+
return listener(state, previousState);
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
var getState = function getState() {
|
|
2215
|
+
return state;
|
|
2216
|
+
};
|
|
2217
|
+
var getInitialState = function getInitialState() {
|
|
2218
|
+
return initialState;
|
|
2219
|
+
};
|
|
2220
|
+
var subscribe = function subscribe(listener) {
|
|
2221
|
+
listeners.add(listener);
|
|
2222
|
+
return function () {
|
|
2223
|
+
return listeners["delete"](listener);
|
|
2224
|
+
};
|
|
2225
|
+
};
|
|
2226
|
+
var api = {
|
|
2227
|
+
setState: setState,
|
|
2228
|
+
getState: getState,
|
|
2229
|
+
getInitialState: getInitialState,
|
|
2230
|
+
subscribe: subscribe
|
|
2231
|
+
};
|
|
2232
|
+
var initialState = state = createState(setState, getState, api);
|
|
2233
|
+
return api;
|
|
2234
|
+
};
|
|
2235
|
+
var createStore = function createStore(createState) {
|
|
2236
|
+
return createState ? createStoreImpl(createState) : createStoreImpl;
|
|
2237
|
+
};
|
|
2238
|
+
|
|
2204
2239
|
function sessionReducer(state, action) {
|
|
2205
2240
|
switch (action.type) {
|
|
2206
2241
|
case 'setSessionId':
|
|
@@ -2861,7 +2896,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
2861
2896
|
return t;
|
|
2862
2897
|
}
|
|
2863
2898
|
|
|
2864
|
-
var _excluded$
|
|
2899
|
+
var _excluded$k = ["nonce", "web", "os"];
|
|
2865
2900
|
/**
|
|
2866
2901
|
* Grade the envelope from whichever inputs are present:
|
|
2867
2902
|
* - OS token present -> 'os-attested' (attach `os`)
|
|
@@ -2875,7 +2910,7 @@ function buildClientAttestation(input) {
|
|
|
2875
2910
|
var nonce = input.nonce,
|
|
2876
2911
|
web = input.web,
|
|
2877
2912
|
os = input.os,
|
|
2878
|
-
versions = _objectWithoutPropertiesLoose(input, _excluded$
|
|
2913
|
+
versions = _objectWithoutPropertiesLoose(input, _excluded$k);
|
|
2879
2914
|
if (os) {
|
|
2880
2915
|
return _extends({
|
|
2881
2916
|
assuranceLevel: 'os-attested',
|
|
@@ -3458,9 +3493,9 @@ function blobToB64(blob) {
|
|
|
3458
3493
|
});
|
|
3459
3494
|
}
|
|
3460
3495
|
|
|
3461
|
-
function _createForOfIteratorHelperLoose$
|
|
3462
|
-
function _unsupportedIterableToArray$
|
|
3463
|
-
function _arrayLikeToArray$
|
|
3496
|
+
function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3497
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
|
|
3498
|
+
function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3464
3499
|
/**
|
|
3465
3500
|
* Parser for AAMVA (American Association of Motor Vehicle Administrators)
|
|
3466
3501
|
* PDF417 barcode data found on US and Canadian driver's licenses.
|
|
@@ -3722,7 +3757,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3722
3757
|
DAD: false
|
|
3723
3758
|
};
|
|
3724
3759
|
var daaValue = null;
|
|
3725
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
3760
|
+
for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
|
|
3726
3761
|
var line = _step.value;
|
|
3727
3762
|
var match = line.match(fieldRegex);
|
|
3728
3763
|
if (match) {
|
|
@@ -3763,7 +3798,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3763
3798
|
result.fields.push(field);
|
|
3764
3799
|
}
|
|
3765
3800
|
};
|
|
3766
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
3801
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
|
|
3767
3802
|
_loop();
|
|
3768
3803
|
}
|
|
3769
3804
|
}
|
|
@@ -6456,7 +6491,7 @@ var fr = {
|
|
|
6456
6491
|
'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
|
|
6457
6492
|
};
|
|
6458
6493
|
|
|
6459
|
-
var it = {
|
|
6494
|
+
var it$1 = {
|
|
6460
6495
|
'English - en': 'Italian - it',
|
|
6461
6496
|
'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
|
|
6462
6497
|
'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
|
|
@@ -6752,7 +6787,7 @@ var ja = {
|
|
|
6752
6787
|
'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
|
|
6753
6788
|
};
|
|
6754
6789
|
|
|
6755
|
-
var pt = {
|
|
6790
|
+
var pt$1 = {
|
|
6756
6791
|
'English - en': 'Portuguese (Brazil) - pt',
|
|
6757
6792
|
'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
|
|
6758
6793
|
'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
|
|
@@ -7302,13 +7337,13 @@ var resources = {
|
|
|
7302
7337
|
translation: withThreeOhTranslations('fr', fr)
|
|
7303
7338
|
},
|
|
7304
7339
|
it: {
|
|
7305
|
-
translation: withThreeOhTranslations('it', it)
|
|
7340
|
+
translation: withThreeOhTranslations('it', it$1)
|
|
7306
7341
|
},
|
|
7307
7342
|
ja: {
|
|
7308
7343
|
translation: withThreeOhTranslations('ja', ja)
|
|
7309
7344
|
},
|
|
7310
7345
|
pt: {
|
|
7311
|
-
translation: withThreeOhTranslations('pt', pt)
|
|
7346
|
+
translation: withThreeOhTranslations('pt', pt$1)
|
|
7312
7347
|
},
|
|
7313
7348
|
ru: {
|
|
7314
7349
|
translation: withThreeOhTranslations('ru', ru)
|
|
@@ -7623,10 +7658,10 @@ function useGuideOrientationContext() {
|
|
|
7623
7658
|
}
|
|
7624
7659
|
|
|
7625
7660
|
var _templateObject$_, _templateObject2$Q;
|
|
7626
|
-
var _excluded$
|
|
7661
|
+
var _excluded$j = ["isRearFacing"];
|
|
7627
7662
|
var CameraVideoTag = /*#__PURE__*/forwardRef(function CameraVideoTag(_ref, ref) {
|
|
7628
7663
|
var isRearFacing = _ref.isRearFacing,
|
|
7629
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7664
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
7630
7665
|
return jsx(FullscreenVideoTag, _extends({
|
|
7631
7666
|
autoPlay: true,
|
|
7632
7667
|
playsInline: true,
|
|
@@ -7694,9 +7729,9 @@ function ScalingCameraFeed(_ref2) {
|
|
|
7694
7729
|
}
|
|
7695
7730
|
|
|
7696
7731
|
var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
|
|
7697
|
-
function _createForOfIteratorHelperLoose$
|
|
7698
|
-
function _unsupportedIterableToArray$
|
|
7699
|
-
function _arrayLikeToArray$
|
|
7732
|
+
function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7733
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
7734
|
+
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7700
7735
|
/** Displays camera readiness and available source-frame dimensions. */
|
|
7701
7736
|
function CameraDebugStatus(_ref) {
|
|
7702
7737
|
var ready = _ref.ready,
|
|
@@ -7961,7 +7996,7 @@ function SelfieCaptureFaceMesh(_ref15) {
|
|
|
7961
7996
|
groups.forEach(function (indices, color) {
|
|
7962
7997
|
ctx.fillStyle = color;
|
|
7963
7998
|
ctx.beginPath();
|
|
7964
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
7999
|
+
for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
|
|
7965
8000
|
var _i = _step.value;
|
|
7966
8001
|
var p = meshLandmarks[_i];
|
|
7967
8002
|
ctx.moveTo(p.x + dotRadius, p.y);
|
|
@@ -8143,7 +8178,7 @@ var EdgeStrip = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemp
|
|
|
8143
8178
|
});
|
|
8144
8179
|
|
|
8145
8180
|
var _templateObject$X;
|
|
8146
|
-
var _excluded$
|
|
8181
|
+
var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
|
|
8147
8182
|
var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8148
8183
|
var children = _ref.children,
|
|
8149
8184
|
className = _ref.className,
|
|
@@ -8153,7 +8188,7 @@ var LoaderButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8153
8188
|
finished = _ref.finished,
|
|
8154
8189
|
_ref$variant = _ref.variant,
|
|
8155
8190
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
8156
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8191
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
8157
8192
|
var buttonRef = useRef(null);
|
|
8158
8193
|
var laddaRef = useRef(null);
|
|
8159
8194
|
var _useState = useState(false),
|
|
@@ -8464,7 +8499,7 @@ var error = function error() {
|
|
|
8464
8499
|
return (console.error ).apply(void 0, arguments);
|
|
8465
8500
|
}; // eslint-disable-line no-console
|
|
8466
8501
|
|
|
8467
|
-
var _excluded$
|
|
8502
|
+
var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
|
|
8468
8503
|
_excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
|
|
8469
8504
|
var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
8470
8505
|
var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
|
|
@@ -8494,7 +8529,7 @@ function IdCardBorder(_ref) {
|
|
|
8494
8529
|
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
8495
8530
|
_ref$guideBoxDisabled = _ref.guideBoxDisabled,
|
|
8496
8531
|
guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
|
|
8497
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8532
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8498
8533
|
var _useResizeObserver = useResizeObserver(),
|
|
8499
8534
|
ref = _useResizeObserver.ref,
|
|
8500
8535
|
_useResizeObserver$wi = _useResizeObserver.width,
|
|
@@ -9884,11 +9919,11 @@ var LoadingGraphicPhoneGroup = styled.g(_templateObject4$s || (_templateObject4$
|
|
|
9884
9919
|
return props.$offScreen ? '40px' : '0';
|
|
9885
9920
|
});
|
|
9886
9921
|
|
|
9887
|
-
var _excluded$
|
|
9922
|
+
var _excluded$g = ["state"];
|
|
9888
9923
|
function LoadingListItemIndicator(_ref) {
|
|
9889
9924
|
var _ref$state = _ref.state,
|
|
9890
9925
|
state = _ref$state === void 0 ? 'running' : _ref$state,
|
|
9891
|
-
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9926
|
+
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
9892
9927
|
return jsx("svg", _extends({
|
|
9893
9928
|
width: "16",
|
|
9894
9929
|
height: "16",
|
|
@@ -10393,9 +10428,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
|
|
|
10393
10428
|
});
|
|
10394
10429
|
}
|
|
10395
10430
|
|
|
10396
|
-
function _createForOfIteratorHelperLoose$
|
|
10397
|
-
function _unsupportedIterableToArray$
|
|
10398
|
-
function _arrayLikeToArray$
|
|
10431
|
+
function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10432
|
+
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
10433
|
+
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10399
10434
|
var DEFAULT_THRESHOLD = 0.03;
|
|
10400
10435
|
// Minimum confidence a `'Finger'` detection must clear before it counts
|
|
10401
10436
|
// toward occlusion. The LiteRT document detector emits low-score
|
|
@@ -10446,7 +10481,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
|
|
|
10446
10481
|
// overlap each other the shared area gets double-counted — that errs
|
|
10447
10482
|
// toward over-blocking, which is the safer direction for occlusion.
|
|
10448
10483
|
var totalOverlap = 0;
|
|
10449
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10484
|
+
for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
|
|
10450
10485
|
var obj = _step.value;
|
|
10451
10486
|
if (obj.label !== 'Finger') continue;
|
|
10452
10487
|
if (obj.score < MIN_FINGER_SCORE) continue;
|
|
@@ -10478,7 +10513,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
|
|
|
10478
10513
|
if (!bestDocument) return false;
|
|
10479
10514
|
var docBox = bestDocument.box;
|
|
10480
10515
|
if (docBox.width <= 0 || docBox.height <= 0) return false;
|
|
10481
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
10516
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
|
|
10482
10517
|
var obj = _step2.value;
|
|
10483
10518
|
if (obj.label !== label) continue;
|
|
10484
10519
|
if (obj.score < minScore) continue;
|
|
@@ -10654,9 +10689,9 @@ var initialFlowState = {
|
|
|
10654
10689
|
|
|
10655
10690
|
var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
|
|
10656
10691
|
|
|
10657
|
-
function _createForOfIteratorHelperLoose$
|
|
10658
|
-
function _unsupportedIterableToArray$
|
|
10659
|
-
function _arrayLikeToArray$
|
|
10692
|
+
function _createForOfIteratorHelperLoose$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10693
|
+
function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
|
|
10694
|
+
function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10660
10695
|
// Tuning constants — seeded estimates. Expect on-device tuning against real
|
|
10661
10696
|
// captures across angles/devices (same posture as the liveness geometry).
|
|
10662
10697
|
var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
|
|
@@ -10684,7 +10719,7 @@ function containment(inner, outer) {
|
|
|
10684
10719
|
}
|
|
10685
10720
|
function bestByLabel(objs, label) {
|
|
10686
10721
|
var best = null;
|
|
10687
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10722
|
+
for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
|
|
10688
10723
|
var o = _step.value;
|
|
10689
10724
|
if (o.label !== label) continue;
|
|
10690
10725
|
if (o.score < MIN_BOOKLET_SCORE) continue;
|
|
@@ -10859,9 +10894,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
|
|
|
10859
10894
|
});
|
|
10860
10895
|
}
|
|
10861
10896
|
|
|
10862
|
-
function _createForOfIteratorHelperLoose$
|
|
10863
|
-
function _unsupportedIterableToArray$
|
|
10864
|
-
function _arrayLikeToArray$
|
|
10897
|
+
function _createForOfIteratorHelperLoose$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10898
|
+
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
|
|
10899
|
+
function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10865
10900
|
/**
|
|
10866
10901
|
* Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
|
|
10867
10902
|
* of these describe "the last frame we looked at", so they are meaningless —
|
|
@@ -10945,7 +10980,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
|
|
|
10945
10980
|
// from one the user captured -- `documentCaptured` erases the
|
|
10946
10981
|
// difference by design (see state.ts precapturedDocumentTypes).
|
|
10947
10982
|
var seeded = [];
|
|
10948
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10983
|
+
for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
|
|
10949
10984
|
var k = _step.value;
|
|
10950
10985
|
var payload = precapturedDocuments[k];
|
|
10951
10986
|
if (payload) {
|
|
@@ -11283,7 +11318,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
|
|
|
11283
11318
|
case 'documentsCaptured':
|
|
11284
11319
|
{
|
|
11285
11320
|
var _newState2 = _extends({}, state);
|
|
11286
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
11321
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
|
|
11287
11322
|
var doc = _step2.value;
|
|
11288
11323
|
_newState2 = _reduceIdCapture(_newState2, {
|
|
11289
11324
|
type: 'documentCaptured',
|
|
@@ -13485,9 +13520,9 @@ function evaluateIsMobile(nav) {
|
|
|
13485
13520
|
return false;
|
|
13486
13521
|
}
|
|
13487
13522
|
|
|
13488
|
-
function _createForOfIteratorHelperLoose$
|
|
13489
|
-
function _unsupportedIterableToArray$
|
|
13490
|
-
function _arrayLikeToArray$
|
|
13523
|
+
function _createForOfIteratorHelperLoose$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13524
|
+
function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
|
|
13525
|
+
function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13491
13526
|
// zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
|
|
13492
13527
|
// than fetched from unpkg. The previous `@latest` URL was both an external
|
|
13493
13528
|
// dependency and a supply-chain risk — it executed whatever unpkg served as
|
|
@@ -14227,7 +14262,7 @@ function _decodePDF() {
|
|
|
14227
14262
|
}
|
|
14228
14263
|
base = _bases[_i];
|
|
14229
14264
|
log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
|
|
14230
|
-
_iterator = _createForOfIteratorHelperLoose$
|
|
14265
|
+
_iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
|
|
14231
14266
|
case 11:
|
|
14232
14267
|
if ((_step = _iterator()).done) {
|
|
14233
14268
|
_context0.next = 14;
|
|
@@ -14752,7 +14787,7 @@ function _decodePDF417WithDetails() {
|
|
|
14752
14787
|
}
|
|
14753
14788
|
base = _bases2[_i2];
|
|
14754
14789
|
log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
|
|
14755
|
-
_iterator2 = _createForOfIteratorHelperLoose$
|
|
14790
|
+
_iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
|
|
14756
14791
|
case 12:
|
|
14757
14792
|
if ((_step2 = _iterator2()).done) {
|
|
14758
14793
|
_context12.next = 15;
|
|
@@ -14871,9 +14906,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
|
|
|
14871
14906
|
return CaptureAttachError;
|
|
14872
14907
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
14873
14908
|
|
|
14874
|
-
function _createForOfIteratorHelperLoose$
|
|
14875
|
-
function _unsupportedIterableToArray$
|
|
14876
|
-
function _arrayLikeToArray$
|
|
14909
|
+
function _createForOfIteratorHelperLoose$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14910
|
+
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
14911
|
+
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14877
14912
|
/**
|
|
14878
14913
|
* Analyzes barcode readability for a detected document
|
|
14879
14914
|
* (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
|
|
@@ -15334,7 +15369,7 @@ function createDetectionPipeline(opts) {
|
|
|
15334
15369
|
});
|
|
15335
15370
|
if (failed) {
|
|
15336
15371
|
loadSettled = true;
|
|
15337
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
15372
|
+
for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
|
|
15338
15373
|
var handle = _step.value;
|
|
15339
15374
|
handle.cancel();
|
|
15340
15375
|
}
|
|
@@ -16620,9 +16655,9 @@ function maybeDataUrlToBase64Sync(url) {
|
|
|
16620
16655
|
return dataUrlToBase64Sync(url);
|
|
16621
16656
|
}
|
|
16622
16657
|
|
|
16623
|
-
function _createForOfIteratorHelperLoose$
|
|
16624
|
-
function _unsupportedIterableToArray$
|
|
16625
|
-
function _arrayLikeToArray$
|
|
16658
|
+
function _createForOfIteratorHelperLoose$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16659
|
+
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
16660
|
+
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16626
16661
|
// Document types whose capture attempt becomes an upload's `filemetadata`, in
|
|
16627
16662
|
// write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
|
|
16628
16663
|
// exactly as the image does below.
|
|
@@ -16712,7 +16747,7 @@ function buildIdCaptureArtifacts(inputs, now) {
|
|
|
16712
16747
|
};
|
|
16713
16748
|
if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
|
|
16714
16749
|
var documentFileMetadata = {};
|
|
16715
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
16750
|
+
for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
|
|
16716
16751
|
var _step$value = _slicedToArray(_step.value, 2),
|
|
16717
16752
|
documentType = _step$value[0],
|
|
16718
16753
|
documentKey = _step$value[1];
|
|
@@ -16739,10 +16774,10 @@ function buildIdCaptureArtifacts(inputs, now) {
|
|
|
16739
16774
|
};
|
|
16740
16775
|
}
|
|
16741
16776
|
|
|
16742
|
-
var _excluded$
|
|
16743
|
-
function _createForOfIteratorHelperLoose$
|
|
16744
|
-
function _unsupportedIterableToArray$
|
|
16745
|
-
function _arrayLikeToArray$
|
|
16777
|
+
var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
|
|
16778
|
+
function _createForOfIteratorHelperLoose$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16779
|
+
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
16780
|
+
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16746
16781
|
// sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
|
|
16747
16782
|
var lastDocumentDetectedAtDefaults = {
|
|
16748
16783
|
idCardFront: null,
|
|
@@ -16912,7 +16947,7 @@ function createIdCaptureController(config) {
|
|
|
16912
16947
|
// payload.ts's buildNoBarcodeOCRMetadata fallback counts).
|
|
16913
16948
|
var bestBarcodeScore = metadata.bestBarcodeScore,
|
|
16914
16949
|
barcodeBoundingBox = metadata.barcodeBoundingBox,
|
|
16915
|
-
captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$
|
|
16950
|
+
captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
|
|
16916
16951
|
captureAttempts.back.push(captureAttemptWithoutBarcode);
|
|
16917
16952
|
// :619-629 -- appended whenever a barcode score was recorded at all
|
|
16918
16953
|
// (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
|
|
@@ -16952,7 +16987,7 @@ function createIdCaptureController(config) {
|
|
|
16952
16987
|
}
|
|
16953
16988
|
}
|
|
16954
16989
|
function clearAllTimers() {
|
|
16955
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
16990
|
+
for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
|
|
16956
16991
|
var handle = _step.value;
|
|
16957
16992
|
io.clearTimeout(handle);
|
|
16958
16993
|
}
|
|
@@ -19959,7 +19994,7 @@ var ContinueButton$2 = styled(LoaderButton)(_templateObject7$c || (_templateObje
|
|
|
19959
19994
|
return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$idCaptur5 : 'none';
|
|
19960
19995
|
});
|
|
19961
19996
|
|
|
19962
|
-
var _excluded$
|
|
19997
|
+
var _excluded$e = ["mode"];
|
|
19963
19998
|
var components$1 = {
|
|
19964
19999
|
"default": IdCaptureLoadingOverlayDefault,
|
|
19965
20000
|
legacy: IdCaptureLoadingOverlayLegacy,
|
|
@@ -19969,7 +20004,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
|
|
|
19969
20004
|
var _components$mode;
|
|
19970
20005
|
var _ref$mode = _ref.mode,
|
|
19971
20006
|
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
19972
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20007
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
19973
20008
|
var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
|
|
19974
20009
|
return jsx(Component, _extends({}, props));
|
|
19975
20010
|
};
|
|
@@ -20630,7 +20665,9 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20630
20665
|
_ref$verbiage = _ref.verbiage,
|
|
20631
20666
|
rawVerbiage = _ref$verbiage === void 0 ? {} : _ref$verbiage,
|
|
20632
20667
|
_ref$classNames = _ref.classNames,
|
|
20633
|
-
classNames = _ref$classNames === void 0 ? {} : _ref$classNames
|
|
20668
|
+
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
20669
|
+
_ref$colors = _ref.colors,
|
|
20670
|
+
colors = _ref$colors === void 0 ? {} : _ref$colors;
|
|
20634
20671
|
var submitButtonRef = useRef(null);
|
|
20635
20672
|
// Auto-focus submit button when session becomes ready.
|
|
20636
20673
|
useEffect(function () {
|
|
@@ -20684,6 +20721,7 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20684
20721
|
children: [jsx(WideButton, {
|
|
20685
20722
|
ref: submitButtonRef,
|
|
20686
20723
|
className: classNames.submitBtn,
|
|
20724
|
+
colors: colors.submitBtn,
|
|
20687
20725
|
variant: "positive",
|
|
20688
20726
|
onClick: onSubmit,
|
|
20689
20727
|
disabled: submission === 'submitting' || !sessionReady,
|
|
@@ -20691,6 +20729,7 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20691
20729
|
children: submission === 'submitting' ? verbiage.submittingText : !sessionReady ? 'Initializing...' : verbiage.submitText
|
|
20692
20730
|
}), jsx(WideBorderButton, {
|
|
20693
20731
|
className: classNames.retryBtn,
|
|
20732
|
+
colors: colors.retryBtn,
|
|
20694
20733
|
variant: "warning",
|
|
20695
20734
|
onClick: onRetry,
|
|
20696
20735
|
disabled: submission !== 'idle',
|
|
@@ -21552,9 +21591,9 @@ function useSessionReady() {
|
|
|
21552
21591
|
}
|
|
21553
21592
|
|
|
21554
21593
|
var _templateObject$w;
|
|
21555
|
-
function _createForOfIteratorHelperLoose$
|
|
21556
|
-
function _unsupportedIterableToArray$
|
|
21557
|
-
function _arrayLikeToArray$
|
|
21594
|
+
function _createForOfIteratorHelperLoose$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21595
|
+
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
21596
|
+
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21558
21597
|
// Unlike SelfieCaptureView/FaceLivenessView, this view has no root
|
|
21559
21598
|
// container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
|
|
21560
21599
|
// siblings relying on whatever positioned ancestor the host page provides.
|
|
@@ -21822,7 +21861,7 @@ function IdCaptureViewContent(_ref) {
|
|
|
21822
21861
|
// after this effect first runs with an empty state). Folding it in here,
|
|
21823
21862
|
// rather than seeding once on mount, is what makes the skip actually
|
|
21824
21863
|
// apply. `seen` keeps a consumed exclusion from being re-armed.
|
|
21825
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
21864
|
+
for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
|
|
21826
21865
|
var _documentType = _step.value;
|
|
21827
21866
|
if (seenPrecapturedRef.current.has(_documentType)) continue;
|
|
21828
21867
|
seenPrecapturedRef.current.add(_documentType);
|
|
@@ -22187,7 +22226,8 @@ function IdCaptureViewContent(_ref) {
|
|
|
22187
22226
|
onSubmit: isFlipInterstitial ? handleConfirmFlip : handleSubmit,
|
|
22188
22227
|
onRetry: handleRetake,
|
|
22189
22228
|
verbiage: isFlipInterstitial ? reviewFlipVerbiage : verbiage.review,
|
|
22190
|
-
classNames: classNames.review
|
|
22229
|
+
classNames: classNames.review,
|
|
22230
|
+
colors: colors.review
|
|
22191
22231
|
}), !screenTakeover && state.phase === 'error' && state.error !== null && jsx(ErrorScreen, {
|
|
22192
22232
|
error: state.error,
|
|
22193
22233
|
onRetry: handleRetry,
|
|
@@ -23211,9 +23251,9 @@ function guidanceFor(state, prediction, at) {
|
|
|
23211
23251
|
return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
|
|
23212
23252
|
}
|
|
23213
23253
|
|
|
23214
|
-
function _createForOfIteratorHelperLoose$
|
|
23215
|
-
function _unsupportedIterableToArray$
|
|
23216
|
-
function _arrayLikeToArray$
|
|
23254
|
+
function _createForOfIteratorHelperLoose$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
23255
|
+
function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
|
|
23256
|
+
function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23217
23257
|
// sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
|
|
23218
23258
|
// (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
|
|
23219
23259
|
// 2.4.0.
|
|
@@ -23243,7 +23283,7 @@ function mapDetectionsToFaces(prediction) {
|
|
|
23243
23283
|
if (!prediction) return null;
|
|
23244
23284
|
var faceDetections = [];
|
|
23245
23285
|
var noseDetections = [];
|
|
23246
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
23286
|
+
for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
|
|
23247
23287
|
var detection = _step.value;
|
|
23248
23288
|
if (isNoseDetection(detection)) {
|
|
23249
23289
|
noseDetections.push(detection);
|
|
@@ -23257,7 +23297,7 @@ function mapDetectionsToFaces(prediction) {
|
|
|
23257
23297
|
var faceBox = d.boundingBox;
|
|
23258
23298
|
if (!faceBox) continue;
|
|
23259
23299
|
var nose = null;
|
|
23260
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
23300
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
|
|
23261
23301
|
var n = _step2.value;
|
|
23262
23302
|
var noseBox = n.boundingBox;
|
|
23263
23303
|
if (!noseBox) continue;
|
|
@@ -24059,9 +24099,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
|
|
|
24059
24099
|
};
|
|
24060
24100
|
}
|
|
24061
24101
|
|
|
24062
|
-
function _createForOfIteratorHelperLoose$
|
|
24063
|
-
function _unsupportedIterableToArray$
|
|
24064
|
-
function _arrayLikeToArray$
|
|
24102
|
+
function _createForOfIteratorHelperLoose$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24103
|
+
function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
|
|
24104
|
+
function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24065
24105
|
// sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
|
|
24066
24106
|
// second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
|
|
24067
24107
|
var DEFAULT_PREDICTION_THROTTLE_MS = 16;
|
|
@@ -24183,7 +24223,7 @@ function createSelfieCaptureController(config) {
|
|
|
24183
24223
|
// --- timers (idCapture pattern, colon-namespaced) ---
|
|
24184
24224
|
var timers = new Map();
|
|
24185
24225
|
function clearAllTimers() {
|
|
24186
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
24226
|
+
for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
|
|
24187
24227
|
var handle = _step.value;
|
|
24188
24228
|
io.clearTimeout(handle);
|
|
24189
24229
|
}
|
|
@@ -25982,7 +26022,7 @@ function SelfieCameraFeed(_ref) {
|
|
|
25982
26022
|
}
|
|
25983
26023
|
|
|
25984
26024
|
var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
|
|
25985
|
-
var _excluded$
|
|
26025
|
+
var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
|
|
25986
26026
|
_excluded2$4 = ["status", "guideStyle"],
|
|
25987
26027
|
_excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
|
|
25988
26028
|
_excluded4 = ["status"];
|
|
@@ -25999,7 +26039,7 @@ var HeadGuideSvg = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
25999
26039
|
borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
|
|
26000
26040
|
_ref$status = _ref.status,
|
|
26001
26041
|
status = _ref$status === void 0 ? 'ready' : _ref$status,
|
|
26002
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26042
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
26003
26043
|
return jsxs("svg", _extends({}, props, {
|
|
26004
26044
|
ref: ref,
|
|
26005
26045
|
viewBox: "271 92 297 406",
|
|
@@ -26125,13 +26165,12 @@ var RelativeSvgContainer = styled.div(_templateObject4$f || (_templateObject4$f
|
|
|
26125
26165
|
return props.$verticalAlign === 'bottom' ? 'flex-end' : 'center';
|
|
26126
26166
|
});
|
|
26127
26167
|
function SelfieCaptureAnimatedMask(_ref3) {
|
|
26128
|
-
var _theme$selfieCapture$4, _theme$
|
|
26168
|
+
var _ref4, _theme$selfieCapture4, _theme$selfieCapture$4, _theme$selfieCapture5, _theme$selfieCapture$5, _theme$selfieCapture6;
|
|
26129
26169
|
var _ref3$frame = _ref3.frame,
|
|
26130
26170
|
frame = _ref3$frame === void 0 ? 0 : _ref3$frame,
|
|
26131
26171
|
_ref3$borderWidth = _ref3.borderWidth,
|
|
26132
26172
|
borderWidth = _ref3$borderWidth === void 0 ? 5 : _ref3$borderWidth,
|
|
26133
|
-
|
|
26134
|
-
borderColor = _ref3$borderColor === void 0 ? 'white' : _ref3$borderColor,
|
|
26173
|
+
borderColor = _ref3.borderColor,
|
|
26135
26174
|
_ref3$borderOpacity = _ref3.borderOpacity,
|
|
26136
26175
|
borderOpacity = _ref3$borderOpacity === void 0 ? 0.8 : _ref3$borderOpacity,
|
|
26137
26176
|
_ref3$verticalAlign = _ref3.verticalAlign,
|
|
@@ -26141,9 +26180,12 @@ function SelfieCaptureAnimatedMask(_ref3) {
|
|
|
26141
26180
|
guideStyle = _ref3.guideStyle,
|
|
26142
26181
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
26143
26182
|
var theme = useTheme();
|
|
26144
|
-
|
|
26145
|
-
|
|
26146
|
-
var
|
|
26183
|
+
// The outline while no face is framed yet. An explicit `borderColor` wins,
|
|
26184
|
+
// as the video-ID guides pass their own.
|
|
26185
|
+
var unsatisfiedColor = (_ref4 = borderColor != null ? borderColor : (_theme$selfieCapture4 = theme.selfieCapture) == null || (_theme$selfieCapture4 = _theme$selfieCapture4.guides) == null ? void 0 : _theme$selfieCapture4.unsatisfiedColor) != null ? _ref4 : 'white';
|
|
26186
|
+
var satisfiedColor = (_theme$selfieCapture$4 = (_theme$selfieCapture5 = theme.selfieCapture) == null || (_theme$selfieCapture5 = _theme$selfieCapture5.guides) == null ? void 0 : _theme$selfieCapture5.satisfiedColor) != null ? _theme$selfieCapture$4 : 'var(--idm-color-positive-600)';
|
|
26187
|
+
var negativeColor = (_theme$selfieCapture$5 = (_theme$selfieCapture6 = theme.selfieCapture) == null || (_theme$selfieCapture6 = _theme$selfieCapture6.guides) == null ? void 0 : _theme$selfieCapture6.failureColor) != null ? _theme$selfieCapture$5 : 'var(--idm-color-negative-600)';
|
|
26188
|
+
var statusBorderColor = status === 'failure' ? negativeColor : status === 'success' ? satisfiedColor : unsatisfiedColor;
|
|
26147
26189
|
return jsxs(RelativeSvgContainer, {
|
|
26148
26190
|
"$verticalAlign": verticalAlign,
|
|
26149
26191
|
children: [jsx(HeadGuide, _extends({
|
|
@@ -26339,10 +26381,10 @@ function SelfieCaptureAnimatedMask(_ref3) {
|
|
|
26339
26381
|
}))]
|
|
26340
26382
|
});
|
|
26341
26383
|
}
|
|
26342
|
-
function SelfieCaptureAnimatedMaskWithStatus(
|
|
26343
|
-
var
|
|
26344
|
-
status =
|
|
26345
|
-
props = _objectWithoutPropertiesLoose(
|
|
26384
|
+
function SelfieCaptureAnimatedMaskWithStatus(_ref5) {
|
|
26385
|
+
var _ref5$status = _ref5.status,
|
|
26386
|
+
status = _ref5$status === void 0 ? 'ready' : _ref5$status,
|
|
26387
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4);
|
|
26346
26388
|
var _useState3 = useState(1),
|
|
26347
26389
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
26348
26390
|
frame = _useState4[0],
|
|
@@ -26383,8 +26425,7 @@ var FaceCaptureGuideOverlay = /*#__PURE__*/memo(function FaceCaptureGuideOverlay
|
|
|
26383
26425
|
guideStyle = _ref.guideStyle,
|
|
26384
26426
|
_ref$borderWidth = _ref.borderWidth,
|
|
26385
26427
|
borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
|
|
26386
|
-
|
|
26387
|
-
borderColor = _ref$borderColor === void 0 ? 'white' : _ref$borderColor,
|
|
26428
|
+
borderColor = _ref.borderColor,
|
|
26388
26429
|
_ref$borderOpacity = _ref.borderOpacity,
|
|
26389
26430
|
borderOpacity = _ref$borderOpacity === void 0 ? 0.8 : _ref$borderOpacity;
|
|
26390
26431
|
return jsx(FaceCaptureGuideContainer, {
|
|
@@ -27285,7 +27326,7 @@ var ContinueButton = styled(LoaderButton)(_templateObject7$8 || (_templateObject
|
|
|
27285
27326
|
return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.continueBtnDisabledBorder) != null ? _props$theme$selfieCa5 : 'none';
|
|
27286
27327
|
});
|
|
27287
27328
|
|
|
27288
|
-
var _excluded$
|
|
27329
|
+
var _excluded$c = ["mode"];
|
|
27289
27330
|
var components = {
|
|
27290
27331
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
27291
27332
|
legacy: SelfieCaptureLoadingOverlayLegacy,
|
|
@@ -27295,7 +27336,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
|
|
|
27295
27336
|
var _components$mode;
|
|
27296
27337
|
var _ref$mode = _ref.mode,
|
|
27297
27338
|
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
27298
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27339
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
27299
27340
|
var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
|
|
27300
27341
|
return jsx(Component, _extends({}, props));
|
|
27301
27342
|
};
|
|
@@ -28667,9 +28708,9 @@ function FaceLivenessViewContent(_ref) {
|
|
|
28667
28708
|
});
|
|
28668
28709
|
}
|
|
28669
28710
|
|
|
28670
|
-
function _createForOfIteratorHelperLoose$
|
|
28671
|
-
function _unsupportedIterableToArray$
|
|
28672
|
-
function _arrayLikeToArray$
|
|
28711
|
+
function _createForOfIteratorHelperLoose$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
28712
|
+
function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
|
|
28713
|
+
function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28673
28714
|
/**
|
|
28674
28715
|
* Signature validity estimate (AMEXDESK-676).
|
|
28675
28716
|
*
|
|
@@ -28772,7 +28813,7 @@ function countSignaturePoints(strokes) {
|
|
|
28772
28813
|
*/
|
|
28773
28814
|
function measurePenDownMs(strokes) {
|
|
28774
28815
|
var total = 0;
|
|
28775
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
28816
|
+
for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
|
|
28776
28817
|
var stroke = _step.value;
|
|
28777
28818
|
if (stroke.length < 2) continue;
|
|
28778
28819
|
total += stroke[stroke.length - 1].time - stroke[0].time;
|
|
@@ -28791,9 +28832,9 @@ function boundingBox(strokes) {
|
|
|
28791
28832
|
var minY = Infinity;
|
|
28792
28833
|
var maxX = -Infinity;
|
|
28793
28834
|
var maxY = -Infinity;
|
|
28794
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
28835
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
|
|
28795
28836
|
var stroke = _step2.value;
|
|
28796
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
28837
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
|
|
28797
28838
|
var p = _step3.value;
|
|
28798
28839
|
if (p.x < minX) minX = p.x;
|
|
28799
28840
|
if (p.y < minY) minY = p.y;
|
|
@@ -28812,7 +28853,7 @@ function boundingBox(strokes) {
|
|
|
28812
28853
|
/** Sum of Euclidean distances between consecutive points within each stroke. */
|
|
28813
28854
|
function totalPathLength(strokes) {
|
|
28814
28855
|
var length = 0;
|
|
28815
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
28856
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
|
|
28816
28857
|
var stroke = _step4.value;
|
|
28817
28858
|
for (var i = 1; i < stroke.length; i++) {
|
|
28818
28859
|
var dx = stroke[i].x - stroke[i - 1].x;
|
|
@@ -28868,7 +28909,7 @@ function resampleStroke(stroke, step) {
|
|
|
28868
28909
|
*/
|
|
28869
28910
|
function countDirectionChanges(strokes, step) {
|
|
28870
28911
|
var totalTurning = 0;
|
|
28871
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
28912
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
|
|
28872
28913
|
var stroke = _step5.value;
|
|
28873
28914
|
var pts = resampleStroke(stroke, step);
|
|
28874
28915
|
var prevAngle = null;
|
|
@@ -28901,9 +28942,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
|
|
|
28901
28942
|
var height = useCanvas ? canvasHeight : box.maxY - box.minY;
|
|
28902
28943
|
if (width <= 0 || height <= 0) return 0;
|
|
28903
28944
|
var occupied = new Set();
|
|
28904
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
28945
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
|
|
28905
28946
|
var stroke = _step6.value;
|
|
28906
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
28947
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
|
|
28907
28948
|
var p = _step7.value;
|
|
28908
28949
|
var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
|
|
28909
28950
|
var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
|
|
@@ -28994,9 +29035,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
|
|
|
28994
29035
|
};
|
|
28995
29036
|
}
|
|
28996
29037
|
|
|
28997
|
-
function _createForOfIteratorHelperLoose$
|
|
28998
|
-
function _unsupportedIterableToArray$
|
|
28999
|
-
function _arrayLikeToArray$
|
|
29038
|
+
function _createForOfIteratorHelperLoose$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29039
|
+
function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
|
|
29040
|
+
function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29000
29041
|
/**
|
|
29001
29042
|
* Off-screen, post-capture validation that proves a real frame renders at the
|
|
29002
29043
|
* signature's trim start offset. This is the authoritative detector for the
|
|
@@ -29445,7 +29486,7 @@ function _seekProbes() {
|
|
|
29445
29486
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29446
29487
|
case 0:
|
|
29447
29488
|
probes = [];
|
|
29448
|
-
_iterator = _createForOfIteratorHelperLoose$
|
|
29489
|
+
_iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
|
|
29449
29490
|
case 1:
|
|
29450
29491
|
if ((_step = _iterator()).done) {
|
|
29451
29492
|
_context4.next = 4;
|
|
@@ -29515,7 +29556,7 @@ function _playbackProbes() {
|
|
|
29515
29556
|
};
|
|
29516
29557
|
var grab = function grab(mediaSec) {
|
|
29517
29558
|
if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
|
|
29518
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
29559
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
|
|
29519
29560
|
var t = _step2.value;
|
|
29520
29561
|
if (t.result != null) continue;
|
|
29521
29562
|
if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
|
|
@@ -29568,7 +29609,7 @@ function _playbackProbes() {
|
|
|
29568
29609
|
video.play()["catch"](_finish);
|
|
29569
29610
|
});
|
|
29570
29611
|
case 2:
|
|
29571
|
-
_iterator3 = _createForOfIteratorHelperLoose$
|
|
29612
|
+
_iterator3 = _createForOfIteratorHelperLoose$g(targets);
|
|
29572
29613
|
case 3:
|
|
29573
29614
|
if ((_step3 = _iterator3()).done) {
|
|
29574
29615
|
_context5.next = 6;
|
|
@@ -31280,9 +31321,9 @@ function reduceSignatureCapture(state, event) {
|
|
|
31280
31321
|
}
|
|
31281
31322
|
}
|
|
31282
31323
|
|
|
31283
|
-
function _createForOfIteratorHelperLoose$
|
|
31284
|
-
function _unsupportedIterableToArray$
|
|
31285
|
-
function _arrayLikeToArray$
|
|
31324
|
+
function _createForOfIteratorHelperLoose$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31325
|
+
function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
|
|
31326
|
+
function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
31286
31327
|
/**
|
|
31287
31328
|
* Marks a microphone acquisition failure so `captureError` can type it.
|
|
31288
31329
|
*
|
|
@@ -31416,7 +31457,7 @@ function createSignatureCaptureController(config) {
|
|
|
31416
31457
|
}
|
|
31417
31458
|
function publish() {
|
|
31418
31459
|
snapshot = store.getState();
|
|
31419
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
31460
|
+
for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
|
|
31420
31461
|
var listener = _step.value;
|
|
31421
31462
|
try {
|
|
31422
31463
|
listener(snapshot);
|
|
@@ -32247,7 +32288,7 @@ function useSignatureCapture(controller) {
|
|
|
32247
32288
|
}
|
|
32248
32289
|
|
|
32249
32290
|
var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
|
|
32250
|
-
var _excluded$
|
|
32291
|
+
var _excluded$b = ["device", "frameDecode"];
|
|
32251
32292
|
var ASSUMED_TRIM_PADDING = {
|
|
32252
32293
|
startMs: TRIM_PADDING_START_MS,
|
|
32253
32294
|
endMs: TRIM_PADDING_END_MS
|
|
@@ -32479,7 +32520,7 @@ function trippedSignals(warning) {
|
|
|
32479
32520
|
var _warning$signals = warning.signals,
|
|
32480
32521
|
device = _warning$signals.device,
|
|
32481
32522
|
frameDecode = _warning$signals.frameDecode,
|
|
32482
|
-
top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$
|
|
32523
|
+
top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
|
|
32483
32524
|
var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
|
|
32484
32525
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
32485
32526
|
signal = _ref3[1];
|
|
@@ -32821,6 +32862,8 @@ function SignatureCaptureViewContent(_ref) {
|
|
|
32821
32862
|
verbiage = _ref.verbiage,
|
|
32822
32863
|
_ref$classNames = _ref.classNames,
|
|
32823
32864
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
32865
|
+
_ref$colors = _ref.colors,
|
|
32866
|
+
colors = _ref$colors === void 0 ? {} : _ref$colors,
|
|
32824
32867
|
_ref$assets = _ref.assets,
|
|
32825
32868
|
assets = _ref$assets === void 0 ? {} : _ref$assets,
|
|
32826
32869
|
providedVideoRef = _ref.videoRef,
|
|
@@ -33194,6 +33237,8 @@ function SignatureCaptureViewContent(_ref) {
|
|
|
33194
33237
|
children: [text.headingText && (!legacyVideoLayout || sessionReady) ? jsx(SignatureHeading, {
|
|
33195
33238
|
as: "h1",
|
|
33196
33239
|
className: classNames.heading,
|
|
33240
|
+
"$background": colors.headingBackgroundColor,
|
|
33241
|
+
"$textColor": colors.headingTextColor,
|
|
33197
33242
|
"$legacyVideoLayout": legacyVideoLayout,
|
|
33198
33243
|
children: text.headingText
|
|
33199
33244
|
}) : null, !legacyVideoLayout ? jsx(Guidance, {
|
|
@@ -33253,6 +33298,7 @@ function SignatureCaptureViewContent(_ref) {
|
|
|
33253
33298
|
variant: "warning",
|
|
33254
33299
|
finished: true,
|
|
33255
33300
|
className: classNames.retryBtn,
|
|
33301
|
+
colors: colors.retryBtn,
|
|
33256
33302
|
onClick: function onClick() {
|
|
33257
33303
|
var _padRef$current3;
|
|
33258
33304
|
(_padRef$current3 = padRef.current) == null || _padRef$current3.clear();
|
|
@@ -33263,6 +33309,7 @@ function SignatureCaptureViewContent(_ref) {
|
|
|
33263
33309
|
variant: "positive",
|
|
33264
33310
|
finished: true,
|
|
33265
33311
|
className: classNames.doneBtn,
|
|
33312
|
+
colors: colors.doneBtn,
|
|
33266
33313
|
onClick: handleDone,
|
|
33267
33314
|
children: text.doneBtnText
|
|
33268
33315
|
})]
|
|
@@ -33272,6 +33319,7 @@ function SignatureCaptureViewContent(_ref) {
|
|
|
33272
33319
|
return handledByState(controller.actions.retry());
|
|
33273
33320
|
},
|
|
33274
33321
|
classNames: classNames.microphoneAccessDenied,
|
|
33322
|
+
colors: colors.microphoneAccessDenied,
|
|
33275
33323
|
verbiage: verbiage == null ? void 0 : verbiage.microphoneAccessDenied
|
|
33276
33324
|
}) : null, state.phase === "error" && !micDenied && recordingInterrupted && !restarting && RecordingInterruptedScreen ? jsx(RecordingInterruptedScreen, {
|
|
33277
33325
|
onStartOver: handleStartOver,
|
|
@@ -33531,9 +33579,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
|
|
|
33531
33579
|
};
|
|
33532
33580
|
}
|
|
33533
33581
|
|
|
33534
|
-
function _createForOfIteratorHelperLoose$
|
|
33535
|
-
function _unsupportedIterableToArray$
|
|
33536
|
-
function _arrayLikeToArray$
|
|
33582
|
+
function _createForOfIteratorHelperLoose$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33583
|
+
function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
|
|
33584
|
+
function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
33537
33585
|
var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
|
|
33538
33586
|
var RECENT_DETECTION_WINDOW_MS = 2000;
|
|
33539
33587
|
var defaultVideoIdCaptureThresholds = {
|
|
@@ -33677,7 +33725,7 @@ function createVideoIdCaptureController(config) {
|
|
|
33677
33725
|
var backImage = null;
|
|
33678
33726
|
function update(patch) {
|
|
33679
33727
|
state = _extends({}, state, patch);
|
|
33680
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
33728
|
+
for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
|
|
33681
33729
|
var listener = _step.value;
|
|
33682
33730
|
try {
|
|
33683
33731
|
listener(state);
|
|
@@ -35119,7 +35167,7 @@ function VideoIdCaptureView(props) {
|
|
|
35119
35167
|
});
|
|
35120
35168
|
}
|
|
35121
35169
|
function VideoIdCaptureViewContent(_ref) {
|
|
35122
|
-
var _state$error, _state$artifact2, _state$artifact4, _state$artifact5, _state$error2, _state$error3;
|
|
35170
|
+
var _state$error, _state$artifact2, _state$artifact4, _state$artifact5, _state$error2, _state$error3, _colors$loadingOverla;
|
|
35123
35171
|
var controller = _ref.controller,
|
|
35124
35172
|
sessionReadyProp = _ref.sessionReady,
|
|
35125
35173
|
_ref$autoStart = _ref.autoStart,
|
|
@@ -35142,6 +35190,8 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35142
35190
|
verbiage = _ref.verbiage,
|
|
35143
35191
|
_ref$classNames = _ref.classNames,
|
|
35144
35192
|
classNames = _ref$classNames === void 0 ? {} : _ref$classNames,
|
|
35193
|
+
_ref$colors = _ref.colors,
|
|
35194
|
+
colors = _ref$colors === void 0 ? {} : _ref$colors,
|
|
35145
35195
|
_ref$guideImages = _ref.guideImages,
|
|
35146
35196
|
guideImages = _ref$guideImages === void 0 ? defaultIdCaptureGuideImages : _ref$guideImages,
|
|
35147
35197
|
loadingOverlayAssets = _ref.loadingOverlayAssets,
|
|
@@ -35320,6 +35370,7 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35320
35370
|
finished: true,
|
|
35321
35371
|
disabled: !state.reading.canFinish,
|
|
35322
35372
|
className: classNames.readTextDoneBtn,
|
|
35373
|
+
colors: colors.readTextDoneBtn,
|
|
35323
35374
|
onClick: function onClick() {
|
|
35324
35375
|
onReadingFinished == null || onReadingFinished();
|
|
35325
35376
|
void controller.actions.finishReading();
|
|
@@ -35339,6 +35390,7 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35339
35390
|
transitionFromPreviousStage: transitionFromFaceCapture,
|
|
35340
35391
|
assets: loadingOverlayAssets,
|
|
35341
35392
|
classNames: classNames.loadingOverlay,
|
|
35393
|
+
colors: colors.loadingOverlay,
|
|
35342
35394
|
verbiage: loadingOverlayVerbiage,
|
|
35343
35395
|
onDismissed: function onDismissed() {
|
|
35344
35396
|
return setOverlayDismissed(true);
|
|
@@ -35374,6 +35426,7 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35374
35426
|
finished: true,
|
|
35375
35427
|
variant: "warning",
|
|
35376
35428
|
className: classNames.retryBtn,
|
|
35429
|
+
colors: colors.retryBtn,
|
|
35377
35430
|
onClick: function onClick() {
|
|
35378
35431
|
return void controller.actions.retry();
|
|
35379
35432
|
},
|
|
@@ -35382,6 +35435,7 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35382
35435
|
finished: true,
|
|
35383
35436
|
variant: "positive",
|
|
35384
35437
|
className: classNames.doneBtn,
|
|
35438
|
+
colors: colors.doneBtn,
|
|
35385
35439
|
onClick: controller.actions.done,
|
|
35386
35440
|
children: text.doneBtnText
|
|
35387
35441
|
})]
|
|
@@ -35391,6 +35445,7 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35391
35445
|
return void controller.actions.retry();
|
|
35392
35446
|
},
|
|
35393
35447
|
classNames: classNames.microphoneAccessDenied,
|
|
35448
|
+
colors: colors.microphoneAccessDenied,
|
|
35394
35449
|
verbiage: verbiage == null ? void 0 : verbiage.microphoneAccessDenied
|
|
35395
35450
|
}) : null, state.phase === 'error' && !micDenied ? jsxs(ErrorPanel, {
|
|
35396
35451
|
role: "alert",
|
|
@@ -35401,6 +35456,10 @@ function VideoIdCaptureViewContent(_ref) {
|
|
|
35401
35456
|
children: (_state$error2 = state.error) == null ? void 0 : _state$error2.message
|
|
35402
35457
|
}), (_state$error3 = state.error) != null && _state$error3.recoverable ? jsx(LoaderButton, {
|
|
35403
35458
|
finished: true,
|
|
35459
|
+
// This panel is the video-ID stage's camera-denied screen too;
|
|
35460
|
+
// sdk2 coloured that screen's retry from the loading overlay bag.
|
|
35461
|
+
// An unavailable camera was the same 2.x screen (see ErrorScreen).
|
|
35462
|
+
colors: state.error.code === 'CAMERA_PERMISSION_DENIED' || state.error.code === 'CAMERA_UNAVAILABLE' ? (_colors$loadingOverla = colors.loadingOverlay) == null || (_colors$loadingOverla = _colors$loadingOverla.cameraAccessDenied) == null ? void 0 : _colors$loadingOverla.retryBtn : undefined,
|
|
35404
35463
|
onClick: function onClick() {
|
|
35405
35464
|
return void controller.actions.retry();
|
|
35406
35465
|
},
|
|
@@ -38507,9 +38566,9 @@ var highlightJson = function highlightJson(str) {
|
|
|
38507
38566
|
};
|
|
38508
38567
|
|
|
38509
38568
|
var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
38510
|
-
function _createForOfIteratorHelperLoose$
|
|
38511
|
-
function _unsupportedIterableToArray$
|
|
38512
|
-
function _arrayLikeToArray$
|
|
38569
|
+
function _createForOfIteratorHelperLoose$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38570
|
+
function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
|
|
38571
|
+
function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
38513
38572
|
var SUBMISSION_SUCCESS_FALLBACKS = {
|
|
38514
38573
|
completeText: 'Submission complete',
|
|
38515
38574
|
responseReceivedText: 'Response received',
|
|
@@ -38585,7 +38644,7 @@ var quickFactConfig = [{
|
|
|
38585
38644
|
*/
|
|
38586
38645
|
var readDocumentId = function readDocumentId(request, path) {
|
|
38587
38646
|
var node = request;
|
|
38588
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
38647
|
+
for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
|
|
38589
38648
|
var segment = _step.value;
|
|
38590
38649
|
if (!node || typeof node !== 'object') return null;
|
|
38591
38650
|
node = node[segment];
|
|
@@ -38696,10 +38755,10 @@ var ASSET_CONFIG = [{
|
|
|
38696
38755
|
*/
|
|
38697
38756
|
var TRUNCATABLE_IMAGE_PATHS = [['customerData', 'idData', 'idImageFront'], ['customerData', 'idData', 'idImageBack'], ['customerData', 'idData', 'idBarcodeImage'], ['customerData', 'idData', 'idFrontIrImage'], ['customerData', 'idData', 'idBackIrImage'], ['customerData', 'idData', 'idFrontUvImage'], ['customerData', 'idData', 'idBackUvImage'], ['customerData', 'idData', 'videoIdImageFront'], ['customerData', 'idData', 'videoIdImageBack'], ['customerData', 'biometricData', 'selfie']];
|
|
38698
38757
|
function truncateImagePaths(body) {
|
|
38699
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
38758
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
|
|
38700
38759
|
var path = _step2.value;
|
|
38701
38760
|
var node = body;
|
|
38702
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
38761
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
|
|
38703
38762
|
var segment = _step3.value;
|
|
38704
38763
|
if (!isRecord(node)) break;
|
|
38705
38764
|
node = node[segment];
|
|
@@ -39098,6 +39157,847 @@ var JsonBlockHeader = styled.div(_templateObject22 || (_templateObject22 = _tagg
|
|
|
39098
39157
|
var JsonBlockActions = styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
|
|
39099
39158
|
var ResponsePre = styled.pre(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n width: 100%;\n overflow: auto;\n padding: 18px;\n border-radius: 8px;\n background: #17211d;\n color: #dff9e9;\n font-size: 0.8rem;\n line-height: 1.55;\n text-align: left;\n"])));
|
|
39100
39159
|
|
|
39160
|
+
var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
|
|
39161
|
+
function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39162
|
+
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
39163
|
+
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
39164
|
+
function F(e, n) {
|
|
39165
|
+
var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
|
|
39166
|
+
return s - Math.floor(s);
|
|
39167
|
+
}
|
|
39168
|
+
function st(e, n) {
|
|
39169
|
+
var s = Math.PI * (3 - Math.sqrt(5)),
|
|
39170
|
+
r = 1 - 2 * (e + 0.5) / n,
|
|
39171
|
+
t = Math.sqrt(1 - r * r),
|
|
39172
|
+
o = e * s;
|
|
39173
|
+
return [t * Math.cos(o), r, t * Math.sin(o)];
|
|
39174
|
+
}
|
|
39175
|
+
function ot(e, n) {
|
|
39176
|
+
return Math.atan2(Math.sin(e - n), Math.cos(e - n));
|
|
39177
|
+
}
|
|
39178
|
+
function q(e, n, s, r, t) {
|
|
39179
|
+
var o = Math.sin(n),
|
|
39180
|
+
c = Math.cos(n),
|
|
39181
|
+
a = Math.sin(e),
|
|
39182
|
+
i = Math.cos(e);
|
|
39183
|
+
return function (m, g, M) {
|
|
39184
|
+
var u = m * i + M * a,
|
|
39185
|
+
h = -m * a + M * i,
|
|
39186
|
+
b = g * c - h * o,
|
|
39187
|
+
x = g * o + h * c;
|
|
39188
|
+
return [s + u * t, r - b * t, x];
|
|
39189
|
+
};
|
|
39190
|
+
}
|
|
39191
|
+
function _(e, n, s, r) {
|
|
39192
|
+
if (r === void 0) {
|
|
39193
|
+
r = 0.3;
|
|
39194
|
+
}
|
|
39195
|
+
n.sort(function (t, o) {
|
|
39196
|
+
return t.z - o.z;
|
|
39197
|
+
});
|
|
39198
|
+
for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
|
|
39199
|
+
var _t$a;
|
|
39200
|
+
var t = _step.value;
|
|
39201
|
+
var o = (_t$a = t.a) != null ? _t$a : 1;
|
|
39202
|
+
if (o < 0.02) continue;
|
|
39203
|
+
var c = Math.min(1, Math.max(0, t.white)),
|
|
39204
|
+
a = Math.round((s ? 1 - c : c) * 255);
|
|
39205
|
+
e.fillStyle = "rgba(" + a + "," + a + "," + a + "," + o + ")", e.beginPath(), e.arc(t.x, t.y, Math.max(r, t.r), 0, Math.PI * 2), e.fill();
|
|
39206
|
+
}
|
|
39207
|
+
}
|
|
39208
|
+
function $(e, n) {
|
|
39209
|
+
return Math.pow(e / 300, n);
|
|
39210
|
+
}
|
|
39211
|
+
function et(e, n, s, r) {
|
|
39212
|
+
var t = 2 * n * s + r,
|
|
39213
|
+
o = e % t,
|
|
39214
|
+
c = new Array(n).fill(0);
|
|
39215
|
+
var a = -1;
|
|
39216
|
+
if (o < 2 * n * s) {
|
|
39217
|
+
var i = Math.floor(o / s),
|
|
39218
|
+
m = (o - i * s) / s,
|
|
39219
|
+
M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
|
|
39220
|
+
if (i < n) {
|
|
39221
|
+
for (var u = 0; u < i; u++) c[u] = 1;
|
|
39222
|
+
c[i] = M, a = i;
|
|
39223
|
+
} else {
|
|
39224
|
+
var _u = 2 * n - 1 - i;
|
|
39225
|
+
for (var h = 0; h < _u; h++) c[h] = 1;
|
|
39226
|
+
c[_u] = 1 - M, a = _u;
|
|
39227
|
+
}
|
|
39228
|
+
}
|
|
39229
|
+
return {
|
|
39230
|
+
amount: c,
|
|
39231
|
+
active: a
|
|
39232
|
+
};
|
|
39233
|
+
}
|
|
39234
|
+
function ct(e, n, s) {
|
|
39235
|
+
var _e = _slicedToArray(e, 3),
|
|
39236
|
+
r = _e[0],
|
|
39237
|
+
t = _e[1],
|
|
39238
|
+
o = _e[2],
|
|
39239
|
+
c = false;
|
|
39240
|
+
for (var a = 0; a < n.length; a++) {
|
|
39241
|
+
if (s.amount[a] <= 0) continue;
|
|
39242
|
+
var i = n[a],
|
|
39243
|
+
m = i.axis === 0 ? r : i.axis === 1 ? t : o;
|
|
39244
|
+
if (m < i.lo || m >= i.hi) continue;
|
|
39245
|
+
a === s.active && (c = true);
|
|
39246
|
+
var g = i.ang * s.amount[a],
|
|
39247
|
+
M = Math.cos(g),
|
|
39248
|
+
u = Math.sin(g);
|
|
39249
|
+
if (i.axis === 0) {
|
|
39250
|
+
var h = t * M - o * u;
|
|
39251
|
+
o = t * u + o * M, t = h;
|
|
39252
|
+
} else if (i.axis === 1) {
|
|
39253
|
+
var _h = r * M + o * u;
|
|
39254
|
+
o = -r * u + o * M, r = _h;
|
|
39255
|
+
} else {
|
|
39256
|
+
var _h2 = r * M - t * u;
|
|
39257
|
+
t = r * u + t * M, r = _h2;
|
|
39258
|
+
}
|
|
39259
|
+
}
|
|
39260
|
+
return [r, t, o, c];
|
|
39261
|
+
}
|
|
39262
|
+
function at(e) {
|
|
39263
|
+
var n = [];
|
|
39264
|
+
for (var s = 0; s < e; s++) {
|
|
39265
|
+
var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
|
|
39266
|
+
t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
|
|
39267
|
+
o = F(s, 7.7) < 0.5 ? 1 : -1;
|
|
39268
|
+
n.push({
|
|
39269
|
+
axis: r,
|
|
39270
|
+
lo: t,
|
|
39271
|
+
hi: t + 0.5,
|
|
39272
|
+
ang: o * Math.PI / 2
|
|
39273
|
+
});
|
|
39274
|
+
}
|
|
39275
|
+
return n;
|
|
39276
|
+
}
|
|
39277
|
+
var rt = function rt(e, n, s, r, t) {
|
|
39278
|
+
var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
|
|
39279
|
+
var c = n / 2,
|
|
39280
|
+
a = n / 2,
|
|
39281
|
+
i = n / 2 * 0.82,
|
|
39282
|
+
m = 0.4 + 0.06 * Math.sin(s * 0.35),
|
|
39283
|
+
g = q(s * 0.5, m, c, a, i),
|
|
39284
|
+
M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
|
|
39285
|
+
u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
|
|
39286
|
+
h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
|
|
39287
|
+
b = [],
|
|
39288
|
+
x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
|
|
39289
|
+
I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
|
|
39290
|
+
for (var P = 0; P <= x; P++) {
|
|
39291
|
+
var y = -Math.PI / 2 + P / x * Math.PI,
|
|
39292
|
+
D = Math.cos(y),
|
|
39293
|
+
w = Math.sin(y),
|
|
39294
|
+
k = Math.max(1, Math.round(Math.abs(D) * I));
|
|
39295
|
+
for (var v = 0; v < k; v++) {
|
|
39296
|
+
var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
|
|
39297
|
+
var R = v / k * 2 * Math.PI,
|
|
39298
|
+
_g = g(D * Math.cos(R), w, D * Math.sin(R)),
|
|
39299
|
+
_g2 = _slicedToArray(_g, 3),
|
|
39300
|
+
p = _g2[0],
|
|
39301
|
+
d = _g2[1],
|
|
39302
|
+
l = _g2[2],
|
|
39303
|
+
f = (l + 1) / 2,
|
|
39304
|
+
S = ot(R + s * 0.5, M),
|
|
39305
|
+
L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
|
|
39306
|
+
b.push({
|
|
39307
|
+
x: p,
|
|
39308
|
+
y: d,
|
|
39309
|
+
z: l,
|
|
39310
|
+
r: (((_t$rBase = t.rBase) != null ? _t$rBase : 0.6) + ((_t$rDepth = t.rDepth) != null ? _t$rDepth : 1.7) * f + ((_t$rBoost = t.rBoost) != null ? _t$rBoost : 1) * L) * u,
|
|
39311
|
+
white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
|
|
39312
|
+
// dimBase < 1 fades un-scanned dots so the meridian reads clearly
|
|
39313
|
+
a: h + (1 - h) * Math.min(1, L)
|
|
39314
|
+
});
|
|
39315
|
+
}
|
|
39316
|
+
}
|
|
39317
|
+
_(e, b, r, t.rMin);
|
|
39318
|
+
},
|
|
39319
|
+
it = function it(e, n, s, r, t) {
|
|
39320
|
+
var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
|
|
39321
|
+
var o = n / 2,
|
|
39322
|
+
c = n / 2,
|
|
39323
|
+
a = n / 2 * 0.82,
|
|
39324
|
+
i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
|
|
39325
|
+
m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
|
|
39326
|
+
g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
|
|
39327
|
+
M = at(g),
|
|
39328
|
+
u = et(s, g, 0.42, 1.2),
|
|
39329
|
+
h = [],
|
|
39330
|
+
b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
|
|
39331
|
+
x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
|
|
39332
|
+
for (var I = 0; I <= b; I++) {
|
|
39333
|
+
var P = -Math.PI / 2 + I / b * Math.PI,
|
|
39334
|
+
y = Math.cos(P),
|
|
39335
|
+
D = Math.sin(P),
|
|
39336
|
+
w = Math.max(1, Math.round(Math.abs(y) * x));
|
|
39337
|
+
for (var k = 0; k < w; k++) {
|
|
39338
|
+
var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
|
|
39339
|
+
var v = k / w * 2 * Math.PI,
|
|
39340
|
+
_ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
|
|
39341
|
+
_ct2 = _slicedToArray(_ct, 4),
|
|
39342
|
+
R = _ct2[0],
|
|
39343
|
+
p = _ct2[1],
|
|
39344
|
+
d = _ct2[2],
|
|
39345
|
+
l = _ct2[3],
|
|
39346
|
+
_i = i(R, p, d),
|
|
39347
|
+
_i2 = _slicedToArray(_i, 3),
|
|
39348
|
+
f = _i2[0],
|
|
39349
|
+
S = _i2[1],
|
|
39350
|
+
L = _i2[2],
|
|
39351
|
+
A = (L + 1) / 2;
|
|
39352
|
+
h.push({
|
|
39353
|
+
x: f,
|
|
39354
|
+
y: S,
|
|
39355
|
+
z: L,
|
|
39356
|
+
r: (((_t$rBase2 = t.rBase) != null ? _t$rBase2 : 0.6) + ((_t$rDepth2 = t.rDepth) != null ? _t$rDepth2 : 1.7) * A + (l ? (_t$rActive = t.rActive) != null ? _t$rActive : 0.3 : 0)) * m,
|
|
39357
|
+
white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
|
|
39358
|
+
});
|
|
39359
|
+
}
|
|
39360
|
+
}
|
|
39361
|
+
_(e, h, r, t.rMin);
|
|
39362
|
+
},
|
|
39363
|
+
ht = function ht(e, n, s, r, t) {
|
|
39364
|
+
var _t$rsPow3, _t$rings, _t$lonDensity3;
|
|
39365
|
+
var o = n / 2,
|
|
39366
|
+
c = n / 2,
|
|
39367
|
+
a = n / 2 * 0.874,
|
|
39368
|
+
i = q(s * 0.18, 0.38, o, c, 1),
|
|
39369
|
+
m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
|
|
39370
|
+
g = [],
|
|
39371
|
+
M = (_t$rings = t.rings) != null ? _t$rings : 15,
|
|
39372
|
+
u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
|
|
39373
|
+
for (var h = 0; h <= M; h++) {
|
|
39374
|
+
var b = -Math.PI / 2 + h / M * Math.PI,
|
|
39375
|
+
x = Math.cos(b),
|
|
39376
|
+
I = Math.sin(b),
|
|
39377
|
+
P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
|
|
39378
|
+
y = a * (0.88 + 0.105 * P),
|
|
39379
|
+
D = Math.max(1, Math.round(Math.abs(x) * u));
|
|
39380
|
+
for (var w = 0; w < D; w++) {
|
|
39381
|
+
var _t$rBase3, _t$rDepth3;
|
|
39382
|
+
var k = w / D * 2 * Math.PI,
|
|
39383
|
+
_i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
|
|
39384
|
+
_i4 = _slicedToArray(_i3, 3),
|
|
39385
|
+
v = _i4[0],
|
|
39386
|
+
R = _i4[1],
|
|
39387
|
+
p = _i4[2],
|
|
39388
|
+
d = (p / a + 1) / 2,
|
|
39389
|
+
l = Math.max(0, P);
|
|
39390
|
+
g.push({
|
|
39391
|
+
x: v,
|
|
39392
|
+
y: R,
|
|
39393
|
+
z: p,
|
|
39394
|
+
r: (((_t$rBase3 = t.rBase) != null ? _t$rBase3 : 0.6) + ((_t$rDepth3 = t.rDepth) != null ? _t$rDepth3 : 1.7) * d) * (1 + 0.4 * l) * m,
|
|
39395
|
+
white: 0.66 - 0.56 * d - 0.1 * l
|
|
39396
|
+
});
|
|
39397
|
+
}
|
|
39398
|
+
}
|
|
39399
|
+
_(e, g, r, t.rMin);
|
|
39400
|
+
};
|
|
39401
|
+
function lt(e) {
|
|
39402
|
+
return e * e * (3 - 2 * e);
|
|
39403
|
+
}
|
|
39404
|
+
function Q(e) {
|
|
39405
|
+
var n = e.length,
|
|
39406
|
+
s = [];
|
|
39407
|
+
var r = 0;
|
|
39408
|
+
for (var t = 0; t < n; t++) {
|
|
39409
|
+
var o = e[t],
|
|
39410
|
+
c = e[(t + 1) % n],
|
|
39411
|
+
a = Math.hypot(c[0] - o[0], c[1] - o[1]);
|
|
39412
|
+
s.push(a), r += a;
|
|
39413
|
+
}
|
|
39414
|
+
return function (t) {
|
|
39415
|
+
var o = t * r,
|
|
39416
|
+
c = 0;
|
|
39417
|
+
for (; o > s[c] && c < n - 1;) o -= s[c], c++;
|
|
39418
|
+
var a = e[c],
|
|
39419
|
+
i = e[(c + 1) % n],
|
|
39420
|
+
m = s[c] ? Math.min(1, o / s[c]) : 0;
|
|
39421
|
+
return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
|
|
39422
|
+
};
|
|
39423
|
+
}
|
|
39424
|
+
var ut = function ut(e) {
|
|
39425
|
+
var n = -Math.PI / 2 + e * 2 * Math.PI;
|
|
39426
|
+
return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
|
|
39427
|
+
},
|
|
39428
|
+
Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
|
|
39429
|
+
pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
|
|
39430
|
+
Y = [ut, Mt, pt];
|
|
39431
|
+
function dt(e) {
|
|
39432
|
+
return Math.max(6, Math.round(34 * e));
|
|
39433
|
+
}
|
|
39434
|
+
var U = 1.4,
|
|
39435
|
+
J = 0.9,
|
|
39436
|
+
K = U + J,
|
|
39437
|
+
ft = function ft(e, n, s, r, t) {
|
|
39438
|
+
var _t$spread, _t$iconD, _t$rDot;
|
|
39439
|
+
var o = Y.length,
|
|
39440
|
+
c = s % (K * o),
|
|
39441
|
+
a = Math.floor(c / K),
|
|
39442
|
+
i = c - a * K,
|
|
39443
|
+
m = i > U ? lt((i - U) / J) : 0,
|
|
39444
|
+
g = (_t$spread = t.spread) != null ? _t$spread : 1,
|
|
39445
|
+
M = Y[a],
|
|
39446
|
+
u = Y[(a + 1) % o],
|
|
39447
|
+
h = 160,
|
|
39448
|
+
b = [];
|
|
39449
|
+
for (var p = 0; p < h; p++) {
|
|
39450
|
+
var d = p / h,
|
|
39451
|
+
l = M(d),
|
|
39452
|
+
f = u(d);
|
|
39453
|
+
b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
|
|
39454
|
+
}
|
|
39455
|
+
var x = [];
|
|
39456
|
+
var I = 0;
|
|
39457
|
+
for (var _p = 0; _p < h; _p++) {
|
|
39458
|
+
var _d = b[_p],
|
|
39459
|
+
_l = b[(_p + 1) % h],
|
|
39460
|
+
_f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
|
|
39461
|
+
x.push(_f), I += _f;
|
|
39462
|
+
}
|
|
39463
|
+
var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
|
|
39464
|
+
y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
|
|
39465
|
+
D = 1 + 0.02 * Math.sin(i * 3.1),
|
|
39466
|
+
w = [],
|
|
39467
|
+
k = n / 2;
|
|
39468
|
+
var v = 0,
|
|
39469
|
+
R = 0;
|
|
39470
|
+
for (var _p2 = 0; _p2 < P; _p2++) {
|
|
39471
|
+
var _d2 = _p2 / P * I;
|
|
39472
|
+
for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
|
|
39473
|
+
var _l2 = b[v],
|
|
39474
|
+
_f2 = b[(v + 1) % h],
|
|
39475
|
+
S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
|
|
39476
|
+
L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
|
|
39477
|
+
A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
|
|
39478
|
+
w.push({
|
|
39479
|
+
x: k + L * n,
|
|
39480
|
+
y: k + A * n,
|
|
39481
|
+
z: 0,
|
|
39482
|
+
r: Math.max(0.35, y * n),
|
|
39483
|
+
white: 0.1
|
|
39484
|
+
});
|
|
39485
|
+
}
|
|
39486
|
+
_(e, w, r, t.rMin);
|
|
39487
|
+
},
|
|
39488
|
+
mt = function mt(e, n, s, r, t) {
|
|
39489
|
+
var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
|
|
39490
|
+
var o = n / 2,
|
|
39491
|
+
c = n / 2,
|
|
39492
|
+
a = n / 2 * 0.82,
|
|
39493
|
+
i = q(s * 0.12, 0.3, o, c, 1),
|
|
39494
|
+
m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
|
|
39495
|
+
g = [],
|
|
39496
|
+
M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
|
|
39497
|
+
u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
|
|
39498
|
+
h = (_t$particles = t.particles) != null ? _t$particles : 3;
|
|
39499
|
+
for (var b = 0; b < M; b++) {
|
|
39500
|
+
var x = F(b, 1.7),
|
|
39501
|
+
I = F(b, 5.2),
|
|
39502
|
+
P = F(b, 8.9),
|
|
39503
|
+
y = a * (0.45 + 0.52 * x),
|
|
39504
|
+
D = x * 2 * Math.PI,
|
|
39505
|
+
w = Math.acos(2 * I - 1),
|
|
39506
|
+
k = Math.sin(w) * Math.cos(D),
|
|
39507
|
+
v = Math.cos(w),
|
|
39508
|
+
R = Math.sin(w) * Math.sin(D);
|
|
39509
|
+
var p = -v,
|
|
39510
|
+
d = k;
|
|
39511
|
+
var l = 0,
|
|
39512
|
+
f = Math.max(1e-6, Math.sqrt(p * p + d * d));
|
|
39513
|
+
p /= f, d /= f;
|
|
39514
|
+
var S = v * l - R * d,
|
|
39515
|
+
L = R * p - k * l,
|
|
39516
|
+
A = k * d - v * p,
|
|
39517
|
+
B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
|
|
39518
|
+
for (var C = 0; C < u; C++) {
|
|
39519
|
+
var _t$ghostR, _t$ghostA;
|
|
39520
|
+
var E = C / u * 2 * Math.PI,
|
|
39521
|
+
_i5 = i((p * Math.cos(E) + S * Math.sin(E)) * y, (d * Math.cos(E) + L * Math.sin(E)) * y, (l * Math.cos(E) + A * Math.sin(E)) * y),
|
|
39522
|
+
_i6 = _slicedToArray(_i5, 3),
|
|
39523
|
+
T = _i6[0],
|
|
39524
|
+
z = _i6[1],
|
|
39525
|
+
N = _i6[2],
|
|
39526
|
+
O = (N / y + 1) / 2;
|
|
39527
|
+
g.push({
|
|
39528
|
+
x: T,
|
|
39529
|
+
y: z,
|
|
39530
|
+
z: N,
|
|
39531
|
+
r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
|
|
39532
|
+
white: 0.72,
|
|
39533
|
+
a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
|
|
39534
|
+
});
|
|
39535
|
+
}
|
|
39536
|
+
for (var _C = 0; _C < h; _C++) {
|
|
39537
|
+
var _t$partR, _t$partRDepth;
|
|
39538
|
+
var _E = s * B + _C / h * 2 * Math.PI + I * 6,
|
|
39539
|
+
_i7 = i((p * Math.cos(_E) + S * Math.sin(_E)) * y, (d * Math.cos(_E) + L * Math.sin(_E)) * y, (l * Math.cos(_E) + A * Math.sin(_E)) * y),
|
|
39540
|
+
_i8 = _slicedToArray(_i7, 3),
|
|
39541
|
+
_T = _i8[0],
|
|
39542
|
+
_z = _i8[1],
|
|
39543
|
+
_N = _i8[2],
|
|
39544
|
+
_O = (_N / y + 1) / 2;
|
|
39545
|
+
g.push({
|
|
39546
|
+
x: _T,
|
|
39547
|
+
y: _z,
|
|
39548
|
+
z: _N,
|
|
39549
|
+
r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
|
|
39550
|
+
white: 0.3 - 0.22 * _O
|
|
39551
|
+
});
|
|
39552
|
+
}
|
|
39553
|
+
}
|
|
39554
|
+
_(e, g, r, t.rMin);
|
|
39555
|
+
},
|
|
39556
|
+
gt = function gt(e, n, s, r, t) {
|
|
39557
|
+
var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
|
|
39558
|
+
var o = n / 2,
|
|
39559
|
+
c = n / 2,
|
|
39560
|
+
a = n / 2 * 0.78,
|
|
39561
|
+
i = (_t$spin = t.spin) != null ? _t$spin : 1,
|
|
39562
|
+
m = q(s * 0.1 * i, 0.3, o, c, 1),
|
|
39563
|
+
g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
|
|
39564
|
+
M = [],
|
|
39565
|
+
u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
|
|
39566
|
+
for (var f = 0; f < u; f++) {
|
|
39567
|
+
var S = st(f, u),
|
|
39568
|
+
_m = m(S[0] * a, S[1] * a, S[2] * a),
|
|
39569
|
+
_m2 = _slicedToArray(_m, 3),
|
|
39570
|
+
L = _m2[0],
|
|
39571
|
+
A = _m2[1],
|
|
39572
|
+
B = _m2[2],
|
|
39573
|
+
C = (B / a + 1) / 2;
|
|
39574
|
+
M.push({
|
|
39575
|
+
x: L,
|
|
39576
|
+
y: A,
|
|
39577
|
+
z: B,
|
|
39578
|
+
r: 0.8 * g,
|
|
39579
|
+
white: 0.78,
|
|
39580
|
+
a: 0.1 + 0.22 * C
|
|
39581
|
+
});
|
|
39582
|
+
}
|
|
39583
|
+
var h = s * 0.24 * i,
|
|
39584
|
+
b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
|
|
39585
|
+
x = Math.cos(h),
|
|
39586
|
+
I = 0,
|
|
39587
|
+
P = Math.sin(h),
|
|
39588
|
+
y = -P * Math.sin(b),
|
|
39589
|
+
D = Math.cos(b),
|
|
39590
|
+
w = x * Math.sin(b),
|
|
39591
|
+
k = I * w - P * D,
|
|
39592
|
+
v = P * y - x * w,
|
|
39593
|
+
R = x * D - I * y,
|
|
39594
|
+
p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
|
|
39595
|
+
d = (_t$segs = t.segs) != null ? _t$segs : 88,
|
|
39596
|
+
l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
|
|
39597
|
+
for (var _f3 = 0; _f3 < l; _f3++) {
|
|
39598
|
+
var _S = (_f3 - (l - 1) / 2) * 0.075,
|
|
39599
|
+
_L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
|
|
39600
|
+
for (var _A = 0; _A < d; _A++) {
|
|
39601
|
+
var _t$wobMul, _t$rBase4, _t$rDepth4;
|
|
39602
|
+
var _B = _A / d * 2 * Math.PI,
|
|
39603
|
+
_C2 = (0.16 * Math.sin(_B * 3 - s * 1.7 + _f3 * 0.22) + 0.07 * Math.sin(_B * 5 + s * 1.1)) * ((_t$wobMul = t.wobMul) != null ? _t$wobMul : 1),
|
|
39604
|
+
E = _S + _C2,
|
|
39605
|
+
T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
|
|
39606
|
+
z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
|
|
39607
|
+
N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
|
|
39608
|
+
O = Math.sqrt(T * T + z * z + N * N),
|
|
39609
|
+
_m3 = m(T / O * a, z / O * a, N / O * a),
|
|
39610
|
+
_m4 = _slicedToArray(_m3, 3),
|
|
39611
|
+
X = _m4[0],
|
|
39612
|
+
Z = _m4[1],
|
|
39613
|
+
W = _m4[2],
|
|
39614
|
+
j = (W / a + 1) / 2;
|
|
39615
|
+
M.push({
|
|
39616
|
+
x: X,
|
|
39617
|
+
y: Z,
|
|
39618
|
+
z: W,
|
|
39619
|
+
r: (((_t$rBase4 = t.rBase) != null ? _t$rBase4 : 1.1) + ((_t$rDepth4 = t.rDepth) != null ? _t$rDepth4 : 1.7) * j) * (1 - 0.25 * _L) * g,
|
|
39620
|
+
white: 0.52 - 0.44 * j + 0.18 * _L,
|
|
39621
|
+
a: 0.4 + 0.6 * j
|
|
39622
|
+
});
|
|
39623
|
+
}
|
|
39624
|
+
}
|
|
39625
|
+
_(e, M, r, t.rMin);
|
|
39626
|
+
},
|
|
39627
|
+
bt = {
|
|
39628
|
+
orbits: mt,
|
|
39629
|
+
globe: rt,
|
|
39630
|
+
rubik: it,
|
|
39631
|
+
wave: ht,
|
|
39632
|
+
ribbon: gt,
|
|
39633
|
+
morph: ft
|
|
39634
|
+
},
|
|
39635
|
+
yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
|
|
39636
|
+
xt = ["orbitN", "ghostN"],
|
|
39637
|
+
vt = ["iconD"],
|
|
39638
|
+
wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
|
|
39639
|
+
function kt(e, n) {
|
|
39640
|
+
var s = _extends({}, e),
|
|
39641
|
+
r = /* @__PURE__ */new Set(),
|
|
39642
|
+
t = Math.sqrt(n);
|
|
39643
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
|
|
39644
|
+
var _step2$value = _slicedToArray(_step2.value, 2),
|
|
39645
|
+
o = _step2$value[0],
|
|
39646
|
+
c = _step2$value[1];
|
|
39647
|
+
var a = s[o],
|
|
39648
|
+
i = s[c];
|
|
39649
|
+
a != null && i != null && !r.has(o) && !r.has(c) && (s[o] = Math.max(2, Math.round(a * t)), s[c] = Math.max(2, Math.round(i * t)), r.add(o), r.add(c));
|
|
39650
|
+
}
|
|
39651
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
|
|
39652
|
+
var _o = _step3.value;
|
|
39653
|
+
var _c = s[_o];
|
|
39654
|
+
_c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
|
|
39655
|
+
}
|
|
39656
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
|
|
39657
|
+
var _o2 = _step4.value;
|
|
39658
|
+
var _c2 = s[_o2];
|
|
39659
|
+
_c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
|
|
39660
|
+
}
|
|
39661
|
+
return s;
|
|
39662
|
+
}
|
|
39663
|
+
function Pt(e, n) {
|
|
39664
|
+
var _s$rSizeMul;
|
|
39665
|
+
var s = _extends({}, e);
|
|
39666
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
|
|
39667
|
+
var r = _step5.value;
|
|
39668
|
+
var t = s[r];
|
|
39669
|
+
t != null && (s[r] = t * n);
|
|
39670
|
+
}
|
|
39671
|
+
return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
|
|
39672
|
+
}
|
|
39673
|
+
var Dt = {
|
|
39674
|
+
globe: {
|
|
39675
|
+
latRings: 17,
|
|
39676
|
+
lonDensity: 44,
|
|
39677
|
+
rBase: 0.6,
|
|
39678
|
+
rDepth: 1.7,
|
|
39679
|
+
rBoost: 1,
|
|
39680
|
+
inkFar: 0.62,
|
|
39681
|
+
inkSpan: 0.54,
|
|
39682
|
+
rsPow: 0.6,
|
|
39683
|
+
rMin: 0.3
|
|
39684
|
+
},
|
|
39685
|
+
orbits: {
|
|
39686
|
+
orbitN: 12,
|
|
39687
|
+
ghostN: 40,
|
|
39688
|
+
ghostR: 0.9,
|
|
39689
|
+
ghostA: 0.5,
|
|
39690
|
+
particles: 3,
|
|
39691
|
+
partR: 1.2,
|
|
39692
|
+
partRDepth: 1.6,
|
|
39693
|
+
rsPow: 0.6,
|
|
39694
|
+
rMin: 0.3
|
|
39695
|
+
},
|
|
39696
|
+
rubik: {
|
|
39697
|
+
latRings: 15,
|
|
39698
|
+
lonDensity: 40,
|
|
39699
|
+
moveCount: 14,
|
|
39700
|
+
rBase: 0.6,
|
|
39701
|
+
rDepth: 1.7,
|
|
39702
|
+
rActive: 0.3,
|
|
39703
|
+
inkFar: 0.62,
|
|
39704
|
+
inkSpan: 0.54,
|
|
39705
|
+
rsPow: 0.6,
|
|
39706
|
+
rMin: 0.3
|
|
39707
|
+
},
|
|
39708
|
+
wave: {
|
|
39709
|
+
rings: 15,
|
|
39710
|
+
lonDensity: 40,
|
|
39711
|
+
rBase: 0.6,
|
|
39712
|
+
rDepth: 1.7,
|
|
39713
|
+
rsPow: 0.6,
|
|
39714
|
+
rMin: 0.3
|
|
39715
|
+
},
|
|
39716
|
+
ribbon: {
|
|
39717
|
+
lanes: 5,
|
|
39718
|
+
segs: 88,
|
|
39719
|
+
ghostN: 150,
|
|
39720
|
+
rBase: 1.1,
|
|
39721
|
+
rDepth: 1.7,
|
|
39722
|
+
rsPow: 0.6,
|
|
39723
|
+
rMin: 0.3
|
|
39724
|
+
},
|
|
39725
|
+
morph: {
|
|
39726
|
+
rDot: 0.021,
|
|
39727
|
+
iconD: 1,
|
|
39728
|
+
rMin: 0.25
|
|
39729
|
+
}
|
|
39730
|
+
},
|
|
39731
|
+
Rt = {
|
|
39732
|
+
working: "orbits",
|
|
39733
|
+
searching: "globe",
|
|
39734
|
+
solving: "rubik",
|
|
39735
|
+
listening: "wave",
|
|
39736
|
+
composing: "ribbon",
|
|
39737
|
+
shaping: "morph"
|
|
39738
|
+
},
|
|
39739
|
+
St = {
|
|
39740
|
+
orbits: {
|
|
39741
|
+
64: {
|
|
39742
|
+
speed: 1.885,
|
|
39743
|
+
count: 1,
|
|
39744
|
+
size: 1
|
|
39745
|
+
},
|
|
39746
|
+
20: {
|
|
39747
|
+
speed: 3.9,
|
|
39748
|
+
count: 0.238,
|
|
39749
|
+
size: 2.4
|
|
39750
|
+
}
|
|
39751
|
+
},
|
|
39752
|
+
globe: {
|
|
39753
|
+
64: {
|
|
39754
|
+
speed: 2.015,
|
|
39755
|
+
count: 0.42,
|
|
39756
|
+
size: 1.15,
|
|
39757
|
+
extra: {
|
|
39758
|
+
scanMul: 4.08,
|
|
39759
|
+
dimBase: 0.45
|
|
39760
|
+
}
|
|
39761
|
+
},
|
|
39762
|
+
20: {
|
|
39763
|
+
speed: 2.665,
|
|
39764
|
+
count: 0.105,
|
|
39765
|
+
size: 1.75,
|
|
39766
|
+
extra: {
|
|
39767
|
+
scanMul: 4.335,
|
|
39768
|
+
dimBase: 0.45
|
|
39769
|
+
}
|
|
39770
|
+
}
|
|
39771
|
+
},
|
|
39772
|
+
rubik: {
|
|
39773
|
+
64: {
|
|
39774
|
+
speed: 1.82,
|
|
39775
|
+
count: 0.35,
|
|
39776
|
+
size: 1.05
|
|
39777
|
+
},
|
|
39778
|
+
20: {
|
|
39779
|
+
speed: 1.95,
|
|
39780
|
+
count: 0.088,
|
|
39781
|
+
size: 1.9
|
|
39782
|
+
}
|
|
39783
|
+
},
|
|
39784
|
+
wave: {
|
|
39785
|
+
64: {
|
|
39786
|
+
speed: 4.388,
|
|
39787
|
+
count: 0.341,
|
|
39788
|
+
size: 1
|
|
39789
|
+
},
|
|
39790
|
+
20: {
|
|
39791
|
+
speed: 3.998,
|
|
39792
|
+
count: 0.105,
|
|
39793
|
+
size: 1.6
|
|
39794
|
+
}
|
|
39795
|
+
},
|
|
39796
|
+
ribbon: {
|
|
39797
|
+
64: {
|
|
39798
|
+
speed: 2.34,
|
|
39799
|
+
count: 0.25,
|
|
39800
|
+
size: 0.85,
|
|
39801
|
+
extra: {
|
|
39802
|
+
spin: 0,
|
|
39803
|
+
bandMul: 3.9,
|
|
39804
|
+
wobMul: 1
|
|
39805
|
+
}
|
|
39806
|
+
},
|
|
39807
|
+
20: {
|
|
39808
|
+
speed: 3.12,
|
|
39809
|
+
count: 0.051,
|
|
39810
|
+
size: 1.073,
|
|
39811
|
+
extra: {
|
|
39812
|
+
spin: 0,
|
|
39813
|
+
bandMul: 4.94,
|
|
39814
|
+
wobMul: 1
|
|
39815
|
+
}
|
|
39816
|
+
}
|
|
39817
|
+
},
|
|
39818
|
+
morph: {
|
|
39819
|
+
64: {
|
|
39820
|
+
speed: 2.405,
|
|
39821
|
+
count: 0.54,
|
|
39822
|
+
size: 0.395,
|
|
39823
|
+
extra: {
|
|
39824
|
+
spread: 1.45
|
|
39825
|
+
}
|
|
39826
|
+
},
|
|
39827
|
+
20: {
|
|
39828
|
+
speed: 2.08,
|
|
39829
|
+
count: 0.53,
|
|
39830
|
+
size: 1.011,
|
|
39831
|
+
extra: {
|
|
39832
|
+
spread: 1.45
|
|
39833
|
+
}
|
|
39834
|
+
}
|
|
39835
|
+
}
|
|
39836
|
+
},
|
|
39837
|
+
H = /* @__PURE__ */new Map();
|
|
39838
|
+
function It(e, n) {
|
|
39839
|
+
var s = e + "-" + n,
|
|
39840
|
+
r = H.get(s);
|
|
39841
|
+
if (r) return r;
|
|
39842
|
+
var t = Rt[e],
|
|
39843
|
+
o = St[t][n];
|
|
39844
|
+
var c = _extends({}, Dt[t]);
|
|
39845
|
+
o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
|
|
39846
|
+
var a = {
|
|
39847
|
+
mode: t,
|
|
39848
|
+
speed: o.speed,
|
|
39849
|
+
opts: c
|
|
39850
|
+
};
|
|
39851
|
+
return H.set(s, a), a;
|
|
39852
|
+
}
|
|
39853
|
+
function Et(e) {
|
|
39854
|
+
var n = e;
|
|
39855
|
+
for (; n;) {
|
|
39856
|
+
var s = n.getAttribute("data-theme");
|
|
39857
|
+
if (s === "dark") return true;
|
|
39858
|
+
if (s === "light") return false;
|
|
39859
|
+
if (n.classList.contains("dark")) return true;
|
|
39860
|
+
if (n.classList.contains("light")) return false;
|
|
39861
|
+
n = n.parentElement;
|
|
39862
|
+
}
|
|
39863
|
+
return null;
|
|
39864
|
+
}
|
|
39865
|
+
function Lt() {
|
|
39866
|
+
return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
|
|
39867
|
+
}
|
|
39868
|
+
function At(e, n) {
|
|
39869
|
+
var _V = useState(true),
|
|
39870
|
+
_V2 = _slicedToArray(_V, 2),
|
|
39871
|
+
s = _V2[0],
|
|
39872
|
+
r = _V2[1];
|
|
39873
|
+
return useEffect(function () {
|
|
39874
|
+
if (e === "dark") {
|
|
39875
|
+
r(true);
|
|
39876
|
+
return;
|
|
39877
|
+
}
|
|
39878
|
+
if (e === "light") {
|
|
39879
|
+
r(false);
|
|
39880
|
+
return;
|
|
39881
|
+
}
|
|
39882
|
+
var t = function t() {
|
|
39883
|
+
var i = Et(n.current);
|
|
39884
|
+
r(i != null ? i : Lt());
|
|
39885
|
+
};
|
|
39886
|
+
t();
|
|
39887
|
+
var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
|
|
39888
|
+
c = function c() {
|
|
39889
|
+
return t();
|
|
39890
|
+
};
|
|
39891
|
+
o == null || o.addEventListener("change", c);
|
|
39892
|
+
var a = null;
|
|
39893
|
+
return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
|
|
39894
|
+
attributes: true,
|
|
39895
|
+
attributeFilter: ["class", "data-theme"],
|
|
39896
|
+
subtree: true
|
|
39897
|
+
})), function () {
|
|
39898
|
+
o == null || o.removeEventListener("change", c), a == null || a.disconnect();
|
|
39899
|
+
};
|
|
39900
|
+
}, [e, n]), s;
|
|
39901
|
+
}
|
|
39902
|
+
function Bt() {
|
|
39903
|
+
var _V3 = useState(false),
|
|
39904
|
+
_V4 = _slicedToArray(_V3, 2),
|
|
39905
|
+
e = _V4[0],
|
|
39906
|
+
n = _V4[1];
|
|
39907
|
+
return useEffect(function () {
|
|
39908
|
+
if (typeof matchMedia > "u") return;
|
|
39909
|
+
var s = matchMedia("(prefers-reduced-motion: reduce)");
|
|
39910
|
+
n(s.matches);
|
|
39911
|
+
var r = function r(t) {
|
|
39912
|
+
return n(t.matches);
|
|
39913
|
+
};
|
|
39914
|
+
return s.addEventListener("change", r), function () {
|
|
39915
|
+
return s.removeEventListener("change", r);
|
|
39916
|
+
};
|
|
39917
|
+
}, []), e;
|
|
39918
|
+
}
|
|
39919
|
+
var Ct = {
|
|
39920
|
+
working: "Working…",
|
|
39921
|
+
searching: "Searching…",
|
|
39922
|
+
solving: "Solving…",
|
|
39923
|
+
listening: "Listening…",
|
|
39924
|
+
composing: "Composing…",
|
|
39925
|
+
shaping: "Shaping…"
|
|
39926
|
+
};
|
|
39927
|
+
function Tt(_ref) {
|
|
39928
|
+
var _ref$state = _ref.state,
|
|
39929
|
+
e = _ref$state === void 0 ? "working" : _ref$state,
|
|
39930
|
+
_ref$size = _ref.size,
|
|
39931
|
+
n = _ref$size === void 0 ? 64 : _ref$size,
|
|
39932
|
+
_ref$theme = _ref.theme,
|
|
39933
|
+
s = _ref$theme === void 0 ? "auto" : _ref$theme,
|
|
39934
|
+
_ref$speed = _ref.speed,
|
|
39935
|
+
r = _ref$speed === void 0 ? 1 : _ref$speed,
|
|
39936
|
+
_ref$paused = _ref.paused,
|
|
39937
|
+
t = _ref$paused === void 0 ? false : _ref$paused,
|
|
39938
|
+
o = _ref.style,
|
|
39939
|
+
c = _ref["aria-label"],
|
|
39940
|
+
a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
39941
|
+
var i = useRef(null),
|
|
39942
|
+
m = At(s, i),
|
|
39943
|
+
g = Bt();
|
|
39944
|
+
return useEffect(function () {
|
|
39945
|
+
var M = i.current;
|
|
39946
|
+
if (!M) return;
|
|
39947
|
+
var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
|
|
39948
|
+
M.width = Math.round(n * u), M.height = Math.round(n * u);
|
|
39949
|
+
var h = M.getContext("2d");
|
|
39950
|
+
if (!h) return;
|
|
39951
|
+
var _It = It(e, n),
|
|
39952
|
+
b = _It.mode,
|
|
39953
|
+
x = _It.speed,
|
|
39954
|
+
I = _It.opts,
|
|
39955
|
+
P = bt[b],
|
|
39956
|
+
y = x * r,
|
|
39957
|
+
D = function D(S) {
|
|
39958
|
+
h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
|
|
39959
|
+
};
|
|
39960
|
+
if (g) {
|
|
39961
|
+
D(0.6);
|
|
39962
|
+
return;
|
|
39963
|
+
}
|
|
39964
|
+
var w = 0,
|
|
39965
|
+
k = false;
|
|
39966
|
+
var _v = function v() {
|
|
39967
|
+
D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
|
|
39968
|
+
},
|
|
39969
|
+
R = function R() {
|
|
39970
|
+
k || t || (k = true, w = requestAnimationFrame(_v));
|
|
39971
|
+
},
|
|
39972
|
+
p = function p() {
|
|
39973
|
+
k = false, cancelAnimationFrame(w);
|
|
39974
|
+
};
|
|
39975
|
+
D(performance.now() / 1e3 * y);
|
|
39976
|
+
var d = true;
|
|
39977
|
+
var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
|
|
39978
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
|
39979
|
+
S = _ref3[0];
|
|
39980
|
+
d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
|
|
39981
|
+
}) : null;
|
|
39982
|
+
l == null || l.observe(M);
|
|
39983
|
+
var f = function f() {
|
|
39984
|
+
document.visibilityState === "hidden" ? p() : d && R();
|
|
39985
|
+
};
|
|
39986
|
+
return document.addEventListener("visibilitychange", f), l || R(), function () {
|
|
39987
|
+
p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
|
|
39988
|
+
};
|
|
39989
|
+
}, [e, n, m, r, t, g]), /* @__PURE__ */jsx("canvas", _extends({
|
|
39990
|
+
ref: i,
|
|
39991
|
+
role: "img",
|
|
39992
|
+
"aria-label": c != null ? c : Ct[e],
|
|
39993
|
+
style: _extends({
|
|
39994
|
+
width: n,
|
|
39995
|
+
height: n,
|
|
39996
|
+
display: "block"
|
|
39997
|
+
}, o)
|
|
39998
|
+
}, a));
|
|
39999
|
+
}
|
|
40000
|
+
|
|
39101
40001
|
var _templateObject$2, _templateObject2$2;
|
|
39102
40002
|
function OrbStatusScreen(_ref) {
|
|
39103
40003
|
var state = _ref.state,
|
|
@@ -39106,7 +40006,7 @@ function OrbStatusScreen(_ref) {
|
|
|
39106
40006
|
loadingStage = _ref.loadingStage;
|
|
39107
40007
|
var theme = useTheme();
|
|
39108
40008
|
var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
|
|
39109
|
-
var orb = jsx(
|
|
40009
|
+
var orb = jsx(Tt, {
|
|
39110
40010
|
state: state,
|
|
39111
40011
|
size: 64,
|
|
39112
40012
|
style: {
|
|
@@ -46348,7 +47248,8 @@ function subBag(bag, key) {
|
|
|
46348
47248
|
* async decision, so the mapper cannot know which path will run, and dropping
|
|
46349
47249
|
* the flow-level classes for a customer who set only those would be the same
|
|
46350
47250
|
* "my CSS stopped applying" failure this gate exists to catch. The more
|
|
46351
|
-
* specific bag still wins wherever both name the same leaf.
|
|
47251
|
+
* specific bag still wins wherever both name the same leaf. Callers merge only
|
|
47252
|
+
* when the video path can run at all.
|
|
46352
47253
|
*/
|
|
46353
47254
|
function mergeStyleBags(base, override) {
|
|
46354
47255
|
if (!base) return override;
|
|
@@ -46661,32 +47562,43 @@ function faceCaptureCopy(bag) {
|
|
|
46661
47562
|
}
|
|
46662
47563
|
return compactOrUndefined(copy);
|
|
46663
47564
|
}
|
|
47565
|
+
/**
|
|
47566
|
+
* One stage's colour bag. Unlike `stageBag`, a multi-stage flow (`prefixed`)
|
|
47567
|
+
* never falls back to the root: its root `success` is a DIFFERENT screen's
|
|
47568
|
+
* (the video-ID or signature review), so the fallback would paint that
|
|
47569
|
+
* screen's buttons onto this stage's.
|
|
47570
|
+
*/
|
|
47571
|
+
function colorStage(rawBag, stage, prefixed) {
|
|
47572
|
+
return prefixed ? subBag(rawBag, stage) : stageBag(rawBag, stage);
|
|
47573
|
+
}
|
|
46664
47574
|
/**
|
|
46665
47575
|
* The half of sdk2's `colors` bag that stayed a component prop: the per-screen
|
|
46666
47576
|
* BUTTON colours. Everything else in the bag is a theme field now — see
|
|
46667
47577
|
* `mapThemeWithColors` in ./themes.ts, which the flows apply to `theme`.
|
|
46668
47578
|
*
|
|
46669
|
-
* The ID side keeps the loading overlay's
|
|
46670
|
-
*
|
|
46671
|
-
* `success.doneBtn`/`success.retryBtn` have no per-screen home: 3.0's
|
|
46672
|
-
* ReviewScreen colours its buttons by `variant` off `theme.buttons`, so those
|
|
46673
|
-
* two are reported in `__fixtures__/dispositions.md` as theme-level rather
|
|
46674
|
-
* than silently dropped here.
|
|
47579
|
+
* The ID side keeps the loading overlay's buttons, the fallback screen's, and
|
|
47580
|
+
* sdk2's `success` pair, which is the review screen's.
|
|
46675
47581
|
*/
|
|
46676
|
-
function mapIdColors(rawBag) {
|
|
46677
|
-
var bag =
|
|
47582
|
+
function mapIdColors(rawBag, prefixed) {
|
|
47583
|
+
var bag = colorStage(rawBag, 'idCapture', prefixed);
|
|
46678
47584
|
if (!bag) return undefined;
|
|
46679
47585
|
var loadingOverlay = bag.loadingOverlay;
|
|
47586
|
+
var success = subBag(bag, 'success');
|
|
46680
47587
|
return compactOrUndefined({
|
|
46681
47588
|
loadingOverlay: compactOrUndefined({
|
|
46682
47589
|
continueBtn: loadingOverlay === null || loadingOverlay === void 0 ? void 0 : loadingOverlay.continueBtn,
|
|
46683
47590
|
cameraAccessDenied: loadingOverlay === null || loadingOverlay === void 0 ? void 0 : loadingOverlay.cameraAccessDenied
|
|
47591
|
+
}),
|
|
47592
|
+
fallback: bag.fallback,
|
|
47593
|
+
review: compactOrUndefined({
|
|
47594
|
+
submitBtn: success === null || success === void 0 ? void 0 : success.doneBtn,
|
|
47595
|
+
retryBtn: success === null || success === void 0 ? void 0 : success.retryBtn
|
|
46684
47596
|
})
|
|
46685
47597
|
});
|
|
46686
47598
|
}
|
|
46687
47599
|
/** The same for the face stage, whose success/failure screens DO take colours. */
|
|
46688
|
-
function mapFaceColors(rawBag) {
|
|
46689
|
-
var bag =
|
|
47600
|
+
function mapFaceColors(rawBag, prefixed) {
|
|
47601
|
+
var bag = colorStage(rawBag, 'faceLiveness', prefixed);
|
|
46690
47602
|
if (!bag) return undefined;
|
|
46691
47603
|
var loadingOverlay = bag.loadingOverlay;
|
|
46692
47604
|
return compactOrUndefined({
|
|
@@ -46863,6 +47775,61 @@ function mapVideoIdViewClassNames(bag) {
|
|
|
46863
47775
|
microphoneAccessDenied: subBag(subBag(bag, 'loadingOverlay'), 'microphoneAccessDenied')
|
|
46864
47776
|
});
|
|
46865
47777
|
}
|
|
47778
|
+
/**
|
|
47779
|
+
* The microphone-denied screen's colours. sdk2 showed that screen from the
|
|
47780
|
+
* loading overlay of the stage that asked for the microphone: the selfie
|
|
47781
|
+
* stage, on both the video signature and video ID (IdVideoCaptureWizard.tsx
|
|
47782
|
+
* asks only once ID capture is over). So each view reads that stage, then the
|
|
47783
|
+
* other, then a flat bag's own `loadingOverlay`.
|
|
47784
|
+
*/
|
|
47785
|
+
function micDeniedColors(colors, first, second) {
|
|
47786
|
+
var _a, _b;
|
|
47787
|
+
var read = function read(bag) {
|
|
47788
|
+
return subBag(subBag(bag, 'loadingOverlay'), 'microphoneAccessDenied');
|
|
47789
|
+
};
|
|
47790
|
+
return (_b = (_a = read(subBag(colors, first))) !== null && _a !== void 0 ? _a : read(subBag(colors, second))) !== null && _b !== void 0 ? _b : read(colors);
|
|
47791
|
+
}
|
|
47792
|
+
/**
|
|
47793
|
+
* sdk2's video-signature colours (`VideoSignatureColors`) ->
|
|
47794
|
+
* `SignatureCaptureViewColors`. `bag` is that bag: the root on SignatureKYC,
|
|
47795
|
+
* `videoSignatureCapture` everywhere else. `flowColors` is the flow's whole
|
|
47796
|
+
* bag, for the microphone screen, which the selfie overlay showed first.
|
|
47797
|
+
*/
|
|
47798
|
+
function mapSignatureColors(bag, flowColors) {
|
|
47799
|
+
var success = subBag(bag, 'success');
|
|
47800
|
+
return compactOrUndefined({
|
|
47801
|
+
headingBackgroundColor: bag === null || bag === void 0 ? void 0 : bag.guidanceMessageBackgroundColor,
|
|
47802
|
+
headingTextColor: bag === null || bag === void 0 ? void 0 : bag.guidanceMessageTextColor,
|
|
47803
|
+
retryBtn: success === null || success === void 0 ? void 0 : success.retryBtn,
|
|
47804
|
+
doneBtn: success === null || success === void 0 ? void 0 : success.doneBtn,
|
|
47805
|
+
microphoneAccessDenied: micDeniedColors(flowColors, 'faceLiveness', 'idCapture')
|
|
47806
|
+
});
|
|
47807
|
+
}
|
|
47808
|
+
/**
|
|
47809
|
+
* sdk2's video-ID wizard colours (`VideoIdWizardColors`, or VideoIdValidation's
|
|
47810
|
+
* root, the same shape) -> `VideoIdCaptureViewColors`. The guide colours are
|
|
47811
|
+
* theme fields (./themes.ts). The ID stage's loading overlay is the one this
|
|
47812
|
+
* view embeds. A camera denial here is on the front camera, which sdk2's
|
|
47813
|
+
* selfie stage asked for, so that stage's denied colours come first, as for
|
|
47814
|
+
* the microphone.
|
|
47815
|
+
*/
|
|
47816
|
+
function mapVideoIdColors(bag) {
|
|
47817
|
+
var _a;
|
|
47818
|
+
var capture = subBag(bag, 'idVideoCapture');
|
|
47819
|
+
var success = subBag(bag, 'success');
|
|
47820
|
+
var idOverlay = subBag(subBag(bag, 'idCapture'), 'loadingOverlay');
|
|
47821
|
+
var faceOverlay = subBag(subBag(bag, 'faceLiveness'), 'loadingOverlay');
|
|
47822
|
+
return compactOrUndefined({
|
|
47823
|
+
readTextDoneBtn: capture === null || capture === void 0 ? void 0 : capture.readTextDoneBtn,
|
|
47824
|
+
retryBtn: success === null || success === void 0 ? void 0 : success.retryBtn,
|
|
47825
|
+
doneBtn: success === null || success === void 0 ? void 0 : success.doneBtn,
|
|
47826
|
+
loadingOverlay: compactOrUndefined({
|
|
47827
|
+
continueBtn: idOverlay === null || idOverlay === void 0 ? void 0 : idOverlay.continueBtn,
|
|
47828
|
+
cameraAccessDenied: (_a = faceOverlay === null || faceOverlay === void 0 ? void 0 : faceOverlay.cameraAccessDenied) !== null && _a !== void 0 ? _a : idOverlay === null || idOverlay === void 0 ? void 0 : idOverlay.cameraAccessDenied
|
|
47829
|
+
}),
|
|
47830
|
+
microphoneAccessDenied: micDeniedColors(bag, 'faceLiveness', 'idCapture')
|
|
47831
|
+
});
|
|
47832
|
+
}
|
|
46866
47833
|
/**
|
|
46867
47834
|
* sdk2's `idVideoCapture` and video `success` copy ->
|
|
46868
47835
|
* `VideoIdCaptureViewVerbiage`. The read-aloud keys are renamed, as
|
|
@@ -47010,7 +47977,7 @@ function mapIdCapture(props, prefixed) {
|
|
|
47010
47977
|
onExitAfterTamperSealPopped: props.onExitAfterTamperSealPopped,
|
|
47011
47978
|
verbiage: mapIdVerbiage(props.verbiage),
|
|
47012
47979
|
classNames: mapIdClassNames(props.classNames),
|
|
47013
|
-
colors: mapIdColors(props.colors),
|
|
47980
|
+
colors: mapIdColors(props.colors, prefixed),
|
|
47014
47981
|
assets: mapIdViewAssets(props.assets, guideImages)
|
|
47015
47982
|
});
|
|
47016
47983
|
return {
|
|
@@ -47103,7 +48070,7 @@ function mapFaceCapture(props, prefixed) {
|
|
|
47103
48070
|
customOverlayContent: props.customOverlayContent,
|
|
47104
48071
|
verbiage: mapFaceVerbiage(props.verbiage),
|
|
47105
48072
|
classNames: mapFaceClassNames(props.classNames),
|
|
47106
|
-
colors: mapFaceColors(props.colors),
|
|
48073
|
+
colors: mapFaceColors(props.colors, prefixed),
|
|
47107
48074
|
assets: mapFaceAssets(props.assets)
|
|
47108
48075
|
});
|
|
47109
48076
|
return {
|
|
@@ -47244,6 +48211,8 @@ function mapTheme(theme) {
|
|
|
47244
48211
|
* guidesUnsatisfiedColor -> selfieCapture.guides.unsatisfiedColor
|
|
47245
48212
|
* guidanceMessages*Satisfied* -> guidanceMessages.positive.*
|
|
47246
48213
|
* guidanceMessages*Unsatisfied* -> guidanceMessages.default.*
|
|
48214
|
+
* idVideoCapture.guides*Color -> idVideoCapture.{faceGuides,idCardGuides}.*
|
|
48215
|
+
* and selfieCapture.guides.*, over guides*
|
|
47247
48216
|
*
|
|
47248
48217
|
* The satisfied/unsatisfied split maps onto `positive`/`default` because that
|
|
47249
48218
|
* is the pair the views actually select between (`IdCaptureView` renders the
|
|
@@ -47254,6 +48223,7 @@ function mapTheme(theme) {
|
|
|
47254
48223
|
* (`colors.guideBoxSatisfiedColor ?? theme…`, IdCapture.tsx:236-239).
|
|
47255
48224
|
*/
|
|
47256
48225
|
function themeFromColors(rawColors) {
|
|
48226
|
+
var _a, _b;
|
|
47257
48227
|
if (!rawColors) return undefined;
|
|
47258
48228
|
// Same two shapes as the other style bags (see `stageBag` in ./shared.ts):
|
|
47259
48229
|
// single-stage flows declare these fields FLAT, multi-stage ones nest one
|
|
@@ -47288,9 +48258,15 @@ function themeFromColors(rawColors) {
|
|
|
47288
48258
|
satisfiedColor: fromId('guideBoxSatisfiedColor'),
|
|
47289
48259
|
unsatisfiedColor: fromId('guideBoxUnsatisfiedColor')
|
|
47290
48260
|
});
|
|
48261
|
+
// Only ever nested: no flat flow has a video-ID stage. sdk2 coloured the face
|
|
48262
|
+
// and card guides with the same pair (IdVideoCapture.tsx:608-617), and its
|
|
48263
|
+
// liveness guide too, in place of the face stage's own
|
|
48264
|
+
// (IdVideoCaptureWizard.tsx:357-369). 3.0's video-ID liveness stage is the
|
|
48265
|
+
// flow's selfie stage, so the pair wins the selfie guides.
|
|
48266
|
+
var videoStage = stageColors(rawColors, 'idVideoCapture');
|
|
47291
48267
|
var guides = stripUndefined({
|
|
47292
|
-
satisfiedColor: fromFace('guidesSatisfiedColor'),
|
|
47293
|
-
unsatisfiedColor: fromFace('guidesUnsatisfiedColor')
|
|
48268
|
+
satisfiedColor: (_a = videoStage.guidesSatisfiedColor) !== null && _a !== void 0 ? _a : fromFace('guidesSatisfiedColor'),
|
|
48269
|
+
unsatisfiedColor: (_b = videoStage.guidesUnsatisfiedColor) !== null && _b !== void 0 ? _b : fromFace('guidesUnsatisfiedColor')
|
|
47294
48270
|
});
|
|
47295
48271
|
var positive = stripUndefined({
|
|
47296
48272
|
backgroundColor: shared('guidanceMessagesSatisfiedBackgroundColor'),
|
|
@@ -47300,6 +48276,10 @@ function themeFromColors(rawColors) {
|
|
|
47300
48276
|
backgroundColor: shared('guidanceMessagesUnsatisfiedBackgroundColor'),
|
|
47301
48277
|
textColor: shared('guidanceMessagesUnsatisfiedTextColor')
|
|
47302
48278
|
});
|
|
48279
|
+
var videoGuides = stripUndefined({
|
|
48280
|
+
satisfiedColor: videoStage.guidesSatisfiedColor,
|
|
48281
|
+
unsatisfiedColor: videoStage.guidesUnsatisfiedColor
|
|
48282
|
+
});
|
|
47303
48283
|
var out = {};
|
|
47304
48284
|
if (!isEmptyRecord(guideBox)) out.idCapture = {
|
|
47305
48285
|
guideBox: guideBox
|
|
@@ -47307,6 +48287,12 @@ function themeFromColors(rawColors) {
|
|
|
47307
48287
|
if (!isEmptyRecord(guides)) out.selfieCapture = {
|
|
47308
48288
|
guides: guides
|
|
47309
48289
|
};
|
|
48290
|
+
if (!isEmptyRecord(videoGuides)) {
|
|
48291
|
+
out.idVideoCapture = {
|
|
48292
|
+
faceGuides: videoGuides,
|
|
48293
|
+
idCardGuides: videoGuides
|
|
48294
|
+
};
|
|
48295
|
+
}
|
|
47310
48296
|
var guidanceMessages = {};
|
|
47311
48297
|
if (!isEmptyRecord(positive)) guidanceMessages.positive = positive;
|
|
47312
48298
|
if (!isEmptyRecord(byDefault)) guidanceMessages["default"] = byDefault;
|
|
@@ -47421,7 +48407,10 @@ function mapSignatureView(props) {
|
|
|
47421
48407
|
activeCopy = _b[1];
|
|
47422
48408
|
return compactOrUndefined({
|
|
47423
48409
|
classNames: mapSignatureClassNames(mergeStyleBags(baseClasses, activeClasses)),
|
|
47424
|
-
verbiage: compactOrUndefined(_assign(_assign({}, mapSignatureVerbiage(baseCopy)), mapSignatureVerbiage(activeCopy)))
|
|
48410
|
+
verbiage: compactOrUndefined(_assign(_assign({}, mapSignatureVerbiage(baseCopy)), mapSignatureVerbiage(activeCopy))),
|
|
48411
|
+
// Only the video signature took colours in 2.x; sdk2's still
|
|
48412
|
+
// `SignatureCapture` had no colours prop.
|
|
48413
|
+
colors: props.captureSignature ? undefined : mapSignatureColors(subBag(props.colors, 'videoSignatureCapture'), props.colors)
|
|
47425
48414
|
});
|
|
47426
48415
|
}
|
|
47427
48416
|
/**
|
|
@@ -47698,7 +48687,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
|
|
|
47698
48687
|
}
|
|
47699
48688
|
// --- 4. SignatureKYC ------------------------------------------------------
|
|
47700
48689
|
function mapSignatureKYCProps(props, ctx) {
|
|
47701
|
-
var _a, _b, _c, _d, _e, _f;
|
|
48690
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
47702
48691
|
if (ctx === void 0) {
|
|
47703
48692
|
ctx = EMPTY_CONTEXT;
|
|
47704
48693
|
}
|
|
@@ -47730,7 +48719,10 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
47730
48719
|
verbiage: mergeStyleBags(compactOrUndefined({
|
|
47731
48720
|
cameraStoreProvider: subBag(signatureVerbiage, 'cameraStoreProvider')
|
|
47732
48721
|
}), (_c = signatureVerbiage === null || signatureVerbiage === void 0 ? void 0 : signatureVerbiage.faceLiveness) !== null && _c !== void 0 ? _c : nestedFaceProps.verbiage),
|
|
47733
|
-
assets: (_d = signatureAssets === null || signatureAssets === void 0 ? void 0 : signatureAssets.faceLiveness) !== null && _d !== void 0 ? _d : nestedFaceProps.assets
|
|
48722
|
+
assets: (_d = signatureAssets === null || signatureAssets === void 0 ? void 0 : signatureAssets.faceLiveness) !== null && _d !== void 0 ? _d : nestedFaceProps.assets,
|
|
48723
|
+
// The root bag's `success` is the signature review's, so the face stage
|
|
48724
|
+
// reads only its own.
|
|
48725
|
+
colors: (_e = subBag(props.colors, 'faceLiveness')) !== null && _e !== void 0 ? _e : nestedFaceProps.colors
|
|
47734
48726
|
});
|
|
47735
48727
|
var face = mapFaceCapture(faceInputs);
|
|
47736
48728
|
var nested = props.faceLivenessProps;
|
|
@@ -47776,7 +48768,7 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
47776
48768
|
// rather than in the shared mapper: `faceInputs` has already folded the
|
|
47777
48769
|
// nested `faceLivenessProps` bag in, so a nested `true` is honoured and
|
|
47778
48770
|
// only a genuinely absent prop falls back to 2.x's `false`.
|
|
47779
|
-
debugShowSamplePoints: (
|
|
48771
|
+
debugShowSamplePoints: (_f = face.view.debugShowSamplePoints) !== null && _f !== void 0 ? _f : false,
|
|
47780
48772
|
onExitAfterFailure: typeof faceInputs.onExitAfterFailure === 'function' ? function () {
|
|
47781
48773
|
var _a, _b;
|
|
47782
48774
|
return faceInputs.onExitAfterFailure(null, (_b = (_a = ctx.lastLivenessRequest) === null || _a === void 0 ? void 0 : _a.call(ctx)) !== null && _b !== void 0 ? _b : null);
|
|
@@ -47826,7 +48818,8 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
47826
48818
|
showCaptureDiagnostics: props.debugMode,
|
|
47827
48819
|
recordingInterruptedComponent: props.recordingInterruptedComponent,
|
|
47828
48820
|
classNames: mapSignatureClassNames(signatureClassNames),
|
|
47829
|
-
verbiage: mapSignatureVerbiage(signatureVerbiage)
|
|
48821
|
+
verbiage: mapSignatureVerbiage(signatureVerbiage),
|
|
48822
|
+
colors: mapSignatureColors(props.colors, props.colors)
|
|
47830
48823
|
}),
|
|
47831
48824
|
allowVirtualCameras: props.allowVirtualCameras,
|
|
47832
48825
|
skipLivenessValidation: props.skipLivenessValidation,
|
|
@@ -47837,7 +48830,7 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
47837
48830
|
showFaceGuideThenSignaturePad: props.showFaceGuideThenSignaturePad,
|
|
47838
48831
|
submission: mapSubmission(props),
|
|
47839
48832
|
theme: mapThemeWithColors(props.theme, props.colors),
|
|
47840
|
-
className: (
|
|
48833
|
+
className: (_g = props.classNames) === null || _g === void 0 ? void 0 : _g.container,
|
|
47841
48834
|
geolocationEnabled: props.geolocationEnabled,
|
|
47842
48835
|
geolocationRequired: props.geolocationRequired,
|
|
47843
48836
|
captureProgress: props.captureProgress,
|
|
@@ -47927,7 +48920,8 @@ function mapVideoIdValidationProps(props, ctx) {
|
|
|
47927
48920
|
guideImages: props.idCaptureGuideImages,
|
|
47928
48921
|
onExit: props.onExitCapture,
|
|
47929
48922
|
classNames: mapVideoIdViewClassNames(props.classNames),
|
|
47930
|
-
verbiage: mapVideoIdViewVerbiage(props.verbiage)
|
|
48923
|
+
verbiage: mapVideoIdViewVerbiage(props.verbiage),
|
|
48924
|
+
colors: mapVideoIdColors(props.colors)
|
|
47931
48925
|
}),
|
|
47932
48926
|
// sdk2 spread the verbiage sentence over this prop, so it wins for
|
|
47933
48927
|
// display; only the prop turns the read-aloud stage on (`readText` above).
|
|
@@ -48208,12 +49202,17 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48208
49202
|
// separate component instances there, but the very same `idView`/`faceView`
|
|
48209
49203
|
// here, because `buildVideoIdSteps` reuses them. Folding the wrapper in
|
|
48210
49204
|
// before the stage mappers run is what gives those sub-bags a destination;
|
|
48211
|
-
// see `mergeStyleBags` for why it merges rather than overriding.
|
|
49205
|
+
// see `mergeStyleBags` for why it merges rather than overriding. With video
|
|
49206
|
+
// ID off (false or unset) the wrapper's wizard never runs, so its bags do not
|
|
49207
|
+
// apply; an async `captureVideoId` might, so they merge.
|
|
49208
|
+
var videoBag = function videoBag(bag) {
|
|
49209
|
+
return props.captureVideoId ? subBag(bag, 'videoIdCapture') : undefined;
|
|
49210
|
+
};
|
|
48212
49211
|
var styled = _assign(_assign({}, props), {
|
|
48213
|
-
classNames: mergeStyleBags(props.classNames,
|
|
48214
|
-
verbiage: mergeStyleBags(props.verbiage,
|
|
48215
|
-
assets: mergeStyleBags(props.assets,
|
|
48216
|
-
colors: mergeStyleBags(props.colors,
|
|
49212
|
+
classNames: mergeStyleBags(props.classNames, videoBag(props.classNames)),
|
|
49213
|
+
verbiage: mergeStyleBags(props.verbiage, videoBag(props.verbiage)),
|
|
49214
|
+
assets: mergeStyleBags(props.assets, videoBag(props.assets)),
|
|
49215
|
+
colors: mergeStyleBags(props.colors, videoBag(props.colors))
|
|
48217
49216
|
});
|
|
48218
49217
|
var id = mapIdCapture(styled, true);
|
|
48219
49218
|
var face = mapFaceCapture(styled, true);
|
|
@@ -48251,7 +49250,8 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48251
49250
|
})),
|
|
48252
49251
|
videoIdView: compactOrUndefined({
|
|
48253
49252
|
classNames: mapVideoIdViewClassNames(subBag(props.classNames, 'videoIdCapture')),
|
|
48254
|
-
verbiage: mapVideoIdViewVerbiage(subBag(props.verbiage, 'videoIdCapture'))
|
|
49253
|
+
verbiage: mapVideoIdViewVerbiage(subBag(props.verbiage, 'videoIdCapture')),
|
|
49254
|
+
colors: mapVideoIdColors(subBag(props.colors, 'videoIdCapture'))
|
|
48255
49255
|
}),
|
|
48256
49256
|
captureSignature: props.captureSignature,
|
|
48257
49257
|
captureSignatureVideo: props.captureSignatureVideo,
|
|
@@ -48260,7 +49260,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48260
49260
|
enrollmentId: props.enrollmentId
|
|
48261
49261
|
}),
|
|
48262
49262
|
initialArtifacts: mapInitialArtifacts(props),
|
|
48263
|
-
theme: mapThemeWithColors(props.theme,
|
|
49263
|
+
theme: mapThemeWithColors(props.theme, styled.colors),
|
|
48264
49264
|
className: (_b = props.classNames) === null || _b === void 0 ? void 0 : _b.container,
|
|
48265
49265
|
ringScreenClassNames: mapRingScreenClassNames(props.classNames),
|
|
48266
49266
|
additionalDocumentClassNames: mapAdditionalDocumentClassNames(props.classNames),
|
|
@@ -48283,7 +49283,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48283
49283
|
});
|
|
48284
49284
|
}
|
|
48285
49285
|
|
|
48286
|
-
var webSdkVersion = '2.5.79-
|
|
49286
|
+
var webSdkVersion = '2.5.79-react16compat.0';
|
|
48287
49287
|
|
|
48288
49288
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48289
49289
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|
|
@@ -49634,13 +50634,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49634
50634
|
"videoSignatureCapture.cameraStoreProvider": 2
|
|
49635
50635
|
},
|
|
49636
50636
|
"colors": {
|
|
49637
|
-
"
|
|
49638
|
-
"success": 2,
|
|
49639
|
-
"fallback": 2,
|
|
49640
|
-
"videoSignatureCapture.guidanceMessageBackgroundColor": 2,
|
|
49641
|
-
"videoSignatureCapture.guidanceMessageTextColor": 2,
|
|
49642
|
-
"videoSignatureCapture.faceLiveness": 0,
|
|
49643
|
-
"videoSignatureCapture.success": 2
|
|
50637
|
+
"videoSignatureCapture.faceLiveness": 0
|
|
49644
50638
|
}
|
|
49645
50639
|
},
|
|
49646
50640
|
"FaceValidation": {
|
|
@@ -49654,7 +50648,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49654
50648
|
"successScreen": 2
|
|
49655
50649
|
},
|
|
49656
50650
|
"colors": {
|
|
49657
|
-
"loadingOverlay.microphoneAccessDenied":
|
|
50651
|
+
"loadingOverlay.microphoneAccessDenied": 1
|
|
49658
50652
|
}
|
|
49659
50653
|
},
|
|
49660
50654
|
"IdAndFaceValidation": {
|
|
@@ -49685,14 +50679,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49685
50679
|
"videoSignatureCapture.cameraStoreProvider": 2
|
|
49686
50680
|
},
|
|
49687
50681
|
"colors": {
|
|
49688
|
-
"
|
|
49689
|
-
"idCapture.success": 2,
|
|
49690
|
-
"idCapture.fallback": 2,
|
|
49691
|
-
"faceLiveness.loadingOverlay.microphoneAccessDenied": 2,
|
|
49692
|
-
"videoSignatureCapture.guidanceMessageBackgroundColor": 2,
|
|
49693
|
-
"videoSignatureCapture.guidanceMessageTextColor": 2,
|
|
49694
|
-
"videoSignatureCapture.faceLiveness": 0,
|
|
49695
|
-
"videoSignatureCapture.success": 2
|
|
50682
|
+
"videoSignatureCapture.faceLiveness": 0
|
|
49696
50683
|
}
|
|
49697
50684
|
},
|
|
49698
50685
|
"SignatureKYC": {
|
|
@@ -49711,11 +50698,6 @@ var STYLE_BAG_DROPS = {
|
|
|
49711
50698
|
"verbiage": {
|
|
49712
50699
|
"finishingScreen": 2,
|
|
49713
50700
|
"successScreen": 2
|
|
49714
|
-
},
|
|
49715
|
-
"colors": {
|
|
49716
|
-
"guidanceMessageBackgroundColor": 2,
|
|
49717
|
-
"guidanceMessageTextColor": 2,
|
|
49718
|
-
"faceLiveness.loadingOverlay.microphoneAccessDenied": 2
|
|
49719
50701
|
}
|
|
49720
50702
|
},
|
|
49721
50703
|
"VideoIdValidation": {
|
|
@@ -49755,15 +50737,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49755
50737
|
"videoSignatureCapture.cameraStoreProvider": 2
|
|
49756
50738
|
},
|
|
49757
50739
|
"colors": {
|
|
49758
|
-
"
|
|
49759
|
-
"idCapture.success": 2,
|
|
49760
|
-
"idCapture.fallback": 2,
|
|
49761
|
-
"faceLiveness.loadingOverlay.microphoneAccessDenied": 2,
|
|
49762
|
-
"idVideoCapture": 2,
|
|
49763
|
-
"videoSignatureCapture.guidanceMessageBackgroundColor": 2,
|
|
49764
|
-
"videoSignatureCapture.guidanceMessageTextColor": 2,
|
|
49765
|
-
"videoSignatureCapture.faceLiveness": 0,
|
|
49766
|
-
"videoSignatureCapture.success": 2
|
|
50740
|
+
"videoSignatureCapture.faceLiveness": 0
|
|
49767
50741
|
}
|
|
49768
50742
|
},
|
|
49769
50743
|
"CustomerBiometricsEnrollment": {
|
|
@@ -49786,11 +50760,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49786
50760
|
"videoSignatureCapture.cameraStoreProvider": 2
|
|
49787
50761
|
},
|
|
49788
50762
|
"colors": {
|
|
49789
|
-
"faceLiveness
|
|
49790
|
-
"videoSignatureCapture.guidanceMessageBackgroundColor": 2,
|
|
49791
|
-
"videoSignatureCapture.guidanceMessageTextColor": 2,
|
|
49792
|
-
"videoSignatureCapture.faceLiveness": 0,
|
|
49793
|
-
"videoSignatureCapture.success": 2
|
|
50763
|
+
"videoSignatureCapture.faceLiveness": 0
|
|
49794
50764
|
}
|
|
49795
50765
|
},
|
|
49796
50766
|
"CustomerIdAndBiometricsEnrollment": {
|
|
@@ -49840,31 +50810,7 @@ var STYLE_BAG_DROPS = {
|
|
|
49840
50810
|
"videoSignatureCapture.cameraStoreProvider": 2
|
|
49841
50811
|
},
|
|
49842
50812
|
"colors": {
|
|
49843
|
-
"
|
|
49844
|
-
"idCapture.success": 2,
|
|
49845
|
-
"idCapture.fallback": 2,
|
|
49846
|
-
"faceLiveness.loadingOverlay.microphoneAccessDenied": 2,
|
|
49847
|
-
"videoIdCapture.idCapture.guideBoxUnsatisfiedColor": 2,
|
|
49848
|
-
"videoIdCapture.idCapture.guideBoxSatisfiedColor": 2,
|
|
49849
|
-
"videoIdCapture.idCapture.guidanceMessagesSatisfiedBackgroundColor": 2,
|
|
49850
|
-
"videoIdCapture.idCapture.guidanceMessagesUnsatisfiedBackgroundColor": 2,
|
|
49851
|
-
"videoIdCapture.idCapture.guidanceMessagesSatisfiedTextColor": 2,
|
|
49852
|
-
"videoIdCapture.idCapture.guidanceMessagesUnsatisfiedTextColor": 2,
|
|
49853
|
-
"videoIdCapture.idCapture.loadingOverlay.microphoneAccessDenied": 2,
|
|
49854
|
-
"videoIdCapture.idCapture.success": 2,
|
|
49855
|
-
"videoIdCapture.idCapture.fallback": 2,
|
|
49856
|
-
"videoIdCapture.faceLiveness.guidesUnsatisfiedColor": 2,
|
|
49857
|
-
"videoIdCapture.faceLiveness.guidesSatisfiedColor": 2,
|
|
49858
|
-
"videoIdCapture.faceLiveness.guidanceMessagesSatisfiedBackgroundColor": 2,
|
|
49859
|
-
"videoIdCapture.faceLiveness.guidanceMessagesUnsatisfiedBackgroundColor": 2,
|
|
49860
|
-
"videoIdCapture.faceLiveness.guidanceMessagesSatisfiedTextColor": 2,
|
|
49861
|
-
"videoIdCapture.faceLiveness.guidanceMessagesUnsatisfiedTextColor": 2,
|
|
49862
|
-
"videoIdCapture.faceLiveness.loadingOverlay.microphoneAccessDenied": 2,
|
|
49863
|
-
"videoIdCapture.idVideoCapture": 2,
|
|
49864
|
-
"videoSignatureCapture.guidanceMessageBackgroundColor": 2,
|
|
49865
|
-
"videoSignatureCapture.guidanceMessageTextColor": 2,
|
|
49866
|
-
"videoSignatureCapture.faceLiveness": 0,
|
|
49867
|
-
"videoSignatureCapture.success": 2
|
|
50813
|
+
"videoSignatureCapture.faceLiveness": 0
|
|
49868
50814
|
}
|
|
49869
50815
|
}
|
|
49870
50816
|
};
|
|
@@ -50093,12 +51039,11 @@ var ID_OVERLAY_EXTRAS = {
|
|
|
50093
51039
|
* - guide-box / guide / guidance-message colours become theme overrides
|
|
50094
51040
|
* (`mapThemeWithColors`, ./themes.ts), merged over whatever `theme` the
|
|
50095
51041
|
* caller also passed, with the colours winning exactly as in 2.x;
|
|
50096
|
-
* - per-screen BUTTON colours reach
|
|
50097
|
-
* `
|
|
51042
|
+
* - per-screen BUTTON colours reach each view's `colors` bag (the
|
|
51043
|
+
* `map*Colors` mappers in ./shared.ts).
|
|
50098
51044
|
*
|
|
50099
|
-
* The leaves
|
|
50100
|
-
*
|
|
50101
|
-
* `__fixtures__/dispositions.md` rather than silently implied to work.
|
|
51045
|
+
* The leaves no 3.0 screen renders are in the colours ledger
|
|
51046
|
+
* (./styleBagLedger.ts), and so in the docs tables and the style-key warnings.
|
|
50102
51047
|
*/
|
|
50103
51048
|
var STYLE_WITH_ASSETS = {
|
|
50104
51049
|
assets: MAPPED,
|
|
@@ -50941,6 +51886,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
50941
51886
|
}, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
|
|
50942
51887
|
};
|
|
50943
51888
|
|
|
51889
|
+
/**
|
|
51890
|
+
* react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
|
|
51891
|
+
* `ReactDOM.render` API to the root shape the rest of this module expects.
|
|
51892
|
+
* Keeping that shape means the teardown logic below stays byte-identical to
|
|
51893
|
+
* develop and merges cleanly. Runs on React 16.14 through 18; React 19
|
|
51894
|
+
* removed `ReactDOM.render`, which is why this build's peer range stops at 18.
|
|
51895
|
+
*/
|
|
51896
|
+
function createRoot(container) {
|
|
51897
|
+
return {
|
|
51898
|
+
render: function render(element) {
|
|
51899
|
+
// eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
|
|
51900
|
+
ReactDOM.render(element, container);
|
|
51901
|
+
},
|
|
51902
|
+
unmount: function unmount() {
|
|
51903
|
+
// eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
|
|
51904
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
51905
|
+
}
|
|
51906
|
+
};
|
|
51907
|
+
}
|
|
50944
51908
|
/**
|
|
50945
51909
|
* Targets whose `remove` this module has already wrapped. Permanent: the
|
|
50946
51910
|
* wrapper is installed at most once per element, so repeat renders can never
|
|
@@ -50968,8 +51932,7 @@ function renderElement(component, targetElement) {
|
|
|
50968
51932
|
targetElement = document.createElement('div');
|
|
50969
51933
|
document.body.append(targetElement);
|
|
50970
51934
|
}
|
|
50971
|
-
var root =
|
|
50972
|
-
root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
|
|
51935
|
+
var root = createRoot(targetElement);
|
|
50973
51936
|
if ('remove' in targetElement) {
|
|
50974
51937
|
var element_1 = targetElement;
|
|
50975
51938
|
// Always point at the newest root, even when the wrapper is already
|
|
@@ -51019,6 +51982,10 @@ function renderElement(component, targetElement) {
|
|
|
51019
51982
|
};
|
|
51020
51983
|
}
|
|
51021
51984
|
}
|
|
51985
|
+
// react-16-compat: render LAST. A legacy root mounts synchronously, so layout
|
|
51986
|
+
// effects (e.g. a customer `loadingSpinner`) run inside this call; one that
|
|
51987
|
+
// calls `.remove()` must already hit the wrapper above, not the native method.
|
|
51988
|
+
root.render(/*#__PURE__*/React.createElement(OverlayContainer, null, component));
|
|
51022
51989
|
return targetElement;
|
|
51023
51990
|
}
|
|
51024
51991
|
function renderComponent(Component, targetElement, options) {
|