crmbonus-component-wake 2.0.115 → 2.0.116

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 (372) hide show
  1. package/dist/{esm → crmbonus-component-wake}/app-modal.entry.js +2 -3
  2. package/dist/crmbonus-component-wake/app-modal.entry.js.map +1 -0
  3. package/dist/{components/p-8179aaa5.js → crmbonus-component-wake/cart.helper-2643939f.js} +6 -3
  4. package/dist/crmbonus-component-wake/cart.helper-2643939f.js.map +1 -0
  5. package/dist/{components/p-2b3b8d6b.js → crmbonus-component-wake/countdown-timer.entry.js} +7 -27
  6. package/dist/crmbonus-component-wake/countdown-timer.entry.js.map +1 -0
  7. package/dist/{esm → crmbonus-component-wake}/crm-bonus-form.entry.js +3 -4
  8. package/dist/crmbonus-component-wake/{p-51a4fdbf.entry.js.map → crm-bonus-form.entry.js.map} +1 -1
  9. package/dist/{esm → crmbonus-component-wake}/crm-bonus-note.entry.js +16 -14
  10. package/dist/crmbonus-component-wake/crm-bonus-note.entry.js.map +1 -0
  11. package/dist/{esm → crmbonus-component-wake}/crm-bonus.entry.js +10 -9
  12. package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -0
  13. package/dist/crmbonus-component-wake/crm-button.entry.js +20 -0
  14. package/dist/crmbonus-component-wake/crm-button.entry.js.map +1 -0
  15. package/dist/{esm/crm-giftback-form_2.entry.js → crmbonus-component-wake/crm-giftback-form.entry.js} +6 -21
  16. package/dist/{cjs/crm-giftback-form_2.cjs.entry.js.map → crmbonus-component-wake/crm-giftback-form.entry.js.map} +1 -1
  17. package/dist/{components/p-58b97429.js → crmbonus-component-wake/crm-tooltip.entry.js} +8 -27
  18. package/dist/crmbonus-component-wake/crm-tooltip.entry.js.map +1 -0
  19. package/dist/crmbonus-component-wake/crmbonus-component-wake.css +7 -1
  20. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +48 -1
  21. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  22. package/dist/{esm/crmbonus.service-31fd796c.js → crmbonus-component-wake/crmbonus.service-047b6b01.js} +164 -91
  23. package/dist/crmbonus-component-wake/crmbonus.service-047b6b01.js.map +1 -0
  24. package/dist/{components/p-b79c86a8.js → crmbonus-component-wake/giftback-finish.entry.js} +8 -25
  25. package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +1 -0
  26. package/dist/{components/p-2671d669.js → crmbonus-component-wake/giftback-info.entry.js} +12 -52
  27. package/dist/crmbonus-component-wake/giftback-info.entry.js.map +1 -0
  28. package/dist/{components/p-6186ddcc.js → crmbonus-component-wake/giftback-pin.entry.js} +8 -38
  29. package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +1 -0
  30. package/dist/{components/p-7c744cca.js → crmbonus-component-wake/giftback-progress.entry.js} +8 -37
  31. package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -0
  32. package/dist/{esm/i18n-e8150dff.js → crmbonus-component-wake/i18n-11138a2c.js} +16 -1
  33. package/dist/{esm/i18n-e8150dff.js.map → crmbonus-component-wake/i18n-11138a2c.js.map} +1 -1
  34. package/dist/crmbonus-component-wake/index-d0fd1dc0.js +3039 -0
  35. package/dist/crmbonus-component-wake/index-d0fd1dc0.js.map +1 -0
  36. package/dist/crmbonus-component-wake/index.esm.js +12 -1
  37. package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
  38. package/dist/crmbonus-component-wake/loading-container.entry.js +18 -0
  39. package/dist/crmbonus-component-wake/loading-container.entry.js.map +1 -0
  40. package/dist/{esm → crmbonus-component-wake}/loading-spinner.entry.js +2 -3
  41. package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +1 -0
  42. package/dist/{components/p-246a3e9d.js → crmbonus-component-wake/name-input.entry.js} +8 -37
  43. package/dist/crmbonus-component-wake/name-input.entry.js.map +1 -0
  44. package/dist/{esm → crmbonus-component-wake}/pedido-finalizado.entry.js +7 -5
  45. package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +1 -0
  46. package/dist/{esm → crmbonus-component-wake}/phone-cancel-input.entry.js +1 -1
  47. package/dist/crmbonus-component-wake/phone-cancel-input.entry.js.map +1 -0
  48. package/dist/{components/p-6c546e48.js → crmbonus-component-wake/phone-form.entry.js} +8 -47
  49. package/dist/crmbonus-component-wake/phone-form.entry.js.map +1 -0
  50. package/dist/{esm → crmbonus-component-wake}/phone-input-mask.entry.js +2 -3
  51. package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +1 -0
  52. package/dist/{esm → crmbonus-component-wake}/phone-input.entry.js +1 -1
  53. package/dist/crmbonus-component-wake/phone-input.entry.js.map +1 -0
  54. package/dist/{components/p-83a12a8f.js → crmbonus-component-wake/pin-form.entry.js} +9 -56
  55. package/dist/crmbonus-component-wake/pin-form.entry.js.map +1 -0
  56. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +334 -0
  57. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +1 -0
  58. package/dist/{collection/utils/utils.js → crmbonus-component-wake/utils-96cf9ae0.js} +8 -5
  59. package/dist/crmbonus-component-wake/utils-96cf9ae0.js.map +1 -0
  60. package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
  61. package/dist/types/components/note/crm-bonus-note.d.ts +2 -1
  62. package/dist/types/components/pedido/pedido.d.ts +1 -0
  63. package/dist/types/components.d.ts +6 -0
  64. package/dist/types/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -3
  65. package/package.json +6 -2
  66. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  67. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  68. package/dist/cjs/app-modal.cjs.entry.js +0 -28
  69. package/dist/cjs/app-modal.cjs.entry.js.map +0 -1
  70. package/dist/cjs/cart.helper-6a0021b4.js +0 -49
  71. package/dist/cjs/cart.helper-6a0021b4.js.map +0 -1
  72. package/dist/cjs/countdown-timer_2.cjs.entry.js +0 -63
  73. package/dist/cjs/countdown-timer_2.cjs.entry.js.map +0 -1
  74. package/dist/cjs/crm-bonus-form.cjs.entry.js +0 -104
  75. package/dist/cjs/crm-bonus-form.cjs.entry.js.map +0 -1
  76. package/dist/cjs/crm-bonus-note.cjs.entry.js +0 -100
  77. package/dist/cjs/crm-bonus-note.cjs.entry.js.map +0 -1
  78. package/dist/cjs/crm-bonus.cjs.entry.js +0 -243
  79. package/dist/cjs/crm-bonus.cjs.entry.js.map +0 -1
  80. package/dist/cjs/crm-giftback-form_2.cjs.entry.js +0 -253
  81. package/dist/cjs/crm-tooltip_4.cjs.entry.js +0 -211
  82. package/dist/cjs/crm-tooltip_4.cjs.entry.js.map +0 -1
  83. package/dist/cjs/crmbonus-component-wake.cjs.js +0 -27
  84. package/dist/cjs/crmbonus-component-wake.cjs.js.map +0 -1
  85. package/dist/cjs/crmbonus.service-a4a07c28.js +0 -3875
  86. package/dist/cjs/crmbonus.service-a4a07c28.js.map +0 -1
  87. package/dist/cjs/giftback-finish_4.cjs.entry.js +0 -131
  88. package/dist/cjs/giftback-finish_4.cjs.entry.js.map +0 -1
  89. package/dist/cjs/i18n-f2a6f60e.js +0 -2219
  90. package/dist/cjs/i18n-f2a6f60e.js.map +0 -1
  91. package/dist/cjs/index-6054ed44.js +0 -21
  92. package/dist/cjs/index-6054ed44.js.map +0 -1
  93. package/dist/cjs/index-d11684bd.js +0 -1599
  94. package/dist/cjs/index-d11684bd.js.map +0 -1
  95. package/dist/cjs/index.cjs.js +0 -11
  96. package/dist/cjs/index.cjs.js.map +0 -1
  97. package/dist/cjs/info.config.helper-c5d9f781.js +0 -16
  98. package/dist/cjs/info.config.helper-c5d9f781.js.map +0 -1
  99. package/dist/cjs/keys.storage-de7744aa.js +0 -17
  100. package/dist/cjs/keys.storage-de7744aa.js.map +0 -1
  101. package/dist/cjs/loader.cjs.js +0 -17
  102. package/dist/cjs/loader.cjs.js.map +0 -1
  103. package/dist/cjs/loading-spinner.cjs.entry.js +0 -24
  104. package/dist/cjs/loading-spinner.cjs.entry.js.map +0 -1
  105. package/dist/cjs/pedido-finalizado.cjs.entry.js +0 -37
  106. package/dist/cjs/pedido-finalizado.cjs.entry.js.map +0 -1
  107. package/dist/cjs/phone-cancel-input.cjs.entry.js +0 -25
  108. package/dist/cjs/phone-cancel-input.cjs.entry.js.map +0 -1
  109. package/dist/cjs/phone-input-mask.cjs.entry.js +0 -61
  110. package/dist/cjs/phone-input-mask.cjs.entry.js.map +0 -1
  111. package/dist/cjs/phone-input.cjs.entry.js +0 -25
  112. package/dist/cjs/phone-input.cjs.entry.js.map +0 -1
  113. package/dist/cjs/utils-e9413ee3.js +0 -25
  114. package/dist/cjs/utils-e9413ee3.js.map +0 -1
  115. package/dist/collection/assets/svg/info-circle-svgrepo-com.svg +0 -6
  116. package/dist/collection/assets/svg/money-dollars-svgrepo-com.svg +0 -6
  117. package/dist/collection/collection-manifest.json +0 -32
  118. package/dist/collection/components/button/crm-button.css +0 -22
  119. package/dist/collection/components/button/index.js +0 -76
  120. package/dist/collection/components/button/index.js.map +0 -1
  121. package/dist/collection/components/countdown-timer/countdown-timer.js +0 -81
  122. package/dist/collection/components/countdown-timer/countdown-timer.js.map +0 -1
  123. package/dist/collection/components/crm-bonus/assets/logo.svg +0 -18
  124. package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +0 -8
  125. package/dist/collection/components/crm-bonus/assets/svg/logo.svg +0 -18
  126. package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +0 -8
  127. package/dist/collection/components/crm-bonus/crm-bonus.css +0 -84
  128. package/dist/collection/components/crm-bonus/crm-bonus.js +0 -267
  129. package/dist/collection/components/crm-bonus/crm-bonus.js.map +0 -1
  130. package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +0 -19
  131. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +0 -348
  132. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +0 -1
  133. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +0 -10
  134. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +0 -20
  135. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +0 -1
  136. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +0 -70
  137. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +0 -126
  138. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +0 -1
  139. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +0 -110
  140. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +0 -127
  141. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +0 -1
  142. package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.css +0 -108
  143. package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js +0 -110
  144. package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js.map +0 -1
  145. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +0 -75
  146. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +0 -1
  147. package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +0 -75
  148. package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +0 -1
  149. package/dist/collection/components/giftback-form/giftback-form.css +0 -75
  150. package/dist/collection/components/giftback-form/giftback-form.js +0 -410
  151. package/dist/collection/components/giftback-form/giftback-form.js.map +0 -1
  152. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +0 -181
  153. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +0 -221
  154. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +0 -1
  155. package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js +0 -11
  156. package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +0 -1
  157. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +0 -103
  158. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js.map +0 -1
  159. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +0 -84
  160. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +0 -197
  161. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +0 -1
  162. package/dist/collection/components/loading-container/loading-container.css +0 -47
  163. package/dist/collection/components/loading-container/loading-container.js +0 -43
  164. package/dist/collection/components/loading-container/loading-container.js.map +0 -1
  165. package/dist/collection/components/loading-spinner/loading-spinner.css +0 -17
  166. package/dist/collection/components/loading-spinner/loading-spinner.js +0 -63
  167. package/dist/collection/components/loading-spinner/loading-spinner.js.map +0 -1
  168. package/dist/collection/components/modal/app-modal.css +0 -45
  169. package/dist/collection/components/modal/app-modal.js +0 -83
  170. package/dist/collection/components/modal/app-modal.js.map +0 -1
  171. package/dist/collection/components/note/crm-bonus-note.css +0 -71
  172. package/dist/collection/components/note/crm-bonus-note.js +0 -94
  173. package/dist/collection/components/note/crm-bonus-note.js.map +0 -1
  174. package/dist/collection/components/pedido/pedido.js +0 -26
  175. package/dist/collection/components/pedido/pedido.js.map +0 -1
  176. package/dist/collection/components/phone/phone-input-mask.css +0 -40
  177. package/dist/collection/components/phone/phone-input-mask.js +0 -125
  178. package/dist/collection/components/phone/phone-input-mask.js.map +0 -1
  179. package/dist/collection/components/tooltip/crm-tooltip.css +0 -49
  180. package/dist/collection/components/tooltip/tooltip.js +0 -61
  181. package/dist/collection/components/tooltip/tooltip.js.map +0 -1
  182. package/dist/collection/contants/index.js +0 -16
  183. package/dist/collection/contants/index.js.map +0 -1
  184. package/dist/collection/contants/mocks.js +0 -28
  185. package/dist/collection/contants/mocks.js.map +0 -1
  186. package/dist/collection/dto/pin.sent.js +0 -2
  187. package/dist/collection/dto/pin.sent.js.map +0 -1
  188. package/dist/collection/dto/update.order.dto.js +0 -2
  189. package/dist/collection/dto/update.order.dto.js.map +0 -1
  190. package/dist/collection/dto/validate.pin.bonus.js +0 -5
  191. package/dist/collection/dto/validate.pin.bonus.js.map +0 -1
  192. package/dist/collection/helpers/build.payload.helper.js +0 -25
  193. package/dist/collection/helpers/build.payload.helper.js.map +0 -1
  194. package/dist/collection/helpers/cart.helper.js +0 -20
  195. package/dist/collection/helpers/cart.helper.js.map +0 -1
  196. package/dist/collection/helpers/info.config.helper.js +0 -11
  197. package/dist/collection/helpers/info.config.helper.js.map +0 -1
  198. package/dist/collection/helpers/time.helper.js +0 -12
  199. package/dist/collection/helpers/time.helper.js.map +0 -1
  200. package/dist/collection/i18n/i18n.js +0 -35
  201. package/dist/collection/i18n/i18n.js.map +0 -1
  202. package/dist/collection/index.js +0 -11
  203. package/dist/collection/index.js.map +0 -1
  204. package/dist/collection/objectvalues/cart.wake.js +0 -24
  205. package/dist/collection/objectvalues/cart.wake.js.map +0 -1
  206. package/dist/collection/services/crmbonus.service.js +0 -118
  207. package/dist/collection/services/crmbonus.service.js.map +0 -1
  208. package/dist/collection/utils/keys.storage.js +0 -9
  209. package/dist/collection/utils/keys.storage.js.map +0 -1
  210. package/dist/collection/utils/utils.js.map +0 -1
  211. package/dist/components/app-modal.js +0 -46
  212. package/dist/components/app-modal.js.map +0 -1
  213. package/dist/components/countdown-timer.js +0 -8
  214. package/dist/components/countdown-timer.js.map +0 -1
  215. package/dist/components/crm-bonus-form.js +0 -165
  216. package/dist/components/crm-bonus-form.js.map +0 -1
  217. package/dist/components/crm-bonus-note.js +0 -137
  218. package/dist/components/crm-bonus-note.js.map +0 -1
  219. package/dist/components/crm-bonus.js +0 -330
  220. package/dist/components/crm-bonus.js.map +0 -1
  221. package/dist/components/crm-button.js +0 -8
  222. package/dist/components/crm-button.js.map +0 -1
  223. package/dist/components/crm-giftback-form.js +0 -8
  224. package/dist/components/crm-giftback-form.js.map +0 -1
  225. package/dist/components/crm-tooltip.js +0 -8
  226. package/dist/components/crm-tooltip.js.map +0 -1
  227. package/dist/components/giftback-finish.js +0 -8
  228. package/dist/components/giftback-finish.js.map +0 -1
  229. package/dist/components/giftback-info.js +0 -8
  230. package/dist/components/giftback-info.js.map +0 -1
  231. package/dist/components/giftback-pin.js +0 -8
  232. package/dist/components/giftback-pin.js.map +0 -1
  233. package/dist/components/giftback-progress.js +0 -8
  234. package/dist/components/giftback-progress.js.map +0 -1
  235. package/dist/components/index.js +0 -4
  236. package/dist/components/index.js.map +0 -1
  237. package/dist/components/loading-container.js +0 -8
  238. package/dist/components/loading-container.js.map +0 -1
  239. package/dist/components/loading-spinner.js +0 -8
  240. package/dist/components/loading-spinner.js.map +0 -1
  241. package/dist/components/name-input.js +0 -8
  242. package/dist/components/name-input.js.map +0 -1
  243. package/dist/components/p-11085d9b.js +0 -79
  244. package/dist/components/p-11085d9b.js.map +0 -1
  245. package/dist/components/p-246a3e9d.js.map +0 -1
  246. package/dist/components/p-2671d669.js.map +0 -1
  247. package/dist/components/p-2b3b8d6b.js.map +0 -1
  248. package/dist/components/p-3e84f78c.js +0 -1408
  249. package/dist/components/p-3e84f78c.js.map +0 -1
  250. package/dist/components/p-47f9da55.js +0 -46
  251. package/dist/components/p-47f9da55.js.map +0 -1
  252. package/dist/components/p-58b97429.js.map +0 -1
  253. package/dist/components/p-6186ddcc.js.map +0 -1
  254. package/dist/components/p-6c546e48.js.map +0 -1
  255. package/dist/components/p-75ba7b9a.js +0 -14
  256. package/dist/components/p-75ba7b9a.js.map +0 -1
  257. package/dist/components/p-7c744cca.js.map +0 -1
  258. package/dist/components/p-7cfea8fe.js +0 -19
  259. package/dist/components/p-7cfea8fe.js.map +0 -1
  260. package/dist/components/p-7f0cb052.js +0 -316
  261. package/dist/components/p-7f0cb052.js.map +0 -1
  262. package/dist/components/p-8179aaa5.js.map +0 -1
  263. package/dist/components/p-83a12a8f.js.map +0 -1
  264. package/dist/components/p-b79c86a8.js.map +0 -1
  265. package/dist/components/p-ba369e65.js +0 -21
  266. package/dist/components/p-ba369e65.js.map +0 -1
  267. package/dist/components/p-cc1ea33f.js +0 -36
  268. package/dist/components/p-cc1ea33f.js.map +0 -1
  269. package/dist/components/p-e8c19a64.js +0 -2217
  270. package/dist/components/p-e8c19a64.js.map +0 -1
  271. package/dist/components/p-f9aeffc1.js +0 -12
  272. package/dist/components/p-f9aeffc1.js.map +0 -1
  273. package/dist/components/p-fd62879e.js +0 -3873
  274. package/dist/components/p-fd62879e.js.map +0 -1
  275. package/dist/components/p-fe9c3966.js +0 -39
  276. package/dist/components/p-fe9c3966.js.map +0 -1
  277. package/dist/components/pedido-finalizado.js +0 -50
  278. package/dist/components/pedido-finalizado.js.map +0 -1
  279. package/dist/components/phone-cancel-input.js +0 -55
  280. package/dist/components/phone-cancel-input.js.map +0 -1
  281. package/dist/components/phone-form.js +0 -8
  282. package/dist/components/phone-form.js.map +0 -1
  283. package/dist/components/phone-input-mask.js +0 -8
  284. package/dist/components/phone-input-mask.js.map +0 -1
  285. package/dist/components/phone-input.js +0 -55
  286. package/dist/components/phone-input.js.map +0 -1
  287. package/dist/components/pin-form.js +0 -8
  288. package/dist/components/pin-form.js.map +0 -1
  289. package/dist/crmbonus-component-wake/p-03b77c41.entry.js +0 -2
  290. package/dist/crmbonus-component-wake/p-03b77c41.entry.js.map +0 -1
  291. package/dist/crmbonus-component-wake/p-289a892a.entry.js +0 -2
  292. package/dist/crmbonus-component-wake/p-289a892a.entry.js.map +0 -1
  293. package/dist/crmbonus-component-wake/p-3d6152b1.js +0 -3
  294. package/dist/crmbonus-component-wake/p-3d6152b1.js.map +0 -1
  295. package/dist/crmbonus-component-wake/p-4f47b32c.entry.js +0 -2
  296. package/dist/crmbonus-component-wake/p-4f47b32c.entry.js.map +0 -1
  297. package/dist/crmbonus-component-wake/p-51a4fdbf.entry.js +0 -2
  298. package/dist/crmbonus-component-wake/p-620ec1a3.entry.js +0 -2
  299. package/dist/crmbonus-component-wake/p-620ec1a3.entry.js.map +0 -1
  300. package/dist/crmbonus-component-wake/p-74206c91.entry.js +0 -2
  301. package/dist/crmbonus-component-wake/p-74206c91.entry.js.map +0 -1
  302. package/dist/crmbonus-component-wake/p-75ba7b9a.js +0 -2
  303. package/dist/crmbonus-component-wake/p-75ba7b9a.js.map +0 -1
  304. package/dist/crmbonus-component-wake/p-7b7fb354.entry.js +0 -2
  305. package/dist/crmbonus-component-wake/p-7b7fb354.entry.js.map +0 -1
  306. package/dist/crmbonus-component-wake/p-7cfea8fe.js +0 -2
  307. package/dist/crmbonus-component-wake/p-7cfea8fe.js.map +0 -1
  308. package/dist/crmbonus-component-wake/p-8179aaa5.js +0 -2
  309. package/dist/crmbonus-component-wake/p-8179aaa5.js.map +0 -1
  310. package/dist/crmbonus-component-wake/p-885fc30e.entry.js +0 -2
  311. package/dist/crmbonus-component-wake/p-885fc30e.entry.js.map +0 -1
  312. package/dist/crmbonus-component-wake/p-90716188.entry.js +0 -2
  313. package/dist/crmbonus-component-wake/p-90716188.entry.js.map +0 -1
  314. package/dist/crmbonus-component-wake/p-a11e6510.entry.js +0 -2
  315. package/dist/crmbonus-component-wake/p-a11e6510.entry.js.map +0 -1
  316. package/dist/crmbonus-component-wake/p-b7a8f915.entry.js +0 -2
  317. package/dist/crmbonus-component-wake/p-b7a8f915.entry.js.map +0 -1
  318. package/dist/crmbonus-component-wake/p-ba369e65.js +0 -2
  319. package/dist/crmbonus-component-wake/p-ba369e65.js.map +0 -1
  320. package/dist/crmbonus-component-wake/p-be3ddacc.entry.js +0 -2
  321. package/dist/crmbonus-component-wake/p-be3ddacc.entry.js.map +0 -1
  322. package/dist/crmbonus-component-wake/p-e1255160.js +0 -2
  323. package/dist/crmbonus-component-wake/p-e1255160.js.map +0 -1
  324. package/dist/crmbonus-component-wake/p-e85698cd.entry.js +0 -2
  325. package/dist/crmbonus-component-wake/p-e85698cd.entry.js.map +0 -1
  326. package/dist/crmbonus-component-wake/p-e8c19a64.js +0 -2
  327. package/dist/crmbonus-component-wake/p-e8c19a64.js.map +0 -1
  328. package/dist/crmbonus-component-wake/p-f9aeffc1.js +0 -2
  329. package/dist/crmbonus-component-wake/p-f9aeffc1.js.map +0 -1
  330. package/dist/crmbonus-component-wake/p-fd62879e.js +0 -2
  331. package/dist/crmbonus-component-wake/p-fd62879e.js.map +0 -1
  332. package/dist/env.js +0 -5
  333. package/dist/env.js.map +0 -1
  334. package/dist/esm/app-modal.entry.js.map +0 -1
  335. package/dist/esm/cart.helper-dfef7b74.js +0 -47
  336. package/dist/esm/cart.helper-dfef7b74.js.map +0 -1
  337. package/dist/esm/countdown-timer_2.entry.js +0 -58
  338. package/dist/esm/countdown-timer_2.entry.js.map +0 -1
  339. package/dist/esm/crm-bonus-form.entry.js.map +0 -1
  340. package/dist/esm/crm-bonus-note.entry.js.map +0 -1
  341. package/dist/esm/crm-bonus.entry.js.map +0 -1
  342. package/dist/esm/crm-giftback-form_2.entry.js.map +0 -1
  343. package/dist/esm/crm-tooltip_4.entry.js +0 -204
  344. package/dist/esm/crm-tooltip_4.entry.js.map +0 -1
  345. package/dist/esm/crmbonus-component-wake.js +0 -22
  346. package/dist/esm/crmbonus-component-wake.js.map +0 -1
  347. package/dist/esm/crmbonus.service-31fd796c.js.map +0 -1
  348. package/dist/esm/giftback-finish_4.entry.js +0 -124
  349. package/dist/esm/giftback-finish_4.entry.js.map +0 -1
  350. package/dist/esm/index-e8724c8f.js +0 -1571
  351. package/dist/esm/index-e8724c8f.js.map +0 -1
  352. package/dist/esm/index.js +0 -3
  353. package/dist/esm/index.js.map +0 -1
  354. package/dist/esm/loader.js +0 -13
  355. package/dist/esm/loader.js.map +0 -1
  356. package/dist/esm/loading-spinner.entry.js.map +0 -1
  357. package/dist/esm/pedido-finalizado.entry.js.map +0 -1
  358. package/dist/esm/phone-cancel-input.entry.js.map +0 -1
  359. package/dist/esm/phone-input-mask.entry.js.map +0 -1
  360. package/dist/esm/phone-input.entry.js.map +0 -1
  361. package/dist/esm/utils-d642b4db.js +0 -21
  362. package/dist/esm/utils-d642b4db.js.map +0 -1
  363. package/dist/index.cjs.js +0 -1
  364. package/dist/index.js +0 -1
  365. /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js +0 -0
  366. /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js.map +0 -0
  367. /package/dist/{esm → crmbonus-component-wake}/index-5b567099.js +0 -0
  368. /package/dist/{esm → crmbonus-component-wake}/index-5b567099.js.map +0 -0
  369. /package/dist/{esm → crmbonus-component-wake}/info.config.helper-42d9ddf9.js +0 -0
  370. /package/dist/{esm → crmbonus-component-wake}/info.config.helper-42d9ddf9.js.map +0 -0
  371. /package/dist/{esm → crmbonus-component-wake}/keys.storage-8c76fcd7.js +0 -0
  372. /package/dist/{esm → crmbonus-component-wake}/keys.storage-8c76fcd7.js.map +0 -0
@@ -1,267 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { CrmBonusService } from "../../services/crmbonus.service";
3
- import { StepFormEnum } from "../../contants";
4
- import i18next from "../../i18n/i18n";
5
- import { buildProductsByWake } from "../../helpers/build.payload.helper";
6
- import { getCart } from "../../helpers/cart.helper";
7
- export class CrmBonus {
8
- constructor() {
9
- this.crmBonusService = CrmBonusService.getInstance();
10
- this.showModal = false;
11
- this.cartWake = undefined;
12
- this.customer = {
13
- birthDate: "",
14
- document: "",
15
- name: "",
16
- phone: ""
17
- };
18
- this.loading = false;
19
- this.message = undefined;
20
- this.phone = undefined;
21
- this.canCancel = false;
22
- this.amountCancel = undefined;
23
- this.sent = undefined;
24
- this.session = undefined;
25
- this.loading_reprocess = false;
26
- }
27
- async resetBonus() {
28
- console.log('[START RESET BONUS]!!!!!');
29
- try {
30
- await this.crmBonusRef.processBonus(this.buildProducts(), true);
31
- console.log('[BONUS RESETADO]!!!!!');
32
- }
33
- catch (err) {
34
- this.loading = false;
35
- console.log('[error ao reprocessar bonous]');
36
- await this.crmBonusRef.setStep(StepFormEnum.STEP_PHONE);
37
- }
38
- finally {
39
- this.loading = false;
40
- }
41
- }
42
- async reprocess() {
43
- this.loading_reprocess = true;
44
- try {
45
- this.cartWake = await getCart();
46
- console.log('cart', this.cartWake);
47
- await this.resetBonus();
48
- }
49
- catch (err) {
50
- console.debug('[watchProducts]', err.message);
51
- }
52
- finally {
53
- this.loading_reprocess = false;
54
- }
55
- }
56
- // @Watch("productsInString")
57
- // async watchProducts(newValue: string) {
58
- // try {
59
- // console.log('[update products list]');
60
- // this.productsInString = newValue;
61
- // await this.handleLoad();
62
- // await this.resetBonus();
63
- // } catch (err) {
64
- // console.debug('[watchProducts]', err.message);
65
- // }
66
- // }
67
- async componentWillLoad() {
68
- i18next.changeLanguage(i18next.language);
69
- await this.handleLoad();
70
- await this.loadSession();
71
- await this.loadConfigStore();
72
- }
73
- async loadConfigStore() {
74
- await this.crmBonusService.getCustomization(this.cartWake.store.name);
75
- }
76
- async handleLoad() {
77
- try {
78
- this.cartWake = await getCart();
79
- console.log('cart', this.cartWake);
80
- if (this.cartWake.user.id) {
81
- this.customer = await this.crmBonusService.getCustomer(this.cartWake.user.id, this.cartWake.store.name);
82
- console.log('customer', this.customer);
83
- }
84
- const amount = localStorage.getItem(this.cartWake.id);
85
- if (amount) {
86
- this.canCancel = true;
87
- this.amountCancel = amount;
88
- }
89
- await this.buildAndGetProducts(this.cartWake.products);
90
- }
91
- catch (error) {
92
- console.log('info customer');
93
- }
94
- }
95
- async loadSession() {
96
- console.log('this.storeName', this.cartWake.store.name);
97
- this.session = await this.crmBonusService.getToken(this.cartWake.store.name);
98
- setTimeout(() => {
99
- this.loadSession();
100
- }, 1500000);
101
- }
102
- async buildAndGetProducts(productsWake) {
103
- const key = `bc-products:${this.cartWake.id}`;
104
- const productsString = JSON.stringify(productsWake);
105
- localStorage.setItem(key, productsString);
106
- const products_in_cache = JSON.parse(localStorage.getItem(key));
107
- const products = [];
108
- for (const product_cart of productsWake) {
109
- const [pro] = products_in_cache.filter(p => p.ProdutoVarianteId == product_cart.ProdutoVarianteId);
110
- const [ajuste = { Valor: 0 }] = pro.Ajustes.filter(aj => aj.Tipo === "Formula");
111
- if (pro) {
112
- products.push(Object.assign(Object.assign({}, product_cart), { PrecoPor: pro.PrecoPor + (ajuste.Valor * -1), Quantidade: pro.Quantidade, Ajustes: pro.Ajustes }));
113
- }
114
- else {
115
- products.push(product_cart);
116
- }
117
- }
118
- this.cartWake.products = products; //cache_products ? JSON.parse(cache_products) : JSON.parse(this.productsInString);
119
- }
120
- async sendPin(phone) {
121
- var _a, _b;
122
- this.loading = true;
123
- this.message = "";
124
- try {
125
- const _phone = phone.replace(/\D/g, '');
126
- this.phone = Number(_phone);
127
- this.sent = await this.crmBonusService.sendPin(this.phone, this.customer.name, this.cartWake.store.name);
128
- ;
129
- await this.crmBonusRef.setStep(StepFormEnum.STEP_PIN);
130
- this.showModal = true;
131
- }
132
- catch (error) {
133
- this.message = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
134
- }
135
- finally {
136
- this.loading = false;
137
- }
138
- }
139
- async sendPinName(customerName) {
140
- var _a, _b;
141
- this.loading = true;
142
- this.message = "";
143
- try {
144
- this.customer.name = customerName;
145
- this.sent = await this.crmBonusService.sendPin(this.phone, this.customer.name, this.cartWake.store.name);
146
- await this.crmBonusRef.setStep(StepFormEnum.STEP_PIN);
147
- this.showModal = true;
148
- }
149
- catch (error) {
150
- this.message = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
151
- }
152
- finally {
153
- this.loading = false;
154
- }
155
- }
156
- buildProducts() {
157
- return buildProductsByWake(this.cartWake.products);
158
- }
159
- handleCloseModal() {
160
- this.showModal = false;
161
- }
162
- save(amount) {
163
- localStorage.setItem(this.cartWake.id, amount.toString());
164
- this.canCancel = true;
165
- this.amountCancel = amount.toString();
166
- }
167
- async cancel() {
168
- this.message = "";
169
- this.loading = true;
170
- try {
171
- await this.crmBonusService.cancel(this.cartWake.id);
172
- this.canCancel = false;
173
- localStorage.removeItem(this.cartWake.id);
174
- }
175
- catch (error) {
176
- this.message = "Não consegui cancelar o bônus, tente novamente!";
177
- }
178
- finally {
179
- this.loading = false;
180
- }
181
- }
182
- async handleSendPin(phone) {
183
- this.message = "";
184
- if (!phone) {
185
- this.message = "Informe seu telefone";
186
- return;
187
- }
188
- this.customer.phone = phone;
189
- const _phone = phone.replace(/\D/g, '');
190
- this.phone = Number(_phone);
191
- if (this.customer.name) {
192
- return this.sendPin(phone);
193
- }
194
- await this.crmBonusRef.setStep(StepFormEnum.STEP_NAME);
195
- this.showModal = true;
196
- }
197
- render() {
198
- return (h("loading-container", { key: '67b0c86da1b59ec891a48bfcd4d7b0572c322cee', loading: this.loading_reprocess }, h("crm-giftback-form", { key: '59cddeaba1f47ea10aaa20371b33892b9b555304', style: { position: "relative" }, ref: ref => this.crmBonusRef = ref, storeName: this.cartWake.store.name, products: this.buildProducts(), cartId: this.cartWake.id, customer: this.customer, loadProducts: () => this.buildProducts() })));
199
- }
200
- static get is() { return "crm-bonus"; }
201
- static get encapsulation() { return "scoped"; }
202
- static get originalStyleUrls() {
203
- return {
204
- "$": ["crm-bonus.css"]
205
- };
206
- }
207
- static get styleUrls() {
208
- return {
209
- "$": ["crm-bonus.css"]
210
- };
211
- }
212
- static get assetsDirs() { return ["assets"]; }
213
- static get states() {
214
- return {
215
- "showModal": {},
216
- "cartWake": {},
217
- "customer": {},
218
- "loading": {},
219
- "message": {},
220
- "phone": {},
221
- "canCancel": {},
222
- "amountCancel": {},
223
- "sent": {},
224
- "session": {},
225
- "loading_reprocess": {}
226
- };
227
- }
228
- static get methods() {
229
- return {
230
- "resetBonus": {
231
- "complexType": {
232
- "signature": "() => Promise<void>",
233
- "parameters": [],
234
- "references": {
235
- "Promise": {
236
- "location": "global",
237
- "id": "global::Promise"
238
- }
239
- },
240
- "return": "Promise<void>"
241
- },
242
- "docs": {
243
- "text": "",
244
- "tags": []
245
- }
246
- },
247
- "reprocess": {
248
- "complexType": {
249
- "signature": "() => Promise<void>",
250
- "parameters": [],
251
- "references": {
252
- "Promise": {
253
- "location": "global",
254
- "id": "global::Promise"
255
- }
256
- },
257
- "return": "Promise<void>"
258
- },
259
- "docs": {
260
- "text": "",
261
- "tags": []
262
- }
263
- }
264
- };
265
- }
266
- }
267
- //# sourceMappingURL=crm-bonus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crm-bonus.js","sourceRoot":"","sources":["../../../../src/components/crm-bonus/crm-bonus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAQ,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,OAAO,MAAM,iBAAiB,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AASpD,MAAM,OAAO,QAAQ;;QAEX,oBAAe,GAAoB,eAAe,CAAC,WAAW,EAAE,CAAC;yBAI3C,KAAK;;wBAIJ;YAC7B,SAAS,EAAE,EAAE;YACb,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE;YACR,KAAK,EAAE,EAAE;SACV;uBAE2B,KAAK;;;yBAGH,KAAK;;;;iCAKN,KAAK;;IAGlC,KAAK,CAAC,UAAU;QACd,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;QAExC,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,CAAC;YAChE,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACvC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YAEb,IAAI,C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;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Method, Prop, State, h } from '@stencil/core';\nimport { IProduct, IProductWake, ICustomer } from '../../dto/validate.pin.bonus';\nimport { CrmBonusService } from '../../services/crmbonus.service';\nimport { IPinSent } from '../../components';\nimport { StepFormEnum } from '../../contants';\n\nimport i18next from '../../i18n/i18n'\nimport { buildProductsByWake } from '../../helpers/build.payload.helper';\nimport { getCart } from '../../helpers/cart.helper';\nimport { CartWake } from '../../objectvalues/cart.wake';\n\n@Component({\n tag: 'crm-bonus',\n styleUrl: 'crm-bonus.css',\n scoped: true,\n assetsDirs: ['assets']\n})\nexport class CrmBonus {\n\n private crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\n private crmBonusRef: HTMLCrmGiftbackFormElement;\n\n @State() showModal: boolean = false;\n \n @State() cartWake: CartWake;\n \n @State() customer: ICustomer = {\n birthDate: \"\",\n document: \"\",\n name: \"\",\n phone: \"\"\n };\n\n @State() loading: boolean = false;\n @State() message: string;\n @State() phone: number;\n @State() canCancel: boolean = false;\n @State() amountCancel: string;\n @State() sent: IPinSent;\n\n @State() session: string;\n @State() loading_reprocess = false;\n\n @Method()\n async resetBonus() {\n console.log('[START RESET BONUS]!!!!!');\n \n try {\n await this.crmBonusRef.processBonus(this.buildProducts(), true);\n console.log('[BONUS RESETADO]!!!!!');\n } catch (err) {\n\n this.loading = false;\n console.log('[error ao reprocessar bonous]');\n await this.crmBonusRef.setStep(StepFormEnum.STEP_PHONE);\n } finally {\n this.loading = false;\n }\n }\n\n @Method()\n async reprocess() {\n this.loading_reprocess = true\n\n try {\n\n this.cartWake = await getCart();\n\n console.log('cart', this.cartWake)\n\n await this.resetBonus();\n } catch (err) {\n console.debug('[watchProducts]', err.message);\n } finally {\n this.loading_reprocess = false\n }\n }\n\n // @Watch(\"productsInString\")\n // async watchProducts(newValue: string) {\n // try {\n // console.log('[update products list]');\n // this.productsInString = newValue;\n // await this.handleLoad();\n\n // await this.resetBonus();\n // } catch (err) {\n // console.debug('[watchProducts]', err.message);\n // }\n // }\n\n async componentWillLoad() {\n i18next.changeLanguage(i18next.language);\n\n await this.handleLoad();\n\n await this.loadSession();\n await this.loadConfigStore()\n }\n\n async loadConfigStore() {\n await this.crmBonusService.getCustomization(this.cartWake.store.name);\n }\n\n async handleLoad() {\n try {\n\n this.cartWake = await getCart();\n\n console.log('cart', this.cartWake)\n\n if (this.cartWake.user.id) {\n this.customer = await this.crmBonusService.getCustomer(this.cartWake.user.id, this.cartWake.store.name);\n console.log('customer', this.customer);\n }\n\n const amount = localStorage.getItem(this.cartWake.id);\n\n if (amount) {\n this.canCancel = true;\n this.amountCancel = amount;\n }\n\n await this.buildAndGetProducts(this.cartWake.products);\n } catch (error) {\n console.log('info customer')\n }\n }\n\n async loadSession() {\n console.log('this.storeName', this.cartWake.store.name)\n this.session = await this.crmBonusService.getToken(this.cartWake.store.name);\n\n setTimeout(() => {\n this.loadSession()\n }, 1500000)\n\n }\n\n async buildAndGetProducts(productsWake: IProductWake[]) {\n\n const key = `bc-products:${this.cartWake.id}`;\n\n const productsString = JSON.stringify(productsWake)\n\n localStorage.setItem(key, productsString);\n\n const products_in_cache = JSON.parse(localStorage.getItem(key));\n\n const products: Array<IProductWake> = []\n\n for (const product_cart of productsWake) {\n\n const [pro] = products_in_cache.filter(p => p.ProdutoVarianteId == product_cart.ProdutoVarianteId)\n\n const [ajuste = { Valor: 0 }] = pro.Ajustes.filter(aj => aj.Tipo === \"Formula\")\n\n if (pro) {\n products.push({\n ...product_cart,\n PrecoPor: pro.PrecoPor + (ajuste.Valor * -1),\n Quantidade: pro.Quantidade,\n Ajustes: pro.Ajustes\n })\n } else {\n products.push(product_cart)\n }\n\n }\n\n this.cartWake.products = products; //cache_products ? JSON.parse(cache_products) : JSON.parse(this.productsInString);\n\n }\n\n public async sendPin(phone: string) {\n this.loading = true;\n this.message = \"\";\n\n try {\n\n const _phone = phone.replace(/\\D/g, '');\n this.phone = Number(_phone);\n\n this.sent = await this.crmBonusService.sendPin(this.phone, this.customer.name, this.cartWake.store.name);;\n\n await this.crmBonusRef.setStep(StepFormEnum.STEP_PIN);\n\n this.showModal = true;\n } catch (error) {\n this.message = error?.response?.data?.message\n } finally {\n this.loading = false\n }\n }\n\n public async sendPinName(customerName: string) {\n this.loading = true;\n this.message = \"\";\n\n try {\n this.customer.name = customerName;\n\n this.sent = await this.crmBonusService.sendPin(this.phone, this.customer.name, this.cartWake.store.name);\n\n await this.crmBonusRef.setStep(StepFormEnum.STEP_PIN);\n\n this.showModal = true;\n } catch (error) {\n this.message = error?.response?.data?.message\n } finally {\n this.loading = false\n }\n }\n\n buildProducts(): IProduct[] {\n return buildProductsByWake(this.cartWake.products);\n }\n\n handleCloseModal() {\n this.showModal = false;\n }\n\n save(amount: number) {\n localStorage.setItem(this.cartWake.id, amount.toString());\n this.canCancel = true;\n this.amountCancel = amount.toString()\n }\n\n async cancel() {\n this.message = \"\";\n this.loading = true;\n try {\n await this.crmBonusService.cancel(this.cartWake.id);\n this.canCancel = false;\n\n localStorage.removeItem(this.cartWake.id);\n } catch (error) {\n this.message = \"Não consegui cancelar o bônus, tente novamente!\"\n } finally {\n this.loading = false;\n }\n }\n\n async handleSendPin(phone: string) {\n this.message = \"\"\n if (!phone) {\n this.message = \"Informe seu telefone\";\n return;\n }\n\n this.customer.phone = phone;\n const _phone = phone.replace(/\\D/g, '');\n this.phone = Number(_phone);\n\n if (this.customer.name) {\n return this.sendPin(phone)\n }\n\n await this.crmBonusRef.setStep(StepFormEnum.STEP_NAME);\n this.showModal = true;\n }\n\n render() {\n\n return (\n <loading-container loading={this.loading_reprocess} >\n <crm-giftback-form\n style={{ position: \"relative\" }}\n ref={ref => this.crmBonusRef = ref}\n storeName={this.cartWake.store.name}\n products={this.buildProducts()}\n cartId={this.cartWake.id}\n customer={this.customer}\n loadProducts={() => this.buildProducts()}\n\n />\n </loading-container>\n )\n }\n}\n"]}
@@ -1,19 +0,0 @@
1
- .form-container {
2
- width: 100%;
3
- display: flex;
4
- justify-content: center;
5
- justify-content: space-around;
6
- }
7
-
8
- .disabled {
9
- opacity: 0.6;
10
- cursor: not-allowed;
11
- }
12
-
13
- .message-error {
14
- color: #d11111;
15
- font-weight: bold;
16
- font-family: Arial;
17
- font-size: small;
18
- margin-left: 16px;
19
- }
@@ -1,348 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { CrmBonusService } from "../../services/crmbonus.service";
3
- import { StepFormEnum } from "../../contants";
4
- export class CrmBonusForm {
5
- constructor() {
6
- this.crmBonusService = CrmBonusService.getInstance();
7
- this.storeName = undefined;
8
- this.cartId = undefined;
9
- this.products = undefined;
10
- this.customer = {
11
- phone: "",
12
- birthDate: "",
13
- document: "",
14
- name: ""
15
- };
16
- this.sent = undefined;
17
- this.stepNext = undefined;
18
- this.phone = undefined;
19
- this.loadingModal = undefined;
20
- this.saveStore = undefined;
21
- this.cancel = undefined;
22
- this.handleCustomerName = undefined;
23
- this.loading = false;
24
- this.step = StepFormEnum.STEP_NAME;
25
- this.message = undefined;
26
- this.bonus = undefined;
27
- }
28
- async setStep(step) {
29
- this.step = step;
30
- }
31
- async validateBonus(pin) {
32
- var _a, _b;
33
- this.loading = true;
34
- this.message = "";
35
- const payload = {
36
- pin: pin,
37
- cellphone: parseInt(this.phone.toString()),
38
- storeId: this.sent.storeId.toString(),
39
- userId: this.sent.userId.toString(),
40
- checkoutId: this.cartId,
41
- checkoutProducts: this.products,
42
- name: null,
43
- storeName: this.storeName
44
- };
45
- try {
46
- this.bonus = await this.crmBonusService.validatePinBonus(payload);
47
- this.step = StepFormEnum.STEP_RESERVE;
48
- }
49
- catch (error) {
50
- this.message = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
51
- }
52
- finally {
53
- this.loading = false;
54
- }
55
- }
56
- async reserveApply(amount) {
57
- this.loading = true;
58
- this.message = "";
59
- try {
60
- await this.reserve(amount);
61
- this.step = StepFormEnum.STEP_APPLY;
62
- this.saveStore(amount);
63
- }
64
- catch (error) {
65
- this.message = "ocorreu um error ao solicitar a aplicação do bonus! tente novamente";
66
- }
67
- finally {
68
- this.loading = false;
69
- }
70
- }
71
- async reserve(amount) {
72
- await this.crmBonusService.reserve({
73
- redeemedBonus: amount,
74
- cartId: this.cartId,
75
- ticket: this.cartId,
76
- grossValue: Number(this.bonus.totalValue),
77
- storeName: this.storeName,
78
- storeId: this.bonus.storeId.toString(),
79
- userId: this.bonus.userId
80
- });
81
- }
82
- handleCancel() {
83
- this.step = StepFormEnum.STEP_PHONE;
84
- this.cancel();
85
- }
86
- render() {
87
- return (h(Host, { key: '2d736cd603436521bf15f0ef8eaf0670ad9f6a42' }, this.step == StepFormEnum.STEP_NAME && h("name-input", { key: 'bfa12463c1f29bb65814368790f201dcab869dd9', loading: this.loadingModal, value: this.customer.name, applyName: (name) => this.handleCustomerName(name) }), this.step === StepFormEnum.STEP_PIN && h("giftback-pin", { key: '3fdf1c285b5d777289b42fcfbcf80dfc92579f29', cancel: () => this.handleCancel(), sent: this.sent, validate: (data) => this.validateBonus(data), loading: this.loading }), this.step === StepFormEnum.STEP_RESERVE && h("giftback-progress", { key: 'f06df8cab7361a51d1b89b4f0f0a1a8ceb7a7e30', loading: this.loading, cancel: () => this.handleCancel(), bonus: this.bonus, reserve: (amountRedeemed) => this.reserveApply(amountRedeemed) }), this.step === StepFormEnum.STEP_APPLY && h("giftback-finish", { key: 'eaacf1438652b04cfd607e5bac81dffbe4b542bb' }), h("p", { key: 'a2014780bbb5dfb23cf6165500f43c6fcca700d3', class: "message-error" }, this.message)));
88
- }
89
- static get is() { return "crm-bonus-form"; }
90
- static get encapsulation() { return "shadow"; }
91
- static get originalStyleUrls() {
92
- return {
93
- "$": ["crm-bonus-form.css"]
94
- };
95
- }
96
- static get styleUrls() {
97
- return {
98
- "$": ["crm-bonus-form.css"]
99
- };
100
- }
101
- static get properties() {
102
- return {
103
- "storeName": {
104
- "type": "any",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "any",
108
- "resolved": "any",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": ""
116
- },
117
- "attribute": "storename",
118
- "reflect": false
119
- },
120
- "cartId": {
121
- "type": "any",
122
- "mutable": false,
123
- "complexType": {
124
- "original": "any",
125
- "resolved": "any",
126
- "references": {}
127
- },
128
- "required": false,
129
- "optional": false,
130
- "docs": {
131
- "tags": [],
132
- "text": ""
133
- },
134
- "attribute": "cart-id",
135
- "reflect": false
136
- },
137
- "products": {
138
- "type": "unknown",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "Array<IProduct>",
142
- "resolved": "IProduct[]",
143
- "references": {
144
- "Array": {
145
- "location": "global",
146
- "id": "global::Array"
147
- },
148
- "IProduct": {
149
- "location": "import",
150
- "path": "../../dto/validate.pin.bonus",
151
- "id": "src/dto/validate.pin.bonus.ts::IProduct"
152
- }
153
- }
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": ""
160
- }
161
- },
162
- "customer": {
163
- "type": "unknown",
164
- "mutable": false,
165
- "complexType": {
166
- "original": "ICustomer",
167
- "resolved": "ICustomer",
168
- "references": {
169
- "ICustomer": {
170
- "location": "import",
171
- "path": "../../dto/validate.pin.bonus",
172
- "id": "src/dto/validate.pin.bonus.ts::ICustomer"
173
- }
174
- }
175
- },
176
- "required": false,
177
- "optional": false,
178
- "docs": {
179
- "tags": [],
180
- "text": ""
181
- },
182
- "defaultValue": "{\n phone: \"\",\n birthDate: \"\",\n document: \"\",\n name: \"\"\n }"
183
- },
184
- "sent": {
185
- "type": "unknown",
186
- "mutable": false,
187
- "complexType": {
188
- "original": "IPinSent",
189
- "resolved": "IPinSent",
190
- "references": {
191
- "IPinSent": {
192
- "location": "import",
193
- "path": "../../dto/pin.sent",
194
- "id": "src/dto/pin.sent.ts::IPinSent"
195
- }
196
- }
197
- },
198
- "required": false,
199
- "optional": false,
200
- "docs": {
201
- "tags": [],
202
- "text": ""
203
- }
204
- },
205
- "stepNext": {
206
- "type": "number",
207
- "mutable": false,
208
- "complexType": {
209
- "original": "StepFormEnum",
210
- "resolved": "StepFormEnum.STEP_APPLY | StepFormEnum.STEP_NAME | StepFormEnum.STEP_NO_BONUS | StepFormEnum.STEP_PHONE | StepFormEnum.STEP_PIN | StepFormEnum.STEP_RESERVE",
211
- "references": {
212
- "StepFormEnum": {
213
- "location": "import",
214
- "path": "../../contants",
215
- "id": "src/contants/index.ts::StepFormEnum"
216
- }
217
- }
218
- },
219
- "required": false,
220
- "optional": false,
221
- "docs": {
222
- "tags": [],
223
- "text": ""
224
- },
225
- "attribute": "step-next",
226
- "reflect": false
227
- },
228
- "phone": {
229
- "type": "number",
230
- "mutable": false,
231
- "complexType": {
232
- "original": "number",
233
- "resolved": "number",
234
- "references": {}
235
- },
236
- "required": false,
237
- "optional": false,
238
- "docs": {
239
- "tags": [],
240
- "text": ""
241
- },
242
- "attribute": "phone",
243
- "reflect": false
244
- },
245
- "loadingModal": {
246
- "type": "boolean",
247
- "mutable": false,
248
- "complexType": {
249
- "original": "boolean",
250
- "resolved": "boolean",
251
- "references": {}
252
- },
253
- "required": false,
254
- "optional": false,
255
- "docs": {
256
- "tags": [],
257
- "text": ""
258
- },
259
- "attribute": "loading-modal",
260
- "reflect": false
261
- },
262
- "saveStore": {
263
- "type": "unknown",
264
- "mutable": false,
265
- "complexType": {
266
- "original": "(amount: number) => void",
267
- "resolved": "(amount: number) => void",
268
- "references": {}
269
- },
270
- "required": false,
271
- "optional": false,
272
- "docs": {
273
- "tags": [],
274
- "text": ""
275
- }
276
- },
277
- "cancel": {
278
- "type": "unknown",
279
- "mutable": false,
280
- "complexType": {
281
- "original": "() => void",
282
- "resolved": "() => void",
283
- "references": {}
284
- },
285
- "required": false,
286
- "optional": false,
287
- "docs": {
288
- "tags": [],
289
- "text": ""
290
- }
291
- },
292
- "handleCustomerName": {
293
- "type": "unknown",
294
- "mutable": false,
295
- "complexType": {
296
- "original": "(name: string) => void",
297
- "resolved": "(name: string) => void",
298
- "references": {}
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [],
304
- "text": ""
305
- }
306
- }
307
- };
308
- }
309
- static get states() {
310
- return {
311
- "loading": {},
312
- "step": {},
313
- "message": {},
314
- "bonus": {}
315
- };
316
- }
317
- static get methods() {
318
- return {
319
- "setStep": {
320
- "complexType": {
321
- "signature": "(step: StepFormEnum) => Promise<void>",
322
- "parameters": [{
323
- "name": "step",
324
- "type": "StepFormEnum",
325
- "docs": ""
326
- }],
327
- "references": {
328
- "Promise": {
329
- "location": "global",
330
- "id": "global::Promise"
331
- },
332
- "StepFormEnum": {
333
- "location": "import",
334
- "path": "../../contants",
335
- "id": "src/contants/index.ts::StepFormEnum"
336
- }
337
- },
338
- "return": "Promise<void>"
339
- },
340
- "docs": {
341
- "text": "",
342
- "tags": []
343
- }
344
- }
345
- };
346
- }
347
- }
348
- //# sourceMappingURL=crm-bonus-form.js.map