@dhasdk/simple-ui 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as L, jsx as s, Fragment as oe } from "react/jsx-runtime";
2
2
  import * as ne from "react";
3
- import r2, { forwardRef as ee, useState as I, useEffect as Z, Children as Ue, isValidElement as be, cloneElement as _e, useRef as X, useMemo as Oe, useImperativeHandle as n2, useCallback as Me, createContext as C2, useContext as y2 } from "react";
3
+ import r2, { forwardRef as ee, useState as H, useEffect as Z, Children as Ue, isValidElement as be, cloneElement as _e, useRef as X, useMemo as Oe, useImperativeHandle as n2, useCallback as Me, createContext as C2, useContext as y2 } from "react";
4
4
  import { useLocation as k2, Link as $e, NavLink as N2 } from "react-router-dom";
5
5
  const Re = "-", M2 = (e) => {
6
6
  const t = $2(e), {
@@ -109,25 +109,25 @@ const Re = "-", M2 = (e) => {
109
109
  let r = (a) => {
110
110
  const l = [];
111
111
  let o = 0, c = 0, i = 0, m;
112
- for (let x = 0; x < a.length; x++) {
113
- let M = a[x];
112
+ for (let h = 0; h < a.length; h++) {
113
+ let _ = a[h];
114
114
  if (o === 0 && c === 0) {
115
- if (M === je) {
116
- l.push(a.slice(i, x)), i = x + S2;
115
+ if (_ === je) {
116
+ l.push(a.slice(i, h)), i = h + S2;
117
117
  continue;
118
118
  }
119
- if (M === "/") {
120
- m = x;
119
+ if (_ === "/") {
120
+ m = h;
121
121
  continue;
122
122
  }
123
123
  }
124
- M === "[" ? o++ : M === "]" ? o-- : M === "(" ? c++ : M === ")" && c--;
124
+ _ === "[" ? o++ : _ === "]" ? o-- : _ === "(" ? c++ : _ === ")" && c--;
125
125
  }
126
- const b = l.length === 0 ? a : a.substring(i), p = z2(b), u = p !== b, C = m && m > i ? m - i : void 0;
126
+ const b = l.length === 0 ? a : a.substring(i), x = z2(b), u = x !== b, C = m && m > i ? m - i : void 0;
127
127
  return {
128
128
  modifiers: l,
129
129
  hasImportantModifier: u,
130
- baseClassName: p,
130
+ baseClassName: x,
131
131
  maybePostfixModifierPosition: C
132
132
  };
133
133
  };
@@ -175,36 +175,36 @@ const Re = "-", M2 = (e) => {
175
175
  let i = "";
176
176
  for (let m = c.length - 1; m >= 0; m -= 1) {
177
177
  const b = c[m], {
178
- isExternal: p,
178
+ isExternal: x,
179
179
  modifiers: u,
180
180
  hasImportantModifier: C,
181
- baseClassName: x,
182
- maybePostfixModifierPosition: M
181
+ baseClassName: h,
182
+ maybePostfixModifierPosition: _
183
183
  } = n(b);
184
- if (p) {
184
+ if (x) {
185
185
  i = b + (i.length > 0 ? " " + i : i);
186
186
  continue;
187
187
  }
188
- let $ = !!M, y = r($ ? x.substring(0, M) : x);
188
+ let $ = !!_, y = r($ ? h.substring(0, _) : h);
189
189
  if (!y) {
190
190
  if (!$) {
191
191
  i = b + (i.length > 0 ? " " + i : i);
192
192
  continue;
193
193
  }
194
- if (y = r(x), !y) {
194
+ if (y = r(h), !y) {
195
195
  i = b + (i.length > 0 ? " " + i : i);
196
196
  continue;
197
197
  }
198
198
  $ = !1;
199
199
  }
200
- const g = l(u).join(":"), _ = C ? g + Te : g, O = _ + y;
201
- if (o.includes(O))
200
+ const g = l(u).join(":"), M = C ? g + Te : g, A = M + y;
201
+ if (o.includes(A))
202
202
  continue;
203
- o.push(O);
204
- const H = a(y, $);
205
- for (let j = 0; j < H.length; ++j) {
206
- const B = H[j];
207
- o.push(_ + B);
203
+ o.push(A);
204
+ const I = a(y, $);
205
+ for (let E = 0; E < I.length; ++E) {
206
+ const B = I[E];
207
+ o.push(M + B);
208
208
  }
209
209
  i = b + (i.length > 0 ? " " + i : i);
210
210
  }
@@ -227,7 +227,7 @@ const a2 = (e) => {
227
227
  function E2(e, ...t) {
228
228
  let n, r, a, l = o;
229
229
  function o(i) {
230
- const m = t.reduce((b, p) => p(b), e());
230
+ const m = t.reduce((b, x) => x(b), e());
231
231
  return n = H2(m), r = n.cache.get, a = n.cache.set, l = c, c(i);
232
232
  }
233
233
  function c(i) {
@@ -256,7 +256,7 @@ const J = (e) => {
256
256
  const r = i2.exec(e);
257
257
  return r ? r[1] ? t(r[1]) : n : !1;
258
258
  }, d2 = (e) => e === "position" || e === "percentage", m2 = (e) => e === "image" || e === "url", u2 = (e) => e === "length" || e === "size" || e === "bg-size", g2 = (e) => e === "length", t0 = (e) => e === "number", s0 = (e) => e === "family-name", f2 = (e) => e === "shadow", r0 = () => {
259
- const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), a = J("tracking"), l = J("leading"), o = J("breakpoint"), c = J("container"), i = J("spacing"), m = J("radius"), b = J("shadow"), p = J("inset-shadow"), u = J("text-shadow"), C = J("drop-shadow"), x = J("blur"), M = J("perspective"), $ = J("aspect"), y = J("ease"), g = J("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
259
+ const e = J("color"), t = J("font"), n = J("text"), r = J("font-weight"), a = J("tracking"), l = J("leading"), o = J("breakpoint"), c = J("container"), i = J("spacing"), m = J("radius"), b = J("shadow"), x = J("inset-shadow"), u = J("text-shadow"), C = J("drop-shadow"), h = J("blur"), _ = J("perspective"), $ = J("aspect"), y = J("ease"), g = J("animate"), M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
260
260
  "center",
261
261
  "top",
262
262
  "bottom",
@@ -274,11 +274,11 @@ const J = (e) => {
274
274
  "bottom-left",
275
275
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
276
276
  "left-bottom"
277
- ], H = () => [...O(), V, S], j = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], k = () => [V, S, i], U = () => [ue, "full", "auto", ...k()], D = () => [ce, "none", "subgrid", V, S], h = () => ["auto", {
277
+ ], I = () => [...A(), V, S], E = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], k = () => [V, S, i], U = () => [ue, "full", "auto", ...k()], D = () => [ce, "none", "subgrid", V, S], p = () => ["auto", {
278
278
  span: ["full", ce, V, S]
279
- }, ce, V, S], A = () => [ce, "auto", V, S], F = () => ["auto", "min", "max", "fr", V, S], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], w = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], v = () => ["auto", ...k()], N = () => [ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], d = () => [e, V, S], E = () => [...O(), Pe, Ye, {
279
+ }, ce, V, S], O = () => [ce, "auto", V, S], F = () => ["auto", "min", "max", "fr", V, S], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], w = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], v = () => ["auto", ...k()], N = () => [ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], d = () => [e, V, S], T = () => [...A(), Pe, Ye, {
280
280
  position: [V, S]
281
- }], T = () => ["no-repeat", {
281
+ }], j = () => ["no-repeat", {
282
282
  repeat: ["", "x", "y", "space", "round"]
283
283
  }], G = () => ["auto", "cover", "contain", Q2, q2, {
284
284
  size: [V, S]
@@ -294,7 +294,7 @@ const J = (e) => {
294
294
  // Deprecated since Tailwind CSS v4.0.0
295
295
  "",
296
296
  "none",
297
- x,
297
+ h,
298
298
  V,
299
299
  S
300
300
  ], te = () => ["none", R, V, S], q = () => ["none", R, V, S], se = () => [R, V, S], re = () => [ue, "full", ...k()];
@@ -350,14 +350,14 @@ const J = (e) => {
350
350
  * @see https://tailwindcss.com/docs/break-after
351
351
  */
352
352
  "break-after": [{
353
- "break-after": _()
353
+ "break-after": M()
354
354
  }],
355
355
  /**
356
356
  * Break Before
357
357
  * @see https://tailwindcss.com/docs/break-before
358
358
  */
359
359
  "break-before": [{
360
- "break-before": _()
360
+ "break-before": M()
361
361
  }],
362
362
  /**
363
363
  * Break Inside
@@ -421,28 +421,28 @@ const J = (e) => {
421
421
  * @see https://tailwindcss.com/docs/object-position
422
422
  */
423
423
  "object-position": [{
424
- object: H()
424
+ object: I()
425
425
  }],
426
426
  /**
427
427
  * Overflow
428
428
  * @see https://tailwindcss.com/docs/overflow
429
429
  */
430
430
  overflow: [{
431
- overflow: j()
431
+ overflow: E()
432
432
  }],
433
433
  /**
434
434
  * Overflow X
435
435
  * @see https://tailwindcss.com/docs/overflow
436
436
  */
437
437
  "overflow-x": [{
438
- "overflow-x": j()
438
+ "overflow-x": E()
439
439
  }],
440
440
  /**
441
441
  * Overflow Y
442
442
  * @see https://tailwindcss.com/docs/overflow
443
443
  */
444
444
  "overflow-y": [{
445
- "overflow-y": j()
445
+ "overflow-y": E()
446
446
  }],
447
447
  /**
448
448
  * Overscroll Behavior
@@ -609,21 +609,21 @@ const J = (e) => {
609
609
  * @see https://tailwindcss.com/docs/grid-column
610
610
  */
611
611
  "col-start-end": [{
612
- col: h()
612
+ col: p()
613
613
  }],
614
614
  /**
615
615
  * Grid Column Start
616
616
  * @see https://tailwindcss.com/docs/grid-column
617
617
  */
618
618
  "col-start": [{
619
- "col-start": A()
619
+ "col-start": O()
620
620
  }],
621
621
  /**
622
622
  * Grid Column End
623
623
  * @see https://tailwindcss.com/docs/grid-column
624
624
  */
625
625
  "col-end": [{
626
- "col-end": A()
626
+ "col-end": O()
627
627
  }],
628
628
  /**
629
629
  * Grid Template Rows
@@ -637,21 +637,21 @@ const J = (e) => {
637
637
  * @see https://tailwindcss.com/docs/grid-row
638
638
  */
639
639
  "row-start-end": [{
640
- row: h()
640
+ row: p()
641
641
  }],
642
642
  /**
643
643
  * Grid Row Start
644
644
  * @see https://tailwindcss.com/docs/grid-row
645
645
  */
646
646
  "row-start": [{
647
- "row-start": A()
647
+ "row-start": O()
648
648
  }],
649
649
  /**
650
650
  * Grid Row End
651
651
  * @see https://tailwindcss.com/docs/grid-row
652
652
  */
653
653
  "row-end": [{
654
- "row-end": A()
654
+ "row-end": O()
655
655
  }],
656
656
  /**
657
657
  * Grid Auto Flow
@@ -1249,14 +1249,14 @@ const J = (e) => {
1249
1249
  * @see https://tailwindcss.com/docs/background-position
1250
1250
  */
1251
1251
  "bg-position": [{
1252
- bg: E()
1252
+ bg: T()
1253
1253
  }],
1254
1254
  /**
1255
1255
  * Background Repeat
1256
1256
  * @see https://tailwindcss.com/docs/background-repeat
1257
1257
  */
1258
1258
  "bg-repeat": [{
1259
- bg: T()
1259
+ bg: j()
1260
1260
  }],
1261
1261
  /**
1262
1262
  * Background Size
@@ -1663,7 +1663,7 @@ const J = (e) => {
1663
1663
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1664
1664
  */
1665
1665
  "inset-shadow": [{
1666
- "inset-shadow": ["none", p, ve, we]
1666
+ "inset-shadow": ["none", x, ve, we]
1667
1667
  }],
1668
1668
  /**
1669
1669
  * Inset Box Shadow Color
@@ -1890,7 +1890,7 @@ const J = (e) => {
1890
1890
  }]
1891
1891
  }],
1892
1892
  "mask-image-radial-pos": [{
1893
- "mask-radial-at": O()
1893
+ "mask-radial-at": A()
1894
1894
  }],
1895
1895
  "mask-image-conic-pos": [{
1896
1896
  "mask-conic": [R]
@@ -1926,14 +1926,14 @@ const J = (e) => {
1926
1926
  * @see https://tailwindcss.com/docs/mask-position
1927
1927
  */
1928
1928
  "mask-position": [{
1929
- mask: E()
1929
+ mask: T()
1930
1930
  }],
1931
1931
  /**
1932
1932
  * Mask Repeat
1933
1933
  * @see https://tailwindcss.com/docs/mask-repeat
1934
1934
  */
1935
1935
  "mask-repeat": [{
1936
- mask: T()
1936
+ mask: j()
1937
1937
  }],
1938
1938
  /**
1939
1939
  * Mask Size
@@ -2230,14 +2230,14 @@ const J = (e) => {
2230
2230
  * @see https://tailwindcss.com/docs/perspective
2231
2231
  */
2232
2232
  perspective: [{
2233
- perspective: [M, V, S]
2233
+ perspective: [_, V, S]
2234
2234
  }],
2235
2235
  /**
2236
2236
  * Perspective Origin
2237
2237
  * @see https://tailwindcss.com/docs/perspective-origin
2238
2238
  */
2239
2239
  "perspective-origin": [{
2240
- "perspective-origin": H()
2240
+ "perspective-origin": I()
2241
2241
  }],
2242
2242
  /**
2243
2243
  * Rotate
@@ -2333,7 +2333,7 @@ const J = (e) => {
2333
2333
  * @see https://tailwindcss.com/docs/transform-origin
2334
2334
  */
2335
2335
  "transform-origin": [{
2336
- origin: H()
2336
+ origin: I()
2337
2337
  }],
2338
2338
  /**
2339
2339
  * Transform Style
@@ -2738,34 +2738,34 @@ const J = (e) => {
2738
2738
  classNameContent: i = "",
2739
2739
  onExpand: m,
2740
2740
  singleOpen: b,
2741
- classNameHr: p = "",
2741
+ classNameHr: x = "",
2742
2742
  useBackground: u = !0,
2743
2743
  index: C,
2744
- children: x,
2745
- ...M
2744
+ children: h,
2745
+ ..._
2746
2746
  }, $) => {
2747
- const [y, g] = I(!1), [_, O] = I(Ve), [H, j] = I(Se), [B, k] = I(""), U = `accordion-${C ?? t.replace(/\s+/g, "-").toLowerCase()}`, D = () => {
2747
+ const [y, g] = H(!1), [M, A] = H(Ve), [I, E] = H(Se), [B, k] = H(""), U = `accordion-${C ?? t.replace(/\s+/g, "-").toLowerCase()}`, D = () => {
2748
2748
  m && b && m(g), g(!y);
2749
- }, h = (A) => {
2750
- (A.key === "Enter" || A.key === " ") && (A.preventDefault(), D());
2749
+ }, p = (O) => {
2750
+ (O.key === "Enter" || O.key === " ") && (O.preventDefault(), D());
2751
2751
  };
2752
2752
  return Z(() => {
2753
- k(f("border-[#dfe1e2] -mt-4 pt-0 mb-3", p));
2754
- }, [p]), Z(() => {
2755
- O(u ? Ve : f(Ve, "bg-transparent border-0"));
2753
+ k(f("border-[#dfe1e2] -mt-4 pt-0 mb-3", x));
2754
+ }, [x]), Z(() => {
2755
+ A(u ? Ve : f(Ve, "bg-transparent border-0"));
2756
2756
  }, [u]), Z(() => {
2757
- j(y && u ? f(Se, "border-b-0 rounded-t rounded-b-none") : Se);
2757
+ E(y && u ? f(Se, "border-b-0! rounded-t rounded-b-none") : Se);
2758
2758
  }, [y, u]), /* @__PURE__ */ L("div", { ref: $, className: n, children: [
2759
2759
  /* @__PURE__ */ L(
2760
2760
  "button",
2761
2761
  {
2762
- className: f(H, l0.variant, c),
2762
+ className: f(I, l0.variant, c),
2763
2763
  "aria-controls": `${U}-content`,
2764
2764
  "aria-expanded": y,
2765
2765
  id: `${U}-header`,
2766
2766
  onClick: D,
2767
- onKeyDown: h,
2768
- ...M,
2767
+ onKeyDown: p,
2768
+ ..._,
2769
2769
  children: [
2770
2770
  /* @__PURE__ */ s("span", { children: t }),
2771
2771
  /* @__PURE__ */ s("span", { children: y ? a || /* @__PURE__ */ s("img", { src: r ? p2 : o0, alt: "Close Icon" }) : l || /* @__PURE__ */ s("img", { src: r ? h2 : n0, alt: "Open Icon" }) })
@@ -2776,7 +2776,7 @@ const J = (e) => {
2776
2776
  "div",
2777
2777
  {
2778
2778
  className: f(
2779
- _,
2779
+ M,
2780
2780
  i0.variant,
2781
2781
  i,
2782
2782
  // rounded && useBackground && 'rounded-b-md', 'relative'
@@ -2788,7 +2788,7 @@ const J = (e) => {
2788
2788
  "aria-labelledby": `${U}-header`,
2789
2789
  children: [
2790
2790
  u && o && /* @__PURE__ */ s("hr", { className: B }),
2791
- x
2791
+ h
2792
2792
  ]
2793
2793
  }
2794
2794
  ) })
@@ -2808,13 +2808,13 @@ const J = (e) => {
2808
2808
  classNameChildContent: i,
2809
2809
  hr: m,
2810
2810
  classNameHr: b,
2811
- useBackground: p,
2811
+ useBackground: x,
2812
2812
  ...u
2813
2813
  }, C) => {
2814
- const [x, M] = I(
2814
+ const [h, _] = H(
2815
2815
  null
2816
2816
  ), $ = (y) => {
2817
- x && x(!1), M(() => y);
2817
+ h && h(!1), _(() => y);
2818
2818
  };
2819
2819
  return /* @__PURE__ */ s("div", { ref: C, ...u, className: f(a0, l), children: Ue.map(e, (y, g) => be(y) ? _e(y, {
2820
2820
  // <AccordionProps> to ensure child component sees parent specification in code
@@ -2829,12 +2829,12 @@ const J = (e) => {
2829
2829
  // className for child component
2830
2830
  classNameContent: f(i, y.props.classNameContent),
2831
2831
  singleOpen: o,
2832
- onExpand: (_) => $(_),
2832
+ onExpand: (M) => $(M),
2833
2833
  // Pass expansion handler to child
2834
2834
  // child defaults to true, so if false, use child/false value
2835
2835
  hr: y.props.hr === !1 ? !1 : m,
2836
2836
  classNameHr: f(b, y.props.classNameHr),
2837
- useBackground: y.props.useBackground === !1 ? !1 : p,
2837
+ useBackground: y.props.useBackground === !1 ? !1 : x,
2838
2838
  index: g
2839
2839
  }) : y) });
2840
2840
  }
@@ -2855,66 +2855,66 @@ const J = (e) => {
2855
2855
  width: m = "",
2856
2856
  ...b
2857
2857
  }) => {
2858
- const p = X(null), u = X(null), C = X(null), [x, M] = I(!1), [$, y] = I(!1), [g, _] = I(a || "Options"), [O, H] = I(null), j = X("bottom-[60px]"), [B, k] = I("");
2858
+ const x = X(null), u = X(null), C = X(null), [h, _] = H(!1), [$, y] = H(!1), [g, M] = H(a || "Options"), [A, I] = H(null), E = X("bottom-[60px]"), [B, k] = H("");
2859
2859
  Z(() => {
2860
2860
  if (u.current) {
2861
2861
  const w = u.current.getBoundingClientRect(), v = Math.floor(w.height) + 2;
2862
- j.current = "bottom-[" + v + "px]";
2862
+ E.current = "bottom-[" + v + "px]";
2863
2863
  }
2864
2864
  }, [u.current]);
2865
2865
  const U = () => {
2866
- if (p.current && C.current) {
2867
- const w = p.current.getBoundingClientRect(), v = C.current.offsetHeight, N = window.innerHeight, d = document.body.offsetHeight;
2866
+ if (x.current && C.current) {
2867
+ const w = x.current.getBoundingClientRect(), v = C.current.offsetHeight, N = window.innerHeight, d = document.body.offsetHeight;
2868
2868
  (N > d ? d : N) - w.bottom < v && w.top > v ? y(!0) : y(!1);
2869
2869
  }
2870
2870
  }, D = X([]);
2871
2871
  Z(() => {
2872
2872
  D.current = D.current.slice(0, r.length);
2873
2873
  }, [r]);
2874
- const [h, A] = I(0), F = () => {
2875
- M(!x), A(0);
2874
+ const [p, O] = H(0), F = () => {
2875
+ _(!h), O(0);
2876
2876
  };
2877
2877
  Z(() => {
2878
2878
  k(i ? "border-2 border-[#ff0004] pl-[15px]" : "");
2879
2879
  }, [i]), Z(() => {
2880
2880
  function w(d) {
2881
- x && p.current && !p.current.contains(d.target) && M(!1);
2881
+ h && x.current && !x.current.contains(d.target) && _(!1);
2882
2882
  }
2883
2883
  function v(d) {
2884
- x && d.key === "Escape" && M(!1);
2884
+ h && d.key === "Escape" && _(!1);
2885
2885
  }
2886
2886
  function N(d) {
2887
- x && p.current && !p.current.contains(d.target) && M(!1);
2887
+ h && x.current && !x.current.contains(d.target) && _(!1);
2888
2888
  }
2889
2889
  return document.addEventListener("mousedown", w), document.addEventListener("touchend", w), document.addEventListener("keydown", v), document.addEventListener("focusin", N), () => {
2890
2890
  document.removeEventListener("mousedown", w), document.removeEventListener("touchend", w), document.removeEventListener("keydown", v), document.removeEventListener("focusin", N);
2891
2891
  };
2892
- }, [x]), Z(() => {
2893
- x && U();
2894
- }, [x]), Z(() => {
2892
+ }, [h]), Z(() => {
2893
+ h && U();
2894
+ }, [h]), Z(() => {
2895
2895
  var w;
2896
- x && ((w = D.current[h]) == null || w.focus());
2897
- }, [h, x]);
2896
+ h && ((w = D.current[p]) == null || w.focus());
2897
+ }, [p, h]);
2898
2898
  const z = (w) => {
2899
- if (x)
2899
+ if (h)
2900
2900
  switch (w.key) {
2901
2901
  case "ArrowDown":
2902
- w.preventDefault(), A((v) => {
2902
+ w.preventDefault(), O((v) => {
2903
2903
  const N = (v + 1) % r.length;
2904
- return H(N), N;
2904
+ return I(N), N;
2905
2905
  });
2906
2906
  break;
2907
2907
  case "ArrowUp":
2908
- w.preventDefault(), A((v) => {
2908
+ w.preventDefault(), O((v) => {
2909
2909
  const N = (v - 1 + r.length) % r.length;
2910
- return H(N), N;
2910
+ return I(N), N;
2911
2911
  });
2912
2912
  break;
2913
2913
  case "Home":
2914
- w.preventDefault(), A(0);
2914
+ w.preventDefault(), O(0);
2915
2915
  break;
2916
2916
  case "End":
2917
- w.preventDefault(), A(r.length - 1);
2917
+ w.preventDefault(), O(r.length - 1);
2918
2918
  break;
2919
2919
  }
2920
2920
  };
@@ -2922,7 +2922,7 @@ const J = (e) => {
2922
2922
  "div",
2923
2923
  {
2924
2924
  className: f("relative inline-block text-left w-[292px] md:w-[343px] lg:w-[600px] max-w-full", t),
2925
- ref: p,
2925
+ ref: x,
2926
2926
  ...b,
2927
2927
  "aria-disabled": l,
2928
2928
  children: [
@@ -2937,21 +2937,21 @@ const J = (e) => {
2937
2937
  Ge[o] || Ge.default,
2938
2938
  B,
2939
2939
  e,
2940
- x && $ && "rounded-b-lg" || x && !$ && "rounded-t-lg" || "rounded-lg"
2940
+ h && $ && "rounded-b-lg" || h && !$ && "rounded-t-lg" || "rounded-lg"
2941
2941
  ),
2942
2942
  "aria-label": "Select options - " + g,
2943
2943
  "aria-disabled": l,
2944
- "aria-expanded": x,
2944
+ "aria-expanded": h,
2945
2945
  "aria-haspopup": "listbox",
2946
2946
  disabled: l,
2947
2947
  tabIndex: 0,
2948
2948
  children: [
2949
2949
  g,
2950
- x ? o === "fill" ? /* @__PURE__ */ s("img", { src: d0, alt: "chevron up" }) : /* @__PURE__ */ s("img", { src: p2, alt: "chevron up" }) : o === "fill" ? /* @__PURE__ */ s("img", { src: c0, alt: "chevron down" }) : /* @__PURE__ */ s("img", { src: h2, alt: "chevron down" })
2950
+ h ? o === "fill" ? /* @__PURE__ */ s("img", { src: d0, alt: "chevron up" }) : /* @__PURE__ */ s("img", { src: p2, alt: "chevron up" }) : o === "fill" ? /* @__PURE__ */ s("img", { src: c0, alt: "chevron down" }) : /* @__PURE__ */ s("img", { src: h2, alt: "chevron down" })
2951
2951
  ]
2952
2952
  }
2953
2953
  ),
2954
- x && /* @__PURE__ */ s(
2954
+ h && /* @__PURE__ */ s(
2955
2955
  "div",
2956
2956
  {
2957
2957
  role: "listbox",
@@ -2960,8 +2960,8 @@ const J = (e) => {
2960
2960
  onKeyDown: z,
2961
2961
  className: f(
2962
2962
  "absolute w-full shadow-lg bg-white ring-1 ring-white/5 focus:outline-hidden z-10 ",
2963
- x && $ && "rounded-t-lg pt-1" || x && !$ && "rounded-b-lg pb-1",
2964
- $ && j.current
2963
+ h && $ && "rounded-t-lg pt-1" || h && !$ && "rounded-b-lg pb-1",
2964
+ $ && E.current
2965
2965
  ),
2966
2966
  children: r.map((w, v) => (
2967
2967
  // <li key={item.name}>
@@ -2974,13 +2974,13 @@ const J = (e) => {
2974
2974
  className: `block w-full px-4 py-2 text-left text-base text-gray-700
2975
2975
  hover:bg-[#092068]/20 focus:outline-hidden focus:bg-[#092068]/20`,
2976
2976
  role: "option",
2977
- "aria-selected": O === v,
2977
+ "aria-selected": A === v,
2978
2978
  "aria-label": "option " + w.name,
2979
2979
  onClick: () => {
2980
- H(v), _(w.name), c(w.value || w.name), M(!1);
2980
+ I(v), M(w.name), c(w.value || w.name), _(!1);
2981
2981
  },
2982
2982
  onKeyDown: (N) => {
2983
- N.key === "Enter" || N.code === "Enter" || N.key === " " ? (H(v), _(w.name), c(w.value || w.name), M(!1)) : N.key === "Escape" && M(!1);
2983
+ N.key === "Enter" || N.code === "Enter" || N.key === " " ? (I(v), M(w.name), c(w.value || w.name), _(!1)) : N.key === "Escape" && _(!1);
2984
2984
  },
2985
2985
  children: w.name
2986
2986
  },
@@ -3025,15 +3025,15 @@ const J = (e) => {
3025
3025
  width: m = "",
3026
3026
  ...b
3027
3027
  }) => {
3028
- const p = f0(n, r, a);
3029
- return console.log(n), console.log(p), /* @__PURE__ */ s(
3028
+ const x = f0(n, r, a);
3029
+ return console.log(n), console.log(x), /* @__PURE__ */ s(
3030
3030
  u0,
3031
3031
  {
3032
3032
  className: e,
3033
3033
  classNameContainer: t,
3034
3034
  label: l,
3035
3035
  optionsLabel: o,
3036
- options: p,
3036
+ options: x,
3037
3037
  variant: c,
3038
3038
  width: m,
3039
3039
  setSelectedOption: () => i
@@ -3096,109 +3096,11 @@ const J = (e) => {
3096
3096
  }
3097
3097
  );
3098
3098
  }
3099
- ), v0 = 'inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-hidden font-["Arial"] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[8px] md:py-[12px] lg:py-[16px] h-[40px] md:h-[48px] lg:h-[56px] ', ze = {
3100
- default: {
3101
- normal: "border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-sm md:text-base lg:text-lg hover:text-black hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-bottom-nav-background disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",
3102
- selected: "bg-gray-500 text-white"
3103
- // Only used if 'selected' is true to indicate state when 'selected'
3104
- },
3105
- filled: {
3106
- normal: "rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-sm md:text-base lg:text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",
3107
- selected: ""
3108
- // Only used if 'selected' is true
3109
- },
3110
- outline: {
3111
- normal: "rounded-md border-[#092068] bg-white border-2 text-[#092068] text-sm md:text-base lg:text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] ",
3112
- selected: ""
3113
- // Only used if 'selected' is true
3114
- },
3115
- transparent: {
3116
- normal: "rounded-md text-sm md:text-base lg:text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194]",
3117
- selected: ""
3118
- // Only used if 'selected' is true
3119
- }
3120
- }, b2 = ee(
3121
- ({
3122
- label: e,
3123
- onClick: t,
3124
- className: n,
3125
- icon: r,
3126
- iconPosition: a,
3127
- variant: l = "default",
3128
- type: o = "button",
3129
- children: c,
3130
- selected: i = !1,
3131
- classNameSelected: m,
3132
- classNameGroup: b = "",
3133
- ...p
3134
- }, u) => {
3135
- const [C, x] = I("");
3136
- return Z(() => {
3137
- let M = ze[l].normal || ze.default.normal;
3138
- i && !m ? M = f(M, ze[l].selected) : i && m && (M = f(M, m)), x(f(v0, M));
3139
- }, [i, m, l]), /* @__PURE__ */ L(
3140
- "button",
3141
- {
3142
- type: o,
3143
- onClick: t,
3144
- className: `${a === "iconOnly" ? f(
3145
- C,
3146
- "px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
3147
- b,
3148
- // passed in from ButtonGroup if present
3149
- n
3150
- // dev over-rides
3151
- ) : f(C, b, n)}`,
3152
- ref: u,
3153
- ...p,
3154
- children: [
3155
- a === "left" && r && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6", children: r }),
3156
- a === "iconOnly" && r ? /* @__PURE__ */ s("span", { className: "size-6", children: r }) : /* @__PURE__ */ s("span", { className: "", children: c || e }),
3157
- a === "right" && r && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6", children: r })
3158
- ]
3159
- }
3160
- );
3161
- }
3162
- );
3163
- b2.displayName = "SDK Button";
3164
- const ye = {
3165
- default: {
3166
- container: "flex gap-4 w-full md:gap-8 lg:gap-12",
3167
- button: "w-[150px]"
3168
- },
3169
- column: {
3170
- container: "flex flex-col gap-3 w-full md:gap-4 lg:gap-6",
3171
- button: "w-[150px]"
3172
- },
3173
- custom: {
3174
- container: "",
3175
- button: ""
3176
- }
3177
- }, C0 = ee(
3178
- ({ className: e, children: t, classNameButtons: n, variant: r = "default", ...a }, l) => {
3179
- let o = 0;
3180
- const c = Ue.map(t, (p) => {
3181
- if (be(p)) {
3182
- ++o;
3183
- const u = p, C = u.props.classNameGroup || "";
3184
- return _e(u, {
3185
- classNameGroup: f(C, ye[r].button, n)
3186
- });
3187
- }
3188
- return p;
3189
- }), i = o === 3 && r === "default", m = c == null ? void 0 : c.slice(0, 2), b = c == null ? void 0 : c.slice(2);
3190
- return i ? /* @__PURE__ */ L("div", { className: "inline-flex flex-col gap-1", children: [
3191
- /* @__PURE__ */ s("div", { className: f(ye[r].container, e), children: m }),
3192
- /* @__PURE__ */ s("div", { className: f(ye[r].container, "justify-center", e), children: b })
3193
- ] }) : /* @__PURE__ */ s("div", { className: f("", ye[r].container, e), ref: l, children: c });
3194
- }
3195
- );
3196
- C0.displayName = "SDK ButtonGroup";
3197
- const y0 = "data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e", k0 = "data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e";
3198
- function N0(e) {
3099
+ ), v0 = "data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%201'%20d='M1%201L5%205.5L1%2010'%20stroke='%23747476'%20stroke-width='2'/%3e%3c/svg%3e", C0 = "data:image/svg+xml,%3csvg%20width='12'%20height='15'%20viewBox='0%200%2012%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Exclude'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6%200.5L0%205.75V14.5H4.28571V10.125H7.71429V14.5H12V5.75L6%200.5Z'%20fill='%23747476'/%3e%3c/svg%3e";
3100
+ function y0(e) {
3199
3101
  return e.replace(/-/g, " ").replace(/\b\w/g, (t) => t.toUpperCase());
3200
3102
  }
3201
- const M0 = {
3103
+ const k0 = {
3202
3104
  default: "overflow-x-auto w-full text-base md:text-lg",
3203
3105
  // image top
3204
3106
  bold: "overflow-x-auto font-bold w-full text-base md:text-lg"
@@ -3208,34 +3110,34 @@ const M0 = {
3208
3110
  className: t,
3209
3111
  routes: n,
3210
3112
  variant: r = "default",
3211
- separator: a = y0,
3113
+ separator: a = v0,
3212
3114
  ...l
3213
3115
  }, o) => {
3214
- const c = X(null), i = X(null), [m, b] = I(!1), [p, u] = I(), [C, x] = I(0), { pathname: M } = k2(), $ = Oe(() => n && n.length > 0 ? n : M.split("/").filter(Boolean).map((_, O, H) => ({
3215
- name: N0(decodeURIComponent(_)),
3216
- route: "/" + H.slice(0, O + 1).join("/")
3217
- })), [n, M]);
3116
+ const c = X(null), i = X(null), [m, b] = H(!1), [x, u] = H(), [C, h] = H(0), { pathname: _ } = k2(), $ = Oe(() => n && n.length > 0 ? n : _.split("/").filter(Boolean).map((M, A, I) => ({
3117
+ name: y0(decodeURIComponent(M)),
3118
+ route: "/" + I.slice(0, A + 1).join("/")
3119
+ })), [n, _]);
3218
3120
  Z(() => {
3219
3121
  const g = c.current;
3220
- g && x(g.offsetWidth);
3122
+ g && h(g.offsetWidth);
3221
3123
  }, []);
3222
3124
  const y = () => {
3223
3125
  const g = c.current;
3224
- (g && !p || g && p && Date.now() > p + 200) && (m ? g.clientWidth > C && b(!1) : g.scrollWidth > g.clientWidth && b(!0), u(Date.now()));
3126
+ (g && !x || g && x && Date.now() > x + 200) && (m ? g.clientWidth > C && b(!1) : g.scrollWidth > g.clientWidth && b(!0), u(Date.now()));
3225
3127
  };
3226
3128
  return Z(() => {
3227
3129
  const g = c.current;
3228
3130
  if (!g)
3229
3131
  return;
3230
3132
  y();
3231
- const _ = new ResizeObserver(y);
3232
- return _.observe(g), () => {
3233
- _.disconnect();
3133
+ const M = new ResizeObserver(y);
3134
+ return M.observe(g), () => {
3135
+ M.disconnect();
3234
3136
  };
3235
- }, [p, $]), /* @__PURE__ */ s(
3137
+ }, [x, $]), /* @__PURE__ */ s(
3236
3138
  "nav",
3237
3139
  {
3238
- className: f(M0[r], e),
3140
+ className: f(k0[r], e),
3239
3141
  ...l,
3240
3142
  ref: o,
3241
3143
  "aria-label": "Breadcrumbs",
@@ -3265,7 +3167,7 @@ const M0 = {
3265
3167
  "capitalize me-2 inline-flex md:hidden",
3266
3168
  t
3267
3169
  ),
3268
- children: /* @__PURE__ */ s("img", { src: k0, ref: i, alt: "home icon" })
3170
+ children: /* @__PURE__ */ s("img", { src: C0, ref: i, alt: "home icon" })
3269
3171
  }
3270
3172
  ),
3271
3173
  $.length > 0 ? /* @__PURE__ */ s("span", { className: f("me-2", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) }) : ""
@@ -3274,7 +3176,7 @@ const M0 = {
3274
3176
  "span",
3275
3177
  {
3276
3178
  className: "",
3277
- children: $.map((g, _) => m ? /* @__PURE__ */ s("span", { className: "inline-flex items-center shrink-0 text-nowrap", children: _ === $.length - 1 ? /* @__PURE__ */ L(oe, { children: [
3179
+ children: $.map((g, M) => m ? /* @__PURE__ */ s("span", { className: "inline-flex items-center shrink-0 text-nowrap", children: M === $.length - 1 ? /* @__PURE__ */ L(oe, { children: [
3278
3180
  /* @__PURE__ */ s("span", { className: "text-nowrap me-3", children: "..." }),
3279
3181
  /* @__PURE__ */ s("span", { className: f("me-3", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) }),
3280
3182
  /* @__PURE__ */ s(
@@ -3285,12 +3187,12 @@ const M0 = {
3285
3187
  children: decodeURIComponent(g.name).replace(/-/g, " ")
3286
3188
  }
3287
3189
  )
3288
- ] }) : "" }, _) : /* @__PURE__ */ L(
3190
+ ] }) : "" }, M) : /* @__PURE__ */ L(
3289
3191
  "span",
3290
3192
  {
3291
3193
  className: "breadcrumb-item inline-flex items-center shrink-0",
3292
3194
  children: [
3293
- _ === $.length - 1 ? (
3195
+ M === $.length - 1 ? (
3294
3196
  // Render the current page as plain text (last item in list)
3295
3197
  /* @__PURE__ */ s(
3296
3198
  "span",
@@ -3314,10 +3216,10 @@ const M0 = {
3314
3216
  }
3315
3217
  )
3316
3218
  ),
3317
- _ < $.length - 1 && /* @__PURE__ */ s("span", { className: f("me-3", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) })
3219
+ M < $.length - 1 && /* @__PURE__ */ s("span", { className: f("me-3", t), children: /* @__PURE__ */ s("img", { src: a, alt: "vector" }) })
3318
3220
  ]
3319
3221
  },
3320
- _
3222
+ M
3321
3223
  ))
3322
3224
  }
3323
3225
  )
@@ -3327,7 +3229,112 @@ const M0 = {
3327
3229
  }
3328
3230
  );
3329
3231
  }
3330
- ), _0 = {
3232
+ ), N0 = 'inline-flex items-center justify-center whitespace-nowrap rounded-md ring-offset-background transition-colors focus-visible:outline-hidden font-["Arial"] disabled:pointer-events-none text-sm md:text-base lg:text-lg disabled:opacity-50 px-6 py-[8px] md:py-[12px] lg:py-[16px] h-[40px] md:h-[48px] lg:h-[56px] ', ze = {
3233
+ default: {
3234
+ normal: "border-2 border-gray-300 rounded-md bg-gray-200 hover:bg-slate-400 text-black text-sm md:text-base lg:text-lg hover:text-black hover:border-slate-600 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-bottom-nav-background disabled:border-2 py-0 md:py-0 lg:py-0 h-[48px] mt-1",
3235
+ selected: "bg-gray-500 text-white"
3236
+ // Only used if 'selected' is true to indicate state when 'selected'
3237
+ },
3238
+ filled: {
3239
+ normal: "rounded-md bg-[#092068] hover:bg-[#0c2c8e] text-white text-sm md:text-base lg:text-lg hover:text-white focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] active:bg-[#0F37B3] disabled:bg-[#e4e4e5] disabled:text-[#939194] disabled:border-[#e4e4e5] ",
3240
+ selected: ""
3241
+ // Only used if 'selected' is true
3242
+ },
3243
+ outline: {
3244
+ normal: "rounded-md border-[#092068] bg-white border-2 text-[#092068] text-sm md:text-base lg:text-lg disabled:border-dha-mc-secondary-border disabled:text-[#939194] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(238,131,255,1.00)] ",
3245
+ selected: ""
3246
+ // Only used if 'selected' is true
3247
+ },
3248
+ transparent: {
3249
+ normal: "rounded-md text-sm md:text-base lg:text-lg text-[#092068] hover:bg-[#d1dbfb] active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] disabled:text-[#939194]",
3250
+ selected: ""
3251
+ // Only used if 'selected' is true
3252
+ }
3253
+ }, b2 = ee(
3254
+ ({
3255
+ label: e,
3256
+ onClick: t,
3257
+ className: n,
3258
+ classNameIconLeft: r,
3259
+ classNameIconRight: a,
3260
+ classNameContent: l,
3261
+ icon: o,
3262
+ iconLeft: c,
3263
+ iconRight: i,
3264
+ iconPosition: m,
3265
+ variant: b = "default",
3266
+ type: x = "button",
3267
+ children: u,
3268
+ selected: C = !1,
3269
+ classNameSelected: h,
3270
+ classNameGroup: _ = "",
3271
+ ...$
3272
+ }, y) => {
3273
+ const [g, M] = H("");
3274
+ Z(() => {
3275
+ let E = ze[b].normal || ze.default.normal;
3276
+ C && !h ? E = f(E, ze[b].selected) : C && h && (E = f(E, h)), M(f(N0, E));
3277
+ }, [C, h, b]);
3278
+ const A = c ?? (o && (m === "left" || m === "both") ? o : void 0), I = i ?? (o && (m === "right" || m === "both") ? o : void 0);
3279
+ return /* @__PURE__ */ L(
3280
+ "button",
3281
+ {
3282
+ type: x,
3283
+ onClick: t,
3284
+ className: `${m === "iconOnly" ? f(
3285
+ g,
3286
+ "px-[12px] md:px-[14px] lg:px-[16px] py-[8px] md:py-[12px] lg:py-[16px]",
3287
+ _,
3288
+ // passed in from ButtonGroup if present
3289
+ n
3290
+ // dev over-rides
3291
+ ) : f(g, _, n)}`,
3292
+ ref: y,
3293
+ ...$,
3294
+ children: [
3295
+ A && /* @__PURE__ */ s("span", { className: f("mr-3", r), children: A }),
3296
+ m === "iconOnly" && o ? /* @__PURE__ */ s("span", { className: "size-6", children: o }) : /* @__PURE__ */ s("span", { className: f("grow-1 text-start", l), children: u || e }),
3297
+ I && /* @__PURE__ */ s("span", { className: f("ml-3", a), children: I })
3298
+ ]
3299
+ }
3300
+ );
3301
+ }
3302
+ );
3303
+ b2.displayName = "SDK Button";
3304
+ const ye = {
3305
+ default: {
3306
+ container: "flex gap-4 w-full md:gap-8 lg:gap-12",
3307
+ button: "w-[150px]"
3308
+ },
3309
+ column: {
3310
+ container: "flex flex-col gap-3 w-full md:gap-4 lg:gap-6",
3311
+ button: "w-[150px]"
3312
+ },
3313
+ custom: {
3314
+ container: "",
3315
+ button: ""
3316
+ }
3317
+ }, M0 = ee(
3318
+ ({ className: e, children: t, classNameButtons: n, variant: r = "default", ...a }, l) => {
3319
+ let o = 0;
3320
+ const c = Ue.map(t, (x) => {
3321
+ if (be(x)) {
3322
+ ++o;
3323
+ const u = x, C = u.props.classNameGroup || "";
3324
+ return _e(u, {
3325
+ classNameGroup: f(C, ye[r].button, n)
3326
+ });
3327
+ }
3328
+ return x;
3329
+ }), i = o === 3 && r === "default", m = c == null ? void 0 : c.slice(0, 2), b = c == null ? void 0 : c.slice(2);
3330
+ return i ? /* @__PURE__ */ L("div", { className: "inline-flex flex-col gap-1", children: [
3331
+ /* @__PURE__ */ s("div", { className: f(ye[r].container, e), children: m }),
3332
+ /* @__PURE__ */ s("div", { className: f(ye[r].container, "justify-center", e), children: b })
3333
+ ] }) : /* @__PURE__ */ s("div", { className: f("", ye[r].container, e), ref: l, children: c });
3334
+ }
3335
+ );
3336
+ M0.displayName = "SDK ButtonGroup";
3337
+ const _0 = {
3331
3338
  default: "flex flex-col w-64 max-w-64",
3332
3339
  // image top
3333
3340
  imageBottom: "flex flex-col-reverse w-64 mx-w-64",
@@ -3383,21 +3390,21 @@ const Vt = ({
3383
3390
  altRemainingMessageText: l,
3384
3391
  altOverageMessageText: o
3385
3392
  }) => {
3386
- const [c, i] = I(`${r} characters allowed`), [m, b] = I(!1);
3393
+ const [c, i] = H(`${r} characters allowed`), [m, b] = H(!1);
3387
3394
  return /* @__PURE__ */ L("div", { className: e, children: [
3388
3395
  /* @__PURE__ */ s(
3389
3396
  "div",
3390
3397
  {
3391
3398
  onInput: (u) => {
3392
- const x = u.target.value.length;
3393
- if (b(x > r), x === 0)
3399
+ const h = u.target.value.length;
3400
+ if (b(h > r), h === 0)
3394
3401
  i(`${r} characters allowed`);
3395
- else if (x <= r) {
3396
- const M = " " + (l ?? "remaining");
3397
- i(`${r - x}${M}`);
3402
+ else if (h <= r) {
3403
+ const _ = " " + (l ?? "remaining");
3404
+ i(`${r - h}${_}`);
3398
3405
  } else {
3399
- const M = " " + (o ?? "characters too many");
3400
- i(`${x - r}${M}`);
3406
+ const _ = " " + (o ?? "characters too many");
3407
+ i(`${h - r}${_}`);
3401
3408
  }
3402
3409
  },
3403
3410
  className: "mb-2",
@@ -3477,47 +3484,47 @@ function zt({
3477
3484
  marker: a = !1,
3478
3485
  showBranch: l = !0
3479
3486
  }) {
3480
- const [o, c] = I(), i = Oe(
3487
+ const [o, c] = H(), i = Oe(
3481
3488
  () => r2.Children.toArray(e).filter(
3482
3489
  (u) => be(u) && u.type === x2
3483
3490
  ),
3484
3491
  [e]
3485
3492
  // execute when children changes
3486
- ), [m, b] = I(() => i.map(() => "unchecked"));
3493
+ ), [m, b] = H(() => i.map(() => "unchecked"));
3487
3494
  Z(() => {
3488
3495
  if (!o) return;
3489
- const { index: u, status: C } = o, x = i[u].props.level ?? 0, M = [...m];
3490
- if (M[u] = C, C !== "indeterminate")
3491
- for (let $ = u + 1; $ < M.length && !((i[$].props.level ?? 0) <= x); $++)
3492
- M[$] = C;
3493
- for (let $ = x - 1; $ >= 0; $--)
3496
+ const { index: u, status: C } = o, h = i[u].props.level ?? 0, _ = [...m];
3497
+ if (_[u] = C, C !== "indeterminate")
3498
+ for (let $ = u + 1; $ < _.length && !((i[$].props.level ?? 0) <= h); $++)
3499
+ _[$] = C;
3500
+ for (let $ = h - 1; $ >= 0; $--)
3494
3501
  for (let y = u - 1; y >= 0; y--)
3495
3502
  if (i[y].props.level === $) {
3496
- M[y] = j0(i, M, $, y);
3503
+ _[y] = j0(i, _, $, y);
3497
3504
  break;
3498
3505
  }
3499
- b(M), c(void 0);
3506
+ b(_), c(void 0);
3500
3507
  }, [o]);
3501
- const p = Oe(
3508
+ const x = Oe(
3502
3509
  () => i.map((u, C) => {
3503
- const x = T0(i, C, t), M = ($, y) => {
3510
+ const h = T0(i, C, t), _ = ($, y) => {
3504
3511
  c({ status: $, index: y });
3505
3512
  };
3506
3513
  return _e(u, {
3507
- iconType: x,
3514
+ iconType: h,
3508
3515
  index: C,
3509
3516
  fill: n,
3510
3517
  icon: r,
3511
3518
  marker: a,
3512
3519
  showBranch: l,
3513
3520
  status: m[C],
3514
- setStatusUpdate: M
3521
+ setStatusUpdate: _
3515
3522
  });
3516
3523
  }),
3517
3524
  [i, t, n, r, a, l, m]
3518
3525
  // execute when one of these change
3519
3526
  );
3520
- return /* @__PURE__ */ s("div", { children: p });
3527
+ return /* @__PURE__ */ s("div", { children: x });
3521
3528
  }
3522
3529
  const x2 = r2.forwardRef(
3523
3530
  ({
@@ -3532,28 +3539,28 @@ const x2 = r2.forwardRef(
3532
3539
  iconType: i = [],
3533
3540
  marker: m = !1,
3534
3541
  index: b,
3535
- setStatusUpdate: p,
3542
+ setStatusUpdate: x,
3536
3543
  status: u,
3537
3544
  children: C,
3538
- showBranch: x = !0,
3539
- ...M
3545
+ showBranch: h = !0,
3546
+ ..._
3540
3547
  }, $) => {
3541
- const [y, g] = I("unchecked"), _ = X(null), [O, H] = I(We);
3542
- n2($, () => _.current), Z(() => {
3548
+ const [y, g] = H("unchecked"), M = X(null), [A, I] = H(We);
3549
+ n2($, () => M.current), Z(() => {
3543
3550
  u && g(u);
3544
3551
  }, [u]), Z(() => {
3545
- p && b !== void 0 && p(y, b), _.current && (_.current.indeterminate = y === "indeterminate");
3552
+ x && b !== void 0 && x(y, b), M.current && (M.current.indeterminate = y === "indeterminate");
3546
3553
  }, [y]), Z(() => {
3547
- t && (y === "checked" ? H(l ? m ? O0 : I0 : m ? A0 : V0) : y === "unchecked" ? H(l ? H0 : We) : y === "indeterminate" && H(l ? B0 : z0));
3554
+ t && (y === "checked" ? I(l ? m ? O0 : I0 : m ? A0 : V0) : y === "unchecked" ? I(l ? H0 : We) : y === "indeterminate" && I(l ? B0 : z0));
3548
3555
  }, [l, t, y, m]);
3549
- const j = (B) => {
3556
+ const E = (B) => {
3550
3557
  B.target.checked ? g("checked") : g("unchecked");
3551
3558
  };
3552
3559
  return /* @__PURE__ */ L("div", { className: f("flex items-center", e), children: [
3553
3560
  i.map((B, k) => /* @__PURE__ */ s(
3554
3561
  U0,
3555
3562
  {
3556
- type: x ? B : "blank",
3563
+ type: h ? B : "blank",
3557
3564
  icon: t,
3558
3565
  classNameLine: f("h-full border", c)
3559
3566
  },
@@ -3563,17 +3570,17 @@ const x2 = r2.forwardRef(
3563
3570
  /* @__PURE__ */ s(
3564
3571
  "input",
3565
3572
  {
3566
- ref: _,
3573
+ ref: M,
3567
3574
  type: "checkbox",
3568
3575
  value: a,
3569
3576
  checked: y !== "indeterminate" && y === "checked",
3570
3577
  "aria-label": r,
3571
3578
  className: f("", n, t && "hidden"),
3572
- onChange: j,
3573
- ...M
3579
+ onChange: E,
3580
+ ..._
3574
3581
  }
3575
3582
  ),
3576
- t && /* @__PURE__ */ s("img", { alt: y, src: O, className: "" }),
3583
+ t && /* @__PURE__ */ s("img", { alt: y, src: A, className: "" }),
3577
3584
  C
3578
3585
  ] })
3579
3586
  ] });
@@ -3688,66 +3695,66 @@ function Z0() {
3688
3695
  (function(n, r) {
3689
3696
  e.exports = r();
3690
3697
  })(F0, function() {
3691
- var n = 1e3, r = 6e4, a = 36e5, l = "millisecond", o = "second", c = "minute", i = "hour", m = "day", b = "week", p = "month", u = "quarter", C = "year", x = "date", M = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(z) {
3698
+ var n = 1e3, r = 6e4, a = 36e5, l = "millisecond", o = "second", c = "minute", i = "hour", m = "day", b = "week", x = "month", u = "quarter", C = "year", h = "date", _ = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(z) {
3692
3699
  var w = ["th", "st", "nd", "rd"], v = z % 100;
3693
3700
  return "[" + z + (w[(v - 20) % 10] || w[v] || w[0]) + "]";
3694
- } }, _ = function(z, w, v) {
3701
+ } }, M = function(z, w, v) {
3695
3702
  var N = String(z);
3696
3703
  return !N || N.length >= w ? z : "" + Array(w + 1 - N.length).join(v) + z;
3697
- }, O = { s: _, z: function(z) {
3704
+ }, A = { s: M, z: function(z) {
3698
3705
  var w = -z.utcOffset(), v = Math.abs(w), N = Math.floor(v / 60), d = v % 60;
3699
- return (w <= 0 ? "+" : "-") + _(N, 2, "0") + ":" + _(d, 2, "0");
3706
+ return (w <= 0 ? "+" : "-") + M(N, 2, "0") + ":" + M(d, 2, "0");
3700
3707
  }, m: function z(w, v) {
3701
3708
  if (w.date() < v.date()) return -z(v, w);
3702
- var N = 12 * (v.year() - w.year()) + (v.month() - w.month()), d = w.clone().add(N, p), E = v - d < 0, T = w.clone().add(N + (E ? -1 : 1), p);
3703
- return +(-(N + (v - d) / (E ? d - T : T - d)) || 0);
3709
+ var N = 12 * (v.year() - w.year()) + (v.month() - w.month()), d = w.clone().add(N, x), T = v - d < 0, j = w.clone().add(N + (T ? -1 : 1), x);
3710
+ return +(-(N + (v - d) / (T ? d - j : j - d)) || 0);
3704
3711
  }, a: function(z) {
3705
3712
  return z < 0 ? Math.ceil(z) || 0 : Math.floor(z);
3706
3713
  }, p: function(z) {
3707
- return { M: p, y: C, w: b, d: m, D: x, h: i, m: c, s: o, ms: l, Q: u }[z] || String(z || "").toLowerCase().replace(/s$/, "");
3714
+ return { M: x, y: C, w: b, d: m, D: h, h: i, m: c, s: o, ms: l, Q: u }[z] || String(z || "").toLowerCase().replace(/s$/, "");
3708
3715
  }, u: function(z) {
3709
3716
  return z === void 0;
3710
- } }, H = "en", j = {};
3711
- j[H] = g;
3717
+ } }, I = "en", E = {};
3718
+ E[I] = g;
3712
3719
  var B = "$isDayjsObject", k = function(z) {
3713
- return z instanceof A || !(!z || !z[B]);
3720
+ return z instanceof O || !(!z || !z[B]);
3714
3721
  }, U = function z(w, v, N) {
3715
3722
  var d;
3716
- if (!w) return H;
3723
+ if (!w) return I;
3717
3724
  if (typeof w == "string") {
3718
- var E = w.toLowerCase();
3719
- j[E] && (d = E), v && (j[E] = v, d = E);
3720
- var T = w.split("-");
3721
- if (!d && T.length > 1) return z(T[0]);
3725
+ var T = w.toLowerCase();
3726
+ E[T] && (d = T), v && (E[T] = v, d = T);
3727
+ var j = w.split("-");
3728
+ if (!d && j.length > 1) return z(j[0]);
3722
3729
  } else {
3723
3730
  var G = w.name;
3724
- j[G] = w, d = G;
3731
+ E[G] = w, d = G;
3725
3732
  }
3726
- return !N && d && (H = d), d || !N && H;
3733
+ return !N && d && (I = d), d || !N && I;
3727
3734
  }, D = function(z, w) {
3728
3735
  if (k(z)) return z.clone();
3729
3736
  var v = typeof w == "object" ? w : {};
3730
- return v.date = z, v.args = arguments, new A(v);
3731
- }, h = O;
3732
- h.l = U, h.i = k, h.w = function(z, w) {
3737
+ return v.date = z, v.args = arguments, new O(v);
3738
+ }, p = A;
3739
+ p.l = U, p.i = k, p.w = function(z, w) {
3733
3740
  return D(z, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
3734
3741
  };
3735
- var A = function() {
3742
+ var O = function() {
3736
3743
  function z(v) {
3737
3744
  this.$L = U(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[B] = !0;
3738
3745
  }
3739
3746
  var w = z.prototype;
3740
3747
  return w.parse = function(v) {
3741
3748
  this.$d = function(N) {
3742
- var d = N.date, E = N.utc;
3749
+ var d = N.date, T = N.utc;
3743
3750
  if (d === null) return /* @__PURE__ */ new Date(NaN);
3744
- if (h.u(d)) return /* @__PURE__ */ new Date();
3751
+ if (p.u(d)) return /* @__PURE__ */ new Date();
3745
3752
  if (d instanceof Date) return new Date(d);
3746
3753
  if (typeof d == "string" && !/Z$/i.test(d)) {
3747
- var T = d.match($);
3748
- if (T) {
3749
- var G = T[2] - 1 || 0, K = (T[7] || "0").substring(0, 3);
3750
- return E ? new Date(Date.UTC(T[1], G, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, K)) : new Date(T[1], G, T[3] || 1, T[4] || 0, T[5] || 0, T[6] || 0, K);
3754
+ var j = d.match($);
3755
+ if (j) {
3756
+ var G = j[2] - 1 || 0, K = (j[7] || "0").substring(0, 3);
3757
+ return T ? new Date(Date.UTC(j[1], G, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, K)) : new Date(j[1], G, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, K);
3751
3758
  }
3752
3759
  }
3753
3760
  return new Date(d);
@@ -3756,9 +3763,9 @@ function Z0() {
3756
3763
  var v = this.$d;
3757
3764
  this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
3758
3765
  }, w.$utils = function() {
3759
- return h;
3766
+ return p;
3760
3767
  }, w.isValid = function() {
3761
- return this.$d.toString() !== M;
3768
+ return this.$d.toString() !== _;
3762
3769
  }, w.isSame = function(v, N) {
3763
3770
  var d = D(v);
3764
3771
  return this.startOf(N) <= d && d <= this.endOf(N);
@@ -3767,28 +3774,28 @@ function Z0() {
3767
3774
  }, w.isBefore = function(v, N) {
3768
3775
  return this.endOf(N) < D(v);
3769
3776
  }, w.$g = function(v, N, d) {
3770
- return h.u(v) ? this[N] : this.set(d, v);
3777
+ return p.u(v) ? this[N] : this.set(d, v);
3771
3778
  }, w.unix = function() {
3772
3779
  return Math.floor(this.valueOf() / 1e3);
3773
3780
  }, w.valueOf = function() {
3774
3781
  return this.$d.getTime();
3775
3782
  }, w.startOf = function(v, N) {
3776
- var d = this, E = !!h.u(N) || N, T = h.p(v), G = function(te, q) {
3777
- var se = h.w(d.$u ? Date.UTC(d.$y, q, te) : new Date(d.$y, q, te), d);
3778
- return E ? se : se.endOf(m);
3783
+ var d = this, T = !!p.u(N) || N, j = p.p(v), G = function(te, q) {
3784
+ var se = p.w(d.$u ? Date.UTC(d.$y, q, te) : new Date(d.$y, q, te), d);
3785
+ return T ? se : se.endOf(m);
3779
3786
  }, K = function(te, q) {
3780
- return h.w(d.toDate()[te].apply(d.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), d);
3787
+ return p.w(d.toDate()[te].apply(d.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), d);
3781
3788
  }, Y = this.$W, P = this.$M, Q = this.$D, ae = "set" + (this.$u ? "UTC" : "");
3782
- switch (T) {
3789
+ switch (j) {
3783
3790
  case C:
3784
- return E ? G(1, 0) : G(31, 11);
3785
- case p:
3786
- return E ? G(1, P) : G(0, P + 1);
3791
+ return T ? G(1, 0) : G(31, 11);
3792
+ case x:
3793
+ return T ? G(1, P) : G(0, P + 1);
3787
3794
  case b:
3788
3795
  var W = this.$locale().weekStart || 0, ie = (Y < W ? Y + 7 : Y) - W;
3789
- return G(E ? Q - ie : Q + (6 - ie), P);
3796
+ return G(T ? Q - ie : Q + (6 - ie), P);
3790
3797
  case m:
3791
- case x:
3798
+ case h:
3792
3799
  return K(ae + "Hours", 0);
3793
3800
  case i:
3794
3801
  return K(ae + "Minutes", 1);
@@ -3802,53 +3809,53 @@ function Z0() {
3802
3809
  }, w.endOf = function(v) {
3803
3810
  return this.startOf(v, !1);
3804
3811
  }, w.$set = function(v, N) {
3805
- var d, E = h.p(v), T = "set" + (this.$u ? "UTC" : ""), G = (d = {}, d[m] = T + "Date", d[x] = T + "Date", d[p] = T + "Month", d[C] = T + "FullYear", d[i] = T + "Hours", d[c] = T + "Minutes", d[o] = T + "Seconds", d[l] = T + "Milliseconds", d)[E], K = E === m ? this.$D + (N - this.$W) : N;
3806
- if (E === p || E === C) {
3807
- var Y = this.clone().set(x, 1);
3808
- Y.$d[G](K), Y.init(), this.$d = Y.set(x, Math.min(this.$D, Y.daysInMonth())).$d;
3812
+ var d, T = p.p(v), j = "set" + (this.$u ? "UTC" : ""), G = (d = {}, d[m] = j + "Date", d[h] = j + "Date", d[x] = j + "Month", d[C] = j + "FullYear", d[i] = j + "Hours", d[c] = j + "Minutes", d[o] = j + "Seconds", d[l] = j + "Milliseconds", d)[T], K = T === m ? this.$D + (N - this.$W) : N;
3813
+ if (T === x || T === C) {
3814
+ var Y = this.clone().set(h, 1);
3815
+ Y.$d[G](K), Y.init(), this.$d = Y.set(h, Math.min(this.$D, Y.daysInMonth())).$d;
3809
3816
  } else G && this.$d[G](K);
3810
3817
  return this.init(), this;
3811
3818
  }, w.set = function(v, N) {
3812
3819
  return this.clone().$set(v, N);
3813
3820
  }, w.get = function(v) {
3814
- return this[h.p(v)]();
3821
+ return this[p.p(v)]();
3815
3822
  }, w.add = function(v, N) {
3816
- var d, E = this;
3823
+ var d, T = this;
3817
3824
  v = Number(v);
3818
- var T = h.p(N), G = function(P) {
3819
- var Q = D(E);
3820
- return h.w(Q.date(Q.date() + Math.round(P * v)), E);
3825
+ var j = p.p(N), G = function(P) {
3826
+ var Q = D(T);
3827
+ return p.w(Q.date(Q.date() + Math.round(P * v)), T);
3821
3828
  };
3822
- if (T === p) return this.set(p, this.$M + v);
3823
- if (T === C) return this.set(C, this.$y + v);
3824
- if (T === m) return G(1);
3825
- if (T === b) return G(7);
3826
- var K = (d = {}, d[c] = r, d[i] = a, d[o] = n, d)[T] || 1, Y = this.$d.getTime() + v * K;
3827
- return h.w(Y, this);
3829
+ if (j === x) return this.set(x, this.$M + v);
3830
+ if (j === C) return this.set(C, this.$y + v);
3831
+ if (j === m) return G(1);
3832
+ if (j === b) return G(7);
3833
+ var K = (d = {}, d[c] = r, d[i] = a, d[o] = n, d)[j] || 1, Y = this.$d.getTime() + v * K;
3834
+ return p.w(Y, this);
3828
3835
  }, w.subtract = function(v, N) {
3829
3836
  return this.add(-1 * v, N);
3830
3837
  }, w.format = function(v) {
3831
3838
  var N = this, d = this.$locale();
3832
- if (!this.isValid()) return d.invalidDate || M;
3833
- var E = v || "YYYY-MM-DDTHH:mm:ssZ", T = h.z(this), G = this.$H, K = this.$m, Y = this.$M, P = d.weekdays, Q = d.months, ae = d.meridiem, W = function(q, se, re, xe) {
3834
- return q && (q[se] || q(N, E)) || re[se].slice(0, xe);
3839
+ if (!this.isValid()) return d.invalidDate || _;
3840
+ var T = v || "YYYY-MM-DDTHH:mm:ssZ", j = p.z(this), G = this.$H, K = this.$m, Y = this.$M, P = d.weekdays, Q = d.months, ae = d.meridiem, W = function(q, se, re, xe) {
3841
+ return q && (q[se] || q(N, T)) || re[se].slice(0, xe);
3835
3842
  }, ie = function(q) {
3836
- return h.s(G % 12 || 12, q, "0");
3843
+ return p.s(G % 12 || 12, q, "0");
3837
3844
  }, te = ae || function(q, se, re) {
3838
3845
  var xe = q < 12 ? "AM" : "PM";
3839
3846
  return re ? xe.toLowerCase() : xe;
3840
3847
  };
3841
- return E.replace(y, function(q, se) {
3848
+ return T.replace(y, function(q, se) {
3842
3849
  return se || function(re) {
3843
3850
  switch (re) {
3844
3851
  case "YY":
3845
3852
  return String(N.$y).slice(-2);
3846
3853
  case "YYYY":
3847
- return h.s(N.$y, 4, "0");
3854
+ return p.s(N.$y, 4, "0");
3848
3855
  case "M":
3849
3856
  return Y + 1;
3850
3857
  case "MM":
3851
- return h.s(Y + 1, 2, "0");
3858
+ return p.s(Y + 1, 2, "0");
3852
3859
  case "MMM":
3853
3860
  return W(d.monthsShort, Y, Q, 3);
3854
3861
  case "MMMM":
@@ -3856,7 +3863,7 @@ function Z0() {
3856
3863
  case "D":
3857
3864
  return N.$D;
3858
3865
  case "DD":
3859
- return h.s(N.$D, 2, "0");
3866
+ return p.s(N.$D, 2, "0");
3860
3867
  case "d":
3861
3868
  return String(N.$W);
3862
3869
  case "dd":
@@ -3868,7 +3875,7 @@ function Z0() {
3868
3875
  case "H":
3869
3876
  return String(G);
3870
3877
  case "HH":
3871
- return h.s(G, 2, "0");
3878
+ return p.s(G, 2, "0");
3872
3879
  case "h":
3873
3880
  return ie(1);
3874
3881
  case "hh":
@@ -3880,64 +3887,64 @@ function Z0() {
3880
3887
  case "m":
3881
3888
  return String(K);
3882
3889
  case "mm":
3883
- return h.s(K, 2, "0");
3890
+ return p.s(K, 2, "0");
3884
3891
  case "s":
3885
3892
  return String(N.$s);
3886
3893
  case "ss":
3887
- return h.s(N.$s, 2, "0");
3894
+ return p.s(N.$s, 2, "0");
3888
3895
  case "SSS":
3889
- return h.s(N.$ms, 3, "0");
3896
+ return p.s(N.$ms, 3, "0");
3890
3897
  case "Z":
3891
- return T;
3898
+ return j;
3892
3899
  }
3893
3900
  return null;
3894
- }(q) || T.replace(":", "");
3901
+ }(q) || j.replace(":", "");
3895
3902
  });
3896
3903
  }, w.utcOffset = function() {
3897
3904
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3898
3905
  }, w.diff = function(v, N, d) {
3899
- var E, T = this, G = h.p(N), K = D(v), Y = (K.utcOffset() - this.utcOffset()) * r, P = this - K, Q = function() {
3900
- return h.m(T, K);
3906
+ var T, j = this, G = p.p(N), K = D(v), Y = (K.utcOffset() - this.utcOffset()) * r, P = this - K, Q = function() {
3907
+ return p.m(j, K);
3901
3908
  };
3902
3909
  switch (G) {
3903
3910
  case C:
3904
- E = Q() / 12;
3911
+ T = Q() / 12;
3905
3912
  break;
3906
- case p:
3907
- E = Q();
3913
+ case x:
3914
+ T = Q();
3908
3915
  break;
3909
3916
  case u:
3910
- E = Q() / 3;
3917
+ T = Q() / 3;
3911
3918
  break;
3912
3919
  case b:
3913
- E = (P - Y) / 6048e5;
3920
+ T = (P - Y) / 6048e5;
3914
3921
  break;
3915
3922
  case m:
3916
- E = (P - Y) / 864e5;
3923
+ T = (P - Y) / 864e5;
3917
3924
  break;
3918
3925
  case i:
3919
- E = P / a;
3926
+ T = P / a;
3920
3927
  break;
3921
3928
  case c:
3922
- E = P / r;
3929
+ T = P / r;
3923
3930
  break;
3924
3931
  case o:
3925
- E = P / n;
3932
+ T = P / n;
3926
3933
  break;
3927
3934
  default:
3928
- E = P;
3935
+ T = P;
3929
3936
  }
3930
- return d ? E : h.a(E);
3937
+ return d ? T : p.a(T);
3931
3938
  }, w.daysInMonth = function() {
3932
- return this.endOf(p).$D;
3939
+ return this.endOf(x).$D;
3933
3940
  }, w.$locale = function() {
3934
- return j[this.$L];
3941
+ return E[this.$L];
3935
3942
  }, w.locale = function(v, N) {
3936
3943
  if (!v) return this.$L;
3937
- var d = this.clone(), E = U(v, N, !0);
3938
- return E && (d.$L = E), d;
3944
+ var d = this.clone(), T = U(v, N, !0);
3945
+ return T && (d.$L = T), d;
3939
3946
  }, w.clone = function() {
3940
- return h.w(this.$d, this);
3947
+ return p.w(this.$d, this);
3941
3948
  }, w.toDate = function() {
3942
3949
  return new Date(this.valueOf());
3943
3950
  }, w.toJSON = function() {
@@ -3947,62 +3954,62 @@ function Z0() {
3947
3954
  }, w.toString = function() {
3948
3955
  return this.$d.toUTCString();
3949
3956
  }, z;
3950
- }(), F = A.prototype;
3951
- return D.prototype = F, [["$ms", l], ["$s", o], ["$m", c], ["$H", i], ["$W", m], ["$M", p], ["$y", C], ["$D", x]].forEach(function(z) {
3957
+ }(), F = O.prototype;
3958
+ return D.prototype = F, [["$ms", l], ["$s", o], ["$m", c], ["$H", i], ["$W", m], ["$M", x], ["$y", C], ["$D", h]].forEach(function(z) {
3952
3959
  F[z[1]] = function(w) {
3953
3960
  return this.$g(w, z[0], z[1]);
3954
3961
  };
3955
3962
  }), D.extend = function(z, w) {
3956
- return z.$i || (z(w, A, D), z.$i = !0), D;
3963
+ return z.$i || (z(w, O, D), z.$i = !0), D;
3957
3964
  }, D.locale = U, D.isDayjs = k, D.unix = function(z) {
3958
3965
  return D(1e3 * z);
3959
- }, D.en = j[H], D.Ls = j, D.p = {}, D;
3966
+ }, D.en = E[I], D.Ls = E, D.p = {}, D;
3960
3967
  });
3961
3968
  }(Ne)), Ne.exports;
3962
3969
  }
3963
3970
  var Y0 = Z0();
3964
- const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%200%2024%2024'%20width='24px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e", It = ({
3971
+ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='54px'%20viewBox='0%200%2024%2024'%20width='54px'%20fill='%23000000'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M9%2011H7v2h2v-2zm4%200h-2v2h2v-2zm4%200h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11%200-1.99.9-1.99%202L3%2020c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6c0-1.1-.9-2-2-2zm0%2016H5V9h14v11z'/%3e%3c/svg%3e", It = ({
3965
3972
  id: e,
3966
3973
  label: t,
3967
3974
  value: n,
3968
3975
  onChange: r
3969
3976
  }) => {
3970
- const [a, l] = I(!1), [o, c] = I(n), [i, m] = I(!0), [b, p] = I(!!n), [u, C] = I(
3977
+ const [a, l] = H(!1), [o, c] = H(n), [i, m] = H(!0), [b, x] = H(!!n), [u, C] = H(
3971
3978
  pe(n, "MM-DD-YYYY", !0).isValid() ? pe(n, "MM-DD-YYYY", !0) : null
3972
- ), x = X(null), M = X(null), $ = X(null), y = (u == null ? void 0 : u.daysInMonth()) || 30, g = (u == null ? void 0 : u.startOf("month").day()) || 0;
3979
+ ), h = X(null), _ = X(null), $ = X(null), y = (u == null ? void 0 : u.daysInMonth()) || 30, g = (u == null ? void 0 : u.startOf("month").day()) || 0;
3973
3980
  Z(() => {
3974
- o || (n = pe().format("MM-DD-YYYY"), p(!1)), c(n);
3981
+ o || (n = pe().format("MM-DD-YYYY"), x(!1)), c(n);
3975
3982
  const D = pe(n, "MM-DD-YYYY", !0);
3976
3983
  C(D.isValid() ? D : null), m(D.isValid() && n !== "");
3977
3984
  }, [n]), Z(() => {
3978
- function D(h) {
3979
- x.current && (x.current.contains(h.target) || l(!1));
3985
+ function D(p) {
3986
+ h.current && (h.current.contains(p.target) || l(!1));
3980
3987
  }
3981
3988
  if (a && $.current) {
3982
- const h = $.current.querySelector(
3989
+ const p = $.current.querySelector(
3983
3990
  '[role="button"]:not([disabled])'
3984
3991
  );
3985
- h == null || h.focus(), document.addEventListener("mousedown", D);
3992
+ p == null || p.focus(), document.addEventListener("mousedown", D);
3986
3993
  }
3987
3994
  return () => {
3988
3995
  document.removeEventListener("mousedown", D);
3989
3996
  };
3990
3997
  }, [a]);
3991
- const _ = (D) => {
3992
- var A;
3993
- const h = D.format("MM-DD-YYYY");
3994
- p(!0), C(D), c(h), m(!0), r(h), l(!1), (A = M.current) == null || A.focus();
3995
- }, O = (D, h) => {
3996
- D.key === "Enter" && _(h);
3997
- }, H = (D) => {
3998
- const h = D.target.value;
3999
- if (c(h), p(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(h)) {
4000
- m(!1), r(h);
3998
+ const M = (D) => {
3999
+ var O;
4000
+ const p = D.format("MM-DD-YYYY");
4001
+ x(!0), C(D), c(p), m(!0), r(p), l(!1), (O = _.current) == null || O.focus();
4002
+ }, A = (D, p) => {
4003
+ D.key === "Enter" && M(p);
4004
+ }, I = (D) => {
4005
+ const p = D.target.value;
4006
+ if (c(p), x(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(p)) {
4007
+ m(!1), r(p);
4001
4008
  return;
4002
4009
  }
4003
- const F = pe(h, "MM-DD-YYYY", !0);
4004
- F.isValid() ? (console.log("MAYBEDATE IS VALID"), C(F), m(!0), r(h)) : (console.log("MAYBEDATE IS --NOT-- VALID"), m(!1), r(h));
4005
- }, j = () => {
4010
+ const F = pe(p, "MM-DD-YYYY", !0);
4011
+ F.isValid() ? (console.log("MAYBEDATE IS VALID"), C(F), m(!0), r(p)) : (console.log("MAYBEDATE IS --NOT-- VALID"), m(!1), r(p));
4012
+ }, E = () => {
4006
4013
  l((D) => !D);
4007
4014
  }, B = () => {
4008
4015
  u && C(u.subtract(1, "month"));
@@ -4011,28 +4018,28 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
4011
4018
  }, U = () => {
4012
4019
  if (!u) return null;
4013
4020
  const D = [];
4014
- for (let h = 0; h < g; h++)
4015
- D.push(/* @__PURE__ */ s("div", { className: "w-8 h-8" }, `empty-${h}`));
4016
- for (let h = 1; h <= y; h++) {
4017
- const A = u.date(h);
4021
+ for (let p = 0; p < g; p++)
4022
+ D.push(/* @__PURE__ */ s("div", { className: "w-8 h-8" }, `empty-${p}`));
4023
+ for (let p = 1; p <= y; p++) {
4024
+ const O = u.date(p);
4018
4025
  D.push(
4019
4026
  /* @__PURE__ */ s(
4020
4027
  "button",
4021
4028
  {
4022
4029
  tabIndex: 0,
4023
- onClick: () => _(A),
4024
- onKeyDown: (F) => O(F, A),
4025
- className: `w-8 h-8 ${A.isSame(u, "date") ? "bg-blue-600 text-white" : ""} hover:bg-blue-100 focus:ring`,
4026
- "aria-label": A.format("MMMM D, YYYY"),
4027
- children: h
4030
+ onClick: () => M(O),
4031
+ onKeyDown: (F) => A(F, O),
4032
+ className: `w-8 h-8 ${O.isSame(u, "date") ? "bg-blue-600 text-white" : ""} hover:bg-blue-100 focus:ring`,
4033
+ "aria-label": O.format("MMMM D, YYYY"),
4034
+ children: p
4028
4035
  },
4029
- h
4036
+ p
4030
4037
  )
4031
4038
  );
4032
4039
  }
4033
4040
  return D;
4034
4041
  };
4035
- return /* @__PURE__ */ L("div", { className: "relative", ref: x, children: [
4042
+ return /* @__PURE__ */ L("div", { className: "relative", ref: h, children: [
4036
4043
  /* @__PURE__ */ s("label", { htmlFor: e, id: "date-picker-input", className: "block text-sm font-medium text-gray-700", children: t }),
4037
4044
  /* @__PURE__ */ L("div", { className: "flex items-center mt-1", children: [
4038
4045
  /* @__PURE__ */ s(
@@ -4041,9 +4048,9 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
4041
4048
  id: e,
4042
4049
  type: "text",
4043
4050
  "aria-labelledby": "date-picker-input",
4044
- ref: M,
4051
+ ref: _,
4045
4052
  value: b ? o : "",
4046
- onChange: H,
4053
+ onChange: I,
4047
4054
  placeholder: "MM-DD-YYYY",
4048
4055
  className: `block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
4049
4056
  focus:border-blue-500 pl-1 focus:outline-hidden`
@@ -4053,7 +4060,7 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
4053
4060
  "button",
4054
4061
  {
4055
4062
  type: "button",
4056
- onClick: j,
4063
+ onClick: E,
4057
4064
  className: `px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
4058
4065
  focus:outline-hidden focus:border-blue-500`,
4059
4066
  "aria-label": "Open calendar",
@@ -4141,28 +4148,28 @@ const pe = /* @__PURE__ */ R0(Y0), P0 = "data:image/svg+xml,%3csvg%20xmlns='http
4141
4148
  };
4142
4149
  var G0 = /* @__PURE__ */ ((e) => (e.Right = "right", e.Left = "left", e.IconOnly = "iconOnly", e.None = "undefined", e))(G0 || {});
4143
4150
  const Ht = ({ variant: e = "default", tabs: t, className: n, classNameContainer: r, customActiveClass: a, customInactiveClass: l }) => {
4144
- const [o, c] = I(0), [i, m] = I(!1), [b, p] = I(""), u = X([]);
4151
+ const [o, c] = H(0), [i, m] = H(!1), [b, x] = H(""), u = X([]);
4145
4152
  e === "" && (e = "default");
4146
4153
  const C = Me((g) => {
4147
- var _;
4148
- (_ = u.current[g]) == null || _.focus();
4149
- }, []), x = (g, _) => {
4150
- _ && _(), c(g);
4151
- }, M = (g) => (_) => {
4152
- u.current[g] = _;
4154
+ var M;
4155
+ (M = u.current[g]) == null || M.focus();
4156
+ }, []), h = (g, M) => {
4157
+ M && M(), c(g);
4158
+ }, _ = (g) => (M) => {
4159
+ u.current[g] = M;
4153
4160
  }, $ = Me(
4154
- (g, _) => {
4161
+ (g, M) => {
4155
4162
  if (g.key === "ArrowRight") {
4156
- const O = (_ + 1) % t.length;
4157
- c(O), C(O);
4163
+ const A = (M + 1) % t.length;
4164
+ c(A), C(A);
4158
4165
  } else if (g.key === "ArrowLeft") {
4159
- const O = (_ - 1 + t.length) % t.length;
4160
- c(O), C(O);
4166
+ const A = (M - 1 + t.length) % t.length;
4167
+ c(A), C(A);
4161
4168
  } else g.key === "Home" ? (c(0), C(0)) : g.key === "End" && (c(t.length - 1), C(t.length - 1));
4162
4169
  },
4163
4170
  [t.length, C]
4164
4171
  ), y = (g) => {
4165
- m(!0), p(g);
4172
+ m(!0), x(g);
4166
4173
  };
4167
4174
  return /* @__PURE__ */ L("div", { className: f("w-full", r), children: [
4168
4175
  /* @__PURE__ */ s(
@@ -4171,37 +4178,37 @@ const Ht = ({ variant: e = "default", tabs: t, className: n, classNameContainer:
4171
4178
  role: "tablist",
4172
4179
  "aria-label": "Tabs",
4173
4180
  className: f(Ie[e].container, n),
4174
- children: t.map((g, _) => /* @__PURE__ */ L(
4181
+ children: t.map((g, M) => /* @__PURE__ */ L(
4175
4182
  "button",
4176
4183
  {
4177
4184
  role: "tab",
4178
4185
  id: `tab-${g.id}`,
4179
4186
  onMouseEnter: () => y(g.id),
4180
4187
  onMouseLeave: () => m(!1),
4181
- "aria-selected": o === _,
4188
+ "aria-selected": o === M,
4182
4189
  "aria-controls": `panel-${g.id}`,
4183
- tabIndex: o === _ ? 0 : -1,
4184
- ref: M(_),
4185
- className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${_ === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : _ === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${o === _ ? f(Ie[e].active, a) : f(Ie[e].inactive, l)}`,
4186
- onClick: () => x(_, g.onClick),
4187
- onKeyDown: (O) => $(O, _),
4190
+ tabIndex: o === M ? 0 : -1,
4191
+ ref: _(M),
4192
+ className: `flex px-6 py-3 md:py-[14px] lg:py-4 focus:outline-hidden ${e === "outline" ? `border-[#092068] ${M === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : M === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${o === M ? f(Ie[e].active, a) : f(Ie[e].inactive, l)}`,
4193
+ onClick: () => h(M, g.onClick),
4194
+ onKeyDown: (A) => $(A, M),
4188
4195
  children: [
4189
- g.iconPosition === "left" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: o === _ ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }),
4190
- g.iconPosition === "iconOnly" && g.activeIcon ? /* @__PURE__ */ s("span", { className: "size-6 lg:mt-0.5", children: o === _ ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }) : /* @__PURE__ */ s("span", { className: "text-sm md:text-base lg:text-lg mt-0.5 md:mt-0", children: g.label }),
4191
- g.iconPosition === "right" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: o === _ ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon })
4196
+ g.iconPosition === "left" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-left mr-3 size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }),
4197
+ g.iconPosition === "iconOnly" && g.activeIcon ? /* @__PURE__ */ s("span", { className: "size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon }) : /* @__PURE__ */ s("span", { className: "text-sm md:text-base lg:text-lg mt-0.5 md:mt-0", children: g.label }),
4198
+ g.iconPosition === "right" && g.activeIcon && /* @__PURE__ */ s("span", { className: "icon-right ml-3 size-6 lg:mt-0.5", children: o === M ? i && b === g.id ? g.inactiveIcon : g.activeIcon : g.inactiveIcon })
4192
4199
  ]
4193
4200
  },
4194
4201
  g.id
4195
4202
  ))
4196
4203
  }
4197
4204
  ),
4198
- t.map((g, _) => /* @__PURE__ */ s(
4205
+ t.map((g, M) => /* @__PURE__ */ s(
4199
4206
  "div",
4200
4207
  {
4201
4208
  role: "tabpanel",
4202
4209
  id: `panel-${g.id}`,
4203
4210
  "aria-labelledby": `tab-${g.id}`,
4204
- hidden: o !== _,
4211
+ hidden: o !== M,
4205
4212
  className: "p-4",
4206
4213
  children: g.content
4207
4214
  },
@@ -4258,40 +4265,40 @@ const e2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
4258
4265
  textShadow: i = !1,
4259
4266
  mask: m,
4260
4267
  disabled: b,
4261
- ...p
4268
+ ...x
4262
4269
  }, u) => {
4263
- const [C, x] = I(), [M, $] = I(e2), [y, g] = I(""), [_, O] = I(!1), H = X(null), [j, B] = I(""), k = "border-[#D54309] border", U = (h) => {
4264
- const A = h.target.value;
4265
- B(m ? D(A) : A);
4270
+ const [C, h] = H(), [_, $] = H(e2), [y, g] = H(""), [M, A] = H(!1), I = X(null), [E, B] = H(""), k = "border-[#D54309] border", U = (p) => {
4271
+ const O = p.target.value;
4272
+ B(m ? D(O) : O);
4266
4273
  };
4267
- function D(h) {
4268
- let A = "", F = 0;
4274
+ function D(p) {
4275
+ let O = "", F = 0;
4269
4276
  if (m)
4270
- for (; h.length > 0 && F < m.length; )
4271
- m[F] !== "#" && m[F] !== "@" ? m[F] === h[0] ? (A += h[0], h = h.slice(1), F++) : ((Xe(h[0]) && Qe(m, F) === "@" || Je(h[0]) && Qe(m, F) === "#") && (A += m[F]), F++) : m[F] === "#" && Je(h[0]) || m[F] === "@" && Xe(h[0]) ? (A += h[0], h = h.slice(1), F++) : h = h.slice(1);
4272
- return A;
4277
+ for (; p.length > 0 && F < m.length; )
4278
+ m[F] !== "#" && m[F] !== "@" ? m[F] === p[0] ? (O += p[0], p = p.slice(1), F++) : ((Xe(p[0]) && Qe(m, F) === "@" || Je(p[0]) && Qe(m, F) === "#") && (O += m[F]), F++) : m[F] === "#" && Je(p[0]) || m[F] === "@" && Xe(p[0]) ? (O += p[0], p = p.slice(1), F++) : p = p.slice(1);
4279
+ return O;
4273
4280
  }
4274
4281
  if (Z(() => {
4275
- var h, A, F;
4282
+ var p, O, F;
4276
4283
  t && ($(f(
4277
4284
  e2,
4278
- (h = He.find((z) => z.variant === t)) == null ? void 0 : h.classes,
4285
+ (p = He.find((z) => z.variant === t)) == null ? void 0 : p.classes,
4279
4286
  c && k,
4280
4287
  e
4281
- )), g(f(r ? (A = He.find((z) => z.variant === t)) == null ? void 0 : A.insetLabelClasses : (F = He.find((z) => z.variant === t)) == null ? void 0 : F.labelClasses, a)));
4282
- }, [e, a, t, _, r, c]), Z(() => {
4288
+ )), g(f(r ? (O = He.find((z) => z.variant === t)) == null ? void 0 : O.insetLabelClasses : (F = He.find((z) => z.variant === t)) == null ? void 0 : F.labelClasses, a)));
4289
+ }, [e, a, t, M, r, c]), Z(() => {
4283
4290
  if (r) {
4284
- const h = H.current;
4285
- if (!h) return;
4286
- const A = (F) => {
4287
- const z = getComputedStyle(h);
4288
- x(z.backgroundColor), O(F);
4291
+ const p = I.current;
4292
+ if (!p) return;
4293
+ const O = (F) => {
4294
+ const z = getComputedStyle(p);
4295
+ h(z.backgroundColor), A(F);
4289
4296
  };
4290
- return A(!0), h.addEventListener("mouseover", () => A(!0)), h.addEventListener("mouseout", () => A(!1)), () => {
4291
- h.removeEventListener("mouseover", () => A), h.removeEventListener("mouseout", () => A);
4297
+ return O(!0), p.addEventListener("mouseover", () => O(!0)), p.addEventListener("mouseout", () => O(!1)), () => {
4298
+ p.removeEventListener("mouseover", () => O), p.removeEventListener("mouseout", () => O);
4292
4299
  };
4293
4300
  }
4294
- }, [o, r, _, b]), !["default", "outline", "nonHover"].includes(t))
4301
+ }, [o, r, M, b]), !["default", "outline", "nonHover"].includes(t))
4295
4302
  throw new Error(
4296
4303
  `Invalid variant: "${t}". Valid variants are: "default", "outline", and "nonHover".`
4297
4304
  );
@@ -4306,22 +4313,22 @@ const e2 = "px-4 py-3 arial rounded-lg border border-[#B3B3B3] mx-2 bg-white hov
4306
4313
  } : { textShadow: i ? `1px 1px 2px ${o}, 0 0 1em ${o}, 0 0 0.2em ${o}` : "" },
4307
4314
  children: [
4308
4315
  n,
4309
- p.required && /* @__PURE__ */ s("span", { className: f("absolute text-red-500 ms-0.5 -mt-1", l), children: "*" })
4316
+ x.required && /* @__PURE__ */ s("span", { className: f("absolute text-red-500 ms-0.5 -mt-1", l), children: "*" })
4310
4317
  ]
4311
4318
  }
4312
4319
  ),
4313
4320
  /* @__PURE__ */ s(
4314
4321
  "input",
4315
4322
  {
4316
- className: M,
4323
+ className: _,
4317
4324
  "aria-label": n,
4318
- value: j,
4325
+ value: E,
4319
4326
  onChange: U,
4320
4327
  disabled: b,
4321
- ref: (h) => {
4322
- typeof u == "function" ? u(h) : u && (u.current = h), H.current = h;
4328
+ ref: (p) => {
4329
+ typeof u == "function" ? u(p) : u && (u.current = p), I.current = p;
4323
4330
  },
4324
- ...p
4331
+ ...x
4325
4332
  }
4326
4333
  )
4327
4334
  ] });
@@ -4340,7 +4347,7 @@ const K0 = ({
4340
4347
  isDisc: i = !1,
4341
4348
  isAlphabetical: m = !1,
4342
4349
  isRomanNumeral: b = !1,
4343
- isInline: p = !1
4350
+ isInline: x = !1
4344
4351
  }) => /* @__PURE__ */ L("div", { className: "p-0 m-0", children: [
4345
4352
  /* @__PURE__ */ s("p", { children: t }),
4346
4353
  /* @__PURE__ */ L("ul", { className: f("pl-6 list-none w-full", c ? "list-decimal" : "", i ? "list-disc" : "", n), children: [
@@ -4349,9 +4356,9 @@ const K0 = ({
4349
4356
  {
4350
4357
  className: f(
4351
4358
  "w-full text-base md:text:lg py-2",
4352
- l && (p ? C !== e.length : C !== e.length - 1) ? "border-b" : "",
4353
- o !== "" && (p ? C !== e.length : C !== e.length - 1) ? o : "",
4354
- p && "inline mr-2",
4359
+ l && (x ? C !== e.length : C !== e.length - 1) ? "border-b" : "",
4360
+ o !== "" && (x ? C !== e.length : C !== e.length - 1) ? o : "",
4361
+ x && "inline mr-2",
4355
4362
  r
4356
4363
  ),
4357
4364
  children: [
@@ -4372,12 +4379,12 @@ const K0 = ({
4372
4379
  a,
4373
4380
  (u, C) => ne.isValidElement(u) ? ne.cloneElement(u, {
4374
4381
  className: f(
4375
- p && "inline mr-2",
4382
+ x && "inline mr-2",
4376
4383
  r,
4377
4384
  u.props.className,
4378
4385
  "w-full",
4379
- l && (p ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? "border-b" : "",
4380
- o !== "" && (p ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? o : ""
4386
+ l && (x ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? "border-b" : "",
4387
+ o !== "" && (x ? C !== ne.Children.count(a) : C !== ne.Children.count(a) - 1) ? o : ""
4381
4388
  ),
4382
4389
  children: /* @__PURE__ */ L(oe, { children: [
4383
4390
  b && /* @__PURE__ */ L("div", { className: "flex flex-row", children: [
@@ -4430,42 +4437,42 @@ const K0 = ({
4430
4437
  closeButtonText: i = "Close",
4431
4438
  continueButton: m = !1,
4432
4439
  continueButtonHandler: b,
4433
- continueButtonText: p = "Continue",
4440
+ continueButtonText: x = "Continue",
4434
4441
  blurLevel: u,
4435
4442
  children: C
4436
4443
  }) => {
4437
- const x = X(null), M = X(null), $ = "fixed inset-0 z-50 flex items-center justify-center bg-black/50", [y, g] = I("");
4444
+ const h = X(null), _ = X(null), $ = "fixed inset-0 z-50 flex items-center justify-center bg-black/50", [y, g] = H("");
4438
4445
  if (Z(() => {
4439
4446
  if (u) {
4440
- const O = "backdrop-blur-" + u;
4441
- g(f($, O));
4447
+ const A = "backdrop-blur-" + u;
4448
+ g(f($, A));
4442
4449
  } else
4443
4450
  g($);
4444
4451
  }, [u]), Z(() => {
4445
4452
  if (o) {
4446
- const O = (H) => {
4447
- x.current && !x.current.contains(H.target) && n();
4453
+ const A = (I) => {
4454
+ h.current && !h.current.contains(I.target) && n();
4448
4455
  };
4449
- return document.addEventListener("mousedown", O), () => {
4450
- document.removeEventListener("mousedown", O);
4456
+ return document.addEventListener("mousedown", A), () => {
4457
+ document.removeEventListener("mousedown", A);
4451
4458
  };
4452
4459
  }
4453
4460
  }, [n]), Z(() => {
4454
- var j;
4455
- const O = (B) => {
4461
+ var E;
4462
+ const A = (B) => {
4456
4463
  B.key === "Escape" && e && n();
4457
- }, H = (B) => {
4458
- var h;
4459
- const k = (h = x.current) == null ? void 0 : h.querySelectorAll(
4464
+ }, I = (B) => {
4465
+ var p;
4466
+ const k = (p = h.current) == null ? void 0 : p.querySelectorAll(
4460
4467
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
4461
4468
  ), U = k == null ? void 0 : k[0], D = k == null ? void 0 : k[k.length - 1];
4462
4469
  B.key === "Tab" && k && (B.shiftKey && document.activeElement === U ? (B.preventDefault(), D == null || D.focus()) : !B.shiftKey && document.activeElement === D && (B.preventDefault(), U == null || U.focus()));
4463
4470
  };
4464
- return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", O), window.addEventListener("keydown", H), (j = M.current) == null || j.focus()) : document.body.style.overflow = "auto", () => {
4465
- window.removeEventListener("keydown", O), window.removeEventListener("keydown", H), document.body.style.overflow = "auto";
4471
+ return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", A), window.addEventListener("keydown", I), (E = _.current) == null || E.focus()) : document.body.style.overflow = "auto", () => {
4472
+ window.removeEventListener("keydown", A), window.removeEventListener("keydown", I), document.body.style.overflow = "auto";
4466
4473
  };
4467
4474
  }, [e, n]), !e) return null;
4468
- const _ = () => {
4475
+ const M = () => {
4469
4476
  b && b(), n();
4470
4477
  };
4471
4478
  return /* @__PURE__ */ s(
@@ -4477,7 +4484,7 @@ const K0 = ({
4477
4484
  "div",
4478
4485
  {
4479
4486
  className: f(me[t].container, a),
4480
- ref: x,
4487
+ ref: h,
4481
4488
  "aria-label": "modal-title",
4482
4489
  role: "dialog",
4483
4490
  "aria-modal": "true",
@@ -4500,7 +4507,7 @@ const K0 = ({
4500
4507
  l && /* @__PURE__ */ s(
4501
4508
  "button",
4502
4509
  {
4503
- ref: M,
4510
+ ref: _,
4504
4511
  onClick: n,
4505
4512
  className: f(me[t].button),
4506
4513
  children: i
@@ -4509,9 +4516,9 @@ const K0 = ({
4509
4516
  m && /* @__PURE__ */ s(
4510
4517
  "button",
4511
4518
  {
4512
- onClick: _,
4519
+ onClick: M,
4513
4520
  className: f(me[t].button, "ms-4"),
4514
- children: p
4521
+ children: x
4515
4522
  }
4516
4523
  )
4517
4524
  ] }) : ""
@@ -4533,21 +4540,21 @@ const K0 = ({
4533
4540
  disabled: i = !1,
4534
4541
  ...m
4535
4542
  }, b) => {
4536
- const [p, u] = I(), [C, x] = I(), [M, $] = I("bg-white");
4543
+ const [x, u] = H(), [C, h] = H(), [_, $] = H("bg-white");
4537
4544
  return Z(() => {
4538
4545
  const y = "text-lg font-normal font-['Arial'] leading-normal ";
4539
- x(t && r ? y : t ? y + "mr-6" : r ? y + "ml-6" : y + "ml-6 mr-6");
4546
+ h(t && r ? y : t ? y + "mr-6" : r ? y + "ml-6" : y + "ml-6 mr-6");
4540
4547
  }, [t, r, l]), Z(() => {
4541
4548
  $(c ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"), u(f(
4542
4549
  "relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-hidden font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",
4543
- M,
4550
+ _,
4544
4551
  e
4545
4552
  ));
4546
- }, [e, M, c]), /* @__PURE__ */ L(
4553
+ }, [e, _, c]), /* @__PURE__ */ L(
4547
4554
  "button",
4548
4555
  {
4549
4556
  onClick: o,
4550
- className: p,
4557
+ className: x,
4551
4558
  ref: b,
4552
4559
  ...m,
4553
4560
  disabled: i,
@@ -4570,7 +4577,7 @@ const K0 = ({
4570
4577
  }) => {
4571
4578
  const c = Array.from({ length: e }, (i, m) => m + 1);
4572
4579
  return /* @__PURE__ */ s("div", { className: "flex items-center w-full", children: c.map((i, m) => {
4573
- const b = i <= t - 1, p = m === c.length - 1;
4580
+ const b = i <= t - 1, x = m === c.length - 1;
4574
4581
  return /* @__PURE__ */ L(oe, { children: [
4575
4582
  /* @__PURE__ */ s(
4576
4583
  "div",
@@ -4596,7 +4603,7 @@ const K0 = ({
4596
4603
  ] }) })
4597
4604
  }
4598
4605
  ),
4599
- !p && /* @__PURE__ */ s(
4606
+ !x && /* @__PURE__ */ s(
4600
4607
  "div",
4601
4608
  {
4602
4609
  className: f(
@@ -4632,12 +4639,12 @@ const Et = ({
4632
4639
  classNameContainer: r,
4633
4640
  options: a
4634
4641
  }) => {
4635
- const [l, o] = I(""), c = (m) => {
4642
+ const [l, o] = H(""), c = (m) => {
4636
4643
  o(m);
4637
4644
  }, i = l;
4638
4645
  return /* @__PURE__ */ L("fieldset", { role: "radiogroup", className: r, children: [
4639
4646
  /* @__PURE__ */ s("p", { className: "mb-2", children: e }),
4640
- a.map(({ label: m, value: b, id: p, disabled: u }) => (
4647
+ a.map(({ label: m, value: b, id: x, disabled: u }) => (
4641
4648
  // const isSelected = internalValue === val;
4642
4649
  /* @__PURE__ */ L(
4643
4650
  "label",
@@ -4652,7 +4659,7 @@ const Et = ({
4652
4659
  /* @__PURE__ */ s(
4653
4660
  "input",
4654
4661
  {
4655
- id: p,
4662
+ id: x,
4656
4663
  className: "hidden",
4657
4664
  type: "radio",
4658
4665
  value: b,
@@ -4679,43 +4686,43 @@ const Et = ({
4679
4686
  mobileOnly: l = !1,
4680
4687
  ...o
4681
4688
  }, c) => {
4682
- var j;
4683
- const i = X(null), m = X(null), [b, p] = I(""), [u, C] = I(), [x, M] = I(n), $ = (B) => {
4684
- B.key === "Enter" && (a ? O() : u && u.pages[0].path && (window.location.href = u.pages[0].path));
4689
+ var E;
4690
+ const i = X(null), m = X(null), [b, x] = H(""), [u, C] = H(), [h, _] = H(n), $ = (B) => {
4691
+ B.key === "Enter" && (a ? A() : u && u.pages[0].path && (window.location.href = u.pages[0].path));
4685
4692
  }, y = () => {
4686
- p(""), C(void 0);
4693
+ x(""), C(void 0);
4687
4694
  };
4688
4695
  Z(() => {
4689
- M(n);
4696
+ _(n);
4690
4697
  }, [n]);
4691
4698
  function g(B) {
4692
4699
  const k = B.toLowerCase(), U = [];
4693
- return r.forEach((D, h) => {
4694
- const A = [];
4700
+ return r.forEach((D, p) => {
4701
+ const O = [];
4695
4702
  let F = D.content.toLowerCase().indexOf(k);
4696
4703
  for (; F !== -1; ) {
4697
4704
  const z = D.content.substring(
4698
4705
  F + k.length,
4699
4706
  F + k.length + 15
4700
4707
  );
4701
- A.push({ characters: z, index: h }), F = D.content.toLowerCase().indexOf(k, F + 1);
4708
+ O.push({ characters: z, index: p }), F = D.content.toLowerCase().indexOf(k, F + 1);
4702
4709
  }
4703
- A.length && U.push({
4710
+ O.length && U.push({
4704
4711
  title: D.title,
4705
4712
  path: D.path,
4706
- results: A
4713
+ results: O
4707
4714
  });
4708
4715
  }), { input: B, pages: U };
4709
4716
  }
4710
- const _ = (B) => {
4717
+ const M = (B) => {
4711
4718
  const k = B.target.value;
4712
- if (p(k), !k) {
4719
+ if (x(k), !k) {
4713
4720
  C(void 0);
4714
4721
  return;
4715
4722
  }
4716
4723
  const U = g(k);
4717
4724
  C(U);
4718
- }, O = () => {
4725
+ }, A = () => {
4719
4726
  var k;
4720
4727
  const B = ((k = i.current) == null ? void 0 : k.value) ?? "";
4721
4728
  if (a)
@@ -4725,20 +4732,20 @@ const Et = ({
4725
4732
  } else
4726
4733
  a({ input: "", pages: [{ results: [] }] });
4727
4734
  };
4728
- return x ? (
4735
+ return h ? (
4729
4736
  // Display solo search icon button to expand search component
4730
4737
  /* @__PURE__ */ s("span", { className: `w-[52px] h-[50px] p-2 rounded-sm border border-[#6a686b]
4731
4738
  inline-flex flex-col justify-center items-center bg-white`, children: /* @__PURE__ */ s(
4732
4739
  "button",
4733
4740
  {
4734
4741
  className: "appearance-none p-0 m-0 border-0 flex items-center justify-center align-middle",
4735
- onClick: () => M(!1),
4742
+ onClick: () => _(!1),
4736
4743
  children: /* @__PURE__ */ s("img", { className: "", src: t2, alt: "search icon" })
4737
4744
  }
4738
4745
  ) })
4739
4746
  ) : (
4740
4747
  // Container including input + output list box
4741
- /* @__PURE__ */ L("span", { className: `h-12 md:h-[50px] lg:h-14 flex items-center relative ${x && "hidden"}`, children: [
4748
+ /* @__PURE__ */ L("span", { className: `h-12 md:h-[50px] lg:h-14 flex items-center relative ${h && "hidden"}`, children: [
4742
4749
  /* @__PURE__ */ L("span", { className: `
4743
4750
  border-[#6a686b] w-[309px] md:w-[334px] lg:w-[350px]
4744
4751
  inline-flex bg-white items-center
@@ -4747,17 +4754,17 @@ const Et = ({
4747
4754
  " border lg:border-0 rounded-sm "
4748
4755
  )}
4749
4756
  `, children: [
4750
- /* @__PURE__ */ s("button", { onClick: O, children: /* @__PURE__ */ s("span", { className: "lg:hidden rounded-tl px-2 rounded-bl ", children: /* @__PURE__ */ s("img", { className: "", src: t2, alt: "search icon" }) }) }),
4757
+ /* @__PURE__ */ s("button", { onClick: A, children: /* @__PURE__ */ s("div", { className: "lg:hidden rounded-tl px-2 rounded-bl ", children: /* @__PURE__ */ s("img", { className: "", src: t2, alt: "search icon" }) }) }),
4751
4758
  /* @__PURE__ */ s(
4752
4759
  "input",
4753
4760
  {
4754
- className: f(`grow appearance-none h-8 md:h-[32px] lg:h-14 py-2 lg:ps-[19px] rounded-tl rounded-bl
4755
- rounded-br-none rounded-tr-none lg:border border-[#07192d]
4756
- font-['Arial'] bg-white text-[#333234] text-base lg:text-lg
4757
- hover:border-[#5992fa] focus:border-[#5992fa] outline-hidden `, e),
4761
+ className: f(`grow appearance-none h-8 md:h-[32px] lg:h-14 py-2 lg:ps-[19px] rounded-tl rounded-bl
4762
+ rounded-br-none rounded-tr-none font-['Arial'] bg-white text-[#333234] text-base lg:text-lg
4763
+ border-0 lg:border border-[#07192d] hover:border-[#5992fa] focus:border-[#5992fa] outline-hidden
4764
+ `, e),
4758
4765
  "aria-label": t,
4759
4766
  value: b,
4760
- onChange: _,
4767
+ onChange: M,
4761
4768
  placeholder: "Search result",
4762
4769
  onKeyDown: (B) => $(B),
4763
4770
  ref: (B) => {
@@ -4766,7 +4773,7 @@ const Et = ({
4766
4773
  ...o
4767
4774
  }
4768
4775
  ),
4769
- /* @__PURE__ */ s("button", { onClick: O, children: /* @__PURE__ */ s("span", { className: `hidden lg:flex items-center size-14 p-[17px] bg-[#07192d]
4776
+ /* @__PURE__ */ s("button", { onClick: A, children: /* @__PURE__ */ s("span", { className: `hidden lg:flex items-center size-14 p-[17px] bg-[#07192d]
4770
4777
  rounded-tr rounded-br `, children: /* @__PURE__ */ s("img", { className: "", src: X0, alt: "search icon" }) }) }),
4771
4778
  /* @__PURE__ */ s("span", { className: "lg:hidden items-center p-3", children: /* @__PURE__ */ s(
4772
4779
  "button",
@@ -4808,7 +4815,7 @@ const Et = ({
4808
4815
  /* @__PURE__ */ s("span", { className: "text-[#A1A6A8] lg:text-[#4E4E4E]", children: U.characters })
4809
4816
  ] }))
4810
4817
  ] }, k)),
4811
- ((j = u == null ? void 0 : u.pages) == null ? void 0 : j.length) < 1 && /* @__PURE__ */ s("div", { className: "ms-4 mb-1 text-[#1c1d1f]", children: "no search results" })
4818
+ ((E = u == null ? void 0 : u.pages) == null ? void 0 : E.length) < 1 && /* @__PURE__ */ s("div", { className: "ms-4 mb-1 text-[#1c1d1f]", children: "no search results" })
4812
4819
  ]
4813
4820
  }
4814
4821
  )
@@ -4831,39 +4838,39 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
4831
4838
  type: i = "page",
4832
4839
  padLeft: m = !0,
4833
4840
  padRight: b = !0,
4834
- button: p,
4841
+ button: x,
4835
4842
  buttonOnClick: u,
4836
4843
  buttonContent: C = "Click Me",
4837
- children: x,
4838
- ...M
4844
+ children: h,
4845
+ ..._
4839
4846
  }, $) => {
4840
- const [y, g] = I(""), [_, O] = I(""), [H, j] = I(""), B = `${i === "page" ? "pt-4 pb-2" : "py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;
4847
+ const [y, g] = H(""), [M, A] = H(""), [I, E] = H(""), B = `${i === "page" ? "pt-4 pb-2" : "py-2"} flex pl-6 pr-2 justify-start items-center gap-4 inline-flex w-full`;
4841
4848
  return Z(() => {
4842
4849
  g(f(B, l ? "border-b-2 border-[#07192D]" : "", c ? "bg-[#092068] text-[#f0f0f0]" : "bg-transparent text-[#07192d]", m && b ? "mx-4 " : m ? "ms-4" : b ? "me-4" : "", e));
4843
4850
  }, [e, l, c, B, m, b]), Z(() => {
4844
- O(f(`self-stretch ${i === "page" ? "text-[40px]" : i === "section" ? " text-[32px]" : "text-2xl"} font-normal font-["Arial"] leading-[48px]`, t));
4851
+ A(f(`self-stretch ${i === "page" ? "text-[40px]" : i === "section" ? " text-[32px]" : "text-2xl"} font-normal font-["Arial"] leading-[48px]`, t));
4845
4852
  }, [t, i]), Z(() => {
4846
- j(f(`${i === "page" ? "text-xl" : "text-lg"} font-normal font-["Arial"] leading-[30px]`, n));
4853
+ E(f(`${i === "page" ? "text-xl" : "text-lg"} font-normal font-["Arial"] leading-[30px]`, n));
4847
4854
  }, [n, i]), /* @__PURE__ */ s("div", { className: f(y, e), children: /* @__PURE__ */ L("div", { className: "grow shrink basis-0 justify-start items-center gap-4 flex flex-row", children: [
4848
4855
  r && r,
4849
4856
  /* @__PURE__ */ L("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
4850
4857
  /* @__PURE__ */ s(
4851
4858
  "div",
4852
4859
  {
4853
- className: _,
4854
- children: x
4860
+ className: M,
4861
+ children: h
4855
4862
  }
4856
4863
  ),
4857
4864
  o && /* @__PURE__ */ s(
4858
4865
  "div",
4859
4866
  {
4860
- className: H,
4867
+ className: I,
4861
4868
  children: o
4862
4869
  }
4863
4870
  )
4864
4871
  ] }),
4865
4872
  a && a,
4866
- p && // text color and icon correctly set based on fill value
4873
+ x && // text color and icon correctly set based on fill value
4867
4874
  /* @__PURE__ */ s(
4868
4875
  b2,
4869
4876
  {
@@ -5002,25 +5009,25 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
5002
5009
  children: c,
5003
5010
  ...i
5004
5011
  }, m) => {
5005
- const [b, p] = I(), [u, C] = I(), [x, M] = I(nt), $ = () => {
5006
- p(f(b, "hidden"));
5012
+ const [b, x] = H(), [u, C] = H(), [h, _] = H(nt), $ = () => {
5013
+ x(f(b, "hidden"));
5007
5014
  };
5008
5015
  return Z(() => {
5009
- var _, O;
5010
- const y = t === "custom" ? "default" : t, g = (_ = s2.find(
5011
- (H) => H.variant === e && H.subVariant === y
5012
- )) == null ? void 0 : _.classes;
5016
+ var M, A;
5017
+ const y = t === "custom" ? "default" : t, g = (M = s2.find(
5018
+ (I) => I.variant === e && I.subVariant === y
5019
+ )) == null ? void 0 : M.classes;
5013
5020
  if (e === "icon") {
5014
- const H = (O = s2.find(
5015
- (j) => j.variant === e && j.subVariant === y
5016
- )) == null ? void 0 : O.classNameSvg;
5017
- C(t === "custom" ? f(H, r) : H);
5021
+ const I = (A = s2.find(
5022
+ (E) => E.variant === e && E.subVariant === y
5023
+ )) == null ? void 0 : A.classNameSvg;
5024
+ C(t === "custom" ? f(I, r) : I);
5018
5025
  }
5019
- e === "hazard" ? M(ot) : e === "go" && M(rt), p(f(g, n));
5026
+ e === "hazard" ? _(ot) : e === "go" && _(rt), x(f(g, n));
5020
5027
  }, [t, n, e, r]), /* @__PURE__ */ L(oe, { children: [
5021
5028
  e === "default" && /* @__PURE__ */ s("div", { className: b, ...i, ref: m, children: c }),
5022
5029
  (e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ L("div", { className: b, children: [
5023
- /* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src: x, alt: `${e} icon` }) }) }),
5030
+ /* @__PURE__ */ s("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ s("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ s("img", { className: "size-6", src: h, alt: `${e} icon` }) }) }),
5024
5031
  /* @__PURE__ */ s("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: c }),
5025
5032
  /* @__PURE__ */ s(
5026
5033
  "button",
@@ -5055,21 +5062,21 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
5055
5062
  classNameMenuItem: i = "",
5056
5063
  classNameMenuContainer: m = "",
5057
5064
  version: b,
5058
- menuItems: p,
5065
+ menuItems: x,
5059
5066
  right: u = !1,
5060
5067
  children: C,
5061
- ...x
5062
- }, M) => {
5063
- const $ = X(null), [y, g] = I(!1), [_, O] = I(Be);
5068
+ ...h
5069
+ }, _) => {
5070
+ const $ = X(null), [y, g] = H(!1), [M, A] = H(Be);
5064
5071
  return Z(() => {
5065
- O(f(u ? Be + " text-right pe-2" : Be, i));
5066
- }, [u, _, i]), Z(() => {
5072
+ A(f(u ? Be + " text-right pe-2" : Be, i));
5073
+ }, [u, M, i]), Z(() => {
5067
5074
  if (a) {
5068
- const H = (j) => {
5069
- $.current && !$.current.contains(j.target) && g(!1);
5075
+ const I = (E) => {
5076
+ $.current && !$.current.contains(E.target) && g(!1);
5070
5077
  };
5071
- return document.addEventListener("mousedown", H), () => {
5072
- document.removeEventListener("mousedown", H);
5078
+ return document.addEventListener("mousedown", I), () => {
5079
+ document.removeEventListener("mousedown", I);
5073
5080
  };
5074
5081
  }
5075
5082
  }, [g]), // eslint-disable-next-line react/jsx-no-useless-fragment
@@ -5093,13 +5100,13 @@ const tt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
5093
5100
  /* @__PURE__ */ s("div", { className: f("w-16 h-16 mx-auto", l), children: /* @__PURE__ */ s("img", { src: n, className: f("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1", r), alt: "application icon" }) }),
5094
5101
  /* @__PURE__ */ s("div", { className: "text-center text-xl mt-2", children: t }),
5095
5102
  /* @__PURE__ */ s("div", { className: "[204px] mt-3 h-[2px] border-[0.5px] border-[#D9D9D9] bg-[#D9D9D9]" }),
5096
- /* @__PURE__ */ s(K0, { className: "pl-4 lg:pl-6 mt-6", children: p.map((H, j) => /* @__PURE__ */ s(
5103
+ /* @__PURE__ */ s(K0, { className: "pl-4 lg:pl-6 mt-6", children: x.map((I, E) => /* @__PURE__ */ s(
5097
5104
  w2,
5098
5105
  {
5099
- className: _,
5100
- children: H.target && /* @__PURE__ */ s(N2, { to: H.target, children: H.children })
5106
+ className: M,
5107
+ children: I.target && /* @__PURE__ */ s(N2, { to: I.target, onClick: () => g(!1), children: I.children })
5101
5108
  },
5102
- j
5109
+ E
5103
5110
  )) }),
5104
5111
  /* @__PURE__ */ L("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: [
5105
5112
  "Version ",
@@ -5211,13 +5218,13 @@ const ut = "_slider_87un4_28", gt = {
5211
5218
  label: o,
5212
5219
  ...c
5213
5220
  }, i) => {
5214
- const [m, b] = I(r), p = X(null);
5215
- n2(i, () => p.current), Z(() => {
5221
+ const [m, b] = H(r), x = X(null);
5222
+ n2(i, () => x.current), Z(() => {
5216
5223
  b(r);
5217
5224
  }, []);
5218
5225
  const u = (C) => {
5219
- const x = Number(C.target.value);
5220
- b(Number(x)), a && a(x);
5226
+ const h = Number(C.target.value);
5227
+ b(Number(h)), a && a(h);
5221
5228
  };
5222
5229
  return /* @__PURE__ */ L(oe, { children: [
5223
5230
  l && o && /* @__PURE__ */ s(
@@ -5231,7 +5238,7 @@ const ut = "_slider_87un4_28", gt = {
5231
5238
  /* @__PURE__ */ s(
5232
5239
  "input",
5233
5240
  {
5234
- ref: p,
5241
+ ref: x,
5235
5242
  type: "range",
5236
5243
  id: l,
5237
5244
  className: f(gt.slider, e),
@@ -5273,16 +5280,16 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
5273
5280
  children: l,
5274
5281
  ...o
5275
5282
  }, c) => {
5276
- const [i, m] = I(), [b, p] = I(), [u, C] = I();
5283
+ const [i, m] = H(), [b, x] = H(), [u, C] = H();
5277
5284
  return Z(() => {
5278
- var x, M, $;
5285
+ var h, _, $;
5279
5286
  m(f(
5280
- (x = Ae.find((y) => y.variant === e)) == null ? void 0 : x.classes,
5287
+ (h = Ae.find((y) => y.variant === e)) == null ? void 0 : h.classes,
5281
5288
  t
5282
5289
  )), C(f(
5283
- (M = Ae.find((y) => y.variant === e)) == null ? void 0 : M.childClasses,
5290
+ (_ = Ae.find((y) => y.variant === e)) == null ? void 0 : _.childClasses,
5284
5291
  r
5285
- )), p(f(
5292
+ )), x(f(
5286
5293
  ($ = Ae.find((y) => y.variant === e)) == null ? void 0 : $.imgDivClasses,
5287
5294
  a
5288
5295
  ));
@@ -5331,25 +5338,25 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
5331
5338
  children: i,
5332
5339
  ...m
5333
5340
  }, b) => {
5334
- var x, M, $, y;
5335
- const [p, u] = I(e);
5341
+ var h, _, $, y;
5342
+ const [x, u] = H(e);
5336
5343
  return /* @__PURE__ */ s(
5337
5344
  "button",
5338
5345
  {
5339
5346
  onClick: () => {
5340
- const g = !p;
5347
+ const g = !x;
5341
5348
  u(g), n && n(g);
5342
5349
  },
5343
5350
  disabled: t,
5344
5351
  role: "switch",
5345
- "aria-checked": p,
5352
+ "aria-checked": x,
5346
5353
  "aria-disabled": t,
5347
5354
  ...m,
5348
5355
  ref: b,
5349
- "aria-label": r || `Toggle ${p ? "on" : "off"}`,
5356
+ "aria-label": r || `Toggle ${x ? "on" : "off"}`,
5350
5357
  className: f(
5351
5358
  `${wt}
5352
- ${p ? (x = ke.find((g) => g.variant === o)) == null ? void 0 : x.toggledClasses : (M = ke.find((g) => g.variant === o)) == null ? void 0 : M.classes}`,
5359
+ ${x ? (h = ke.find((g) => g.variant === o)) == null ? void 0 : h.toggledClasses : (_ = ke.find((g) => g.variant === o)) == null ? void 0 : _.classes}`,
5353
5360
  a
5354
5361
  ),
5355
5362
  children: /* @__PURE__ */ s(
@@ -5357,7 +5364,7 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
5357
5364
  {
5358
5365
  className: f(
5359
5366
  `${vt}
5360
- ${p ? ($ = ke.find((g) => g.variant === o)) == null ? void 0 : $.toggledButtonClasses : (y = ke.find((g) => g.variant === o)) == null ? void 0 : y.buttonClasses}`,
5367
+ ${x ? ($ = ke.find((g) => g.variant === o)) == null ? void 0 : $.toggledButtonClasses : (y = ke.find((g) => g.variant === o)) == null ? void 0 : y.buttonClasses}`,
5361
5368
  l
5362
5369
  )
5363
5370
  }
@@ -5373,18 +5380,18 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
5373
5380
  id: r = "tooltip-content",
5374
5381
  ...a
5375
5382
  }, l) => {
5376
- const [o, c] = I(!1);
5383
+ const [o, c] = H(!1);
5377
5384
  let i;
5378
5385
  const m = Me(() => {
5379
5386
  i = setTimeout(() => c(!0), t);
5380
5387
  }, [t]), b = Me(() => {
5381
5388
  clearTimeout(i), c(!1);
5382
- }, []), p = Ue.toArray(e), u = p.find((x) => {
5383
- if (be(x))
5384
- return x.type.displayName !== "TooltipContent";
5385
- }), C = p.find((x) => {
5386
- if (be(x))
5387
- return x.type.displayName === "TooltipContent";
5389
+ }, []), x = Ue.toArray(e), u = x.find((h) => {
5390
+ if (be(h))
5391
+ return h.type.displayName !== "TooltipContent";
5392
+ }), C = x.find((h) => {
5393
+ if (be(h))
5394
+ return h.type.displayName === "TooltipContent";
5388
5395
  });
5389
5396
  return /* @__PURE__ */ s(v2.Provider, { value: { id: r }, children: /* @__PURE__ */ L(
5390
5397
  "div",
@@ -5408,7 +5415,7 @@ const pt = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%20
5408
5415
  Ct.displayName = "Tooltip";
5409
5416
  const yt = ee(
5410
5417
  ({ children: e, className: t, position: n, ...r }, a) => {
5411
- const [l, o] = I("mt-2"), c = y2(v2);
5418
+ const [l, o] = H("mt-2"), c = y2(v2);
5412
5419
  if (!c)
5413
5420
  throw new Error("TooltipContent must be used within a tooltip");
5414
5421
  const { id: i } = c;
@@ -5439,7 +5446,7 @@ export {
5439
5446
  Dt as Badge,
5440
5447
  St as Breadcrumbs,
5441
5448
  b2 as Button,
5442
- C0 as ButtonGroup,
5449
+ M0 as ButtonGroup,
5443
5450
  S0 as Card,
5444
5451
  Vt as CharacterCounter,
5445
5452
  x2 as CheckBox,