@ekyc_qoobiss/qbs-ect-cmp 1.5.21 → 1.5.22

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 (66) hide show
  1. package/README.md +3 -4
  2. package/dist/cjs/agreement-check_12.cjs.entry.js +45 -48
  3. package/dist/cjs/{index-9ebcada7.js → index-be29a2a8.js} +0 -5
  4. package/dist/cjs/loader-dots.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
  7. package/dist/collection/components/id-back-capture/id-back-capture.js +18 -21
  8. package/dist/collection/components/id-capture/id-capture.js +18 -21
  9. package/dist/collection/components/selfie-capture/selfie-capture.js +17 -20
  10. package/dist/esm/agreement-check_12.entry.js +45 -48
  11. package/dist/esm/{index-3fe6775c.js → index-b6e6428d.js} +1 -5
  12. package/dist/esm/loader-dots.entry.js +1 -1
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/esm/qbs-ect-cmp.js +2 -2
  15. package/dist/qbs-ect-cmp/{p-a69bb428.entry.js → p-45a94ee0.entry.js} +1 -1
  16. package/dist/qbs-ect-cmp/p-742256cd.js +2 -0
  17. package/dist/qbs-ect-cmp/{p-d2c3c6ec.entry.js → p-96512201.entry.js} +2 -2
  18. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  19. package/dist/types/components/id-back-capture/id-back-capture.d.ts +0 -2
  20. package/dist/types/components/id-capture/id-capture.d.ts +0 -2
  21. package/dist/types/components/selfie-capture/selfie-capture.d.ts +0 -2
  22. package/package.json +1 -1
  23. package/dist/components/ApiCall.js +0 -156
  24. package/dist/components/Cameras.js +0 -100
  25. package/dist/components/agreement-check.d.ts +0 -11
  26. package/dist/components/agreement-check.js +0 -6
  27. package/dist/components/agreement-check2.js +0 -45
  28. package/dist/components/agreement-info.d.ts +0 -11
  29. package/dist/components/agreement-info.js +0 -6
  30. package/dist/components/agreement-info2.js +0 -76
  31. package/dist/components/camera-comp.d.ts +0 -11
  32. package/dist/components/camera-comp.js +0 -6
  33. package/dist/components/camera.js +0 -4609
  34. package/dist/components/capture-error.d.ts +0 -11
  35. package/dist/components/capture-error.js +0 -6
  36. package/dist/components/capture-error2.js +0 -69
  37. package/dist/components/end-redirect.d.ts +0 -11
  38. package/dist/components/end-redirect.js +0 -6
  39. package/dist/components/end-redirect2.js +0 -37
  40. package/dist/components/how-to-info.d.ts +0 -11
  41. package/dist/components/how-to-info.js +0 -6
  42. package/dist/components/how-to-info2.js +0 -92
  43. package/dist/components/id-back-capture.d.ts +0 -11
  44. package/dist/components/id-back-capture.js +0 -6
  45. package/dist/components/id-back-capture2.js +0 -142
  46. package/dist/components/id-capture.d.ts +0 -11
  47. package/dist/components/id-capture.js +0 -6
  48. package/dist/components/id-capture2.js +0 -142
  49. package/dist/components/identification-component.d.ts +0 -11
  50. package/dist/components/identification-component.js +0 -411
  51. package/dist/components/index.d.ts +0 -34
  52. package/dist/components/index.js +0 -14
  53. package/dist/components/landing-validation.d.ts +0 -11
  54. package/dist/components/landing-validation.js +0 -6
  55. package/dist/components/landing-validation2.js +0 -61
  56. package/dist/components/loader-dots.d.ts +0 -11
  57. package/dist/components/loader-dots.js +0 -33
  58. package/dist/components/selfie-capture.d.ts +0 -11
  59. package/dist/components/selfie-capture.js +0 -6
  60. package/dist/components/selfie-capture2.js +0 -140
  61. package/dist/components/sms-code-validation.d.ts +0 -11
  62. package/dist/components/sms-code-validation.js +0 -6
  63. package/dist/components/sms-code-validation2.js +0 -98
  64. package/dist/components/store.js +0 -209
  65. package/dist/components/textValues.js +0 -84
  66. package/dist/qbs-ect-cmp/p-3fa495e4.js +0 -2
package/README.md CHANGED
@@ -17,11 +17,10 @@ The wev compoment has to be included in the html markup like this:
17
17
  \*.html
18
18
 
19
19
  ```sh
20
- <identification-component token="{{ token }}" order_id="{{ orderId }}" api_url="{{ apiUrl }}"></identification-component>
20
+ <identification-component token="{{ token }}" order_id="{{ orderId }}"></identification-component>
21
21
  ```
22
22
 
23
- There are three parameters:
23
+ There are two parameters:
24
24
 
25
25
  - token - which is the token that was obtained using the API Key on the server side;
26
- - order_id - is a unique ID that will be used for the current identification request when obtaining the processed data from the REST API Service;
27
- - api_url - is the url provided to you by our team;
26
+ - order_id - is a unique ID that will be used for the current identification request when obtaining the processed data from the REST API Service.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9ebcada7.js');
5
+ const index = require('./index-be29a2a8.js');
6
6
 
7
7
  const appendToMap = (map, propName, value) => {
8
8
  const items = map.get(propName);
@@ -5332,6 +5332,7 @@ class Cameras {
5332
5332
  const idBackCaptureCss = ".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";
5333
5333
 
5334
5334
  const IdBackCapture = class {
5335
+ // @State() private animationPath: string;
5335
5336
  constructor(hostRef) {
5336
5337
  index.registerInstance(this, hostRef);
5337
5338
  this.eventPhotoCapture = index.createEvent(this, "photoIdBackCapture", 7);
@@ -5342,21 +5343,19 @@ const IdBackCapture = class {
5342
5343
  this.device = undefined;
5343
5344
  this.videoStarted = undefined;
5344
5345
  this.cameraSize = undefined;
5345
- this.stopAnimation = undefined;
5346
5346
  this.captureTaken = undefined;
5347
5347
  this.titleMesage = undefined;
5348
- this.animationPath = undefined;
5349
5348
  this.captureTaken = false;
5350
5349
  this.cameras = new Cameras();
5351
5350
  }
5352
5351
  eventChangeTitle(event) {
5353
- this.stopAnimation = false;
5354
- if (event.detail == IDPose.Tilted) {
5355
- this.animationPath = index.getAssetPath('../../assets/animations/id/tilt-id.gif');
5356
- }
5357
- if (event.detail == IDPose.Straight) {
5358
- this.animationPath = index.getAssetPath('../../assets/animations/id/straighten-id.gif');
5359
- }
5352
+ // this.stopAnimation = false;
5353
+ // if (event.detail == IDPose.Tilted) {
5354
+ // this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
5355
+ // }
5356
+ // if (event.detail == IDPose.Straight) {
5357
+ // this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
5358
+ // }
5360
5359
  this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
5361
5360
  }
5362
5361
  eventVideoStarted(event) {
@@ -5364,7 +5363,7 @@ const IdBackCapture = class {
5364
5363
  this.cameraSize = event.detail;
5365
5364
  }
5366
5365
  eventStopAnimation() {
5367
- this.stopAnimation = true;
5366
+ // this.stopAnimation = true;
5368
5367
  }
5369
5368
  async componentWillLoad() {
5370
5369
  Events.init(this.component);
@@ -5375,7 +5374,7 @@ const IdBackCapture = class {
5375
5374
  }
5376
5375
  componentDidLoad() {
5377
5376
  this.openCamera();
5378
- this.animationPath = index.getAssetPath('../../assets/animations/id/present-id.gif');
5377
+ // this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
5379
5378
  }
5380
5379
  async openCamera() {
5381
5380
  let _cameras = await this.cameras.GetCameras(this.device);
@@ -5422,17 +5421,17 @@ const IdBackCapture = class {
5422
5421
  if (this.captureTaken) {
5423
5422
  loadingBlock = (index.h("div", { class: "pos-relative" }, index.h("div", { class: "dot-effect" }, index.h("div", { class: "snippet", "data-title": ".dot-shuttle" }, index.h("div", { class: "stage filter-contrast" }, index.h("div", { class: "dot-shuttle" }))))));
5424
5423
  }
5425
- let animationBlock;
5426
- if (this.videoStarted && this.stopAnimation !== true) {
5427
- animationBlock = (index.h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
5428
- }
5424
+ // let animationBlock: HTMLImageElement;
5425
+ // if (this.videoStarted && this.stopAnimation !== true) {
5426
+ // animationBlock = (<img class="animation" data-src={this.animationPath} src={this.animationPath} />);
5427
+ // }
5429
5428
  let cameraStyle;
5430
5429
  let cameraStyleInner;
5431
5430
  if (this.videoStarted) {
5432
5431
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
5433
5432
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
5434
5433
  }
5435
- return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
5434
+ return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
5436
5435
  }
5437
5436
  get component() { return index.getElement(this); }
5438
5437
  };
@@ -5441,6 +5440,7 @@ IdBackCapture.style = idBackCaptureCss;
5441
5440
  const idCaptureCss = ".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";
5442
5441
 
5443
5442
  const IdCapture = class {
5443
+ // @State() private animationPath: string;
5444
5444
  constructor(hostRef) {
5445
5445
  index.registerInstance(this, hostRef);
5446
5446
  this.eventPhotoCapture = index.createEvent(this, "photoIdCapture", 7);
@@ -5451,21 +5451,19 @@ const IdCapture = class {
5451
5451
  this.device = undefined;
5452
5452
  this.videoStarted = undefined;
5453
5453
  this.cameraSize = undefined;
5454
- this.stopAnimation = undefined;
5455
5454
  this.captureTaken = undefined;
5456
5455
  this.titleMesage = undefined;
5457
- this.animationPath = undefined;
5458
5456
  this.captureTaken = false;
5459
5457
  this.cameras = new Cameras();
5460
5458
  }
5461
5459
  eventChangeTitle(event) {
5462
- this.stopAnimation = false;
5463
- if (event.detail == IDPose.Tilted) {
5464
- this.animationPath = index.getAssetPath('../../assets/animations/id/tilt-id.gif');
5465
- }
5466
- if (event.detail == IDPose.Straight) {
5467
- this.animationPath = index.getAssetPath('../../assets/animations/id/straighten-id.gif');
5468
- }
5460
+ // this.stopAnimation = false;
5461
+ // if (event.detail == IDPose.Tilted) {
5462
+ // this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
5463
+ // }
5464
+ // if (event.detail == IDPose.Straight) {
5465
+ // this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
5466
+ // }
5469
5467
  this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
5470
5468
  }
5471
5469
  eventVideoStarted(event) {
@@ -5473,7 +5471,7 @@ const IdCapture = class {
5473
5471
  this.cameraSize = event.detail;
5474
5472
  }
5475
5473
  eventStopAnimation() {
5476
- this.stopAnimation = true;
5474
+ // this.stopAnimation = true;
5477
5475
  }
5478
5476
  async componentWillLoad() {
5479
5477
  Events.init(this.component);
@@ -5484,7 +5482,7 @@ const IdCapture = class {
5484
5482
  }
5485
5483
  componentDidLoad() {
5486
5484
  this.openCamera();
5487
- this.animationPath = index.getAssetPath('../../assets/animations/id/present-id.gif');
5485
+ // this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
5488
5486
  }
5489
5487
  async openCamera() {
5490
5488
  let _cameras = await this.cameras.GetCameras(this.device);
@@ -5531,17 +5529,17 @@ const IdCapture = class {
5531
5529
  if (this.captureTaken) {
5532
5530
  loadingBlock = (index.h("div", { class: "pos-relative" }, index.h("div", { class: "dot-effect" }, index.h("div", { class: "snippet", "data-title": ".dot-shuttle" }, index.h("div", { class: "stage filter-contrast" }, index.h("div", { class: "dot-shuttle" }))))));
5533
5531
  }
5534
- let animationBlock;
5535
- if (this.videoStarted && this.stopAnimation !== true) {
5536
- animationBlock = (index.h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
5537
- }
5532
+ // let animationBlock: HTMLImageElement;
5533
+ // if (this.videoStarted && this.stopAnimation !== true) {
5534
+ // animationBlock = (<img class="animation" data-src={this.animationPath} src={this.animationPath} />);
5535
+ // }
5538
5536
  let cameraStyle;
5539
5537
  let cameraStyleInner;
5540
5538
  if (this.videoStarted) {
5541
5539
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
5542
5540
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
5543
5541
  }
5544
- return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
5542
+ return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, index.h("div", { style: cameraStyle }, index.h("div", { style: cameraStyleInner }, index.h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
5545
5543
  }
5546
5544
  get component() { return index.getElement(this); }
5547
5545
  };
@@ -5902,6 +5900,7 @@ LandingValidation.style = landingValidationCss;
5902
5900
  const selfieCaptureCss = ".block{width:60%;margin-left:20%}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;left:50%;top:50%;z-index:2;transform:scale(-1, 1)}";
5903
5901
 
5904
5902
  const SelfieCapture = class {
5903
+ // @State() private animationPath: string;
5905
5904
  constructor(hostRef) {
5906
5905
  index.registerInstance(this, hostRef);
5907
5906
  this.eventPhotoCapture = index.createEvent(this, "photoSelfieCapture", 7);
@@ -5912,21 +5911,19 @@ const SelfieCapture = class {
5912
5911
  this.device = undefined;
5913
5912
  this.videoStarted = undefined;
5914
5913
  this.cameraSize = undefined;
5915
- this.stopAnimation = undefined;
5916
5914
  this.captureTaken = undefined;
5917
5915
  this.titleMesage = undefined;
5918
- this.animationPath = undefined;
5919
5916
  this.captureTaken = false;
5920
5917
  this.cameras = new Cameras();
5921
5918
  }
5922
5919
  eventChangeTitle(event) {
5923
- this.stopAnimation = false;
5920
+ // this.stopAnimation = false;
5924
5921
  if (event.detail == null) {
5925
- this.animationPath = index.getAssetPath('../../assets/animations/face/general.gif');
5922
+ // this.animationPath = getAssetPath('../../assets/animations/face/general.gif');
5926
5923
  this.titleMesage = SelfieCaptureValues.FinalTitle;
5927
5924
  }
5928
5925
  else {
5929
- this.animationPath = index.getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
5926
+ // this.animationPath = getAssetPath('../../assets/animations/face/' + FacePose[event.detail] + '.gif');
5930
5927
  this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
5931
5928
  }
5932
5929
  }
@@ -5935,7 +5932,7 @@ const SelfieCapture = class {
5935
5932
  this.cameraSize = event.detail;
5936
5933
  }
5937
5934
  eventStopAnimation() {
5938
- this.stopAnimation = true;
5935
+ // this.stopAnimation = true;
5939
5936
  }
5940
5937
  componentWillLoad() {
5941
5938
  Events.init(this.component);
@@ -5946,7 +5943,7 @@ const SelfieCapture = class {
5946
5943
  }
5947
5944
  async componentDidLoad() {
5948
5945
  this.openCamera();
5949
- this.animationPath = index.getAssetPath('../../assets/animations/face/general.gif');
5946
+ // this.animationPath = getAssetPath('../../assets/animations/face/general.gif');
5950
5947
  }
5951
5948
  async openCamera() {
5952
5949
  const constraints = this.cameras.GetConstraints('', this.device, true);
@@ -5990,17 +5987,17 @@ const SelfieCapture = class {
5990
5987
  if (this.captureTaken) {
5991
5988
  loadingBlock = (index.h("div", { class: "pos-relative" }, index.h("div", { class: "dot-effect" }, index.h("div", { class: "snippet", "data-title": ".dot-shuttle" }, index.h("div", { class: "stage filter-contrast" }, index.h("div", { class: "dot-shuttle" }))))));
5992
5989
  }
5993
- let animationBlock;
5994
- if (this.videoStarted && this.stopAnimation !== true) {
5995
- let left = 0;
5996
- if (this.cameraSize.width > this.cameraSize.height)
5997
- left = (this.cameraSize.width) / 2 - (this.cameraSize.height / 1.77 / 2);
5998
- animationBlock = (index.h("img", { class: "animation", style: { left: left + 'px' }, "data-src": this.animationPath, src: this.animationPath }));
5999
- }
5990
+ // let animationBlock: HTMLImageElement;
5991
+ // if (this.videoStarted && this.stopAnimation !== true) {
5992
+ // let left = 0;
5993
+ // if (this.cameraSize.width > this.cameraSize.height)
5994
+ // left = (this.cameraSize.width) / 2 - (this.cameraSize.height / 1.77 / 2);
5995
+ // animationBlock = (<img class="animation" style={{left:left+'px'}} data-src={this.animationPath} src={this.animationPath} />);
5996
+ // }
6000
5997
  let divClass = "chenar-buletin pos-relative";
6001
5998
  if (this.videoStarted && this.cameraSize.width < this.cameraSize.height)
6002
5999
  divClass += " block";
6003
- return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: divClass }, animationBlock, index.h("camera-comp", { device: this.device, "capture-mode": "selfie" })), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText)))));
6000
+ return (index.h("div", { class: "container bg-black" }, index.h("div", { class: "row ctheight-100" }, index.h("div", null, index.h("h1", { class: "color-white" }, this.titleMesage)), index.h("div", { hidden: this.captureTaken, class: divClass }, index.h("camera-comp", { device: this.device, "capture-mode": "selfie" })), loadingBlock, index.h("div", { class: "pos-relative" }, index.h("p", { class: "main-text font-size-18 text-right mb-0" }, SelfieCaptureValues.FooterText)))));
6004
6001
  }
6005
6002
  get component() { return index.getElement(this); }
6006
6003
  };
@@ -35,10 +35,6 @@ let hostTagName;
35
35
  let isSvgMode = false;
36
36
  let renderingRef = null;
37
37
  let queuePending = false;
38
- const getAssetPath = (path) => {
39
- const assetUrl = new URL(path, plt.$resourcesUrl$);
40
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
41
- };
42
38
  const createTime = (fnName, tagName = '') => {
43
39
  {
44
40
  return () => {
@@ -1479,7 +1475,6 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1479
1475
  exports.bootstrapLazy = bootstrapLazy;
1480
1476
  exports.createEvent = createEvent;
1481
1477
  exports.forceUpdate = forceUpdate;
1482
- exports.getAssetPath = getAssetPath;
1483
1478
  exports.getElement = getElement;
1484
1479
  exports.getRenderingRef = getRenderingRef;
1485
1480
  exports.h = h;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-9ebcada7.js');
5
+ const index = require('./index-be29a2a8.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, #47b6a2 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #47b6a2 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, #47b6a2 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-9ebcada7.js');
5
+ const index = require('./index-be29a2a8.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.19.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_12.cjs",[[1,"identification-component",{"token":[1],"order_id":[1537],"api_url":[1],"idErrorType":[32],"idSide":[32],"idFlow":[32],"idBackFlow":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"timeElapsed","timeElapsed"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"capture-error",{"idSide":[1537,"id-side"],"type":[1]}],[0,"end-redirect"],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"descriptionR1":[32],"descriptionR2":[32],"descriptionR3":[32],"imagePath":[32],"buttonText":[32]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
17
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_12.cjs",[[1,"identification-component",{"token":[1],"order_id":[1537],"api_url":[1],"idErrorType":[32],"idSide":[32],"idFlow":[32],"idBackFlow":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"timeElapsed","timeElapsed"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"capture-error",{"idSide":[1537,"id-side"],"type":[1]}],[0,"end-redirect"],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"descriptionR1":[32],"descriptionR2":[32],"descriptionR3":[32],"imagePath":[32],"buttonText":[32]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-9ebcada7.js');
3
+ const index = require('./index-be29a2a8.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.19.3 | MIT Licensed | https://stenciljs.com
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_12.cjs",[[1,"identification-component",{"token":[1],"order_id":[1537],"api_url":[1],"idErrorType":[32],"idSide":[32],"idFlow":[32],"idBackFlow":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"timeElapsed","timeElapsed"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"stopAnimation":[32],"captureTaken":[32],"titleMesage":[32],"animationPath":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"capture-error",{"idSide":[1537,"id-side"],"type":[1]}],[0,"end-redirect"],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"descriptionR1":[32],"descriptionR2":[32],"descriptionR3":[32],"imagePath":[32],"buttonText":[32]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
18
+ return index.bootstrapLazy([["loader-dots.cjs",[[1,"loader-dots"]]],["agreement-check_12.cjs",[[1,"identification-component",{"token":[1],"order_id":[1537],"api_url":[1],"idErrorType":[32],"idSide":[32],"idFlow":[32],"idBackFlow":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"photoIdCapture","captureIdImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"timeElapsed","timeElapsed"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"titleMesage":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"stopAnimation","eventStopAnimation"],[0,"takePhoto","takePhoto"]]],[0,"capture-error",{"idSide":[1537,"id-side"],"type":[1]}],[0,"end-redirect"],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"descriptionR1":[32],"descriptionR2":[32],"descriptionR3":[32],"imagePath":[32],"buttonText":[32]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32]}],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
19
19
  });
@@ -1,12 +1,13 @@
1
- import { h, getAssetPath } from '@stencil/core';
1
+ import { h, } from '@stencil/core';
2
2
  import Events from '../../helpers/Events';
3
3
  import { Cameras } from '../../helpers/Cameras';
4
4
  import { Stream } from '../../helpers/Stream';
5
5
  import { IdCaptureValues } from '../../helpers/textValues';
6
6
  import { IDML5Detector } from '../../libs/IDML5Detector/IDML5Detector';
7
7
  import { FaceML5Detector } from '../../libs/FaceML5Detector/FaceML5Detector';
8
- import { IDPose } from '../../libs/IDML5Detector/IDPose';
8
+ // import { IDPose } from '../../libs/IDML5Detector/IDPose';
9
9
  export class IdBackCapture {
10
+ // @State() private animationPath: string;
10
11
  constructor() {
11
12
  this.photoIsReady = photos => {
12
13
  this.closeCamera();
@@ -15,21 +16,19 @@ export class IdBackCapture {
15
16
  this.device = undefined;
16
17
  this.videoStarted = undefined;
17
18
  this.cameraSize = undefined;
18
- this.stopAnimation = undefined;
19
19
  this.captureTaken = undefined;
20
20
  this.titleMesage = undefined;
21
- this.animationPath = undefined;
22
21
  this.captureTaken = false;
23
22
  this.cameras = new Cameras();
24
23
  }
25
24
  eventChangeTitle(event) {
26
- this.stopAnimation = false;
27
- if (event.detail == IDPose.Tilted) {
28
- this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
29
- }
30
- if (event.detail == IDPose.Straight) {
31
- this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
32
- }
25
+ // this.stopAnimation = false;
26
+ // if (event.detail == IDPose.Tilted) {
27
+ // this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
28
+ // }
29
+ // if (event.detail == IDPose.Straight) {
30
+ // this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
31
+ // }
33
32
  this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
34
33
  }
35
34
  eventVideoStarted(event) {
@@ -37,7 +36,7 @@ export class IdBackCapture {
37
36
  this.cameraSize = event.detail;
38
37
  }
39
38
  eventStopAnimation() {
40
- this.stopAnimation = true;
39
+ // this.stopAnimation = true;
41
40
  }
42
41
  async componentWillLoad() {
43
42
  Events.init(this.component);
@@ -48,7 +47,7 @@ export class IdBackCapture {
48
47
  }
49
48
  componentDidLoad() {
50
49
  this.openCamera();
51
- this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
50
+ // this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
52
51
  }
53
52
  async openCamera() {
54
53
  let _cameras = await this.cameras.GetCameras(this.device);
@@ -95,17 +94,17 @@ export class IdBackCapture {
95
94
  if (this.captureTaken) {
96
95
  loadingBlock = (h("div", { class: "pos-relative" }, h("div", { class: "dot-effect" }, h("div", { class: "snippet", "data-title": ".dot-shuttle" }, h("div", { class: "stage filter-contrast" }, h("div", { class: "dot-shuttle" }))))));
97
96
  }
98
- let animationBlock;
99
- if (this.videoStarted && this.stopAnimation !== true) {
100
- animationBlock = (h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
101
- }
97
+ // let animationBlock: HTMLImageElement;
98
+ // if (this.videoStarted && this.stopAnimation !== true) {
99
+ // animationBlock = (<img class="animation" data-src={this.animationPath} src={this.animationPath} />);
100
+ // }
102
101
  let cameraStyle;
103
102
  let cameraStyleInner;
104
103
  if (this.videoStarted) {
105
104
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
106
105
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
107
106
  }
108
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
107
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
109
108
  }
110
109
  static get is() { return "id-back-capture"; }
111
110
  static get originalStyleUrls() {
@@ -146,10 +145,8 @@ export class IdBackCapture {
146
145
  return {
147
146
  "videoStarted": {},
148
147
  "cameraSize": {},
149
- "stopAnimation": {},
150
148
  "captureTaken": {},
151
- "titleMesage": {},
152
- "animationPath": {}
149
+ "titleMesage": {}
153
150
  };
154
151
  }
155
152
  static get events() {
@@ -1,12 +1,13 @@
1
- import { h, getAssetPath } from '@stencil/core';
1
+ import { h, } from '@stencil/core';
2
2
  import Events from '../../helpers/Events';
3
3
  import { Cameras } from '../../helpers/Cameras';
4
4
  import { Stream } from '../../helpers/Stream';
5
5
  import { IdCaptureValues } from '../../helpers/textValues';
6
6
  import { IDML5Detector } from '../../libs/IDML5Detector/IDML5Detector';
7
7
  import { FaceML5Detector } from '../../libs/FaceML5Detector/FaceML5Detector';
8
- import { IDPose } from '../../libs/IDML5Detector/IDPose';
8
+ // import { IDPose } from '../../libs/IDML5Detector/IDPose';
9
9
  export class IdCapture {
10
+ // @State() private animationPath: string;
10
11
  constructor() {
11
12
  this.photoIsReady = photos => {
12
13
  this.closeCamera();
@@ -15,21 +16,19 @@ export class IdCapture {
15
16
  this.device = undefined;
16
17
  this.videoStarted = undefined;
17
18
  this.cameraSize = undefined;
18
- this.stopAnimation = undefined;
19
19
  this.captureTaken = undefined;
20
20
  this.titleMesage = undefined;
21
- this.animationPath = undefined;
22
21
  this.captureTaken = false;
23
22
  this.cameras = new Cameras();
24
23
  }
25
24
  eventChangeTitle(event) {
26
- this.stopAnimation = false;
27
- if (event.detail == IDPose.Tilted) {
28
- this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
29
- }
30
- if (event.detail == IDPose.Straight) {
31
- this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
32
- }
25
+ // this.stopAnimation = false;
26
+ // if (event.detail == IDPose.Tilted) {
27
+ // this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
28
+ // }
29
+ // if (event.detail == IDPose.Straight) {
30
+ // this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
31
+ // }
33
32
  this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
34
33
  }
35
34
  eventVideoStarted(event) {
@@ -37,7 +36,7 @@ export class IdCapture {
37
36
  this.cameraSize = event.detail;
38
37
  }
39
38
  eventStopAnimation() {
40
- this.stopAnimation = true;
39
+ // this.stopAnimation = true;
41
40
  }
42
41
  async componentWillLoad() {
43
42
  Events.init(this.component);
@@ -48,7 +47,7 @@ export class IdCapture {
48
47
  }
49
48
  componentDidLoad() {
50
49
  this.openCamera();
51
- this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
50
+ // this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
52
51
  }
53
52
  async openCamera() {
54
53
  let _cameras = await this.cameras.GetCameras(this.device);
@@ -95,17 +94,17 @@ export class IdCapture {
95
94
  if (this.captureTaken) {
96
95
  loadingBlock = (h("div", { class: "pos-relative" }, h("div", { class: "dot-effect" }, h("div", { class: "snippet", "data-title": ".dot-shuttle" }, h("div", { class: "stage filter-contrast" }, h("div", { class: "dot-shuttle" }))))));
97
96
  }
98
- let animationBlock;
99
- if (this.videoStarted && this.stopAnimation !== true) {
100
- animationBlock = (h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
101
- }
97
+ // let animationBlock: HTMLImageElement;
98
+ // if (this.videoStarted && this.stopAnimation !== true) {
99
+ // animationBlock = (<img class="animation" data-src={this.animationPath} src={this.animationPath} />);
100
+ // }
102
101
  let cameraStyle;
103
102
  let cameraStyleInner;
104
103
  if (this.videoStarted) {
105
104
  cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
106
105
  cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
107
106
  }
108
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
107
+ return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
109
108
  }
110
109
  static get is() { return "id-capture"; }
111
110
  static get originalStyleUrls() {
@@ -146,10 +145,8 @@ export class IdCapture {
146
145
  return {
147
146
  "videoStarted": {},
148
147
  "cameraSize": {},
149
- "stopAnimation": {},
150
148
  "captureTaken": {},
151
- "titleMesage": {},
152
- "animationPath": {}
149
+ "titleMesage": {}
153
150
  };
154
151
  }
155
152
  static get events() {