crmbonus-component-wake 2.1.21-homolog-tray → 2.1.22-ngrok

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 (361) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/app-modal.cjs.entry.js +1 -1
  3. package/dist/cjs/app-modal.cjs.entry.js.map +1 -1
  4. package/dist/cjs/build.payload.helper-409e6cc9.js +49 -0
  5. package/dist/cjs/build.payload.helper-409e6cc9.js.map +1 -0
  6. package/dist/cjs/{cart.helper-0a401d80.js → cart.helper-18589347.js} +4 -2
  7. package/dist/cjs/cart.helper-18589347.js.map +1 -0
  8. package/dist/cjs/countdown-timer-v2.cjs.entry.js +1 -1
  9. package/dist/cjs/countdown-timer-v2.cjs.entry.js.map +1 -1
  10. package/dist/cjs/{countdown-timer.cjs.entry.js → countdown-timer_2.cjs.entry.js} +19 -2
  11. package/dist/cjs/countdown-timer_2.cjs.entry.js.map +1 -0
  12. package/dist/cjs/crm-bonus-form.cjs.entry.js +2 -2
  13. package/dist/cjs/crm-bonus-form.cjs.entry.js.map +1 -1
  14. package/dist/cjs/crm-bonus-note.cjs.entry.js +64 -15
  15. package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
  16. package/dist/cjs/crm-bonus-tray.cjs.entry.js +1 -1
  17. package/dist/cjs/crm-bonus-tray.cjs.entry.js.map +1 -1
  18. package/dist/cjs/crm-bonus.cjs.entry.js +30 -37
  19. package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
  20. package/dist/cjs/{crm-giftback-form_2.cjs.entry.js → crm-giftback-form.cjs.entry.js} +43 -37
  21. package/dist/cjs/crm-giftback-form.cjs.entry.js.map +1 -0
  22. package/dist/cjs/crm-tooltip_4.cjs.entry.js +11 -11
  23. package/dist/cjs/crm-tooltip_4.cjs.entry.js.map +1 -1
  24. package/dist/cjs/crmbonus-component-wake.cjs.js +1 -1
  25. package/dist/cjs/{crmbonus.service-7a4f6786.js → crmbonus.service-36e689a4.js} +17 -12
  26. package/dist/cjs/crmbonus.service-36e689a4.js.map +1 -0
  27. package/dist/cjs/giftback-finish_4.cjs.entry.js +4 -4
  28. package/dist/cjs/giftback-finish_4.cjs.entry.js.map +1 -1
  29. package/dist/cjs/i18n-defaa4f8.js.map +1 -1
  30. package/dist/cjs/index-7a7d7882.js.map +1 -1
  31. package/dist/cjs/info.config.helper-e35e6e20.js.map +1 -1
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/cjs/loading-container.cjs.entry.js +23 -0
  34. package/dist/cjs/loading-container.cjs.entry.js.map +1 -0
  35. package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
  36. package/dist/cjs/loading-spinner.cjs.entry.js.map +1 -1
  37. package/dist/cjs/pedido-finalizado.cjs.entry.js +3 -3
  38. package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -1
  39. package/dist/cjs/phone-cancel-input.cjs.entry.js +1 -1
  40. package/dist/cjs/phone-cancel-input.cjs.entry.js.map +1 -1
  41. package/dist/cjs/phone-input-mask.cjs.entry.js +1 -1
  42. package/dist/cjs/phone-input-mask.cjs.entry.js.map +1 -1
  43. package/dist/cjs/phone-input.cjs.entry.js +1 -1
  44. package/dist/cjs/phone-input.cjs.entry.js.map +1 -1
  45. package/dist/cjs/utils-5d59acb1.js.map +1 -1
  46. package/dist/collection/assets/svg/money-dollars-svgrepo-com.svg +5 -5
  47. package/dist/collection/components/_crm-bonus-form/crm-bonus-form.css +17 -17
  48. package/dist/collection/components/_crm-bonus-form/crm-bonus-form.js +2 -2
  49. package/dist/collection/components/_crm-bonus-form/crm-bonus-form.js.map +1 -1
  50. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +8 -8
  51. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +1 -1
  52. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +1 -1
  53. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +68 -68
  54. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +1 -1
  55. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +1 -1
  56. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +108 -108
  57. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +2 -2
  58. package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +1 -1
  59. package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.css +107 -107
  60. package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.js +1 -1
  61. package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.js.map +1 -1
  62. package/dist/collection/components/_crm-bonus-form/subcomponents/phone/phone.input.js +1 -1
  63. package/dist/collection/components/_crm-bonus-form/subcomponents/phone/phone.input.js.map +1 -1
  64. package/dist/collection/components/_crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +1 -1
  65. package/dist/collection/components/_crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +1 -1
  66. package/dist/collection/components/button/crm-button.css +21 -21
  67. package/dist/collection/components/button/index.js +1 -1
  68. package/dist/collection/components/button/index.js.map +1 -1
  69. package/dist/collection/components/countdown-timer/countdown-timer.js +1 -1
  70. package/dist/collection/components/countdown-timer/countdown-timer.js.map +1 -1
  71. package/dist/collection/components/countdown-timer/countdown-timer.v2.js +2 -2
  72. package/dist/collection/components/countdown-timer/countdown-timer.v2.js.map +1 -1
  73. package/dist/collection/components/crm-bonus/assets/logo.svg +17 -17
  74. package/dist/collection/components/crm-bonus/assets/svg/logo.svg +17 -17
  75. package/dist/collection/components/crm-bonus/crm-bonus.css +82 -82
  76. package/dist/collection/components/crm-bonus/crm-bonus.js +44 -5
  77. package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
  78. package/dist/collection/components/giftback-form/giftback-form.css +74 -74
  79. package/dist/collection/components/giftback-form/giftback-form.js +42 -20
  80. package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
  81. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +181 -181
  82. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +6 -6
  83. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +1 -1
  84. package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +1 -1
  85. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +1 -1
  86. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js.map +1 -1
  87. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +83 -83
  88. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -1
  89. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +1 -1
  90. package/dist/collection/components/loading-container/loading-container.css +46 -46
  91. package/dist/collection/components/loading-container/loading-container.js +1 -1
  92. package/dist/collection/components/loading-container/loading-container.js.map +1 -1
  93. package/dist/collection/components/loading-spinner/loading-spinner.css +16 -16
  94. package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
  95. package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -1
  96. package/dist/collection/components/modal/app-modal.css +44 -44
  97. package/dist/collection/components/modal/app-modal.js +1 -1
  98. package/dist/collection/components/modal/app-modal.js.map +1 -1
  99. package/dist/collection/components/note/crm-bonus-note.css +68 -68
  100. package/dist/collection/components/note/crm-bonus-note.js +63 -11
  101. package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
  102. package/dist/collection/components/pedido/pedido.js +1 -1
  103. package/dist/collection/components/pedido/pedido.js.map +1 -1
  104. package/dist/collection/components/phone/phone-input-mask.css +40 -40
  105. package/dist/collection/components/phone/phone-input-mask.js +1 -1
  106. package/dist/collection/components/phone/phone-input-mask.js.map +1 -1
  107. package/dist/collection/components/tooltip/crm-tooltip.css +48 -48
  108. package/dist/collection/components/tooltip/tooltip.js +1 -1
  109. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  110. package/dist/collection/contants/index.js.map +1 -1
  111. package/dist/collection/contants/mocks.js.map +1 -1
  112. package/dist/collection/dto/pin.sent.js.map +1 -1
  113. package/dist/collection/dto/reserved-info.dto.js.map +1 -1
  114. package/dist/collection/dto/update.order.dto.js.map +1 -1
  115. package/dist/collection/dto/validate.pin.bonus.js +3 -0
  116. package/dist/collection/dto/validate.pin.bonus.js.map +1 -1
  117. package/dist/collection/helpers/build.payload.helper.js +15 -3
  118. package/dist/collection/helpers/build.payload.helper.js.map +1 -1
  119. package/dist/collection/helpers/cart.helper.js +2 -0
  120. package/dist/collection/helpers/cart.helper.js.map +1 -1
  121. package/dist/collection/helpers/info.config.helper.js.map +1 -1
  122. package/dist/collection/helpers/payload.interface.js.map +1 -1
  123. package/dist/collection/helpers/time.helper.js.map +1 -1
  124. package/dist/collection/i18n/i18n.js.map +1 -1
  125. package/dist/collection/index.js.map +1 -1
  126. package/dist/collection/objectvalues/cart.wake.js.map +1 -1
  127. package/dist/collection/services/crmbonus.service.js +15 -10
  128. package/dist/collection/services/crmbonus.service.js.map +1 -1
  129. package/dist/collection/tray-ecommerce/crm-bonus-tray.js +1 -1
  130. package/dist/collection/tray-ecommerce/crm-bonus-tray.js.map +1 -1
  131. package/dist/collection/utils/keys.storage.js.map +1 -1
  132. package/dist/collection/utils/utils.js.map +1 -1
  133. package/dist/components/app-modal.js +1 -1
  134. package/dist/components/app-modal.js.map +1 -1
  135. package/dist/components/countdown-timer-v2.js +1 -1
  136. package/dist/components/countdown-timer-v2.js.map +1 -1
  137. package/dist/components/countdown-timer.js +1 -1
  138. package/dist/components/crm-bonus-form.js +7 -7
  139. package/dist/components/crm-bonus-form.js.map +1 -1
  140. package/dist/components/crm-bonus-note.js +69 -18
  141. package/dist/components/crm-bonus-note.js.map +1 -1
  142. package/dist/components/crm-bonus-tray.js +1 -1
  143. package/dist/components/crm-bonus-tray.js.map +1 -1
  144. package/dist/components/crm-bonus.js +40 -46
  145. package/dist/components/crm-bonus.js.map +1 -1
  146. package/dist/components/crm-button.js +1 -1
  147. package/dist/components/crm-giftback-form.js +1 -1
  148. package/dist/components/crm-tooltip.js +1 -1
  149. package/dist/components/giftback-finish.js +1 -1
  150. package/dist/components/giftback-info.js +1 -1
  151. package/dist/components/giftback-pin.js +1 -1
  152. package/dist/components/giftback-progress.js +1 -1
  153. package/dist/components/loading-container.js +1 -1
  154. package/dist/components/loading-spinner.js +1 -1
  155. package/dist/components/name-input.js +1 -1
  156. package/dist/components/{p-63ca9208.js → p-0a33e90f.js} +5 -5
  157. package/dist/components/p-0a33e90f.js.map +1 -0
  158. package/dist/components/{p-a428d5df.js → p-142e8246.js} +17 -12
  159. package/dist/components/p-142e8246.js.map +1 -0
  160. package/dist/components/p-1b441909.js.map +1 -1
  161. package/dist/components/p-1bc79b08.js +47 -0
  162. package/dist/components/p-1bc79b08.js.map +1 -0
  163. package/dist/components/{p-c4788672.js → p-234f35c4.js} +3 -3
  164. package/dist/components/p-234f35c4.js.map +1 -0
  165. package/dist/components/{p-cd108989.js → p-6b1f5521.js} +2 -2
  166. package/dist/components/p-6b1f5521.js.map +1 -0
  167. package/dist/components/{p-ec317fb9.js → p-6d61406c.js} +52 -30
  168. package/dist/components/p-6d61406c.js.map +1 -0
  169. package/dist/components/{p-dc1871cf.js → p-6ff4aa18.js} +3 -3
  170. package/dist/components/p-6ff4aa18.js.map +1 -0
  171. package/dist/{esm/cart.helper-c6fd0b36.js → components/p-7a92a786.js} +4 -2
  172. package/dist/components/p-7a92a786.js.map +1 -0
  173. package/dist/components/{p-4ac2b98e.js → p-86dfe7ca.js} +5 -5
  174. package/dist/components/p-86dfe7ca.js.map +1 -0
  175. package/dist/components/{p-e81cd527.js → p-8e6146ae.js} +3 -3
  176. package/dist/components/p-8e6146ae.js.map +1 -0
  177. package/dist/components/{p-a70a82a3.js → p-ab662b24.js} +3 -3
  178. package/dist/components/p-ab662b24.js.map +1 -0
  179. package/dist/components/p-af3ba015.js.map +1 -1
  180. package/dist/components/{p-39cc3ce4.js → p-b86c93cc.js} +3 -3
  181. package/dist/components/p-b86c93cc.js.map +1 -0
  182. package/dist/components/p-c53241bf.js.map +1 -1
  183. package/dist/components/{p-d8bd654a.js → p-dc0f6d66.js} +10 -10
  184. package/dist/components/p-dc0f6d66.js.map +1 -0
  185. package/dist/components/{p-5a7b0549.js → p-e068510c.js} +2 -2
  186. package/dist/components/p-e068510c.js.map +1 -0
  187. package/dist/components/{p-e25a1b64.js → p-e31b6c28.js} +2 -2
  188. package/dist/components/p-e31b6c28.js.map +1 -0
  189. package/dist/components/{p-86b95c83.js → p-eb1f4328.js} +2 -2
  190. package/dist/components/p-eb1f4328.js.map +1 -0
  191. package/dist/components/p-ecc51430.js.map +1 -1
  192. package/dist/components/{p-3cd7a20f.js → p-f09b7364.js} +2 -2
  193. package/dist/components/{p-3cd7a20f.js.map → p-f09b7364.js.map} +1 -1
  194. package/dist/components/pedido-finalizado.js +3 -3
  195. package/dist/components/pedido-finalizado.js.map +1 -1
  196. package/dist/components/phone-cancel-input.js +3 -3
  197. package/dist/components/phone-cancel-input.js.map +1 -1
  198. package/dist/components/phone-form.js +1 -1
  199. package/dist/components/phone-input-mask.js +1 -1
  200. package/dist/components/phone-input.js +3 -3
  201. package/dist/components/phone-input.js.map +1 -1
  202. package/dist/components/pin-form.js +1 -1
  203. package/dist/crmbonus-component-wake/assets/logo.svg +17 -17
  204. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
  205. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  206. package/dist/crmbonus-component-wake/{p-a428d5df.js → p-142e8246.js} +2 -2
  207. package/dist/crmbonus-component-wake/p-142e8246.js.map +1 -0
  208. package/dist/crmbonus-component-wake/p-1b441909.js.map +1 -1
  209. package/dist/crmbonus-component-wake/p-1bc79b08.js +2 -0
  210. package/dist/crmbonus-component-wake/p-1bc79b08.js.map +1 -0
  211. package/dist/crmbonus-component-wake/p-2bd29eae.entry.js +2 -0
  212. package/dist/crmbonus-component-wake/p-2bd29eae.entry.js.map +1 -0
  213. package/dist/crmbonus-component-wake/{p-0a40bcba.entry.js → p-39abc114.entry.js} +2 -2
  214. package/dist/crmbonus-component-wake/p-39abc114.entry.js.map +1 -0
  215. package/dist/crmbonus-component-wake/p-427c86db.entry.js +2 -0
  216. package/dist/crmbonus-component-wake/p-427c86db.entry.js.map +1 -0
  217. package/dist/crmbonus-component-wake/p-568072fe.entry.js +2 -0
  218. package/dist/crmbonus-component-wake/p-568072fe.entry.js.map +1 -0
  219. package/dist/crmbonus-component-wake/p-6d5bd437.entry.js +2 -0
  220. package/dist/crmbonus-component-wake/p-6d5bd437.entry.js.map +1 -0
  221. package/dist/crmbonus-component-wake/p-74335744.entry.js +2 -0
  222. package/dist/crmbonus-component-wake/p-74335744.entry.js.map +1 -0
  223. package/dist/crmbonus-component-wake/p-7a92a786.js +2 -0
  224. package/dist/crmbonus-component-wake/p-7a92a786.js.map +1 -0
  225. package/dist/crmbonus-component-wake/p-7beb0b90.entry.js +2 -0
  226. package/dist/crmbonus-component-wake/p-7beb0b90.entry.js.map +1 -0
  227. package/dist/crmbonus-component-wake/p-7ee5c218.entry.js +2 -0
  228. package/dist/crmbonus-component-wake/p-7ee5c218.entry.js.map +1 -0
  229. package/dist/crmbonus-component-wake/p-85d2747a.entry.js +2 -0
  230. package/dist/crmbonus-component-wake/p-85d2747a.entry.js.map +1 -0
  231. package/dist/crmbonus-component-wake/p-8c4ae16d.entry.js +2 -0
  232. package/dist/crmbonus-component-wake/p-8c4ae16d.entry.js.map +1 -0
  233. package/dist/crmbonus-component-wake/{p-77d8e96c.entry.js → p-9a32f685.entry.js} +2 -2
  234. package/dist/crmbonus-component-wake/p-9a32f685.entry.js.map +1 -0
  235. package/dist/crmbonus-component-wake/p-a7f6ff4a.entry.js +2 -0
  236. package/dist/crmbonus-component-wake/p-a7f6ff4a.entry.js.map +1 -0
  237. package/dist/crmbonus-component-wake/p-af3ba015.js.map +1 -1
  238. package/dist/crmbonus-component-wake/{p-154b5318.entry.js → p-b5e9a5ea.entry.js} +2 -2
  239. package/dist/crmbonus-component-wake/p-b5e9a5ea.entry.js.map +1 -0
  240. package/dist/crmbonus-component-wake/{p-bcb65b4e.entry.js → p-b9baad26.entry.js} +2 -2
  241. package/dist/crmbonus-component-wake/p-b9baad26.entry.js.map +1 -0
  242. package/dist/crmbonus-component-wake/p-c53241bf.js.map +1 -1
  243. package/dist/crmbonus-component-wake/p-d2e98cc5.entry.js +2 -0
  244. package/dist/crmbonus-component-wake/p-d2e98cc5.entry.js.map +1 -0
  245. package/dist/crmbonus-component-wake/p-e5d8700b.entry.js +2 -0
  246. package/dist/crmbonus-component-wake/p-e5d8700b.entry.js.map +1 -0
  247. package/dist/crmbonus-component-wake/p-ecc51430.js.map +1 -1
  248. package/dist/env.js +1 -1
  249. package/dist/env.js.map +1 -1
  250. package/dist/esm/app-modal.entry.js +1 -1
  251. package/dist/esm/app-modal.entry.js.map +1 -1
  252. package/dist/esm/build.payload.helper-96f9c8b8.js +47 -0
  253. package/dist/esm/build.payload.helper-96f9c8b8.js.map +1 -0
  254. package/dist/{components/p-9ca28ea7.js → esm/cart.helper-107db11e.js} +4 -2
  255. package/dist/esm/cart.helper-107db11e.js.map +1 -0
  256. package/dist/esm/countdown-timer-v2.entry.js +1 -1
  257. package/dist/esm/countdown-timer-v2.entry.js.map +1 -1
  258. package/dist/esm/{countdown-timer.entry.js → countdown-timer_2.entry.js} +19 -3
  259. package/dist/esm/countdown-timer_2.entry.js.map +1 -0
  260. package/dist/esm/crm-bonus-form.entry.js +2 -2
  261. package/dist/esm/crm-bonus-form.entry.js.map +1 -1
  262. package/dist/esm/crm-bonus-note.entry.js +64 -15
  263. package/dist/esm/crm-bonus-note.entry.js.map +1 -1
  264. package/dist/esm/crm-bonus-tray.entry.js +1 -1
  265. package/dist/esm/crm-bonus-tray.entry.js.map +1 -1
  266. package/dist/esm/crm-bonus.entry.js +29 -36
  267. package/dist/esm/crm-bonus.entry.js.map +1 -1
  268. package/dist/esm/{crm-giftback-form_2.entry.js → crm-giftback-form.entry.js} +44 -37
  269. package/dist/esm/crm-giftback-form.entry.js.map +1 -0
  270. package/dist/esm/crm-tooltip_4.entry.js +11 -11
  271. package/dist/esm/crm-tooltip_4.entry.js.map +1 -1
  272. package/dist/esm/crmbonus-component-wake.js +1 -1
  273. package/dist/esm/{crmbonus.service-0bd0a5ac.js → crmbonus.service-652502f6.js} +17 -12
  274. package/dist/esm/crmbonus.service-652502f6.js.map +1 -0
  275. package/dist/esm/giftback-finish_4.entry.js +4 -4
  276. package/dist/esm/giftback-finish_4.entry.js.map +1 -1
  277. package/dist/esm/i18n-b9d8b0cc.js.map +1 -1
  278. package/dist/esm/index-dc3ebdf0.js.map +1 -1
  279. package/dist/esm/info.config.helper-7cad7a9c.js.map +1 -1
  280. package/dist/esm/loader.js +1 -1
  281. package/dist/esm/loading-container.entry.js +19 -0
  282. package/dist/esm/loading-container.entry.js.map +1 -0
  283. package/dist/esm/loading-spinner.entry.js +1 -1
  284. package/dist/esm/loading-spinner.entry.js.map +1 -1
  285. package/dist/esm/pedido-finalizado.entry.js +3 -3
  286. package/dist/esm/pedido-finalizado.entry.js.map +1 -1
  287. package/dist/esm/phone-cancel-input.entry.js +1 -1
  288. package/dist/esm/phone-cancel-input.entry.js.map +1 -1
  289. package/dist/esm/phone-input-mask.entry.js +1 -1
  290. package/dist/esm/phone-input-mask.entry.js.map +1 -1
  291. package/dist/esm/phone-input.entry.js +1 -1
  292. package/dist/esm/phone-input.entry.js.map +1 -1
  293. package/dist/esm/utils-dec6df66.js.map +1 -1
  294. package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +2 -0
  295. package/dist/types/components/crm-bonus/crm-bonus.d.ts +2 -0
  296. package/dist/types/components/giftback-form/giftback-form.d.ts +1 -0
  297. package/dist/types/components/note/crm-bonus-note.d.ts +8 -1
  298. package/dist/types/components.d.ts +2 -0
  299. package/dist/types/dto/reserved-info.dto.d.ts +3 -0
  300. package/dist/types/dto/validate.pin.bonus.d.ts +4 -1
  301. package/package.json +58 -58
  302. package/readme.md +114 -114
  303. package/dist/cjs/cart.helper-0a401d80.js.map +0 -1
  304. package/dist/cjs/countdown-timer.cjs.entry.js.map +0 -1
  305. package/dist/cjs/crm-button.cjs.entry.js +0 -25
  306. package/dist/cjs/crm-button.cjs.entry.js.map +0 -1
  307. package/dist/cjs/crm-giftback-form_2.cjs.entry.js.map +0 -1
  308. package/dist/cjs/crmbonus.service-7a4f6786.js.map +0 -1
  309. package/dist/components/p-39cc3ce4.js.map +0 -1
  310. package/dist/components/p-4ac2b98e.js.map +0 -1
  311. package/dist/components/p-5a7b0549.js.map +0 -1
  312. package/dist/components/p-63ca9208.js.map +0 -1
  313. package/dist/components/p-86b95c83.js.map +0 -1
  314. package/dist/components/p-9ca28ea7.js.map +0 -1
  315. package/dist/components/p-a428d5df.js.map +0 -1
  316. package/dist/components/p-a70a82a3.js.map +0 -1
  317. package/dist/components/p-c4788672.js.map +0 -1
  318. package/dist/components/p-cd108989.js.map +0 -1
  319. package/dist/components/p-d8bd654a.js.map +0 -1
  320. package/dist/components/p-dc1871cf.js.map +0 -1
  321. package/dist/components/p-e25a1b64.js.map +0 -1
  322. package/dist/components/p-e81cd527.js.map +0 -1
  323. package/dist/components/p-ec317fb9.js.map +0 -1
  324. package/dist/crmbonus-component-wake/p-0055876c.entry.js +0 -2
  325. package/dist/crmbonus-component-wake/p-0055876c.entry.js.map +0 -1
  326. package/dist/crmbonus-component-wake/p-0a40bcba.entry.js.map +0 -1
  327. package/dist/crmbonus-component-wake/p-154b5318.entry.js.map +0 -1
  328. package/dist/crmbonus-component-wake/p-1b0969ff.entry.js +0 -2
  329. package/dist/crmbonus-component-wake/p-1b0969ff.entry.js.map +0 -1
  330. package/dist/crmbonus-component-wake/p-35b95848.entry.js +0 -2
  331. package/dist/crmbonus-component-wake/p-35b95848.entry.js.map +0 -1
  332. package/dist/crmbonus-component-wake/p-4792c140.entry.js +0 -2
  333. package/dist/crmbonus-component-wake/p-4792c140.entry.js.map +0 -1
  334. package/dist/crmbonus-component-wake/p-53b6a7e8.entry.js +0 -2
  335. package/dist/crmbonus-component-wake/p-53b6a7e8.entry.js.map +0 -1
  336. package/dist/crmbonus-component-wake/p-5aa35e0f.entry.js +0 -2
  337. package/dist/crmbonus-component-wake/p-5aa35e0f.entry.js.map +0 -1
  338. package/dist/crmbonus-component-wake/p-77d8e96c.entry.js.map +0 -1
  339. package/dist/crmbonus-component-wake/p-81ec64ff.entry.js +0 -2
  340. package/dist/crmbonus-component-wake/p-81ec64ff.entry.js.map +0 -1
  341. package/dist/crmbonus-component-wake/p-8e2d6659.entry.js +0 -2
  342. package/dist/crmbonus-component-wake/p-8e2d6659.entry.js.map +0 -1
  343. package/dist/crmbonus-component-wake/p-9ca28ea7.js +0 -2
  344. package/dist/crmbonus-component-wake/p-9ca28ea7.js.map +0 -1
  345. package/dist/crmbonus-component-wake/p-a428d5df.js.map +0 -1
  346. package/dist/crmbonus-component-wake/p-b2941d60.entry.js +0 -2
  347. package/dist/crmbonus-component-wake/p-b2941d60.entry.js.map +0 -1
  348. package/dist/crmbonus-component-wake/p-bcb65b4e.entry.js.map +0 -1
  349. package/dist/crmbonus-component-wake/p-cc754208.entry.js +0 -2
  350. package/dist/crmbonus-component-wake/p-cc754208.entry.js.map +0 -1
  351. package/dist/crmbonus-component-wake/p-e4aae2ed.entry.js +0 -2
  352. package/dist/crmbonus-component-wake/p-e4aae2ed.entry.js.map +0 -1
  353. package/dist/crmbonus-component-wake/p-ed22d88f.entry.js +0 -2
  354. package/dist/crmbonus-component-wake/p-ed22d88f.entry.js.map +0 -1
  355. package/dist/esm/cart.helper-c6fd0b36.js.map +0 -1
  356. package/dist/esm/countdown-timer.entry.js.map +0 -1
  357. package/dist/esm/crm-button.entry.js +0 -21
  358. package/dist/esm/crm-button.entry.js.map +0 -1
  359. package/dist/esm/crm-giftback-form_2.entry.js.map +0 -1
  360. package/dist/esm/crmbonus.service-0bd0a5ac.js.map +0 -1
  361. package/dist/types/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +0 -2
@@ -1,7 +1,7 @@
1
1
  import { p as proxyCustomElement, H, h, d as Host } from './p-9d950d25.js';
2
- import { d as defineCustomElement$3 } from './p-39cc3ce4.js';
3
- import { d as defineCustomElement$2 } from './p-e25a1b64.js';
4
- import { d as defineCustomElement$1 } from './p-5a7b0549.js';
2
+ import { d as defineCustomElement$3 } from './p-b86c93cc.js';
3
+ import { d as defineCustomElement$2 } from './p-e31b6c28.js';
4
+ import { d as defineCustomElement$1 } from './p-e068510c.js';
5
5
 
6
6
  const giftbackFormCss = "*{margin:0;padding:0;box-sizing:border-box}:host{--crmfont-sizebodymd:14px;--crmline-heightbodymd:20px;--crmletter-spacingtitle-md:0px}.container-message{font-weight:400;line-height:var(--crmline-heightbodymd);letter-spacing:var(--crmletter-spacingtitle-md);text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.crm-container-form{display:flex;flex-direction:column;justify-content:space-around;height:auto;padding:20px 24px 20px 24px;border:1px solid #CCCC;writing-mode:horizontal-tb;gap:16px;border-top:1px solid #ccc !important;border-bottom:1px solid #ccc !important}.crm-phone-form{display:flex;flex-direction:column;height:100%;gap:16px}.crm-subtitle{font-size:.875rem;line-height:1.25rem}.crm-title{font-weight:700;line-height:20px;color:#262626;}.crm-message-info{color:#619013;font-weight:500;}.crm-message-error{color:#E11D48;font-weight:500;}";
7
7
  const PhoneFormStyle0 = giftbackFormCss;
@@ -21,7 +21,7 @@ const PhoneForm = /*@__PURE__*/ proxyCustomElement(class PhoneForm extends H {
21
21
  }
22
22
  render() {
23
23
  var _a;
24
- return (h(Host, { key: '05b900838ae89b5ad7f3cc52aca24253636c19ef', class: "crm-phone-form" }, h("p", { key: '03779c38d3762c0d3a6b1f810086a5ece9b69614', class: "crm-subtitle" }, "Digite o seu celular para verificar se h\u00E1 desconto dispon\u00EDvel nessa compra:"), h("phone-input-mask", { key: 'a3e1ec8445208627d6eb977dcf3fda068e3f7e1c', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("crm-button", { key: '9148871287f30ff91aac845428f564ad79118bd7', txtBtn: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.btnApplyBonusLabel) || "Avançar", loading: this.loading, handleClick: () => this.handlePhone() })));
24
+ return (h(Host, { key: '5f92b6c62da3cdf6de3c302488d81876fa52de1d', class: "crm-phone-form" }, h("p", { key: 'd5ea282e1945c55fb7212e7842e34aeab526248e', class: "crm-subtitle" }, "Digite o seu celular para verificar se h\u00E1 desconto dispon\u00EDvel nessa compra:"), h("phone-input-mask", { key: '9584729c3396af7f3e70ef375174bfd33b9779d8', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("crm-button", { key: '7cea0bc45f4e7967b8a0404a51d960ebd00334b9', txtBtn: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.btnApplyBonusLabel) || "Avançar", loading: this.loading, handleClick: () => this.handlePhone() })));
25
25
  }
26
26
  static get style() { return PhoneFormStyle0; }
27
27
  }, [0, "phone-form", {
@@ -62,4 +62,4 @@ defineCustomElement();
62
62
 
63
63
  export { PhoneForm as P, defineCustomElement as d };
64
64
 
65
- //# sourceMappingURL=p-63ca9208.js.map
65
+ //# sourceMappingURL=p-0a33e90f.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-0a33e90f.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,k3BAAk3B,CAAC;AAC34B,wBAAe,eAAe;;MCOjB,SAAS;;;;;;;;;IAWlB,MAAM,WAAW;QAEb,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAA;QAElD,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KACnC;IAGD,MAAM;;QACF,QACI,EAAC,IAAI,qDAAC,KAAK,EAAC,gBAAgB,IACxB,0DAAG,KAAK,EAAC,cAAc,4FAAiF,EACxG,yEAAkB,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,GAAG,GAAG,GAAI,EAErF,mEAAY,MAAM,EAAE,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,kBAAkB,KAAI,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,GAAK,CAChI,EACV;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/giftback-form/giftback-form.css?tag=phone-form","src/components/giftback-form/subcomponents/phone-form/phone-form.tsx"],"sourcesContent":["* {\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\n:host {\r\n --crmfont-sizebodymd: 14px;\r\n --crmline-heightbodymd: 20px;\r\n --crmletter-spacingtitle-md: 0px\r\n}\r\n\r\n.container-message {\r\n /* font-size: var(--crmfont-sizebodymd); */\r\n font-weight: 400;\r\n line-height: var(--crmline-heightbodymd);\r\n letter-spacing: var(--crmletter-spacingtitle-md);\r\n text-align: left;\r\n text-underline-position: from-font;\r\n text-decoration-skip-ink: none;\r\n}\r\n\r\n.crm-container-form {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: space-around;\r\n height: auto;\r\n padding: 20px 24px 20px 24px;\r\n border: 1px solid #CCCC;\r\n writing-mode: horizontal-tb;\r\n gap: 16px;\r\n border-top: 1px solid #ccc !important;\r\n border-bottom: 1px solid #ccc !important;\r\n}\r\n\r\n/* .fbits-responsive-carrinho-desconto {\r\n overflow: hidden;\r\n border: 1px solid #ccc;\r\n border-top: 0;\r\n border-bottom: 0;\r\n} */\r\n\r\n.crm-phone-form {\r\n display: flex;\r\n flex-direction: column;\r\n height: 100%;\r\n /* justify-content: space-around; */\r\n gap: 16px;\r\n}\r\n\r\n.crm-subtitle {\r\n /* font-size: 14px; */\r\n font-size: .875rem;\r\n line-height: 1.25rem;\r\n \r\n}\r\n\r\n.crm-title {\r\n font-weight: 700;\r\n line-height: 20px;\r\n color: #262626;\r\n /* font-size: 16px; */\r\n}\r\n\r\n.crm-message-info {\r\n color: #619013;\r\n font-weight: 500;\r\n /* font-size: 12px; */\r\n}\r\n\r\n.crm-message-error {\r\n color: #E11D48;\r\n font-weight: 500;\r\n /* font-size: 12px; */\r\n}","import { Component, Host, Prop, h } from \"@stencil/core\";\r\nimport { IInfoStore } from \"../../../../helpers/info.config.helper\";\r\n\r\n@Component({\r\n tag: 'phone-form',\r\n styleUrl: '../../giftback-form.css',\r\n shadow: false\r\n})\r\nexport class PhoneForm {\r\n\r\n private phoneInputMask: HTMLPhoneInputMaskElement;\r\n\r\n @Prop() value: string;\r\n @Prop() loading: boolean;\r\n @Prop() handlerSubmit: (phone: string) => void;\r\n\r\n @Prop() config: IInfoStore;\r\n\r\n\r\n async handlePhone() {\r\n\r\n const phone = await this.phoneInputMask.getPhone()\r\n\r\n await this.handlerSubmit(phone);\r\n }\r\n\r\n\r\n render() {\r\n return (\r\n <Host class=\"crm-phone-form\">\r\n <p class=\"crm-subtitle\" >Digite o seu celular para verificar se há desconto disponível nessa compra:</p>\r\n <phone-input-mask initialValue={this.value} ref={ref => this.phoneInputMask = ref} />\r\n\r\n <crm-button txtBtn={this.config?.btnApplyBonusLabel || \"Avançar\"} loading={this.loading} handleClick={() => this.handlePhone() } />\r\n </Host>\r\n )\r\n }\r\n}"],"version":3}
@@ -3749,7 +3749,7 @@ axios.default = axios;
3749
3749
  // this module should only have a default export
3750
3750
  const axios$1 = axios;
3751
3751
 
3752
- const CRM_BONUS_API_URL = "https://wake.crmbonus.com/api"; //"http://localhost:4000/api";// "https://wake-middleware.crmbonus.com/api"; //"https://wake-middleware.crmbonus.com/api";// "https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
3752
+ const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api"; //"http://localhost:4000/api";// "https://wake-middleware.crmbonus.com/api"; //"https://wake-middleware.crmbonus.com/api";// "https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
3753
3753
  const CHECKOUT_CART_WAKE = "http://localhost:3001";
3754
3754
 
3755
3755
  const getKeyReserveByCartId = (cartId) => {
@@ -3779,14 +3779,16 @@ class CrmBonusService {
3779
3779
  return this._instance;
3780
3780
  }
3781
3781
  async getCustomer(userId, store) {
3782
- var _a, _b;
3782
+ var _a, _b, _c;
3783
+ const token = localStorage.getItem("@BYCODERS_KEY");
3783
3784
  const headers = {
3784
3785
  'Content-Type': 'application/json',
3785
- 'Authorization': `Bearer ${this.token}`
3786
+ 'Authorization': `Bearer ${token}`
3786
3787
  };
3787
3788
  const response = await this.axiosInstance.get(`/store/${store}/customer/${userId}`, { headers: headers });
3788
3789
  this.token = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.token;
3789
- return (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.customer;
3790
+ localStorage.setItem("@BYCODERS_KEY", (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.token);
3791
+ return (_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.customer;
3790
3792
  }
3791
3793
  async updateOrder(updateOrderDTO) {
3792
3794
  const token = localStorage.getItem("@BYCODERS_KEY");
@@ -3803,9 +3805,10 @@ class CrmBonusService {
3803
3805
  localStorage.removeItem(getKeyReserveByCartId(updateOrderDTO.cartId));
3804
3806
  }
3805
3807
  async sendPin(phone, name, store) {
3808
+ const token = localStorage.getItem(BYCODERS_KEY);
3806
3809
  const headers = {
3807
3810
  'Content-Type': 'application/json',
3808
- 'Authorization': `Bearer ${this.token}`
3811
+ 'Authorization': `Bearer ${token}`
3809
3812
  };
3810
3813
  const response = await this.axiosInstance.post("/crmbonus/send-pin", { cellphone: phone, name: name, storeName: store }, { headers: headers });
3811
3814
  return {
@@ -3814,9 +3817,10 @@ class CrmBonusService {
3814
3817
  };
3815
3818
  }
3816
3819
  async validatePinBonus(payload) {
3820
+ const token = localStorage.getItem(BYCODERS_KEY);
3817
3821
  const headers = {
3818
3822
  'Content-Type': 'application/json',
3819
- 'Authorization': `Bearer ${this.token}`
3823
+ 'Authorization': `Bearer ${token}`
3820
3824
  };
3821
3825
  const response = await this.axiosInstance.post("/crmbonus/process-pin-bonus", payload, { headers });
3822
3826
  return response.data;
@@ -3830,9 +3834,10 @@ class CrmBonusService {
3830
3834
  return response.data;
3831
3835
  }
3832
3836
  async cancel(cartId) {
3837
+ const token = localStorage.getItem(BYCODERS_KEY);
3833
3838
  const headers = {
3834
3839
  'Content-Type': 'application/json',
3835
- 'Authorization': `Bearer ${this.token}`
3840
+ 'Authorization': `Bearer ${token}`
3836
3841
  };
3837
3842
  const response = await this.axiosInstance.post("/crmbonus/cancel-apply-bonus", {
3838
3843
  ticket: cartId
@@ -3871,19 +3876,19 @@ class CrmBonusService {
3871
3876
  localStorage.removeItem(USED_KEY);
3872
3877
  }
3873
3878
  async getInfoBonus(cartId, storeName) {
3874
- await this.getToken(storeName);
3879
+ const token = localStorage.getItem(BYCODERS_KEY);
3875
3880
  const headers = {
3876
3881
  'Content-Type': 'application/json',
3877
- 'Authorization': `Bearer ${this.token}`
3882
+ 'Authorization': `Bearer ${token}`
3878
3883
  };
3879
3884
  const response = await this.axiosInstance.get(`/crmbonus/order-info/${storeName}/${cartId}`, { headers });
3880
3885
  return response.data;
3881
3886
  }
3882
3887
  async patchInfoBonus(payload) {
3883
- await this.getToken(payload.storeName);
3888
+ const token = localStorage.getItem(BYCODERS_KEY);
3884
3889
  const headers = {
3885
3890
  'Content-Type': 'application/json',
3886
- 'Authorization': `Bearer ${this.token}`
3891
+ 'Authorization': `Bearer ${token}`
3887
3892
  };
3888
3893
  await this.axiosInstance.patch(`/checkouts/${payload.cartId}`, {
3889
3894
  metadata: payload.metadata
@@ -3898,4 +3903,4 @@ CrmBonusService._instance = null;
3898
3903
 
3899
3904
  export { CrmBonusService as C, USED_KEY as U, CHECKOUT_CART_WAKE as a, getKeyReserveByCartId as g };
3900
3905
 
3901
- //# sourceMappingURL=p-a428d5df.js.map
3906
+ //# sourceMappingURL=p-142e8246.js.map