idmission-web-sdk 2.3.191-refactor-modernize-react-examples-9e9af14 → 2.3.192

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.
Files changed (30) hide show
  1. package/dist/components/customer_flows/SignatureKYC.d.ts +9 -3
  2. package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
  3. package/dist/components/face_liveness/FaceLivenessCapture.d.ts +2 -1
  4. package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
  5. package/dist/components/face_liveness/FaceLivenessWizard.d.ts +2 -1
  6. package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
  7. package/dist/components/selfie_capture/SelfieCapture.d.ts +2 -1
  8. package/dist/components/selfie_capture/SelfieCapture.d.ts.map +1 -1
  9. package/dist/components/selfie_capture/SelfieCaptureWizard.d.ts +2 -1
  10. package/dist/components/selfie_capture/SelfieCaptureWizard.d.ts.map +1 -1
  11. package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +5 -1
  12. package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts.map +1 -1
  13. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +1 -0
  14. package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
  15. package/dist/lib/models/FaceDetection.d.ts +7 -1
  16. package/dist/lib/models/FaceDetection.d.ts.map +1 -1
  17. package/dist/lib/utils/lighting.d.ts +12 -1
  18. package/dist/lib/utils/lighting.d.ts.map +1 -1
  19. package/dist/sdk2.cjs.development.js +238 -155
  20. package/dist/sdk2.cjs.development.js.map +1 -1
  21. package/dist/sdk2.cjs.production.js +1 -1
  22. package/dist/sdk2.cjs.production.js.map +1 -1
  23. package/dist/sdk2.esm.js +238 -155
  24. package/dist/sdk2.esm.js.map +1 -1
  25. package/dist/sdk2.umd.development.js +238 -155
  26. package/dist/sdk2.umd.development.js.map +1 -1
  27. package/dist/sdk2.umd.production.js +1 -1
  28. package/dist/sdk2.umd.production.js.map +1 -1
  29. package/dist/version.d.ts +1 -1
  30. package/package.json +1 -1
@@ -235,7 +235,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
235
235
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
236
236
  };
237
237
 
238
- var webSdkVersion = '2.3.190';
238
+ var webSdkVersion = '2.3.192';
239
239
 
240
240
  function getPlatform() {
241
241
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -15843,7 +15843,8 @@ function processFaceDetectorPrediction(_a) {
15843
15843
  minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
15844
15844
  brightness = _a.brightness,
15845
15845
  range = _a.range,
15846
- variance = _a.variance;
15846
+ variance = _a.variance,
15847
+ samplePoints = _a.samplePoints;
15847
15848
  var face = faces[0];
15848
15849
  var faceNotDetected = faces.length === 0;
15849
15850
  var faceNotCentered = false,
@@ -15919,27 +15920,40 @@ function processFaceDetectorPrediction(_a) {
15919
15920
  faceReadyAt: faceReady ? new Date() : null,
15920
15921
  faceIsStable: faceIsStable,
15921
15922
  noseIsStable: noseIsStable,
15922
- faceVisibilityTooLow: faceVisibilityTooLow
15923
+ faceVisibilityTooLow: faceVisibilityTooLow,
15924
+ brightness: brightness,
15925
+ range: range,
15926
+ variance: variance,
15927
+ samplePoints: samplePoints
15923
15928
  };
15924
15929
  }
15925
15930
 
15926
- function detectBrightnessAndContrast(frame, brightnessAverager) {
15931
+ function detectBrightnessAndContrast(frame, brightnessAverager, bounds, collectSamplePoints) {
15932
+ if (collectSamplePoints === void 0) {
15933
+ collectSamplePoints = false;
15934
+ }
15927
15935
  var ctx = frame.getContext('2d');
15928
15936
  if (!ctx || frame.width === 0 || frame.height === 0) return {};
15929
- var imageData = ctx.getImageData(0, 0, frame.width, frame.height);
15937
+ // Determine sampling region, clamped to canvas dimensions
15938
+ var regionX = bounds ? Math.max(0, Math.floor(bounds.x)) : 0;
15939
+ var regionY = bounds ? Math.max(0, Math.floor(bounds.y)) : 0;
15940
+ var regionW = bounds ? Math.min(Math.ceil(bounds.width), frame.width - regionX) : frame.width;
15941
+ var regionH = bounds ? Math.min(Math.ceil(bounds.height), frame.height - regionY) : frame.height;
15942
+ if (regionW <= 0 || regionH <= 0) return {};
15943
+ var imageData = ctx.getImageData(regionX, regionY, regionW, regionH);
15930
15944
  var pixels = imageData.data; // This is already Uint8ClampedArray
15931
- var width = frame.width;
15932
15945
  var sampleResolution = 10;
15933
- var xStep = Math.max(1, Math.floor(width / sampleResolution));
15934
- var yStep = Math.max(1, Math.floor(frame.height / sampleResolution));
15946
+ var xStep = Math.max(1, Math.floor(regionW / sampleResolution));
15947
+ var yStep = Math.max(1, Math.floor(regionH / sampleResolution));
15935
15948
  var brightness = 0;
15936
15949
  var brightnessForVariance = 0;
15937
15950
  var minBrightness = Infinity;
15938
15951
  var maxBrightness = -Infinity;
15939
15952
  var iterations = 0;
15940
- for (var y = Math.floor(yStep / 2); y < frame.height; y += yStep) {
15941
- for (var x = Math.floor(xStep / 2); x < width; x += xStep) {
15942
- var pixelIndex = (y * width + x) * 4;
15953
+ var samplePoints = collectSamplePoints ? [] : undefined;
15954
+ for (var y = Math.floor(yStep / 2); y < regionH; y += yStep) {
15955
+ for (var x = Math.floor(xStep / 2); x < regionW; x += xStep) {
15956
+ var pixelIndex = (y * regionW + x) * 4;
15943
15957
  var r = pixels[pixelIndex];
15944
15958
  var g = pixels[pixelIndex + 1];
15945
15959
  var b = pixels[pixelIndex + 2];
@@ -15952,6 +15966,11 @@ function detectBrightnessAndContrast(frame, brightnessAverager) {
15952
15966
  minBrightness = Math.min(minBrightness, luminance);
15953
15967
  maxBrightness = Math.max(maxBrightness, luminance);
15954
15968
  iterations++;
15969
+ // Collect sample coordinates in canvas space for debug overlay
15970
+ samplePoints === null || samplePoints === void 0 ? void 0 : samplePoints.push({
15971
+ x: regionX + x,
15972
+ y: regionY + y
15973
+ });
15955
15974
  }
15956
15975
  }
15957
15976
  var _a = brightnessAverager(brightness / iterations),
@@ -15962,7 +15981,8 @@ function detectBrightnessAndContrast(frame, brightnessAverager) {
15962
15981
  return {
15963
15982
  brightness: isFull ? avg : undefined,
15964
15983
  range: isFull ? range : undefined,
15965
- variance: isFull ? variance : undefined
15984
+ variance: isFull ? variance : undefined,
15985
+ samplePoints: samplePoints
15966
15986
  };
15967
15987
  }
15968
15988
  function createRunningAvgFIFO(capacity) {
@@ -16059,30 +16079,32 @@ function SelfieGuidanceModelsProvider(_a) {
16059
16079
  requireVerticalFaceCentering = _d === void 0 ? true : _d,
16060
16080
  minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
16061
16081
  minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
16062
- minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold;
16063
- var _e = useCameraStore(shallow.useShallow(function (state) {
16082
+ minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
16083
+ _e = _a.debugShowSamplePoints,
16084
+ debugShowSamplePoints = _e === void 0 ? false : _e;
16085
+ var _f = useCameraStore(shallow.useShallow(function (state) {
16064
16086
  return {
16065
16087
  videoRef: state.videoRef,
16066
16088
  videoLoaded: state.videoLoaded,
16067
16089
  cameraReady: state.cameraReady
16068
16090
  };
16069
16091
  })),
16070
- videoRef = _e.videoRef,
16071
- videoLoaded = _e.videoLoaded,
16072
- cameraReady = _e.cameraReady;
16092
+ videoRef = _f.videoRef,
16093
+ videoLoaded = _f.videoLoaded,
16094
+ cameraReady = _f.cameraReady;
16073
16095
  var canvasRef = React.useRef(null);
16074
16096
  var onPredictionHandler = React.useRef(undefined);
16075
16097
  var addToAverage = useRunningAvg(5).addToAverage;
16076
- var _f = useLoadDocumentDetector({
16098
+ var _g = useLoadDocumentDetector({
16077
16099
  videoRef: videoRef,
16078
16100
  onModelError: onModelError,
16079
16101
  modelLoadTimeoutMs: modelLoadTimeoutMs
16080
16102
  }),
16081
- ready = _f.ready,
16082
- modelLoadState = _f.modelLoadState,
16083
- modelDownloadProgress = _f.modelDownloadProgress,
16084
- modelWarmingStartedAt = _f.modelWarmingStartedAt,
16085
- modelError = _f.modelError;
16103
+ ready = _g.ready,
16104
+ modelLoadState = _g.modelLoadState,
16105
+ modelDownloadProgress = _g.modelDownloadProgress,
16106
+ modelWarmingStartedAt = _g.modelWarmingStartedAt,
16107
+ modelError = _g.modelError;
16086
16108
  // const {
16087
16109
  // ready,
16088
16110
  // modelLoadState,
@@ -16094,9 +16116,9 @@ function SelfieGuidanceModelsProvider(_a) {
16094
16116
  // modelLoadTimeoutMs,
16095
16117
  // videoRef,
16096
16118
  // })
16097
- var _g = useFrameLoop(React.useCallback(function () {
16119
+ var _h = useFrameLoop(React.useCallback(function () {
16098
16120
  return __awaiter(_this, void 0, void 0, function () {
16099
- var vw, vh, ctx, thresholdsProvided, brightnessResults, brightness, range, variance, prediction, processed, e_1;
16121
+ var vw, vh, ctx, prediction, thresholdsProvided, brightnessResults, primaryFaceDetection, primaryFaceBounds, brightness, range, variance, processed, e_1;
16100
16122
  var _a, _b;
16101
16123
  return __generator(this, function (_c) {
16102
16124
  switch (_c.label) {
@@ -16114,14 +16136,28 @@ function SelfieGuidanceModelsProvider(_a) {
16114
16136
  _c.label = 1;
16115
16137
  case 1:
16116
16138
  _c.trys.push([1, 4,, 5]);
16139
+ return [4 /*yield*/, makeFacePredictionWithDocumentDetector(canvasRef.current)];
16140
+ case 2:
16141
+ prediction = _c.sent();
16117
16142
  thresholdsProvided = minCaptureBrightnessThreshold !== undefined || minCaptureRangeThreshold !== undefined || minCaptureVarianceThreshold !== undefined;
16118
- brightnessResults = thresholdsProvided ? detectBrightnessAndContrast(canvasRef.current, addToAverage) : undefined;
16143
+ brightnessResults = void 0;
16144
+ if (thresholdsProvided || debugShowSamplePoints) {
16145
+ primaryFaceDetection = prediction === null || prediction === void 0 ? void 0 : prediction.detections.find(function (d) {
16146
+ return d.categories.some(function (c) {
16147
+ return c.categoryName === 'Primary face';
16148
+ });
16149
+ });
16150
+ primaryFaceBounds = (primaryFaceDetection === null || primaryFaceDetection === void 0 ? void 0 : primaryFaceDetection.boundingBox) ? {
16151
+ x: primaryFaceDetection.boundingBox.originX,
16152
+ y: primaryFaceDetection.boundingBox.originY,
16153
+ width: primaryFaceDetection.boundingBox.width,
16154
+ height: primaryFaceDetection.boundingBox.height
16155
+ } : undefined;
16156
+ brightnessResults = detectBrightnessAndContrast(canvasRef.current, addToAverage, primaryFaceBounds, debugShowSamplePoints);
16157
+ }
16119
16158
  brightness = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.brightness;
16120
16159
  range = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.range;
16121
16160
  variance = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.variance;
16122
- return [4 /*yield*/, makeFacePredictionWithDocumentDetector(canvasRef.current)];
16123
- case 2:
16124
- prediction = _c.sent();
16125
16161
  processed = processFaceDetectorPrediction({
16126
16162
  faces: (_a = prediction === null || prediction === void 0 ? void 0 : prediction.faces) !== null && _a !== void 0 ? _a : [],
16127
16163
  videoWidth: vw,
@@ -16132,7 +16168,8 @@ function SelfieGuidanceModelsProvider(_a) {
16132
16168
  minCaptureVarianceThreshold: minCaptureVarianceThreshold,
16133
16169
  brightness: brightness,
16134
16170
  range: range,
16135
- variance: variance
16171
+ variance: variance,
16172
+ samplePoints: brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.samplePoints
16136
16173
  });
16137
16174
  setLastFaceDetectionAt(new Date().getTime());
16138
16175
  // setLastPrediction(processed)
@@ -16150,12 +16187,12 @@ function SelfieGuidanceModelsProvider(_a) {
16150
16187
  }
16151
16188
  });
16152
16189
  });
16153
- }, [cameraReady, modelError, ready, requireVerticalFaceCentering, videoLoaded, videoRef, addToAverage, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold]), {
16190
+ }, [cameraReady, modelError, ready, requireVerticalFaceCentering, videoLoaded, videoRef, addToAverage, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold, debugShowSamplePoints]), {
16154
16191
  throttleMs: throttleMs,
16155
16192
  autoStart: autoStart
16156
16193
  }),
16157
- start = _g.start,
16158
- stop = _g.stop;
16194
+ start = _h.start,
16195
+ stop = _h.stop;
16159
16196
  var onPredictionMade = React.useCallback(function (handler) {
16160
16197
  onPredictionHandler.current = handler;
16161
16198
  }, []);
@@ -16169,9 +16206,12 @@ function SelfieGuidanceModelsProvider(_a) {
16169
16206
  error: modelError,
16170
16207
  modelDownloadProgress: modelDownloadProgress,
16171
16208
  modelLoadState: modelLoadState,
16172
- modelWarmingStartedAt: modelWarmingStartedAt
16209
+ modelWarmingStartedAt: modelWarmingStartedAt,
16210
+ minCaptureBrightnessThreshold: minCaptureBrightnessThreshold,
16211
+ minCaptureRangeThreshold: minCaptureRangeThreshold,
16212
+ minCaptureVarianceThreshold: minCaptureVarianceThreshold
16173
16213
  };
16174
- }, [start, stop, ready, onPredictionMade, modelError, modelDownloadProgress, modelLoadState, modelWarmingStartedAt]);
16214
+ }, [start, stop, ready, onPredictionMade, modelError, modelDownloadProgress, modelLoadState, modelWarmingStartedAt, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold]);
16175
16215
  return /*#__PURE__*/React__namespace.createElement(SelfieGuidanceModelsContext.Provider, {
16176
16216
  value: value
16177
16217
  }, /*#__PURE__*/React__namespace.createElement(InvisibleCanvas, {
@@ -16414,7 +16454,7 @@ var reducer$3 = function reducer(state, action) {
16414
16454
  }
16415
16455
  };
16416
16456
  var SelfieCapture = function SelfieCapture(_a) {
16417
- var _b;
16457
+ var _b, _c, _d, _e, _f, _g, _h, _j;
16418
16458
  var onGuidanceSatisfied = _a.onGuidanceSatisfied,
16419
16459
  onGuidanceNotSatisfied = _a.onGuidanceNotSatisfied,
16420
16460
  onFaceDetected = _a.onFaceDetected,
@@ -16422,44 +16462,49 @@ var SelfieCapture = function SelfieCapture(_a) {
16422
16462
  onSelfieCaptured = _a.onSelfieCaptured,
16423
16463
  onTimeout = _a.onTimeout,
16424
16464
  onExit = _a.onExit,
16425
- _c = _a.timeoutDurationMs,
16426
- timeoutDurationMs = _c === void 0 ? 15000 : _c,
16465
+ _k = _a.timeoutDurationMs,
16466
+ timeoutDurationMs = _k === void 0 ? 15000 : _k,
16427
16467
  guidanceMessage = _a.guidanceMessage,
16428
16468
  guidanceSatisfied = _a.guidanceSatisfied,
16429
16469
  guidesComponent = _a.guidesComponent,
16430
- _d = _a.allowManualSelfieCaptureOnLoadingError,
16431
- allowManualSelfieCaptureOnLoadingError = _d === void 0 ? false : _d,
16432
- _e = _a.shouldCapture,
16433
- shouldCapture = _e === void 0 ? true : _e,
16434
- _f = _a.classNames,
16435
- classNames = _f === void 0 ? {} : _f,
16436
- _g = _a.colors,
16437
- colors = _g === void 0 ? {} : _g,
16438
- _h = _a.verbiage,
16439
- rawVerbiage = _h === void 0 ? {} : _h,
16440
- _j = _a.debugMode,
16441
- debugMode = _j === void 0 ? false : _j;
16442
- var _k = useResizeObserver(),
16443
- ref = _k.ref,
16444
- _l = _k.width,
16445
- width = _l === void 0 ? 1 : _l,
16446
- _m = _k.height,
16447
- height = _m === void 0 ? 1 : _m;
16448
- var _o = React.useReducer(reducer$3, initialState$4),
16449
- _p = _o[0],
16450
- busy = _p.busy,
16451
- prediction = _p.prediction,
16452
- dispatch = _o[1];
16470
+ _l = _a.allowManualSelfieCaptureOnLoadingError,
16471
+ allowManualSelfieCaptureOnLoadingError = _l === void 0 ? false : _l,
16472
+ _m = _a.shouldCapture,
16473
+ shouldCapture = _m === void 0 ? true : _m,
16474
+ _o = _a.classNames,
16475
+ classNames = _o === void 0 ? {} : _o,
16476
+ _p = _a.colors,
16477
+ colors = _p === void 0 ? {} : _p,
16478
+ _q = _a.verbiage,
16479
+ rawVerbiage = _q === void 0 ? {} : _q,
16480
+ _r = _a.debugMode,
16481
+ debugMode = _r === void 0 ? false : _r,
16482
+ _s = _a.debugShowSamplePoints,
16483
+ debugShowSamplePoints = _s === void 0 ? false : _s;
16484
+ var _t = useResizeObserver(),
16485
+ ref = _t.ref,
16486
+ _u = _t.width,
16487
+ width = _u === void 0 ? 1 : _u,
16488
+ _v = _t.height,
16489
+ height = _v === void 0 ? 1 : _v;
16490
+ var _w = React.useReducer(reducer$3, initialState$4),
16491
+ _x = _w[0],
16492
+ busy = _x.busy,
16493
+ prediction = _x.prediction,
16494
+ dispatch = _w[1];
16453
16495
  var lastPredictionCanvas = React.useRef(null);
16454
16496
  var videoRef = useCameraStore(shallow.useShallow(function (state) {
16455
16497
  return {
16456
16498
  videoRef: state.videoRef
16457
16499
  };
16458
16500
  })).videoRef;
16459
- var _q = useSelfieGuidanceModelsContext(),
16460
- onPredictionMade = _q.onPredictionMade,
16461
- canvasRef = _q.canvasRef,
16462
- guidanceError = _q.error;
16501
+ var _y = useSelfieGuidanceModelsContext(),
16502
+ onPredictionMade = _y.onPredictionMade,
16503
+ canvasRef = _y.canvasRef,
16504
+ guidanceError = _y.error,
16505
+ minCaptureBrightnessThreshold = _y.minCaptureBrightnessThreshold,
16506
+ minCaptureRangeThreshold = _y.minCaptureRangeThreshold,
16507
+ minCaptureVarianceThreshold = _y.minCaptureVarianceThreshold;
16463
16508
  onPredictionMade(useDebounce.useThrottledCallback(React.useCallback(function (prediction) {
16464
16509
  return __awaiter(void 0, void 0, void 0, function () {
16465
16510
  return __generator(this, function (_a) {
@@ -16506,9 +16551,9 @@ var SelfieCapture = function SelfieCapture(_a) {
16506
16551
  return timer && clearTimeout(timer);
16507
16552
  };
16508
16553
  }, [doCapture, prediction]);
16509
- var _r = useTimeout(timeoutDurationMs, onTimeout),
16510
- timedOut = _r.timedOut,
16511
- timeoutStartedAt = _r.timeoutStartedAt;
16554
+ var _z = useTimeout(timeoutDurationMs, onTimeout),
16555
+ timedOut = _z.timedOut,
16556
+ timeoutStartedAt = _z.timeoutStartedAt;
16512
16557
  var debugScalingDetails = useDebugScalingDetails({
16513
16558
  enabled: debugMode,
16514
16559
  pageWidth: width,
@@ -16557,7 +16602,27 @@ var SelfieCapture = function SelfieCapture(_a) {
16557
16602
  face: prediction.face,
16558
16603
  scaling: debugScalingDetails,
16559
16604
  color: satisfied ? 'green' : 'red'
16560
- }))), debugMode && (/*#__PURE__*/React__namespace.default.createElement(DebugStatsPane, null, camera ? (/*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, "\u2705 Camera: ", camera.label, " (", camera.width, "x", camera.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotDetected) ? '✅' : '❌', " Face Detected", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotCentered) ? '✅' : '❌', " Face Centered", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) && !(prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? '✅' : '❌', ' ', "Face", ' ', (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) ? 'Too Close' : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? 'Too Far' : 'Distance Correct', /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceLookingAway) ? '✅' : '❌', " Face Looking Forward", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceIsStable) ? '✅' : '❌', " Face Is Stable", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.noseIsStable) ? '✅' : '❌', " Nose Is Stable", /*#__PURE__*/React__namespace.default.createElement("br", null), !timedOut ? '✅' : '❌', " Time Remaining:", ' ', Math.max(0, timeoutDurationMs - (new Date().getTime() - (timeoutStartedAt !== null && timeoutStartedAt !== void 0 ? timeoutStartedAt : new Date()).getTime())), "ms")), allowManualCapture && (/*#__PURE__*/React__namespace.default.createElement(CaptureButtonContainer$1, {
16605
+ }), debugShowSamplePoints && ((_c = prediction.samplePoints) === null || _c === void 0 ? void 0 : _c.map(function (pt, i) {
16606
+ var horizontal = debugScalingDetails.horizontal,
16607
+ pageWidth = debugScalingDetails.pageWidth,
16608
+ pageHeight = debugScalingDetails.pageHeight,
16609
+ videoWidth = debugScalingDetails.videoWidth,
16610
+ videoHeight = debugScalingDetails.videoHeight,
16611
+ scaledWidth = debugScalingDetails.scaledWidth,
16612
+ scaledHeight = debugScalingDetails.scaledHeight,
16613
+ xOffset = debugScalingDetails.xOffset,
16614
+ yOffset = debugScalingDetails.yOffset;
16615
+ if (!videoWidth || !videoHeight) return null;
16616
+ var left = horizontal ? pt.x / videoWidth * scaledWidth - xOffset : pt.x / videoWidth * pageWidth;
16617
+ var top = horizontal ? pt.y / videoHeight * pageHeight : pt.y / videoHeight * scaledHeight - yOffset;
16618
+ return /*#__PURE__*/React__namespace.default.createElement(FaceDetectionKeypointMarker, {
16619
+ key: i,
16620
+ style: {
16621
+ left: left - 2,
16622
+ top: top - 2
16623
+ }
16624
+ });
16625
+ })))), debugMode && (/*#__PURE__*/React__namespace.default.createElement(DebugStatsPane, null, camera ? (/*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, "\u2705 Camera: ", camera.label, " (", camera.width, "x", camera.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotDetected) ? '✅' : '❌', " Face Detected", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotCentered) ? '✅' : '❌', " Face Centered", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) && !(prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? '✅' : '❌', ' ', "Face", ' ', (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooClose) ? 'Too Close' : (prediction === null || prediction === void 0 ? void 0 : prediction.faceTooFar) ? 'Too Far' : 'Distance Correct', /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceLookingAway) ? '✅' : '❌', " Face Looking Forward", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceIsStable) ? '✅' : '❌', " Face Is Stable", /*#__PURE__*/React__namespace.default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.noseIsStable) ? '✅' : '❌', " Nose Is Stable", /*#__PURE__*/React__namespace.default.createElement("br", null), !timedOut ? '✅' : '❌', " Time Remaining:", ' ', Math.max(0, timeoutDurationMs - (new Date().getTime() - (timeoutStartedAt !== null && timeoutStartedAt !== void 0 ? timeoutStartedAt : new Date()).getTime())), "ms", /*#__PURE__*/React__namespace.default.createElement("br", null), (prediction === null || prediction === void 0 ? void 0 : prediction.faceVisibilityTooLow) ? '❌' : '✅', " Visibility", minCaptureBrightnessThreshold !== undefined && (/*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement("br", null), "\xA0\xA0Brightness:", ' ', (_e = (_d = prediction === null || prediction === void 0 ? void 0 : prediction.brightness) === null || _d === void 0 ? void 0 : _d.toFixed(1)) !== null && _e !== void 0 ? _e : '—', " (min:", ' ', minCaptureBrightnessThreshold, ")")), minCaptureRangeThreshold !== undefined && (/*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement("br", null), "\xA0\xA0Range: ", (_g = (_f = prediction === null || prediction === void 0 ? void 0 : prediction.range) === null || _f === void 0 ? void 0 : _f.toFixed(1)) !== null && _g !== void 0 ? _g : '—', " (min: ", minCaptureRangeThreshold, ")")), minCaptureVarianceThreshold !== undefined && (/*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement("br", null), "\xA0\xA0Variance: ", (_j = (_h = prediction === null || prediction === void 0 ? void 0 : prediction.variance) === null || _h === void 0 ? void 0 : _h.toFixed(1)) !== null && _j !== void 0 ? _j : '—', ' ', "(min: ", minCaptureVarianceThreshold, ")")))), allowManualCapture && (/*#__PURE__*/React__namespace.default.createElement(CaptureButtonContainer$1, {
16561
16626
  className: classNames.manualCaptureBtnContainer
16562
16627
  }, /*#__PURE__*/React__namespace.default.createElement(CaptureButton$1, {
16563
16628
  className: classNames.manualCaptureBtn,
@@ -16700,17 +16765,19 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
16700
16765
  colors = _l === void 0 ? {} : _l,
16701
16766
  _m = _a.verbiage,
16702
16767
  rawVerbiage = _m === void 0 ? {} : _m,
16703
- debugMode = _a.debugMode;
16704
- var _o = React.useContext(SubmissionContext),
16705
- checkLiveness = _o.checkLiveness,
16706
- submissionError = _o.submissionError;
16768
+ debugMode = _a.debugMode,
16769
+ _o = _a.debugShowSamplePoints,
16770
+ debugShowSamplePoints = _o === void 0 ? false : _o;
16771
+ var _p = React.useContext(SubmissionContext),
16772
+ checkLiveness = _p.checkLiveness,
16773
+ submissionError = _p.submissionError;
16707
16774
  var modelError = useSelfieGuidanceModelsContext().error;
16708
- var _p = React.useReducer(reducer$2, initialState$3),
16709
- state = _p[0],
16710
- dispatch = _p[1];
16711
- var _q = React.useState(null),
16712
- imageUrl = _q[0],
16713
- setImageUrl = _q[1];
16775
+ var _q = React.useReducer(reducer$2, initialState$3),
16776
+ state = _q[0],
16777
+ dispatch = _q[1];
16778
+ var _r = React.useState(null),
16779
+ imageUrl = _r[0],
16780
+ setImageUrl = _r[1];
16714
16781
  var rawCanvas = React.useRef(null);
16715
16782
  var cropCanvas = React.useRef(null);
16716
16783
  var resizeCanvas = React.useRef(null);
@@ -16905,7 +16972,8 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
16905
16972
  classNames: classNames,
16906
16973
  colors: colors,
16907
16974
  verbiage: rawVerbiage,
16908
- debugMode: debugMode
16975
+ debugMode: debugMode,
16976
+ debugShowSamplePoints: debugShowSamplePoints
16909
16977
  }), debugMode && !disableCapturePreview && imageUrl && (/*#__PURE__*/React__namespace.default.createElement(SelfieProgressPreview, {
16910
16978
  classNames: classNames.imagePreview,
16911
16979
  imageUrl: imageUrl,
@@ -17438,39 +17506,41 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
17438
17506
  verbiage = _s === void 0 ? {} : _s,
17439
17507
  _t = _a.debugMode,
17440
17508
  debugMode = _t === void 0 ? false : _t,
17441
- _u = _a.showLoadingOverlay,
17442
- showLoadingOverlay = _u === void 0 ? true : _u;
17443
- var _v = useSubmissionContext(),
17444
- submissionResponse = _v.submissionResponse,
17445
- livenessCheckRequest = _v.livenessCheckRequest,
17446
- setSelfieImage = _v.setSelfieImage,
17447
- logSelfieCaptureAttempt = _v.logSelfieCaptureAttempt;
17448
- var _w = useCameraStore(shallow.useShallow(function (state) {
17509
+ _u = _a.debugShowSamplePoints,
17510
+ debugShowSamplePoints = _u === void 0 ? false : _u,
17511
+ _v = _a.showLoadingOverlay,
17512
+ showLoadingOverlay = _v === void 0 ? true : _v;
17513
+ var _w = useSubmissionContext(),
17514
+ submissionResponse = _w.submissionResponse,
17515
+ livenessCheckRequest = _w.livenessCheckRequest,
17516
+ setSelfieImage = _w.setSelfieImage,
17517
+ logSelfieCaptureAttempt = _w.logSelfieCaptureAttempt;
17518
+ var _x = useCameraStore(shallow.useShallow(function (state) {
17449
17519
  return {
17450
17520
  cameraAccessDenied: state.cameraAccessDenied,
17451
17521
  requestCameraAccess: state.requestCameraAccess,
17452
17522
  releaseCameraAccess: state.releaseCameraAccess
17453
17523
  };
17454
17524
  })),
17455
- cameraAccessDenied = _w.cameraAccessDenied,
17456
- requestCameraAccess = _w.requestCameraAccess,
17457
- releaseCameraAccess = _w.releaseCameraAccess;
17458
- var _x = React.useState(''),
17459
- faceCropImageUrl = _x[0],
17460
- setFaceCropImageUrl = _x[1];
17461
- var _y = React.useState(0),
17462
- retryCount = _y[0],
17463
- setRetryCount = _y[1];
17464
- var _z = React.useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
17465
- captureState = _z[0],
17466
- setCaptureState = _z[1];
17525
+ cameraAccessDenied = _x.cameraAccessDenied,
17526
+ requestCameraAccess = _x.requestCameraAccess,
17527
+ releaseCameraAccess = _x.releaseCameraAccess;
17528
+ var _y = React.useState(''),
17529
+ faceCropImageUrl = _y[0],
17530
+ setFaceCropImageUrl = _y[1];
17531
+ var _z = React.useState(0),
17532
+ retryCount = _z[0],
17533
+ setRetryCount = _z[1];
17534
+ var _0 = React.useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
17535
+ captureState = _0[0],
17536
+ setCaptureState = _0[1];
17467
17537
  var captureStartedAt = React.useRef(undefined);
17468
17538
  var operationStartedAt = React.useRef(undefined);
17469
17539
  var livenessScore = React.useRef(undefined);
17470
- var _0 = useSelfieGuidanceModelsContext(),
17471
- start = _0.start,
17472
- stop = _0.stop,
17473
- selfieGuidanceCanvasRef = _0.canvasRef;
17540
+ var _1 = useSelfieGuidanceModelsContext(),
17541
+ start = _1.start,
17542
+ stop = _1.stop,
17543
+ selfieGuidanceCanvasRef = _1.canvasRef;
17474
17544
  React.useEffect(function () {
17475
17545
  if (precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie) {
17476
17546
  setSelfieImage(precapturedDocuments.selfie.imageData);
@@ -17555,9 +17625,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
17555
17625
  }
17556
17626
  onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
17557
17627
  }, [allowLivenessFailure, onDenied, submissionResponse, livenessCheckRequest]);
17558
- var _1 = React.useState(0),
17559
- attempt = _1[0],
17560
- setAttempt = _1[1];
17628
+ var _2 = React.useState(0),
17629
+ attempt = _2[0],
17630
+ setAttempt = _2[1];
17561
17631
  var onExitCallback = React.useCallback(function () {
17562
17632
  setAttempt(function (n) {
17563
17633
  return n + 1;
@@ -17629,7 +17699,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
17629
17699
  classNames: classNames.capture,
17630
17700
  colors: colors,
17631
17701
  verbiage: verbiage,
17632
- debugMode: debugMode
17702
+ debugMode: debugMode,
17703
+ debugShowSamplePoints: debugShowSamplePoints
17633
17704
  });
17634
17705
  case 'SUCCESS':
17635
17706
  if (!showSuccessScreen) return null;
@@ -17694,7 +17765,8 @@ function FaceLivenessWizardWithProviders(_a) {
17694
17765
  }, /*#__PURE__*/React__namespace.default.createElement(SelfieGuidanceModelsProvider, {
17695
17766
  autoStart: false,
17696
17767
  onModelError: faceLivenessProps.onModelError,
17697
- modelLoadTimeoutMs: faceLivenessProps.modelLoadTimeoutMs
17768
+ modelLoadTimeoutMs: faceLivenessProps.modelLoadTimeoutMs,
17769
+ debugShowSamplePoints: faceLivenessProps.debugShowSamplePoints
17698
17770
  }, /*#__PURE__*/React__namespace.default.createElement(FaceLivenessWizard, _assign({}, faceLivenessProps))));
17699
17771
  }
17700
17772
 
@@ -19276,32 +19348,34 @@ function SelfieCaptureWizard(_a) {
19276
19348
  _o = _a.verbiage,
19277
19349
  verbiage = _o === void 0 ? {} : _o,
19278
19350
  _p = _a.debugMode,
19279
- debugMode = _p === void 0 ? false : _p;
19280
- var _q = useSubmissionContext(),
19281
- setSelfieImage = _q.setSelfieImage,
19282
- logSelfieCaptureAttempt = _q.logSelfieCaptureAttempt;
19283
- var _r = useCameraStore(shallow.useShallow(function (state) {
19351
+ debugMode = _p === void 0 ? false : _p,
19352
+ _q = _a.debugShowSamplePoints,
19353
+ debugShowSamplePoints = _q === void 0 ? false : _q;
19354
+ var _r = useSubmissionContext(),
19355
+ setSelfieImage = _r.setSelfieImage,
19356
+ logSelfieCaptureAttempt = _r.logSelfieCaptureAttempt;
19357
+ var _s = useCameraStore(shallow.useShallow(function (state) {
19284
19358
  return {
19285
19359
  cameraAccessDenied: state.cameraAccessDenied,
19286
19360
  requestCameraAccess: state.requestCameraAccess,
19287
19361
  releaseCameraAccess: state.releaseCameraAccess
19288
19362
  };
19289
19363
  })),
19290
- cameraAccessDenied = _r.cameraAccessDenied,
19291
- requestCameraAccess = _r.requestCameraAccess,
19292
- releaseCameraAccess = _r.releaseCameraAccess;
19293
- var _s = React.useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
19294
- captureState = _s[0],
19295
- setCaptureState = _s[1];
19364
+ cameraAccessDenied = _s.cameraAccessDenied,
19365
+ requestCameraAccess = _s.requestCameraAccess,
19366
+ releaseCameraAccess = _s.releaseCameraAccess;
19367
+ var _t = React.useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
19368
+ captureState = _t[0],
19369
+ setCaptureState = _t[1];
19296
19370
  var rawCanvas = React.useRef(null);
19297
19371
  var cropCanvas = React.useRef(null);
19298
19372
  var resizeCanvas = React.useRef(null);
19299
19373
  var captureStartedAt = React.useRef(undefined);
19300
19374
  var operationStartedAt = React.useRef(undefined);
19301
- var _t = useSelfieGuidanceModelsContext(),
19302
- start = _t.start,
19303
- stop = _t.stop,
19304
- modelError = _t.error;
19375
+ var _u = useSelfieGuidanceModelsContext(),
19376
+ start = _u.start,
19377
+ stop = _u.stop,
19378
+ modelError = _u.error;
19305
19379
  React.useEffect(function () {
19306
19380
  if (precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie) {
19307
19381
  setSelfieImage(precapturedDocuments.selfie.imageData);
@@ -19355,9 +19429,9 @@ function SelfieCaptureWizard(_a) {
19355
19429
  status: status
19356
19430
  }));
19357
19431
  }, [captureState, guidesComponent]);
19358
- var _u = React.useState(0),
19359
- attempt = _u[0],
19360
- setAttempt = _u[1];
19432
+ var _v = React.useState(0),
19433
+ attempt = _v[0],
19434
+ setAttempt = _v[1];
19361
19435
  var onExitCallback = React.useCallback(function () {
19362
19436
  setAttempt(function (n) {
19363
19437
  return n + 1;
@@ -19404,7 +19478,8 @@ function SelfieCaptureWizard(_a) {
19404
19478
  classNames: classNames.capture,
19405
19479
  colors: colors.capture,
19406
19480
  verbiage: verbiage.capture,
19407
- debugMode: debugMode
19481
+ debugMode: debugMode,
19482
+ debugShowSamplePoints: debugShowSamplePoints
19408
19483
  })), showLoadingOverlay && (/*#__PURE__*/React__namespace.default.createElement(SelfieCaptureLoadingOverlay, {
19409
19484
  key: attempt,
19410
19485
  mode: loadingOverlayMode,
@@ -19474,32 +19549,34 @@ function VideoSignatureWizardComponent(_a, ref) {
19474
19549
  _s = _a.verbiage,
19475
19550
  verbiage = _s === void 0 ? {} : _s,
19476
19551
  _t = _a.debugMode,
19477
- debugMode = _t === void 0 ? false : _t;
19478
- var _u = useSubmissionContext(),
19479
- selfieImage = _u.selfieImage,
19480
- setSelfieImage = _u.setSelfieImage,
19481
- setSignatureData = _u.setSignatureData,
19482
- setSignatureVideoUrl = _u.setSignatureVideoUrl,
19483
- setSignatureVideoMetadata = _u.setSignatureVideoMetadata,
19484
- logSelfieCaptureAttempt = _u.logSelfieCaptureAttempt,
19485
- uploadDocument = _u.uploadDocument;
19552
+ debugMode = _t === void 0 ? false : _t,
19553
+ _u = _a.debugShowSamplePoints,
19554
+ debugShowSamplePoints = _u === void 0 ? false : _u;
19555
+ var _v = useSubmissionContext(),
19556
+ selfieImage = _v.selfieImage,
19557
+ setSelfieImage = _v.setSelfieImage,
19558
+ setSignatureData = _v.setSignatureData,
19559
+ setSignatureVideoUrl = _v.setSignatureVideoUrl,
19560
+ setSignatureVideoMetadata = _v.setSignatureVideoMetadata,
19561
+ logSelfieCaptureAttempt = _v.logSelfieCaptureAttempt,
19562
+ uploadDocument = _v.uploadDocument;
19486
19563
  var cameraAccessDenied = useCameraStore(shallow.useShallow(function (state) {
19487
19564
  return {
19488
19565
  cameraAccessDenied: state.cameraAccessDenied
19489
19566
  };
19490
19567
  })).cameraAccessDenied;
19491
- var _v = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
19492
- captureState = _v[0],
19493
- setCaptureState = _v[1];
19494
- var _w = React.useState(null),
19495
- signatureVideoMetadata = _w[0],
19496
- setSignatureVideoMetadataLocal = _w[1];
19568
+ var _w = React.useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
19569
+ captureState = _w[0],
19570
+ setCaptureState = _w[1];
19571
+ var _x = React.useState(null),
19572
+ signatureVideoMetadata = _x[0],
19573
+ setSignatureVideoMetadataLocal = _x[1];
19497
19574
  var operationStartedAt = React.useRef(undefined);
19498
19575
  var captureStartedAt = React.useRef(undefined);
19499
19576
  var captureEndedAt = React.useRef(undefined);
19500
- var _x = useSelfieGuidanceModelsContext(),
19501
- start = _x.start,
19502
- stop = _x.stop;
19577
+ var _y = useSelfieGuidanceModelsContext(),
19578
+ start = _y.start,
19579
+ stop = _y.stop;
19503
19580
  React.useEffect(function () {
19504
19581
  operationStartedAt.current = new Date();
19505
19582
  }, []);
@@ -19551,17 +19628,17 @@ function VideoSignatureWizardComponent(_a, ref) {
19551
19628
  setCaptureState('SUCCESS');
19552
19629
  onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData, metadata);
19553
19630
  }, [onVideoCaptured, setSignatureData, setSignatureVideoMetadata, setSignatureVideoUrl]);
19554
- var _y = React.useState(true),
19555
- showLoadingOverlay = _y[0],
19556
- setShowLoadingOverlay = _y[1];
19631
+ var _z = React.useState(true),
19632
+ showLoadingOverlay = _z[0],
19633
+ setShowLoadingOverlay = _z[1];
19557
19634
  var onSignatureCaptureFacesNotDetected = React.useCallback(function () {
19558
19635
  setShowLoadingOverlay(false);
19559
19636
  setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
19560
19637
  useVideoSignatureStore.getState().clearRecordedData();
19561
19638
  }, [skipLivenessValidation]);
19562
- var _z = React.useState(0),
19563
- attempt = _z[0],
19564
- setAttempt = _z[1];
19639
+ var _0 = React.useState(0),
19640
+ attempt = _0[0],
19641
+ setAttempt = _0[1];
19565
19642
  var onRetry = React.useCallback(function () {
19566
19643
  onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
19567
19644
  setAttempt(function (n) {
@@ -19638,6 +19715,7 @@ function VideoSignatureWizardComponent(_a, ref) {
19638
19715
  colors: colors.faceLiveness,
19639
19716
  verbiage: verbiage.faceLiveness,
19640
19717
  debugMode: debugMode,
19718
+ debugShowSamplePoints: debugShowSamplePoints,
19641
19719
  renderCameraFeed: false
19642
19720
  }));
19643
19721
  case 'CAPTURING_SELFIE':
@@ -19662,6 +19740,7 @@ function VideoSignatureWizardComponent(_a, ref) {
19662
19740
  colors: colors.faceLiveness,
19663
19741
  verbiage: verbiage.faceLiveness,
19664
19742
  debugMode: debugMode,
19743
+ debugShowSamplePoints: debugShowSamplePoints,
19665
19744
  renderCameraFeed: false
19666
19745
  }));
19667
19746
  case 'CAPTURING_SIGNATURE':
@@ -19788,7 +19867,8 @@ function VideoSignatureWizardWithProvidersComponent(props, ref) {
19788
19867
  requireVerticalFaceCentering: false,
19789
19868
  minCaptureBrightnessThreshold: props.minCaptureBrightnessThreshold,
19790
19869
  minCaptureRangeThreshold: props.minCaptureRangeThreshold,
19791
- minCaptureVarianceThreshold: props.minCaptureVarianceThreshold
19870
+ minCaptureVarianceThreshold: props.minCaptureVarianceThreshold,
19871
+ debugShowSamplePoints: props.debugShowSamplePoints
19792
19872
  }, /*#__PURE__*/React__namespace.default.createElement(VideoSignatureWizard, _assign({
19793
19873
  ref: ref
19794
19874
  }, props, {
@@ -23878,7 +23958,9 @@ function SignatureKYCComponent(_a, ref) {
23878
23958
  geolocationEnabled = _a.geolocationEnabled,
23879
23959
  geolocationRequired = _a.geolocationRequired,
23880
23960
  _s = _a.debugMode,
23881
- debugMode = _s === void 0 ? false : _s;
23961
+ debugMode = _s === void 0 ? false : _s,
23962
+ _t = _a.debugShowSamplePoints,
23963
+ debugShowSamplePoints = _t === void 0 ? false : _t;
23882
23964
  useLanguage(lang);
23883
23965
  useDebugLogging(debugMode);
23884
23966
  return /*#__PURE__*/React__namespace.default.createElement(AuthProvider, {
@@ -23948,11 +24030,12 @@ function SignatureKYCComponent(_a, ref) {
23948
24030
  classNames: classNames,
23949
24031
  colors: colors,
23950
24032
  debugMode: debugMode,
24033
+ debugShowSamplePoints: debugShowSamplePoints,
23951
24034
  verbiage: verbiage,
23952
24035
  onModelError: onModelError,
23953
24036
  onUserCancel: onUserCancel
23954
24037
  };
23955
- }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, guidesComponent, showFaceGuideThenSignaturePad, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold, classNames, colors, debugMode, verbiage, onModelError, onUserCancel])
24038
+ }, [onLoadingStarted, onLoadingProgress, onLoadingCompleted, onLoadingFailed, onSelfieCaptured, customOverlayContent, onLoadingOverlayDismissed, loadingOverlayMode, skipSuccessScreen, captureAudio, minSignaturePadPoints, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, modelLoadTimeoutMs, faceLivenessProps, allowSignatureAfterLivenessCheckFailure, restartVideoOnSignaturePadCleared, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, guidesComponent, showFaceGuideThenSignaturePad, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold, classNames, colors, debugMode, debugShowSamplePoints, verbiage, onModelError, onUserCancel])
23956
24039
  })))));
23957
24040
  }
23958
24041
  /** Render a fullscreen capture component that captures a video of the user signing the screen. */