ui-mathilde-web 0.1.6 → 0.1.8

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.
@@ -3,7 +3,7 @@ var op = (t, e, n) => e in t ? rp(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var te = (t, e, n) => op(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { jsx as b, jsxs as z, Fragment as _t } from "react/jsx-runtime";
5
5
  import * as k from "react";
6
- import H, { forwardRef as ue, useState as xe, useRef as Yt, useEffect as Ze, createContext as Ye, useContext as De, createElement as Mt, Fragment as Wd, useMemo as wi, Children as Kn, cloneElement as Vo, isValidElement as ip, PureComponent as sp, useImperativeHandle as Vd, useLayoutEffect as Vs, useCallback as nl, useId as Dn } from "react";
6
+ import H, { forwardRef as ue, useState as ye, useRef as Yt, useEffect as Ze, createContext as Ye, useContext as De, createElement as Mt, Fragment as Wd, useMemo as wi, Children as Kn, cloneElement as Vo, isValidElement as ip, PureComponent as sp, useImperativeHandle as Vd, useLayoutEffect as Vs, useCallback as nl, useId as Dn } from "react";
7
7
  import * as ap from "react-dom";
8
8
  import { createPortal as lp } from "react-dom";
9
9
  const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn-border__-pdSm", up = "button-module__mth-btn__LkrNk", fp = "button-module__mth-btn-full__7QycJ", fo = {
@@ -15,7 +15,7 @@ const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn
15
15
  mthBtn: up,
16
16
  "mth-btn-full": "button-module__mth-btn-full__7QycJ",
17
17
  mthBtnFull: fp
18
- }, i_ = ({
18
+ }, s_ = ({
19
19
  txtBtn: t,
20
20
  typeButton: e,
21
21
  full: n,
@@ -41,7 +41,7 @@ const cp = "button-module__mth-btn-default__cda3k", dp = "button-module__mth-btn
41
41
  ) }), hp = "checkbox-module__checkmark__pC-qY", Yo = {
42
42
  "checkbox-container": "checkbox-module__checkbox-container__jLidj",
43
43
  checkmark: hp
44
- }, s_ = ({
44
+ }, a_ = ({
45
45
  label: t,
46
46
  value: e,
47
47
  checked: n,
@@ -235,7 +235,7 @@ const Np = {
235
235
  value: n,
236
236
  ...r
237
237
  }) => {
238
- const [o, i] = xe(!1), s = () => {
238
+ const [o, i] = ye(!1), s = () => {
239
239
  i(!o);
240
240
  };
241
241
  return /* @__PURE__ */ b("div", { className: "mb-5", children: /* @__PURE__ */ z("div", { className: "relative inline-block w-full", children: [
@@ -309,7 +309,7 @@ const Pp = {
309
309
  impresiones: "https://ftp.mathilde-ads.com/151-b50587f350bafb8f19a9308325b45467.svg",
310
310
  porcentaje: "https://ftp.mathilde-ads.com/151-846076c2407128d25fffa4f35342d415.svg",
311
311
  vistas: "https://ftp.mathilde-ads.com/151-2b68ef020e57a0986c576b16607d85dd.svg"
312
- }, a_ = ({
312
+ }, l_ = ({
313
313
  logo: t,
314
314
  number: e,
315
315
  title: n,
@@ -797,7 +797,7 @@ function ge(t, e) {
797
797
  return typeof t > "u" ? e : t;
798
798
  }
799
799
  const n0 = (t, e) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) / 100 : +t / e, Xd = (t, e) => typeof t == "string" && t.endsWith("%") ? parseFloat(t) / 100 * e : +t;
800
- function ve(t, e, n) {
800
+ function xe(t, e, n) {
801
801
  if (t && typeof t.call == "function")
802
802
  return t.apply(n, e);
803
803
  }
@@ -3739,7 +3739,7 @@ class _i extends eo {
3739
3739
  this._cache = {}, this._dataLimitsCached = !1;
3740
3740
  }
3741
3741
  beforeUpdate() {
3742
- ve(this.options.beforeUpdate, [
3742
+ xe(this.options.beforeUpdate, [
3743
3743
  this
3744
3744
  ]);
3745
3745
  }
@@ -3759,12 +3759,12 @@ class _i extends eo {
3759
3759
  this.isHorizontal() ? (n = this.left, r = this.right) : (n = this.top, r = this.bottom, e = !e), this._startPixel = n, this._endPixel = r, this._reversePixels = e, this._length = r - n, this._alignToPixels = this.options.alignToPixels;
3760
3760
  }
3761
3761
  afterUpdate() {
3762
- ve(this.options.afterUpdate, [
3762
+ xe(this.options.afterUpdate, [
3763
3763
  this
3764
3764
  ]);
3765
3765
  }
3766
3766
  beforeSetDimensions() {
3767
- ve(this.options.beforeSetDimensions, [
3767
+ xe(this.options.beforeSetDimensions, [
3768
3768
  this
3769
3769
  ]);
3770
3770
  }
@@ -3772,12 +3772,12 @@ class _i extends eo {
3772
3772
  this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
3773
3773
  }
3774
3774
  afterSetDimensions() {
3775
- ve(this.options.afterSetDimensions, [
3775
+ xe(this.options.afterSetDimensions, [
3776
3776
  this
3777
3777
  ]);
3778
3778
  }
3779
3779
  _callHooks(e) {
3780
- this.chart.notifyPlugins(e, this.getContext()), ve(this.options[e], [
3780
+ this.chart.notifyPlugins(e, this.getContext()), xe(this.options[e], [
3781
3781
  this
3782
3782
  ]);
3783
3783
  }
@@ -3799,7 +3799,7 @@ class _i extends eo {
3799
3799
  this._callHooks("afterBuildTicks");
3800
3800
  }
3801
3801
  beforeTickToLabelConversion() {
3802
- ve(this.options.beforeTickToLabelConversion, [
3802
+ xe(this.options.beforeTickToLabelConversion, [
3803
3803
  this
3804
3804
  ]);
3805
3805
  }
@@ -3807,19 +3807,19 @@ class _i extends eo {
3807
3807
  const n = this.options.ticks;
3808
3808
  let r, o, i;
3809
3809
  for (r = 0, o = e.length; r < o; r++)
3810
- i = e[r], i.label = ve(n.callback, [
3810
+ i = e[r], i.label = xe(n.callback, [
3811
3811
  i.value,
3812
3812
  r,
3813
3813
  e
3814
3814
  ], this);
3815
3815
  }
3816
3816
  afterTickToLabelConversion() {
3817
- ve(this.options.afterTickToLabelConversion, [
3817
+ xe(this.options.afterTickToLabelConversion, [
3818
3818
  this
3819
3819
  ]);
3820
3820
  }
3821
3821
  beforeCalculateLabelRotation() {
3822
- ve(this.options.beforeCalculateLabelRotation, [
3822
+ xe(this.options.beforeCalculateLabelRotation, [
3823
3823
  this
3824
3824
  ]);
3825
3825
  }
@@ -3834,14 +3834,14 @@ class _i extends eo {
3834
3834
  a = e.offset ? this.maxWidth / r : h / (r - 1), u + 6 > a && (a = h / (r - (e.offset ? 0.5 : 1)), l = this.maxHeight - pr(e.grid) - n.padding - Hl(e.title, this.chart.options.font), c = Math.sqrt(u * u + f * f), s = u0(Math.min(Math.asin(ht((d.highest.height + 6) / a, -1, 1)), Math.asin(ht(l / c, -1, 1)) - Math.asin(ht(f / c, -1, 1)))), s = Math.max(o, Math.min(i, s))), this.labelRotation = s;
3835
3835
  }
3836
3836
  afterCalculateLabelRotation() {
3837
- ve(this.options.afterCalculateLabelRotation, [
3837
+ xe(this.options.afterCalculateLabelRotation, [
3838
3838
  this
3839
3839
  ]);
3840
3840
  }
3841
3841
  afterAutoSkip() {
3842
3842
  }
3843
3843
  beforeFit() {
3844
- ve(this.options.beforeFit, [
3844
+ xe(this.options.beforeFit, [
3845
3845
  this
3846
3846
  ]);
3847
3847
  }
@@ -3881,7 +3881,7 @@ class _i extends eo {
3881
3881
  this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
3882
3882
  }
3883
3883
  afterFit() {
3884
- ve(this.options.afterFit, [
3884
+ xe(this.options.afterFit, [
3885
3885
  this
3886
3886
  ]);
3887
3887
  }
@@ -4396,7 +4396,7 @@ class lb {
4396
4396
  }
4397
4397
  _exec(e, n, r) {
4398
4398
  const o = qs(e);
4399
- ve(r["before" + o], [], r), n[e](r), ve(r["after" + o], [], r);
4399
+ xe(r["before" + o], [], r), n[e](r), xe(r["after" + o], [], r);
4400
4400
  }
4401
4401
  _getRegistryForType(e) {
4402
4402
  for (let n = 0; n < this._typedRegistries.length; n++) {
@@ -4431,7 +4431,7 @@ class cb {
4431
4431
  o,
4432
4432
  i.options
4433
4433
  ];
4434
- if (ve(a, l, s) === !1 && o.cancelable)
4434
+ if (xe(a, l, s) === !1 && o.cancelable)
4435
4435
  return !1;
4436
4436
  }
4437
4437
  return !0;
@@ -4762,13 +4762,13 @@ function ql(t, e) {
4762
4762
  }
4763
4763
  function Gl(t) {
4764
4764
  const e = t.chart, n = e.options.animation;
4765
- e.notifyPlugins("afterRender"), ve(n && n.onComplete, [
4765
+ e.notifyPlugins("afterRender"), xe(n && n.onComplete, [
4766
4766
  t
4767
4767
  ], e);
4768
4768
  }
4769
4769
  function Sb(t) {
4770
4770
  const e = t.chart, n = e.options.animation;
4771
- ve(n && n.onProgress, [
4771
+ xe(n && n.onProgress, [
4772
4772
  t
4773
4773
  ], e);
4774
4774
  }
@@ -4863,7 +4863,7 @@ let Si = (nn = class {
4863
4863
  const r = this.options, o = this.canvas, i = r.maintainAspectRatio && this.aspectRatio, s = this.platform.getMaximumSize(o, e, n, i), a = r.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
4864
4864
  this.width = s.width, this.height = s.height, this._aspectRatio = this.aspectRatio, Sl(this, a, !0) && (this.notifyPlugins("resize", {
4865
4865
  size: s
4866
- }), ve(r.onResize, [
4866
+ }), xe(r.onResize, [
4867
4867
  this,
4868
4868
  s
4869
4869
  ], this), this.attached && this._doResize(l) && this.render());
@@ -5264,11 +5264,11 @@ let Si = (nn = class {
5264
5264
  }
5265
5265
  _handleEvent(e, n, r) {
5266
5266
  const { _active: o = [], options: i } = this, s = n, a = this._getActiveElements(e, o, r, s), l = a0(e), c = Ob(e, this._lastEvent, r, l);
5267
- r && (this._lastEvent = null, ve(i.onHover, [
5267
+ r && (this._lastEvent = null, xe(i.onHover, [
5268
5268
  e,
5269
5269
  a,
5270
5270
  this
5271
- ], this), l && ve(i.onClick, [
5271
+ ], this), l && xe(i.onClick, [
5272
5272
  e,
5273
5273
  a,
5274
5274
  this
@@ -5477,7 +5477,7 @@ class Ql extends eo {
5477
5477
  }
5478
5478
  buildLabels() {
5479
5479
  const e = this.options.labels || {};
5480
- let n = ve(e.generateLabels, [
5480
+ let n = xe(e.generateLabels, [
5481
5481
  this.chart
5482
5482
  ], this) || [];
5483
5483
  e.filter && (n = n.filter((r) => e.filter(r, this.chart.data))), e.sort && (n = n.sort((r, o) => e.sort(r, o, this.chart.data))), this.options.reverse && n.reverse(), this.legendItems = n;
@@ -5647,16 +5647,16 @@ class Ql extends eo {
5647
5647
  const r = this._getLegendItemAt(e.x, e.y);
5648
5648
  if (e.type === "mousemove" || e.type === "mouseout") {
5649
5649
  const o = this._hoveredItem, i = Db(o, r);
5650
- o && !i && ve(n.onLeave, [
5650
+ o && !i && xe(n.onLeave, [
5651
5651
  e,
5652
5652
  o,
5653
5653
  this
5654
- ], this), this._hoveredItem = r, r && !i && ve(n.onHover, [
5654
+ ], this), this._hoveredItem = r, r && !i && xe(n.onHover, [
5655
5655
  e,
5656
5656
  r,
5657
5657
  this
5658
5658
  ], this);
5659
- } else r && ve(n.onClick, [
5659
+ } else r && xe(n.onClick, [
5660
5660
  e,
5661
5661
  r,
5662
5662
  this
@@ -6496,7 +6496,7 @@ class oi extends _i {
6496
6496
  _tickFormatFunction(e, n, r, o) {
6497
6497
  const i = this.options, s = i.ticks.callback;
6498
6498
  if (s)
6499
- return ve(s, [
6499
+ return xe(s, [
6500
6500
  e,
6501
6501
  n,
6502
6502
  r
@@ -6722,7 +6722,7 @@ function ty(t, e) {
6722
6722
  }
6723
6723
  const ny = /* @__PURE__ */ ty("doughnut", Sr);
6724
6724
  Si.register(Or, Kb, Bb);
6725
- const u_ = () => {
6725
+ const f_ = () => {
6726
6726
  const t = {
6727
6727
  labels: ["Planeado", "Ejecutado"],
6728
6728
  datasets: [
@@ -11591,8 +11591,8 @@ function A1(t, e = {}) {
11591
11591
  return di(o.pathname, s) != null || di(o.pathname, i) != null;
11592
11592
  }
11593
11593
  new TextEncoder();
11594
- const f_ = () => {
11595
- const [t, e] = xe(!0), [n, r] = xe(null), o = () => {
11594
+ const h_ = () => {
11595
+ const [t, e] = ye(!0), [n, r] = ye(null), o = () => {
11596
11596
  n || e(!1);
11597
11597
  }, i = () => {
11598
11598
  n || e(!0);
@@ -12128,7 +12128,7 @@ function tk(t, ...e) {
12128
12128
  return i(ek.apply(null, arguments));
12129
12129
  };
12130
12130
  }
12131
- function ye(t) {
12131
+ function ve(t) {
12132
12132
  const e = (n) => n[t] || [];
12133
12133
  return e.isThemeGetter = !0, e;
12134
12134
  }
@@ -12191,7 +12191,7 @@ function yk(t) {
12191
12191
  return lk.test(t);
12192
12192
  }
12193
12193
  function vk() {
12194
- const t = ye("colors"), e = ye("spacing"), n = ye("blur"), r = ye("brightness"), o = ye("borderColor"), i = ye("borderRadius"), s = ye("borderSpacing"), a = ye("borderWidth"), l = ye("contrast"), c = ye("grayscale"), d = ye("hueRotate"), u = ye("invert"), f = ye("gap"), h = ye("gradientColorStops"), g = ye("gradientColorStopPositions"), p = ye("inset"), m = ye("margin"), v = ye("opacity"), y = ye("padding"), C = ye("saturate"), x = ye("scale"), w = ye("sepia"), _ = ye("skew"), O = ye("space"), N = ye("translate"), T = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", Z, e], M = () => [Z, e], P = () => ["", Bt, en], E = () => ["auto", kn, Z], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", Z], B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [kn, No], V = () => [kn, Z];
12194
+ const t = ve("colors"), e = ve("spacing"), n = ve("blur"), r = ve("brightness"), o = ve("borderColor"), i = ve("borderRadius"), s = ve("borderSpacing"), a = ve("borderWidth"), l = ve("contrast"), c = ve("grayscale"), d = ve("hueRotate"), u = ve("invert"), f = ve("gap"), h = ve("gradientColorStops"), g = ve("gradientColorStopPositions"), p = ve("inset"), m = ve("margin"), v = ve("opacity"), y = ve("padding"), C = ve("saturate"), x = ve("scale"), w = ve("sepia"), _ = ve("skew"), O = ve("space"), N = ve("translate"), T = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", Z, e], M = () => [Z, e], P = () => ["", Bt, en], E = () => ["auto", kn, Z], R = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], D = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", Z], B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [kn, No], V = () => [kn, Z];
12195
12195
  return {
12196
12196
  cacheSize: 500,
12197
12197
  separator: ":",
@@ -15598,7 +15598,7 @@ const Bf = ({
15598
15598
  }
15599
15599
  );
15600
15600
  }, $f = ({ children: t, ...e }) => {
15601
- const { alwaysOpen: n } = e, [r, o] = xe(e.isOpen), i = n ? {
15601
+ const { alwaysOpen: n } = e, [r, o] = ye(e.isOpen), i = n ? {
15602
15602
  ...e,
15603
15603
  isOpen: r,
15604
15604
  setOpen: () => o(!r)
@@ -15642,7 +15642,7 @@ const Bf = ({
15642
15642
  theme: s = {},
15643
15643
  ...a
15644
15644
  }) => {
15645
- const [l, c] = xe(o ? -1 : 0), d = wi(
15645
+ const [l, c] = ye(o ? -1 : 0), d = wi(
15646
15646
  () => Kn.map(
15647
15647
  n,
15648
15648
  (f, h) => Vo(f, {
@@ -16447,7 +16447,7 @@ const so = (t, e, n) => {
16447
16447
  }, v) => {
16448
16448
  const y = j(G().datepicker, g);
16449
16449
  l = x2(l, c, d);
16450
- const [C, x] = xe(e), [w, _] = xe(we.Days), [O, N] = xe(l), [T, S] = xe(l), A = Yt(null), M = Yt(null), P = ($, B) => {
16450
+ const [C, x] = ye(e), [w, _] = ye(we.Days), [O, N] = ye(l), [T, S] = ye(l), A = Yt(null), M = Yt(null), P = ($, B) => {
16451
16451
  N($), p && p($), r && w === we.Days && B == !0 && !n && x(!1);
16452
16452
  }, E = () => {
16453
16453
  P(l, !0), l && S(l);
@@ -20130,7 +20130,7 @@ const PC = {
20130
20130
  renderTrigger: o,
20131
20131
  ...i
20132
20132
  }) => {
20133
- const [s, a] = xe(!1), [l, c] = xe(null), [d, u] = xe(null), [f, h] = xe(void 0), g = Yt([]), p = Yt([]), m = j(G().dropdown, r), v = i, y = i["data-testid"] || "flowbite-dropdown-target", {
20133
+ const [s, a] = ye(!1), [l, c] = ye(null), [d, u] = ye(null), [f, h] = ye(void 0), g = Yt([]), p = Yt([]), m = j(G().dropdown, r), v = i, y = i["data-testid"] || "flowbite-dropdown-target", {
20134
20134
  placement: C = i.inline ? "bottom-start" : "bottom",
20135
20135
  trigger: x = "click",
20136
20136
  label: w,
@@ -20546,7 +20546,7 @@ const lg = ({ children: t, className: e, theme: n = {}, ...r }) => {
20546
20546
  initialFocus: d,
20547
20547
  ...u
20548
20548
  }, f) => {
20549
- const [h, g] = xe(void 0), p = j(G().modal, c), { context: m } = zh({
20549
+ const [h, g] = ye(void 0), p = j(G().modal, c), { context: m } = zh({
20550
20550
  open: a,
20551
20551
  onOpenChange: () => r && r()
20552
20552
  }), v = Oh([m.refs.setFloating, f]), y = Lh(m), C = Fh(m, { outsidePressEvent: "mousedown", enabled: n }), x = $h(m), { getFloatingProps: w } = Bh([y, C, x]);
@@ -20672,7 +20672,7 @@ const hg = ({
20672
20672
  theme: s = {},
20673
20673
  ...a
20674
20674
  }) => {
20675
- const [l, c] = xe(o), d = j(G().navbar, s);
20675
+ const [l, c] = ye(o), d = j(G().navbar, s);
20676
20676
  return /* @__PURE__ */ b(fg.Provider, { value: { theme: d, isOpen: l, setIsOpen: c }, children: /* @__PURE__ */ b(
20677
20677
  "nav",
20678
20678
  {
@@ -20936,7 +20936,7 @@ const $C = ({
20936
20936
  minWidth: c,
20937
20937
  ...d
20938
20938
  }) => {
20939
- const u = Yt(null), [f, h] = xe(!1), g = jh({
20939
+ const u = Yt(null), [f, h] = ye(!1), g = jh({
20940
20940
  open: f,
20941
20941
  placement: i,
20942
20942
  arrowRef: u,
@@ -21072,7 +21072,7 @@ const _g = ({
21072
21072
  theme: a = {},
21073
21073
  ...l
21074
21074
  }) => {
21075
- const c = Dn(), [d, u] = xe(s), { theme: f, isCollapsed: h } = ur(), g = j(f.collapse, a);
21075
+ const c = Dn(), [d, u] = ye(s), { theme: f, isCollapsed: h } = ur(), g = j(f.collapse, a);
21076
21076
  return Ze(() => u(s), [s]), /* @__PURE__ */ z(({ children: m }) => /* @__PURE__ */ b("li", { children: h && !d ? /* @__PURE__ */ b(Xa, { content: r, placement: "right", children: m }) : m }), { children: [
21077
21077
  /* @__PURE__ */ z(
21078
21078
  "button",
@@ -21349,12 +21349,12 @@ const jg = ue(
21349
21349
  ({ props: x }) => x
21350
21350
  ),
21351
21351
  [t]
21352
- ), d = Yt([]), [u, f] = xe(
21352
+ ), d = Yt([]), [u, f] = ye(
21353
21353
  Math.max(
21354
21354
  0,
21355
21355
  c.findIndex((x) => x.active)
21356
21356
  )
21357
- ), [h, g] = xe(-1), p = (x) => {
21357
+ ), [h, g] = ye(-1), p = (x) => {
21358
21358
  f(x), n && n(x);
21359
21359
  }, m = ({ target: x }) => {
21360
21360
  p(x), g(x);
@@ -21600,7 +21600,7 @@ const ep = ({
21600
21600
  700: "duration-700",
21601
21601
  1e3: "duration-1000"
21602
21602
  }, tp = ({ children: t, className: e, duration: n = 300, theme: r = {}, ...o }) => {
21603
- const [i, s] = xe(!1), [a, l] = xe(!1), c = j(G().toast, r);
21603
+ const [i, s] = ye(!1), [a, l] = ye(!1), c = j(G().toast, r);
21604
21604
  return a ? null : /* @__PURE__ */ b(Qg.Provider, { value: { theme: c, duration: n, isClosed: i, isRemoved: a, setIsClosed: s, setIsRemoved: l }, children: /* @__PURE__ */ b(
21605
21605
  "div",
21606
21606
  {
@@ -21708,22 +21708,93 @@ const XC = ({
21708
21708
  children: /* @__PURE__ */ b(Nf, { className: "h-5 w-5" })
21709
21709
  }
21710
21710
  )
21711
- ] }), h_ = ({
21711
+ ] });
21712
+ function JC({
21713
+ label: t,
21714
+ checked: e = !1,
21715
+ disabled: n = !1,
21716
+ onChange: r
21717
+ }) {
21718
+ const [o, i] = ye(e);
21719
+ return /* @__PURE__ */ z("div", { className: "flex items-center gap-2", children: [
21720
+ /* @__PURE__ */ z(
21721
+ "label",
21722
+ {
21723
+ className: `inline-flex items-center ${n ? "cursor-not-allowed opacity-60" : "cursor-pointer"}`,
21724
+ children: [
21725
+ /* @__PURE__ */ b(
21726
+ "input",
21727
+ {
21728
+ type: "checkbox",
21729
+ className: "peer sr-only",
21730
+ checked: o,
21731
+ onChange: (a) => {
21732
+ if (n) return;
21733
+ const l = a.target.checked;
21734
+ i(l), r == null || r(l);
21735
+ },
21736
+ disabled: n
21737
+ }
21738
+ ),
21739
+ /* @__PURE__ */ b(
21740
+ "div",
21741
+ {
21742
+ className: `peer relative h-6 w-11 rounded-full bg-gray-200
21743
+ after:absolute after:start-[2px]
21744
+ after:top-0.5 after:h-5
21745
+ after:w-5 after:rounded-full
21746
+ after:border after:border-gray-300
21747
+ after:bg-white after:transition-all after:content-['']
21748
+ peer-checked:bg-blue-600 peer-checked:after:translate-x-full peer-checked:after:border-white
21749
+ peer-focus:ring-4 peer-focus:ring-blue-300 dark:border-gray-600
21750
+ dark:bg-gray-700 dark:peer-checked:bg-blue-600
21751
+ dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`
21752
+ }
21753
+ )
21754
+ ]
21755
+ }
21756
+ ),
21757
+ t && /* @__PURE__ */ b(
21758
+ "span",
21759
+ {
21760
+ className: `text-sm ${n ? "text-gray-500" : "text-gray-700"}`,
21761
+ children: t
21762
+ }
21763
+ )
21764
+ ] });
21765
+ }
21766
+ const g_ = ({
21712
21767
  columns: t,
21713
21768
  data: e,
21714
21769
  showSearch: n = !1,
21715
21770
  itemsPerPage: r = 5,
21716
- title: o
21771
+ title: o,
21772
+ onToggleChange: i
21717
21773
  }) => {
21718
- const [i, s] = k.useState(""), [a, l] = k.useState(1), c = k.useMemo(() => i.trim() ? e.filter(
21719
- (f) => t.some((h) => {
21720
- const g = f[h.relation];
21721
- return g != null && String(g).toLowerCase().includes(i.toLowerCase().trim());
21774
+ const [s, a] = k.useState(""), [l, c] = k.useState(1), d = k.useMemo(() => s.trim() ? e.filter(
21775
+ (g) => t.some((p) => {
21776
+ const m = g[p.relation];
21777
+ return m != null && String(m).toLowerCase().includes(s.toLowerCase().trim());
21722
21778
  })
21723
- ) : e, [e, i, t]), d = k.useMemo(() => {
21724
- const f = (a - 1) * r, h = f + r;
21725
- return c.slice(f, h);
21726
- }, [c, a, r]), u = Math.ceil(c.length / r);
21779
+ ) : e, [e, s, t]), u = k.useMemo(() => {
21780
+ const g = (l - 1) * r, p = g + r;
21781
+ return d.slice(g, p);
21782
+ }, [d, l, r]), f = Math.ceil(d.length / r), h = (g, p) => {
21783
+ const m = p[g.relation];
21784
+ return g.isToggle ? /* @__PURE__ */ b(
21785
+ JC,
21786
+ {
21787
+ checked: !!m,
21788
+ onChange: (v) => i == null ? void 0 : i({
21789
+ rowId: p.id,
21790
+ checked: v,
21791
+ row: p,
21792
+ columnKey: g.relation
21793
+ }),
21794
+ disabled: !1
21795
+ }
21796
+ ) : g.cell ? g.cell(p) : m != null ? String(m) : "";
21797
+ };
21727
21798
  return /* @__PURE__ */ z("div", { className: "w-full", children: [
21728
21799
  /* @__PURE__ */ b("div", { className: "mb-4 flex items-center justify-between", children: o && /* @__PURE__ */ b("h2", { className: "text-xl font-bold", children: o }) }),
21729
21800
  /* @__PURE__ */ z("div", { className: "mb-4 flex", children: [
@@ -21732,46 +21803,43 @@ const XC = ({
21732
21803
  {
21733
21804
  rightIcon: F1,
21734
21805
  placeholder: "Buscar",
21735
- value: i,
21736
- onChange: (f) => s(f.target.value)
21806
+ value: s,
21807
+ onChange: (g) => a(g.target.value)
21737
21808
  }
21738
21809
  ) }),
21739
- u > 1 && /* @__PURE__ */ b("div", { className: "flex w-full justify-end", children: /* @__PURE__ */ b(
21810
+ f > 1 && /* @__PURE__ */ b("div", { className: "flex w-full justify-end", children: /* @__PURE__ */ b(
21740
21811
  XC,
21741
21812
  {
21742
- currentPage: a,
21743
- totalPages: u,
21744
- onPageChange: l
21813
+ currentPage: l,
21814
+ totalPages: f,
21815
+ onPageChange: c
21745
21816
  }
21746
21817
  ) })
21747
21818
  ] }),
21748
21819
  /* @__PURE__ */ b("div", { className: "overflow-x-auto", children: /* @__PURE__ */ z(jn, { striped: !0, children: [
21749
- /* @__PURE__ */ b(jn.Head, { children: t.map((f, h) => /* @__PURE__ */ b(jn.HeadCell, { children: f.header }, h)) }),
21820
+ /* @__PURE__ */ b(jn.Head, { children: t.map((g, p) => /* @__PURE__ */ b(jn.HeadCell, { children: g.header }, p)) }),
21750
21821
  /* @__PURE__ */ b("hr", {}),
21751
- /* @__PURE__ */ b(jn.Body, { className: "divide-y", children: d.map((f, h) => /* @__PURE__ */ b(
21822
+ /* @__PURE__ */ b(jn.Body, { className: "divide-y", children: u.map((g) => /* @__PURE__ */ b(
21752
21823
  jn.Row,
21753
21824
  {
21754
21825
  className: "bg-white dark:border-gray-700 dark:bg-gray-800",
21755
- children: t.map((g, p) => {
21756
- const m = f[g.relation];
21757
- return /* @__PURE__ */ b(
21758
- jn.Cell,
21759
- {
21760
- className: "whitespace-nowrap font-medium text-gray-900 dark:text-white",
21761
- children: g.cell ? g.cell(f) : m != null ? String(m) : ""
21762
- },
21763
- p
21764
- );
21765
- })
21826
+ children: t.map((p, m) => /* @__PURE__ */ b(
21827
+ jn.Cell,
21828
+ {
21829
+ className: "whitespace-nowrap font-medium text-gray-900 dark:text-white",
21830
+ children: h(p, g)
21831
+ },
21832
+ `${g.id}-${m}`
21833
+ ))
21766
21834
  },
21767
- h
21835
+ g.id
21768
21836
  )) })
21769
21837
  ] }) })
21770
21838
  ] });
21771
21839
  }, jd = {
21772
21840
  "m-image-container": "layoutOutside-module__m-image-container__sCvFu",
21773
21841
  "m-image": "layoutOutside-module__m-image__kZHyH"
21774
- }, g_ = () => /* @__PURE__ */ z("div", { className: "mt-32", children: [
21842
+ }, p_ = () => /* @__PURE__ */ z("div", { className: "mt-32", children: [
21775
21843
  /* @__PURE__ */ b(
21776
21844
  Tn,
21777
21845
  {
@@ -21792,7 +21860,7 @@ const XC = ({
21792
21860
  height: 300
21793
21861
  }
21794
21862
  ) })
21795
- ] }), p_ = ({
21863
+ ] }), m_ = ({
21796
21864
  onOpenModal: t,
21797
21865
  checked: e,
21798
21866
  onChange: n,
@@ -21816,7 +21884,7 @@ const XC = ({
21816
21884
  /* @__PURE__ */ b("span", { className: Yo.checkmark }),
21817
21885
  r && /* @__PURE__ */ b("span", { children: r })
21818
21886
  ] }) });
21819
- }, JC = ({
21887
+ }, ZC = ({
21820
21888
  validations: t
21821
21889
  }) => {
21822
21890
  const e = ({ isValid: r }) => /* @__PURE__ */ b(
@@ -21840,8 +21908,8 @@ const XC = ({
21840
21908
  /* @__PURE__ */ b(e, { isValid: t[r] }),
21841
21909
  o
21842
21910
  ] }, r)) });
21843
- }, ZC = () => {
21844
- const [t, e] = xe(""), [n, r] = xe(""), [o, i] = xe({
21911
+ }, QC = () => {
21912
+ const [t, e] = ye(""), [n, r] = ye(""), [o, i] = ye({
21845
21913
  hasMinLength: !1,
21846
21914
  hasNumber: !1,
21847
21915
  hasUpperCase: !1,
@@ -21866,14 +21934,14 @@ const XC = ({
21866
21934
  showError: () => !s() && t.trim() && n.trim(),
21867
21935
  validations: o
21868
21936
  };
21869
- }, m_ = ({ formik: t }) => {
21937
+ }, b_ = ({ formik: t }) => {
21870
21938
  const {
21871
21939
  password: e,
21872
21940
  setPassword: n,
21873
21941
  confirmPassword: r,
21874
21942
  setConfirmPassword: o,
21875
21943
  validations: i
21876
- } = ZC();
21944
+ } = QC();
21877
21945
  return /* @__PURE__ */ z(_t, { children: [
21878
21946
  /* @__PURE__ */ z("div", { className: "block", children: [
21879
21947
  /* @__PURE__ */ b(
@@ -21903,10 +21971,10 @@ const XC = ({
21903
21971
  ),
21904
21972
  t.errors.confirmPassword && t.touched.confirmPassword && /* @__PURE__ */ b("div", { className: "my-2 text-sm text-red-500", children: String(t.errors.confirmPassword) })
21905
21973
  ] }),
21906
- /* @__PURE__ */ b(JC, { validations: i })
21974
+ /* @__PURE__ */ b(ZC, { validations: i })
21907
21975
  ] });
21908
- }, b_ = ({ items: t }) => {
21909
- const [e, n] = xe([]), r = (i) => {
21976
+ }, y_ = ({ items: t }) => {
21977
+ const [e, n] = ye([]), r = (i) => {
21910
21978
  n(
21911
21979
  (s) => s.includes(i) ? s.filter((a) => a !== i) : [...s, i]
21912
21980
  );
@@ -21969,7 +22037,7 @@ const XC = ({
21969
22037
  "text/csv": "Archivos CSV",
21970
22038
  "application/json": "Archivos JSON",
21971
22039
  "application/xml": "Archivos XML"
21972
- }, y_ = ({
22040
+ }, v_ = ({
21973
22041
  onChange: t,
21974
22042
  accept: e = "application/pdf",
21975
22043
  maxSize: n = 10,
@@ -22031,13 +22099,13 @@ const XC = ({
22031
22099
  }
22032
22100
  ) });
22033
22101
  };
22034
- function QC(t) {
22102
+ function e_(t) {
22035
22103
  return me({ attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z" }, child: [] }, { tag: "path", attr: { d: "M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z" }, child: [] }] })(t);
22036
22104
  }
22037
- const e_ = (t) => {
22105
+ const t_ = (t) => {
22038
22106
  const e = Math.floor(Math.log(t) / Math.log(1024)), n = ["Bytes", "KB", "MB", "GB", "TB"];
22039
22107
  return `${(t / Math.pow(1024, e)).toFixed(2)} ${n[e]}`;
22040
- }, v_ = ({ files: t, onDelete: e }) => /* @__PURE__ */ b("div", { className: "mt-4", children: /* @__PURE__ */ b("ul", { className: "list-disc", children: t.map((n, r) => /* @__PURE__ */ z(
22108
+ }, x_ = ({ files: t, onDelete: e }) => /* @__PURE__ */ b("div", { className: "mt-4", children: /* @__PURE__ */ b("ul", { className: "list-disc", children: t.map((n, r) => /* @__PURE__ */ z(
22041
22109
  "div",
22042
22110
  {
22043
22111
  className: "mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",
@@ -22055,9 +22123,9 @@ const e_ = (t) => {
22055
22123
  /* @__PURE__ */ b("li", { className: "text-base font-semibold text-gray-700", children: n.name })
22056
22124
  ] }),
22057
22125
  /* @__PURE__ */ z("div", { className: "mx-4 flex items-center", children: [
22058
- /* @__PURE__ */ b("span", { className: "flex text-sm", children: e_(n.size) }),
22126
+ /* @__PURE__ */ b("span", { className: "flex text-sm", children: t_(n.size) }),
22059
22127
  /* @__PURE__ */ b(
22060
- QC,
22128
+ e_,
22061
22129
  {
22062
22130
  className: "ml-2 cursor-pointer text-4xl text-gray-400",
22063
22131
  onClick: () => e(n)
@@ -22067,7 +22135,7 @@ const e_ = (t) => {
22067
22135
  ]
22068
22136
  },
22069
22137
  r
22070
- )) }) }), x_ = ({ description: t = "" }) => /* @__PURE__ */ z("div", { children: [
22138
+ )) }) }), w_ = ({ description: t = "" }) => /* @__PURE__ */ z("div", { className: "flex flex-col items-center justify-center", children: [
22071
22139
  /* @__PURE__ */ b(
22072
22140
  "img",
22073
22141
  {
@@ -22075,53 +22143,63 @@ const e_ = (t) => {
22075
22143
  alt: t.replace(/<[^>]*>/g, "")
22076
22144
  }
22077
22145
  ),
22078
- t && /* @__PURE__ */ b("p", { className: "text-center", dangerouslySetInnerHTML: { __html: t } })
22146
+ t && /* @__PURE__ */ b(
22147
+ "p",
22148
+ {
22149
+ className: "text-center",
22150
+ dangerouslySetInnerHTML: { __html: t }
22151
+ }
22152
+ )
22079
22153
  ] });
22080
- function w_() {
22154
+ function k_() {
22081
22155
  return /* @__PURE__ */ z(YC, { "aria-label": "Default tabs", children: [
22082
22156
  /* @__PURE__ */ z(Un, { active: !0, title: "Profile", children: [
22083
- "This is ",
22157
+ "This is",
22158
+ " ",
22084
22159
  /* @__PURE__ */ b("span", { className: "font-medium text-gray-800 dark:text-white", children: "Profile tab's associated content" }),
22085
22160
  ". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
22086
22161
  ] }),
22087
22162
  /* @__PURE__ */ z(Un, { title: "Dashboard", children: [
22088
- "This is ",
22163
+ "This is",
22164
+ " ",
22089
22165
  /* @__PURE__ */ b("span", { className: "font-medium text-gray-800 dark:text-white", children: "Dashboard tab's associated content" }),
22090
22166
  ". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
22091
22167
  ] }),
22092
22168
  /* @__PURE__ */ z(Un, { title: "Settings", children: [
22093
- "This is ",
22169
+ "This is",
22170
+ " ",
22094
22171
  /* @__PURE__ */ b("span", { className: "font-medium text-gray-800 dark:text-white", children: "Settings tab's associated content" }),
22095
22172
  ". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
22096
22173
  ] }),
22097
22174
  /* @__PURE__ */ z(Un, { title: "Contacts", children: [
22098
- "This is ",
22175
+ "This is",
22176
+ " ",
22099
22177
  /* @__PURE__ */ b("span", { className: "font-medium text-gray-800 dark:text-white", children: "Contacts tab's associated content" }),
22100
22178
  ". Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to control the content visibility and styling."
22101
22179
  ] })
22102
22180
  ] });
22103
22181
  }
22104
22182
  export {
22105
- i_ as ButtonFormat,
22183
+ s_ as ButtonFormat,
22106
22184
  Ds as CardFormat,
22107
- a_ as CardIndicator,
22108
- s_ as Checkbox,
22109
- y_ as Dropzone,
22185
+ l_ as CardIndicator,
22186
+ a_ as Checkbox,
22187
+ v_ as Dropzone,
22110
22188
  Tn as ImageFormat,
22111
22189
  gp as InputForm,
22112
- g_ as LayoutOutside,
22113
- v_ as ListFile,
22190
+ p_ as LayoutOutside,
22191
+ x_ as ListFile,
22114
22192
  br as ModalFormat,
22115
- u_ as MyDoughnutChart,
22193
+ f_ as MyDoughnutChart,
22116
22194
  il as PasswordInput,
22117
- JC as PasswordValidationList,
22195
+ ZC as PasswordValidationList,
22118
22196
  Rp as ProgressBar,
22119
22197
  Mp as SelectForm,
22120
- f_ as SidebarMth,
22121
- x_ as Spinner,
22122
- h_ as TableComponent,
22123
- b_ as TableOfContents,
22124
- w_ as TabsComponent,
22125
- p_ as TermsCheckbox,
22126
- m_ as ValidationPassword
22198
+ h_ as SidebarMth,
22199
+ w_ as Spinner,
22200
+ g_ as TableComponent,
22201
+ y_ as TableOfContents,
22202
+ k_ as TabsComponent,
22203
+ m_ as TermsCheckbox,
22204
+ b_ as ValidationPassword
22127
22205
  };