idmission-web-sdk 2.6.3-changeset-release-develop-0ac75d2 → 2.6.3-changeset-release-develop-eac763c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultCompat(ReactDOM);
29
29
 
30
30
  // Extracted from the barrel so modules inside this package can read the
31
31
  // version without importing index.ts (which would be circular).
32
- var webSdkUiVersion = '0.5.0';
32
+ var webSdkUiVersion = '0.5.1';
33
33
 
34
34
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
35
35
  try {
@@ -457,17 +457,17 @@ function _iterableToArrayLimit(r, l) {
457
457
  }
458
458
  }
459
459
 
460
- function _arrayLikeToArray$v(r, a) {
460
+ function _arrayLikeToArray$w(r, a) {
461
461
  (null == a || a > r.length) && (a = r.length);
462
462
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
463
463
  return n;
464
464
  }
465
465
 
466
- function _unsupportedIterableToArray$v(r, a) {
466
+ function _unsupportedIterableToArray$w(r, a) {
467
467
  if (r) {
468
- if ("string" == typeof r) return _arrayLikeToArray$v(r, a);
468
+ if ("string" == typeof r) return _arrayLikeToArray$w(r, a);
469
469
  var t = {}.toString.call(r).slice(8, -1);
470
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0;
470
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0;
471
471
  }
472
472
  }
473
473
 
@@ -476,11 +476,11 @@ function _nonIterableRest() {
476
476
  }
477
477
 
478
478
  function _slicedToArray(r, e) {
479
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$v(r, e) || _nonIterableRest();
479
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$w(r, e) || _nonIterableRest();
480
480
  }
481
481
 
482
482
  function _arrayWithoutHoles(r) {
483
- if (Array.isArray(r)) return _arrayLikeToArray$v(r);
483
+ if (Array.isArray(r)) return _arrayLikeToArray$w(r);
484
484
  }
485
485
 
486
486
  function _iterableToArray(r) {
@@ -492,10 +492,10 @@ function _nonIterableSpread() {
492
492
  }
493
493
 
494
494
  function _toConsumableArray(r) {
495
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$v(r) || _nonIterableSpread();
495
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$w(r) || _nonIterableSpread();
496
496
  }
497
497
 
498
- var webSdkCoreVersion = '0.5.0';
498
+ var webSdkCoreVersion = '0.5.1';
499
499
 
500
500
  var maxTime = 86400000;
501
501
  var maxCount = 1000000;
@@ -1267,9 +1267,9 @@ var attemptStatuses = ["active", "completed", "failed", "superseded", "disposed"
1267
1267
  ({
1268
1268
  workflowMilestones: [].concat(_toConsumableArray(workflowMilestones), ["task-completed"])});
1269
1269
 
1270
- 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."); }
1271
- 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; } }
1272
- 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; }
1270
+ 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."); }
1271
+ 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; } }
1272
+ function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1273
1273
  var maximumBytes = 32 * 1024;
1274
1274
  var maximumTime = 86400000;
1275
1275
  var uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
@@ -1337,7 +1337,7 @@ function validateSnapshot(report) {
1337
1337
  unique(report.phaseTotals.map(function (total) {
1338
1338
  return total.phase;
1339
1339
  }));
1340
- for (var _iterator = _createForOfIteratorHelperLoose$u(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1340
+ for (var _iterator = _createForOfIteratorHelperLoose$v(report.phaseTotals), _step; !(_step = _iterator()).done;) {
1341
1341
  var _total4 = _step.value;
1342
1342
  requireValid(member(phases, _total4.phase) && integer(_total4.completions, 1000000) && _total4.completions <= _total4.duration.entries);
1343
1343
  durationValid(_total4.duration);
@@ -1359,7 +1359,7 @@ function validateSnapshot(report) {
1359
1359
  requireValid(report.recentTransitions.length <= 32);
1360
1360
  var index = 0;
1361
1361
  var atMs = 0;
1362
- for (var _iterator2 = _createForOfIteratorHelperLoose$u(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1362
+ for (var _iterator2 = _createForOfIteratorHelperLoose$v(report.recentTransitions), _step2; !(_step2 = _iterator2()).done;) {
1363
1363
  var transition = _step2.value;
1364
1364
  requireValid(member(transitionKinds, transition.kind));
1365
1365
  requireValid(integer(transition.index, 1000000) && transition.index > index && integer(transition.atMs) && transition.atMs >= atMs && transition.atMs <= report.elapsedMs);
@@ -1383,12 +1383,12 @@ function validateSnapshot(report) {
1383
1383
  unique(report.controllerGuidanceTotals.map(function (total) {
1384
1384
  return JSON.stringify([total.phase, total.guidance]);
1385
1385
  }));
1386
- for (var _iterator3 = _createForOfIteratorHelperLoose$u(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1386
+ for (var _iterator3 = _createForOfIteratorHelperLoose$v(report.guidanceTotals), _step3; !(_step3 = _iterator3()).done;) {
1387
1387
  var _total2 = _step3.value;
1388
1388
  durationValid(_total2.duration);
1389
1389
  exposureValid(_total2.phase, _total2.exposure);
1390
1390
  }
1391
- for (var _iterator4 = _createForOfIteratorHelperLoose$u(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1391
+ for (var _iterator4 = _createForOfIteratorHelperLoose$v(report.controllerGuidanceTotals), _step4; !(_step4 = _iterator4()).done;) {
1392
1392
  var _total3 = _step4.value;
1393
1393
  durationValid(_total3.duration);
1394
1394
  guidanceValid(_total3.phase, _total3.guidance, false);
@@ -1422,7 +1422,7 @@ function encodeProgressBatch(batch) {
1422
1422
  requireValid(batch.schemaVersion === 1 && batch.sdkVersion.length > 0 && batch.sdkVersion.length <= 32 && batch.sessionId.length > 0 && uuidPattern.test(batch.producerId) && integer(batch.sentAtUnixMs, Number.MAX_SAFE_INTEGER));
1423
1423
  var reports = [];
1424
1424
  var dropped = [];
1425
- for (var _iterator5 = _createForOfIteratorHelperLoose$u(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1425
+ for (var _iterator5 = _createForOfIteratorHelperLoose$v(batch.reports), _step5; !(_step5 = _iterator5()).done;) {
1426
1426
  var report = _step5.value;
1427
1427
  try {
1428
1428
  validateSnapshot(report);
@@ -1451,9 +1451,9 @@ function encodeProgressBatch(batch) {
1451
1451
  };
1452
1452
  }
1453
1453
 
1454
- 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."); }
1455
- 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; } }
1456
- 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; }
1454
+ 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."); }
1455
+ 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; } }
1456
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
1457
1457
  /** Visible time without progress in a capture phase that arms a stream. */
1458
1458
  var stallMs = 20000;
1459
1459
  var capturePhases = new Set(["id-front", "id-back", "passport", "selfie", "signature"]);
@@ -1516,7 +1516,7 @@ function createSessionActor(options, deps) {
1516
1516
  var due = new Map();
1517
1517
  var eligibilityRetries = new Map();
1518
1518
  function dropped(report) {
1519
- for (var _iterator = _createForOfIteratorHelperLoose$t(streams), _step; !(_step = _iterator()).done;) {
1519
+ for (var _iterator = _createForOfIteratorHelperLoose$u(streams), _step; !(_step = _iterator()).done;) {
1520
1520
  var stream = _step.value;
1521
1521
  if (stream.state.report.streamId === report.streamId) stream.state = _extends({}, stream.state, {
1522
1522
  report: _extends({}, stream.state.report, {
@@ -1561,7 +1561,7 @@ function createSessionActor(options, deps) {
1561
1561
  var retained = new Set(queued.map(function (report) {
1562
1562
  return report.sequence;
1563
1563
  }));
1564
- for (var _iterator2 = _createForOfIteratorHelperLoose$t(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1564
+ for (var _iterator2 = _createForOfIteratorHelperLoose$u(due.keys()), _step2; !(_step2 = _iterator2()).done;) {
1565
1565
  var _sequence = _step2.value;
1566
1566
  if (!retained.has(_sequence)) due["delete"](_sequence);
1567
1567
  }
@@ -1574,7 +1574,7 @@ function createSessionActor(options, deps) {
1574
1574
  var keys = new Set(reports.map(function (report) {
1575
1575
  return report.sequence;
1576
1576
  }));
1577
- for (var _iterator3 = _createForOfIteratorHelperLoose$t(pending), _step3; !(_step3 = _iterator3()).done;) {
1577
+ for (var _iterator3 = _createForOfIteratorHelperLoose$u(pending), _step3; !(_step3 = _iterator3()).done;) {
1578
1578
  var _step3$value = _slicedToArray(_step3.value, 2),
1579
1579
  key = _step3$value[0],
1580
1580
  report = _step3$value[1];
@@ -1598,14 +1598,14 @@ function createSessionActor(options, deps) {
1598
1598
  if ((_emergency = emergency) != null && _emergency.reports.some(function (report) {
1599
1599
  return report.context === context;
1600
1600
  })) emergency = null;
1601
- for (var _iterator4 = _createForOfIteratorHelperLoose$t(pending), _step4; !(_step4 = _iterator4()).done;) {
1601
+ for (var _iterator4 = _createForOfIteratorHelperLoose$u(pending), _step4; !(_step4 = _iterator4()).done;) {
1602
1602
  var _step4$value = _slicedToArray(_step4.value, 2),
1603
1603
  key = _step4$value[0],
1604
1604
  report = _step4$value[1];
1605
1605
  if (report.context === context) pending["delete"](key);
1606
1606
  }
1607
1607
  for (var i = terminal.length - 1; i >= 0; i--) if (terminal[i].context === context) terminal.splice(i, 1);
1608
- for (var _iterator5 = _createForOfIteratorHelperLoose$t(streams), _step5; !(_step5 = _iterator5()).done;) {
1608
+ for (var _iterator5 = _createForOfIteratorHelperLoose$u(streams), _step5; !(_step5 = _iterator5()).done;) {
1609
1609
  var stream = _step5.value;
1610
1610
  if (stream.state.report.context === context) {
1611
1611
  stream.disposed = true;
@@ -1634,7 +1634,7 @@ function createSessionActor(options, deps) {
1634
1634
  unsubscribe();
1635
1635
  cancelTimer == null || cancelTimer();
1636
1636
  cancelRequest == null || cancelRequest();
1637
- for (var _iterator6 = _createForOfIteratorHelperLoose$t(streams), _step6; !(_step6 = _iterator6()).done;) {
1637
+ for (var _iterator6 = _createForOfIteratorHelperLoose$u(streams), _step6; !(_step6 = _iterator6()).done;) {
1638
1638
  var stream = _step6.value;
1639
1639
  stream.disposed = true;
1640
1640
  }
@@ -1656,7 +1656,7 @@ function createSessionActor(options, deps) {
1656
1656
  sentAtUnixMs: Math.floor(deps.unixMs()),
1657
1657
  reports: reports
1658
1658
  });
1659
- for (var _iterator7 = _createForOfIteratorHelperLoose$t(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1659
+ for (var _iterator7 = _createForOfIteratorHelperLoose$u(result.dropped), _step7; !(_step7 = _iterator7()).done;) {
1660
1660
  var report = _step7.value;
1661
1661
  dropped(report);
1662
1662
  removeReports([report]);
@@ -1838,14 +1838,14 @@ function createSessionActor(options, deps) {
1838
1838
  retries = 0;
1839
1839
  failureStreak = 0;
1840
1840
  } else if (result.kind === "permanent") {
1841
- for (_iterator11 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step11 = _iterator11()).done;) {
1841
+ for (_iterator11 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step11 = _iterator11()).done;) {
1842
1842
  report = _step11.value;
1843
1843
  disable(report.context);
1844
1844
  }
1845
1845
  } else {
1846
1846
  backoff(result);
1847
1847
  if (++retries > 3) {
1848
- for (_iterator12 = _createForOfIteratorHelperLoose$t(sending.reports); !(_step12 = _iterator12()).done;) {
1848
+ for (_iterator12 = _createForOfIteratorHelperLoose$u(sending.reports); !(_step12 = _iterator12()).done;) {
1849
1849
  _report = _step12.value;
1850
1850
  dropped(_report);
1851
1851
  }
@@ -1873,7 +1873,7 @@ function createSessionActor(options, deps) {
1873
1873
  backoff({});
1874
1874
  if (authorizing) failedEligibility(authorizing);
1875
1875
  if (frozen && ++retries > 3) {
1876
- for (_iterator13 = _createForOfIteratorHelperLoose$t(frozen.reports); !(_step13 = _iterator13()).done;) {
1876
+ for (_iterator13 = _createForOfIteratorHelperLoose$u(frozen.reports); !(_step13 = _iterator13()).done;) {
1877
1877
  _report2 = _step13.value;
1878
1878
  dropped(_report2);
1879
1879
  }
@@ -1928,7 +1928,7 @@ function createSessionActor(options, deps) {
1928
1928
  if (outcome.kind === "committed") {
1929
1929
  if (emergency === sending) emergency = null;
1930
1930
  } else if (outcome.kind === "permanent") {
1931
- for (var _iterator8 = _createForOfIteratorHelperLoose$t(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1931
+ for (var _iterator8 = _createForOfIteratorHelperLoose$u(sending.reports), _step8; !(_step8 = _iterator8()).done;) {
1932
1932
  var report = _step8.value;
1933
1933
  disable(report.context);
1934
1934
  }
@@ -1997,7 +1997,7 @@ function createSessionActor(options, deps) {
1997
1997
  }
1998
1998
  function tick() {
1999
1999
  if (disposed || visibility === "hidden") return;
2000
- for (var _iterator9 = _createForOfIteratorHelperLoose$t(streams), _step9; !(_step9 = _iterator9()).done;) {
2000
+ for (var _iterator9 = _createForOfIteratorHelperLoose$u(streams), _step9; !(_step9 = _iterator9()).done;) {
2001
2001
  var stream = _step9.value;
2002
2002
  var report = prepareDeadline(stream);
2003
2003
  if (!(report != null && report.current)) continue;
@@ -2028,7 +2028,7 @@ function createSessionActor(options, deps) {
2028
2028
  if (disposed || visibility === "hidden") return;
2029
2029
  var delay = Infinity;
2030
2030
  if (!busy && (pending.size || terminal.length || frozen || emergency)) delay = Math.max(0, deliveryReadyAt() - deps.now());
2031
- for (var _iterator0 = _createForOfIteratorHelperLoose$t(streams), _step0; !(_step0 = _iterator0()).done;) {
2031
+ for (var _iterator0 = _createForOfIteratorHelperLoose$u(streams), _step0; !(_step0 = _iterator0()).done;) {
2032
2032
  var stream = _step0.value;
2033
2033
  var report = prepareDeadline(stream);
2034
2034
  if (!(report != null && report.current)) continue;
@@ -2125,7 +2125,7 @@ function createSessionActor(options, deps) {
2125
2125
  return guard$2(function () {
2126
2126
  if (disposed || next === visibility) return;
2127
2127
  visibility = next;
2128
- for (var _iterator1 = _createForOfIteratorHelperLoose$t(streams), _step1; !(_step1 = _iterator1()).done;) {
2128
+ for (var _iterator1 = _createForOfIteratorHelperLoose$u(streams), _step1; !(_step1 = _iterator1()).done;) {
2129
2129
  var stream = _step1.value;
2130
2130
  if (stream.state.report.attemptStatus !== "active") continue;
2131
2131
  armIfStalled(stream);
@@ -2167,7 +2167,7 @@ function createSessionActor(options, deps) {
2167
2167
  if (taskDisposed) return;
2168
2168
  taskDisposed = true;
2169
2169
  if (workflowStream) close(workflowStream, "disposed");
2170
- for (var _iterator10 = _createForOfIteratorHelperLoose$t(captures), _step10; !(_step10 = _iterator10()).done;) {
2170
+ for (var _iterator10 = _createForOfIteratorHelperLoose$u(captures), _step10; !(_step10 = _iterator10()).done;) {
2171
2171
  var capture = _step10.value;
2172
2172
  capture.dispose();
2173
2173
  }
@@ -3562,9 +3562,9 @@ function blobToB64(blob) {
3562
3562
  });
3563
3563
  }
3564
3564
 
3565
- 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."); }
3566
- 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; } }
3567
- 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; }
3565
+ 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."); }
3566
+ 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; } }
3567
+ 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; }
3568
3568
  /**
3569
3569
  * Parser for AAMVA (American Association of Motor Vehicle Administrators)
3570
3570
  * PDF417 barcode data found on US and Canadian driver's licenses.
@@ -3826,7 +3826,7 @@ function parseAAMVABarcode(rawData) {
3826
3826
  DAD: false
3827
3827
  };
3828
3828
  var daaValue = null;
3829
- for (var _iterator = _createForOfIteratorHelperLoose$s(lines), _step; !(_step = _iterator()).done;) {
3829
+ for (var _iterator = _createForOfIteratorHelperLoose$t(lines), _step; !(_step = _iterator()).done;) {
3830
3830
  var line = _step.value;
3831
3831
  var match = line.match(fieldRegex);
3832
3832
  if (match) {
@@ -3867,7 +3867,7 @@ function parseAAMVABarcode(rawData) {
3867
3867
  result.fields.push(field);
3868
3868
  }
3869
3869
  };
3870
- for (var _iterator2 = _createForOfIteratorHelperLoose$s(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3870
+ for (var _iterator2 = _createForOfIteratorHelperLoose$t(daaFields), _step2; !(_step2 = _iterator2()).done;) {
3871
3871
  _loop();
3872
3872
  }
3873
3873
  }
@@ -5937,6 +5937,131 @@ function useLatestCallbacks(config) {
5937
5937
  })[0];
5938
5938
  }
5939
5939
 
5940
+ // Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
5941
+ // try/catch) and guide_images/useGuideImages.ts (warn, for the
5942
+ // missing-dimensions warning). Trimmed transform vs sdk2's
5943
+ // lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
5944
+ // "no TS enum" convention, plan.md Global Constraints); numeric ordering
5945
+ // (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
5946
+ // LogLevel.X` comparisons behave identically.
5947
+ var noop = function noop() {};
5948
+ var debug = function debug() {
5949
+ return (noop).apply(void 0, arguments);
5950
+ }; // eslint-disable-line no-console
5951
+ var log = function log() {
5952
+ return (noop).apply(void 0, arguments);
5953
+ }; // eslint-disable-line no-console
5954
+ var warn = function warn() {
5955
+ return (console.warn ).apply(void 0, arguments);
5956
+ }; // eslint-disable-line no-console
5957
+ var error = function error() {
5958
+ return (console.error ).apply(void 0, arguments);
5959
+ }; // eslint-disable-line no-console
5960
+
5961
+ 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."); }
5962
+ 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; } }
5963
+ 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; }
5964
+ /**
5965
+ * True unless the host bundle was built for production.
5966
+ *
5967
+ * Follows the `"development"` convention that React and mainstream
5968
+ * bundlers use, and that `websdk-compat`'s rollup build defines. Read inside a
5969
+ * `try` because unbundled ESM has no `process`; that case counts as
5970
+ * production, so a missing define never adds console output.
5971
+ */
5972
+ function isDevelopment() {
5973
+ try {
5974
+ return "development" !== 'production';
5975
+ } catch (_unused) {
5976
+ return false;
5977
+ }
5978
+ }
5979
+ /**
5980
+ * Plain objects and arrays are compared field by field, so an inline literal
5981
+ * rebuilt every render with the same values is not a change. Anything else
5982
+ * (class instances, DOM nodes, blobs) is compared by identity.
5983
+ */
5984
+ function isPlainContainer(value) {
5985
+ if (Array.isArray(value)) return true;
5986
+ if (typeof value !== 'object' || value === null) return false;
5987
+ var prototype = Object.getPrototypeOf(value);
5988
+ return prototype === Object.prototype || prototype === null;
5989
+ }
5990
+ /**
5991
+ * Callbacks the flows wrap with `useLatestCallbacks`: a bag's own top-level
5992
+ * functions and those of its `liveness` sub-bag. Replacing or removing one of
5993
+ * these is live. Any other function (such as `io.acquireCamera`) is a
5994
+ * controller dependency fixed at mount, so it compares by identity.
5995
+ */
5996
+ var LIVE_CALLBACK_PATH = /^[^.[\]]+(\.liveness)?\.[^.[\]]+$/;
5997
+ /**
5998
+ * Every leaf whose value differs between `before` and `after`.
5999
+ *
6000
+ * A live callback's new implementation, or its removal, is not reported. A
6001
+ * callback ADDED after mount is, because only callbacks present at mount are
6002
+ * wrapped. An absent field and an explicit `undefined` are the same value.
6003
+ */
6004
+ function mountOnlyChanges(before, after, path) {
6005
+ if (Object.is(before, after)) return [];
6006
+ if (typeof before === 'function' && (typeof after === 'function' || after === undefined) && LIVE_CALLBACK_PATH.test(path)) {
6007
+ return [];
6008
+ }
6009
+ if (!isPlainContainer(before) || !isPlainContainer(after) || Array.isArray(before) !== Array.isArray(after)) {
6010
+ return [{
6011
+ path: path,
6012
+ before: before,
6013
+ after: after
6014
+ }];
6015
+ }
6016
+ var keys = new Set([].concat(_toConsumableArray(Object.keys(before)), _toConsumableArray(Object.keys(after))));
6017
+ return _toConsumableArray(keys).flatMap(function (key) {
6018
+ return mountOnlyChanges(before[key], after[key], Array.isArray(before) ? path + "[" + key + "]" : path + "." + key);
6019
+ });
6020
+ }
6021
+ /**
6022
+ * Whether a value is small and safe enough to print. Long strings are left
6023
+ * out: capture bags can carry image data (`precapturedDocuments`), which is
6024
+ * both personal data and too large to be useful in a warning.
6025
+ */
6026
+ var isPrintable = function isPrintable(value) {
6027
+ return value === null || value === undefined || typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string' && value.length <= 64;
6028
+ };
6029
+ var describe = function describe(value) {
6030
+ return typeof value === 'string' ? JSON.stringify(value) : String(value);
6031
+ };
6032
+ /**
6033
+ * In development builds, warns once per input path when a value in `inputs`
6034
+ * differs from its value at mount. Does nothing in production.
6035
+ *
6036
+ * `owner` names the component or hook in the message, and `remedy` finishes
6037
+ * the sentence "To change it, …". Pass only inputs that really are mount-only:
6038
+ * a live input passed here would warn about a change that did take effect.
6039
+ */
6040
+ function useMountOnlyWarnings(owner, remedy, inputs) {
6041
+ var mounted = React.useRef(inputs);
6042
+ var warned = React.useRef(new Set());
6043
+ React.useEffect(function () {
6044
+ if (!isDevelopment()) return;
6045
+ for (var _i = 0, _Object$entries = Object.entries(inputs); _i < _Object$entries.length; _i++) {
6046
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
6047
+ name = _Object$entries$_i[0],
6048
+ value = _Object$entries$_i[1];
6049
+ for (var _iterator = _createForOfIteratorHelperLoose$s(mountOnlyChanges(mounted.current[name], value, name)), _step; !(_step = _iterator()).done;) {
6050
+ var _step$value = _step.value,
6051
+ path = _step$value.path,
6052
+ before = _step$value.before,
6053
+ after = _step$value.after;
6054
+ if (warned.current.has(path)) continue;
6055
+ warned.current.add(path);
6056
+ var values = isPrintable(before) && isPrintable(after) ? " (" + describe(before) + " \u2192 " + describe(after) + ")" : '';
6057
+ warn("[" + owner + "] `" + path + "` changed after mount" + values + " and was ignored: " + (owner + " reads it once, at mount. To change it, " + remedy + "."));
6058
+ }
6059
+ }
6060
+ });
6061
+ }
6062
+ /** The `remedy` every flow gives for a changed capture-bag field. */
6063
+ var FLOW_MOUNT_ONLY_REMEDY = 'remount the flow with a React `key`, or pass your own controller';
6064
+
5940
6065
  var useIsomorphicLayoutEffect$1 = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;
5941
6066
  /**
5942
6067
  * Uploads documents to the IDmission document service, one independent call
@@ -7799,7 +7924,7 @@ function ScalingCameraFeed(_ref2) {
7799
7924
  });
7800
7925
  }
7801
7926
 
7802
- var _templateObject$_, _templateObject2$Q, _templateObject3$D, _templateObject4$y, _templateObject5$t, _templateObject6$l;
7927
+ var _templateObject$_, _templateObject2$Q, _templateObject3$E, _templateObject4$z, _templateObject5$t, _templateObject6$l;
7803
7928
  function _createForOfIteratorHelperLoose$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7804
7929
  function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
7805
7930
  function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -7826,7 +7951,7 @@ var ObjectDetectionDebugOverlayDiv = styledComponents.styled.div(_templateObject
7826
7951
  var $flipX = _ref3.$flipX;
7827
7952
  return $flipX ? 'transform: scaleX(-1);' : '';
7828
7953
  });
7829
- var ObjectDetectionDebugBox = styledComponents.styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_ref4) {
7954
+ var ObjectDetectionDebugBox = styledComponents.styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n font: 10px monospace;\n position: absolute;\n border: 3px solid ", ";\n color: ", ";\n ", "\n transform-style: preserve-3d;\n"])), function (_ref4) {
7830
7955
  var $color = _ref4.$color;
7831
7956
  return $color != null ? $color : 'green';
7832
7957
  }, function (_ref5) {
@@ -7837,7 +7962,7 @@ var ObjectDetectionDebugBox = styledComponents.styled.div(_templateObject3$D ||
7837
7962
  return $flipX ? 'transform: scaleX(-1);' : '';
7838
7963
  });
7839
7964
  var darkColors = new Set(['blue', 'darkblue', 'navy', 'darkgreen', 'purple', 'maroon', 'black', 'darkred', 'indigo']);
7840
- var ObjectDetectionDebugLabel = styledComponents.styled.span(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -1px;\n left: -1px;\n background: ", ";\n color: ", ";\n font: bold 9px monospace;\n padding: 1px 3px;\n white-space: nowrap;\n transform: translateY(-100%);\n"])), function (_ref7) {
7965
+ var ObjectDetectionDebugLabel = styledComponents.styled.span(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -1px;\n left: -1px;\n background: ", ";\n color: ", ";\n font: bold 9px monospace;\n padding: 1px 3px;\n white-space: nowrap;\n transform: translateY(-100%);\n"])), function (_ref7) {
7841
7966
  var $color = _ref7.$color;
7842
7967
  return $color != null ? $color : 'green';
7843
7968
  }, function (_ref8) {
@@ -8363,13 +8488,13 @@ var PlacedGuidanceMessageContainer = function PlacedGuidanceMessageContainer(_re
8363
8488
  });
8364
8489
  };
8365
8490
 
8366
- var _templateObject$V, _templateObject2$N, _templateObject3$C, _templateObject4$x;
8491
+ var _templateObject$V, _templateObject2$N, _templateObject3$D, _templateObject4$y;
8367
8492
  var wavesAnimation = styledComponents.keyframes(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: scale3d(1, 1, 1);\n }\n 80% {\n opacity: 1;\n }\n 100% {\n transform: scale3d(2, 2, 1);\n opacity: 0;\n }\n"])));
8368
8493
  var progressBarAnimation = styledComponents.keyframes(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n"])));
8369
- styledComponents.keyframes(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
8370
- styledComponents.keyframes(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
8494
+ styledComponents.keyframes(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
8495
+ styledComponents.keyframes(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n to {\n stroke-dashoffset: 0;\n }\n"])));
8371
8496
 
8372
- var _templateObject$U, _templateObject2$M, _templateObject3$B, _templateObject4$w, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
8497
+ var _templateObject$U, _templateObject2$M, _templateObject3$C, _templateObject4$x, _templateObject5$s, _templateObject6$k, _templateObject7$h, _templateObject8$d, _templateObject9$d, _templateObject0$b, _templateObject1$a, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$6, _templateObject14$6, _templateObject15$5, _templateObject16$4, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
8373
8498
  var OverlayContainer = styledComponents.styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n display: flex;\n flex-direction: column;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n background: ", ";\n ", "\n\n z-index: 10000;\n"])), function (props) {
8374
8499
  return props.theme.background ? "" + props.theme.background : "white";
8375
8500
  }, function (props) {
@@ -8381,8 +8506,8 @@ var OverlayInner$2 = styledComponents.styled.div(_templateObject2$M || (_templat
8381
8506
  }, function (props) {
8382
8507
  return props.theme.padding ? "box-sizing: border-box; padding: " + props.theme.padding + ";" : "";
8383
8508
  });
8384
- var OverlayImageContainer = styledComponents.styled.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
8385
- var OverlayImageRow = styledComponents.styled.div(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
8509
+ var OverlayImageContainer = styledComponents.styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-grow: 1;\n padding-bottom: 25px;\n overflow: hidden;\n\n & > img,\n & > svg {\n margin: 0 auto;\n width: max-content;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: initial;\n object-fit: contain;\n display: block;\n }\n"])));
8510
+ var OverlayImageRow = styledComponents.styled.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: auto;\n\n & > div {\n max-height: calc(100% - 320px);\n\n & > img {\n width: 100%;\n max-height: 100%;\n height: auto;\n object-fit: contain;\n }\n }\n"])));
8386
8511
  /**
8387
8512
  * The review screens' background. Exported so a surface that must MATCH it —
8388
8513
  * the browser-chrome tint in `BrowserEdgeTint` — reads the same value rather
@@ -8522,30 +8647,9 @@ function evaluateIsMobile$1(nav) {
8522
8647
  return false;
8523
8648
  }
8524
8649
 
8525
- // Ported dep of IdCaptureGuidesCommon.tsx (debug, for the SVG-length measure
8526
- // try/catch) and guide_images/useGuideImages.ts (warn, for the
8527
- // missing-dimensions warning). Trimmed transform vs sdk2's
8528
- // lib/utils/logger.ts: `enum LogLevel` -> const-object + type (monorepo's
8529
- // "no TS enum" convention, plan.md Global Constraints); numeric ordering
8530
- // (Off < Error < Warn < Info < Debug) preserved exactly so the `logLevel >=
8531
- // LogLevel.X` comparisons behave identically.
8532
- var noop = function noop() {};
8533
- var debug = function debug() {
8534
- return (noop).apply(void 0, arguments);
8535
- }; // eslint-disable-line no-console
8536
- var log = function log() {
8537
- return (noop).apply(void 0, arguments);
8538
- }; // eslint-disable-line no-console
8539
- var warn = function warn() {
8540
- return (console.warn ).apply(void 0, arguments);
8541
- }; // eslint-disable-line no-console
8542
- var error = function error() {
8543
- return (console.error ).apply(void 0, arguments);
8544
- }; // eslint-disable-line no-console
8545
-
8546
8650
  var _excluded$g = ["children", "status", "borderWidth", "borderRadius", "borderColor", "aspectRatio", "progress", "guideBoxDisabled"],
8547
8651
  _excluded2$5 = ["borderRadius", "borderColor", "borderWidth", "borderOpacity", "progress", "isProgressBar", "scaleBorderRadius"];
8548
- var _templateObject$T, _templateObject2$L, _templateObject3$A, _templateObject4$v, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8652
+ var _templateObject$T, _templateObject2$L, _templateObject3$B, _templateObject4$w, _templateObject5$r, _templateObject6$j, _templateObject7$g;
8549
8653
  var IdCardGuideImageContainer = styledComponents.styled(IdCardBorder)(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n position: relative;\n ", "\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n ", ";\n"])), function (props) {
8550
8654
  return props.$isVisible ? '' : 'opacity: 0;';
8551
8655
  }, function (props) {
@@ -8713,8 +8817,8 @@ function IdCardBorderSvg(_ref2) {
8713
8817
  })]
8714
8818
  }));
8715
8819
  }
8716
- var IdCardBorderContainer = styledComponents.styled.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n display: flex;\n position: relative;\n margin: auto;\n\n & .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(3) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(4) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
8717
- var IdCardBorderInner = styledComponents.styled.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n max-width: 100%;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"])));
8820
+ var IdCardBorderContainer = styledComponents.styled.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n align-items: center;\n justify-content: center;\n display: flex;\n position: relative;\n margin: auto;\n\n & .idmSdkWaves {\n position: absolute;\n animation: ", " 2s ease-out infinite;\n transform-style: preserve-3d;\n\n &:nth-child(3) {\n animation-delay: 0.66s;\n }\n\n &:nth-child(4) {\n animation-delay: 1.33s;\n }\n }\n"])), wavesAnimation);
8821
+ var IdCardBorderInner = styledComponents.styled.div(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n max-height: 100%;\n max-width: 100%;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"])));
8718
8822
  var SvgOverlay = styledComponents.styled.svg(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n"])));
8719
8823
  var IdCardBorderRect = styledComponents.styled.rect(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n &.idmSdkProgressBorder {\n transition: stroke-dashoffset 0.3s ease-out;\n }\n"])));
8720
8824
  // Ported dep (sdk2's video_id/IdVideoCaptureFlipIdPrompt.tsx:136-148 —
@@ -8943,7 +9047,7 @@ var Wrapper$1 = styledComponents.styled.div(_templateObject$S || (_templateObjec
8943
9047
  return props.$isMobile ? props.$isLandscape ? 'height: 100%;' : 'width: 80%;' : props.$isLandscape ? 'height: 70%;' : 'width: 82%;';
8944
9048
  });
8945
9049
 
8946
- var _templateObject$R, _templateObject2$K, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
9050
+ var _templateObject$R, _templateObject2$K, _templateObject3$A, _templateObject4$v, _templateObject5$q, _templateObject6$i, _templateObject7$f, _templateObject8$c, _templateObject9$c;
8947
9051
  var IdCaptureGuideOverlay = function IdCaptureGuideOverlay(_ref) {
8948
9052
  var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid2, _theme$idCapture2, _theme$idCapture$guid3, _theme$idCapture3, _theme$idCapture$guid4, _theme$idCapture4, _theme$idCapture$guid5, _theme$idCapture5;
8949
9053
  var _ref$classNames = _ref.classNames,
@@ -9101,8 +9205,8 @@ var regionClsx = function regionClsx(classNames, which) {
9101
9205
  };
9102
9206
  var StyledPageContainer = styledComponents.styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1000;\n overflow: hidden;\n"])));
9103
9207
  var GuidesContainer = styledComponents.styled.div(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n height: 100%;\n"])));
9104
- var GuideCenterRow = styledComponents.styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
9105
- var GuideRegion = styledComponents.styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
9208
+ var GuideCenterRow = styledComponents.styled.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n justify-items: center;\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n min-height: 0;\n flex: 1;\n"])));
9209
+ var GuideRegion = styledComponents.styled.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n position: relative;\n z-index: 1000;\n background: ", ";\n color: ", ";\n text-align: center;\n ", "\n ", "\n"])), function (props) {
9106
9210
  var _ref2, _props$$maskColor, _props$theme;
9107
9211
  return (_ref2 = (_props$$maskColor = props.$maskColor) != null ? _props$$maskColor : (_props$theme = props.theme) == null || (_props$theme = _props$theme.idCapture) == null || (_props$theme = _props$theme.guideOverlay) == null ? void 0 : _props$theme.backgroundColor) != null ? _ref2 : OVERLAY_GUIDE_MASK_DEFAULT;
9108
9212
  }, function (props) {
@@ -9132,7 +9236,7 @@ var GuideCenterInner = styledComponents.styled.div(_templateObject9$c || (_templ
9132
9236
  /** The mask colour when neither the prop nor the theme sets one. */
9133
9237
  var OVERLAY_GUIDE_MASK_DEFAULT = 'rgba(0, 0, 0, 0.5)';
9134
9238
 
9135
- var _templateObject$Q, _templateObject2$J, _templateObject3$y, _templateObject4$t;
9239
+ var _templateObject$Q, _templateObject2$J, _templateObject3$z, _templateObject4$u;
9136
9240
  var IdCaptureFitGuide = function IdCaptureFitGuide(_ref) {
9137
9241
  var _theme$idCapture$guid, _theme$idCapture, _theme$idCapture$guid5, _theme$idCapture5, _theme$idCapture$guid6, _theme$idCapture6, _theme$idCapture$guid7, _theme$idCapture7;
9138
9242
  var aspectRatio = _ref.aspectRatio,
@@ -9373,7 +9477,7 @@ var CanvasWrapper$1 = styledComponents.styled.div(_templateObject$Q || (_templat
9373
9477
  return props.$aboveCameraFeed ? "z-index: 1;" : "box-shadow: inset 0 0 0 2px " + props.$maskColor + ";\n z-index: -1;";
9374
9478
  });
9375
9479
  var Canvas$2 = styledComponents.styled.canvas(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
9376
- var CaptureAreaProgress = styledComponents.styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
9480
+ var CaptureAreaProgress = styledComponents.styled.div(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: ", "px;\n top: ", "px;\n width: ", "px;\n height: ", "px;\n pointer-events: none;\n"])), function (props) {
9377
9481
  return props.$x;
9378
9482
  }, function (props) {
9379
9483
  return props.$y;
@@ -9382,7 +9486,7 @@ var CaptureAreaProgress = styledComponents.styled.div(_templateObject3$y || (_te
9382
9486
  }, function (props) {
9383
9487
  return props.$height;
9384
9488
  });
9385
- var GuideBoxLayer = styledComponents.styled(CaptureAreaProgress)(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n z-index: 1000;\n"])));
9489
+ var GuideBoxLayer = styledComponents.styled(CaptureAreaProgress)(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n z-index: 1000;\n"])));
9386
9490
  /** The mask colour when neither the prop nor the theme sets one. */
9387
9491
  var FIT_GUIDE_MASK_DEFAULT = '#708090';
9388
9492
 
@@ -9451,7 +9555,7 @@ var ExitCaptureButton = function ExitCaptureButton(_ref) {
9451
9555
  });
9452
9556
  };
9453
9557
 
9454
- var _templateObject$O, _templateObject2$I, _templateObject3$x, _templateObject4$s;
9558
+ var _templateObject$O, _templateObject2$I, _templateObject3$y, _templateObject4$t;
9455
9559
  function IdCaptureLoadingGraphic(props) {
9456
9560
  var isMobile = window.innerHeight > window.innerWidth;
9457
9561
  return isMobile ? jsxRuntime.jsx(IdCaptureLoadingGraphicMobile, _extends({}, props)) : jsxRuntime.jsx(IdCaptureLoadingGraphicDesktop, _extends({}, props));
@@ -9956,10 +10060,10 @@ var LoadingGraphicSvg = styledComponents.styled.svg(_templateObject2$I || (_temp
9956
10060
  }, function (props) {
9957
10061
  return props.$borderColor;
9958
10062
  });
9959
- var LoadingGraphicCardGroup = styledComponents.styled.g(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
10063
+ var LoadingGraphicCardGroup = styledComponents.styled.g(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
9960
10064
  return props.$offScreen ? '-500px' : '0';
9961
10065
  });
9962
- var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
10066
+ var LoadingGraphicPhoneGroup = styledComponents.styled.g(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n transform: translate(", ", 0);\n transform-style: preserve-3d;\n transition: transform 0.3s linear;\n"])), function (props) {
9963
10067
  return props.$offScreen ? '40px' : '0';
9964
10068
  });
9965
10069
 
@@ -10217,7 +10321,7 @@ function CustomerLoadingSpinner(_ref2) {
10217
10321
  // parent's gap/padding, which would offset the fallback it sits next to.
10218
10322
  var SpinnerSlot = styledComponents.styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n &:empty {\n display: contents;\n }\n"])));
10219
10323
 
10220
- var _templateObject$M, _templateObject2$H, _templateObject3$w, _templateObject4$r, _templateObject5$p;
10324
+ var _templateObject$M, _templateObject2$H, _templateObject3$x, _templateObject4$s, _templateObject5$p;
10221
10325
  var legacyInstructionImageUrl$1 = DEFAULT_CDN_URL$1 + "/WebSDK-Instruction-DL-Capture-3-Portrait.png";
10222
10326
  // Module-level so the default `now` prop has a stable identity across
10223
10327
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
@@ -10420,14 +10524,14 @@ var ButtonsRow$1 = styledComponents.styled(LoadingOverlayButtonsRow)(_templateOb
10420
10524
  var _props$theme4, _props$theme5;
10421
10525
  return (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.idCapture) != null && (_props$theme4 = _props$theme4.loadingOverlay) != null && _props$theme4.progressBarFontSize ? "font-size: " + ((_props$theme5 = props.theme) == null || (_props$theme5 = _props$theme5.idCapture) == null || (_props$theme5 = _props$theme5.loadingOverlay) == null ? void 0 : _props$theme5.progressBarFontSize) + ";" : '';
10422
10526
  });
10423
- var ProgressBarBackground$1 = styledComponents.styled(LoadingOverlayProgressBarBackground)(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
10527
+ var ProgressBarBackground$1 = styledComponents.styled(LoadingOverlayProgressBarBackground)(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
10424
10528
  var _props$theme$idCaptur4, _props$theme6;
10425
10529
  return (_props$theme$idCaptur4 = (_props$theme6 = props.theme) == null || (_props$theme6 = _props$theme6.idCapture) == null || (_props$theme6 = _props$theme6.loadingOverlay) == null ? void 0 : _props$theme6.progressBarBackgroundColor) != null ? _props$theme$idCaptur4 : PROGRESS_TRACK_DEFAULT$1;
10426
10530
  }, function (props) {
10427
10531
  var _props$theme$idCaptur5, _props$theme7;
10428
10532
  return (_props$theme$idCaptur5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.idCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.progressBarBackgroundOpacity) != null ? _props$theme$idCaptur5 : PROGRESS_TRACK_OPACITY_DEFAULT$1;
10429
10533
  });
10430
- var ProgressIndicator$1 = styledComponents.styled(LoadingOverlayProgressIndicator)(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
10534
+ var ProgressIndicator$1 = styledComponents.styled(LoadingOverlayProgressIndicator)(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
10431
10535
  var _props$theme$idCaptur6, _props$theme8;
10432
10536
  return (_props$theme$idCaptur6 = (_props$theme8 = props.theme) == null || (_props$theme8 = _props$theme8.idCapture) == null || (_props$theme8 = _props$theme8.loadingOverlay) == null ? void 0 : _props$theme8.progressBarIndicatorColor) != null ? _props$theme$idCaptur6 : PROGRESS_INDICATOR_DEFAULT$1;
10433
10537
  });
@@ -19072,7 +19176,7 @@ function instructionVerbiage(bag, code) {
19072
19176
  return bag == null ? void 0 : bag[instructionVerbiageKeys[code]];
19073
19177
  }
19074
19178
 
19075
- var _templateObject$L, _templateObject2$G, _templateObject3$v, _templateObject4$q, _templateObject5$o;
19179
+ var _templateObject$L, _templateObject2$G, _templateObject3$w, _templateObject4$r, _templateObject5$o;
19076
19180
  var PDF417_ASPECT_RATIO = 3 / 1;
19077
19181
  function BarcodeGuideOverlay(_ref) {
19078
19182
  var _ref$aspectRatio = _ref.aspectRatio,
@@ -19204,15 +19308,15 @@ function BarcodeGuideOverlay(_ref) {
19204
19308
  }
19205
19309
  var Wrapper = styledComponents.styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1;\n"])));
19206
19310
  var Canvas$1 = styledComponents.styled.canvas(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n"])));
19207
- var TextOverlay = styledComponents.styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding-top: 48px;\n pointer-events: none;\n z-index: 2;\n"])));
19208
- var HeaderText = styledComponents.styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n margin-bottom: 16px;\n"])));
19311
+ var TextOverlay = styledComponents.styled.div(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding-top: 48px;\n pointer-events: none;\n z-index: 2;\n"])));
19312
+ var HeaderText = styledComponents.styled.div(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 24px;\n font-weight: 700;\n text-align: center;\n text-transform: uppercase;\n letter-spacing: 2px;\n margin-bottom: 16px;\n"])));
19209
19313
  var InstructionText = styledComponents.styled.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n color: white;\n font-size: 16px;\n font-weight: 400;\n text-align: center;\n max-width: 300px;\n line-height: 1.4;\n opacity: 0.9;\n"])));
19210
19314
 
19211
- var _templateObject$K, _templateObject2$F, _templateObject3$u, _templateObject4$p, _templateObject5$n, _templateObject6$h;
19315
+ var _templateObject$K, _templateObject2$F, _templateObject3$v, _templateObject4$q, _templateObject5$n, _templateObject6$h;
19212
19316
  var scaleIn = styledComponents.keyframes(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.1);\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"])));
19213
19317
  var drawCheck = styledComponents.keyframes(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n 0% {\n stroke-dashoffset: 24;\n }\n 100% {\n stroke-dashoffset: 0;\n }\n"])));
19214
- styledComponents.styled.div(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
19215
- styledComponents.styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n animation: ", " 0.4s ease-out forwards;\n"])), function (props) {
19318
+ styledComponents.styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n z-index: 3;\n"])));
19319
+ styledComponents.styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: 80px;\n height: 80px;\n border-radius: 50%;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n animation: ", " 0.4s ease-out forwards;\n"])), function (props) {
19216
19320
  return props.$color;
19217
19321
  }, scaleIn);
19218
19322
  styledComponents.styled.svg(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n width: 48px;\n height: 48px;\n"])));
@@ -19310,7 +19414,7 @@ function IdCaptureGuides(_ref) {
19310
19414
  });
19311
19415
  }
19312
19416
 
19313
- var _templateObject$J, _templateObject2$E, _templateObject3$t, _templateObject4$o, _templateObject5$m;
19417
+ var _templateObject$J, _templateObject2$E, _templateObject3$u, _templateObject4$p, _templateObject5$m;
19314
19418
  function OverrideWrongDocumentTypeDialog(_ref) {
19315
19419
  var visible = _ref.visible,
19316
19420
  onOverride = _ref.onOverride,
@@ -19350,8 +19454,8 @@ var Container$3 = styledComponents.styled.div(_templateObject$J || (_templateObj
19350
19454
  return (_props$theme$idCaptur3 = (_props$theme$idCaptur4 = props.theme.idCapture) == null || (_props$theme$idCaptur4 = _props$theme$idCaptur4.overrideWrongDocumentTypeGuidance) == null ? void 0 : _props$theme$idCaptur4.textColor) != null ? _props$theme$idCaptur3 : 'black';
19351
19455
  });
19352
19456
  var InnerContainer = styledComponents.styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n padding: 16px 24px;\n margin: auto 0;\n width: 100%;\n"])));
19353
- var Message = styledComponents.styled.span(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
19354
- var ButtonContainer = styledComponents.styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
19457
+ var Message = styledComponents.styled.span(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n display: block;\n margin: auto 12px auto 0;\n"])));
19458
+ var ButtonContainer = styledComponents.styled.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-left: auto;\n"])));
19355
19459
  var Button = styledComponents.styled(LoaderButton)(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n margin: auto;\n"])));
19356
19460
 
19357
19461
  var IdCaptureLoadingOverlayLegacy = function IdCaptureLoadingOverlayLegacy(_ref) {
@@ -19520,7 +19624,7 @@ var selectRingStatusKey = function selectRingStatusKey(_ref) {
19520
19624
  return 'warming';
19521
19625
  };
19522
19626
 
19523
- var _templateObject$H, _templateObject2$C, _templateObject3$s, _templateObject4$n, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9;
19627
+ var _templateObject$H, _templateObject2$C, _templateObject3$t, _templateObject4$o, _templateObject5$l, _templateObject6$g, _templateObject7$e, _templateObject8$b, _templateObject9$b, _templateObject0$a, _templateObject1$9;
19524
19628
  /**
19525
19629
  * The ring overlay's priming cover page (CEO prototype `#v-prime`): camera
19526
19630
  * badge, title/subtitle, step chips, reassurance chip, "Enable camera &
@@ -19600,12 +19704,12 @@ var RingIntroScreen = function RingIntroScreen(_ref) {
19600
19704
  };
19601
19705
  var _float = styledComponents.keyframes(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-7px); }\n"])));
19602
19706
  var IntroLayout = styledComponents.styled.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 34px;\n text-align: center;\n"])));
19603
- var Badge = styledComponents.styled.div(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n width: 84px;\n height: 84px;\n border-radius: 28px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 12px 28px\n color-mix(in srgb, ", " 35%, transparent);\n margin-bottom: 8px;\n animation: ", " 3s ease-in-out infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n svg {\n width: 40px;\n height: 40px;\n fill: #ffffff;\n }\n"])), function (props) {
19707
+ var Badge = styledComponents.styled.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n width: 84px;\n height: 84px;\n border-radius: 28px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 12px 28px\n color-mix(in srgb, ", " 35%, transparent);\n margin-bottom: 8px;\n animation: ", " 3s ease-in-out infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n svg {\n width: 40px;\n height: 40px;\n fill: #ffffff;\n }\n"])), function (props) {
19604
19708
  return props.$color;
19605
19709
  }, function (props) {
19606
19710
  return props.$color;
19607
19711
  }, _float);
19608
- var Title$4 = styledComponents.styled.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n font-size: 22px;\n font-weight: 700;\n"])));
19712
+ var Title$4 = styledComponents.styled.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n font-size: 22px;\n font-weight: 700;\n"])));
19609
19713
  var Subtitle$3 = styledComponents.styled.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n opacity: 0.65;\n line-height: 1.5;\n"])));
19610
19714
  var Steps = styledComponents.styled.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 26px;\n margin: 16px 0 6px;\n"])));
19611
19715
  var Step = styledComponents.styled.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n font-size: 11px;\n opacity: 0.75;\n width: 90px;\n"])));
@@ -19646,7 +19750,7 @@ var selectRingOverlayStage = function selectRingOverlayStage(_ref) {
19646
19750
  return requesting ? 'requesting' : 'intro';
19647
19751
  };
19648
19752
 
19649
- var _templateObject$G, _templateObject2$B, _templateObject3$r, _templateObject4$m, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
19753
+ var _templateObject$G, _templateObject2$B, _templateObject3$s, _templateObject4$n, _templateObject5$k, _templateObject6$f, _templateObject7$d, _templateObject8$a, _templateObject9$a, _templateObject0$9, _templateObject1$8, _templateObject10$8, _templateObject11$6, _templateObject12$5, _templateObject13$5, _templateObject14$5, _templateObject15$4;
19650
19754
  /** Minimum time a stage handoff stays on screen so its message is
19651
19755
  * legible even when everything preloaded and readiness is instant. */
19652
19756
  var STAGE_TRANSITION_HOLD_MS = 1600;
@@ -19707,8 +19811,8 @@ var RingStageTransition = function RingStageTransition(_ref) {
19707
19811
  };
19708
19812
  var badgePop = styledComponents.keyframes(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n 0% { transform: scale(0.4); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); opacity: 1; }\n"])));
19709
19813
  var cardFlip = styledComponents.keyframes(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n from { transform: rotateY(0deg); }\n to { transform: rotateY(180deg); }\n"])));
19710
- var microcopyBeat = styledComponents.keyframes(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n 0% { opacity: 0; transform: translateY(6px); }\n 18% { opacity: 1; transform: translateY(0); }\n 60% { opacity: 1; transform: translateY(0); }\n 80% { opacity: 0; transform: translateY(-6px); }\n 100% { opacity: 0; }\n"])));
19711
- var rise = styledComponents.keyframes(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
19814
+ var microcopyBeat = styledComponents.keyframes(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n 0% { opacity: 0; transform: translateY(6px); }\n 18% { opacity: 1; transform: translateY(0); }\n 60% { opacity: 1; transform: translateY(0); }\n 80% { opacity: 0; transform: translateY(-6px); }\n 100% { opacity: 0; }\n"])));
19815
+ var rise = styledComponents.keyframes(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n"])));
19712
19816
  var riseSubtle = styledComponents.keyframes(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 0.65; transform: translateY(0); }\n"])));
19713
19817
  var TransitionLayout = styledComponents.styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 14px;\n"])));
19714
19818
  /* The drop shadow lives on the static parent: filter on the flipping card
@@ -19737,7 +19841,7 @@ var LoadingRow = styledComponents.styled.div(_templateObject15$4 || (_templateOb
19737
19841
  return props.$visible ? 1 : 0;
19738
19842
  });
19739
19843
 
19740
- var _templateObject$F, _templateObject2$A, _templateObject3$q, _templateObject4$l, _templateObject5$j, _templateObject6$e, _templateObject7$c;
19844
+ var _templateObject$F, _templateObject2$A, _templateObject3$r, _templateObject4$m, _templateObject5$j, _templateObject6$e, _templateObject7$c;
19741
19845
  // Module-level so the default `now` prop has a stable identity across
19742
19846
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
19743
19847
  var defaultNow$2 = function defaultNow() {
@@ -20020,9 +20124,9 @@ var RingOverlayInner$1 = styledComponents.styled(LoadingOverlayInner)(_templateO
20020
20124
  var _props$theme$idCaptur2, _props$theme2;
20021
20125
  return (_props$theme$idCaptur2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.idCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$idCaptur2 : '#12211d';
20022
20126
  }, function (props) {
20023
- return props.$softEntry ? styledComponents.css(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn$1) : '';
20127
+ return props.$softEntry ? styledComponents.css(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn$1) : '';
20024
20128
  });
20025
- var RingLayout$1 = styledComponents.styled.div(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 40px;\n text-align: center;\n"])));
20129
+ var RingLayout$1 = styledComponents.styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 40px;\n text-align: center;\n"])));
20026
20130
  var StatusLine$1 = styledComponents.styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
20027
20131
  var SubText$1 = styledComponents.styled.div(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
20028
20132
  var ContinueButton$2 = styledComponents.styled(LoaderButton)(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n margin-top: 10px;\n white-space: nowrap;\n ", "\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
@@ -20120,7 +20224,7 @@ var _templateObject$E, _templateObject2$z;
20120
20224
  var Card = styledComponents.styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n background: white;\n border-radius: 8px;\n padding: 24px;\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);\n margin: auto;\n max-width: min(500px, 100% - 48px);\n max-height: 100%;\n overflow: auto;\n box-sizing: border-box;\n"])));
20121
20225
  var FlexCard = styledComponents.styled(Card)(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n"])));
20122
20226
 
20123
- var _templateObject$D, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
20227
+ var _templateObject$D, _templateObject2$y, _templateObject3$q, _templateObject4$l, _templateObject5$i, _templateObject6$d, _templateObject7$b, _templateObject8$9, _templateObject9$9, _templateObject0$8, _templateObject1$7, _templateObject10$7, _templateObject11$5, _templateObject12$4, _templateObject13$4, _templateObject14$4, _templateObject15$3, _templateObject16$3, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$2, _templateObject22$2, _templateObject23$2, _templateObject24$1, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44;
20124
20228
  function ReviewDocumentDiagnostics(_ref) {
20125
20229
  var _document$detectionSc, _document$detectionSc2, _document$focusScore, _document$focusScore2;
20126
20230
  var document = _ref.document,
@@ -20581,8 +20685,8 @@ function RotationAttemptRow(_ref3) {
20581
20685
  }
20582
20686
  var DebugInfoContainer = styledComponents.styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n margin-top: 0.5rem;\n margin-bottom: 1rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border-radius: 6px;\n border: 1px solid #e9ecef;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n line-height: 1.35;\n text-align: left;\n"])));
20583
20687
  var DebugSection = styledComponents.styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin: 0;\n"])));
20584
- var DebugLabel = styledComponents.styled.span(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
20585
- var DebugValue = styledComponents.styled.span(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
20688
+ var DebugLabel = styledComponents.styled.span(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n width: 110px;\n flex-shrink: 0;\n color: #495057;\n font-size: 0.8125rem;\n font-weight: 600;\n"])));
20689
+ var DebugValue = styledComponents.styled.span(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n color: #212529;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.8125rem;\n"])));
20586
20690
  var ScoreBadge = styledComponents.styled.span(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n padding: 0.1875rem 0.5rem;\n border: 1px solid\n ", ";\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-size: 0.75rem;\n font-weight: 600;\n"])), function (_ref4) {
20587
20691
  var $score = _ref4.$score,
20588
20692
  $type = _ref4.$type;
@@ -20695,7 +20799,7 @@ var DiagnosticsBadge = styledComponents.styled.span(_templateObject44 || (_templ
20695
20799
  return $highlight ? '#004085' : $ok ? '#155724' : '#721c24';
20696
20800
  });
20697
20801
 
20698
- var _templateObject$C, _templateObject2$x, _templateObject3$o, _templateObject4$j, _templateObject5$h;
20802
+ var _templateObject$C, _templateObject2$x, _templateObject3$p, _templateObject4$k, _templateObject5$h;
20699
20803
  var imageDisplayOrder = ['idCardFront', 'idCardBack', 'idBarcodeImage', 'passport', 'singlePage', 'idFrontIrImage', 'idBackIrImage', 'idFrontUvImage', 'idBackUvImage'];
20700
20804
  var ReviewScreen = function ReviewScreen(_ref) {
20701
20805
  var capturedDocuments = _ref.capturedDocuments,
@@ -20788,11 +20892,11 @@ var ReviewScreen = function ReviewScreen(_ref) {
20788
20892
  };
20789
20893
  var Heading$9 = styledComponents.styled.h1(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1.5rem;\n"])));
20790
20894
  var ImagesContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n flex-grow: 1;\n overflow-y: auto;\n padding-bottom: 0;\n max-width: 100%;\n"])));
20791
- var ImageRow = styledComponents.styled(OverlayImageRow)(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
20792
- var ImageCol$1 = styledComponents.styled.div(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
20895
+ var ImageRow = styledComponents.styled(OverlayImageRow)(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n flex-direction: column;\n position: relative;\n width: 100%;\n"])));
20896
+ var ImageCol$1 = styledComponents.styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n width: 450px;\n max-width: 100%;\n max-height: none !important;\n"])));
20793
20897
  var StyledImage = styledComponents.styled(CapturedDocumentImg)(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-radius: 12px;\n"])));
20794
20898
 
20795
- var _templateObject$B, _templateObject2$w, _templateObject3$n, _templateObject4$i;
20899
+ var _templateObject$B, _templateObject2$w, _templateObject3$o, _templateObject4$j;
20796
20900
  var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
20797
20901
  var _assets$imageUrl, _classNames$container;
20798
20902
  var onRetry = _ref.onRetry,
@@ -20853,10 +20957,10 @@ var CameraAccessDeniedOverlay = function CameraAccessDeniedOverlay(_ref) {
20853
20957
  };
20854
20958
  var StyledOverlayInner$2 = styledComponents.styled(OverlayInner$2)(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n max-width: 500px;\n height: auto;\n margin: auto;\n"])));
20855
20959
  var StyledOverlayImageContainer = styledComponents.styled(OverlayImageContainer)(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n"])));
20856
- var Description$3 = styledComponents.styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
20857
- var RetryButton$1 = styledComponents.styled(LoaderButton)(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
20960
+ var Description$3 = styledComponents.styled.p(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 50px;\n"])));
20961
+ var RetryButton$1 = styledComponents.styled(LoaderButton)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 0 auto;\n"])));
20858
20962
 
20859
- var _templateObject$A, _templateObject2$v, _templateObject3$m;
20963
+ var _templateObject$A, _templateObject2$v, _templateObject3$n;
20860
20964
  var ErrorScreen = function ErrorScreen(_ref) {
20861
20965
  var error = _ref.error,
20862
20966
  onRetry = _ref.onRetry,
@@ -21049,7 +21153,7 @@ var cameraFailureClassNames = function cameraFailureClassNames(own, bag) {
21049
21153
  // same here rather than inherit a foreground meant for the dark overlays.
21050
21154
  var ErrorCard = styledComponents.styled(FlexCard)(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n color: black;\n"])));
21051
21155
  var Heading$8 = styledComponents.styled.h1(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin-top: 0;\n margin-bottom: 1rem;\n"])));
21052
- var Description$2 = styledComponents.styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
21156
+ var Description$2 = styledComponents.styled.p(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin-bottom: 1.5rem;\n"])));
21053
21157
 
21054
21158
  function reasonFor(code) {
21055
21159
  if (code === 'CAMERA_PERMISSION_DENIED') return 'permissionDenied';
@@ -21118,7 +21222,7 @@ function fallbackCaptureMoreLabelForStep(idCaptureRequirement, idCardBackCapture
21118
21222
  return key === 'third' ? 'ID page of passport' : 'back of ID card';
21119
21223
  }
21120
21224
 
21121
- var _templateObject$z, _templateObject2$u, _templateObject3$l, _templateObject4$h, _templateObject5$g, _templateObject6$c, _templateObject7$a;
21225
+ var _templateObject$z, _templateObject2$u, _templateObject3$m, _templateObject4$i, _templateObject5$g, _templateObject6$c, _templateObject7$a;
21122
21226
  function IdCaptureFallback(_ref) {
21123
21227
  var _ref$captureRequireme = _ref.captureRequirement,
21124
21228
  captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
@@ -21289,13 +21393,13 @@ function IdCaptureFallback(_ref) {
21289
21393
  }
21290
21394
  var StyledOverlayInner$1 = styledComponents.styled(OverlayInner$2)(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
21291
21395
  var Heading$7 = styledComponents.styled.h3(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21292
- var Description$1 = styledComponents.styled.p(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21293
- var Instruction = styledComponents.styled.p(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
21396
+ var Description$1 = styledComponents.styled.p(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
21397
+ var Instruction = styledComponents.styled.p(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
21294
21398
  var ReadFailed$1 = styledComponents.styled.p(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n"])));
21295
21399
  var ImageCol = styledComponents.styled.div(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n flex-grow: 1;\n flex-basis: 0;\n"])));
21296
21400
  var StyledButtonsRow$6 = styledComponents.styled(ButtonsRow$2)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
21297
21401
 
21298
- var _templateObject$y, _templateObject2$t, _templateObject3$k, _templateObject4$g, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
21402
+ var _templateObject$y, _templateObject2$t, _templateObject3$l, _templateObject4$h, _templateObject5$f, _templateObject6$b, _templateObject7$9, _templateObject8$8, _templateObject9$8, _templateObject0$7, _templateObject1$6, _templateObject10$6;
21299
21403
  function IdCaptureOrUploadScreen(_ref) {
21300
21404
  var _ref$captureRequireme = _ref.captureRequirement,
21301
21405
  captureRequirement = _ref$captureRequireme === void 0 ? 'idCardOrPassport' : _ref$captureRequireme,
@@ -21547,8 +21651,8 @@ var ScreenContainer = styledComponents.styled.div(_templateObject$y || (_templat
21547
21651
  return (_props$theme$backgrou = (_props$theme = props.theme) == null ? void 0 : _props$theme.background) != null ? _props$theme$backgrou : '#fff';
21548
21652
  });
21549
21653
  var ScreenPanel = styledComponents.styled.div(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 320px;\n"])));
21550
- var DashedSeparator = styledComponents.styled.div(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 320px;\n border-top: 1px dashed currentColor;\n opacity: 0.4;\n"])));
21551
- var OrWrapper = styledComponents.styled.span(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
21654
+ var DashedSeparator = styledComponents.styled.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 320px;\n border-top: 1px dashed currentColor;\n opacity: 0.4;\n"])));
21655
+ var OrWrapper = styledComponents.styled.span(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n transform: translateY(-50%);\n padding: 0 8px;\n background: ", ";\n"])), function (props) {
21552
21656
  var _props$theme$backgrou2, _props$theme2;
21553
21657
  return (_props$theme$backgrou2 = (_props$theme2 = props.theme) == null ? void 0 : _props$theme2.background) != null ? _props$theme$backgrou2 : '#fff';
21554
21658
  });
@@ -26114,7 +26218,7 @@ function SelfieCameraFeed(_ref) {
26114
26218
  });
26115
26219
  }
26116
26220
 
26117
- var _templateObject$v, _templateObject2$s, _templateObject3$j, _templateObject4$f;
26221
+ var _templateObject$v, _templateObject2$s, _templateObject3$k, _templateObject4$g;
26118
26222
  var _excluded$c = ["borderColor", "borderOpacity", "borderWidth", "status"],
26119
26223
  _excluded2$4 = ["status", "guideStyle"],
26120
26224
  _excluded3 = ["frame", "borderWidth", "borderColor", "borderOpacity", "verticalAlign", "status", "guideStyle"],
@@ -26253,8 +26357,8 @@ function HeadGuide(_ref2) {
26253
26357
  }))]
26254
26358
  });
26255
26359
  }
26256
- var AbsoluteSvg = styledComponents.styled.svg(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n"])));
26257
- var RelativeSvgContainer = styledComponents.styled.div(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 100%;\n display: flex;\n align-items: ", ";\n"])), function (props) {
26360
+ var AbsoluteSvg = styledComponents.styled.svg(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n"])));
26361
+ var RelativeSvgContainer = styledComponents.styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 100%;\n display: flex;\n align-items: ", ";\n"])), function (props) {
26258
26362
  return props.$verticalAlign === 'bottom' ? 'flex-end' : 'center';
26259
26363
  });
26260
26364
  function SelfieCaptureAnimatedMask(_ref3) {
@@ -26817,7 +26921,7 @@ function SelfieCaptureLoadingGraphic(_ref) {
26817
26921
  });
26818
26922
  }
26819
26923
 
26820
- var _templateObject$t, _templateObject2$q, _templateObject3$i, _templateObject4$e, _templateObject5$e;
26924
+ var _templateObject$t, _templateObject2$q, _templateObject3$j, _templateObject4$f, _templateObject5$e;
26821
26925
  var legacyInstructionImageUrl = DEFAULT_CDN_URL$1 + "/Selfie-Image-1.png";
26822
26926
  // Module-level so the default `now` prop has a stable identity across
26823
26927
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
@@ -27002,14 +27106,14 @@ var ButtonsRow = styledComponents.styled(LoadingOverlayButtonsRow)(_templateObje
27002
27106
  var _props$theme4, _props$theme5;
27003
27107
  return (_props$theme4 = props.theme) != null && (_props$theme4 = _props$theme4.selfieCapture) != null && (_props$theme4 = _props$theme4.loadingOverlay) != null && _props$theme4.progressBarFontSize ? "font-size: " + ((_props$theme5 = props.theme) == null || (_props$theme5 = _props$theme5.selfieCapture) == null || (_props$theme5 = _props$theme5.loadingOverlay) == null ? void 0 : _props$theme5.progressBarFontSize) + ";" : '';
27004
27108
  });
27005
- var ProgressBarBackground = styledComponents.styled(LoadingOverlayProgressBarBackground)(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
27109
+ var ProgressBarBackground = styledComponents.styled(LoadingOverlayProgressBarBackground)(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n background: ", ";\n opacity: ", ";\n"])), function (props) {
27006
27110
  var _props$theme$selfieCa4, _props$theme6;
27007
27111
  return (_props$theme$selfieCa4 = (_props$theme6 = props.theme) == null || (_props$theme6 = _props$theme6.selfieCapture) == null || (_props$theme6 = _props$theme6.loadingOverlay) == null ? void 0 : _props$theme6.progressBarBackgroundColor) != null ? _props$theme$selfieCa4 : PROGRESS_TRACK_DEFAULT;
27008
27112
  }, function (props) {
27009
27113
  var _props$theme$selfieCa5, _props$theme7;
27010
27114
  return (_props$theme$selfieCa5 = (_props$theme7 = props.theme) == null || (_props$theme7 = _props$theme7.selfieCapture) == null || (_props$theme7 = _props$theme7.loadingOverlay) == null ? void 0 : _props$theme7.progressBarBackgroundOpacity) != null ? _props$theme$selfieCa5 : PROGRESS_TRACK_OPACITY_DEFAULT;
27011
27115
  });
27012
- var ProgressIndicator = styledComponents.styled(LoadingOverlayProgressIndicator)(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
27116
+ var ProgressIndicator = styledComponents.styled(LoadingOverlayProgressIndicator)(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n background: ", ";\n"])), function (props) {
27013
27117
  var _props$theme$selfieCa6, _props$theme8;
27014
27118
  return (_props$theme$selfieCa6 = (_props$theme8 = props.theme) == null || (_props$theme8 = _props$theme8.selfieCapture) == null || (_props$theme8 = _props$theme8.loadingOverlay) == null ? void 0 : _props$theme8.progressBarIndicatorColor) != null ? _props$theme$selfieCa6 : PROGRESS_INDICATOR_DEFAULT;
27015
27119
  });
@@ -27133,7 +27237,7 @@ var SelfieCaptureLoadingOverlayLegacy = function SelfieCaptureLoadingOverlayLega
27133
27237
  var StyledGuidanceMessage = styledComponents.styled(GuidanceMessage)(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: 12px 24px;\n font-weight: normal;\n line-height: 1.5;\n margin-bottom: -30px;\n"])));
27134
27238
  var StyledButtonsRow$5 = styledComponents.styled(ButtonsRow$2)(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n flex-direction: column;\n padding-top: 25px;\n"])));
27135
27239
 
27136
- var _templateObject$r, _templateObject2$o, _templateObject3$h, _templateObject4$d, _templateObject5$d, _templateObject6$a, _templateObject7$8;
27240
+ var _templateObject$r, _templateObject2$o, _templateObject3$i, _templateObject4$e, _templateObject5$d, _templateObject6$a, _templateObject7$8;
27137
27241
  // Module-level so the default `now` prop has a stable identity across
27138
27242
  // renders (it sits in useModelWarmingElapsedMs's effect dependency array).
27139
27243
  var defaultNow = function defaultNow() {
@@ -27400,9 +27504,9 @@ var RingOverlayInner = styledComponents.styled(LoadingOverlayInner)(_templateObj
27400
27504
  var _props$theme$selfieCa2, _props$theme2;
27401
27505
  return (_props$theme$selfieCa2 = (_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.selfieCapture) == null || (_props$theme2 = _props$theme2.loadingOverlay) == null ? void 0 : _props$theme2.textColor) != null ? _props$theme$selfieCa2 : '#12211d';
27402
27506
  }, function (props) {
27403
- return props.$softEntry ? styledComponents.css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn) : '';
27507
+ return props.$softEntry ? styledComponents.css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n animation: ", " 250ms ease-out both;\n "])), overlayFadeIn) : '';
27404
27508
  });
27405
- var RingLayout = styledComponents.styled.div(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 40px;\n text-align: center;\n"])));
27509
+ var RingLayout = styledComponents.styled.div(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n padding: 40px;\n text-align: center;\n"])));
27406
27510
  var StatusLine = styledComponents.styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 600;\n min-height: 22px;\n"])));
27407
27511
  var SubText = styledComponents.styled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n opacity: 0.65;\n"])));
27408
27512
  var ContinueButton = styledComponents.styled(LoaderButton)(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n margin-top: 10px;\n white-space: nowrap;\n ", "\n\n &.disabled {\n background: ", ";\n color: ", ";\n border: ", ";\n }\n"])), function (props) {
@@ -27434,7 +27538,7 @@ var SelfieCaptureLoadingOverlay = function SelfieCaptureLoadingOverlay(_ref) {
27434
27538
  return jsxRuntime.jsx(Component, _extends({}, props));
27435
27539
  };
27436
27540
 
27437
- var _templateObject$q, _templateObject2$n, _templateObject3$g, _templateObject4$c, _templateObject5$c, _templateObject6$9;
27541
+ var _templateObject$q, _templateObject2$n, _templateObject3$h, _templateObject4$d, _templateObject5$c, _templateObject6$9;
27438
27542
  function SelfieCaptureFallback(_ref) {
27439
27543
  var _ref$silentFallback = _ref.silentFallback,
27440
27544
  silentFallback = _ref$silentFallback === void 0 ? false : _ref$silentFallback,
@@ -27590,8 +27694,8 @@ function SelfieCaptureFallback(_ref) {
27590
27694
  }
27591
27695
  var StyledOverlayInner = styledComponents.styled(OverlayInner$2)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n justify-content: center;\n padding: 24px;\n box-sizing: border-box;\n"])));
27592
27696
  var Heading$6 = styledComponents.styled.h1(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n font-size: 1.5rem;\n margin: 0 0 1rem;\n"])));
27593
- var Description = styledComponents.styled.p(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
27594
- var ImageContainer$4 = styledComponents.styled.div(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin-bottom: 1.5rem;\n\n & > img {\n max-width: 100%;\n max-height: 40vh;\n border-radius: 8px;\n }\n"])));
27697
+ var Description = styledComponents.styled.p(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n line-height: 1.5;\n margin: 0 0 1.5rem;\n"])));
27698
+ var ImageContainer$4 = styledComponents.styled.div(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin-bottom: 1.5rem;\n\n & > img {\n max-width: 100%;\n max-height: 40vh;\n border-radius: 8px;\n }\n"])));
27595
27699
  var ReadFailed = styledComponents.styled.p(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n margin: 0 0 1rem;\n"])));
27596
27700
  var StyledButtonsRow$4 = styledComponents.styled(ButtonsRow$2)(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 12px;\n justify-content: center;\n"])));
27597
27701
 
@@ -32407,7 +32511,7 @@ function useSignatureCapture(controller) {
32407
32511
  return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
32408
32512
  }
32409
32513
 
32410
- var _templateObject$j, _templateObject2$j, _templateObject3$f, _templateObject4$b, _templateObject5$b, _templateObject6$8;
32514
+ var _templateObject$j, _templateObject2$j, _templateObject3$g, _templateObject4$c, _templateObject5$b, _templateObject6$8;
32411
32515
  var _excluded$a = ["device", "frameDecode"];
32412
32516
  var ASSUMED_TRIM_PADDING = {
32413
32517
  startMs: TRIM_PADDING_START_MS,
@@ -32688,8 +32792,8 @@ function Row$1(_ref1) {
32688
32792
  var MONO = "'Monaco', 'Menlo', 'Ubuntu Mono', monospace";
32689
32793
  var Panel = styledComponents.styled.div(_templateObject$j || (_templateObject$j = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n width: min(720px, 90vw);\n margin-top: 0.75rem;\n padding: 0.625rem;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 6px;\n text-align: left;\n overflow-x: auto;\n"])));
32690
32794
  var Table = styledComponents.styled.table(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n border-collapse: collapse;\n font-family: ", ";\n font-size: 0.8125rem;\n line-height: 1.35;\n"])), MONO);
32691
- var SectionCell = styledComponents.styled.th(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n padding: 0.5rem 0 0.25rem;\n border-bottom: 1px solid #e9ecef;\n color: #495057;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-align: left;\n text-transform: uppercase;\n"])));
32692
- var LabelCell = styledComponents.styled.td(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n width: 45%;\n padding: 0.1875rem 0.5rem 0.1875rem 0;\n color: #495057;\n font-weight: 600;\n vertical-align: top;\n"])));
32795
+ var SectionCell = styledComponents.styled.th(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n padding: 0.5rem 0 0.25rem;\n border-bottom: 1px solid #e9ecef;\n color: #495057;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.04em;\n text-align: left;\n text-transform: uppercase;\n"])));
32796
+ var LabelCell = styledComponents.styled.td(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteralLoose(["\n width: 45%;\n padding: 0.1875rem 0.5rem 0.1875rem 0;\n color: #495057;\n font-weight: 600;\n vertical-align: top;\n"])));
32693
32797
  var ValueCell = styledComponents.styled.td(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding: 0.1875rem 0;\n color: ", ";\n font-weight: ", ";\n vertical-align: top;\n word-break: break-word;\n"])), function (props) {
32694
32798
  return props.$suspect ? '#842029' : '#212529';
32695
32799
  }, function (props) {
@@ -32697,7 +32801,7 @@ var ValueCell = styledComponents.styled.td(_templateObject5$b || (_templateObjec
32697
32801
  });
32698
32802
  var Note = styledComponents.styled.span(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n display: block;\n color: #6c757d;\n font-weight: 400;\n"])));
32699
32803
 
32700
- var _templateObject$i, _templateObject2$i, _templateObject3$e, _templateObject4$a, _templateObject5$a;
32804
+ var _templateObject$i, _templateObject2$i, _templateObject3$f, _templateObject4$b, _templateObject5$a;
32701
32805
  function MessageOverlay(_ref) {
32702
32806
  var heading = _ref.heading,
32703
32807
  children = _ref.children,
@@ -32919,11 +33023,11 @@ function SubmissionErrorOverlay(_ref1) {
32919
33023
  }
32920
33024
  var CenteredInner = styledComponents.styled(OverlayInner$2)(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n justify-content: center;\n align-items: center;\n max-width: 640px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 32px;\n"])));
32921
33025
  var Content = styledComponents.styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose(["\n max-width: 540px;\n line-height: 1.55;\n"])));
32922
- var Details = styledComponents.styled.p(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
32923
- var PermissionImage = styledComponents.styled(OverlayImageContainer)(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
33026
+ var Details = styledComponents.styled.p(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteralLoose(["\n margin: 12px 0 0;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 0.875rem;\n"])));
33027
+ var PermissionImage = styledComponents.styled(OverlayImageContainer)(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteralLoose(["\n flex-grow: 0;\n width: min(180px, 45vw);\n"])));
32924
33028
  var RetryButton = styledComponents.styled(LoaderButton)(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n width: 200px;\n margin: 32px auto 0;\n"])));
32925
33029
 
32926
- var _templateObject$h, _templateObject2$h, _templateObject3$d, _templateObject4$9, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
33030
+ var _templateObject$h, _templateObject2$h, _templateObject3$e, _templateObject4$a, _templateObject5$9, _templateObject6$7, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject0$6, _templateObject1$5, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$2, _templateObject16$2, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
32927
33031
  var FALLBACKS = {
32928
33032
  headingText: "Please sign the box below",
32929
33033
  signHereText: "Sign here",
@@ -33518,10 +33622,10 @@ var LiveDiagnostics = styledComponents.styled.div(_templateObject2$h || (_templa
33518
33622
  * screen's bezel and matches the letterbox bars the KYC flow shows while the
33519
33623
  * camera is up.
33520
33624
  */
33521
- var CameraLayer$1 = styledComponents.styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n overflow: hidden;\n background: #000;\n"])), function (props) {
33625
+ var CameraLayer$1 = styledComponents.styled.div(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n overflow: hidden;\n background: #000;\n"])), function (props) {
33522
33626
  return props.$visible ? "flex" : "none";
33523
33627
  });
33524
- var CaptureContent = styledComponents.styled.div(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 1;\n display: ", ";\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: ", ";\n padding: ", ";\n background: ", ";\n box-sizing: border-box;\n\n /* Reserve a band above the face guide on phones and narrow embeds. */\n @container signature-capture (max-width: 1024px) {\n top: ", ";\n }\n\n"])), function (props) {
33628
+ var CaptureContent = styledComponents.styled.div(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 1;\n display: ", ";\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: ", ";\n padding: ", ";\n background: ", ";\n box-sizing: border-box;\n\n /* Reserve a band above the face guide on phones and narrow embeds. */\n @container signature-capture (max-width: 1024px) {\n top: ", ";\n }\n\n"])), function (props) {
33525
33629
  return props.$visible ? "flex" : "none";
33526
33630
  }, function (props) {
33527
33631
  return props.$legacyVideoLayout ? "0" : "16px";
@@ -35032,7 +35136,7 @@ function useVideoIdCapture(controller) {
35032
35136
  return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
35033
35137
  }
35034
35138
 
35035
- var _templateObject$g, _templateObject2$g, _templateObject3$c, _templateObject4$8, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
35139
+ var _templateObject$g, _templateObject2$g, _templateObject3$d, _templateObject4$9, _templateObject5$8, _templateObject6$6, _templateObject7$6, _templateObject8$6, _templateObject9$6, _templateObject0$5;
35036
35140
  /**
35037
35141
  * The combined face-over-document guide used by SDK2's Video ID recording
35038
35142
  * stage. Unlike the standalone ID overlay, both subjects remain framed in a
@@ -35248,8 +35352,8 @@ var Container = styledComponents.styled.div(_templateObject$g || (_templateObjec
35248
35352
  return (_props$theme = props.theme) == null ? void 0 : _props$theme.fontFamily;
35249
35353
  });
35250
35354
  var Inner$1 = styledComponents.styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n max-height: 1280px;\n margin: auto;\n"])));
35251
- var FaceGuideContainer = styledComponents.styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
35252
- var IdCardGuideContainer = styledComponents.styled.div(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n max-width: 100%;\n height: 35%;\n margin: 0 auto;\n"])));
35355
+ var FaceGuideContainer = styledComponents.styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n position: relative;\n height: 65%;\n"])));
35356
+ var IdCardGuideContainer = styledComponents.styled.div(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-flow: column nowrap;\n width: 100%;\n max-width: 100%;\n height: 35%;\n margin: 0 auto;\n"])));
35253
35357
  var IdCardGuideInner = styledComponents.styled.div(_templateObject5$8 || (_templateObject5$8 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 100%;\n height: 100%;\n"])));
35254
35358
  var StyledIdCardGuideImageContainer = styledComponents.styled(IdCardGuideImageContainer)(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteralLoose(["\n width: auto;\n height: 100%;\n"])));
35255
35359
  var InstructionsContainer = styledComponents.styled.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n bottom: 16px;\n left: 0;\n display: flex;\n flex-direction: column;\n justify-content: end;\n width: 100%;\n box-sizing: border-box;\n color: white;\n text-align: center;\n"])));
@@ -35278,7 +35382,7 @@ var VIDEO_ID_FALLBACKS = {
35278
35382
  };
35279
35383
  (_VIDEO_ID_GUIDANCE_FA = {}, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_FRONT] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_ID_BACK] = VIDEO_ID_FALLBACKS.idBackInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SHOW_PASSPORT] = VIDEO_ID_FALLBACKS.passportInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.FLIP_ID] = VIDEO_ID_FALLBACKS.flipIdInstructionText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.SEARCHING_FOR_ID] = VIDEO_ID_FALLBACKS.searchingForIdCardText, _VIDEO_ID_GUIDANCE_FA[VideoIdCaptureGuidanceCode.HOLD_STEADY] = VIDEO_ID_FALLBACKS.idFrontInstructionText, _VIDEO_ID_GUIDANCE_FA);
35280
35384
 
35281
- var _templateObject$f, _templateObject2$f, _templateObject3$b, _templateObject4$7, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
35385
+ var _templateObject$f, _templateObject2$f, _templateObject3$c, _templateObject4$8, _templateObject5$7, _templateObject6$5, _templateObject7$5, _templateObject8$5, _templateObject9$5;
35282
35386
  function VideoIdCaptureView(props) {
35283
35387
  var _props$lang;
35284
35388
  return jsxRuntime.jsx(SdkLanguageProvider, {
@@ -35629,8 +35733,8 @@ var Root$1 = styledComponents.styled.div(_templateObject$f || (_templateObject$f
35629
35733
  var CameraLayer = styledComponents.styled.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: ", ";\n isolation: isolate;\n"])), function (props) {
35630
35734
  return props.$visible ? 'flex' : 'none';
35631
35735
  });
35632
- var ReadTextPrompt = styledComponents.styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n padding: 24px;\n"])));
35633
- var ReadTextHeading = styledComponents.styled.h3(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n"])));
35736
+ var ReadTextPrompt = styledComponents.styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 12px;\n padding: 24px;\n"])));
35737
+ var ReadTextHeading = styledComponents.styled.h3(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n"])));
35634
35738
  var ReadTextSentence = styledComponents.styled.div(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n font-weight: 600;\n text-align: center;\n"])));
35635
35739
  var Countdown = styledComponents.styled.div(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 20;\n display: grid;\n place-items: center;\n color: white;\n font-size: 64px;\n font-weight: 700;\n pointer-events: none;\n"])));
35636
35740
  var Review = styledComponents.styled.div(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n z-index: 30;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n padding: 24px;\n overflow: auto;\n background: ", ";\n\n > video {\n width: min(100%, 720px);\n max-height: 52vh;\n }\n"])), function (props) {
@@ -35650,7 +35754,7 @@ function useDocumentCapture(controller) {
35650
35754
  return shim.useSyncExternalStore(subscribe, controller.getState, controller.getState);
35651
35755
  }
35652
35756
 
35653
- var _templateObject$e, _templateObject2$e, _templateObject3$a, _templateObject4$6, _templateObject5$6;
35757
+ var _templateObject$e, _templateObject2$e, _templateObject3$b, _templateObject4$7, _templateObject5$6;
35654
35758
  /** Human wording for each gate, in the order the engine reports them. */
35655
35759
  /** Short enough that the triple fits one line on a phone. */
35656
35760
  var GUIDANCE_LABELS = {
@@ -35953,8 +36057,8 @@ var PaneAnchor = styledComponents.styled.div(_templateObject$e || (_templateObje
35953
36057
  // swallow a capture tap. This one has to be tappable, so it re-enables them on
35954
36058
  // its own subtree only.
35955
36059
  var InteractivePane = styledComponents.styled.span(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n display: block;\n cursor: pointer;\n user-select: none;\n"])));
35956
- var Row = styledComponents.styled.span(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
35957
- var Controls = styledComponents.styled.span(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
36060
+ var Row = styledComponents.styled.span(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
36061
+ var Controls = styledComponents.styled.span(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 6px;\n margin-top: 6px;\n"])));
35958
36062
  var Chip = styledComponents.styled.button(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n font: bold 11px monospace;\n padding: 4px 8px;\n border: 1px solid limegreen;\n border-radius: 3px;\n background: ", ";\n color: ", ";\n cursor: pointer;\n"])), function (_ref5) {
35959
36063
  var $active = _ref5.$active;
35960
36064
  return $active ? 'limegreen' : 'transparent';
@@ -35963,7 +36067,7 @@ var Chip = styledComponents.styled.button(_templateObject5$6 || (_templateObject
35963
36067
  return $active ? 'black' : 'limegreen';
35964
36068
  });
35965
36069
 
35966
- var _templateObject$d, _templateObject2$d, _templateObject3$9;
36070
+ var _templateObject$d, _templateObject2$d, _templateObject3$a;
35967
36071
  /**
35968
36072
  * Which verbiage member renders each code.
35969
36073
  *
@@ -36078,9 +36182,9 @@ function DocumentCaptureManualCaptureHint(_ref6) {
36078
36182
  * competed the applicant would read the wrong one. No dot, lower contrast, no
36079
36183
  * background of its own beyond what legibility over video requires.
36080
36184
  */
36081
- var ManualCaptureHint = styledComponents.styled.div(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: min(88%, 38ch);\n padding: 7px 14px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n text-align: center;\n color: rgba(255, 255, 255, 0.86);\n background: rgba(10, 14, 19, 0.7);\n"])));
36185
+ var ManualCaptureHint = styledComponents.styled.div(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n max-width: min(88%, 38ch);\n padding: 7px 14px;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n text-align: center;\n color: rgba(255, 255, 255, 0.86);\n background: rgba(10, 14, 19, 0.7);\n"])));
36082
36186
 
36083
- var _templateObject$c, _templateObject2$c, _templateObject3$8;
36187
+ var _templateObject$c, _templateObject2$c, _templateObject3$9;
36084
36188
  function DocumentCaptureReviewScreen(_ref) {
36085
36189
  var contentUrl = _ref.contentUrl,
36086
36190
  headingText = _ref.headingText,
@@ -36140,7 +36244,7 @@ var ReviewHeading = styledComponents.styled.h2(_templateObject$c || (_templateOb
36140
36244
  // without it the default `min-height: auto` floors the wrapper at the image's
36141
36245
  // intrinsic height and the buttons get pushed off the bottom of a phone.
36142
36246
  var ImageWrap = styledComponents.styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 18px;\n"])));
36143
- var PreviewImage$1 = styledComponents.styled.img(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
36247
+ var PreviewImage$1 = styledComponents.styled.img(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n border-radius: 4px;\n border: 1px solid #e2e2e8;\n"])));
36144
36248
 
36145
36249
  function computeGuideRect$1(_ref) {
36146
36250
  var wrapperWidth = _ref.wrapperWidth,
@@ -36419,7 +36523,7 @@ var CanvasWrapper = styledComponents.styled.div(_templateObject$b || (_templateO
36419
36523
  });
36420
36524
  var Canvas = styledComponents.styled.canvas(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n display: block;\n"])));
36421
36525
 
36422
- var _templateObject$a, _templateObject2$a, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
36526
+ var _templateObject$a, _templateObject2$a, _templateObject3$8, _templateObject4$6, _templateObject5$5, _templateObject6$4, _templateObject7$4, _templateObject8$4, _templateObject9$4, _templateObject0$4, _templateObject1$4, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2;
36423
36527
  /** The verbiage fallbacks, exported so the i18n parity test reads the real
36424
36528
  * literals rather than a second copy that could drift from them. */
36425
36529
  var DOCUMENT_CAPTURE_FALLBACK_VERBIAGE = {
@@ -37009,11 +37113,11 @@ var GuidedBottomStack = styledComponents.styled.div(_templateObject2$a || (_temp
37009
37113
  * the mechanism that just gave up, and a disabled-looking disc would refuse a
37010
37114
  * tap the applicant is entitled to make.
37011
37115
  */
37012
- var GuidedShutterDock = styledComponents.styled.div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n justify-content: center;\n pointer-events: none;\n\n /* Straddling the guide box's bottom edge EXACTLY, when we know where that\n edge is. Anchoring to the surface bottom instead left it wherever the\n letterboxing happened to put it \u2014 near the edge on a phone, floating well\n below it on a desktop, and half-overlapping at sizes in between, which\n reads as a mistake rather than a choice.\n\n Centred on the edge is a decision the geometry can state: the disc sits\n half on the frame and half on the surround, at every viewport. */\n ", "\n"])), function (_ref3) {
37116
+ var GuidedShutterDock = styledComponents.styled.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 10001;\n display: flex;\n justify-content: center;\n pointer-events: none;\n\n /* Straddling the guide box's bottom edge EXACTLY, when we know where that\n edge is. Anchoring to the surface bottom instead left it wherever the\n letterboxing happened to put it \u2014 near the edge on a phone, floating well\n below it on a desktop, and half-overlapping at sizes in between, which\n reads as a mistake rather than a choice.\n\n Centred on the edge is a decision the geometry can state: the disc sits\n half on the frame and half on the surround, at every viewport. */\n ", "\n"])), function (_ref3) {
37013
37117
  var $centreY = _ref3.$centreY;
37014
37118
  return $centreY === null ? 'bottom: max(20px, env(safe-area-inset-bottom));' : "top: " + $centreY + "px; transform: translateY(-50%);";
37015
37119
  });
37016
- var GuidedShutter = styledComponents.styled.button(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n position: relative;\n width: ", "px;\n height: ", "px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n padding: 0;\n\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. */\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. It dims to a TRACK\n while a tap is pending, so the sweep drawn over it reads as filling. */\n &::after {\n content: '';\n position: absolute;\n inset: -", "px;\n border: ", "px solid\n ", ";\n border-radius: 50%;\n }\n\n &:active {\n transform: scale(0.94);\n }\n\n /* Held down for the length of the burst window. A one-shot state change, not\n an animation: a spinner or a pulse here would repaint every frame on top\n of live video for the exact interval the applicant is holding still. */\n ", "\n\n &:disabled {\n cursor: default;\n /* A pending shutter is working, not refusing. Only the not-yet-ready case\n is dimmed far enough to read as unavailable. */\n opacity: ", ";\n }\n"])), GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_RING_PX, GUIDED_SHUTTER_RING_WIDTH_PX, function (_ref4) {
37120
+ var GuidedShutter = styledComponents.styled.button(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteralLoose(["\n pointer-events: auto;\n position: relative;\n width: ", "px;\n height: ", "px;\n border: 0;\n border-radius: 50%;\n background: #fff;\n cursor: pointer;\n padding: 0;\n\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. */\n /* The camera app's ring, drawn outside the disc so the tappable area is the\n disc itself and the ring cannot swallow an edge tap. It dims to a TRACK\n while a tap is pending, so the sweep drawn over it reads as filling. */\n &::after {\n content: '';\n position: absolute;\n inset: -", "px;\n border: ", "px solid\n ", ";\n border-radius: 50%;\n }\n\n &:active {\n transform: scale(0.94);\n }\n\n /* Held down for the length of the burst window. A one-shot state change, not\n an animation: a spinner or a pulse here would repaint every frame on top\n of live video for the exact interval the applicant is holding still. */\n ", "\n\n &:disabled {\n cursor: default;\n /* A pending shutter is working, not refusing. Only the not-yet-ready case\n is dimmed far enough to read as unavailable. */\n opacity: ", ";\n }\n"])), GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_SIZE_PX, GUIDED_SHUTTER_RING_PX, GUIDED_SHUTTER_RING_WIDTH_PX, function (_ref4) {
37017
37121
  var $pending = _ref4.$pending;
37018
37122
  return $pending ? 'rgba(255, 255, 255, 0.25)' : 'rgba(255, 255, 255, 0.9)';
37019
37123
  }, function (_ref5) {
@@ -37333,7 +37437,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
37333
37437
  });
37334
37438
  };
37335
37439
 
37336
- var _templateObject$9, _templateObject2$9, _templateObject3$6, _templateObject4$4, _templateObject5$4;
37440
+ var _templateObject$9, _templateObject2$9, _templateObject3$7, _templateObject4$5, _templateObject5$4;
37337
37441
  // The `useTranslations` fallback defaults, exported so the i18n parity
37338
37442
  // guard (additionalDocumentStrings.test.ts) can assert every non-English
37339
37443
  // locale carries these exact literals by reading them from here rather than
@@ -37503,8 +37607,8 @@ function AdditionalDocumentCapture(_ref) {
37503
37607
  }
37504
37608
  var Inner = styledComponents.styled(OverlayInner$2)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n"])));
37505
37609
  var Heading$2 = styledComponents.styled.h3(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37506
- var DescriptionText = styledComponents.styled.p(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37507
- var ErrorText = styledComponents.styled.p(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37610
+ var DescriptionText = styledComponents.styled.p(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37611
+ var ErrorText = styledComponents.styled.p(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 8px;\n"])));
37508
37612
  var StyledButtonsRow$2 = styledComponents.styled(ButtonsRow$2)(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n margin-top: 32px;\n"])));
37509
37613
 
37510
37614
  function additionalDocumentProgress(documents, results) {
@@ -37628,7 +37732,7 @@ function AdditionalDocumentCaptureWizard(_ref) {
37628
37732
  }, index);
37629
37733
  }
37630
37734
 
37631
- var _templateObject$8, _templateObject2$8, _templateObject3$5, _templateObject4$3, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
37735
+ var _templateObject$8, _templateObject2$8, _templateObject3$6, _templateObject4$4, _templateObject5$3, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$3, _templateObject0$3, _templateObject1$3, _templateObject10$3;
37632
37736
  var CONFETTI_COUNT = 44;
37633
37737
  var CONFETTI_LIFETIME_MS = 4500;
37634
37738
  /**
@@ -37751,8 +37855,8 @@ var RingSuccessScreen = function RingSuccessScreen(_ref) {
37751
37855
  };
37752
37856
  var fadeIn$1 = styledComponents.keyframes(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
37753
37857
  var popCheck = styledComponents.keyframes(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n to { transform: scale(1); opacity: 1; }\n"])));
37754
- var drawTick = styledComponents.keyframes(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
37755
- var confettiFall = styledComponents.keyframes(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
37858
+ var drawTick = styledComponents.keyframes(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n to { stroke-dashoffset: 0; }\n"])));
37859
+ var confettiFall = styledComponents.keyframes(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n to { transform: translateY(110vh) rotate(720deg); opacity: 0.7; }\n"])));
37756
37860
  // Light surface whatever the theme says — see RingFailureScreen's FailureInner
37757
37861
  // for why the foreground is pinned rather than read from the theme.
37758
37862
  var SuccessInner$1 = styledComponents.styled(LoadingOverlayInner)(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n overflow: hidden;\n"])), function (props) {
@@ -37772,7 +37876,7 @@ var StatList = styledComponents.styled.div(_templateObject0$3 || (_templateObjec
37772
37876
  var StatChip = styledComponents.styled.div(_templateObject1$3 || (_templateObject1$3 = _taggedTemplateLiteralLoose(["\n background: #ffffff;\n border: 1px solid rgb(0 0 0 / 0.08);\n border-radius: 12px;\n padding: 9px 14px;\n font-size: 11.5px;\n opacity: 0.9;\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n b {\n font-size: 14px;\n }\n"])));
37773
37877
  var ConfettiPiece = styledComponents.styled.div(_templateObject10$3 || (_templateObject10$3 = _taggedTemplateLiteralLoose(["\n position: absolute;\n width: 9px;\n height: 14px;\n top: -20px;\n opacity: 0.95;\n z-index: 5;\n animation-name: ", ";\n animation-timing-function: linear;\n animation-fill-mode: forwards;\n\n @media (prefers-reduced-motion: reduce) {\n display: none;\n }\n"])), confettiFall);
37774
37878
 
37775
- var _templateObject$7, _templateObject2$7, _templateObject3$4, _templateObject4$2, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
37879
+ var _templateObject$7, _templateObject2$7, _templateObject3$5, _templateObject4$3, _templateObject5$2, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1;
37776
37880
  var toDataUrl$2 = function toDataUrl(value) {
37777
37881
  return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
37778
37882
  };
@@ -37962,10 +38066,10 @@ var markIn = styledComponents.keyframes(_templateObject2$7 || (_templateObject2$
37962
38066
  // loading overlay, and inheriting it painted white text on this white surface:
37963
38067
  // the tips panel (`rgb(255 255 255 / 0.62)`) went fully invisible. Same rule,
37964
38068
  // and the same reason, as `ErrorScreen`'s `ErrorCard`.
37965
- var FailureInner = styledComponents.styled(LoadingOverlayInner)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n overflow-y: auto;\n"])), function (props) {
38069
+ var FailureInner = styledComponents.styled(LoadingOverlayInner)(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n overflow-y: auto;\n"])), function (props) {
37966
38070
  return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
37967
38071
  });
37968
- var FailureLayout = styledComponents.styled.div(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 34px;\n text-align: center;\n\n @media (max-height: 650px) {\n justify-content: flex-start;\n gap: 9px;\n padding-top: 24px;\n padding-bottom: 24px;\n }\n"])));
38072
+ var FailureLayout = styledComponents.styled.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteralLoose(["\n position: relative;\n min-height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n padding: 34px;\n text-align: center;\n\n @media (max-height: 650px) {\n justify-content: flex-start;\n gap: 9px;\n padding-top: 24px;\n padding-bottom: 24px;\n }\n"])));
37969
38073
  var VisualSlot = styledComponents.styled.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n min-height: 120px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 6px;\n animation: ", " 420ms cubic-bezier(0.2, 0, 0, 1) both;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n\n @media (max-height: 650px) {\n min-height: 88px;\n margin-bottom: 0;\n }\n"])), markIn);
37970
38074
  var SelfieThumb$1 = styledComponents.styled.div(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 96px;\n height: 120px;\n border-radius: 16px;\n box-shadow:\n 0 0 0 1px rgb(0 0 0 / 0.08),\n 0 12px 30px rgb(0 0 0 / 0.18);\n\n @media (max-height: 650px) {\n width: 70px;\n height: 88px;\n }\n\n img {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n border-radius: inherit;\n outline: 1px solid rgb(255 255 255 / 0.22);\n outline-offset: -1px;\n }\n"])));
37971
38075
  var ThumbStatus = styledComponents.styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 6px;\n bottom: 6px;\n width: 28px;\n height: 28px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: ", ";\n color: #ffffff;\n box-shadow:\n 0 0 0 3px rgb(255 255 255 / 0.9),\n 0 4px 10px rgb(0 0 0 / 0.2);\n\n svg {\n width: 17px;\n height: 17px;\n fill: currentColor;\n stroke: currentColor;\n stroke-width: 2.25;\n stroke-linecap: round;\n }\n"])), function (props) {
@@ -37997,7 +38101,7 @@ var PrimaryAction = styledComponents.styled(LoaderButton)(_templateObject15$1 ||
37997
38101
  });
37998
38102
  var SecondaryAction = styledComponents.styled(LoaderButton)(_templateObject16$1 || (_templateObject16$1 = _taggedTemplateLiteralLoose(["\n && {\n min-height: 44px;\n border: none;\n border-radius: 22px;\n padding: 10px 22px;\n background-color: transparent;\n color: #26312e;\n font-size: 14px;\n font-weight: 600;\n opacity: 0.7;\n box-shadow: none;\n transition-property: transform, opacity, background-color;\n transition-duration: 150ms;\n transition-timing-function: ease-out;\n\n &:hover:not(.disabled) {\n opacity: 1;\n background-color: rgb(255 255 255 / 0.45);\n }\n\n &:active:not(.disabled) {\n transform: scale(0.96);\n }\n\n &:focus-visible {\n outline: none;\n opacity: 1;\n box-shadow: 0 0 0 3px rgb(0 0 0 / 0.09);\n }\n\n @media (prefers-reduced-motion: reduce) {\n &:hover:not(.disabled),\n &:active:not(.disabled) {\n transform: none;\n }\n }\n }\n"])));
37999
38103
 
38000
- var _templateObject$6, _templateObject2$6, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
38104
+ var _templateObject$6, _templateObject2$6, _templateObject3$4, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject0$1, _templateObject1$1, _templateObject10$1, _templateObject11$1;
38001
38105
  var toDataUrl$1 = function toDataUrl(value) {
38002
38106
  return value.startsWith('data:') ? value : "data:image/jpeg;base64," + value;
38003
38107
  };
@@ -38107,10 +38211,10 @@ var fadeIn = styledComponents.keyframes(_templateObject$6 || (_templateObject$6
38107
38211
  var spin = styledComponents.keyframes(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteralLoose(["\n to { transform: rotate(360deg); }\n"])));
38108
38212
  // Light surface whatever the theme says — see RingFailureScreen's FailureInner
38109
38213
  // for why the foreground is pinned rather than read from the theme.
38110
- var FinishingInner = styledComponents.styled(LoadingOverlayInner)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
38214
+ var FinishingInner = styledComponents.styled(LoadingOverlayInner)(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: #12211d;\n animation: ", " 250ms ease-out both;\n"])), function (props) {
38111
38215
  return "linear-gradient(180deg, #ffffff, color-mix(in srgb, " + props.$tintBase + " 45%, #ffffff))";
38112
38216
  }, fadeIn);
38113
- var FinishingLayout = styledComponents.styled.div(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n padding: 34px;\n text-align: center;\n"])));
38217
+ var FinishingLayout = styledComponents.styled.div(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n padding: 34px;\n text-align: center;\n"])));
38114
38218
  var SelfieThumb = styledComponents.styled.div(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n width: 96px;\n height: 120px;\n border-radius: 16px;\n background-size: cover;\n background-position: center;\n box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);\n"])));
38115
38219
  var ThumbBadge = styledComponents.styled.div(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 6px;\n right: 6px;\n width: 26px;\n height: 26px;\n border-radius: 50%;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n color: #ffffff;\n font-size: 13px;\n box-shadow: 0 3px 8px rgb(0 0 0 / 0.3);\n"])), function (props) {
38116
38220
  return props.$accent;
@@ -38157,7 +38261,7 @@ var readFlowElapsedMs = function readFlowElapsedMs() {
38157
38261
  return flowStartedAt === null ? null : Date.now() - flowStartedAt;
38158
38262
  };
38159
38263
 
38160
- var _templateObject$5, _templateObject2$5, _templateObject3$2;
38264
+ var _templateObject$5, _templateObject2$5, _templateObject3$3;
38161
38265
  var DEFAULT_HEADING$1 = {
38162
38266
  identification: 'Customer has been identified!',
38163
38267
  verification: 'Customer has been verified!'
@@ -38216,9 +38320,9 @@ function CustomerMatchSuccess(_ref) {
38216
38320
  }
38217
38321
  var Heading$1 = styledComponents.styled.h3(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
38218
38322
  var ImageContainer$1 = styledComponents.styled(ButtonsRow$2)(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
38219
- var StyledButtonsRow$1 = styledComponents.styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
38323
+ var StyledButtonsRow$1 = styledComponents.styled(ButtonsRow$2)(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
38220
38324
 
38221
- var _templateObject$4, _templateObject2$4, _templateObject3$1;
38325
+ var _templateObject$4, _templateObject2$4, _templateObject3$2;
38222
38326
  var DEFAULT_HEADING = {
38223
38327
  identification: 'Customer not found',
38224
38328
  verification: 'Customer not verified'
@@ -38280,7 +38384,7 @@ function CustomerMatchFailure(_ref) {
38280
38384
  }
38281
38385
  var Heading = styledComponents.styled.h3(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n margin-bottom: 24px;\n"])));
38282
38386
  var ImageContainer = styledComponents.styled(ButtonsRow$2)(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteralLoose(["\n max-height: calc(100vh - 185px);\n"])));
38283
- var StyledButtonsRow = styledComponents.styled(ButtonsRow$2)(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
38387
+ var StyledButtonsRow = styledComponents.styled(ButtonsRow$2)(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n"])));
38284
38388
 
38285
38389
  var SubmissionContext = /*#__PURE__*/React.createContext(null);
38286
38390
  var EMPTY_SUBMISSION_OPTIONS = {};
@@ -38672,7 +38776,7 @@ var highlightJson = function highlightJson(str) {
38672
38776
  return elements;
38673
38777
  };
38674
38778
 
38675
- var _templateObject$3, _templateObject2$3, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38779
+ var _templateObject$3, _templateObject2$3, _templateObject3$1, _templateObject4$1, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
38676
38780
  function _createForOfIteratorHelperLoose$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: true } : { done: false, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38677
38781
  function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
38678
38782
  function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -39239,8 +39343,8 @@ function TimingFact(_ref9) {
39239
39343
  }
39240
39344
  var SuccessInner = styledComponents.styled(OverlayInner$2)(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteralLoose(["\n box-sizing: border-box;\n max-width: 900px;\n height: auto;\n min-height: 100%;\n margin: auto;\n padding: 40px;\n text-align: left;\n"])));
39241
39345
  var Header = styledComponents.styled.header(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n"])));
39242
- var Eyebrow = styledComponents.styled.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
39243
- var TimingGrid = styledComponents.styled.dl(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
39346
+ var Eyebrow = styledComponents.styled.p(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n margin: 0 0 6px;\n color: #277553;\n font-size: 0.75rem;\n font-weight: 700;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n"])));
39347
+ var TimingGrid = styledComponents.styled.dl(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));\n gap: 12px;\n margin: 16px 0 24px;\n"])));
39244
39348
  var TimingCard = styledComponents.styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding: 14px;\n border: 1px solid #d9e2dc;\n border-radius: 8px;\n\n dt {\n color: #62706a;\n font-size: 0.75rem;\n }\n\n dd {\n margin: 6px 0 0;\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n }\n"])));
39245
39349
  var UploadSubheader = styledComponents.styled.h4(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n margin: 20px 0 8px;\n font-size: 0.8125rem;\n"])));
39246
39350
  var UploadList = styledComponents.styled.dl(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n margin: 0 0 24px;\n"])));
@@ -40283,8 +40387,8 @@ function RemoteDiagnosticsMount(_ref) {
40283
40387
  return null;
40284
40388
  }
40285
40389
 
40286
- var _templateObject$1, _templateObject2$1;
40287
- var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "children"];
40390
+ var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
40391
+ var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
40288
40392
  function FlowChassis(_ref) {
40289
40393
  var client = _ref.client,
40290
40394
  action = _ref.action,
@@ -40299,6 +40403,8 @@ function FlowChassis(_ref) {
40299
40403
  captureProgress = _ref.captureProgress,
40300
40404
  remoteDiagnostics = _ref.remoteDiagnostics,
40301
40405
  loadingSpinner = _ref.loadingSpinner,
40406
+ _ref$showEnrollmentId = _ref.showEnrollmentId,
40407
+ showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
40302
40408
  children = _ref.children,
40303
40409
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
40304
40410
  var geolocation = useGeolocation(geolocationEnabled);
@@ -40320,6 +40426,7 @@ function FlowChassis(_ref) {
40320
40426
  }, callbacks, {
40321
40427
  children: jsxRuntime.jsx(FlowPage, {
40322
40428
  className: className,
40429
+ enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
40323
40430
  children: jsxRuntime.jsx(AuthGate, {
40324
40431
  children: geolocationRequired && geolocation.blocked ? jsxRuntime.jsx(GeolocationAccessDeniedOverlay, {
40325
40432
  onRetry: geolocation.retry
@@ -40380,23 +40487,35 @@ function AuthGate(_ref2) {
40380
40487
  /**
40381
40488
  * The flow's page surface: `theme.header` and `theme.footer` (2.x's
40382
40489
  * SdkPage.tsx:41) frame a body that takes the remaining height and is the
40383
- * positioned ancestor every flow stage lays out against.
40490
+ * positioned ancestor every flow stage lays out against. The debug
40491
+ * enrollment-ID banner sits outside that body, so stages and their in-body
40492
+ * overlays lay out below it instead of over it.
40384
40493
  */
40385
40494
  function FlowPage(_ref3) {
40386
40495
  var className = _ref3.className,
40496
+ enrollmentId = _ref3.enrollmentId,
40387
40497
  children = _ref3.children;
40388
40498
  var _useTheme = styledComponents.useTheme(),
40389
40499
  Header = _useTheme.header,
40390
40500
  Footer = _useTheme.footer;
40391
40501
  return jsxRuntime.jsxs(FlowPageOuter, {
40392
40502
  className: className,
40393
- children: [Header && jsxRuntime.jsx(Header, {}), jsxRuntime.jsx(FlowPageBody, {
40503
+ children: [Header && jsxRuntime.jsx(Header, {}), enrollmentId && jsxRuntime.jsxs(EnrollmentIdBanner, {
40504
+ "data-testid": "idmission-debug-enrollment-id",
40505
+ children: ["Enrollment ID: ", jsxRuntime.jsx(EnrollmentIdValue, {
40506
+ children: enrollmentId
40507
+ })]
40508
+ }), jsxRuntime.jsx(FlowPageBody, {
40394
40509
  children: children
40395
40510
  }), Footer && jsxRuntime.jsx(Footer, {})]
40396
40511
  });
40397
40512
  }
40398
- var FlowPageBody = styledComponents.styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
40399
- var FlowPageOuter = styledComponents.styled.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
40513
+ // Debug-only chrome, so it ignores the theme on purpose: it has to read the
40514
+ // same on every customer skin.
40515
+ var EnrollmentIdBanner = styledComponents.styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n flex: none;\n padding: 6px 12px;\n font: 600 14px/1.3 monospace;\n text-align: center;\n color: #000;\n background: #facc15;\n overflow-wrap: anywhere;\n"])));
40516
+ var EnrollmentIdValue = styledComponents.styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n user-select: all;\n"])));
40517
+ var FlowPageBody = styledComponents.styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 1;\n min-height: 0;\n overflow: hidden;\n isolation: isolate;\n"])));
40518
+ var FlowPageOuter = styledComponents.styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 320px;\n overflow: hidden;\n isolation: isolate;\n background: ", ";\n ", "\n ", "\n"])), function (props) {
40400
40519
  var _props$theme$backgrou;
40401
40520
  return (_props$theme$backgrou = props.theme.background) != null ? _props$theme$backgrou : '#fff';
40402
40521
  }, function (props) {
@@ -40643,6 +40762,10 @@ function IdValidationFlow(_ref) {
40643
40762
  onSubmitted = _ref.onSubmitted,
40644
40763
  children = _ref.children,
40645
40764
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
40765
+ useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
40766
+ capture: capture,
40767
+ signatureCapture: signatureCapture
40768
+ });
40646
40769
  // Config callbacks follow the latest render; see useLatestCallbacks.
40647
40770
  var latestCapture = useLatestCallbacks(capture);
40648
40771
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
@@ -40802,6 +40925,9 @@ function FaceValidationFlow(_ref) {
40802
40925
  children = _ref.children;
40803
40926
  var checkLivenessOptions = capture.checkLivenessOptions,
40804
40927
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
40928
+ useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
40929
+ capture: controllerCapture
40930
+ });
40805
40931
  // Config callbacks follow the latest render; see useLatestCallbacks.
40806
40932
  var latestCapture = useLatestCallbacks(controllerCapture);
40807
40933
  var latestLiveness = useLatestCallbacks(controllerCapture.liveness);
@@ -40923,6 +41049,11 @@ function IdAndFaceValidationFlow(_ref) {
40923
41049
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
40924
41050
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
40925
41051
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
41052
+ useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
41053
+ faceCapture: selfieCaptureConfig,
41054
+ idCapture: idCapture,
41055
+ signatureCapture: signatureCapture
41056
+ });
40926
41057
  // Config callbacks follow the latest render; see useLatestCallbacks.
40927
41058
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
40928
41059
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -41183,6 +41314,10 @@ function SignatureKYCFlow(_ref) {
41183
41314
  onCaptureError = _ref.onCaptureError;
41184
41315
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41185
41316
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
41317
+ useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
41318
+ faceCapture: selfieCaptureConfig,
41319
+ signatureCapture: signatureCapture
41320
+ });
41186
41321
  // Config callbacks follow the latest render; see useLatestCallbacks.
41187
41322
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
41188
41323
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -41544,6 +41679,12 @@ function VideoIdValidationFlow(_ref) {
41544
41679
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
41545
41680
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41546
41681
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
41682
+ useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
41683
+ faceCapture: selfieCaptureConfig,
41684
+ idCapture: idCapture,
41685
+ capture: capture,
41686
+ signatureCapture: signatureCapture
41687
+ });
41547
41688
  // Config callbacks follow the latest render; see useLatestCallbacks.
41548
41689
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
41549
41690
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -44532,60 +44673,6 @@ function toDocumentCaptureInput(document) {
44532
44673
  };
44533
44674
  }
44534
44675
 
44535
- // Makes the mount-time-only `autoCapture` contract audible (#351).
44536
- //
44537
- // `DocumentCaptureFlow` builds its controller inside `useState(() => …)` from
44538
- // `documentsRef.current`, and `documentCapture/controller.ts` has no
44539
- // reconfigure path — so `autoCapture` is read once, at mount, and every later
44540
- // change is ignored. A reconfigure path was ruled against: it is real surface
44541
- // on a controller that has none today, bought to serve a race the consumer can
44542
- // simply not have (AMEX's `DocumentCaptureScreen` should gate on `flagsLoaded`,
44543
- // not just `sessionLoaded`).
44544
- //
44545
- // The SILENCE is the expensive half. All four of this repo's cascade-default
44546
- // incidents were "the value was quietly wrong and nothing said so", and this
44547
- // one has the same shape: a capture screen that mounts before the flags land
44548
- // has auto-capture off for that applicant's whole session, with no error and
44549
- // no log. The field-visible half of the same ruling is
44550
- // `autoCaptureStatus: 'disabled:lateFlag'` on the capture metadata.
44551
- /**
44552
- * A comparable summary of what auto-capture each document asked for.
44553
- *
44554
- * Resolved rather than compared raw, so a caller who re-spreads an equivalent
44555
- * bag every render (`autoCapture: {}`, or `{ minScore: undefined }`) does not
44556
- * trip the warning — only a change that would actually have configured the
44557
- * engine differently does.
44558
- *
44559
- * PRESENCE is preserved as `null` rather than folded into the resolved
44560
- * defaults, because `undefined` -> `{}` is precisely the late-flag race this
44561
- * exists to catch, and resolving both would make them identical.
44562
- */
44563
- function autoCaptureSignature(documents) {
44564
- return JSON.stringify(documents.map(function (document) {
44565
- return document.autoCapture ? resolveAutoCapture(document.autoCapture, undefined) : null;
44566
- }));
44567
- }
44568
- /**
44569
- * Warn once if `documents`' auto-capture configuration changes after mount.
44570
- *
44571
- * Warns rather than reconfigures: the change genuinely has no effect, and a
44572
- * caller who cannot see that is the failure mode.
44573
- */
44574
- function useAutoCaptureMountGuard(documents) {
44575
- var mounted = React.useRef(null);
44576
- var warned = React.useRef(false);
44577
- var signature = autoCaptureSignature(documents);
44578
- React.useEffect(function () {
44579
- if (mounted.current === null) {
44580
- mounted.current = signature;
44581
- return;
44582
- }
44583
- if (warned.current || signature === mounted.current) return;
44584
- warned.current = true;
44585
- 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.');
44586
- }, [signature]);
44587
- }
44588
-
44589
44676
  function buildDocumentCaptureStep(controller, view, sessionReady) {
44590
44677
  if (view === void 0) {
44591
44678
  view = {};
@@ -44634,15 +44721,16 @@ function DocumentCaptureFlow(_ref) {
44634
44721
  // props without being torn down and rebuilt on every render.
44635
44722
  var documentsRef = React.useRef(documents);
44636
44723
  documentsRef.current = documents;
44637
- // `autoCapture` is mount-time-only and the controller has no reconfigure
44638
- // path, so a late change is ignored — loudly rather than silently (#351).
44639
- useAutoCaptureMountGuard(documents);
44640
44724
  var capturedRef = React.useRef(onDocumentCaptured);
44641
44725
  capturedRef.current = onDocumentCaptured;
44642
44726
  var uploadedRef = React.useRef(onDocumentUploaded);
44643
44727
  uploadedRef.current = onDocumentUploaded;
44644
44728
  var completeRef = React.useRef(onComplete);
44645
44729
  completeRef.current = onComplete;
44730
+ useMountOnlyWarnings('DocumentCaptureFlow', FLOW_MOUNT_ONLY_REMEDY, {
44731
+ capture: capture,
44732
+ documents: documents.map(toDocumentCaptureInput)
44733
+ });
44646
44734
  // Config callbacks follow the latest render; see useLatestCallbacks.
44647
44735
  var latestCapture = useLatestCallbacks(capture);
44648
44736
  var _useState = React.useState(function () {
@@ -44783,6 +44871,10 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44783
44871
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
44784
44872
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
44785
44873
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
44874
+ useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
44875
+ faceCapture: selfieCaptureConfig,
44876
+ signatureCapture: signatureCapture
44877
+ });
44786
44878
  // Config callbacks follow the latest render; see useLatestCallbacks.
44787
44879
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
44788
44880
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -44906,6 +44998,7 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44906
44998
  client: client,
44907
44999
  action: SubmissionAction.ENROLL,
44908
45000
  submission: submission,
45001
+ showEnrollmentId: showDiagnostics,
44909
45002
  theme: theme,
44910
45003
  className: className
44911
45004
  }, callbacks, {
@@ -44982,6 +45075,12 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
44982
45075
  var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
44983
45076
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
44984
45077
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
45078
+ useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
45079
+ faceCapture: selfieCaptureConfig,
45080
+ idCapture: idCapture,
45081
+ signatureCapture: signatureCapture,
45082
+ videoIdCapture: videoIdCapture
45083
+ });
44985
45084
  // Config callbacks follow the latest render; see useLatestCallbacks.
44986
45085
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
44987
45086
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
@@ -45187,6 +45286,7 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45187
45286
  client: client,
45188
45287
  action: SubmissionAction.ENROLL,
45189
45288
  submission: submission,
45289
+ showEnrollmentId: showDiagnostics,
45190
45290
  theme: theme,
45191
45291
  className: className
45192
45292
  }, callbacks, {
@@ -45903,6 +46003,9 @@ function CustomerMatchFlow(_ref) {
45903
46003
  onExitAfterFailure = _ref.onExitAfterFailure;
45904
46004
  var checkLivenessOptions = capture.checkLivenessOptions,
45905
46005
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded);
46006
+ useMountOnlyWarnings(variant === 'identification' ? 'CustomerIdentificationFlow' : 'CustomerVerificationFlow', FLOW_MOUNT_ONLY_REMEDY, {
46007
+ capture: controllerCapture
46008
+ });
45906
46009
  // Config callbacks follow the latest render; see useLatestCallbacks.
45907
46010
  var latestCapture = useLatestCallbacks(controllerCapture);
45908
46011
  // These flows drive the live-check themselves, per capture, and read its
@@ -48584,7 +48687,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48584
48687
  });
48585
48688
  }
48586
48689
 
48587
- var webSdkVersion = '2.6.3-changeset-release-develop-0ac75d2';
48690
+ var webSdkVersion = '2.6.3-changeset-release-develop-eac763c';
48588
48691
 
48589
48692
  // GENERATED by scripts/styleBagTypes.mjs from
48590
48693
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not