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,125 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import { MESSAGE_ERROR_INVALID_NUMBER } from "../../contants";
3
- export class PhoneInputMask {
4
- constructor() {
5
- this.phone = '';
6
- this.message = "";
7
- this.initialValue = undefined;
8
- this.disabled = undefined;
9
- }
10
- componentWillLoad() {
11
- this.phone = this.initialValue;
12
- }
13
- formatPhone(value) {
14
- const cleaned = value.replace(/\D/g, ''); // Remove tudo que não for número
15
- const match = cleaned.match(/^(\d{0,2})(\d{0,5})(\d{0,4})$/);
16
- if (!match)
17
- return value;
18
- const part1 = match[1] ? `(${match[1]}` : '';
19
- const part2 = match[2] ? `) ${match[2]}` : '';
20
- const part3 = match[3] ? ` ${match[3]}` : '';
21
- return `${part1}${part2}${part3}`;
22
- }
23
- handleInput(event) {
24
- const input = event.target;
25
- this.phone = this.formatPhone(input.value);
26
- if (!this.validatePhoneNumber(input.value)) {
27
- this.message = MESSAGE_ERROR_INVALID_NUMBER;
28
- }
29
- else {
30
- this.message = "";
31
- }
32
- console.log('phone', this.phone);
33
- }
34
- validatePhoneNumber(phone) {
35
- if (phone.length < 15) {
36
- return true;
37
- }
38
- const phoneRegex = /^\(\d{2}\) \d{5} \d{4}$/; // Valida formato (99) 99999-9999
39
- return phoneRegex.test(phone);
40
- }
41
- async getPhone() {
42
- return this.phone;
43
- }
44
- render() {
45
- return (h("div", { key: '44d9a3f88829cdf269da2ea029ca81197a9ca31e' }, h("input", { key: '4af46e5c7eb38f108f3a3b58937b3b5560a0757d', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(99) 99999 9999" }), h("p", { key: '5058284a0a7bda9e750cbf4e1134fdc47c7de83e', class: "crm-erro-msg" }, this.message)));
46
- }
47
- static get is() { return "phone-input-mask"; }
48
- static get encapsulation() { return "shadow"; }
49
- static get originalStyleUrls() {
50
- return {
51
- "$": ["phone-input-mask.css"]
52
- };
53
- }
54
- static get styleUrls() {
55
- return {
56
- "$": ["phone-input-mask.css"]
57
- };
58
- }
59
- static get properties() {
60
- return {
61
- "initialValue": {
62
- "type": "string",
63
- "mutable": false,
64
- "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
68
- },
69
- "required": false,
70
- "optional": false,
71
- "docs": {
72
- "tags": [],
73
- "text": ""
74
- },
75
- "attribute": "initial-value",
76
- "reflect": false
77
- },
78
- "disabled": {
79
- "type": "boolean",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "boolean",
83
- "resolved": "boolean",
84
- "references": {}
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": ""
91
- },
92
- "attribute": "disabled",
93
- "reflect": false
94
- }
95
- };
96
- }
97
- static get states() {
98
- return {
99
- "phone": {},
100
- "message": {}
101
- };
102
- }
103
- static get methods() {
104
- return {
105
- "getPhone": {
106
- "complexType": {
107
- "signature": "() => Promise<string>",
108
- "parameters": [],
109
- "references": {
110
- "Promise": {
111
- "location": "global",
112
- "id": "global::Promise"
113
- }
114
- },
115
- "return": "Promise<string>"
116
- },
117
- "docs": {
118
- "text": "",
119
- "tags": []
120
- }
121
- }
122
- };
123
- }
124
- }
125
- //# sourceMappingURL=phone-input-mask.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"phone-input-mask.js","sourceRoot":"","sources":["../../../../src/components/phone/phone-input-mask.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAO9D,MAAM,OAAO,cAAc;;qBACE,EAAE;uBACA,EAAE;;;;IAK7B,iBAAiB;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,CAAC;IAEO,WAAW,CAAC,KAAa;QAE7B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,iCAAiC;QAC3E,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAE7D,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QAEzB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAE7C,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,EAAE,CAAC;IACtC,CAAC;IAEO,WAAW,CAAC,KAAY;QAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE3C,IAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,OAAO,GAAG,4BAA4B,CAAA;QAC/C,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACrB,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;IAED,mBAAmB,CAAC,KAAa;QAC7B,IAAG,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACf,CAAC;QACD,MAAM,UAAU,GAAG,yBAAyB,CAAC,CAAC,iCAAiC;QAC/E,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAGM,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,MAAM;QACF,OAAO,CACH;YACI,8DACI,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAC,OAAO,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,kBAAkB,EACxB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAC3C,WAAW,EAAC,iBAAiB,GAC/B;YACF,0DAAG,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,OAAO,CAAK,CACxC,CAET,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Method, Prop, State } from '@stencil/core';\nimport { MESSAGE_ERROR_INVALID_NUMBER } from '../../contants';\n\n@Component({\n tag: 'phone-input-mask',\n styleUrl: 'phone-input-mask.css',\n shadow: true,\n})\nexport class PhoneInputMask {\n @State() phone: string = '';\n @State() message: string = \"\";\n\n @Prop() initialValue: string;\n @Prop() disabled: boolean;\n\n componentWillLoad() {\n this.phone = this.initialValue;\n }\n\n private formatPhone(value: string): string {\n\n const cleaned = value.replace(/\\D/g, ''); // Remove tudo que não for número\n const match = cleaned.match(/^(\\d{0,2})(\\d{0,5})(\\d{0,4})$/);\n\n if (!match) return value;\n\n const part1 = match[1] ? `(${match[1]}` : '';\n const part2 = match[2] ? `) ${match[2]}` : '';\n const part3 = match[3] ? ` ${match[3]}` : '';\n\n return `${part1}${part2}${part3}`;\n }\n\n private handleInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.phone = this.formatPhone(input.value);\n\n if(!this.validatePhoneNumber(input.value)) {\n this.message = MESSAGE_ERROR_INVALID_NUMBER\n } else {\n this.message = \"\"\n }\n\n console.log('phone', this.phone)\n }\n\n validatePhoneNumber(phone: string): boolean {\n if(phone.length < 15) {\n return true\n }\n const phoneRegex = /^\\(\\d{2}\\) \\d{5} \\d{4}$/; // Valida formato (99) 99999-9999\n return phoneRegex.test(phone);\n }\n\n @Method()\n public async getPhone() {\n return this.phone;\n }\n\n render() {\n return (\n <div>\n <input\n disabled={this.disabled}\n id=\"phone\"\n type=\"text\"\n class=\"phone-input-form\"\n value={this.phone}\n onInput={(event) => this.handleInput(event)}\n placeholder=\"(99) 99999 9999\"\n />\n <p class=\"crm-erro-msg\">{this.message}</p>\n </div>\n\n );\n }\n}\n"]}
@@ -1,49 +0,0 @@
1
- .crm-tooltip-container {
2
- display: flex;
3
-
4
- & img {
5
- width: 16px;
6
- margin-left: 3px;
7
- position: relative;
8
- }
9
- }
10
-
11
- .crm-tooltip {
12
- position: relative;
13
- display: inline-block;
14
- }
15
-
16
- .crm-tooltip .tooltiptext {
17
- visibility: hidden;
18
- background-color: black;
19
- color: #fff;
20
- text-align: center;
21
- padding: 8px 12px;
22
- border-radius: 0px;
23
- position: absolute;
24
- z-index: 1;
25
- min-width: 271px;
26
- top: 100%;
27
- left: 50%;
28
- margin-left: -238px;
29
- }
30
-
31
- @container (max-width: 410px) {
32
- .crm-tooltip .tooltiptext {
33
- margin-left: -14px;
34
- }
35
-
36
- .crm-tooltip #crm-role-description {
37
- margin-left: -151px;
38
- }
39
- }
40
-
41
- @container (max-width: 250px) {
42
- .crm-tooltip .tooltiptext {
43
- margin-left: -201px;
44
- }
45
- }
46
-
47
- .crm-tooltip:hover .tooltiptext {
48
- visibility: visible;
49
- }
@@ -1,61 +0,0 @@
1
- import { h } from "@stencil/core";
2
- import info from "../../assets/svg/info-circle-svgrepo-com.svg";
3
- export class Tooltip {
4
- constructor() {
5
- this.text = undefined;
6
- this.identity = undefined;
7
- }
8
- render() {
9
- return (h("div", { key: 'e5adedc85f8db34ef347ee41b804f97e254b1692', class: "crm-tooltip-container crm-tooltip" }, h("img", { key: '76bd6d6aa860c81ba748cd92d1ee42de48140b56', src: info }), h("span", { key: 'ca2ce50e7ba71165c244de210200275eb705bf9c', id: this.identity, class: "tooltiptext" }, this.text)));
10
- }
11
- static get is() { return "crm-tooltip"; }
12
- static get originalStyleUrls() {
13
- return {
14
- "$": ["crm-tooltip.css"]
15
- };
16
- }
17
- static get styleUrls() {
18
- return {
19
- "$": ["crm-tooltip.css"]
20
- };
21
- }
22
- static get properties() {
23
- return {
24
- "text": {
25
- "type": "string",
26
- "mutable": false,
27
- "complexType": {
28
- "original": "string",
29
- "resolved": "string",
30
- "references": {}
31
- },
32
- "required": false,
33
- "optional": false,
34
- "docs": {
35
- "tags": [],
36
- "text": ""
37
- },
38
- "attribute": "text",
39
- "reflect": false
40
- },
41
- "identity": {
42
- "type": "string",
43
- "mutable": false,
44
- "complexType": {
45
- "original": "string",
46
- "resolved": "string",
47
- "references": {}
48
- },
49
- "required": false,
50
- "optional": false,
51
- "docs": {
52
- "tags": [],
53
- "text": ""
54
- },
55
- "attribute": "identity",
56
- "reflect": false
57
- }
58
- };
59
- }
60
- }
61
- //# sourceMappingURL=tooltip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,IAAI,MAAM,8CAA8C,CAAC;AAOhE,MAAM,OAAO,OAAO;;;;;IAKhB,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,mCAAmC;YAC1C,4DAAK,GAAG,EAAE,IAAI,GAAI;YAClB,6DAAM,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,IAAI,CAAQ,CAC7D,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\nimport info from '../../assets/svg/info-circle-svgrepo-com.svg';\n\n\n@Component({\n tag: 'crm-tooltip',\n styleUrl: 'crm-tooltip.css'\n})\nexport class Tooltip {\n\n @Prop() text: string;\n @Prop() identity: string;\n\n render() {\n return (\n <div class=\"crm-tooltip-container crm-tooltip\">\n <img src={info} />\n <span id={this.identity} class=\"tooltiptext\">{this.text}</span>\n </div>\n );\n }\n}"]}
@@ -1,16 +0,0 @@
1
- export var StepFormEnum;
2
- (function (StepFormEnum) {
3
- StepFormEnum[StepFormEnum["STEP_NAME"] = 0] = "STEP_NAME";
4
- StepFormEnum[StepFormEnum["STEP_PHONE"] = 1] = "STEP_PHONE";
5
- StepFormEnum[StepFormEnum["STEP_PIN"] = 2] = "STEP_PIN";
6
- StepFormEnum[StepFormEnum["STEP_RESERVE"] = 3] = "STEP_RESERVE";
7
- StepFormEnum[StepFormEnum["STEP_APPLY"] = 4] = "STEP_APPLY";
8
- StepFormEnum[StepFormEnum["STEP_NO_BONUS"] = 5] = "STEP_NO_BONUS";
9
- })(StepFormEnum || (StepFormEnum = {}));
10
- export const MESSAGE_ERROR_INVALID_NUMBER = "Número inválido";
11
- export var StatusGiftBackProcess;
12
- (function (StatusGiftBackProcess) {
13
- StatusGiftBackProcess["VALIDATE"] = "validate";
14
- StatusGiftBackProcess["NO_BONUS"] = "no_bonus";
15
- })(StatusGiftBackProcess || (StatusGiftBackProcess = {}));
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAOX;AAPD,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;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAE,iBAAiB,CAAA;AAG5D,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC","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\"\n\n\nexport enum StatusGiftBackProcess {\n VALIDATE = \"validate\",\n NO_BONUS = \"no_bonus\"\n}"]}
@@ -1,28 +0,0 @@
1
- export const RESPONSE_CONSULTA_BONUS = {
2
- data: {
3
- "hasBonus": true,
4
- "bonusBalance": 9.89,
5
- "totalBonus": 9.89,
6
- "minimumPurchase": 39.56,
7
- "bonusIds": "848785416",
8
- "history": [
9
- {
10
- "validityStart": "2024-11-12 00:00:00",
11
- "validityEnd": "2024-12-12 23:59:59",
12
- "value": 0
13
- },
14
- {
15
- "validityStart": "2024-11-20 00:00:00",
16
- "validityEnd": "2024-12-20 23:59:59",
17
- "value": 9.89
18
- }
19
- ],
20
- "storeId": 100932,
21
- "userId": 27047371,
22
- "cartId": "7be29cd3-f602-4cb8-bdb8-02f7cdef6fee",
23
- "calculatedValue": 2200,
24
- "totalValue": 2200,
25
- firstValidityDate: "2024-11-20 00:00:00",
26
- }
27
- };
28
- //# sourceMappingURL=mocks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../../src/contants/mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,IAAI,EAAG;QACH,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;QACpB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;QACxB,UAAU,EAAE,WAAW;QACvB,SAAS,EAAE;YACP;gBACI,eAAe,EAAE,qBAAqB;gBACtC,aAAa,EAAE,qBAAqB;gBACpC,OAAO,EAAE,CAAC;aACb;YACD;gBACI,eAAe,EAAE,qBAAqB;gBACtC,aAAa,EAAE,qBAAqB;gBACpC,OAAO,EAAE,IAAI;aAChB;SACJ;QACD,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,sCAAsC;QAChD,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,qBAAqB;KACjC;CACd,CAAA","sourcesContent":["import { IBonus } from \"../components\";\n\nexport const RESPONSE_CONSULTA_BONUS = {\n data: {\n \"hasBonus\": true,\n \"bonusBalance\": 9.89,\n \"totalBonus\": 9.89,\n \"minimumPurchase\": 39.56,\n \"bonusIds\": \"848785416\",\n \"history\": [\n {\n \"validityStart\": \"2024-11-12 00:00:00\",\n \"validityEnd\": \"2024-12-12 23:59:59\",\n \"value\": 0\n },\n {\n \"validityStart\": \"2024-11-20 00:00:00\",\n \"validityEnd\": \"2024-12-20 23:59:59\",\n \"value\": 9.89\n }\n ],\n \"storeId\": 100932,\n \"userId\": 27047371,\n \"cartId\": \"7be29cd3-f602-4cb8-bdb8-02f7cdef6fee\",\n \"calculatedValue\": 2200,\n \"totalValue\": 2200,\n firstValidityDate: \"2024-11-20 00:00:00\",\n } as IBonus\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pin.sent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pin.sent.js","sourceRoot":"","sources":["../../../src/dto/pin.sent.ts"],"names":[],"mappings":"","sourcesContent":["export interface IPinSent {\n storeId: number;\n userId: number;\n}"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=update.order.dto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.order.dto.js","sourceRoot":"","sources":["../../../src/dto/update.order.dto.ts"],"names":[],"mappings":"","sourcesContent":["export interface UpdateOrderDTO {\n cartId: string;\n orderId: number;\n cartIdCrm: string;\n}"]}
@@ -1,5 +0,0 @@
1
- export var AjustesTipoEnum;
2
- (function (AjustesTipoEnum) {
3
- AjustesTipoEnum["P"] = "Promocao";
4
- })(AjustesTipoEnum || (AjustesTipoEnum = {}));
5
- //# sourceMappingURL=validate.pin.bonus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate.pin.bonus.js","sourceRoot":"","sources":["../../../src/dto/validate.pin.bonus.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACvB,iCAAc,CAAA;AAClB,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B","sourcesContent":["export interface IProduct {\n productVariantId: string;\n sku: string;\n value: number;\n quantity: number;\n discount: number;\n}\n\nexport enum AjustesTipoEnum {\n P = \"Promocao\" \n}\n\nexport interface IAjustes {\n Tipo: AjustesTipoEnum;\n Valor: number;\n}\n\nexport interface IUser {\n id: number;\n}\n\nexport interface IStore {\n name: string;\n}\n\nexport interface IProductWake {\n ProdutoVarianteId: number;\n SKU: string;\n PrecoPor: number;\n Quantidade: number;\n Ajustes: IAjustes[];\n}\n\nexport interface ICustomer {\n birthDate: string;\n document: string;\n name: string;\n phone: string;\n}\n\nexport interface IProccesPinBonusDto {\n storeName: string;\n name: string;\n checkoutId: string;\n checkoutProducts: Array<IProduct>;\n storeId: string;\n userId: string;\n cellphone: number;\n pin: string;\n\n}\n\nexport interface IBonus {\n hasBonus: boolean;\n bonusBalance: number;\n totalBonus: number;\n minimumPurchase: number;\n bonusIds: string;\n firstValidityDate: string\n history: [\n {\n validityStart: string;\n validityEnd: string;\n value: number\n },\n {\n validityStart: string;\n validityEnd: string\n value: number\n }\n ]\n storeId: number;\n userId: number;\n cartId: string\n calculatedValue: number;\n totalValue: number\n}\n\n\nexport interface IReserveDTO {\n storeName: string;\n cartId: string;\n grossValue: number;\n redeemedBonus: number;\n ticket: string;\n storeId: string;\n userId: number;\n}"]}
@@ -1,25 +0,0 @@
1
- import { AjustesTipoEnum } from "../dto/validate.pin.bonus";
2
- export function buildProductsByWake(productsWake = []) {
3
- const products = [];
4
- for (const pw of productsWake) {
5
- let discounts = getDiscount(pw.Ajustes);
6
- products.push({
7
- sku: pw.SKU,
8
- value: (pw.PrecoPor * pw.Quantidade),
9
- productVariantId: pw.ProdutoVarianteId.toString(),
10
- quantity: pw.Quantidade,
11
- discount: (discounts * -1)
12
- });
13
- }
14
- return products;
15
- }
16
- function getDiscount(ajustes = []) {
17
- let discounts = 0;
18
- for (const discount of ajustes) {
19
- if (discount.Tipo === AjustesTipoEnum.P) {
20
- discounts += discount.Valor;
21
- }
22
- }
23
- return discounts;
24
- }
25
- //# sourceMappingURL=build.payload.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.payload.helper.js","sourceRoot":"","sources":["../../../src/helpers/build.payload.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoC,MAAM,2BAA2B,CAAC;AAE9F,MAAM,UAAU,mBAAmB,CAAC,eAAoC,EAAE;IAEtE,MAAM,QAAQ,GAAoB,EAAE,CAAC;IAErC,KAAM,MAAM,EAAE,IAAI,YAAY,EAAG,CAAC;QAC9B,IAAI,SAAS,GAAG,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;QAEvC,QAAQ,CAAC,IAAI,CACT;YACI,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,KAAK,EAAE,CAAC,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,UAAU,CAAC;YACpC,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,EAAE;YACjD,QAAQ,EAAE,EAAE,CAAC,UAAU;YACvB,QAAQ,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;SAC7B,CACJ,CAAA;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAS,WAAW,CAAC,UAAsB,EAAE;IAEzC,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,KAAI,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAG,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC;YACrC,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAC;QAChC,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC","sourcesContent":["import { AjustesTipoEnum, IAjustes, IProduct, IProductWake } from \"../dto/validate.pin.bonus\";\n\nexport function buildProductsByWake(productsWake: Array<IProductWake> = []): Array<IProduct> {\n\n const products: Array<IProduct> = [];\n\n for ( const pw of productsWake ) {\n let discounts = getDiscount(pw.Ajustes)\n\n products.push(\n {\n sku: pw.SKU,\n value: (pw.PrecoPor * pw.Quantidade),\n productVariantId: pw.ProdutoVarianteId.toString(),\n quantity: pw.Quantidade,\n discount: (discounts * -1)\n }\n )\n }\n\n return products;\n}\n\nfunction getDiscount(ajustes: IAjustes[] = []) {\n \n let discounts = 0;\n \n for(const discount of ajustes) {\n if(discount.Tipo === AjustesTipoEnum.P) {\n discounts += discount.Valor;\n }\n }\n\n return discounts;\n}"]}
@@ -1,20 +0,0 @@
1
- import { CartWake } from "../objectvalues/cart.wake";
2
- import { CrmBonusService } from "../services/crmbonus.service";
3
- const crmBonusService = CrmBonusService.getInstance();
4
- export const getCart = async () => {
5
- const baseUrl = buildUrlBase(); // window.location.origin; //"https://bycoders.fbits.store" //window.location.origin;
6
- console.log('[URL STORE]: ', baseUrl);
7
- const cart = await crmBonusService.getInfoCart(baseUrl);
8
- return new CartWake(cart);
9
- };
10
- const buildUrlBase = () => {
11
- const url = window.location.origin; //"https://bycoders.checkout.fbits.store" //
12
- if (url.includes('checkout')) {
13
- return url;
14
- }
15
- if (url.includes('fbits')) {
16
- return url;
17
- }
18
- return `${window.location.protocol}//checkout.${window.location.host}`;
19
- };
20
- //# sourceMappingURL=cart.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cart.helper.js","sourceRoot":"","sources":["../../../src/helpers/cart.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,eAAe,GAAoB,eAAe,CAAC,WAAW,EAAE,CAAC;AAEvE,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,IAAuB,EAAE;IACjD,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC,CAAC,qFAAqF;IAErH,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IAErC,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAExD,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,GAAG,EAAE;IAEtB,MAAM,GAAG,GAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,4CAA4C;IAEjF,IAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1B,OAAO,GAAG,CAAC;IACf,CAAC;IAED,IAAG,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC;IACf,CAAC;IAED,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAE3E,CAAC,CAAA","sourcesContent":["import { CartWake } from \"../objectvalues/cart.wake\";\nimport { CrmBonusService } from \"../services/crmbonus.service\";\n\nconst crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\nexport const getCart = async (): Promise<CartWake> => {\n const baseUrl = buildUrlBase(); // window.location.origin; //\"https://bycoders.fbits.store\" //window.location.origin;\n \n console.log('[URL STORE]: ', baseUrl)\n\n const cart = await crmBonusService.getInfoCart(baseUrl);\n\n return new CartWake(cart)\n}\n\nconst buildUrlBase = () => {\n\n const url = window.location.origin; //\"https://bycoders.checkout.fbits.store\" //\n\n if(url.includes('checkout')) {\n return url;\n }\n\n if(url.includes('fbits')) {\n return url;\n }\n\n return `${window.location.protocol}//checkout.${window.location.host}`;\n\n}"]}
@@ -1,11 +0,0 @@
1
- export 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
- //# sourceMappingURL=info.config.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"info.config.helper.js","sourceRoot":"","sources":["../../../src/helpers/info.config.helper.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,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,CAAC","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}"]}
@@ -1,12 +0,0 @@
1
- export function setTime() {
2
- if (localStorage.getItem("bc:time-allow")) {
3
- return;
4
- }
5
- const time = localStorage.getItem("bc:time");
6
- if (!time) {
7
- localStorage.setItem("bc:time", "360");
8
- localStorage.setItem("bc:time-allow", "true");
9
- return;
10
- }
11
- }
12
- //# sourceMappingURL=time.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"time.helper.js","sourceRoot":"","sources":["../../../src/helpers/time.helper.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO;IAEnB,IAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACvC,OAAM;IACV,CAAC;IAED,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAE7C,IAAG,CAAC,IAAI,EAAE,CAAC;QACP,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACvC,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;QAC9C,OAAM;IACV,CAAC;AACL,CAAC","sourcesContent":["export function setTime() {\n\n if(localStorage.getItem(\"bc:time-allow\")) {\n return\n }\n\n const time = localStorage.getItem(\"bc:time\");\n\n if(!time) {\n localStorage.setItem(\"bc:time\", \"360\");\n localStorage.setItem(\"bc:time-allow\", \"true\");\n return\n } \n}"]}
@@ -1,35 +0,0 @@
1
- import i18next from "i18next";
2
- i18next.init({
3
- lng: 'pt', // Idioma padrão
4
- fallbackLng: 'en', // Idioma de fallback
5
- interpolation: {
6
- escapeValue: false
7
- },
8
- resources: {
9
- en: {
10
- translation: {
11
- welcome: "Welcome",
12
- description: "This is an example",
13
- 'pin-sutitle': "Enter the 4-digit code sent via SMS to the number"
14
- },
15
- },
16
- pt: {
17
- translation: {
18
- edit: "Editar",
19
- welcome: "Bem-vindo",
20
- description: "Este é um exemplo",
21
- 'pin-sutitle': "Digite o código de 4 dígitos enviado por SMS ao número",
22
- giftDescription: "Você tem até <strong>R$ {{amount}}</strong> de {{custom_name}}",
23
- noGiftback: "Você não possui {{storename}} disponível para essa compra.",
24
- noBonus: "Não há {{giftbackname}} disponível para essa compra.",
25
- withApplyBonus: "{{giftbackname}} aplicado ao pedido: ",
26
- maxAmount: "Você atingiu o valor máximo!",
27
- labelamountPartial: "Ao utilizar um valor parcial, você perderá a quantia restante.",
28
- labelUseGiftback: "Regra de utilização: Valor mínimo de compra de {{minimumPurchase}} reais para usar 100% do Giftback, válido até {{expírationDate}}",
29
- backCart: "Retorne ao carrinho e verifique se há descontos disponíveis nessa compra"
30
- },
31
- },
32
- },
33
- });
34
- export default i18next;
35
- //# sourceMappingURL=i18n.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,CAAC,IAAI,CAAC;IACX,GAAG,EAAE,IAAI,EAAE,gBAAgB;IAC3B,WAAW,EAAE,IAAI,EAAE,qBAAqB;IACxC,aAAa,EAAE;QACb,WAAW,EAAE,KAAK;KACnB;IACD,SAAS,EAAE;QACT,EAAE,EAAE;YACF,WAAW,EAAE;gBACX,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,oBAAoB;gBACjC,aAAa,EAAE,mDAAmD;aACnE;SACF;QACD,EAAE,EAAE;YACF,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,aAAa,EAAE,wDAAwD;gBACvE,eAAe,EAAE,gEAAgE;gBACjF,UAAU,EAAE,4DAA4D;gBACxE,OAAO,EAAE,sDAAsD;gBAC/D,cAAc,EAAE,uCAAuC;gBACvD,SAAS,EAAE,8BAA8B;gBACzC,kBAAkB,EAAE,gEAAgE;gBACpF,gBAAgB,EAAE,oIAAoI;gBACtJ,QAAQ,EAAE,0EAA0E;aACrF;SACF;KACF;CACF,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC","sourcesContent":["import i18next from 'i18next';\n\ni18next.init({\n lng: 'pt', // Idioma padrão\n fallbackLng: 'en', // Idioma de fallback\n interpolation: {\n escapeValue: false\n },\n resources: {\n en: {\n translation: {\n welcome: \"Welcome\",\n description: \"This is an example\",\n 'pin-sutitle': \"Enter the 4-digit code sent via SMS to the number\"\n },\n },\n pt: {\n translation: {\n edit: \"Editar\",\n welcome: \"Bem-vindo\",\n description: \"Este é um exemplo\",\n 'pin-sutitle': \"Digite o código de 4 dígitos enviado por SMS ao número\",\n giftDescription: \"Você tem até <strong>R$ {{amount}}</strong> de {{custom_name}}\",\n noGiftback: \"Você não possui {{storename}} disponível para essa compra.\",\n noBonus: \"Não há {{giftbackname}} disponível para essa compra.\",\n withApplyBonus: \"{{giftbackname}} aplicado ao pedido: \",\n maxAmount: \"Você atingiu o valor máximo!\",\n labelamountPartial: \"Ao utilizar um valor parcial, você perderá a quantia restante.\",\n labelUseGiftback: \"Regra de utilização: Valor mínimo de compra de {{minimumPurchase}} reais para usar 100% do Giftback, válido até {{expírationDate}}\",\n backCart: \"Retorne ao carrinho e verifique se há descontos disponíveis nessa compra\"\n },\n },\n },\n});\n\nexport default i18next;\n"]}
@@ -1,11 +0,0 @@
1
- /**
2
- * @fileoverview entry point for your component library
3
- *
4
- * This is the entry point for your component library. Use this file to export utilities,
5
- * constants or data structure that accompany your components.
6
- *
7
- * DO NOT use this file to export your components. Instead, use the recommended approaches
8
- * to consume components of this package as outlined in the `README.md`.
9
- */
10
- export { format } from './utils/utils';
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC","sourcesContent":["/**\n * @fileoverview entry point for your component library\n *\n * This is the entry point for your component library. Use this file to export utilities,\n * constants or data structure that accompany your components.\n *\n * DO NOT use this file to export your components. Instead, use the recommended approaches\n * to consume components of this package as outlined in the `README.md`.\n */\n\nexport { format } from './utils/utils';\nexport type * from './components.d.ts';\n"]}
@@ -1,24 +0,0 @@
1
- export class CartWake {
2
- constructor(cart) {
3
- var _a;
4
- this.products = [];
5
- this.id = cart.Metadados.id || cart.Id;
6
- this.middlewareId = (_a = cart.Metadados) === null || _a === void 0 ? void 0 : _a.id;
7
- this.orderId = cart.PedidoId;
8
- this.buildUserInfo(cart);
9
- this.buildStoreInfo(cart);
10
- this.products = cart.Produtos;
11
- }
12
- buildUserInfo(cart) {
13
- this.user = {
14
- id: cart.Usuario ? cart.Usuario.Id : null
15
- };
16
- }
17
- buildStoreInfo(cart) {
18
- var _a;
19
- this.store = {
20
- name: (_a = cart.Loja) === null || _a === void 0 ? void 0 : _a.Nome
21
- };
22
- }
23
- }
24
- //# sourceMappingURL=cart.wake.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cart.wake.js","sourceRoot":"","sources":["../../../src/objectvalues/cart.wake.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,QAAQ;IAQjB,YAAY,IAAI;;QAJhB,aAAQ,GAAmB,EAAE,CAAC;QAK1B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IACjC,CAAC;IAEO,aAAa,CAAC,IAAI;QACtB,IAAI,CAAC,IAAI,GAAG;YACR,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SAC5C,CAAA;IACL,CAAC;IAEO,cAAc,CAAC,IAAI;;QACvB,IAAI,CAAC,KAAK,GAAG;YACT,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI;SACxB,CAAA;IACL,CAAC;CACJ","sourcesContent":["import { IProductWake, IStore, IUser } from \"../dto/validate.pin.bonus\";\n\nexport class CartWake {\n id: string;\n middlewareId: string;\n orderId: number;\n products: IProductWake[] = [];\n user: IUser;\n store: IStore;\n\n constructor(cart) {\n this.id = cart.Metadados.id || cart.Id;\n this.middlewareId = cart.Metadados?.id;\n this.orderId = cart.PedidoId;\n this.buildUserInfo(cart);\n this.buildStoreInfo(cart);\n this.products = cart.Produtos\n }\n\n private buildUserInfo(cart) {\n this.user = {\n id: cart.Usuario ? cart.Usuario.Id : null\n }\n }\n\n private buildStoreInfo(cart) {\n this.store = {\n name: cart.Loja?.Nome\n }\n }\n}"]}