@gustavo-valsechi/client 1.3.25 → 1.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/components/index.d.mts +10 -0
  2. package/dist/components/index.d.ts +10 -3
  3. package/dist/components/{types/index.mjs → index.js} +405 -379
  4. package/dist/contexts/index.d.mts +20 -0
  5. package/dist/contexts/index.d.ts +20 -4
  6. package/dist/contexts/index.js +525 -0
  7. package/dist/index-BhaGW0O1.d.ts +601 -0
  8. package/dist/index-BxA8LyyD.d.mts +68 -0
  9. package/dist/index-DDi0w5pw.d.mts +601 -0
  10. package/dist/index-DT7VKE7H.d.ts +68 -0
  11. package/dist/index-Da-DtPS-.d.mts +29 -0
  12. package/dist/index-Da-DtPS-.d.ts +29 -0
  13. package/dist/index.d.mts +17 -0
  14. package/dist/index.d.ts +17 -4
  15. package/dist/{components/types/table/index.mjs → index.js} +1476 -1210
  16. package/dist/interfaces/index.d.mts +12 -0
  17. package/dist/interfaces/index.d.ts +12 -2
  18. package/dist/interfaces/index.js +19 -0
  19. package/package.json +6 -8
  20. package/dist/components/styles.d.ts +0 -2
  21. package/dist/components/styles.mjs +0 -21
  22. package/dist/components/types/avatar/index.d.ts +0 -2
  23. package/dist/components/types/avatar/index.mjs +0 -88
  24. package/dist/components/types/avatar/styles.d.ts +0 -1
  25. package/dist/components/types/avatar/styles.mjs +0 -61
  26. package/dist/components/types/badge/index.d.ts +0 -2
  27. package/dist/components/types/badge/index.mjs +0 -324
  28. package/dist/components/types/badge/styles.d.ts +0 -1
  29. package/dist/components/types/badge/styles.mjs +0 -39
  30. package/dist/components/types/block/index.d.ts +0 -2
  31. package/dist/components/types/block/index.mjs +0 -3078
  32. package/dist/components/types/block/styles.d.ts +0 -2
  33. package/dist/components/types/block/styles.mjs +0 -32
  34. package/dist/components/types/chart/index.d.ts +0 -2
  35. package/dist/components/types/chart/index.mjs +0 -322
  36. package/dist/components/types/chart/styles.d.ts +0 -1
  37. package/dist/components/types/chart/styles.mjs +0 -10
  38. package/dist/components/types/credit-card/assets/index.d.ts +0 -4
  39. package/dist/components/types/credit-card/assets/index.mjs +0 -23
  40. package/dist/components/types/credit-card/card/index.d.ts +0 -2
  41. package/dist/components/types/credit-card/card/index.mjs +0 -732
  42. package/dist/components/types/credit-card/card/styles.d.ts +0 -1
  43. package/dist/components/types/credit-card/card/styles.mjs +0 -138
  44. package/dist/components/types/credit-card/functions/index.d.ts +0 -2
  45. package/dist/components/types/credit-card/functions/index.mjs +0 -61
  46. package/dist/components/types/credit-card/functions/styles.d.ts +0 -1
  47. package/dist/components/types/credit-card/functions/styles.mjs +0 -43
  48. package/dist/components/types/credit-card/index.d.ts +0 -2
  49. package/dist/components/types/credit-card/index.mjs +0 -853
  50. package/dist/components/types/credit-card/styles.d.ts +0 -1
  51. package/dist/components/types/credit-card/styles.mjs +0 -40
  52. package/dist/components/types/credit-card/tools/index.d.ts +0 -6
  53. package/dist/components/types/credit-card/tools/index.mjs +0 -566
  54. package/dist/components/types/form/index.d.ts +0 -3
  55. package/dist/components/types/form/index.mjs +0 -711
  56. package/dist/components/types/form/styles.d.ts +0 -1
  57. package/dist/components/types/form/styles.mjs +0 -21
  58. package/dist/components/types/form/types/button/index.d.ts +0 -2
  59. package/dist/components/types/form/types/button/index.mjs +0 -165
  60. package/dist/components/types/form/types/button/loading/index.d.ts +0 -1
  61. package/dist/components/types/form/types/button/loading/index.mjs +0 -104
  62. package/dist/components/types/form/types/button/loading/styles.d.ts +0 -1
  63. package/dist/components/types/form/types/button/loading/styles.mjs +0 -94
  64. package/dist/components/types/form/types/button/styles.d.ts +0 -1
  65. package/dist/components/types/form/types/button/styles.mjs +0 -47
  66. package/dist/components/types/form/types/datetime/index.d.ts +0 -2
  67. package/dist/components/types/form/types/datetime/index.mjs +0 -93
  68. package/dist/components/types/form/types/datetime/styles.d.ts +0 -1
  69. package/dist/components/types/form/types/datetime/styles.mjs +0 -46
  70. package/dist/components/types/form/types/file/index.d.ts +0 -2
  71. package/dist/components/types/form/types/file/index.mjs +0 -91
  72. package/dist/components/types/form/types/file/styles.d.ts +0 -1
  73. package/dist/components/types/form/types/file/styles.mjs +0 -33
  74. package/dist/components/types/form/types/index.d.ts +0 -7
  75. package/dist/components/types/form/types/index.mjs +0 -603
  76. package/dist/components/types/form/types/input/index.d.ts +0 -2
  77. package/dist/components/types/form/types/input/index.mjs +0 -113
  78. package/dist/components/types/form/types/input/styles.d.ts +0 -1
  79. package/dist/components/types/form/types/input/styles.mjs +0 -52
  80. package/dist/components/types/form/types/label/index.d.ts +0 -2
  81. package/dist/components/types/form/types/label/index.mjs +0 -19
  82. package/dist/components/types/form/types/label/styles.d.ts +0 -1
  83. package/dist/components/types/form/types/label/styles.mjs +0 -13
  84. package/dist/components/types/form/types/select/index.d.ts +0 -2
  85. package/dist/components/types/form/types/select/index.mjs +0 -125
  86. package/dist/components/types/form/types/select/styles.d.ts +0 -1
  87. package/dist/components/types/form/types/select/styles.mjs +0 -58
  88. package/dist/components/types/form/types/textarea/index.d.ts +0 -2
  89. package/dist/components/types/form/types/textarea/index.mjs +0 -92
  90. package/dist/components/types/form/types/textarea/styles.d.ts +0 -1
  91. package/dist/components/types/form/types/textarea/styles.mjs +0 -45
  92. package/dist/components/types/index.d.ts +0 -11
  93. package/dist/components/types/loading/app/index.d.ts +0 -2
  94. package/dist/components/types/loading/app/index.mjs +0 -128
  95. package/dist/components/types/loading/app/styles.d.ts +0 -1
  96. package/dist/components/types/loading/app/styles.mjs +0 -93
  97. package/dist/components/types/loading/bar/index.d.ts +0 -2
  98. package/dist/components/types/loading/bar/index.mjs +0 -33
  99. package/dist/components/types/loading/bar/styles.d.ts +0 -1
  100. package/dist/components/types/loading/bar/styles.mjs +0 -27
  101. package/dist/components/types/loading/index.d.ts +0 -2
  102. package/dist/components/types/loading/index.mjs +0 -156
  103. package/dist/components/types/logo/index.d.ts +0 -2
  104. package/dist/components/types/logo/index.mjs +0 -34
  105. package/dist/components/types/logo/styles.d.ts +0 -1
  106. package/dist/components/types/logo/styles.mjs +0 -25
  107. package/dist/components/types/lottie/animations/index.d.ts +0 -293
  108. package/dist/components/types/lottie/animations/index.mjs +0 -10
  109. package/dist/components/types/lottie/index.d.ts +0 -2
  110. package/dist/components/types/lottie/index.mjs +0 -69
  111. package/dist/components/types/lottie/styles.d.ts +0 -1
  112. package/dist/components/types/lottie/styles.mjs +0 -28
  113. package/dist/components/types/modal/index.d.ts +0 -2
  114. package/dist/components/types/modal/index.mjs +0 -2324
  115. package/dist/components/types/modal/styles.d.ts +0 -1
  116. package/dist/components/types/modal/styles.mjs +0 -135
  117. package/dist/components/types/table/index.d.ts +0 -3
  118. package/dist/components/types/table/modal/actions.d.ts +0 -10
  119. package/dist/components/types/table/modal/actions.mjs +0 -87
  120. package/dist/components/types/table/modal/index.d.ts +0 -2
  121. package/dist/components/types/table/modal/index.mjs +0 -3076
  122. package/dist/components/types/table/modal/styles.d.ts +0 -1
  123. package/dist/components/types/table/modal/styles.mjs +0 -58
  124. package/dist/components/types/table/paginate/index.d.ts +0 -2
  125. package/dist/components/types/table/paginate/index.mjs +0 -96
  126. package/dist/components/types/table/paginate/styles.d.ts +0 -1
  127. package/dist/components/types/table/paginate/styles.mjs +0 -42
  128. package/dist/components/types/table/styles.d.ts +0 -5
  129. package/dist/components/types/table/styles.mjs +0 -268
  130. package/dist/contexts/icon/assets/brands/index.d.ts +0 -2
  131. package/dist/contexts/icon/assets/brands/index.mjs +0 -19
  132. package/dist/contexts/icon/assets/index.d.ts +0 -6
  133. package/dist/contexts/icon/assets/index.mjs +0 -44
  134. package/dist/contexts/icon/assets/regular/index.d.ts +0 -2
  135. package/dist/contexts/icon/assets/regular/index.mjs +0 -19
  136. package/dist/contexts/icon/assets/solid/index.d.ts +0 -2
  137. package/dist/contexts/icon/assets/solid/index.mjs +0 -19
  138. package/dist/contexts/icon/index.d.ts +0 -4
  139. package/dist/contexts/icon/index.mjs +0 -281
  140. package/dist/contexts/icon/styles.d.ts +0 -1
  141. package/dist/contexts/icon/styles.mjs +0 -10
  142. package/dist/contexts/modal/index.d.ts +0 -4
  143. package/dist/contexts/modal/index.mjs +0 -66
  144. package/dist/contexts/modal/styles.d.ts +0 -1
  145. package/dist/contexts/modal/styles.mjs +0 -10
  146. package/dist/contexts/theme/content.d.ts +0 -3
  147. package/dist/contexts/theme/content.mjs +0 -81
  148. package/dist/contexts/theme/index.d.ts +0 -4
  149. package/dist/contexts/theme/index.mjs +0 -201
  150. package/dist/contexts/theme/styles.d.ts +0 -1
  151. package/dist/contexts/theme/styles.mjs +0 -84
  152. package/dist/contexts/tooltip/index.d.ts +0 -6
  153. package/dist/contexts/tooltip/index.mjs +0 -117
  154. package/dist/contexts/tooltip/styles.d.ts +0 -1
  155. package/dist/contexts/tooltip/styles.mjs +0 -46
  156. package/dist/interfaces/components/avatar/index.d.ts +0 -6
  157. package/dist/interfaces/components/avatar/index.mjs +0 -1
  158. package/dist/interfaces/components/badge/index.d.ts +0 -3
  159. package/dist/interfaces/components/badge/index.mjs +0 -1
  160. package/dist/interfaces/components/block/index.d.ts +0 -16
  161. package/dist/interfaces/components/block/index.mjs +0 -1
  162. package/dist/interfaces/components/chart/index.d.ts +0 -9
  163. package/dist/interfaces/components/chart/index.mjs +0 -1
  164. package/dist/interfaces/components/credit-card/index.d.ts +0 -16
  165. package/dist/interfaces/components/credit-card/index.mjs +0 -1
  166. package/dist/interfaces/components/form/button/index.d.ts +0 -7
  167. package/dist/interfaces/components/form/button/index.mjs +0 -1
  168. package/dist/interfaces/components/form/datetime/index.d.ts +0 -15
  169. package/dist/interfaces/components/form/datetime/index.mjs +0 -1
  170. package/dist/interfaces/components/form/file/index.d.ts +0 -14
  171. package/dist/interfaces/components/form/file/index.mjs +0 -1
  172. package/dist/interfaces/components/form/index.d.ts +0 -16
  173. package/dist/interfaces/components/form/index.mjs +0 -1
  174. package/dist/interfaces/components/form/input/index.d.ts +0 -17
  175. package/dist/interfaces/components/form/input/index.mjs +0 -1
  176. package/dist/interfaces/components/form/label/index.d.ts +0 -5
  177. package/dist/interfaces/components/form/label/index.mjs +0 -1
  178. package/dist/interfaces/components/form/select/index.d.ts +0 -14
  179. package/dist/interfaces/components/form/select/index.mjs +0 -1
  180. package/dist/interfaces/components/form/textarea/index.d.ts +0 -16
  181. package/dist/interfaces/components/form/textarea/index.mjs +0 -1
  182. package/dist/interfaces/components/index.d.ts +0 -26
  183. package/dist/interfaces/components/index.mjs +0 -1
  184. package/dist/interfaces/components/loading/app/index.d.ts +0 -3
  185. package/dist/interfaces/components/loading/app/index.mjs +0 -1
  186. package/dist/interfaces/components/loading/bar/index.d.ts +0 -7
  187. package/dist/interfaces/components/loading/bar/index.mjs +0 -1
  188. package/dist/interfaces/components/loading/index.d.ts +0 -2
  189. package/dist/interfaces/components/loading/index.mjs +0 -1
  190. package/dist/interfaces/components/logo/index.d.ts +0 -6
  191. package/dist/interfaces/components/logo/index.mjs +0 -1
  192. package/dist/interfaces/components/lottie/index.d.ts +0 -12
  193. package/dist/interfaces/components/lottie/index.mjs +0 -1
  194. package/dist/interfaces/components/modal/index.d.ts +0 -16
  195. package/dist/interfaces/components/modal/index.mjs +0 -1
  196. package/dist/interfaces/components/table/index.d.ts +0 -46
  197. package/dist/interfaces/components/table/index.mjs +0 -1
  198. package/dist/interfaces/components/table/paginate/index.d.ts +0 -7
  199. package/dist/interfaces/components/table/paginate/index.mjs +0 -1
  200. package/dist/interfaces/contexts/icon/index.d.ts +0 -3
  201. package/dist/interfaces/contexts/icon/index.mjs +0 -1
  202. package/dist/interfaces/contexts/index.d.ts +0 -8
  203. package/dist/interfaces/contexts/index.mjs +0 -1
  204. package/dist/interfaces/contexts/modal/index.d.ts +0 -16
  205. package/dist/interfaces/contexts/modal/index.mjs +0 -2
  206. package/dist/interfaces/contexts/theme/index.d.ts +0 -42
  207. package/dist/interfaces/contexts/theme/index.mjs +0 -1
  208. package/dist/interfaces/contexts/tooltip/index.d.ts +0 -3
  209. package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
  210. package/dist/styled.d.ts +0 -6
  211. package/dist/tsup.config.d.ts +0 -2
@@ -1,18 +1,12 @@
1
1
  "use client";
2
- "use client";
2
+ "use strict";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
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() {
9
+ var __commonJS = (cb, mod) => function __require() {
16
10
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
11
  };
18
12
  var __export = (target, all) => {
@@ -35,10 +29,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
35
29
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
36
30
  mod
37
31
  ));
32
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
33
 
39
34
  // node_modules/credit-card-type/dist/lib/card-types.js
40
35
  var require_card_types = __commonJS({
41
- "node_modules/credit-card-type/dist/lib/card-types.js"(exports, module) {
36
+ "node_modules/credit-card-type/dist/lib/card-types.js"(exports2, module2) {
42
37
  "use strict";
43
38
  var cardTypes = {
44
39
  visa: {
@@ -235,32 +230,32 @@ var require_card_types = __commonJS({
235
230
  }
236
231
  }
237
232
  };
238
- module.exports = cardTypes;
233
+ module2.exports = cardTypes;
239
234
  }
240
235
  });
241
236
 
242
237
  // node_modules/credit-card-type/dist/lib/clone.js
243
238
  var require_clone = __commonJS({
244
- "node_modules/credit-card-type/dist/lib/clone.js"(exports) {
239
+ "node_modules/credit-card-type/dist/lib/clone.js"(exports2) {
245
240
  "use strict";
246
- Object.defineProperty(exports, "__esModule", { value: true });
247
- exports.clone = void 0;
241
+ Object.defineProperty(exports2, "__esModule", { value: true });
242
+ exports2.clone = void 0;
248
243
  function clone(originalObject) {
249
244
  if (!originalObject) {
250
245
  return null;
251
246
  }
252
247
  return JSON.parse(JSON.stringify(originalObject));
253
248
  }
254
- exports.clone = clone;
249
+ exports2.clone = clone;
255
250
  }
256
251
  });
257
252
 
258
253
  // node_modules/credit-card-type/dist/lib/matches.js
259
254
  var require_matches = __commonJS({
260
- "node_modules/credit-card-type/dist/lib/matches.js"(exports) {
255
+ "node_modules/credit-card-type/dist/lib/matches.js"(exports2) {
261
256
  "use strict";
262
- Object.defineProperty(exports, "__esModule", { value: true });
263
- exports.matches = void 0;
257
+ Object.defineProperty(exports2, "__esModule", { value: true });
258
+ exports2.matches = void 0;
264
259
  function matchesRange(cardNumber, min, max) {
265
260
  var maxLengthToCheck = String(min).length;
266
261
  var substr = cardNumber.substr(0, maxLengthToCheck);
@@ -279,16 +274,16 @@ var require_matches = __commonJS({
279
274
  }
280
275
  return matchesPattern(cardNumber, pattern);
281
276
  }
282
- exports.matches = matches;
277
+ exports2.matches = matches;
283
278
  }
284
279
  });
285
280
 
286
281
  // node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js
287
282
  var require_add_matching_cards_to_results = __commonJS({
288
- "node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(exports) {
283
+ "node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(exports2) {
289
284
  "use strict";
290
- Object.defineProperty(exports, "__esModule", { value: true });
291
- exports.addMatchingCardsToResults = void 0;
285
+ Object.defineProperty(exports2, "__esModule", { value: true });
286
+ exports2.addMatchingCardsToResults = void 0;
292
287
  var clone_1 = require_clone();
293
288
  var matches_1 = require_matches();
294
289
  function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {
@@ -311,29 +306,29 @@ var require_add_matching_cards_to_results = __commonJS({
311
306
  break;
312
307
  }
313
308
  }
314
- exports.addMatchingCardsToResults = addMatchingCardsToResults;
309
+ exports2.addMatchingCardsToResults = addMatchingCardsToResults;
315
310
  }
316
311
  });
317
312
 
318
313
  // node_modules/credit-card-type/dist/lib/is-valid-input-type.js
319
314
  var require_is_valid_input_type = __commonJS({
320
- "node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(exports) {
315
+ "node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(exports2) {
321
316
  "use strict";
322
- Object.defineProperty(exports, "__esModule", { value: true });
323
- exports.isValidInputType = void 0;
317
+ Object.defineProperty(exports2, "__esModule", { value: true });
318
+ exports2.isValidInputType = void 0;
324
319
  function isValidInputType(cardNumber) {
325
320
  return typeof cardNumber === "string" || cardNumber instanceof String;
326
321
  }
327
- exports.isValidInputType = isValidInputType;
322
+ exports2.isValidInputType = isValidInputType;
328
323
  }
329
324
  });
330
325
 
331
326
  // node_modules/credit-card-type/dist/lib/find-best-match.js
332
327
  var require_find_best_match = __commonJS({
333
- "node_modules/credit-card-type/dist/lib/find-best-match.js"(exports) {
328
+ "node_modules/credit-card-type/dist/lib/find-best-match.js"(exports2) {
334
329
  "use strict";
335
- Object.defineProperty(exports, "__esModule", { value: true });
336
- exports.findBestMatch = void 0;
330
+ Object.defineProperty(exports2, "__esModule", { value: true });
331
+ exports2.findBestMatch = void 0;
337
332
  function hasEnoughResultsToDetermineBestMatch(results) {
338
333
  var numberOfResultsWithMaxStrengthProperty = results.filter(function(result) {
339
334
  return result.matchStrength;
@@ -354,15 +349,15 @@ var require_find_best_match = __commonJS({
354
349
  return bestMatch;
355
350
  });
356
351
  }
357
- exports.findBestMatch = findBestMatch;
352
+ exports2.findBestMatch = findBestMatch;
358
353
  }
359
354
  });
360
355
 
361
356
  // node_modules/credit-card-type/dist/index.js
362
357
  var require_dist = __commonJS({
363
- "node_modules/credit-card-type/dist/index.js"(exports, module) {
358
+ "node_modules/credit-card-type/dist/index.js"(exports2, module2) {
364
359
  "use strict";
365
- var __assign = exports && exports.__assign || function() {
360
+ var __assign = exports2 && exports2.__assign || function() {
366
361
  __assign = Object.assign || function(t) {
367
362
  for (var s, i = 1, n = arguments.length; i < n; i++) {
368
363
  s = arguments[i];
@@ -480,15 +475,15 @@ var require_dist = __commonJS({
480
475
  customCards = {};
481
476
  };
482
477
  creditCardType2.types = cardNames;
483
- module.exports = creditCardType2;
478
+ module2.exports = creditCardType2;
484
479
  }
485
480
  });
486
481
 
487
482
  // node_modules/luhn/src/luhn.js
488
483
  var require_luhn = __commonJS({
489
- "node_modules/luhn/src/luhn.js"(exports, module) {
484
+ "node_modules/luhn/src/luhn.js"(exports2, module2) {
490
485
  "use strict";
491
- module.exports = /* @__PURE__ */ (function() {
486
+ module2.exports = /* @__PURE__ */ (function() {
492
487
  function validate(cardNumber) {
493
488
  var trimmed = String(cardNumber).replace(/[\s]/g, ""), length = trimmed.length, odd = false, total = 0, calc, calc2;
494
489
  if (!/^[0-9]+$/.test(trimmed)) {
@@ -532,12 +527,96 @@ var require_luhn = __commonJS({
532
527
  }
533
528
  });
534
529
 
530
+ // index.tsx
531
+ var index_exports = {};
532
+ __export(index_exports, {
533
+ Avatar: () => Avatar,
534
+ Badge: () => Badge,
535
+ Block: () => Block,
536
+ Button: () => Button,
537
+ Chart: () => Chart,
538
+ Component: () => Component,
539
+ CreditCard: () => CreditCard,
540
+ Form: () => Form,
541
+ IconProvider: () => IconProviderContainer,
542
+ InputDateTime: () => InputDateTime,
543
+ InputFile: () => InputFile,
544
+ InputLabel: () => InputLabel,
545
+ InputSelect: () => InputSelect,
546
+ InputText: () => InputText,
547
+ InputTextarea: () => InputTextarea,
548
+ LoadingApp: () => LoadingApp,
549
+ LoadingBar: () => LoadingBar,
550
+ Logo: () => Logo,
551
+ Lottie: () => Lottie,
552
+ Modal: () => Modal2,
553
+ ModalProvider: () => ModalProviderContainer,
554
+ Paginate: () => Paginate,
555
+ Table: () => Table,
556
+ ThemeProvider: () => ThemeProviderContainer,
557
+ TooltipProvider: () => TooltipProviderContainer,
558
+ useIcon: () => useIcon,
559
+ useModal: () => useModal,
560
+ useTheme: () => useTheme,
561
+ useTooltip: () => useTooltip
562
+ });
563
+ module.exports = __toCommonJS(index_exports);
564
+
565
+ // styled.ts
566
+ var import_styled_components = require("styled-components");
567
+
568
+ // components/index.tsx
569
+ var import_react12 = require("react");
570
+
571
+ // components/styles.tsx
572
+ var import_styled_components2 = __toESM(require("styled-components"));
573
+ var Container = import_styled_components2.default.div`
574
+ display: flex;
575
+ flex-direction: column;
576
+ gap: 1rem;
577
+ `;
578
+ var RowContainer = import_styled_components2.default.div`
579
+ display: flex;
580
+ flex-direction: row;
581
+ align-items: stretch;
582
+ gap: 1rem;
583
+ flex-wrap: wrap;
584
+ `;
585
+
586
+ // components/index.tsx
587
+ var import_lodash20 = __toESM(require("lodash"));
588
+
589
+ // components/types/index.tsx
590
+ var types_exports2 = {};
591
+ __export(types_exports2, {
592
+ Avatar: () => Avatar,
593
+ Badge: () => Badge,
594
+ Block: () => Block,
595
+ Button: () => Button,
596
+ Chart: () => Chart,
597
+ CreditCard: () => CreditCard,
598
+ Form: () => Form,
599
+ InputDateTime: () => InputDateTime,
600
+ InputFile: () => InputFile,
601
+ InputLabel: () => InputLabel,
602
+ InputSelect: () => InputSelect,
603
+ InputText: () => InputText,
604
+ InputTextarea: () => InputTextarea,
605
+ LoadingApp: () => LoadingApp,
606
+ LoadingBar: () => LoadingBar,
607
+ Logo: () => Logo,
608
+ Lottie: () => Lottie,
609
+ Modal: () => Modal2,
610
+ Paginate: () => Paginate,
611
+ Table: () => Table
612
+ });
613
+
535
614
  // components/types/table/index.tsx
536
- import { useEffect as useEffect8 } from "react";
615
+ var import_react5 = require("react");
537
616
 
538
617
  // components/types/table/styles.tsx
539
- import styled from "styled-components";
540
- var Container = styled.div`
618
+ var import_styled_components3 = __toESM(require("styled-components"));
619
+ var Container2 = import_styled_components3.default.div`
541
620
  .iz-table-container {
542
621
  overflow-x: auto;
543
622
 
@@ -798,662 +877,1154 @@ var Container = styled.div`
798
877
  }
799
878
  `;
800
879
 
801
- // components/index.tsx
802
- import { Fragment } from "react";
803
-
804
- // components/styles.tsx
805
- import styled2 from "styled-components";
806
- var Container2 = styled2.div`
807
- display: flex;
808
- flex-direction: column;
809
- gap: 1rem;
810
- `;
811
- var RowContainer = styled2.div`
880
+ // components/types/table/paginate/styles.tsx
881
+ var import_styled_components4 = __toESM(require("styled-components"));
882
+ var Container3 = import_styled_components4.default.div`
883
+ width: 100%;
812
884
  display: flex;
813
- flex-direction: row;
814
- align-items: stretch;
815
- gap: 1rem;
816
- flex-wrap: wrap;
817
- `;
885
+ align-items: center;
886
+ justify-content: center;
887
+ margin-top: 1.5rem;
818
888
 
819
- // components/index.tsx
820
- import _17 from "lodash";
889
+ .paginate {
890
+ font-size: .8rem;
891
+ font-weight: 500;
892
+ height: 1.5rem;
893
+ padding: 0 .6rem;
894
+ border-radius: 1rem;
895
+ transition: ease .3s;
896
+ color: ${({ theme }) => theme.t6};
897
+ display: flex;
898
+ align-items: center;
899
+ justify-content: center;
900
+ cursor: pointer;
821
901
 
822
- // components/types/index.tsx
823
- var types_exports2 = {};
824
- __export(types_exports2, {
825
- Avatar: () => Avatar,
826
- Badge: () => Badge,
827
- Block: () => Block,
828
- Button: () => Button,
829
- Chart: () => Chart,
830
- CreditCard: () => CreditCard,
831
- Form: () => Form,
832
- InputDateTime: () => InputDateTime,
833
- InputFile: () => InputFile,
834
- InputLabel: () => InputLabel,
835
- InputSelect: () => InputSelect,
836
- InputText: () => InputText,
837
- InputTextarea: () => InputTextarea,
838
- LoadingApp: () => LoadingApp,
839
- LoadingBar: () => LoadingBar,
840
- Logo: () => Logo,
841
- Lottie: () => Lottie,
842
- Modal: () => Modal,
843
- Paginate: () => Paginate,
844
- Table: () => Table
845
- });
902
+ &[data-current="true"] {
903
+ background: ${({ theme }) => theme.tertiary};
904
+ color: ${({ theme }) => theme.secondary};
846
905
 
847
- // components/types/loading/bar/styles.tsx
848
- import styled3 from "styled-components";
849
- var Container3 = styled3.div`
850
- border-radius: ${(props) => props.borderRadius || "10px"};
851
- height: ${(props) => props.height || "100%"};
852
- width: ${(props) => props.width || "100%"};
853
- animation: loading infinite 2s;
854
- margin: ${(props) => props.margin || "0px"};
906
+ &:hover {
907
+ background: ${({ theme }) => theme.tertiary};
908
+ }
909
+ }
855
910
 
856
- @keyframes loading {
857
- 0% {
858
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
859
- }
860
- 50% {
861
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.10)" : "rgb(255, 255, 255, 0.15)"};
862
- }
863
- 100% {
864
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
911
+ &:hover {
912
+ background: ${({ theme }) => theme.t05};
913
+ }
865
914
  }
866
- }
867
915
  `;
868
916
 
869
- // components/types/loading/bar/index.tsx
870
- import { jsx } from "react/jsx-runtime";
871
- function LoadingBar(props) {
872
- return /* @__PURE__ */ jsx(Container3, { ...props });
917
+ // components/types/table/paginate/index.tsx
918
+ var import_lodash = __toESM(require("lodash"));
919
+ var import_jsx_runtime = require("react/jsx-runtime");
920
+ function Paginate(props) {
921
+ const pages = () => {
922
+ const offset = Number(props.page.value) - 4;
923
+ let page = offset > 0 ? offset + 1 : 1;
924
+ let pages2 = [];
925
+ while (Number(props.total) >= page) {
926
+ pages2.push(page);
927
+ page++;
928
+ }
929
+ pages2 = import_lodash.default.slice(pages2, 0, 5);
930
+ if (Number(props.page.value) + 1 > 5) pages2 = import_lodash.default.concat(["1.."], pages2);
931
+ if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return import_lodash.default.concat(pages2, `..${props.total}`);
932
+ return pages2;
933
+ };
934
+ return Number(props.total) > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Container3, { children: [
935
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
936
+ "div",
937
+ {
938
+ className: "paginate back",
939
+ onClick: () => props.page.set ? props.page.set(
940
+ props.page.value ? props.page.value - 1 : props.page.value
941
+ ) : null,
942
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-left" })
943
+ }
944
+ ),
945
+ import_lodash.default.map(
946
+ pages(),
947
+ (page, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
948
+ "div",
949
+ {
950
+ className: "paginate page",
951
+ "data-current": String(props.page.value === Number(import_lodash.default.replace(page, /\D/g, "")) - 1),
952
+ onClick: () => props.page.set ? props.page.set(Number(import_lodash.default.replace(page, /\D/g, "")) - 1) : null,
953
+ children: page
954
+ },
955
+ index
956
+ )
957
+ ),
958
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
959
+ "div",
960
+ {
961
+ className: "paginate next",
962
+ onClick: () => props.page.set ? props.page.set(
963
+ props.page.value !== props.total - 1 ? props.page.value + 1 : props.page.value
964
+ ) : null,
965
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-right" })
966
+ }
967
+ )
968
+ ] });
873
969
  }
874
970
 
875
- // components/types/loading/app/styles.tsx
876
- import styled4 from "styled-components";
877
- var Container4 = styled4.div`
878
- width: ${({ initialization }) => initialization ? "100vw" : "100%"};
879
- height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
971
+ // contexts/icon/index.tsx
972
+ var import_react2 = require("react");
973
+
974
+ // contexts/theme/index.tsx
975
+ var import_react = require("react");
976
+ var import_styled_components6 = require("styled-components");
977
+
978
+ // contexts/theme/styles.tsx
979
+ var import_styled_components5 = __toESM(require("styled-components"));
980
+ var Switcher = import_styled_components5.default.div`
981
+ width: 3rem;
982
+ height: 1.5rem;
983
+ border-radius: 1rem;
984
+ border: 2px solid ${({ theme }) => theme.t05};
985
+ overflow: hidden;
880
986
  display: flex;
881
- justify-content: center;
882
987
  align-items: center;
883
- position: ${({ initialization }) => initialization ? "absolute" : "relative"};;
884
- bottom: 0;
885
- left: 0;
886
- background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
887
- z-index: ${({ initialization }) => initialization ? "9" : "0"};
988
+ cursor: pointer;
989
+ position: relative;
990
+
991
+ i {
992
+ color: ${({ theme }) => theme.t6};
993
+ position: absolute;
994
+ transform: translateY(-50%);
995
+ font-size: .9rem;
996
+ z-index: 0;
997
+ transition: ease .8s;
998
+
999
+ &:first-child {
1000
+ left: .2rem;
1001
+ top: 50%;
1002
+ opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
1003
+ }
1004
+
1005
+ &:last-child {
1006
+ right: .2rem;
1007
+ top: 50%;
1008
+ opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
1009
+ }
1010
+ }
888
1011
 
889
- .iz-loading-logo {
890
- font-size: 4rem;
891
- opacity: 40%;
892
- animation: loop 2s infinite;
1012
+ .switcher {
1013
+ width: 1rem;
1014
+ height: 1rem;
1015
+ border-radius: 1rem;
893
1016
  position: relative;
1017
+ transition: ease .3s;
1018
+ transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
1019
+ z-index: 1;
894
1020
 
895
- &::before {
896
- content: "";
897
- position: absolute;
898
- width: 5rem;
899
- height: 5rem;
900
- animation: firstImpact 2s .5s infinite ease;
901
- background: ${({ theme }) => theme.t05};
902
- border-radius: 50%;
903
- z-index: 0;
904
- opacity: 0;
1021
+ div {
1022
+ width: 100%;
1023
+ height: 100%;
1024
+ background: ${({ theme }) => theme.primary};
1025
+ border-radius: 1rem;
1026
+ position: relative;
1027
+ z-index: 2;
905
1028
  }
906
1029
 
907
- &::after {
1030
+ &:after {
908
1031
  content: "";
909
1032
  position: absolute;
910
- width: 5rem;
911
- height: 5rem;
912
- animation: secondImpact 2s .5s infinite ease;
1033
+ width: 100%;
1034
+ height: 100%;
1035
+ border-radius: 1rem;
1036
+ transform: scale(1.8);
913
1037
  background: ${({ theme }) => theme.t05};
914
- border-radius: 50%;
915
- z-index: 0;
916
- opacity: 0;
917
- }
918
-
919
- @keyframes loop {
920
- 0% {
921
- transform: scale(1);
922
- }
923
- 80% {
924
- transform: scale(1.3);
925
- }
926
- 100% {
927
- transform: scale(1);
928
- }
929
- }
930
-
931
- @keyframes firstImpact {
932
- 0% {
933
- transform: scale(1);
934
- opacity: 0;
935
- }
936
- 10% {
937
- transform: scale(1.6);
938
- opacity: 1;
939
- }
940
- 100% {
941
- transform: scale(1.6);
942
- opacity: 0;
943
- }
1038
+ top: 0;
1039
+ left: 0;
1040
+ z-index: 1;
944
1041
  }
945
1042
 
946
- @keyframes secondImpact {
947
- 0% {
948
- transform: scale(1);
949
- opacity: 0;
950
- }
951
- 40% {
952
- transform: scale(1.3);
953
- opacity: 1;
954
- }
955
- 100% {
956
- transform: scale(1.3);
957
- opacity: 0;
958
- }
1043
+ &:before {
1044
+ content: "";
1045
+ position: absolute;
1046
+ width: 100%;
1047
+ height: 100%;
1048
+ border-radius: 1rem;
1049
+ transform: scale(3);
1050
+ background: ${({ theme }) => theme.t05};
1051
+ top: 0;
1052
+ left: 0;
1053
+ z-index: 0;
959
1054
  }
960
1055
  }
961
1056
  `;
962
1057
 
963
- // components/types/logo/styles.tsx
964
- import styled5 from "styled-components";
965
- var Container5 = styled5.div`
966
- display: flex;
967
- align-items: center;
968
- justify-content: center;
969
- gap: .3rem;
970
- font-size: ${(props) => props.size || "2"}rem;
971
- color: ${(props) => props.theme.t5};
972
-
973
- label:first-child {
974
- font-weight: 900;
975
- color: ${(props) => props.theme.secondary};
976
- }
977
-
978
- label:last-child {
979
- font-weight: 600;
1058
+ // contexts/theme/content.tsx
1059
+ var CommonTheme = {
1060
+ secondary: "#5869da",
1061
+ tertiary: "#629dfd33",
1062
+ positive: "#65c965",
1063
+ negative: "#FF334E",
1064
+ mobileMaxWidth: "650px",
1065
+ mobileMinWidth: "315px"
1066
+ };
1067
+ var Themes = {
1068
+ light: {
1069
+ primary: "#ffffff",
1070
+ reverse: "#353535",
1071
+ tooltip: "#f2f2f2",
1072
+ t8: "#000000cc",
1073
+ t7: "#000000b3",
1074
+ t6: "#00000099",
1075
+ t5: "#00000080",
1076
+ t4: "#00000066",
1077
+ t3: "#0000004d",
1078
+ t2: "#00000033",
1079
+ t1: "#0000001a",
1080
+ t08: "#00000014",
1081
+ t05: "#0000000d",
1082
+ t03: "#00000007",
1083
+ t02: "#00000005",
1084
+ t01: "#00000002",
1085
+ lgrad: `linear-gradient(
1086
+ to right,
1087
+ #dadef7 0%,
1088
+ #dee2f8 5%,
1089
+ #e2e5f9 10%,
1090
+ #e6e9fa 20%,
1091
+ #eaedfb 30%,
1092
+ #eff0fb 60%,
1093
+ #f3f4fc 80%,
1094
+ #f7f8fd 90%,
1095
+ #fbfbfe 100%
1096
+ )`,
1097
+ maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
1098
+ ...CommonTheme
1099
+ },
1100
+ dark: {
1101
+ primary: "#333333",
1102
+ reverse: "#b45252",
1103
+ tooltip: "#3d3d3d",
1104
+ t8: "#ffffffcc",
1105
+ t7: "#ffffffb3",
1106
+ t6: "#ffffff99",
1107
+ t5: "#ffffff80",
1108
+ t4: "#ffffff66",
1109
+ t3: "#ffffff4d",
1110
+ t2: "#ffffff33",
1111
+ t1: "#ffffff1a",
1112
+ t08: "#ffffff14",
1113
+ t05: "#ffffff0d",
1114
+ t03: "#ffffff07",
1115
+ t02: "#ffffff05",
1116
+ t01: "#ffffff02",
1117
+ lgrad: `linear-gradient(
1118
+ to right,
1119
+ #3d485c 0%,
1120
+ #3c4657 5%,
1121
+ #3b4353 10%,
1122
+ #3a414e 20%,
1123
+ #393f4a 30%,
1124
+ #373c45 60%,
1125
+ #363a41 80%,
1126
+ #35383c 90%,
1127
+ #343538 100%
1128
+ )`,
1129
+ maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
1130
+ ...CommonTheme
980
1131
  }
981
- `;
1132
+ };
982
1133
 
983
- // components/types/logo/index.tsx
984
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
985
- function Logo(props) {
986
- return /* @__PURE__ */ jsxs(Container5, { ...props, children: [
987
- /* @__PURE__ */ jsx2("label", { children: "IZ" }),
988
- !props.onlyPrefix && /* @__PURE__ */ jsx2("label", { children: "Way" })
989
- ] });
990
- }
1134
+ // contexts/theme/index.tsx
1135
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1136
+ var ThemeContext = (0, import_react.createContext)({});
1137
+ var ThemeProviderContainer = (props) => {
1138
+ const [theme, setTheme] = (0, import_react.useState)("light");
1139
+ const [defaultTheme] = (0, import_react.useState)("light");
1140
+ const SwitcherComponent = () => {
1141
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1142
+ Switcher,
1143
+ {
1144
+ onClick: () => setTheme(theme === "light" ? "dark" : "light"),
1145
+ "data-theme": theme || defaultTheme,
1146
+ children: [
1147
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-moon" }),
1148
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "switcher", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", {}) }),
1149
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-sun" })
1150
+ ]
1151
+ }
1152
+ );
1153
+ };
1154
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1155
+ ThemeContext.Provider,
1156
+ {
1157
+ value: {
1158
+ theme: props.theme || defaultTheme,
1159
+ setTheme,
1160
+ content: Themes[props.theme || defaultTheme],
1161
+ Switcher: SwitcherComponent
1162
+ },
1163
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_styled_components6.ThemeProvider, { theme: Themes[props.theme || defaultTheme], children: props.children })
1164
+ }
1165
+ );
1166
+ };
1167
+ var useTheme = () => (0, import_react.useContext)(ThemeContext);
991
1168
 
992
- // components/types/loading/app/index.tsx
993
- import { jsx as jsx3 } from "react/jsx-runtime";
994
- function LoadingApp(props) {
995
- return /* @__PURE__ */ jsx3(Container4, { ...props, children: /* @__PURE__ */ jsx3(Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
996
- }
1169
+ // contexts/icon/index.tsx
1170
+ var import_lodash2 = __toESM(require("lodash"));
997
1171
 
998
- // components/types/modal/styles.tsx
999
- import styled6 from "styled-components";
1000
- var Container6 = styled6.div`
1001
- width: 100%;
1002
- height: 100%;
1003
- top: 0;
1004
- right: 0;
1005
- display: flex !important;
1006
- position: fixed;
1007
- z-index: ${(props) => props.toggle ? "9" : "-1"};
1008
- flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
1009
- transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
1010
- transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
1172
+ // contexts/icon/assets/brands/index.tsx
1173
+ var req = require.context("./", false, /\.svg$/);
1174
+ var brands = {};
1175
+ req.keys().forEach((key) => {
1176
+ const name = key.replace("./", "").replace(".svg", "");
1177
+ brands[name] = req(key).default;
1178
+ });
1179
+ var brands_default = brands;
1011
1180
 
1012
- .iz-modal-back {
1013
- width: 100%;
1014
- height: 100%;
1015
- background: rgb(0, 0, 0, 0.3);
1016
- opacity: ${(props) => props.toggle ? "1" : "0"};
1017
- transition: ease 0.3s;
1018
- position: absolute;
1019
- }
1181
+ // contexts/icon/assets/regular/index.tsx
1182
+ var req2 = require.context("./", false, /\.svg$/);
1183
+ var regular = {};
1184
+ req2.keys().forEach((key) => {
1185
+ const name = key.replace("./", "").replace(".svg", "");
1186
+ regular[name] = req2(key).default;
1187
+ });
1188
+ var regular_default = regular;
1020
1189
 
1021
- .iz-modal-container {
1022
- display: flex;
1023
- flex-direction: column;
1024
- height: ${(props) => props.position !== "center" ? "100%" : void 0};
1025
- width: ${(props) => props.position !== "center" ? "18rem" : void 0};
1026
- border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
1027
- max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
1028
- max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
1029
- background: ${({ theme }) => theme.primary};
1030
- 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%)"};
1031
- opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
1032
- transition: ease 0.3s;
1033
- position: absolute;
1190
+ // contexts/icon/assets/solid/index.tsx
1191
+ var req3 = require.context("./", false, /\.svg$/);
1192
+ var solid = {};
1193
+ req3.keys().forEach((key) => {
1194
+ const name = key.replace("./", "").replace(".svg", "");
1195
+ solid[name] = req3(key).default;
1196
+ });
1197
+ var solid_default = solid;
1034
1198
 
1035
- ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
1199
+ // contexts/icon/assets/index.tsx
1200
+ var assets_default = {
1201
+ brands: brands_default,
1202
+ regular: regular_default,
1203
+ solid: solid_default
1204
+ };
1036
1205
 
1037
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1038
- border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
1039
- width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
1040
- max-width: 100%;
1041
- padding-bottom: 3rem !important;
1206
+ // contexts/icon/index.tsx
1207
+ var import_jsx_runtime3 = require("react/jsx-runtime");
1208
+ var IconContext = (0, import_react2.createContext)({});
1209
+ var IconProviderContainer = ({ children }) => {
1210
+ const { content } = useTheme();
1211
+ const [isClient, setIsClient] = (0, import_react2.useState)(false);
1212
+ const [matches, setMatches] = (0, import_react2.useState)(0);
1213
+ (0, import_react2.useEffect)(() => {
1214
+ setIsClient(true);
1215
+ }, []);
1216
+ (0, import_react2.useEffect)(() => {
1217
+ const firstMediaQuery = window.matchMedia(`(max-width: ${content.mobileMaxWidth})`);
1218
+ const secoundMediaQuery = window.matchMedia(`(max-width: ${content.mobileMinWidth})`);
1219
+ const firstHandler = (event) => setMatches(event.matches ? 1 : 0);
1220
+ const secoundHandler = (event) => setMatches(event.matches ? 2 : 1);
1221
+ if (firstMediaQuery.matches) setMatches(1);
1222
+ if (secoundMediaQuery.matches) setMatches(2);
1223
+ firstMediaQuery.addEventListener("change", firstHandler);
1224
+ secoundMediaQuery.addEventListener("change", secoundHandler);
1225
+ return () => {
1226
+ firstMediaQuery.removeEventListener("change", firstHandler);
1227
+ secoundMediaQuery.removeEventListener("change", secoundHandler);
1228
+ };
1229
+ }, []);
1230
+ (0, import_react2.useEffect)(() => {
1231
+ if (!isClient) return;
1232
+ const processElement = (element) => {
1233
+ var _a, _b, _c, _d, _e;
1234
+ const name = element.getAttribute("class");
1235
+ if (!name) return;
1236
+ const icon = import_lodash2.default.split(import_lodash2.default.replace(name, /fa-/g, ""), " ");
1237
+ if (!icon.length) return;
1238
+ let svg = (_d = (_c = (_a = assets_default[icon[0]]) == null ? void 0 : _a[icon[1]]) != null ? _c : (_b = assets_default["solid"]) == null ? void 0 : _b[icon[0]]) != null ? _d : "";
1239
+ if (!svg) return;
1240
+ svg = svg.replace(/fill=".*?"/g, 'fill="currentColor"');
1241
+ const styles = window.getComputedStyle(element);
1242
+ const size = Number((_e = import_lodash2.default.split(styles.fontSize, "px")) == null ? void 0 : _e[0]) + 2;
1243
+ element.style.width = `${size}px`;
1244
+ element.style.height = `${size}px`;
1245
+ element.textContent = "";
1246
+ element.innerHTML = svg;
1247
+ };
1248
+ document.querySelectorAll("i").forEach((el) => processElement(el));
1249
+ const observer = new MutationObserver((mutations) => {
1250
+ mutations.forEach((mutation) => {
1251
+ mutation.addedNodes.forEach((node) => {
1252
+ if (node.nodeType === 1) {
1253
+ const el = node;
1254
+ if (el.tagName.toLowerCase() === "i") processElement(el);
1255
+ el.querySelectorAll("i").forEach((child) => processElement(child));
1256
+ }
1257
+ });
1258
+ });
1259
+ });
1260
+ observer.observe(document.body, {
1261
+ childList: true,
1262
+ subtree: true
1263
+ });
1264
+ return () => observer.disconnect();
1265
+ }, [isClient, matches]);
1266
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(IconContext.Provider, { value: {}, children });
1267
+ };
1268
+ var useIcon = () => (0, import_react2.useContext)(IconContext);
1042
1269
 
1043
- 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%)"};
1270
+ // contexts/tooltip/index.tsx
1271
+ var import_react3 = require("react");
1044
1272
 
1045
- ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
1046
- }
1273
+ // contexts/tooltip/styles.tsx
1274
+ var import_styled_components7 = __toESM(require("styled-components"));
1275
+ var Tooltip = import_styled_components7.default.div`
1276
+ position: fixed;
1277
+ background: ${({ theme }) => theme.tooltip};
1278
+ color: ${({ theme }) => theme.t6};
1279
+ font-size: .8rem;
1280
+ font-weight: 500;
1281
+ text-align: center;
1282
+ padding: .3rem .8rem;
1283
+ border-radius: 5px;
1284
+ transform: translateX(-50%);
1285
+ z-index: 10;
1286
+ border: 1px solid ${({ theme }) => theme.t05};
1047
1287
 
1048
- .iz-modal-header {
1049
- padding: 1.5rem 2rem;
1050
- display: flex;
1051
- align-items: center;
1052
- justify-content: space-between;
1053
- border-bottom: 1px solid rgb(0, 0, 0, 0.2);
1054
-
1055
- .iz-modal-title {
1056
- color: ${({ theme }) => theme.t6};
1057
- font-size: 1rem;
1058
- font-weight: 500;
1059
-
1060
- i {
1061
- margin-right: .5rem;
1062
- }
1063
-
1064
- span {
1065
- word-break: break-word;
1066
- }
1067
- }
1068
-
1069
- .fa-xmark {
1070
- color: ${({ theme }) => theme.t6};
1071
- margin-left: .5rem;
1072
- cursor: pointer;
1073
-
1074
- &:hover {
1075
- color: ${({ theme }) => theme.t8};
1076
- }
1077
- }
1078
- }
1079
-
1080
- .iz-modal-content {
1081
- overflow-x: hidden;
1082
- overflow-y: overlay;
1083
- position: relative;
1084
- height: ${(props) => props.position === "center" ? "initial" : "100%"};
1085
-
1086
- .iz-modal-close {
1288
+ &::before {
1289
+ content: "";
1087
1290
  position: absolute;
1088
- color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
1089
- top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
1090
- right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
1091
- width: 1rem;
1092
- height: 1rem;
1093
- cursor: pointer;
1094
- z-index: 9;
1095
- display: flex;
1096
- align-items: center;
1097
- justify-content: center;
1098
-
1099
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1100
- display: none;
1101
- }
1102
-
1103
- &:hover {
1104
- color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
1105
- }
1106
- }
1291
+ bottom: -9px;
1292
+ left: 50%;
1293
+ transform: translateX(-50%);
1294
+ width: 0;
1295
+ height: 0;
1296
+ border-left: 8px solid transparent;
1297
+ border-right: 8px solid transparent;
1298
+ border-top: 8px solid ${({ theme }) => theme.t05};
1107
1299
  }
1108
1300
 
1109
- .iz-modal-buttons {
1110
- padding: 1rem 2rem;
1111
-
1112
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1113
- padding: 1rem 2rem 2rem;
1114
- }
1115
-
1116
- button {
1117
- width: 100%;
1118
- margin-bottom: .5rem;
1119
- }
1120
-
1121
- button:last-child {
1122
- margin-bottom: 0;
1123
- }
1301
+ &::after {
1302
+ content: "";
1303
+ position: absolute;
1304
+ bottom: -8px;
1305
+ left: 50%;
1306
+ transform: translateX(-50%);
1307
+ width: 0;
1308
+ height: 0;
1309
+ border-left: 8px solid transparent;
1310
+ border-right: 8px solid transparent;
1311
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
1124
1312
  }
1125
- }
1126
1313
  `;
1127
1314
 
1128
- // components/types/modal/index.tsx
1129
- import _ from "lodash";
1130
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1131
- function Modal(props) {
1132
- var _a, _b, _c;
1133
- return /* @__PURE__ */ jsxs2(Container6, { ...props, position: props.position || "center", children: [
1134
- /* @__PURE__ */ jsx4("div", { className: "iz-modal-back", onClick: props.onClose }),
1135
- /* @__PURE__ */ jsxs2("div", { className: "iz-modal-container", children: [
1136
- (!!props.title || !!props.header) && /* @__PURE__ */ jsxs2("div", { className: "iz-modal-header", children: [
1137
- /* @__PURE__ */ jsxs2("div", { className: "iz-modal-title", children: [
1138
- ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx4("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
1139
- /* @__PURE__ */ jsx4("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
1140
- ] }),
1141
- /* @__PURE__ */ jsx4("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
1142
- ] }),
1143
- /* @__PURE__ */ jsxs2("div", { className: "iz-modal-content", children: [
1144
- props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx4("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx4("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
1145
- props.children
1146
- ] }),
1147
- props.buttons && /* @__PURE__ */ jsx4("div", { className: "iz-modal-buttons", children: _.map(
1148
- props.buttons,
1149
- (button, index) => /* @__PURE__ */ jsx4(Button, { ...button }, index)
1150
- ) })
1151
- ] })
1315
+ // contexts/tooltip/index.tsx
1316
+ var import_lodash3 = __toESM(require("lodash"));
1317
+ var import_jsx_runtime4 = require("react/jsx-runtime");
1318
+ var TooltipContext = (0, import_react3.createContext)({});
1319
+ var TooltipProviderContainer = ({ children }) => {
1320
+ const [tooltips, setTooltips] = (0, import_react3.useState)([]);
1321
+ const getContent = (target) => {
1322
+ var _a;
1323
+ const rect = target.getBoundingClientRect();
1324
+ return {
1325
+ top: rect.top + window.scrollY - (target.offsetHeight + 8),
1326
+ left: rect.left + window.scrollX + target.offsetWidth / 2,
1327
+ content: ((_a = target.dataset) == null ? void 0 : _a.tooltip) || ""
1328
+ };
1329
+ };
1330
+ (0, import_react3.useEffect)(() => {
1331
+ const processElement = (element) => {
1332
+ element.addEventListener("mouseenter", (event) => {
1333
+ const target = event == null ? void 0 : event.target;
1334
+ if (!target) return;
1335
+ setTooltips(import_lodash3.default.concat(tooltips, [getContent(target)]));
1336
+ });
1337
+ element.addEventListener("mouseleave", (event) => {
1338
+ const target = event == null ? void 0 : event.target;
1339
+ if (!target) return;
1340
+ setTooltips(import_lodash3.default.filter(tooltips, (data) => JSON.stringify(data) === JSON.stringify(getContent(target))));
1341
+ });
1342
+ };
1343
+ document.querySelectorAll("[data-tooltip]").forEach((el) => processElement(el));
1344
+ const observer = new MutationObserver((mutations) => {
1345
+ mutations.forEach((mutation) => {
1346
+ mutation.addedNodes.forEach((node) => {
1347
+ if (node.nodeType === 1) {
1348
+ const el = node;
1349
+ if (el.getAttribute("data-tooltip")) processElement(el);
1350
+ el.querySelectorAll("[data-tooltip]").forEach((child) => processElement(child));
1351
+ }
1352
+ });
1353
+ });
1354
+ });
1355
+ observer.observe(document.body, {
1356
+ childList: true,
1357
+ subtree: true
1358
+ });
1359
+ return () => observer.disconnect();
1360
+ }, []);
1361
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(TooltipContext.Provider, { value: {}, children: [
1362
+ import_lodash3.default.map(
1363
+ tooltips,
1364
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1365
+ Tooltip,
1366
+ {
1367
+ style: {
1368
+ top: data.top,
1369
+ left: data.left
1370
+ },
1371
+ children: data.content
1372
+ },
1373
+ index
1374
+ )
1375
+ ),
1376
+ children
1152
1377
  ] });
1153
- }
1154
-
1155
- // components/types/badge/styles.tsx
1156
- import styled7 from "styled-components";
1157
- var Container7 = styled7.div`
1158
- .content {
1159
- display: inline-flex;
1160
- align-items: center;
1161
- justify-content: center;
1162
- height: 1.8rem;
1163
- padding: 0 2rem;
1164
- position: relative;
1378
+ };
1379
+ var useTooltip = () => (0, import_react3.useContext)(TooltipContext);
1165
1380
 
1166
- div {
1167
- position: relative;
1168
- z-index: 1;
1169
- color: ${({ theme, color }) => theme[color]};
1170
- font-size: .8rem;
1171
- font-weight: 500;
1172
- text-transform: capitalize;
1173
- }
1381
+ // contexts/modal/index.tsx
1382
+ var import_react4 = require("react");
1383
+ var import_navigation = require("next/navigation");
1174
1384
 
1175
- &:before {
1176
- content: "";
1177
- position: absolute;
1178
- top: 0;
1179
- left: 0;
1180
- width: 100%;
1181
- height: 100%;
1182
- border-radius: 5px;
1183
- background: ${({ theme, color }) => theme[color]};
1184
- opacity: .2;
1185
- }
1186
- }
1385
+ // contexts/modal/styles.tsx
1386
+ var import_styled_components8 = __toESM(require("styled-components"));
1387
+ var Container4 = import_styled_components8.default.div`
1388
+
1187
1389
  `;
1188
1390
 
1189
- // contexts/icon/index.tsx
1190
- import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
1391
+ // contexts/modal/index.tsx
1392
+ var import_lodash4 = __toESM(require("lodash"));
1393
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1394
+ var ModalContext = (0, import_react4.createContext)({});
1395
+ var memory = [];
1396
+ var ModalProviderContainer = ({ children }) => {
1397
+ const pathname = (0, import_navigation.usePathname)();
1398
+ const [modals, setModals] = (0, import_react4.useState)([]);
1399
+ (0, import_react4.useEffect)(() => {
1400
+ setModals(import_lodash4.default.filter(memory, (modal) => modal.type === "fixed"));
1401
+ }, [pathname]);
1402
+ const add = (modal) => {
1403
+ if (import_lodash4.default.some(memory, (data) => data.name === modal.name)) return;
1404
+ memory.push(modal);
1405
+ setModals(memory);
1406
+ };
1407
+ const remove = (modalName) => {
1408
+ const index = import_lodash4.default.findIndex(memory, (data) => data.name === modalName);
1409
+ memory.slice(index, 1);
1410
+ setModals(memory);
1411
+ };
1412
+ const setProps = (modalName, props) => {
1413
+ const index = import_lodash4.default.findIndex(modals, (modal) => modal.name === modalName);
1414
+ const content = import_lodash4.default.find(modals, (modal) => modal.name === modalName);
1415
+ if (!content) return;
1416
+ let settedModals = [...modals];
1417
+ settedModals.splice(index, 1, { ...content, props: { ...content.props, ...props } });
1418
+ setModals(settedModals);
1419
+ };
1420
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1421
+ ModalContext.Provider,
1422
+ {
1423
+ value: {
1424
+ value: modals,
1425
+ add,
1426
+ remove,
1427
+ setProps
1428
+ },
1429
+ children: [
1430
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Container4, { children: import_lodash4.default.map(modals, (modal, index) => {
1431
+ const ModalComponent = modal.component;
1432
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ModalComponent, { ...modal.props }, index);
1433
+ }) }),
1434
+ children
1435
+ ]
1436
+ }
1437
+ );
1438
+ };
1439
+ var useModal = () => (0, import_react4.useContext)(ModalContext);
1191
1440
 
1192
- // contexts/theme/index.tsx
1193
- import { createContext, useContext, useState } from "react";
1194
- import { ThemeProvider } from "styled-components";
1441
+ // components/types/table/index.tsx
1442
+ var import_lodash6 = __toESM(require("lodash"));
1195
1443
 
1196
- // contexts/theme/styles.tsx
1197
- import styled8 from "styled-components";
1198
- var Switcher = styled8.div`
1199
- width: 3rem;
1200
- height: 1.5rem;
1201
- border-radius: 1rem;
1202
- border: 2px solid ${({ theme }) => theme.t05};
1203
- overflow: hidden;
1444
+ // components/types/table/modal/styles.tsx
1445
+ var import_styled_components9 = __toESM(require("styled-components"));
1446
+ var Content = import_styled_components9.default.div`
1447
+ padding: 1.5rem;
1204
1448
  display: flex;
1205
- align-items: center;
1206
- cursor: pointer;
1207
- position: relative;
1208
-
1209
- i {
1449
+ flex-direction: column;
1450
+ gap: 1.5rem;
1451
+
1452
+ .iz-table-modal-title {
1453
+ font-size: 1.2rem;
1454
+ font-weight: 500;
1455
+ width: 100%;
1456
+ display: flex;
1457
+ align-items: center;
1458
+ justify-content: center;
1210
1459
  color: ${({ theme }) => theme.t6};
1211
- position: absolute;
1212
- transform: translateY(-50%);
1213
- font-size: .9rem;
1214
- z-index: 0;
1215
- transition: ease .8s;
1216
-
1217
- &:first-child {
1218
- left: .2rem;
1219
- top: 50%;
1220
- opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
1221
- }
1460
+ }
1461
+
1462
+ .iz-table-modal-content {
1463
+ ul {
1464
+ li {
1465
+ border-bottom: solid 1px ${({ theme }) => theme.t05};
1466
+ padding: .8rem 0;
1467
+ display: flex;
1468
+ align-items: center;
1469
+ justify-content: space-between;
1470
+ gap: 1rem;
1471
+ font-size: .8rem;
1472
+ color: ${({ theme }) => theme.t6};
1222
1473
 
1223
- &:last-child {
1224
- right: .2rem;
1225
- top: 50%;
1226
- opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
1474
+ &:last-child {
1475
+ border-bottom: none;
1476
+ }
1477
+
1478
+ .iz-table-modal-column {
1479
+ background: ${({ theme }) => theme.t05};
1480
+ padding: .5rem .8rem;
1481
+ font-weight: 600;
1482
+ border-radius: 5px;
1483
+ }
1484
+
1485
+ .iz-table-modal-row {
1486
+ text-align: right;
1487
+ }
1488
+ }
1227
1489
  }
1228
1490
  }
1229
1491
 
1230
- .switcher {
1231
- width: 1rem;
1232
- height: 1rem;
1233
- border-radius: 1rem;
1234
- position: relative;
1235
- transition: ease .3s;
1236
- transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
1237
- z-index: 1;
1492
+ .iz-table-modal-actions {
1493
+ margin-top: 1rem;
1494
+ }
1495
+ `;
1238
1496
 
1239
- div {
1240
- width: 100%;
1241
- height: 100%;
1242
- background: ${({ theme }) => theme.primary};
1243
- border-radius: 1rem;
1244
- position: relative;
1245
- z-index: 2;
1246
- }
1497
+ // components/types/table/modal/index.tsx
1498
+ var import_lodash5 = __toESM(require("lodash"));
1247
1499
 
1248
- &:after {
1500
+ // components/types/table/modal/actions.tsx
1501
+ var actionConfig = {
1502
+ "fa-solid fa-pen-to-square": { label: "editar" },
1503
+ "fa-solid fa-trash-can": { label: "remover", color: CommonTheme.negative }
1504
+ };
1505
+ var actions_default = actionConfig;
1506
+
1507
+ // components/types/table/modal/index.tsx
1508
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1509
+ function Modal(props) {
1510
+ const modal = useModal();
1511
+ const content = import_lodash5.default.omit(props.content, ["actions"]);
1512
+ const actions = Object.values(import_lodash5.default.pick(props.content, ["actions"]))[0];
1513
+ const onClose = () => {
1514
+ modal.setProps("table", { toggle: false });
1515
+ };
1516
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1517
+ Component,
1518
+ {
1519
+ content: [{
1520
+ type: "Modal",
1521
+ props: {
1522
+ toggle: props.toggle,
1523
+ onClose,
1524
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Container2, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Content, { children: [
1525
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "iz-table-modal-title", children: "Conte\xFAdo" }),
1526
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "iz-table-modal-content", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("ul", { children: import_lodash5.default.map(
1527
+ content,
1528
+ (value, key) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("li", { children: [
1529
+ !!key && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "iz-table-modal-column", children: key }),
1530
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "iz-table-modal-row", children: value })
1531
+ ] }, key)
1532
+ ) }) }),
1533
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "iz-table-modal-actions", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1534
+ Component,
1535
+ {
1536
+ content: import_lodash5.default.concat(import_lodash5.default.map(actions, (data) => ({
1537
+ type: "Button",
1538
+ props: {
1539
+ ...actions_default[data.icon] || {},
1540
+ onClick: data.function
1541
+ }
1542
+ })), {
1543
+ type: "Button",
1544
+ props: {
1545
+ label: "fechar",
1546
+ outline: true,
1547
+ onClick: onClose
1548
+ }
1549
+ })
1550
+ }
1551
+ ) })
1552
+ ] }) })
1553
+ }
1554
+ }]
1555
+ }
1556
+ );
1557
+ }
1558
+
1559
+ // components/types/table/index.tsx
1560
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1561
+ function Table(props) {
1562
+ var _a, _b, _c, _d, _e, _f;
1563
+ const theme = useTheme();
1564
+ const modal = useModal();
1565
+ const loading = ((_a = props.loading) == null ? void 0 : _a.is) || props.loading;
1566
+ (0, import_react5.useEffect)(() => {
1567
+ modal.add({ component: Modal, name: "table" });
1568
+ return () => modal.remove("table");
1569
+ }, []);
1570
+ const onShowLine = (key) => {
1571
+ if (window.innerWidth > Number(import_lodash6.default.replace(theme.content.mobileMaxWidth, "px", ""))) return;
1572
+ let content = {};
1573
+ import_lodash6.default.forEach(props.options, (data, index) => {
1574
+ var _a2, _b2;
1575
+ const column = ((_a2 = data.column) == null ? void 0 : _a2.name) || data.column;
1576
+ const columnName = !import_lodash6.default.isString(column) ? props.options.length - 1 === index ? "actions" : "" : column;
1577
+ content[columnName] = columnName === "actions" ? (_b2 = data.row) == null ? void 0 : _b2.actions : renderRowContainer(props.content[key], data);
1578
+ });
1579
+ modal.setProps("table", { toggle: true, content });
1580
+ };
1581
+ const renderRowContainer = (data, option) => {
1582
+ var _a2, _b2, _c2, _d2;
1583
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1584
+ "div",
1585
+ {
1586
+ className: `
1587
+ iz-table-content
1588
+ ${((_a2 = option.row) == null ? void 0 : _a2.actions) ? "iz-table-action" : ""}
1589
+ ${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "iz-table-identifier" : ""}
1590
+ `,
1591
+ style: import_lodash6.default.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
1592
+ children: renderRowContent(data, option)
1593
+ }
1594
+ );
1595
+ };
1596
+ const renderRowContent = (data, option) => {
1597
+ var _a2, _b2, _c2, _d2, _e2;
1598
+ if (!!((_a2 = option.row) == null ? void 0 : _a2.actions)) {
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "iz-table-actions", children: import_lodash6.default.map(
1600
+ (_b2 = option.row) == null ? void 0 : _b2.actions,
1601
+ (action, index) => renderButton(action, data, index)
1602
+ ) });
1603
+ }
1604
+ if ((_c2 = option.row) == null ? void 0 : _c2.icon) {
1605
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "iz-table-icon", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1606
+ "i",
1607
+ {
1608
+ "aria-hidden": true,
1609
+ className: import_lodash6.default.isFunction((_d2 = option.row) == null ? void 0 : _d2.icon) ? option.row.icon(data) || "fa-solid fa-circle-user" : ((_e2 = option.row) == null ? void 0 : _e2.icon) || "fa-solid fa-circle-user"
1610
+ }
1611
+ ) });
1612
+ }
1613
+ return renderRowText(data, option);
1614
+ };
1615
+ const renderButton = (action, data, index) => {
1616
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1617
+ "button",
1618
+ {
1619
+ className: `iz-table-button ${import_lodash6.default.includes(action.icon, "trash") ? "negative" : ""}`,
1620
+ onClick: () => action.function ? action.function(data) : null,
1621
+ disabled: action.disabled,
1622
+ "data-tooltip": action.tooltip,
1623
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("i", { "aria-hidden": true, className: action.icon || "fa-solid fa-eye" })
1624
+ },
1625
+ index
1626
+ );
1627
+ };
1628
+ const renderRowText = (data, option) => {
1629
+ const row = option.row || {};
1630
+ const content = data[row.name] || data;
1631
+ let body;
1632
+ while (!body) {
1633
+ if (import_lodash6.default.isString(row)) body = data[row];
1634
+ if (import_lodash6.default.isString(content)) body = content;
1635
+ if (import_lodash6.default.isFunction(row.mask)) body = row.mask(content);
1636
+ if (import_lodash6.default.isFunction(row.custom)) body = row.custom(content);
1637
+ body = body != null ? body : "---";
1638
+ }
1639
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1640
+ "div",
1641
+ {
1642
+ className: "iz-table-content-elipse",
1643
+ title: import_lodash6.default.isString(body) ? body : "",
1644
+ children: body
1645
+ }
1646
+ );
1647
+ };
1648
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Container2, { notFound: !((_b = props.content) == null ? void 0 : _b.length) && !props.loading, children: [
1649
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "iz-table-container", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("table", { children: [
1650
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: import_lodash6.default.map(
1651
+ props.options,
1652
+ (option, index) => {
1653
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
1654
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1655
+ "div",
1656
+ {
1657
+ className: `iz-table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `iz-table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
1658
+ children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : import_lodash6.default.isString(((_h = option.column) == null ? void 0 : _h.name) || option.column) ? ((_i = option.column) == null ? void 0 : _i.name) || option.column : ""
1659
+ }
1660
+ ) }, index);
1661
+ }
1662
+ ) }) }),
1663
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tbody", { children: loading ? import_lodash6.default.map(((_c = props.loading) == null ? void 0 : _c.items) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (data, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: import_lodash6.default.map(props.options, (data2, index) => {
1664
+ var _a2;
1665
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1666
+ LoadingBar,
1667
+ {
1668
+ height: "2.5rem",
1669
+ borderRadius: index === 0 ? "5px 0 0 5px" : ((_a2 = props.options) == null ? void 0 : _a2.length) - 1 === index ? "0 5px 5px 0" : "0",
1670
+ margin: key === 0 ? "1.5rem 0 0" : ".5rem 0 0"
1671
+ }
1672
+ ) }, index);
1673
+ }) }, key)) : import_lodash6.default.map(props.content, (data, key) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: import_lodash6.default.map(props.options, (option, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { onClick: () => index < 2 ? onShowLine(key) : null, children: renderRowContainer(data, option) }, index)) }, key)) })
1674
+ ] }) }),
1675
+ !((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "iz-table-not-found", children: [
1676
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: ((_e = props.notFound) == null ? void 0 : _e.title) || "Nenhuma campanha encontrado" }),
1677
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { children: ((_f = props.notFound) == null ? void 0 : _f.message) || "Envie uma campanha de marketing para aparecer algum registro" })
1678
+ ] }),
1679
+ !!props.paginate && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Paginate, { ...props.paginate })
1680
+ ] });
1681
+ }
1682
+
1683
+ // components/types/loading/bar/styles.tsx
1684
+ var import_styled_components10 = __toESM(require("styled-components"));
1685
+ var Container5 = import_styled_components10.default.div`
1686
+ border-radius: ${(props) => props.borderRadius || "10px"};
1687
+ height: ${(props) => props.height || "100%"};
1688
+ width: ${(props) => props.width || "100%"};
1689
+ animation: loading infinite 2s;
1690
+ margin: ${(props) => props.margin || "0px"};
1691
+
1692
+ @keyframes loading {
1693
+ 0% {
1694
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1695
+ }
1696
+ 50% {
1697
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.10)" : "rgb(255, 255, 255, 0.15)"};
1698
+ }
1699
+ 100% {
1700
+ background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1701
+ }
1702
+ }
1703
+ `;
1704
+
1705
+ // components/types/loading/bar/index.tsx
1706
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1707
+ function LoadingBar(props) {
1708
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Container5, { ...props });
1709
+ }
1710
+
1711
+ // components/types/loading/app/styles.tsx
1712
+ var import_styled_components11 = __toESM(require("styled-components"));
1713
+ var Container6 = import_styled_components11.default.div`
1714
+ width: ${({ initialization }) => initialization ? "100vw" : "100%"};
1715
+ height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
1716
+ display: flex;
1717
+ justify-content: center;
1718
+ align-items: center;
1719
+ position: ${({ initialization }) => initialization ? "absolute" : "relative"};;
1720
+ bottom: 0;
1721
+ left: 0;
1722
+ background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
1723
+ z-index: ${({ initialization }) => initialization ? "9" : "0"};
1724
+
1725
+ .iz-loading-logo {
1726
+ font-size: 4rem;
1727
+ opacity: 40%;
1728
+ animation: loop 2s infinite;
1729
+ position: relative;
1730
+
1731
+ &::before {
1249
1732
  content: "";
1250
1733
  position: absolute;
1251
- width: 100%;
1252
- height: 100%;
1253
- border-radius: 1rem;
1254
- transform: scale(1.8);
1734
+ width: 5rem;
1735
+ height: 5rem;
1736
+ animation: firstImpact 2s .5s infinite ease;
1255
1737
  background: ${({ theme }) => theme.t05};
1256
- top: 0;
1257
- left: 0;
1258
- z-index: 1;
1738
+ border-radius: 50%;
1739
+ z-index: 0;
1740
+ opacity: 0;
1259
1741
  }
1260
1742
 
1261
- &:before {
1743
+ &::after {
1262
1744
  content: "";
1263
1745
  position: absolute;
1264
- width: 100%;
1265
- height: 100%;
1266
- border-radius: 1rem;
1267
- transform: scale(3);
1746
+ width: 5rem;
1747
+ height: 5rem;
1748
+ animation: secondImpact 2s .5s infinite ease;
1268
1749
  background: ${({ theme }) => theme.t05};
1269
- top: 0;
1270
- left: 0;
1750
+ border-radius: 50%;
1271
1751
  z-index: 0;
1752
+ opacity: 0;
1753
+ }
1754
+
1755
+ @keyframes loop {
1756
+ 0% {
1757
+ transform: scale(1);
1758
+ }
1759
+ 80% {
1760
+ transform: scale(1.3);
1761
+ }
1762
+ 100% {
1763
+ transform: scale(1);
1764
+ }
1765
+ }
1766
+
1767
+ @keyframes firstImpact {
1768
+ 0% {
1769
+ transform: scale(1);
1770
+ opacity: 0;
1771
+ }
1772
+ 10% {
1773
+ transform: scale(1.6);
1774
+ opacity: 1;
1775
+ }
1776
+ 100% {
1777
+ transform: scale(1.6);
1778
+ opacity: 0;
1779
+ }
1780
+ }
1781
+
1782
+ @keyframes secondImpact {
1783
+ 0% {
1784
+ transform: scale(1);
1785
+ opacity: 0;
1786
+ }
1787
+ 40% {
1788
+ transform: scale(1.3);
1789
+ opacity: 1;
1790
+ }
1791
+ 100% {
1792
+ transform: scale(1.3);
1793
+ opacity: 0;
1794
+ }
1272
1795
  }
1273
1796
  }
1274
1797
  `;
1275
1798
 
1276
- // contexts/theme/content.tsx
1277
- var CommonTheme = {
1278
- secondary: "#5869da",
1279
- tertiary: "#629dfd33",
1280
- positive: "#65c965",
1281
- negative: "#FF334E",
1282
- mobileMaxWidth: "650px",
1283
- mobileMinWidth: "315px"
1284
- };
1285
- var Themes = {
1286
- light: {
1287
- primary: "#ffffff",
1288
- reverse: "#353535",
1289
- tooltip: "#f2f2f2",
1290
- t8: "#000000cc",
1291
- t7: "#000000b3",
1292
- t6: "#00000099",
1293
- t5: "#00000080",
1294
- t4: "#00000066",
1295
- t3: "#0000004d",
1296
- t2: "#00000033",
1297
- t1: "#0000001a",
1298
- t08: "#00000014",
1299
- t05: "#0000000d",
1300
- t03: "#00000007",
1301
- t02: "#00000005",
1302
- t01: "#00000002",
1303
- lgrad: `linear-gradient(
1304
- to right,
1305
- #dadef7 0%,
1306
- #dee2f8 5%,
1307
- #e2e5f9 10%,
1308
- #e6e9fa 20%,
1309
- #eaedfb 30%,
1310
- #eff0fb 60%,
1311
- #f3f4fc 80%,
1312
- #f7f8fd 90%,
1313
- #fbfbfe 100%
1314
- )`,
1315
- maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
1316
- ...CommonTheme
1317
- },
1318
- dark: {
1319
- primary: "#333333",
1320
- reverse: "#b45252",
1321
- tooltip: "#3d3d3d",
1322
- t8: "#ffffffcc",
1323
- t7: "#ffffffb3",
1324
- t6: "#ffffff99",
1325
- t5: "#ffffff80",
1326
- t4: "#ffffff66",
1327
- t3: "#ffffff4d",
1328
- t2: "#ffffff33",
1329
- t1: "#ffffff1a",
1330
- t08: "#ffffff14",
1331
- t05: "#ffffff0d",
1332
- t03: "#ffffff07",
1333
- t02: "#ffffff05",
1334
- t01: "#ffffff02",
1335
- lgrad: `linear-gradient(
1336
- to right,
1337
- #3d485c 0%,
1338
- #3c4657 5%,
1339
- #3b4353 10%,
1340
- #3a414e 20%,
1341
- #393f4a 30%,
1342
- #373c45 60%,
1343
- #363a41 80%,
1344
- #35383c 90%,
1345
- #343538 100%
1346
- )`,
1347
- maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
1348
- ...CommonTheme
1799
+ // components/types/logo/styles.tsx
1800
+ var import_styled_components12 = __toESM(require("styled-components"));
1801
+ var Container7 = import_styled_components12.default.div`
1802
+ display: flex;
1803
+ align-items: center;
1804
+ justify-content: center;
1805
+ gap: .3rem;
1806
+ font-size: ${(props) => props.size || "2"}rem;
1807
+ color: ${(props) => props.theme.t5};
1808
+
1809
+ label:first-child {
1810
+ font-weight: 900;
1811
+ color: ${(props) => props.theme.secondary};
1349
1812
  }
1350
- };
1351
1813
 
1352
- // contexts/theme/index.tsx
1353
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
1354
- var ThemeContext = createContext({});
1355
- var useTheme = () => useContext(ThemeContext);
1814
+ label:last-child {
1815
+ font-weight: 600;
1816
+ }
1817
+ `;
1356
1818
 
1357
- // contexts/icon/index.tsx
1358
- import _2 from "lodash";
1819
+ // components/types/logo/index.tsx
1820
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1821
+ function Logo(props) {
1822
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Container7, { ...props, children: [
1823
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { children: "IZ" }),
1824
+ !props.onlyPrefix && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { children: "Way" })
1825
+ ] });
1826
+ }
1359
1827
 
1360
- // contexts/icon/assets/brands/index.tsx
1361
- var req = __require.context("./", false, /\.svg$/);
1362
- var brands = {};
1363
- req.keys().forEach((key) => {
1364
- const name = key.replace("./", "").replace(".svg", "");
1365
- brands[name] = req(key).default;
1366
- });
1828
+ // components/types/loading/app/index.tsx
1829
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1830
+ function LoadingApp(props) {
1831
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Container6, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
1832
+ }
1367
1833
 
1368
- // contexts/icon/assets/regular/index.tsx
1369
- var req2 = __require.context("./", false, /\.svg$/);
1370
- var regular = {};
1371
- req2.keys().forEach((key) => {
1372
- const name = key.replace("./", "").replace(".svg", "");
1373
- regular[name] = req2(key).default;
1374
- });
1834
+ // components/types/modal/styles.tsx
1835
+ var import_styled_components13 = __toESM(require("styled-components"));
1836
+ var Container8 = import_styled_components13.default.div`
1837
+ width: 100%;
1838
+ height: 100%;
1839
+ top: 0;
1840
+ right: 0;
1841
+ display: flex !important;
1842
+ position: fixed;
1843
+ z-index: ${(props) => props.toggle ? "9" : "-1"};
1844
+ flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
1845
+ transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
1846
+ transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
1375
1847
 
1376
- // contexts/icon/assets/solid/index.tsx
1377
- var req3 = __require.context("./", false, /\.svg$/);
1378
- var solid = {};
1379
- req3.keys().forEach((key) => {
1380
- const name = key.replace("./", "").replace(".svg", "");
1381
- solid[name] = req3(key).default;
1382
- });
1848
+ .iz-modal-back {
1849
+ width: 100%;
1850
+ height: 100%;
1851
+ background: rgb(0, 0, 0, 0.3);
1852
+ opacity: ${(props) => props.toggle ? "1" : "0"};
1853
+ transition: ease 0.3s;
1854
+ position: absolute;
1855
+ }
1383
1856
 
1384
- // contexts/icon/index.tsx
1385
- import { jsx as jsx6 } from "react/jsx-runtime";
1386
- var IconContext = createContext2({});
1857
+ .iz-modal-container {
1858
+ display: flex;
1859
+ flex-direction: column;
1860
+ height: ${(props) => props.position !== "center" ? "100%" : void 0};
1861
+ width: ${(props) => props.position !== "center" ? "18rem" : void 0};
1862
+ border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
1863
+ max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
1864
+ max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
1865
+ background: ${({ theme }) => theme.primary};
1866
+ 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%)"};
1867
+ opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
1868
+ transition: ease 0.3s;
1869
+ position: absolute;
1387
1870
 
1388
- // contexts/tooltip/index.tsx
1389
- import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
1871
+ ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
1390
1872
 
1391
- // contexts/tooltip/styles.tsx
1392
- import styled9 from "styled-components";
1393
- var Tooltip = styled9.div`
1394
- position: fixed;
1395
- background: ${({ theme }) => theme.tooltip};
1396
- color: ${({ theme }) => theme.t6};
1397
- font-size: .8rem;
1398
- font-weight: 500;
1399
- text-align: center;
1400
- padding: .3rem .8rem;
1401
- border-radius: 5px;
1402
- transform: translateX(-50%);
1403
- z-index: 10;
1404
- border: 1px solid ${({ theme }) => theme.t05};
1873
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1874
+ border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
1875
+ width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
1876
+ max-width: 100%;
1877
+ padding-bottom: 3rem !important;
1405
1878
 
1406
- &::before {
1407
- content: "";
1408
- position: absolute;
1409
- bottom: -9px;
1410
- left: 50%;
1411
- transform: translateX(-50%);
1412
- width: 0;
1413
- height: 0;
1414
- border-left: 8px solid transparent;
1415
- border-right: 8px solid transparent;
1416
- border-top: 8px solid ${({ theme }) => theme.t05};
1879
+ 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%)"};
1880
+
1881
+ ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
1417
1882
  }
1418
1883
 
1419
- &::after {
1420
- content: "";
1884
+ .iz-modal-header {
1885
+ padding: 1.5rem 2rem;
1886
+ display: flex;
1887
+ align-items: center;
1888
+ justify-content: space-between;
1889
+ border-bottom: 1px solid rgb(0, 0, 0, 0.2);
1890
+
1891
+ .iz-modal-title {
1892
+ color: ${({ theme }) => theme.t6};
1893
+ font-size: 1rem;
1894
+ font-weight: 500;
1895
+
1896
+ i {
1897
+ margin-right: .5rem;
1898
+ }
1899
+
1900
+ span {
1901
+ word-break: break-word;
1902
+ }
1903
+ }
1904
+
1905
+ .fa-xmark {
1906
+ color: ${({ theme }) => theme.t6};
1907
+ margin-left: .5rem;
1908
+ cursor: pointer;
1909
+
1910
+ &:hover {
1911
+ color: ${({ theme }) => theme.t8};
1912
+ }
1913
+ }
1914
+ }
1915
+
1916
+ .iz-modal-content {
1917
+ overflow-x: hidden;
1918
+ overflow-y: overlay;
1919
+ position: relative;
1920
+ height: ${(props) => props.position === "center" ? "initial" : "100%"};
1921
+
1922
+ .iz-modal-close {
1421
1923
  position: absolute;
1422
- bottom: -8px;
1423
- left: 50%;
1424
- transform: translateX(-50%);
1425
- width: 0;
1426
- height: 0;
1427
- border-left: 8px solid transparent;
1428
- border-right: 8px solid transparent;
1429
- border-top: 8px solid ${({ theme }) => theme.tooltip};
1924
+ color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
1925
+ top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
1926
+ right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
1927
+ width: 1rem;
1928
+ height: 1rem;
1929
+ cursor: pointer;
1930
+ z-index: 9;
1931
+ display: flex;
1932
+ align-items: center;
1933
+ justify-content: center;
1934
+
1935
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1936
+ display: none;
1937
+ }
1938
+
1939
+ &:hover {
1940
+ color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
1941
+ }
1942
+ }
1943
+ }
1944
+
1945
+ .iz-modal-buttons {
1946
+ padding: 1rem 2rem;
1947
+
1948
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
1949
+ padding: 1rem 2rem 2rem;
1950
+ }
1951
+
1952
+ button {
1953
+ width: 100%;
1954
+ margin-bottom: .5rem;
1955
+ }
1956
+
1957
+ button:last-child {
1958
+ margin-bottom: 0;
1959
+ }
1430
1960
  }
1961
+ }
1431
1962
  `;
1432
1963
 
1433
- // contexts/tooltip/index.tsx
1434
- import _3 from "lodash";
1435
- import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1436
- var TooltipContext = createContext3({});
1964
+ // components/types/modal/index.tsx
1965
+ var import_lodash7 = __toESM(require("lodash"));
1966
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1967
+ function Modal2(props) {
1968
+ var _a, _b, _c;
1969
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Container8, { ...props, position: props.position || "center", children: [
1970
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "iz-modal-back", onClick: props.onClose }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "iz-modal-container", children: [
1972
+ (!!props.title || !!props.header) && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "iz-modal-header", children: [
1973
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "iz-modal-title", children: [
1974
+ ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
1975
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
1976
+ ] }),
1977
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
1978
+ ] }),
1979
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "iz-modal-content", children: [
1980
+ props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
1981
+ props.children
1982
+ ] }),
1983
+ props.buttons && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "iz-modal-buttons", children: import_lodash7.default.map(
1984
+ props.buttons,
1985
+ (button, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Button, { ...button }, index)
1986
+ ) })
1987
+ ] })
1988
+ ] });
1989
+ }
1437
1990
 
1438
- // contexts/modal/index.tsx
1439
- import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
1440
- import { usePathname } from "next/navigation";
1991
+ // components/types/badge/styles.tsx
1992
+ var import_styled_components14 = __toESM(require("styled-components"));
1993
+ var Container9 = import_styled_components14.default.div`
1994
+ .content {
1995
+ display: inline-flex;
1996
+ align-items: center;
1997
+ justify-content: center;
1998
+ height: 1.8rem;
1999
+ padding: 0 2rem;
2000
+ position: relative;
1441
2001
 
1442
- // contexts/modal/styles.tsx
1443
- import styled10 from "styled-components";
1444
- var Container8 = styled10.div`
1445
-
1446
- `;
2002
+ div {
2003
+ position: relative;
2004
+ z-index: 1;
2005
+ color: ${({ theme, color }) => theme[color]};
2006
+ font-size: .8rem;
2007
+ font-weight: 500;
2008
+ text-transform: capitalize;
2009
+ }
1447
2010
 
1448
- // contexts/modal/index.tsx
1449
- import _4 from "lodash";
1450
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1451
- var ModalContext = createContext4({});
1452
- var useModal = () => useContext4(ModalContext);
2011
+ &:before {
2012
+ content: "";
2013
+ position: absolute;
2014
+ top: 0;
2015
+ left: 0;
2016
+ width: 100%;
2017
+ height: 100%;
2018
+ border-radius: 5px;
2019
+ background: ${({ theme, color }) => theme[color]};
2020
+ opacity: .2;
2021
+ }
2022
+ }
2023
+ `;
1453
2024
 
1454
2025
  // components/types/badge/index.tsx
1455
- import _5 from "lodash";
1456
- import { jsx as jsx9 } from "react/jsx-runtime";
2026
+ var import_lodash8 = __toESM(require("lodash"));
2027
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1457
2028
  function Badge(props) {
1458
2029
  const { content } = useTheme();
1459
2030
  const status = {
@@ -1463,15 +2034,15 @@ function Badge(props) {
1463
2034
  INSTAVEL: "negative",
1464
2035
  REGULAR: "negative"
1465
2036
  };
1466
- return /* @__PURE__ */ jsx9(Container7, { color: status[props.value] || content.t3, children: /* @__PURE__ */ jsx9("div", { className: "content", children: /* @__PURE__ */ jsx9("div", { children: _5.lowerCase(props.value) }) }) });
2037
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Container9, { color: status[props.value] || content.t3, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "content", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { children: import_lodash8.default.lowerCase(props.value) }) }) });
1467
2038
  }
1468
2039
 
1469
2040
  // components/types/form/index.tsx
1470
- import React8, { useEffect as useEffect5, useRef as useRef2 } from "react";
2041
+ var import_react9 = __toESM(require("react"));
1471
2042
 
1472
2043
  // components/types/form/styles.tsx
1473
- import styled11 from "styled-components";
1474
- var Container9 = styled11.form`
2044
+ var import_styled_components15 = __toESM(require("styled-components"));
2045
+ var Container10 = import_styled_components15.default.form`
1475
2046
  width: 100%;
1476
2047
 
1477
2048
  .form-buttons {
@@ -1486,10 +2057,10 @@ var Container9 = styled11.form`
1486
2057
  `;
1487
2058
 
1488
2059
  // components/types/form/index.tsx
1489
- import { z } from "zod";
1490
- import { useForm } from "react-hook-form";
1491
- import { zodResolver } from "@hookform/resolvers/zod";
1492
- import _11 from "lodash";
2060
+ var import_zod = require("zod");
2061
+ var import_react_hook_form = require("react-hook-form");
2062
+ var import_zod2 = require("@hookform/resolvers/zod");
2063
+ var import_lodash14 = __toESM(require("lodash"));
1493
2064
 
1494
2065
  // components/types/form/types/index.tsx
1495
2066
  var types_exports = {};
@@ -1504,11 +2075,11 @@ __export(types_exports, {
1504
2075
  });
1505
2076
 
1506
2077
  // components/types/form/types/file/index.tsx
1507
- import { useRef } from "react";
2078
+ var import_react6 = require("react");
1508
2079
 
1509
2080
  // components/types/form/types/file/styles.tsx
1510
- import styled12 from "styled-components";
1511
- var Container10 = styled12.div`
2081
+ var import_styled_components16 = __toESM(require("styled-components"));
2082
+ var Container11 = import_styled_components16.default.div`
1512
2083
  width: 100%;
1513
2084
  padding-top: .3rem;
1514
2085
 
@@ -1535,31 +2106,31 @@ var Container10 = styled12.div`
1535
2106
  `;
1536
2107
 
1537
2108
  // components/types/form/types/label/styles.tsx
1538
- import styled13 from "styled-components";
1539
- var Container11 = styled13.label`
2109
+ var import_styled_components17 = __toESM(require("styled-components"));
2110
+ var Container12 = import_styled_components17.default.label`
1540
2111
  font-size: .8rem;
1541
2112
  font-weight: 500;
1542
2113
  color: ${({ theme }) => theme.t6};
1543
2114
  `;
1544
2115
 
1545
2116
  // components/types/form/types/label/index.tsx
1546
- import { jsx as jsx10 } from "react/jsx-runtime";
2117
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1547
2118
  function InputLabel(props) {
1548
- return /* @__PURE__ */ jsx10(Container11, { className: props.className, children: props.children });
2119
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Container12, { className: props.className, children: props.children });
1549
2120
  }
1550
2121
 
1551
2122
  // components/types/form/types/file/index.tsx
1552
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
2123
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1553
2124
  function InputFile(props) {
1554
2125
  var _a;
1555
- const inputRef = useRef({});
2126
+ const inputRef = (0, import_react6.useRef)({});
1556
2127
  const register = (props.register || ((name) => ({})))(props.name || "");
1557
2128
  const readImage = (data) => {
1558
2129
  if (props.onPreview) props.onPreview(URL.createObjectURL(data));
1559
2130
  if (props.onChange) props.onChange(data);
1560
2131
  };
1561
- return /* @__PURE__ */ jsxs6(Container10, { className: props.className, error: props.error, disabled: props.disabled, children: [
1562
- /* @__PURE__ */ jsx11(
2132
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Container11, { className: props.className, error: props.error, disabled: props.disabled, children: [
2133
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
1563
2134
  "input",
1564
2135
  {
1565
2136
  hidden: true,
@@ -1580,21 +2151,21 @@ function InputFile(props) {
1580
2151
  }
1581
2152
  }
1582
2153
  ),
1583
- !!props.label && /* @__PURE__ */ jsxs6(InputLabel, { children: [
2154
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(InputLabel, { children: [
1584
2155
  props.label,
1585
2156
  props.required ? "*" : ""
1586
2157
  ] }),
1587
- /* @__PURE__ */ jsx11("div", { className: "iz-image-content", onClick: () => inputRef.current.click(), children: ((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) || "selecione uma imagem" }),
1588
- !!props.error && /* @__PURE__ */ jsx11("div", { className: "iz-input-error", children: props.error })
2158
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "iz-image-content", onClick: () => inputRef.current.click(), children: ((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) || "selecione uma imagem" }),
2159
+ !!props.error && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "iz-input-error", children: props.error })
1589
2160
  ] });
1590
2161
  }
1591
2162
 
1592
2163
  // components/types/form/types/input/index.tsx
1593
- import { useState as useState5 } from "react";
2164
+ var import_react7 = require("react");
1594
2165
 
1595
2166
  // components/types/form/types/input/styles.tsx
1596
- import styled14 from "styled-components";
1597
- var Container12 = styled14.div`
2167
+ var import_styled_components18 = __toESM(require("styled-components"));
2168
+ var Container13 = import_styled_components18.default.div`
1598
2169
  width: 100%;
1599
2170
  padding-top: .3rem;
1600
2171
 
@@ -1640,10 +2211,10 @@ var Container12 = styled14.div`
1640
2211
  `;
1641
2212
 
1642
2213
  // components/types/form/types/input/index.tsx
1643
- import _6 from "lodash";
1644
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
2214
+ var import_lodash9 = __toESM(require("lodash"));
2215
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1645
2216
  function InputText(props) {
1646
- const [showPassword, setShowPassword] = useState5(false);
2217
+ const [showPassword, setShowPassword] = (0, import_react7.useState)(false);
1647
2218
  const register = (props.register || ((name) => ({})))(props.name || "");
1648
2219
  const onChange = (event) => {
1649
2220
  const value = event.target.value || "";
@@ -1651,16 +2222,16 @@ function InputText(props) {
1651
2222
  if (register.onChange) register.onChange(event);
1652
2223
  if (props.onChange) props.onChange(value);
1653
2224
  };
1654
- return /* @__PURE__ */ jsxs7(Container12, { className: props.className, error: props.error, password: props.type === "password", children: [
1655
- !!props.label && /* @__PURE__ */ jsxs7(InputLabel, { children: [
2225
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Container13, { className: props.className, error: props.error, password: props.type === "password", children: [
2226
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(InputLabel, { children: [
1656
2227
  props.label,
1657
2228
  props.required ? "*" : ""
1658
2229
  ] }),
1659
- /* @__PURE__ */ jsxs7("div", { className: "iz-input-content", children: [
1660
- /* @__PURE__ */ jsx12(
2230
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "iz-input-content", children: [
2231
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1661
2232
  "input",
1662
2233
  {
1663
- ..._6.omit(props, ["className", "register", "mask"]),
2234
+ ...import_lodash9.default.omit(props, ["className", "register", "mask"]),
1664
2235
  type: props.type === "password" ? showPassword ? "text" : "password" : props.type,
1665
2236
  maxLength: props.maxLength || 255,
1666
2237
  onFocus: () => {
@@ -1670,7 +2241,7 @@ function InputText(props) {
1670
2241
  onChange
1671
2242
  }
1672
2243
  ),
1673
- props.type === "password" && /* @__PURE__ */ jsx12(
2244
+ props.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1674
2245
  "i",
1675
2246
  {
1676
2247
  "aria-hidden": true,
@@ -1679,16 +2250,16 @@ function InputText(props) {
1679
2250
  }
1680
2251
  )
1681
2252
  ] }),
1682
- !!props.error && /* @__PURE__ */ jsx12("div", { className: "iz-input-error", children: props.error })
2253
+ !!props.error && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "iz-input-error", children: props.error })
1683
2254
  ] });
1684
2255
  }
1685
2256
 
1686
2257
  // components/types/form/types/select/index.tsx
1687
- import { useState as useState6 } from "react";
2258
+ var import_react8 = require("react");
1688
2259
 
1689
2260
  // components/types/form/types/select/styles.tsx
1690
- import styled15 from "styled-components";
1691
- var Container13 = styled15.div`
2261
+ var import_styled_components19 = __toESM(require("styled-components"));
2262
+ var Container14 = import_styled_components19.default.div`
1692
2263
  width: 100%;
1693
2264
  padding-top: .3rem;
1694
2265
 
@@ -1740,26 +2311,26 @@ var Container13 = styled15.div`
1740
2311
  `;
1741
2312
 
1742
2313
  // components/types/form/types/select/index.tsx
1743
- import _7 from "lodash";
1744
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
2314
+ var import_lodash10 = __toESM(require("lodash"));
2315
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1745
2316
  function InputSelect(props) {
1746
- const [focus, setFocus] = useState6(false);
2317
+ const [focus, setFocus] = (0, import_react8.useState)(false);
1747
2318
  const register = (props.register || ((name) => ({})))(props.name || "");
1748
2319
  const onChange = (event) => {
1749
2320
  const value = event.target.value || "";
1750
2321
  if (register.onChange) register.onChange(event);
1751
2322
  if (props.onChange) props.onChange(value);
1752
2323
  };
1753
- return /* @__PURE__ */ jsxs8(Container13, { className: props.className, error: props.error, children: [
1754
- !!props.label && /* @__PURE__ */ jsxs8(InputLabel, { children: [
2324
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Container14, { className: props.className, error: props.error, children: [
2325
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(InputLabel, { children: [
1755
2326
  props.label,
1756
2327
  props.required ? "*" : ""
1757
2328
  ] }),
1758
- /* @__PURE__ */ jsxs8("div", { className: "iz-input-content", children: [
1759
- /* @__PURE__ */ jsx13(
2329
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "iz-input-content", children: [
2330
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1760
2331
  "select",
1761
2332
  {
1762
- ..._7.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
2333
+ ...import_lodash10.default.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
1763
2334
  onMouseDown: () => setFocus(!focus),
1764
2335
  onFocus: () => {
1765
2336
  if (props.onFocus) props.onFocus(props.name);
@@ -1770,9 +2341,9 @@ function InputSelect(props) {
1770
2341
  setFocus(false);
1771
2342
  },
1772
2343
  onChange,
1773
- children: _7.map(
2344
+ children: import_lodash10.default.map(
1774
2345
  props.options,
1775
- (data, index) => /* @__PURE__ */ jsx13(
2346
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1776
2347
  "option",
1777
2348
  {
1778
2349
  value: Object.keys(data),
@@ -1783,15 +2354,15 @@ function InputSelect(props) {
1783
2354
  )
1784
2355
  }
1785
2356
  ),
1786
- /* @__PURE__ */ jsx13("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
2357
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
1787
2358
  ] }),
1788
- !!props.error && /* @__PURE__ */ jsx13("div", { className: "iz-input-error", children: props.error })
2359
+ !!props.error && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "iz-input-error", children: props.error })
1789
2360
  ] });
1790
2361
  }
1791
2362
 
1792
2363
  // components/types/form/types/button/styles.tsx
1793
- import styled16 from "styled-components";
1794
- var Container14 = styled16.button`
2364
+ var import_styled_components20 = __toESM(require("styled-components"));
2365
+ var Container15 = import_styled_components20.default.button`
1795
2366
  border-radius: 5px;
1796
2367
  font-size: .8rem;
1797
2368
  font-weight: 500;
@@ -1832,8 +2403,8 @@ var Container14 = styled16.button`
1832
2403
  `;
1833
2404
 
1834
2405
  // components/types/form/types/button/loading/styles.tsx
1835
- import styled17 from "styled-components";
1836
- var Container15 = styled17.div`
2406
+ var import_styled_components21 = __toESM(require("styled-components"));
2407
+ var Container16 = import_styled_components21.default.div`
1837
2408
  display: flex;
1838
2409
  justify-content: space-between;
1839
2410
  align-items: center;
@@ -1921,37 +2492,37 @@ var Container15 = styled17.div`
1921
2492
  `;
1922
2493
 
1923
2494
  // components/types/form/types/button/loading/index.tsx
1924
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
2495
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1925
2496
  function Loading() {
1926
- return /* @__PURE__ */ jsxs9(Container15, { children: [
1927
- /* @__PURE__ */ jsx14("div", {}),
1928
- /* @__PURE__ */ jsx14("div", {}),
1929
- /* @__PURE__ */ jsx14("div", {})
2497
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Container16, { children: [
2498
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {}),
2499
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {}),
2500
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {})
1930
2501
  ] });
1931
2502
  }
1932
2503
 
1933
2504
  // components/types/form/types/button/index.tsx
1934
- import _8 from "lodash";
1935
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2505
+ var import_lodash11 = __toESM(require("lodash"));
2506
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1936
2507
  function Button(props) {
1937
- return /* @__PURE__ */ jsxs10(
1938
- Container14,
2508
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2509
+ Container15,
1939
2510
  {
1940
2511
  loading: String(!!props.loading),
1941
2512
  disabled: props.disabled,
1942
2513
  type: props.type || "button",
1943
- ..._8.omit(props, ["loading", "type"]),
2514
+ ...import_lodash11.default.omit(props, ["loading", "type"]),
1944
2515
  children: [
1945
- !!props.loading && /* @__PURE__ */ jsx15(Loading, {}),
1946
- /* @__PURE__ */ jsx15("span", { children: props.label })
2516
+ !!props.loading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Loading, {}),
2517
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: props.label })
1947
2518
  ]
1948
2519
  }
1949
2520
  );
1950
2521
  }
1951
2522
 
1952
2523
  // components/types/form/types/datetime/styles.tsx
1953
- import styled18 from "styled-components";
1954
- var Container16 = styled18.div`
2524
+ var import_styled_components22 = __toESM(require("styled-components"));
2525
+ var Container17 = import_styled_components22.default.div`
1955
2526
  width: 100%;
1956
2527
  padding-top: .3rem;
1957
2528
 
@@ -1991,8 +2562,8 @@ var Container16 = styled18.div`
1991
2562
  `;
1992
2563
 
1993
2564
  // components/types/form/types/datetime/index.tsx
1994
- import _9 from "lodash";
1995
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
2565
+ var import_lodash12 = __toESM(require("lodash"));
2566
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1996
2567
  function InputDateTime(props) {
1997
2568
  const register = (props.register || ((name) => ({})))(props.name || "");
1998
2569
  const onChange = (event) => {
@@ -2001,15 +2572,15 @@ function InputDateTime(props) {
2001
2572
  if (register.onChange) register.onChange(event);
2002
2573
  if (props.onChange) props.onChange(event);
2003
2574
  };
2004
- return /* @__PURE__ */ jsxs11(Container16, { className: props.className, error: props.error, children: [
2005
- !!props.label && /* @__PURE__ */ jsxs11(InputLabel, { children: [
2575
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Container17, { className: props.className, error: props.error, children: [
2576
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(InputLabel, { children: [
2006
2577
  props.label,
2007
2578
  props.required ? "*" : ""
2008
2579
  ] }),
2009
- /* @__PURE__ */ jsx16("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx16(
2580
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "iz-input-content", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2010
2581
  "input",
2011
2582
  {
2012
- ..._9.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
2583
+ ...import_lodash12.default.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
2013
2584
  type: "datetime-local",
2014
2585
  onFocus: () => {
2015
2586
  if (props.onFocus) props.onFocus(props.name);
@@ -2019,13 +2590,13 @@ function InputDateTime(props) {
2019
2590
  onChange
2020
2591
  }
2021
2592
  ) }),
2022
- !!props.error && /* @__PURE__ */ jsx16("div", { className: "iz-input-error", children: props.error })
2593
+ !!props.error && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "iz-input-error", children: props.error })
2023
2594
  ] });
2024
2595
  }
2025
2596
 
2026
2597
  // components/types/form/types/textarea/styles.tsx
2027
- import styled19 from "styled-components";
2028
- var Container17 = styled19.div`
2598
+ var import_styled_components23 = __toESM(require("styled-components"));
2599
+ var Container18 = import_styled_components23.default.div`
2029
2600
  width: 100%;
2030
2601
  padding-top: .3rem;
2031
2602
 
@@ -2064,8 +2635,8 @@ var Container17 = styled19.div`
2064
2635
  `;
2065
2636
 
2066
2637
  // components/types/form/types/textarea/index.tsx
2067
- import _10 from "lodash";
2068
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
2638
+ var import_lodash13 = __toESM(require("lodash"));
2639
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2069
2640
  function InputTextarea(props) {
2070
2641
  const register = (props.register || ((name) => ({})))(props.name || "");
2071
2642
  const onChange = (event) => {
@@ -2074,15 +2645,15 @@ function InputTextarea(props) {
2074
2645
  if (register.onChange) register.onChange(event);
2075
2646
  if (props.onChange) props.onChange(value);
2076
2647
  };
2077
- return /* @__PURE__ */ jsxs12(Container17, { className: props.className, error: props.error, children: [
2078
- !!props.label && /* @__PURE__ */ jsxs12(InputLabel, { children: [
2648
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Container18, { className: props.className, error: props.error, children: [
2649
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(InputLabel, { children: [
2079
2650
  props.label,
2080
2651
  props.required ? "*" : ""
2081
2652
  ] }),
2082
- /* @__PURE__ */ jsx17("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx17(
2653
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "iz-input-content", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2083
2654
  "textarea",
2084
2655
  {
2085
- ..._10.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
2656
+ ...import_lodash13.default.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
2086
2657
  maxLength: props.maxLength,
2087
2658
  rows: props.rows || 5,
2088
2659
  onFocus: () => {
@@ -2092,22 +2663,22 @@ function InputTextarea(props) {
2092
2663
  onChange
2093
2664
  }
2094
2665
  ) }),
2095
- !!props.error && /* @__PURE__ */ jsx17("div", { className: "iz-input-error", children: props.error })
2666
+ !!props.error && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "iz-input-error", children: props.error })
2096
2667
  ] });
2097
2668
  }
2098
2669
 
2099
2670
  // components/types/form/index.tsx
2100
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
2671
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2101
2672
  function Form(props) {
2102
- const formRef = props.formRef || useRef2({});
2673
+ const formRef = props.formRef || (0, import_react9.useRef)({});
2103
2674
  const setSchema = () => {
2104
2675
  const schema2 = {};
2105
- _11.forEach(props.inputs, (data) => {
2676
+ import_lodash14.default.forEach(props.inputs, (data) => {
2106
2677
  if (!data.validation) return;
2107
2678
  schema2[data.name] = data.validation;
2108
2679
  });
2109
- if (props.validation) return props.validation(z.object(schema2));
2110
- return z.object(schema2);
2680
+ if (props.validation) return props.validation(import_zod.z.object(schema2));
2681
+ return import_zod.z.object(schema2);
2111
2682
  };
2112
2683
  const schema = setSchema();
2113
2684
  const {
@@ -2115,32 +2686,32 @@ function Form(props) {
2115
2686
  handleSubmit,
2116
2687
  reset,
2117
2688
  formState: { errors }
2118
- } = useForm({
2119
- resolver: zodResolver(schema),
2689
+ } = (0, import_react_hook_form.useForm)({
2690
+ resolver: (0, import_zod2.zodResolver)(schema),
2120
2691
  defaultValues: props.defaultValues,
2121
2692
  mode: "all"
2122
2693
  });
2123
- useEffect5(() => {
2694
+ (0, import_react9.useEffect)(() => {
2124
2695
  if (!props.clearWhen) return;
2125
2696
  reset(void 0, { keepErrors: false });
2126
2697
  }, [props.clearWhen]);
2127
- useEffect5(() => {
2698
+ (0, import_react9.useEffect)(() => {
2128
2699
  var _a;
2129
2700
  if (!props.defaultValues || !((_a = Object.keys(props.defaultValues || {})) == null ? void 0 : _a.length)) return;
2130
- _11.forEach(props.defaultValues, (value, key) => {
2131
- const input = _11.find(props.inputs, (data) => data.name === key);
2701
+ import_lodash14.default.forEach(props.defaultValues, (value, key) => {
2702
+ const input = import_lodash14.default.find(props.inputs, (data) => data.name === key);
2132
2703
  props.defaultValues[key] = input.mask ? input.mask(value) : value;
2133
2704
  });
2134
2705
  reset(props.defaultValues, { keepErrors: false });
2135
2706
  }, [props.defaultValues]);
2136
2707
  const component = (data) => {
2137
2708
  var _a;
2138
- const component2 = types_exports[_11.camelCase(data.type)];
2709
+ const component2 = types_exports[import_lodash14.default.camelCase(data.type)];
2139
2710
  const TypeComponent = component2 || InputText;
2140
- return /* @__PURE__ */ jsx18(
2711
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2141
2712
  TypeComponent,
2142
2713
  {
2143
- ..._11.omit(data, ["validation"]),
2714
+ ...import_lodash14.default.omit(data, ["validation"]),
2144
2715
  id: data.name,
2145
2716
  type: component2 ? void 0 : data.type,
2146
2717
  error: (_a = errors[data.name]) == null ? void 0 : _a.message,
@@ -2148,38 +2719,38 @@ function Form(props) {
2148
2719
  }
2149
2720
  );
2150
2721
  };
2151
- return /* @__PURE__ */ jsxs13(Container9, { ref: formRef, onSubmit: handleSubmit(props.onSubmit), children: [
2152
- _11.map(
2722
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Container10, { ref: formRef, onSubmit: handleSubmit(props.onSubmit), children: [
2723
+ import_lodash14.default.map(
2153
2724
  props.inputs,
2154
- (data, index) => /* @__PURE__ */ jsx18(React8.Fragment, { children: component(data) }, index)
2725
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react9.default.Fragment, { children: component(data) }, index)
2155
2726
  ),
2156
- _11.isArray(props.buttons) && /* @__PURE__ */ jsx18("div", { className: "form-buttons", children: _11.map(
2727
+ import_lodash14.default.isArray(props.buttons) && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "form-buttons", children: import_lodash14.default.map(
2157
2728
  props.buttons,
2158
- (data, index) => /* @__PURE__ */ jsx18(Button, { ...data }, index)
2729
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { ...data }, index)
2159
2730
  ) })
2160
2731
  ] });
2161
2732
  }
2162
2733
 
2163
2734
  // components/types/chart/styles.tsx
2164
- import styled20 from "styled-components";
2165
- var Container18 = styled20.div`
2735
+ var import_styled_components24 = __toESM(require("styled-components"));
2736
+ var Container19 = import_styled_components24.default.div`
2166
2737
 
2167
2738
  `;
2168
2739
 
2169
2740
  // components/types/chart/index.tsx
2170
- import dynamic from "next/dynamic";
2171
- import _12 from "lodash";
2172
- import { jsx as jsx19 } from "react/jsx-runtime";
2173
- var ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
2741
+ var import_dynamic = __toESM(require("next/dynamic"));
2742
+ var import_lodash15 = __toESM(require("lodash"));
2743
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2744
+ var ApexChart = (0, import_dynamic.default)(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
2174
2745
  function Chart(props) {
2175
2746
  const { content: themeContent } = useTheme();
2176
2747
  const monitor = props.content || [];
2177
- const series = _12.map(props.yAxis, (value, key) => ({
2748
+ const series = import_lodash15.default.map(props.yAxis, (value, key) => ({
2178
2749
  name: key || "",
2179
- data: _12.map(monitor, (data) => _12.isFunction(value) ? value(data) : 0)
2750
+ data: import_lodash15.default.map(monitor, (data) => import_lodash15.default.isFunction(value) ? value(data) : 0)
2180
2751
  }));
2181
2752
  const options = {
2182
- colors: _12.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
2753
+ colors: import_lodash15.default.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
2183
2754
  dataLabels: { enabled: false },
2184
2755
  stroke: { curve: "smooth", width: 2 },
2185
2756
  fill: { gradient: { opacityFrom: 0.9, opacityTo: 0.8 } },
@@ -2188,14 +2759,14 @@ function Chart(props) {
2188
2759
  yaxis: {
2189
2760
  min: props.min,
2190
2761
  max: props.max,
2191
- labels: { style: { colors: _12.map(monitor, () => themeContent.t6) } }
2762
+ labels: { style: { colors: import_lodash15.default.map(monitor, () => themeContent.t6) } }
2192
2763
  },
2193
2764
  xaxis: {
2194
- categories: _12.map(monitor, (data) => _12.isFunction(props.xAxis) ? props.xAxis(data) : ""),
2195
- labels: { style: { colors: _12.map(monitor, () => themeContent.t6) } }
2765
+ categories: import_lodash15.default.map(monitor, (data) => import_lodash15.default.isFunction(props.xAxis) ? props.xAxis(data) : ""),
2766
+ labels: { style: { colors: import_lodash15.default.map(monitor, () => themeContent.t6) } }
2196
2767
  }
2197
2768
  };
2198
- return /* @__PURE__ */ jsx19(Container18, { children: /* @__PURE__ */ jsx19(
2769
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Container19, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2199
2770
  ApexChart,
2200
2771
  {
2201
2772
  options,
@@ -2208,11 +2779,11 @@ function Chart(props) {
2208
2779
  }
2209
2780
 
2210
2781
  // components/types/avatar/index.tsx
2211
- import { useRef as useRef3, useState as useState7 } from "react";
2782
+ var import_react10 = require("react");
2212
2783
 
2213
2784
  // components/types/avatar/styles.tsx
2214
- import styled21 from "styled-components";
2215
- var Container19 = styled21.div`
2785
+ var import_styled_components25 = __toESM(require("styled-components"));
2786
+ var Container20 = import_styled_components25.default.div`
2216
2787
  width: ${({ size }) => size || "2.3rem"};
2217
2788
  height: ${({ size }) => size || "2.3rem"};
2218
2789
  border-radius: ${({ size }) => size || "2.3rem"};
@@ -2267,32 +2838,32 @@ var Container19 = styled21.div`
2267
2838
  `;
2268
2839
 
2269
2840
  // components/types/avatar/index.tsx
2270
- import _13 from "lodash";
2271
- import { jsx as jsx20 } from "react/jsx-runtime";
2841
+ var import_lodash16 = __toESM(require("lodash"));
2842
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2272
2843
  function Avatar(props) {
2273
- const containerRef = useRef3({});
2274
- const [color, setColor] = useState7("");
2844
+ const containerRef = (0, import_react10.useRef)({});
2845
+ const [color, setColor] = (0, import_react10.useState)("");
2275
2846
  const name = () => {
2276
- const [first, secound] = _13.split(props.name, " ") || [];
2847
+ const [first, secound] = import_lodash16.default.split(props.name, " ") || [];
2277
2848
  if (first && secound) return `${first} ${secound}`;
2278
2849
  if (first) return first;
2279
2850
  return "IZ";
2280
2851
  };
2281
- return /* @__PURE__ */ jsx20(
2282
- Container19,
2852
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2853
+ Container20,
2283
2854
  {
2284
2855
  ref: containerRef,
2285
2856
  color,
2286
2857
  width: containerRef.current.offsetWidth,
2287
2858
  ...props,
2288
- children: /* @__PURE__ */ jsx20("span", { children: _13.upperCase(name()) })
2859
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: import_lodash16.default.upperCase(name()) })
2289
2860
  }
2290
2861
  );
2291
2862
  }
2292
2863
 
2293
2864
  // components/types/lottie/styles.tsx
2294
- import styled22 from "styled-components";
2295
- var Container20 = styled22.div`
2865
+ var import_styled_components26 = __toESM(require("styled-components"));
2866
+ var Container21 = import_styled_components26.default.div`
2296
2867
  display: flex;
2297
2868
  align-items: center;
2298
2869
  justify-content: center;
@@ -2314,7 +2885,7 @@ var Container20 = styled22.div`
2314
2885
  `;
2315
2886
 
2316
2887
  // components/types/lottie/index.tsx
2317
- import LottieReact from "react-lottie";
2888
+ var import_react_lottie = __toESM(require("react-lottie"));
2318
2889
 
2319
2890
  // components/types/lottie/animations/loader.json
2320
2891
  var loader_default = { v: "4.8.0", meta: { g: "LottieFiles AE 3.4.5", a: "", k: "", d: "", tc: "" }, fr: 60, ip: 0, op: 152, w: 1024, h: 1024, nm: "loader1", ddd: 0, assets: [], layers: [{ ddd: 0, ind: 1, ty: 4, nm: "Shape Layer 2", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10, x: "var $bm_rt;\n$bm_rt = thisComp.layer('Null 1').transform.rotation;" }, p: { a: 0, k: [512, 512, 0], ix: 2, x: "var $bm_rt;\n$bm_rt = thisComp.layer('Null 1').transform.position;" }, a: { a: 0, k: [83.27, 6, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 1, k: [{ i: { x: 0.398, y: 1 }, o: { x: 0.573, y: 0 }, t: 14, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-85.127, 157.906], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [80.223, -148.809], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [50, 38], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-104.847, -79.448], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.836, y: 0 }, t: 41, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-119.289, 133.982], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [122.787, -137.911], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [-24.884, 23.246], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-196.288, -48.478], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 54, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [85.13, -251.636], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-122.897, 111.938], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-39.693, 119.128], [-66.383, 67.406], [-100.048, 0], [-67.415, -66.385], [309.312, -266.065], [67.028, -84.864]], v: [[0, -366], [275.144, -227.127], [159.077, -38.579], [215.016, 276.104], [0, 366], [-256.787, 260.799], [-150.256, -23.325], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 60, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [82.924, -246.192], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-55.859, 176.202], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-40.989, 124.23], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [24.59, -160.109], [67.028, -84.864]], v: [[0, -366], [276.613, -226.103], [-75.017, -73.301], [217.735, 274.957], [0, 366], [-256.787, 260.799], [-299.117, -9.604], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 65, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [81.086, -241.656], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [94.229, 285.418], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-42.068, 128.482], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-111.15, -238.582], [67.028, -84.864]], v: [[0, -366], [277.836, -225.251], [294.19, 46.954], [220.001, 274.001], [0, 366], [-256.787, 260.799], [123.521, -40.948], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 71, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [78.88, -236.212], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [82.272, 276.917], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-112.252, 217.097], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-98.391, -232.597], [67.028, -84.864]], v: [[0, -366], [279.305, -224.228], [2.74, -72.763], [222.719, 272.855], [0, 366], [-256.787, 260.799], [-234.073, 12.428], [-287.381, -226.67]], c: true }] }, { i: { x: 0.439, y: 1 }, o: { x: 0.333, y: 0 }, t: 81, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [73.366, -222.603], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [52.379, 255.665], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-103.19, 214.939], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-66.496, -217.635], [67.028, -84.864]], v: [[0, -366], [282.976, -221.67], [230.193, 16.947], [229.517, 269.988], [0, 366], [-256.787, 260.799], [-76.962, -15.009], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 94, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [70.093, -170.914], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-157.227, 316.209], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-52.439, 127.868], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [75.268, -151.376], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [250.126, 62.099], [260.784, 256.803], [0, 366], [-256.787, 260.799], [14.671, -55.458], [-287.381, -226.67]], c: true }] }, { i: { x: 0.368, y: 1 }, o: { x: 0.333, y: 0 }, t: 114, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160.001], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-114.582, 138.029], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.009], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [230.987, -278.253], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [338.14, 64.524], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-29.052, 9.798], [-287.381, -226.67]], c: true }] }, { i: { x: 0.439, y: 1 }, o: { x: 0.671, y: 0 }, t: 130, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-103.088, 145.785], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.01], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [172.152, -227.738], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [26.401, -124.412], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-231.181, 72.709], [-287.381, -226.67]], c: true }] }, { t: 155, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-85.127, 157.906], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [80.223, -148.809], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [50, 38], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-104.847, -79.448], [-287.381, -226.67]], c: true }] }], ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "st", c: { a: 0, k: [0.8118, 0.8039, 0.8039, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 0, ix: 5 }, lc: 1, lj: 1, ml: 4, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "fl", c: { a: 0, k: [0.7451, 0.7451, 0.7451, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 0, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: false }, { ty: "tr", p: { a: 0, k: [78, 6], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }], ip: 0, op: 152, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 4, nm: "Shape Layer 4", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10, x: "var $bm_rt;\n$bm_rt = thisComp.layer('Null 1').transform.rotation;" }, p: { a: 0, k: [512, 512, 0], ix: 2, x: "var $bm_rt;\n$bm_rt = thisComp.layer('Null 1').transform.position;" }, a: { a: 0, k: [83.27, 6, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ ind: 0, ty: "sh", ix: 1, ks: { a: 1, k: [{ i: { x: 0.833, y: 1 }, o: { x: 0.167, y: 0.167 }, t: 0, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-93.22, 152.445], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [121.644, -184.373], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [39.367, -35.179], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-161.77, -10.89], [-287.381, -226.67]], c: true }] }, { i: { x: 0.398, y: 1 }, o: { x: 0.573, y: 0 }, t: 21, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-85.127, 157.906], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [80.223, -148.809], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [50, 38], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-104.847, -79.448], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.836, y: 0 }, t: 48, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-119.289, 133.982], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [122.787, -137.911], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [-24.884, 23.246], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-196.288, -48.478], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 61, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [85.13, -251.636], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-122.897, 111.938], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-39.693, 119.128], [-66.383, 67.406], [-100.048, 0], [-67.415, -66.385], [309.312, -266.065], [67.028, -84.864]], v: [[0, -366], [275.144, -227.127], [159.077, -38.579], [215.016, 276.104], [0, 366], [-256.787, 260.799], [-150.256, -23.325], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 67, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [82.924, -246.192], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-55.859, 176.202], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-40.989, 124.23], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [24.59, -160.109], [67.028, -84.864]], v: [[0, -366], [276.613, -226.103], [-75.017, -73.301], [217.735, 274.957], [0, 366], [-256.787, 260.799], [-299.117, -9.604], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 72, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [81.086, -241.656], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [94.229, 285.418], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-42.068, 128.482], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-111.15, -238.582], [67.028, -84.864]], v: [[0, -366], [277.836, -225.251], [294.19, 46.954], [220.001, 274.001], [0, 366], [-256.787, 260.799], [123.521, -40.948], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 78, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [78.88, -236.212], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [82.272, 276.917], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-112.252, 217.097], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-98.391, -232.597], [67.028, -84.864]], v: [[0, -366], [279.305, -224.228], [2.74, -72.763], [222.719, 272.855], [0, 366], [-256.787, 260.799], [-234.073, 12.428], [-287.381, -226.67]], c: true }] }, { i: { x: 0.439, y: 1 }, o: { x: 0.333, y: 0 }, t: 88, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [73.366, -222.603], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [52.379, 255.665], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-103.19, 214.939], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [-66.496, -217.635], [67.028, -84.864]], v: [[0, -366], [282.976, -221.67], [230.193, 16.947], [229.517, 269.988], [0, 366], [-256.787, 260.799], [-76.962, -15.009], [-287.381, -226.67]], c: true }] }, { i: { x: 0.667, y: 1 }, o: { x: 0.333, y: 0 }, t: 101, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [70.093, -170.914], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-157.227, 316.209], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-52.439, 127.868], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [75.268, -151.376], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [250.126, 62.099], [260.784, 256.803], [0, 366], [-256.787, 260.799], [14.671, -55.458], [-287.381, -226.67]], c: true }] }, { i: { x: 0.368, y: 1 }, o: { x: 0.333, y: 0 }, t: 121, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160.001], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-114.582, 138.029], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.009], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [230.987, -278.253], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [338.14, 64.524], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-29.052, 9.798], [-287.381, -226.67]], c: true }] }, { i: { x: 0.833, y: 0.833 }, o: { x: 0.671, y: 0 }, t: 137, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-103.088, 145.785], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.01], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [172.152, -227.738], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [26.401, -124.412], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-231.181, 72.709], [-287.381, -226.67]], c: true }] }, { i: { x: 0.439, y: 1 }, o: { x: 0.167, y: 0.167 }, t: 151, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-93.22, 152.445], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [121.644, -184.373], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [39.367, -35.179], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-161.77, -10.89], [-287.381, -226.67]], c: true }] }, { t: 162, s: [{ i: [[-116.537, 0], [-66.195, -94.389], [48, -160], [65.067, -66.069], [102.081, 0], [66.068, 65.058], [-85.127, 157.906], [-49.234, 62.335]], o: [[124.041, 0], [41.676, 59.427], [-61.503, 205.011], [-66.384, 67.406], [-100.048, 0], [-67.415, -66.385], [80.223, -148.809], [67.028, -84.864]], v: [[0, -366], [299.865, -209.905], [50, 38], [260.784, 256.803], [0, 366], [-256.787, 260.799], [-104.847, -79.448], [-287.381, -226.67]], c: true }] }], ix: 2 }, nm: "Path 1", mn: "ADBE Vector Shape - Group", hd: false }, { ty: "st", c: { a: 0, k: [0.8118, 0.8039, 0.8039, 1], ix: 3 }, o: { a: 0, k: 100, ix: 4 }, w: { a: 0, k: 0, ix: 5 }, lc: 1, lj: 1, ml: 4, bm: 0, nm: "Stroke 1", mn: "ADBE Vector Graphic - Stroke", hd: false }, { ty: "fl", c: { a: 0, k: [0.3451, 0.4118, 0.8549, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 0, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: false }, { ty: "tr", p: { a: 0, k: [78, 6], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: false }], ip: -19, op: 167, st: 7, bm: 0 }, { ddd: 0, ind: 3, ty: 3, nm: "Null 1", sr: 1, ks: { o: { a: 0, k: 0, ix: 11 }, r: { a: 1, k: [{ i: { x: [0.39], y: [1] }, o: { x: [0.695], y: [0] }, t: 0, s: [0] }, { i: { x: [0.259], y: [1] }, o: { x: [0.557], y: [0] }, t: 38, s: [-32] }, { i: { x: [0.496], y: [1] }, o: { x: [0.769], y: [0] }, t: 90, s: [780] }, { i: { x: [0.417], y: [1] }, o: { x: [0.6], y: [0] }, t: 125, s: [702] }, { t: 152, s: [720] }], ix: 10 }, p: { a: 0, k: [512, 512, 0], ix: 2 }, a: { a: 0, k: [0, 0, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, ip: 0, op: 152, st: 0, bm: 0 }], markers: [] };
@@ -2323,8 +2894,8 @@ var loader_default = { v: "4.8.0", meta: { g: "LottieFiles AE 3.4.5", a: "", k:
2323
2894
  var animations_default = { loader: loader_default };
2324
2895
 
2325
2896
  // components/types/lottie/index.tsx
2326
- import { jsx as jsx21 } from "react/jsx-runtime";
2327
- var LottieComponent = LottieReact;
2897
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2898
+ var LottieComponent = import_react_lottie.default;
2328
2899
  function Lottie(props) {
2329
2900
  const getAnimation = () => {
2330
2901
  let animation;
@@ -2344,7 +2915,7 @@ function Lottie(props) {
2344
2915
  path: props.src,
2345
2916
  animationData: getAnimation()
2346
2917
  };
2347
- return /* @__PURE__ */ jsx21(Container20, { ...props, children: /* @__PURE__ */ jsx21(
2918
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Container21, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2348
2919
  LottieComponent,
2349
2920
  {
2350
2921
  width: props.size || 180,
@@ -2355,8 +2926,8 @@ function Lottie(props) {
2355
2926
  }
2356
2927
 
2357
2928
  // components/types/credit-card/styles.tsx
2358
- import styled23 from "styled-components";
2359
- var Container21 = styled23.div`
2929
+ var import_styled_components27 = __toESM(require("styled-components"));
2930
+ var Container22 = import_styled_components27.default.div`
2360
2931
  border-radius: 8px 8px 0 0;
2361
2932
  transition: .2s ease .2s background, .2s ease .2s padding;
2362
2933
  position: relative;
@@ -2390,11 +2961,11 @@ var Container21 = styled23.div`
2390
2961
  `;
2391
2962
 
2392
2963
  // components/types/credit-card/card/index.tsx
2393
- import { useEffect as useEffect7, useRef as useRef4 } from "react";
2964
+ var import_react11 = require("react");
2394
2965
 
2395
2966
  // components/types/credit-card/card/styles.tsx
2396
- import styled24 from "styled-components";
2397
- var Container22 = styled24.div`
2967
+ var import_styled_components28 = __toESM(require("styled-components"));
2968
+ var Container23 = import_styled_components28.default.div`
2398
2969
  height: 11rem;
2399
2970
  width: 20rem;
2400
2971
  border-radius: 8px;
@@ -2549,7 +3120,7 @@ var assets_default2 = assets;
2549
3120
 
2550
3121
  // components/types/credit-card/tools/index.tsx
2551
3122
  var import_luhn = __toESM(require_luhn());
2552
- import _14 from "lodash";
3123
+ var import_lodash17 = __toESM(require("lodash"));
2553
3124
  var validateLuhn = import_luhn.default.validate;
2554
3125
  var getCardContent = (cardNumber) => {
2555
3126
  const content = { flag: "", logo: "" };
@@ -2559,19 +3130,19 @@ var getCardContent = (cardNumber) => {
2559
3130
  const cardContent = potentialCardContents.shift();
2560
3131
  const flag = cardContent == null ? void 0 : cardContent.type;
2561
3132
  content.flag = flag || "";
2562
- content.logo = assets_default2[_14.upperFirst(_14.camelCase(flag))] || "";
3133
+ content.logo = assets_default2[import_lodash17.default.upperFirst(import_lodash17.default.camelCase(flag))] || "";
2563
3134
  return content;
2564
3135
  }
2565
3136
  return content;
2566
3137
  };
2567
3138
 
2568
3139
  // components/types/credit-card/card/index.tsx
2569
- import _15 from "lodash";
2570
- import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
3140
+ var import_lodash18 = __toESM(require("lodash"));
3141
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2571
3142
  function CreditCardComponent(props) {
2572
3143
  var _a;
2573
- const flagRef = useRef4({});
2574
- useEffect7(() => {
3144
+ const flagRef = (0, import_react11.useRef)({});
3145
+ (0, import_react11.useEffect)(() => {
2575
3146
  const content = getCardContent(props.number);
2576
3147
  if (!flagRef.current) return;
2577
3148
  if (!content.logo) {
@@ -2580,500 +3151,195 @@ function CreditCardComponent(props) {
2580
3151
  }
2581
3152
  flagRef.current.style.backgroundImage = `url(${content.logo})`;
2582
3153
  }, [flagRef, props.number]);
2583
- return /* @__PURE__ */ jsxs14(Container22, { children: [
2584
- /* @__PURE__ */ jsxs14("div", { className: "iz-credit-card-left", children: [
2585
- /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ jsx22("div", { id: "iz-credit-card-chip", style: { backgroundImage: `url(${assets_default2.Chip})` } }) }),
2586
- /* @__PURE__ */ jsxs14("div", { className: "iz-credit-card-bottom", children: [
2587
- /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-number", children: /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-elipse" }) }),
2588
- /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-name", children: /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-elipse", children: _15.deburr((_a = props.name) == null ? void 0 : _a.replace(/[^A-Za-zÀ-ÿ\s]/g, "").toUpperCase()) || "Nome do Titular" }) })
3154
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Container23, { children: [
3155
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "iz-credit-card-left", children: [
3156
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { id: "iz-credit-card-chip", style: { backgroundImage: `url(${assets_default2.Chip})` } }) }),
3157
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "iz-credit-card-bottom", children: [
3158
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-number", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-elipse" }) }),
3159
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-name", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-elipse", children: import_lodash18.default.deburr((_a = props.name) == null ? void 0 : _a.replace(/[^A-Za-zÀ-ÿ\s]/g, "").toUpperCase()) || "Nome do Titular" }) })
2589
3160
  ] })
2590
3161
  ] }),
2591
- /* @__PURE__ */ jsxs14("div", { className: "iz-credit-card-right", children: [
2592
- /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ jsx22("div", { id: "iz-credit-card-flag", ref: flagRef }) }),
2593
- /* @__PURE__ */ jsx22("div", { className: "iz-credit-card-bottom", children: /* @__PURE__ */ jsx22("span", { children: "validade" }) })
3162
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "iz-credit-card-right", children: [
3163
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { id: "iz-credit-card-flag", ref: flagRef }) }),
3164
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "iz-credit-card-bottom", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "validade" }) })
2594
3165
  ] })
2595
3166
  ] });
2596
3167
  }
2597
3168
 
2598
3169
  // components/types/credit-card/functions/styles.tsx
2599
- import styled25 from "styled-components";
2600
- var Container23 = styled25.div`
3170
+ var import_styled_components29 = __toESM(require("styled-components"));
3171
+ var Container24 = import_styled_components29.default.div`
2601
3172
  display: flex;
2602
3173
  flex-direction: column;
2603
3174
  gap: .5rem;
2604
3175
  margin-left: -2.5rem;
2605
3176
  transition: ease .3s;
2606
3177
  width: 2rem;
2607
-
2608
- .iz-credit-card-function {
2609
- width: 2rem;
2610
- height: 2rem;
2611
- display: flex;
2612
- align-items: center;
2613
- justify-content: center;
2614
- border-radius: 5px;
2615
- background: ${({ theme }) => theme.t05};
2616
- color: ${({ theme }) => theme.t6};
2617
- font-size: .85rem;
2618
- transform: translateX(-2rem);
2619
- opacity: 0;
2620
- cursor: pointer;
2621
-
2622
- &:hover {
2623
- color: ${({ theme }) => theme.t8};
2624
- }
2625
- }
2626
-
2627
- .iz-credit-card-function:nth-child(1) {
2628
- transition: 5s ease transform, ease .2s opacity, ease .3s color;
2629
- }
2630
-
2631
- .iz-credit-card-function:nth-child(2) {
2632
- transition: .3s ease .1s transform, ease .2s opacity, ease .3s color;
2633
- }
2634
- `;
2635
-
2636
- // components/types/credit-card/functions/index.tsx
2637
- import _16 from "lodash";
2638
- import { jsx as jsx23 } from "react/jsx-runtime";
2639
- function CreditCardFunctions(props) {
2640
- return _16.some(props.functions, (data) => !data.hide) && /* @__PURE__ */ jsx23(Container23, { className: "iz-credit-card-function-container", children: _16.map(
2641
- props.functions,
2642
- (data, index) => !data.hide && /* @__PURE__ */ jsx23(
2643
- "div",
2644
- {
2645
- className: "iz-credit-card-function",
2646
- onClick: data.function,
2647
- children: /* @__PURE__ */ jsx23("i", { "aria-hidden": true, className: data.icon })
2648
- },
2649
- index
2650
- )
2651
- ) });
2652
- }
2653
-
2654
- // components/types/credit-card/index.tsx
2655
- import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
2656
- function CreditCard(props) {
2657
- const functions = [
2658
- {
2659
- icon: "fa-regular fa-pen-to-square",
2660
- label: "Editar",
2661
- function: props.onEdit,
2662
- hide: !props.onEdit
2663
- },
2664
- {
2665
- icon: "fa-solid fa-gear",
2666
- label: "Configura\xE7\xF5es",
2667
- function: props.onConfig,
2668
- hide: !props.onConfig
2669
- },
2670
- {
2671
- icon: "fa-solid fa-trash-can",
2672
- label: "Remover",
2673
- function: props.onRemove,
2674
- hide: !props.onRemove
2675
- },
2676
- ...props.functions || []
2677
- ];
2678
- return /* @__PURE__ */ jsxs15(Container21, { children: [
2679
- /* @__PURE__ */ jsx24(CreditCardComponent, { ...props }),
2680
- /* @__PURE__ */ jsx24(CreditCardFunctions, { ...props, functions })
2681
- ] });
2682
- }
2683
-
2684
- // components/types/block/styles.tsx
2685
- import styled26 from "styled-components";
2686
- var Container24 = styled26.div`
2687
- display: flex;
2688
- flex-direction: column;
2689
- gap: 1rem;
2690
- padding: 1.3rem 1.5rem;
2691
- border-radius: 5px;
2692
- background: ${({ theme }) => theme.t05};
2693
- flex: 1 1 20rem;
2694
-
2695
- header {
2696
- display: flex;
2697
- align-items: center;
2698
- gap: .5rem;
2699
- font-size: .9rem;
2700
- font-weight: 600;
2701
- color: ${({ theme }) => theme.t6};
2702
- }
2703
- `;
2704
- var Content = styled26.div`
2705
- font-size: 1.5rem;
2706
- font-weight: 500;
2707
- color: ${({ theme }) => theme.t7};
2708
- `;
2709
-
2710
- // components/types/block/index.tsx
2711
- import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
2712
- function Block(props) {
2713
- return /* @__PURE__ */ jsxs16(Container24, { children: [
2714
- (!!props.icon || !!props.label) && /* @__PURE__ */ jsxs16("header", { children: [
2715
- !!props.icon && /* @__PURE__ */ jsx25("i", { "aria-hidden": true, className: props.icon }),
2716
- !!props.label && /* @__PURE__ */ jsx25("span", { children: props.label })
2717
- ] }),
2718
- /* @__PURE__ */ jsxs16(Content, { children: [
2719
- !!props.component && /* @__PURE__ */ jsx25(Component, { content: props.component }),
2720
- props.children
2721
- ] })
2722
- ] });
2723
- }
2724
-
2725
- // components/index.tsx
2726
- import { jsx as jsx26 } from "react/jsx-runtime";
2727
- function Component(props) {
2728
- const renderComponent = (config) => {
2729
- const ComponentElement = types_exports2[config.type];
2730
- return /* @__PURE__ */ jsx26(ComponentElement, { ...config.props });
2731
- };
2732
- const renderRow = (components) => {
2733
- return /* @__PURE__ */ jsx26(RowContainer, { children: _17.map(
2734
- components,
2735
- (data, index) => /* @__PURE__ */ jsx26(Fragment, { children: renderComponent(data) }, index)
2736
- ) });
2737
- };
2738
- return /* @__PURE__ */ jsx26(Container2, { className: props.className, children: _17.map(
2739
- props.content,
2740
- (data, index) => /* @__PURE__ */ jsx26(Fragment, { children: _17.isArray(data) ? renderRow(data) : renderComponent(data) }, index)
2741
- ) });
2742
- }
2743
-
2744
- // components/types/table/paginate/styles.tsx
2745
- import styled27 from "styled-components";
2746
- var Container25 = styled27.div`
2747
- width: 100%;
2748
- display: flex;
2749
- align-items: center;
2750
- justify-content: center;
2751
- margin-top: 1.5rem;
2752
-
2753
- .paginate {
2754
- font-size: .8rem;
2755
- font-weight: 500;
2756
- height: 1.5rem;
2757
- padding: 0 .6rem;
2758
- border-radius: 1rem;
2759
- transition: ease .3s;
2760
- color: ${({ theme }) => theme.t6};
2761
- display: flex;
2762
- align-items: center;
2763
- justify-content: center;
2764
- cursor: pointer;
2765
-
2766
- &[data-current="true"] {
2767
- background: ${({ theme }) => theme.tertiary};
2768
- color: ${({ theme }) => theme.secondary};
2769
-
2770
- &:hover {
2771
- background: ${({ theme }) => theme.tertiary};
2772
- }
2773
- }
2774
-
2775
- &:hover {
2776
- background: ${({ theme }) => theme.t05};
2777
- }
2778
- }
2779
- `;
2780
-
2781
- // components/types/table/paginate/index.tsx
2782
- import _18 from "lodash";
2783
- import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
2784
- function Paginate(props) {
2785
- const pages = () => {
2786
- const offset = Number(props.page.value) - 4;
2787
- let page = offset > 0 ? offset + 1 : 1;
2788
- let pages2 = [];
2789
- while (Number(props.total) >= page) {
2790
- pages2.push(page);
2791
- page++;
2792
- }
2793
- pages2 = _18.slice(pages2, 0, 5);
2794
- if (Number(props.page.value) + 1 > 5) pages2 = _18.concat(["1.."], pages2);
2795
- if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return _18.concat(pages2, `..${props.total}`);
2796
- return pages2;
2797
- };
2798
- return Number(props.total) > 1 && /* @__PURE__ */ jsxs17(Container25, { children: [
2799
- /* @__PURE__ */ jsx27(
2800
- "div",
2801
- {
2802
- className: "paginate back",
2803
- onClick: () => props.page.set ? props.page.set(
2804
- props.page.value ? props.page.value - 1 : props.page.value
2805
- ) : null,
2806
- children: /* @__PURE__ */ jsx27("i", { "aria-hidden": true, className: "fa-solid fa-chevron-left" })
2807
- }
2808
- ),
2809
- _18.map(
2810
- pages(),
2811
- (page, index) => /* @__PURE__ */ jsx27(
2812
- "div",
2813
- {
2814
- className: "paginate page",
2815
- "data-current": String(props.page.value === Number(_18.replace(page, /\D/g, "")) - 1),
2816
- onClick: () => props.page.set ? props.page.set(Number(_18.replace(page, /\D/g, "")) - 1) : null,
2817
- children: page
2818
- },
2819
- index
2820
- )
2821
- ),
2822
- /* @__PURE__ */ jsx27(
2823
- "div",
2824
- {
2825
- className: "paginate next",
2826
- onClick: () => props.page.set ? props.page.set(
2827
- props.page.value !== props.total - 1 ? props.page.value + 1 : props.page.value
2828
- ) : null,
2829
- children: /* @__PURE__ */ jsx27("i", { "aria-hidden": true, className: "fa-solid fa-chevron-right" })
2830
- }
2831
- )
2832
- ] });
2833
- }
2834
-
2835
- // components/types/table/index.tsx
2836
- import _20 from "lodash";
2837
-
2838
- // components/types/table/modal/styles.tsx
2839
- import styled28 from "styled-components";
2840
- var Content2 = styled28.div`
2841
- padding: 1.5rem;
2842
- display: flex;
2843
- flex-direction: column;
2844
- gap: 1.5rem;
2845
-
2846
- .iz-table-modal-title {
2847
- font-size: 1.2rem;
2848
- font-weight: 500;
2849
- width: 100%;
3178
+
3179
+ .iz-credit-card-function {
3180
+ width: 2rem;
3181
+ height: 2rem;
2850
3182
  display: flex;
2851
3183
  align-items: center;
2852
3184
  justify-content: center;
3185
+ border-radius: 5px;
3186
+ background: ${({ theme }) => theme.t05};
2853
3187
  color: ${({ theme }) => theme.t6};
2854
- }
2855
-
2856
- .iz-table-modal-content {
2857
- ul {
2858
- li {
2859
- border-bottom: solid 1px ${({ theme }) => theme.t05};
2860
- padding: .8rem 0;
2861
- display: flex;
2862
- align-items: center;
2863
- justify-content: space-between;
2864
- gap: 1rem;
2865
- font-size: .8rem;
2866
- color: ${({ theme }) => theme.t6};
3188
+ font-size: .85rem;
3189
+ transform: translateX(-2rem);
3190
+ opacity: 0;
3191
+ cursor: pointer;
2867
3192
 
2868
- &:last-child {
2869
- border-bottom: none;
2870
- }
2871
-
2872
- .iz-table-modal-column {
2873
- background: ${({ theme }) => theme.t05};
2874
- padding: .5rem .8rem;
2875
- font-weight: 600;
2876
- border-radius: 5px;
2877
- }
2878
-
2879
- .iz-table-modal-row {
2880
- text-align: right;
2881
- }
2882
- }
3193
+ &:hover {
3194
+ color: ${({ theme }) => theme.t8};
2883
3195
  }
2884
3196
  }
2885
-
2886
- .iz-table-modal-actions {
2887
- margin-top: 1rem;
2888
- }
2889
- `;
2890
-
2891
- // components/types/table/modal/index.tsx
2892
- import _19 from "lodash";
2893
3197
 
2894
- // components/types/table/modal/actions.tsx
2895
- var actionConfig = {
2896
- "fa-solid fa-pen-to-square": { label: "editar" },
2897
- "fa-solid fa-trash-can": { label: "remover", color: CommonTheme.negative }
2898
- };
2899
- var actions_default = actionConfig;
3198
+ .iz-credit-card-function:nth-child(1) {
3199
+ transition: 5s ease transform, ease .2s opacity, ease .3s color;
3200
+ }
2900
3201
 
2901
- // components/types/table/modal/index.tsx
2902
- import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
2903
- function Modal2(props) {
2904
- const modal = useModal();
2905
- const content = _19.omit(props.content, ["actions"]);
2906
- const actions = Object.values(_19.pick(props.content, ["actions"]))[0];
2907
- const onClose = () => {
2908
- modal.setProps("table", { toggle: false });
2909
- };
2910
- return /* @__PURE__ */ jsx28(
2911
- Component,
2912
- {
2913
- content: [{
2914
- type: "Modal",
2915
- props: {
2916
- toggle: props.toggle,
2917
- onClose,
2918
- children: /* @__PURE__ */ jsx28(Container, { children: /* @__PURE__ */ jsxs18(Content2, { children: [
2919
- /* @__PURE__ */ jsx28("div", { className: "iz-table-modal-title", children: "Conte\xFAdo" }),
2920
- /* @__PURE__ */ jsx28("div", { className: "iz-table-modal-content", children: /* @__PURE__ */ jsx28("ul", { children: _19.map(
2921
- content,
2922
- (value, key) => /* @__PURE__ */ jsxs18("li", { children: [
2923
- !!key && /* @__PURE__ */ jsx28("div", { className: "iz-table-modal-column", children: key }),
2924
- /* @__PURE__ */ jsx28("div", { className: "iz-table-modal-row", children: value })
2925
- ] }, key)
2926
- ) }) }),
2927
- /* @__PURE__ */ jsx28("div", { className: "iz-table-modal-actions", children: /* @__PURE__ */ jsx28(
2928
- Component,
2929
- {
2930
- content: _19.concat(_19.map(actions, (data) => ({
2931
- type: "Button",
2932
- props: {
2933
- ...actions_default[data.icon] || {},
2934
- onClick: data.function
2935
- }
2936
- })), {
2937
- type: "Button",
2938
- props: {
2939
- label: "fechar",
2940
- outline: true,
2941
- onClick: onClose
2942
- }
2943
- })
2944
- }
2945
- ) })
2946
- ] }) })
2947
- }
2948
- }]
3202
+ .iz-credit-card-function:nth-child(2) {
3203
+ transition: .3s ease .1s transform, ease .2s opacity, ease .3s color;
2949
3204
  }
2950
- );
2951
- }
3205
+ `;
2952
3206
 
2953
- // components/types/table/index.tsx
2954
- import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
2955
- function Table(props) {
2956
- var _a, _b, _c, _d, _e, _f;
2957
- const theme = useTheme();
2958
- const modal = useModal();
2959
- const loading = ((_a = props.loading) == null ? void 0 : _a.is) || props.loading;
2960
- useEffect8(() => {
2961
- modal.add({ component: Modal2, name: "table" });
2962
- return () => modal.remove("table");
2963
- }, []);
2964
- const onShowLine = (key) => {
2965
- if (window.innerWidth > Number(_20.replace(theme.content.mobileMaxWidth, "px", ""))) return;
2966
- let content = {};
2967
- _20.forEach(props.options, (data, index) => {
2968
- var _a2, _b2;
2969
- const column = ((_a2 = data.column) == null ? void 0 : _a2.name) || data.column;
2970
- const columnName = !_20.isString(column) ? props.options.length - 1 === index ? "actions" : "" : column;
2971
- content[columnName] = columnName === "actions" ? (_b2 = data.row) == null ? void 0 : _b2.actions : renderRowContainer(props.content[key], data);
2972
- });
2973
- modal.setProps("table", { toggle: true, content });
2974
- };
2975
- const renderRowContainer = (data, option) => {
2976
- var _a2, _b2, _c2, _d2;
2977
- return /* @__PURE__ */ jsx29(
3207
+ // components/types/credit-card/functions/index.tsx
3208
+ var import_lodash19 = __toESM(require("lodash"));
3209
+ var import_jsx_runtime26 = require("react/jsx-runtime");
3210
+ function CreditCardFunctions(props) {
3211
+ return import_lodash19.default.some(props.functions, (data) => !data.hide) && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Container24, { className: "iz-credit-card-function-container", children: import_lodash19.default.map(
3212
+ props.functions,
3213
+ (data, index) => !data.hide && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2978
3214
  "div",
2979
3215
  {
2980
- className: `
2981
- iz-table-content
2982
- ${((_a2 = option.row) == null ? void 0 : _a2.actions) ? "iz-table-action" : ""}
2983
- ${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "iz-table-identifier" : ""}
2984
- `,
2985
- style: _20.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
2986
- children: renderRowContent(data, option)
2987
- }
2988
- );
2989
- };
2990
- const renderRowContent = (data, option) => {
2991
- var _a2, _b2, _c2, _d2, _e2;
2992
- if (!!((_a2 = option.row) == null ? void 0 : _a2.actions)) {
2993
- return /* @__PURE__ */ jsx29("div", { className: "iz-table-actions", children: _20.map(
2994
- (_b2 = option.row) == null ? void 0 : _b2.actions,
2995
- (action, index) => renderButton(action, data, index)
2996
- ) });
2997
- }
2998
- if ((_c2 = option.row) == null ? void 0 : _c2.icon) {
2999
- return /* @__PURE__ */ jsx29("div", { className: "iz-table-icon", children: /* @__PURE__ */ jsx29(
3000
- "i",
3001
- {
3002
- "aria-hidden": true,
3003
- className: _20.isFunction((_d2 = option.row) == null ? void 0 : _d2.icon) ? option.row.icon(data) || "fa-solid fa-circle-user" : ((_e2 = option.row) == null ? void 0 : _e2.icon) || "fa-solid fa-circle-user"
3004
- }
3005
- ) });
3006
- }
3007
- return renderRowText(data, option);
3008
- };
3009
- const renderButton = (action, data, index) => {
3010
- return /* @__PURE__ */ jsx29(
3011
- "button",
3012
- {
3013
- className: `iz-table-button ${_20.includes(action.icon, "trash") ? "negative" : ""}`,
3014
- onClick: () => action.function ? action.function(data) : null,
3015
- disabled: action.disabled,
3016
- "data-tooltip": action.tooltip,
3017
- children: /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: action.icon || "fa-solid fa-eye" })
3216
+ className: "iz-credit-card-function",
3217
+ onClick: data.function,
3218
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("i", { "aria-hidden": true, className: data.icon })
3018
3219
  },
3019
3220
  index
3020
- );
3021
- };
3022
- const renderRowText = (data, option) => {
3023
- const row = option.row || {};
3024
- const content = data[row.name] || data;
3025
- let body;
3026
- while (!body) {
3027
- if (_20.isString(row)) body = data[row];
3028
- if (_20.isString(content)) body = content;
3029
- if (_20.isFunction(row.mask)) body = row.mask(content);
3030
- if (_20.isFunction(row.custom)) body = row.custom(content);
3031
- body = body != null ? body : "---";
3221
+ )
3222
+ ) });
3223
+ }
3224
+
3225
+ // components/types/credit-card/index.tsx
3226
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3227
+ function CreditCard(props) {
3228
+ const functions = [
3229
+ {
3230
+ icon: "fa-regular fa-pen-to-square",
3231
+ label: "Editar",
3232
+ function: props.onEdit,
3233
+ hide: !props.onEdit
3234
+ },
3235
+ {
3236
+ icon: "fa-solid fa-gear",
3237
+ label: "Configura\xE7\xF5es",
3238
+ function: props.onConfig,
3239
+ hide: !props.onConfig
3240
+ },
3241
+ {
3242
+ icon: "fa-solid fa-trash-can",
3243
+ label: "Remover",
3244
+ function: props.onRemove,
3245
+ hide: !props.onRemove
3246
+ },
3247
+ ...props.functions || []
3248
+ ];
3249
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Container22, { children: [
3250
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CreditCardComponent, { ...props }),
3251
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CreditCardFunctions, { ...props, functions })
3252
+ ] });
3253
+ }
3254
+
3255
+ // components/types/block/styles.tsx
3256
+ var import_styled_components30 = __toESM(require("styled-components"));
3257
+ var Container25 = import_styled_components30.default.div`
3258
+ display: flex;
3259
+ flex-direction: column;
3260
+ gap: 1rem;
3261
+ padding: 1.3rem 1.5rem;
3262
+ border-radius: 5px;
3263
+ background: ${({ theme }) => theme.t05};
3264
+ flex: 1 1 20rem;
3265
+
3266
+ header {
3267
+ display: flex;
3268
+ align-items: center;
3269
+ gap: .5rem;
3270
+ font-size: .9rem;
3271
+ font-weight: 600;
3272
+ color: ${({ theme }) => theme.t6};
3032
3273
  }
3033
- return /* @__PURE__ */ jsx29(
3034
- "div",
3035
- {
3036
- className: "iz-table-content-elipse",
3037
- title: _20.isString(body) ? body : "",
3038
- children: body
3039
- }
3040
- );
3041
- };
3042
- return /* @__PURE__ */ jsxs19(Container, { notFound: !((_b = props.content) == null ? void 0 : _b.length) && !props.loading, children: [
3043
- /* @__PURE__ */ jsx29("div", { className: "iz-table-container", children: /* @__PURE__ */ jsxs19("table", { children: [
3044
- /* @__PURE__ */ jsx29("thead", { children: /* @__PURE__ */ jsx29("tr", { children: _20.map(
3045
- props.options,
3046
- (option, index) => {
3047
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
3048
- return /* @__PURE__ */ jsx29("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ jsx29(
3049
- "div",
3050
- {
3051
- className: `iz-table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `iz-table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
3052
- children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : _20.isString(((_h = option.column) == null ? void 0 : _h.name) || option.column) ? ((_i = option.column) == null ? void 0 : _i.name) || option.column : ""
3053
- }
3054
- ) }, index);
3055
- }
3056
- ) }) }),
3057
- /* @__PURE__ */ jsx29("tbody", { children: loading ? _20.map(((_c = props.loading) == null ? void 0 : _c.items) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (data, key) => /* @__PURE__ */ jsx29("tr", { children: _20.map(props.options, (data2, index) => {
3058
- var _a2;
3059
- return /* @__PURE__ */ jsx29("td", { children: /* @__PURE__ */ jsx29(
3060
- LoadingBar,
3061
- {
3062
- height: "2.5rem",
3063
- borderRadius: index === 0 ? "5px 0 0 5px" : ((_a2 = props.options) == null ? void 0 : _a2.length) - 1 === index ? "0 5px 5px 0" : "0",
3064
- margin: key === 0 ? "1.5rem 0 0" : ".5rem 0 0"
3065
- }
3066
- ) }, index);
3067
- }) }, key)) : _20.map(props.content, (data, key) => /* @__PURE__ */ jsx29("tr", { children: _20.map(props.options, (option, index) => /* @__PURE__ */ jsx29("td", { onClick: () => index < 2 ? onShowLine(key) : null, children: renderRowContainer(data, option) }, index)) }, key)) })
3068
- ] }) }),
3069
- !((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ jsxs19("div", { className: "iz-table-not-found", children: [
3070
- /* @__PURE__ */ jsx29("p", { children: ((_e = props.notFound) == null ? void 0 : _e.title) || "Nenhuma campanha encontrado" }),
3071
- /* @__PURE__ */ jsx29("p", { children: ((_f = props.notFound) == null ? void 0 : _f.message) || "Envie uma campanha de marketing para aparecer algum registro" })
3274
+ `;
3275
+ var Content2 = import_styled_components30.default.div`
3276
+ font-size: 1.5rem;
3277
+ font-weight: 500;
3278
+ color: ${({ theme }) => theme.t7};
3279
+ `;
3280
+
3281
+ // components/types/block/index.tsx
3282
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3283
+ function Block(props) {
3284
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Container25, { children: [
3285
+ (!!props.icon || !!props.label) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("header", { children: [
3286
+ !!props.icon && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("i", { "aria-hidden": true, className: props.icon }),
3287
+ !!props.label && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: props.label })
3072
3288
  ] }),
3073
- !!props.paginate && /* @__PURE__ */ jsx29(Paginate, { ...props.paginate })
3289
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Content2, { children: [
3290
+ !!props.component && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Component, { content: props.component }),
3291
+ props.children
3292
+ ] })
3074
3293
  ] });
3075
3294
  }
3076
- export {
3295
+
3296
+ // components/index.tsx
3297
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3298
+ function Component(props) {
3299
+ const renderComponent = (config) => {
3300
+ const ComponentElement = types_exports2[config.type];
3301
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ComponentElement, { ...config.props });
3302
+ };
3303
+ const renderRow = (components) => {
3304
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RowContainer, { children: import_lodash20.default.map(
3305
+ components,
3306
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react12.Fragment, { children: renderComponent(data) }, index)
3307
+ ) });
3308
+ };
3309
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Container, { className: props.className, children: import_lodash20.default.map(
3310
+ props.content,
3311
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react12.Fragment, { children: import_lodash20.default.isArray(data) ? renderRow(data) : renderComponent(data) }, index)
3312
+ ) });
3313
+ }
3314
+ // Annotate the CommonJS export names for ESM import in node:
3315
+ 0 && (module.exports = {
3316
+ Avatar,
3317
+ Badge,
3318
+ Block,
3319
+ Button,
3320
+ Chart,
3321
+ Component,
3322
+ CreditCard,
3323
+ Form,
3324
+ IconProvider,
3325
+ InputDateTime,
3326
+ InputFile,
3327
+ InputLabel,
3328
+ InputSelect,
3329
+ InputText,
3330
+ InputTextarea,
3331
+ LoadingApp,
3332
+ LoadingBar,
3333
+ Logo,
3334
+ Lottie,
3335
+ Modal,
3336
+ ModalProvider,
3077
3337
  Paginate,
3078
- Table
3079
- };
3338
+ Table,
3339
+ ThemeProvider,
3340
+ TooltipProvider,
3341
+ useIcon,
3342
+ useModal,
3343
+ useTheme,
3344
+ useTooltip
3345
+ });