crmbonus-component-wake 2.0.47 → 2.0.49

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.
Files changed (198) hide show
  1. package/dist/cjs/app-modal.cjs.entry.js +1 -1
  2. package/dist/cjs/countdown-timer_4.cjs.entry.js +27 -21
  3. package/dist/cjs/countdown-timer_4.cjs.entry.js.map +1 -1
  4. package/dist/cjs/crm-bonus-form.cjs.entry.js +2 -2
  5. package/dist/cjs/crm-bonus-note.cjs.entry.js +15 -5
  6. package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
  7. package/dist/cjs/crm-bonus.cjs.entry.js +8 -4
  8. package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
  9. package/dist/cjs/crm-giftback-form.cjs.entry.js +70 -7
  10. package/dist/cjs/crm-giftback-form.cjs.entry.js.map +1 -1
  11. package/dist/cjs/crmbonus-component-wake.cjs.js +1 -1
  12. package/dist/cjs/{crmbonus.service-e375ebfe.js → crmbonus.service-7991795d.js} +10 -2
  13. package/dist/cjs/crmbonus.service-7991795d.js.map +1 -0
  14. package/dist/cjs/giftback-finish_4.cjs.entry.js +1 -1
  15. package/dist/cjs/giftback-finish_4.cjs.entry.js.map +1 -1
  16. package/dist/cjs/{i18n-db722856.js → i18n-818275e6.js} +3 -2
  17. package/dist/cjs/{i18n-db722856.js.map → i18n-818275e6.js.map} +1 -1
  18. package/dist/cjs/{index-fdad75ce.js → index-96a8951f.js} +2 -1
  19. package/dist/cjs/index-96a8951f.js.map +1 -0
  20. package/dist/cjs/info.config.helper-c5d9f781.js +16 -0
  21. package/dist/cjs/info.config.helper-c5d9f781.js.map +1 -0
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  24. package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
  25. package/dist/cjs/phone-input-mask.cjs.entry.js +2 -2
  26. package/dist/collection/components/crm-bonus/crm-bonus.js +5 -1
  27. package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
  28. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +1 -1
  29. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +1 -5
  30. package/dist/collection/components/giftback-form/giftback-form.css +32 -5
  31. package/dist/collection/components/giftback-form/giftback-form.js +69 -5
  32. package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
  33. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +3 -1
  34. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +21 -8
  35. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +1 -1
  36. package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js +11 -0
  37. package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +1 -0
  38. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +1 -1
  39. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +0 -3
  40. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -7
  41. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +1 -1
  42. package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
  43. package/dist/collection/components/modal/app-modal.js +1 -1
  44. package/dist/collection/components/note/crm-bonus-note.css +23 -7
  45. package/dist/collection/components/note/crm-bonus-note.js +33 -5
  46. package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
  47. package/dist/collection/components/pedido/pedido.js +1 -1
  48. package/dist/collection/components/phone/phone-input-mask.js +1 -1
  49. package/dist/collection/contants/index.js +1 -0
  50. package/dist/collection/contants/index.js.map +1 -1
  51. package/dist/collection/helpers/info.config.helper.js +11 -0
  52. package/dist/collection/helpers/info.config.helper.js.map +1 -0
  53. package/dist/collection/i18n/i18n.js +2 -1
  54. package/dist/collection/i18n/i18n.js.map +1 -1
  55. package/dist/collection/services/crmbonus.service.js +8 -0
  56. package/dist/collection/services/crmbonus.service.js.map +1 -1
  57. package/dist/components/app-modal.js +1 -1
  58. package/dist/components/crm-bonus-form.js +6 -6
  59. package/dist/components/crm-bonus-note.js +18 -6
  60. package/dist/components/crm-bonus-note.js.map +1 -1
  61. package/dist/components/crm-bonus.js +15 -11
  62. package/dist/components/crm-bonus.js.map +1 -1
  63. package/dist/components/crm-button.js +1 -1
  64. package/dist/components/crm-giftback-form.js +1 -1
  65. package/dist/components/giftback-info.js +1 -1
  66. package/dist/components/giftback-pin.js +1 -1
  67. package/dist/components/giftback-progress.js +1 -1
  68. package/dist/components/loading-spinner.js +1 -1
  69. package/dist/components/name-input.js +1 -1
  70. package/dist/components/p-0a57e57f.js +91 -0
  71. package/dist/components/p-0a57e57f.js.map +1 -0
  72. package/dist/components/{p-b1841bad.js → p-11bd8050.js} +6 -6
  73. package/dist/components/p-11bd8050.js.map +1 -0
  74. package/dist/{esm/i18n-d8b777a9.js → components/p-1d5eeac0.js} +3 -2
  75. package/dist/components/{p-a7e91243.js.map → p-1d5eeac0.js.map} +1 -1
  76. package/dist/components/{p-f8b4698f.js → p-25f37293.js} +79 -15
  77. package/dist/components/p-25f37293.js.map +1 -0
  78. package/dist/components/{p-878c694e.js → p-384fabf7.js} +10 -2
  79. package/dist/components/p-384fabf7.js.map +1 -0
  80. package/dist/components/{p-1539def7.js → p-46578efa.js} +2 -2
  81. package/dist/components/{p-1539def7.js.map → p-46578efa.js.map} +1 -1
  82. package/dist/components/{p-0c1aa75b.js → p-4f18f4c0.js} +3 -3
  83. package/dist/components/p-4f18f4c0.js.map +1 -0
  84. package/dist/components/{p-bf93729e.js → p-5c3fe5a8.js} +2 -2
  85. package/dist/components/{p-bf93729e.js.map → p-5c3fe5a8.js.map} +1 -1
  86. package/dist/components/{p-bc925ed6.js → p-5dfa24e0.js} +7 -13
  87. package/dist/components/p-5dfa24e0.js.map +1 -0
  88. package/dist/components/p-75ba7b9a.js +14 -0
  89. package/dist/components/p-75ba7b9a.js.map +1 -0
  90. package/dist/components/{p-e443d670.js → p-a30bd6b1.js} +2 -2
  91. package/dist/components/{p-e443d670.js.map → p-a30bd6b1.js.map} +1 -1
  92. package/dist/components/{p-dddd9ee6.js → p-a561251a.js} +2 -1
  93. package/dist/components/p-a561251a.js.map +1 -0
  94. package/dist/components/{p-7e8a1832.js → p-be365312.js} +3 -3
  95. package/dist/components/{p-7e8a1832.js.map → p-be365312.js.map} +1 -1
  96. package/dist/components/{p-f2ab4eea.js → p-f168d5f6.js} +2 -2
  97. package/dist/components/{p-f2ab4eea.js.map → p-f168d5f6.js.map} +1 -1
  98. package/dist/components/pedido-finalizado.js +2 -2
  99. package/dist/components/phone-cancel-input.js +2 -2
  100. package/dist/components/phone-form.js +1 -1
  101. package/dist/components/phone-input-mask.js +1 -1
  102. package/dist/components/phone-input.js +2 -2
  103. package/dist/components/pin-form.js +1 -1
  104. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
  105. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  106. package/dist/crmbonus-component-wake/{p-a7e91243.js → p-1d5eeac0.js} +2 -2
  107. package/dist/crmbonus-component-wake/p-1d5eeac0.js.map +1 -0
  108. package/dist/crmbonus-component-wake/{p-878c694e.js → p-384fabf7.js} +2 -2
  109. package/dist/crmbonus-component-wake/p-384fabf7.js.map +1 -0
  110. package/dist/crmbonus-component-wake/{p-cdd018cc.entry.js → p-3beb5158.entry.js} +2 -2
  111. package/dist/crmbonus-component-wake/{p-7aff6c4e.entry.js → p-5a8fa5b9.entry.js} +2 -2
  112. package/dist/crmbonus-component-wake/p-66f41fd0.entry.js +2 -0
  113. package/dist/crmbonus-component-wake/p-75ba7b9a.js +2 -0
  114. package/dist/crmbonus-component-wake/p-75ba7b9a.js.map +1 -0
  115. package/dist/crmbonus-component-wake/p-830b5bdc.entry.js +2 -0
  116. package/dist/crmbonus-component-wake/p-830b5bdc.entry.js.map +1 -0
  117. package/dist/crmbonus-component-wake/{p-d6af7631.entry.js → p-9514339e.entry.js} +2 -2
  118. package/dist/crmbonus-component-wake/p-a561251a.js +2 -0
  119. package/dist/crmbonus-component-wake/p-a561251a.js.map +1 -0
  120. package/dist/crmbonus-component-wake/p-af160cdc.entry.js +2 -0
  121. package/dist/crmbonus-component-wake/p-af160cdc.entry.js.map +1 -0
  122. package/dist/crmbonus-component-wake/p-c271c472.entry.js +2 -0
  123. package/dist/crmbonus-component-wake/p-c271c472.entry.js.map +1 -0
  124. package/dist/crmbonus-component-wake/p-c72a11ba.entry.js +2 -0
  125. package/dist/crmbonus-component-wake/p-c72a11ba.entry.js.map +1 -0
  126. package/dist/crmbonus-component-wake/p-cc452df3.entry.js +2 -0
  127. package/dist/crmbonus-component-wake/p-cc452df3.entry.js.map +1 -0
  128. package/dist/crmbonus-component-wake/{p-be553772.entry.js → p-d0349daf.entry.js} +2 -2
  129. package/dist/env.js +1 -1
  130. package/dist/env.js.map +1 -1
  131. package/dist/esm/app-modal.entry.js +1 -1
  132. package/dist/esm/countdown-timer_4.entry.js +27 -21
  133. package/dist/esm/countdown-timer_4.entry.js.map +1 -1
  134. package/dist/esm/crm-bonus-form.entry.js +2 -2
  135. package/dist/esm/crm-bonus-note.entry.js +15 -5
  136. package/dist/esm/crm-bonus-note.entry.js.map +1 -1
  137. package/dist/esm/crm-bonus.entry.js +8 -4
  138. package/dist/esm/crm-bonus.entry.js.map +1 -1
  139. package/dist/esm/crm-giftback-form.entry.js +70 -7
  140. package/dist/esm/crm-giftback-form.entry.js.map +1 -1
  141. package/dist/esm/crmbonus-component-wake.js +1 -1
  142. package/dist/esm/{crmbonus.service-4ee773c8.js → crmbonus.service-a846150c.js} +10 -2
  143. package/dist/esm/crmbonus.service-a846150c.js.map +1 -0
  144. package/dist/esm/giftback-finish_4.entry.js +1 -1
  145. package/dist/esm/giftback-finish_4.entry.js.map +1 -1
  146. package/dist/{components/p-a7e91243.js → esm/i18n-853fedb3.js} +3 -2
  147. package/dist/esm/{i18n-d8b777a9.js.map → i18n-853fedb3.js.map} +1 -1
  148. package/dist/esm/{index-7101ea0c.js → index-3c6d4feb.js} +2 -1
  149. package/dist/esm/index-3c6d4feb.js.map +1 -0
  150. package/dist/esm/info.config.helper-42d9ddf9.js +14 -0
  151. package/dist/esm/info.config.helper-42d9ddf9.js.map +1 -0
  152. package/dist/esm/loader.js +1 -1
  153. package/dist/esm/loading-spinner.entry.js +1 -1
  154. package/dist/esm/pedido-finalizado.entry.js +2 -2
  155. package/dist/esm/phone-input-mask.entry.js +2 -2
  156. package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
  157. package/dist/types/components/giftback-form/giftback-form.d.ts +8 -0
  158. package/dist/types/components/giftback-form/subcomponents/giftback-info/giftback-info.d.ts +2 -2
  159. package/dist/types/components/giftback-form/subcomponents/giftback-message/giftback-massage.d.ts +3 -0
  160. package/dist/types/components/giftback-form/subcomponents/pin-form/pin-form.d.ts +0 -1
  161. package/dist/types/components/note/crm-bonus-note.d.ts +4 -0
  162. package/dist/types/components.d.ts +2 -0
  163. package/dist/types/contants/index.d.ts +2 -1
  164. package/dist/types/helpers/info.config.helper.d.ts +6 -0
  165. package/dist/types/services/crmbonus.service.d.ts +1 -0
  166. package/package.json +1 -1
  167. package/dist/cjs/crmbonus.service-e375ebfe.js.map +0 -1
  168. package/dist/cjs/index-fdad75ce.js.map +0 -1
  169. package/dist/components/p-0c1aa75b.js.map +0 -1
  170. package/dist/components/p-878c694e.js.map +0 -1
  171. package/dist/components/p-9a435c31.js +0 -79
  172. package/dist/components/p-9a435c31.js.map +0 -1
  173. package/dist/components/p-b1841bad.js.map +0 -1
  174. package/dist/components/p-bc925ed6.js.map +0 -1
  175. package/dist/components/p-dddd9ee6.js.map +0 -1
  176. package/dist/components/p-f8b4698f.js.map +0 -1
  177. package/dist/crmbonus-component-wake/p-574108d2.entry.js +0 -2
  178. package/dist/crmbonus-component-wake/p-574108d2.entry.js.map +0 -1
  179. package/dist/crmbonus-component-wake/p-61462d71.entry.js +0 -2
  180. package/dist/crmbonus-component-wake/p-61462d71.entry.js.map +0 -1
  181. package/dist/crmbonus-component-wake/p-63d2a359.entry.js +0 -2
  182. package/dist/crmbonus-component-wake/p-63d2a359.entry.js.map +0 -1
  183. package/dist/crmbonus-component-wake/p-83182e85.entry.js +0 -2
  184. package/dist/crmbonus-component-wake/p-83182e85.entry.js.map +0 -1
  185. package/dist/crmbonus-component-wake/p-878c694e.js.map +0 -1
  186. package/dist/crmbonus-component-wake/p-a7e91243.js.map +0 -1
  187. package/dist/crmbonus-component-wake/p-dddd9ee6.js +0 -2
  188. package/dist/crmbonus-component-wake/p-dddd9ee6.js.map +0 -1
  189. package/dist/crmbonus-component-wake/p-e23e8d6d.entry.js +0 -2
  190. package/dist/crmbonus-component-wake/p-e23e8d6d.entry.js.map +0 -1
  191. package/dist/crmbonus-component-wake/p-e3b52362.entry.js +0 -2
  192. package/dist/esm/crmbonus.service-4ee773c8.js.map +0 -1
  193. package/dist/esm/index-7101ea0c.js.map +0 -1
  194. /package/dist/crmbonus-component-wake/{p-cdd018cc.entry.js.map → p-3beb5158.entry.js.map} +0 -0
  195. /package/dist/crmbonus-component-wake/{p-7aff6c4e.entry.js.map → p-5a8fa5b9.entry.js.map} +0 -0
  196. /package/dist/crmbonus-component-wake/{p-e3b52362.entry.js.map → p-66f41fd0.entry.js.map} +0 -0
  197. /package/dist/crmbonus-component-wake/{p-d6af7631.entry.js.map → p-9514339e.entry.js.map} +0 -0
  198. /package/dist/crmbonus-component-wake/{p-be553772.entry.js.map → p-d0349daf.entry.js.map} +0 -0
@@ -5,9 +5,10 @@ var StepFormEnum;
5
5
  StepFormEnum[StepFormEnum["STEP_PIN"] = 2] = "STEP_PIN";
6
6
  StepFormEnum[StepFormEnum["STEP_RESERVE"] = 3] = "STEP_RESERVE";
7
7
  StepFormEnum[StepFormEnum["STEP_APPLY"] = 4] = "STEP_APPLY";
8
+ StepFormEnum[StepFormEnum["STEP_NO_BONUS"] = 5] = "STEP_NO_BONUS";
8
9
  })(StepFormEnum || (StepFormEnum = {}));
9
10
  const MESSAGE_ERROR_INVALID_NUMBER = "Número inválido";
10
11
 
11
12
  export { MESSAGE_ERROR_INVALID_NUMBER as M, StepFormEnum as S };
12
13
 
13
- //# sourceMappingURL=index-7101ea0c.js.map
14
+ //# sourceMappingURL=index-3c6d4feb.js.map
@@ -0,0 +1 @@
1
+ {"file":"index-3c6d4feb.js","mappings":"IAAY;AAAZ,WAAY,YAAY;IACpB,yDAAa,CAAA;IACb,2DAAc,CAAA;IACd,uDAAY,CAAA;IACZ,+DAAgB,CAAA;IAChB,2DAAc,CAAA;IACd,iEAAiB,CAAA;AACrB,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;MAEY,4BAA4B,GAAE;;;;","names":[],"sources":["src/contants/index.ts"],"sourcesContent":["export enum StepFormEnum {\n STEP_NAME = 0,\n STEP_PHONE = 1,\n STEP_PIN = 2,\n STEP_RESERVE = 3,\n STEP_APPLY = 4,\n STEP_NO_BONUS = 5\n}\n\nexport const MESSAGE_ERROR_INVALID_NUMBER= \"Número inválido\""],"version":3}
@@ -0,0 +1,14 @@
1
+ function getInfoCustomization(storeName) {
2
+ const infos = localStorage.getItem(`bc:${storeName}`);
3
+ if (infos)
4
+ return JSON.parse(infos);
5
+ return {
6
+ btnApplyBonusLabel: "Avançar",
7
+ confirmationMessage: "",
8
+ giftbackTitle: "Giftback"
9
+ };
10
+ }
11
+
12
+ export { getInfoCustomization as g };
13
+
14
+ //# sourceMappingURL=info.config.helper-42d9ddf9.js.map
@@ -0,0 +1 @@
1
+ {"file":"info.config.helper-42d9ddf9.js","mappings":"SAOgB,oBAAoB,CAAC,SAAiB;IAClD,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAEtD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5B,OAAO;QACH,kBAAkB,EAAE,SAAS;QAC7B,mBAAmB,EAAE,EAAE;QACvB,aAAa,EAAE,UAAU;KAC5B,CAAA;AAEL;;;;","names":[],"sources":["src/helpers/info.config.helper.ts"],"sourcesContent":["export interface IInfoStore {\n btnApplyBonusLabel: string;\n confirmationMessage: string;\n giftbackTitle: string;\n}\n\n\nexport function getInfoCustomization(storeName: string): IInfoStore {\n const infos = localStorage.getItem(`bc:${storeName}`);\n\n if (infos)\n return JSON.parse(infos)\n\n return {\n btnApplyBonusLabel: \"Avançar\",\n confirmationMessage: \"\",\n giftbackTitle: \"Giftback\"\n }\n\n}"],"version":3}
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["crm-bonus",[[1,"crm-bonus",{"userId":[2,"userid"],"storeName":[8,"storename"],"productsInString":[1,"products"],"cartId":[8,"cartid"],"showModal":[32],"products":[32],"customer":[32],"loading":[32],"message":[32],"phone":[32],"canCancel":[32],"amountCancel":[32],"sent":[32],"session":[32]}]]],["crm-bonus-form",[[1,"crm-bonus-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"customer":[16],"sent":[16],"stepNext":[2,"step-next"],"phone":[2],"loadingModal":[4,"loading-modal"],"saveStore":[16],"cancel":[16],"handleCustomerName":[16],"loading":[32],"step":[32],"message":[32],"bonus":[32],"setStep":[64]}]]],["phone-cancel-input",[[0,"phone-cancel-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["phone-input",[[0,"phone-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["app-modal",[[1,"app-modal",{"isOpen":[516,"is-open"],"modalTitle":[1,"modal-title"]}]]],["crm-bonus-note",[[0,"crm-bonus-note",{"cartId":[8,"cartid"],"url":[32]}]]],["pedido-finalizado",[[0,"pedido-finalizado",{"cartId":[1,"cartid"],"orderId":[2,"orderid"],"metadadoString":[1,"metadado"]}]]],["crm-button",[[0,"crm-button",{"txtBtn":[1,"txt-btn"],"loading":[4]}]]],["phone-input-mask",[[1,"phone-input-mask",{"initialValue":[1,"initial-value"],"disabled":[4],"phone":[32],"message":[32],"getPhone":[64]}]]],["loading-spinner",[[1,"loading-spinner",{"size":[1],"color":[1]}]]],["countdown-timer_4",[[0,"phone-form",{"value":[1],"loading":[4],"handlerSubmit":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-form",[[0,"crm-giftback-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"value":[32],"loading":[32],"message":[32],"phone":[32],"pinInfo":[32],"step":[32],"bonus":[32],"sucess":[32],"error":[32]}]]],["giftback-finish_4",[[1,"giftback-pin",{"sent":[16],"validate":[16],"cancel":[16],"loading":[4],"pin":[32],"isVerified":[32]}],[1,"giftback-progress",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32]}],[0,"name-input",{"value":[1],"loading":[4],"applyName":[16],"cancel":[16],"newValue":[32],"message":[32]}],[1,"giftback-finish"]]]], options);
8
+ return bootstrapLazy([["crm-bonus",[[1,"crm-bonus",{"userId":[2,"userid"],"storeName":[8,"storename"],"productsInString":[1,"products"],"cartId":[8,"cartid"],"showModal":[32],"products":[32],"customer":[32],"loading":[32],"message":[32],"phone":[32],"canCancel":[32],"amountCancel":[32],"sent":[32],"session":[32]}]]],["crm-bonus-form",[[1,"crm-bonus-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"customer":[16],"sent":[16],"stepNext":[2,"step-next"],"phone":[2],"loadingModal":[4,"loading-modal"],"saveStore":[16],"cancel":[16],"handleCustomerName":[16],"loading":[32],"step":[32],"message":[32],"bonus":[32],"setStep":[64]}]]],["phone-cancel-input",[[0,"phone-cancel-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["phone-input",[[0,"phone-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["app-modal",[[1,"app-modal",{"isOpen":[516,"is-open"],"modalTitle":[1,"modal-title"]}]]],["crm-bonus-note",[[0,"crm-bonus-note",{"cartId":[8,"cartid"],"storename":[8],"url":[32],"config":[32]}]]],["pedido-finalizado",[[0,"pedido-finalizado",{"cartId":[1,"cartid"],"orderId":[2,"orderid"],"metadadoString":[1,"metadado"]}]]],["crm-button",[[0,"crm-button",{"txtBtn":[1,"txt-btn"],"loading":[4]}]]],["phone-input-mask",[[1,"phone-input-mask",{"initialValue":[1,"initial-value"],"disabled":[4],"phone":[32],"message":[32],"getPhone":[64]}]]],["loading-spinner",[[1,"loading-spinner",{"size":[1],"color":[1]}]]],["countdown-timer_4",[[0,"phone-form",{"value":[1],"loading":[4],"handlerSubmit":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-form",[[0,"crm-giftback-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"value":[32],"loading":[32],"message":[32],"phone":[32],"pinInfo":[32],"step":[32],"bonus":[32],"sucess":[32],"error":[32],"config":[32]}]]],["giftback-finish_4",[[1,"giftback-pin",{"sent":[16],"validate":[16],"cancel":[16],"loading":[4],"pin":[32],"isVerified":[32]}],[1,"giftback-progress",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32]}],[0,"name-input",{"value":[1],"loading":[4],"applyName":[16],"cancel":[16],"newValue":[32],"message":[32]}],[1,"giftback-finish"]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -10,7 +10,7 @@ const LoadingSpinner = class {
10
10
  this.color = '#0078d7';
11
11
  }
12
12
  render() {
13
- return (h("div", { key: '54eff3c98337066831f2fbd1cd1dc933e828b9c3', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
13
+ return (h("div", { key: '5d3cd866b3ab7f4898ad1142fb39b89c572867d7', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
14
14
  }
15
15
  };
16
16
  LoadingSpinner.style = LoadingSpinnerStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-a4c14fca.js';
2
- import { C as CrmBonusService } from './crmbonus.service-4ee773c8.js';
2
+ import { C as CrmBonusService } from './crmbonus.service-a846150c.js';
3
3
 
4
4
  const Pedido = class {
5
5
  constructor(hostRef) {
@@ -23,7 +23,7 @@ const Pedido = class {
23
23
  }
24
24
  }
25
25
  render() {
26
- return (h("div", { key: 'de2c3581e87e17dcbc24364d99f6903d051a7d2e' }));
26
+ return (h("div", { key: '084ea188e020b3994a676f4fa17b5f3523a5f611' }));
27
27
  }
28
28
  };
29
29
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-a4c14fca.js';
2
- import { M as MESSAGE_ERROR_INVALID_NUMBER } from './index-7101ea0c.js';
2
+ import { M as MESSAGE_ERROR_INVALID_NUMBER } from './index-3c6d4feb.js';
3
3
 
4
4
  const phoneInputMaskCss = "*{margin:0;padding:0;box-sizing:border-box}.phone{display:block;width:100%;height:24px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:0px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);-webkit-transition:border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s}.phone-input-form{width:246px;height:48px;padding:13px 16px 13px 16px;border:1px solid #CCCCCC}.crm-erro-msg{color:#E11D48;font-size:12px;font-weight:500;margin-top:11px}";
5
5
  const PhoneInputMaskStyle0 = phoneInputMaskCss;
@@ -44,7 +44,7 @@ const PhoneInputMask = class {
44
44
  return this.phone;
45
45
  }
46
46
  render() {
47
- return (h("div", { key: '3cc6984552f8f636d6dfa5ed5de14ebd54156774' }, h("input", { key: 'c4de0e7de64a9255af19fc3cc9363d190a80d6f1', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }), h("p", { key: '1c6e6334c2995896c730f0ce93fdcb623933595d', class: "crm-erro-msg" }, this.message)));
47
+ return (h("div", { key: '34e88e02195fceb8d73970aa33dcfad2efd05b0f' }, h("input", { key: '22b65d69b7ab13ad41ee36a5e81f26b3d8ffeb1b', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }), h("p", { key: 'd46cef24b15f4886f7e503b91aeebeaf92dfc3fd', class: "crm-erro-msg" }, this.message)));
48
48
  }
49
49
  };
50
50
  PhoneInputMask.style = PhoneInputMaskStyle0;
@@ -18,6 +18,7 @@ export declare class CrmBonus {
18
18
  sent: IPinSent;
19
19
  session: string;
20
20
  componentWillLoad(): Promise<void>;
21
+ loadConfigStore(): Promise<void>;
21
22
  handleLoad(): Promise<void>;
22
23
  loadSession(): Promise<void>;
23
24
  buildAndGetProducts(): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import { StepFormEnum } from "../../contants";
2
2
  import { IPinSent } from '../../dto/pin.sent';
3
3
  import { IBonus, IProduct } from "../../dto/validate.pin.bonus";
4
+ import { IInfoStore } from "../../helpers/info.config.helper";
4
5
  export declare class CrmBonus {
5
6
  private crmBonusService;
6
7
  storeName: any;
@@ -15,10 +16,17 @@ export declare class CrmBonus {
15
16
  bonus: IBonus;
16
17
  sucess: string;
17
18
  error: string;
19
+ config: IInfoStore;
18
20
  handleSendPin(phone: string): Promise<void>;
21
+ componentWillLoad(): void;
19
22
  private convertStringToNumber;
20
23
  sendPin(): Promise<void>;
21
24
  changePhone(): void;
22
25
  validateBonus(pin: string): Promise<void>;
26
+ handleCancel(): void;
27
+ cancel(): Promise<void>;
28
+ reserveApply(amount: number): Promise<void>;
29
+ save(amount: number): void;
30
+ reserve(amount: number): Promise<void>;
23
31
  render(): any;
24
32
  }
@@ -9,7 +9,7 @@ export declare class GiftbackInfo {
9
9
  sliderPosition: number;
10
10
  componentWillLoad(): void;
11
11
  handleSliderChange(event: Event): void;
12
- handleReserve(value: number): Promise<void>;
13
- handleOptionChange(option: string): void;
12
+ private buildPositionSlider;
13
+ handleOptionChange(option: string): Promise<void>;
14
14
  render(): any;
15
15
  }
@@ -0,0 +1,3 @@
1
+ export declare class GiftbackMessage {
2
+ render(): any;
3
+ }
@@ -15,6 +15,5 @@ export declare class GiftbackPin {
15
15
  verifyPin(): void;
16
16
  handleTimeout(): void;
17
17
  handleResend(): Promise<void>;
18
- renderOptions(): any;
19
18
  render(): any;
20
19
  }
@@ -1,8 +1,12 @@
1
+ import { IInfoStore } from "../../helpers/info.config.helper";
1
2
  export declare class CrmBonusNote {
2
3
  cartId: any;
4
+ storename: any;
3
5
  url: string;
6
+ config: IInfoStore;
4
7
  componentWillLoad(): void;
5
8
  upadateCheckToFreteAndGetUrl(): void;
6
9
  handleHide(): boolean;
10
+ getAmount(): string;
7
11
  render(): any;
8
12
  }
@@ -41,6 +41,7 @@ export namespace Components {
41
41
  }
42
42
  interface CrmBonusNote {
43
43
  "cartId": any;
44
+ "storename": any;
44
45
  }
45
46
  interface CrmButton {
46
47
  "loading": boolean;
@@ -297,6 +298,7 @@ declare namespace LocalJSX {
297
298
  }
298
299
  interface CrmBonusNote {
299
300
  "cartId"?: any;
301
+ "storename"?: any;
300
302
  }
301
303
  interface CrmButton {
302
304
  "loading"?: boolean;
@@ -3,6 +3,7 @@ export declare enum StepFormEnum {
3
3
  STEP_PHONE = 1,
4
4
  STEP_PIN = 2,
5
5
  STEP_RESERVE = 3,
6
- STEP_APPLY = 4
6
+ STEP_APPLY = 4,
7
+ STEP_NO_BONUS = 5
7
8
  }
8
9
  export declare const MESSAGE_ERROR_INVALID_NUMBER = "N\u00FAmero inv\u00E1lido";
@@ -0,0 +1,6 @@
1
+ export interface IInfoStore {
2
+ btnApplyBonusLabel: string;
3
+ confirmationMessage: string;
4
+ giftbackTitle: string;
5
+ }
6
+ export declare function getInfoCustomization(storeName: string): IInfoStore;
@@ -14,4 +14,5 @@ export declare class CrmBonusService {
14
14
  reserve(payload: IReserveDTO): Promise<any>;
15
15
  cancel(cartId: string): Promise<any>;
16
16
  getToken(store: string): Promise<string>;
17
+ getCustomization(storeName: string): Promise<void>;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crmbonus-component-wake",
3
- "version": "2.0.47",
3
+ "version": "2.0.49",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",