@imj_media/ui 1.0.49 → 1.0.50

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.esm.js CHANGED
@@ -18748,19 +18748,19 @@ const y8 = ({
18748
18748
  }
18749
18749
  ) : null;
18750
18750
  }, Z8 = (r = "top", o = "center", t = !1, n = 0, e = !1) => {
18751
- const [a, c] = J(!1), [l, s] = J({ top: 0, left: 0 }), [L, p] = J({ width: 0, height: 0 }), [d, C] = J(r), h = o1(null), w = o1(null), f = o1(null), j = o1(null), x = o1(null), v = o1(null), V = o1(null), b = o1({ top: 0, left: 0 }), H = o1({ count: 0, lastTime: 0 }), O = P(() => {
18752
- c(!1), s({ top: 0, left: 0 }), C(r), V.current = null, H.current.count = 0, H.current.lastTime = 0, b.current = { top: 0, left: 0 };
18751
+ const [a, c] = J(!1), [l, s] = J({ top: 0, left: 0 }), [L, p] = J({ width: 0, height: 0 }), [d, C] = J(r), h = o1(null), w = o1(null), f = o1(null), j = o1(null), x = o1(null), v = o1(null), H = o1(null), b = o1({ top: 0, left: 0 }), V = o1({ count: 0, lastTime: 0 }), O = P(() => {
18752
+ c(!1), s({ top: 0, left: 0 }), C(r), H.current = null, V.current.count = 0, V.current.lastTime = 0, b.current = { top: 0, left: 0 };
18753
18753
  }, [r]), T = P(() => {
18754
18754
  if (!h.current || !a) return;
18755
18755
  const M = h.current.getBoundingClientRect(), g = { top: M.top, left: M.left };
18756
- if (V.current) {
18757
- const k = V.current, y = 2;
18756
+ if (H.current) {
18757
+ const k = H.current, y = 2;
18758
18758
  if (Math.abs(g.top - k.top) > y || Math.abs(g.left - k.left) > y) {
18759
18759
  O();
18760
18760
  return;
18761
18761
  }
18762
18762
  }
18763
- V.current = g;
18763
+ H.current = g;
18764
18764
  }, [a, O]), U = P(() => {
18765
18765
  var G, D, Q, X, q, R;
18766
18766
  if (!h.current || !w.current) return;
@@ -18929,19 +18929,19 @@ const y8 = ({
18929
18929
  return;
18930
18930
  }
18931
18931
  const I = Date.now();
18932
- if (I - H.current.lastTime < 100) {
18933
- if (H.current.count++, H.current.count > 5) {
18932
+ if (I - V.current.lastTime < 100) {
18933
+ if (V.current.count++, V.current.count > 5) {
18934
18934
  O();
18935
18935
  return;
18936
18936
  }
18937
18937
  } else
18938
- H.current.count = 0;
18939
- H.current.lastTime = I, b.current = { top: y, left: m }, s({ top: y, left: m });
18938
+ V.current.count = 0;
18939
+ V.current.lastTime = I, b.current = { top: y, left: m }, s({ top: y, left: m });
18940
18940
  }, [r, o, t, O]);
18941
18941
  W(() => (a && w.current ? (requestAnimationFrame(() => {
18942
18942
  if (U(), h.current) {
18943
18943
  const M = h.current.getBoundingClientRect();
18944
- V.current = { top: M.top, left: M.left };
18944
+ H.current = { top: M.top, left: M.left };
18945
18945
  }
18946
18946
  }), v.current = setInterval(T, 100)) : v.current && (clearInterval(v.current), v.current = null), () => {
18947
18947
  v.current && (clearInterval(v.current), v.current = null);
@@ -19207,19 +19207,19 @@ const y8 = ({
19207
19207
  adjustedPosition: j,
19208
19208
  triggerRef: x,
19209
19209
  tooltipRef: v,
19210
- containerRef: V,
19210
+ containerRef: H,
19211
19211
  handleMouseEnter: b,
19212
- handleMouseLeave: H
19212
+ handleMouseLeave: V
19213
19213
  } = Z8(t, n, C, c, l), O = $8(e, C), T = B8(j, e);
19214
- return /* @__PURE__ */ u("div", { ref: V, className: C ? "ui-relative" : "", children: [
19214
+ return /* @__PURE__ */ u("div", { ref: H, className: C ? "ui-relative" : "", children: [
19215
19215
  /* @__PURE__ */ i(
19216
19216
  "div",
19217
19217
  {
19218
19218
  ref: x,
19219
19219
  onMouseEnter: b,
19220
- onMouseLeave: H,
19220
+ onMouseLeave: V,
19221
19221
  onFocus: b,
19222
- onBlur: H,
19222
+ onBlur: V,
19223
19223
  className: _("ui-inline-block ui-h-fit ui-w-fit", L ? "ui-w-full" : "ui-w-fit"),
19224
19224
  children: r
19225
19225
  }
@@ -19397,9 +19397,9 @@ const y8 = ({
19397
19397
  size: j,
19398
19398
  square: x = !1,
19399
19399
  target: v = "_self",
19400
- onClickIcon: V,
19400
+ onClickIcon: H,
19401
19401
  onClickLeftSlot: b,
19402
- onClickRightSlot: H,
19402
+ onClickRightSlot: V,
19403
19403
  disabled: O,
19404
19404
  colorIcon: T,
19405
19405
  showShadow: U = !1,
@@ -19490,7 +19490,7 @@ const y8 = ({
19490
19490
  name: w,
19491
19491
  size: a === "icon" ? j : S !== "none" ? S : j,
19492
19492
  color: T,
19493
- onClick: a === "icon" ? B || V : void 0
19493
+ onClick: a === "icon" ? B || H : void 0
19494
19494
  }
19495
19495
  ) : w),
19496
19496
  d && e && /* @__PURE__ */ i(
@@ -19500,7 +19500,7 @@ const y8 = ({
19500
19500
  size: S !== "none" ? S : j,
19501
19501
  colorIcon: T,
19502
19502
  className: r,
19503
- onClick: H,
19503
+ onClick: V,
19504
19504
  defaultSizeIcon: r1,
19505
19505
  strokeWidth: u1
19506
19506
  }
@@ -19763,12 +19763,12 @@ const y8 = ({
19763
19763
  }), A8 = (r) => {
19764
19764
  const { getIconForType: o } = z8(), t = r.variant === "contained", n = (a) => {
19765
19765
  a.stopPropagation(), r.onClose && r.onClose(a);
19766
- }, e = r.type === "yellow";
19766
+ }, e = r.color === "yellow";
19767
19767
  return /* @__PURE__ */ u("div", { className: `ui-flex ui-gap-x-1 ${r.title ? "ui-items-start" : "ui-items-center"}`, children: [
19768
19768
  /* @__PURE__ */ i(
19769
19769
  j1,
19770
19770
  {
19771
- name: o(r.type || "green"),
19771
+ name: o(r.color || "green"),
19772
19772
  color: t ? e ? "yellow_dark" : "white" : void 0,
19773
19773
  size: "2xl",
19774
19774
  className: "ui-mt-0.5 ui-flex-shrink-0"
@@ -19778,7 +19778,7 @@ const y8 = ({
19778
19778
  r.title && /* @__PURE__ */ i(
19779
19779
  "div",
19780
19780
  {
19781
- className: `ui-text-sm ${t ? e ? "ui-text-yellow-900" : "ui-text-white" : ""} ui-mb-1 ui-font-medium`,
19781
+ className: `ui-text-sm ${t ? e ? "ui-text-yellow-900" : "ui-text-white" : ""} ui-font-medium`,
19782
19782
  children: r.title
19783
19783
  }
19784
19784
  ),
@@ -19801,7 +19801,7 @@ const y8 = ({
19801
19801
  variant: "text",
19802
19802
  borderable: !1,
19803
19803
  showShadow: !1,
19804
- colorIcon: r.variant === "contained" ? e ? "yellow_dark" : "white" : r.variant === "minimal" ? "neutral" : r.type,
19804
+ colorIcon: r.variant === "contained" ? e ? "yellow_dark" : "white" : r.variant === "minimal" ? "neutral" : r.color,
19805
19805
  className: "ui-flex-shrink-0",
19806
19806
  onClick: n
19807
19807
  }
@@ -19832,7 +19832,7 @@ const y8 = ({
19832
19832
  }, a = (l) => {
19833
19833
  l.stopPropagation(), r.onSecondaryClick && r.onSecondaryClick();
19834
19834
  }, c = t === "outlined";
19835
- return console.log(c), /* @__PURE__ */ u("div", { className: "ui-mt-2 ui-flex ui-w-full ui-justify-end ui-gap-x-2", children: [
19835
+ return /* @__PURE__ */ u("div", { className: "ui-mt-2 ui-flex ui-w-full ui-justify-end ui-gap-x-2", children: [
19836
19836
  r.onSecondaryClick && /* @__PURE__ */ i(
19837
19837
  t1,
19838
19838
  {
@@ -19849,7 +19849,7 @@ const y8 = ({
19849
19849
  {
19850
19850
  clickable: !0,
19851
19851
  variant: o[t].primary,
19852
- color: c ? r.type : "white",
19852
+ color: c ? r.color : "white",
19853
19853
  size: "md",
19854
19854
  onClick: e,
19855
19855
  children: r.primaryButtonText
@@ -19857,7 +19857,7 @@ const y8 = ({
19857
19857
  )
19858
19858
  ] });
19859
19859
  }, R8 = ({
19860
- type: r = "green",
19860
+ color: r = "green",
19861
19861
  variant: o = "contained",
19862
19862
  isLeaving: t = !1,
19863
19863
  animation: n = "none"
@@ -19895,31 +19895,31 @@ const y8 = ({
19895
19895
  return `${e} ${c} ${{
19896
19896
  green: {
19897
19897
  contained: "ui-bg-green-500 ui-border-green-500 ui-border-2",
19898
- outlined: "!ui-text-green-500 ui-border ui-border-green-500 ui-shadow ui-bg-green-100",
19898
+ outlined: "!ui-text-green-500 ui-border ui-border-green-500 ui-shadow ui-bg-green-50",
19899
19899
  accent: "ui-bg-green-50 ui-text-green-500 ui-border-l-6 ui-border-green-500",
19900
19900
  minimal: "ui-bg-white ui-text-green-500"
19901
19901
  },
19902
19902
  red: {
19903
19903
  contained: "ui-bg-red-500 ui-border-red-500 ui-border-2",
19904
- outlined: "!ui-text-red-500 ui-border ui-border-red-500 ui-shadow ui-bg-red-100",
19904
+ outlined: "!ui-text-red-500 ui-border ui-border-red-500 ui-shadow ui-bg-red-50",
19905
19905
  accent: "ui-bg-red-50 ui-text-red-500 ui-border-l-6 ui-border-red-500",
19906
19906
  minimal: "ui-bg-white ui-text-red-500"
19907
19907
  },
19908
19908
  blue: {
19909
19909
  contained: "ui-bg-blue-500 ui-border-blue-500 ui-border-2",
19910
- outlined: "!ui-text-blue-500 ui-border ui-border-blue-500 ui-shadow ui-bg-blue-100",
19910
+ outlined: "!ui-text-blue-500 ui-border ui-border-blue-500 ui-shadow ui-bg-blue-50",
19911
19911
  accent: "ui-bg-blue-50 ui-text-blue-500 ui-border-l-6 ui-border-blue-500",
19912
19912
  minimal: "ui-bg-white ui-text-blue-500"
19913
19913
  },
19914
19914
  yellow: {
19915
19915
  contained: "ui-bg-yellow-500 ui-border-yellow-500 ui-border-2",
19916
- outlined: "!ui-text-yellow-800 ui-border ui-border-yellow-800 ui-shadow ui-bg-yellow-100",
19916
+ outlined: "!ui-text-yellow-800 ui-border ui-border-yellow-800 ui-shadow ui-bg-yellow-50",
19917
19917
  accent: "ui-bg-yellow-50 ui-text-yellow-500 ui-border-l-6 ui-border-yellow-500",
19918
19918
  minimal: "ui-bg-white ui-text-yellow-500"
19919
19919
  },
19920
19920
  neutral: {
19921
19921
  contained: "ui-bg-neutral-800 ui-border-neutral-800 ui-border-2",
19922
- outlined: "!ui-text-neutral-800 ui-border ui-border-neutral-800 ui-shadow ui-bg-neutral-100",
19922
+ outlined: "!ui-text-neutral-800 ui-border ui-border-neutral-800 ui-shadow ui-bg-neutral-50",
19923
19923
  accent: "ui-bg-neutral-50 ui-text-neutral-800 ui-border-l-6 ui-border-neutral-800",
19924
19924
  minimal: "ui-bg-white ui-text-neutral-800"
19925
19925
  }
@@ -20097,67 +20097,69 @@ const y8 = ({
20097
20097
  ] });
20098
20098
  }, Y8 = ({
20099
20099
  open: r = !1,
20100
- type: o = "green",
20100
+ color: o = "green",
20101
20101
  variant: t = "contained",
20102
- message: n,
20103
- title: e,
20104
- showCloseButton: a = !0,
20105
- onClose: c,
20106
- onClick: l,
20107
- onPrimaryClick: s,
20108
- onSecondaryClick: L,
20109
- primaryButtonText: p = "Aceptar",
20110
- secondaryButtonText: d = "Cancelar",
20111
- animation: C = "none",
20112
- isLeaving: h,
20113
- progressBarColor: w = !1,
20114
- duration: f = 3e3
20102
+ className: n,
20103
+ message: e,
20104
+ title: a,
20105
+ showCloseButton: c = !0,
20106
+ onClose: l,
20107
+ onClick: s,
20108
+ onPrimaryClick: L,
20109
+ onSecondaryClick: p,
20110
+ primaryButtonText: d = "Aceptar",
20111
+ secondaryButtonText: C = "Cancelar",
20112
+ animation: h = "none",
20113
+ isLeaving: w,
20114
+ progressBarColor: f = !1,
20115
+ duration: j = 3e3
20115
20116
  }) => {
20116
- const { isVisible: j, isLeaving: x } = F8({ open: r, externalIsLeaving: h });
20117
- if (!j)
20117
+ const { isVisible: x, isLeaving: v } = F8({ open: r, externalIsLeaving: w });
20118
+ if (!x)
20118
20119
  return null;
20119
- const v = !!l, V = (b) => {
20120
- l && (b.stopPropagation(), l());
20120
+ const H = !!s, b = (V) => {
20121
+ s && (V.stopPropagation(), s());
20121
20122
  };
20122
20123
  return /* @__PURE__ */ u(
20123
20124
  "div",
20124
20125
  {
20125
20126
  className: _(
20126
- "ui-relative ui-overflow-hidden",
20127
- R8({ type: o, variant: t, isLeaving: x, animation: C }),
20128
- v ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20127
+ "ui-imj-alert ui-relative ui-overflow-hidden",
20128
+ n,
20129
+ R8({ color: o, variant: t, isLeaving: v, animation: h }),
20130
+ H ? "ui-hover:ui-brightness-110 ui-cursor-pointer ui-transition-all ui-duration-300 ui-ease-in-out" : ""
20129
20131
  ),
20130
- onClick: V,
20132
+ onClick: b,
20131
20133
  children: [
20132
- /* @__PURE__ */ u("div", { className: "ui-p-2", children: [
20134
+ /* @__PURE__ */ u("div", { className: "ui-p-4", children: [
20133
20135
  /* @__PURE__ */ i(
20134
20136
  A8,
20135
20137
  {
20136
- message: n,
20137
- title: e,
20138
- type: o,
20138
+ message: e,
20139
+ title: a,
20140
+ color: o,
20139
20141
  variant: t,
20140
- showCloseButton: a,
20141
- onClose: c
20142
+ showCloseButton: c,
20143
+ onClose: l
20142
20144
  }
20143
20145
  ),
20144
20146
  /* @__PURE__ */ i(
20145
20147
  E8,
20146
20148
  {
20147
- type: o,
20149
+ color: o,
20148
20150
  variant: t,
20149
- onPrimaryClick: s,
20150
- onSecondaryClick: L,
20151
- primaryButtonText: p,
20152
- secondaryButtonText: d
20151
+ onPrimaryClick: L,
20152
+ onSecondaryClick: p,
20153
+ primaryButtonText: d,
20154
+ secondaryButtonText: C
20153
20155
  }
20154
20156
  )
20155
20157
  ] }),
20156
- w && /* @__PURE__ */ i("div", { className: _("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20158
+ f && /* @__PURE__ */ i("div", { className: _("ui-absolute ui-bottom-0 ui-w-full ui-opacity-80"), children: /* @__PURE__ */ i(
20157
20159
  _8,
20158
20160
  {
20159
20161
  progress: 100,
20160
- duration: f,
20162
+ duration: j,
20161
20163
  color: t === "contained" ? "white" : o,
20162
20164
  showLabel: !1,
20163
20165
  withBackground: !1
@@ -20186,9 +20188,9 @@ const y8 = ({
20186
20188
  target: j = "_self",
20187
20189
  onClickIcon: x,
20188
20190
  disabled: v,
20189
- colorIcon: V,
20191
+ colorIcon: H,
20190
20192
  tooltip: b,
20191
- tooltipPosition: H,
20193
+ tooltipPosition: V,
20192
20194
  tooltipAlignment: O,
20193
20195
  tooltipColor: T,
20194
20196
  tooltipDelay: U,
@@ -20214,10 +20216,10 @@ const y8 = ({
20214
20216
  target: j,
20215
20217
  onClickIcon: x,
20216
20218
  disabled: v,
20217
- colorIcon: V,
20219
+ colorIcon: H,
20218
20220
  className: o,
20219
20221
  tooltip: b,
20220
- tooltipPosition: H,
20222
+ tooltipPosition: V,
20221
20223
  tooltipAlignment: O,
20222
20224
  tooltipColor: T,
20223
20225
  tooltipDelay: U,
@@ -20323,7 +20325,7 @@ const G8 = (r) => {
20323
20325
  }), [L, p] = J(!1), d = o1(null), C = o === "single" ? t !== void 0 : n !== void 0, h = o === "single" ? t == null : n === void 0, w = o === "single" ? h ? l.internalDate : t : null, f = o === "range" ? h ? l.internalRange : n : { start: null, end: null }, j = (m) => m && m instanceof Date && !isNaN(m.getTime()), x = j(w) ? w : null, v = {
20324
20326
  start: j(f == null ? void 0 : f.start) ? f.start : null,
20325
20327
  end: j(f == null ? void 0 : f.end) ? f.end : null
20326
- }, V = P(() => {
20328
+ }, H = P(() => {
20327
20329
  if (d.current) {
20328
20330
  const m = d.current.getInputElement();
20329
20331
  if (m) {
@@ -20341,7 +20343,7 @@ const G8 = (r) => {
20341
20343
  s((m) => ({ ...m, isOpen: !0 })), p(!1);
20342
20344
  }, []), b = P(() => {
20343
20345
  s((m) => ({ ...m, isOpen: !1 })), p(!1);
20344
- }, []), H = P((m) => {
20346
+ }, []), V = P((m) => {
20345
20347
  s((I) => ({ ...I, currentDate: m }));
20346
20348
  }, []), O = P((m) => {
20347
20349
  s((I) => ({ ...I, viewMode: m }));
@@ -20431,9 +20433,9 @@ const G8 = (r) => {
20431
20433
  inputRef: d,
20432
20434
  isPortalReady: L,
20433
20435
  actions: {
20434
- openPicker: V,
20436
+ openPicker: H,
20435
20437
  closePicker: b,
20436
- setCurrentDate: H,
20438
+ setCurrentDate: V,
20437
20439
  setViewMode: O,
20438
20440
  setSelectedDate: U,
20439
20441
  setSelectedRange: z,
@@ -20465,37 +20467,37 @@ const G8 = (r) => {
20465
20467
  const h = c(d, r), w = l(d, r), f = a(d, r), j = s(d);
20466
20468
  let x = !1;
20467
20469
  if (C && r.start && !r.end) {
20468
- const H = {
20470
+ const V = {
20469
20471
  start: r.start < C ? r.start : C,
20470
20472
  end: r.start < C ? C : r.start
20471
20473
  };
20472
- x = a(d, H);
20474
+ x = a(d, V);
20473
20475
  }
20474
20476
  let v = !1;
20475
20477
  if (r.start && r.end && f && !h) {
20476
- const H = new Date(d);
20477
- H.setDate(d.getDate() - 1), v = !a(H, r);
20478
+ const V = new Date(d);
20479
+ V.setDate(d.getDate() - 1), v = !a(V, r);
20478
20480
  } else if (r.start && !r.end && C && x) {
20479
- const H = new Date(d);
20480
- H.setDate(d.getDate() - 1);
20481
+ const V = new Date(d);
20482
+ V.setDate(d.getDate() - 1);
20481
20483
  const O = {
20482
20484
  start: r.start < C ? r.start : C,
20483
20485
  end: r.start < C ? C : r.start
20484
20486
  };
20485
- v = !a(H, O);
20487
+ v = !a(V, O);
20486
20488
  }
20487
- let V = !1;
20489
+ let H = !1;
20488
20490
  if (r.start && r.end && f && !w) {
20489
- const H = new Date(d);
20490
- H.setDate(d.getDate() + 1), V = !a(H, r);
20491
+ const V = new Date(d);
20492
+ V.setDate(d.getDate() + 1), H = !a(V, r);
20491
20493
  } else if (r.start && !r.end && C && x) {
20492
- const H = new Date(d);
20493
- H.setDate(d.getDate() + 1);
20494
+ const V = new Date(d);
20495
+ V.setDate(d.getDate() + 1);
20494
20496
  const O = {
20495
20497
  start: r.start < C ? r.start : C,
20496
20498
  end: r.start < C ? C : r.start
20497
20499
  };
20498
- V = !a(H, O);
20500
+ H = !a(V, O);
20499
20501
  }
20500
20502
  let b = !0;
20501
20503
  return r.start && !r.end && C ? b = C >= r.start : r.start && r.end && (b = d >= r.start), {
@@ -20505,7 +20507,7 @@ const G8 = (r) => {
20505
20507
  isEnd: w,
20506
20508
  isInRange: f,
20507
20509
  isFirstInRange: v,
20508
- isLastInRange: V,
20510
+ isLastInRange: H,
20509
20511
  afterSelected: b,
20510
20512
  isDisabled: j,
20511
20513
  isHovered: x
@@ -20542,12 +20544,12 @@ const G8 = (r) => {
20542
20544
  }, []), a = P(
20543
20545
  (p, d = 1) => {
20544
20546
  const { firstDay: C, lastDay: h, daysInMonth: w, startOfWeek: f } = e(p), j = [], x = (f - d + 7) % 7;
20545
- for (let V = 0; V < x; V++)
20547
+ for (let H = 0; H < x; H++)
20546
20548
  j.push(null);
20547
- for (let V = 1; V <= w; V++)
20548
- j.push(V);
20549
+ for (let H = 1; H <= w; H++)
20550
+ j.push(H);
20549
20551
  const v = (7 - j.length % 7) % 7;
20550
- for (let V = 0; V < v; V++)
20552
+ for (let H = 0; H < v; H++)
20551
20553
  j.push(null);
20552
20554
  return j;
20553
20555
  },
@@ -20593,8 +20595,8 @@ const G8 = (r) => {
20593
20595
  if (!h) return null;
20594
20596
  const f = w.replace("dd", "(\\d{2})").replace("MM", "(\\d{2})").replace("yyyy", "(\\d{4})"), j = new RegExp(`^${f}$`), x = h.match(j);
20595
20597
  if (!x) return null;
20596
- const [, v, V, b] = x, H = new Date(parseInt(b), parseInt(V) - 1, parseInt(v));
20597
- return isNaN(H.getTime()) ? null : H;
20598
+ const [, v, H, b] = x, V = new Date(parseInt(b), parseInt(H) - 1, parseInt(v));
20599
+ return isNaN(V.getTime()) ? null : V;
20598
20600
  }, []), L = P(
20599
20601
  (h, w) => s(h, w) !== null,
20600
20602
  [s]
@@ -20685,13 +20687,13 @@ const G8 = (r) => {
20685
20687
  return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" });
20686
20688
  const v = (O) => {
20687
20689
  O.stopPropagation(), L || C(o);
20688
- }, V = () => {
20690
+ }, H = () => {
20689
20691
  !L && h && (x.current && (clearTimeout(x.current), x.current = null), h(o));
20690
20692
  }, b = () => {
20691
20693
  !L && w && (t || n || e || a ? x.current = setTimeout(() => {
20692
20694
  w(), x.current = null;
20693
20695
  }, 100) : w());
20694
- }, H = () => {
20696
+ }, V = () => {
20695
20697
  let O = `ui-w-8 ui-h-8 ui-flex ui-items-center ui-select-none ui-justify-center ui-font-medium ${!l && !n && !c ? "hover:ui-bg-blue-50 hover:ui-text-blue-500 hover:ui-rounded-lg hover:ui-cursor-pointer" : ""} ui-text-xs ui-transition-colors ui-transition-500`;
20696
20698
  return L ? O += " ui-text-gray-400 ui-cursor-not-allowed" : t ? O += " ui-bg-blue-500 ui-text-white" : e ? O += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-l-lg" : "ui-rounded-r-lg"}` : a ? O += ` ui-bg-blue-500 ui-text-white ${s ? "ui-rounded-r-lg" : "ui-rounded-l-lg"}` : n ? O += " ui-bg-blue-50 ui-text-blue-500" : d ? O += " ui-bg-blue-50" : p ? O += " ui-text-blue-500" : O += "hover:ui-bg-neutral-50", `${O} ${f}`;
20697
20699
  };
@@ -20710,9 +20712,9 @@ const G8 = (r) => {
20710
20712
  }) : /* @__PURE__ */ i(
20711
20713
  "div",
20712
20714
  {
20713
- className: H(),
20715
+ className: V(),
20714
20716
  onClick: v,
20715
- onMouseEnter: V,
20717
+ onMouseEnter: H,
20716
20718
  onMouseLeave: b,
20717
20719
  role: "button",
20718
20720
  tabIndex: L ? -1 : 0,
@@ -20905,11 +20907,11 @@ const G8 = (r) => {
20905
20907
  c
20906
20908
  ), f = (v) => o ? v.getTime() === o.getTime() : !1, j = (v) => !!(a && v < a || c && v > c), x = C(r, s);
20907
20909
  return /* @__PURE__ */ u("div", { className: "ui-mx-auto ui-grid ui-w-fit ui-grid-cols-7 ui-gap-y-0.5", children: [
20908
- l.map((v, V) => /* @__PURE__ */ i(Q8, { day: v }, V)),
20909
- x.map((v, V) => {
20910
+ l.map((v, H) => /* @__PURE__ */ i(Q8, { day: v }, H)),
20911
+ x.map((v, H) => {
20910
20912
  if (v === null)
20911
- return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, V);
20912
- const b = new Date(r.getFullYear(), r.getMonth(), v), H = t ? w(b, p || null) : {
20913
+ return /* @__PURE__ */ i("div", { className: "ui-h-8 ui-w-8" }, H);
20914
+ const b = new Date(r.getFullYear(), r.getMonth(), v), V = t ? w(b, p || null) : {
20913
20915
  isStart: !1,
20914
20916
  isEnd: !1,
20915
20917
  isInRange: !1,
@@ -20925,21 +20927,21 @@ const G8 = (r) => {
20925
20927
  day: v,
20926
20928
  date: b,
20927
20929
  isSelected: f(b),
20928
- isInRange: H.isInRange,
20929
- isStart: H.isStart,
20930
- isEnd: H.isEnd,
20931
- isFirstInRange: H.isFirstInRange,
20932
- isLastInRange: H.isLastInRange,
20933
- afterSelected: H.afterSelected,
20934
- isDisabled: H.isDisabled,
20930
+ isInRange: V.isInRange,
20931
+ isStart: V.isStart,
20932
+ isEnd: V.isEnd,
20933
+ isFirstInRange: V.isFirstInRange,
20934
+ isLastInRange: V.isLastInRange,
20935
+ afterSelected: V.afterSelected,
20936
+ isDisabled: V.isDisabled,
20935
20937
  isToday: h(b),
20936
- isHovered: H.isHovered,
20938
+ isHovered: V.isHovered,
20937
20939
  onClick: n,
20938
20940
  onMouseEnter: e,
20939
20941
  onMouseLeave: () => e == null ? void 0 : e(null),
20940
20942
  renderDay: d
20941
20943
  },
20942
- V
20944
+ H
20943
20945
  );
20944
20946
  })
20945
20947
  ] });
@@ -21181,9 +21183,9 @@ const G8 = (r) => {
21181
21183
  className: j,
21182
21184
  style: x,
21183
21185
  name: v,
21184
- autosize: V = !1,
21186
+ autosize: H = !1,
21185
21187
  colorLeftIcon: b,
21186
- infoTooltip: H = "",
21188
+ infoTooltip: V = "",
21187
21189
  ...O
21188
21190
  }, T) => {
21189
21191
  const {
@@ -21210,7 +21212,7 @@ const G8 = (r) => {
21210
21212
  fullWidth: p,
21211
21213
  caret: s,
21212
21214
  paddingClasses: g,
21213
- autosize: V
21215
+ autosize: H
21214
21216
  });
21215
21217
  return r3({
21216
21218
  ref: T,
@@ -21228,16 +21230,16 @@ const G8 = (r) => {
21228
21230
  ),
21229
21231
  style: x,
21230
21232
  children: [
21231
- (r || H) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
21233
+ (r || V) && /* @__PURE__ */ u("div", { className: "ui-flex ui-flex-row ui-items-center ui-gap-1 ui-leading-tight", children: [
21232
21234
  r && /* @__PURE__ */ i("label", { className: I, children: r }),
21233
- H && /* @__PURE__ */ i(
21235
+ V && /* @__PURE__ */ i(
21234
21236
  H1,
21235
21237
  {
21236
21238
  variant: "icon",
21237
21239
  size: "sm",
21238
21240
  color: "white",
21239
21241
  as: "div",
21240
- tooltip: H,
21242
+ tooltip: V,
21241
21243
  clickable: !1,
21242
21244
  pointer: !1,
21243
21245
  icon: "InfoCircleOutlined"
@@ -21526,9 +21528,9 @@ const t3 = E1(
21526
21528
  startOfWeek: j = 1,
21527
21529
  showWeekNumbers: x = !1,
21528
21530
  yearRange: v = 12,
21529
- hoverDate: V,
21531
+ hoverDate: H,
21530
21532
  closeOnSelect: b,
21531
- autoCloseRange: H,
21533
+ autoCloseRange: V,
21532
21534
  renderHeader: O,
21533
21535
  renderDay: T
21534
21536
  }) => {
@@ -21566,7 +21568,7 @@ const t3 = E1(
21566
21568
  weekDays: w,
21567
21569
  startOfWeek: j,
21568
21570
  showWeekNumbers: x,
21569
- hoverDate: V,
21571
+ hoverDate: H,
21570
21572
  renderDay: T
21571
21573
  }
21572
21574
  );
@@ -21642,9 +21644,9 @@ const t3 = E1(
21642
21644
  locale: j,
21643
21645
  weekDays: x,
21644
21646
  monthNames: v,
21645
- startOfWeek: V,
21647
+ startOfWeek: H,
21646
21648
  showWeekNumbers: b,
21647
- yearRange: H,
21649
+ yearRange: V,
21648
21650
  hoverDate: O,
21649
21651
  closeOnSelect: T,
21650
21652
  autoCloseRange: U,
@@ -21733,7 +21735,7 @@ const t3 = E1(
21733
21735
  onToggleViewMode: D,
21734
21736
  onGoToToday: C,
21735
21737
  monthNames: v,
21736
- yearRange: H,
21738
+ yearRange: V,
21737
21739
  renderHeader: g
21738
21740
  }
21739
21741
  ),
@@ -21750,9 +21752,9 @@ const t3 = E1(
21750
21752
  viewMode: y[Z],
21751
21753
  weekDays: x,
21752
21754
  monthNames: v,
21753
- startOfWeek: V,
21755
+ startOfWeek: H,
21754
21756
  showWeekNumbers: b,
21755
- yearRange: H,
21757
+ yearRange: V,
21756
21758
  hoverDate: O,
21757
21759
  onMonthSelect: (B) => Q(Z, B),
21758
21760
  onYearSelect: (B) => X(Z, B),
@@ -21782,9 +21784,9 @@ const t3 = E1(
21782
21784
  locale: j,
21783
21785
  weekDays: x,
21784
21786
  monthNames: v,
21785
- startOfWeek: V,
21787
+ startOfWeek: H,
21786
21788
  showWeekNumbers: b,
21787
- yearRange: H,
21789
+ yearRange: V,
21788
21790
  hoverDate: O,
21789
21791
  closeOnSelect: T,
21790
21792
  autoCloseRange: U,
@@ -21826,9 +21828,9 @@ const t3 = E1(
21826
21828
  monthClassName: j = "",
21827
21829
  yearClassName: x = "",
21828
21830
  disabledDayClassName: v = "text-gray-400 cursor-not-allowed",
21829
- rangeClassName: V = "bg-blue-100",
21831
+ rangeClassName: H = "bg-blue-100",
21830
21832
  rangeStartClassName: b = "bg-blue-500 text-white rounded-l-full",
21831
- rangeEndClassName: H = "bg-blue-500 text-white rounded-r-full",
21833
+ rangeEndClassName: V = "bg-blue-500 text-white rounded-r-full",
21832
21834
  todayClassName: O = "border border-blue-500",
21833
21835
  showWeekNumbers: T = !1,
21834
21836
  yearRange: U = 12,
@@ -22008,8 +22010,8 @@ const t3 = E1(
22008
22010
  W(() => {
22009
22011
  if (!r || o || !c) return;
22010
22012
  const L = (d) => {
22011
- var v, V;
22012
- const C = d.target, h = (v = t.current) == null ? void 0 : v.contains(C), w = (V = n == null ? void 0 : n.current) == null ? void 0 : V.contains(C), f = e ? C.closest(`[data-${a}-id="${e}"]`) : !1, j = a ? C.closest(`[data-${a}-container-id]`) : !1, x = l.some((b) => C.closest(b));
22013
+ var v, H;
22014
+ const C = d.target, h = (v = t.current) == null ? void 0 : v.contains(C), w = (H = n == null ? void 0 : n.current) == null ? void 0 : H.contains(C), f = e ? C.closest(`[data-${a}-id="${e}"]`) : !1, j = a ? C.closest(`[data-${a}-container-id]`) : !1, x = l.some((b) => C.closest(b));
22013
22015
  h || w || f || j || x || s();
22014
22016
  }, p = (d) => {
22015
22017
  d.detail.id === e && s();
@@ -22054,14 +22056,14 @@ const t3 = E1(
22054
22056
  showCancelButton: j = !0,
22055
22057
  showSuccessButton: x = !0,
22056
22058
  closeAtSuccess: v = !1,
22057
- closeAtCancel: V = !0,
22059
+ closeAtCancel: H = !0,
22058
22060
  disabledSuccessButton: b = !1,
22059
- disabledCancelButton: H = !1
22061
+ disabledCancelButton: V = !1
22060
22062
  }) => {
22061
22063
  const O = f0(), { isVisible: T, isAnimating: U } = h0(r), z = o1(null);
22062
22064
  w0(r), W1(r, o, l), g0(r, z, !s);
22063
22065
  const S = () => {
22064
- w && w(), V && o();
22066
+ w && w(), H && o();
22065
22067
  }, M = () => {
22066
22068
  f && f(), v && o();
22067
22069
  };
@@ -22112,7 +22114,7 @@ const t3 = E1(
22112
22114
  (j || x) && /* @__PURE__ */ u(k1, { children: [
22113
22115
  /* @__PURE__ */ i(g1.Separator, { padding: !1 }),
22114
22116
  /* @__PURE__ */ u(g1.Footer, { className: "ui-flex ui-items-center ui-justify-end ui-gap-x-4 ui-p-4", children: [
22115
- j && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "outlined", color: "white", onClick: S, disabled: H, children: C }),
22117
+ j && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "outlined", color: "white", onClick: S, disabled: V, children: C }),
22116
22118
  x && /* @__PURE__ */ i(H1, { fullWidth: !0, variant: "button", onClick: M, disabled: b, children: h })
22117
22119
  ] })
22118
22120
  ] })
@@ -22321,7 +22323,7 @@ const t3 = E1(
22321
22323
  absolute: h = !1,
22322
22324
  onOpenChange: w
22323
22325
  }) => {
22324
- const f = a0(), j = L || `dropdown-${f}`, [x, v] = J(!1), [V, b] = J(!1), [H, O] = J(""), [T, U] = J("bottom"), [z, S] = J({}), M = o1(null), g = o1(null), k = o1(null), y = P(
22326
+ const f = a0(), j = L || `dropdown-${f}`, [x, v] = J(!1), [H, b] = J(!1), [V, O] = J(""), [T, U] = J("bottom"), [z, S] = J({}), M = o1(null), g = o1(null), k = o1(null), y = P(
22325
22327
  ($) => $ == null ? [] : Array.isArray($) ? $ : [$],
22326
22328
  []
22327
22329
  ), m = P(
@@ -22346,7 +22348,7 @@ const t3 = E1(
22346
22348
  const X = d ? t.filter(($) => y(D).includes($[e])) : [
22347
22349
  t.find(($) => D === "" || D === null || D === void 0 ? !1 : $[e] === -1 ? D === -1 || D === "-1" : $[e] === D)
22348
22350
  ].filter(Boolean), q = t.filter(($) => {
22349
- const Y = l ? $[n].toLowerCase().includes(H.toLowerCase()) : !0;
22351
+ const Y = l ? $[n].toLowerCase().includes(V.toLowerCase()) : !0;
22350
22352
  if (d) {
22351
22353
  const r1 = y(D).includes($[e]);
22352
22354
  return Y && !r1;
@@ -22455,17 +22457,17 @@ const t3 = E1(
22455
22457
  const $ = () => {
22456
22458
  Z();
22457
22459
  }, Y = () => {
22458
- x && !V && Z();
22460
+ x && !H && Z();
22459
22461
  };
22460
22462
  return window.addEventListener("resize", $), window.addEventListener("scroll", Y, !1), document.addEventListener("scroll", Y, !1), () => {
22461
22463
  window.removeEventListener("resize", $), window.removeEventListener("scroll", Y, !1), document.removeEventListener("scroll", Y, !1);
22462
22464
  };
22463
22465
  }
22464
- }, [x, Z, V]), {
22466
+ }, [x, Z, H]), {
22465
22467
  // Estado
22466
22468
  isOpen: x,
22467
- isClosing: V,
22468
- searchValue: H,
22469
+ isClosing: H,
22470
+ searchValue: V,
22469
22471
  selectedValue: D,
22470
22472
  selectedOptions: X,
22471
22473
  filteredOptions: q,
@@ -22535,14 +22537,14 @@ const t3 = E1(
22535
22537
  valueName: h,
22536
22538
  idName: w
22537
22539
  }) => {
22538
- const [f, j] = J(!1), [x, v] = J(null), V = o1(null);
22540
+ const [f, j] = J(!1), [x, v] = J(null), H = o1(null);
22539
22541
  return W(() => {
22540
- if (!V.current || t.length === 0) {
22542
+ if (!H.current || t.length === 0) {
22541
22543
  j(!1), v(null);
22542
22544
  return;
22543
22545
  }
22544
- const H = setTimeout(() => {
22545
- const O = V.current;
22546
+ const V = setTimeout(() => {
22547
+ const O = H.current;
22546
22548
  if (O) {
22547
22549
  const T = O.scrollHeight, U = O.clientHeight;
22548
22550
  if (x === null) {
@@ -22553,7 +22555,7 @@ const t3 = E1(
22553
22555
  j(z);
22554
22556
  }
22555
22557
  }, 100);
22556
- return () => clearTimeout(H);
22558
+ return () => clearTimeout(V);
22557
22559
  }, [t.length, x]), // Input personalizado con tags para modo tags
22558
22560
  /* @__PURE__ */ u("div", { className: "ui-w-full", children: [
22559
22561
  r && /* @__PURE__ */ i("label", { className: "ui-mb-1 ui-block ui-text-sm ui-font-bold ui-text-gray-700", children: r }),
@@ -22574,7 +22576,7 @@ const t3 = E1(
22574
22576
  t.length > 0 ? /* @__PURE__ */ i(
22575
22577
  "div",
22576
22578
  {
22577
- ref: V,
22579
+ ref: H,
22578
22580
  className: `ui-flex ui-flex-wrap ui-gap-1 ${f ? "ui-max-h-auto" : "ui-max-h-[40px]"} ui-overflow-hidden`,
22579
22581
  children: t.map((b) => b ? /* @__PURE__ */ i(
22580
22582
  v0,
@@ -22583,8 +22585,8 @@ const t3 = E1(
22583
22585
  label: b[h],
22584
22586
  color: "blue",
22585
22587
  size: "xs",
22586
- onClick: (H) => {
22587
- H.stopPropagation(), n(b[w]);
22588
+ onClick: (V) => {
22589
+ V.stopPropagation(), n(b[w]);
22588
22590
  }
22589
22591
  },
22590
22592
  b[h]
@@ -22631,9 +22633,9 @@ const t3 = E1(
22631
22633
  options: j = [],
22632
22634
  valueName: x = "label",
22633
22635
  idName: v = "value",
22634
- onValueChange: V,
22636
+ onValueChange: H,
22635
22637
  onOptionSelect: b,
22636
- onCheckboxChange: H,
22638
+ onCheckboxChange: V,
22637
22639
  searchable: O = !1,
22638
22640
  maxHeight: T = "200px",
22639
22641
  closeOnClickOutside: U = !0,
@@ -22690,7 +22692,7 @@ const t3 = E1(
22690
22692
  options: u1,
22691
22693
  valueName: x,
22692
22694
  idName: v,
22693
- onValueChange: V,
22695
+ onValueChange: H,
22694
22696
  onOptionSelect: b,
22695
22697
  searchable: O,
22696
22698
  closeOnClickOutside: U,
@@ -22723,7 +22725,7 @@ const t3 = E1(
22723
22725
  () => ({
22724
22726
  getValue: () => r1,
22725
22727
  setValue: (E) => {
22726
- d1 || y1(E), V == null || V(E);
22728
+ d1 || y1(E), H == null || H(E);
22727
22729
  },
22728
22730
  focus: () => {
22729
22731
  var E, l1;
@@ -22734,7 +22736,7 @@ const t3 = E1(
22734
22736
  S && g === "tags" ? (E = D.current) == null || E.blur() : (l1 = a1.current) == null || l1.blur();
22735
22737
  },
22736
22738
  clear: () => {
22737
- d1 || y1(S ? [] : ""), V == null || V(S ? [] : "");
22739
+ d1 || y1(S ? [] : ""), H == null || H(S ? [] : "");
22738
22740
  },
22739
22741
  open: () => {
22740
22742
  w || (h1(), setTimeout(() => {
@@ -22750,7 +22752,7 @@ const t3 = E1(
22750
22752
  d1,
22751
22753
  w,
22752
22754
  h1,
22753
- V,
22755
+ H,
22754
22756
  Z1,
22755
22757
  S,
22756
22758
  y1,
@@ -22853,7 +22855,7 @@ const t3 = E1(
22853
22855
  iconColor: K.iconColor,
22854
22856
  checkboxProps: {
22855
22857
  checked: K.checked || !1,
22856
- onChange: (O1) => H == null ? void 0 : H(K, O1),
22858
+ onChange: (O1) => V == null ? void 0 : V(K, O1),
22857
22859
  disabled: K.disabled
22858
22860
  },
22859
22861
  children: K[x]
@@ -23017,9 +23019,9 @@ const g3 = {
23017
23019
  onChangeTab: j,
23018
23020
  headerButtonIcon: x,
23019
23021
  headerButtonOnClick: v,
23020
- footerButtonIcon: V,
23022
+ footerButtonIcon: H,
23021
23023
  footerButtonOnClick: b,
23022
- cancelButtonSlotLeft: H,
23024
+ cancelButtonSlotLeft: V,
23023
23025
  successButtonSlotRight: O
23024
23026
  }) => {
23025
23027
  const T = {
@@ -23041,9 +23043,9 @@ const g3 = {
23041
23043
  onChangeTab: j,
23042
23044
  headerButtonIcon: x,
23043
23045
  headerButtonOnClick: v,
23044
- footerButtonIcon: V,
23046
+ footerButtonIcon: H,
23045
23047
  footerButtonOnClick: b,
23046
- cancelButtonSlotLeft: H,
23048
+ cancelButtonSlotLeft: V,
23047
23049
  successButtonSlotRight: O
23048
23050
  };
23049
23051
  return /* @__PURE__ */ i(j0.Provider, { value: T, children: r });
@@ -23117,8 +23119,8 @@ const g3 = {
23117
23119
  onChangeTab: h,
23118
23120
  headerButtonIcon: w,
23119
23121
  headerButtonOnClick: f
23120
- } = V0(), j = o ?? L, x = c ?? w, v = l ?? f, V = (n == null ? void 0 : n.length) > 0 ? n : d, b = (V == null ? void 0 : V.length) ?? !1, H = a ?? h, O = e ?? C, T = (U) => {
23121
- H && H(U);
23122
+ } = V0(), j = o ?? L, x = c ?? w, v = l ?? f, H = (n == null ? void 0 : n.length) > 0 ? n : d, b = (H == null ? void 0 : H.length) ?? !1, V = a ?? h, O = e ?? C, T = (U) => {
23123
+ V && V(U);
23122
23124
  };
23123
23125
  return /* @__PURE__ */ u("div", { className: "ui-relative ui-flex ui-flex-wrap ui-items-center ui-justify-between ui-gap-x-md ui-border-b ui-border-neutral-100 ui-p-4", children: [
23124
23126
  p && /* @__PURE__ */ i("div", { className: "ui-flex ui-h-8 ui-w-8 ui-items-center ui-justify-center ui-gap-2 ui-rounded-full ui-bg-blue-50 ui-text-blue-500", children: /* @__PURE__ */ i(b1, { slot: p, size: "lg" }) }),
@@ -23152,7 +23154,7 @@ const g3 = {
23152
23154
  b ? /* @__PURE__ */ i("div", { className: "ui-z-0 ui-mt-2 ui-flex ui-w-full ui-justify-center ui-overflow-x-auto sm:ui-absolute", children: /* @__PURE__ */ i(
23153
23155
  M3,
23154
23156
  {
23155
- options: V ?? [],
23157
+ options: H ?? [],
23156
23158
  defaultValue: O,
23157
23159
  size: "sm",
23158
23160
  onChange: (U) => {
@@ -23186,15 +23188,15 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23186
23188
  successButtonSlotRight: x
23187
23189
  } = V0(), v = () => {
23188
23190
  s && s(), h && a();
23189
- }, V = () => {
23191
+ }, H = () => {
23190
23192
  L && L(), C && a();
23191
- }, b = o ?? w, H = t ?? f;
23193
+ }, b = o ?? w, V = t ?? f;
23192
23194
  return /* @__PURE__ */ u(
23193
23195
  "div",
23194
23196
  {
23195
- className: `ui-flex ui-border-t ui-border-neutral-100 ui-p-4 ${H ? "ui-justify-between" : "ui-justify-end"} ui-items-center ui-gap-2`,
23197
+ className: `ui-flex ui-border-t ui-border-neutral-100 ui-p-4 ${V ? "ui-justify-between" : "ui-justify-end"} ui-items-center ui-gap-2`,
23196
23198
  children: [
23197
- H && /* @__PURE__ */ i(
23199
+ V && /* @__PURE__ */ i(
23198
23200
  t1,
23199
23201
  {
23200
23202
  "aria-label": "Header button",
@@ -23203,7 +23205,7 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23203
23205
  color: "white",
23204
23206
  icon: b ?? "AlignJustifyOutlined",
23205
23207
  size: "lg",
23206
- onClick: H
23208
+ onClick: V
23207
23209
  }
23208
23210
  ),
23209
23211
  r || /* @__PURE__ */ u("div", { className: "ui-flex ui-gap-2", children: [
@@ -23221,7 +23223,7 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23221
23223
  t1,
23222
23224
  {
23223
23225
  slotLeft: e ?? x,
23224
- onClick: V,
23226
+ onClick: H,
23225
23227
  children: l
23226
23228
  }
23227
23229
  )
@@ -23261,9 +23263,9 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23261
23263
  showSuccessButton: j,
23262
23264
  closeAtSuccess: x,
23263
23265
  closeAtCancel: v,
23264
- tabs: V,
23266
+ tabs: H,
23265
23267
  defaultValueTab: b,
23266
- onChangeTab: H,
23268
+ onChangeTab: V,
23267
23269
  headerButtonIcon: O,
23268
23270
  headerButtonOnClick: T,
23269
23271
  footerButtonIcon: U,
@@ -23329,9 +23331,9 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23329
23331
  headerButtonOnClick: T,
23330
23332
  footerButtonIcon: U,
23331
23333
  footerButtonOnClick: z,
23332
- tabs: V,
23334
+ tabs: H,
23333
23335
  defaultValueTab: b,
23334
- onChangeTab: H,
23336
+ onChangeTab: V,
23335
23337
  cancelButtonSlotLeft: S,
23336
23338
  successButtonSlotRight: M,
23337
23339
  children: [
@@ -23369,7 +23371,7 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23369
23371
  disabled: l = !1,
23370
23372
  absolute: s = !1
23371
23373
  }) => {
23372
- const L = a0(), p = e || `popup-${L}`, [d, C] = J(!1), [h, w] = J({}), [f, j] = J(!1), x = o1(null), v = o1(null), V = o1(null), b = P(() => {
23374
+ const L = a0(), p = e || `popup-${L}`, [d, C] = J(!1), [h, w] = J({}), [f, j] = J(!1), x = o1(null), v = o1(null), H = o1(null), b = P(() => {
23373
23375
  const T = x.current, U = v.current;
23374
23376
  if (!T || !U) return;
23375
23377
  const z = T.getBoundingClientRect(), S = U.getBoundingClientRect();
@@ -23431,7 +23433,7 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23431
23433
  zIndex: m
23432
23434
  };
23433
23435
  w(I), j(!0);
23434
- }, [r, o, p, s]), H = (T) => {
23436
+ }, [r, o, p, s]), V = (T) => {
23435
23437
  T && T.stopPropagation(), !l && (d ? O() : (H3(p), w({}), j(!1), C(!0), X1.add(p), a == null || a()));
23436
23438
  }, O = () => {
23437
23439
  C(!1), j(!1), X1.delete(p), c == null || c();
@@ -23466,7 +23468,7 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23466
23468
  isActive: d,
23467
23469
  disabled: l,
23468
23470
  elementRef: v,
23469
- containerRef: V,
23471
+ containerRef: H,
23470
23472
  elementId: p,
23471
23473
  elementType: "popup",
23472
23474
  closeOnClickOutside: t,
@@ -23477,9 +23479,9 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23477
23479
  isPositioned: f,
23478
23480
  triggerRef: x,
23479
23481
  popupRef: v,
23480
- containerRef: V,
23482
+ containerRef: H,
23481
23483
  popupUniqueId: p,
23482
- togglePopup: H,
23484
+ togglePopup: V,
23483
23485
  closePopup: O
23484
23486
  };
23485
23487
  }, O3 = (r) => ({
@@ -23510,9 +23512,9 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23510
23512
  slotLeft: j,
23511
23513
  borderRadius: x = "sm",
23512
23514
  slotRight: v,
23513
- icon: V,
23515
+ icon: H,
23514
23516
  colorIcon: b,
23515
- tooltip: H,
23517
+ tooltip: V,
23516
23518
  tooltipPosition: O,
23517
23519
  tooltipAlignment: T,
23518
23520
  tooltipColor: U,
@@ -23604,12 +23606,12 @@ const x3 = ({ children: r, withPadding: o = !0 }) => /* @__PURE__ */ i("div", {
23604
23606
  color: C,
23605
23607
  size: h,
23606
23608
  rounded: f,
23607
- icon: V,
23609
+ icon: H,
23608
23610
  slotLeft: j,
23609
23611
  slotRight: v,
23610
23612
  colorIcon: b,
23611
23613
  textColor: w,
23612
- tooltip: H,
23614
+ tooltip: V,
23613
23615
  tooltipPosition: O,
23614
23616
  tooltipAlignment: T,
23615
23617
  tooltipColor: U,
@@ -23658,9 +23660,9 @@ const Z3 = [
23658
23660
  f(t);
23659
23661
  }, [t]);
23660
23662
  const j = Math.min(r * (t || 0), n || 0) || 0, v = (() => {
23661
- const b = Math.min(Math.max(r, 1), Math.max(o - p + 1, 1)), H = Math.min(b + p - 1, o);
23662
- return Array.from({ length: H - b + 1 }, (O, T) => b + T);
23663
- })(), V = (b) => {
23663
+ const b = Math.min(Math.max(r, 1), Math.max(o - p + 1, 1)), V = Math.min(b + p - 1, o);
23664
+ return Array.from({ length: V - b + 1 }, (O, T) => b + T);
23665
+ })(), H = (b) => {
23664
23666
  f(b), s(b), h(1);
23665
23667
  };
23666
23668
  return /* @__PURE__ */ i(
@@ -23783,7 +23785,7 @@ const Z3 = [
23783
23785
  options: c,
23784
23786
  value: w,
23785
23787
  valueName: "id",
23786
- onValueChange: (b) => V(Number(b))
23788
+ onValueChange: (b) => H(Number(b))
23787
23789
  }
23788
23790
  )
23789
23791
  ] }) })
@@ -26959,7 +26961,7 @@ const Z3 = [
26959
26961
  t || p(!0);
26960
26962
  }, [t]), v = P(() => {
26961
26963
  p(!1), s(!1);
26962
- }, []), V = P(
26964
+ }, []), H = P(
26963
26965
  (b) => {
26964
26966
  t || (b.preventDefault(), n && n({
26965
26967
  target: {
@@ -26982,7 +26984,7 @@ const Z3 = [
26982
26984
  handleMouseUp: j,
26983
26985
  handleMouseEnter: x,
26984
26986
  handleMouseLeave: v,
26985
- handleClick: V
26987
+ handleClick: H
26986
26988
  }
26987
26989
  };
26988
26990
  }, q3 = ({
@@ -27326,13 +27328,13 @@ const Z3 = [
27326
27328
  onClickStep: L,
27327
27329
  onStepChange: p
27328
27330
  }), v = f(o || "blue");
27329
- return /* @__PURE__ */ i("div", { className: `${C ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${d ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${d ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${e5({ color: o, size: t, className: n })}`, children: r.map((b, H) => {
27330
- const O = x(H), T = H === r.length - 1;
27331
+ return /* @__PURE__ */ i("div", { className: `${C ? `ui-flex ui-flex-col ui-items-center ui-min-h-0 ${d ? "ui-overflow-y-auto ui-overflow-x-hidden" : ""}` : `ui-flex ui-items-center ui-min-w-0 ${d ? "ui-overflow-x-auto ui-overflow-y-hidden" : ""}`} ${e5({ color: o, size: t, className: n })}`, children: r.map((b, V) => {
27332
+ const O = x(V), T = V === r.length - 1;
27331
27333
  return /* @__PURE__ */ i(
27332
27334
  n5,
27333
27335
  {
27334
27336
  step: b,
27335
- stepIndex: H,
27337
+ stepIndex: V,
27336
27338
  status: O,
27337
27339
  colorClasses: v,
27338
27340
  isLast: T,
@@ -27344,7 +27346,7 @@ const Z3 = [
27344
27346
  vertical: C,
27345
27347
  stepClickable: h
27346
27348
  },
27347
- H
27349
+ V
27348
27350
  );
27349
27351
  }) });
27350
27352
  }, u0 = {
@@ -27485,7 +27487,7 @@ const T1 = /* @__PURE__ */ new Map(), K1 = {
27485
27487
  id: n,
27486
27488
  message: e,
27487
27489
  title: a.title,
27488
- type: o,
27490
+ color: o,
27489
27491
  onClick: a.onClick,
27490
27492
  onClose: a.onClose,
27491
27493
  onPrimaryClick: a.onPrimaryClick,
@@ -27521,7 +27523,7 @@ const T1 = /* @__PURE__ */ new Map(), K1 = {
27521
27523
  id: r,
27522
27524
  message: "",
27523
27525
  title: "",
27524
- type: "green",
27526
+ color: "green",
27525
27527
  duration: 0,
27526
27528
  position: w1.position,
27527
27529
  showCloseButton: !0,
@@ -27600,7 +27602,7 @@ const T1 = /* @__PURE__ */ new Map(), K1 = {
27600
27602
  return o ? /* @__PURE__ */ i(
27601
27603
  Y8,
27602
27604
  {
27603
- type: r.type || "green",
27605
+ color: r.color || "green",
27604
27606
  variant: r.variant || "contained",
27605
27607
  message: r.message,
27606
27608
  title: r.title,