@aveonline/ui-react 1.14.0 → 1.14.2

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/ui-react.mjs CHANGED
@@ -978,7 +978,7 @@ const w1 = mt((e, t) => {
978
978
  children: r
979
979
  });
980
980
  });
981
- function N8({
981
+ function P8({
982
982
  kind: e = "default",
983
983
  className: t,
984
984
  children: n,
@@ -992,7 +992,7 @@ function N8({
992
992
  children: n
993
993
  });
994
994
  }
995
- function D8({
995
+ function N8({
996
996
  variant: e,
997
997
  children: t
998
998
  }) {
@@ -3696,7 +3696,7 @@ let bu = "div", Do = Bt.RenderStrategy, Go = pe(function(e, t) {
3696
3696
  Child: Bu,
3697
3697
  Root: Or
3698
3698
  });
3699
- function G8({
3699
+ function D8({
3700
3700
  onChange: e,
3701
3701
  isSelected: t = !1,
3702
3702
  isDisabled: n,
@@ -5741,31 +5741,32 @@ const b0 = mt((e, t) => {
5741
5741
  label: a,
5742
5742
  helpText: l,
5743
5743
  onChange: s,
5744
- checked: u
5745
- } = e, c = ({
5744
+ checked: u,
5745
+ color: c = "default"
5746
+ } = e, A = ({
5746
5747
  target: {
5747
- value: f,
5748
- checked: C
5748
+ value: C,
5749
+ checked: p
5749
5750
  }
5750
5751
  }) => {
5751
5752
  s == null || s({
5752
- checked: C,
5753
- value: f
5753
+ checked: p,
5754
+ value: C
5754
5755
  });
5755
- }, A = () => r ? "border-border-disabled checked:text-action-primary-disabled" : "border-border-default cursor-pointer checked:border-action-primary-default checked:bg-white hover:border-border-hovered checked:hover:border-action-primary-default checked:hover:bg-white checked:focus:border-action-primary-default checked:focus:bg-white checked:focus:ring-focused-default", g = W(() => Zn([t]), [t]);
5756
+ }, g = () => r ? "border-border-disabled checked:text-action-primary-disabled" : "border-border-default cursor-pointer checked:border-action-primary-default checked:bg-white hover:border-border-hovered checked:hover:border-action-primary-default checked:hover:bg-white checked:focus:border-action-primary-default checked:focus:bg-white checked:focus:ring-focused-default", f = W(() => Zn([t]), [t]);
5756
5757
  return /* @__PURE__ */ d(ye, {
5757
5758
  children: /* @__PURE__ */ M("div", {
5758
5759
  className: D("flex gap-x-2", !l && "items-center"),
5759
5760
  children: [/* @__PURE__ */ d("input", {
5760
5761
  type: "radio",
5761
- ref: g,
5762
+ ref: f,
5762
5763
  id: n,
5763
5764
  name: i,
5764
5765
  disabled: r,
5765
- onChange: c,
5766
+ onChange: A,
5766
5767
  checked: u,
5767
5768
  value: o,
5768
- className: D("border-2", A())
5769
+ className: D("border-2", g())
5769
5770
  }), a && /* @__PURE__ */ M("div", {
5770
5771
  className: "flex flex-col items-start justify-center",
5771
5772
  children: [/* @__PURE__ */ d(ne, {
@@ -5773,7 +5774,7 @@ const b0 = mt((e, t) => {
5773
5774
  variant: "body",
5774
5775
  className: "break-words",
5775
5776
  htmlFor: n,
5776
- color: r ? "disabled" : "default",
5777
+ color: r ? "disabled" : c,
5777
5778
  children: a
5778
5779
  }), l && /* @__PURE__ */ d(ne, {
5779
5780
  variant: "body",
@@ -5786,7 +5787,7 @@ const b0 = mt((e, t) => {
5786
5787
  })
5787
5788
  });
5788
5789
  });
5789
- function O8({
5790
+ function G8({
5790
5791
  track: e,
5791
5792
  isDisabled: t = !1,
5792
5793
  isSelected: n = !1,
@@ -6372,7 +6373,8 @@ const Uo = mt((e, t) => {
6372
6373
  onChange: s,
6373
6374
  isError: u,
6374
6375
  checked: c,
6375
- size: A = "sm"
6376
+ color: A = "default",
6377
+ size: g = "sm"
6376
6378
  } = e;
6377
6379
  return /* @__PURE__ */ d(ye, {
6378
6380
  children: /* @__PURE__ */ M("div", {
@@ -6385,18 +6387,18 @@ const Uo = mt((e, t) => {
6385
6387
  disabled: r,
6386
6388
  onChange: ({
6387
6389
  target: {
6388
- value: C,
6389
- checked: p
6390
+ value: p,
6391
+ checked: I
6390
6392
  }
6391
6393
  }) => {
6392
6394
  s == null || s({
6393
- checked: p,
6394
- value: C
6395
+ checked: I,
6396
+ value: p
6395
6397
  });
6396
6398
  },
6397
6399
  value: o,
6398
6400
  checked: c,
6399
- className: D((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" : u ? "checked:bg-action-critical-default checked:text-letter-critical active:bg-action-critical-default border-border-critical-default checked:hover:bg-action-critical-default focus:ring-none ring-offset-0 active:ring-transparent focus:ring-transparent focus:ring-offset-0 focus:ring-critical-default" : "border-border-default hover:border-border-hovered focus:ring-focused-default ring-offset-1 active:ring-1 focus:ring-1 focus:ring-offset-1 cursor-pointer")(), "rounded-[5px] bg-white border-[1.5px]", A === "sm" && "h-[18px] w-[18px]", A === "md" && "h-[20px] w-[20px]")
6401
+ className: D((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" : u ? "checked:bg-action-critical-default checked:text-letter-critical active:bg-action-critical-default border-border-critical-default checked:hover:bg-action-critical-default focus:ring-none ring-offset-0 active:ring-transparent focus:ring-transparent focus:ring-offset-0 focus:ring-critical-default" : "border-border-default hover:border-border-hovered focus:ring-focused-default ring-offset-1 active:ring-1 focus:ring-1 focus:ring-offset-1 cursor-pointer")(), "rounded-[5px] bg-white border-[1.5px]", g === "sm" && "h-[18px] w-[18px]", g === "md" && "h-[20px] w-[20px]")
6400
6402
  }), a && /* @__PURE__ */ M("div", {
6401
6403
  className: "flex flex-col items-start justify-center",
6402
6404
  children: [/* @__PURE__ */ d(ne, {
@@ -6404,7 +6406,7 @@ const Uo = mt((e, t) => {
6404
6406
  variant: "body",
6405
6407
  className: "break-words select-none",
6406
6408
  htmlFor: n,
6407
- color: r ? "disabled" : "default",
6409
+ color: r ? "disabled" : A,
6408
6410
  children: a
6409
6411
  }), l && /* @__PURE__ */ d(ne, {
6410
6412
  variant: "body",
@@ -10778,7 +10780,7 @@ const U1 = (e) => /* @__PURE__ */ d(yt.DropdownIndicator, {
10778
10780
  })]
10779
10781
  });
10780
10782
  };
10781
- function L8({
10783
+ function O8({
10782
10784
  options: e,
10783
10785
  placeholder: t = "",
10784
10786
  defaultValue: n,
@@ -10903,7 +10905,7 @@ var e4 = /* @__PURE__ */ mt(function(e, t) {
10903
10905
  ...i
10904
10906
  });
10905
10907
  });
10906
- function H8({
10908
+ function L8({
10907
10909
  placeholder: e = "",
10908
10910
  id: t = "default-async",
10909
10911
  name: n = "default-async",
@@ -10993,7 +10995,7 @@ const t4 = ({
10993
10995
  }, s = {
10994
10996
  addButton: () => l(a.addButton)
10995
10997
  };
10996
- return /* @__PURE__ */ M(F8, {
10998
+ return /* @__PURE__ */ M(V8, {
10997
10999
  variant: "plain",
10998
11000
  fullWidth: !0,
10999
11001
  align: e,
@@ -11017,7 +11019,7 @@ const t4 = ({
11017
11019
  })
11018
11020
  });
11019
11021
  };
11020
- function T8({
11022
+ function H8({
11021
11023
  options: e,
11022
11024
  placeholder: t = "",
11023
11025
  defaultValue: n,
@@ -11174,7 +11176,7 @@ const Xa = ({
11174
11176
  })]
11175
11177
  })
11176
11178
  });
11177
- function k8({
11179
+ function T8({
11178
11180
  id: e = "default-country",
11179
11181
  name: t = "default-country",
11180
11182
  placeholder: n = "",
@@ -11307,7 +11309,7 @@ var c4 = /* @__PURE__ */ mt(function(e, t) {
11307
11309
  ...r
11308
11310
  });
11309
11311
  });
11310
- function Z8({
11312
+ function k8({
11311
11313
  placeholder: e = "",
11312
11314
  id: t = "default-async-creatable",
11313
11315
  name: n = "default-async-creatable",
@@ -11410,7 +11412,7 @@ function Z8({
11410
11412
  })
11411
11413
  });
11412
11414
  }
11413
- function X8({
11415
+ function Z8({
11414
11416
  tabs: e,
11415
11417
  variant: t = "default"
11416
11418
  }) {
@@ -11522,7 +11524,7 @@ function ja({
11522
11524
  })]
11523
11525
  });
11524
11526
  }
11525
- function j8({
11527
+ function X8({
11526
11528
  title: e,
11527
11529
  iconTitle: t,
11528
11530
  subtitle: n,
@@ -11586,7 +11588,7 @@ function j8({
11586
11588
  })]
11587
11589
  });
11588
11590
  }
11589
- function z8({
11591
+ function j8({
11590
11592
  title: e,
11591
11593
  subtitle: t,
11592
11594
  defaultOpen: n = !1,
@@ -11776,7 +11778,7 @@ function d4() {
11776
11778
  })
11777
11779
  });
11778
11780
  }
11779
- function W8({
11781
+ function z8({
11780
11782
  title: e,
11781
11783
  description: t,
11782
11784
  img: n,
@@ -11802,7 +11804,7 @@ function W8({
11802
11804
  }), r]
11803
11805
  });
11804
11806
  }
11805
- function Y8({
11807
+ function W8({
11806
11808
  icon: e,
11807
11809
  isSelected: t = !1,
11808
11810
  title: n,
@@ -11844,11 +11846,11 @@ function Y8({
11844
11846
  })]
11845
11847
  });
11846
11848
  }
11847
- function J8({
11849
+ function Y8({
11848
11850
  hasLogo: e = !1,
11849
11851
  className: t = "",
11850
11852
  menuMovil: n,
11851
- dropdownUser: i,
11853
+ options: i,
11852
11854
  ...r
11853
11855
  }) {
11854
11856
  const [o, a] = j(!1), l = Vr("(min-width: 768px)"), s = Vr("(max-width: 1038px)");
@@ -11870,20 +11872,13 @@ function J8({
11870
11872
  kind: "brand-sm",
11871
11873
  className: "hidden w-[69px] md:block"
11872
11874
  })]
11873
- }), /* @__PURE__ */ M("div", {
11875
+ }), /* @__PURE__ */ d("div", {
11874
11876
  className: "flex items-center gap-x-sm",
11875
- children: [/* @__PURE__ */ d(fe, {
11876
- kind: "notifications",
11877
- color: "default",
11878
- cursor: "pointer",
11879
- size: "sm"
11880
- }), /* @__PURE__ */ d(Q4, {
11881
- ...i
11882
- })]
11877
+ children: i
11883
11878
  })]
11884
11879
  });
11885
11880
  }
11886
- function U8({
11881
+ function J8({
11887
11882
  children: e,
11888
11883
  onClose: t,
11889
11884
  isOpen: n
@@ -12561,7 +12556,7 @@ const w4 = mt((e, t) => {
12561
12556
  })]
12562
12557
  });
12563
12558
  });
12564
- function K8({
12559
+ function U8({
12565
12560
  kind: e = "default",
12566
12561
  icon: t,
12567
12562
  description: n,
@@ -12614,7 +12609,7 @@ function K8({
12614
12609
  })]
12615
12610
  });
12616
12611
  }
12617
- function Q4({
12612
+ function K8({
12618
12613
  name: e,
12619
12614
  email: t,
12620
12615
  items: n,
@@ -12758,7 +12753,7 @@ function gt(e, t) {
12758
12753
  function Vn(e) {
12759
12754
  return e instanceof Function;
12760
12755
  }
12761
- function S4(e, t) {
12756
+ function Q4(e, t) {
12762
12757
  const n = [], i = (r) => {
12763
12758
  r.forEach((o) => {
12764
12759
  n.push(o);
@@ -12792,7 +12787,7 @@ function q(e, t, n) {
12792
12787
  return r;
12793
12788
  };
12794
12789
  }
12795
- function V4(e, t, n, i) {
12790
+ function S4(e, t, n, i) {
12796
12791
  var r, o;
12797
12792
  const l = {
12798
12793
  ...e._getDefaultColumnDef(),
@@ -12871,7 +12866,7 @@ function eo(e, t, n) {
12871
12866
  Object.assign(o, a.createHeader == null ? void 0 : a.createHeader(o, e));
12872
12867
  }), o;
12873
12868
  }
12874
- const F4 = {
12869
+ const V4 = {
12875
12870
  createTable: (e) => ({
12876
12871
  getHeaderGroups: q(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, i, r) => {
12877
12872
  var o, a;
@@ -13078,7 +13073,7 @@ const un = {
13078
13073
  deltaPercentage: null,
13079
13074
  isResizingColumn: !1,
13080
13075
  columnSizingStart: []
13081
- }), M4 = {
13076
+ }), F4 = {
13082
13077
  getDefaultColumnDef: () => un,
13083
13078
  getInitialState: (e) => ({
13084
13079
  columnSizing: {},
@@ -13181,7 +13176,7 @@ const un = {
13181
13176
  var I;
13182
13177
  document.removeEventListener("touchmove", f.moveHandler), document.removeEventListener("touchend", f.upHandler), p.cancelable && (p.preventDefault(), p.stopPropagation()), A((I = p.touches[0]) == null ? void 0 : I.clientX);
13183
13178
  }
13184
- }, C = P4() ? {
13179
+ }, C = M4() ? {
13185
13180
  passive: !1
13186
13181
  } : !1;
13187
13182
  Br(r) ? (document.addEventListener("touchmove", f.moveHandler, C), document.addEventListener("touchend", f.upHandler, C)) : (document.addEventListener("mousemove", g.moveHandler, C), document.addEventListener("mouseup", g.upHandler, C)), t.setColumnSizingInfo((p) => ({
@@ -13226,7 +13221,7 @@ const un = {
13226
13221
  })
13227
13222
  };
13228
13223
  let cn = null;
13229
- function P4() {
13224
+ function M4() {
13230
13225
  if (typeof cn == "boolean")
13231
13226
  return cn;
13232
13227
  let e = !1;
@@ -13246,7 +13241,7 @@ function P4() {
13246
13241
  function Br(e) {
13247
13242
  return e.type === "touchstart";
13248
13243
  }
13249
- const N4 = {
13244
+ const P4 = {
13250
13245
  getInitialState: (e) => ({
13251
13246
  expanded: {},
13252
13247
  ...e
@@ -13407,7 +13402,7 @@ const Qt = {
13407
13402
  function Et(e) {
13408
13403
  return e == null || e === "";
13409
13404
  }
13410
- const D4 = {
13405
+ const N4 = {
13411
13406
  getDefaultColumnDef: () => ({
13412
13407
  filterFn: "auto"
13413
13408
  }),
@@ -13536,35 +13531,35 @@ const D4 = {
13536
13531
  function to(e, t, n) {
13537
13532
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
13538
13533
  }
13539
- const G4 = (e, t, n) => n.reduce((i, r) => {
13534
+ const D4 = (e, t, n) => n.reduce((i, r) => {
13540
13535
  const o = r.getValue(e);
13541
13536
  return i + (typeof o == "number" ? o : 0);
13542
- }, 0), O4 = (e, t, n) => {
13537
+ }, 0), G4 = (e, t, n) => {
13543
13538
  let i;
13544
13539
  return n.forEach((r) => {
13545
13540
  const o = r.getValue(e);
13546
13541
  o != null && (i > o || i === void 0 && o >= o) && (i = o);
13547
13542
  }), i;
13548
- }, L4 = (e, t, n) => {
13543
+ }, O4 = (e, t, n) => {
13549
13544
  let i;
13550
13545
  return n.forEach((r) => {
13551
13546
  const o = r.getValue(e);
13552
13547
  o != null && (i < o || i === void 0 && o >= o) && (i = o);
13553
13548
  }), i;
13554
- }, H4 = (e, t, n) => {
13549
+ }, L4 = (e, t, n) => {
13555
13550
  let i, r;
13556
13551
  return n.forEach((o) => {
13557
13552
  const a = o.getValue(e);
13558
13553
  a != null && (i === void 0 ? a >= a && (i = r = a) : (i > a && (i = a), r < a && (r = a)));
13559
13554
  }), [i, r];
13560
- }, T4 = (e, t) => {
13555
+ }, H4 = (e, t) => {
13561
13556
  let n = 0, i = 0;
13562
13557
  if (t.forEach((r) => {
13563
13558
  let o = r.getValue(e);
13564
13559
  o != null && (o = +o) >= o && (++n, i += o);
13565
13560
  }), n)
13566
13561
  return i / n;
13567
- }, k4 = (e, t) => {
13562
+ }, T4 = (e, t) => {
13568
13563
  if (!t.length)
13569
13564
  return;
13570
13565
  let n = 0, i = 0;
@@ -13572,17 +13567,17 @@ const G4 = (e, t, n) => n.reduce((i, r) => {
13572
13567
  let o = r.getValue(e);
13573
13568
  typeof o == "number" && (n = Math.min(n, o), i = Math.max(i, o));
13574
13569
  }), (n + i) / 2;
13575
- }, Z4 = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), X4 = (e, t) => new Set(t.map((n) => n.getValue(e))).size, j4 = (e, t) => t.length, Rr = {
13576
- sum: G4,
13577
- min: O4,
13578
- max: L4,
13579
- extent: H4,
13580
- mean: T4,
13581
- median: k4,
13582
- unique: Z4,
13583
- uniqueCount: X4,
13584
- count: j4
13585
- }, z4 = {
13570
+ }, k4 = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), Z4 = (e, t) => new Set(t.map((n) => n.getValue(e))).size, X4 = (e, t) => t.length, Rr = {
13571
+ sum: D4,
13572
+ min: G4,
13573
+ max: O4,
13574
+ extent: L4,
13575
+ mean: H4,
13576
+ median: T4,
13577
+ unique: k4,
13578
+ uniqueCount: Z4,
13579
+ count: X4
13580
+ }, j4 = {
13586
13581
  getDefaultColumnDef: () => ({
13587
13582
  aggregatedCell: (e) => {
13588
13583
  var t, n;
@@ -13656,13 +13651,13 @@ const G4 = (e, t, n) => n.reduce((i, r) => {
13656
13651
  }
13657
13652
  })
13658
13653
  };
13659
- function W4(e, t, n) {
13654
+ function z4(e, t, n) {
13660
13655
  if (!(t != null && t.length) || !n)
13661
13656
  return e;
13662
13657
  const i = e.filter((o) => !t.includes(o.id));
13663
13658
  return n === "remove" ? i : [...t.map((o) => e.find((a) => a.id === o)).filter(Boolean), ...i];
13664
13659
  }
13665
- const Y4 = {
13660
+ const W4 = {
13666
13661
  getInitialState: (e) => ({
13667
13662
  columnOrder: [],
13668
13663
  ...e
@@ -13688,7 +13683,7 @@ const Y4 = {
13688
13683
  }
13689
13684
  o = [...o, ...l];
13690
13685
  }
13691
- return W4(o, n, i);
13686
+ return z4(o, n, i);
13692
13687
  }, {
13693
13688
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
13694
13689
  })
@@ -13696,7 +13691,7 @@ const Y4 = {
13696
13691
  }, Ur = 0, Kr = 10, yr = () => ({
13697
13692
  pageIndex: Ur,
13698
13693
  pageSize: Kr
13699
- }), J4 = {
13694
+ }), Y4 = {
13700
13695
  getInitialState: (e) => ({
13701
13696
  ...e,
13702
13697
  pagination: {
@@ -13800,7 +13795,7 @@ const Y4 = {
13800
13795
  }, xr = () => ({
13801
13796
  left: [],
13802
13797
  right: []
13803
- }), U4 = {
13798
+ }), J4 = {
13804
13799
  getInitialState: (e) => ({
13805
13800
  columnPinning: xr(),
13806
13801
  ...e
@@ -13922,7 +13917,7 @@ const Y4 = {
13922
13917
  }
13923
13918
  })
13924
13919
  })
13925
- }, K4 = {
13920
+ }, U4 = {
13926
13921
  getInitialState: (e) => ({
13927
13922
  rowSelection: {},
13928
13923
  ...e
@@ -14110,10 +14105,10 @@ function no(e, t, n) {
14110
14105
  }
14111
14106
  return !1;
14112
14107
  }
14113
- const _r = /([0-9]+)/gm, q4 = (e, t, n) => el(jt(e.getValue(n)).toLowerCase(), jt(t.getValue(n)).toLowerCase()), _4 = (e, t, n) => el(jt(e.getValue(n)), jt(t.getValue(n))), $4 = (e, t, n) => k2(jt(e.getValue(n)).toLowerCase(), jt(t.getValue(n)).toLowerCase()), e8 = (e, t, n) => k2(jt(e.getValue(n)), jt(t.getValue(n))), t8 = (e, t, n) => {
14108
+ const _r = /([0-9]+)/gm, K4 = (e, t, n) => el(jt(e.getValue(n)).toLowerCase(), jt(t.getValue(n)).toLowerCase()), q4 = (e, t, n) => el(jt(e.getValue(n)), jt(t.getValue(n))), _4 = (e, t, n) => k2(jt(e.getValue(n)).toLowerCase(), jt(t.getValue(n)).toLowerCase()), $4 = (e, t, n) => k2(jt(e.getValue(n)), jt(t.getValue(n))), e8 = (e, t, n) => {
14114
14109
  const i = e.getValue(n), r = t.getValue(n);
14115
14110
  return i > r ? 1 : i < r ? -1 : 0;
14116
- }, n8 = (e, t, n) => k2(e.getValue(n), t.getValue(n));
14111
+ }, t8 = (e, t, n) => k2(e.getValue(n), t.getValue(n));
14117
14112
  function k2(e, t) {
14118
14113
  return e === t ? 0 : e > t ? 1 : -1;
14119
14114
  }
@@ -14141,13 +14136,13 @@ function el(e, t) {
14141
14136
  return n.length - i.length;
14142
14137
  }
14143
14138
  const x1 = {
14144
- alphanumeric: q4,
14145
- alphanumericCaseSensitive: _4,
14146
- text: $4,
14147
- textCaseSensitive: e8,
14148
- datetime: t8,
14149
- basic: n8
14150
- }, r8 = {
14139
+ alphanumeric: K4,
14140
+ alphanumericCaseSensitive: q4,
14141
+ text: _4,
14142
+ textCaseSensitive: $4,
14143
+ datetime: e8,
14144
+ basic: t8
14145
+ }, n8 = {
14151
14146
  getInitialState: (e) => ({
14152
14147
  sorting: [],
14153
14148
  ...e
@@ -14249,7 +14244,7 @@ const x1 = {
14249
14244
  getPreSortedRowModel: () => e.getGroupedRowModel(),
14250
14245
  getSortedRowModel: () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel())
14251
14246
  })
14252
- }, i8 = {
14247
+ }, r8 = {
14253
14248
  getInitialState: (e) => ({
14254
14249
  columnVisibility: {},
14255
14250
  ...e
@@ -14326,8 +14321,8 @@ const x1 = {
14326
14321
  }
14327
14322
  };
14328
14323
  }
14329
- }, ro = [F4, i8, Y4, U4, D4, r8, z4, N4, J4, K4, M4];
14330
- function o8(e) {
14324
+ }, ro = [V4, r8, W4, J4, N4, n8, j4, P4, Y4, U4, F4];
14325
+ function i8(e) {
14331
14326
  var t;
14332
14327
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
14333
14328
  let n = {
@@ -14411,7 +14406,7 @@ function o8(e) {
14411
14406
  getAllColumns: q(() => [n._getColumnDefs()], (c) => {
14412
14407
  const A = function(g, f, C) {
14413
14408
  return C === void 0 && (C = 0), g.map((p) => {
14414
- const I = V4(n, p, C, f), E = p;
14409
+ const I = S4(n, p, C, f), E = p;
14415
14410
  return I.columns = E.columns ? A(E.columns, I, C + 1) : [], I;
14416
14411
  });
14417
14412
  };
@@ -14454,7 +14449,7 @@ function o8(e) {
14454
14449
  };
14455
14450
  return Object.assign(n, u), n._features.forEach((c) => Object.assign(n, c.createTable == null ? void 0 : c.createTable(n))), n;
14456
14451
  }
14457
- function a8(e, t, n, i) {
14452
+ function o8(e, t, n, i) {
14458
14453
  const r = () => {
14459
14454
  var a;
14460
14455
  return (a = o.getValue()) != null ? a : e.options.renderFallbackValue;
@@ -14507,8 +14502,8 @@ const Z2 = (e, t, n, i, r, o) => {
14507
14502
  return (s = a.getValue(l)) != null ? s : e.options.renderFallbackValue;
14508
14503
  },
14509
14504
  subRows: o != null ? o : [],
14510
- getLeafRows: () => S4(a.subRows, (l) => l.subRows),
14511
- getAllCells: q(() => [e.getAllLeafColumns()], (l) => l.map((s) => a8(e, a, s, s.id)), {
14505
+ getLeafRows: () => Q4(a.subRows, (l) => l.subRows),
14506
+ getAllCells: q(() => [e.getAllLeafColumns()], (l) => l.map((s) => o8(e, a, s, s.id)), {
14512
14507
  key: process.env.NODE_ENV === "development" && "row.getAllCells",
14513
14508
  debug: () => {
14514
14509
  var l;
@@ -14529,7 +14524,7 @@ const Z2 = (e, t, n, i, r, o) => {
14529
14524
  }
14530
14525
  return a;
14531
14526
  };
14532
- function l8() {
14527
+ function a8() {
14533
14528
  return (e) => q(() => [e.options.data], (t) => {
14534
14529
  const n = {
14535
14530
  rows: [],
@@ -14559,10 +14554,10 @@ function l8() {
14559
14554
  }
14560
14555
  });
14561
14556
  }
14562
- function s8(e, t, n) {
14563
- return n.options.filterFromLeafRows ? u8(e, t, n) : c8(e, t, n);
14557
+ function l8(e, t, n) {
14558
+ return n.options.filterFromLeafRows ? s8(e, t, n) : u8(e, t, n);
14564
14559
  }
14565
- function u8(e, t, n) {
14560
+ function s8(e, t, n) {
14566
14561
  var i;
14567
14562
  const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s, u) {
14568
14563
  u === void 0 && (u = 0);
@@ -14591,7 +14586,7 @@ function u8(e, t, n) {
14591
14586
  rowsById: o
14592
14587
  };
14593
14588
  }
14594
- function c8(e, t, n) {
14589
+ function u8(e, t, n) {
14595
14590
  var i;
14596
14591
  const r = [], o = {}, a = (i = n.options.maxLeafRowFilterDepth) != null ? i : 100, l = function(s, u) {
14597
14592
  u === void 0 && (u = 0);
@@ -14615,7 +14610,7 @@ function c8(e, t, n) {
14615
14610
  rowsById: o
14616
14611
  };
14617
14612
  }
14618
- function A8() {
14613
+ function c8() {
14619
14614
  return (e) => q(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, n, i) => {
14620
14615
  if (!t.rows.length || !(n != null && n.length) && !i) {
14621
14616
  for (let g = 0; g < t.flatRows.length; g++)
@@ -14679,7 +14674,7 @@ function A8() {
14679
14674
  return !1;
14680
14675
  return !0;
14681
14676
  };
14682
- return s8(t.rows, A, e);
14677
+ return l8(t.rows, A, e);
14683
14678
  }, {
14684
14679
  key: process.env.NODE_ENV === "development" && "getFilteredRowModel",
14685
14680
  debug: () => {
@@ -14691,7 +14686,7 @@ function A8() {
14691
14686
  }
14692
14687
  });
14693
14688
  }
14694
- function d8() {
14689
+ function A8() {
14695
14690
  return (e) => q(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
14696
14691
  if (!n.rows.length || !(t != null && t.length))
14697
14692
  return n;
@@ -14744,7 +14739,7 @@ function d8() {
14744
14739
  }
14745
14740
  });
14746
14741
  }
14747
- function g8(e) {
14742
+ function d8(e) {
14748
14743
  const t = [], n = (i) => {
14749
14744
  var r;
14750
14745
  t.push(i), (r = i.subRows) != null && r.length && i.getIsExpanded() && i.subRows.forEach(n);
@@ -14755,7 +14750,7 @@ function g8(e) {
14755
14750
  rowsById: e.rowsById
14756
14751
  };
14757
14752
  }
14758
- function f8(e) {
14753
+ function g8(e) {
14759
14754
  return (t) => q(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (n, i) => {
14760
14755
  if (!i.rows.length)
14761
14756
  return i;
@@ -14775,7 +14770,7 @@ function f8(e) {
14775
14770
  rows: a,
14776
14771
  flatRows: l,
14777
14772
  rowsById: s
14778
- } : A = g8({
14773
+ } : A = d8({
14779
14774
  rows: a,
14780
14775
  flatRows: l,
14781
14776
  rowsById: s
@@ -14803,23 +14798,23 @@ function f8(e) {
14803
14798
  * @license MIT
14804
14799
  */
14805
14800
  function Qr(e, t) {
14806
- return e ? C8(e) ? /* @__PURE__ */ d(e, {
14801
+ return e ? f8(e) ? /* @__PURE__ */ d(e, {
14807
14802
  ...t
14808
14803
  }) : e : null;
14809
14804
  }
14810
- function C8(e) {
14811
- return p8(e) || typeof e == "function" || I8(e);
14805
+ function f8(e) {
14806
+ return C8(e) || typeof e == "function" || p8(e);
14812
14807
  }
14813
- function p8(e) {
14808
+ function C8(e) {
14814
14809
  return typeof e == "function" && (() => {
14815
14810
  const t = Object.getPrototypeOf(e);
14816
14811
  return t.prototype && t.prototype.isReactComponent;
14817
14812
  })();
14818
14813
  }
14819
- function I8(e) {
14814
+ function p8(e) {
14820
14815
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
14821
14816
  }
14822
- function E8(e) {
14817
+ function I8(e) {
14823
14818
  const t = {
14824
14819
  state: {},
14825
14820
  onStateChange: () => {
@@ -14827,7 +14822,7 @@ function E8(e) {
14827
14822
  renderFallbackValue: null,
14828
14823
  ...e
14829
14824
  }, [n] = m.useState(() => ({
14830
- current: o8(t)
14825
+ current: i8(t)
14831
14826
  })), [i, r] = m.useState(() => n.current.initialState);
14832
14827
  return n.current.setOptions((o) => ({
14833
14828
  ...o,
@@ -15251,9 +15246,9 @@ const tl = {
15251
15246
  x\u0327: "x",
15252
15247
  Z\u0327: "Z",
15253
15248
  z\u0327: "z"
15254
- }, m8 = Object.keys(tl).join("|"), v8 = new RegExp(m8, "g");
15255
- function h8(e) {
15256
- return e.replace(v8, (t) => tl[t]);
15249
+ }, E8 = Object.keys(tl).join("|"), m8 = new RegExp(E8, "g");
15250
+ function v8(e) {
15251
+ return e.replace(m8, (t) => tl[t]);
15257
15252
  }
15258
15253
  /**
15259
15254
  * @name match-sorter
@@ -15271,7 +15266,7 @@ const et = {
15271
15266
  MATCHES: 1,
15272
15267
  NO_MATCH: 0
15273
15268
  };
15274
- function b8(e, t, n) {
15269
+ function h8(e, t, n) {
15275
15270
  var i;
15276
15271
  if (n = n || {}, n.threshold = (i = n.threshold) != null ? i : et.MATCHES, !n.accessors) {
15277
15272
  const a = io(e, t, n);
@@ -15283,7 +15278,7 @@ function b8(e, t, n) {
15283
15278
  passed: a >= n.threshold
15284
15279
  };
15285
15280
  }
15286
- const r = x8(e, n.accessors), o = {
15281
+ const r = y8(e, n.accessors), o = {
15287
15282
  rankedValue: e,
15288
15283
  rank: et.NO_MATCH,
15289
15284
  accessorIndex: -1,
@@ -15303,9 +15298,9 @@ function b8(e, t, n) {
15303
15298
  return o;
15304
15299
  }
15305
15300
  function io(e, t, n) {
15306
- return e = oo(e, n), t = oo(t, n), t.length > e.length ? et.NO_MATCH : e === t ? et.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? et.EQUAL : e.startsWith(t) ? et.STARTS_WITH : e.includes(` ${t}`) ? et.WORD_STARTS_WITH : e.includes(t) ? et.CONTAINS : t.length === 1 ? et.NO_MATCH : B8(e).includes(t) ? et.ACRONYM : R8(e, t));
15301
+ return e = oo(e, n), t = oo(t, n), t.length > e.length ? et.NO_MATCH : e === t ? et.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? et.EQUAL : e.startsWith(t) ? et.STARTS_WITH : e.includes(` ${t}`) ? et.WORD_STARTS_WITH : e.includes(t) ? et.CONTAINS : t.length === 1 ? et.NO_MATCH : b8(e).includes(t) ? et.ACRONYM : B8(e, t));
15307
15302
  }
15308
- function B8(e) {
15303
+ function b8(e) {
15309
15304
  let t = "";
15310
15305
  return e.split(" ").forEach((i) => {
15311
15306
  i.split("-").forEach((o) => {
@@ -15313,7 +15308,7 @@ function B8(e) {
15313
15308
  });
15314
15309
  }), t;
15315
15310
  }
15316
- function R8(e, t) {
15311
+ function B8(e, t) {
15317
15312
  let n = 0, i = 0;
15318
15313
  function r(s, u, c) {
15319
15314
  for (let A = c, g = u.length; A < g; A++)
@@ -15341,18 +15336,18 @@ function oo(e, t) {
15341
15336
  let {
15342
15337
  keepDiacritics: n
15343
15338
  } = t;
15344
- return e = `${e}`, n || (e = h8(e)), e;
15339
+ return e = `${e}`, n || (e = v8(e)), e;
15345
15340
  }
15346
- function y8(e, t) {
15341
+ function R8(e, t) {
15347
15342
  let n = t;
15348
15343
  typeof t == "object" && (n = t.accessor);
15349
15344
  const i = n(e);
15350
15345
  return i == null ? [] : Array.isArray(i) ? i : [String(i)];
15351
15346
  }
15352
- function x8(e, t) {
15347
+ function y8(e, t) {
15353
15348
  const n = [];
15354
15349
  for (let i = 0, r = t.length; i < r; i++) {
15355
- const o = t[i], a = w8(o), l = y8(e, o);
15350
+ const o = t[i], a = x8(o), l = R8(e, o);
15356
15351
  for (let s = 0, u = l.length; s < u; s++)
15357
15352
  n.push({
15358
15353
  itemValue: l[s],
@@ -15365,13 +15360,13 @@ const ao = {
15365
15360
  maxRanking: 1 / 0,
15366
15361
  minRanking: -1 / 0
15367
15362
  };
15368
- function w8(e) {
15363
+ function x8(e) {
15369
15364
  return typeof e == "function" ? ao : {
15370
15365
  ...ao,
15371
15366
  ...e
15372
15367
  };
15373
15368
  }
15374
- function Q8({
15369
+ function w8({
15375
15370
  pageIndex: e,
15376
15371
  getPageCount: t,
15377
15372
  pageSize: n,
@@ -15415,7 +15410,7 @@ function Q8({
15415
15410
  })]
15416
15411
  });
15417
15412
  }
15418
- function S8({
15413
+ function Q8({
15419
15414
  value: e,
15420
15415
  onChange: t,
15421
15416
  debounce: n = 500,
@@ -15453,11 +15448,11 @@ function _8({
15453
15448
  paginationOptionList: o = [10, 20, 30, 40, 50]
15454
15449
  }) {
15455
15450
  const [a] = j(() => [...t]), l = W(() => n, []), [s, u] = j([]), [c, A] = j(""), g = (C, p, I, E) => {
15456
- const B = b8(C.getValue(p), I);
15451
+ const B = h8(C.getValue(p), I);
15457
15452
  return E({
15458
15453
  itemRank: B
15459
15454
  }), B.passed;
15460
- }, f = E8({
15455
+ }, f = I8({
15461
15456
  data: a,
15462
15457
  columns: l,
15463
15458
  filterFns: {
@@ -15470,16 +15465,16 @@ function _8({
15470
15465
  onColumnFiltersChange: u,
15471
15466
  onGlobalFilterChange: A,
15472
15467
  globalFilterFn: g,
15473
- getCoreRowModel: l8(),
15474
- getFilteredRowModel: A8(),
15475
- getSortedRowModel: d8(),
15468
+ getCoreRowModel: a8(),
15469
+ getFilteredRowModel: c8(),
15470
+ getSortedRowModel: A8(),
15476
15471
  ...r && {
15477
- getPaginationRowModel: f8()
15472
+ getPaginationRowModel: g8()
15478
15473
  }
15479
15474
  });
15480
15475
  return /* @__PURE__ */ M("div", {
15481
15476
  className: "p-2",
15482
- children: [e ? /* @__PURE__ */ d(S8, {
15477
+ children: [e ? /* @__PURE__ */ d(Q8, {
15483
15478
  value: c != null ? c : "",
15484
15479
  onChange: (C) => A(String(C)),
15485
15480
  placeholder: i
@@ -15511,7 +15506,7 @@ function _8({
15511
15506
  }, p.id))
15512
15507
  }, C.id))
15513
15508
  })]
15514
- }), r ? /* @__PURE__ */ d(Q8, {
15509
+ }), r ? /* @__PURE__ */ d(w8, {
15515
15510
  pageIndex: f.getState().pagination.pageIndex,
15516
15511
  getPageCount: f.getPageCount(),
15517
15512
  pageSize: f.getState().pagination.pageSize,
@@ -15524,7 +15519,7 @@ function _8({
15524
15519
  }) : null]
15525
15520
  });
15526
15521
  }
15527
- function V8({ filling: e, isDisabled: t }) {
15522
+ function S8({ filling: e, isDisabled: t }) {
15528
15523
  const n = () => {
15529
15524
  if (t && e)
15530
15525
  return "w-5 h-5";
@@ -15545,7 +15540,7 @@ function $8({
15545
15540
  }) {
15546
15541
  const {
15547
15542
  getClass: i
15548
- } = V8({
15543
+ } = S8({
15549
15544
  options: e,
15550
15545
  filling: t,
15551
15546
  isDisabled: n
@@ -15854,7 +15849,7 @@ nl.Main = function({
15854
15849
  children: t
15855
15850
  });
15856
15851
  };
15857
- const F8 = mt((e, t) => {
15852
+ const V8 = mt((e, t) => {
15858
15853
  const {
15859
15854
  hasFill: n = !0,
15860
15855
  variant: i = "primary",
@@ -15898,44 +15893,44 @@ const F8 = mt((e, t) => {
15898
15893
  });
15899
15894
  });
15900
15895
  export {
15901
- Z8 as AsyncCreatableSelect,
15902
- H8 as AsyncSelect,
15896
+ k8 as AsyncCreatableSelect,
15897
+ L8 as AsyncSelect,
15903
15898
  q2 as Avatar,
15904
- D8 as Badge,
15905
- F8 as Button,
15899
+ N8 as Badge,
15900
+ V8 as Button,
15906
15901
  e7 as CardSelect,
15907
15902
  Uo as Checkbox,
15908
- z8 as Dropdown,
15903
+ j8 as Dropdown,
15909
15904
  $8 as DropdownButton,
15910
15905
  q8 as DropdownFilterMultiple,
15911
- Q4 as DropdownUser,
15912
- W8 as EmptyState,
15906
+ K8 as DropdownUser,
15907
+ z8 as EmptyState,
15913
15908
  w4 as Field,
15914
15909
  t7 as FilterSearchMultiple,
15915
- K8 as Flag,
15916
- J8 as Header,
15910
+ U8 as Flag,
15911
+ Y8 as Header,
15917
15912
  t1 as Heading,
15918
15913
  fe as Icon,
15919
15914
  ja as InlineError,
15920
15915
  X2 as LayoutMain,
15921
15916
  nl as LayoutShipment,
15922
- N8 as Link,
15917
+ P8 as Link,
15923
15918
  C1 as Logo,
15924
- j8 as Modal,
15919
+ X8 as Modal,
15925
15920
  n7 as Navigation,
15926
- U8 as NavigationMovil,
15921
+ J8 as NavigationMovil,
15927
15922
  b0 as RadioButton,
15928
- L8 as Select,
15929
- T8 as SelectButton,
15930
- k8 as SelectCountry,
15923
+ O8 as Select,
15924
+ H8 as SelectButton,
15925
+ T8 as SelectCountry,
15931
15926
  Ko as Spinner,
15932
15927
  L2 as Summary,
15933
- G8 as Switch,
15934
- X8 as Tab,
15935
- Y8 as TabNav,
15928
+ D8 as Switch,
15929
+ Z8 as Tab,
15930
+ W8 as TabNav,
15936
15931
  _8 as Table,
15937
15932
  ne as Text,
15938
15933
  w1 as TextRef,
15939
15934
  Jo as Tooltip,
15940
- O8 as Tracker
15935
+ G8 as Tracker
15941
15936
  };