@sfperusacdev/sf-ui 0.2.3 → 0.2.4

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/sf-ui.js CHANGED
@@ -8,46 +8,46 @@ import { useQuery as P } from "@tanstack/react-query";
8
8
  import F from "react-qr-code";
9
9
  import I from "@uiw/react-codemirror";
10
10
  import { html as L } from "@codemirror/lang-html";
11
- import { javascript as R } from "@codemirror/lang-javascript";
12
- import { json as z } from "@codemirror/lang-json";
13
- import { sql as B } from "@codemirror/lang-sql";
14
- import { MapContainer as V, Marker as ee, Polygon as te, Polyline as ne, TileLayer as re, useMap as H, useMapEvents as ie } from "react-leaflet";
15
- import ae from "leaflet";
16
- import { Area as oe, AreaChart as se, Bar as U, BarChart as ce, CartesianGrid as le, Label as W, LabelList as ue, Legend as de, Line as fe, LineChart as pe, PolarAngleAxis as me, PolarGrid as he, PolarRadiusAxis as ge, Radar as _e, RadarChart as ve, ReferenceLine as ye, ResponsiveContainer as be, Tooltip as xe, XAxis as Se, YAxis as Ce } from "recharts";
17
- import we from "react-easy-crop";
18
- import { yupResolver as Te } from "@hookform/resolvers/yup";
19
- import * as G from "yup";
11
+ import { javascript as ee } from "@codemirror/lang-javascript";
12
+ import { json as R } from "@codemirror/lang-json";
13
+ import { sql as z } from "@codemirror/lang-sql";
14
+ import { MapContainer as B, Marker as te, Polygon as ne, Polyline as re, TileLayer as ie, useMap as V, useMapEvents as ae } from "react-leaflet";
15
+ import oe from "leaflet";
16
+ import { Area as se, AreaChart as ce, Bar as le, BarChart as H, CartesianGrid as ue, Label as de, LabelList as fe, Legend as pe, Line as me, LineChart as he, PolarAngleAxis as ge, PolarGrid as _e, PolarRadiusAxis as ve, Radar as ye, RadarChart as be, ReferenceLine as xe, ResponsiveContainer as Se, Tooltip as Ce, XAxis as we, YAxis as Te } from "recharts";
17
+ import Ee from "react-easy-crop";
18
+ import { yupResolver as De } from "@hookform/resolvers/yup";
19
+ import * as U from "yup";
20
20
  //#region \0rolldown/runtime.js
21
- var Ee = Object.create, De = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, ke = Object.getOwnPropertyNames, Ae = Object.getPrototypeOf, je = Object.prototype.hasOwnProperty, Me = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Ne = (e, t, n, r) => {
22
- if (t && typeof t == "object" || typeof t == "function") for (var i = ke(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !je.call(e, s) && s !== n && De(e, s, {
21
+ var Oe = Object.create, ke = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, je = Object.getOwnPropertyNames, Me = Object.getPrototypeOf, Ne = Object.prototype.hasOwnProperty, Pe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Fe = (e, t, n, r) => {
22
+ if (t && typeof t == "object" || typeof t == "function") for (var i = je(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Ne.call(e, s) && s !== n && ke(e, s, {
23
23
  get: ((e) => t[e]).bind(null, s),
24
- enumerable: !(r = Oe(t, s)) || r.enumerable
24
+ enumerable: !(r = Ae(t, s)) || r.enumerable
25
25
  });
26
26
  return e;
27
- }, Pe = (e, t, n) => (n = e == null ? {} : Ee(Ae(e)), Ne(t || !e || !e.__esModule || !je.call(e, "default") ? De(n, "default", {
27
+ }, Ie = (e, t, n) => (n = e == null ? {} : Oe(Me(e)), Fe(t || !e || !e.__esModule || !Ne.call(e, "default") ? ke(n, "default", {
28
28
  value: e,
29
29
  enumerable: !0
30
- }) : n, e)), Fe = {
30
+ }) : n, e)), Le = {
31
31
  color: void 0,
32
32
  size: void 0,
33
33
  className: void 0,
34
34
  style: void 0,
35
35
  attr: void 0
36
- }, Ie = e.createContext && /*#__PURE__*/ e.createContext(Fe), Le = [
36
+ }, Re = e.createContext && /*#__PURE__*/ e.createContext(Le), ze = [
37
37
  "attr",
38
38
  "size",
39
39
  "title"
40
40
  ];
41
- function Re(e, t) {
41
+ function Be(e, t) {
42
42
  if (e == null) return {};
43
- var n, r, i = ze(e, t);
43
+ var n, r, i = Ve(e, t);
44
44
  if (Object.getOwnPropertySymbols) {
45
45
  var a = Object.getOwnPropertySymbols(e);
46
46
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
47
47
  }
48
48
  return i;
49
49
  }
50
- function ze(e, t) {
50
+ function Ve(e, t) {
51
51
  if (e == null) return {};
52
52
  var n = {};
53
53
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -56,16 +56,16 @@ function ze(e, t) {
56
56
  }
57
57
  return n;
58
58
  }
59
- function Be() {
60
- return Be = Object.assign ? Object.assign.bind() : function(e) {
59
+ function He() {
60
+ return He = Object.assign ? Object.assign.bind() : function(e) {
61
61
  for (var t = 1; t < arguments.length; t++) {
62
62
  var n = arguments[t];
63
63
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
64
64
  }
65
65
  return e;
66
- }, Be.apply(null, arguments);
66
+ }, He.apply(null, arguments);
67
67
  }
68
- function Ve(e, t) {
68
+ function Ue(e, t) {
69
69
  var n = Object.keys(e);
70
70
  if (Object.getOwnPropertySymbols) {
71
71
  var r = Object.getOwnPropertySymbols(e);
@@ -75,30 +75,30 @@ function Ve(e, t) {
75
75
  }
76
76
  return n;
77
77
  }
78
- function He(e) {
78
+ function We(e) {
79
79
  for (var t = 1; t < arguments.length; t++) {
80
80
  var n = arguments[t] == null ? {} : arguments[t];
81
- t % 2 ? Ve(Object(n), !0).forEach(function(t) {
82
- Ue(e, t, n[t]);
83
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ve(Object(n)).forEach(function(t) {
81
+ t % 2 ? Ue(Object(n), !0).forEach(function(t) {
82
+ Ge(e, t, n[t]);
83
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(t) {
84
84
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
85
85
  });
86
86
  }
87
87
  return e;
88
88
  }
89
- function Ue(e, t, n) {
90
- return (t = We(t)) in e ? Object.defineProperty(e, t, {
89
+ function Ge(e, t, n) {
90
+ return (t = Ke(t)) in e ? Object.defineProperty(e, t, {
91
91
  value: n,
92
92
  enumerable: !0,
93
93
  configurable: !0,
94
94
  writable: !0
95
95
  }) : e[t] = n, e;
96
96
  }
97
- function We(e) {
98
- var t = Ge(e, "string");
97
+ function Ke(e) {
98
+ var t = qe(e, "string");
99
99
  return typeof t == "symbol" ? t : t + "";
100
100
  }
101
- function Ge(e, t) {
101
+ function qe(e, t) {
102
102
  if (typeof e != "object" || !e) return e;
103
103
  var n = e[Symbol.toPrimitive];
104
104
  if (n !== void 0) {
@@ -108,33 +108,33 @@ function Ge(e, t) {
108
108
  }
109
109
  return (t === "string" ? String : Number)(e);
110
110
  }
111
- function Ke(t) {
112
- return t && t.map((t, n) => /*#__PURE__*/ e.createElement(t.tag, He({ key: n }, t.attr), Ke(t.child)));
111
+ function Je(t) {
112
+ return t && t.map((t, n) => /*#__PURE__*/ e.createElement(t.tag, We({ key: n }, t.attr), Je(t.child)));
113
113
  }
114
- function K(t) {
115
- return (n) => /*#__PURE__*/ e.createElement(qe, Be({ attr: He({}, t.attr) }, n), Ke(t.child));
114
+ function W(t) {
115
+ return (n) => /*#__PURE__*/ e.createElement(Ye, He({ attr: We({}, t.attr) }, n), Je(t.child));
116
116
  }
117
- function qe(t) {
117
+ function Ye(t) {
118
118
  var n = (n) => {
119
- var r = t.attr, i = t.size, a = t.title, o = Re(t, Le), s = i || n.size || "1em", c;
120
- return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /*#__PURE__*/ e.createElement("svg", Be({
119
+ var r = t.attr, i = t.size, a = t.title, o = Be(t, ze), s = i || n.size || "1em", c;
120
+ return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /*#__PURE__*/ e.createElement("svg", He({
121
121
  stroke: "currentColor",
122
122
  fill: "currentColor",
123
123
  strokeWidth: "0"
124
124
  }, n.attr, r, o, {
125
125
  className: c,
126
- style: He(He({ color: t.color || n.color }, n.style), t.style),
126
+ style: We(We({ color: t.color || n.color }, n.style), t.style),
127
127
  height: s,
128
128
  width: s,
129
129
  xmlns: "http://www.w3.org/2000/svg"
130
130
  }), a && /*#__PURE__*/ e.createElement("title", null, a), t.children);
131
131
  };
132
- return Ie === void 0 ? n(Fe) : /*#__PURE__*/ e.createElement(Ie.Consumer, null, (e) => n(e));
132
+ return Re === void 0 ? n(Le) : /*#__PURE__*/ e.createElement(Re.Consumer, null, (e) => n(e));
133
133
  }
134
134
  //#endregion
135
135
  //#region node_modules/react-icons/fi/index.mjs
136
- function q(e) {
137
- return K({
136
+ function G(e) {
137
+ return W({
138
138
  tag: "svg",
139
139
  attr: {
140
140
  viewBox: "0 0 24 24",
@@ -165,8 +165,8 @@ function q(e) {
165
165
  }]
166
166
  })(e);
167
167
  }
168
- function Je(e) {
169
- return K({
168
+ function Xe(e) {
169
+ return W({
170
170
  tag: "svg",
171
171
  attr: {
172
172
  viewBox: "0 0 24 24",
@@ -204,8 +204,8 @@ function Je(e) {
204
204
  ]
205
205
  })(e);
206
206
  }
207
- function Ye(e) {
208
- return K({
207
+ function K(e) {
208
+ return W({
209
209
  tag: "svg",
210
210
  attr: {
211
211
  viewBox: "0 0 24 24",
@@ -230,8 +230,8 @@ function Ye(e) {
230
230
  }]
231
231
  })(e);
232
232
  }
233
- function Xe(e) {
234
- return K({
233
+ function Ze(e) {
234
+ return W({
235
235
  tag: "svg",
236
236
  attr: {
237
237
  viewBox: "0 0 24 24",
@@ -275,8 +275,8 @@ function Xe(e) {
275
275
  ]
276
276
  })(e);
277
277
  }
278
- function J(e) {
279
- return K({
278
+ function Qe(e) {
279
+ return W({
280
280
  tag: "svg",
281
281
  attr: {
282
282
  viewBox: "0 0 24 24",
@@ -379,8 +379,8 @@ function J(e) {
379
379
  ]
380
380
  })(e);
381
381
  }
382
- function Ze(e) {
383
- return K({
382
+ function $e(e) {
383
+ return W({
384
384
  tag: "svg",
385
385
  attr: {
386
386
  viewBox: "0 0 24 24",
@@ -397,8 +397,8 @@ function Ze(e) {
397
397
  }]
398
398
  })(e);
399
399
  }
400
- function Qe(e) {
401
- return K({
400
+ function q(e) {
401
+ return W({
402
402
  tag: "svg",
403
403
  attr: {
404
404
  viewBox: "0 0 24 24",
@@ -428,8 +428,8 @@ function Qe(e) {
428
428
  }]
429
429
  })(e);
430
430
  }
431
- function $e(e) {
432
- return K({
431
+ function et(e) {
432
+ return W({
433
433
  tag: "svg",
434
434
  attr: {
435
435
  viewBox: "0 0 24 24",
@@ -458,8 +458,8 @@ function $e(e) {
458
458
  ]
459
459
  })(e);
460
460
  }
461
- function et(e) {
462
- return K({
461
+ function tt(e) {
462
+ return W({
463
463
  tag: "svg",
464
464
  attr: {
465
465
  viewBox: "0 0 24 24",
@@ -488,8 +488,8 @@ function et(e) {
488
488
  ]
489
489
  })(e);
490
490
  }
491
- function tt(e) {
492
- return K({
491
+ function nt(e) {
492
+ return W({
493
493
  tag: "svg",
494
494
  attr: {
495
495
  viewBox: "0 0 24 24",
@@ -520,8 +520,8 @@ function tt(e) {
520
520
  }]
521
521
  })(e);
522
522
  }
523
- function nt(e) {
524
- return K({
523
+ function rt(e) {
524
+ return W({
525
525
  tag: "svg",
526
526
  attr: {
527
527
  viewBox: "0 0 24 24",
@@ -538,8 +538,8 @@ function nt(e) {
538
538
  }]
539
539
  })(e);
540
540
  }
541
- function rt(e) {
542
- return K({
541
+ function it(e) {
542
+ return W({
543
543
  tag: "svg",
544
544
  attr: {
545
545
  viewBox: "0 0 24 24",
@@ -561,8 +561,8 @@ function rt(e) {
561
561
  }]
562
562
  })(e);
563
563
  }
564
- function it(e) {
565
- return K({
564
+ function at(e) {
565
+ return W({
566
566
  tag: "svg",
567
567
  attr: {
568
568
  viewBox: "0 0 24 24",
@@ -579,8 +579,8 @@ function it(e) {
579
579
  }]
580
580
  })(e);
581
581
  }
582
- function at(e) {
583
- return K({
582
+ function ot(e) {
583
+ return W({
584
584
  tag: "svg",
585
585
  attr: {
586
586
  viewBox: "0 0 24 24",
@@ -605,8 +605,8 @@ function at(e) {
605
605
  }]
606
606
  })(e);
607
607
  }
608
- function ot(e) {
609
- return K({
608
+ function st(e) {
609
+ return W({
610
610
  tag: "svg",
611
611
  attr: {
612
612
  viewBox: "0 0 24 24",
@@ -700,8 +700,8 @@ function ot(e) {
700
700
  ]
701
701
  })(e);
702
702
  }
703
- function st(e) {
704
- return K({
703
+ function ct(e) {
704
+ return W({
705
705
  tag: "svg",
706
706
  attr: {
707
707
  viewBox: "0 0 24 24",
@@ -730,8 +730,8 @@ function st(e) {
730
730
  ]
731
731
  })(e);
732
732
  }
733
- function ct(e) {
734
- return K({
733
+ function lt(e) {
734
+ return W({
735
735
  tag: "svg",
736
736
  attr: {
737
737
  viewBox: "0 0 24 24",
@@ -774,8 +774,8 @@ function ct(e) {
774
774
  ]
775
775
  })(e);
776
776
  }
777
- function lt(e) {
778
- return K({
777
+ function ut(e) {
778
+ return W({
779
779
  tag: "svg",
780
780
  attr: {
781
781
  viewBox: "0 0 24 24",
@@ -829,8 +829,8 @@ function lt(e) {
829
829
  ]
830
830
  })(e);
831
831
  }
832
- function ut(e) {
833
- return K({
832
+ function dt(e) {
833
+ return W({
834
834
  tag: "svg",
835
835
  attr: {
836
836
  viewBox: "0 0 24 24",
@@ -855,8 +855,8 @@ function ut(e) {
855
855
  }]
856
856
  })(e);
857
857
  }
858
- function Y(e) {
859
- return K({
858
+ function ft(e) {
859
+ return W({
860
860
  tag: "svg",
861
861
  attr: {
862
862
  viewBox: "0 0 24 24",
@@ -882,8 +882,8 @@ function Y(e) {
882
882
  }]
883
883
  })(e);
884
884
  }
885
- function dt(e) {
886
- return K({
885
+ function pt(e) {
886
+ return W({
887
887
  tag: "svg",
888
888
  attr: {
889
889
  viewBox: "0 0 24 24",
@@ -900,8 +900,8 @@ function dt(e) {
900
900
  }]
901
901
  })(e);
902
902
  }
903
- function ft(e) {
904
- return K({
903
+ function J(e) {
904
+ return W({
905
905
  tag: "svg",
906
906
  attr: {
907
907
  viewBox: "0 0 24 24",
@@ -922,8 +922,8 @@ function ft(e) {
922
922
  }]
923
923
  })(e);
924
924
  }
925
- function pt(e) {
926
- return K({
925
+ function mt(e) {
926
+ return W({
927
927
  tag: "svg",
928
928
  attr: {
929
929
  viewBox: "0 0 24 24",
@@ -944,8 +944,8 @@ function pt(e) {
944
944
  }]
945
945
  })(e);
946
946
  }
947
- function mt(e) {
948
- return K({
947
+ function Y(e) {
948
+ return W({
949
949
  tag: "svg",
950
950
  attr: {
951
951
  viewBox: "0 0 24 24",
@@ -963,7 +963,7 @@ function mt(e) {
963
963
  })(e);
964
964
  }
965
965
  function ht(e) {
966
- return K({
966
+ return W({
967
967
  tag: "svg",
968
968
  attr: {
969
969
  viewBox: "0 0 24 24",
@@ -981,7 +981,7 @@ function ht(e) {
981
981
  })(e);
982
982
  }
983
983
  function gt(e) {
984
- return K({
984
+ return W({
985
985
  tag: "svg",
986
986
  attr: {
987
987
  viewBox: "0 0 24 24",
@@ -999,7 +999,7 @@ function gt(e) {
999
999
  })(e);
1000
1000
  }
1001
1001
  function _t(e) {
1002
- return K({
1002
+ return W({
1003
1003
  tag: "svg",
1004
1004
  attr: {
1005
1005
  viewBox: "0 0 24 24",
@@ -1017,7 +1017,7 @@ function _t(e) {
1017
1017
  })(e);
1018
1018
  }
1019
1019
  function vt(e) {
1020
- return K({
1020
+ return W({
1021
1021
  tag: "svg",
1022
1022
  attr: {
1023
1023
  viewBox: "0 0 24 24",
@@ -1039,7 +1039,7 @@ function vt(e) {
1039
1039
  })(e);
1040
1040
  }
1041
1041
  function yt(e) {
1042
- return K({
1042
+ return W({
1043
1043
  tag: "svg",
1044
1044
  attr: {
1045
1045
  viewBox: "0 0 24 24",
@@ -1096,7 +1096,7 @@ function yt(e) {
1096
1096
  })(e);
1097
1097
  }
1098
1098
  function bt(e) {
1099
- return K({
1099
+ return W({
1100
1100
  tag: "svg",
1101
1101
  attr: {
1102
1102
  viewBox: "0 0 24 24",
@@ -1125,7 +1125,7 @@ function bt(e) {
1125
1125
  })(e);
1126
1126
  }
1127
1127
  function xt(e) {
1128
- return K({
1128
+ return W({
1129
1129
  tag: "svg",
1130
1130
  attr: {
1131
1131
  viewBox: "0 0 24 24",
@@ -1147,7 +1147,7 @@ function xt(e) {
1147
1147
  })(e);
1148
1148
  }
1149
1149
  function St(e) {
1150
- return K({
1150
+ return W({
1151
1151
  tag: "svg",
1152
1152
  attr: {
1153
1153
  viewBox: "0 0 24 24",
@@ -1174,7 +1174,7 @@ function St(e) {
1174
1174
  })(e);
1175
1175
  }
1176
1176
  function Ct(e) {
1177
- return K({
1177
+ return W({
1178
1178
  tag: "svg",
1179
1179
  attr: {
1180
1180
  viewBox: "0 0 24 24",
@@ -1201,7 +1201,7 @@ function Ct(e) {
1201
1201
  })(e);
1202
1202
  }
1203
1203
  function wt(e) {
1204
- return K({
1204
+ return W({
1205
1205
  tag: "svg",
1206
1206
  attr: {
1207
1207
  viewBox: "0 0 24 24",
@@ -1241,7 +1241,7 @@ function wt(e) {
1241
1241
  })(e);
1242
1242
  }
1243
1243
  function Tt(e) {
1244
- return K({
1244
+ return W({
1245
1245
  tag: "svg",
1246
1246
  attr: {
1247
1247
  viewBox: "0 0 24 24",
@@ -1286,7 +1286,7 @@ function Tt(e) {
1286
1286
  }
1287
1287
  //#endregion
1288
1288
  //#region src/components/inputs/FieldLayout.tsx
1289
- var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1289
+ var X = /* @__PURE__ */ Ie((/* @__PURE__ */ Pe(((e, t) => {
1290
1290
  (function() {
1291
1291
  var e = {}.hasOwnProperty;
1292
1292
  function n() {
@@ -1333,7 +1333,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1333
1333
  type: "button",
1334
1334
  "aria-label": n,
1335
1335
  className: "inline-flex h-4 w-4 items-center justify-center rounded-full text-slate-400 hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-slate-200",
1336
- children: /* @__PURE__ */ v(ct, { size: 14 })
1336
+ children: /* @__PURE__ */ v(lt, { size: 14 })
1337
1337
  }), /* @__PURE__ */ v("span", {
1338
1338
  role: "tooltip",
1339
1339
  className: (0, X.default)("pointer-events-none absolute top-full z-50 mt-1 hidden w-max max-w-[20rem] rounded-md bg-slate-900 px-2 py-1.5 text-xs font-normal leading-relaxed text-white shadow-md", r === "right" ? "right-0" : "left-0", "group-hover:block group-focus-within:block"),
@@ -1346,7 +1346,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1346
1346
  "aria-label": "Actualizar",
1347
1347
  className: "inline-flex h-4 w-4 items-center justify-center rounded-full text-slate-400 hover:text-slate-700 focus:outline-none focus:ring-2 focus:ring-slate-200",
1348
1348
  disabled: s,
1349
- children: /* @__PURE__ */ v(et, { size: 14 })
1349
+ children: /* @__PURE__ */ v(tt, { size: 14 })
1350
1350
  })
1351
1351
  ]
1352
1352
  }),
@@ -1360,7 +1360,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1360
1360
  let x = b({
1361
1361
  name: t,
1362
1362
  control: e.control
1363
- }), S = String(t), C = x.fieldState.error, w = p ?? (h ? Qe : void 0);
1363
+ }), S = String(t), C = x.fieldState.error, w = p ?? (h ? q : void 0);
1364
1364
  return /* @__PURE__ */ v(Z, {
1365
1365
  id: S,
1366
1366
  label: n,
@@ -1683,7 +1683,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1683
1683
  "aria-label": p ? "Ocultar contraseña" : "Mostrar contraseña",
1684
1684
  onClick: () => m((e) => !e),
1685
1685
  className: "sf-input-icon-btn",
1686
- children: v(p ? Y : ut, { size: c ? 16 : 18 })
1686
+ children: v(p ? ft : dt, { size: c ? 16 : 18 })
1687
1687
  })]
1688
1688
  }), S && /* @__PURE__ */ y("div", {
1689
1689
  className: "sf-password-strength",
@@ -1769,24 +1769,24 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1769
1769
  let n = new Set(t);
1770
1770
  return n.has(e) ? n.delete(e) : n.add(e), n;
1771
1771
  });
1772
- }, R = (e) => {
1772
+ }, ee = (e) => {
1773
1773
  let t = F.find((t) => t.value === e.value)?.parentValue;
1774
1774
  for (; t;) {
1775
1775
  if (O.has(t)) return !0;
1776
1776
  t = F.find((e) => e.value === t)?.parentValue;
1777
1777
  }
1778
1778
  return !1;
1779
- }, z = (e) => {
1779
+ }, R = (e) => {
1780
1780
  let t = o ? e : e[0] ?? "";
1781
1781
  S.field.onChange(t), o ? _?.(e) : _?.(e[0] ?? ""), o || T(!1);
1782
- }, B = (e) => {
1782
+ }, z = (e) => {
1783
1783
  if (!f) {
1784
1784
  if (o) {
1785
1785
  let t = N.includes(e) ? N.filter((t) => t !== e) : [...N, e];
1786
- z(t);
1786
+ R(t);
1787
1787
  return;
1788
1788
  }
1789
- z([e]);
1789
+ R([e]);
1790
1790
  }
1791
1791
  };
1792
1792
  return /* @__PURE__ */ v(Z, {
@@ -1826,7 +1826,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1826
1826
  className: "sf-tree-select__search",
1827
1827
  children: /* @__PURE__ */ y("div", {
1828
1828
  className: "relative",
1829
- children: [/* @__PURE__ */ v(Qe, {
1829
+ children: [/* @__PURE__ */ v(q, {
1830
1830
  className: "pointer-events-none absolute left-2 top-1/2 -translate-y-1/2",
1831
1831
  size: 14,
1832
1832
  "aria-hidden": "true"
@@ -1851,7 +1851,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1851
1851
  className: "sf-transfer__empty",
1852
1852
  children: d
1853
1853
  }), F.map((e) => {
1854
- if (R(e)) return null;
1854
+ if (ee(e)) return null;
1855
1855
  let t = !!e.children?.length, n = !O.has(e.value), r = N.includes(e.value);
1856
1856
  return /* @__PURE__ */ y("div", {
1857
1857
  className: "flex items-center",
@@ -1863,13 +1863,13 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1863
1863
  onClick: () => L(e.value),
1864
1864
  className: (0, X.default)("sf-tree-select__toggle", !t && "sf-tree-select__toggle--placeholder"),
1865
1865
  tabIndex: t ? 0 : -1,
1866
- children: t ? v(n ? gt : mt, { size: 14 }) : null
1866
+ children: t ? v(n ? gt : Y, { size: 14 }) : null
1867
1867
  }), /* @__PURE__ */ v("button", {
1868
1868
  type: "button",
1869
1869
  role: "option",
1870
1870
  "aria-selected": r,
1871
1871
  disabled: e.disabled,
1872
- onClick: () => B(e.value),
1872
+ onClick: () => z(e.value),
1873
1873
  className: (0, X.default)("sf-tree-select__row", r && "sf-tree-select__row--selected"),
1874
1874
  children: e.label
1875
1875
  })]
@@ -1892,7 +1892,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1892
1892
  }),
1893
1893
  ...l,
1894
1894
  children: [
1895
- n ? /* @__PURE__ */ v(ot, {
1895
+ n ? /* @__PURE__ */ v(st, {
1896
1896
  className: (0, X.default)("animate-spin", t === "sm" ? "h-3.5 w-3.5" : "h-4 w-4"),
1897
1897
  "aria-hidden": "true"
1898
1898
  }) : f,
@@ -1974,7 +1974,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1974
1974
  variant: "outline",
1975
1975
  "aria-label": "Mover seleccionados",
1976
1976
  disabled: o.length === 0,
1977
- icon: /* @__PURE__ */ v(mt, { "aria-hidden": "true" }),
1977
+ icon: /* @__PURE__ */ v(Y, { "aria-hidden": "true" }),
1978
1978
  onClick: () => w(o),
1979
1979
  children: ""
1980
1980
  }),
@@ -1983,7 +1983,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
1983
1983
  variant: "outline",
1984
1984
  "aria-label": "Mover todos",
1985
1985
  disabled: _.length === 0,
1986
- icon: /* @__PURE__ */ v(ft, { "aria-hidden": "true" }),
1986
+ icon: /* @__PURE__ */ v(J, { "aria-hidden": "true" }),
1987
1987
  onClick: () => w(_.map((e) => e.key)),
1988
1988
  children: ""
1989
1989
  }),
@@ -2001,7 +2001,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2001
2001
  variant: "outline",
2002
2002
  "aria-label": "Quitar todos",
2003
2003
  disabled: t.length === 0,
2004
- icon: /* @__PURE__ */ v(pt, { "aria-hidden": "true" }),
2004
+ icon: /* @__PURE__ */ v(mt, { "aria-hidden": "true" }),
2005
2005
  onClick: () => T(t),
2006
2006
  children: ""
2007
2007
  })
@@ -2603,49 +2603,49 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2603
2603
  let D = b({
2604
2604
  name: t,
2605
2605
  control: e.control
2606
- }), O = String(t), k = D.fieldState.error, A = m(null), j = m(null), [M, N] = h(!1), [P, F] = h(""), [I, L] = h(), [R, z] = h(0), B = m(null), V = p(() => o ? Ut(D.field.value) : D.field.value ? [String(D.field.value)] : [], [D.field.value, o]), ee = p(() => {
2606
+ }), O = String(t), k = D.fieldState.error, A = m(null), j = m(null), [M, N] = h(!1), [P, F] = h(""), [I, L] = h(), [ee, R] = h(0), z = m(null), B = p(() => o ? Ut(D.field.value) : D.field.value ? [String(D.field.value)] : [], [D.field.value, o]), te = p(() => {
2607
2607
  let e = /* @__PURE__ */ new Map();
2608
2608
  for (let t of n) e.set(t.value, t);
2609
2609
  return e;
2610
- }, [n]), te = p(() => {
2610
+ }, [n]), ne = p(() => {
2611
2611
  let e = [];
2612
- for (let t of V) {
2613
- let n = ee.get(t);
2612
+ for (let t of B) {
2613
+ let n = te.get(t);
2614
2614
  n && e.push(n);
2615
2615
  }
2616
2616
  return e;
2617
- }, [ee, V]), ne = p(() => {
2617
+ }, [te, B]), re = p(() => {
2618
2618
  let e = P.trim().toLowerCase();
2619
2619
  return e ? n.filter((t) => t.label.toLowerCase().includes(e)) : n;
2620
2620
  }, [n, P]);
2621
2621
  u(() => {
2622
- M && (B.current?.scrollTo({ top: 0 }), queueMicrotask(() => {
2623
- z(B.current?.scrollTop ?? 0);
2622
+ M && (z.current?.scrollTo({ top: 0 }), queueMicrotask(() => {
2623
+ R(z.current?.scrollTop ?? 0);
2624
2624
  }));
2625
2625
  }, [M, P]);
2626
- let re = (e) => {
2626
+ let ie = (e) => {
2627
2627
  D.field.onChange(e), C?.(e);
2628
- }, H = () => {
2628
+ }, V = () => {
2629
2629
  N(!1), F(""), L(void 0);
2630
- }, ie = (e) => {
2630
+ }, ae = (e) => {
2631
2631
  if (g) return;
2632
2632
  if (!o) {
2633
- re(e), H();
2633
+ ie(e), V();
2634
2634
  return;
2635
2635
  }
2636
- let t = V.includes(e) ? V.filter((t) => t !== e) : [...V, e];
2637
- re(t);
2638
- }, ae = (e) => {
2636
+ let t = B.includes(e) ? B.filter((t) => t !== e) : [...B, e];
2637
+ ie(t);
2638
+ }, oe = (e) => {
2639
2639
  if (!g) {
2640
2640
  if (!o) {
2641
- re("");
2641
+ ie("");
2642
2642
  return;
2643
2643
  }
2644
- re(V.filter((t) => t !== e));
2644
+ ie(B.filter((t) => t !== e));
2645
2645
  }
2646
- }, oe = () => {
2647
- g || re(o ? [] : "");
2648
2646
  }, se = () => {
2647
+ g || ie(o ? [] : "");
2648
+ }, ce = () => {
2649
2649
  let e = j.current;
2650
2650
  if (!e) return;
2651
2651
  let t = e.getBoundingClientRect(), n = window.innerHeight - t.bottom - 12 - 4, r = t.top - 12 - 4, i = r > n && n < 120 ? "top" : "bottom", a = Math.max(120, Math.min(288, i === "top" ? r : n));
@@ -2659,25 +2659,25 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2659
2659
  });
2660
2660
  };
2661
2661
  f(() => {
2662
- M && se();
2662
+ M && ce();
2663
2663
  }, [M]), u(() => {
2664
2664
  if (!M) return;
2665
- let e = () => se();
2665
+ let e = () => ce();
2666
2666
  return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
2667
2667
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
2668
2668
  };
2669
2669
  }, [M]), u(() => {
2670
2670
  let e = (e) => {
2671
2671
  let t = e.target;
2672
- A.current?.contains(t) || H();
2672
+ A.current?.contains(t) || V();
2673
2673
  };
2674
2674
  return document.addEventListener("pointerdown", e), () => {
2675
2675
  document.removeEventListener("pointerdown", e);
2676
2676
  };
2677
2677
  }, []);
2678
- let U = /* @__PURE__ */ y("div", {
2678
+ let le = /* @__PURE__ */ y("div", {
2679
2679
  className: (0, X.default)("flex shrink-0 items-center gap-2 px-3 py-2", I?.direction === "top" ? "border-t border-slate-200" : "border-b border-slate-200"),
2680
- children: [/* @__PURE__ */ v(Qe, {
2680
+ children: [/* @__PURE__ */ v(q, {
2681
2681
  size: 16,
2682
2682
  className: "text-slate-400"
2683
2683
  }), /* @__PURE__ */ v("input", {
@@ -2686,22 +2686,22 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2686
2686
  onChange: (e) => F(e.target.value),
2687
2687
  className: "h-8 w-full bg-transparent text-sm text-slate-900 outline-none placeholder:text-slate-400"
2688
2688
  })]
2689
- }), ce = /* @__PURE__ */ v("div", {
2690
- ref: B,
2689
+ }), H = /* @__PURE__ */ v("div", {
2690
+ ref: z,
2691
2691
  className: "overflow-auto py-1",
2692
2692
  style: { maxHeight: Math.max(72, (I?.maxHeight ?? 288) - mn) },
2693
2693
  onScroll: (e) => {
2694
- z(e.currentTarget.scrollTop);
2694
+ R(e.currentTarget.scrollTop);
2695
2695
  },
2696
- children: ne.length ? (() => {
2697
- let e = Math.max(72, (I?.maxHeight ?? 288) - mn), t = Math.max(1, Math.ceil(e / hn)), n = Math.max(0, Math.floor(R / hn) - gn), r = Math.min(ne.length, n + t + 12), i = n * hn, a = Math.max(0, (ne.length - r) * hn), s = ne.slice(n, r);
2696
+ children: re.length ? (() => {
2697
+ let e = Math.max(72, (I?.maxHeight ?? 288) - mn), t = Math.max(1, Math.ceil(e / hn)), n = Math.max(0, Math.floor(ee / hn) - gn), r = Math.min(re.length, n + t + 12), i = n * hn, a = Math.max(0, (re.length - r) * hn), s = re.slice(n, r);
2698
2698
  return /* @__PURE__ */ y(_, { children: [
2699
2699
  i > 0 && /* @__PURE__ */ v("div", { style: { height: i } }),
2700
2700
  s.map((e) => {
2701
- let t = V.includes(e.value);
2701
+ let t = B.includes(e.value);
2702
2702
  return /* @__PURE__ */ y("button", {
2703
2703
  type: "button",
2704
- onClick: () => ie(e.value),
2704
+ onClick: () => ae(e.value),
2705
2705
  className: (0, X.default)("flex h-10 w-full items-center gap-2 px-3 text-left text-sm hover:bg-slate-50", t ? "text-slate-900" : "text-slate-700"),
2706
2706
  children: [/* @__PURE__ */ v("span", {
2707
2707
  className: (0, X.default)("flex h-4 w-4 items-center justify-center border", o ? "rounded" : "rounded-full", t ? "border-slate-900 bg-slate-900 text-white" : "border-slate-300 bg-white"),
@@ -2748,10 +2748,10 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2748
2748
  className: s,
2749
2749
  withRightIcon: !0,
2750
2750
  disabled: g
2751
- }), "flex items-center gap-1.5 text-left", o && te.length > 1 && "h-auto min-h-[2.5rem] py-2"),
2751
+ }), "flex items-center gap-1.5 text-left", o && ne.length > 1 && "h-auto min-h-[2.5rem] py-2"),
2752
2752
  children: [/* @__PURE__ */ v("span", {
2753
2753
  className: "flex min-w-0 flex-1 flex-wrap items-center gap-1",
2754
- children: te.length ? o ? /* @__PURE__ */ y(_, { children: [te.slice(0, Math.max(0, S)).map((e) => /* @__PURE__ */ y("span", {
2754
+ children: ne.length ? o ? /* @__PURE__ */ y(_, { children: [ne.slice(0, Math.max(0, S)).map((e) => /* @__PURE__ */ y("span", {
2755
2755
  className: "inline-flex max-w-full items-center gap-1 rounded bg-slate-100 px-1.5 py-0.5 text-xs text-slate-700",
2756
2756
  children: [/* @__PURE__ */ v("span", {
2757
2757
  className: "truncate",
@@ -2759,30 +2759,30 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2759
2759
  }), !g && /* @__PURE__ */ v("button", {
2760
2760
  type: "button",
2761
2761
  onClick: (t) => {
2762
- t.stopPropagation(), ae(e.value);
2762
+ t.stopPropagation(), oe(e.value);
2763
2763
  },
2764
2764
  className: "rounded text-slate-400 hover:text-slate-700",
2765
- children: /* @__PURE__ */ v(q, { size: 12 })
2765
+ children: /* @__PURE__ */ v(G, { size: 12 })
2766
2766
  })]
2767
- }, e.value)), te.length > S && /* @__PURE__ */ y("span", {
2767
+ }, e.value)), ne.length > S && /* @__PURE__ */ y("span", {
2768
2768
  className: "inline-flex items-center rounded bg-slate-100 px-1.5 py-0.5 text-xs text-slate-500",
2769
- children: ["+", te.length - S]
2769
+ children: ["+", ne.length - S]
2770
2770
  })] }) : /* @__PURE__ */ v("span", {
2771
2771
  className: "truncate",
2772
- children: te[0]?.label
2772
+ children: ne[0]?.label
2773
2773
  }) : /* @__PURE__ */ v("span", {
2774
2774
  className: "text-slate-400",
2775
2775
  children: c
2776
2776
  })
2777
2777
  }), /* @__PURE__ */ y("span", {
2778
2778
  className: "flex items-center gap-1",
2779
- children: [te.length > 0 && !g && /* @__PURE__ */ v("button", {
2779
+ children: [ne.length > 0 && !g && /* @__PURE__ */ v("button", {
2780
2780
  type: "button",
2781
2781
  onClick: (e) => {
2782
- e.stopPropagation(), oe();
2782
+ e.stopPropagation(), se();
2783
2783
  },
2784
2784
  className: "rounded p-0.5 text-slate-400 hover:text-slate-700",
2785
- children: /* @__PURE__ */ v(q, { size: 14 })
2785
+ children: /* @__PURE__ */ v(G, { size: 14 })
2786
2786
  }), /* @__PURE__ */ v(gt, {
2787
2787
  size: x ? 16 : 18,
2788
2788
  className: (0, X.default)("text-slate-500 transition-transform", M && "rotate-180")
@@ -2798,7 +2798,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2798
2798
  maxHeight: I?.maxHeight ?? 0,
2799
2799
  visibility: I ? "visible" : "hidden"
2800
2800
  },
2801
- children: I?.direction === "top" ? /* @__PURE__ */ y(_, { children: [ce, U] }) : /* @__PURE__ */ y(_, { children: [U, ce] })
2801
+ children: I?.direction === "top" ? /* @__PURE__ */ y(_, { children: [H, le] }) : /* @__PURE__ */ y(_, { children: [le, H] })
2802
2802
  })]
2803
2803
  })
2804
2804
  });
@@ -2942,35 +2942,35 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2942
2942
  let j = b({
2943
2943
  name: t,
2944
2944
  control: e.control
2945
- }), N = String(t), P = j.fieldState.error, [F, I] = h(""), [L, R] = h({
2945
+ }), N = String(t), P = j.fieldState.error, [F, I] = h(""), [L, ee] = h({
2946
2946
  pageIndex: 0,
2947
2947
  pageSize: f
2948
- }), z = p(() => c ? Ut(j.field.value) : j.field.value ? [String(j.field.value)] : [], [j.field.value, c]), B = p(() => n.filter((e) => z.includes(e.value)), [n, z]), V = (e) => {
2948
+ }), R = p(() => c ? Ut(j.field.value) : j.field.value ? [String(j.field.value)] : [], [j.field.value, c]), z = p(() => n.filter((e) => R.includes(e.value)), [n, R]), B = (e) => {
2949
2949
  j.field.onChange(e), m?.(e);
2950
- }, ee = (e) => {
2950
+ }, te = (e) => {
2951
2951
  if (u || d) return;
2952
2952
  if (!c) {
2953
- V(e), j.field.onBlur();
2953
+ B(e), j.field.onBlur();
2954
2954
  return;
2955
2955
  }
2956
- let t = z.includes(e) ? z.filter((t) => t !== e) : [...z, e];
2957
- V(t), j.field.onBlur();
2958
- }, te = (e) => {
2956
+ let t = R.includes(e) ? R.filter((t) => t !== e) : [...R, e];
2957
+ B(t), j.field.onBlur();
2958
+ }, ne = (e) => {
2959
2959
  if (!(u || d)) {
2960
2960
  if (!c) {
2961
- V(""), j.field.onBlur();
2961
+ B(""), j.field.onBlur();
2962
2962
  return;
2963
2963
  }
2964
- V(z.filter((t) => t !== e)), j.field.onBlur();
2964
+ B(R.filter((t) => t !== e)), j.field.onBlur();
2965
2965
  }
2966
- }, ne = () => {
2967
- u || d || (V(c ? [] : ""), j.field.onBlur());
2968
- }, re = p(() => [
2966
+ }, re = () => {
2967
+ u || d || (B(c ? [] : ""), j.field.onBlur());
2968
+ }, ie = p(() => [
2969
2969
  {
2970
2970
  id: "selected",
2971
2971
  header: "",
2972
2972
  cell: ({ row: e }) => {
2973
- let t = z.includes(e.original.value);
2973
+ let t = R.includes(e.original.value);
2974
2974
  return /* @__PURE__ */ v("input", {
2975
2975
  type: c ? "checkbox" : "radio",
2976
2976
  checked: t,
@@ -2996,21 +2996,21 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2996
2996
  r,
2997
2997
  c,
2998
2998
  u,
2999
- z
3000
- ]), H = M({
2999
+ R
3000
+ ]), V = M({
3001
3001
  data: n,
3002
- columns: re,
3002
+ columns: ie,
3003
3003
  state: {
3004
3004
  globalFilter: F,
3005
3005
  pagination: L
3006
3006
  },
3007
3007
  onGlobalFilterChange: (e) => {
3008
- I(String(e)), R((e) => ({
3008
+ I(String(e)), ee((e) => ({
3009
3009
  ...e,
3010
3010
  pageIndex: 0
3011
3011
  }));
3012
3012
  },
3013
- onPaginationChange: R,
3013
+ onPaginationChange: ee,
3014
3014
  getCoreRowModel: E(),
3015
3015
  getFilteredRowModel: O(),
3016
3016
  getPaginationRowModel: A(),
@@ -3021,7 +3021,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3021
3021
  return n != null && String(n).toLowerCase().includes(r);
3022
3022
  });
3023
3023
  }
3024
- }), ie = H.getRowModel().rows, ae = H.getFilteredRowModel().rows.length, oe = Math.max(0, f - ie.length), se = H.getState().pagination.pageIndex + 1, U = Math.max(1, H.getPageCount()), ce = H.getAllLeafColumns().length, le = C > 0 && F.trim().length < C;
3024
+ }), ae = V.getRowModel().rows, oe = V.getFilteredRowModel().rows.length, se = Math.max(0, f - ae.length), ce = V.getState().pagination.pageIndex + 1, le = Math.max(1, V.getPageCount()), H = V.getAllLeafColumns().length, ue = C > 0 && F.trim().length < C;
3025
3025
  return /* @__PURE__ */ v(Z, {
3026
3026
  id: N,
3027
3027
  label: a,
@@ -3035,7 +3035,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3035
3035
  children: [
3036
3036
  /* @__PURE__ */ y("div", {
3037
3037
  className: "flex items-center gap-2 border-b border-slate-200 px-3 py-2",
3038
- children: [/* @__PURE__ */ v(Qe, {
3038
+ children: [/* @__PURE__ */ v(q, {
3039
3039
  size: 16,
3040
3040
  className: "shrink-0 text-slate-400"
3041
3041
  }), /* @__PURE__ */ v("input", {
@@ -3045,7 +3045,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3045
3045
  disabled: u || d,
3046
3046
  placeholder: d ? "Cargando..." : x ?? "Buscar...",
3047
3047
  onBlur: () => j.field.onBlur(),
3048
- onChange: (e) => H.setGlobalFilter(e.target.value),
3048
+ onChange: (e) => V.setGlobalFilter(e.target.value),
3049
3049
  className: "h-8 w-full bg-transparent text-sm text-slate-900 outline-none placeholder:text-slate-400 disabled:cursor-not-allowed"
3050
3050
  })]
3051
3051
  }),
@@ -3059,40 +3059,40 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3059
3059
  className: "flex min-w-0 flex-1 items-center gap-2",
3060
3060
  children: [/* @__PURE__ */ v("span", {
3061
3061
  className: "shrink-0 text-xs font-medium text-slate-500",
3062
- children: B.length === 0 ? "Sin selección" : B.length === 1 ? "1 seleccionado" : `${B.length} seleccionados`
3063
- }), B.length > 0 && /* @__PURE__ */ y("div", {
3062
+ children: z.length === 0 ? "Sin selección" : z.length === 1 ? "1 seleccionado" : `${z.length} seleccionados`
3063
+ }), z.length > 0 && /* @__PURE__ */ y("div", {
3064
3064
  className: "flex min-w-0 flex-1 gap-1 overflow-hidden",
3065
- children: [B.slice(0, 3).map((e) => /* @__PURE__ */ y("span", {
3065
+ children: [z.slice(0, 3).map((e) => /* @__PURE__ */ y("span", {
3066
3066
  className: "inline-flex min-w-0 max-w-[9rem] items-center gap-1 rounded-full border border-slate-200 bg-white px-2 py-0.5 text-xs text-slate-700",
3067
3067
  children: [/* @__PURE__ */ v("span", {
3068
3068
  className: "truncate",
3069
3069
  children: e.label
3070
3070
  }), !u && /* @__PURE__ */ v("button", {
3071
3071
  type: "button",
3072
- onClick: () => te(e.value),
3072
+ onClick: () => ne(e.value),
3073
3073
  className: "shrink-0 rounded text-slate-400 hover:text-slate-700",
3074
- children: /* @__PURE__ */ v(q, { size: 12 })
3074
+ children: /* @__PURE__ */ v(G, { size: 12 })
3075
3075
  })]
3076
- }, e.value)), B.length > 3 && /* @__PURE__ */ y("span", {
3076
+ }, e.value)), z.length > 3 && /* @__PURE__ */ y("span", {
3077
3077
  className: "shrink-0 rounded-full border border-slate-200 bg-white px-2 py-0.5 text-xs text-slate-500",
3078
- children: ["+", B.length - 3]
3078
+ children: ["+", z.length - 3]
3079
3079
  })]
3080
3080
  })]
3081
- }), B.length > 0 && !u && !d && /* @__PURE__ */ v("button", {
3081
+ }), z.length > 0 && !u && !d && /* @__PURE__ */ v("button", {
3082
3082
  type: "button",
3083
- onClick: ne,
3083
+ onClick: re,
3084
3084
  className: "shrink-0 text-xs font-medium text-slate-500 hover:text-slate-900",
3085
3085
  children: "Limpiar"
3086
3086
  })]
3087
3087
  }),
3088
- le ? /* @__PURE__ */ y("div", {
3088
+ ue ? /* @__PURE__ */ y("div", {
3089
3089
  className: "sf-search-table-select__prompt",
3090
3090
  role: "status",
3091
3091
  children: [
3092
3092
  /* @__PURE__ */ v("span", {
3093
3093
  className: "sf-search-table-select__prompt-icon",
3094
3094
  "aria-hidden": "true",
3095
- children: w ?? /* @__PURE__ */ v(Qe, { size: 28 })
3095
+ children: w ?? /* @__PURE__ */ v(q, { size: 28 })
3096
3096
  }),
3097
3097
  /* @__PURE__ */ v("p", {
3098
3098
  className: "sf-search-table-select__prompt-title",
@@ -3105,68 +3105,68 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3105
3105
  ]
3106
3106
  }) : /* @__PURE__ */ v("table", {
3107
3107
  className: "w-full table-fixed border-collapse text-sm",
3108
- children: /* @__PURE__ */ v("tbody", { children: ie.length ? /* @__PURE__ */ y(_, { children: [ie.map((e) => {
3109
- let t = z.includes(e.original.value);
3108
+ children: /* @__PURE__ */ v("tbody", { children: ae.length ? /* @__PURE__ */ y(_, { children: [ae.map((e) => {
3109
+ let t = R.includes(e.original.value);
3110
3110
  return /* @__PURE__ */ v("tr", {
3111
- onClick: () => ee(e.original.value),
3111
+ onClick: () => te(e.original.value),
3112
3112
  className: (0, X.default)("h-10 border-b border-slate-100 last:border-b-0", u || d ? "cursor-default" : "cursor-pointer hover:bg-slate-50", t && "bg-slate-50"),
3113
3113
  children: e.getVisibleCells().map((e) => /* @__PURE__ */ v("td", {
3114
3114
  className: (0, X.default)("px-3 py-2 align-middle text-slate-700", e.column.id === "selected" && "w-10"),
3115
3115
  children: T(e.column.columnDef.cell, e.getContext())
3116
3116
  }, e.id))
3117
3117
  }, e.id);
3118
- }), Array.from({ length: oe }).map((e, t) => /* @__PURE__ */ v("tr", {
3118
+ }), Array.from({ length: se }).map((e, t) => /* @__PURE__ */ v("tr", {
3119
3119
  className: "h-10 border-b border-slate-100 last:border-b-0",
3120
- children: Array.from({ length: ce }).map((e, t) => /* @__PURE__ */ v("td", {
3120
+ children: Array.from({ length: H }).map((e, t) => /* @__PURE__ */ v("td", {
3121
3121
  className: (0, X.default)("px-3 py-2 align-middle", t === 0 && "w-10"),
3122
3122
  children: "\xA0"
3123
3123
  }, t))
3124
3124
  }, `empty-${t}`))] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("tr", {
3125
3125
  className: "h-10 border-b border-slate-100",
3126
3126
  children: /* @__PURE__ */ v("td", {
3127
- colSpan: ce,
3127
+ colSpan: H,
3128
3128
  className: "px-3 py-3 text-sm text-slate-500",
3129
3129
  children: d ? "Cargando..." : l
3130
3130
  })
3131
3131
  }), Array.from({ length: Math.max(0, f - 1) }).map((e, t) => /* @__PURE__ */ v("tr", {
3132
3132
  className: "h-10 border-b border-slate-100 last:border-b-0",
3133
- children: Array.from({ length: ce }).map((e, t) => /* @__PURE__ */ v("td", {
3133
+ children: Array.from({ length: H }).map((e, t) => /* @__PURE__ */ v("td", {
3134
3134
  className: (0, X.default)("px-3 py-2 align-middle", t === 0 && "w-10"),
3135
3135
  children: "\xA0"
3136
3136
  }, t))
3137
3137
  }, `empty-${t}`))] }) })
3138
3138
  }),
3139
- !le && /* @__PURE__ */ y("div", {
3139
+ !ue && /* @__PURE__ */ y("div", {
3140
3140
  className: "flex items-center justify-between border-t border-slate-200 bg-slate-50/70 px-3 py-2",
3141
3141
  children: [/* @__PURE__ */ y("span", {
3142
3142
  className: "text-xs text-slate-500",
3143
3143
  children: [
3144
- ae,
3144
+ oe,
3145
3145
  " resultado",
3146
- ae === 1 ? "" : "s"
3146
+ oe === 1 ? "" : "s"
3147
3147
  ]
3148
3148
  }), /* @__PURE__ */ y("div", {
3149
3149
  className: "flex items-center gap-2",
3150
3150
  children: [
3151
3151
  /* @__PURE__ */ v("button", {
3152
3152
  type: "button",
3153
- disabled: u || d || !H.getCanPreviousPage(),
3154
- onClick: () => H.previousPage(),
3153
+ disabled: u || d || !V.getCanPreviousPage(),
3154
+ onClick: () => V.previousPage(),
3155
3155
  className: "rounded border border-slate-300 bg-white px-2 py-1 text-xs text-slate-700 disabled:cursor-not-allowed disabled:opacity-50",
3156
3156
  children: "Anterior"
3157
3157
  }),
3158
3158
  /* @__PURE__ */ y("span", {
3159
3159
  className: "text-xs text-slate-500",
3160
3160
  children: [
3161
- se,
3161
+ ce,
3162
3162
  " / ",
3163
- U
3163
+ le
3164
3164
  ]
3165
3165
  }),
3166
3166
  /* @__PURE__ */ v("button", {
3167
3167
  type: "button",
3168
- disabled: u || d || !H.getCanNextPage(),
3169
- onClick: () => H.nextPage(),
3168
+ disabled: u || d || !V.getCanNextPage(),
3169
+ onClick: () => V.nextPage(),
3170
3170
  className: "rounded border border-slate-300 bg-white px-2 py-1 text-xs text-slate-700 disabled:cursor-not-allowed disabled:opacity-50",
3171
3171
  children: "Siguiente"
3172
3172
  })
@@ -3558,7 +3558,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3558
3558
  //#endregion
3559
3559
  //#region node_modules/react-icons/md/index.mjs
3560
3560
  function Vn(e) {
3561
- return K({
3561
+ return W({
3562
3562
  tag: "svg",
3563
3563
  attr: { viewBox: "0 0 24 24" },
3564
3564
  child: [{
@@ -3576,7 +3576,7 @@ function Vn(e) {
3576
3576
  })(e);
3577
3577
  }
3578
3578
  function Hn(e) {
3579
- return K({
3579
+ return W({
3580
3580
  tag: "svg",
3581
3581
  attr: { viewBox: "0 0 24 24" },
3582
3582
  child: [{
@@ -3594,7 +3594,7 @@ function Hn(e) {
3594
3594
  })(e);
3595
3595
  }
3596
3596
  function Un(e) {
3597
- return K({
3597
+ return W({
3598
3598
  tag: "svg",
3599
3599
  attr: { viewBox: "0 0 24 24" },
3600
3600
  child: [{
@@ -3612,7 +3612,7 @@ function Un(e) {
3612
3612
  })(e);
3613
3613
  }
3614
3614
  function Wn(e) {
3615
- return K({
3615
+ return W({
3616
3616
  tag: "svg",
3617
3617
  attr: { viewBox: "0 0 24 24" },
3618
3618
  child: [{
@@ -3630,7 +3630,7 @@ function Wn(e) {
3630
3630
  })(e);
3631
3631
  }
3632
3632
  function Gn(e) {
3633
- return K({
3633
+ return W({
3634
3634
  tag: "svg",
3635
3635
  attr: { viewBox: "0 0 24 24" },
3636
3636
  child: [{
@@ -3648,7 +3648,7 @@ function Gn(e) {
3648
3648
  })(e);
3649
3649
  }
3650
3650
  function Kn(e) {
3651
- return K({
3651
+ return W({
3652
3652
  tag: "svg",
3653
3653
  attr: { viewBox: "0 0 24 24" },
3654
3654
  child: [{
@@ -3666,7 +3666,7 @@ function Kn(e) {
3666
3666
  })(e);
3667
3667
  }
3668
3668
  function qn(e) {
3669
- return K({
3669
+ return W({
3670
3670
  tag: "svg",
3671
3671
  attr: { viewBox: "0 0 24 24" },
3672
3672
  child: [{
@@ -3684,7 +3684,7 @@ function qn(e) {
3684
3684
  })(e);
3685
3685
  }
3686
3686
  function Jn(e) {
3687
- return K({
3687
+ return W({
3688
3688
  tag: "svg",
3689
3689
  attr: { viewBox: "0 0 24 24" },
3690
3690
  child: [{
@@ -3715,7 +3715,7 @@ var Yn = (e = window.localStorage) => ({
3715
3715
  //#endregion
3716
3716
  //#region node_modules/react-icons/gr/index.mjs
3717
3717
  function Xn(e) {
3718
- return K({
3718
+ return W({
3719
3719
  tag: "svg",
3720
3720
  attr: { viewBox: "0 0 24 24" },
3721
3721
  child: [{
@@ -3731,7 +3731,7 @@ function Xn(e) {
3731
3731
  })(e);
3732
3732
  }
3733
3733
  function Zn(e) {
3734
- return K({
3734
+ return W({
3735
3735
  tag: "svg",
3736
3736
  attr: { viewBox: "0 0 24 24" },
3737
3737
  child: [{
@@ -3843,7 +3843,7 @@ var Qn = /^[1-9]\d*\s*-\s*[1-9]\d*$/, $n = ({ limit: e, offset: t }, n) => n <=
3843
3843
  //#endregion
3844
3844
  //#region node_modules/react-icons/rx/index.mjs
3845
3845
  function tr(e) {
3846
- return K({
3846
+ return W({
3847
3847
  tag: "svg",
3848
3848
  attr: {
3849
3849
  viewBox: "0 0 15 15",
@@ -3860,7 +3860,7 @@ function tr(e) {
3860
3860
  })(e);
3861
3861
  }
3862
3862
  function nr(e) {
3863
- return K({
3863
+ return W({
3864
3864
  tag: "svg",
3865
3865
  attr: {
3866
3866
  viewBox: "0 0 15 15",
@@ -4531,42 +4531,42 @@ var xr = (e) => {
4531
4531
  for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
4532
4532
  return !0;
4533
4533
  };
4534
- function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGrouping: o = [], enableGrouping: s = !0, enableSorting: c = !0, enableFiltering: l = !0, enablePagination: d = !1, pageSize: f = 25, paginationVariant: g = "classic", pageSizeOptions: b, fillParentHeight: x = !1, maxBodyHeightPx: S, className: C = "", emptyMessage: w = "No hay datos", title: N = "Tabla", subtitle: P, sidePanel: F = !1, onGroupingChange: I, toolbarSlot: L, belowToolbarSlot: R, loading: z = !1, loadingMessage: B = "Cargando...", isFetching: V = !1, error: ee, onRetry: te, onRefresh: ne, onRowClick: re, enableRowSelection: H = !0, getRowActions: ie, getBulkActions: ae, bulkActionsSlot: oe, onSelectionChange: se, headerVariant: U = "default", searchPlaceholder: ce = "Buscar...", embedded: le = !1, detail: W, controller: ue }) {
4535
- let [de, fe] = h(o), [pe, me] = h(() => o.length > 0 ? {} : !0), [he, ge] = h([]), [_e, ve] = h(""), [ye, be] = h([]), [xe, Se] = h({}), [Ce, we] = h({}), [Te, G] = h(() => br(i).map((e) => e.id)), [Ee, De] = h({}), [Oe, ke] = h({
4534
+ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGrouping: o = [], enableGrouping: s = !0, enableSorting: c = !0, enableFiltering: l = !0, enablePagination: d = !1, pageSize: f = 25, paginationVariant: g = "classic", pageSizeOptions: b, serverPagination: x, fillParentHeight: S = !1, maxBodyHeightPx: C, className: w = "", emptyMessage: N = "No hay datos", title: P = "Tabla", subtitle: F, sidePanel: I = !1, onGroupingChange: L, toolbarSlot: ee, belowToolbarSlot: R, loading: z = !1, loadingMessage: B = "Cargando...", isFetching: te = !1, error: ne, onRetry: re, onRefresh: ie, onRowClick: V, enableRowSelection: ae = !0, getRowActions: oe, getBulkActions: se, bulkActionsSlot: ce, onSelectionChange: le, headerVariant: H = "default", searchPlaceholder: ue = "Buscar...", embedded: de = !1, detail: fe, controller: pe }) {
4535
+ let [me, he] = h(o), [ge, _e] = h(() => o.length > 0 ? {} : !0), [ve, ye] = h([]), [be, xe] = h(""), [Se, Ce] = h([]), [we, Te] = h({}), [Ee, De] = h({}), [U, Oe] = h(() => br(i).map((e) => e.id)), [ke, Ae] = h({}), [je, Me] = h({
4536
4536
  pageIndex: 0,
4537
4537
  pageSize: f
4538
- }), [Ae, je] = h(!1), [Me, Ne] = h(!1), [Pe, Fe] = h(!1), [Ie, Le] = h(null), [Re, ze] = h(!1), [Be, Ve] = h({}), He = W != null && (W.render != null || W.getRows != null && W.columns != null), Ue = (e) => He ? W?.isExpandable?.(e) ?? !0 : !1, We = (e, t) => {
4539
- let n = Be[e];
4538
+ }), Ne = d && !x, [Pe, Fe] = h(!1), [Ie, Le] = h(!1), [Re, ze] = h(!1), [Be, Ve] = h(null), [He, Ue] = h(!1), [We, Ge] = h({}), Ke = fe != null && (fe.render != null || fe.getRows != null && fe.columns != null), qe = (e) => Ke ? fe?.isExpandable?.(e) ?? !0 : !1, Je = (e, t) => {
4539
+ let n = We[e];
4540
4540
  if (n != null) return n;
4541
- let r = W?.defaultExpanded;
4541
+ let r = fe?.defaultExpanded;
4542
4542
  return typeof r == "function" ? r(t) : r === !0;
4543
- }, Ge = (e, t) => {
4544
- let n = !We(e, t);
4545
- Ve((t) => ({
4543
+ }, W = (e, t) => {
4544
+ let n = !Je(e, t);
4545
+ Ge((t) => ({
4546
4546
  ...t,
4547
4547
  [e]: n
4548
4548
  }));
4549
- }, Ke = p(() => {
4549
+ }, Ye = p(() => {
4550
4550
  let e = [];
4551
- return He && e.push("__detail"), H && e.push("__select"), ie && e.push("__actions"), e;
4551
+ return Ke && e.push("__detail"), ae && e.push("__select"), oe && e.push("__actions"), e;
4552
4552
  }, [
4553
- H,
4554
- ie,
4555
- He
4556
- ]), K = p(() => {
4553
+ ae,
4554
+ oe,
4555
+ Ke
4556
+ ]), G = p(() => {
4557
4557
  if (e) return t ?? Yn();
4558
- }, [e, t]), qe = m(!1), q = m(!1), Je = m(void 0), Ye = m(null), Xe = m(void 0), J = a ?? de, Ze = p(() => P ?? (!s || J.length === 0 ? null : `Agrupado por: ${J.join(" → ")}`), [
4559
- P,
4558
+ }, [e, t]), Xe = m(!1), K = m(!1), Ze = m(void 0), Qe = m(null), $e = m(void 0), q = a ?? me, et = p(() => F ?? (!s || q.length === 0 ? null : `Agrupado por: ${q.join(" → ")}`), [
4559
+ F,
4560
4560
  s,
4561
- J
4562
- ]), Qe = U === "brand", $e = U === "soft" || U === "neon" || U === "premium" || U === "matrix", et = $e ? `sf-table__head--${U}` : void 0, tt = $e ? `sf-table--${U}-header` : void 0, nt = $e ? `sf-table__th--${U}` : void 0, rt = p(() => br(i).map((e) => ({
4561
+ q
4562
+ ]), tt = H === "brand", nt = H === "soft" || H === "neon" || H === "premium" || H === "matrix", rt = nt ? `sf-table__head--${H}` : void 0, it = nt ? `sf-table--${H}-header` : void 0, at = nt ? `sf-table__th--${H}` : void 0, ot = p(() => br(i).map((e) => ({
4563
4563
  id: e.id,
4564
4564
  headerLabel: gr(e.header, e.id)
4565
- })).filter((e) => !!e), [i]), it = p(() => {
4565
+ })).filter((e) => !!e), [i]), st = p(() => {
4566
4566
  let e = /* @__PURE__ */ new Map();
4567
- for (let t of rt) e.set(t.id, t.headerLabel);
4567
+ for (let t of ot) e.set(t.id, t.headerLabel);
4568
4568
  return e;
4569
- }, [rt]), at = p(() => {
4569
+ }, [ot]), ct = p(() => {
4570
4570
  let e = /* @__PURE__ */ new Map(), t = br(i);
4571
4571
  for (let n of t) {
4572
4572
  let t = n.id, i = "string";
@@ -4580,15 +4580,15 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4580
4580
  e.set(t, i);
4581
4581
  }
4582
4582
  return e;
4583
- }, [i, r]), ot = p(() => yr(i, Ee), [Ee, i]), st = p(() => {
4583
+ }, [i, r]), lt = p(() => yr(i, ke), [ke, i]), ut = p(() => {
4584
4584
  let e = [];
4585
- return He && e.push("__detail"), H && e.push("__select"), e.push(...Te), ie && e.push("__actions"), e;
4585
+ return Ke && e.push("__detail"), ae && e.push("__select"), e.push(...U), oe && e.push("__actions"), e;
4586
4586
  }, [
4587
- Te,
4588
- H,
4589
- ie,
4590
- He
4591
- ]), ct = p(() => {
4587
+ U,
4588
+ ae,
4589
+ oe,
4590
+ Ke
4591
+ ]), dt = p(() => {
4592
4592
  let e = {
4593
4593
  id: "__select",
4594
4594
  size: 44,
@@ -4614,7 +4614,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4614
4614
  },
4615
4615
  onChange: e.getToggleSelectedHandler()
4616
4616
  })
4617
- }, t = ie == null ? null : {
4617
+ }, t = oe == null ? null : {
4618
4618
  id: "__actions",
4619
4619
  size: 36,
4620
4620
  enableSorting: !1,
@@ -4622,17 +4622,17 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4622
4622
  enableHiding: !1,
4623
4623
  header: () => null,
4624
4624
  cell: ({ row: e }) => {
4625
- let t = ie(e.original);
4625
+ let t = oe(e.original);
4626
4626
  if (!t || t.length === 0) return null;
4627
4627
  let n = e.id;
4628
4628
  return /* @__PURE__ */ v(hr, {
4629
4629
  row: e.original,
4630
4630
  actions: t,
4631
- open: Ie === n,
4632
- onOpenChange: (e) => Le(e ? n : null)
4631
+ open: Be === n,
4632
+ onOpenChange: (e) => Ve(e ? n : null)
4633
4633
  });
4634
4634
  }
4635
- }, n = He ? {
4635
+ }, n = Ke ? {
4636
4636
  id: "__detail",
4637
4637
  size: 40,
4638
4638
  enableSorting: !1,
@@ -4640,14 +4640,14 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4640
4640
  enableHiding: !1,
4641
4641
  header: () => null,
4642
4642
  cell: ({ row: e }) => {
4643
- if (e.getIsGrouped() || !Ue(e.original)) return null;
4644
- let t = We(e.id, e.original);
4643
+ if (e.getIsGrouped() || !qe(e.original)) return null;
4644
+ let t = Je(e.id, e.original);
4645
4645
  return /* @__PURE__ */ v("button", {
4646
4646
  type: "button",
4647
4647
  className: "sf-table-detail-toggle",
4648
4648
  "aria-expanded": t,
4649
4649
  "aria-label": t ? "Contraer detalle" : "Expandir detalle",
4650
- onClick: () => Ge(e.id, e.original),
4650
+ onClick: () => W(e.id, e.original),
4651
4651
  children: /* @__PURE__ */ v(t ? Gn : Wn, {
4652
4652
  className: "h-4 w-4",
4653
4653
  "aria-hidden": "true"
@@ -4657,39 +4657,39 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4657
4657
  } : null;
4658
4658
  return [
4659
4659
  ...n ? [n] : [],
4660
- ...H ? [e] : [],
4661
- ...ot,
4660
+ ...ae ? [e] : [],
4661
+ ...lt,
4662
4662
  ...t ? [t] : []
4663
4663
  ];
4664
4664
  }, [
4665
- ot,
4666
- H,
4667
- ie,
4668
- Ie,
4669
- He,
4665
+ lt,
4666
+ ae,
4667
+ oe,
4670
4668
  Be,
4671
- W
4672
- ]), lt = p(() => {
4673
- let e = Object.entries(Ee).sort(([e], [t]) => e.localeCompare(t));
4669
+ Ke,
4670
+ We,
4671
+ fe
4672
+ ]), ft = p(() => {
4673
+ let e = Object.entries(ke).sort(([e], [t]) => e.localeCompare(t));
4674
4674
  return JSON.stringify(e);
4675
- }, [Ee]), ut = p(() => {
4675
+ }, [ke]), pt = p(() => {
4676
4676
  if (s) return k();
4677
- }, [s, lt]);
4677
+ }, [s, ft]);
4678
4678
  u(() => {
4679
- if (!e || !K) return;
4679
+ if (!e || !G) return;
4680
4680
  let t = !1;
4681
4681
  return (async () => {
4682
- let n = await K.getItem(_r(e));
4682
+ let n = await G.getItem(_r(e));
4683
4683
  if (t || !n) {
4684
- qe.current = !0;
4684
+ Xe.current = !0;
4685
4685
  return;
4686
4686
  }
4687
4687
  try {
4688
4688
  let e = JSON.parse(n);
4689
- if (q.current) return;
4690
- a == null && Array.isArray(e.grouping) && fe(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? me({}) : me(e.expanded)), e.sorting && ge(e.sorting), typeof e.globalFilter == "string" && ve(e.globalFilter), e.columnFilters && be(e.columnFilters), e.columnVisibility && Se(e.columnVisibility), e.columnOrder && G(e.columnOrder), e.columnAggregations && De(e.columnAggregations);
4689
+ if (K.current) return;
4690
+ a == null && Array.isArray(e.grouping) && he(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? _e({}) : _e(e.expanded)), e.sorting && ye(e.sorting), typeof e.globalFilter == "string" && xe(e.globalFilter), e.columnFilters && Ce(e.columnFilters), e.columnVisibility && Te(e.columnVisibility), e.columnOrder && Oe(e.columnOrder), e.columnAggregations && Ae(e.columnAggregations);
4691
4691
  } finally {
4692
- qe.current = !0;
4692
+ Xe.current = !0;
4693
4693
  }
4694
4694
  })(), () => {
4695
4695
  t = !0;
@@ -4697,187 +4697,187 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4697
4697
  }, [
4698
4698
  a,
4699
4699
  e,
4700
- K
4700
+ G
4701
4701
  ]), u(() => {
4702
4702
  let e = br(i).map((e) => e.id);
4703
- G((t) => {
4703
+ Oe((t) => {
4704
4704
  let n = t.filter((t) => e.includes(t));
4705
4705
  for (let t of e) n.includes(t) || n.push(t);
4706
4706
  return n;
4707
4707
  });
4708
4708
  }, [i]), u(() => {
4709
- if (!e || !K || !qe.current) return;
4709
+ if (!e || !G || !Xe.current) return;
4710
4710
  let t = {
4711
- grouping: a == null ? J : void 0,
4712
- expanded: pe,
4713
- sorting: he,
4714
- globalFilter: _e,
4715
- columnFilters: ye,
4716
- columnVisibility: xe,
4717
- columnOrder: Te,
4718
- columnAggregations: Ee
4711
+ grouping: a == null ? q : void 0,
4712
+ expanded: ge,
4713
+ sorting: ve,
4714
+ globalFilter: be,
4715
+ columnFilters: Se,
4716
+ columnVisibility: we,
4717
+ columnOrder: U,
4718
+ columnAggregations: ke
4719
4719
  };
4720
- return window.clearTimeout(Je.current), Je.current = window.setTimeout(() => {
4721
- K.setItem(_r(e), JSON.stringify(t)).catch(() => {});
4720
+ return window.clearTimeout(Ze.current), Ze.current = window.setTimeout(() => {
4721
+ G.setItem(_r(e), JSON.stringify(t)).catch(() => {});
4722
4722
  }, 250), () => {
4723
- window.clearTimeout(Je.current);
4723
+ window.clearTimeout(Ze.current);
4724
4724
  };
4725
4725
  }, [
4726
- ye,
4727
- Ee,
4728
- Te,
4729
- xe,
4730
- pe,
4731
- _e,
4726
+ Se,
4727
+ ke,
4728
+ U,
4729
+ we,
4730
+ ge,
4731
+ be,
4732
4732
  a,
4733
4733
  e,
4734
- J,
4735
- K,
4736
- he
4734
+ q,
4735
+ G,
4736
+ ve
4737
4737
  ]);
4738
- let Y = M({
4738
+ let J = M({
4739
4739
  data: r,
4740
- columns: ct,
4740
+ columns: dt,
4741
4741
  debugTable: !1,
4742
4742
  state: {
4743
- grouping: J,
4744
- expanded: pe,
4745
- sorting: he,
4746
- globalFilter: _e,
4747
- columnFilters: ye,
4748
- columnVisibility: xe,
4749
- columnOrder: st,
4750
- pagination: Oe,
4751
- rowSelection: Ce
4743
+ grouping: q,
4744
+ expanded: ge,
4745
+ sorting: ve,
4746
+ globalFilter: be,
4747
+ columnFilters: Se,
4748
+ columnVisibility: we,
4749
+ columnOrder: ut,
4750
+ pagination: je,
4751
+ rowSelection: Ee
4752
4752
  },
4753
4753
  onGroupingChange: (e) => {
4754
- q.current = !0;
4755
- let t = typeof e == "function" ? e(J) : e;
4756
- fe((e) => Cr(e, t) ? e : t), Cr(J, t) || I?.(t);
4754
+ K.current = !0;
4755
+ let t = typeof e == "function" ? e(q) : e;
4756
+ he((e) => Cr(e, t) ? e : t), Cr(q, t) || L?.(t);
4757
4757
  },
4758
4758
  onExpandedChange: (e) => {
4759
- q.current = !0, me(e);
4759
+ K.current = !0, _e(e);
4760
4760
  },
4761
4761
  onSortingChange: (e) => {
4762
- q.current = !0, ge(e);
4762
+ K.current = !0, ye(e);
4763
4763
  },
4764
4764
  onGlobalFilterChange: (e) => {
4765
- q.current = !0, ve(e);
4765
+ K.current = !0, xe(e);
4766
4766
  },
4767
4767
  onColumnFiltersChange: (e) => {
4768
- q.current = !0, be(e);
4768
+ K.current = !0, Ce(e);
4769
4769
  },
4770
4770
  onColumnVisibilityChange: (e) => {
4771
- q.current = !0, Se(e);
4771
+ K.current = !0, Te(e);
4772
4772
  },
4773
4773
  onRowSelectionChange: (e) => {
4774
- q.current = !0, we(e);
4774
+ K.current = !0, De(e);
4775
4775
  },
4776
4776
  onColumnOrderChange: (e) => {
4777
- q.current = !0;
4778
- let t = (typeof e == "function" ? e(st) : e).filter((e) => !Ke.includes(e));
4779
- G(t);
4777
+ K.current = !0;
4778
+ let t = (typeof e == "function" ? e(ut) : e).filter((e) => !Ye.includes(e));
4779
+ Oe(t);
4780
4780
  },
4781
4781
  onPaginationChange: (e) => {
4782
- ke(e);
4782
+ Me(e);
4783
4783
  },
4784
4784
  autoResetExpanded: !1,
4785
4785
  autoResetPageIndex: !1,
4786
4786
  enableGrouping: s,
4787
4787
  enableSorting: c,
4788
- paginateExpandedRows: J.length === 0,
4788
+ paginateExpandedRows: q.length === 0,
4789
4789
  groupedColumnMode: "reorder",
4790
4790
  getCoreRowModel: E(),
4791
4791
  getFilteredRowModel: l ? O() : void 0,
4792
- getGroupedRowModel: ut,
4792
+ getGroupedRowModel: pt,
4793
4793
  getSortedRowModel: c ? j() : void 0,
4794
4794
  getExpandedRowModel: D(),
4795
4795
  getSubRows: (e) => e.subRows,
4796
- getPaginationRowModel: d ? A() : void 0,
4796
+ getPaginationRowModel: Ne ? A() : void 0,
4797
4797
  filterFns: { columnFilter: fr },
4798
- enableRowSelection: H
4798
+ enableRowSelection: ae
4799
4799
  });
4800
- Ye.current = Y;
4801
- let dt = d ? Y.getPrePaginationRowModel().rows.length : 0;
4800
+ Qe.current = J;
4801
+ let mt = Ne ? J.getPrePaginationRowModel().rows.length : 0;
4802
4802
  u(() => {
4803
- if (!d) return;
4804
- let e = Math.max(0, Math.ceil(dt / Math.max(1, Oe.pageSize)) - 1);
4805
- Oe.pageIndex > e && ke((t) => ({
4803
+ if (!Ne) return;
4804
+ let e = Math.max(0, Math.ceil(mt / Math.max(1, je.pageSize)) - 1);
4805
+ je.pageIndex > e && Me((t) => ({
4806
4806
  ...t,
4807
4807
  pageIndex: e
4808
4808
  }));
4809
4809
  }, [
4810
- d,
4811
- dt,
4812
- Oe.pageIndex,
4813
- Oe.pageSize
4810
+ Ne,
4811
+ mt,
4812
+ je.pageIndex,
4813
+ je.pageSize
4814
4814
  ]);
4815
- let ft = Y.getSelectedRowModel().flatRows.map((e) => e.original);
4815
+ let Y = J.getSelectedRowModel().flatRows.map((e) => e.original);
4816
4816
  return u(() => {
4817
- ft.length === 0 && ze(!1);
4818
- }, [ft.length]), u(() => {
4819
- Y.setOptions((e) => ({
4817
+ Y.length === 0 && Ue(!1);
4818
+ }, [Y.length]), u(() => {
4819
+ J.setOptions((e) => ({
4820
4820
  ...e,
4821
- columns: ct
4821
+ columns: dt
4822
4822
  }));
4823
4823
  }, [
4824
- ct,
4825
- Y,
4826
- lt
4824
+ dt,
4825
+ J,
4826
+ ft
4827
4827
  ]), u(() => {
4828
- se?.(Y.getSelectedRowModel().flatRows.map((e) => e.original));
4828
+ le?.(J.getSelectedRowModel().flatRows.map((e) => e.original));
4829
4829
  }, [
4830
- se,
4831
- Ce,
4832
- Y
4830
+ le,
4831
+ Ee,
4832
+ J
4833
4833
  ]), u(() => {
4834
- ue && ue.register({
4834
+ pe && pe.register({
4835
4835
  selection: {
4836
4836
  selectRowFn: (e) => {
4837
4837
  let t = Array.isArray(e) ? e : [e];
4838
4838
  for (let e of t) {
4839
- let t = Y.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4839
+ let t = J.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4840
4840
  t && t.toggleSelected(!0);
4841
4841
  }
4842
4842
  },
4843
4843
  cleanSelectionFn: () => {
4844
- Y.resetRowSelection();
4844
+ J.resetRowSelection();
4845
4845
  },
4846
- getSelectedRowsFn: () => Y.getSelectedRowModel().flatRows.map((e) => e.original)
4846
+ getSelectedRowsFn: () => J.getSelectedRowModel().flatRows.map((e) => e.original)
4847
4847
  },
4848
4848
  row: {
4849
4849
  selectRowFn: (e) => {
4850
- Xe.current = e, Y.resetRowSelection();
4851
- let t = Y.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4850
+ $e.current = e, J.resetRowSelection();
4851
+ let t = J.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4852
4852
  t && t.toggleSelected(!0);
4853
4853
  },
4854
4854
  cleanSelectionFn: () => {
4855
- Xe.current = void 0, Y.resetRowSelection();
4855
+ $e.current = void 0, J.resetRowSelection();
4856
4856
  },
4857
- getSelectedRowFn: () => Xe.current
4857
+ getSelectedRowFn: () => $e.current
4858
4858
  }
4859
4859
  });
4860
4860
  }, [
4861
- ue,
4862
- Ce,
4863
- Y
4861
+ pe,
4862
+ Ee,
4863
+ J
4864
4864
  ]), u(() => {
4865
- s && J.length !== 0 && Y.setGrouping(J);
4865
+ s && q.length !== 0 && J.setGrouping(q);
4866
4866
  }, [
4867
4867
  s,
4868
+ q,
4868
4869
  J,
4869
- Y,
4870
- lt
4870
+ ft
4871
4871
  ]), /* @__PURE__ */ y("div", {
4872
- className: x ? "flex h-full w-full min-h-0 flex-col" : "flex w-full min-h-0 flex-col",
4873
- style: x ? void 0 : { maxHeight: "100dvh" },
4872
+ className: S ? "flex h-full w-full min-h-0 flex-col" : "flex w-full min-h-0 flex-col",
4873
+ style: S ? void 0 : { maxHeight: "100dvh" },
4874
4874
  children: [
4875
- F && Ae && /* @__PURE__ */ y("div", {
4875
+ I && Pe && /* @__PURE__ */ y("div", {
4876
4876
  className: "fixed inset-0 z-50",
4877
4877
  children: [/* @__PURE__ */ v("button", {
4878
4878
  type: "button",
4879
4879
  "aria-label": "Cerrar panel",
4880
- onClick: () => je(!1),
4880
+ onClick: () => Fe(!1),
4881
4881
  className: "sf-table-panel-scrim"
4882
4882
  }), /* @__PURE__ */ y("aside", {
4883
4883
  className: "sf-table-panel",
@@ -4891,7 +4891,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4891
4891
  children: "Columns, Group By, Aggregations"
4892
4892
  })] }), /* @__PURE__ */ v("button", {
4893
4893
  type: "button",
4894
- onClick: () => je(!1),
4894
+ onClick: () => Fe(!1),
4895
4895
  className: "sf-table-panel__close",
4896
4896
  children: "Ocultar"
4897
4897
  })]
@@ -4905,8 +4905,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4905
4905
  children: "Columns"
4906
4906
  }), /* @__PURE__ */ v("div", {
4907
4907
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4908
- children: Te.map((e) => Y.getColumn(e)).filter(Boolean).map((e, t) => {
4909
- let n = e.id, r = e.getCanHide?.() ?? !0, i = e.getIsVisible(), a = it.get(n) ?? n;
4908
+ children: U.map((e) => J.getColumn(e)).filter(Boolean).map((e, t) => {
4909
+ let n = e.id, r = e.getCanHide?.() ?? !0, i = e.getIsVisible(), a = st.get(n) ?? n;
4910
4910
  return /* @__PURE__ */ y("div", {
4911
4911
  draggable: !0,
4912
4912
  onDragStart: (e) => {
@@ -4922,8 +4922,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4922
4922
  e.preventDefault();
4923
4923
  let r = xr(e);
4924
4924
  if (!r || r === n) return;
4925
- let i = Te.indexOf(r), a = t;
4926
- i !== -1 && Y.setColumnOrder(Sr(Te, i, a));
4925
+ let i = U.indexOf(r), a = t;
4926
+ i !== -1 && J.setColumnOrder(Sr(U, i, a));
4927
4927
  },
4928
4928
  className: "sf-table-column-row",
4929
4929
  children: [/* @__PURE__ */ y("span", {
@@ -4957,31 +4957,31 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4957
4957
  e.preventDefault();
4958
4958
  let t = xr(e);
4959
4959
  if (!t) return;
4960
- let n = Y.getColumn(t);
4960
+ let n = J.getColumn(t);
4961
4961
  if (!n || !n.getCanGroup()) return;
4962
4962
  n.getIsVisible() || n.toggleVisibility(!0);
4963
- let r = J.includes(t) ? J : [...J, t];
4964
- Y.setGrouping(r);
4963
+ let r = q.includes(t) ? q : [...q, t];
4964
+ J.setGrouping(r);
4965
4965
  },
4966
4966
  children: [/* @__PURE__ */ y("div", {
4967
4967
  className: "sf-table-panel-section-header",
4968
4968
  children: [/* @__PURE__ */ v("p", {
4969
4969
  className: "sf-table-panel__section-title",
4970
4970
  children: "Group By"
4971
- }), J.length > 0 && /* @__PURE__ */ v("button", {
4971
+ }), q.length > 0 && /* @__PURE__ */ v("button", {
4972
4972
  type: "button",
4973
- onClick: () => Y.resetGrouping(),
4973
+ onClick: () => J.resetGrouping(),
4974
4974
  className: "sf-table-panel-btn-sm",
4975
4975
  children: "Clear"
4976
4976
  })]
4977
4977
  }), /* @__PURE__ */ v("div", {
4978
4978
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4979
- children: J.length === 0 ? /* @__PURE__ */ v("div", {
4979
+ children: q.length === 0 ? /* @__PURE__ */ v("div", {
4980
4980
  className: "sf-table-panel-empty",
4981
4981
  children: "Arrastra columnas aquí"
4982
- }) : J.map((e) => {
4983
- if (!Y.getColumn(e)) return null;
4984
- let t = it.get(e) ?? e;
4982
+ }) : q.map((e) => {
4983
+ if (!J.getColumn(e)) return null;
4984
+ let t = st.get(e) ?? e;
4985
4985
  return /* @__PURE__ */ y("div", {
4986
4986
  className: "sf-table-panel-row",
4987
4987
  children: [/* @__PURE__ */ v("span", {
@@ -4989,7 +4989,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4989
4989
  children: t
4990
4990
  }), /* @__PURE__ */ v("button", {
4991
4991
  type: "button",
4992
- onClick: () => Y.setGrouping(J.filter((t) => t !== e)),
4992
+ onClick: () => J.setGrouping(q.filter((t) => t !== e)),
4993
4993
  className: "sf-table-panel-link",
4994
4994
  children: "Quitar"
4995
4995
  })]
@@ -5005,7 +5005,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5005
5005
  onDrop: (e) => {
5006
5006
  e.preventDefault();
5007
5007
  let t = xr(e);
5008
- t && Y.getColumn(t) && De((e) => (q.current = !0, e[t] ? e : {
5008
+ t && J.getColumn(t) && Ae((e) => (K.current = !0, e[t] ? e : {
5009
5009
  ...e,
5010
5010
  [t]: "sum"
5011
5011
  }));
@@ -5015,10 +5015,10 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5015
5015
  children: [/* @__PURE__ */ v("p", {
5016
5016
  className: "sf-table-panel__section-title",
5017
5017
  children: "Aggregations"
5018
- }), Object.keys(Ee).length > 0 && /* @__PURE__ */ v("button", {
5018
+ }), Object.keys(ke).length > 0 && /* @__PURE__ */ v("button", {
5019
5019
  type: "button",
5020
5020
  onClick: () => {
5021
- q.current = !0, De({});
5021
+ K.current = !0, Ae({});
5022
5022
  },
5023
5023
  className: "sf-table-panel-btn-sm",
5024
5024
  children: "Clear"
@@ -5028,21 +5028,21 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5028
5028
  children: [/* @__PURE__ */ v("p", {
5029
5029
  className: "sf-table-panel__subtitle",
5030
5030
  children: "Nota: solo se ve el resultado cuando la tabla está agrupada."
5031
- }), Object.keys(Ee).length === 0 ? /* @__PURE__ */ v("div", {
5031
+ }), Object.keys(ke).length === 0 ? /* @__PURE__ */ v("div", {
5032
5032
  className: "sf-table-panel-empty",
5033
5033
  children: "Arrastra columnas aquí"
5034
- }) : Object.entries(Ee).map(([e, t]) => /* @__PURE__ */ y("div", {
5034
+ }) : Object.entries(ke).map(([e, t]) => /* @__PURE__ */ y("div", {
5035
5035
  className: "sf-table-panel-row",
5036
5036
  children: [
5037
5037
  /* @__PURE__ */ v("span", {
5038
5038
  className: "min-w-0 flex-1 truncate",
5039
- children: it.get(e) ?? e
5039
+ children: st.get(e) ?? e
5040
5040
  }),
5041
5041
  /* @__PURE__ */ v("select", {
5042
5042
  value: t,
5043
5043
  onChange: (t) => {
5044
5044
  let n = t.target.value;
5045
- q.current = !0, De((t) => ({
5045
+ K.current = !0, Ae((t) => ({
5046
5046
  ...t,
5047
5047
  [e]: n
5048
5048
  }));
@@ -5055,8 +5055,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5055
5055
  }),
5056
5056
  /* @__PURE__ */ v("button", {
5057
5057
  type: "button",
5058
- onClick: () => De((t) => {
5059
- q.current = !0;
5058
+ onClick: () => Ae((t) => {
5059
+ K.current = !0;
5060
5060
  let n = { ...t };
5061
5061
  return delete n[e], n;
5062
5062
  }),
@@ -5071,70 +5071,70 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5071
5071
  })]
5072
5072
  })]
5073
5073
  }),
5074
- F && Me && /* @__PURE__ */ v(pr, {
5075
- open: Me,
5076
- onClose: () => Ne(!1),
5077
- columnsMeta: rt,
5078
- headerLabelById: it,
5079
- columnTypeById: at,
5080
- columnFilters: ye,
5081
- table: Y,
5074
+ I && Ie && /* @__PURE__ */ v(pr, {
5075
+ open: Ie,
5076
+ onClose: () => Le(!1),
5077
+ columnsMeta: ot,
5078
+ headerLabelById: st,
5079
+ columnTypeById: ct,
5080
+ columnFilters: Se,
5081
+ table: J,
5082
5082
  markUserEdit: () => {
5083
- q.current = !0;
5083
+ K.current = !0;
5084
5084
  }
5085
5085
  }),
5086
- F && Pe && /* @__PURE__ */ v(mr, {
5087
- open: Pe,
5088
- onClose: () => Fe(!1),
5089
- columnsMeta: rt,
5090
- headerLabelById: it,
5091
- sorting: he,
5092
- table: Y,
5086
+ I && Re && /* @__PURE__ */ v(mr, {
5087
+ open: Re,
5088
+ onClose: () => ze(!1),
5089
+ columnsMeta: ot,
5090
+ headerLabelById: st,
5091
+ sorting: ve,
5092
+ table: J,
5093
5093
  markUserEdit: () => {
5094
- q.current = !0;
5094
+ K.current = !0;
5095
5095
  }
5096
5096
  }),
5097
5097
  /* @__PURE__ */ y("div", {
5098
- className: (0, X.default)("flex min-h-0 flex-col", le ? "sf-table--embedded w-full" : "sf-table-shell w-full", C),
5098
+ className: (0, X.default)("flex min-h-0 flex-col", de ? "sf-table--embedded w-full" : "sf-table-shell w-full", w),
5099
5099
  children: [
5100
- !le && /* @__PURE__ */ y("div", {
5100
+ !de && /* @__PURE__ */ y("div", {
5101
5101
  className: "sf-table-toolbar",
5102
5102
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
5103
5103
  className: "sf-table-title",
5104
- children: N
5105
- }), Ze != null && Ze !== "" && /* @__PURE__ */ v("p", {
5104
+ children: P
5105
+ }), et != null && et !== "" && /* @__PURE__ */ v("p", {
5106
5106
  className: "sf-table-subtitle",
5107
- children: Ze
5107
+ children: et
5108
5108
  })] }), /* @__PURE__ */ y("div", {
5109
5109
  className: "sf-table-toolbar-actions",
5110
5110
  children: [
5111
- (V || ne) && /* @__PURE__ */ y("div", {
5111
+ (te || ie) && /* @__PURE__ */ y("div", {
5112
5112
  className: "flex items-center gap-2",
5113
- children: [V && /* @__PURE__ */ y("span", {
5113
+ children: [te && /* @__PURE__ */ y("span", {
5114
5114
  className: "sf-table-toolbar-status",
5115
5115
  children: [/* @__PURE__ */ v("span", {
5116
5116
  className: "sf-table-spinner sf-table-spinner--sm",
5117
5117
  "aria-hidden": "true"
5118
5118
  }), "Actualizando"]
5119
- }), ne && /* @__PURE__ */ v("button", {
5119
+ }), ie && /* @__PURE__ */ v("button", {
5120
5120
  type: "button",
5121
5121
  "aria-label": "Refrescar",
5122
5122
  className: "sf-table-toolbar-btn",
5123
- disabled: V,
5124
- onClick: ne,
5123
+ disabled: te,
5124
+ onClick: ie,
5125
5125
  children: /* @__PURE__ */ v(Vn, {
5126
5126
  className: "h-5 w-5",
5127
5127
  "aria-hidden": "true"
5128
5128
  })
5129
5129
  })]
5130
5130
  }),
5131
- F && /* @__PURE__ */ y("div", {
5131
+ I && /* @__PURE__ */ y("div", {
5132
5132
  className: "flex items-center gap-2",
5133
5133
  children: [
5134
5134
  /* @__PURE__ */ v("button", {
5135
5135
  type: "button",
5136
5136
  onClick: () => {
5137
- Ne(!1), Fe(!1), je(!0);
5137
+ Le(!1), ze(!1), Fe(!0);
5138
5138
  },
5139
5139
  "aria-label": "Abrir panel de tabla",
5140
5140
  className: "sf-table-toolbar-btn",
@@ -5146,7 +5146,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5146
5146
  l && /* @__PURE__ */ v("button", {
5147
5147
  type: "button",
5148
5148
  onClick: () => {
5149
- je(!1), Fe(!1), Ne(!0);
5149
+ Fe(!1), ze(!1), Le(!0);
5150
5150
  },
5151
5151
  "aria-label": "Abrir panel de filtros",
5152
5152
  className: "sf-table-toolbar-btn",
@@ -5158,7 +5158,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5158
5158
  c && /* @__PURE__ */ v("button", {
5159
5159
  type: "button",
5160
5160
  onClick: () => {
5161
- je(!1), Ne(!1), Fe(!0);
5161
+ Fe(!1), Le(!1), ze(!0);
5162
5162
  },
5163
5163
  "aria-label": "Abrir panel de ordenamiento",
5164
5164
  className: "sf-table-toolbar-btn",
@@ -5170,40 +5170,40 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5170
5170
  ]
5171
5171
  }),
5172
5172
  l && /* @__PURE__ */ v("input", {
5173
- value: _e,
5173
+ value: be,
5174
5174
  onChange: (e) => {
5175
- q.current = !0, ve(e.target.value);
5175
+ K.current = !0, xe(e.target.value);
5176
5176
  },
5177
- placeholder: ce,
5177
+ placeholder: ue,
5178
5178
  className: "sf-table-search"
5179
5179
  }),
5180
- s && J.length > 0 && /* @__PURE__ */ v("div", {
5180
+ s && q.length > 0 && /* @__PURE__ */ v("div", {
5181
5181
  className: "sf-table-group-hint",
5182
5182
  children: "Agrupado"
5183
5183
  }),
5184
- typeof L == "function" ? L(ft, { clearSelection: () => Y.resetRowSelection() }) : L,
5185
- H && ft.length > 0 && /* @__PURE__ */ y("div", {
5184
+ typeof ee == "function" ? ee(Y, { clearSelection: () => J.resetRowSelection() }) : ee,
5185
+ ae && Y.length > 0 && /* @__PURE__ */ y("div", {
5186
5186
  className: "flex items-center gap-2",
5187
5187
  children: [(() => {
5188
- let e = ae?.(ft, { clearSelection: () => Y.resetRowSelection() }) ?? [];
5188
+ let e = se?.(Y, { clearSelection: () => J.resetRowSelection() }) ?? [];
5189
5189
  return e.length === 0 ? null : /* @__PURE__ */ y("div", {
5190
5190
  className: "relative",
5191
5191
  children: [/* @__PURE__ */ v("button", {
5192
5192
  type: "button",
5193
5193
  "aria-label": "Acciones",
5194
5194
  className: "sf-table-row-action-trigger",
5195
- onClick: () => ze((e) => !e),
5195
+ onClick: () => Ue((e) => !e),
5196
5196
  children: /* @__PURE__ */ v(Hn, {
5197
5197
  className: "h-4 w-4",
5198
5198
  "aria-hidden": "true"
5199
5199
  })
5200
- }), Re && /* @__PURE__ */ v("div", {
5200
+ }), He && /* @__PURE__ */ v("div", {
5201
5201
  className: "sf-table-row-action-menu min-w-[12.5rem]",
5202
5202
  children: e.map((e) => /* @__PURE__ */ y("button", {
5203
5203
  type: "button",
5204
5204
  disabled: e.disabled,
5205
5205
  onClick: () => {
5206
- ze(!1), e.onSelect(ft, { clearSelection: () => Y.resetRowSelection() });
5206
+ Ue(!1), e.onSelect(Y, { clearSelection: () => J.resetRowSelection() });
5207
5207
  },
5208
5208
  children: [e.icon ? /* @__PURE__ */ v("span", {
5209
5209
  className: "sf-table-row-action-menu__icon",
@@ -5215,37 +5215,37 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5215
5215
  }, e.label))
5216
5216
  })]
5217
5217
  });
5218
- })(), oe?.(ft, { clearSelection: () => Y.resetRowSelection() })]
5218
+ })(), ce?.(Y, { clearSelection: () => J.resetRowSelection() })]
5219
5219
  })
5220
5220
  ]
5221
5221
  })]
5222
5222
  }),
5223
- ee != null && /* @__PURE__ */ y("div", {
5223
+ ne != null && /* @__PURE__ */ y("div", {
5224
5224
  className: "sf-table-error",
5225
- children: [/* @__PURE__ */ v("div", { children: ee }), te && /* @__PURE__ */ v("button", {
5225
+ children: [/* @__PURE__ */ v("div", { children: ne }), re && /* @__PURE__ */ v("button", {
5226
5226
  type: "button",
5227
5227
  className: "sf-table-error__retry",
5228
- onClick: te,
5228
+ onClick: re,
5229
5229
  children: "Reintentar"
5230
5230
  })]
5231
5231
  }),
5232
5232
  R != null && /* @__PURE__ */ v("div", {
5233
5233
  className: "mb-3",
5234
- children: typeof R == "function" ? R(ft, { clearSelection: () => Y.resetRowSelection() }) : R
5234
+ children: typeof R == "function" ? R(Y, { clearSelection: () => J.resetRowSelection() }) : R
5235
5235
  }),
5236
5236
  /* @__PURE__ */ v("div", {
5237
5237
  className: "flex min-h-0 flex-1 flex-col",
5238
- style: S == null ? x ? void 0 : { maxHeight: "100dvh" } : { maxHeight: S },
5238
+ style: C == null ? S ? void 0 : { maxHeight: "100dvh" } : { maxHeight: C },
5239
5239
  children: /* @__PURE__ */ v("div", {
5240
5240
  className: "sf-table-scroll min-h-0 flex-1",
5241
5241
  children: /* @__PURE__ */ y("table", {
5242
- className: (0, X.default)("sf-table min-w-max w-full border-collapse text-sm", Qe && "sf-table--brand-header", tt),
5242
+ className: (0, X.default)("sf-table min-w-max w-full border-collapse text-sm", tt && "sf-table--brand-header", it),
5243
5243
  children: [/* @__PURE__ */ v("thead", {
5244
- className: (0, X.default)(Qe && "sf-table__head--brand", et),
5245
- children: Y.getHeaderGroups().map((e) => /* @__PURE__ */ v("tr", { children: e.headers.map((e) => /* @__PURE__ */ v("th", {
5244
+ className: (0, X.default)(tt && "sf-table__head--brand", rt),
5245
+ children: J.getHeaderGroups().map((e) => /* @__PURE__ */ v("tr", { children: e.headers.map((e) => /* @__PURE__ */ v("th", {
5246
5246
  colSpan: e.colSpan,
5247
5247
  style: e.colSpan > 1 ? void 0 : { width: e.getSize() },
5248
- className: (0, X.default)(Qe && "sf-table__th--brand", nt, e.column.id === "__actions" && "right-0 z-2"),
5248
+ className: (0, X.default)(tt && "sf-table__th--brand", at, e.column.id === "__actions" && "right-0 z-2"),
5249
5249
  children: e.isPlaceholder ? null : /* @__PURE__ */ v("div", {
5250
5250
  className: "flex items-center gap-2",
5251
5251
  children: e.column.getCanSort() ? /* @__PURE__ */ y("button", {
@@ -5264,7 +5264,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5264
5264
  })
5265
5265
  }, e.id)) }, e.id))
5266
5266
  }), /* @__PURE__ */ v("tbody", { children: z ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5267
- colSpan: Y.getAllLeafColumns().length,
5267
+ colSpan: J.getAllLeafColumns().length,
5268
5268
  className: "sf-table-loading-cell",
5269
5269
  children: /* @__PURE__ */ y("div", {
5270
5270
  className: "sf-table-loading-cell__inner",
@@ -5273,16 +5273,16 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5273
5273
  "aria-hidden": "true"
5274
5274
  }), /* @__PURE__ */ v("span", { children: B })]
5275
5275
  })
5276
- }) }) : Y.getRowModel().rows.length === 0 ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5277
- colSpan: Y.getAllLeafColumns().length,
5276
+ }) }) : J.getRowModel().rows.length === 0 ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5277
+ colSpan: J.getAllLeafColumns().length,
5278
5278
  className: "sf-table-empty",
5279
- children: w
5280
- }) }) : /* @__PURE__ */ v(_, { children: Y.getRowModel().rows.map((e) => {
5281
- let t = He && !e.getIsGrouped() && Ue(e.original) && We(e.id, e.original);
5279
+ children: N
5280
+ }) }) : /* @__PURE__ */ v(_, { children: J.getRowModel().rows.map((e) => {
5281
+ let t = Ke && !e.getIsGrouped() && qe(e.original) && Je(e.id, e.original);
5282
5282
  return /* @__PURE__ */ y(n, { children: [/* @__PURE__ */ v("tr", {
5283
- className: (0, X.default)("sf-table-row", e.getIsGrouped() && "sf-table-row--group", re && !e.getIsGrouped() && "sf-table-row--clickable", t && "sf-table-row--detail-open"),
5284
- onClick: re && !e.getIsGrouped() ? (t) => {
5285
- t.target.closest("button, a, input, select, label, [role=\"button\"]") || re(e.original);
5283
+ className: (0, X.default)("sf-table-row", e.getIsGrouped() && "sf-table-row--group", V && !e.getIsGrouped() && "sf-table-row--clickable", t && "sf-table-row--detail-open"),
5284
+ onClick: V && !e.getIsGrouped() ? (t) => {
5285
+ t.target.closest("button, a, input, select, label, [role=\"button\"]") || V(e.original);
5286
5286
  } : void 0,
5287
5287
  children: e.getVisibleCells().map((t) => {
5288
5288
  let n = t.getIsGrouped(), r = t.getIsAggregated(), i = t.getIsPlaceholder();
@@ -5306,7 +5306,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5306
5306
  ]
5307
5307
  }) : r ? (() => {
5308
5308
  let e = t.column.id;
5309
- return Ee[e] == null ? null : T(t.column.columnDef.aggregatedCell ?? t.column.columnDef.cell, t.getContext());
5309
+ return ke[e] == null ? null : T(t.column.columnDef.aggregatedCell ?? t.column.columnDef.cell, t.getContext());
5310
5310
  })() : i ? null : T(t.column.columnDef.cell, t.getContext())
5311
5311
  }, t.id);
5312
5312
  })
@@ -5317,15 +5317,15 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5317
5317
  colSpan: e.getVisibleCells().length,
5318
5318
  children: /* @__PURE__ */ v("div", {
5319
5319
  className: "sf-table-detail-inner",
5320
- children: W?.render ? W.render(e.original) : /* @__PURE__ */ v(wr, {
5320
+ children: fe?.render ? fe.render(e.original) : /* @__PURE__ */ v(wr, {
5321
5321
  embedded: !0,
5322
- data: W?.getRows?.(e.original) ?? [],
5323
- columns: W?.columns ?? [],
5322
+ data: fe?.getRows?.(e.original) ?? [],
5323
+ columns: fe?.columns ?? [],
5324
5324
  enableRowSelection: !1,
5325
5325
  enableGrouping: !1,
5326
5326
  enableFiltering: !1,
5327
5327
  enableSorting: !1,
5328
- emptyMessage: W?.emptyMessage ?? "Sin detalle"
5328
+ emptyMessage: fe?.emptyMessage ?? "Sin detalle"
5329
5329
  })
5330
5330
  })
5331
5331
  })
@@ -5334,41 +5334,53 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5334
5334
  })
5335
5335
  })
5336
5336
  }),
5337
- d && g !== "legacy" && /* @__PURE__ */ v("div", {
5337
+ x && /* @__PURE__ */ v("div", {
5338
+ className: "sf-table-footer sf-table-footer--pages",
5339
+ children: /* @__PURE__ */ v(sr, {
5340
+ variant: g === "legacy" ? "classic" : g,
5341
+ totalItems: x.totalItems,
5342
+ page: x.page,
5343
+ pageSize: x.pageSize,
5344
+ pageSizeOptions: b,
5345
+ onPageChange: x.onPageChange,
5346
+ onPageSizeChange: x.onPageSizeChange
5347
+ })
5348
+ }),
5349
+ Ne && g !== "legacy" && /* @__PURE__ */ v("div", {
5338
5350
  className: "sf-table-footer sf-table-footer--pages",
5339
5351
  children: /* @__PURE__ */ v(sr, {
5340
5352
  variant: g,
5341
- totalItems: Y.getPrePaginationRowModel().rows.length,
5342
- page: Y.getState().pagination.pageIndex + 1,
5343
- pageSize: Y.getState().pagination.pageSize,
5353
+ totalItems: J.getPrePaginationRowModel().rows.length,
5354
+ page: J.getState().pagination.pageIndex + 1,
5355
+ pageSize: J.getState().pagination.pageSize,
5344
5356
  pageSizeOptions: b,
5345
- onPageChange: (e) => Y.setPageIndex(Math.max(0, e - 1)),
5357
+ onPageChange: (e) => J.setPageIndex(Math.max(0, e - 1)),
5346
5358
  onPageSizeChange: (e) => {
5347
- Y.setPageSize(Math.max(1, e)), Y.setPageIndex(0);
5359
+ J.setPageSize(Math.max(1, e)), J.setPageIndex(0);
5348
5360
  }
5349
5361
  })
5350
5362
  }),
5351
- d && g === "legacy" && /* @__PURE__ */ y("div", {
5363
+ Ne && g === "legacy" && /* @__PURE__ */ y("div", {
5352
5364
  className: "sf-table-footer",
5353
5365
  children: [/* @__PURE__ */ y("div", {
5354
5366
  className: "sf-table-footer__meta",
5355
5367
  children: [
5356
- Y.getState().pagination.pageIndex + 1,
5368
+ J.getState().pagination.pageIndex + 1,
5357
5369
  " / ",
5358
- Math.max(1, Y.getPageCount())
5370
+ Math.max(1, J.getPageCount())
5359
5371
  ]
5360
5372
  }), (() => {
5361
- let e = Y.getPrePaginationRowModel().rows.length, t = Y.getState().pagination.pageSize, n = {
5373
+ let e = J.getPrePaginationRowModel().rows.length, t = J.getState().pagination.pageSize, n = {
5362
5374
  totalItems: e,
5363
5375
  limitItems: t,
5364
- offsetItems: Y.getState().pagination.pageIndex * t
5376
+ offsetItems: J.getState().pagination.pageIndex * t
5365
5377
  };
5366
5378
  return /* @__PURE__ */ v(er, {
5367
5379
  pageData: n,
5368
5380
  maxItemsRange: Math.max(1, e),
5369
5381
  onChange: (e, t) => {
5370
5382
  let n = Math.max(1, e), r = Math.floor(Math.max(0, t) / n);
5371
- Y.setPageSize(n), Y.setPageIndex(r);
5383
+ J.setPageSize(n), J.setPageIndex(r);
5372
5384
  }
5373
5385
  });
5374
5386
  })()]
@@ -5945,7 +5957,7 @@ var Er = (e) => {
5945
5957
  "aria-busy": i || void 0,
5946
5958
  className: (0, X.default)("sf-toolbar-btn", t ? "sf-toolbar-btn--sm" : "sf-toolbar-btn--md", e ? "sf-toolbar-btn--selected" : "sf-toolbar-btn--idle", o),
5947
5959
  ...c,
5948
- children: [i ? /* @__PURE__ */ v(ot, {
5960
+ children: [i ? /* @__PURE__ */ v(st, {
5949
5961
  className: (0, X.default)("animate-spin", t ? "h-3.5 w-3.5" : "h-4 w-4"),
5950
5962
  "aria-hidden": "true"
5951
5963
  }) : /* @__PURE__ */ v("span", {
@@ -5965,7 +5977,7 @@ var Er = (e) => {
5965
5977
  "aria-label": r,
5966
5978
  title: r,
5967
5979
  className: "sf-row-action sf-row-action--edit",
5968
- children: /* @__PURE__ */ v(dt, {
5980
+ children: /* @__PURE__ */ v(pt, {
5969
5981
  className: "h-4 w-4",
5970
5982
  "aria-hidden": "true"
5971
5983
  })
@@ -5976,7 +5988,7 @@ var Er = (e) => {
5976
5988
  "aria-label": i,
5977
5989
  title: i,
5978
5990
  className: "sf-row-action sf-row-action--delete",
5979
- children: /* @__PURE__ */ v(Xe, {
5991
+ children: /* @__PURE__ */ v(Ze, {
5980
5992
  className: "h-4 w-4",
5981
5993
  "aria-hidden": "true"
5982
5994
  })
@@ -5987,7 +5999,7 @@ var Er = (e) => {
5987
5999
  type: "button",
5988
6000
  variant: "outline",
5989
6001
  loading: i,
5990
- icon: i ? void 0 : /* @__PURE__ */ v(q, {
6002
+ icon: i ? void 0 : /* @__PURE__ */ v(G, {
5991
6003
  className: "h-4 w-4",
5992
6004
  "aria-hidden": "true"
5993
6005
  }),
@@ -5996,7 +6008,7 @@ var Er = (e) => {
5996
6008
  }), !o && /* @__PURE__ */ v($, {
5997
6009
  type: "button",
5998
6010
  loading: a,
5999
- icon: a ? void 0 : /* @__PURE__ */ v($e, {
6011
+ icon: a ? void 0 : /* @__PURE__ */ v(et, {
6000
6012
  className: "h-4 w-4",
6001
6013
  "aria-hidden": "true"
6002
6014
  }),
@@ -6041,7 +6053,7 @@ var Er = (e) => {
6041
6053
  "aria-busy": t || void 0,
6042
6054
  className: (0, X.default)(Jr[i], a),
6043
6055
  ...s,
6044
- children: [e, t ? /* @__PURE__ */ v(ot, {
6056
+ children: [e, t ? /* @__PURE__ */ v(st, {
6045
6057
  className: "h-3.5 w-3.5 animate-spin",
6046
6058
  "aria-hidden": "true"
6047
6059
  }) : r]
@@ -6203,7 +6215,7 @@ var Er = (e) => {
6203
6215
  onClick: i,
6204
6216
  disabled: !i,
6205
6217
  className: "sf-retry-block__retry",
6206
- children: [/* @__PURE__ */ v(et, {
6218
+ children: [/* @__PURE__ */ v(tt, {
6207
6219
  className: "h-8 w-8",
6208
6220
  "aria-hidden": "true"
6209
6221
  }), /* @__PURE__ */ v("span", {
@@ -6408,7 +6420,7 @@ var Er = (e) => {
6408
6420
  onClick: t,
6409
6421
  "aria-label": "Cerrar",
6410
6422
  className: "sf-modal-close",
6411
- children: /* @__PURE__ */ v(q, {
6423
+ children: /* @__PURE__ */ v(G, {
6412
6424
  className: "h-5 w-5",
6413
6425
  "aria-hidden": "true"
6414
6426
  })
@@ -6472,7 +6484,7 @@ var Er = (e) => {
6472
6484
  })
6473
6485
  }), yi = {
6474
6486
  info: {
6475
- icon: /* @__PURE__ */ v(ct, {
6487
+ icon: /* @__PURE__ */ v(lt, {
6476
6488
  className: "h-6 w-6",
6477
6489
  "aria-hidden": "true"
6478
6490
  }),
@@ -6843,7 +6855,7 @@ var Er = (e) => {
6843
6855
  onClick: t,
6844
6856
  "aria-label": "Cerrar",
6845
6857
  className: "sf-drawer__close",
6846
- children: /* @__PURE__ */ v(q, {
6858
+ children: /* @__PURE__ */ v(G, {
6847
6859
  className: "h-5 w-5",
6848
6860
  "aria-hidden": "true"
6849
6861
  })
@@ -7132,7 +7144,7 @@ var Er = (e) => {
7132
7144
  onClick: r,
7133
7145
  "aria-label": "Cerrar panel",
7134
7146
  className: "sf-side-panel__close",
7135
- children: /* @__PURE__ */ v(q, {
7147
+ children: /* @__PURE__ */ v(G, {
7136
7148
  className: "h-4 w-4",
7137
7149
  "aria-hidden": "true"
7138
7150
  })
@@ -7509,7 +7521,7 @@ var Er = (e) => {
7509
7521
  }, n.key);
7510
7522
  })
7511
7523
  });
7512
- }, ba = /* @__PURE__ */ v(mt, { "aria-hidden": "true" }), xa = ({ steps: e, activeKey: t, defaultActiveKey: n, onActiveKeyChange: r, onFinish: i, nextLabel: a = "Siguiente", prevLabel: o = "Anterior", finishLabel: c = "Finalizar", showStepProgress: l = !1, stepperVariant: u = "default", footerVariant: d = "default", hidePrevOnFirst: f = !0, nextIcon: m = ba, primaryVariant: g = "primary", orientation: _ = "horizontal" }) => {
7524
+ }, ba = /* @__PURE__ */ v(Y, { "aria-hidden": "true" }), xa = ({ steps: e, activeKey: t, defaultActiveKey: n, onActiveKeyChange: r, onFinish: i, nextLabel: a = "Siguiente", prevLabel: o = "Anterior", finishLabel: c = "Finalizar", showStepProgress: l = !1, stepperVariant: u = "default", footerVariant: d = "default", hidePrevOnFirst: f = !0, nextIcon: m = ba, primaryVariant: g = "primary", orientation: _ = "horizontal" }) => {
7513
7525
  let b = e[0]?.key ?? "", [x, S] = h(n ?? b), [C, w] = h(/* @__PURE__ */ new Set()), [T, E] = h(!1), D = t ?? x, O = s((e) => {
7514
7526
  t === void 0 && S(e), r?.(e);
7515
7527
  }, [t, r]), k = p(() => Math.max(0, e.findIndex((e) => e.key === D)), [D, e]), A = e[k], j = k === 0, M = k === e.length - 1, N = p(() => e.map((e, t) => {
@@ -7758,7 +7770,7 @@ var Er = (e) => {
7758
7770
  children: [
7759
7771
  n && /* @__PURE__ */ y("div", {
7760
7772
  className: "sf-maestro-layout__search",
7761
- children: [/* @__PURE__ */ v(Qe, {
7773
+ children: [/* @__PURE__ */ v(q, {
7762
7774
  className: "sf-maestro-layout__search-icon",
7763
7775
  "aria-hidden": "true"
7764
7776
  }), /* @__PURE__ */ v(ka, {
@@ -7772,7 +7784,7 @@ var Er = (e) => {
7772
7784
  i && /* @__PURE__ */ v($, {
7773
7785
  type: "button",
7774
7786
  size: "sm",
7775
- icon: /* @__PURE__ */ v(tt, { "aria-hidden": "true" }),
7787
+ icon: /* @__PURE__ */ v(nt, { "aria-hidden": "true" }),
7776
7788
  onClick: i,
7777
7789
  children: a
7778
7790
  })
@@ -7800,7 +7812,7 @@ var Er = (e) => {
7800
7812
  left: `${12 + n / Math.max(e.length - 1, 1) * 76}%`,
7801
7813
  top: n % 2 == 0 ? "38%" : "58%"
7802
7814
  },
7803
- children: [/* @__PURE__ */ v(at, {}), /* @__PURE__ */ y("span", { children: [
7815
+ children: [/* @__PURE__ */ v(ot, {}), /* @__PURE__ */ y("span", { children: [
7804
7816
  t.order,
7805
7817
  ". ",
7806
7818
  t.name
@@ -7887,7 +7899,7 @@ var Er = (e) => {
7887
7899
  className: "sf-itinerary-editor__stop-remove",
7888
7900
  "aria-label": `Eliminar parada ${e.name}`,
7889
7901
  onClick: e.onRemove,
7890
- children: /* @__PURE__ */ v(Xe, { "aria-hidden": "true" })
7902
+ children: /* @__PURE__ */ v(Ze, { "aria-hidden": "true" })
7891
7903
  })]
7892
7904
  })]
7893
7905
  })
@@ -8820,7 +8832,7 @@ var Er = (e) => {
8820
8832
  }, F = !!g || !!_ || !!b || !!C || !!x || !!S, I = S ? S.initials ?? xo(S.fullName) : "", L = (e) => {
8821
8833
  let t = e.items.find((e) => !e.hidden);
8822
8834
  t && (r(t.id), N(!1));
8823
- }, R = /* @__PURE__ */ y("div", {
8835
+ }, ee = /* @__PURE__ */ y("div", {
8824
8836
  className: "sf-app-shell-default-topbar",
8825
8837
  children: [/* @__PURE__ */ y("div", {
8826
8838
  className: "sf-app-shell-default-topbar__left",
@@ -8858,7 +8870,7 @@ var Er = (e) => {
8858
8870
  className: "sf-app-shell-default-topbar__icon-btn",
8859
8871
  "aria-label": _.mode === "dark" ? "Cambiar a modo claro" : "Cambiar a modo oscuro",
8860
8872
  onClick: _.onToggle,
8861
- children: _.mode === "dark" ? /* @__PURE__ */ v(J, { "aria-hidden": "true" }) : /* @__PURE__ */ v(nt, { "aria-hidden": "true" })
8873
+ children: _.mode === "dark" ? /* @__PURE__ */ v(Qe, { "aria-hidden": "true" }) : /* @__PURE__ */ v(rt, { "aria-hidden": "true" })
8862
8874
  }),
8863
8875
  b && /* @__PURE__ */ v(Ii, {
8864
8876
  className: "sf-app-shell-default-topbar__notification",
@@ -8870,7 +8882,7 @@ var Er = (e) => {
8870
8882
  className: "sf-app-shell-default-topbar__icon-btn",
8871
8883
  "aria-label": C.ariaLabel ?? "Información",
8872
8884
  onClick: C.onClick,
8873
- children: C.icon ?? /* @__PURE__ */ v(ct, { "aria-hidden": "true" })
8885
+ children: C.icon ?? /* @__PURE__ */ v(lt, { "aria-hidden": "true" })
8874
8886
  }),
8875
8887
  x && /* @__PURE__ */ v(Ci, {
8876
8888
  align: "end",
@@ -8907,7 +8919,7 @@ var Er = (e) => {
8907
8919
  children: [/* @__PURE__ */ v("span", {
8908
8920
  className: "sf-app-shell-module-launcher__item-icon",
8909
8921
  "aria-hidden": "true",
8910
- children: e.icon ?? /* @__PURE__ */ v(lt, {})
8922
+ children: e.icon ?? /* @__PURE__ */ v(ut, {})
8911
8923
  }), /* @__PURE__ */ v("span", {
8912
8924
  className: "sf-app-shell-module-launcher__item-label",
8913
8925
  children: e.label
@@ -8972,7 +8984,7 @@ var Er = (e) => {
8972
8984
  })
8973
8985
  ]
8974
8986
  })]
8975
- }), z = a ?? (f ? R : null);
8987
+ }), R = a ?? (f ? ee : null);
8976
8988
  return /* @__PURE__ */ y("div", {
8977
8989
  className: (0, X.default)("sf-app-shell", T),
8978
8990
  children: [/* @__PURE__ */ y("aside", {
@@ -9033,9 +9045,9 @@ var Er = (e) => {
9033
9045
  ]
9034
9046
  }), /* @__PURE__ */ y("div", {
9035
9047
  className: "sf-app-shell__workspace",
9036
- children: [z && /* @__PURE__ */ v("header", {
9048
+ children: [R && /* @__PURE__ */ v("header", {
9037
9049
  className: "sf-app-shell__topbar",
9038
- children: z
9050
+ children: R
9039
9051
  }), /* @__PURE__ */ y("div", {
9040
9052
  className: "sf-app-shell__workspace-body",
9041
9053
  children: [/* @__PURE__ */ y("aside", {
@@ -9229,10 +9241,10 @@ var Er = (e) => {
9229
9241
  });
9230
9242
  }, jo = () => () => void 0, Mo = () => g(jo, () => !0, () => !1), No = ({ small: e, error: t, className: n }) => (0, X.default)("sf-input", "sf-input--textarea", "sf-input--code", e && "sf-input--sm", t && "sf-input--error", n), Po = (e) => {
9231
9243
  switch (e) {
9232
- case "javascript": return [R()];
9233
- case "json": return [z()];
9244
+ case "javascript": return [ee()];
9245
+ case "json": return [R()];
9234
9246
  case "html": return [L()];
9235
- case "sql": return [B()];
9247
+ case "sql": return [z()];
9236
9248
  default: return [];
9237
9249
  }
9238
9250
  }, Fo = {
@@ -9299,7 +9311,7 @@ var Er = (e) => {
9299
9311
  })
9300
9312
  });
9301
9313
  }, Lo = ({ target: e, zoom: t = 16 }) => {
9302
- let n = H();
9314
+ let n = V();
9303
9315
  return u(() => {
9304
9316
  e && n.setView([e.lat, e.lng], t, { animate: !0 });
9305
9317
  }, [
@@ -9369,7 +9381,7 @@ var Er = (e) => {
9369
9381
  onBlur: () => setTimeout(() => g(!1), 200)
9370
9382
  }), /* @__PURE__ */ v("span", {
9371
9383
  className: "sf-geocoder-icon",
9372
- children: o ? "..." : /* @__PURE__ */ v(Qe, {
9384
+ children: o ? "..." : /* @__PURE__ */ v(q, {
9373
9385
  "aria-hidden": "true",
9374
9386
  className: "h-3.5 w-3.5"
9375
9387
  })
@@ -9393,7 +9405,7 @@ var Er = (e) => {
9393
9405
  }, `${e.lat}-${e.lng}-${e.label}`))
9394
9406
  })]
9395
9407
  });
9396
- }, Ho = ae.divIcon({
9408
+ }, Ho = oe.divIcon({
9397
9409
  className: "",
9398
9410
  html: "<div class=\"sf-map-picker-marker\"></div>",
9399
9411
  iconSize: [14, 14],
@@ -9419,7 +9431,7 @@ var Er = (e) => {
9419
9431
  lat: String(e.lat ?? Uo.lat),
9420
9432
  lng: String(e.lng ?? Uo.lng)
9421
9433
  } : { ...Uo }, Xo = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Zo = ({ lat: e, lng: t }) => {
9422
- let n = H();
9434
+ let n = V();
9423
9435
  return u(() => {
9424
9436
  n.setView([e, t], n.getZoom(), { animate: !0 });
9425
9437
  }, [
@@ -9427,7 +9439,7 @@ var Er = (e) => {
9427
9439
  t,
9428
9440
  n
9429
9441
  ]), null;
9430
- }, Qo = ({ readOnly: e, onPick: t }) => (ie({ click(n) {
9442
+ }, Qo = ({ readOnly: e, onPick: t }) => (ae({ click(n) {
9431
9443
  e || t(Go(n.latlng.lat), Go(n.latlng.lng));
9432
9444
  } }), null), $o = ({ lat: e, lng: t, zoom: n = 13, readOnly: r, showGeocoder: i = !0, onPick: a }) => {
9433
9445
  let o = [e, t], [s, c] = h(null);
@@ -9441,13 +9453,13 @@ var Er = (e) => {
9441
9453
  lng: e.lng
9442
9454
  }), a(Go(e.lat), Go(e.lng));
9443
9455
  }
9444
- }), /* @__PURE__ */ y(V, {
9456
+ }), /* @__PURE__ */ y(B, {
9445
9457
  center: o,
9446
9458
  zoom: n,
9447
9459
  scrollWheelZoom: !r,
9448
9460
  className: "sf-map-frame",
9449
9461
  children: [
9450
- /* @__PURE__ */ v(re, {
9462
+ /* @__PURE__ */ v(ie, {
9451
9463
  attribution: Xo,
9452
9464
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
9453
9465
  }),
@@ -9460,7 +9472,7 @@ var Er = (e) => {
9460
9472
  readOnly: r,
9461
9473
  onPick: a
9462
9474
  }),
9463
- /* @__PURE__ */ v(ee, {
9475
+ /* @__PURE__ */ v(te, {
9464
9476
  position: o,
9465
9477
  icon: Ho,
9466
9478
  draggable: !r,
@@ -9645,13 +9657,13 @@ var Er = (e) => {
9645
9657
  },
9646
9658
  role: "img",
9647
9659
  "aria-label": o,
9648
- children: u ? /* @__PURE__ */ v(be, {
9660
+ children: u ? /* @__PURE__ */ v(Se, {
9649
9661
  width: "100%",
9650
9662
  height: "100%",
9651
- children: n === "bar" ? /* @__PURE__ */ v(ce, {
9663
+ children: n === "bar" ? /* @__PURE__ */ v(H, {
9652
9664
  data: e,
9653
9665
  margin: d,
9654
- children: /* @__PURE__ */ v(U, {
9666
+ children: /* @__PURE__ */ v(le, {
9655
9667
  dataKey: t,
9656
9668
  fill: l,
9657
9669
  radius: [
@@ -9662,10 +9674,10 @@ var Er = (e) => {
9662
9674
  ],
9663
9675
  isAnimationActive: !1
9664
9676
  })
9665
- }) : /* @__PURE__ */ v(pe, {
9677
+ }) : /* @__PURE__ */ v(he, {
9666
9678
  data: e,
9667
9679
  margin: d,
9668
- children: /* @__PURE__ */ v(fe, {
9680
+ children: /* @__PURE__ */ v(me, {
9669
9681
  type: "monotone",
9670
9682
  dataKey: t,
9671
9683
  stroke: l,
@@ -9813,7 +9825,7 @@ var Er = (e) => {
9813
9825
  C && T && /* @__PURE__ */ v("span", {
9814
9826
  className: "sf-kpi-chevron",
9815
9827
  "aria-hidden": "true",
9816
- children: /* @__PURE__ */ v(mt, {})
9828
+ children: /* @__PURE__ */ v(Y, {})
9817
9829
  })
9818
9830
  ]
9819
9831
  });
@@ -10332,7 +10344,7 @@ var Er = (e) => {
10332
10344
  className: "sf-tramo-card__apto",
10333
10345
  children: /* @__PURE__ */ y("span", {
10334
10346
  className: "sf-tramo-card__apto-badge",
10335
- children: [/* @__PURE__ */ v(Ze, {
10347
+ children: [/* @__PURE__ */ v($e, {
10336
10348
  size: 13,
10337
10349
  "aria-hidden": "true"
10338
10350
  }), i]
@@ -11123,7 +11135,7 @@ var Er = (e) => {
11123
11135
  a && o && /* @__PURE__ */ v("span", {
11124
11136
  className: "sf-alert-summary-row__chevron",
11125
11137
  "aria-hidden": "true",
11126
- children: /* @__PURE__ */ v(mt, {})
11138
+ children: /* @__PURE__ */ v(Y, {})
11127
11139
  })
11128
11140
  ]
11129
11141
  })]
@@ -11420,7 +11432,7 @@ var Er = (e) => {
11420
11432
  className: "sf-detail-side-panel__close",
11421
11433
  onClick: t,
11422
11434
  "aria-label": "Cerrar",
11423
- children: /* @__PURE__ */ v(q, { "aria-hidden": "true" })
11435
+ children: /* @__PURE__ */ v(G, { "aria-hidden": "true" })
11424
11436
  })]
11425
11437
  }),
11426
11438
  e && /* @__PURE__ */ v("h3", {
@@ -11720,7 +11732,7 @@ var Er = (e) => {
11720
11732
  });
11721
11733
  }
11722
11734
  }
11723
- }, R = (e) => {
11735
+ }, ee = (e) => {
11724
11736
  let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && bl(e, a)), r = e.length - n.length;
11725
11737
  if (A(r > 0 ? `${r} archivo(s) no cumplen tipo o tamaño máximo.` : null), o) {
11726
11738
  let e = [...I, ...n];
@@ -11752,7 +11764,7 @@ var Er = (e) => {
11752
11764
  className: "sr-only",
11753
11765
  onBlur: () => S.field.onBlur(),
11754
11766
  onChange: (e) => {
11755
- R(Array.from(e.target.files ?? [])), e.target.value = "";
11767
+ ee(Array.from(e.target.files ?? [])), e.target.value = "";
11756
11768
  }
11757
11769
  }),
11758
11770
  /* @__PURE__ */ y("div", {
@@ -11770,7 +11782,7 @@ var Er = (e) => {
11770
11782
  },
11771
11783
  onDragLeave: () => w(!1),
11772
11784
  onDrop: (e) => {
11773
- e.preventDefault(), e.stopPropagation(), w(!1), !P && R(Array.from(e.dataTransfer.files ?? []));
11785
+ e.preventDefault(), e.stopPropagation(), w(!1), !P && ee(Array.from(e.dataTransfer.files ?? []));
11774
11786
  },
11775
11787
  className: (0, X.default)("sf-file-drop", C && "sf-file-drop--dragging", !P && "sf-file-drop--interactive", P && "sf-file-drop--disabled", d ? "sf-file-drop--sm" : "sf-file-drop--md", N && "sf-file-drop--error"),
11776
11788
  children: [/* @__PURE__ */ v("span", {
@@ -12160,7 +12172,7 @@ var Er = (e) => {
12160
12172
  children: [
12161
12173
  /* @__PURE__ */ v("div", {
12162
12174
  className: "sf-photo-crop-editor__stage",
12163
- children: /* @__PURE__ */ v(we, {
12175
+ children: /* @__PURE__ */ v(Ee, {
12164
12176
  image: e,
12165
12177
  crop: o,
12166
12178
  zoom: l,
@@ -12214,7 +12226,7 @@ var Er = (e) => {
12214
12226
  C.field.onChange(e), _?.(e);
12215
12227
  }, L = s(() => {
12216
12228
  E?.url && URL.revokeObjectURL(E.url), D(null);
12217
- }, [E]), R = async (e) => {
12229
+ }, [E]), ee = async (e) => {
12218
12230
  if (e) {
12219
12231
  if (e.size > a * 1024 * 1024) {
12220
12232
  k(`La imagen supera ${a} MB.`);
@@ -12263,7 +12275,7 @@ var Er = (e) => {
12263
12275
  onBlur: () => C.field.onBlur(),
12264
12276
  onChange: (e) => {
12265
12277
  let t = e.target.files?.[0] ?? null;
12266
- R(t), e.target.value = "";
12278
+ ee(t), e.target.value = "";
12267
12279
  }
12268
12280
  }),
12269
12281
  F ? /* @__PURE__ */ y("div", {
@@ -12403,7 +12415,7 @@ var Er = (e) => {
12403
12415
  onClick: n,
12404
12416
  "aria-label": "Pantalla completa",
12405
12417
  title: "Pantalla completa",
12406
- children: /* @__PURE__ */ v(it, { "aria-hidden": "true" })
12418
+ children: /* @__PURE__ */ v(at, { "aria-hidden": "true" })
12407
12419
  }),
12408
12420
  r && /* @__PURE__ */ v("button", {
12409
12421
  type: "button",
@@ -12411,7 +12423,7 @@ var Er = (e) => {
12411
12423
  onClick: r,
12412
12424
  "aria-label": "Capas",
12413
12425
  title: "Capas",
12414
- children: /* @__PURE__ */ v(st, { "aria-hidden": "true" })
12426
+ children: /* @__PURE__ */ v(ct, { "aria-hidden": "true" })
12415
12427
  })
12416
12428
  ]
12417
12429
  }), Ul = ({ title: e, subtitle: t, statusLabel: n, statusColor: r, speedKmh: i, onClick: a, className: o }) => /* @__PURE__ */ y("div", {
@@ -12689,12 +12701,12 @@ var Er = (e) => {
12689
12701
  ...t,
12690
12702
  config: e
12691
12703
  })
12692
- }), ou = (e) => [e.lat, e.lng], su = (e) => ae.divIcon({
12704
+ }), ou = (e) => [e.lat, e.lng], su = (e) => oe.divIcon({
12693
12705
  className: "",
12694
12706
  html: `<div class="sf-neutral-map-marker" style="${e ? `--sf-neutral-map-marker-bg:${e};` : ""}"></div>`,
12695
12707
  iconSize: [18, 18],
12696
12708
  iconAnchor: [9, 9]
12697
- }), cu = ({ readOnly: e, onClick: t }) => (ie({ click(n) {
12709
+ }), cu = ({ readOnly: e, onClick: t }) => (ae({ click(n) {
12698
12710
  e || t?.({ location: {
12699
12711
  lat: n.latlng.lat,
12700
12712
  lng: n.latlng.lng
@@ -12704,14 +12716,14 @@ var Er = (e) => {
12704
12716
  return g ? /* @__PURE__ */ v("div", {
12705
12717
  className: o,
12706
12718
  style: b,
12707
- children: /* @__PURE__ */ y(V, {
12719
+ children: /* @__PURE__ */ y(B, {
12708
12720
  center: _,
12709
12721
  zoom: t,
12710
12722
  scrollWheelZoom: !s,
12711
12723
  doubleClickZoom: !1,
12712
12724
  className: "sf-map-frame",
12713
12725
  children: [
12714
- /* @__PURE__ */ v(re, {
12726
+ /* @__PURE__ */ v(ie, {
12715
12727
  attribution: l,
12716
12728
  url: c
12717
12729
  }),
@@ -12719,7 +12731,7 @@ var Er = (e) => {
12719
12731
  readOnly: s,
12720
12732
  onClick: u
12721
12733
  }),
12722
- i.map((e) => /* @__PURE__ */ v(te, {
12734
+ i.map((e) => /* @__PURE__ */ v(ne, {
12723
12735
  positions: e.points.map(ou),
12724
12736
  pathOptions: {
12725
12737
  color: e.color ?? eu("var(--sf-map-area-stroke)"),
@@ -12728,14 +12740,14 @@ var Er = (e) => {
12728
12740
  weight: 2.5
12729
12741
  }
12730
12742
  }, e.id)),
12731
- r.map((e) => /* @__PURE__ */ v(ne, {
12743
+ r.map((e) => /* @__PURE__ */ v(re, {
12732
12744
  positions: e.points.map(ou),
12733
12745
  pathOptions: {
12734
12746
  color: e.color ?? eu("var(--sf-map-route-stroke)"),
12735
12747
  weight: 3.5
12736
12748
  }
12737
12749
  }, e.id)),
12738
- n.map((e) => /* @__PURE__ */ v(ee, {
12750
+ n.map((e) => /* @__PURE__ */ v(te, {
12739
12751
  position: ou(e.position),
12740
12752
  icon: su(e.color),
12741
12753
  title: e.title ?? e.label,
@@ -13379,7 +13391,7 @@ var Er = (e) => {
13379
13391
  disabled: m || g,
13380
13392
  onClick: () => h(e - i),
13381
13393
  className: x,
13382
- children: /* @__PURE__ */ v(rt, {
13394
+ children: /* @__PURE__ */ v(it, {
13383
13395
  className: p.icon,
13384
13396
  "aria-hidden": "true"
13385
13397
  })
@@ -13394,7 +13406,7 @@ var Er = (e) => {
13394
13406
  disabled: m || _,
13395
13407
  onClick: () => h(e + i),
13396
13408
  className: x,
13397
- children: /* @__PURE__ */ v(tt, {
13409
+ children: /* @__PURE__ */ v(nt, {
13398
13410
  className: p.icon,
13399
13411
  "aria-hidden": "true"
13400
13412
  })
@@ -14086,7 +14098,7 @@ var Er = (e) => {
14086
14098
  let n = e.parentId == null || e.parentId === "" ? null : e.parentId;
14087
14099
  return n == null || !t.has(n);
14088
14100
  });
14089
- }, Bd = ({ type: e, className: t }) => v(e === "group" ? bt : e === "role" ? Ye : Je, {
14101
+ }, Bd = ({ type: e, className: t }) => v(e === "group" ? bt : e === "role" ? K : Xe, {
14090
14102
  className: t,
14091
14103
  "aria-hidden": "true"
14092
14104
  }), Vd = ({ nodes: e, title: t = "Estructura", subtitle: n, loading: r = !1, error: i = null, onRefresh: a, canEdit: o = !1, onAddNode: c, onEditNode: l, onDeleteNode: d, showLegend: f = !1, themes: g = Fd, onRenderNode: _, maxHeight: b = 480, className: x }) => {
@@ -14172,7 +14184,7 @@ var Er = (e) => {
14172
14184
  "aria-label": "Nuevo nodo raíz",
14173
14185
  onClick: () => c(),
14174
14186
  className: "sf-org-tree__toolbar-btn sf-org-tree__toolbar-btn--primary",
14175
- children: /* @__PURE__ */ v(tt, { className: "h-5 w-5" })
14187
+ children: /* @__PURE__ */ v(nt, { className: "h-5 w-5" })
14176
14188
  }), a && /* @__PURE__ */ v("button", {
14177
14189
  type: "button",
14178
14190
  title: "Actualizar",
@@ -14181,7 +14193,7 @@ var Er = (e) => {
14181
14193
  "aria-busy": r || void 0,
14182
14194
  onClick: () => !r && a(),
14183
14195
  className: "sf-org-tree__toolbar-btn sf-org-tree__toolbar-btn--muted",
14184
- children: /* @__PURE__ */ v(et, { className: (0, X.default)("h-5 w-5", r && "animate-spin") })
14196
+ children: /* @__PURE__ */ v(tt, { className: (0, X.default)("h-5 w-5", r && "animate-spin") })
14185
14197
  })]
14186
14198
  })]
14187
14199
  }),
@@ -14217,7 +14229,7 @@ var Er = (e) => {
14217
14229
  "aria-label": S.has(e.id) ? "Expandir" : "Contraer",
14218
14230
  "aria-expanded": e.hasChildren ? !S.has(e.id) : void 0,
14219
14231
  tabIndex: e.hasChildren ? 0 : -1,
14220
- children: S.has(e.id) ? /* @__PURE__ */ v(mt, { className: "h-4 w-4" }) : /* @__PURE__ */ v(gt, { className: "h-4 w-4" })
14232
+ children: S.has(e.id) ? /* @__PURE__ */ v(Y, { className: "h-4 w-4" }) : /* @__PURE__ */ v(gt, { className: "h-4 w-4" })
14221
14233
  }),
14222
14234
  /* @__PURE__ */ v(Bd, {
14223
14235
  type: e.type,
@@ -14239,14 +14251,14 @@ var Er = (e) => {
14239
14251
  "aria-label": `Editar ${e.label}`,
14240
14252
  onClick: () => l(e),
14241
14253
  className: "sf-org-tree-row__action",
14242
- children: /* @__PURE__ */ v(dt, { className: "h-3.5 w-3.5" })
14254
+ children: /* @__PURE__ */ v(pt, { className: "h-3.5 w-3.5" })
14243
14255
  }), d && /* @__PURE__ */ v("button", {
14244
14256
  type: "button",
14245
14257
  title: "Eliminar",
14246
14258
  "aria-label": `Eliminar ${e.label}`,
14247
14259
  onClick: () => d(e),
14248
14260
  className: "sf-org-tree-row__action sf-org-tree-row__action--danger",
14249
- children: /* @__PURE__ */ v(Xe, { className: "h-3.5 w-3.5" })
14261
+ children: /* @__PURE__ */ v(Ze, { className: "h-3.5 w-3.5" })
14250
14262
  })]
14251
14263
  })
14252
14264
  ]
@@ -14456,7 +14468,7 @@ var Er = (e) => {
14456
14468
  });
14457
14469
  }, nf = [-12.0464, -77.0428], rf = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), af = (e, t) => {
14458
14470
  let n = e.status, r = e.kind ?? "default", i = r === "nap" ? "NAP" : e.value == null ? e.icon ?? Ud[r].slice(0, 3).toUpperCase() : `${e.value}%`, a = rf(e.label.length > 40 ? `${e.label.slice(0, 37)}…` : e.label), o = t ? " sf-network-marker--selected" : "";
14459
- return ae.divIcon({
14471
+ return oe.divIcon({
14460
14472
  className: "sf-network-marker-root",
14461
14473
  iconAnchor: [24, 42],
14462
14474
  iconSize: [48, 48],
@@ -14466,7 +14478,7 @@ var Er = (e) => {
14466
14478
  </div>`
14467
14479
  });
14468
14480
  }, of = ({ nodes: e }) => {
14469
- let t = H(), n = Qd(e);
14481
+ let t = V(), n = Qd(e);
14470
14482
  return u(() => {
14471
14483
  n && t.fitBounds(n, {
14472
14484
  padding: [32, 32],
@@ -14487,20 +14499,20 @@ var Er = (e) => {
14487
14499
  role: "region",
14488
14500
  "aria-label": f,
14489
14501
  children: [
14490
- g ? /* @__PURE__ */ y(V, {
14502
+ g ? /* @__PURE__ */ y(B, {
14491
14503
  center: n,
14492
14504
  zoom: r,
14493
14505
  scrollWheelZoom: !0,
14494
14506
  className: "h-full w-full",
14495
14507
  children: [
14496
- /* @__PURE__ */ v(re, {
14508
+ /* @__PURE__ */ v(ie, {
14497
14509
  attribution: S.attribution,
14498
14510
  url: S.url
14499
14511
  }),
14500
14512
  c && e.length > 0 && /* @__PURE__ */ v(of, { nodes: e }),
14501
14513
  w.map(({ edge: e, line: t }) => {
14502
14514
  let n = qd[e.type ?? "backbone"];
14503
- return /* @__PURE__ */ v(ne, {
14515
+ return /* @__PURE__ */ v(re, {
14504
14516
  positions: t,
14505
14517
  pathOptions: {
14506
14518
  color: Jd(n.color),
@@ -14509,7 +14521,7 @@ var Er = (e) => {
14509
14521
  }
14510
14522
  }, `${e.from}-${e.to}-${e.type ?? "backbone"}`);
14511
14523
  }),
14512
- e.map((e) => /* @__PURE__ */ v(ee, {
14524
+ e.map((e) => /* @__PURE__ */ v(te, {
14513
14525
  position: C[e.id],
14514
14526
  icon: af(e, e.id === a),
14515
14527
  title: e.label,
@@ -14883,7 +14895,7 @@ var Er = (e) => {
14883
14895
  "aria-label": "Siguiente",
14884
14896
  className: "sf-carousel__arrow sf-carousel__arrow--next",
14885
14897
  onClick: () => d(c + 1),
14886
- children: /* @__PURE__ */ v(mt, { "aria-hidden": "true" })
14898
+ children: /* @__PURE__ */ v(Y, { "aria-hidden": "true" })
14887
14899
  })] }),
14888
14900
  /* @__PURE__ */ v("div", {
14889
14901
  ref: o,
@@ -14955,10 +14967,10 @@ var Er = (e) => {
14955
14967
  strokeDasharray: e.strokeDasharray ?? "4 4",
14956
14968
  strokeWidth: 1.5
14957
14969
  };
14958
- return e.axis === "x" ? /* @__PURE__ */ v(ye, {
14970
+ return e.axis === "x" ? /* @__PURE__ */ v(xe, {
14959
14971
  x: e.value,
14960
14972
  ...r,
14961
- children: e.label && /* @__PURE__ */ v(W, {
14973
+ children: e.label && /* @__PURE__ */ v(de, {
14962
14974
  value: e.label,
14963
14975
  position: "insideTopRight",
14964
14976
  style: {
@@ -14967,10 +14979,10 @@ var Er = (e) => {
14967
14979
  fontWeight: 600
14968
14980
  }
14969
14981
  })
14970
- }, `ref-${t}`) : /* @__PURE__ */ v(ye, {
14982
+ }, `ref-${t}`) : /* @__PURE__ */ v(xe, {
14971
14983
  y: e.value,
14972
14984
  ...r,
14973
- children: e.label && /* @__PURE__ */ v(W, {
14985
+ children: e.label && /* @__PURE__ */ v(de, {
14974
14986
  value: e.label,
14975
14987
  position: "insideTopRight",
14976
14988
  style: {
@@ -14988,19 +15000,19 @@ var Er = (e) => {
14988
15000
  ]), A = t.length > 0 && r.length > 0, j = cs(m), M = O ? b ?? ((e) => `${Math.round(e)}%`) : b ?? j, N = g ?? ((e) => `${e}`), P = x ?? j, F = S ?? (O ? ((e) => `${Math.round(e)}%`) : j), I = h ?? (O ? [0, 100] : void 0), L = (e, t, n) => {
14989
15001
  let r = n?.dataKey, i = O && r ? n?.payload?.[us(r)] ?? e : e, a = typeof i == "number" ? i : Number(i ?? 0);
14990
15002
  return [P(a, r), t];
14991
- }, R = T ? (e) => {
15003
+ }, ee = T ? (e) => {
14992
15004
  if (e?.activeLabel === void 0) return;
14993
15005
  let i = t.find((t) => t[n] === e.activeLabel) ?? e.activePayload?.[0]?.payload;
14994
15006
  i && T(i, r[0]);
14995
- } : void 0, z = (e) => C && /* @__PURE__ */ v(ue, {
15007
+ } : void 0, R = (e) => C && /* @__PURE__ */ v(fe, {
14996
15008
  dataKey: e,
14997
15009
  position: E ? "right" : "top",
14998
15010
  formatter: (t) => F(Number(t ?? 0), e),
14999
15011
  style: ss
15000
- }), { Root: B, renderSeries: V } = {
15012
+ }), { Root: z, renderSeries: B } = {
15001
15013
  bar: {
15002
- Root: ce,
15003
- renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(U, {
15014
+ Root: H,
15015
+ renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(le, {
15004
15016
  dataKey: e.key,
15005
15017
  name: e.label ?? e.key,
15006
15018
  fill: rs(e, t),
@@ -15017,14 +15029,14 @@ var Er = (e) => {
15017
15029
  ],
15018
15030
  stackId: Nf(e, D),
15019
15031
  maxBarSize: D === "none" ? 48 : void 0,
15020
- children: z(e.key)
15032
+ children: R(e.key)
15021
15033
  }, e.key))
15022
15034
  },
15023
15035
  line: {
15024
- Root: pe,
15036
+ Root: he,
15025
15037
  renderSeries: () => r.map((e, t) => {
15026
15038
  let n = rs(e, t);
15027
- return /* @__PURE__ */ v(fe, {
15039
+ return /* @__PURE__ */ v(me, {
15028
15040
  type: "monotone",
15029
15041
  dataKey: e.key,
15030
15042
  name: e.label ?? e.key,
@@ -15035,15 +15047,15 @@ var Er = (e) => {
15035
15047
  fill: n
15036
15048
  },
15037
15049
  activeDot: { r: 5 },
15038
- children: z(e.key)
15050
+ children: R(e.key)
15039
15051
  }, e.key);
15040
15052
  })
15041
15053
  },
15042
15054
  area: {
15043
- Root: se,
15055
+ Root: ce,
15044
15056
  renderSeries: () => r.map((e, t) => {
15045
15057
  let n = rs(e, t);
15046
- return /* @__PURE__ */ v(oe, {
15058
+ return /* @__PURE__ */ v(se, {
15047
15059
  type: "monotone",
15048
15060
  dataKey: e.key,
15049
15061
  name: e.label ?? e.key,
@@ -15052,7 +15064,7 @@ var Er = (e) => {
15052
15064
  fillOpacity: .15,
15053
15065
  strokeWidth: 2,
15054
15066
  stackId: Nf(e, D),
15055
- children: z(e.key)
15067
+ children: R(e.key)
15056
15068
  }, e.key);
15057
15069
  })
15058
15070
  }
@@ -15062,52 +15074,52 @@ var Er = (e) => {
15062
15074
  style: { height: i },
15063
15075
  role: "img",
15064
15076
  "aria-label": a ?? `Gráfico ${e}`,
15065
- children: A ? /* @__PURE__ */ v(be, {
15077
+ children: A ? /* @__PURE__ */ v(Se, {
15066
15078
  width: "100%",
15067
15079
  height: "100%",
15068
- children: /* @__PURE__ */ y(B, {
15080
+ children: /* @__PURE__ */ y(z, {
15069
15081
  data: k,
15070
15082
  layout: E ? "vertical" : "horizontal",
15071
15083
  margin: C ? Mf : jf,
15072
- onClick: R,
15084
+ onClick: ee,
15073
15085
  children: [
15074
- c && /* @__PURE__ */ v(le, {
15086
+ c && /* @__PURE__ */ v(ue, {
15075
15087
  strokeDasharray: "3 3",
15076
15088
  horizontal: !E,
15077
15089
  vertical: E
15078
15090
  }),
15079
- E ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Se, {
15091
+ E ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(we, {
15080
15092
  type: "number",
15081
15093
  tick: as,
15082
15094
  axisLine: { stroke: "var(--sf-chart-grid)" },
15083
15095
  tickFormatter: (e) => M(e),
15084
15096
  domain: I
15085
- }), /* @__PURE__ */ v(Ce, {
15097
+ }), /* @__PURE__ */ v(Te, {
15086
15098
  type: "category",
15087
15099
  dataKey: n,
15088
15100
  tick: as,
15089
15101
  axisLine: { stroke: "var(--sf-chart-grid)" },
15090
15102
  tickFormatter: (e) => N(e),
15091
15103
  width: 96
15092
- })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Se, {
15104
+ })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(we, {
15093
15105
  dataKey: n,
15094
15106
  tick: as,
15095
15107
  axisLine: { stroke: "var(--sf-chart-grid)" },
15096
15108
  tickFormatter: (e) => N(e)
15097
- }), /* @__PURE__ */ v(Ce, {
15109
+ }), /* @__PURE__ */ v(Te, {
15098
15110
  tick: as,
15099
15111
  axisLine: { stroke: "var(--sf-chart-grid)" },
15100
15112
  width: 48,
15101
15113
  tickFormatter: (e) => M(e),
15102
15114
  domain: I
15103
15115
  })] }),
15104
- l && /* @__PURE__ */ v(xe, {
15116
+ l && /* @__PURE__ */ v(Ce, {
15105
15117
  contentStyle: is,
15106
15118
  formatter: L
15107
15119
  }),
15108
- u && /* @__PURE__ */ v(de, { wrapperStyle: os }),
15120
+ u && /* @__PURE__ */ v(pe, { wrapperStyle: os }),
15109
15121
  Pf(w),
15110
- V()
15122
+ B()
15111
15123
  ]
15112
15124
  })
15113
15125
  }) : /* @__PURE__ */ v("div", {
@@ -15144,15 +15156,15 @@ var Er = (e) => {
15144
15156
  style: { height: r },
15145
15157
  role: "img",
15146
15158
  "aria-label": i,
15147
- children: d ? /* @__PURE__ */ v(be, {
15159
+ children: d ? /* @__PURE__ */ v(Se, {
15148
15160
  width: "100%",
15149
15161
  height: "100%",
15150
- children: /* @__PURE__ */ y(ve, {
15162
+ children: /* @__PURE__ */ y(be, {
15151
15163
  data: e,
15152
15164
  outerRadius: "70%",
15153
15165
  children: [
15154
- /* @__PURE__ */ v(he, { stroke: "var(--sf-chart-grid)" }),
15155
- /* @__PURE__ */ v(me, {
15166
+ /* @__PURE__ */ v(_e, { stroke: "var(--sf-chart-grid)" }),
15167
+ /* @__PURE__ */ v(ge, {
15156
15168
  dataKey: "label",
15157
15169
  tick: /* @__PURE__ */ v(If, {
15158
15170
  x: 0,
@@ -15164,13 +15176,13 @@ var Er = (e) => {
15164
15176
  color: f
15165
15177
  })
15166
15178
  }),
15167
- /* @__PURE__ */ v(ge, {
15179
+ /* @__PURE__ */ v(ve, {
15168
15180
  domain: [0, t],
15169
15181
  tick: !1,
15170
15182
  axisLine: !1,
15171
15183
  tickCount: 4
15172
15184
  }),
15173
- /* @__PURE__ */ v(_e, {
15185
+ /* @__PURE__ */ v(ye, {
15174
15186
  dataKey: "value",
15175
15187
  name: "Diagnóstico",
15176
15188
  stroke: f,
@@ -15179,11 +15191,11 @@ var Er = (e) => {
15179
15191
  strokeWidth: 2,
15180
15192
  isAnimationActive: !1
15181
15193
  }),
15182
- s && /* @__PURE__ */ v(xe, {
15194
+ s && /* @__PURE__ */ v(Ce, {
15183
15195
  contentStyle: is,
15184
15196
  formatter: (e, t, n) => [p(Number(e), n?.payload?.key), "Valor"]
15185
15197
  }),
15186
- c && /* @__PURE__ */ v(de, { wrapperStyle: os })
15198
+ c && /* @__PURE__ */ v(pe, { wrapperStyle: os })
15187
15199
  ]
15188
15200
  })
15189
15201
  }) : /* @__PURE__ */ v("div", {
@@ -15425,7 +15437,7 @@ var Yf = (e, t, n) => {
15425
15437
  return e != null && e === "development";
15426
15438
  }, ip = (e, t) => {
15427
15439
  let n = x({
15428
- resolver: Te(e),
15440
+ resolver: De(e),
15429
15441
  defaultValues: t?.defaultValues
15430
15442
  }), r = (e, t) => n.handleSubmit(e, (e, n) => {
15431
15443
  rp() && console.log(e), t?.(e, n);
@@ -15468,19 +15480,19 @@ ${e.map((e) => `<Row>${n.map((t) => {
15468
15480
  </Worksheet>
15469
15481
  </Workbook>`, a = new Blob([i], { type: "application/vnd.ms-excel" }), o = URL.createObjectURL(a), s = document.createElement("a");
15470
15482
  s.href = o, s.download = r.endsWith(".xls") || r.endsWith(".xlsx") ? r : `${r}.xls`, s.click(), URL.revokeObjectURL(o);
15471
- }, dp = "Este campo es requerido", fp = "Introduce una dirección de correo electrónico válida", pp = "El correo electrónico es obligatorio", mp = "El valor de este campo es inválido", hp = "Introduce un número de celular válido", gp = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, _p = (e = dp) => G.string().transform(gp).required(e), vp = () => G.string().transform(gp).default(null).nullable(), yp = (e = pp) => G.string().transform(gp).email(fp).required(e), bp = (e = fp) => G.string().transform(gp).test("emailTest", e, (e) => e == null || e === "" || G.string().email().isValidSync(e)).default(null).nullable(), xp = (e, t = mp, n = dp) => G.string().transform(gp).trim().test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).required(n), Sp = (e, t = mp) => G.string().transform(gp).test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).default(null).nullable(), Cp = (e) => {
15483
+ }, dp = "Este campo es requerido", fp = "Introduce una dirección de correo electrónico válida", pp = "El correo electrónico es obligatorio", mp = "El valor de este campo es inválido", hp = "Introduce un número de celular válido", gp = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, _p = (e = dp) => U.string().transform(gp).required(e), vp = () => U.string().transform(gp).default(null).nullable(), yp = (e = pp) => U.string().transform(gp).email(fp).required(e), bp = (e = fp) => U.string().transform(gp).test("emailTest", e, (e) => e == null || e === "" || U.string().email().isValidSync(e)).default(null).nullable(), xp = (e, t = mp, n = dp) => U.string().transform(gp).trim().test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).required(n), Sp = (e, t = mp) => U.string().transform(gp).test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).default(null).nullable(), Cp = (e) => {
15472
15484
  let t = e?.minLength == null ? void 0 : Math.max(1, e.minLength);
15473
15485
  return {
15474
15486
  minLength: t,
15475
15487
  maxLength: e?.maxLength == null ? void 0 : Math.max(t ?? 1, e.maxLength)
15476
15488
  };
15477
15489
  }, wp = (e) => {
15478
- let { minLength: t, maxLength: n } = Cp(e), r = /^[0-9]+$/, i = G.string().transform(gp).test("rgxValidation", (e, t) => e == null || e === "" || e.match(r) != null || t.createError({ message: "El campo debe contener solo caracteres numéricos" }));
15490
+ let { minLength: t, maxLength: n } = Cp(e), r = /^[0-9]+$/, i = U.string().transform(gp).test("rgxValidation", (e, t) => e == null || e === "" || e.match(r) != null || t.createError({ message: "El campo debe contener solo caracteres numéricos" }));
15479
15491
  return t != null && (i = i.min(t, `El campo debe tener al menos ${t} caracteres`)), n != null && (i = i.max(n, `La longitud máxima permitida es de ${n} caracteres`)), i;
15480
- }, Tp = (e) => wp(e).required(dp), Ep = (e) => wp(e).default(null).nullable(), Dp = (e = dp) => G.boolean().typeError("El tipo de dato debe ser booleano").required(e), Op = () => G.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), kp = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, Ap = (e = dp) => G.number().transform(kp).typeError("Debe ser numérico").required(e), jp = () => G.number().transform(kp).typeError("Debe ser numérico").default(null).nullable().notRequired(), Mp = (e = dp) => G.number().transform(kp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), Np = (e = dp) => Mp(e).integer("Este campo debe ser un número entero"), Pp = () => G.number().transform(kp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), Fp = () => Pp().integer("Este campo debe ser un número entero"), Ip = (e) => {
15492
+ }, Tp = (e) => wp(e).required(dp), Ep = (e) => wp(e).default(null).nullable(), Dp = (e = dp) => U.boolean().typeError("El tipo de dato debe ser booleano").required(e), Op = () => U.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), kp = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, Ap = (e = dp) => U.number().transform(kp).typeError("Debe ser numérico").required(e), jp = () => U.number().transform(kp).typeError("Debe ser numérico").default(null).nullable().notRequired(), Mp = (e = dp) => U.number().transform(kp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), Np = (e = dp) => Mp(e).integer("Este campo debe ser un número entero"), Pp = () => U.number().transform(kp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), Fp = () => Pp().integer("Este campo debe ser un número entero"), Ip = (e) => {
15481
15493
  let t = /^(?:\+51)\s?[0-9]{3}\s?[0-9]{3}\s?[0-9]{3}$/;
15482
- return G.string().transform((e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim().startsWith("+") ? e.trim() : `+51 ${e.trim()}` : e).test("rgxValidation", e, (e) => e == null || e === "" || e.match(t) != null).default(null);
15483
- }, Lp = (e = hp) => Ip(e).nullable(), Rp = (e = hp) => Ip(e).required(dp), zp = (e = dp) => G.array().of(_p()).min(1, "Debe contener al menos un elemento").required(e), Bp = () => G.array().of(vp()).default(null).nullable(), Vp = {
15494
+ return U.string().transform((e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim().startsWith("+") ? e.trim() : `+51 ${e.trim()}` : e).test("rgxValidation", e, (e) => e == null || e === "" || e.match(t) != null).default(null);
15495
+ }, Lp = (e = hp) => Ip(e).nullable(), Rp = (e = hp) => Ip(e).required(dp), zp = (e = dp) => U.array().of(_p()).min(1, "Debe contener al menos un elemento").required(e), Bp = () => U.array().of(vp()).default(null).nullable(), Vp = {
15484
15496
  transformNullIfEmpty: gp,
15485
15497
  requiredString: _p,
15486
15498
  nullableString: vp,
@@ -15502,7 +15514,7 @@ ${e.map((e) => `<Row>${n.map((t) => {
15502
15514
  requiredCelular: Rp,
15503
15515
  requiredStringArray: zp,
15504
15516
  nullableStringArray: Bp
15505
- }, Hp = (e) => G.object().shape(e(Vp));
15517
+ }, Hp = (e) => U.object().shape(e(Vp));
15506
15518
  //#endregion
15507
15519
  export { ai as AccessDenied, ua as Accordion, Yr as ActionButton, Pr as ActiveFiltersBar, zu as AddressSearchInput, Zr as Alert, Hc as AlertLane, zc as AlertRowList, Wc as AlertSummaryList, Md as AllocationBar, Co as AppBarContainer, So as AppShell, vo as AppsGridIcon, Yu as AreaInput, xn as AsyncCardSelect, Tr as AsyncCustomTable, yn as AsyncSearchSelect, wn as AsyncSearchTableSelect, lf as AuditTimeline, Pa as Avatar, Fa as AvatarGroup, Ra as Badge, $t as BooleanCheckbox, ca as Breadcrumb, $ as Button, Wr as ButtonGroup, ns as CHART_SERIES_COLORS, nn as COUNTRY_DIAL_CODES, tn as CURRENCY_SYMBOLS, fc as Calendar, Od as CardRadioGroup, bn as CardSelect, kf as Carousel, Ff as Chart, Jt as Checkbox, Yt as CheckboxGroup, Io as CodeEditor, wd as ColorInput, Ui as CommandPalette, qc as ComparisonTable, vi as ConfirmDialog, ji as ContextMenuProvider, Hu as CoordinatesInput, fn as CurrencyInput, wr as CustomTable, ir as DEFAULT_PAGE_SIZE_OPTIONS, $c as DashboardCard, rl as DashboardGrid, sl as DashboardLayout, il as DashboardSection, ol as DashboardStatBar, Mt as DateInput, Lt as DatePicker, ml as DateRangeFields, Nn as DateRangeInput, hl as DateRangeUtcInput, mo as DateWeekStrip, ll as DetailSection, cl as DetailSidePanel, zf as DeviationBand, Lf as DiagnosticRadar, Bn as DisplayField, sn as DniInput, kc as DonutBreakdown, Sc as DonutGauge, Cc as DonutGaugeRow, zi as Drawer, Ci as DropdownMenu, wi as DropdownMenuItem, Br as EditableDataGrid, Qr as EmptyState, Ks as EntityCard, Js as EntityCardGrid, ei as ErrorView, Pc as EventLog, Gc as EvidenceFootnote, Ur as ExpandableTableSection, Z as FieldLayout, kl as FileDropInput, Rn as FileInput, Ta as FilterBar, Da as FilterBarDate, Ea as FilterBarField, Oa as FilterBarSelect, ka as FilterBarText, qr as FormActions, Sa as FormWizard, ra as HeightProvider, kt as Input, Ma as ItineraryEditor, Ts as KPICard, Ds as KPIGrid, Ed as KeyValueInput, pf as LiveChip, io as LiveRouteBoard, Tf as LiveStatusBar, ri as LoadingView, Vu as LocationPicker, Ro as MIN_MAP_GEOCODER_QUERY_LENGTH, ac as MONTH_NAMES, Aa as MaestroLayout, zl as MapFrame, Vl as MapLegend, ts as MapPicker, Bl as MapStatus, Hl as MapToolbar, Ul as MapVehiclePopup, Bu as MapView, wa as MasterDetailLayout, Ca as MasterDetailListItem, Af as MediaPanel, bi as MessageDialog, Is as MetricBarList, Fs as MetricBarRow, gi as Modal, ec as ModuleCard, tc as ModuleCardGrid, Ml as MultiPhotoInput, Hd as NETWORK_BASEMAPS, qd as NETWORK_EDGE_STYLES, Wd as NETWORK_KIND_COLORS, Ud as NETWORK_KIND_LABELS, Gd as NETWORK_STATUS_COLORS, Kd as NETWORK_STATUS_LABELS, lr as NUMBER_FILTER_OPS, tf as NetworkLegend, sf as NetworkMap, Ii as NotificationBell, jt as NumberInput, gd as NumberStepper, Fd as ORG_TREE_DEFAULT_THEMES, Ti as OptionItem, Vd as OrgTree, fl as OtpInput, Ki as PageContainer, Ji as PageHeader, sr as Pagination, er as PaginationRangeInput, Ka as PassengerBoardCard, zt as PasswordInput, un as PhoneInput, Ll as PhotoCropInput, Al as PhotoInput, Nt as Popover, Gi as ProductTour, yd as ProgressBar, xd as ProgressBarReadonly, Pi as QRView, Ms as QuickActionGrid, js as QuickActionTile, Xt as RadioGroup, vd as RangeSliderInput, Sd as RatingInput, Zs as RecommendationCard, ff as RecordList, df as RecordListItem, ii as RetryBlock, Ao as RichTextEditor, Xu as RouteInput, Kr as RowActions, cn as RucInput, Gl as SF_DEFAULT_MAP_CENTER, Kl as SF_DEFAULT_MAP_ZOOM, Xl as SF_GOOGLE_ENGINE_CAPABILITIES, Yl as SF_LEAFLET_ENGINE_CAPABILITIES, Wl as SF_MAPS_CONFIG_ERROR, Jl as SF_OSM_ATTRIBUTION, ql as SF_OSM_TILE_URL, cr as STRING_FILTER_OPS, da as ScrollArea, _n as SearchSelect, Cn as SearchTableSelect, qt as Select, kd as SemanticSlider, sa as Separator, Mu as SfProvider, Bi as Sheet, Yi as SidePanel, ta as SidePanelContainer, jl as SignaturePad, si as Skeleton, fd as SliderInput, Fn as SmartDateInput, pn as SmartInput, Zu as SmartMapInput, Nl as SmartMediaInput, Tn as SmartSelect, Dd as SortableList, fs as Sparkline, ni as Spinner, As as SplitBar, ic as StatCard, ya as Stepper, fa as SummaryItem, yo as SyncIcon, Ei as TabMenuOption, Nr as TableColumnSettings, pr as TableFiltersPanel, qi as TablePageLayout, mr as TableSortingPanel, Xi as Tabs, Td as TagsInput, Pd as TemporalScrub, At as TextArea, Pn as TimeRangeInput, Of as Timeline, pi as ToastProvider, Zt as Toggle, Qt as ToggleCard, Gr as ToolbarButton, Li as Tooltip, nc as TramoCard, Kt as Transfer, Wt as TreeSelect, ao as UnitSelector, aa as Visibility, oa as Visivility, oc as WEEKDAY_LABELS, _o as WeekdayToggleStrip, en as YesNoSelect, Ia as badgeClassName, La as badgeDotClassName, Lr as buildActiveFilterChips, cs as buildDefaultFormatter, lc as buildMonthGrid, Id as buildOrgTreeRows, Gt as buttonClassName, Mn as calcTimeDuration, td as clampNumber, No as codeEditorClassName, fr as columnFilterFn, Zd as countNetworkStatus, Rd as countOrgTreeNodes, Hp as createFormSchema, Yn as createLocalStorageAsyncStateStore, Sl as createPhotoItem, El as cropImageToSquare, Yf as defaultOnSortFunc, gl as emptyDateRange, ad as emptyKeyValuePairs, sd as emptyNumberRange, Rl as emptyPhotoItems, rd as emptyTags, _l as emptyTimeRange, sp as exportTableCsv, up as exportTableXlsx, Q as fieldClassName, Ir as formatColumnFilterValue, Bo as formatMapGeocoderLabel, nd as formatSliderLabel, kn as fromUtcDateIso, dr as inferInitialFilterValue, Dt as inputFocusTransition, zr as isBlankRow, ur as isColumnFilterValue, Dn as isValidDateString, bl as isValidFileType, ef as networkEdgeLines, Qd as networkMapBounds, $d as networkNodePositions, yl as nextPhotoId, An as normalizeDateRange, ld as normalizeHexColor, od as normalizeKeyValuePairs, Xd as normalizeNetworkEdges, Yd as normalizeNetworkNodes, cd as normalizeNumberRange, Tl as normalizePhotoItems, id as normalizeTags, jn as normalizeTimeRange, Op as nullableBoolean, Lp as nullableCelular, bp as nullableEmail, jp as nullableNumber, Sp as nullableOrMatchString, Fp as nullablePositiveInteger, Pp as nullablePositiveNumber, vp as nullableString, Bp as nullableStringArray, Ep as nullableStringNumbersOnly, zd as orgTreeRootNodes, cc as parseYMD, ud as progressPercent, us as rawValueKey, $f as readQueryValue, tp as removeQueryValue, Dp as requiredBoolean, Rp as requiredCelular, yp as requiredEmail, xp as requiredMatchString, Ap as requiredNumber, Np as requiredPositiveInteger, Mp as requiredPositiveNumber, _p as requiredString, zp as requiredStringArray, Tp as requiredStringNumbersOnly, Ld as resolveOrgTreeTheme, rs as resolveSeriesColor, Cl as revokePhotoPreview, wl as revokePhotoPreviews, rn as sanitizeDigits, zo as searchMapAddresses, bu as sfClampLatitude, xu as sfClampLongitude, vu as sfFormatCoordinate, Cu as sfLatLngToString, Tu as sfMarkerFromLatLng, wu as sfNormalizeLatLng, Su as sfParseCoordinate, xl as showFilePicker, Ot as textareaClassName, co as toIsoDate, En as toLocalDateYMD, sc as toLocalYMD, ds as toStacked100Data, Ut as toStringArray, On as toUtcDateIso, gp as transformNullIfEmpty, ep as updateQueryValue, Fu as useAddressSearch, Xf as useArrayPaginator, vn as useAsyncOptions, Di as useClickAway, ia as useContainerHeight, Ni as useContextMenu, ip as useCustomForm, Er as useCustomTableController, Si as useDropdownClose, qf as useFilterData, xa as useFormWizard, Mo as useIsClient, Bf as useMaestroFilter, Iu as useMapEngine, Lu as useMapsConfig, _i as useModal, np as useQueryStringState, Nu as useSf, Pu as useSfMaps, $i as useSidePanelContainer, Zi as useSidePanelHandle, Qf as useStoredState, jr as useTableColumnSettings, mi as useToast, on as validateDni, an as validateRuc, Vp as validators };
15508
15520