@gustavo-valsechi/client 1.3.24 → 1.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +3 -10
- package/dist/components/styles.d.ts +2 -0
- package/dist/components/styles.mjs +21 -0
- package/dist/components/types/avatar/index.d.ts +2 -0
- package/dist/components/types/avatar/index.mjs +88 -0
- package/dist/components/types/avatar/styles.d.ts +1 -0
- package/dist/components/types/avatar/styles.mjs +61 -0
- package/dist/components/types/badge/index.d.ts +2 -0
- package/dist/components/types/badge/index.mjs +324 -0
- package/dist/components/types/badge/styles.d.ts +1 -0
- package/dist/components/types/badge/styles.mjs +39 -0
- package/dist/components/types/block/index.d.ts +2 -0
- package/dist/components/types/block/index.mjs +3078 -0
- package/dist/components/types/block/styles.d.ts +2 -0
- package/dist/components/types/block/styles.mjs +32 -0
- package/dist/components/types/chart/index.d.ts +2 -0
- package/dist/components/types/chart/index.mjs +322 -0
- package/dist/components/types/chart/styles.d.ts +1 -0
- package/dist/components/types/chart/styles.mjs +10 -0
- package/dist/components/types/credit-card/assets/index.d.ts +4 -0
- package/dist/components/types/credit-card/assets/index.mjs +23 -0
- package/dist/components/types/credit-card/card/index.d.ts +2 -0
- package/dist/components/types/credit-card/card/index.mjs +732 -0
- package/dist/components/types/credit-card/card/styles.d.ts +1 -0
- package/dist/components/types/credit-card/card/styles.mjs +138 -0
- package/dist/components/types/credit-card/functions/index.d.ts +2 -0
- package/dist/components/types/credit-card/functions/index.mjs +61 -0
- package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
- package/dist/components/types/credit-card/functions/styles.mjs +43 -0
- package/dist/components/types/credit-card/index.d.ts +2 -0
- package/dist/components/types/credit-card/index.mjs +853 -0
- package/dist/components/types/credit-card/styles.d.ts +1 -0
- package/dist/components/types/credit-card/styles.mjs +40 -0
- package/dist/components/types/credit-card/tools/index.d.ts +6 -0
- package/dist/components/types/credit-card/tools/index.mjs +566 -0
- package/dist/components/types/form/index.d.ts +3 -0
- package/dist/components/types/form/index.mjs +711 -0
- package/dist/components/types/form/styles.d.ts +1 -0
- package/dist/components/types/form/styles.mjs +21 -0
- package/dist/components/types/form/types/button/index.d.ts +2 -0
- package/dist/components/types/form/types/button/index.mjs +165 -0
- package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
- package/dist/components/types/form/types/button/loading/index.mjs +104 -0
- package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
- package/dist/components/types/form/types/button/loading/styles.mjs +94 -0
- package/dist/components/types/form/types/button/styles.d.ts +1 -0
- package/dist/components/types/form/types/button/styles.mjs +47 -0
- package/dist/components/types/form/types/datetime/index.d.ts +2 -0
- package/dist/components/types/form/types/datetime/index.mjs +93 -0
- package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
- package/dist/components/types/form/types/datetime/styles.mjs +46 -0
- package/dist/components/types/form/types/file/index.d.ts +2 -0
- package/dist/components/types/form/types/file/index.mjs +91 -0
- package/dist/components/types/form/types/file/styles.d.ts +1 -0
- package/dist/components/types/form/types/file/styles.mjs +33 -0
- package/dist/components/types/form/types/index.d.ts +7 -0
- package/dist/components/types/form/types/index.mjs +603 -0
- package/dist/components/types/form/types/input/index.d.ts +2 -0
- package/dist/components/types/form/types/input/index.mjs +113 -0
- package/dist/components/types/form/types/input/styles.d.ts +1 -0
- package/dist/components/types/form/types/input/styles.mjs +52 -0
- package/dist/components/types/form/types/label/index.d.ts +2 -0
- package/dist/components/types/form/types/label/index.mjs +19 -0
- package/dist/components/types/form/types/label/styles.d.ts +1 -0
- package/dist/components/types/form/types/label/styles.mjs +13 -0
- package/dist/components/types/form/types/select/index.d.ts +2 -0
- package/dist/components/types/form/types/select/index.mjs +125 -0
- package/dist/components/types/form/types/select/styles.d.ts +1 -0
- package/dist/components/types/form/types/select/styles.mjs +58 -0
- package/dist/components/types/form/types/textarea/index.d.ts +2 -0
- package/dist/components/types/form/types/textarea/index.mjs +92 -0
- package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
- package/dist/components/types/form/types/textarea/styles.mjs +45 -0
- package/dist/components/types/index.d.ts +11 -0
- package/dist/components/{index.js → types/index.mjs} +379 -405
- package/dist/components/types/loading/app/index.d.ts +2 -0
- package/dist/components/types/loading/app/index.mjs +128 -0
- package/dist/components/types/loading/app/styles.d.ts +1 -0
- package/dist/components/types/loading/app/styles.mjs +93 -0
- package/dist/components/types/loading/bar/index.d.ts +2 -0
- package/dist/components/types/loading/bar/index.mjs +33 -0
- package/dist/components/types/loading/bar/styles.d.ts +1 -0
- package/dist/components/types/loading/bar/styles.mjs +27 -0
- package/dist/components/types/loading/index.d.ts +2 -0
- package/dist/components/types/loading/index.mjs +156 -0
- package/dist/components/types/logo/index.d.ts +2 -0
- package/dist/components/types/logo/index.mjs +34 -0
- package/dist/components/types/logo/styles.d.ts +1 -0
- package/dist/components/types/logo/styles.mjs +25 -0
- package/dist/components/types/lottie/animations/index.d.ts +293 -0
- package/dist/components/types/lottie/animations/index.mjs +10 -0
- package/dist/components/types/lottie/index.d.ts +2 -0
- package/dist/components/types/lottie/index.mjs +69 -0
- package/dist/components/types/lottie/styles.d.ts +1 -0
- package/dist/components/types/lottie/styles.mjs +28 -0
- package/dist/components/types/modal/index.d.ts +2 -0
- package/dist/components/types/modal/index.mjs +2324 -0
- package/dist/components/types/modal/styles.d.ts +1 -0
- package/dist/components/types/modal/styles.mjs +135 -0
- package/dist/components/types/table/index.d.ts +3 -0
- package/dist/{index.js → components/types/table/index.mjs} +1050 -1316
- package/dist/components/types/table/modal/actions.d.ts +10 -0
- package/dist/components/types/table/modal/actions.mjs +87 -0
- package/dist/components/types/table/modal/index.d.ts +2 -0
- package/dist/components/types/table/modal/index.mjs +3076 -0
- package/dist/components/types/table/modal/styles.d.ts +1 -0
- package/dist/components/types/table/modal/styles.mjs +58 -0
- package/dist/components/types/table/paginate/index.d.ts +2 -0
- package/dist/components/types/table/paginate/index.mjs +96 -0
- package/dist/components/types/table/paginate/styles.d.ts +1 -0
- package/dist/components/types/table/paginate/styles.mjs +42 -0
- package/dist/components/types/table/styles.d.ts +5 -0
- package/dist/components/types/table/styles.mjs +268 -0
- package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
- package/dist/contexts/icon/assets/brands/index.mjs +19 -0
- package/dist/contexts/icon/assets/index.d.ts +6 -0
- package/dist/contexts/icon/assets/index.mjs +44 -0
- package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
- package/dist/contexts/icon/assets/regular/index.mjs +19 -0
- package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
- package/dist/contexts/icon/assets/solid/index.mjs +19 -0
- package/dist/contexts/icon/index.d.ts +4 -0
- package/dist/contexts/icon/index.mjs +281 -0
- package/dist/contexts/icon/styles.d.ts +1 -0
- package/dist/contexts/icon/styles.mjs +10 -0
- package/dist/contexts/index.d.ts +4 -20
- package/dist/contexts/modal/index.d.ts +4 -0
- package/dist/contexts/modal/index.mjs +66 -0
- package/dist/contexts/modal/styles.d.ts +1 -0
- package/dist/contexts/modal/styles.mjs +10 -0
- package/dist/contexts/theme/content.d.ts +3 -0
- package/dist/contexts/theme/content.mjs +81 -0
- package/dist/contexts/theme/index.d.ts +4 -0
- package/dist/contexts/theme/index.mjs +201 -0
- package/dist/contexts/theme/styles.d.ts +1 -0
- package/dist/contexts/theme/styles.mjs +84 -0
- package/dist/contexts/tooltip/index.d.ts +6 -0
- package/dist/contexts/tooltip/index.mjs +117 -0
- package/dist/contexts/tooltip/styles.d.ts +1 -0
- package/dist/contexts/tooltip/styles.mjs +46 -0
- package/dist/index.d.ts +4 -17
- package/dist/interfaces/components/avatar/index.d.ts +6 -0
- package/dist/interfaces/components/avatar/index.mjs +1 -0
- package/dist/interfaces/components/badge/index.d.ts +3 -0
- package/dist/interfaces/components/badge/index.mjs +1 -0
- package/dist/interfaces/components/block/index.d.ts +16 -0
- package/dist/interfaces/components/block/index.mjs +1 -0
- package/dist/interfaces/components/chart/index.d.ts +9 -0
- package/dist/interfaces/components/chart/index.mjs +1 -0
- package/dist/interfaces/components/credit-card/index.d.ts +16 -0
- package/dist/interfaces/components/credit-card/index.mjs +1 -0
- package/dist/interfaces/components/form/button/index.d.ts +7 -0
- package/dist/interfaces/components/form/button/index.mjs +1 -0
- package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
- package/dist/interfaces/components/form/datetime/index.mjs +1 -0
- package/dist/interfaces/components/form/file/index.d.ts +14 -0
- package/dist/interfaces/components/form/file/index.mjs +1 -0
- package/dist/interfaces/components/form/index.d.ts +16 -0
- package/dist/interfaces/components/form/index.mjs +1 -0
- package/dist/interfaces/components/form/input/index.d.ts +17 -0
- package/dist/interfaces/components/form/input/index.mjs +1 -0
- package/dist/interfaces/components/form/label/index.d.ts +5 -0
- package/dist/interfaces/components/form/label/index.mjs +1 -0
- package/dist/interfaces/components/form/select/index.d.ts +14 -0
- package/dist/interfaces/components/form/select/index.mjs +1 -0
- package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
- package/dist/interfaces/components/form/textarea/index.mjs +1 -0
- package/dist/interfaces/components/index.d.ts +26 -0
- package/dist/interfaces/components/index.mjs +1 -0
- package/dist/interfaces/components/loading/app/index.d.ts +3 -0
- package/dist/interfaces/components/loading/app/index.mjs +1 -0
- package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
- package/dist/interfaces/components/loading/bar/index.mjs +1 -0
- package/dist/interfaces/components/loading/index.d.ts +2 -0
- package/dist/interfaces/components/loading/index.mjs +1 -0
- package/dist/interfaces/components/logo/index.d.ts +6 -0
- package/dist/interfaces/components/logo/index.mjs +1 -0
- package/dist/interfaces/components/lottie/index.d.ts +12 -0
- package/dist/interfaces/components/lottie/index.mjs +1 -0
- package/dist/interfaces/components/modal/index.d.ts +16 -0
- package/dist/interfaces/components/modal/index.mjs +1 -0
- package/dist/interfaces/components/table/index.d.ts +46 -0
- package/dist/interfaces/components/table/index.mjs +1 -0
- package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
- package/dist/interfaces/components/table/paginate/index.mjs +1 -0
- package/dist/interfaces/contexts/icon/index.d.ts +3 -0
- package/dist/interfaces/contexts/icon/index.mjs +1 -0
- package/dist/interfaces/contexts/index.d.ts +8 -0
- package/dist/interfaces/contexts/index.mjs +1 -0
- package/dist/interfaces/contexts/modal/index.d.ts +16 -0
- package/dist/interfaces/contexts/modal/index.mjs +2 -0
- package/dist/interfaces/contexts/theme/index.d.ts +42 -0
- package/dist/interfaces/contexts/theme/index.mjs +1 -0
- package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
- package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
- package/dist/interfaces/index.d.ts +2 -12
- package/dist/styled.d.ts +6 -0
- package/dist/tsup.config.d.ts +2 -0
- package/package.json +13 -7
- package/dist/components/index.d.mts +0 -10
- package/dist/contexts/index.d.mts +0 -20
- package/dist/contexts/index.js +0 -525
- package/dist/index-BhaGW0O1.d.ts +0 -601
- package/dist/index-BxA8LyyD.d.mts +0 -68
- package/dist/index-DDi0w5pw.d.mts +0 -601
- package/dist/index-DT7VKE7H.d.ts +0 -68
- package/dist/index-Da-DtPS-.d.mts +0 -29
- package/dist/index-Da-DtPS-.d.ts +0 -29
- package/dist/index.d.mts +0 -17
- package/dist/interfaces/index.d.mts +0 -12
- package/dist/interfaces/index.js +0 -19
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
"use client";
|
|
4
2
|
var __create = Object.create;
|
|
5
3
|
var __defProp = Object.defineProperty;
|
|
6
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
11
15
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
16
|
};
|
|
13
17
|
var __export = (target, all) => {
|
|
@@ -30,11 +34,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
34
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
35
|
mod
|
|
32
36
|
));
|
|
33
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
37
|
|
|
35
38
|
// node_modules/credit-card-type/dist/lib/card-types.js
|
|
36
39
|
var require_card_types = __commonJS({
|
|
37
|
-
"node_modules/credit-card-type/dist/lib/card-types.js"(
|
|
40
|
+
"node_modules/credit-card-type/dist/lib/card-types.js"(exports, module) {
|
|
38
41
|
"use strict";
|
|
39
42
|
var cardTypes = {
|
|
40
43
|
visa: {
|
|
@@ -231,32 +234,32 @@ var require_card_types = __commonJS({
|
|
|
231
234
|
}
|
|
232
235
|
}
|
|
233
236
|
};
|
|
234
|
-
|
|
237
|
+
module.exports = cardTypes;
|
|
235
238
|
}
|
|
236
239
|
});
|
|
237
240
|
|
|
238
241
|
// node_modules/credit-card-type/dist/lib/clone.js
|
|
239
242
|
var require_clone = __commonJS({
|
|
240
|
-
"node_modules/credit-card-type/dist/lib/clone.js"(
|
|
243
|
+
"node_modules/credit-card-type/dist/lib/clone.js"(exports) {
|
|
241
244
|
"use strict";
|
|
242
|
-
Object.defineProperty(
|
|
243
|
-
|
|
245
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
246
|
+
exports.clone = void 0;
|
|
244
247
|
function clone(originalObject) {
|
|
245
248
|
if (!originalObject) {
|
|
246
249
|
return null;
|
|
247
250
|
}
|
|
248
251
|
return JSON.parse(JSON.stringify(originalObject));
|
|
249
252
|
}
|
|
250
|
-
|
|
253
|
+
exports.clone = clone;
|
|
251
254
|
}
|
|
252
255
|
});
|
|
253
256
|
|
|
254
257
|
// node_modules/credit-card-type/dist/lib/matches.js
|
|
255
258
|
var require_matches = __commonJS({
|
|
256
|
-
"node_modules/credit-card-type/dist/lib/matches.js"(
|
|
259
|
+
"node_modules/credit-card-type/dist/lib/matches.js"(exports) {
|
|
257
260
|
"use strict";
|
|
258
|
-
Object.defineProperty(
|
|
259
|
-
|
|
261
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
262
|
+
exports.matches = void 0;
|
|
260
263
|
function matchesRange(cardNumber, min, max) {
|
|
261
264
|
var maxLengthToCheck = String(min).length;
|
|
262
265
|
var substr = cardNumber.substr(0, maxLengthToCheck);
|
|
@@ -275,16 +278,16 @@ var require_matches = __commonJS({
|
|
|
275
278
|
}
|
|
276
279
|
return matchesPattern(cardNumber, pattern);
|
|
277
280
|
}
|
|
278
|
-
|
|
281
|
+
exports.matches = matches;
|
|
279
282
|
}
|
|
280
283
|
});
|
|
281
284
|
|
|
282
285
|
// node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js
|
|
283
286
|
var require_add_matching_cards_to_results = __commonJS({
|
|
284
|
-
"node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(
|
|
287
|
+
"node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(exports) {
|
|
285
288
|
"use strict";
|
|
286
|
-
Object.defineProperty(
|
|
287
|
-
|
|
289
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
290
|
+
exports.addMatchingCardsToResults = void 0;
|
|
288
291
|
var clone_1 = require_clone();
|
|
289
292
|
var matches_1 = require_matches();
|
|
290
293
|
function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {
|
|
@@ -307,29 +310,29 @@ var require_add_matching_cards_to_results = __commonJS({
|
|
|
307
310
|
break;
|
|
308
311
|
}
|
|
309
312
|
}
|
|
310
|
-
|
|
313
|
+
exports.addMatchingCardsToResults = addMatchingCardsToResults;
|
|
311
314
|
}
|
|
312
315
|
});
|
|
313
316
|
|
|
314
317
|
// node_modules/credit-card-type/dist/lib/is-valid-input-type.js
|
|
315
318
|
var require_is_valid_input_type = __commonJS({
|
|
316
|
-
"node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(
|
|
319
|
+
"node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(exports) {
|
|
317
320
|
"use strict";
|
|
318
|
-
Object.defineProperty(
|
|
319
|
-
|
|
321
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
322
|
+
exports.isValidInputType = void 0;
|
|
320
323
|
function isValidInputType(cardNumber) {
|
|
321
324
|
return typeof cardNumber === "string" || cardNumber instanceof String;
|
|
322
325
|
}
|
|
323
|
-
|
|
326
|
+
exports.isValidInputType = isValidInputType;
|
|
324
327
|
}
|
|
325
328
|
});
|
|
326
329
|
|
|
327
330
|
// node_modules/credit-card-type/dist/lib/find-best-match.js
|
|
328
331
|
var require_find_best_match = __commonJS({
|
|
329
|
-
"node_modules/credit-card-type/dist/lib/find-best-match.js"(
|
|
332
|
+
"node_modules/credit-card-type/dist/lib/find-best-match.js"(exports) {
|
|
330
333
|
"use strict";
|
|
331
|
-
Object.defineProperty(
|
|
332
|
-
|
|
334
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
335
|
+
exports.findBestMatch = void 0;
|
|
333
336
|
function hasEnoughResultsToDetermineBestMatch(results) {
|
|
334
337
|
var numberOfResultsWithMaxStrengthProperty = results.filter(function(result) {
|
|
335
338
|
return result.matchStrength;
|
|
@@ -350,15 +353,15 @@ var require_find_best_match = __commonJS({
|
|
|
350
353
|
return bestMatch;
|
|
351
354
|
});
|
|
352
355
|
}
|
|
353
|
-
|
|
356
|
+
exports.findBestMatch = findBestMatch;
|
|
354
357
|
}
|
|
355
358
|
});
|
|
356
359
|
|
|
357
360
|
// node_modules/credit-card-type/dist/index.js
|
|
358
361
|
var require_dist = __commonJS({
|
|
359
|
-
"node_modules/credit-card-type/dist/index.js"(
|
|
362
|
+
"node_modules/credit-card-type/dist/index.js"(exports, module) {
|
|
360
363
|
"use strict";
|
|
361
|
-
var __assign =
|
|
364
|
+
var __assign = exports && exports.__assign || function() {
|
|
362
365
|
__assign = Object.assign || function(t) {
|
|
363
366
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
364
367
|
s = arguments[i];
|
|
@@ -476,15 +479,15 @@ var require_dist = __commonJS({
|
|
|
476
479
|
customCards = {};
|
|
477
480
|
};
|
|
478
481
|
creditCardType2.types = cardNames;
|
|
479
|
-
|
|
482
|
+
module.exports = creditCardType2;
|
|
480
483
|
}
|
|
481
484
|
});
|
|
482
485
|
|
|
483
486
|
// node_modules/luhn/src/luhn.js
|
|
484
487
|
var require_luhn = __commonJS({
|
|
485
|
-
"node_modules/luhn/src/luhn.js"(
|
|
488
|
+
"node_modules/luhn/src/luhn.js"(exports, module) {
|
|
486
489
|
"use strict";
|
|
487
|
-
|
|
490
|
+
module.exports = /* @__PURE__ */ (function() {
|
|
488
491
|
function validate(cardNumber) {
|
|
489
492
|
var trimmed = String(cardNumber).replace(/[\s]/g, ""), length = trimmed.length, odd = false, total = 0, calc, calc2;
|
|
490
493
|
if (!/^[0-9]+$/.test(trimmed)) {
|
|
@@ -528,55 +531,9 @@ var require_luhn = __commonJS({
|
|
|
528
531
|
}
|
|
529
532
|
});
|
|
530
533
|
|
|
531
|
-
// components/index.tsx
|
|
532
|
-
var components_exports = {};
|
|
533
|
-
__export(components_exports, {
|
|
534
|
-
Avatar: () => Avatar,
|
|
535
|
-
Badge: () => Badge,
|
|
536
|
-
Block: () => Block,
|
|
537
|
-
Button: () => Button,
|
|
538
|
-
Chart: () => Chart,
|
|
539
|
-
Component: () => Component,
|
|
540
|
-
CreditCard: () => CreditCard,
|
|
541
|
-
Form: () => Form,
|
|
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
|
-
Paginate: () => Paginate,
|
|
554
|
-
Table: () => Table
|
|
555
|
-
});
|
|
556
|
-
module.exports = __toCommonJS(components_exports);
|
|
557
|
-
var import_react12 = require("react");
|
|
558
|
-
|
|
559
|
-
// components/styles.tsx
|
|
560
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
561
|
-
var Container = import_styled_components.default.div`
|
|
562
|
-
display: flex;
|
|
563
|
-
flex-direction: column;
|
|
564
|
-
gap: 1rem;
|
|
565
|
-
`;
|
|
566
|
-
var RowContainer = import_styled_components.default.div`
|
|
567
|
-
display: flex;
|
|
568
|
-
flex-direction: row;
|
|
569
|
-
align-items: stretch;
|
|
570
|
-
gap: 1rem;
|
|
571
|
-
flex-wrap: wrap;
|
|
572
|
-
`;
|
|
573
|
-
|
|
574
|
-
// components/index.tsx
|
|
575
|
-
var import_lodash20 = __toESM(require("lodash"));
|
|
576
|
-
|
|
577
534
|
// components/types/index.tsx
|
|
578
|
-
var
|
|
579
|
-
__export(
|
|
535
|
+
var types_exports = {};
|
|
536
|
+
__export(types_exports, {
|
|
580
537
|
Avatar: () => Avatar,
|
|
581
538
|
Badge: () => Badge,
|
|
582
539
|
Block: () => Block,
|
|
@@ -600,11 +557,11 @@ __export(types_exports2, {
|
|
|
600
557
|
});
|
|
601
558
|
|
|
602
559
|
// components/types/table/index.tsx
|
|
603
|
-
|
|
560
|
+
import { useEffect as useEffect5 } from "react";
|
|
604
561
|
|
|
605
562
|
// components/types/table/styles.tsx
|
|
606
|
-
|
|
607
|
-
var
|
|
563
|
+
import styled from "styled-components";
|
|
564
|
+
var Container = styled.div`
|
|
608
565
|
.iz-table-container {
|
|
609
566
|
overflow-x: auto;
|
|
610
567
|
|
|
@@ -865,9 +822,47 @@ var Container2 = import_styled_components2.default.div`
|
|
|
865
822
|
}
|
|
866
823
|
`;
|
|
867
824
|
|
|
825
|
+
// components/index.tsx
|
|
826
|
+
import { Fragment } from "react";
|
|
827
|
+
|
|
828
|
+
// components/styles.tsx
|
|
829
|
+
import styled2 from "styled-components";
|
|
830
|
+
var Container2 = styled2.div`
|
|
831
|
+
display: flex;
|
|
832
|
+
flex-direction: column;
|
|
833
|
+
gap: 1rem;
|
|
834
|
+
`;
|
|
835
|
+
var RowContainer = styled2.div`
|
|
836
|
+
display: flex;
|
|
837
|
+
flex-direction: row;
|
|
838
|
+
align-items: stretch;
|
|
839
|
+
gap: 1rem;
|
|
840
|
+
flex-wrap: wrap;
|
|
841
|
+
`;
|
|
842
|
+
|
|
843
|
+
// components/index.tsx
|
|
844
|
+
import _ from "lodash";
|
|
845
|
+
import { jsx } from "react/jsx-runtime";
|
|
846
|
+
function Component(props) {
|
|
847
|
+
const renderComponent = (config) => {
|
|
848
|
+
const ComponentElement = types_exports[config.type];
|
|
849
|
+
return /* @__PURE__ */ jsx(ComponentElement, { ...config.props });
|
|
850
|
+
};
|
|
851
|
+
const renderRow = (components) => {
|
|
852
|
+
return /* @__PURE__ */ jsx(RowContainer, { children: _.map(
|
|
853
|
+
components,
|
|
854
|
+
(data, index) => /* @__PURE__ */ jsx(Fragment, { children: renderComponent(data) }, index)
|
|
855
|
+
) });
|
|
856
|
+
};
|
|
857
|
+
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: _.map(
|
|
858
|
+
props.content,
|
|
859
|
+
(data, index) => /* @__PURE__ */ jsx(Fragment, { children: _.isArray(data) ? renderRow(data) : renderComponent(data) }, index)
|
|
860
|
+
) });
|
|
861
|
+
}
|
|
862
|
+
|
|
868
863
|
// components/types/table/paginate/styles.tsx
|
|
869
|
-
|
|
870
|
-
var Container3 =
|
|
864
|
+
import styled3 from "styled-components";
|
|
865
|
+
var Container3 = styled3.div`
|
|
871
866
|
width: 100%;
|
|
872
867
|
display: flex;
|
|
873
868
|
align-items: center;
|
|
@@ -903,8 +898,8 @@ var Container3 = import_styled_components3.default.div`
|
|
|
903
898
|
`;
|
|
904
899
|
|
|
905
900
|
// components/types/table/paginate/index.tsx
|
|
906
|
-
|
|
907
|
-
|
|
901
|
+
import _2 from "lodash";
|
|
902
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
908
903
|
function Paginate(props) {
|
|
909
904
|
const pages = () => {
|
|
910
905
|
const offset = Number(props.page.value) - 4;
|
|
@@ -914,58 +909,58 @@ function Paginate(props) {
|
|
|
914
909
|
pages2.push(page);
|
|
915
910
|
page++;
|
|
916
911
|
}
|
|
917
|
-
pages2 =
|
|
918
|
-
if (Number(props.page.value) + 1 > 5) pages2 =
|
|
919
|
-
if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return
|
|
912
|
+
pages2 = _2.slice(pages2, 0, 5);
|
|
913
|
+
if (Number(props.page.value) + 1 > 5) pages2 = _2.concat(["1.."], pages2);
|
|
914
|
+
if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return _2.concat(pages2, `..${props.total}`);
|
|
920
915
|
return pages2;
|
|
921
916
|
};
|
|
922
|
-
return Number(props.total) > 1 && /* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */ (
|
|
917
|
+
return Number(props.total) > 1 && /* @__PURE__ */ jsxs(Container3, { children: [
|
|
918
|
+
/* @__PURE__ */ jsx2(
|
|
924
919
|
"div",
|
|
925
920
|
{
|
|
926
921
|
className: "paginate back",
|
|
927
922
|
onClick: () => props.page.set ? props.page.set(
|
|
928
923
|
props.page.value ? props.page.value - 1 : props.page.value
|
|
929
924
|
) : null,
|
|
930
|
-
children: /* @__PURE__ */ (
|
|
925
|
+
children: /* @__PURE__ */ jsx2("i", { "aria-hidden": true, className: "fa-solid fa-chevron-left" })
|
|
931
926
|
}
|
|
932
927
|
),
|
|
933
|
-
|
|
928
|
+
_2.map(
|
|
934
929
|
pages(),
|
|
935
|
-
(page, index) => /* @__PURE__ */ (
|
|
930
|
+
(page, index) => /* @__PURE__ */ jsx2(
|
|
936
931
|
"div",
|
|
937
932
|
{
|
|
938
933
|
className: "paginate page",
|
|
939
|
-
"data-current": String(props.page.value === Number(
|
|
940
|
-
onClick: () => props.page.set ? props.page.set(Number(
|
|
934
|
+
"data-current": String(props.page.value === Number(_2.replace(page, /\D/g, "")) - 1),
|
|
935
|
+
onClick: () => props.page.set ? props.page.set(Number(_2.replace(page, /\D/g, "")) - 1) : null,
|
|
941
936
|
children: page
|
|
942
937
|
},
|
|
943
938
|
index
|
|
944
939
|
)
|
|
945
940
|
),
|
|
946
|
-
/* @__PURE__ */ (
|
|
941
|
+
/* @__PURE__ */ jsx2(
|
|
947
942
|
"div",
|
|
948
943
|
{
|
|
949
944
|
className: "paginate next",
|
|
950
945
|
onClick: () => props.page.set ? props.page.set(
|
|
951
946
|
props.page.value !== props.total - 1 ? props.page.value + 1 : props.page.value
|
|
952
947
|
) : null,
|
|
953
|
-
children: /* @__PURE__ */ (
|
|
948
|
+
children: /* @__PURE__ */ jsx2("i", { "aria-hidden": true, className: "fa-solid fa-chevron-right" })
|
|
954
949
|
}
|
|
955
950
|
)
|
|
956
951
|
] });
|
|
957
952
|
}
|
|
958
953
|
|
|
959
954
|
// contexts/icon/index.tsx
|
|
960
|
-
|
|
955
|
+
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
961
956
|
|
|
962
957
|
// contexts/theme/index.tsx
|
|
963
|
-
|
|
964
|
-
|
|
958
|
+
import { createContext, useContext, useState } from "react";
|
|
959
|
+
import { ThemeProvider } from "styled-components";
|
|
965
960
|
|
|
966
961
|
// contexts/theme/styles.tsx
|
|
967
|
-
|
|
968
|
-
var Switcher =
|
|
962
|
+
import styled4 from "styled-components";
|
|
963
|
+
var Switcher = styled4.div`
|
|
969
964
|
width: 3rem;
|
|
970
965
|
height: 1.5rem;
|
|
971
966
|
border-radius: 1rem;
|
|
@@ -1120,15 +1115,15 @@ var Themes = {
|
|
|
1120
1115
|
};
|
|
1121
1116
|
|
|
1122
1117
|
// contexts/theme/index.tsx
|
|
1123
|
-
|
|
1124
|
-
var ThemeContext =
|
|
1125
|
-
var useTheme = () =>
|
|
1118
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1119
|
+
var ThemeContext = createContext({});
|
|
1120
|
+
var useTheme = () => useContext(ThemeContext);
|
|
1126
1121
|
|
|
1127
1122
|
// contexts/icon/index.tsx
|
|
1128
|
-
|
|
1123
|
+
import _3 from "lodash";
|
|
1129
1124
|
|
|
1130
1125
|
// contexts/icon/assets/brands/index.tsx
|
|
1131
|
-
var req =
|
|
1126
|
+
var req = __require.context("./", false, /\.svg$/);
|
|
1132
1127
|
var brands = {};
|
|
1133
1128
|
req.keys().forEach((key) => {
|
|
1134
1129
|
const name = key.replace("./", "").replace(".svg", "");
|
|
@@ -1136,7 +1131,7 @@ req.keys().forEach((key) => {
|
|
|
1136
1131
|
});
|
|
1137
1132
|
|
|
1138
1133
|
// contexts/icon/assets/regular/index.tsx
|
|
1139
|
-
var req2 =
|
|
1134
|
+
var req2 = __require.context("./", false, /\.svg$/);
|
|
1140
1135
|
var regular = {};
|
|
1141
1136
|
req2.keys().forEach((key) => {
|
|
1142
1137
|
const name = key.replace("./", "").replace(".svg", "");
|
|
@@ -1144,7 +1139,7 @@ req2.keys().forEach((key) => {
|
|
|
1144
1139
|
});
|
|
1145
1140
|
|
|
1146
1141
|
// contexts/icon/assets/solid/index.tsx
|
|
1147
|
-
var req3 =
|
|
1142
|
+
var req3 = __require.context("./", false, /\.svg$/);
|
|
1148
1143
|
var solid = {};
|
|
1149
1144
|
req3.keys().forEach((key) => {
|
|
1150
1145
|
const name = key.replace("./", "").replace(".svg", "");
|
|
@@ -1152,15 +1147,15 @@ req3.keys().forEach((key) => {
|
|
|
1152
1147
|
});
|
|
1153
1148
|
|
|
1154
1149
|
// contexts/icon/index.tsx
|
|
1155
|
-
|
|
1156
|
-
var IconContext = (
|
|
1150
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1151
|
+
var IconContext = createContext2({});
|
|
1157
1152
|
|
|
1158
1153
|
// contexts/tooltip/index.tsx
|
|
1159
|
-
|
|
1154
|
+
import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
|
|
1160
1155
|
|
|
1161
1156
|
// contexts/tooltip/styles.tsx
|
|
1162
|
-
|
|
1163
|
-
var Tooltip =
|
|
1157
|
+
import styled5 from "styled-components";
|
|
1158
|
+
var Tooltip = styled5.div`
|
|
1164
1159
|
position: fixed;
|
|
1165
1160
|
background: ${({ theme }) => theme.tooltip};
|
|
1166
1161
|
color: ${({ theme }) => theme.t6};
|
|
@@ -1201,32 +1196,32 @@ var Tooltip = import_styled_components6.default.div`
|
|
|
1201
1196
|
`;
|
|
1202
1197
|
|
|
1203
1198
|
// contexts/tooltip/index.tsx
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
var TooltipContext = (
|
|
1199
|
+
import _4 from "lodash";
|
|
1200
|
+
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1201
|
+
var TooltipContext = createContext3({});
|
|
1207
1202
|
|
|
1208
1203
|
// contexts/modal/index.tsx
|
|
1209
|
-
|
|
1210
|
-
|
|
1204
|
+
import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
|
|
1205
|
+
import { usePathname } from "next/navigation";
|
|
1211
1206
|
|
|
1212
1207
|
// contexts/modal/styles.tsx
|
|
1213
|
-
|
|
1214
|
-
var Container4 =
|
|
1208
|
+
import styled6 from "styled-components";
|
|
1209
|
+
var Container4 = styled6.div`
|
|
1215
1210
|
|
|
1216
1211
|
`;
|
|
1217
1212
|
|
|
1218
1213
|
// contexts/modal/index.tsx
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
var ModalContext = (
|
|
1222
|
-
var useModal = () => (
|
|
1214
|
+
import _5 from "lodash";
|
|
1215
|
+
import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1216
|
+
var ModalContext = createContext4({});
|
|
1217
|
+
var useModal = () => useContext4(ModalContext);
|
|
1223
1218
|
|
|
1224
1219
|
// components/types/table/index.tsx
|
|
1225
|
-
|
|
1220
|
+
import _7 from "lodash";
|
|
1226
1221
|
|
|
1227
1222
|
// components/types/table/modal/styles.tsx
|
|
1228
|
-
|
|
1229
|
-
var Content =
|
|
1223
|
+
import styled7 from "styled-components";
|
|
1224
|
+
var Content = styled7.div`
|
|
1230
1225
|
padding: 1.5rem;
|
|
1231
1226
|
display: flex;
|
|
1232
1227
|
flex-direction: column;
|
|
@@ -1278,7 +1273,7 @@ var Content = import_styled_components8.default.div`
|
|
|
1278
1273
|
`;
|
|
1279
1274
|
|
|
1280
1275
|
// components/types/table/modal/index.tsx
|
|
1281
|
-
|
|
1276
|
+
import _6 from "lodash";
|
|
1282
1277
|
|
|
1283
1278
|
// components/types/table/modal/actions.tsx
|
|
1284
1279
|
var actionConfig = {
|
|
@@ -1288,15 +1283,15 @@ var actionConfig = {
|
|
|
1288
1283
|
var actions_default = actionConfig;
|
|
1289
1284
|
|
|
1290
1285
|
// components/types/table/modal/index.tsx
|
|
1291
|
-
|
|
1286
|
+
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1292
1287
|
function Modal(props) {
|
|
1293
1288
|
const modal = useModal();
|
|
1294
|
-
const content =
|
|
1295
|
-
const actions = Object.values(
|
|
1289
|
+
const content = _6.omit(props.content, ["actions"]);
|
|
1290
|
+
const actions = Object.values(_6.pick(props.content, ["actions"]))[0];
|
|
1296
1291
|
const onClose = () => {
|
|
1297
1292
|
modal.setProps("table", { toggle: false });
|
|
1298
1293
|
};
|
|
1299
|
-
return /* @__PURE__ */ (
|
|
1294
|
+
return /* @__PURE__ */ jsx7(
|
|
1300
1295
|
Component,
|
|
1301
1296
|
{
|
|
1302
1297
|
content: [{
|
|
@@ -1304,19 +1299,19 @@ function Modal(props) {
|
|
|
1304
1299
|
props: {
|
|
1305
1300
|
toggle: props.toggle,
|
|
1306
1301
|
onClose,
|
|
1307
|
-
children: /* @__PURE__ */ (
|
|
1308
|
-
/* @__PURE__ */ (
|
|
1309
|
-
/* @__PURE__ */ (
|
|
1302
|
+
children: /* @__PURE__ */ jsx7(Container, { children: /* @__PURE__ */ jsxs5(Content, { children: [
|
|
1303
|
+
/* @__PURE__ */ jsx7("div", { className: "iz-table-modal-title", children: "Conte\xFAdo" }),
|
|
1304
|
+
/* @__PURE__ */ jsx7("div", { className: "iz-table-modal-content", children: /* @__PURE__ */ jsx7("ul", { children: _6.map(
|
|
1310
1305
|
content,
|
|
1311
|
-
(value, key) => /* @__PURE__ */ (
|
|
1312
|
-
!!key && /* @__PURE__ */ (
|
|
1313
|
-
/* @__PURE__ */ (
|
|
1306
|
+
(value, key) => /* @__PURE__ */ jsxs5("li", { children: [
|
|
1307
|
+
!!key && /* @__PURE__ */ jsx7("div", { className: "iz-table-modal-column", children: key }),
|
|
1308
|
+
/* @__PURE__ */ jsx7("div", { className: "iz-table-modal-row", children: value })
|
|
1314
1309
|
] }, key)
|
|
1315
1310
|
) }) }),
|
|
1316
|
-
/* @__PURE__ */ (
|
|
1311
|
+
/* @__PURE__ */ jsx7("div", { className: "iz-table-modal-actions", children: /* @__PURE__ */ jsx7(
|
|
1317
1312
|
Component,
|
|
1318
1313
|
{
|
|
1319
|
-
content:
|
|
1314
|
+
content: _6.concat(_6.map(actions, (data) => ({
|
|
1320
1315
|
type: "Button",
|
|
1321
1316
|
props: {
|
|
1322
1317
|
...actions_default[data.icon] || {},
|
|
@@ -1340,30 +1335,30 @@ function Modal(props) {
|
|
|
1340
1335
|
}
|
|
1341
1336
|
|
|
1342
1337
|
// components/types/table/index.tsx
|
|
1343
|
-
|
|
1338
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1344
1339
|
function Table(props) {
|
|
1345
1340
|
var _a, _b, _c, _d, _e, _f;
|
|
1346
1341
|
const theme = useTheme();
|
|
1347
1342
|
const modal = useModal();
|
|
1348
1343
|
const loading = ((_a = props.loading) == null ? void 0 : _a.is) || props.loading;
|
|
1349
|
-
(
|
|
1344
|
+
useEffect5(() => {
|
|
1350
1345
|
modal.add({ component: Modal, name: "table" });
|
|
1351
1346
|
return () => modal.remove("table");
|
|
1352
1347
|
}, []);
|
|
1353
1348
|
const onShowLine = (key) => {
|
|
1354
|
-
if (window.innerWidth > Number(
|
|
1349
|
+
if (window.innerWidth > Number(_7.replace(theme.content.mobileMaxWidth, "px", ""))) return;
|
|
1355
1350
|
let content = {};
|
|
1356
|
-
|
|
1351
|
+
_7.forEach(props.options, (data, index) => {
|
|
1357
1352
|
var _a2, _b2;
|
|
1358
1353
|
const column = ((_a2 = data.column) == null ? void 0 : _a2.name) || data.column;
|
|
1359
|
-
const columnName = !
|
|
1354
|
+
const columnName = !_7.isString(column) ? props.options.length - 1 === index ? "actions" : "" : column;
|
|
1360
1355
|
content[columnName] = columnName === "actions" ? (_b2 = data.row) == null ? void 0 : _b2.actions : renderRowContainer(props.content[key], data);
|
|
1361
1356
|
});
|
|
1362
1357
|
modal.setProps("table", { toggle: true, content });
|
|
1363
1358
|
};
|
|
1364
1359
|
const renderRowContainer = (data, option) => {
|
|
1365
1360
|
var _a2, _b2, _c2, _d2;
|
|
1366
|
-
return /* @__PURE__ */ (
|
|
1361
|
+
return /* @__PURE__ */ jsx8(
|
|
1367
1362
|
"div",
|
|
1368
1363
|
{
|
|
1369
1364
|
className: `
|
|
@@ -1371,7 +1366,7 @@ function Table(props) {
|
|
|
1371
1366
|
${((_a2 = option.row) == null ? void 0 : _a2.actions) ? "iz-table-action" : ""}
|
|
1372
1367
|
${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "iz-table-identifier" : ""}
|
|
1373
1368
|
`,
|
|
1374
|
-
style:
|
|
1369
|
+
style: _7.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
|
|
1375
1370
|
children: renderRowContent(data, option)
|
|
1376
1371
|
}
|
|
1377
1372
|
);
|
|
@@ -1379,31 +1374,31 @@ function Table(props) {
|
|
|
1379
1374
|
const renderRowContent = (data, option) => {
|
|
1380
1375
|
var _a2, _b2, _c2, _d2, _e2;
|
|
1381
1376
|
if (!!((_a2 = option.row) == null ? void 0 : _a2.actions)) {
|
|
1382
|
-
return /* @__PURE__ */ (
|
|
1377
|
+
return /* @__PURE__ */ jsx8("div", { className: "iz-table-actions", children: _7.map(
|
|
1383
1378
|
(_b2 = option.row) == null ? void 0 : _b2.actions,
|
|
1384
1379
|
(action, index) => renderButton(action, data, index)
|
|
1385
1380
|
) });
|
|
1386
1381
|
}
|
|
1387
1382
|
if ((_c2 = option.row) == null ? void 0 : _c2.icon) {
|
|
1388
|
-
return /* @__PURE__ */ (
|
|
1383
|
+
return /* @__PURE__ */ jsx8("div", { className: "iz-table-icon", children: /* @__PURE__ */ jsx8(
|
|
1389
1384
|
"i",
|
|
1390
1385
|
{
|
|
1391
1386
|
"aria-hidden": true,
|
|
1392
|
-
className:
|
|
1387
|
+
className: _7.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"
|
|
1393
1388
|
}
|
|
1394
1389
|
) });
|
|
1395
1390
|
}
|
|
1396
1391
|
return renderRowText(data, option);
|
|
1397
1392
|
};
|
|
1398
1393
|
const renderButton = (action, data, index) => {
|
|
1399
|
-
return /* @__PURE__ */ (
|
|
1394
|
+
return /* @__PURE__ */ jsx8(
|
|
1400
1395
|
"button",
|
|
1401
1396
|
{
|
|
1402
|
-
className: `iz-table-button ${
|
|
1397
|
+
className: `iz-table-button ${_7.includes(action.icon, "trash") ? "negative" : ""}`,
|
|
1403
1398
|
onClick: () => action.function ? action.function(data) : null,
|
|
1404
1399
|
disabled: action.disabled,
|
|
1405
1400
|
"data-tooltip": action.tooltip,
|
|
1406
|
-
children: /* @__PURE__ */ (
|
|
1401
|
+
children: /* @__PURE__ */ jsx8("i", { "aria-hidden": true, className: action.icon || "fa-solid fa-eye" })
|
|
1407
1402
|
},
|
|
1408
1403
|
index
|
|
1409
1404
|
);
|
|
@@ -1413,39 +1408,39 @@ function Table(props) {
|
|
|
1413
1408
|
const content = data[row.name] || data;
|
|
1414
1409
|
let body;
|
|
1415
1410
|
while (!body) {
|
|
1416
|
-
if (
|
|
1417
|
-
if (
|
|
1418
|
-
if (
|
|
1419
|
-
if (
|
|
1411
|
+
if (_7.isString(row)) body = data[row];
|
|
1412
|
+
if (_7.isString(content)) body = content;
|
|
1413
|
+
if (_7.isFunction(row.mask)) body = row.mask(content);
|
|
1414
|
+
if (_7.isFunction(row.custom)) body = row.custom(content);
|
|
1420
1415
|
body = body != null ? body : "---";
|
|
1421
1416
|
}
|
|
1422
|
-
return /* @__PURE__ */ (
|
|
1417
|
+
return /* @__PURE__ */ jsx8(
|
|
1423
1418
|
"div",
|
|
1424
1419
|
{
|
|
1425
1420
|
className: "iz-table-content-elipse",
|
|
1426
|
-
title:
|
|
1421
|
+
title: _7.isString(body) ? body : "",
|
|
1427
1422
|
children: body
|
|
1428
1423
|
}
|
|
1429
1424
|
);
|
|
1430
1425
|
};
|
|
1431
|
-
return /* @__PURE__ */ (
|
|
1432
|
-
/* @__PURE__ */ (
|
|
1433
|
-
/* @__PURE__ */ (
|
|
1426
|
+
return /* @__PURE__ */ jsxs6(Container, { notFound: !((_b = props.content) == null ? void 0 : _b.length) && !props.loading, children: [
|
|
1427
|
+
/* @__PURE__ */ jsx8("div", { className: "iz-table-container", children: /* @__PURE__ */ jsxs6("table", { children: [
|
|
1428
|
+
/* @__PURE__ */ jsx8("thead", { children: /* @__PURE__ */ jsx8("tr", { children: _7.map(
|
|
1434
1429
|
props.options,
|
|
1435
1430
|
(option, index) => {
|
|
1436
1431
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
|
|
1437
|
-
return /* @__PURE__ */ (
|
|
1432
|
+
return /* @__PURE__ */ jsx8("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ jsx8(
|
|
1438
1433
|
"div",
|
|
1439
1434
|
{
|
|
1440
1435
|
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 : ""}` : ""}`,
|
|
1441
|
-
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) :
|
|
1436
|
+
children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : _7.isString(((_h = option.column) == null ? void 0 : _h.name) || option.column) ? ((_i = option.column) == null ? void 0 : _i.name) || option.column : ""
|
|
1442
1437
|
}
|
|
1443
1438
|
) }, index);
|
|
1444
1439
|
}
|
|
1445
1440
|
) }) }),
|
|
1446
|
-
/* @__PURE__ */ (
|
|
1441
|
+
/* @__PURE__ */ jsx8("tbody", { children: loading ? _7.map(((_c = props.loading) == null ? void 0 : _c.items) || [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], (data, key) => /* @__PURE__ */ jsx8("tr", { children: _7.map(props.options, (data2, index) => {
|
|
1447
1442
|
var _a2;
|
|
1448
|
-
return /* @__PURE__ */ (
|
|
1443
|
+
return /* @__PURE__ */ jsx8("td", { children: /* @__PURE__ */ jsx8(
|
|
1449
1444
|
LoadingBar,
|
|
1450
1445
|
{
|
|
1451
1446
|
height: "2.5rem",
|
|
@@ -1453,19 +1448,19 @@ function Table(props) {
|
|
|
1453
1448
|
margin: key === 0 ? "1.5rem 0 0" : ".5rem 0 0"
|
|
1454
1449
|
}
|
|
1455
1450
|
) }, index);
|
|
1456
|
-
}) }, key)) :
|
|
1451
|
+
}) }, key)) : _7.map(props.content, (data, key) => /* @__PURE__ */ jsx8("tr", { children: _7.map(props.options, (option, index) => /* @__PURE__ */ jsx8("td", { onClick: () => index < 2 ? onShowLine(key) : null, children: renderRowContainer(data, option) }, index)) }, key)) })
|
|
1457
1452
|
] }) }),
|
|
1458
|
-
!((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ (
|
|
1459
|
-
/* @__PURE__ */ (
|
|
1460
|
-
/* @__PURE__ */ (
|
|
1453
|
+
!((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ jsxs6("div", { className: "iz-table-not-found", children: [
|
|
1454
|
+
/* @__PURE__ */ jsx8("p", { children: ((_e = props.notFound) == null ? void 0 : _e.title) || "Nenhuma campanha encontrado" }),
|
|
1455
|
+
/* @__PURE__ */ jsx8("p", { children: ((_f = props.notFound) == null ? void 0 : _f.message) || "Envie uma campanha de marketing para aparecer algum registro" })
|
|
1461
1456
|
] }),
|
|
1462
|
-
!!props.paginate && /* @__PURE__ */ (
|
|
1457
|
+
!!props.paginate && /* @__PURE__ */ jsx8(Paginate, { ...props.paginate })
|
|
1463
1458
|
] });
|
|
1464
1459
|
}
|
|
1465
1460
|
|
|
1466
1461
|
// components/types/loading/bar/styles.tsx
|
|
1467
|
-
|
|
1468
|
-
var Container5 =
|
|
1462
|
+
import styled8 from "styled-components";
|
|
1463
|
+
var Container5 = styled8.div`
|
|
1469
1464
|
border-radius: ${(props) => props.borderRadius || "10px"};
|
|
1470
1465
|
height: ${(props) => props.height || "100%"};
|
|
1471
1466
|
width: ${(props) => props.width || "100%"};
|
|
@@ -1486,14 +1481,14 @@ var Container5 = import_styled_components9.default.div`
|
|
|
1486
1481
|
`;
|
|
1487
1482
|
|
|
1488
1483
|
// components/types/loading/bar/index.tsx
|
|
1489
|
-
|
|
1484
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1490
1485
|
function LoadingBar(props) {
|
|
1491
|
-
return /* @__PURE__ */ (
|
|
1486
|
+
return /* @__PURE__ */ jsx9(Container5, { ...props });
|
|
1492
1487
|
}
|
|
1493
1488
|
|
|
1494
1489
|
// components/types/loading/app/styles.tsx
|
|
1495
|
-
|
|
1496
|
-
var Container6 =
|
|
1490
|
+
import styled9 from "styled-components";
|
|
1491
|
+
var Container6 = styled9.div`
|
|
1497
1492
|
width: ${({ initialization }) => initialization ? "100vw" : "100%"};
|
|
1498
1493
|
height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
|
|
1499
1494
|
display: flex;
|
|
@@ -1580,8 +1575,8 @@ var Container6 = import_styled_components10.default.div`
|
|
|
1580
1575
|
`;
|
|
1581
1576
|
|
|
1582
1577
|
// components/types/logo/styles.tsx
|
|
1583
|
-
|
|
1584
|
-
var Container7 =
|
|
1578
|
+
import styled10 from "styled-components";
|
|
1579
|
+
var Container7 = styled10.div`
|
|
1585
1580
|
display: flex;
|
|
1586
1581
|
align-items: center;
|
|
1587
1582
|
justify-content: center;
|
|
@@ -1600,23 +1595,23 @@ var Container7 = import_styled_components11.default.div`
|
|
|
1600
1595
|
`;
|
|
1601
1596
|
|
|
1602
1597
|
// components/types/logo/index.tsx
|
|
1603
|
-
|
|
1598
|
+
import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1604
1599
|
function Logo(props) {
|
|
1605
|
-
return /* @__PURE__ */ (
|
|
1606
|
-
/* @__PURE__ */ (
|
|
1607
|
-
!props.onlyPrefix && /* @__PURE__ */ (
|
|
1600
|
+
return /* @__PURE__ */ jsxs7(Container7, { ...props, children: [
|
|
1601
|
+
/* @__PURE__ */ jsx10("label", { children: "IZ" }),
|
|
1602
|
+
!props.onlyPrefix && /* @__PURE__ */ jsx10("label", { children: "Way" })
|
|
1608
1603
|
] });
|
|
1609
1604
|
}
|
|
1610
1605
|
|
|
1611
1606
|
// components/types/loading/app/index.tsx
|
|
1612
|
-
|
|
1607
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1613
1608
|
function LoadingApp(props) {
|
|
1614
|
-
return /* @__PURE__ */ (
|
|
1609
|
+
return /* @__PURE__ */ jsx11(Container6, { ...props, children: /* @__PURE__ */ jsx11(Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
|
|
1615
1610
|
}
|
|
1616
1611
|
|
|
1617
1612
|
// components/types/modal/styles.tsx
|
|
1618
|
-
|
|
1619
|
-
var Container8 =
|
|
1613
|
+
import styled11 from "styled-components";
|
|
1614
|
+
var Container8 = styled11.div`
|
|
1620
1615
|
width: 100%;
|
|
1621
1616
|
height: 100%;
|
|
1622
1617
|
top: 0;
|
|
@@ -1745,35 +1740,35 @@ var Container8 = import_styled_components12.default.div`
|
|
|
1745
1740
|
`;
|
|
1746
1741
|
|
|
1747
1742
|
// components/types/modal/index.tsx
|
|
1748
|
-
|
|
1749
|
-
|
|
1743
|
+
import _8 from "lodash";
|
|
1744
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1750
1745
|
function Modal2(props) {
|
|
1751
1746
|
var _a, _b, _c;
|
|
1752
|
-
return /* @__PURE__ */ (
|
|
1753
|
-
/* @__PURE__ */ (
|
|
1754
|
-
/* @__PURE__ */ (
|
|
1755
|
-
(!!props.title || !!props.header) && /* @__PURE__ */ (
|
|
1756
|
-
/* @__PURE__ */ (
|
|
1757
|
-
((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ (
|
|
1758
|
-
/* @__PURE__ */ (
|
|
1747
|
+
return /* @__PURE__ */ jsxs8(Container8, { ...props, position: props.position || "center", children: [
|
|
1748
|
+
/* @__PURE__ */ jsx12("div", { className: "iz-modal-back", onClick: props.onClose }),
|
|
1749
|
+
/* @__PURE__ */ jsxs8("div", { className: "iz-modal-container", children: [
|
|
1750
|
+
(!!props.title || !!props.header) && /* @__PURE__ */ jsxs8("div", { className: "iz-modal-header", children: [
|
|
1751
|
+
/* @__PURE__ */ jsxs8("div", { className: "iz-modal-title", children: [
|
|
1752
|
+
((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx12("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
|
|
1753
|
+
/* @__PURE__ */ jsx12("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
|
|
1759
1754
|
] }),
|
|
1760
|
-
/* @__PURE__ */ (
|
|
1755
|
+
/* @__PURE__ */ jsx12("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
|
|
1761
1756
|
] }),
|
|
1762
|
-
/* @__PURE__ */ (
|
|
1763
|
-
props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ (
|
|
1757
|
+
/* @__PURE__ */ jsxs8("div", { className: "iz-modal-content", children: [
|
|
1758
|
+
props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx12("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx12("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
|
|
1764
1759
|
props.children
|
|
1765
1760
|
] }),
|
|
1766
|
-
props.buttons && /* @__PURE__ */ (
|
|
1761
|
+
props.buttons && /* @__PURE__ */ jsx12("div", { className: "iz-modal-buttons", children: _8.map(
|
|
1767
1762
|
props.buttons,
|
|
1768
|
-
(button, index) => /* @__PURE__ */ (
|
|
1763
|
+
(button, index) => /* @__PURE__ */ jsx12(Button, { ...button }, index)
|
|
1769
1764
|
) })
|
|
1770
1765
|
] })
|
|
1771
1766
|
] });
|
|
1772
1767
|
}
|
|
1773
1768
|
|
|
1774
1769
|
// components/types/badge/styles.tsx
|
|
1775
|
-
|
|
1776
|
-
var Container9 =
|
|
1770
|
+
import styled12 from "styled-components";
|
|
1771
|
+
var Container9 = styled12.div`
|
|
1777
1772
|
.content {
|
|
1778
1773
|
display: inline-flex;
|
|
1779
1774
|
align-items: center;
|
|
@@ -1806,8 +1801,8 @@ var Container9 = import_styled_components13.default.div`
|
|
|
1806
1801
|
`;
|
|
1807
1802
|
|
|
1808
1803
|
// components/types/badge/index.tsx
|
|
1809
|
-
|
|
1810
|
-
|
|
1804
|
+
import _9 from "lodash";
|
|
1805
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1811
1806
|
function Badge(props) {
|
|
1812
1807
|
const { content } = useTheme();
|
|
1813
1808
|
const status = {
|
|
@@ -1817,15 +1812,15 @@ function Badge(props) {
|
|
|
1817
1812
|
INSTAVEL: "negative",
|
|
1818
1813
|
REGULAR: "negative"
|
|
1819
1814
|
};
|
|
1820
|
-
return /* @__PURE__ */ (
|
|
1815
|
+
return /* @__PURE__ */ jsx13(Container9, { color: status[props.value] || content.t3, children: /* @__PURE__ */ jsx13("div", { className: "content", children: /* @__PURE__ */ jsx13("div", { children: _9.lowerCase(props.value) }) }) });
|
|
1821
1816
|
}
|
|
1822
1817
|
|
|
1823
1818
|
// components/types/form/index.tsx
|
|
1824
|
-
|
|
1819
|
+
import React10, { useEffect as useEffect6, useRef as useRef2 } from "react";
|
|
1825
1820
|
|
|
1826
1821
|
// components/types/form/styles.tsx
|
|
1827
|
-
|
|
1828
|
-
var Container10 =
|
|
1822
|
+
import styled13 from "styled-components";
|
|
1823
|
+
var Container10 = styled13.form`
|
|
1829
1824
|
width: 100%;
|
|
1830
1825
|
|
|
1831
1826
|
.form-buttons {
|
|
@@ -1840,14 +1835,14 @@ var Container10 = import_styled_components14.default.form`
|
|
|
1840
1835
|
`;
|
|
1841
1836
|
|
|
1842
1837
|
// components/types/form/index.tsx
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1838
|
+
import { z } from "zod";
|
|
1839
|
+
import { useForm } from "react-hook-form";
|
|
1840
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
1841
|
+
import _15 from "lodash";
|
|
1847
1842
|
|
|
1848
1843
|
// components/types/form/types/index.tsx
|
|
1849
|
-
var
|
|
1850
|
-
__export(
|
|
1844
|
+
var types_exports2 = {};
|
|
1845
|
+
__export(types_exports2, {
|
|
1851
1846
|
Button: () => Button,
|
|
1852
1847
|
InputDateTime: () => InputDateTime,
|
|
1853
1848
|
InputFile: () => InputFile,
|
|
@@ -1858,11 +1853,11 @@ __export(types_exports, {
|
|
|
1858
1853
|
});
|
|
1859
1854
|
|
|
1860
1855
|
// components/types/form/types/file/index.tsx
|
|
1861
|
-
|
|
1856
|
+
import { useRef } from "react";
|
|
1862
1857
|
|
|
1863
1858
|
// components/types/form/types/file/styles.tsx
|
|
1864
|
-
|
|
1865
|
-
var Container11 =
|
|
1859
|
+
import styled14 from "styled-components";
|
|
1860
|
+
var Container11 = styled14.div`
|
|
1866
1861
|
width: 100%;
|
|
1867
1862
|
padding-top: .3rem;
|
|
1868
1863
|
|
|
@@ -1889,31 +1884,31 @@ var Container11 = import_styled_components15.default.div`
|
|
|
1889
1884
|
`;
|
|
1890
1885
|
|
|
1891
1886
|
// components/types/form/types/label/styles.tsx
|
|
1892
|
-
|
|
1893
|
-
var Container12 =
|
|
1887
|
+
import styled15 from "styled-components";
|
|
1888
|
+
var Container12 = styled15.label`
|
|
1894
1889
|
font-size: .8rem;
|
|
1895
1890
|
font-weight: 500;
|
|
1896
1891
|
color: ${({ theme }) => theme.t6};
|
|
1897
1892
|
`;
|
|
1898
1893
|
|
|
1899
1894
|
// components/types/form/types/label/index.tsx
|
|
1900
|
-
|
|
1895
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1901
1896
|
function InputLabel(props) {
|
|
1902
|
-
return /* @__PURE__ */ (
|
|
1897
|
+
return /* @__PURE__ */ jsx14(Container12, { className: props.className, children: props.children });
|
|
1903
1898
|
}
|
|
1904
1899
|
|
|
1905
1900
|
// components/types/form/types/file/index.tsx
|
|
1906
|
-
|
|
1901
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1907
1902
|
function InputFile(props) {
|
|
1908
1903
|
var _a;
|
|
1909
|
-
const inputRef =
|
|
1904
|
+
const inputRef = useRef({});
|
|
1910
1905
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
1911
1906
|
const readImage = (data) => {
|
|
1912
1907
|
if (props.onPreview) props.onPreview(URL.createObjectURL(data));
|
|
1913
1908
|
if (props.onChange) props.onChange(data);
|
|
1914
1909
|
};
|
|
1915
|
-
return /* @__PURE__ */ (
|
|
1916
|
-
/* @__PURE__ */ (
|
|
1910
|
+
return /* @__PURE__ */ jsxs9(Container11, { className: props.className, error: props.error, disabled: props.disabled, children: [
|
|
1911
|
+
/* @__PURE__ */ jsx15(
|
|
1917
1912
|
"input",
|
|
1918
1913
|
{
|
|
1919
1914
|
hidden: true,
|
|
@@ -1934,21 +1929,21 @@ function InputFile(props) {
|
|
|
1934
1929
|
}
|
|
1935
1930
|
}
|
|
1936
1931
|
),
|
|
1937
|
-
!!props.label && /* @__PURE__ */ (
|
|
1932
|
+
!!props.label && /* @__PURE__ */ jsxs9(InputLabel, { children: [
|
|
1938
1933
|
props.label,
|
|
1939
1934
|
props.required ? "*" : ""
|
|
1940
1935
|
] }),
|
|
1941
|
-
/* @__PURE__ */ (
|
|
1942
|
-
!!props.error && /* @__PURE__ */ (
|
|
1936
|
+
/* @__PURE__ */ jsx15("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" }),
|
|
1937
|
+
!!props.error && /* @__PURE__ */ jsx15("div", { className: "iz-input-error", children: props.error })
|
|
1943
1938
|
] });
|
|
1944
1939
|
}
|
|
1945
1940
|
|
|
1946
1941
|
// components/types/form/types/input/index.tsx
|
|
1947
|
-
|
|
1942
|
+
import { useState as useState5 } from "react";
|
|
1948
1943
|
|
|
1949
1944
|
// components/types/form/types/input/styles.tsx
|
|
1950
|
-
|
|
1951
|
-
var Container13 =
|
|
1945
|
+
import styled16 from "styled-components";
|
|
1946
|
+
var Container13 = styled16.div`
|
|
1952
1947
|
width: 100%;
|
|
1953
1948
|
padding-top: .3rem;
|
|
1954
1949
|
|
|
@@ -1994,10 +1989,10 @@ var Container13 = import_styled_components17.default.div`
|
|
|
1994
1989
|
`;
|
|
1995
1990
|
|
|
1996
1991
|
// components/types/form/types/input/index.tsx
|
|
1997
|
-
|
|
1998
|
-
|
|
1992
|
+
import _10 from "lodash";
|
|
1993
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1999
1994
|
function InputText(props) {
|
|
2000
|
-
const [showPassword, setShowPassword] = (
|
|
1995
|
+
const [showPassword, setShowPassword] = useState5(false);
|
|
2001
1996
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
2002
1997
|
const onChange = (event) => {
|
|
2003
1998
|
const value = event.target.value || "";
|
|
@@ -2005,16 +2000,16 @@ function InputText(props) {
|
|
|
2005
2000
|
if (register.onChange) register.onChange(event);
|
|
2006
2001
|
if (props.onChange) props.onChange(value);
|
|
2007
2002
|
};
|
|
2008
|
-
return /* @__PURE__ */ (
|
|
2009
|
-
!!props.label && /* @__PURE__ */ (
|
|
2003
|
+
return /* @__PURE__ */ jsxs10(Container13, { className: props.className, error: props.error, password: props.type === "password", children: [
|
|
2004
|
+
!!props.label && /* @__PURE__ */ jsxs10(InputLabel, { children: [
|
|
2010
2005
|
props.label,
|
|
2011
2006
|
props.required ? "*" : ""
|
|
2012
2007
|
] }),
|
|
2013
|
-
/* @__PURE__ */ (
|
|
2014
|
-
/* @__PURE__ */ (
|
|
2008
|
+
/* @__PURE__ */ jsxs10("div", { className: "iz-input-content", children: [
|
|
2009
|
+
/* @__PURE__ */ jsx16(
|
|
2015
2010
|
"input",
|
|
2016
2011
|
{
|
|
2017
|
-
...
|
|
2012
|
+
..._10.omit(props, ["className", "register", "mask"]),
|
|
2018
2013
|
type: props.type === "password" ? showPassword ? "text" : "password" : props.type,
|
|
2019
2014
|
maxLength: props.maxLength || 255,
|
|
2020
2015
|
onFocus: () => {
|
|
@@ -2024,7 +2019,7 @@ function InputText(props) {
|
|
|
2024
2019
|
onChange
|
|
2025
2020
|
}
|
|
2026
2021
|
),
|
|
2027
|
-
props.type === "password" && /* @__PURE__ */ (
|
|
2022
|
+
props.type === "password" && /* @__PURE__ */ jsx16(
|
|
2028
2023
|
"i",
|
|
2029
2024
|
{
|
|
2030
2025
|
"aria-hidden": true,
|
|
@@ -2033,16 +2028,16 @@ function InputText(props) {
|
|
|
2033
2028
|
}
|
|
2034
2029
|
)
|
|
2035
2030
|
] }),
|
|
2036
|
-
!!props.error && /* @__PURE__ */ (
|
|
2031
|
+
!!props.error && /* @__PURE__ */ jsx16("div", { className: "iz-input-error", children: props.error })
|
|
2037
2032
|
] });
|
|
2038
2033
|
}
|
|
2039
2034
|
|
|
2040
2035
|
// components/types/form/types/select/index.tsx
|
|
2041
|
-
|
|
2036
|
+
import { useState as useState6 } from "react";
|
|
2042
2037
|
|
|
2043
2038
|
// components/types/form/types/select/styles.tsx
|
|
2044
|
-
|
|
2045
|
-
var Container14 =
|
|
2039
|
+
import styled17 from "styled-components";
|
|
2040
|
+
var Container14 = styled17.div`
|
|
2046
2041
|
width: 100%;
|
|
2047
2042
|
padding-top: .3rem;
|
|
2048
2043
|
|
|
@@ -2094,26 +2089,26 @@ var Container14 = import_styled_components18.default.div`
|
|
|
2094
2089
|
`;
|
|
2095
2090
|
|
|
2096
2091
|
// components/types/form/types/select/index.tsx
|
|
2097
|
-
|
|
2098
|
-
|
|
2092
|
+
import _11 from "lodash";
|
|
2093
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2099
2094
|
function InputSelect(props) {
|
|
2100
|
-
const [focus, setFocus] = (
|
|
2095
|
+
const [focus, setFocus] = useState6(false);
|
|
2101
2096
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
2102
2097
|
const onChange = (event) => {
|
|
2103
2098
|
const value = event.target.value || "";
|
|
2104
2099
|
if (register.onChange) register.onChange(event);
|
|
2105
2100
|
if (props.onChange) props.onChange(value);
|
|
2106
2101
|
};
|
|
2107
|
-
return /* @__PURE__ */ (
|
|
2108
|
-
!!props.label && /* @__PURE__ */ (
|
|
2102
|
+
return /* @__PURE__ */ jsxs11(Container14, { className: props.className, error: props.error, children: [
|
|
2103
|
+
!!props.label && /* @__PURE__ */ jsxs11(InputLabel, { children: [
|
|
2109
2104
|
props.label,
|
|
2110
2105
|
props.required ? "*" : ""
|
|
2111
2106
|
] }),
|
|
2112
|
-
/* @__PURE__ */ (
|
|
2113
|
-
/* @__PURE__ */ (
|
|
2107
|
+
/* @__PURE__ */ jsxs11("div", { className: "iz-input-content", children: [
|
|
2108
|
+
/* @__PURE__ */ jsx17(
|
|
2114
2109
|
"select",
|
|
2115
2110
|
{
|
|
2116
|
-
...
|
|
2111
|
+
..._11.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
|
|
2117
2112
|
onMouseDown: () => setFocus(!focus),
|
|
2118
2113
|
onFocus: () => {
|
|
2119
2114
|
if (props.onFocus) props.onFocus(props.name);
|
|
@@ -2124,9 +2119,9 @@ function InputSelect(props) {
|
|
|
2124
2119
|
setFocus(false);
|
|
2125
2120
|
},
|
|
2126
2121
|
onChange,
|
|
2127
|
-
children:
|
|
2122
|
+
children: _11.map(
|
|
2128
2123
|
props.options,
|
|
2129
|
-
(data, index) => /* @__PURE__ */ (
|
|
2124
|
+
(data, index) => /* @__PURE__ */ jsx17(
|
|
2130
2125
|
"option",
|
|
2131
2126
|
{
|
|
2132
2127
|
value: Object.keys(data),
|
|
@@ -2137,15 +2132,15 @@ function InputSelect(props) {
|
|
|
2137
2132
|
)
|
|
2138
2133
|
}
|
|
2139
2134
|
),
|
|
2140
|
-
/* @__PURE__ */ (
|
|
2135
|
+
/* @__PURE__ */ jsx17("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
|
|
2141
2136
|
] }),
|
|
2142
|
-
!!props.error && /* @__PURE__ */ (
|
|
2137
|
+
!!props.error && /* @__PURE__ */ jsx17("div", { className: "iz-input-error", children: props.error })
|
|
2143
2138
|
] });
|
|
2144
2139
|
}
|
|
2145
2140
|
|
|
2146
2141
|
// components/types/form/types/button/styles.tsx
|
|
2147
|
-
|
|
2148
|
-
var Container15 =
|
|
2142
|
+
import styled18 from "styled-components";
|
|
2143
|
+
var Container15 = styled18.button`
|
|
2149
2144
|
border-radius: 5px;
|
|
2150
2145
|
font-size: .8rem;
|
|
2151
2146
|
font-weight: 500;
|
|
@@ -2186,8 +2181,8 @@ var Container15 = import_styled_components19.default.button`
|
|
|
2186
2181
|
`;
|
|
2187
2182
|
|
|
2188
2183
|
// components/types/form/types/button/loading/styles.tsx
|
|
2189
|
-
|
|
2190
|
-
var Container16 =
|
|
2184
|
+
import styled19 from "styled-components";
|
|
2185
|
+
var Container16 = styled19.div`
|
|
2191
2186
|
display: flex;
|
|
2192
2187
|
justify-content: space-between;
|
|
2193
2188
|
align-items: center;
|
|
@@ -2275,37 +2270,37 @@ var Container16 = import_styled_components20.default.div`
|
|
|
2275
2270
|
`;
|
|
2276
2271
|
|
|
2277
2272
|
// components/types/form/types/button/loading/index.tsx
|
|
2278
|
-
|
|
2273
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2279
2274
|
function Loading() {
|
|
2280
|
-
return /* @__PURE__ */ (
|
|
2281
|
-
/* @__PURE__ */ (
|
|
2282
|
-
/* @__PURE__ */ (
|
|
2283
|
-
/* @__PURE__ */ (
|
|
2275
|
+
return /* @__PURE__ */ jsxs12(Container16, { children: [
|
|
2276
|
+
/* @__PURE__ */ jsx18("div", {}),
|
|
2277
|
+
/* @__PURE__ */ jsx18("div", {}),
|
|
2278
|
+
/* @__PURE__ */ jsx18("div", {})
|
|
2284
2279
|
] });
|
|
2285
2280
|
}
|
|
2286
2281
|
|
|
2287
2282
|
// components/types/form/types/button/index.tsx
|
|
2288
|
-
|
|
2289
|
-
|
|
2283
|
+
import _12 from "lodash";
|
|
2284
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2290
2285
|
function Button(props) {
|
|
2291
|
-
return /* @__PURE__ */ (
|
|
2286
|
+
return /* @__PURE__ */ jsxs13(
|
|
2292
2287
|
Container15,
|
|
2293
2288
|
{
|
|
2294
2289
|
loading: String(!!props.loading),
|
|
2295
2290
|
disabled: props.disabled,
|
|
2296
2291
|
type: props.type || "button",
|
|
2297
|
-
...
|
|
2292
|
+
..._12.omit(props, ["loading", "type"]),
|
|
2298
2293
|
children: [
|
|
2299
|
-
!!props.loading && /* @__PURE__ */ (
|
|
2300
|
-
/* @__PURE__ */ (
|
|
2294
|
+
!!props.loading && /* @__PURE__ */ jsx19(Loading, {}),
|
|
2295
|
+
/* @__PURE__ */ jsx19("span", { children: props.label })
|
|
2301
2296
|
]
|
|
2302
2297
|
}
|
|
2303
2298
|
);
|
|
2304
2299
|
}
|
|
2305
2300
|
|
|
2306
2301
|
// components/types/form/types/datetime/styles.tsx
|
|
2307
|
-
|
|
2308
|
-
var Container17 =
|
|
2302
|
+
import styled20 from "styled-components";
|
|
2303
|
+
var Container17 = styled20.div`
|
|
2309
2304
|
width: 100%;
|
|
2310
2305
|
padding-top: .3rem;
|
|
2311
2306
|
|
|
@@ -2345,8 +2340,8 @@ var Container17 = import_styled_components21.default.div`
|
|
|
2345
2340
|
`;
|
|
2346
2341
|
|
|
2347
2342
|
// components/types/form/types/datetime/index.tsx
|
|
2348
|
-
|
|
2349
|
-
|
|
2343
|
+
import _13 from "lodash";
|
|
2344
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2350
2345
|
function InputDateTime(props) {
|
|
2351
2346
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
2352
2347
|
const onChange = (event) => {
|
|
@@ -2355,15 +2350,15 @@ function InputDateTime(props) {
|
|
|
2355
2350
|
if (register.onChange) register.onChange(event);
|
|
2356
2351
|
if (props.onChange) props.onChange(event);
|
|
2357
2352
|
};
|
|
2358
|
-
return /* @__PURE__ */ (
|
|
2359
|
-
!!props.label && /* @__PURE__ */ (
|
|
2353
|
+
return /* @__PURE__ */ jsxs14(Container17, { className: props.className, error: props.error, children: [
|
|
2354
|
+
!!props.label && /* @__PURE__ */ jsxs14(InputLabel, { children: [
|
|
2360
2355
|
props.label,
|
|
2361
2356
|
props.required ? "*" : ""
|
|
2362
2357
|
] }),
|
|
2363
|
-
/* @__PURE__ */ (
|
|
2358
|
+
/* @__PURE__ */ jsx20("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx20(
|
|
2364
2359
|
"input",
|
|
2365
2360
|
{
|
|
2366
|
-
...
|
|
2361
|
+
..._13.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
|
|
2367
2362
|
type: "datetime-local",
|
|
2368
2363
|
onFocus: () => {
|
|
2369
2364
|
if (props.onFocus) props.onFocus(props.name);
|
|
@@ -2373,13 +2368,13 @@ function InputDateTime(props) {
|
|
|
2373
2368
|
onChange
|
|
2374
2369
|
}
|
|
2375
2370
|
) }),
|
|
2376
|
-
!!props.error && /* @__PURE__ */ (
|
|
2371
|
+
!!props.error && /* @__PURE__ */ jsx20("div", { className: "iz-input-error", children: props.error })
|
|
2377
2372
|
] });
|
|
2378
2373
|
}
|
|
2379
2374
|
|
|
2380
2375
|
// components/types/form/types/textarea/styles.tsx
|
|
2381
|
-
|
|
2382
|
-
var Container18 =
|
|
2376
|
+
import styled21 from "styled-components";
|
|
2377
|
+
var Container18 = styled21.div`
|
|
2383
2378
|
width: 100%;
|
|
2384
2379
|
padding-top: .3rem;
|
|
2385
2380
|
|
|
@@ -2418,8 +2413,8 @@ var Container18 = import_styled_components22.default.div`
|
|
|
2418
2413
|
`;
|
|
2419
2414
|
|
|
2420
2415
|
// components/types/form/types/textarea/index.tsx
|
|
2421
|
-
|
|
2422
|
-
|
|
2416
|
+
import _14 from "lodash";
|
|
2417
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2423
2418
|
function InputTextarea(props) {
|
|
2424
2419
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
2425
2420
|
const onChange = (event) => {
|
|
@@ -2428,15 +2423,15 @@ function InputTextarea(props) {
|
|
|
2428
2423
|
if (register.onChange) register.onChange(event);
|
|
2429
2424
|
if (props.onChange) props.onChange(value);
|
|
2430
2425
|
};
|
|
2431
|
-
return /* @__PURE__ */ (
|
|
2432
|
-
!!props.label && /* @__PURE__ */ (
|
|
2426
|
+
return /* @__PURE__ */ jsxs15(Container18, { className: props.className, error: props.error, children: [
|
|
2427
|
+
!!props.label && /* @__PURE__ */ jsxs15(InputLabel, { children: [
|
|
2433
2428
|
props.label,
|
|
2434
2429
|
props.required ? "*" : ""
|
|
2435
2430
|
] }),
|
|
2436
|
-
/* @__PURE__ */ (
|
|
2431
|
+
/* @__PURE__ */ jsx21("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx21(
|
|
2437
2432
|
"textarea",
|
|
2438
2433
|
{
|
|
2439
|
-
...
|
|
2434
|
+
..._14.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
|
|
2440
2435
|
maxLength: props.maxLength,
|
|
2441
2436
|
rows: props.rows || 5,
|
|
2442
2437
|
onFocus: () => {
|
|
@@ -2446,22 +2441,22 @@ function InputTextarea(props) {
|
|
|
2446
2441
|
onChange
|
|
2447
2442
|
}
|
|
2448
2443
|
) }),
|
|
2449
|
-
!!props.error && /* @__PURE__ */ (
|
|
2444
|
+
!!props.error && /* @__PURE__ */ jsx21("div", { className: "iz-input-error", children: props.error })
|
|
2450
2445
|
] });
|
|
2451
2446
|
}
|
|
2452
2447
|
|
|
2453
2448
|
// components/types/form/index.tsx
|
|
2454
|
-
|
|
2449
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2455
2450
|
function Form(props) {
|
|
2456
|
-
const formRef = props.formRef || (
|
|
2451
|
+
const formRef = props.formRef || useRef2({});
|
|
2457
2452
|
const setSchema = () => {
|
|
2458
2453
|
const schema2 = {};
|
|
2459
|
-
|
|
2454
|
+
_15.forEach(props.inputs, (data) => {
|
|
2460
2455
|
if (!data.validation) return;
|
|
2461
2456
|
schema2[data.name] = data.validation;
|
|
2462
2457
|
});
|
|
2463
|
-
if (props.validation) return props.validation(
|
|
2464
|
-
return
|
|
2458
|
+
if (props.validation) return props.validation(z.object(schema2));
|
|
2459
|
+
return z.object(schema2);
|
|
2465
2460
|
};
|
|
2466
2461
|
const schema = setSchema();
|
|
2467
2462
|
const {
|
|
@@ -2469,32 +2464,32 @@ function Form(props) {
|
|
|
2469
2464
|
handleSubmit,
|
|
2470
2465
|
reset,
|
|
2471
2466
|
formState: { errors }
|
|
2472
|
-
} =
|
|
2473
|
-
resolver:
|
|
2467
|
+
} = useForm({
|
|
2468
|
+
resolver: zodResolver(schema),
|
|
2474
2469
|
defaultValues: props.defaultValues,
|
|
2475
2470
|
mode: "all"
|
|
2476
2471
|
});
|
|
2477
|
-
(
|
|
2472
|
+
useEffect6(() => {
|
|
2478
2473
|
if (!props.clearWhen) return;
|
|
2479
2474
|
reset(void 0, { keepErrors: false });
|
|
2480
2475
|
}, [props.clearWhen]);
|
|
2481
|
-
(
|
|
2476
|
+
useEffect6(() => {
|
|
2482
2477
|
var _a;
|
|
2483
2478
|
if (!props.defaultValues || !((_a = Object.keys(props.defaultValues || {})) == null ? void 0 : _a.length)) return;
|
|
2484
|
-
|
|
2485
|
-
const input =
|
|
2479
|
+
_15.forEach(props.defaultValues, (value, key) => {
|
|
2480
|
+
const input = _15.find(props.inputs, (data) => data.name === key);
|
|
2486
2481
|
props.defaultValues[key] = input.mask ? input.mask(value) : value;
|
|
2487
2482
|
});
|
|
2488
2483
|
reset(props.defaultValues, { keepErrors: false });
|
|
2489
2484
|
}, [props.defaultValues]);
|
|
2490
2485
|
const component = (data) => {
|
|
2491
2486
|
var _a;
|
|
2492
|
-
const component2 =
|
|
2487
|
+
const component2 = types_exports2[_15.camelCase(data.type)];
|
|
2493
2488
|
const TypeComponent = component2 || InputText;
|
|
2494
|
-
return /* @__PURE__ */ (
|
|
2489
|
+
return /* @__PURE__ */ jsx22(
|
|
2495
2490
|
TypeComponent,
|
|
2496
2491
|
{
|
|
2497
|
-
...
|
|
2492
|
+
..._15.omit(data, ["validation"]),
|
|
2498
2493
|
id: data.name,
|
|
2499
2494
|
type: component2 ? void 0 : data.type,
|
|
2500
2495
|
error: (_a = errors[data.name]) == null ? void 0 : _a.message,
|
|
@@ -2502,38 +2497,38 @@ function Form(props) {
|
|
|
2502
2497
|
}
|
|
2503
2498
|
);
|
|
2504
2499
|
};
|
|
2505
|
-
return /* @__PURE__ */ (
|
|
2506
|
-
|
|
2500
|
+
return /* @__PURE__ */ jsxs16(Container10, { ref: formRef, onSubmit: handleSubmit(props.onSubmit), children: [
|
|
2501
|
+
_15.map(
|
|
2507
2502
|
props.inputs,
|
|
2508
|
-
(data, index) => /* @__PURE__ */ (
|
|
2503
|
+
(data, index) => /* @__PURE__ */ jsx22(React10.Fragment, { children: component(data) }, index)
|
|
2509
2504
|
),
|
|
2510
|
-
|
|
2505
|
+
_15.isArray(props.buttons) && /* @__PURE__ */ jsx22("div", { className: "form-buttons", children: _15.map(
|
|
2511
2506
|
props.buttons,
|
|
2512
|
-
(data, index) => /* @__PURE__ */ (
|
|
2507
|
+
(data, index) => /* @__PURE__ */ jsx22(Button, { ...data }, index)
|
|
2513
2508
|
) })
|
|
2514
2509
|
] });
|
|
2515
2510
|
}
|
|
2516
2511
|
|
|
2517
2512
|
// components/types/chart/styles.tsx
|
|
2518
|
-
|
|
2519
|
-
var Container19 =
|
|
2513
|
+
import styled22 from "styled-components";
|
|
2514
|
+
var Container19 = styled22.div`
|
|
2520
2515
|
|
|
2521
2516
|
`;
|
|
2522
2517
|
|
|
2523
2518
|
// components/types/chart/index.tsx
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
var ApexChart = (
|
|
2519
|
+
import dynamic from "next/dynamic";
|
|
2520
|
+
import _16 from "lodash";
|
|
2521
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2522
|
+
var ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
|
|
2528
2523
|
function Chart(props) {
|
|
2529
2524
|
const { content: themeContent } = useTheme();
|
|
2530
2525
|
const monitor = props.content || [];
|
|
2531
|
-
const series =
|
|
2526
|
+
const series = _16.map(props.yAxis, (value, key) => ({
|
|
2532
2527
|
name: key || "",
|
|
2533
|
-
data:
|
|
2528
|
+
data: _16.map(monitor, (data) => _16.isFunction(value) ? value(data) : 0)
|
|
2534
2529
|
}));
|
|
2535
2530
|
const options = {
|
|
2536
|
-
colors:
|
|
2531
|
+
colors: _16.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
|
|
2537
2532
|
dataLabels: { enabled: false },
|
|
2538
2533
|
stroke: { curve: "smooth", width: 2 },
|
|
2539
2534
|
fill: { gradient: { opacityFrom: 0.9, opacityTo: 0.8 } },
|
|
@@ -2542,14 +2537,14 @@ function Chart(props) {
|
|
|
2542
2537
|
yaxis: {
|
|
2543
2538
|
min: props.min,
|
|
2544
2539
|
max: props.max,
|
|
2545
|
-
labels: { style: { colors:
|
|
2540
|
+
labels: { style: { colors: _16.map(monitor, () => themeContent.t6) } }
|
|
2546
2541
|
},
|
|
2547
2542
|
xaxis: {
|
|
2548
|
-
categories:
|
|
2549
|
-
labels: { style: { colors:
|
|
2543
|
+
categories: _16.map(monitor, (data) => _16.isFunction(props.xAxis) ? props.xAxis(data) : ""),
|
|
2544
|
+
labels: { style: { colors: _16.map(monitor, () => themeContent.t6) } }
|
|
2550
2545
|
}
|
|
2551
2546
|
};
|
|
2552
|
-
return /* @__PURE__ */ (
|
|
2547
|
+
return /* @__PURE__ */ jsx23(Container19, { children: /* @__PURE__ */ jsx23(
|
|
2553
2548
|
ApexChart,
|
|
2554
2549
|
{
|
|
2555
2550
|
options,
|
|
@@ -2562,11 +2557,11 @@ function Chart(props) {
|
|
|
2562
2557
|
}
|
|
2563
2558
|
|
|
2564
2559
|
// components/types/avatar/index.tsx
|
|
2565
|
-
|
|
2560
|
+
import { useRef as useRef3, useState as useState7 } from "react";
|
|
2566
2561
|
|
|
2567
2562
|
// components/types/avatar/styles.tsx
|
|
2568
|
-
|
|
2569
|
-
var Container20 =
|
|
2563
|
+
import styled23 from "styled-components";
|
|
2564
|
+
var Container20 = styled23.div`
|
|
2570
2565
|
width: ${({ size }) => size || "2.3rem"};
|
|
2571
2566
|
height: ${({ size }) => size || "2.3rem"};
|
|
2572
2567
|
border-radius: ${({ size }) => size || "2.3rem"};
|
|
@@ -2621,32 +2616,32 @@ var Container20 = import_styled_components24.default.div`
|
|
|
2621
2616
|
`;
|
|
2622
2617
|
|
|
2623
2618
|
// components/types/avatar/index.tsx
|
|
2624
|
-
|
|
2625
|
-
|
|
2619
|
+
import _17 from "lodash";
|
|
2620
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2626
2621
|
function Avatar(props) {
|
|
2627
|
-
const containerRef = (
|
|
2628
|
-
const [color, setColor] = (
|
|
2622
|
+
const containerRef = useRef3({});
|
|
2623
|
+
const [color, setColor] = useState7("");
|
|
2629
2624
|
const name = () => {
|
|
2630
|
-
const [first, secound] =
|
|
2625
|
+
const [first, secound] = _17.split(props.name, " ") || [];
|
|
2631
2626
|
if (first && secound) return `${first} ${secound}`;
|
|
2632
2627
|
if (first) return first;
|
|
2633
2628
|
return "IZ";
|
|
2634
2629
|
};
|
|
2635
|
-
return /* @__PURE__ */ (
|
|
2630
|
+
return /* @__PURE__ */ jsx24(
|
|
2636
2631
|
Container20,
|
|
2637
2632
|
{
|
|
2638
2633
|
ref: containerRef,
|
|
2639
2634
|
color,
|
|
2640
2635
|
width: containerRef.current.offsetWidth,
|
|
2641
2636
|
...props,
|
|
2642
|
-
children: /* @__PURE__ */ (
|
|
2637
|
+
children: /* @__PURE__ */ jsx24("span", { children: _17.upperCase(name()) })
|
|
2643
2638
|
}
|
|
2644
2639
|
);
|
|
2645
2640
|
}
|
|
2646
2641
|
|
|
2647
2642
|
// components/types/lottie/styles.tsx
|
|
2648
|
-
|
|
2649
|
-
var Container21 =
|
|
2643
|
+
import styled24 from "styled-components";
|
|
2644
|
+
var Container21 = styled24.div`
|
|
2650
2645
|
display: flex;
|
|
2651
2646
|
align-items: center;
|
|
2652
2647
|
justify-content: center;
|
|
@@ -2668,7 +2663,7 @@ var Container21 = import_styled_components25.default.div`
|
|
|
2668
2663
|
`;
|
|
2669
2664
|
|
|
2670
2665
|
// components/types/lottie/index.tsx
|
|
2671
|
-
|
|
2666
|
+
import LottieReact from "react-lottie";
|
|
2672
2667
|
|
|
2673
2668
|
// components/types/lottie/animations/loader.json
|
|
2674
2669
|
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: [] };
|
|
@@ -2677,8 +2672,8 @@ var loader_default = { v: "4.8.0", meta: { g: "LottieFiles AE 3.4.5", a: "", k:
|
|
|
2677
2672
|
var animations_default = { loader: loader_default };
|
|
2678
2673
|
|
|
2679
2674
|
// components/types/lottie/index.tsx
|
|
2680
|
-
|
|
2681
|
-
var LottieComponent =
|
|
2675
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2676
|
+
var LottieComponent = LottieReact;
|
|
2682
2677
|
function Lottie(props) {
|
|
2683
2678
|
const getAnimation = () => {
|
|
2684
2679
|
let animation;
|
|
@@ -2698,7 +2693,7 @@ function Lottie(props) {
|
|
|
2698
2693
|
path: props.src,
|
|
2699
2694
|
animationData: getAnimation()
|
|
2700
2695
|
};
|
|
2701
|
-
return /* @__PURE__ */ (
|
|
2696
|
+
return /* @__PURE__ */ jsx25(Container21, { ...props, children: /* @__PURE__ */ jsx25(
|
|
2702
2697
|
LottieComponent,
|
|
2703
2698
|
{
|
|
2704
2699
|
width: props.size || 180,
|
|
@@ -2709,8 +2704,8 @@ function Lottie(props) {
|
|
|
2709
2704
|
}
|
|
2710
2705
|
|
|
2711
2706
|
// components/types/credit-card/styles.tsx
|
|
2712
|
-
|
|
2713
|
-
var Container22 =
|
|
2707
|
+
import styled25 from "styled-components";
|
|
2708
|
+
var Container22 = styled25.div`
|
|
2714
2709
|
border-radius: 8px 8px 0 0;
|
|
2715
2710
|
transition: .2s ease .2s background, .2s ease .2s padding;
|
|
2716
2711
|
position: relative;
|
|
@@ -2744,11 +2739,11 @@ var Container22 = import_styled_components26.default.div`
|
|
|
2744
2739
|
`;
|
|
2745
2740
|
|
|
2746
2741
|
// components/types/credit-card/card/index.tsx
|
|
2747
|
-
|
|
2742
|
+
import { useEffect as useEffect8, useRef as useRef4 } from "react";
|
|
2748
2743
|
|
|
2749
2744
|
// components/types/credit-card/card/styles.tsx
|
|
2750
|
-
|
|
2751
|
-
var Container23 =
|
|
2745
|
+
import styled26 from "styled-components";
|
|
2746
|
+
var Container23 = styled26.div`
|
|
2752
2747
|
height: 11rem;
|
|
2753
2748
|
width: 20rem;
|
|
2754
2749
|
border-radius: 8px;
|
|
@@ -2903,7 +2898,7 @@ var assets_default2 = assets;
|
|
|
2903
2898
|
|
|
2904
2899
|
// components/types/credit-card/tools/index.tsx
|
|
2905
2900
|
var import_luhn = __toESM(require_luhn());
|
|
2906
|
-
|
|
2901
|
+
import _18 from "lodash";
|
|
2907
2902
|
var validateLuhn = import_luhn.default.validate;
|
|
2908
2903
|
var getCardContent = (cardNumber) => {
|
|
2909
2904
|
const content = { flag: "", logo: "" };
|
|
@@ -2913,19 +2908,19 @@ var getCardContent = (cardNumber) => {
|
|
|
2913
2908
|
const cardContent = potentialCardContents.shift();
|
|
2914
2909
|
const flag = cardContent == null ? void 0 : cardContent.type;
|
|
2915
2910
|
content.flag = flag || "";
|
|
2916
|
-
content.logo = assets_default2[
|
|
2911
|
+
content.logo = assets_default2[_18.upperFirst(_18.camelCase(flag))] || "";
|
|
2917
2912
|
return content;
|
|
2918
2913
|
}
|
|
2919
2914
|
return content;
|
|
2920
2915
|
};
|
|
2921
2916
|
|
|
2922
2917
|
// components/types/credit-card/card/index.tsx
|
|
2923
|
-
|
|
2924
|
-
|
|
2918
|
+
import _19 from "lodash";
|
|
2919
|
+
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2925
2920
|
function CreditCardComponent(props) {
|
|
2926
2921
|
var _a;
|
|
2927
|
-
const flagRef = (
|
|
2928
|
-
(
|
|
2922
|
+
const flagRef = useRef4({});
|
|
2923
|
+
useEffect8(() => {
|
|
2929
2924
|
const content = getCardContent(props.number);
|
|
2930
2925
|
if (!flagRef.current) return;
|
|
2931
2926
|
if (!content.logo) {
|
|
@@ -2934,24 +2929,24 @@ function CreditCardComponent(props) {
|
|
|
2934
2929
|
}
|
|
2935
2930
|
flagRef.current.style.backgroundImage = `url(${content.logo})`;
|
|
2936
2931
|
}, [flagRef, props.number]);
|
|
2937
|
-
return /* @__PURE__ */ (
|
|
2938
|
-
/* @__PURE__ */ (
|
|
2939
|
-
/* @__PURE__ */ (
|
|
2940
|
-
/* @__PURE__ */ (
|
|
2941
|
-
/* @__PURE__ */ (
|
|
2942
|
-
/* @__PURE__ */ (
|
|
2932
|
+
return /* @__PURE__ */ jsxs17(Container23, { children: [
|
|
2933
|
+
/* @__PURE__ */ jsxs17("div", { className: "iz-credit-card-left", children: [
|
|
2934
|
+
/* @__PURE__ */ jsx26("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ jsx26("div", { id: "iz-credit-card-chip", style: { backgroundImage: `url(${assets_default2.Chip})` } }) }),
|
|
2935
|
+
/* @__PURE__ */ jsxs17("div", { className: "iz-credit-card-bottom", children: [
|
|
2936
|
+
/* @__PURE__ */ jsx26("div", { className: "iz-credit-card-number", children: /* @__PURE__ */ jsx26("div", { className: "iz-credit-card-elipse" }) }),
|
|
2937
|
+
/* @__PURE__ */ jsx26("div", { className: "iz-credit-card-name", children: /* @__PURE__ */ jsx26("div", { className: "iz-credit-card-elipse", children: _19.deburr((_a = props.name) == null ? void 0 : _a.replace(/[^A-Za-zÀ-ÿ\s]/g, "").toUpperCase()) || "Nome do Titular" }) })
|
|
2943
2938
|
] })
|
|
2944
2939
|
] }),
|
|
2945
|
-
/* @__PURE__ */ (
|
|
2946
|
-
/* @__PURE__ */ (
|
|
2947
|
-
/* @__PURE__ */ (
|
|
2940
|
+
/* @__PURE__ */ jsxs17("div", { className: "iz-credit-card-right", children: [
|
|
2941
|
+
/* @__PURE__ */ jsx26("div", { className: "iz-credit-card-top", children: /* @__PURE__ */ jsx26("div", { id: "iz-credit-card-flag", ref: flagRef }) }),
|
|
2942
|
+
/* @__PURE__ */ jsx26("div", { className: "iz-credit-card-bottom", children: /* @__PURE__ */ jsx26("span", { children: "validade" }) })
|
|
2948
2943
|
] })
|
|
2949
2944
|
] });
|
|
2950
2945
|
}
|
|
2951
2946
|
|
|
2952
2947
|
// components/types/credit-card/functions/styles.tsx
|
|
2953
|
-
|
|
2954
|
-
var Container24 =
|
|
2948
|
+
import styled27 from "styled-components";
|
|
2949
|
+
var Container24 = styled27.div`
|
|
2955
2950
|
display: flex;
|
|
2956
2951
|
flex-direction: column;
|
|
2957
2952
|
gap: .5rem;
|
|
@@ -2988,17 +2983,17 @@ var Container24 = import_styled_components28.default.div`
|
|
|
2988
2983
|
`;
|
|
2989
2984
|
|
|
2990
2985
|
// components/types/credit-card/functions/index.tsx
|
|
2991
|
-
|
|
2992
|
-
|
|
2986
|
+
import _20 from "lodash";
|
|
2987
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2993
2988
|
function CreditCardFunctions(props) {
|
|
2994
|
-
return
|
|
2989
|
+
return _20.some(props.functions, (data) => !data.hide) && /* @__PURE__ */ jsx27(Container24, { className: "iz-credit-card-function-container", children: _20.map(
|
|
2995
2990
|
props.functions,
|
|
2996
|
-
(data, index) => !data.hide && /* @__PURE__ */ (
|
|
2991
|
+
(data, index) => !data.hide && /* @__PURE__ */ jsx27(
|
|
2997
2992
|
"div",
|
|
2998
2993
|
{
|
|
2999
2994
|
className: "iz-credit-card-function",
|
|
3000
2995
|
onClick: data.function,
|
|
3001
|
-
children: /* @__PURE__ */ (
|
|
2996
|
+
children: /* @__PURE__ */ jsx27("i", { "aria-hidden": true, className: data.icon })
|
|
3002
2997
|
},
|
|
3003
2998
|
index
|
|
3004
2999
|
)
|
|
@@ -3006,7 +3001,7 @@ function CreditCardFunctions(props) {
|
|
|
3006
3001
|
}
|
|
3007
3002
|
|
|
3008
3003
|
// components/types/credit-card/index.tsx
|
|
3009
|
-
|
|
3004
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3010
3005
|
function CreditCard(props) {
|
|
3011
3006
|
const functions = [
|
|
3012
3007
|
{
|
|
@@ -3029,15 +3024,15 @@ function CreditCard(props) {
|
|
|
3029
3024
|
},
|
|
3030
3025
|
...props.functions || []
|
|
3031
3026
|
];
|
|
3032
|
-
return /* @__PURE__ */ (
|
|
3033
|
-
/* @__PURE__ */ (
|
|
3034
|
-
/* @__PURE__ */ (
|
|
3027
|
+
return /* @__PURE__ */ jsxs18(Container22, { children: [
|
|
3028
|
+
/* @__PURE__ */ jsx28(CreditCardComponent, { ...props }),
|
|
3029
|
+
/* @__PURE__ */ jsx28(CreditCardFunctions, { ...props, functions })
|
|
3035
3030
|
] });
|
|
3036
3031
|
}
|
|
3037
3032
|
|
|
3038
3033
|
// components/types/block/styles.tsx
|
|
3039
|
-
|
|
3040
|
-
var Container25 =
|
|
3034
|
+
import styled28 from "styled-components";
|
|
3035
|
+
var Container25 = styled28.div`
|
|
3041
3036
|
display: flex;
|
|
3042
3037
|
flex-direction: column;
|
|
3043
3038
|
gap: 1rem;
|
|
@@ -3055,53 +3050,32 @@ var Container25 = import_styled_components29.default.div`
|
|
|
3055
3050
|
color: ${({ theme }) => theme.t6};
|
|
3056
3051
|
}
|
|
3057
3052
|
`;
|
|
3058
|
-
var Content2 =
|
|
3053
|
+
var Content2 = styled28.div`
|
|
3059
3054
|
font-size: 1.5rem;
|
|
3060
3055
|
font-weight: 500;
|
|
3061
3056
|
color: ${({ theme }) => theme.t7};
|
|
3062
3057
|
`;
|
|
3063
3058
|
|
|
3064
3059
|
// components/types/block/index.tsx
|
|
3065
|
-
|
|
3060
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3066
3061
|
function Block(props) {
|
|
3067
|
-
return /* @__PURE__ */ (
|
|
3068
|
-
(!!props.icon || !!props.label) && /* @__PURE__ */ (
|
|
3069
|
-
!!props.icon && /* @__PURE__ */ (
|
|
3070
|
-
!!props.label && /* @__PURE__ */ (
|
|
3062
|
+
return /* @__PURE__ */ jsxs19(Container25, { children: [
|
|
3063
|
+
(!!props.icon || !!props.label) && /* @__PURE__ */ jsxs19("header", { children: [
|
|
3064
|
+
!!props.icon && /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: props.icon }),
|
|
3065
|
+
!!props.label && /* @__PURE__ */ jsx29("span", { children: props.label })
|
|
3071
3066
|
] }),
|
|
3072
|
-
/* @__PURE__ */ (
|
|
3073
|
-
!!props.component && /* @__PURE__ */ (
|
|
3067
|
+
/* @__PURE__ */ jsxs19(Content2, { children: [
|
|
3068
|
+
!!props.component && /* @__PURE__ */ jsx29(Component, { content: props.component }),
|
|
3074
3069
|
props.children
|
|
3075
3070
|
] })
|
|
3076
3071
|
] });
|
|
3077
3072
|
}
|
|
3078
|
-
|
|
3079
|
-
// components/index.tsx
|
|
3080
|
-
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3081
|
-
function Component(props) {
|
|
3082
|
-
const renderComponent = (config) => {
|
|
3083
|
-
const ComponentElement = types_exports2[config.type];
|
|
3084
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ComponentElement, { ...config.props });
|
|
3085
|
-
};
|
|
3086
|
-
const renderRow = (components) => {
|
|
3087
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(RowContainer, { children: import_lodash20.default.map(
|
|
3088
|
-
components,
|
|
3089
|
-
(data, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react12.Fragment, { children: renderComponent(data) }, index)
|
|
3090
|
-
) });
|
|
3091
|
-
};
|
|
3092
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Container, { className: props.className, children: import_lodash20.default.map(
|
|
3093
|
-
props.content,
|
|
3094
|
-
(data, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react12.Fragment, { children: import_lodash20.default.isArray(data) ? renderRow(data) : renderComponent(data) }, index)
|
|
3095
|
-
) });
|
|
3096
|
-
}
|
|
3097
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
3098
|
-
0 && (module.exports = {
|
|
3073
|
+
export {
|
|
3099
3074
|
Avatar,
|
|
3100
3075
|
Badge,
|
|
3101
3076
|
Block,
|
|
3102
3077
|
Button,
|
|
3103
3078
|
Chart,
|
|
3104
|
-
Component,
|
|
3105
3079
|
CreditCard,
|
|
3106
3080
|
Form,
|
|
3107
3081
|
InputDateTime,
|
|
@@ -3114,7 +3088,7 @@ function Component(props) {
|
|
|
3114
3088
|
LoadingBar,
|
|
3115
3089
|
Logo,
|
|
3116
3090
|
Lottie,
|
|
3117
|
-
Modal,
|
|
3091
|
+
Modal2 as Modal,
|
|
3118
3092
|
Paginate,
|
|
3119
3093
|
Table
|
|
3120
|
-
}
|
|
3094
|
+
};
|