idmission-web-sdk 2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb → 2.6.3-t3code-shared-flow-settings-07ab804
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/index.d.ts +1 -1
- package/dist/props.json +1 -1
- package/dist/sdk2.cjs.development.js +304 -101
- 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 +304 -101
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +304 -101
- 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/package.json +1 -1
package/dist/sdk2.esm.js
CHANGED
|
@@ -39422,15 +39422,15 @@ var Root = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateL
|
|
|
39422
39422
|
var Label = styled.span(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteralLoose(["\n max-width: 32rem;\n text-align: center;\n text-wrap: pretty;\n font-size: 14px;\n font-weight: 600;\n letter-spacing: 0.01em;\n"])));
|
|
39423
39423
|
|
|
39424
39424
|
function CompositeWizard(_ref) {
|
|
39425
|
-
var _successScreen$isAppr;
|
|
39425
|
+
var _successScreen$isAppr, _ref2;
|
|
39426
39426
|
var steps = _ref.steps,
|
|
39427
39427
|
sessionReadyProp = _ref.sessionReady,
|
|
39428
39428
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
39429
39429
|
initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
|
|
39430
39430
|
_ref$captureOnly = _ref.captureOnly,
|
|
39431
39431
|
captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
|
|
39432
|
-
|
|
39433
|
-
showSuccessScreen = _ref
|
|
39432
|
+
showResultScreen = _ref.showResultScreen,
|
|
39433
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
39434
39434
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
39435
39435
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
39436
39436
|
successClassNames = _ref.successClassNames,
|
|
@@ -39580,7 +39580,7 @@ function CompositeWizard(_ref) {
|
|
|
39580
39580
|
classNames: successScreen.classNames
|
|
39581
39581
|
});
|
|
39582
39582
|
}
|
|
39583
|
-
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
|
|
39583
|
+
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
|
|
39584
39584
|
return jsx(SubmissionSuccess, {
|
|
39585
39585
|
response: submissionResponse,
|
|
39586
39586
|
request: lastSubmissionRequest,
|
|
@@ -39617,8 +39617,8 @@ function capturedArtifactLabels(artifacts) {
|
|
|
39617
39617
|
});
|
|
39618
39618
|
return labels;
|
|
39619
39619
|
}
|
|
39620
|
-
function SubmittingScreen(
|
|
39621
|
-
var text =
|
|
39620
|
+
function SubmittingScreen(_ref3) {
|
|
39621
|
+
var text = _ref3.text;
|
|
39622
39622
|
return jsx(OrbStatusScreen, {
|
|
39623
39623
|
state: "working",
|
|
39624
39624
|
text: text,
|
|
@@ -40377,7 +40377,7 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40377
40377
|
}
|
|
40378
40378
|
|
|
40379
40379
|
var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
|
|
40380
|
-
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
|
|
40380
|
+
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
|
|
40381
40381
|
function FlowChassis(_ref) {
|
|
40382
40382
|
var client = _ref.client,
|
|
40383
40383
|
action = _ref.action,
|
|
@@ -40394,6 +40394,7 @@ function FlowChassis(_ref) {
|
|
|
40394
40394
|
loadingSpinner = _ref.loadingSpinner,
|
|
40395
40395
|
_ref$showEnrollmentId = _ref.showEnrollmentId,
|
|
40396
40396
|
showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
|
|
40397
|
+
lang = _ref.lang,
|
|
40397
40398
|
children = _ref.children,
|
|
40398
40399
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
40399
40400
|
var geolocation = useGeolocation(geolocationEnabled);
|
|
@@ -40403,33 +40404,45 @@ function FlowChassis(_ref) {
|
|
|
40403
40404
|
client: client,
|
|
40404
40405
|
children: [jsx(RemoteDiagnosticsMount, {
|
|
40405
40406
|
remoteDiagnostics: remoteDiagnostics
|
|
40406
|
-
}), jsx(
|
|
40407
|
-
|
|
40408
|
-
children: jsx(
|
|
40409
|
-
|
|
40410
|
-
children: jsx(
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40415
|
-
|
|
40416
|
-
|
|
40417
|
-
|
|
40418
|
-
|
|
40419
|
-
|
|
40420
|
-
|
|
40421
|
-
|
|
40422
|
-
|
|
40407
|
+
}), jsx(FlowLanguage, {
|
|
40408
|
+
lang: lang,
|
|
40409
|
+
children: jsx(ThemeProvider, {
|
|
40410
|
+
theme: theme,
|
|
40411
|
+
children: jsx(LoadingSpinnerProvider, {
|
|
40412
|
+
spinner: loadingSpinner,
|
|
40413
|
+
children: jsx(SubmissionProvider, _extends({
|
|
40414
|
+
client: client,
|
|
40415
|
+
action: action,
|
|
40416
|
+
options: submission,
|
|
40417
|
+
geolocation: geolocation.position
|
|
40418
|
+
}, callbacks, {
|
|
40419
|
+
children: jsx(FlowPage, {
|
|
40420
|
+
className: className,
|
|
40421
|
+
enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
|
|
40422
|
+
children: jsx(AuthGate, {
|
|
40423
|
+
children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
|
|
40424
|
+
onRetry: geolocation.retry
|
|
40425
|
+
}) : children
|
|
40426
|
+
})
|
|
40423
40427
|
})
|
|
40424
|
-
})
|
|
40425
|
-
})
|
|
40428
|
+
}))
|
|
40429
|
+
})
|
|
40426
40430
|
})
|
|
40427
40431
|
})]
|
|
40428
40432
|
})
|
|
40429
40433
|
});
|
|
40430
40434
|
}
|
|
40431
|
-
|
|
40432
|
-
|
|
40435
|
+
/** Scopes the flow's own screens to `lang`; a no-op when the flow sets none. */
|
|
40436
|
+
function FlowLanguage(_ref2) {
|
|
40437
|
+
var lang = _ref2.lang,
|
|
40438
|
+
children = _ref2.children;
|
|
40439
|
+
return lang === undefined ? children : jsx(SdkLanguageProvider, {
|
|
40440
|
+
lang: lang,
|
|
40441
|
+
children: children
|
|
40442
|
+
});
|
|
40443
|
+
}
|
|
40444
|
+
function AuthGate(_ref3) {
|
|
40445
|
+
var children = _ref3.children;
|
|
40433
40446
|
var _useAuthState = useAuthState(),
|
|
40434
40447
|
state = _useAuthState.state,
|
|
40435
40448
|
retry = _useAuthState.retry;
|
|
@@ -40480,10 +40493,10 @@ function AuthGate(_ref2) {
|
|
|
40480
40493
|
* enrollment-ID banner sits outside that body, so stages and their in-body
|
|
40481
40494
|
* overlays lay out below it instead of over it.
|
|
40482
40495
|
*/
|
|
40483
|
-
function FlowPage(
|
|
40484
|
-
var className =
|
|
40485
|
-
enrollmentId =
|
|
40486
|
-
children =
|
|
40496
|
+
function FlowPage(_ref4) {
|
|
40497
|
+
var className = _ref4.className,
|
|
40498
|
+
enrollmentId = _ref4.enrollmentId,
|
|
40499
|
+
children = _ref4.children;
|
|
40487
40500
|
var _useTheme = useTheme(),
|
|
40488
40501
|
Header = _useTheme.header,
|
|
40489
40502
|
Footer = _useTheme.footer;
|
|
@@ -40582,6 +40595,26 @@ function impliedSkipSuccessScreen(explicit, introActive) {
|
|
|
40582
40595
|
return explicit != null ? explicit : introActive;
|
|
40583
40596
|
}
|
|
40584
40597
|
|
|
40598
|
+
/**
|
|
40599
|
+
* A step bag with the flow's settings filled in wherever the step leaves them
|
|
40600
|
+
* unset: `step ?? flow`, key by key. The step's own value always wins, an
|
|
40601
|
+
* explicit `false` included, so a flow-wide setting never overrides a step.
|
|
40602
|
+
*
|
|
40603
|
+
* `flow` is typed against the step bag, so a setting the step has no prop for
|
|
40604
|
+
* (`debugMode` on the signature step, say) fails to compile instead of being
|
|
40605
|
+
* forwarded to a component that ignores it.
|
|
40606
|
+
*/
|
|
40607
|
+
function inheritFlowSettings(step, flow) {
|
|
40608
|
+
var inherited = {};
|
|
40609
|
+
for (var _i = 0, _Object$keys = Object.keys(flow); _i < _Object$keys.length; _i++) {
|
|
40610
|
+
var key = _Object$keys[_i];
|
|
40611
|
+
if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
|
|
40612
|
+
inherited[key] = flow[key];
|
|
40613
|
+
}
|
|
40614
|
+
}
|
|
40615
|
+
return _extends({}, step, inherited);
|
|
40616
|
+
}
|
|
40617
|
+
|
|
40585
40618
|
function buildRingScreenProps(_ref) {
|
|
40586
40619
|
var ringMode = _ref.ringMode,
|
|
40587
40620
|
finishingVerbiage = _ref.finishingVerbiage,
|
|
@@ -40710,7 +40743,7 @@ function withVirtualCameras(camera, allowVirtualCameras) {
|
|
|
40710
40743
|
return base;
|
|
40711
40744
|
}
|
|
40712
40745
|
|
|
40713
|
-
var _excluded$8 = ["client", "controller", "capture", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "children"];
|
|
40746
|
+
var _excluded$8 = ["client", "controller", "capture", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "children"];
|
|
40714
40747
|
var EMPTY_ID_CAPTURE$3 = {};
|
|
40715
40748
|
var EMPTY_SIGNATURE_CAPTURE$5 = {};
|
|
40716
40749
|
var EMPTY_ID_VIEW$3 = {};
|
|
@@ -40722,7 +40755,7 @@ function IdValidationFlow(_ref) {
|
|
|
40722
40755
|
_ref$capture = _ref.capture,
|
|
40723
40756
|
capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
|
|
40724
40757
|
_ref$view = _ref.view,
|
|
40725
|
-
|
|
40758
|
+
viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
|
|
40726
40759
|
_ref$submission = _ref.submission,
|
|
40727
40760
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
|
|
40728
40761
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -40732,14 +40765,17 @@ function IdValidationFlow(_ref) {
|
|
|
40732
40765
|
signatureController = _ref.signatureController,
|
|
40733
40766
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
40734
40767
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
|
|
40735
|
-
|
|
40768
|
+
signatureViewProp = _ref.signatureView,
|
|
40736
40769
|
captureSignature = _ref.captureSignature,
|
|
40737
40770
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
40738
40771
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
40739
40772
|
theme = _ref.theme,
|
|
40740
40773
|
className = _ref.className,
|
|
40741
|
-
|
|
40742
|
-
|
|
40774
|
+
lang = _ref.lang,
|
|
40775
|
+
debugMode = _ref.debugMode,
|
|
40776
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40777
|
+
showResultScreen = _ref.showResultScreen,
|
|
40778
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
40743
40779
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
40744
40780
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
40745
40781
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -40751,6 +40787,23 @@ function IdValidationFlow(_ref) {
|
|
|
40751
40787
|
onSubmitted = _ref.onSubmitted,
|
|
40752
40788
|
children = _ref.children,
|
|
40753
40789
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
40790
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
40791
|
+
var _useMemo = useMemo(function () {
|
|
40792
|
+
return {
|
|
40793
|
+
view: inheritFlowSettings(viewProp, {
|
|
40794
|
+
lang: lang,
|
|
40795
|
+
debugMode: debugMode,
|
|
40796
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40797
|
+
}),
|
|
40798
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
40799
|
+
lang: lang,
|
|
40800
|
+
showCaptureDiagnostics: debugMode,
|
|
40801
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40802
|
+
})
|
|
40803
|
+
};
|
|
40804
|
+
}, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
40805
|
+
view = _useMemo.view,
|
|
40806
|
+
signatureView = _useMemo.signatureView;
|
|
40754
40807
|
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40755
40808
|
capture: capture,
|
|
40756
40809
|
signatureCapture: signatureCapture
|
|
@@ -40872,13 +40925,14 @@ function IdValidationFlow(_ref) {
|
|
|
40872
40925
|
action: SubmissionAction.VALIDATE,
|
|
40873
40926
|
submission: submission,
|
|
40874
40927
|
theme: theme,
|
|
40875
|
-
className: className
|
|
40928
|
+
className: className,
|
|
40929
|
+
lang: lang
|
|
40876
40930
|
}, callbacks, {
|
|
40877
40931
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
40878
40932
|
steps: steps,
|
|
40879
40933
|
initialArtifacts: initialArtifacts,
|
|
40880
40934
|
captureOnly: captureOnly,
|
|
40881
|
-
|
|
40935
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
40882
40936
|
showDiagnostics: showDiagnostics,
|
|
40883
40937
|
onArtifactsCollected: onCaptured,
|
|
40884
40938
|
onSubmitted: onSubmitted
|
|
@@ -40897,13 +40951,16 @@ function FaceValidationFlow(_ref) {
|
|
|
40897
40951
|
_ref$capture = _ref.capture,
|
|
40898
40952
|
capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
|
|
40899
40953
|
_ref$view = _ref.view,
|
|
40900
|
-
|
|
40954
|
+
viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
|
|
40901
40955
|
_ref$submission = _ref.submission,
|
|
40902
40956
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
|
|
40903
40957
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
40904
40958
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
|
|
40905
40959
|
theme = _ref.theme,
|
|
40906
40960
|
className = _ref.className,
|
|
40961
|
+
lang = _ref.lang,
|
|
40962
|
+
debugMode = _ref.debugMode,
|
|
40963
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40907
40964
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
40908
40965
|
geolocationRequired = _ref.geolocationRequired,
|
|
40909
40966
|
captureProgress = _ref.captureProgress,
|
|
@@ -40912,6 +40969,14 @@ function FaceValidationFlow(_ref) {
|
|
|
40912
40969
|
onCaptured = _ref.onCaptured,
|
|
40913
40970
|
onCaptureError = _ref.onCaptureError,
|
|
40914
40971
|
children = _ref.children;
|
|
40972
|
+
// Flow-wide settings reach the step unless its own bag sets them.
|
|
40973
|
+
var view = useMemo(function () {
|
|
40974
|
+
return inheritFlowSettings(viewProp, {
|
|
40975
|
+
lang: lang,
|
|
40976
|
+
debugMode: debugMode,
|
|
40977
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40978
|
+
});
|
|
40979
|
+
}, [debugMode, lang, skipSuccessScreen, viewProp]);
|
|
40915
40980
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
40916
40981
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
40917
40982
|
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -40972,6 +41037,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40972
41037
|
submission: submission,
|
|
40973
41038
|
theme: theme,
|
|
40974
41039
|
className: className,
|
|
41040
|
+
lang: lang,
|
|
40975
41041
|
geolocationEnabled: geolocationEnabled,
|
|
40976
41042
|
geolocationRequired: geolocationRequired,
|
|
40977
41043
|
captureProgress: captureProgress,
|
|
@@ -40986,7 +41052,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40986
41052
|
});
|
|
40987
41053
|
}
|
|
40988
41054
|
|
|
40989
|
-
var _excluded$6 = ["client", "idController", "selfieController", "signatureController", "idCapture", "faceCapture", "signatureCapture", "idView", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "submission", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "onStepStarted", "onStepCompleted", "children"],
|
|
41055
|
+
var _excluded$6 = ["client", "idController", "selfieController", "signatureController", "idCapture", "faceCapture", "signatureCapture", "idView", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "onStepStarted", "onStepCompleted", "children"],
|
|
40990
41056
|
_excluded2$3 = ["checkLivenessOptions"];
|
|
40991
41057
|
var EMPTY_ID_CAPTURE$2 = {};
|
|
40992
41058
|
var EMPTY_FACE_CAPTURE$4 = {};
|
|
@@ -41008,10 +41074,10 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41008
41074
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41009
41075
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
|
|
41010
41076
|
_ref$idView = _ref.idView,
|
|
41011
|
-
|
|
41077
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
|
|
41012
41078
|
_ref$faceView = _ref.faceView,
|
|
41013
|
-
|
|
41014
|
-
|
|
41079
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
|
|
41080
|
+
signatureViewProp = _ref.signatureView,
|
|
41015
41081
|
captureSignature = _ref.captureSignature,
|
|
41016
41082
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41017
41083
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41021,8 +41087,11 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41021
41087
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
|
|
41022
41088
|
theme = _ref.theme,
|
|
41023
41089
|
className = _ref.className,
|
|
41024
|
-
|
|
41025
|
-
|
|
41090
|
+
lang = _ref.lang,
|
|
41091
|
+
debugMode = _ref.debugMode,
|
|
41092
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41093
|
+
showResultScreen = _ref.showResultScreen,
|
|
41094
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41026
41095
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41027
41096
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41028
41097
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41036,6 +41105,26 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41036
41105
|
onStepCompleted = _ref.onStepCompleted,
|
|
41037
41106
|
children = _ref.children,
|
|
41038
41107
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
41108
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41109
|
+
var _useMemo = useMemo(function () {
|
|
41110
|
+
var settings = {
|
|
41111
|
+
lang: lang,
|
|
41112
|
+
debugMode: debugMode,
|
|
41113
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41114
|
+
};
|
|
41115
|
+
return {
|
|
41116
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41117
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41118
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41119
|
+
lang: lang,
|
|
41120
|
+
showCaptureDiagnostics: debugMode,
|
|
41121
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41122
|
+
})
|
|
41123
|
+
};
|
|
41124
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41125
|
+
idView = _useMemo.idView,
|
|
41126
|
+
faceView = _useMemo.faceView,
|
|
41127
|
+
signatureView = _useMemo.signatureView;
|
|
41039
41128
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41040
41129
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
41041
41130
|
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41206,12 +41295,13 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41206
41295
|
action: SubmissionAction.VALIDATE,
|
|
41207
41296
|
submission: submission,
|
|
41208
41297
|
theme: theme,
|
|
41209
|
-
className: className
|
|
41298
|
+
className: className,
|
|
41299
|
+
lang: lang
|
|
41210
41300
|
}, callbacks, {
|
|
41211
41301
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41212
41302
|
steps: steps,
|
|
41213
41303
|
initialArtifacts: initialArtifacts,
|
|
41214
|
-
|
|
41304
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41215
41305
|
showDiagnostics: showDiagnostics,
|
|
41216
41306
|
onSubmitted: onSubmitted,
|
|
41217
41307
|
onStepStarted: onStepStarted,
|
|
@@ -41266,9 +41356,9 @@ function SignatureKYCFlow(_ref) {
|
|
|
41266
41356
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41267
41357
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
|
|
41268
41358
|
_ref$faceView = _ref.faceView,
|
|
41269
|
-
|
|
41359
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
|
|
41270
41360
|
_ref$signatureView = _ref.signatureView,
|
|
41271
|
-
|
|
41361
|
+
signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
|
|
41272
41362
|
challengeResponse = _ref.challengeResponse,
|
|
41273
41363
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
41274
41364
|
_ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
|
|
@@ -41294,6 +41384,8 @@ function SignatureKYCFlow(_ref) {
|
|
|
41294
41384
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
|
|
41295
41385
|
theme = _ref.theme,
|
|
41296
41386
|
className = _ref.className,
|
|
41387
|
+
lang = _ref.lang,
|
|
41388
|
+
debugMode = _ref.debugMode,
|
|
41297
41389
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
41298
41390
|
geolocationRequired = _ref.geolocationRequired,
|
|
41299
41391
|
captureProgress = _ref.captureProgress,
|
|
@@ -41301,6 +41393,22 @@ function SignatureKYCFlow(_ref) {
|
|
|
41301
41393
|
loadingSpinner = _ref.loadingSpinner,
|
|
41302
41394
|
onCaptured = _ref.onCaptured,
|
|
41303
41395
|
onCaptureError = _ref.onCaptureError;
|
|
41396
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41397
|
+
var _useMemo = useMemo(function () {
|
|
41398
|
+
return {
|
|
41399
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
41400
|
+
lang: lang,
|
|
41401
|
+
debugMode: debugMode
|
|
41402
|
+
}),
|
|
41403
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41404
|
+
lang: lang,
|
|
41405
|
+
showCaptureDiagnostics: debugMode,
|
|
41406
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41407
|
+
})
|
|
41408
|
+
};
|
|
41409
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41410
|
+
faceView = _useMemo.faceView,
|
|
41411
|
+
signatureView = _useMemo.signatureView;
|
|
41304
41412
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41305
41413
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
41306
41414
|
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41311,7 +41419,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41311
41419
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41312
41420
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
41313
41421
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
41314
|
-
var legacyVideoLayout = (_signatureView$legacy = signatureView
|
|
41422
|
+
var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
|
|
41315
41423
|
var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
|
|
41316
41424
|
var sharedVideoRef = useRef(null);
|
|
41317
41425
|
var _useState = useState(null),
|
|
@@ -41495,6 +41603,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41495
41603
|
submission: submission,
|
|
41496
41604
|
theme: theme,
|
|
41497
41605
|
className: className,
|
|
41606
|
+
lang: lang,
|
|
41498
41607
|
geolocationEnabled: geolocationEnabled,
|
|
41499
41608
|
geolocationRequired: geolocationRequired,
|
|
41500
41609
|
captureProgress: captureProgress,
|
|
@@ -41504,7 +41613,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41504
41613
|
completed: stage === 'complete'
|
|
41505
41614
|
}), stage !== 'complete' ? jsxs(HandoffRoot, {
|
|
41506
41615
|
children: [jsx(SignatureCaptureView, _extends({}, signatureView, {
|
|
41507
|
-
skipSuccessScreen: impliedSkipSuccessScreen(
|
|
41616
|
+
skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
|
|
41508
41617
|
controller: resolvedSignatureController,
|
|
41509
41618
|
sessionReady: renderedStage === 'signature-capture',
|
|
41510
41619
|
videoRef: sharedVideoRef,
|
|
@@ -41602,7 +41711,7 @@ var FaceStage = styled.div(_templateObject2 || (_templateObject2 = _taggedTempla
|
|
|
41602
41711
|
return props.$visible ? 'block' : 'none';
|
|
41603
41712
|
});
|
|
41604
41713
|
|
|
41605
|
-
var _excluded$4 = ["client", "idController", "selfieController", "controller", "idCapture", "faceCapture", "capture", "idView", "faceView", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "skipIdCapture", "matchOnly", "readTextPrompt", "onMicrophoneAccessDenied", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "onCaptureError", "children"],
|
|
41714
|
+
var _excluded$4 = ["client", "idController", "selfieController", "controller", "idCapture", "faceCapture", "capture", "idView", "faceView", "view", "submission", "initialArtifacts", "captureOnly", "signatureController", "signatureCapture", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "skipIdCapture", "matchOnly", "readTextPrompt", "onMicrophoneAccessDenied", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onCaptured", "onSubmitted", "onCaptureError", "children"],
|
|
41606
41715
|
_excluded2$2 = ["checkLivenessOptions"];
|
|
41607
41716
|
var EMPTY_ID_CAPTURE$1 = {};
|
|
41608
41717
|
var EMPTY_FACE_CAPTURE$2 = {};
|
|
@@ -41626,11 +41735,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41626
41735
|
_ref$capture = _ref.capture,
|
|
41627
41736
|
capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
|
|
41628
41737
|
_ref$idView = _ref.idView,
|
|
41629
|
-
|
|
41738
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
|
|
41630
41739
|
_ref$faceView = _ref.faceView,
|
|
41631
|
-
|
|
41740
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
|
|
41632
41741
|
_ref$view = _ref.view,
|
|
41633
|
-
|
|
41742
|
+
viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
|
|
41634
41743
|
_ref$submission = _ref.submission,
|
|
41635
41744
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
|
|
41636
41745
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -41640,7 +41749,7 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41640
41749
|
signatureController = _ref.signatureController,
|
|
41641
41750
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41642
41751
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
|
|
41643
|
-
|
|
41752
|
+
signatureViewProp = _ref.signatureView,
|
|
41644
41753
|
captureSignature = _ref.captureSignature,
|
|
41645
41754
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41646
41755
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41652,8 +41761,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41652
41761
|
onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
|
|
41653
41762
|
theme = _ref.theme,
|
|
41654
41763
|
className = _ref.className,
|
|
41655
|
-
|
|
41656
|
-
|
|
41764
|
+
lang = _ref.lang,
|
|
41765
|
+
debugMode = _ref.debugMode,
|
|
41766
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41767
|
+
showResultScreen = _ref.showResultScreen,
|
|
41768
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41657
41769
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41658
41770
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41659
41771
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41666,6 +41778,31 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41666
41778
|
onCaptureError = _ref.onCaptureError,
|
|
41667
41779
|
children = _ref.children,
|
|
41668
41780
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
41781
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41782
|
+
var _useMemo = useMemo(function () {
|
|
41783
|
+
var settings = {
|
|
41784
|
+
lang: lang,
|
|
41785
|
+
debugMode: debugMode,
|
|
41786
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41787
|
+
};
|
|
41788
|
+
return {
|
|
41789
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41790
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41791
|
+
view: inheritFlowSettings(viewProp, {
|
|
41792
|
+
lang: lang,
|
|
41793
|
+
debugMode: debugMode
|
|
41794
|
+
}),
|
|
41795
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41796
|
+
lang: lang,
|
|
41797
|
+
showCaptureDiagnostics: debugMode,
|
|
41798
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41799
|
+
})
|
|
41800
|
+
};
|
|
41801
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
41802
|
+
idView = _useMemo.idView,
|
|
41803
|
+
faceView = _useMemo.faceView,
|
|
41804
|
+
view = _useMemo.view,
|
|
41805
|
+
signatureView = _useMemo.signatureView;
|
|
41669
41806
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41670
41807
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
|
|
41671
41808
|
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41831,13 +41968,14 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41831
41968
|
action: action,
|
|
41832
41969
|
submission: submission,
|
|
41833
41970
|
theme: theme,
|
|
41834
|
-
className: className
|
|
41971
|
+
className: className,
|
|
41972
|
+
lang: lang
|
|
41835
41973
|
}, callbacks, {
|
|
41836
41974
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41837
41975
|
steps: steps,
|
|
41838
41976
|
initialArtifacts: initialArtifacts,
|
|
41839
41977
|
captureOnly: captureOnly,
|
|
41840
|
-
|
|
41978
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41841
41979
|
showDiagnostics: showDiagnostics,
|
|
41842
41980
|
onArtifactsCollected: onCaptured,
|
|
41843
41981
|
onSubmitted: onSubmitted
|
|
@@ -44680,7 +44818,7 @@ function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
|
44680
44818
|
};
|
|
44681
44819
|
}
|
|
44682
44820
|
|
|
44683
|
-
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44821
|
+
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44684
44822
|
var EMPTY_DOCUMENTS = [];
|
|
44685
44823
|
var EMPTY_CAPTURE$1 = {};
|
|
44686
44824
|
var EMPTY_VIEW$2 = {};
|
|
@@ -44701,6 +44839,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44701
44839
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
|
|
44702
44840
|
theme = _ref.theme,
|
|
44703
44841
|
className = _ref.className,
|
|
44842
|
+
lang = _ref.lang,
|
|
44843
|
+
debugMode = _ref.debugMode,
|
|
44704
44844
|
onDocumentCaptured = _ref.onDocumentCaptured,
|
|
44705
44845
|
onDocumentUploaded = _ref.onDocumentUploaded,
|
|
44706
44846
|
onComplete = _ref.onComplete,
|
|
@@ -44797,8 +44937,11 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44797
44937
|
var steps = useMemo(function () {
|
|
44798
44938
|
return [buildDocumentCaptureStep(resolvedController, _extends({
|
|
44799
44939
|
documents: documents
|
|
44800
|
-
}, view
|
|
44801
|
-
|
|
44940
|
+
}, inheritFlowSettings(view, {
|
|
44941
|
+
lang: lang,
|
|
44942
|
+
debugMode: debugMode
|
|
44943
|
+
})))];
|
|
44944
|
+
}, [debugMode, documents, lang, resolvedController, view]);
|
|
44802
44945
|
var onArtifactsCollected = useCallback(function () {
|
|
44803
44946
|
// captureOnly hands the (empty) artifacts back here; completion is reported
|
|
44804
44947
|
// through onComplete with the documents instead.
|
|
@@ -44808,7 +44951,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44808
44951
|
action: SubmissionAction.NONE,
|
|
44809
44952
|
submission: submission,
|
|
44810
44953
|
theme: theme,
|
|
44811
|
-
className: className
|
|
44954
|
+
className: className,
|
|
44955
|
+
lang: lang
|
|
44812
44956
|
}, callbacks, {
|
|
44813
44957
|
children: [jsx(CompositeWizard, {
|
|
44814
44958
|
steps: steps,
|
|
@@ -44819,7 +44963,7 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44819
44963
|
}));
|
|
44820
44964
|
}
|
|
44821
44965
|
|
|
44822
|
-
var _excluded$2 = ["client", "submission", "selfieController", "signatureController", "faceCapture", "signatureCapture", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
|
|
44966
|
+
var _excluded$2 = ["client", "submission", "selfieController", "signatureController", "faceCapture", "signatureCapture", "faceView", "signatureView", "captureSignature", "captureSignatureVideo", "allowVirtualCameras", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
|
|
44823
44967
|
_excluded2$1 = ["checkLivenessOptions"];
|
|
44824
44968
|
var EMPTY_FACE_CAPTURE$1 = {};
|
|
44825
44969
|
var EMPTY_SIGNATURE_CAPTURE$1 = {};
|
|
@@ -44836,8 +44980,8 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44836
44980
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
44837
44981
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
|
|
44838
44982
|
_ref$faceView = _ref.faceView,
|
|
44839
|
-
|
|
44840
|
-
|
|
44983
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
|
|
44984
|
+
signatureViewProp = _ref.signatureView,
|
|
44841
44985
|
captureSignature = _ref.captureSignature,
|
|
44842
44986
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
44843
44987
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -44845,8 +44989,11 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44845
44989
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
|
|
44846
44990
|
theme = _ref.theme,
|
|
44847
44991
|
className = _ref.className,
|
|
44848
|
-
|
|
44849
|
-
|
|
44992
|
+
lang = _ref.lang,
|
|
44993
|
+
debugMode = _ref.debugMode,
|
|
44994
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
44995
|
+
showResultScreen = _ref.showResultScreen,
|
|
44996
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
44850
44997
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
44851
44998
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
44852
44999
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -44858,6 +45005,23 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44858
45005
|
onCaptureError = _ref.onCaptureError,
|
|
44859
45006
|
children = _ref.children,
|
|
44860
45007
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
45008
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45009
|
+
var _useMemo = useMemo(function () {
|
|
45010
|
+
return {
|
|
45011
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
45012
|
+
lang: lang,
|
|
45013
|
+
debugMode: debugMode,
|
|
45014
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45015
|
+
}),
|
|
45016
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45017
|
+
lang: lang,
|
|
45018
|
+
showCaptureDiagnostics: debugMode,
|
|
45019
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45020
|
+
})
|
|
45021
|
+
};
|
|
45022
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
45023
|
+
faceView = _useMemo.faceView,
|
|
45024
|
+
signatureView = _useMemo.signatureView;
|
|
44861
45025
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44862
45026
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
44863
45027
|
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -44989,19 +45153,20 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44989
45153
|
submission: submission,
|
|
44990
45154
|
showEnrollmentId: showDiagnostics,
|
|
44991
45155
|
theme: theme,
|
|
44992
|
-
className: className
|
|
45156
|
+
className: className,
|
|
45157
|
+
lang: lang
|
|
44993
45158
|
}, callbacks, {
|
|
44994
45159
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
44995
45160
|
steps: steps,
|
|
44996
45161
|
initialArtifacts: initialArtifacts,
|
|
44997
|
-
|
|
45162
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
44998
45163
|
showDiagnostics: showDiagnostics,
|
|
44999
45164
|
onSubmitted: onSubmitted
|
|
45000
45165
|
})), children]
|
|
45001
45166
|
}));
|
|
45002
45167
|
}
|
|
45003
45168
|
|
|
45004
|
-
var _excluded$1 = ["client", "submission", "idController", "selfieController", "signatureController", "videoIdController", "idCapture", "faceCapture", "signatureCapture", "videoIdCapture", "idView", "faceView", "signatureView", "videoIdView", "captureSignature", "captureSignatureVideo", "captureVideoId", "allowVirtualCameras", "initialArtifacts", "theme", "className", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
|
|
45169
|
+
var _excluded$1 = ["client", "submission", "idController", "selfieController", "signatureController", "videoIdController", "idCapture", "faceCapture", "signatureCapture", "videoIdCapture", "idView", "faceView", "signatureView", "videoIdView", "captureSignature", "captureSignatureVideo", "captureVideoId", "allowVirtualCameras", "initialArtifacts", "theme", "className", "lang", "debugMode", "skipSuccessScreen", "showResultScreen", "showSuccessScreen", "showDiagnostics", "captureAdditionalDocuments", "additionalDocumentClassNames", "additionalDocumentVerbiage", "ringScreenClassNames", "ringScreenVerbiage", "onSubmitted", "onCaptureError", "children"],
|
|
45005
45170
|
_excluded2 = ["checkLivenessOptions"];
|
|
45006
45171
|
var EMPTY_ID_CAPTURE = {};
|
|
45007
45172
|
var EMPTY_FACE_CAPTURE = {};
|
|
@@ -45034,11 +45199,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45034
45199
|
_ref$videoIdCapture = _ref.videoIdCapture,
|
|
45035
45200
|
videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
|
|
45036
45201
|
_ref$idView = _ref.idView,
|
|
45037
|
-
|
|
45202
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
|
|
45038
45203
|
_ref$faceView = _ref.faceView,
|
|
45039
|
-
|
|
45040
|
-
|
|
45041
|
-
|
|
45204
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
|
|
45205
|
+
signatureViewProp = _ref.signatureView,
|
|
45206
|
+
videoIdViewProp = _ref.videoIdView,
|
|
45042
45207
|
captureSignature = _ref.captureSignature,
|
|
45043
45208
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
45044
45209
|
_ref$captureVideoId = _ref.captureVideoId,
|
|
@@ -45048,8 +45213,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45048
45213
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
|
|
45049
45214
|
theme = _ref.theme,
|
|
45050
45215
|
className = _ref.className,
|
|
45051
|
-
|
|
45052
|
-
|
|
45216
|
+
lang = _ref.lang,
|
|
45217
|
+
debugMode = _ref.debugMode,
|
|
45218
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
45219
|
+
showResultScreen = _ref.showResultScreen,
|
|
45220
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
45053
45221
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
45054
45222
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
45055
45223
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -45061,7 +45229,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45061
45229
|
onCaptureError = _ref.onCaptureError,
|
|
45062
45230
|
children = _ref.children,
|
|
45063
45231
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
45064
|
-
|
|
45232
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45233
|
+
var _useMemo = useMemo(function () {
|
|
45234
|
+
var settings = {
|
|
45235
|
+
lang: lang,
|
|
45236
|
+
debugMode: debugMode,
|
|
45237
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45238
|
+
};
|
|
45239
|
+
return {
|
|
45240
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
45241
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
45242
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45243
|
+
lang: lang,
|
|
45244
|
+
showCaptureDiagnostics: debugMode,
|
|
45245
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45246
|
+
}),
|
|
45247
|
+
videoIdView: inheritFlowSettings(videoIdViewProp, {
|
|
45248
|
+
lang: lang,
|
|
45249
|
+
debugMode: debugMode
|
|
45250
|
+
})
|
|
45251
|
+
};
|
|
45252
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
|
|
45253
|
+
idView = _useMemo.idView,
|
|
45254
|
+
faceView = _useMemo.faceView,
|
|
45255
|
+
signatureView = _useMemo.signatureView,
|
|
45256
|
+
videoIdView = _useMemo.videoIdView;
|
|
45065
45257
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
45066
45258
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
|
|
45067
45259
|
useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -45277,26 +45469,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45277
45469
|
submission: submission,
|
|
45278
45470
|
showEnrollmentId: showDiagnostics,
|
|
45279
45471
|
theme: theme,
|
|
45280
|
-
className: className
|
|
45472
|
+
className: className,
|
|
45473
|
+
lang: lang
|
|
45281
45474
|
}, callbacks, {
|
|
45282
45475
|
children: [steps ? jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
45283
45476
|
steps: steps,
|
|
45284
45477
|
initialArtifacts: initialArtifacts,
|
|
45285
|
-
|
|
45478
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
45286
45479
|
showDiagnostics: showDiagnostics,
|
|
45287
45480
|
onSubmitted: onSubmitted
|
|
45288
|
-
})) :
|
|
45289
|
-
// `loadingStage` is what enables the customer's `loadingSpinner`:
|
|
45290
|
-
// without it OrbStatusScreen hard-renders the orb, so this was the one
|
|
45291
|
-
// loading surface in the SDK that ignored a supplied component
|
|
45292
|
-
// outright — in the flow whose double-loader prompted the fix.
|
|
45293
|
-
jsx(OrbStatusScreen, {
|
|
45294
|
-
state: "solving",
|
|
45295
|
-
text: preparing.preparingText,
|
|
45296
|
-
loadingStage: "preparing"
|
|
45297
|
-
}), children]
|
|
45481
|
+
})) : jsx(PreparingScreen, {}), children]
|
|
45298
45482
|
}));
|
|
45299
45483
|
}
|
|
45484
|
+
/** Translated inside the chassis, so the flow's `lang` reaches it. */
|
|
45485
|
+
function PreparingScreen() {
|
|
45486
|
+
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
45487
|
+
// `loadingStage` is what enables the customer's `loadingSpinner`: without it
|
|
45488
|
+
// OrbStatusScreen hard-renders the orb, so this was the one loading surface
|
|
45489
|
+
// in the SDK that ignored a supplied component outright — in the flow whose
|
|
45490
|
+
// double-loader prompted the fix.
|
|
45491
|
+
return jsx(OrbStatusScreen, {
|
|
45492
|
+
state: "solving",
|
|
45493
|
+
text: preparing.preparingText,
|
|
45494
|
+
loadingStage: "preparing"
|
|
45495
|
+
});
|
|
45496
|
+
}
|
|
45300
45497
|
|
|
45301
45498
|
var ALLOWED_MISMATCH_RETRIES$1 = 0;
|
|
45302
45499
|
var MAX_LIVENESS_ATTEMPTS$1 = 3;
|
|
@@ -45964,6 +46161,8 @@ function CustomerMatchFlow(_ref) {
|
|
|
45964
46161
|
view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
|
|
45965
46162
|
theme = _ref.theme,
|
|
45966
46163
|
className = _ref.className,
|
|
46164
|
+
lang = _ref.lang,
|
|
46165
|
+
debugMode = _ref.debugMode,
|
|
45967
46166
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
45968
46167
|
geolocationRequired = _ref.geolocationRequired,
|
|
45969
46168
|
remoteDiagnostics = _ref.remoteDiagnostics,
|
|
@@ -46026,7 +46225,10 @@ function CustomerMatchFlow(_ref) {
|
|
|
46026
46225
|
// Only the auto-continue half applies here: the plain SelfieCaptureView has
|
|
46027
46226
|
// no capture review screen to skip (that is FaceLivenessView's), and this
|
|
46028
46227
|
// flow's own terminal screens are governed by `skipSuccessScreen` below.
|
|
46029
|
-
var resolvedView = _extends({}, view, {
|
|
46228
|
+
var resolvedView = _extends({}, inheritFlowSettings(view, {
|
|
46229
|
+
lang: lang,
|
|
46230
|
+
debugMode: debugMode
|
|
46231
|
+
}), {
|
|
46030
46232
|
autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
|
|
46031
46233
|
});
|
|
46032
46234
|
// Reset during render, not in an effect: an auto-requesting capture stage
|
|
@@ -46121,6 +46323,7 @@ function CustomerMatchFlow(_ref) {
|
|
|
46121
46323
|
submission: submission,
|
|
46122
46324
|
theme: theme,
|
|
46123
46325
|
className: className,
|
|
46326
|
+
lang: lang,
|
|
46124
46327
|
geolocationEnabled: geolocationEnabled,
|
|
46125
46328
|
geolocationRequired: geolocationRequired,
|
|
46126
46329
|
remoteDiagnostics: remoteDiagnostics,
|
|
@@ -47860,7 +48063,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47860
48063
|
// post-submission diagnostics page on this one flag
|
|
47861
48064
|
// (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
|
|
47862
48065
|
// here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
|
|
47863
|
-
// while the terminal page needs `
|
|
48066
|
+
// while the terminal page needs `showResultScreen` to render at all and
|
|
47864
48067
|
// `showDiagnostics` to include the request/response bodies. Mapping only
|
|
47865
48068
|
// the first left `debugMode` customers on a blank screen after submitting,
|
|
47866
48069
|
// because CompositeWizard falls through to `return null`.
|
|
@@ -47868,7 +48071,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47868
48071
|
// Both take the same flag: sdk2's page showed the response body (behind a
|
|
47869
48072
|
// toggle) whenever debugMode was on, so gating diagnostics separately here
|
|
47870
48073
|
// would be a NEW restriction, not parity.
|
|
47871
|
-
|
|
48074
|
+
showResultScreen: props.debugMode,
|
|
47872
48075
|
showDiagnostics: props.debugMode,
|
|
47873
48076
|
// `onSubmit` is NOT mapped to a flow prop: it goes to the client config
|
|
47874
48077
|
// (see mapClientConfig), which is the layer sdk2 put it at and the only
|
|
@@ -48049,7 +48252,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
|
|
|
48049
48252
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48050
48253
|
loadingSpinner: props.loadingSpinner,
|
|
48051
48254
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48052
|
-
|
|
48255
|
+
showResultScreen: props.debugMode,
|
|
48053
48256
|
showDiagnostics: props.debugMode,
|
|
48054
48257
|
onStepStarted: emit ? function (stepId) {
|
|
48055
48258
|
var stage = journeyStageForStepId(stepId);
|
|
@@ -48171,7 +48374,7 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
48171
48374
|
// both the boolean and async callback forms at the flow-level seam.
|
|
48172
48375
|
//
|
|
48173
48376
|
// `debugMode` forces it back on, completing the fold mapIdValidationProps
|
|
48174
|
-
// does with `
|
|
48377
|
+
// does with `showResultScreen`/`showDiagnostics`: the capture readout
|
|
48175
48378
|
// renders INSIDE the review, so a consumer who skips the review and turns
|
|
48176
48379
|
// debugMode on would otherwise get the switch with nowhere for it to show
|
|
48177
48380
|
// — silently, in the one configuration it exists for.
|
|
@@ -48342,7 +48545,7 @@ function mapVideoIdValidationProps(props, ctx) {
|
|
|
48342
48545
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48343
48546
|
loadingSpinner: props.loadingSpinner,
|
|
48344
48547
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48345
|
-
|
|
48548
|
+
showResultScreen: props.debugMode,
|
|
48346
48549
|
showDiagnostics: props.debugMode,
|
|
48347
48550
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48348
48551
|
onRequestFailure: props.onRequestFailure,
|
|
@@ -48573,7 +48776,7 @@ function mapCustomerBiometricsEnrollmentProps(props, ctx) {
|
|
|
48573
48776
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48574
48777
|
loadingSpinner: props.loadingSpinner,
|
|
48575
48778
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48576
|
-
|
|
48779
|
+
showResultScreen: props.debugMode,
|
|
48577
48780
|
showDiagnostics: props.debugMode,
|
|
48578
48781
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48579
48782
|
// sdk2's enrollment twin of `onApproved`.
|
|
@@ -48666,7 +48869,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48666
48869
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48667
48870
|
loadingSpinner: props.loadingSpinner,
|
|
48668
48871
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48669
|
-
|
|
48872
|
+
showResultScreen: props.debugMode,
|
|
48670
48873
|
showDiagnostics: props.debugMode,
|
|
48671
48874
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48672
48875
|
onApproved: withSubmissionRequest(props.onEnrolled, ctx),
|
|
@@ -48676,7 +48879,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48676
48879
|
});
|
|
48677
48880
|
}
|
|
48678
48881
|
|
|
48679
|
-
var webSdkVersion = '2.6.3-t3code-
|
|
48882
|
+
var webSdkVersion = '2.6.3-t3code-shared-flow-settings-07ab804';
|
|
48680
48883
|
|
|
48681
48884
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48682
48885
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|