componentables 0.1.14 → 0.1.15

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { jsxs as h, jsx as l, Fragment as Ae } from "react/jsx-runtime";
2
- import V, { useMemo as Ie, useEffect as H, createContext as je, useContext as Oe, useState as $, useCallback as ve, useRef as ce } from "react";
1
+ import { jsxs as x, jsx as s, Fragment as Ae } from "react/jsx-runtime";
2
+ import B, { useMemo as Ie, useEffect as H, createContext as je, useContext as Oe, useState as $, useCallback as ve, useRef as ce } from "react";
3
3
  import { Oval as Te } from "react-loader-spinner";
4
4
  import { createPortal as $e } from "react-dom";
5
5
  import { toast as re } from "react-toastify";
@@ -7,13 +7,13 @@ function we(e) {
7
7
  var r, t, o = "";
8
8
  if (typeof e == "string" || typeof e == "number") o += e;
9
9
  else if (typeof e == "object") if (Array.isArray(e)) {
10
- var s = e.length;
11
- for (r = 0; r < s; r++) e[r] && (t = we(e[r])) && (o && (o += " "), o += t);
10
+ var a = e.length;
11
+ for (r = 0; r < a; r++) e[r] && (t = we(e[r])) && (o && (o += " "), o += t);
12
12
  } else for (t in e) e[t] && (o && (o += " "), o += t);
13
13
  return o;
14
14
  }
15
15
  function Fe() {
16
- for (var e, r, t = 0, o = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (r = we(e)) && (o && (o += " "), o += r);
16
+ for (var e, r, t = 0, o = "", a = arguments.length; t < a; t++) (e = arguments[t]) && (r = we(e)) && (o && (o += " "), o += r);
17
17
  return o;
18
18
  }
19
19
  const ue = "-", Re = (e) => {
@@ -34,15 +34,15 @@ const ue = "-", Re = (e) => {
34
34
  }, ke = (e, r) => {
35
35
  if (e.length === 0)
36
36
  return r.classGroupId;
37
- const t = e[0], o = r.nextPart.get(t), s = o ? ke(e.slice(1), o) : void 0;
38
- if (s)
39
- return s;
37
+ const t = e[0], o = r.nextPart.get(t), a = o ? ke(e.slice(1), o) : void 0;
38
+ if (a)
39
+ return a;
40
40
  if (r.validators.length === 0)
41
41
  return;
42
- const a = e.join(ue);
42
+ const l = e.join(ue);
43
43
  return r.validators.find(({
44
44
  validator: i
45
- }) => i(a))?.classGroupId;
45
+ }) => i(l))?.classGroupId;
46
46
  }, pe = /^\[(.+)\]$/, _e = (e) => {
47
47
  if (pe.test(e)) {
48
48
  const r = pe.exec(e)[1], t = r?.substring(0, r.indexOf(":"));
@@ -57,29 +57,29 @@ const ue = "-", Re = (e) => {
57
57
  nextPart: /* @__PURE__ */ new Map(),
58
58
  validators: []
59
59
  };
60
- return Ge(Object.entries(e.classGroups), t).forEach(([a, i]) => {
61
- de(i, o, a, r);
60
+ return Ge(Object.entries(e.classGroups), t).forEach(([l, i]) => {
61
+ de(i, o, l, r);
62
62
  }), o;
63
63
  }, de = (e, r, t, o) => {
64
- e.forEach((s) => {
65
- if (typeof s == "string") {
66
- const a = s === "" ? r : me(r, s);
67
- a.classGroupId = t;
64
+ e.forEach((a) => {
65
+ if (typeof a == "string") {
66
+ const l = a === "" ? r : me(r, a);
67
+ l.classGroupId = t;
68
68
  return;
69
69
  }
70
- if (typeof s == "function") {
71
- if (Be(s)) {
72
- de(s(o), r, t, o);
70
+ if (typeof a == "function") {
71
+ if (Be(a)) {
72
+ de(a(o), r, t, o);
73
73
  return;
74
74
  }
75
75
  r.validators.push({
76
- validator: s,
76
+ validator: a,
77
77
  classGroupId: t
78
78
  });
79
79
  return;
80
80
  }
81
- Object.entries(s).forEach(([a, i]) => {
82
- de(i, me(r, a), t, o);
81
+ Object.entries(a).forEach(([l, i]) => {
82
+ de(i, me(r, l), t, o);
83
83
  });
84
84
  });
85
85
  }, me = (e, r) => {
@@ -91,8 +91,8 @@ const ue = "-", Re = (e) => {
91
91
  }), t = t.nextPart.get(o);
92
92
  }), t;
93
93
  }, Be = (e) => e.isThemeGetter, Ge = (e, r) => r ? e.map(([t, o]) => {
94
- const s = o.map((a) => typeof a == "string" ? r + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, n]) => [r + i, n])) : a);
95
- return [t, s];
94
+ const a = o.map((l) => typeof l == "string" ? r + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([i, n]) => [r + i, n])) : l);
95
+ return [t, a];
96
96
  }) : e, We = (e) => {
97
97
  if (e < 1)
98
98
  return {
@@ -102,48 +102,48 @@ const ue = "-", Re = (e) => {
102
102
  }
103
103
  };
104
104
  let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
105
- const s = (a, i) => {
106
- t.set(a, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
105
+ const a = (l, i) => {
106
+ t.set(l, i), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
107
107
  };
108
108
  return {
109
- get(a) {
110
- let i = t.get(a);
109
+ get(l) {
110
+ let i = t.get(l);
111
111
  if (i !== void 0)
112
112
  return i;
113
- if ((i = o.get(a)) !== void 0)
114
- return s(a, i), i;
113
+ if ((i = o.get(l)) !== void 0)
114
+ return a(l, i), i;
115
115
  },
116
- set(a, i) {
117
- t.has(a) ? t.set(a, i) : s(a, i);
116
+ set(l, i) {
117
+ t.has(l) ? t.set(l, i) : a(l, i);
118
118
  }
119
119
  };
120
120
  }, Ce = "!", He = (e) => {
121
121
  const {
122
122
  separator: r,
123
123
  experimentalParseClassName: t
124
- } = e, o = r.length === 1, s = r[0], a = r.length, i = (n) => {
124
+ } = e, o = r.length === 1, a = r[0], l = r.length, i = (n) => {
125
125
  const c = [];
126
- let d = 0, g = 0, y;
126
+ let d = 0, m = 0, k;
127
127
  for (let u = 0; u < n.length; u++) {
128
- let k = n[u];
128
+ let w = n[u];
129
129
  if (d === 0) {
130
- if (k === s && (o || n.slice(u, u + a) === r)) {
131
- c.push(n.slice(g, u)), g = u + a;
130
+ if (w === a && (o || n.slice(u, u + l) === r)) {
131
+ c.push(n.slice(m, u)), m = u + l;
132
132
  continue;
133
133
  }
134
- if (k === "/") {
135
- y = u;
134
+ if (w === "/") {
135
+ k = u;
136
136
  continue;
137
137
  }
138
138
  }
139
- k === "[" ? d++ : k === "]" && d--;
139
+ w === "[" ? d++ : w === "]" && d--;
140
140
  }
141
- const x = c.length === 0 ? n : n.substring(g), v = x.startsWith(Ce), m = v ? x.substring(1) : x, w = y && y > g ? y - g : void 0;
141
+ const f = c.length === 0 ? n : n.substring(m), v = f.startsWith(Ce), b = v ? f.substring(1) : f, y = k && k > m ? k - m : void 0;
142
142
  return {
143
143
  modifiers: c,
144
144
  hasImportantModifier: v,
145
- baseClassName: m,
146
- maybePostfixModifierPosition: w
145
+ baseClassName: b,
146
+ maybePostfixModifierPosition: y
147
147
  };
148
148
  };
149
149
  return t ? (n) => t({
@@ -166,36 +166,36 @@ const ue = "-", Re = (e) => {
166
166
  const {
167
167
  parseClassName: t,
168
168
  getClassGroupId: o,
169
- getConflictingClassGroupIds: s
170
- } = r, a = [], i = e.trim().split(Je);
169
+ getConflictingClassGroupIds: a
170
+ } = r, l = [], i = e.trim().split(Je);
171
171
  let n = "";
172
172
  for (let c = i.length - 1; c >= 0; c -= 1) {
173
173
  const d = i[c], {
174
- modifiers: g,
175
- hasImportantModifier: y,
176
- baseClassName: x,
174
+ modifiers: m,
175
+ hasImportantModifier: k,
176
+ baseClassName: f,
177
177
  maybePostfixModifierPosition: v
178
178
  } = t(d);
179
- let m = !!v, w = o(m ? x.substring(0, v) : x);
180
- if (!w) {
181
- if (!m) {
179
+ let b = !!v, y = o(b ? f.substring(0, v) : f);
180
+ if (!y) {
181
+ if (!b) {
182
182
  n = d + (n.length > 0 ? " " + n : n);
183
183
  continue;
184
184
  }
185
- if (w = o(x), !w) {
185
+ if (y = o(f), !y) {
186
186
  n = d + (n.length > 0 ? " " + n : n);
187
187
  continue;
188
188
  }
189
- m = !1;
189
+ b = !1;
190
190
  }
191
- const u = Ue(g).join(":"), k = y ? u + Ce : u, b = k + w;
192
- if (a.includes(b))
191
+ const u = Ue(m).join(":"), w = k ? u + Ce : u, h = w + y;
192
+ if (l.includes(h))
193
193
  continue;
194
- a.push(b);
195
- const L = s(w, m);
194
+ l.push(h);
195
+ const L = a(y, b);
196
196
  for (let P = 0; P < L.length; ++P) {
197
- const C = L[P];
198
- a.push(k + C);
197
+ const z = L[P];
198
+ l.push(w + z);
199
199
  }
200
200
  n = d + (n.length > 0 ? " " + n : n);
201
201
  }
@@ -216,26 +216,26 @@ const Ne = (e) => {
216
216
  return t;
217
217
  };
218
218
  function Xe(e, ...r) {
219
- let t, o, s, a = i;
219
+ let t, o, a, l = i;
220
220
  function i(c) {
221
- const d = r.reduce((g, y) => y(g), e());
222
- return t = Ye(d), o = t.cache.get, s = t.cache.set, a = n, n(c);
221
+ const d = r.reduce((m, k) => k(m), e());
222
+ return t = Ye(d), o = t.cache.get, a = t.cache.set, l = n, n(c);
223
223
  }
224
224
  function n(c) {
225
225
  const d = o(c);
226
226
  if (d)
227
227
  return d;
228
- const g = Ke(c, t);
229
- return s(c, g), g;
228
+ const m = Ke(c, t);
229
+ return a(c, m), m;
230
230
  }
231
231
  return function() {
232
- return a(Ze.apply(null, arguments));
232
+ return l(Ze.apply(null, arguments));
233
233
  };
234
234
  }
235
- const A = (e) => {
235
+ const I = (e) => {
236
236
  const r = (t) => t[e] || [];
237
237
  return r.isThemeGetter = !0, r;
238
- }, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), M = (e) => Me.test(e), Y = (e) => er.test(e), sr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lr = (e) => ee(e, sr, ze), ir = (e) => ee(e, "position", ze), cr = /* @__PURE__ */ new Set(["image", "url"]), dr = (e) => ee(e, cr, br), ur = (e) => ee(e, "", mr), oe = () => !0, ee = (e, r, t) => {
238
+ }, Me = /^\[(?:([a-z-]+):)?(.+)\]$/i, Qe = /^\d+\/\d+$/, qe = /* @__PURE__ */ new Set(["px", "full", "screen"]), er = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, tr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => Q(e) || qe.has(e) || Qe.test(e), U = (e) => ee(e, "length", pr), Q = (e) => !!e && !Number.isNaN(Number(e)), se = (e) => ee(e, "number", Q), te = (e) => !!e && Number.isInteger(Number(e)), ar = (e) => e.endsWith("%") && Q(e.slice(0, -1)), N = (e) => Me.test(e), Y = (e) => er.test(e), sr = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lr = (e) => ee(e, sr, ze), ir = (e) => ee(e, "position", ze), cr = /* @__PURE__ */ new Set(["image", "url"]), dr = (e) => ee(e, cr, br), ur = (e) => ee(e, "", mr), oe = () => !0, ee = (e, r, t) => {
239
239
  const o = Me.exec(e);
240
240
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
241
241
  }, pr = (e) => (
@@ -244,34 +244,34 @@ const A = (e) => {
244
244
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
245
245
  rr.test(e) && !tr.test(e)
246
246
  ), ze = () => !1, mr = (e) => or.test(e), br = (e) => nr.test(e), gr = () => {
247
- const e = A("colors"), r = A("spacing"), t = A("blur"), o = A("brightness"), s = A("borderColor"), a = A("borderRadius"), i = A("borderSpacing"), n = A("borderWidth"), c = A("contrast"), d = A("grayscale"), g = A("hueRotate"), y = A("invert"), x = A("gap"), v = A("gradientColorStops"), m = A("gradientColorStopPositions"), w = A("inset"), u = A("margin"), k = A("opacity"), b = A("padding"), L = A("saturate"), P = A("scale"), C = A("sepia"), I = A("skew"), f = A("space"), O = A("translate"), B = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", M, r], S = () => [M, r], z = () => ["", W, U], E = () => ["auto", Q, M], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], N = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", M], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [Q, M];
247
+ const e = I("colors"), r = I("spacing"), t = I("blur"), o = I("brightness"), a = I("borderColor"), l = I("borderRadius"), i = I("borderSpacing"), n = I("borderWidth"), c = I("contrast"), d = I("grayscale"), m = I("hueRotate"), k = I("invert"), f = I("gap"), v = I("gradientColorStops"), b = I("gradientColorStopPositions"), y = I("inset"), u = I("margin"), w = I("opacity"), h = I("padding"), L = I("saturate"), P = I("scale"), z = I("sepia"), E = I("skew"), g = I("space"), j = I("translate"), F = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", N, r], S = () => [N, r], M = () => ["", W, U], A = () => ["auto", Q, N], V = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], T = () => ["solid", "dashed", "dotted", "double", "none"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], D = () => ["", "0", N], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _ = () => [Q, N];
248
248
  return {
249
249
  cacheSize: 500,
250
250
  separator: ":",
251
251
  theme: {
252
252
  colors: [oe],
253
253
  spacing: [W, U],
254
- blur: ["none", "", Y, M],
255
- brightness: R(),
254
+ blur: ["none", "", Y, N],
255
+ brightness: _(),
256
256
  borderColor: [e],
257
- borderRadius: ["none", "", "full", Y, M],
257
+ borderRadius: ["none", "", "full", Y, N],
258
258
  borderSpacing: S(),
259
- borderWidth: z(),
260
- contrast: R(),
259
+ borderWidth: M(),
260
+ contrast: _(),
261
261
  grayscale: D(),
262
- hueRotate: R(),
262
+ hueRotate: _(),
263
263
  invert: D(),
264
264
  gap: S(),
265
265
  gradientColorStops: [e],
266
266
  gradientColorStopPositions: [ar, U],
267
267
  inset: K(),
268
268
  margin: K(),
269
- opacity: R(),
269
+ opacity: _(),
270
270
  padding: S(),
271
- saturate: R(),
272
- scale: R(),
271
+ saturate: _(),
272
+ scale: _(),
273
273
  sepia: D(),
274
- skew: R(),
274
+ skew: _(),
275
275
  space: S(),
276
276
  translate: S()
277
277
  },
@@ -282,7 +282,7 @@ const A = (e) => {
282
282
  * @see https://tailwindcss.com/docs/aspect-ratio
283
283
  */
284
284
  aspect: [{
285
- aspect: ["auto", "square", "video", M]
285
+ aspect: ["auto", "square", "video", N]
286
286
  }],
287
287
  /**
288
288
  * Container
@@ -301,14 +301,14 @@ const A = (e) => {
301
301
  * @see https://tailwindcss.com/docs/break-after
302
302
  */
303
303
  "break-after": [{
304
- "break-after": F()
304
+ "break-after": R()
305
305
  }],
306
306
  /**
307
307
  * Break Before
308
308
  * @see https://tailwindcss.com/docs/break-before
309
309
  */
310
310
  "break-before": [{
311
- "break-before": F()
311
+ "break-before": R()
312
312
  }],
313
313
  /**
314
314
  * Break Inside
@@ -367,7 +367,7 @@ const A = (e) => {
367
367
  * @see https://tailwindcss.com/docs/object-position
368
368
  */
369
369
  "object-position": [{
370
- object: [..._(), M]
370
+ object: [...V(), N]
371
371
  }],
372
372
  /**
373
373
  * Overflow
@@ -395,21 +395,21 @@ const A = (e) => {
395
395
  * @see https://tailwindcss.com/docs/overscroll-behavior
396
396
  */
397
397
  overscroll: [{
398
- overscroll: B()
398
+ overscroll: F()
399
399
  }],
400
400
  /**
401
401
  * Overscroll Behavior X
402
402
  * @see https://tailwindcss.com/docs/overscroll-behavior
403
403
  */
404
404
  "overscroll-x": [{
405
- "overscroll-x": B()
405
+ "overscroll-x": F()
406
406
  }],
407
407
  /**
408
408
  * Overscroll Behavior Y
409
409
  * @see https://tailwindcss.com/docs/overscroll-behavior
410
410
  */
411
411
  "overscroll-y": [{
412
- "overscroll-y": B()
412
+ "overscroll-y": F()
413
413
  }],
414
414
  /**
415
415
  * Position
@@ -421,63 +421,63 @@ const A = (e) => {
421
421
  * @see https://tailwindcss.com/docs/top-right-bottom-left
422
422
  */
423
423
  inset: [{
424
- inset: [w]
424
+ inset: [y]
425
425
  }],
426
426
  /**
427
427
  * Right / Left
428
428
  * @see https://tailwindcss.com/docs/top-right-bottom-left
429
429
  */
430
430
  "inset-x": [{
431
- "inset-x": [w]
431
+ "inset-x": [y]
432
432
  }],
433
433
  /**
434
434
  * Top / Bottom
435
435
  * @see https://tailwindcss.com/docs/top-right-bottom-left
436
436
  */
437
437
  "inset-y": [{
438
- "inset-y": [w]
438
+ "inset-y": [y]
439
439
  }],
440
440
  /**
441
441
  * Start
442
442
  * @see https://tailwindcss.com/docs/top-right-bottom-left
443
443
  */
444
444
  start: [{
445
- start: [w]
445
+ start: [y]
446
446
  }],
447
447
  /**
448
448
  * End
449
449
  * @see https://tailwindcss.com/docs/top-right-bottom-left
450
450
  */
451
451
  end: [{
452
- end: [w]
452
+ end: [y]
453
453
  }],
454
454
  /**
455
455
  * Top
456
456
  * @see https://tailwindcss.com/docs/top-right-bottom-left
457
457
  */
458
458
  top: [{
459
- top: [w]
459
+ top: [y]
460
460
  }],
461
461
  /**
462
462
  * Right
463
463
  * @see https://tailwindcss.com/docs/top-right-bottom-left
464
464
  */
465
465
  right: [{
466
- right: [w]
466
+ right: [y]
467
467
  }],
468
468
  /**
469
469
  * Bottom
470
470
  * @see https://tailwindcss.com/docs/top-right-bottom-left
471
471
  */
472
472
  bottom: [{
473
- bottom: [w]
473
+ bottom: [y]
474
474
  }],
475
475
  /**
476
476
  * Left
477
477
  * @see https://tailwindcss.com/docs/top-right-bottom-left
478
478
  */
479
479
  left: [{
480
- left: [w]
480
+ left: [y]
481
481
  }],
482
482
  /**
483
483
  * Visibility
@@ -489,7 +489,7 @@ const A = (e) => {
489
489
  * @see https://tailwindcss.com/docs/z-index
490
490
  */
491
491
  z: [{
492
- z: ["auto", te, M]
492
+ z: ["auto", te, N]
493
493
  }],
494
494
  // Flexbox and Grid
495
495
  /**
@@ -518,7 +518,7 @@ const A = (e) => {
518
518
  * @see https://tailwindcss.com/docs/flex
519
519
  */
520
520
  flex: [{
521
- flex: ["1", "auto", "initial", "none", M]
521
+ flex: ["1", "auto", "initial", "none", N]
522
522
  }],
523
523
  /**
524
524
  * Flex Grow
@@ -539,7 +539,7 @@ const A = (e) => {
539
539
  * @see https://tailwindcss.com/docs/order
540
540
  */
541
541
  order: [{
542
- order: ["first", "last", "none", te, M]
542
+ order: ["first", "last", "none", te, N]
543
543
  }],
544
544
  /**
545
545
  * Grid Template Columns
@@ -554,22 +554,22 @@ const A = (e) => {
554
554
  */
555
555
  "col-start-end": [{
556
556
  col: ["auto", {
557
- span: ["full", te, M]
558
- }, M]
557
+ span: ["full", te, N]
558
+ }, N]
559
559
  }],
560
560
  /**
561
561
  * Grid Column Start
562
562
  * @see https://tailwindcss.com/docs/grid-column
563
563
  */
564
564
  "col-start": [{
565
- "col-start": E()
565
+ "col-start": A()
566
566
  }],
567
567
  /**
568
568
  * Grid Column End
569
569
  * @see https://tailwindcss.com/docs/grid-column
570
570
  */
571
571
  "col-end": [{
572
- "col-end": E()
572
+ "col-end": A()
573
573
  }],
574
574
  /**
575
575
  * Grid Template Rows
@@ -584,22 +584,22 @@ const A = (e) => {
584
584
  */
585
585
  "row-start-end": [{
586
586
  row: ["auto", {
587
- span: [te, M]
588
- }, M]
587
+ span: [te, N]
588
+ }, N]
589
589
  }],
590
590
  /**
591
591
  * Grid Row Start
592
592
  * @see https://tailwindcss.com/docs/grid-row
593
593
  */
594
594
  "row-start": [{
595
- "row-start": E()
595
+ "row-start": A()
596
596
  }],
597
597
  /**
598
598
  * Grid Row End
599
599
  * @see https://tailwindcss.com/docs/grid-row
600
600
  */
601
601
  "row-end": [{
602
- "row-end": E()
602
+ "row-end": A()
603
603
  }],
604
604
  /**
605
605
  * Grid Auto Flow
@@ -613,42 +613,42 @@ const A = (e) => {
613
613
  * @see https://tailwindcss.com/docs/grid-auto-columns
614
614
  */
615
615
  "auto-cols": [{
616
- "auto-cols": ["auto", "min", "max", "fr", M]
616
+ "auto-cols": ["auto", "min", "max", "fr", N]
617
617
  }],
618
618
  /**
619
619
  * Grid Auto Rows
620
620
  * @see https://tailwindcss.com/docs/grid-auto-rows
621
621
  */
622
622
  "auto-rows": [{
623
- "auto-rows": ["auto", "min", "max", "fr", M]
623
+ "auto-rows": ["auto", "min", "max", "fr", N]
624
624
  }],
625
625
  /**
626
626
  * Gap
627
627
  * @see https://tailwindcss.com/docs/gap
628
628
  */
629
629
  gap: [{
630
- gap: [x]
630
+ gap: [f]
631
631
  }],
632
632
  /**
633
633
  * Gap X
634
634
  * @see https://tailwindcss.com/docs/gap
635
635
  */
636
636
  "gap-x": [{
637
- "gap-x": [x]
637
+ "gap-x": [f]
638
638
  }],
639
639
  /**
640
640
  * Gap Y
641
641
  * @see https://tailwindcss.com/docs/gap
642
642
  */
643
643
  "gap-y": [{
644
- "gap-y": [x]
644
+ "gap-y": [f]
645
645
  }],
646
646
  /**
647
647
  * Justify Content
648
648
  * @see https://tailwindcss.com/docs/justify-content
649
649
  */
650
650
  "justify-content": [{
651
- justify: ["normal", ...N()]
651
+ justify: ["normal", ...C()]
652
652
  }],
653
653
  /**
654
654
  * Justify Items
@@ -669,7 +669,7 @@ const A = (e) => {
669
669
  * @see https://tailwindcss.com/docs/align-content
670
670
  */
671
671
  "align-content": [{
672
- content: ["normal", ...N(), "baseline"]
672
+ content: ["normal", ...C(), "baseline"]
673
673
  }],
674
674
  /**
675
675
  * Align Items
@@ -690,7 +690,7 @@ const A = (e) => {
690
690
  * @see https://tailwindcss.com/docs/place-content
691
691
  */
692
692
  "place-content": [{
693
- "place-content": [...N(), "baseline"]
693
+ "place-content": [...C(), "baseline"]
694
694
  }],
695
695
  /**
696
696
  * Place Items
@@ -712,63 +712,63 @@ const A = (e) => {
712
712
  * @see https://tailwindcss.com/docs/padding
713
713
  */
714
714
  p: [{
715
- p: [b]
715
+ p: [h]
716
716
  }],
717
717
  /**
718
718
  * Padding X
719
719
  * @see https://tailwindcss.com/docs/padding
720
720
  */
721
721
  px: [{
722
- px: [b]
722
+ px: [h]
723
723
  }],
724
724
  /**
725
725
  * Padding Y
726
726
  * @see https://tailwindcss.com/docs/padding
727
727
  */
728
728
  py: [{
729
- py: [b]
729
+ py: [h]
730
730
  }],
731
731
  /**
732
732
  * Padding Start
733
733
  * @see https://tailwindcss.com/docs/padding
734
734
  */
735
735
  ps: [{
736
- ps: [b]
736
+ ps: [h]
737
737
  }],
738
738
  /**
739
739
  * Padding End
740
740
  * @see https://tailwindcss.com/docs/padding
741
741
  */
742
742
  pe: [{
743
- pe: [b]
743
+ pe: [h]
744
744
  }],
745
745
  /**
746
746
  * Padding Top
747
747
  * @see https://tailwindcss.com/docs/padding
748
748
  */
749
749
  pt: [{
750
- pt: [b]
750
+ pt: [h]
751
751
  }],
752
752
  /**
753
753
  * Padding Right
754
754
  * @see https://tailwindcss.com/docs/padding
755
755
  */
756
756
  pr: [{
757
- pr: [b]
757
+ pr: [h]
758
758
  }],
759
759
  /**
760
760
  * Padding Bottom
761
761
  * @see https://tailwindcss.com/docs/padding
762
762
  */
763
763
  pb: [{
764
- pb: [b]
764
+ pb: [h]
765
765
  }],
766
766
  /**
767
767
  * Padding Left
768
768
  * @see https://tailwindcss.com/docs/padding
769
769
  */
770
770
  pl: [{
771
- pl: [b]
771
+ pl: [h]
772
772
  }],
773
773
  /**
774
774
  * Margin
@@ -838,7 +838,7 @@ const A = (e) => {
838
838
  * @see https://tailwindcss.com/docs/space
839
839
  */
840
840
  "space-x": [{
841
- "space-x": [f]
841
+ "space-x": [g]
842
842
  }],
843
843
  /**
844
844
  * Space Between X Reverse
@@ -850,7 +850,7 @@ const A = (e) => {
850
850
  * @see https://tailwindcss.com/docs/space
851
851
  */
852
852
  "space-y": [{
853
- "space-y": [f]
853
+ "space-y": [g]
854
854
  }],
855
855
  /**
856
856
  * Space Between Y Reverse
@@ -863,21 +863,21 @@ const A = (e) => {
863
863
  * @see https://tailwindcss.com/docs/width
864
864
  */
865
865
  w: [{
866
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", M, r]
866
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", N, r]
867
867
  }],
868
868
  /**
869
869
  * Min-Width
870
870
  * @see https://tailwindcss.com/docs/min-width
871
871
  */
872
872
  "min-w": [{
873
- "min-w": [M, r, "min", "max", "fit"]
873
+ "min-w": [N, r, "min", "max", "fit"]
874
874
  }],
875
875
  /**
876
876
  * Max-Width
877
877
  * @see https://tailwindcss.com/docs/max-width
878
878
  */
879
879
  "max-w": [{
880
- "max-w": [M, r, "none", "full", "min", "max", "fit", "prose", {
880
+ "max-w": [N, r, "none", "full", "min", "max", "fit", "prose", {
881
881
  screen: [Y]
882
882
  }, Y]
883
883
  }],
@@ -886,28 +886,28 @@ const A = (e) => {
886
886
  * @see https://tailwindcss.com/docs/height
887
887
  */
888
888
  h: [{
889
- h: [M, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
889
+ h: [N, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
890
890
  }],
891
891
  /**
892
892
  * Min-Height
893
893
  * @see https://tailwindcss.com/docs/min-height
894
894
  */
895
895
  "min-h": [{
896
- "min-h": [M, r, "min", "max", "fit", "svh", "lvh", "dvh"]
896
+ "min-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
897
897
  }],
898
898
  /**
899
899
  * Max-Height
900
900
  * @see https://tailwindcss.com/docs/max-height
901
901
  */
902
902
  "max-h": [{
903
- "max-h": [M, r, "min", "max", "fit", "svh", "lvh", "dvh"]
903
+ "max-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
904
904
  }],
905
905
  /**
906
906
  * Size
907
907
  * @see https://tailwindcss.com/docs/size
908
908
  */
909
909
  size: [{
910
- size: [M, r, "auto", "min", "max", "fit"]
910
+ size: [N, r, "auto", "min", "max", "fit"]
911
911
  }],
912
912
  // Typography
913
913
  /**
@@ -976,7 +976,7 @@ const A = (e) => {
976
976
  * @see https://tailwindcss.com/docs/letter-spacing
977
977
  */
978
978
  tracking: [{
979
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M]
979
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", N]
980
980
  }],
981
981
  /**
982
982
  * Line Clamp
@@ -990,21 +990,21 @@ const A = (e) => {
990
990
  * @see https://tailwindcss.com/docs/line-height
991
991
  */
992
992
  leading: [{
993
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", W, M]
993
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", W, N]
994
994
  }],
995
995
  /**
996
996
  * List Style Image
997
997
  * @see https://tailwindcss.com/docs/list-style-image
998
998
  */
999
999
  "list-image": [{
1000
- "list-image": ["none", M]
1000
+ "list-image": ["none", N]
1001
1001
  }],
1002
1002
  /**
1003
1003
  * List Style Type
1004
1004
  * @see https://tailwindcss.com/docs/list-style-type
1005
1005
  */
1006
1006
  "list-style-type": [{
1007
- list: ["none", "disc", "decimal", M]
1007
+ list: ["none", "disc", "decimal", N]
1008
1008
  }],
1009
1009
  /**
1010
1010
  * List Style Position
@@ -1026,7 +1026,7 @@ const A = (e) => {
1026
1026
  * @see https://tailwindcss.com/docs/placeholder-opacity
1027
1027
  */
1028
1028
  "placeholder-opacity": [{
1029
- "placeholder-opacity": [k]
1029
+ "placeholder-opacity": [w]
1030
1030
  }],
1031
1031
  /**
1032
1032
  * Text Alignment
@@ -1047,7 +1047,7 @@ const A = (e) => {
1047
1047
  * @see https://tailwindcss.com/docs/text-opacity
1048
1048
  */
1049
1049
  "text-opacity": [{
1050
- "text-opacity": [k]
1050
+ "text-opacity": [w]
1051
1051
  }],
1052
1052
  /**
1053
1053
  * Text Decoration
@@ -1073,7 +1073,7 @@ const A = (e) => {
1073
1073
  * @see https://tailwindcss.com/docs/text-underline-offset
1074
1074
  */
1075
1075
  "underline-offset": [{
1076
- "underline-offset": ["auto", W, M]
1076
+ "underline-offset": ["auto", W, N]
1077
1077
  }],
1078
1078
  /**
1079
1079
  * Text Decoration Color
@@ -1111,7 +1111,7 @@ const A = (e) => {
1111
1111
  * @see https://tailwindcss.com/docs/vertical-align
1112
1112
  */
1113
1113
  "vertical-align": [{
1114
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M]
1114
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N]
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Whitespace
@@ -1139,7 +1139,7 @@ const A = (e) => {
1139
1139
  * @see https://tailwindcss.com/docs/content
1140
1140
  */
1141
1141
  content: [{
1142
- content: ["none", M]
1142
+ content: ["none", N]
1143
1143
  }],
1144
1144
  // Backgrounds
1145
1145
  /**
@@ -1162,7 +1162,7 @@ const A = (e) => {
1162
1162
  * @see https://tailwindcss.com/docs/background-opacity
1163
1163
  */
1164
1164
  "bg-opacity": [{
1165
- "bg-opacity": [k]
1165
+ "bg-opacity": [w]
1166
1166
  }],
1167
1167
  /**
1168
1168
  * Background Origin
@@ -1176,7 +1176,7 @@ const A = (e) => {
1176
1176
  * @see https://tailwindcss.com/docs/background-position
1177
1177
  */
1178
1178
  "bg-position": [{
1179
- bg: [..._(), ir]
1179
+ bg: [...V(), ir]
1180
1180
  }],
1181
1181
  /**
1182
1182
  * Background Repeat
@@ -1215,21 +1215,21 @@ const A = (e) => {
1215
1215
  * @see https://tailwindcss.com/docs/gradient-color-stops
1216
1216
  */
1217
1217
  "gradient-from-pos": [{
1218
- from: [m]
1218
+ from: [b]
1219
1219
  }],
1220
1220
  /**
1221
1221
  * Gradient Color Stops Via Position
1222
1222
  * @see https://tailwindcss.com/docs/gradient-color-stops
1223
1223
  */
1224
1224
  "gradient-via-pos": [{
1225
- via: [m]
1225
+ via: [b]
1226
1226
  }],
1227
1227
  /**
1228
1228
  * Gradient Color Stops To Position
1229
1229
  * @see https://tailwindcss.com/docs/gradient-color-stops
1230
1230
  */
1231
1231
  "gradient-to-pos": [{
1232
- to: [m]
1232
+ to: [b]
1233
1233
  }],
1234
1234
  /**
1235
1235
  * Gradient Color Stops From
@@ -1258,105 +1258,105 @@ const A = (e) => {
1258
1258
  * @see https://tailwindcss.com/docs/border-radius
1259
1259
  */
1260
1260
  rounded: [{
1261
- rounded: [a]
1261
+ rounded: [l]
1262
1262
  }],
1263
1263
  /**
1264
1264
  * Border Radius Start
1265
1265
  * @see https://tailwindcss.com/docs/border-radius
1266
1266
  */
1267
1267
  "rounded-s": [{
1268
- "rounded-s": [a]
1268
+ "rounded-s": [l]
1269
1269
  }],
1270
1270
  /**
1271
1271
  * Border Radius End
1272
1272
  * @see https://tailwindcss.com/docs/border-radius
1273
1273
  */
1274
1274
  "rounded-e": [{
1275
- "rounded-e": [a]
1275
+ "rounded-e": [l]
1276
1276
  }],
1277
1277
  /**
1278
1278
  * Border Radius Top
1279
1279
  * @see https://tailwindcss.com/docs/border-radius
1280
1280
  */
1281
1281
  "rounded-t": [{
1282
- "rounded-t": [a]
1282
+ "rounded-t": [l]
1283
1283
  }],
1284
1284
  /**
1285
1285
  * Border Radius Right
1286
1286
  * @see https://tailwindcss.com/docs/border-radius
1287
1287
  */
1288
1288
  "rounded-r": [{
1289
- "rounded-r": [a]
1289
+ "rounded-r": [l]
1290
1290
  }],
1291
1291
  /**
1292
1292
  * Border Radius Bottom
1293
1293
  * @see https://tailwindcss.com/docs/border-radius
1294
1294
  */
1295
1295
  "rounded-b": [{
1296
- "rounded-b": [a]
1296
+ "rounded-b": [l]
1297
1297
  }],
1298
1298
  /**
1299
1299
  * Border Radius Left
1300
1300
  * @see https://tailwindcss.com/docs/border-radius
1301
1301
  */
1302
1302
  "rounded-l": [{
1303
- "rounded-l": [a]
1303
+ "rounded-l": [l]
1304
1304
  }],
1305
1305
  /**
1306
1306
  * Border Radius Start Start
1307
1307
  * @see https://tailwindcss.com/docs/border-radius
1308
1308
  */
1309
1309
  "rounded-ss": [{
1310
- "rounded-ss": [a]
1310
+ "rounded-ss": [l]
1311
1311
  }],
1312
1312
  /**
1313
1313
  * Border Radius Start End
1314
1314
  * @see https://tailwindcss.com/docs/border-radius
1315
1315
  */
1316
1316
  "rounded-se": [{
1317
- "rounded-se": [a]
1317
+ "rounded-se": [l]
1318
1318
  }],
1319
1319
  /**
1320
1320
  * Border Radius End End
1321
1321
  * @see https://tailwindcss.com/docs/border-radius
1322
1322
  */
1323
1323
  "rounded-ee": [{
1324
- "rounded-ee": [a]
1324
+ "rounded-ee": [l]
1325
1325
  }],
1326
1326
  /**
1327
1327
  * Border Radius End Start
1328
1328
  * @see https://tailwindcss.com/docs/border-radius
1329
1329
  */
1330
1330
  "rounded-es": [{
1331
- "rounded-es": [a]
1331
+ "rounded-es": [l]
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Border Radius Top Left
1335
1335
  * @see https://tailwindcss.com/docs/border-radius
1336
1336
  */
1337
1337
  "rounded-tl": [{
1338
- "rounded-tl": [a]
1338
+ "rounded-tl": [l]
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Border Radius Top Right
1342
1342
  * @see https://tailwindcss.com/docs/border-radius
1343
1343
  */
1344
1344
  "rounded-tr": [{
1345
- "rounded-tr": [a]
1345
+ "rounded-tr": [l]
1346
1346
  }],
1347
1347
  /**
1348
1348
  * Border Radius Bottom Right
1349
1349
  * @see https://tailwindcss.com/docs/border-radius
1350
1350
  */
1351
1351
  "rounded-br": [{
1352
- "rounded-br": [a]
1352
+ "rounded-br": [l]
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Border Radius Bottom Left
1356
1356
  * @see https://tailwindcss.com/docs/border-radius
1357
1357
  */
1358
1358
  "rounded-bl": [{
1359
- "rounded-bl": [a]
1359
+ "rounded-bl": [l]
1360
1360
  }],
1361
1361
  /**
1362
1362
  * Border Width
@@ -1426,7 +1426,7 @@ const A = (e) => {
1426
1426
  * @see https://tailwindcss.com/docs/border-opacity
1427
1427
  */
1428
1428
  "border-opacity": [{
1429
- "border-opacity": [k]
1429
+ "border-opacity": [w]
1430
1430
  }],
1431
1431
  /**
1432
1432
  * Border Style
@@ -1464,7 +1464,7 @@ const A = (e) => {
1464
1464
  * @see https://tailwindcss.com/docs/divide-opacity
1465
1465
  */
1466
1466
  "divide-opacity": [{
1467
- "divide-opacity": [k]
1467
+ "divide-opacity": [w]
1468
1468
  }],
1469
1469
  /**
1470
1470
  * Divide Style
@@ -1478,70 +1478,70 @@ const A = (e) => {
1478
1478
  * @see https://tailwindcss.com/docs/border-color
1479
1479
  */
1480
1480
  "border-color": [{
1481
- border: [s]
1481
+ border: [a]
1482
1482
  }],
1483
1483
  /**
1484
1484
  * Border Color X
1485
1485
  * @see https://tailwindcss.com/docs/border-color
1486
1486
  */
1487
1487
  "border-color-x": [{
1488
- "border-x": [s]
1488
+ "border-x": [a]
1489
1489
  }],
1490
1490
  /**
1491
1491
  * Border Color Y
1492
1492
  * @see https://tailwindcss.com/docs/border-color
1493
1493
  */
1494
1494
  "border-color-y": [{
1495
- "border-y": [s]
1495
+ "border-y": [a]
1496
1496
  }],
1497
1497
  /**
1498
1498
  * Border Color S
1499
1499
  * @see https://tailwindcss.com/docs/border-color
1500
1500
  */
1501
1501
  "border-color-s": [{
1502
- "border-s": [s]
1502
+ "border-s": [a]
1503
1503
  }],
1504
1504
  /**
1505
1505
  * Border Color E
1506
1506
  * @see https://tailwindcss.com/docs/border-color
1507
1507
  */
1508
1508
  "border-color-e": [{
1509
- "border-e": [s]
1509
+ "border-e": [a]
1510
1510
  }],
1511
1511
  /**
1512
1512
  * Border Color Top
1513
1513
  * @see https://tailwindcss.com/docs/border-color
1514
1514
  */
1515
1515
  "border-color-t": [{
1516
- "border-t": [s]
1516
+ "border-t": [a]
1517
1517
  }],
1518
1518
  /**
1519
1519
  * Border Color Right
1520
1520
  * @see https://tailwindcss.com/docs/border-color
1521
1521
  */
1522
1522
  "border-color-r": [{
1523
- "border-r": [s]
1523
+ "border-r": [a]
1524
1524
  }],
1525
1525
  /**
1526
1526
  * Border Color Bottom
1527
1527
  * @see https://tailwindcss.com/docs/border-color
1528
1528
  */
1529
1529
  "border-color-b": [{
1530
- "border-b": [s]
1530
+ "border-b": [a]
1531
1531
  }],
1532
1532
  /**
1533
1533
  * Border Color Left
1534
1534
  * @see https://tailwindcss.com/docs/border-color
1535
1535
  */
1536
1536
  "border-color-l": [{
1537
- "border-l": [s]
1537
+ "border-l": [a]
1538
1538
  }],
1539
1539
  /**
1540
1540
  * Divide Color
1541
1541
  * @see https://tailwindcss.com/docs/divide-color
1542
1542
  */
1543
1543
  "divide-color": [{
1544
- divide: [s]
1544
+ divide: [a]
1545
1545
  }],
1546
1546
  /**
1547
1547
  * Outline Style
@@ -1555,7 +1555,7 @@ const A = (e) => {
1555
1555
  * @see https://tailwindcss.com/docs/outline-offset
1556
1556
  */
1557
1557
  "outline-offset": [{
1558
- "outline-offset": [W, M]
1558
+ "outline-offset": [W, N]
1559
1559
  }],
1560
1560
  /**
1561
1561
  * Outline Width
@@ -1576,7 +1576,7 @@ const A = (e) => {
1576
1576
  * @see https://tailwindcss.com/docs/ring-width
1577
1577
  */
1578
1578
  "ring-w": [{
1579
- ring: z()
1579
+ ring: M()
1580
1580
  }],
1581
1581
  /**
1582
1582
  * Ring Width Inset
@@ -1595,7 +1595,7 @@ const A = (e) => {
1595
1595
  * @see https://tailwindcss.com/docs/ring-opacity
1596
1596
  */
1597
1597
  "ring-opacity": [{
1598
- "ring-opacity": [k]
1598
+ "ring-opacity": [w]
1599
1599
  }],
1600
1600
  /**
1601
1601
  * Ring Offset Width
@@ -1631,7 +1631,7 @@ const A = (e) => {
1631
1631
  * @see https://tailwindcss.com/docs/opacity
1632
1632
  */
1633
1633
  opacity: [{
1634
- opacity: [k]
1634
+ opacity: [w]
1635
1635
  }],
1636
1636
  /**
1637
1637
  * Mix Blend Mode
@@ -1682,7 +1682,7 @@ const A = (e) => {
1682
1682
  * @see https://tailwindcss.com/docs/drop-shadow
1683
1683
  */
1684
1684
  "drop-shadow": [{
1685
- "drop-shadow": ["", "none", Y, M]
1685
+ "drop-shadow": ["", "none", Y, N]
1686
1686
  }],
1687
1687
  /**
1688
1688
  * Grayscale
@@ -1696,14 +1696,14 @@ const A = (e) => {
1696
1696
  * @see https://tailwindcss.com/docs/hue-rotate
1697
1697
  */
1698
1698
  "hue-rotate": [{
1699
- "hue-rotate": [g]
1699
+ "hue-rotate": [m]
1700
1700
  }],
1701
1701
  /**
1702
1702
  * Invert
1703
1703
  * @see https://tailwindcss.com/docs/invert
1704
1704
  */
1705
1705
  invert: [{
1706
- invert: [y]
1706
+ invert: [k]
1707
1707
  }],
1708
1708
  /**
1709
1709
  * Saturate
@@ -1717,7 +1717,7 @@ const A = (e) => {
1717
1717
  * @see https://tailwindcss.com/docs/sepia
1718
1718
  */
1719
1719
  sepia: [{
1720
- sepia: [C]
1720
+ sepia: [z]
1721
1721
  }],
1722
1722
  /**
1723
1723
  * Backdrop Filter
@@ -1760,21 +1760,21 @@ const A = (e) => {
1760
1760
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1761
1761
  */
1762
1762
  "backdrop-hue-rotate": [{
1763
- "backdrop-hue-rotate": [g]
1763
+ "backdrop-hue-rotate": [m]
1764
1764
  }],
1765
1765
  /**
1766
1766
  * Backdrop Invert
1767
1767
  * @see https://tailwindcss.com/docs/backdrop-invert
1768
1768
  */
1769
1769
  "backdrop-invert": [{
1770
- "backdrop-invert": [y]
1770
+ "backdrop-invert": [k]
1771
1771
  }],
1772
1772
  /**
1773
1773
  * Backdrop Opacity
1774
1774
  * @see https://tailwindcss.com/docs/backdrop-opacity
1775
1775
  */
1776
1776
  "backdrop-opacity": [{
1777
- "backdrop-opacity": [k]
1777
+ "backdrop-opacity": [w]
1778
1778
  }],
1779
1779
  /**
1780
1780
  * Backdrop Saturate
@@ -1788,7 +1788,7 @@ const A = (e) => {
1788
1788
  * @see https://tailwindcss.com/docs/backdrop-sepia
1789
1789
  */
1790
1790
  "backdrop-sepia": [{
1791
- "backdrop-sepia": [C]
1791
+ "backdrop-sepia": [z]
1792
1792
  }],
1793
1793
  // Tables
1794
1794
  /**
@@ -1839,35 +1839,35 @@ const A = (e) => {
1839
1839
  * @see https://tailwindcss.com/docs/transition-property
1840
1840
  */
1841
1841
  transition: [{
1842
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M]
1842
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
1843
1843
  }],
1844
1844
  /**
1845
1845
  * Transition Duration
1846
1846
  * @see https://tailwindcss.com/docs/transition-duration
1847
1847
  */
1848
1848
  duration: [{
1849
- duration: R()
1849
+ duration: _()
1850
1850
  }],
1851
1851
  /**
1852
1852
  * Transition Timing Function
1853
1853
  * @see https://tailwindcss.com/docs/transition-timing-function
1854
1854
  */
1855
1855
  ease: [{
1856
- ease: ["linear", "in", "out", "in-out", M]
1856
+ ease: ["linear", "in", "out", "in-out", N]
1857
1857
  }],
1858
1858
  /**
1859
1859
  * Transition Delay
1860
1860
  * @see https://tailwindcss.com/docs/transition-delay
1861
1861
  */
1862
1862
  delay: [{
1863
- delay: R()
1863
+ delay: _()
1864
1864
  }],
1865
1865
  /**
1866
1866
  * Animation
1867
1867
  * @see https://tailwindcss.com/docs/animation
1868
1868
  */
1869
1869
  animate: [{
1870
- animate: ["none", "spin", "ping", "pulse", "bounce", M]
1870
+ animate: ["none", "spin", "ping", "pulse", "bounce", N]
1871
1871
  }],
1872
1872
  // Transforms
1873
1873
  /**
@@ -1903,42 +1903,42 @@ const A = (e) => {
1903
1903
  * @see https://tailwindcss.com/docs/rotate
1904
1904
  */
1905
1905
  rotate: [{
1906
- rotate: [te, M]
1906
+ rotate: [te, N]
1907
1907
  }],
1908
1908
  /**
1909
1909
  * Translate X
1910
1910
  * @see https://tailwindcss.com/docs/translate
1911
1911
  */
1912
1912
  "translate-x": [{
1913
- "translate-x": [O]
1913
+ "translate-x": [j]
1914
1914
  }],
1915
1915
  /**
1916
1916
  * Translate Y
1917
1917
  * @see https://tailwindcss.com/docs/translate
1918
1918
  */
1919
1919
  "translate-y": [{
1920
- "translate-y": [O]
1920
+ "translate-y": [j]
1921
1921
  }],
1922
1922
  /**
1923
1923
  * Skew X
1924
1924
  * @see https://tailwindcss.com/docs/skew
1925
1925
  */
1926
1926
  "skew-x": [{
1927
- "skew-x": [I]
1927
+ "skew-x": [E]
1928
1928
  }],
1929
1929
  /**
1930
1930
  * Skew Y
1931
1931
  * @see https://tailwindcss.com/docs/skew
1932
1932
  */
1933
1933
  "skew-y": [{
1934
- "skew-y": [I]
1934
+ "skew-y": [E]
1935
1935
  }],
1936
1936
  /**
1937
1937
  * Transform Origin
1938
1938
  * @see https://tailwindcss.com/docs/transform-origin
1939
1939
  */
1940
1940
  "transform-origin": [{
1941
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M]
1941
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
1942
1942
  }],
1943
1943
  // Interactivity
1944
1944
  /**
@@ -1960,7 +1960,7 @@ const A = (e) => {
1960
1960
  * @see https://tailwindcss.com/docs/cursor
1961
1961
  */
1962
1962
  cursor: [{
1963
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M]
1963
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", N]
1964
1964
  }],
1965
1965
  /**
1966
1966
  * Caret Color
@@ -2182,7 +2182,7 @@ const A = (e) => {
2182
2182
  * @see https://tailwindcss.com/docs/will-change
2183
2183
  */
2184
2184
  "will-change": [{
2185
- "will-change": ["auto", "scroll", "contents", "transform", M]
2185
+ "will-change": ["auto", "scroll", "contents", "transform", N]
2186
2186
  }],
2187
2187
  // SVG
2188
2188
  /**
@@ -2277,12 +2277,12 @@ function p(...e) {
2277
2277
  return fr(Fe(e));
2278
2278
  }
2279
2279
  function hr(e) {
2280
- const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, s = Math.max(r, t, o), a = Math.min(r, t, o);
2280
+ const r = parseInt(e.slice(1, 3), 16) / 255, t = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = Math.max(r, t, o), l = Math.min(r, t, o);
2281
2281
  let i = 0, n = 0;
2282
- const c = (s + a) / 2;
2283
- if (s !== a) {
2284
- const d = s - a;
2285
- switch (n = c > 0.5 ? d / (2 - s - a) : d / (s + a), s) {
2282
+ const c = (a + l) / 2;
2283
+ if (a !== l) {
2284
+ const d = a - l;
2285
+ switch (n = c > 0.5 ? d / (2 - a - l) : d / (a + l), a) {
2286
2286
  case r:
2287
2287
  i = ((t - o) / d + (t < o ? 6 : 0)) / 6;
2288
2288
  break;
@@ -2298,11 +2298,11 @@ function hr(e) {
2298
2298
  }
2299
2299
  function be(e, r, t) {
2300
2300
  t /= 100;
2301
- const o = r * Math.min(t, 1 - t) / 100, s = (a) => {
2302
- const i = (a + e / 30) % 12, n = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
2301
+ const o = r * Math.min(t, 1 - t) / 100, a = (l) => {
2302
+ const i = (l + e / 30) % 12, n = t - o * Math.max(Math.min(i - 3, 9 - i, 1), -1);
2303
2303
  return Math.round(255 * n).toString(16).padStart(2, "0");
2304
2304
  };
2305
- return `#${s(0)}${s(8)}${s(4)}`;
2305
+ return `#${a(0)}${a(8)}${a(4)}`;
2306
2306
  }
2307
2307
  function le(e) {
2308
2308
  const [r, t, o] = hr(e);
@@ -2312,7 +2312,7 @@ function le(e) {
2312
2312
  dark: be(r, Math.min(100, t + 10), Math.max(0, o - 15))
2313
2313
  };
2314
2314
  }
2315
- const j = {
2315
+ const O = {
2316
2316
  colors: {
2317
2317
  primary: "#6366f1",
2318
2318
  primaryLight: "#818cf8",
@@ -2335,7 +2335,7 @@ const j = {
2335
2335
  light: "#f9fafb",
2336
2336
  active: "#4338ca"
2337
2337
  }
2338
- }, Le = je(j);
2338
+ }, Le = je(O);
2339
2339
  function Kr() {
2340
2340
  return Oe(Le);
2341
2341
  }
@@ -2378,35 +2378,35 @@ function Zr({
2378
2378
  theme: r
2379
2379
  }) {
2380
2380
  const t = Ie(() => {
2381
- const o = r?.colors || {}, s = o.primary ? le(o.primary) : null, a = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
2381
+ const o = r?.colors || {}, a = o.primary ? le(o.primary) : null, l = o.secondary ? le(o.secondary) : null, i = o.danger ? le(o.danger) : null;
2382
2382
  return {
2383
2383
  colors: {
2384
- primary: o.primary || j.colors.primary,
2385
- primaryLight: s?.light || j.colors.primaryLight,
2386
- primaryDark: s?.dark || j.colors.primaryDark,
2387
- secondary: o.secondary || j.colors.secondary,
2388
- secondaryLight: a?.light || j.colors.secondaryLight,
2389
- secondaryDark: a?.dark || j.colors.secondaryDark,
2390
- danger: o.danger || j.colors.danger,
2391
- dangerLight: i?.light || j.colors.dangerLight,
2392
- dangerDark: i?.dark || j.colors.dangerDark,
2393
- text: o.text || j.colors.text,
2394
- textMuted: o.textMuted || j.colors.textMuted,
2395
- textLight: o.textLight || j.colors.textLight,
2396
- border: o.border || j.colors.border,
2397
- borderDark: o.borderDark || j.colors.borderDark,
2398
- background: o.background || j.colors.background,
2399
- backgroundDark: o.backgroundDark || j.colors.backgroundDark,
2400
- backgroundLight: o.backgroundLight || j.colors.backgroundLight,
2401
- disabled: o.disabled || j.colors.disabled,
2402
- light: o.light || j.colors.light,
2403
- active: o.active || j.colors.active
2384
+ primary: o.primary || O.colors.primary,
2385
+ primaryLight: a?.light || O.colors.primaryLight,
2386
+ primaryDark: a?.dark || O.colors.primaryDark,
2387
+ secondary: o.secondary || O.colors.secondary,
2388
+ secondaryLight: l?.light || O.colors.secondaryLight,
2389
+ secondaryDark: l?.dark || O.colors.secondaryDark,
2390
+ danger: o.danger || O.colors.danger,
2391
+ dangerLight: i?.light || O.colors.dangerLight,
2392
+ dangerDark: i?.dark || O.colors.dangerDark,
2393
+ text: o.text || O.colors.text,
2394
+ textMuted: o.textMuted || O.colors.textMuted,
2395
+ textLight: o.textLight || O.colors.textLight,
2396
+ border: o.border || O.colors.border,
2397
+ borderDark: o.borderDark || O.colors.borderDark,
2398
+ background: o.background || O.colors.background,
2399
+ backgroundDark: o.backgroundDark || O.colors.backgroundDark,
2400
+ backgroundLight: o.backgroundLight || O.colors.backgroundLight,
2401
+ disabled: o.disabled || O.colors.disabled,
2402
+ light: o.light || O.colors.light,
2403
+ active: o.active || O.colors.active
2404
2404
  }
2405
2405
  };
2406
2406
  }, [r]);
2407
2407
  return typeof window < "u" && ge(t), H(() => {
2408
2408
  ge(t);
2409
- }, [t]), V.createElement(Le.Provider, { value: t }, e);
2409
+ }, [t]), B.createElement(Le.Provider, { value: t }, e);
2410
2410
  }
2411
2411
  const yr = {
2412
2412
  primary: "bg-primary text-white border-primary hover:bg-primary-dark hover:border-primary-dark active:bg-active",
@@ -2427,14 +2427,14 @@ function q({
2427
2427
  onClick: r,
2428
2428
  disabled: t = !1,
2429
2429
  type: o = "button",
2430
- variant: s = "primary",
2431
- size: a = "md",
2430
+ variant: a = "primary",
2431
+ size: l = "md",
2432
2432
  fullWidth: i = !1,
2433
2433
  loading: n = !1,
2434
2434
  className: c = "",
2435
2435
  ...d
2436
2436
  }) {
2437
- return /* @__PURE__ */ h(
2437
+ return /* @__PURE__ */ x(
2438
2438
  "button",
2439
2439
  {
2440
2440
  type: o,
@@ -2442,22 +2442,22 @@ function q({
2442
2442
  disabled: t || n,
2443
2443
  className: p(
2444
2444
  "inline-flex shadow-md hover:shadow-lg cursor-pointer items-center justify-center font-medium rounded-lg border transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-opacity-50",
2445
- t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[s],
2446
- xr[a],
2445
+ t || n ? "bg-disabled text-text-muted border-disabled cursor-not-allowed hover:bg-disabled hover:border-disabled hover:text-text-muted" : yr[a],
2446
+ xr[l],
2447
2447
  i && "w-full",
2448
2448
  n && "cursor-wait opacity-75",
2449
2449
  c
2450
2450
  ),
2451
2451
  ...d,
2452
2452
  children: [
2453
- n && /* @__PURE__ */ h(
2453
+ n && /* @__PURE__ */ x(
2454
2454
  "svg",
2455
2455
  {
2456
2456
  className: "w-4 h-4 mr-2 animate-spin",
2457
2457
  fill: "none",
2458
2458
  viewBox: "0 0 24 24",
2459
2459
  children: [
2460
- /* @__PURE__ */ l(
2460
+ /* @__PURE__ */ s(
2461
2461
  "circle",
2462
2462
  {
2463
2463
  className: "opacity-25",
@@ -2468,7 +2468,7 @@ function q({
2468
2468
  strokeWidth: "4"
2469
2469
  }
2470
2470
  ),
2471
- /* @__PURE__ */ l(
2471
+ /* @__PURE__ */ s(
2472
2472
  "path",
2473
2473
  {
2474
2474
  className: "opacity-75",
@@ -2489,65 +2489,65 @@ function vr({
2489
2489
  name: r,
2490
2490
  type: t = "text",
2491
2491
  value: o,
2492
- onChange: s,
2493
- placeholder: a,
2492
+ onChange: a,
2493
+ placeholder: l,
2494
2494
  label: i,
2495
2495
  error: n,
2496
2496
  disabled: c = !1,
2497
2497
  required: d = !1,
2498
- colorScheme: g = "secondary",
2499
- className: y = "",
2500
- ...x
2498
+ colorScheme: m = "secondary",
2499
+ className: k = "",
2500
+ ...f
2501
2501
  }) {
2502
2502
  const v = () => {
2503
- const w = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
2503
+ const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
2504
2504
  if (n)
2505
2505
  return p(
2506
- w,
2506
+ y,
2507
2507
  "border-danger focus:border-danger focus:shadow-danger-light"
2508
2508
  );
2509
- switch (g) {
2509
+ switch (m) {
2510
2510
  case "primary":
2511
2511
  return p(
2512
- w,
2512
+ y,
2513
2513
  "text-primary border-primary focus:border-primary"
2514
2514
  );
2515
2515
  case "secondary":
2516
2516
  default:
2517
2517
  return p(
2518
- w,
2518
+ y,
2519
2519
  "text-secondary border-secondary focus:border-secondary"
2520
2520
  );
2521
2521
  }
2522
- }, m = () => g === "primary" ? "text-primary" : "text-secondary";
2523
- return /* @__PURE__ */ h("div", { className: p("mb-6", y), children: [
2524
- i && /* @__PURE__ */ h(
2522
+ }, b = () => m === "primary" ? "text-primary" : "text-secondary";
2523
+ return /* @__PURE__ */ x("div", { className: p("mb-6", k), children: [
2524
+ i && /* @__PURE__ */ x(
2525
2525
  "label",
2526
2526
  {
2527
2527
  htmlFor: e,
2528
- className: p("block mb-2 text-sm font-medium", m()),
2528
+ className: p("block mb-2 text-sm font-medium", b()),
2529
2529
  children: [
2530
2530
  i,
2531
- d && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2531
+ d && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
2532
2532
  ]
2533
2533
  }
2534
2534
  ),
2535
- /* @__PURE__ */ l(
2535
+ /* @__PURE__ */ s(
2536
2536
  "input",
2537
2537
  {
2538
2538
  id: e,
2539
2539
  name: r,
2540
2540
  type: t,
2541
2541
  value: o,
2542
- onChange: s,
2543
- placeholder: a,
2542
+ onChange: a,
2543
+ placeholder: l,
2544
2544
  disabled: c,
2545
2545
  required: d,
2546
2546
  className: v(),
2547
- ...x
2547
+ ...f
2548
2548
  }
2549
2549
  ),
2550
- n && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
2550
+ n && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: n })
2551
2551
  ] });
2552
2552
  }
2553
2553
  function wr({
@@ -2555,65 +2555,65 @@ function wr({
2555
2555
  name: r,
2556
2556
  value: t,
2557
2557
  onChange: o,
2558
- placeholder: s,
2559
- label: a,
2558
+ placeholder: a,
2559
+ label: l,
2560
2560
  error: i,
2561
2561
  disabled: n = !1,
2562
2562
  required: c = !1,
2563
2563
  colorScheme: d = "secondary",
2564
- className: g = "",
2565
- rows: y = 4,
2566
- ...x
2564
+ className: m = "",
2565
+ rows: k = 4,
2566
+ ...f
2567
2567
  }) {
2568
2568
  const v = () => {
2569
- const w = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";
2569
+ const y = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted resize-none";
2570
2570
  if (i)
2571
2571
  return p(
2572
- w,
2572
+ y,
2573
2573
  "border-danger focus:border-danger focus:shadow-danger-light"
2574
2574
  );
2575
2575
  switch (d) {
2576
2576
  case "primary":
2577
2577
  return p(
2578
- w,
2578
+ y,
2579
2579
  "text-primary border-primary focus:border-primary"
2580
2580
  );
2581
2581
  case "secondary":
2582
2582
  default:
2583
2583
  return p(
2584
- w,
2584
+ y,
2585
2585
  "text-secondary border-secondary focus:border-secondary"
2586
2586
  );
2587
2587
  }
2588
- }, m = () => d === "primary" ? "text-primary" : "text-secondary";
2589
- return /* @__PURE__ */ h("div", { className: p("mb-6", g), children: [
2590
- a && /* @__PURE__ */ h(
2588
+ }, b = () => d === "primary" ? "text-primary" : "text-secondary";
2589
+ return /* @__PURE__ */ x("div", { className: p("mb-6", m), children: [
2590
+ l && /* @__PURE__ */ x(
2591
2591
  "label",
2592
2592
  {
2593
2593
  htmlFor: e,
2594
- className: p("block mb-2 text-sm font-medium", m()),
2594
+ className: p("block mb-2 text-sm font-medium", b()),
2595
2595
  children: [
2596
- a,
2597
- c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
2596
+ l,
2597
+ c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
2598
2598
  ]
2599
2599
  }
2600
2600
  ),
2601
- /* @__PURE__ */ l(
2601
+ /* @__PURE__ */ s(
2602
2602
  "textarea",
2603
2603
  {
2604
2604
  id: e,
2605
2605
  name: r,
2606
2606
  value: t,
2607
2607
  onChange: o,
2608
- placeholder: s,
2608
+ placeholder: a,
2609
2609
  disabled: n,
2610
2610
  required: c,
2611
- rows: y,
2611
+ rows: k,
2612
2612
  className: v(),
2613
- ...x
2613
+ ...f
2614
2614
  }
2615
2615
  ),
2616
- i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2616
+ i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
2617
2617
  ] });
2618
2618
  }
2619
2619
  const De = { Input: vr, InputArea: wr };
@@ -2622,16 +2622,16 @@ function kr({
2622
2622
  name: r,
2623
2623
  checked: t = !1,
2624
2624
  onChange: o,
2625
- disabled: s = !1,
2626
- label: a,
2625
+ disabled: a = !1,
2626
+ label: l,
2627
2627
  colorScheme: i = "secondary",
2628
2628
  size: n = "md",
2629
2629
  className: c = "",
2630
2630
  ...d
2631
2631
  }) {
2632
- const [g, y] = $(t), x = (b) => {
2633
- const L = b.target.checked;
2634
- y(L), o?.(L);
2632
+ const [m, k] = $(t), f = (h) => {
2633
+ const L = h.target.checked;
2634
+ k(L), o?.(L);
2635
2635
  }, v = () => ({
2636
2636
  primary: {
2637
2637
  bg: "bg-primary",
@@ -2643,7 +2643,7 @@ function kr({
2643
2643
  border: "border-secondary",
2644
2644
  text: "text-secondary"
2645
2645
  }
2646
- })[i], m = () => {
2646
+ })[i], b = () => {
2647
2647
  switch (n) {
2648
2648
  case "sm":
2649
2649
  return "w-10 h-6";
@@ -2653,7 +2653,7 @@ function kr({
2653
2653
  default:
2654
2654
  return "w-13 h-7";
2655
2655
  }
2656
- }, w = () => {
2656
+ }, y = () => {
2657
2657
  switch (n) {
2658
2658
  case "sm":
2659
2659
  return "w-5 h-5";
@@ -2664,7 +2664,7 @@ function kr({
2664
2664
  return "w-6 h-6";
2665
2665
  }
2666
2666
  }, u = () => {
2667
- if (!g) return "translate-x-0";
2667
+ if (!m) return "translate-x-0";
2668
2668
  switch (n) {
2669
2669
  case "sm":
2670
2670
  return "translate-x-5";
@@ -2674,38 +2674,38 @@ function kr({
2674
2674
  default:
2675
2675
  return "translate-x-6";
2676
2676
  }
2677
- }, k = v();
2678
- return /* @__PURE__ */ h("div", { className: p("flex items-center gap-3", c), children: [
2679
- /* @__PURE__ */ h("div", { className: "relative", children: [
2680
- /* @__PURE__ */ l(
2677
+ }, w = v();
2678
+ return /* @__PURE__ */ x("div", { className: p("flex items-center gap-3", c), children: [
2679
+ /* @__PURE__ */ x("div", { className: "relative", children: [
2680
+ /* @__PURE__ */ s(
2681
2681
  "input",
2682
2682
  {
2683
2683
  type: "checkbox",
2684
2684
  id: e,
2685
2685
  name: r,
2686
- checked: g,
2687
- onChange: x,
2688
- disabled: s,
2686
+ checked: m,
2687
+ onChange: f,
2688
+ disabled: a,
2689
2689
  className: "sr-only",
2690
2690
  ...d
2691
2691
  }
2692
2692
  ),
2693
- /* @__PURE__ */ l(
2693
+ /* @__PURE__ */ s(
2694
2694
  "label",
2695
2695
  {
2696
2696
  htmlFor: e,
2697
2697
  className: p(
2698
2698
  "block cursor-pointer transition-all duration-300 rounded-full border-2",
2699
- m(),
2700
- g ? p(k.bg, k.border) : "bg-gray-200 border-gray-300",
2701
- s ? "opacity-50 cursor-not-allowed" : "hover:shadow-md"
2699
+ b(),
2700
+ m ? p(w.bg, w.border) : "bg-gray-200 border-gray-300",
2701
+ a ? "opacity-50 cursor-not-allowed" : "hover:shadow-md"
2702
2702
  ),
2703
- children: /* @__PURE__ */ l(
2703
+ children: /* @__PURE__ */ s(
2704
2704
  "span",
2705
2705
  {
2706
2706
  className: p(
2707
2707
  "absolute top-0.5 left-0.5 inline-block rounded-full bg-white transition-all duration-300 shadow-sm",
2708
- w(),
2708
+ y(),
2709
2709
  u()
2710
2710
  )
2711
2711
  }
@@ -2713,16 +2713,16 @@ function kr({
2713
2713
  }
2714
2714
  )
2715
2715
  ] }),
2716
- a && /* @__PURE__ */ l(
2716
+ l && /* @__PURE__ */ s(
2717
2717
  "label",
2718
2718
  {
2719
2719
  htmlFor: e,
2720
2720
  className: p(
2721
2721
  "text-sm font-medium cursor-pointer select-none",
2722
- k.text,
2723
- s && "opacity-50 cursor-not-allowed"
2722
+ w.text,
2723
+ a && "opacity-50 cursor-not-allowed"
2724
2724
  ),
2725
- children: a
2725
+ children: l
2726
2726
  }
2727
2727
  )
2728
2728
  ] });
@@ -2732,8 +2732,8 @@ const Cr = { Toggle: kr }, Nr = ({
2732
2732
  wrapperStyle: r = {},
2733
2733
  wrapperClass: t = "",
2734
2734
  ariaLabel: o = "Cargando...",
2735
- label: s = "Cargando...",
2736
- visible: a = !0,
2735
+ label: a = "Cargando...",
2736
+ visible: l = !0,
2737
2737
  direction: i = "column"
2738
2738
  }) => {
2739
2739
  const n = {
@@ -2744,12 +2744,12 @@ const Cr = { Toggle: kr }, Nr = ({
2744
2744
  minHeight: "100px",
2745
2745
  ...r
2746
2746
  };
2747
- return /* @__PURE__ */ h("div", { style: n, className: t, children: [
2748
- /* @__PURE__ */ l("label", { children: s }),
2749
- /* @__PURE__ */ l(
2747
+ return /* @__PURE__ */ x("div", { style: n, className: t, children: [
2748
+ /* @__PURE__ */ s("label", { children: a }),
2749
+ /* @__PURE__ */ s(
2750
2750
  Te,
2751
2751
  {
2752
- visible: a,
2752
+ visible: l,
2753
2753
  height: e,
2754
2754
  width: e,
2755
2755
  ariaLabel: o,
@@ -2763,65 +2763,68 @@ const Cr = { Toggle: kr }, Nr = ({
2763
2763
  }, { Input: ie } = De, Xr = ({
2764
2764
  title: e = "Iniciar Sesión",
2765
2765
  showForgotPassword: r = !0,
2766
- className: t = "",
2767
- onLogin: o,
2768
- onForgotPassword: s
2766
+ onlyForgotPassword: t = !1,
2767
+ className: o = "",
2768
+ onLogin: a,
2769
+ onForgotPassword: l
2769
2770
  }) => {
2770
- const [a, i] = $({
2771
+ const [i, n] = $({
2771
2772
  email: "",
2772
2773
  password: ""
2773
- }), [n, c] = $({}), [d, g] = $(!1), [y, x] = $("login"), v = (C, I) => {
2774
- switch (C) {
2774
+ }), [c, d] = $({}), [m, k] = $(!1), [f, v] = $(
2775
+ t ? "forgot" : "login"
2776
+ ), b = (E, g) => {
2777
+ switch (E) {
2775
2778
  case "email":
2776
- return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I) ? "" : "Por favor ingresa un email válido";
2779
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g) ? "" : "Por favor ingresa un email válido";
2777
2780
  case "password":
2778
- return I.length >= 6 ? "" : "La contraseña debe tener al menos 6 caracteres";
2781
+ return g.length >= 6 ? "" : "La contraseña debe tener al menos 6 caracteres";
2779
2782
  default:
2780
2783
  return "";
2781
2784
  }
2782
- }, m = (C) => {
2783
- const { name: I, value: f } = C.target;
2784
- i((O) => ({
2785
- ...O,
2786
- [I]: f
2787
- })), n[I] && c((O) => ({
2788
- ...O,
2789
- [I]: ""
2785
+ }, y = (E) => {
2786
+ const { name: g, value: j } = E.target;
2787
+ n((F) => ({
2788
+ ...F,
2789
+ [g]: j
2790
+ })), c[g] && d((F) => ({
2791
+ ...F,
2792
+ [g]: ""
2790
2793
  }));
2791
- }, w = () => {
2792
- const C = {}, I = v("email", a.email);
2793
- if (I && (C.email = I), y === "login") {
2794
- const f = v("password", a.password);
2795
- f && (C.password = f);
2794
+ }, u = () => {
2795
+ const E = {}, g = b("email", i.email);
2796
+ if (g && (E.email = g), f === "login") {
2797
+ const j = b("password", i.password);
2798
+ j && (E.password = j);
2796
2799
  }
2797
- return c(C), Object.keys(C).length === 0;
2798
- }, u = async (C) => {
2799
- if (C.preventDefault(), !!w()) {
2800
- g(!0);
2800
+ return d(E), Object.keys(E).length === 0;
2801
+ }, w = async (E) => {
2802
+ if (E.preventDefault(), !!u()) {
2803
+ k(!0);
2801
2804
  try {
2802
- switch (y) {
2805
+ switch (f) {
2803
2806
  case "login":
2804
- o && await o({
2805
- email: a.email,
2806
- password: a.password
2807
+ a && await a({
2808
+ email: i.email,
2809
+ password: i.password
2807
2810
  });
2808
2811
  break;
2809
2812
  case "forgot":
2810
- s && await s(a.email);
2813
+ l && await l(i.email);
2811
2814
  break;
2812
2815
  }
2813
- } catch (I) {
2814
- console.error("Login error:", I);
2816
+ } catch (g) {
2817
+ console.error("Login error:", g);
2815
2818
  } finally {
2816
- g(!1);
2819
+ k(!1);
2817
2820
  }
2818
2821
  }
2819
- }, k = (C) => {
2820
- x(C), c({}), i({ email: a.email, password: "" });
2821
- }, b = () => {
2822
- switch (y) {
2822
+ }, h = (E) => {
2823
+ v(E), d({}), n({ email: i.email, password: "" });
2824
+ }, L = () => {
2825
+ switch (f) {
2823
2826
  case "forgot":
2824
- return /* @__PURE__ */ l(
2827
+ return /* @__PURE__ */ s(
2825
2828
  ie,
2826
2829
  {
2827
2830
  id: "email",
@@ -2829,16 +2832,16 @@ const Cr = { Toggle: kr }, Nr = ({
2829
2832
  name: "email",
2830
2833
  placeholder: "Ingresa tu email",
2831
2834
  label: "Email",
2832
- value: a.email,
2833
- onChange: m,
2834
- error: n.email,
2835
- disabled: d,
2835
+ value: i.email,
2836
+ onChange: y,
2837
+ error: c.email,
2838
+ disabled: m,
2836
2839
  colorScheme: "secondary"
2837
2840
  }
2838
2841
  );
2839
2842
  default:
2840
- return /* @__PURE__ */ h(Ae, { children: [
2841
- /* @__PURE__ */ l(
2843
+ return /* @__PURE__ */ x(Ae, { children: [
2844
+ /* @__PURE__ */ s(
2842
2845
  ie,
2843
2846
  {
2844
2847
  id: "email",
@@ -2846,14 +2849,14 @@ const Cr = { Toggle: kr }, Nr = ({
2846
2849
  name: "email",
2847
2850
  placeholder: "Ingresa tu email",
2848
2851
  label: "Email",
2849
- value: a.email,
2850
- onChange: m,
2851
- error: n.email,
2852
- disabled: d,
2852
+ value: i.email,
2853
+ onChange: y,
2854
+ error: c.email,
2855
+ disabled: m,
2853
2856
  colorScheme: "secondary"
2854
2857
  }
2855
2858
  ),
2856
- /* @__PURE__ */ l(
2859
+ /* @__PURE__ */ s(
2857
2860
  ie,
2858
2861
  {
2859
2862
  id: "password",
@@ -2861,57 +2864,57 @@ const Cr = { Toggle: kr }, Nr = ({
2861
2864
  name: "password",
2862
2865
  placeholder: "Ingresa tu contraseña",
2863
2866
  label: "Contraseña",
2864
- value: a.password,
2865
- onChange: m,
2866
- error: n.password,
2867
- disabled: d,
2867
+ value: i.password,
2868
+ onChange: y,
2869
+ error: c.password,
2870
+ disabled: m,
2868
2871
  colorScheme: "secondary"
2869
2872
  }
2870
2873
  )
2871
2874
  ] });
2872
2875
  }
2873
- }, L = () => {
2874
- switch (y) {
2876
+ }, P = () => {
2877
+ switch (f) {
2875
2878
  case "forgot":
2876
2879
  return "Recuperar Contraseña";
2877
2880
  default:
2878
2881
  return e;
2879
2882
  }
2880
- }, P = () => {
2881
- if (d)
2882
- return /* @__PURE__ */ l(Nr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2883
- switch (y) {
2883
+ }, z = () => {
2884
+ if (m)
2885
+ return /* @__PURE__ */ s(Nr, { size: 20, wrapperStyle: { minHeight: "auto" } });
2886
+ switch (f) {
2884
2887
  case "forgot":
2885
2888
  return "Enviar Enlace";
2886
2889
  default:
2887
2890
  return "Entrar";
2888
2891
  }
2889
2892
  };
2890
- return /* @__PURE__ */ l(
2893
+ return /* @__PURE__ */ s(
2891
2894
  "div",
2892
2895
  {
2893
- className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${t || ""}`,
2894
- children: /* @__PURE__ */ h("div", { className: "w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
2895
- /* @__PURE__ */ l("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: L() }),
2896
- /* @__PURE__ */ l("div", { className: "space-y-4 mb-6", children: b() }),
2897
- /* @__PURE__ */ l("form", { onSubmit: u, children: /* @__PURE__ */ l(
2896
+ className: `flex justify-center items-center min-h-[90vh] p-6 bg-background sm:p-4 ${o || ""}`,
2897
+ children: /* @__PURE__ */ x("div", { className: "w-full max-w-100 p-12 bg-white rounded-2xl shadow-lg animate-[fadeIn_0.3s_ease-out] sm:p-8", children: [
2898
+ /* @__PURE__ */ s("h2", { className: "text-center mb-12 text-3xl font-semibold text-primary sm:text-2xl sm:mb-8", children: P() }),
2899
+ /* @__PURE__ */ s("div", { className: "space-y-4 mb-6", children: L() }),
2900
+ /* @__PURE__ */ s("form", { onSubmit: w, children: /* @__PURE__ */ s(
2898
2901
  q,
2899
2902
  {
2900
2903
  type: "submit",
2901
- disabled: d,
2902
- loading: d,
2904
+ disabled: m,
2905
+ loading: m,
2903
2906
  fullWidth: !0,
2904
2907
  variant: "primary",
2905
2908
  size: "lg",
2906
2909
  className: "mb-6",
2907
- children: !d && P()
2910
+ children: !m && z()
2908
2911
  }
2909
2912
  ) }),
2910
- y === "login" && r && /* @__PURE__ */ l(
2913
+ f === "login" && r && /* @__PURE__ */ s(
2911
2914
  q,
2912
2915
  {
2913
2916
  type: "button",
2914
- onClick: () => k("forgot"),
2917
+ onClick: () => h("forgot"),
2915
2918
  variant: "link",
2916
2919
  size: "sm",
2917
2920
  fullWidth: !0,
@@ -2919,11 +2922,11 @@ const Cr = { Toggle: kr }, Nr = ({
2919
2922
  children: "¿Olvidaste tu contraseña?"
2920
2923
  }
2921
2924
  ),
2922
- y === "forgot" && /* @__PURE__ */ l(
2925
+ f === "forgot" && /* @__PURE__ */ s(
2923
2926
  q,
2924
2927
  {
2925
2928
  type: "button",
2926
- onClick: () => k("login"),
2929
+ onClick: () => h("login"),
2927
2930
  variant: "link",
2928
2931
  size: "sm",
2929
2932
  fullWidth: !0,
@@ -2941,14 +2944,14 @@ var Se = {
2941
2944
  className: void 0,
2942
2945
  style: void 0,
2943
2946
  attr: void 0
2944
- }, fe = V.createContext && /* @__PURE__ */ V.createContext(Se), Mr = ["attr", "size", "title"];
2947
+ }, fe = B.createContext && /* @__PURE__ */ B.createContext(Se), Mr = ["attr", "size", "title"];
2945
2948
  function zr(e, r) {
2946
2949
  if (e == null) return {};
2947
- var t = Lr(e, r), o, s;
2950
+ var t = Lr(e, r), o, a;
2948
2951
  if (Object.getOwnPropertySymbols) {
2949
- var a = Object.getOwnPropertySymbols(e);
2950
- for (s = 0; s < a.length; s++)
2951
- o = a[s], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2952
+ var l = Object.getOwnPropertySymbols(e);
2953
+ for (a = 0; a < l.length; a++)
2954
+ o = l[a], !(r.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
2952
2955
  }
2953
2956
  return t;
2954
2957
  }
@@ -2976,8 +2979,8 @@ function he(e, r) {
2976
2979
  var t = Object.keys(e);
2977
2980
  if (Object.getOwnPropertySymbols) {
2978
2981
  var o = Object.getOwnPropertySymbols(e);
2979
- r && (o = o.filter(function(s) {
2980
- return Object.getOwnPropertyDescriptor(e, s).enumerable;
2982
+ r && (o = o.filter(function(a) {
2983
+ return Object.getOwnPropertyDescriptor(e, a).enumerable;
2981
2984
  })), t.push.apply(t, o);
2982
2985
  }
2983
2986
  return t;
@@ -3011,12 +3014,12 @@ function Pr(e, r) {
3011
3014
  return (r === "string" ? String : Number)(e);
3012
3015
  }
3013
3016
  function Pe(e) {
3014
- return e && e.map((r, t) => /* @__PURE__ */ V.createElement(r.tag, ae({
3017
+ return e && e.map((r, t) => /* @__PURE__ */ B.createElement(r.tag, ae({
3015
3018
  key: t
3016
3019
  }, r.attr), Pe(r.child)));
3017
3020
  }
3018
3021
  function J(e) {
3019
- return (r) => /* @__PURE__ */ V.createElement(Er, ne({
3022
+ return (r) => /* @__PURE__ */ B.createElement(Er, ne({
3020
3023
  attr: ae({}, e.attr)
3021
3024
  }, r), Pe(e.child));
3022
3025
  }
@@ -3024,10 +3027,10 @@ function Er(e) {
3024
3027
  var r = (t) => {
3025
3028
  var {
3026
3029
  attr: o,
3027
- size: s,
3028
- title: a
3029
- } = e, i = zr(e, Mr), n = s || t.size || "1em", c;
3030
- return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ V.createElement("svg", ne({
3030
+ size: a,
3031
+ title: l
3032
+ } = e, i = zr(e, Mr), n = a || t.size || "1em", c;
3033
+ return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", ne({
3031
3034
  stroke: "currentColor",
3032
3035
  fill: "currentColor",
3033
3036
  strokeWidth: "0"
@@ -3039,9 +3042,9 @@ function Er(e) {
3039
3042
  height: n,
3040
3043
  width: n,
3041
3044
  xmlns: "http://www.w3.org/2000/svg"
3042
- }), a && /* @__PURE__ */ V.createElement("title", null, a), e.children);
3045
+ }), l && /* @__PURE__ */ B.createElement("title", null, l), e.children);
3043
3046
  };
3044
- return fe !== void 0 ? /* @__PURE__ */ V.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
3047
+ return fe !== void 0 ? /* @__PURE__ */ B.createElement(fe.Consumer, null, (t) => r(t)) : r(Se);
3045
3048
  }
3046
3049
  function Ar(e) {
3047
3050
  return J({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(e);
@@ -3049,10 +3052,10 @@ function Ar(e) {
3049
3052
  const Ir = (e, r = 500) => {
3050
3053
  const [t, o] = $(e);
3051
3054
  return H(() => {
3052
- const s = setTimeout(() => {
3055
+ const a = setTimeout(() => {
3053
3056
  o(e);
3054
3057
  }, r);
3055
- return () => clearTimeout(s);
3058
+ return () => clearTimeout(a);
3056
3059
  }, [e, r]), t;
3057
3060
  }, Qr = () => ({ showToast: (r, t) => {
3058
3061
  const o = {
@@ -3100,19 +3103,19 @@ function et({
3100
3103
  onChange: r,
3101
3104
  placeholder: t = "Search...",
3102
3105
  disabled: o = !1,
3103
- colorScheme: s = "secondary",
3104
- label: a,
3106
+ colorScheme: a = "secondary",
3107
+ label: l,
3105
3108
  className: i = "",
3106
3109
  debounceDelay: n = 500,
3107
3110
  ...c
3108
3111
  }) {
3109
- const [d, g] = $(e || ""), y = Ir(d, n), x = ve(r, [r]);
3112
+ const [d, m] = $(e || ""), k = Ir(d, n), f = ve(r, [r]);
3110
3113
  H(() => {
3111
- x(y);
3112
- }, [y, x]);
3114
+ f(k);
3115
+ }, [k, f]);
3113
3116
  const v = () => {
3114
3117
  const u = "w-full px-4 py-4 pl-10 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed placeholder:text-text-muted";
3115
- switch (s) {
3118
+ switch (a) {
3116
3119
  case "primary":
3117
3120
  return p(
3118
3121
  u,
@@ -3125,31 +3128,31 @@ function et({
3125
3128
  "text-secondary border-secondary focus:border-secondary"
3126
3129
  );
3127
3130
  }
3128
- }, m = () => s === "primary" ? "text-primary" : "text-secondary", w = () => s === "primary" ? "text-primary" : "text-secondary";
3129
- return /* @__PURE__ */ h("div", { className: p("mb-0", i), children: [
3130
- a && /* @__PURE__ */ l(
3131
+ }, b = () => a === "primary" ? "text-primary" : "text-secondary", y = () => a === "primary" ? "text-primary" : "text-secondary";
3132
+ return /* @__PURE__ */ x("div", { className: p("mb-0", i), children: [
3133
+ l && /* @__PURE__ */ s(
3131
3134
  "label",
3132
3135
  {
3133
- className: p("block mb-2 text-sm font-medium", w()),
3134
- children: a
3136
+ className: p("block mb-2 text-sm font-medium", y()),
3137
+ children: l
3135
3138
  }
3136
3139
  ),
3137
- /* @__PURE__ */ h("div", { className: "relative w-full", children: [
3138
- /* @__PURE__ */ l(
3140
+ /* @__PURE__ */ x("div", { className: "relative w-full", children: [
3141
+ /* @__PURE__ */ s(
3139
3142
  Ar,
3140
3143
  {
3141
3144
  className: p(
3142
3145
  "absolute left-3 top-1/2 -translate-y-1/2 text-base pointer-events-none",
3143
- m()
3146
+ b()
3144
3147
  )
3145
3148
  }
3146
3149
  ),
3147
- /* @__PURE__ */ l(
3150
+ /* @__PURE__ */ s(
3148
3151
  "input",
3149
3152
  {
3150
3153
  type: "text",
3151
3154
  value: d,
3152
- onChange: (u) => g(u.target.value),
3155
+ onChange: (u) => m(u.target.value),
3153
3156
  placeholder: t,
3154
3157
  disabled: o,
3155
3158
  className: v(),
@@ -3170,41 +3173,41 @@ function rt({
3170
3173
  labelOf: r = "of",
3171
3174
  setPagination: t,
3172
3175
  totalPages: o,
3173
- currentPage: s,
3174
- showLabel: a = !0,
3176
+ currentPage: a,
3177
+ showLabel: l = !0,
3175
3178
  className: i = "",
3176
3179
  isLoading: n = !1,
3177
3180
  fetchPage: c
3178
3181
  }) {
3179
- const d = parseInt(String(s)) === 1 || parseInt(String(o)) === 0 || n, g = parseInt(String(s)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, y = () => {
3180
- n || (c ? c(s - 1) : t && t((v) => ({
3182
+ const d = parseInt(String(a)) === 1 || parseInt(String(o)) === 0 || n, m = parseInt(String(a)) === parseInt(String(o)) || parseInt(String(o)) === 0 || n, k = () => {
3183
+ n || (c ? c(a - 1) : t && t((v) => ({
3181
3184
  ...v,
3182
3185
  page: v.page - 1
3183
3186
  })));
3184
- }, x = () => {
3185
- n || (c ? c(s + 1) : t && t((v) => ({
3187
+ }, f = () => {
3188
+ n || (c ? c(a + 1) : t && t((v) => ({
3186
3189
  ...v,
3187
3190
  page: v.page + 1
3188
3191
  })));
3189
3192
  };
3190
- return /* @__PURE__ */ h("div", { className: p("flex justify-center items-center mt-8", i), children: [
3191
- /* @__PURE__ */ l(
3193
+ return /* @__PURE__ */ x("div", { className: p("flex justify-center items-center mt-8", i), children: [
3194
+ /* @__PURE__ */ s(
3192
3195
  q,
3193
3196
  {
3194
3197
  disabled: d,
3195
- onClick: y,
3198
+ onClick: k,
3196
3199
  variant: "secondary",
3197
- children: /* @__PURE__ */ l(jr, { size: 14 })
3200
+ children: /* @__PURE__ */ s(jr, { size: 14 })
3198
3201
  }
3199
3202
  ),
3200
- /* @__PURE__ */ l("h5", { className: "font-bold mx-2.5 text-text", children: `${a ? e : ""} ${s}${a ? ` ${r} ` : " / "}${o}` }),
3201
- /* @__PURE__ */ l(
3203
+ /* @__PURE__ */ s("h5", { className: "font-bold mx-2.5 text-text", children: `${l ? e : ""} ${a}${l ? ` ${r} ` : " / "}${o}` }),
3204
+ /* @__PURE__ */ s(
3202
3205
  q,
3203
3206
  {
3204
- disabled: g,
3205
- onClick: x,
3207
+ disabled: m,
3208
+ onClick: f,
3206
3209
  variant: "primary",
3207
- children: /* @__PURE__ */ l(Or, { size: 14 })
3210
+ children: /* @__PURE__ */ s(Or, { size: 14 })
3208
3211
  }
3209
3212
  )
3210
3213
  ] });
@@ -3223,58 +3226,58 @@ function tt({
3223
3226
  subtitle: r,
3224
3227
  children: t,
3225
3228
  defaultExpanded: o = !1,
3226
- expanded: s,
3227
- onToggle: a,
3229
+ expanded: a,
3230
+ onToggle: l,
3228
3231
  className: i = "",
3229
3232
  colorScheme: n = "primary",
3230
3233
  icon: c,
3231
3234
  disabled: d = !1,
3232
- headerExtra: g
3235
+ headerExtra: m
3233
3236
  }) {
3234
- const [y, x] = $(o), v = s !== void 0 ? s : y, m = () => {
3237
+ const [k, f] = $(o), v = a !== void 0 ? a : k, b = () => {
3235
3238
  if (d) return;
3236
- const b = !v;
3237
- s === void 0 && x(b), a?.(b);
3238
- }, w = () => n === "primary" ? "border-primary" : "border-secondary", u = () => n === "primary" ? "text-primary" : "text-secondary", k = () => n === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
3239
- return /* @__PURE__ */ h(
3239
+ const h = !v;
3240
+ a === void 0 && f(h), l?.(h);
3241
+ }, y = () => n === "primary" ? "border-primary" : "border-secondary", u = () => n === "primary" ? "text-primary" : "text-secondary", w = () => n === "primary" ? "hover:bg-primary/5" : "hover:bg-secondary/5";
3242
+ return /* @__PURE__ */ x(
3240
3243
  "div",
3241
3244
  {
3242
3245
  className: p(
3243
3246
  "w-full rounded-lg border-2 bg-background transition-all duration-300",
3244
- w(),
3247
+ y(),
3245
3248
  v && "shadow-lg",
3246
3249
  i
3247
3250
  ),
3248
3251
  children: [
3249
- /* @__PURE__ */ h(
3252
+ /* @__PURE__ */ x(
3250
3253
  "button",
3251
3254
  {
3252
3255
  type: "button",
3253
- onClick: m,
3256
+ onClick: b,
3254
3257
  disabled: d,
3255
3258
  className: p(
3256
3259
  "w-full flex cursor-pointer items-center justify-between p-4 text-left transition-all duration-300 rounded-lg",
3257
- !d && k(),
3260
+ !d && w(),
3258
3261
  d && "opacity-50"
3259
3262
  ),
3260
3263
  "aria-expanded": v,
3261
3264
  children: [
3262
- /* @__PURE__ */ h("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3263
- c && /* @__PURE__ */ l("div", { className: p("shrink-0", u()), children: c }),
3264
- /* @__PURE__ */ h("div", { className: "flex-1 min-w-0", children: [
3265
- /* @__PURE__ */ l(
3265
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
3266
+ c && /* @__PURE__ */ s("div", { className: p("shrink-0", u()), children: c }),
3267
+ /* @__PURE__ */ x("div", { className: "flex-1 min-w-0", children: [
3268
+ /* @__PURE__ */ s(
3266
3269
  "h3",
3267
3270
  {
3268
3271
  className: p("text-base font-medium truncate", u()),
3269
3272
  children: e
3270
3273
  }
3271
3274
  ),
3272
- r && /* @__PURE__ */ l("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3275
+ r && /* @__PURE__ */ s("p", { className: "text-sm text-text-muted truncate mt-0.5", children: r })
3273
3276
  ] })
3274
3277
  ] }),
3275
- /* @__PURE__ */ h("div", { className: "flex items-center gap-3 shrink-0", children: [
3276
- g && /* @__PURE__ */ l("div", { onClick: (b) => b.stopPropagation(), children: g }),
3277
- /* @__PURE__ */ l(
3278
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-3 shrink-0", children: [
3279
+ m && /* @__PURE__ */ s("div", { onClick: (h) => h.stopPropagation(), children: m }),
3280
+ /* @__PURE__ */ s(
3278
3281
  "div",
3279
3282
  {
3280
3283
  className: p(
@@ -3282,21 +3285,21 @@ function tt({
3282
3285
  u(),
3283
3286
  v && "rotate-180"
3284
3287
  ),
3285
- children: /* @__PURE__ */ l(Ee, { className: "h-5 w-5" })
3288
+ children: /* @__PURE__ */ s(Ee, { className: "h-5 w-5" })
3286
3289
  }
3287
3290
  )
3288
3291
  ] })
3289
3292
  ]
3290
3293
  }
3291
3294
  ),
3292
- /* @__PURE__ */ l(
3295
+ /* @__PURE__ */ s(
3293
3296
  "div",
3294
3297
  {
3295
3298
  className: p(
3296
3299
  "overflow-hidden transition-all duration-300 ease-in-out",
3297
3300
  v ? "max-h-500 opacity-100" : "max-h-0 opacity-0"
3298
3301
  ),
3299
- children: /* @__PURE__ */ l("div", { className: p("p-4 pt-0 border-t-0", w()), children: /* @__PURE__ */ l("div", { className: "border-t border-border pt-4", children: t }) })
3302
+ children: /* @__PURE__ */ s("div", { className: p("p-4 pt-0 border-t-0", y()), children: /* @__PURE__ */ s("div", { className: "border-t border-border pt-4", children: t }) })
3300
3303
  }
3301
3304
  )
3302
3305
  ]
@@ -3304,47 +3307,47 @@ function tt({
3304
3307
  );
3305
3308
  }
3306
3309
  function ot({ children: e, className: r = "" }) {
3307
- return /* @__PURE__ */ l("div", { className: p("py-4", r), children: e });
3310
+ return /* @__PURE__ */ s("div", { className: p("py-4", r), children: e });
3308
3311
  }
3309
3312
  function nt({
3310
3313
  options: e,
3311
3314
  value: r,
3312
3315
  onChange: t,
3313
3316
  children: o,
3314
- className: s = "",
3315
- colorScheme: a = "primary",
3317
+ className: a = "",
3318
+ colorScheme: l = "primary",
3316
3319
  variant: i = "underline"
3317
3320
  }) {
3318
3321
  const [n, c] = $(
3319
3322
  r ?? e[0]?.value ?? ""
3320
- ), d = r !== void 0 ? r : n, g = (m) => {
3321
- r === void 0 && c(m), t?.(m);
3322
- }, y = (m, w) => {
3323
- const u = d === m, k = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
3324
- if (w)
3325
- return p(k, "text-text-muted");
3323
+ ), d = r !== void 0 ? r : n, m = (b) => {
3324
+ r === void 0 && c(b), t?.(b);
3325
+ }, k = (b, y) => {
3326
+ const u = d === b, w = "px-4 py-3 cursor-pointer text-sm font-medium transition-all duration-300 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed";
3327
+ if (y)
3328
+ return p(w, "text-text-muted");
3326
3329
  switch (i) {
3327
3330
  case "filled":
3328
3331
  return p(
3329
- k,
3332
+ w,
3330
3333
  "rounded-lg",
3331
- u ? a === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3334
+ u ? l === "primary" ? "bg-primary text-white" : "bg-secondary text-white" : "text-text-muted hover:bg-background-light"
3332
3335
  );
3333
3336
  case "pills":
3334
3337
  return p(
3335
- k,
3338
+ w,
3336
3339
  "rounded-full",
3337
- u ? a === "primary" ? "bg-primary/10 text-primary border-2 border-primary" : "bg-secondary/10 text-secondary border-2 border-secondary" : "text-text-muted hover:bg-background-light border-2 border-transparent"
3340
+ u ? l === "primary" ? "bg-primary/10 text-primary border-2 border-primary" : "bg-secondary/10 text-secondary border-2 border-secondary" : "text-text-muted hover:bg-background-light border-2 border-transparent"
3338
3341
  );
3339
3342
  case "underline":
3340
3343
  default:
3341
3344
  return p(
3342
- k,
3345
+ w,
3343
3346
  "border-b-2",
3344
- u ? a === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-text-muted hover:text-text hover:border-border"
3347
+ u ? l === "primary" ? "border-primary text-primary" : "border-secondary text-secondary" : "border-transparent text-text-muted hover:text-text hover:border-border"
3345
3348
  );
3346
3349
  }
3347
- }, x = () => {
3350
+ }, f = () => {
3348
3351
  switch (i) {
3349
3352
  case "filled":
3350
3353
  return "flex gap-1 p-1 bg-background-light rounded-lg";
@@ -3354,23 +3357,23 @@ function nt({
3354
3357
  default:
3355
3358
  return "flex border-b-2 border-border";
3356
3359
  }
3357
- }, v = V.Children.toArray(o).find((m) => V.isValidElement(m) ? m.props.value === d : !1);
3358
- return /* @__PURE__ */ h("div", { className: p("w-full", s), children: [
3359
- /* @__PURE__ */ l("div", { className: x(), role: "tablist", children: e.map((m) => /* @__PURE__ */ l(
3360
+ }, v = B.Children.toArray(o).find((b) => B.isValidElement(b) ? b.props.value === d : !1);
3361
+ return /* @__PURE__ */ x("div", { className: p("w-full", a), children: [
3362
+ /* @__PURE__ */ s("div", { className: f(), role: "tablist", children: e.map((b) => /* @__PURE__ */ s(
3360
3363
  "button",
3361
3364
  {
3362
3365
  type: "button",
3363
3366
  role: "tab",
3364
- "aria-selected": d === m.value,
3365
- "aria-controls": `tabpanel-${m.value}`,
3366
- disabled: m.disabled,
3367
- onClick: () => !m.disabled && g(m.value),
3368
- className: y(m.value, m.disabled),
3369
- children: m.label
3367
+ "aria-selected": d === b.value,
3368
+ "aria-controls": `tabpanel-${b.value}`,
3369
+ disabled: b.disabled,
3370
+ onClick: () => !b.disabled && m(b.value),
3371
+ className: k(b.value, b.disabled),
3372
+ children: b.label
3370
3373
  },
3371
- m.value
3374
+ b.value
3372
3375
  )) }),
3373
- /* @__PURE__ */ l("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
3376
+ /* @__PURE__ */ s("div", { role: "tabpanel", id: `tabpanel-${d}`, children: v })
3374
3377
  ] });
3375
3378
  }
3376
3379
  function ye(e) {
@@ -3434,34 +3437,34 @@ function at({
3434
3437
  onChange: r,
3435
3438
  disabled: t = !1,
3436
3439
  className: o = "",
3437
- colorScheme: s = "secondary",
3438
- lang: a = "en",
3440
+ colorScheme: a = "secondary",
3441
+ lang: l = "en",
3439
3442
  ...i
3440
3443
  }) {
3441
3444
  const [n, c] = $(e || /* @__PURE__ */ new Date()), d = {
3442
3445
  en: "en-US",
3443
3446
  es: "es-ES"
3444
- }, g = {
3447
+ }, m = {
3445
3448
  en: Fr,
3446
3449
  es: Rr
3447
- }, y = {
3450
+ }, k = {
3448
3451
  en: _r,
3449
3452
  es: Vr
3450
- }, x = Br(n), v = Gr(n), m = [];
3451
- for (let f = 0; f < v; f++)
3452
- m.push(null);
3453
- for (let f = 1; f <= x; f++) {
3454
- const O = new Date(
3453
+ }, f = Br(n), v = Gr(n), b = [];
3454
+ for (let g = 0; g < v; g++)
3455
+ b.push(null);
3456
+ for (let g = 1; g <= f; g++) {
3457
+ const j = new Date(
3455
3458
  n.getFullYear(),
3456
3459
  n.getMonth(),
3457
- f,
3460
+ g,
3458
3461
  12,
3459
3462
  0,
3460
3463
  0
3461
3464
  );
3462
- m.push(O);
3465
+ b.push(j);
3463
3466
  }
3464
- const w = () => {
3467
+ const y = () => {
3465
3468
  c(
3466
3469
  new Date(
3467
3470
  n.getFullYear(),
@@ -3483,7 +3486,7 @@ function at({
3483
3486
  0
3484
3487
  )
3485
3488
  );
3486
- }, k = () => {
3489
+ }, w = () => {
3487
3490
  c(
3488
3491
  new Date(
3489
3492
  n.getFullYear() - 1,
@@ -3494,7 +3497,7 @@ function at({
3494
3497
  0
3495
3498
  )
3496
3499
  );
3497
- }, b = () => {
3500
+ }, h = () => {
3498
3501
  c(
3499
3502
  new Date(
3500
3503
  n.getFullYear() + 1,
@@ -3505,20 +3508,20 @@ function at({
3505
3508
  0
3506
3509
  )
3507
3510
  );
3508
- }, L = (f) => {
3509
- if (f && !t) {
3510
- const O = new Date(
3511
- f.getFullYear(),
3512
- f.getMonth(),
3513
- f.getDate(),
3511
+ }, L = (g) => {
3512
+ if (g && !t) {
3513
+ const j = new Date(
3514
+ g.getFullYear(),
3515
+ g.getMonth(),
3516
+ g.getDate(),
3514
3517
  12,
3515
3518
  0,
3516
3519
  0
3517
3520
  );
3518
- c(O), r?.(O);
3521
+ c(j), r?.(j);
3519
3522
  }
3520
- }, C = (() => {
3521
- switch (s) {
3523
+ }, z = (() => {
3524
+ switch (a) {
3522
3525
  case "primary":
3523
3526
  return {
3524
3527
  header: "text-primary",
@@ -3535,8 +3538,8 @@ function at({
3535
3538
  button: "text-secondary border-secondary hover:bg-secondary/20"
3536
3539
  };
3537
3540
  }
3538
- })(), I = (f) => f && e ? f.toDateString() === e.toDateString() : !1;
3539
- return /* @__PURE__ */ h(
3541
+ })(), E = (g) => g && e ? g.toDateString() === e.toDateString() : !1;
3542
+ return /* @__PURE__ */ x(
3540
3543
  "div",
3541
3544
  {
3542
3545
  className: p(
@@ -3545,64 +3548,64 @@ function at({
3545
3548
  ),
3546
3549
  ...i,
3547
3550
  children: [
3548
- /* @__PURE__ */ h("div", { className: "mb-6", children: [
3549
- /* @__PURE__ */ h(
3551
+ /* @__PURE__ */ x("div", { className: "mb-6", children: [
3552
+ /* @__PURE__ */ x(
3550
3553
  "div",
3551
3554
  {
3552
3555
  className: p(
3553
3556
  "flex items-center justify-between mb-4",
3554
- C.header
3557
+ z.header
3555
3558
  ),
3556
3559
  children: [
3557
- /* @__PURE__ */ l(
3560
+ /* @__PURE__ */ s(
3558
3561
  "button",
3559
3562
  {
3560
3563
  type: "button",
3561
- onClick: k,
3564
+ onClick: w,
3562
3565
  disabled: t,
3563
3566
  className: p(
3564
3567
  "p-2 rounded-lg border transition-all duration-300",
3565
- C.button,
3568
+ z.button,
3566
3569
  t && "opacity-50 cursor-not-allowed"
3567
3570
  ),
3568
- children: /* @__PURE__ */ l(ye, { size: 18 })
3571
+ children: /* @__PURE__ */ s(ye, { size: 18 })
3569
3572
  }
3570
3573
  ),
3571
- /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
3572
- /* @__PURE__ */ l(
3574
+ /* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: n.getFullYear() }),
3575
+ /* @__PURE__ */ s(
3573
3576
  "button",
3574
3577
  {
3575
3578
  type: "button",
3576
- onClick: b,
3579
+ onClick: h,
3577
3580
  disabled: t,
3578
3581
  className: p(
3579
3582
  "p-2 rounded-lg border transition-all duration-300",
3580
- C.button,
3583
+ z.button,
3581
3584
  t && "opacity-50 cursor-not-allowed"
3582
3585
  ),
3583
- children: /* @__PURE__ */ l(xe, { size: 18 })
3586
+ children: /* @__PURE__ */ s(xe, { size: 18 })
3584
3587
  }
3585
3588
  )
3586
3589
  ]
3587
3590
  }
3588
3591
  ),
3589
- /* @__PURE__ */ h("div", { className: p("flex items-center justify-between", C.header), children: [
3590
- /* @__PURE__ */ l(
3592
+ /* @__PURE__ */ x("div", { className: p("flex items-center justify-between", z.header), children: [
3593
+ /* @__PURE__ */ s(
3591
3594
  "button",
3592
3595
  {
3593
3596
  type: "button",
3594
- onClick: w,
3597
+ onClick: y,
3595
3598
  disabled: t,
3596
3599
  className: p(
3597
3600
  "p-2 rounded-lg border transition-all duration-300",
3598
- C.button,
3601
+ z.button,
3599
3602
  t && "opacity-50 cursor-not-allowed"
3600
3603
  ),
3601
- children: /* @__PURE__ */ l(ye, { size: 18 })
3604
+ children: /* @__PURE__ */ s(ye, { size: 18 })
3602
3605
  }
3603
3606
  ),
3604
- /* @__PURE__ */ l("h2", { className: "font-semibold text-lg", children: y[a][n.getMonth()] }),
3605
- /* @__PURE__ */ l(
3607
+ /* @__PURE__ */ s("h2", { className: "font-semibold text-lg", children: k[l][n.getMonth()] }),
3608
+ /* @__PURE__ */ s(
3606
3609
  "button",
3607
3610
  {
3608
3611
  type: "button",
@@ -3610,52 +3613,52 @@ function at({
3610
3613
  disabled: t,
3611
3614
  className: p(
3612
3615
  "p-2 rounded-lg border transition-all duration-300",
3613
- C.button,
3616
+ z.button,
3614
3617
  t && "opacity-50 cursor-not-allowed"
3615
3618
  ),
3616
- children: /* @__PURE__ */ l(xe, { size: 18 })
3619
+ children: /* @__PURE__ */ s(xe, { size: 18 })
3617
3620
  }
3618
3621
  )
3619
3622
  ] })
3620
3623
  ] }),
3621
- /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2 mb-4", children: g[a].map((f) => /* @__PURE__ */ l(
3624
+ /* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2 mb-4", children: m[l].map((g) => /* @__PURE__ */ s(
3622
3625
  "div",
3623
3626
  {
3624
3627
  className: p(
3625
3628
  "text-center text-sm font-medium py-2",
3626
- C.header
3629
+ z.header
3627
3630
  ),
3628
- children: f
3631
+ children: g
3629
3632
  },
3630
- f
3633
+ g
3631
3634
  )) }),
3632
- /* @__PURE__ */ l("div", { className: "grid grid-cols-7 gap-2", children: m.map((f, O) => /* @__PURE__ */ l(
3635
+ /* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-2", children: b.map((g, j) => /* @__PURE__ */ s(
3633
3636
  "button",
3634
3637
  {
3635
3638
  type: "button",
3636
- onClick: () => L(f),
3637
- disabled: !f || t,
3639
+ onClick: () => L(g),
3640
+ disabled: !g || t,
3638
3641
  className: p(
3639
3642
  "p-2 rounded-lg text-sm font-medium transition-all duration-300",
3640
- f ? p(
3643
+ g ? p(
3641
3644
  "cursor-pointer",
3642
- C.hover,
3643
- I(f) ? C.selected : "text-text border border-transparent hover:border-border",
3645
+ z.hover,
3646
+ E(g) ? z.selected : "text-text border border-transparent hover:border-border",
3644
3647
  t && "opacity-50 cursor-not-allowed"
3645
3648
  ) : "cursor-default"
3646
3649
  ),
3647
- children: f ? f.getDate() : ""
3650
+ children: g ? g.getDate() : ""
3648
3651
  },
3649
- O
3652
+ j
3650
3653
  )) }),
3651
- e && /* @__PURE__ */ l(
3654
+ e && /* @__PURE__ */ s(
3652
3655
  "div",
3653
3656
  {
3654
3657
  className: p(
3655
3658
  "mt-6 p-3 rounded-lg bg-background-dark border border-border text-center text-sm font-medium",
3656
- C.header
3659
+ z.header
3657
3660
  ),
3658
- children: e.toLocaleDateString(d[a], {
3661
+ children: e.toLocaleDateString(d[l], {
3659
3662
  year: "numeric",
3660
3663
  month: "long",
3661
3664
  day: "numeric"
@@ -3671,71 +3674,71 @@ function st({
3671
3674
  data: r,
3672
3675
  loading: t,
3673
3676
  loadingText: o = "Loading...",
3674
- actions: s,
3675
- actionsHeader: a = "Actions",
3677
+ actions: a,
3678
+ actionsHeader: l = "Actions",
3676
3679
  onRowClick: i,
3677
3680
  className: n = "",
3678
3681
  rowClassName: c = "",
3679
3682
  cellClassName: d = "",
3680
- headerClassName: g = "",
3681
- emptyText: y = "No data available",
3682
- showCount: x = !0,
3683
- countText: v = (w) => `Showing ${w} record${w !== 1 ? "s" : ""}`,
3684
- keyExtractor: m = (w, u) => w._id || w.id || u
3683
+ headerClassName: m = "",
3684
+ emptyText: k = "No data available",
3685
+ showCount: f = !0,
3686
+ countText: v = (y) => `Showing ${y} record${y !== 1 ? "s" : ""}`,
3687
+ keyExtractor: b = (y, u) => y._id || y.id || u
3685
3688
  }) {
3686
3689
  if (t)
3687
- return /* @__PURE__ */ l("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ l("div", { className: "text-lg text-text-light", children: o }) });
3690
+ return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-light", children: o }) });
3688
3691
  if (r.length === 0)
3689
- return /* @__PURE__ */ l("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ l("div", { className: "text-lg text-text-muted", children: y }) });
3690
- const w = (u, k) => {
3691
- const b = k.toLowerCase().replace(/\s+/g, "_");
3692
- let L = u[b];
3692
+ return /* @__PURE__ */ s("div", { className: "flex justify-center items-center min-h-50", children: /* @__PURE__ */ s("div", { className: "text-lg text-text-muted", children: k }) });
3693
+ const y = (u, w) => {
3694
+ const h = w.toLowerCase().replace(/\s+/g, "_");
3695
+ let L = u[h];
3693
3696
  if (L === void 0) {
3694
3697
  const P = [
3695
- b.replace(/_/g, ""),
3696
- k.toLowerCase().replace(/\s+/g, ""),
3697
- b.replace(/_([a-z])/g, (C, I) => I.toUpperCase())
3698
+ h.replace(/_/g, ""),
3699
+ w.toLowerCase().replace(/\s+/g, ""),
3700
+ h.replace(/_([a-z])/g, (z, E) => E.toUpperCase())
3698
3701
  ];
3699
- for (const C of P)
3700
- if (u[C] !== void 0) {
3701
- L = u[C];
3702
+ for (const z of P)
3703
+ if (u[z] !== void 0) {
3704
+ L = u[z];
3702
3705
  break;
3703
3706
  }
3704
3707
  }
3705
3708
  if (L === void 0) {
3706
- const P = k.toLowerCase().split(" "), C = Object.keys(u).find(
3707
- (I) => P.some((f) => I.toLowerCase().includes(f))
3709
+ const P = w.toLowerCase().split(" "), z = Object.keys(u).find(
3710
+ (E) => P.some((g) => E.toLowerCase().includes(g))
3708
3711
  );
3709
- C && (L = u[C]);
3712
+ z && (L = u[z]);
3710
3713
  }
3711
3714
  return L != null ? String(L) : "N/A";
3712
3715
  };
3713
- return /* @__PURE__ */ h("div", { className: p("overflow-x-auto", n), children: [
3714
- /* @__PURE__ */ h("table", { className: "w-full border-collapse", children: [
3715
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ h("tr", { className: "border-b-2 border-border", children: [
3716
- e.map((u, k) => /* @__PURE__ */ l(
3716
+ return /* @__PURE__ */ x("div", { className: p("overflow-x-auto", n), children: [
3717
+ /* @__PURE__ */ x("table", { className: "w-full border-collapse", children: [
3718
+ /* @__PURE__ */ s("thead", { children: /* @__PURE__ */ x("tr", { className: "border-b-2 border-border", children: [
3719
+ e.map((u, w) => /* @__PURE__ */ s(
3717
3720
  "th",
3718
3721
  {
3719
3722
  className: p(
3720
3723
  "text-left py-3 px-4 font-semibold text-text",
3721
- g
3724
+ m
3722
3725
  ),
3723
3726
  children: u
3724
3727
  },
3725
- k
3728
+ w
3726
3729
  )),
3727
- s && /* @__PURE__ */ l(
3730
+ a && /* @__PURE__ */ s(
3728
3731
  "th",
3729
3732
  {
3730
3733
  className: p(
3731
3734
  "text-center py-3 px-4 font-semibold text-text",
3732
- g
3735
+ m
3733
3736
  ),
3734
- children: a
3737
+ children: l
3735
3738
  }
3736
3739
  )
3737
3740
  ] }) }),
3738
- /* @__PURE__ */ l("tbody", { children: r.map((u, k) => /* @__PURE__ */ h(
3741
+ /* @__PURE__ */ s("tbody", { children: r.map((u, w) => /* @__PURE__ */ x(
3739
3742
  "tr",
3740
3743
  {
3741
3744
  className: p(
@@ -3745,36 +3748,36 @@ function st({
3745
3748
  ),
3746
3749
  onClick: () => i?.(u),
3747
3750
  children: [
3748
- e.map((b, L) => /* @__PURE__ */ l("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ l("div", { className: "text-text-light", children: w(u, b) }) }, L)),
3749
- s && /* @__PURE__ */ l("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ l("div", { className: "flex gap-2 justify-center", children: s.map((b, L) => {
3750
- const P = (C) => {
3751
- C?.stopPropagation(), b.onClick?.(u);
3751
+ e.map((h, L) => /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "text-text-light", children: y(u, h) }) }, L)),
3752
+ a && /* @__PURE__ */ s("td", { className: p("py-4 px-4", d), children: /* @__PURE__ */ s("div", { className: "flex gap-2 justify-center", children: a.map((h, L) => {
3753
+ const P = (z) => {
3754
+ z?.stopPropagation(), h.onClick?.(u);
3752
3755
  };
3753
- if (b.component) {
3754
- const C = b.component;
3755
- return /* @__PURE__ */ h(
3756
- C,
3756
+ if (h.component) {
3757
+ const z = h.component;
3758
+ return /* @__PURE__ */ x(
3759
+ z,
3757
3760
  {
3758
3761
  onClick: P,
3759
- className: b.className || "",
3760
- ...b.props || {},
3762
+ className: h.className || "",
3763
+ ...h.props || {},
3761
3764
  children: [
3762
- b.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: V.createElement(b.icon) }),
3763
- b.label && b.label
3765
+ h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
3766
+ h.label && h.label
3764
3767
  ]
3765
3768
  },
3766
3769
  L
3767
3770
  );
3768
3771
  }
3769
- return /* @__PURE__ */ h(
3772
+ return /* @__PURE__ */ x(
3770
3773
  q,
3771
3774
  {
3772
3775
  onClick: P,
3773
- className: b.className || "",
3774
- ...b.props || {},
3776
+ className: h.className || "",
3777
+ ...h.props || {},
3775
3778
  children: [
3776
- b.icon && /* @__PURE__ */ l("span", { className: "inline-block", children: V.createElement(b.icon) }),
3777
- b.label && b.label
3779
+ h.icon && /* @__PURE__ */ s("span", { className: "inline-block", children: B.createElement(h.icon) }),
3780
+ h.label && h.label
3778
3781
  ]
3779
3782
  },
3780
3783
  L
@@ -3782,10 +3785,10 @@ function st({
3782
3785
  }) }) })
3783
3786
  ]
3784
3787
  },
3785
- m(u, k)
3788
+ b(u, w)
3786
3789
  )) })
3787
3790
  ] }),
3788
- x && r.length > 0 && /* @__PURE__ */ l("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
3791
+ f && r.length > 0 && /* @__PURE__ */ s("div", { className: "mt-6 text-center text-text-light text-sm", children: v(r.length) })
3789
3792
  ] });
3790
3793
  }
3791
3794
  function lt({
@@ -3793,100 +3796,100 @@ function lt({
3793
3796
  options: r,
3794
3797
  value: t = "",
3795
3798
  onChange: o,
3796
- multiple: s = !1,
3797
- className: a = "",
3799
+ multiple: a = !1,
3800
+ className: l = "",
3798
3801
  searchable: i = !1,
3799
3802
  onSearchInputCustom: n,
3800
3803
  placeholder: c = "Select...",
3801
3804
  disabled: d = !1,
3802
- error: g,
3803
- required: y = !1,
3804
- colorScheme: x = "primary",
3805
+ error: m,
3806
+ required: k = !1,
3807
+ colorScheme: f = "primary",
3805
3808
  noResultsText: v = "No results found",
3806
- searchPlaceholder: m = "Search...",
3807
- ...w
3809
+ searchPlaceholder: b = "Search...",
3810
+ ...y
3808
3811
  }) {
3809
- const [u, k] = $(!1), [b, L] = $(""), [P, C] = $({
3812
+ const [u, w] = $(!1), [h, L] = $(""), [P, z] = $({
3810
3813
  top: 0,
3811
3814
  left: 0,
3812
3815
  openUpward: !1
3813
- }), I = Array.isArray(t) ? t : t ? [t] : [], [f, O] = $(
3814
- I.map((N) => r.find((D) => D.value === N)).filter(Boolean)
3815
- ), B = ce(null), G = ce(null), K = () => {
3816
- const N = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
3817
- if (g)
3818
- return p(N, "border-danger focus:border-danger");
3819
- switch (x) {
3816
+ }), E = Array.isArray(t) ? t : t ? [t] : [], [g, j] = $(
3817
+ E.map((C) => r.find((D) => D.value === C)).filter(Boolean)
3818
+ ), F = ce(null), G = ce(null), K = () => {
3819
+ const C = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none focus:ring-1 disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed";
3820
+ if (m)
3821
+ return p(C, "border-danger focus:border-danger");
3822
+ switch (f) {
3820
3823
  case "primary":
3821
3824
  return p(
3822
- N,
3825
+ C,
3823
3826
  "text-primary border-primary focus:border-primary"
3824
3827
  );
3825
3828
  case "secondary":
3826
3829
  default:
3827
3830
  return p(
3828
- N,
3831
+ C,
3829
3832
  "text-secondary border-secondary focus:border-secondary"
3830
3833
  );
3831
3834
  }
3832
- }, S = () => x === "primary" ? "text-primary" : "text-secondary";
3835
+ }, S = () => f === "primary" ? "text-primary" : "text-secondary";
3833
3836
  H(() => {
3834
- const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((F) => r.find((R) => R.value === F)).filter(Boolean);
3835
- O(D);
3837
+ const D = (Array.isArray(t) ? t : t !== "" && t !== null && t !== void 0 ? [t] : []).map((R) => r.find((_) => _.value === R)).filter(Boolean);
3838
+ j(D);
3836
3839
  }, [t, r]), H(() => {
3837
3840
  u && i && G.current && G.current.focus();
3838
3841
  }, [u, i]);
3839
- const z = ve(() => {
3840
- if (!B.current) return;
3841
- const N = B.current.getBoundingClientRect(), D = window.innerHeight, F = 250, X = D - N.bottom < F && N.top > F;
3842
- C({
3843
- top: X ? N.top : N.bottom,
3844
- left: N.left,
3845
- width: N.width,
3842
+ const M = ve(() => {
3843
+ if (!F.current) return;
3844
+ const C = F.current.getBoundingClientRect(), D = window.innerHeight, R = 250, X = D - C.bottom < R && C.top > R;
3845
+ z({
3846
+ top: X ? C.top : C.bottom,
3847
+ left: C.left,
3848
+ width: C.width,
3846
3849
  openUpward: X
3847
3850
  });
3848
3851
  }, []);
3849
3852
  H(() => {
3850
- function N(F) {
3851
- B.current && !B.current.contains(F.target) && k(!1);
3853
+ function C(R) {
3854
+ F.current && !F.current.contains(R.target) && w(!1);
3852
3855
  }
3853
3856
  function D() {
3854
- u && z();
3857
+ u && M();
3855
3858
  }
3856
- return document.addEventListener("mousedown", N), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
3857
- document.removeEventListener("mousedown", N), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
3859
+ return document.addEventListener("mousedown", C), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
3860
+ document.removeEventListener("mousedown", C), window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
3858
3861
  };
3859
- }, [u, z]);
3860
- const E = (N) => {
3862
+ }, [u, M]);
3863
+ const A = (C) => {
3861
3864
  const D = r.find(
3862
- (R) => R.value === N
3865
+ (_) => _.value === C
3863
3866
  );
3864
3867
  if (!D) return;
3865
- let F;
3866
- s ? (F = f.some((X) => X.value === N) ? f.filter((X) => X.value !== N) : [...f, D], O(F), o(F)) : (F = [D], O(F), o(D), k(!1), L(""));
3867
- }, _ = (N) => {
3868
- L(N), n?.(N);
3868
+ let R;
3869
+ a ? (R = g.some((X) => X.value === C) ? g.filter((X) => X.value !== C) : [...g, D], j(R), o(R)) : (R = [D], j(R), o(D), w(!1), L(""));
3870
+ }, V = (C) => {
3871
+ L(C), n?.(C);
3869
3872
  }, T = i ? r.filter(
3870
- (N) => N.label.toLowerCase().includes(b.toLowerCase())
3871
- ) : r, Z = () => f.length === 0 ? c : s ? f.length === 1 ? f[0].label : `${f.length} selected` : f[0]?.label || c;
3872
- return /* @__PURE__ */ h("div", { className: p("mb-6", a), children: [
3873
- e && /* @__PURE__ */ h(
3873
+ (C) => C.label.toLowerCase().includes(h.toLowerCase())
3874
+ ) : r, Z = () => g.length === 0 ? c : a ? g.length === 1 ? g[0].label : `${g.length} selected` : g[0]?.label || c;
3875
+ return /* @__PURE__ */ x("div", { className: p("mb-6", l), children: [
3876
+ e && /* @__PURE__ */ x(
3874
3877
  "label",
3875
3878
  {
3876
3879
  className: p("block mb-2 text-sm font-medium", S()),
3877
3880
  children: [
3878
3881
  e,
3879
- y && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
3882
+ k && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
3880
3883
  ]
3881
3884
  }
3882
3885
  ),
3883
- /* @__PURE__ */ h("div", { ref: B, className: "relative w-full", children: [
3884
- /* @__PURE__ */ h(
3886
+ /* @__PURE__ */ x("div", { ref: F, className: "relative w-full", children: [
3887
+ /* @__PURE__ */ x(
3885
3888
  "button",
3886
3889
  {
3887
3890
  type: "button",
3888
- onClick: (N) => {
3889
- N.preventDefault(), N.stopPropagation(), u || z(), k(!u);
3891
+ onClick: (C) => {
3892
+ C.preventDefault(), C.stopPropagation(), u || M(), w(!u);
3890
3893
  },
3891
3894
  className: p(
3892
3895
  K(),
@@ -3895,43 +3898,43 @@ function lt({
3895
3898
  u && "ring-1"
3896
3899
  ),
3897
3900
  disabled: d,
3898
- ...w,
3901
+ ...y,
3899
3902
  children: [
3900
- /* @__PURE__ */ h("div", { className: "flex items-center gap-2 flex-1", children: [
3901
- f.length > 0 && f[0].hex && /* @__PURE__ */ l(
3903
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1", children: [
3904
+ g.length > 0 && g[0].hex && /* @__PURE__ */ s(
3902
3905
  "div",
3903
3906
  {
3904
3907
  className: "h-4 w-4 rounded border border-border",
3905
- style: { backgroundColor: f[0].hex }
3908
+ style: { backgroundColor: g[0].hex }
3906
3909
  }
3907
3910
  ),
3908
- /* @__PURE__ */ l(
3911
+ /* @__PURE__ */ s(
3909
3912
  "span",
3910
3913
  {
3911
- className: f.length > 0 ? "" : "text-text-muted",
3914
+ className: g.length > 0 ? "" : "text-text-muted",
3912
3915
  children: Z()
3913
3916
  }
3914
3917
  )
3915
3918
  ] }),
3916
- /* @__PURE__ */ l(
3919
+ /* @__PURE__ */ s(
3917
3920
  "div",
3918
3921
  {
3919
3922
  className: p(
3920
3923
  "h-5 w-5 transition-transform duration-200",
3921
3924
  u && "rotate-180"
3922
3925
  ),
3923
- children: /* @__PURE__ */ l(Ee, { className: "h-5 w-5" })
3926
+ children: /* @__PURE__ */ s(Ee, { className: "h-5 w-5" })
3924
3927
  }
3925
3928
  )
3926
3929
  ]
3927
3930
  }
3928
3931
  ),
3929
- u && /* @__PURE__ */ h(
3932
+ u && /* @__PURE__ */ x(
3930
3933
  "div",
3931
3934
  {
3932
3935
  className: p(
3933
3936
  "fixed z-9999 rounded-lg border-2 bg-white shadow-xl",
3934
- g ? "border-danger" : x === "primary" ? "border-primary" : "border-secondary"
3937
+ m ? "border-danger" : f === "primary" ? "border-primary" : "border-secondary"
3935
3938
  ),
3936
3939
  style: {
3937
3940
  top: `${P.top + (P.openUpward ? 0 : 8)}px`,
@@ -3940,59 +3943,59 @@ function lt({
3940
3943
  transform: P.openUpward ? "translateY(-100%)" : "none"
3941
3944
  },
3942
3945
  children: [
3943
- i && /* @__PURE__ */ l("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ h("div", { className: "relative", children: [
3944
- /* @__PURE__ */ l($r, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3945
- /* @__PURE__ */ l(
3946
+ i && /* @__PURE__ */ s("div", { className: "border-b border-border p-3", children: /* @__PURE__ */ x("div", { className: "relative", children: [
3947
+ /* @__PURE__ */ s($r, { className: "absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-text-muted" }),
3948
+ /* @__PURE__ */ s(
3946
3949
  "input",
3947
3950
  {
3948
3951
  ref: G,
3949
3952
  type: "text",
3950
- value: b,
3951
- onChange: (N) => _(N.target.value),
3952
- placeholder: m,
3953
+ value: h,
3954
+ onChange: (C) => V(C.target.value),
3955
+ placeholder: b,
3953
3956
  className: p(
3954
3957
  "w-full rounded-lg border-2 py-2 pr-10 pl-10 text-sm transition-all duration-300 focus:outline-none focus:ring-1",
3955
- x === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3958
+ f === "primary" ? "border-primary text-primary" : "border-secondary text-secondary"
3956
3959
  )
3957
3960
  }
3958
3961
  ),
3959
- b && /* @__PURE__ */ l(
3962
+ h && /* @__PURE__ */ s(
3960
3963
  "button",
3961
3964
  {
3962
3965
  type: "button",
3963
3966
  onClick: () => L(""),
3964
3967
  className: "absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 transform text-text-muted hover:text-text",
3965
- children: /* @__PURE__ */ l(Tr, { className: "h-4 w-4" })
3968
+ children: /* @__PURE__ */ s(Tr, { className: "h-4 w-4" })
3966
3969
  }
3967
3970
  )
3968
3971
  ] }) }),
3969
- /* @__PURE__ */ h("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3970
- T.map((N) => /* @__PURE__ */ l(
3972
+ /* @__PURE__ */ x("div", { className: "max-h-60 overflow-y-auto py-1", children: [
3973
+ T.map((C) => /* @__PURE__ */ s(
3971
3974
  "button",
3972
3975
  {
3973
3976
  type: "button",
3974
- onClick: () => E(N.value ?? ""),
3977
+ onClick: () => A(C.value ?? ""),
3975
3978
  className: p(
3976
3979
  "w-full px-4 py-3 text-left text-sm transition-colors",
3977
- f.some((D) => D.value === N.value) ? x === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
3980
+ g.some((D) => D.value === C.value) ? f === "primary" ? "bg-primary/10 text-primary font-medium" : "bg-secondary/10 text-secondary font-medium" : "text-text hover:bg-background-light"
3978
3981
  ),
3979
- children: /* @__PURE__ */ h("div", { className: "flex items-center gap-3", children: [
3980
- s && /* @__PURE__ */ l(
3982
+ children: /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
3983
+ a && /* @__PURE__ */ s(
3981
3984
  "div",
3982
3985
  {
3983
3986
  className: p(
3984
3987
  "flex h-4 w-4 items-center justify-center rounded border-2 transition-colors",
3985
- f.some((D) => D.value === N.value) ? x === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
3988
+ g.some((D) => D.value === C.value) ? f === "primary" ? "border-primary bg-primary" : "border-secondary bg-secondary" : "border-border"
3986
3989
  ),
3987
- children: f.some(
3988
- (D) => D.value === N.value
3989
- ) && /* @__PURE__ */ l(
3990
+ children: g.some(
3991
+ (D) => D.value === C.value
3992
+ ) && /* @__PURE__ */ s(
3990
3993
  "svg",
3991
3994
  {
3992
3995
  className: "h-3 w-3 text-white",
3993
3996
  fill: "currentColor",
3994
3997
  viewBox: "0 0 20 20",
3995
- children: /* @__PURE__ */ l(
3998
+ children: /* @__PURE__ */ s(
3996
3999
  "path",
3997
4000
  {
3998
4001
  fillRule: "evenodd",
@@ -4004,25 +4007,25 @@ function lt({
4004
4007
  )
4005
4008
  }
4006
4009
  ),
4007
- N.hex && /* @__PURE__ */ l(
4010
+ C.hex && /* @__PURE__ */ s(
4008
4011
  "div",
4009
4012
  {
4010
4013
  className: "h-4 w-4 rounded border border-border",
4011
- style: { backgroundColor: N.hex }
4014
+ style: { backgroundColor: C.hex }
4012
4015
  }
4013
4016
  ),
4014
- /* @__PURE__ */ l("span", { children: N.label })
4017
+ /* @__PURE__ */ s("span", { children: C.label })
4015
4018
  ] })
4016
4019
  },
4017
- N.value
4020
+ C.value
4018
4021
  )),
4019
- T.length === 0 && b && r.length > 0 && /* @__PURE__ */ l("div", { className: "px-4 py-3", children: /* @__PURE__ */ l("span", { className: "text-sm text-text-muted", children: v }) })
4022
+ T.length === 0 && h && r.length > 0 && /* @__PURE__ */ s("div", { className: "px-4 py-3", children: /* @__PURE__ */ s("span", { className: "text-sm text-text-muted", children: v }) })
4020
4023
  ] })
4021
4024
  ]
4022
4025
  }
4023
4026
  )
4024
4027
  ] }),
4025
- g && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: g })
4028
+ m && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: m })
4026
4029
  ] });
4027
4030
  }
4028
4031
  const it = ({
@@ -4030,36 +4033,36 @@ const it = ({
4030
4033
  name: r,
4031
4034
  onFilesSelected: t,
4032
4035
  placeholder: o = "Arrastra y suelta archivos aquí o haz clic para seleccionar",
4033
- labelSelectedFiles: s = "archivo:",
4034
- label: a,
4036
+ labelSelectedFiles: a = "archivo:",
4037
+ label: l,
4035
4038
  error: i,
4036
4039
  disabled: n = !1,
4037
4040
  required: c = !1,
4038
4041
  colorScheme: d = "secondary",
4039
4042
  // "primary" | "secondary"
4040
- className: g = "",
4041
- accept: y = "*/*",
4043
+ className: m = "",
4044
+ accept: k = "*/*",
4042
4045
  // Tipos de archivo aceptados: "image/*", "application/pdf", ".doc,.docx", etc.
4043
- multiple: x = !1,
4046
+ multiple: f = !1,
4044
4047
  ...v
4045
4048
  }) => {
4046
- const m = ce(null), [w, u] = $(!1), [k, b] = $([]), L = () => {
4047
- const z = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed cursor-pointer min-h-[120px]";
4049
+ const b = ce(null), [y, u] = $(!1), [w, h] = $([]), L = () => {
4050
+ const M = "w-full p-4 border-2 rounded-lg text-base bg-white transition-all duration-300 focus:outline-none disabled:bg-light disabled:text-text-muted disabled:cursor-not-allowed cursor-pointer min-h-[120px]";
4048
4051
  if (i)
4049
4052
  return p(
4050
- z,
4053
+ M,
4051
4054
  "border-danger focus:border-danger focus:ring-1 focus:ring-danger"
4052
4055
  );
4053
4056
  switch (d) {
4054
4057
  case "primary":
4055
4058
  return p(
4056
- z,
4059
+ M,
4057
4060
  "border-primary focus:border-primary focus:ring-1 focus:ring-primary hover:border-primary-dark"
4058
4061
  );
4059
4062
  case "secondary":
4060
4063
  default:
4061
4064
  return p(
4062
- z,
4065
+ M,
4063
4066
  "border-secondary focus:border-secondary focus:ring-1 focus:ring-secondary hover:border-secondary-dark"
4064
4067
  );
4065
4068
  }
@@ -4071,88 +4074,88 @@ const it = ({
4071
4074
  default:
4072
4075
  return "text-secondary";
4073
4076
  }
4074
- }, C = (z) => {
4075
- z.preventDefault(), z.stopPropagation(), n || (z.type === "dragenter" || z.type === "dragover" ? u(!0) : z.type === "dragleave" && u(!1));
4076
- }, I = (z) => {
4077
- if (z.preventDefault(), z.stopPropagation(), u(!1), n) return;
4078
- const E = z.dataTransfer.files;
4079
- O(E);
4080
- }, f = (z) => {
4081
- const E = z.target.files;
4082
- E && O(E);
4083
- }, O = (z) => {
4084
- const E = Array.from(z);
4085
- if (y !== "*/*") {
4086
- const _ = E.filter((T) => B(T, y));
4087
- if (_.length === 0) {
4077
+ }, z = (M) => {
4078
+ M.preventDefault(), M.stopPropagation(), n || (M.type === "dragenter" || M.type === "dragover" ? u(!0) : M.type === "dragleave" && u(!1));
4079
+ }, E = (M) => {
4080
+ if (M.preventDefault(), M.stopPropagation(), u(!1), n) return;
4081
+ const A = M.dataTransfer.files;
4082
+ j(A);
4083
+ }, g = (M) => {
4084
+ const A = M.target.files;
4085
+ A && j(A);
4086
+ }, j = (M) => {
4087
+ const A = Array.from(M);
4088
+ if (k !== "*/*") {
4089
+ const V = A.filter((T) => F(T, k));
4090
+ if (V.length === 0) {
4088
4091
  console.warn("No valid files selected");
4089
4092
  return;
4090
4093
  }
4091
- b(x ? _ : [_[0]]), t(x ? _ : [_[0]]);
4094
+ h(f ? V : [V[0]]), t(f ? V : [V[0]]);
4092
4095
  } else
4093
- b(x ? E : [E[0]]), t(x ? E : [E[0]]);
4094
- }, B = (z, E) => E.split(",").map((T) => T.trim()).some((T) => {
4096
+ h(f ? A : [A[0]]), t(f ? A : [A[0]]);
4097
+ }, F = (M, A) => A.split(",").map((T) => T.trim()).some((T) => {
4095
4098
  if (T.startsWith("."))
4096
- return z.name.toLowerCase().endsWith(T.toLowerCase());
4099
+ return M.name.toLowerCase().endsWith(T.toLowerCase());
4097
4100
  if (T.includes("/")) {
4098
- const [Z, N] = T.split("/"), D = z.type.split("/")[0];
4099
- return N === "*" ? D === Z : z.type === T;
4101
+ const [Z, C] = T.split("/"), D = M.type.split("/")[0];
4102
+ return C === "*" ? D === Z : M.type === T;
4100
4103
  }
4101
4104
  return !1;
4102
4105
  }), G = () => {
4103
- n || m.current?.click();
4104
- }, K = (z) => {
4105
- const E = k.filter((_, T) => T !== z);
4106
- b(E), t(E);
4107
- }, S = (z) => {
4108
- (z.key === "Enter" || z.key === " ") && (z.preventDefault(), G());
4106
+ n || b.current?.click();
4107
+ }, K = (M) => {
4108
+ const A = w.filter((V, T) => T !== M);
4109
+ h(A), t(A);
4110
+ }, S = (M) => {
4111
+ (M.key === "Enter" || M.key === " ") && (M.preventDefault(), G());
4109
4112
  };
4110
- return /* @__PURE__ */ h("div", { className: `mb-6 ${g}`, children: [
4111
- a && /* @__PURE__ */ h("label", { className: `block mb-2 text-sm font-medium ${P()}`, children: [
4112
- a,
4113
- c && /* @__PURE__ */ l("span", { className: "text-danger ml-1", children: "*" })
4113
+ return /* @__PURE__ */ x("div", { className: `mb-6 ${m}`, children: [
4114
+ l && /* @__PURE__ */ x("label", { className: `block mb-2 text-sm font-medium ${P()}`, children: [
4115
+ l,
4116
+ c && /* @__PURE__ */ s("span", { className: "text-danger ml-1", children: "*" })
4114
4117
  ] }),
4115
- /* @__PURE__ */ h(
4118
+ /* @__PURE__ */ x(
4116
4119
  "div",
4117
4120
  {
4118
4121
  className: p(
4119
4122
  L(),
4120
- w && "bg-background-light border-2-dashed"
4123
+ y && "bg-background-light border-2-dashed"
4121
4124
  ),
4122
- onDragEnter: C,
4123
- onDragLeave: C,
4124
- onDragOver: C,
4125
- onDrop: I,
4125
+ onDragEnter: z,
4126
+ onDragLeave: z,
4127
+ onDragOver: z,
4128
+ onDrop: E,
4126
4129
  onClick: G,
4127
4130
  onKeyDown: S,
4128
4131
  role: "button",
4129
4132
  tabIndex: n ? -1 : 0,
4130
4133
  children: [
4131
- /* @__PURE__ */ l(
4134
+ /* @__PURE__ */ s(
4132
4135
  "input",
4133
4136
  {
4134
- ref: m,
4137
+ ref: b,
4135
4138
  id: e,
4136
4139
  name: r,
4137
4140
  type: "file",
4138
- onChange: f,
4141
+ onChange: g,
4139
4142
  disabled: n,
4140
4143
  required: c,
4141
- accept: y,
4142
- multiple: x,
4144
+ accept: k,
4145
+ multiple: f,
4143
4146
  className: "hidden",
4144
4147
  ...v
4145
4148
  }
4146
4149
  ),
4147
- /* @__PURE__ */ h("div", { className: "flex flex-col items-center justify-center py-4", children: [
4148
- /* @__PURE__ */ l(
4150
+ /* @__PURE__ */ x("div", { className: "flex flex-col items-center justify-center py-4", children: [
4151
+ /* @__PURE__ */ s(
4149
4152
  "svg",
4150
4153
  {
4151
4154
  className: `w-8 h-8 mb-2 ${d === "primary" ? "text-primary" : "text-secondary"}`,
4152
4155
  fill: "none",
4153
4156
  stroke: "currentColor",
4154
4157
  viewBox: "0 0 24 24",
4155
- children: /* @__PURE__ */ l(
4158
+ children: /* @__PURE__ */ s(
4156
4159
  "path",
4157
4160
  {
4158
4161
  strokeLinecap: "round",
@@ -4163,43 +4166,43 @@ const it = ({
4163
4166
  )
4164
4167
  }
4165
4168
  ),
4166
- /* @__PURE__ */ l("p", { className: `text-sm ${P()}`, children: o })
4169
+ /* @__PURE__ */ s("p", { className: `text-sm ${P()}`, children: o })
4167
4170
  ] })
4168
4171
  ]
4169
4172
  }
4170
4173
  ),
4171
- /* @__PURE__ */ h("div", { className: "mt-4 space-y-2", children: [
4172
- /* @__PURE__ */ h("p", { className: `text-sm font-medium ${P()}`, children: [
4173
- k.length,
4174
+ /* @__PURE__ */ x("div", { className: "mt-4 space-y-2", children: [
4175
+ /* @__PURE__ */ x("p", { className: `text-sm font-medium ${P()}`, children: [
4176
+ w.length,
4174
4177
  " ",
4175
- s,
4178
+ a,
4176
4179
  "(s) seleccionado(s):"
4177
4180
  ] }),
4178
- /* @__PURE__ */ l("ul", { className: "space-y-1", children: k.map((z, E) => /* @__PURE__ */ h(
4181
+ /* @__PURE__ */ s("ul", { className: "space-y-1", children: w.map((M, A) => /* @__PURE__ */ x(
4179
4182
  "li",
4180
4183
  {
4181
4184
  className: "flex items-center justify-between p-2 bg-light rounded border border-border",
4182
4185
  children: [
4183
- /* @__PURE__ */ h("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4184
- /* @__PURE__ */ h(
4186
+ /* @__PURE__ */ x("div", { className: "flex items-center gap-2 flex-1 min-w-0", children: [
4187
+ /* @__PURE__ */ x(
4185
4188
  "svg",
4186
4189
  {
4187
4190
  className: "w-4 h-4 text-text-muted shrink-0",
4188
4191
  fill: "currentColor",
4189
4192
  viewBox: "0 0 20 20",
4190
4193
  children: [
4191
- /* @__PURE__ */ l("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
4192
- /* @__PURE__ */ l("path", { d: "M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z" })
4194
+ /* @__PURE__ */ s("path", { d: "M8 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM15 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z" }),
4195
+ /* @__PURE__ */ s("path", { d: "M3 4a1 1 0 00-1 1v10a1 1 0 001 1h1.05a2.5 2.5 0 014.9 0H10a1 1 0 001-1V5a1 1 0 00-1-1H3zM14 7a1 1 0 00-1 1v6.05A2.5 2.5 0 0115.95 10H17a1 1 0 001-1v-3a1 1 0 00-1-1h-3z" })
4193
4196
  ]
4194
4197
  }
4195
4198
  ),
4196
- /* @__PURE__ */ l("span", { className: "text-sm text-text truncate", children: z.name })
4199
+ /* @__PURE__ */ s("span", { className: "text-sm text-text truncate", children: M.name })
4197
4200
  ] }),
4198
- /* @__PURE__ */ l(
4201
+ /* @__PURE__ */ s(
4199
4202
  "button",
4200
4203
  {
4201
- onClick: (_) => {
4202
- _.stopPropagation(), K(E);
4204
+ onClick: (V) => {
4205
+ V.stopPropagation(), K(A);
4203
4206
  },
4204
4207
  className: "ml-2 text-danger hover:text-danger-dark shrink-0",
4205
4208
  type: "button",
@@ -4208,36 +4211,36 @@ const it = ({
4208
4211
  )
4209
4212
  ]
4210
4213
  },
4211
- E
4214
+ A
4212
4215
  )) })
4213
4216
  ] }),
4214
- i && /* @__PURE__ */ l("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4217
+ i && /* @__PURE__ */ s("span", { className: "block mt-1 text-xs text-danger font-medium", children: i })
4215
4218
  ] });
4216
4219
  }, ct = ({
4217
4220
  text: e,
4218
4221
  className: r = "",
4219
4222
  variant: t = "default",
4220
4223
  visible: o = !0,
4221
- ...s
4224
+ ...a
4222
4225
  }) => {
4223
4226
  if (!o) return null;
4224
- const a = {
4227
+ const l = {
4225
4228
  default: "bg-gray-200 text-gray-800",
4226
4229
  primary: "bg-primary text-white",
4227
4230
  secondary: "bg-secondary text-white",
4228
4231
  secondaryDark: "bg-secondary-dark text-white",
4229
4232
  danger: "bg-danger text-white",
4230
4233
  warning: "bg-warning text-white"
4231
- }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = a[t] || a.default;
4232
- return /* @__PURE__ */ l("div", { className: `${i} ${n} ${r}`, ...s, children: e });
4234
+ }, i = "inline-flex items-center px-3 py-1 rounded-full text-xs font-bold uppercase shadow-md", n = l[t] || l.default;
4235
+ return /* @__PURE__ */ s("div", { className: `${i} ${n} ${r}`, ...a, children: e });
4233
4236
  };
4234
4237
  function dt({
4235
4238
  isOpen: e,
4236
4239
  onClose: r,
4237
4240
  title: t,
4238
4241
  children: o,
4239
- size: s = "md",
4240
- className: a = "",
4242
+ size: a = "md",
4243
+ className: l = "",
4241
4244
  overlayClassName: i = "",
4242
4245
  showCloseButton: n = !0,
4243
4246
  closeOnOverlayClick: c = !0,
@@ -4248,44 +4251,44 @@ function dt({
4248
4251
  }), [e]), H(() => {
4249
4252
  if (!d || !e)
4250
4253
  return;
4251
- const v = (m) => {
4252
- m.key === "Escape" && r();
4254
+ const v = (b) => {
4255
+ b.key === "Escape" && r();
4253
4256
  };
4254
4257
  return document.addEventListener("keydown", v), () => {
4255
4258
  document.removeEventListener("keydown", v);
4256
4259
  };
4257
4260
  }, [e, r, d]), !e) return null;
4258
- const g = {
4261
+ const m = {
4259
4262
  sm: "max-w-sm",
4260
4263
  md: "max-w-md",
4261
4264
  lg: "max-w-lg",
4262
4265
  xl: "max-w-xl",
4263
4266
  "2xl": "max-w-2xl"
4264
- }, y = () => {
4267
+ }, k = () => {
4265
4268
  c && r();
4266
- }, x = /* @__PURE__ */ l(
4269
+ }, f = /* @__PURE__ */ s(
4267
4270
  "div",
4268
4271
  {
4269
4272
  className: p(
4270
4273
  "fixed inset-0 bg-black/40 flex items-center justify-center z-9999 p-4",
4271
4274
  i
4272
4275
  ),
4273
- onClick: y,
4276
+ onClick: k,
4274
4277
  role: "dialog",
4275
4278
  "aria-modal": "true",
4276
4279
  "aria-labelledby": t ? "modal-title" : void 0,
4277
- children: /* @__PURE__ */ h(
4280
+ children: /* @__PURE__ */ x(
4278
4281
  "div",
4279
4282
  {
4280
4283
  className: p(
4281
4284
  "relative bg-white rounded-xl shadow-2xl max-h-[90vh] flex flex-col w-full transition-all duration-300",
4282
- g[s],
4283
- a
4285
+ m[a],
4286
+ l
4284
4287
  ),
4285
4288
  onClick: (v) => v.stopPropagation(),
4286
4289
  children: [
4287
- (t || n) && /* @__PURE__ */ h("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
4288
- t && /* @__PURE__ */ l(
4290
+ (t || n) && /* @__PURE__ */ x("div", { className: "flex justify-between items-center px-6 py-5 border-b border-border rounded-t-xl shrink-0", children: [
4291
+ t && /* @__PURE__ */ s(
4289
4292
  "h2",
4290
4293
  {
4291
4294
  id: "modal-title",
@@ -4293,59 +4296,59 @@ function dt({
4293
4296
  children: t
4294
4297
  }
4295
4298
  ),
4296
- n && /* @__PURE__ */ l(
4299
+ n && /* @__PURE__ */ s(
4297
4300
  "button",
4298
4301
  {
4299
4302
  className: "flex items-center justify-center w-8 h-8 text-text-muted hover:text-text hover:bg-background-light transition-colors duration-200 rounded-lg",
4300
4303
  onClick: r,
4301
4304
  "aria-label": "Cerrar modal",
4302
4305
  type: "button",
4303
- children: /* @__PURE__ */ l("span", { className: "text-2xl font-light leading-none", children: "×" })
4306
+ children: /* @__PURE__ */ s("span", { className: "text-2xl font-light leading-none", children: "×" })
4304
4307
  }
4305
4308
  )
4306
4309
  ] }),
4307
- /* @__PURE__ */ l("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4310
+ /* @__PURE__ */ s("div", { className: "p-6 overflow-y-auto flex-1", children: o })
4308
4311
  ]
4309
4312
  }
4310
4313
  )
4311
4314
  }
4312
4315
  );
4313
- return $e(x, document.body);
4316
+ return $e(f, document.body);
4314
4317
  }
4315
4318
  function ut({
4316
4319
  id: e,
4317
4320
  name: r,
4318
4321
  checked: t = !1,
4319
4322
  onChange: o,
4320
- disabled: s = !1,
4321
- required: a = !1,
4323
+ disabled: a = !1,
4324
+ required: l = !1,
4322
4325
  colorScheme: i = "secondary",
4323
4326
  variant: n = "solid",
4324
4327
  label: c,
4325
4328
  className: d = "",
4326
- ...g
4329
+ ...m
4327
4330
  }) {
4328
- const y = (x, v) => {
4329
- const m = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
4330
- if (x === "outline")
4331
+ const k = (f, v) => {
4332
+ const b = "checkbox-input size-4 shrink-0 rounded transition-all duration-300 cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-opacity-50 disabled:cursor-not-allowed disabled:opacity-50";
4333
+ if (f === "outline")
4331
4334
  switch (v) {
4332
4335
  case "primary":
4333
- return `${m} checkbox-outline checkbox-primary`;
4336
+ return `${b} checkbox-outline checkbox-primary`;
4334
4337
  case "secondary":
4335
4338
  default:
4336
- return `${m} checkbox-outline checkbox-secondary`;
4339
+ return `${b} checkbox-outline checkbox-secondary`;
4337
4340
  }
4338
4341
  else
4339
4342
  switch (v) {
4340
4343
  case "primary":
4341
- return `${m} checkbox-solid checkbox-primary`;
4344
+ return `${b} checkbox-solid checkbox-primary`;
4342
4345
  case "secondary":
4343
4346
  default:
4344
- return `${m} checkbox-solid checkbox-secondary`;
4347
+ return `${b} checkbox-solid checkbox-secondary`;
4345
4348
  }
4346
4349
  };
4347
- return c ? /* @__PURE__ */ h("div", { className: `flex items-center gap-2 ${d}`, children: [
4348
- /* @__PURE__ */ l(
4350
+ return c ? /* @__PURE__ */ x("div", { className: `flex items-center gap-2 ${d}`, children: [
4351
+ /* @__PURE__ */ s(
4349
4352
  "input",
4350
4353
  {
4351
4354
  id: e,
@@ -4353,24 +4356,24 @@ function ut({
4353
4356
  type: "checkbox",
4354
4357
  checked: t,
4355
4358
  onChange: o,
4356
- disabled: s,
4357
- required: a,
4358
- className: y(n, i),
4359
- ...g
4359
+ disabled: a,
4360
+ required: l,
4361
+ className: k(n, i),
4362
+ ...m
4360
4363
  }
4361
4364
  ),
4362
- /* @__PURE__ */ h(
4365
+ /* @__PURE__ */ x(
4363
4366
  "label",
4364
4367
  {
4365
4368
  htmlFor: e,
4366
4369
  className: "text-sm text-text cursor-pointer font-medium",
4367
4370
  children: [
4368
4371
  c,
4369
- a && /* @__PURE__ */ l("span", { className: "text-red-500 ml-1", children: "*" })
4372
+ l && /* @__PURE__ */ s("span", { className: "text-red-500 ml-1", children: "*" })
4370
4373
  ]
4371
4374
  }
4372
4375
  )
4373
- ] }) : /* @__PURE__ */ l(
4376
+ ] }) : /* @__PURE__ */ s(
4374
4377
  "input",
4375
4378
  {
4376
4379
  id: e,
@@ -4378,13 +4381,13 @@ function ut({
4378
4381
  type: "checkbox",
4379
4382
  checked: t,
4380
4383
  onChange: o,
4381
- disabled: s,
4382
- required: a,
4383
- className: `${y(n, i)} ${d}`,
4384
+ disabled: a,
4385
+ required: l,
4386
+ className: `${k(n, i)} ${d}`,
4384
4387
  style: {
4385
4388
  accentColor: "white"
4386
4389
  },
4387
- ...g
4390
+ ...m
4388
4391
  }
4389
4392
  );
4390
4393
  }
@@ -4414,7 +4417,7 @@ export {
4414
4417
  Zr as ThemeProvider,
4415
4418
  bt as Toggle,
4416
4419
  p as cn,
4417
- j as defaultTheme,
4420
+ O as defaultTheme,
4418
4421
  le as generateColorVariants,
4419
4422
  hr as hexToHsl,
4420
4423
  be as hslToHex,