@ekyc_qoobiss/qbs-ect-cmp 3.6.84 → 3.6.86

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.
@@ -4854,13 +4854,10 @@ const HowToInfo = class {
4854
4854
  this.subTitle = this.translations.HowToValues.IdSubTitileFace;
4855
4855
  }
4856
4856
  else if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACKHOWTO) {
4857
- this.imageLoaded = true;
4858
4857
  this.currentStep = TranslationUtils.FlowSteps.CiBackHowTo;
4859
- this.subTitle = '';
4860
4858
  this.topTitle = this.translations.IdCaptureValues.TitleBack;
4861
4859
  this.demoVideo.src = TranslationUtils.IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
4862
4860
  this.demoVideo.play();
4863
- this.showVideo = true;
4864
4861
  await delay(this.translations.GlobalValues.VideoLenght);
4865
4862
  await this.buttonClick();
4866
4863
  }
@@ -4882,22 +4879,15 @@ const HowToInfo = class {
4882
4879
  TranslationUtils.state.flowStatus = await TranslationUtils.ApiCall.instance.GetNextFlowState();
4883
4880
  }
4884
4881
  async componentWillLoad() {
4885
- this.showVideo = false;
4882
+ this.showVideo = TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACKHOWTO;
4886
4883
  this.translations = await TranslationUtils.Translations.getValues();
4887
4884
  this.subTitle = '';
4888
4885
  this.buttonEnabled = true;
4889
4886
  this.buttonText = this.translations.HowToValues.IdButton;
4890
4887
  }
4891
4888
  render() {
4892
- let titleClass = 'color-black-2';
4893
- let bgDemo = 'container';
4894
- let rowClass = 'row';
4895
- if (TranslationUtils.state.flowStatus == TranslationUtils.FlowStatus.IDBACKHOWTO) {
4896
- titleClass = 'color-white';
4897
- bgDemo = 'container bg-black';
4898
- rowClass = 'container-video';
4899
- }
4900
- return (index.h("div", { class: bgDemo }, index.h("div", { class: rowClass, hidden: this.imageLoaded == false }, index.h("div", { class: "div-ci align-center", hidden: this.showVideo }, index.h("img", { ref: el => (this.image = el) })), index.h("div", { hidden: this.showVideo == false }, index.h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { class: "text-center" }, index.h("h1", { class: titleClass }, this.topTitle), index.h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(), hidden: this.showVideo == true }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
4889
+ let howTo = this.showVideo == true ? (index.h("div", { class: "container bg-black" }, index.h("div", { class: "container-video" }, index.h("div", null, index.h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, index.h("source", { type: "video/mp4" }))), index.h("div", { class: "capture-title" }, index.h("h1", { class: "color-white text-center" }, this.topTitle), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))) : (index.h("div", { class: "container" }, index.h("div", { class: "row", hidden: this.imageLoaded == false }, index.h("div", { class: "div-ci align-center" }, index.h("img", { ref: el => (this.image = el) })), index.h("div", { class: "text-center" }, index.h("h1", { class: "color-black-2" }, this.topTitle), index.h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
4890
+ return howTo;
4901
4891
  }
4902
4892
  };
4903
4893
  HowToInfo.style = howToInfoCss;
@@ -5256,7 +5246,7 @@ function v4(options, buf, offset) {
5256
5246
  }
5257
5247
 
5258
5248
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5259
- const version$1 = "3.6.84";
5249
+ const version$1 = "3.6.86";
5260
5250
  const description = "Person Identification Component";
5261
5251
  const main = "./dist/index.cjs.js";
5262
5252
  const module$1 = "./dist/index.js";
@@ -37,13 +37,10 @@ export class HowToInfo {
37
37
  this.subTitle = this.translations.HowToValues.IdSubTitileFace;
38
38
  }
39
39
  else if (store.flowStatus == FlowStatus.IDBACKHOWTO) {
40
- this.imageLoaded = true;
41
40
  this.currentStep = FlowSteps.CiBackHowTo;
42
- this.subTitle = '';
43
41
  this.topTitle = this.translations.IdCaptureValues.TitleBack;
44
42
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
45
43
  this.demoVideo.play();
46
- this.showVideo = true;
47
44
  await delay(this.translations.GlobalValues.VideoLenght);
48
45
  await this.buttonClick();
49
46
  }
@@ -65,22 +62,15 @@ export class HowToInfo {
65
62
  store.flowStatus = await ApiCall.instance.GetNextFlowState();
66
63
  }
67
64
  async componentWillLoad() {
68
- this.showVideo = false;
65
+ this.showVideo = store.flowStatus == FlowStatus.IDBACKHOWTO;
69
66
  this.translations = await Translations.getValues();
70
67
  this.subTitle = '';
71
68
  this.buttonEnabled = true;
72
69
  this.buttonText = this.translations.HowToValues.IdButton;
73
70
  }
74
71
  render() {
75
- let titleClass = 'color-black-2';
76
- let bgDemo = 'container';
77
- let rowClass = 'row';
78
- if (store.flowStatus == FlowStatus.IDBACKHOWTO) {
79
- titleClass = 'color-white';
80
- bgDemo = 'container bg-black';
81
- rowClass = 'container-video';
82
- }
83
- return (h("div", { class: bgDemo }, h("div", { class: rowClass, hidden: this.imageLoaded == false }, h("div", { class: "div-ci align-center", hidden: this.showVideo }, h("img", { ref: el => (this.image = el) })), h("div", { hidden: this.showVideo == false }, h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "text-center" }, h("h1", { class: titleClass }, this.topTitle), h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(), hidden: this.showVideo == true }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
72
+ let howTo = this.showVideo == true ? (h("div", { class: "container bg-black" }, h("div", { class: "container-video" }, h("div", null, h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "capture-title" }, h("h1", { class: "color-white text-center" }, this.topTitle), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))) : (h("div", { class: "container" }, h("div", { class: "row", hidden: this.imageLoaded == false }, h("div", { class: "div-ci align-center" }, h("img", { ref: el => (this.image = el) })), h("div", { class: "text-center" }, h("h1", { class: "color-black-2" }, this.topTitle), h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
73
+ return howTo;
84
74
  }
85
75
  static get is() { return "how-to-info"; }
86
76
  static get originalStyleUrls() {
@@ -4850,13 +4850,10 @@ const HowToInfo = class {
4850
4850
  this.subTitle = this.translations.HowToValues.IdSubTitileFace;
4851
4851
  }
4852
4852
  else if (state.flowStatus == FlowStatus.IDBACKHOWTO) {
4853
- this.imageLoaded = true;
4854
4853
  this.currentStep = FlowSteps.CiBackHowTo;
4855
- this.subTitle = '';
4856
4854
  this.topTitle = this.translations.IdCaptureValues.TitleBack;
4857
4855
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
4858
4856
  this.demoVideo.play();
4859
- this.showVideo = true;
4860
4857
  await delay(this.translations.GlobalValues.VideoLenght);
4861
4858
  await this.buttonClick();
4862
4859
  }
@@ -4878,22 +4875,15 @@ const HowToInfo = class {
4878
4875
  state.flowStatus = await ApiCall.instance.GetNextFlowState();
4879
4876
  }
4880
4877
  async componentWillLoad() {
4881
- this.showVideo = false;
4878
+ this.showVideo = state.flowStatus == FlowStatus.IDBACKHOWTO;
4882
4879
  this.translations = await Translations.getValues();
4883
4880
  this.subTitle = '';
4884
4881
  this.buttonEnabled = true;
4885
4882
  this.buttonText = this.translations.HowToValues.IdButton;
4886
4883
  }
4887
4884
  render() {
4888
- let titleClass = 'color-black-2';
4889
- let bgDemo = 'container';
4890
- let rowClass = 'row';
4891
- if (state.flowStatus == FlowStatus.IDBACKHOWTO) {
4892
- titleClass = 'color-white';
4893
- bgDemo = 'container bg-black';
4894
- rowClass = 'container-video';
4895
- }
4896
- return (h("div", { class: bgDemo }, h("div", { class: rowClass, hidden: this.imageLoaded == false }, h("div", { class: "div-ci align-center", hidden: this.showVideo }, h("img", { ref: el => (this.image = el) })), h("div", { hidden: this.showVideo == false }, h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "text-center" }, h("h1", { class: titleClass }, this.topTitle), h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(), hidden: this.showVideo == true }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
4885
+ let howTo = this.showVideo == true ? (h("div", { class: "container bg-black" }, h("div", { class: "container-video" }, h("div", null, h("video", { id: "howTo", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "capture-title" }, h("h1", { class: "color-white text-center" }, this.topTitle), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))) : (h("div", { class: "container" }, h("div", { class: "row", hidden: this.imageLoaded == false }, h("div", { class: "div-ci align-center" }, h("img", { ref: el => (this.image = el) })), h("div", { class: "text-center" }, h("h1", { class: "color-black-2" }, this.topTitle), h("p", { class: "font-size-2", hidden: this.subTitle == '' }, this.subTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
4886
+ return howTo;
4897
4887
  }
4898
4888
  };
4899
4889
  HowToInfo.style = howToInfoCss;
@@ -5252,7 +5242,7 @@ function v4(options, buf, offset) {
5252
5242
  }
5253
5243
 
5254
5244
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5255
- const version$1 = "3.6.84";
5245
+ const version$1 = "3.6.86";
5256
5246
  const description = "Person Identification Component";
5257
5247
  const main = "./dist/index.cjs.js";
5258
5248
  const module = "./dist/index.js";