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.
@@ -45842,15 +45842,15 @@
45842
45842
  var Label = styled.span(_templateObject2$3 || (_templateObject2$3 = _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"])));
45843
45843
 
45844
45844
  function CompositeWizard(_ref) {
45845
- var _successScreen$isAppr;
45845
+ var _successScreen$isAppr, _ref2;
45846
45846
  var steps = _ref.steps,
45847
45847
  sessionReadyProp = _ref.sessionReady,
45848
45848
  _ref$initialArtifacts = _ref.initialArtifacts,
45849
45849
  initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
45850
45850
  _ref$captureOnly = _ref.captureOnly,
45851
45851
  captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
45852
- _ref$showSuccessScree = _ref.showSuccessScreen,
45853
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
45852
+ showResultScreen = _ref.showResultScreen,
45853
+ showSuccessScreen = _ref.showSuccessScreen,
45854
45854
  _ref$showDiagnostics = _ref.showDiagnostics,
45855
45855
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
45856
45856
  successClassNames = _ref.successClassNames,
@@ -46000,7 +46000,7 @@
46000
46000
  classNames: successScreen.classNames
46001
46001
  });
46002
46002
  }
46003
- if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
46003
+ if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
46004
46004
  return jsx(SubmissionSuccess, {
46005
46005
  response: submissionResponse,
46006
46006
  request: lastSubmissionRequest,
@@ -46037,8 +46037,8 @@
46037
46037
  });
46038
46038
  return labels;
46039
46039
  }
46040
- function SubmittingScreen(_ref2) {
46041
- var text = _ref2.text;
46040
+ function SubmittingScreen(_ref3) {
46041
+ var text = _ref3.text;
46042
46042
  return jsx(OrbStatusScreen, {
46043
46043
  state: "working",
46044
46044
  text: text,
@@ -46797,7 +46797,7 @@
46797
46797
  }
46798
46798
 
46799
46799
  var _templateObject$2, _templateObject2$2, _templateObject3$1, _templateObject4$1;
46800
- var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
46800
+ var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
46801
46801
  function FlowChassis(_ref) {
46802
46802
  var client = _ref.client,
46803
46803
  action = _ref.action,
@@ -46814,6 +46814,7 @@
46814
46814
  loadingSpinner = _ref.loadingSpinner,
46815
46815
  _ref$showEnrollmentId = _ref.showEnrollmentId,
46816
46816
  showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
46817
+ lang = _ref.lang,
46817
46818
  children = _ref.children,
46818
46819
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
46819
46820
  var geolocation = useGeolocation(geolocationEnabled);
@@ -46823,33 +46824,45 @@
46823
46824
  client: client,
46824
46825
  children: [jsx(RemoteDiagnosticsMount, {
46825
46826
  remoteDiagnostics: remoteDiagnostics
46826
- }), jsx(ThemeProvider, {
46827
- theme: theme,
46828
- children: jsx(LoadingSpinnerProvider, {
46829
- spinner: loadingSpinner,
46830
- children: jsx(SubmissionProvider, _extends$1({
46831
- client: client,
46832
- action: action,
46833
- options: submission,
46834
- geolocation: geolocation.position
46835
- }, callbacks, {
46836
- children: jsx(FlowPage, {
46837
- className: className,
46838
- enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
46839
- children: jsx(AuthGate, {
46840
- children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
46841
- onRetry: geolocation.retry
46842
- }) : children
46827
+ }), jsx(FlowLanguage, {
46828
+ lang: lang,
46829
+ children: jsx(ThemeProvider, {
46830
+ theme: theme,
46831
+ children: jsx(LoadingSpinnerProvider, {
46832
+ spinner: loadingSpinner,
46833
+ children: jsx(SubmissionProvider, _extends$1({
46834
+ client: client,
46835
+ action: action,
46836
+ options: submission,
46837
+ geolocation: geolocation.position
46838
+ }, callbacks, {
46839
+ children: jsx(FlowPage, {
46840
+ className: className,
46841
+ enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
46842
+ children: jsx(AuthGate, {
46843
+ children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
46844
+ onRetry: geolocation.retry
46845
+ }) : children
46846
+ })
46843
46847
  })
46844
- })
46845
- }))
46848
+ }))
46849
+ })
46846
46850
  })
46847
46851
  })]
46848
46852
  })
46849
46853
  });
46850
46854
  }
46851
- function AuthGate(_ref2) {
46852
- var children = _ref2.children;
46855
+ /** Scopes the flow's own screens to `lang`; a no-op when the flow sets none. */
46856
+ function FlowLanguage(_ref2) {
46857
+ var lang = _ref2.lang,
46858
+ children = _ref2.children;
46859
+ return lang === undefined ? children : jsx(SdkLanguageProvider, {
46860
+ lang: lang,
46861
+ children: children
46862
+ });
46863
+ }
46864
+ function AuthGate(_ref3) {
46865
+ var children = _ref3.children;
46853
46866
  var _useAuthState = useAuthState(),
46854
46867
  state = _useAuthState.state,
46855
46868
  retry = _useAuthState.retry;
@@ -46900,10 +46913,10 @@
46900
46913
  * enrollment-ID banner sits outside that body, so stages and their in-body
46901
46914
  * overlays lay out below it instead of over it.
46902
46915
  */
46903
- function FlowPage(_ref3) {
46904
- var className = _ref3.className,
46905
- enrollmentId = _ref3.enrollmentId,
46906
- children = _ref3.children;
46916
+ function FlowPage(_ref4) {
46917
+ var className = _ref4.className,
46918
+ enrollmentId = _ref4.enrollmentId,
46919
+ children = _ref4.children;
46907
46920
  var _useTheme = useTheme(),
46908
46921
  Header = _useTheme.header,
46909
46922
  Footer = _useTheme.footer;
@@ -47002,6 +47015,26 @@
47002
47015
  return explicit != null ? explicit : introActive;
47003
47016
  }
47004
47017
 
47018
+ /**
47019
+ * A step bag with the flow's settings filled in wherever the step leaves them
47020
+ * unset: `step ?? flow`, key by key. The step's own value always wins, an
47021
+ * explicit `false` included, so a flow-wide setting never overrides a step.
47022
+ *
47023
+ * `flow` is typed against the step bag, so a setting the step has no prop for
47024
+ * (`debugMode` on the signature step, say) fails to compile instead of being
47025
+ * forwarded to a component that ignores it.
47026
+ */
47027
+ function inheritFlowSettings(step, flow) {
47028
+ var inherited = {};
47029
+ for (var _i = 0, _Object$keys = Object.keys(flow); _i < _Object$keys.length; _i++) {
47030
+ var key = _Object$keys[_i];
47031
+ if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
47032
+ inherited[key] = flow[key];
47033
+ }
47034
+ }
47035
+ return _extends$1({}, step, inherited);
47036
+ }
47037
+
47005
47038
  function buildRingScreenProps(_ref) {
47006
47039
  var ringMode = _ref.ringMode,
47007
47040
  finishingVerbiage = _ref.finishingVerbiage,
@@ -47130,7 +47163,7 @@
47130
47163
  return base;
47131
47164
  }
47132
47165
 
47133
- 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"];
47166
+ 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"];
47134
47167
  var EMPTY_ID_CAPTURE$3 = {};
47135
47168
  var EMPTY_SIGNATURE_CAPTURE$5 = {};
47136
47169
  var EMPTY_ID_VIEW$3 = {};
@@ -47142,7 +47175,7 @@
47142
47175
  _ref$capture = _ref.capture,
47143
47176
  capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
47144
47177
  _ref$view = _ref.view,
47145
- view = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
47178
+ viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
47146
47179
  _ref$submission = _ref.submission,
47147
47180
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
47148
47181
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -47152,14 +47185,17 @@
47152
47185
  signatureController = _ref.signatureController,
47153
47186
  _ref$signatureCapture = _ref.signatureCapture,
47154
47187
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
47155
- signatureView = _ref.signatureView,
47188
+ signatureViewProp = _ref.signatureView,
47156
47189
  captureSignature = _ref.captureSignature,
47157
47190
  captureSignatureVideo = _ref.captureSignatureVideo,
47158
47191
  allowVirtualCameras = _ref.allowVirtualCameras,
47159
47192
  theme = _ref.theme,
47160
47193
  className = _ref.className,
47161
- _ref$showSuccessScree = _ref.showSuccessScreen,
47162
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
47194
+ lang = _ref.lang,
47195
+ debugMode = _ref.debugMode,
47196
+ skipSuccessScreen = _ref.skipSuccessScreen,
47197
+ showResultScreen = _ref.showResultScreen,
47198
+ showSuccessScreen = _ref.showSuccessScreen,
47163
47199
  _ref$showDiagnostics = _ref.showDiagnostics,
47164
47200
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
47165
47201
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -47171,6 +47207,23 @@
47171
47207
  onSubmitted = _ref.onSubmitted,
47172
47208
  children = _ref.children,
47173
47209
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
47210
+ // Flow-wide settings reach each step unless its own bag sets them.
47211
+ var _useMemo = React.useMemo(function () {
47212
+ return {
47213
+ view: inheritFlowSettings(viewProp, {
47214
+ lang: lang,
47215
+ debugMode: debugMode,
47216
+ skipSuccessScreen: skipSuccessScreen
47217
+ }),
47218
+ signatureView: inheritFlowSettings(signatureViewProp, {
47219
+ lang: lang,
47220
+ showCaptureDiagnostics: debugMode,
47221
+ skipSuccessScreen: skipSuccessScreen
47222
+ })
47223
+ };
47224
+ }, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
47225
+ view = _useMemo.view,
47226
+ signatureView = _useMemo.signatureView;
47174
47227
  useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
47175
47228
  capture: capture,
47176
47229
  signatureCapture: signatureCapture
@@ -47292,13 +47345,14 @@
47292
47345
  action: SubmissionAction.VALIDATE,
47293
47346
  submission: submission,
47294
47347
  theme: theme,
47295
- className: className
47348
+ className: className,
47349
+ lang: lang
47296
47350
  }, callbacks, {
47297
47351
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
47298
47352
  steps: steps,
47299
47353
  initialArtifacts: initialArtifacts,
47300
47354
  captureOnly: captureOnly,
47301
- showSuccessScreen: showSuccessScreen,
47355
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
47302
47356
  showDiagnostics: showDiagnostics,
47303
47357
  onArtifactsCollected: onCaptured,
47304
47358
  onSubmitted: onSubmitted
@@ -47317,13 +47371,16 @@
47317
47371
  _ref$capture = _ref.capture,
47318
47372
  capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
47319
47373
  _ref$view = _ref.view,
47320
- view = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
47374
+ viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
47321
47375
  _ref$submission = _ref.submission,
47322
47376
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
47323
47377
  _ref$initialArtifacts = _ref.initialArtifacts,
47324
47378
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
47325
47379
  theme = _ref.theme,
47326
47380
  className = _ref.className,
47381
+ lang = _ref.lang,
47382
+ debugMode = _ref.debugMode,
47383
+ skipSuccessScreen = _ref.skipSuccessScreen,
47327
47384
  geolocationEnabled = _ref.geolocationEnabled,
47328
47385
  geolocationRequired = _ref.geolocationRequired,
47329
47386
  captureProgress = _ref.captureProgress,
@@ -47332,6 +47389,14 @@
47332
47389
  onCaptured = _ref.onCaptured,
47333
47390
  onCaptureError = _ref.onCaptureError,
47334
47391
  children = _ref.children;
47392
+ // Flow-wide settings reach the step unless its own bag sets them.
47393
+ var view = React.useMemo(function () {
47394
+ return inheritFlowSettings(viewProp, {
47395
+ lang: lang,
47396
+ debugMode: debugMode,
47397
+ skipSuccessScreen: skipSuccessScreen
47398
+ });
47399
+ }, [debugMode, lang, skipSuccessScreen, viewProp]);
47335
47400
  var checkLivenessOptions = capture.checkLivenessOptions,
47336
47401
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
47337
47402
  useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47392,6 +47457,7 @@
47392
47457
  submission: submission,
47393
47458
  theme: theme,
47394
47459
  className: className,
47460
+ lang: lang,
47395
47461
  geolocationEnabled: geolocationEnabled,
47396
47462
  geolocationRequired: geolocationRequired,
47397
47463
  captureProgress: captureProgress,
@@ -47406,7 +47472,7 @@
47406
47472
  });
47407
47473
  }
47408
47474
 
47409
- 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"],
47475
+ 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"],
47410
47476
  _excluded2$3 = ["checkLivenessOptions"];
47411
47477
  var EMPTY_ID_CAPTURE$2 = {};
47412
47478
  var EMPTY_FACE_CAPTURE$4 = {};
@@ -47428,10 +47494,10 @@
47428
47494
  _ref$signatureCapture = _ref.signatureCapture,
47429
47495
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
47430
47496
  _ref$idView = _ref.idView,
47431
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
47497
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
47432
47498
  _ref$faceView = _ref.faceView,
47433
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
47434
- signatureView = _ref.signatureView,
47499
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
47500
+ signatureViewProp = _ref.signatureView,
47435
47501
  captureSignature = _ref.captureSignature,
47436
47502
  captureSignatureVideo = _ref.captureSignatureVideo,
47437
47503
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -47441,8 +47507,11 @@
47441
47507
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
47442
47508
  theme = _ref.theme,
47443
47509
  className = _ref.className,
47444
- _ref$showSuccessScree = _ref.showSuccessScreen,
47445
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
47510
+ lang = _ref.lang,
47511
+ debugMode = _ref.debugMode,
47512
+ skipSuccessScreen = _ref.skipSuccessScreen,
47513
+ showResultScreen = _ref.showResultScreen,
47514
+ showSuccessScreen = _ref.showSuccessScreen,
47446
47515
  _ref$showDiagnostics = _ref.showDiagnostics,
47447
47516
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
47448
47517
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -47456,6 +47525,26 @@
47456
47525
  onStepCompleted = _ref.onStepCompleted,
47457
47526
  children = _ref.children,
47458
47527
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
47528
+ // Flow-wide settings reach each step unless its own bag sets them.
47529
+ var _useMemo = React.useMemo(function () {
47530
+ var settings = {
47531
+ lang: lang,
47532
+ debugMode: debugMode,
47533
+ skipSuccessScreen: skipSuccessScreen
47534
+ };
47535
+ return {
47536
+ idView: inheritFlowSettings(idViewProp, settings),
47537
+ faceView: inheritFlowSettings(faceViewProp, settings),
47538
+ signatureView: inheritFlowSettings(signatureViewProp, {
47539
+ lang: lang,
47540
+ showCaptureDiagnostics: debugMode,
47541
+ skipSuccessScreen: skipSuccessScreen
47542
+ })
47543
+ };
47544
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
47545
+ idView = _useMemo.idView,
47546
+ faceView = _useMemo.faceView,
47547
+ signatureView = _useMemo.signatureView;
47459
47548
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
47460
47549
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
47461
47550
  useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47626,12 +47715,13 @@
47626
47715
  action: SubmissionAction.VALIDATE,
47627
47716
  submission: submission,
47628
47717
  theme: theme,
47629
- className: className
47718
+ className: className,
47719
+ lang: lang
47630
47720
  }, callbacks, {
47631
47721
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
47632
47722
  steps: steps,
47633
47723
  initialArtifacts: initialArtifacts,
47634
- showSuccessScreen: showSuccessScreen,
47724
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
47635
47725
  showDiagnostics: showDiagnostics,
47636
47726
  onSubmitted: onSubmitted,
47637
47727
  onStepStarted: onStepStarted,
@@ -47686,9 +47776,9 @@
47686
47776
  _ref$signatureCapture = _ref.signatureCapture,
47687
47777
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
47688
47778
  _ref$faceView = _ref.faceView,
47689
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
47779
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
47690
47780
  _ref$signatureView = _ref.signatureView,
47691
- signatureView = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
47781
+ signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
47692
47782
  challengeResponse = _ref.challengeResponse,
47693
47783
  allowVirtualCameras = _ref.allowVirtualCameras,
47694
47784
  _ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
@@ -47714,6 +47804,8 @@
47714
47804
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
47715
47805
  theme = _ref.theme,
47716
47806
  className = _ref.className,
47807
+ lang = _ref.lang,
47808
+ debugMode = _ref.debugMode,
47717
47809
  geolocationEnabled = _ref.geolocationEnabled,
47718
47810
  geolocationRequired = _ref.geolocationRequired,
47719
47811
  captureProgress = _ref.captureProgress,
@@ -47721,6 +47813,22 @@
47721
47813
  loadingSpinner = _ref.loadingSpinner,
47722
47814
  onCaptured = _ref.onCaptured,
47723
47815
  onCaptureError = _ref.onCaptureError;
47816
+ // Flow-wide settings reach each step unless its own bag sets them.
47817
+ var _useMemo = React.useMemo(function () {
47818
+ return {
47819
+ faceView: inheritFlowSettings(faceViewProp, {
47820
+ lang: lang,
47821
+ debugMode: debugMode
47822
+ }),
47823
+ signatureView: inheritFlowSettings(signatureViewProp, {
47824
+ lang: lang,
47825
+ showCaptureDiagnostics: debugMode,
47826
+ skipSuccessScreen: skipSuccessScreen
47827
+ })
47828
+ };
47829
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
47830
+ faceView = _useMemo.faceView,
47831
+ signatureView = _useMemo.signatureView;
47724
47832
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
47725
47833
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
47726
47834
  useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47731,7 +47839,7 @@
47731
47839
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
47732
47840
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
47733
47841
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
47734
- var legacyVideoLayout = (_signatureView$legacy = signatureView == null ? void 0 : signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
47842
+ var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
47735
47843
  var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
47736
47844
  var sharedVideoRef = React.useRef(null);
47737
47845
  var _useState = React.useState(null),
@@ -47915,6 +48023,7 @@
47915
48023
  submission: submission,
47916
48024
  theme: theme,
47917
48025
  className: className,
48026
+ lang: lang,
47918
48027
  geolocationEnabled: geolocationEnabled,
47919
48028
  geolocationRequired: geolocationRequired,
47920
48029
  captureProgress: captureProgress,
@@ -47924,7 +48033,7 @@
47924
48033
  completed: stage === 'complete'
47925
48034
  }), stage !== 'complete' ? jsxs(HandoffRoot, {
47926
48035
  children: [jsx(SignatureCaptureView, _extends$1({}, signatureView, {
47927
- skipSuccessScreen: impliedSkipSuccessScreen(skipSuccessScreen != null ? skipSuccessScreen : signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
48036
+ skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
47928
48037
  controller: resolvedSignatureController,
47929
48038
  sessionReady: renderedStage === 'signature-capture',
47930
48039
  videoRef: sharedVideoRef,
@@ -48022,7 +48131,7 @@
48022
48131
  return props.$visible ? 'block' : 'none';
48023
48132
  });
48024
48133
 
48025
- 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"],
48134
+ 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"],
48026
48135
  _excluded2$2 = ["checkLivenessOptions"];
48027
48136
  var EMPTY_ID_CAPTURE$1 = {};
48028
48137
  var EMPTY_FACE_CAPTURE$2 = {};
@@ -48046,11 +48155,11 @@
48046
48155
  _ref$capture = _ref.capture,
48047
48156
  capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
48048
48157
  _ref$idView = _ref.idView,
48049
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
48158
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
48050
48159
  _ref$faceView = _ref.faceView,
48051
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
48160
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
48052
48161
  _ref$view = _ref.view,
48053
- view = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
48162
+ viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
48054
48163
  _ref$submission = _ref.submission,
48055
48164
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
48056
48165
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -48060,7 +48169,7 @@
48060
48169
  signatureController = _ref.signatureController,
48061
48170
  _ref$signatureCapture = _ref.signatureCapture,
48062
48171
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
48063
- signatureView = _ref.signatureView,
48172
+ signatureViewProp = _ref.signatureView,
48064
48173
  captureSignature = _ref.captureSignature,
48065
48174
  captureSignatureVideo = _ref.captureSignatureVideo,
48066
48175
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -48072,8 +48181,11 @@
48072
48181
  onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
48073
48182
  theme = _ref.theme,
48074
48183
  className = _ref.className,
48075
- _ref$showSuccessScree = _ref.showSuccessScreen,
48076
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
48184
+ lang = _ref.lang,
48185
+ debugMode = _ref.debugMode,
48186
+ skipSuccessScreen = _ref.skipSuccessScreen,
48187
+ showResultScreen = _ref.showResultScreen,
48188
+ showSuccessScreen = _ref.showSuccessScreen,
48077
48189
  _ref$showDiagnostics = _ref.showDiagnostics,
48078
48190
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
48079
48191
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -48086,6 +48198,31 @@
48086
48198
  onCaptureError = _ref.onCaptureError,
48087
48199
  children = _ref.children,
48088
48200
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
48201
+ // Flow-wide settings reach each step unless its own bag sets them.
48202
+ var _useMemo = React.useMemo(function () {
48203
+ var settings = {
48204
+ lang: lang,
48205
+ debugMode: debugMode,
48206
+ skipSuccessScreen: skipSuccessScreen
48207
+ };
48208
+ return {
48209
+ idView: inheritFlowSettings(idViewProp, settings),
48210
+ faceView: inheritFlowSettings(faceViewProp, settings),
48211
+ view: inheritFlowSettings(viewProp, {
48212
+ lang: lang,
48213
+ debugMode: debugMode
48214
+ }),
48215
+ signatureView: inheritFlowSettings(signatureViewProp, {
48216
+ lang: lang,
48217
+ showCaptureDiagnostics: debugMode,
48218
+ skipSuccessScreen: skipSuccessScreen
48219
+ })
48220
+ };
48221
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
48222
+ idView = _useMemo.idView,
48223
+ faceView = _useMemo.faceView,
48224
+ view = _useMemo.view,
48225
+ signatureView = _useMemo.signatureView;
48089
48226
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
48090
48227
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
48091
48228
  useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -48251,13 +48388,14 @@
48251
48388
  action: action,
48252
48389
  submission: submission,
48253
48390
  theme: theme,
48254
- className: className
48391
+ className: className,
48392
+ lang: lang
48255
48393
  }, callbacks, {
48256
48394
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
48257
48395
  steps: steps,
48258
48396
  initialArtifacts: initialArtifacts,
48259
48397
  captureOnly: captureOnly,
48260
- showSuccessScreen: showSuccessScreen,
48398
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
48261
48399
  showDiagnostics: showDiagnostics,
48262
48400
  onArtifactsCollected: onCaptured,
48263
48401
  onSubmitted: onSubmitted
@@ -51100,7 +51238,7 @@
51100
51238
  };
51101
51239
  }
51102
51240
 
51103
- var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
51241
+ var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
51104
51242
  var EMPTY_DOCUMENTS = [];
51105
51243
  var EMPTY_CAPTURE$1 = {};
51106
51244
  var EMPTY_VIEW$2 = {};
@@ -51121,6 +51259,8 @@
51121
51259
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
51122
51260
  theme = _ref.theme,
51123
51261
  className = _ref.className,
51262
+ lang = _ref.lang,
51263
+ debugMode = _ref.debugMode,
51124
51264
  onDocumentCaptured = _ref.onDocumentCaptured,
51125
51265
  onDocumentUploaded = _ref.onDocumentUploaded,
51126
51266
  onComplete = _ref.onComplete,
@@ -51217,8 +51357,11 @@
51217
51357
  var steps = React.useMemo(function () {
51218
51358
  return [buildDocumentCaptureStep(resolvedController, _extends$1({
51219
51359
  documents: documents
51220
- }, view))];
51221
- }, [documents, resolvedController, view]);
51360
+ }, inheritFlowSettings(view, {
51361
+ lang: lang,
51362
+ debugMode: debugMode
51363
+ })))];
51364
+ }, [debugMode, documents, lang, resolvedController, view]);
51222
51365
  var onArtifactsCollected = React.useCallback(function () {
51223
51366
  // captureOnly hands the (empty) artifacts back here; completion is reported
51224
51367
  // through onComplete with the documents instead.
@@ -51228,7 +51371,8 @@
51228
51371
  action: SubmissionAction.NONE,
51229
51372
  submission: submission,
51230
51373
  theme: theme,
51231
- className: className
51374
+ className: className,
51375
+ lang: lang
51232
51376
  }, callbacks, {
51233
51377
  children: [jsx(CompositeWizard, {
51234
51378
  steps: steps,
@@ -51239,7 +51383,7 @@
51239
51383
  }));
51240
51384
  }
51241
51385
 
51242
- 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"],
51386
+ 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"],
51243
51387
  _excluded2$1 = ["checkLivenessOptions"];
51244
51388
  var EMPTY_FACE_CAPTURE$1 = {};
51245
51389
  var EMPTY_SIGNATURE_CAPTURE$1 = {};
@@ -51256,8 +51400,8 @@
51256
51400
  _ref$signatureCapture = _ref.signatureCapture,
51257
51401
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
51258
51402
  _ref$faceView = _ref.faceView,
51259
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
51260
- signatureView = _ref.signatureView,
51403
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
51404
+ signatureViewProp = _ref.signatureView,
51261
51405
  captureSignature = _ref.captureSignature,
51262
51406
  captureSignatureVideo = _ref.captureSignatureVideo,
51263
51407
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -51265,8 +51409,11 @@
51265
51409
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
51266
51410
  theme = _ref.theme,
51267
51411
  className = _ref.className,
51268
- _ref$showSuccessScree = _ref.showSuccessScreen,
51269
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
51412
+ lang = _ref.lang,
51413
+ debugMode = _ref.debugMode,
51414
+ skipSuccessScreen = _ref.skipSuccessScreen,
51415
+ showResultScreen = _ref.showResultScreen,
51416
+ showSuccessScreen = _ref.showSuccessScreen,
51270
51417
  _ref$showDiagnostics = _ref.showDiagnostics,
51271
51418
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
51272
51419
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -51278,6 +51425,23 @@
51278
51425
  onCaptureError = _ref.onCaptureError,
51279
51426
  children = _ref.children,
51280
51427
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
51428
+ // Flow-wide settings reach each step unless its own bag sets them.
51429
+ var _useMemo = React.useMemo(function () {
51430
+ return {
51431
+ faceView: inheritFlowSettings(faceViewProp, {
51432
+ lang: lang,
51433
+ debugMode: debugMode,
51434
+ skipSuccessScreen: skipSuccessScreen
51435
+ }),
51436
+ signatureView: inheritFlowSettings(signatureViewProp, {
51437
+ lang: lang,
51438
+ showCaptureDiagnostics: debugMode,
51439
+ skipSuccessScreen: skipSuccessScreen
51440
+ })
51441
+ };
51442
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
51443
+ faceView = _useMemo.faceView,
51444
+ signatureView = _useMemo.signatureView;
51281
51445
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
51282
51446
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
51283
51447
  useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -51409,19 +51573,20 @@
51409
51573
  submission: submission,
51410
51574
  showEnrollmentId: showDiagnostics,
51411
51575
  theme: theme,
51412
- className: className
51576
+ className: className,
51577
+ lang: lang
51413
51578
  }, callbacks, {
51414
51579
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
51415
51580
  steps: steps,
51416
51581
  initialArtifacts: initialArtifacts,
51417
- showSuccessScreen: showSuccessScreen,
51582
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
51418
51583
  showDiagnostics: showDiagnostics,
51419
51584
  onSubmitted: onSubmitted
51420
51585
  })), children]
51421
51586
  }));
51422
51587
  }
51423
51588
 
51424
- 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"],
51589
+ 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"],
51425
51590
  _excluded2 = ["checkLivenessOptions"];
51426
51591
  var EMPTY_ID_CAPTURE = {};
51427
51592
  var EMPTY_FACE_CAPTURE = {};
@@ -51454,11 +51619,11 @@
51454
51619
  _ref$videoIdCapture = _ref.videoIdCapture,
51455
51620
  videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
51456
51621
  _ref$idView = _ref.idView,
51457
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
51622
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
51458
51623
  _ref$faceView = _ref.faceView,
51459
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
51460
- signatureView = _ref.signatureView,
51461
- videoIdView = _ref.videoIdView,
51624
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
51625
+ signatureViewProp = _ref.signatureView,
51626
+ videoIdViewProp = _ref.videoIdView,
51462
51627
  captureSignature = _ref.captureSignature,
51463
51628
  captureSignatureVideo = _ref.captureSignatureVideo,
51464
51629
  _ref$captureVideoId = _ref.captureVideoId,
@@ -51468,8 +51633,11 @@
51468
51633
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
51469
51634
  theme = _ref.theme,
51470
51635
  className = _ref.className,
51471
- _ref$showSuccessScree = _ref.showSuccessScreen,
51472
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
51636
+ lang = _ref.lang,
51637
+ debugMode = _ref.debugMode,
51638
+ skipSuccessScreen = _ref.skipSuccessScreen,
51639
+ showResultScreen = _ref.showResultScreen,
51640
+ showSuccessScreen = _ref.showSuccessScreen,
51473
51641
  _ref$showDiagnostics = _ref.showDiagnostics,
51474
51642
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
51475
51643
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -51481,7 +51649,31 @@
51481
51649
  onCaptureError = _ref.onCaptureError,
51482
51650
  children = _ref.children,
51483
51651
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
51484
- var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
51652
+ // Flow-wide settings reach each step unless its own bag sets them.
51653
+ var _useMemo = React.useMemo(function () {
51654
+ var settings = {
51655
+ lang: lang,
51656
+ debugMode: debugMode,
51657
+ skipSuccessScreen: skipSuccessScreen
51658
+ };
51659
+ return {
51660
+ idView: inheritFlowSettings(idViewProp, settings),
51661
+ faceView: inheritFlowSettings(faceViewProp, settings),
51662
+ signatureView: inheritFlowSettings(signatureViewProp, {
51663
+ lang: lang,
51664
+ showCaptureDiagnostics: debugMode,
51665
+ skipSuccessScreen: skipSuccessScreen
51666
+ }),
51667
+ videoIdView: inheritFlowSettings(videoIdViewProp, {
51668
+ lang: lang,
51669
+ debugMode: debugMode
51670
+ })
51671
+ };
51672
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
51673
+ idView = _useMemo.idView,
51674
+ faceView = _useMemo.faceView,
51675
+ signatureView = _useMemo.signatureView,
51676
+ videoIdView = _useMemo.videoIdView;
51485
51677
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
51486
51678
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
51487
51679
  useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -51697,26 +51889,31 @@
51697
51889
  submission: submission,
51698
51890
  showEnrollmentId: showDiagnostics,
51699
51891
  theme: theme,
51700
- className: className
51892
+ className: className,
51893
+ lang: lang
51701
51894
  }, callbacks, {
51702
51895
  children: [steps ? jsx(CompositeWizard, _extends$1({}, ringScreens, {
51703
51896
  steps: steps,
51704
51897
  initialArtifacts: initialArtifacts,
51705
- showSuccessScreen: showSuccessScreen,
51898
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
51706
51899
  showDiagnostics: showDiagnostics,
51707
51900
  onSubmitted: onSubmitted
51708
- })) :
51709
- // `loadingStage` is what enables the customer's `loadingSpinner`:
51710
- // without it OrbStatusScreen hard-renders the orb, so this was the one
51711
- // loading surface in the SDK that ignored a supplied component
51712
- // outright — in the flow whose double-loader prompted the fix.
51713
- jsx(OrbStatusScreen, {
51714
- state: "solving",
51715
- text: preparing.preparingText,
51716
- loadingStage: "preparing"
51717
- }), children]
51901
+ })) : jsx(PreparingScreen, {}), children]
51718
51902
  }));
51719
51903
  }
51904
+ /** Translated inside the chassis, so the flow's `lang` reaches it. */
51905
+ function PreparingScreen() {
51906
+ var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
51907
+ // `loadingStage` is what enables the customer's `loadingSpinner`: without it
51908
+ // OrbStatusScreen hard-renders the orb, so this was the one loading surface
51909
+ // in the SDK that ignored a supplied component outright — in the flow whose
51910
+ // double-loader prompted the fix.
51911
+ return jsx(OrbStatusScreen, {
51912
+ state: "solving",
51913
+ text: preparing.preparingText,
51914
+ loadingStage: "preparing"
51915
+ });
51916
+ }
51720
51917
 
51721
51918
  var ALLOWED_MISMATCH_RETRIES$1 = 0;
51722
51919
  var MAX_LIVENESS_ATTEMPTS$1 = 3;
@@ -52384,6 +52581,8 @@
52384
52581
  view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
52385
52582
  theme = _ref.theme,
52386
52583
  className = _ref.className,
52584
+ lang = _ref.lang,
52585
+ debugMode = _ref.debugMode,
52387
52586
  geolocationEnabled = _ref.geolocationEnabled,
52388
52587
  geolocationRequired = _ref.geolocationRequired,
52389
52588
  remoteDiagnostics = _ref.remoteDiagnostics,
@@ -52446,7 +52645,10 @@
52446
52645
  // Only the auto-continue half applies here: the plain SelfieCaptureView has
52447
52646
  // no capture review screen to skip (that is FaceLivenessView's), and this
52448
52647
  // flow's own terminal screens are governed by `skipSuccessScreen` below.
52449
- var resolvedView = _extends$1({}, view, {
52648
+ var resolvedView = _extends$1({}, inheritFlowSettings(view, {
52649
+ lang: lang,
52650
+ debugMode: debugMode
52651
+ }), {
52450
52652
  autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
52451
52653
  });
52452
52654
  // Reset during render, not in an effect: an auto-requesting capture stage
@@ -52541,6 +52743,7 @@
52541
52743
  submission: submission,
52542
52744
  theme: theme,
52543
52745
  className: className,
52746
+ lang: lang,
52544
52747
  geolocationEnabled: geolocationEnabled,
52545
52748
  geolocationRequired: geolocationRequired,
52546
52749
  remoteDiagnostics: remoteDiagnostics,
@@ -54280,7 +54483,7 @@
54280
54483
  // post-submission diagnostics page on this one flag
54281
54484
  // (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
54282
54485
  // here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
54283
- // while the terminal page needs `showSuccessScreen` to render at all and
54486
+ // while the terminal page needs `showResultScreen` to render at all and
54284
54487
  // `showDiagnostics` to include the request/response bodies. Mapping only
54285
54488
  // the first left `debugMode` customers on a blank screen after submitting,
54286
54489
  // because CompositeWizard falls through to `return null`.
@@ -54288,7 +54491,7 @@
54288
54491
  // Both take the same flag: sdk2's page showed the response body (behind a
54289
54492
  // toggle) whenever debugMode was on, so gating diagnostics separately here
54290
54493
  // would be a NEW restriction, not parity.
54291
- showSuccessScreen: props.debugMode,
54494
+ showResultScreen: props.debugMode,
54292
54495
  showDiagnostics: props.debugMode,
54293
54496
  // `onSubmit` is NOT mapped to a flow prop: it goes to the client config
54294
54497
  // (see mapClientConfig), which is the layer sdk2 put it at and the only
@@ -54469,7 +54672,7 @@
54469
54672
  remoteDiagnostics: props.remoteDiagnostics,
54470
54673
  loadingSpinner: props.loadingSpinner,
54471
54674
  // See mapIdValidationProps for why `debugMode` feeds both.
54472
- showSuccessScreen: props.debugMode,
54675
+ showResultScreen: props.debugMode,
54473
54676
  showDiagnostics: props.debugMode,
54474
54677
  onStepStarted: emit ? function (stepId) {
54475
54678
  var stage = journeyStageForStepId(stepId);
@@ -54591,7 +54794,7 @@
54591
54794
  // both the boolean and async callback forms at the flow-level seam.
54592
54795
  //
54593
54796
  // `debugMode` forces it back on, completing the fold mapIdValidationProps
54594
- // does with `showSuccessScreen`/`showDiagnostics`: the capture readout
54797
+ // does with `showResultScreen`/`showDiagnostics`: the capture readout
54595
54798
  // renders INSIDE the review, so a consumer who skips the review and turns
54596
54799
  // debugMode on would otherwise get the switch with nowhere for it to show
54597
54800
  // — silently, in the one configuration it exists for.
@@ -54762,7 +54965,7 @@
54762
54965
  remoteDiagnostics: props.remoteDiagnostics,
54763
54966
  loadingSpinner: props.loadingSpinner,
54764
54967
  // See mapIdValidationProps for why `debugMode` feeds both.
54765
- showSuccessScreen: props.debugMode,
54968
+ showResultScreen: props.debugMode,
54766
54969
  showDiagnostics: props.debugMode,
54767
54970
  onComplete: withSubmissionRequest(props.onComplete, ctx),
54768
54971
  onRequestFailure: props.onRequestFailure,
@@ -54993,7 +55196,7 @@
54993
55196
  remoteDiagnostics: props.remoteDiagnostics,
54994
55197
  loadingSpinner: props.loadingSpinner,
54995
55198
  // See mapIdValidationProps for why `debugMode` feeds both.
54996
- showSuccessScreen: props.debugMode,
55199
+ showResultScreen: props.debugMode,
54997
55200
  showDiagnostics: props.debugMode,
54998
55201
  onComplete: withSubmissionRequest(props.onComplete, ctx),
54999
55202
  // sdk2's enrollment twin of `onApproved`.
@@ -55086,7 +55289,7 @@
55086
55289
  remoteDiagnostics: props.remoteDiagnostics,
55087
55290
  loadingSpinner: props.loadingSpinner,
55088
55291
  // See mapIdValidationProps for why `debugMode` feeds both.
55089
- showSuccessScreen: props.debugMode,
55292
+ showResultScreen: props.debugMode,
55090
55293
  showDiagnostics: props.debugMode,
55091
55294
  onComplete: withSubmissionRequest(props.onComplete, ctx),
55092
55295
  onApproved: withSubmissionRequest(props.onEnrolled, ctx),
@@ -55096,7 +55299,7 @@
55096
55299
  });
55097
55300
  }
55098
55301
 
55099
- var webSdkVersion = '2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb';
55302
+ var webSdkVersion = '2.6.3-t3code-shared-flow-settings-07ab804';
55100
55303
 
55101
55304
  // GENERATED by scripts/styleBagTypes.mjs from
55102
55305
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not