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.
- package/dist/components/customer_flows/SignatureKYC.d.ts +9 -3
- package/dist/components/customer_flows/SignatureKYC.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts +2 -1
- package/dist/components/face_liveness/FaceLivenessCapture.d.ts.map +1 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts +2 -1
- package/dist/components/face_liveness/FaceLivenessWizard.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCapture.d.ts +2 -1
- package/dist/components/selfie_capture/SelfieCapture.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieCaptureWizard.d.ts +2 -1
- package/dist/components/selfie_capture/SelfieCaptureWizard.d.ts.map +1 -1
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +5 -1
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts.map +1 -1
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts +1 -0
- package/dist/components/video_signature_capture/VideoSignatureWizard.d.ts.map +1 -1
- package/dist/lib/models/FaceDetection.d.ts +7 -1
- package/dist/lib/models/FaceDetection.d.ts.map +1 -1
- package/dist/lib/utils/lighting.d.ts +12 -1
- package/dist/lib/utils/lighting.d.ts.map +1 -1
- package/dist/sdk2.cjs.development.js +238 -155
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +238 -155
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +238 -155
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -204,7 +204,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
204
204
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var webSdkVersion = '2.3.
|
|
207
|
+
var webSdkVersion = '2.3.192';
|
|
208
208
|
|
|
209
209
|
function getPlatform() {
|
|
210
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -15812,7 +15812,8 @@ function processFaceDetectorPrediction(_a) {
|
|
|
15812
15812
|
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
15813
15813
|
brightness = _a.brightness,
|
|
15814
15814
|
range = _a.range,
|
|
15815
|
-
variance = _a.variance
|
|
15815
|
+
variance = _a.variance,
|
|
15816
|
+
samplePoints = _a.samplePoints;
|
|
15816
15817
|
var face = faces[0];
|
|
15817
15818
|
var faceNotDetected = faces.length === 0;
|
|
15818
15819
|
var faceNotCentered = false,
|
|
@@ -15888,27 +15889,40 @@ function processFaceDetectorPrediction(_a) {
|
|
|
15888
15889
|
faceReadyAt: faceReady ? new Date() : null,
|
|
15889
15890
|
faceIsStable: faceIsStable,
|
|
15890
15891
|
noseIsStable: noseIsStable,
|
|
15891
|
-
faceVisibilityTooLow: faceVisibilityTooLow
|
|
15892
|
+
faceVisibilityTooLow: faceVisibilityTooLow,
|
|
15893
|
+
brightness: brightness,
|
|
15894
|
+
range: range,
|
|
15895
|
+
variance: variance,
|
|
15896
|
+
samplePoints: samplePoints
|
|
15892
15897
|
};
|
|
15893
15898
|
}
|
|
15894
15899
|
|
|
15895
|
-
function detectBrightnessAndContrast(frame, brightnessAverager) {
|
|
15900
|
+
function detectBrightnessAndContrast(frame, brightnessAverager, bounds, collectSamplePoints) {
|
|
15901
|
+
if (collectSamplePoints === void 0) {
|
|
15902
|
+
collectSamplePoints = false;
|
|
15903
|
+
}
|
|
15896
15904
|
var ctx = frame.getContext('2d');
|
|
15897
15905
|
if (!ctx || frame.width === 0 || frame.height === 0) return {};
|
|
15898
|
-
|
|
15906
|
+
// Determine sampling region, clamped to canvas dimensions
|
|
15907
|
+
var regionX = bounds ? Math.max(0, Math.floor(bounds.x)) : 0;
|
|
15908
|
+
var regionY = bounds ? Math.max(0, Math.floor(bounds.y)) : 0;
|
|
15909
|
+
var regionW = bounds ? Math.min(Math.ceil(bounds.width), frame.width - regionX) : frame.width;
|
|
15910
|
+
var regionH = bounds ? Math.min(Math.ceil(bounds.height), frame.height - regionY) : frame.height;
|
|
15911
|
+
if (regionW <= 0 || regionH <= 0) return {};
|
|
15912
|
+
var imageData = ctx.getImageData(regionX, regionY, regionW, regionH);
|
|
15899
15913
|
var pixels = imageData.data; // This is already Uint8ClampedArray
|
|
15900
|
-
var width = frame.width;
|
|
15901
15914
|
var sampleResolution = 10;
|
|
15902
|
-
var xStep = Math.max(1, Math.floor(
|
|
15903
|
-
var yStep = Math.max(1, Math.floor(
|
|
15915
|
+
var xStep = Math.max(1, Math.floor(regionW / sampleResolution));
|
|
15916
|
+
var yStep = Math.max(1, Math.floor(regionH / sampleResolution));
|
|
15904
15917
|
var brightness = 0;
|
|
15905
15918
|
var brightnessForVariance = 0;
|
|
15906
15919
|
var minBrightness = Infinity;
|
|
15907
15920
|
var maxBrightness = -Infinity;
|
|
15908
15921
|
var iterations = 0;
|
|
15909
|
-
|
|
15910
|
-
|
|
15911
|
-
|
|
15922
|
+
var samplePoints = collectSamplePoints ? [] : undefined;
|
|
15923
|
+
for (var y = Math.floor(yStep / 2); y < regionH; y += yStep) {
|
|
15924
|
+
for (var x = Math.floor(xStep / 2); x < regionW; x += xStep) {
|
|
15925
|
+
var pixelIndex = (y * regionW + x) * 4;
|
|
15912
15926
|
var r = pixels[pixelIndex];
|
|
15913
15927
|
var g = pixels[pixelIndex + 1];
|
|
15914
15928
|
var b = pixels[pixelIndex + 2];
|
|
@@ -15921,6 +15935,11 @@ function detectBrightnessAndContrast(frame, brightnessAverager) {
|
|
|
15921
15935
|
minBrightness = Math.min(minBrightness, luminance);
|
|
15922
15936
|
maxBrightness = Math.max(maxBrightness, luminance);
|
|
15923
15937
|
iterations++;
|
|
15938
|
+
// Collect sample coordinates in canvas space for debug overlay
|
|
15939
|
+
samplePoints === null || samplePoints === void 0 ? void 0 : samplePoints.push({
|
|
15940
|
+
x: regionX + x,
|
|
15941
|
+
y: regionY + y
|
|
15942
|
+
});
|
|
15924
15943
|
}
|
|
15925
15944
|
}
|
|
15926
15945
|
var _a = brightnessAverager(brightness / iterations),
|
|
@@ -15931,7 +15950,8 @@ function detectBrightnessAndContrast(frame, brightnessAverager) {
|
|
|
15931
15950
|
return {
|
|
15932
15951
|
brightness: isFull ? avg : undefined,
|
|
15933
15952
|
range: isFull ? range : undefined,
|
|
15934
|
-
variance: isFull ? variance : undefined
|
|
15953
|
+
variance: isFull ? variance : undefined,
|
|
15954
|
+
samplePoints: samplePoints
|
|
15935
15955
|
};
|
|
15936
15956
|
}
|
|
15937
15957
|
function createRunningAvgFIFO(capacity) {
|
|
@@ -16028,30 +16048,32 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16028
16048
|
requireVerticalFaceCentering = _d === void 0 ? true : _d,
|
|
16029
16049
|
minCaptureBrightnessThreshold = _a.minCaptureBrightnessThreshold,
|
|
16030
16050
|
minCaptureRangeThreshold = _a.minCaptureRangeThreshold,
|
|
16031
|
-
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold
|
|
16032
|
-
|
|
16051
|
+
minCaptureVarianceThreshold = _a.minCaptureVarianceThreshold,
|
|
16052
|
+
_e = _a.debugShowSamplePoints,
|
|
16053
|
+
debugShowSamplePoints = _e === void 0 ? false : _e;
|
|
16054
|
+
var _f = useCameraStore(useShallow(function (state) {
|
|
16033
16055
|
return {
|
|
16034
16056
|
videoRef: state.videoRef,
|
|
16035
16057
|
videoLoaded: state.videoLoaded,
|
|
16036
16058
|
cameraReady: state.cameraReady
|
|
16037
16059
|
};
|
|
16038
16060
|
})),
|
|
16039
|
-
videoRef =
|
|
16040
|
-
videoLoaded =
|
|
16041
|
-
cameraReady =
|
|
16061
|
+
videoRef = _f.videoRef,
|
|
16062
|
+
videoLoaded = _f.videoLoaded,
|
|
16063
|
+
cameraReady = _f.cameraReady;
|
|
16042
16064
|
var canvasRef = useRef(null);
|
|
16043
16065
|
var onPredictionHandler = useRef(undefined);
|
|
16044
16066
|
var addToAverage = useRunningAvg(5).addToAverage;
|
|
16045
|
-
var
|
|
16067
|
+
var _g = useLoadDocumentDetector({
|
|
16046
16068
|
videoRef: videoRef,
|
|
16047
16069
|
onModelError: onModelError,
|
|
16048
16070
|
modelLoadTimeoutMs: modelLoadTimeoutMs
|
|
16049
16071
|
}),
|
|
16050
|
-
ready =
|
|
16051
|
-
modelLoadState =
|
|
16052
|
-
modelDownloadProgress =
|
|
16053
|
-
modelWarmingStartedAt =
|
|
16054
|
-
modelError =
|
|
16072
|
+
ready = _g.ready,
|
|
16073
|
+
modelLoadState = _g.modelLoadState,
|
|
16074
|
+
modelDownloadProgress = _g.modelDownloadProgress,
|
|
16075
|
+
modelWarmingStartedAt = _g.modelWarmingStartedAt,
|
|
16076
|
+
modelError = _g.modelError;
|
|
16055
16077
|
// const {
|
|
16056
16078
|
// ready,
|
|
16057
16079
|
// modelLoadState,
|
|
@@ -16063,9 +16085,9 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16063
16085
|
// modelLoadTimeoutMs,
|
|
16064
16086
|
// videoRef,
|
|
16065
16087
|
// })
|
|
16066
|
-
var
|
|
16088
|
+
var _h = useFrameLoop(useCallback(function () {
|
|
16067
16089
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16068
|
-
var vw, vh, ctx, thresholdsProvided, brightnessResults, brightness, range, variance,
|
|
16090
|
+
var vw, vh, ctx, prediction, thresholdsProvided, brightnessResults, primaryFaceDetection, primaryFaceBounds, brightness, range, variance, processed, e_1;
|
|
16069
16091
|
var _a, _b;
|
|
16070
16092
|
return __generator(this, function (_c) {
|
|
16071
16093
|
switch (_c.label) {
|
|
@@ -16083,14 +16105,28 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16083
16105
|
_c.label = 1;
|
|
16084
16106
|
case 1:
|
|
16085
16107
|
_c.trys.push([1, 4,, 5]);
|
|
16108
|
+
return [4 /*yield*/, makeFacePredictionWithDocumentDetector(canvasRef.current)];
|
|
16109
|
+
case 2:
|
|
16110
|
+
prediction = _c.sent();
|
|
16086
16111
|
thresholdsProvided = minCaptureBrightnessThreshold !== undefined || minCaptureRangeThreshold !== undefined || minCaptureVarianceThreshold !== undefined;
|
|
16087
|
-
brightnessResults =
|
|
16112
|
+
brightnessResults = void 0;
|
|
16113
|
+
if (thresholdsProvided || debugShowSamplePoints) {
|
|
16114
|
+
primaryFaceDetection = prediction === null || prediction === void 0 ? void 0 : prediction.detections.find(function (d) {
|
|
16115
|
+
return d.categories.some(function (c) {
|
|
16116
|
+
return c.categoryName === 'Primary face';
|
|
16117
|
+
});
|
|
16118
|
+
});
|
|
16119
|
+
primaryFaceBounds = (primaryFaceDetection === null || primaryFaceDetection === void 0 ? void 0 : primaryFaceDetection.boundingBox) ? {
|
|
16120
|
+
x: primaryFaceDetection.boundingBox.originX,
|
|
16121
|
+
y: primaryFaceDetection.boundingBox.originY,
|
|
16122
|
+
width: primaryFaceDetection.boundingBox.width,
|
|
16123
|
+
height: primaryFaceDetection.boundingBox.height
|
|
16124
|
+
} : undefined;
|
|
16125
|
+
brightnessResults = detectBrightnessAndContrast(canvasRef.current, addToAverage, primaryFaceBounds, debugShowSamplePoints);
|
|
16126
|
+
}
|
|
16088
16127
|
brightness = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.brightness;
|
|
16089
16128
|
range = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.range;
|
|
16090
16129
|
variance = brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.variance;
|
|
16091
|
-
return [4 /*yield*/, makeFacePredictionWithDocumentDetector(canvasRef.current)];
|
|
16092
|
-
case 2:
|
|
16093
|
-
prediction = _c.sent();
|
|
16094
16130
|
processed = processFaceDetectorPrediction({
|
|
16095
16131
|
faces: (_a = prediction === null || prediction === void 0 ? void 0 : prediction.faces) !== null && _a !== void 0 ? _a : [],
|
|
16096
16132
|
videoWidth: vw,
|
|
@@ -16101,7 +16137,8 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16101
16137
|
minCaptureVarianceThreshold: minCaptureVarianceThreshold,
|
|
16102
16138
|
brightness: brightness,
|
|
16103
16139
|
range: range,
|
|
16104
|
-
variance: variance
|
|
16140
|
+
variance: variance,
|
|
16141
|
+
samplePoints: brightnessResults === null || brightnessResults === void 0 ? void 0 : brightnessResults.samplePoints
|
|
16105
16142
|
});
|
|
16106
16143
|
setLastFaceDetectionAt(new Date().getTime());
|
|
16107
16144
|
// setLastPrediction(processed)
|
|
@@ -16119,12 +16156,12 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16119
16156
|
}
|
|
16120
16157
|
});
|
|
16121
16158
|
});
|
|
16122
|
-
}, [cameraReady, modelError, ready, requireVerticalFaceCentering, videoLoaded, videoRef, addToAverage, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold]), {
|
|
16159
|
+
}, [cameraReady, modelError, ready, requireVerticalFaceCentering, videoLoaded, videoRef, addToAverage, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold, debugShowSamplePoints]), {
|
|
16123
16160
|
throttleMs: throttleMs,
|
|
16124
16161
|
autoStart: autoStart
|
|
16125
16162
|
}),
|
|
16126
|
-
start =
|
|
16127
|
-
stop =
|
|
16163
|
+
start = _h.start,
|
|
16164
|
+
stop = _h.stop;
|
|
16128
16165
|
var onPredictionMade = useCallback(function (handler) {
|
|
16129
16166
|
onPredictionHandler.current = handler;
|
|
16130
16167
|
}, []);
|
|
@@ -16138,9 +16175,12 @@ function SelfieGuidanceModelsProvider(_a) {
|
|
|
16138
16175
|
error: modelError,
|
|
16139
16176
|
modelDownloadProgress: modelDownloadProgress,
|
|
16140
16177
|
modelLoadState: modelLoadState,
|
|
16141
|
-
modelWarmingStartedAt: modelWarmingStartedAt
|
|
16178
|
+
modelWarmingStartedAt: modelWarmingStartedAt,
|
|
16179
|
+
minCaptureBrightnessThreshold: minCaptureBrightnessThreshold,
|
|
16180
|
+
minCaptureRangeThreshold: minCaptureRangeThreshold,
|
|
16181
|
+
minCaptureVarianceThreshold: minCaptureVarianceThreshold
|
|
16142
16182
|
};
|
|
16143
|
-
}, [start, stop, ready, onPredictionMade, modelError, modelDownloadProgress, modelLoadState, modelWarmingStartedAt]);
|
|
16183
|
+
}, [start, stop, ready, onPredictionMade, modelError, modelDownloadProgress, modelLoadState, modelWarmingStartedAt, minCaptureBrightnessThreshold, minCaptureRangeThreshold, minCaptureVarianceThreshold]);
|
|
16144
16184
|
return /*#__PURE__*/React.createElement(SelfieGuidanceModelsContext.Provider, {
|
|
16145
16185
|
value: value
|
|
16146
16186
|
}, /*#__PURE__*/React.createElement(InvisibleCanvas, {
|
|
@@ -16383,7 +16423,7 @@ var reducer$3 = function reducer(state, action) {
|
|
|
16383
16423
|
}
|
|
16384
16424
|
};
|
|
16385
16425
|
var SelfieCapture = function SelfieCapture(_a) {
|
|
16386
|
-
var _b;
|
|
16426
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
16387
16427
|
var onGuidanceSatisfied = _a.onGuidanceSatisfied,
|
|
16388
16428
|
onGuidanceNotSatisfied = _a.onGuidanceNotSatisfied,
|
|
16389
16429
|
onFaceDetected = _a.onFaceDetected,
|
|
@@ -16391,44 +16431,49 @@ var SelfieCapture = function SelfieCapture(_a) {
|
|
|
16391
16431
|
onSelfieCaptured = _a.onSelfieCaptured,
|
|
16392
16432
|
onTimeout = _a.onTimeout,
|
|
16393
16433
|
onExit = _a.onExit,
|
|
16394
|
-
|
|
16395
|
-
timeoutDurationMs =
|
|
16434
|
+
_k = _a.timeoutDurationMs,
|
|
16435
|
+
timeoutDurationMs = _k === void 0 ? 15000 : _k,
|
|
16396
16436
|
guidanceMessage = _a.guidanceMessage,
|
|
16397
16437
|
guidanceSatisfied = _a.guidanceSatisfied,
|
|
16398
16438
|
guidesComponent = _a.guidesComponent,
|
|
16399
|
-
|
|
16400
|
-
allowManualSelfieCaptureOnLoadingError =
|
|
16401
|
-
|
|
16402
|
-
shouldCapture =
|
|
16403
|
-
|
|
16404
|
-
classNames =
|
|
16405
|
-
|
|
16406
|
-
colors =
|
|
16407
|
-
|
|
16408
|
-
rawVerbiage =
|
|
16409
|
-
|
|
16410
|
-
debugMode =
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16420
|
-
|
|
16421
|
-
|
|
16439
|
+
_l = _a.allowManualSelfieCaptureOnLoadingError,
|
|
16440
|
+
allowManualSelfieCaptureOnLoadingError = _l === void 0 ? false : _l,
|
|
16441
|
+
_m = _a.shouldCapture,
|
|
16442
|
+
shouldCapture = _m === void 0 ? true : _m,
|
|
16443
|
+
_o = _a.classNames,
|
|
16444
|
+
classNames = _o === void 0 ? {} : _o,
|
|
16445
|
+
_p = _a.colors,
|
|
16446
|
+
colors = _p === void 0 ? {} : _p,
|
|
16447
|
+
_q = _a.verbiage,
|
|
16448
|
+
rawVerbiage = _q === void 0 ? {} : _q,
|
|
16449
|
+
_r = _a.debugMode,
|
|
16450
|
+
debugMode = _r === void 0 ? false : _r,
|
|
16451
|
+
_s = _a.debugShowSamplePoints,
|
|
16452
|
+
debugShowSamplePoints = _s === void 0 ? false : _s;
|
|
16453
|
+
var _t = useResizeObserver(),
|
|
16454
|
+
ref = _t.ref,
|
|
16455
|
+
_u = _t.width,
|
|
16456
|
+
width = _u === void 0 ? 1 : _u,
|
|
16457
|
+
_v = _t.height,
|
|
16458
|
+
height = _v === void 0 ? 1 : _v;
|
|
16459
|
+
var _w = useReducer(reducer$3, initialState$4),
|
|
16460
|
+
_x = _w[0],
|
|
16461
|
+
busy = _x.busy,
|
|
16462
|
+
prediction = _x.prediction,
|
|
16463
|
+
dispatch = _w[1];
|
|
16422
16464
|
var lastPredictionCanvas = useRef(null);
|
|
16423
16465
|
var videoRef = useCameraStore(useShallow(function (state) {
|
|
16424
16466
|
return {
|
|
16425
16467
|
videoRef: state.videoRef
|
|
16426
16468
|
};
|
|
16427
16469
|
})).videoRef;
|
|
16428
|
-
var
|
|
16429
|
-
onPredictionMade =
|
|
16430
|
-
canvasRef =
|
|
16431
|
-
guidanceError =
|
|
16470
|
+
var _y = useSelfieGuidanceModelsContext(),
|
|
16471
|
+
onPredictionMade = _y.onPredictionMade,
|
|
16472
|
+
canvasRef = _y.canvasRef,
|
|
16473
|
+
guidanceError = _y.error,
|
|
16474
|
+
minCaptureBrightnessThreshold = _y.minCaptureBrightnessThreshold,
|
|
16475
|
+
minCaptureRangeThreshold = _y.minCaptureRangeThreshold,
|
|
16476
|
+
minCaptureVarianceThreshold = _y.minCaptureVarianceThreshold;
|
|
16432
16477
|
onPredictionMade(useThrottledCallback(useCallback(function (prediction) {
|
|
16433
16478
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
16434
16479
|
return __generator(this, function (_a) {
|
|
@@ -16475,9 +16520,9 @@ var SelfieCapture = function SelfieCapture(_a) {
|
|
|
16475
16520
|
return timer && clearTimeout(timer);
|
|
16476
16521
|
};
|
|
16477
16522
|
}, [doCapture, prediction]);
|
|
16478
|
-
var
|
|
16479
|
-
timedOut =
|
|
16480
|
-
timeoutStartedAt =
|
|
16523
|
+
var _z = useTimeout(timeoutDurationMs, onTimeout),
|
|
16524
|
+
timedOut = _z.timedOut,
|
|
16525
|
+
timeoutStartedAt = _z.timeoutStartedAt;
|
|
16481
16526
|
var debugScalingDetails = useDebugScalingDetails({
|
|
16482
16527
|
enabled: debugMode,
|
|
16483
16528
|
pageWidth: width,
|
|
@@ -16526,7 +16571,27 @@ var SelfieCapture = function SelfieCapture(_a) {
|
|
|
16526
16571
|
face: prediction.face,
|
|
16527
16572
|
scaling: debugScalingDetails,
|
|
16528
16573
|
color: satisfied ? 'green' : 'red'
|
|
16529
|
-
})
|
|
16574
|
+
}), debugShowSamplePoints && ((_c = prediction.samplePoints) === null || _c === void 0 ? void 0 : _c.map(function (pt, i) {
|
|
16575
|
+
var horizontal = debugScalingDetails.horizontal,
|
|
16576
|
+
pageWidth = debugScalingDetails.pageWidth,
|
|
16577
|
+
pageHeight = debugScalingDetails.pageHeight,
|
|
16578
|
+
videoWidth = debugScalingDetails.videoWidth,
|
|
16579
|
+
videoHeight = debugScalingDetails.videoHeight,
|
|
16580
|
+
scaledWidth = debugScalingDetails.scaledWidth,
|
|
16581
|
+
scaledHeight = debugScalingDetails.scaledHeight,
|
|
16582
|
+
xOffset = debugScalingDetails.xOffset,
|
|
16583
|
+
yOffset = debugScalingDetails.yOffset;
|
|
16584
|
+
if (!videoWidth || !videoHeight) return null;
|
|
16585
|
+
var left = horizontal ? pt.x / videoWidth * scaledWidth - xOffset : pt.x / videoWidth * pageWidth;
|
|
16586
|
+
var top = horizontal ? pt.y / videoHeight * pageHeight : pt.y / videoHeight * scaledHeight - yOffset;
|
|
16587
|
+
return /*#__PURE__*/React__default.createElement(FaceDetectionKeypointMarker, {
|
|
16588
|
+
key: i,
|
|
16589
|
+
style: {
|
|
16590
|
+
left: left - 2,
|
|
16591
|
+
top: top - 2
|
|
16592
|
+
}
|
|
16593
|
+
});
|
|
16594
|
+
})))), debugMode && (/*#__PURE__*/React__default.createElement(DebugStatsPane, null, camera ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, "\u2705 Camera: ", camera.label, " (", camera.width, "x", camera.height, ")")) : '❌ Camera not ready', /*#__PURE__*/React__default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotDetected) ? '✅' : '❌', " Face Detected", /*#__PURE__*/React__default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceNotCentered) ? '✅' : '❌', " Face Centered", /*#__PURE__*/React__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__default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceLookingAway) ? '✅' : '❌', " Face Looking Forward", /*#__PURE__*/React__default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.faceIsStable) ? '✅' : '❌', " Face Is Stable", /*#__PURE__*/React__default.createElement("br", null), !(prediction === null || prediction === void 0 ? void 0 : prediction.noseIsStable) ? '✅' : '❌', " Nose Is Stable", /*#__PURE__*/React__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__default.createElement("br", null), (prediction === null || prediction === void 0 ? void 0 : prediction.faceVisibilityTooLow) ? '❌' : '✅', " Visibility", minCaptureBrightnessThreshold !== undefined && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__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__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__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__default.createElement(CaptureButtonContainer$1, {
|
|
16530
16595
|
className: classNames.manualCaptureBtnContainer
|
|
16531
16596
|
}, /*#__PURE__*/React__default.createElement(CaptureButton$1, {
|
|
16532
16597
|
className: classNames.manualCaptureBtn,
|
|
@@ -16669,17 +16734,19 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
16669
16734
|
colors = _l === void 0 ? {} : _l,
|
|
16670
16735
|
_m = _a.verbiage,
|
|
16671
16736
|
rawVerbiage = _m === void 0 ? {} : _m,
|
|
16672
|
-
debugMode = _a.debugMode
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16737
|
+
debugMode = _a.debugMode,
|
|
16738
|
+
_o = _a.debugShowSamplePoints,
|
|
16739
|
+
debugShowSamplePoints = _o === void 0 ? false : _o;
|
|
16740
|
+
var _p = useContext(SubmissionContext),
|
|
16741
|
+
checkLiveness = _p.checkLiveness,
|
|
16742
|
+
submissionError = _p.submissionError;
|
|
16676
16743
|
var modelError = useSelfieGuidanceModelsContext().error;
|
|
16677
|
-
var
|
|
16678
|
-
state =
|
|
16679
|
-
dispatch =
|
|
16680
|
-
var
|
|
16681
|
-
imageUrl =
|
|
16682
|
-
setImageUrl =
|
|
16744
|
+
var _q = useReducer(reducer$2, initialState$3),
|
|
16745
|
+
state = _q[0],
|
|
16746
|
+
dispatch = _q[1];
|
|
16747
|
+
var _r = useState(null),
|
|
16748
|
+
imageUrl = _r[0],
|
|
16749
|
+
setImageUrl = _r[1];
|
|
16683
16750
|
var rawCanvas = useRef(null);
|
|
16684
16751
|
var cropCanvas = useRef(null);
|
|
16685
16752
|
var resizeCanvas = useRef(null);
|
|
@@ -16874,7 +16941,8 @@ var FaceLivenessCapture = function FaceLivenessCapture(_a) {
|
|
|
16874
16941
|
classNames: classNames,
|
|
16875
16942
|
colors: colors,
|
|
16876
16943
|
verbiage: rawVerbiage,
|
|
16877
|
-
debugMode: debugMode
|
|
16944
|
+
debugMode: debugMode,
|
|
16945
|
+
debugShowSamplePoints: debugShowSamplePoints
|
|
16878
16946
|
}), debugMode && !disableCapturePreview && imageUrl && (/*#__PURE__*/React__default.createElement(SelfieProgressPreview, {
|
|
16879
16947
|
classNames: classNames.imagePreview,
|
|
16880
16948
|
imageUrl: imageUrl,
|
|
@@ -17407,39 +17475,41 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
17407
17475
|
verbiage = _s === void 0 ? {} : _s,
|
|
17408
17476
|
_t = _a.debugMode,
|
|
17409
17477
|
debugMode = _t === void 0 ? false : _t,
|
|
17410
|
-
_u = _a.
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17478
|
+
_u = _a.debugShowSamplePoints,
|
|
17479
|
+
debugShowSamplePoints = _u === void 0 ? false : _u,
|
|
17480
|
+
_v = _a.showLoadingOverlay,
|
|
17481
|
+
showLoadingOverlay = _v === void 0 ? true : _v;
|
|
17482
|
+
var _w = useSubmissionContext(),
|
|
17483
|
+
submissionResponse = _w.submissionResponse,
|
|
17484
|
+
livenessCheckRequest = _w.livenessCheckRequest,
|
|
17485
|
+
setSelfieImage = _w.setSelfieImage,
|
|
17486
|
+
logSelfieCaptureAttempt = _w.logSelfieCaptureAttempt;
|
|
17487
|
+
var _x = useCameraStore(useShallow(function (state) {
|
|
17418
17488
|
return {
|
|
17419
17489
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
17420
17490
|
requestCameraAccess: state.requestCameraAccess,
|
|
17421
17491
|
releaseCameraAccess: state.releaseCameraAccess
|
|
17422
17492
|
};
|
|
17423
17493
|
})),
|
|
17424
|
-
cameraAccessDenied =
|
|
17425
|
-
requestCameraAccess =
|
|
17426
|
-
releaseCameraAccess =
|
|
17427
|
-
var
|
|
17428
|
-
faceCropImageUrl =
|
|
17429
|
-
setFaceCropImageUrl =
|
|
17430
|
-
var
|
|
17431
|
-
retryCount =
|
|
17432
|
-
setRetryCount =
|
|
17433
|
-
var
|
|
17434
|
-
captureState =
|
|
17435
|
-
setCaptureState =
|
|
17494
|
+
cameraAccessDenied = _x.cameraAccessDenied,
|
|
17495
|
+
requestCameraAccess = _x.requestCameraAccess,
|
|
17496
|
+
releaseCameraAccess = _x.releaseCameraAccess;
|
|
17497
|
+
var _y = useState(''),
|
|
17498
|
+
faceCropImageUrl = _y[0],
|
|
17499
|
+
setFaceCropImageUrl = _y[1];
|
|
17500
|
+
var _z = useState(0),
|
|
17501
|
+
retryCount = _z[0],
|
|
17502
|
+
setRetryCount = _z[1];
|
|
17503
|
+
var _0 = useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
|
|
17504
|
+
captureState = _0[0],
|
|
17505
|
+
setCaptureState = _0[1];
|
|
17436
17506
|
var captureStartedAt = useRef(undefined);
|
|
17437
17507
|
var operationStartedAt = useRef(undefined);
|
|
17438
17508
|
var livenessScore = useRef(undefined);
|
|
17439
|
-
var
|
|
17440
|
-
start =
|
|
17441
|
-
stop =
|
|
17442
|
-
selfieGuidanceCanvasRef =
|
|
17509
|
+
var _1 = useSelfieGuidanceModelsContext(),
|
|
17510
|
+
start = _1.start,
|
|
17511
|
+
stop = _1.stop,
|
|
17512
|
+
selfieGuidanceCanvasRef = _1.canvasRef;
|
|
17443
17513
|
useEffect(function () {
|
|
17444
17514
|
if (precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie) {
|
|
17445
17515
|
setSelfieImage(precapturedDocuments.selfie.imageData);
|
|
@@ -17524,9 +17594,9 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
17524
17594
|
}
|
|
17525
17595
|
onDenied === null || onDenied === void 0 ? void 0 : onDenied(submissionResponse, livenessCheckRequest);
|
|
17526
17596
|
}, [allowLivenessFailure, onDenied, submissionResponse, livenessCheckRequest]);
|
|
17527
|
-
var
|
|
17528
|
-
attempt =
|
|
17529
|
-
setAttempt =
|
|
17597
|
+
var _2 = useState(0),
|
|
17598
|
+
attempt = _2[0],
|
|
17599
|
+
setAttempt = _2[1];
|
|
17530
17600
|
var onExitCallback = useCallback(function () {
|
|
17531
17601
|
setAttempt(function (n) {
|
|
17532
17602
|
return n + 1;
|
|
@@ -17598,7 +17668,8 @@ var FaceLivenessWizard = function FaceLivenessWizard(_a) {
|
|
|
17598
17668
|
classNames: classNames.capture,
|
|
17599
17669
|
colors: colors,
|
|
17600
17670
|
verbiage: verbiage,
|
|
17601
|
-
debugMode: debugMode
|
|
17671
|
+
debugMode: debugMode,
|
|
17672
|
+
debugShowSamplePoints: debugShowSamplePoints
|
|
17602
17673
|
});
|
|
17603
17674
|
case 'SUCCESS':
|
|
17604
17675
|
if (!showSuccessScreen) return null;
|
|
@@ -17663,7 +17734,8 @@ function FaceLivenessWizardWithProviders(_a) {
|
|
|
17663
17734
|
}, /*#__PURE__*/React__default.createElement(SelfieGuidanceModelsProvider, {
|
|
17664
17735
|
autoStart: false,
|
|
17665
17736
|
onModelError: faceLivenessProps.onModelError,
|
|
17666
|
-
modelLoadTimeoutMs: faceLivenessProps.modelLoadTimeoutMs
|
|
17737
|
+
modelLoadTimeoutMs: faceLivenessProps.modelLoadTimeoutMs,
|
|
17738
|
+
debugShowSamplePoints: faceLivenessProps.debugShowSamplePoints
|
|
17667
17739
|
}, /*#__PURE__*/React__default.createElement(FaceLivenessWizard, _assign({}, faceLivenessProps))));
|
|
17668
17740
|
}
|
|
17669
17741
|
|
|
@@ -19245,32 +19317,34 @@ function SelfieCaptureWizard(_a) {
|
|
|
19245
19317
|
_o = _a.verbiage,
|
|
19246
19318
|
verbiage = _o === void 0 ? {} : _o,
|
|
19247
19319
|
_p = _a.debugMode,
|
|
19248
|
-
debugMode = _p === void 0 ? false : _p
|
|
19249
|
-
|
|
19250
|
-
|
|
19251
|
-
|
|
19252
|
-
|
|
19320
|
+
debugMode = _p === void 0 ? false : _p,
|
|
19321
|
+
_q = _a.debugShowSamplePoints,
|
|
19322
|
+
debugShowSamplePoints = _q === void 0 ? false : _q;
|
|
19323
|
+
var _r = useSubmissionContext(),
|
|
19324
|
+
setSelfieImage = _r.setSelfieImage,
|
|
19325
|
+
logSelfieCaptureAttempt = _r.logSelfieCaptureAttempt;
|
|
19326
|
+
var _s = useCameraStore(useShallow(function (state) {
|
|
19253
19327
|
return {
|
|
19254
19328
|
cameraAccessDenied: state.cameraAccessDenied,
|
|
19255
19329
|
requestCameraAccess: state.requestCameraAccess,
|
|
19256
19330
|
releaseCameraAccess: state.releaseCameraAccess
|
|
19257
19331
|
};
|
|
19258
19332
|
})),
|
|
19259
|
-
cameraAccessDenied =
|
|
19260
|
-
requestCameraAccess =
|
|
19261
|
-
releaseCameraAccess =
|
|
19262
|
-
var
|
|
19263
|
-
captureState =
|
|
19264
|
-
setCaptureState =
|
|
19333
|
+
cameraAccessDenied = _s.cameraAccessDenied,
|
|
19334
|
+
requestCameraAccess = _s.requestCameraAccess,
|
|
19335
|
+
releaseCameraAccess = _s.releaseCameraAccess;
|
|
19336
|
+
var _t = useState(showLoadingOverlay ? 'LOADING' : 'CAPTURING'),
|
|
19337
|
+
captureState = _t[0],
|
|
19338
|
+
setCaptureState = _t[1];
|
|
19265
19339
|
var rawCanvas = useRef(null);
|
|
19266
19340
|
var cropCanvas = useRef(null);
|
|
19267
19341
|
var resizeCanvas = useRef(null);
|
|
19268
19342
|
var captureStartedAt = useRef(undefined);
|
|
19269
19343
|
var operationStartedAt = useRef(undefined);
|
|
19270
|
-
var
|
|
19271
|
-
start =
|
|
19272
|
-
stop =
|
|
19273
|
-
modelError =
|
|
19344
|
+
var _u = useSelfieGuidanceModelsContext(),
|
|
19345
|
+
start = _u.start,
|
|
19346
|
+
stop = _u.stop,
|
|
19347
|
+
modelError = _u.error;
|
|
19274
19348
|
useEffect(function () {
|
|
19275
19349
|
if (precapturedDocuments === null || precapturedDocuments === void 0 ? void 0 : precapturedDocuments.selfie) {
|
|
19276
19350
|
setSelfieImage(precapturedDocuments.selfie.imageData);
|
|
@@ -19324,9 +19398,9 @@ function SelfieCaptureWizard(_a) {
|
|
|
19324
19398
|
status: status
|
|
19325
19399
|
}));
|
|
19326
19400
|
}, [captureState, guidesComponent]);
|
|
19327
|
-
var
|
|
19328
|
-
attempt =
|
|
19329
|
-
setAttempt =
|
|
19401
|
+
var _v = useState(0),
|
|
19402
|
+
attempt = _v[0],
|
|
19403
|
+
setAttempt = _v[1];
|
|
19330
19404
|
var onExitCallback = useCallback(function () {
|
|
19331
19405
|
setAttempt(function (n) {
|
|
19332
19406
|
return n + 1;
|
|
@@ -19373,7 +19447,8 @@ function SelfieCaptureWizard(_a) {
|
|
|
19373
19447
|
classNames: classNames.capture,
|
|
19374
19448
|
colors: colors.capture,
|
|
19375
19449
|
verbiage: verbiage.capture,
|
|
19376
|
-
debugMode: debugMode
|
|
19450
|
+
debugMode: debugMode,
|
|
19451
|
+
debugShowSamplePoints: debugShowSamplePoints
|
|
19377
19452
|
})), showLoadingOverlay && (/*#__PURE__*/React__default.createElement(SelfieCaptureLoadingOverlay, {
|
|
19378
19453
|
key: attempt,
|
|
19379
19454
|
mode: loadingOverlayMode,
|
|
@@ -19443,32 +19518,34 @@ function VideoSignatureWizardComponent(_a, ref) {
|
|
|
19443
19518
|
_s = _a.verbiage,
|
|
19444
19519
|
verbiage = _s === void 0 ? {} : _s,
|
|
19445
19520
|
_t = _a.debugMode,
|
|
19446
|
-
debugMode = _t === void 0 ? false : _t
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19521
|
+
debugMode = _t === void 0 ? false : _t,
|
|
19522
|
+
_u = _a.debugShowSamplePoints,
|
|
19523
|
+
debugShowSamplePoints = _u === void 0 ? false : _u;
|
|
19524
|
+
var _v = useSubmissionContext(),
|
|
19525
|
+
selfieImage = _v.selfieImage,
|
|
19526
|
+
setSelfieImage = _v.setSelfieImage,
|
|
19527
|
+
setSignatureData = _v.setSignatureData,
|
|
19528
|
+
setSignatureVideoUrl = _v.setSignatureVideoUrl,
|
|
19529
|
+
setSignatureVideoMetadata = _v.setSignatureVideoMetadata,
|
|
19530
|
+
logSelfieCaptureAttempt = _v.logSelfieCaptureAttempt,
|
|
19531
|
+
uploadDocument = _v.uploadDocument;
|
|
19455
19532
|
var cameraAccessDenied = useCameraStore(useShallow(function (state) {
|
|
19456
19533
|
return {
|
|
19457
19534
|
cameraAccessDenied: state.cameraAccessDenied
|
|
19458
19535
|
};
|
|
19459
19536
|
})).cameraAccessDenied;
|
|
19460
|
-
var
|
|
19461
|
-
captureState =
|
|
19462
|
-
setCaptureState =
|
|
19463
|
-
var
|
|
19464
|
-
signatureVideoMetadata =
|
|
19465
|
-
setSignatureVideoMetadataLocal =
|
|
19537
|
+
var _w = useState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS'),
|
|
19538
|
+
captureState = _w[0],
|
|
19539
|
+
setCaptureState = _w[1];
|
|
19540
|
+
var _x = useState(null),
|
|
19541
|
+
signatureVideoMetadata = _x[0],
|
|
19542
|
+
setSignatureVideoMetadataLocal = _x[1];
|
|
19466
19543
|
var operationStartedAt = useRef(undefined);
|
|
19467
19544
|
var captureStartedAt = useRef(undefined);
|
|
19468
19545
|
var captureEndedAt = useRef(undefined);
|
|
19469
|
-
var
|
|
19470
|
-
start =
|
|
19471
|
-
stop =
|
|
19546
|
+
var _y = useSelfieGuidanceModelsContext(),
|
|
19547
|
+
start = _y.start,
|
|
19548
|
+
stop = _y.stop;
|
|
19472
19549
|
useEffect(function () {
|
|
19473
19550
|
operationStartedAt.current = new Date();
|
|
19474
19551
|
}, []);
|
|
@@ -19520,17 +19597,17 @@ function VideoSignatureWizardComponent(_a, ref) {
|
|
|
19520
19597
|
setCaptureState('SUCCESS');
|
|
19521
19598
|
onVideoCaptured === null || onVideoCaptured === void 0 ? void 0 : onVideoCaptured(videoData, signatureData, signatureImageData, metadata);
|
|
19522
19599
|
}, [onVideoCaptured, setSignatureData, setSignatureVideoMetadata, setSignatureVideoUrl]);
|
|
19523
|
-
var
|
|
19524
|
-
showLoadingOverlay =
|
|
19525
|
-
setShowLoadingOverlay =
|
|
19600
|
+
var _z = useState(true),
|
|
19601
|
+
showLoadingOverlay = _z[0],
|
|
19602
|
+
setShowLoadingOverlay = _z[1];
|
|
19526
19603
|
var onSignatureCaptureFacesNotDetected = useCallback(function () {
|
|
19527
19604
|
setShowLoadingOverlay(false);
|
|
19528
19605
|
setCaptureState(skipLivenessValidation ? 'CAPTURING_SELFIE' : 'CHECKING_LIVENESS');
|
|
19529
19606
|
useVideoSignatureStore.getState().clearRecordedData();
|
|
19530
19607
|
}, [skipLivenessValidation]);
|
|
19531
|
-
var
|
|
19532
|
-
attempt =
|
|
19533
|
-
setAttempt =
|
|
19608
|
+
var _0 = useState(0),
|
|
19609
|
+
attempt = _0[0],
|
|
19610
|
+
setAttempt = _0[1];
|
|
19534
19611
|
var onRetry = useCallback(function () {
|
|
19535
19612
|
onRetryClicked === null || onRetryClicked === void 0 ? void 0 : onRetryClicked();
|
|
19536
19613
|
setAttempt(function (n) {
|
|
@@ -19607,6 +19684,7 @@ function VideoSignatureWizardComponent(_a, ref) {
|
|
|
19607
19684
|
colors: colors.faceLiveness,
|
|
19608
19685
|
verbiage: verbiage.faceLiveness,
|
|
19609
19686
|
debugMode: debugMode,
|
|
19687
|
+
debugShowSamplePoints: debugShowSamplePoints,
|
|
19610
19688
|
renderCameraFeed: false
|
|
19611
19689
|
}));
|
|
19612
19690
|
case 'CAPTURING_SELFIE':
|
|
@@ -19631,6 +19709,7 @@ function VideoSignatureWizardComponent(_a, ref) {
|
|
|
19631
19709
|
colors: colors.faceLiveness,
|
|
19632
19710
|
verbiage: verbiage.faceLiveness,
|
|
19633
19711
|
debugMode: debugMode,
|
|
19712
|
+
debugShowSamplePoints: debugShowSamplePoints,
|
|
19634
19713
|
renderCameraFeed: false
|
|
19635
19714
|
}));
|
|
19636
19715
|
case 'CAPTURING_SIGNATURE':
|
|
@@ -19757,7 +19836,8 @@ function VideoSignatureWizardWithProvidersComponent(props, ref) {
|
|
|
19757
19836
|
requireVerticalFaceCentering: false,
|
|
19758
19837
|
minCaptureBrightnessThreshold: props.minCaptureBrightnessThreshold,
|
|
19759
19838
|
minCaptureRangeThreshold: props.minCaptureRangeThreshold,
|
|
19760
|
-
minCaptureVarianceThreshold: props.minCaptureVarianceThreshold
|
|
19839
|
+
minCaptureVarianceThreshold: props.minCaptureVarianceThreshold,
|
|
19840
|
+
debugShowSamplePoints: props.debugShowSamplePoints
|
|
19761
19841
|
}, /*#__PURE__*/React__default.createElement(VideoSignatureWizard, _assign({
|
|
19762
19842
|
ref: ref
|
|
19763
19843
|
}, props, {
|
|
@@ -23847,7 +23927,9 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
23847
23927
|
geolocationEnabled = _a.geolocationEnabled,
|
|
23848
23928
|
geolocationRequired = _a.geolocationRequired,
|
|
23849
23929
|
_s = _a.debugMode,
|
|
23850
|
-
debugMode = _s === void 0 ? false : _s
|
|
23930
|
+
debugMode = _s === void 0 ? false : _s,
|
|
23931
|
+
_t = _a.debugShowSamplePoints,
|
|
23932
|
+
debugShowSamplePoints = _t === void 0 ? false : _t;
|
|
23851
23933
|
useLanguage(lang);
|
|
23852
23934
|
useDebugLogging(debugMode);
|
|
23853
23935
|
return /*#__PURE__*/React__default.createElement(AuthProvider, {
|
|
@@ -23917,11 +23999,12 @@ function SignatureKYCComponent(_a, ref) {
|
|
|
23917
23999
|
classNames: classNames,
|
|
23918
24000
|
colors: colors,
|
|
23919
24001
|
debugMode: debugMode,
|
|
24002
|
+
debugShowSamplePoints: debugShowSamplePoints,
|
|
23920
24003
|
verbiage: verbiage,
|
|
23921
24004
|
onModelError: onModelError,
|
|
23922
24005
|
onUserCancel: onUserCancel
|
|
23923
24006
|
};
|
|
23924
|
-
}, [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])
|
|
24007
|
+
}, [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])
|
|
23925
24008
|
})))));
|
|
23926
24009
|
}
|
|
23927
24010
|
/** Render a fullscreen capture component that captures a video of the user signing the screen. */
|