@gustavo-valsechi/client 1.3.23 → 1.3.25

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 (217) hide show
  1. package/dist/components/index.d.ts +3 -10
  2. package/dist/components/index.mjs +3082 -11
  3. package/dist/components/styles.d.ts +2 -0
  4. package/dist/components/styles.mjs +21 -0
  5. package/dist/components/types/avatar/index.d.ts +2 -0
  6. package/dist/components/types/avatar/index.mjs +88 -0
  7. package/dist/components/types/avatar/styles.d.ts +1 -0
  8. package/dist/components/types/avatar/styles.mjs +61 -0
  9. package/dist/components/types/badge/index.d.ts +2 -0
  10. package/dist/components/types/badge/index.mjs +324 -0
  11. package/dist/components/types/badge/styles.d.ts +1 -0
  12. package/dist/components/types/badge/styles.mjs +39 -0
  13. package/dist/components/types/block/index.d.ts +2 -0
  14. package/dist/components/types/block/index.mjs +3078 -0
  15. package/dist/components/types/block/styles.d.ts +2 -0
  16. package/dist/components/types/block/styles.mjs +32 -0
  17. package/dist/components/types/chart/index.d.ts +2 -0
  18. package/dist/components/types/chart/index.mjs +322 -0
  19. package/dist/components/types/chart/styles.d.ts +1 -0
  20. package/dist/components/types/chart/styles.mjs +10 -0
  21. package/dist/components/types/credit-card/assets/index.d.ts +4 -0
  22. package/dist/components/types/credit-card/assets/index.mjs +23 -0
  23. package/dist/components/types/credit-card/card/index.d.ts +2 -0
  24. package/dist/components/types/credit-card/card/index.mjs +732 -0
  25. package/dist/components/types/credit-card/card/styles.d.ts +1 -0
  26. package/dist/components/types/credit-card/card/styles.mjs +138 -0
  27. package/dist/components/types/credit-card/functions/index.d.ts +2 -0
  28. package/dist/components/types/credit-card/functions/index.mjs +61 -0
  29. package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
  30. package/dist/components/types/credit-card/functions/styles.mjs +43 -0
  31. package/dist/components/types/credit-card/index.d.ts +2 -0
  32. package/dist/components/types/credit-card/index.mjs +853 -0
  33. package/dist/components/types/credit-card/styles.d.ts +1 -0
  34. package/dist/components/types/credit-card/styles.mjs +40 -0
  35. package/dist/components/types/credit-card/tools/index.d.ts +6 -0
  36. package/dist/components/types/credit-card/tools/index.mjs +566 -0
  37. package/dist/components/types/form/index.d.ts +3 -0
  38. package/dist/components/types/form/index.mjs +711 -0
  39. package/dist/components/types/form/styles.d.ts +1 -0
  40. package/dist/components/types/form/styles.mjs +21 -0
  41. package/dist/components/types/form/types/button/index.d.ts +2 -0
  42. package/dist/components/types/form/types/button/index.mjs +165 -0
  43. package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
  44. package/dist/components/types/form/types/button/loading/index.mjs +104 -0
  45. package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
  46. package/dist/components/types/form/types/button/loading/styles.mjs +94 -0
  47. package/dist/components/types/form/types/button/styles.d.ts +1 -0
  48. package/dist/components/types/form/types/button/styles.mjs +47 -0
  49. package/dist/components/types/form/types/datetime/index.d.ts +2 -0
  50. package/dist/components/types/form/types/datetime/index.mjs +93 -0
  51. package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
  52. package/dist/components/types/form/types/datetime/styles.mjs +46 -0
  53. package/dist/components/types/form/types/file/index.d.ts +2 -0
  54. package/dist/components/types/form/types/file/index.mjs +91 -0
  55. package/dist/components/types/form/types/file/styles.d.ts +1 -0
  56. package/dist/components/types/form/types/file/styles.mjs +33 -0
  57. package/dist/components/types/form/types/index.d.ts +7 -0
  58. package/dist/components/types/form/types/index.mjs +603 -0
  59. package/dist/components/types/form/types/input/index.d.ts +2 -0
  60. package/dist/components/types/form/types/input/index.mjs +113 -0
  61. package/dist/components/types/form/types/input/styles.d.ts +1 -0
  62. package/dist/components/types/form/types/input/styles.mjs +52 -0
  63. package/dist/components/types/form/types/label/index.d.ts +2 -0
  64. package/dist/components/types/form/types/label/index.mjs +19 -0
  65. package/dist/components/types/form/types/label/styles.d.ts +1 -0
  66. package/dist/components/types/form/types/label/styles.mjs +13 -0
  67. package/dist/components/types/form/types/select/index.d.ts +2 -0
  68. package/dist/components/types/form/types/select/index.mjs +125 -0
  69. package/dist/components/types/form/types/select/styles.d.ts +1 -0
  70. package/dist/components/types/form/types/select/styles.mjs +58 -0
  71. package/dist/components/types/form/types/textarea/index.d.ts +2 -0
  72. package/dist/components/types/form/types/textarea/index.mjs +92 -0
  73. package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
  74. package/dist/components/types/form/types/textarea/styles.mjs +45 -0
  75. package/dist/components/types/index.d.ts +11 -0
  76. package/dist/components/types/index.mjs +3094 -0
  77. package/dist/components/types/loading/app/index.d.ts +2 -0
  78. package/dist/components/types/loading/app/index.mjs +128 -0
  79. package/dist/components/types/loading/app/styles.d.ts +1 -0
  80. package/dist/components/types/loading/app/styles.mjs +93 -0
  81. package/dist/components/types/loading/bar/index.d.ts +2 -0
  82. package/dist/components/types/loading/bar/index.mjs +33 -0
  83. package/dist/components/types/loading/bar/styles.d.ts +1 -0
  84. package/dist/components/types/loading/bar/styles.mjs +27 -0
  85. package/dist/components/types/loading/index.d.ts +2 -0
  86. package/dist/components/types/loading/index.mjs +156 -0
  87. package/dist/components/types/logo/index.d.ts +2 -0
  88. package/dist/components/types/logo/index.mjs +34 -0
  89. package/dist/components/types/logo/styles.d.ts +1 -0
  90. package/dist/components/types/logo/styles.mjs +25 -0
  91. package/dist/components/types/lottie/animations/index.d.ts +293 -0
  92. package/dist/components/types/lottie/animations/index.mjs +10 -0
  93. package/dist/components/types/lottie/index.d.ts +2 -0
  94. package/dist/components/types/lottie/index.mjs +69 -0
  95. package/dist/components/types/lottie/styles.d.ts +1 -0
  96. package/dist/components/types/lottie/styles.mjs +28 -0
  97. package/dist/components/types/modal/index.d.ts +2 -0
  98. package/dist/components/types/modal/index.mjs +2324 -0
  99. package/dist/components/types/modal/styles.d.ts +1 -0
  100. package/dist/components/types/modal/styles.mjs +135 -0
  101. package/dist/components/types/table/index.d.ts +3 -0
  102. package/dist/components/types/table/index.mjs +3079 -0
  103. package/dist/components/types/table/modal/actions.d.ts +10 -0
  104. package/dist/components/types/table/modal/actions.mjs +87 -0
  105. package/dist/components/types/table/modal/index.d.ts +2 -0
  106. package/dist/components/types/table/modal/index.mjs +3076 -0
  107. package/dist/components/types/table/modal/styles.d.ts +1 -0
  108. package/dist/components/types/table/modal/styles.mjs +58 -0
  109. package/dist/components/types/table/paginate/index.d.ts +2 -0
  110. package/dist/components/types/table/paginate/index.mjs +96 -0
  111. package/dist/components/types/table/paginate/styles.d.ts +1 -0
  112. package/dist/components/types/table/paginate/styles.mjs +42 -0
  113. package/dist/components/types/table/styles.d.ts +5 -0
  114. package/dist/components/types/table/styles.mjs +268 -0
  115. package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
  116. package/dist/contexts/icon/assets/brands/index.mjs +19 -0
  117. package/dist/contexts/icon/assets/index.d.ts +6 -0
  118. package/dist/contexts/icon/assets/index.mjs +44 -0
  119. package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
  120. package/dist/contexts/icon/assets/regular/index.mjs +19 -0
  121. package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
  122. package/dist/contexts/icon/assets/solid/index.mjs +19 -0
  123. package/dist/contexts/icon/index.d.ts +4 -0
  124. package/dist/contexts/icon/index.mjs +281 -0
  125. package/dist/contexts/icon/styles.d.ts +1 -0
  126. package/dist/contexts/icon/styles.mjs +10 -0
  127. package/dist/contexts/index.d.ts +4 -20
  128. package/dist/contexts/index.mjs +486 -4
  129. package/dist/contexts/modal/index.d.ts +4 -0
  130. package/dist/contexts/modal/index.mjs +66 -0
  131. package/dist/contexts/modal/styles.d.ts +1 -0
  132. package/dist/contexts/modal/styles.mjs +10 -0
  133. package/dist/contexts/theme/content.d.ts +3 -0
  134. package/dist/contexts/theme/content.mjs +81 -0
  135. package/dist/contexts/theme/index.d.ts +4 -0
  136. package/dist/contexts/theme/index.mjs +201 -0
  137. package/dist/contexts/theme/styles.d.ts +1 -0
  138. package/dist/contexts/theme/styles.mjs +84 -0
  139. package/dist/contexts/tooltip/index.d.ts +6 -0
  140. package/dist/contexts/tooltip/index.mjs +117 -0
  141. package/dist/contexts/tooltip/styles.d.ts +1 -0
  142. package/dist/contexts/tooltip/styles.mjs +46 -0
  143. package/dist/index.d.ts +4 -17
  144. package/dist/index.mjs +3312 -4
  145. package/dist/interfaces/components/avatar/index.d.ts +6 -0
  146. package/dist/interfaces/components/avatar/index.mjs +1 -0
  147. package/dist/interfaces/components/badge/index.d.ts +3 -0
  148. package/dist/interfaces/components/badge/index.mjs +1 -0
  149. package/dist/interfaces/components/block/index.d.ts +16 -0
  150. package/dist/interfaces/components/block/index.mjs +1 -0
  151. package/dist/interfaces/components/chart/index.d.ts +9 -0
  152. package/dist/interfaces/components/chart/index.mjs +1 -0
  153. package/dist/interfaces/components/credit-card/index.d.ts +16 -0
  154. package/dist/interfaces/components/credit-card/index.mjs +1 -0
  155. package/dist/interfaces/components/form/button/index.d.ts +7 -0
  156. package/dist/interfaces/components/form/button/index.mjs +1 -0
  157. package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
  158. package/dist/interfaces/components/form/datetime/index.mjs +1 -0
  159. package/dist/interfaces/components/form/file/index.d.ts +14 -0
  160. package/dist/interfaces/components/form/file/index.mjs +1 -0
  161. package/dist/interfaces/components/form/index.d.ts +16 -0
  162. package/dist/interfaces/components/form/index.mjs +1 -0
  163. package/dist/interfaces/components/form/input/index.d.ts +17 -0
  164. package/dist/interfaces/components/form/input/index.mjs +1 -0
  165. package/dist/interfaces/components/form/label/index.d.ts +5 -0
  166. package/dist/interfaces/components/form/label/index.mjs +1 -0
  167. package/dist/interfaces/components/form/select/index.d.ts +14 -0
  168. package/dist/interfaces/components/form/select/index.mjs +1 -0
  169. package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
  170. package/dist/interfaces/components/form/textarea/index.mjs +1 -0
  171. package/dist/interfaces/components/index.d.ts +26 -0
  172. package/dist/interfaces/components/index.mjs +1 -0
  173. package/dist/interfaces/components/loading/app/index.d.ts +3 -0
  174. package/dist/interfaces/components/loading/app/index.mjs +1 -0
  175. package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
  176. package/dist/interfaces/components/loading/bar/index.mjs +1 -0
  177. package/dist/interfaces/components/loading/index.d.ts +2 -0
  178. package/dist/interfaces/components/loading/index.mjs +1 -0
  179. package/dist/interfaces/components/logo/index.d.ts +6 -0
  180. package/dist/interfaces/components/logo/index.mjs +1 -0
  181. package/dist/interfaces/components/lottie/index.d.ts +12 -0
  182. package/dist/interfaces/components/lottie/index.mjs +1 -0
  183. package/dist/interfaces/components/modal/index.d.ts +16 -0
  184. package/dist/interfaces/components/modal/index.mjs +1 -0
  185. package/dist/interfaces/components/table/index.d.ts +46 -0
  186. package/dist/interfaces/components/table/index.mjs +1 -0
  187. package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
  188. package/dist/interfaces/components/table/paginate/index.mjs +1 -0
  189. package/dist/interfaces/contexts/icon/index.d.ts +3 -0
  190. package/dist/interfaces/contexts/icon/index.mjs +1 -0
  191. package/dist/interfaces/contexts/index.d.ts +8 -0
  192. package/dist/interfaces/contexts/index.mjs +1 -0
  193. package/dist/interfaces/contexts/modal/index.d.ts +16 -0
  194. package/dist/interfaces/contexts/modal/index.mjs +2 -0
  195. package/dist/interfaces/contexts/theme/index.d.ts +42 -0
  196. package/dist/interfaces/contexts/theme/index.mjs +1 -0
  197. package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
  198. package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
  199. package/dist/interfaces/index.d.ts +2 -12
  200. package/dist/interfaces/index.mjs +0 -2
  201. package/dist/styled.d.ts +6 -0
  202. package/dist/tsup.config.d.ts +2 -0
  203. package/package.json +13 -7
  204. package/dist/components/index.d.mts +0 -10
  205. package/dist/components/index.js +0 -63
  206. package/dist/contexts/index.d.mts +0 -20
  207. package/dist/contexts/index.js +0 -30
  208. package/dist/index-BhaGW0O1.d.ts +0 -601
  209. package/dist/index-BxA8LyyD.d.mts +0 -68
  210. package/dist/index-DDi0w5pw.d.mts +0 -601
  211. package/dist/index-DT7VKE7H.d.ts +0 -68
  212. package/dist/index-Da-DtPS-.d.mts +0 -29
  213. package/dist/index-Da-DtPS-.d.ts +0 -29
  214. package/dist/index.d.mts +0 -17
  215. package/dist/index.js +0 -28
  216. package/dist/interfaces/index.d.mts +0 -12
  217. package/dist/interfaces/index.js +0 -25
@@ -0,0 +1,2324 @@
1
+ "use client";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined") return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
+ // If the importer is in node compatibility mode or this is not an ESM
28
+ // file that has been converted to a CommonJS file using a Babel-
29
+ // compatible transform (i.e. "__esModule" has not been set), then set
30
+ // "default" to the CommonJS "module.exports" for node compatibility.
31
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
+ mod
33
+ ));
34
+
35
+ // node_modules/credit-card-type/dist/lib/card-types.js
36
+ var require_card_types = __commonJS({
37
+ "node_modules/credit-card-type/dist/lib/card-types.js"(exports, module) {
38
+ "use strict";
39
+ var cardTypes = {
40
+ visa: {
41
+ niceType: "Visa",
42
+ type: "visa",
43
+ patterns: [4],
44
+ gaps: [4, 8, 12],
45
+ lengths: [16, 18, 19],
46
+ code: {
47
+ name: "CVV",
48
+ size: 3
49
+ }
50
+ },
51
+ mastercard: {
52
+ niceType: "Mastercard",
53
+ type: "mastercard",
54
+ patterns: [[51, 55], [2221, 2229], [223, 229], [23, 26], [270, 271], 2720],
55
+ gaps: [4, 8, 12],
56
+ lengths: [16],
57
+ code: {
58
+ name: "CVC",
59
+ size: 3
60
+ }
61
+ },
62
+ "american-express": {
63
+ niceType: "American Express",
64
+ type: "american-express",
65
+ patterns: [34, 37],
66
+ gaps: [4, 10],
67
+ lengths: [15],
68
+ code: {
69
+ name: "CID",
70
+ size: 4
71
+ }
72
+ },
73
+ "diners-club": {
74
+ niceType: "Diners Club",
75
+ type: "diners-club",
76
+ patterns: [[300, 305], 36, 38, 39],
77
+ gaps: [4, 10],
78
+ lengths: [14, 16, 19],
79
+ code: {
80
+ name: "CVV",
81
+ size: 3
82
+ }
83
+ },
84
+ discover: {
85
+ niceType: "Discover",
86
+ type: "discover",
87
+ patterns: [6011, [644, 649], 65],
88
+ gaps: [4, 8, 12],
89
+ lengths: [16, 19],
90
+ code: {
91
+ name: "CID",
92
+ size: 3
93
+ }
94
+ },
95
+ jcb: {
96
+ niceType: "JCB",
97
+ type: "jcb",
98
+ patterns: [2131, 1800, [3528, 3589]],
99
+ gaps: [4, 8, 12],
100
+ lengths: [16, 17, 18, 19],
101
+ code: {
102
+ name: "CVV",
103
+ size: 3
104
+ }
105
+ },
106
+ unionpay: {
107
+ niceType: "UnionPay",
108
+ type: "unionpay",
109
+ patterns: [
110
+ 620,
111
+ [624, 626],
112
+ [62100, 62182],
113
+ [62184, 62187],
114
+ [62185, 62197],
115
+ [62200, 62205],
116
+ [622010, 622999],
117
+ 622018,
118
+ [622019, 622999],
119
+ [62207, 62209],
120
+ [622126, 622925],
121
+ [623, 626],
122
+ 6270,
123
+ 6272,
124
+ 6276,
125
+ [627700, 627779],
126
+ [627781, 627799],
127
+ [6282, 6289],
128
+ 6291,
129
+ 6292,
130
+ 810,
131
+ [8110, 8131],
132
+ [8132, 8151],
133
+ [8152, 8163],
134
+ [8164, 8171]
135
+ ],
136
+ gaps: [4, 8, 12],
137
+ lengths: [14, 15, 16, 17, 18, 19],
138
+ code: {
139
+ name: "CVN",
140
+ size: 3
141
+ }
142
+ },
143
+ maestro: {
144
+ niceType: "Maestro",
145
+ type: "maestro",
146
+ patterns: [
147
+ 493698,
148
+ [5e5, 504174],
149
+ [504176, 506698],
150
+ [506779, 508999],
151
+ [56, 59],
152
+ 63,
153
+ 67,
154
+ 6
155
+ ],
156
+ gaps: [4, 8, 12],
157
+ lengths: [12, 13, 14, 15, 16, 17, 18, 19],
158
+ code: {
159
+ name: "CVC",
160
+ size: 3
161
+ }
162
+ },
163
+ elo: {
164
+ niceType: "Elo",
165
+ type: "elo",
166
+ patterns: [
167
+ 401178,
168
+ 401179,
169
+ 438935,
170
+ 457631,
171
+ 457632,
172
+ 431274,
173
+ 451416,
174
+ 457393,
175
+ 504175,
176
+ [506699, 506778],
177
+ [509e3, 509999],
178
+ 627780,
179
+ 636297,
180
+ 636368,
181
+ [650031, 650033],
182
+ [650035, 650051],
183
+ [650405, 650439],
184
+ [650485, 650538],
185
+ [650541, 650598],
186
+ [650700, 650718],
187
+ [650720, 650727],
188
+ [650901, 650978],
189
+ [651652, 651679],
190
+ [655e3, 655019],
191
+ [655021, 655058]
192
+ ],
193
+ gaps: [4, 8, 12],
194
+ lengths: [16],
195
+ code: {
196
+ name: "CVE",
197
+ size: 3
198
+ }
199
+ },
200
+ mir: {
201
+ niceType: "Mir",
202
+ type: "mir",
203
+ patterns: [[2200, 2204]],
204
+ gaps: [4, 8, 12],
205
+ lengths: [16, 17, 18, 19],
206
+ code: {
207
+ name: "CVP2",
208
+ size: 3
209
+ }
210
+ },
211
+ hiper: {
212
+ niceType: "Hiper",
213
+ type: "hiper",
214
+ patterns: [637095, 63737423, 63743358, 637568, 637599, 637609, 637612],
215
+ gaps: [4, 8, 12],
216
+ lengths: [16],
217
+ code: {
218
+ name: "CVC",
219
+ size: 3
220
+ }
221
+ },
222
+ hipercard: {
223
+ niceType: "Hipercard",
224
+ type: "hipercard",
225
+ patterns: [606282],
226
+ gaps: [4, 8, 12],
227
+ lengths: [16],
228
+ code: {
229
+ name: "CVC",
230
+ size: 3
231
+ }
232
+ }
233
+ };
234
+ module.exports = cardTypes;
235
+ }
236
+ });
237
+
238
+ // node_modules/credit-card-type/dist/lib/clone.js
239
+ var require_clone = __commonJS({
240
+ "node_modules/credit-card-type/dist/lib/clone.js"(exports) {
241
+ "use strict";
242
+ Object.defineProperty(exports, "__esModule", { value: true });
243
+ exports.clone = void 0;
244
+ function clone(originalObject) {
245
+ if (!originalObject) {
246
+ return null;
247
+ }
248
+ return JSON.parse(JSON.stringify(originalObject));
249
+ }
250
+ exports.clone = clone;
251
+ }
252
+ });
253
+
254
+ // node_modules/credit-card-type/dist/lib/matches.js
255
+ var require_matches = __commonJS({
256
+ "node_modules/credit-card-type/dist/lib/matches.js"(exports) {
257
+ "use strict";
258
+ Object.defineProperty(exports, "__esModule", { value: true });
259
+ exports.matches = void 0;
260
+ function matchesRange(cardNumber, min, max) {
261
+ var maxLengthToCheck = String(min).length;
262
+ var substr = cardNumber.substr(0, maxLengthToCheck);
263
+ var integerRepresentationOfCardNumber = parseInt(substr, 10);
264
+ min = parseInt(String(min).substr(0, substr.length), 10);
265
+ max = parseInt(String(max).substr(0, substr.length), 10);
266
+ return integerRepresentationOfCardNumber >= min && integerRepresentationOfCardNumber <= max;
267
+ }
268
+ function matchesPattern(cardNumber, pattern) {
269
+ pattern = String(pattern);
270
+ return pattern.substring(0, cardNumber.length) === cardNumber.substring(0, pattern.length);
271
+ }
272
+ function matches(cardNumber, pattern) {
273
+ if (Array.isArray(pattern)) {
274
+ return matchesRange(cardNumber, pattern[0], pattern[1]);
275
+ }
276
+ return matchesPattern(cardNumber, pattern);
277
+ }
278
+ exports.matches = matches;
279
+ }
280
+ });
281
+
282
+ // node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js
283
+ var require_add_matching_cards_to_results = __commonJS({
284
+ "node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(exports) {
285
+ "use strict";
286
+ Object.defineProperty(exports, "__esModule", { value: true });
287
+ exports.addMatchingCardsToResults = void 0;
288
+ var clone_1 = require_clone();
289
+ var matches_1 = require_matches();
290
+ function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {
291
+ var i, patternLength;
292
+ for (i = 0; i < cardConfiguration.patterns.length; i++) {
293
+ var pattern = cardConfiguration.patterns[i];
294
+ if (!matches_1.matches(cardNumber, pattern)) {
295
+ continue;
296
+ }
297
+ var clonedCardConfiguration = clone_1.clone(cardConfiguration);
298
+ if (Array.isArray(pattern)) {
299
+ patternLength = String(pattern[0]).length;
300
+ } else {
301
+ patternLength = String(pattern).length;
302
+ }
303
+ if (cardNumber.length >= patternLength) {
304
+ clonedCardConfiguration.matchStrength = patternLength;
305
+ }
306
+ results.push(clonedCardConfiguration);
307
+ break;
308
+ }
309
+ }
310
+ exports.addMatchingCardsToResults = addMatchingCardsToResults;
311
+ }
312
+ });
313
+
314
+ // node_modules/credit-card-type/dist/lib/is-valid-input-type.js
315
+ var require_is_valid_input_type = __commonJS({
316
+ "node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(exports) {
317
+ "use strict";
318
+ Object.defineProperty(exports, "__esModule", { value: true });
319
+ exports.isValidInputType = void 0;
320
+ function isValidInputType(cardNumber) {
321
+ return typeof cardNumber === "string" || cardNumber instanceof String;
322
+ }
323
+ exports.isValidInputType = isValidInputType;
324
+ }
325
+ });
326
+
327
+ // node_modules/credit-card-type/dist/lib/find-best-match.js
328
+ var require_find_best_match = __commonJS({
329
+ "node_modules/credit-card-type/dist/lib/find-best-match.js"(exports) {
330
+ "use strict";
331
+ Object.defineProperty(exports, "__esModule", { value: true });
332
+ exports.findBestMatch = void 0;
333
+ function hasEnoughResultsToDetermineBestMatch(results) {
334
+ var numberOfResultsWithMaxStrengthProperty = results.filter(function(result) {
335
+ return result.matchStrength;
336
+ }).length;
337
+ return numberOfResultsWithMaxStrengthProperty > 0 && numberOfResultsWithMaxStrengthProperty === results.length;
338
+ }
339
+ function findBestMatch(results) {
340
+ if (!hasEnoughResultsToDetermineBestMatch(results)) {
341
+ return null;
342
+ }
343
+ return results.reduce(function(bestMatch, result) {
344
+ if (!bestMatch) {
345
+ return result;
346
+ }
347
+ if (Number(bestMatch.matchStrength) < Number(result.matchStrength)) {
348
+ return result;
349
+ }
350
+ return bestMatch;
351
+ });
352
+ }
353
+ exports.findBestMatch = findBestMatch;
354
+ }
355
+ });
356
+
357
+ // node_modules/credit-card-type/dist/index.js
358
+ var require_dist = __commonJS({
359
+ "node_modules/credit-card-type/dist/index.js"(exports, module) {
360
+ "use strict";
361
+ var __assign = exports && exports.__assign || function() {
362
+ __assign = Object.assign || function(t) {
363
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
364
+ s = arguments[i];
365
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
366
+ t[p] = s[p];
367
+ }
368
+ return t;
369
+ };
370
+ return __assign.apply(this, arguments);
371
+ };
372
+ var cardTypes = require_card_types();
373
+ var add_matching_cards_to_results_1 = require_add_matching_cards_to_results();
374
+ var is_valid_input_type_1 = require_is_valid_input_type();
375
+ var find_best_match_1 = require_find_best_match();
376
+ var clone_1 = require_clone();
377
+ var customCards = {};
378
+ var cardNames = {
379
+ VISA: "visa",
380
+ MASTERCARD: "mastercard",
381
+ AMERICAN_EXPRESS: "american-express",
382
+ DINERS_CLUB: "diners-club",
383
+ DISCOVER: "discover",
384
+ JCB: "jcb",
385
+ UNIONPAY: "unionpay",
386
+ MAESTRO: "maestro",
387
+ ELO: "elo",
388
+ MIR: "mir",
389
+ HIPER: "hiper",
390
+ HIPERCARD: "hipercard"
391
+ };
392
+ var ORIGINAL_TEST_ORDER = [
393
+ cardNames.VISA,
394
+ cardNames.MASTERCARD,
395
+ cardNames.AMERICAN_EXPRESS,
396
+ cardNames.DINERS_CLUB,
397
+ cardNames.DISCOVER,
398
+ cardNames.JCB,
399
+ cardNames.UNIONPAY,
400
+ cardNames.MAESTRO,
401
+ cardNames.ELO,
402
+ cardNames.MIR,
403
+ cardNames.HIPER,
404
+ cardNames.HIPERCARD
405
+ ];
406
+ var testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);
407
+ function findType(cardType) {
408
+ return customCards[cardType] || cardTypes[cardType];
409
+ }
410
+ function getAllCardTypes() {
411
+ return testOrder.map(function(cardType) {
412
+ return clone_1.clone(findType(cardType));
413
+ });
414
+ }
415
+ function getCardPosition(name, ignoreErrorForNotExisting) {
416
+ if (ignoreErrorForNotExisting === void 0) {
417
+ ignoreErrorForNotExisting = false;
418
+ }
419
+ var position = testOrder.indexOf(name);
420
+ if (!ignoreErrorForNotExisting && position === -1) {
421
+ throw new Error('"' + name + '" is not a supported card type.');
422
+ }
423
+ return position;
424
+ }
425
+ function creditCardType2(cardNumber) {
426
+ var results = [];
427
+ if (!is_valid_input_type_1.isValidInputType(cardNumber)) {
428
+ return results;
429
+ }
430
+ if (cardNumber.length === 0) {
431
+ return getAllCardTypes();
432
+ }
433
+ testOrder.forEach(function(cardType) {
434
+ var cardConfiguration = findType(cardType);
435
+ add_matching_cards_to_results_1.addMatchingCardsToResults(cardNumber, cardConfiguration, results);
436
+ });
437
+ var bestMatch = find_best_match_1.findBestMatch(results);
438
+ if (bestMatch) {
439
+ return [bestMatch];
440
+ }
441
+ return results;
442
+ }
443
+ creditCardType2.getTypeInfo = function(cardType) {
444
+ return clone_1.clone(findType(cardType));
445
+ };
446
+ creditCardType2.removeCard = function(name) {
447
+ var position = getCardPosition(name);
448
+ testOrder.splice(position, 1);
449
+ };
450
+ creditCardType2.addCard = function(config) {
451
+ var existingCardPosition = getCardPosition(config.type, true);
452
+ customCards[config.type] = config;
453
+ if (existingCardPosition === -1) {
454
+ testOrder.push(config.type);
455
+ }
456
+ };
457
+ creditCardType2.updateCard = function(cardType, updates) {
458
+ var originalObject = customCards[cardType] || cardTypes[cardType];
459
+ if (!originalObject) {
460
+ throw new Error('"' + cardType + "\" is not a recognized type. Use `addCard` instead.'");
461
+ }
462
+ if (updates.type && originalObject.type !== updates.type) {
463
+ throw new Error("Cannot overwrite type parameter.");
464
+ }
465
+ var clonedCard = clone_1.clone(originalObject);
466
+ clonedCard = __assign(__assign({}, clonedCard), updates);
467
+ customCards[clonedCard.type] = clonedCard;
468
+ };
469
+ creditCardType2.changeOrder = function(name, position) {
470
+ var currentPosition = getCardPosition(name);
471
+ testOrder.splice(currentPosition, 1);
472
+ testOrder.splice(position, 0, name);
473
+ };
474
+ creditCardType2.resetModifications = function() {
475
+ testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);
476
+ customCards = {};
477
+ };
478
+ creditCardType2.types = cardNames;
479
+ module.exports = creditCardType2;
480
+ }
481
+ });
482
+
483
+ // node_modules/luhn/src/luhn.js
484
+ var require_luhn = __commonJS({
485
+ "node_modules/luhn/src/luhn.js"(exports, module) {
486
+ "use strict";
487
+ module.exports = /* @__PURE__ */ (function() {
488
+ function validate(cardNumber) {
489
+ var trimmed = String(cardNumber).replace(/[\s]/g, ""), length = trimmed.length, odd = false, total = 0, calc, calc2;
490
+ if (!/^[0-9]+$/.test(trimmed)) {
491
+ return false;
492
+ }
493
+ for (var i = length; i > 0; i--) {
494
+ calc = parseInt(trimmed.charAt(i - 1));
495
+ if (!odd) {
496
+ total += calc;
497
+ } else {
498
+ calc2 = calc * 2;
499
+ switch (calc2) {
500
+ case 10:
501
+ calc2 = 1;
502
+ break;
503
+ case 12:
504
+ calc2 = 3;
505
+ break;
506
+ case 14:
507
+ calc2 = 5;
508
+ break;
509
+ case 16:
510
+ calc2 = 7;
511
+ break;
512
+ case 18:
513
+ calc2 = 9;
514
+ break;
515
+ default:
516
+ calc2 = calc2;
517
+ }
518
+ total += calc2;
519
+ }
520
+ odd = !odd;
521
+ }
522
+ return total !== 0 && total % 10 === 0;
523
+ }
524
+ return {
525
+ validate
526
+ };
527
+ })();
528
+ }
529
+ });
530
+
531
+ // components/types/modal/styles.tsx
532
+ import styled from "styled-components";
533
+ var Container = styled.div`
534
+ width: 100%;
535
+ height: 100%;
536
+ top: 0;
537
+ right: 0;
538
+ display: flex !important;
539
+ position: fixed;
540
+ z-index: ${(props) => props.toggle ? "9" : "-1"};
541
+ flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
542
+ transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
543
+ transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
544
+
545
+ .iz-modal-back {
546
+ width: 100%;
547
+ height: 100%;
548
+ background: rgb(0, 0, 0, 0.3);
549
+ opacity: ${(props) => props.toggle ? "1" : "0"};
550
+ transition: ease 0.3s;
551
+ position: absolute;
552
+ }
553
+
554
+ .iz-modal-container {
555
+ display: flex;
556
+ flex-direction: column;
557
+ height: ${(props) => props.position !== "center" ? "100%" : void 0};
558
+ width: ${(props) => props.position !== "center" ? "18rem" : void 0};
559
+ border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
560
+ max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
561
+ max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
562
+ background: ${({ theme }) => theme.primary};
563
+ transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(50%)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(43%)"};
564
+ opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
565
+ transition: ease 0.3s;
566
+ position: absolute;
567
+
568
+ ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
569
+
570
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
571
+ border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
572
+ width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
573
+ max-width: 100%;
574
+ padding-bottom: 3rem !important;
575
+
576
+ transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(0)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(50%)"};
577
+
578
+ ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
579
+ }
580
+
581
+ .iz-modal-header {
582
+ padding: 1.5rem 2rem;
583
+ display: flex;
584
+ align-items: center;
585
+ justify-content: space-between;
586
+ border-bottom: 1px solid rgb(0, 0, 0, 0.2);
587
+
588
+ .iz-modal-title {
589
+ color: ${({ theme }) => theme.t6};
590
+ font-size: 1rem;
591
+ font-weight: 500;
592
+
593
+ i {
594
+ margin-right: .5rem;
595
+ }
596
+
597
+ span {
598
+ word-break: break-word;
599
+ }
600
+ }
601
+
602
+ .fa-xmark {
603
+ color: ${({ theme }) => theme.t6};
604
+ margin-left: .5rem;
605
+ cursor: pointer;
606
+
607
+ &:hover {
608
+ color: ${({ theme }) => theme.t8};
609
+ }
610
+ }
611
+ }
612
+
613
+ .iz-modal-content {
614
+ overflow-x: hidden;
615
+ overflow-y: overlay;
616
+ position: relative;
617
+ height: ${(props) => props.position === "center" ? "initial" : "100%"};
618
+
619
+ .iz-modal-close {
620
+ position: absolute;
621
+ color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
622
+ top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
623
+ right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
624
+ width: 1rem;
625
+ height: 1rem;
626
+ cursor: pointer;
627
+ z-index: 9;
628
+ display: flex;
629
+ align-items: center;
630
+ justify-content: center;
631
+
632
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
633
+ display: none;
634
+ }
635
+
636
+ &:hover {
637
+ color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
638
+ }
639
+ }
640
+ }
641
+
642
+ .iz-modal-buttons {
643
+ padding: 1rem 2rem;
644
+
645
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
646
+ padding: 1rem 2rem 2rem;
647
+ }
648
+
649
+ button {
650
+ width: 100%;
651
+ margin-bottom: .5rem;
652
+ }
653
+
654
+ button:last-child {
655
+ margin-bottom: 0;
656
+ }
657
+ }
658
+ }
659
+ `;
660
+
661
+ // components/index.tsx
662
+ import { Fragment } from "react";
663
+
664
+ // components/styles.tsx
665
+ import styled2 from "styled-components";
666
+ var Container2 = styled2.div`
667
+ display: flex;
668
+ flex-direction: column;
669
+ gap: 1rem;
670
+ `;
671
+ var RowContainer = styled2.div`
672
+ display: flex;
673
+ flex-direction: row;
674
+ align-items: stretch;
675
+ gap: 1rem;
676
+ flex-wrap: wrap;
677
+ `;
678
+
679
+ // components/index.tsx
680
+ import _19 from "lodash";
681
+
682
+ // components/types/table/index.tsx
683
+ import { useEffect as useEffect5 } from "react";
684
+
685
+ // components/types/table/styles.tsx
686
+ import styled3 from "styled-components";
687
+ var Container3 = styled3.div`
688
+ .iz-table-container {
689
+ overflow-x: auto;
690
+
691
+ &::-webkit-scrollbar {
692
+ width: 0;
693
+ height: ${(props) => props.notFound ? "0px" : "5px"};
694
+ }
695
+
696
+ &::-webkit-scrollbar-track {
697
+ background: transparent;
698
+ }
699
+
700
+ &::-webkit-scrollbar-thumb {
701
+ background-color: rgb(255, 255, 255, 0.1);
702
+ border-radius: 5px;
703
+ }
704
+
705
+ table {
706
+ font-size: .8rem;
707
+ border: 0;
708
+ color: ${({ theme }) => theme.t6};
709
+ overflow-x: ${(props) => props.notFound ? "auto" : "hidden"};
710
+ width: 100%;
711
+ border-spacing: 0;
712
+
713
+ .iz-table-content {
714
+ background: ${({ theme }) => theme.t05};
715
+ height: 2.7rem;
716
+ padding: 0.8rem 1.3rem;
717
+ margin-top: 0.5rem;
718
+ white-space: nowrap;
719
+ display: flex;
720
+ align-items: center;
721
+ position: relative;
722
+ transition: ease 0.3s;
723
+
724
+ &.iz-table-identifier {
725
+ padding: .8rem .5rem !important;
726
+ }
727
+
728
+ &.iz-table-action {
729
+ display: flex;
730
+ justify-content: flex-end;
731
+ padding: .8rem .5rem !important;
732
+ position: relative;
733
+
734
+ &.left {
735
+ justify-content: flex-start;
736
+ }
737
+
738
+ &.center {
739
+ justify-content: center;
740
+ }
741
+
742
+ .iz-table-actions {
743
+ display: flex;
744
+ align-items: center;
745
+ justify-content: flex-end;
746
+ gap: .5rem;
747
+ }
748
+
749
+ .iz-table-button {
750
+ min-width: 1.8rem;
751
+ height: 1.8rem;
752
+ border-radius: 5px;
753
+ border: 1px solid ${({ theme }) => theme.t05};
754
+ background: ${({ theme }) => theme.t05};
755
+ color: ${({ theme }) => theme.t6};
756
+ cursor: pointer;
757
+ transition: ease 0.3s, width 1s, position 0s;
758
+ display: flex;
759
+ align-items: center;
760
+ justify-content: center;
761
+ gap: .5rem;
762
+ font-weight: 500;
763
+ text-transform: lowercase;
764
+ padding: 0 .5rem;
765
+ position: relative;
766
+
767
+ &:disabled {
768
+ pointer-events: none;
769
+ opacity: .6;
770
+ }
771
+
772
+ &:hover {
773
+ opacity: .9;
774
+
775
+ &.negative {
776
+ color: ${({ theme }) => theme.primary};
777
+ background: ${({ theme }) => theme.negative};
778
+ }
779
+ }
780
+ }
781
+ }
782
+ }
783
+
784
+ thead {
785
+ tr {
786
+ th {
787
+ border: none;
788
+ padding: 0;
789
+ text-transform: uppercase;
790
+ font-weight: 500;
791
+ letter-spacing: 2px;
792
+ position: relative;
793
+ height: 2.5rem;
794
+
795
+ @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
796
+ .iz-table-content {
797
+ font-size: .7rem;
798
+ }
799
+ }
800
+
801
+ @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
802
+ display: none;
803
+
804
+ &:nth-child(1), &:nth-child(2), &:last-child {
805
+ display: table-cell;
806
+ }
807
+ }
808
+
809
+ &:first-child {
810
+ .iz-table-content {
811
+ border-top-left-radius: 5px;
812
+ border-bottom-left-radius: 5px;
813
+ }
814
+ }
815
+
816
+ &:last-child {
817
+ .iz-table-content {
818
+ border-top-right-radius: 5px;
819
+ border-bottom-right-radius: 5px;
820
+ }
821
+ }
822
+ }
823
+ }
824
+ }
825
+
826
+ tbody {
827
+ tr {
828
+ &:hover {
829
+ td {
830
+ .iz-table-content {
831
+ background: ${({ theme }) => theme.tertiary};
832
+ }
833
+ }
834
+ }
835
+
836
+ td {
837
+ border: none;
838
+ padding: 0;
839
+ font-weight: 400;
840
+ position: relative;
841
+
842
+ @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
843
+ display: none;
844
+
845
+ &:nth-child(1), &:nth-child(2), &:last-child {
846
+ display: table-cell;
847
+ }
848
+ }
849
+
850
+ &:first-child {
851
+ .iz-table-content {
852
+ border-top-left-radius: 5px;
853
+ border-bottom-left-radius: 5px;
854
+ }
855
+ }
856
+
857
+ &:last-child {
858
+ .iz-table-content {
859
+ border-top-right-radius: 5px;
860
+ border-bottom-right-radius: 5px;
861
+ }
862
+ }
863
+
864
+ .iz-table-content-elipse {
865
+ position: absolute;
866
+ left: 0;
867
+ right: 0;
868
+ white-space: nowrap;
869
+ overflow: hidden;
870
+ text-overflow: ellipsis;
871
+ padding: 0.8rem 1.3rem;
872
+ }
873
+ }
874
+
875
+ &:first-child {
876
+ td {
877
+ .iz-table-content {
878
+ margin-top: 1.5rem;
879
+ }
880
+ }
881
+ }
882
+ }
883
+ }
884
+ }
885
+ }
886
+
887
+ .iz-table-icon {
888
+ width: 1.8rem;
889
+ height: 1.8rem;
890
+ background: ${({ theme }) => theme.t08};
891
+ border-radius: 5px;
892
+ display: flex;
893
+ align-items: center;
894
+ justify-content: center;
895
+ overflow: hidden;
896
+
897
+ img {
898
+ width: 100%;
899
+ height: 100%;
900
+ object-fit: cover;
901
+ }
902
+
903
+ i {
904
+ font-size: .9rem;
905
+ }
906
+ }
907
+
908
+ .iz-table-not-found {
909
+ border-radius: 5px;
910
+ background: ${({ theme }) => theme.t05};
911
+ display: flex;
912
+ flex-direction: column;
913
+ align-items: center;
914
+ justify-content: center;
915
+ margin: 1.5rem 0;
916
+ padding: 2.5rem;
917
+ width: 100%;
918
+
919
+ p {
920
+ color: ${({ theme }) => theme.t6};
921
+ text-align: center;
922
+ }
923
+
924
+ p:first-child {
925
+ font-size: 1.3rem;
926
+ font-weight: 600;
927
+ margin-top: 0;
928
+ margin-bottom: 0.5rem;
929
+
930
+ @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
931
+ font-size: 1rem;
932
+ }
933
+ }
934
+
935
+ p:last-child {
936
+ font-size: 0.8rem;
937
+ max-width: 50rem;
938
+ margin-top: 0;
939
+ margin-bottom: 0;
940
+
941
+ @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
942
+ font-size: 0.7rem;
943
+ }
944
+ }
945
+ }
946
+ `;
947
+
948
+ // components/types/table/paginate/styles.tsx
949
+ import styled4 from "styled-components";
950
+ var Container4 = styled4.div`
951
+ width: 100%;
952
+ display: flex;
953
+ align-items: center;
954
+ justify-content: center;
955
+ margin-top: 1.5rem;
956
+
957
+ .paginate {
958
+ font-size: .8rem;
959
+ font-weight: 500;
960
+ height: 1.5rem;
961
+ padding: 0 .6rem;
962
+ border-radius: 1rem;
963
+ transition: ease .3s;
964
+ color: ${({ theme }) => theme.t6};
965
+ display: flex;
966
+ align-items: center;
967
+ justify-content: center;
968
+ cursor: pointer;
969
+
970
+ &[data-current="true"] {
971
+ background: ${({ theme }) => theme.tertiary};
972
+ color: ${({ theme }) => theme.secondary};
973
+
974
+ &:hover {
975
+ background: ${({ theme }) => theme.tertiary};
976
+ }
977
+ }
978
+
979
+ &:hover {
980
+ background: ${({ theme }) => theme.t05};
981
+ }
982
+ }
983
+ `;
984
+
985
+ // components/types/table/paginate/index.tsx
986
+ import _ from "lodash";
987
+ import { jsx, jsxs } from "react/jsx-runtime";
988
+
989
+ // contexts/icon/index.tsx
990
+ import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
991
+
992
+ // contexts/theme/index.tsx
993
+ import { createContext, useContext, useState } from "react";
994
+ import { ThemeProvider } from "styled-components";
995
+
996
+ // contexts/theme/styles.tsx
997
+ import styled5 from "styled-components";
998
+ var Switcher = styled5.div`
999
+ width: 3rem;
1000
+ height: 1.5rem;
1001
+ border-radius: 1rem;
1002
+ border: 2px solid ${({ theme }) => theme.t05};
1003
+ overflow: hidden;
1004
+ display: flex;
1005
+ align-items: center;
1006
+ cursor: pointer;
1007
+ position: relative;
1008
+
1009
+ i {
1010
+ color: ${({ theme }) => theme.t6};
1011
+ position: absolute;
1012
+ transform: translateY(-50%);
1013
+ font-size: .9rem;
1014
+ z-index: 0;
1015
+ transition: ease .8s;
1016
+
1017
+ &:first-child {
1018
+ left: .2rem;
1019
+ top: 50%;
1020
+ opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
1021
+ }
1022
+
1023
+ &:last-child {
1024
+ right: .2rem;
1025
+ top: 50%;
1026
+ opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
1027
+ }
1028
+ }
1029
+
1030
+ .switcher {
1031
+ width: 1rem;
1032
+ height: 1rem;
1033
+ border-radius: 1rem;
1034
+ position: relative;
1035
+ transition: ease .3s;
1036
+ transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
1037
+ z-index: 1;
1038
+
1039
+ div {
1040
+ width: 100%;
1041
+ height: 100%;
1042
+ background: ${({ theme }) => theme.primary};
1043
+ border-radius: 1rem;
1044
+ position: relative;
1045
+ z-index: 2;
1046
+ }
1047
+
1048
+ &:after {
1049
+ content: "";
1050
+ position: absolute;
1051
+ width: 100%;
1052
+ height: 100%;
1053
+ border-radius: 1rem;
1054
+ transform: scale(1.8);
1055
+ background: ${({ theme }) => theme.t05};
1056
+ top: 0;
1057
+ left: 0;
1058
+ z-index: 1;
1059
+ }
1060
+
1061
+ &:before {
1062
+ content: "";
1063
+ position: absolute;
1064
+ width: 100%;
1065
+ height: 100%;
1066
+ border-radius: 1rem;
1067
+ transform: scale(3);
1068
+ background: ${({ theme }) => theme.t05};
1069
+ top: 0;
1070
+ left: 0;
1071
+ z-index: 0;
1072
+ }
1073
+ }
1074
+ `;
1075
+
1076
+ // contexts/theme/content.tsx
1077
+ var CommonTheme = {
1078
+ secondary: "#5869da",
1079
+ tertiary: "#629dfd33",
1080
+ positive: "#65c965",
1081
+ negative: "#FF334E",
1082
+ mobileMaxWidth: "650px",
1083
+ mobileMinWidth: "315px"
1084
+ };
1085
+ var Themes = {
1086
+ light: {
1087
+ primary: "#ffffff",
1088
+ reverse: "#353535",
1089
+ tooltip: "#f2f2f2",
1090
+ t8: "#000000cc",
1091
+ t7: "#000000b3",
1092
+ t6: "#00000099",
1093
+ t5: "#00000080",
1094
+ t4: "#00000066",
1095
+ t3: "#0000004d",
1096
+ t2: "#00000033",
1097
+ t1: "#0000001a",
1098
+ t08: "#00000014",
1099
+ t05: "#0000000d",
1100
+ t03: "#00000007",
1101
+ t02: "#00000005",
1102
+ t01: "#00000002",
1103
+ lgrad: `linear-gradient(
1104
+ to right,
1105
+ #dadef7 0%,
1106
+ #dee2f8 5%,
1107
+ #e2e5f9 10%,
1108
+ #e6e9fa 20%,
1109
+ #eaedfb 30%,
1110
+ #eff0fb 60%,
1111
+ #f3f4fc 80%,
1112
+ #f7f8fd 90%,
1113
+ #fbfbfe 100%
1114
+ )`,
1115
+ maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
1116
+ ...CommonTheme
1117
+ },
1118
+ dark: {
1119
+ primary: "#333333",
1120
+ reverse: "#b45252",
1121
+ tooltip: "#3d3d3d",
1122
+ t8: "#ffffffcc",
1123
+ t7: "#ffffffb3",
1124
+ t6: "#ffffff99",
1125
+ t5: "#ffffff80",
1126
+ t4: "#ffffff66",
1127
+ t3: "#ffffff4d",
1128
+ t2: "#ffffff33",
1129
+ t1: "#ffffff1a",
1130
+ t08: "#ffffff14",
1131
+ t05: "#ffffff0d",
1132
+ t03: "#ffffff07",
1133
+ t02: "#ffffff05",
1134
+ t01: "#ffffff02",
1135
+ lgrad: `linear-gradient(
1136
+ to right,
1137
+ #3d485c 0%,
1138
+ #3c4657 5%,
1139
+ #3b4353 10%,
1140
+ #3a414e 20%,
1141
+ #393f4a 30%,
1142
+ #373c45 60%,
1143
+ #363a41 80%,
1144
+ #35383c 90%,
1145
+ #343538 100%
1146
+ )`,
1147
+ maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
1148
+ ...CommonTheme
1149
+ }
1150
+ };
1151
+
1152
+ // contexts/theme/index.tsx
1153
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1154
+ var ThemeContext = createContext({});
1155
+
1156
+ // contexts/icon/index.tsx
1157
+ import _2 from "lodash";
1158
+
1159
+ // contexts/icon/assets/brands/index.tsx
1160
+ var req = __require.context("./", false, /\.svg$/);
1161
+ var brands = {};
1162
+ req.keys().forEach((key) => {
1163
+ const name = key.replace("./", "").replace(".svg", "");
1164
+ brands[name] = req(key).default;
1165
+ });
1166
+
1167
+ // contexts/icon/assets/regular/index.tsx
1168
+ var req2 = __require.context("./", false, /\.svg$/);
1169
+ var regular = {};
1170
+ req2.keys().forEach((key) => {
1171
+ const name = key.replace("./", "").replace(".svg", "");
1172
+ regular[name] = req2(key).default;
1173
+ });
1174
+
1175
+ // contexts/icon/assets/solid/index.tsx
1176
+ var req3 = __require.context("./", false, /\.svg$/);
1177
+ var solid = {};
1178
+ req3.keys().forEach((key) => {
1179
+ const name = key.replace("./", "").replace(".svg", "");
1180
+ solid[name] = req3(key).default;
1181
+ });
1182
+
1183
+ // contexts/icon/index.tsx
1184
+ import { jsx as jsx3 } from "react/jsx-runtime";
1185
+ var IconContext = createContext2({});
1186
+
1187
+ // contexts/tooltip/index.tsx
1188
+ import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
1189
+
1190
+ // contexts/tooltip/styles.tsx
1191
+ import styled6 from "styled-components";
1192
+ var Tooltip = styled6.div`
1193
+ position: fixed;
1194
+ background: ${({ theme }) => theme.tooltip};
1195
+ color: ${({ theme }) => theme.t6};
1196
+ font-size: .8rem;
1197
+ font-weight: 500;
1198
+ text-align: center;
1199
+ padding: .3rem .8rem;
1200
+ border-radius: 5px;
1201
+ transform: translateX(-50%);
1202
+ z-index: 10;
1203
+ border: 1px solid ${({ theme }) => theme.t05};
1204
+
1205
+ &::before {
1206
+ content: "";
1207
+ position: absolute;
1208
+ bottom: -9px;
1209
+ left: 50%;
1210
+ transform: translateX(-50%);
1211
+ width: 0;
1212
+ height: 0;
1213
+ border-left: 8px solid transparent;
1214
+ border-right: 8px solid transparent;
1215
+ border-top: 8px solid ${({ theme }) => theme.t05};
1216
+ }
1217
+
1218
+ &::after {
1219
+ content: "";
1220
+ position: absolute;
1221
+ bottom: -8px;
1222
+ left: 50%;
1223
+ transform: translateX(-50%);
1224
+ width: 0;
1225
+ height: 0;
1226
+ border-left: 8px solid transparent;
1227
+ border-right: 8px solid transparent;
1228
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
1229
+ }
1230
+ `;
1231
+
1232
+ // contexts/tooltip/index.tsx
1233
+ import _3 from "lodash";
1234
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1235
+ var TooltipContext = createContext3({});
1236
+
1237
+ // contexts/modal/index.tsx
1238
+ import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
1239
+ import { usePathname } from "next/navigation";
1240
+
1241
+ // contexts/modal/styles.tsx
1242
+ import styled7 from "styled-components";
1243
+ var Container5 = styled7.div`
1244
+
1245
+ `;
1246
+
1247
+ // contexts/modal/index.tsx
1248
+ import _4 from "lodash";
1249
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
1250
+ var ModalContext = createContext4({});
1251
+
1252
+ // components/types/table/index.tsx
1253
+ import _6 from "lodash";
1254
+
1255
+ // components/types/table/modal/styles.tsx
1256
+ import styled8 from "styled-components";
1257
+ var Content = styled8.div`
1258
+ padding: 1.5rem;
1259
+ display: flex;
1260
+ flex-direction: column;
1261
+ gap: 1.5rem;
1262
+
1263
+ .iz-table-modal-title {
1264
+ font-size: 1.2rem;
1265
+ font-weight: 500;
1266
+ width: 100%;
1267
+ display: flex;
1268
+ align-items: center;
1269
+ justify-content: center;
1270
+ color: ${({ theme }) => theme.t6};
1271
+ }
1272
+
1273
+ .iz-table-modal-content {
1274
+ ul {
1275
+ li {
1276
+ border-bottom: solid 1px ${({ theme }) => theme.t05};
1277
+ padding: .8rem 0;
1278
+ display: flex;
1279
+ align-items: center;
1280
+ justify-content: space-between;
1281
+ gap: 1rem;
1282
+ font-size: .8rem;
1283
+ color: ${({ theme }) => theme.t6};
1284
+
1285
+ &:last-child {
1286
+ border-bottom: none;
1287
+ }
1288
+
1289
+ .iz-table-modal-column {
1290
+ background: ${({ theme }) => theme.t05};
1291
+ padding: .5rem .8rem;
1292
+ font-weight: 600;
1293
+ border-radius: 5px;
1294
+ }
1295
+
1296
+ .iz-table-modal-row {
1297
+ text-align: right;
1298
+ }
1299
+ }
1300
+ }
1301
+ }
1302
+
1303
+ .iz-table-modal-actions {
1304
+ margin-top: 1rem;
1305
+ }
1306
+ `;
1307
+
1308
+ // components/types/table/modal/index.tsx
1309
+ import _5 from "lodash";
1310
+
1311
+ // components/types/table/modal/actions.tsx
1312
+ var actionConfig = {
1313
+ "fa-solid fa-pen-to-square": { label: "editar" },
1314
+ "fa-solid fa-trash-can": { label: "remover", color: CommonTheme.negative }
1315
+ };
1316
+
1317
+ // components/types/table/modal/index.tsx
1318
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
1319
+
1320
+ // components/types/table/index.tsx
1321
+ import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1322
+
1323
+ // components/types/loading/bar/styles.tsx
1324
+ import styled9 from "styled-components";
1325
+ var Container6 = styled9.div`
1326
+ border-radius: ${(props) => props.borderRadius || "10px"};
1327
+ height: ${(props) => props.height || "100%"};
1328
+ width: ${(props) => props.width || "100%"};
1329
+ animation: loading infinite 2s;
1330
+ margin: ${(props) => props.margin || "0px"};
1331
+
1332
+ @keyframes loading {
1333
+ 0% {
1334
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1335
+ }
1336
+ 50% {
1337
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.10)" : "rgb(255, 255, 255, 0.15)"};
1338
+ }
1339
+ 100% {
1340
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1341
+ }
1342
+ }
1343
+ `;
1344
+
1345
+ // components/types/loading/bar/index.tsx
1346
+ import { jsx as jsx8 } from "react/jsx-runtime";
1347
+
1348
+ // components/types/loading/app/styles.tsx
1349
+ import styled10 from "styled-components";
1350
+ var Container7 = styled10.div`
1351
+ width: ${({ initialization }) => initialization ? "100vw" : "100%"};
1352
+ height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
1353
+ display: flex;
1354
+ justify-content: center;
1355
+ align-items: center;
1356
+ position: ${({ initialization }) => initialization ? "absolute" : "relative"};;
1357
+ bottom: 0;
1358
+ left: 0;
1359
+ background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
1360
+ z-index: ${({ initialization }) => initialization ? "9" : "0"};
1361
+
1362
+ .iz-loading-logo {
1363
+ font-size: 4rem;
1364
+ opacity: 40%;
1365
+ animation: loop 2s infinite;
1366
+ position: relative;
1367
+
1368
+ &::before {
1369
+ content: "";
1370
+ position: absolute;
1371
+ width: 5rem;
1372
+ height: 5rem;
1373
+ animation: firstImpact 2s .5s infinite ease;
1374
+ background: ${({ theme }) => theme.t05};
1375
+ border-radius: 50%;
1376
+ z-index: 0;
1377
+ opacity: 0;
1378
+ }
1379
+
1380
+ &::after {
1381
+ content: "";
1382
+ position: absolute;
1383
+ width: 5rem;
1384
+ height: 5rem;
1385
+ animation: secondImpact 2s .5s infinite ease;
1386
+ background: ${({ theme }) => theme.t05};
1387
+ border-radius: 50%;
1388
+ z-index: 0;
1389
+ opacity: 0;
1390
+ }
1391
+
1392
+ @keyframes loop {
1393
+ 0% {
1394
+ transform: scale(1);
1395
+ }
1396
+ 80% {
1397
+ transform: scale(1.3);
1398
+ }
1399
+ 100% {
1400
+ transform: scale(1);
1401
+ }
1402
+ }
1403
+
1404
+ @keyframes firstImpact {
1405
+ 0% {
1406
+ transform: scale(1);
1407
+ opacity: 0;
1408
+ }
1409
+ 10% {
1410
+ transform: scale(1.6);
1411
+ opacity: 1;
1412
+ }
1413
+ 100% {
1414
+ transform: scale(1.6);
1415
+ opacity: 0;
1416
+ }
1417
+ }
1418
+
1419
+ @keyframes secondImpact {
1420
+ 0% {
1421
+ transform: scale(1);
1422
+ opacity: 0;
1423
+ }
1424
+ 40% {
1425
+ transform: scale(1.3);
1426
+ opacity: 1;
1427
+ }
1428
+ 100% {
1429
+ transform: scale(1.3);
1430
+ opacity: 0;
1431
+ }
1432
+ }
1433
+ }
1434
+ `;
1435
+
1436
+ // components/types/logo/styles.tsx
1437
+ import styled11 from "styled-components";
1438
+ var Container8 = styled11.div`
1439
+ display: flex;
1440
+ align-items: center;
1441
+ justify-content: center;
1442
+ gap: .3rem;
1443
+ font-size: ${(props) => props.size || "2"}rem;
1444
+ color: ${(props) => props.theme.t5};
1445
+
1446
+ label:first-child {
1447
+ font-weight: 900;
1448
+ color: ${(props) => props.theme.secondary};
1449
+ }
1450
+
1451
+ label:last-child {
1452
+ font-weight: 600;
1453
+ }
1454
+ `;
1455
+
1456
+ // components/types/logo/index.tsx
1457
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1458
+
1459
+ // components/types/loading/app/index.tsx
1460
+ import { jsx as jsx10 } from "react/jsx-runtime";
1461
+
1462
+ // components/types/badge/styles.tsx
1463
+ import styled12 from "styled-components";
1464
+ var Container9 = styled12.div`
1465
+ .content {
1466
+ display: inline-flex;
1467
+ align-items: center;
1468
+ justify-content: center;
1469
+ height: 1.8rem;
1470
+ padding: 0 2rem;
1471
+ position: relative;
1472
+
1473
+ div {
1474
+ position: relative;
1475
+ z-index: 1;
1476
+ color: ${({ theme, color }) => theme[color]};
1477
+ font-size: .8rem;
1478
+ font-weight: 500;
1479
+ text-transform: capitalize;
1480
+ }
1481
+
1482
+ &:before {
1483
+ content: "";
1484
+ position: absolute;
1485
+ top: 0;
1486
+ left: 0;
1487
+ width: 100%;
1488
+ height: 100%;
1489
+ border-radius: 5px;
1490
+ background: ${({ theme, color }) => theme[color]};
1491
+ opacity: .2;
1492
+ }
1493
+ }
1494
+ `;
1495
+
1496
+ // components/types/badge/index.tsx
1497
+ import _7 from "lodash";
1498
+ import { jsx as jsx11 } from "react/jsx-runtime";
1499
+
1500
+ // components/types/form/index.tsx
1501
+ import React9, { useEffect as useEffect6, useRef as useRef2 } from "react";
1502
+
1503
+ // components/types/form/styles.tsx
1504
+ import styled13 from "styled-components";
1505
+ var Container10 = styled13.form`
1506
+ width: 100%;
1507
+
1508
+ .form-buttons {
1509
+ width: 100%;
1510
+ padding-top: 1rem;
1511
+
1512
+ button {
1513
+ width: 100%;
1514
+ margin-top: 1rem;
1515
+ }
1516
+ }
1517
+ `;
1518
+
1519
+ // components/types/form/index.tsx
1520
+ import { z } from "zod";
1521
+ import { useForm } from "react-hook-form";
1522
+ import { zodResolver } from "@hookform/resolvers/zod";
1523
+ import _13 from "lodash";
1524
+
1525
+ // components/types/form/types/file/index.tsx
1526
+ import { useRef } from "react";
1527
+
1528
+ // components/types/form/types/file/styles.tsx
1529
+ import styled14 from "styled-components";
1530
+ var Container11 = styled14.div`
1531
+ width: 100%;
1532
+ padding-top: .3rem;
1533
+
1534
+ .iz-image-content {
1535
+ display: flex;
1536
+ align-items: center;
1537
+ justify-content: center;
1538
+ border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1539
+ border-radius: 5px;
1540
+ overflow: hidden;
1541
+ padding: .5rem 1rem;
1542
+ width: 100%;
1543
+ font-size: .8rem;
1544
+ background: ${(props) => props.disabled ? "${({ theme }) => theme.t2}" : "${({ theme }) => theme.primary}"};
1545
+ opacity: ${(props) => props.disabled ? ".7" : "1"};
1546
+ color: ${({ theme }) => theme.t6};
1547
+ cursor: pointer;
1548
+ }
1549
+
1550
+ .iz-input-error {
1551
+ color: ${({ theme }) => theme.negative};
1552
+ font-size: .7rem;
1553
+ }
1554
+ `;
1555
+
1556
+ // components/types/form/types/label/styles.tsx
1557
+ import styled15 from "styled-components";
1558
+ var Container12 = styled15.label`
1559
+ font-size: .8rem;
1560
+ font-weight: 500;
1561
+ color: ${({ theme }) => theme.t6};
1562
+ `;
1563
+
1564
+ // components/types/form/types/label/index.tsx
1565
+ import { jsx as jsx12 } from "react/jsx-runtime";
1566
+
1567
+ // components/types/form/types/file/index.tsx
1568
+ import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1569
+
1570
+ // components/types/form/types/input/index.tsx
1571
+ import { useState as useState5 } from "react";
1572
+
1573
+ // components/types/form/types/input/styles.tsx
1574
+ import styled16 from "styled-components";
1575
+ var Container13 = styled16.div`
1576
+ width: 100%;
1577
+ padding-top: .3rem;
1578
+
1579
+ .iz-input-content {
1580
+ display: flex;
1581
+ align-items: center;
1582
+ justify-content: center;
1583
+ border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1584
+ border-radius: 5px;
1585
+ overflow: hidden;
1586
+ padding-right: ${({ password }) => password ? ".6rem" : "0rem"};
1587
+ background-color: ${({ theme }) => theme.primary};
1588
+
1589
+ input {
1590
+ border: 0;
1591
+ padding: .5rem 1rem;
1592
+ width: 100%;
1593
+ font-size: .8rem;
1594
+ background-color: ${({ theme }) => theme.primary};
1595
+ color: ${({ theme }) => theme.t6};
1596
+
1597
+ &:disabled {
1598
+ background-color: ${({ theme }) => theme.t2};
1599
+ color: ${({ theme }) => theme.t6};
1600
+ opacity: .7;
1601
+ }
1602
+
1603
+ &:focus-visible {
1604
+ outline: none;
1605
+ }
1606
+ }
1607
+
1608
+ i {
1609
+ color: ${({ theme }) => theme.t3};
1610
+ cursor: pointer;
1611
+ }
1612
+ }
1613
+
1614
+ .iz-input-error {
1615
+ color: ${({ theme }) => theme.negative};
1616
+ font-size: .7rem;
1617
+ }
1618
+ `;
1619
+
1620
+ // components/types/form/types/input/index.tsx
1621
+ import _8 from "lodash";
1622
+ import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
1623
+
1624
+ // components/types/form/types/select/index.tsx
1625
+ import { useState as useState6 } from "react";
1626
+
1627
+ // components/types/form/types/select/styles.tsx
1628
+ import styled17 from "styled-components";
1629
+ var Container14 = styled17.div`
1630
+ width: 100%;
1631
+ padding-top: .3rem;
1632
+
1633
+ .iz-input-content {
1634
+ display: flex;
1635
+ align-items: center;
1636
+ justify-content: center;
1637
+ border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1638
+ border-radius: 5px;
1639
+ overflow: hidden;
1640
+ position: relative;
1641
+ cursor: pointer;
1642
+
1643
+ select {
1644
+ border: 0;
1645
+ padding: .5rem 2.3rem .5rem 1rem;
1646
+ width: 100%;
1647
+ font-size: .8rem;
1648
+ appearance: none;
1649
+ cursor: pointer;
1650
+ background-color: ${({ theme }) => theme.primary};
1651
+ color: ${({ theme }) => theme.t6};
1652
+
1653
+ &:disabled {
1654
+ background-color: ${({ theme }) => theme.t2};
1655
+ color: ${({ theme }) => theme.t6};
1656
+ opacity: .7;
1657
+ }
1658
+
1659
+ &:focus-visible {
1660
+ outline: none;
1661
+ }
1662
+ }
1663
+
1664
+ i {
1665
+ position: absolute;
1666
+ top: 50%;
1667
+ right: .8rem;
1668
+ transform: translateY(-50%);
1669
+ font-size: .8rem;
1670
+ color: ${({ theme }) => theme.t6};
1671
+ }
1672
+ }
1673
+
1674
+ .iz-input-error {
1675
+ color: ${({ theme }) => theme.negative};
1676
+ font-size: .7rem;
1677
+ }
1678
+ `;
1679
+
1680
+ // components/types/form/types/select/index.tsx
1681
+ import _9 from "lodash";
1682
+ import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
1683
+
1684
+ // components/types/form/types/button/styles.tsx
1685
+ import styled18 from "styled-components";
1686
+ var Container15 = styled18.button`
1687
+ border-radius: 5px;
1688
+ font-size: .8rem;
1689
+ font-weight: 500;
1690
+ transition: ease .3s;
1691
+ display: flex;
1692
+ align-items: center;
1693
+ justify-content: center;
1694
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
1695
+ background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
1696
+ border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
1697
+ pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
1698
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
1699
+ opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
1700
+ padding: .4rem 2.5rem;
1701
+ transition: ease .3s;
1702
+
1703
+ span {
1704
+ text-align: center;
1705
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
1706
+ }
1707
+
1708
+ &:disabled {
1709
+ pointer-events: none;
1710
+
1711
+ &::before {
1712
+ opacity: .6;
1713
+ }
1714
+ }
1715
+
1716
+ &:hover {
1717
+ opacity: .9;
1718
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
1719
+
1720
+ &::before {
1721
+ background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
1722
+ }
1723
+ }
1724
+ `;
1725
+
1726
+ // components/types/form/types/button/loading/styles.tsx
1727
+ import styled19 from "styled-components";
1728
+ var Container16 = styled19.div`
1729
+ display: flex;
1730
+ justify-content: space-between;
1731
+ align-items: center;
1732
+ width: 2rem;
1733
+ margin-right: .5rem;
1734
+
1735
+ div {
1736
+ width: .5rem;
1737
+ height: .5rem;
1738
+ border-radius: 1rem;
1739
+ background: rgb(255, 255, 255, 1);
1740
+
1741
+ &:nth-child(1) {
1742
+ animation: blinkOne infinite ease 2s;
1743
+ }
1744
+
1745
+ &:nth-child(2) {
1746
+ animation: blinkTwo infinite ease 2s;
1747
+ }
1748
+
1749
+ &:nth-child(3) {
1750
+ animation: blinkThree infinite ease 2s;
1751
+ }
1752
+ }
1753
+
1754
+ @keyframes blinkOne {
1755
+ 0% {
1756
+ opacity: 0.8;
1757
+ }
1758
+ 20% {
1759
+ opacity: 0.2;
1760
+ }
1761
+ 40% {
1762
+ opacity: 0.2;
1763
+ }
1764
+ 60% {
1765
+ opacity: 0.2;
1766
+ }
1767
+ 80% {
1768
+ opacity: 0.2;
1769
+ }
1770
+ 100% {
1771
+ opacity: 0.8;
1772
+ }
1773
+ }
1774
+
1775
+ @keyframes blinkTwo {
1776
+ 0% {
1777
+ opacity: 0.2;
1778
+ }
1779
+ 20% {
1780
+ opacity: 0.8;
1781
+ }
1782
+ 40% {
1783
+ opacity: 0.2;
1784
+ }
1785
+ 60% {
1786
+ opacity: 0.2;
1787
+ }
1788
+ 80% {
1789
+ opacity: 0.8;
1790
+ }
1791
+ 100% {
1792
+ opacity: 0.2;
1793
+ }
1794
+ }
1795
+
1796
+ @keyframes blinkThree {
1797
+ 0% {
1798
+ opacity: 0.2;
1799
+ }
1800
+ 25% {
1801
+ opacity: 0.2;
1802
+ }
1803
+ 50% {
1804
+ opacity: 0.8;
1805
+ }
1806
+ 75% {
1807
+ opacity: 0.2;
1808
+ }
1809
+ 100% {
1810
+ opacity: 0.2;
1811
+ }
1812
+ }
1813
+ `;
1814
+
1815
+ // components/types/form/types/button/loading/index.tsx
1816
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
1817
+ function Loading() {
1818
+ return /* @__PURE__ */ jsxs11(Container16, { children: [
1819
+ /* @__PURE__ */ jsx16("div", {}),
1820
+ /* @__PURE__ */ jsx16("div", {}),
1821
+ /* @__PURE__ */ jsx16("div", {})
1822
+ ] });
1823
+ }
1824
+
1825
+ // components/types/form/types/button/index.tsx
1826
+ import _10 from "lodash";
1827
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
1828
+ function Button(props) {
1829
+ return /* @__PURE__ */ jsxs12(
1830
+ Container15,
1831
+ {
1832
+ loading: String(!!props.loading),
1833
+ disabled: props.disabled,
1834
+ type: props.type || "button",
1835
+ ..._10.omit(props, ["loading", "type"]),
1836
+ children: [
1837
+ !!props.loading && /* @__PURE__ */ jsx17(Loading, {}),
1838
+ /* @__PURE__ */ jsx17("span", { children: props.label })
1839
+ ]
1840
+ }
1841
+ );
1842
+ }
1843
+
1844
+ // components/types/form/types/datetime/styles.tsx
1845
+ import styled20 from "styled-components";
1846
+ var Container17 = styled20.div`
1847
+ width: 100%;
1848
+ padding-top: .3rem;
1849
+
1850
+ .iz-input-content {
1851
+ display: flex;
1852
+ align-items: center;
1853
+ justify-content: center;
1854
+ border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1855
+ border-radius: 5px;
1856
+ overflow: hidden;
1857
+
1858
+ input {
1859
+ border: 0;
1860
+ padding: .5rem 1rem;
1861
+ width: 100%;
1862
+ font-size: .8rem;
1863
+ background-color: ${({ theme }) => theme.primary};
1864
+ color: ${({ theme }) => theme.t6};
1865
+ color-scheme: ${(props) => props.theme || "light"};
1866
+
1867
+ &:disabled {
1868
+ background-color: ${({ theme }) => theme.t2};
1869
+ color: ${({ theme }) => theme.t6};
1870
+ opacity: .7;
1871
+ }
1872
+
1873
+ &:focus-visible {
1874
+ outline: none;
1875
+ }
1876
+ }
1877
+ }
1878
+
1879
+ .iz-input-error {
1880
+ color: ${({ theme }) => theme.negative};
1881
+ font-size: .7rem;
1882
+ }
1883
+ `;
1884
+
1885
+ // components/types/form/types/datetime/index.tsx
1886
+ import _11 from "lodash";
1887
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
1888
+
1889
+ // components/types/form/types/textarea/styles.tsx
1890
+ import styled21 from "styled-components";
1891
+ var Container18 = styled21.div`
1892
+ width: 100%;
1893
+ padding-top: .3rem;
1894
+
1895
+ .iz-input-content {
1896
+ display: flex;
1897
+ align-items: center;
1898
+ justify-content: center;
1899
+ border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1900
+ border-radius: 5px;
1901
+ overflow: hidden;
1902
+
1903
+ textarea {
1904
+ border: 0;
1905
+ padding: .5rem 1rem;
1906
+ width: 100%;
1907
+ font-size: .8rem;
1908
+ background-color: ${({ theme }) => theme.primary};
1909
+ color: ${({ theme }) => theme.t6};
1910
+
1911
+ &:disabled {
1912
+ background-color: ${({ theme }) => theme.t2};
1913
+ color: ${({ theme }) => theme.t6};
1914
+ opacity: .7;
1915
+ }
1916
+
1917
+ &:focus-visible {
1918
+ outline: none;
1919
+ }
1920
+ }
1921
+ }
1922
+
1923
+ .iz-input-error {
1924
+ color: ${({ theme }) => theme.negative};
1925
+ font-size: .7rem;
1926
+ }
1927
+ `;
1928
+
1929
+ // components/types/form/types/textarea/index.tsx
1930
+ import _12 from "lodash";
1931
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1932
+
1933
+ // components/types/form/index.tsx
1934
+ import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
1935
+
1936
+ // components/types/chart/styles.tsx
1937
+ import styled22 from "styled-components";
1938
+ var Container19 = styled22.div`
1939
+
1940
+ `;
1941
+
1942
+ // components/types/chart/index.tsx
1943
+ import dynamic from "next/dynamic";
1944
+ import _14 from "lodash";
1945
+ import { jsx as jsx21 } from "react/jsx-runtime";
1946
+ var ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
1947
+
1948
+ // components/types/avatar/index.tsx
1949
+ import { useRef as useRef3, useState as useState7 } from "react";
1950
+
1951
+ // components/types/avatar/styles.tsx
1952
+ import styled23 from "styled-components";
1953
+ var Container20 = styled23.div`
1954
+ width: ${({ size }) => size || "2.3rem"};
1955
+ height: ${({ size }) => size || "2.3rem"};
1956
+ border-radius: ${({ size }) => size || "2.3rem"};
1957
+ border: 2px solid ${({ theme }) => theme.t1};
1958
+ background: ${({ color }) => color};
1959
+ display: flex;
1960
+ align-items: center;
1961
+ justify-content: center;
1962
+ cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
1963
+ transition: ease .2s;
1964
+ position: relative;
1965
+ font-size: ${({ width }) => width / 2.5}px;
1966
+ font-weight: 500;
1967
+ color: ${({ theme }) => theme.primary};
1968
+
1969
+ span {
1970
+ position: relative;
1971
+ z-index: 1;
1972
+ }
1973
+
1974
+ &::before {
1975
+ content: "";
1976
+ position: absolute;
1977
+ width: 100%;
1978
+ height: 100%;
1979
+ transition: ease .2s;
1980
+ background: ${({ theme }) => theme.t03};
1981
+ border-radius: ${({ size }) => size || "2.3rem"};
1982
+ z-index: 0;
1983
+ }
1984
+
1985
+ &::after {
1986
+ content: "";
1987
+ position: absolute;
1988
+ width: 100%;
1989
+ height: 100%;
1990
+ transition: ease .2s;
1991
+ background: ${({ theme }) => theme.t05};
1992
+ border-radius: ${({ size }) => size || "2.3rem"};
1993
+ z-index: 0;
1994
+ }
1995
+
1996
+ &:hover {
1997
+ &::before {
1998
+ transform: scale(1.6);
1999
+ }
2000
+
2001
+ &::after {
2002
+ transform: scale(1.3);
2003
+ }
2004
+ }
2005
+ `;
2006
+
2007
+ // components/types/avatar/index.tsx
2008
+ import _15 from "lodash";
2009
+ import { jsx as jsx22 } from "react/jsx-runtime";
2010
+
2011
+ // components/types/lottie/styles.tsx
2012
+ import styled24 from "styled-components";
2013
+ var Container21 = styled24.div`
2014
+ display: flex;
2015
+ align-items: center;
2016
+ justify-content: center;
2017
+ gap: .3rem;
2018
+
2019
+ label {
2020
+ font-size: ${(props) => props.size || "2"}rem;
2021
+ color: ${(props) => props.theme.t5};
2022
+ }
2023
+
2024
+ label:first-child {
2025
+ font-weight: 900;
2026
+ color: ${(props) => props.theme.secondary};
2027
+ }
2028
+
2029
+ label:last-child {
2030
+ font-weight: 600;
2031
+ }
2032
+ `;
2033
+
2034
+ // components/types/lottie/index.tsx
2035
+ import LottieReact from "react-lottie";
2036
+ import { jsx as jsx23 } from "react/jsx-runtime";
2037
+
2038
+ // components/types/credit-card/styles.tsx
2039
+ import styled25 from "styled-components";
2040
+ var Container22 = styled25.div`
2041
+ border-radius: 8px 8px 0 0;
2042
+ transition: .2s ease .2s background, .2s ease .2s padding;
2043
+ position: relative;
2044
+ display: flex;
2045
+ gap: .5rem;
2046
+ height: 11rem;
2047
+ pointer-events: all;
2048
+
2049
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2050
+ width: 100%;
2051
+ }
2052
+
2053
+ &:hover {
2054
+ .iz-credit-card-function-container {
2055
+ margin-left: 0;
2056
+
2057
+ .iz-credit-card-function {
2058
+ transform: translateX(0);
2059
+ opacity: 1;
2060
+ }
2061
+
2062
+ .iz-credit-card-function:nth-child(1) {
2063
+ transition: .3s ease transform, .2s ease .1s opacity, ease .3s color;
2064
+ }
2065
+
2066
+ .iz-credit-card-function:nth-child(2) {
2067
+ transition: .3s ease .1s transform, .2s ease .2s opacity, ease .3s color;
2068
+ }
2069
+ }
2070
+ }
2071
+ `;
2072
+
2073
+ // components/types/credit-card/card/index.tsx
2074
+ import { useEffect as useEffect8, useRef as useRef4 } from "react";
2075
+
2076
+ // components/types/credit-card/card/styles.tsx
2077
+ import styled26 from "styled-components";
2078
+ var Container23 = styled26.div`
2079
+ height: 11rem;
2080
+ width: 20rem;
2081
+ border-radius: 8px;
2082
+ background: ${({ theme }) => theme.t05};
2083
+ padding: 1.5rem;
2084
+ display: inline-flex;
2085
+ justify-content: space-between;
2086
+ gap: 1rem;
2087
+ white-space: nowrap;
2088
+ position: relative;
2089
+ z-index: 0;
2090
+ backdrop-filter: blur(5px);
2091
+
2092
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2093
+ width: 100%;
2094
+ height: 10rem;
2095
+ }
2096
+
2097
+ @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2098
+ height: 9rem;
2099
+ }
2100
+
2101
+ .iz-credit-card-left {
2102
+ display: flex;
2103
+ flex-direction: column;
2104
+ justify-content: space-between;
2105
+ gap: 1rem;
2106
+ width: 100%;
2107
+
2108
+ .iz-credit-card-top {
2109
+ div {
2110
+ width: 2.5rem;
2111
+ height: 1.5rem;
2112
+ background-size: contain;
2113
+ background-repeat: no-repeat;
2114
+ }
2115
+ }
2116
+
2117
+ .iz-credit-card-bottom {
2118
+ display: flex;
2119
+ flex-direction: column;
2120
+ gap: .8rem;
2121
+
2122
+ .iz-credit-card-elipse {
2123
+ position: absolute;
2124
+ left: 0;
2125
+ right: 0;
2126
+ white-space: nowrap;
2127
+ overflow: hidden;
2128
+ text-overflow: ellipsis;
2129
+ }
2130
+
2131
+ .iz-credit-card-number {
2132
+ font-size: 1.1rem;
2133
+ font-weight: 600;
2134
+ color: ${({ theme }) => theme.t6};
2135
+ position: relative;
2136
+ height: 1.1rem;
2137
+
2138
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2139
+ font-size: .9rem;
2140
+ height: .9rem;
2141
+ }
2142
+
2143
+ @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2144
+ font-size: .7rem;
2145
+ height: .7rem;
2146
+ }
2147
+ }
2148
+
2149
+ .iz-credit-card-name {
2150
+ font-size: .9rem;
2151
+ font-weight: 500;
2152
+ position: relative;
2153
+ text-transform: uppercase;
2154
+ color: ${({ theme }) => theme.t5};
2155
+ height: .9rem;
2156
+
2157
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2158
+ font-size: .7rem;
2159
+ height: .7rem;
2160
+ }
2161
+
2162
+ @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2163
+ font-size: .5rem;
2164
+ height: .5rem;
2165
+ }
2166
+ }
2167
+ }
2168
+ }
2169
+
2170
+ .iz-credit-card-right {
2171
+ display: flex;
2172
+ flex-direction: column;
2173
+ justify-content: space-between;
2174
+ align-items: flex-end;
2175
+ gap: 1rem;
2176
+
2177
+ .iz-credit-card-top {
2178
+ display: flex;
2179
+ justify-content: end;
2180
+
2181
+ div {
2182
+ width: 2.5rem;
2183
+ height: 2.5rem;
2184
+ background-size: contain;
2185
+ background-repeat: no-repeat;
2186
+ }
2187
+ }
2188
+
2189
+ .iz-credit-card-bottom {
2190
+ display: flex;
2191
+ flex-direction: column;
2192
+ text-align: right;
2193
+
2194
+ span:first-child {
2195
+ font-size: .6rem;
2196
+ font-weight: 600;
2197
+ color: ${({ theme }) => theme.t3};
2198
+ }
2199
+
2200
+ span:last-child {
2201
+ font-size: .8rem;
2202
+ font-weight: 600;
2203
+ color: ${({ theme }) => theme.t5};
2204
+ }
2205
+ }
2206
+ }
2207
+ `;
2208
+
2209
+ // components/types/credit-card/tools/index.tsx
2210
+ var import_credit_card_type = __toESM(require_dist());
2211
+ var import_luhn = __toESM(require_luhn());
2212
+ import _16 from "lodash";
2213
+ var validateLuhn = import_luhn.default.validate;
2214
+
2215
+ // components/types/credit-card/card/index.tsx
2216
+ import _17 from "lodash";
2217
+ import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
2218
+
2219
+ // components/types/credit-card/functions/styles.tsx
2220
+ import styled27 from "styled-components";
2221
+ var Container24 = styled27.div`
2222
+ display: flex;
2223
+ flex-direction: column;
2224
+ gap: .5rem;
2225
+ margin-left: -2.5rem;
2226
+ transition: ease .3s;
2227
+ width: 2rem;
2228
+
2229
+ .iz-credit-card-function {
2230
+ width: 2rem;
2231
+ height: 2rem;
2232
+ display: flex;
2233
+ align-items: center;
2234
+ justify-content: center;
2235
+ border-radius: 5px;
2236
+ background: ${({ theme }) => theme.t05};
2237
+ color: ${({ theme }) => theme.t6};
2238
+ font-size: .85rem;
2239
+ transform: translateX(-2rem);
2240
+ opacity: 0;
2241
+ cursor: pointer;
2242
+
2243
+ &:hover {
2244
+ color: ${({ theme }) => theme.t8};
2245
+ }
2246
+ }
2247
+
2248
+ .iz-credit-card-function:nth-child(1) {
2249
+ transition: 5s ease transform, ease .2s opacity, ease .3s color;
2250
+ }
2251
+
2252
+ .iz-credit-card-function:nth-child(2) {
2253
+ transition: .3s ease .1s transform, ease .2s opacity, ease .3s color;
2254
+ }
2255
+ `;
2256
+
2257
+ // components/types/credit-card/functions/index.tsx
2258
+ import _18 from "lodash";
2259
+ import { jsx as jsx25 } from "react/jsx-runtime";
2260
+
2261
+ // components/types/credit-card/index.tsx
2262
+ import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
2263
+
2264
+ // components/types/block/styles.tsx
2265
+ import styled28 from "styled-components";
2266
+ var Container25 = styled28.div`
2267
+ display: flex;
2268
+ flex-direction: column;
2269
+ gap: 1rem;
2270
+ padding: 1.3rem 1.5rem;
2271
+ border-radius: 5px;
2272
+ background: ${({ theme }) => theme.t05};
2273
+ flex: 1 1 20rem;
2274
+
2275
+ header {
2276
+ display: flex;
2277
+ align-items: center;
2278
+ gap: .5rem;
2279
+ font-size: .9rem;
2280
+ font-weight: 600;
2281
+ color: ${({ theme }) => theme.t6};
2282
+ }
2283
+ `;
2284
+ var Content2 = styled28.div`
2285
+ font-size: 1.5rem;
2286
+ font-weight: 500;
2287
+ color: ${({ theme }) => theme.t7};
2288
+ `;
2289
+
2290
+ // components/types/block/index.tsx
2291
+ import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
2292
+
2293
+ // components/index.tsx
2294
+ import { jsx as jsx28 } from "react/jsx-runtime";
2295
+
2296
+ // components/types/modal/index.tsx
2297
+ import _20 from "lodash";
2298
+ import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
2299
+ function Modal2(props) {
2300
+ var _a, _b, _c;
2301
+ return /* @__PURE__ */ jsxs19(Container, { ...props, position: props.position || "center", children: [
2302
+ /* @__PURE__ */ jsx29("div", { className: "iz-modal-back", onClick: props.onClose }),
2303
+ /* @__PURE__ */ jsxs19("div", { className: "iz-modal-container", children: [
2304
+ (!!props.title || !!props.header) && /* @__PURE__ */ jsxs19("div", { className: "iz-modal-header", children: [
2305
+ /* @__PURE__ */ jsxs19("div", { className: "iz-modal-title", children: [
2306
+ ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
2307
+ /* @__PURE__ */ jsx29("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
2308
+ ] }),
2309
+ /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
2310
+ ] }),
2311
+ /* @__PURE__ */ jsxs19("div", { className: "iz-modal-content", children: [
2312
+ props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx29("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
2313
+ props.children
2314
+ ] }),
2315
+ props.buttons && /* @__PURE__ */ jsx29("div", { className: "iz-modal-buttons", children: _20.map(
2316
+ props.buttons,
2317
+ (button, index) => /* @__PURE__ */ jsx29(Button, { ...button }, index)
2318
+ ) })
2319
+ ] })
2320
+ ] });
2321
+ }
2322
+ export {
2323
+ Modal2 as Modal
2324
+ };