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
package/dist/sdk2.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ import { isWebGPUSupported, loadAndCompile, loadLiteRt, Tensor } from '@litertjs
|
|
|
18
18
|
|
|
19
19
|
// Extracted from the barrel so modules inside this package can read the
|
|
20
20
|
// version without importing index.ts (which would be circular).
|
|
21
|
-
var webSdkUiVersion = '0.5.
|
|
21
|
+
var webSdkUiVersion = '0.5.1';
|
|
22
22
|
|
|
23
23
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
24
24
|
try {
|
|
@@ -446,17 +446,17 @@ function _iterableToArrayLimit(r, l) {
|
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
function _arrayLikeToArray$
|
|
449
|
+
function _arrayLikeToArray$w(r, a) {
|
|
450
450
|
(null == a || a > r.length) && (a = r.length);
|
|
451
451
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
452
452
|
return n;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
function _unsupportedIterableToArray$
|
|
455
|
+
function _unsupportedIterableToArray$w(r, a) {
|
|
456
456
|
if (r) {
|
|
457
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
457
|
+
if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
|
|
458
458
|
var t = {}.toString.call(r).slice(8, -1);
|
|
459
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
459
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
|
|
@@ -465,11 +465,11 @@ function _nonIterableRest() {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
function _slicedToArray(r, e) {
|
|
468
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$
|
|
468
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
function _arrayWithoutHoles(r) {
|
|
472
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
472
|
+
if (Array.isArray(r)) return _arrayLikeToArray$w(r);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
function _iterableToArray(r) {
|
|
@@ -481,10 +481,10 @@ function _nonIterableSpread() {
|
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
function _toConsumableArray(r) {
|
|
484
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$
|
|
484
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
var webSdkCoreVersion = '0.5.
|
|
487
|
+
var webSdkCoreVersion = '0.5.1';
|
|
488
488
|
|
|
489
489
|
var maxTime = 86400000;
|
|
490
490
|
var maxCount = 1000000;
|
|
@@ -1256,9 +1256,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
|
|
|
1256
1256
|
({
|
|
1257
1257
|
workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
|
|
1258
1258
|
|
|
1259
|
-
function _createForOfIteratorHelperLoose$
|
|
1260
|
-
function _unsupportedIterableToArray$
|
|
1261
|
-
function _arrayLikeToArray$
|
|
1259
|
+
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."); }
|
|
1260
|
+
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; } }
|
|
1261
|
+
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1262
1262
|
var maximumBytes = 32 * 1024;
|
|
1263
1263
|
var maximumTime = 86400000;
|
|
1264
1264
|
var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
@@ -1326,7 +1326,7 @@ function validateSnapshot(report) {
|
|
|
1326
1326
|
unique(report.phaseTotals.map(function (total) {
|
|
1327
1327
|
return total.phase;
|
|
1328
1328
|
}));
|
|
1329
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1329
|
+
for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
|
|
1330
1330
|
var _total4 = _step.value;
|
|
1331
1331
|
requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
|
|
1332
1332
|
durationValid(_total4.duration);
|
|
@@ -1348,7 +1348,7 @@ function validateSnapshot(report) {
|
|
|
1348
1348
|
requireValid(report.recentTransitions.length <= 32);
|
|
1349
1349
|
var index = 0;
|
|
1350
1350
|
var atMs = 0;
|
|
1351
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1351
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
|
|
1352
1352
|
var transition = _step2.value;
|
|
1353
1353
|
requireValid(member(transitionKinds, transition.kind));
|
|
1354
1354
|
requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
|
|
@@ -1372,12 +1372,12 @@ function validateSnapshot(report) {
|
|
|
1372
1372
|
unique(report.controllerGuidanceTotals.map(function (total) {
|
|
1373
1373
|
return JSON.stringify([total.phase, total.guidance]);
|
|
1374
1374
|
}));
|
|
1375
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1375
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
|
|
1376
1376
|
var _total2 = _step3.value;
|
|
1377
1377
|
durationValid(_total2.duration);
|
|
1378
1378
|
exposureValid(_total2.phase, _total2.exposure);
|
|
1379
1379
|
}
|
|
1380
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1380
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
|
|
1381
1381
|
var _total3 = _step4.value;
|
|
1382
1382
|
durationValid(_total3.duration);
|
|
1383
1383
|
guidanceValid(_total3.phase, _total3.guidance, false);
|
|
@@ -1411,7 +1411,7 @@ function encodeProgressBatch(batch) {
|
|
|
1411
1411
|
requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
|
|
1412
1412
|
var reports = [];
|
|
1413
1413
|
var dropped = [];
|
|
1414
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1414
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
|
|
1415
1415
|
var report = _step5.value;
|
|
1416
1416
|
try {
|
|
1417
1417
|
validateSnapshot(report);
|
|
@@ -1440,9 +1440,9 @@ function encodeProgressBatch(batch) {
|
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
|
-
function _createForOfIteratorHelperLoose$
|
|
1444
|
-
function _unsupportedIterableToArray$
|
|
1445
|
-
function _arrayLikeToArray$
|
|
1443
|
+
function _createForOfIteratorHelperLoose$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1444
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
1445
|
+
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1446
1446
|
/** Visible time without progress in a capture phase that arms a stream. */
|
|
1447
1447
|
var stallMs = 20000;
|
|
1448
1448
|
var capturePhases = new Set(["id-front", "id-back", "passport", "selfie", "signature"]);
|
|
@@ -1505,7 +1505,7 @@ function createSessionActor(options, deps) {
|
|
|
1505
1505
|
var due = new Map();
|
|
1506
1506
|
var eligibilityRetries = new Map();
|
|
1507
1507
|
function dropped(report) {
|
|
1508
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
1508
|
+
for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
|
|
1509
1509
|
var stream = _step.value;
|
|
1510
1510
|
if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
|
|
1511
1511
|
report: _extends({}, stream.state.report, {
|
|
@@ -1550,7 +1550,7 @@ function createSessionActor(options, deps) {
|
|
|
1550
1550
|
var retained = new Set(queued.map(function (report) {
|
|
1551
1551
|
return report.sequence;
|
|
1552
1552
|
}));
|
|
1553
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
1553
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
|
|
1554
1554
|
var _sequence = _step2.value;
|
|
1555
1555
|
if (!retained.has(_sequence)) due["delete"](_sequence);
|
|
1556
1556
|
}
|
|
@@ -1563,7 +1563,7 @@ function createSessionActor(options, deps) {
|
|
|
1563
1563
|
var keys = new Set(reports.map(function (report) {
|
|
1564
1564
|
return report.sequence;
|
|
1565
1565
|
}));
|
|
1566
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose$
|
|
1566
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
|
|
1567
1567
|
var _step3$value = _slicedToArray(_step3.value, 2),
|
|
1568
1568
|
key = _step3$value[0],
|
|
1569
1569
|
report = _step3$value[1];
|
|
@@ -1587,14 +1587,14 @@ function createSessionActor(options, deps) {
|
|
|
1587
1587
|
if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
|
|
1588
1588
|
return report.context === context;
|
|
1589
1589
|
})) emergency = null;
|
|
1590
|
-
for (var _iterator4 = _createForOfIteratorHelperLoose$
|
|
1590
|
+
for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
|
|
1591
1591
|
var _step4$value = _slicedToArray(_step4.value, 2),
|
|
1592
1592
|
key = _step4$value[0],
|
|
1593
1593
|
report = _step4$value[1];
|
|
1594
1594
|
if (report.context === context) pending["delete"](key);
|
|
1595
1595
|
}
|
|
1596
1596
|
for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
|
|
1597
|
-
for (var _iterator5 = _createForOfIteratorHelperLoose$
|
|
1597
|
+
for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
|
|
1598
1598
|
var stream = _step5.value;
|
|
1599
1599
|
if (stream.state.report.context === context) {
|
|
1600
1600
|
stream.disposed = true;
|
|
@@ -1623,7 +1623,7 @@ function createSessionActor(options, deps) {
|
|
|
1623
1623
|
unsubscribe();
|
|
1624
1624
|
cancelTimer == null || cancelTimer();
|
|
1625
1625
|
cancelRequest == null || cancelRequest();
|
|
1626
|
-
for (var _iterator6 = _createForOfIteratorHelperLoose$
|
|
1626
|
+
for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
|
|
1627
1627
|
var stream = _step6.value;
|
|
1628
1628
|
stream.disposed = true;
|
|
1629
1629
|
}
|
|
@@ -1645,7 +1645,7 @@ function createSessionActor(options, deps) {
|
|
|
1645
1645
|
sentAtUnixMs: Math.floor(deps.unixMs()),
|
|
1646
1646
|
reports: reports
|
|
1647
1647
|
});
|
|
1648
|
-
for (var _iterator7 = _createForOfIteratorHelperLoose$
|
|
1648
|
+
for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
|
|
1649
1649
|
var report = _step7.value;
|
|
1650
1650
|
dropped(report);
|
|
1651
1651
|
removeReports([report]);
|
|
@@ -1827,14 +1827,14 @@ function createSessionActor(options, deps) {
|
|
|
1827
1827
|
retries = 0;
|
|
1828
1828
|
failureStreak = 0;
|
|
1829
1829
|
} else if (result.kind === "permanent") {
|
|
1830
|
-
for (_iterator11 = _createForOfIteratorHelperLoose$
|
|
1830
|
+
for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
|
|
1831
1831
|
report = _step11.value;
|
|
1832
1832
|
disable(report.context);
|
|
1833
1833
|
}
|
|
1834
1834
|
} else {
|
|
1835
1835
|
backoff(result);
|
|
1836
1836
|
if (++retries > 3) {
|
|
1837
|
-
for (_iterator12 = _createForOfIteratorHelperLoose$
|
|
1837
|
+
for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
|
|
1838
1838
|
_report = _step12.value;
|
|
1839
1839
|
dropped(_report);
|
|
1840
1840
|
}
|
|
@@ -1862,7 +1862,7 @@ function createSessionActor(options, deps) {
|
|
|
1862
1862
|
backoff({});
|
|
1863
1863
|
if (authorizing) failedEligibility(authorizing);
|
|
1864
1864
|
if (frozen && ++retries > 3) {
|
|
1865
|
-
for (_iterator13 = _createForOfIteratorHelperLoose$
|
|
1865
|
+
for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
|
|
1866
1866
|
_report2 = _step13.value;
|
|
1867
1867
|
dropped(_report2);
|
|
1868
1868
|
}
|
|
@@ -1917,7 +1917,7 @@ function createSessionActor(options, deps) {
|
|
|
1917
1917
|
if (outcome.kind === "committed") {
|
|
1918
1918
|
if (emergency === sending) emergency = null;
|
|
1919
1919
|
} else if (outcome.kind === "permanent") {
|
|
1920
|
-
for (var _iterator8 = _createForOfIteratorHelperLoose$
|
|
1920
|
+
for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
|
|
1921
1921
|
var report = _step8.value;
|
|
1922
1922
|
disable(report.context);
|
|
1923
1923
|
}
|
|
@@ -1986,7 +1986,7 @@ function createSessionActor(options, deps) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
function tick() {
|
|
1988
1988
|
if (disposed || visibility === "hidden") return;
|
|
1989
|
-
for (var _iterator9 = _createForOfIteratorHelperLoose$
|
|
1989
|
+
for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
|
|
1990
1990
|
var stream = _step9.value;
|
|
1991
1991
|
var report = prepareDeadline(stream);
|
|
1992
1992
|
if (!(report != null && report.current)) continue;
|
|
@@ -2017,7 +2017,7 @@ function createSessionActor(options, deps) {
|
|
|
2017
2017
|
if (disposed || visibility === "hidden") return;
|
|
2018
2018
|
var delay = Infinity;
|
|
2019
2019
|
if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
|
|
2020
|
-
for (var _iterator0 = _createForOfIteratorHelperLoose$
|
|
2020
|
+
for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
|
|
2021
2021
|
var stream = _step0.value;
|
|
2022
2022
|
var report = prepareDeadline(stream);
|
|
2023
2023
|
if (!(report != null && report.current)) continue;
|
|
@@ -2114,7 +2114,7 @@ function createSessionActor(options, deps) {
|
|
|
2114
2114
|
return guard$2(function () {
|
|
2115
2115
|
if (disposed || next === visibility) return;
|
|
2116
2116
|
visibility = next;
|
|
2117
|
-
for (var _iterator1 = _createForOfIteratorHelperLoose$
|
|
2117
|
+
for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
|
|
2118
2118
|
var stream = _step1.value;
|
|
2119
2119
|
if (stream.state.report.attemptStatus !== "active") continue;
|
|
2120
2120
|
armIfStalled(stream);
|
|
@@ -2156,7 +2156,7 @@ function createSessionActor(options, deps) {
|
|
|
2156
2156
|
if (taskDisposed) return;
|
|
2157
2157
|
taskDisposed = true;
|
|
2158
2158
|
if (workflowStream) close(workflowStream, "disposed");
|
|
2159
|
-
for (var _iterator10 = _createForOfIteratorHelperLoose$
|
|
2159
|
+
for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
|
|
2160
2160
|
var capture = _step10.value;
|
|
2161
2161
|
capture.dispose();
|
|
2162
2162
|
}
|
|
@@ -3551,9 +3551,9 @@ function blobToB64(blob) {
|
|
|
3551
3551
|
});
|
|
3552
3552
|
}
|
|
3553
3553
|
|
|
3554
|
-
function _createForOfIteratorHelperLoose$
|
|
3555
|
-
function _unsupportedIterableToArray$
|
|
3556
|
-
function _arrayLikeToArray$
|
|
3554
|
+
function _createForOfIteratorHelperLoose$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3555
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
|
|
3556
|
+
function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3557
3557
|
/**
|
|
3558
3558
|
* Parser for AAMVA (American Association of Motor Vehicle Administrators)
|
|
3559
3559
|
* PDF417 barcode data found on US and Canadian driver's licenses.
|
|
@@ -3815,7 +3815,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3815
3815
|
DAD: false
|
|
3816
3816
|
};
|
|
3817
3817
|
var daaValue = null;
|
|
3818
|
-
for (var _iterator = _createForOfIteratorHelperLoose$
|
|
3818
|
+
for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
|
|
3819
3819
|
var line = _step.value;
|
|
3820
3820
|
var match = line.match(fieldRegex);
|
|
3821
3821
|
if (match) {
|
|
@@ -3856,7 +3856,7 @@ function parseAAMVABarcode(rawData) {
|
|
|
3856
3856
|
result.fields.push(field);
|
|
3857
3857
|
}
|
|
3858
3858
|
};
|
|
3859
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose$
|
|
3859
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
|
|
3860
3860
|
_loop();
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
@@ -5926,6 +5926,131 @@ function useLatestCallbacks(config) {
|
|
|
5926
5926
|
})[0];
|
|
5927
5927
|
}
|
|
5928
5928
|
|
|
5929
|
+
// Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
|
|
5930
|
+
// try/catch) and guide_images/useGuideImages.ts (warn, for the
|
|
5931
|
+
// missing-dimensions warning). Trimmed transform vs sdk2's
|
|
5932
|
+
// lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
|
|
5933
|
+
// "no TS enum" convention, plan.md Global Constraints); numeric ordering
|
|
5934
|
+
// (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
|
|
5935
|
+
// LogLevel.X` comparisons behave identically.
|
|
5936
|
+
var noop = function noop() {};
|
|
5937
|
+
var debug = function debug() {
|
|
5938
|
+
return (noop).apply(void 0, arguments);
|
|
5939
|
+
}; // eslint-disable-line no-console
|
|
5940
|
+
var log = function log() {
|
|
5941
|
+
return (noop).apply(void 0, arguments);
|
|
5942
|
+
}; // eslint-disable-line no-console
|
|
5943
|
+
var warn = function warn() {
|
|
5944
|
+
return (console.warn ).apply(void 0, arguments);
|
|
5945
|
+
}; // eslint-disable-line no-console
|
|
5946
|
+
var error = function error() {
|
|
5947
|
+
return (console.error ).apply(void 0, arguments);
|
|
5948
|
+
}; // eslint-disable-line no-console
|
|
5949
|
+
|
|
5950
|
+
function _createForOfIteratorHelperLoose$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5951
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
5952
|
+
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5953
|
+
/**
|
|
5954
|
+
* True unless the host bundle was built for production.
|
|
5955
|
+
*
|
|
5956
|
+
* Follows the `"development"` convention that React and mainstream
|
|
5957
|
+
* bundlers use, and that `websdk-compat`'s rollup build defines. Read inside a
|
|
5958
|
+
* `try` because unbundled ESM has no `process`; that case counts as
|
|
5959
|
+
* production, so a missing define never adds console output.
|
|
5960
|
+
*/
|
|
5961
|
+
function isDevelopment() {
|
|
5962
|
+
try {
|
|
5963
|
+
return "development" !== 'production';
|
|
5964
|
+
} catch (_unused) {
|
|
5965
|
+
return false;
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
/**
|
|
5969
|
+
* Plain objects and arrays are compared field by field, so an inline literal
|
|
5970
|
+
* rebuilt every render with the same values is not a change. Anything else
|
|
5971
|
+
* (class instances, DOM nodes, blobs) is compared by identity.
|
|
5972
|
+
*/
|
|
5973
|
+
function isPlainContainer(value) {
|
|
5974
|
+
if (Array.isArray(value)) return true;
|
|
5975
|
+
if (typeof value !== 'object' || value === null) return false;
|
|
5976
|
+
var prototype = Object.getPrototypeOf(value);
|
|
5977
|
+
return prototype === Object.prototype || prototype === null;
|
|
5978
|
+
}
|
|
5979
|
+
/**
|
|
5980
|
+
* Callbacks the flows wrap with `useLatestCallbacks`: a bag's own top-level
|
|
5981
|
+
* functions and those of its `liveness` sub-bag. Replacing or removing one of
|
|
5982
|
+
* these is live. Any other function (such as `io.acquireCamera`) is a
|
|
5983
|
+
* controller dependency fixed at mount, so it compares by identity.
|
|
5984
|
+
*/
|
|
5985
|
+
var LIVE_CALLBACK_PATH = /^[^.[\]]+(\.liveness)?\.[^.[\]]+$/;
|
|
5986
|
+
/**
|
|
5987
|
+
* Every leaf whose value differs between `before` and `after`.
|
|
5988
|
+
*
|
|
5989
|
+
* A live callback's new implementation, or its removal, is not reported. A
|
|
5990
|
+
* callback ADDED after mount is, because only callbacks present at mount are
|
|
5991
|
+
* wrapped. An absent field and an explicit `undefined` are the same value.
|
|
5992
|
+
*/
|
|
5993
|
+
function mountOnlyChanges(before, after, path) {
|
|
5994
|
+
if (Object.is(before, after)) return [];
|
|
5995
|
+
if (typeof before === 'function' && (typeof after === 'function' || after === undefined) && LIVE_CALLBACK_PATH.test(path)) {
|
|
5996
|
+
return [];
|
|
5997
|
+
}
|
|
5998
|
+
if (!isPlainContainer(before) || !isPlainContainer(after) || Array.isArray(before) !== Array.isArray(after)) {
|
|
5999
|
+
return [{
|
|
6000
|
+
path: path,
|
|
6001
|
+
before: before,
|
|
6002
|
+
after: after
|
|
6003
|
+
}];
|
|
6004
|
+
}
|
|
6005
|
+
var keys = new Set([].concat(_toConsumableArray(Object.keys(before)), _toConsumableArray(Object.keys(after))));
|
|
6006
|
+
return _toConsumableArray(keys).flatMap(function (key) {
|
|
6007
|
+
return mountOnlyChanges(before[key], after[key], Array.isArray(before) ? path + "[" + key + "]" : path + "." + key);
|
|
6008
|
+
});
|
|
6009
|
+
}
|
|
6010
|
+
/**
|
|
6011
|
+
* Whether a value is small and safe enough to print. Long strings are left
|
|
6012
|
+
* out: capture bags can carry image data (`precapturedDocuments`), which is
|
|
6013
|
+
* both personal data and too large to be useful in a warning.
|
|
6014
|
+
*/
|
|
6015
|
+
var isPrintable = function isPrintable(value) {
|
|
6016
|
+
return value === null || value === undefined || typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string' && value.length <= 64;
|
|
6017
|
+
};
|
|
6018
|
+
var describe = function describe(value) {
|
|
6019
|
+
return typeof value === 'string' ? JSON.stringify(value) : String(value);
|
|
6020
|
+
};
|
|
6021
|
+
/**
|
|
6022
|
+
* In development builds, warns once per input path when a value in `inputs`
|
|
6023
|
+
* differs from its value at mount. Does nothing in production.
|
|
6024
|
+
*
|
|
6025
|
+
* `owner` names the component or hook in the message, and `remedy` finishes
|
|
6026
|
+
* the sentence "To change it, …". Pass only inputs that really are mount-only:
|
|
6027
|
+
* a live input passed here would warn about a change that did take effect.
|
|
6028
|
+
*/
|
|
6029
|
+
function useMountOnlyWarnings(owner, remedy, inputs) {
|
|
6030
|
+
var mounted = useRef(inputs);
|
|
6031
|
+
var warned = useRef(new Set());
|
|
6032
|
+
useEffect(function () {
|
|
6033
|
+
if (!isDevelopment()) return;
|
|
6034
|
+
for (var _i = 0, _Object$entries = Object.entries(inputs); _i < _Object$entries.length; _i++) {
|
|
6035
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
6036
|
+
name = _Object$entries$_i[0],
|
|
6037
|
+
value = _Object$entries$_i[1];
|
|
6038
|
+
for (var _iterator = _createForOfIteratorHelperLoose$s(mountOnlyChanges(mounted.current[name], value, name)), _step; !(_step = _iterator()).done;) {
|
|
6039
|
+
var _step$value = _step.value,
|
|
6040
|
+
path = _step$value.path,
|
|
6041
|
+
before = _step$value.before,
|
|
6042
|
+
after = _step$value.after;
|
|
6043
|
+
if (warned.current.has(path)) continue;
|
|
6044
|
+
warned.current.add(path);
|
|
6045
|
+
var values = isPrintable(before) && isPrintable(after) ? " (" + describe(before) + " \u2192 " + describe(after) + ")" : '';
|
|
6046
|
+
warn("[" + owner + "] `" + path + "` changed after mount" + values + " and was ignored: " + (owner + " reads it once, at mount. To change it, " + remedy + "."));
|
|
6047
|
+
}
|
|
6048
|
+
}
|
|
6049
|
+
});
|
|
6050
|
+
}
|
|
6051
|
+
/** The `remedy` every flow gives for a changed capture-bag field. */
|
|
6052
|
+
var FLOW_MOUNT_ONLY_REMEDY = 'remount the flow with a React `key`, or pass your own controller';
|
|
6053
|
+
|
|
5929
6054
|
var useIsomorphicLayoutEffect$1 = typeof window === 'undefined' ? useEffect : useLayoutEffect;
|
|
5930
6055
|
/**
|
|
5931
6056
|
* Uploads documents to the IDmission document service, one independent call
|
|
@@ -7788,7 +7913,7 @@ function ScalingCameraFeed(_ref2) {
|
|
|
7788
7913
|
});
|
|
7789
7914
|
}
|
|
7790
7915
|
|
|
7791
|
-
var _templateObject$_, _templateObject2$Q, _templateObject3$
|
|
7916
|
+
var _templateObject$_, _templateObject2$Q, _templateObject3$E, _templateObject4$z, _templateObject5$t, _templateObject6$l;
|
|
7792
7917
|
function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7793
7918
|
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
7794
7919
|
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -7815,7 +7940,7 @@ var ObjectDetectionDebugOverlayDiv = styled.div(_templateObject2$Q || (_template
|
|
|
7815
7940
|
var $flipX = _ref3.$flipX;
|
|
7816
7941
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
7817
7942
|
});
|
|
7818
|
-
var ObjectDetectionDebugBox = styled.div(_templateObject3$
|
|
7943
|
+
var ObjectDetectionDebugBox = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_ref4) {
|
|
7819
7944
|
var $color = _ref4.$color;
|
|
7820
7945
|
return $color != null ? $color : 'green';
|
|
7821
7946
|
}, function (_ref5) {
|
|
@@ -7826,7 +7951,7 @@ var ObjectDetectionDebugBox = styled.div(_templateObject3$D || (_templateObject3
|
|
|
7826
7951
|
return $flipX ? 'transform: scaleX(-1);' : '';
|
|
7827
7952
|
});
|
|
7828
7953
|
var darkColors = new Set(['blue', 'darkblue', 'navy', 'darkgreen', 'purple', 'maroon', 'black', 'darkred', 'indigo']);
|
|
7829
|
-
var ObjectDetectionDebugLabel = styled.span(_templateObject4$
|
|
7954
|
+
var ObjectDetectionDebugLabel = styled.span(_templateObject4$z || (_templateObject4$z = _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) {
|
|
7830
7955
|
var $color = _ref7.$color;
|
|
7831
7956
|
return $color != null ? $color : 'green';
|
|
7832
7957
|
}, function (_ref8) {
|
|
@@ -8352,13 +8477,13 @@ var PlacedGuidanceMessageContainer = function PlacedGuidanceMessageContainer(_re
|
|
|
8352
8477
|
});
|
|
8353
8478
|
};
|
|
8354
8479
|
|
|
8355
|
-
var _templateObject$V, _templateObject2$N, _templateObject3$
|
|
8480
|
+
var _templateObject$V, _templateObject2$N, _templateObject3$D, _templateObject4$y;
|
|
8356
8481
|
var wavesAnimation = keyframes(_templateObject$V || (_templateObject$V = _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"])));
|
|
8357
8482
|
var progressBarAnimation = keyframes(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
|
|
8358
|
-
keyframes(_templateObject3$
|
|
8359
|
-
keyframes(_templateObject4$
|
|
8483
|
+
keyframes(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
|
|
8484
|
+
keyframes(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
|
|
8360
8485
|
|
|
8361
|
-
var _templateObject$U, _templateObject2$M, _templateObject3$
|
|
8486
|
+
var _templateObject$U, _templateObject2$M, _templateObject3$C, _templateObject4$x, _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;
|
|
8362
8487
|
var OverlayContainer = styled.div(_templateObject$U || (_templateObject$U = _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) {
|
|
8363
8488
|
return props.theme.background ? "" + props.theme.background : "white";
|
|
8364
8489
|
}, function (props) {
|
|
@@ -8370,8 +8495,8 @@ var OverlayInner$2 = styled.div(_templateObject2$M || (_templateObject2$M = _tag
|
|
|
8370
8495
|
}, function (props) {
|
|
8371
8496
|
return props.theme.padding ? "box-sizing: border-box; padding: " + props.theme.padding + ";" : "";
|
|
8372
8497
|
});
|
|
8373
|
-
var OverlayImageContainer = styled.div(_templateObject3$
|
|
8374
|
-
var OverlayImageRow = styled.div(_templateObject4$
|
|
8498
|
+
var OverlayImageContainer = styled.div(_templateObject3$C || (_templateObject3$C = _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"])));
|
|
8499
|
+
var OverlayImageRow = styled.div(_templateObject4$x || (_templateObject4$x = _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"])));
|
|
8375
8500
|
/**
|
|
8376
8501
|
* The review screens' background. Exported so a surface that must MATCH it —
|
|
8377
8502
|
* the browser-chrome tint in `BrowserEdgeTint` — reads the same value rather
|
|
@@ -8511,30 +8636,9 @@ function evaluateIsMobile$1(nav) {
|
|
|
8511
8636
|
return false;
|
|
8512
8637
|
}
|
|
8513
8638
|
|
|
8514
|
-
// Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
|
|
8515
|
-
// try/catch) and guide_images/useGuideImages.ts (warn, for the
|
|
8516
|
-
// missing-dimensions warning). Trimmed transform vs sdk2's
|
|
8517
|
-
// lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
|
|
8518
|
-
// "no TS enum" convention, plan.md Global Constraints); numeric ordering
|
|
8519
|
-
// (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
|
|
8520
|
-
// LogLevel.X` comparisons behave identically.
|
|
8521
|
-
var noop = function noop() {};
|
|
8522
|
-
var debug = function debug() {
|
|
8523
|
-
return (noop).apply(void 0, arguments);
|
|
8524
|
-
}; // eslint-disable-line no-console
|
|
8525
|
-
var log = function log() {
|
|
8526
|
-
return (noop).apply(void 0, arguments);
|
|
8527
|
-
}; // eslint-disable-line no-console
|
|
8528
|
-
var warn = function warn() {
|
|
8529
|
-
return (console.warn ).apply(void 0, arguments);
|
|
8530
|
-
}; // eslint-disable-line no-console
|
|
8531
|
-
var error = function error() {
|
|
8532
|
-
return (console.error ).apply(void 0, arguments);
|
|
8533
|
-
}; // eslint-disable-line no-console
|
|
8534
|
-
|
|
8535
8639
|
var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
|
|
8536
8640
|
_excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
|
|
8537
|
-
var _templateObject$T, _templateObject2$L, _templateObject3$
|
|
8641
|
+
var _templateObject$T, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
8538
8642
|
var IdCardGuideImageContainer = styled(IdCardBorder)(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
|
|
8539
8643
|
return props.$isVisible ? '' : 'opacity: 0;';
|
|
8540
8644
|
}, function (props) {
|
|
@@ -8702,8 +8806,8 @@ function IdCardBorderSvg(_ref2) {
|
|
|
8702
8806
|
})]
|
|
8703
8807
|
}));
|
|
8704
8808
|
}
|
|
8705
|
-
var IdCardBorderContainer = styled.div(_templateObject3$
|
|
8706
|
-
var IdCardBorderInner = styled.div(_templateObject4$
|
|
8809
|
+
var IdCardBorderContainer = styled.div(_templateObject3$B || (_templateObject3$B = _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);
|
|
8810
|
+
var IdCardBorderInner = styled.div(_templateObject4$w || (_templateObject4$w = _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"])));
|
|
8707
8811
|
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"])));
|
|
8708
8812
|
var IdCardBorderRect = styled.rect(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n &.idmSdkProgressBorder {\n transition: stroke-dashoffset 0.3s ease-out;\n }\n"])));
|
|
8709
8813
|
// Ported dep (sdk2's video_id/IdVideoCaptureFlipIdPrompt.tsx:136-148 —
|
|
@@ -8932,7 +9036,7 @@ var Wrapper$1 = styled.div(_templateObject$S || (_templateObject$S = _taggedTemp
|
|
|
8932
9036
|
return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
|
|
8933
9037
|
});
|
|
8934
9038
|
|
|
8935
|
-
var _templateObject$R, _templateObject2$K, _templateObject3$
|
|
9039
|
+
var _templateObject$R, _templateObject2$K, _templateObject3$A, _templateObject4$v, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
|
|
8936
9040
|
var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
|
|
8937
9041
|
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;
|
|
8938
9042
|
var _ref$classNames = _ref.classNames,
|
|
@@ -9090,8 +9194,8 @@ var regionClsx = function regionClsx(classNames, which) {
|
|
|
9090
9194
|
};
|
|
9091
9195
|
var StyledPageContainer = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
|
|
9092
9196
|
var GuidesContainer = styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
|
|
9093
|
-
var GuideCenterRow = styled.div(_templateObject3$
|
|
9094
|
-
var GuideRegion = styled.div(_templateObject4$
|
|
9197
|
+
var GuideCenterRow = styled.div(_templateObject3$A || (_templateObject3$A = _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"])));
|
|
9198
|
+
var GuideRegion = styled.div(_templateObject4$v || (_templateObject4$v = _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) {
|
|
9095
9199
|
var _ref2, _props$$maskColor, _props$theme;
|
|
9096
9200
|
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;
|
|
9097
9201
|
}, function (props) {
|
|
@@ -9121,7 +9225,7 @@ var GuideCenterInner = styled.div(_templateObject9$c || (_templateObject9$c = _t
|
|
|
9121
9225
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
9122
9226
|
var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
|
|
9123
9227
|
|
|
9124
|
-
var _templateObject$Q, _templateObject2$J, _templateObject3$
|
|
9228
|
+
var _templateObject$Q, _templateObject2$J, _templateObject3$z, _templateObject4$u;
|
|
9125
9229
|
var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
|
|
9126
9230
|
var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
|
|
9127
9231
|
var aspectRatio = _ref.aspectRatio,
|
|
@@ -9362,7 +9466,7 @@ var CanvasWrapper$1 = styled.div(_templateObject$Q || (_templateObject$Q = _tagg
|
|
|
9362
9466
|
return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
|
|
9363
9467
|
});
|
|
9364
9468
|
var Canvas$2 = styled.canvas(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
9365
|
-
var CaptureAreaProgress = styled.div(_templateObject3$
|
|
9469
|
+
var CaptureAreaProgress = styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
|
|
9366
9470
|
return props.$x;
|
|
9367
9471
|
}, function (props) {
|
|
9368
9472
|
return props.$y;
|
|
@@ -9371,7 +9475,7 @@ var CaptureAreaProgress = styled.div(_templateObject3$y || (_templateObject3$y =
|
|
|
9371
9475
|
}, function (props) {
|
|
9372
9476
|
return props.$height;
|
|
9373
9477
|
});
|
|
9374
|
-
var GuideBoxLayer = styled(CaptureAreaProgress)(_templateObject4$
|
|
9478
|
+
var GuideBoxLayer = styled(CaptureAreaProgress)(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n z-index: 1000;\n"])));
|
|
9375
9479
|
/** The mask colour when neither the prop nor the theme sets one. */
|
|
9376
9480
|
var FIT_GUIDE_MASK_DEFAULT = '#708090';
|
|
9377
9481
|
|
|
@@ -9440,7 +9544,7 @@ var ExitCaptureButton = function ExitCaptureButton(_ref) {
|
|
|
9440
9544
|
});
|
|
9441
9545
|
};
|
|
9442
9546
|
|
|
9443
|
-
var _templateObject$O, _templateObject2$I, _templateObject3$
|
|
9547
|
+
var _templateObject$O, _templateObject2$I, _templateObject3$y, _templateObject4$t;
|
|
9444
9548
|
function IdCaptureLoadingGraphic(props) {
|
|
9445
9549
|
var isMobile = window.innerHeight > window.innerWidth;
|
|
9446
9550
|
return isMobile ? jsx(IdCaptureLoadingGraphicMobile, _extends({}, props)) : jsx(IdCaptureLoadingGraphicDesktop, _extends({}, props));
|
|
@@ -9945,10 +10049,10 @@ var LoadingGraphicSvg = styled.svg(_templateObject2$I || (_templateObject2$I = _
|
|
|
9945
10049
|
}, function (props) {
|
|
9946
10050
|
return props.$borderColor;
|
|
9947
10051
|
});
|
|
9948
|
-
var LoadingGraphicCardGroup = styled.g(_templateObject3$
|
|
10052
|
+
var LoadingGraphicCardGroup = styled.g(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
9949
10053
|
return props.$offScreen ? '-500px' : '0';
|
|
9950
10054
|
});
|
|
9951
|
-
var LoadingGraphicPhoneGroup = styled.g(_templateObject4$
|
|
10055
|
+
var LoadingGraphicPhoneGroup = styled.g(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
|
|
9952
10056
|
return props.$offScreen ? '40px' : '0';
|
|
9953
10057
|
});
|
|
9954
10058
|
|
|
@@ -10206,7 +10310,7 @@ function CustomerLoadingSpinner(_ref2) {
|
|
|
10206
10310
|
// parent's gap/padding, which would offset the fallback it sits next to.
|
|
10207
10311
|
var SpinnerSlot = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
|
|
10208
10312
|
|
|
10209
|
-
var _templateObject$M, _templateObject2$H, _templateObject3$
|
|
10313
|
+
var _templateObject$M, _templateObject2$H, _templateObject3$x, _templateObject4$s, _templateObject5$p;
|
|
10210
10314
|
var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
|
|
10211
10315
|
// Module-level so the default `now` prop has a stable identity across
|
|
10212
10316
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -10409,14 +10513,14 @@ var ButtonsRow$1 = styled(LoadingOverlayButtonsRow)(_templateObject2$H || (_temp
|
|
|
10409
10513
|
var _props$theme4, _props$theme5;
|
|
10410
10514
|
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) + ";" : '';
|
|
10411
10515
|
});
|
|
10412
|
-
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(_templateObject3$
|
|
10516
|
+
var ProgressBarBackground$1 = styled(LoadingOverlayProgressBarBackground)(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
10413
10517
|
var _props$theme$idCaptur4, _props$theme6;
|
|
10414
10518
|
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;
|
|
10415
10519
|
}, function (props) {
|
|
10416
10520
|
var _props$theme$idCaptur5, _props$theme7;
|
|
10417
10521
|
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;
|
|
10418
10522
|
});
|
|
10419
|
-
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(_templateObject4$
|
|
10523
|
+
var ProgressIndicator$1 = styled(LoadingOverlayProgressIndicator)(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
|
|
10420
10524
|
var _props$theme$idCaptur6, _props$theme8;
|
|
10421
10525
|
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;
|
|
10422
10526
|
});
|
|
@@ -19061,7 +19165,7 @@ function instructionVerbiage(bag, code) {
|
|
|
19061
19165
|
return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
|
|
19062
19166
|
}
|
|
19063
19167
|
|
|
19064
|
-
var _templateObject$L, _templateObject2$G, _templateObject3$
|
|
19168
|
+
var _templateObject$L, _templateObject2$G, _templateObject3$w, _templateObject4$r, _templateObject5$o;
|
|
19065
19169
|
var PDF417_ASPECT_RATIO = 3 / 1;
|
|
19066
19170
|
function BarcodeGuideOverlay(_ref) {
|
|
19067
19171
|
var _ref$aspectRatio = _ref.aspectRatio,
|
|
@@ -19193,15 +19297,15 @@ function BarcodeGuideOverlay(_ref) {
|
|
|
19193
19297
|
}
|
|
19194
19298
|
var Wrapper = styled.div(_templateObject$L || (_templateObject$L = _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"])));
|
|
19195
19299
|
var Canvas$1 = styled.canvas(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
|
|
19196
|
-
var TextOverlay = styled.div(_templateObject3$
|
|
19197
|
-
var HeaderText = styled.div(_templateObject4$
|
|
19300
|
+
var TextOverlay = 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 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"])));
|
|
19301
|
+
var HeaderText = styled.div(_templateObject4$r || (_templateObject4$r = _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"])));
|
|
19198
19302
|
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"])));
|
|
19199
19303
|
|
|
19200
|
-
var _templateObject$K, _templateObject2$F, _templateObject3$
|
|
19304
|
+
var _templateObject$K, _templateObject2$F, _templateObject3$v, _templateObject4$q, _templateObject5$n, _templateObject6$h;
|
|
19201
19305
|
var scaleIn = keyframes(_templateObject$K || (_templateObject$K = _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"])));
|
|
19202
19306
|
var drawCheck = keyframes(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
|
|
19203
|
-
styled.div(_templateObject3$
|
|
19204
|
-
styled.div(_templateObject4$
|
|
19307
|
+
styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
|
|
19308
|
+
styled.div(_templateObject4$q || (_templateObject4$q = _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) {
|
|
19205
19309
|
return props.$color;
|
|
19206
19310
|
}, scaleIn);
|
|
19207
19311
|
styled.svg(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 48px;\n height: 48px;\n"])));
|
|
@@ -19299,7 +19403,7 @@ function IdCaptureGuides(_ref) {
|
|
|
19299
19403
|
});
|
|
19300
19404
|
}
|
|
19301
19405
|
|
|
19302
|
-
var _templateObject$J, _templateObject2$E, _templateObject3$
|
|
19406
|
+
var _templateObject$J, _templateObject2$E, _templateObject3$u, _templateObject4$p, _templateObject5$m;
|
|
19303
19407
|
function OverrideWrongDocumentTypeDialog(_ref) {
|
|
19304
19408
|
var visible = _ref.visible,
|
|
19305
19409
|
onOverride = _ref.onOverride,
|
|
@@ -19339,8 +19443,8 @@ var Container$3 = styled.div(_templateObject$J || (_templateObject$J = _taggedTe
|
|
|
19339
19443
|
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';
|
|
19340
19444
|
});
|
|
19341
19445
|
var InnerContainer = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
|
|
19342
|
-
var Message = styled.span(_templateObject3$
|
|
19343
|
-
var ButtonContainer = styled.div(_templateObject4$
|
|
19446
|
+
var Message = styled.span(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
|
|
19447
|
+
var ButtonContainer = styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
|
|
19344
19448
|
var Button = styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
|
|
19345
19449
|
|
|
19346
19450
|
var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref) {
|
|
@@ -19509,7 +19613,7 @@ var selectRingStatusKey = function selectRingStatusKey(_ref) {
|
|
|
19509
19613
|
return 'warming';
|
|
19510
19614
|
};
|
|
19511
19615
|
|
|
19512
|
-
var _templateObject$H, _templateObject2$C, _templateObject3$
|
|
19616
|
+
var _templateObject$H, _templateObject2$C, _templateObject3$t, _templateObject4$o, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9;
|
|
19513
19617
|
/**
|
|
19514
19618
|
* The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
|
|
19515
19619
|
* badge, title/subtitle, step chips, reassurance chip, "Enable camera &
|
|
@@ -19589,12 +19693,12 @@ var RingIntroScreen = function RingIntroScreen(_ref) {
|
|
|
19589
19693
|
};
|
|
19590
19694
|
var _float = keyframes(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
|
|
19591
19695
|
var IntroLayout = styled.div(_templateObject2$C || (_templateObject2$C = _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"])));
|
|
19592
|
-
var Badge = styled.div(_templateObject3$
|
|
19696
|
+
var Badge = styled.div(_templateObject3$t || (_templateObject3$t = _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) {
|
|
19593
19697
|
return props.$color;
|
|
19594
19698
|
}, function (props) {
|
|
19595
19699
|
return props.$color;
|
|
19596
19700
|
}, _float);
|
|
19597
|
-
var Title$4 = styled.div(_templateObject4$
|
|
19701
|
+
var Title$4 = styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n font-size: 22px;\n font-weight: 700;\n"])));
|
|
19598
19702
|
var Subtitle$3 = styled.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n opacity: 0.65;\n line-height: 1.5;\n"])));
|
|
19599
19703
|
var Steps = styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 26px;\n margin: 16px 0 6px;\n"])));
|
|
19600
19704
|
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"])));
|
|
@@ -19635,7 +19739,7 @@ var selectRingOverlayStage = function selectRingOverlayStage(_ref) {
|
|
|
19635
19739
|
return requesting ? 'requesting' : 'intro';
|
|
19636
19740
|
};
|
|
19637
19741
|
|
|
19638
|
-
var _templateObject$G, _templateObject2$B, _templateObject3$
|
|
19742
|
+
var _templateObject$G, _templateObject2$B, _templateObject3$s, _templateObject4$n, _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;
|
|
19639
19743
|
/** Minimum time a stage handoff stays on screen so its message is
|
|
19640
19744
|
* legible even when everything preloaded and readiness is instant. */
|
|
19641
19745
|
var STAGE_TRANSITION_HOLD_MS = 1600;
|
|
@@ -19696,8 +19800,8 @@ var RingStageTransition = function RingStageTransition(_ref) {
|
|
|
19696
19800
|
};
|
|
19697
19801
|
var badgePop = keyframes(_templateObject$G || (_templateObject$G = _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"])));
|
|
19698
19802
|
var cardFlip = keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
|
|
19699
|
-
var microcopyBeat = keyframes(_templateObject3$
|
|
19700
|
-
var rise = keyframes(_templateObject4$
|
|
19803
|
+
var microcopyBeat = keyframes(_templateObject3$s || (_templateObject3$s = _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"])));
|
|
19804
|
+
var rise = keyframes(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
|
|
19701
19805
|
var riseSubtle = keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
|
|
19702
19806
|
var TransitionLayout = styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n"])));
|
|
19703
19807
|
/* The drop shadow lives on the static parent: filter on the flipping card
|
|
@@ -19726,7 +19830,7 @@ var LoadingRow = styled.div(_templateObject15$4 || (_templateObject15$4 = _tagge
|
|
|
19726
19830
|
return props.$visible ? 1 : 0;
|
|
19727
19831
|
});
|
|
19728
19832
|
|
|
19729
|
-
var _templateObject$F, _templateObject2$A, _templateObject3$
|
|
19833
|
+
var _templateObject$F, _templateObject2$A, _templateObject3$r, _templateObject4$m, _templateObject5$j, _templateObject6$e, _templateObject7$c;
|
|
19730
19834
|
// Module-level so the default `now` prop has a stable identity across
|
|
19731
19835
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
19732
19836
|
var defaultNow$2 = function defaultNow() {
|
|
@@ -20009,9 +20113,9 @@ var RingOverlayInner$1 = styled(LoadingOverlayInner)(_templateObject2$A || (_tem
|
|
|
20009
20113
|
var _props$theme$idCaptur2, _props$theme2;
|
|
20010
20114
|
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';
|
|
20011
20115
|
}, function (props) {
|
|
20012
|
-
return props.$softEntry ? css(_templateObject3$
|
|
20116
|
+
return props.$softEntry ? css(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn$1) : '';
|
|
20013
20117
|
});
|
|
20014
|
-
var RingLayout$1 = styled.div(_templateObject4$
|
|
20118
|
+
var RingLayout$1 = styled.div(_templateObject4$m || (_templateObject4$m = _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"])));
|
|
20015
20119
|
var StatusLine$1 = styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
|
|
20016
20120
|
var SubText$1 = styled.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
|
|
20017
20121
|
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) {
|
|
@@ -20109,7 +20213,7 @@ var _templateObject$E, _templateObject2$z;
|
|
|
20109
20213
|
var Card = styled.div(_templateObject$E || (_templateObject$E = _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"])));
|
|
20110
20214
|
var FlexCard = styled(Card)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
|
|
20111
20215
|
|
|
20112
|
-
var _templateObject$D, _templateObject2$y, _templateObject3$
|
|
20216
|
+
var _templateObject$D, _templateObject2$y, _templateObject3$q, _templateObject4$l, _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;
|
|
20113
20217
|
function ReviewDocumentDiagnostics(_ref) {
|
|
20114
20218
|
var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
|
|
20115
20219
|
var document = _ref.document,
|
|
@@ -20570,8 +20674,8 @@ function RotationAttemptRow(_ref3) {
|
|
|
20570
20674
|
}
|
|
20571
20675
|
var DebugInfoContainer = styled.div(_templateObject$D || (_templateObject$D = _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"])));
|
|
20572
20676
|
var DebugSection = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
|
|
20573
|
-
var DebugLabel = styled.span(_templateObject3$
|
|
20574
|
-
var DebugValue = styled.span(_templateObject4$
|
|
20677
|
+
var DebugLabel = styled.span(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
|
|
20678
|
+
var DebugValue = styled.span(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
|
|
20575
20679
|
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) {
|
|
20576
20680
|
var $score = _ref4.$score,
|
|
20577
20681
|
$type = _ref4.$type;
|
|
@@ -20684,7 +20788,7 @@ var DiagnosticsBadge = styled.span(_templateObject44 || (_templateObject44 = _ta
|
|
|
20684
20788
|
return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
|
|
20685
20789
|
});
|
|
20686
20790
|
|
|
20687
|
-
var _templateObject$C, _templateObject2$x, _templateObject3$
|
|
20791
|
+
var _templateObject$C, _templateObject2$x, _templateObject3$p, _templateObject4$k, _templateObject5$h;
|
|
20688
20792
|
var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
|
|
20689
20793
|
var ReviewScreen = function ReviewScreen(_ref) {
|
|
20690
20794
|
var capturedDocuments = _ref.capturedDocuments,
|
|
@@ -20777,11 +20881,11 @@ var ReviewScreen = function ReviewScreen(_ref) {
|
|
|
20777
20881
|
};
|
|
20778
20882
|
var Heading$9 = styled.h1(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
|
|
20779
20883
|
var ImagesContainer = styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
|
|
20780
|
-
var ImageRow = styled(OverlayImageRow)(_templateObject3$
|
|
20781
|
-
var ImageCol$1 = styled.div(_templateObject4$
|
|
20884
|
+
var ImageRow = styled(OverlayImageRow)(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
|
|
20885
|
+
var ImageCol$1 = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
|
|
20782
20886
|
var StyledImage = styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
|
|
20783
20887
|
|
|
20784
|
-
var _templateObject$B, _templateObject2$w, _templateObject3$
|
|
20888
|
+
var _templateObject$B, _templateObject2$w, _templateObject3$o, _templateObject4$j;
|
|
20785
20889
|
var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
20786
20890
|
var _assets$imageUrl, _classNames$container;
|
|
20787
20891
|
var onRetry = _ref.onRetry,
|
|
@@ -20842,10 +20946,10 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
|
|
|
20842
20946
|
};
|
|
20843
20947
|
var StyledOverlayInner$2 = styled(OverlayInner$2)(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
|
|
20844
20948
|
var StyledOverlayImageContainer = styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
|
|
20845
|
-
var Description$3 = styled.p(_templateObject3$
|
|
20846
|
-
var RetryButton$1 = styled(LoaderButton)(_templateObject4$
|
|
20949
|
+
var Description$3 = styled.p(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
|
|
20950
|
+
var RetryButton$1 = styled(LoaderButton)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
|
|
20847
20951
|
|
|
20848
|
-
var _templateObject$A, _templateObject2$v, _templateObject3$
|
|
20952
|
+
var _templateObject$A, _templateObject2$v, _templateObject3$n;
|
|
20849
20953
|
var ErrorScreen = function ErrorScreen(_ref) {
|
|
20850
20954
|
var error = _ref.error,
|
|
20851
20955
|
onRetry = _ref.onRetry,
|
|
@@ -21038,7 +21142,7 @@ var cameraFailureClassNames = function cameraFailureClassNames(own, bag) {
|
|
|
21038
21142
|
// same here rather than inherit a foreground meant for the dark overlays.
|
|
21039
21143
|
var ErrorCard = styled(FlexCard)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
|
|
21040
21144
|
var Heading$8 = styled.h1(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
|
|
21041
|
-
var Description$2 = styled.p(_templateObject3$
|
|
21145
|
+
var Description$2 = styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
|
|
21042
21146
|
|
|
21043
21147
|
function reasonFor(code) {
|
|
21044
21148
|
if (code === 'CAMERA_PERMISSION_DENIED') return 'permissionDenied';
|
|
@@ -21107,7 +21211,7 @@ function fallbackCaptureMoreLabelForStep(idCaptureRequirement, idCardBackCapture
|
|
|
21107
21211
|
return key === 'third' ? 'ID page of passport' : 'back of ID card';
|
|
21108
21212
|
}
|
|
21109
21213
|
|
|
21110
|
-
var _templateObject$z, _templateObject2$u, _templateObject3$
|
|
21214
|
+
var _templateObject$z, _templateObject2$u, _templateObject3$m, _templateObject4$i, _templateObject5$g, _templateObject6$c, _templateObject7$a;
|
|
21111
21215
|
function IdCaptureFallback(_ref) {
|
|
21112
21216
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21113
21217
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21278,13 +21382,13 @@ function IdCaptureFallback(_ref) {
|
|
|
21278
21382
|
}
|
|
21279
21383
|
var StyledOverlayInner$1 = styled(OverlayInner$2)(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
21280
21384
|
var Heading$7 = styled.h3(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21281
|
-
var Description$1 = styled.p(_templateObject3$
|
|
21282
|
-
var Instruction = styled.p(_templateObject4$
|
|
21385
|
+
var Description$1 = styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
21386
|
+
var Instruction = styled.p(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21283
21387
|
var ReadFailed$1 = styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
|
|
21284
21388
|
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"])));
|
|
21285
21389
|
var StyledButtonsRow$6 = styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
21286
21390
|
|
|
21287
|
-
var _templateObject$y, _templateObject2$t, _templateObject3$
|
|
21391
|
+
var _templateObject$y, _templateObject2$t, _templateObject3$l, _templateObject4$h, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
|
|
21288
21392
|
function IdCaptureOrUploadScreen(_ref) {
|
|
21289
21393
|
var _ref$captureRequireme = _ref.captureRequirement,
|
|
21290
21394
|
captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
|
|
@@ -21536,8 +21640,8 @@ var ScreenContainer = styled.div(_templateObject$y || (_templateObject$y = _tagg
|
|
|
21536
21640
|
return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
21537
21641
|
});
|
|
21538
21642
|
var ScreenPanel = styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
|
|
21539
|
-
var DashedSeparator = styled.div(_templateObject3$
|
|
21540
|
-
var OrWrapper = styled.span(_templateObject4$
|
|
21643
|
+
var DashedSeparator = styled.div(_templateObject3$l || (_templateObject3$l = _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"])));
|
|
21644
|
+
var OrWrapper = styled.span(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
|
|
21541
21645
|
var _props$theme$backgrou2, _props$theme2;
|
|
21542
21646
|
return (_props$theme$backgrou2 = (_props$theme2 = props.theme) == null ? void 0 : _props$theme2.background) != null ? _props$theme$backgrou2 : '#fff';
|
|
21543
21647
|
});
|
|
@@ -26103,7 +26207,7 @@ function SelfieCameraFeed(_ref) {
|
|
|
26103
26207
|
});
|
|
26104
26208
|
}
|
|
26105
26209
|
|
|
26106
|
-
var _templateObject$v, _templateObject2$s, _templateObject3$
|
|
26210
|
+
var _templateObject$v, _templateObject2$s, _templateObject3$k, _templateObject4$g;
|
|
26107
26211
|
var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
|
|
26108
26212
|
_excluded2$4 = ["status", "guideStyle"],
|
|
26109
26213
|
_excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
|
|
@@ -26242,8 +26346,8 @@ function HeadGuide(_ref2) {
|
|
|
26242
26346
|
}))]
|
|
26243
26347
|
});
|
|
26244
26348
|
}
|
|
26245
|
-
var AbsoluteSvg = styled.svg(_templateObject3$
|
|
26246
|
-
var RelativeSvgContainer = styled.div(_templateObject4$
|
|
26349
|
+
var AbsoluteSvg = styled.svg(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n"])));
|
|
26350
|
+
var RelativeSvgContainer = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 100%;\n display: flex;\n align-items: ", ";\n"])), function (props) {
|
|
26247
26351
|
return props.$verticalAlign === 'bottom' ? 'flex-end' : 'center';
|
|
26248
26352
|
});
|
|
26249
26353
|
function SelfieCaptureAnimatedMask(_ref3) {
|
|
@@ -26806,7 +26910,7 @@ function SelfieCaptureLoadingGraphic(_ref) {
|
|
|
26806
26910
|
});
|
|
26807
26911
|
}
|
|
26808
26912
|
|
|
26809
|
-
var _templateObject$t, _templateObject2$q, _templateObject3$
|
|
26913
|
+
var _templateObject$t, _templateObject2$q, _templateObject3$j, _templateObject4$f, _templateObject5$e;
|
|
26810
26914
|
var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
|
|
26811
26915
|
// Module-level so the default `now` prop has a stable identity across
|
|
26812
26916
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
@@ -26991,14 +27095,14 @@ var ButtonsRow = styled(LoadingOverlayButtonsRow)(_templateObject2$q || (_templa
|
|
|
26991
27095
|
var _props$theme4, _props$theme5;
|
|
26992
27096
|
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) + ";" : '';
|
|
26993
27097
|
});
|
|
26994
|
-
var ProgressBarBackground = styled(LoadingOverlayProgressBarBackground)(_templateObject3$
|
|
27098
|
+
var ProgressBarBackground = styled(LoadingOverlayProgressBarBackground)(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
|
|
26995
27099
|
var _props$theme$selfieCa4, _props$theme6;
|
|
26996
27100
|
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;
|
|
26997
27101
|
}, function (props) {
|
|
26998
27102
|
var _props$theme$selfieCa5, _props$theme7;
|
|
26999
27103
|
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;
|
|
27000
27104
|
});
|
|
27001
|
-
var ProgressIndicator = styled(LoadingOverlayProgressIndicator)(_templateObject4$
|
|
27105
|
+
var ProgressIndicator = styled(LoadingOverlayProgressIndicator)(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
|
|
27002
27106
|
var _props$theme$selfieCa6, _props$theme8;
|
|
27003
27107
|
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;
|
|
27004
27108
|
});
|
|
@@ -27122,7 +27226,7 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
|
|
|
27122
27226
|
var StyledGuidanceMessage = styled(GuidanceMessage)(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
|
|
27123
27227
|
var StyledButtonsRow$5 = styled(ButtonsRow$2)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
|
|
27124
27228
|
|
|
27125
|
-
var _templateObject$r, _templateObject2$o, _templateObject3$
|
|
27229
|
+
var _templateObject$r, _templateObject2$o, _templateObject3$i, _templateObject4$e, _templateObject5$d, _templateObject6$a, _templateObject7$8;
|
|
27126
27230
|
// Module-level so the default `now` prop has a stable identity across
|
|
27127
27231
|
// renders (it sits in useModelWarmingElapsedMs's effect dependency array).
|
|
27128
27232
|
var defaultNow = function defaultNow() {
|
|
@@ -27389,9 +27493,9 @@ var RingOverlayInner = styled(LoadingOverlayInner)(_templateObject2$o || (_templ
|
|
|
27389
27493
|
var _props$theme$selfieCa2, _props$theme2;
|
|
27390
27494
|
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';
|
|
27391
27495
|
}, function (props) {
|
|
27392
|
-
return props.$softEntry ? css(_templateObject3$
|
|
27496
|
+
return props.$softEntry ? css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn) : '';
|
|
27393
27497
|
});
|
|
27394
|
-
var RingLayout = styled.div(_templateObject4$
|
|
27498
|
+
var RingLayout = styled.div(_templateObject4$e || (_templateObject4$e = _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"])));
|
|
27395
27499
|
var StatusLine = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
|
|
27396
27500
|
var SubText = styled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
|
|
27397
27501
|
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) {
|
|
@@ -27423,7 +27527,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
|
|
|
27423
27527
|
return jsx(Component, _extends({}, props));
|
|
27424
27528
|
};
|
|
27425
27529
|
|
|
27426
|
-
var _templateObject$q, _templateObject2$n, _templateObject3$
|
|
27530
|
+
var _templateObject$q, _templateObject2$n, _templateObject3$h, _templateObject4$d, _templateObject5$c, _templateObject6$9;
|
|
27427
27531
|
function SelfieCaptureFallback(_ref) {
|
|
27428
27532
|
var _ref$silentFallback = _ref.silentFallback,
|
|
27429
27533
|
silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
|
|
@@ -27579,8 +27683,8 @@ function SelfieCaptureFallback(_ref) {
|
|
|
27579
27683
|
}
|
|
27580
27684
|
var StyledOverlayInner = styled(OverlayInner$2)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
|
|
27581
27685
|
var Heading$6 = styled.h1(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
|
|
27582
|
-
var Description = styled.p(_templateObject3$
|
|
27583
|
-
var ImageContainer$4 = styled.div(_templateObject4$
|
|
27686
|
+
var Description = styled.p(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
|
|
27687
|
+
var ImageContainer$4 = styled.div(_templateObject4$d || (_templateObject4$d = _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"])));
|
|
27584
27688
|
var ReadFailed = styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
|
|
27585
27689
|
var StyledButtonsRow$4 = styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
|
|
27586
27690
|
|
|
@@ -32396,7 +32500,7 @@ function useSignatureCapture(controller) {
|
|
|
32396
32500
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
32397
32501
|
}
|
|
32398
32502
|
|
|
32399
|
-
var _templateObject$j, _templateObject2$j, _templateObject3$
|
|
32503
|
+
var _templateObject$j, _templateObject2$j, _templateObject3$g, _templateObject4$c, _templateObject5$b, _templateObject6$8;
|
|
32400
32504
|
var _excluded$a = ["device", "frameDecode"];
|
|
32401
32505
|
var ASSUMED_TRIM_PADDING = {
|
|
32402
32506
|
startMs: TRIM_PADDING_START_MS,
|
|
@@ -32677,8 +32781,8 @@ function Row$1(_ref1) {
|
|
|
32677
32781
|
var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
|
|
32678
32782
|
var Panel = styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n width: min(720px, 90vw);\n margin-top: 0.75rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 6px;\n text-align: left;\n overflow-x: auto;\n"])));
|
|
32679
32783
|
var Table = styled.table(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
|
|
32680
|
-
var SectionCell = styled.th(_templateObject3$
|
|
32681
|
-
var LabelCell = styled.td(_templateObject4$
|
|
32784
|
+
var SectionCell = styled.th(_templateObject3$g || (_templateObject3$g = _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"])));
|
|
32785
|
+
var LabelCell = styled.td(_templateObject4$c || (_templateObject4$c = _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"])));
|
|
32682
32786
|
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) {
|
|
32683
32787
|
return props.$suspect ? '#842029' : '#212529';
|
|
32684
32788
|
}, function (props) {
|
|
@@ -32686,7 +32790,7 @@ var ValueCell = styled.td(_templateObject5$b || (_templateObject5$b = _taggedTem
|
|
|
32686
32790
|
});
|
|
32687
32791
|
var Note = styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
|
|
32688
32792
|
|
|
32689
|
-
var _templateObject$i, _templateObject2$i, _templateObject3$
|
|
32793
|
+
var _templateObject$i, _templateObject2$i, _templateObject3$f, _templateObject4$b, _templateObject5$a;
|
|
32690
32794
|
function MessageOverlay(_ref) {
|
|
32691
32795
|
var heading = _ref.heading,
|
|
32692
32796
|
children = _ref.children,
|
|
@@ -32908,11 +33012,11 @@ function SubmissionErrorOverlay(_ref1) {
|
|
|
32908
33012
|
}
|
|
32909
33013
|
var CenteredInner = styled(OverlayInner$2)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n max-width: 640px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 32px;\n"])));
|
|
32910
33014
|
var Content = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
|
|
32911
|
-
var Details = styled.p(_templateObject3$
|
|
32912
|
-
var PermissionImage = styled(OverlayImageContainer)(_templateObject4$
|
|
33015
|
+
var Details = styled.p(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
|
|
33016
|
+
var PermissionImage = styled(OverlayImageContainer)(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
|
|
32913
33017
|
var RetryButton = styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
|
|
32914
33018
|
|
|
32915
|
-
var _templateObject$h, _templateObject2$h, _templateObject3$
|
|
33019
|
+
var _templateObject$h, _templateObject2$h, _templateObject3$e, _templateObject4$a, _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;
|
|
32916
33020
|
var FALLBACKS = {
|
|
32917
33021
|
headingText: "Please sign the box below",
|
|
32918
33022
|
signHereText: "Sign here",
|
|
@@ -33507,10 +33611,10 @@ var LiveDiagnostics = styled.div(_templateObject2$h || (_templateObject2$h = _ta
|
|
|
33507
33611
|
* screen's bezel and matches the letterbox bars the KYC flow shows while the
|
|
33508
33612
|
* camera is up.
|
|
33509
33613
|
*/
|
|
33510
|
-
var CameraLayer$1 = styled.div(_templateObject3$
|
|
33614
|
+
var CameraLayer$1 = styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n overflow: hidden;\n background: #000;\n"])), function (props) {
|
|
33511
33615
|
return props.$visible ? "flex" : "none";
|
|
33512
33616
|
});
|
|
33513
|
-
var CaptureContent = styled.div(_templateObject4$
|
|
33617
|
+
var CaptureContent = styled.div(_templateObject4$a || (_templateObject4$a = _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) {
|
|
33514
33618
|
return props.$visible ? "flex" : "none";
|
|
33515
33619
|
}, function (props) {
|
|
33516
33620
|
return props.$legacyVideoLayout ? "0" : "16px";
|
|
@@ -35021,7 +35125,7 @@ function useVideoIdCapture(controller) {
|
|
|
35021
35125
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
35022
35126
|
}
|
|
35023
35127
|
|
|
35024
|
-
var _templateObject$g, _templateObject2$g, _templateObject3$
|
|
35128
|
+
var _templateObject$g, _templateObject2$g, _templateObject3$d, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
|
|
35025
35129
|
/**
|
|
35026
35130
|
* The combined face-over-document guide used by SDK2's Video ID recording
|
|
35027
35131
|
* stage. Unlike the standalone ID overlay, both subjects remain framed in a
|
|
@@ -35237,8 +35341,8 @@ var Container = styled.div(_templateObject$g || (_templateObject$g = _taggedTemp
|
|
|
35237
35341
|
return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
|
|
35238
35342
|
});
|
|
35239
35343
|
var Inner$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
|
|
35240
|
-
var FaceGuideContainer = styled.div(_templateObject3$
|
|
35241
|
-
var IdCardGuideContainer = styled.div(_templateObject4$
|
|
35344
|
+
var FaceGuideContainer = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
|
|
35345
|
+
var IdCardGuideContainer = styled.div(_templateObject4$9 || (_templateObject4$9 = _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"])));
|
|
35242
35346
|
var IdCardGuideInner = styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
|
|
35243
35347
|
var StyledIdCardGuideImageContainer = styled(IdCardGuideImageContainer)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n width: auto;\n height: 100%;\n"])));
|
|
35244
35348
|
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"])));
|
|
@@ -35267,7 +35371,7 @@ var VIDEO_ID_FALLBACKS = {
|
|
|
35267
35371
|
};
|
|
35268
35372
|
(_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);
|
|
35269
35373
|
|
|
35270
|
-
var _templateObject$f, _templateObject2$f, _templateObject3$
|
|
35374
|
+
var _templateObject$f, _templateObject2$f, _templateObject3$c, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
|
|
35271
35375
|
function VideoIdCaptureView(props) {
|
|
35272
35376
|
var _props$lang;
|
|
35273
35377
|
return jsx(SdkLanguageProvider, {
|
|
@@ -35618,8 +35722,8 @@ var Root$1 = styled.div(_templateObject$f || (_templateObject$f = _taggedTemplat
|
|
|
35618
35722
|
var CameraLayer = styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
|
|
35619
35723
|
return props.$visible ? 'flex' : 'none';
|
|
35620
35724
|
});
|
|
35621
|
-
var ReadTextPrompt = styled.div(_templateObject3$
|
|
35622
|
-
var ReadTextHeading = styled.h3(_templateObject4$
|
|
35725
|
+
var ReadTextPrompt = styled.div(_templateObject3$c || (_templateObject3$c = _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"])));
|
|
35726
|
+
var ReadTextHeading = styled.h3(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n"])));
|
|
35623
35727
|
var ReadTextSentence = styled.div(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n font-weight: 600;\n text-align: center;\n"])));
|
|
35624
35728
|
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"])));
|
|
35625
35729
|
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) {
|
|
@@ -35639,7 +35743,7 @@ function useDocumentCapture(controller) {
|
|
|
35639
35743
|
return useSyncExternalStore(subscribe, controller.getState, controller.getState);
|
|
35640
35744
|
}
|
|
35641
35745
|
|
|
35642
|
-
var _templateObject$e, _templateObject2$e, _templateObject3$
|
|
35746
|
+
var _templateObject$e, _templateObject2$e, _templateObject3$b, _templateObject4$7, _templateObject5$6;
|
|
35643
35747
|
/** Human wording for each gate, in the order the engine reports them. */
|
|
35644
35748
|
/** Short enough that the triple fits one line on a phone. */
|
|
35645
35749
|
var GUIDANCE_LABELS = {
|
|
@@ -35942,8 +36046,8 @@ var PaneAnchor = styled.div(_templateObject$e || (_templateObject$e = _taggedTem
|
|
|
35942
36046
|
// swallow a capture tap. This one has to be tappable, so it re-enables them on
|
|
35943
36047
|
// its own subtree only.
|
|
35944
36048
|
var InteractivePane = styled.span(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
|
|
35945
|
-
var Row = styled.span(_templateObject3$
|
|
35946
|
-
var Controls = styled.span(_templateObject4$
|
|
36049
|
+
var Row = styled.span(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
36050
|
+
var Controls = styled.span(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
|
|
35947
36051
|
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) {
|
|
35948
36052
|
var $active = _ref5.$active;
|
|
35949
36053
|
return $active ? 'limegreen' : 'transparent';
|
|
@@ -35952,7 +36056,7 @@ var Chip = styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemp
|
|
|
35952
36056
|
return $active ? 'black' : 'limegreen';
|
|
35953
36057
|
});
|
|
35954
36058
|
|
|
35955
|
-
var _templateObject$d, _templateObject2$d, _templateObject3$
|
|
36059
|
+
var _templateObject$d, _templateObject2$d, _templateObject3$a;
|
|
35956
36060
|
/**
|
|
35957
36061
|
* Which verbiage member renders each code.
|
|
35958
36062
|
*
|
|
@@ -36067,9 +36171,9 @@ function DocumentCaptureManualCaptureHint(_ref6) {
|
|
|
36067
36171
|
* competed the applicant would read the wrong one. No dot, lower contrast, no
|
|
36068
36172
|
* background of its own beyond what legibility over video requires.
|
|
36069
36173
|
*/
|
|
36070
|
-
var ManualCaptureHint = styled.div(_templateObject3$
|
|
36174
|
+
var ManualCaptureHint = styled.div(_templateObject3$a || (_templateObject3$a = _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"])));
|
|
36071
36175
|
|
|
36072
|
-
var _templateObject$c, _templateObject2$c, _templateObject3$
|
|
36176
|
+
var _templateObject$c, _templateObject2$c, _templateObject3$9;
|
|
36073
36177
|
function DocumentCaptureReviewScreen(_ref) {
|
|
36074
36178
|
var contentUrl = _ref.contentUrl,
|
|
36075
36179
|
headingText = _ref.headingText,
|
|
@@ -36129,7 +36233,7 @@ var ReviewHeading = styled.h2(_templateObject$c || (_templateObject$c = _taggedT
|
|
|
36129
36233
|
// without it the default `min-height: auto` floors the wrapper at the image's
|
|
36130
36234
|
// intrinsic height and the buttons get pushed off the bottom of a phone.
|
|
36131
36235
|
var ImageWrap = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
|
|
36132
|
-
var PreviewImage$1 = styled.img(_templateObject3$
|
|
36236
|
+
var PreviewImage$1 = styled.img(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
|
|
36133
36237
|
|
|
36134
36238
|
function computeGuideRect$1(_ref) {
|
|
36135
36239
|
var wrapperWidth = _ref.wrapperWidth,
|
|
@@ -36408,7 +36512,7 @@ var CanvasWrapper = styled.div(_templateObject$b || (_templateObject$b = _tagged
|
|
|
36408
36512
|
});
|
|
36409
36513
|
var Canvas = styled.canvas(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
|
|
36410
36514
|
|
|
36411
|
-
var _templateObject$a, _templateObject2$a, _templateObject3$
|
|
36515
|
+
var _templateObject$a, _templateObject2$a, _templateObject3$8, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
36412
36516
|
/** The verbiage fallbacks, exported so the i18n parity test reads the real
|
|
36413
36517
|
* literals rather than a second copy that could drift from them. */
|
|
36414
36518
|
var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
|
|
@@ -36998,11 +37102,11 @@ var GuidedBottomStack = styled.div(_templateObject2$a || (_templateObject2$a = _
|
|
|
36998
37102
|
* the mechanism that just gave up, and a disabled-looking disc would refuse a
|
|
36999
37103
|
* tap the applicant is entitled to make.
|
|
37000
37104
|
*/
|
|
37001
|
-
var GuidedShutterDock = styled.div(_templateObject3$
|
|
37105
|
+
var GuidedShutterDock = styled.div(_templateObject3$8 || (_templateObject3$8 = _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) {
|
|
37002
37106
|
var $centreY = _ref3.$centreY;
|
|
37003
37107
|
return $centreY === null ? 'bottom: max(20px, env(safe-area-inset-bottom));' : "top: " + $centreY + "px; transform: translateY(-50%);";
|
|
37004
37108
|
});
|
|
37005
|
-
var GuidedShutter = styled.button(_templateObject4$
|
|
37109
|
+
var GuidedShutter = styled.button(_templateObject4$6 || (_templateObject4$6 = _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) {
|
|
37006
37110
|
var $pending = _ref4.$pending;
|
|
37007
37111
|
return $pending ? 'rgba(255, 255, 255, 0.25)' : 'rgba(255, 255, 255, 0.9)';
|
|
37008
37112
|
}, function (_ref5) {
|
|
@@ -37322,7 +37426,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
37322
37426
|
});
|
|
37323
37427
|
};
|
|
37324
37428
|
|
|
37325
|
-
var _templateObject$9, _templateObject2$9, _templateObject3$
|
|
37429
|
+
var _templateObject$9, _templateObject2$9, _templateObject3$7, _templateObject4$5, _templateObject5$4;
|
|
37326
37430
|
// The `useTranslations` fallback defaults, exported so the i18n parity
|
|
37327
37431
|
// guard (additionalDocumentStrings.test.ts) can assert every non-English
|
|
37328
37432
|
// locale carries these exact literals by reading them from here rather than
|
|
@@ -37492,8 +37596,8 @@ function AdditionalDocumentCapture(_ref) {
|
|
|
37492
37596
|
}
|
|
37493
37597
|
var Inner = styled(OverlayInner$2)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
|
|
37494
37598
|
var Heading$2 = styled.h3(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37495
|
-
var DescriptionText = styled.p(_templateObject3$
|
|
37496
|
-
var ErrorText = styled.p(_templateObject4$
|
|
37599
|
+
var DescriptionText = styled.p(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37600
|
+
var ErrorText = styled.p(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
|
|
37497
37601
|
var StyledButtonsRow$2 = styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
|
|
37498
37602
|
|
|
37499
37603
|
function additionalDocumentProgress(documents, results) {
|
|
@@ -37617,7 +37721,7 @@ function AdditionalDocumentCaptureWizard(_ref) {
|
|
|
37617
37721
|
}, index);
|
|
37618
37722
|
}
|
|
37619
37723
|
|
|
37620
|
-
var _templateObject$8, _templateObject2$8, _templateObject3$
|
|
37724
|
+
var _templateObject$8, _templateObject2$8, _templateObject3$6, _templateObject4$4, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
|
|
37621
37725
|
var CONFETTI_COUNT = 44;
|
|
37622
37726
|
var CONFETTI_LIFETIME_MS = 4500;
|
|
37623
37727
|
/**
|
|
@@ -37740,8 +37844,8 @@ var RingSuccessScreen = function RingSuccessScreen(_ref) {
|
|
|
37740
37844
|
};
|
|
37741
37845
|
var fadeIn$1 = keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
|
|
37742
37846
|
var popCheck = keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
|
|
37743
|
-
var drawTick = keyframes(_templateObject3$
|
|
37744
|
-
var confettiFall = keyframes(_templateObject4$
|
|
37847
|
+
var drawTick = keyframes(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
|
|
37848
|
+
var confettiFall = keyframes(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
|
|
37745
37849
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
37746
37850
|
// for why the foreground is pinned rather than read from the theme.
|
|
37747
37851
|
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) {
|
|
@@ -37761,7 +37865,7 @@ var StatList = styled.div(_templateObject0$3 || (_templateObject0$3 = _taggedTem
|
|
|
37761
37865
|
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"])));
|
|
37762
37866
|
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);
|
|
37763
37867
|
|
|
37764
|
-
var _templateObject$7, _templateObject2$7, _templateObject3$
|
|
37868
|
+
var _templateObject$7, _templateObject2$7, _templateObject3$5, _templateObject4$3, _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;
|
|
37765
37869
|
var toDataUrl$2 = function toDataUrl(value) {
|
|
37766
37870
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37767
37871
|
};
|
|
@@ -37951,10 +38055,10 @@ var markIn = keyframes(_templateObject2$7 || (_templateObject2$7 = _taggedTempla
|
|
|
37951
38055
|
// loading overlay, and inheriting it painted white text on this white surface:
|
|
37952
38056
|
// the tips panel (`rgb(255 255 255 / 0.62)`) went fully invisible. Same rule,
|
|
37953
38057
|
// and the same reason, as `ErrorScreen`'s `ErrorCard`.
|
|
37954
|
-
var FailureInner = styled(LoadingOverlayInner)(_templateObject3$
|
|
38058
|
+
var FailureInner = styled(LoadingOverlayInner)(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n overflow-y: auto;\n"])), function (props) {
|
|
37955
38059
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
|
|
37956
38060
|
});
|
|
37957
|
-
var FailureLayout = styled.div(_templateObject4$
|
|
38061
|
+
var FailureLayout = styled.div(_templateObject4$3 || (_templateObject4$3 = _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"])));
|
|
37958
38062
|
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);
|
|
37959
38063
|
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"])));
|
|
37960
38064
|
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) {
|
|
@@ -37986,7 +38090,7 @@ var PrimaryAction = styled(LoaderButton)(_templateObject15$1 || (_templateObject
|
|
|
37986
38090
|
});
|
|
37987
38091
|
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"])));
|
|
37988
38092
|
|
|
37989
|
-
var _templateObject$6, _templateObject2$6, _templateObject3$
|
|
38093
|
+
var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
|
|
37990
38094
|
var toDataUrl$1 = function toDataUrl(value) {
|
|
37991
38095
|
return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
|
|
37992
38096
|
};
|
|
@@ -38096,10 +38200,10 @@ var fadeIn = keyframes(_templateObject$6 || (_templateObject$6 = _taggedTemplate
|
|
|
38096
38200
|
var spin = keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
|
|
38097
38201
|
// Light surface whatever the theme says — see RingFailureScreen's FailureInner
|
|
38098
38202
|
// for why the foreground is pinned rather than read from the theme.
|
|
38099
|
-
var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$
|
|
38203
|
+
var FinishingInner = styled(LoadingOverlayInner)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
|
|
38100
38204
|
return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
|
|
38101
38205
|
}, fadeIn);
|
|
38102
|
-
var FinishingLayout = styled.div(_templateObject4$
|
|
38206
|
+
var FinishingLayout = styled.div(_templateObject4$2 || (_templateObject4$2 = _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"])));
|
|
38103
38207
|
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"])));
|
|
38104
38208
|
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) {
|
|
38105
38209
|
return props.$accent;
|
|
@@ -38146,7 +38250,7 @@ var readFlowElapsedMs = function readFlowElapsedMs() {
|
|
|
38146
38250
|
return flowStartedAt === null ? null : Date.now() - flowStartedAt;
|
|
38147
38251
|
};
|
|
38148
38252
|
|
|
38149
|
-
var _templateObject$5, _templateObject2$5, _templateObject3$
|
|
38253
|
+
var _templateObject$5, _templateObject2$5, _templateObject3$3;
|
|
38150
38254
|
var DEFAULT_HEADING$1 = {
|
|
38151
38255
|
identification: 'Customer has been identified!',
|
|
38152
38256
|
verification: 'Customer has been verified!'
|
|
@@ -38205,9 +38309,9 @@ function CustomerMatchSuccess(_ref) {
|
|
|
38205
38309
|
}
|
|
38206
38310
|
var Heading$1 = styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
38207
38311
|
var ImageContainer$1 = styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
38208
|
-
var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$
|
|
38312
|
+
var StyledButtonsRow$1 = styled(ButtonsRow$2)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
38209
38313
|
|
|
38210
|
-
var _templateObject$4, _templateObject2$4, _templateObject3$
|
|
38314
|
+
var _templateObject$4, _templateObject2$4, _templateObject3$2;
|
|
38211
38315
|
var DEFAULT_HEADING = {
|
|
38212
38316
|
identification: 'Customer not found',
|
|
38213
38317
|
verification: 'Customer not verified'
|
|
@@ -38269,7 +38373,7 @@ function CustomerMatchFailure(_ref) {
|
|
|
38269
38373
|
}
|
|
38270
38374
|
var Heading = styled.h3(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
|
|
38271
38375
|
var ImageContainer = styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
|
|
38272
|
-
var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$
|
|
38376
|
+
var StyledButtonsRow = styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
|
|
38273
38377
|
|
|
38274
38378
|
var SubmissionContext = /*#__PURE__*/createContext(null);
|
|
38275
38379
|
var EMPTY_SUBMISSION_OPTIONS = {};
|
|
@@ -38661,7 +38765,7 @@ var highlightJson = function highlightJson(str) {
|
|
|
38661
38765
|
return elements;
|
|
38662
38766
|
};
|
|
38663
38767
|
|
|
38664
|
-
var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
38768
|
+
var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4$1, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
38665
38769
|
function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38666
38770
|
function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
|
|
38667
38771
|
function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -39228,8 +39332,8 @@ function TimingFact(_ref9) {
|
|
|
39228
39332
|
}
|
|
39229
39333
|
var SuccessInner = styled(OverlayInner$2)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n max-width: 900px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 40px;\n text-align: left;\n"])));
|
|
39230
39334
|
var Header = styled.header(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
|
|
39231
|
-
var Eyebrow = styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
|
|
39232
|
-
var TimingGrid = styled.dl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
|
|
39335
|
+
var Eyebrow = styled.p(_templateObject3$1 || (_templateObject3$1 = _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"])));
|
|
39336
|
+
var TimingGrid = styled.dl(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
|
|
39233
39337
|
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"])));
|
|
39234
39338
|
var UploadSubheader = styled.h4(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n margin: 20px 0 8px;\n font-size: 0.8125rem;\n"])));
|
|
39235
39339
|
var UploadList = styled.dl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n margin: 0 0 24px;\n"])));
|
|
@@ -40272,8 +40376,8 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40272
40376
|
return null;
|
|
40273
40377
|
}
|
|
40274
40378
|
|
|
40275
|
-
var _templateObject$1, _templateObject2$1;
|
|
40276
|
-
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
|
|
40379
|
+
var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
|
|
40380
|
+
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
|
|
40277
40381
|
function FlowChassis(_ref) {
|
|
40278
40382
|
var client = _ref.client,
|
|
40279
40383
|
action = _ref.action,
|
|
@@ -40288,6 +40392,8 @@ function FlowChassis(_ref) {
|
|
|
40288
40392
|
captureProgress = _ref.captureProgress,
|
|
40289
40393
|
remoteDiagnostics = _ref.remoteDiagnostics,
|
|
40290
40394
|
loadingSpinner = _ref.loadingSpinner,
|
|
40395
|
+
_ref$showEnrollmentId = _ref.showEnrollmentId,
|
|
40396
|
+
showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
|
|
40291
40397
|
children = _ref.children,
|
|
40292
40398
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
40293
40399
|
var geolocation = useGeolocation(geolocationEnabled);
|
|
@@ -40309,6 +40415,7 @@ function FlowChassis(_ref) {
|
|
|
40309
40415
|
}, callbacks, {
|
|
40310
40416
|
children: jsx(FlowPage, {
|
|
40311
40417
|
className: className,
|
|
40418
|
+
enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
|
|
40312
40419
|
children: jsx(AuthGate, {
|
|
40313
40420
|
children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
|
|
40314
40421
|
onRetry: geolocation.retry
|
|
@@ -40369,23 +40476,35 @@ function AuthGate(_ref2) {
|
|
|
40369
40476
|
/**
|
|
40370
40477
|
* The flow's page surface: `theme.header` and `theme.footer` (2.x's
|
|
40371
40478
|
* SdkPage.tsx:41) frame a body that takes the remaining height and is the
|
|
40372
|
-
* positioned ancestor every flow stage lays out against.
|
|
40479
|
+
* positioned ancestor every flow stage lays out against. The debug
|
|
40480
|
+
* enrollment-ID banner sits outside that body, so stages and their in-body
|
|
40481
|
+
* overlays lay out below it instead of over it.
|
|
40373
40482
|
*/
|
|
40374
40483
|
function FlowPage(_ref3) {
|
|
40375
40484
|
var className = _ref3.className,
|
|
40485
|
+
enrollmentId = _ref3.enrollmentId,
|
|
40376
40486
|
children = _ref3.children;
|
|
40377
40487
|
var _useTheme = useTheme(),
|
|
40378
40488
|
Header = _useTheme.header,
|
|
40379
40489
|
Footer = _useTheme.footer;
|
|
40380
40490
|
return jsxs(FlowPageOuter, {
|
|
40381
40491
|
className: className,
|
|
40382
|
-
children: [Header && jsx(Header, {}),
|
|
40492
|
+
children: [Header && jsx(Header, {}), enrollmentId && jsxs(EnrollmentIdBanner, {
|
|
40493
|
+
"data-testid": "idmission-debug-enrollment-id",
|
|
40494
|
+
children: ["Enrollment ID: ", jsx(EnrollmentIdValue, {
|
|
40495
|
+
children: enrollmentId
|
|
40496
|
+
})]
|
|
40497
|
+
}), jsx(FlowPageBody, {
|
|
40383
40498
|
children: children
|
|
40384
40499
|
}), Footer && jsx(Footer, {})]
|
|
40385
40500
|
});
|
|
40386
40501
|
}
|
|
40387
|
-
|
|
40388
|
-
|
|
40502
|
+
// Debug-only chrome, so it ignores the theme on purpose: it has to read the
|
|
40503
|
+
// same on every customer skin.
|
|
40504
|
+
var EnrollmentIdBanner = styled.div(_templateObject$1 || (_templateObject$1 = _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"])));
|
|
40505
|
+
var EnrollmentIdValue = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n user-select: all;\n"])));
|
|
40506
|
+
var FlowPageBody = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
|
|
40507
|
+
var FlowPageOuter = styled.div(_templateObject4 || (_templateObject4 = _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) {
|
|
40389
40508
|
var _props$theme$backgrou;
|
|
40390
40509
|
return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
|
|
40391
40510
|
}, function (props) {
|
|
@@ -40632,6 +40751,10 @@ function IdValidationFlow(_ref) {
|
|
|
40632
40751
|
onSubmitted = _ref.onSubmitted,
|
|
40633
40752
|
children = _ref.children,
|
|
40634
40753
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
40754
|
+
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40755
|
+
capture: capture,
|
|
40756
|
+
signatureCapture: signatureCapture
|
|
40757
|
+
});
|
|
40635
40758
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40636
40759
|
var latestCapture = useLatestCallbacks(capture);
|
|
40637
40760
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
@@ -40791,6 +40914,9 @@ function FaceValidationFlow(_ref) {
|
|
|
40791
40914
|
children = _ref.children;
|
|
40792
40915
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
40793
40916
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
40917
|
+
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40918
|
+
capture: controllerCapture
|
|
40919
|
+
});
|
|
40794
40920
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40795
40921
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
40796
40922
|
var latestLiveness = useLatestCallbacks(controllerCapture.liveness);
|
|
@@ -40912,6 +41038,11 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
40912
41038
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
40913
41039
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
40914
41040
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
41041
|
+
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
41042
|
+
faceCapture: selfieCaptureConfig,
|
|
41043
|
+
idCapture: idCapture,
|
|
41044
|
+
signatureCapture: signatureCapture
|
|
41045
|
+
});
|
|
40915
41046
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40916
41047
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
40917
41048
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -41172,6 +41303,10 @@ function SignatureKYCFlow(_ref) {
|
|
|
41172
41303
|
onCaptureError = _ref.onCaptureError;
|
|
41173
41304
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41174
41305
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
41306
|
+
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
41307
|
+
faceCapture: selfieCaptureConfig,
|
|
41308
|
+
signatureCapture: signatureCapture
|
|
41309
|
+
});
|
|
41175
41310
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
41176
41311
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41177
41312
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -41533,6 +41668,12 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41533
41668
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
41534
41669
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41535
41670
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
|
|
41671
|
+
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
41672
|
+
faceCapture: selfieCaptureConfig,
|
|
41673
|
+
idCapture: idCapture,
|
|
41674
|
+
capture: capture,
|
|
41675
|
+
signatureCapture: signatureCapture
|
|
41676
|
+
});
|
|
41536
41677
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
41537
41678
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41538
41679
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -44521,60 +44662,6 @@ function toDocumentCaptureInput(document) {
|
|
|
44521
44662
|
};
|
|
44522
44663
|
}
|
|
44523
44664
|
|
|
44524
|
-
// Makes the mount-time-only `autoCapture` contract audible (#351).
|
|
44525
|
-
//
|
|
44526
|
-
// `DocumentCaptureFlow` builds its controller inside `useState(() => …)` from
|
|
44527
|
-
// `documentsRef.current`, and `documentCapture/controller.ts` has no
|
|
44528
|
-
// reconfigure path — so `autoCapture` is read once, at mount, and every later
|
|
44529
|
-
// change is ignored. A reconfigure path was ruled against: it is real surface
|
|
44530
|
-
// on a controller that has none today, bought to serve a race the consumer can
|
|
44531
|
-
// simply not have (AMEX's `DocumentCaptureScreen` should gate on `flagsLoaded`,
|
|
44532
|
-
// not just `sessionLoaded`).
|
|
44533
|
-
//
|
|
44534
|
-
// The SILENCE is the expensive half. All four of this repo's cascade-default
|
|
44535
|
-
// incidents were "the value was quietly wrong and nothing said so", and this
|
|
44536
|
-
// one has the same shape: a capture screen that mounts before the flags land
|
|
44537
|
-
// has auto-capture off for that applicant's whole session, with no error and
|
|
44538
|
-
// no log. The field-visible half of the same ruling is
|
|
44539
|
-
// `autoCaptureStatus: 'disabled:lateFlag'` on the capture metadata.
|
|
44540
|
-
/**
|
|
44541
|
-
* A comparable summary of what auto-capture each document asked for.
|
|
44542
|
-
*
|
|
44543
|
-
* Resolved rather than compared raw, so a caller who re-spreads an equivalent
|
|
44544
|
-
* bag every render (`autoCapture: {}`, or `{ minScore: undefined }`) does not
|
|
44545
|
-
* trip the warning — only a change that would actually have configured the
|
|
44546
|
-
* engine differently does.
|
|
44547
|
-
*
|
|
44548
|
-
* PRESENCE is preserved as `null` rather than folded into the resolved
|
|
44549
|
-
* defaults, because `undefined` -> `{}` is precisely the late-flag race this
|
|
44550
|
-
* exists to catch, and resolving both would make them identical.
|
|
44551
|
-
*/
|
|
44552
|
-
function autoCaptureSignature(documents) {
|
|
44553
|
-
return JSON.stringify(documents.map(function (document) {
|
|
44554
|
-
return document.autoCapture ? resolveAutoCapture(document.autoCapture, undefined) : null;
|
|
44555
|
-
}));
|
|
44556
|
-
}
|
|
44557
|
-
/**
|
|
44558
|
-
* Warn once if `documents`' auto-capture configuration changes after mount.
|
|
44559
|
-
*
|
|
44560
|
-
* Warns rather than reconfigures: the change genuinely has no effect, and a
|
|
44561
|
-
* caller who cannot see that is the failure mode.
|
|
44562
|
-
*/
|
|
44563
|
-
function useAutoCaptureMountGuard(documents) {
|
|
44564
|
-
var mounted = useRef(null);
|
|
44565
|
-
var warned = useRef(false);
|
|
44566
|
-
var signature = autoCaptureSignature(documents);
|
|
44567
|
-
useEffect(function () {
|
|
44568
|
-
if (mounted.current === null) {
|
|
44569
|
-
mounted.current = signature;
|
|
44570
|
-
return;
|
|
44571
|
-
}
|
|
44572
|
-
if (warned.current || signature === mounted.current) return;
|
|
44573
|
-
warned.current = true;
|
|
44574
|
-
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.');
|
|
44575
|
-
}, [signature]);
|
|
44576
|
-
}
|
|
44577
|
-
|
|
44578
44665
|
function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
44579
44666
|
if (view === void 0) {
|
|
44580
44667
|
view = {};
|
|
@@ -44623,15 +44710,16 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44623
44710
|
// props without being torn down and rebuilt on every render.
|
|
44624
44711
|
var documentsRef = useRef(documents);
|
|
44625
44712
|
documentsRef.current = documents;
|
|
44626
|
-
// `autoCapture` is mount-time-only and the controller has no reconfigure
|
|
44627
|
-
// path, so a late change is ignored — loudly rather than silently (#351).
|
|
44628
|
-
useAutoCaptureMountGuard(documents);
|
|
44629
44713
|
var capturedRef = useRef(onDocumentCaptured);
|
|
44630
44714
|
capturedRef.current = onDocumentCaptured;
|
|
44631
44715
|
var uploadedRef = useRef(onDocumentUploaded);
|
|
44632
44716
|
uploadedRef.current = onDocumentUploaded;
|
|
44633
44717
|
var completeRef = useRef(onComplete);
|
|
44634
44718
|
completeRef.current = onComplete;
|
|
44719
|
+
useMountOnlyWarnings('DocumentCaptureFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
44720
|
+
capture: capture,
|
|
44721
|
+
documents: documents.map(toDocumentCaptureInput)
|
|
44722
|
+
});
|
|
44635
44723
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44636
44724
|
var latestCapture = useLatestCallbacks(capture);
|
|
44637
44725
|
var _useState = useState(function () {
|
|
@@ -44772,6 +44860,10 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44772
44860
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
44773
44861
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44774
44862
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
44863
|
+
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
44864
|
+
faceCapture: selfieCaptureConfig,
|
|
44865
|
+
signatureCapture: signatureCapture
|
|
44866
|
+
});
|
|
44775
44867
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44776
44868
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
44777
44869
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -44895,6 +44987,7 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44895
44987
|
client: client,
|
|
44896
44988
|
action: SubmissionAction.ENROLL,
|
|
44897
44989
|
submission: submission,
|
|
44990
|
+
showEnrollmentId: showDiagnostics,
|
|
44898
44991
|
theme: theme,
|
|
44899
44992
|
className: className
|
|
44900
44993
|
}, callbacks, {
|
|
@@ -44971,6 +45064,12 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
44971
45064
|
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
44972
45065
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44973
45066
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
|
|
45067
|
+
useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
45068
|
+
faceCapture: selfieCaptureConfig,
|
|
45069
|
+
idCapture: idCapture,
|
|
45070
|
+
signatureCapture: signatureCapture,
|
|
45071
|
+
videoIdCapture: videoIdCapture
|
|
45072
|
+
});
|
|
44974
45073
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44975
45074
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
44976
45075
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -45176,6 +45275,7 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45176
45275
|
client: client,
|
|
45177
45276
|
action: SubmissionAction.ENROLL,
|
|
45178
45277
|
submission: submission,
|
|
45278
|
+
showEnrollmentId: showDiagnostics,
|
|
45179
45279
|
theme: theme,
|
|
45180
45280
|
className: className
|
|
45181
45281
|
}, callbacks, {
|
|
@@ -45892,6 +45992,9 @@ function CustomerMatchFlow(_ref) {
|
|
|
45892
45992
|
onExitAfterFailure = _ref.onExitAfterFailure;
|
|
45893
45993
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
45894
45994
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded);
|
|
45995
|
+
useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
45996
|
+
capture: controllerCapture
|
|
45997
|
+
});
|
|
45895
45998
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
45896
45999
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
45897
46000
|
// These flows drive the live-check themselves, per capture, and read its
|
|
@@ -48573,7 +48676,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48573
48676
|
});
|
|
48574
48677
|
}
|
|
48575
48678
|
|
|
48576
|
-
var webSdkVersion = '2.6.3-changeset-release-develop-
|
|
48679
|
+
var webSdkVersion = '2.6.3-changeset-release-develop-eac763c';
|
|
48577
48680
|
|
|
48578
48681
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48579
48682
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|