galliard-ui 1.0.0

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/index.js ADDED
@@ -0,0 +1,2161 @@
1
+ import { jsxs as N, jsx as f, Fragment as rn } from "react/jsx-runtime";
2
+ import { forwardRef as Q, useState as B, useEffect as le, createElement as be, useMemo as re, useId as $e, useRef as Re } from "react";
3
+ function cn(e, t) {
4
+ const o = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
5
+ function i(c) {
6
+ if (o[c]) return n[c] = [];
7
+ if (!(c in n)) {
8
+ n[c] = null;
9
+ const s = r[c] && r[c].parent, a = s && i(s);
10
+ a && (n[c] = [s].concat(a));
11
+ }
12
+ return n[c];
13
+ }
14
+ return Object.keys(o).concat(Object.keys(r)).forEach(i), n;
15
+ }
16
+ const ze = Object.freeze({
17
+ left: 0,
18
+ top: 0,
19
+ width: 16,
20
+ height: 16
21
+ }), ue = Object.freeze({
22
+ rotate: 0,
23
+ vFlip: !1,
24
+ hFlip: !1
25
+ }), Te = Object.freeze({
26
+ ...ze,
27
+ ...ue
28
+ }), xe = Object.freeze({
29
+ ...Te,
30
+ body: "",
31
+ hidden: !1
32
+ });
33
+ function sn(e, t) {
34
+ const o = {};
35
+ !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
36
+ const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
37
+ return r && (o.rotate = r), o;
38
+ }
39
+ function Ce(e, t) {
40
+ const o = sn(e, t);
41
+ for (const r in xe) r in ue ? r in e && !(r in o) && (o[r] = ue[r]) : r in t ? o[r] = t[r] : r in e && (o[r] = e[r]);
42
+ return o;
43
+ }
44
+ function an(e, t, o) {
45
+ const r = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null);
46
+ let i = {};
47
+ function c(s) {
48
+ i = Ce(r[s] || n[s], i);
49
+ }
50
+ return c(t), o.forEach(c), Ce(e, i);
51
+ }
52
+ function Ge(e, t) {
53
+ const o = [];
54
+ if (typeof e != "object" || typeof e.icons != "object") return o;
55
+ e.not_found instanceof Array && e.not_found.forEach((n) => {
56
+ t(n, null), o.push(n);
57
+ });
58
+ const r = cn(e);
59
+ for (const n in r) {
60
+ const i = r[n];
61
+ i && (t(n, an(e, n, i)), o.push(n));
62
+ }
63
+ return o;
64
+ }
65
+ const ln = {
66
+ provider: "",
67
+ aliases: {},
68
+ not_found: {},
69
+ ...ze
70
+ };
71
+ function ge(e, t) {
72
+ for (const o in t) if (o in e && typeof e[o] != typeof t[o]) return !1;
73
+ return !0;
74
+ }
75
+ function qe(e) {
76
+ if (typeof e != "object" || e === null) return null;
77
+ const t = e;
78
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ge(e, ln)) return null;
79
+ const o = t.icons;
80
+ for (const n in o) {
81
+ const i = o[n];
82
+ if (!n || typeof i.body != "string" || !ge(i, xe)) return null;
83
+ }
84
+ const r = t.aliases || /* @__PURE__ */ Object.create(null);
85
+ for (const n in r) {
86
+ const i = r[n], c = i.parent;
87
+ if (!n || typeof c != "string" || !o[c] && !r[c] || !ge(i, xe)) return null;
88
+ }
89
+ return t;
90
+ }
91
+ const Se = /* @__PURE__ */ Object.create(null);
92
+ function un(e, t) {
93
+ return {
94
+ provider: e,
95
+ prefix: t,
96
+ icons: /* @__PURE__ */ Object.create(null),
97
+ missing: /* @__PURE__ */ new Set()
98
+ };
99
+ }
100
+ function Z(e, t) {
101
+ const o = Se[e] || (Se[e] = /* @__PURE__ */ Object.create(null));
102
+ return o[t] || (o[t] = un(e, t));
103
+ }
104
+ function Ue(e, t) {
105
+ return qe(t) ? Ge(t, (o, r) => {
106
+ r ? e.icons[o] = r : e.missing.add(o);
107
+ }) : [];
108
+ }
109
+ function fn(e, t, o) {
110
+ try {
111
+ if (typeof o.body == "string")
112
+ return e.icons[t] = { ...o }, !0;
113
+ } catch {
114
+ }
115
+ return !1;
116
+ }
117
+ const Qe = /^[a-z0-9]+(-[a-z0-9]+)*$/, fe = (e, t, o, r = "") => {
118
+ const n = e.split(":");
119
+ if (e.slice(0, 1) === "@") {
120
+ if (n.length < 2 || n.length > 3) return null;
121
+ r = n.shift().slice(1);
122
+ }
123
+ if (n.length > 3 || !n.length) return null;
124
+ if (n.length > 1) {
125
+ const s = n.pop(), a = n.pop(), l = {
126
+ provider: n.length > 0 ? n[0] : r,
127
+ prefix: a,
128
+ name: s
129
+ };
130
+ return t && !se(l) ? null : l;
131
+ }
132
+ const i = n[0], c = i.split("-");
133
+ if (c.length > 1) {
134
+ const s = {
135
+ provider: r,
136
+ prefix: c.shift(),
137
+ name: c.join("-")
138
+ };
139
+ return t && !se(s) ? null : s;
140
+ }
141
+ if (o && r === "") {
142
+ const s = {
143
+ provider: r,
144
+ prefix: "",
145
+ name: i
146
+ };
147
+ return t && !se(s, o) ? null : s;
148
+ }
149
+ return null;
150
+ }, se = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
151
+ let oe = !1;
152
+ function Ye(e) {
153
+ return typeof e == "boolean" && (oe = e), oe;
154
+ }
155
+ function je(e) {
156
+ const t = typeof e == "string" ? fe(e, !0, oe) : e;
157
+ if (t) {
158
+ const o = Z(t.provider, t.prefix), r = t.name;
159
+ return o.icons[r] || (o.missing.has(r) ? null : void 0);
160
+ }
161
+ }
162
+ function dn(e, t) {
163
+ const o = fe(e, !0, oe);
164
+ if (!o) return !1;
165
+ const r = Z(o.provider, o.prefix);
166
+ return t ? fn(r, o.name, t) : (r.missing.add(o.name), !0);
167
+ }
168
+ function pn(e, t) {
169
+ if (typeof e != "object") return !1;
170
+ if (typeof t != "string" && (t = e.provider || ""), oe && !t && !e.prefix) {
171
+ let n = !1;
172
+ return qe(e) && (e.prefix = "", Ge(e, (i, c) => {
173
+ dn(i, c) && (n = !0);
174
+ })), n;
175
+ }
176
+ const o = e.prefix;
177
+ if (!se({
178
+ prefix: o,
179
+ name: "a"
180
+ })) return !1;
181
+ const r = Z(t, o);
182
+ return !!Ue(r, e);
183
+ }
184
+ const He = Object.freeze({
185
+ width: null,
186
+ height: null
187
+ }), We = Object.freeze({
188
+ ...He,
189
+ ...ue
190
+ }), mn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, hn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
191
+ function De(e, t, o) {
192
+ if (t === 1) return e;
193
+ if (o = o || 100, typeof e == "number") return Math.ceil(e * t * o) / o;
194
+ if (typeof e != "string") return e;
195
+ const r = e.split(mn);
196
+ if (r === null || !r.length) return e;
197
+ const n = [];
198
+ let i = r.shift(), c = hn.test(i);
199
+ for (; ; ) {
200
+ if (c) {
201
+ const s = parseFloat(i);
202
+ isNaN(s) ? n.push(i) : n.push(Math.ceil(s * t * o) / o);
203
+ } else n.push(i);
204
+ if (i = r.shift(), i === void 0) return n.join("");
205
+ c = !c;
206
+ }
207
+ }
208
+ function gn(e, t = "defs") {
209
+ let o = "";
210
+ const r = e.indexOf("<" + t);
211
+ for (; r >= 0; ) {
212
+ const n = e.indexOf(">", r), i = e.indexOf("</" + t);
213
+ if (n === -1 || i === -1) break;
214
+ const c = e.indexOf(">", i);
215
+ if (c === -1) break;
216
+ o += e.slice(n + 1, i).trim(), e = e.slice(0, r).trim() + e.slice(c + 1);
217
+ }
218
+ return {
219
+ defs: o,
220
+ content: e
221
+ };
222
+ }
223
+ function _n(e, t) {
224
+ return e ? "<defs>" + e + "</defs>" + t : t;
225
+ }
226
+ function yn(e, t, o) {
227
+ const r = gn(e);
228
+ return _n(r.defs, t + r.content + o);
229
+ }
230
+ const bn = (e) => e === "unset" || e === "undefined" || e === "none";
231
+ function xn(e, t) {
232
+ const o = {
233
+ ...Te,
234
+ ...e
235
+ }, r = {
236
+ ...We,
237
+ ...t
238
+ }, n = {
239
+ left: o.left,
240
+ top: o.top,
241
+ width: o.width,
242
+ height: o.height
243
+ };
244
+ let i = o.body;
245
+ [o, r].forEach((b) => {
246
+ const p = [], m = b.hFlip, T = b.vFlip;
247
+ let x = b.rotate;
248
+ m ? T ? x += 2 : (p.push("translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"), p.push("scale(-1 1)"), n.top = n.left = 0) : T && (p.push("translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"), p.push("scale(1 -1)"), n.top = n.left = 0);
249
+ let v;
250
+ switch (x < 0 && (x -= Math.floor(x / 4) * 4), x = x % 4, x) {
251
+ case 1:
252
+ v = n.height / 2 + n.top, p.unshift("rotate(90 " + v.toString() + " " + v.toString() + ")");
253
+ break;
254
+ case 2:
255
+ p.unshift("rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")");
256
+ break;
257
+ case 3:
258
+ v = n.width / 2 + n.left, p.unshift("rotate(-90 " + v.toString() + " " + v.toString() + ")");
259
+ break;
260
+ }
261
+ x % 2 === 1 && (n.left !== n.top && (v = n.left, n.left = n.top, n.top = v), n.width !== n.height && (v = n.width, n.width = n.height, n.height = v)), p.length && (i = yn(i, '<g transform="' + p.join(" ") + '">', "</g>"));
262
+ });
263
+ const c = r.width, s = r.height, a = n.width, l = n.height;
264
+ let u, d;
265
+ c === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = De(d, a / l)) : (u = c === "auto" ? a : c, d = s === null ? De(u, l / a) : s === "auto" ? l : s);
266
+ const g = {}, h = (b, p) => {
267
+ bn(p) || (g[b] = p.toString());
268
+ };
269
+ h("width", u), h("height", d);
270
+ const _ = [
271
+ n.left,
272
+ n.top,
273
+ a,
274
+ l
275
+ ];
276
+ return g.viewBox = _.join(" "), {
277
+ attributes: g,
278
+ viewBox: _,
279
+ body: i
280
+ };
281
+ }
282
+ const vn = /\sid="(\S+)"/g, In = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
283
+ let wn = 0;
284
+ function $n(e, t = In) {
285
+ const o = [];
286
+ let r;
287
+ for (; r = vn.exec(e); ) o.push(r[1]);
288
+ if (!o.length) return e;
289
+ const n = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
290
+ return o.forEach((i) => {
291
+ const c = typeof t == "function" ? t(i) : t + (wn++).toString(), s = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
292
+ e = e.replace(new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"), "$1" + c + n + "$3");
293
+ }), e = e.replace(new RegExp(n, "g"), ""), e;
294
+ }
295
+ const ve = /* @__PURE__ */ Object.create(null);
296
+ function Tn(e, t) {
297
+ ve[e] = t;
298
+ }
299
+ function Ie(e) {
300
+ return ve[e] || ve[""];
301
+ }
302
+ function Ne(e) {
303
+ let t;
304
+ if (typeof e.resources == "string") t = [e.resources];
305
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
306
+ return {
307
+ resources: t,
308
+ path: e.path || "/",
309
+ maxURL: e.maxURL || 500,
310
+ rotate: e.rotate || 750,
311
+ timeout: e.timeout || 5e3,
312
+ random: e.random === !0,
313
+ index: e.index || 0,
314
+ dataAfterTimeout: e.dataAfterTimeout !== !1
315
+ };
316
+ }
317
+ const Ee = /* @__PURE__ */ Object.create(null), ee = ["https://api.simplesvg.com", "https://api.unisvg.com"], ae = [];
318
+ for (; ee.length > 0; ) ee.length === 1 || Math.random() > 0.5 ? ae.push(ee.shift()) : ae.push(ee.pop());
319
+ Ee[""] = Ne({ resources: ["https://api.iconify.design"].concat(ae) });
320
+ function Nn(e, t) {
321
+ const o = Ne(t);
322
+ return o === null ? !1 : (Ee[e] = o, !0);
323
+ }
324
+ function ke(e) {
325
+ return Ee[e];
326
+ }
327
+ const En = () => {
328
+ let e;
329
+ try {
330
+ if (e = fetch, typeof e == "function") return e;
331
+ } catch {
332
+ }
333
+ };
334
+ let Oe = En();
335
+ function kn(e, t) {
336
+ const o = ke(e);
337
+ if (!o) return 0;
338
+ let r;
339
+ if (!o.maxURL) r = 0;
340
+ else {
341
+ let n = 0;
342
+ o.resources.forEach((c) => {
343
+ n = Math.max(n, c.length);
344
+ });
345
+ const i = t + ".json?icons=";
346
+ r = o.maxURL - n - o.path.length - i.length;
347
+ }
348
+ return r;
349
+ }
350
+ function Cn(e) {
351
+ return e === 404;
352
+ }
353
+ const Sn = (e, t, o) => {
354
+ const r = [], n = kn(e, t), i = "icons";
355
+ let c = {
356
+ type: i,
357
+ provider: e,
358
+ prefix: t,
359
+ icons: []
360
+ }, s = 0;
361
+ return o.forEach((a, l) => {
362
+ s += a.length + 1, s >= n && l > 0 && (r.push(c), c = {
363
+ type: i,
364
+ provider: e,
365
+ prefix: t,
366
+ icons: []
367
+ }, s = a.length), c.icons.push(a);
368
+ }), r.push(c), r;
369
+ };
370
+ function jn(e) {
371
+ if (typeof e == "string") {
372
+ const t = ke(e);
373
+ if (t) return t.path;
374
+ }
375
+ return "/";
376
+ }
377
+ const Dn = (e, t, o) => {
378
+ if (!Oe) {
379
+ o("abort", 424);
380
+ return;
381
+ }
382
+ let r = jn(t.provider);
383
+ switch (t.type) {
384
+ case "icons": {
385
+ const i = t.prefix, s = t.icons.join(","), a = new URLSearchParams({ icons: s });
386
+ r += i + ".json?" + a.toString();
387
+ break;
388
+ }
389
+ case "custom": {
390
+ const i = t.uri;
391
+ r += i.slice(0, 1) === "/" ? i.slice(1) : i;
392
+ break;
393
+ }
394
+ default:
395
+ o("abort", 400);
396
+ return;
397
+ }
398
+ let n = 503;
399
+ Oe(e + r).then((i) => {
400
+ const c = i.status;
401
+ if (c !== 200) {
402
+ setTimeout(() => {
403
+ o(Cn(c) ? "abort" : "next", c);
404
+ });
405
+ return;
406
+ }
407
+ return n = 501, i.json();
408
+ }).then((i) => {
409
+ if (typeof i != "object" || i === null) {
410
+ setTimeout(() => {
411
+ i === 404 ? o("abort", i) : o("next", n);
412
+ });
413
+ return;
414
+ }
415
+ setTimeout(() => {
416
+ o("success", i);
417
+ });
418
+ }).catch(() => {
419
+ o("next", n);
420
+ });
421
+ }, On = {
422
+ prepare: Sn,
423
+ send: Dn
424
+ };
425
+ function Je(e, t) {
426
+ e.forEach((o) => {
427
+ const r = o.loaderCallbacks;
428
+ r && (o.loaderCallbacks = r.filter((n) => n.id !== t));
429
+ });
430
+ }
431
+ function Pn(e) {
432
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
433
+ e.pendingCallbacksFlag = !1;
434
+ const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
435
+ if (!t.length) return;
436
+ let o = !1;
437
+ const r = e.provider, n = e.prefix;
438
+ t.forEach((i) => {
439
+ const c = i.icons, s = c.pending.length;
440
+ c.pending = c.pending.filter((a) => {
441
+ if (a.prefix !== n) return !0;
442
+ const l = a.name;
443
+ if (e.icons[l]) c.loaded.push({
444
+ provider: r,
445
+ prefix: n,
446
+ name: l
447
+ });
448
+ else if (e.missing.has(l)) c.missing.push({
449
+ provider: r,
450
+ prefix: n,
451
+ name: l
452
+ });
453
+ else
454
+ return o = !0, !0;
455
+ return !1;
456
+ }), c.pending.length !== s && (o || Je([e], i.id), i.callback(c.loaded.slice(0), c.missing.slice(0), c.pending.slice(0), i.abort));
457
+ });
458
+ }));
459
+ }
460
+ let An = 0;
461
+ function Fn(e, t, o) {
462
+ const r = An++, n = Je.bind(null, o, r);
463
+ if (!t.pending.length) return n;
464
+ const i = {
465
+ id: r,
466
+ icons: t,
467
+ callback: e,
468
+ abort: n
469
+ };
470
+ return o.forEach((c) => {
471
+ (c.loaderCallbacks || (c.loaderCallbacks = [])).push(i);
472
+ }), n;
473
+ }
474
+ function Ln(e) {
475
+ const t = {
476
+ loaded: [],
477
+ missing: [],
478
+ pending: []
479
+ }, o = /* @__PURE__ */ Object.create(null);
480
+ e.sort((n, i) => n.provider !== i.provider ? n.provider.localeCompare(i.provider) : n.prefix !== i.prefix ? n.prefix.localeCompare(i.prefix) : n.name.localeCompare(i.name));
481
+ let r = {
482
+ provider: "",
483
+ prefix: "",
484
+ name: ""
485
+ };
486
+ return e.forEach((n) => {
487
+ if (r.name === n.name && r.prefix === n.prefix && r.provider === n.provider) return;
488
+ r = n;
489
+ const i = n.provider, c = n.prefix, s = n.name, a = o[i] || (o[i] = /* @__PURE__ */ Object.create(null)), l = a[c] || (a[c] = Z(i, c));
490
+ let u;
491
+ s in l.icons ? u = t.loaded : c === "" || l.missing.has(s) ? u = t.missing : u = t.pending;
492
+ const d = {
493
+ provider: i,
494
+ prefix: c,
495
+ name: s
496
+ };
497
+ u.push(d);
498
+ }), t;
499
+ }
500
+ function Mn(e, t = !0, o = !1) {
501
+ const r = [];
502
+ return e.forEach((n) => {
503
+ const i = typeof n == "string" ? fe(n, t, o) : n;
504
+ i && r.push(i);
505
+ }), r;
506
+ }
507
+ const Bn = {
508
+ resources: [],
509
+ index: 0,
510
+ timeout: 2e3,
511
+ rotate: 750,
512
+ random: !1,
513
+ dataAfterTimeout: !1
514
+ };
515
+ function Rn(e, t, o, r) {
516
+ const n = e.resources.length, i = e.random ? Math.floor(Math.random() * n) : e.index;
517
+ let c;
518
+ if (e.random) {
519
+ let y = e.resources.slice(0);
520
+ for (c = []; y.length > 1; ) {
521
+ const I = Math.floor(Math.random() * y.length);
522
+ c.push(y[I]), y = y.slice(0, I).concat(y.slice(I + 1));
523
+ }
524
+ c = c.concat(y);
525
+ } else c = e.resources.slice(i).concat(e.resources.slice(0, i));
526
+ const s = Date.now();
527
+ let a = "pending", l = 0, u, d = null, g = [], h = [];
528
+ typeof r == "function" && h.push(r);
529
+ function _() {
530
+ d && (clearTimeout(d), d = null);
531
+ }
532
+ function b() {
533
+ a === "pending" && (a = "aborted"), _(), g.forEach((y) => {
534
+ y.status === "pending" && (y.status = "aborted");
535
+ }), g = [];
536
+ }
537
+ function p(y, I) {
538
+ I && (h = []), typeof y == "function" && h.push(y);
539
+ }
540
+ function m() {
541
+ return {
542
+ startTime: s,
543
+ payload: t,
544
+ status: a,
545
+ queriesSent: l,
546
+ queriesPending: g.length,
547
+ subscribe: p,
548
+ abort: b
549
+ };
550
+ }
551
+ function T() {
552
+ a = "failed", h.forEach((y) => {
553
+ y(void 0, u);
554
+ });
555
+ }
556
+ function x() {
557
+ g.forEach((y) => {
558
+ y.status === "pending" && (y.status = "aborted");
559
+ }), g = [];
560
+ }
561
+ function v(y, I, w) {
562
+ const C = I !== "success";
563
+ switch (g = g.filter((S) => S !== y), a) {
564
+ case "pending":
565
+ break;
566
+ case "failed":
567
+ if (C || !e.dataAfterTimeout) return;
568
+ break;
569
+ default:
570
+ return;
571
+ }
572
+ if (I === "abort") {
573
+ u = w, T();
574
+ return;
575
+ }
576
+ if (C) {
577
+ u = w, g.length || (c.length ? k() : T());
578
+ return;
579
+ }
580
+ if (_(), x(), !e.random) {
581
+ const S = e.resources.indexOf(y.resource);
582
+ S !== -1 && S !== e.index && (e.index = S);
583
+ }
584
+ a = "completed", h.forEach((S) => {
585
+ S(w);
586
+ });
587
+ }
588
+ function k() {
589
+ if (a !== "pending") return;
590
+ _();
591
+ const y = c.shift();
592
+ if (y === void 0) {
593
+ if (g.length) {
594
+ d = setTimeout(() => {
595
+ _(), a === "pending" && (x(), T());
596
+ }, e.timeout);
597
+ return;
598
+ }
599
+ T();
600
+ return;
601
+ }
602
+ const I = {
603
+ status: "pending",
604
+ resource: y,
605
+ callback: (w, C) => {
606
+ v(I, w, C);
607
+ }
608
+ };
609
+ g.push(I), l++, d = setTimeout(k, e.rotate), o(y, t, I.callback);
610
+ }
611
+ return setTimeout(k), m;
612
+ }
613
+ function Xe(e) {
614
+ const t = {
615
+ ...Bn,
616
+ ...e
617
+ };
618
+ let o = [];
619
+ function r() {
620
+ o = o.filter((s) => s().status === "pending");
621
+ }
622
+ function n(s, a, l) {
623
+ const u = Rn(t, s, a, (d, g) => {
624
+ r(), l && l(d, g);
625
+ });
626
+ return o.push(u), u;
627
+ }
628
+ function i(s) {
629
+ return o.find((a) => s(a)) || null;
630
+ }
631
+ return {
632
+ query: n,
633
+ find: i,
634
+ setIndex: (s) => {
635
+ t.index = s;
636
+ },
637
+ getIndex: () => t.index,
638
+ cleanup: r
639
+ };
640
+ }
641
+ function Pe() {
642
+ }
643
+ const _e = /* @__PURE__ */ Object.create(null);
644
+ function zn(e) {
645
+ if (!_e[e]) {
646
+ const t = ke(e);
647
+ if (!t) return;
648
+ const o = Xe(t), r = {
649
+ config: t,
650
+ redundancy: o
651
+ };
652
+ _e[e] = r;
653
+ }
654
+ return _e[e];
655
+ }
656
+ function Gn(e, t, o) {
657
+ let r, n;
658
+ if (typeof e == "string") {
659
+ const i = Ie(e);
660
+ if (!i)
661
+ return o(void 0, 424), Pe;
662
+ n = i.send;
663
+ const c = zn(e);
664
+ c && (r = c.redundancy);
665
+ } else {
666
+ const i = Ne(e);
667
+ if (i) {
668
+ r = Xe(i);
669
+ const c = e.resources ? e.resources[0] : "", s = Ie(c);
670
+ s && (n = s.send);
671
+ }
672
+ }
673
+ return !r || !n ? (o(void 0, 424), Pe) : r.query(t, n, o)().abort;
674
+ }
675
+ function Ae() {
676
+ }
677
+ function qn(e) {
678
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
679
+ e.iconsLoaderFlag = !1, Pn(e);
680
+ }));
681
+ }
682
+ function Un(e) {
683
+ const t = [], o = [];
684
+ return e.forEach((r) => {
685
+ (r.match(Qe) ? t : o).push(r);
686
+ }), {
687
+ valid: t,
688
+ invalid: o
689
+ };
690
+ }
691
+ function ne(e, t, o) {
692
+ function r() {
693
+ const n = e.pendingIcons;
694
+ t.forEach((i) => {
695
+ n && n.delete(i), e.icons[i] || e.missing.add(i);
696
+ });
697
+ }
698
+ if (o && typeof o == "object") try {
699
+ if (!Ue(e, o).length) {
700
+ r();
701
+ return;
702
+ }
703
+ } catch (n) {
704
+ console.error(n);
705
+ }
706
+ r(), qn(e);
707
+ }
708
+ function Fe(e, t) {
709
+ e instanceof Promise ? e.then((o) => {
710
+ t(o);
711
+ }).catch(() => {
712
+ t(null);
713
+ }) : t(e);
714
+ }
715
+ function Qn(e, t) {
716
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
717
+ e.iconsQueueFlag = !1;
718
+ const { provider: o, prefix: r } = e, n = e.iconsToLoad;
719
+ if (delete e.iconsToLoad, !n || !n.length) return;
720
+ const i = e.loadIcon;
721
+ if (e.loadIcons && (n.length > 1 || !i)) {
722
+ Fe(e.loadIcons(n, r, o), (u) => {
723
+ ne(e, n, u);
724
+ });
725
+ return;
726
+ }
727
+ if (i) {
728
+ n.forEach((u) => {
729
+ const d = i(u, r, o);
730
+ Fe(d, (g) => {
731
+ const h = g ? {
732
+ prefix: r,
733
+ icons: { [u]: g }
734
+ } : null;
735
+ ne(e, [u], h);
736
+ });
737
+ });
738
+ return;
739
+ }
740
+ const { valid: c, invalid: s } = Un(n);
741
+ if (s.length && ne(e, s, null), !c.length) return;
742
+ const a = r.match(Qe) ? Ie(o) : null;
743
+ if (!a) {
744
+ ne(e, c, null);
745
+ return;
746
+ }
747
+ a.prepare(o, r, c).forEach((u) => {
748
+ Gn(o, u, (d) => {
749
+ ne(e, u.icons, d);
750
+ });
751
+ });
752
+ }));
753
+ }
754
+ const Yn = (e, t) => {
755
+ const o = Mn(e, !0, Ye()), r = Ln(o);
756
+ if (!r.pending.length) {
757
+ let a = !0;
758
+ return t && setTimeout(() => {
759
+ a && t(r.loaded, r.missing, r.pending, Ae);
760
+ }), () => {
761
+ a = !1;
762
+ };
763
+ }
764
+ const n = /* @__PURE__ */ Object.create(null), i = [];
765
+ let c, s;
766
+ return r.pending.forEach((a) => {
767
+ const { provider: l, prefix: u } = a;
768
+ if (u === s && l === c) return;
769
+ c = l, s = u, i.push(Z(l, u));
770
+ const d = n[l] || (n[l] = /* @__PURE__ */ Object.create(null));
771
+ d[u] || (d[u] = []);
772
+ }), r.pending.forEach((a) => {
773
+ const { provider: l, prefix: u, name: d } = a, g = Z(l, u), h = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
774
+ h.has(d) || (h.add(d), n[l][u].push(d));
775
+ }), i.forEach((a) => {
776
+ const l = n[a.provider][a.prefix];
777
+ l.length && Qn(a, l);
778
+ }), t ? Fn(t, r, i) : Ae;
779
+ };
780
+ function Hn(e, t) {
781
+ const o = { ...e };
782
+ for (const r in t) {
783
+ const n = t[r], i = typeof n;
784
+ r in He ? (n === null || n && (i === "string" || i === "number")) && (o[r] = n) : i === typeof o[r] && (o[r] = r === "rotate" ? n % 4 : n);
785
+ }
786
+ return o;
787
+ }
788
+ const Wn = /[\s,]+/;
789
+ function Jn(e, t) {
790
+ t.split(Wn).forEach((o) => {
791
+ switch (o.trim()) {
792
+ case "horizontal":
793
+ e.hFlip = !0;
794
+ break;
795
+ case "vertical":
796
+ e.vFlip = !0;
797
+ break;
798
+ }
799
+ });
800
+ }
801
+ function Xn(e, t = 0) {
802
+ const o = e.replace(/^-?[0-9.]*/, "");
803
+ function r(n) {
804
+ for (; n < 0; ) n += 4;
805
+ return n % 4;
806
+ }
807
+ if (o === "") {
808
+ const n = parseInt(e);
809
+ return isNaN(n) ? 0 : r(n);
810
+ } else if (o !== e) {
811
+ let n = 0;
812
+ switch (o) {
813
+ case "%":
814
+ n = 25;
815
+ break;
816
+ case "deg":
817
+ n = 90;
818
+ }
819
+ if (n) {
820
+ let i = parseFloat(e.slice(0, e.length - o.length));
821
+ return isNaN(i) ? 0 : (i = i / n, i % 1 === 0 ? r(i) : 0);
822
+ }
823
+ }
824
+ return t;
825
+ }
826
+ function Zn(e, t) {
827
+ let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
828
+ for (const r in t) o += " " + r + '="' + t[r] + '"';
829
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
830
+ }
831
+ function Vn(e) {
832
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
833
+ }
834
+ function Kn(e) {
835
+ return "data:image/svg+xml," + Vn(e);
836
+ }
837
+ function et(e) {
838
+ return 'url("' + Kn(e) + '")';
839
+ }
840
+ let te;
841
+ function nt() {
842
+ try {
843
+ te = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
844
+ } catch {
845
+ te = null;
846
+ }
847
+ }
848
+ function tt(e) {
849
+ return te === void 0 && nt(), te ? te.createHTML(e) : e;
850
+ }
851
+ const Ze = {
852
+ ...We,
853
+ inline: !1
854
+ }, ot = {
855
+ xmlns: "http://www.w3.org/2000/svg",
856
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
857
+ "aria-hidden": !0,
858
+ role: "img"
859
+ }, rt = {
860
+ display: "inline-block"
861
+ }, we = {
862
+ backgroundColor: "currentColor"
863
+ }, Ve = {
864
+ backgroundColor: "transparent"
865
+ }, Le = {
866
+ Image: "var(--svg)",
867
+ Repeat: "no-repeat",
868
+ Size: "100% 100%"
869
+ }, Me = {
870
+ WebkitMask: we,
871
+ mask: we,
872
+ background: Ve
873
+ };
874
+ for (const e in Me) {
875
+ const t = Me[e];
876
+ for (const o in Le)
877
+ t[e + o] = Le[o];
878
+ }
879
+ const it = {
880
+ ...Ze,
881
+ inline: !0
882
+ };
883
+ function Be(e) {
884
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
885
+ }
886
+ const ct = (e, t, o) => {
887
+ const r = t.inline ? it : Ze, n = Hn(r, t), i = t.mode || "svg", c = {}, s = t.style || {}, a = {
888
+ ...i === "svg" ? ot : {}
889
+ };
890
+ if (o) {
891
+ const p = fe(o, !1, !0);
892
+ if (p) {
893
+ const m = ["iconify"], T = [
894
+ "provider",
895
+ "prefix"
896
+ ];
897
+ for (const x of T)
898
+ p[x] && m.push("iconify--" + p[x]);
899
+ a.className = m.join(" ");
900
+ }
901
+ }
902
+ for (let p in t) {
903
+ const m = t[p];
904
+ if (m !== void 0)
905
+ switch (p) {
906
+ // Properties to ignore
907
+ case "icon":
908
+ case "style":
909
+ case "children":
910
+ case "onLoad":
911
+ case "mode":
912
+ case "ssr":
913
+ case "fallback":
914
+ break;
915
+ // Forward ref
916
+ case "_ref":
917
+ a.ref = m;
918
+ break;
919
+ // Merge class names
920
+ case "className":
921
+ a[p] = (a[p] ? a[p] + " " : "") + m;
922
+ break;
923
+ // Boolean attributes
924
+ case "inline":
925
+ case "hFlip":
926
+ case "vFlip":
927
+ n[p] = m === !0 || m === "true" || m === 1;
928
+ break;
929
+ // Flip as string: 'horizontal,vertical'
930
+ case "flip":
931
+ typeof m == "string" && Jn(n, m);
932
+ break;
933
+ // Color: copy to style
934
+ case "color":
935
+ c.color = m;
936
+ break;
937
+ // Rotation as string
938
+ case "rotate":
939
+ typeof m == "string" ? n[p] = Xn(m) : typeof m == "number" && (n[p] = m);
940
+ break;
941
+ // Remove aria-hidden
942
+ case "ariaHidden":
943
+ case "aria-hidden":
944
+ m !== !0 && m !== "true" && delete a["aria-hidden"];
945
+ break;
946
+ // Copy missing property if it does not exist in customisations
947
+ default:
948
+ r[p] === void 0 && (a[p] = m);
949
+ }
950
+ }
951
+ const l = xn(e, n), u = l.attributes;
952
+ if (n.inline && (c.verticalAlign = "-0.125em"), i === "svg") {
953
+ a.style = {
954
+ ...c,
955
+ ...s
956
+ }, Object.assign(a, u);
957
+ let p = 0, m = t.id;
958
+ return typeof m == "string" && (m = m.replace(/-/g, "_")), a.dangerouslySetInnerHTML = {
959
+ __html: tt($n(l.body, m ? () => m + "ID" + p++ : "iconifyReact"))
960
+ }, be("svg", a);
961
+ }
962
+ const { body: d, width: g, height: h } = e, _ = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), b = Zn(d, {
963
+ ...u,
964
+ width: g + "",
965
+ height: h + ""
966
+ });
967
+ return a.style = {
968
+ ...c,
969
+ "--svg": et(b),
970
+ width: Be(u.width),
971
+ height: Be(u.height),
972
+ ...rt,
973
+ ..._ ? we : Ve,
974
+ ...s
975
+ }, be("span", a);
976
+ };
977
+ Ye(!0);
978
+ Tn("", On);
979
+ if (typeof document < "u" && typeof window < "u") {
980
+ const e = window;
981
+ if (e.IconifyPreload !== void 0) {
982
+ const t = e.IconifyPreload, o = "Invalid IconifyPreload syntax.";
983
+ typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((r) => {
984
+ try {
985
+ // Check if item is an object and not null/array
986
+ (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
987
+ typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
988
+ !pn(r)) && console.error(o);
989
+ } catch {
990
+ console.error(o);
991
+ }
992
+ });
993
+ }
994
+ if (e.IconifyProviders !== void 0) {
995
+ const t = e.IconifyProviders;
996
+ if (typeof t == "object" && t !== null)
997
+ for (let o in t) {
998
+ const r = "IconifyProviders[" + o + "] is invalid.";
999
+ try {
1000
+ const n = t[o];
1001
+ if (typeof n != "object" || !n || n.resources === void 0)
1002
+ continue;
1003
+ Nn(o, n) || console.error(r);
1004
+ } catch {
1005
+ console.error(r);
1006
+ }
1007
+ }
1008
+ }
1009
+ }
1010
+ function Ke(e) {
1011
+ const [t, o] = B(!!e.ssr), [r, n] = B({});
1012
+ function i(h) {
1013
+ if (h) {
1014
+ const _ = e.icon;
1015
+ if (typeof _ == "object")
1016
+ return {
1017
+ name: "",
1018
+ data: _
1019
+ };
1020
+ const b = je(_);
1021
+ if (b)
1022
+ return {
1023
+ name: _,
1024
+ data: b
1025
+ };
1026
+ }
1027
+ return {
1028
+ name: ""
1029
+ };
1030
+ }
1031
+ const [c, s] = B(i(!!e.ssr));
1032
+ function a() {
1033
+ const h = r.callback;
1034
+ h && (h(), n({}));
1035
+ }
1036
+ function l(h) {
1037
+ if (JSON.stringify(c) !== JSON.stringify(h))
1038
+ return a(), s(h), !0;
1039
+ }
1040
+ function u() {
1041
+ var h;
1042
+ const _ = e.icon;
1043
+ if (typeof _ == "object") {
1044
+ l({
1045
+ name: "",
1046
+ data: _
1047
+ });
1048
+ return;
1049
+ }
1050
+ const b = je(_);
1051
+ if (l({
1052
+ name: _,
1053
+ data: b
1054
+ }))
1055
+ if (b === void 0) {
1056
+ const p = Yn([_], u);
1057
+ n({
1058
+ callback: p
1059
+ });
1060
+ } else b && ((h = e.onLoad) === null || h === void 0 || h.call(e, _));
1061
+ }
1062
+ le(() => (o(!0), a), []), le(() => {
1063
+ t && u();
1064
+ }, [e.icon, t]);
1065
+ const { name: d, data: g } = c;
1066
+ return g ? ct({
1067
+ ...Te,
1068
+ ...g
1069
+ }, e, d) : e.children ? e.children : e.fallback ? e.fallback : be("span", {});
1070
+ }
1071
+ const D = Q((e, t) => Ke({
1072
+ ...e,
1073
+ _ref: t
1074
+ }));
1075
+ Q((e, t) => Ke({
1076
+ inline: !0,
1077
+ ...e,
1078
+ _ref: t
1079
+ }));
1080
+ const st = "_container_1s8de_36", at = "_title_1s8de_46", lt = "_containerInputError_1s8de_50", ut = "_containerInput_1s8de_50", ft = "_inputElement_1s8de_69", dt = "_errorMessage_1s8de_80", pt = "_icon_1s8de_92", mt = "_containerCustomIcon_1s8de_99", F = {
1081
+ container: st,
1082
+ title: at,
1083
+ containerInputError: lt,
1084
+ containerInput: ut,
1085
+ inputElement: ft,
1086
+ errorMessage: dt,
1087
+ icon: pt,
1088
+ containerCustomIcon: mt
1089
+ }, ie = (e) => {
1090
+ switch (e) {
1091
+ case "none":
1092
+ return 0;
1093
+ case "sm":
1094
+ return 5;
1095
+ case "md":
1096
+ return 10;
1097
+ case "lg":
1098
+ return 15;
1099
+ case "full":
1100
+ return 9999;
1101
+ default:
1102
+ return 0;
1103
+ }
1104
+ }, Po = Q(function({
1105
+ placeholder: t,
1106
+ value: o,
1107
+ setValue: r,
1108
+ label: n,
1109
+ typeInput: i,
1110
+ HorV: c,
1111
+ errorMessage: s,
1112
+ rounded: a,
1113
+ width: l,
1114
+ height: u,
1115
+ border: d,
1116
+ shadow: g,
1117
+ textSize: h,
1118
+ textColor: _,
1119
+ bgColor: b,
1120
+ customContainerClass: p,
1121
+ customInputClass: m,
1122
+ customIconRClass: T,
1123
+ customIconLClass: x,
1124
+ seeIconLeft: v = !0,
1125
+ seeIconRight: k,
1126
+ iconColorL: y,
1127
+ iconColorR: I,
1128
+ iconColorPass: w,
1129
+ iconSizeL: C,
1130
+ iconSizeR: S,
1131
+ iconSizePass: A,
1132
+ iconLeft: M,
1133
+ iconRight: R,
1134
+ customIconLeft: z,
1135
+ customIconRight: Y,
1136
+ args: J
1137
+ }, X) {
1138
+ const [G, O] = B(!1), q = re(() => ie(a ?? "full"), [a]);
1139
+ return /* @__PURE__ */ N(
1140
+ "div",
1141
+ {
1142
+ className: F.container,
1143
+ style: {
1144
+ flexDirection: c === "horizontal" ? "row" : "column"
1145
+ },
1146
+ children: [
1147
+ /* @__PURE__ */ f(
1148
+ "label",
1149
+ {
1150
+ className: F.title,
1151
+ style: {
1152
+ fontSize: h,
1153
+ color: _,
1154
+ height: c === "horizontal" ? 35 : "auto",
1155
+ display: c === "horizontal" ? "flex" : "block",
1156
+ alignItems: c === "horizontal" ? "center" : "initial",
1157
+ marginRight: c === "horizontal" ? 10 : 0,
1158
+ marginBottom: c === "vertical" ? 5 : 0
1159
+ },
1160
+ children: n
1161
+ }
1162
+ ),
1163
+ /* @__PURE__ */ N("div", { className: F.containerInputError, children: [
1164
+ /* @__PURE__ */ N(
1165
+ "div",
1166
+ {
1167
+ className: `${F.containerInput} ${p}`,
1168
+ style: {
1169
+ borderRadius: q,
1170
+ width: !l && i === "datetime-local" ? "auto" : l,
1171
+ height: u,
1172
+ border: d || d === void 0 ? "" : "none",
1173
+ boxShadow: g ? "0 0 5px #00000075" : "",
1174
+ backgroundColor: b
1175
+ },
1176
+ children: [
1177
+ z ? /* @__PURE__ */ f("div", {
1178
+ className: `${F.containerCustomIcon} ${x}`,
1179
+ // Icono izquierdo personalizado
1180
+ children: z
1181
+ }) : v && /* @__PURE__ */ f(
1182
+ D,
1183
+ {
1184
+ icon: M ?? "mi:user",
1185
+ className: `${F.icon} ${x}`,
1186
+ style: { color: y, fontSize: C }
1187
+ }
1188
+ ),
1189
+ /* @__PURE__ */ f(
1190
+ "input",
1191
+ {
1192
+ ref: X,
1193
+ className: `${F.inputElement} ${m}`,
1194
+ style: { fontSize: h, color: _ },
1195
+ type: i === "password" && G ? "text" : i,
1196
+ placeholder: t,
1197
+ value: o,
1198
+ onChange: (H) => r?.(H.target.value),
1199
+ ...J
1200
+ }
1201
+ ),
1202
+ i === "password" && /* @__PURE__ */ f(
1203
+ D,
1204
+ {
1205
+ onClick: () => O(!G),
1206
+ icon: G ? "fluent:eye-20-filled" : "fluent:eye-hide-20-filled",
1207
+ className: `${F.icon}`,
1208
+ style: { color: w, fontSize: A, marginRight: 10 }
1209
+ }
1210
+ ),
1211
+ Y ? /* @__PURE__ */ f("div", {
1212
+ className: `${F.containerCustomIcon} ${T}`,
1213
+ // Icono derecho personalizado
1214
+ children: Y
1215
+ }) : k && /* @__PURE__ */ f(
1216
+ D,
1217
+ {
1218
+ icon: R ?? "mi:user",
1219
+ className: `${F.icon} ${T}`,
1220
+ style: { color: I, fontSize: S }
1221
+ }
1222
+ )
1223
+ ]
1224
+ }
1225
+ ),
1226
+ s !== "" && /* @__PURE__ */ f("p", { className: F.errorMessage, children: s })
1227
+ ] })
1228
+ ]
1229
+ }
1230
+ );
1231
+ }), ht = "_container_pbqvr_36", gt = "_containerInputError_pbqvr_50", _t = "_containerInput_pbqvr_50", yt = "_inputElement_pbqvr_69", bt = "_errorMessage_pbqvr_80", xt = "_icon_pbqvr_92", vt = "_containerCustomIcon_pbqvr_99", W = {
1232
+ container: ht,
1233
+ containerInputError: gt,
1234
+ containerInput: _t,
1235
+ inputElement: yt,
1236
+ errorMessage: bt,
1237
+ icon: xt,
1238
+ containerCustomIcon: vt
1239
+ }, Ao = Q(function({
1240
+ label: t,
1241
+ value: o,
1242
+ errorMessage: r,
1243
+ textSize: n,
1244
+ textColor: i,
1245
+ setValue: c,
1246
+ useLinkable: s,
1247
+ link: a,
1248
+ iconSize: l,
1249
+ seeIcon: u,
1250
+ icon: d,
1251
+ iconColor: g,
1252
+ customInputClass: h,
1253
+ customLabelClass: _,
1254
+ customIconClass: b,
1255
+ customIcon: p,
1256
+ args: m
1257
+ }, T) {
1258
+ const x = $e();
1259
+ return /* @__PURE__ */ f("div", { ref: T, className: W.container, children: /* @__PURE__ */ N("div", { className: W.containerInputError, children: [
1260
+ /* @__PURE__ */ N("div", { className: W.containerInput, children: [
1261
+ /* @__PURE__ */ f(
1262
+ "input",
1263
+ {
1264
+ className: `${W.inputElement} ${h}`,
1265
+ style: { fontSize: n, color: i },
1266
+ type: "checkbox",
1267
+ checked: o,
1268
+ onChange: (v) => c(v.target.checked),
1269
+ ...m
1270
+ }
1271
+ ),
1272
+ p ? /* @__PURE__ */ f("div", { className: `${W.containerCustomIcon} ${b}`, children: p }) : u && /* @__PURE__ */ f(
1273
+ D,
1274
+ {
1275
+ icon: d ?? "mi:user",
1276
+ className: `${W.icon} ${b}`,
1277
+ style: { color: g, fontSize: l }
1278
+ }
1279
+ ),
1280
+ s ? /* @__PURE__ */ f(
1281
+ "a",
1282
+ {
1283
+ className: _,
1284
+ href: a || "#",
1285
+ style: {
1286
+ fontSize: n,
1287
+ color: i,
1288
+ textDecoration: "underline"
1289
+ },
1290
+ children: t
1291
+ }
1292
+ ) : /* @__PURE__ */ f(
1293
+ "label",
1294
+ {
1295
+ htmlFor: x,
1296
+ className: _,
1297
+ style: {
1298
+ fontSize: n,
1299
+ color: i
1300
+ },
1301
+ children: t
1302
+ }
1303
+ )
1304
+ ] }),
1305
+ r !== "" && /* @__PURE__ */ f("p", { className: W.errorMessage, children: r })
1306
+ ] }) });
1307
+ }), It = "_container_j0rdw_36", wt = "_containerInputError_j0rdw_50", $t = "_containerInput_j0rdw_50", Tt = "_errorMessage_j0rdw_80", Nt = "_icon_j0rdw_92", Et = "_containerCustomIcon_j0rdw_99", kt = "_containerInputAndOptions_j0rdw_99", Ct = "_containerOptions_j0rdw_99", St = "_optionElement_j0rdw_99", jt = "_containerIconOption_j0rdw_99", Dt = "_containerLabel_j0rdw_111", Ot = "_textOption_j0rdw_141", Pt = "_iconArrow_j0rdw_149", E = {
1308
+ container: It,
1309
+ containerInputError: wt,
1310
+ containerInput: $t,
1311
+ errorMessage: Tt,
1312
+ icon: Nt,
1313
+ containerCustomIcon: Et,
1314
+ containerInputAndOptions: kt,
1315
+ containerOptions: Ct,
1316
+ optionElement: St,
1317
+ containerIconOption: jt,
1318
+ containerLabel: Dt,
1319
+ textOption: Ot,
1320
+ iconArrow: Pt
1321
+ }, At = (e, t) => {
1322
+ le(() => {
1323
+ const o = (r) => {
1324
+ const n = e.current;
1325
+ !n || n.contains(r.target) || t(r);
1326
+ };
1327
+ return document.addEventListener("mousedown", o), document.addEventListener("touchstart", o), () => {
1328
+ document.removeEventListener("mousedown", o), document.removeEventListener("touchstart", o);
1329
+ };
1330
+ }, [e, t]);
1331
+ }, Fo = Q(function({
1332
+ label: t,
1333
+ value: o,
1334
+ setValue: r,
1335
+ options: n,
1336
+ placeholder: i,
1337
+ errorMessage: c,
1338
+ orientation: s = "bottom",
1339
+ iconInRight: a = !1,
1340
+ rounded: l,
1341
+ border: u = !0,
1342
+ textSize: d = "1.4rem",
1343
+ textColor: g = "#000",
1344
+ labelSize: h = "1.4rem",
1345
+ labelColor: _ = "#000",
1346
+ width: b = 250,
1347
+ height: p = 40,
1348
+ bgColor: m,
1349
+ shadow: T = !1,
1350
+ icon: x,
1351
+ iconSize: v = 20,
1352
+ iconsOptionsSize: k = 20,
1353
+ seeIcon: y = !1,
1354
+ seeOptionsIcons: I = !1,
1355
+ iconsColor: w = "#000",
1356
+ customIcon: C,
1357
+ customContainerClass: S,
1358
+ customInputClass: A,
1359
+ customLabelClass: M,
1360
+ customIconClass: R,
1361
+ customOptionClass: z
1362
+ }, Y) {
1363
+ const [J, X] = B(null), [G, O] = B(!1), q = Re(null), H = { valueOption: null, text: i ?? "Selecciona una opción", icon: "hugeicons:cursor-magic-selection-04" };
1364
+ At(q, () => {
1365
+ O(!1);
1366
+ }), le(() => {
1367
+ let j = [H, ...n];
1368
+ X(j);
1369
+ }, []);
1370
+ const V = re(() => ie(l ?? "lg"), [l]);
1371
+ return /* @__PURE__ */ N("div", { ref: Y, className: `${E.container} ${S}`, children: [
1372
+ /* @__PURE__ */ N("div", { className: E.containerLabel, style: { flexDirection: a ? "row-reverse" : "row", justifyContent: a ? "flex-end" : "flex-start" }, children: [
1373
+ C ? /* @__PURE__ */ f(
1374
+ "div",
1375
+ {
1376
+ className: `${E.containerCustomIcon} ${R}`,
1377
+ style: { height: v },
1378
+ children: C
1379
+ }
1380
+ ) : y && /* @__PURE__ */ f(
1381
+ D,
1382
+ {
1383
+ icon: x ?? "icon-park-outline:dot",
1384
+ className: `${E.icon} ${R}`,
1385
+ style: { color: w, fontSize: v }
1386
+ }
1387
+ ),
1388
+ /* @__PURE__ */ f(
1389
+ "label",
1390
+ {
1391
+ className: M,
1392
+ style: {
1393
+ fontSize: h,
1394
+ color: _
1395
+ },
1396
+ children: t
1397
+ }
1398
+ )
1399
+ ] }),
1400
+ /* @__PURE__ */ N("div", { className: E.containerInputError, children: [
1401
+ /* @__PURE__ */ N("div", { ref: q, className: E.containerInputAndOptions, children: [
1402
+ /* @__PURE__ */ N(
1403
+ "div",
1404
+ {
1405
+ onClick: (j) => {
1406
+ j.stopPropagation(), O(!G);
1407
+ },
1408
+ className: `${E.containerInput} ${A}`,
1409
+ style: {
1410
+ width: b,
1411
+ height: p,
1412
+ border: u ? "" : "none",
1413
+ boxShadow: T ? "0 0 10px #00000050" : "",
1414
+ borderRadius: V,
1415
+ backgroundColor: m
1416
+ },
1417
+ children: [
1418
+ I && o?.valueOption && /* @__PURE__ */ f(rn, { children: o?.customIcon ? /* @__PURE__ */ f("div", { className: E.containerCustomIcon, children: o?.customIcon }) : o?.icon && /* @__PURE__ */ f(
1419
+ D,
1420
+ {
1421
+ icon: o.icon,
1422
+ className: E.icon,
1423
+ style: { color: o.iconColor ? o.iconColor : w, fontSize: k }
1424
+ }
1425
+ ) }),
1426
+ /* @__PURE__ */ f(
1427
+ "p",
1428
+ {
1429
+ className: E.textOption,
1430
+ style: {
1431
+ fontSize: h,
1432
+ color: _,
1433
+ fontWeight: o?.valueOption ? "bold" : ""
1434
+ },
1435
+ children: o?.text ? o.text : H.text
1436
+ }
1437
+ ),
1438
+ /* @__PURE__ */ f(
1439
+ D,
1440
+ {
1441
+ icon: "ri:arrow-down-s-line",
1442
+ className: `${E.icon} ${E.iconArrow}`
1443
+ }
1444
+ )
1445
+ ]
1446
+ }
1447
+ ),
1448
+ G && /* @__PURE__ */ f(
1449
+ "div",
1450
+ {
1451
+ className: E.containerOptions,
1452
+ style: {
1453
+ top: s === "bottom" ? "calc(100% + 10px)" : s === "left" || s === "right" ? 0 : "",
1454
+ left: s === "right" ? "calc(100% + 10px)" : s === "top" || s === "bottom" ? 0 : "",
1455
+ bottom: s === "top" ? "calc(100% + 10px)" : "",
1456
+ right: s === "left" ? "calc(100% + 10px)" : ""
1457
+ },
1458
+ children: J?.map(
1459
+ (j, pe) => /* @__PURE__ */ N(
1460
+ "div",
1461
+ {
1462
+ onClick: (K) => {
1463
+ K.stopPropagation(), O(!1), r(j);
1464
+ },
1465
+ className: `${E.optionElement} ${z}`,
1466
+ children: [
1467
+ I && /* @__PURE__ */ f("div", { className: `${E.containerIconOption}`, children: j.customIcon ? j.customIcon : I && /* @__PURE__ */ f(
1468
+ D,
1469
+ {
1470
+ icon: j.icon ?? "icon-park-outline:dot",
1471
+ className: `${E.icon} ${E.containerIconOption}`,
1472
+ style: { color: j.iconColor ? j.iconColor : w, fontSize: k }
1473
+ }
1474
+ ) }),
1475
+ /* @__PURE__ */ f(
1476
+ "p",
1477
+ {
1478
+ className: E.textOption,
1479
+ style: {
1480
+ fontSize: d,
1481
+ color: g
1482
+ },
1483
+ children: j.text ? j.text : H.text
1484
+ }
1485
+ )
1486
+ ]
1487
+ },
1488
+ pe
1489
+ )
1490
+ )
1491
+ }
1492
+ )
1493
+ ] }),
1494
+ c !== "" && /* @__PURE__ */ f("p", { className: E.errorMessage, children: c })
1495
+ ] })
1496
+ ] });
1497
+ }), Ft = "_container_ninia_36", Lt = "_containerInputError_ninia_50", Mt = "_errorMessage_ninia_80", Bt = "_icon_ninia_92", Rt = "_containerCustomIcon_ninia_99", zt = "_containerInputFile_ninia_114", Gt = "_containerSelectedFile_ninia_114", qt = "_textInput_ninia_132", Ut = "_inputFile_ninia_142", Qt = "_fileName_ninia_158", Yt = "_backdrop_ninia_175", P = {
1498
+ container: Ft,
1499
+ containerInputError: Lt,
1500
+ errorMessage: Mt,
1501
+ icon: Bt,
1502
+ containerCustomIcon: Rt,
1503
+ containerInputFile: zt,
1504
+ containerSelectedFile: Gt,
1505
+ textInput: qt,
1506
+ inputFile: Ut,
1507
+ fileName: Qt,
1508
+ backdrop: Yt
1509
+ }, ye = {
1510
+ // --- IMÁGENES (Expandido) ---
1511
+ images: {
1512
+ common: "image/png, image/jpeg, image/gif, image/webp",
1513
+ png: "image/png",
1514
+ jpg: "image/jpeg, image/jpg",
1515
+ gif: "image/gif",
1516
+ svg: "image/svg+xml",
1517
+ webp: "image/webp",
1518
+ avif: "image/avif",
1519
+ ico: "image/x-icon, image/vnd.microsoft.icon",
1520
+ tiff: "image/tiff",
1521
+ bmp: "image/bmp",
1522
+ heic: "image/heic, image/heif"
1523
+ },
1524
+ // --- DOCUMENTOS Y OFICINA (Expandido) ---
1525
+ docs: {
1526
+ pdf: "application/pdf",
1527
+ // Microsoft Office
1528
+ word: ".doc, .docx, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1529
+ excel: ".xls, .xlsx, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
1530
+ powerpoint: ".ppt, .pptx, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation",
1531
+ // Open Office / Libre Office
1532
+ odt: "application/vnd.oasis.opendocument.text",
1533
+ ods: "application/vnd.oasis.opendocument.spreadsheet",
1534
+ odp: "application/vnd.oasis.opendocument.presentation",
1535
+ // Texto y Otros
1536
+ txt: "text/plain",
1537
+ rtf: "application/rtf",
1538
+ csv: "text/csv",
1539
+ markdown: "text/markdown, .md",
1540
+ epub: "application/epub+zip"
1541
+ },
1542
+ // --- ARCHIVOS COMPRIMIDOS (Nueva Categoría) ---
1543
+ archives: {
1544
+ zip: "application/zip, application/x-zip-compressed",
1545
+ rar: "application/x-rar-compressed, .rar",
1546
+ sevenZ: "application/x-7z-compressed",
1547
+ tar: "application/x-tar",
1548
+ gz: "application/gzip",
1549
+ iso: "application/x-iso9660-image, .iso"
1550
+ },
1551
+ // --- AUDIO Y VIDEO ---
1552
+ media: {
1553
+ audio: "audio/*",
1554
+ video: "video/*",
1555
+ mp3: "audio/mpeg",
1556
+ wav: "audio/wav",
1557
+ ogg: "audio/ogg, video/ogg",
1558
+ mp4: "video/mp4",
1559
+ webm: "video/webm",
1560
+ mov: "video/quicktime",
1561
+ avi: "video/x-msvideo"
1562
+ },
1563
+ // --- FUENTES / TIPOGRAFÍA (Nueva Categoría) ---
1564
+ fonts: {
1565
+ woff: "font/woff",
1566
+ woff2: "font/woff2",
1567
+ ttf: "font/ttf, application/x-font-ttf",
1568
+ otf: "font/otf, application/x-font-opentype",
1569
+ eot: "application/vnd.ms-fontobject"
1570
+ },
1571
+ // --- CÓDIGO Y DESARROLLO (Muy Expandido) ---
1572
+ code: {
1573
+ // Web
1574
+ html: "text/html",
1575
+ css: "text/css",
1576
+ js: "text/javascript, application/javascript, .mjs",
1577
+ ts: "application/typescript, .ts, .tsx",
1578
+ json: "application/json",
1579
+ xml: "application/xml, text/xml",
1580
+ // Backend / Scripts
1581
+ python: "text/x-python, .py",
1582
+ java: "text/x-java-source, .java, application/java-archive, .jar",
1583
+ csharp: "text/plain, .cs",
1584
+ cpp: "text/x-c++, .cpp, .h, .hpp",
1585
+ c: "text/x-c, .c",
1586
+ php: "application/x-httpd-php, .php",
1587
+ sql: "application/sql, .sql",
1588
+ sh: "application/x-sh, .sh",
1589
+ yaml: "text/yaml, .yaml, .yml"
1590
+ }
1591
+ }, en = (e) => {
1592
+ if (Array.isArray(e))
1593
+ return e.map((o) => en(o)).filter((o) => o !== void 0).join(", ");
1594
+ if (e !== "*") {
1595
+ if (typeof e == "string") {
1596
+ if (e in ye) {
1597
+ const t = ye[e];
1598
+ return Object.values(t).join(", ");
1599
+ }
1600
+ return;
1601
+ }
1602
+ if (typeof e == "object") {
1603
+ const t = [];
1604
+ return Object.keys(e).forEach((o) => {
1605
+ const r = e[o], n = ye[o];
1606
+ r && n && r.forEach((i) => {
1607
+ const c = n[i];
1608
+ c && t.push(c);
1609
+ });
1610
+ }), t.join(", ");
1611
+ }
1612
+ }
1613
+ }, Ht = "_btnThemeDark_nlyt3_36", Wt = "_iconButton_nlyt3_58", Jt = "_containerCustomIcon_nlyt3_65", Xt = "_btnBorderedThemeDark_nlyt3_78", Zt = "_btnThemeGreen_nlyt3_98", Vt = "_btnBorderedThemeGreen_nlyt3_140", Kt = "_btnThemeBlue_nlyt3_160", eo = "_btnBorderedThemeBlue_nlyt3_202", no = "_btnThemeRed_nlyt3_222", to = "_btnBorderedThemeRed_nlyt3_264", oo = "_btnThemePurple_nlyt3_284", ro = "_btnBorderedThemePurple_nlyt3_326", io = "_btnThemeGray_nlyt3_346", co = "_btnBorderedThemeGray_nlyt3_388", so = "_btnThemeLight_nlyt3_408", ao = "_btnBorderedThemeLight_nlyt3_450", lo = "_btnThemeYellow_nlyt3_470", uo = "_btnBorderedThemeYellow_nlyt3_512", ce = {
1614
+ btnThemeDark: Ht,
1615
+ iconButton: Wt,
1616
+ containerCustomIcon: Jt,
1617
+ btnBorderedThemeDark: Xt,
1618
+ btnThemeGreen: Zt,
1619
+ btnBorderedThemeGreen: Vt,
1620
+ btnThemeBlue: Kt,
1621
+ btnBorderedThemeBlue: eo,
1622
+ btnThemeRed: no,
1623
+ btnBorderedThemeRed: to,
1624
+ btnThemePurple: oo,
1625
+ btnBorderedThemePurple: ro,
1626
+ btnThemeGray: io,
1627
+ btnBorderedThemeGray: co,
1628
+ btnThemeLight: so,
1629
+ btnBorderedThemeLight: ao,
1630
+ btnThemeYellow: lo,
1631
+ btnBorderedThemeYellow: uo
1632
+ }, fo = Q(function({
1633
+ label: t = "Texto del Botón",
1634
+ action: o = () => {
1635
+ alert("Botón presionado");
1636
+ },
1637
+ font: r,
1638
+ width: n,
1639
+ height: i,
1640
+ icon: c = "tabler:send",
1641
+ seeIcon: s = !0,
1642
+ textSize: a,
1643
+ iconColor: l,
1644
+ iconSize: u,
1645
+ styleType: d = "ThemeDark",
1646
+ rounded: g = "md",
1647
+ borderedStyle: h = !1,
1648
+ iconOn: _,
1649
+ padding: b,
1650
+ shadow: p = !1,
1651
+ colorShadow: m,
1652
+ customClassButton: T,
1653
+ customClassLabel: x,
1654
+ customClassIcon: v,
1655
+ customIcon: k,
1656
+ args: y
1657
+ }, I) {
1658
+ const w = re(() => ie(g ?? "full"), [g]);
1659
+ return /* @__PURE__ */ N(
1660
+ "button",
1661
+ {
1662
+ ref: I,
1663
+ className: `${ce[`btn${d}`]} ${h && ce[`btnBordered${d}`]} ${T}`,
1664
+ style: {
1665
+ borderRadius: w,
1666
+ width: n ?? "auto",
1667
+ height: i ?? "auto",
1668
+ flexDirection: _ === "left" ? "row-reverse" : "row",
1669
+ boxShadow: `${p ? "0 0 7px " + (m || "#000") : ""}`,
1670
+ padding: b
1671
+ },
1672
+ onClick: (C) => {
1673
+ C.preventDefault(), o();
1674
+ },
1675
+ ...y,
1676
+ children: [
1677
+ t && /* @__PURE__ */ f(
1678
+ "p",
1679
+ {
1680
+ className: `${x}`,
1681
+ style: {
1682
+ fontSize: a,
1683
+ fontFamily: r
1684
+ },
1685
+ children: t
1686
+ }
1687
+ ),
1688
+ k ? /* @__PURE__ */ f("div", { className: `${ce.containerCustomIcon} ${v}`, children: k }) : s && /* @__PURE__ */ f(
1689
+ D,
1690
+ {
1691
+ icon: c,
1692
+ className: `${ce.iconButton} ${v}`,
1693
+ style: { fontSize: u, color: l }
1694
+ }
1695
+ )
1696
+ ]
1697
+ }
1698
+ );
1699
+ }), Lo = Q(function({
1700
+ label: t,
1701
+ errorMessage: o,
1702
+ acceptFiles: r = "*",
1703
+ selectedFileE: n,
1704
+ setSelectedFileE: i,
1705
+ maxMBSize: c,
1706
+ shadow: s = !0,
1707
+ textButtonCancel: a = "Cancelar",
1708
+ width: l,
1709
+ height: u,
1710
+ bgColor: d,
1711
+ bgColorHover: g,
1712
+ labelSize: h,
1713
+ labelColor: _,
1714
+ rounded: b = "md",
1715
+ iconSize: p = 30,
1716
+ seeIcon: m = !0,
1717
+ icon: T,
1718
+ iconColor: x = "#fff",
1719
+ customFIleClass: v,
1720
+ customSelectedClass: k,
1721
+ customLabelClass: y,
1722
+ customIconClass: I,
1723
+ customIcon: w,
1724
+ args: C
1725
+ }, S) {
1726
+ const A = $e(), M = Re(0), [R, z] = B(n), [Y, J] = B(!1), [X, G] = B(null), [O, q] = B(!1), H = en(r), V = () => {
1727
+ z(null), i(null);
1728
+ }, j = ($) => {
1729
+ if (G(null), c) {
1730
+ const on = c * 1024 * 1024;
1731
+ if ($.size > on) {
1732
+ G(`El archivo excede el límite de ${c} MB.`), V();
1733
+ return;
1734
+ }
1735
+ }
1736
+ z($), i($);
1737
+ }, pe = ($) => {
1738
+ $.preventDefault(), $.target.files && $.target.files[0] ? j($.target.files[0]) : V();
1739
+ }, K = ($) => {
1740
+ $.preventDefault(), $.stopPropagation(), M.current += 1, $.type === "dragenter" || $.type === "dragover" ? q(!0) : $.type === "dragleave" && q(!1);
1741
+ }, me = ($) => {
1742
+ $.preventDefault(), $.stopPropagation(), M.current -= 1, M.current === 0 && q(!1);
1743
+ }, tn = ($) => {
1744
+ $.preventDefault(), $.stopPropagation(), q(!1), M.current = 0, $.dataTransfer.files && $.dataTransfer.files[0] && j($.dataTransfer.files[0]);
1745
+ }, he = re(() => ie(b ?? "lg"), [b]);
1746
+ return /* @__PURE__ */ f("div", { className: P.container, children: /* @__PURE__ */ N("div", { className: P.containerInputError, children: [
1747
+ R ? /* @__PURE__ */ N(
1748
+ "div",
1749
+ {
1750
+ className: `${P.containerSelectedFile} ${k}`,
1751
+ style: {
1752
+ boxShadow: s ? "0 0 5px #00000050" : "",
1753
+ borderRadius: he,
1754
+ width: l,
1755
+ height: u
1756
+ },
1757
+ children: [
1758
+ m && /* @__PURE__ */ f(
1759
+ D,
1760
+ {
1761
+ icon: "uim:paperclip",
1762
+ className: P.icon
1763
+ }
1764
+ ),
1765
+ /* @__PURE__ */ f("p", { className: P.fileName, children: R?.name }),
1766
+ /* @__PURE__ */ f("div", { className: P.backdrop, style: { borderRadius: he }, children: /* @__PURE__ */ f(
1767
+ fo,
1768
+ {
1769
+ styleType: "ThemeRed",
1770
+ action: V,
1771
+ label: a,
1772
+ rounded: "full",
1773
+ icon: "fa:trash",
1774
+ iconSize: "1.4rem",
1775
+ iconColor: "#fff",
1776
+ textSize: 12,
1777
+ padding: "7px"
1778
+ }
1779
+ ) })
1780
+ ]
1781
+ }
1782
+ ) : /* @__PURE__ */ N(
1783
+ "label",
1784
+ {
1785
+ htmlFor: A,
1786
+ className: `${P.containerInputFile} ${v}`,
1787
+ onMouseEnter: () => J(!0),
1788
+ onMouseLeave: () => J(!1),
1789
+ onDragEnter: K,
1790
+ onDragLeave: me,
1791
+ onDragOver: ($) => $.preventDefault(),
1792
+ onDrop: tn,
1793
+ style: {
1794
+ boxShadow: s ? "0 0 5px #00000050" : "",
1795
+ borderRadius: he,
1796
+ backgroundColor: O ? "#fff" : Y ? g : d,
1797
+ borderColor: O ? d || "#6936ee" : "",
1798
+ width: l,
1799
+ height: u
1800
+ },
1801
+ children: [
1802
+ !w || O ? m && /* @__PURE__ */ f(
1803
+ D,
1804
+ {
1805
+ icon: O ? "tabler:drag-drop" : T ?? "mingcute:upload-3-fill",
1806
+ className: `${P.icon} ${I}`,
1807
+ onDragEnter: K,
1808
+ onDragLeave: me,
1809
+ style: {
1810
+ color: O ? d || "#6936ee" : x,
1811
+ fontSize: p
1812
+ }
1813
+ }
1814
+ ) : /* @__PURE__ */ f(
1815
+ "div",
1816
+ {
1817
+ className: `${P.containerCustomIcon} ${I}`,
1818
+ style: { height: p ?? "2rem" },
1819
+ children: w
1820
+ }
1821
+ ),
1822
+ /* @__PURE__ */ f(
1823
+ "span",
1824
+ {
1825
+ className: `${P.textInput} ${y}`,
1826
+ style: {
1827
+ fontSize: h,
1828
+ color: O ? d || "#6936ee" : _
1829
+ },
1830
+ onDragEnter: K,
1831
+ onDragLeave: me,
1832
+ children: O ? "Suelta para agregar" : t ?? "Click o arrastra un archivo"
1833
+ }
1834
+ ),
1835
+ /* @__PURE__ */ f(
1836
+ "input",
1837
+ {
1838
+ ref: S,
1839
+ id: A,
1840
+ type: "file",
1841
+ accept: H,
1842
+ className: P.inputFile,
1843
+ onChange: pe,
1844
+ ...C
1845
+ }
1846
+ )
1847
+ ]
1848
+ }
1849
+ ),
1850
+ /* @__PURE__ */ f("p", { className: P.errorMessage, children: X || o || "" })
1851
+ ] }) });
1852
+ }), po = "_container_6mb4o_36", mo = "_containerInputError_6mb4o_50", ho = "_inputElement_6mb4o_69", go = "_errorMessage_6mb4o_80", _o = "_icon_6mb4o_92", yo = "_containerCustomIcon_6mb4o_99", bo = "_containerLabel_6mb4o_111", xo = "_containerGroupRadio_6mb4o_127", vo = "_containerRadio_6mb4o_134", L = {
1853
+ container: po,
1854
+ containerInputError: mo,
1855
+ inputElement: ho,
1856
+ errorMessage: go,
1857
+ icon: _o,
1858
+ containerCustomIcon: yo,
1859
+ containerLabel: bo,
1860
+ containerGroupRadio: xo,
1861
+ containerRadio: vo
1862
+ }, Mo = Q(function({
1863
+ label: t,
1864
+ labelSize: o,
1865
+ labelColor: r,
1866
+ options: n,
1867
+ errorMessage: i,
1868
+ textSize: c,
1869
+ textColor: s,
1870
+ setValue: a,
1871
+ name: l,
1872
+ HorV: u = "horizontal",
1873
+ icon: d,
1874
+ iconInRight: g,
1875
+ iconSize: h,
1876
+ iconColor: _,
1877
+ customIcon: b,
1878
+ seeIcon: p = !0,
1879
+ customInputClass: m,
1880
+ customLabelClass: T,
1881
+ customTextClass: x,
1882
+ customIconLabelClass: v,
1883
+ customContainerRadiosClass: k
1884
+ }, y) {
1885
+ const I = $e();
1886
+ return /* @__PURE__ */ N("div", { ref: y, className: L.container, children: [
1887
+ /* @__PURE__ */ N("div", { className: L.containerLabel, style: { flexDirection: g ? "row-reverse" : "row", justifyContent: g ? "flex-end" : "flex-start" }, children: [
1888
+ b ? /* @__PURE__ */ f(
1889
+ "div",
1890
+ {
1891
+ className: `${L.containerCustomIcon} ${v}`,
1892
+ style: { height: h },
1893
+ children: b
1894
+ }
1895
+ ) : p && /* @__PURE__ */ f(
1896
+ D,
1897
+ {
1898
+ icon: d ?? "mi:user",
1899
+ className: `${L.icon} ${v}`,
1900
+ style: { color: _, fontSize: h }
1901
+ }
1902
+ ),
1903
+ /* @__PURE__ */ f(
1904
+ "label",
1905
+ {
1906
+ style: {
1907
+ fontSize: o,
1908
+ color: r
1909
+ },
1910
+ className: x,
1911
+ children: t
1912
+ }
1913
+ )
1914
+ ] }),
1915
+ /* @__PURE__ */ N("div", { className: L.containerInputError, children: [
1916
+ /* @__PURE__ */ f(
1917
+ "div",
1918
+ {
1919
+ className: `${L.containerGroupRadio} ${k}`,
1920
+ style: {
1921
+ flexDirection: u === "vertical" ? "column" : "row",
1922
+ alignItems: u === "vertical" ? "stretch" : "center",
1923
+ justifyContent: u === "vertical" ? "center" : "flex-start"
1924
+ },
1925
+ children: n.map((w, C) => {
1926
+ const S = `${I}-${C}`;
1927
+ return /* @__PURE__ */ N("div", { className: L.containerRadio, children: [
1928
+ /* @__PURE__ */ f(
1929
+ "input",
1930
+ {
1931
+ id: S,
1932
+ className: `${L.inputElement} ${m}`,
1933
+ style: { fontSize: c, color: s },
1934
+ type: "radio",
1935
+ name: l,
1936
+ value: w.value,
1937
+ onChange: (A) => a(A.target.value)
1938
+ }
1939
+ ),
1940
+ w.customIcon ? /* @__PURE__ */ f("div", { className: `${L.containerCustomIcon} ${w.customIconClass}`, children: w.customIcon }) : w.seeIcon && /* @__PURE__ */ f(
1941
+ D,
1942
+ {
1943
+ icon: w.icon ?? "mi:user",
1944
+ className: `${L.icon} ${w.customIconClass}`,
1945
+ style: { color: w.iconColor, fontSize: h }
1946
+ }
1947
+ ),
1948
+ /* @__PURE__ */ f(
1949
+ "label",
1950
+ {
1951
+ htmlFor: S,
1952
+ className: T,
1953
+ style: {
1954
+ fontSize: c,
1955
+ color: s
1956
+ },
1957
+ children: w.label
1958
+ }
1959
+ )
1960
+ ] }, I + w.value);
1961
+ })
1962
+ }
1963
+ ),
1964
+ i !== "" && /* @__PURE__ */ f("p", { className: L.errorMessage, children: i })
1965
+ ] })
1966
+ ] });
1967
+ }), Io = "_container_1ckth_36", wo = "_containerInputError_1ckth_50", $o = "_containerInput_1ckth_50", To = "_inputElement_1ckth_69", No = "_errorMessage_1ckth_80", Eo = "_icon_1ckth_92", ko = "_containerCustomIcon_1ckth_99", Co = "_containerLabel_1ckth_111", So = "_counterCharacter_1ckth_142", U = {
1968
+ container: Io,
1969
+ containerInputError: wo,
1970
+ containerInput: $o,
1971
+ inputElement: To,
1972
+ errorMessage: No,
1973
+ icon: Eo,
1974
+ containerCustomIcon: ko,
1975
+ containerLabel: Co,
1976
+ counterCharacter: So
1977
+ }, Bo = Q(function({
1978
+ placeholder: t,
1979
+ value: o,
1980
+ setValue: r,
1981
+ label: n,
1982
+ errorMessage: i,
1983
+ seeMaxCharCounter: c = !0,
1984
+ maxCharacters: s = 300,
1985
+ resize: a = !0,
1986
+ rounded: l,
1987
+ width: u = 250,
1988
+ height: d = 100,
1989
+ maxWidth: g = 500,
1990
+ maxHeight: h = 500,
1991
+ border: _,
1992
+ shadow: b,
1993
+ textSize: p,
1994
+ textColor: m,
1995
+ bgColor: T,
1996
+ customContainerClass: x,
1997
+ customTextAreaClass: v,
1998
+ customIconClass: k,
1999
+ seeIcon: y,
2000
+ iconInRight: I = !1,
2001
+ iconColor: w,
2002
+ iconSize: C,
2003
+ icon: S,
2004
+ customIcon: A,
2005
+ args: M
2006
+ }, R) {
2007
+ const z = re(() => ie(l ?? "lg"), [l]);
2008
+ return /* @__PURE__ */ N(
2009
+ "div",
2010
+ {
2011
+ className: U.container,
2012
+ children: [
2013
+ /* @__PURE__ */ N("div", { className: U.containerLabel, style: { flexDirection: I ? "row-reverse" : "row", justifyContent: I ? "flex-end" : "flex-start" }, children: [
2014
+ A ? /* @__PURE__ */ f(
2015
+ "div",
2016
+ {
2017
+ className: `${U.containerCustomIcon} ${k}`,
2018
+ style: { height: C },
2019
+ children: A
2020
+ }
2021
+ ) : y && /* @__PURE__ */ f(
2022
+ D,
2023
+ {
2024
+ icon: S ?? "mi:user",
2025
+ className: `${U.icon} ${k}`,
2026
+ style: { color: w, fontSize: C }
2027
+ }
2028
+ ),
2029
+ /* @__PURE__ */ f(
2030
+ "label",
2031
+ {
2032
+ style: {
2033
+ fontSize: p,
2034
+ color: m
2035
+ },
2036
+ children: n
2037
+ }
2038
+ )
2039
+ ] }),
2040
+ /* @__PURE__ */ N("div", { className: U.containerInputError, children: [
2041
+ /* @__PURE__ */ N(
2042
+ "div",
2043
+ {
2044
+ className: `${U.containerInput} ${x}`,
2045
+ style: {
2046
+ borderRadius: z,
2047
+ border: _ || _ === void 0 ? "" : "none",
2048
+ boxShadow: b ? "0 0 5px #00000075" : "",
2049
+ backgroundColor: T,
2050
+ resize: a ? "both" : "none",
2051
+ width: u,
2052
+ height: d,
2053
+ minWidth: u,
2054
+ minHeight: d,
2055
+ maxWidth: g,
2056
+ maxHeight: h
2057
+ },
2058
+ children: [
2059
+ /* @__PURE__ */ f(
2060
+ "textarea",
2061
+ {
2062
+ ref: R,
2063
+ className: `${U.inputElement} ${v}`,
2064
+ style: {
2065
+ fontSize: p,
2066
+ color: m
2067
+ },
2068
+ placeholder: t,
2069
+ value: o,
2070
+ maxLength: s,
2071
+ onChange: (Y) => r?.(Y.target.value),
2072
+ ...M
2073
+ }
2074
+ ),
2075
+ c && /* @__PURE__ */ N("p", { className: U.counterCharacter, children: [
2076
+ o ? o?.length : 0,
2077
+ "/",
2078
+ s
2079
+ ] })
2080
+ ]
2081
+ }
2082
+ ),
2083
+ i !== "" && /* @__PURE__ */ f("p", { className: U.errorMessage, children: i })
2084
+ ] })
2085
+ ]
2086
+ }
2087
+ );
2088
+ }), Ro = [
2089
+ "America/Mexico_City",
2090
+ "America/New_York",
2091
+ "America/Los_Angeles",
2092
+ "America/Bogota",
2093
+ "America/Argentina/Buenos_Aires",
2094
+ "America/Sao_Paulo",
2095
+ "Europe/Madrid",
2096
+ "Europe/London",
2097
+ "Europe/Paris",
2098
+ "Asia/Tokyo",
2099
+ "Asia/Shanghai",
2100
+ "Australia/Sydney",
2101
+ "UTC"
2102
+ ], de = "America/Mexico_City";
2103
+ function nn(e, t) {
2104
+ return new Intl.DateTimeFormat("es-MX", {
2105
+ timeZone: t,
2106
+ year: "numeric",
2107
+ month: "2-digit",
2108
+ day: "2-digit",
2109
+ hour: "2-digit",
2110
+ minute: "2-digit",
2111
+ second: "2-digit",
2112
+ hour12: !0
2113
+ }).formatToParts(e).reduce((r, n) => (r[n.type] = n.value, r), {});
2114
+ }
2115
+ function zo(e) {
2116
+ if (!e) return 0;
2117
+ let t;
2118
+ return typeof e == "string" ? t = new Date(e) : t = e, Math.floor(t.getTime() / 1e3);
2119
+ }
2120
+ function Go(e, t = de) {
2121
+ if (!e) return "";
2122
+ const o = new Date(e * 1e3), r = nn(o, t);
2123
+ return `${r.year}-${r.month}-${r.day}`;
2124
+ }
2125
+ function jo(e, t = de) {
2126
+ if (!e) return "";
2127
+ const o = ["ENE", "FEB", "MAR", "ABR", "MAY", "JUN", "JUL", "AGO", "SEP", "OCT", "NOV", "DIC"], r = new Date(e * 1e3), n = nn(r, t), i = parseInt(n.month, 10) - 1, c = o[i] || n.month, s = n.dayPeriod ? n.dayPeriod.toUpperCase().replace(/\./g, "") : "";
2128
+ return `${n.day}/${c}/${n.year} - ${n.hour}:${n.minute} ${s}`;
2129
+ }
2130
+ function qo(e, t = de) {
2131
+ if (!e) return "";
2132
+ const o = new Date(e * 1e3), n = new Intl.DateTimeFormat("es-MX", {
2133
+ timeZone: t,
2134
+ year: "numeric",
2135
+ month: "2-digit",
2136
+ day: "2-digit",
2137
+ hour: "2-digit",
2138
+ minute: "2-digit",
2139
+ hour12: !1
2140
+ }).formatToParts(o).reduce((i, c) => (i[c.type] = c.value, i), {});
2141
+ return `${n.year}-${n.month}-${n.day} ${n.hour}:${n.minute}`;
2142
+ }
2143
+ function Uo(e, t = de) {
2144
+ return jo(e, t).split(" - ")[0];
2145
+ }
2146
+ export {
2147
+ fo as ButtonGal,
2148
+ Ao as CheckBoxGal,
2149
+ Fo as DropDownGal,
2150
+ Lo as InputFileGal,
2151
+ Mo as InputRadioGal,
2152
+ Po as InputTextGal,
2153
+ Ro as TIMEZONES,
2154
+ Bo as TextAreaGal,
2155
+ zo as convertToUnix,
2156
+ Go as unixToDate,
2157
+ qo as unixToDateTime,
2158
+ jo as unixToDateTimeString,
2159
+ Uo as unixToStringYMD,
2160
+ At as useOnClickOutside
2161
+ };