@ekyc_qoobiss/qbs-ect-cmp 3.5.0 → 3.5.2
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.
- package/dist/cjs/agreement-check_18.cjs.entry.js +92 -27
- package/dist/collection/components/base-component.js +14 -2
- package/dist/collection/components/common/how-to-info/how-to-info.js +27 -7
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +9 -0
- package/dist/collection/components/common/id-capture/id-capture.js +9 -0
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +9 -0
- package/dist/collection/components/flow/end-redirect/end-redirect.js +1 -9
- package/dist/collection/helpers/ApiCall.js +34 -4
- package/dist/collection/models/FlowSteps.js +11 -2
- package/dist/esm/agreement-check_18.entry.js +92 -27
- package/dist/qbs-ect-cmp/{p-f500a873.entry.js → p-8a378193.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +2 -1
- package/dist/types/components/common/how-to-info/how-to-info.d.ts +5 -0
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +1 -0
- package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +1 -0
- package/dist/types/components/flow/end-redirect/end-redirect.d.ts +0 -1
- package/dist/types/components.d.ts +1 -0
- package/dist/types/models/FlowSteps.d.ts +11 -2
- package/package.json +1 -1
|
@@ -5,11 +5,20 @@ export var FlowSteps;
|
|
|
5
5
|
FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
|
|
6
6
|
FlowSteps[FlowSteps["OtpSend"] = 'otp-send'] = "OtpSend";
|
|
7
7
|
FlowSteps[FlowSteps["OtpCheck"] = 'otp-check'] = "OtpCheck";
|
|
8
|
-
FlowSteps[FlowSteps["CiFrontHowTo"] = 'ci-front-how-to'] = "CiFrontHowTo";
|
|
9
8
|
FlowSteps[FlowSteps["CiFront"] = 'ci-front'] = "CiFront";
|
|
10
|
-
FlowSteps[FlowSteps["
|
|
9
|
+
FlowSteps[FlowSteps["CiFrontHowTo"] = 'ci-front-how-to'] = "CiFrontHowTo";
|
|
10
|
+
FlowSteps[FlowSteps["CiFrontHoldAnimation"] = 'ci-front-hold-animation'] = "CiFrontHoldAnimation";
|
|
11
|
+
FlowSteps[FlowSteps["CiFrontTiltAnimation"] = 'ci-front-tilt-animation'] = "CiFrontTiltAnimation";
|
|
12
|
+
FlowSteps[FlowSteps["CiFrontCapture"] = 'ci-front-capture'] = "CiFrontCapture";
|
|
11
13
|
FlowSteps[FlowSteps["CiBack"] = 'ci-back'] = "CiBack";
|
|
14
|
+
FlowSteps[FlowSteps["CiBackHowTo"] = 'ci-back-how-to'] = "CiBackHowTo";
|
|
15
|
+
FlowSteps[FlowSteps["CiBackHoldAnimation"] = 'ci-back-hold-animation'] = "CiBackHoldAnimation";
|
|
16
|
+
FlowSteps[FlowSteps["CiBackTiltAnimation"] = 'ci-back-tilt-animation'] = "CiBackTiltAnimation";
|
|
17
|
+
FlowSteps[FlowSteps["CiBackCapture"] = 'ci-back-capture'] = "CiBackCapture";
|
|
12
18
|
FlowSteps[FlowSteps["SelfieHowTo"] = 'selfie-how-to'] = "SelfieHowTo";
|
|
19
|
+
FlowSteps[FlowSteps["SelfieHoldAnimation"] = 'selfie-hold-animation'] = "SelfieHoldAnimation";
|
|
20
|
+
FlowSteps[FlowSteps["SelfieTiltAnimation"] = 'selfie-tilt-animation'] = "SelfieTiltAnimation";
|
|
21
|
+
FlowSteps[FlowSteps["SelfieCapture"] = 'selfie-capture'] = "SelfieCapture";
|
|
13
22
|
FlowSteps[FlowSteps["Selfie"] = 'selfie'] = "Selfie";
|
|
14
23
|
FlowSteps[FlowSteps["End"] = 'end'] = "End";
|
|
15
24
|
FlowSteps[FlowSteps["CameraError"] = 'camera-error'] = "CameraError";
|
|
@@ -409,11 +409,20 @@ var FlowSteps;
|
|
|
409
409
|
FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
|
|
410
410
|
FlowSteps[FlowSteps["OtpSend"] = 'otp-send'] = "OtpSend";
|
|
411
411
|
FlowSteps[FlowSteps["OtpCheck"] = 'otp-check'] = "OtpCheck";
|
|
412
|
-
FlowSteps[FlowSteps["CiFrontHowTo"] = 'ci-front-how-to'] = "CiFrontHowTo";
|
|
413
412
|
FlowSteps[FlowSteps["CiFront"] = 'ci-front'] = "CiFront";
|
|
414
|
-
FlowSteps[FlowSteps["
|
|
413
|
+
FlowSteps[FlowSteps["CiFrontHowTo"] = 'ci-front-how-to'] = "CiFrontHowTo";
|
|
414
|
+
FlowSteps[FlowSteps["CiFrontHoldAnimation"] = 'ci-front-hold-animation'] = "CiFrontHoldAnimation";
|
|
415
|
+
FlowSteps[FlowSteps["CiFrontTiltAnimation"] = 'ci-front-tilt-animation'] = "CiFrontTiltAnimation";
|
|
416
|
+
FlowSteps[FlowSteps["CiFrontCapture"] = 'ci-front-capture'] = "CiFrontCapture";
|
|
415
417
|
FlowSteps[FlowSteps["CiBack"] = 'ci-back'] = "CiBack";
|
|
418
|
+
FlowSteps[FlowSteps["CiBackHowTo"] = 'ci-back-how-to'] = "CiBackHowTo";
|
|
419
|
+
FlowSteps[FlowSteps["CiBackHoldAnimation"] = 'ci-back-hold-animation'] = "CiBackHoldAnimation";
|
|
420
|
+
FlowSteps[FlowSteps["CiBackTiltAnimation"] = 'ci-back-tilt-animation'] = "CiBackTiltAnimation";
|
|
421
|
+
FlowSteps[FlowSteps["CiBackCapture"] = 'ci-back-capture'] = "CiBackCapture";
|
|
416
422
|
FlowSteps[FlowSteps["SelfieHowTo"] = 'selfie-how-to'] = "SelfieHowTo";
|
|
423
|
+
FlowSteps[FlowSteps["SelfieHoldAnimation"] = 'selfie-hold-animation'] = "SelfieHoldAnimation";
|
|
424
|
+
FlowSteps[FlowSteps["SelfieTiltAnimation"] = 'selfie-tilt-animation'] = "SelfieTiltAnimation";
|
|
425
|
+
FlowSteps[FlowSteps["SelfieCapture"] = 'selfie-capture'] = "SelfieCapture";
|
|
417
426
|
FlowSteps[FlowSteps["Selfie"] = 'selfie'] = "Selfie";
|
|
418
427
|
FlowSteps[FlowSteps["End"] = 'end'] = "End";
|
|
419
428
|
FlowSteps[FlowSteps["CameraError"] = 'camera-error'] = "CameraError";
|
|
@@ -490,11 +499,27 @@ class ApiCall {
|
|
|
490
499
|
}
|
|
491
500
|
this.AddLog('Error in post ', ex);
|
|
492
501
|
try {
|
|
493
|
-
|
|
502
|
+
var request2 = new Request(state.apiBaseUrl + url, {
|
|
503
|
+
method: 'POST',
|
|
504
|
+
body: data,
|
|
505
|
+
headers: {
|
|
506
|
+
'Content-Type': 'application/json',
|
|
507
|
+
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
508
|
+
},
|
|
509
|
+
});
|
|
510
|
+
return await this.http(request2);
|
|
494
511
|
}
|
|
495
512
|
catch (ex2) {
|
|
496
513
|
this.AddLog('Error in post ', ex2);
|
|
497
|
-
|
|
514
|
+
var request3 = new Request(state.apiBaseUrl + url, {
|
|
515
|
+
method: 'POST',
|
|
516
|
+
body: data,
|
|
517
|
+
headers: {
|
|
518
|
+
'Content-Type': 'application/json',
|
|
519
|
+
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
520
|
+
},
|
|
521
|
+
});
|
|
522
|
+
return await this.http(request3);
|
|
498
523
|
}
|
|
499
524
|
}
|
|
500
525
|
}
|
|
@@ -515,11 +540,25 @@ class ApiCall {
|
|
|
515
540
|
}
|
|
516
541
|
this.AddLog('Error in get ', ex);
|
|
517
542
|
try {
|
|
518
|
-
|
|
543
|
+
var request2 = new Request(state.apiBaseUrl + url, {
|
|
544
|
+
method: 'GET',
|
|
545
|
+
headers: {
|
|
546
|
+
'Content-Type': 'application/json',
|
|
547
|
+
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
548
|
+
},
|
|
549
|
+
});
|
|
550
|
+
return await this.http(request2);
|
|
519
551
|
}
|
|
520
552
|
catch (ex2) {
|
|
521
553
|
this.AddLog('Error in get ', ex2);
|
|
522
|
-
|
|
554
|
+
var request3 = new Request(state.apiBaseUrl + url, {
|
|
555
|
+
method: 'GET',
|
|
556
|
+
headers: {
|
|
557
|
+
'Content-Type': 'application/json',
|
|
558
|
+
'Authorization': 'IDKYC-TOKEN ' + state.token,
|
|
559
|
+
},
|
|
560
|
+
});
|
|
561
|
+
return await this.http(request3);
|
|
523
562
|
}
|
|
524
563
|
}
|
|
525
564
|
}
|
|
@@ -830,6 +869,18 @@ class BaseComponent {
|
|
|
830
869
|
setErrorCallback(callback) {
|
|
831
870
|
this.processError = callback;
|
|
832
871
|
}
|
|
872
|
+
async logStep(flowStep, flowMoment) {
|
|
873
|
+
Events.flowEvent(flowStep, flowMoment);
|
|
874
|
+
try {
|
|
875
|
+
await this.apiCall.AddStep(flowStep, flowMoment);
|
|
876
|
+
}
|
|
877
|
+
catch (e) {
|
|
878
|
+
if (this.apiErrorEvent)
|
|
879
|
+
this.apiErrorEvent.emit(e);
|
|
880
|
+
else
|
|
881
|
+
this.processError(e, `${flowStep}-${flowMoment}`);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
833
884
|
async initialize() {
|
|
834
885
|
Events.flowEvent(this.flowStep, FlowMoments.Initialized);
|
|
835
886
|
try {
|
|
@@ -839,7 +890,7 @@ class BaseComponent {
|
|
|
839
890
|
if (this.apiErrorEvent)
|
|
840
891
|
this.apiErrorEvent.emit(e);
|
|
841
892
|
else
|
|
842
|
-
this.processError(e, FlowMoments.Initialized);
|
|
893
|
+
this.processError(e, `${this.flowStep}-${FlowMoments.Initialized}`);
|
|
843
894
|
}
|
|
844
895
|
}
|
|
845
896
|
async finalize() {
|
|
@@ -851,7 +902,7 @@ class BaseComponent {
|
|
|
851
902
|
if (this.apiErrorEvent)
|
|
852
903
|
this.apiErrorEvent.emit(e);
|
|
853
904
|
else
|
|
854
|
-
this.processError(e, FlowMoments.
|
|
905
|
+
this.processError(e, `${this.flowStep}-${FlowMoments.Finalized}`);
|
|
855
906
|
}
|
|
856
907
|
}
|
|
857
908
|
}
|
|
@@ -5553,17 +5604,9 @@ const completeSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iO
|
|
|
5553
5604
|
const endRedirectCss = "h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";
|
|
5554
5605
|
|
|
5555
5606
|
const EndRedirect = class {
|
|
5556
|
-
constructor(hostRef) {
|
|
5557
|
-
registerInstance(this, hostRef);
|
|
5558
|
-
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5559
|
-
this.baseComponent = new BaseComponent(FlowSteps.End);
|
|
5560
|
-
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
5561
|
-
}
|
|
5607
|
+
constructor(hostRef) { registerInstance(this, hostRef); this.apiErrorEvent = createEvent(this, "apiError", 7); }
|
|
5562
5608
|
async componentDidLoad() {
|
|
5563
5609
|
Events.flowCompleted();
|
|
5564
|
-
if (state.environment !== 'DEMO') {
|
|
5565
|
-
await this.baseComponent.initialize();
|
|
5566
|
-
}
|
|
5567
5610
|
}
|
|
5568
5611
|
render() {
|
|
5569
5612
|
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, CompleteValues.Title), h("p", { class: "main-text font-size-18 mt-8 text-center" }, CompleteValues.Description)), h("div", { class: "buletin-container" }, h("div", { class: "container-coin" }, h("div", { class: "coin-scale" }, h("div", { class: "coin-flip" }, h("img", { class: "w-40 coin", src: completeSvg }))))), h("div", { class: "text-center" }, h("p", { class: "font-weight-900 font-size-3 color-black-2 text-center mt-20" }, CompleteValues.Message), h("p", null, state.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, CompleteValues.FooterText)))));
|
|
@@ -5589,15 +5632,12 @@ ErrorEnd.style = errorEndCss;
|
|
|
5589
5632
|
const howToInfoCss = "";
|
|
5590
5633
|
|
|
5591
5634
|
const HowToInfo = class {
|
|
5592
|
-
constructor(hostRef) {
|
|
5593
|
-
|
|
5594
|
-
this.
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
this.
|
|
5598
|
-
this.imagePath = undefined;
|
|
5599
|
-
this.buttonText = undefined;
|
|
5600
|
-
this.buttonEnabled = undefined;
|
|
5635
|
+
constructor(hostRef) { registerInstance(this, hostRef); this.eventHowToInfoDone = createEvent(this, "howToInfoDone", 7); this.apiErrorEvent = createEvent(this, "apiError", 7); this.idSide = undefined; this.topTitle = undefined; this.subTitle = undefined; this.imagePath = undefined; this.buttonText = undefined; this.buttonEnabled = undefined; }
|
|
5636
|
+
async componentDidLoad() {
|
|
5637
|
+
await this.baseComponent.initialize();
|
|
5638
|
+
}
|
|
5639
|
+
disconnectedCallback() {
|
|
5640
|
+
this.baseComponent.finalize();
|
|
5601
5641
|
}
|
|
5602
5642
|
buttonClick() {
|
|
5603
5643
|
this.buttonEnabled = false;
|
|
@@ -5611,18 +5651,22 @@ const HowToInfo = class {
|
|
|
5611
5651
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
|
|
5612
5652
|
this.buttonText = HowToValues.IdButton;
|
|
5613
5653
|
if (this.idSide == 'front') {
|
|
5654
|
+
this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
|
|
5614
5655
|
this.subTitle = HowToValues.IdSubTitileFace;
|
|
5615
5656
|
}
|
|
5616
5657
|
if (this.idSide == 'back') {
|
|
5658
|
+
this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
|
|
5617
5659
|
this.subTitle = HowToValues.IdSubTitileBack;
|
|
5618
5660
|
}
|
|
5619
5661
|
}
|
|
5620
5662
|
if (state.flowStatus == FlowStatus.LIVENESS) {
|
|
5663
|
+
this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
|
|
5621
5664
|
this.topTitle = HowToValues.SelfieTitile;
|
|
5622
5665
|
this.subTitle = HowToValues.SelfieSubTitile;
|
|
5623
5666
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
|
|
5624
5667
|
this.buttonText = HowToValues.SelfieButton;
|
|
5625
5668
|
}
|
|
5669
|
+
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
5626
5670
|
}
|
|
5627
5671
|
render() {
|
|
5628
5672
|
let sub = this.subTitle != '' ? h("p", { class: "font-size-2" }, this.subTitle) : null;
|
|
@@ -5775,14 +5819,17 @@ const IdBackCapture = class {
|
|
|
5775
5819
|
this.verified = false;
|
|
5776
5820
|
this.cameras = new Cameras();
|
|
5777
5821
|
this.showDemo = true;
|
|
5822
|
+
this.baseComponent = new BaseComponent(FlowSteps.CiBackHoldAnimation);
|
|
5778
5823
|
}
|
|
5779
5824
|
async eventChangeTitle(event) {
|
|
5825
|
+
this.baseComponent.logStep(FlowSteps.CiBackTiltAnimation, FlowMoments.Initialized);
|
|
5780
5826
|
this.showDemo = true;
|
|
5781
5827
|
this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
|
|
5782
5828
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackTilted];
|
|
5783
5829
|
this.demoVideo.play();
|
|
5784
5830
|
await delay(IdCaptureValues.VideoLenght);
|
|
5785
5831
|
this.showDemo = false;
|
|
5832
|
+
this.baseComponent.logStep(FlowSteps.CiBackTiltAnimation, FlowMoments.Finalized);
|
|
5786
5833
|
}
|
|
5787
5834
|
eventVideoStarted(event) {
|
|
5788
5835
|
this.videoStarted = true;
|
|
@@ -5795,6 +5842,7 @@ const IdBackCapture = class {
|
|
|
5795
5842
|
}
|
|
5796
5843
|
}
|
|
5797
5844
|
async componentDidLoad() {
|
|
5845
|
+
this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Initialized);
|
|
5798
5846
|
this.titleMesage = IdCaptureValues.TtileRotate;
|
|
5799
5847
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
5800
5848
|
this.demoVideo.play();
|
|
@@ -5803,10 +5851,12 @@ const IdBackCapture = class {
|
|
|
5803
5851
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
5804
5852
|
this.demoVideo.play();
|
|
5805
5853
|
await delay(IdCaptureValues.VideoLenght);
|
|
5854
|
+
this.baseComponent.logStep(FlowSteps.CiBackHoldAnimation, FlowMoments.Finalized);
|
|
5806
5855
|
this.showDemo = false;
|
|
5807
5856
|
this.openCamera();
|
|
5808
5857
|
}
|
|
5809
5858
|
async openCamera() {
|
|
5859
|
+
this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Initialized);
|
|
5810
5860
|
var constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
5811
5861
|
setTimeout(() => {
|
|
5812
5862
|
navigator.mediaDevices
|
|
@@ -5849,6 +5899,7 @@ const IdBackCapture = class {
|
|
|
5849
5899
|
this.captureTaken = true;
|
|
5850
5900
|
let res = await Stream.getInstance().takePhoto();
|
|
5851
5901
|
this.photoIsReady(res);
|
|
5902
|
+
this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Finalized);
|
|
5852
5903
|
}
|
|
5853
5904
|
render() {
|
|
5854
5905
|
let cameraStyle;
|
|
@@ -5889,14 +5940,17 @@ const IdCapture = class {
|
|
|
5889
5940
|
this.verified = false;
|
|
5890
5941
|
this.cameras = new Cameras();
|
|
5891
5942
|
this.showDemo = true;
|
|
5943
|
+
this.baseComponent = new BaseComponent(FlowSteps.CiFrontHoldAnimation);
|
|
5892
5944
|
}
|
|
5893
5945
|
async eventChangeTitle(event) {
|
|
5946
|
+
this.baseComponent.logStep(FlowSteps.CiFrontTiltAnimation, FlowMoments.Initialized);
|
|
5894
5947
|
this.showDemo = true;
|
|
5895
5948
|
this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
|
|
5896
5949
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
|
|
5897
5950
|
this.demoVideo.play();
|
|
5898
5951
|
await delay(IdCaptureValues.VideoLenght);
|
|
5899
5952
|
this.showDemo = false;
|
|
5953
|
+
this.baseComponent.logStep(FlowSteps.CiFrontTiltAnimation, FlowMoments.Finalized);
|
|
5900
5954
|
}
|
|
5901
5955
|
eventVideoStarted(event) {
|
|
5902
5956
|
this.videoStarted = true;
|
|
@@ -5910,13 +5964,16 @@ const IdCapture = class {
|
|
|
5910
5964
|
}
|
|
5911
5965
|
}
|
|
5912
5966
|
async componentDidLoad() {
|
|
5967
|
+
this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Initialized);
|
|
5913
5968
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5914
5969
|
this.demoVideo.play();
|
|
5915
5970
|
await delay(IdCaptureValues.VideoLenght);
|
|
5971
|
+
this.baseComponent.logStep(FlowSteps.CiFrontHoldAnimation, FlowMoments.Finalized);
|
|
5916
5972
|
this.showDemo = false;
|
|
5917
5973
|
this.openCamera();
|
|
5918
5974
|
}
|
|
5919
5975
|
async openCamera() {
|
|
5976
|
+
this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
5920
5977
|
var constraints = this.cameras.GetConstraints(state.cameraId, state.device);
|
|
5921
5978
|
setTimeout(() => {
|
|
5922
5979
|
navigator.mediaDevices
|
|
@@ -5948,6 +6005,7 @@ const IdCapture = class {
|
|
|
5948
6005
|
this.captureTaken = true;
|
|
5949
6006
|
let res = await Stream.getInstance().takePhoto();
|
|
5950
6007
|
this.photoIsReady(res);
|
|
6008
|
+
this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Finalized);
|
|
5951
6009
|
}
|
|
5952
6010
|
async verificationFinished() {
|
|
5953
6011
|
if (this.verified)
|
|
@@ -6370,7 +6428,7 @@ function v4(options, buf, offset) {
|
|
|
6370
6428
|
}
|
|
6371
6429
|
|
|
6372
6430
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6373
|
-
const version$1 = "3.5.
|
|
6431
|
+
const version$1 = "3.5.2";
|
|
6374
6432
|
const description = "Person Identification Component";
|
|
6375
6433
|
const main = "./dist/index.cjs.js";
|
|
6376
6434
|
const module = "./dist/index.js";
|
|
@@ -9796,6 +9854,7 @@ const SelfieCapture = class {
|
|
|
9796
9854
|
this.cameras = new Cameras();
|
|
9797
9855
|
this.demoEnded = false;
|
|
9798
9856
|
this.uploadingLink = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_selfie.mp4';
|
|
9857
|
+
this.baseComponent = new BaseComponent(FlowSteps.SelfieHoldAnimation);
|
|
9799
9858
|
}
|
|
9800
9859
|
async eventChangeTitle(event) {
|
|
9801
9860
|
// this.stopAnimation = false;
|
|
@@ -9803,11 +9862,13 @@ const SelfieCapture = class {
|
|
|
9803
9862
|
this.titleMesage = SelfieCaptureValues.FinalTitle;
|
|
9804
9863
|
}
|
|
9805
9864
|
else {
|
|
9865
|
+
this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Initialized);
|
|
9806
9866
|
this.titleMesage = SelfieCaptureValues.FacePoseMapping[event.detail];
|
|
9807
9867
|
this.demoEnded = false;
|
|
9808
9868
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[event.detail];
|
|
9809
9869
|
this.demoVideo.play();
|
|
9810
9870
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9871
|
+
this.baseComponent.logStep(FlowSteps.SelfieTiltAnimation, FlowMoments.Finalized);
|
|
9811
9872
|
this.demoEnded = true;
|
|
9812
9873
|
}
|
|
9813
9874
|
}
|
|
@@ -9826,13 +9887,16 @@ const SelfieCapture = class {
|
|
|
9826
9887
|
}
|
|
9827
9888
|
}
|
|
9828
9889
|
async componentDidLoad() {
|
|
9890
|
+
this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Initialized);
|
|
9829
9891
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
9830
9892
|
this.demoVideo.play();
|
|
9831
9893
|
await delay(SelfieCaptureValues.VideoLenght);
|
|
9894
|
+
this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9832
9895
|
this.demoEnded = true;
|
|
9833
9896
|
this.openCamera();
|
|
9834
9897
|
}
|
|
9835
9898
|
async openCamera() {
|
|
9899
|
+
this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Initialized);
|
|
9836
9900
|
const constraints = this.cameras.GetConstraints('', state.device, true);
|
|
9837
9901
|
setTimeout(() => {
|
|
9838
9902
|
navigator.mediaDevices
|
|
@@ -9863,6 +9927,7 @@ const SelfieCapture = class {
|
|
|
9863
9927
|
this.captureTaken = true;
|
|
9864
9928
|
let res = await Stream.getInstance().takePhoto();
|
|
9865
9929
|
this.photoIsReady(res);
|
|
9930
|
+
this.baseComponent.logStep(FlowSteps.SelfieHoldAnimation, FlowMoments.Finalized);
|
|
9866
9931
|
}
|
|
9867
9932
|
verificationFinished() {
|
|
9868
9933
|
if (this.verified)
|