@ekyc_qoobiss/qbs-ect-cmp 1.2.7 → 1.2.8

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 (29) hide show
  1. package/dist/cjs/_commonjsHelpers-c0bd7d34.js +528 -0
  2. package/dist/cjs/{agreement-check_17.cjs.entry.js → agreement-check_16.cjs.entry.js} +191 -3650
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/mobile-redirect.cjs.entry.js +2969 -0
  5. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  6. package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -1
  7. package/dist/collection/components/identification-component/identification-component.css +4 -69
  8. package/dist/collection/components/identification-component/identification-component.js +8 -8
  9. package/dist/collection/helpers/Events.js +13 -5
  10. package/dist/collection/helpers/textValues.js +1 -0
  11. package/dist/esm/_commonjsHelpers-d06997a2.js +511 -0
  12. package/dist/esm/{agreement-check_17.entry.js → agreement-check_16.entry.js} +27 -3485
  13. package/dist/esm/{index-9d69e511.js → index-5d6f9123.js} +1 -1
  14. package/dist/esm/loader-dots.entry.js +1 -1
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/mobile-redirect.entry.js +2965 -0
  17. package/dist/esm/qbs-ect-cmp.js +3 -3
  18. package/dist/qbs-ect-cmp/{p-b490e98d.entry.js → p-139820b9.entry.js} +24 -24
  19. package/dist/qbs-ect-cmp/p-72635f9d.entry.js +1 -0
  20. package/dist/qbs-ect-cmp/{p-4c8e922b.entry.js → p-7c33dd41.entry.js} +1 -1
  21. package/dist/qbs-ect-cmp/p-80888f13.js +1 -0
  22. package/dist/qbs-ect-cmp/{p-06e42b28.js → p-aacd7024.js} +1 -1
  23. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  24. package/dist/types/components/flow/landing-validation/landing-validation.d.ts +1 -0
  25. package/dist/types/components/identification-component/identification-component.d.ts +1 -1
  26. package/dist/types/components.d.ts +2 -2
  27. package/dist/types/helpers/Events.d.ts +2 -1
  28. package/dist/types/helpers/textValues.d.ts +1 -0
  29. package/package.json +1 -1
@@ -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_17.cjs",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"otp_phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[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",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
20
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["mobile-redirect.cjs",[[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}]]],["agreement-check_16.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,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[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,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"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]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -42,8 +42,12 @@ export class LandingValidation {
42
42
  }
43
43
  }
44
44
  }
45
+ async leaveFlow() {
46
+ store.initialised = false;
47
+ Events.flowAborted();
48
+ }
45
49
  render() {
46
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: info })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idDevice })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idValidation })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !store.initialised, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
50
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: info })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idDevice })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idValidation })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !store.initialised, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
47
51
  }
48
52
  static get is() { return "landing-validation"; }
49
53
  static get originalStyleUrls() {
@@ -409,6 +409,10 @@ body {
409
409
  font-weight: 400;
410
410
  color: #71727a;
411
411
  }
412
+ .link-text {
413
+ margin-top: 1vh;
414
+ text-decoration: underline;
415
+ }
412
416
  .font-size-2 {
413
417
  font-size: 2vh;
414
418
  }
@@ -737,15 +741,6 @@ a {
737
741
  perspective: 1000px;
738
742
  rotate: 120deg 0deg;
739
743
  }
740
- .dot-effect {
741
- position: fixed;
742
- bottom: 13vh;
743
- width: calc(100% - 5vh);
744
- text-align: center;
745
- display: flex;
746
- align-items: center;
747
- justify-content: center;
748
- }
749
744
  .coin-flip {
750
745
  animation: flip 0.4s ease-in;
751
746
  animation-delay: 0.5s;
@@ -875,47 +870,6 @@ a {
875
870
  visibility: visible;
876
871
  }
877
872
  }
878
- .dot-shuttle {
879
- position: relative;
880
- left: -15px;
881
- width: 12px;
882
- height: 12px;
883
- border-radius: 6px;
884
- background-color: #1feaa6;
885
- color: transparent;
886
- margin: -1px 0;
887
- opacity: 1;
888
- }
889
-
890
- .dot-shuttle::before {
891
- opacity: 0.5;
892
- }
893
- .dot-shuttle::after {
894
- opacity: 0.5;
895
- }
896
- .dot-shuttle::before,
897
- .dot-shuttle::after {
898
- content: '';
899
- display: inline-block;
900
- position: absolute;
901
- top: 0;
902
- width: 12px;
903
- height: 12px;
904
- border-radius: 6px;
905
- background-color: #1feaa6;
906
- color: transparent;
907
- }
908
-
909
- .dot-shuttle::before {
910
- left: 0;
911
- animation: dotShuttle 2s infinite ease-out;
912
- }
913
-
914
- .dot-shuttle::after {
915
- left: 0;
916
- animation: dotShuttle 2s infinite ease-out;
917
- animation-delay: 1s;
918
- }
919
873
  .buletin-container.rotate-x img {
920
874
  animation: transform-rotate-x 2s infinite ease-in;
921
875
  }
@@ -954,22 +908,6 @@ a {
954
908
  transform: perspective(600px) rotateX(40deg);
955
909
  }
956
910
  }
957
- @keyframes dotShuttle {
958
- 0%,
959
- 50%,
960
- 100% {
961
- transform: translateX(0);
962
- opacity: 1;
963
- }
964
- 25% {
965
- transform: translateX(-30px);
966
- opacity: 0.5;
967
- }
968
- 75% {
969
- transform: translateX(30px);
970
- opacity: 0.5;
971
- }
972
- }
973
911
  @media only screen and (max-width: 350px) {
974
912
  .second-input {
975
913
  width: 36px;
@@ -1037,7 +975,4 @@ a {
1037
975
  right: auto;
1038
976
  top: -10vh;
1039
977
  }
1040
- .dot-effect {
1041
- max-width: 490px;
1042
- }
1043
978
  }
@@ -100,7 +100,7 @@ export class IdentificationComponent {
100
100
  this.api_url = undefined;
101
101
  this.env = undefined;
102
102
  this.redirect_id = undefined;
103
- this.otp_phone_number = undefined;
103
+ this.phone_number = undefined;
104
104
  this.idSide = '';
105
105
  this.errorMessage = undefined;
106
106
  this.errorTitle = undefined;
@@ -120,8 +120,8 @@ export class IdentificationComponent {
120
120
  if (this.redirect_id) {
121
121
  store.redirectId = this.redirect_id;
122
122
  }
123
- if (this.otp_phone_number) {
124
- store.phoneNumber = this.otp_phone_number;
123
+ if (this.phone_number) {
124
+ store.phoneNumber = this.phone_number;
125
125
  }
126
126
  var flowSt = sessionStorage.getItem(SessionKeys.FlowStatusKey);
127
127
  if (flowSt) {
@@ -187,13 +187,13 @@ export class IdentificationComponent {
187
187
  }
188
188
  render() {
189
189
  let currentBlock = h("div", null);
190
- if (this.device.isMobile) {
190
+ if (true) {
191
191
  if (store.flowStatus == FlowStatus.LANDING) {
192
192
  currentBlock = h("landing-validation", { device: this.device });
193
193
  }
194
194
  }
195
195
  else {
196
- currentBlock = h("mobile-redirect", null);
196
+ //currentBlock = <mobile-redirect></mobile-redirect>;
197
197
  }
198
198
  if (store.flowStatus == FlowStatus.AGREEMENT) {
199
199
  currentBlock = h("agreement-info", null);
@@ -323,7 +323,7 @@ export class IdentificationComponent {
323
323
  "attribute": "redirect_id",
324
324
  "reflect": true
325
325
  },
326
- "otp_phone_number": {
326
+ "phone_number": {
327
327
  "type": "string",
328
328
  "mutable": true,
329
329
  "complexType": {
@@ -337,7 +337,7 @@ export class IdentificationComponent {
337
337
  "tags": [],
338
338
  "text": ""
339
339
  },
340
- "attribute": "otp_phone_number",
340
+ "attribute": "phone_number",
341
341
  "reflect": true
342
342
  }
343
343
  };
@@ -366,7 +366,7 @@ export class IdentificationComponent {
366
366
  "propName": "redirect_id",
367
367
  "methodName": "onRedirectIdChange"
368
368
  }, {
369
- "propName": "otp_phone_number",
369
+ "propName": "phone_number",
370
370
  "methodName": "onPhoneChange"
371
371
  }];
372
372
  }
@@ -1,9 +1,17 @@
1
1
  export default class Events {
2
2
  static init(element) {
3
- this.cameraModule = element;
3
+ this.callingModule = element;
4
4
  }
5
5
  static flowStarted() {
6
- this.cameraModule.dispatchEvent(new CustomEvent('ect-started', {
6
+ this.callingModule.dispatchEvent(new CustomEvent('ect-started', {
7
+ detail: {},
8
+ bubbles: true,
9
+ cancelable: true,
10
+ composed: true,
11
+ }));
12
+ }
13
+ static flowAborted() {
14
+ this.callingModule.dispatchEvent(new CustomEvent('ect-aborted', {
7
15
  detail: {},
8
16
  bubbles: true,
9
17
  cancelable: true,
@@ -12,7 +20,7 @@ export default class Events {
12
20
  }
13
21
  static flowCompleted() {
14
22
  sessionStorage.clear();
15
- this.cameraModule.dispatchEvent(new CustomEvent('ect-completed', {
23
+ this.callingModule.dispatchEvent(new CustomEvent('ect-completed', {
16
24
  detail: {},
17
25
  bubbles: true,
18
26
  cancelable: true,
@@ -21,7 +29,7 @@ export default class Events {
21
29
  }
22
30
  static flowError(error) {
23
31
  sessionStorage.clear();
24
- this.cameraModule.dispatchEvent(new CustomEvent('ect-error', {
32
+ this.callingModule.dispatchEvent(new CustomEvent('ect-error', {
25
33
  detail: { error },
26
34
  bubbles: true,
27
35
  cancelable: true,
@@ -29,7 +37,7 @@ export default class Events {
29
37
  }));
30
38
  }
31
39
  static tokenExpired() {
32
- this.cameraModule.dispatchEvent(new CustomEvent('ect-session-expired', {
40
+ this.callingModule.dispatchEvent(new CustomEvent('ect-session-expired', {
33
41
  detail: {},
34
42
  bubbles: true,
35
43
  cancelable: true,
@@ -23,6 +23,7 @@ LandingValues.Warning = 'ATENȚIE! În cadrul acestui proces se poate utiliza do
23
23
  LandingValues.WarningMd = 'ATENȚIE! In cadrul acestui proces se pot utiliza doar buletinele de identitate din Republica Moldova.';
24
24
  LandingValues.Terms = 'Prin continuarea procesului, confirmi că ai citit termenii de utilizare și ești de acord cu aceștia.';
25
25
  LandingValues.Button = 'Am înțeles';
26
+ LandingValues.ButtonLeave = 'Nu sunt pregătit';
26
27
  export class PhoneValidationValues extends GlobalValues {
27
28
  }
28
29
  PhoneValidationValues.Title = 'Este necesar să validăm numărul tău de telefon';