@ekyc_qoobiss/qbs-ect-cmp 3.6.26 → 3.6.28

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.
Files changed (53) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +287 -759
  2. package/dist/cjs/base-component-aa9e52bf.js +832 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  5. package/dist/cjs/random-actions.cjs.entry.js +3 -2
  6. package/dist/collection/components/base-component.js +4 -0
  7. package/dist/collection/components/common/agreement-check/agreement-check.js +5 -2
  8. package/dist/collection/components/common/camera-error/camera-error.js +6 -6
  9. package/dist/collection/components/common/capture-error/capture-error.js +10 -11
  10. package/dist/collection/components/common/how-to-info/how-to-info.js +8 -9
  11. package/dist/collection/components/common/id-back-capture/id-back-capture.js +7 -7
  12. package/dist/collection/components/common/id-capture/id-capture.js +4 -4
  13. package/dist/collection/components/common/id-tilt/id-tilt.js +4 -4
  14. package/dist/collection/components/common/random-actions/random-actions.js +6 -2
  15. package/dist/collection/components/common/selfie-capture/selfie-capture.js +4 -4
  16. package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +6 -5
  17. package/dist/collection/components/flow/agreement-info/agreement-info.js +1 -2
  18. package/dist/collection/components/flow/end-redirect/end-redirect.js +6 -3
  19. package/dist/collection/components/flow/landing-validation/landing-validation.js +4 -4
  20. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +6 -7
  21. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +9 -10
  22. package/dist/collection/components/identification-component/identification-component.js +21 -0
  23. package/dist/collection/helpers/TranslationUtils.js +37 -0
  24. package/dist/collection/helpers/store.js +1 -0
  25. package/dist/collection/helpers/textValues.js +11 -108
  26. package/dist/collection/models/ITranslationValues.js +1 -0
  27. package/dist/esm/agreement-check_19.entry.js +80 -552
  28. package/dist/esm/base-component-b7f50d31.js +824 -0
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/qbs-ect-cmp.js +1 -1
  31. package/dist/esm/random-actions.entry.js +3 -2
  32. package/dist/i18n/en.json +100 -0
  33. package/dist/i18n/ro.json +100 -0
  34. package/dist/i18n/ru.json +100 -0
  35. package/dist/qbs-ect-cmp/p-215a7e76.entry.js +1 -0
  36. package/dist/qbs-ect-cmp/p-7bedffaa.js +1 -0
  37. package/dist/qbs-ect-cmp/{p-40480abb.entry.js → p-c32a782a.entry.js} +2 -2
  38. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  39. package/dist/types/components/base-component.d.ts +2 -0
  40. package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
  41. package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
  42. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +1 -0
  43. package/dist/types/components/identification-component/identification-component.d.ts +1 -0
  44. package/dist/types/components.d.ts +2 -0
  45. package/dist/types/helpers/TranslationUtils.d.ts +9 -0
  46. package/dist/types/helpers/textValues.d.ts +8 -95
  47. package/dist/types/models/IEctStore.d.ts +1 -0
  48. package/dist/types/models/ITranslationValues.d.ts +101 -0
  49. package/package.json +1 -1
  50. package/dist/cjs/store-f1a0f55c.js +0 -413
  51. package/dist/esm/store-fdeed827.js +0 -398
  52. package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
  53. package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
@@ -11,7 +11,7 @@ const patchEsm = () => {
11
11
  const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
- return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"captureStep":[32],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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,"id-tilt",{"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],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[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],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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);
14
+ return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"captureStep":[32],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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,"id-tilt",{"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],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[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],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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);
15
15
  });
16
16
  };
17
17
 
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"captureStep":[32],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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,"id-tilt",{"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],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[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],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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 bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["random-actions",[[0,"random-actions"]]],["agreement-check_19",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"lang_iso":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"],[9,"scroll","handleScroll"]]],[0,"process-id",{"captureStep":[32],"showTimeout":[32],"showInvalid":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"showError":[32],"captureStep":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[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],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[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,"id-tilt",{"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],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"selfie-tilt",{"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[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],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"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
  });
@@ -1,16 +1,17 @@
1
1
  import { r as registerInstance, h } from './index-cf54a432.js';
2
- import { H as HowToValues } from './store-fdeed827.js';
2
+ import { B as BaseComponent, F as FlowSteps } from './base-component-b7f50d31.js';
3
3
 
4
4
  const randomActionsCss = "";
5
5
 
6
6
  const RandomActions = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
+ this.baseComponent = new BaseComponent(FlowSteps.SelfieTilt);
9
10
  }
10
11
  componentWillLoad() { }
11
12
  buttonClick() { }
12
13
  render() {
13
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, HowToValues.FooterText))))));
14
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.baseComponent.translations.GlobalValues.FooterText))))));
14
15
  }
15
16
  };
16
17
  RandomActions.style = randomActionsCss;
@@ -0,0 +1,100 @@
1
+ {
2
+ "GlobalValues": {
3
+ "FooterText": "Qoobiss eKYC",
4
+ "VideoLenght": 3100
5
+ },
6
+
7
+ "HowToValues": {
8
+ "IdTitile": "Show your ID",
9
+ "IdSubTitileFace": "It is necessary to capture the identity document. Follow the instructions that will be displayed on the screen.",
10
+ "IdSubTitileBack": "It is necessary to capture the back of the identity document. Follow the instructions that will be displayed on the screen.",
11
+ "IdButton": "I'm ready!",
12
+ "SelfieTitile": "Video Validation",
13
+ "SelfieSubTitile": "A video recording is required. Follow the instructions that will be displayed on the screen.",
14
+ "SelfieButton": "I'm ready!"
15
+ },
16
+
17
+ "LandingValues": {
18
+ "Title": "Remote identity validation is a simple and quick procedure",
19
+ "Description": "Make sure you have:",
20
+ "IdInfo": "Identity document, in original",
21
+ "DeviceInfo": "A mobile phone",
22
+ "SmsInfo": "Access to a mobile phone that allows receiving SMS messages",
23
+ "Warning": "WARNING! Only the Romanian identity card can be used in this process.",
24
+ "WarningMd": "WARNING! Only ID cards from the Republic of Moldova can be used in this process.",
25
+ "Terms": "By continuing the process, you confirm that you have read and agree to the terms of use.",
26
+ "Button": "Got it",
27
+ "ButtonLeave": "I'm not ready"
28
+ },
29
+
30
+ "PhoneValidationValues": {
31
+ "Title": "We need to validate your phone number",
32
+ "Description": "Enter your phone number below:",
33
+ "Button": "Send verification SMS",
34
+ "Label": "Your phone number"
35
+ },
36
+
37
+ "CodeValidationValues": {
38
+ "Title": "Enter the validation code received by sms:",
39
+ "Description": " ",
40
+ "Button": "Validate",
41
+ "Error": "The code you entered is not valid. Make sure you enter it correctly"
42
+ },
43
+
44
+ "CompleteValues": {
45
+ "Title": "The process has been completed.",
46
+ "Description": "You will be redirected in a few moments.",
47
+ "Message": "Thank you!"
48
+ },
49
+
50
+ "IdCaptureValues": {
51
+ "Button": "Try again",
52
+ "Title": "Fits the ID in the border on the screen.",
53
+ "TitleBack": "Fits the back of the ID in the screen border.",
54
+ "TtileRotate": "Rotate ID.",
55
+ "ErrorTitleR1": "Could not collect ID information!",
56
+ "ErrorTitleR2": "Please try again!",
57
+ "ErrorR1": "Frame the ID so that the border fits perfectly on the corners of the ID. The entire surface of the ID must be visible.",
58
+ "ErrorR2": "Be careful to be in an area with enough light and not to cover parts of the ID with your fingers. Also be careful not to form light reflections on its surface.",
59
+ "IDPoseMapping": "Tips the ID back.",
60
+ "Loading": "Transferring data. Please wait..."
61
+ },
62
+
63
+ "SelfieCaptureValues": {
64
+ "Title": "Fits the face to the border on the screen.",
65
+ "FinalTitle": "Straighten head and frame face on screen.",
66
+ "ErrorTitleR1": "Process failed!",
67
+ "ErrorTitleR2": "Please try again!",
68
+ "ErrorR1": "Frame the face so that the border overlaps the chin and forehead line, exactly as you see in the animation on the screen.",
69
+ "ErrorR2": "Stay with your face in the frame and perform the requested gesture after the explainer animation has disappeared from the screen.",
70
+ "Loading": "Transferring data. Please wait...",
71
+ "FacePoseMapping": ["Turn head left.", "Turn head right.", "Tilt head back.", "Tilt head forward.", ""]
72
+ },
73
+
74
+ "AgreementInfoValues": {
75
+ "Title": "To start identification we need your consents:",
76
+ "Button": "Start Identification",
77
+ "Terms": "I have read and agree to the General Terms and Conditions of Use",
78
+ "Agreement": "I express my consent for the processing of personal data"
79
+ },
80
+
81
+ "AgreementCheckValues": {
82
+ "ButtonYes": "I agree",
83
+ "ButtonNo": "I don't agree"
84
+ },
85
+
86
+ "MobileRedirectValues": {
87
+ "InfoTop": "To continue scan the code below with a smartphone.",
88
+ "InfoBottom": "Or enter a phone number to receive the link on your smartphone.",
89
+ "Validation": "Invalid phone number!",
90
+ "InfoWaiting": "We are waiting for the process to complete on the smartphone.",
91
+ "InfoAborted": "The smartphone process has been aborted."
92
+ },
93
+
94
+ "CameraErrorValues": {
95
+ "Title": "The identification process cannot continue.",
96
+ "Description": "We could not detect any camera. Most likely you have not granted access rights to this site. Please grant access and press the button below afterwards.",
97
+ "Button": "Restart process",
98
+ "HowToLink": "https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4"
99
+ }
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "GlobalValues": {
3
+ "FooterText": "Qoobiss eKYC",
4
+ "VideoLenght": 3100
5
+ },
6
+
7
+ "HowToValues": {
8
+ "IdTitile": "Prezintă actul tău de identitate",
9
+ "IdSubTitileFace": "Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",
10
+ "IdSubTitileBack": "Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",
11
+ "IdButton": "Sunt gata!",
12
+ "SelfieTitile": "Validare video",
13
+ "SelfieSubTitile": "Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",
14
+ "SelfieButton": "Sunt gata!"
15
+ },
16
+
17
+ "LandingValues": {
18
+ "Title": "Validarea identității la distanță este o procedură simplă și rapidă",
19
+ "Description": "Asigură-te că ai:",
20
+ "IdInfo": "Actul de identitate, în original",
21
+ "DeviceInfo": "Un telefon mobil sau un calculator cu camera web",
22
+ "SmsInfo": "Acces la un telefon mobil ce permite primirea de mesaje SMS",
23
+ "Warning": "ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",
24
+ "WarningMd": "ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",
25
+ "Terms": "Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",
26
+ "Button": "Am înțeles",
27
+ "ButtonLeave": "Nu sunt pregătit"
28
+ },
29
+
30
+ "PhoneValidationValues": {
31
+ "Title": "Este necesar să validăm numărul tău de telefon",
32
+ "Description": "Introdu mai jos numarul tau de telefon:",
33
+ "Button": "Trimite SMS de verificare",
34
+ "Label": "Numarul tau de telefon"
35
+ },
36
+
37
+ "CodeValidationValues": {
38
+ "Title": "Introdu codul de validare primit prin sms:",
39
+ "Description": " ",
40
+ "Button": "Validează",
41
+ "Error": "Codul introdus nu este valid. Asigură-te că îl introduci corect"
42
+ },
43
+
44
+ "CompleteValues": {
45
+ "Title": "Procesul a fost finalizat.",
46
+ "Description": "Vei fi redirecționat în câteva momente.",
47
+ "Message": "Îți mulțumim!"
48
+ },
49
+
50
+ "IdCaptureValues": {
51
+ "Button": "Încerc din nou",
52
+ "Title": "Încadrează actul de identitate în chenarul de pe ecran.",
53
+ "TitleBack": "Încadrează spatele actului de identitate în chenarul de pe ecran.",
54
+ "TtileRotate": "Întoarce actul de identitate.",
55
+ "ErrorTitleR1": "Nu am putut colecta informațiile din actul de identitate!",
56
+ "ErrorTitleR2": "Te rugăm să mai încerci o dată!",
57
+ "ErrorR1": "Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate.",
58
+ "ErrorR2": "Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",
59
+ "IDPoseMapping": "Înclină actul de identitate spre spate.",
60
+ "Loading": "Transferăm datele. Asteptați..."
61
+ },
62
+
63
+ "SelfieCaptureValues": {
64
+ "Title": "Încadrează fața în chenarul de pe ecran.",
65
+ "FinalTitle": "Îndreaptă capul și încadrează fața în chenarul de pe ecran.",
66
+ "ErrorTitleR1": "Procesul a eșuat!",
67
+ "ErrorTitleR2": "Te rugăm să mai încerci o dată!",
68
+ "ErrorR1": "Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran.",
69
+ "ErrorR2": "Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",
70
+ "Loading": "Transferăm datele. Asteptați...",
71
+ "FacePoseMapping": ["Întoarce capul spre stânga.", "Întoarce capul spre dreapta.", "Înclină capul spre spate.", "Înclină capul în față.", ""]
72
+ },
73
+
74
+ "AgreementInfoValues": {
75
+ "Title": "Pentru începerea identificării avem nevoie de acordurile tale:",
76
+ "Button": "Încep identificarea",
77
+ "Terms": "Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",
78
+ "Agreement": "Îmi exprim acordul pentru prelucrarea datelor cu caracter personal"
79
+ },
80
+
81
+ "AgreementCheckValues": {
82
+ "ButtonYes": "Sunt de acord",
83
+ "ButtonNo": "Nu sunt de acord"
84
+ },
85
+
86
+ "MobileRedirectValues": {
87
+ "InfoTop": "Pentru a continua scanați codul de mai jos cu un smartphone.",
88
+ "InfoBottom": "Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",
89
+ "Validation": "Număr de telefon invalid!",
90
+ "InfoWaiting": "Așteptăm finalizarea procesului pe smartphone.",
91
+ "InfoAborted": "Procesului de pe smartphone a fost amanat."
92
+ },
93
+
94
+ "CameraErrorValues": {
95
+ "Title": "Procesul de indetificare nu poate continua.",
96
+ "Description": "Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",
97
+ "Button": "Reincep procesul",
98
+ "HowToLink": "https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4"
99
+ }
100
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "GlobalValues": {
3
+ "FooterText": "Qoobiss eKYC",
4
+ "VideoLenght": 3100
5
+ },
6
+
7
+ "HowToValues": {
8
+ "IdTitile": "Prezintă actul tău de identitate",
9
+ "IdSubTitileFace": "Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",
10
+ "IdSubTitileBack": "Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.",
11
+ "IdButton": "Sunt gata!",
12
+ "SelfieTitile": "Validare video",
13
+ "SelfieSubTitile": "Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.",
14
+ "SelfieButton": "Sunt gata!"
15
+ },
16
+
17
+ "LandingValues": {
18
+ "Title": "Validarea identității la distanță este o procedură simplă și rapidă",
19
+ "Description": "Asigură-te că ai:",
20
+ "IdInfo": "Actul de identitate, în original",
21
+ "DeviceInfo": "Un telefon mobil sau un calculator cu camera web",
22
+ "SmsInfo": "Acces la un telefon mobil ce permite primirea de mesaje SMS",
23
+ "Warning": "ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.",
24
+ "WarningMd": "ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.",
25
+ "Terms": "Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.",
26
+ "Button": "Am înțeles",
27
+ "ButtonLeave": "Nu sunt pregătit"
28
+ },
29
+
30
+ "PhoneValidationValues": {
31
+ "Title": "Este necesar să validăm numărul tău de telefon",
32
+ "Description": "Introdu mai jos numarul tau de telefon:",
33
+ "Button": "Trimite SMS de verificare",
34
+ "Label": "Numarul tau de telefon"
35
+ },
36
+
37
+ "CodeValidationValues": {
38
+ "Title": "Introdu codul de validare primit prin sms:",
39
+ "Description": " ",
40
+ "Button": "Validează",
41
+ "Error": "Codul introdus nu este valid. Asigură-te că îl introduci corect"
42
+ },
43
+
44
+ "CompleteValues": {
45
+ "Title": "Procesul a fost finalizat.",
46
+ "Description": "Vei fi redirecționat în câteva momente.",
47
+ "Message": "Îți mulțumim!"
48
+ },
49
+
50
+ "IdCaptureValues": {
51
+ "Button": "Încerc din nou",
52
+ "Title": "Încadrează actul de identitate în chenarul de pe ecran.",
53
+ "TitleBack": "Încadrează spatele actului de identitate în chenarul de pe ecran.",
54
+ "TtileRotate": "Întoarce actul de identitate.",
55
+ "ErrorTitleR1": "Nu am putut colecta informațiile din actul de identitate!",
56
+ "ErrorTitleR2": "Te rugăm să mai încerci o dată!",
57
+ "ErrorR1": "Încadrează actul de identitate în așa fel încât chenarul să se potrivească perfect pe colțurile actului de identitate. Trebuie să fie vizibilă întreaga suprafață a actului de identitate.",
58
+ "ErrorR2": "Ai grijă să te afli într-o zonă cu suficientă lumină și să nu acoperi părți ale actului de identitate cu degetele. Ai grijă de asemenea să nu se formeze reflexii de lumină pe suprafața acestuia.",
59
+ "IDPoseMapping": "Înclină actul de identitate spre spate.",
60
+ "Loading": "Transferăm datele. Asteptați..."
61
+ },
62
+
63
+ "SelfieCaptureValues": {
64
+ "Title": "Încadrează fața în chenarul de pe ecran.",
65
+ "FinalTitle": "Îndreaptă capul și încadrează fața în chenarul de pe ecran.",
66
+ "ErrorTitleR1": "Procesul a eșuat!",
67
+ "ErrorTitleR2": "Te rugăm să mai încerci o dată!",
68
+ "ErrorR1": "Încadrează fața în așa fel încât chenarul să se suprapună peste linia bărbiei și a frunții, exact așa cum vezi în animația de pe ecran.",
69
+ "ErrorR2": "Rămâi cu fața încadrată în chenar și execută gestul solicitat după ce animația cu explicația a dispărut de pe ecran.",
70
+ "Loading": "Transferăm datele. Asteptați...",
71
+ "FacePoseMapping": ["Întoarce capul spre stânga.", "Întoarce capul spre dreapta.", "Înclină capul spre spate.", "Înclină capul în față.", ""]
72
+ },
73
+
74
+ "AgreementInfoValues": {
75
+ "Title": "Pentru începerea identificării avem nevoie de acordurile tale:",
76
+ "Button": "Încep identificarea",
77
+ "Terms": "Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare",
78
+ "Agreement": "Îmi exprim acordul pentru prelucrarea datelor cu caracter personal"
79
+ },
80
+
81
+ "AgreementCheckValues": {
82
+ "ButtonYes": "Sunt de acord",
83
+ "ButtonNo": "Nu sunt de acord"
84
+ },
85
+
86
+ "MobileRedirectValues": {
87
+ "InfoTop": "Pentru a continua scanați codul de mai jos cu un smartphone.",
88
+ "InfoBottom": "Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.",
89
+ "Validation": "Număr de telefon invalid!",
90
+ "InfoWaiting": "Așteptăm finalizarea procesului pe smartphone.",
91
+ "InfoAborted": "Procesului de pe smartphone a fost amanat."
92
+ },
93
+
94
+ "CameraErrorValues": {
95
+ "Title": "Procesul de indetificare nu poate continua.",
96
+ "Description": "Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.",
97
+ "Button": "Reincep procesul",
98
+ "HowToLink": "https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4"
99
+ }
100
+ }
@@ -0,0 +1 @@
1
+ import{r as t,h as s}from"./p-8942656c.js";import{B as i,F as o}from"./p-7bedffaa.js";const n=class{constructor(s){t(this,s),this.baseComponent=new i(o.SelfieTilt)}componentWillLoad(){}buttonClick(){}render(){return s("div",{class:"container"},s("div",{class:"row"},s("div",{class:"text-center"},s("h1",null,this.topTitle)),s("div",{class:"pos-relative show-bottom"},s("div",{class:"btn-buletin"},s("button",{class:"main-button",onClick:()=>this.buttonClick()},this.buttonText),s("p",{class:"main-text font-size-18 text-right mb-0"},this.baseComponent.translations.GlobalValues.FooterText)))))}};n.style="";export{n as random_actions}
@@ -0,0 +1 @@
1
+ import{a as t,f as e}from"./p-8942656c.js";var i;!function(t){t[t.Capturing=0]="Capturing",t[t.FinishedCapturing=1]="FinishedCapturing",t[t.Waiting=2]="Waiting",t[t.NotFound=3]="NotFound",t[t.Aborted=4]="Aborted"}(i||(i={}));const s=t=>!("isConnected"in t)||t.isConnected,n=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(s))})(...e)}),2e3)}})(),o=t=>"function"==typeof t?t():t;var a;!function(t){t[t.LANDING=0]="LANDING",t[t.AGREEMENT=1]="AGREEMENT",t[t.PHONE=2]="PHONE",t[t.CODE=3]="CODE",t[t.CODEERROR=4]="CODEERROR",t[t.ID=5]="ID",t[t.LIVENESS=6]="LIVENESS",t[t.COMPLETE=7]="COMPLETE",t[t.ERROREND=8]="ERROREND",t[t.CAMERAERROR=9]="CAMERAERROR",t[t.NONE=10]="NONE"}(a||(a={}));class r{}r.IDPoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4"};class c{}c.FacePoseDemoMapping={0:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4",1:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4",2:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4",3:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4",4:"https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4"};class h{}h.FlowStatusKey="qbs-ect-flowstatus",h.RequestIdKey="qbs-ect-requestid",h.TokenKey="qbs-ect-token",h.InitialisedKey="qbs-ect-initialised",h.HasIdBackKey="qbs-ect-has-id-back",h.AgreementValidationKey="qbs-ect-agreement-validation",h.PhoneValidationKey="qbs-ect-phone-validation",h.RefreshDoneKey="qbs-ect-refresh-done";class l{constructor(){this.uriEnv="/",this.uriEnv="QA"==d.environment?"/dev_":"/",this.OtpSend=this.uriEnv+"validation/otp/send",this.OtpCheck=this.uriEnv+"validation/otp/check",this.IdentityInsert=this.uriEnv+"validation/identity/insert",this.UploadCapture=this.uriEnv+"validation/upload/capture",this.GetAgreement=this.uriEnv+"validation/agreement/content",this.GenerateAgreement=this.uriEnv+"validation/agreement/generate",this.SendLink=this.uriEnv+"validation/otp/sendlink",this.GetStatus=this.uriEnv+"validation/identity/status",this.AddLog=this.uriEnv+"validation/logs/add",this.AddStep=this.uriEnv+"validation/logs/step",this.AbortRequest=this.uriEnv+"validation/identity/abort"}}const{state:d,onChange:u}=(()=>{const i=((t,e=((t,e)=>t!==e))=>{const i=o(t);let s=new Map(Object.entries(null!=i?i:{}));const n={dispose:[],get:[],set:[],reset:[]},a=()=>{var e;s=new Map(Object.entries(null!==(e=o(t))&&void 0!==e?e:{})),n.reset.forEach((t=>t()))},r=t=>(n.get.forEach((e=>e(t))),s.get(t)),c=(t,i)=>{const o=s.get(t);e(i,o,t)&&(s.set(t,i),n.set.forEach((e=>e(t,i,o))))},h="undefined"==typeof Proxy?{}:new Proxy(i,{get:(t,e)=>r(e),ownKeys:()=>Array.from(s.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>s.has(e),set:(t,e,i)=>(c(e,i),!0)}),l=(t,e)=>(n[t].push(e),()=>{((t,e)=>{const i=t.indexOf(e);i>=0&&(t[i]=t[t.length-1],t.length--)})(n[t],e)});return{state:h,get:r,set:c,on:l,onChange:(e,i)=>{const s=l("set",((t,s)=>{t===e&&i(s)})),n=l("reset",(()=>i(o(t)[e])));return()=>{s(),n()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(l("set",e.set)),e.get&&t.push(l("get",e.get)),e.reset&&t.push(l("reset",e.reset)),e.dispose&&t.push(l("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{n.dispose.forEach((t=>t())),a()},reset:a,forceUpdate:t=>{const e=s.get(t);n.set.forEach((i=>i(t,e,e)))}}})({flowStatus:a.NONE,environment:"PROD",debug:!1,requestId:"",redirectId:"",initialised:!1,token:"",cameraIds:[],cameraId:"",hasIdBack:!1,hasSelfieGesture:!1,hasIdTilt:!1,agreementsValidation:!0,phoneValidation:!0,phoneNumber:"",apiBaseUrl:"https://apiro.id-kyc.com",device:null,langIso:"ro"},void 0);return i.use((()=>{if("function"!=typeof t)return{};const i=new Map;return{dispose:()=>i.clear(),get:e=>{const s=t();s&&((t,e,i)=>{const s=t.get(e);s?s.includes(i)||s.push(i):t.set(e,[i])})(i,e,s)},set:t=>{const s=i.get(t);s&&i.set(t,s.filter(e)),n(i)},reset:()=>{i.forEach((t=>t.forEach(e))),n(i)}}})()),i})();var p,w,b,m,f;u("environment",(t=>{d.debug="QA"==t})),u("flowStatus",(t=>{sessionStorage.setItem(h.FlowStatusKey,a[t])})),u("token",(t=>{sessionStorage.setItem(h.TokenKey,t)})),u("requestId",(t=>{sessionStorage.setItem(h.RequestIdKey,t)})),u("initialised",(t=>{sessionStorage.setItem(h.InitialisedKey,String(t))})),u("hasIdBack",(t=>{sessionStorage.setItem(h.HasIdBackKey,String(t))})),u("agreementsValidation",(t=>{sessionStorage.setItem(h.AgreementValidationKey,String(t))})),u("phoneValidation",(t=>{sessionStorage.setItem(h.PhoneValidationKey,String(t))})),function(t){t[t.ComponentLoaded="component-loaded"]="ComponentLoaded",t[t.MobileRedirect="mobile-redirect"]="MobileRedirect",t[t.Landing="landing"]="Landing",t[t.Agreements="agreements"]="Agreements",t[t.OtpSend="otp-send"]="OtpSend",t[t.OtpCheck="otp-check"]="OtpCheck",t[t.CiFront="ci-front"]="CiFront",t[t.CiFrontHowTo="ci-front-how-to"]="CiFrontHowTo",t[t.CiFrontCapture="ci-front-capture"]="CiFrontCapture",t[t.CiBack="ci-back"]="CiBack",t[t.CiBackHowTo="ci-back-how-to"]="CiBackHowTo",t[t.CiBackCapture="ci-back-capture"]="CiBackCapture",t[t.CiTilt="ci-tilt"]="CiTilt",t[t.CiError="ci-error"]="CiError",t[t.SelfieHowTo="selfie-how-to"]="SelfieHowTo",t[t.SelfieTilt="selfie-tilt"]="SelfieTilt",t[t.SelfieCapture="selfie-capture"]="SelfieCapture",t[t.Selfie="selfie"]="Selfie",t[t.SelfieError="selfie-error"]="SelfieError",t[t.End="end"]="End",t[t.CameraError="camera-error"]="CameraError"}(p||(p={})),function(t){t[t.Initialized="initialized"]="Initialized",t[t.Finalized="finalized"]="Finalized",t[t.None="none"]="None"}(w||(w={}));class y{constructor(){this.serviceErrors=["Service Unavailable","Unauthorized"],this.toBase64=t=>new Promise(((e,i)=>{const s=new FileReader;s.readAsDataURL(t),s.onload=()=>e(s.result),s.onerror=t=>i(t)})),this.urls=new l}async http(t){const e=await fetch(t);if(!e.ok)throw new Error(e.statusText);try{return await e.json()}catch(t){throw new Error("No json found in response "+t)}}async post(t,e,i=!0){var s=new Request(d.apiBaseUrl+t,{method:"POST",body:e,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});try{return await this.http(s)}catch(s){if(!i||this.serviceErrors.includes(s.message))throw s;this.AddLog("Error in post ",s);try{var n=new Request(d.apiBaseUrl+t,{method:"POST",body:e,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});return await this.http(n)}catch(i){this.AddLog("Error in post ",i);var o=new Request(d.apiBaseUrl+t,{method:"POST",body:e,headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});return await this.http(o)}}}async get(t,e=!0){var i=new Request(d.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});try{return await this.http(i)}catch(i){if(!e||this.serviceErrors.includes(i.message))throw i;this.AddLog("Error in get ",i);try{var s=new Request(d.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});return await this.http(s)}catch(e){this.AddLog("Error in get ",e);var n=new Request(d.apiBaseUrl+t,{method:"GET",headers:{"Content-Type":"application/json",Authorization:"IDKYC-TOKEN "+d.token}});return await this.http(n)}}}async SendOTPCode(t,e){let i={requestId:t,phone:e};return(await this.post(this.urls.OtpSend,JSON.stringify(i))).sent}async CheckOTPCode(t,e){let i={requestId:t,otp:e};return(await this.post(this.urls.OtpCheck,JSON.stringify(i))).valid}async AddIdentificationRequest(t,e){d.debug&&console.log("Calling identity request with store:"+JSON.stringify(d));let i={requestId:d.requestId,clientDeviceInfo:JSON.stringify(t),redirectId:d.redirectId,phoneNumber:d.phoneNumber,version:e},s=await this.post(this.urls.IdentityInsert,JSON.stringify(i));return""==d.requestId&&(d.requestId=s.requestId),d.hasIdBack=s.hasIdBack,d.hasIdTilt=s.hasIdTilt,d.hasSelfieGesture=s.hasSelfieGesture,d.agreementsValidation=s.agreementsValidation,d.phoneValidation=s.phoneValidation,d.phoneNumber=s.phoneNumber,!0}async UploadFileForRequestB64(t,e,i){let s={requestId:t,type:e,data:await this.toBase64(i)},n=await this.post(this.urls.UploadCapture,JSON.stringify(s));return d.hasIdBack||"IdFront"!=e?d.hasIdBack&&"IdBack"==e?n.isValid:"Selfie"!=e||n.isValid:n.isValid}async GetAgreement(t){return(await this.get(this.urls.GetAgreement+"?type="+t+"&requestId="+d.requestId)).htmlText}async GenerateAgreement(t){let e={requestId:d.requestId,documentType:t};return(await this.post(this.urls.GenerateAgreement,JSON.stringify(e))).generation}async GetStatus(t){let e=await this.get(this.urls.GetStatus+"?orderId="+t);return i[e.status]}async SendLink(t,e){let i={requestId:d.requestId,link:t,phoneNumber:e};return(await this.post(this.urls.SendLink,JSON.stringify(i))).sent}async AddLog(t,e){try{let i={requestId:d.requestId,action:a[d.flowStatus],message:JSON.stringify({error:t,context:e})};return(await this.post(this.urls.AddLog,JSON.stringify(i),!1)).saved}catch(t){}}async AddStep(t,e){let i={requestId:d.requestId,redirectId:d.redirectId,step:p[t],moment:w[e],timestamp:(new Date).toISOString()};return(await this.post(this.urls.AddStep,JSON.stringify(i))).saved}async AbortRequest(){return(await this.post(this.urls.AbortRequest,JSON.stringify({requestId:d.requestId}))).saved}}!function(t){t.Android="android",t.iOS="ios",t.Unknown="unknown",t.WindowsPhone="Windows Phone"}(b||(b={})),function(t){t.Linux="linux",t.MacOS="mac_os",t.Unix="unix",t.Unknown="unknown",t.Windows="windows"}(m||(m={})),function(t){t.Chrome="chrome",t.Firefox="firefox",t.Safari="safari",t.Mi="mi",t.Unknown="unknown"}(f||(f={}));class v{constructor(){var t,e,i,s;this.supportedScreenOrientation=null!==(e=null!==(t=((null===screen||void 0===screen?void 0:screen.orientation)||{}).type)&&void 0!==t?t:screen.mozOrientation)&&void 0!==e?e:screen.msOrientation,this.safariScreenOrientation=!(null===screen||void 0===screen?void 0:screen.orientation)&&matchMedia("(orientation: portrait)").matches?"portrait-primary":"landscape-primary",this.initialScreenOrientation=null!==(s=null!==(i=this.supportedScreenOrientation)&&void 0!==i?i:this.safariScreenOrientation)&&void 0!==s?s:"portrait-primary",this.userAgent=navigator.userAgent||navigator.vendor||window.opera||void 0,this.isMobile=this.isMobileDevice(),this.isTablet=this.isTabletDevice(),this.isDesktop=!this.isMobile&&!this.isTablet}isMobileDevice(){return[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some((t=>this.userAgent.match(t)))}isTabletDevice(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.userAgent.toLowerCase())}getMobileOS(){return this.isMobileDevice()?/windows phone/i.test(this.userAgent)?b.WindowsPhone:/android/i.test(this.userAgent)?b.Android:/iPad|iPhone|iPod/.test(this.userAgent)&&!window.MSStream?b.iOS:b.Unknown:void 0}getDesktopOS(){return this.isDesktop?-1!==this.userAgent.indexOf("Win")?m.Windows:-1!==this.userAgent.indexOf("Mac")?m.MacOS:-1!==this.userAgent.indexOf("X11")?m.Unix:-1!==this.userAgent.indexOf("Linux")?m.Linux:m.Unknown:void 0}getDeviceOS(){var t;return null!==(t=this.getMobileOS())&&void 0!==t?t:this.getDesktopOS()}getBrowser(){if(/XiaoMi/i.test(this.userAgent)||/MiuiBrowser/i.test(this.userAgent))return f.Mi;var t=/chrome/i.test(this.userAgent);return t?f.Chrome:/firefox/i.test(navigator.userAgent)?f.Firefox:!t&&/safari/i.test(navigator.userAgent)?f.Safari:f.Unknown}getDevice(){return{isDesktop:this.isDesktop,desktopOS:this.getDesktopOS(),isWindowsDesktop:this.getDeviceOS()===m.Windows,isLinuxOrUnixDesktop:this.getDeviceOS()===m.Linux||this.getDeviceOS()===m.Unix,isMobile:this.isMobile,mobileOS:this.getMobileOS(),isAndroidDevice:this.getDeviceOS()===b.Android,isAppleDevice:this.getDeviceOS()===b.iOS||this.getDeviceOS()===m.MacOS,isUnknownMobileDevice:this.getDeviceOS()===b.Unknown,browser:this.getBrowser(),isTablet:this.isTablet,initialScreenOrientation:this.initialScreenOrientation}}}class g{static init(t){this.callingModule=t}static flowEvent(t,e){const i=`ect-${t.toString()}-${e.toString()}-event`;this.callingModule.dispatchEvent(new CustomEvent(i,{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowStarted(){this.callingModule.dispatchEvent(new CustomEvent("ect-started",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowAborted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-aborted",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowCompleted(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-completed",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}static flowError(t){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-error",{detail:{error:t},bubbles:!0,cancelable:!0,composed:!0}))}static tokenExpired(){sessionStorage.clear(),this.callingModule.dispatchEvent(new CustomEvent("ect-session-expired",{detail:{},bubbles:!0,cancelable:!0,composed:!0}))}}const S=new class{async getValues(){return this.values||(this.values=await this.fetchTranslations()),this.values}getLocale(t=document.body){const e=t.closest("[lang]");return e?e.lang:d.langIso}async fetchTranslations(){const t=this.getLocale(),e=JSON.parse(sessionStorage.getItem(`i18n.${t}`));if(e&&Object.keys(e).length>0)return e;try{const e=await fetch(`/i18n/${t}.json`);if(e.ok){const i=await e.json();return sessionStorage.setItem(`i18n.${t}`,JSON.stringify(i)),i}}catch(e){console.error(`Error loading locale: ${t}`,e)}}};class E{constructor(t){this.apiErrorEvent=null,this.processError=null,this.apiCall=new y,t&&(this.flowStep=t),d.device||(d.device=(new v).getDevice()),S.getValues().then((t=>{this.translations=t}))}setEventEmitter(t){this.apiErrorEvent=t}setErrorCallback(t){this.processError=t}async logStep(t,e){g.flowEvent(t,e);try{await this.apiCall.AddStep(t,e)}catch(i){this.apiErrorEvent?this.apiErrorEvent.emit(i):this.processError(i,`${t}-${e}`)}}async initialize(){g.flowEvent(this.flowStep,w.Initialized);try{await this.apiCall.AddStep(this.flowStep,w.Initialized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${w.Initialized}`)}}async finalize(){g.flowEvent(this.flowStep,w.Finalized);try{await this.apiCall.AddStep(this.flowStep,w.Finalized)}catch(t){this.apiErrorEvent?this.apiErrorEvent.emit(t):this.processError(t,`${this.flowStep}-${w.Finalized}`)}}}export{y as A,E as B,g as E,p as F,r as I,b as M,i as O,h as S,a,f as b,w as c,c as d,d as s}