crmbonus-component-wake 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, a as createEvent, h } from './index-71c2c4ae.js';
1
+ import { r as registerInstance, a as createEvent, h } from './index-9ebfa0b2.js';
2
2
 
3
3
  const appModalCss = ".modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:none;justify-content:center;align-items:center;z-index:1000}.modal-backdrop.visible{display:flex}.modal{background:white;border-radius:8px;padding:1rem;max-width:500px;width:90%;box-shadow:0 2px 10px rgba(0, 0, 0, 0.3)}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;margin-bottom:1rem}.close-button{background:none;border:none;font-size:1.5rem;cursor:pointer}.modal-body{}";
4
4
 
@@ -13,7 +13,7 @@ const AppModal = class {
13
13
  this.modalClosed.emit();
14
14
  }
15
15
  render() {
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' })))));
16
+ return (h("div", { key: 'a311cb4511ed438513165381f6f6716fbb98e7eb', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: '32ae96a74f632fed1f022bb03aa758ecd97d5517', class: "modal" }, h("div", { key: 'c530273186ff342b29fe9b8e63f93c1101dbb4c1', class: "modal-header" }, h("h3", { key: '23fe8785c54f7b1797331907693767ae2f3895c8' }, this.modalTitle), h("button", { key: '01887990a93b0e2cf28e5075f5d17d9be9b1b624', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: 'b3518d825e80ce61623fcc73acef86898f8a7cab', class: "modal-body" }, h("slot", { key: '984521462359cfc42a0e9e7c952af5723a23e267' })))));
17
17
  }
18
18
  };
19
19
  AppModal.style = appModalCss;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, e as Host } from './index-71c2c4ae.js';
1
+ import { r as registerInstance, h, e as Host } from './index-9ebfa0b2.js';
2
2
 
3
3
  'use strict';
4
4
 
@@ -3857,7 +3857,7 @@ const CrmBonusForm = class {
3857
3857
  this.crmBonusService = new CrmBonusService();
3858
3858
  this.storeName = undefined;
3859
3859
  this.loading = false;
3860
- this.step = 1;
3860
+ this.step = 3;
3861
3861
  this.sent = undefined;
3862
3862
  }
3863
3863
  async sendPin(phone) {
@@ -3874,7 +3874,7 @@ const CrmBonusForm = class {
3874
3874
  this.step = 3;
3875
3875
  }
3876
3876
  render() {
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' })));
3877
+ return (h(Host, { key: 'd0a7fca5c599a65152d3dfe3776b25cb46c86c22' }, this.step === 1 && h("phone-input", { key: '7224eb9db29f4dc86b3295d98bafb4e3665ade6c', sendPin: (phone) => this.sendPin(phone) }), this.step === 2 && h("giftback-pin", { key: 'ae8f0fcbd26b7a9e1be4e90fdce3f60835d513ef', sent: this.sent, validate: (data) => this.validateBonus(data) }), this.step === 3 && h("giftback-progress", { key: '084d8096797e6fac6eab16f904caa62188370d61' })));
3878
3878
  }
3879
3879
  };
3880
3880
  CrmBonusForm.style = crmBonusFormCss;