crmbonus-component-wake 0.0.21 → 0.0.23
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 +1 -1
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js +2 -2
- package/dist/crmbonus-component-wake/crm-bonus.entry.js +2 -2
- package/dist/crmbonus-component-wake/{crmbonus.service-5e579e1c.js → crmbonus.service-04472105.js} +2 -2
- package/dist/crmbonus-component-wake/{crmbonus.service-5e579e1c.js.map → crmbonus.service-04472105.js.map} +1 -1
- package/dist/crmbonus-component-wake/giftback-finish.entry.js +1 -1
- package/dist/crmbonus-component-wake/giftback-pin.entry.js +1 -1
- package/dist/crmbonus-component-wake/giftback-progress.entry.js +1 -1
- package/dist/crmbonus-component-wake/loading-spinner.entry.js +1 -1
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js +2 -2
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js +1 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js +1 -1
- package/package.json +1 -1
- package/dist/crmbonus-component-wake/crmbonus.service-72c64bc3.js +0 -3868
- package/dist/crmbonus-component-wake/crmbonus.service-72c64bc3.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-a0dea046.js +0 -3868
- package/dist/crmbonus-component-wake/crmbonus.service-a0dea046.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-ce105f62.js +0 -3868
- package/dist/crmbonus-component-wake/crmbonus.service-ce105f62.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: '82c352862bc0e4bff13b48c82ce09643d922d66e', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: 'ffde88a49b5e201caa1b14b52fe997ee183cbb6e', class: "modal" }, h("div", { key: 'f68a25c7ca6554d81d3d55f7b9a00f35ddbb4744', class: "modal-header" }, h("h3", { key: 'f0ec45fac1b595bd03b603a2f69dd036fe2cef16' }, this.modalTitle), h("button", { key: '1600501c66d41e9e8aa8ca7b335f41701c7e57ea', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '563e936a2717e5534b9f8d528fbd432565562790', class: "modal-body" }, h("slot", { key: '499c8c2925cc9469da0998bbe1fad360adaf1efd' })))));
|
17
17
|
}
|
18
18
|
};
|
19
19
|
AppModal.style = appModalCss;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, e as Host } from './index-f557ce7c.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-04472105.js';
|
3
3
|
|
4
4
|
var StepFormEnum;
|
5
5
|
(function (StepFormEnum) {
|
@@ -99,7 +99,7 @@ const CrmBonusForm = class {
|
|
99
99
|
this.cancel();
|
100
100
|
}
|
101
101
|
render() {
|
102
|
-
return (h(Host, { key: '
|
102
|
+
return (h(Host, { key: '3097220f8802f698c4c1163fa359dfbf3089921f' }, this.step === StepFormEnum.STEP_PHONE && h("phone-input", { key: '039f1d21f8b40f00b24722fe26d5a5539f9d8226', value: this.customer.phone, sendPin: (phone) => this.sendPin(phone), loading: this.loading }), this.step === StepFormEnum.STEP_PIN && h("giftback-pin", { key: '600a4adff83b3afa5d82c4fd484ab07757323ebb', cancel: () => this.handleCancel(), sent: this.sent, validate: (data) => this.validateBonus(data), loading: this.loading }), this.step === StepFormEnum.STEP_RESERVE && h("giftback-progress", { key: '5d8ab74731589caeeee351835119633aeaa4f012', cancel: () => this.handleCancel(), bonus: this.bonus, reserve: (amountRedeemed) => this.reserve(amountRedeemed) }), this.step === StepFormEnum.STEP_APPLY && h("giftback-finish", { key: 'a97943ae603266d078eb9f2ff81d875ae75e542f' }), h("p", { key: '206eb4968906d83fce49d8d67b4431e70ba59302', class: "message-error" }, this.message)));
|
103
103
|
}
|
104
104
|
};
|
105
105
|
CrmBonusForm.style = crmBonusFormCss;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-f557ce7c.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-04472105.js';
|
3
3
|
|
4
4
|
const logoSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCA3MDMgMTAzIiBmaWxsPSJub25lIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiBhcmlhLWhpZGRlbj0idHJ1ZSIgcm9sZT0iaW1nIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02ODkuMiA1Ny41MDA0TDY0Ny4xIDk5LjYwMDRMNjM3LjMgODkuODAwNEw2NzkuNCA0Ny43MDA0SDYzNlYzMy45MDA0SDY5NUM2OTYuOSAzMy45MDA0IDY5OC41IDM0LjUwMDQgNjk5LjcgMzUuNTAwNEM3MDAgMzUuNzAwNCA3MDAuMiAzNS45MDA0IDcwMC40IDM2LjEwMDRDNzAwLjYgMzYuMzAwNCA3MDAuOCAzNi41MDA0IDcwMC45IDM2LjcwMDRWMzYuODAwNFYzNi45MDA0QzcwMiAzOC4xMDA0IDcwMi43IDM5LjgwMDQgNzAyLjcgNDEuODAwNFY0My42MDA0VjY3LjAwMDRWMTAwLjdINjg4LjlWODAuODAwNFY1Ny41MDA0SDY4OS4yWiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzE2MjlfMTg4KSI+PC9wYXRoPgo8cGF0aCBkPSJNNTIuNyA3Ni40OTk4SDY3LjdDNjUuMyA5MS43OTk4IDUxLjkgMTAyLjUgMzUuMiAxMDIuNUMxNS4yIDEwMi41IDAgODcuMjk5OCAwIDY3LjM5OThDMCA0Ny42OTk4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mBonus = class {
|
|
39
39
|
this.showModal = false;
|
40
40
|
}
|
41
41
|
render() {
|
42
|
-
return (h("div", { key: '
|
42
|
+
return (h("div", { key: 'c9db6de8e4503b454fd69302ec52808ed4d46812', class: "section-crm" }, h("div", { key: '4dcfd2946439206652ca8668ca37bbe35d5e0e2d', class: "container-button" }, h("img", { key: '07391e65e467aaebf1f1fabdc0d7dcf3fc1d5182', src: logoSvg, onClick: () => (this.showModal = true) })), h("app-modal", { key: '8aa6c41f5faf07e6389a755faed661803b689cd5', isOpen: this.showModal, modalTitle: `Giftback`, onModalClosed: () => (this.showModal = false) }, h("crm-bonus-form", { key: 'e5903b6dd43617e619230490a23ffaaf5d77c9c6', cancel: () => this.handleCloseModal(), storeName: this.storeName, products: this.buildProducts(), cartId: this.cartId, customer: this.customer }))));
|
43
43
|
}
|
44
44
|
static get assetsDirs() { return ["assets"]; }
|
45
45
|
};
|
package/dist/crmbonus-component-wake/{crmbonus.service-5e579e1c.js → crmbonus.service-04472105.js}
RENAMED
@@ -3842,7 +3842,7 @@ class CrmBonusService {
|
|
3842
3842
|
return response.data;
|
3843
3843
|
}
|
3844
3844
|
async updateOrder(cartId, orderId) {
|
3845
|
-
const response = await this.axiosInstance.
|
3845
|
+
const response = await this.axiosInstance.put(`/api/carts/update_cart/${cartId}`, { orderId }, { headers: { 'Content-Type': 'application/json' } });
|
3846
3846
|
console.log('response', response.data);
|
3847
3847
|
}
|
3848
3848
|
async sendPin(phone, store) {
|
@@ -3865,4 +3865,4 @@ class CrmBonusService {
|
|
3865
3865
|
|
3866
3866
|
export { CrmBonusService as C };
|
3867
3867
|
|
3868
|
-
//# sourceMappingURL=crmbonus.service-
|
3868
|
+
//# sourceMappingURL=crmbonus.service-04472105.js.map
|