@ekyc_qoobiss/qbs-ect-cmp 3.6.15 → 3.6.17

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 (33) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +316 -701
  2. package/dist/cjs/{index-79f82518.js → index-41696e0e.js} +6 -1
  3. package/dist/cjs/loader-dots.cjs.entry.js +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
  6. package/dist/cjs/random-actions.cjs.entry.js +22 -0
  7. package/dist/cjs/store-4bf93725.js +415 -0
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/common/agreement-check/agreement-check.js +21 -2
  10. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  11. package/dist/collection/components/common/random-actions/random-actions.js +20 -0
  12. package/dist/collection/components/flow/process-id/process-id.js +3 -0
  13. package/dist/collection/components/flow/user-liveness/user-liveness.js +13 -15
  14. package/dist/collection/components/identification-component/identification-component.css +7 -0
  15. package/dist/esm/agreement-check_19.entry.js +30 -415
  16. package/dist/esm/{index-9d69e511.js → index-cf54a432.js} +7 -2
  17. package/dist/esm/loader-dots.entry.js +1 -1
  18. package/dist/esm/loader.js +3 -3
  19. package/dist/esm/qbs-ect-cmp.js +3 -3
  20. package/dist/esm/random-actions.entry.js +18 -0
  21. package/dist/esm/store-b76678da.js +399 -0
  22. package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-054dc5b3.entry.js} +1 -1
  23. package/dist/qbs-ect-cmp/p-0a37620f.entry.js +1 -0
  24. package/dist/qbs-ect-cmp/p-27abb3e6.js +1 -0
  25. package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
  26. package/dist/qbs-ect-cmp/{p-a85dd6fc.entry.js → p-b828c183.entry.js} +22 -22
  27. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  28. package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
  29. package/dist/types/components/common/random-actions/random-actions.d.ts +7 -0
  30. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +2 -2
  31. package/dist/types/components.d.ts +13 -0
  32. package/package.json +1 -1
  33. package/dist/qbs-ect-cmp/p-06e42b28.js +0 -2
@@ -1417,7 +1417,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1417
1417
  const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1418
1418
  if (listeners) {
1419
1419
  listeners.map(([flags, name, method]) => {
1420
- const target = elm;
1420
+ const target = getHostListenerTarget(elm, flags) ;
1421
1421
  const handler = hostListenerProxy(hostRef, method);
1422
1422
  const opts = hostListenerOpts(flags);
1423
1423
  plt.ael(target, name, handler, opts);
@@ -1441,6 +1441,11 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
1441
1441
  consoleError(e);
1442
1442
  }
1443
1443
  };
1444
+ const getHostListenerTarget = (elm, flags) => {
1445
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
1446
+ return win;
1447
+ return elm;
1448
+ };
1444
1449
  // prettier-ignore
1445
1450
  const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1446
1451
  /**
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-79f82518.js');
5
+ const index = require('./index-41696e0e.js');
6
6
 
7
7
  const loaderDotsCss = "i,i::before,i::after{animation-duration:0.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}body{font-family:sans-serif}i{width:300px;height:75px;margin:auto;display:block;background:no-repeat;background-image:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));background-size:75px 75px;background-position:0%, 50%;position:relative;transform:translateZ(0) scale(0.25);animation-name:slide}i::before,i::after{content:'';width:75px;height:75px;background:radial-gradient(closest-side, #1FEAA6 90%, rgba(0, 0, 0, 0));position:absolute;top:50%;margin-top:-37.5px;animation-name:reveal}i::before{left:1%;animation-delay:40ms}i::after{right:1%;animation-direction:reverse}@keyframes slide{from{background-position:0%, 50%}to{background-position:50%, 100%}}@keyframes reveal{from{transform:scale(0.001)}to{transform:scale(1)}}";
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-79f82518.js');
5
+ const index = require('./index-41696e0e.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -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"]]],["agreement-check_19.cjs",[[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"]]],[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,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[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 index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_19.cjs",[[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"]]],[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,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]},[[9,"scroll","handleScroll"]]],[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
  });
19
19
  };
20
20
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-79f82518.js');
5
+ const index = require('./index-41696e0e.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
@@ -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"]]],["agreement-check_19.cjs",[[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"]]],[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,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[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);
20
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["random-actions.cjs",[[0,"random-actions"]]],["agreement-check_19.cjs",[[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"]]],[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,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32],"scrollClass":[32]},[[9,"scroll","handleScroll"]]],[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);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-41696e0e.js');
6
+ const store = require('./store-4bf93725.js');
7
+
8
+ const randomActionsCss = "";
9
+
10
+ const RandomActions = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ }
14
+ componentWillLoad() { }
15
+ buttonClick() { }
16
+ render() {
17
+ return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.topTitle)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, store.HowToValues.FooterText))))));
18
+ }
19
+ };
20
+ RandomActions.style = randomActionsCss;
21
+
22
+ exports.random_actions = RandomActions;
@@ -0,0 +1,415 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-41696e0e.js');
4
+
5
+ const appendToMap = (map, propName, value) => {
6
+ const items = map.get(propName);
7
+ if (!items) {
8
+ map.set(propName, [value]);
9
+ }
10
+ else if (!items.includes(value)) {
11
+ items.push(value);
12
+ }
13
+ };
14
+ const debounce = (fn, ms) => {
15
+ let timeoutId;
16
+ return (...args) => {
17
+ if (timeoutId) {
18
+ clearTimeout(timeoutId);
19
+ }
20
+ timeoutId = setTimeout(() => {
21
+ timeoutId = 0;
22
+ fn(...args);
23
+ }, ms);
24
+ };
25
+ };
26
+
27
+ /**
28
+ * Check if a possible element isConnected.
29
+ * The property might not be there, so we check for it.
30
+ *
31
+ * We want it to return true if isConnected is not a property,
32
+ * otherwise we would remove these elements and would not update.
33
+ *
34
+ * Better leak in Edge than to be useless.
35
+ */
36
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
37
+ const cleanupElements = debounce((map) => {
38
+ for (let key of map.keys()) {
39
+ map.set(key, map.get(key).filter(isConnected));
40
+ }
41
+ }, 2000);
42
+ const stencilSubscription = () => {
43
+ if (typeof index.getRenderingRef !== 'function') {
44
+ // If we are not in a stencil project, we do nothing.
45
+ // This function is not really exported by @stencil/core.
46
+ return {};
47
+ }
48
+ const elmsToUpdate = new Map();
49
+ return {
50
+ dispose: () => elmsToUpdate.clear(),
51
+ get: (propName) => {
52
+ const elm = index.getRenderingRef();
53
+ if (elm) {
54
+ appendToMap(elmsToUpdate, propName, elm);
55
+ }
56
+ },
57
+ set: (propName) => {
58
+ const elements = elmsToUpdate.get(propName);
59
+ if (elements) {
60
+ elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
61
+ }
62
+ cleanupElements(elmsToUpdate);
63
+ },
64
+ reset: () => {
65
+ elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
66
+ cleanupElements(elmsToUpdate);
67
+ },
68
+ };
69
+ };
70
+
71
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
72
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
73
+ const unwrappedState = unwrap(defaultState);
74
+ let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
75
+ const handlers = {
76
+ dispose: [],
77
+ get: [],
78
+ set: [],
79
+ reset: [],
80
+ };
81
+ const reset = () => {
82
+ var _a;
83
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
84
+ // otherwise, the state won't be properly reset
85
+ states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
86
+ handlers.reset.forEach((cb) => cb());
87
+ };
88
+ const dispose = () => {
89
+ // Call first dispose as resetting the state would
90
+ // cause less updates ;)
91
+ handlers.dispose.forEach((cb) => cb());
92
+ reset();
93
+ };
94
+ const get = (propName) => {
95
+ handlers.get.forEach((cb) => cb(propName));
96
+ return states.get(propName);
97
+ };
98
+ const set = (propName, value) => {
99
+ const oldValue = states.get(propName);
100
+ if (shouldUpdate(value, oldValue, propName)) {
101
+ states.set(propName, value);
102
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
103
+ }
104
+ };
105
+ const state = (typeof Proxy === 'undefined'
106
+ ? {}
107
+ : new Proxy(unwrappedState, {
108
+ get(_, propName) {
109
+ return get(propName);
110
+ },
111
+ ownKeys(_) {
112
+ return Array.from(states.keys());
113
+ },
114
+ getOwnPropertyDescriptor() {
115
+ return {
116
+ enumerable: true,
117
+ configurable: true,
118
+ };
119
+ },
120
+ has(_, propName) {
121
+ return states.has(propName);
122
+ },
123
+ set(_, propName, value) {
124
+ set(propName, value);
125
+ return true;
126
+ },
127
+ }));
128
+ const on = (eventName, callback) => {
129
+ handlers[eventName].push(callback);
130
+ return () => {
131
+ removeFromArray(handlers[eventName], callback);
132
+ };
133
+ };
134
+ const onChange = (propName, cb) => {
135
+ const unSet = on('set', (key, newValue) => {
136
+ if (key === propName) {
137
+ cb(newValue);
138
+ }
139
+ });
140
+ // We need to unwrap the defaultState because it might be a function.
141
+ // Otherwise we might not be sending the right reset value.
142
+ const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
143
+ return () => {
144
+ unSet();
145
+ unReset();
146
+ };
147
+ };
148
+ const use = (...subscriptions) => {
149
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
150
+ if (subscription.set) {
151
+ unsubs.push(on('set', subscription.set));
152
+ }
153
+ if (subscription.get) {
154
+ unsubs.push(on('get', subscription.get));
155
+ }
156
+ if (subscription.reset) {
157
+ unsubs.push(on('reset', subscription.reset));
158
+ }
159
+ if (subscription.dispose) {
160
+ unsubs.push(on('dispose', subscription.dispose));
161
+ }
162
+ return unsubs;
163
+ }, []);
164
+ return () => unsubs.forEach((unsub) => unsub());
165
+ };
166
+ const forceUpdate = (key) => {
167
+ const oldValue = states.get(key);
168
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
169
+ };
170
+ return {
171
+ state,
172
+ get,
173
+ set,
174
+ on,
175
+ onChange,
176
+ use,
177
+ dispose,
178
+ reset,
179
+ forceUpdate,
180
+ };
181
+ };
182
+ const removeFromArray = (array, item) => {
183
+ const index = array.indexOf(item);
184
+ if (index >= 0) {
185
+ array[index] = array[array.length - 1];
186
+ array.length--;
187
+ }
188
+ };
189
+
190
+ const createStore = (defaultState, shouldUpdate) => {
191
+ const map = createObservableMap(defaultState, shouldUpdate);
192
+ map.use(stencilSubscription());
193
+ return map;
194
+ };
195
+
196
+ exports.FlowStatus = void 0;
197
+ (function (FlowStatus) {
198
+ FlowStatus[FlowStatus["LANDING"] = 0] = "LANDING";
199
+ FlowStatus[FlowStatus["AGREEMENT"] = 1] = "AGREEMENT";
200
+ FlowStatus[FlowStatus["PHONE"] = 2] = "PHONE";
201
+ FlowStatus[FlowStatus["CODE"] = 3] = "CODE";
202
+ FlowStatus[FlowStatus["CODEERROR"] = 4] = "CODEERROR";
203
+ FlowStatus[FlowStatus["ID"] = 5] = "ID";
204
+ FlowStatus[FlowStatus["LIVENESS"] = 6] = "LIVENESS";
205
+ FlowStatus[FlowStatus["COMPLETE"] = 7] = "COMPLETE";
206
+ FlowStatus[FlowStatus["ERROREND"] = 8] = "ERROREND";
207
+ FlowStatus[FlowStatus["CAMERAERROR"] = 9] = "CAMERAERROR";
208
+ FlowStatus[FlowStatus["NONE"] = 10] = "NONE";
209
+ })(exports.FlowStatus || (exports.FlowStatus = {}));
210
+
211
+ class GlobalValues {
212
+ }
213
+ GlobalValues.FooterText = 'Qoobiss eKYC';
214
+ GlobalValues.VideoLenght = 3100;
215
+ class HowToValues extends GlobalValues {
216
+ }
217
+ HowToValues.IdTitile = 'Prezintă actul tău de identitate';
218
+ HowToValues.IdSubTitileFace = 'Este necesară captarea actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
219
+ HowToValues.IdSubTitileBack = 'Este necesară captarea pe verso a actului de identitate. Urmează intrucțiunile ce vor fi afișate pe ecran.';
220
+ HowToValues.IdButton = 'Sunt gata!';
221
+ HowToValues.SelfieTitile = 'Validare video';
222
+ HowToValues.SelfieSubTitile = 'Este necesară realizarea unei înregistrări video. Respectă intrucțiunile ce vor fi afișate pe ecran.';
223
+ HowToValues.SelfieButton = 'Sunt gata!';
224
+ class LandingValues extends GlobalValues {
225
+ }
226
+ LandingValues.Title = 'Validarea identității la distanță este o procedură simplă și rapidă';
227
+ LandingValues.Description = 'Asigură-te că ai:';
228
+ LandingValues.IdInfo = 'Actul de identitate, în original';
229
+ LandingValues.DeviceInfo = 'Un telefon mobil sau un calculator cu camera web';
230
+ LandingValues.SmsInfo = 'Acces la un telefon mobil ce permite primirea de mesaje SMS';
231
+ LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza doar cartea de identitate Românească.';
232
+ LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
233
+ LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
234
+ LandingValues.Button = 'Am înțeles';
235
+ LandingValues.ButtonLeave = 'Nu sunt pregătit';
236
+ class PhoneValidationValues extends GlobalValues {
237
+ }
238
+ PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';
239
+ PhoneValidationValues.Description = 'Introdu mai jos numarul tau de telefon:';
240
+ PhoneValidationValues.Button = 'Trimite SMS de verificare';
241
+ PhoneValidationValues.Label = 'Numarul tau de telefon';
242
+ class CodeValidationValues extends GlobalValues {
243
+ }
244
+ CodeValidationValues.Title = 'Introdu codul de validare primit prin sms:';
245
+ CodeValidationValues.Description = ' ';
246
+ CodeValidationValues.Button = 'Validează';
247
+ CodeValidationValues.Error = 'Codul introdus nu este valid. Asigură-te că îl introduci corect';
248
+ class CompleteValues extends GlobalValues {
249
+ }
250
+ CompleteValues.Title = 'Procesul a fost finalizat.';
251
+ CompleteValues.Description = 'Vei fi redirecționat în câteva momente.';
252
+ CompleteValues.Message = 'Îți mulțumim!';
253
+ class SessionKeys {
254
+ }
255
+ SessionKeys.FlowStatusKey = 'qbs-ect-flowstatus';
256
+ SessionKeys.RequestIdKey = 'qbs-ect-requestid';
257
+ SessionKeys.TokenKey = 'qbs-ect-token';
258
+ SessionKeys.InitialisedKey = 'qbs-ect-initialised';
259
+ SessionKeys.HasIdBackKey = 'qbs-ect-has-id-back';
260
+ SessionKeys.AgreementValidationKey = 'qbs-ect-agreement-validation';
261
+ SessionKeys.PhoneValidationKey = 'qbs-ect-phone-validation';
262
+ SessionKeys.RefreshDoneKey = 'qbs-ect-refresh-done';
263
+ class IdCaptureValues extends GlobalValues {
264
+ }
265
+ IdCaptureValues.Button = 'Încerc din nou';
266
+ IdCaptureValues.Title = 'Încadrează actul de identitate în chenarul de pe ecran.';
267
+ IdCaptureValues.TitleBack = 'Încadrează spatele actului de identitate în chenarul de pe ecran.';
268
+ IdCaptureValues.TtileRotate = 'Întoarce actul de identitate.';
269
+ IdCaptureValues.ErrorTitleR1 = 'Nu am putut colecta informațiile din actul de identitate!';
270
+ IdCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
271
+ IdCaptureValues.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. ';
272
+ IdCaptureValues.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.';
273
+ IdCaptureValues.IDPoseMapping = {
274
+ 0: '',
275
+ 1: 'Înclină actul de identitate spre spate.',
276
+ 2: '',
277
+ 3: '',
278
+ 4: '',
279
+ };
280
+ IdCaptureValues.IDPoseDemoMapping = {
281
+ 0: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front.mp4',
282
+ 1: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_front_tilt.mp4',
283
+ 2: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_rotate.mp4',
284
+ 3: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back.mp4',
285
+ 4: 'https://ekyc.blob.core.windows.net/$web/animations/id/id_back_tilt.mp4',
286
+ };
287
+ IdCaptureValues.Loading = 'Transferăm datele. Asteptați...';
288
+ class SelfieCaptureValues extends GlobalValues {
289
+ }
290
+ SelfieCaptureValues.Title = 'Încadrează fața în chenarul de pe ecran.';
291
+ SelfieCaptureValues.FinalTitle = 'Îndreaptă capul și încadrează fața în chenarul de pe ecran.';
292
+ SelfieCaptureValues.ErrorTitleR1 = 'Procesul a eșuat!';
293
+ SelfieCaptureValues.ErrorTitleR2 = 'Te rugăm să mai încerci o dată!';
294
+ SelfieCaptureValues.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. ';
295
+ SelfieCaptureValues.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.';
296
+ SelfieCaptureValues.Loading = 'Transferăm datele. Asteptați...';
297
+ SelfieCaptureValues.FacePoseMapping = {
298
+ 0: 'Întoarce capul spre stânga.',
299
+ 1: 'Întoarce capul spre dreapta.',
300
+ 2: 'Înclină capul spre spate.',
301
+ 3: 'Înclină capul în față.',
302
+ // 4: 'Înclină capul spre stânga.',
303
+ // 5: 'Înclină capul spre dreapta.',
304
+ 4: '',
305
+ };
306
+ SelfieCaptureValues.FacePoseDemoMapping = {
307
+ 0: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_left.mp4',
308
+ 1: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_rotate_right.mp4',
309
+ 2: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_back.mp4',
310
+ 3: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_front.mp4',
311
+ // 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_left.mp4',
312
+ // 5: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_tilt_right.mp4',
313
+ 4: 'https://ekyc.blob.core.windows.net/$web/animations/selfie/selfie_main.mp4',
314
+ };
315
+ class AgreementInfoValues extends GlobalValues {
316
+ }
317
+ AgreementInfoValues.Title = 'Pentru începerea identificării avem nevoie de acordurile tale:';
318
+ AgreementInfoValues.Button = 'Încep identificarea';
319
+ AgreementInfoValues.Terms = 'Am luat la cunoștință și sunt de acord cu Termenii și condițiile generale de utilizare';
320
+ AgreementInfoValues.Agreement = 'Îmi exprim acordul pentru prelucrarea datelor cu caracter personal';
321
+ class AgreementCheckValues extends GlobalValues {
322
+ }
323
+ AgreementCheckValues.ButtonYes = 'Sunt de acord';
324
+ AgreementCheckValues.ButtonNo = 'Nu sunt de acord';
325
+ class ApiUrls {
326
+ constructor() {
327
+ this.uriEnv = '/';
328
+ this.uriEnv = state.environment == 'QA' ? '/dev_' : '/';
329
+ this.OtpSend = this.uriEnv + 'validation/otp/send';
330
+ this.OtpCheck = this.uriEnv + 'validation/otp/check';
331
+ this.IdentityInsert = this.uriEnv + 'validation/identity/insert';
332
+ this.UploadCapture = this.uriEnv + 'validation/upload/capture';
333
+ this.GetAgreement = this.uriEnv + 'validation/agreement/content';
334
+ this.GenerateAgreement = this.uriEnv + 'validation/agreement/generate';
335
+ this.SendLink = this.uriEnv + 'validation/otp/sendlink';
336
+ this.GetStatus = this.uriEnv + 'validation/identity/status';
337
+ this.AddLog = this.uriEnv + 'validation/logs/add';
338
+ this.AddStep = this.uriEnv + 'validation/logs/step';
339
+ this.AbortRequest = this.uriEnv + 'validation/identity/abort';
340
+ }
341
+ }
342
+ class MobileRedirectValues extends GlobalValues {
343
+ }
344
+ MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu un smartphone.';
345
+ MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
346
+ MobileRedirectValues.Validation = 'Număr de telefon invalid!';
347
+ MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
348
+ MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
349
+ class CameraErrorValues extends GlobalValues {
350
+ }
351
+ CameraErrorValues.Title = 'Procesul de indetificare nu poate continua.';
352
+ CameraErrorValues.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.';
353
+ CameraErrorValues.Button = 'Reincep procesul';
354
+ CameraErrorValues.HowToLink = 'https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4';
355
+
356
+ const { state, onChange } = createStore({
357
+ flowStatus: exports.FlowStatus.NONE,
358
+ environment: 'PROD',
359
+ debug: false,
360
+ requestId: '',
361
+ redirectId: '',
362
+ initialised: false,
363
+ token: '',
364
+ cameraIds: [],
365
+ cameraId: '',
366
+ hasIdBack: false,
367
+ hasSelfieGesture: false,
368
+ hasIdTilt: false,
369
+ agreementsValidation: true,
370
+ phoneValidation: true,
371
+ phoneNumber: '',
372
+ apiBaseUrl: 'https://apiro.id-kyc.com',
373
+ device: null,
374
+ recordingRetryCount: 0,
375
+ });
376
+ onChange('environment', value => {
377
+ state.debug = value == 'QA';
378
+ });
379
+ onChange('flowStatus', value => {
380
+ sessionStorage.setItem(SessionKeys.FlowStatusKey, exports.FlowStatus[value]);
381
+ });
382
+ onChange('token', value => {
383
+ sessionStorage.setItem(SessionKeys.TokenKey, value);
384
+ });
385
+ onChange('requestId', value => {
386
+ sessionStorage.setItem(SessionKeys.RequestIdKey, value);
387
+ });
388
+ onChange('initialised', value => {
389
+ sessionStorage.setItem(SessionKeys.InitialisedKey, String(value));
390
+ });
391
+ onChange('hasIdBack', value => {
392
+ sessionStorage.setItem(SessionKeys.HasIdBackKey, String(value));
393
+ });
394
+ onChange('agreementsValidation', value => {
395
+ sessionStorage.setItem(SessionKeys.AgreementValidationKey, String(value));
396
+ });
397
+ onChange('phoneValidation', value => {
398
+ sessionStorage.setItem(SessionKeys.PhoneValidationKey, String(value));
399
+ });
400
+
401
+ exports.AgreementCheckValues = AgreementCheckValues;
402
+ exports.AgreementInfoValues = AgreementInfoValues;
403
+ exports.ApiUrls = ApiUrls;
404
+ exports.CameraErrorValues = CameraErrorValues;
405
+ exports.CodeValidationValues = CodeValidationValues;
406
+ exports.CompleteValues = CompleteValues;
407
+ exports.GlobalValues = GlobalValues;
408
+ exports.HowToValues = HowToValues;
409
+ exports.IdCaptureValues = IdCaptureValues;
410
+ exports.LandingValues = LandingValues;
411
+ exports.MobileRedirectValues = MobileRedirectValues;
412
+ exports.PhoneValidationValues = PhoneValidationValues;
413
+ exports.SelfieCaptureValues = SelfieCaptureValues;
414
+ exports.SessionKeys = SessionKeys;
415
+ exports.state = state;
@@ -7,6 +7,7 @@
7
7
  "./components/common/id-back-capture/id-back-capture.js",
8
8
  "./components/common/id-capture/id-capture.js",
9
9
  "./components/common/id-tilt/id-tilt.js",
10
+ "./components/common/random-actions/random-actions.js",
10
11
  "./components/common/selfie-capture/selfie-capture.js",
11
12
  "./components/common/selfie-tilt/selfie-tilt.js",
12
13
  "./components/controls/camera/camera.js",
@@ -6,6 +6,7 @@ export class AgreementCheck {
6
6
  this.agreementType = undefined;
7
7
  this.htmlContent = undefined;
8
8
  this.buttonEnabled = undefined;
9
+ this.scrollClass = 'scroll';
9
10
  this.apiCalls = new ApiCall();
10
11
  this.buttonEnabled = true;
11
12
  }
@@ -21,8 +22,16 @@ export class AgreementCheck {
21
22
  this.buttonEnabled = false;
22
23
  this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
23
24
  }
25
+ handleScroll(ev) {
26
+ if (ev.target.offsetHeight + ev.target.scrollTop >= ev.target.scrollHeight) {
27
+ this.scrollClass = 'scroll-full';
28
+ }
29
+ else {
30
+ this.scrollClass = 'scroll';
31
+ }
32
+ }
24
33
  render() {
25
- let content = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "scroll", innerHTML: this.htmlContent }), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("div", { class: "d-flex two-buttons" }, h("button", { class: "normal-button red-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(false) }, AgreementCheckValues.ButtonNo), h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, AgreementCheckValues.ButtonYes)), h("p", { class: "main-text font-size-18 text-right mb-0" }, AgreementInfoValues.FooterText))))));
34
+ let content = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: this.scrollClass, innerHTML: this.htmlContent }), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("div", { class: "d-flex two-buttons" }, h("button", { class: "normal-button red-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(false) }, AgreementCheckValues.ButtonNo), h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, AgreementCheckValues.ButtonYes)), h("p", { class: "main-text font-size-18 text-right mb-0" }, AgreementInfoValues.FooterText))))));
26
35
  return this.htmlContent ? content : h("div", null);
27
36
  }
28
37
  static get is() { return "agreement-check"; }
@@ -60,7 +69,8 @@ export class AgreementCheck {
60
69
  static get states() {
61
70
  return {
62
71
  "htmlContent": {},
63
- "buttonEnabled": {}
72
+ "buttonEnabled": {},
73
+ "scrollClass": {}
64
74
  };
65
75
  }
66
76
  static get events() {
@@ -96,4 +106,13 @@ export class AgreementCheck {
96
106
  }
97
107
  }];
98
108
  }
109
+ static get listeners() {
110
+ return [{
111
+ "name": "scroll",
112
+ "method": "handleScroll",
113
+ "target": "window",
114
+ "capture": false,
115
+ "passive": true
116
+ }];
117
+ }
99
118
  }
@@ -0,0 +1,20 @@
1
+ import { h } from '@stencil/core';
2
+ import { HowToValues } from '../../../helpers/textValues';
3
+ export class RandomActions {
4
+ componentWillLoad() { }
5
+ buttonClick() { }
6
+ render() {
7
+ 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))))));
8
+ }
9
+ static get is() { return "random-actions"; }
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["random-actions.css"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["random-actions.css"]
18
+ };
19
+ }
20
+ }
@@ -162,6 +162,9 @@ export class ProcessId {
162
162
  return false;
163
163
  }
164
164
  triggerErrorFlow(restart = false) {
165
+ if (this.captureStep == IdCaptureFlowStatus.IdBack) {
166
+ restart = true;
167
+ }
165
168
  if (restart) {
166
169
  this.captureStep = IdCaptureFlowStatus.IdFront;
167
170
  }