idmission-web-sdk 2.6.3-changeset-release-develop-c045c91 → 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 +203 -117
- 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 +203 -117
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +219 -133
- 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
|
@@ -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,7 +481,7 @@ 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
487
|
var webSdkCoreVersion = '0.5.1';
|
|
@@ -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
|
|
@@ -8511,27 +8636,6 @@ 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
8641
|
var _templateObject$T, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$j, _templateObject7$g;
|
|
@@ -40647,6 +40751,10 @@ function IdValidationFlow(_ref) {
|
|
|
40647
40751
|
onSubmitted = _ref.onSubmitted,
|
|
40648
40752
|
children = _ref.children,
|
|
40649
40753
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
40754
|
+
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40755
|
+
capture: capture,
|
|
40756
|
+
signatureCapture: signatureCapture
|
|
40757
|
+
});
|
|
40650
40758
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40651
40759
|
var latestCapture = useLatestCallbacks(capture);
|
|
40652
40760
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
@@ -40806,6 +40914,9 @@ function FaceValidationFlow(_ref) {
|
|
|
40806
40914
|
children = _ref.children;
|
|
40807
40915
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
40808
40916
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
40917
|
+
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40918
|
+
capture: controllerCapture
|
|
40919
|
+
});
|
|
40809
40920
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40810
40921
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
40811
40922
|
var latestLiveness = useLatestCallbacks(controllerCapture.liveness);
|
|
@@ -40927,6 +41038,11 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
40927
41038
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
40928
41039
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
40929
41040
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
41041
|
+
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
41042
|
+
faceCapture: selfieCaptureConfig,
|
|
41043
|
+
idCapture: idCapture,
|
|
41044
|
+
signatureCapture: signatureCapture
|
|
41045
|
+
});
|
|
40930
41046
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
40931
41047
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
40932
41048
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -41187,6 +41303,10 @@ function SignatureKYCFlow(_ref) {
|
|
|
41187
41303
|
onCaptureError = _ref.onCaptureError;
|
|
41188
41304
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41189
41305
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
41306
|
+
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
41307
|
+
faceCapture: selfieCaptureConfig,
|
|
41308
|
+
signatureCapture: signatureCapture
|
|
41309
|
+
});
|
|
41190
41310
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
41191
41311
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41192
41312
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -41548,6 +41668,12 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41548
41668
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
41549
41669
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41550
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
|
+
});
|
|
41551
41677
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
41552
41678
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41553
41679
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -44536,60 +44662,6 @@ function toDocumentCaptureInput(document) {
|
|
|
44536
44662
|
};
|
|
44537
44663
|
}
|
|
44538
44664
|
|
|
44539
|
-
// Makes the mount-time-only `autoCapture` contract audible (#351).
|
|
44540
|
-
//
|
|
44541
|
-
// `DocumentCaptureFlow` builds its controller inside `useState(() => …)` from
|
|
44542
|
-
// `documentsRef.current`, and `documentCapture/controller.ts` has no
|
|
44543
|
-
// reconfigure path — so `autoCapture` is read once, at mount, and every later
|
|
44544
|
-
// change is ignored. A reconfigure path was ruled against: it is real surface
|
|
44545
|
-
// on a controller that has none today, bought to serve a race the consumer can
|
|
44546
|
-
// simply not have (AMEX's `DocumentCaptureScreen` should gate on `flagsLoaded`,
|
|
44547
|
-
// not just `sessionLoaded`).
|
|
44548
|
-
//
|
|
44549
|
-
// The SILENCE is the expensive half. All four of this repo's cascade-default
|
|
44550
|
-
// incidents were "the value was quietly wrong and nothing said so", and this
|
|
44551
|
-
// one has the same shape: a capture screen that mounts before the flags land
|
|
44552
|
-
// has auto-capture off for that applicant's whole session, with no error and
|
|
44553
|
-
// no log. The field-visible half of the same ruling is
|
|
44554
|
-
// `autoCaptureStatus: 'disabled:lateFlag'` on the capture metadata.
|
|
44555
|
-
/**
|
|
44556
|
-
* A comparable summary of what auto-capture each document asked for.
|
|
44557
|
-
*
|
|
44558
|
-
* Resolved rather than compared raw, so a caller who re-spreads an equivalent
|
|
44559
|
-
* bag every render (`autoCapture: {}`, or `{ minScore: undefined }`) does not
|
|
44560
|
-
* trip the warning — only a change that would actually have configured the
|
|
44561
|
-
* engine differently does.
|
|
44562
|
-
*
|
|
44563
|
-
* PRESENCE is preserved as `null` rather than folded into the resolved
|
|
44564
|
-
* defaults, because `undefined` -> `{}` is precisely the late-flag race this
|
|
44565
|
-
* exists to catch, and resolving both would make them identical.
|
|
44566
|
-
*/
|
|
44567
|
-
function autoCaptureSignature(documents) {
|
|
44568
|
-
return JSON.stringify(documents.map(function (document) {
|
|
44569
|
-
return document.autoCapture ? resolveAutoCapture(document.autoCapture, undefined) : null;
|
|
44570
|
-
}));
|
|
44571
|
-
}
|
|
44572
|
-
/**
|
|
44573
|
-
* Warn once if `documents`' auto-capture configuration changes after mount.
|
|
44574
|
-
*
|
|
44575
|
-
* Warns rather than reconfigures: the change genuinely has no effect, and a
|
|
44576
|
-
* caller who cannot see that is the failure mode.
|
|
44577
|
-
*/
|
|
44578
|
-
function useAutoCaptureMountGuard(documents) {
|
|
44579
|
-
var mounted = useRef(null);
|
|
44580
|
-
var warned = useRef(false);
|
|
44581
|
-
var signature = autoCaptureSignature(documents);
|
|
44582
|
-
useEffect(function () {
|
|
44583
|
-
if (mounted.current === null) {
|
|
44584
|
-
mounted.current = signature;
|
|
44585
|
-
return;
|
|
44586
|
-
}
|
|
44587
|
-
if (warned.current || signature === mounted.current) return;
|
|
44588
|
-
warned.current = true;
|
|
44589
|
-
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.');
|
|
44590
|
-
}, [signature]);
|
|
44591
|
-
}
|
|
44592
|
-
|
|
44593
44665
|
function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
44594
44666
|
if (view === void 0) {
|
|
44595
44667
|
view = {};
|
|
@@ -44638,15 +44710,16 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44638
44710
|
// props without being torn down and rebuilt on every render.
|
|
44639
44711
|
var documentsRef = useRef(documents);
|
|
44640
44712
|
documentsRef.current = documents;
|
|
44641
|
-
// `autoCapture` is mount-time-only and the controller has no reconfigure
|
|
44642
|
-
// path, so a late change is ignored — loudly rather than silently (#351).
|
|
44643
|
-
useAutoCaptureMountGuard(documents);
|
|
44644
44713
|
var capturedRef = useRef(onDocumentCaptured);
|
|
44645
44714
|
capturedRef.current = onDocumentCaptured;
|
|
44646
44715
|
var uploadedRef = useRef(onDocumentUploaded);
|
|
44647
44716
|
uploadedRef.current = onDocumentUploaded;
|
|
44648
44717
|
var completeRef = useRef(onComplete);
|
|
44649
44718
|
completeRef.current = onComplete;
|
|
44719
|
+
useMountOnlyWarnings('DocumentCaptureFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
44720
|
+
capture: capture,
|
|
44721
|
+
documents: documents.map(toDocumentCaptureInput)
|
|
44722
|
+
});
|
|
44650
44723
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44651
44724
|
var latestCapture = useLatestCallbacks(capture);
|
|
44652
44725
|
var _useState = useState(function () {
|
|
@@ -44787,6 +44860,10 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44787
44860
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
44788
44861
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44789
44862
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
44863
|
+
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
44864
|
+
faceCapture: selfieCaptureConfig,
|
|
44865
|
+
signatureCapture: signatureCapture
|
|
44866
|
+
});
|
|
44790
44867
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44791
44868
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
44792
44869
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -44987,6 +45064,12 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
44987
45064
|
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
44988
45065
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44989
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
|
+
});
|
|
44990
45073
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
44991
45074
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
44992
45075
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
@@ -45909,6 +45992,9 @@ function CustomerMatchFlow(_ref) {
|
|
|
45909
45992
|
onExitAfterFailure = _ref.onExitAfterFailure;
|
|
45910
45993
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
45911
45994
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded);
|
|
45995
|
+
useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
45996
|
+
capture: controllerCapture
|
|
45997
|
+
});
|
|
45912
45998
|
// Config callbacks follow the latest render; see useLatestCallbacks.
|
|
45913
45999
|
var latestCapture = useLatestCallbacks(controllerCapture);
|
|
45914
46000
|
// These flows drive the live-check themselves, per capture, and read its
|
|
@@ -48590,7 +48676,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48590
48676
|
});
|
|
48591
48677
|
}
|
|
48592
48678
|
|
|
48593
|
-
var webSdkVersion = '2.6.3-changeset-release-develop-
|
|
48679
|
+
var webSdkVersion = '2.6.3-changeset-release-develop-eac763c';
|
|
48594
48680
|
|
|
48595
48681
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48596
48682
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|