idmission-web-sdk 2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb → 2.6.3-t3code-shared-flow-settings-e5702c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7573,12 +7573,17 @@ var SdkLanguageContext = /*#__PURE__*/React.createContext(undefined);
7573
7573
  * Binds one rendered SDK tree to its requested language. A fixed translator
7574
7574
  * avoids waiting for a post-render changeLanguage() effect and keeps SSR and
7575
7575
  * concurrently mounted SDK views independent of the shared detector instance.
7576
+ *
7577
+ * An unset `lang` keeps whatever scope encloses it (or none), so a caller can
7578
+ * render the provider unconditionally: toggling `lang` between unset and set
7579
+ * then never changes the element tree, and never remounts the subtree.
7576
7580
  */
7577
7581
  function SdkLanguageProvider(_ref) {
7578
7582
  var children = _ref.children,
7579
7583
  lang = _ref.lang;
7584
+ var inherited = React.useContext(SdkLanguageContext);
7580
7585
  return /*#__PURE__*/React.createElement(SdkLanguageContext.Provider, {
7581
- value: lang === 'auto' ? detectedLanguage : lang
7586
+ value: lang === undefined ? inherited : lang === 'auto' ? detectedLanguage : lang
7582
7587
  }, children);
7583
7588
  }
7584
7589
  /**
@@ -39433,15 +39438,15 @@ var Root = styledComponents.styled.div(_templateObject$2 || (_templateObject$2 =
39433
39438
  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
39439
 
39435
39440
  function CompositeWizard(_ref) {
39436
- var _successScreen$isAppr;
39441
+ var _successScreen$isAppr, _ref2;
39437
39442
  var steps = _ref.steps,
39438
39443
  sessionReadyProp = _ref.sessionReady,
39439
39444
  _ref$initialArtifacts = _ref.initialArtifacts,
39440
39445
  initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
39441
39446
  _ref$captureOnly = _ref.captureOnly,
39442
39447
  captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
39443
- _ref$showSuccessScree = _ref.showSuccessScreen,
39444
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
39448
+ showResultScreen = _ref.showResultScreen,
39449
+ showSuccessScreen = _ref.showSuccessScreen,
39445
39450
  _ref$showDiagnostics = _ref.showDiagnostics,
39446
39451
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
39447
39452
  successClassNames = _ref.successClassNames,
@@ -39591,7 +39596,7 @@ function CompositeWizard(_ref) {
39591
39596
  classNames: successScreen.classNames
39592
39597
  });
39593
39598
  }
39594
- if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
39599
+ if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
39595
39600
  return jsxRuntime.jsx(SubmissionSuccess, {
39596
39601
  response: submissionResponse,
39597
39602
  request: lastSubmissionRequest,
@@ -39628,8 +39633,8 @@ function capturedArtifactLabels(artifacts) {
39628
39633
  });
39629
39634
  return labels;
39630
39635
  }
39631
- function SubmittingScreen(_ref2) {
39632
- var text = _ref2.text;
39636
+ function SubmittingScreen(_ref3) {
39637
+ var text = _ref3.text;
39633
39638
  return jsxRuntime.jsx(OrbStatusScreen, {
39634
39639
  state: "working",
39635
39640
  text: text,
@@ -40388,7 +40393,7 @@ function RemoteDiagnosticsMount(_ref) {
40388
40393
  }
40389
40394
 
40390
40395
  var _templateObject$1, _templateObject2$1, _templateObject3, _templateObject4;
40391
- var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "children"];
40396
+ var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
40392
40397
  function FlowChassis(_ref) {
40393
40398
  var client = _ref.client,
40394
40399
  action = _ref.action,
@@ -40405,6 +40410,7 @@ function FlowChassis(_ref) {
40405
40410
  loadingSpinner = _ref.loadingSpinner,
40406
40411
  _ref$showEnrollmentId = _ref.showEnrollmentId,
40407
40412
  showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
40413
+ lang = _ref.lang,
40408
40414
  children = _ref.children,
40409
40415
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
40410
40416
  var geolocation = useGeolocation(geolocationEnabled);
@@ -40414,26 +40420,29 @@ function FlowChassis(_ref) {
40414
40420
  client: client,
40415
40421
  children: [jsxRuntime.jsx(RemoteDiagnosticsMount, {
40416
40422
  remoteDiagnostics: remoteDiagnostics
40417
- }), jsxRuntime.jsx(ThemeProvider, {
40418
- theme: theme,
40419
- children: jsxRuntime.jsx(LoadingSpinnerProvider, {
40420
- spinner: loadingSpinner,
40421
- children: jsxRuntime.jsx(SubmissionProvider, _extends({
40422
- client: client,
40423
- action: action,
40424
- options: submission,
40425
- geolocation: geolocation.position
40426
- }, callbacks, {
40427
- children: jsxRuntime.jsx(FlowPage, {
40428
- className: className,
40429
- enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
40430
- children: jsxRuntime.jsx(AuthGate, {
40431
- children: geolocationRequired && geolocation.blocked ? jsxRuntime.jsx(GeolocationAccessDeniedOverlay, {
40432
- onRetry: geolocation.retry
40433
- }) : children
40423
+ }), jsxRuntime.jsx(SdkLanguageProvider, {
40424
+ lang: lang,
40425
+ children: jsxRuntime.jsx(ThemeProvider, {
40426
+ theme: theme,
40427
+ children: jsxRuntime.jsx(LoadingSpinnerProvider, {
40428
+ spinner: loadingSpinner,
40429
+ children: jsxRuntime.jsx(SubmissionProvider, _extends({
40430
+ client: client,
40431
+ action: action,
40432
+ options: submission,
40433
+ geolocation: geolocation.position
40434
+ }, callbacks, {
40435
+ children: jsxRuntime.jsx(FlowPage, {
40436
+ className: className,
40437
+ enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
40438
+ children: jsxRuntime.jsx(AuthGate, {
40439
+ children: geolocationRequired && geolocation.blocked ? jsxRuntime.jsx(GeolocationAccessDeniedOverlay, {
40440
+ onRetry: geolocation.retry
40441
+ }) : children
40442
+ })
40434
40443
  })
40435
- })
40436
- }))
40444
+ }))
40445
+ })
40437
40446
  })
40438
40447
  })]
40439
40448
  })
@@ -40593,6 +40602,26 @@ function impliedSkipSuccessScreen(explicit, introActive) {
40593
40602
  return explicit != null ? explicit : introActive;
40594
40603
  }
40595
40604
 
40605
+ /**
40606
+ * A step bag with the flow's settings filled in wherever the step leaves them
40607
+ * unset: `step ?? flow`, key by key. The step's own value always wins, an
40608
+ * explicit `false` included, so a flow-wide setting never overrides a step.
40609
+ *
40610
+ * `flow` is typed against the step bag, so a setting the step has no prop for
40611
+ * (`debugMode` on the signature step, say) fails to compile instead of being
40612
+ * forwarded to a component that ignores it.
40613
+ */
40614
+ function inheritFlowSettings(step, flow) {
40615
+ var inherited = {};
40616
+ for (var key in flow) {
40617
+ if (!Object.prototype.hasOwnProperty.call(flow, key)) continue;
40618
+ if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
40619
+ inherited[key] = flow[key];
40620
+ }
40621
+ }
40622
+ return _extends({}, step, inherited);
40623
+ }
40624
+
40596
40625
  function buildRingScreenProps(_ref) {
40597
40626
  var ringMode = _ref.ringMode,
40598
40627
  finishingVerbiage = _ref.finishingVerbiage,
@@ -40721,7 +40750,7 @@ function withVirtualCameras(camera, allowVirtualCameras) {
40721
40750
  return base;
40722
40751
  }
40723
40752
 
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"];
40753
+ 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
40754
  var EMPTY_ID_CAPTURE$3 = {};
40726
40755
  var EMPTY_SIGNATURE_CAPTURE$5 = {};
40727
40756
  var EMPTY_ID_VIEW$3 = {};
@@ -40733,7 +40762,7 @@ function IdValidationFlow(_ref) {
40733
40762
  _ref$capture = _ref.capture,
40734
40763
  capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
40735
40764
  _ref$view = _ref.view,
40736
- view = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
40765
+ viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
40737
40766
  _ref$submission = _ref.submission,
40738
40767
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
40739
40768
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -40743,14 +40772,17 @@ function IdValidationFlow(_ref) {
40743
40772
  signatureController = _ref.signatureController,
40744
40773
  _ref$signatureCapture = _ref.signatureCapture,
40745
40774
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
40746
- signatureView = _ref.signatureView,
40775
+ signatureViewProp = _ref.signatureView,
40747
40776
  captureSignature = _ref.captureSignature,
40748
40777
  captureSignatureVideo = _ref.captureSignatureVideo,
40749
40778
  allowVirtualCameras = _ref.allowVirtualCameras,
40750
40779
  theme = _ref.theme,
40751
40780
  className = _ref.className,
40752
- _ref$showSuccessScree = _ref.showSuccessScreen,
40753
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
40781
+ lang = _ref.lang,
40782
+ debugMode = _ref.debugMode,
40783
+ skipSuccessScreen = _ref.skipSuccessScreen,
40784
+ showResultScreen = _ref.showResultScreen,
40785
+ showSuccessScreen = _ref.showSuccessScreen,
40754
40786
  _ref$showDiagnostics = _ref.showDiagnostics,
40755
40787
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
40756
40788
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -40762,6 +40794,23 @@ function IdValidationFlow(_ref) {
40762
40794
  onSubmitted = _ref.onSubmitted,
40763
40795
  children = _ref.children,
40764
40796
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
40797
+ // Flow-wide settings reach each step unless its own bag sets them.
40798
+ var _useMemo = React.useMemo(function () {
40799
+ return {
40800
+ view: inheritFlowSettings(viewProp, {
40801
+ lang: lang,
40802
+ debugMode: debugMode,
40803
+ skipSuccessScreen: skipSuccessScreen
40804
+ }),
40805
+ signatureView: inheritFlowSettings(signatureViewProp, {
40806
+ lang: lang,
40807
+ showCaptureDiagnostics: debugMode,
40808
+ skipSuccessScreen: skipSuccessScreen
40809
+ })
40810
+ };
40811
+ }, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
40812
+ view = _useMemo.view,
40813
+ signatureView = _useMemo.signatureView;
40765
40814
  useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
40766
40815
  capture: capture,
40767
40816
  signatureCapture: signatureCapture
@@ -40883,13 +40932,14 @@ function IdValidationFlow(_ref) {
40883
40932
  action: SubmissionAction.VALIDATE,
40884
40933
  submission: submission,
40885
40934
  theme: theme,
40886
- className: className
40935
+ className: className,
40936
+ lang: lang
40887
40937
  }, callbacks, {
40888
40938
  children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
40889
40939
  steps: steps,
40890
40940
  initialArtifacts: initialArtifacts,
40891
40941
  captureOnly: captureOnly,
40892
- showSuccessScreen: showSuccessScreen,
40942
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
40893
40943
  showDiagnostics: showDiagnostics,
40894
40944
  onArtifactsCollected: onCaptured,
40895
40945
  onSubmitted: onSubmitted
@@ -40908,13 +40958,16 @@ function FaceValidationFlow(_ref) {
40908
40958
  _ref$capture = _ref.capture,
40909
40959
  capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
40910
40960
  _ref$view = _ref.view,
40911
- view = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
40961
+ viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
40912
40962
  _ref$submission = _ref.submission,
40913
40963
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
40914
40964
  _ref$initialArtifacts = _ref.initialArtifacts,
40915
40965
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
40916
40966
  theme = _ref.theme,
40917
40967
  className = _ref.className,
40968
+ lang = _ref.lang,
40969
+ debugMode = _ref.debugMode,
40970
+ skipSuccessScreen = _ref.skipSuccessScreen,
40918
40971
  geolocationEnabled = _ref.geolocationEnabled,
40919
40972
  geolocationRequired = _ref.geolocationRequired,
40920
40973
  captureProgress = _ref.captureProgress,
@@ -40923,6 +40976,14 @@ function FaceValidationFlow(_ref) {
40923
40976
  onCaptured = _ref.onCaptured,
40924
40977
  onCaptureError = _ref.onCaptureError,
40925
40978
  children = _ref.children;
40979
+ // Flow-wide settings reach the step unless its own bag sets them.
40980
+ var view = React.useMemo(function () {
40981
+ return inheritFlowSettings(viewProp, {
40982
+ lang: lang,
40983
+ debugMode: debugMode,
40984
+ skipSuccessScreen: skipSuccessScreen
40985
+ });
40986
+ }, [debugMode, lang, skipSuccessScreen, viewProp]);
40926
40987
  var checkLivenessOptions = capture.checkLivenessOptions,
40927
40988
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
40928
40989
  useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -40983,6 +41044,7 @@ function FaceValidationFlow(_ref) {
40983
41044
  submission: submission,
40984
41045
  theme: theme,
40985
41046
  className: className,
41047
+ lang: lang,
40986
41048
  geolocationEnabled: geolocationEnabled,
40987
41049
  geolocationRequired: geolocationRequired,
40988
41050
  captureProgress: captureProgress,
@@ -40997,7 +41059,7 @@ function FaceValidationFlow(_ref) {
40997
41059
  });
40998
41060
  }
40999
41061
 
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"],
41062
+ 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
41063
  _excluded2$3 = ["checkLivenessOptions"];
41002
41064
  var EMPTY_ID_CAPTURE$2 = {};
41003
41065
  var EMPTY_FACE_CAPTURE$4 = {};
@@ -41019,10 +41081,10 @@ function IdAndFaceValidationFlow(_ref) {
41019
41081
  _ref$signatureCapture = _ref.signatureCapture,
41020
41082
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
41021
41083
  _ref$idView = _ref.idView,
41022
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
41084
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
41023
41085
  _ref$faceView = _ref.faceView,
41024
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
41025
- signatureView = _ref.signatureView,
41086
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
41087
+ signatureViewProp = _ref.signatureView,
41026
41088
  captureSignature = _ref.captureSignature,
41027
41089
  captureSignatureVideo = _ref.captureSignatureVideo,
41028
41090
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -41032,8 +41094,11 @@ function IdAndFaceValidationFlow(_ref) {
41032
41094
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
41033
41095
  theme = _ref.theme,
41034
41096
  className = _ref.className,
41035
- _ref$showSuccessScree = _ref.showSuccessScreen,
41036
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
41097
+ lang = _ref.lang,
41098
+ debugMode = _ref.debugMode,
41099
+ skipSuccessScreen = _ref.skipSuccessScreen,
41100
+ showResultScreen = _ref.showResultScreen,
41101
+ showSuccessScreen = _ref.showSuccessScreen,
41037
41102
  _ref$showDiagnostics = _ref.showDiagnostics,
41038
41103
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
41039
41104
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -41047,6 +41112,26 @@ function IdAndFaceValidationFlow(_ref) {
41047
41112
  onStepCompleted = _ref.onStepCompleted,
41048
41113
  children = _ref.children,
41049
41114
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
41115
+ // Flow-wide settings reach each step unless its own bag sets them.
41116
+ var _useMemo = React.useMemo(function () {
41117
+ var settings = {
41118
+ lang: lang,
41119
+ debugMode: debugMode,
41120
+ skipSuccessScreen: skipSuccessScreen
41121
+ };
41122
+ return {
41123
+ idView: inheritFlowSettings(idViewProp, settings),
41124
+ faceView: inheritFlowSettings(faceViewProp, settings),
41125
+ signatureView: inheritFlowSettings(signatureViewProp, {
41126
+ lang: lang,
41127
+ showCaptureDiagnostics: debugMode,
41128
+ skipSuccessScreen: skipSuccessScreen
41129
+ })
41130
+ };
41131
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
41132
+ idView = _useMemo.idView,
41133
+ faceView = _useMemo.faceView,
41134
+ signatureView = _useMemo.signatureView;
41050
41135
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41051
41136
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
41052
41137
  useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -41217,12 +41302,13 @@ function IdAndFaceValidationFlow(_ref) {
41217
41302
  action: SubmissionAction.VALIDATE,
41218
41303
  submission: submission,
41219
41304
  theme: theme,
41220
- className: className
41305
+ className: className,
41306
+ lang: lang
41221
41307
  }, callbacks, {
41222
41308
  children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
41223
41309
  steps: steps,
41224
41310
  initialArtifacts: initialArtifacts,
41225
- showSuccessScreen: showSuccessScreen,
41311
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
41226
41312
  showDiagnostics: showDiagnostics,
41227
41313
  onSubmitted: onSubmitted,
41228
41314
  onStepStarted: onStepStarted,
@@ -41277,9 +41363,9 @@ function SignatureKYCFlow(_ref) {
41277
41363
  _ref$signatureCapture = _ref.signatureCapture,
41278
41364
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
41279
41365
  _ref$faceView = _ref.faceView,
41280
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
41366
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
41281
41367
  _ref$signatureView = _ref.signatureView,
41282
- signatureView = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
41368
+ signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
41283
41369
  challengeResponse = _ref.challengeResponse,
41284
41370
  allowVirtualCameras = _ref.allowVirtualCameras,
41285
41371
  _ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
@@ -41305,6 +41391,8 @@ function SignatureKYCFlow(_ref) {
41305
41391
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
41306
41392
  theme = _ref.theme,
41307
41393
  className = _ref.className,
41394
+ lang = _ref.lang,
41395
+ debugMode = _ref.debugMode,
41308
41396
  geolocationEnabled = _ref.geolocationEnabled,
41309
41397
  geolocationRequired = _ref.geolocationRequired,
41310
41398
  captureProgress = _ref.captureProgress,
@@ -41312,6 +41400,22 @@ function SignatureKYCFlow(_ref) {
41312
41400
  loadingSpinner = _ref.loadingSpinner,
41313
41401
  onCaptured = _ref.onCaptured,
41314
41402
  onCaptureError = _ref.onCaptureError;
41403
+ // Flow-wide settings reach each step unless its own bag sets them.
41404
+ var _useMemo = React.useMemo(function () {
41405
+ return {
41406
+ faceView: inheritFlowSettings(faceViewProp, {
41407
+ lang: lang,
41408
+ debugMode: debugMode
41409
+ }),
41410
+ signatureView: inheritFlowSettings(signatureViewProp, {
41411
+ lang: lang,
41412
+ showCaptureDiagnostics: debugMode,
41413
+ skipSuccessScreen: skipSuccessScreen
41414
+ })
41415
+ };
41416
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
41417
+ faceView = _useMemo.faceView,
41418
+ signatureView = _useMemo.signatureView;
41315
41419
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41316
41420
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
41317
41421
  useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -41322,7 +41426,7 @@ function SignatureKYCFlow(_ref) {
41322
41426
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
41323
41427
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
41324
41428
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
41325
- var legacyVideoLayout = (_signatureView$legacy = signatureView == null ? void 0 : signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
41429
+ var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
41326
41430
  var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
41327
41431
  var sharedVideoRef = React.useRef(null);
41328
41432
  var _useState = React.useState(null),
@@ -41506,6 +41610,7 @@ function SignatureKYCFlow(_ref) {
41506
41610
  submission: submission,
41507
41611
  theme: theme,
41508
41612
  className: className,
41613
+ lang: lang,
41509
41614
  geolocationEnabled: geolocationEnabled,
41510
41615
  geolocationRequired: geolocationRequired,
41511
41616
  captureProgress: captureProgress,
@@ -41515,7 +41620,7 @@ function SignatureKYCFlow(_ref) {
41515
41620
  completed: stage === 'complete'
41516
41621
  }), stage !== 'complete' ? jsxRuntime.jsxs(HandoffRoot, {
41517
41622
  children: [jsxRuntime.jsx(SignatureCaptureView, _extends({}, signatureView, {
41518
- skipSuccessScreen: impliedSkipSuccessScreen(skipSuccessScreen != null ? skipSuccessScreen : signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
41623
+ skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
41519
41624
  controller: resolvedSignatureController,
41520
41625
  sessionReady: renderedStage === 'signature-capture',
41521
41626
  videoRef: sharedVideoRef,
@@ -41613,7 +41718,7 @@ var FaceStage = styledComponents.styled.div(_templateObject2 || (_templateObject
41613
41718
  return props.$visible ? 'block' : 'none';
41614
41719
  });
41615
41720
 
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"],
41721
+ 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
41722
  _excluded2$2 = ["checkLivenessOptions"];
41618
41723
  var EMPTY_ID_CAPTURE$1 = {};
41619
41724
  var EMPTY_FACE_CAPTURE$2 = {};
@@ -41637,11 +41742,11 @@ function VideoIdValidationFlow(_ref) {
41637
41742
  _ref$capture = _ref.capture,
41638
41743
  capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
41639
41744
  _ref$idView = _ref.idView,
41640
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
41745
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
41641
41746
  _ref$faceView = _ref.faceView,
41642
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
41747
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
41643
41748
  _ref$view = _ref.view,
41644
- view = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
41749
+ viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
41645
41750
  _ref$submission = _ref.submission,
41646
41751
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
41647
41752
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -41651,7 +41756,7 @@ function VideoIdValidationFlow(_ref) {
41651
41756
  signatureController = _ref.signatureController,
41652
41757
  _ref$signatureCapture = _ref.signatureCapture,
41653
41758
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
41654
- signatureView = _ref.signatureView,
41759
+ signatureViewProp = _ref.signatureView,
41655
41760
  captureSignature = _ref.captureSignature,
41656
41761
  captureSignatureVideo = _ref.captureSignatureVideo,
41657
41762
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -41663,8 +41768,11 @@ function VideoIdValidationFlow(_ref) {
41663
41768
  onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
41664
41769
  theme = _ref.theme,
41665
41770
  className = _ref.className,
41666
- _ref$showSuccessScree = _ref.showSuccessScreen,
41667
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
41771
+ lang = _ref.lang,
41772
+ debugMode = _ref.debugMode,
41773
+ skipSuccessScreen = _ref.skipSuccessScreen,
41774
+ showResultScreen = _ref.showResultScreen,
41775
+ showSuccessScreen = _ref.showSuccessScreen,
41668
41776
  _ref$showDiagnostics = _ref.showDiagnostics,
41669
41777
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
41670
41778
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -41677,6 +41785,31 @@ function VideoIdValidationFlow(_ref) {
41677
41785
  onCaptureError = _ref.onCaptureError,
41678
41786
  children = _ref.children,
41679
41787
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
41788
+ // Flow-wide settings reach each step unless its own bag sets them.
41789
+ var _useMemo = React.useMemo(function () {
41790
+ var settings = {
41791
+ lang: lang,
41792
+ debugMode: debugMode,
41793
+ skipSuccessScreen: skipSuccessScreen
41794
+ };
41795
+ return {
41796
+ idView: inheritFlowSettings(idViewProp, settings),
41797
+ faceView: inheritFlowSettings(faceViewProp, settings),
41798
+ view: inheritFlowSettings(viewProp, {
41799
+ lang: lang,
41800
+ debugMode: debugMode
41801
+ }),
41802
+ signatureView: inheritFlowSettings(signatureViewProp, {
41803
+ lang: lang,
41804
+ showCaptureDiagnostics: debugMode,
41805
+ skipSuccessScreen: skipSuccessScreen
41806
+ })
41807
+ };
41808
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
41809
+ idView = _useMemo.idView,
41810
+ faceView = _useMemo.faceView,
41811
+ view = _useMemo.view,
41812
+ signatureView = _useMemo.signatureView;
41680
41813
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
41681
41814
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
41682
41815
  useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -41842,13 +41975,14 @@ function VideoIdValidationFlow(_ref) {
41842
41975
  action: action,
41843
41976
  submission: submission,
41844
41977
  theme: theme,
41845
- className: className
41978
+ className: className,
41979
+ lang: lang
41846
41980
  }, callbacks, {
41847
41981
  children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
41848
41982
  steps: steps,
41849
41983
  initialArtifacts: initialArtifacts,
41850
41984
  captureOnly: captureOnly,
41851
- showSuccessScreen: showSuccessScreen,
41985
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
41852
41986
  showDiagnostics: showDiagnostics,
41853
41987
  onArtifactsCollected: onCaptured,
41854
41988
  onSubmitted: onSubmitted
@@ -44691,7 +44825,7 @@ function buildDocumentCaptureStep(controller, view, sessionReady) {
44691
44825
  };
44692
44826
  }
44693
44827
 
44694
- var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
44828
+ var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
44695
44829
  var EMPTY_DOCUMENTS = [];
44696
44830
  var EMPTY_CAPTURE$1 = {};
44697
44831
  var EMPTY_VIEW$2 = {};
@@ -44712,6 +44846,8 @@ function DocumentCaptureFlow(_ref) {
44712
44846
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
44713
44847
  theme = _ref.theme,
44714
44848
  className = _ref.className,
44849
+ lang = _ref.lang,
44850
+ debugMode = _ref.debugMode,
44715
44851
  onDocumentCaptured = _ref.onDocumentCaptured,
44716
44852
  onDocumentUploaded = _ref.onDocumentUploaded,
44717
44853
  onComplete = _ref.onComplete,
@@ -44808,8 +44944,11 @@ function DocumentCaptureFlow(_ref) {
44808
44944
  var steps = React.useMemo(function () {
44809
44945
  return [buildDocumentCaptureStep(resolvedController, _extends({
44810
44946
  documents: documents
44811
- }, view))];
44812
- }, [documents, resolvedController, view]);
44947
+ }, inheritFlowSettings(view, {
44948
+ lang: lang,
44949
+ debugMode: debugMode
44950
+ })))];
44951
+ }, [debugMode, documents, lang, resolvedController, view]);
44813
44952
  var onArtifactsCollected = React.useCallback(function () {
44814
44953
  // captureOnly hands the (empty) artifacts back here; completion is reported
44815
44954
  // through onComplete with the documents instead.
@@ -44819,7 +44958,8 @@ function DocumentCaptureFlow(_ref) {
44819
44958
  action: SubmissionAction.NONE,
44820
44959
  submission: submission,
44821
44960
  theme: theme,
44822
- className: className
44961
+ className: className,
44962
+ lang: lang
44823
44963
  }, callbacks, {
44824
44964
  children: [jsxRuntime.jsx(CompositeWizard, {
44825
44965
  steps: steps,
@@ -44830,7 +44970,7 @@ function DocumentCaptureFlow(_ref) {
44830
44970
  }));
44831
44971
  }
44832
44972
 
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"],
44973
+ 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
44974
  _excluded2$1 = ["checkLivenessOptions"];
44835
44975
  var EMPTY_FACE_CAPTURE$1 = {};
44836
44976
  var EMPTY_SIGNATURE_CAPTURE$1 = {};
@@ -44847,8 +44987,8 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44847
44987
  _ref$signatureCapture = _ref.signatureCapture,
44848
44988
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
44849
44989
  _ref$faceView = _ref.faceView,
44850
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
44851
- signatureView = _ref.signatureView,
44990
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
44991
+ signatureViewProp = _ref.signatureView,
44852
44992
  captureSignature = _ref.captureSignature,
44853
44993
  captureSignatureVideo = _ref.captureSignatureVideo,
44854
44994
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -44856,8 +44996,11 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44856
44996
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
44857
44997
  theme = _ref.theme,
44858
44998
  className = _ref.className,
44859
- _ref$showSuccessScree = _ref.showSuccessScreen,
44860
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
44999
+ lang = _ref.lang,
45000
+ debugMode = _ref.debugMode,
45001
+ skipSuccessScreen = _ref.skipSuccessScreen,
45002
+ showResultScreen = _ref.showResultScreen,
45003
+ showSuccessScreen = _ref.showSuccessScreen,
44861
45004
  _ref$showDiagnostics = _ref.showDiagnostics,
44862
45005
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
44863
45006
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -44869,6 +45012,23 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
44869
45012
  onCaptureError = _ref.onCaptureError,
44870
45013
  children = _ref.children,
44871
45014
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
45015
+ // Flow-wide settings reach each step unless its own bag sets them.
45016
+ var _useMemo = React.useMemo(function () {
45017
+ return {
45018
+ faceView: inheritFlowSettings(faceViewProp, {
45019
+ lang: lang,
45020
+ debugMode: debugMode,
45021
+ skipSuccessScreen: skipSuccessScreen
45022
+ }),
45023
+ signatureView: inheritFlowSettings(signatureViewProp, {
45024
+ lang: lang,
45025
+ showCaptureDiagnostics: debugMode,
45026
+ skipSuccessScreen: skipSuccessScreen
45027
+ })
45028
+ };
45029
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
45030
+ faceView = _useMemo.faceView,
45031
+ signatureView = _useMemo.signatureView;
44872
45032
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
44873
45033
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
44874
45034
  useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -45000,19 +45160,20 @@ function CustomerBiometricsEnrollmentFlow(_ref) {
45000
45160
  submission: submission,
45001
45161
  showEnrollmentId: showDiagnostics,
45002
45162
  theme: theme,
45003
- className: className
45163
+ className: className,
45164
+ lang: lang
45004
45165
  }, callbacks, {
45005
45166
  children: [jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
45006
45167
  steps: steps,
45007
45168
  initialArtifacts: initialArtifacts,
45008
- showSuccessScreen: showSuccessScreen,
45169
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
45009
45170
  showDiagnostics: showDiagnostics,
45010
45171
  onSubmitted: onSubmitted
45011
45172
  })), children]
45012
45173
  }));
45013
45174
  }
45014
45175
 
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"],
45176
+ 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
45177
  _excluded2 = ["checkLivenessOptions"];
45017
45178
  var EMPTY_ID_CAPTURE = {};
45018
45179
  var EMPTY_FACE_CAPTURE = {};
@@ -45045,11 +45206,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45045
45206
  _ref$videoIdCapture = _ref.videoIdCapture,
45046
45207
  videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
45047
45208
  _ref$idView = _ref.idView,
45048
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
45209
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
45049
45210
  _ref$faceView = _ref.faceView,
45050
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
45051
- signatureView = _ref.signatureView,
45052
- videoIdView = _ref.videoIdView,
45211
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
45212
+ signatureViewProp = _ref.signatureView,
45213
+ videoIdViewProp = _ref.videoIdView,
45053
45214
  captureSignature = _ref.captureSignature,
45054
45215
  captureSignatureVideo = _ref.captureSignatureVideo,
45055
45216
  _ref$captureVideoId = _ref.captureVideoId,
@@ -45059,8 +45220,11 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45059
45220
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
45060
45221
  theme = _ref.theme,
45061
45222
  className = _ref.className,
45062
- _ref$showSuccessScree = _ref.showSuccessScreen,
45063
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
45223
+ lang = _ref.lang,
45224
+ debugMode = _ref.debugMode,
45225
+ skipSuccessScreen = _ref.skipSuccessScreen,
45226
+ showResultScreen = _ref.showResultScreen,
45227
+ showSuccessScreen = _ref.showSuccessScreen,
45064
45228
  _ref$showDiagnostics = _ref.showDiagnostics,
45065
45229
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
45066
45230
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -45072,7 +45236,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45072
45236
  onCaptureError = _ref.onCaptureError,
45073
45237
  children = _ref.children,
45074
45238
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
45075
- var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
45239
+ // Flow-wide settings reach each step unless its own bag sets them.
45240
+ var _useMemo = React.useMemo(function () {
45241
+ var settings = {
45242
+ lang: lang,
45243
+ debugMode: debugMode,
45244
+ skipSuccessScreen: skipSuccessScreen
45245
+ };
45246
+ return {
45247
+ idView: inheritFlowSettings(idViewProp, settings),
45248
+ faceView: inheritFlowSettings(faceViewProp, settings),
45249
+ signatureView: inheritFlowSettings(signatureViewProp, {
45250
+ lang: lang,
45251
+ showCaptureDiagnostics: debugMode,
45252
+ skipSuccessScreen: skipSuccessScreen
45253
+ }),
45254
+ videoIdView: inheritFlowSettings(videoIdViewProp, {
45255
+ lang: lang,
45256
+ debugMode: debugMode
45257
+ })
45258
+ };
45259
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
45260
+ idView = _useMemo.idView,
45261
+ faceView = _useMemo.faceView,
45262
+ signatureView = _useMemo.signatureView,
45263
+ videoIdView = _useMemo.videoIdView;
45076
45264
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
45077
45265
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
45078
45266
  useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -45288,26 +45476,31 @@ function CustomerIdAndBiometricsEnrollmentFlow(_ref) {
45288
45476
  submission: submission,
45289
45477
  showEnrollmentId: showDiagnostics,
45290
45478
  theme: theme,
45291
- className: className
45479
+ className: className,
45480
+ lang: lang
45292
45481
  }, callbacks, {
45293
45482
  children: [steps ? jsxRuntime.jsx(CompositeWizard, _extends({}, ringScreens, {
45294
45483
  steps: steps,
45295
45484
  initialArtifacts: initialArtifacts,
45296
- showSuccessScreen: showSuccessScreen,
45485
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
45297
45486
  showDiagnostics: showDiagnostics,
45298
45487
  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]
45488
+ })) : jsxRuntime.jsx(PreparingScreen, {}), children]
45309
45489
  }));
45310
45490
  }
45491
+ /** Translated inside the chassis, so the flow's `lang` reaches it. */
45492
+ function PreparingScreen() {
45493
+ var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
45494
+ // `loadingStage` is what enables the customer's `loadingSpinner`: without it
45495
+ // OrbStatusScreen hard-renders the orb, so this was the one loading surface
45496
+ // in the SDK that ignored a supplied component outright — in the flow whose
45497
+ // double-loader prompted the fix.
45498
+ return jsxRuntime.jsx(OrbStatusScreen, {
45499
+ state: "solving",
45500
+ text: preparing.preparingText,
45501
+ loadingStage: "preparing"
45502
+ });
45503
+ }
45311
45504
 
45312
45505
  var ALLOWED_MISMATCH_RETRIES$1 = 0;
45313
45506
  var MAX_LIVENESS_ATTEMPTS$1 = 3;
@@ -45975,6 +46168,8 @@ function CustomerMatchFlow(_ref) {
45975
46168
  view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
45976
46169
  theme = _ref.theme,
45977
46170
  className = _ref.className,
46171
+ lang = _ref.lang,
46172
+ debugMode = _ref.debugMode,
45978
46173
  geolocationEnabled = _ref.geolocationEnabled,
45979
46174
  geolocationRequired = _ref.geolocationRequired,
45980
46175
  remoteDiagnostics = _ref.remoteDiagnostics,
@@ -46037,7 +46232,10 @@ function CustomerMatchFlow(_ref) {
46037
46232
  // Only the auto-continue half applies here: the plain SelfieCaptureView has
46038
46233
  // no capture review screen to skip (that is FaceLivenessView's), and this
46039
46234
  // flow's own terminal screens are governed by `skipSuccessScreen` below.
46040
- var resolvedView = _extends({}, view, {
46235
+ var resolvedView = _extends({}, inheritFlowSettings(view, {
46236
+ lang: lang,
46237
+ debugMode: debugMode
46238
+ }), {
46041
46239
  autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
46042
46240
  });
46043
46241
  // Reset during render, not in an effect: an auto-requesting capture stage
@@ -46132,6 +46330,7 @@ function CustomerMatchFlow(_ref) {
46132
46330
  submission: submission,
46133
46331
  theme: theme,
46134
46332
  className: className,
46333
+ lang: lang,
46135
46334
  geolocationEnabled: geolocationEnabled,
46136
46335
  geolocationRequired: geolocationRequired,
46137
46336
  remoteDiagnostics: remoteDiagnostics,
@@ -47871,7 +48070,7 @@ function mapIdValidationProps(props, ctx) {
47871
48070
  // post-submission diagnostics page on this one flag
47872
48071
  // (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
47873
48072
  // here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
47874
- // while the terminal page needs `showSuccessScreen` to render at all and
48073
+ // while the terminal page needs `showResultScreen` to render at all and
47875
48074
  // `showDiagnostics` to include the request/response bodies. Mapping only
47876
48075
  // the first left `debugMode` customers on a blank screen after submitting,
47877
48076
  // because CompositeWizard falls through to `return null`.
@@ -47879,7 +48078,7 @@ function mapIdValidationProps(props, ctx) {
47879
48078
  // Both take the same flag: sdk2's page showed the response body (behind a
47880
48079
  // toggle) whenever debugMode was on, so gating diagnostics separately here
47881
48080
  // would be a NEW restriction, not parity.
47882
- showSuccessScreen: props.debugMode,
48081
+ showResultScreen: props.debugMode,
47883
48082
  showDiagnostics: props.debugMode,
47884
48083
  // `onSubmit` is NOT mapped to a flow prop: it goes to the client config
47885
48084
  // (see mapClientConfig), which is the layer sdk2 put it at and the only
@@ -48060,7 +48259,7 @@ function mapIdAndFaceValidationProps(props, ctx) {
48060
48259
  remoteDiagnostics: props.remoteDiagnostics,
48061
48260
  loadingSpinner: props.loadingSpinner,
48062
48261
  // See mapIdValidationProps for why `debugMode` feeds both.
48063
- showSuccessScreen: props.debugMode,
48262
+ showResultScreen: props.debugMode,
48064
48263
  showDiagnostics: props.debugMode,
48065
48264
  onStepStarted: emit ? function (stepId) {
48066
48265
  var stage = journeyStageForStepId(stepId);
@@ -48182,7 +48381,7 @@ function mapSignatureKYCProps(props, ctx) {
48182
48381
  // both the boolean and async callback forms at the flow-level seam.
48183
48382
  //
48184
48383
  // `debugMode` forces it back on, completing the fold mapIdValidationProps
48185
- // does with `showSuccessScreen`/`showDiagnostics`: the capture readout
48384
+ // does with `showResultScreen`/`showDiagnostics`: the capture readout
48186
48385
  // renders INSIDE the review, so a consumer who skips the review and turns
48187
48386
  // debugMode on would otherwise get the switch with nowhere for it to show
48188
48387
  // — silently, in the one configuration it exists for.
@@ -48353,7 +48552,7 @@ function mapVideoIdValidationProps(props, ctx) {
48353
48552
  remoteDiagnostics: props.remoteDiagnostics,
48354
48553
  loadingSpinner: props.loadingSpinner,
48355
48554
  // See mapIdValidationProps for why `debugMode` feeds both.
48356
- showSuccessScreen: props.debugMode,
48555
+ showResultScreen: props.debugMode,
48357
48556
  showDiagnostics: props.debugMode,
48358
48557
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48359
48558
  onRequestFailure: props.onRequestFailure,
@@ -48584,7 +48783,7 @@ function mapCustomerBiometricsEnrollmentProps(props, ctx) {
48584
48783
  remoteDiagnostics: props.remoteDiagnostics,
48585
48784
  loadingSpinner: props.loadingSpinner,
48586
48785
  // See mapIdValidationProps for why `debugMode` feeds both.
48587
- showSuccessScreen: props.debugMode,
48786
+ showResultScreen: props.debugMode,
48588
48787
  showDiagnostics: props.debugMode,
48589
48788
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48590
48789
  // sdk2's enrollment twin of `onApproved`.
@@ -48677,7 +48876,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48677
48876
  remoteDiagnostics: props.remoteDiagnostics,
48678
48877
  loadingSpinner: props.loadingSpinner,
48679
48878
  // See mapIdValidationProps for why `debugMode` feeds both.
48680
- showSuccessScreen: props.debugMode,
48879
+ showResultScreen: props.debugMode,
48681
48880
  showDiagnostics: props.debugMode,
48682
48881
  onComplete: withSubmissionRequest(props.onComplete, ctx),
48683
48882
  onApproved: withSubmissionRequest(props.onEnrolled, ctx),
@@ -48687,7 +48886,7 @@ function mapCustomerIdAndBiometricsEnrollmentProps(props, ctx) {
48687
48886
  });
48688
48887
  }
48689
48888
 
48690
- var webSdkVersion = '2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb';
48889
+ var webSdkVersion = '2.6.3-t3code-shared-flow-settings-e5702c2';
48691
48890
 
48692
48891
  // GENERATED by scripts/styleBagTypes.mjs from
48693
48892
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not