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.
- package/dist/crmbonus-component-wake/app-modal.entry.js +1 -1
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js +6 -2
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js +3 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/giftback-pin.entry.js +8 -1
- package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/giftback-progress.entry.js +1 -1
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js +1 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js +1 -1
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
- package/dist/types/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/types/services/crmbonus.service.d.ts +1 -0
- package/package.json +1 -1
- package/dist/crmbonus-component-wake/index-eeb8f9f2.js +0 -3039
- package/dist/crmbonus-component-wake/index-eeb8f9f2.js.map +0 -1
@@ -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: '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 =
|
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: '
|
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;
|