@ekyc_qoobiss/qbs-ect-cmp 3.6.52 → 3.6.54

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.
@@ -4931,6 +4931,16 @@ class Cameras {
4931
4931
  throw e;
4932
4932
  }
4933
4933
  }
4934
+ static switchCamera() {
4935
+ let camIndex = TranslationUtils.state.cameraIds.indexOf(TranslationUtils.state.cameraId);
4936
+ let newCamId = camIndex === TranslationUtils.state.cameraIds.length - 1 ? TranslationUtils.state.cameraIds[0] : TranslationUtils.state.cameraIds[camIndex + 1];
4937
+ if (TranslationUtils.state.cameraId == newCamId) {
4938
+ TranslationUtils.state.cameraId = null;
4939
+ }
4940
+ else {
4941
+ TranslationUtils.state.cameraId = newCamId;
4942
+ }
4943
+ }
4934
4944
  }
4935
4945
 
4936
4946
  var IDPose;
@@ -5147,7 +5157,7 @@ function v4(options, buf, offset) {
5147
5157
  }
5148
5158
 
5149
5159
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5150
- const version$1 = "3.6.52";
5160
+ const version$1 = "3.6.54";
5151
5161
  const description = "Person Identification Component";
5152
5162
  const main = "./dist/index.cjs.js";
5153
5163
  const module$1 = "./dist/index.js";
@@ -5462,34 +5472,43 @@ const IdentificationComponent = class {
5462
5472
  if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LANDING) {
5463
5473
  currentBlock = index.h("landing-validation", null);
5464
5474
  }
5465
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.MOBILE) {
5475
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.MOBILE) {
5466
5476
  currentBlock = index.h("mobile-redirect", null);
5467
5477
  }
5468
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.AGREEMENT) {
5478
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.AGREEMENT) {
5469
5479
  currentBlock = index.h("agreement-info", null);
5470
5480
  }
5471
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.PHONE) {
5481
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.PHONE) {
5472
5482
  currentBlock = index.h("sms-send", null);
5473
5483
  }
5474
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODE) {
5484
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODE) {
5475
5485
  currentBlock = index.h("sms-code-validation", null);
5476
5486
  }
5477
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
5487
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CODEERROR) {
5478
5488
  currentBlock = index.h("sms-code-validation", null);
5479
5489
  }
5480
- if ([TranslationUtils.FlowStatus.IDFRONT, TranslationUtils.FlowStatus.IDBACK, TranslationUtils.FlowStatus.IDTILT].includes(TranslationUtils.state.flowStatus)) {
5481
- currentBlock = index.h("process-id", null);
5490
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDFRONT) {
5491
+ currentBlock = index.h("process-id", { mode: "front" });
5492
+ }
5493
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
5494
+ currentBlock = index.h("process-id", { mode: "back" });
5495
+ }
5496
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDTILT) {
5497
+ currentBlock = index.h("process-id", { mode: "tilt" });
5498
+ }
5499
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESS) {
5500
+ currentBlock = index.h("user-liveness", { mode: "selfie" });
5482
5501
  }
5483
- if ([TranslationUtils.FlowStatus.LIVENESS, TranslationUtils.FlowStatus.LIVENESSGESTURE].includes(TranslationUtils.state.flowStatus)) {
5484
- currentBlock = index.h("user-liveness", null);
5502
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESSGESTURE) {
5503
+ currentBlock = index.h("user-liveness", { mode: "selfieGesture" });
5485
5504
  }
5486
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
5505
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.COMPLETE) {
5487
5506
  currentBlock = index.h("end-redirect", null);
5488
5507
  }
5489
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.ERROREND) {
5508
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.ERROREND) {
5490
5509
  currentBlock = index.h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
5491
5510
  }
5492
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CAMERAERROR) {
5511
+ else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.CAMERAERROR) {
5493
5512
  currentBlock = index.h("camera-error", null);
5494
5513
  }
5495
5514
  return index.h("div", null, currentBlock);
@@ -8551,6 +8570,7 @@ const ProcessId = class {
8551
8570
  index.registerInstance(this, hostRef);
8552
8571
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
8553
8572
  this.recordingResultCount = 0;
8573
+ this.mode = undefined;
8554
8574
  this.showTimeout = undefined;
8555
8575
  this.showInvalid = undefined;
8556
8576
  this.flow = undefined;
@@ -8560,7 +8580,7 @@ const ProcessId = class {
8560
8580
  this.initFlow();
8561
8581
  }
8562
8582
  initFlow() {
8563
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDFRONT) {
8583
+ if (this.mode == 'front') {
8564
8584
  this.currentStep = TranslationUtils.FlowSteps.CiFront;
8565
8585
  this.flow = {
8566
8586
  capture: {
@@ -8572,7 +8592,7 @@ const ProcessId = class {
8572
8592
  howToDone: false,
8573
8593
  };
8574
8594
  }
8575
- else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACK) {
8595
+ else if (this.mode == 'back') {
8576
8596
  this.currentStep = TranslationUtils.FlowSteps.CiBack;
8577
8597
  this.flow = {
8578
8598
  capture: {
@@ -8584,7 +8604,7 @@ const ProcessId = class {
8584
8604
  howToDone: false,
8585
8605
  };
8586
8606
  }
8587
- else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDTILT) {
8607
+ else if (this.mode == 'tilt') {
8588
8608
  this.currentStep = TranslationUtils.FlowSteps.CiTilt;
8589
8609
  this.flow = {
8590
8610
  capture: {
@@ -8662,8 +8682,7 @@ const ProcessId = class {
8662
8682
  }
8663
8683
  switchCamera() {
8664
8684
  if (this.captureRetryCount == 1) {
8665
- let camIndex = TranslationUtils.state.cameraIds.indexOf(TranslationUtils.state.cameraId);
8666
- TranslationUtils.state.cameraId = camIndex === TranslationUtils.state.cameraIds.length - 1 ? TranslationUtils.state.cameraIds[0] : TranslationUtils.state.cameraIds[camIndex + 1];
8685
+ Cameras.switchCamera();
8667
8686
  this.captureRetryCount = 0;
8668
8687
  }
8669
8688
  else {
@@ -8857,7 +8876,7 @@ SmsCodeValidation.style = smsCodeValidationCss;
8857
8876
  const smsSendCss = "";
8858
8877
 
8859
8878
  const SmsSend = class {
8860
- constructor(hostRef) { index.registerInstance(this, hostRef); this.apiErrorEvent = index.createEvent(this, "apiError", 7); this.buttonText = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
8879
+ constructor(hostRef) { index.registerInstance(this, hostRef); this.apiErrorEvent = index.createEvent(this, "apiError", 7); this.buttonText = undefined; this.title = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
8861
8880
  async doAction() {
8862
8881
  try {
8863
8882
  this.canSend = false;
@@ -8876,6 +8895,7 @@ const SmsSend = class {
8876
8895
  async componentWillRender() {
8877
8896
  this.translations = await TranslationUtils.Translations.getValues();
8878
8897
  this.buttonText = this.translations.PhoneValidationValues.Button;
8898
+ this.title = this.translations.PhoneValidationValues.Title;
8879
8899
  if (TranslationUtils.state.phoneNumber && TranslationUtils.state.phoneNumber != '') {
8880
8900
  this.phoneNumber = TranslationUtils.state.phoneNumber;
8881
8901
  this.prefilledPhone = true;
@@ -8894,7 +8914,7 @@ const SmsSend = class {
8894
8914
  ev.target.value = this.phoneNumber;
8895
8915
  }
8896
8916
  render() {
8897
- return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, this.translations.PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
8917
+ return (index.h("div", { class: "container" }, index.h("div", { class: "row row-validare" }, index.h("div", null, index.h("h1", { class: "text-center" }, this.title)), index.h("div", { class: "input-container mb-15" }, index.h("label", { class: "font-size-18 mb-1" }, index.h("b", null, this.translations.PhoneValidationValues.Label)), index.h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
8898
8918
  }
8899
8919
  };
8900
8920
  SmsSend.style = smsSendCss;
@@ -8907,6 +8927,7 @@ const UserLiveness = class {
8907
8927
  this.apiErrorEvent = index.createEvent(this, "apiError", 7);
8908
8928
  this.recordingResultCount = 0;
8909
8929
  this.recordingRetryCount = 0;
8930
+ this.mode = undefined;
8910
8931
  this.showError = undefined;
8911
8932
  this.showTimeout = undefined;
8912
8933
  this.flow = undefined;
@@ -8914,7 +8935,7 @@ const UserLiveness = class {
8914
8935
  }
8915
8936
  async componentDidLoad() { }
8916
8937
  componentWillLoad() {
8917
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESS) {
8938
+ if (this.mode == 'selfie') {
8918
8939
  this.currentStep = TranslationUtils.FlowSteps.Selfie;
8919
8940
  this.flow = {
8920
8941
  capture: {
@@ -8926,7 +8947,7 @@ const UserLiveness = class {
8926
8947
  howToDone: false,
8927
8948
  };
8928
8949
  }
8929
- else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.LIVENESSGESTURE) {
8950
+ else if (this.mode == 'selfieGesture') {
8930
8951
  this.currentStep = TranslationUtils.FlowSteps.SelfieTilt;
8931
8952
  this.flow = {
8932
8953
  capture: {
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
17
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
20
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"mode":[1],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"mode":[1],"showError":[32],"showTimeout":[32],"flow":[32],"howToDone":[32]},[[0,"howToInfoDone","howToDoneEvent"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"warningText":[32],"buttonDisabled":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"code":[32],"canSend":[32]}],[0,"sms-send",{"buttonText":[32],"title":[32],"phoneNumber":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-capture",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]}],[0,"capture-error",{"type":[1],"reason":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -7,10 +7,12 @@ import { getLogMessage } from '../../../utils/utils';
7
7
  import { BaseComponent } from '../../base-component';
8
8
  import { CaptureUploadTypes } from '../../../models/CaptureFlow';
9
9
  import { ApiCall } from '../../../helpers/ApiCall';
10
+ import { Cameras } from '../../../helpers/Cameras';
10
11
  // import { IDPose } from '../../libs/IDML5Detector/IDPose';
11
12
  export class ProcessId {
12
13
  constructor() {
13
14
  this.recordingResultCount = 0;
15
+ this.mode = undefined;
14
16
  this.showTimeout = undefined;
15
17
  this.showInvalid = undefined;
16
18
  this.flow = undefined;
@@ -20,7 +22,7 @@ export class ProcessId {
20
22
  this.initFlow();
21
23
  }
22
24
  initFlow() {
23
- if (store.flowStatus == FlowStatus.IDFRONT) {
25
+ if (this.mode == 'front') {
24
26
  this.currentStep = FlowSteps.CiFront;
25
27
  this.flow = {
26
28
  capture: {
@@ -32,7 +34,7 @@ export class ProcessId {
32
34
  howToDone: false,
33
35
  };
34
36
  }
35
- else if (store.flowStatus == FlowStatus.IDBACK) {
37
+ else if (this.mode == 'back') {
36
38
  this.currentStep = FlowSteps.CiBack;
37
39
  this.flow = {
38
40
  capture: {
@@ -44,7 +46,7 @@ export class ProcessId {
44
46
  howToDone: false,
45
47
  };
46
48
  }
47
- else if (store.flowStatus == FlowStatus.IDTILT) {
49
+ else if (this.mode == 'tilt') {
48
50
  this.currentStep = FlowSteps.CiTilt;
49
51
  this.flow = {
50
52
  capture: {
@@ -122,8 +124,7 @@ export class ProcessId {
122
124
  }
123
125
  switchCamera() {
124
126
  if (this.captureRetryCount == 1) {
125
- let camIndex = store.cameraIds.indexOf(store.cameraId);
126
- store.cameraId = camIndex === store.cameraIds.length - 1 ? store.cameraIds[0] : store.cameraIds[camIndex + 1];
127
+ Cameras.switchCamera();
127
128
  this.captureRetryCount = 0;
128
129
  }
129
130
  else {
@@ -155,6 +156,27 @@ export class ProcessId {
155
156
  "$": ["process-id.css"]
156
157
  };
157
158
  }
159
+ static get properties() {
160
+ return {
161
+ "mode": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": ""
174
+ },
175
+ "attribute": "mode",
176
+ "reflect": false
177
+ }
178
+ };
179
+ }
158
180
  static get states() {
159
181
  return {
160
182
  "showTimeout": {},
@@ -6,7 +6,7 @@ import { BaseComponent } from '../../base-component';
6
6
  import { Translations } from '../../../helpers/TranslationUtils';
7
7
  import { ApiCall } from '../../../helpers/ApiCall';
8
8
  export class SmsSend {
9
- constructor() { this.buttonText = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
9
+ constructor() { this.buttonText = undefined; this.title = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
10
10
  async doAction() {
11
11
  try {
12
12
  this.canSend = false;
@@ -25,6 +25,7 @@ export class SmsSend {
25
25
  async componentWillRender() {
26
26
  this.translations = await Translations.getValues();
27
27
  this.buttonText = this.translations.PhoneValidationValues.Button;
28
+ this.title = this.translations.PhoneValidationValues.Title;
28
29
  if (store.phoneNumber && store.phoneNumber != '') {
29
30
  this.phoneNumber = store.phoneNumber;
30
31
  this.prefilledPhone = true;
@@ -43,7 +44,7 @@ export class SmsSend {
43
44
  ev.target.value = this.phoneNumber;
44
45
  }
45
46
  render() {
46
- return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
47
+ return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
47
48
  }
48
49
  static get is() { return "sms-send"; }
49
50
  static get originalStyleUrls() {
@@ -59,6 +60,7 @@ export class SmsSend {
59
60
  static get states() {
60
61
  return {
61
62
  "buttonText": {},
63
+ "title": {},
62
64
  "phoneNumber": {},
63
65
  "prefilledPhone": {},
64
66
  "canSend": {}
@@ -11,6 +11,7 @@ export class UserLiveness {
11
11
  constructor() {
12
12
  this.recordingResultCount = 0;
13
13
  this.recordingRetryCount = 0;
14
+ this.mode = undefined;
14
15
  this.showError = undefined;
15
16
  this.showTimeout = undefined;
16
17
  this.flow = undefined;
@@ -18,7 +19,7 @@ export class UserLiveness {
18
19
  }
19
20
  async componentDidLoad() { }
20
21
  componentWillLoad() {
21
- if (store.flowStatus == FlowStatus.LIVENESS) {
22
+ if (this.mode == 'selfie') {
22
23
  this.currentStep = FlowSteps.Selfie;
23
24
  this.flow = {
24
25
  capture: {
@@ -30,7 +31,7 @@ export class UserLiveness {
30
31
  howToDone: false,
31
32
  };
32
33
  }
33
- else if (store.flowStatus == FlowStatus.LIVENESSGESTURE) {
34
+ else if (this.mode == 'selfieGesture') {
34
35
  this.currentStep = FlowSteps.SelfieTilt;
35
36
  this.flow = {
36
37
  capture: {
@@ -140,6 +141,27 @@ export class UserLiveness {
140
141
  "$": ["user-liveness.css"]
141
142
  };
142
143
  }
144
+ static get properties() {
145
+ return {
146
+ "mode": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "string",
151
+ "resolved": "string",
152
+ "references": {}
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": ""
159
+ },
160
+ "attribute": "mode",
161
+ "reflect": false
162
+ }
163
+ };
164
+ }
143
165
  static get states() {
144
166
  return {
145
167
  "showError": {},
@@ -174,34 +174,43 @@ export class IdentificationComponent {
174
174
  if (store.flowStatus == FlowStatus.LANDING) {
175
175
  currentBlock = h("landing-validation", null);
176
176
  }
177
- if (store.flowStatus == FlowStatus.MOBILE) {
177
+ else if (store.flowStatus == FlowStatus.MOBILE) {
178
178
  currentBlock = h("mobile-redirect", null);
179
179
  }
180
- if (store.flowStatus == FlowStatus.AGREEMENT) {
180
+ else if (store.flowStatus == FlowStatus.AGREEMENT) {
181
181
  currentBlock = h("agreement-info", null);
182
182
  }
183
- if (store.flowStatus == FlowStatus.PHONE) {
183
+ else if (store.flowStatus == FlowStatus.PHONE) {
184
184
  currentBlock = h("sms-send", null);
185
185
  }
186
- if (store.flowStatus == FlowStatus.CODE) {
186
+ else if (store.flowStatus == FlowStatus.CODE) {
187
187
  currentBlock = h("sms-code-validation", null);
188
188
  }
189
- if (store.flowStatus == FlowStatus.CODEERROR) {
189
+ else if (store.flowStatus == FlowStatus.CODEERROR) {
190
190
  currentBlock = h("sms-code-validation", null);
191
191
  }
192
- if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(store.flowStatus)) {
193
- currentBlock = h("process-id", null);
192
+ else if (store.flowStatus == FlowStatus.IDFRONT) {
193
+ currentBlock = h("process-id", { mode: "front" });
194
194
  }
195
- if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(store.flowStatus)) {
196
- currentBlock = h("user-liveness", null);
195
+ else if (store.flowStatus == FlowStatus.IDBACK) {
196
+ currentBlock = h("process-id", { mode: "back" });
197
197
  }
198
- if (store.flowStatus == FlowStatus.COMPLETE) {
198
+ else if (store.flowStatus == FlowStatus.IDTILT) {
199
+ currentBlock = h("process-id", { mode: "tilt" });
200
+ }
201
+ else if (store.flowStatus == FlowStatus.LIVENESS) {
202
+ currentBlock = h("user-liveness", { mode: "selfie" });
203
+ }
204
+ else if (store.flowStatus == FlowStatus.LIVENESSGESTURE) {
205
+ currentBlock = h("user-liveness", { mode: "selfieGesture" });
206
+ }
207
+ else if (store.flowStatus == FlowStatus.COMPLETE) {
199
208
  currentBlock = h("end-redirect", null);
200
209
  }
201
- if (store.flowStatus == FlowStatus.ERROREND) {
210
+ else if (store.flowStatus == FlowStatus.ERROREND) {
202
211
  currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
203
212
  }
204
- if (store.flowStatus == FlowStatus.CAMERAERROR) {
213
+ else if (store.flowStatus == FlowStatus.CAMERAERROR) {
205
214
  currentBlock = h("camera-error", null);
206
215
  }
207
216
  return h("div", null, currentBlock);
@@ -126,4 +126,14 @@ export class Cameras {
126
126
  throw e;
127
127
  }
128
128
  }
129
+ static switchCamera() {
130
+ let camIndex = store.cameraIds.indexOf(store.cameraId);
131
+ let newCamId = camIndex === store.cameraIds.length - 1 ? store.cameraIds[0] : store.cameraIds[camIndex + 1];
132
+ if (store.cameraId == newCamId) {
133
+ store.cameraId = null;
134
+ }
135
+ else {
136
+ store.cameraId = newCamId;
137
+ }
138
+ }
129
139
  }
@@ -4927,6 +4927,16 @@ class Cameras {
4927
4927
  throw e;
4928
4928
  }
4929
4929
  }
4930
+ static switchCamera() {
4931
+ let camIndex = state.cameraIds.indexOf(state.cameraId);
4932
+ let newCamId = camIndex === state.cameraIds.length - 1 ? state.cameraIds[0] : state.cameraIds[camIndex + 1];
4933
+ if (state.cameraId == newCamId) {
4934
+ state.cameraId = null;
4935
+ }
4936
+ else {
4937
+ state.cameraId = newCamId;
4938
+ }
4939
+ }
4930
4940
  }
4931
4941
 
4932
4942
  var IDPose;
@@ -5143,7 +5153,7 @@ function v4(options, buf, offset) {
5143
5153
  }
5144
5154
 
5145
5155
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5146
- const version$1 = "3.6.52";
5156
+ const version$1 = "3.6.54";
5147
5157
  const description = "Person Identification Component";
5148
5158
  const main = "./dist/index.cjs.js";
5149
5159
  const module = "./dist/index.js";
@@ -5458,34 +5468,43 @@ const IdentificationComponent = class {
5458
5468
  if (state.flowStatus == FlowStatus.LANDING) {
5459
5469
  currentBlock = h("landing-validation", null);
5460
5470
  }
5461
- if (state.flowStatus == FlowStatus.MOBILE) {
5471
+ else if (state.flowStatus == FlowStatus.MOBILE) {
5462
5472
  currentBlock = h("mobile-redirect", null);
5463
5473
  }
5464
- if (state.flowStatus == FlowStatus.AGREEMENT) {
5474
+ else if (state.flowStatus == FlowStatus.AGREEMENT) {
5465
5475
  currentBlock = h("agreement-info", null);
5466
5476
  }
5467
- if (state.flowStatus == FlowStatus.PHONE) {
5477
+ else if (state.flowStatus == FlowStatus.PHONE) {
5468
5478
  currentBlock = h("sms-send", null);
5469
5479
  }
5470
- if (state.flowStatus == FlowStatus.CODE) {
5480
+ else if (state.flowStatus == FlowStatus.CODE) {
5471
5481
  currentBlock = h("sms-code-validation", null);
5472
5482
  }
5473
- if (state.flowStatus == FlowStatus.CODEERROR) {
5483
+ else if (state.flowStatus == FlowStatus.CODEERROR) {
5474
5484
  currentBlock = h("sms-code-validation", null);
5475
5485
  }
5476
- if ([FlowStatus.IDFRONT, FlowStatus.IDBACK, FlowStatus.IDTILT].includes(state.flowStatus)) {
5477
- currentBlock = h("process-id", null);
5486
+ else if (state.flowStatus == FlowStatus.IDFRONT) {
5487
+ currentBlock = h("process-id", { mode: "front" });
5488
+ }
5489
+ else if (state.flowStatus == FlowStatus.IDBACK) {
5490
+ currentBlock = h("process-id", { mode: "back" });
5491
+ }
5492
+ else if (state.flowStatus == FlowStatus.IDTILT) {
5493
+ currentBlock = h("process-id", { mode: "tilt" });
5494
+ }
5495
+ else if (state.flowStatus == FlowStatus.LIVENESS) {
5496
+ currentBlock = h("user-liveness", { mode: "selfie" });
5478
5497
  }
5479
- if ([FlowStatus.LIVENESS, FlowStatus.LIVENESSGESTURE].includes(state.flowStatus)) {
5480
- currentBlock = h("user-liveness", null);
5498
+ else if (state.flowStatus == FlowStatus.LIVENESSGESTURE) {
5499
+ currentBlock = h("user-liveness", { mode: "selfieGesture" });
5481
5500
  }
5482
- if (state.flowStatus == FlowStatus.COMPLETE) {
5501
+ else if (state.flowStatus == FlowStatus.COMPLETE) {
5483
5502
  currentBlock = h("end-redirect", null);
5484
5503
  }
5485
- if (state.flowStatus == FlowStatus.ERROREND) {
5504
+ else if (state.flowStatus == FlowStatus.ERROREND) {
5486
5505
  currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
5487
5506
  }
5488
- if (state.flowStatus == FlowStatus.CAMERAERROR) {
5507
+ else if (state.flowStatus == FlowStatus.CAMERAERROR) {
5489
5508
  currentBlock = h("camera-error", null);
5490
5509
  }
5491
5510
  return h("div", null, currentBlock);
@@ -8547,6 +8566,7 @@ const ProcessId = class {
8547
8566
  registerInstance(this, hostRef);
8548
8567
  this.apiErrorEvent = createEvent(this, "apiError", 7);
8549
8568
  this.recordingResultCount = 0;
8569
+ this.mode = undefined;
8550
8570
  this.showTimeout = undefined;
8551
8571
  this.showInvalid = undefined;
8552
8572
  this.flow = undefined;
@@ -8556,7 +8576,7 @@ const ProcessId = class {
8556
8576
  this.initFlow();
8557
8577
  }
8558
8578
  initFlow() {
8559
- if (state.flowStatus == FlowStatus.IDFRONT) {
8579
+ if (this.mode == 'front') {
8560
8580
  this.currentStep = FlowSteps.CiFront;
8561
8581
  this.flow = {
8562
8582
  capture: {
@@ -8568,7 +8588,7 @@ const ProcessId = class {
8568
8588
  howToDone: false,
8569
8589
  };
8570
8590
  }
8571
- else if (state.flowStatus == FlowStatus.IDBACK) {
8591
+ else if (this.mode == 'back') {
8572
8592
  this.currentStep = FlowSteps.CiBack;
8573
8593
  this.flow = {
8574
8594
  capture: {
@@ -8580,7 +8600,7 @@ const ProcessId = class {
8580
8600
  howToDone: false,
8581
8601
  };
8582
8602
  }
8583
- else if (state.flowStatus == FlowStatus.IDTILT) {
8603
+ else if (this.mode == 'tilt') {
8584
8604
  this.currentStep = FlowSteps.CiTilt;
8585
8605
  this.flow = {
8586
8606
  capture: {
@@ -8658,8 +8678,7 @@ const ProcessId = class {
8658
8678
  }
8659
8679
  switchCamera() {
8660
8680
  if (this.captureRetryCount == 1) {
8661
- let camIndex = state.cameraIds.indexOf(state.cameraId);
8662
- state.cameraId = camIndex === state.cameraIds.length - 1 ? state.cameraIds[0] : state.cameraIds[camIndex + 1];
8681
+ Cameras.switchCamera();
8663
8682
  this.captureRetryCount = 0;
8664
8683
  }
8665
8684
  else {
@@ -8853,7 +8872,7 @@ SmsCodeValidation.style = smsCodeValidationCss;
8853
8872
  const smsSendCss = "";
8854
8873
 
8855
8874
  const SmsSend = class {
8856
- constructor(hostRef) { registerInstance(this, hostRef); this.apiErrorEvent = createEvent(this, "apiError", 7); this.buttonText = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
8875
+ constructor(hostRef) { registerInstance(this, hostRef); this.apiErrorEvent = createEvent(this, "apiError", 7); this.buttonText = undefined; this.title = undefined; this.phoneNumber = undefined; this.prefilledPhone = false; this.canSend = false; }
8857
8876
  async doAction() {
8858
8877
  try {
8859
8878
  this.canSend = false;
@@ -8872,6 +8891,7 @@ const SmsSend = class {
8872
8891
  async componentWillRender() {
8873
8892
  this.translations = await Translations.getValues();
8874
8893
  this.buttonText = this.translations.PhoneValidationValues.Button;
8894
+ this.title = this.translations.PhoneValidationValues.Title;
8875
8895
  if (state.phoneNumber && state.phoneNumber != '') {
8876
8896
  this.phoneNumber = state.phoneNumber;
8877
8897
  this.prefilledPhone = true;
@@ -8890,7 +8910,7 @@ const SmsSend = class {
8890
8910
  ev.target.value = this.phoneNumber;
8891
8911
  }
8892
8912
  render() {
8893
- return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
8913
+ return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
8894
8914
  }
8895
8915
  };
8896
8916
  SmsSend.style = smsSendCss;
@@ -8903,6 +8923,7 @@ const UserLiveness = class {
8903
8923
  this.apiErrorEvent = createEvent(this, "apiError", 7);
8904
8924
  this.recordingResultCount = 0;
8905
8925
  this.recordingRetryCount = 0;
8926
+ this.mode = undefined;
8906
8927
  this.showError = undefined;
8907
8928
  this.showTimeout = undefined;
8908
8929
  this.flow = undefined;
@@ -8910,7 +8931,7 @@ const UserLiveness = class {
8910
8931
  }
8911
8932
  async componentDidLoad() { }
8912
8933
  componentWillLoad() {
8913
- if (state.flowStatus == FlowStatus.LIVENESS) {
8934
+ if (this.mode == 'selfie') {
8914
8935
  this.currentStep = FlowSteps.Selfie;
8915
8936
  this.flow = {
8916
8937
  capture: {
@@ -8922,7 +8943,7 @@ const UserLiveness = class {
8922
8943
  howToDone: false,
8923
8944
  };
8924
8945
  }
8925
- else if (state.flowStatus == FlowStatus.LIVENESSGESTURE) {
8946
+ else if (this.mode == 'selfieGesture') {
8926
8947
  this.currentStep = FlowSteps.SelfieTilt;
8927
8948
  this.flow = {
8928
8949
  capture: {