crmbonus-component-wake 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: 'c4a9ac10842f14070be69b14b37161d8ac92e64e', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: '29039eb97734a8db3be23f1fff59ea51b713b7f8', class: "modal" }, h("div", { key: 'dbce04d9b959d84ab84e080195d71ae0449a28c4', class: "modal-header" }, h("h3", { key: 'e875526607ff48a8fa24071f82d98c51410e3739' }, this.modalTitle), h("button", { key: 'd455acb4571a1072546ec37d2f6172269ce9b017', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '9d21185429887e4e6b94558bf3cefbea15a41c97', class: "modal-body" }, h("slot", { key: '17ec7998918af28e5acf04ce01a8892cec68c419' })))));
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}";
@@ -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: 'd82bad9e7088b1b94f59e34464a758b6d2a12e65' }, this.step === 1 && h("phone-input", { key: 'a0438bcfe913dd60173c4fe60e5661f1cca88fa4', sendPin: (phone) => this.sendPin(phone) }), this.step === 2 && h("giftback-pin", { key: '120e88a22a88a38720d52cc35701a13cccf25e9b', sent: this.sent, validate: (data) => this.validateBonus(data) }), this.step === 3 && h("giftback-progress", { key: '2db5c90c540a31deed9c1b0a7daa6d341b0c71d2' })));
3874
3878
  }
3875
3879
  };
3876
3880
  CrmBonusForm.style = crmBonusFormCss;