shekel-fe-shared-lib 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -121,10 +121,10 @@ const R1 = ({
121
121
  className: p = "",
122
122
  selected: d = !1,
123
123
  onClick: C,
124
- size: m = "md",
124
+ size: h = "md",
125
125
  rounded: L = "2xl"
126
126
  }) => {
127
- const y = m === "sm" ? "p-3" : m === "lg" ? "p-6" : "p-4", g = {
127
+ const y = h === "sm" ? "p-3" : h === "lg" ? "p-6" : "p-4", f = {
128
128
  none: "rounded-none",
129
129
  sm: "rounded-sm",
130
130
  md: "rounded-md",
@@ -132,14 +132,14 @@ const R1 = ({
132
132
  xl: "rounded-xl",
133
133
  "2xl": "rounded-2xl",
134
134
  full: "rounded-full"
135
- }[L] ?? "rounded-2xl", v = /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
135
+ }[L] ?? "rounded-2xl", w = /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
136
136
  /* @__PURE__ */ n("rect", { x: "3", y: "6", width: "18", height: "12", rx: "2", stroke: "currentColor", strokeWidth: "2" }),
137
137
  /* @__PURE__ */ n("path", { d: "M3 10h18M7 14h4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
138
138
  ] });
139
139
  return /* @__PURE__ */ u(
140
140
  "div",
141
141
  {
142
- className: `bg-white border flex flex-col justify-between transition-all duration-300 ease-in-out hover:border-gray-300 hover:-translate-y-1 cursor-pointer ${y} ${g} ${d ? "border-[#EC615B]" : "border-[#E6E6E6]"} ${p}`,
142
+ className: `bg-white border flex flex-col justify-between transition-all duration-300 ease-in-out hover:border-gray-300 hover:-translate-y-1 cursor-pointer ${y} ${f} ${d ? "border-[#EC615B]" : "border-[#E6E6E6]"} ${p}`,
143
143
  style: {
144
144
  width: typeof c == "number" ? `${c}px` : c,
145
145
  boxShadow: d ? "0 0 0 1px #EC615B" : "0 0 0 0 rgba(0, 0, 0, 0)",
@@ -163,7 +163,7 @@ const R1 = ({
163
163
  backgroundColor: o,
164
164
  color: s
165
165
  },
166
- children: r || v
166
+ children: r || w
167
167
  }
168
168
  ),
169
169
  l && l
@@ -192,14 +192,14 @@ const R1 = ({
192
192
  iconColor: p,
193
193
  textColor: d,
194
194
  placeholderColor: C,
195
- rounded: m = "md",
195
+ rounded: h = "md",
196
196
  style: L,
197
197
  ...y
198
198
  }) => {
199
199
  process.env.NODE_ENV !== "production" && console.warn(
200
200
  "[Shekel Shared Lib] SearchInput is deprecated as of v1.0.11. Please use the new Input component instead for better functionality and consistent styling."
201
201
  );
202
- const w = "relative inline-flex items-center", g = "border focus:outline-none focus:ring-1 transition-all duration-200 ease-in-out", v = {
202
+ const v = "relative inline-flex items-center", f = "border focus:outline-none focus:ring-1 transition-all duration-200 ease-in-out", w = {
203
203
  sm: "px-3 py-1.5 text-sm",
204
204
  md: "px-4 py-2 text-base",
205
205
  lg: "px-5 py-3 text-lg",
@@ -215,12 +215,12 @@ const R1 = ({
215
215
  md: "rounded-lg",
216
216
  lg: "rounded-xl",
217
217
  full: "rounded-full"
218
- }, k = t === "left" ? r === "sm" ? "pl-9" : r === "md" ? "pl-10" : r === "lg" ? "pl-12" : "pl-9 sm:pl-10 md:pl-12" : r === "sm" ? "pr-9" : r === "md" ? "pr-10" : r === "lg" ? "pr-12" : "pr-9 sm:pr-10 md:pr-12", f = o ? "w-full" : "", h = {
218
+ }, k = t === "left" ? r === "sm" ? "pl-9" : r === "md" ? "pl-10" : r === "lg" ? "pl-12" : "pl-9 sm:pl-10 md:pl-12" : r === "sm" ? "pr-9" : r === "md" ? "pr-10" : r === "lg" ? "pr-12" : "pr-9 sm:pr-10 md:pr-12", m = o ? "w-full" : "", g = {
219
219
  backgroundColor: a,
220
220
  borderColor: l || "#D1D5DB",
221
221
  color: d,
222
222
  ...L
223
- }, _ = C ? "" : "placeholder:text-gray-400", z = l ? "" : "border-gray-300", H = d ? "" : "text-gray-900", B = c ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", U = `${g} ${!s.includes("px-") && !s.includes("py-") ? v[r] : ""} ${e ? k : ""} ${f} ${s.includes("rounded") ? "" : b[m]} ${s.includes("border-") ? "" : z} ${H} ${B} ${_} ${s}`, E = t === "left" ? "left-3" : "right-3", N = p || "text-gray-400", V = p ? "" : "hover:text-gray-600", S = /* @__PURE__ */ n(
223
+ }, _ = C ? "" : "placeholder:text-gray-400", z = l ? "" : "border-gray-300", H = d ? "" : "text-gray-900", B = c ? "" : "focus:ring-[#EC615B] focus:border-[#EC615B]", U = `${f} ${!s.includes("px-") && !s.includes("py-") ? w[r] : ""} ${e ? k : ""} ${m} ${s.includes("rounded") ? "" : b[h]} ${s.includes("border-") ? "" : z} ${H} ${B} ${_} ${s}`, E = t === "left" ? "left-3" : "right-3", N = p || "text-gray-400", V = p ? "" : "hover:text-gray-600", S = /* @__PURE__ */ n(
224
224
  "svg",
225
225
  {
226
226
  className: `${x[r]} ${N}`,
@@ -239,7 +239,7 @@ const R1 = ({
239
239
  )
240
240
  }
241
241
  );
242
- return /* @__PURE__ */ u("div", { className: `${w} ${f}`, children: [
242
+ return /* @__PURE__ */ u("div", { className: `${v} ${m}`, children: [
243
243
  e && /* @__PURE__ */ n(
244
244
  "div",
245
245
  {
@@ -254,7 +254,7 @@ const R1 = ({
254
254
  type: "text",
255
255
  className: U,
256
256
  style: {
257
- ...h,
257
+ ...g,
258
258
  ...c && {
259
259
  "--focus-border-color": c
260
260
  },
@@ -299,20 +299,20 @@ const R1 = ({
299
299
  menuItemHoverColor: p,
300
300
  dangerColor: d,
301
301
  borderColor: C,
302
- style: m
302
+ style: h
303
303
  }) => {
304
- const [L, y] = R(!1), w = i2(null);
304
+ const [L, y] = R(!1), v = i2(null);
305
305
  I(() => {
306
306
  const $ = (G) => {
307
- w.current && !w.current.contains(G.target) && y(!1);
307
+ v.current && !v.current.contains(G.target) && y(!1);
308
308
  };
309
309
  return L && document.addEventListener("mousedown", $), () => {
310
310
  document.removeEventListener("mousedown", $);
311
311
  };
312
312
  }, [L]);
313
- const g = () => {
313
+ const f = () => {
314
314
  !a && t === "click" && y(!L);
315
- }, v = () => {
315
+ }, w = () => {
316
316
  !a && t === "hover" && y(!0);
317
317
  }, x = () => {
318
318
  !a && t === "hover" && y(!1);
@@ -323,7 +323,7 @@ const R1 = ({
323
323
  bottomRight: "top-full right-0 mt-1",
324
324
  topLeft: "bottom-full left-0 mb-1",
325
325
  topRight: "bottom-full right-0 mb-1"
326
- }, f = r.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up", h = {
326
+ }, m = r.startsWith("bottom") ? "dropdown-slide-down" : "dropdown-slide-up", g = {
327
327
  sm: "min-w-[120px] text-xs",
328
328
  md: "min-w-[160px] text-sm",
329
329
  lg: "min-w-[220px] text-base",
@@ -337,16 +337,16 @@ const R1 = ({
337
337
  return /* @__PURE__ */ u(
338
338
  "div",
339
339
  {
340
- ref: w,
340
+ ref: v,
341
341
  className: `relative inline-block ${s}`,
342
- onMouseEnter: v,
342
+ onMouseEnter: w,
343
343
  onMouseLeave: x,
344
- style: m,
344
+ style: h,
345
345
  children: [
346
346
  /* @__PURE__ */ n(
347
347
  "div",
348
348
  {
349
- onClick: g,
349
+ onClick: f,
350
350
  className: `inline-flex ${a ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
351
351
  children: o
352
352
  }
@@ -354,7 +354,7 @@ const R1 = ({
354
354
  L && !a && /* @__PURE__ */ n(
355
355
  "div",
356
356
  {
357
- className: `absolute ${k[r]} ${f} z-50 ${h[l]} ${i}`,
357
+ className: `absolute ${k[r]} ${m} z-50 ${g[l]} ${i}`,
358
358
  children: /* @__PURE__ */ n(
359
359
  "div",
360
360
  {
@@ -505,40 +505,40 @@ function s2(e, t, r = /* @__PURE__ */ new WeakSet()) {
505
505
  return !0;
506
506
  }
507
507
  function z0(e) {
508
- const t = _2(), { control: r = t, name: o, defaultValue: s, disabled: i, exact: a, compute: l } = e || {}, c = M.useRef(s), p = M.useRef(l), d = M.useRef(void 0), C = M.useRef(r), m = M.useRef(o);
508
+ const t = _2(), { control: r = t, name: o, defaultValue: s, disabled: i, exact: a, compute: l } = e || {}, c = M.useRef(s), p = M.useRef(l), d = M.useRef(void 0), C = M.useRef(r), h = M.useRef(o);
509
509
  p.current = l;
510
510
  const [L, y] = M.useState(() => {
511
511
  const k = r._getWatch(o, c.current);
512
512
  return p.current ? p.current(k) : k;
513
- }), w = M.useCallback((k) => {
514
- const f = U2(o, r._names, k || r._formValues, !1, c.current);
515
- return p.current ? p.current(f) : f;
516
- }, [r._formValues, r._names, o]), g = M.useCallback((k) => {
513
+ }), v = M.useCallback((k) => {
514
+ const m = U2(o, r._names, k || r._formValues, !1, c.current);
515
+ return p.current ? p.current(m) : m;
516
+ }, [r._formValues, r._names, o]), f = M.useCallback((k) => {
517
517
  if (!i) {
518
- const f = U2(o, r._names, k || r._formValues, !1, c.current);
518
+ const m = U2(o, r._names, k || r._formValues, !1, c.current);
519
519
  if (p.current) {
520
- const h = p.current(f);
521
- s2(h, d.current) || (y(h), d.current = h);
520
+ const g = p.current(m);
521
+ s2(g, d.current) || (y(g), d.current = g);
522
522
  } else
523
- y(f);
523
+ y(m);
524
524
  }
525
525
  }, [r._formValues, r._names, i, o]);
526
- J2(() => ((C.current !== r || !s2(m.current, o)) && (C.current = r, m.current = o, g()), r._subscribe({
526
+ J2(() => ((C.current !== r || !s2(h.current, o)) && (C.current = r, h.current = o, f()), r._subscribe({
527
527
  name: o,
528
528
  formState: {
529
529
  values: !0
530
530
  },
531
531
  exact: a,
532
532
  callback: (k) => {
533
- g(k.values);
533
+ f(k.values);
534
534
  }
535
- })), [r, a, o, g]), M.useEffect(() => r._removeUnmounted());
536
- const v = C.current !== r, x = m.current, b = M.useMemo(() => {
535
+ })), [r, a, o, f]), M.useEffect(() => r._removeUnmounted());
536
+ const w = C.current !== r, x = h.current, b = M.useMemo(() => {
537
537
  if (i)
538
538
  return null;
539
- const k = !v && !s2(x, o);
540
- return v || k ? w() : null;
541
- }, [i, v, o, x, w]);
539
+ const k = !w && !s2(x, o);
540
+ return w || k ? v() : null;
541
+ }, [i, w, o, x, v]);
542
542
  return b !== null ? b : L;
543
543
  }
544
544
  function W(e) {
@@ -551,13 +551,13 @@ function W(e) {
551
551
  control: s,
552
552
  name: r,
553
553
  exact: l
554
- }), m = M.useRef(e), L = M.useRef(void 0), y = M.useRef(s.register(r, {
554
+ }), h = M.useRef(e), L = M.useRef(void 0), y = M.useRef(s.register(r, {
555
555
  ...e.rules,
556
556
  value: d,
557
557
  ...C2(e.disabled) ? { disabled: e.disabled } : {}
558
558
  }));
559
- m.current = e;
560
- const w = M.useMemo(() => Object.defineProperties({}, {
559
+ h.current = e;
560
+ const v = M.useMemo(() => Object.defineProperties({}, {
561
561
  invalid: {
562
562
  enumerable: !0,
563
563
  get: () => !!D(C.errors, r)
@@ -578,50 +578,50 @@ function W(e) {
578
578
  enumerable: !0,
579
579
  get: () => D(C.errors, r)
580
580
  }
581
- }), [C, r]), g = M.useCallback((k) => y.current.onChange({
581
+ }), [C, r]), f = M.useCallback((k) => y.current.onChange({
582
582
  target: {
583
583
  value: M0(k),
584
584
  name: r
585
585
  },
586
586
  type: E2.CHANGE
587
- }), [r]), v = M.useCallback(() => y.current.onBlur({
587
+ }), [r]), w = M.useCallback(() => y.current.onBlur({
588
588
  target: {
589
589
  value: D(s._formValues, r),
590
590
  name: r
591
591
  },
592
592
  type: E2.BLUR
593
593
  }), [r, s._formValues]), x = M.useCallback((k) => {
594
- const f = D(s._fields, r);
595
- f && f._f && k && (f._f.ref = {
594
+ const m = D(s._fields, r);
595
+ m && m._f && k && (m._f.ref = {
596
596
  focus: () => r2(k.focus) && k.focus(),
597
597
  select: () => r2(k.select) && k.select(),
598
- setCustomValidity: (h) => r2(k.setCustomValidity) && k.setCustomValidity(h),
598
+ setCustomValidity: (g) => r2(k.setCustomValidity) && k.setCustomValidity(g),
599
599
  reportValidity: () => r2(k.reportValidity) && k.reportValidity()
600
600
  });
601
601
  }, [s._fields, r]), b = M.useMemo(() => ({
602
602
  name: r,
603
603
  value: d,
604
604
  ...C2(o) || C.disabled ? { disabled: C.disabled || o } : {},
605
- onChange: g,
606
- onBlur: v,
605
+ onChange: f,
606
+ onBlur: w,
607
607
  ref: x
608
- }), [r, o, C.disabled, g, v, x, d]);
608
+ }), [r, o, C.disabled, f, w, x, d]);
609
609
  return M.useEffect(() => {
610
- const k = s._options.shouldUnregister || i, f = L.current;
611
- f && f !== r && !c && s.unregister(f), s.register(r, {
612
- ...m.current.rules,
613
- ...C2(m.current.disabled) ? { disabled: m.current.disabled } : {}
610
+ const k = s._options.shouldUnregister || i, m = L.current;
611
+ m && m !== r && !c && s.unregister(m), s.register(r, {
612
+ ...h.current.rules,
613
+ ...C2(h.current.disabled) ? { disabled: h.current.disabled } : {}
614
614
  });
615
- const h = (_, z) => {
615
+ const g = (_, z) => {
616
616
  const H = D(s._fields, _);
617
617
  H && H._f && (H._f.mount = z);
618
618
  };
619
- if (h(r, !0), k) {
620
- const _ = q2(D(s._options.defaultValues, r, m.current.defaultValue));
619
+ if (g(r, !0), k) {
620
+ const _ = q2(D(s._options.defaultValues, r, h.current.defaultValue));
621
621
  $2(s._defaultValues, r, _), f2(D(s._formValues, r)) && $2(s._formValues, r, _);
622
622
  }
623
623
  return !c && s.register(r), L.current = r, () => {
624
- (c ? k && !s._state.action : k) ? s.unregister(r) : h(r, !1);
624
+ (c ? k && !s._state.action : k) ? s.unregister(r) : g(r, !1);
625
625
  };
626
626
  }, [r, s, c, i]), M.useEffect(() => {
627
627
  s._setDisabledField({
@@ -631,8 +631,8 @@ function W(e) {
631
631
  }, [o, r, s]), M.useMemo(() => ({
632
632
  field: b,
633
633
  formState: C,
634
- fieldState: w
635
- }), [b, C, w]);
634
+ fieldState: v
635
+ }), [b, C, v]);
636
636
  }
637
637
  const U0 = M.createContext(null);
638
638
  U0.displayName = "HookFormContext";
@@ -649,17 +649,17 @@ const X2 = ({
649
649
  fullWidth: p = !1,
650
650
  className: d = "",
651
651
  allowClear: C = !1,
652
- showSearch: m = !1,
652
+ showSearch: h = !1,
653
653
  searchPlaceholder: L = "Search...",
654
654
  bgColor: y,
655
- borderColor: w,
656
- focusBorderColor: g = "#EC615B",
657
- selectedBgColor: v,
655
+ borderColor: v,
656
+ focusBorderColor: f = "#EC615B",
657
+ selectedBgColor: w,
658
658
  selectedTextColor: x,
659
659
  hoverBgColor: b,
660
660
  rounded: k = "lg",
661
- style: f,
662
- label: h,
661
+ style: m,
662
+ label: g,
663
663
  error: _,
664
664
  helperText: z
665
665
  }) => {
@@ -668,15 +668,15 @@ const X2 = ({
668
668
  const F = (Y) => {
669
669
  S.current && !S.current.contains(Y.target) && (B(!1), V(""), H && (i == null || i()));
670
670
  };
671
- return H && (document.addEventListener("mousedown", F), m && $.current && $.current.focus()), () => {
671
+ return H && (document.addEventListener("mousedown", F), h && $.current && $.current.focus()), () => {
672
672
  document.removeEventListener("mousedown", F);
673
673
  };
674
- }, [H, m]);
674
+ }, [H, h]);
675
675
  const c2 = (F) => {
676
676
  t === void 0 && E(F), s == null || s(F), B(!1), V("");
677
677
  }, P = (F) => {
678
678
  F.stopPropagation(), t === void 0 && E(void 0), s == null || s("");
679
- }, K = e.find((F) => F.value === G), Q = m ? e.filter(
679
+ }, K = e.find((F) => F.value === G), Q = h ? e.filter(
680
680
  (F) => F.label.toLowerCase().includes(N.toLowerCase())
681
681
  ) : e, d2 = {
682
682
  sm: "px-3 py-1.5 text-sm",
@@ -691,10 +691,10 @@ const X2 = ({
691
691
  full: "rounded-full"
692
692
  }, u0 = p ? "w-full" : "min-w-[200px]", p2 = () => {
693
693
  const F = {};
694
- return y && (F.backgroundColor = y), w && (F.borderColor = w), F;
694
+ return y && (F.backgroundColor = y), v && (F.borderColor = v), F;
695
695
  }, f0 = () => {
696
696
  const F = {};
697
- return v && (F.backgroundColor = v), x && (F.color = x), F;
697
+ return w && (F.backgroundColor = w), x && (F.color = x), F;
698
698
  }, h0 = /* @__PURE__ */ n(
699
699
  "svg",
700
700
  {
@@ -705,8 +705,8 @@ const X2 = ({
705
705
  children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" })
706
706
  }
707
707
  ), m0 = /* @__PURE__ */ n("svg", { className: "w-4 h-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) });
708
- return /* @__PURE__ */ u("div", { className: `relative inline-block ${u0}`, style: f, children: [
709
- h && /* @__PURE__ */ n("label", { className: "block text-sm font-medium mb-2", style: { color: _ ? "#C21919" : "#181918" }, children: h }),
708
+ return /* @__PURE__ */ u("div", { className: `relative inline-block ${u0}`, style: m, children: [
709
+ g && /* @__PURE__ */ n("label", { className: "block text-sm font-medium mb-2", style: { color: _ ? "#C21919" : "#181918" }, children: g }),
710
710
  /* @__PURE__ */ u("div", { ref: S, className: "relative", children: [
711
711
  /* @__PURE__ */ n("input", { type: "hidden", name: a, value: G ?? "", readOnly: !0 }),
712
712
  /* @__PURE__ */ u(
@@ -726,10 +726,10 @@ const X2 = ({
726
726
  style: {
727
727
  ...p2(),
728
728
  backgroundColor: y || p2().backgroundColor || "#FFFFFF",
729
- borderColor: _ ? "#C21919" : w || p2().borderColor || "#D1D5DB",
729
+ borderColor: _ ? "#C21919" : v || p2().borderColor || "#D1D5DB",
730
730
  ...H && {
731
- borderColor: _ ? "#C21919" : g,
732
- boxShadow: `0 0 0 2px ${_ ? "#C21919" : g}20`
731
+ borderColor: _ ? "#C21919" : f,
732
+ boxShadow: `0 0 0 2px ${_ ? "#C21919" : f}20`
733
733
  },
734
734
  ...!l && !H && b && {
735
735
  cursor: "pointer"
@@ -758,7 +758,7 @@ const X2 = ({
758
758
  }
759
759
  ),
760
760
  H && !l && /* @__PURE__ */ n("div", { className: "absolute top-full left-0 right-0 mt-1 z-50 dropdown-slide-down", children: /* @__PURE__ */ u("div", { className: `select-dropdown bg-white shadow-lg border border-gray-200 py-1 max-h-[300px] overflow-auto ${N2[k]}`, children: [
761
- m && /* @__PURE__ */ n("div", { className: "px-2 py-2 border-b border-gray-200", children: /* @__PURE__ */ n(
761
+ h && /* @__PURE__ */ n("div", { className: "px-2 py-2 border-b border-gray-200", children: /* @__PURE__ */ n(
762
762
  "input",
763
763
  {
764
764
  ref: $,
@@ -768,8 +768,8 @@ const X2 = ({
768
768
  placeholder: L,
769
769
  className: "w-full px-3 py-1.5 text-sm border border-gray-300 rounded focus:outline-none focus:ring-2 transition-all duration-200 ease-out",
770
770
  style: {
771
- borderColor: w,
772
- boxShadow: `0 0 0 2px ${g}20`
771
+ borderColor: v,
772
+ boxShadow: `0 0 0 2px ${f}20`
773
773
  },
774
774
  onClick: (F) => F.stopPropagation()
775
775
  }
@@ -785,7 +785,7 @@ const X2 = ({
785
785
  `,
786
786
  style: {
787
787
  ...F.value === G ? f0() : {},
788
- backgroundColor: F.value === G ? v || "#FCEAE9" : void 0,
788
+ backgroundColor: F.value === G ? w || "#FCEAE9" : void 0,
789
789
  color: F.value === G ? x || "#EC615B" : "#181918",
790
790
  fontWeight: F.value === G ? "medium" : void 0
791
791
  },
@@ -846,17 +846,17 @@ const X2 = ({
846
846
  size: p = "md",
847
847
  headerBgColor: d,
848
848
  headerTextColor: C,
849
- rowHoverColor: m,
849
+ rowHoverColor: h,
850
850
  borderColor: L,
851
851
  stripedRowColor: y,
852
- rounded: w = "md",
853
- style: g
852
+ rounded: v = "md",
853
+ style: f
854
854
  }) => {
855
- const [v, x] = R(
855
+ const [w, x] = R(
856
856
  o && typeof o == "object" && o.current || 1
857
857
  ), [b, k] = R(
858
858
  o && typeof o == "object" && o.pageSize || 10
859
- ), f = {
859
+ ), m = {
860
860
  sm: {
861
861
  headerPadding: "px-3 py-2",
862
862
  headerFontSize: "text-xs",
@@ -885,19 +885,19 @@ const X2 = ({
885
885
  rowFontSize: "text-xs sm:text-xs md:text-sm",
886
886
  containerRounded: "rounded-md sm:rounded-lg md:rounded-lg"
887
887
  }
888
- }, h = {
888
+ }, g = {
889
889
  none: "",
890
890
  sm: "rounded-sm",
891
891
  md: "rounded-md",
892
892
  lg: "rounded-lg",
893
893
  xl: "rounded-xl",
894
894
  "2xl": "rounded-2xl"
895
- }, _ = f[p], z = h[w], H = (V, S) => typeof r == "function" ? r(V) : V[r] || String(S), B = (V, S) => S ? S.split(".").reduce(($, G) => $ == null ? void 0 : $[G], V) : V, U = o === !1 ? t : t.slice((v - 1) * b, v * b), E = (V) => {
895
+ }, _ = m[p], z = g[v], H = (V, S) => typeof r == "function" ? r(V) : V[r] || String(S), B = (V, S) => S ? S.split(".").reduce(($, G) => $ == null ? void 0 : $[G], V) : V, U = o === !1 ? t : t.slice((w - 1) * b, w * b), E = (V) => {
896
896
  x(V), o && typeof o == "object" && o.onChange && o.onChange(V, b);
897
897
  }, N = (V) => {
898
898
  k(V), x(1), o && typeof o == "object" && o.onChange && o.onChange(1, V);
899
899
  };
900
- return /* @__PURE__ */ u("div", { className: "w-full", style: g, children: [
900
+ return /* @__PURE__ */ u("div", { className: "w-full", style: f, children: [
901
901
  /* @__PURE__ */ n(
902
902
  "div",
903
903
  {
@@ -980,7 +980,7 @@ const X2 = ({
980
980
  children: "No data"
981
981
  }
982
982
  ) }) : U.map((V, S) => {
983
- const $ = i ? i(V, S) : {}, G = c && S % 2 === 1 ? y || "#F5F6F7" : "transparent", c2 = m || "#f3f4f6";
983
+ const $ = i ? i(V, S) : {}, G = c && S % 2 === 1 ? y || "#F5F6F7" : "transparent", c2 = h || "#f3f4f6";
984
984
  return /* @__PURE__ */ n(
985
985
  "tr",
986
986
  {
@@ -989,7 +989,7 @@ const X2 = ({
989
989
  backgroundColor: G
990
990
  },
991
991
  onMouseEnter: (P) => {
992
- (m || !c || S % 2 === 0) && (P.currentTarget.style.backgroundColor = c2);
992
+ (h || !c || S % 2 === 0) && (P.currentTarget.style.backgroundColor = c2);
993
993
  },
994
994
  onMouseLeave: (P) => {
995
995
  P.currentTarget.style.backgroundColor = G;
@@ -1021,7 +1021,7 @@ const X2 = ({
1021
1021
  o !== !1 && /* @__PURE__ */ n(
1022
1022
  Z0,
1023
1023
  {
1024
- current: v,
1024
+ current: w,
1025
1025
  pageSize: b,
1026
1026
  total: t.length,
1027
1027
  onChange: E,
@@ -1044,7 +1044,7 @@ const X2 = ({
1044
1044
  showTotal: l = !0,
1045
1045
  size: c = "md"
1046
1046
  }) => {
1047
- const p = Math.ceil(r / t), d = (e - 1) * t + 1, C = Math.min(e * t, r), m = {
1047
+ const p = Math.ceil(r / t), d = (e - 1) * t + 1, C = Math.min(e * t, r), h = {
1048
1048
  sm: {
1049
1049
  button: "px-2.5 py-1 text-xs",
1050
1050
  icon: "h-3.5 w-3.5",
@@ -1063,17 +1063,17 @@ const X2 = ({
1063
1063
  }, L = () => {
1064
1064
  const y = [];
1065
1065
  if (p <= 7)
1066
- for (let g = 1; g <= p; g++)
1067
- y.push(g);
1066
+ for (let f = 1; f <= p; f++)
1067
+ y.push(f);
1068
1068
  else if (e <= 3) {
1069
- for (let g = 1; g <= 5; g++) y.push(g);
1069
+ for (let f = 1; f <= 5; f++) y.push(f);
1070
1070
  y.push("..."), y.push(p);
1071
1071
  } else if (e >= p - 2) {
1072
1072
  y.push(1), y.push("...");
1073
- for (let g = p - 4; g <= p; g++) y.push(g);
1073
+ for (let f = p - 4; f <= p; f++) y.push(f);
1074
1074
  } else {
1075
1075
  y.push(1), y.push("...");
1076
- for (let g = e - 1; g <= e + 1; g++) y.push(g);
1076
+ for (let f = e - 1; f <= e + 1; f++) y.push(f);
1077
1077
  y.push("..."), y.push(p);
1078
1078
  }
1079
1079
  return y;
@@ -1107,8 +1107,8 @@ const X2 = ({
1107
1107
  {
1108
1108
  onClick: () => o(e - 1),
1109
1109
  disabled: e === 1,
1110
- className: `relative inline-flex items-center justify-center rounded-md ${m[c].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
1111
- children: /* @__PURE__ */ n("svg", { className: m[c].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ n(
1110
+ className: `relative inline-flex items-center justify-center rounded-md ${h[c].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
1111
+ children: /* @__PURE__ */ n("svg", { className: h[c].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ n(
1112
1112
  "path",
1113
1113
  {
1114
1114
  strokeLinecap: "round",
@@ -1119,18 +1119,18 @@ const X2 = ({
1119
1119
  ) })
1120
1120
  }
1121
1121
  ),
1122
- L().map((y, w) => y === "..." ? /* @__PURE__ */ n(
1122
+ L().map((y, v) => y === "..." ? /* @__PURE__ */ n(
1123
1123
  "span",
1124
1124
  {
1125
- className: `relative inline-flex items-center justify-center ${m[c].button} font-normal text-[#181918]`,
1125
+ className: `relative inline-flex items-center justify-center ${h[c].button} font-normal text-[#181918]`,
1126
1126
  children: "..."
1127
1127
  },
1128
- `ellipsis-${w}`
1128
+ `ellipsis-${v}`
1129
1129
  ) : /* @__PURE__ */ n(
1130
1130
  "button",
1131
1131
  {
1132
1132
  onClick: () => o(y),
1133
- className: `relative inline-flex items-center justify-center rounded-md ${m[c].button} font-medium transition-all duration-300 ease-out focus:z-20 hover:scale-105 active:scale-95 ${e === y ? "bg-[#EC615B] text-white shadow-sm" : "text-[#181918] hover:bg-gray-100"}`,
1133
+ className: `relative inline-flex items-center justify-center rounded-md ${h[c].button} font-medium transition-all duration-300 ease-out focus:z-20 hover:scale-105 active:scale-95 ${e === y ? "bg-[#EC615B] text-white shadow-sm" : "text-[#181918] hover:bg-gray-100"}`,
1134
1134
  children: y
1135
1135
  },
1136
1136
  y
@@ -1140,8 +1140,8 @@ const X2 = ({
1140
1140
  {
1141
1141
  onClick: () => o(e + 1),
1142
1142
  disabled: e === p,
1143
- className: `relative inline-flex items-center justify-center rounded-md ${m[c].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
1144
- children: /* @__PURE__ */ n("svg", { className: m[c].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ n(
1143
+ className: `relative inline-flex items-center justify-center rounded-md ${h[c].nav} text-[#181918] hover:bg-gray-100 focus:z-20 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-transparent transition-all duration-300 ease-out hover:scale-110 active:scale-95`,
1144
+ children: /* @__PURE__ */ n("svg", { className: h[c].icon, viewBox: "0 0 20 20", fill: "none", stroke: "currentColor", children: /* @__PURE__ */ n(
1145
1145
  "path",
1146
1146
  {
1147
1147
  strokeLinecap: "round",
@@ -1168,13 +1168,13 @@ const X2 = ({
1168
1168
  descriptionColor: p,
1169
1169
  searchBgColor: d = "white",
1170
1170
  searchBorderColor: C = "#d1d5db",
1171
- searchFocusBorderColor: m = "#3b82f6",
1171
+ searchFocusBorderColor: h = "#3b82f6",
1172
1172
  rounded: L = "md",
1173
1173
  style: y,
1174
- hideActionButtons: w = !1,
1175
- selectedActionButton: g
1174
+ hideActionButtons: v = !1,
1175
+ selectedActionButton: f
1176
1176
  }) => {
1177
- const v = (_) => {
1177
+ const w = (_) => {
1178
1178
  o == null || o(_.target.value);
1179
1179
  }, b = {
1180
1180
  sm: {
@@ -1229,13 +1229,13 @@ const X2 = ({
1229
1229
  maxWidth: "max-w-sm md:max-w-md lg:max-w-lg",
1230
1230
  descriptionMargin: "mt-0.5 sm:mt-1 md:mt-2"
1231
1231
  }
1232
- }[l], f = {
1232
+ }[l], m = {
1233
1233
  none: "rounded-none",
1234
1234
  sm: "rounded-sm",
1235
1235
  md: "rounded-md",
1236
1236
  lg: "rounded-lg",
1237
1237
  full: "rounded-full"
1238
- }[L], h = {
1238
+ }[L], g = {
1239
1239
  backgroundColor: d,
1240
1240
  borderColor: C
1241
1241
  };
@@ -1288,11 +1288,11 @@ const X2 = ({
1288
1288
  {
1289
1289
  type: "text",
1290
1290
  placeholder: r,
1291
- onChange: v,
1292
- className: `block w-full ${b.searchPaddingLeft} pr-3 ${b.searchInputPy} border ${f} focus:outline-none focus:ring-2 focus:ring-opacity-50 ${b.searchInputSize} transition-colors duration-200`,
1293
- style: h,
1291
+ onChange: w,
1292
+ className: `block w-full ${b.searchPaddingLeft} pr-3 ${b.searchInputPy} border ${m} focus:outline-none focus:ring-2 focus:ring-opacity-50 ${b.searchInputSize} transition-colors duration-200`,
1293
+ style: g,
1294
1294
  onFocus: (_) => {
1295
- _.currentTarget.style.borderColor = m, _.currentTarget.style.boxShadow = "0 0 0 2px rgba(59, 130, 246, 0.1)";
1295
+ _.currentTarget.style.borderColor = h, _.currentTarget.style.boxShadow = "0 0 0 2px rgba(59, 130, 246, 0.1)";
1296
1296
  },
1297
1297
  onBlur: (_) => {
1298
1298
  _.currentTarget.style.borderColor = C, _.currentTarget.style.boxShadow = "none";
@@ -1300,7 +1300,7 @@ const X2 = ({
1300
1300
  }
1301
1301
  )
1302
1302
  ] }) }),
1303
- /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: w && g ? g : s })
1303
+ /* @__PURE__ */ n("div", { className: "flex items-center gap-2 w-full sm:w-auto", children: v && f ? f : s })
1304
1304
  ] }),
1305
1305
  i && /* @__PURE__ */ n("div", { className: `flex flex-wrap items-center ${b.gap}`, children: i })
1306
1306
  ]
@@ -1326,18 +1326,18 @@ const X2 = ({
1326
1326
  centered: p = !0,
1327
1327
  className: d = "",
1328
1328
  bgColor: C = "#ffffff",
1329
- headerBgColor: m = "#ffffff",
1329
+ headerBgColor: h = "#ffffff",
1330
1330
  overlayColor: L = "rgba(0, 0, 0, 0.5)",
1331
1331
  bodyClassName: y = "",
1332
- headerClassName: w = "",
1333
- maxHeight: g = "70vh"
1332
+ headerClassName: v = "",
1333
+ maxHeight: f = "70vh"
1334
1334
  }) => {
1335
- const [v, x] = R(!1), [b, k] = R(!1), f = i || O0[a], _ = {
1336
- width: typeof f == "number" ? `${f}px` : f,
1335
+ const [w, x] = R(!1), [b, k] = R(!1), m = i || O0[a], _ = {
1336
+ width: typeof m == "number" ? `${m}px` : m,
1337
1337
  maxWidth: "90vw",
1338
1338
  backgroundColor: C
1339
1339
  }, z = {
1340
- backgroundColor: m
1340
+ backgroundColor: h
1341
1341
  }, H = {
1342
1342
  backgroundColor: L
1343
1343
  };
@@ -1358,7 +1358,7 @@ const X2 = ({
1358
1358
  return e && document.addEventListener("keydown", E), () => {
1359
1359
  document.removeEventListener("keydown", E);
1360
1360
  };
1361
- }, [e, t, l]), !v) return null;
1361
+ }, [e, t, l]), !w) return null;
1362
1362
  const B = () => {
1363
1363
  c && t();
1364
1364
  }, U = (E) => {
@@ -1381,13 +1381,13 @@ const X2 = ({
1381
1381
  "div",
1382
1382
  {
1383
1383
  className: `relative rounded-lg shadow-xl transition-all duration-200 ease-out overflow-y-auto ${b ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 -translate-y-4"} ${d}`,
1384
- style: { ..._, maxHeight: typeof g == "number" ? `${g}px` : g },
1384
+ style: { ..._, maxHeight: typeof f == "number" ? `${f}px` : f },
1385
1385
  onClick: U,
1386
1386
  children: [
1387
1387
  (r || l) && /* @__PURE__ */ u(
1388
1388
  "div",
1389
1389
  {
1390
- className: `flex items-center justify-between px-6 py-4 border-b border-gray-200 ${w}`,
1390
+ className: `flex items-center justify-between px-6 py-4 border-b border-gray-200 ${v}`,
1391
1391
  style: z,
1392
1392
  children: [
1393
1393
  r && /* @__PURE__ */ n("h3", { className: "text-lg font-semibold text-gray-900", children: r }),
@@ -1447,7 +1447,7 @@ const X2 = ({
1447
1447
  rounded: d = "full",
1448
1448
  style: C
1449
1449
  }) => {
1450
- const m = {
1450
+ const h = {
1451
1451
  default: "bg-gray-100 text-[#181918]",
1452
1452
  primary: "bg-[#FCEAE9] text-[#EC615B]",
1453
1453
  success: "bg-green-100 text-green-800",
@@ -1464,19 +1464,19 @@ const X2 = ({
1464
1464
  md: "w-2 h-2",
1465
1465
  lg: "w-2.5 h-2.5",
1466
1466
  responsive: "w-1 h-1 sm:w-1.5 sm:h-1.5 md:w-2 md:h-2 lg:w-2.5 lg:h-2.5"
1467
- }, w = {
1467
+ }, v = {
1468
1468
  default: "bg-gray-600",
1469
1469
  primary: "bg-[#EC615B]",
1470
1470
  success: "bg-green-600",
1471
1471
  warning: "bg-yellow-600",
1472
1472
  danger: "bg-red-600",
1473
1473
  info: "bg-cyan-600"
1474
- }, g = {
1474
+ }, f = {
1475
1475
  sm: "w-3 h-3",
1476
1476
  md: "w-3.5 h-3.5",
1477
1477
  lg: "w-4 h-4",
1478
1478
  responsive: "w-2.5 h-2.5 sm:w-3 sm:h-3 md:w-3.5 md:h-3.5 lg:w-4 lg:h-4"
1479
- }, v = {
1479
+ }, w = {
1480
1480
  none: "rounded-none",
1481
1481
  sm: "rounded-sm",
1482
1482
  md: "rounded-md",
@@ -1491,13 +1491,13 @@ const X2 = ({
1491
1491
  return /* @__PURE__ */ u(
1492
1492
  "span",
1493
1493
  {
1494
- className: `inline-flex items-center gap-1.5 font-medium transition-all duration-200 ${l ? "" : m[t]} ${L[r]} ${v[d]} ${a}`,
1494
+ className: `inline-flex items-center gap-1.5 font-medium transition-all duration-200 ${l ? "" : h[t]} ${L[r]} ${w[d]} ${a}`,
1495
1495
  style: x,
1496
1496
  children: [
1497
- o && /* @__PURE__ */ n("span", { className: `rounded-full ${y[r]} ${w[t]}` }),
1498
- s && i === "left" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${g[r]}`, children: s }),
1497
+ o && /* @__PURE__ */ n("span", { className: `rounded-full ${y[r]} ${v[t]}` }),
1498
+ s && i === "left" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${f[r]}`, children: s }),
1499
1499
  e,
1500
- s && i === "right" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${g[r]}`, children: s })
1500
+ s && i === "right" && /* @__PURE__ */ n("span", { className: `inline-flex items-center ${f[r]}`, children: s })
1501
1501
  ]
1502
1502
  }
1503
1503
  );
@@ -1515,7 +1515,7 @@ const X2 = ({
1515
1515
  errorColor: d,
1516
1516
  lineColor: C
1517
1517
  }) => {
1518
- const m = (x, b) => b.status ? b.status : x < t ? "finish" : x === t ? "process" : "wait", L = {
1518
+ const h = (x, b) => b.status ? b.status : x < t ? "finish" : x === t ? "process" : "wait", L = {
1519
1519
  sm: "w-6 h-6",
1520
1520
  md: "w-8 h-8",
1521
1521
  lg: "w-10 h-10",
@@ -1525,12 +1525,12 @@ const X2 = ({
1525
1525
  md: "text-base",
1526
1526
  lg: "text-lg",
1527
1527
  responsive: "text-xs sm:text-sm md:text-base lg:text-lg"
1528
- }, w = {
1528
+ }, v = {
1529
1529
  sm: "text-xs",
1530
1530
  md: "text-sm",
1531
1531
  lg: "text-base",
1532
1532
  responsive: "text-xs sm:text-xs md:text-sm lg:text-base"
1533
- }, g = (x, b) => b || (x === "finish" ? /* @__PURE__ */ n("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1533
+ }, f = (x, b) => b || (x === "finish" ? /* @__PURE__ */ n("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
1534
1534
  "path",
1535
1535
  {
1536
1536
  fillRule: "evenodd",
@@ -1544,7 +1544,7 @@ const X2 = ({
1544
1544
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1545
1545
  clipRule: "evenodd"
1546
1546
  }
1547
- ) }) : null), v = (x) => {
1547
+ ) }) : null), w = (x) => {
1548
1548
  const b = s === "outline";
1549
1549
  switch (x) {
1550
1550
  case "finish":
@@ -1582,57 +1582,57 @@ const X2 = ({
1582
1582
  }
1583
1583
  };
1584
1584
  return r === "horizontal" ? /* @__PURE__ */ n("div", { className: `flex items-start ${i}`, style: a, children: e.map((x, b) => {
1585
- const k = m(b, x), f = v(k), h = b === e.length - 1, _ = {};
1586
- return f.iconColor && (_.color = f.iconColor), /* @__PURE__ */ u("div", { className: "flex flex-1 items-start", children: [
1585
+ const k = h(b, x), m = w(k), g = b === e.length - 1, _ = {};
1586
+ return m.iconColor && (_.color = m.iconColor), /* @__PURE__ */ u("div", { className: "flex flex-1 items-start", children: [
1587
1587
  /* @__PURE__ */ u("div", { className: "flex flex-col items-center", children: [
1588
1588
  /* @__PURE__ */ n(
1589
1589
  "div",
1590
1590
  {
1591
- className: `flex items-center justify-center ${L[o]} rounded-full border transition-all duration-300 ${f.icon}`,
1591
+ className: `flex items-center justify-center ${L[o]} rounded-full border transition-all duration-300 ${m.icon}`,
1592
1592
  style: _,
1593
- children: g(k, x.icon)
1593
+ children: f(k, x.icon)
1594
1594
  }
1595
1595
  ),
1596
1596
  /* @__PURE__ */ u("div", { className: "mt-2 text-center", children: [
1597
1597
  /* @__PURE__ */ n(
1598
1598
  "div",
1599
1599
  {
1600
- className: `${y[o]} ${f.title} transition-colors duration-300`,
1600
+ className: `${y[o]} ${m.title} transition-colors duration-300`,
1601
1601
  children: x.title
1602
1602
  }
1603
1603
  ),
1604
1604
  x.description && /* @__PURE__ */ n(
1605
1605
  "div",
1606
1606
  {
1607
- className: `${w[o]} ${f.description} mt-1 transition-colors duration-300`,
1607
+ className: `${v[o]} ${m.description} mt-1 transition-colors duration-300`,
1608
1608
  children: x.description
1609
1609
  }
1610
1610
  )
1611
1611
  ] })
1612
1612
  ] }),
1613
- !h && /* @__PURE__ */ n(
1613
+ !g && /* @__PURE__ */ n(
1614
1614
  "div",
1615
1615
  {
1616
- className: `flex-1 h-0.5 mt-4 mx-2 ${f.line} transition-colors duration-300`
1616
+ className: `flex-1 h-0.5 mt-4 mx-2 ${m.line} transition-colors duration-300`
1617
1617
  }
1618
1618
  )
1619
1619
  ] }, b);
1620
1620
  }) }) : /* @__PURE__ */ n("div", { className: `flex flex-col ${i}`, style: a, children: e.map((x, b) => {
1621
- const k = m(b, x), f = v(k), h = b === e.length - 1, _ = {};
1622
- return f.iconColor && (_.color = f.iconColor), /* @__PURE__ */ u("div", { className: "flex", children: [
1621
+ const k = h(b, x), m = w(k), g = b === e.length - 1, _ = {};
1622
+ return m.iconColor && (_.color = m.iconColor), /* @__PURE__ */ u("div", { className: "flex", children: [
1623
1623
  /* @__PURE__ */ u("div", { className: "flex flex-col items-center mr-4", children: [
1624
1624
  /* @__PURE__ */ n(
1625
1625
  "div",
1626
1626
  {
1627
- className: `flex items-center justify-center ${L[o]} rounded-full border transition-all duration-300 ${f.icon}`,
1627
+ className: `flex items-center justify-center ${L[o]} rounded-full border transition-all duration-300 ${m.icon}`,
1628
1628
  style: _,
1629
- children: g(k, x.icon)
1629
+ children: f(k, x.icon)
1630
1630
  }
1631
1631
  ),
1632
- !h && /* @__PURE__ */ n(
1632
+ !g && /* @__PURE__ */ n(
1633
1633
  "div",
1634
1634
  {
1635
- className: `w-0.5 flex-1 my-1 ${f.line} transition-colors duration-300`,
1635
+ className: `w-0.5 flex-1 my-1 ${m.line} transition-colors duration-300`,
1636
1636
  style: { minHeight: "20px" }
1637
1637
  }
1638
1638
  )
@@ -1641,14 +1641,14 @@ const X2 = ({
1641
1641
  /* @__PURE__ */ n(
1642
1642
  "div",
1643
1643
  {
1644
- className: `${y[o]} ${f.title} transition-colors duration-300`,
1644
+ className: `${y[o]} ${m.title} transition-colors duration-300`,
1645
1645
  children: x.title
1646
1646
  }
1647
1647
  ),
1648
1648
  x.description && /* @__PURE__ */ n(
1649
1649
  "div",
1650
1650
  {
1651
- className: `${w[o]} ${f.description} mt-1 transition-colors duration-300`,
1651
+ className: `${v[o]} ${m.description} mt-1 transition-colors duration-300`,
1652
1652
  children: x.description
1653
1653
  }
1654
1654
  )
@@ -1668,25 +1668,25 @@ const X2 = ({
1668
1668
  successColor: p,
1669
1669
  exceptionColor: d,
1670
1670
  trackColor: C,
1671
- rounded: m = "full"
1671
+ rounded: h = "full"
1672
1672
  }) => {
1673
1673
  const L = Math.min(100, Math.max(0, e)), y = {
1674
1674
  sm: "h-1.5",
1675
1675
  md: "h-2",
1676
1676
  lg: "h-3",
1677
1677
  responsive: "h-1.5 sm:h-2 md:h-3 lg:h-4"
1678
- }, w = {
1678
+ }, v = {
1679
1679
  sm: "text-xs",
1680
1680
  md: "text-sm",
1681
1681
  lg: "text-base",
1682
1682
  responsive: "text-xs sm:text-sm md:text-base lg:text-lg"
1683
- }, g = {
1683
+ }, f = {
1684
1684
  none: "rounded-none",
1685
1685
  sm: "rounded-sm",
1686
1686
  md: "rounded-md",
1687
1687
  lg: "rounded-lg",
1688
1688
  full: "rounded-full"
1689
- }, v = () => {
1689
+ }, w = () => {
1690
1690
  if (o) return o;
1691
1691
  switch (t) {
1692
1692
  case "success":
@@ -1712,26 +1712,26 @@ const X2 = ({
1712
1712
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",
1713
1713
  clipRule: "evenodd"
1714
1714
  }
1715
- ) }) : null, k = () => l ? l(L) : `${Math.round(L)}%`, f = s ? `${s}px` : void 0;
1715
+ ) }) : null, k = () => l ? l(L) : `${Math.round(L)}%`, m = s ? `${s}px` : void 0;
1716
1716
  return /* @__PURE__ */ u("div", { className: `flex items-center gap-2 ${a}`, children: [
1717
1717
  /* @__PURE__ */ n("div", { className: "flex-1", children: /* @__PURE__ */ n(
1718
1718
  "div",
1719
1719
  {
1720
- className: `w-full overflow-hidden ${y[i]} ${g[m]} ${x()}`,
1721
- style: { height: f },
1720
+ className: `w-full overflow-hidden ${y[i]} ${f[h]} ${x()}`,
1721
+ style: { height: m },
1722
1722
  children: /* @__PURE__ */ n(
1723
1723
  "div",
1724
1724
  {
1725
- className: `${v()} ${y[i]} ${g[m]} transition-all duration-300 ease-out ${t === "active" ? "progress-active" : ""}`,
1725
+ className: `${w()} ${y[i]} ${f[h]} transition-all duration-300 ease-out ${t === "active" ? "progress-active" : ""}`,
1726
1726
  style: {
1727
1727
  width: `${L}%`,
1728
- height: f
1728
+ height: m
1729
1729
  }
1730
1730
  }
1731
1731
  )
1732
1732
  }
1733
1733
  ) }),
1734
- r && /* @__PURE__ */ n("div", { className: `flex items-center gap-1 ${w[i]} text-gray-600 font-normal`, children: b() || k() })
1734
+ r && /* @__PURE__ */ n("div", { className: `flex items-center gap-1 ${v[i]} text-gray-600 font-normal`, children: b() || k() })
1735
1735
  ] });
1736
1736
  }, J1 = ({
1737
1737
  checked: e,
@@ -1746,34 +1746,34 @@ const X2 = ({
1746
1746
  name: p,
1747
1747
  value: d,
1748
1748
  checkedColor: C = "#EC615B",
1749
- uncheckedColor: m = "#ffffff",
1749
+ uncheckedColor: h = "#ffffff",
1750
1750
  checkedBorderColor: L = "#EC615B",
1751
1751
  style: y
1752
1752
  }) => {
1753
- const [w, g] = R(t), v = e !== void 0, x = v ? e : w, b = (B) => {
1753
+ const [v, f] = R(t), w = e !== void 0, x = w ? e : v, b = (B) => {
1754
1754
  if (o) return;
1755
1755
  const U = B.target.checked;
1756
- v || g(U), r == null || r(U);
1756
+ w || f(U), r == null || r(U);
1757
1757
  }, k = {
1758
1758
  sm: "w-4 h-4",
1759
1759
  md: "w-5 h-5",
1760
1760
  lg: "w-6 h-6",
1761
1761
  responsive: "w-4 h-4 sm:w-5 sm:h-5 lg:w-6 lg:h-6"
1762
- }, f = {
1762
+ }, m = {
1763
1763
  sm: "w-3 h-3",
1764
1764
  md: "w-3.5 h-3.5",
1765
1765
  lg: "w-4 h-4",
1766
1766
  responsive: "w-2.5 h-2.5 sm:w-3.5 sm:h-3.5 lg:w-4 lg:h-4"
1767
- }, h = a === "filled", _ = () => o ? "cursor-not-allowed opacity-50 border-gray-300 bg-gray-100" : !x && !s ? "border-gray-300 bg-white hover:border-gray-400" : "", z = () => {
1767
+ }, g = a === "filled", _ = () => o ? "cursor-not-allowed opacity-50 border-gray-300 bg-gray-100" : !x && !s ? "border-gray-300 bg-white hover:border-gray-400" : "", z = () => {
1768
1768
  if (!o && !(!x && !s))
1769
- return h ? {
1769
+ return g ? {
1770
1770
  borderColor: L,
1771
1771
  backgroundColor: C
1772
1772
  } : {
1773
1773
  borderColor: L,
1774
- backgroundColor: m
1774
+ backgroundColor: h
1775
1775
  };
1776
- }, H = () => h && (x || s) ? "text-white" : "";
1776
+ }, H = () => g && (x || s) ? "text-white" : "";
1777
1777
  return /* @__PURE__ */ u("div", { className: "inline-flex items-center", style: y, children: [
1778
1778
  /* @__PURE__ */ n(
1779
1779
  "input",
@@ -1807,22 +1807,22 @@ const X2 = ({
1807
1807
  x && !s && /* @__PURE__ */ n(
1808
1808
  "svg",
1809
1809
  {
1810
- className: `${f[i]} ${H()}`,
1810
+ className: `${m[i]} ${H()}`,
1811
1811
  fill: "none",
1812
1812
  stroke: "currentColor",
1813
1813
  viewBox: "0 0 24 24",
1814
1814
  strokeWidth: 3,
1815
- style: !h && (x || s) ? { color: C } : void 0,
1815
+ style: !g && (x || s) ? { color: C } : void 0,
1816
1816
  children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
1817
1817
  }
1818
1818
  ),
1819
1819
  s && /* @__PURE__ */ n(
1820
1820
  "svg",
1821
1821
  {
1822
- className: `${f[i]} ${H()}`,
1822
+ className: `${m[i]} ${H()}`,
1823
1823
  fill: "currentColor",
1824
1824
  viewBox: "0 0 24 24",
1825
- style: !h && (x || s) ? { color: C } : void 0,
1825
+ style: !g && (x || s) ? { color: C } : void 0,
1826
1826
  children: /* @__PURE__ */ n("rect", { x: "4", y: "11", width: "16", height: "2", rx: "1" })
1827
1827
  }
1828
1828
  )
@@ -1882,11 +1882,11 @@ const X2 = ({
1882
1882
  textColor: p,
1883
1883
  sublabelColor: d,
1884
1884
  removeButtonColor: C,
1885
- removeButtonHoverColor: m,
1885
+ removeButtonHoverColor: h,
1886
1886
  rounded: L = "md",
1887
1887
  style: y
1888
1888
  }) => {
1889
- const w = D0(a), g = R0(L), v = "#F4F4F4", x = "#EBEBEB", b = "#181918", k = "#999999", f = "#9CA3AF", h = "#EC615B", _ = l || v, z = c || x, H = p || b, B = d || k, U = C || f, E = m || h;
1889
+ const v = D0(a), f = R0(L), w = "#F4F4F4", x = "#EBEBEB", b = "#181918", k = "#999999", m = "#9CA3AF", g = "#EC615B", _ = l || w, z = c || x, H = p || b, B = d || k, U = C || m, E = h || g;
1890
1890
  return e.length === 0 ? /* @__PURE__ */ n(
1891
1891
  "div",
1892
1892
  {
@@ -1900,14 +1900,14 @@ const X2 = ({
1900
1900
  ) : /* @__PURE__ */ n(
1901
1901
  "div",
1902
1902
  {
1903
- className: `overflow-y-auto ${w.container} ${o}`,
1903
+ className: `overflow-y-auto ${v.container} ${o}`,
1904
1904
  style: { maxHeight: i, ...y },
1905
1905
  children: e.map((N, V) => /* @__PURE__ */ u(
1906
1906
  "div",
1907
1907
  {
1908
1908
  className: `
1909
1909
  group flex items-center justify-between
1910
- ${g}
1910
+ ${f}
1911
1911
  transition-all duration-300 ease-out
1912
1912
  hover:shadow-sm
1913
1913
  animate-slide-in-item
@@ -1924,11 +1924,11 @@ const X2 = ({
1924
1924
  S.currentTarget.style.backgroundColor = _;
1925
1925
  },
1926
1926
  children: [
1927
- /* @__PURE__ */ u("div", { className: `flex-1 min-w-0 ${w.item}`, children: [
1927
+ /* @__PURE__ */ u("div", { className: `flex-1 min-w-0 ${v.item}`, children: [
1928
1928
  N.sublabel && /* @__PURE__ */ n(
1929
1929
  "div",
1930
1930
  {
1931
- className: `font-normal mb-0.5 ${w.sublabel}`,
1931
+ className: `font-normal mb-0.5 ${v.sublabel}`,
1932
1932
  style: { color: B },
1933
1933
  children: N.sublabel
1934
1934
  }
@@ -1936,7 +1936,7 @@ const X2 = ({
1936
1936
  /* @__PURE__ */ n(
1937
1937
  "div",
1938
1938
  {
1939
- className: `font-medium truncate ${w.label}`,
1939
+ className: `font-medium truncate ${v.label}`,
1940
1940
  style: { color: H },
1941
1941
  children: N.label
1942
1942
  }
@@ -1953,7 +1953,7 @@ const X2 = ({
1953
1953
  hover:scale-110
1954
1954
  active:scale-95
1955
1955
  focus:outline-none focus:ring-2 focus:ring-opacity-50
1956
- ${w.button}
1956
+ ${v.button}
1957
1957
  `,
1958
1958
  style: {
1959
1959
  color: U
@@ -1968,7 +1968,7 @@ const X2 = ({
1968
1968
  children: /* @__PURE__ */ n(
1969
1969
  "svg",
1970
1970
  {
1971
- className: w.icon,
1971
+ className: v.icon,
1972
1972
  fill: "none",
1973
1973
  stroke: "currentColor",
1974
1974
  viewBox: "0 0 24 24",
@@ -2177,44 +2177,44 @@ const e0 = ({
2177
2177
  const [p, d] = R(Array(e).fill("")), C = i2([]);
2178
2178
  I(() => {
2179
2179
  if (t) {
2180
- const w = t.split("").slice(0, e), g = [...w, ...Array(e - w.length).fill("")];
2181
- d(g);
2180
+ const v = t.split("").slice(0, e), f = [...v, ...Array(e - v.length).fill("")];
2181
+ d(f);
2182
2182
  }
2183
2183
  }, [t, e]);
2184
- const m = (w, g) => {
2184
+ const h = (v, f) => {
2185
2185
  var b;
2186
- if (g && !/^\d+$/.test(g)) return;
2187
- const v = [...p];
2188
- v[w] = g.slice(-1), d(v);
2189
- const x = v.join("");
2190
- r == null || r(x), g && w < e - 1 && ((b = C.current[w + 1]) == null || b.focus()), v.every((k) => k !== "") && (s == null || s(x));
2191
- }, L = (w, g) => {
2192
- var v;
2193
- g.key === "Backspace" && !p[w] && w > 0 && ((v = C.current[w - 1]) == null || v.focus());
2194
- }, y = (w) => {
2195
- var f;
2196
- w.preventDefault();
2197
- const g = w.clipboardData.getData("text/plain");
2198
- if (!/^\d+$/.test(g)) return;
2199
- const v = g.split("").slice(0, e), x = [...v, ...Array(e - v.length).fill("")];
2186
+ if (f && !/^\d+$/.test(f)) return;
2187
+ const w = [...p];
2188
+ w[v] = f.slice(-1), d(w);
2189
+ const x = w.join("");
2190
+ r == null || r(x), f && v < e - 1 && ((b = C.current[v + 1]) == null || b.focus()), w.every((k) => k !== "") && (s == null || s(x));
2191
+ }, L = (v, f) => {
2192
+ var w;
2193
+ f.key === "Backspace" && !p[v] && v > 0 && ((w = C.current[v - 1]) == null || w.focus());
2194
+ }, y = (v) => {
2195
+ var m;
2196
+ v.preventDefault();
2197
+ const f = v.clipboardData.getData("text/plain");
2198
+ if (!/^\d+$/.test(f)) return;
2199
+ const w = f.split("").slice(0, e), x = [...w, ...Array(e - w.length).fill("")];
2200
2200
  d(x);
2201
2201
  const b = x.join("");
2202
2202
  r == null || r(b);
2203
- const k = Math.min(v.length, e - 1);
2204
- (f = C.current[k]) == null || f.focus(), x.every((h) => h !== "") && (s == null || s(b));
2203
+ const k = Math.min(w.length, e - 1);
2204
+ (m = C.current[k]) == null || m.focus(), x.every((g) => g !== "") && (s == null || s(b));
2205
2205
  };
2206
2206
  return /* @__PURE__ */ u("div", { className: "w-full", children: [
2207
- /* @__PURE__ */ n("div", { className: `flex gap-2 justify-center ${c}`, onBlur: o, children: p.map((w, g) => /* @__PURE__ */ u(M.Fragment, { children: [
2207
+ /* @__PURE__ */ n("div", { className: `flex gap-2 justify-center ${c}`, onBlur: o, children: p.map((v, f) => /* @__PURE__ */ u(M.Fragment, { children: [
2208
2208
  /* @__PURE__ */ n(
2209
2209
  t2,
2210
2210
  {
2211
- ref: (v) => {
2212
- C.current[g] = v;
2211
+ ref: (w) => {
2212
+ C.current[f] = w;
2213
2213
  },
2214
2214
  placeholder: "",
2215
- value: w,
2216
- onChange: (v) => m(g, v.target.value),
2217
- onKeyDown: (v) => L(g, v),
2215
+ value: v,
2216
+ onChange: (w) => h(f, w.target.value),
2217
+ onKeyDown: (w) => L(f, w),
2218
2218
  onPaste: y,
2219
2219
  disabled: l,
2220
2220
  maxLength: 1,
@@ -2227,8 +2227,8 @@ const e0 = ({
2227
2227
  }
2228
2228
  }
2229
2229
  ),
2230
- g === Math.floor(e / 2) - 1 && /* @__PURE__ */ n("div", { className: "flex items-center justify-center px-1", children: /* @__PURE__ */ n("span", { className: "text-gray-400 text-xl", children: "—" }) })
2231
- ] }, g)) }),
2230
+ f === Math.floor(e / 2) - 1 && /* @__PURE__ */ n("div", { className: "flex items-center justify-center px-1", children: /* @__PURE__ */ n("span", { className: "text-gray-400 text-xl", children: "—" }) })
2231
+ ] }, f)) }),
2232
2232
  i && a && /* @__PURE__ */ u("div", { className: "flex items-center justify-center mt-2 text-xs text-[#C21919]", children: [
2233
2233
  /* @__PURE__ */ n("svg", { className: "w-3 h-3 mr-1", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
2234
2234
  "path",
@@ -2279,52 +2279,52 @@ const e0 = ({
2279
2279
  customFormat: p,
2280
2280
  value: d,
2281
2281
  onChange: C,
2282
- ...m
2282
+ ...h
2283
2283
  }, L) => {
2284
- const y = t ? "phone-input-error-state" : "", [w, g] = R("");
2284
+ const y = t ? "phone-input-error-state" : "", [v, f] = R("");
2285
2285
  I(() => {
2286
2286
  if (d !== void 0) {
2287
- const f = String(d).replace(/\D/g, ""), h = v(f);
2288
- g(h);
2287
+ const m = String(d).replace(/\D/g, ""), g = w(m);
2288
+ f(g);
2289
2289
  }
2290
2290
  }, [d, c, s]);
2291
- const v = (f) => {
2292
- const h = f.replace(/\D/g, "");
2291
+ const w = (m) => {
2292
+ const g = m.replace(/\D/g, "");
2293
2293
  if (p)
2294
- return p(h);
2294
+ return p(g);
2295
2295
  if (c === "none")
2296
- return h;
2296
+ return g;
2297
2297
  let _ = "";
2298
- return c === "spaced" ? h.length <= 3 ? _ = h : h.length <= 6 ? _ = `${h.slice(0, 3)} ${h.slice(3)}` : _ = `${h.slice(0, 3)} ${h.slice(3, 6)} ${h.slice(6, 10)}` : c === "dashed" ? h.length <= 3 ? _ = h : h.length <= 6 ? _ = `${h.slice(0, 3)}-${h.slice(3)}` : _ = `${h.slice(0, 3)}-${h.slice(3, 6)}-${h.slice(6, 10)}` : s === "+1" ? h.length <= 3 ? _ = h : h.length <= 6 ? _ = `(${h.slice(0, 3)}) ${h.slice(3)}` : _ = `(${h.slice(0, 3)}) ${h.slice(3, 6)}-${h.slice(6, 10)}` : h.length <= 3 ? _ = h : h.length <= 6 ? _ = `${h.slice(0, 3)} ${h.slice(3)}` : _ = `${h.slice(0, 3)} ${h.slice(3, 6)} ${h.slice(6, 10)}`, _;
2299
- }, x = (f) => {
2300
- var h;
2301
- !/^\d$/.test(f.key) && f.key !== "Backspace" && f.key !== "Delete" && f.key !== "Tab" && f.key !== "ArrowLeft" && f.key !== "ArrowRight" && f.key !== "Home" && f.key !== "End" && f.preventDefault(), (h = m.onKeyDown) == null || h.call(m, f);
2302
- }, b = (f) => {
2303
- const h = f.target, _ = h.selectionStart || 0, z = h.value.replace(/\D/g, ""), H = v(z);
2304
- g(H);
2305
- const B = w.length, E = H.length - B;
2298
+ return c === "spaced" ? g.length <= 3 ? _ = g : g.length <= 6 ? _ = `${g.slice(0, 3)} ${g.slice(3)}` : _ = `${g.slice(0, 3)} ${g.slice(3, 6)} ${g.slice(6, 10)}` : c === "dashed" ? g.length <= 3 ? _ = g : g.length <= 6 ? _ = `${g.slice(0, 3)}-${g.slice(3)}` : _ = `${g.slice(0, 3)}-${g.slice(3, 6)}-${g.slice(6, 10)}` : s === "+1" ? g.length <= 3 ? _ = g : g.length <= 6 ? _ = `(${g.slice(0, 3)}) ${g.slice(3)}` : _ = `(${g.slice(0, 3)}) ${g.slice(3, 6)}-${g.slice(6, 10)}` : g.length <= 3 ? _ = g : g.length <= 6 ? _ = `${g.slice(0, 3)} ${g.slice(3)}` : _ = `${g.slice(0, 3)} ${g.slice(3, 6)} ${g.slice(6, 10)}`, _;
2299
+ }, x = (m) => {
2300
+ var g;
2301
+ !/^\d$/.test(m.key) && m.key !== "Backspace" && m.key !== "Delete" && m.key !== "Tab" && m.key !== "ArrowLeft" && m.key !== "ArrowRight" && m.key !== "Home" && m.key !== "End" && m.preventDefault(), (g = h.onKeyDown) == null || g.call(h, m);
2302
+ }, b = (m) => {
2303
+ const g = m.target, _ = g.selectionStart || 0, z = g.value.replace(/\D/g, ""), H = w(z);
2304
+ f(H);
2305
+ const B = v.length, E = H.length - B;
2306
2306
  if (requestAnimationFrame(() => {
2307
2307
  const N = Math.max(0, Math.min(_ + E, H.length));
2308
- h.setSelectionRange(N, N);
2308
+ g.setSelectionRange(N, N);
2309
2309
  }), C) {
2310
2310
  const N = {
2311
- ...f,
2312
- target: { ...f.target, value: z }
2311
+ ...m,
2312
+ target: { ...m.target, value: z }
2313
2313
  };
2314
2314
  C(N);
2315
2315
  }
2316
- }, k = (f) => {
2316
+ }, k = (m) => {
2317
2317
  var N;
2318
- f.preventDefault();
2319
- const _ = f.clipboardData.getData("text/plain").replace(/\D/g, ""), H = f.target.selectionStart || 0, U = w.replace(/\D/g, "").slice(0, H) + _, E = v(U);
2320
- if (g(E), C) {
2318
+ m.preventDefault();
2319
+ const _ = m.clipboardData.getData("text/plain").replace(/\D/g, ""), H = m.target.selectionStart || 0, U = v.replace(/\D/g, "").slice(0, H) + _, E = w(U);
2320
+ if (f(E), C) {
2321
2321
  const V = {
2322
- ...f,
2323
- target: { ...f.target, value: U }
2322
+ ...m,
2323
+ target: { ...m.target, value: U }
2324
2324
  };
2325
2325
  C(V);
2326
2326
  }
2327
- (N = m.onPaste) == null || N.call(m, f);
2327
+ (N = h.onPaste) == null || N.call(h, m);
2328
2328
  };
2329
2329
  return /* @__PURE__ */ u("div", { className: "w-full", children: [
2330
2330
  e && /* @__PURE__ */ u(
@@ -2334,7 +2334,7 @@ const e0 = ({
2334
2334
  style: { color: t ? "#C21919" : "#181918" },
2335
2335
  children: [
2336
2336
  e,
2337
- m.required && /* @__PURE__ */ n("span", { style: { color: "#C21919" }, children: "*" })
2337
+ h.required && /* @__PURE__ */ n("span", { style: { color: "#C21919" }, children: "*" })
2338
2338
  ]
2339
2339
  }
2340
2340
  ),
@@ -2392,7 +2392,7 @@ const e0 = ({
2392
2392
  },
2393
2393
  className: y,
2394
2394
  popupClassName: "country-code-dropdown",
2395
- disabled: m.disabled
2395
+ disabled: h.disabled
2396
2396
  }
2397
2397
  ) : /* @__PURE__ */ n(
2398
2398
  "div",
@@ -2400,8 +2400,8 @@ const e0 = ({
2400
2400
  className: "phone-input-country-code-static",
2401
2401
  style: {
2402
2402
  borderColor: t ? "#C21919" : "#D1D1D1",
2403
- color: m.disabled ? "#00000040" : "#000000",
2404
- backgroundColor: m.disabled ? "#f5f5f5" : "#FAFAFA"
2403
+ color: h.disabled ? "#00000040" : "#000000",
2404
+ backgroundColor: h.disabled ? "#f5f5f5" : "#FAFAFA"
2405
2405
  },
2406
2406
  children: s
2407
2407
  }
@@ -2409,9 +2409,9 @@ const e0 = ({
2409
2409
  /* @__PURE__ */ n(
2410
2410
  t2,
2411
2411
  {
2412
- ...m,
2412
+ ...h,
2413
2413
  ref: L,
2414
- value: w,
2414
+ value: v,
2415
2415
  className: o,
2416
2416
  onKeyDown: x,
2417
2417
  onChange: b,
@@ -2421,7 +2421,7 @@ const e0 = ({
2421
2421
  height: "44px",
2422
2422
  borderRadius: "12px",
2423
2423
  borderColor: t ? "#C21919" : "#D1D1D1",
2424
- ...m.style
2424
+ ...h.style
2425
2425
  }
2426
2426
  }
2427
2427
  )
@@ -2473,23 +2473,23 @@ const F2 = M.forwardRef(({
2473
2473
  value: c,
2474
2474
  ...p
2475
2475
  }, d) => {
2476
- const C = t ? "currency-input-error-state" : "", [m, L] = R(""), y = (v) => {
2477
- const b = v.replace(/[^\d.]/g, "").split("."), k = b[0], f = b[1], h = k.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
2478
- return f !== void 0 ? `${h}.${f}` : h;
2479
- }, w = (v) => v.replace(/,/g, "");
2476
+ const C = t ? "currency-input-error-state" : "", [h, L] = R(""), y = (w) => {
2477
+ const b = w.replace(/[^\d.]/g, "").split("."), k = b[0], m = b[1], g = k.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
2478
+ return m !== void 0 ? `${g}.${m}` : g;
2479
+ }, v = (w) => w.replace(/,/g, "");
2480
2480
  I(() => {
2481
2481
  if (c !== void 0) {
2482
- const v = String(c);
2483
- L(a ? y(v) : v);
2482
+ const w = String(c);
2483
+ L(a ? y(w) : w);
2484
2484
  }
2485
2485
  }, [c, a]);
2486
- const g = (v) => {
2487
- const x = v.target.value;
2486
+ const f = (w) => {
2487
+ const x = w.target.value;
2488
2488
  if (a) {
2489
- const b = w(x), k = y(b);
2490
- L(k), l && l(b, v);
2489
+ const b = v(x), k = y(b);
2490
+ L(k), l && l(b, w);
2491
2491
  } else
2492
- L(x), l && l(x, v);
2492
+ L(x), l && l(x, w);
2493
2493
  };
2494
2494
  return /* @__PURE__ */ u("div", { className: "w-full", children: [
2495
2495
  e && /* @__PURE__ */ u(
@@ -2549,8 +2549,8 @@ const F2 = M.forwardRef(({
2549
2549
  status: t ? "error" : s,
2550
2550
  prefix: /* @__PURE__ */ n("span", { children: i }),
2551
2551
  ...p,
2552
- value: a ? m : c,
2553
- onChange: g,
2552
+ value: a ? h : c,
2553
+ onChange: f,
2554
2554
  style: {
2555
2555
  borderColor: t ? "#C21919" : "#D1D1D1",
2556
2556
  ...p.style
@@ -3078,8 +3078,8 @@ class T {
3078
3078
  let a = 0, l = 0, c = 0;
3079
3079
  const p = i / 60, d = (1 - Math.abs(2 * o - 1)) * r, C = d * (1 - Math.abs(p % 2 - 1));
3080
3080
  p >= 0 && p < 1 ? (a = d, l = C) : p >= 1 && p < 2 ? (a = C, l = d) : p >= 2 && p < 3 ? (l = d, c = C) : p >= 3 && p < 4 ? (l = C, c = d) : p >= 4 && p < 5 ? (a = C, c = d) : p >= 5 && p < 6 && (a = d, c = C);
3081
- const m = o - d / 2;
3082
- this.r = Z((a + m) * 255), this.g = Z((l + m) * 255), this.b = Z((c + m) * 255);
3081
+ const h = o - d / 2;
3082
+ this.r = Z((a + h) * 255), this.g = Z((l + h) * 255), this.b = Z((c + h) * 255);
3083
3083
  }
3084
3084
  fromHsv({
3085
3085
  h: t,
@@ -3092,22 +3092,22 @@ class T {
3092
3092
  const a = Z(o * 255);
3093
3093
  if (this.r = a, this.g = a, this.b = a, r <= 0)
3094
3094
  return;
3095
- const l = i / 60, c = Math.floor(l), p = l - c, d = Z(o * (1 - r) * 255), C = Z(o * (1 - r * p) * 255), m = Z(o * (1 - r * (1 - p)) * 255);
3095
+ const l = i / 60, c = Math.floor(l), p = l - c, d = Z(o * (1 - r) * 255), C = Z(o * (1 - r * p) * 255), h = Z(o * (1 - r * (1 - p)) * 255);
3096
3096
  switch (c) {
3097
3097
  case 0:
3098
- this.g = m, this.b = d;
3098
+ this.g = h, this.b = d;
3099
3099
  break;
3100
3100
  case 1:
3101
3101
  this.r = C, this.b = d;
3102
3102
  break;
3103
3103
  case 2:
3104
- this.r = d, this.b = m;
3104
+ this.r = d, this.b = h;
3105
3105
  break;
3106
3106
  case 3:
3107
3107
  this.r = d, this.g = C;
3108
3108
  break;
3109
3109
  case 4:
3110
- this.r = m, this.g = d;
3110
+ this.r = h, this.g = d;
3111
3111
  break;
3112
3112
  case 5:
3113
3113
  default:
@@ -3260,8 +3260,8 @@ function i0(e, t = {}) {
3260
3260
  const d = (t.styles || H2(c)).filter((C) => {
3261
3261
  if (!["prepend", "prependQueue"].includes(C.getAttribute(P2)))
3262
3262
  return !1;
3263
- const m = Number(C.getAttribute(I2) || 0);
3264
- return s >= m;
3263
+ const h = Number(C.getAttribute(I2) || 0);
3264
+ return s >= h;
3265
3265
  });
3266
3266
  if (d.length)
3267
3267
  return c.insertBefore(l, d[d.length - 1].nextSibling), l;
@@ -3541,7 +3541,7 @@ const l2 = /* @__PURE__ */ A.forwardRef((e, t) => {
3541
3541
  } = e, {
3542
3542
  prefixCls: d = "anticon",
3543
3543
  rootClassName: C
3544
- } = A.useContext(t0), m = Y0(C, d, {
3544
+ } = A.useContext(t0), h = Y0(C, d, {
3545
3545
  [`${d}-${o.name}`]: !!o.name,
3546
3546
  [`${d}-spin`]: !!s || o.name === "loading"
3547
3547
  }, r);
@@ -3550,7 +3550,7 @@ const l2 = /* @__PURE__ */ A.forwardRef((e, t) => {
3550
3550
  const y = i ? {
3551
3551
  msTransform: `rotate(${i}deg)`,
3552
3552
  transform: `rotate(${i}deg)`
3553
- } : void 0, [w, g] = d0(c);
3553
+ } : void 0, [v, f] = d0(c);
3554
3554
  return /* @__PURE__ */ A.createElement("span", x2({
3555
3555
  role: "img",
3556
3556
  "aria-label": o.name
@@ -3558,11 +3558,11 @@ const l2 = /* @__PURE__ */ A.forwardRef((e, t) => {
3558
3558
  ref: t,
3559
3559
  tabIndex: L,
3560
3560
  onClick: l,
3561
- className: m
3561
+ className: h
3562
3562
  }), /* @__PURE__ */ A.createElement(q, {
3563
3563
  icon: o,
3564
- primaryColor: w,
3565
- secondaryColor: g,
3564
+ primaryColor: v,
3565
+ secondaryColor: f,
3566
3566
  style: y
3567
3567
  }));
3568
3568
  });
@@ -3756,8 +3756,8 @@ const t3 = ({
3756
3756
  // Add searchable text for filtering
3757
3757
  searchLabel: `${d.name} ${d.code}`.toLowerCase()
3758
3758
  })), p = (d, C) => {
3759
- var m;
3760
- return ((m = C == null ? void 0 : C.searchLabel) == null ? void 0 : m.includes(d.toLowerCase())) || !1;
3759
+ var h;
3760
+ return ((h = C == null ? void 0 : C.searchLabel) == null ? void 0 : h.includes(d.toLowerCase())) || !1;
3761
3761
  };
3762
3762
  return /* @__PURE__ */ u(w2, { children: [
3763
3763
  /* @__PURE__ */ n("style", { children: `
@@ -4058,31 +4058,32 @@ const t3 = ({
4058
4058
  valuePrefix: i = "₦",
4059
4059
  ledgerBalance: a,
4060
4060
  backgroundPattern: l = "wave",
4061
- topRight: c,
4062
- width: p = 348,
4063
- className: d = ""
4061
+ backgroundImage: c,
4062
+ topRight: p,
4063
+ width: d = 348,
4064
+ className: C = ""
4064
4065
  }) => {
4065
- const [C, m] = R(!0), L = () => {
4066
- m(!C), s && s();
4067
- }, y = /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
4066
+ const [h, L] = R(!0), y = () => {
4067
+ L(!h), s && s();
4068
+ }, v = /* @__PURE__ */ u("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
4068
4069
  /* @__PURE__ */ n("rect", { x: "3", y: "6", width: "18", height: "12", rx: "2", stroke: "currentColor", strokeWidth: "2" }),
4069
4070
  /* @__PURE__ */ n("path", { d: "M3 10h18M7 14h4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
4070
4071
  ] });
4071
4072
  return /* @__PURE__ */ u(
4072
4073
  "div",
4073
4074
  {
4074
- className: `relative overflow-hidden flex flex-col rounded-[20px] px-[18px] pt-3 transition-all duration-300 ease-in-out hover:-translate-y-1 cursor-pointer self-start ${a ? "pb-1" : "pb-3"} ${d}`,
4075
+ className: `relative overflow-hidden flex flex-col rounded-[20px] px-[18px] pt-3 transition-all duration-300 ease-in-out hover:-translate-y-1 cursor-pointer self-start ${a ? "pb-1" : "pb-3"} ${C}`,
4075
4076
  style: {
4076
- background: "radial-gradient(circle at 50% 136%, #7A7F7A 0%, #181918 100%)",
4077
- width: typeof p == "number" ? `${p}px` : p,
4077
+ background: c ? `url(${c}) center / cover no-repeat` : "radial-gradient(circle at 50% 136%, #7A7F7A 0%, #181918 100%)",
4078
+ width: typeof d == "number" ? `${d}px` : d,
4078
4079
  boxShadow: "0 0 0 0 rgba(0, 0, 0, 0)",
4079
4080
  transition: "all 0.3s ease-in-out"
4080
4081
  },
4081
- onMouseEnter: (w) => {
4082
- w.currentTarget.style.boxShadow = "0 0 24px 0 rgba(0, 0, 0, 0.15)";
4082
+ onMouseEnter: (f) => {
4083
+ f.currentTarget.style.boxShadow = "0 0 24px 0 rgba(0, 0, 0, 0.15)";
4083
4084
  },
4084
- onMouseLeave: (w) => {
4085
- w.currentTarget.style.boxShadow = "0 0 0 0 rgba(0, 0, 0, 0)";
4085
+ onMouseLeave: (f) => {
4086
+ f.currentTarget.style.boxShadow = "0 0 0 0 rgba(0, 0, 0, 0)";
4086
4087
  },
4087
4088
  children: [
4088
4089
  l !== "none" && /* @__PURE__ */ n(
@@ -4099,8 +4100,8 @@ const t3 = ({
4099
4100
  ),
4100
4101
  /* @__PURE__ */ u("div", { className: "relative z-10", children: [
4101
4102
  /* @__PURE__ */ u("div", { className: "flex items-center justify-between mb-4", children: [
4102
- /* @__PURE__ */ n("div", { className: "w-10 h-10 bg-[#616161] rounded-full flex items-center justify-center text-white transition-transform duration-300 ease-in-out hover:scale-110", children: r || y }),
4103
- c && /* @__PURE__ */ n("div", { children: c })
4103
+ /* @__PURE__ */ n("div", { className: "w-10 h-10 bg-[#616161] rounded-full flex items-center justify-center text-white transition-transform duration-300 ease-in-out hover:scale-110", children: r || v }),
4104
+ p && /* @__PURE__ */ n("div", { children: p })
4104
4105
  ] }),
4105
4106
  /* @__PURE__ */ u("div", { className: "flex items-center gap-2 mt-3", children: [
4106
4107
  /* @__PURE__ */ n("span", { className: "text-sm text-[#E6E6E6] font-light transition-colors duration-200", children: e }),
@@ -4108,7 +4109,7 @@ const t3 = ({
4108
4109
  "button",
4109
4110
  {
4110
4111
  className: "bg-transparent border-none cursor-pointer p-1 flex items-center justify-center text-white hover:text-white/80 transition-colors duration-200",
4111
- onClick: L,
4112
+ onClick: y,
4112
4113
  "aria-label": "Toggle visibility",
4113
4114
  children: /* @__PURE__ */ u(
4114
4115
  "svg",
@@ -4145,7 +4146,7 @@ const t3 = ({
4145
4146
  }
4146
4147
  )
4147
4148
  ] }),
4148
- /* @__PURE__ */ n("div", { className: "text-[32px] font-bold text-white transition-all duration-200", children: C ? `${i} ${t}` : "****" }),
4149
+ /* @__PURE__ */ n("div", { className: "text-[32px] font-bold text-white transition-all duration-200", children: h ? `${i} ${t}` : "****" }),
4149
4150
  a && /* @__PURE__ */ u("div", { className: "mb-1", children: [
4150
4151
  /* @__PURE__ */ n("div", { className: "w-full h-px bg-white/10 mb-2 transition-opacity duration-300" }),
4151
4152
  /* @__PURE__ */ u("div", { className: "flex items-center gap-2 transition-all duration-200", children: [
@@ -4171,7 +4172,7 @@ const t3 = ({
4171
4172
  ),
4172
4173
  /* @__PURE__ */ u("span", { className: "text-xs text-[#E6E6E6] font-light transition-all duration-200", children: [
4173
4174
  "Ledger Balance ",
4174
- C ? `${i} ${a}` : "****"
4175
+ h ? `${i} ${a}` : "****"
4175
4176
  ] })
4176
4177
  ] })
4177
4178
  ] })