idmission-web-sdk 2.5.61 → 2.5.62-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/index.d.ts +1 -1
- package/dist/props.json +1 -1
- package/dist/sdk2.cjs.development.js +1178 -261
- 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 +1169 -252
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +155 -114
- 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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var vanilla = require('zustand/vanilla');
|
|
5
4
|
var platform = require('platform');
|
|
6
5
|
var tusJsClient = require('tus-js-client');
|
|
7
6
|
var SparkMD5 = require('spark-md5');
|
|
@@ -11,10 +10,8 @@ var shim = require('use-sync-external-store/shim');
|
|
|
11
10
|
var reactI18next = require('react-i18next');
|
|
12
11
|
var LanguageDetector = require('i18next-browser-languagedetector');
|
|
13
12
|
var i18next = require('i18next');
|
|
14
|
-
var
|
|
13
|
+
var ReactDOM = require('react-dom');
|
|
15
14
|
var SignaturePad = require('signature_pad');
|
|
16
|
-
var thinkingOrbs = require('thinking-orbs');
|
|
17
|
-
var ReactDOM = require('react-dom/client');
|
|
18
15
|
var tasksVision = require('@mediapipe/tasks-vision');
|
|
19
16
|
var core = require('@litertjs/core');
|
|
20
17
|
|
|
@@ -24,8 +21,8 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
24
21
|
var platform__default = /*#__PURE__*/_interopDefaultCompat(platform);
|
|
25
22
|
var SparkMD5__default = /*#__PURE__*/_interopDefaultCompat(SparkMD5);
|
|
26
23
|
var LanguageDetector__default = /*#__PURE__*/_interopDefaultCompat(LanguageDetector);
|
|
27
|
-
var SignaturePad__default = /*#__PURE__*/_interopDefaultCompat(SignaturePad);
|
|
28
24
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
|
|
25
|
+
var SignaturePad__default = /*#__PURE__*/_interopDefaultCompat(SignaturePad);
|
|
29
26
|
|
|
30
27
|
// Extracted from the barrel so modules inside this package can read the
|
|
31
28
|
// version without importing index.ts (which would be circular).
|
|
@@ -457,17 +454,17 @@ function _iterableToArrayLimit(r, l) {
|
|
|
457
454
|
}
|
|
458
455
|
}
|
|
459
456
|
|
|
460
|
-
function _arrayLikeToArray$
|
|
457
|
+
function _arrayLikeToArray$w(r, a) {
|
|
461
458
|
(null == a || a > r.length) && (a = r.length);
|
|
462
459
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
463
460
|
return n;
|
|
464
461
|
}
|
|
465
462
|
|
|
466
|
-
function _unsupportedIterableToArray$
|
|
463
|
+
function _unsupportedIterableToArray$w(r, a) {
|
|
467
464
|
if (r) {
|
|
468
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
465
|
+
if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
|
|
469
466
|
var t = {}.toString.call(r).slice(8, -1);
|
|
470
|
-
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$
|
|
467
|
+
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;
|
|
471
468
|
}
|
|
472
469
|
}
|
|
473
470
|
|
|
@@ -476,11 +473,11 @@ function _nonIterableRest() {
|
|
|
476
473
|
}
|
|
477
474
|
|
|
478
475
|
function _slicedToArray(r, e) {
|
|
479
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$
|
|
476
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
|
|
480
477
|
}
|
|
481
478
|
|
|
482
479
|
function _arrayWithoutHoles(r) {
|
|
483
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
480
|
+
if (Array.isArray(r)) return _arrayLikeToArray$w(r);
|
|
484
481
|
}
|
|
485
482
|
|
|
486
483
|
function _iterableToArray(r) {
|
|
@@ -492,7 +489,7 @@ function _nonIterableSpread() {
|
|
|
492
489
|
}
|
|
493
490
|
|
|
494
491
|
function _toConsumableArray(r) {
|
|
495
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$
|
|
492
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
|
|
496
493
|
}
|
|
497
494
|
|
|
498
495
|
var webSdkCoreVersion = '0.4.0';
|
|
@@ -1267,9 +1264,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
|
|
|
1267
1264
|
({
|
|
1268
1265
|
workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
|
|
1269
1266
|
|
|
1270
|
-
function _createForOfIteratorHelperLoose$
|
|
1271
|
-
function _unsupportedIterableToArray$
|
|
1272
|
-
function _arrayLikeToArray$
|
|
1267
|
+
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."); }
|
|
1268
|
+
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; } }
|
|
1269
|
+
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; }
|
|
1273
1270
|
var maximumBytes = 32 * 1024;
|
|
1274
1271
|
var maximumTime = 86400000;
|
|
1275
1272
|
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -1337,7 +1334,7 @@ function validateSnapshot(report) {
|
|
|
1337
1334
|
unique(report.phaseTotals.map(function (total) {
|
|
1338
1335
|
return total.phase;
|
|
1339
1336
|
}));
|
|
1340
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1337
|
+
for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
|
|
1341
1338
|
var _total4 = _step.value;
|
|
1342
1339
|
requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
|
|
1343
1340
|
durationValid(_total4.duration);
|
|
@@ -1359,7 +1356,7 @@ function validateSnapshot(report) {
|
|
|
1359
1356
|
requireValid(report.recentTransitions.length <= 32);
|
|
1360
1357
|
var index = 0;
|
|
1361
1358
|
var atMs = 0;
|
|
1362
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1359
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
|
|
1363
1360
|
var transition = _step2.value;
|
|
1364
1361
|
requireValid(member(transitionKinds, transition.kind));
|
|
1365
1362
|
requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
|
|
@@ -1383,12 +1380,12 @@ function validateSnapshot(report) {
|
|
|
1383
1380
|
unique(report.controllerGuidanceTotals.map(function (total) {
|
|
1384
1381
|
return JSON.stringify([total.phase, total.guidance]);
|
|
1385
1382
|
}));
|
|
1386
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1383
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
|
|
1387
1384
|
var _total2 = _step3.value;
|
|
1388
1385
|
durationValid(_total2.duration);
|
|
1389
1386
|
exposureValid(_total2.phase, _total2.exposure);
|
|
1390
1387
|
}
|
|
1391
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1388
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
|
|
1392
1389
|
var _total3 = _step4.value;
|
|
1393
1390
|
durationValid(_total3.duration);
|
|
1394
1391
|
guidanceValid(_total3.phase, _total3.guidance, false);
|
|
@@ -1422,7 +1419,7 @@ function encodeProgressBatch(batch) {
|
|
|
1422
1419
|
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));
|
|
1423
1420
|
var reports = [];
|
|
1424
1421
|
var dropped = [];
|
|
1425
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1422
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
|
|
1426
1423
|
var report = _step5.value;
|
|
1427
1424
|
try {
|
|
1428
1425
|
validateSnapshot(report);
|
|
@@ -1451,9 +1448,9 @@ function encodeProgressBatch(batch) {
|
|
|
1451
1448
|
};
|
|
1452
1449
|
}
|
|
1453
1450
|
|
|
1454
|
-
function _createForOfIteratorHelperLoose$
|
|
1455
|
-
function _unsupportedIterableToArray$
|
|
1456
|
-
function _arrayLikeToArray$
|
|
1451
|
+
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."); }
|
|
1452
|
+
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; } }
|
|
1453
|
+
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; }
|
|
1457
1454
|
var taskOpeners = new WeakMap();
|
|
1458
1455
|
var inertObserver = {
|
|
1459
1456
|
observe: function observe() {},
|
|
@@ -1507,7 +1504,7 @@ function createSessionActor(options, deps) {
|
|
|
1507
1504
|
var due = new Map();
|
|
1508
1505
|
var eligibilityRetries = new Map();
|
|
1509
1506
|
function dropped(report) {
|
|
1510
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1507
|
+
for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
|
|
1511
1508
|
var stream = _step.value;
|
|
1512
1509
|
if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
|
|
1513
1510
|
report: _extends({}, stream.state.report, {
|
|
@@ -1551,7 +1548,7 @@ function createSessionActor(options, deps) {
|
|
|
1551
1548
|
var retained = new Set(queued.map(function (report) {
|
|
1552
1549
|
return report.sequence;
|
|
1553
1550
|
}));
|
|
1554
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1551
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
|
|
1555
1552
|
var _sequence = _step2.value;
|
|
1556
1553
|
if (!retained.has(_sequence)) due["delete"](_sequence);
|
|
1557
1554
|
}
|
|
@@ -1564,7 +1561,7 @@ function createSessionActor(options, deps) {
|
|
|
1564
1561
|
var keys = new Set(reports.map(function (report) {
|
|
1565
1562
|
return report.sequence;
|
|
1566
1563
|
}));
|
|
1567
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1564
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
|
|
1568
1565
|
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
1569
1566
|
key = _step3$value[0],
|
|
1570
1567
|
report = _step3$value[1];
|
|
@@ -1588,14 +1585,14 @@ function createSessionActor(options, deps) {
|
|
|
1588
1585
|
if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
|
|
1589
1586
|
return report.context === context;
|
|
1590
1587
|
})) emergency = null;
|
|
1591
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1588
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
|
|
1592
1589
|
var _step4$value = _slicedToArray(_step4.value, 2),
|
|
1593
1590
|
key = _step4$value[0],
|
|
1594
1591
|
report = _step4$value[1];
|
|
1595
1592
|
if (report.context === context) pending["delete"](key);
|
|
1596
1593
|
}
|
|
1597
1594
|
for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
|
|
1598
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1595
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
|
|
1599
1596
|
var stream = _step5.value;
|
|
1600
1597
|
if (stream.state.report.context === context) {
|
|
1601
1598
|
stream.disposed = true;
|
|
@@ -1624,7 +1621,7 @@ function createSessionActor(options, deps) {
|
|
|
1624
1621
|
unsubscribe();
|
|
1625
1622
|
cancelTimer == null || cancelTimer();
|
|
1626
1623
|
cancelRequest == null || cancelRequest();
|
|
1627
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
1624
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
|
|
1628
1625
|
var stream = _step6.value;
|
|
1629
1626
|
stream.disposed = true;
|
|
1630
1627
|
}
|
|
@@ -1646,7 +1643,7 @@ function createSessionActor(options, deps) {
|
|
|
1646
1643
|
sentAtUnixMs: Math.floor(deps.unixMs()),
|
|
1647
1644
|
reports: reports
|
|
1648
1645
|
});
|
|
1649
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
1646
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
|
|
1650
1647
|
var report = _step7.value;
|
|
1651
1648
|
dropped(report);
|
|
1652
1649
|
removeReports([report]);
|
|
@@ -1816,14 +1813,14 @@ function createSessionActor(options, deps) {
|
|
|
1816
1813
|
retries = 0;
|
|
1817
1814
|
failureStreak = 0;
|
|
1818
1815
|
} else if (result.kind === "permanent") {
|
|
1819
|
-
for (_iterator11 = _createForOfIteratorHelperLoose$
|
|
1816
|
+
for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
|
|
1820
1817
|
report = _step11.value;
|
|
1821
1818
|
disable(report.context);
|
|
1822
1819
|
}
|
|
1823
1820
|
} else {
|
|
1824
1821
|
backoff(result);
|
|
1825
1822
|
if (++retries > 3) {
|
|
1826
|
-
for (_iterator12 = _createForOfIteratorHelperLoose$
|
|
1823
|
+
for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
|
|
1827
1824
|
_report = _step12.value;
|
|
1828
1825
|
dropped(_report);
|
|
1829
1826
|
}
|
|
@@ -1845,7 +1842,7 @@ function createSessionActor(options, deps) {
|
|
|
1845
1842
|
backoff({});
|
|
1846
1843
|
if (authorizing) failedEligibility(authorizing);
|
|
1847
1844
|
if (frozen && ++retries > 3) {
|
|
1848
|
-
for (_iterator13 = _createForOfIteratorHelperLoose$
|
|
1845
|
+
for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
|
|
1849
1846
|
_report2 = _step13.value;
|
|
1850
1847
|
dropped(_report2);
|
|
1851
1848
|
}
|
|
@@ -1888,7 +1885,7 @@ function createSessionActor(options, deps) {
|
|
|
1888
1885
|
} else if (outcome.kind === "committed") {
|
|
1889
1886
|
if (emergency === sending) emergency = null;
|
|
1890
1887
|
} else if (outcome.kind === "permanent") {
|
|
1891
|
-
for (var _iterator8 = _createForOfIteratorHelperLoose$
|
|
1888
|
+
for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
|
|
1892
1889
|
var report = _step8.value;
|
|
1893
1890
|
disable(report.context);
|
|
1894
1891
|
}
|
|
@@ -1920,7 +1917,7 @@ function createSessionActor(options, deps) {
|
|
|
1920
1917
|
}
|
|
1921
1918
|
function tick() {
|
|
1922
1919
|
if (disposed || visibility === "hidden") return;
|
|
1923
|
-
for (var _iterator9 = _createForOfIteratorHelperLoose$
|
|
1920
|
+
for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
|
|
1924
1921
|
var stream = _step9.value;
|
|
1925
1922
|
var report = prepareDeadline(stream);
|
|
1926
1923
|
if (!(report != null && report.current)) continue;
|
|
@@ -1947,7 +1944,7 @@ function createSessionActor(options, deps) {
|
|
|
1947
1944
|
if (disposed || visibility === "hidden") return;
|
|
1948
1945
|
var delay = Infinity;
|
|
1949
1946
|
if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
|
|
1950
|
-
for (var _iterator0 = _createForOfIteratorHelperLoose$
|
|
1947
|
+
for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
|
|
1951
1948
|
var stream = _step0.value;
|
|
1952
1949
|
var report = prepareDeadline(stream);
|
|
1953
1950
|
if (!(report != null && report.current)) continue;
|
|
@@ -2033,7 +2030,7 @@ function createSessionActor(options, deps) {
|
|
|
2033
2030
|
return guard$2(function () {
|
|
2034
2031
|
if (disposed || next === visibility) return;
|
|
2035
2032
|
visibility = next;
|
|
2036
|
-
for (var _iterator1 = _createForOfIteratorHelperLoose$
|
|
2033
|
+
for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
|
|
2037
2034
|
var stream = _step1.value;
|
|
2038
2035
|
if (stream.state.report.attemptStatus !== "active") continue;
|
|
2039
2036
|
stream.state = reduceObservation(stream.state, {
|
|
@@ -2074,7 +2071,7 @@ function createSessionActor(options, deps) {
|
|
|
2074
2071
|
if (taskDisposed) return;
|
|
2075
2072
|
taskDisposed = true;
|
|
2076
2073
|
if (workflowStream) close(workflowStream, "disposed");
|
|
2077
|
-
for (var _iterator10 = _createForOfIteratorHelperLoose$
|
|
2074
|
+
for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
|
|
2078
2075
|
var capture = _step10.value;
|
|
2079
2076
|
capture.dispose();
|
|
2080
2077
|
}
|
|
@@ -2212,6 +2209,44 @@ function isApprovedResponse(action, response) {
|
|
|
2212
2209
|
return action === SubmissionAction.ENROLL ? result === "Customer Onboarded" : result === "Approved";
|
|
2213
2210
|
}
|
|
2214
2211
|
|
|
2212
|
+
var createStoreImpl = function createStoreImpl(createState) {
|
|
2213
|
+
var state;
|
|
2214
|
+
var listeners = /* @__PURE__ */new Set();
|
|
2215
|
+
var setState = function setState(partial, replace) {
|
|
2216
|
+
var nextState = typeof partial === "function" ? partial(state) : partial;
|
|
2217
|
+
if (!Object.is(nextState, state)) {
|
|
2218
|
+
var previousState = state;
|
|
2219
|
+
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
2220
|
+
listeners.forEach(function (listener) {
|
|
2221
|
+
return listener(state, previousState);
|
|
2222
|
+
});
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
var getState = function getState() {
|
|
2226
|
+
return state;
|
|
2227
|
+
};
|
|
2228
|
+
var getInitialState = function getInitialState() {
|
|
2229
|
+
return initialState;
|
|
2230
|
+
};
|
|
2231
|
+
var subscribe = function subscribe(listener) {
|
|
2232
|
+
listeners.add(listener);
|
|
2233
|
+
return function () {
|
|
2234
|
+
return listeners["delete"](listener);
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2237
|
+
var api = {
|
|
2238
|
+
setState: setState,
|
|
2239
|
+
getState: getState,
|
|
2240
|
+
getInitialState: getInitialState,
|
|
2241
|
+
subscribe: subscribe
|
|
2242
|
+
};
|
|
2243
|
+
var initialState = state = createState(setState, getState, api);
|
|
2244
|
+
return api;
|
|
2245
|
+
};
|
|
2246
|
+
var createStore = function createStore(createState) {
|
|
2247
|
+
return createState ? createStoreImpl(createState) : createStoreImpl;
|
|
2248
|
+
};
|
|
2249
|
+
|
|
2215
2250
|
function sessionReducer(state, action) {
|
|
2216
2251
|
switch (action.type) {
|
|
2217
2252
|
case 'setSessionId':
|
|
@@ -2869,7 +2904,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
2869
2904
|
return t;
|
|
2870
2905
|
}
|
|
2871
2906
|
|
|
2872
|
-
var _excluded$
|
|
2907
|
+
var _excluded$k = ["nonce", "web", "os"];
|
|
2873
2908
|
/**
|
|
2874
2909
|
* Grade the envelope from whichever inputs are present:
|
|
2875
2910
|
* - OS token present -> 'os-attested' (attach `os`)
|
|
@@ -2883,7 +2918,7 @@ function buildClientAttestation(input) {
|
|
|
2883
2918
|
var nonce = input.nonce,
|
|
2884
2919
|
web = input.web,
|
|
2885
2920
|
os = input.os,
|
|
2886
|
-
versions = _objectWithoutPropertiesLoose(input, _excluded$
|
|
2921
|
+
versions = _objectWithoutPropertiesLoose(input, _excluded$k);
|
|
2887
2922
|
if (os) {
|
|
2888
2923
|
return _extends({
|
|
2889
2924
|
assuranceLevel: 'os-attested',
|
|
@@ -3466,9 +3501,9 @@ function blobToB64(blob) {
|
|
|
3466
3501
|
});
|
|
3467
3502
|
}
|
|
3468
3503
|
|
|
3469
|
-
function _createForOfIteratorHelperLoose$
|
|
3470
|
-
function _unsupportedIterableToArray$
|
|
3471
|
-
function _arrayLikeToArray$
|
|
3504
|
+
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."); }
|
|
3505
|
+
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; } }
|
|
3506
|
+
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; }
|
|
3472
3507
|
/**
|
|
3473
3508
|
* Parser for AAMVA (American Association of Motor Vehicle Administrators)
|
|
3474
3509
|
* PDF417 barcode data found on US and Canadian driver's licenses.
|
|
@@ -3730,7 +3765,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3730
3765
|
DAD: false
|
|
3731
3766
|
};
|
|
3732
3767
|
var daaValue = null;
|
|
3733
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
3768
|
+
for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
|
|
3734
3769
|
var line = _step.value;
|
|
3735
3770
|
var match = line.match(fieldRegex);
|
|
3736
3771
|
if (match) {
|
|
@@ -3771,7 +3806,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3771
3806
|
result.fields.push(field);
|
|
3772
3807
|
}
|
|
3773
3808
|
};
|
|
3774
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
3809
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
|
|
3775
3810
|
_loop();
|
|
3776
3811
|
}
|
|
3777
3812
|
}
|
|
@@ -4827,7 +4862,7 @@ function createIdmissionClient(config) {
|
|
|
4827
4862
|
sessionCheckState: 'READY',
|
|
4828
4863
|
canRefreshSession: typeof config.sessionId === 'function'
|
|
4829
4864
|
};
|
|
4830
|
-
var store =
|
|
4865
|
+
var store = createStore(function () {
|
|
4831
4866
|
return {
|
|
4832
4867
|
session: initialSession,
|
|
4833
4868
|
submissionStatus: SubmissionStatus.READY
|
|
@@ -6464,7 +6499,7 @@ var fr = {
|
|
|
6464
6499
|
'Barcode capture in progress, please hold still': 'Capture du code-barres en cours, veuillez ne pas bouger'
|
|
6465
6500
|
};
|
|
6466
6501
|
|
|
6467
|
-
var it = {
|
|
6502
|
+
var it$1 = {
|
|
6468
6503
|
'English - en': 'Italian - it',
|
|
6469
6504
|
'Use your device camera to capture your ID': 'Utilizzare la fotocamera del dispositivo per acquisire il documento',
|
|
6470
6505
|
'Use your iPhone as a webcam': 'Utilizza iPhone come webcam',
|
|
@@ -6760,7 +6795,7 @@ var ja = {
|
|
|
6760
6795
|
'Barcode capture in progress, please hold still': 'バーコードを読み取っています。動かないでください'
|
|
6761
6796
|
};
|
|
6762
6797
|
|
|
6763
|
-
var pt = {
|
|
6798
|
+
var pt$1 = {
|
|
6764
6799
|
'English - en': 'Portuguese (Brazil) - pt',
|
|
6765
6800
|
'Use your device camera to capture your ID': 'Usar a câmera do dispositivo para fotografar sua identidade',
|
|
6766
6801
|
'Use your iPhone as a webcam': 'Use seu iPhone como uma câmera Web',
|
|
@@ -7310,13 +7345,13 @@ var resources = {
|
|
|
7310
7345
|
translation: withThreeOhTranslations('fr', fr)
|
|
7311
7346
|
},
|
|
7312
7347
|
it: {
|
|
7313
|
-
translation: withThreeOhTranslations('it', it)
|
|
7348
|
+
translation: withThreeOhTranslations('it', it$1)
|
|
7314
7349
|
},
|
|
7315
7350
|
ja: {
|
|
7316
7351
|
translation: withThreeOhTranslations('ja', ja)
|
|
7317
7352
|
},
|
|
7318
7353
|
pt: {
|
|
7319
|
-
translation: withThreeOhTranslations('pt', pt)
|
|
7354
|
+
translation: withThreeOhTranslations('pt', pt$1)
|
|
7320
7355
|
},
|
|
7321
7356
|
ru: {
|
|
7322
7357
|
translation: withThreeOhTranslations('ru', ru)
|
|
@@ -7630,11 +7665,11 @@ function useGuideOrientationContext() {
|
|
|
7630
7665
|
return ctx;
|
|
7631
7666
|
}
|
|
7632
7667
|
|
|
7633
|
-
var _templateObject$_, _templateObject2$
|
|
7634
|
-
var _excluded$
|
|
7668
|
+
var _templateObject$_, _templateObject2$Q;
|
|
7669
|
+
var _excluded$j = ["isRearFacing"];
|
|
7635
7670
|
var CameraVideoTag = /*#__PURE__*/React.forwardRef(function CameraVideoTag(_ref, ref) {
|
|
7636
7671
|
var isRearFacing = _ref.isRearFacing,
|
|
7637
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7672
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
7638
7673
|
return jsxRuntime.jsx(FullscreenVideoTag, _extends({
|
|
7639
7674
|
autoPlay: true,
|
|
7640
7675
|
playsInline: true,
|
|
@@ -7646,7 +7681,7 @@ var CameraVideoTag = /*#__PURE__*/React.forwardRef(function CameraVideoTag(_ref,
|
|
|
7646
7681
|
var FullscreenVideoTag = styledComponents.styled.video(_templateObject$_ || (_templateObject$_ = _taggedTemplateLiteralLoose(["\n transform: ", ";\n transform-style: preserve-3d;\n min-width: 100%;\n min-height: 100%;\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n object-fit: cover;\n background: black;\n z-index: -2;\n"])), function (props) {
|
|
7647
7682
|
return props.$isRearFacing ? '' : 'scaleX(-1)';
|
|
7648
7683
|
});
|
|
7649
|
-
var CameraFeedWrapper = styledComponents.styled.div(_templateObject2$
|
|
7684
|
+
var CameraFeedWrapper = styledComponents.styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n /* Keep CameraVideoTag's legacy negative z-index above opaque flow shells. */\n isolation: isolate;\n\n ", "\n\n /* Last, so it wins over both branches' display. */\n ", "\n"])), function (props) {
|
|
7650
7685
|
return props.$mode === 'snapToGuides' ? "display: flex;\n position: absolute;\n z-index: -2;\n left: " + props.$x + "px;\n top: " + props.$y + "px;\n width: " + props.$w + "px;\n height: " + props.$h + "px;\n /* Match the mask's hole when the guide publishes a radius. The mask\n sits above this feed (-1 vs -2), so square corners here show through\n as dimmed wedges outside the rounded hole. Guides that publish no\n radius keep the previous unclipped behaviour. */\n " + (props.$radius ? "border-radius: " + props.$radius + "px; overflow: hidden;" : '') : "display: flex;\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;";
|
|
7651
7686
|
}, function (props) {
|
|
7652
7687
|
return props.$hidden ? 'display: none;' : '';
|
|
@@ -7701,10 +7736,10 @@ function ScalingCameraFeed(_ref2) {
|
|
|
7701
7736
|
});
|
|
7702
7737
|
}
|
|
7703
7738
|
|
|
7704
|
-
var _templateObject$Z, _templateObject2$
|
|
7705
|
-
function _createForOfIteratorHelperLoose$
|
|
7706
|
-
function _unsupportedIterableToArray$
|
|
7707
|
-
function _arrayLikeToArray$
|
|
7739
|
+
var _templateObject$Z, _templateObject2$P, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
|
|
7740
|
+
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."); }
|
|
7741
|
+
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; } }
|
|
7742
|
+
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; }
|
|
7708
7743
|
/** Displays camera readiness and available source-frame dimensions. */
|
|
7709
7744
|
function CameraDebugStatus(_ref) {
|
|
7710
7745
|
var ready = _ref.ready,
|
|
@@ -7721,10 +7756,10 @@ function DebugStatsPane(_ref2) {
|
|
|
7721
7756
|
});
|
|
7722
7757
|
var portalLocation = document.getElementById('idmission-above-guides-content');
|
|
7723
7758
|
if (!portalLocation) return element;
|
|
7724
|
-
return /*#__PURE__*/
|
|
7759
|
+
return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
|
|
7725
7760
|
}
|
|
7726
7761
|
var DebugStatsPaneDiv = styledComponents.styled.span(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-family: monospace;\n position: absolute;\n left: 20px;\n bottom: 20px;\n margin-right: 20px;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.5);\n z-index: 10002;\n pointer-events: none;\n"])));
|
|
7727
|
-
var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject2$
|
|
7762
|
+
var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1001;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n pointer-events: none;\n ", "\n transform-style: preserve-3d;\n"])), function (_ref3) {
|
|
7728
7763
|
var $flipX = _ref3.$flipX;
|
|
7729
7764
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
7730
7765
|
});
|
|
@@ -7969,7 +8004,7 @@ function SelfieCaptureFaceMesh(_ref15) {
|
|
|
7969
8004
|
groups.forEach(function (indices, color) {
|
|
7970
8005
|
ctx.fillStyle = color;
|
|
7971
8006
|
ctx.beginPath();
|
|
7972
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
8007
|
+
for (var _iterator = _createForOfIteratorHelperLoose$s(indices), _step; !(_step = _iterator()).done;) {
|
|
7973
8008
|
var _i = _step.value;
|
|
7974
8009
|
var p = meshLandmarks[_i];
|
|
7975
8010
|
ctx.moveTo(p.x + dotRadius, p.y);
|
|
@@ -8124,7 +8159,7 @@ function BrowserEdgeTint(_ref) {
|
|
|
8124
8159
|
}, []);
|
|
8125
8160
|
if (!target) return null;
|
|
8126
8161
|
var bottomColor = hiddenBottomColor != null ? hiddenBottomColor : color;
|
|
8127
|
-
return /*#__PURE__*/
|
|
8162
|
+
return /*#__PURE__*/ReactDOM.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
8128
8163
|
children: [jsxRuntime.jsx(EdgeStrip, {
|
|
8129
8164
|
"$edge": "top",
|
|
8130
8165
|
"$color": color,
|
|
@@ -8151,7 +8186,7 @@ var EdgeStrip = styledComponents.styled.div(_templateObject$Y || (_templateObjec
|
|
|
8151
8186
|
});
|
|
8152
8187
|
|
|
8153
8188
|
var _templateObject$X;
|
|
8154
|
-
var _excluded$
|
|
8189
|
+
var _excluded$i = ["children", "className", "colors", "disabled", "finished", "variant"];
|
|
8155
8190
|
var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8156
8191
|
var children = _ref.children,
|
|
8157
8192
|
className = _ref.className,
|
|
@@ -8161,7 +8196,7 @@ var LoaderButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
8161
8196
|
finished = _ref.finished,
|
|
8162
8197
|
_ref$variant = _ref.variant,
|
|
8163
8198
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
8164
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8199
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
8165
8200
|
var buttonRef = React.useRef(null);
|
|
8166
8201
|
var laddaRef = React.useRef(null);
|
|
8167
8202
|
var _useState = React.useState(false),
|
|
@@ -8226,7 +8261,7 @@ var StyledButton = styledComponents.styled.button(_templateObject$X || (_templat
|
|
|
8226
8261
|
var _templateObject$W;
|
|
8227
8262
|
var ButtonsRow$2 = styledComponents.styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 0 15px;\n justify-content: center;\n text-align: left;\n"])));
|
|
8228
8263
|
|
|
8229
|
-
var _templateObject$V, _templateObject2$
|
|
8264
|
+
var _templateObject$V, _templateObject2$O;
|
|
8230
8265
|
var GuidanceMessageContainerDiv = styledComponents.styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: calc(", ");\n ", "\n font-weight: bold;\n width: 100%;\n display: flex;\n padding: 0 10%;\n box-sizing: border-box;\n"])), function (_ref) {
|
|
8231
8266
|
var $top = _ref.$top;
|
|
8232
8267
|
return $top != null ? $top : '10%';
|
|
@@ -8238,9 +8273,9 @@ var GuidanceMessageContainer = function GuidanceMessageContainer(props) {
|
|
|
8238
8273
|
var element = jsxRuntime.jsx(GuidanceMessageContainerDiv, _extends({}, props));
|
|
8239
8274
|
var portalLocation = document.getElementById('idmission-above-guides-content');
|
|
8240
8275
|
if (!portalLocation) return element;
|
|
8241
|
-
return /*#__PURE__*/
|
|
8276
|
+
return /*#__PURE__*/ReactDOM.createPortal(element, portalLocation);
|
|
8242
8277
|
};
|
|
8243
|
-
var GuidanceMessage = styledComponents.styled.div(_templateObject2$
|
|
8278
|
+
var GuidanceMessage = styledComponents.styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n margin-right: auto;\n background: ", ";\n color: ", ";\n border-radius: 8px;\n z-index: 10001;\n padding: 16px 24px;\n font-size: 18px;\n font-weight: bold;\n box-shadow:\n 0 1px 3px 0 rgb(0 0 0 / 0.1),\n 0 1px 2px -1px rgb(0 0 0 / 0.1);\n"])), function (props) {
|
|
8244
8279
|
var _ref3, _props$$background, _props$theme, _props$$variant;
|
|
8245
8280
|
return (_ref3 = (_props$$background = props.$background) != null ? _props$$background : (_props$theme = props.theme) == null || (_props$theme = _props$theme.guidanceMessages) == null || (_props$theme = _props$theme[(_props$$variant = props.$variant) != null ? _props$$variant : 'default']) == null ? void 0 : _props$theme.backgroundColor) != null ? _ref3 : 'white';
|
|
8246
8281
|
}, function (props) {
|
|
@@ -8292,19 +8327,19 @@ var PlacedGuidanceMessageContainer = function PlacedGuidanceMessageContainer(_re
|
|
|
8292
8327
|
});
|
|
8293
8328
|
};
|
|
8294
8329
|
|
|
8295
|
-
var _templateObject$U, _templateObject2$
|
|
8330
|
+
var _templateObject$U, _templateObject2$N, _templateObject3$C, _templateObject4$x;
|
|
8296
8331
|
var wavesAnimation = styledComponents.keyframes(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
|
|
8297
|
-
var progressBarAnimation = styledComponents.keyframes(_templateObject2$
|
|
8332
|
+
var progressBarAnimation = styledComponents.keyframes(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
8298
8333
|
styledComponents.keyframes(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
8299
8334
|
styledComponents.keyframes(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
8300
8335
|
|
|
8301
|
-
var _templateObject$T, _templateObject2$
|
|
8336
|
+
var _templateObject$T, _templateObject2$M, _templateObject3$B, _templateObject4$w, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$a, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
|
|
8302
8337
|
var OverlayContainer = styledComponents.styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"])), function (props) {
|
|
8303
8338
|
return props.theme.background ? "" + props.theme.background : "white";
|
|
8304
8339
|
}, function (props) {
|
|
8305
8340
|
return props.theme.textColor ? "color: " + props.theme.textColor + ";" : "";
|
|
8306
8341
|
});
|
|
8307
|
-
var OverlayInner$2 = styledComponents.styled.div(_templateObject2$
|
|
8342
|
+
var OverlayInner$2 = styledComponents.styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n text-align: ", ";\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n width: 100%;\n height: 100%;\n ", "\n"])), function (props) {
|
|
8308
8343
|
var _props$theme$textAlig;
|
|
8309
8344
|
return (_props$theme$textAlig = props.theme.textAlign) != null ? _props$theme$textAlig : 'center';
|
|
8310
8345
|
}, function (props) {
|
|
@@ -8472,15 +8507,15 @@ var error = function error() {
|
|
|
8472
8507
|
return (console.error ).apply(void 0, arguments);
|
|
8473
8508
|
}; // eslint-disable-line no-console
|
|
8474
8509
|
|
|
8475
|
-
var _excluded$
|
|
8510
|
+
var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
|
|
8476
8511
|
_excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
|
|
8477
|
-
var _templateObject$S, _templateObject2$
|
|
8512
|
+
var _templateObject$S, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
8478
8513
|
var IdCardGuideImageContainer = styledComponents.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) {
|
|
8479
8514
|
return props.$isVisible ? '' : 'opacity: 0;';
|
|
8480
8515
|
}, function (props) {
|
|
8481
8516
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
8482
8517
|
});
|
|
8483
|
-
var IdCardGuideImage = styledComponents.styled.img(_templateObject2$
|
|
8518
|
+
var IdCardGuideImage = styledComponents.styled.img(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n transform-style: preserve-3d;\n ", "\n ", "\n"])), function (props) {
|
|
8484
8519
|
return props.$isMirrored ? 'transform: scaleX(-1);' : '';
|
|
8485
8520
|
}, function (props) {
|
|
8486
8521
|
return props.$isInvisible ? 'opacity: 0;' : '';
|
|
@@ -8502,7 +8537,7 @@ function IdCardBorder(_ref) {
|
|
|
8502
8537
|
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
8503
8538
|
_ref$guideBoxDisabled = _ref.guideBoxDisabled,
|
|
8504
8539
|
guideBoxDisabled = _ref$guideBoxDisabled === void 0 ? false : _ref$guideBoxDisabled,
|
|
8505
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8540
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
8506
8541
|
var _useResizeObserver = useResizeObserver(),
|
|
8507
8542
|
ref = _useResizeObserver.ref,
|
|
8508
8543
|
_useResizeObserver$wi = _useResizeObserver.width,
|
|
@@ -8872,7 +8907,7 @@ var Wrapper$1 = styledComponents.styled.div(_templateObject$R || (_templateObjec
|
|
|
8872
8907
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
8873
8908
|
});
|
|
8874
8909
|
|
|
8875
|
-
var _templateObject$Q, _templateObject2$
|
|
8910
|
+
var _templateObject$Q, _templateObject2$K, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
|
|
8876
8911
|
var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
|
|
8877
8912
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid2, _theme$idCapture2, _theme$idCapture$guid3, _theme$idCapture3, _theme$idCapture$guid4, _theme$idCapture4, _theme$idCapture$guid5, _theme$idCapture5;
|
|
8878
8913
|
var _ref$classNames = _ref.classNames,
|
|
@@ -9029,7 +9064,7 @@ var regionClsx = function regionClsx(classNames, which) {
|
|
|
9029
9064
|
}).join(' ');
|
|
9030
9065
|
};
|
|
9031
9066
|
var StyledPageContainer = styledComponents.styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
|
|
9032
|
-
var GuidesContainer = styledComponents.styled.div(_templateObject2$
|
|
9067
|
+
var GuidesContainer = styledComponents.styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
|
|
9033
9068
|
var GuideCenterRow = styledComponents.styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
|
|
9034
9069
|
var GuideRegion = styledComponents.styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
|
|
9035
9070
|
var _ref2, _props$$maskColor, _props$theme;
|
|
@@ -9061,7 +9096,7 @@ var GuideCenterInner = styledComponents.styled.div(_templateObject9$c || (_templ
|
|
|
9061
9096
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
9062
9097
|
var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
|
|
9063
9098
|
|
|
9064
|
-
var _templateObject$P, _templateObject2$
|
|
9099
|
+
var _templateObject$P, _templateObject2$J, _templateObject3$y, _templateObject4$t;
|
|
9065
9100
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
9066
9101
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
|
|
9067
9102
|
var aspectRatio = _ref.aspectRatio,
|
|
@@ -9301,7 +9336,7 @@ var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
|
9301
9336
|
var CanvasWrapper$1 = styledComponents.styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n flex-grow: 1;\n background-clip: padding-box;\n /* The default -1 puts the mask behind a 'fullscreen' camera feed, which hides\n the dimming entirely; it only works because 'snapToGuides' clips the feed to\n the guide rect. Lifting it is opt-in so existing integrations are untouched. */\n ", "\n"])), function (props) {
|
|
9302
9337
|
return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
|
|
9303
9338
|
});
|
|
9304
|
-
var Canvas$2 = styledComponents.styled.canvas(_templateObject2$
|
|
9339
|
+
var Canvas$2 = styledComponents.styled.canvas(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
9305
9340
|
var CaptureAreaProgress = styledComponents.styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
|
|
9306
9341
|
return props.$x;
|
|
9307
9342
|
}, function (props) {
|
|
@@ -9380,7 +9415,7 @@ var ExitCaptureButton = function ExitCaptureButton(_ref) {
|
|
|
9380
9415
|
});
|
|
9381
9416
|
};
|
|
9382
9417
|
|
|
9383
|
-
var _templateObject$N, _templateObject2$
|
|
9418
|
+
var _templateObject$N, _templateObject2$I, _templateObject3$x, _templateObject4$s;
|
|
9384
9419
|
function IdCaptureLoadingGraphic(props) {
|
|
9385
9420
|
var isMobile = window.innerHeight > window.innerWidth;
|
|
9386
9421
|
return isMobile ? jsxRuntime.jsx(IdCaptureLoadingGraphicMobile, _extends({}, props)) : jsxRuntime.jsx(IdCaptureLoadingGraphicDesktop, _extends({}, props));
|
|
@@ -9878,7 +9913,7 @@ function IdCaptureLoadingGraphicMobile(_ref2) {
|
|
|
9878
9913
|
});
|
|
9879
9914
|
}
|
|
9880
9915
|
var LoadingGraphicWrapper = styledComponents.styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n width: 100%;\n height: 100%;\n"])));
|
|
9881
|
-
var LoadingGraphicSvg = styledComponents.styled.svg(_templateObject2$
|
|
9916
|
+
var LoadingGraphicSvg = styledComponents.styled.svg(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n margin: auto;\n transform: scale(\n ", "\n );\n transform-style: preserve-3d;\n transition:\n transform 0.2s linear,\n border-width 0.2s linear;\n border: ", "px solid\n ", ";\n max-height: 80%;\n max-width: 80%;\n"])), function (props) {
|
|
9882
9917
|
return props.$frame > 1 ? 1 : props.$frame === 1 ? 1.25 : 0.75;
|
|
9883
9918
|
}, function (props) {
|
|
9884
9919
|
return props.$frame >= 5 ? 10 : 0;
|
|
@@ -9892,11 +9927,11 @@ var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$s || (
|
|
|
9892
9927
|
return props.$offScreen ? '40px' : '0';
|
|
9893
9928
|
});
|
|
9894
9929
|
|
|
9895
|
-
var _excluded$
|
|
9930
|
+
var _excluded$g = ["state"];
|
|
9896
9931
|
function LoadingListItemIndicator(_ref) {
|
|
9897
9932
|
var _ref$state = _ref.state,
|
|
9898
9933
|
state = _ref$state === void 0 ? 'running' : _ref$state,
|
|
9899
|
-
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9934
|
+
svgProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
9900
9935
|
return jsxRuntime.jsx("svg", _extends({
|
|
9901
9936
|
width: "16",
|
|
9902
9937
|
height: "16",
|
|
@@ -10146,7 +10181,7 @@ function CustomerLoadingSpinner(_ref2) {
|
|
|
10146
10181
|
// parent's gap/padding, which would offset the fallback it sits next to.
|
|
10147
10182
|
var SpinnerSlot = styledComponents.styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
|
|
10148
10183
|
|
|
10149
|
-
var _templateObject$L, _templateObject2$
|
|
10184
|
+
var _templateObject$L, _templateObject2$H, _templateObject3$w, _templateObject4$r, _templateObject5$p;
|
|
10150
10185
|
var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
|
|
10151
10186
|
// Module-level so the default `now` prop has a stable identity across
|
|
10152
10187
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -10342,7 +10377,7 @@ var OverlayInner$1 = styledComponents.styled(LoadingOverlayInner)(_templateObjec
|
|
|
10342
10377
|
var _props$theme$idCaptur2, _props$theme2;
|
|
10343
10378
|
return (_props$theme$idCaptur2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.idCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$idCaptur2 : 'black';
|
|
10344
10379
|
});
|
|
10345
|
-
var ButtonsRow$1 = styledComponents.styled(LoadingOverlayButtonsRow)(_templateObject2$
|
|
10380
|
+
var ButtonsRow$1 = styledComponents.styled(LoadingOverlayButtonsRow)(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
|
|
10346
10381
|
var _props$theme$idCaptur3, _props$theme3;
|
|
10347
10382
|
return (_props$theme$idCaptur3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.idCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$idCaptur3 : 'white';
|
|
10348
10383
|
}, function (props) {
|
|
@@ -10401,9 +10436,9 @@ function loadingOverlayBottomEdgeColor(theme, modelsReady) {
|
|
|
10401
10436
|
});
|
|
10402
10437
|
}
|
|
10403
10438
|
|
|
10404
|
-
function _createForOfIteratorHelperLoose$
|
|
10405
|
-
function _unsupportedIterableToArray$
|
|
10406
|
-
function _arrayLikeToArray$
|
|
10439
|
+
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."); }
|
|
10440
|
+
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; } }
|
|
10441
|
+
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; }
|
|
10407
10442
|
var DEFAULT_THRESHOLD = 0.03;
|
|
10408
10443
|
// Minimum confidence a `'Finger'` detection must clear before it counts
|
|
10409
10444
|
// toward occlusion. The LiteRT document detector emits low-score
|
|
@@ -10454,7 +10489,7 @@ function computeFingerOcclusion(bestDocument, detectedObjects, documentType, thr
|
|
|
10454
10489
|
// overlap each other the shared area gets double-counted — that errs
|
|
10455
10490
|
// toward over-blocking, which is the safer direction for occlusion.
|
|
10456
10491
|
var totalOverlap = 0;
|
|
10457
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10492
|
+
for (var _iterator = _createForOfIteratorHelperLoose$r(detectedObjects), _step; !(_step = _iterator()).done;) {
|
|
10458
10493
|
var obj = _step.value;
|
|
10459
10494
|
if (obj.label !== 'Finger') continue;
|
|
10460
10495
|
if (obj.score < MIN_FINGER_SCORE) continue;
|
|
@@ -10486,7 +10521,7 @@ function anyOverlapByLabel(bestDocument, detectedObjects, label, minScore) {
|
|
|
10486
10521
|
if (!bestDocument) return false;
|
|
10487
10522
|
var docBox = bestDocument.box;
|
|
10488
10523
|
if (docBox.width <= 0 || docBox.height <= 0) return false;
|
|
10489
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
10524
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$r(detectedObjects), _step2; !(_step2 = _iterator2()).done;) {
|
|
10490
10525
|
var obj = _step2.value;
|
|
10491
10526
|
if (obj.label !== label) continue;
|
|
10492
10527
|
if (obj.score < minScore) continue;
|
|
@@ -10662,9 +10697,9 @@ var initialFlowState = {
|
|
|
10662
10697
|
|
|
10663
10698
|
var CapturedDocumentTypeValues = ['idCardFront', 'idCardBack', 'passport', 'singlePage', 'selfie', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage', 'idBarcodeImage'];
|
|
10664
10699
|
|
|
10665
|
-
function _createForOfIteratorHelperLoose$
|
|
10666
|
-
function _unsupportedIterableToArray$
|
|
10667
|
-
function _arrayLikeToArray$
|
|
10700
|
+
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."); }
|
|
10701
|
+
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; } }
|
|
10702
|
+
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; }
|
|
10668
10703
|
// Tuning constants — seeded estimates. Expect on-device tuning against real
|
|
10669
10704
|
// captures across angles/devices (same posture as the liveness geometry).
|
|
10670
10705
|
var CONTAINMENT_MIN = 0.8; // fraction of inner box inside the outer box
|
|
@@ -10692,7 +10727,7 @@ function containment(inner, outer) {
|
|
|
10692
10727
|
}
|
|
10693
10728
|
function bestByLabel(objs, label) {
|
|
10694
10729
|
var best = null;
|
|
10695
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10730
|
+
for (var _iterator = _createForOfIteratorHelperLoose$q(objs), _step; !(_step = _iterator()).done;) {
|
|
10696
10731
|
var o = _step.value;
|
|
10697
10732
|
if (o.label !== label) continue;
|
|
10698
10733
|
if (o.score < MIN_BOOKLET_SCORE) continue;
|
|
@@ -10867,9 +10902,9 @@ function remainingIdCaptureRequirements(captureRequirement, capturedDocuments, r
|
|
|
10867
10902
|
});
|
|
10868
10903
|
}
|
|
10869
10904
|
|
|
10870
|
-
function _createForOfIteratorHelperLoose$
|
|
10871
|
-
function _unsupportedIterableToArray$
|
|
10872
|
-
function _arrayLikeToArray$
|
|
10905
|
+
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."); }
|
|
10906
|
+
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; } }
|
|
10907
|
+
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; }
|
|
10873
10908
|
/**
|
|
10874
10909
|
* Clears the current frame's verdict (sdk2 idCaptureReducer.ts:367-389). Both
|
|
10875
10910
|
* of these describe "the last frame we looked at", so they are meaningless —
|
|
@@ -10953,7 +10988,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
|
|
|
10953
10988
|
// from one the user captured -- `documentCaptured` erases the
|
|
10954
10989
|
// difference by design (see state.ts precapturedDocumentTypes).
|
|
10955
10990
|
var seeded = [];
|
|
10956
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
10991
|
+
for (var _iterator = _createForOfIteratorHelperLoose$p(CapturedDocumentTypeValues), _step; !(_step = _iterator()).done;) {
|
|
10957
10992
|
var k = _step.value;
|
|
10958
10993
|
var payload = precapturedDocuments[k];
|
|
10959
10994
|
if (payload) {
|
|
@@ -11291,7 +11326,7 @@ var _reduceIdCapture = function reduceIdCapture(state, action, now) {
|
|
|
11291
11326
|
case 'documentsCaptured':
|
|
11292
11327
|
{
|
|
11293
11328
|
var _newState2 = _extends({}, state);
|
|
11294
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
11329
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$p(action.payload), _step2; !(_step2 = _iterator2()).done;) {
|
|
11295
11330
|
var doc = _step2.value;
|
|
11296
11331
|
_newState2 = _reduceIdCapture(_newState2, {
|
|
11297
11332
|
type: 'documentCaptured',
|
|
@@ -13493,9 +13528,9 @@ function evaluateIsMobile(nav) {
|
|
|
13493
13528
|
return false;
|
|
13494
13529
|
}
|
|
13495
13530
|
|
|
13496
|
-
function _createForOfIteratorHelperLoose$
|
|
13497
|
-
function _unsupportedIterableToArray$
|
|
13498
|
-
function _arrayLikeToArray$
|
|
13531
|
+
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."); }
|
|
13532
|
+
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; } }
|
|
13533
|
+
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; }
|
|
13499
13534
|
// zxing-js UMD build, self-hosted on the SDK's own CDN (version-pinned) rather
|
|
13500
13535
|
// than fetched from unpkg. The previous `@latest` URL was both an external
|
|
13501
13536
|
// dependency and a supply-chain risk — it executed whatever unpkg served as
|
|
@@ -14235,7 +14270,7 @@ function _decodePDF() {
|
|
|
14235
14270
|
}
|
|
14236
14271
|
base = _bases[_i];
|
|
14237
14272
|
log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0...");
|
|
14238
|
-
_iterator = _createForOfIteratorHelperLoose$
|
|
14273
|
+
_iterator = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
|
|
14239
14274
|
case 11:
|
|
14240
14275
|
if ((_step = _iterator()).done) {
|
|
14241
14276
|
_context0.next = 14;
|
|
@@ -14760,7 +14795,7 @@ function _decodePDF417WithDetails() {
|
|
|
14760
14795
|
}
|
|
14761
14796
|
base = _bases2[_i2];
|
|
14762
14797
|
log$1("[NativeBarcodeDecoder] Trying fine rotation deskew around " + base.angle + "\xB0 (detailed)...");
|
|
14763
|
-
_iterator2 = _createForOfIteratorHelperLoose$
|
|
14798
|
+
_iterator2 = _createForOfIteratorHelperLoose$o(FINE_ROTATION_ANGLES);
|
|
14764
14799
|
case 12:
|
|
14765
14800
|
if ((_step2 = _iterator2()).done) {
|
|
14766
14801
|
_context12.next = 15;
|
|
@@ -14879,9 +14914,9 @@ var CaptureAttachError = /*#__PURE__*/function (_Error) {
|
|
|
14879
14914
|
return CaptureAttachError;
|
|
14880
14915
|
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
14881
14916
|
|
|
14882
|
-
function _createForOfIteratorHelperLoose$
|
|
14883
|
-
function _unsupportedIterableToArray$
|
|
14884
|
-
function _arrayLikeToArray$
|
|
14917
|
+
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."); }
|
|
14918
|
+
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; } }
|
|
14919
|
+
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; }
|
|
14885
14920
|
/**
|
|
14886
14921
|
* Analyzes barcode readability for a detected document
|
|
14887
14922
|
* (IdCaptureModelsProvider.tsx:83-199, ported verbatim; the last two
|
|
@@ -15342,7 +15377,7 @@ function createDetectionPipeline(opts) {
|
|
|
15342
15377
|
});
|
|
15343
15378
|
if (failed) {
|
|
15344
15379
|
loadSettled = true;
|
|
15345
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
15380
|
+
for (var _iterator = _createForOfIteratorHelperLoose$n(lifecycleHandles), _step; !(_step = _iterator()).done;) {
|
|
15346
15381
|
var handle = _step.value;
|
|
15347
15382
|
handle.cancel();
|
|
15348
15383
|
}
|
|
@@ -16628,9 +16663,9 @@ function maybeDataUrlToBase64Sync(url) {
|
|
|
16628
16663
|
return dataUrlToBase64Sync(url);
|
|
16629
16664
|
}
|
|
16630
16665
|
|
|
16631
|
-
function _createForOfIteratorHelperLoose$
|
|
16632
|
-
function _unsupportedIterableToArray$
|
|
16633
|
-
function _arrayLikeToArray$
|
|
16666
|
+
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."); }
|
|
16667
|
+
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; } }
|
|
16668
|
+
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; }
|
|
16634
16669
|
// Document types whose capture attempt becomes an upload's `filemetadata`, in
|
|
16635
16670
|
// write order: `singlePage` after `idCardFront` so it wins `idFrontImage`,
|
|
16636
16671
|
// exactly as the image does below.
|
|
@@ -16720,7 +16755,7 @@ function buildIdCaptureArtifacts(inputs, now) {
|
|
|
16720
16755
|
};
|
|
16721
16756
|
if (ocrMetadata) meta.ocrMetadata = ocrMetadata;
|
|
16722
16757
|
var documentFileMetadata = {};
|
|
16723
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
16758
|
+
for (var _iterator = _createForOfIteratorHelperLoose$m(FILE_METADATA_KEYS), _step; !(_step = _iterator()).done;) {
|
|
16724
16759
|
var _step$value = _slicedToArray(_step.value, 2),
|
|
16725
16760
|
documentType = _step$value[0],
|
|
16726
16761
|
documentKey = _step$value[1];
|
|
@@ -16747,10 +16782,10 @@ function buildIdCaptureArtifacts(inputs, now) {
|
|
|
16747
16782
|
};
|
|
16748
16783
|
}
|
|
16749
16784
|
|
|
16750
|
-
var _excluded$
|
|
16751
|
-
function _createForOfIteratorHelperLoose$
|
|
16752
|
-
function _unsupportedIterableToArray$
|
|
16753
|
-
function _arrayLikeToArray$
|
|
16785
|
+
var _excluded$f = ["bestBarcodeScore", "barcodeBoundingBox"];
|
|
16786
|
+
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."); }
|
|
16787
|
+
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; } }
|
|
16788
|
+
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; }
|
|
16754
16789
|
// sdk2/src/components/id_capture/IdCaptureWizard.tsx:253-262
|
|
16755
16790
|
var lastDocumentDetectedAtDefaults = {
|
|
16756
16791
|
idCardFront: null,
|
|
@@ -16831,7 +16866,7 @@ function createIdCaptureController(config) {
|
|
|
16831
16866
|
// ---------------------------------------------------------------------
|
|
16832
16867
|
// Store
|
|
16833
16868
|
// ---------------------------------------------------------------------
|
|
16834
|
-
var internal =
|
|
16869
|
+
var internal = createStore(function () {
|
|
16835
16870
|
return _extends({}, initialFlowState, {
|
|
16836
16871
|
error: null,
|
|
16837
16872
|
submission: 'idle',
|
|
@@ -16920,7 +16955,7 @@ function createIdCaptureController(config) {
|
|
|
16920
16955
|
// payload.ts's buildNoBarcodeOCRMetadata fallback counts).
|
|
16921
16956
|
var bestBarcodeScore = metadata.bestBarcodeScore,
|
|
16922
16957
|
barcodeBoundingBox = metadata.barcodeBoundingBox,
|
|
16923
|
-
captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$
|
|
16958
|
+
captureAttemptWithoutBarcode = _objectWithoutPropertiesLoose(metadata, _excluded$f);
|
|
16924
16959
|
captureAttempts.back.push(captureAttemptWithoutBarcode);
|
|
16925
16960
|
// :619-629 -- appended whenever a barcode score was recorded at all
|
|
16926
16961
|
// (0 counts: auto-capture stamps `bestBarcodeScore: bestBarcode?.score
|
|
@@ -16960,7 +16995,7 @@ function createIdCaptureController(config) {
|
|
|
16960
16995
|
}
|
|
16961
16996
|
}
|
|
16962
16997
|
function clearAllTimers() {
|
|
16963
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
16998
|
+
for (var _iterator = _createForOfIteratorHelperLoose$l(timers.values()), _step; !(_step = _iterator()).done;) {
|
|
16964
16999
|
var handle = _step.value;
|
|
16965
17000
|
io.clearTimeout(handle);
|
|
16966
17001
|
}
|
|
@@ -18996,7 +19031,7 @@ function instructionVerbiage(bag, code) {
|
|
|
18996
19031
|
return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
|
|
18997
19032
|
}
|
|
18998
19033
|
|
|
18999
|
-
var _templateObject$K, _templateObject2$
|
|
19034
|
+
var _templateObject$K, _templateObject2$G, _templateObject3$v, _templateObject4$q, _templateObject5$o;
|
|
19000
19035
|
var PDF417_ASPECT_RATIO = 3 / 1;
|
|
19001
19036
|
function BarcodeGuideOverlay(_ref) {
|
|
19002
19037
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
@@ -19127,14 +19162,14 @@ function BarcodeGuideOverlay(_ref) {
|
|
|
19127
19162
|
});
|
|
19128
19163
|
}
|
|
19129
19164
|
var Wrapper = styledComponents.styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n"])));
|
|
19130
|
-
var Canvas$1 = styledComponents.styled.canvas(_templateObject2$
|
|
19165
|
+
var Canvas$1 = styledComponents.styled.canvas(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
19131
19166
|
var TextOverlay = styledComponents.styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding-top: 48px;\n pointer-events: none;\n z-index: 2;\n"])));
|
|
19132
19167
|
var HeaderText = styledComponents.styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n margin-bottom: 16px;\n"])));
|
|
19133
19168
|
var InstructionText = styledComponents.styled.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 16px;\n font-weight: 400;\n text-align: center;\n max-width: 300px;\n line-height: 1.4;\n opacity: 0.9;\n"])));
|
|
19134
19169
|
|
|
19135
|
-
var _templateObject$J, _templateObject2$
|
|
19170
|
+
var _templateObject$J, _templateObject2$F, _templateObject3$u, _templateObject4$p, _templateObject5$n, _templateObject6$h;
|
|
19136
19171
|
var scaleIn = styledComponents.keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"])));
|
|
19137
|
-
var drawCheck = styledComponents.keyframes(_templateObject2$
|
|
19172
|
+
var drawCheck = styledComponents.keyframes(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
|
|
19138
19173
|
styledComponents.styled.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
|
|
19139
19174
|
styledComponents.styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n animation: ", " 0.4s ease-out forwards;\n"])), function (props) {
|
|
19140
19175
|
return props.$color;
|
|
@@ -19234,7 +19269,7 @@ function IdCaptureGuides(_ref) {
|
|
|
19234
19269
|
});
|
|
19235
19270
|
}
|
|
19236
19271
|
|
|
19237
|
-
var _templateObject$I, _templateObject2$
|
|
19272
|
+
var _templateObject$I, _templateObject2$E, _templateObject3$t, _templateObject4$o, _templateObject5$m;
|
|
19238
19273
|
function OverrideWrongDocumentTypeDialog(_ref) {
|
|
19239
19274
|
var visible = _ref.visible,
|
|
19240
19275
|
onOverride = _ref.onOverride,
|
|
@@ -19273,7 +19308,7 @@ var Container$3 = styledComponents.styled.div(_templateObject$I || (_templateObj
|
|
|
19273
19308
|
var _props$theme$idCaptur3, _props$theme$idCaptur4;
|
|
19274
19309
|
return (_props$theme$idCaptur3 = (_props$theme$idCaptur4 = props.theme.idCapture) == null || (_props$theme$idCaptur4 = _props$theme$idCaptur4.overrideWrongDocumentTypeGuidance) == null ? void 0 : _props$theme$idCaptur4.textColor) != null ? _props$theme$idCaptur3 : 'black';
|
|
19275
19310
|
});
|
|
19276
|
-
var InnerContainer = styledComponents.styled.div(_templateObject2$
|
|
19311
|
+
var InnerContainer = styledComponents.styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
19277
19312
|
var Message = styledComponents.styled.span(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
19278
19313
|
var ButtonContainer = styledComponents.styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
|
|
19279
19314
|
var Button = styledComponents.styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
@@ -19383,7 +19418,7 @@ var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref)
|
|
|
19383
19418
|
});
|
|
19384
19419
|
};
|
|
19385
19420
|
|
|
19386
|
-
var _templateObject$H, _templateObject2$
|
|
19421
|
+
var _templateObject$H, _templateObject2$D;
|
|
19387
19422
|
var RING_SIZE = 74;
|
|
19388
19423
|
var RADIUS = 32;
|
|
19389
19424
|
var CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
@@ -19429,7 +19464,7 @@ var RingProgress = function RingProgress(_ref) {
|
|
|
19429
19464
|
});
|
|
19430
19465
|
};
|
|
19431
19466
|
var RingSvg = styledComponents.styled.svg(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: ", "px;\n height: ", "px;\n transform: rotate(-90deg);\n"])), RING_SIZE, RING_SIZE);
|
|
19432
|
-
var FillCircle = styledComponents.styled.circle(_templateObject2$
|
|
19467
|
+
var FillCircle = styledComponents.styled.circle(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n transition: stroke-dashoffset 0.3s linear;\n"])));
|
|
19433
19468
|
|
|
19434
19469
|
var selectRingStatusKey = function selectRingStatusKey(_ref) {
|
|
19435
19470
|
var ready = _ref.ready,
|
|
@@ -19444,7 +19479,7 @@ var selectRingStatusKey = function selectRingStatusKey(_ref) {
|
|
|
19444
19479
|
return 'warming';
|
|
19445
19480
|
};
|
|
19446
19481
|
|
|
19447
|
-
var _templateObject$G, _templateObject2$
|
|
19482
|
+
var _templateObject$G, _templateObject2$C, _templateObject3$s, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9, _templateObject10$9;
|
|
19448
19483
|
/**
|
|
19449
19484
|
* The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
|
|
19450
19485
|
* badge, title/subtitle, step chips, reassurance chip, "Enable camera &
|
|
@@ -19524,7 +19559,7 @@ var RingIntroScreen = function RingIntroScreen(_ref) {
|
|
|
19524
19559
|
});
|
|
19525
19560
|
};
|
|
19526
19561
|
var _float = styledComponents.keyframes(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
|
|
19527
|
-
var sweep = styledComponents.keyframes(_templateObject2$
|
|
19562
|
+
var sweep = styledComponents.keyframes(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n from { transform: translateX(-100%); }\n to { transform: translateX(100%); }\n"])));
|
|
19528
19563
|
var IntroLayout = styledComponents.styled.div(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 34px;\n text-align: center;\n"])));
|
|
19529
19564
|
var Badge = styledComponents.styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n width: 84px;\n height: 84px;\n border-radius: 28px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 12px 28px\n color-mix(in srgb, ", " 35%, transparent);\n margin-bottom: 8px;\n animation: ", " 3s ease-in-out infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n svg {\n width: 40px;\n height: 40px;\n fill: #ffffff;\n }\n"])), function (props) {
|
|
19530
19565
|
return props.$color;
|
|
@@ -19574,7 +19609,7 @@ var selectRingOverlayStage = function selectRingOverlayStage(_ref) {
|
|
|
19574
19609
|
return requesting ? 'requesting' : 'intro';
|
|
19575
19610
|
};
|
|
19576
19611
|
|
|
19577
|
-
var _templateObject$F, _templateObject2$
|
|
19612
|
+
var _templateObject$F, _templateObject2$B, _templateObject3$r, _templateObject4$m, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
|
|
19578
19613
|
/** Minimum time a stage handoff stays on screen so its message is
|
|
19579
19614
|
* legible even when everything preloaded and readiness is instant. */
|
|
19580
19615
|
var STAGE_TRANSITION_HOLD_MS = 1600;
|
|
@@ -19634,7 +19669,7 @@ var RingStageTransition = function RingStageTransition(_ref) {
|
|
|
19634
19669
|
});
|
|
19635
19670
|
};
|
|
19636
19671
|
var badgePop = styledComponents.keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n 0% { transform: scale(0.4); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); opacity: 1; }\n"])));
|
|
19637
|
-
var cardFlip = styledComponents.keyframes(_templateObject2$
|
|
19672
|
+
var cardFlip = styledComponents.keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
|
|
19638
19673
|
var microcopyBeat = styledComponents.keyframes(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n 0% { opacity: 0; transform: translateY(6px); }\n 18% { opacity: 1; transform: translateY(0); }\n 60% { opacity: 1; transform: translateY(0); }\n 80% { opacity: 0; transform: translateY(-6px); }\n 100% { opacity: 0; }\n"])));
|
|
19639
19674
|
var rise = styledComponents.keyframes(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
|
|
19640
19675
|
var riseSubtle = styledComponents.keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
|
|
@@ -19665,7 +19700,7 @@ var LoadingRow = styledComponents.styled.div(_templateObject15$4 || (_templateOb
|
|
|
19665
19700
|
return props.$visible ? 1 : 0;
|
|
19666
19701
|
});
|
|
19667
19702
|
|
|
19668
|
-
var _templateObject$E, _templateObject2$
|
|
19703
|
+
var _templateObject$E, _templateObject2$A, _templateObject3$q, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$c;
|
|
19669
19704
|
// Module-level so the default `now` prop has a stable identity across
|
|
19670
19705
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
19671
19706
|
var defaultNow$2 = function defaultNow() {
|
|
@@ -19940,7 +19975,7 @@ var IdCaptureLoadingOverlayRing = function IdCaptureLoadingOverlayRing(_ref) {
|
|
|
19940
19975
|
});
|
|
19941
19976
|
};
|
|
19942
19977
|
var overlayFadeIn$1 = styledComponents.keyframes(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
19943
|
-
var RingOverlayInner$1 = styledComponents.styled(LoadingOverlayInner)(_templateObject2$
|
|
19978
|
+
var RingOverlayInner$1 = styledComponents.styled(LoadingOverlayInner)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
|
|
19944
19979
|
var _props$theme$idCaptur, _props$theme;
|
|
19945
19980
|
var tintBase = (_props$theme$idCaptur = (_props$theme = props.theme) == null || (_props$theme = _props$theme.idCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$idCaptur : 'var(--idm-color-primary-500)';
|
|
19946
19981
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
|
|
@@ -19967,7 +20002,7 @@ var ContinueButton$2 = styledComponents.styled(LoaderButton)(_templateObject7$c
|
|
|
19967
20002
|
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';
|
|
19968
20003
|
});
|
|
19969
20004
|
|
|
19970
|
-
var _excluded$
|
|
20005
|
+
var _excluded$e = ["mode"];
|
|
19971
20006
|
var components$1 = {
|
|
19972
20007
|
"default": IdCaptureLoadingOverlayDefault,
|
|
19973
20008
|
legacy: IdCaptureLoadingOverlayLegacy,
|
|
@@ -19977,7 +20012,7 @@ var IdCaptureLoadingOverlay = function IdCaptureLoadingOverlay(_ref) {
|
|
|
19977
20012
|
var _components$mode;
|
|
19978
20013
|
var _ref$mode = _ref.mode,
|
|
19979
20014
|
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
19980
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20015
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
19981
20016
|
var Component = (_components$mode = components$1[mode]) != null ? _components$mode : components$1["default"];
|
|
19982
20017
|
return jsxRuntime.jsx(Component, _extends({}, props));
|
|
19983
20018
|
};
|
|
@@ -20044,11 +20079,11 @@ var CapturedDocumentImg = function CapturedDocumentImg(_ref) {
|
|
|
20044
20079
|
});
|
|
20045
20080
|
};
|
|
20046
20081
|
|
|
20047
|
-
var _templateObject$D, _templateObject2$
|
|
20082
|
+
var _templateObject$D, _templateObject2$z;
|
|
20048
20083
|
var Card = styledComponents.styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100% - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
|
|
20049
|
-
var FlexCard = styledComponents.styled(Card)(_templateObject2$
|
|
20084
|
+
var FlexCard = styledComponents.styled(Card)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
20050
20085
|
|
|
20051
|
-
var _templateObject$C, _templateObject2$
|
|
20086
|
+
var _templateObject$C, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
|
|
20052
20087
|
function ReviewDocumentDiagnostics(_ref) {
|
|
20053
20088
|
var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
|
|
20054
20089
|
var document = _ref.document,
|
|
@@ -20508,7 +20543,7 @@ function RotationAttemptRow(_ref3) {
|
|
|
20508
20543
|
});
|
|
20509
20544
|
}
|
|
20510
20545
|
var DebugInfoContainer = styledComponents.styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border-radius: 6px;\n border: 1px solid #e9ecef;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n line-height: 1.35;\n text-align: left;\n"])));
|
|
20511
|
-
var DebugSection = styledComponents.styled.div(_templateObject2$
|
|
20546
|
+
var DebugSection = styledComponents.styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
|
|
20512
20547
|
var DebugLabel = styledComponents.styled.span(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
|
|
20513
20548
|
var DebugValue = styledComponents.styled.span(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
|
|
20514
20549
|
var ScoreBadge = styledComponents.styled.span(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n padding: 0.1875rem 0.5rem;\n border: 1px solid\n ", ";\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 0.75rem;\n font-weight: 600;\n"])), function (_ref4) {
|
|
@@ -20623,7 +20658,7 @@ var DiagnosticsBadge = styledComponents.styled.span(_templateObject44 || (_templ
|
|
|
20623
20658
|
return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
|
|
20624
20659
|
});
|
|
20625
20660
|
|
|
20626
|
-
var _templateObject$B, _templateObject2$
|
|
20661
|
+
var _templateObject$B, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$h;
|
|
20627
20662
|
var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
|
|
20628
20663
|
var ReviewScreen = function ReviewScreen(_ref) {
|
|
20629
20664
|
var capturedDocuments = _ref.capturedDocuments,
|
|
@@ -20711,12 +20746,12 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20711
20746
|
});
|
|
20712
20747
|
};
|
|
20713
20748
|
var Heading$9 = styledComponents.styled.h1(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
|
|
20714
|
-
var ImagesContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$
|
|
20749
|
+
var ImagesContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
20715
20750
|
var ImageRow = styledComponents.styled(OverlayImageRow)(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
20716
20751
|
var ImageCol$1 = styledComponents.styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
20717
20752
|
var StyledImage = styledComponents.styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
20718
20753
|
|
|
20719
|
-
var _templateObject$A, _templateObject2$
|
|
20754
|
+
var _templateObject$A, _templateObject2$w, _templateObject3$n, _templateObject4$i;
|
|
20720
20755
|
var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
20721
20756
|
var _assets$imageUrl, _classNames$container;
|
|
20722
20757
|
var onRetry = _ref.onRetry,
|
|
@@ -20776,11 +20811,11 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
|
20776
20811
|
});
|
|
20777
20812
|
};
|
|
20778
20813
|
var StyledOverlayInner$2 = styledComponents.styled(OverlayInner$2)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
|
|
20779
|
-
var StyledOverlayImageContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$
|
|
20814
|
+
var StyledOverlayImageContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
|
|
20780
20815
|
var Description$3 = styledComponents.styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
|
|
20781
20816
|
var RetryButton$1 = styledComponents.styled(LoaderButton)(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
|
|
20782
20817
|
|
|
20783
|
-
var _templateObject$z, _templateObject2$
|
|
20818
|
+
var _templateObject$z, _templateObject2$v, _templateObject3$m;
|
|
20784
20819
|
var ErrorScreen = function ErrorScreen(_ref) {
|
|
20785
20820
|
var error = _ref.error,
|
|
20786
20821
|
onRetry = _ref.onRetry,
|
|
@@ -20972,7 +21007,7 @@ var cameraFailureClassNames = function cameraFailureClassNames(own, bag) {
|
|
|
20972
21007
|
// IdCaptureLoadingOverlayDefault's `theme...textColor ?? 'black'`); do the
|
|
20973
21008
|
// same here rather than inherit a foreground meant for the dark overlays.
|
|
20974
21009
|
var ErrorCard = styledComponents.styled(FlexCard)(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
|
|
20975
|
-
var Heading$8 = styledComponents.styled.h1(_templateObject2$
|
|
21010
|
+
var Heading$8 = styledComponents.styled.h1(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
|
|
20976
21011
|
var Description$2 = styledComponents.styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
|
|
20977
21012
|
|
|
20978
21013
|
// The one file-read both fallback screens use.
|
|
@@ -21014,7 +21049,7 @@ function fallbackCaptureMoreLabelForStep(idCaptureRequirement, idCardBackCapture
|
|
|
21014
21049
|
return key === 'third' ? 'ID page of passport' : 'back of ID card';
|
|
21015
21050
|
}
|
|
21016
21051
|
|
|
21017
|
-
var _templateObject$y, _templateObject2$
|
|
21052
|
+
var _templateObject$y, _templateObject2$u, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$c, _templateObject7$a;
|
|
21018
21053
|
function IdCaptureFallback(_ref) {
|
|
21019
21054
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21020
21055
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21184,14 +21219,14 @@ function IdCaptureFallback(_ref) {
|
|
|
21184
21219
|
});
|
|
21185
21220
|
}
|
|
21186
21221
|
var StyledOverlayInner$1 = styledComponents.styled(OverlayInner$2)(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
21187
|
-
var Heading$7 = styledComponents.styled.h3(_templateObject2$
|
|
21222
|
+
var Heading$7 = styledComponents.styled.h3(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21188
21223
|
var Description$1 = styledComponents.styled.p(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21189
21224
|
var Instruction = styledComponents.styled.p(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21190
21225
|
var ReadFailed$1 = styledComponents.styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21191
21226
|
var ImageCol = styledComponents.styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
|
|
21192
21227
|
var StyledButtonsRow$6 = styledComponents.styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
21193
21228
|
|
|
21194
|
-
var _templateObject$x, _templateObject2$
|
|
21229
|
+
var _templateObject$x, _templateObject2$t, _templateObject3$k, _templateObject4$g, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
|
|
21195
21230
|
function IdCaptureOrUploadScreen(_ref) {
|
|
21196
21231
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21197
21232
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21442,7 +21477,7 @@ var ScreenContainer = styledComponents.styled.div(_templateObject$x || (_templat
|
|
|
21442
21477
|
var _props$theme$backgrou, _props$theme;
|
|
21443
21478
|
return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
21444
21479
|
});
|
|
21445
|
-
var ScreenPanel = styledComponents.styled.div(_templateObject2$
|
|
21480
|
+
var ScreenPanel = styledComponents.styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
|
|
21446
21481
|
var DashedSeparator = styledComponents.styled.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 320px;\n border-top: 1px dashed currentColor;\n opacity: 0.4;\n"])));
|
|
21447
21482
|
var OrWrapper = styledComponents.styled.span(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
|
|
21448
21483
|
var _props$theme$backgrou2, _props$theme2;
|
|
@@ -21560,9 +21595,9 @@ function useSessionReady() {
|
|
|
21560
21595
|
}
|
|
21561
21596
|
|
|
21562
21597
|
var _templateObject$w;
|
|
21563
|
-
function _createForOfIteratorHelperLoose$
|
|
21564
|
-
function _unsupportedIterableToArray$
|
|
21565
|
-
function _arrayLikeToArray$
|
|
21598
|
+
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."); }
|
|
21599
|
+
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; } }
|
|
21600
|
+
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; }
|
|
21566
21601
|
// Unlike SelfieCaptureView/FaceLivenessView, this view has no root
|
|
21567
21602
|
// container of its own -- ScalingCameraFeed/IdCaptureGuides/etc. render as
|
|
21568
21603
|
// siblings relying on whatever positioned ancestor the host page provides.
|
|
@@ -21830,7 +21865,7 @@ function IdCaptureViewContent(_ref) {
|
|
|
21830
21865
|
// after this effect first runs with an empty state). Folding it in here,
|
|
21831
21866
|
// rather than seeding once on mount, is what makes the skip actually
|
|
21832
21867
|
// apply. `seen` keeps a consumed exclusion from being re-armed.
|
|
21833
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
21868
|
+
for (var _iterator = _createForOfIteratorHelperLoose$k(state.precapturedDocumentTypes), _step; !(_step = _iterator()).done;) {
|
|
21834
21869
|
var _documentType = _step.value;
|
|
21835
21870
|
if (seenPrecapturedRef.current.has(_documentType)) continue;
|
|
21836
21871
|
seenPrecapturedRef.current.add(_documentType);
|
|
@@ -23206,9 +23241,9 @@ function guidanceFor(state, prediction, at) {
|
|
|
23206
23241
|
return code === SelfieGuidanceCode.HOLD_STILL && handOverFaceHeld(state.handOverFaceAt, at) ? SelfieGuidanceCode.HAND_OVER_FACE : code;
|
|
23207
23242
|
}
|
|
23208
23243
|
|
|
23209
|
-
function _createForOfIteratorHelperLoose$
|
|
23210
|
-
function _unsupportedIterableToArray$
|
|
23211
|
-
function _arrayLikeToArray$
|
|
23244
|
+
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."); }
|
|
23245
|
+
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; } }
|
|
23246
|
+
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; }
|
|
23212
23247
|
// sdk2 componenets/selfie_capture/faceDetectorDefault.ts:5
|
|
23213
23248
|
// (DEFAULT_FACE_DETECTOR): face-landmarker is the default face model as of
|
|
23214
23249
|
// 2.4.0.
|
|
@@ -23238,7 +23273,7 @@ function mapDetectionsToFaces(prediction) {
|
|
|
23238
23273
|
if (!prediction) return null;
|
|
23239
23274
|
var faceDetections = [];
|
|
23240
23275
|
var noseDetections = [];
|
|
23241
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
23276
|
+
for (var _iterator = _createForOfIteratorHelperLoose$j(prediction.detections), _step; !(_step = _iterator()).done;) {
|
|
23242
23277
|
var detection = _step.value;
|
|
23243
23278
|
if (isNoseDetection(detection)) {
|
|
23244
23279
|
noseDetections.push(detection);
|
|
@@ -23252,7 +23287,7 @@ function mapDetectionsToFaces(prediction) {
|
|
|
23252
23287
|
var faceBox = d.boundingBox;
|
|
23253
23288
|
if (!faceBox) continue;
|
|
23254
23289
|
var nose = null;
|
|
23255
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
23290
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$j(noseDetections), _step2; !(_step2 = _iterator2()).done;) {
|
|
23256
23291
|
var n = _step2.value;
|
|
23257
23292
|
var noseBox = n.boundingBox;
|
|
23258
23293
|
if (!noseBox) continue;
|
|
@@ -24054,9 +24089,9 @@ function captureQualityException(reason, measurements, originalThresholds, recov
|
|
|
24054
24089
|
};
|
|
24055
24090
|
}
|
|
24056
24091
|
|
|
24057
|
-
function _createForOfIteratorHelperLoose$
|
|
24058
|
-
function _unsupportedIterableToArray$
|
|
24059
|
-
function _arrayLikeToArray$
|
|
24092
|
+
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."); }
|
|
24093
|
+
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; } }
|
|
24094
|
+
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; }
|
|
24060
24095
|
// sdk2 SelfieGuidanceModelsProvider.tsx onPredictionMade's useThrottledCallback
|
|
24061
24096
|
// second argument (SelfieCapture.tsx:225 -- "locks to 60fps maximum").
|
|
24062
24097
|
var DEFAULT_PREDICTION_THROTTLE_MS = 16;
|
|
@@ -24141,7 +24176,7 @@ function createSelfieCaptureController(config) {
|
|
|
24141
24176
|
}
|
|
24142
24177
|
var handCheckEnabled = ((_config$handOverFaceC2 = config.handOverFaceCheck) == null ? void 0 : _config$handOverFaceC2.enabled) === true && detectorKind === 'face-landmarker';
|
|
24143
24178
|
if (config.captureRecovery) validateCaptureRecovery(config.captureRecovery);
|
|
24144
|
-
var internal =
|
|
24179
|
+
var internal = createStore(function () {
|
|
24145
24180
|
return _extends({}, createInitialSelfieCaptureState({
|
|
24146
24181
|
thresholds: config.thresholds
|
|
24147
24182
|
}), {
|
|
@@ -24178,7 +24213,7 @@ function createSelfieCaptureController(config) {
|
|
|
24178
24213
|
// --- timers (idCapture pattern, colon-namespaced) ---
|
|
24179
24214
|
var timers = new Map();
|
|
24180
24215
|
function clearAllTimers() {
|
|
24181
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
24216
|
+
for (var _iterator = _createForOfIteratorHelperLoose$i(timers.values()), _step; !(_step = _iterator()).done;) {
|
|
24182
24217
|
var handle = _step.value;
|
|
24183
24218
|
io.clearTimeout(handle);
|
|
24184
24219
|
}
|
|
@@ -25944,8 +25979,8 @@ function SelfieCameraFeed(_ref) {
|
|
|
25944
25979
|
});
|
|
25945
25980
|
}
|
|
25946
25981
|
|
|
25947
|
-
var _templateObject$u, _templateObject2$
|
|
25948
|
-
var _excluded$
|
|
25982
|
+
var _templateObject$u, _templateObject2$s, _templateObject3$j, _templateObject4$f;
|
|
25983
|
+
var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
|
|
25949
25984
|
_excluded2$4 = ["status", "guideStyle"],
|
|
25950
25985
|
_excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
|
|
25951
25986
|
_excluded4 = ["status"];
|
|
@@ -25962,7 +25997,7 @@ var HeadGuideSvg = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
25962
25997
|
borderWidth = _ref$borderWidth === void 0 ? 5 : _ref$borderWidth,
|
|
25963
25998
|
_ref$status = _ref.status,
|
|
25964
25999
|
status = _ref$status === void 0 ? 'ready' : _ref$status,
|
|
25965
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
26000
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
25966
26001
|
return jsxRuntime.jsxs("svg", _extends({}, props, {
|
|
25967
26002
|
ref: ref,
|
|
25968
26003
|
viewBox: "271 92 297 406",
|
|
@@ -26022,7 +26057,7 @@ HeadGuideSvg.displayName = 'HeadGuideSvg';
|
|
|
26022
26057
|
// while also running the camera and face model. Waves only render while the
|
|
26023
26058
|
// status is 'ready', so the pulse replays each time the face leaves the guide.
|
|
26024
26059
|
var headGuideWavesAnimation = styledComponents.keyframes(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale(1);\n }\n 60% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n transform: scale(1.3);\n }\n"])));
|
|
26025
|
-
var PulsingHeadGuideContainer = styledComponents.styled.div(_templateObject2$
|
|
26060
|
+
var PulsingHeadGuideContainer = styledComponents.styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n display: flex;\n position: relative;\n height: 100%;\n max-height: 100%;\n\n & > .idmSdkWaves {\n position: absolute;\n opacity: 0;\n animation: ", " 2s ease-out 3;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n }\n\n /* Paints far past its box; the nearest clipping ancestor bounds it\n (FaceCaptureGuideOverlay clips to the capture surface). */\n & > .idmSdkSpotlight {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n }\n\n & > .idmSdkWavesOrigin {\n position: relative;\n }\n"])), headGuideWavesAnimation);
|
|
26026
26061
|
function HeadGuide(_ref2) {
|
|
26027
26062
|
var _theme$selfieCapture$, _theme$selfieCapture, _theme$selfieCapture$2, _theme$selfieCapture2, _theme$selfieCapture$3, _theme$selfieCapture3, _props$className;
|
|
26028
26063
|
var _ref2$status = _ref2.status,
|
|
@@ -26331,11 +26366,11 @@ function SelfieCaptureAnimatedMaskWithStatus(_ref4) {
|
|
|
26331
26366
|
}));
|
|
26332
26367
|
}
|
|
26333
26368
|
|
|
26334
|
-
var _templateObject$t, _templateObject2$
|
|
26369
|
+
var _templateObject$t, _templateObject2$r;
|
|
26335
26370
|
var FaceCaptureGuideContainer = styledComponents.styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 1000;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 40px;\n box-sizing: border-box;\n /* Keeps the spotlight dim inside the capture surface when the view is\n embedded rather than full-screen. */\n ", "\n"])), function (props) {
|
|
26336
26371
|
return props.$clip ? 'overflow: hidden;' : '';
|
|
26337
26372
|
});
|
|
26338
|
-
var FaceCaptureGuideInner = styledComponents.styled.div(_templateObject2$
|
|
26373
|
+
var FaceCaptureGuideInner = styledComponents.styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 60%;\n"])));
|
|
26339
26374
|
// Memoized: the capture surfaces re-render on every analyzed frame, but the
|
|
26340
26375
|
// guide's props only change when the mask status does.
|
|
26341
26376
|
var FaceCaptureGuideOverlay = /*#__PURE__*/React.memo(function FaceCaptureGuideOverlay(_ref) {
|
|
@@ -26646,7 +26681,7 @@ function SelfieCaptureLoadingGraphic(_ref) {
|
|
|
26646
26681
|
});
|
|
26647
26682
|
}
|
|
26648
26683
|
|
|
26649
|
-
var _templateObject$s, _templateObject2$
|
|
26684
|
+
var _templateObject$s, _templateObject2$q, _templateObject3$i, _templateObject4$e, _templateObject5$e;
|
|
26650
26685
|
var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
|
|
26651
26686
|
// Module-level so the default `now` prop has a stable identity across
|
|
26652
26687
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -26824,7 +26859,7 @@ var OverlayInner = styledComponents.styled(LoadingOverlayInner)(_templateObject$
|
|
|
26824
26859
|
var _props$theme$selfieCa2, _props$theme2;
|
|
26825
26860
|
return (_props$theme$selfieCa2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.selfieCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$selfieCa2 : 'black';
|
|
26826
26861
|
});
|
|
26827
|
-
var ButtonsRow = styledComponents.styled(LoadingOverlayButtonsRow)(_templateObject2$
|
|
26862
|
+
var ButtonsRow = styledComponents.styled(LoadingOverlayButtonsRow)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n color: ", ";\n ", "\n"])), function (props) {
|
|
26828
26863
|
var _props$theme$selfieCa3, _props$theme3;
|
|
26829
26864
|
return (_props$theme$selfieCa3 = (_props$theme3 = props.theme) == null || (_props$theme3 = _props$theme3.selfieCapture) == null || (_props$theme3 = _props$theme3.loadingOverlay) == null ? void 0 : _props$theme3.progressBarTextColor) != null ? _props$theme$selfieCa3 : 'white';
|
|
26830
26865
|
}, function (props) {
|
|
@@ -26883,7 +26918,7 @@ function selfieLoadingOverlayBottomEdgeColor(theme, modelsReady) {
|
|
|
26883
26918
|
});
|
|
26884
26919
|
}
|
|
26885
26920
|
|
|
26886
|
-
var _templateObject$r, _templateObject2$
|
|
26921
|
+
var _templateObject$r, _templateObject2$p;
|
|
26887
26922
|
var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLegacy(_ref) {
|
|
26888
26923
|
var _assets$instructionIm;
|
|
26889
26924
|
var state = _ref.state,
|
|
@@ -26960,9 +26995,9 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
|
|
|
26960
26995
|
});
|
|
26961
26996
|
};
|
|
26962
26997
|
var StyledGuidanceMessage = styledComponents.styled(GuidanceMessage)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
|
|
26963
|
-
var StyledButtonsRow$5 = styledComponents.styled(ButtonsRow$2)(_templateObject2$
|
|
26998
|
+
var StyledButtonsRow$5 = styledComponents.styled(ButtonsRow$2)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
|
|
26964
26999
|
|
|
26965
|
-
var _templateObject$q, _templateObject2$
|
|
27000
|
+
var _templateObject$q, _templateObject2$o, _templateObject3$h, _templateObject4$d, _templateObject5$d, _templateObject6$a, _templateObject7$8;
|
|
26966
27001
|
// Module-level so the default `now` prop has a stable identity across
|
|
26967
27002
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
26968
27003
|
var defaultNow = function defaultNow() {
|
|
@@ -27221,7 +27256,7 @@ var SelfieCaptureLoadingOverlayRing = function SelfieCaptureLoadingOverlayRing(_
|
|
|
27221
27256
|
});
|
|
27222
27257
|
};
|
|
27223
27258
|
var overlayFadeIn = styledComponents.keyframes(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
27224
|
-
var RingOverlayInner = styledComponents.styled(LoadingOverlayInner)(_templateObject2$
|
|
27259
|
+
var RingOverlayInner = styledComponents.styled(LoadingOverlayInner)(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n ", "\n"])), function (props) {
|
|
27225
27260
|
var _props$theme$selfieCa, _props$theme;
|
|
27226
27261
|
var tintBase = (_props$theme$selfieCa = (_props$theme = props.theme) == null || (_props$theme = _props$theme.selfieCapture) == null || (_props$theme = _props$theme.loadingOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _props$theme$selfieCa : 'var(--idm-color-primary-500)';
|
|
27227
27262
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + tintBase + " 45%, #ffffff))";
|
|
@@ -27248,7 +27283,7 @@ var ContinueButton = styledComponents.styled(LoaderButton)(_templateObject7$8 ||
|
|
|
27248
27283
|
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';
|
|
27249
27284
|
});
|
|
27250
27285
|
|
|
27251
|
-
var _excluded$
|
|
27286
|
+
var _excluded$c = ["mode"];
|
|
27252
27287
|
var components = {
|
|
27253
27288
|
"default": SelfieCaptureLoadingOverlayDefault,
|
|
27254
27289
|
legacy: SelfieCaptureLoadingOverlayLegacy,
|
|
@@ -27258,12 +27293,12 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
|
|
|
27258
27293
|
var _components$mode;
|
|
27259
27294
|
var _ref$mode = _ref.mode,
|
|
27260
27295
|
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
27261
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
27296
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
27262
27297
|
var Component = (_components$mode = components[mode]) != null ? _components$mode : components["default"];
|
|
27263
27298
|
return jsxRuntime.jsx(Component, _extends({}, props));
|
|
27264
27299
|
};
|
|
27265
27300
|
|
|
27266
|
-
var _templateObject$p, _templateObject2$
|
|
27301
|
+
var _templateObject$p, _templateObject2$n, _templateObject3$g, _templateObject4$c, _templateObject5$c, _templateObject6$9;
|
|
27267
27302
|
function SelfieCaptureFallback(_ref) {
|
|
27268
27303
|
var _ref$silentFallback = _ref.silentFallback,
|
|
27269
27304
|
silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
|
|
@@ -27418,13 +27453,13 @@ function SelfieCaptureFallback(_ref) {
|
|
|
27418
27453
|
});
|
|
27419
27454
|
}
|
|
27420
27455
|
var StyledOverlayInner = styledComponents.styled(OverlayInner$2)(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
|
|
27421
|
-
var Heading$6 = styledComponents.styled.h1(_templateObject2$
|
|
27456
|
+
var Heading$6 = styledComponents.styled.h1(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
|
|
27422
27457
|
var Description = styledComponents.styled.p(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
|
|
27423
27458
|
var ImageContainer$4 = styledComponents.styled.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin-bottom: 1.5rem;\n\n & > img {\n max-width: 100%;\n max-height: 40vh;\n border-radius: 8px;\n }\n"])));
|
|
27424
27459
|
var ReadFailed = styledComponents.styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
|
|
27425
27460
|
var StyledButtonsRow$4 = styledComponents.styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
|
|
27426
27461
|
|
|
27427
|
-
var _templateObject$o, _templateObject2$
|
|
27462
|
+
var _templateObject$o, _templateObject2$m;
|
|
27428
27463
|
function SelfieCaptureSurface(_ref) {
|
|
27429
27464
|
var _state$error, _state$error2, _state$captureRecover, _state$error5, _state$captureRecover2, _state$prediction, _state$prediction$sam, _state$prediction2, _state$prediction3, _state$prediction4, _state$prediction5, _state$prediction6, _state$prediction7, _state$prediction8, _state$prediction9, _state$prediction0, _state$prediction1, _state$prediction$bri, _state$prediction10, _state$prediction$ran, _state$prediction11, _state$prediction$var, _state$prediction12, _assets$loadingOverla, _classNames$loadingOv, _colors$loadingOverla, _verbiage$loadingOver;
|
|
27430
27465
|
var controller = _ref.controller,
|
|
@@ -27821,7 +27856,7 @@ function EyesOpenDebugLines(_ref2) {
|
|
|
27821
27856
|
}
|
|
27822
27857
|
var ManualCaptureButtonContainer = styledComponents.styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n left: 50%;\n bottom: 24px;\n transform: translateX(-50%);\n"])));
|
|
27823
27858
|
// A footer below the camera keeps the lighting guidance visible above it.
|
|
27824
|
-
var CaptureRecoveryActions = styledComponents.styled.div(_templateObject2$
|
|
27859
|
+
var CaptureRecoveryActions = styledComponents.styled.div(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 10001;\n inset: auto 0 0;\n padding: 16px 24px max(16px, env(safe-area-inset-bottom));\n background: white;\n color: #333;\n text-align: center;\n display: grid;\n justify-items: center;\n gap: 12px;\n\n p { margin: 0; font-size: 14px; line-height: 1.4; }\n button { width: 100%; max-width: 320px; }\n"])));
|
|
27825
27860
|
|
|
27826
27861
|
// Byte-identical to sdk2's verbiage defaults
|
|
27827
27862
|
// (SelfieCapture.tsx:273-284, FaceLivenessCapture.tsx:845-912), except
|
|
@@ -28150,7 +28185,7 @@ function SelfieCaptureViewContent(_ref) {
|
|
|
28150
28185
|
});
|
|
28151
28186
|
}
|
|
28152
28187
|
|
|
28153
|
-
var _templateObject$m, _templateObject2$
|
|
28188
|
+
var _templateObject$m, _templateObject2$l;
|
|
28154
28189
|
var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
|
|
28155
28190
|
var imageUrl = _ref.imageUrl,
|
|
28156
28191
|
onDoneClick = _ref.onDoneClick,
|
|
@@ -28214,9 +28249,9 @@ var FaceLivenessSuccess = function FaceLivenessSuccess(_ref) {
|
|
|
28214
28249
|
});
|
|
28215
28250
|
};
|
|
28216
28251
|
var ImageContainer$3 = styledComponents.styled.div(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n position: relative;\n flex-grow: 1;\n margin-bottom: 25px;\n max-width: 100%;\n max-height: 100%;\n overflow-y: auto;\n border-radius: 12px;\n\n & > img,\n & > svg {\n width: 100%;\n max-width: 100%;\n margin: 0 auto;\n display: block;\n border-radius: 12px;\n }\n"])));
|
|
28217
|
-
var Heading$5 = styledComponents.styled.h3(_templateObject2$
|
|
28252
|
+
var Heading$5 = styledComponents.styled.h3(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteralLoose(["\n font-size: 1.2rem;\n margin: 0;\n"])));
|
|
28218
28253
|
|
|
28219
|
-
var _templateObject$l, _templateObject2$
|
|
28254
|
+
var _templateObject$l, _templateObject2$k;
|
|
28220
28255
|
var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
|
|
28221
28256
|
var _assets$imageUrl;
|
|
28222
28257
|
var _ref$canRetry = _ref.canRetry,
|
|
@@ -28275,7 +28310,7 @@ var FaceLivenessFailure = function FaceLivenessFailure(_ref) {
|
|
|
28275
28310
|
});
|
|
28276
28311
|
};
|
|
28277
28312
|
var ImageContainer$2 = styledComponents.styled(OverlayImageContainer)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
28278
|
-
var Heading$4 = styledComponents.styled.h3(_templateObject2$
|
|
28313
|
+
var Heading$4 = styledComponents.styled.h3(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n margin-bottom: 36px;\n"])));
|
|
28279
28314
|
|
|
28280
28315
|
var _templateObject$k;
|
|
28281
28316
|
// The FaceMessageCode a ladder resolved -> the FaceLivenessGuidanceVerbiage
|
|
@@ -28623,9 +28658,9 @@ function FaceLivenessViewContent(_ref) {
|
|
|
28623
28658
|
});
|
|
28624
28659
|
}
|
|
28625
28660
|
|
|
28626
|
-
function _createForOfIteratorHelperLoose$
|
|
28627
|
-
function _unsupportedIterableToArray$
|
|
28628
|
-
function _arrayLikeToArray$
|
|
28661
|
+
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."); }
|
|
28662
|
+
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; } }
|
|
28663
|
+
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; }
|
|
28629
28664
|
/**
|
|
28630
28665
|
* Signature validity estimate (AMEXDESK-676).
|
|
28631
28666
|
*
|
|
@@ -28728,7 +28763,7 @@ function countSignaturePoints(strokes) {
|
|
|
28728
28763
|
*/
|
|
28729
28764
|
function measurePenDownMs(strokes) {
|
|
28730
28765
|
var total = 0;
|
|
28731
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
28766
|
+
for (var _iterator = _createForOfIteratorHelperLoose$h(strokes), _step; !(_step = _iterator()).done;) {
|
|
28732
28767
|
var stroke = _step.value;
|
|
28733
28768
|
if (stroke.length < 2) continue;
|
|
28734
28769
|
total += stroke[stroke.length - 1].time - stroke[0].time;
|
|
@@ -28747,9 +28782,9 @@ function boundingBox(strokes) {
|
|
|
28747
28782
|
var minY = Infinity;
|
|
28748
28783
|
var maxX = -Infinity;
|
|
28749
28784
|
var maxY = -Infinity;
|
|
28750
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
28785
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$h(strokes), _step2; !(_step2 = _iterator2()).done;) {
|
|
28751
28786
|
var stroke = _step2.value;
|
|
28752
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
28787
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$h(stroke), _step3; !(_step3 = _iterator3()).done;) {
|
|
28753
28788
|
var p = _step3.value;
|
|
28754
28789
|
if (p.x < minX) minX = p.x;
|
|
28755
28790
|
if (p.y < minY) minY = p.y;
|
|
@@ -28768,7 +28803,7 @@ function boundingBox(strokes) {
|
|
|
28768
28803
|
/** Sum of Euclidean distances between consecutive points within each stroke. */
|
|
28769
28804
|
function totalPathLength(strokes) {
|
|
28770
28805
|
var length = 0;
|
|
28771
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
28806
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$h(strokes), _step4; !(_step4 = _iterator4()).done;) {
|
|
28772
28807
|
var stroke = _step4.value;
|
|
28773
28808
|
for (var i = 1; i < stroke.length; i++) {
|
|
28774
28809
|
var dx = stroke[i].x - stroke[i - 1].x;
|
|
@@ -28824,7 +28859,7 @@ function resampleStroke(stroke, step) {
|
|
|
28824
28859
|
*/
|
|
28825
28860
|
function countDirectionChanges(strokes, step) {
|
|
28826
28861
|
var totalTurning = 0;
|
|
28827
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
28862
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$h(strokes), _step5; !(_step5 = _iterator5()).done;) {
|
|
28828
28863
|
var stroke = _step5.value;
|
|
28829
28864
|
var pts = resampleStroke(stroke, step);
|
|
28830
28865
|
var prevAngle = null;
|
|
@@ -28857,9 +28892,9 @@ function countZonesCovered(strokes, canvasWidth, canvasHeight, box) {
|
|
|
28857
28892
|
var height = useCanvas ? canvasHeight : box.maxY - box.minY;
|
|
28858
28893
|
if (width <= 0 || height <= 0) return 0;
|
|
28859
28894
|
var occupied = new Set();
|
|
28860
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
28895
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$h(strokes), _step6; !(_step6 = _iterator6()).done;) {
|
|
28861
28896
|
var stroke = _step6.value;
|
|
28862
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
28897
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$h(stroke), _step7; !(_step7 = _iterator7()).done;) {
|
|
28863
28898
|
var p = _step7.value;
|
|
28864
28899
|
var col = Math.min(2, Math.max(0, Math.floor((p.x - originX) / width * 3)));
|
|
28865
28900
|
var row = Math.min(2, Math.max(0, Math.floor((p.y - originY) / height * 3)));
|
|
@@ -28950,9 +28985,9 @@ function evaluateSignatureValidity(strokes, canvasWidth, canvasHeight, config) {
|
|
|
28950
28985
|
};
|
|
28951
28986
|
}
|
|
28952
28987
|
|
|
28953
|
-
function _createForOfIteratorHelperLoose$
|
|
28954
|
-
function _unsupportedIterableToArray$
|
|
28955
|
-
function _arrayLikeToArray$
|
|
28988
|
+
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."); }
|
|
28989
|
+
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; } }
|
|
28990
|
+
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; }
|
|
28956
28991
|
/**
|
|
28957
28992
|
* Off-screen, post-capture validation that proves a real frame renders at the
|
|
28958
28993
|
* signature's trim start offset. This is the authoritative detector for the
|
|
@@ -29401,7 +29436,7 @@ function _seekProbes() {
|
|
|
29401
29436
|
while (1) switch (_context4.prev = _context4.next) {
|
|
29402
29437
|
case 0:
|
|
29403
29438
|
probes = [];
|
|
29404
|
-
_iterator = _createForOfIteratorHelperLoose$
|
|
29439
|
+
_iterator = _createForOfIteratorHelperLoose$g(probeTimesMs);
|
|
29405
29440
|
case 1:
|
|
29406
29441
|
if ((_step = _iterator()).done) {
|
|
29407
29442
|
_context4.next = 4;
|
|
@@ -29471,7 +29506,7 @@ function _playbackProbes() {
|
|
|
29471
29506
|
};
|
|
29472
29507
|
var grab = function grab(mediaSec) {
|
|
29473
29508
|
if (mediaSec * 1000 > maxMediaMs) maxMediaMs = mediaSec * 1000;
|
|
29474
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
29509
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$g(targets), _step2; !(_step2 = _iterator2()).done;) {
|
|
29475
29510
|
var t = _step2.value;
|
|
29476
29511
|
if (t.result != null) continue;
|
|
29477
29512
|
if (maxMediaMs + SEEK_TOLERANCE_MS < t.ms) continue;
|
|
@@ -29524,7 +29559,7 @@ function _playbackProbes() {
|
|
|
29524
29559
|
video.play()["catch"](_finish);
|
|
29525
29560
|
});
|
|
29526
29561
|
case 2:
|
|
29527
|
-
_iterator3 = _createForOfIteratorHelperLoose$
|
|
29562
|
+
_iterator3 = _createForOfIteratorHelperLoose$g(targets);
|
|
29528
29563
|
case 3:
|
|
29529
29564
|
if ((_step3 = _iterator3()).done) {
|
|
29530
29565
|
_context5.next = 6;
|
|
@@ -31236,9 +31271,9 @@ function reduceSignatureCapture(state, event) {
|
|
|
31236
31271
|
}
|
|
31237
31272
|
}
|
|
31238
31273
|
|
|
31239
|
-
function _createForOfIteratorHelperLoose$
|
|
31240
|
-
function _unsupportedIterableToArray$
|
|
31241
|
-
function _arrayLikeToArray$
|
|
31274
|
+
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."); }
|
|
31275
|
+
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; } }
|
|
31276
|
+
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; }
|
|
31242
31277
|
/**
|
|
31243
31278
|
* Marks a microphone acquisition failure so `captureError` can type it.
|
|
31244
31279
|
*
|
|
@@ -31341,7 +31376,7 @@ function createSignatureCaptureController(config) {
|
|
|
31341
31376
|
var captureAudio = ((_config$captureAudio = config.captureAudio) != null ? _config$captureAudio : false) && mode === 'video';
|
|
31342
31377
|
var microphone = null;
|
|
31343
31378
|
var validityConfig = resolveSignatureValidityConfig(config.signatureValidity, config.minSignaturePadPoints);
|
|
31344
|
-
var store =
|
|
31379
|
+
var store = createStore(function () {
|
|
31345
31380
|
return createInitialSignatureCaptureState(mode);
|
|
31346
31381
|
});
|
|
31347
31382
|
var listeners = new Set();
|
|
@@ -31372,7 +31407,7 @@ function createSignatureCaptureController(config) {
|
|
|
31372
31407
|
}
|
|
31373
31408
|
function publish() {
|
|
31374
31409
|
snapshot = store.getState();
|
|
31375
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
31410
|
+
for (var _iterator = _createForOfIteratorHelperLoose$f(listeners), _step; !(_step = _iterator()).done;) {
|
|
31376
31411
|
var listener = _step.value;
|
|
31377
31412
|
try {
|
|
31378
31413
|
listener(snapshot);
|
|
@@ -32202,8 +32237,8 @@ function useSignatureCapture(controller) {
|
|
|
32202
32237
|
return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
32203
32238
|
}
|
|
32204
32239
|
|
|
32205
|
-
var _templateObject$j, _templateObject2$
|
|
32206
|
-
var _excluded$
|
|
32240
|
+
var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
|
|
32241
|
+
var _excluded$b = ["device", "frameDecode"];
|
|
32207
32242
|
var ASSUMED_TRIM_PADDING = {
|
|
32208
32243
|
startMs: TRIM_PADDING_START_MS,
|
|
32209
32244
|
endMs: TRIM_PADDING_END_MS
|
|
@@ -32435,7 +32470,7 @@ function trippedSignals(warning) {
|
|
|
32435
32470
|
var _warning$signals = warning.signals,
|
|
32436
32471
|
device = _warning$signals.device,
|
|
32437
32472
|
frameDecode = _warning$signals.frameDecode,
|
|
32438
|
-
top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$
|
|
32473
|
+
top = _objectWithoutPropertiesLoose(_warning$signals, _excluded$b);
|
|
32439
32474
|
var tripped = [].concat(_toConsumableArray(Object.entries(top).filter(function (_ref2) {
|
|
32440
32475
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
32441
32476
|
signal = _ref3[1];
|
|
@@ -32482,7 +32517,7 @@ function Row$1(_ref1) {
|
|
|
32482
32517
|
}
|
|
32483
32518
|
var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
|
|
32484
32519
|
var Panel = styledComponents.styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n width: min(720px, 90vw);\n margin-top: 0.75rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 6px;\n text-align: left;\n overflow-x: auto;\n"])));
|
|
32485
|
-
var Table = styledComponents.styled.table(_templateObject2$
|
|
32520
|
+
var Table = styledComponents.styled.table(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
|
|
32486
32521
|
var SectionCell = styledComponents.styled.th(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n padding: 0.5rem 0 0.25rem;\n border-bottom: 1px solid #e9ecef;\n color: #495057;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-align: left;\n text-transform: uppercase;\n"])));
|
|
32487
32522
|
var LabelCell = styledComponents.styled.td(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n width: 45%;\n padding: 0.1875rem 0.5rem 0.1875rem 0;\n color: #495057;\n font-weight: 600;\n vertical-align: top;\n"])));
|
|
32488
32523
|
var ValueCell = styledComponents.styled.td(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding: 0.1875rem 0;\n color: ", ";\n font-weight: ", ";\n vertical-align: top;\n word-break: break-word;\n"])), function (props) {
|
|
@@ -32492,7 +32527,7 @@ var ValueCell = styledComponents.styled.td(_templateObject5$b || (_templateObjec
|
|
|
32492
32527
|
});
|
|
32493
32528
|
var Note = styledComponents.styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
|
|
32494
32529
|
|
|
32495
|
-
var _templateObject$i, _templateObject2$
|
|
32530
|
+
var _templateObject$i, _templateObject2$i, _templateObject3$e, _templateObject4$a, _templateObject5$a;
|
|
32496
32531
|
function MessageOverlay(_ref) {
|
|
32497
32532
|
var heading = _ref.heading,
|
|
32498
32533
|
children = _ref.children,
|
|
@@ -32713,12 +32748,12 @@ function SubmissionErrorOverlay(_ref1) {
|
|
|
32713
32748
|
});
|
|
32714
32749
|
}
|
|
32715
32750
|
var CenteredInner = styledComponents.styled(OverlayInner$2)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n max-width: 640px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 32px;\n"])));
|
|
32716
|
-
var Content = styledComponents.styled.div(_templateObject2$
|
|
32751
|
+
var Content = styledComponents.styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
|
|
32717
32752
|
var Details = styledComponents.styled.p(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
|
|
32718
32753
|
var PermissionImage = styledComponents.styled(OverlayImageContainer)(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
|
|
32719
32754
|
var RetryButton = styledComponents.styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
|
|
32720
32755
|
|
|
32721
|
-
var _templateObject$h, _templateObject2$
|
|
32756
|
+
var _templateObject$h, _templateObject2$h, _templateObject3$d, _templateObject4$9, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
|
|
32722
32757
|
var FALLBACKS = {
|
|
32723
32758
|
headingText: "Please sign the box below",
|
|
32724
32759
|
signHereText: "Sign here",
|
|
@@ -33298,7 +33333,7 @@ var Root$2 = styledComponents.styled.div(_templateObject$h || (_templateObject$h
|
|
|
33298
33333
|
return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : "#26332e";
|
|
33299
33334
|
});
|
|
33300
33335
|
/** Sits below the pad's stacking context and never receives signing input. */
|
|
33301
|
-
var LiveDiagnostics = styledComponents.styled.div(_templateObject2$
|
|
33336
|
+
var LiveDiagnostics = styledComponents.styled.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 0;\n top: 64px;\n left: 20px;\n display: grid;\n padding: 8px;\n color: limegreen;\n background: rgba(0, 0, 0, 0.65);\n font: 14px/20px monospace;\n pointer-events: none;\n\n @container signature-capture (max-width: 1024px) {\n top: 12px;\n left: 12px;\n right: 12px;\n grid-template-columns: repeat(2, max-content);\n column-gap: 12px;\n font-size: clamp(11px, 3cqw, 12px);\n line-height: 18px;\n\n > :first-child {\n grid-column: 1 / -1;\n }\n }\n"])));
|
|
33302
33337
|
/**
|
|
33303
33338
|
* Black behind the feed. WebKit snaps the mirrored front-camera video's layer
|
|
33304
33339
|
* to device pixels and can leave one column uncovered along an edge, which
|
|
@@ -33487,9 +33522,9 @@ function buildVideoIdCaptureArtifacts(artifact) {
|
|
|
33487
33522
|
};
|
|
33488
33523
|
}
|
|
33489
33524
|
|
|
33490
|
-
function _createForOfIteratorHelperLoose$
|
|
33491
|
-
function _unsupportedIterableToArray$
|
|
33492
|
-
function _arrayLikeToArray$
|
|
33525
|
+
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."); }
|
|
33526
|
+
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; } }
|
|
33527
|
+
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; }
|
|
33493
33528
|
var DEFAULT_VIDEO_ID_PREDICTION_THROTTLE_MS = 16;
|
|
33494
33529
|
var RECENT_DETECTION_WINDOW_MS = 2000;
|
|
33495
33530
|
var defaultVideoIdCaptureThresholds = {
|
|
@@ -33633,7 +33668,7 @@ function createVideoIdCaptureController(config) {
|
|
|
33633
33668
|
var backImage = null;
|
|
33634
33669
|
function update(patch) {
|
|
33635
33670
|
state = _extends({}, state, patch);
|
|
33636
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
33671
|
+
for (var _iterator = _createForOfIteratorHelperLoose$e(listeners), _step; !(_step = _iterator()).done;) {
|
|
33637
33672
|
var listener = _step.value;
|
|
33638
33673
|
try {
|
|
33639
33674
|
listener(state);
|
|
@@ -34820,7 +34855,7 @@ function useVideoIdCapture(controller) {
|
|
|
34820
34855
|
return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
34821
34856
|
}
|
|
34822
34857
|
|
|
34823
|
-
var _templateObject$g, _templateObject2$
|
|
34858
|
+
var _templateObject$g, _templateObject2$g, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
|
|
34824
34859
|
/**
|
|
34825
34860
|
* The combined face-over-document guide used by SDK2's Video ID recording
|
|
34826
34861
|
* stage. Unlike the standalone ID overlay, both subjects remain framed in a
|
|
@@ -35035,7 +35070,7 @@ var Container = styledComponents.styled.div(_templateObject$g || (_templateObjec
|
|
|
35035
35070
|
var _props$theme;
|
|
35036
35071
|
return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
|
|
35037
35072
|
});
|
|
35038
|
-
var Inner$1 = styledComponents.styled.div(_templateObject2$
|
|
35073
|
+
var Inner$1 = styledComponents.styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
|
|
35039
35074
|
var FaceGuideContainer = styledComponents.styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
|
|
35040
35075
|
var IdCardGuideContainer = styledComponents.styled.div(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n max-width: 100%;\n height: 35%;\n margin: 0 auto;\n"])));
|
|
35041
35076
|
var IdCardGuideInner = styledComponents.styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
|
|
@@ -35066,7 +35101,7 @@ var VIDEO_ID_FALLBACKS = {
|
|
|
35066
35101
|
};
|
|
35067
35102
|
(_VIDEO_ID_GUIDANCE_FA = {}, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_FRONT] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_BACK] = VIDEO_ID_FALLBACKS.idBackInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_PASSPORT] = VIDEO_ID_FALLBACKS.passportInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.FLIP_ID] = VIDEO_ID_FALLBACKS.flipIdInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SEARCHING_FOR_ID] = VIDEO_ID_FALLBACKS.searchingForIdCardText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.HOLD_STEADY] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA);
|
|
35068
35103
|
|
|
35069
|
-
var _templateObject$f, _templateObject2$
|
|
35104
|
+
var _templateObject$f, _templateObject2$f, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
|
|
35070
35105
|
function VideoIdCaptureView(props) {
|
|
35071
35106
|
var _props$lang;
|
|
35072
35107
|
return jsxRuntime.jsx(SdkLanguageProvider, {
|
|
@@ -35403,7 +35438,7 @@ function VideoIdCaptureDebugLayer(_ref2) {
|
|
|
35403
35438
|
});
|
|
35404
35439
|
}
|
|
35405
35440
|
var Root$1 = styledComponents.styled.div(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n overflow: hidden;\n"])));
|
|
35406
|
-
var CameraLayer = styledComponents.styled.div(_templateObject2$
|
|
35441
|
+
var CameraLayer = styledComponents.styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
|
|
35407
35442
|
return props.$visible ? 'flex' : 'none';
|
|
35408
35443
|
});
|
|
35409
35444
|
var ReadTextPrompt = styledComponents.styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n padding: 24px;\n"])));
|
|
@@ -35427,7 +35462,7 @@ function useDocumentCapture(controller) {
|
|
|
35427
35462
|
return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
35428
35463
|
}
|
|
35429
35464
|
|
|
35430
|
-
var _templateObject$e, _templateObject2$
|
|
35465
|
+
var _templateObject$e, _templateObject2$e, _templateObject3$a, _templateObject4$6, _templateObject5$6;
|
|
35431
35466
|
/** Human wording for each gate, in the order the engine reports them. */
|
|
35432
35467
|
/** Short enough that the triple fits one line on a phone. */
|
|
35433
35468
|
var GUIDANCE_LABELS = {
|
|
@@ -35729,7 +35764,7 @@ var PaneAnchor = styledComponents.styled.div(_templateObject$e || (_templateObje
|
|
|
35729
35764
|
// `DebugStatsPaneDiv` sets `pointer-events: none` so the shared pane can never
|
|
35730
35765
|
// swallow a capture tap. This one has to be tappable, so it re-enables them on
|
|
35731
35766
|
// its own subtree only.
|
|
35732
|
-
var InteractivePane = styledComponents.styled.span(_templateObject2$
|
|
35767
|
+
var InteractivePane = styledComponents.styled.span(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
|
|
35733
35768
|
var Row = styledComponents.styled.span(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
35734
35769
|
var Controls = styledComponents.styled.span(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
|
|
35735
35770
|
var Chip = styledComponents.styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n font: bold 11px monospace;\n padding: 4px 8px;\n border: 1px solid limegreen;\n border-radius: 3px;\n background: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_ref5) {
|
|
@@ -35740,7 +35775,7 @@ var Chip = styledComponents.styled.button(_templateObject5$6 || (_templateObject
|
|
|
35740
35775
|
return $active ? 'black' : 'limegreen';
|
|
35741
35776
|
});
|
|
35742
35777
|
|
|
35743
|
-
var _templateObject$d, _templateObject2$
|
|
35778
|
+
var _templateObject$d, _templateObject2$d, _templateObject3$9;
|
|
35744
35779
|
/**
|
|
35745
35780
|
* Which verbiage member renders each code.
|
|
35746
35781
|
*
|
|
@@ -35826,7 +35861,7 @@ var GuidanceChip = styledComponents.styled.div(_templateObject$d || (_templateOb
|
|
|
35826
35861
|
* Follows the text colour while unsatisfied, so a themed chip needs no dot
|
|
35827
35862
|
* colour of its own.
|
|
35828
35863
|
*/
|
|
35829
|
-
var StateDot = styledComponents.styled.span(_templateObject2$
|
|
35864
|
+
var StateDot = styledComponents.styled.span(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n flex: none;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: ", ";\n opacity: ", ";\n transition:\n background-color 160ms ease-out,\n opacity 160ms ease-out;\n"])), function (_ref4) {
|
|
35830
35865
|
var $satisfied = _ref4.$satisfied;
|
|
35831
35866
|
return $satisfied ? '#7ef0d2' : 'currentColor';
|
|
35832
35867
|
}, function (_ref5) {
|
|
@@ -35857,7 +35892,7 @@ function DocumentCaptureManualCaptureHint(_ref6) {
|
|
|
35857
35892
|
*/
|
|
35858
35893
|
var ManualCaptureHint = styledComponents.styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: min(88%, 38ch);\n padding: 7px 14px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n text-align: center;\n color: rgba(255, 255, 255, 0.86);\n background: rgba(10, 14, 19, 0.7);\n"])));
|
|
35859
35894
|
|
|
35860
|
-
var _templateObject$c, _templateObject2$
|
|
35895
|
+
var _templateObject$c, _templateObject2$c, _templateObject3$8;
|
|
35861
35896
|
function DocumentCaptureReviewScreen(_ref) {
|
|
35862
35897
|
var contentUrl = _ref.contentUrl,
|
|
35863
35898
|
headingText = _ref.headingText,
|
|
@@ -35916,7 +35951,7 @@ var ReviewHeading = styledComponents.styled.h2(_templateObject$c || (_templateOb
|
|
|
35916
35951
|
// `min-height: 0` is what actually lets this shrink inside the flex card —
|
|
35917
35952
|
// without it the default `min-height: auto` floors the wrapper at the image's
|
|
35918
35953
|
// intrinsic height and the buttons get pushed off the bottom of a phone.
|
|
35919
|
-
var ImageWrap = styledComponents.styled.div(_templateObject2$
|
|
35954
|
+
var ImageWrap = styledComponents.styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
|
|
35920
35955
|
var PreviewImage$1 = styledComponents.styled.img(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
|
|
35921
35956
|
|
|
35922
35957
|
function computeGuideRect$1(_ref) {
|
|
@@ -35954,7 +35989,7 @@ function computeGuideRect$1(_ref) {
|
|
|
35954
35989
|
};
|
|
35955
35990
|
}
|
|
35956
35991
|
|
|
35957
|
-
var _templateObject$b, _templateObject2$
|
|
35992
|
+
var _templateObject$b, _templateObject2$b;
|
|
35958
35993
|
/**
|
|
35959
35994
|
* How far the camera feed overhangs the guide box on each side, in CSS pixels.
|
|
35960
35995
|
*
|
|
@@ -36194,9 +36229,9 @@ function drawCornerBrackets(ctx, rect, opts) {
|
|
|
36194
36229
|
var CanvasWrapper = styledComponents.styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n /* REQUIRED, not tidying. setCanvasDimensions puts an explicit pixel height on\n the child canvas, and a flex item's default min-height of auto floors it at\n its content \u2014 so this wrapper can grow but can never shrink back.\n\n It bit on exactly one transition: while auto-capture is guiding, the header\n is absolutely positioned and out of flow, so the wrapper is measured at the\n FULL surface height and the canvas is pinned there. Accepting the manual\n fallback swaps in the in-flow heading bar, the column then needs this item\n to give back that height, an auto min-height refuses, and the surface\n overflows by the header's height \u2014 carrying the footer, and the Capture\n button the applicant just asked for, below the fold with nothing to\n scroll.\n\n No backticks in this comment: it lives inside a styled-components template\n literal, where one would end the template. */\n min-height: 0;\n background-clip: padding-box;\n box-shadow: inset 0 0 0 2px ", ";\n"])), function (props) {
|
|
36195
36230
|
return props.$maskColor;
|
|
36196
36231
|
});
|
|
36197
|
-
var Canvas = styledComponents.styled.canvas(_templateObject2$
|
|
36232
|
+
var Canvas = styledComponents.styled.canvas(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
36198
36233
|
|
|
36199
|
-
var _templateObject$a, _templateObject2$
|
|
36234
|
+
var _templateObject$a, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
36200
36235
|
/** The verbiage fallbacks, exported so the i18n parity test reads the real
|
|
36201
36236
|
* literals rather than a second copy that could drift from them. */
|
|
36202
36237
|
var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
|
|
@@ -36768,7 +36803,7 @@ var GUIDED_STACK_GAP_PX = 12;
|
|
|
36768
36803
|
* `pointer-events: none` because nothing in here is tappable and the shutter
|
|
36769
36804
|
* is centred directly below it.
|
|
36770
36805
|
*/
|
|
36771
|
-
var GuidedBottomStack = styledComponents.styled.div(_templateObject2$
|
|
36806
|
+
var GuidedBottomStack = styledComponents.styled.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n pointer-events: none;\n\n ", "\n"])), function (_ref2) {
|
|
36772
36807
|
var $centreY = _ref2.$centreY,
|
|
36773
36808
|
$aboveShutter = _ref2.$aboveShutter;
|
|
36774
36809
|
if (!$aboveShutter) {
|
|
@@ -37123,7 +37158,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
37123
37158
|
});
|
|
37124
37159
|
};
|
|
37125
37160
|
|
|
37126
|
-
var _templateObject$9, _templateObject2$
|
|
37161
|
+
var _templateObject$9, _templateObject2$9, _templateObject3$6, _templateObject4$4, _templateObject5$4;
|
|
37127
37162
|
// The `useTranslations` fallback defaults, exported so the i18n parity
|
|
37128
37163
|
// guard (additionalDocumentStrings.test.ts) can assert every non-English
|
|
37129
37164
|
// locale carries these exact literals by reading them from here rather than
|
|
@@ -37292,7 +37327,7 @@ function AdditionalDocumentCapture(_ref) {
|
|
|
37292
37327
|
});
|
|
37293
37328
|
}
|
|
37294
37329
|
var Inner = styledComponents.styled(OverlayInner$2)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
37295
|
-
var Heading$2 = styledComponents.styled.h3(_templateObject2$
|
|
37330
|
+
var Heading$2 = styledComponents.styled.h3(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37296
37331
|
var DescriptionText = styledComponents.styled.p(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37297
37332
|
var ErrorText = styledComponents.styled.p(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37298
37333
|
var StyledButtonsRow$2 = styledComponents.styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
@@ -37418,7 +37453,7 @@ function AdditionalDocumentCaptureWizard(_ref) {
|
|
|
37418
37453
|
}, index);
|
|
37419
37454
|
}
|
|
37420
37455
|
|
|
37421
|
-
var _templateObject$8, _templateObject2$
|
|
37456
|
+
var _templateObject$8, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
|
|
37422
37457
|
var CONFETTI_COUNT = 44;
|
|
37423
37458
|
var CONFETTI_LIFETIME_MS = 4500;
|
|
37424
37459
|
/**
|
|
@@ -37540,7 +37575,7 @@ var RingSuccessScreen = function RingSuccessScreen(_ref) {
|
|
|
37540
37575
|
});
|
|
37541
37576
|
};
|
|
37542
37577
|
var fadeIn$1 = styledComponents.keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
37543
|
-
var popCheck = styledComponents.keyframes(_templateObject2$
|
|
37578
|
+
var popCheck = styledComponents.keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
|
|
37544
37579
|
var drawTick = styledComponents.keyframes(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
|
|
37545
37580
|
var confettiFall = styledComponents.keyframes(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
|
|
37546
37581
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
@@ -37562,7 +37597,7 @@ var StatList = styledComponents.styled.div(_templateObject0$3 || (_templateObjec
|
|
|
37562
37597
|
var StatChip = styledComponents.styled.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n background: #ffffff;\n border: 1px solid rgb(0 0 0 / 0.08);\n border-radius: 12px;\n padding: 9px 14px;\n font-size: 11.5px;\n opacity: 0.9;\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n b {\n font-size: 14px;\n }\n"])));
|
|
37563
37598
|
var ConfettiPiece = styledComponents.styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 9px;\n height: 14px;\n top: -20px;\n opacity: 0.95;\n z-index: 5;\n animation-name: ", ";\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n"])), confettiFall);
|
|
37564
37599
|
|
|
37565
|
-
var _templateObject$7, _templateObject2$
|
|
37600
|
+
var _templateObject$7, _templateObject2$7, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
|
|
37566
37601
|
var toDataUrl$2 = function toDataUrl(value) {
|
|
37567
37602
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37568
37603
|
};
|
|
@@ -37745,7 +37780,7 @@ var RingFailureScreen = function RingFailureScreen(_ref) {
|
|
|
37745
37780
|
});
|
|
37746
37781
|
};
|
|
37747
37782
|
var enter = styledComponents.keyframes(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(12px); filter: blur(4px); }\n to { opacity: 1; transform: translateY(0); filter: blur(0); }\n"])));
|
|
37748
|
-
var markIn = styledComponents.keyframes(_templateObject2$
|
|
37783
|
+
var markIn = styledComponents.keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: scale(0.25); filter: blur(4px); }\n to { opacity: 1; transform: scale(1); filter: blur(0); }\n"])));
|
|
37749
37784
|
// The gradient is light WHATEVER the theme says — it mixes the tint into white
|
|
37750
37785
|
// rather than replacing it — so the foreground is pinned here instead of taken
|
|
37751
37786
|
// from `loadingOverlay.textColor`. A 2.x theme sets that key for the DARK
|
|
@@ -37787,7 +37822,7 @@ var PrimaryAction = styledComponents.styled(LoaderButton)(_templateObject15$1 ||
|
|
|
37787
37822
|
});
|
|
37788
37823
|
var SecondaryAction = styledComponents.styled(LoaderButton)(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n && {\n min-height: 44px;\n border: none;\n border-radius: 22px;\n padding: 10px 22px;\n background-color: transparent;\n color: #26312e;\n font-size: 14px;\n font-weight: 600;\n opacity: 0.7;\n box-shadow: none;\n transition-property: transform, opacity, background-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &:hover:not(.disabled) {\n opacity: 1;\n background-color: rgb(255 255 255 / 0.45);\n }\n\n &:active:not(.disabled) {\n transform: scale(0.96);\n }\n\n &:focus-visible {\n outline: none;\n opacity: 1;\n box-shadow: 0 0 0 3px rgb(0 0 0 / 0.09);\n }\n\n @media (prefers-reduced-motion: reduce) {\n &:hover:not(.disabled),\n &:active:not(.disabled) {\n transform: none;\n }\n }\n }\n"])));
|
|
37789
37824
|
|
|
37790
|
-
var _templateObject$6, _templateObject2$
|
|
37825
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
|
|
37791
37826
|
var toDataUrl$1 = function toDataUrl(value) {
|
|
37792
37827
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37793
37828
|
};
|
|
@@ -37894,7 +37929,7 @@ var RingFinishingScreen = function RingFinishingScreen(_ref) {
|
|
|
37894
37929
|
});
|
|
37895
37930
|
};
|
|
37896
37931
|
var fadeIn = styledComponents.keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
37897
|
-
var spin = styledComponents.keyframes(_templateObject2$
|
|
37932
|
+
var spin = styledComponents.keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
|
|
37898
37933
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
37899
37934
|
// for why the foreground is pinned rather than read from the theme.
|
|
37900
37935
|
var FinishingInner = styledComponents.styled(LoadingOverlayInner)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
|
|
@@ -37947,7 +37982,7 @@ var readFlowElapsedMs = function readFlowElapsedMs() {
|
|
|
37947
37982
|
return flowStartedAt === null ? null : Date.now() - flowStartedAt;
|
|
37948
37983
|
};
|
|
37949
37984
|
|
|
37950
|
-
var _templateObject$5, _templateObject2$
|
|
37985
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$2;
|
|
37951
37986
|
var DEFAULT_HEADING$1 = {
|
|
37952
37987
|
identification: 'Customer has been identified!',
|
|
37953
37988
|
verification: 'Customer has been verified!'
|
|
@@ -38005,10 +38040,10 @@ function CustomerMatchSuccess(_ref) {
|
|
|
38005
38040
|
});
|
|
38006
38041
|
}
|
|
38007
38042
|
var Heading$1 = styledComponents.styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
38008
|
-
var ImageContainer$1 = styledComponents.styled(ButtonsRow$2)(_templateObject2$
|
|
38043
|
+
var ImageContainer$1 = styledComponents.styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
38009
38044
|
var StyledButtonsRow$1 = styledComponents.styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
38010
38045
|
|
|
38011
|
-
var _templateObject$4, _templateObject2$
|
|
38046
|
+
var _templateObject$4, _templateObject2$4, _templateObject3$1;
|
|
38012
38047
|
var DEFAULT_HEADING = {
|
|
38013
38048
|
identification: 'Customer not found',
|
|
38014
38049
|
verification: 'Customer not verified'
|
|
@@ -38069,7 +38104,7 @@ function CustomerMatchFailure(_ref) {
|
|
|
38069
38104
|
});
|
|
38070
38105
|
}
|
|
38071
38106
|
var Heading = styledComponents.styled.h3(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
38072
|
-
var ImageContainer = styledComponents.styled(ButtonsRow$2)(_templateObject2$
|
|
38107
|
+
var ImageContainer = styledComponents.styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
38073
38108
|
var StyledButtonsRow = styledComponents.styled(ButtonsRow$2)(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
38074
38109
|
|
|
38075
38110
|
var SubmissionContext = /*#__PURE__*/React.createContext(null);
|
|
@@ -38462,10 +38497,10 @@ var highlightJson = function highlightJson(str) {
|
|
|
38462
38497
|
return elements;
|
|
38463
38498
|
};
|
|
38464
38499
|
|
|
38465
|
-
var _templateObject$3, _templateObject2$
|
|
38466
|
-
function _createForOfIteratorHelperLoose$
|
|
38467
|
-
function _unsupportedIterableToArray$
|
|
38468
|
-
function _arrayLikeToArray$
|
|
38500
|
+
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;
|
|
38501
|
+
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."); }
|
|
38502
|
+
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; } }
|
|
38503
|
+
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; }
|
|
38469
38504
|
var SUBMISSION_SUCCESS_FALLBACKS = {
|
|
38470
38505
|
completeText: 'Submission complete',
|
|
38471
38506
|
responseReceivedText: 'Response received',
|
|
@@ -38541,7 +38576,7 @@ var quickFactConfig = [{
|
|
|
38541
38576
|
*/
|
|
38542
38577
|
var readDocumentId = function readDocumentId(request, path) {
|
|
38543
38578
|
var node = request;
|
|
38544
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
38579
|
+
for (var _iterator = _createForOfIteratorHelperLoose$d(path), _step; !(_step = _iterator()).done;) {
|
|
38545
38580
|
var segment = _step.value;
|
|
38546
38581
|
if (!node || typeof node !== 'object') return null;
|
|
38547
38582
|
node = node[segment];
|
|
@@ -38652,10 +38687,10 @@ var ASSET_CONFIG = [{
|
|
|
38652
38687
|
*/
|
|
38653
38688
|
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']];
|
|
38654
38689
|
function truncateImagePaths(body) {
|
|
38655
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
38690
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$d(TRUNCATABLE_IMAGE_PATHS), _step2; !(_step2 = _iterator2()).done;) {
|
|
38656
38691
|
var path = _step2.value;
|
|
38657
38692
|
var node = body;
|
|
38658
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
38693
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$d(path.slice(0, -1)), _step3; !(_step3 = _iterator3()).done;) {
|
|
38659
38694
|
var segment = _step3.value;
|
|
38660
38695
|
if (!isRecord(node)) break;
|
|
38661
38696
|
node = node[segment];
|
|
@@ -39028,7 +39063,7 @@ function TimingFact(_ref9) {
|
|
|
39028
39063
|
});
|
|
39029
39064
|
}
|
|
39030
39065
|
var SuccessInner = styledComponents.styled(OverlayInner$2)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n max-width: 900px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 40px;\n text-align: left;\n"])));
|
|
39031
|
-
var Header = styledComponents.styled.header(_templateObject2$
|
|
39066
|
+
var Header = styledComponents.styled.header(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
|
|
39032
39067
|
var Eyebrow = styledComponents.styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
|
|
39033
39068
|
var TimingGrid = styledComponents.styled.dl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
|
|
39034
39069
|
var TimingCard = styledComponents.styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding: 14px;\n border: 1px solid #d9e2dc;\n border-radius: 8px;\n\n dt {\n color: #62706a;\n font-size: 0.75rem;\n }\n\n dd {\n margin: 6px 0 0;\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n }\n"])));
|
|
@@ -39054,7 +39089,848 @@ var JsonBlockHeader = styledComponents.styled.div(_templateObject22 || (_templat
|
|
|
39054
39089
|
var JsonBlockActions = styledComponents.styled.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n"])));
|
|
39055
39090
|
var ResponsePre = styledComponents.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"])));
|
|
39056
39091
|
|
|
39057
|
-
var
|
|
39092
|
+
var _excluded$a = ["state", "size", "theme", "speed", "paused", "style", "aria-label"];
|
|
39093
|
+
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."); }
|
|
39094
|
+
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; } }
|
|
39095
|
+
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; }
|
|
39096
|
+
function F(e, n) {
|
|
39097
|
+
var s = Math.sin(e * 12.9898 + n * 78.233) * 43758.5453;
|
|
39098
|
+
return s - Math.floor(s);
|
|
39099
|
+
}
|
|
39100
|
+
function st(e, n) {
|
|
39101
|
+
var s = Math.PI * (3 - Math.sqrt(5)),
|
|
39102
|
+
r = 1 - 2 * (e + 0.5) / n,
|
|
39103
|
+
t = Math.sqrt(1 - r * r),
|
|
39104
|
+
o = e * s;
|
|
39105
|
+
return [t * Math.cos(o), r, t * Math.sin(o)];
|
|
39106
|
+
}
|
|
39107
|
+
function ot(e, n) {
|
|
39108
|
+
return Math.atan2(Math.sin(e - n), Math.cos(e - n));
|
|
39109
|
+
}
|
|
39110
|
+
function q(e, n, s, r, t) {
|
|
39111
|
+
var o = Math.sin(n),
|
|
39112
|
+
c = Math.cos(n),
|
|
39113
|
+
a = Math.sin(e),
|
|
39114
|
+
i = Math.cos(e);
|
|
39115
|
+
return function (m, g, M) {
|
|
39116
|
+
var u = m * i + M * a,
|
|
39117
|
+
h = -m * a + M * i,
|
|
39118
|
+
b = g * c - h * o,
|
|
39119
|
+
x = g * o + h * c;
|
|
39120
|
+
return [s + u * t, r - b * t, x];
|
|
39121
|
+
};
|
|
39122
|
+
}
|
|
39123
|
+
function _(e, n, s, r) {
|
|
39124
|
+
if (r === void 0) {
|
|
39125
|
+
r = 0.3;
|
|
39126
|
+
}
|
|
39127
|
+
n.sort(function (t, o) {
|
|
39128
|
+
return t.z - o.z;
|
|
39129
|
+
});
|
|
39130
|
+
for (var _iterator = _createForOfIteratorHelperLoose$c(n), _step; !(_step = _iterator()).done;) {
|
|
39131
|
+
var _t$a;
|
|
39132
|
+
var t = _step.value;
|
|
39133
|
+
var o = (_t$a = t.a) != null ? _t$a : 1;
|
|
39134
|
+
if (o < 0.02) continue;
|
|
39135
|
+
var c = Math.min(1, Math.max(0, t.white)),
|
|
39136
|
+
a = Math.round((s ? 1 - c : c) * 255);
|
|
39137
|
+
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();
|
|
39138
|
+
}
|
|
39139
|
+
}
|
|
39140
|
+
function $(e, n) {
|
|
39141
|
+
return Math.pow(e / 300, n);
|
|
39142
|
+
}
|
|
39143
|
+
function et(e, n, s, r) {
|
|
39144
|
+
var t = 2 * n * s + r,
|
|
39145
|
+
o = e % t,
|
|
39146
|
+
c = new Array(n).fill(0);
|
|
39147
|
+
var a = -1;
|
|
39148
|
+
if (o < 2 * n * s) {
|
|
39149
|
+
var i = Math.floor(o / s),
|
|
39150
|
+
m = (o - i * s) / s,
|
|
39151
|
+
M = 1 - Math.pow(1 - Math.min(1, m / 0.7), 3);
|
|
39152
|
+
if (i < n) {
|
|
39153
|
+
for (var u = 0; u < i; u++) c[u] = 1;
|
|
39154
|
+
c[i] = M, a = i;
|
|
39155
|
+
} else {
|
|
39156
|
+
var _u = 2 * n - 1 - i;
|
|
39157
|
+
for (var h = 0; h < _u; h++) c[h] = 1;
|
|
39158
|
+
c[_u] = 1 - M, a = _u;
|
|
39159
|
+
}
|
|
39160
|
+
}
|
|
39161
|
+
return {
|
|
39162
|
+
amount: c,
|
|
39163
|
+
active: a
|
|
39164
|
+
};
|
|
39165
|
+
}
|
|
39166
|
+
function ct(e, n, s) {
|
|
39167
|
+
var _e = _slicedToArray(e, 3),
|
|
39168
|
+
r = _e[0],
|
|
39169
|
+
t = _e[1],
|
|
39170
|
+
o = _e[2],
|
|
39171
|
+
c = false;
|
|
39172
|
+
for (var a = 0; a < n.length; a++) {
|
|
39173
|
+
if (s.amount[a] <= 0) continue;
|
|
39174
|
+
var i = n[a],
|
|
39175
|
+
m = i.axis === 0 ? r : i.axis === 1 ? t : o;
|
|
39176
|
+
if (m < i.lo || m >= i.hi) continue;
|
|
39177
|
+
a === s.active && (c = true);
|
|
39178
|
+
var g = i.ang * s.amount[a],
|
|
39179
|
+
M = Math.cos(g),
|
|
39180
|
+
u = Math.sin(g);
|
|
39181
|
+
if (i.axis === 0) {
|
|
39182
|
+
var h = t * M - o * u;
|
|
39183
|
+
o = t * u + o * M, t = h;
|
|
39184
|
+
} else if (i.axis === 1) {
|
|
39185
|
+
var _h = r * M + o * u;
|
|
39186
|
+
o = -r * u + o * M, r = _h;
|
|
39187
|
+
} else {
|
|
39188
|
+
var _h2 = r * M - t * u;
|
|
39189
|
+
t = r * u + t * M, r = _h2;
|
|
39190
|
+
}
|
|
39191
|
+
}
|
|
39192
|
+
return [r, t, o, c];
|
|
39193
|
+
}
|
|
39194
|
+
function at(e) {
|
|
39195
|
+
var n = [];
|
|
39196
|
+
for (var s = 0; s < e; s++) {
|
|
39197
|
+
var r = Math.min(2, Math.floor(F(s, 2.3) * 3)),
|
|
39198
|
+
t = -1 + 0.5 * Math.min(3, Math.floor(F(s, 5.9) * 4)),
|
|
39199
|
+
o = F(s, 7.7) < 0.5 ? 1 : -1;
|
|
39200
|
+
n.push({
|
|
39201
|
+
axis: r,
|
|
39202
|
+
lo: t,
|
|
39203
|
+
hi: t + 0.5,
|
|
39204
|
+
ang: o * Math.PI / 2
|
|
39205
|
+
});
|
|
39206
|
+
}
|
|
39207
|
+
return n;
|
|
39208
|
+
}
|
|
39209
|
+
var rt = function rt(e, n, s, r, t) {
|
|
39210
|
+
var _t$scanMul, _t$rsPow, _t$dimBase, _t$latRings, _t$lonDensity;
|
|
39211
|
+
var c = n / 2,
|
|
39212
|
+
a = n / 2,
|
|
39213
|
+
i = n / 2 * 0.82,
|
|
39214
|
+
m = 0.4 + 0.06 * Math.sin(s * 0.35),
|
|
39215
|
+
g = q(s * 0.5, m, c, a, i),
|
|
39216
|
+
M = s * (0.5 + (1.7 - 0.5) * ((_t$scanMul = t.scanMul) != null ? _t$scanMul : 1)),
|
|
39217
|
+
u = $(n, (_t$rsPow = t.rsPow) != null ? _t$rsPow : 0.6),
|
|
39218
|
+
h = (_t$dimBase = t.dimBase) != null ? _t$dimBase : 1,
|
|
39219
|
+
b = [],
|
|
39220
|
+
x = (_t$latRings = t.latRings) != null ? _t$latRings : 17,
|
|
39221
|
+
I = (_t$lonDensity = t.lonDensity) != null ? _t$lonDensity : 44;
|
|
39222
|
+
for (var P = 0; P <= x; P++) {
|
|
39223
|
+
var y = -Math.PI / 2 + P / x * Math.PI,
|
|
39224
|
+
D = Math.cos(y),
|
|
39225
|
+
w = Math.sin(y),
|
|
39226
|
+
k = Math.max(1, Math.round(Math.abs(D) * I));
|
|
39227
|
+
for (var v = 0; v < k; v++) {
|
|
39228
|
+
var _t$rBase, _t$rDepth, _t$rBoost, _t$inkFar, _t$inkSpan;
|
|
39229
|
+
var R = v / k * 2 * Math.PI,
|
|
39230
|
+
_g = g(D * Math.cos(R), w, D * Math.sin(R)),
|
|
39231
|
+
_g2 = _slicedToArray(_g, 3),
|
|
39232
|
+
p = _g2[0],
|
|
39233
|
+
d = _g2[1],
|
|
39234
|
+
l = _g2[2],
|
|
39235
|
+
f = (l + 1) / 2,
|
|
39236
|
+
S = ot(R + s * 0.5, M),
|
|
39237
|
+
L = Math.exp(-(S * S) / 0.18) * Math.max(0, l);
|
|
39238
|
+
b.push({
|
|
39239
|
+
x: p,
|
|
39240
|
+
y: d,
|
|
39241
|
+
z: l,
|
|
39242
|
+
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,
|
|
39243
|
+
white: ((_t$inkFar = t.inkFar) != null ? _t$inkFar : 0.62) - ((_t$inkSpan = t.inkSpan) != null ? _t$inkSpan : 0.54) * f,
|
|
39244
|
+
// dimBase < 1 fades un-scanned dots so the meridian reads clearly
|
|
39245
|
+
a: h + (1 - h) * Math.min(1, L)
|
|
39246
|
+
});
|
|
39247
|
+
}
|
|
39248
|
+
}
|
|
39249
|
+
_(e, b, r, t.rMin);
|
|
39250
|
+
},
|
|
39251
|
+
it = function it(e, n, s, r, t) {
|
|
39252
|
+
var _t$rsPow2, _t$moveCount, _t$latRings2, _t$lonDensity2;
|
|
39253
|
+
var o = n / 2,
|
|
39254
|
+
c = n / 2,
|
|
39255
|
+
a = n / 2 * 0.82,
|
|
39256
|
+
i = q(s * 0.55, 0.35 + 0.1 * Math.sin(s * 0.9), o, c, a),
|
|
39257
|
+
m = $(n, (_t$rsPow2 = t.rsPow) != null ? _t$rsPow2 : 0.6),
|
|
39258
|
+
g = (_t$moveCount = t.moveCount) != null ? _t$moveCount : 14,
|
|
39259
|
+
M = at(g),
|
|
39260
|
+
u = et(s, g, 0.42, 1.2),
|
|
39261
|
+
h = [],
|
|
39262
|
+
b = (_t$latRings2 = t.latRings) != null ? _t$latRings2 : 15,
|
|
39263
|
+
x = (_t$lonDensity2 = t.lonDensity) != null ? _t$lonDensity2 : 40;
|
|
39264
|
+
for (var I = 0; I <= b; I++) {
|
|
39265
|
+
var P = -Math.PI / 2 + I / b * Math.PI,
|
|
39266
|
+
y = Math.cos(P),
|
|
39267
|
+
D = Math.sin(P),
|
|
39268
|
+
w = Math.max(1, Math.round(Math.abs(y) * x));
|
|
39269
|
+
for (var k = 0; k < w; k++) {
|
|
39270
|
+
var _t$rBase2, _t$rDepth2, _t$rActive, _t$inkFar2, _t$inkSpan2;
|
|
39271
|
+
var v = k / w * 2 * Math.PI,
|
|
39272
|
+
_ct = ct([y * Math.cos(v), D, y * Math.sin(v)], M, u),
|
|
39273
|
+
_ct2 = _slicedToArray(_ct, 4),
|
|
39274
|
+
R = _ct2[0],
|
|
39275
|
+
p = _ct2[1],
|
|
39276
|
+
d = _ct2[2],
|
|
39277
|
+
l = _ct2[3],
|
|
39278
|
+
_i = i(R, p, d),
|
|
39279
|
+
_i2 = _slicedToArray(_i, 3),
|
|
39280
|
+
f = _i2[0],
|
|
39281
|
+
S = _i2[1],
|
|
39282
|
+
L = _i2[2],
|
|
39283
|
+
A = (L + 1) / 2;
|
|
39284
|
+
h.push({
|
|
39285
|
+
x: f,
|
|
39286
|
+
y: S,
|
|
39287
|
+
z: L,
|
|
39288
|
+
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,
|
|
39289
|
+
white: ((_t$inkFar2 = t.inkFar) != null ? _t$inkFar2 : 0.62) - ((_t$inkSpan2 = t.inkSpan) != null ? _t$inkSpan2 : 0.54) * A - (l ? 0.14 : 0)
|
|
39290
|
+
});
|
|
39291
|
+
}
|
|
39292
|
+
}
|
|
39293
|
+
_(e, h, r, t.rMin);
|
|
39294
|
+
},
|
|
39295
|
+
ht = function ht(e, n, s, r, t) {
|
|
39296
|
+
var _t$rsPow3, _t$rings, _t$lonDensity3;
|
|
39297
|
+
var o = n / 2,
|
|
39298
|
+
c = n / 2,
|
|
39299
|
+
a = n / 2 * 0.874,
|
|
39300
|
+
i = q(s * 0.18, 0.38, o, c, 1),
|
|
39301
|
+
m = $(n, (_t$rsPow3 = t.rsPow) != null ? _t$rsPow3 : 0.6),
|
|
39302
|
+
g = [],
|
|
39303
|
+
M = (_t$rings = t.rings) != null ? _t$rings : 15,
|
|
39304
|
+
u = (_t$lonDensity3 = t.lonDensity) != null ? _t$lonDensity3 : 40;
|
|
39305
|
+
for (var h = 0; h <= M; h++) {
|
|
39306
|
+
var b = -Math.PI / 2 + h / M * Math.PI,
|
|
39307
|
+
x = Math.cos(b),
|
|
39308
|
+
I = Math.sin(b),
|
|
39309
|
+
P = 0.62 * Math.sin(s * 2.1 - h * 0.52) + 0.38 * Math.sin(s * 1.27 + h * 0.83),
|
|
39310
|
+
y = a * (0.88 + 0.105 * P),
|
|
39311
|
+
D = Math.max(1, Math.round(Math.abs(x) * u));
|
|
39312
|
+
for (var w = 0; w < D; w++) {
|
|
39313
|
+
var _t$rBase3, _t$rDepth3;
|
|
39314
|
+
var k = w / D * 2 * Math.PI,
|
|
39315
|
+
_i3 = i(x * Math.cos(k) * y, I * y, x * Math.sin(k) * y),
|
|
39316
|
+
_i4 = _slicedToArray(_i3, 3),
|
|
39317
|
+
v = _i4[0],
|
|
39318
|
+
R = _i4[1],
|
|
39319
|
+
p = _i4[2],
|
|
39320
|
+
d = (p / a + 1) / 2,
|
|
39321
|
+
l = Math.max(0, P);
|
|
39322
|
+
g.push({
|
|
39323
|
+
x: v,
|
|
39324
|
+
y: R,
|
|
39325
|
+
z: p,
|
|
39326
|
+
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,
|
|
39327
|
+
white: 0.66 - 0.56 * d - 0.1 * l
|
|
39328
|
+
});
|
|
39329
|
+
}
|
|
39330
|
+
}
|
|
39331
|
+
_(e, g, r, t.rMin);
|
|
39332
|
+
};
|
|
39333
|
+
function lt(e) {
|
|
39334
|
+
return e * e * (3 - 2 * e);
|
|
39335
|
+
}
|
|
39336
|
+
function Q(e) {
|
|
39337
|
+
var n = e.length,
|
|
39338
|
+
s = [];
|
|
39339
|
+
var r = 0;
|
|
39340
|
+
for (var t = 0; t < n; t++) {
|
|
39341
|
+
var o = e[t],
|
|
39342
|
+
c = e[(t + 1) % n],
|
|
39343
|
+
a = Math.hypot(c[0] - o[0], c[1] - o[1]);
|
|
39344
|
+
s.push(a), r += a;
|
|
39345
|
+
}
|
|
39346
|
+
return function (t) {
|
|
39347
|
+
var o = t * r,
|
|
39348
|
+
c = 0;
|
|
39349
|
+
for (; o > s[c] && c < n - 1;) o -= s[c], c++;
|
|
39350
|
+
var a = e[c],
|
|
39351
|
+
i = e[(c + 1) % n],
|
|
39352
|
+
m = s[c] ? Math.min(1, o / s[c]) : 0;
|
|
39353
|
+
return [a[0] + (i[0] - a[0]) * m, a[1] + (i[1] - a[1]) * m];
|
|
39354
|
+
};
|
|
39355
|
+
}
|
|
39356
|
+
var ut = function ut(e) {
|
|
39357
|
+
var n = -Math.PI / 2 + e * 2 * Math.PI;
|
|
39358
|
+
return [Math.cos(n) * 0.24, Math.sin(n) * 0.24];
|
|
39359
|
+
},
|
|
39360
|
+
Mt = Q([[0, -0.26], [0.24, 0.16], [-0.24, 0.16]]),
|
|
39361
|
+
pt = Q([[0, -0.2], [0.2, -0.2], [0.2, 0.2], [-0.2, 0.2], [-0.2, -0.2]]),
|
|
39362
|
+
Y = [ut, Mt, pt];
|
|
39363
|
+
function dt(e) {
|
|
39364
|
+
return Math.max(6, Math.round(34 * e));
|
|
39365
|
+
}
|
|
39366
|
+
var U = 1.4,
|
|
39367
|
+
J = 0.9,
|
|
39368
|
+
K = U + J,
|
|
39369
|
+
ft = function ft(e, n, s, r, t) {
|
|
39370
|
+
var _t$spread, _t$iconD, _t$rDot;
|
|
39371
|
+
var o = Y.length,
|
|
39372
|
+
c = s % (K * o),
|
|
39373
|
+
a = Math.floor(c / K),
|
|
39374
|
+
i = c - a * K,
|
|
39375
|
+
m = i > U ? lt((i - U) / J) : 0,
|
|
39376
|
+
g = (_t$spread = t.spread) != null ? _t$spread : 1,
|
|
39377
|
+
M = Y[a],
|
|
39378
|
+
u = Y[(a + 1) % o],
|
|
39379
|
+
h = 160,
|
|
39380
|
+
b = [];
|
|
39381
|
+
for (var p = 0; p < h; p++) {
|
|
39382
|
+
var d = p / h,
|
|
39383
|
+
l = M(d),
|
|
39384
|
+
f = u(d);
|
|
39385
|
+
b.push([(l[0] + (f[0] - l[0]) * m) * g, (l[1] + (f[1] - l[1]) * m) * g]);
|
|
39386
|
+
}
|
|
39387
|
+
var x = [];
|
|
39388
|
+
var I = 0;
|
|
39389
|
+
for (var _p = 0; _p < h; _p++) {
|
|
39390
|
+
var _d = b[_p],
|
|
39391
|
+
_l = b[(_p + 1) % h],
|
|
39392
|
+
_f = Math.hypot(_l[0] - _d[0], _l[1] - _d[1]);
|
|
39393
|
+
x.push(_f), I += _f;
|
|
39394
|
+
}
|
|
39395
|
+
var P = dt((_t$iconD = t.iconD) != null ? _t$iconD : 1),
|
|
39396
|
+
y = ((_t$rDot = t.rDot) != null ? _t$rDot : 0.021) * 1.35 * g,
|
|
39397
|
+
D = 1 + 0.02 * Math.sin(i * 3.1),
|
|
39398
|
+
w = [],
|
|
39399
|
+
k = n / 2;
|
|
39400
|
+
var v = 0,
|
|
39401
|
+
R = 0;
|
|
39402
|
+
for (var _p2 = 0; _p2 < P; _p2++) {
|
|
39403
|
+
var _d2 = _p2 / P * I;
|
|
39404
|
+
for (; R + x[v] < _d2 && v < h - 1;) R += x[v], v++;
|
|
39405
|
+
var _l2 = b[v],
|
|
39406
|
+
_f2 = b[(v + 1) % h],
|
|
39407
|
+
S = x[v] ? Math.min(1, (_d2 - R) / x[v]) : 0,
|
|
39408
|
+
L = (_l2[0] + (_f2[0] - _l2[0]) * S) * D,
|
|
39409
|
+
A = (_l2[1] + (_f2[1] - _l2[1]) * S) * D;
|
|
39410
|
+
w.push({
|
|
39411
|
+
x: k + L * n,
|
|
39412
|
+
y: k + A * n,
|
|
39413
|
+
z: 0,
|
|
39414
|
+
r: Math.max(0.35, y * n),
|
|
39415
|
+
white: 0.1
|
|
39416
|
+
});
|
|
39417
|
+
}
|
|
39418
|
+
_(e, w, r, t.rMin);
|
|
39419
|
+
},
|
|
39420
|
+
mt = function mt(e, n, s, r, t) {
|
|
39421
|
+
var _t$rsPow4, _t$orbitN, _t$ghostN, _t$particles;
|
|
39422
|
+
var o = n / 2,
|
|
39423
|
+
c = n / 2,
|
|
39424
|
+
a = n / 2 * 0.82,
|
|
39425
|
+
i = q(s * 0.12, 0.3, o, c, 1),
|
|
39426
|
+
m = $(n, (_t$rsPow4 = t.rsPow) != null ? _t$rsPow4 : 0.6),
|
|
39427
|
+
g = [],
|
|
39428
|
+
M = (_t$orbitN = t.orbitN) != null ? _t$orbitN : 12,
|
|
39429
|
+
u = (_t$ghostN = t.ghostN) != null ? _t$ghostN : 40,
|
|
39430
|
+
h = (_t$particles = t.particles) != null ? _t$particles : 3;
|
|
39431
|
+
for (var b = 0; b < M; b++) {
|
|
39432
|
+
var x = F(b, 1.7),
|
|
39433
|
+
I = F(b, 5.2),
|
|
39434
|
+
P = F(b, 8.9),
|
|
39435
|
+
y = a * (0.45 + 0.52 * x),
|
|
39436
|
+
D = x * 2 * Math.PI,
|
|
39437
|
+
w = Math.acos(2 * I - 1),
|
|
39438
|
+
k = Math.sin(w) * Math.cos(D),
|
|
39439
|
+
v = Math.cos(w),
|
|
39440
|
+
R = Math.sin(w) * Math.sin(D);
|
|
39441
|
+
var p = -v,
|
|
39442
|
+
d = k;
|
|
39443
|
+
var l = 0,
|
|
39444
|
+
f = Math.max(1e-6, Math.sqrt(p * p + d * d));
|
|
39445
|
+
p /= f, d /= f;
|
|
39446
|
+
var S = v * l - R * d,
|
|
39447
|
+
L = R * p - k * l,
|
|
39448
|
+
A = k * d - v * p,
|
|
39449
|
+
B = (0.25 + 0.55 * P) * (P > 0.5 ? 1 : -1);
|
|
39450
|
+
for (var C = 0; C < u; C++) {
|
|
39451
|
+
var _t$ghostR, _t$ghostA;
|
|
39452
|
+
var E = C / u * 2 * Math.PI,
|
|
39453
|
+
_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),
|
|
39454
|
+
_i6 = _slicedToArray(_i5, 3),
|
|
39455
|
+
T = _i6[0],
|
|
39456
|
+
z = _i6[1],
|
|
39457
|
+
N = _i6[2],
|
|
39458
|
+
O = (N / y + 1) / 2;
|
|
39459
|
+
g.push({
|
|
39460
|
+
x: T,
|
|
39461
|
+
y: z,
|
|
39462
|
+
z: N,
|
|
39463
|
+
r: ((_t$ghostR = t.ghostR) != null ? _t$ghostR : 0.9) * m,
|
|
39464
|
+
white: 0.72,
|
|
39465
|
+
a: ((_t$ghostA = t.ghostA) != null ? _t$ghostA : 0.5) * (0.4 + 0.6 * O)
|
|
39466
|
+
});
|
|
39467
|
+
}
|
|
39468
|
+
for (var _C = 0; _C < h; _C++) {
|
|
39469
|
+
var _t$partR, _t$partRDepth;
|
|
39470
|
+
var _E = s * B + _C / h * 2 * Math.PI + I * 6,
|
|
39471
|
+
_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),
|
|
39472
|
+
_i8 = _slicedToArray(_i7, 3),
|
|
39473
|
+
_T = _i8[0],
|
|
39474
|
+
_z = _i8[1],
|
|
39475
|
+
_N = _i8[2],
|
|
39476
|
+
_O = (_N / y + 1) / 2;
|
|
39477
|
+
g.push({
|
|
39478
|
+
x: _T,
|
|
39479
|
+
y: _z,
|
|
39480
|
+
z: _N,
|
|
39481
|
+
r: (((_t$partR = t.partR) != null ? _t$partR : 1.2) + ((_t$partRDepth = t.partRDepth) != null ? _t$partRDepth : 1.6) * _O) * m,
|
|
39482
|
+
white: 0.3 - 0.22 * _O
|
|
39483
|
+
});
|
|
39484
|
+
}
|
|
39485
|
+
}
|
|
39486
|
+
_(e, g, r, t.rMin);
|
|
39487
|
+
},
|
|
39488
|
+
gt = function gt(e, n, s, r, t) {
|
|
39489
|
+
var _t$spin, _t$rsPow5, _t$ghostN2, _t$lanes, _t$segs, _t$bandMul;
|
|
39490
|
+
var o = n / 2,
|
|
39491
|
+
c = n / 2,
|
|
39492
|
+
a = n / 2 * 0.78,
|
|
39493
|
+
i = (_t$spin = t.spin) != null ? _t$spin : 1,
|
|
39494
|
+
m = q(s * 0.1 * i, 0.3, o, c, 1),
|
|
39495
|
+
g = $(n, (_t$rsPow5 = t.rsPow) != null ? _t$rsPow5 : 0.6),
|
|
39496
|
+
M = [],
|
|
39497
|
+
u = (_t$ghostN2 = t.ghostN) != null ? _t$ghostN2 : 150;
|
|
39498
|
+
for (var f = 0; f < u; f++) {
|
|
39499
|
+
var S = st(f, u),
|
|
39500
|
+
_m = m(S[0] * a, S[1] * a, S[2] * a),
|
|
39501
|
+
_m2 = _slicedToArray(_m, 3),
|
|
39502
|
+
L = _m2[0],
|
|
39503
|
+
A = _m2[1],
|
|
39504
|
+
B = _m2[2],
|
|
39505
|
+
C = (B / a + 1) / 2;
|
|
39506
|
+
M.push({
|
|
39507
|
+
x: L,
|
|
39508
|
+
y: A,
|
|
39509
|
+
z: B,
|
|
39510
|
+
r: 0.8 * g,
|
|
39511
|
+
white: 0.78,
|
|
39512
|
+
a: 0.1 + 0.22 * C
|
|
39513
|
+
});
|
|
39514
|
+
}
|
|
39515
|
+
var h = s * 0.24 * i,
|
|
39516
|
+
b = 0.55 + 0.3 * Math.sin(s * 0.18) * i,
|
|
39517
|
+
x = Math.cos(h),
|
|
39518
|
+
I = 0,
|
|
39519
|
+
P = Math.sin(h),
|
|
39520
|
+
y = -P * Math.sin(b),
|
|
39521
|
+
D = Math.cos(b),
|
|
39522
|
+
w = x * Math.sin(b),
|
|
39523
|
+
k = I * w - P * D,
|
|
39524
|
+
v = P * y - x * w,
|
|
39525
|
+
R = x * D - I * y,
|
|
39526
|
+
p = (_t$lanes = t.lanes) != null ? _t$lanes : 5,
|
|
39527
|
+
d = (_t$segs = t.segs) != null ? _t$segs : 88,
|
|
39528
|
+
l = Math.max(1, Math.round(p * ((_t$bandMul = t.bandMul) != null ? _t$bandMul : 1)));
|
|
39529
|
+
for (var _f3 = 0; _f3 < l; _f3++) {
|
|
39530
|
+
var _S = (_f3 - (l - 1) / 2) * 0.075,
|
|
39531
|
+
_L = Math.abs(_f3 - (l - 1) / 2) / Math.max(1, (l - 1) / 2);
|
|
39532
|
+
for (var _A = 0; _A < d; _A++) {
|
|
39533
|
+
var _t$wobMul, _t$rBase4, _t$rDepth4;
|
|
39534
|
+
var _B = _A / d * 2 * Math.PI,
|
|
39535
|
+
_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),
|
|
39536
|
+
E = _S + _C2,
|
|
39537
|
+
T = x * Math.cos(_B) + y * Math.sin(_B) + k * E,
|
|
39538
|
+
z = I * Math.cos(_B) + D * Math.sin(_B) + v * E,
|
|
39539
|
+
N = P * Math.cos(_B) + w * Math.sin(_B) + R * E,
|
|
39540
|
+
O = Math.sqrt(T * T + z * z + N * N),
|
|
39541
|
+
_m3 = m(T / O * a, z / O * a, N / O * a),
|
|
39542
|
+
_m4 = _slicedToArray(_m3, 3),
|
|
39543
|
+
X = _m4[0],
|
|
39544
|
+
Z = _m4[1],
|
|
39545
|
+
W = _m4[2],
|
|
39546
|
+
j = (W / a + 1) / 2;
|
|
39547
|
+
M.push({
|
|
39548
|
+
x: X,
|
|
39549
|
+
y: Z,
|
|
39550
|
+
z: W,
|
|
39551
|
+
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,
|
|
39552
|
+
white: 0.52 - 0.44 * j + 0.18 * _L,
|
|
39553
|
+
a: 0.4 + 0.6 * j
|
|
39554
|
+
});
|
|
39555
|
+
}
|
|
39556
|
+
}
|
|
39557
|
+
_(e, M, r, t.rMin);
|
|
39558
|
+
},
|
|
39559
|
+
bt = {
|
|
39560
|
+
orbits: mt,
|
|
39561
|
+
globe: rt,
|
|
39562
|
+
rubik: it,
|
|
39563
|
+
wave: ht,
|
|
39564
|
+
ribbon: gt,
|
|
39565
|
+
morph: ft
|
|
39566
|
+
},
|
|
39567
|
+
yt = [["latRings", "lonDensity"], ["rings", "lonDensity"], ["lanes", "segs"]],
|
|
39568
|
+
xt = ["orbitN", "ghostN"],
|
|
39569
|
+
vt = ["iconD"],
|
|
39570
|
+
wt = ["rBase", "rDepth", "rActive", "rDot", "ghostR", "partR", "partRDepth"];
|
|
39571
|
+
function kt(e, n) {
|
|
39572
|
+
var s = _extends({}, e),
|
|
39573
|
+
r = /* @__PURE__ */new Set(),
|
|
39574
|
+
t = Math.sqrt(n);
|
|
39575
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$c(yt), _step2; !(_step2 = _iterator2()).done;) {
|
|
39576
|
+
var _step2$value = _slicedToArray(_step2.value, 2),
|
|
39577
|
+
o = _step2$value[0],
|
|
39578
|
+
c = _step2$value[1];
|
|
39579
|
+
var a = s[o],
|
|
39580
|
+
i = s[c];
|
|
39581
|
+
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));
|
|
39582
|
+
}
|
|
39583
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$c(xt), _step3; !(_step3 = _iterator3()).done;) {
|
|
39584
|
+
var _o = _step3.value;
|
|
39585
|
+
var _c = s[_o];
|
|
39586
|
+
_c != null && !r.has(_o) && (s[_o] = Math.max(1, Math.round(_c * n)));
|
|
39587
|
+
}
|
|
39588
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$c(vt), _step4; !(_step4 = _iterator4()).done;) {
|
|
39589
|
+
var _o2 = _step4.value;
|
|
39590
|
+
var _c2 = s[_o2];
|
|
39591
|
+
_c2 != null && (s[_o2] = Math.max(0.02, _c2 * n));
|
|
39592
|
+
}
|
|
39593
|
+
return s;
|
|
39594
|
+
}
|
|
39595
|
+
function Pt(e, n) {
|
|
39596
|
+
var _s$rSizeMul;
|
|
39597
|
+
var s = _extends({}, e);
|
|
39598
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$c(wt), _step5; !(_step5 = _iterator5()).done;) {
|
|
39599
|
+
var r = _step5.value;
|
|
39600
|
+
var t = s[r];
|
|
39601
|
+
t != null && (s[r] = t * n);
|
|
39602
|
+
}
|
|
39603
|
+
return s.rSizeMul = ((_s$rSizeMul = s.rSizeMul) != null ? _s$rSizeMul : 1) * n, s;
|
|
39604
|
+
}
|
|
39605
|
+
var Dt = {
|
|
39606
|
+
globe: {
|
|
39607
|
+
latRings: 17,
|
|
39608
|
+
lonDensity: 44,
|
|
39609
|
+
rBase: 0.6,
|
|
39610
|
+
rDepth: 1.7,
|
|
39611
|
+
rBoost: 1,
|
|
39612
|
+
inkFar: 0.62,
|
|
39613
|
+
inkSpan: 0.54,
|
|
39614
|
+
rsPow: 0.6,
|
|
39615
|
+
rMin: 0.3
|
|
39616
|
+
},
|
|
39617
|
+
orbits: {
|
|
39618
|
+
orbitN: 12,
|
|
39619
|
+
ghostN: 40,
|
|
39620
|
+
ghostR: 0.9,
|
|
39621
|
+
ghostA: 0.5,
|
|
39622
|
+
particles: 3,
|
|
39623
|
+
partR: 1.2,
|
|
39624
|
+
partRDepth: 1.6,
|
|
39625
|
+
rsPow: 0.6,
|
|
39626
|
+
rMin: 0.3
|
|
39627
|
+
},
|
|
39628
|
+
rubik: {
|
|
39629
|
+
latRings: 15,
|
|
39630
|
+
lonDensity: 40,
|
|
39631
|
+
moveCount: 14,
|
|
39632
|
+
rBase: 0.6,
|
|
39633
|
+
rDepth: 1.7,
|
|
39634
|
+
rActive: 0.3,
|
|
39635
|
+
inkFar: 0.62,
|
|
39636
|
+
inkSpan: 0.54,
|
|
39637
|
+
rsPow: 0.6,
|
|
39638
|
+
rMin: 0.3
|
|
39639
|
+
},
|
|
39640
|
+
wave: {
|
|
39641
|
+
rings: 15,
|
|
39642
|
+
lonDensity: 40,
|
|
39643
|
+
rBase: 0.6,
|
|
39644
|
+
rDepth: 1.7,
|
|
39645
|
+
rsPow: 0.6,
|
|
39646
|
+
rMin: 0.3
|
|
39647
|
+
},
|
|
39648
|
+
ribbon: {
|
|
39649
|
+
lanes: 5,
|
|
39650
|
+
segs: 88,
|
|
39651
|
+
ghostN: 150,
|
|
39652
|
+
rBase: 1.1,
|
|
39653
|
+
rDepth: 1.7,
|
|
39654
|
+
rsPow: 0.6,
|
|
39655
|
+
rMin: 0.3
|
|
39656
|
+
},
|
|
39657
|
+
morph: {
|
|
39658
|
+
rDot: 0.021,
|
|
39659
|
+
iconD: 1,
|
|
39660
|
+
rMin: 0.25
|
|
39661
|
+
}
|
|
39662
|
+
},
|
|
39663
|
+
Rt = {
|
|
39664
|
+
working: "orbits",
|
|
39665
|
+
searching: "globe",
|
|
39666
|
+
solving: "rubik",
|
|
39667
|
+
listening: "wave",
|
|
39668
|
+
composing: "ribbon",
|
|
39669
|
+
shaping: "morph"
|
|
39670
|
+
},
|
|
39671
|
+
St = {
|
|
39672
|
+
orbits: {
|
|
39673
|
+
64: {
|
|
39674
|
+
speed: 1.885,
|
|
39675
|
+
count: 1,
|
|
39676
|
+
size: 1
|
|
39677
|
+
},
|
|
39678
|
+
20: {
|
|
39679
|
+
speed: 3.9,
|
|
39680
|
+
count: 0.238,
|
|
39681
|
+
size: 2.4
|
|
39682
|
+
}
|
|
39683
|
+
},
|
|
39684
|
+
globe: {
|
|
39685
|
+
64: {
|
|
39686
|
+
speed: 2.015,
|
|
39687
|
+
count: 0.42,
|
|
39688
|
+
size: 1.15,
|
|
39689
|
+
extra: {
|
|
39690
|
+
scanMul: 4.08,
|
|
39691
|
+
dimBase: 0.45
|
|
39692
|
+
}
|
|
39693
|
+
},
|
|
39694
|
+
20: {
|
|
39695
|
+
speed: 2.665,
|
|
39696
|
+
count: 0.105,
|
|
39697
|
+
size: 1.75,
|
|
39698
|
+
extra: {
|
|
39699
|
+
scanMul: 4.335,
|
|
39700
|
+
dimBase: 0.45
|
|
39701
|
+
}
|
|
39702
|
+
}
|
|
39703
|
+
},
|
|
39704
|
+
rubik: {
|
|
39705
|
+
64: {
|
|
39706
|
+
speed: 1.82,
|
|
39707
|
+
count: 0.35,
|
|
39708
|
+
size: 1.05
|
|
39709
|
+
},
|
|
39710
|
+
20: {
|
|
39711
|
+
speed: 1.95,
|
|
39712
|
+
count: 0.088,
|
|
39713
|
+
size: 1.9
|
|
39714
|
+
}
|
|
39715
|
+
},
|
|
39716
|
+
wave: {
|
|
39717
|
+
64: {
|
|
39718
|
+
speed: 4.388,
|
|
39719
|
+
count: 0.341,
|
|
39720
|
+
size: 1
|
|
39721
|
+
},
|
|
39722
|
+
20: {
|
|
39723
|
+
speed: 3.998,
|
|
39724
|
+
count: 0.105,
|
|
39725
|
+
size: 1.6
|
|
39726
|
+
}
|
|
39727
|
+
},
|
|
39728
|
+
ribbon: {
|
|
39729
|
+
64: {
|
|
39730
|
+
speed: 2.34,
|
|
39731
|
+
count: 0.25,
|
|
39732
|
+
size: 0.85,
|
|
39733
|
+
extra: {
|
|
39734
|
+
spin: 0,
|
|
39735
|
+
bandMul: 3.9,
|
|
39736
|
+
wobMul: 1
|
|
39737
|
+
}
|
|
39738
|
+
},
|
|
39739
|
+
20: {
|
|
39740
|
+
speed: 3.12,
|
|
39741
|
+
count: 0.051,
|
|
39742
|
+
size: 1.073,
|
|
39743
|
+
extra: {
|
|
39744
|
+
spin: 0,
|
|
39745
|
+
bandMul: 4.94,
|
|
39746
|
+
wobMul: 1
|
|
39747
|
+
}
|
|
39748
|
+
}
|
|
39749
|
+
},
|
|
39750
|
+
morph: {
|
|
39751
|
+
64: {
|
|
39752
|
+
speed: 2.405,
|
|
39753
|
+
count: 0.54,
|
|
39754
|
+
size: 0.395,
|
|
39755
|
+
extra: {
|
|
39756
|
+
spread: 1.45
|
|
39757
|
+
}
|
|
39758
|
+
},
|
|
39759
|
+
20: {
|
|
39760
|
+
speed: 2.08,
|
|
39761
|
+
count: 0.53,
|
|
39762
|
+
size: 1.011,
|
|
39763
|
+
extra: {
|
|
39764
|
+
spread: 1.45
|
|
39765
|
+
}
|
|
39766
|
+
}
|
|
39767
|
+
}
|
|
39768
|
+
},
|
|
39769
|
+
H = /* @__PURE__ */new Map();
|
|
39770
|
+
function It(e, n) {
|
|
39771
|
+
var s = e + "-" + n,
|
|
39772
|
+
r = H.get(s);
|
|
39773
|
+
if (r) return r;
|
|
39774
|
+
var t = Rt[e],
|
|
39775
|
+
o = St[t][n];
|
|
39776
|
+
var c = _extends({}, Dt[t]);
|
|
39777
|
+
o.count !== 1 && (c = kt(c, o.count)), o.size !== 1 && (c = Pt(c, o.size)), o.extra && (c = _extends({}, c, o.extra));
|
|
39778
|
+
var a = {
|
|
39779
|
+
mode: t,
|
|
39780
|
+
speed: o.speed,
|
|
39781
|
+
opts: c
|
|
39782
|
+
};
|
|
39783
|
+
return H.set(s, a), a;
|
|
39784
|
+
}
|
|
39785
|
+
function Et(e) {
|
|
39786
|
+
var n = e;
|
|
39787
|
+
for (; n;) {
|
|
39788
|
+
var s = n.getAttribute("data-theme");
|
|
39789
|
+
if (s === "dark") return true;
|
|
39790
|
+
if (s === "light") return false;
|
|
39791
|
+
if (n.classList.contains("dark")) return true;
|
|
39792
|
+
if (n.classList.contains("light")) return false;
|
|
39793
|
+
n = n.parentElement;
|
|
39794
|
+
}
|
|
39795
|
+
return null;
|
|
39796
|
+
}
|
|
39797
|
+
function Lt() {
|
|
39798
|
+
return typeof matchMedia > "u" || matchMedia("(prefers-color-scheme: dark)").matches;
|
|
39799
|
+
}
|
|
39800
|
+
function At(e, n) {
|
|
39801
|
+
var _V = React.useState(true),
|
|
39802
|
+
_V2 = _slicedToArray(_V, 2),
|
|
39803
|
+
s = _V2[0],
|
|
39804
|
+
r = _V2[1];
|
|
39805
|
+
return React.useEffect(function () {
|
|
39806
|
+
if (e === "dark") {
|
|
39807
|
+
r(true);
|
|
39808
|
+
return;
|
|
39809
|
+
}
|
|
39810
|
+
if (e === "light") {
|
|
39811
|
+
r(false);
|
|
39812
|
+
return;
|
|
39813
|
+
}
|
|
39814
|
+
var t = function t() {
|
|
39815
|
+
var i = Et(n.current);
|
|
39816
|
+
r(i != null ? i : Lt());
|
|
39817
|
+
};
|
|
39818
|
+
t();
|
|
39819
|
+
var o = typeof matchMedia < "u" ? matchMedia("(prefers-color-scheme: dark)") : null,
|
|
39820
|
+
c = function c() {
|
|
39821
|
+
return t();
|
|
39822
|
+
};
|
|
39823
|
+
o == null || o.addEventListener("change", c);
|
|
39824
|
+
var a = null;
|
|
39825
|
+
return typeof MutationObserver < "u" && n.current && (a = new MutationObserver(t), a.observe(document.documentElement, {
|
|
39826
|
+
attributes: true,
|
|
39827
|
+
attributeFilter: ["class", "data-theme"],
|
|
39828
|
+
subtree: true
|
|
39829
|
+
})), function () {
|
|
39830
|
+
o == null || o.removeEventListener("change", c), a == null || a.disconnect();
|
|
39831
|
+
};
|
|
39832
|
+
}, [e, n]), s;
|
|
39833
|
+
}
|
|
39834
|
+
function Bt() {
|
|
39835
|
+
var _V3 = React.useState(false),
|
|
39836
|
+
_V4 = _slicedToArray(_V3, 2),
|
|
39837
|
+
e = _V4[0],
|
|
39838
|
+
n = _V4[1];
|
|
39839
|
+
return React.useEffect(function () {
|
|
39840
|
+
if (typeof matchMedia > "u") return;
|
|
39841
|
+
var s = matchMedia("(prefers-reduced-motion: reduce)");
|
|
39842
|
+
n(s.matches);
|
|
39843
|
+
var r = function r(t) {
|
|
39844
|
+
return n(t.matches);
|
|
39845
|
+
};
|
|
39846
|
+
return s.addEventListener("change", r), function () {
|
|
39847
|
+
return s.removeEventListener("change", r);
|
|
39848
|
+
};
|
|
39849
|
+
}, []), e;
|
|
39850
|
+
}
|
|
39851
|
+
var Ct = {
|
|
39852
|
+
working: "Working…",
|
|
39853
|
+
searching: "Searching…",
|
|
39854
|
+
solving: "Solving…",
|
|
39855
|
+
listening: "Listening…",
|
|
39856
|
+
composing: "Composing…",
|
|
39857
|
+
shaping: "Shaping…"
|
|
39858
|
+
};
|
|
39859
|
+
function Tt(_ref) {
|
|
39860
|
+
var _ref$state = _ref.state,
|
|
39861
|
+
e = _ref$state === void 0 ? "working" : _ref$state,
|
|
39862
|
+
_ref$size = _ref.size,
|
|
39863
|
+
n = _ref$size === void 0 ? 64 : _ref$size,
|
|
39864
|
+
_ref$theme = _ref.theme,
|
|
39865
|
+
s = _ref$theme === void 0 ? "auto" : _ref$theme,
|
|
39866
|
+
_ref$speed = _ref.speed,
|
|
39867
|
+
r = _ref$speed === void 0 ? 1 : _ref$speed,
|
|
39868
|
+
_ref$paused = _ref.paused,
|
|
39869
|
+
t = _ref$paused === void 0 ? false : _ref$paused,
|
|
39870
|
+
o = _ref.style,
|
|
39871
|
+
c = _ref["aria-label"],
|
|
39872
|
+
a = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
39873
|
+
var i = React.useRef(null),
|
|
39874
|
+
m = At(s, i),
|
|
39875
|
+
g = Bt();
|
|
39876
|
+
return React.useEffect(function () {
|
|
39877
|
+
var M = i.current;
|
|
39878
|
+
if (!M) return;
|
|
39879
|
+
var u = Math.min(2, typeof devicePixelRatio < "u" && devicePixelRatio || 1);
|
|
39880
|
+
M.width = Math.round(n * u), M.height = Math.round(n * u);
|
|
39881
|
+
var h = M.getContext("2d");
|
|
39882
|
+
if (!h) return;
|
|
39883
|
+
var _It = It(e, n),
|
|
39884
|
+
b = _It.mode,
|
|
39885
|
+
x = _It.speed,
|
|
39886
|
+
I = _It.opts,
|
|
39887
|
+
P = bt[b],
|
|
39888
|
+
y = x * r,
|
|
39889
|
+
D = function D(S) {
|
|
39890
|
+
h.setTransform(u, 0, 0, u, 0, 0), h.clearRect(0, 0, n, n), P(h, n, S, m, I);
|
|
39891
|
+
};
|
|
39892
|
+
if (g) {
|
|
39893
|
+
D(0.6);
|
|
39894
|
+
return;
|
|
39895
|
+
}
|
|
39896
|
+
var w = 0,
|
|
39897
|
+
k = false;
|
|
39898
|
+
var _v = function v() {
|
|
39899
|
+
D(performance.now() / 1e3 * y), k && (w = requestAnimationFrame(_v));
|
|
39900
|
+
},
|
|
39901
|
+
R = function R() {
|
|
39902
|
+
k || t || (k = true, w = requestAnimationFrame(_v));
|
|
39903
|
+
},
|
|
39904
|
+
p = function p() {
|
|
39905
|
+
k = false, cancelAnimationFrame(w);
|
|
39906
|
+
};
|
|
39907
|
+
D(performance.now() / 1e3 * y);
|
|
39908
|
+
var d = true;
|
|
39909
|
+
var l = typeof IntersectionObserver < "u" ? new IntersectionObserver(function (_ref2) {
|
|
39910
|
+
var _ref3 = _slicedToArray(_ref2, 1),
|
|
39911
|
+
S = _ref3[0];
|
|
39912
|
+
d = S.isIntersecting, d && document.visibilityState !== "hidden" ? R() : p();
|
|
39913
|
+
}) : null;
|
|
39914
|
+
l == null || l.observe(M);
|
|
39915
|
+
var f = function f() {
|
|
39916
|
+
document.visibilityState === "hidden" ? p() : d && R();
|
|
39917
|
+
};
|
|
39918
|
+
return document.addEventListener("visibilitychange", f), l || R(), function () {
|
|
39919
|
+
p(), l == null || l.disconnect(), document.removeEventListener("visibilitychange", f);
|
|
39920
|
+
};
|
|
39921
|
+
}, [e, n, m, r, t, g]), /* @__PURE__ */jsxRuntime.jsx("canvas", _extends({
|
|
39922
|
+
ref: i,
|
|
39923
|
+
role: "img",
|
|
39924
|
+
"aria-label": c != null ? c : Ct[e],
|
|
39925
|
+
style: _extends({
|
|
39926
|
+
width: n,
|
|
39927
|
+
height: n,
|
|
39928
|
+
display: "block"
|
|
39929
|
+
}, o)
|
|
39930
|
+
}, a));
|
|
39931
|
+
}
|
|
39932
|
+
|
|
39933
|
+
var _templateObject$2, _templateObject2$2;
|
|
39058
39934
|
function OrbStatusScreen(_ref) {
|
|
39059
39935
|
var state = _ref.state,
|
|
39060
39936
|
text = _ref.text,
|
|
@@ -39062,7 +39938,7 @@ function OrbStatusScreen(_ref) {
|
|
|
39062
39938
|
loadingStage = _ref.loadingStage;
|
|
39063
39939
|
var theme = styledComponents.useTheme();
|
|
39064
39940
|
var label = accessibleLabel != null ? accessibleLabel : typeof text === 'string' ? text : undefined;
|
|
39065
|
-
var orb = jsxRuntime.jsx(
|
|
39941
|
+
var orb = jsxRuntime.jsx(Tt, {
|
|
39066
39942
|
state: state,
|
|
39067
39943
|
size: 64,
|
|
39068
39944
|
style: {
|
|
@@ -39116,7 +39992,7 @@ var Root = styledComponents.styled.div(_templateObject$2 || (_templateObject$2 =
|
|
|
39116
39992
|
var _props$theme$textColo;
|
|
39117
39993
|
return (_props$theme$textColo = props.theme.textColor) != null ? _props$theme$textColo : '#26332e';
|
|
39118
39994
|
});
|
|
39119
|
-
var Label = styledComponents.styled.span(_templateObject2$
|
|
39995
|
+
var Label = styledComponents.styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
|
|
39120
39996
|
|
|
39121
39997
|
function CompositeWizard(_ref) {
|
|
39122
39998
|
var _successScreen$isAppr;
|
|
@@ -40076,7 +40952,7 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40076
40952
|
return null;
|
|
40077
40953
|
}
|
|
40078
40954
|
|
|
40079
|
-
var _templateObject$1;
|
|
40955
|
+
var _templateObject$1, _templateObject2$1;
|
|
40080
40956
|
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
|
|
40081
40957
|
function FlowChassis(_ref) {
|
|
40082
40958
|
var client = _ref.client,
|
|
@@ -40170,7 +41046,26 @@ function AuthGate(_ref2) {
|
|
|
40170
41046
|
return null;
|
|
40171
41047
|
}
|
|
40172
41048
|
}
|
|
40173
|
-
|
|
41049
|
+
/**
|
|
41050
|
+
* The flow's page surface: `theme.header` and `theme.footer` (2.x's
|
|
41051
|
+
* SdkPage.tsx:41) frame a body that takes the remaining height and is the
|
|
41052
|
+
* positioned ancestor every flow stage lays out against.
|
|
41053
|
+
*/
|
|
41054
|
+
function FlowPage(_ref3) {
|
|
41055
|
+
var className = _ref3.className,
|
|
41056
|
+
children = _ref3.children;
|
|
41057
|
+
var _useTheme = styledComponents.useTheme(),
|
|
41058
|
+
Header = _useTheme.header,
|
|
41059
|
+
Footer = _useTheme.footer;
|
|
41060
|
+
return jsxRuntime.jsxs(FlowPageOuter, {
|
|
41061
|
+
className: className,
|
|
41062
|
+
children: [Header && jsxRuntime.jsx(Header, {}), jsxRuntime.jsx(FlowPageBody, {
|
|
41063
|
+
children: children
|
|
41064
|
+
}), Footer && jsxRuntime.jsx(Footer, {})]
|
|
41065
|
+
});
|
|
41066
|
+
}
|
|
41067
|
+
var FlowPageBody = styledComponents.styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
|
|
41068
|
+
var FlowPageOuter = styledComponents.styled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
|
|
40174
41069
|
var _props$theme$backgrou;
|
|
40175
41070
|
return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
40176
41071
|
}, function (props) {
|
|
@@ -43337,7 +44232,7 @@ function createDocumentCaptureController(config) {
|
|
|
43337
44232
|
var createCanvas = (_config$io$createCanv = (_config$io6 = config.io) == null ? void 0 : _config$io6.createCanvas) != null ? _config$io$createCanv : function () {
|
|
43338
44233
|
return document.createElement('canvas');
|
|
43339
44234
|
};
|
|
43340
|
-
var store =
|
|
44235
|
+
var store = createStore(function () {
|
|
43341
44236
|
var _config$documents;
|
|
43342
44237
|
return createInitialDocumentCaptureState(buildEntries((_config$documents = config.documents) != null ? _config$documents : [], createObjectUrl));
|
|
43343
44238
|
});
|
|
@@ -48027,7 +48922,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48027
48922
|
});
|
|
48028
48923
|
}
|
|
48029
48924
|
|
|
48030
|
-
var webSdkVersion = '2.5.
|
|
48925
|
+
var webSdkVersion = '2.5.62-react16compat.0';
|
|
48031
48926
|
|
|
48032
48927
|
var MAPPED = 'mapped';
|
|
48033
48928
|
var NOOP = 'dropped-noop';
|
|
@@ -49028,6 +49923,25 @@ var CustomerIdAndBiometricsEnrollment = function CustomerIdAndBiometricsEnrollme
|
|
|
49028
49923
|
}, mapCustomerIdAndBiometricsEnrollmentProps(props, ctx)), props.children);
|
|
49029
49924
|
};
|
|
49030
49925
|
|
|
49926
|
+
/**
|
|
49927
|
+
* react-16-compat: React 16/17 have no `createRoot`, so this adapts the legacy
|
|
49928
|
+
* `ReactDOM.render` API to the root shape the rest of this module expects.
|
|
49929
|
+
* Keeping that shape means the teardown logic below stays byte-identical to
|
|
49930
|
+
* develop and merges cleanly. Runs on React 16.14 through 18; React 19
|
|
49931
|
+
* removed `ReactDOM.render`, which is why this build's peer range stops at 18.
|
|
49932
|
+
*/
|
|
49933
|
+
function createRoot(container) {
|
|
49934
|
+
return {
|
|
49935
|
+
render: function render(element) {
|
|
49936
|
+
// eslint-disable-next-line react/no-deprecated -- the only mount API React 16 has
|
|
49937
|
+
ReactDOM__default.default.render(element, container);
|
|
49938
|
+
},
|
|
49939
|
+
unmount: function unmount() {
|
|
49940
|
+
// eslint-disable-next-line react/no-deprecated -- pairs with ReactDOM.render above
|
|
49941
|
+
ReactDOM__default.default.unmountComponentAtNode(container);
|
|
49942
|
+
}
|
|
49943
|
+
};
|
|
49944
|
+
}
|
|
49031
49945
|
/**
|
|
49032
49946
|
* Targets whose `remove` this module has already wrapped. Permanent: the
|
|
49033
49947
|
* wrapper is installed at most once per element, so repeat renders can never
|
|
@@ -49055,8 +49969,7 @@ function renderElement(component, targetElement) {
|
|
|
49055
49969
|
targetElement = document.createElement('div');
|
|
49056
49970
|
document.body.append(targetElement);
|
|
49057
49971
|
}
|
|
49058
|
-
var root =
|
|
49059
|
-
root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
|
|
49972
|
+
var root = createRoot(targetElement);
|
|
49060
49973
|
if ('remove' in targetElement) {
|
|
49061
49974
|
var element_1 = targetElement;
|
|
49062
49975
|
// Always point at the newest root, even when the wrapper is already
|
|
@@ -49106,6 +50019,10 @@ function renderElement(component, targetElement) {
|
|
|
49106
50019
|
};
|
|
49107
50020
|
}
|
|
49108
50021
|
}
|
|
50022
|
+
// react-16-compat: render LAST. A legacy root mounts synchronously, so layout
|
|
50023
|
+
// effects (e.g. a customer `loadingSpinner`) run inside this call; one that
|
|
50024
|
+
// calls `.remove()` must already hit the wrapper above, not the native method.
|
|
50025
|
+
root.render(/*#__PURE__*/React__default.default.createElement(OverlayContainer, null, component));
|
|
49109
50026
|
return targetElement;
|
|
49110
50027
|
}
|
|
49111
50028
|
function renderComponent(Component, targetElement, options) {
|