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.
@@ -12289,12 +12289,17 @@
12289
12289
  * Binds one rendered SDK tree to its requested language. A fixed translator
12290
12290
  * avoids waiting for a post-render changeLanguage() effect and keeps SSR and
12291
12291
  * concurrently mounted SDK views independent of the shared detector instance.
12292
+ *
12293
+ * An unset `lang` keeps whatever scope encloses it (or none), so a caller can
12294
+ * render the provider unconditionally: toggling `lang` between unset and set
12295
+ * then never changes the element tree, and never remounts the subtree.
12292
12296
  */
12293
12297
  function SdkLanguageProvider(_ref) {
12294
12298
  var children = _ref.children,
12295
12299
  lang = _ref.lang;
12300
+ var inherited = React.useContext(SdkLanguageContext);
12296
12301
  return /*#__PURE__*/React.createElement(SdkLanguageContext.Provider, {
12297
- value: lang === 'auto' ? detectedLanguage : lang
12302
+ value: lang === undefined ? inherited : lang === 'auto' ? detectedLanguage : lang
12298
12303
  }, children);
12299
12304
  }
12300
12305
  /**
@@ -45842,15 +45847,15 @@
45842
45847
  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
45848
 
45844
45849
  function CompositeWizard(_ref) {
45845
- var _successScreen$isAppr;
45850
+ var _successScreen$isAppr, _ref2;
45846
45851
  var steps = _ref.steps,
45847
45852
  sessionReadyProp = _ref.sessionReady,
45848
45853
  _ref$initialArtifacts = _ref.initialArtifacts,
45849
45854
  initialArtifacts = _ref$initialArtifacts === void 0 ? {} : _ref$initialArtifacts,
45850
45855
  _ref$captureOnly = _ref.captureOnly,
45851
45856
  captureOnly = _ref$captureOnly === void 0 ? false : _ref$captureOnly,
45852
- _ref$showSuccessScree = _ref.showSuccessScreen,
45853
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
45857
+ showResultScreen = _ref.showResultScreen,
45858
+ showSuccessScreen = _ref.showSuccessScreen,
45854
45859
  _ref$showDiagnostics = _ref.showDiagnostics,
45855
45860
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
45856
45861
  successClassNames = _ref.successClassNames,
@@ -46000,7 +46005,7 @@
46000
46005
  classNames: successScreen.classNames
46001
46006
  });
46002
46007
  }
46003
- if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && showSuccessScreen) {
46008
+ if (submissionStatus === SubmissionStatus.SUBMITTED && submissionResponse && ((_ref2 = showResultScreen != null ? showResultScreen : showSuccessScreen) != null ? _ref2 : false)) {
46004
46009
  return jsx(SubmissionSuccess, {
46005
46010
  response: submissionResponse,
46006
46011
  request: lastSubmissionRequest,
@@ -46037,8 +46042,8 @@
46037
46042
  });
46038
46043
  return labels;
46039
46044
  }
46040
- function SubmittingScreen(_ref2) {
46041
- var text = _ref2.text;
46045
+ function SubmittingScreen(_ref3) {
46046
+ var text = _ref3.text;
46042
46047
  return jsx(OrbStatusScreen, {
46043
46048
  state: "working",
46044
46049
  text: text,
@@ -46797,7 +46802,7 @@
46797
46802
  }
46798
46803
 
46799
46804
  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"];
46805
+ var _excluded$9 = ["client", "action", "submission", "theme", "className", "geolocationEnabled", "geolocationRequired", "captureProgress", "remoteDiagnostics", "loadingSpinner", "showEnrollmentId", "lang", "children"];
46801
46806
  function FlowChassis(_ref) {
46802
46807
  var client = _ref.client,
46803
46808
  action = _ref.action,
@@ -46814,6 +46819,7 @@
46814
46819
  loadingSpinner = _ref.loadingSpinner,
46815
46820
  _ref$showEnrollmentId = _ref.showEnrollmentId,
46816
46821
  showEnrollmentId = _ref$showEnrollmentId === void 0 ? false : _ref$showEnrollmentId,
46822
+ lang = _ref.lang,
46817
46823
  children = _ref.children,
46818
46824
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$9);
46819
46825
  var geolocation = useGeolocation(geolocationEnabled);
@@ -46823,26 +46829,29 @@
46823
46829
  client: client,
46824
46830
  children: [jsx(RemoteDiagnosticsMount, {
46825
46831
  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
46832
+ }), jsx(SdkLanguageProvider, {
46833
+ lang: lang,
46834
+ children: jsx(ThemeProvider, {
46835
+ theme: theme,
46836
+ children: jsx(LoadingSpinnerProvider, {
46837
+ spinner: loadingSpinner,
46838
+ children: jsx(SubmissionProvider, _extends$1({
46839
+ client: client,
46840
+ action: action,
46841
+ options: submission,
46842
+ geolocation: geolocation.position
46843
+ }, callbacks, {
46844
+ children: jsx(FlowPage, {
46845
+ className: className,
46846
+ enrollmentId: showEnrollmentId ? submission == null ? void 0 : submission.enrollmentId : undefined,
46847
+ children: jsx(AuthGate, {
46848
+ children: geolocationRequired && geolocation.blocked ? jsx(GeolocationAccessDeniedOverlay, {
46849
+ onRetry: geolocation.retry
46850
+ }) : children
46851
+ })
46843
46852
  })
46844
- })
46845
- }))
46853
+ }))
46854
+ })
46846
46855
  })
46847
46856
  })]
46848
46857
  })
@@ -47002,6 +47011,26 @@
47002
47011
  return explicit != null ? explicit : introActive;
47003
47012
  }
47004
47013
 
47014
+ /**
47015
+ * A step bag with the flow's settings filled in wherever the step leaves them
47016
+ * unset: `step ?? flow`, key by key. The step's own value always wins, an
47017
+ * explicit `false` included, so a flow-wide setting never overrides a step.
47018
+ *
47019
+ * `flow` is typed against the step bag, so a setting the step has no prop for
47020
+ * (`debugMode` on the signature step, say) fails to compile instead of being
47021
+ * forwarded to a component that ignores it.
47022
+ */
47023
+ function inheritFlowSettings(step, flow) {
47024
+ var inherited = {};
47025
+ for (var key in flow) {
47026
+ if (!Object.prototype.hasOwnProperty.call(flow, key)) continue;
47027
+ if ((step == null ? void 0 : step[key]) === undefined && flow[key] !== undefined) {
47028
+ inherited[key] = flow[key];
47029
+ }
47030
+ }
47031
+ return _extends$1({}, step, inherited);
47032
+ }
47033
+
47005
47034
  function buildRingScreenProps(_ref) {
47006
47035
  var ringMode = _ref.ringMode,
47007
47036
  finishingVerbiage = _ref.finishingVerbiage,
@@ -47130,7 +47159,7 @@
47130
47159
  return base;
47131
47160
  }
47132
47161
 
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"];
47162
+ 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
47163
  var EMPTY_ID_CAPTURE$3 = {};
47135
47164
  var EMPTY_SIGNATURE_CAPTURE$5 = {};
47136
47165
  var EMPTY_ID_VIEW$3 = {};
@@ -47142,7 +47171,7 @@
47142
47171
  _ref$capture = _ref.capture,
47143
47172
  capture = _ref$capture === void 0 ? EMPTY_ID_CAPTURE$3 : _ref$capture,
47144
47173
  _ref$view = _ref.view,
47145
- view = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
47174
+ viewProp = _ref$view === void 0 ? EMPTY_ID_VIEW$3 : _ref$view,
47146
47175
  _ref$submission = _ref.submission,
47147
47176
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$6 : _ref$submission,
47148
47177
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -47152,14 +47181,17 @@
47152
47181
  signatureController = _ref.signatureController,
47153
47182
  _ref$signatureCapture = _ref.signatureCapture,
47154
47183
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$5 : _ref$signatureCapture,
47155
- signatureView = _ref.signatureView,
47184
+ signatureViewProp = _ref.signatureView,
47156
47185
  captureSignature = _ref.captureSignature,
47157
47186
  captureSignatureVideo = _ref.captureSignatureVideo,
47158
47187
  allowVirtualCameras = _ref.allowVirtualCameras,
47159
47188
  theme = _ref.theme,
47160
47189
  className = _ref.className,
47161
- _ref$showSuccessScree = _ref.showSuccessScreen,
47162
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
47190
+ lang = _ref.lang,
47191
+ debugMode = _ref.debugMode,
47192
+ skipSuccessScreen = _ref.skipSuccessScreen,
47193
+ showResultScreen = _ref.showResultScreen,
47194
+ showSuccessScreen = _ref.showSuccessScreen,
47163
47195
  _ref$showDiagnostics = _ref.showDiagnostics,
47164
47196
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
47165
47197
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -47171,6 +47203,23 @@
47171
47203
  onSubmitted = _ref.onSubmitted,
47172
47204
  children = _ref.children,
47173
47205
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$8);
47206
+ // Flow-wide settings reach each step unless its own bag sets them.
47207
+ var _useMemo = React.useMemo(function () {
47208
+ return {
47209
+ view: inheritFlowSettings(viewProp, {
47210
+ lang: lang,
47211
+ debugMode: debugMode,
47212
+ skipSuccessScreen: skipSuccessScreen
47213
+ }),
47214
+ signatureView: inheritFlowSettings(signatureViewProp, {
47215
+ lang: lang,
47216
+ showCaptureDiagnostics: debugMode,
47217
+ skipSuccessScreen: skipSuccessScreen
47218
+ })
47219
+ };
47220
+ }, [debugMode, lang, signatureViewProp, skipSuccessScreen, viewProp]),
47221
+ view = _useMemo.view,
47222
+ signatureView = _useMemo.signatureView;
47174
47223
  useMountOnlyWarnings('IdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
47175
47224
  capture: capture,
47176
47225
  signatureCapture: signatureCapture
@@ -47292,13 +47341,14 @@
47292
47341
  action: SubmissionAction.VALIDATE,
47293
47342
  submission: submission,
47294
47343
  theme: theme,
47295
- className: className
47344
+ className: className,
47345
+ lang: lang
47296
47346
  }, callbacks, {
47297
47347
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
47298
47348
  steps: steps,
47299
47349
  initialArtifacts: initialArtifacts,
47300
47350
  captureOnly: captureOnly,
47301
- showSuccessScreen: showSuccessScreen,
47351
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
47302
47352
  showDiagnostics: showDiagnostics,
47303
47353
  onArtifactsCollected: onCaptured,
47304
47354
  onSubmitted: onSubmitted
@@ -47317,13 +47367,16 @@
47317
47367
  _ref$capture = _ref.capture,
47318
47368
  capture = _ref$capture === void 0 ? EMPTY_FACE_CAPTURE$5 : _ref$capture,
47319
47369
  _ref$view = _ref.view,
47320
- view = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
47370
+ viewProp = _ref$view === void 0 ? EMPTY_FACE_VIEW$5 : _ref$view,
47321
47371
  _ref$submission = _ref.submission,
47322
47372
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$5 : _ref$submission,
47323
47373
  _ref$initialArtifacts = _ref.initialArtifacts,
47324
47374
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$8 : _ref$initialArtifacts,
47325
47375
  theme = _ref.theme,
47326
47376
  className = _ref.className,
47377
+ lang = _ref.lang,
47378
+ debugMode = _ref.debugMode,
47379
+ skipSuccessScreen = _ref.skipSuccessScreen,
47327
47380
  geolocationEnabled = _ref.geolocationEnabled,
47328
47381
  geolocationRequired = _ref.geolocationRequired,
47329
47382
  captureProgress = _ref.captureProgress,
@@ -47332,6 +47385,14 @@
47332
47385
  onCaptured = _ref.onCaptured,
47333
47386
  onCaptureError = _ref.onCaptureError,
47334
47387
  children = _ref.children;
47388
+ // Flow-wide settings reach the step unless its own bag sets them.
47389
+ var view = React.useMemo(function () {
47390
+ return inheritFlowSettings(viewProp, {
47391
+ lang: lang,
47392
+ debugMode: debugMode,
47393
+ skipSuccessScreen: skipSuccessScreen
47394
+ });
47395
+ }, [debugMode, lang, skipSuccessScreen, viewProp]);
47335
47396
  var checkLivenessOptions = capture.checkLivenessOptions,
47336
47397
  controllerCapture = _objectWithoutPropertiesLoose(capture, _excluded$7);
47337
47398
  useMountOnlyWarnings('FaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47392,6 +47453,7 @@
47392
47453
  submission: submission,
47393
47454
  theme: theme,
47394
47455
  className: className,
47456
+ lang: lang,
47395
47457
  geolocationEnabled: geolocationEnabled,
47396
47458
  geolocationRequired: geolocationRequired,
47397
47459
  captureProgress: captureProgress,
@@ -47406,7 +47468,7 @@
47406
47468
  });
47407
47469
  }
47408
47470
 
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"],
47471
+ 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
47472
  _excluded2$3 = ["checkLivenessOptions"];
47411
47473
  var EMPTY_ID_CAPTURE$2 = {};
47412
47474
  var EMPTY_FACE_CAPTURE$4 = {};
@@ -47428,10 +47490,10 @@
47428
47490
  _ref$signatureCapture = _ref.signatureCapture,
47429
47491
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$4 : _ref$signatureCapture,
47430
47492
  _ref$idView = _ref.idView,
47431
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
47493
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$2 : _ref$idView,
47432
47494
  _ref$faceView = _ref.faceView,
47433
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
47434
- signatureView = _ref.signatureView,
47495
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$4 : _ref$faceView,
47496
+ signatureViewProp = _ref.signatureView,
47435
47497
  captureSignature = _ref.captureSignature,
47436
47498
  captureSignatureVideo = _ref.captureSignatureVideo,
47437
47499
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -47441,8 +47503,11 @@
47441
47503
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$7 : _ref$initialArtifacts,
47442
47504
  theme = _ref.theme,
47443
47505
  className = _ref.className,
47444
- _ref$showSuccessScree = _ref.showSuccessScreen,
47445
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
47506
+ lang = _ref.lang,
47507
+ debugMode = _ref.debugMode,
47508
+ skipSuccessScreen = _ref.skipSuccessScreen,
47509
+ showResultScreen = _ref.showResultScreen,
47510
+ showSuccessScreen = _ref.showSuccessScreen,
47446
47511
  _ref$showDiagnostics = _ref.showDiagnostics,
47447
47512
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
47448
47513
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -47456,6 +47521,26 @@
47456
47521
  onStepCompleted = _ref.onStepCompleted,
47457
47522
  children = _ref.children,
47458
47523
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$6);
47524
+ // Flow-wide settings reach each step unless its own bag sets them.
47525
+ var _useMemo = React.useMemo(function () {
47526
+ var settings = {
47527
+ lang: lang,
47528
+ debugMode: debugMode,
47529
+ skipSuccessScreen: skipSuccessScreen
47530
+ };
47531
+ return {
47532
+ idView: inheritFlowSettings(idViewProp, settings),
47533
+ faceView: inheritFlowSettings(faceViewProp, settings),
47534
+ signatureView: inheritFlowSettings(signatureViewProp, {
47535
+ lang: lang,
47536
+ showCaptureDiagnostics: debugMode,
47537
+ skipSuccessScreen: skipSuccessScreen
47538
+ })
47539
+ };
47540
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen]),
47541
+ idView = _useMemo.idView,
47542
+ faceView = _useMemo.faceView,
47543
+ signatureView = _useMemo.signatureView;
47459
47544
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
47460
47545
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$3);
47461
47546
  useMountOnlyWarnings('IdAndFaceValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47626,12 +47711,13 @@
47626
47711
  action: SubmissionAction.VALIDATE,
47627
47712
  submission: submission,
47628
47713
  theme: theme,
47629
- className: className
47714
+ className: className,
47715
+ lang: lang
47630
47716
  }, callbacks, {
47631
47717
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
47632
47718
  steps: steps,
47633
47719
  initialArtifacts: initialArtifacts,
47634
- showSuccessScreen: showSuccessScreen,
47720
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
47635
47721
  showDiagnostics: showDiagnostics,
47636
47722
  onSubmitted: onSubmitted,
47637
47723
  onStepStarted: onStepStarted,
@@ -47686,9 +47772,9 @@
47686
47772
  _ref$signatureCapture = _ref.signatureCapture,
47687
47773
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$3 : _ref$signatureCapture,
47688
47774
  _ref$faceView = _ref.faceView,
47689
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
47775
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$3 : _ref$faceView,
47690
47776
  _ref$signatureView = _ref.signatureView,
47691
- signatureView = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
47777
+ signatureViewProp = _ref$signatureView === void 0 ? EMPTY_SIGNATURE_VIEW : _ref$signatureView,
47692
47778
  challengeResponse = _ref.challengeResponse,
47693
47779
  allowVirtualCameras = _ref.allowVirtualCameras,
47694
47780
  _ref$allowHigherCamer = _ref.allowHigherCameraResolutions,
@@ -47714,6 +47800,8 @@
47714
47800
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$6 : _ref$initialArtifacts,
47715
47801
  theme = _ref.theme,
47716
47802
  className = _ref.className,
47803
+ lang = _ref.lang,
47804
+ debugMode = _ref.debugMode,
47717
47805
  geolocationEnabled = _ref.geolocationEnabled,
47718
47806
  geolocationRequired = _ref.geolocationRequired,
47719
47807
  captureProgress = _ref.captureProgress,
@@ -47721,6 +47809,22 @@
47721
47809
  loadingSpinner = _ref.loadingSpinner,
47722
47810
  onCaptured = _ref.onCaptured,
47723
47811
  onCaptureError = _ref.onCaptureError;
47812
+ // Flow-wide settings reach each step unless its own bag sets them.
47813
+ var _useMemo = React.useMemo(function () {
47814
+ return {
47815
+ faceView: inheritFlowSettings(faceViewProp, {
47816
+ lang: lang,
47817
+ debugMode: debugMode
47818
+ }),
47819
+ signatureView: inheritFlowSettings(signatureViewProp, {
47820
+ lang: lang,
47821
+ showCaptureDiagnostics: debugMode,
47822
+ skipSuccessScreen: skipSuccessScreen
47823
+ })
47824
+ };
47825
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
47826
+ faceView = _useMemo.faceView,
47827
+ signatureView = _useMemo.signatureView;
47724
47828
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
47725
47829
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded$5);
47726
47830
  useMountOnlyWarnings('SignatureKYCFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -47731,7 +47835,7 @@
47731
47835
  var latestSelfieCapture = useLatestCallbacks(selfieCaptureConfig);
47732
47836
  var latestSelfieLiveness = useLatestCallbacks(selfieCaptureConfig.liveness);
47733
47837
  var latestSignatureCapture = useLatestCallbacks(signatureCapture);
47734
- var legacyVideoLayout = (_signatureView$legacy = signatureView == null ? void 0 : signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
47838
+ var legacyVideoLayout = (_signatureView$legacy = signatureView.legacyVideoLayout) != null ? _signatureView$legacy : false;
47735
47839
  var onExitAfterLivenessFailure = faceView.onExitAfterFailure;
47736
47840
  var sharedVideoRef = React.useRef(null);
47737
47841
  var _useState = React.useState(null),
@@ -47915,6 +48019,7 @@
47915
48019
  submission: submission,
47916
48020
  theme: theme,
47917
48021
  className: className,
48022
+ lang: lang,
47918
48023
  geolocationEnabled: geolocationEnabled,
47919
48024
  geolocationRequired: geolocationRequired,
47920
48025
  captureProgress: captureProgress,
@@ -47924,7 +48029,7 @@
47924
48029
  completed: stage === 'complete'
47925
48030
  }), stage !== 'complete' ? jsxs(HandoffRoot, {
47926
48031
  children: [jsx(SignatureCaptureView, _extends$1({}, signatureView, {
47927
- skipSuccessScreen: impliedSkipSuccessScreen(skipSuccessScreen != null ? skipSuccessScreen : signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
48032
+ skipSuccessScreen: impliedSkipSuccessScreen(signatureView.skipSuccessScreen, isRingIntroActive(faceView)),
47928
48033
  controller: resolvedSignatureController,
47929
48034
  sessionReady: renderedStage === 'signature-capture',
47930
48035
  videoRef: sharedVideoRef,
@@ -48022,7 +48127,7 @@
48022
48127
  return props.$visible ? 'block' : 'none';
48023
48128
  });
48024
48129
 
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"],
48130
+ 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
48131
  _excluded2$2 = ["checkLivenessOptions"];
48027
48132
  var EMPTY_ID_CAPTURE$1 = {};
48028
48133
  var EMPTY_FACE_CAPTURE$2 = {};
@@ -48046,11 +48151,11 @@
48046
48151
  _ref$capture = _ref.capture,
48047
48152
  capture = _ref$capture === void 0 ? EMPTY_VIDEO_CAPTURE : _ref$capture,
48048
48153
  _ref$idView = _ref.idView,
48049
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
48154
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW$1 : _ref$idView,
48050
48155
  _ref$faceView = _ref.faceView,
48051
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
48156
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$2 : _ref$faceView,
48052
48157
  _ref$view = _ref.view,
48053
- view = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
48158
+ viewProp = _ref$view === void 0 ? EMPTY_VIDEO_VIEW : _ref$view,
48054
48159
  _ref$submission = _ref.submission,
48055
48160
  submission = _ref$submission === void 0 ? EMPTY_SUBMISSION$2 : _ref$submission,
48056
48161
  _ref$initialArtifacts = _ref.initialArtifacts,
@@ -48060,7 +48165,7 @@
48060
48165
  signatureController = _ref.signatureController,
48061
48166
  _ref$signatureCapture = _ref.signatureCapture,
48062
48167
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$2 : _ref$signatureCapture,
48063
- signatureView = _ref.signatureView,
48168
+ signatureViewProp = _ref.signatureView,
48064
48169
  captureSignature = _ref.captureSignature,
48065
48170
  captureSignatureVideo = _ref.captureSignatureVideo,
48066
48171
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -48072,8 +48177,11 @@
48072
48177
  onMicrophoneAccessDenied = _ref.onMicrophoneAccessDenied,
48073
48178
  theme = _ref.theme,
48074
48179
  className = _ref.className,
48075
- _ref$showSuccessScree = _ref.showSuccessScreen,
48076
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
48180
+ lang = _ref.lang,
48181
+ debugMode = _ref.debugMode,
48182
+ skipSuccessScreen = _ref.skipSuccessScreen,
48183
+ showResultScreen = _ref.showResultScreen,
48184
+ showSuccessScreen = _ref.showSuccessScreen,
48077
48185
  _ref$showDiagnostics = _ref.showDiagnostics,
48078
48186
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
48079
48187
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -48086,6 +48194,31 @@
48086
48194
  onCaptureError = _ref.onCaptureError,
48087
48195
  children = _ref.children,
48088
48196
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$4);
48197
+ // Flow-wide settings reach each step unless its own bag sets them.
48198
+ var _useMemo = React.useMemo(function () {
48199
+ var settings = {
48200
+ lang: lang,
48201
+ debugMode: debugMode,
48202
+ skipSuccessScreen: skipSuccessScreen
48203
+ };
48204
+ return {
48205
+ idView: inheritFlowSettings(idViewProp, settings),
48206
+ faceView: inheritFlowSettings(faceViewProp, settings),
48207
+ view: inheritFlowSettings(viewProp, {
48208
+ lang: lang,
48209
+ debugMode: debugMode
48210
+ }),
48211
+ signatureView: inheritFlowSettings(signatureViewProp, {
48212
+ lang: lang,
48213
+ showCaptureDiagnostics: debugMode,
48214
+ skipSuccessScreen: skipSuccessScreen
48215
+ })
48216
+ };
48217
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, viewProp]),
48218
+ idView = _useMemo.idView,
48219
+ faceView = _useMemo.faceView,
48220
+ view = _useMemo.view,
48221
+ signatureView = _useMemo.signatureView;
48089
48222
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
48090
48223
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$2);
48091
48224
  useMountOnlyWarnings('VideoIdValidationFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -48251,13 +48384,14 @@
48251
48384
  action: action,
48252
48385
  submission: submission,
48253
48386
  theme: theme,
48254
- className: className
48387
+ className: className,
48388
+ lang: lang
48255
48389
  }, callbacks, {
48256
48390
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
48257
48391
  steps: steps,
48258
48392
  initialArtifacts: initialArtifacts,
48259
48393
  captureOnly: captureOnly,
48260
- showSuccessScreen: showSuccessScreen,
48394
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
48261
48395
  showDiagnostics: showDiagnostics,
48262
48396
  onArtifactsCollected: onCaptured,
48263
48397
  onSubmitted: onSubmitted
@@ -51100,7 +51234,7 @@
51100
51234
  };
51101
51235
  }
51102
51236
 
51103
- var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
51237
+ var _excluded$3 = ["client", "controller", "capture", "view", "documents", "submission", "initialArtifacts", "theme", "className", "lang", "debugMode", "onDocumentCaptured", "onDocumentUploaded", "onComplete", "children"];
51104
51238
  var EMPTY_DOCUMENTS = [];
51105
51239
  var EMPTY_CAPTURE$1 = {};
51106
51240
  var EMPTY_VIEW$2 = {};
@@ -51121,6 +51255,8 @@
51121
51255
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$4 : _ref$initialArtifacts,
51122
51256
  theme = _ref.theme,
51123
51257
  className = _ref.className,
51258
+ lang = _ref.lang,
51259
+ debugMode = _ref.debugMode,
51124
51260
  onDocumentCaptured = _ref.onDocumentCaptured,
51125
51261
  onDocumentUploaded = _ref.onDocumentUploaded,
51126
51262
  onComplete = _ref.onComplete,
@@ -51217,8 +51353,11 @@
51217
51353
  var steps = React.useMemo(function () {
51218
51354
  return [buildDocumentCaptureStep(resolvedController, _extends$1({
51219
51355
  documents: documents
51220
- }, view))];
51221
- }, [documents, resolvedController, view]);
51356
+ }, inheritFlowSettings(view, {
51357
+ lang: lang,
51358
+ debugMode: debugMode
51359
+ })))];
51360
+ }, [debugMode, documents, lang, resolvedController, view]);
51222
51361
  var onArtifactsCollected = React.useCallback(function () {
51223
51362
  // captureOnly hands the (empty) artifacts back here; completion is reported
51224
51363
  // through onComplete with the documents instead.
@@ -51228,7 +51367,8 @@
51228
51367
  action: SubmissionAction.NONE,
51229
51368
  submission: submission,
51230
51369
  theme: theme,
51231
- className: className
51370
+ className: className,
51371
+ lang: lang
51232
51372
  }, callbacks, {
51233
51373
  children: [jsx(CompositeWizard, {
51234
51374
  steps: steps,
@@ -51239,7 +51379,7 @@
51239
51379
  }));
51240
51380
  }
51241
51381
 
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"],
51382
+ 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
51383
  _excluded2$1 = ["checkLivenessOptions"];
51244
51384
  var EMPTY_FACE_CAPTURE$1 = {};
51245
51385
  var EMPTY_SIGNATURE_CAPTURE$1 = {};
@@ -51256,8 +51396,8 @@
51256
51396
  _ref$signatureCapture = _ref.signatureCapture,
51257
51397
  signatureCapture = _ref$signatureCapture === void 0 ? EMPTY_SIGNATURE_CAPTURE$1 : _ref$signatureCapture,
51258
51398
  _ref$faceView = _ref.faceView,
51259
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
51260
- signatureView = _ref.signatureView,
51399
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW$1 : _ref$faceView,
51400
+ signatureViewProp = _ref.signatureView,
51261
51401
  captureSignature = _ref.captureSignature,
51262
51402
  captureSignatureVideo = _ref.captureSignatureVideo,
51263
51403
  allowVirtualCameras = _ref.allowVirtualCameras,
@@ -51265,8 +51405,11 @@
51265
51405
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$3 : _ref$initialArtifacts,
51266
51406
  theme = _ref.theme,
51267
51407
  className = _ref.className,
51268
- _ref$showSuccessScree = _ref.showSuccessScreen,
51269
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
51408
+ lang = _ref.lang,
51409
+ debugMode = _ref.debugMode,
51410
+ skipSuccessScreen = _ref.skipSuccessScreen,
51411
+ showResultScreen = _ref.showResultScreen,
51412
+ showSuccessScreen = _ref.showSuccessScreen,
51270
51413
  _ref$showDiagnostics = _ref.showDiagnostics,
51271
51414
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
51272
51415
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -51278,6 +51421,23 @@
51278
51421
  onCaptureError = _ref.onCaptureError,
51279
51422
  children = _ref.children,
51280
51423
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$2);
51424
+ // Flow-wide settings reach each step unless its own bag sets them.
51425
+ var _useMemo = React.useMemo(function () {
51426
+ return {
51427
+ faceView: inheritFlowSettings(faceViewProp, {
51428
+ lang: lang,
51429
+ debugMode: debugMode,
51430
+ skipSuccessScreen: skipSuccessScreen
51431
+ }),
51432
+ signatureView: inheritFlowSettings(signatureViewProp, {
51433
+ lang: lang,
51434
+ showCaptureDiagnostics: debugMode,
51435
+ skipSuccessScreen: skipSuccessScreen
51436
+ })
51437
+ };
51438
+ }, [debugMode, faceViewProp, lang, signatureViewProp, skipSuccessScreen]),
51439
+ faceView = _useMemo.faceView,
51440
+ signatureView = _useMemo.signatureView;
51281
51441
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
51282
51442
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2$1);
51283
51443
  useMountOnlyWarnings('CustomerBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -51409,19 +51569,20 @@
51409
51569
  submission: submission,
51410
51570
  showEnrollmentId: showDiagnostics,
51411
51571
  theme: theme,
51412
- className: className
51572
+ className: className,
51573
+ lang: lang
51413
51574
  }, callbacks, {
51414
51575
  children: [jsx(CompositeWizard, _extends$1({}, ringScreens, {
51415
51576
  steps: steps,
51416
51577
  initialArtifacts: initialArtifacts,
51417
- showSuccessScreen: showSuccessScreen,
51578
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
51418
51579
  showDiagnostics: showDiagnostics,
51419
51580
  onSubmitted: onSubmitted
51420
51581
  })), children]
51421
51582
  }));
51422
51583
  }
51423
51584
 
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"],
51585
+ 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
51586
  _excluded2 = ["checkLivenessOptions"];
51426
51587
  var EMPTY_ID_CAPTURE = {};
51427
51588
  var EMPTY_FACE_CAPTURE = {};
@@ -51454,11 +51615,11 @@
51454
51615
  _ref$videoIdCapture = _ref.videoIdCapture,
51455
51616
  videoIdCapture = _ref$videoIdCapture === void 0 ? EMPTY_VIDEO_ID_CAPTURE : _ref$videoIdCapture,
51456
51617
  _ref$idView = _ref.idView,
51457
- idView = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
51618
+ idViewProp = _ref$idView === void 0 ? EMPTY_ID_VIEW : _ref$idView,
51458
51619
  _ref$faceView = _ref.faceView,
51459
- faceView = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
51460
- signatureView = _ref.signatureView,
51461
- videoIdView = _ref.videoIdView,
51620
+ faceViewProp = _ref$faceView === void 0 ? EMPTY_FACE_VIEW : _ref$faceView,
51621
+ signatureViewProp = _ref.signatureView,
51622
+ videoIdViewProp = _ref.videoIdView,
51462
51623
  captureSignature = _ref.captureSignature,
51463
51624
  captureSignatureVideo = _ref.captureSignatureVideo,
51464
51625
  _ref$captureVideoId = _ref.captureVideoId,
@@ -51468,8 +51629,11 @@
51468
51629
  initialArtifacts = _ref$initialArtifacts === void 0 ? EMPTY_ARTIFACTS$2 : _ref$initialArtifacts,
51469
51630
  theme = _ref.theme,
51470
51631
  className = _ref.className,
51471
- _ref$showSuccessScree = _ref.showSuccessScreen,
51472
- showSuccessScreen = _ref$showSuccessScree === void 0 ? false : _ref$showSuccessScree,
51632
+ lang = _ref.lang,
51633
+ debugMode = _ref.debugMode,
51634
+ skipSuccessScreen = _ref.skipSuccessScreen,
51635
+ showResultScreen = _ref.showResultScreen,
51636
+ showSuccessScreen = _ref.showSuccessScreen,
51473
51637
  _ref$showDiagnostics = _ref.showDiagnostics,
51474
51638
  showDiagnostics = _ref$showDiagnostics === void 0 ? false : _ref$showDiagnostics,
51475
51639
  captureAdditionalDocuments = _ref.captureAdditionalDocuments,
@@ -51481,7 +51645,31 @@
51481
51645
  onCaptureError = _ref.onCaptureError,
51482
51646
  children = _ref.children,
51483
51647
  callbacks = _objectWithoutPropertiesLoose(_ref, _excluded$1);
51484
- var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
51648
+ // Flow-wide settings reach each step unless its own bag sets them.
51649
+ var _useMemo = React.useMemo(function () {
51650
+ var settings = {
51651
+ lang: lang,
51652
+ debugMode: debugMode,
51653
+ skipSuccessScreen: skipSuccessScreen
51654
+ };
51655
+ return {
51656
+ idView: inheritFlowSettings(idViewProp, settings),
51657
+ faceView: inheritFlowSettings(faceViewProp, settings),
51658
+ signatureView: inheritFlowSettings(signatureViewProp, {
51659
+ lang: lang,
51660
+ showCaptureDiagnostics: debugMode,
51661
+ skipSuccessScreen: skipSuccessScreen
51662
+ }),
51663
+ videoIdView: inheritFlowSettings(videoIdViewProp, {
51664
+ lang: lang,
51665
+ debugMode: debugMode
51666
+ })
51667
+ };
51668
+ }, [debugMode, faceViewProp, idViewProp, lang, signatureViewProp, skipSuccessScreen, videoIdViewProp]),
51669
+ idView = _useMemo.idView,
51670
+ faceView = _useMemo.faceView,
51671
+ signatureView = _useMemo.signatureView,
51672
+ videoIdView = _useMemo.videoIdView;
51485
51673
  var checkLivenessOptions = faceCapture.checkLivenessOptions,
51486
51674
  selfieCaptureConfig = _objectWithoutPropertiesLoose(faceCapture, _excluded2);
51487
51675
  useMountOnlyWarnings('CustomerIdAndBiometricsEnrollmentFlow', FLOW_MOUNT_ONLY_REMEDY, {
@@ -51697,26 +51885,31 @@
51697
51885
  submission: submission,
51698
51886
  showEnrollmentId: showDiagnostics,
51699
51887
  theme: theme,
51700
- className: className
51888
+ className: className,
51889
+ lang: lang
51701
51890
  }, callbacks, {
51702
51891
  children: [steps ? jsx(CompositeWizard, _extends$1({}, ringScreens, {
51703
51892
  steps: steps,
51704
51893
  initialArtifacts: initialArtifacts,
51705
- showSuccessScreen: showSuccessScreen,
51894
+ showResultScreen: showResultScreen != null ? showResultScreen : showSuccessScreen,
51706
51895
  showDiagnostics: showDiagnostics,
51707
51896
  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]
51897
+ })) : jsx(PreparingScreen, {}), children]
51718
51898
  }));
51719
51899
  }
51900
+ /** Translated inside the chassis, so the flow's `lang` reaches it. */
51901
+ function PreparingScreen() {
51902
+ var preparing = useTranslations(undefined, PREPARING_FALLBACKS);
51903
+ // `loadingStage` is what enables the customer's `loadingSpinner`: without it
51904
+ // OrbStatusScreen hard-renders the orb, so this was the one loading surface
51905
+ // in the SDK that ignored a supplied component outright — in the flow whose
51906
+ // double-loader prompted the fix.
51907
+ return jsx(OrbStatusScreen, {
51908
+ state: "solving",
51909
+ text: preparing.preparingText,
51910
+ loadingStage: "preparing"
51911
+ });
51912
+ }
51720
51913
 
51721
51914
  var ALLOWED_MISMATCH_RETRIES$1 = 0;
51722
51915
  var MAX_LIVENESS_ATTEMPTS$1 = 3;
@@ -52384,6 +52577,8 @@
52384
52577
  view = _ref$view === void 0 ? EMPTY_VIEW : _ref$view,
52385
52578
  theme = _ref.theme,
52386
52579
  className = _ref.className,
52580
+ lang = _ref.lang,
52581
+ debugMode = _ref.debugMode,
52387
52582
  geolocationEnabled = _ref.geolocationEnabled,
52388
52583
  geolocationRequired = _ref.geolocationRequired,
52389
52584
  remoteDiagnostics = _ref.remoteDiagnostics,
@@ -52446,7 +52641,10 @@
52446
52641
  // Only the auto-continue half applies here: the plain SelfieCaptureView has
52447
52642
  // no capture review screen to skip (that is FaceLivenessView's), and this
52448
52643
  // flow's own terminal screens are governed by `skipSuccessScreen` below.
52449
- var resolvedView = _extends$1({}, view, {
52644
+ var resolvedView = _extends$1({}, inheritFlowSettings(view, {
52645
+ lang: lang,
52646
+ debugMode: debugMode
52647
+ }), {
52450
52648
  autoContinueAfterLoading: impliedAutoContinueAfterLoading(view.autoContinueAfterLoading, introActive)
52451
52649
  });
52452
52650
  // Reset during render, not in an effect: an auto-requesting capture stage
@@ -52541,6 +52739,7 @@
52541
52739
  submission: submission,
52542
52740
  theme: theme,
52543
52741
  className: className,
52742
+ lang: lang,
52544
52743
  geolocationEnabled: geolocationEnabled,
52545
52744
  geolocationRequired: geolocationRequired,
52546
52745
  remoteDiagnostics: remoteDiagnostics,
@@ -54280,7 +54479,7 @@
54280
54479
  // post-submission diagnostics page on this one flag
54281
54480
  // (CompositeWizard.tsx:381, `if (debugMode) return <SubmissionSuccess />`);
54282
54481
  // here the capture-surface overlays live on `view.debugMode` (mapIdCapture)
54283
- // while the terminal page needs `showSuccessScreen` to render at all and
54482
+ // while the terminal page needs `showResultScreen` to render at all and
54284
54483
  // `showDiagnostics` to include the request/response bodies. Mapping only
54285
54484
  // the first left `debugMode` customers on a blank screen after submitting,
54286
54485
  // because CompositeWizard falls through to `return null`.
@@ -54288,7 +54487,7 @@
54288
54487
  // Both take the same flag: sdk2's page showed the response body (behind a
54289
54488
  // toggle) whenever debugMode was on, so gating diagnostics separately here
54290
54489
  // would be a NEW restriction, not parity.
54291
- showSuccessScreen: props.debugMode,
54490
+ showResultScreen: props.debugMode,
54292
54491
  showDiagnostics: props.debugMode,
54293
54492
  // `onSubmit` is NOT mapped to a flow prop: it goes to the client config
54294
54493
  // (see mapClientConfig), which is the layer sdk2 put it at and the only
@@ -54469,7 +54668,7 @@
54469
54668
  remoteDiagnostics: props.remoteDiagnostics,
54470
54669
  loadingSpinner: props.loadingSpinner,
54471
54670
  // See mapIdValidationProps for why `debugMode` feeds both.
54472
- showSuccessScreen: props.debugMode,
54671
+ showResultScreen: props.debugMode,
54473
54672
  showDiagnostics: props.debugMode,
54474
54673
  onStepStarted: emit ? function (stepId) {
54475
54674
  var stage = journeyStageForStepId(stepId);
@@ -54591,7 +54790,7 @@
54591
54790
  // both the boolean and async callback forms at the flow-level seam.
54592
54791
  //
54593
54792
  // `debugMode` forces it back on, completing the fold mapIdValidationProps
54594
- // does with `showSuccessScreen`/`showDiagnostics`: the capture readout
54793
+ // does with `showResultScreen`/`showDiagnostics`: the capture readout
54595
54794
  // renders INSIDE the review, so a consumer who skips the review and turns
54596
54795
  // debugMode on would otherwise get the switch with nowhere for it to show
54597
54796
  // — silently, in the one configuration it exists for.
@@ -54762,7 +54961,7 @@
54762
54961
  remoteDiagnostics: props.remoteDiagnostics,
54763
54962
  loadingSpinner: props.loadingSpinner,
54764
54963
  // See mapIdValidationProps for why `debugMode` feeds both.
54765
- showSuccessScreen: props.debugMode,
54964
+ showResultScreen: props.debugMode,
54766
54965
  showDiagnostics: props.debugMode,
54767
54966
  onComplete: withSubmissionRequest(props.onComplete, ctx),
54768
54967
  onRequestFailure: props.onRequestFailure,
@@ -54993,7 +55192,7 @@
54993
55192
  remoteDiagnostics: props.remoteDiagnostics,
54994
55193
  loadingSpinner: props.loadingSpinner,
54995
55194
  // See mapIdValidationProps for why `debugMode` feeds both.
54996
- showSuccessScreen: props.debugMode,
55195
+ showResultScreen: props.debugMode,
54997
55196
  showDiagnostics: props.debugMode,
54998
55197
  onComplete: withSubmissionRequest(props.onComplete, ctx),
54999
55198
  // sdk2's enrollment twin of `onApproved`.
@@ -55086,7 +55285,7 @@
55086
55285
  remoteDiagnostics: props.remoteDiagnostics,
55087
55286
  loadingSpinner: props.loadingSpinner,
55088
55287
  // See mapIdValidationProps for why `debugMode` feeds both.
55089
- showSuccessScreen: props.debugMode,
55288
+ showResultScreen: props.debugMode,
55090
55289
  showDiagnostics: props.debugMode,
55091
55290
  onComplete: withSubmissionRequest(props.onComplete, ctx),
55092
55291
  onApproved: withSubmissionRequest(props.onEnrolled, ctx),
@@ -55096,7 +55295,7 @@
55096
55295
  });
55097
55296
  }
55098
55297
 
55099
- var webSdkVersion = '2.6.3-t3code-dev-warn-mount-only-inputs-c1a7cfb';
55298
+ var webSdkVersion = '2.6.3-t3code-shared-flow-settings-e5702c2';
55100
55299
 
55101
55300
  // GENERATED by scripts/styleBagTypes.mjs from
55102
55301
  // src/__fixtures__/sdk2StyleBags.json and the mapper sweep — do not