idmission-web-sdk 2.6.3-changeset-release-develop-0ac75d2 → 2.6.3-changeset-release-develop-eac763c
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 +343 -240
- 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 +343 -240
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +359 -256
- 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 +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
// Extracted from the barrel so modules inside this package can read the
|
|
27
27
|
// version without importing index.ts (which would be circular).
|
|
28
|
-
var webSdkUiVersion = '0.5.
|
|
28
|
+
var webSdkUiVersion = '0.5.1';
|
|
29
29
|
|
|
30
30
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
31
31
|
try {
|
|
@@ -453,17 +453,17 @@
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
function _arrayLikeToArray$
|
|
456
|
+
function _arrayLikeToArray$C(r, a) {
|
|
457
457
|
(null == a || a > r.length) && (a = r.length);
|
|
458
458
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
459
459
|
return n;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
function _unsupportedIterableToArray$
|
|
462
|
+
function _unsupportedIterableToArray$C(r, a) {
|
|
463
463
|
if (r) {
|
|
464
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
464
|
+
if ("string" == typeof r) return _arrayLikeToArray$C(r, a);
|
|
465
465
|
var t = {}.toString.call(r).slice(8, -1);
|
|
466
|
-
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$
|
|
466
|
+
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;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
|
|
@@ -472,11 +472,11 @@
|
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
function _slicedToArray$1(r, e) {
|
|
475
|
-
return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$
|
|
475
|
+
return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$C(r, e) || _nonIterableRest$1();
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
function _arrayWithoutHoles(r) {
|
|
479
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
479
|
+
if (Array.isArray(r)) return _arrayLikeToArray$C(r);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
function _iterableToArray(r) {
|
|
@@ -488,10 +488,10 @@
|
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
function _toConsumableArray(r) {
|
|
491
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$
|
|
491
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$C(r) || _nonIterableSpread();
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
var webSdkCoreVersion = '0.5.
|
|
494
|
+
var webSdkCoreVersion = '0.5.1';
|
|
495
495
|
|
|
496
496
|
var maxTime = 86400000;
|
|
497
497
|
var maxCount = 1000000;
|
|
@@ -1263,9 +1263,9 @@
|
|
|
1263
1263
|
({
|
|
1264
1264
|
workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
|
|
1265
1265
|
|
|
1266
|
-
function _createForOfIteratorHelperLoose$
|
|
1267
|
-
function _unsupportedIterableToArray$
|
|
1268
|
-
function _arrayLikeToArray$
|
|
1266
|
+
function _createForOfIteratorHelperLoose$A(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$B(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."); }
|
|
1267
|
+
function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(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$B(r, a) : void 0; } }
|
|
1268
|
+
function _arrayLikeToArray$B(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; }
|
|
1269
1269
|
var maximumBytes = 32 * 1024;
|
|
1270
1270
|
var maximumTime = 86400000;
|
|
1271
1271
|
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
unique(report.phaseTotals.map(function (total) {
|
|
1334
1334
|
return total.phase;
|
|
1335
1335
|
}));
|
|
1336
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1336
|
+
for (var _iterator = _createForOfIteratorHelperLoose$A(report.phaseTotals), _step; !(_step = _iterator()).done;) {
|
|
1337
1337
|
var _total4 = _step.value;
|
|
1338
1338
|
requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
|
|
1339
1339
|
durationValid(_total4.duration);
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
requireValid(report.recentTransitions.length <= 32);
|
|
1356
1356
|
var index = 0;
|
|
1357
1357
|
var atMs = 0;
|
|
1358
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1358
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$A(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
|
|
1359
1359
|
var transition = _step2.value;
|
|
1360
1360
|
requireValid(member(transitionKinds, transition.kind));
|
|
1361
1361
|
requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
|
|
@@ -1379,12 +1379,12 @@
|
|
|
1379
1379
|
unique(report.controllerGuidanceTotals.map(function (total) {
|
|
1380
1380
|
return JSON.stringify([total.phase, total.guidance]);
|
|
1381
1381
|
}));
|
|
1382
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1382
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$A(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
|
|
1383
1383
|
var _total2 = _step3.value;
|
|
1384
1384
|
durationValid(_total2.duration);
|
|
1385
1385
|
exposureValid(_total2.phase, _total2.exposure);
|
|
1386
1386
|
}
|
|
1387
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1387
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$A(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
|
|
1388
1388
|
var _total3 = _step4.value;
|
|
1389
1389
|
durationValid(_total3.duration);
|
|
1390
1390
|
guidanceValid(_total3.phase, _total3.guidance, false);
|
|
@@ -1418,7 +1418,7 @@
|
|
|
1418
1418
|
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));
|
|
1419
1419
|
var reports = [];
|
|
1420
1420
|
var dropped = [];
|
|
1421
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1421
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$A(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
|
|
1422
1422
|
var report = _step5.value;
|
|
1423
1423
|
try {
|
|
1424
1424
|
validateSnapshot(report);
|
|
@@ -1447,9 +1447,9 @@
|
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
-
function _createForOfIteratorHelperLoose$
|
|
1451
|
-
function _unsupportedIterableToArray$
|
|
1452
|
-
function _arrayLikeToArray$
|
|
1450
|
+
function _createForOfIteratorHelperLoose$z(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$A(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."); }
|
|
1451
|
+
function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(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$A(r, a) : void 0; } }
|
|
1452
|
+
function _arrayLikeToArray$A(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; }
|
|
1453
1453
|
/** Visible time without progress in a capture phase that arms a stream. */
|
|
1454
1454
|
var stallMs = 20000;
|
|
1455
1455
|
var capturePhases = new Set(["id-front", "id-back", "passport", "selfie", "signature"]);
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
var due = new Map();
|
|
1513
1513
|
var eligibilityRetries = new Map();
|
|
1514
1514
|
function dropped(report) {
|
|
1515
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1515
|
+
for (var _iterator = _createForOfIteratorHelperLoose$z(streams), _step; !(_step = _iterator()).done;) {
|
|
1516
1516
|
var stream = _step.value;
|
|
1517
1517
|
if (stream.state.report.streamId === report.streamId) stream.state = _extends$1({}, stream.state, {
|
|
1518
1518
|
report: _extends$1({}, stream.state.report, {
|
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
var retained = new Set(queued.map(function (report) {
|
|
1558
1558
|
return report.sequence;
|
|
1559
1559
|
}));
|
|
1560
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1560
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$z(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
|
|
1561
1561
|
var _sequence = _step2.value;
|
|
1562
1562
|
if (!retained.has(_sequence)) due["delete"](_sequence);
|
|
1563
1563
|
}
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
var keys = new Set(reports.map(function (report) {
|
|
1571
1571
|
return report.sequence;
|
|
1572
1572
|
}));
|
|
1573
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1573
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$z(pending), _step3; !(_step3 = _iterator3()).done;) {
|
|
1574
1574
|
var _step3$value = _slicedToArray$1(_step3.value, 2),
|
|
1575
1575
|
key = _step3$value[0],
|
|
1576
1576
|
report = _step3$value[1];
|
|
@@ -1594,14 +1594,14 @@
|
|
|
1594
1594
|
if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
|
|
1595
1595
|
return report.context === context;
|
|
1596
1596
|
})) emergency = null;
|
|
1597
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1597
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$z(pending), _step4; !(_step4 = _iterator4()).done;) {
|
|
1598
1598
|
var _step4$value = _slicedToArray$1(_step4.value, 2),
|
|
1599
1599
|
key = _step4$value[0],
|
|
1600
1600
|
report = _step4$value[1];
|
|
1601
1601
|
if (report.context === context) pending["delete"](key);
|
|
1602
1602
|
}
|
|
1603
1603
|
for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
|
|
1604
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1604
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$z(streams), _step5; !(_step5 = _iterator5()).done;) {
|
|
1605
1605
|
var stream = _step5.value;
|
|
1606
1606
|
if (stream.state.report.context === context) {
|
|
1607
1607
|
stream.disposed = true;
|
|
@@ -1630,7 +1630,7 @@
|
|
|
1630
1630
|
unsubscribe();
|
|
1631
1631
|
cancelTimer == null || cancelTimer();
|
|
1632
1632
|
cancelRequest == null || cancelRequest();
|
|
1633
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
1633
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$z(streams), _step6; !(_step6 = _iterator6()).done;) {
|
|
1634
1634
|
var stream = _step6.value;
|
|
1635
1635
|
stream.disposed = true;
|
|
1636
1636
|
}
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
sentAtUnixMs: Math.floor(deps.unixMs()),
|
|
1653
1653
|
reports: reports
|
|
1654
1654
|
});
|
|
1655
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
1655
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$z(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
|
|
1656
1656
|
var report = _step7.value;
|
|
1657
1657
|
dropped(report);
|
|
1658
1658
|
removeReports([report]);
|
|
@@ -1834,14 +1834,14 @@
|
|
|
1834
1834
|
retries = 0;
|
|
1835
1835
|
failureStreak = 0;
|
|
1836
1836
|
} else if (result.kind === "permanent") {
|
|
1837
|
-
for (_iterator11 = _createForOfIteratorHelperLoose$
|
|
1837
|
+
for (_iterator11 = _createForOfIteratorHelperLoose$z(sending.reports); !(_step11 = _iterator11()).done;) {
|
|
1838
1838
|
report = _step11.value;
|
|
1839
1839
|
disable(report.context);
|
|
1840
1840
|
}
|
|
1841
1841
|
} else {
|
|
1842
1842
|
backoff(result);
|
|
1843
1843
|
if (++retries > 3) {
|
|
1844
|
-
for (_iterator12 = _createForOfIteratorHelperLoose$
|
|
1844
|
+
for (_iterator12 = _createForOfIteratorHelperLoose$z(sending.reports); !(_step12 = _iterator12()).done;) {
|
|
1845
1845
|
_report = _step12.value;
|
|
1846
1846
|
dropped(_report);
|
|
1847
1847
|
}
|
|
@@ -1869,7 +1869,7 @@
|
|
|
1869
1869
|
backoff({});
|
|
1870
1870
|
if (authorizing) failedEligibility(authorizing);
|
|
1871
1871
|
if (frozen && ++retries > 3) {
|
|
1872
|
-
for (_iterator13 = _createForOfIteratorHelperLoose$
|
|
1872
|
+
for (_iterator13 = _createForOfIteratorHelperLoose$z(frozen.reports); !(_step13 = _iterator13()).done;) {
|
|
1873
1873
|
_report2 = _step13.value;
|
|
1874
1874
|
dropped(_report2);
|
|
1875
1875
|
}
|
|
@@ -1924,7 +1924,7 @@
|
|
|
1924
1924
|
if (outcome.kind === "committed") {
|
|
1925
1925
|
if (emergency === sending) emergency = null;
|
|
1926
1926
|
} else if (outcome.kind === "permanent") {
|
|
1927
|
-
for (var _iterator8 = _createForOfIteratorHelperLoose$
|
|
1927
|
+
for (var _iterator8 = _createForOfIteratorHelperLoose$z(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
|
|
1928
1928
|
var report = _step8.value;
|
|
1929
1929
|
disable(report.context);
|
|
1930
1930
|
}
|
|
@@ -1993,7 +1993,7 @@
|
|
|
1993
1993
|
}
|
|
1994
1994
|
function tick() {
|
|
1995
1995
|
if (disposed || visibility === "hidden") return;
|
|
1996
|
-
for (var _iterator9 = _createForOfIteratorHelperLoose$
|
|
1996
|
+
for (var _iterator9 = _createForOfIteratorHelperLoose$z(streams), _step9; !(_step9 = _iterator9()).done;) {
|
|
1997
1997
|
var stream = _step9.value;
|
|
1998
1998
|
var report = prepareDeadline(stream);
|
|
1999
1999
|
if (!(report != null && report.current)) continue;
|
|
@@ -2024,7 +2024,7 @@
|
|
|
2024
2024
|
if (disposed || visibility === "hidden") return;
|
|
2025
2025
|
var delay = Infinity;
|
|
2026
2026
|
if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
|
|
2027
|
-
for (var _iterator0 = _createForOfIteratorHelperLoose$
|
|
2027
|
+
for (var _iterator0 = _createForOfIteratorHelperLoose$z(streams), _step0; !(_step0 = _iterator0()).done;) {
|
|
2028
2028
|
var stream = _step0.value;
|
|
2029
2029
|
var report = prepareDeadline(stream);
|
|
2030
2030
|
if (!(report != null && report.current)) continue;
|
|
@@ -2121,7 +2121,7 @@
|
|
|
2121
2121
|
return guard$2(function () {
|
|
2122
2122
|
if (disposed || next === visibility) return;
|
|
2123
2123
|
visibility = next;
|
|
2124
|
-
for (var _iterator1 = _createForOfIteratorHelperLoose$
|
|
2124
|
+
for (var _iterator1 = _createForOfIteratorHelperLoose$z(streams), _step1; !(_step1 = _iterator1()).done;) {
|
|
2125
2125
|
var stream = _step1.value;
|
|
2126
2126
|
if (stream.state.report.attemptStatus !== "active") continue;
|
|
2127
2127
|
armIfStalled(stream);
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
if (taskDisposed) return;
|
|
2164
2164
|
taskDisposed = true;
|
|
2165
2165
|
if (workflowStream) close(workflowStream, "disposed");
|
|
2166
|
-
for (var _iterator10 = _createForOfIteratorHelperLoose$
|
|
2166
|
+
for (var _iterator10 = _createForOfIteratorHelperLoose$z(captures), _step10; !(_step10 = _iterator10()).done;) {
|
|
2167
2167
|
var capture = _step10.value;
|
|
2168
2168
|
capture.dispose();
|
|
2169
2169
|
}
|
|
@@ -3596,9 +3596,9 @@
|
|
|
3596
3596
|
});
|
|
3597
3597
|
}
|
|
3598
3598
|
|
|
3599
|
-
function _createForOfIteratorHelperLoose$
|
|
3600
|
-
function _unsupportedIterableToArray$
|
|
3601
|
-
function _arrayLikeToArray$
|
|
3599
|
+
function _createForOfIteratorHelperLoose$y(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$z(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."); }
|
|
3600
|
+
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(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$z(r, a) : void 0; } }
|
|
3601
|
+
function _arrayLikeToArray$z(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; }
|
|
3602
3602
|
/**
|
|
3603
3603
|
* Parser for AAMVA (American Association of Motor Vehicle Administrators)
|
|
3604
3604
|
* PDF417 barcode data found on US and Canadian driver's licenses.
|
|
@@ -3860,7 +3860,7 @@
|
|
|
3860
3860
|
DAD: false
|
|
3861
3861
|
};
|
|
3862
3862
|
var daaValue = null;
|
|
3863
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
3863
|
+
for (var _iterator = _createForOfIteratorHelperLoose$y(lines), _step; !(_step = _iterator()).done;) {
|
|
3864
3864
|
var line = _step.value;
|
|
3865
3865
|
var match = line.match(fieldRegex);
|
|
3866
3866
|
if (match) {
|
|
@@ -3901,7 +3901,7 @@
|
|
|
3901
3901
|
result.fields.push(field);
|
|
3902
3902
|
}
|
|
3903
3903
|
};
|
|
3904
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
3904
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$y(daaFields), _step2; !(_step2 = _iterator2()).done;) {
|
|
3905
3905
|
_loop();
|
|
3906
3906
|
}
|
|
3907
3907
|
}
|
|
@@ -6627,6 +6627,131 @@
|
|
|
6627
6627
|
})[0];
|
|
6628
6628
|
}
|
|
6629
6629
|
|
|
6630
|
+
// Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
|
|
6631
|
+
// try/catch) and guide_images/useGuideImages.ts (warn, for the
|
|
6632
|
+
// missing-dimensions warning). Trimmed transform vs sdk2's
|
|
6633
|
+
// lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
|
|
6634
|
+
// "no TS enum" convention, plan.md Global Constraints); numeric ordering
|
|
6635
|
+
// (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
|
|
6636
|
+
// LogLevel.X` comparisons behave identically.
|
|
6637
|
+
var noop$1 = function noop() {};
|
|
6638
|
+
var debug = function debug() {
|
|
6639
|
+
return (noop$1).apply(void 0, arguments);
|
|
6640
|
+
}; // eslint-disable-line no-console
|
|
6641
|
+
var log = function log() {
|
|
6642
|
+
return (noop$1).apply(void 0, arguments);
|
|
6643
|
+
}; // eslint-disable-line no-console
|
|
6644
|
+
var warn$1 = function warn() {
|
|
6645
|
+
return (console.warn ).apply(void 0, arguments);
|
|
6646
|
+
}; // eslint-disable-line no-console
|
|
6647
|
+
var error = function error() {
|
|
6648
|
+
return (console.error ).apply(void 0, arguments);
|
|
6649
|
+
}; // eslint-disable-line no-console
|
|
6650
|
+
|
|
6651
|
+
function _createForOfIteratorHelperLoose$x(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$y(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."); }
|
|
6652
|
+
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(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$y(r, a) : void 0; } }
|
|
6653
|
+
function _arrayLikeToArray$y(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; }
|
|
6654
|
+
/**
|
|
6655
|
+
* True unless the host bundle was built for production.
|
|
6656
|
+
*
|
|
6657
|
+
* Follows the `"development"` convention that React and mainstream
|
|
6658
|
+
* bundlers use, and that `websdk-compat`'s rollup build defines. Read inside a
|
|
6659
|
+
* `try` because unbundled ESM has no `process`; that case counts as
|
|
6660
|
+
* production, so a missing define never adds console output.
|
|
6661
|
+
*/
|
|
6662
|
+
function isDevelopment() {
|
|
6663
|
+
try {
|
|
6664
|
+
return "development" !== 'production';
|
|
6665
|
+
} catch (_unused) {
|
|
6666
|
+
return false;
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
/**
|
|
6670
|
+
* Plain objects and arrays are compared field by field, so an inline literal
|
|
6671
|
+
* rebuilt every render with the same values is not a change. Anything else
|
|
6672
|
+
* (class instances, DOM nodes, blobs) is compared by identity.
|
|
6673
|
+
*/
|
|
6674
|
+
function isPlainContainer(value) {
|
|
6675
|
+
if (Array.isArray(value)) return true;
|
|
6676
|
+
if (typeof value !== 'object' || value === null) return false;
|
|
6677
|
+
var prototype = Object.getPrototypeOf(value);
|
|
6678
|
+
return prototype === Object.prototype || prototype === null;
|
|
6679
|
+
}
|
|
6680
|
+
/**
|
|
6681
|
+
* Callbacks the flows wrap with `useLatestCallbacks`: a bag's own top-level
|
|
6682
|
+
* functions and those of its `liveness` sub-bag. Replacing or removing one of
|
|
6683
|
+
* these is live. Any other function (such as `io.acquireCamera`) is a
|
|
6684
|
+
* controller dependency fixed at mount, so it compares by identity.
|
|
6685
|
+
*/
|
|
6686
|
+
var LIVE_CALLBACK_PATH = /^[^.[\]]+(\.liveness)?\.[^.[\]]+$/;
|
|
6687
|
+
/**
|
|
6688
|
+
* Every leaf whose value differs between `before` and `after`.
|
|
6689
|
+
*
|
|
6690
|
+
* A live callback's new implementation, or its removal, is not reported. A
|
|
6691
|
+
* callback ADDED after mount is, because only callbacks present at mount are
|
|
6692
|
+
* wrapped. An absent field and an explicit `undefined` are the same value.
|
|
6693
|
+
*/
|
|
6694
|
+
function mountOnlyChanges(before, after, path) {
|
|
6695
|
+
if (Object.is(before, after)) return [];
|
|
6696
|
+
if (typeof before === 'function' && (typeof after === 'function' || after === undefined) && LIVE_CALLBACK_PATH.test(path)) {
|
|
6697
|
+
return [];
|
|
6698
|
+
}
|
|
6699
|
+
if (!isPlainContainer(before) || !isPlainContainer(after) || Array.isArray(before) !== Array.isArray(after)) {
|
|
6700
|
+
return [{
|
|
6701
|
+
path: path,
|
|
6702
|
+
before: before,
|
|
6703
|
+
after: after
|
|
6704
|
+
}];
|
|
6705
|
+
}
|
|
6706
|
+
var keys = new Set([].concat(_toConsumableArray(Object.keys(before)), _toConsumableArray(Object.keys(after))));
|
|
6707
|
+
return _toConsumableArray(keys).flatMap(function (key) {
|
|
6708
|
+
return mountOnlyChanges(before[key], after[key], Array.isArray(before) ? path + "[" + key + "]" : path + "." + key);
|
|
6709
|
+
});
|
|
6710
|
+
}
|
|
6711
|
+
/**
|
|
6712
|
+
* Whether a value is small and safe enough to print. Long strings are left
|
|
6713
|
+
* out: capture bags can carry image data (`precapturedDocuments`), which is
|
|
6714
|
+
* both personal data and too large to be useful in a warning.
|
|
6715
|
+
*/
|
|
6716
|
+
var isPrintable = function isPrintable(value) {
|
|
6717
|
+
return value === null || value === undefined || typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string' && value.length <= 64;
|
|
6718
|
+
};
|
|
6719
|
+
var describe = function describe(value) {
|
|
6720
|
+
return typeof value === 'string' ? JSON.stringify(value) : String(value);
|
|
6721
|
+
};
|
|
6722
|
+
/**
|
|
6723
|
+
* In development builds, warns once per input path when a value in `inputs`
|
|
6724
|
+
* differs from its value at mount. Does nothing in production.
|
|
6725
|
+
*
|
|
6726
|
+
* `owner` names the component or hook in the message, and `remedy` finishes
|
|
6727
|
+
* the sentence "To change it, …". Pass only inputs that really are mount-only:
|
|
6728
|
+
* a live input passed here would warn about a change that did take effect.
|
|
6729
|
+
*/
|
|
6730
|
+
function useMountOnlyWarnings(owner, remedy, inputs) {
|
|
6731
|
+
var mounted = React.useRef(inputs);
|
|
6732
|
+
var warned = React.useRef(new Set());
|
|
6733
|
+
React.useEffect(function () {
|
|
6734
|
+
if (!isDevelopment()) return;
|
|
6735
|
+
for (var _i = 0, _Object$entries = Object.entries(inputs); _i < _Object$entries.length; _i++) {
|
|
6736
|
+
var _Object$entries$_i = _slicedToArray$1(_Object$entries[_i], 2),
|
|
6737
|
+
name = _Object$entries$_i[0],
|
|
6738
|
+
value = _Object$entries$_i[1];
|
|
6739
|
+
for (var _iterator = _createForOfIteratorHelperLoose$x(mountOnlyChanges(mounted.current[name], value, name)), _step; !(_step = _iterator()).done;) {
|
|
6740
|
+
var _step$value = _step.value,
|
|
6741
|
+
path = _step$value.path,
|
|
6742
|
+
before = _step$value.before,
|
|
6743
|
+
after = _step$value.after;
|
|
6744
|
+
if (warned.current.has(path)) continue;
|
|
6745
|
+
warned.current.add(path);
|
|
6746
|
+
var values = isPrintable(before) && isPrintable(after) ? " (" + describe(before) + " \u2192 " + describe(after) + ")" : '';
|
|
6747
|
+
warn$1("[" + owner + "] `" + path + "` changed after mount" + values + " and was ignored: " + (owner + " reads it once, at mount. To change it, " + remedy + "."));
|
|
6748
|
+
}
|
|
6749
|
+
}
|
|
6750
|
+
});
|
|
6751
|
+
}
|
|
6752
|
+
/** The `remedy` every flow gives for a changed capture-bag field. */
|
|
6753
|
+
var FLOW_MOUNT_ONLY_REMEDY = 'remount the flow with a React `key`, or pass your own controller';
|
|
6754
|
+
|
|
6630
6755
|
var useIsomorphicLayoutEffect$1 = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;
|
|
6631
6756
|
/**
|
|
6632
6757
|
* Uploads documents to the IDmission document service, one independent call
|
|
@@ -6959,7 +7084,7 @@
|
|
|
6959
7084
|
}
|
|
6960
7085
|
|
|
6961
7086
|
function _toArray(r) {
|
|
6962
|
-
return _arrayWithHoles$1(r) || _iterableToArray(r) || _unsupportedIterableToArray$
|
|
7087
|
+
return _arrayWithHoles$1(r) || _iterableToArray(r) || _unsupportedIterableToArray$C(r) || _nonIterableRest$1();
|
|
6963
7088
|
}
|
|
6964
7089
|
|
|
6965
7090
|
function _createForOfIteratorHelperLoose$w(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$w(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."); }
|
|
@@ -9022,7 +9147,7 @@
|
|
|
9022
9147
|
}
|
|
9023
9148
|
return options;
|
|
9024
9149
|
};
|
|
9025
|
-
var noop
|
|
9150
|
+
var noop = function noop() {};
|
|
9026
9151
|
var loggerOwner;
|
|
9027
9152
|
var bindMemberFunctions = function bindMemberFunctions(inst) {
|
|
9028
9153
|
var mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
|
|
@@ -9167,7 +9292,7 @@
|
|
|
9167
9292
|
});
|
|
9168
9293
|
}
|
|
9169
9294
|
this.format = this.options.interpolation.format;
|
|
9170
|
-
if (!callback) callback = noop
|
|
9295
|
+
if (!callback) callback = noop;
|
|
9171
9296
|
if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
9172
9297
|
var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
9173
9298
|
if (codes.length > 0 && codes[0] !== 'dev') this.options.lng = codes[0];
|
|
@@ -9214,7 +9339,7 @@
|
|
|
9214
9339
|
_proto1.loadResources = function loadResources(language, callback) {
|
|
9215
9340
|
var _this22 = this;
|
|
9216
9341
|
if (callback === void 0) {
|
|
9217
|
-
callback = noop
|
|
9342
|
+
callback = noop;
|
|
9218
9343
|
}
|
|
9219
9344
|
var usedCallback = callback;
|
|
9220
9345
|
var usedLng = isString$1(language) ? language : this.language;
|
|
@@ -9270,7 +9395,7 @@
|
|
|
9270
9395
|
});
|
|
9271
9396
|
}
|
|
9272
9397
|
if (!ns) ns = this.options.ns;
|
|
9273
|
-
if (!callback) callback = noop
|
|
9398
|
+
if (!callback) callback = noop;
|
|
9274
9399
|
this.services.backendConnector.reload(lngs, ns, function (err) {
|
|
9275
9400
|
deferred.resolve();
|
|
9276
9401
|
callback(err);
|
|
@@ -9577,7 +9702,7 @@
|
|
|
9577
9702
|
options = {};
|
|
9578
9703
|
}
|
|
9579
9704
|
if (callback === void 0) {
|
|
9580
|
-
callback = noop
|
|
9705
|
+
callback = noop;
|
|
9581
9706
|
}
|
|
9582
9707
|
var forkResourceStore = options.forkResourceStore;
|
|
9583
9708
|
if (forkResourceStore) {
|
|
@@ -9661,7 +9786,7 @@
|
|
|
9661
9786
|
instance.loadNamespaces;
|
|
9662
9787
|
instance.loadLanguages;
|
|
9663
9788
|
|
|
9664
|
-
var warn
|
|
9789
|
+
var warn = function warn(i18n, code, msg, rest) {
|
|
9665
9790
|
var _i18n$services, _i18n$services2, _console;
|
|
9666
9791
|
var args = [msg, _extends({
|
|
9667
9792
|
code: code
|
|
@@ -9682,7 +9807,7 @@
|
|
|
9682
9807
|
var warnOnce = function warnOnce(i18n, code, msg, rest) {
|
|
9683
9808
|
if (isString(msg) && alreadyWarned[msg]) return;
|
|
9684
9809
|
if (isString(msg)) alreadyWarned[msg] = new Date();
|
|
9685
|
-
warn
|
|
9810
|
+
warn(i18n, code, msg, rest);
|
|
9686
9811
|
};
|
|
9687
9812
|
var loadedClb = function loadedClb(i18n, cb) {
|
|
9688
9813
|
return function () {
|
|
@@ -12515,7 +12640,7 @@
|
|
|
12515
12640
|
});
|
|
12516
12641
|
}
|
|
12517
12642
|
|
|
12518
|
-
var _templateObject$$, _templateObject2$R, _templateObject3$
|
|
12643
|
+
var _templateObject$$, _templateObject2$R, _templateObject3$F, _templateObject4$A, _templateObject5$t, _templateObject6$l;
|
|
12519
12644
|
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."); }
|
|
12520
12645
|
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; } }
|
|
12521
12646
|
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; }
|
|
@@ -12542,7 +12667,7 @@
|
|
|
12542
12667
|
var $flipX = _ref3.$flipX;
|
|
12543
12668
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
12544
12669
|
});
|
|
12545
|
-
var ObjectDetectionDebugBox = styled.div(_templateObject3$
|
|
12670
|
+
var ObjectDetectionDebugBox = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_ref4) {
|
|
12546
12671
|
var $color = _ref4.$color;
|
|
12547
12672
|
return $color != null ? $color : 'green';
|
|
12548
12673
|
}, function (_ref5) {
|
|
@@ -12553,7 +12678,7 @@
|
|
|
12553
12678
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
12554
12679
|
});
|
|
12555
12680
|
var darkColors = new Set(['blue', 'darkblue', 'navy', 'darkgreen', 'purple', 'maroon', 'black', 'darkred', 'indigo']);
|
|
12556
|
-
var ObjectDetectionDebugLabel = styled.span(_templateObject4$
|
|
12681
|
+
var ObjectDetectionDebugLabel = styled.span(_templateObject4$A || (_templateObject4$A = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -1px;\n left: -1px;\n background: ", ";\n color: ", ";\n font: bold 9px monospace;\n padding: 1px 3px;\n white-space: nowrap;\n transform: translateY(-100%);\n"])), function (_ref7) {
|
|
12557
12682
|
var $color = _ref7.$color;
|
|
12558
12683
|
return $color != null ? $color : 'green';
|
|
12559
12684
|
}, function (_ref8) {
|
|
@@ -13079,13 +13204,13 @@
|
|
|
13079
13204
|
});
|
|
13080
13205
|
};
|
|
13081
13206
|
|
|
13082
|
-
var _templateObject$W, _templateObject2$O, _templateObject3$
|
|
13207
|
+
var _templateObject$W, _templateObject2$O, _templateObject3$E, _templateObject4$z;
|
|
13083
13208
|
var wavesAnimation = keyframes(_templateObject$W || (_templateObject$W = _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"])));
|
|
13084
13209
|
var progressBarAnimation = keyframes(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
13085
|
-
keyframes(_templateObject3$
|
|
13086
|
-
keyframes(_templateObject4$
|
|
13210
|
+
keyframes(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
13211
|
+
keyframes(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
13087
13212
|
|
|
13088
|
-
var _templateObject$V, _templateObject2$N, _templateObject3$
|
|
13213
|
+
var _templateObject$V, _templateObject2$N, _templateObject3$D, _templateObject4$y, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
|
|
13089
13214
|
var OverlayContainer = styled.div(_templateObject$V || (_templateObject$V = _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) {
|
|
13090
13215
|
return props.theme.background ? "" + props.theme.background : "white";
|
|
13091
13216
|
}, function (props) {
|
|
@@ -13097,8 +13222,8 @@
|
|
|
13097
13222
|
}, function (props) {
|
|
13098
13223
|
return props.theme.padding ? "box-sizing: border-box; padding: " + props.theme.padding + ";" : "";
|
|
13099
13224
|
});
|
|
13100
|
-
var OverlayImageContainer = styled.div(_templateObject3$
|
|
13101
|
-
var OverlayImageRow = styled.div(_templateObject4$
|
|
13225
|
+
var OverlayImageContainer = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
|
|
13226
|
+
var OverlayImageRow = styled.div(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
|
|
13102
13227
|
/**
|
|
13103
13228
|
* The review screens' background. Exported so a surface that must MATCH it —
|
|
13104
13229
|
* the browser-chrome tint in `BrowserEdgeTint` — reads the same value rather
|
|
@@ -13238,30 +13363,9 @@
|
|
|
13238
13363
|
return false;
|
|
13239
13364
|
}
|
|
13240
13365
|
|
|
13241
|
-
// Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
|
|
13242
|
-
// try/catch) and guide_images/useGuideImages.ts (warn, for the
|
|
13243
|
-
// missing-dimensions warning). Trimmed transform vs sdk2's
|
|
13244
|
-
// lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
|
|
13245
|
-
// "no TS enum" convention, plan.md Global Constraints); numeric ordering
|
|
13246
|
-
// (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
|
|
13247
|
-
// LogLevel.X` comparisons behave identically.
|
|
13248
|
-
var noop = function noop() {};
|
|
13249
|
-
var debug = function debug() {
|
|
13250
|
-
return (noop).apply(void 0, arguments);
|
|
13251
|
-
}; // eslint-disable-line no-console
|
|
13252
|
-
var log = function log() {
|
|
13253
|
-
return (noop).apply(void 0, arguments);
|
|
13254
|
-
}; // eslint-disable-line no-console
|
|
13255
|
-
var warn = function warn() {
|
|
13256
|
-
return (console.warn ).apply(void 0, arguments);
|
|
13257
|
-
}; // eslint-disable-line no-console
|
|
13258
|
-
var error = function error() {
|
|
13259
|
-
return (console.error ).apply(void 0, arguments);
|
|
13260
|
-
}; // eslint-disable-line no-console
|
|
13261
|
-
|
|
13262
13366
|
var _excluded$h = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
|
|
13263
13367
|
_excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
|
|
13264
|
-
var _templateObject$U, _templateObject2$M, _templateObject3$
|
|
13368
|
+
var _templateObject$U, _templateObject2$M, _templateObject3$C, _templateObject4$x, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
13265
13369
|
var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
|
|
13266
13370
|
return props.$isVisible ? '' : 'opacity: 0;';
|
|
13267
13371
|
}, function (props) {
|
|
@@ -13429,8 +13533,8 @@
|
|
|
13429
13533
|
})]
|
|
13430
13534
|
}));
|
|
13431
13535
|
}
|
|
13432
|
-
var IdCardBorderContainer = styled.div(_templateObject3$
|
|
13433
|
-
var IdCardBorderInner = styled.div(_templateObject4$
|
|
13536
|
+
var IdCardBorderContainer = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n display: flex;\n position: relative;\n margin: auto;\n\n & .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(3) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(4) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
|
|
13537
|
+
var IdCardBorderInner = styled.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n max-width: 100%;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"])));
|
|
13434
13538
|
var SvgOverlay = styled.svg(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"])));
|
|
13435
13539
|
var IdCardBorderRect = styled.rect(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n &.idmSdkProgressBorder {\n transition: stroke-dashoffset 0.3s ease-out;\n }\n"])));
|
|
13436
13540
|
// Ported dep (sdk2's video_id/IdVideoCaptureFlipIdPrompt.tsx:136-148 —
|
|
@@ -13523,7 +13627,7 @@
|
|
|
13523
13627
|
Object.values(userSuppliedImages).forEach(function (images) {
|
|
13524
13628
|
Object.values(images).forEach(function (image) {
|
|
13525
13629
|
if (image.url && (!image.width || !image.height)) {
|
|
13526
|
-
warn("The image " + image.url + " is missing width and/or height. This will cause the image scaling issues in Safari. Please provide the width and height of the image.");
|
|
13630
|
+
warn$1("The image " + image.url + " is missing width and/or height. This will cause the image scaling issues in Safari. Please provide the width and height of the image.");
|
|
13527
13631
|
}
|
|
13528
13632
|
});
|
|
13529
13633
|
});
|
|
@@ -13659,7 +13763,7 @@
|
|
|
13659
13763
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
13660
13764
|
});
|
|
13661
13765
|
|
|
13662
|
-
var _templateObject$S, _templateObject2$L, _templateObject3$
|
|
13766
|
+
var _templateObject$S, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
|
|
13663
13767
|
var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
|
|
13664
13768
|
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;
|
|
13665
13769
|
var _ref$classNames = _ref.classNames,
|
|
@@ -13817,8 +13921,8 @@
|
|
|
13817
13921
|
};
|
|
13818
13922
|
var StyledPageContainer = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
|
|
13819
13923
|
var GuidesContainer = styled.div(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
|
|
13820
|
-
var GuideCenterRow = styled.div(_templateObject3$
|
|
13821
|
-
var GuideRegion = styled.div(_templateObject4$
|
|
13924
|
+
var GuideCenterRow = styled.div(_templateObject3$B || (_templateObject3$B = _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"])));
|
|
13925
|
+
var GuideRegion = styled.div(_templateObject4$w || (_templateObject4$w = _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) {
|
|
13822
13926
|
var _ref2, _props$$maskColor, _props$theme;
|
|
13823
13927
|
return (_ref2 = (_props$$maskColor = props.$maskColor) != null ? _props$$maskColor : (_props$theme = props.theme) == null || (_props$theme = _props$theme.idCapture) == null || (_props$theme = _props$theme.guideOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _ref2 : OVERLAY_GUIDE_MASK_DEFAULT;
|
|
13824
13928
|
}, function (props) {
|
|
@@ -13848,7 +13952,7 @@
|
|
|
13848
13952
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
13849
13953
|
var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
|
|
13850
13954
|
|
|
13851
|
-
var _templateObject$R, _templateObject2$K, _templateObject3$
|
|
13955
|
+
var _templateObject$R, _templateObject2$K, _templateObject3$A, _templateObject4$v;
|
|
13852
13956
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
13853
13957
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
|
|
13854
13958
|
var aspectRatio = _ref.aspectRatio,
|
|
@@ -14089,7 +14193,7 @@
|
|
|
14089
14193
|
return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
|
|
14090
14194
|
});
|
|
14091
14195
|
var Canvas$2 = styled.canvas(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
14092
|
-
var CaptureAreaProgress = styled.div(_templateObject3$
|
|
14196
|
+
var CaptureAreaProgress = styled.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
|
|
14093
14197
|
return props.$x;
|
|
14094
14198
|
}, function (props) {
|
|
14095
14199
|
return props.$y;
|
|
@@ -14098,7 +14202,7 @@
|
|
|
14098
14202
|
}, function (props) {
|
|
14099
14203
|
return props.$height;
|
|
14100
14204
|
});
|
|
14101
|
-
var GuideBoxLayer = styled(CaptureAreaProgress)(_templateObject4$
|
|
14205
|
+
var GuideBoxLayer = styled(CaptureAreaProgress)(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n z-index: 1000;\n"])));
|
|
14102
14206
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
14103
14207
|
var FIT_GUIDE_MASK_DEFAULT = '#708090';
|
|
14104
14208
|
|
|
@@ -14167,7 +14271,7 @@
|
|
|
14167
14271
|
});
|
|
14168
14272
|
};
|
|
14169
14273
|
|
|
14170
|
-
var _templateObject$P, _templateObject2$J, _templateObject3$
|
|
14274
|
+
var _templateObject$P, _templateObject2$J, _templateObject3$z, _templateObject4$u;
|
|
14171
14275
|
function IdCaptureLoadingGraphic(props) {
|
|
14172
14276
|
var isMobile = window.innerHeight > window.innerWidth;
|
|
14173
14277
|
return isMobile ? jsx(IdCaptureLoadingGraphicMobile, _extends$1({}, props)) : jsx(IdCaptureLoadingGraphicDesktop, _extends$1({}, props));
|
|
@@ -14672,10 +14776,10 @@
|
|
|
14672
14776
|
}, function (props) {
|
|
14673
14777
|
return props.$borderColor;
|
|
14674
14778
|
});
|
|
14675
|
-
var LoadingGraphicCardGroup = styled.g(_templateObject3$
|
|
14779
|
+
var LoadingGraphicCardGroup = styled.g(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
14676
14780
|
return props.$offScreen ? '-500px' : '0';
|
|
14677
14781
|
});
|
|
14678
|
-
var LoadingGraphicPhoneGroup = styled.g(_templateObject4$
|
|
14782
|
+
var LoadingGraphicPhoneGroup = styled.g(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
14679
14783
|
return props.$offScreen ? '40px' : '0';
|
|
14680
14784
|
});
|
|
14681
14785
|
|
|
@@ -14933,7 +15037,7 @@
|
|
|
14933
15037
|
// parent's gap/padding, which would offset the fallback it sits next to.
|
|
14934
15038
|
var SpinnerSlot = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
|
|
14935
15039
|
|
|
14936
|
-
var _templateObject$N, _templateObject2$I, _templateObject3$
|
|
15040
|
+
var _templateObject$N, _templateObject2$I, _templateObject3$y, _templateObject4$t, _templateObject5$p;
|
|
14937
15041
|
var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
|
|
14938
15042
|
// Module-level so the default `now` prop has a stable identity across
|
|
14939
15043
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -15136,14 +15240,14 @@
|
|
|
15136
15240
|
var _props$theme4, _props$theme5;
|
|
15137
15241
|
return (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.idCapture) != null && (_props$theme4 = _props$theme4.loadingOverlay) != null && _props$theme4.progressBarFontSize ? "font-size: " + ((_props$theme5 = props.theme) == null || (_props$theme5 = _props$theme5.idCapture) == null || (_props$theme5 = _props$theme5.loadingOverlay) == null ? void 0 : _props$theme5.progressBarFontSize) + ";" : '';
|
|
15138
15242
|
});
|
|
15139
|
-
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(_templateObject3$
|
|
15243
|
+
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
15140
15244
|
var _props$theme$idCaptur4, _props$theme6;
|
|
15141
15245
|
return (_props$theme$idCaptur4 = (_props$theme6 = props.theme) == null || (_props$theme6 = _props$theme6.idCapture) == null || (_props$theme6 = _props$theme6.loadingOverlay) == null ? void 0 : _props$theme6.progressBarBackgroundColor) != null ? _props$theme$idCaptur4 : PROGRESS_TRACK_DEFAULT$1;
|
|
15142
15246
|
}, function (props) {
|
|
15143
15247
|
var _props$theme$idCaptur5, _props$theme7;
|
|
15144
15248
|
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.progressBarBackgroundOpacity) != null ? _props$theme$idCaptur5 : PROGRESS_TRACK_OPACITY_DEFAULT$1;
|
|
15145
15249
|
});
|
|
15146
|
-
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(_templateObject4$
|
|
15250
|
+
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
|
|
15147
15251
|
var _props$theme$idCaptur6, _props$theme8;
|
|
15148
15252
|
return (_props$theme$idCaptur6 = (_props$theme8 = props.theme) == null || (_props$theme8 = _props$theme8.idCapture) == null || (_props$theme8 = _props$theme8.loadingOverlay) == null ? void 0 : _props$theme8.progressBarIndicatorColor) != null ? _props$theme$idCaptur6 : PROGRESS_INDICATOR_DEFAULT$1;
|
|
15149
15253
|
});
|
|
@@ -23788,7 +23892,7 @@
|
|
|
23788
23892
|
return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
|
|
23789
23893
|
}
|
|
23790
23894
|
|
|
23791
|
-
var _templateObject$M, _templateObject2$H, _templateObject3$
|
|
23895
|
+
var _templateObject$M, _templateObject2$H, _templateObject3$x, _templateObject4$s, _templateObject5$o;
|
|
23792
23896
|
var PDF417_ASPECT_RATIO = 3 / 1;
|
|
23793
23897
|
function BarcodeGuideOverlay(_ref) {
|
|
23794
23898
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
@@ -23920,15 +24024,15 @@
|
|
|
23920
24024
|
}
|
|
23921
24025
|
var Wrapper = styled.div(_templateObject$M || (_templateObject$M = _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"])));
|
|
23922
24026
|
var Canvas$1 = styled.canvas(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
23923
|
-
var TextOverlay = styled.div(_templateObject3$
|
|
23924
|
-
var HeaderText = styled.div(_templateObject4$
|
|
24027
|
+
var TextOverlay = styled.div(_templateObject3$x || (_templateObject3$x = _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"])));
|
|
24028
|
+
var HeaderText = styled.div(_templateObject4$s || (_templateObject4$s = _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"])));
|
|
23925
24029
|
var InstructionText = 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"])));
|
|
23926
24030
|
|
|
23927
|
-
var _templateObject$L, _templateObject2$G, _templateObject3$
|
|
24031
|
+
var _templateObject$L, _templateObject2$G, _templateObject3$w, _templateObject4$r, _templateObject5$n, _templateObject6$h;
|
|
23928
24032
|
var scaleIn = keyframes(_templateObject$L || (_templateObject$L = _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"])));
|
|
23929
24033
|
var drawCheck = keyframes(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
|
|
23930
|
-
styled.div(_templateObject3$
|
|
23931
|
-
styled.div(_templateObject4$
|
|
24034
|
+
styled.div(_templateObject3$w || (_templateObject3$w = _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"])));
|
|
24035
|
+
styled.div(_templateObject4$r || (_templateObject4$r = _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) {
|
|
23932
24036
|
return props.$color;
|
|
23933
24037
|
}, scaleIn);
|
|
23934
24038
|
styled.svg(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 48px;\n height: 48px;\n"])));
|
|
@@ -24026,7 +24130,7 @@
|
|
|
24026
24130
|
});
|
|
24027
24131
|
}
|
|
24028
24132
|
|
|
24029
|
-
var _templateObject$K, _templateObject2$F, _templateObject3$
|
|
24133
|
+
var _templateObject$K, _templateObject2$F, _templateObject3$v, _templateObject4$q, _templateObject5$m;
|
|
24030
24134
|
function OverrideWrongDocumentTypeDialog(_ref) {
|
|
24031
24135
|
var visible = _ref.visible,
|
|
24032
24136
|
onOverride = _ref.onOverride,
|
|
@@ -24066,8 +24170,8 @@
|
|
|
24066
24170
|
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';
|
|
24067
24171
|
});
|
|
24068
24172
|
var InnerContainer = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
24069
|
-
var Message = styled.span(_templateObject3$
|
|
24070
|
-
var ButtonContainer = styled.div(_templateObject4$
|
|
24173
|
+
var Message = styled.span(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
24174
|
+
var ButtonContainer = styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
|
|
24071
24175
|
var Button = styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
24072
24176
|
|
|
24073
24177
|
var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref) {
|
|
@@ -24236,7 +24340,7 @@
|
|
|
24236
24340
|
return 'warming';
|
|
24237
24341
|
};
|
|
24238
24342
|
|
|
24239
|
-
var _templateObject$I, _templateObject2$D, _templateObject3$
|
|
24343
|
+
var _templateObject$I, _templateObject2$D, _templateObject3$u, _templateObject4$p, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9;
|
|
24240
24344
|
/**
|
|
24241
24345
|
* The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
|
|
24242
24346
|
* badge, title/subtitle, step chips, reassurance chip, "Enable camera &
|
|
@@ -24316,12 +24420,12 @@
|
|
|
24316
24420
|
};
|
|
24317
24421
|
var _float = keyframes(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
|
|
24318
24422
|
var IntroLayout = styled.div(_templateObject2$D || (_templateObject2$D = _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"])));
|
|
24319
|
-
var Badge = styled.div(_templateObject3$
|
|
24423
|
+
var Badge = styled.div(_templateObject3$u || (_templateObject3$u = _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) {
|
|
24320
24424
|
return props.$color;
|
|
24321
24425
|
}, function (props) {
|
|
24322
24426
|
return props.$color;
|
|
24323
24427
|
}, _float);
|
|
24324
|
-
var Title$4 = styled.div(_templateObject4$
|
|
24428
|
+
var Title$4 = styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n font-size: 22px;\n font-weight: 700;\n"])));
|
|
24325
24429
|
var Subtitle$3 = styled.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n opacity: 0.65;\n line-height: 1.5;\n"])));
|
|
24326
24430
|
var Steps = styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 26px;\n margin: 16px 0 6px;\n"])));
|
|
24327
24431
|
var Step = styled.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n font-size: 11px;\n opacity: 0.75;\n width: 90px;\n"])));
|
|
@@ -24362,7 +24466,7 @@
|
|
|
24362
24466
|
return requesting ? 'requesting' : 'intro';
|
|
24363
24467
|
};
|
|
24364
24468
|
|
|
24365
|
-
var _templateObject$H, _templateObject2$C, _templateObject3$
|
|
24469
|
+
var _templateObject$H, _templateObject2$C, _templateObject3$t, _templateObject4$o, _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;
|
|
24366
24470
|
/** Minimum time a stage handoff stays on screen so its message is
|
|
24367
24471
|
* legible even when everything preloaded and readiness is instant. */
|
|
24368
24472
|
var STAGE_TRANSITION_HOLD_MS = 1600;
|
|
@@ -24423,8 +24527,8 @@
|
|
|
24423
24527
|
};
|
|
24424
24528
|
var badgePop = keyframes(_templateObject$H || (_templateObject$H = _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"])));
|
|
24425
24529
|
var cardFlip = keyframes(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
|
|
24426
|
-
var microcopyBeat = keyframes(_templateObject3$
|
|
24427
|
-
var rise = keyframes(_templateObject4$
|
|
24530
|
+
var microcopyBeat = keyframes(_templateObject3$t || (_templateObject3$t = _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"])));
|
|
24531
|
+
var rise = keyframes(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
|
|
24428
24532
|
var riseSubtle = keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
|
|
24429
24533
|
var TransitionLayout = styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n"])));
|
|
24430
24534
|
/* The drop shadow lives on the static parent: filter on the flipping card
|
|
@@ -24453,7 +24557,7 @@
|
|
|
24453
24557
|
return props.$visible ? 1 : 0;
|
|
24454
24558
|
});
|
|
24455
24559
|
|
|
24456
|
-
var _templateObject$G, _templateObject2$B, _templateObject3$
|
|
24560
|
+
var _templateObject$G, _templateObject2$B, _templateObject3$s, _templateObject4$n, _templateObject5$j, _templateObject6$e, _templateObject7$c;
|
|
24457
24561
|
// Module-level so the default `now` prop has a stable identity across
|
|
24458
24562
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
24459
24563
|
var defaultNow$2 = function defaultNow() {
|
|
@@ -24736,9 +24840,9 @@
|
|
|
24736
24840
|
var _props$theme$idCaptur2, _props$theme2;
|
|
24737
24841
|
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 : '#12211d';
|
|
24738
24842
|
}, function (props) {
|
|
24739
|
-
return props.$softEntry ? css(_templateObject3$
|
|
24843
|
+
return props.$softEntry ? css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn$1) : '';
|
|
24740
24844
|
});
|
|
24741
|
-
var RingLayout$1 = styled.div(_templateObject4$
|
|
24845
|
+
var RingLayout$1 = styled.div(_templateObject4$n || (_templateObject4$n = _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: 40px;\n text-align: center;\n"])));
|
|
24742
24846
|
var StatusLine$1 = styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
|
|
24743
24847
|
var SubText$1 = styled.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
|
|
24744
24848
|
var ContinueButton$2 = styled(LoaderButton)(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n margin-top: 10px;\n white-space: nowrap;\n ", "\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
@@ -24836,7 +24940,7 @@
|
|
|
24836
24940
|
var Card = styled.div(_templateObject$F || (_templateObject$F = _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"])));
|
|
24837
24941
|
var FlexCard = styled(Card)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
24838
24942
|
|
|
24839
|
-
var _templateObject$E, _templateObject2$z, _templateObject3$
|
|
24943
|
+
var _templateObject$E, _templateObject2$z, _templateObject3$r, _templateObject4$m, _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;
|
|
24840
24944
|
function ReviewDocumentDiagnostics(_ref) {
|
|
24841
24945
|
var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
|
|
24842
24946
|
var document = _ref.document,
|
|
@@ -25297,8 +25401,8 @@
|
|
|
25297
25401
|
}
|
|
25298
25402
|
var DebugInfoContainer = styled.div(_templateObject$E || (_templateObject$E = _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"])));
|
|
25299
25403
|
var DebugSection = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
|
|
25300
|
-
var DebugLabel = styled.span(_templateObject3$
|
|
25301
|
-
var DebugValue = styled.span(_templateObject4$
|
|
25404
|
+
var DebugLabel = styled.span(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
|
|
25405
|
+
var DebugValue = styled.span(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
|
|
25302
25406
|
var ScoreBadge = 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) {
|
|
25303
25407
|
var $score = _ref4.$score,
|
|
25304
25408
|
$type = _ref4.$type;
|
|
@@ -25411,7 +25515,7 @@
|
|
|
25411
25515
|
return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
|
|
25412
25516
|
});
|
|
25413
25517
|
|
|
25414
|
-
var _templateObject$D, _templateObject2$y, _templateObject3$
|
|
25518
|
+
var _templateObject$D, _templateObject2$y, _templateObject3$q, _templateObject4$l, _templateObject5$h;
|
|
25415
25519
|
var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
|
|
25416
25520
|
var ReviewScreen = function ReviewScreen(_ref) {
|
|
25417
25521
|
var capturedDocuments = _ref.capturedDocuments,
|
|
@@ -25504,11 +25608,11 @@
|
|
|
25504
25608
|
};
|
|
25505
25609
|
var Heading$9 = styled.h1(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
|
|
25506
25610
|
var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
25507
|
-
var ImageRow = styled(OverlayImageRow)(_templateObject3$
|
|
25508
|
-
var ImageCol$1 = styled.div(_templateObject4$
|
|
25611
|
+
var ImageRow = styled(OverlayImageRow)(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
25612
|
+
var ImageCol$1 = styled.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
25509
25613
|
var StyledImage = styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
25510
25614
|
|
|
25511
|
-
var _templateObject$C, _templateObject2$x, _templateObject3$
|
|
25615
|
+
var _templateObject$C, _templateObject2$x, _templateObject3$p, _templateObject4$k;
|
|
25512
25616
|
var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
25513
25617
|
var _assets$imageUrl, _classNames$container;
|
|
25514
25618
|
var onRetry = _ref.onRetry,
|
|
@@ -25569,10 +25673,10 @@
|
|
|
25569
25673
|
};
|
|
25570
25674
|
var StyledOverlayInner$2 = styled(OverlayInner$2)(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
|
|
25571
25675
|
var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
|
|
25572
|
-
var Description$3 = styled.p(_templateObject3$
|
|
25573
|
-
var RetryButton$1 = styled(LoaderButton)(_templateObject4$
|
|
25676
|
+
var Description$3 = styled.p(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
|
|
25677
|
+
var RetryButton$1 = styled(LoaderButton)(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
|
|
25574
25678
|
|
|
25575
|
-
var _templateObject$B, _templateObject2$w, _templateObject3$
|
|
25679
|
+
var _templateObject$B, _templateObject2$w, _templateObject3$o;
|
|
25576
25680
|
var ErrorScreen = function ErrorScreen(_ref) {
|
|
25577
25681
|
var error = _ref.error,
|
|
25578
25682
|
onRetry = _ref.onRetry,
|
|
@@ -25765,7 +25869,7 @@
|
|
|
25765
25869
|
// same here rather than inherit a foreground meant for the dark overlays.
|
|
25766
25870
|
var ErrorCard = styled(FlexCard)(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
|
|
25767
25871
|
var Heading$8 = styled.h1(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
|
|
25768
|
-
var Description$2 = styled.p(_templateObject3$
|
|
25872
|
+
var Description$2 = styled.p(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
|
|
25769
25873
|
|
|
25770
25874
|
function reasonFor(code) {
|
|
25771
25875
|
if (code === 'CAMERA_PERMISSION_DENIED') return 'permissionDenied';
|
|
@@ -25834,7 +25938,7 @@
|
|
|
25834
25938
|
return key === 'third' ? 'ID page of passport' : 'back of ID card';
|
|
25835
25939
|
}
|
|
25836
25940
|
|
|
25837
|
-
var _templateObject$A, _templateObject2$v, _templateObject3$
|
|
25941
|
+
var _templateObject$A, _templateObject2$v, _templateObject3$n, _templateObject4$j, _templateObject5$g, _templateObject6$c, _templateObject7$a;
|
|
25838
25942
|
function IdCaptureFallback(_ref) {
|
|
25839
25943
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
25840
25944
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -25921,7 +26025,7 @@
|
|
|
25921
26025
|
// `readFile` rejects on FileReader's error/abort. Swallowing it left
|
|
25922
26026
|
// an unhandled rejection and a user staring at a screen that silently
|
|
25923
26027
|
// did nothing; the retry is simply picking the file again.
|
|
25924
|
-
warn('[websdk-ui] the selected ID image could not be read', _t);
|
|
26028
|
+
warn$1('[websdk-ui] the selected ID image could not be read', _t);
|
|
25925
26029
|
setReadFailed(true);
|
|
25926
26030
|
case 5:
|
|
25927
26031
|
_context.prev = 5;
|
|
@@ -26005,13 +26109,13 @@
|
|
|
26005
26109
|
}
|
|
26006
26110
|
var StyledOverlayInner$1 = styled(OverlayInner$2)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
26007
26111
|
var Heading$7 = styled.h3(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
26008
|
-
var Description$1 = styled.p(_templateObject3$
|
|
26009
|
-
var Instruction = styled.p(_templateObject4$
|
|
26112
|
+
var Description$1 = styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
26113
|
+
var Instruction = styled.p(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
26010
26114
|
var ReadFailed$1 = styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
26011
26115
|
var ImageCol = styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
|
|
26012
26116
|
var StyledButtonsRow$6 = styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
26013
26117
|
|
|
26014
|
-
var _templateObject$z, _templateObject2$u, _templateObject3$
|
|
26118
|
+
var _templateObject$z, _templateObject2$u, _templateObject3$m, _templateObject4$i, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
|
|
26015
26119
|
function IdCaptureOrUploadScreen(_ref) {
|
|
26016
26120
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
26017
26121
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -26088,7 +26192,7 @@
|
|
|
26088
26192
|
_t2 = _context["catch"](2);
|
|
26089
26193
|
// Same reasoning as the fallback screen's: an unhandled rejection and
|
|
26090
26194
|
// a silently empty upload slot is the worst of both.
|
|
26091
|
-
warn('[websdk-ui] the selected document could not be read', _t2);
|
|
26195
|
+
warn$1('[websdk-ui] the selected document could not be read', _t2);
|
|
26092
26196
|
setReadFailed(true);
|
|
26093
26197
|
case 5:
|
|
26094
26198
|
_context.prev = 5;
|
|
@@ -26263,8 +26367,8 @@
|
|
|
26263
26367
|
return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
26264
26368
|
});
|
|
26265
26369
|
var ScreenPanel = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
|
|
26266
|
-
var DashedSeparator = styled.div(_templateObject3$
|
|
26267
|
-
var OrWrapper = styled.span(_templateObject4$
|
|
26370
|
+
var DashedSeparator = styled.div(_templateObject3$m || (_templateObject3$m = _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"])));
|
|
26371
|
+
var OrWrapper = styled.span(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
|
|
26268
26372
|
var _props$theme$backgrou2, _props$theme2;
|
|
26269
26373
|
return (_props$theme$backgrou2 = (_props$theme2 = props.theme) == null ? void 0 : _props$theme2.background) != null ? _props$theme$backgrou2 : '#fff';
|
|
26270
26374
|
});
|
|
@@ -30830,7 +30934,7 @@
|
|
|
30830
30934
|
});
|
|
30831
30935
|
}
|
|
30832
30936
|
|
|
30833
|
-
var _templateObject$w, _templateObject2$t, _templateObject3$
|
|
30937
|
+
var _templateObject$w, _templateObject2$t, _templateObject3$l, _templateObject4$h;
|
|
30834
30938
|
var _excluded$d = ["borderColor", "borderOpacity", "borderWidth", "status"],
|
|
30835
30939
|
_excluded2$4 = ["status", "guideStyle"],
|
|
30836
30940
|
_excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
|
|
@@ -30969,8 +31073,8 @@
|
|
|
30969
31073
|
}))]
|
|
30970
31074
|
});
|
|
30971
31075
|
}
|
|
30972
|
-
var AbsoluteSvg = styled.svg(_templateObject3$
|
|
30973
|
-
var RelativeSvgContainer = styled.div(_templateObject4$
|
|
31076
|
+
var AbsoluteSvg = styled.svg(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n"])));
|
|
31077
|
+
var RelativeSvgContainer = styled.div(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 100%;\n display: flex;\n align-items: ", ";\n"])), function (props) {
|
|
30974
31078
|
return props.$verticalAlign === 'bottom' ? 'flex-end' : 'center';
|
|
30975
31079
|
});
|
|
30976
31080
|
function SelfieCaptureAnimatedMask(_ref3) {
|
|
@@ -31533,7 +31637,7 @@
|
|
|
31533
31637
|
});
|
|
31534
31638
|
}
|
|
31535
31639
|
|
|
31536
|
-
var _templateObject$u, _templateObject2$r, _templateObject3$
|
|
31640
|
+
var _templateObject$u, _templateObject2$r, _templateObject3$k, _templateObject4$g, _templateObject5$e;
|
|
31537
31641
|
var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
|
|
31538
31642
|
// Module-level so the default `now` prop has a stable identity across
|
|
31539
31643
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -31718,14 +31822,14 @@
|
|
|
31718
31822
|
var _props$theme4, _props$theme5;
|
|
31719
31823
|
return (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.selfieCapture) != null && (_props$theme4 = _props$theme4.loadingOverlay) != null && _props$theme4.progressBarFontSize ? "font-size: " + ((_props$theme5 = props.theme) == null || (_props$theme5 = _props$theme5.selfieCapture) == null || (_props$theme5 = _props$theme5.loadingOverlay) == null ? void 0 : _props$theme5.progressBarFontSize) + ";" : '';
|
|
31720
31824
|
});
|
|
31721
|
-
var ProgressBarBackground = styled(LoadingOverlayProgressBarBackground)(_templateObject3$
|
|
31825
|
+
var ProgressBarBackground = styled(LoadingOverlayProgressBarBackground)(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
31722
31826
|
var _props$theme$selfieCa4, _props$theme6;
|
|
31723
31827
|
return (_props$theme$selfieCa4 = (_props$theme6 = props.theme) == null || (_props$theme6 = _props$theme6.selfieCapture) == null || (_props$theme6 = _props$theme6.loadingOverlay) == null ? void 0 : _props$theme6.progressBarBackgroundColor) != null ? _props$theme$selfieCa4 : PROGRESS_TRACK_DEFAULT;
|
|
31724
31828
|
}, function (props) {
|
|
31725
31829
|
var _props$theme$selfieCa5, _props$theme7;
|
|
31726
31830
|
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.progressBarBackgroundOpacity) != null ? _props$theme$selfieCa5 : PROGRESS_TRACK_OPACITY_DEFAULT;
|
|
31727
31831
|
});
|
|
31728
|
-
var ProgressIndicator = styled(LoadingOverlayProgressIndicator)(_templateObject4$
|
|
31832
|
+
var ProgressIndicator = styled(LoadingOverlayProgressIndicator)(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
|
|
31729
31833
|
var _props$theme$selfieCa6, _props$theme8;
|
|
31730
31834
|
return (_props$theme$selfieCa6 = (_props$theme8 = props.theme) == null || (_props$theme8 = _props$theme8.selfieCapture) == null || (_props$theme8 = _props$theme8.loadingOverlay) == null ? void 0 : _props$theme8.progressBarIndicatorColor) != null ? _props$theme$selfieCa6 : PROGRESS_INDICATOR_DEFAULT;
|
|
31731
31835
|
});
|
|
@@ -31849,7 +31953,7 @@
|
|
|
31849
31953
|
var StyledGuidanceMessage = styled(GuidanceMessage)(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
|
|
31850
31954
|
var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
|
|
31851
31955
|
|
|
31852
|
-
var _templateObject$s, _templateObject2$p, _templateObject3$
|
|
31956
|
+
var _templateObject$s, _templateObject2$p, _templateObject3$j, _templateObject4$f, _templateObject5$d, _templateObject6$a, _templateObject7$8;
|
|
31853
31957
|
// Module-level so the default `now` prop has a stable identity across
|
|
31854
31958
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
31855
31959
|
var defaultNow = function defaultNow() {
|
|
@@ -32116,9 +32220,9 @@
|
|
|
32116
32220
|
var _props$theme$selfieCa2, _props$theme2;
|
|
32117
32221
|
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 : '#12211d';
|
|
32118
32222
|
}, function (props) {
|
|
32119
|
-
return props.$softEntry ? css(_templateObject3$
|
|
32223
|
+
return props.$softEntry ? css(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn) : '';
|
|
32120
32224
|
});
|
|
32121
|
-
var RingLayout = styled.div(_templateObject4$
|
|
32225
|
+
var RingLayout = styled.div(_templateObject4$f || (_templateObject4$f = _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: 40px;\n text-align: center;\n"])));
|
|
32122
32226
|
var StatusLine = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
|
|
32123
32227
|
var SubText = styled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
|
|
32124
32228
|
var ContinueButton = styled(LoaderButton)(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n margin-top: 10px;\n white-space: nowrap;\n ", "\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
|
|
@@ -32150,7 +32254,7 @@
|
|
|
32150
32254
|
return jsx(Component, _extends$1({}, props));
|
|
32151
32255
|
};
|
|
32152
32256
|
|
|
32153
|
-
var _templateObject$r, _templateObject2$o, _templateObject3$
|
|
32257
|
+
var _templateObject$r, _templateObject2$o, _templateObject3$i, _templateObject4$e, _templateObject5$c, _templateObject6$9;
|
|
32154
32258
|
function SelfieCaptureFallback(_ref) {
|
|
32155
32259
|
var _ref$silentFallback = _ref.silentFallback,
|
|
32156
32260
|
silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
|
|
@@ -32222,7 +32326,7 @@
|
|
|
32222
32326
|
case 4:
|
|
32223
32327
|
_context.prev = 4;
|
|
32224
32328
|
_t = _context["catch"](2);
|
|
32225
|
-
warn('[websdk-ui] the selected selfie could not be read', _t);
|
|
32329
|
+
warn$1('[websdk-ui] the selected selfie could not be read', _t);
|
|
32226
32330
|
setReadFailed(true);
|
|
32227
32331
|
case 5:
|
|
32228
32332
|
case "end":
|
|
@@ -32306,8 +32410,8 @@
|
|
|
32306
32410
|
}
|
|
32307
32411
|
var StyledOverlayInner = styled(OverlayInner$2)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
|
|
32308
32412
|
var Heading$6 = styled.h1(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
|
|
32309
|
-
var Description = styled.p(_templateObject3$
|
|
32310
|
-
var ImageContainer$4 = styled.div(_templateObject4$
|
|
32413
|
+
var Description = styled.p(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
|
|
32414
|
+
var ImageContainer$4 = styled.div(_templateObject4$e || (_templateObject4$e = _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"])));
|
|
32311
32415
|
var ReadFailed = styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
|
|
32312
32416
|
var StyledButtonsRow$4 = styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
|
|
32313
32417
|
|
|
@@ -37975,7 +38079,7 @@
|
|
|
37975
38079
|
return shimExports.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
37976
38080
|
}
|
|
37977
38081
|
|
|
37978
|
-
var _templateObject$k, _templateObject2$k, _templateObject3$
|
|
38082
|
+
var _templateObject$k, _templateObject2$k, _templateObject3$h, _templateObject4$d, _templateObject5$b, _templateObject6$8;
|
|
37979
38083
|
var _excluded$b = ["device", "frameDecode"];
|
|
37980
38084
|
var ASSUMED_TRIM_PADDING = {
|
|
37981
38085
|
startMs: TRIM_PADDING_START_MS,
|
|
@@ -38256,8 +38360,8 @@
|
|
|
38256
38360
|
var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
|
|
38257
38361
|
var Panel = styled.div(_templateObject$k || (_templateObject$k = _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"])));
|
|
38258
38362
|
var Table = styled.table(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
|
|
38259
|
-
var SectionCell = styled.th(_templateObject3$
|
|
38260
|
-
var LabelCell = styled.td(_templateObject4$
|
|
38363
|
+
var SectionCell = styled.th(_templateObject3$h || (_templateObject3$h = _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"])));
|
|
38364
|
+
var LabelCell = styled.td(_templateObject4$d || (_templateObject4$d = _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"])));
|
|
38261
38365
|
var ValueCell = 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) {
|
|
38262
38366
|
return props.$suspect ? '#842029' : '#212529';
|
|
38263
38367
|
}, function (props) {
|
|
@@ -38265,7 +38369,7 @@
|
|
|
38265
38369
|
});
|
|
38266
38370
|
var Note = styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
|
|
38267
38371
|
|
|
38268
|
-
var _templateObject$j, _templateObject2$j, _templateObject3$
|
|
38372
|
+
var _templateObject$j, _templateObject2$j, _templateObject3$g, _templateObject4$c, _templateObject5$a;
|
|
38269
38373
|
function MessageOverlay(_ref) {
|
|
38270
38374
|
var heading = _ref.heading,
|
|
38271
38375
|
children = _ref.children,
|
|
@@ -38487,11 +38591,11 @@
|
|
|
38487
38591
|
}
|
|
38488
38592
|
var CenteredInner = styled(OverlayInner$2)(_templateObject$j || (_templateObject$j = _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"])));
|
|
38489
38593
|
var Content = styled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
|
|
38490
|
-
var Details = styled.p(_templateObject3$
|
|
38491
|
-
var PermissionImage = styled(OverlayImageContainer)(_templateObject4$
|
|
38594
|
+
var Details = styled.p(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
|
|
38595
|
+
var PermissionImage = styled(OverlayImageContainer)(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
|
|
38492
38596
|
var RetryButton = styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
|
|
38493
38597
|
|
|
38494
|
-
var _templateObject$i, _templateObject2$i, _templateObject3$
|
|
38598
|
+
var _templateObject$i, _templateObject2$i, _templateObject3$f, _templateObject4$b, _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;
|
|
38495
38599
|
var FALLBACKS = {
|
|
38496
38600
|
headingText: "Please sign the box below",
|
|
38497
38601
|
signHereText: "Sign here",
|
|
@@ -39086,10 +39190,10 @@
|
|
|
39086
39190
|
* screen's bezel and matches the letterbox bars the KYC flow shows while the
|
|
39087
39191
|
* camera is up.
|
|
39088
39192
|
*/
|
|
39089
|
-
var CameraLayer$1 = styled.div(_templateObject3$
|
|
39193
|
+
var CameraLayer$1 = styled.div(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n overflow: hidden;\n background: #000;\n"])), function (props) {
|
|
39090
39194
|
return props.$visible ? "flex" : "none";
|
|
39091
39195
|
});
|
|
39092
|
-
var CaptureContent = styled.div(_templateObject4$
|
|
39196
|
+
var CaptureContent = styled.div(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 1;\n display: ", ";\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: ", ";\n padding: ", ";\n background: ", ";\n box-sizing: border-box;\n\n /* Reserve a band above the face guide on phones and narrow embeds. */\n @container signature-capture (max-width: 1024px) {\n top: ", ";\n }\n\n"])), function (props) {
|
|
39093
39197
|
return props.$visible ? "flex" : "none";
|
|
39094
39198
|
}, function (props) {
|
|
39095
39199
|
return props.$legacyVideoLayout ? "0" : "16px";
|
|
@@ -40600,7 +40704,7 @@
|
|
|
40600
40704
|
return shimExports.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
40601
40705
|
}
|
|
40602
40706
|
|
|
40603
|
-
var _templateObject$h, _templateObject2$h, _templateObject3$
|
|
40707
|
+
var _templateObject$h, _templateObject2$h, _templateObject3$e, _templateObject4$a, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
|
|
40604
40708
|
/**
|
|
40605
40709
|
* The combined face-over-document guide used by SDK2's Video ID recording
|
|
40606
40710
|
* stage. Unlike the standalone ID overlay, both subjects remain framed in a
|
|
@@ -40816,8 +40920,8 @@
|
|
|
40816
40920
|
return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
|
|
40817
40921
|
});
|
|
40818
40922
|
var Inner$1 = styled.div(_templateObject2$h || (_templateObject2$h = _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"])));
|
|
40819
|
-
var FaceGuideContainer = styled.div(_templateObject3$
|
|
40820
|
-
var IdCardGuideContainer = styled.div(_templateObject4$
|
|
40923
|
+
var FaceGuideContainer = styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
|
|
40924
|
+
var IdCardGuideContainer = styled.div(_templateObject4$a || (_templateObject4$a = _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"])));
|
|
40821
40925
|
var IdCardGuideInner = styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
|
|
40822
40926
|
var StyledIdCardGuideImageContainer = styled(IdCardGuideImageContainer)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n width: auto;\n height: 100%;\n"])));
|
|
40823
40927
|
var InstructionsContainer = styled.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n bottom: 16px;\n left: 0;\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n box-sizing: border-box;\n color: white;\n text-align: center;\n"])));
|
|
@@ -40846,7 +40950,7 @@
|
|
|
40846
40950
|
};
|
|
40847
40951
|
(_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);
|
|
40848
40952
|
|
|
40849
|
-
var _templateObject$g, _templateObject2$g, _templateObject3$
|
|
40953
|
+
var _templateObject$g, _templateObject2$g, _templateObject3$d, _templateObject4$9, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
|
|
40850
40954
|
function VideoIdCaptureView(props) {
|
|
40851
40955
|
var _props$lang;
|
|
40852
40956
|
return jsx(SdkLanguageProvider, {
|
|
@@ -41197,8 +41301,8 @@
|
|
|
41197
41301
|
var CameraLayer = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
|
|
41198
41302
|
return props.$visible ? 'flex' : 'none';
|
|
41199
41303
|
});
|
|
41200
|
-
var ReadTextPrompt = styled.div(_templateObject3$
|
|
41201
|
-
var ReadTextHeading = styled.h3(_templateObject4$
|
|
41304
|
+
var ReadTextPrompt = styled.div(_templateObject3$d || (_templateObject3$d = _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"])));
|
|
41305
|
+
var ReadTextHeading = styled.h3(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n"])));
|
|
41202
41306
|
var ReadTextSentence = styled.div(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n font-weight: 600;\n text-align: center;\n"])));
|
|
41203
41307
|
var Countdown = styled.div(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 20;\n display: grid;\n place-items: center;\n color: white;\n font-size: 64px;\n font-weight: 700;\n pointer-events: none;\n"])));
|
|
41204
41308
|
var Review = styled.div(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 30;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n padding: 24px;\n overflow: auto;\n background: ", ";\n\n > video {\n width: min(100%, 720px);\n max-height: 52vh;\n }\n"])), function (props) {
|
|
@@ -41218,7 +41322,7 @@
|
|
|
41218
41322
|
return shimExports.useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
41219
41323
|
}
|
|
41220
41324
|
|
|
41221
|
-
var _templateObject$f, _templateObject2$f, _templateObject3$
|
|
41325
|
+
var _templateObject$f, _templateObject2$f, _templateObject3$c, _templateObject4$8, _templateObject5$6;
|
|
41222
41326
|
/** Human wording for each gate, in the order the engine reports them. */
|
|
41223
41327
|
/** Short enough that the triple fits one line on a phone. */
|
|
41224
41328
|
var GUIDANCE_LABELS = {
|
|
@@ -41365,7 +41469,7 @@
|
|
|
41365
41469
|
// Deliberately the UI package's own logger, per AGENTS.md. `debugMode`
|
|
41366
41470
|
// raises CORE's level, not this one, so routing through `debug()` here
|
|
41367
41471
|
// would silence the fallback in exactly the session that needs it.
|
|
41368
|
-
warn('[autoCapture] diagnostics log', text);
|
|
41472
|
+
warn$1('[autoCapture] diagnostics log', text);
|
|
41369
41473
|
setCopied(log.length + "f \u2192 console");
|
|
41370
41474
|
};
|
|
41371
41475
|
if (!((_navigator$clipboard = navigator.clipboard) != null && _navigator$clipboard.writeText)) {
|
|
@@ -41521,8 +41625,8 @@
|
|
|
41521
41625
|
// swallow a capture tap. This one has to be tappable, so it re-enables them on
|
|
41522
41626
|
// its own subtree only.
|
|
41523
41627
|
var InteractivePane = styled.span(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
|
|
41524
|
-
var Row = styled.span(_templateObject3$
|
|
41525
|
-
var Controls = styled.span(_templateObject4$
|
|
41628
|
+
var Row = styled.span(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
41629
|
+
var Controls = styled.span(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
|
|
41526
41630
|
var Chip = 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) {
|
|
41527
41631
|
var $active = _ref5.$active;
|
|
41528
41632
|
return $active ? 'limegreen' : 'transparent';
|
|
@@ -41531,7 +41635,7 @@
|
|
|
41531
41635
|
return $active ? 'black' : 'limegreen';
|
|
41532
41636
|
});
|
|
41533
41637
|
|
|
41534
|
-
var _templateObject$e, _templateObject2$e, _templateObject3$
|
|
41638
|
+
var _templateObject$e, _templateObject2$e, _templateObject3$b;
|
|
41535
41639
|
/**
|
|
41536
41640
|
* Which verbiage member renders each code.
|
|
41537
41641
|
*
|
|
@@ -41646,9 +41750,9 @@
|
|
|
41646
41750
|
* competed the applicant would read the wrong one. No dot, lower contrast, no
|
|
41647
41751
|
* background of its own beyond what legibility over video requires.
|
|
41648
41752
|
*/
|
|
41649
|
-
var ManualCaptureHint = styled.div(_templateObject3$
|
|
41753
|
+
var ManualCaptureHint = styled.div(_templateObject3$b || (_templateObject3$b = _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"])));
|
|
41650
41754
|
|
|
41651
|
-
var _templateObject$d, _templateObject2$d, _templateObject3$
|
|
41755
|
+
var _templateObject$d, _templateObject2$d, _templateObject3$a;
|
|
41652
41756
|
function DocumentCaptureReviewScreen(_ref) {
|
|
41653
41757
|
var contentUrl = _ref.contentUrl,
|
|
41654
41758
|
headingText = _ref.headingText,
|
|
@@ -41708,7 +41812,7 @@
|
|
|
41708
41812
|
// without it the default `min-height: auto` floors the wrapper at the image's
|
|
41709
41813
|
// intrinsic height and the buttons get pushed off the bottom of a phone.
|
|
41710
41814
|
var ImageWrap = styled.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
|
|
41711
|
-
var PreviewImage$1 = styled.img(_templateObject3$
|
|
41815
|
+
var PreviewImage$1 = styled.img(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
|
|
41712
41816
|
|
|
41713
41817
|
function computeGuideRect$1(_ref) {
|
|
41714
41818
|
var wrapperWidth = _ref.wrapperWidth,
|
|
@@ -41987,7 +42091,7 @@
|
|
|
41987
42091
|
});
|
|
41988
42092
|
var Canvas = styled.canvas(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
41989
42093
|
|
|
41990
|
-
var _templateObject$b, _templateObject2$b, _templateObject3$
|
|
42094
|
+
var _templateObject$b, _templateObject2$b, _templateObject3$9, _templateObject4$7, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
41991
42095
|
/** The verbiage fallbacks, exported so the i18n parity test reads the real
|
|
41992
42096
|
* literals rather than a second copy that could drift from them. */
|
|
41993
42097
|
var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
|
|
@@ -42577,11 +42681,11 @@
|
|
|
42577
42681
|
* the mechanism that just gave up, and a disabled-looking disc would refuse a
|
|
42578
42682
|
* tap the applicant is entitled to make.
|
|
42579
42683
|
*/
|
|
42580
|
-
var GuidedShutterDock = styled.div(_templateObject3$
|
|
42684
|
+
var GuidedShutterDock = styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n justify-content: center;\n pointer-events: none;\n\n /* Straddling the guide box's bottom edge EXACTLY, when we know where that\n edge is. Anchoring to the surface bottom instead left it wherever the\n letterboxing happened to put it \u2014 near the edge on a phone, floating well\n below it on a desktop, and half-overlapping at sizes in between, which\n reads as a mistake rather than a choice.\n\n Centred on the edge is a decision the geometry can state: the disc sits\n half on the frame and half on the surround, at every viewport. */\n ", "\n"])), function (_ref3) {
|
|
42581
42685
|
var $centreY = _ref3.$centreY;
|
|
42582
42686
|
return $centreY === null ? 'bottom: max(20px, env(safe-area-inset-bottom));' : "top: " + $centreY + "px; transform: translateY(-50%);";
|
|
42583
42687
|
});
|
|
42584
|
-
var GuidedShutter = styled.button(_templateObject4$
|
|
42688
|
+
var GuidedShutter = styled.button(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n position: relative;\n width: ", "px;\n height: ", "px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n padding: 0;\n\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. */\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. It dims to a TRACK\n while a tap is pending, so the sweep drawn over it reads as filling. */\n &::after {\n content: '';\n position: absolute;\n inset: -", "px;\n border: ", "px solid\n ", ";\n border-radius: 50%;\n }\n\n &:active {\n transform: scale(0.94);\n }\n\n /* Held down for the length of the burst window. A one-shot state change, not\n an animation: a spinner or a pulse here would repaint every frame on top\n of live video for the exact interval the applicant is holding still. */\n ", "\n\n &:disabled {\n cursor: default;\n /* A pending shutter is working, not refusing. Only the not-yet-ready case\n is dimmed far enough to read as unavailable. */\n opacity: ", ";\n }\n"])), GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_RING_PX, GUIDED_SHUTTER_RING_WIDTH_PX, function (_ref4) {
|
|
42585
42689
|
var $pending = _ref4.$pending;
|
|
42586
42690
|
return $pending ? 'rgba(255, 255, 255, 0.25)' : 'rgba(255, 255, 255, 0.9)';
|
|
42587
42691
|
}, function (_ref5) {
|
|
@@ -42901,7 +43005,7 @@
|
|
|
42901
43005
|
});
|
|
42902
43006
|
};
|
|
42903
43007
|
|
|
42904
|
-
var _templateObject$a, _templateObject2$a, _templateObject3$
|
|
43008
|
+
var _templateObject$a, _templateObject2$a, _templateObject3$8, _templateObject4$6, _templateObject5$4;
|
|
42905
43009
|
// The `useTranslations` fallback defaults, exported so the i18n parity
|
|
42906
43010
|
// guard (additionalDocumentStrings.test.ts) can assert every non-English
|
|
42907
43011
|
// locale carries these exact literals by reading them from here rather than
|
|
@@ -43071,8 +43175,8 @@
|
|
|
43071
43175
|
}
|
|
43072
43176
|
var Inner = styled(OverlayInner$2)(_templateObject$a || (_templateObject$a = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
43073
43177
|
var Heading$2 = styled.h3(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
43074
|
-
var DescriptionText = styled.p(_templateObject3$
|
|
43075
|
-
var ErrorText = styled.p(_templateObject4$
|
|
43178
|
+
var DescriptionText = styled.p(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
43179
|
+
var ErrorText = styled.p(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
43076
43180
|
var StyledButtonsRow$2 = styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
43077
43181
|
|
|
43078
43182
|
function additionalDocumentProgress(documents, results) {
|
|
@@ -43146,7 +43250,7 @@
|
|
|
43146
43250
|
_context.prev = 3;
|
|
43147
43251
|
_t = _context["catch"](1);
|
|
43148
43252
|
if (!cancelled) {
|
|
43149
|
-
warn("[AdditionalDocumentCaptureWizard] skip() rejected for \"" + current.name + "\"; showing the document", _t);
|
|
43253
|
+
warn$1("[AdditionalDocumentCaptureWizard] skip() rejected for \"" + current.name + "\"; showing the document", _t);
|
|
43150
43254
|
}
|
|
43151
43255
|
return _context.abrupt("return");
|
|
43152
43256
|
case 4:
|
|
@@ -43196,7 +43300,7 @@
|
|
|
43196
43300
|
}, index);
|
|
43197
43301
|
}
|
|
43198
43302
|
|
|
43199
|
-
var _templateObject$9, _templateObject2$9, _templateObject3$
|
|
43303
|
+
var _templateObject$9, _templateObject2$9, _templateObject3$7, _templateObject4$5, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
|
|
43200
43304
|
var CONFETTI_COUNT = 44;
|
|
43201
43305
|
var CONFETTI_LIFETIME_MS = 4500;
|
|
43202
43306
|
/**
|
|
@@ -43319,8 +43423,8 @@
|
|
|
43319
43423
|
};
|
|
43320
43424
|
var fadeIn$1 = keyframes(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
43321
43425
|
var popCheck = keyframes(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
|
|
43322
|
-
var drawTick = keyframes(_templateObject3$
|
|
43323
|
-
var confettiFall = keyframes(_templateObject4$
|
|
43426
|
+
var drawTick = keyframes(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
|
|
43427
|
+
var confettiFall = keyframes(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
|
|
43324
43428
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
43325
43429
|
// for why the foreground is pinned rather than read from the theme.
|
|
43326
43430
|
var SuccessInner$1 = styled(LoadingOverlayInner)(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n overflow: hidden;\n"])), function (props) {
|
|
@@ -43340,7 +43444,7 @@
|
|
|
43340
43444
|
var StatChip = 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"])));
|
|
43341
43445
|
var ConfettiPiece = 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);
|
|
43342
43446
|
|
|
43343
|
-
var _templateObject$8, _templateObject2$8, _templateObject3$
|
|
43447
|
+
var _templateObject$8, _templateObject2$8, _templateObject3$6, _templateObject4$4, _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;
|
|
43344
43448
|
var toDataUrl$2 = function toDataUrl(value) {
|
|
43345
43449
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
43346
43450
|
};
|
|
@@ -43530,10 +43634,10 @@
|
|
|
43530
43634
|
// loading overlay, and inheriting it painted white text on this white surface:
|
|
43531
43635
|
// the tips panel (`rgb(255 255 255 / 0.62)`) went fully invisible. Same rule,
|
|
43532
43636
|
// and the same reason, as `ErrorScreen`'s `ErrorCard`.
|
|
43533
|
-
var FailureInner = styled(LoadingOverlayInner)(_templateObject3$
|
|
43637
|
+
var FailureInner = styled(LoadingOverlayInner)(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n overflow-y: auto;\n"])), function (props) {
|
|
43534
43638
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
|
|
43535
43639
|
});
|
|
43536
|
-
var FailureLayout = styled.div(_templateObject4$
|
|
43640
|
+
var FailureLayout = styled.div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 34px;\n text-align: center;\n\n @media (max-height: 650px) {\n justify-content: flex-start;\n gap: 9px;\n padding-top: 24px;\n padding-bottom: 24px;\n }\n"])));
|
|
43537
43641
|
var VisualSlot = styled.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n min-height: 120px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 6px;\n animation: ", " 420ms cubic-bezier(0.2, 0, 0, 1) both;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n @media (max-height: 650px) {\n min-height: 88px;\n margin-bottom: 0;\n }\n"])), markIn);
|
|
43538
43642
|
var SelfieThumb$1 = styled.div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 96px;\n height: 120px;\n border-radius: 16px;\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 0.08),\n 0 12px 30px rgb(0 0 0 / 0.18);\n\n @media (max-height: 650px) {\n width: 70px;\n height: 88px;\n }\n\n img {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n border-radius: inherit;\n outline: 1px solid rgb(255 255 255 / 0.22);\n outline-offset: -1px;\n }\n"])));
|
|
43539
43643
|
var ThumbStatus = styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 6px;\n bottom: 6px;\n width: 28px;\n height: 28px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", ";\n color: #ffffff;\n box-shadow:\n 0 0 0 3px rgb(255 255 255 / 0.9),\n 0 4px 10px rgb(0 0 0 / 0.2);\n\n svg {\n width: 17px;\n height: 17px;\n fill: currentColor;\n stroke: currentColor;\n stroke-width: 2.25;\n stroke-linecap: round;\n }\n"])), function (props) {
|
|
@@ -43565,7 +43669,7 @@
|
|
|
43565
43669
|
});
|
|
43566
43670
|
var SecondaryAction = 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"])));
|
|
43567
43671
|
|
|
43568
|
-
var _templateObject$7, _templateObject2$7, _templateObject3$
|
|
43672
|
+
var _templateObject$7, _templateObject2$7, _templateObject3$5, _templateObject4$3, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
|
|
43569
43673
|
var toDataUrl$1 = function toDataUrl(value) {
|
|
43570
43674
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
43571
43675
|
};
|
|
@@ -43675,10 +43779,10 @@
|
|
|
43675
43779
|
var spin = keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
|
|
43676
43780
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
43677
43781
|
// for why the foreground is pinned rather than read from the theme.
|
|
43678
|
-
var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$
|
|
43782
|
+
var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
|
|
43679
43783
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
|
|
43680
43784
|
}, fadeIn);
|
|
43681
|
-
var FinishingLayout = styled.div(_templateObject4$
|
|
43785
|
+
var FinishingLayout = styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n padding: 34px;\n text-align: center;\n"])));
|
|
43682
43786
|
var SelfieThumb = styled.div(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 96px;\n height: 120px;\n border-radius: 16px;\n background-size: cover;\n background-position: center;\n box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);\n"])));
|
|
43683
43787
|
var ThumbBadge = styled.div(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 6px;\n right: 6px;\n width: 26px;\n height: 26px;\n border-radius: 50%;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n color: #ffffff;\n font-size: 13px;\n box-shadow: 0 3px 8px rgb(0 0 0 / 0.3);\n"])), function (props) {
|
|
43684
43788
|
return props.$accent;
|
|
@@ -43725,7 +43829,7 @@
|
|
|
43725
43829
|
return flowStartedAt === null ? null : Date.now() - flowStartedAt;
|
|
43726
43830
|
};
|
|
43727
43831
|
|
|
43728
|
-
var _templateObject$6, _templateObject2$6, _templateObject3$
|
|
43832
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$4;
|
|
43729
43833
|
var DEFAULT_HEADING$1 = {
|
|
43730
43834
|
identification: 'Customer has been identified!',
|
|
43731
43835
|
verification: 'Customer has been verified!'
|
|
@@ -43784,9 +43888,9 @@
|
|
|
43784
43888
|
}
|
|
43785
43889
|
var Heading$1 = styled.h3(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
43786
43890
|
var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
43787
|
-
var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$
|
|
43891
|
+
var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
43788
43892
|
|
|
43789
|
-
var _templateObject$5, _templateObject2$5, _templateObject3$
|
|
43893
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$3;
|
|
43790
43894
|
var DEFAULT_HEADING = {
|
|
43791
43895
|
identification: 'Customer not found',
|
|
43792
43896
|
verification: 'Customer not verified'
|
|
@@ -43848,7 +43952,7 @@
|
|
|
43848
43952
|
}
|
|
43849
43953
|
var Heading = styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
43850
43954
|
var ImageContainer = styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
43851
|
-
var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$
|
|
43955
|
+
var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
43852
43956
|
|
|
43853
43957
|
var SubmissionContext = /*#__PURE__*/React.createContext(null);
|
|
43854
43958
|
var EMPTY_SUBMISSION_OPTIONS = {};
|
|
@@ -44240,7 +44344,7 @@
|
|
|
44240
44344
|
return elements;
|
|
44241
44345
|
};
|
|
44242
44346
|
|
|
44243
|
-
var _templateObject$4, _templateObject2$4, _templateObject3$
|
|
44347
|
+
var _templateObject$4, _templateObject2$4, _templateObject3$2, _templateObject4$2, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
44244
44348
|
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."); }
|
|
44245
44349
|
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; } }
|
|
44246
44350
|
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; }
|
|
@@ -44807,8 +44911,8 @@
|
|
|
44807
44911
|
}
|
|
44808
44912
|
var SuccessInner = styled(OverlayInner$2)(_templateObject$4 || (_templateObject$4 = _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"])));
|
|
44809
44913
|
var Header = styled.header(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
|
|
44810
|
-
var Eyebrow = styled.p(_templateObject3$
|
|
44811
|
-
var TimingGrid = styled.dl(_templateObject4$
|
|
44914
|
+
var Eyebrow = styled.p(_templateObject3$2 || (_templateObject3$2 = _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"])));
|
|
44915
|
+
var TimingGrid = styled.dl(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
|
|
44812
44916
|
var TimingCard = 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"])));
|
|
44813
44917
|
var UploadSubheader = styled.h4(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n margin: 20px 0 8px;\n font-size: 0.8125rem;\n"])));
|
|
44814
44918
|
var UploadList = styled.dl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n margin: 0 0 24px;\n"])));
|
|
@@ -46061,7 +46165,7 @@
|
|
|
46061
46165
|
if (shouldProceed) setIncluded(true);else onCompleteRef.current();
|
|
46062
46166
|
}, function (cause) {
|
|
46063
46167
|
if (!active) return;
|
|
46064
|
-
warn('[websdk-ui] signature stage decision rejected; capturing anyway', cause);
|
|
46168
|
+
warn$1('[websdk-ui] signature stage decision rejected; capturing anyway', cause);
|
|
46065
46169
|
setIncluded(true);
|
|
46066
46170
|
});
|
|
46067
46171
|
return function () {
|
|
@@ -46692,8 +46796,8 @@
|
|
|
46692
46796
|
return null;
|
|
46693
46797
|
}
|
|
46694
46798
|
|
|
46695
|
-
var _templateObject$2, _templateObject2$2;
|
|
46696
|
-
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
|
|
46799
|
+
var _templateObject$2, _templateObject2$2, _templateObject3$1, _templateObject4$1;
|
|
46800
|
+
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
|
|
46697
46801
|
function FlowChassis(_ref) {
|
|
46698
46802
|
var client = _ref.client,
|
|
46699
46803
|
action = _ref.action,
|
|
@@ -46708,6 +46812,8 @@
|
|
|
46708
46812
|
captureProgress = _ref.captureProgress,
|
|
46709
46813
|
remoteDiagnostics = _ref.remoteDiagnostics,
|
|
46710
46814
|
loadingSpinner = _ref.loadingSpinner,
|
|
46815
|
+
_ref$showEnrollmentId = _ref.showEnrollmentId,
|
|
46816
|
+
showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
|
|
46711
46817
|
children = _ref.children,
|
|
46712
46818
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
46713
46819
|
var geolocation = useGeolocation(geolocationEnabled);
|
|
@@ -46729,6 +46835,7 @@
|
|
|
46729
46835
|
}, callbacks, {
|
|
46730
46836
|
children: jsx(FlowPage, {
|
|
46731
46837
|
className: className,
|
|
46838
|
+
enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
|
|
46732
46839
|
children: jsx(AuthGate, {
|
|
46733
46840
|
children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
|
|
46734
46841
|
onRetry: geolocation.retry
|
|
@@ -46789,23 +46896,35 @@
|
|
|
46789
46896
|
/**
|
|
46790
46897
|
* The flow's page surface: `theme.header` and `theme.footer` (2.x's
|
|
46791
46898
|
* SdkPage.tsx:41) frame a body that takes the remaining height and is the
|
|
46792
|
-
* positioned ancestor every flow stage lays out against.
|
|
46899
|
+
* positioned ancestor every flow stage lays out against. The debug
|
|
46900
|
+
* enrollment-ID banner sits outside that body, so stages and their in-body
|
|
46901
|
+
* overlays lay out below it instead of over it.
|
|
46793
46902
|
*/
|
|
46794
46903
|
function FlowPage(_ref3) {
|
|
46795
46904
|
var className = _ref3.className,
|
|
46905
|
+
enrollmentId = _ref3.enrollmentId,
|
|
46796
46906
|
children = _ref3.children;
|
|
46797
46907
|
var _useTheme = useTheme(),
|
|
46798
46908
|
Header = _useTheme.header,
|
|
46799
46909
|
Footer = _useTheme.footer;
|
|
46800
46910
|
return jsxs(FlowPageOuter, {
|
|
46801
46911
|
className: className,
|
|
46802
|
-
children: [Header && jsx(Header, {}),
|
|
46912
|
+
children: [Header && jsx(Header, {}), enrollmentId && jsxs(EnrollmentIdBanner, {
|
|
46913
|
+
"data-testid": "idmission-debug-enrollment-id",
|
|
46914
|
+
children: ["Enrollment ID: ", jsx(EnrollmentIdValue, {
|
|
46915
|
+
children: enrollmentId
|
|
46916
|
+
})]
|
|
46917
|
+
}), jsx(FlowPageBody, {
|
|
46803
46918
|
children: children
|
|
46804
46919
|
}), Footer && jsx(Footer, {})]
|
|
46805
46920
|
});
|
|
46806
46921
|
}
|
|
46807
|
-
|
|
46808
|
-
|
|
46922
|
+
// Debug-only chrome, so it ignores the theme on purpose: it has to read the
|
|
46923
|
+
// same on every customer skin.
|
|
46924
|
+
var EnrollmentIdBanner = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n flex: none;\n padding: 6px 12px;\n font: 600 14px/1.3 monospace;\n text-align: center;\n color: #000;\n background: #facc15;\n overflow-wrap: anywhere;\n"])));
|
|
46925
|
+
var EnrollmentIdValue = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n user-select: all;\n"])));
|
|
46926
|
+
var FlowPageBody = styled.div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
|
|
46927
|
+
var FlowPageOuter = styled.div(_templateObject4$1 || (_templateObject4$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) {
|
|
46809
46928
|
var _props$theme$backgrou;
|
|
46810
46929
|
return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
46811
46930
|
}, function (props) {
|
|
@@ -47052,6 +47171,10 @@
|
|
|
47052
47171
|
onSubmitted = _ref.onSubmitted,
|
|
47053
47172
|
children = _ref.children,
|
|
47054
47173
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
47174
|
+
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
47175
|
+
capture: capture,
|
|
47176
|
+
signatureCapture: signatureCapture
|
|
47177
|
+
});
|
|
47055
47178
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
47056
47179
|
var latestCapture = useLatestCallbacks(capture);
|
|
47057
47180
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
@@ -47211,6 +47334,9 @@
|
|
|
47211
47334
|
children = _ref.children;
|
|
47212
47335
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
47213
47336
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
47337
|
+
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
47338
|
+
capture: controllerCapture
|
|
47339
|
+
});
|
|
47214
47340
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
47215
47341
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
47216
47342
|
var latestLiveness = useLatestCallbacks(controllerCapture.liveness);
|
|
@@ -47332,6 +47458,11 @@
|
|
|
47332
47458
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
47333
47459
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
47334
47460
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
47461
|
+
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
47462
|
+
faceCapture: selfieCaptureConfig,
|
|
47463
|
+
idCapture: idCapture,
|
|
47464
|
+
signatureCapture: signatureCapture
|
|
47465
|
+
});
|
|
47335
47466
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
47336
47467
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
47337
47468
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -47592,6 +47723,10 @@
|
|
|
47592
47723
|
onCaptureError = _ref.onCaptureError;
|
|
47593
47724
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
47594
47725
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
47726
|
+
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
47727
|
+
faceCapture: selfieCaptureConfig,
|
|
47728
|
+
signatureCapture: signatureCapture
|
|
47729
|
+
});
|
|
47595
47730
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
47596
47731
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
47597
47732
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -47953,6 +48088,12 @@
|
|
|
47953
48088
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
47954
48089
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
47955
48090
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
|
|
48091
|
+
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
48092
|
+
faceCapture: selfieCaptureConfig,
|
|
48093
|
+
idCapture: idCapture,
|
|
48094
|
+
capture: capture,
|
|
48095
|
+
signatureCapture: signatureCapture
|
|
48096
|
+
});
|
|
47956
48097
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
47957
48098
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
47958
48099
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -50941,60 +51082,6 @@
|
|
|
50941
51082
|
};
|
|
50942
51083
|
}
|
|
50943
51084
|
|
|
50944
|
-
// Makes the mount-time-only `autoCapture` contract audible (#351).
|
|
50945
|
-
//
|
|
50946
|
-
// `DocumentCaptureFlow` builds its controller inside `useState(() => …)` from
|
|
50947
|
-
// `documentsRef.current`, and `documentCapture/controller.ts` has no
|
|
50948
|
-
// reconfigure path — so `autoCapture` is read once, at mount, and every later
|
|
50949
|
-
// change is ignored. A reconfigure path was ruled against: it is real surface
|
|
50950
|
-
// on a controller that has none today, bought to serve a race the consumer can
|
|
50951
|
-
// simply not have (AMEX's `DocumentCaptureScreen` should gate on `flagsLoaded`,
|
|
50952
|
-
// not just `sessionLoaded`).
|
|
50953
|
-
//
|
|
50954
|
-
// The SILENCE is the expensive half. All four of this repo's cascade-default
|
|
50955
|
-
// incidents were "the value was quietly wrong and nothing said so", and this
|
|
50956
|
-
// one has the same shape: a capture screen that mounts before the flags land
|
|
50957
|
-
// has auto-capture off for that applicant's whole session, with no error and
|
|
50958
|
-
// no log. The field-visible half of the same ruling is
|
|
50959
|
-
// `autoCaptureStatus: 'disabled:lateFlag'` on the capture metadata.
|
|
50960
|
-
/**
|
|
50961
|
-
* A comparable summary of what auto-capture each document asked for.
|
|
50962
|
-
*
|
|
50963
|
-
* Resolved rather than compared raw, so a caller who re-spreads an equivalent
|
|
50964
|
-
* bag every render (`autoCapture: {}`, or `{ minScore: undefined }`) does not
|
|
50965
|
-
* trip the warning — only a change that would actually have configured the
|
|
50966
|
-
* engine differently does.
|
|
50967
|
-
*
|
|
50968
|
-
* PRESENCE is preserved as `null` rather than folded into the resolved
|
|
50969
|
-
* defaults, because `undefined` -> `{}` is precisely the late-flag race this
|
|
50970
|
-
* exists to catch, and resolving both would make them identical.
|
|
50971
|
-
*/
|
|
50972
|
-
function autoCaptureSignature(documents) {
|
|
50973
|
-
return JSON.stringify(documents.map(function (document) {
|
|
50974
|
-
return document.autoCapture ? resolveAutoCapture(document.autoCapture, undefined) : null;
|
|
50975
|
-
}));
|
|
50976
|
-
}
|
|
50977
|
-
/**
|
|
50978
|
-
* Warn once if `documents`' auto-capture configuration changes after mount.
|
|
50979
|
-
*
|
|
50980
|
-
* Warns rather than reconfigures: the change genuinely has no effect, and a
|
|
50981
|
-
* caller who cannot see that is the failure mode.
|
|
50982
|
-
*/
|
|
50983
|
-
function useAutoCaptureMountGuard(documents) {
|
|
50984
|
-
var mounted = React.useRef(null);
|
|
50985
|
-
var warned = React.useRef(false);
|
|
50986
|
-
var signature = autoCaptureSignature(documents);
|
|
50987
|
-
React.useEffect(function () {
|
|
50988
|
-
if (mounted.current === null) {
|
|
50989
|
-
mounted.current = signature;
|
|
50990
|
-
return;
|
|
50991
|
-
}
|
|
50992
|
-
if (warned.current || signature === mounted.current) return;
|
|
50993
|
-
warned.current = true;
|
|
50994
|
-
warn('[DocumentCaptureFlow] `autoCapture` changed after mount and has been ' + 'ignored: the controller is built once and has no reconfigure path. ' + 'Mount this flow only once the value is known — if it comes from a ' + 'feature flag, gate the screen on the flags having loaded, not just ' + 'the session.');
|
|
50995
|
-
}, [signature]);
|
|
50996
|
-
}
|
|
50997
|
-
|
|
50998
51085
|
function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
50999
51086
|
if (view === void 0) {
|
|
51000
51087
|
view = {};
|
|
@@ -51043,15 +51130,16 @@
|
|
|
51043
51130
|
// props without being torn down and rebuilt on every render.
|
|
51044
51131
|
var documentsRef = React.useRef(documents);
|
|
51045
51132
|
documentsRef.current = documents;
|
|
51046
|
-
// `autoCapture` is mount-time-only and the controller has no reconfigure
|
|
51047
|
-
// path, so a late change is ignored — loudly rather than silently (#351).
|
|
51048
|
-
useAutoCaptureMountGuard(documents);
|
|
51049
51133
|
var capturedRef = React.useRef(onDocumentCaptured);
|
|
51050
51134
|
capturedRef.current = onDocumentCaptured;
|
|
51051
51135
|
var uploadedRef = React.useRef(onDocumentUploaded);
|
|
51052
51136
|
uploadedRef.current = onDocumentUploaded;
|
|
51053
51137
|
var completeRef = React.useRef(onComplete);
|
|
51054
51138
|
completeRef.current = onComplete;
|
|
51139
|
+
useMountOnlyWarnings('DocumentCaptureFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
51140
|
+
capture: capture,
|
|
51141
|
+
documents: documents.map(toDocumentCaptureInput)
|
|
51142
|
+
});
|
|
51055
51143
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
51056
51144
|
var latestCapture = useLatestCallbacks(capture);
|
|
51057
51145
|
var _useState = React.useState(function () {
|
|
@@ -51192,6 +51280,10 @@
|
|
|
51192
51280
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
51193
51281
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
51194
51282
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
51283
|
+
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
51284
|
+
faceCapture: selfieCaptureConfig,
|
|
51285
|
+
signatureCapture: signatureCapture
|
|
51286
|
+
});
|
|
51195
51287
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
51196
51288
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
51197
51289
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -51315,6 +51407,7 @@
|
|
|
51315
51407
|
client: client,
|
|
51316
51408
|
action: SubmissionAction.ENROLL,
|
|
51317
51409
|
submission: submission,
|
|
51410
|
+
showEnrollmentId: showDiagnostics,
|
|
51318
51411
|
theme: theme,
|
|
51319
51412
|
className: className
|
|
51320
51413
|
}, callbacks, {
|
|
@@ -51391,6 +51484,12 @@
|
|
|
51391
51484
|
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
51392
51485
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
51393
51486
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
|
|
51487
|
+
useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
51488
|
+
faceCapture: selfieCaptureConfig,
|
|
51489
|
+
idCapture: idCapture,
|
|
51490
|
+
signatureCapture: signatureCapture,
|
|
51491
|
+
videoIdCapture: videoIdCapture
|
|
51492
|
+
});
|
|
51394
51493
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
51395
51494
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
51396
51495
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -51425,7 +51524,7 @@
|
|
|
51425
51524
|
if (!active) return;
|
|
51426
51525
|
// Same rule as the signature stage's rejected decision: fall back to
|
|
51427
51526
|
// the stage set the flow would run without the opt-in, and say so.
|
|
51428
|
-
warn('[websdk-ui] captureVideoId decision rejected; using ID + face liveness', cause);
|
|
51527
|
+
warn$1('[websdk-ui] captureVideoId decision rejected; using ID + face liveness', cause);
|
|
51429
51528
|
setUseVideoId(false);
|
|
51430
51529
|
});
|
|
51431
51530
|
return function () {
|
|
@@ -51596,6 +51695,7 @@
|
|
|
51596
51695
|
client: client,
|
|
51597
51696
|
action: SubmissionAction.ENROLL,
|
|
51598
51697
|
submission: submission,
|
|
51698
|
+
showEnrollmentId: showDiagnostics,
|
|
51599
51699
|
theme: theme,
|
|
51600
51700
|
className: className
|
|
51601
51701
|
}, callbacks, {
|
|
@@ -52312,6 +52412,9 @@
|
|
|
52312
52412
|
onExitAfterFailure = _ref.onExitAfterFailure;
|
|
52313
52413
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
52314
52414
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded);
|
|
52415
|
+
useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
52416
|
+
capture: controllerCapture
|
|
52417
|
+
});
|
|
52315
52418
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
52316
52419
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
52317
52420
|
// These flows drive the live-check themselves, per capture, and read its
|
|
@@ -54993,7 +55096,7 @@
|
|
|
54993
55096
|
});
|
|
54994
55097
|
}
|
|
54995
55098
|
|
|
54996
|
-
var webSdkVersion = '2.6.3-changeset-release-develop-
|
|
55099
|
+
var webSdkVersion = '2.6.3-changeset-release-develop-eac763c';
|
|
54997
55100
|
|
|
54998
55101
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
54999
55102
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|