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.
- package/dist/crmbonus-component-wake/app-modal.entry.js +2 -2
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js +3 -3
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js +8 -2
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +3 -3
- package/dist/crmbonus-component-wake/giftback-pin.entry.js +2 -2
- package/dist/crmbonus-component-wake/giftback-progress.entry.js +2 -2
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/index-9ebfa0b2.js +3039 -0
- package/dist/crmbonus-component-wake/index-9ebfa0b2.js.map +1 -0
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js +2 -2
- package/dist/crmbonus-component-wake/phone-input.entry.js +2 -2
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +3 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, a as createEvent, h } from './index-
|
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: '
|
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-
|
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 =
|
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: '
|
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;
|