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.
@@ -9,7 +9,7 @@ const GiftbackFinish = class {
9
9
  registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (h("div", { key: 'b6776a834b1dd23b90b5fde271e6080a809ab7fc', class: "message-finish" }, h("img", { key: '0681ae013f9dee67c68f6d946f5e08cb8f44333a', src: successSvgrepoComSvg, width: 80 }), h("p", { key: '614cd9c48649e3fe557d36cbea6b3ccd6de089f9' }, "B\u00F4nus Aplicado com sucesso!!!")));
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: '1984f00883037262bde49257fed2d583c7a7ae96', class: "form-container-pin" }, h("div", { key: 'a09cb57ad64090c1f57e457d194964c77ea1f75f' }, h("p", { key: '17c6118d47990e475f38cc8faf270601741e9e0e' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: 'e4d0db2861144d277de16e766b3d2cfdf165b5c7', 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: 'd7b39e3255b2d62fbac1547bd50dd3e0687a31b6', class: "footer-button" }, h("button", { key: '5f123fba6ceddc8360e2b2424f10a1d365162118', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '0f4c13699d23fb4d037534c9be6c164bd36b84ba', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePin() }, !this.loading ? "Enviar" : h("loading-spinner", { size: "15px", color: "#fff" })))));
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: '8e61dd9045fbf407e1f296675850e561689694b1', class: "giftback-container" }, h("p", { key: '9e35fb4d9656889fa13f59af01419b14a8697a9e' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: '0e9b41cd042de367b4291a70a99bd67e23bbd5fe' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: '8bbfec249686c834f8b6b4c59c5697b4b8e9007f', class: "validity" }, "V\u00E1lido at\u00E9: ", this.bonus.firstValidityDate), h("p", { key: 'ff294b49a11b595ff66cb206835c0b188cb96095' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: 'cac539e866b15c7072f59bae7514b288fd27c941' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: 'ab7d29de1e6d83ec246448a127c3a9eeecbff94b', class: "progress-container" }, h("span", { key: '075f662a7a70b4da0c084d04326cbca46bd6d322' }, "R$ 0"), h("input", { key: '9ac0d0da95c4d3e08964c3079f408ea020fc1af7', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: '00a268609fa0bb0751fc12a261f7e798f7751389' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: 'eddc0c0c9851dcde0c7962958a5dc901444e1cd0', class: "remaining" }, "Faltam ", h("strong", { key: '0e85235055a354f1336c5c370e7dab3cdba1499e' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: 'bfd3a14c84ac24f402d0c6922f43584f1b3f789a', class: "footer-button-giftback" }, h("button", { key: '3bb6e6d37274249a48c3cb1995859fa59127aaa4', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '8589f3cff75ee1ce58ff8516cfc47b4837865fc9', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve() }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
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: '0421bb5b2c6c842723b7a396000e6f801a6082f1', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
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-72c64bc3.js';
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: '7b944740105ff5e987df60b36e0c753042195cbe' }));
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: 'a38d9c9b99b3c4c64a87e2b850567dbdb132d514', id: "phone", type: "tel", class: "phone", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }));
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: 'd3cee6df714156276f3ab8b709c303ae0323c5b2', class: "form-container" }, h("phone-input-mask", { key: 'b0be7e3885c4230274e665876a61ce3030e6c5ca', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("button", { key: 'ba2b8a478913b696bf02d7429e451a8dbb4ff914', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : h("loading-spinner", { size: "25px", color: "#fff" }))));
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crmbonus-component-wake",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",