idmission-web-sdk 2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb → 2.6.3-t3code-shared-flow-settings-e5702c2
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 +295 -96
- 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 +295 -96
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +295 -96
- 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
|
@@ -7562,12 +7562,17 @@ var SdkLanguageContext = /*#__PURE__*/createContext(undefined);
|
|
|
7562
7562
|
* Binds one rendered SDK tree to its requested language. A fixed translator
|
|
7563
7563
|
* avoids waiting for a post-render changeLanguage() effect and keeps SSR and
|
|
7564
7564
|
* concurrently mounted SDK views independent of the shared detector instance.
|
|
7565
|
+
*
|
|
7566
|
+
* An unset `lang` keeps whatever scope encloses it (or none), so a caller can
|
|
7567
|
+
* render the provider unconditionally: toggling `lang` between unset and set
|
|
7568
|
+
* then never changes the element tree, and never remounts the subtree.
|
|
7565
7569
|
*/
|
|
7566
7570
|
function SdkLanguageProvider(_ref) {
|
|
7567
7571
|
var children = _ref.children,
|
|
7568
7572
|
lang = _ref.lang;
|
|
7573
|
+
var inherited = useContext(SdkLanguageContext);
|
|
7569
7574
|
return /*#__PURE__*/createElement(SdkLanguageContext.Provider, {
|
|
7570
|
-
value: lang === 'auto' ? detectedLanguage : lang
|
|
7575
|
+
value: lang === undefined ? inherited : lang === 'auto' ? detectedLanguage : lang
|
|
7571
7576
|
}, children);
|
|
7572
7577
|
}
|
|
7573
7578
|
/**
|
|
@@ -39422,15 +39427,15 @@ var Root = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateL
|
|
|
39422
39427
|
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
39428
|
|
|
39424
39429
|
function CompositeWizard(_ref) {
|
|
39425
|
-
var _successScreen$isAppr;
|
|
39430
|
+
var _successScreen$isAppr, _ref2;
|
|
39426
39431
|
var steps = _ref.steps,
|
|
39427
39432
|
sessionReadyProp = _ref.sessionReady,
|
|
39428
39433
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
39429
39434
|
initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
|
|
39430
39435
|
_ref$captureOnly = _ref.captureOnly,
|
|
39431
39436
|
captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
|
|
39432
|
-
|
|
39433
|
-
showSuccessScreen = _ref
|
|
39437
|
+
showResultScreen = _ref.showResultScreen,
|
|
39438
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
39434
39439
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
39435
39440
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
39436
39441
|
successClassNames = _ref.successClassNames,
|
|
@@ -39580,7 +39585,7 @@ function CompositeWizard(_ref) {
|
|
|
39580
39585
|
classNames: successScreen.classNames
|
|
39581
39586
|
});
|
|
39582
39587
|
}
|
|
39583
|
-
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
|
|
39588
|
+
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
|
|
39584
39589
|
return jsx(SubmissionSuccess, {
|
|
39585
39590
|
response: submissionResponse,
|
|
39586
39591
|
request: lastSubmissionRequest,
|
|
@@ -39617,8 +39622,8 @@ function capturedArtifactLabels(artifacts) {
|
|
|
39617
39622
|
});
|
|
39618
39623
|
return labels;
|
|
39619
39624
|
}
|
|
39620
|
-
function SubmittingScreen(
|
|
39621
|
-
var text =
|
|
39625
|
+
function SubmittingScreen(_ref3) {
|
|
39626
|
+
var text = _ref3.text;
|
|
39622
39627
|
return jsx(OrbStatusScreen, {
|
|
39623
39628
|
state: "working",
|
|
39624
39629
|
text: text,
|
|
@@ -40377,7 +40382,7 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40377
40382
|
}
|
|
40378
40383
|
|
|
40379
40384
|
var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
|
|
40380
|
-
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
|
|
40385
|
+
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
|
|
40381
40386
|
function FlowChassis(_ref) {
|
|
40382
40387
|
var client = _ref.client,
|
|
40383
40388
|
action = _ref.action,
|
|
@@ -40394,6 +40399,7 @@ function FlowChassis(_ref) {
|
|
|
40394
40399
|
loadingSpinner = _ref.loadingSpinner,
|
|
40395
40400
|
_ref$showEnrollmentId = _ref.showEnrollmentId,
|
|
40396
40401
|
showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
|
|
40402
|
+
lang = _ref.lang,
|
|
40397
40403
|
children = _ref.children,
|
|
40398
40404
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
40399
40405
|
var geolocation = useGeolocation(geolocationEnabled);
|
|
@@ -40403,26 +40409,29 @@ function FlowChassis(_ref) {
|
|
|
40403
40409
|
client: client,
|
|
40404
40410
|
children: [jsx(RemoteDiagnosticsMount, {
|
|
40405
40411
|
remoteDiagnostics: remoteDiagnostics
|
|
40406
|
-
}), jsx(
|
|
40407
|
-
|
|
40408
|
-
children: jsx(
|
|
40409
|
-
|
|
40410
|
-
children: jsx(
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40415
|
-
|
|
40416
|
-
|
|
40417
|
-
|
|
40418
|
-
|
|
40419
|
-
|
|
40420
|
-
|
|
40421
|
-
|
|
40422
|
-
|
|
40412
|
+
}), jsx(SdkLanguageProvider, {
|
|
40413
|
+
lang: lang,
|
|
40414
|
+
children: jsx(ThemeProvider, {
|
|
40415
|
+
theme: theme,
|
|
40416
|
+
children: jsx(LoadingSpinnerProvider, {
|
|
40417
|
+
spinner: loadingSpinner,
|
|
40418
|
+
children: jsx(SubmissionProvider, _extends({
|
|
40419
|
+
client: client,
|
|
40420
|
+
action: action,
|
|
40421
|
+
options: submission,
|
|
40422
|
+
geolocation: geolocation.position
|
|
40423
|
+
}, callbacks, {
|
|
40424
|
+
children: jsx(FlowPage, {
|
|
40425
|
+
className: className,
|
|
40426
|
+
enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
|
|
40427
|
+
children: jsx(AuthGate, {
|
|
40428
|
+
children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
|
|
40429
|
+
onRetry: geolocation.retry
|
|
40430
|
+
}) : children
|
|
40431
|
+
})
|
|
40423
40432
|
})
|
|
40424
|
-
})
|
|
40425
|
-
})
|
|
40433
|
+
}))
|
|
40434
|
+
})
|
|
40426
40435
|
})
|
|
40427
40436
|
})]
|
|
40428
40437
|
})
|
|
@@ -40582,6 +40591,26 @@ function impliedSkipSuccessScreen(explicit, introActive) {
|
|
|
40582
40591
|
return explicit != null ? explicit : introActive;
|
|
40583
40592
|
}
|
|
40584
40593
|
|
|
40594
|
+
/**
|
|
40595
|
+
* A step bag with the flow's settings filled in wherever the step leaves them
|
|
40596
|
+
* unset: `step ?? flow`, key by key. The step's own value always wins, an
|
|
40597
|
+
* explicit `false` included, so a flow-wide setting never overrides a step.
|
|
40598
|
+
*
|
|
40599
|
+
* `flow` is typed against the step bag, so a setting the step has no prop for
|
|
40600
|
+
* (`debugMode` on the signature step, say) fails to compile instead of being
|
|
40601
|
+
* forwarded to a component that ignores it.
|
|
40602
|
+
*/
|
|
40603
|
+
function inheritFlowSettings(step, flow) {
|
|
40604
|
+
var inherited = {};
|
|
40605
|
+
for (var key in flow) {
|
|
40606
|
+
if (!Object.prototype.hasOwnProperty.call(flow, key)) continue;
|
|
40607
|
+
if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
|
|
40608
|
+
inherited[key] = flow[key];
|
|
40609
|
+
}
|
|
40610
|
+
}
|
|
40611
|
+
return _extends({}, step, inherited);
|
|
40612
|
+
}
|
|
40613
|
+
|
|
40585
40614
|
function buildRingScreenProps(_ref) {
|
|
40586
40615
|
var ringMode = _ref.ringMode,
|
|
40587
40616
|
finishingVerbiage = _ref.finishingVerbiage,
|
|
@@ -40710,7 +40739,7 @@ function withVirtualCameras(camera, allowVirtualCameras) {
|
|
|
40710
40739
|
return base;
|
|
40711
40740
|
}
|
|
40712
40741
|
|
|
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"];
|
|
40742
|
+
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
40743
|
var EMPTY_ID_CAPTURE$3 = {};
|
|
40715
40744
|
var EMPTY_SIGNATURE_CAPTURE$5 = {};
|
|
40716
40745
|
var EMPTY_ID_VIEW$3 = {};
|
|
@@ -40722,7 +40751,7 @@ function IdValidationFlow(_ref) {
|
|
|
40722
40751
|
_ref$capture = _ref.capture,
|
|
40723
40752
|
capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
|
|
40724
40753
|
_ref$view = _ref.view,
|
|
40725
|
-
|
|
40754
|
+
viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
|
|
40726
40755
|
_ref$submission = _ref.submission,
|
|
40727
40756
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
|
|
40728
40757
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -40732,14 +40761,17 @@ function IdValidationFlow(_ref) {
|
|
|
40732
40761
|
signatureController = _ref.signatureController,
|
|
40733
40762
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
40734
40763
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
|
|
40735
|
-
|
|
40764
|
+
signatureViewProp = _ref.signatureView,
|
|
40736
40765
|
captureSignature = _ref.captureSignature,
|
|
40737
40766
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
40738
40767
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
40739
40768
|
theme = _ref.theme,
|
|
40740
40769
|
className = _ref.className,
|
|
40741
|
-
|
|
40742
|
-
|
|
40770
|
+
lang = _ref.lang,
|
|
40771
|
+
debugMode = _ref.debugMode,
|
|
40772
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40773
|
+
showResultScreen = _ref.showResultScreen,
|
|
40774
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
40743
40775
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
40744
40776
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
40745
40777
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -40751,6 +40783,23 @@ function IdValidationFlow(_ref) {
|
|
|
40751
40783
|
onSubmitted = _ref.onSubmitted,
|
|
40752
40784
|
children = _ref.children,
|
|
40753
40785
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
40786
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
40787
|
+
var _useMemo = useMemo(function () {
|
|
40788
|
+
return {
|
|
40789
|
+
view: inheritFlowSettings(viewProp, {
|
|
40790
|
+
lang: lang,
|
|
40791
|
+
debugMode: debugMode,
|
|
40792
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40793
|
+
}),
|
|
40794
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
40795
|
+
lang: lang,
|
|
40796
|
+
showCaptureDiagnostics: debugMode,
|
|
40797
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40798
|
+
})
|
|
40799
|
+
};
|
|
40800
|
+
}, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
40801
|
+
view = _useMemo.view,
|
|
40802
|
+
signatureView = _useMemo.signatureView;
|
|
40754
40803
|
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40755
40804
|
capture: capture,
|
|
40756
40805
|
signatureCapture: signatureCapture
|
|
@@ -40872,13 +40921,14 @@ function IdValidationFlow(_ref) {
|
|
|
40872
40921
|
action: SubmissionAction.VALIDATE,
|
|
40873
40922
|
submission: submission,
|
|
40874
40923
|
theme: theme,
|
|
40875
|
-
className: className
|
|
40924
|
+
className: className,
|
|
40925
|
+
lang: lang
|
|
40876
40926
|
}, callbacks, {
|
|
40877
40927
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
40878
40928
|
steps: steps,
|
|
40879
40929
|
initialArtifacts: initialArtifacts,
|
|
40880
40930
|
captureOnly: captureOnly,
|
|
40881
|
-
|
|
40931
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
40882
40932
|
showDiagnostics: showDiagnostics,
|
|
40883
40933
|
onArtifactsCollected: onCaptured,
|
|
40884
40934
|
onSubmitted: onSubmitted
|
|
@@ -40897,13 +40947,16 @@ function FaceValidationFlow(_ref) {
|
|
|
40897
40947
|
_ref$capture = _ref.capture,
|
|
40898
40948
|
capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
|
|
40899
40949
|
_ref$view = _ref.view,
|
|
40900
|
-
|
|
40950
|
+
viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
|
|
40901
40951
|
_ref$submission = _ref.submission,
|
|
40902
40952
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
|
|
40903
40953
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
40904
40954
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
|
|
40905
40955
|
theme = _ref.theme,
|
|
40906
40956
|
className = _ref.className,
|
|
40957
|
+
lang = _ref.lang,
|
|
40958
|
+
debugMode = _ref.debugMode,
|
|
40959
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40907
40960
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
40908
40961
|
geolocationRequired = _ref.geolocationRequired,
|
|
40909
40962
|
captureProgress = _ref.captureProgress,
|
|
@@ -40912,6 +40965,14 @@ function FaceValidationFlow(_ref) {
|
|
|
40912
40965
|
onCaptured = _ref.onCaptured,
|
|
40913
40966
|
onCaptureError = _ref.onCaptureError,
|
|
40914
40967
|
children = _ref.children;
|
|
40968
|
+
// Flow-wide settings reach the step unless its own bag sets them.
|
|
40969
|
+
var view = useMemo(function () {
|
|
40970
|
+
return inheritFlowSettings(viewProp, {
|
|
40971
|
+
lang: lang,
|
|
40972
|
+
debugMode: debugMode,
|
|
40973
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40974
|
+
});
|
|
40975
|
+
}, [debugMode, lang, skipSuccessScreen, viewProp]);
|
|
40915
40976
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
40916
40977
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
40917
40978
|
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -40972,6 +41033,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40972
41033
|
submission: submission,
|
|
40973
41034
|
theme: theme,
|
|
40974
41035
|
className: className,
|
|
41036
|
+
lang: lang,
|
|
40975
41037
|
geolocationEnabled: geolocationEnabled,
|
|
40976
41038
|
geolocationRequired: geolocationRequired,
|
|
40977
41039
|
captureProgress: captureProgress,
|
|
@@ -40986,7 +41048,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40986
41048
|
});
|
|
40987
41049
|
}
|
|
40988
41050
|
|
|
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"],
|
|
41051
|
+
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
41052
|
_excluded2$3 = ["checkLivenessOptions"];
|
|
40991
41053
|
var EMPTY_ID_CAPTURE$2 = {};
|
|
40992
41054
|
var EMPTY_FACE_CAPTURE$4 = {};
|
|
@@ -41008,10 +41070,10 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41008
41070
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41009
41071
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
|
|
41010
41072
|
_ref$idView = _ref.idView,
|
|
41011
|
-
|
|
41073
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
|
|
41012
41074
|
_ref$faceView = _ref.faceView,
|
|
41013
|
-
|
|
41014
|
-
|
|
41075
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
|
|
41076
|
+
signatureViewProp = _ref.signatureView,
|
|
41015
41077
|
captureSignature = _ref.captureSignature,
|
|
41016
41078
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41017
41079
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41021,8 +41083,11 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41021
41083
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
|
|
41022
41084
|
theme = _ref.theme,
|
|
41023
41085
|
className = _ref.className,
|
|
41024
|
-
|
|
41025
|
-
|
|
41086
|
+
lang = _ref.lang,
|
|
41087
|
+
debugMode = _ref.debugMode,
|
|
41088
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41089
|
+
showResultScreen = _ref.showResultScreen,
|
|
41090
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41026
41091
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41027
41092
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41028
41093
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41036,6 +41101,26 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41036
41101
|
onStepCompleted = _ref.onStepCompleted,
|
|
41037
41102
|
children = _ref.children,
|
|
41038
41103
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
41104
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41105
|
+
var _useMemo = useMemo(function () {
|
|
41106
|
+
var settings = {
|
|
41107
|
+
lang: lang,
|
|
41108
|
+
debugMode: debugMode,
|
|
41109
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41110
|
+
};
|
|
41111
|
+
return {
|
|
41112
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41113
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41114
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41115
|
+
lang: lang,
|
|
41116
|
+
showCaptureDiagnostics: debugMode,
|
|
41117
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41118
|
+
})
|
|
41119
|
+
};
|
|
41120
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41121
|
+
idView = _useMemo.idView,
|
|
41122
|
+
faceView = _useMemo.faceView,
|
|
41123
|
+
signatureView = _useMemo.signatureView;
|
|
41039
41124
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41040
41125
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
41041
41126
|
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41206,12 +41291,13 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41206
41291
|
action: SubmissionAction.VALIDATE,
|
|
41207
41292
|
submission: submission,
|
|
41208
41293
|
theme: theme,
|
|
41209
|
-
className: className
|
|
41294
|
+
className: className,
|
|
41295
|
+
lang: lang
|
|
41210
41296
|
}, callbacks, {
|
|
41211
41297
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41212
41298
|
steps: steps,
|
|
41213
41299
|
initialArtifacts: initialArtifacts,
|
|
41214
|
-
|
|
41300
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41215
41301
|
showDiagnostics: showDiagnostics,
|
|
41216
41302
|
onSubmitted: onSubmitted,
|
|
41217
41303
|
onStepStarted: onStepStarted,
|
|
@@ -41266,9 +41352,9 @@ function SignatureKYCFlow(_ref) {
|
|
|
41266
41352
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41267
41353
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
|
|
41268
41354
|
_ref$faceView = _ref.faceView,
|
|
41269
|
-
|
|
41355
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
|
|
41270
41356
|
_ref$signatureView = _ref.signatureView,
|
|
41271
|
-
|
|
41357
|
+
signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
|
|
41272
41358
|
challengeResponse = _ref.challengeResponse,
|
|
41273
41359
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
41274
41360
|
_ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
|
|
@@ -41294,6 +41380,8 @@ function SignatureKYCFlow(_ref) {
|
|
|
41294
41380
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
|
|
41295
41381
|
theme = _ref.theme,
|
|
41296
41382
|
className = _ref.className,
|
|
41383
|
+
lang = _ref.lang,
|
|
41384
|
+
debugMode = _ref.debugMode,
|
|
41297
41385
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
41298
41386
|
geolocationRequired = _ref.geolocationRequired,
|
|
41299
41387
|
captureProgress = _ref.captureProgress,
|
|
@@ -41301,6 +41389,22 @@ function SignatureKYCFlow(_ref) {
|
|
|
41301
41389
|
loadingSpinner = _ref.loadingSpinner,
|
|
41302
41390
|
onCaptured = _ref.onCaptured,
|
|
41303
41391
|
onCaptureError = _ref.onCaptureError;
|
|
41392
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41393
|
+
var _useMemo = useMemo(function () {
|
|
41394
|
+
return {
|
|
41395
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
41396
|
+
lang: lang,
|
|
41397
|
+
debugMode: debugMode
|
|
41398
|
+
}),
|
|
41399
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41400
|
+
lang: lang,
|
|
41401
|
+
showCaptureDiagnostics: debugMode,
|
|
41402
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41403
|
+
})
|
|
41404
|
+
};
|
|
41405
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41406
|
+
faceView = _useMemo.faceView,
|
|
41407
|
+
signatureView = _useMemo.signatureView;
|
|
41304
41408
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41305
41409
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
41306
41410
|
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41311,7 +41415,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41311
41415
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41312
41416
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
41313
41417
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
41314
|
-
var legacyVideoLayout = (_signatureView$legacy = signatureView
|
|
41418
|
+
var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
|
|
41315
41419
|
var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
|
|
41316
41420
|
var sharedVideoRef = useRef(null);
|
|
41317
41421
|
var _useState = useState(null),
|
|
@@ -41495,6 +41599,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41495
41599
|
submission: submission,
|
|
41496
41600
|
theme: theme,
|
|
41497
41601
|
className: className,
|
|
41602
|
+
lang: lang,
|
|
41498
41603
|
geolocationEnabled: geolocationEnabled,
|
|
41499
41604
|
geolocationRequired: geolocationRequired,
|
|
41500
41605
|
captureProgress: captureProgress,
|
|
@@ -41504,7 +41609,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41504
41609
|
completed: stage === 'complete'
|
|
41505
41610
|
}), stage !== 'complete' ? jsxs(HandoffRoot, {
|
|
41506
41611
|
children: [jsx(SignatureCaptureView, _extends({}, signatureView, {
|
|
41507
|
-
skipSuccessScreen: impliedSkipSuccessScreen(
|
|
41612
|
+
skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
|
|
41508
41613
|
controller: resolvedSignatureController,
|
|
41509
41614
|
sessionReady: renderedStage === 'signature-capture',
|
|
41510
41615
|
videoRef: sharedVideoRef,
|
|
@@ -41602,7 +41707,7 @@ var FaceStage = styled.div(_templateObject2 || (_templateObject2 = _taggedTempla
|
|
|
41602
41707
|
return props.$visible ? 'block' : 'none';
|
|
41603
41708
|
});
|
|
41604
41709
|
|
|
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"],
|
|
41710
|
+
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
41711
|
_excluded2$2 = ["checkLivenessOptions"];
|
|
41607
41712
|
var EMPTY_ID_CAPTURE$1 = {};
|
|
41608
41713
|
var EMPTY_FACE_CAPTURE$2 = {};
|
|
@@ -41626,11 +41731,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41626
41731
|
_ref$capture = _ref.capture,
|
|
41627
41732
|
capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
|
|
41628
41733
|
_ref$idView = _ref.idView,
|
|
41629
|
-
|
|
41734
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
|
|
41630
41735
|
_ref$faceView = _ref.faceView,
|
|
41631
|
-
|
|
41736
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
|
|
41632
41737
|
_ref$view = _ref.view,
|
|
41633
|
-
|
|
41738
|
+
viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
|
|
41634
41739
|
_ref$submission = _ref.submission,
|
|
41635
41740
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
|
|
41636
41741
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -41640,7 +41745,7 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41640
41745
|
signatureController = _ref.signatureController,
|
|
41641
41746
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41642
41747
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
|
|
41643
|
-
|
|
41748
|
+
signatureViewProp = _ref.signatureView,
|
|
41644
41749
|
captureSignature = _ref.captureSignature,
|
|
41645
41750
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41646
41751
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41652,8 +41757,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41652
41757
|
onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
|
|
41653
41758
|
theme = _ref.theme,
|
|
41654
41759
|
className = _ref.className,
|
|
41655
|
-
|
|
41656
|
-
|
|
41760
|
+
lang = _ref.lang,
|
|
41761
|
+
debugMode = _ref.debugMode,
|
|
41762
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41763
|
+
showResultScreen = _ref.showResultScreen,
|
|
41764
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41657
41765
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41658
41766
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41659
41767
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41666,6 +41774,31 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41666
41774
|
onCaptureError = _ref.onCaptureError,
|
|
41667
41775
|
children = _ref.children,
|
|
41668
41776
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
41777
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41778
|
+
var _useMemo = useMemo(function () {
|
|
41779
|
+
var settings = {
|
|
41780
|
+
lang: lang,
|
|
41781
|
+
debugMode: debugMode,
|
|
41782
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41783
|
+
};
|
|
41784
|
+
return {
|
|
41785
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41786
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41787
|
+
view: inheritFlowSettings(viewProp, {
|
|
41788
|
+
lang: lang,
|
|
41789
|
+
debugMode: debugMode
|
|
41790
|
+
}),
|
|
41791
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41792
|
+
lang: lang,
|
|
41793
|
+
showCaptureDiagnostics: debugMode,
|
|
41794
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41795
|
+
})
|
|
41796
|
+
};
|
|
41797
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
41798
|
+
idView = _useMemo.idView,
|
|
41799
|
+
faceView = _useMemo.faceView,
|
|
41800
|
+
view = _useMemo.view,
|
|
41801
|
+
signatureView = _useMemo.signatureView;
|
|
41669
41802
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41670
41803
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
|
|
41671
41804
|
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41831,13 +41964,14 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41831
41964
|
action: action,
|
|
41832
41965
|
submission: submission,
|
|
41833
41966
|
theme: theme,
|
|
41834
|
-
className: className
|
|
41967
|
+
className: className,
|
|
41968
|
+
lang: lang
|
|
41835
41969
|
}, callbacks, {
|
|
41836
41970
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41837
41971
|
steps: steps,
|
|
41838
41972
|
initialArtifacts: initialArtifacts,
|
|
41839
41973
|
captureOnly: captureOnly,
|
|
41840
|
-
|
|
41974
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41841
41975
|
showDiagnostics: showDiagnostics,
|
|
41842
41976
|
onArtifactsCollected: onCaptured,
|
|
41843
41977
|
onSubmitted: onSubmitted
|
|
@@ -44680,7 +44814,7 @@ function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
|
44680
44814
|
};
|
|
44681
44815
|
}
|
|
44682
44816
|
|
|
44683
|
-
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44817
|
+
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44684
44818
|
var EMPTY_DOCUMENTS = [];
|
|
44685
44819
|
var EMPTY_CAPTURE$1 = {};
|
|
44686
44820
|
var EMPTY_VIEW$2 = {};
|
|
@@ -44701,6 +44835,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44701
44835
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
|
|
44702
44836
|
theme = _ref.theme,
|
|
44703
44837
|
className = _ref.className,
|
|
44838
|
+
lang = _ref.lang,
|
|
44839
|
+
debugMode = _ref.debugMode,
|
|
44704
44840
|
onDocumentCaptured = _ref.onDocumentCaptured,
|
|
44705
44841
|
onDocumentUploaded = _ref.onDocumentUploaded,
|
|
44706
44842
|
onComplete = _ref.onComplete,
|
|
@@ -44797,8 +44933,11 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44797
44933
|
var steps = useMemo(function () {
|
|
44798
44934
|
return [buildDocumentCaptureStep(resolvedController, _extends({
|
|
44799
44935
|
documents: documents
|
|
44800
|
-
}, view
|
|
44801
|
-
|
|
44936
|
+
}, inheritFlowSettings(view, {
|
|
44937
|
+
lang: lang,
|
|
44938
|
+
debugMode: debugMode
|
|
44939
|
+
})))];
|
|
44940
|
+
}, [debugMode, documents, lang, resolvedController, view]);
|
|
44802
44941
|
var onArtifactsCollected = useCallback(function () {
|
|
44803
44942
|
// captureOnly hands the (empty) artifacts back here; completion is reported
|
|
44804
44943
|
// through onComplete with the documents instead.
|
|
@@ -44808,7 +44947,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44808
44947
|
action: SubmissionAction.NONE,
|
|
44809
44948
|
submission: submission,
|
|
44810
44949
|
theme: theme,
|
|
44811
|
-
className: className
|
|
44950
|
+
className: className,
|
|
44951
|
+
lang: lang
|
|
44812
44952
|
}, callbacks, {
|
|
44813
44953
|
children: [jsx(CompositeWizard, {
|
|
44814
44954
|
steps: steps,
|
|
@@ -44819,7 +44959,7 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44819
44959
|
}));
|
|
44820
44960
|
}
|
|
44821
44961
|
|
|
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"],
|
|
44962
|
+
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
44963
|
_excluded2$1 = ["checkLivenessOptions"];
|
|
44824
44964
|
var EMPTY_FACE_CAPTURE$1 = {};
|
|
44825
44965
|
var EMPTY_SIGNATURE_CAPTURE$1 = {};
|
|
@@ -44836,8 +44976,8 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44836
44976
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
44837
44977
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
|
|
44838
44978
|
_ref$faceView = _ref.faceView,
|
|
44839
|
-
|
|
44840
|
-
|
|
44979
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
|
|
44980
|
+
signatureViewProp = _ref.signatureView,
|
|
44841
44981
|
captureSignature = _ref.captureSignature,
|
|
44842
44982
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
44843
44983
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -44845,8 +44985,11 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44845
44985
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
|
|
44846
44986
|
theme = _ref.theme,
|
|
44847
44987
|
className = _ref.className,
|
|
44848
|
-
|
|
44849
|
-
|
|
44988
|
+
lang = _ref.lang,
|
|
44989
|
+
debugMode = _ref.debugMode,
|
|
44990
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
44991
|
+
showResultScreen = _ref.showResultScreen,
|
|
44992
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
44850
44993
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
44851
44994
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
44852
44995
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -44858,6 +45001,23 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44858
45001
|
onCaptureError = _ref.onCaptureError,
|
|
44859
45002
|
children = _ref.children,
|
|
44860
45003
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
45004
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45005
|
+
var _useMemo = useMemo(function () {
|
|
45006
|
+
return {
|
|
45007
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
45008
|
+
lang: lang,
|
|
45009
|
+
debugMode: debugMode,
|
|
45010
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45011
|
+
}),
|
|
45012
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45013
|
+
lang: lang,
|
|
45014
|
+
showCaptureDiagnostics: debugMode,
|
|
45015
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45016
|
+
})
|
|
45017
|
+
};
|
|
45018
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
45019
|
+
faceView = _useMemo.faceView,
|
|
45020
|
+
signatureView = _useMemo.signatureView;
|
|
44861
45021
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44862
45022
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
44863
45023
|
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -44989,19 +45149,20 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44989
45149
|
submission: submission,
|
|
44990
45150
|
showEnrollmentId: showDiagnostics,
|
|
44991
45151
|
theme: theme,
|
|
44992
|
-
className: className
|
|
45152
|
+
className: className,
|
|
45153
|
+
lang: lang
|
|
44993
45154
|
}, callbacks, {
|
|
44994
45155
|
children: [jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
44995
45156
|
steps: steps,
|
|
44996
45157
|
initialArtifacts: initialArtifacts,
|
|
44997
|
-
|
|
45158
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
44998
45159
|
showDiagnostics: showDiagnostics,
|
|
44999
45160
|
onSubmitted: onSubmitted
|
|
45000
45161
|
})), children]
|
|
45001
45162
|
}));
|
|
45002
45163
|
}
|
|
45003
45164
|
|
|
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"],
|
|
45165
|
+
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
45166
|
_excluded2 = ["checkLivenessOptions"];
|
|
45006
45167
|
var EMPTY_ID_CAPTURE = {};
|
|
45007
45168
|
var EMPTY_FACE_CAPTURE = {};
|
|
@@ -45034,11 +45195,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45034
45195
|
_ref$videoIdCapture = _ref.videoIdCapture,
|
|
45035
45196
|
videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
|
|
45036
45197
|
_ref$idView = _ref.idView,
|
|
45037
|
-
|
|
45198
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
|
|
45038
45199
|
_ref$faceView = _ref.faceView,
|
|
45039
|
-
|
|
45040
|
-
|
|
45041
|
-
|
|
45200
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
|
|
45201
|
+
signatureViewProp = _ref.signatureView,
|
|
45202
|
+
videoIdViewProp = _ref.videoIdView,
|
|
45042
45203
|
captureSignature = _ref.captureSignature,
|
|
45043
45204
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
45044
45205
|
_ref$captureVideoId = _ref.captureVideoId,
|
|
@@ -45048,8 +45209,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45048
45209
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
|
|
45049
45210
|
theme = _ref.theme,
|
|
45050
45211
|
className = _ref.className,
|
|
45051
|
-
|
|
45052
|
-
|
|
45212
|
+
lang = _ref.lang,
|
|
45213
|
+
debugMode = _ref.debugMode,
|
|
45214
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
45215
|
+
showResultScreen = _ref.showResultScreen,
|
|
45216
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
45053
45217
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
45054
45218
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
45055
45219
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -45061,7 +45225,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45061
45225
|
onCaptureError = _ref.onCaptureError,
|
|
45062
45226
|
children = _ref.children,
|
|
45063
45227
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
45064
|
-
|
|
45228
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45229
|
+
var _useMemo = useMemo(function () {
|
|
45230
|
+
var settings = {
|
|
45231
|
+
lang: lang,
|
|
45232
|
+
debugMode: debugMode,
|
|
45233
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45234
|
+
};
|
|
45235
|
+
return {
|
|
45236
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
45237
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
45238
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45239
|
+
lang: lang,
|
|
45240
|
+
showCaptureDiagnostics: debugMode,
|
|
45241
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45242
|
+
}),
|
|
45243
|
+
videoIdView: inheritFlowSettings(videoIdViewProp, {
|
|
45244
|
+
lang: lang,
|
|
45245
|
+
debugMode: debugMode
|
|
45246
|
+
})
|
|
45247
|
+
};
|
|
45248
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
|
|
45249
|
+
idView = _useMemo.idView,
|
|
45250
|
+
faceView = _useMemo.faceView,
|
|
45251
|
+
signatureView = _useMemo.signatureView,
|
|
45252
|
+
videoIdView = _useMemo.videoIdView;
|
|
45065
45253
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
45066
45254
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
|
|
45067
45255
|
useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -45277,26 +45465,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45277
45465
|
submission: submission,
|
|
45278
45466
|
showEnrollmentId: showDiagnostics,
|
|
45279
45467
|
theme: theme,
|
|
45280
|
-
className: className
|
|
45468
|
+
className: className,
|
|
45469
|
+
lang: lang
|
|
45281
45470
|
}, callbacks, {
|
|
45282
45471
|
children: [steps ? jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
45283
45472
|
steps: steps,
|
|
45284
45473
|
initialArtifacts: initialArtifacts,
|
|
45285
|
-
|
|
45474
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
45286
45475
|
showDiagnostics: showDiagnostics,
|
|
45287
45476
|
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]
|
|
45477
|
+
})) : jsx(PreparingScreen, {}), children]
|
|
45298
45478
|
}));
|
|
45299
45479
|
}
|
|
45480
|
+
/** Translated inside the chassis, so the flow's `lang` reaches it. */
|
|
45481
|
+
function PreparingScreen() {
|
|
45482
|
+
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
45483
|
+
// `loadingStage` is what enables the customer's `loadingSpinner`: without it
|
|
45484
|
+
// OrbStatusScreen hard-renders the orb, so this was the one loading surface
|
|
45485
|
+
// in the SDK that ignored a supplied component outright — in the flow whose
|
|
45486
|
+
// double-loader prompted the fix.
|
|
45487
|
+
return jsx(OrbStatusScreen, {
|
|
45488
|
+
state: "solving",
|
|
45489
|
+
text: preparing.preparingText,
|
|
45490
|
+
loadingStage: "preparing"
|
|
45491
|
+
});
|
|
45492
|
+
}
|
|
45300
45493
|
|
|
45301
45494
|
var ALLOWED_MISMATCH_RETRIES$1 = 0;
|
|
45302
45495
|
var MAX_LIVENESS_ATTEMPTS$1 = 3;
|
|
@@ -45964,6 +46157,8 @@ function CustomerMatchFlow(_ref) {
|
|
|
45964
46157
|
view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
|
|
45965
46158
|
theme = _ref.theme,
|
|
45966
46159
|
className = _ref.className,
|
|
46160
|
+
lang = _ref.lang,
|
|
46161
|
+
debugMode = _ref.debugMode,
|
|
45967
46162
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
45968
46163
|
geolocationRequired = _ref.geolocationRequired,
|
|
45969
46164
|
remoteDiagnostics = _ref.remoteDiagnostics,
|
|
@@ -46026,7 +46221,10 @@ function CustomerMatchFlow(_ref) {
|
|
|
46026
46221
|
// Only the auto-continue half applies here: the plain SelfieCaptureView has
|
|
46027
46222
|
// no capture review screen to skip (that is FaceLivenessView's), and this
|
|
46028
46223
|
// flow's own terminal screens are governed by `skipSuccessScreen` below.
|
|
46029
|
-
var resolvedView = _extends({}, view, {
|
|
46224
|
+
var resolvedView = _extends({}, inheritFlowSettings(view, {
|
|
46225
|
+
lang: lang,
|
|
46226
|
+
debugMode: debugMode
|
|
46227
|
+
}), {
|
|
46030
46228
|
autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
|
|
46031
46229
|
});
|
|
46032
46230
|
// Reset during render, not in an effect: an auto-requesting capture stage
|
|
@@ -46121,6 +46319,7 @@ function CustomerMatchFlow(_ref) {
|
|
|
46121
46319
|
submission: submission,
|
|
46122
46320
|
theme: theme,
|
|
46123
46321
|
className: className,
|
|
46322
|
+
lang: lang,
|
|
46124
46323
|
geolocationEnabled: geolocationEnabled,
|
|
46125
46324
|
geolocationRequired: geolocationRequired,
|
|
46126
46325
|
remoteDiagnostics: remoteDiagnostics,
|
|
@@ -47860,7 +48059,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47860
48059
|
// post-submission diagnostics page on this one flag
|
|
47861
48060
|
// (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
|
|
47862
48061
|
// here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
|
|
47863
|
-
// while the terminal page needs `
|
|
48062
|
+
// while the terminal page needs `showResultScreen` to render at all and
|
|
47864
48063
|
// `showDiagnostics` to include the request/response bodies. Mapping only
|
|
47865
48064
|
// the first left `debugMode` customers on a blank screen after submitting,
|
|
47866
48065
|
// because CompositeWizard falls through to `return null`.
|
|
@@ -47868,7 +48067,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47868
48067
|
// Both take the same flag: sdk2's page showed the response body (behind a
|
|
47869
48068
|
// toggle) whenever debugMode was on, so gating diagnostics separately here
|
|
47870
48069
|
// would be a NEW restriction, not parity.
|
|
47871
|
-
|
|
48070
|
+
showResultScreen: props.debugMode,
|
|
47872
48071
|
showDiagnostics: props.debugMode,
|
|
47873
48072
|
// `onSubmit` is NOT mapped to a flow prop: it goes to the client config
|
|
47874
48073
|
// (see mapClientConfig), which is the layer sdk2 put it at and the only
|
|
@@ -48049,7 +48248,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
|
|
|
48049
48248
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48050
48249
|
loadingSpinner: props.loadingSpinner,
|
|
48051
48250
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48052
|
-
|
|
48251
|
+
showResultScreen: props.debugMode,
|
|
48053
48252
|
showDiagnostics: props.debugMode,
|
|
48054
48253
|
onStepStarted: emit ? function (stepId) {
|
|
48055
48254
|
var stage = journeyStageForStepId(stepId);
|
|
@@ -48171,7 +48370,7 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
48171
48370
|
// both the boolean and async callback forms at the flow-level seam.
|
|
48172
48371
|
//
|
|
48173
48372
|
// `debugMode` forces it back on, completing the fold mapIdValidationProps
|
|
48174
|
-
// does with `
|
|
48373
|
+
// does with `showResultScreen`/`showDiagnostics`: the capture readout
|
|
48175
48374
|
// renders INSIDE the review, so a consumer who skips the review and turns
|
|
48176
48375
|
// debugMode on would otherwise get the switch with nowhere for it to show
|
|
48177
48376
|
// — silently, in the one configuration it exists for.
|
|
@@ -48342,7 +48541,7 @@ function mapVideoIdValidationProps(props, ctx) {
|
|
|
48342
48541
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48343
48542
|
loadingSpinner: props.loadingSpinner,
|
|
48344
48543
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48345
|
-
|
|
48544
|
+
showResultScreen: props.debugMode,
|
|
48346
48545
|
showDiagnostics: props.debugMode,
|
|
48347
48546
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48348
48547
|
onRequestFailure: props.onRequestFailure,
|
|
@@ -48573,7 +48772,7 @@ function mapCustomerBiometricsEnrollmentProps(props, ctx) {
|
|
|
48573
48772
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48574
48773
|
loadingSpinner: props.loadingSpinner,
|
|
48575
48774
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48576
|
-
|
|
48775
|
+
showResultScreen: props.debugMode,
|
|
48577
48776
|
showDiagnostics: props.debugMode,
|
|
48578
48777
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48579
48778
|
// sdk2's enrollment twin of `onApproved`.
|
|
@@ -48666,7 +48865,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48666
48865
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48667
48866
|
loadingSpinner: props.loadingSpinner,
|
|
48668
48867
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48669
|
-
|
|
48868
|
+
showResultScreen: props.debugMode,
|
|
48670
48869
|
showDiagnostics: props.debugMode,
|
|
48671
48870
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48672
48871
|
onApproved: withSubmissionRequest(props.onEnrolled, ctx),
|
|
@@ -48676,7 +48875,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48676
48875
|
});
|
|
48677
48876
|
}
|
|
48678
48877
|
|
|
48679
|
-
var webSdkVersion = '2.6.3-t3code-
|
|
48878
|
+
var webSdkVersion = '2.6.3-t3code-shared-flow-settings-e5702c2';
|
|
48680
48879
|
|
|
48681
48880
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48682
48881
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|