idmission-web-sdk 2.3.56 → 2.3.57

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.3.56';
214
+ var webSdkVersion = '2.3.57';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -9477,11 +9477,18 @@
9477
9477
  return listeners["delete"](listener);
9478
9478
  };
9479
9479
  };
9480
+ var destroy = function destroy() {
9481
+ if ((undefined ? undefined.MODE : void 0) !== "production") {
9482
+ console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.");
9483
+ }
9484
+ listeners.clear();
9485
+ };
9480
9486
  var api = {
9481
9487
  setState: setState,
9482
9488
  getState: getState,
9483
9489
  getInitialState: getInitialState,
9484
- subscribe: subscribe
9490
+ subscribe: subscribe,
9491
+ destroy: destroy
9485
9492
  };
9486
9493
  var initialState = state = createState(setState, getState, api);
9487
9494
  return api;
@@ -9490,25 +9497,213 @@
9490
9497
  return createState ? createStoreImpl(createState) : createStoreImpl;
9491
9498
  };
9492
9499
 
9500
+ var withSelector = {exports: {}};
9501
+
9502
+ var shim = {exports: {}};
9503
+
9504
+ var useSyncExternalStoreShim_development = {};
9505
+
9506
+ /**
9507
+ * @license React
9508
+ * use-sync-external-store-shim.development.js
9509
+ *
9510
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9511
+ *
9512
+ * This source code is licensed under the MIT license found in the
9513
+ * LICENSE file in the root directory of this source tree.
9514
+ */
9515
+ var hasRequiredUseSyncExternalStoreShim_development;
9516
+ function requireUseSyncExternalStoreShim_development() {
9517
+ if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
9518
+ hasRequiredUseSyncExternalStoreShim_development = 1;
9519
+ (function () {
9520
+ function is(x, y) {
9521
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
9522
+ }
9523
+ function useSyncExternalStore$2(subscribe, getSnapshot) {
9524
+ didWarnOld18Alpha || void 0 === React$1.startTransition || (didWarnOld18Alpha = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
9525
+ var value = getSnapshot();
9526
+ if (!didWarnUncachedGetSnapshot) {
9527
+ var cachedValue = getSnapshot();
9528
+ objectIs(value, cachedValue) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), didWarnUncachedGetSnapshot = !0);
9529
+ }
9530
+ cachedValue = useState({
9531
+ inst: {
9532
+ value: value,
9533
+ getSnapshot: getSnapshot
9534
+ }
9535
+ });
9536
+ var inst = cachedValue[0].inst,
9537
+ forceUpdate = cachedValue[1];
9538
+ useLayoutEffect(function () {
9539
+ inst.value = value;
9540
+ inst.getSnapshot = getSnapshot;
9541
+ checkIfSnapshotChanged(inst) && forceUpdate({
9542
+ inst: inst
9543
+ });
9544
+ }, [subscribe, value, getSnapshot]);
9545
+ useEffect(function () {
9546
+ checkIfSnapshotChanged(inst) && forceUpdate({
9547
+ inst: inst
9548
+ });
9549
+ return subscribe(function () {
9550
+ checkIfSnapshotChanged(inst) && forceUpdate({
9551
+ inst: inst
9552
+ });
9553
+ });
9554
+ }, [subscribe]);
9555
+ useDebugValue(value);
9556
+ return value;
9557
+ }
9558
+ function checkIfSnapshotChanged(inst) {
9559
+ var latestGetSnapshot = inst.getSnapshot;
9560
+ inst = inst.value;
9561
+ try {
9562
+ var nextValue = latestGetSnapshot();
9563
+ return !objectIs(inst, nextValue);
9564
+ } catch (error) {
9565
+ return !0;
9566
+ }
9567
+ }
9568
+ function useSyncExternalStore$1(subscribe, getSnapshot) {
9569
+ return getSnapshot();
9570
+ }
9571
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9572
+ var React$1 = React,
9573
+ objectIs = "function" === typeof Object.is ? Object.is : is,
9574
+ useState = React$1.useState,
9575
+ useEffect = React$1.useEffect,
9576
+ useLayoutEffect = React$1.useLayoutEffect,
9577
+ useDebugValue = React$1.useDebugValue,
9578
+ didWarnOld18Alpha = !1,
9579
+ didWarnUncachedGetSnapshot = !1,
9580
+ shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
9581
+ useSyncExternalStoreShim_development.useSyncExternalStore = void 0 !== React$1.useSyncExternalStore ? React$1.useSyncExternalStore : shim;
9582
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9583
+ })();
9584
+ return useSyncExternalStoreShim_development;
9585
+ }
9586
+
9587
+ var hasRequiredShim;
9588
+ function requireShim() {
9589
+ if (hasRequiredShim) return shim.exports;
9590
+ hasRequiredShim = 1;
9591
+ {
9592
+ shim.exports = requireUseSyncExternalStoreShim_development();
9593
+ }
9594
+ return shim.exports;
9595
+ }
9596
+
9597
+ var withSelector_development = {};
9598
+
9599
+ /**
9600
+ * @license React
9601
+ * use-sync-external-store-shim/with-selector.development.js
9602
+ *
9603
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9604
+ *
9605
+ * This source code is licensed under the MIT license found in the
9606
+ * LICENSE file in the root directory of this source tree.
9607
+ */
9608
+ var hasRequiredWithSelector_development;
9609
+ function requireWithSelector_development() {
9610
+ if (hasRequiredWithSelector_development) return withSelector_development;
9611
+ hasRequiredWithSelector_development = 1;
9612
+ (function () {
9613
+ function is(x, y) {
9614
+ return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
9615
+ }
9616
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9617
+ var React$1 = React,
9618
+ shim = requireShim(),
9619
+ objectIs = "function" === typeof Object.is ? Object.is : is,
9620
+ useSyncExternalStore = shim.useSyncExternalStore,
9621
+ useRef = React$1.useRef,
9622
+ useEffect = React$1.useEffect,
9623
+ useMemo = React$1.useMemo,
9624
+ useDebugValue = React$1.useDebugValue;
9625
+ withSelector_development.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
9626
+ var instRef = useRef(null);
9627
+ if (null === instRef.current) {
9628
+ var inst = {
9629
+ hasValue: !1,
9630
+ value: null
9631
+ };
9632
+ instRef.current = inst;
9633
+ } else inst = instRef.current;
9634
+ instRef = useMemo(function () {
9635
+ function memoizedSelector(nextSnapshot) {
9636
+ if (!hasMemo) {
9637
+ hasMemo = !0;
9638
+ memoizedSnapshot = nextSnapshot;
9639
+ nextSnapshot = selector(nextSnapshot);
9640
+ if (void 0 !== isEqual && inst.hasValue) {
9641
+ var currentSelection = inst.value;
9642
+ if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
9643
+ }
9644
+ return memoizedSelection = nextSnapshot;
9645
+ }
9646
+ currentSelection = memoizedSelection;
9647
+ if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
9648
+ var nextSelection = selector(nextSnapshot);
9649
+ if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
9650
+ memoizedSnapshot = nextSnapshot;
9651
+ return memoizedSelection = nextSelection;
9652
+ }
9653
+ var hasMemo = !1,
9654
+ memoizedSnapshot,
9655
+ memoizedSelection,
9656
+ maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
9657
+ return [function () {
9658
+ return memoizedSelector(getSnapshot());
9659
+ }, null === maybeGetServerSnapshot ? void 0 : function () {
9660
+ return memoizedSelector(maybeGetServerSnapshot());
9661
+ }];
9662
+ }, [getSnapshot, getServerSnapshot, selector, isEqual]);
9663
+ var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
9664
+ useEffect(function () {
9665
+ inst.hasValue = !0;
9666
+ inst.value = value;
9667
+ }, [value]);
9668
+ useDebugValue(value);
9669
+ return value;
9670
+ };
9671
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9672
+ })();
9673
+ return withSelector_development;
9674
+ }
9675
+
9676
+ {
9677
+ withSelector.exports = requireWithSelector_development();
9678
+ }
9679
+ var withSelectorExports = withSelector.exports;
9680
+ var useSyncExternalStoreExports = /*@__PURE__*/getDefaultExportFromCjs(withSelectorExports);
9681
+
9682
+ var useDebugValue = React.useDebugValue;
9683
+ var useSyncExternalStoreWithSelector = useSyncExternalStoreExports.useSyncExternalStoreWithSelector;
9684
+ var didWarnAboutEqualityFn = false;
9493
9685
  var identity = function identity(arg) {
9494
9686
  return arg;
9495
9687
  };
9496
- function useStore(api, selector) {
9688
+ function useStore(api, selector, equalityFn) {
9497
9689
  if (selector === void 0) {
9498
9690
  selector = identity;
9499
9691
  }
9500
- var slice = React.useSyncExternalStore(api.subscribe, function () {
9501
- return selector(api.getState());
9502
- }, function () {
9503
- return selector(api.getInitialState());
9504
- });
9505
- React.useDebugValue(slice);
9692
+ if ((undefined ? undefined.MODE : void 0) !== "production" && equalityFn && !didWarnAboutEqualityFn) {
9693
+ console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937");
9694
+ didWarnAboutEqualityFn = true;
9695
+ }
9696
+ var slice = useSyncExternalStoreWithSelector(api.subscribe, api.getState, api.getServerState || api.getInitialState, selector, equalityFn);
9697
+ useDebugValue(slice);
9506
9698
  return slice;
9507
9699
  }
9508
9700
  var createImpl = function createImpl(createState) {
9509
- var api = createStore(createState);
9510
- var useBoundStore = function useBoundStore(selector) {
9511
- return useStore(api, selector);
9701
+ if ((undefined ? undefined.MODE : void 0) !== "production" && typeof createState !== "function") {
9702
+ console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");
9703
+ }
9704
+ var api = typeof createState === "function" ? createStore(createState) : createState;
9705
+ var useBoundStore = function useBoundStore(selector, equalityFn) {
9706
+ return useStore(api, selector, equalityFn);
9512
9707
  };
9513
9708
  Object.assign(useBoundStore, api);
9514
9709
  return useBoundStore;
@@ -14708,8 +14903,11 @@
14708
14903
  var extensionConnector;
14709
14904
  try {
14710
14905
  extensionConnector = (enabled != null ? enabled : (undefined ? undefined.MODE : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
14711
- } catch (e) {}
14906
+ } catch (_e) {}
14712
14907
  if (!extensionConnector) {
14908
+ if ((undefined ? undefined.MODE : void 0) !== "production" && enabled) {
14909
+ console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension");
14910
+ }
14713
14911
  return fn(set, get, api);
14714
14912
  }
14715
14913
  var _extractConnectionInf = extractConnectionInformation(store, extensionConnector, options),
@@ -14780,7 +14978,7 @@
14780
14978
  return;
14781
14979
  }
14782
14980
  if (Object.keys(action.state).length !== 1) {
14783
- console.error("\n [zustand devtools middleware] Unsupported __setState action format.\n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n ");
14981
+ console.error("\n [zustand devtools middleware] Unsupported __setState action format. \n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n ");
14784
14982
  }
14785
14983
  var stateFromDevtools = action.state[store];
14786
14984
  if (stateFromDevtools === void 0 || stateFromDevtools === null) {
@@ -14868,71 +15066,50 @@
14868
15066
  function _createForOfIteratorHelperLoose(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)) || e) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, 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."); }
14869
15067
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(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, a) : void 0; } }
14870
15068
  function _arrayLikeToArray(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; }
14871
- var isIterable = function isIterable(obj) {
14872
- return Symbol.iterator in obj;
14873
- };
14874
- var hasIterableEntries = function hasIterableEntries(value) {
14875
- return (
14876
- // HACK: avoid checking entries type
14877
- "entries" in value
14878
- );
14879
- };
14880
- var compareEntries = function compareEntries(valueA, valueB) {
14881
- var mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());
14882
- var mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());
14883
- if (mapA.size !== mapB.size) {
15069
+ function shallow(objA, objB) {
15070
+ if (Object.is(objA, objB)) {
15071
+ return true;
15072
+ }
15073
+ if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
14884
15074
  return false;
14885
15075
  }
14886
- for (var _iterator = _createForOfIteratorHelperLoose(mapA), _step; !(_step = _iterator()).done;) {
14887
- var _step$value = _step.value,
14888
- key = _step$value[0],
14889
- value = _step$value[1];
14890
- if (!Object.is(value, mapB.get(key))) {
14891
- return false;
15076
+ if (objA instanceof Map && objB instanceof Map) {
15077
+ if (objA.size !== objB.size) return false;
15078
+ for (var _iterator = _createForOfIteratorHelperLoose(objA), _step; !(_step = _iterator()).done;) {
15079
+ var _step$value = _step.value,
15080
+ key = _step$value[0],
15081
+ value = _step$value[1];
15082
+ if (!Object.is(value, objB.get(key))) {
15083
+ return false;
15084
+ }
14892
15085
  }
15086
+ return true;
14893
15087
  }
14894
- return true;
14895
- };
14896
- var compareIterables = function compareIterables(valueA, valueB) {
14897
- var iteratorA = valueA[Symbol.iterator]();
14898
- var iteratorB = valueB[Symbol.iterator]();
14899
- var nextA = iteratorA.next();
14900
- var nextB = iteratorB.next();
14901
- while (!nextA.done && !nextB.done) {
14902
- if (!Object.is(nextA.value, nextB.value)) {
14903
- return false;
15088
+ if (objA instanceof Set && objB instanceof Set) {
15089
+ if (objA.size !== objB.size) return false;
15090
+ for (var _iterator2 = _createForOfIteratorHelperLoose(objA), _step2; !(_step2 = _iterator2()).done;) {
15091
+ var _value = _step2.value;
15092
+ if (!objB.has(_value)) {
15093
+ return false;
15094
+ }
14904
15095
  }
14905
- nextA = iteratorA.next();
14906
- nextB = iteratorB.next();
14907
- }
14908
- return !!nextA.done && !!nextB.done;
14909
- };
14910
- function shallow(valueA, valueB) {
14911
- if (Object.is(valueA, valueB)) {
14912
15096
  return true;
14913
15097
  }
14914
- if (typeof valueA !== "object" || valueA === null || typeof valueB !== "object" || valueB === null) {
15098
+ var keysA = Object.keys(objA);
15099
+ if (keysA.length !== Object.keys(objB).length) {
14915
15100
  return false;
14916
15101
  }
14917
- if (!isIterable(valueA) || !isIterable(valueB)) {
14918
- return compareEntries({
14919
- entries: function entries() {
14920
- return Object.entries(valueA);
14921
- }
14922
- }, {
14923
- entries: function entries() {
14924
- return Object.entries(valueB);
14925
- }
14926
- });
14927
- }
14928
- if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {
14929
- return compareEntries(valueA, valueB);
15102
+ for (var _i = 0, _keysA = keysA; _i < _keysA.length; _i++) {
15103
+ var keyA = _keysA[_i];
15104
+ if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
15105
+ return false;
15106
+ }
14930
15107
  }
14931
- return compareIterables(valueA, valueB);
15108
+ return true;
14932
15109
  }
14933
-
15110
+ var useRef = React.useRef;
14934
15111
  function useShallow(selector) {
14935
- var prev = React.useRef();
15112
+ var prev = useRef();
14936
15113
  return function (state) {
14937
15114
  var next = selector(state);
14938
15115
  return shallow(prev.current, next) ? prev.current : prev.current = next;
@@ -19572,6 +19749,7 @@
19572
19749
  onExitCapture = _a.onExitCapture,
19573
19750
  onUserCancel = _a.onUserCancel,
19574
19751
  onLoadingOverlayDismissed = _a.onLoadingOverlayDismissed,
19752
+ onDocumentCaptured = _a.onDocumentCaptured,
19575
19753
  _g = _a.loadingOverlayMode,
19576
19754
  loadingOverlayMode = _g === void 0 ? 'default' : _g,
19577
19755
  customOverlayContent = _a.customOverlayContent,
@@ -19711,6 +19889,7 @@
19711
19889
  }, [state.captureState, stop]);
19712
19890
  var onCapture = React.useCallback(function (imageData, width, height, documentType, metadata) {
19713
19891
  logCaptureMetadata(metadata);
19892
+ onDocumentCaptured === null || onDocumentCaptured === void 0 ? void 0 : onDocumentCaptured(metadata);
19714
19893
  dispatchIdCaptureAction({
19715
19894
  type: 'documentCaptured',
19716
19895
  payload: {
@@ -26119,14 +26298,16 @@
26119
26298
  modelLoadTimeoutMs = _p === void 0 ? defaultDocumentDetectionModelLoadTimeoutMs : _p,
26120
26299
  _q = _a.forceFallbackMode,
26121
26300
  forceFallbackMode = _q === void 0 ? false : _q,
26122
- _r = _a.allowIdCardBackToFrontCapture,
26123
- allowIdCardBackToFrontCapture = _r === void 0 ? false : _r,
26124
- _s = _a.enableOverrideWrongDocumentTypeDialog,
26125
- enableOverrideWrongDocumentTypeDialog = _s === void 0 ? false : _s,
26126
- _t = _a.allowOverrideWrongDocumentTypeAfterMs,
26127
- allowOverrideWrongDocumentTypeAfterMs = _t === void 0 ? 8000 : _t,
26128
- _u = _a.allowUploadingDocumentsFromStorage,
26129
- allowUploadingDocumentsFromStorage = _u === void 0 ? false : _u,
26301
+ _r = _a.silentFallback,
26302
+ silentFallback = _r === void 0 ? false : _r,
26303
+ _s = _a.allowIdCardBackToFrontCapture,
26304
+ allowIdCardBackToFrontCapture = _s === void 0 ? false : _s,
26305
+ _t = _a.enableOverrideWrongDocumentTypeDialog,
26306
+ enableOverrideWrongDocumentTypeDialog = _t === void 0 ? false : _t,
26307
+ _u = _a.allowOverrideWrongDocumentTypeAfterMs,
26308
+ allowOverrideWrongDocumentTypeAfterMs = _u === void 0 ? 8000 : _u,
26309
+ _v = _a.allowUploadingDocumentsFromStorage,
26310
+ allowUploadingDocumentsFromStorage = _v === void 0 ? false : _v,
26130
26311
  onLoadingStarted = _a.onLoadingStarted,
26131
26312
  onLoadingProgress = _a.onLoadingProgress,
26132
26313
  onLoadingCompleted = _a.onLoadingCompleted,
@@ -26146,28 +26327,29 @@
26146
26327
  onModelError = _a.onModelError,
26147
26328
  onCameraAccessDenied = _a.onCameraAccessDenied,
26148
26329
  onCameraTamperingDetected = _a.onCameraTamperingDetected,
26149
- _v = _a.theme,
26150
- theme = _v === void 0 ? 'default' : _v,
26151
- _w = _a.assets,
26152
- assets = _w === void 0 ? {} : _w,
26153
- _x = _a.classNames,
26154
- classNames = _x === void 0 ? {} : _x,
26155
- _y = _a.colors,
26156
- colors = _y === void 0 ? {} : _y,
26157
- _z = _a.verbiage,
26158
- verbiage = _z === void 0 ? {} : _z,
26159
- _0 = _a.captureSignature,
26160
- captureSignature = _0 === void 0 ? false : _0,
26161
- _1 = _a.captureSignatureVideo,
26162
- captureSignatureVideo = _1 === void 0 ? false : _1,
26163
- _2 = _a.captureAdditionalDocuments,
26164
- captureAdditionalDocuments = _2 === void 0 ? [] : _2,
26165
- _3 = _a.geolocationEnabled,
26166
- geolocationEnabled = _3 === void 0 ? true : _3,
26167
- _4 = _a.geolocationRequired,
26168
- geolocationRequired = _4 === void 0 ? false : _4,
26169
- _5 = _a.debugMode,
26170
- debugMode = _5 === void 0 ? false : _5;
26330
+ onDocumentCaptured = _a.onDocumentCaptured,
26331
+ _w = _a.theme,
26332
+ theme = _w === void 0 ? 'default' : _w,
26333
+ _x = _a.assets,
26334
+ assets = _x === void 0 ? {} : _x,
26335
+ _y = _a.classNames,
26336
+ classNames = _y === void 0 ? {} : _y,
26337
+ _z = _a.colors,
26338
+ colors = _z === void 0 ? {} : _z,
26339
+ _0 = _a.verbiage,
26340
+ verbiage = _0 === void 0 ? {} : _0,
26341
+ _1 = _a.captureSignature,
26342
+ captureSignature = _1 === void 0 ? false : _1,
26343
+ _2 = _a.captureSignatureVideo,
26344
+ captureSignatureVideo = _2 === void 0 ? false : _2,
26345
+ _3 = _a.captureAdditionalDocuments,
26346
+ captureAdditionalDocuments = _3 === void 0 ? [] : _3,
26347
+ _4 = _a.geolocationEnabled,
26348
+ geolocationEnabled = _4 === void 0 ? true : _4,
26349
+ _5 = _a.geolocationRequired,
26350
+ geolocationRequired = _5 === void 0 ? false : _5,
26351
+ _6 = _a.debugMode,
26352
+ debugMode = _6 === void 0 ? false : _6;
26171
26353
  useLanguage(lang);
26172
26354
  useDebugLogging(debugMode);
26173
26355
  var idCaptureProps = React.useMemo(function () {
@@ -26178,6 +26360,7 @@
26178
26360
  onExitCapture: onExitCapture,
26179
26361
  onUserCancel: onUserCancel,
26180
26362
  onModelError: onModelError,
26363
+ onDocumentCaptured: onDocumentCaptured,
26181
26364
  precapturedDocuments: precapturedDocuments,
26182
26365
  captureRequirement: idCaptureRequirement,
26183
26366
  allowSinglePageIdCapture: allowSinglePageIdCapture,
@@ -26188,6 +26371,7 @@
26188
26371
  customOverlayContent: customOverlayContent,
26189
26372
  onLoadingOverlayDismissed: onLoadingOverlayDismissed,
26190
26373
  forceFallbackMode: forceFallbackMode,
26374
+ silentFallback: silentFallback,
26191
26375
  allowIdCardBackToFrontCapture: allowIdCardBackToFrontCapture,
26192
26376
  allowUploadingDocumentsFromStorage: allowUploadingDocumentsFromStorage,
26193
26377
  instructions: instructions,
@@ -26204,7 +26388,7 @@
26204
26388
  verbiage: verbiage,
26205
26389
  debugMode: debugMode
26206
26390
  };
26207
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
26391
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onExitCapture, onUserCancel, onModelError, onDocumentCaptured, precapturedDocuments, idCaptureRequirement, allowSinglePageIdCapture, separateIdCardCaptureSequence, idCaptureThresholds, skipSuccessScreen, loadingOverlayMode, customOverlayContent, onLoadingOverlayDismissed, forceFallbackMode, silentFallback, allowIdCardBackToFrontCapture, allowUploadingDocumentsFromStorage, instructions, guideType, guideImages, portraitGuidesOnMobile, rotateLoadingOverlayImageWhenPortrait, modelLoadTimeoutMs, enableOverrideWrongDocumentTypeDialog, allowOverrideWrongDocumentTypeAfterMs, assets, classNames, colors, verbiage, debugMode]);
26208
26392
  var additionalDocumentCaptureProps = React.useMemo(function () {
26209
26393
  return {
26210
26394
  documents: captureAdditionalDocuments,