idmission-web-sdk 2.6.3-changeset-release-develop-c045c91 → 2.6.3-changeset-release-develop-124a427

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/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.1';
21
+ var webSdkUiVersion = '0.6.0';
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$v(r, a) {
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$v(r, a) {
455
+ function _unsupportedIterableToArray$w(r, a) {
456
456
  if (r) {
457
- if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
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$v(r, a) : void 0;
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$v(r, e) || _nonIterableRest();
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$v(r);
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$v(r) || _nonIterableSpread();
484
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
485
485
  }
486
486
 
487
- var webSdkCoreVersion = '0.5.1';
487
+ var webSdkCoreVersion = '0.6.0';
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$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."); }
1260
- 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; } }
1261
- 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; }
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$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
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$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
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$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
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$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
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$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
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$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."); }
1444
- 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; } }
1445
- 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; }
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$t(streams), _step; !(_step = _iterator()).done;) {
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$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
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$t(pending), _step3; !(_step3 = _iterator3()).done;) {
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$t(pending), _step4; !(_step4 = _iterator4()).done;) {
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$t(streams), _step5; !(_step5 = _iterator5()).done;) {
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$t(streams), _step6; !(_step6 = _iterator6()).done;) {
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$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
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$t(sending.reports); !(_step11 = _iterator11()).done;) {
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$t(sending.reports); !(_step12 = _iterator12()).done;) {
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$t(frozen.reports); !(_step13 = _iterator13()).done;) {
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$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
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$t(streams), _step9; !(_step9 = _iterator9()).done;) {
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$t(streams), _step0; !(_step0 = _iterator0()).done;) {
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$t(streams), _step1; !(_step1 = _iterator1()).done;) {
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$t(captures), _step10; !(_step10 = _iterator10()).done;) {
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$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."); }
3555
- 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; } }
3556
- 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; }
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$s(lines), _step; !(_step = _iterator()).done;) {
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$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
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
@@ -7437,12 +7562,17 @@ var SdkLanguageContext = /*#__PURE__*/createContext(undefined);
7437
7562
  * Binds one rendered SDK tree to its requested language. A fixed translator
7438
7563
  * avoids waiting for a post-render changeLanguage() effect and keeps SSR and
7439
7564
  * concurrently mounted SDK views independent of the shared detector instance.
7565
+ *
7566
+ * An unset `lang` keeps whatever scope encloses it (or none), so a caller can
7567
+ * render the provider unconditionally: toggling `lang` between unset and set
7568
+ * then never changes the element tree, and never remounts the subtree.
7440
7569
  */
7441
7570
  function SdkLanguageProvider(_ref) {
7442
7571
  var children = _ref.children,
7443
7572
  lang = _ref.lang;
7573
+ var inherited = useContext(SdkLanguageContext);
7444
7574
  return /*#__PURE__*/createElement(SdkLanguageContext.Provider, {
7445
- value: lang === 'auto' ? detectedLanguage : lang
7575
+ value: lang === undefined ? inherited : lang === 'auto' ? detectedLanguage : lang
7446
7576
  }, children);
7447
7577
  }
7448
7578
  /**
@@ -8511,27 +8641,6 @@ function evaluateIsMobile$1(nav) {
8511
8641
  return false;
8512
8642
  }
8513
8643
 
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
8644
  var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8536
8645
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8537
8646
  var _templateObject$T, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$j, _templateObject7$g;
@@ -39318,15 +39427,15 @@ var Root = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateL
39318
39427
  var Label = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
39319
39428
 
39320
39429
  function CompositeWizard(_ref) {
39321
- var _successScreen$isAppr;
39430
+ var _successScreen$isAppr, _ref2;
39322
39431
  var steps = _ref.steps,
39323
39432
  sessionReadyProp = _ref.sessionReady,
39324
39433
  _ref$initialArtifacts = _ref.initialArtifacts,
39325
39434
  initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
39326
39435
  _ref$captureOnly = _ref.captureOnly,
39327
39436
  captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
39328
- _ref$showSuccessScree = _ref.showSuccessScreen,
39329
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
39437
+ showResultScreen = _ref.showResultScreen,
39438
+ showSuccessScreen = _ref.showSuccessScreen,
39330
39439
  _ref$showDiagnostics = _ref.showDiagnostics,
39331
39440
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
39332
39441
  successClassNames = _ref.successClassNames,
@@ -39476,7 +39585,7 @@ function CompositeWizard(_ref) {
39476
39585
  classNames: successScreen.classNames
39477
39586
  });
39478
39587
  }
39479
- if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
39588
+ if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
39480
39589
  return jsx(SubmissionSuccess, {
39481
39590
  response: submissionResponse,
39482
39591
  request: lastSubmissionRequest,
@@ -39513,8 +39622,8 @@ function capturedArtifactLabels(artifacts) {
39513
39622
  });
39514
39623
  return labels;
39515
39624
  }
39516
- function SubmittingScreen(_ref2) {
39517
- var text = _ref2.text;
39625
+ function SubmittingScreen(_ref3) {
39626
+ var text = _ref3.text;
39518
39627
  return jsx(OrbStatusScreen, {
39519
39628
  state: "working",
39520
39629
  text: text,
@@ -40273,7 +40382,7 @@ function RemoteDiagnosticsMount(_ref) {
40273
40382
  }
40274
40383
 
40275
40384
  var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
40276
- var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
40385
+ var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
40277
40386
  function FlowChassis(_ref) {
40278
40387
  var client = _ref.client,
40279
40388
  action = _ref.action,
@@ -40290,6 +40399,7 @@ function FlowChassis(_ref) {
40290
40399
  loadingSpinner = _ref.loadingSpinner,
40291
40400
  _ref$showEnrollmentId = _ref.showEnrollmentId,
40292
40401
  showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
40402
+ lang = _ref.lang,
40293
40403
  children = _ref.children,
40294
40404
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
40295
40405
  var geolocation = useGeolocation(geolocationEnabled);
@@ -40299,26 +40409,29 @@ function FlowChassis(_ref) {
40299
40409
  client: client,
40300
40410
  children: [jsx(RemoteDiagnosticsMount, {
40301
40411
  remoteDiagnostics: remoteDiagnostics
40302
- }), jsx(ThemeProvider, {
40303
- theme: theme,
40304
- children: jsx(LoadingSpinnerProvider, {
40305
- spinner: loadingSpinner,
40306
- children: jsx(SubmissionProvider, _extends({
40307
- client: client,
40308
- action: action,
40309
- options: submission,
40310
- geolocation: geolocation.position
40311
- }, callbacks, {
40312
- children: jsx(FlowPage, {
40313
- className: className,
40314
- enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
40315
- children: jsx(AuthGate, {
40316
- children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
40317
- onRetry: geolocation.retry
40318
- }) : children
40412
+ }), jsx(SdkLanguageProvider, {
40413
+ lang: lang,
40414
+ children: jsx(ThemeProvider, {
40415
+ theme: theme,
40416
+ children: jsx(LoadingSpinnerProvider, {
40417
+ spinner: loadingSpinner,
40418
+ children: jsx(SubmissionProvider, _extends({
40419
+ client: client,
40420
+ action: action,
40421
+ options: submission,
40422
+ geolocation: geolocation.position
40423
+ }, callbacks, {
40424
+ children: jsx(FlowPage, {
40425
+ className: className,
40426
+ enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
40427
+ children: jsx(AuthGate, {
40428
+ children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
40429
+ onRetry: geolocation.retry
40430
+ }) : children
40431
+ })
40319
40432
  })
40320
- })
40321
- }))
40433
+ }))
40434
+ })
40322
40435
  })
40323
40436
  })]
40324
40437
  })
@@ -40478,6 +40591,26 @@ function impliedSkipSuccessScreen(explicit, introActive) {
40478
40591
  return explicit != null ? explicit : introActive;
40479
40592
  }
40480
40593
 
40594
+ /**
40595
+ * A step bag with the flow's settings filled in wherever the step leaves them
40596
+ * unset: `step ?? flow`, key by key. The step's own value always wins, an
40597
+ * explicit `false` included, so a flow-wide setting never overrides a step.
40598
+ *
40599
+ * `flow` is typed against the step bag, so a setting the step has no prop for
40600
+ * (`debugMode` on the signature step, say) fails to compile instead of being
40601
+ * forwarded to a component that ignores it.
40602
+ */
40603
+ function inheritFlowSettings(step, flow) {
40604
+ var inherited = {};
40605
+ for (var key in flow) {
40606
+ if (!Object.prototype.hasOwnProperty.call(flow, key)) continue;
40607
+ if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
40608
+ inherited[key] = flow[key];
40609
+ }
40610
+ }
40611
+ return _extends({}, step, inherited);
40612
+ }
40613
+
40481
40614
  function buildRingScreenProps(_ref) {
40482
40615
  var ringMode = _ref.ringMode,
40483
40616
  finishingVerbiage = _ref.finishingVerbiage,
@@ -40606,7 +40739,7 @@ function withVirtualCameras(camera, allowVirtualCameras) {
40606
40739
  return base;
40607
40740
  }
40608
40741
 
40609
- var _excluded$8 = ["client", "controller", "capture", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "children"];
40742
+ var _excluded$8 = ["client", "controller", "capture", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "children"];
40610
40743
  var EMPTY_ID_CAPTURE$3 = {};
40611
40744
  var EMPTY_SIGNATURE_CAPTURE$5 = {};
40612
40745
  var EMPTY_ID_VIEW$3 = {};
@@ -40618,7 +40751,7 @@ function IdValidationFlow(_ref) {
40618
40751
  _ref$capture = _ref.capture,
40619
40752
  capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
40620
40753
  _ref$view = _ref.view,
40621
- view = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
40754
+ viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
40622
40755
  _ref$submission = _ref.submission,
40623
40756
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
40624
40757
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -40628,14 +40761,17 @@ function IdValidationFlow(_ref) {
40628
40761
  signatureController = _ref.signatureController,
40629
40762
  _ref$signatureCapture = _ref.signatureCapture,
40630
40763
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
40631
- signatureView = _ref.signatureView,
40764
+ signatureViewProp = _ref.signatureView,
40632
40765
  captureSignature = _ref.captureSignature,
40633
40766
  captureSignatureVideo = _ref.captureSignatureVideo,
40634
40767
  allowVirtualCameras = _ref.allowVirtualCameras,
40635
40768
  theme = _ref.theme,
40636
40769
  className = _ref.className,
40637
- _ref$showSuccessScree = _ref.showSuccessScreen,
40638
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
40770
+ lang = _ref.lang,
40771
+ debugMode = _ref.debugMode,
40772
+ skipSuccessScreen = _ref.skipSuccessScreen,
40773
+ showResultScreen = _ref.showResultScreen,
40774
+ showSuccessScreen = _ref.showSuccessScreen,
40639
40775
  _ref$showDiagnostics = _ref.showDiagnostics,
40640
40776
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
40641
40777
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -40647,6 +40783,27 @@ function IdValidationFlow(_ref) {
40647
40783
  onSubmitted = _ref.onSubmitted,
40648
40784
  children = _ref.children,
40649
40785
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
40786
+ // Flow-wide settings reach each step unless its own bag sets them.
40787
+ var _useMemo = useMemo(function () {
40788
+ return {
40789
+ view: inheritFlowSettings(viewProp, {
40790
+ lang: lang,
40791
+ debugMode: debugMode,
40792
+ skipSuccessScreen: skipSuccessScreen
40793
+ }),
40794
+ signatureView: inheritFlowSettings(signatureViewProp, {
40795
+ lang: lang,
40796
+ showCaptureDiagnostics: debugMode,
40797
+ skipSuccessScreen: skipSuccessScreen
40798
+ })
40799
+ };
40800
+ }, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
40801
+ view = _useMemo.view,
40802
+ signatureView = _useMemo.signatureView;
40803
+ useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
40804
+ capture: capture,
40805
+ signatureCapture: signatureCapture
40806
+ });
40650
40807
  // Config callbacks follow the latest render; see useLatestCallbacks.
40651
40808
  var latestCapture = useLatestCallbacks(capture);
40652
40809
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
@@ -40764,13 +40921,14 @@ function IdValidationFlow(_ref) {
40764
40921
  action: SubmissionAction.VALIDATE,
40765
40922
  submission: submission,
40766
40923
  theme: theme,
40767
- className: className
40924
+ className: className,
40925
+ lang: lang
40768
40926
  }, callbacks, {
40769
40927
  children: [jsx(CompositeWizard, _extends({}, ringScreens, {
40770
40928
  steps: steps,
40771
40929
  initialArtifacts: initialArtifacts,
40772
40930
  captureOnly: captureOnly,
40773
- showSuccessScreen: showSuccessScreen,
40931
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
40774
40932
  showDiagnostics: showDiagnostics,
40775
40933
  onArtifactsCollected: onCaptured,
40776
40934
  onSubmitted: onSubmitted
@@ -40789,13 +40947,16 @@ function FaceValidationFlow(_ref) {
40789
40947
  _ref$capture = _ref.capture,
40790
40948
  capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
40791
40949
  _ref$view = _ref.view,
40792
- view = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
40950
+ viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
40793
40951
  _ref$submission = _ref.submission,
40794
40952
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
40795
40953
  _ref$initialArtifacts = _ref.initialArtifacts,
40796
40954
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
40797
40955
  theme = _ref.theme,
40798
40956
  className = _ref.className,
40957
+ lang = _ref.lang,
40958
+ debugMode = _ref.debugMode,
40959
+ skipSuccessScreen = _ref.skipSuccessScreen,
40799
40960
  geolocationEnabled = _ref.geolocationEnabled,
40800
40961
  geolocationRequired = _ref.geolocationRequired,
40801
40962
  captureProgress = _ref.captureProgress,
@@ -40804,8 +40965,19 @@ function FaceValidationFlow(_ref) {
40804
40965
  onCaptured = _ref.onCaptured,
40805
40966
  onCaptureError = _ref.onCaptureError,
40806
40967
  children = _ref.children;
40968
+ // Flow-wide settings reach the step unless its own bag sets them.
40969
+ var view = useMemo(function () {
40970
+ return inheritFlowSettings(viewProp, {
40971
+ lang: lang,
40972
+ debugMode: debugMode,
40973
+ skipSuccessScreen: skipSuccessScreen
40974
+ });
40975
+ }, [debugMode, lang, skipSuccessScreen, viewProp]);
40807
40976
  var checkLivenessOptions = capture.checkLivenessOptions,
40808
40977
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
40978
+ useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
40979
+ capture: controllerCapture
40980
+ });
40809
40981
  // Config callbacks follow the latest render; see useLatestCallbacks.
40810
40982
  var latestCapture = useLatestCallbacks(controllerCapture);
40811
40983
  var latestLiveness = useLatestCallbacks(controllerCapture.liveness);
@@ -40861,6 +41033,7 @@ function FaceValidationFlow(_ref) {
40861
41033
  submission: submission,
40862
41034
  theme: theme,
40863
41035
  className: className,
41036
+ lang: lang,
40864
41037
  geolocationEnabled: geolocationEnabled,
40865
41038
  geolocationRequired: geolocationRequired,
40866
41039
  captureProgress: captureProgress,
@@ -40875,7 +41048,7 @@ function FaceValidationFlow(_ref) {
40875
41048
  });
40876
41049
  }
40877
41050
 
40878
- var _excluded$6 = ["client", "idController", "selfieController", "signatureController", "idCapture", "faceCapture", "signatureCapture", "idView", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "submission", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "onStepStarted", "onStepCompleted", "children"],
41051
+ var _excluded$6 = ["client", "idController", "selfieController", "signatureController", "idCapture", "faceCapture", "signatureCapture", "idView", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "onStepStarted", "onStepCompleted", "children"],
40879
41052
  _excluded2$3 = ["checkLivenessOptions"];
40880
41053
  var EMPTY_ID_CAPTURE$2 = {};
40881
41054
  var EMPTY_FACE_CAPTURE$4 = {};
@@ -40897,10 +41070,10 @@ function IdAndFaceValidationFlow(_ref) {
40897
41070
  _ref$signatureCapture = _ref.signatureCapture,
40898
41071
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
40899
41072
  _ref$idView = _ref.idView,
40900
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
41073
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
40901
41074
  _ref$faceView = _ref.faceView,
40902
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
40903
- signatureView = _ref.signatureView,
41075
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
41076
+ signatureViewProp = _ref.signatureView,
40904
41077
  captureSignature = _ref.captureSignature,
40905
41078
  captureSignatureVideo = _ref.captureSignatureVideo,
40906
41079
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -40910,8 +41083,11 @@ function IdAndFaceValidationFlow(_ref) {
40910
41083
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
40911
41084
  theme = _ref.theme,
40912
41085
  className = _ref.className,
40913
- _ref$showSuccessScree = _ref.showSuccessScreen,
40914
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
41086
+ lang = _ref.lang,
41087
+ debugMode = _ref.debugMode,
41088
+ skipSuccessScreen = _ref.skipSuccessScreen,
41089
+ showResultScreen = _ref.showResultScreen,
41090
+ showSuccessScreen = _ref.showSuccessScreen,
40915
41091
  _ref$showDiagnostics = _ref.showDiagnostics,
40916
41092
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
40917
41093
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -40925,8 +41101,33 @@ function IdAndFaceValidationFlow(_ref) {
40925
41101
  onStepCompleted = _ref.onStepCompleted,
40926
41102
  children = _ref.children,
40927
41103
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
41104
+ // Flow-wide settings reach each step unless its own bag sets them.
41105
+ var _useMemo = useMemo(function () {
41106
+ var settings = {
41107
+ lang: lang,
41108
+ debugMode: debugMode,
41109
+ skipSuccessScreen: skipSuccessScreen
41110
+ };
41111
+ return {
41112
+ idView: inheritFlowSettings(idViewProp, settings),
41113
+ faceView: inheritFlowSettings(faceViewProp, settings),
41114
+ signatureView: inheritFlowSettings(signatureViewProp, {
41115
+ lang: lang,
41116
+ showCaptureDiagnostics: debugMode,
41117
+ skipSuccessScreen: skipSuccessScreen
41118
+ })
41119
+ };
41120
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
41121
+ idView = _useMemo.idView,
41122
+ faceView = _useMemo.faceView,
41123
+ signatureView = _useMemo.signatureView;
40928
41124
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
40929
41125
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
41126
+ useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
41127
+ faceCapture: selfieCaptureConfig,
41128
+ idCapture: idCapture,
41129
+ signatureCapture: signatureCapture
41130
+ });
40930
41131
  // Config callbacks follow the latest render; see useLatestCallbacks.
40931
41132
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
40932
41133
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -41090,12 +41291,13 @@ function IdAndFaceValidationFlow(_ref) {
41090
41291
  action: SubmissionAction.VALIDATE,
41091
41292
  submission: submission,
41092
41293
  theme: theme,
41093
- className: className
41294
+ className: className,
41295
+ lang: lang
41094
41296
  }, callbacks, {
41095
41297
  children: [jsx(CompositeWizard, _extends({}, ringScreens, {
41096
41298
  steps: steps,
41097
41299
  initialArtifacts: initialArtifacts,
41098
- showSuccessScreen: showSuccessScreen,
41300
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
41099
41301
  showDiagnostics: showDiagnostics,
41100
41302
  onSubmitted: onSubmitted,
41101
41303
  onStepStarted: onStepStarted,
@@ -41150,9 +41352,9 @@ function SignatureKYCFlow(_ref) {
41150
41352
  _ref$signatureCapture = _ref.signatureCapture,
41151
41353
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
41152
41354
  _ref$faceView = _ref.faceView,
41153
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
41355
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
41154
41356
  _ref$signatureView = _ref.signatureView,
41155
- signatureView = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
41357
+ signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
41156
41358
  challengeResponse = _ref.challengeResponse,
41157
41359
  allowVirtualCameras = _ref.allowVirtualCameras,
41158
41360
  _ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
@@ -41178,6 +41380,8 @@ function SignatureKYCFlow(_ref) {
41178
41380
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
41179
41381
  theme = _ref.theme,
41180
41382
  className = _ref.className,
41383
+ lang = _ref.lang,
41384
+ debugMode = _ref.debugMode,
41181
41385
  geolocationEnabled = _ref.geolocationEnabled,
41182
41386
  geolocationRequired = _ref.geolocationRequired,
41183
41387
  captureProgress = _ref.captureProgress,
@@ -41185,13 +41389,33 @@ function SignatureKYCFlow(_ref) {
41185
41389
  loadingSpinner = _ref.loadingSpinner,
41186
41390
  onCaptured = _ref.onCaptured,
41187
41391
  onCaptureError = _ref.onCaptureError;
41392
+ // Flow-wide settings reach each step unless its own bag sets them.
41393
+ var _useMemo = useMemo(function () {
41394
+ return {
41395
+ faceView: inheritFlowSettings(faceViewProp, {
41396
+ lang: lang,
41397
+ debugMode: debugMode
41398
+ }),
41399
+ signatureView: inheritFlowSettings(signatureViewProp, {
41400
+ lang: lang,
41401
+ showCaptureDiagnostics: debugMode,
41402
+ skipSuccessScreen: skipSuccessScreen
41403
+ })
41404
+ };
41405
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
41406
+ faceView = _useMemo.faceView,
41407
+ signatureView = _useMemo.signatureView;
41188
41408
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41189
41409
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
41410
+ useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
41411
+ faceCapture: selfieCaptureConfig,
41412
+ signatureCapture: signatureCapture
41413
+ });
41190
41414
  // Config callbacks follow the latest render; see useLatestCallbacks.
41191
41415
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
41192
41416
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
41193
41417
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
41194
- var legacyVideoLayout = (_signatureView$legacy = signatureView == null ? void 0 : signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
41418
+ var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
41195
41419
  var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
41196
41420
  var sharedVideoRef = useRef(null);
41197
41421
  var _useState = useState(null),
@@ -41375,6 +41599,7 @@ function SignatureKYCFlow(_ref) {
41375
41599
  submission: submission,
41376
41600
  theme: theme,
41377
41601
  className: className,
41602
+ lang: lang,
41378
41603
  geolocationEnabled: geolocationEnabled,
41379
41604
  geolocationRequired: geolocationRequired,
41380
41605
  captureProgress: captureProgress,
@@ -41384,7 +41609,7 @@ function SignatureKYCFlow(_ref) {
41384
41609
  completed: stage === 'complete'
41385
41610
  }), stage !== 'complete' ? jsxs(HandoffRoot, {
41386
41611
  children: [jsx(SignatureCaptureView, _extends({}, signatureView, {
41387
- skipSuccessScreen: impliedSkipSuccessScreen(skipSuccessScreen != null ? skipSuccessScreen : signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
41612
+ skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
41388
41613
  controller: resolvedSignatureController,
41389
41614
  sessionReady: renderedStage === 'signature-capture',
41390
41615
  videoRef: sharedVideoRef,
@@ -41482,7 +41707,7 @@ var FaceStage = styled.div(_templateObject2 || (_templateObject2 = _taggedTempla
41482
41707
  return props.$visible ? 'block' : 'none';
41483
41708
  });
41484
41709
 
41485
- var _excluded$4 = ["client", "idController", "selfieController", "controller", "idCapture", "faceCapture", "capture", "idView", "faceView", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "skipIdCapture", "matchOnly", "readTextPrompt", "onMicrophoneAccessDenied", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "onCaptureError", "children"],
41710
+ var _excluded$4 = ["client", "idController", "selfieController", "controller", "idCapture", "faceCapture", "capture", "idView", "faceView", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "skipIdCapture", "matchOnly", "readTextPrompt", "onMicrophoneAccessDenied", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "onCaptureError", "children"],
41486
41711
  _excluded2$2 = ["checkLivenessOptions"];
41487
41712
  var EMPTY_ID_CAPTURE$1 = {};
41488
41713
  var EMPTY_FACE_CAPTURE$2 = {};
@@ -41506,11 +41731,11 @@ function VideoIdValidationFlow(_ref) {
41506
41731
  _ref$capture = _ref.capture,
41507
41732
  capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
41508
41733
  _ref$idView = _ref.idView,
41509
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
41734
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
41510
41735
  _ref$faceView = _ref.faceView,
41511
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
41736
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
41512
41737
  _ref$view = _ref.view,
41513
- view = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
41738
+ viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
41514
41739
  _ref$submission = _ref.submission,
41515
41740
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
41516
41741
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -41520,7 +41745,7 @@ function VideoIdValidationFlow(_ref) {
41520
41745
  signatureController = _ref.signatureController,
41521
41746
  _ref$signatureCapture = _ref.signatureCapture,
41522
41747
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
41523
- signatureView = _ref.signatureView,
41748
+ signatureViewProp = _ref.signatureView,
41524
41749
  captureSignature = _ref.captureSignature,
41525
41750
  captureSignatureVideo = _ref.captureSignatureVideo,
41526
41751
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -41532,8 +41757,11 @@ function VideoIdValidationFlow(_ref) {
41532
41757
  onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
41533
41758
  theme = _ref.theme,
41534
41759
  className = _ref.className,
41535
- _ref$showSuccessScree = _ref.showSuccessScreen,
41536
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
41760
+ lang = _ref.lang,
41761
+ debugMode = _ref.debugMode,
41762
+ skipSuccessScreen = _ref.skipSuccessScreen,
41763
+ showResultScreen = _ref.showResultScreen,
41764
+ showSuccessScreen = _ref.showSuccessScreen,
41537
41765
  _ref$showDiagnostics = _ref.showDiagnostics,
41538
41766
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
41539
41767
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -41546,8 +41774,39 @@ function VideoIdValidationFlow(_ref) {
41546
41774
  onCaptureError = _ref.onCaptureError,
41547
41775
  children = _ref.children,
41548
41776
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
41777
+ // Flow-wide settings reach each step unless its own bag sets them.
41778
+ var _useMemo = useMemo(function () {
41779
+ var settings = {
41780
+ lang: lang,
41781
+ debugMode: debugMode,
41782
+ skipSuccessScreen: skipSuccessScreen
41783
+ };
41784
+ return {
41785
+ idView: inheritFlowSettings(idViewProp, settings),
41786
+ faceView: inheritFlowSettings(faceViewProp, settings),
41787
+ view: inheritFlowSettings(viewProp, {
41788
+ lang: lang,
41789
+ debugMode: debugMode
41790
+ }),
41791
+ signatureView: inheritFlowSettings(signatureViewProp, {
41792
+ lang: lang,
41793
+ showCaptureDiagnostics: debugMode,
41794
+ skipSuccessScreen: skipSuccessScreen
41795
+ })
41796
+ };
41797
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
41798
+ idView = _useMemo.idView,
41799
+ faceView = _useMemo.faceView,
41800
+ view = _useMemo.view,
41801
+ signatureView = _useMemo.signatureView;
41549
41802
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41550
41803
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
41804
+ useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
41805
+ faceCapture: selfieCaptureConfig,
41806
+ idCapture: idCapture,
41807
+ capture: capture,
41808
+ signatureCapture: signatureCapture
41809
+ });
41551
41810
  // Config callbacks follow the latest render; see useLatestCallbacks.
41552
41811
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
41553
41812
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -41705,13 +41964,14 @@ function VideoIdValidationFlow(_ref) {
41705
41964
  action: action,
41706
41965
  submission: submission,
41707
41966
  theme: theme,
41708
- className: className
41967
+ className: className,
41968
+ lang: lang
41709
41969
  }, callbacks, {
41710
41970
  children: [jsx(CompositeWizard, _extends({}, ringScreens, {
41711
41971
  steps: steps,
41712
41972
  initialArtifacts: initialArtifacts,
41713
41973
  captureOnly: captureOnly,
41714
- showSuccessScreen: showSuccessScreen,
41974
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
41715
41975
  showDiagnostics: showDiagnostics,
41716
41976
  onArtifactsCollected: onCaptured,
41717
41977
  onSubmitted: onSubmitted
@@ -44536,60 +44796,6 @@ function toDocumentCaptureInput(document) {
44536
44796
  };
44537
44797
  }
44538
44798
 
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
44799
  function buildDocumentCaptureStep(controller, view, sessionReady) {
44594
44800
  if (view === void 0) {
44595
44801
  view = {};
@@ -44608,7 +44814,7 @@ function buildDocumentCaptureStep(controller, view, sessionReady) {
44608
44814
  };
44609
44815
  }
44610
44816
 
44611
- var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
44817
+ var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
44612
44818
  var EMPTY_DOCUMENTS = [];
44613
44819
  var EMPTY_CAPTURE$1 = {};
44614
44820
  var EMPTY_VIEW$2 = {};
@@ -44629,6 +44835,8 @@ function DocumentCaptureFlow(_ref) {
44629
44835
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
44630
44836
  theme = _ref.theme,
44631
44837
  className = _ref.className,
44838
+ lang = _ref.lang,
44839
+ debugMode = _ref.debugMode,
44632
44840
  onDocumentCaptured = _ref.onDocumentCaptured,
44633
44841
  onDocumentUploaded = _ref.onDocumentUploaded,
44634
44842
  onComplete = _ref.onComplete,
@@ -44638,15 +44846,16 @@ function DocumentCaptureFlow(_ref) {
44638
44846
  // props without being torn down and rebuilt on every render.
44639
44847
  var documentsRef = useRef(documents);
44640
44848
  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
44849
  var capturedRef = useRef(onDocumentCaptured);
44645
44850
  capturedRef.current = onDocumentCaptured;
44646
44851
  var uploadedRef = useRef(onDocumentUploaded);
44647
44852
  uploadedRef.current = onDocumentUploaded;
44648
44853
  var completeRef = useRef(onComplete);
44649
44854
  completeRef.current = onComplete;
44855
+ useMountOnlyWarnings('DocumentCaptureFlow', FLOW_MOUNT_ONLY_REMEDY, {
44856
+ capture: capture,
44857
+ documents: documents.map(toDocumentCaptureInput)
44858
+ });
44650
44859
  // Config callbacks follow the latest render; see useLatestCallbacks.
44651
44860
  var latestCapture = useLatestCallbacks(capture);
44652
44861
  var _useState = useState(function () {
@@ -44724,8 +44933,11 @@ function DocumentCaptureFlow(_ref) {
44724
44933
  var steps = useMemo(function () {
44725
44934
  return [buildDocumentCaptureStep(resolvedController, _extends({
44726
44935
  documents: documents
44727
- }, view))];
44728
- }, [documents, resolvedController, view]);
44936
+ }, inheritFlowSettings(view, {
44937
+ lang: lang,
44938
+ debugMode: debugMode
44939
+ })))];
44940
+ }, [debugMode, documents, lang, resolvedController, view]);
44729
44941
  var onArtifactsCollected = useCallback(function () {
44730
44942
  // captureOnly hands the (empty) artifacts back here; completion is reported
44731
44943
  // through onComplete with the documents instead.
@@ -44735,7 +44947,8 @@ function DocumentCaptureFlow(_ref) {
44735
44947
  action: SubmissionAction.NONE,
44736
44948
  submission: submission,
44737
44949
  theme: theme,
44738
- className: className
44950
+ className: className,
44951
+ lang: lang
44739
44952
  }, callbacks, {
44740
44953
  children: [jsx(CompositeWizard, {
44741
44954
  steps: steps,
@@ -44746,7 +44959,7 @@ function DocumentCaptureFlow(_ref) {
44746
44959
  }));
44747
44960
  }
44748
44961
 
44749
- var _excluded$2 = ["client", "submission", "selfieController", "signatureController", "faceCapture", "signatureCapture", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
44962
+ var _excluded$2 = ["client", "submission", "selfieController", "signatureController", "faceCapture", "signatureCapture", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
44750
44963
  _excluded2$1 = ["checkLivenessOptions"];
44751
44964
  var EMPTY_FACE_CAPTURE$1 = {};
44752
44965
  var EMPTY_SIGNATURE_CAPTURE$1 = {};
@@ -44763,8 +44976,8 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44763
44976
  _ref$signatureCapture = _ref.signatureCapture,
44764
44977
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
44765
44978
  _ref$faceView = _ref.faceView,
44766
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
44767
- signatureView = _ref.signatureView,
44979
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
44980
+ signatureViewProp = _ref.signatureView,
44768
44981
  captureSignature = _ref.captureSignature,
44769
44982
  captureSignatureVideo = _ref.captureSignatureVideo,
44770
44983
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -44772,8 +44985,11 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44772
44985
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
44773
44986
  theme = _ref.theme,
44774
44987
  className = _ref.className,
44775
- _ref$showSuccessScree = _ref.showSuccessScreen,
44776
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
44988
+ lang = _ref.lang,
44989
+ debugMode = _ref.debugMode,
44990
+ skipSuccessScreen = _ref.skipSuccessScreen,
44991
+ showResultScreen = _ref.showResultScreen,
44992
+ showSuccessScreen = _ref.showSuccessScreen,
44777
44993
  _ref$showDiagnostics = _ref.showDiagnostics,
44778
44994
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
44779
44995
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -44785,8 +45001,29 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44785
45001
  onCaptureError = _ref.onCaptureError,
44786
45002
  children = _ref.children,
44787
45003
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
45004
+ // Flow-wide settings reach each step unless its own bag sets them.
45005
+ var _useMemo = useMemo(function () {
45006
+ return {
45007
+ faceView: inheritFlowSettings(faceViewProp, {
45008
+ lang: lang,
45009
+ debugMode: debugMode,
45010
+ skipSuccessScreen: skipSuccessScreen
45011
+ }),
45012
+ signatureView: inheritFlowSettings(signatureViewProp, {
45013
+ lang: lang,
45014
+ showCaptureDiagnostics: debugMode,
45015
+ skipSuccessScreen: skipSuccessScreen
45016
+ })
45017
+ };
45018
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
45019
+ faceView = _useMemo.faceView,
45020
+ signatureView = _useMemo.signatureView;
44788
45021
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
44789
45022
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
45023
+ useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
45024
+ faceCapture: selfieCaptureConfig,
45025
+ signatureCapture: signatureCapture
45026
+ });
44790
45027
  // Config callbacks follow the latest render; see useLatestCallbacks.
44791
45028
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
44792
45029
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -44912,19 +45149,20 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44912
45149
  submission: submission,
44913
45150
  showEnrollmentId: showDiagnostics,
44914
45151
  theme: theme,
44915
- className: className
45152
+ className: className,
45153
+ lang: lang
44916
45154
  }, callbacks, {
44917
45155
  children: [jsx(CompositeWizard, _extends({}, ringScreens, {
44918
45156
  steps: steps,
44919
45157
  initialArtifacts: initialArtifacts,
44920
- showSuccessScreen: showSuccessScreen,
45158
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
44921
45159
  showDiagnostics: showDiagnostics,
44922
45160
  onSubmitted: onSubmitted
44923
45161
  })), children]
44924
45162
  }));
44925
45163
  }
44926
45164
 
44927
- var _excluded$1 = ["client", "submission", "idController", "selfieController", "signatureController", "videoIdController", "idCapture", "faceCapture", "signatureCapture", "videoIdCapture", "idView", "faceView", "signatureView", "videoIdView", "captureSignature", "captureSignatureVideo", "captureVideoId", "allowVirtualCameras", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
45165
+ var _excluded$1 = ["client", "submission", "idController", "selfieController", "signatureController", "videoIdController", "idCapture", "faceCapture", "signatureCapture", "videoIdCapture", "idView", "faceView", "signatureView", "videoIdView", "captureSignature", "captureSignatureVideo", "captureVideoId", "allowVirtualCameras", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
44928
45166
  _excluded2 = ["checkLivenessOptions"];
44929
45167
  var EMPTY_ID_CAPTURE = {};
44930
45168
  var EMPTY_FACE_CAPTURE = {};
@@ -44957,11 +45195,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
44957
45195
  _ref$videoIdCapture = _ref.videoIdCapture,
44958
45196
  videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
44959
45197
  _ref$idView = _ref.idView,
44960
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
45198
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
44961
45199
  _ref$faceView = _ref.faceView,
44962
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
44963
- signatureView = _ref.signatureView,
44964
- videoIdView = _ref.videoIdView,
45200
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
45201
+ signatureViewProp = _ref.signatureView,
45202
+ videoIdViewProp = _ref.videoIdView,
44965
45203
  captureSignature = _ref.captureSignature,
44966
45204
  captureSignatureVideo = _ref.captureSignatureVideo,
44967
45205
  _ref$captureVideoId = _ref.captureVideoId,
@@ -44971,8 +45209,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
44971
45209
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
44972
45210
  theme = _ref.theme,
44973
45211
  className = _ref.className,
44974
- _ref$showSuccessScree = _ref.showSuccessScreen,
44975
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
45212
+ lang = _ref.lang,
45213
+ debugMode = _ref.debugMode,
45214
+ skipSuccessScreen = _ref.skipSuccessScreen,
45215
+ showResultScreen = _ref.showResultScreen,
45216
+ showSuccessScreen = _ref.showSuccessScreen,
44976
45217
  _ref$showDiagnostics = _ref.showDiagnostics,
44977
45218
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
44978
45219
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -44984,9 +45225,39 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
44984
45225
  onCaptureError = _ref.onCaptureError,
44985
45226
  children = _ref.children,
44986
45227
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
44987
- var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
45228
+ // Flow-wide settings reach each step unless its own bag sets them.
45229
+ var _useMemo = useMemo(function () {
45230
+ var settings = {
45231
+ lang: lang,
45232
+ debugMode: debugMode,
45233
+ skipSuccessScreen: skipSuccessScreen
45234
+ };
45235
+ return {
45236
+ idView: inheritFlowSettings(idViewProp, settings),
45237
+ faceView: inheritFlowSettings(faceViewProp, settings),
45238
+ signatureView: inheritFlowSettings(signatureViewProp, {
45239
+ lang: lang,
45240
+ showCaptureDiagnostics: debugMode,
45241
+ skipSuccessScreen: skipSuccessScreen
45242
+ }),
45243
+ videoIdView: inheritFlowSettings(videoIdViewProp, {
45244
+ lang: lang,
45245
+ debugMode: debugMode
45246
+ })
45247
+ };
45248
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
45249
+ idView = _useMemo.idView,
45250
+ faceView = _useMemo.faceView,
45251
+ signatureView = _useMemo.signatureView,
45252
+ videoIdView = _useMemo.videoIdView;
44988
45253
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
44989
45254
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
45255
+ useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
45256
+ faceCapture: selfieCaptureConfig,
45257
+ idCapture: idCapture,
45258
+ signatureCapture: signatureCapture,
45259
+ videoIdCapture: videoIdCapture
45260
+ });
44990
45261
  // Config callbacks follow the latest render; see useLatestCallbacks.
44991
45262
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
44992
45263
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -45194,26 +45465,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45194
45465
  submission: submission,
45195
45466
  showEnrollmentId: showDiagnostics,
45196
45467
  theme: theme,
45197
- className: className
45468
+ className: className,
45469
+ lang: lang
45198
45470
  }, callbacks, {
45199
45471
  children: [steps ? jsx(CompositeWizard, _extends({}, ringScreens, {
45200
45472
  steps: steps,
45201
45473
  initialArtifacts: initialArtifacts,
45202
- showSuccessScreen: showSuccessScreen,
45474
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
45203
45475
  showDiagnostics: showDiagnostics,
45204
45476
  onSubmitted: onSubmitted
45205
- })) :
45206
- // `loadingStage` is what enables the customer's `loadingSpinner`:
45207
- // without it OrbStatusScreen hard-renders the orb, so this was the one
45208
- // loading surface in the SDK that ignored a supplied component
45209
- // outright — in the flow whose double-loader prompted the fix.
45210
- jsx(OrbStatusScreen, {
45211
- state: "solving",
45212
- text: preparing.preparingText,
45213
- loadingStage: "preparing"
45214
- }), children]
45477
+ })) : jsx(PreparingScreen, {}), children]
45215
45478
  }));
45216
45479
  }
45480
+ /** Translated inside the chassis, so the flow's `lang` reaches it. */
45481
+ function PreparingScreen() {
45482
+ var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
45483
+ // `loadingStage` is what enables the customer's `loadingSpinner`: without it
45484
+ // OrbStatusScreen hard-renders the orb, so this was the one loading surface
45485
+ // in the SDK that ignored a supplied component outright — in the flow whose
45486
+ // double-loader prompted the fix.
45487
+ return jsx(OrbStatusScreen, {
45488
+ state: "solving",
45489
+ text: preparing.preparingText,
45490
+ loadingStage: "preparing"
45491
+ });
45492
+ }
45217
45493
 
45218
45494
  var ALLOWED_MISMATCH_RETRIES$1 = 0;
45219
45495
  var MAX_LIVENESS_ATTEMPTS$1 = 3;
@@ -45881,6 +46157,8 @@ function CustomerMatchFlow(_ref) {
45881
46157
  view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
45882
46158
  theme = _ref.theme,
45883
46159
  className = _ref.className,
46160
+ lang = _ref.lang,
46161
+ debugMode = _ref.debugMode,
45884
46162
  geolocationEnabled = _ref.geolocationEnabled,
45885
46163
  geolocationRequired = _ref.geolocationRequired,
45886
46164
  remoteDiagnostics = _ref.remoteDiagnostics,
@@ -45909,6 +46187,9 @@ function CustomerMatchFlow(_ref) {
45909
46187
  onExitAfterFailure = _ref.onExitAfterFailure;
45910
46188
  var checkLivenessOptions = capture.checkLivenessOptions,
45911
46189
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded);
46190
+ useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, {
46191
+ capture: controllerCapture
46192
+ });
45912
46193
  // Config callbacks follow the latest render; see useLatestCallbacks.
45913
46194
  var latestCapture = useLatestCallbacks(controllerCapture);
45914
46195
  // These flows drive the live-check themselves, per capture, and read its
@@ -45940,7 +46221,10 @@ function CustomerMatchFlow(_ref) {
45940
46221
  // Only the auto-continue half applies here: the plain SelfieCaptureView has
45941
46222
  // no capture review screen to skip (that is FaceLivenessView's), and this
45942
46223
  // flow's own terminal screens are governed by `skipSuccessScreen` below.
45943
- var resolvedView = _extends({}, view, {
46224
+ var resolvedView = _extends({}, inheritFlowSettings(view, {
46225
+ lang: lang,
46226
+ debugMode: debugMode
46227
+ }), {
45944
46228
  autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
45945
46229
  });
45946
46230
  // Reset during render, not in an effect: an auto-requesting capture stage
@@ -46035,6 +46319,7 @@ function CustomerMatchFlow(_ref) {
46035
46319
  submission: submission,
46036
46320
  theme: theme,
46037
46321
  className: className,
46322
+ lang: lang,
46038
46323
  geolocationEnabled: geolocationEnabled,
46039
46324
  geolocationRequired: geolocationRequired,
46040
46325
  remoteDiagnostics: remoteDiagnostics,
@@ -47774,7 +48059,7 @@ function mapIdValidationProps(props, ctx) {
47774
48059
  // post-submission diagnostics page on this one flag
47775
48060
  // (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
47776
48061
  // here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
47777
- // while the terminal page needs `showSuccessScreen` to render at all and
48062
+ // while the terminal page needs `showResultScreen` to render at all and
47778
48063
  // `showDiagnostics` to include the request/response bodies. Mapping only
47779
48064
  // the first left `debugMode` customers on a blank screen after submitting,
47780
48065
  // because CompositeWizard falls through to `return null`.
@@ -47782,7 +48067,7 @@ function mapIdValidationProps(props, ctx) {
47782
48067
  // Both take the same flag: sdk2's page showed the response body (behind a
47783
48068
  // toggle) whenever debugMode was on, so gating diagnostics separately here
47784
48069
  // would be a NEW restriction, not parity.
47785
- showSuccessScreen: props.debugMode,
48070
+ showResultScreen: props.debugMode,
47786
48071
  showDiagnostics: props.debugMode,
47787
48072
  // `onSubmit` is NOT mapped to a flow prop: it goes to the client config
47788
48073
  // (see mapClientConfig), which is the layer sdk2 put it at and the only
@@ -47963,7 +48248,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
47963
48248
  remoteDiagnostics: props.remoteDiagnostics,
47964
48249
  loadingSpinner: props.loadingSpinner,
47965
48250
  // See mapIdValidationProps for why `debugMode` feeds both.
47966
- showSuccessScreen: props.debugMode,
48251
+ showResultScreen: props.debugMode,
47967
48252
  showDiagnostics: props.debugMode,
47968
48253
  onStepStarted: emit ? function (stepId) {
47969
48254
  var stage = journeyStageForStepId(stepId);
@@ -48085,7 +48370,7 @@ function mapSignatureKYCProps(props, ctx) {
48085
48370
  // both the boolean and async callback forms at the flow-level seam.
48086
48371
  //
48087
48372
  // `debugMode` forces it back on, completing the fold mapIdValidationProps
48088
- // does with `showSuccessScreen`/`showDiagnostics`: the capture readout
48373
+ // does with `showResultScreen`/`showDiagnostics`: the capture readout
48089
48374
  // renders INSIDE the review, so a consumer who skips the review and turns
48090
48375
  // debugMode on would otherwise get the switch with nowhere for it to show
48091
48376
  // — silently, in the one configuration it exists for.
@@ -48256,7 +48541,7 @@ function mapVideoIdValidationProps(props, ctx) {
48256
48541
  remoteDiagnostics: props.remoteDiagnostics,
48257
48542
  loadingSpinner: props.loadingSpinner,
48258
48543
  // See mapIdValidationProps for why `debugMode` feeds both.
48259
- showSuccessScreen: props.debugMode,
48544
+ showResultScreen: props.debugMode,
48260
48545
  showDiagnostics: props.debugMode,
48261
48546
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48262
48547
  onRequestFailure: props.onRequestFailure,
@@ -48487,7 +48772,7 @@ function mapCustomerBiometricsEnrollmentProps(props, ctx) {
48487
48772
  remoteDiagnostics: props.remoteDiagnostics,
48488
48773
  loadingSpinner: props.loadingSpinner,
48489
48774
  // See mapIdValidationProps for why `debugMode` feeds both.
48490
- showSuccessScreen: props.debugMode,
48775
+ showResultScreen: props.debugMode,
48491
48776
  showDiagnostics: props.debugMode,
48492
48777
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48493
48778
  // sdk2's enrollment twin of `onApproved`.
@@ -48580,7 +48865,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48580
48865
  remoteDiagnostics: props.remoteDiagnostics,
48581
48866
  loadingSpinner: props.loadingSpinner,
48582
48867
  // See mapIdValidationProps for why `debugMode` feeds both.
48583
- showSuccessScreen: props.debugMode,
48868
+ showResultScreen: props.debugMode,
48584
48869
  showDiagnostics: props.debugMode,
48585
48870
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48586
48871
  onApproved: withSubmissionRequest(props.onEnrolled, ctx),
@@ -48590,7 +48875,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48590
48875
  });
48591
48876
  }
48592
48877
 
48593
- var webSdkVersion = '2.6.3-changeset-release-develop-c045c91';
48878
+ var webSdkVersion = '2.6.3-changeset-release-develop-124a427';
48594
48879
 
48595
48880
  // GENERATED by scripts/styleBagTypes.mjs from
48596
48881
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not