crmbonus-component-wake 0.0.10 → 0.0.12

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.
@@ -13,7 +13,7 @@ const AppModal = class {
13
13
  this.modalClosed.emit();
14
14
  }
15
15
  render() {
16
- return (h("div", { key: '5d8a1d69a4d385244d76b63cc2913bfd116c2770', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: 'cba53a13ef0e63341cccfb3b18c17c9ab89534e8', class: "modal" }, h("div", { key: '3d004fc0e759be2b4038fcde50cbd153518927ce', class: "modal-header" }, h("h3", { key: 'efb95ca281d70c3d01e389b2c3cdb7272fc2767f' }, this.modalTitle), h("button", { key: 'f84443411abb916fac9e183f2f91bf2dcfde7723', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: 'de2cf94f8806ceb8af78efde12a27f082a08a3f3', class: "modal-body" }, h("slot", { key: 'dcfa486648090ed21faac8f0040f90bb96ee8def' })))));
16
+ return (h("div", { key: '37c55ddb47bc0c333712da42f369851379c6c47d', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: '79806824da9a4990ca6ba0cbf3c459431902e945', class: "modal" }, h("div", { key: 'cf60c5340f1171f2be3ebb23592d63c7ab0a086c', class: "modal-header" }, h("h3", { key: 'e5e4d66d4251c890319344c8c7ec66e66a44aa12' }, this.modalTitle), h("button", { key: '6eacc4be8e63e1511c3340ce460e618943d1ebbc', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '4dbec4e836cd3366a185581feeb1842a0b335f07', class: "modal-body" }, h("slot", { key: '38f4bb26dc576d6965f2ac184942cfdc8f4c4f07' })))));
17
17
  }
18
18
  };
19
19
  AppModal.style = appModalCss;
@@ -3845,6 +3845,8 @@ class CrmBonusService {
3845
3845
  userId: response.data.user_id
3846
3846
  };
3847
3847
  }
3848
+ async validatePinBonus() {
3849
+ }
3848
3850
  }
3849
3851
 
3850
3852
  const crmBonusFormCss = ".form-container{width:100%;display:flex;justify-content:center;justify-content:space-around}.button{top:50%;background-color:#6c6c7e;color:#fff;border:none;border-radius:10px;padding:15px;min-height:30px;min-width:120px;font-size:20px;cursor:pointer}.disabled{opacity:0.6;cursor:not-allowed}";
@@ -3855,7 +3857,7 @@ const CrmBonusForm = class {
3855
3857
  this.crmBonusService = new CrmBonusService();
3856
3858
  this.storeName = undefined;
3857
3859
  this.loading = false;
3858
- this.step = 1;
3860
+ this.step = 3;
3859
3861
  this.sent = undefined;
3860
3862
  }
3861
3863
  async sendPin(phone) {
@@ -3868,9 +3870,11 @@ const CrmBonusForm = class {
3868
3870
  this.loading = false;
3869
3871
  }
3870
3872
  async validateBonus(data) {
3873
+ console.log('data', data);
3874
+ this.step = 3;
3871
3875
  }
3872
3876
  render() {
3873
- return (h(Host, { key: 'f3787cd59475746dd1b9363c56144d6c95b09a9a' }, this.step === 1 && h("phone-input", { key: 'dfb73fa529b73d7b51e345b4292ae6201ef9852f', sendPin: (phone) => this.sendPin(phone) }), this.step === 2 && h("giftback-pin", { key: '238f1b547dc0e89d0a69b50e7b2a0a4454b5d8b1', sent: this.sent }), this.step === 3 && h("giftback-progress", { key: '48ceb3cf43631310b662eb7babe828f6378d758a' })));
3877
+ return (h(Host, { key: 'a9d456ccc82ee33071185cb218a5b355f9d07c04' }, this.step === 1 && h("phone-input", { key: '8aa2430f2cb52e202c314909ca39ea356bf0310d', sendPin: (phone) => this.sendPin(phone) }), this.step === 2 && h("giftback-pin", { key: 'ff983987277cfca2dd10dc0757f0a759bee1f800', sent: this.sent, validate: (data) => this.validateBonus(data) }), this.step === 3 && h("giftback-progress", { key: '50b5f1431dac2854202051a10b9ae7c51cf720e9' })));
3874
3878
  }
3875
3879
  };
3876
3880
  CrmBonusForm.style = crmBonusFormCss;