crmbonus-component-wake 0.0.26 → 1.0.27

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 (206) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/app-modal_4.cjs.entry.js +152 -0
  4. package/dist/cjs/app-modal_4.cjs.entry.js.map +1 -0
  5. package/dist/cjs/crm-bonus.cjs.entry.js +86 -0
  6. package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -0
  7. package/dist/cjs/crmbonus-component-wake.cjs.js +27 -0
  8. package/dist/cjs/crmbonus-component-wake.cjs.js.map +1 -0
  9. package/dist/cjs/crmbonus.service-8412ddbf.js +3798 -0
  10. package/dist/cjs/crmbonus.service-8412ddbf.js.map +1 -0
  11. package/dist/cjs/giftback-finish_3.cjs.entry.js +102 -0
  12. package/dist/cjs/giftback-finish_3.cjs.entry.js.map +1 -0
  13. package/dist/cjs/index-296f70bf.js +11 -0
  14. package/dist/cjs/index-296f70bf.js.map +1 -0
  15. package/dist/cjs/index-52d8a075.js +1248 -0
  16. package/dist/cjs/index-52d8a075.js.map +1 -0
  17. package/dist/cjs/index.cjs.js +11 -0
  18. package/dist/cjs/index.cjs.js.map +1 -0
  19. package/dist/cjs/loader.cjs.js +17 -0
  20. package/dist/cjs/loader.cjs.js.map +1 -0
  21. package/dist/cjs/loading-spinner.cjs.entry.js +24 -0
  22. package/dist/cjs/loading-spinner.cjs.entry.js.map +1 -0
  23. package/dist/cjs/pedido-finalizado.cjs.entry.js +36 -0
  24. package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -0
  25. package/dist/cjs/phone-input-mask.cjs.entry.js +45 -0
  26. package/dist/cjs/phone-input-mask.cjs.entry.js.map +1 -0
  27. package/dist/collection/collection-manifest.json +22 -0
  28. package/dist/collection/components/crm-bonus/assets/logo.svg +18 -0
  29. package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +8 -0
  30. package/dist/collection/components/crm-bonus/assets/svg/logo.svg +18 -0
  31. package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +8 -0
  32. package/dist/collection/components/crm-bonus/crm-bonus.css +50 -0
  33. package/dist/collection/components/crm-bonus/crm-bonus.js +170 -0
  34. package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -0
  35. package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +19 -0
  36. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +311 -0
  37. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +1 -0
  38. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +10 -0
  39. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +20 -0
  40. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +1 -0
  41. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +74 -0
  42. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +127 -0
  43. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +1 -0
  44. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +109 -0
  45. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +127 -0
  46. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +1 -0
  47. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +75 -0
  48. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +1 -0
  49. package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +75 -0
  50. package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +1 -0
  51. package/dist/collection/components/loading-spinner/loading-spinner.css +17 -0
  52. package/dist/collection/components/loading-spinner/loading-spinner.js +63 -0
  53. package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -0
  54. package/dist/collection/components/modal/app-modal.css +45 -0
  55. package/dist/collection/components/modal/app-modal.js +83 -0
  56. package/dist/collection/components/modal/app-modal.js.map +1 -0
  57. package/dist/collection/components/pedido/pedido.js +83 -0
  58. package/dist/collection/components/pedido/pedido.js.map +1 -0
  59. package/dist/collection/components/phone/phone-input-mask.css +47 -0
  60. package/dist/collection/components/phone/phone-input-mask.js +108 -0
  61. package/dist/collection/components/phone/phone-input-mask.js.map +1 -0
  62. package/dist/collection/contants/index.js +8 -0
  63. package/dist/collection/contants/index.js.map +1 -0
  64. package/dist/collection/contants/mocks.js +28 -0
  65. package/dist/collection/contants/mocks.js.map +1 -0
  66. package/dist/collection/dto/pin.sent.js +2 -0
  67. package/dist/collection/dto/pin.sent.js.map +1 -0
  68. package/dist/collection/dto/update.order.dto.js +2 -0
  69. package/dist/collection/dto/update.order.dto.js.map +1 -0
  70. package/dist/collection/dto/validate.pin.bonus.js +2 -0
  71. package/dist/collection/dto/validate.pin.bonus.js.map +1 -0
  72. package/dist/collection/index.js +11 -0
  73. package/dist/collection/index.js.map +1 -0
  74. package/dist/collection/services/crmbonus.service.js +42 -0
  75. package/dist/collection/services/crmbonus.service.js.map +1 -0
  76. package/dist/collection/utils/utils.js +4 -0
  77. package/dist/collection/utils/utils.js.map +1 -0
  78. package/dist/components/app-modal.js +8 -0
  79. package/dist/components/app-modal.js.map +1 -0
  80. package/dist/components/crm-bonus-form.js +8 -0
  81. package/dist/components/crm-bonus-form.js.map +1 -0
  82. package/dist/components/crm-bonus.js +167 -0
  83. package/dist/components/crm-bonus.js.map +1 -0
  84. package/dist/components/giftback-finish.js +8 -0
  85. package/dist/components/giftback-finish.js.map +1 -0
  86. package/dist/components/giftback-pin.js +8 -0
  87. package/dist/components/giftback-pin.js.map +1 -0
  88. package/dist/components/giftback-progress.js +8 -0
  89. package/dist/components/giftback-progress.js.map +1 -0
  90. package/dist/components/index.js +9 -0
  91. package/dist/components/index.js.map +1 -0
  92. package/dist/components/loading-spinner.js +8 -0
  93. package/dist/components/loading-spinner.js.map +1 -0
  94. package/dist/components/p-03918b34.js +39 -0
  95. package/dist/components/p-03918b34.js.map +1 -0
  96. package/dist/components/p-2667d525.js +36 -0
  97. package/dist/components/p-2667d525.js.map +1 -0
  98. package/dist/components/p-28ba6192.js +52 -0
  99. package/dist/components/p-28ba6192.js.map +1 -0
  100. package/dist/{crmbonus-component-wake/crmbonus.service-5208f883.js → components/p-374de9ae.js} +91 -166
  101. package/dist/components/p-374de9ae.js.map +1 -0
  102. package/dist/{crmbonus-component-wake/giftback-pin.entry.js → components/p-3e80a758.js} +39 -9
  103. package/dist/components/p-3e80a758.js.map +1 -0
  104. package/dist/components/p-675deed3.js +62 -0
  105. package/dist/components/p-675deed3.js.map +1 -0
  106. package/dist/components/p-b4c3e6bf.js +156 -0
  107. package/dist/components/p-b4c3e6bf.js.map +1 -0
  108. package/dist/components/p-c5913818.js +69 -0
  109. package/dist/components/p-c5913818.js.map +1 -0
  110. package/dist/components/p-ed6bc79c.js +52 -0
  111. package/dist/components/p-ed6bc79c.js.map +1 -0
  112. package/dist/components/p-f6396f4c.js +43 -0
  113. package/dist/components/p-f6396f4c.js.map +1 -0
  114. package/dist/components/p-faf7103e.js +1064 -0
  115. package/dist/components/p-faf7103e.js.map +1 -0
  116. package/dist/components/pedido-finalizado.js +54 -0
  117. package/dist/components/pedido-finalizado.js.map +1 -0
  118. package/dist/components/phone-cancel-input.d.ts +11 -0
  119. package/dist/components/phone-cancel-input.js +8 -0
  120. package/dist/components/phone-cancel-input.js.map +1 -0
  121. package/dist/components/phone-input-mask.js +8 -0
  122. package/dist/components/phone-input-mask.js.map +1 -0
  123. package/dist/components/phone-input.js +8 -0
  124. package/dist/components/phone-input.js.map +1 -0
  125. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -48
  126. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  127. package/dist/crmbonus-component-wake/index.esm.js +1 -16
  128. package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
  129. package/dist/crmbonus-component-wake/p-075bd04d.entry.js +2 -0
  130. package/dist/crmbonus-component-wake/p-075bd04d.entry.js.map +1 -0
  131. package/dist/crmbonus-component-wake/p-241a5303.entry.js +2 -0
  132. package/dist/crmbonus-component-wake/p-241a5303.entry.js.map +1 -0
  133. package/dist/crmbonus-component-wake/p-374de9ae.js +2 -0
  134. package/dist/crmbonus-component-wake/p-374de9ae.js.map +1 -0
  135. package/dist/crmbonus-component-wake/p-72510682.js +3 -0
  136. package/dist/crmbonus-component-wake/p-72510682.js.map +1 -0
  137. package/dist/crmbonus-component-wake/p-86d04322.entry.js +2 -0
  138. package/dist/crmbonus-component-wake/p-86d04322.entry.js.map +1 -0
  139. package/dist/crmbonus-component-wake/p-8e6cdd1e.js +2 -0
  140. package/dist/crmbonus-component-wake/p-8e6cdd1e.js.map +1 -0
  141. package/dist/crmbonus-component-wake/p-a603a26e.entry.js +2 -0
  142. package/dist/crmbonus-component-wake/p-a603a26e.entry.js.map +1 -0
  143. package/dist/crmbonus-component-wake/p-e1255160.js +2 -0
  144. package/dist/crmbonus-component-wake/p-e1255160.js.map +1 -0
  145. package/dist/crmbonus-component-wake/p-e9c2ed46.entry.js +2 -0
  146. package/dist/crmbonus-component-wake/p-e9c2ed46.entry.js.map +1 -0
  147. package/dist/crmbonus-component-wake/p-ef75ecd5.entry.js +2 -0
  148. package/dist/crmbonus-component-wake/p-ef75ecd5.entry.js.map +1 -0
  149. package/dist/env.js +5 -0
  150. package/dist/env.js.map +1 -0
  151. package/dist/esm/app-modal_4.entry.js +145 -0
  152. package/dist/esm/app-modal_4.entry.js.map +1 -0
  153. package/dist/esm/crm-bonus.entry.js +82 -0
  154. package/dist/esm/crm-bonus.entry.js.map +1 -0
  155. package/dist/esm/crmbonus-component-wake.js +22 -0
  156. package/dist/esm/crmbonus-component-wake.js.map +1 -0
  157. package/dist/esm/crmbonus.service-053a9e38.js +3796 -0
  158. package/dist/esm/crmbonus.service-053a9e38.js.map +1 -0
  159. package/dist/esm/giftback-finish_3.entry.js +96 -0
  160. package/dist/esm/giftback-finish_3.entry.js.map +1 -0
  161. package/dist/esm/index-2bfaba2b.js +11 -0
  162. package/dist/esm/index-2bfaba2b.js.map +1 -0
  163. package/dist/esm/index-9f7bde48.js +1220 -0
  164. package/dist/esm/index-9f7bde48.js.map +1 -0
  165. package/dist/esm/index.js +7 -0
  166. package/dist/esm/index.js.map +1 -0
  167. package/dist/esm/loader.js +13 -0
  168. package/dist/esm/loader.js.map +1 -0
  169. package/dist/{crmbonus-component-wake → esm}/loading-spinner.entry.js +4 -3
  170. package/dist/esm/loading-spinner.entry.js.map +1 -0
  171. package/dist/{crmbonus-component-wake → esm}/pedido-finalizado.entry.js +3 -3
  172. package/dist/esm/pedido-finalizado.entry.js.map +1 -0
  173. package/dist/{crmbonus-component-wake → esm}/phone-input-mask.entry.js +5 -3
  174. package/dist/esm/phone-input-mask.entry.js.map +1 -0
  175. package/dist/index.cjs.js +1 -0
  176. package/dist/index.js +1 -0
  177. package/dist/types/components/crm-bonus/crm-bonus.d.ts +9 -0
  178. package/dist/types/components/crm-bonus-form/crm-bonus-form.d.ts +8 -4
  179. package/dist/types/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.d.ts +1 -1
  180. package/dist/types/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.d.ts +8 -0
  181. package/dist/types/components/phone/phone-input-mask.d.ts +1 -0
  182. package/dist/types/components.d.ts +32 -0
  183. package/package.json +1 -1
  184. package/dist/crmbonus-component-wake/app-modal.entry.js +0 -23
  185. package/dist/crmbonus-component-wake/app-modal.entry.js.map +0 -1
  186. package/dist/crmbonus-component-wake/crm-bonus-form.entry.js +0 -109
  187. package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +0 -1
  188. package/dist/crmbonus-component-wake/crm-bonus.entry.js +0 -50
  189. package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +0 -1
  190. package/dist/crmbonus-component-wake/crmbonus.service-5208f883.js.map +0 -1
  191. package/dist/crmbonus-component-wake/giftback-finish.entry.js +0 -19
  192. package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +0 -1
  193. package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +0 -1
  194. package/dist/crmbonus-component-wake/giftback-progress.entry.js +0 -40
  195. package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +0 -1
  196. package/dist/crmbonus-component-wake/index-f557ce7c.js +0 -3039
  197. package/dist/crmbonus-component-wake/index-f557ce7c.js.map +0 -1
  198. package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +0 -1
  199. package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +0 -1
  200. package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +0 -1
  201. package/dist/crmbonus-component-wake/phone-input.entry.js +0 -21
  202. package/dist/crmbonus-component-wake/phone-input.entry.js.map +0 -1
  203. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +0 -334
  204. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +0 -1
  205. /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js +0 -0
  206. /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js.map +0 -0
@@ -0,0 +1,75 @@
1
+ import { h } from "@stencil/core";
2
+ export class PhoneCancelInput {
3
+ constructor() {
4
+ this.sendPin = undefined;
5
+ this.loading = undefined;
6
+ this.value = undefined;
7
+ }
8
+ async validatePhone() {
9
+ const phone = await this.phoneInputMask.getPhone();
10
+ await this.sendPin(phone);
11
+ }
12
+ render() {
13
+ return (h("div", { key: '9e5524ba40c38bcc04325a8b786ea1b29d92e233', class: "form-container" }, h("phone-input-mask", { key: 'a6625e16e686ffd1738989c29245172ebeee13cf', initialValue: "Valor aplicado R$ 100", ref: ref => this.phoneInputMask = ref, disabled: true }), h("button", { key: '7b0416d694bccaa80d418ff062889607eabc9aff', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "Cancelar" : h("loading-spinner", { size: "25px", color: "#fff" }))));
14
+ }
15
+ static get is() { return "phone-cancel-input"; }
16
+ static get properties() {
17
+ return {
18
+ "sendPin": {
19
+ "type": "unknown",
20
+ "mutable": false,
21
+ "complexType": {
22
+ "original": "Function",
23
+ "resolved": "Function",
24
+ "references": {
25
+ "Function": {
26
+ "location": "global",
27
+ "id": "global::Function"
28
+ }
29
+ }
30
+ },
31
+ "required": false,
32
+ "optional": false,
33
+ "docs": {
34
+ "tags": [],
35
+ "text": ""
36
+ }
37
+ },
38
+ "loading": {
39
+ "type": "boolean",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "boolean",
43
+ "resolved": "boolean",
44
+ "references": {}
45
+ },
46
+ "required": false,
47
+ "optional": false,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": ""
51
+ },
52
+ "attribute": "loading",
53
+ "reflect": false
54
+ },
55
+ "value": {
56
+ "type": "string",
57
+ "mutable": false,
58
+ "complexType": {
59
+ "original": "string",
60
+ "resolved": "string",
61
+ "references": {}
62
+ },
63
+ "required": false,
64
+ "optional": false,
65
+ "docs": {
66
+ "tags": [],
67
+ "text": ""
68
+ },
69
+ "attribute": "value",
70
+ "reflect": false
71
+ }
72
+ };
73
+ }
74
+ }
75
+ //# sourceMappingURL=phone.cancel.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone.cancel.input.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKnD,MAAM,OAAO,gBAAgB;;;;;;IAQzB,KAAK,CAAC,aAAa;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,gBAAgB;YACvB,yEAAkB,YAAY,EAAE,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,GAAG,GAAG,EAAE,QAAQ,EAAE,IAAI,GAAI;YAClH,+DAAQ,KAAK,EAAE,UAAU,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,IAE/G,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAExE,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'phone-cancel-input'\n})\nexport class PhoneCancelInput {\n\n private phoneInputMask: HTMLPhoneInputMaskElement;\n\n @Prop() sendPin: Function;\n @Prop() loading: boolean;\n @Prop() value: string;\n\n async validatePhone() {\n const phone = await this.phoneInputMask.getPhone();\n await this.sendPin(phone);\n }\n\n render() {\n return (\n <div class=\"form-container\">\n <phone-input-mask initialValue={\"Valor aplicado R$ 100\"} ref={ref => this.phoneInputMask = ref} disabled={true} />\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\n {\n !this.loading ? \"Cancelar\" : <loading-spinner size=\"25px\" color=\"#fff\" />\n }\n </button>\n </div>\n )\n }\n}"]}
@@ -0,0 +1,17 @@
1
+ .spinner {
2
+ display: inline-block;
3
+ border: 4px solid transparent;
4
+ border-radius: 50%;
5
+ border-top-color: var(--color, #0078d7);
6
+ animation: spin 1s linear infinite;
7
+ }
8
+
9
+ @keyframes spin {
10
+ 0% {
11
+ transform: rotate(0deg);
12
+ }
13
+
14
+ 100% {
15
+ transform: rotate(360deg);
16
+ }
17
+ }
@@ -0,0 +1,63 @@
1
+ import { h } from "@stencil/core";
2
+ export class LoadingSpinner {
3
+ constructor() {
4
+ this.size = '50px';
5
+ this.color = '#0078d7';
6
+ }
7
+ render() {
8
+ return (h("div", { key: '78b8ba44c23dcf2fe6b86d343242ff696592bacd', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
9
+ }
10
+ static get is() { return "loading-spinner"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["loading-spinner.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["loading-spinner.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "size": {
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": "size",
39
+ "reflect": false,
40
+ "defaultValue": "'50px'"
41
+ },
42
+ "color": {
43
+ "type": "string",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": false,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "attribute": "color",
57
+ "reflect": false,
58
+ "defaultValue": "'#0078d7'"
59
+ }
60
+ };
61
+ }
62
+ }
63
+ //# sourceMappingURL=loading-spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loading-spinner.js","sourceRoot":"","sources":["../../../../src/components/loading-spinner/loading-spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,cAAc;;oBACA,MAAM;qBACL,SAAS;;IAEjC,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,sCAAsC,EAAE,GAAQ,CAChJ,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'loading-spinner',\n styleUrl: 'loading-spinner.css',\n shadow: true,\n})\nexport class LoadingSpinner {\n @Prop() size: string = '50px'; // Tamanho do spinner (padrão 50px)\n @Prop() color: string = '#0078d7'; // Cor do spinner (padrão azul)\n\n render() {\n return (\n <div class=\"spinner\" style={{ width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` }}></div>\n );\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ .modal-backdrop {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ background-color: rgba(0, 0, 0, 0.5);
8
+ display: none;
9
+ justify-content: center;
10
+ align-items: center;
11
+ z-index: 1000;
12
+ }
13
+
14
+ .modal-backdrop.visible {
15
+ display: flex;
16
+ }
17
+
18
+ .modal {
19
+ background: white;
20
+ border-radius: 8px;
21
+ padding: 1rem;
22
+ max-width: 500px;
23
+ width: 90%;
24
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
25
+ }
26
+
27
+ .modal-header {
28
+ display: flex;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+ border-bottom: 1px solid #ddd;
32
+ margin-bottom: 1rem;
33
+ }
34
+
35
+ .close-button {
36
+ background: none;
37
+ border: none;
38
+ font-size: 1.5rem;
39
+ cursor: pointer;
40
+ }
41
+
42
+ .modal-body {
43
+ /* padding: 1rem 0; */
44
+ }
45
+
@@ -0,0 +1,83 @@
1
+ import { h } from "@stencil/core";
2
+ export class AppModal {
3
+ constructor() {
4
+ this.isOpen = false;
5
+ this.modalTitle = undefined;
6
+ }
7
+ closeModal() {
8
+ this.modalClosed.emit();
9
+ }
10
+ render() {
11
+ return (h("div", { key: '8dab3bfa7301dbd20a783917037c26451cdab5a8', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: '2846620c39106abde226cd19b2cc0a58b7a88a11', class: "modal" }, h("div", { key: '46b63f75e09aec5d2b9255334733b2813156a5e6', class: "modal-header" }, h("h3", { key: '6a7baae6fc8430ec9cbbcf959f75842ddac253ac' }, this.modalTitle), h("button", { key: 'c6b76e2c862db06657c5ce91fb2bba56fa89e04d', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '7caebe8e0fab2569e3e4e33cc512133bc691b331', class: "modal-body" }, h("slot", { key: 'aa5bd4a5ff5810e1d74727b01121b97ec7b54d51' })))));
12
+ }
13
+ static get is() { return "app-modal"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["app-modal.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["app-modal.css"]
23
+ };
24
+ }
25
+ static get properties() {
26
+ return {
27
+ "isOpen": {
28
+ "type": "boolean",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "boolean",
32
+ "resolved": "boolean",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": ""
40
+ },
41
+ "attribute": "is-open",
42
+ "reflect": true,
43
+ "defaultValue": "false"
44
+ },
45
+ "modalTitle": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "string",
50
+ "resolved": "string",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "attribute": "modal-title",
60
+ "reflect": false
61
+ }
62
+ };
63
+ }
64
+ static get events() {
65
+ return [{
66
+ "method": "modalClosed",
67
+ "name": "modalClosed",
68
+ "bubbles": true,
69
+ "cancelable": true,
70
+ "composed": true,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": ""
74
+ },
75
+ "complexType": {
76
+ "original": "void",
77
+ "resolved": "void",
78
+ "references": {}
79
+ }
80
+ }];
81
+ }
82
+ }
83
+ //# sourceMappingURL=app-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-modal.js","sourceRoot":"","sources":["../../../../src/components/modal/app-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOxE,MAAM,OAAO,QAAQ;;sBAG0B,KAAK;;;IAQxC,UAAU;QACd,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAE,kBAAkB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;YACxD,4DAAK,KAAK,EAAC,OAAO;gBACd,4DAAK,KAAK,EAAC,cAAc;oBACrB,6DAAK,IAAI,CAAC,UAAU,CAAM;oBAC1B,+DAAQ,KAAK,EAAC,cAAc,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,aAEpD,CACP;gBACN,4DAAK,KAAK,EAAC,YAAY;oBACnB,8DAAQ,CACN,CACJ,CACJ,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Event, EventEmitter, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'app-modal',\n styleUrl: 'app-modal.css',\n shadow: true,\n})\nexport class AppModal {\n\n // Controle da visibilidade do modal\n @Prop({ reflect: true }) isOpen: boolean = false;\n\n // Título do modal\n @Prop() modalTitle: string;\n\n // Evento emitido ao fechar o modal\n @Event() modalClosed: EventEmitter<void>;\n\n private closeModal() {\n this.modalClosed.emit();\n }\n\n render() {\n return (\n <div class={`modal-backdrop ${this.isOpen ? 'visible' : ''}`}>\n <div class=\"modal\">\n <div class=\"modal-header\">\n <h3>{this.modalTitle}</h3>\n <button class=\"close-button\" onClick={() => this.closeModal()}>\n ×\n </button>\n </div>\n <div class=\"modal-body\">\n <slot />\n </div>\n </div>\n </div>\n )\n }\n}"]}
@@ -0,0 +1,83 @@
1
+ import { h } from "@stencil/core";
2
+ import { CrmBonusService } from "../../services/crmbonus.service";
3
+ export class Pedido {
4
+ constructor() {
5
+ this.cartId = undefined;
6
+ this.orderId = undefined;
7
+ this.metadadoString = undefined;
8
+ }
9
+ async componentWillLoad() {
10
+ console.log('this.metadadoString', this.metadadoString);
11
+ const metadado = this.metadadoString ? JSON.parse(this.metadadoString) : { id: null };
12
+ console.log('this.cartId', this.cartId);
13
+ console.log('this.orderid', this.orderId);
14
+ console.log('metadadoid', metadado);
15
+ if (this.cartId && this.orderId) {
16
+ await new CrmBonusService().updateOrder({
17
+ cartId: this.cartId,
18
+ orderId: this.orderId,
19
+ cartIdCrm: metadado.id
20
+ });
21
+ }
22
+ }
23
+ render() {
24
+ return (h("div", { key: '693b9e4927b433cd01e555d33e0430c40d80c91a' }));
25
+ }
26
+ static get is() { return "pedido-finalizado"; }
27
+ static get properties() {
28
+ return {
29
+ "cartId": {
30
+ "type": "string",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "string",
34
+ "resolved": "string",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": false,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ },
43
+ "attribute": "cartid",
44
+ "reflect": false
45
+ },
46
+ "orderId": {
47
+ "type": "number",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "number",
51
+ "resolved": "number",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "attribute": "orderid",
61
+ "reflect": false
62
+ },
63
+ "metadadoString": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "string",
68
+ "resolved": "string",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": false,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": ""
76
+ },
77
+ "attribute": "metadado",
78
+ "reflect": false
79
+ }
80
+ };
81
+ }
82
+ }
83
+ //# sourceMappingURL=pedido.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pedido.js","sourceRoot":"","sources":["../../../../src/components/pedido/pedido.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKlE,MAAM,OAAO,MAAM;;;;;;IAMf,KAAK,CAAC,iBAAiB;QACnB,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAA;QACvD,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;QAEtF,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;QAEnC,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC9B,MAAM,IAAI,eAAe,EAAE,CAAC,WAAW,CAAC;gBACpC,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,OAAO,EAAG,IAAI,CAAC,OAAO;gBACtB,SAAS,EAAE,QAAQ,CAAC,EAAE;aACzB,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,MAAM;QACF,OAAO,CACH,6DAAW,CACd,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\nimport { CrmBonusService } from \"../../services/crmbonus.service\";\n\n@Component({\n tag: \"pedido-finalizado\"\n})\nexport class Pedido {\n\n @Prop({ attribute: \"cartid\" }) cartId: string;\n @Prop({ attribute: \"orderid\" }) orderId: number;\n @Prop({ attribute: \"metadado\" }) metadadoString: string;\n\n async componentWillLoad() {\n console.log('this.metadadoString', this.metadadoString)\n const metadado = this.metadadoString ? JSON.parse(this.metadadoString) : { id: null };\n\n console.log('this.cartId', this.cartId);\n console.log('this.orderid', this.orderId);\n console.log('metadadoid', metadado)\n\n if (this.cartId && this.orderId) {\n await new CrmBonusService().updateOrder({\n cartId: this.cartId,\n orderId: this.orderId,\n cartIdCrm: metadado.id\n });\n }\n }\n\n render() {\n return (\n <div></div>\n )\n }\n}"]}
@@ -0,0 +1,47 @@
1
+ .inline-text-field-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+
6
+ @supports (top: max(0%)) {
7
+ .mdc-text-field--outlined {
8
+ padding-right: max(16px, var(--mdc-shape-small, 4px));
9
+ }
10
+ }
11
+
12
+ @supports (top: max(0%)) {
13
+ .mdc-text-field--outlined {
14
+ padding-left: max(16px, calc(var(--mdc-shape-small, 4px) + 4px));
15
+ }
16
+ }
17
+
18
+ .mdc-text-field--outlined {
19
+ height: 55px;
20
+ overflow: visible;
21
+ }
22
+
23
+ .phone {
24
+ width: 300px;
25
+ height: 50px;
26
+ font-size: 18px;
27
+ padding: 10px;
28
+ color: grey;
29
+ border: 1px solid #d3c6c6;
30
+ outline: none;
31
+ }
32
+
33
+ .mdc-text-field {
34
+ border-top-left-radius: 4px;
35
+ border-top-left-radius: var(--mdc-shape-small, 4px);
36
+ border-top-right-radius: 4px;
37
+ border-top-right-radius: var(--mdc-shape-small, 4px);
38
+ border-bottom-right-radius: 0;
39
+ border-bottom-left-radius: 0;
40
+ display: inline-flex;
41
+ align-items: baseline;
42
+ padding: 0 16px;
43
+ position: relative;
44
+ box-sizing: border-box;
45
+ overflow: hidden;
46
+ will-change: opacity, transform, color;
47
+ }
@@ -0,0 +1,108 @@
1
+ import { h } from "@stencil/core";
2
+ export class PhoneInputMask {
3
+ constructor() {
4
+ this.phone = '';
5
+ this.initialValue = undefined;
6
+ this.disabled = undefined;
7
+ }
8
+ componentWillLoad() {
9
+ this.phone = this.initialValue;
10
+ }
11
+ formatPhone(value) {
12
+ const cleaned = value.replace(/\D/g, ''); // Remove tudo que não for número
13
+ const match = cleaned.match(/^(\d{0,2})(\d{0,5})(\d{0,4})$/);
14
+ if (!match)
15
+ return value;
16
+ const part1 = match[1] ? `(${match[1]}` : '';
17
+ const part2 = match[2] ? `) ${match[2]}` : '';
18
+ const part3 = match[3] ? `-${match[3]}` : '';
19
+ return `${part1}${part2}${part3}`;
20
+ }
21
+ handleInput(event) {
22
+ const input = event.target;
23
+ this.phone = this.formatPhone(input.value);
24
+ }
25
+ async getPhone() {
26
+ return this.phone;
27
+ }
28
+ render() {
29
+ return (h("input", { key: '67f707c85624ebb9ae25f11021df00db1cf237ce', disabled: this.disabled, id: "phone", type: "tel", class: "phone", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }));
30
+ }
31
+ static get is() { return "phone-input-mask"; }
32
+ static get encapsulation() { return "shadow"; }
33
+ static get originalStyleUrls() {
34
+ return {
35
+ "$": ["phone-input-mask.css"]
36
+ };
37
+ }
38
+ static get styleUrls() {
39
+ return {
40
+ "$": ["phone-input-mask.css"]
41
+ };
42
+ }
43
+ static get properties() {
44
+ return {
45
+ "initialValue": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "string",
50
+ "resolved": "string",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": ""
58
+ },
59
+ "attribute": "initial-value",
60
+ "reflect": false
61
+ },
62
+ "disabled": {
63
+ "type": "boolean",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "boolean",
67
+ "resolved": "boolean",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ },
76
+ "attribute": "disabled",
77
+ "reflect": false
78
+ }
79
+ };
80
+ }
81
+ static get states() {
82
+ return {
83
+ "phone": {}
84
+ };
85
+ }
86
+ static get methods() {
87
+ return {
88
+ "getPhone": {
89
+ "complexType": {
90
+ "signature": "() => Promise<string>",
91
+ "parameters": [],
92
+ "references": {
93
+ "Promise": {
94
+ "location": "global",
95
+ "id": "global::Promise"
96
+ }
97
+ },
98
+ "return": "Promise<string>"
99
+ },
100
+ "docs": {
101
+ "text": "",
102
+ "tags": []
103
+ }
104
+ }
105
+ };
106
+ }
107
+ }
108
+ //# sourceMappingURL=phone-input-mask.js.map
@@ -0,0 +1 @@
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;AAOlE,MAAM,OAAO,cAAc;;qBACE,EAAE;;;;IAI3B,iBAAiB;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,CAAC;IAEO,WAAW,CAAC,KAAa;QAC7B,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;QAC7D,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;IAC/C,CAAC;IAGM,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,MAAM;QACF,OAAO,CACH,8DACI,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAC,OAAO,EACV,IAAI,EAAC,KAAK,EACV,KAAK,EAAC,OAAO,EACb,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,CACL,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Method, Prop, State } from '@stencil/core';\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 @Prop() initialValue: string;\n @Prop() disabled: boolean;\n\n componentWillLoad() {\n this.phone = this.initialValue; \n }\n\n private formatPhone(value: string): string {\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 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\n @Method()\n public async getPhone() {\n return this.phone;\n }\n\n render() {\n return (\n <input\n disabled={this.disabled}\n id=\"phone\"\n type=\"tel\"\n class=\"phone\"\n value={this.phone}\n onInput={(event) => this.handleInput(event)}\n placeholder=\"(12) 94567-8910\"\n />\n );\n }\n}\n"]}
@@ -0,0 +1,8 @@
1
+ export var StepFormEnum;
2
+ (function (StepFormEnum) {
3
+ StepFormEnum[StepFormEnum["STEP_PHONE"] = 1] = "STEP_PHONE";
4
+ StepFormEnum[StepFormEnum["STEP_PIN"] = 2] = "STEP_PIN";
5
+ StepFormEnum[StepFormEnum["STEP_RESERVE"] = 3] = "STEP_RESERVE";
6
+ StepFormEnum[StepFormEnum["STEP_APPLY"] = 4] = "STEP_APPLY";
7
+ })(StepFormEnum || (StepFormEnum = {}));
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,2DAAc,CAAA;IACd,uDAAY,CAAA;IACZ,+DAAgB,CAAA;IAChB,2DAAc,CAAA;AAClB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB","sourcesContent":["export enum StepFormEnum {\n STEP_PHONE = 1,\n STEP_PIN = 2,\n STEP_RESERVE = 3,\n STEP_APPLY = 4\n}"]}
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
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}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pin.sent.js.map
@@ -0,0 +1 @@
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}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=update.order.dto.js.map
@@ -0,0 +1 @@
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}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=validate.pin.bonus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.pin.bonus.js","sourceRoot":"","sources":["../../../src/dto/validate.pin.bonus.ts"],"names":[],"mappings":"","sourcesContent":["export interface IProduct {\n variantId: number;\n sku: string;\n value: number;\n qtd: number;\n}\n\nexport interface IProductWake {\n ProdutoVarianteId: number;\n SKU: string;\n PrecoPor: number;\n Quantidade: number;\n}\n\nexport interface ICustomer {\n birthDate: string;\n document: string;\n name: string;\n phone: string;\n}\n\nexport interface IProccesPinBonusDto {\n cartId: string;\n products: Array<IProduct>;\n loja_id: number;\n user_id: number;\n cellphone: string;\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 cart_id: string,\n gross_value: number,\n redeemed_bonus: number,\n ticket: string\n}"]}
@@ -0,0 +1,11 @@
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
@@ -0,0 +1 @@
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"]}