@agilys-system/design-system 1.1.2 → 1.1.4

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.
@@ -1,5 +1,5 @@
1
- import { jsxs as R, jsx as l } from "react/jsx-runtime";
2
- import Fe, { forwardRef as K, createElement as kn, useMemo as fr, useId as yt, useState as xe, useRef as Qe, useCallback as Mn, useEffect as ut, createContext as rs, useContext as ss } from "react";
1
+ import { jsxs as L, jsx as l } from "react/jsx-runtime";
2
+ import Fe, { forwardRef as K, createElement as kn, useMemo as fr, useId as yt, useState as xe, useRef as Qe, useCallback as Mn, useEffect as Ke, createContext as rs, useContext as ss } from "react";
3
3
  import { createPortal as ns } from "react-dom";
4
4
  function as(e) {
5
5
  var t, r, s = "";
@@ -14,7 +14,7 @@ function is() {
14
14
  for (var e, t, r = 0, s = "", n = arguments.length; r < n; r++) (e = arguments[r]) && (t = as(e)) && (s && (s += " "), s += t);
15
15
  return s;
16
16
  }
17
- const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, ae = (e, t) => (r) => {
17
+ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, se = (e, t) => (r) => {
18
18
  var s;
19
19
  if ((t == null ? void 0 : t.variants) == null) return Vr(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
20
20
  const { variants: n, defaultVariants: a } = t, i = Object.keys(n).map((c) => {
@@ -26,16 +26,16 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
26
26
  let [p, g] = h;
27
27
  return g === void 0 || (c[p] = g), c;
28
28
  }, {}), d = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((c, h) => {
29
- let { class: p, className: g, ...L } = h;
30
- return Object.entries(L).every((P) => {
31
- let [M, y] = P;
29
+ let { class: p, className: g, ...P } = h;
30
+ return Object.entries(P).every((W) => {
31
+ let [N, y] = W;
32
32
  return Array.isArray(y) ? y.includes({
33
33
  ...a,
34
34
  ...o
35
- }[M]) : {
35
+ }[N]) : {
36
36
  ...a,
37
37
  ...o
38
- }[M] === y;
38
+ }[N] === y;
39
39
  }) ? [
40
40
  ...c,
41
41
  p,
@@ -153,25 +153,25 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
153
153
  const d = [];
154
154
  let c = 0, h = 0, p;
155
155
  for (let y = 0; y < o.length; y++) {
156
- let S = o[y];
156
+ let M = o[y];
157
157
  if (c === 0) {
158
- if (S === n && (s || o.slice(y, y + a) === t)) {
158
+ if (M === n && (s || o.slice(y, y + a) === t)) {
159
159
  d.push(o.slice(h, y)), h = y + a;
160
160
  continue;
161
161
  }
162
- if (S === "/") {
162
+ if (M === "/") {
163
163
  p = y;
164
164
  continue;
165
165
  }
166
166
  }
167
- S === "[" ? c++ : S === "]" && c--;
167
+ M === "[" ? c++ : M === "]" && c--;
168
168
  }
169
- const g = d.length === 0 ? o : o.substring(h), L = g.startsWith(ls), P = L ? g.substring(1) : g, M = p && p > h ? p - h : void 0;
169
+ const g = d.length === 0 ? o : o.substring(h), P = g.startsWith(ls), W = P ? g.substring(1) : g, N = p && p > h ? p - h : void 0;
170
170
  return {
171
171
  modifiers: d,
172
- hasImportantModifier: L,
173
- baseClassName: P,
174
- maybePostfixModifierPosition: M
172
+ hasImportantModifier: P,
173
+ baseClassName: W,
174
+ maybePostfixModifierPosition: N
175
175
  };
176
176
  };
177
177
  return r ? (o) => r({
@@ -202,28 +202,28 @@ const jr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vr = is, a
202
202
  modifiers: h,
203
203
  hasImportantModifier: p,
204
204
  baseClassName: g,
205
- maybePostfixModifierPosition: L
205
+ maybePostfixModifierPosition: P
206
206
  } = r(c);
207
- let P = !!L, M = s(P ? g.substring(0, L) : g);
208
- if (!M) {
209
- if (!P) {
207
+ let W = !!P, N = s(W ? g.substring(0, P) : g);
208
+ if (!N) {
209
+ if (!W) {
210
210
  o = c + (o.length > 0 ? " " + o : o);
211
211
  continue;
212
212
  }
213
- if (M = s(g), !M) {
213
+ if (N = s(g), !N) {
214
214
  o = c + (o.length > 0 ? " " + o : o);
215
215
  continue;
216
216
  }
217
- P = !1;
217
+ W = !1;
218
218
  }
219
- const y = Pn(h).join(":"), S = p ? y + ls : y, F = S + M;
220
- if (a.includes(F))
219
+ const y = Pn(h).join(":"), M = p ? y + ls : y, z = M + N;
220
+ if (a.includes(z))
221
221
  continue;
222
- a.push(F);
223
- const $ = n(M, P);
224
- for (let k = 0; k < $.length; ++k) {
225
- const q = $[k];
226
- a.push(S + q);
222
+ a.push(z);
223
+ const H = n(N, W);
224
+ for (let k = 0; k < H.length; ++k) {
225
+ const q = H[k];
226
+ a.push(M + q);
227
227
  }
228
228
  o = c + (o.length > 0 ? " " + o : o);
229
229
  }
@@ -263,7 +263,7 @@ function An(e, ...t) {
263
263
  const E = (e) => {
264
264
  const t = (r) => r[e] || [];
265
265
  return t.isThemeGetter = !0, t;
266
- }, cs = /^\[(?:([a-z-]+):)?(.+)\]$/i, zn = /^\d+\/\d+$/, Fn = /* @__PURE__ */ new Set(["px", "full", "screen"]), En = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jn = /\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$/, Vn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Un = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Be(e) || Fn.has(e) || zn.test(e), Ce = (e) => Ke(e, "length", Kn), Be = (e) => !!e && !Number.isNaN(Number(e)), Qt = (e) => Ke(e, "number", Be), at = (e) => !!e && Number.isInteger(Number(e)), Gn = (e) => e.endsWith("%") && Be(e.slice(0, -1)), w = (e) => cs.test(e), Pe = (e) => En.test(e), $n = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Bn = (e) => Ke(e, $n, us), Zn = (e) => Ke(e, "position", us), qn = /* @__PURE__ */ new Set(["image", "url"]), Jn = (e) => Ke(e, qn, ea), Qn = (e) => Ke(e, "", Xn), it = () => !0, Ke = (e, t, r) => {
266
+ }, cs = /^\[(?:([a-z-]+):)?(.+)\]$/i, zn = /^\d+\/\d+$/, Fn = /* @__PURE__ */ new Set(["px", "full", "screen"]), En = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jn = /\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$/, Vn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Un = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Hn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ge = (e) => Be(e) || Fn.has(e) || zn.test(e), Ce = (e) => Xe(e, "length", Kn), Be = (e) => !!e && !Number.isNaN(Number(e)), Qt = (e) => Xe(e, "number", Be), it = (e) => !!e && Number.isInteger(Number(e)), Gn = (e) => e.endsWith("%") && Be(e.slice(0, -1)), w = (e) => cs.test(e), Pe = (e) => En.test(e), $n = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Bn = (e) => Xe(e, $n, us), Zn = (e) => Xe(e, "position", us), qn = /* @__PURE__ */ new Set(["image", "url"]), Jn = (e) => Xe(e, qn, ea), Qn = (e) => Xe(e, "", Xn), ot = () => !0, Xe = (e, t, r) => {
267
267
  const s = cs.exec(e);
268
268
  return s ? s[1] ? typeof t == "string" ? s[1] === t : t.has(s[1]) : r(s[2]) : !1;
269
269
  }, Kn = (e) => (
@@ -272,36 +272,36 @@ const E = (e) => {
272
272
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
273
273
  jn.test(e) && !Vn.test(e)
274
274
  ), us = () => !1, Xn = (e) => Un.test(e), ea = (e) => Hn.test(e), ta = () => {
275
- const e = E("colors"), t = E("spacing"), r = E("blur"), s = E("brightness"), n = E("borderColor"), a = E("borderRadius"), i = E("borderSpacing"), o = E("borderWidth"), d = E("contrast"), c = E("grayscale"), h = E("hueRotate"), p = E("invert"), g = E("gap"), L = E("gradientColorStops"), P = E("gradientColorStopPositions"), M = E("inset"), y = E("margin"), S = E("opacity"), F = E("padding"), $ = E("saturate"), k = E("scale"), q = E("sepia"), H = E("skew"), D = E("space"), v = E("translate"), W = () => ["auto", "contain", "none"], G = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", w, t], I = () => [w, t], rt = () => ["", ge, Ce], Le = () => ["auto", Be, w], _t = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Ve = () => ["solid", "dashed", "dotted", "double", "none"], Oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ye = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", w], Ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Be, w];
275
+ const e = E("colors"), t = E("spacing"), r = E("blur"), s = E("brightness"), n = E("borderColor"), a = E("borderRadius"), i = E("borderSpacing"), o = E("borderWidth"), d = E("contrast"), c = E("grayscale"), h = E("hueRotate"), p = E("invert"), g = E("gap"), P = E("gradientColorStops"), W = E("gradientColorStopPositions"), N = E("inset"), y = E("margin"), M = E("opacity"), z = E("padding"), H = E("saturate"), k = E("scale"), q = E("sepia"), G = E("skew"), S = E("space"), v = E("translate"), I = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", w, t], R = () => [w, t], st = () => ["", ge, Ce], Le = () => ["auto", Be, w], _t = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Ve = () => ["solid", "dashed", "dotted", "double", "none"], Oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ye = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], B = () => ["", "0", w], Ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], te = () => [Be, w];
276
276
  return {
277
277
  cacheSize: 500,
278
278
  separator: ":",
279
279
  theme: {
280
- colors: [it],
280
+ colors: [ot],
281
281
  spacing: [ge, Ce],
282
282
  blur: ["none", "", Pe, w],
283
283
  brightness: te(),
284
284
  borderColor: [e],
285
285
  borderRadius: ["none", "", "full", Pe, w],
286
- borderSpacing: I(),
287
- borderWidth: rt(),
286
+ borderSpacing: R(),
287
+ borderWidth: st(),
288
288
  contrast: te(),
289
289
  grayscale: B(),
290
290
  hueRotate: te(),
291
291
  invert: B(),
292
- gap: I(),
292
+ gap: R(),
293
293
  gradientColorStops: [e],
294
294
  gradientColorStopPositions: [Gn, Ce],
295
295
  inset: Q(),
296
296
  margin: Q(),
297
297
  opacity: te(),
298
- padding: I(),
298
+ padding: R(),
299
299
  saturate: te(),
300
300
  scale: te(),
301
301
  sepia: B(),
302
302
  skew: te(),
303
- space: I(),
304
- translate: I()
303
+ space: R(),
304
+ translate: R()
305
305
  },
306
306
  classGroups: {
307
307
  // Layout
@@ -402,42 +402,42 @@ const E = (e) => {
402
402
  * @see https://tailwindcss.com/docs/overflow
403
403
  */
404
404
  overflow: [{
405
- overflow: G()
405
+ overflow: $()
406
406
  }],
407
407
  /**
408
408
  * Overflow X
409
409
  * @see https://tailwindcss.com/docs/overflow
410
410
  */
411
411
  "overflow-x": [{
412
- "overflow-x": G()
412
+ "overflow-x": $()
413
413
  }],
414
414
  /**
415
415
  * Overflow Y
416
416
  * @see https://tailwindcss.com/docs/overflow
417
417
  */
418
418
  "overflow-y": [{
419
- "overflow-y": G()
419
+ "overflow-y": $()
420
420
  }],
421
421
  /**
422
422
  * Overscroll Behavior
423
423
  * @see https://tailwindcss.com/docs/overscroll-behavior
424
424
  */
425
425
  overscroll: [{
426
- overscroll: W()
426
+ overscroll: I()
427
427
  }],
428
428
  /**
429
429
  * Overscroll Behavior X
430
430
  * @see https://tailwindcss.com/docs/overscroll-behavior
431
431
  */
432
432
  "overscroll-x": [{
433
- "overscroll-x": W()
433
+ "overscroll-x": I()
434
434
  }],
435
435
  /**
436
436
  * Overscroll Behavior Y
437
437
  * @see https://tailwindcss.com/docs/overscroll-behavior
438
438
  */
439
439
  "overscroll-y": [{
440
- "overscroll-y": W()
440
+ "overscroll-y": I()
441
441
  }],
442
442
  /**
443
443
  * Position
@@ -449,63 +449,63 @@ const E = (e) => {
449
449
  * @see https://tailwindcss.com/docs/top-right-bottom-left
450
450
  */
451
451
  inset: [{
452
- inset: [M]
452
+ inset: [N]
453
453
  }],
454
454
  /**
455
455
  * Right / Left
456
456
  * @see https://tailwindcss.com/docs/top-right-bottom-left
457
457
  */
458
458
  "inset-x": [{
459
- "inset-x": [M]
459
+ "inset-x": [N]
460
460
  }],
461
461
  /**
462
462
  * Top / Bottom
463
463
  * @see https://tailwindcss.com/docs/top-right-bottom-left
464
464
  */
465
465
  "inset-y": [{
466
- "inset-y": [M]
466
+ "inset-y": [N]
467
467
  }],
468
468
  /**
469
469
  * Start
470
470
  * @see https://tailwindcss.com/docs/top-right-bottom-left
471
471
  */
472
472
  start: [{
473
- start: [M]
473
+ start: [N]
474
474
  }],
475
475
  /**
476
476
  * End
477
477
  * @see https://tailwindcss.com/docs/top-right-bottom-left
478
478
  */
479
479
  end: [{
480
- end: [M]
480
+ end: [N]
481
481
  }],
482
482
  /**
483
483
  * Top
484
484
  * @see https://tailwindcss.com/docs/top-right-bottom-left
485
485
  */
486
486
  top: [{
487
- top: [M]
487
+ top: [N]
488
488
  }],
489
489
  /**
490
490
  * Right
491
491
  * @see https://tailwindcss.com/docs/top-right-bottom-left
492
492
  */
493
493
  right: [{
494
- right: [M]
494
+ right: [N]
495
495
  }],
496
496
  /**
497
497
  * Bottom
498
498
  * @see https://tailwindcss.com/docs/top-right-bottom-left
499
499
  */
500
500
  bottom: [{
501
- bottom: [M]
501
+ bottom: [N]
502
502
  }],
503
503
  /**
504
504
  * Left
505
505
  * @see https://tailwindcss.com/docs/top-right-bottom-left
506
506
  */
507
507
  left: [{
508
- left: [M]
508
+ left: [N]
509
509
  }],
510
510
  /**
511
511
  * Visibility
@@ -517,7 +517,7 @@ const E = (e) => {
517
517
  * @see https://tailwindcss.com/docs/z-index
518
518
  */
519
519
  z: [{
520
- z: ["auto", at, w]
520
+ z: ["auto", it, w]
521
521
  }],
522
522
  // Flexbox and Grid
523
523
  /**
@@ -567,14 +567,14 @@ const E = (e) => {
567
567
  * @see https://tailwindcss.com/docs/order
568
568
  */
569
569
  order: [{
570
- order: ["first", "last", "none", at, w]
570
+ order: ["first", "last", "none", it, w]
571
571
  }],
572
572
  /**
573
573
  * Grid Template Columns
574
574
  * @see https://tailwindcss.com/docs/grid-template-columns
575
575
  */
576
576
  "grid-cols": [{
577
- "grid-cols": [it]
577
+ "grid-cols": [ot]
578
578
  }],
579
579
  /**
580
580
  * Grid Column Start / End
@@ -582,7 +582,7 @@ const E = (e) => {
582
582
  */
583
583
  "col-start-end": [{
584
584
  col: ["auto", {
585
- span: ["full", at, w]
585
+ span: ["full", it, w]
586
586
  }, w]
587
587
  }],
588
588
  /**
@@ -604,7 +604,7 @@ const E = (e) => {
604
604
  * @see https://tailwindcss.com/docs/grid-template-rows
605
605
  */
606
606
  "grid-rows": [{
607
- "grid-rows": [it]
607
+ "grid-rows": [ot]
608
608
  }],
609
609
  /**
610
610
  * Grid Row Start / End
@@ -612,7 +612,7 @@ const E = (e) => {
612
612
  */
613
613
  "row-start-end": [{
614
614
  row: ["auto", {
615
- span: [at, w]
615
+ span: [it, w]
616
616
  }, w]
617
617
  }],
618
618
  /**
@@ -740,63 +740,63 @@ const E = (e) => {
740
740
  * @see https://tailwindcss.com/docs/padding
741
741
  */
742
742
  p: [{
743
- p: [F]
743
+ p: [z]
744
744
  }],
745
745
  /**
746
746
  * Padding X
747
747
  * @see https://tailwindcss.com/docs/padding
748
748
  */
749
749
  px: [{
750
- px: [F]
750
+ px: [z]
751
751
  }],
752
752
  /**
753
753
  * Padding Y
754
754
  * @see https://tailwindcss.com/docs/padding
755
755
  */
756
756
  py: [{
757
- py: [F]
757
+ py: [z]
758
758
  }],
759
759
  /**
760
760
  * Padding Start
761
761
  * @see https://tailwindcss.com/docs/padding
762
762
  */
763
763
  ps: [{
764
- ps: [F]
764
+ ps: [z]
765
765
  }],
766
766
  /**
767
767
  * Padding End
768
768
  * @see https://tailwindcss.com/docs/padding
769
769
  */
770
770
  pe: [{
771
- pe: [F]
771
+ pe: [z]
772
772
  }],
773
773
  /**
774
774
  * Padding Top
775
775
  * @see https://tailwindcss.com/docs/padding
776
776
  */
777
777
  pt: [{
778
- pt: [F]
778
+ pt: [z]
779
779
  }],
780
780
  /**
781
781
  * Padding Right
782
782
  * @see https://tailwindcss.com/docs/padding
783
783
  */
784
784
  pr: [{
785
- pr: [F]
785
+ pr: [z]
786
786
  }],
787
787
  /**
788
788
  * Padding Bottom
789
789
  * @see https://tailwindcss.com/docs/padding
790
790
  */
791
791
  pb: [{
792
- pb: [F]
792
+ pb: [z]
793
793
  }],
794
794
  /**
795
795
  * Padding Left
796
796
  * @see https://tailwindcss.com/docs/padding
797
797
  */
798
798
  pl: [{
799
- pl: [F]
799
+ pl: [z]
800
800
  }],
801
801
  /**
802
802
  * Margin
@@ -866,7 +866,7 @@ const E = (e) => {
866
866
  * @see https://tailwindcss.com/docs/space
867
867
  */
868
868
  "space-x": [{
869
- "space-x": [D]
869
+ "space-x": [S]
870
870
  }],
871
871
  /**
872
872
  * Space Between X Reverse
@@ -878,7 +878,7 @@ const E = (e) => {
878
878
  * @see https://tailwindcss.com/docs/space
879
879
  */
880
880
  "space-y": [{
881
- "space-y": [D]
881
+ "space-y": [S]
882
882
  }],
883
883
  /**
884
884
  * Space Between Y Reverse
@@ -967,7 +967,7 @@ const E = (e) => {
967
967
  * @see https://tailwindcss.com/docs/font-family
968
968
  */
969
969
  "font-family": [{
970
- font: [it]
970
+ font: [ot]
971
971
  }],
972
972
  /**
973
973
  * Font Variant Numeric
@@ -1054,7 +1054,7 @@ const E = (e) => {
1054
1054
  * @see https://tailwindcss.com/docs/placeholder-opacity
1055
1055
  */
1056
1056
  "placeholder-opacity": [{
1057
- "placeholder-opacity": [S]
1057
+ "placeholder-opacity": [M]
1058
1058
  }],
1059
1059
  /**
1060
1060
  * Text Alignment
@@ -1075,7 +1075,7 @@ const E = (e) => {
1075
1075
  * @see https://tailwindcss.com/docs/text-opacity
1076
1076
  */
1077
1077
  "text-opacity": [{
1078
- "text-opacity": [S]
1078
+ "text-opacity": [M]
1079
1079
  }],
1080
1080
  /**
1081
1081
  * Text Decoration
@@ -1132,7 +1132,7 @@ const E = (e) => {
1132
1132
  * @see https://tailwindcss.com/docs/text-indent
1133
1133
  */
1134
1134
  indent: [{
1135
- indent: I()
1135
+ indent: R()
1136
1136
  }],
1137
1137
  /**
1138
1138
  * Vertical Alignment
@@ -1190,7 +1190,7 @@ const E = (e) => {
1190
1190
  * @see https://tailwindcss.com/docs/background-opacity
1191
1191
  */
1192
1192
  "bg-opacity": [{
1193
- "bg-opacity": [S]
1193
+ "bg-opacity": [M]
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Background Origin
@@ -1243,42 +1243,42 @@ const E = (e) => {
1243
1243
  * @see https://tailwindcss.com/docs/gradient-color-stops
1244
1244
  */
1245
1245
  "gradient-from-pos": [{
1246
- from: [P]
1246
+ from: [W]
1247
1247
  }],
1248
1248
  /**
1249
1249
  * Gradient Color Stops Via Position
1250
1250
  * @see https://tailwindcss.com/docs/gradient-color-stops
1251
1251
  */
1252
1252
  "gradient-via-pos": [{
1253
- via: [P]
1253
+ via: [W]
1254
1254
  }],
1255
1255
  /**
1256
1256
  * Gradient Color Stops To Position
1257
1257
  * @see https://tailwindcss.com/docs/gradient-color-stops
1258
1258
  */
1259
1259
  "gradient-to-pos": [{
1260
- to: [P]
1260
+ to: [W]
1261
1261
  }],
1262
1262
  /**
1263
1263
  * Gradient Color Stops From
1264
1264
  * @see https://tailwindcss.com/docs/gradient-color-stops
1265
1265
  */
1266
1266
  "gradient-from": [{
1267
- from: [L]
1267
+ from: [P]
1268
1268
  }],
1269
1269
  /**
1270
1270
  * Gradient Color Stops Via
1271
1271
  * @see https://tailwindcss.com/docs/gradient-color-stops
1272
1272
  */
1273
1273
  "gradient-via": [{
1274
- via: [L]
1274
+ via: [P]
1275
1275
  }],
1276
1276
  /**
1277
1277
  * Gradient Color Stops To
1278
1278
  * @see https://tailwindcss.com/docs/gradient-color-stops
1279
1279
  */
1280
1280
  "gradient-to": [{
1281
- to: [L]
1281
+ to: [P]
1282
1282
  }],
1283
1283
  // Borders
1284
1284
  /**
@@ -1454,7 +1454,7 @@ const E = (e) => {
1454
1454
  * @see https://tailwindcss.com/docs/border-opacity
1455
1455
  */
1456
1456
  "border-opacity": [{
1457
- "border-opacity": [S]
1457
+ "border-opacity": [M]
1458
1458
  }],
1459
1459
  /**
1460
1460
  * Border Style
@@ -1492,7 +1492,7 @@ const E = (e) => {
1492
1492
  * @see https://tailwindcss.com/docs/divide-opacity
1493
1493
  */
1494
1494
  "divide-opacity": [{
1495
- "divide-opacity": [S]
1495
+ "divide-opacity": [M]
1496
1496
  }],
1497
1497
  /**
1498
1498
  * Divide Style
@@ -1604,7 +1604,7 @@ const E = (e) => {
1604
1604
  * @see https://tailwindcss.com/docs/ring-width
1605
1605
  */
1606
1606
  "ring-w": [{
1607
- ring: rt()
1607
+ ring: st()
1608
1608
  }],
1609
1609
  /**
1610
1610
  * Ring Width Inset
@@ -1623,7 +1623,7 @@ const E = (e) => {
1623
1623
  * @see https://tailwindcss.com/docs/ring-opacity
1624
1624
  */
1625
1625
  "ring-opacity": [{
1626
- "ring-opacity": [S]
1626
+ "ring-opacity": [M]
1627
1627
  }],
1628
1628
  /**
1629
1629
  * Ring Offset Width
@@ -1652,14 +1652,14 @@ const E = (e) => {
1652
1652
  * @see https://tailwindcss.com/docs/box-shadow-color
1653
1653
  */
1654
1654
  "shadow-color": [{
1655
- shadow: [it]
1655
+ shadow: [ot]
1656
1656
  }],
1657
1657
  /**
1658
1658
  * Opacity
1659
1659
  * @see https://tailwindcss.com/docs/opacity
1660
1660
  */
1661
1661
  opacity: [{
1662
- opacity: [S]
1662
+ opacity: [M]
1663
1663
  }],
1664
1664
  /**
1665
1665
  * Mix Blend Mode
@@ -1738,7 +1738,7 @@ const E = (e) => {
1738
1738
  * @see https://tailwindcss.com/docs/saturate
1739
1739
  */
1740
1740
  saturate: [{
1741
- saturate: [$]
1741
+ saturate: [H]
1742
1742
  }],
1743
1743
  /**
1744
1744
  * Sepia
@@ -1802,14 +1802,14 @@ const E = (e) => {
1802
1802
  * @see https://tailwindcss.com/docs/backdrop-opacity
1803
1803
  */
1804
1804
  "backdrop-opacity": [{
1805
- "backdrop-opacity": [S]
1805
+ "backdrop-opacity": [M]
1806
1806
  }],
1807
1807
  /**
1808
1808
  * Backdrop Saturate
1809
1809
  * @see https://tailwindcss.com/docs/backdrop-saturate
1810
1810
  */
1811
1811
  "backdrop-saturate": [{
1812
- "backdrop-saturate": [$]
1812
+ "backdrop-saturate": [H]
1813
1813
  }],
1814
1814
  /**
1815
1815
  * Backdrop Sepia
@@ -1931,7 +1931,7 @@ const E = (e) => {
1931
1931
  * @see https://tailwindcss.com/docs/rotate
1932
1932
  */
1933
1933
  rotate: [{
1934
- rotate: [at, w]
1934
+ rotate: [it, w]
1935
1935
  }],
1936
1936
  /**
1937
1937
  * Translate X
@@ -1952,14 +1952,14 @@ const E = (e) => {
1952
1952
  * @see https://tailwindcss.com/docs/skew
1953
1953
  */
1954
1954
  "skew-x": [{
1955
- "skew-x": [H]
1955
+ "skew-x": [G]
1956
1956
  }],
1957
1957
  /**
1958
1958
  * Skew Y
1959
1959
  * @see https://tailwindcss.com/docs/skew
1960
1960
  */
1961
1961
  "skew-y": [{
1962
- "skew-y": [H]
1962
+ "skew-y": [G]
1963
1963
  }],
1964
1964
  /**
1965
1965
  * Transform Origin
@@ -2023,126 +2023,126 @@ const E = (e) => {
2023
2023
  * @see https://tailwindcss.com/docs/scroll-margin
2024
2024
  */
2025
2025
  "scroll-m": [{
2026
- "scroll-m": I()
2026
+ "scroll-m": R()
2027
2027
  }],
2028
2028
  /**
2029
2029
  * Scroll Margin X
2030
2030
  * @see https://tailwindcss.com/docs/scroll-margin
2031
2031
  */
2032
2032
  "scroll-mx": [{
2033
- "scroll-mx": I()
2033
+ "scroll-mx": R()
2034
2034
  }],
2035
2035
  /**
2036
2036
  * Scroll Margin Y
2037
2037
  * @see https://tailwindcss.com/docs/scroll-margin
2038
2038
  */
2039
2039
  "scroll-my": [{
2040
- "scroll-my": I()
2040
+ "scroll-my": R()
2041
2041
  }],
2042
2042
  /**
2043
2043
  * Scroll Margin Start
2044
2044
  * @see https://tailwindcss.com/docs/scroll-margin
2045
2045
  */
2046
2046
  "scroll-ms": [{
2047
- "scroll-ms": I()
2047
+ "scroll-ms": R()
2048
2048
  }],
2049
2049
  /**
2050
2050
  * Scroll Margin End
2051
2051
  * @see https://tailwindcss.com/docs/scroll-margin
2052
2052
  */
2053
2053
  "scroll-me": [{
2054
- "scroll-me": I()
2054
+ "scroll-me": R()
2055
2055
  }],
2056
2056
  /**
2057
2057
  * Scroll Margin Top
2058
2058
  * @see https://tailwindcss.com/docs/scroll-margin
2059
2059
  */
2060
2060
  "scroll-mt": [{
2061
- "scroll-mt": I()
2061
+ "scroll-mt": R()
2062
2062
  }],
2063
2063
  /**
2064
2064
  * Scroll Margin Right
2065
2065
  * @see https://tailwindcss.com/docs/scroll-margin
2066
2066
  */
2067
2067
  "scroll-mr": [{
2068
- "scroll-mr": I()
2068
+ "scroll-mr": R()
2069
2069
  }],
2070
2070
  /**
2071
2071
  * Scroll Margin Bottom
2072
2072
  * @see https://tailwindcss.com/docs/scroll-margin
2073
2073
  */
2074
2074
  "scroll-mb": [{
2075
- "scroll-mb": I()
2075
+ "scroll-mb": R()
2076
2076
  }],
2077
2077
  /**
2078
2078
  * Scroll Margin Left
2079
2079
  * @see https://tailwindcss.com/docs/scroll-margin
2080
2080
  */
2081
2081
  "scroll-ml": [{
2082
- "scroll-ml": I()
2082
+ "scroll-ml": R()
2083
2083
  }],
2084
2084
  /**
2085
2085
  * Scroll Padding
2086
2086
  * @see https://tailwindcss.com/docs/scroll-padding
2087
2087
  */
2088
2088
  "scroll-p": [{
2089
- "scroll-p": I()
2089
+ "scroll-p": R()
2090
2090
  }],
2091
2091
  /**
2092
2092
  * Scroll Padding X
2093
2093
  * @see https://tailwindcss.com/docs/scroll-padding
2094
2094
  */
2095
2095
  "scroll-px": [{
2096
- "scroll-px": I()
2096
+ "scroll-px": R()
2097
2097
  }],
2098
2098
  /**
2099
2099
  * Scroll Padding Y
2100
2100
  * @see https://tailwindcss.com/docs/scroll-padding
2101
2101
  */
2102
2102
  "scroll-py": [{
2103
- "scroll-py": I()
2103
+ "scroll-py": R()
2104
2104
  }],
2105
2105
  /**
2106
2106
  * Scroll Padding Start
2107
2107
  * @see https://tailwindcss.com/docs/scroll-padding
2108
2108
  */
2109
2109
  "scroll-ps": [{
2110
- "scroll-ps": I()
2110
+ "scroll-ps": R()
2111
2111
  }],
2112
2112
  /**
2113
2113
  * Scroll Padding End
2114
2114
  * @see https://tailwindcss.com/docs/scroll-padding
2115
2115
  */
2116
2116
  "scroll-pe": [{
2117
- "scroll-pe": I()
2117
+ "scroll-pe": R()
2118
2118
  }],
2119
2119
  /**
2120
2120
  * Scroll Padding Top
2121
2121
  * @see https://tailwindcss.com/docs/scroll-padding
2122
2122
  */
2123
2123
  "scroll-pt": [{
2124
- "scroll-pt": I()
2124
+ "scroll-pt": R()
2125
2125
  }],
2126
2126
  /**
2127
2127
  * Scroll Padding Right
2128
2128
  * @see https://tailwindcss.com/docs/scroll-padding
2129
2129
  */
2130
2130
  "scroll-pr": [{
2131
- "scroll-pr": I()
2131
+ "scroll-pr": R()
2132
2132
  }],
2133
2133
  /**
2134
2134
  * Scroll Padding Bottom
2135
2135
  * @see https://tailwindcss.com/docs/scroll-padding
2136
2136
  */
2137
2137
  "scroll-pb": [{
2138
- "scroll-pb": I()
2138
+ "scroll-pb": R()
2139
2139
  }],
2140
2140
  /**
2141
2141
  * Scroll Padding Left
2142
2142
  * @see https://tailwindcss.com/docs/scroll-padding
2143
2143
  */
2144
2144
  "scroll-pl": [{
2145
- "scroll-pl": I()
2145
+ "scroll-pl": R()
2146
2146
  }],
2147
2147
  /**
2148
2148
  * Scroll Snap Align
@@ -2304,7 +2304,7 @@ const E = (e) => {
2304
2304
  function x(...e) {
2305
2305
  return ra(is(e));
2306
2306
  }
2307
- const sa = ae("font-sans text-gray-900", {
2307
+ const sa = se("font-sans text-gray-900", {
2308
2308
  variants: {
2309
2309
  variant: {
2310
2310
  h1: "text-3xl leading-tight font-bold",
@@ -2337,7 +2337,7 @@ const sa = ae("font-sans text-gray-900", {
2337
2337
  body: "p",
2338
2338
  bodySm: "p",
2339
2339
  caption: "span"
2340
- }, z = K(
2340
+ }, F = K(
2341
2341
  ({ className: e, variant: t = "body", weight: r, as: s, children: n, ...a }, i) => {
2342
2342
  const o = s ?? na[t ?? "body"];
2343
2343
  return kn(
@@ -2351,8 +2351,8 @@ const sa = ae("font-sans text-gray-900", {
2351
2351
  );
2352
2352
  }
2353
2353
  );
2354
- z.displayName = "Text";
2355
- const aa = ae(
2354
+ F.displayName = "Text";
2355
+ const aa = se(
2356
2356
  "inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",
2357
2357
  {
2358
2358
  variants: {
@@ -2394,7 +2394,7 @@ const aa = ae(
2394
2394
  ...d
2395
2395
  }, c) => {
2396
2396
  const h = r === "icon", p = ia[r ?? "md"];
2397
- return /* @__PURE__ */ R(
2397
+ return /* @__PURE__ */ L(
2398
2398
  "button",
2399
2399
  {
2400
2400
  ref: c,
@@ -2403,7 +2403,7 @@ const aa = ae(
2403
2403
  "aria-busy": n,
2404
2404
  ...d,
2405
2405
  children: [
2406
- n && /* @__PURE__ */ R(
2406
+ n && /* @__PURE__ */ L(
2407
2407
  "svg",
2408
2408
  {
2409
2409
  className: "size-[18px] animate-spin",
@@ -2434,14 +2434,14 @@ const aa = ae(
2434
2434
  }
2435
2435
  ),
2436
2436
  !n && a && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: a }),
2437
- h ? /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", children: o }) : /* @__PURE__ */ l(z, { as: "span", variant: p, className: "text-inherit", children: o })
2437
+ h ? /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", children: o }) : /* @__PURE__ */ l(F, { as: "span", variant: p, className: "text-inherit", children: o })
2438
2438
  ]
2439
2439
  }
2440
2440
  );
2441
2441
  }
2442
2442
  );
2443
2443
  oa.displayName = "Button";
2444
- const la = ae(
2444
+ const la = se(
2445
2445
  "inline-flex items-center justify-center h-6 whitespace-nowrap",
2446
2446
  {
2447
2447
  variants: {
@@ -2502,7 +2502,7 @@ const la = ae(
2502
2502
  textColor: a,
2503
2503
  style: i,
2504
2504
  ...o
2505
- }, d) => /* @__PURE__ */ R(
2505
+ }, d) => /* @__PURE__ */ L(
2506
2506
  "span",
2507
2507
  {
2508
2508
  ref: d,
@@ -2525,13 +2525,13 @@ const la = ae(
2525
2525
  "aria-hidden": "true"
2526
2526
  }
2527
2527
  ),
2528
- s && (typeof s == "string" ? /* @__PURE__ */ l(z, { as: "span", variant: "body", className: "text-inherit", children: s }) : s)
2528
+ s && (typeof s == "string" ? /* @__PURE__ */ l(F, { as: "span", variant: "body", className: "text-inherit", children: s }) : s)
2529
2529
  ]
2530
2530
  }
2531
2531
  )
2532
2532
  );
2533
2533
  ca.displayName = "Badge";
2534
- const ua = ae("flex items-start gap-2 rounded-lg p-5 font-sans", {
2534
+ const ua = se("flex items-start gap-2 rounded-lg p-5 font-sans", {
2535
2535
  variants: {
2536
2536
  variant: {
2537
2537
  default: "border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",
@@ -2552,14 +2552,14 @@ const ua = ae("flex items-start gap-2 rounded-lg p-5 font-sans", {
2552
2552
  info: "text-primary-700"
2553
2553
  };
2554
2554
  function ha() {
2555
- return /* @__PURE__ */ R("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2555
+ return /* @__PURE__ */ L("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2556
2556
  /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
2557
2557
  /* @__PURE__ */ l("path", { d: "M12 11v5", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }),
2558
2558
  /* @__PURE__ */ l("circle", { cx: "12", cy: "8", r: "1", fill: "currentColor" })
2559
2559
  ] });
2560
2560
  }
2561
2561
  function ma() {
2562
- return /* @__PURE__ */ R("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2562
+ return /* @__PURE__ */ L("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2563
2563
  /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
2564
2564
  /* @__PURE__ */ l(
2565
2565
  "path",
@@ -2574,7 +2574,7 @@ function ma() {
2574
2574
  ] });
2575
2575
  }
2576
2576
  function pa() {
2577
- return /* @__PURE__ */ R("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2577
+ return /* @__PURE__ */ L("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2578
2578
  /* @__PURE__ */ l(
2579
2579
  "path",
2580
2580
  {
@@ -2589,7 +2589,7 @@ function pa() {
2589
2589
  ] });
2590
2590
  }
2591
2591
  function ya() {
2592
- return /* @__PURE__ */ R("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2592
+ return /* @__PURE__ */ L("svg", { className: "size-full", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
2593
2593
  /* @__PURE__ */ l("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2" }),
2594
2594
  /* @__PURE__ */ l(
2595
2595
  "path",
@@ -2631,11 +2631,11 @@ const ba = {
2631
2631
  ...d
2632
2632
  }, c) => {
2633
2633
  const h = t ?? "default", p = r === void 0 ? ba[h] : r, g = fa[h];
2634
- return /* @__PURE__ */ R("div", { ref: c, className: x(ua({ variant: t }), e), ...d, children: [
2634
+ return /* @__PURE__ */ L("div", { ref: c, className: x(ua({ variant: t }), e), ...d, children: [
2635
2635
  p && /* @__PURE__ */ l("span", { className: x("size-6 shrink-0", g), "aria-hidden": "true", children: p }),
2636
- /* @__PURE__ */ R("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2637
- s && /* @__PURE__ */ l(z, { as: "div", variant: "body", weight: "semibold", className: g, children: s }),
2638
- n && /* @__PURE__ */ l(z, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: n }),
2636
+ /* @__PURE__ */ L("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
2637
+ s && /* @__PURE__ */ l(F, { as: "div", variant: "body", weight: "semibold", className: g, children: s }),
2638
+ n && /* @__PURE__ */ l(F, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: n }),
2639
2639
  o
2640
2640
  ] }),
2641
2641
  a && /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center", children: a }),
@@ -3139,7 +3139,7 @@ function qa(e) {
3139
3139
  return s.priority - n.priority;
3140
3140
  }), t;
3141
3141
  }
3142
- var vs = /\d/, se = /\d\d/, xs = /\d{3}/, wr = /\d{4}/, Ft = /[+-]?\d{6}/, V = /\d\d?/, ws = /\d\d\d\d?/, _s = /\d\d\d\d\d\d?/, Et = /\d{1,3}/, _r = /\d{1,4}/, jt = /[+-]?\d{1,6}/, Xe = /\d+/, Vt = /[+-]?\d+/, Ja = /Z|[+-]\d\d:?\d\d/gi, Ut = /Z|[+-]\d\d(?::?\d\d)?/gi, Qa = /[+-]?\d+(\.\d{1,3})?/, xt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, et = /^[1-9]\d?/, kr = /^([1-9]\d|\d)/, Wt;
3142
+ var vs = /\d/, ne = /\d\d/, xs = /\d{3}/, wr = /\d{4}/, Ft = /[+-]?\d{6}/, V = /\d\d?/, ws = /\d\d\d\d?/, _s = /\d\d\d\d\d\d?/, Et = /\d{1,3}/, _r = /\d{1,4}/, jt = /[+-]?\d{1,6}/, et = /\d+/, Vt = /[+-]?\d+/, Ja = /Z|[+-]\d\d:?\d\d/gi, Ut = /Z|[+-]\d\d(?::?\d\d)?/gi, Qa = /[+-]?\d+(\.\d{1,3})?/, xt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, tt = /^[1-9]\d?/, kr = /^([1-9]\d|\d)/, Wt;
3143
3143
  Wt = {};
3144
3144
  function m(e, t, r) {
3145
3145
  Wt[e] = pe(t) ? t : function(s, n) {
@@ -3162,18 +3162,18 @@ function Xa(e) {
3162
3162
  function ke(e) {
3163
3163
  return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
3164
3164
  }
3165
- function ne(e) {
3165
+ function ae(e) {
3166
3166
  return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
3167
3167
  }
3168
- function N(e) {
3168
+ function D(e) {
3169
3169
  var t = +e, r = 0;
3170
- return t !== 0 && isFinite(t) && (r = ne(t)), r;
3170
+ return t !== 0 && isFinite(t) && (r = ae(t)), r;
3171
3171
  }
3172
3172
  var ir = {};
3173
3173
  function A(e, t) {
3174
3174
  var r, s = t, n;
3175
3175
  for (typeof e == "string" && (e = [e]), Se(t) && (s = function(a, i) {
3176
- i[t] = N(a);
3176
+ i[t] = D(a);
3177
3177
  }), n = e.length, r = 0; r < n; r++)
3178
3178
  ir[e[r]] = s;
3179
3179
  }
@@ -3200,13 +3200,13 @@ b(0, ["YYYY", 4], 0, "year");
3200
3200
  b(0, ["YYYYY", 5], 0, "year");
3201
3201
  b(0, ["YYYYYY", 6, !0], 0, "year");
3202
3202
  m("Y", Vt);
3203
- m("YY", V, se);
3203
+ m("YY", V, ne);
3204
3204
  m("YYYY", _r, wr);
3205
3205
  m("YYYYY", jt, Ft);
3206
3206
  m("YYYYYY", jt, Ft);
3207
3207
  A(["YYYYY", "YYYYYY"], X);
3208
3208
  A("YYYY", function(e, t) {
3209
- t[X] = e.length === 2 ? f.parseTwoDigitYear(e) : N(e);
3209
+ t[X] = e.length === 2 ? f.parseTwoDigitYear(e) : D(e);
3210
3210
  });
3211
3211
  A("YY", function(e, t) {
3212
3212
  t[X] = f.parseTwoDigitYear(e);
@@ -3214,17 +3214,17 @@ A("YY", function(e, t) {
3214
3214
  A("Y", function(e, t) {
3215
3215
  t[X] = parseInt(e, 10);
3216
3216
  });
3217
- function ct(e) {
3217
+ function ut(e) {
3218
3218
  return Ht(e) ? 366 : 365;
3219
3219
  }
3220
3220
  f.parseTwoDigitYear = function(e) {
3221
- return N(e) + (N(e) > 68 ? 1900 : 2e3);
3221
+ return D(e) + (D(e) > 68 ? 1900 : 2e3);
3222
3222
  };
3223
- var ks = tt("FullYear", !0);
3223
+ var ks = rt("FullYear", !0);
3224
3224
  function si() {
3225
3225
  return Ht(this.year());
3226
3226
  }
3227
- function tt(e, t) {
3227
+ function rt(e, t) {
3228
3228
  return function(r) {
3229
3229
  return r != null ? (Ms(this, e, r), f.updateOffset(this, t), this) : ft(this, e);
3230
3230
  };
@@ -3315,8 +3315,8 @@ b("MMM", 0, 0, function(e) {
3315
3315
  b("MMMM", 0, 0, function(e) {
3316
3316
  return this.localeData().months(this, e);
3317
3317
  });
3318
- m("M", V, et);
3319
- m("MM", V, se);
3318
+ m("M", V, tt);
3319
+ m("MM", V, ne);
3320
3320
  m("MMM", function(e, t) {
3321
3321
  return t.monthsShortRegex(e);
3322
3322
  });
@@ -3324,7 +3324,7 @@ m("MMMM", function(e, t) {
3324
3324
  return t.monthsRegex(e);
3325
3325
  });
3326
3326
  A(["M", "MM"], function(e, t) {
3327
- t[we] = N(e) - 1;
3327
+ t[we] = D(e) - 1;
3328
3328
  });
3329
3329
  A(["MMM", "MMMM"], function(e, t, r, s) {
3330
3330
  var n = r._locale.monthsParse(e, s, r._strict);
@@ -3373,7 +3373,7 @@ function Ns(e, t) {
3373
3373
  return e;
3374
3374
  if (typeof t == "string") {
3375
3375
  if (/^\d+$/.test(t))
3376
- t = N(t);
3376
+ t = D(t);
3377
3377
  else if (t = e.localeData().monthsParse(t), !Se(t))
3378
3378
  return e;
3379
3379
  }
@@ -3421,7 +3421,7 @@ function It(e, t, r) {
3421
3421
  }
3422
3422
  function Ts(e, t, r, s, n) {
3423
3423
  var a = (7 + r - s) % 7, i = It(e, s, n), o = 1 + 7 * (t - 1) + a + i, d, c;
3424
- return o <= 0 ? (d = e - 1, c = ct(d) + o) : o > ct(e) ? (d = e + 1, c = o - ct(e)) : (d = e, c = o), {
3424
+ return o <= 0 ? (d = e - 1, c = ut(d) + o) : o > ut(e) ? (d = e + 1, c = o - ut(e)) : (d = e, c = o), {
3425
3425
  year: d,
3426
3426
  dayOfYear: c
3427
3427
  };
@@ -3435,18 +3435,18 @@ function mt(e, t, r) {
3435
3435
  }
3436
3436
  function Me(e, t, r) {
3437
3437
  var s = It(e, t, r), n = It(e + 1, t, r);
3438
- return (ct(e) - s + n) / 7;
3438
+ return (ut(e) - s + n) / 7;
3439
3439
  }
3440
3440
  b("w", ["ww", 2], "wo", "week");
3441
3441
  b("W", ["WW", 2], "Wo", "isoWeek");
3442
- m("w", V, et);
3443
- m("ww", V, se);
3444
- m("W", V, et);
3445
- m("WW", V, se);
3442
+ m("w", V, tt);
3443
+ m("ww", V, ne);
3444
+ m("W", V, tt);
3445
+ m("WW", V, ne);
3446
3446
  wt(
3447
3447
  ["w", "ww", "W", "WW"],
3448
3448
  function(e, t, r, s) {
3449
- t[s.substr(0, 1)] = N(e);
3449
+ t[s.substr(0, 1)] = D(e);
3450
3450
  }
3451
3451
  );
3452
3452
  function bi(e) {
@@ -3501,7 +3501,7 @@ wt(["dd", "ddd", "dddd"], function(e, t, r, s) {
3501
3501
  n != null ? t.d = n : _(r).invalidWeekday = e;
3502
3502
  });
3503
3503
  wt(["d", "e", "E"], function(e, t, r, s) {
3504
- t[s] = N(e);
3504
+ t[s] = D(e);
3505
3505
  });
3506
3506
  function Mi(e, t) {
3507
3507
  return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
@@ -3646,46 +3646,46 @@ function Ws(e, t) {
3646
3646
  m("a", Ws);
3647
3647
  m("A", Ws);
3648
3648
  m("H", V, kr);
3649
- m("h", V, et);
3650
- m("k", V, et);
3651
- m("HH", V, se);
3652
- m("hh", V, se);
3653
- m("kk", V, se);
3649
+ m("h", V, tt);
3650
+ m("k", V, tt);
3651
+ m("HH", V, ne);
3652
+ m("hh", V, ne);
3653
+ m("kk", V, ne);
3654
3654
  m("hmm", ws);
3655
3655
  m("hmmss", _s);
3656
3656
  m("Hmm", ws);
3657
3657
  m("Hmmss", _s);
3658
3658
  A(["H", "HH"], J);
3659
3659
  A(["k", "kk"], function(e, t, r) {
3660
- var s = N(e);
3660
+ var s = D(e);
3661
3661
  t[J] = s === 24 ? 0 : s;
3662
3662
  });
3663
3663
  A(["a", "A"], function(e, t, r) {
3664
3664
  r._isPm = r._locale.isPM(e), r._meridiem = e;
3665
3665
  });
3666
3666
  A(["h", "hh"], function(e, t, r) {
3667
- t[J] = N(e), _(r).bigHour = !0;
3667
+ t[J] = D(e), _(r).bigHour = !0;
3668
3668
  });
3669
3669
  A("hmm", function(e, t, r) {
3670
3670
  var s = e.length - 2;
3671
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s)), _(r).bigHour = !0;
3671
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s)), _(r).bigHour = !0;
3672
3672
  });
3673
3673
  A("hmmss", function(e, t, r) {
3674
3674
  var s = e.length - 4, n = e.length - 2;
3675
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s, 2)), t[_e] = N(e.substr(n)), _(r).bigHour = !0;
3675
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s, 2)), t[_e] = D(e.substr(n)), _(r).bigHour = !0;
3676
3676
  });
3677
3677
  A("Hmm", function(e, t, r) {
3678
3678
  var s = e.length - 2;
3679
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s));
3679
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s));
3680
3680
  });
3681
3681
  A("Hmmss", function(e, t, r) {
3682
3682
  var s = e.length - 4, n = e.length - 2;
3683
- t[J] = N(e.substr(0, s)), t[le] = N(e.substr(s, 2)), t[_e] = N(e.substr(n));
3683
+ t[J] = D(e.substr(0, s)), t[le] = D(e.substr(s, 2)), t[_e] = D(e.substr(n));
3684
3684
  });
3685
3685
  function Ui(e) {
3686
3686
  return (e + "").toLowerCase().charAt(0) === "p";
3687
3687
  }
3688
- var Hi = /[ap]\.?m?\.?/i, Gi = tt("Hours", !0);
3688
+ var Hi = /[ap]\.?m?\.?/i, Gi = rt("Hours", !0);
3689
3689
  function $i(e, t, r) {
3690
3690
  return e > 11 ? r ? "pm" : "PM" : r ? "am" : "AM";
3691
3691
  }
@@ -3703,7 +3703,7 @@ var Is = {
3703
3703
  weekdaysMin: Ni,
3704
3704
  weekdaysShort: Cs,
3705
3705
  meridiemParse: Hi
3706
- }, U = {}, ot = {}, pt;
3706
+ }, U = {}, lt = {}, pt;
3707
3707
  function Bi(e, t) {
3708
3708
  var r, s = Math.min(e.length, t.length);
3709
3709
  for (r = 0; r < s; r += 1)
@@ -3760,11 +3760,11 @@ function Or(e, t) {
3760
3760
  else if (r = Gt(t.parentLocale), r != null)
3761
3761
  s = r._config;
3762
3762
  else
3763
- return ot[t.parentLocale] || (ot[t.parentLocale] = []), ot[t.parentLocale].push({
3763
+ return lt[t.parentLocale] || (lt[t.parentLocale] = []), lt[t.parentLocale].push({
3764
3764
  name: e,
3765
3765
  config: t
3766
3766
  }), null;
3767
- return U[e] = new br(nr(s, t)), ot[e] && ot[e].forEach(function(n) {
3767
+ return U[e] = new br(nr(s, t)), lt[e] && lt[e].forEach(function(n) {
3768
3768
  Or(n.name, n.config);
3769
3769
  }), Re(e), U[e];
3770
3770
  } else
@@ -3959,7 +3959,7 @@ function uo(e) {
3959
3959
  function Tr(e) {
3960
3960
  var t, r, s = [], n, a, i;
3961
3961
  if (!e._d) {
3962
- for (n = uo(e), e._w && e._a[fe] == null && e._a[we] == null && fo(e), e._dayOfYear != null && (i = Ge(e._a[X], n[X]), (e._dayOfYear > ct(i) || e._dayOfYear === 0) && (_(e)._overflowDayOfYear = !0), r = ht(i, 0, e._dayOfYear), e._a[we] = r.getUTCMonth(), e._a[fe] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3962
+ for (n = uo(e), e._w && e._a[fe] == null && e._a[we] == null && fo(e), e._dayOfYear != null && (i = Ge(e._a[X], n[X]), (e._dayOfYear > ut(i) || e._dayOfYear === 0) && (_(e)._overflowDayOfYear = !0), r = ht(i, 0, e._dayOfYear), e._a[we] = r.getUTCMonth(), e._a[fe] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
3963
3963
  e._a[t] = s[t] = n[t];
3964
3964
  for (; t < 7; t++)
3965
3965
  e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -4079,7 +4079,7 @@ function wo() {
4079
4079
  }
4080
4080
  var _o = function() {
4081
4081
  return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
4082
- }, lt = [
4082
+ }, dt = [
4083
4083
  "year",
4084
4084
  "quarter",
4085
4085
  "month",
@@ -4091,15 +4091,15 @@ var _o = function() {
4091
4091
  "millisecond"
4092
4092
  ];
4093
4093
  function ko(e) {
4094
- var t, r = !1, s, n = lt.length;
4094
+ var t, r = !1, s, n = dt.length;
4095
4095
  for (t in e)
4096
- if (T(e, t) && !(Z.call(lt, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
4096
+ if (T(e, t) && !(Z.call(dt, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
4097
4097
  return !1;
4098
4098
  for (s = 0; s < n; ++s)
4099
- if (e[lt[s]]) {
4099
+ if (e[dt[s]]) {
4100
4100
  if (r)
4101
4101
  return !1;
4102
- parseFloat(e[lt[s]]) !== N(e[lt[s]]) && (r = !0);
4102
+ parseFloat(e[dt[s]]) !== D(e[dt[s]]) && (r = !0);
4103
4103
  }
4104
4104
  return !0;
4105
4105
  }
@@ -4124,7 +4124,7 @@ function or(e) {
4124
4124
  function Do(e, t, r) {
4125
4125
  var s = Math.min(e.length, t.length), n = Math.abs(e.length - t.length), a = 0, i;
4126
4126
  for (i = 0; i < s; i++)
4127
- N(e[i]) !== N(t[i]) && a++;
4127
+ D(e[i]) !== D(t[i]) && a++;
4128
4128
  return a + n;
4129
4129
  }
4130
4130
  function Es(e, t) {
@@ -4143,7 +4143,7 @@ A(["Z", "ZZ"], function(e, t, r) {
4143
4143
  var No = /([\+\-]|\d\d)/gi;
4144
4144
  function Pr(e, t) {
4145
4145
  var r = (t || "").match(e), s, n, a;
4146
- return r === null ? null : (s = r[r.length - 1] || [], n = (s + "").match(No) || ["-", 0, 0], a = +(n[1] * 60) + N(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
4146
+ return r === null ? null : (s = r[r.length - 1] || [], n = (s + "").match(No) || ["-", 0, 0], a = +(n[1] * 60) + D(n[2]), a === 0 ? 0 : n[0] === "+" ? a : -a);
4147
4147
  }
4148
4148
  function Wr(e, t) {
4149
4149
  var r, s;
@@ -4220,11 +4220,11 @@ function ue(e, t) {
4220
4220
  M: e._months
4221
4221
  } : Se(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = zo.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
4222
4222
  y: 0,
4223
- d: N(s[fe]) * n,
4224
- h: N(s[J]) * n,
4225
- m: N(s[le]) * n,
4226
- s: N(s[_e]) * n,
4227
- ms: N(or(s[ze] * 1e3)) * n
4223
+ d: D(s[fe]) * n,
4224
+ h: D(s[J]) * n,
4225
+ m: D(s[le]) * n,
4226
+ s: D(s[_e]) * n,
4227
+ ms: D(or(s[ze] * 1e3)) * n
4228
4228
  // the millisecond decimal point is included in the match
4229
4229
  }) : (s = Fo.exec(e)) ? (n = s[1] === "-" ? -1 : 1, r = {
4230
4230
  y: Ae(s[2], n),
@@ -4393,7 +4393,7 @@ function rl(e, t, r) {
4393
4393
  default:
4394
4394
  a = this - s;
4395
4395
  }
4396
- return r ? a : ne(a);
4396
+ return r ? a : ae(a);
4397
4397
  }
4398
4398
  function Tt(e, t) {
4399
4399
  if (e.date() < t.date())
@@ -4641,10 +4641,10 @@ A(
4641
4641
  n ? _(r).era = n : _(r).invalidEra = e;
4642
4642
  }
4643
4643
  );
4644
- m("y", Xe);
4645
- m("yy", Xe);
4646
- m("yyy", Xe);
4647
- m("yyyy", Xe);
4644
+ m("y", et);
4645
+ m("yy", et);
4646
+ m("yyy", et);
4647
+ m("yyyy", et);
4648
4648
  m("yo", Rl);
4649
4649
  A(["y", "yy", "yyy", "yyyy"], X);
4650
4650
  A(["yo"], function(e, t, r, s) {
@@ -4744,7 +4744,7 @@ function Il(e, t) {
4744
4744
  return t.erasNarrowRegex(e);
4745
4745
  }
4746
4746
  function Rl(e, t) {
4747
- return t._eraYearOrdinalRegex || Xe;
4747
+ return t._eraYearOrdinalRegex || et;
4748
4748
  }
4749
4749
  function Rr() {
4750
4750
  var e = [], t = [], r = [], s = [], n, a, i, o, d, c = this.eras();
@@ -4770,8 +4770,8 @@ Bt("GGGG", "isoWeekYear");
4770
4770
  Bt("GGGGG", "isoWeekYear");
4771
4771
  m("G", Vt);
4772
4772
  m("g", Vt);
4773
- m("GG", V, se);
4774
- m("gg", V, se);
4773
+ m("GG", V, ne);
4774
+ m("gg", V, ne);
4775
4775
  m("GGGG", _r, wr);
4776
4776
  m("gggg", _r, wr);
4777
4777
  m("GGGGG", jt, Ft);
@@ -4779,7 +4779,7 @@ m("ggggg", jt, Ft);
4779
4779
  wt(
4780
4780
  ["gggg", "ggggg", "GGGG", "GGGGG"],
4781
4781
  function(e, t, r, s) {
4782
- t[s.substr(0, 2)] = N(e);
4782
+ t[s.substr(0, 2)] = D(e);
4783
4783
  }
4784
4784
  );
4785
4785
  wt(["gg", "GG"], function(e, t, r, s) {
@@ -4830,27 +4830,27 @@ function Vl(e, t, r, s, n) {
4830
4830
  b("Q", 0, "Qo", "quarter");
4831
4831
  m("Q", vs);
4832
4832
  A("Q", function(e, t) {
4833
- t[we] = (N(e) - 1) * 3;
4833
+ t[we] = (D(e) - 1) * 3;
4834
4834
  });
4835
4835
  function Ul(e) {
4836
4836
  return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
4837
4837
  }
4838
4838
  b("D", ["DD", 2], "Do", "date");
4839
- m("D", V, et);
4840
- m("DD", V, se);
4839
+ m("D", V, tt);
4840
+ m("DD", V, ne);
4841
4841
  m("Do", function(e, t) {
4842
4842
  return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
4843
4843
  });
4844
4844
  A(["D", "DD"], fe);
4845
4845
  A("Do", function(e, t) {
4846
- t[fe] = N(e.match(V)[0]);
4846
+ t[fe] = D(e.match(V)[0]);
4847
4847
  });
4848
- var Ks = tt("Date", !0);
4848
+ var Ks = rt("Date", !0);
4849
4849
  b("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
4850
4850
  m("DDD", Et);
4851
4851
  m("DDDD", xs);
4852
4852
  A(["DDD", "DDDD"], function(e, t, r) {
4853
- r._dayOfYear = N(e);
4853
+ r._dayOfYear = D(e);
4854
4854
  });
4855
4855
  function Hl(e) {
4856
4856
  var t = Math.round(
@@ -4860,14 +4860,14 @@ function Hl(e) {
4860
4860
  }
4861
4861
  b("m", ["mm", 2], 0, "minute");
4862
4862
  m("m", V, kr);
4863
- m("mm", V, se);
4863
+ m("mm", V, ne);
4864
4864
  A(["m", "mm"], le);
4865
- var Gl = tt("Minutes", !1);
4865
+ var Gl = rt("Minutes", !1);
4866
4866
  b("s", ["ss", 2], 0, "second");
4867
4867
  m("s", V, kr);
4868
- m("ss", V, se);
4868
+ m("ss", V, ne);
4869
4869
  A(["s", "ss"], _e);
4870
- var $l = tt("Seconds", !1);
4870
+ var $l = rt("Seconds", !1);
4871
4871
  b("S", 0, 0, function() {
4872
4872
  return ~~(this.millisecond() / 100);
4873
4873
  });
@@ -4894,17 +4894,17 @@ b(0, ["SSSSSSSSS", 9], 0, function() {
4894
4894
  return this.millisecond() * 1e6;
4895
4895
  });
4896
4896
  m("S", Et, vs);
4897
- m("SS", Et, se);
4897
+ m("SS", Et, ne);
4898
4898
  m("SSS", Et, xs);
4899
4899
  var Ie, Xs;
4900
4900
  for (Ie = "SSSS"; Ie.length <= 9; Ie += "S")
4901
- m(Ie, Xe);
4901
+ m(Ie, et);
4902
4902
  function Bl(e, t) {
4903
- t[ze] = N(("0." + e) * 1e3);
4903
+ t[ze] = D(("0." + e) * 1e3);
4904
4904
  }
4905
4905
  for (Ie = "S"; Ie.length <= 9; Ie += "S")
4906
4906
  A(Ie, Bl);
4907
- Xs = tt("Milliseconds", !1);
4907
+ Xs = rt("Milliseconds", !1);
4908
4908
  b("z", 0, 0, "zoneAbbr");
4909
4909
  b("zz", 0, 0, "zoneName");
4910
4910
  function Zl() {
@@ -5112,7 +5112,7 @@ Re("en", {
5112
5112
  ],
5113
5113
  dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
5114
5114
  ordinal: function(e) {
5115
- var t = e % 10, r = N(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
5115
+ var t = e % 10, r = D(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
5116
5116
  return e + r;
5117
5117
  }
5118
5118
  });
@@ -5144,7 +5144,7 @@ function Kr(e) {
5144
5144
  }
5145
5145
  function id() {
5146
5146
  var e = this._milliseconds, t = this._days, r = this._months, s = this._data, n, a, i, o, d;
5147
- return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Kr(dr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, n = ne(e / 1e3), s.seconds = n % 60, a = ne(n / 60), s.minutes = a % 60, i = ne(a / 60), s.hours = i % 24, t += ne(i / 24), d = ne(sn(t)), r += d, t -= Kr(dr(d)), o = ne(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
5147
+ return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Kr(dr(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, n = ae(e / 1e3), s.seconds = n % 60, a = ae(n / 60), s.minutes = a % 60, i = ae(a / 60), s.hours = i % 24, t += ae(i / 24), d = ae(sn(t)), r += d, t -= Kr(dr(d)), o = ae(r / 12), r %= 12, s.days = t, s.months = r, s.years = o, this;
5148
5148
  }
5149
5149
  function sn(e) {
5150
5150
  return e * 4800 / 146097;
@@ -5202,7 +5202,7 @@ function je(e) {
5202
5202
  }
5203
5203
  var vd = je("milliseconds"), xd = je("seconds"), wd = je("minutes"), _d = je("hours"), kd = je("days"), Md = je("months"), Sd = je("years");
5204
5204
  function Dd() {
5205
- return ne(this.days() / 7);
5205
+ return ae(this.days() / 7);
5206
5206
  }
5207
5207
  var ve = Math.round, $e = {
5208
5208
  ss: 44,
@@ -5247,7 +5247,7 @@ function Zt() {
5247
5247
  if (!this.isValid())
5248
5248
  return this.localeData().invalidDate();
5249
5249
  var e = tr(this._milliseconds) / 1e3, t = tr(this._days), r = tr(this._months), s, n, a, i, o = this.asSeconds(), d, c, h, p;
5250
- return o ? (s = ne(e / 60), n = ne(s / 60), e %= 60, s %= 60, a = ne(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = o < 0 ? "-" : "", c = He(this._months) !== He(o) ? "-" : "", h = He(this._days) !== He(o) ? "-" : "", p = He(this._milliseconds) !== He(o) ? "-" : "", d + "P" + (a ? c + a + "Y" : "") + (r ? c + r + "M" : "") + (t ? h + t + "D" : "") + (n || s || e ? "T" : "") + (n ? p + n + "H" : "") + (s ? p + s + "M" : "") + (e ? p + i + "S" : "")) : "P0D";
5250
+ return o ? (s = ae(e / 60), n = ae(s / 60), e %= 60, s %= 60, a = ae(r / 12), r %= 12, i = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", d = o < 0 ? "-" : "", c = He(this._months) !== He(o) ? "-" : "", h = He(this._days) !== He(o) ? "-" : "", p = He(this._milliseconds) !== He(o) ? "-" : "", d + "P" + (a ? c + a + "Y" : "") + (r ? c + r + "M" : "") + (t ? h + t + "D" : "") + (n || s || e ? "T" : "") + (n ? p + n + "H" : "") + (s ? p + s + "M" : "") + (e ? p + i + "S" : "")) : "P0D";
5251
5251
  }
5252
5252
  var Y = $t.prototype;
5253
5253
  Y.isValid = Mo;
@@ -5295,7 +5295,7 @@ A("X", function(e, t, r) {
5295
5295
  r._d = new Date(parseFloat(e) * 1e3);
5296
5296
  });
5297
5297
  A("x", function(e, t, r) {
5298
- r._d = new Date(N(e));
5298
+ r._d = new Date(D(e));
5299
5299
  });
5300
5300
  //! moment.js
5301
5301
  f.version = "2.30.1";
@@ -5365,7 +5365,7 @@ const Pd = K(
5365
5365
  const p = Math.abs(f().diff(f(s), "hours"));
5366
5366
  return p < 24 ? `há ${p} horas` : `há ${Math.abs(f().diff(f(s), "days"))} dias`;
5367
5367
  }, [s]);
5368
- return /* @__PURE__ */ R(
5368
+ return /* @__PURE__ */ L(
5369
5369
  mr,
5370
5370
  {
5371
5371
  ref: d,
@@ -5373,8 +5373,8 @@ const Pd = K(
5373
5373
  className: x(!n && "border-transparent bg-lightGray", e),
5374
5374
  ...o,
5375
5375
  children: [
5376
- /* @__PURE__ */ R("div", { className: "flex items-start justify-between gap-3", children: [
5377
- /* @__PURE__ */ R("div", { className: "flex min-w-0 items-center gap-2", children: [
5376
+ /* @__PURE__ */ L("div", { className: "flex items-start justify-between gap-3", children: [
5377
+ /* @__PURE__ */ L("div", { className: "flex min-w-0 items-center gap-2", children: [
5378
5378
  !n && /* @__PURE__ */ l(
5379
5379
  "span",
5380
5380
  {
@@ -5383,7 +5383,7 @@ const Pd = K(
5383
5383
  }
5384
5384
  ),
5385
5385
  /* @__PURE__ */ l(
5386
- z,
5386
+ F,
5387
5387
  {
5388
5388
  as: "div",
5389
5389
  variant: "body",
@@ -5394,7 +5394,7 @@ const Pd = K(
5394
5394
  )
5395
5395
  ] }),
5396
5396
  /* @__PURE__ */ l(
5397
- z,
5397
+ F,
5398
5398
  {
5399
5399
  as: "span",
5400
5400
  variant: "caption",
@@ -5403,8 +5403,8 @@ const Pd = K(
5403
5403
  }
5404
5404
  )
5405
5405
  ] }),
5406
- /* @__PURE__ */ l(z, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: r }),
5407
- /* @__PURE__ */ R("div", { className: "flex items-center justify-end gap-1 pt-1", children: [
5406
+ /* @__PURE__ */ l(F, { as: "div", variant: "bodySm", className: "text-neutral-text-secondary", children: r }),
5407
+ /* @__PURE__ */ L("div", { className: "flex items-center justify-end gap-1 pt-1", children: [
5408
5408
  /* @__PURE__ */ l(
5409
5409
  "button",
5410
5410
  {
@@ -5433,7 +5433,7 @@ const Pd = K(
5433
5433
  );
5434
5434
  Pd.displayName = "Notification";
5435
5435
  const cr = K(
5436
- ({ className: e, ...t }, r) => /* @__PURE__ */ R("span", { className: "relative inline-flex size-5 shrink-0 items-center justify-center", children: [
5436
+ ({ className: e, ...t }, r) => /* @__PURE__ */ L("span", { className: "relative inline-flex size-5 shrink-0 items-center justify-center", children: [
5437
5437
  /* @__PURE__ */ l(
5438
5438
  "input",
5439
5439
  {
@@ -5479,7 +5479,7 @@ function Id(e, t) {
5479
5479
  if (!t.key) return null;
5480
5480
  const r = Wd(e, t.key);
5481
5481
  return r == null || r === "" ? null : /* @__PURE__ */ l(
5482
- z,
5482
+ F,
5483
5483
  {
5484
5484
  as: "span",
5485
5485
  variant: "body",
@@ -5508,7 +5508,7 @@ const ur = K(
5508
5508
  e
5509
5509
  ),
5510
5510
  ...i,
5511
- children: /* @__PURE__ */ R(
5511
+ children: /* @__PURE__ */ L(
5512
5512
  "span",
5513
5513
  {
5514
5514
  className: x(
@@ -5519,7 +5519,7 @@ const ur = K(
5519
5519
  onClick: r ? n : void 0,
5520
5520
  children: [
5521
5521
  /* @__PURE__ */ l(
5522
- z,
5522
+ F,
5523
5523
  {
5524
5524
  as: "span",
5525
5525
  variant: "bodySm",
@@ -5557,7 +5557,7 @@ function Xr({
5557
5557
  t
5558
5558
  ),
5559
5559
  children: /* @__PURE__ */ l(
5560
- z,
5560
+ F,
5561
5561
  {
5562
5562
  className: x("flex items-center gap-2", an[e ?? "left"]),
5563
5563
  children: r
@@ -5566,7 +5566,7 @@ function Xr({
5566
5566
  }
5567
5567
  );
5568
5568
  }
5569
- const Ld = ae(
5569
+ const Ld = se(
5570
5570
  "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",
5571
5571
  {
5572
5572
  variants: {
@@ -5594,7 +5594,7 @@ const zd = {
5594
5594
  ({ className: e, size: t, src: r, alt: s = "", name: n, ...a }, i) => {
5595
5595
  const o = t ?? "md";
5596
5596
  return /* @__PURE__ */ l("span", { ref: i, className: x(Ld({ size: t }), e), ...a, children: r ? /* @__PURE__ */ l("img", { src: r, alt: s, className: "size-full object-cover" }) : n && /* @__PURE__ */ l(
5597
- z,
5597
+ F,
5598
5598
  {
5599
5599
  as: "span",
5600
5600
  variant: zd[o],
@@ -5606,19 +5606,19 @@ const zd = {
5606
5606
  }
5607
5607
  );
5608
5608
  on.displayName = "Avatar";
5609
- function ac({
5609
+ function ic({
5610
5610
  src: e,
5611
5611
  name: t,
5612
5612
  description: r,
5613
5613
  size: s = "md",
5614
5614
  className: n
5615
5615
  }) {
5616
- return /* @__PURE__ */ R("div", { className: x("flex min-w-0 items-center gap-2", n), children: [
5616
+ return /* @__PURE__ */ L("div", { className: x("flex min-w-0 items-center gap-2", n), children: [
5617
5617
  /* @__PURE__ */ l(on, { src: e, name: t, size: s }),
5618
- /* @__PURE__ */ R("div", { className: "flex min-w-0 flex-col", children: [
5619
- /* @__PURE__ */ l(z, { as: "span", variant: "body", className: "truncate", children: t }),
5618
+ /* @__PURE__ */ L("div", { className: "flex min-w-0 flex-col", children: [
5619
+ /* @__PURE__ */ l(F, { as: "span", variant: "body", className: "truncate", children: t }),
5620
5620
  r && /* @__PURE__ */ l(
5621
- z,
5621
+ F,
5622
5622
  {
5623
5623
  as: "span",
5624
5624
  variant: "bodySm",
@@ -5629,7 +5629,7 @@ function ac({
5629
5629
  ] })
5630
5630
  ] });
5631
5631
  }
5632
- function ic({
5632
+ function oc({
5633
5633
  keys: e,
5634
5634
  data: t,
5635
5635
  rowKey: r,
@@ -5643,16 +5643,16 @@ function ic({
5643
5643
  sortDirection: h,
5644
5644
  onSortChange: p,
5645
5645
  onRowClick: g,
5646
- shadow: L = !1,
5647
- border: P = !1,
5648
- className: M,
5646
+ shadow: P = !1,
5647
+ border: W = !1,
5648
+ className: N,
5649
5649
  ...y
5650
5650
  }) {
5651
- const S = e.length + (i ? 1 : 0), F = o ?? [], $ = t.map((D, v) => Rd(D, v, r)), k = $.length > 0 && $.every((D) => F.includes(D)), q = () => {
5652
- d && d(k ? [] : $);
5653
- }, H = (D) => {
5651
+ const M = e.length + (i ? 1 : 0), z = o ?? [], H = t.map((S, v) => Rd(S, v, r)), k = H.length > 0 && H.every((S) => z.includes(S)), q = () => {
5652
+ d && d(k ? [] : H);
5653
+ }, G = (S) => {
5654
5654
  d && d(
5655
- F.includes(D) ? F.filter((v) => v !== D) : [...F, D]
5655
+ z.includes(S) ? z.filter((v) => v !== S) : [...z, S]
5656
5656
  );
5657
5657
  };
5658
5658
  return /* @__PURE__ */ l(
@@ -5660,16 +5660,16 @@ function ic({
5660
5660
  {
5661
5661
  className: x(
5662
5662
  "w-full overflow-x-auto rounded-lg",
5663
- P && "border border-neutral-divider-secondary",
5664
- L && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
5663
+ W && "border border-neutral-divider-secondary",
5664
+ P && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
5665
5665
  ),
5666
- children: /* @__PURE__ */ R(
5666
+ children: /* @__PURE__ */ L(
5667
5667
  "table",
5668
5668
  {
5669
- className: x("w-full border-collapse table-fixed", M),
5669
+ className: x("w-full border-collapse table-fixed", N),
5670
5670
  ...y,
5671
5671
  children: [
5672
- /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ R("tr", { children: [
5672
+ /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ L("tr", { children: [
5673
5673
  i && /* @__PURE__ */ l(ur, { align: "center", className: "w-11", children: /* @__PURE__ */ l(
5674
5674
  cr,
5675
5675
  {
@@ -5678,25 +5678,25 @@ function ic({
5678
5678
  "aria-label": "Selecionar todas as linhas"
5679
5679
  }
5680
5680
  ) }),
5681
- e.map((D, v) => /* @__PURE__ */ l(
5681
+ e.map((S, v) => /* @__PURE__ */ l(
5682
5682
  ur,
5683
5683
  {
5684
- align: D.align,
5685
- sortable: !!D.key && !!p,
5686
- sorted: D.key && c === D.key ? h : !1,
5687
- onSort: () => D.key && (p == null ? void 0 : p(D.key)),
5688
- children: D.label
5684
+ align: S.align,
5685
+ sortable: !!S.key && !!p,
5686
+ sorted: S.key && c === S.key ? h : !1,
5687
+ onSort: () => S.key && (p == null ? void 0 : p(S.key)),
5688
+ children: S.label
5689
5689
  },
5690
- D.key ?? `column-${v}`
5690
+ S.key ?? `column-${v}`
5691
5691
  ))
5692
5692
  ] }) }),
5693
5693
  /* @__PURE__ */ l("tbody", { children: s ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
5694
5694
  "td",
5695
5695
  {
5696
- colSpan: S,
5696
+ colSpan: M,
5697
5697
  className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
5698
5698
  children: /* @__PURE__ */ l(
5699
- z,
5699
+ F,
5700
5700
  {
5701
5701
  as: "p",
5702
5702
  variant: "body",
@@ -5708,10 +5708,10 @@ function ic({
5708
5708
  ) }) : t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
5709
5709
  "td",
5710
5710
  {
5711
- colSpan: S,
5711
+ colSpan: M,
5712
5712
  className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",
5713
5713
  children: /* @__PURE__ */ l(
5714
- z,
5714
+ F,
5715
5715
  {
5716
5716
  as: "p",
5717
5717
  variant: "body",
@@ -5720,12 +5720,12 @@ function ic({
5720
5720
  }
5721
5721
  )
5722
5722
  }
5723
- ) }) : t.map((D, v) => {
5724
- const W = $[v];
5725
- return /* @__PURE__ */ R(
5723
+ ) }) : t.map((S, v) => {
5724
+ const I = H[v];
5725
+ return /* @__PURE__ */ L(
5726
5726
  "tr",
5727
5727
  {
5728
- onClick: g ? () => g(D) : void 0,
5728
+ onClick: g ? () => g(S) : void 0,
5729
5729
  className: x(
5730
5730
  v % 2 === 0 ? "bg-neutral-surface-lightest" : "bg-white",
5731
5731
  g && "cursor-pointer"
@@ -5735,29 +5735,29 @@ function ic({
5735
5735
  Xr,
5736
5736
  {
5737
5737
  align: "center",
5738
- onClick: (G) => G.stopPropagation(),
5738
+ onClick: ($) => $.stopPropagation(),
5739
5739
  children: /* @__PURE__ */ l(
5740
5740
  cr,
5741
5741
  {
5742
- checked: F.includes(W),
5743
- onChange: () => H(W),
5742
+ checked: z.includes(I),
5743
+ onChange: () => G(I),
5744
5744
  "aria-label": "Selecionar linha"
5745
5745
  }
5746
5746
  )
5747
5747
  }
5748
5748
  ),
5749
- e.map((G, Q) => /* @__PURE__ */ l(
5749
+ e.map(($, Q) => /* @__PURE__ */ l(
5750
5750
  Xr,
5751
5751
  {
5752
- align: G.align,
5753
- className: G.className,
5754
- children: Id(D, G)
5752
+ align: $.align,
5753
+ className: $.className,
5754
+ children: Id(S, $)
5755
5755
  },
5756
- G.key ?? `column-${Q}`
5756
+ $.key ?? `column-${Q}`
5757
5757
  ))
5758
5758
  ]
5759
5759
  },
5760
- W
5760
+ I
5761
5761
  );
5762
5762
  }) })
5763
5763
  ]
@@ -5766,22 +5766,22 @@ function ic({
5766
5766
  }
5767
5767
  );
5768
5768
  }
5769
- const dt = "ellipsis";
5769
+ const ct = "ellipsis";
5770
5770
  function Nt(e, t) {
5771
5771
  return Array.from({ length: t - e + 1 }, (r, s) => e + s);
5772
5772
  }
5773
5773
  function Fd(e, t, r) {
5774
5774
  if (r * 2 + 5 >= t) return Nt(1, t);
5775
5775
  const n = Math.max(e - r, 1), a = Math.min(e + r, t), i = n > 2, o = a < t - 1;
5776
- return !i && o ? [...Nt(1, 3 + r * 2), dt, t] : i && !o ? [
5776
+ return !i && o ? [...Nt(1, 3 + r * 2), ct, t] : i && !o ? [
5777
5777
  1,
5778
- dt,
5778
+ ct,
5779
5779
  ...Nt(t - (2 + r * 2), t)
5780
5780
  ] : [
5781
5781
  1,
5782
- dt,
5782
+ ct,
5783
5783
  ...Nt(n, a),
5784
- dt,
5784
+ ct,
5785
5785
  t
5786
5786
  ];
5787
5787
  }
@@ -5821,7 +5821,7 @@ const Ed = K(
5821
5821
  const o = Fd(e, t, s), d = (c) => {
5822
5822
  c < 1 || c > t || c === e || r(c);
5823
5823
  };
5824
- return /* @__PURE__ */ R(
5824
+ return /* @__PURE__ */ L(
5825
5825
  "nav",
5826
5826
  {
5827
5827
  ref: i,
@@ -5841,11 +5841,11 @@ const Ed = K(
5841
5841
  }
5842
5842
  ),
5843
5843
  o.map(
5844
- (c, h) => c === dt ? /* @__PURE__ */ l(
5844
+ (c, h) => c === ct ? /* @__PURE__ */ l(
5845
5845
  "span",
5846
5846
  {
5847
5847
  className: "inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",
5848
- children: /* @__PURE__ */ l(z, { as: "span", variant: "bodySm", className: "text-inherit", children: "…" })
5848
+ children: /* @__PURE__ */ l(F, { as: "span", variant: "bodySm", className: "text-inherit", children: "…" })
5849
5849
  },
5850
5850
  `ellipsis-${h}`
5851
5851
  ) : /* @__PURE__ */ l(
@@ -5859,7 +5859,7 @@ const Ed = K(
5859
5859
  c === e ? "bg-neutral-surface-selected text-agilys-primary" : "text-neutral-text-secondary hover:bg-neutral-surface-lightest"
5860
5860
  ),
5861
5861
  children: /* @__PURE__ */ l(
5862
- z,
5862
+ F,
5863
5863
  {
5864
5864
  as: "span",
5865
5865
  variant: "bodySm",
@@ -5889,7 +5889,7 @@ const Ed = K(
5889
5889
  }
5890
5890
  );
5891
5891
  Ed.displayName = "Pagination";
5892
- const ln = ae(
5892
+ const ln = se(
5893
5893
  "flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",
5894
5894
  {
5895
5895
  variants: {
@@ -5915,8 +5915,8 @@ const ln = ae(
5915
5915
  id: d,
5916
5916
  ...c
5917
5917
  }, h) => {
5918
- const p = yt(), g = d ?? p, L = typeof i == "string" ? i : i == null ? void 0 : i.message, P = !!L, M = `${g}-error`;
5919
- return /* @__PURE__ */ R(
5918
+ const p = yt(), g = d ?? p, P = typeof i == "string" ? i : i == null ? void 0 : i.message, W = !!P, N = `${g}-error`;
5919
+ return /* @__PURE__ */ L(
5920
5920
  "div",
5921
5921
  {
5922
5922
  className: x(
@@ -5925,7 +5925,7 @@ const ln = ae(
5925
5925
  ),
5926
5926
  children: [
5927
5927
  r && /* @__PURE__ */ l(
5928
- z,
5928
+ F,
5929
5929
  {
5930
5930
  as: "label",
5931
5931
  htmlFor: g,
@@ -5934,11 +5934,11 @@ const ln = ae(
5934
5934
  children: r
5935
5935
  }
5936
5936
  ),
5937
- /* @__PURE__ */ R(
5937
+ /* @__PURE__ */ L(
5938
5938
  "div",
5939
5939
  {
5940
5940
  className: x(
5941
- ln({ hasError: P }),
5941
+ ln({ hasError: W }),
5942
5942
  o && "pointer-events-none opacity-50"
5943
5943
  ),
5944
5944
  children: [
@@ -5956,8 +5956,8 @@ const ln = ae(
5956
5956
  ref: h,
5957
5957
  id: g,
5958
5958
  disabled: o,
5959
- "aria-invalid": P || void 0,
5960
- "aria-describedby": P ? M : void 0,
5959
+ "aria-invalid": W || void 0,
5960
+ "aria-describedby": W ? N : void 0,
5961
5961
  className: x(
5962
5962
  `w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
5963
5963
  font-normal text-black placeholder:font-inter placeholder:text-xs placeholder:leading-relaxed
@@ -5981,15 +5981,15 @@ const ln = ae(
5981
5981
  ]
5982
5982
  }
5983
5983
  ),
5984
- P && /* @__PURE__ */ l(
5985
- z,
5984
+ W && /* @__PURE__ */ l(
5985
+ F,
5986
5986
  {
5987
5987
  as: "span",
5988
- id: M,
5988
+ id: N,
5989
5989
  role: "alert",
5990
5990
  variant: "caption",
5991
5991
  className: "text-danger-60",
5992
- children: L
5992
+ children: P
5993
5993
  }
5994
5994
  )
5995
5995
  ]
@@ -6018,33 +6018,33 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6018
6018
  placeholder: h = "Selecione",
6019
6019
  label: p,
6020
6020
  name: g,
6021
- leftIcon: L,
6022
- rightIcon: P,
6023
- bgIcon: M = !1,
6021
+ leftIcon: P,
6022
+ rightIcon: W,
6023
+ bgIcon: N = !1,
6024
6024
  error: y,
6025
- disabled: S,
6026
- id: F,
6027
- onKeyDown: $,
6025
+ disabled: M,
6026
+ id: z,
6027
+ onKeyDown: H,
6028
6028
  onFocus: k,
6029
6029
  onBlur: q,
6030
- ...H
6031
- }, D) => {
6032
- const v = yt(), W = F ?? v, G = `${W}-listbox`, Q = typeof y == "string" ? y : y == null ? void 0 : y.message, I = !!Q, rt = `${W}-error`, Le = s !== void 0, [_t, Ve] = xe(n), Oe = Le ? s : _t, ye = r.find(
6030
+ ...G
6031
+ }, S) => {
6032
+ const v = yt(), I = z ?? v, $ = `${I}-listbox`, Q = typeof y == "string" ? y : y == null ? void 0 : y.message, R = !!Q, st = `${I}-error`, Le = s !== void 0, [_t, Ve] = xe(n), Oe = Le ? s : _t, ye = r.find(
6033
6033
  (O) => O.value === Oe
6034
- ), [B, Ye] = xe(!1), [te, qt] = xe(""), [Ar, st] = xe(!1), [nt, kt] = xe(0), zr = Qe(null), Fr = Qe(null), gn = Mn(
6034
+ ), [B, Ye] = xe(!1), [te, qt] = xe(""), [Ar, nt] = xe(!1), [at, kt] = xe(0), zr = Qe(null), Fr = Qe(null), gn = Mn(
6035
6035
  (O) => {
6036
- Fr.current = O, typeof D == "function" ? D(O) : D && (D.current = O);
6036
+ Fr.current = O, typeof S == "function" ? S(O) : S && (S.current = O);
6037
6037
  },
6038
- [D]
6038
+ [S]
6039
6039
  ), Te = fr(() => Ar ? o ? o(r, te) : Ud(r, te, i) : r, [Ar, r, te, o, i]), bn = B ? te : ye ? i(ye) : "";
6040
- ut(() => {
6040
+ Ke(() => {
6041
6041
  if (!B) return;
6042
6042
  const O = (ee) => {
6043
6043
  var Ue;
6044
- (Ue = zr.current) != null && Ue.contains(ee.target) || (Ye(!1), st(!1));
6044
+ (Ue = zr.current) != null && Ue.contains(ee.target) || (Ye(!1), nt(!1));
6045
6045
  };
6046
6046
  return document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
6047
- }, [B]), ut(() => {
6047
+ }, [B]), Ke(() => {
6048
6048
  if (!B) return;
6049
6049
  const O = Te.findIndex(
6050
6050
  (ee) => ee.value === Oe
@@ -6052,16 +6052,16 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6052
6052
  kt(O >= 0 ? O : 0);
6053
6053
  }, [B, Te, Oe]);
6054
6054
  const Mt = () => {
6055
- qt(ye ? i(ye) : ""), st(!1), Ye(!0);
6055
+ qt(ye ? i(ye) : ""), nt(!1), Ye(!0);
6056
6056
  }, Er = () => {
6057
- Ye(!1), st(!1);
6057
+ Ye(!1), nt(!1);
6058
6058
  }, Jt = (O) => {
6059
6059
  var ee;
6060
6060
  Le || Ve(O ? O.value : void 0), a == null || a(O ? O.value : void 0, O), Er(), (ee = Fr.current) == null || ee.focus();
6061
6061
  }, vn = (O) => {
6062
- O.stopPropagation(), Jt(null), qt(""), st(!1), Ye(!0);
6062
+ O.stopPropagation(), Jt(null), qt(""), nt(!1), Ye(!0);
6063
6063
  }, xn = (O) => {
6064
- if ($ == null || $(O), !O.defaultPrevented)
6064
+ if (H == null || H(O), !O.defaultPrevented)
6065
6065
  switch (O.key) {
6066
6066
  case "ArrowDown":
6067
6067
  if (O.preventDefault(), !B) {
@@ -6080,14 +6080,14 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6080
6080
  kt((ee) => Math.max(ee - 1, 0));
6081
6081
  break;
6082
6082
  case "Enter":
6083
- O.preventDefault(), B && Te[nt] && Jt(Te[nt]);
6083
+ O.preventDefault(), B && Te[at] && Jt(Te[at]);
6084
6084
  break;
6085
6085
  case "Escape":
6086
6086
  B && (O.preventDefault(), Er());
6087
6087
  break;
6088
6088
  }
6089
6089
  };
6090
- return /* @__PURE__ */ R(
6090
+ return /* @__PURE__ */ L(
6091
6091
  "div",
6092
6092
  {
6093
6093
  ref: zr,
@@ -6097,44 +6097,44 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6097
6097
  ),
6098
6098
  children: [
6099
6099
  p && /* @__PURE__ */ l(
6100
- z,
6100
+ F,
6101
6101
  {
6102
6102
  as: "label",
6103
- htmlFor: W,
6103
+ htmlFor: I,
6104
6104
  variant: "body",
6105
6105
  className: "text-neutral-text-primary",
6106
6106
  children: p
6107
6107
  }
6108
6108
  ),
6109
- /* @__PURE__ */ R(
6109
+ /* @__PURE__ */ L(
6110
6110
  "div",
6111
6111
  {
6112
6112
  className: x(
6113
- ln({ hasError: I }),
6114
- S && "pointer-events-none opacity-50"
6113
+ ln({ hasError: R }),
6114
+ M && "pointer-events-none opacity-50"
6115
6115
  ),
6116
6116
  children: [
6117
- L && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: L }),
6117
+ P && /* @__PURE__ */ l("span", { className: "inline-flex shrink-0", "aria-hidden": "true", children: P }),
6118
6118
  /* @__PURE__ */ l(
6119
6119
  "input",
6120
6120
  {
6121
6121
  ref: gn,
6122
6122
  type: "text",
6123
- id: W,
6123
+ id: I,
6124
6124
  role: "combobox",
6125
6125
  autoComplete: "off",
6126
6126
  "aria-autocomplete": "list",
6127
6127
  "aria-haspopup": "listbox",
6128
6128
  "aria-expanded": B,
6129
- "aria-controls": G,
6130
- "aria-invalid": I || void 0,
6131
- "aria-describedby": I ? rt : void 0,
6132
- "aria-activedescendant": B && Te[nt] ? `${G}-option-${nt}` : void 0,
6133
- disabled: S,
6129
+ "aria-controls": $,
6130
+ "aria-invalid": R || void 0,
6131
+ "aria-describedby": R ? st : void 0,
6132
+ "aria-activedescendant": B && Te[at] ? `${$}-option-${at}` : void 0,
6133
+ disabled: M,
6134
6134
  placeholder: h,
6135
6135
  value: bn,
6136
6136
  onChange: (O) => {
6137
- st(!0), qt(O.target.value), B || Ye(!0);
6137
+ nt(!0), qt(O.target.value), B || Ye(!0);
6138
6138
  },
6139
6139
  onFocus: (O) => {
6140
6140
  Mt(), k == null || k(O);
@@ -6148,10 +6148,10 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6148
6148
  "w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",
6149
6149
  e
6150
6150
  ),
6151
- ...H
6151
+ ...G
6152
6152
  }
6153
6153
  ),
6154
- c && ye && !S && /* @__PURE__ */ l(
6154
+ c && ye && !M && /* @__PURE__ */ l(
6155
6155
  "button",
6156
6156
  {
6157
6157
  type: "button",
@@ -6168,31 +6168,31 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6168
6168
  className: x(
6169
6169
  "flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",
6170
6170
  B && "rotate-180",
6171
- M && "rounded-md bg-lightGray p-1"
6171
+ N && "rounded-md bg-lightGray p-1"
6172
6172
  ),
6173
6173
  "aria-hidden": "true",
6174
- children: P ?? /* @__PURE__ */ l(Na, { className: "size-4" })
6174
+ children: W ?? /* @__PURE__ */ l(Na, { className: "size-4" })
6175
6175
  }
6176
6176
  )
6177
6177
  ]
6178
6178
  }
6179
6179
  ),
6180
6180
  g && /* @__PURE__ */ l("input", { type: "hidden", name: g, value: Oe ?? "" }),
6181
- B && /* @__PURE__ */ R(
6181
+ B && /* @__PURE__ */ L(
6182
6182
  "ul",
6183
6183
  {
6184
- id: G,
6184
+ id: $,
6185
6185
  role: "listbox",
6186
- "aria-labelledby": p ? W : void 0,
6186
+ "aria-labelledby": p ? I : void 0,
6187
6187
  className: "absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",
6188
6188
  children: [
6189
- Te.length === 0 && /* @__PURE__ */ l("li", { className: "px-3 py-2", children: /* @__PURE__ */ l(z, { as: "span", variant: "bodySm", className: "text-neutral-secondary", children: d }) }),
6189
+ Te.length === 0 && /* @__PURE__ */ l("li", { className: "px-3 py-2", children: /* @__PURE__ */ l(F, { as: "span", variant: "bodySm", className: "text-neutral-secondary", children: d }) }),
6190
6190
  Te.map((O, ee) => {
6191
- const Ue = O.value === Oe, wn = ee === nt;
6191
+ const Ue = O.value === Oe, wn = ee === at;
6192
6192
  return /* @__PURE__ */ l(
6193
6193
  "li",
6194
6194
  {
6195
- id: `${G}-option-${ee}`,
6195
+ id: `${$}-option-${ee}`,
6196
6196
  role: "option",
6197
6197
  "aria-selected": Ue,
6198
6198
  onMouseEnter: () => kt(ee),
@@ -6203,7 +6203,7 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6203
6203
  (wn || Ue) && "bg-lightGray"
6204
6204
  ),
6205
6205
  children: /* @__PURE__ */ l(
6206
- z,
6206
+ F,
6207
6207
  {
6208
6208
  as: "span",
6209
6209
  variant: "bodySm",
@@ -6218,11 +6218,11 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6218
6218
  ]
6219
6219
  }
6220
6220
  ),
6221
- I && /* @__PURE__ */ l(
6222
- z,
6221
+ R && /* @__PURE__ */ l(
6222
+ F,
6223
6223
  {
6224
6224
  as: "span",
6225
- id: rt,
6225
+ id: st,
6226
6226
  role: "alert",
6227
6227
  variant: "caption",
6228
6228
  className: "text-danger-60",
@@ -6235,7 +6235,27 @@ const Vd = (e) => typeof e.label == "string" ? e.label : String(e.value), ts = (
6235
6235
  }
6236
6236
  );
6237
6237
  Hd.displayName = "Select";
6238
- function Gd() {
6238
+ const Gd = se(
6239
+ "relative flex w-full min-w-0 flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",
6240
+ {
6241
+ variants: {
6242
+ width: {
6243
+ // Alertas, confirmações de exclusão e mensagens curtas.
6244
+ sm: "max-w-lg",
6245
+ // Formulários curtos, 1 coluna (poucos campos).
6246
+ md: "max-w-2xl",
6247
+ // Formulários médios, podendo usar 2 colunas.
6248
+ lg: "max-w-4xl",
6249
+ // Formulários extensos/complexos, múltiplas seções ou colunas.
6250
+ xl: "max-w-6xl"
6251
+ }
6252
+ },
6253
+ defaultVariants: {
6254
+ width: "sm"
6255
+ }
6256
+ }
6257
+ );
6258
+ function $d() {
6239
6259
  return /* @__PURE__ */ l("svg", { className: "size-5", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ l(
6240
6260
  "path",
6241
6261
  {
@@ -6246,7 +6266,7 @@ function Gd() {
6246
6266
  }
6247
6267
  ) });
6248
6268
  }
6249
- const $d = K(
6269
+ const Bd = K(
6250
6270
  ({
6251
6271
  open: e,
6252
6272
  onClose: t,
@@ -6255,58 +6275,56 @@ const $d = K(
6255
6275
  footer: n,
6256
6276
  closeOnBackdropClick: a = !0,
6257
6277
  showCloseButton: i = !0,
6258
- className: o,
6259
- contentClassName: d,
6260
- ...c
6261
- }, h) => {
6262
- const p = yt(), g = Qe(null), [L, P] = xe(!1);
6263
- return ut(() => P(!0), []), ut(() => {
6264
- var S;
6278
+ width: o = "sm",
6279
+ className: d,
6280
+ contentClassName: c,
6281
+ ...h
6282
+ }, p) => {
6283
+ const g = yt(), P = Qe(null), [W, N] = xe(!1);
6284
+ return Ke(() => N(!0), []), Ke(() => {
6285
+ var z;
6265
6286
  if (!e) return;
6266
- const M = document.body.style.overflow;
6267
- document.body.style.overflow = "hidden", (S = g.current) == null || S.focus();
6268
- const y = (F) => {
6269
- F.key === "Escape" && t();
6287
+ const y = document.body.style.overflow;
6288
+ document.body.style.overflow = "hidden", (z = P.current) == null || z.focus();
6289
+ const M = (H) => {
6290
+ H.key === "Escape" && t();
6270
6291
  };
6271
- return document.addEventListener("keydown", y), () => {
6272
- document.body.style.overflow = M, document.removeEventListener("keydown", y);
6292
+ return document.addEventListener("keydown", M), () => {
6293
+ document.body.style.overflow = y, document.removeEventListener("keydown", M);
6273
6294
  };
6274
- }, [e, t]), !e || !L ? null : ns(
6295
+ }, [e, t]), !e || !W ? null : ns(
6275
6296
  /* @__PURE__ */ l(
6276
6297
  "div",
6277
6298
  {
6278
6299
  className: "fixed inset-0 z-[9999] flex items-center justify-center overflow-y-auto bg-black/40 p-4",
6279
6300
  onClick: a ? t : void 0,
6280
- children: /* @__PURE__ */ R(
6301
+ children: /* @__PURE__ */ L(
6281
6302
  "div",
6282
6303
  {
6283
- ref: h,
6304
+ ref: p,
6284
6305
  role: "dialog",
6285
6306
  "aria-modal": "true",
6286
- "aria-labelledby": r ? p : void 0,
6287
- onClick: (M) => M.stopPropagation(),
6288
- className: x(
6289
- "relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",
6290
- o
6291
- ),
6292
- ...c,
6307
+ "aria-labelledby": r ? g : void 0,
6308
+ onClick: (y) => y.stopPropagation(),
6309
+ className: x(Gd({ width: o }), d),
6310
+ ...h,
6293
6311
  children: [
6294
6312
  i && /* @__PURE__ */ l(
6295
6313
  "button",
6296
6314
  {
6297
- ref: g,
6315
+ ref: P,
6298
6316
  type: "button",
6299
6317
  onClick: t,
6300
6318
  "aria-label": "Fechar",
6301
6319
  className: "absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",
6302
- children: /* @__PURE__ */ l(Gd, {})
6320
+ children: /* @__PURE__ */ l($d, {})
6303
6321
  }
6304
6322
  ),
6305
6323
  r && /* @__PURE__ */ l("div", { className: "pr-8", children: /* @__PURE__ */ l(
6306
- z,
6324
+ F,
6307
6325
  {
6308
6326
  as: "h2",
6309
- id: p,
6327
+ id: g,
6310
6328
  variant: "h4",
6311
6329
  weight: "medium",
6312
6330
  className: "text-neutral-text-primary",
@@ -6318,7 +6336,7 @@ const $d = K(
6318
6336
  {
6319
6337
  className: x(
6320
6338
  "max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",
6321
- d
6339
+ c
6322
6340
  ),
6323
6341
  children: s
6324
6342
  }
@@ -6333,10 +6351,10 @@ const $d = K(
6333
6351
  );
6334
6352
  }
6335
6353
  );
6336
- $d.displayName = "Modal";
6337
- const Bd = ae(
6354
+ Bd.displayName = "Modal";
6355
+ const Zd = se(
6338
6356
  "flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"
6339
- ), Zd = ae(
6357
+ ), qd = se(
6340
6358
  "flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",
6341
6359
  {
6342
6360
  variants: {
@@ -6349,7 +6367,7 @@ const Bd = ae(
6349
6367
  selected: !1
6350
6368
  }
6351
6369
  }
6352
- ), qd = K(
6370
+ ), Jd = K(
6353
6371
  ({
6354
6372
  className: e,
6355
6373
  options: t,
@@ -6360,35 +6378,35 @@ const Bd = ae(
6360
6378
  "aria-label": i,
6361
6379
  ...o
6362
6380
  }, d) => {
6363
- var $;
6364
- const c = yt(), h = a ?? c, p = r !== void 0, [g, L] = xe(
6365
- s ?? (($ = t[0]) == null ? void 0 : $.value)
6366
- ), P = p ? r : g, M = Qe([]), y = (k) => {
6367
- k.disabled || (p || L(k.value), n == null || n(k.value, k));
6368
- }, S = (k) => {
6381
+ var H;
6382
+ const c = yt(), h = a ?? c, p = r !== void 0, [g, P] = xe(
6383
+ s ?? ((H = t[0]) == null ? void 0 : H.value)
6384
+ ), W = p ? r : g, N = Qe([]), y = (k) => {
6385
+ k.disabled || (p || P(k.value), n == null || n(k.value, k));
6386
+ }, M = (k) => {
6369
6387
  var q;
6370
- (q = M.current[k]) == null || q.focus();
6371
- }, F = (k, q) => {
6372
- const H = t.map((v, W) => v.disabled ? -1 : W).filter((v) => v !== -1), D = (v) => {
6373
- const W = H.indexOf(q);
6374
- if (W === -1) return;
6375
- const G = (W + v + H.length) % H.length, Q = H[G];
6376
- S(Q), y(t[Q]);
6388
+ (q = N.current[k]) == null || q.focus();
6389
+ }, z = (k, q) => {
6390
+ const G = t.map((v, I) => v.disabled ? -1 : I).filter((v) => v !== -1), S = (v) => {
6391
+ const I = G.indexOf(q);
6392
+ if (I === -1) return;
6393
+ const $ = (I + v + G.length) % G.length, Q = G[$];
6394
+ M(Q), y(t[Q]);
6377
6395
  };
6378
6396
  switch (k.key) {
6379
6397
  case "ArrowRight":
6380
- k.preventDefault(), D(1);
6398
+ k.preventDefault(), S(1);
6381
6399
  break;
6382
6400
  case "ArrowLeft":
6383
- k.preventDefault(), D(-1);
6401
+ k.preventDefault(), S(-1);
6384
6402
  break;
6385
6403
  case "Home":
6386
- k.preventDefault(), H.length && (S(H[0]), y(t[H[0]]));
6404
+ k.preventDefault(), G.length && (M(G[0]), y(t[G[0]]));
6387
6405
  break;
6388
6406
  case "End":
6389
- if (k.preventDefault(), H.length) {
6390
- const v = H[H.length - 1];
6391
- S(v), y(t[v]);
6407
+ if (k.preventDefault(), G.length) {
6408
+ const v = G[G.length - 1];
6409
+ M(v), y(t[v]);
6392
6410
  }
6393
6411
  break;
6394
6412
  }
@@ -6400,28 +6418,28 @@ const Bd = ae(
6400
6418
  role: "tablist",
6401
6419
  "aria-label": i,
6402
6420
  id: h,
6403
- className: x(Bd(), e),
6421
+ className: x(Zd(), e),
6404
6422
  ...o,
6405
6423
  children: t.map((k, q) => {
6406
- const H = k.value === P;
6424
+ const G = k.value === W;
6407
6425
  return /* @__PURE__ */ l(
6408
6426
  "button",
6409
6427
  {
6410
- ref: (D) => {
6411
- M.current[q] = D;
6428
+ ref: (S) => {
6429
+ N.current[q] = S;
6412
6430
  },
6413
6431
  type: "button",
6414
6432
  role: "tab",
6415
6433
  id: `${h}-tab-${q}`,
6416
- "aria-selected": H,
6434
+ "aria-selected": G,
6417
6435
  "aria-disabled": k.disabled || void 0,
6418
6436
  disabled: k.disabled,
6419
- tabIndex: H ? 0 : -1,
6437
+ tabIndex: G ? 0 : -1,
6420
6438
  onClick: () => y(k),
6421
- onKeyDown: (D) => F(D, q),
6422
- className: x(Zd({ selected: H })),
6439
+ onKeyDown: (S) => z(S, q),
6440
+ className: x(qd({ selected: G })),
6423
6441
  children: /* @__PURE__ */ l(
6424
- z,
6442
+ F,
6425
6443
  {
6426
6444
  as: "span",
6427
6445
  variant: "caption",
@@ -6438,8 +6456,8 @@ const Bd = ae(
6438
6456
  );
6439
6457
  }
6440
6458
  );
6441
- qd.displayName = "Tabs";
6442
- function Jd({ className: e }) {
6459
+ Jd.displayName = "Tabs";
6460
+ function Qd({ className: e }) {
6443
6461
  return /* @__PURE__ */ l(
6444
6462
  "svg",
6445
6463
  {
@@ -6467,7 +6485,7 @@ function cn() {
6467
6485
  throw new Error("Accordion.Item must be used within an Accordion");
6468
6486
  return e;
6469
6487
  }
6470
- const Qd = ae("flex w-full flex-col gap-2"), un = K(
6488
+ const Kd = se("flex w-full flex-col gap-2"), un = K(
6471
6489
  ({
6472
6490
  type: e = "single",
6473
6491
  value: t,
@@ -6479,47 +6497,47 @@ const Qd = ae("flex w-full flex-col gap-2"), un = K(
6479
6497
  id: o,
6480
6498
  ...d
6481
6499
  }, c) => {
6482
- const h = yt(), p = o ?? h, g = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v], L = t !== void 0, [P, M] = xe(
6500
+ const h = yt(), p = o ?? h, g = (v) => v === void 0 ? [] : Array.isArray(v) ? v : [v], P = t !== void 0, [W, N] = xe(
6483
6501
  () => g(r)
6484
- ), y = L ? g(t) : P, S = (v) => {
6485
- L || M(v), s == null || s(e === "multiple" ? v : v[0] ?? "");
6486
- }, F = (v) => {
6487
- const W = y.includes(v);
6502
+ ), y = P ? g(t) : W, M = (v) => {
6503
+ P || N(v), s == null || s(e === "multiple" ? v : v[0] ?? "");
6504
+ }, z = (v) => {
6505
+ const I = y.includes(v);
6488
6506
  if (e === "multiple") {
6489
- const G = W ? y.filter((Q) => Q !== v) : [...y, v];
6490
- S(G);
6507
+ const $ = I ? y.filter((Q) => Q !== v) : [...y, v];
6508
+ M($);
6491
6509
  return;
6492
6510
  }
6493
- if (W) {
6494
- S(n ? [] : y);
6511
+ if (I) {
6512
+ M(n ? [] : y);
6495
6513
  return;
6496
6514
  }
6497
- S([v]);
6498
- }, $ = Qe(/* @__PURE__ */ new Map()), k = Qe([]), q = (v, W) => {
6499
- W ? ($.current.set(v, W), k.current.includes(v) || k.current.push(v)) : ($.current.delete(v), k.current = k.current.filter((G) => G !== v));
6500
- }, H = (v) => {
6501
- const W = k.current;
6502
- if (!W.length) return;
6503
- const G = (v + W.length) % W.length, Q = $.current.get(W[G]);
6515
+ M([v]);
6516
+ }, H = Qe(/* @__PURE__ */ new Map()), k = Qe([]), q = (v, I) => {
6517
+ I ? (H.current.set(v, I), k.current.includes(v) || k.current.push(v)) : (H.current.delete(v), k.current = k.current.filter(($) => $ !== v));
6518
+ }, G = (v) => {
6519
+ const I = k.current;
6520
+ if (!I.length) return;
6521
+ const $ = (v + I.length) % I.length, Q = H.current.get(I[$]);
6504
6522
  Q == null || Q.focus();
6505
- }, D = fr(
6523
+ }, S = fr(
6506
6524
  () => ({
6507
6525
  openValues: y,
6508
- toggleValue: F,
6526
+ toggleValue: z,
6509
6527
  registerTrigger: q,
6510
- focusTrigger: H,
6528
+ focusTrigger: G,
6511
6529
  values: k.current,
6512
6530
  accordionId: p
6513
6531
  // eslint-disable-next-line react-hooks/exhaustive-deps
6514
6532
  }),
6515
6533
  [y, e, n, p]
6516
6534
  );
6517
- return /* @__PURE__ */ l(dn.Provider, { value: D, children: /* @__PURE__ */ l(
6535
+ return /* @__PURE__ */ l(dn.Provider, { value: S, children: /* @__PURE__ */ l(
6518
6536
  "div",
6519
6537
  {
6520
6538
  ref: c,
6521
6539
  id: p,
6522
- className: x(Qd(), a),
6540
+ className: x(Kd(), a),
6523
6541
  ...d,
6524
6542
  children: i
6525
6543
  }
@@ -6534,7 +6552,7 @@ function hn() {
6534
6552
  throw new Error("Accordion.Trigger/Content must be used within an Accordion.Item");
6535
6553
  return e;
6536
6554
  }
6537
- const Kd = ae(
6555
+ const Xd = se(
6538
6556
  "overflow-hidden rounded-lg border border-neutral-divider-secondary bg-white"
6539
6557
  ), mn = K(
6540
6558
  ({ value: e, disabled: t = !1, className: r, children: s, ...n }, a) => {
@@ -6547,7 +6565,7 @@ const Kd = ae(
6547
6565
  "div",
6548
6566
  {
6549
6567
  ref: a,
6550
- className: x(Kd(), r),
6568
+ className: x(Xd(), r),
6551
6569
  "data-state": d ? "open" : "closed",
6552
6570
  ...n,
6553
6571
  children: s
@@ -6558,32 +6576,32 @@ const Kd = ae(
6558
6576
  }
6559
6577
  );
6560
6578
  mn.displayName = "Accordion.Item";
6561
- const Xd = ae(
6579
+ const ec = se(
6562
6580
  "flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-3.5 text-left transition-colors hover:bg-lightGray focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50"
6563
6581
  ), pn = K(
6564
6582
  ({ className: e, children: t, actions: r, actionsClassName: s, ...n }, a) => {
6565
- const { toggleValue: i, registerTrigger: o, focusTrigger: d, values: c } = cn(), { value: h, disabled: p, isOpen: g, triggerId: L, contentId: P } = hn();
6566
- return /* @__PURE__ */ R(z, { as: "h3", variant: "body", className: "m-0 flex w-full items-center gap-2", children: [
6567
- /* @__PURE__ */ R(
6583
+ const { toggleValue: i, registerTrigger: o, focusTrigger: d, values: c } = cn(), { value: h, disabled: p, isOpen: g, triggerId: P, contentId: W } = hn();
6584
+ return /* @__PURE__ */ L(F, { as: "h3", variant: "body", className: "m-0 flex w-full items-center gap-2", children: [
6585
+ /* @__PURE__ */ L(
6568
6586
  "button",
6569
6587
  {
6570
6588
  ref: (y) => {
6571
6589
  o(h, y), typeof a == "function" ? a(y) : a && (a.current = y);
6572
6590
  },
6573
6591
  type: "button",
6574
- id: L,
6592
+ id: P,
6575
6593
  "aria-expanded": g,
6576
- "aria-controls": P,
6594
+ "aria-controls": W,
6577
6595
  disabled: p,
6578
6596
  onClick: () => i(h),
6579
6597
  onKeyDown: (y) => {
6580
- const S = c.indexOf(h);
6598
+ const M = c.indexOf(h);
6581
6599
  switch (y.key) {
6582
6600
  case "ArrowDown":
6583
- y.preventDefault(), d(S + 1);
6601
+ y.preventDefault(), d(M + 1);
6584
6602
  break;
6585
6603
  case "ArrowUp":
6586
- y.preventDefault(), d(S - 1);
6604
+ y.preventDefault(), d(M - 1);
6587
6605
  break;
6588
6606
  case "Home":
6589
6607
  y.preventDefault(), d(0);
@@ -6593,11 +6611,11 @@ const Xd = ae(
6593
6611
  break;
6594
6612
  }
6595
6613
  },
6596
- className: x(Xd(), e),
6614
+ className: x(ec(), e),
6597
6615
  ...n,
6598
6616
  children: [
6599
6617
  /* @__PURE__ */ l("span", { className: "flex min-w-0 flex-1 items-center gap-2 font-medium text-neutral-text-primary", children: t }),
6600
- /* @__PURE__ */ l(Jd, { className: x("text-neutral-text-secondary", g && "rotate-180") })
6618
+ /* @__PURE__ */ l(Qd, { className: x("text-neutral-text-secondary", g && "rotate-180") })
6601
6619
  ]
6602
6620
  }
6603
6621
  ),
@@ -6625,11 +6643,11 @@ const yn = K(
6625
6643
  }
6626
6644
  );
6627
6645
  yn.displayName = "Accordion.Content";
6628
- const oc = Object.assign(un, {
6646
+ const lc = Object.assign(un, {
6629
6647
  Item: mn,
6630
6648
  Trigger: pn,
6631
6649
  Content: yn
6632
- }), ec = ae(
6650
+ }), tc = se(
6633
6651
  "fixed z-[99999] flex w-full max-w-sm p-4",
6634
6652
  {
6635
6653
  variants: {
@@ -6645,7 +6663,7 @@ const oc = Object.assign(un, {
6645
6663
  }
6646
6664
  }
6647
6665
  );
6648
- function tc({
6666
+ function rc({
6649
6667
  open: e,
6650
6668
  position: t = "bottom-right",
6651
6669
  container: r,
@@ -6656,11 +6674,16 @@ function tc({
6656
6674
  description: o,
6657
6675
  action: d,
6658
6676
  onClose: c,
6659
- ...h
6677
+ duration: h = 6e3,
6678
+ ...p
6660
6679
  }) {
6661
- const [p, g] = xe(!1);
6662
- return ut(() => g(!0), []), !e || !p ? null : ns(
6663
- /* @__PURE__ */ l("div", { className: ec({ position: t }), ...h, children: /* @__PURE__ */ l(
6680
+ const [g, P] = xe(!1);
6681
+ return Ke(() => P(!0), []), Ke(() => {
6682
+ if (!e || !h) return;
6683
+ const W = setTimeout(() => c == null ? void 0 : c(), h);
6684
+ return () => clearTimeout(W);
6685
+ }, [e, h, c]), !e || !g ? null : ns(
6686
+ /* @__PURE__ */ l("div", { className: tc({ position: t }), ...p, children: /* @__PURE__ */ l(
6664
6687
  mr,
6665
6688
  {
6666
6689
  variant: n,
@@ -6675,38 +6698,38 @@ function tc({
6675
6698
  r ?? document.body
6676
6699
  );
6677
6700
  }
6678
- tc.displayName = "Toast";
6701
+ rc.displayName = "Toast";
6679
6702
  export {
6680
- oc as Accordion,
6703
+ lc as Accordion,
6681
6704
  on as Avatar,
6682
6705
  ca as Badge,
6683
6706
  oa as Button,
6684
6707
  mr as Card,
6685
6708
  jd as Input,
6686
- $d as Modal,
6709
+ Bd as Modal,
6687
6710
  Pd as Notification,
6688
6711
  Ed as Pagination,
6689
6712
  Hd as Select,
6690
- ic as Table,
6691
- ac as TableAvatar,
6713
+ oc as Table,
6714
+ ic as TableAvatar,
6692
6715
  Xr as TableCell,
6693
6716
  cr as TableCheckbox,
6694
6717
  ur as TableHeadCell,
6695
- qd as Tabs,
6696
- z as Text,
6697
- tc as Toast,
6698
- Kd as accordionItemVariants,
6699
- Xd as accordionTriggerVariants,
6700
- Qd as accordionVariants,
6718
+ Jd as Tabs,
6719
+ F as Text,
6720
+ rc as Toast,
6721
+ Xd as accordionItemVariants,
6722
+ ec as accordionTriggerVariants,
6723
+ Kd as accordionVariants,
6701
6724
  Ld as avatarVariants,
6702
6725
  la as badgeVariants,
6703
6726
  aa as buttonVariants,
6704
6727
  ua as cardVariants,
6705
6728
  x as cn,
6706
6729
  ln as inputVariants,
6707
- Zd as tabVariants,
6708
- Bd as tabsListVariants,
6730
+ qd as tabVariants,
6731
+ Zd as tabsListVariants,
6709
6732
  sa as textVariants,
6710
- ec as toastPositionVariants
6733
+ tc as toastPositionVariants
6711
6734
  };
6712
6735
  //# sourceMappingURL=agilys-design-system.js.map