crmbonus-component-wake 0.0.10 → 0.0.11
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 +5 -1
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +1 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js +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/phone-input-mask.entry.js +1 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js +1 -1
- package/dist/types/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.d.ts +2 -0
- package/dist/types/components.d.ts +2 -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: '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: '
|
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;
|