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
|
@@ -39433,15 +39433,15 @@ var Root = styledComponents.styled.div(_templateObject$2 || (_templateObject$2 =
|
|
|
39433
39433
|
var Label = styledComponents.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"])));
|
|
39434
39434
|
|
|
39435
39435
|
function CompositeWizard(_ref) {
|
|
39436
|
-
var _successScreen$isAppr;
|
|
39436
|
+
var _successScreen$isAppr, _ref2;
|
|
39437
39437
|
var steps = _ref.steps,
|
|
39438
39438
|
sessionReadyProp = _ref.sessionReady,
|
|
39439
39439
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
39440
39440
|
initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
|
|
39441
39441
|
_ref$captureOnly = _ref.captureOnly,
|
|
39442
39442
|
captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
|
|
39443
|
-
|
|
39444
|
-
showSuccessScreen = _ref
|
|
39443
|
+
showResultScreen = _ref.showResultScreen,
|
|
39444
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
39445
39445
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
39446
39446
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
39447
39447
|
successClassNames = _ref.successClassNames,
|
|
@@ -39591,7 +39591,7 @@ function CompositeWizard(_ref) {
|
|
|
39591
39591
|
classNames: successScreen.classNames
|
|
39592
39592
|
});
|
|
39593
39593
|
}
|
|
39594
|
-
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
|
|
39594
|
+
if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
|
|
39595
39595
|
return jsxRuntime.jsx(SubmissionSuccess, {
|
|
39596
39596
|
response: submissionResponse,
|
|
39597
39597
|
request: lastSubmissionRequest,
|
|
@@ -39628,8 +39628,8 @@ function capturedArtifactLabels(artifacts) {
|
|
|
39628
39628
|
});
|
|
39629
39629
|
return labels;
|
|
39630
39630
|
}
|
|
39631
|
-
function SubmittingScreen(
|
|
39632
|
-
var text =
|
|
39631
|
+
function SubmittingScreen(_ref3) {
|
|
39632
|
+
var text = _ref3.text;
|
|
39633
39633
|
return jsxRuntime.jsx(OrbStatusScreen, {
|
|
39634
39634
|
state: "working",
|
|
39635
39635
|
text: text,
|
|
@@ -40388,7 +40388,7 @@ function RemoteDiagnosticsMount(_ref) {
|
|
|
40388
40388
|
}
|
|
40389
40389
|
|
|
40390
40390
|
var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
|
|
40391
|
-
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
|
|
40391
|
+
var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
|
|
40392
40392
|
function FlowChassis(_ref) {
|
|
40393
40393
|
var client = _ref.client,
|
|
40394
40394
|
action = _ref.action,
|
|
@@ -40405,6 +40405,7 @@ function FlowChassis(_ref) {
|
|
|
40405
40405
|
loadingSpinner = _ref.loadingSpinner,
|
|
40406
40406
|
_ref$showEnrollmentId = _ref.showEnrollmentId,
|
|
40407
40407
|
showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
|
|
40408
|
+
lang = _ref.lang,
|
|
40408
40409
|
children = _ref.children,
|
|
40409
40410
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
40410
40411
|
var geolocation = useGeolocation(geolocationEnabled);
|
|
@@ -40414,33 +40415,45 @@ function FlowChassis(_ref) {
|
|
|
40414
40415
|
client: client,
|
|
40415
40416
|
children: [jsxRuntime.jsx(RemoteDiagnosticsMount, {
|
|
40416
40417
|
remoteDiagnostics: remoteDiagnostics
|
|
40417
|
-
}), jsxRuntime.jsx(
|
|
40418
|
-
|
|
40419
|
-
children: jsxRuntime.jsx(
|
|
40420
|
-
|
|
40421
|
-
children: jsxRuntime.jsx(
|
|
40422
|
-
|
|
40423
|
-
|
|
40424
|
-
|
|
40425
|
-
|
|
40426
|
-
|
|
40427
|
-
|
|
40428
|
-
|
|
40429
|
-
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
|
|
40418
|
+
}), jsxRuntime.jsx(FlowLanguage, {
|
|
40419
|
+
lang: lang,
|
|
40420
|
+
children: jsxRuntime.jsx(ThemeProvider, {
|
|
40421
|
+
theme: theme,
|
|
40422
|
+
children: jsxRuntime.jsx(LoadingSpinnerProvider, {
|
|
40423
|
+
spinner: loadingSpinner,
|
|
40424
|
+
children: jsxRuntime.jsx(SubmissionProvider, _extends({
|
|
40425
|
+
client: client,
|
|
40426
|
+
action: action,
|
|
40427
|
+
options: submission,
|
|
40428
|
+
geolocation: geolocation.position
|
|
40429
|
+
}, callbacks, {
|
|
40430
|
+
children: jsxRuntime.jsx(FlowPage, {
|
|
40431
|
+
className: className,
|
|
40432
|
+
enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
|
|
40433
|
+
children: jsxRuntime.jsx(AuthGate, {
|
|
40434
|
+
children: geolocationRequired && geolocation.blocked ? jsxRuntime.jsx(GeolocationAccessDeniedOverlay, {
|
|
40435
|
+
onRetry: geolocation.retry
|
|
40436
|
+
}) : children
|
|
40437
|
+
})
|
|
40434
40438
|
})
|
|
40435
|
-
})
|
|
40436
|
-
})
|
|
40439
|
+
}))
|
|
40440
|
+
})
|
|
40437
40441
|
})
|
|
40438
40442
|
})]
|
|
40439
40443
|
})
|
|
40440
40444
|
});
|
|
40441
40445
|
}
|
|
40442
|
-
|
|
40443
|
-
|
|
40446
|
+
/** Scopes the flow's own screens to `lang`; a no-op when the flow sets none. */
|
|
40447
|
+
function FlowLanguage(_ref2) {
|
|
40448
|
+
var lang = _ref2.lang,
|
|
40449
|
+
children = _ref2.children;
|
|
40450
|
+
return lang === undefined ? children : jsxRuntime.jsx(SdkLanguageProvider, {
|
|
40451
|
+
lang: lang,
|
|
40452
|
+
children: children
|
|
40453
|
+
});
|
|
40454
|
+
}
|
|
40455
|
+
function AuthGate(_ref3) {
|
|
40456
|
+
var children = _ref3.children;
|
|
40444
40457
|
var _useAuthState = useAuthState(),
|
|
40445
40458
|
state = _useAuthState.state,
|
|
40446
40459
|
retry = _useAuthState.retry;
|
|
@@ -40491,10 +40504,10 @@ function AuthGate(_ref2) {
|
|
|
40491
40504
|
* enrollment-ID banner sits outside that body, so stages and their in-body
|
|
40492
40505
|
* overlays lay out below it instead of over it.
|
|
40493
40506
|
*/
|
|
40494
|
-
function FlowPage(
|
|
40495
|
-
var className =
|
|
40496
|
-
enrollmentId =
|
|
40497
|
-
children =
|
|
40507
|
+
function FlowPage(_ref4) {
|
|
40508
|
+
var className = _ref4.className,
|
|
40509
|
+
enrollmentId = _ref4.enrollmentId,
|
|
40510
|
+
children = _ref4.children;
|
|
40498
40511
|
var _useTheme = styledComponents.useTheme(),
|
|
40499
40512
|
Header = _useTheme.header,
|
|
40500
40513
|
Footer = _useTheme.footer;
|
|
@@ -40593,6 +40606,26 @@ function impliedSkipSuccessScreen(explicit, introActive) {
|
|
|
40593
40606
|
return explicit != null ? explicit : introActive;
|
|
40594
40607
|
}
|
|
40595
40608
|
|
|
40609
|
+
/**
|
|
40610
|
+
* A step bag with the flow's settings filled in wherever the step leaves them
|
|
40611
|
+
* unset: `step ?? flow`, key by key. The step's own value always wins, an
|
|
40612
|
+
* explicit `false` included, so a flow-wide setting never overrides a step.
|
|
40613
|
+
*
|
|
40614
|
+
* `flow` is typed against the step bag, so a setting the step has no prop for
|
|
40615
|
+
* (`debugMode` on the signature step, say) fails to compile instead of being
|
|
40616
|
+
* forwarded to a component that ignores it.
|
|
40617
|
+
*/
|
|
40618
|
+
function inheritFlowSettings(step, flow) {
|
|
40619
|
+
var inherited = {};
|
|
40620
|
+
for (var _i = 0, _Object$keys = Object.keys(flow); _i < _Object$keys.length; _i++) {
|
|
40621
|
+
var key = _Object$keys[_i];
|
|
40622
|
+
if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
|
|
40623
|
+
inherited[key] = flow[key];
|
|
40624
|
+
}
|
|
40625
|
+
}
|
|
40626
|
+
return _extends({}, step, inherited);
|
|
40627
|
+
}
|
|
40628
|
+
|
|
40596
40629
|
function buildRingScreenProps(_ref) {
|
|
40597
40630
|
var ringMode = _ref.ringMode,
|
|
40598
40631
|
finishingVerbiage = _ref.finishingVerbiage,
|
|
@@ -40721,7 +40754,7 @@ function withVirtualCameras(camera, allowVirtualCameras) {
|
|
|
40721
40754
|
return base;
|
|
40722
40755
|
}
|
|
40723
40756
|
|
|
40724
|
-
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"];
|
|
40757
|
+
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"];
|
|
40725
40758
|
var EMPTY_ID_CAPTURE$3 = {};
|
|
40726
40759
|
var EMPTY_SIGNATURE_CAPTURE$5 = {};
|
|
40727
40760
|
var EMPTY_ID_VIEW$3 = {};
|
|
@@ -40733,7 +40766,7 @@ function IdValidationFlow(_ref) {
|
|
|
40733
40766
|
_ref$capture = _ref.capture,
|
|
40734
40767
|
capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
|
|
40735
40768
|
_ref$view = _ref.view,
|
|
40736
|
-
|
|
40769
|
+
viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
|
|
40737
40770
|
_ref$submission = _ref.submission,
|
|
40738
40771
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
|
|
40739
40772
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -40743,14 +40776,17 @@ function IdValidationFlow(_ref) {
|
|
|
40743
40776
|
signatureController = _ref.signatureController,
|
|
40744
40777
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
40745
40778
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
|
|
40746
|
-
|
|
40779
|
+
signatureViewProp = _ref.signatureView,
|
|
40747
40780
|
captureSignature = _ref.captureSignature,
|
|
40748
40781
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
40749
40782
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
40750
40783
|
theme = _ref.theme,
|
|
40751
40784
|
className = _ref.className,
|
|
40752
|
-
|
|
40753
|
-
|
|
40785
|
+
lang = _ref.lang,
|
|
40786
|
+
debugMode = _ref.debugMode,
|
|
40787
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40788
|
+
showResultScreen = _ref.showResultScreen,
|
|
40789
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
40754
40790
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
40755
40791
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
40756
40792
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -40762,6 +40798,23 @@ function IdValidationFlow(_ref) {
|
|
|
40762
40798
|
onSubmitted = _ref.onSubmitted,
|
|
40763
40799
|
children = _ref.children,
|
|
40764
40800
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
40801
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
40802
|
+
var _useMemo = React.useMemo(function () {
|
|
40803
|
+
return {
|
|
40804
|
+
view: inheritFlowSettings(viewProp, {
|
|
40805
|
+
lang: lang,
|
|
40806
|
+
debugMode: debugMode,
|
|
40807
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40808
|
+
}),
|
|
40809
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
40810
|
+
lang: lang,
|
|
40811
|
+
showCaptureDiagnostics: debugMode,
|
|
40812
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40813
|
+
})
|
|
40814
|
+
};
|
|
40815
|
+
}, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
40816
|
+
view = _useMemo.view,
|
|
40817
|
+
signatureView = _useMemo.signatureView;
|
|
40765
40818
|
useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
40766
40819
|
capture: capture,
|
|
40767
40820
|
signatureCapture: signatureCapture
|
|
@@ -40883,13 +40936,14 @@ function IdValidationFlow(_ref) {
|
|
|
40883
40936
|
action: SubmissionAction.VALIDATE,
|
|
40884
40937
|
submission: submission,
|
|
40885
40938
|
theme: theme,
|
|
40886
|
-
className: className
|
|
40939
|
+
className: className,
|
|
40940
|
+
lang: lang
|
|
40887
40941
|
}, callbacks, {
|
|
40888
40942
|
children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
40889
40943
|
steps: steps,
|
|
40890
40944
|
initialArtifacts: initialArtifacts,
|
|
40891
40945
|
captureOnly: captureOnly,
|
|
40892
|
-
|
|
40946
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
40893
40947
|
showDiagnostics: showDiagnostics,
|
|
40894
40948
|
onArtifactsCollected: onCaptured,
|
|
40895
40949
|
onSubmitted: onSubmitted
|
|
@@ -40908,13 +40962,16 @@ function FaceValidationFlow(_ref) {
|
|
|
40908
40962
|
_ref$capture = _ref.capture,
|
|
40909
40963
|
capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
|
|
40910
40964
|
_ref$view = _ref.view,
|
|
40911
|
-
|
|
40965
|
+
viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
|
|
40912
40966
|
_ref$submission = _ref.submission,
|
|
40913
40967
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
|
|
40914
40968
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
40915
40969
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
|
|
40916
40970
|
theme = _ref.theme,
|
|
40917
40971
|
className = _ref.className,
|
|
40972
|
+
lang = _ref.lang,
|
|
40973
|
+
debugMode = _ref.debugMode,
|
|
40974
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
40918
40975
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
40919
40976
|
geolocationRequired = _ref.geolocationRequired,
|
|
40920
40977
|
captureProgress = _ref.captureProgress,
|
|
@@ -40923,6 +40980,14 @@ function FaceValidationFlow(_ref) {
|
|
|
40923
40980
|
onCaptured = _ref.onCaptured,
|
|
40924
40981
|
onCaptureError = _ref.onCaptureError,
|
|
40925
40982
|
children = _ref.children;
|
|
40983
|
+
// Flow-wide settings reach the step unless its own bag sets them.
|
|
40984
|
+
var view = React.useMemo(function () {
|
|
40985
|
+
return inheritFlowSettings(viewProp, {
|
|
40986
|
+
lang: lang,
|
|
40987
|
+
debugMode: debugMode,
|
|
40988
|
+
skipSuccessScreen: skipSuccessScreen
|
|
40989
|
+
});
|
|
40990
|
+
}, [debugMode, lang, skipSuccessScreen, viewProp]);
|
|
40926
40991
|
var checkLivenessOptions = capture.checkLivenessOptions,
|
|
40927
40992
|
controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
|
|
40928
40993
|
useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -40983,6 +41048,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40983
41048
|
submission: submission,
|
|
40984
41049
|
theme: theme,
|
|
40985
41050
|
className: className,
|
|
41051
|
+
lang: lang,
|
|
40986
41052
|
geolocationEnabled: geolocationEnabled,
|
|
40987
41053
|
geolocationRequired: geolocationRequired,
|
|
40988
41054
|
captureProgress: captureProgress,
|
|
@@ -40997,7 +41063,7 @@ function FaceValidationFlow(_ref) {
|
|
|
40997
41063
|
});
|
|
40998
41064
|
}
|
|
40999
41065
|
|
|
41000
|
-
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"],
|
|
41066
|
+
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"],
|
|
41001
41067
|
_excluded2$3 = ["checkLivenessOptions"];
|
|
41002
41068
|
var EMPTY_ID_CAPTURE$2 = {};
|
|
41003
41069
|
var EMPTY_FACE_CAPTURE$4 = {};
|
|
@@ -41019,10 +41085,10 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41019
41085
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41020
41086
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
|
|
41021
41087
|
_ref$idView = _ref.idView,
|
|
41022
|
-
|
|
41088
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
|
|
41023
41089
|
_ref$faceView = _ref.faceView,
|
|
41024
|
-
|
|
41025
|
-
|
|
41090
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
|
|
41091
|
+
signatureViewProp = _ref.signatureView,
|
|
41026
41092
|
captureSignature = _ref.captureSignature,
|
|
41027
41093
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41028
41094
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41032,8 +41098,11 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41032
41098
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
|
|
41033
41099
|
theme = _ref.theme,
|
|
41034
41100
|
className = _ref.className,
|
|
41035
|
-
|
|
41036
|
-
|
|
41101
|
+
lang = _ref.lang,
|
|
41102
|
+
debugMode = _ref.debugMode,
|
|
41103
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41104
|
+
showResultScreen = _ref.showResultScreen,
|
|
41105
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41037
41106
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41038
41107
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41039
41108
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41047,6 +41116,26 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41047
41116
|
onStepCompleted = _ref.onStepCompleted,
|
|
41048
41117
|
children = _ref.children,
|
|
41049
41118
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
41119
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41120
|
+
var _useMemo = React.useMemo(function () {
|
|
41121
|
+
var settings = {
|
|
41122
|
+
lang: lang,
|
|
41123
|
+
debugMode: debugMode,
|
|
41124
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41125
|
+
};
|
|
41126
|
+
return {
|
|
41127
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41128
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41129
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41130
|
+
lang: lang,
|
|
41131
|
+
showCaptureDiagnostics: debugMode,
|
|
41132
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41133
|
+
})
|
|
41134
|
+
};
|
|
41135
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41136
|
+
idView = _useMemo.idView,
|
|
41137
|
+
faceView = _useMemo.faceView,
|
|
41138
|
+
signatureView = _useMemo.signatureView;
|
|
41050
41139
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41051
41140
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
|
|
41052
41141
|
useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41217,12 +41306,13 @@ function IdAndFaceValidationFlow(_ref) {
|
|
|
41217
41306
|
action: SubmissionAction.VALIDATE,
|
|
41218
41307
|
submission: submission,
|
|
41219
41308
|
theme: theme,
|
|
41220
|
-
className: className
|
|
41309
|
+
className: className,
|
|
41310
|
+
lang: lang
|
|
41221
41311
|
}, callbacks, {
|
|
41222
41312
|
children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41223
41313
|
steps: steps,
|
|
41224
41314
|
initialArtifacts: initialArtifacts,
|
|
41225
|
-
|
|
41315
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41226
41316
|
showDiagnostics: showDiagnostics,
|
|
41227
41317
|
onSubmitted: onSubmitted,
|
|
41228
41318
|
onStepStarted: onStepStarted,
|
|
@@ -41277,9 +41367,9 @@ function SignatureKYCFlow(_ref) {
|
|
|
41277
41367
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41278
41368
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
|
|
41279
41369
|
_ref$faceView = _ref.faceView,
|
|
41280
|
-
|
|
41370
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
|
|
41281
41371
|
_ref$signatureView = _ref.signatureView,
|
|
41282
|
-
|
|
41372
|
+
signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
|
|
41283
41373
|
challengeResponse = _ref.challengeResponse,
|
|
41284
41374
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
41285
41375
|
_ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
|
|
@@ -41305,6 +41395,8 @@ function SignatureKYCFlow(_ref) {
|
|
|
41305
41395
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
|
|
41306
41396
|
theme = _ref.theme,
|
|
41307
41397
|
className = _ref.className,
|
|
41398
|
+
lang = _ref.lang,
|
|
41399
|
+
debugMode = _ref.debugMode,
|
|
41308
41400
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
41309
41401
|
geolocationRequired = _ref.geolocationRequired,
|
|
41310
41402
|
captureProgress = _ref.captureProgress,
|
|
@@ -41312,6 +41404,22 @@ function SignatureKYCFlow(_ref) {
|
|
|
41312
41404
|
loadingSpinner = _ref.loadingSpinner,
|
|
41313
41405
|
onCaptured = _ref.onCaptured,
|
|
41314
41406
|
onCaptureError = _ref.onCaptureError;
|
|
41407
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41408
|
+
var _useMemo = React.useMemo(function () {
|
|
41409
|
+
return {
|
|
41410
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
41411
|
+
lang: lang,
|
|
41412
|
+
debugMode: debugMode
|
|
41413
|
+
}),
|
|
41414
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41415
|
+
lang: lang,
|
|
41416
|
+
showCaptureDiagnostics: debugMode,
|
|
41417
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41418
|
+
})
|
|
41419
|
+
};
|
|
41420
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
41421
|
+
faceView = _useMemo.faceView,
|
|
41422
|
+
signatureView = _useMemo.signatureView;
|
|
41315
41423
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41316
41424
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
|
|
41317
41425
|
useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41322,7 +41430,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41322
41430
|
var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
|
|
41323
41431
|
var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
|
|
41324
41432
|
var latestSignatureCapture = useLatestCallbacks(signatureCapture);
|
|
41325
|
-
var legacyVideoLayout = (_signatureView$legacy = signatureView
|
|
41433
|
+
var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
|
|
41326
41434
|
var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
|
|
41327
41435
|
var sharedVideoRef = React.useRef(null);
|
|
41328
41436
|
var _useState = React.useState(null),
|
|
@@ -41506,6 +41614,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41506
41614
|
submission: submission,
|
|
41507
41615
|
theme: theme,
|
|
41508
41616
|
className: className,
|
|
41617
|
+
lang: lang,
|
|
41509
41618
|
geolocationEnabled: geolocationEnabled,
|
|
41510
41619
|
geolocationRequired: geolocationRequired,
|
|
41511
41620
|
captureProgress: captureProgress,
|
|
@@ -41515,7 +41624,7 @@ function SignatureKYCFlow(_ref) {
|
|
|
41515
41624
|
completed: stage === 'complete'
|
|
41516
41625
|
}), stage !== 'complete' ? jsxRuntime.jsxs(HandoffRoot, {
|
|
41517
41626
|
children: [jsxRuntime.jsx(SignatureCaptureView, _extends({}, signatureView, {
|
|
41518
|
-
skipSuccessScreen: impliedSkipSuccessScreen(
|
|
41627
|
+
skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
|
|
41519
41628
|
controller: resolvedSignatureController,
|
|
41520
41629
|
sessionReady: renderedStage === 'signature-capture',
|
|
41521
41630
|
videoRef: sharedVideoRef,
|
|
@@ -41613,7 +41722,7 @@ var FaceStage = styledComponents.styled.div(_templateObject2 || (_templateObject
|
|
|
41613
41722
|
return props.$visible ? 'block' : 'none';
|
|
41614
41723
|
});
|
|
41615
41724
|
|
|
41616
|
-
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"],
|
|
41725
|
+
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"],
|
|
41617
41726
|
_excluded2$2 = ["checkLivenessOptions"];
|
|
41618
41727
|
var EMPTY_ID_CAPTURE$1 = {};
|
|
41619
41728
|
var EMPTY_FACE_CAPTURE$2 = {};
|
|
@@ -41637,11 +41746,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41637
41746
|
_ref$capture = _ref.capture,
|
|
41638
41747
|
capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
|
|
41639
41748
|
_ref$idView = _ref.idView,
|
|
41640
|
-
|
|
41749
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
|
|
41641
41750
|
_ref$faceView = _ref.faceView,
|
|
41642
|
-
|
|
41751
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
|
|
41643
41752
|
_ref$view = _ref.view,
|
|
41644
|
-
|
|
41753
|
+
viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
|
|
41645
41754
|
_ref$submission = _ref.submission,
|
|
41646
41755
|
submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
|
|
41647
41756
|
_ref$initialArtifacts = _ref.initialArtifacts,
|
|
@@ -41651,7 +41760,7 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41651
41760
|
signatureController = _ref.signatureController,
|
|
41652
41761
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
41653
41762
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
|
|
41654
|
-
|
|
41763
|
+
signatureViewProp = _ref.signatureView,
|
|
41655
41764
|
captureSignature = _ref.captureSignature,
|
|
41656
41765
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
41657
41766
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -41663,8 +41772,11 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41663
41772
|
onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
|
|
41664
41773
|
theme = _ref.theme,
|
|
41665
41774
|
className = _ref.className,
|
|
41666
|
-
|
|
41667
|
-
|
|
41775
|
+
lang = _ref.lang,
|
|
41776
|
+
debugMode = _ref.debugMode,
|
|
41777
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
41778
|
+
showResultScreen = _ref.showResultScreen,
|
|
41779
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
41668
41780
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
41669
41781
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
41670
41782
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -41677,6 +41789,31 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41677
41789
|
onCaptureError = _ref.onCaptureError,
|
|
41678
41790
|
children = _ref.children,
|
|
41679
41791
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
41792
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
41793
|
+
var _useMemo = React.useMemo(function () {
|
|
41794
|
+
var settings = {
|
|
41795
|
+
lang: lang,
|
|
41796
|
+
debugMode: debugMode,
|
|
41797
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41798
|
+
};
|
|
41799
|
+
return {
|
|
41800
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
41801
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
41802
|
+
view: inheritFlowSettings(viewProp, {
|
|
41803
|
+
lang: lang,
|
|
41804
|
+
debugMode: debugMode
|
|
41805
|
+
}),
|
|
41806
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
41807
|
+
lang: lang,
|
|
41808
|
+
showCaptureDiagnostics: debugMode,
|
|
41809
|
+
skipSuccessScreen: skipSuccessScreen
|
|
41810
|
+
})
|
|
41811
|
+
};
|
|
41812
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
|
|
41813
|
+
idView = _useMemo.idView,
|
|
41814
|
+
faceView = _useMemo.faceView,
|
|
41815
|
+
view = _useMemo.view,
|
|
41816
|
+
signatureView = _useMemo.signatureView;
|
|
41680
41817
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
41681
41818
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
|
|
41682
41819
|
useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -41842,13 +41979,14 @@ function VideoIdValidationFlow(_ref) {
|
|
|
41842
41979
|
action: action,
|
|
41843
41980
|
submission: submission,
|
|
41844
41981
|
theme: theme,
|
|
41845
|
-
className: className
|
|
41982
|
+
className: className,
|
|
41983
|
+
lang: lang
|
|
41846
41984
|
}, callbacks, {
|
|
41847
41985
|
children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
41848
41986
|
steps: steps,
|
|
41849
41987
|
initialArtifacts: initialArtifacts,
|
|
41850
41988
|
captureOnly: captureOnly,
|
|
41851
|
-
|
|
41989
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
41852
41990
|
showDiagnostics: showDiagnostics,
|
|
41853
41991
|
onArtifactsCollected: onCaptured,
|
|
41854
41992
|
onSubmitted: onSubmitted
|
|
@@ -44691,7 +44829,7 @@ function buildDocumentCaptureStep(controller, view, sessionReady) {
|
|
|
44691
44829
|
};
|
|
44692
44830
|
}
|
|
44693
44831
|
|
|
44694
|
-
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44832
|
+
var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
|
|
44695
44833
|
var EMPTY_DOCUMENTS = [];
|
|
44696
44834
|
var EMPTY_CAPTURE$1 = {};
|
|
44697
44835
|
var EMPTY_VIEW$2 = {};
|
|
@@ -44712,6 +44850,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44712
44850
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
|
|
44713
44851
|
theme = _ref.theme,
|
|
44714
44852
|
className = _ref.className,
|
|
44853
|
+
lang = _ref.lang,
|
|
44854
|
+
debugMode = _ref.debugMode,
|
|
44715
44855
|
onDocumentCaptured = _ref.onDocumentCaptured,
|
|
44716
44856
|
onDocumentUploaded = _ref.onDocumentUploaded,
|
|
44717
44857
|
onComplete = _ref.onComplete,
|
|
@@ -44808,8 +44948,11 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44808
44948
|
var steps = React.useMemo(function () {
|
|
44809
44949
|
return [buildDocumentCaptureStep(resolvedController, _extends({
|
|
44810
44950
|
documents: documents
|
|
44811
|
-
}, view
|
|
44812
|
-
|
|
44951
|
+
}, inheritFlowSettings(view, {
|
|
44952
|
+
lang: lang,
|
|
44953
|
+
debugMode: debugMode
|
|
44954
|
+
})))];
|
|
44955
|
+
}, [debugMode, documents, lang, resolvedController, view]);
|
|
44813
44956
|
var onArtifactsCollected = React.useCallback(function () {
|
|
44814
44957
|
// captureOnly hands the (empty) artifacts back here; completion is reported
|
|
44815
44958
|
// through onComplete with the documents instead.
|
|
@@ -44819,7 +44962,8 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44819
44962
|
action: SubmissionAction.NONE,
|
|
44820
44963
|
submission: submission,
|
|
44821
44964
|
theme: theme,
|
|
44822
|
-
className: className
|
|
44965
|
+
className: className,
|
|
44966
|
+
lang: lang
|
|
44823
44967
|
}, callbacks, {
|
|
44824
44968
|
children: [jsxRuntime.jsx(CompositeWizard, {
|
|
44825
44969
|
steps: steps,
|
|
@@ -44830,7 +44974,7 @@ function DocumentCaptureFlow(_ref) {
|
|
|
44830
44974
|
}));
|
|
44831
44975
|
}
|
|
44832
44976
|
|
|
44833
|
-
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"],
|
|
44977
|
+
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"],
|
|
44834
44978
|
_excluded2$1 = ["checkLivenessOptions"];
|
|
44835
44979
|
var EMPTY_FACE_CAPTURE$1 = {};
|
|
44836
44980
|
var EMPTY_SIGNATURE_CAPTURE$1 = {};
|
|
@@ -44847,8 +44991,8 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44847
44991
|
_ref$signatureCapture = _ref.signatureCapture,
|
|
44848
44992
|
signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
|
|
44849
44993
|
_ref$faceView = _ref.faceView,
|
|
44850
|
-
|
|
44851
|
-
|
|
44994
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
|
|
44995
|
+
signatureViewProp = _ref.signatureView,
|
|
44852
44996
|
captureSignature = _ref.captureSignature,
|
|
44853
44997
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
44854
44998
|
allowVirtualCameras = _ref.allowVirtualCameras,
|
|
@@ -44856,8 +45000,11 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44856
45000
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
|
|
44857
45001
|
theme = _ref.theme,
|
|
44858
45002
|
className = _ref.className,
|
|
44859
|
-
|
|
44860
|
-
|
|
45003
|
+
lang = _ref.lang,
|
|
45004
|
+
debugMode = _ref.debugMode,
|
|
45005
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
45006
|
+
showResultScreen = _ref.showResultScreen,
|
|
45007
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
44861
45008
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
44862
45009
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
44863
45010
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -44869,6 +45016,23 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
44869
45016
|
onCaptureError = _ref.onCaptureError,
|
|
44870
45017
|
children = _ref.children,
|
|
44871
45018
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
45019
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45020
|
+
var _useMemo = React.useMemo(function () {
|
|
45021
|
+
return {
|
|
45022
|
+
faceView: inheritFlowSettings(faceViewProp, {
|
|
45023
|
+
lang: lang,
|
|
45024
|
+
debugMode: debugMode,
|
|
45025
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45026
|
+
}),
|
|
45027
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45028
|
+
lang: lang,
|
|
45029
|
+
showCaptureDiagnostics: debugMode,
|
|
45030
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45031
|
+
})
|
|
45032
|
+
};
|
|
45033
|
+
}, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
|
|
45034
|
+
faceView = _useMemo.faceView,
|
|
45035
|
+
signatureView = _useMemo.signatureView;
|
|
44872
45036
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
44873
45037
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
|
|
44874
45038
|
useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -45000,19 +45164,20 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
|
|
|
45000
45164
|
submission: submission,
|
|
45001
45165
|
showEnrollmentId: showDiagnostics,
|
|
45002
45166
|
theme: theme,
|
|
45003
|
-
className: className
|
|
45167
|
+
className: className,
|
|
45168
|
+
lang: lang
|
|
45004
45169
|
}, callbacks, {
|
|
45005
45170
|
children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
45006
45171
|
steps: steps,
|
|
45007
45172
|
initialArtifacts: initialArtifacts,
|
|
45008
|
-
|
|
45173
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
45009
45174
|
showDiagnostics: showDiagnostics,
|
|
45010
45175
|
onSubmitted: onSubmitted
|
|
45011
45176
|
})), children]
|
|
45012
45177
|
}));
|
|
45013
45178
|
}
|
|
45014
45179
|
|
|
45015
|
-
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"],
|
|
45180
|
+
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"],
|
|
45016
45181
|
_excluded2 = ["checkLivenessOptions"];
|
|
45017
45182
|
var EMPTY_ID_CAPTURE = {};
|
|
45018
45183
|
var EMPTY_FACE_CAPTURE = {};
|
|
@@ -45045,11 +45210,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45045
45210
|
_ref$videoIdCapture = _ref.videoIdCapture,
|
|
45046
45211
|
videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
|
|
45047
45212
|
_ref$idView = _ref.idView,
|
|
45048
|
-
|
|
45213
|
+
idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
|
|
45049
45214
|
_ref$faceView = _ref.faceView,
|
|
45050
|
-
|
|
45051
|
-
|
|
45052
|
-
|
|
45215
|
+
faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
|
|
45216
|
+
signatureViewProp = _ref.signatureView,
|
|
45217
|
+
videoIdViewProp = _ref.videoIdView,
|
|
45053
45218
|
captureSignature = _ref.captureSignature,
|
|
45054
45219
|
captureSignatureVideo = _ref.captureSignatureVideo,
|
|
45055
45220
|
_ref$captureVideoId = _ref.captureVideoId,
|
|
@@ -45059,8 +45224,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45059
45224
|
initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
|
|
45060
45225
|
theme = _ref.theme,
|
|
45061
45226
|
className = _ref.className,
|
|
45062
|
-
|
|
45063
|
-
|
|
45227
|
+
lang = _ref.lang,
|
|
45228
|
+
debugMode = _ref.debugMode,
|
|
45229
|
+
skipSuccessScreen = _ref.skipSuccessScreen,
|
|
45230
|
+
showResultScreen = _ref.showResultScreen,
|
|
45231
|
+
showSuccessScreen = _ref.showSuccessScreen,
|
|
45064
45232
|
_ref$showDiagnostics = _ref.showDiagnostics,
|
|
45065
45233
|
showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
|
|
45066
45234
|
captureAdditionalDocuments = _ref.captureAdditionalDocuments,
|
|
@@ -45072,7 +45240,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45072
45240
|
onCaptureError = _ref.onCaptureError,
|
|
45073
45241
|
children = _ref.children,
|
|
45074
45242
|
callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
45075
|
-
|
|
45243
|
+
// Flow-wide settings reach each step unless its own bag sets them.
|
|
45244
|
+
var _useMemo = React.useMemo(function () {
|
|
45245
|
+
var settings = {
|
|
45246
|
+
lang: lang,
|
|
45247
|
+
debugMode: debugMode,
|
|
45248
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45249
|
+
};
|
|
45250
|
+
return {
|
|
45251
|
+
idView: inheritFlowSettings(idViewProp, settings),
|
|
45252
|
+
faceView: inheritFlowSettings(faceViewProp, settings),
|
|
45253
|
+
signatureView: inheritFlowSettings(signatureViewProp, {
|
|
45254
|
+
lang: lang,
|
|
45255
|
+
showCaptureDiagnostics: debugMode,
|
|
45256
|
+
skipSuccessScreen: skipSuccessScreen
|
|
45257
|
+
}),
|
|
45258
|
+
videoIdView: inheritFlowSettings(videoIdViewProp, {
|
|
45259
|
+
lang: lang,
|
|
45260
|
+
debugMode: debugMode
|
|
45261
|
+
})
|
|
45262
|
+
};
|
|
45263
|
+
}, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
|
|
45264
|
+
idView = _useMemo.idView,
|
|
45265
|
+
faceView = _useMemo.faceView,
|
|
45266
|
+
signatureView = _useMemo.signatureView,
|
|
45267
|
+
videoIdView = _useMemo.videoIdView;
|
|
45076
45268
|
var checkLivenessOptions = faceCapture.checkLivenessOptions,
|
|
45077
45269
|
selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
|
|
45078
45270
|
useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
|
|
@@ -45288,26 +45480,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
|
|
|
45288
45480
|
submission: submission,
|
|
45289
45481
|
showEnrollmentId: showDiagnostics,
|
|
45290
45482
|
theme: theme,
|
|
45291
|
-
className: className
|
|
45483
|
+
className: className,
|
|
45484
|
+
lang: lang
|
|
45292
45485
|
}, callbacks, {
|
|
45293
45486
|
children: [steps ? jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
|
|
45294
45487
|
steps: steps,
|
|
45295
45488
|
initialArtifacts: initialArtifacts,
|
|
45296
|
-
|
|
45489
|
+
showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
|
|
45297
45490
|
showDiagnostics: showDiagnostics,
|
|
45298
45491
|
onSubmitted: onSubmitted
|
|
45299
|
-
})) :
|
|
45300
|
-
// `loadingStage` is what enables the customer's `loadingSpinner`:
|
|
45301
|
-
// without it OrbStatusScreen hard-renders the orb, so this was the one
|
|
45302
|
-
// loading surface in the SDK that ignored a supplied component
|
|
45303
|
-
// outright — in the flow whose double-loader prompted the fix.
|
|
45304
|
-
jsxRuntime.jsx(OrbStatusScreen, {
|
|
45305
|
-
state: "solving",
|
|
45306
|
-
text: preparing.preparingText,
|
|
45307
|
-
loadingStage: "preparing"
|
|
45308
|
-
}), children]
|
|
45492
|
+
})) : jsxRuntime.jsx(PreparingScreen, {}), children]
|
|
45309
45493
|
}));
|
|
45310
45494
|
}
|
|
45495
|
+
/** Translated inside the chassis, so the flow's `lang` reaches it. */
|
|
45496
|
+
function PreparingScreen() {
|
|
45497
|
+
var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
|
|
45498
|
+
// `loadingStage` is what enables the customer's `loadingSpinner`: without it
|
|
45499
|
+
// OrbStatusScreen hard-renders the orb, so this was the one loading surface
|
|
45500
|
+
// in the SDK that ignored a supplied component outright — in the flow whose
|
|
45501
|
+
// double-loader prompted the fix.
|
|
45502
|
+
return jsxRuntime.jsx(OrbStatusScreen, {
|
|
45503
|
+
state: "solving",
|
|
45504
|
+
text: preparing.preparingText,
|
|
45505
|
+
loadingStage: "preparing"
|
|
45506
|
+
});
|
|
45507
|
+
}
|
|
45311
45508
|
|
|
45312
45509
|
var ALLOWED_MISMATCH_RETRIES$1 = 0;
|
|
45313
45510
|
var MAX_LIVENESS_ATTEMPTS$1 = 3;
|
|
@@ -45975,6 +46172,8 @@ function CustomerMatchFlow(_ref) {
|
|
|
45975
46172
|
view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
|
|
45976
46173
|
theme = _ref.theme,
|
|
45977
46174
|
className = _ref.className,
|
|
46175
|
+
lang = _ref.lang,
|
|
46176
|
+
debugMode = _ref.debugMode,
|
|
45978
46177
|
geolocationEnabled = _ref.geolocationEnabled,
|
|
45979
46178
|
geolocationRequired = _ref.geolocationRequired,
|
|
45980
46179
|
remoteDiagnostics = _ref.remoteDiagnostics,
|
|
@@ -46037,7 +46236,10 @@ function CustomerMatchFlow(_ref) {
|
|
|
46037
46236
|
// Only the auto-continue half applies here: the plain SelfieCaptureView has
|
|
46038
46237
|
// no capture review screen to skip (that is FaceLivenessView's), and this
|
|
46039
46238
|
// flow's own terminal screens are governed by `skipSuccessScreen` below.
|
|
46040
|
-
var resolvedView = _extends({}, view, {
|
|
46239
|
+
var resolvedView = _extends({}, inheritFlowSettings(view, {
|
|
46240
|
+
lang: lang,
|
|
46241
|
+
debugMode: debugMode
|
|
46242
|
+
}), {
|
|
46041
46243
|
autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
|
|
46042
46244
|
});
|
|
46043
46245
|
// Reset during render, not in an effect: an auto-requesting capture stage
|
|
@@ -46132,6 +46334,7 @@ function CustomerMatchFlow(_ref) {
|
|
|
46132
46334
|
submission: submission,
|
|
46133
46335
|
theme: theme,
|
|
46134
46336
|
className: className,
|
|
46337
|
+
lang: lang,
|
|
46135
46338
|
geolocationEnabled: geolocationEnabled,
|
|
46136
46339
|
geolocationRequired: geolocationRequired,
|
|
46137
46340
|
remoteDiagnostics: remoteDiagnostics,
|
|
@@ -47871,7 +48074,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47871
48074
|
// post-submission diagnostics page on this one flag
|
|
47872
48075
|
// (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
|
|
47873
48076
|
// here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
|
|
47874
|
-
// while the terminal page needs `
|
|
48077
|
+
// while the terminal page needs `showResultScreen` to render at all and
|
|
47875
48078
|
// `showDiagnostics` to include the request/response bodies. Mapping only
|
|
47876
48079
|
// the first left `debugMode` customers on a blank screen after submitting,
|
|
47877
48080
|
// because CompositeWizard falls through to `return null`.
|
|
@@ -47879,7 +48082,7 @@ function mapIdValidationProps(props, ctx) {
|
|
|
47879
48082
|
// Both take the same flag: sdk2's page showed the response body (behind a
|
|
47880
48083
|
// toggle) whenever debugMode was on, so gating diagnostics separately here
|
|
47881
48084
|
// would be a NEW restriction, not parity.
|
|
47882
|
-
|
|
48085
|
+
showResultScreen: props.debugMode,
|
|
47883
48086
|
showDiagnostics: props.debugMode,
|
|
47884
48087
|
// `onSubmit` is NOT mapped to a flow prop: it goes to the client config
|
|
47885
48088
|
// (see mapClientConfig), which is the layer sdk2 put it at and the only
|
|
@@ -48060,7 +48263,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
|
|
|
48060
48263
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48061
48264
|
loadingSpinner: props.loadingSpinner,
|
|
48062
48265
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48063
|
-
|
|
48266
|
+
showResultScreen: props.debugMode,
|
|
48064
48267
|
showDiagnostics: props.debugMode,
|
|
48065
48268
|
onStepStarted: emit ? function (stepId) {
|
|
48066
48269
|
var stage = journeyStageForStepId(stepId);
|
|
@@ -48182,7 +48385,7 @@ function mapSignatureKYCProps(props, ctx) {
|
|
|
48182
48385
|
// both the boolean and async callback forms at the flow-level seam.
|
|
48183
48386
|
//
|
|
48184
48387
|
// `debugMode` forces it back on, completing the fold mapIdValidationProps
|
|
48185
|
-
// does with `
|
|
48388
|
+
// does with `showResultScreen`/`showDiagnostics`: the capture readout
|
|
48186
48389
|
// renders INSIDE the review, so a consumer who skips the review and turns
|
|
48187
48390
|
// debugMode on would otherwise get the switch with nowhere for it to show
|
|
48188
48391
|
// — silently, in the one configuration it exists for.
|
|
@@ -48353,7 +48556,7 @@ function mapVideoIdValidationProps(props, ctx) {
|
|
|
48353
48556
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48354
48557
|
loadingSpinner: props.loadingSpinner,
|
|
48355
48558
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48356
|
-
|
|
48559
|
+
showResultScreen: props.debugMode,
|
|
48357
48560
|
showDiagnostics: props.debugMode,
|
|
48358
48561
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48359
48562
|
onRequestFailure: props.onRequestFailure,
|
|
@@ -48584,7 +48787,7 @@ function mapCustomerBiometricsEnrollmentProps(props, ctx) {
|
|
|
48584
48787
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48585
48788
|
loadingSpinner: props.loadingSpinner,
|
|
48586
48789
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48587
|
-
|
|
48790
|
+
showResultScreen: props.debugMode,
|
|
48588
48791
|
showDiagnostics: props.debugMode,
|
|
48589
48792
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48590
48793
|
// sdk2's enrollment twin of `onApproved`.
|
|
@@ -48677,7 +48880,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48677
48880
|
remoteDiagnostics: props.remoteDiagnostics,
|
|
48678
48881
|
loadingSpinner: props.loadingSpinner,
|
|
48679
48882
|
// See mapIdValidationProps for why `debugMode` feeds both.
|
|
48680
|
-
|
|
48883
|
+
showResultScreen: props.debugMode,
|
|
48681
48884
|
showDiagnostics: props.debugMode,
|
|
48682
48885
|
onComplete: withSubmissionRequest(props.onComplete, ctx),
|
|
48683
48886
|
onApproved: withSubmissionRequest(props.onEnrolled, ctx),
|
|
@@ -48687,7 +48890,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
|
|
|
48687
48890
|
});
|
|
48688
48891
|
}
|
|
48689
48892
|
|
|
48690
|
-
var webSdkVersion = '2.6.3-t3code-
|
|
48893
|
+
var webSdkVersion = '2.6.3-t3code-shared-flow-settings-07ab804';
|
|
48691
48894
|
|
|
48692
48895
|
// GENERATED by scripts/styleBagTypes.mjs from
|
|
48693
48896
|
// src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not
|