crmbonus-component-wake 0.0.22 → 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
@@ -9,7 +9,7 @@ const GiftbackFinish = class {
|
|
9
9
|
registerInstance(this, hostRef);
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (h("div", { key: '
|
12
|
+
return (h("div", { key: 'e72f82799146a6e94acbdd62324e07cdf9f77009', class: "message-finish" }, h("img", { key: '46e2436a3dbe4745225c3b9674e6bf6c299ad63e', src: successSvgrepoComSvg, width: 80 }), h("p", { key: '270e42050956f7f3d1ae9b90f314211fa310f797' }, "B\u00F4nus Aplicado com sucesso!!!")));
|
13
13
|
}
|
14
14
|
};
|
15
15
|
GiftbackFinish.style = giftbackFinishCss;
|
@@ -34,7 +34,7 @@ const GiftbackPin = class {
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
render() {
|
37
|
-
return (h("div", { key: '
|
37
|
+
return (h("div", { key: '7fe6a9f55ca436ecfcc20f106c1efeddd8387490', class: "form-container-pin" }, h("div", { key: 'aece84fab5ecf94ce5ca90fd1912623dd3c1b9b8' }, h("p", { key: '5134dd8eb3478f59dcfcdca6612e885b76578cba' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: '8855be06a09925746a5b18323726dd67ec73d7c3', class: "pin-container" }, this.pin.map((_, index) => (h("input", { type: "text", maxLength: 1, value: this.pin[index], onInput: (event) => this.handleInput(event, index) }))))), h("div", { key: '1c5523feb6c9dafbfddd5388170de5fea7627f62', class: "footer-button" }, h("button", { key: '8506cd68998d4ecb76f8a8a262373605a06827de', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '4dda0af894ad5849ba27d3a4f6c15c80d6c984ae', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePin() }, !this.loading ? "Enviar" : h("loading-spinner", { size: "15px", color: "#fff" })))));
|
38
38
|
}
|
39
39
|
};
|
40
40
|
GiftbackPin.style = giftbackPinCss;
|
@@ -30,7 +30,7 @@ const GiftbackProgress = class {
|
|
30
30
|
}
|
31
31
|
render() {
|
32
32
|
const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
|
33
|
-
return (h("div", { key: '
|
33
|
+
return (h("div", { key: '0949784aa871d4e5a1e3fd5e68f24abd92f9b4f9', class: "giftback-container" }, h("p", { key: '129a7c66ec49abe6d1cf2e93ad8be39030807ce0' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: '4872e8b42cc25c9339004f5fa7518a269894cc04' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: 'd47e314d9f597a2a44a43d353f76f4382e77657d', class: "validity" }, "V\u00E1lido at\u00E9: ", this.bonus.firstValidityDate), h("p", { key: '2f7b73f9fb4829fbd2fb87b10f851164a1f6d693' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: '62efddb496edc9d63ec94556a58d7f9e0ed5db3b' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: 'a317afd9f38a78564dc77dee2e24d22dce07f2eb', class: "progress-container" }, h("span", { key: '477d1db02fddceb715e7c13f75ec56f8f9f9ab0c' }, "R$ 0"), h("input", { key: '529c0f301c61e75e805fe6624ecaf67ca7f32ed0', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: 'aeecbd228a386f536284d5bbe4fc958395f4247d' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: 'd64e5eed679ea8e08f63a746e071683c293cc953', class: "remaining" }, "Faltam ", h("strong", { key: '21195f525adf45ea849bb706528b7d3a891a834e' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: '3c7aa00b26d79f0f158f676ee5fb188b94298d26', class: "footer-button-giftback" }, h("button", { key: '9ab5d07ce78f392628b0dd7687261faa725281d6', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '0122d81c0726296912e924c754d4de6938ae2b6f', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve() }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
|
34
34
|
}
|
35
35
|
};
|
36
36
|
GiftbackProgress.style = giftbackProgressCss;
|
@@ -9,7 +9,7 @@ const LoadingSpinner = class {
|
|
9
9
|
this.color = '#0078d7';
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (h("div", { key: '
|
12
|
+
return (h("div", { key: 'cba1c6d6635d5f9ca12dd86c1d293126ffc54167', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
|
13
13
|
}
|
14
14
|
};
|
15
15
|
LoadingSpinner.style = loadingSpinnerCss;
|
@@ -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 Pedido = class {
|
5
5
|
constructor(hostRef) {
|
@@ -15,7 +15,7 @@ const Pedido = class {
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
render() {
|
18
|
-
return (h("div", { key: '
|
18
|
+
return (h("div", { key: '3b7825eb73589cd4223d99fee70b1f118ace0811' }));
|
19
19
|
}
|
20
20
|
};
|
21
21
|
|
@@ -29,7 +29,7 @@ const PhoneInputMask = class {
|
|
29
29
|
return this.phone;
|
30
30
|
}
|
31
31
|
render() {
|
32
|
-
return (h("input", { key: '
|
32
|
+
return (h("input", { key: 'eb90a08eb68463fb8dcb81e22d45621b8b59c754', id: "phone", type: "tel", class: "phone", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }));
|
33
33
|
}
|
34
34
|
};
|
35
35
|
PhoneInputMask.style = phoneInputMaskCss;
|
@@ -12,7 +12,7 @@ const PhoneInput = class {
|
|
12
12
|
await this.sendPin(phone);
|
13
13
|
}
|
14
14
|
render() {
|
15
|
-
return (h("div", { key: '
|
15
|
+
return (h("div", { key: '8deb65295383b9a14e1ac5c3050ce2cab709c208', class: "form-container" }, h("phone-input-mask", { key: 'd5c9b2fb84b166c67fdfa653f4d0194818d7ae54', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("button", { key: '666403560be459bd387d743936b4de1d0cb29ade', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : h("loading-spinner", { size: "25px", color: "#fff" }))));
|
16
16
|
}
|
17
17
|
};
|
18
18
|
|