crmbonus-component-wake 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) 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_2.cjs.entry.js +127 -0
  4. package/dist/cjs/app-modal_2.cjs.entry.js.map +1 -0
  5. package/dist/cjs/crm-bonus.cjs.entry.js +46 -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-a626c034.js +3795 -0
  10. package/dist/cjs/crmbonus.service-a626c034.js.map +1 -0
  11. package/dist/cjs/giftback-finish_5.cjs.entry.js +153 -0
  12. package/dist/cjs/giftback-finish_5.cjs.entry.js.map +1 -0
  13. package/dist/cjs/index-52d8a075.js +1248 -0
  14. package/dist/cjs/index-52d8a075.js.map +1 -0
  15. package/dist/cjs/index.cjs.js +11 -0
  16. package/dist/cjs/index.cjs.js.map +1 -0
  17. package/dist/cjs/loader.cjs.js +17 -0
  18. package/dist/cjs/loader.cjs.js.map +1 -0
  19. package/dist/cjs/loading-spinner.cjs.entry.js +24 -0
  20. package/dist/cjs/loading-spinner.cjs.entry.js.map +1 -0
  21. package/dist/cjs/pedido-finalizado.cjs.entry.js +28 -0
  22. package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -0
  23. package/dist/collection/collection-manifest.json +21 -0
  24. package/dist/collection/components/crm-bonus/assets/logo.svg +18 -0
  25. package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +8 -0
  26. package/dist/collection/components/crm-bonus/assets/svg/logo.svg +18 -0
  27. package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +8 -0
  28. package/dist/collection/components/crm-bonus/crm-bonus.css +20 -0
  29. package/dist/collection/components/crm-bonus/crm-bonus.js +123 -0
  30. package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -0
  31. package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +32 -0
  32. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +194 -0
  33. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +1 -0
  34. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +10 -0
  35. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +20 -0
  36. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +1 -0
  37. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +54 -0
  38. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +111 -0
  39. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +1 -0
  40. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +95 -0
  41. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +111 -0
  42. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +1 -0
  43. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +75 -0
  44. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +1 -0
  45. package/dist/collection/components/loading-spinner/loading-spinner.css +17 -0
  46. package/dist/collection/components/loading-spinner/loading-spinner.js +63 -0
  47. package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -0
  48. package/dist/collection/components/modal/app-modal.css +45 -0
  49. package/dist/collection/components/modal/app-modal.js +83 -0
  50. package/dist/collection/components/modal/app-modal.js.map +1 -0
  51. package/dist/collection/components/pedido/pedido.js +58 -0
  52. package/dist/collection/components/pedido/pedido.js.map +1 -0
  53. package/dist/collection/components/phone/phone-input-mask.css +47 -0
  54. package/dist/collection/components/phone/phone-input-mask.js +90 -0
  55. package/dist/collection/components/phone/phone-input-mask.js.map +1 -0
  56. package/dist/collection/contants/index.js +8 -0
  57. package/dist/collection/contants/index.js.map +1 -0
  58. package/dist/collection/contants/mocks.js +28 -0
  59. package/dist/collection/contants/mocks.js.map +1 -0
  60. package/dist/collection/dto/pin.sent.js +2 -0
  61. package/dist/collection/dto/pin.sent.js.map +1 -0
  62. package/dist/collection/dto/validate.pin.bonus.js +2 -0
  63. package/dist/collection/dto/validate.pin.bonus.js.map +1 -0
  64. package/dist/collection/index.js +11 -0
  65. package/dist/collection/index.js.map +1 -0
  66. package/dist/collection/services/crmbonus.service.js +39 -0
  67. package/dist/collection/services/crmbonus.service.js.map +1 -0
  68. package/dist/collection/utils/utils.js +4 -0
  69. package/dist/collection/utils/utils.js.map +1 -0
  70. package/dist/components/app-modal.js +8 -0
  71. package/dist/components/app-modal.js.map +1 -0
  72. package/dist/components/crm-bonus-form.js +8 -0
  73. package/dist/components/crm-bonus-form.js.map +1 -0
  74. package/dist/components/crm-bonus.js +117 -0
  75. package/dist/components/crm-bonus.js.map +1 -0
  76. package/dist/components/giftback-finish.js +8 -0
  77. package/dist/components/giftback-finish.js.map +1 -0
  78. package/dist/components/giftback-pin.js +8 -0
  79. package/dist/components/giftback-pin.js.map +1 -0
  80. package/dist/components/giftback-progress.js +8 -0
  81. package/dist/components/giftback-progress.js.map +1 -0
  82. package/dist/components/index.js +9 -0
  83. package/dist/components/index.js.map +1 -0
  84. package/dist/components/loading-spinner.js +8 -0
  85. package/dist/components/loading-spinner.js.map +1 -0
  86. package/dist/components/p-17ee9996.js +52 -0
  87. package/dist/components/p-17ee9996.js.map +1 -0
  88. package/dist/{crmbonus-component-wake/phone-input-mask.entry.js → components/p-2dbfb2c7.js} +29 -8
  89. package/dist/components/p-2dbfb2c7.js.map +1 -0
  90. package/dist/components/p-563ea4c5.js +166 -0
  91. package/dist/components/p-563ea4c5.js.map +1 -0
  92. package/dist/{crmbonus-component-wake/crmbonus.service-ce105f62.js → components/p-629fcb5b.js} +90 -165
  93. package/dist/components/p-629fcb5b.js.map +1 -0
  94. package/dist/{crmbonus-component-wake/giftback-finish.entry.js → components/p-7294e43f.js} +25 -8
  95. package/dist/components/p-7294e43f.js.map +1 -0
  96. package/dist/components/p-78529eea.js +39 -0
  97. package/dist/components/p-78529eea.js.map +1 -0
  98. package/dist/{crmbonus-component-wake/app-modal.entry.js → components/p-8e0ed8dd.js} +28 -8
  99. package/dist/components/p-8e0ed8dd.js.map +1 -0
  100. package/dist/{crmbonus-component-wake/giftback-pin.entry.js → components/p-a1781d03.js} +37 -8
  101. package/dist/components/p-a1781d03.js.map +1 -0
  102. package/dist/{crmbonus-component-wake/giftback-progress.entry.js → components/p-a88bc337.js} +36 -8
  103. package/dist/components/p-a88bc337.js.map +1 -0
  104. package/dist/components/p-faf7103e.js +1064 -0
  105. package/dist/components/p-faf7103e.js.map +1 -0
  106. package/dist/components/pedido-finalizado.js +45 -0
  107. package/dist/components/pedido-finalizado.js.map +1 -0
  108. package/dist/components/phone-input-mask.js +8 -0
  109. package/dist/components/phone-input-mask.js.map +1 -0
  110. package/dist/components/phone-input.js +8 -0
  111. package/dist/components/phone-input.js.map +1 -0
  112. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -48
  113. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  114. package/dist/crmbonus-component-wake/index.esm.js +1 -16
  115. package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
  116. package/dist/crmbonus-component-wake/p-54e51298.entry.js +2 -0
  117. package/dist/crmbonus-component-wake/p-54e51298.entry.js.map +1 -0
  118. package/dist/crmbonus-component-wake/p-629fcb5b.js +2 -0
  119. package/dist/crmbonus-component-wake/p-629fcb5b.js.map +1 -0
  120. package/dist/crmbonus-component-wake/p-6b075110.entry.js +2 -0
  121. package/dist/crmbonus-component-wake/p-6b075110.entry.js.map +1 -0
  122. package/dist/crmbonus-component-wake/p-72510682.js +3 -0
  123. package/dist/crmbonus-component-wake/p-72510682.js.map +1 -0
  124. package/dist/crmbonus-component-wake/p-ba53f0f3.entry.js +2 -0
  125. package/dist/crmbonus-component-wake/p-ba53f0f3.entry.js.map +1 -0
  126. package/dist/crmbonus-component-wake/p-bf4b486e.entry.js +2 -0
  127. package/dist/crmbonus-component-wake/p-bf4b486e.entry.js.map +1 -0
  128. package/dist/crmbonus-component-wake/p-e1255160.js +2 -0
  129. package/dist/crmbonus-component-wake/p-e1255160.js.map +1 -0
  130. package/dist/crmbonus-component-wake/p-f0d68c31.entry.js +2 -0
  131. package/dist/crmbonus-component-wake/p-f0d68c31.entry.js.map +1 -0
  132. package/dist/env.js +5 -0
  133. package/dist/env.js.map +1 -0
  134. package/dist/{crmbonus-component-wake/crm-bonus-form.entry.js → esm/app-modal_2.entry.js} +25 -5
  135. package/dist/esm/app-modal_2.entry.js.map +1 -0
  136. package/dist/{crmbonus-component-wake → esm}/crm-bonus.entry.js +5 -4
  137. package/dist/esm/crm-bonus.entry.js.map +1 -0
  138. package/dist/esm/crmbonus-component-wake.js +22 -0
  139. package/dist/esm/crmbonus-component-wake.js.map +1 -0
  140. package/dist/esm/crmbonus.service-83f67708.js +3793 -0
  141. package/dist/esm/crmbonus.service-83f67708.js.map +1 -0
  142. package/dist/esm/giftback-finish_5.entry.js +145 -0
  143. package/dist/esm/giftback-finish_5.entry.js.map +1 -0
  144. package/dist/esm/index-9f7bde48.js +1220 -0
  145. package/dist/esm/index-9f7bde48.js.map +1 -0
  146. package/dist/esm/index.js +7 -0
  147. package/dist/esm/index.js.map +1 -0
  148. package/dist/esm/loader.js +13 -0
  149. package/dist/esm/loader.js.map +1 -0
  150. package/dist/{crmbonus-component-wake → esm}/loading-spinner.entry.js +3 -2
  151. package/dist/esm/loading-spinner.entry.js.map +1 -0
  152. package/dist/{crmbonus-component-wake → esm}/pedido-finalizado.entry.js +2 -2
  153. package/dist/esm/pedido-finalizado.entry.js.map +1 -0
  154. package/dist/index.cjs.js +1 -0
  155. package/dist/index.js +1 -0
  156. package/package.json +1 -1
  157. package/dist/crmbonus-component-wake/app-modal.entry.js.map +0 -1
  158. package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +0 -1
  159. package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +0 -1
  160. package/dist/crmbonus-component-wake/crmbonus.service-ce105f62.js.map +0 -1
  161. package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +0 -1
  162. package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +0 -1
  163. package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +0 -1
  164. package/dist/crmbonus-component-wake/index-f557ce7c.js +0 -3039
  165. package/dist/crmbonus-component-wake/index-f557ce7c.js.map +0 -1
  166. package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +0 -1
  167. package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +0 -1
  168. package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +0 -1
  169. package/dist/crmbonus-component-wake/phone-input.entry.js +0 -21
  170. package/dist/crmbonus-component-wake/phone-input.entry.js.map +0 -1
  171. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +0 -334
  172. package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +0 -1
  173. /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js +0 -0
  174. /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js.map +0 -0
@@ -0,0 +1,95 @@
1
+ :host {
2
+ display: flex;
3
+ font-family: Arial, sans-serif;
4
+ /* background-color: #f8f4eb; */
5
+ border-radius: 10px;
6
+ padding: 16px;
7
+ /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
8
+ max-width: 100%;
9
+ flex-direction: column;
10
+ }
11
+
12
+ .giftback-container {
13
+ display: flex;
14
+ flex-direction: column;
15
+ }
16
+
17
+ .giftback-container p {
18
+ font-size: medium;
19
+ }
20
+
21
+ h3 {
22
+ margin: 0 0 10px;
23
+ font-size: 18px;
24
+ }
25
+
26
+ p {
27
+ margin: 5px 0;
28
+ font-size: 14px;
29
+ }
30
+
31
+ .validity {
32
+ font-size: 12px;
33
+ color: #888;
34
+ }
35
+
36
+ .progress-container {
37
+ display: flex;
38
+ align-items: center;
39
+ margin: 10px 0;
40
+ }
41
+
42
+ progress-container span {
43
+ font-size: 12px;
44
+ color: #666;
45
+ }
46
+
47
+ input[type='range'] {
48
+ flex: 1;
49
+ margin: 0 10px;
50
+ appearance: none;
51
+ background-color: #ccc;
52
+ height: 6px;
53
+ border-radius: 3px;
54
+ outline: none;
55
+ cursor: pointer;
56
+ }
57
+
58
+ input[type='range']::-webkit-slider-thumb {
59
+ appearance: none;
60
+ width: 14px;
61
+ height: 14px;
62
+ border-radius: 50%;
63
+ background-color: #555;
64
+ cursor: pointer;
65
+ }
66
+
67
+ .remaining {
68
+ font-weight: bold;
69
+ font-size: 14px;
70
+ color: #333;
71
+ }
72
+
73
+ .button {
74
+ top: 50%;
75
+ background-color: #6c6c7e;
76
+ color: #fff;
77
+ border: none;
78
+ border-radius: 10px;
79
+ padding: 10px;
80
+ min-height: 30px;
81
+ min-width: 120px;
82
+ font-size: 19px;
83
+ cursor: pointer;
84
+ }
85
+
86
+ .disabled {
87
+ opacity: 0.6;
88
+ cursor: not-allowed;
89
+ }
90
+
91
+ .footer-button-giftback {
92
+ display: flex;
93
+ justify-content: end;
94
+ margin-top: 14px;
95
+ }
@@ -0,0 +1,111 @@
1
+ import { h } from "@stencil/core";
2
+ export class GiftbackProgress {
3
+ constructor() {
4
+ this.usedValue = 0;
5
+ this.loading = false;
6
+ this.bonus = {
7
+ totalBonus: 0,
8
+ cartId: "",
9
+ minimumPurchase: 0,
10
+ bonusBalance: 0,
11
+ calculatedValue: 0,
12
+ firstValidityDate: ""
13
+ };
14
+ this.reserve = undefined;
15
+ }
16
+ componentWillLoad() {
17
+ this.usedValue = parseFloat(this.bonus.bonusBalance.toString());
18
+ }
19
+ handleSliderChange(event) {
20
+ const input = event.target;
21
+ this.usedValue = parseFloat(input.value);
22
+ }
23
+ async handleReserve() {
24
+ this.reserve(this.usedValue);
25
+ }
26
+ render() {
27
+ const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
28
+ return (h("div", { key: '2776b6595fb2327040dd6367b3a449e548c61071', class: "giftback-container" }, h("p", { key: '4c372a1651a1c47301114eac800ed6b0b4468253' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: 'dbc855a1f69a7f361b669641a3107845a5eb6c90' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: '6cbb90dffbc56eb2154c994535560b806d098357', class: "validity" }, "V\u00E1lido at\u00E9: ", this.bonus.firstValidityDate), h("p", { key: '8627a67e6c50117b11338243b3a75877be933c93' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: '5f33968f5093f8fa4bd3356edaeedd5615e1f8ed' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: '7a0f8ba1f90dc90b63165711ede6ff5b2675cd2a', class: "progress-container" }, h("span", { key: '5ff34809c9bf65da14da6c2d517469f369f9f229' }, "R$ 0"), h("input", { key: '9e6dd1ebc75af146a9c4b3ecb14fdd0b735a2aaf', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: 'fbec542c319bbe4fbfe949634afadbf8a0767549' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: '89674dea3607e2e3af91a5cb82f5fa85666477f3', class: "remaining" }, "Faltam ", h("strong", { key: '96609b76717648932e71f56d3fbaa30a1cd9c742' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: 'a0b45a1749e930c057aff3025fbff3cad23023fb', class: "footer-button-giftback" }, h("button", { key: 'c8d54cadf35b81e284b5ec052849c3e3b8c13a55', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve() }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
29
+ }
30
+ static get is() { return "giftback-progress"; }
31
+ static get encapsulation() { return "shadow"; }
32
+ static get originalStyleUrls() {
33
+ return {
34
+ "$": ["giftback-progress.css"]
35
+ };
36
+ }
37
+ static get styleUrls() {
38
+ return {
39
+ "$": ["giftback-progress.css"]
40
+ };
41
+ }
42
+ static get properties() {
43
+ return {
44
+ "loading": {
45
+ "type": "boolean",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "boolean",
49
+ "resolved": "boolean",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": false,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": ""
57
+ },
58
+ "attribute": "loading",
59
+ "reflect": false,
60
+ "defaultValue": "false"
61
+ },
62
+ "bonus": {
63
+ "type": "unknown",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "Partial<IBonus>",
67
+ "resolved": "{ hasBonus?: boolean; bonusBalance?: number; totalBonus?: number; minimumPurchase?: number; bonusIds?: string; firstValidityDate?: string; history?: [{ validityStart: string; validityEnd: string; value: number; }, { validityStart: string; validityEnd: string; value: number; }]; storeId?: number; userId?: number; cartId?: string; calculatedValue?: number; totalValue?: number; }",
68
+ "references": {
69
+ "Partial": {
70
+ "location": "global",
71
+ "id": "global::Partial"
72
+ },
73
+ "IBonus": {
74
+ "location": "import",
75
+ "path": "../../../../dto/validate.pin.bonus",
76
+ "id": "src/dto/validate.pin.bonus.ts::IBonus"
77
+ }
78
+ }
79
+ },
80
+ "required": false,
81
+ "optional": false,
82
+ "docs": {
83
+ "tags": [],
84
+ "text": ""
85
+ },
86
+ "defaultValue": "{\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n }"
87
+ },
88
+ "reserve": {
89
+ "type": "unknown",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "(amountRedeemed: number) => void",
93
+ "resolved": "(amountRedeemed: number) => void",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ }
102
+ }
103
+ };
104
+ }
105
+ static get states() {
106
+ return {
107
+ "usedValue": {}
108
+ };
109
+ }
110
+ }
111
+ //# sourceMappingURL=giftback-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"giftback-progress.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ1D,MAAM,OAAO,gBAAgB;;yBAKI,CAAC;uBAEH,KAAK;qBAEC;YAC7B,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,EAAE;YACV,eAAe,EAAE,CAAC;YAClB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,CAAC;YAClB,iBAAiB,EAAE,EAAE;SACxB;;;IAID,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,kBAAkB,CAAC,KAAY;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,aAAa;QACf,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACF,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAE7E,OAAO,CACH,4DAAK,KAAK,EAAC,oBAAoB;YAC3B;;gBACoB;;oBAAY,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;6CACtE;YACJ,0DAAG,KAAK,EAAC,UAAU;;gBAAc,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAK;YAElE;;gBAAwB;;oBAAY,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;gCAAiB;YAExF,4DAAK,KAAK,EAAC,oBAAoB;gBAC3B,sEAAiB;gBACjB,8DACI,QAAQ,QACR,IAAI,EAAC,OAAO,EACZ,GAAG,EAAC,GAAG,EACP,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,GACpD;gBACF;;oBAAU,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAQ,CAChD;YAEN,0DAAG,KAAK,EAAC,WAAW;;gBACT;;oBAAa,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;4DACxG;YAEJ,4DAAK,KAAK,EAAC,wBAAwB;gBAC/B,+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,SAAS,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,CACJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, State, Prop } from '@stencil/core';\nimport { IBonus } from '../../../../dto/validate.pin.bonus';\n\n@Component({\n tag: 'giftback-progress',\n styleUrl: 'giftback-progress.css',\n shadow: true,\n})\nexport class GiftbackProgress {\n // @Prop() maxValue: number = 50; // Valor máximo de Giftback permitido na compra\n // @Prop() totalGiftback: number = 300; // Valor total disponível de Giftback\n // @Prop() validityDate: string = '30/10/2024'; // Data de validade\n\n @State() usedValue: number = 0; // Valor inicial de Giftback utilizado\n\n @Prop() loading: boolean = false;\n\n @Prop() bonus: Partial<IBonus> = {\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n };\n\n @Prop() reserve: (amountRedeemed: number) => void;\n\n componentWillLoad() {\n this.usedValue = parseFloat(this.bonus.bonusBalance.toString());\n }\n\n handleSliderChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.usedValue = parseFloat(input.value);\n }\n\n async handleReserve() {\n this.reserve(this.usedValue);\n }\n\n render() {\n const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;\n\n return (\n <div class=\"giftback-container\">\n <p>\n Você possui até <strong>R$ {this.bonus.totalBonus.toFixed(2)}</strong> de Giftback nessa compra!\n </p>\n <p class=\"validity\">Válido até: {this.bonus.firstValidityDate}</p>\n\n <p>Você está utilizando <strong>R$ {this.usedValue.toFixed(2)}</strong> nessa compra</p>\n\n <div class=\"progress-container\">\n <span>R$ 0</span>\n <input\n disabled\n type=\"range\"\n min=\"0\"\n step=\"0.01\"\n max={this.bonus.totalBonus}\n value={this.usedValue}\n onInput={(event) => this.handleSliderChange(event)}\n />\n <span>R$ {this.bonus.totalBonus.toFixed(2)}</span>\n </div>\n\n <p class=\"remaining\">\n Faltam <strong>R$ { remainingGiftback > 0 ? remainingGiftback.toFixed(2): Number(0).toFixed(2)}</strong> para utilizar o valor total do Giftback.\n </p>\n\n <div class=\"footer-button-giftback\">\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.handleReserve()}>\n {\n !this.loading ? \"Aplicar\" : <loading-spinner size=\"10px\" color=\"#fff\" />\n }\n </button>\n </div>\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,75 @@
1
+ import { h } from "@stencil/core";
2
+ export class PhoneInput {
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: 'e61b8c94eadb746b3bb163b58f2eb0d6edb5da2b', class: "form-container" }, h("phone-input-mask", { key: 'bdbf45fc9484c60d0178b3ced6194e8f2b7622a5', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("button", { key: '757ab72b47a673bcd27236ef9a50b201a6e75477', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : h("loading-spinner", { size: "25px", color: "#fff" }))));
14
+ }
15
+ static get is() { return "phone-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.input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone.input.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/phone/phone.input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKnD,MAAM,OAAO,UAAU;;;;;;IAQnB,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,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,GAAG,GAAG,GAAI;YACrF,+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,SAAS,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'phone-input'\n})\nexport class PhoneInput {\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={this.value} ref={ref => this.phoneInputMask = ref} />\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\n {\n !this.loading ? \"validar\" : <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: 'b6cf2bbbb16ae4dbaa3850c450b21251f99d4bb6', 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: '401a70f94253ae91a8b478fc90571c29c737e424', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: 'c3c44a6af1badf5c82ae1839e93a12aa58796e17', class: "modal" }, h("div", { key: '6a496c77ea2ebce8cf69032d2cd4ce5c9d81d06a', class: "modal-header" }, h("h3", { key: 'e7c7dce48247d86143ad80bfb22dde660a778973' }, this.modalTitle), h("button", { key: 'c8bf96f0e4076f32289a6b4b88d16d721dc4cf19', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '23b43b8f0dca9c850fabc0183d4b7f68e8702910', class: "modal-body" }, h("slot", { key: '6d4b908d54be27679dc45daf2c1f0312bd924a17' })))));
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,58 @@
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
+ }
8
+ async componentWillLoad() {
9
+ console.log('this.cartId', this.cartId);
10
+ console.log('this.orderid', this.orderId);
11
+ if (this.cartId && this.orderId) {
12
+ await new CrmBonusService().updateOrder(this.cartId, this.orderId);
13
+ }
14
+ }
15
+ render() {
16
+ return (h("div", { key: '86d63a792c62b57256fb0b52daadff4302c7cc2a' }));
17
+ }
18
+ static get is() { return "pedido-finalizado"; }
19
+ static get properties() {
20
+ return {
21
+ "cartId": {
22
+ "type": "string",
23
+ "mutable": false,
24
+ "complexType": {
25
+ "original": "string",
26
+ "resolved": "string",
27
+ "references": {}
28
+ },
29
+ "required": false,
30
+ "optional": false,
31
+ "docs": {
32
+ "tags": [],
33
+ "text": ""
34
+ },
35
+ "attribute": "cartid",
36
+ "reflect": false
37
+ },
38
+ "orderId": {
39
+ "type": "number",
40
+ "mutable": false,
41
+ "complexType": {
42
+ "original": "number",
43
+ "resolved": "number",
44
+ "references": {}
45
+ },
46
+ "required": false,
47
+ "optional": false,
48
+ "docs": {
49
+ "tags": [],
50
+ "text": ""
51
+ },
52
+ "attribute": "orderid",
53
+ "reflect": false
54
+ }
55
+ };
56
+ }
57
+ }
58
+ //# 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;;;;;IAKf,KAAK,CAAC,iBAAiB;QACnB,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC7B,MAAM,IAAI,eAAe,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QACtE,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\n async componentWillLoad() {\n console.log('this.cartId', this.cartId);\n console.log('this.orderid', this.orderId);\n if(this.cartId && this.orderId) {\n await new CrmBonusService().updateOrder(this.cartId, this.orderId)\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
+ }