@sfperusacdev/sf-ui 0.2.2 → 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,45 +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
- if (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), e.pagination) {
4691
- let t = b ?? ir, n = Number(e.pagination.pageSize), r = t.includes(n) ? n : f;
4692
- ke({
4693
- pageIndex: Math.max(0, Number(e.pagination.pageIndex) || 0),
4694
- pageSize: r
4695
- });
4696
- }
4697
- } catch {} finally {
4698
- qe.current = !0;
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
+ } finally {
4692
+ Xe.current = !0;
4699
4693
  }
4700
4694
  })(), () => {
4701
4695
  t = !0;
@@ -4703,189 +4697,187 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4703
4697
  }, [
4704
4698
  a,
4705
4699
  e,
4706
- K
4700
+ G
4707
4701
  ]), u(() => {
4708
4702
  let e = br(i).map((e) => e.id);
4709
- G((t) => {
4703
+ Oe((t) => {
4710
4704
  let n = t.filter((t) => e.includes(t));
4711
4705
  for (let t of e) n.includes(t) || n.push(t);
4712
4706
  return n;
4713
4707
  });
4714
4708
  }, [i]), u(() => {
4715
- if (!e || !K || !qe.current) return;
4709
+ if (!e || !G || !Xe.current) return;
4716
4710
  let t = {
4717
- grouping: a == null ? J : void 0,
4718
- expanded: pe,
4719
- sorting: he,
4720
- globalFilter: _e,
4721
- columnFilters: ye,
4722
- columnVisibility: xe,
4723
- columnOrder: Te,
4724
- columnAggregations: Ee,
4725
- pagination: Oe
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
4726
4719
  };
4727
- return window.clearTimeout(Je.current), Je.current = window.setTimeout(() => {
4728
- 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(() => {});
4729
4722
  }, 250), () => {
4730
- window.clearTimeout(Je.current);
4723
+ window.clearTimeout(Ze.current);
4731
4724
  };
4732
4725
  }, [
4733
- ye,
4734
- Ee,
4735
- Te,
4736
- xe,
4737
- pe,
4738
- _e,
4726
+ Se,
4727
+ ke,
4728
+ U,
4729
+ we,
4730
+ ge,
4731
+ be,
4739
4732
  a,
4740
4733
  e,
4741
- Oe,
4742
- J,
4743
- K,
4744
- he
4734
+ q,
4735
+ G,
4736
+ ve
4745
4737
  ]);
4746
- let Y = M({
4738
+ let J = M({
4747
4739
  data: r,
4748
- columns: ct,
4740
+ columns: dt,
4749
4741
  debugTable: !1,
4750
4742
  state: {
4751
- grouping: J,
4752
- expanded: pe,
4753
- sorting: he,
4754
- globalFilter: _e,
4755
- columnFilters: ye,
4756
- columnVisibility: xe,
4757
- columnOrder: st,
4758
- pagination: Oe,
4759
- 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
4760
4752
  },
4761
4753
  onGroupingChange: (e) => {
4762
- q.current = !0;
4763
- let t = typeof e == "function" ? e(J) : e;
4764
- 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);
4765
4757
  },
4766
4758
  onExpandedChange: (e) => {
4767
- q.current = !0, me(e);
4759
+ K.current = !0, _e(e);
4768
4760
  },
4769
4761
  onSortingChange: (e) => {
4770
- q.current = !0, ge(e);
4762
+ K.current = !0, ye(e);
4771
4763
  },
4772
4764
  onGlobalFilterChange: (e) => {
4773
- q.current = !0, ve(e);
4765
+ K.current = !0, xe(e);
4774
4766
  },
4775
4767
  onColumnFiltersChange: (e) => {
4776
- q.current = !0, be(e);
4768
+ K.current = !0, Ce(e);
4777
4769
  },
4778
4770
  onColumnVisibilityChange: (e) => {
4779
- q.current = !0, Se(e);
4771
+ K.current = !0, Te(e);
4780
4772
  },
4781
4773
  onRowSelectionChange: (e) => {
4782
- q.current = !0, we(e);
4774
+ K.current = !0, De(e);
4783
4775
  },
4784
4776
  onColumnOrderChange: (e) => {
4785
- q.current = !0;
4786
- let t = (typeof e == "function" ? e(st) : e).filter((e) => !Ke.includes(e));
4787
- G(t);
4777
+ K.current = !0;
4778
+ let t = (typeof e == "function" ? e(ut) : e).filter((e) => !Ye.includes(e));
4779
+ Oe(t);
4788
4780
  },
4789
4781
  onPaginationChange: (e) => {
4790
- q.current = !0, ke(e);
4782
+ Me(e);
4791
4783
  },
4792
4784
  autoResetExpanded: !1,
4793
4785
  autoResetPageIndex: !1,
4794
4786
  enableGrouping: s,
4795
4787
  enableSorting: c,
4796
- paginateExpandedRows: J.length === 0,
4788
+ paginateExpandedRows: q.length === 0,
4797
4789
  groupedColumnMode: "reorder",
4798
4790
  getCoreRowModel: E(),
4799
4791
  getFilteredRowModel: l ? O() : void 0,
4800
- getGroupedRowModel: ut,
4792
+ getGroupedRowModel: pt,
4801
4793
  getSortedRowModel: c ? j() : void 0,
4802
4794
  getExpandedRowModel: D(),
4803
4795
  getSubRows: (e) => e.subRows,
4804
- getPaginationRowModel: d ? A() : void 0,
4796
+ getPaginationRowModel: Ne ? A() : void 0,
4805
4797
  filterFns: { columnFilter: fr },
4806
- enableRowSelection: H
4798
+ enableRowSelection: ae
4807
4799
  });
4808
- Ye.current = Y;
4809
- let dt = d ? Y.getPrePaginationRowModel().rows.length : 0;
4800
+ Qe.current = J;
4801
+ let mt = Ne ? J.getPrePaginationRowModel().rows.length : 0;
4810
4802
  u(() => {
4811
- if (!d) return;
4812
- let e = Math.max(0, Math.ceil(dt / Math.max(1, Oe.pageSize)) - 1);
4813
- 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) => ({
4814
4806
  ...t,
4815
4807
  pageIndex: e
4816
4808
  }));
4817
4809
  }, [
4818
- d,
4819
- dt,
4820
- Oe.pageIndex,
4821
- Oe.pageSize
4810
+ Ne,
4811
+ mt,
4812
+ je.pageIndex,
4813
+ je.pageSize
4822
4814
  ]);
4823
- let ft = Y.getSelectedRowModel().flatRows.map((e) => e.original);
4815
+ let Y = J.getSelectedRowModel().flatRows.map((e) => e.original);
4824
4816
  return u(() => {
4825
- ft.length === 0 && ze(!1);
4826
- }, [ft.length]), u(() => {
4827
- Y.setOptions((e) => ({
4817
+ Y.length === 0 && Ue(!1);
4818
+ }, [Y.length]), u(() => {
4819
+ J.setOptions((e) => ({
4828
4820
  ...e,
4829
- columns: ct
4821
+ columns: dt
4830
4822
  }));
4831
4823
  }, [
4832
- ct,
4833
- Y,
4834
- lt
4824
+ dt,
4825
+ J,
4826
+ ft
4835
4827
  ]), u(() => {
4836
- se?.(Y.getSelectedRowModel().flatRows.map((e) => e.original));
4828
+ le?.(J.getSelectedRowModel().flatRows.map((e) => e.original));
4837
4829
  }, [
4838
- se,
4839
- Ce,
4840
- Y
4830
+ le,
4831
+ Ee,
4832
+ J
4841
4833
  ]), u(() => {
4842
- ue && ue.register({
4834
+ pe && pe.register({
4843
4835
  selection: {
4844
4836
  selectRowFn: (e) => {
4845
4837
  let t = Array.isArray(e) ? e : [e];
4846
4838
  for (let e of t) {
4847
- let t = Y.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4839
+ let t = J.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4848
4840
  t && t.toggleSelected(!0);
4849
4841
  }
4850
4842
  },
4851
4843
  cleanSelectionFn: () => {
4852
- Y.resetRowSelection();
4844
+ J.resetRowSelection();
4853
4845
  },
4854
- getSelectedRowsFn: () => Y.getSelectedRowModel().flatRows.map((e) => e.original)
4846
+ getSelectedRowsFn: () => J.getSelectedRowModel().flatRows.map((e) => e.original)
4855
4847
  },
4856
4848
  row: {
4857
4849
  selectRowFn: (e) => {
4858
- Xe.current = e, Y.resetRowSelection();
4859
- 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);
4860
4852
  t && t.toggleSelected(!0);
4861
4853
  },
4862
4854
  cleanSelectionFn: () => {
4863
- Xe.current = void 0, Y.resetRowSelection();
4855
+ $e.current = void 0, J.resetRowSelection();
4864
4856
  },
4865
- getSelectedRowFn: () => Xe.current
4857
+ getSelectedRowFn: () => $e.current
4866
4858
  }
4867
4859
  });
4868
4860
  }, [
4869
- ue,
4870
- Ce,
4871
- Y
4861
+ pe,
4862
+ Ee,
4863
+ J
4872
4864
  ]), u(() => {
4873
- s && J.length !== 0 && Y.setGrouping(J);
4865
+ s && q.length !== 0 && J.setGrouping(q);
4874
4866
  }, [
4875
4867
  s,
4868
+ q,
4876
4869
  J,
4877
- Y,
4878
- lt
4870
+ ft
4879
4871
  ]), /* @__PURE__ */ y("div", {
4880
- className: x ? "flex h-full w-full min-h-0 flex-col" : "flex w-full min-h-0 flex-col",
4881
- 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" },
4882
4874
  children: [
4883
- F && Ae && /* @__PURE__ */ y("div", {
4875
+ I && Pe && /* @__PURE__ */ y("div", {
4884
4876
  className: "fixed inset-0 z-50",
4885
4877
  children: [/* @__PURE__ */ v("button", {
4886
4878
  type: "button",
4887
4879
  "aria-label": "Cerrar panel",
4888
- onClick: () => je(!1),
4880
+ onClick: () => Fe(!1),
4889
4881
  className: "sf-table-panel-scrim"
4890
4882
  }), /* @__PURE__ */ y("aside", {
4891
4883
  className: "sf-table-panel",
@@ -4899,7 +4891,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4899
4891
  children: "Columns, Group By, Aggregations"
4900
4892
  })] }), /* @__PURE__ */ v("button", {
4901
4893
  type: "button",
4902
- onClick: () => je(!1),
4894
+ onClick: () => Fe(!1),
4903
4895
  className: "sf-table-panel__close",
4904
4896
  children: "Ocultar"
4905
4897
  })]
@@ -4913,8 +4905,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4913
4905
  children: "Columns"
4914
4906
  }), /* @__PURE__ */ v("div", {
4915
4907
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4916
- children: Te.map((e) => Y.getColumn(e)).filter(Boolean).map((e, t) => {
4917
- 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;
4918
4910
  return /* @__PURE__ */ y("div", {
4919
4911
  draggable: !0,
4920
4912
  onDragStart: (e) => {
@@ -4930,8 +4922,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4930
4922
  e.preventDefault();
4931
4923
  let r = xr(e);
4932
4924
  if (!r || r === n) return;
4933
- let i = Te.indexOf(r), a = t;
4934
- 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));
4935
4927
  },
4936
4928
  className: "sf-table-column-row",
4937
4929
  children: [/* @__PURE__ */ y("span", {
@@ -4965,31 +4957,31 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4965
4957
  e.preventDefault();
4966
4958
  let t = xr(e);
4967
4959
  if (!t) return;
4968
- let n = Y.getColumn(t);
4960
+ let n = J.getColumn(t);
4969
4961
  if (!n || !n.getCanGroup()) return;
4970
4962
  n.getIsVisible() || n.toggleVisibility(!0);
4971
- let r = J.includes(t) ? J : [...J, t];
4972
- Y.setGrouping(r);
4963
+ let r = q.includes(t) ? q : [...q, t];
4964
+ J.setGrouping(r);
4973
4965
  },
4974
4966
  children: [/* @__PURE__ */ y("div", {
4975
4967
  className: "sf-table-panel-section-header",
4976
4968
  children: [/* @__PURE__ */ v("p", {
4977
4969
  className: "sf-table-panel__section-title",
4978
4970
  children: "Group By"
4979
- }), J.length > 0 && /* @__PURE__ */ v("button", {
4971
+ }), q.length > 0 && /* @__PURE__ */ v("button", {
4980
4972
  type: "button",
4981
- onClick: () => Y.resetGrouping(),
4973
+ onClick: () => J.resetGrouping(),
4982
4974
  className: "sf-table-panel-btn-sm",
4983
4975
  children: "Clear"
4984
4976
  })]
4985
4977
  }), /* @__PURE__ */ v("div", {
4986
4978
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4987
- children: J.length === 0 ? /* @__PURE__ */ v("div", {
4979
+ children: q.length === 0 ? /* @__PURE__ */ v("div", {
4988
4980
  className: "sf-table-panel-empty",
4989
4981
  children: "Arrastra columnas aquí"
4990
- }) : J.map((e) => {
4991
- if (!Y.getColumn(e)) return null;
4992
- let t = it.get(e) ?? e;
4982
+ }) : q.map((e) => {
4983
+ if (!J.getColumn(e)) return null;
4984
+ let t = st.get(e) ?? e;
4993
4985
  return /* @__PURE__ */ y("div", {
4994
4986
  className: "sf-table-panel-row",
4995
4987
  children: [/* @__PURE__ */ v("span", {
@@ -4997,7 +4989,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4997
4989
  children: t
4998
4990
  }), /* @__PURE__ */ v("button", {
4999
4991
  type: "button",
5000
- onClick: () => Y.setGrouping(J.filter((t) => t !== e)),
4992
+ onClick: () => J.setGrouping(q.filter((t) => t !== e)),
5001
4993
  className: "sf-table-panel-link",
5002
4994
  children: "Quitar"
5003
4995
  })]
@@ -5013,7 +5005,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5013
5005
  onDrop: (e) => {
5014
5006
  e.preventDefault();
5015
5007
  let t = xr(e);
5016
- 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 : {
5017
5009
  ...e,
5018
5010
  [t]: "sum"
5019
5011
  }));
@@ -5023,10 +5015,10 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5023
5015
  children: [/* @__PURE__ */ v("p", {
5024
5016
  className: "sf-table-panel__section-title",
5025
5017
  children: "Aggregations"
5026
- }), Object.keys(Ee).length > 0 && /* @__PURE__ */ v("button", {
5018
+ }), Object.keys(ke).length > 0 && /* @__PURE__ */ v("button", {
5027
5019
  type: "button",
5028
5020
  onClick: () => {
5029
- q.current = !0, De({});
5021
+ K.current = !0, Ae({});
5030
5022
  },
5031
5023
  className: "sf-table-panel-btn-sm",
5032
5024
  children: "Clear"
@@ -5036,21 +5028,21 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5036
5028
  children: [/* @__PURE__ */ v("p", {
5037
5029
  className: "sf-table-panel__subtitle",
5038
5030
  children: "Nota: solo se ve el resultado cuando la tabla está agrupada."
5039
- }), Object.keys(Ee).length === 0 ? /* @__PURE__ */ v("div", {
5031
+ }), Object.keys(ke).length === 0 ? /* @__PURE__ */ v("div", {
5040
5032
  className: "sf-table-panel-empty",
5041
5033
  children: "Arrastra columnas aquí"
5042
- }) : Object.entries(Ee).map(([e, t]) => /* @__PURE__ */ y("div", {
5034
+ }) : Object.entries(ke).map(([e, t]) => /* @__PURE__ */ y("div", {
5043
5035
  className: "sf-table-panel-row",
5044
5036
  children: [
5045
5037
  /* @__PURE__ */ v("span", {
5046
5038
  className: "min-w-0 flex-1 truncate",
5047
- children: it.get(e) ?? e
5039
+ children: st.get(e) ?? e
5048
5040
  }),
5049
5041
  /* @__PURE__ */ v("select", {
5050
5042
  value: t,
5051
5043
  onChange: (t) => {
5052
5044
  let n = t.target.value;
5053
- q.current = !0, De((t) => ({
5045
+ K.current = !0, Ae((t) => ({
5054
5046
  ...t,
5055
5047
  [e]: n
5056
5048
  }));
@@ -5063,8 +5055,8 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5063
5055
  }),
5064
5056
  /* @__PURE__ */ v("button", {
5065
5057
  type: "button",
5066
- onClick: () => De((t) => {
5067
- q.current = !0;
5058
+ onClick: () => Ae((t) => {
5059
+ K.current = !0;
5068
5060
  let n = { ...t };
5069
5061
  return delete n[e], n;
5070
5062
  }),
@@ -5079,70 +5071,70 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5079
5071
  })]
5080
5072
  })]
5081
5073
  }),
5082
- F && Me && /* @__PURE__ */ v(pr, {
5083
- open: Me,
5084
- onClose: () => Ne(!1),
5085
- columnsMeta: rt,
5086
- headerLabelById: it,
5087
- columnTypeById: at,
5088
- columnFilters: ye,
5089
- 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,
5090
5082
  markUserEdit: () => {
5091
- q.current = !0;
5083
+ K.current = !0;
5092
5084
  }
5093
5085
  }),
5094
- F && Pe && /* @__PURE__ */ v(mr, {
5095
- open: Pe,
5096
- onClose: () => Fe(!1),
5097
- columnsMeta: rt,
5098
- headerLabelById: it,
5099
- sorting: he,
5100
- 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,
5101
5093
  markUserEdit: () => {
5102
- q.current = !0;
5094
+ K.current = !0;
5103
5095
  }
5104
5096
  }),
5105
5097
  /* @__PURE__ */ y("div", {
5106
- 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),
5107
5099
  children: [
5108
- !le && /* @__PURE__ */ y("div", {
5100
+ !de && /* @__PURE__ */ y("div", {
5109
5101
  className: "sf-table-toolbar",
5110
5102
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
5111
5103
  className: "sf-table-title",
5112
- children: N
5113
- }), Ze != null && Ze !== "" && /* @__PURE__ */ v("p", {
5104
+ children: P
5105
+ }), et != null && et !== "" && /* @__PURE__ */ v("p", {
5114
5106
  className: "sf-table-subtitle",
5115
- children: Ze
5107
+ children: et
5116
5108
  })] }), /* @__PURE__ */ y("div", {
5117
5109
  className: "sf-table-toolbar-actions",
5118
5110
  children: [
5119
- (V || ne) && /* @__PURE__ */ y("div", {
5111
+ (te || ie) && /* @__PURE__ */ y("div", {
5120
5112
  className: "flex items-center gap-2",
5121
- children: [V && /* @__PURE__ */ y("span", {
5113
+ children: [te && /* @__PURE__ */ y("span", {
5122
5114
  className: "sf-table-toolbar-status",
5123
5115
  children: [/* @__PURE__ */ v("span", {
5124
5116
  className: "sf-table-spinner sf-table-spinner--sm",
5125
5117
  "aria-hidden": "true"
5126
5118
  }), "Actualizando"]
5127
- }), ne && /* @__PURE__ */ v("button", {
5119
+ }), ie && /* @__PURE__ */ v("button", {
5128
5120
  type: "button",
5129
5121
  "aria-label": "Refrescar",
5130
5122
  className: "sf-table-toolbar-btn",
5131
- disabled: V,
5132
- onClick: ne,
5123
+ disabled: te,
5124
+ onClick: ie,
5133
5125
  children: /* @__PURE__ */ v(Vn, {
5134
5126
  className: "h-5 w-5",
5135
5127
  "aria-hidden": "true"
5136
5128
  })
5137
5129
  })]
5138
5130
  }),
5139
- F && /* @__PURE__ */ y("div", {
5131
+ I && /* @__PURE__ */ y("div", {
5140
5132
  className: "flex items-center gap-2",
5141
5133
  children: [
5142
5134
  /* @__PURE__ */ v("button", {
5143
5135
  type: "button",
5144
5136
  onClick: () => {
5145
- Ne(!1), Fe(!1), je(!0);
5137
+ Le(!1), ze(!1), Fe(!0);
5146
5138
  },
5147
5139
  "aria-label": "Abrir panel de tabla",
5148
5140
  className: "sf-table-toolbar-btn",
@@ -5154,7 +5146,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5154
5146
  l && /* @__PURE__ */ v("button", {
5155
5147
  type: "button",
5156
5148
  onClick: () => {
5157
- je(!1), Fe(!1), Ne(!0);
5149
+ Fe(!1), ze(!1), Le(!0);
5158
5150
  },
5159
5151
  "aria-label": "Abrir panel de filtros",
5160
5152
  className: "sf-table-toolbar-btn",
@@ -5166,7 +5158,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5166
5158
  c && /* @__PURE__ */ v("button", {
5167
5159
  type: "button",
5168
5160
  onClick: () => {
5169
- je(!1), Ne(!1), Fe(!0);
5161
+ Fe(!1), Le(!1), ze(!0);
5170
5162
  },
5171
5163
  "aria-label": "Abrir panel de ordenamiento",
5172
5164
  className: "sf-table-toolbar-btn",
@@ -5178,40 +5170,40 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5178
5170
  ]
5179
5171
  }),
5180
5172
  l && /* @__PURE__ */ v("input", {
5181
- value: _e,
5173
+ value: be,
5182
5174
  onChange: (e) => {
5183
- q.current = !0, ve(e.target.value);
5175
+ K.current = !0, xe(e.target.value);
5184
5176
  },
5185
- placeholder: ce,
5177
+ placeholder: ue,
5186
5178
  className: "sf-table-search"
5187
5179
  }),
5188
- s && J.length > 0 && /* @__PURE__ */ v("div", {
5180
+ s && q.length > 0 && /* @__PURE__ */ v("div", {
5189
5181
  className: "sf-table-group-hint",
5190
5182
  children: "Agrupado"
5191
5183
  }),
5192
- typeof L == "function" ? L(ft, { clearSelection: () => Y.resetRowSelection() }) : L,
5193
- 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", {
5194
5186
  className: "flex items-center gap-2",
5195
5187
  children: [(() => {
5196
- let e = ae?.(ft, { clearSelection: () => Y.resetRowSelection() }) ?? [];
5188
+ let e = se?.(Y, { clearSelection: () => J.resetRowSelection() }) ?? [];
5197
5189
  return e.length === 0 ? null : /* @__PURE__ */ y("div", {
5198
5190
  className: "relative",
5199
5191
  children: [/* @__PURE__ */ v("button", {
5200
5192
  type: "button",
5201
5193
  "aria-label": "Acciones",
5202
5194
  className: "sf-table-row-action-trigger",
5203
- onClick: () => ze((e) => !e),
5195
+ onClick: () => Ue((e) => !e),
5204
5196
  children: /* @__PURE__ */ v(Hn, {
5205
5197
  className: "h-4 w-4",
5206
5198
  "aria-hidden": "true"
5207
5199
  })
5208
- }), Re && /* @__PURE__ */ v("div", {
5200
+ }), He && /* @__PURE__ */ v("div", {
5209
5201
  className: "sf-table-row-action-menu min-w-[12.5rem]",
5210
5202
  children: e.map((e) => /* @__PURE__ */ y("button", {
5211
5203
  type: "button",
5212
5204
  disabled: e.disabled,
5213
5205
  onClick: () => {
5214
- ze(!1), e.onSelect(ft, { clearSelection: () => Y.resetRowSelection() });
5206
+ Ue(!1), e.onSelect(Y, { clearSelection: () => J.resetRowSelection() });
5215
5207
  },
5216
5208
  children: [e.icon ? /* @__PURE__ */ v("span", {
5217
5209
  className: "sf-table-row-action-menu__icon",
@@ -5223,37 +5215,37 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5223
5215
  }, e.label))
5224
5216
  })]
5225
5217
  });
5226
- })(), oe?.(ft, { clearSelection: () => Y.resetRowSelection() })]
5218
+ })(), ce?.(Y, { clearSelection: () => J.resetRowSelection() })]
5227
5219
  })
5228
5220
  ]
5229
5221
  })]
5230
5222
  }),
5231
- ee != null && /* @__PURE__ */ y("div", {
5223
+ ne != null && /* @__PURE__ */ y("div", {
5232
5224
  className: "sf-table-error",
5233
- children: [/* @__PURE__ */ v("div", { children: ee }), te && /* @__PURE__ */ v("button", {
5225
+ children: [/* @__PURE__ */ v("div", { children: ne }), re && /* @__PURE__ */ v("button", {
5234
5226
  type: "button",
5235
5227
  className: "sf-table-error__retry",
5236
- onClick: te,
5228
+ onClick: re,
5237
5229
  children: "Reintentar"
5238
5230
  })]
5239
5231
  }),
5240
5232
  R != null && /* @__PURE__ */ v("div", {
5241
5233
  className: "mb-3",
5242
- children: typeof R == "function" ? R(ft, { clearSelection: () => Y.resetRowSelection() }) : R
5234
+ children: typeof R == "function" ? R(Y, { clearSelection: () => J.resetRowSelection() }) : R
5243
5235
  }),
5244
5236
  /* @__PURE__ */ v("div", {
5245
5237
  className: "flex min-h-0 flex-1 flex-col",
5246
- style: S == null ? x ? void 0 : { maxHeight: "100dvh" } : { maxHeight: S },
5238
+ style: C == null ? S ? void 0 : { maxHeight: "100dvh" } : { maxHeight: C },
5247
5239
  children: /* @__PURE__ */ v("div", {
5248
5240
  className: "sf-table-scroll min-h-0 flex-1",
5249
5241
  children: /* @__PURE__ */ y("table", {
5250
- 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),
5251
5243
  children: [/* @__PURE__ */ v("thead", {
5252
- className: (0, X.default)(Qe && "sf-table__head--brand", et),
5253
- 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", {
5254
5246
  colSpan: e.colSpan,
5255
5247
  style: e.colSpan > 1 ? void 0 : { width: e.getSize() },
5256
- 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"),
5257
5249
  children: e.isPlaceholder ? null : /* @__PURE__ */ v("div", {
5258
5250
  className: "flex items-center gap-2",
5259
5251
  children: e.column.getCanSort() ? /* @__PURE__ */ y("button", {
@@ -5272,7 +5264,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5272
5264
  })
5273
5265
  }, e.id)) }, e.id))
5274
5266
  }), /* @__PURE__ */ v("tbody", { children: z ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5275
- colSpan: Y.getAllLeafColumns().length,
5267
+ colSpan: J.getAllLeafColumns().length,
5276
5268
  className: "sf-table-loading-cell",
5277
5269
  children: /* @__PURE__ */ y("div", {
5278
5270
  className: "sf-table-loading-cell__inner",
@@ -5281,16 +5273,16 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5281
5273
  "aria-hidden": "true"
5282
5274
  }), /* @__PURE__ */ v("span", { children: B })]
5283
5275
  })
5284
- }) }) : Y.getRowModel().rows.length === 0 ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5285
- colSpan: Y.getAllLeafColumns().length,
5276
+ }) }) : J.getRowModel().rows.length === 0 ? /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5277
+ colSpan: J.getAllLeafColumns().length,
5286
5278
  className: "sf-table-empty",
5287
- children: w
5288
- }) }) : /* @__PURE__ */ v(_, { children: Y.getRowModel().rows.map((e) => {
5289
- 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);
5290
5282
  return /* @__PURE__ */ y(n, { children: [/* @__PURE__ */ v("tr", {
5291
- 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"),
5292
- onClick: re && !e.getIsGrouped() ? (t) => {
5293
- 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);
5294
5286
  } : void 0,
5295
5287
  children: e.getVisibleCells().map((t) => {
5296
5288
  let n = t.getIsGrouped(), r = t.getIsAggregated(), i = t.getIsPlaceholder();
@@ -5314,7 +5306,7 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5314
5306
  ]
5315
5307
  }) : r ? (() => {
5316
5308
  let e = t.column.id;
5317
- 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());
5318
5310
  })() : i ? null : T(t.column.columnDef.cell, t.getContext())
5319
5311
  }, t.id);
5320
5312
  })
@@ -5325,15 +5317,15 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5325
5317
  colSpan: e.getVisibleCells().length,
5326
5318
  children: /* @__PURE__ */ v("div", {
5327
5319
  className: "sf-table-detail-inner",
5328
- children: W?.render ? W.render(e.original) : /* @__PURE__ */ v(wr, {
5320
+ children: fe?.render ? fe.render(e.original) : /* @__PURE__ */ v(wr, {
5329
5321
  embedded: !0,
5330
- data: W?.getRows?.(e.original) ?? [],
5331
- columns: W?.columns ?? [],
5322
+ data: fe?.getRows?.(e.original) ?? [],
5323
+ columns: fe?.columns ?? [],
5332
5324
  enableRowSelection: !1,
5333
5325
  enableGrouping: !1,
5334
5326
  enableFiltering: !1,
5335
5327
  enableSorting: !1,
5336
- emptyMessage: W?.emptyMessage ?? "Sin detalle"
5328
+ emptyMessage: fe?.emptyMessage ?? "Sin detalle"
5337
5329
  })
5338
5330
  })
5339
5331
  })
@@ -5342,41 +5334,53 @@ function wr({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5342
5334
  })
5343
5335
  })
5344
5336
  }),
5345
- 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", {
5346
5350
  className: "sf-table-footer sf-table-footer--pages",
5347
5351
  children: /* @__PURE__ */ v(sr, {
5348
5352
  variant: g,
5349
- totalItems: Y.getPrePaginationRowModel().rows.length,
5350
- page: Y.getState().pagination.pageIndex + 1,
5351
- pageSize: Y.getState().pagination.pageSize,
5353
+ totalItems: J.getPrePaginationRowModel().rows.length,
5354
+ page: J.getState().pagination.pageIndex + 1,
5355
+ pageSize: J.getState().pagination.pageSize,
5352
5356
  pageSizeOptions: b,
5353
- onPageChange: (e) => Y.setPageIndex(Math.max(0, e - 1)),
5357
+ onPageChange: (e) => J.setPageIndex(Math.max(0, e - 1)),
5354
5358
  onPageSizeChange: (e) => {
5355
- Y.setPageSize(Math.max(1, e)), Y.setPageIndex(0);
5359
+ J.setPageSize(Math.max(1, e)), J.setPageIndex(0);
5356
5360
  }
5357
5361
  })
5358
5362
  }),
5359
- d && g === "legacy" && /* @__PURE__ */ y("div", {
5363
+ Ne && g === "legacy" && /* @__PURE__ */ y("div", {
5360
5364
  className: "sf-table-footer",
5361
5365
  children: [/* @__PURE__ */ y("div", {
5362
5366
  className: "sf-table-footer__meta",
5363
5367
  children: [
5364
- Y.getState().pagination.pageIndex + 1,
5368
+ J.getState().pagination.pageIndex + 1,
5365
5369
  " / ",
5366
- Math.max(1, Y.getPageCount())
5370
+ Math.max(1, J.getPageCount())
5367
5371
  ]
5368
5372
  }), (() => {
5369
- 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 = {
5370
5374
  totalItems: e,
5371
5375
  limitItems: t,
5372
- offsetItems: Y.getState().pagination.pageIndex * t
5376
+ offsetItems: J.getState().pagination.pageIndex * t
5373
5377
  };
5374
5378
  return /* @__PURE__ */ v(er, {
5375
5379
  pageData: n,
5376
5380
  maxItemsRange: Math.max(1, e),
5377
5381
  onChange: (e, t) => {
5378
5382
  let n = Math.max(1, e), r = Math.floor(Math.max(0, t) / n);
5379
- Y.setPageSize(n), Y.setPageIndex(r);
5383
+ J.setPageSize(n), J.setPageIndex(r);
5380
5384
  }
5381
5385
  });
5382
5386
  })()]
@@ -5953,7 +5957,7 @@ var Er = (e) => {
5953
5957
  "aria-busy": i || void 0,
5954
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),
5955
5959
  ...c,
5956
- children: [i ? /* @__PURE__ */ v(ot, {
5960
+ children: [i ? /* @__PURE__ */ v(st, {
5957
5961
  className: (0, X.default)("animate-spin", t ? "h-3.5 w-3.5" : "h-4 w-4"),
5958
5962
  "aria-hidden": "true"
5959
5963
  }) : /* @__PURE__ */ v("span", {
@@ -5973,7 +5977,7 @@ var Er = (e) => {
5973
5977
  "aria-label": r,
5974
5978
  title: r,
5975
5979
  className: "sf-row-action sf-row-action--edit",
5976
- children: /* @__PURE__ */ v(dt, {
5980
+ children: /* @__PURE__ */ v(pt, {
5977
5981
  className: "h-4 w-4",
5978
5982
  "aria-hidden": "true"
5979
5983
  })
@@ -5984,7 +5988,7 @@ var Er = (e) => {
5984
5988
  "aria-label": i,
5985
5989
  title: i,
5986
5990
  className: "sf-row-action sf-row-action--delete",
5987
- children: /* @__PURE__ */ v(Xe, {
5991
+ children: /* @__PURE__ */ v(Ze, {
5988
5992
  className: "h-4 w-4",
5989
5993
  "aria-hidden": "true"
5990
5994
  })
@@ -5995,7 +5999,7 @@ var Er = (e) => {
5995
5999
  type: "button",
5996
6000
  variant: "outline",
5997
6001
  loading: i,
5998
- icon: i ? void 0 : /* @__PURE__ */ v(q, {
6002
+ icon: i ? void 0 : /* @__PURE__ */ v(G, {
5999
6003
  className: "h-4 w-4",
6000
6004
  "aria-hidden": "true"
6001
6005
  }),
@@ -6004,7 +6008,7 @@ var Er = (e) => {
6004
6008
  }), !o && /* @__PURE__ */ v($, {
6005
6009
  type: "button",
6006
6010
  loading: a,
6007
- icon: a ? void 0 : /* @__PURE__ */ v($e, {
6011
+ icon: a ? void 0 : /* @__PURE__ */ v(et, {
6008
6012
  className: "h-4 w-4",
6009
6013
  "aria-hidden": "true"
6010
6014
  }),
@@ -6049,7 +6053,7 @@ var Er = (e) => {
6049
6053
  "aria-busy": t || void 0,
6050
6054
  className: (0, X.default)(Jr[i], a),
6051
6055
  ...s,
6052
- children: [e, t ? /* @__PURE__ */ v(ot, {
6056
+ children: [e, t ? /* @__PURE__ */ v(st, {
6053
6057
  className: "h-3.5 w-3.5 animate-spin",
6054
6058
  "aria-hidden": "true"
6055
6059
  }) : r]
@@ -6211,7 +6215,7 @@ var Er = (e) => {
6211
6215
  onClick: i,
6212
6216
  disabled: !i,
6213
6217
  className: "sf-retry-block__retry",
6214
- children: [/* @__PURE__ */ v(et, {
6218
+ children: [/* @__PURE__ */ v(tt, {
6215
6219
  className: "h-8 w-8",
6216
6220
  "aria-hidden": "true"
6217
6221
  }), /* @__PURE__ */ v("span", {
@@ -6416,7 +6420,7 @@ var Er = (e) => {
6416
6420
  onClick: t,
6417
6421
  "aria-label": "Cerrar",
6418
6422
  className: "sf-modal-close",
6419
- children: /* @__PURE__ */ v(q, {
6423
+ children: /* @__PURE__ */ v(G, {
6420
6424
  className: "h-5 w-5",
6421
6425
  "aria-hidden": "true"
6422
6426
  })
@@ -6480,7 +6484,7 @@ var Er = (e) => {
6480
6484
  })
6481
6485
  }), yi = {
6482
6486
  info: {
6483
- icon: /* @__PURE__ */ v(ct, {
6487
+ icon: /* @__PURE__ */ v(lt, {
6484
6488
  className: "h-6 w-6",
6485
6489
  "aria-hidden": "true"
6486
6490
  }),
@@ -6851,7 +6855,7 @@ var Er = (e) => {
6851
6855
  onClick: t,
6852
6856
  "aria-label": "Cerrar",
6853
6857
  className: "sf-drawer__close",
6854
- children: /* @__PURE__ */ v(q, {
6858
+ children: /* @__PURE__ */ v(G, {
6855
6859
  className: "h-5 w-5",
6856
6860
  "aria-hidden": "true"
6857
6861
  })
@@ -7140,7 +7144,7 @@ var Er = (e) => {
7140
7144
  onClick: r,
7141
7145
  "aria-label": "Cerrar panel",
7142
7146
  className: "sf-side-panel__close",
7143
- children: /* @__PURE__ */ v(q, {
7147
+ children: /* @__PURE__ */ v(G, {
7144
7148
  className: "h-4 w-4",
7145
7149
  "aria-hidden": "true"
7146
7150
  })
@@ -7517,7 +7521,7 @@ var Er = (e) => {
7517
7521
  }, n.key);
7518
7522
  })
7519
7523
  });
7520
- }, 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" }) => {
7521
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) => {
7522
7526
  t === void 0 && S(e), r?.(e);
7523
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) => {
@@ -7766,7 +7770,7 @@ var Er = (e) => {
7766
7770
  children: [
7767
7771
  n && /* @__PURE__ */ y("div", {
7768
7772
  className: "sf-maestro-layout__search",
7769
- children: [/* @__PURE__ */ v(Qe, {
7773
+ children: [/* @__PURE__ */ v(q, {
7770
7774
  className: "sf-maestro-layout__search-icon",
7771
7775
  "aria-hidden": "true"
7772
7776
  }), /* @__PURE__ */ v(ka, {
@@ -7780,7 +7784,7 @@ var Er = (e) => {
7780
7784
  i && /* @__PURE__ */ v($, {
7781
7785
  type: "button",
7782
7786
  size: "sm",
7783
- icon: /* @__PURE__ */ v(tt, { "aria-hidden": "true" }),
7787
+ icon: /* @__PURE__ */ v(nt, { "aria-hidden": "true" }),
7784
7788
  onClick: i,
7785
7789
  children: a
7786
7790
  })
@@ -7808,7 +7812,7 @@ var Er = (e) => {
7808
7812
  left: `${12 + n / Math.max(e.length - 1, 1) * 76}%`,
7809
7813
  top: n % 2 == 0 ? "38%" : "58%"
7810
7814
  },
7811
- children: [/* @__PURE__ */ v(at, {}), /* @__PURE__ */ y("span", { children: [
7815
+ children: [/* @__PURE__ */ v(ot, {}), /* @__PURE__ */ y("span", { children: [
7812
7816
  t.order,
7813
7817
  ". ",
7814
7818
  t.name
@@ -7895,7 +7899,7 @@ var Er = (e) => {
7895
7899
  className: "sf-itinerary-editor__stop-remove",
7896
7900
  "aria-label": `Eliminar parada ${e.name}`,
7897
7901
  onClick: e.onRemove,
7898
- children: /* @__PURE__ */ v(Xe, { "aria-hidden": "true" })
7902
+ children: /* @__PURE__ */ v(Ze, { "aria-hidden": "true" })
7899
7903
  })]
7900
7904
  })]
7901
7905
  })
@@ -8828,7 +8832,7 @@ var Er = (e) => {
8828
8832
  }, F = !!g || !!_ || !!b || !!C || !!x || !!S, I = S ? S.initials ?? xo(S.fullName) : "", L = (e) => {
8829
8833
  let t = e.items.find((e) => !e.hidden);
8830
8834
  t && (r(t.id), N(!1));
8831
- }, R = /* @__PURE__ */ y("div", {
8835
+ }, ee = /* @__PURE__ */ y("div", {
8832
8836
  className: "sf-app-shell-default-topbar",
8833
8837
  children: [/* @__PURE__ */ y("div", {
8834
8838
  className: "sf-app-shell-default-topbar__left",
@@ -8866,7 +8870,7 @@ var Er = (e) => {
8866
8870
  className: "sf-app-shell-default-topbar__icon-btn",
8867
8871
  "aria-label": _.mode === "dark" ? "Cambiar a modo claro" : "Cambiar a modo oscuro",
8868
8872
  onClick: _.onToggle,
8869
- 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" })
8870
8874
  }),
8871
8875
  b && /* @__PURE__ */ v(Ii, {
8872
8876
  className: "sf-app-shell-default-topbar__notification",
@@ -8878,7 +8882,7 @@ var Er = (e) => {
8878
8882
  className: "sf-app-shell-default-topbar__icon-btn",
8879
8883
  "aria-label": C.ariaLabel ?? "Información",
8880
8884
  onClick: C.onClick,
8881
- children: C.icon ?? /* @__PURE__ */ v(ct, { "aria-hidden": "true" })
8885
+ children: C.icon ?? /* @__PURE__ */ v(lt, { "aria-hidden": "true" })
8882
8886
  }),
8883
8887
  x && /* @__PURE__ */ v(Ci, {
8884
8888
  align: "end",
@@ -8915,7 +8919,7 @@ var Er = (e) => {
8915
8919
  children: [/* @__PURE__ */ v("span", {
8916
8920
  className: "sf-app-shell-module-launcher__item-icon",
8917
8921
  "aria-hidden": "true",
8918
- children: e.icon ?? /* @__PURE__ */ v(lt, {})
8922
+ children: e.icon ?? /* @__PURE__ */ v(ut, {})
8919
8923
  }), /* @__PURE__ */ v("span", {
8920
8924
  className: "sf-app-shell-module-launcher__item-label",
8921
8925
  children: e.label
@@ -8980,7 +8984,7 @@ var Er = (e) => {
8980
8984
  })
8981
8985
  ]
8982
8986
  })]
8983
- }), z = a ?? (f ? R : null);
8987
+ }), R = a ?? (f ? ee : null);
8984
8988
  return /* @__PURE__ */ y("div", {
8985
8989
  className: (0, X.default)("sf-app-shell", T),
8986
8990
  children: [/* @__PURE__ */ y("aside", {
@@ -9041,9 +9045,9 @@ var Er = (e) => {
9041
9045
  ]
9042
9046
  }), /* @__PURE__ */ y("div", {
9043
9047
  className: "sf-app-shell__workspace",
9044
- children: [z && /* @__PURE__ */ v("header", {
9048
+ children: [R && /* @__PURE__ */ v("header", {
9045
9049
  className: "sf-app-shell__topbar",
9046
- children: z
9050
+ children: R
9047
9051
  }), /* @__PURE__ */ y("div", {
9048
9052
  className: "sf-app-shell__workspace-body",
9049
9053
  children: [/* @__PURE__ */ y("aside", {
@@ -9237,10 +9241,10 @@ var Er = (e) => {
9237
9241
  });
9238
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) => {
9239
9243
  switch (e) {
9240
- case "javascript": return [R()];
9241
- case "json": return [z()];
9244
+ case "javascript": return [ee()];
9245
+ case "json": return [R()];
9242
9246
  case "html": return [L()];
9243
- case "sql": return [B()];
9247
+ case "sql": return [z()];
9244
9248
  default: return [];
9245
9249
  }
9246
9250
  }, Fo = {
@@ -9307,7 +9311,7 @@ var Er = (e) => {
9307
9311
  })
9308
9312
  });
9309
9313
  }, Lo = ({ target: e, zoom: t = 16 }) => {
9310
- let n = H();
9314
+ let n = V();
9311
9315
  return u(() => {
9312
9316
  e && n.setView([e.lat, e.lng], t, { animate: !0 });
9313
9317
  }, [
@@ -9377,7 +9381,7 @@ var Er = (e) => {
9377
9381
  onBlur: () => setTimeout(() => g(!1), 200)
9378
9382
  }), /* @__PURE__ */ v("span", {
9379
9383
  className: "sf-geocoder-icon",
9380
- children: o ? "..." : /* @__PURE__ */ v(Qe, {
9384
+ children: o ? "..." : /* @__PURE__ */ v(q, {
9381
9385
  "aria-hidden": "true",
9382
9386
  className: "h-3.5 w-3.5"
9383
9387
  })
@@ -9401,7 +9405,7 @@ var Er = (e) => {
9401
9405
  }, `${e.lat}-${e.lng}-${e.label}`))
9402
9406
  })]
9403
9407
  });
9404
- }, Ho = ae.divIcon({
9408
+ }, Ho = oe.divIcon({
9405
9409
  className: "",
9406
9410
  html: "<div class=\"sf-map-picker-marker\"></div>",
9407
9411
  iconSize: [14, 14],
@@ -9427,7 +9431,7 @@ var Er = (e) => {
9427
9431
  lat: String(e.lat ?? Uo.lat),
9428
9432
  lng: String(e.lng ?? Uo.lng)
9429
9433
  } : { ...Uo }, Xo = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Zo = ({ lat: e, lng: t }) => {
9430
- let n = H();
9434
+ let n = V();
9431
9435
  return u(() => {
9432
9436
  n.setView([e, t], n.getZoom(), { animate: !0 });
9433
9437
  }, [
@@ -9435,7 +9439,7 @@ var Er = (e) => {
9435
9439
  t,
9436
9440
  n
9437
9441
  ]), null;
9438
- }, Qo = ({ readOnly: e, onPick: t }) => (ie({ click(n) {
9442
+ }, Qo = ({ readOnly: e, onPick: t }) => (ae({ click(n) {
9439
9443
  e || t(Go(n.latlng.lat), Go(n.latlng.lng));
9440
9444
  } }), null), $o = ({ lat: e, lng: t, zoom: n = 13, readOnly: r, showGeocoder: i = !0, onPick: a }) => {
9441
9445
  let o = [e, t], [s, c] = h(null);
@@ -9449,13 +9453,13 @@ var Er = (e) => {
9449
9453
  lng: e.lng
9450
9454
  }), a(Go(e.lat), Go(e.lng));
9451
9455
  }
9452
- }), /* @__PURE__ */ y(V, {
9456
+ }), /* @__PURE__ */ y(B, {
9453
9457
  center: o,
9454
9458
  zoom: n,
9455
9459
  scrollWheelZoom: !r,
9456
9460
  className: "sf-map-frame",
9457
9461
  children: [
9458
- /* @__PURE__ */ v(re, {
9462
+ /* @__PURE__ */ v(ie, {
9459
9463
  attribution: Xo,
9460
9464
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
9461
9465
  }),
@@ -9468,7 +9472,7 @@ var Er = (e) => {
9468
9472
  readOnly: r,
9469
9473
  onPick: a
9470
9474
  }),
9471
- /* @__PURE__ */ v(ee, {
9475
+ /* @__PURE__ */ v(te, {
9472
9476
  position: o,
9473
9477
  icon: Ho,
9474
9478
  draggable: !r,
@@ -9653,13 +9657,13 @@ var Er = (e) => {
9653
9657
  },
9654
9658
  role: "img",
9655
9659
  "aria-label": o,
9656
- children: u ? /* @__PURE__ */ v(be, {
9660
+ children: u ? /* @__PURE__ */ v(Se, {
9657
9661
  width: "100%",
9658
9662
  height: "100%",
9659
- children: n === "bar" ? /* @__PURE__ */ v(ce, {
9663
+ children: n === "bar" ? /* @__PURE__ */ v(H, {
9660
9664
  data: e,
9661
9665
  margin: d,
9662
- children: /* @__PURE__ */ v(U, {
9666
+ children: /* @__PURE__ */ v(le, {
9663
9667
  dataKey: t,
9664
9668
  fill: l,
9665
9669
  radius: [
@@ -9670,10 +9674,10 @@ var Er = (e) => {
9670
9674
  ],
9671
9675
  isAnimationActive: !1
9672
9676
  })
9673
- }) : /* @__PURE__ */ v(pe, {
9677
+ }) : /* @__PURE__ */ v(he, {
9674
9678
  data: e,
9675
9679
  margin: d,
9676
- children: /* @__PURE__ */ v(fe, {
9680
+ children: /* @__PURE__ */ v(me, {
9677
9681
  type: "monotone",
9678
9682
  dataKey: t,
9679
9683
  stroke: l,
@@ -9821,7 +9825,7 @@ var Er = (e) => {
9821
9825
  C && T && /* @__PURE__ */ v("span", {
9822
9826
  className: "sf-kpi-chevron",
9823
9827
  "aria-hidden": "true",
9824
- children: /* @__PURE__ */ v(mt, {})
9828
+ children: /* @__PURE__ */ v(Y, {})
9825
9829
  })
9826
9830
  ]
9827
9831
  });
@@ -10340,7 +10344,7 @@ var Er = (e) => {
10340
10344
  className: "sf-tramo-card__apto",
10341
10345
  children: /* @__PURE__ */ y("span", {
10342
10346
  className: "sf-tramo-card__apto-badge",
10343
- children: [/* @__PURE__ */ v(Ze, {
10347
+ children: [/* @__PURE__ */ v($e, {
10344
10348
  size: 13,
10345
10349
  "aria-hidden": "true"
10346
10350
  }), i]
@@ -11131,7 +11135,7 @@ var Er = (e) => {
11131
11135
  a && o && /* @__PURE__ */ v("span", {
11132
11136
  className: "sf-alert-summary-row__chevron",
11133
11137
  "aria-hidden": "true",
11134
- children: /* @__PURE__ */ v(mt, {})
11138
+ children: /* @__PURE__ */ v(Y, {})
11135
11139
  })
11136
11140
  ]
11137
11141
  })]
@@ -11428,7 +11432,7 @@ var Er = (e) => {
11428
11432
  className: "sf-detail-side-panel__close",
11429
11433
  onClick: t,
11430
11434
  "aria-label": "Cerrar",
11431
- children: /* @__PURE__ */ v(q, { "aria-hidden": "true" })
11435
+ children: /* @__PURE__ */ v(G, { "aria-hidden": "true" })
11432
11436
  })]
11433
11437
  }),
11434
11438
  e && /* @__PURE__ */ v("h3", {
@@ -11728,7 +11732,7 @@ var Er = (e) => {
11728
11732
  });
11729
11733
  }
11730
11734
  }
11731
- }, R = (e) => {
11735
+ }, ee = (e) => {
11732
11736
  let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && bl(e, a)), r = e.length - n.length;
11733
11737
  if (A(r > 0 ? `${r} archivo(s) no cumplen tipo o tamaño máximo.` : null), o) {
11734
11738
  let e = [...I, ...n];
@@ -11760,7 +11764,7 @@ var Er = (e) => {
11760
11764
  className: "sr-only",
11761
11765
  onBlur: () => S.field.onBlur(),
11762
11766
  onChange: (e) => {
11763
- R(Array.from(e.target.files ?? [])), e.target.value = "";
11767
+ ee(Array.from(e.target.files ?? [])), e.target.value = "";
11764
11768
  }
11765
11769
  }),
11766
11770
  /* @__PURE__ */ y("div", {
@@ -11778,7 +11782,7 @@ var Er = (e) => {
11778
11782
  },
11779
11783
  onDragLeave: () => w(!1),
11780
11784
  onDrop: (e) => {
11781
- 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 ?? []));
11782
11786
  },
11783
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"),
11784
11788
  children: [/* @__PURE__ */ v("span", {
@@ -12168,7 +12172,7 @@ var Er = (e) => {
12168
12172
  children: [
12169
12173
  /* @__PURE__ */ v("div", {
12170
12174
  className: "sf-photo-crop-editor__stage",
12171
- children: /* @__PURE__ */ v(we, {
12175
+ children: /* @__PURE__ */ v(Ee, {
12172
12176
  image: e,
12173
12177
  crop: o,
12174
12178
  zoom: l,
@@ -12222,7 +12226,7 @@ var Er = (e) => {
12222
12226
  C.field.onChange(e), _?.(e);
12223
12227
  }, L = s(() => {
12224
12228
  E?.url && URL.revokeObjectURL(E.url), D(null);
12225
- }, [E]), R = async (e) => {
12229
+ }, [E]), ee = async (e) => {
12226
12230
  if (e) {
12227
12231
  if (e.size > a * 1024 * 1024) {
12228
12232
  k(`La imagen supera ${a} MB.`);
@@ -12271,7 +12275,7 @@ var Er = (e) => {
12271
12275
  onBlur: () => C.field.onBlur(),
12272
12276
  onChange: (e) => {
12273
12277
  let t = e.target.files?.[0] ?? null;
12274
- R(t), e.target.value = "";
12278
+ ee(t), e.target.value = "";
12275
12279
  }
12276
12280
  }),
12277
12281
  F ? /* @__PURE__ */ y("div", {
@@ -12411,7 +12415,7 @@ var Er = (e) => {
12411
12415
  onClick: n,
12412
12416
  "aria-label": "Pantalla completa",
12413
12417
  title: "Pantalla completa",
12414
- children: /* @__PURE__ */ v(it, { "aria-hidden": "true" })
12418
+ children: /* @__PURE__ */ v(at, { "aria-hidden": "true" })
12415
12419
  }),
12416
12420
  r && /* @__PURE__ */ v("button", {
12417
12421
  type: "button",
@@ -12419,7 +12423,7 @@ var Er = (e) => {
12419
12423
  onClick: r,
12420
12424
  "aria-label": "Capas",
12421
12425
  title: "Capas",
12422
- children: /* @__PURE__ */ v(st, { "aria-hidden": "true" })
12426
+ children: /* @__PURE__ */ v(ct, { "aria-hidden": "true" })
12423
12427
  })
12424
12428
  ]
12425
12429
  }), Ul = ({ title: e, subtitle: t, statusLabel: n, statusColor: r, speedKmh: i, onClick: a, className: o }) => /* @__PURE__ */ y("div", {
@@ -12697,12 +12701,12 @@ var Er = (e) => {
12697
12701
  ...t,
12698
12702
  config: e
12699
12703
  })
12700
- }), ou = (e) => [e.lat, e.lng], su = (e) => ae.divIcon({
12704
+ }), ou = (e) => [e.lat, e.lng], su = (e) => oe.divIcon({
12701
12705
  className: "",
12702
12706
  html: `<div class="sf-neutral-map-marker" style="${e ? `--sf-neutral-map-marker-bg:${e};` : ""}"></div>`,
12703
12707
  iconSize: [18, 18],
12704
12708
  iconAnchor: [9, 9]
12705
- }), cu = ({ readOnly: e, onClick: t }) => (ie({ click(n) {
12709
+ }), cu = ({ readOnly: e, onClick: t }) => (ae({ click(n) {
12706
12710
  e || t?.({ location: {
12707
12711
  lat: n.latlng.lat,
12708
12712
  lng: n.latlng.lng
@@ -12712,14 +12716,14 @@ var Er = (e) => {
12712
12716
  return g ? /* @__PURE__ */ v("div", {
12713
12717
  className: o,
12714
12718
  style: b,
12715
- children: /* @__PURE__ */ y(V, {
12719
+ children: /* @__PURE__ */ y(B, {
12716
12720
  center: _,
12717
12721
  zoom: t,
12718
12722
  scrollWheelZoom: !s,
12719
12723
  doubleClickZoom: !1,
12720
12724
  className: "sf-map-frame",
12721
12725
  children: [
12722
- /* @__PURE__ */ v(re, {
12726
+ /* @__PURE__ */ v(ie, {
12723
12727
  attribution: l,
12724
12728
  url: c
12725
12729
  }),
@@ -12727,7 +12731,7 @@ var Er = (e) => {
12727
12731
  readOnly: s,
12728
12732
  onClick: u
12729
12733
  }),
12730
- i.map((e) => /* @__PURE__ */ v(te, {
12734
+ i.map((e) => /* @__PURE__ */ v(ne, {
12731
12735
  positions: e.points.map(ou),
12732
12736
  pathOptions: {
12733
12737
  color: e.color ?? eu("var(--sf-map-area-stroke)"),
@@ -12736,14 +12740,14 @@ var Er = (e) => {
12736
12740
  weight: 2.5
12737
12741
  }
12738
12742
  }, e.id)),
12739
- r.map((e) => /* @__PURE__ */ v(ne, {
12743
+ r.map((e) => /* @__PURE__ */ v(re, {
12740
12744
  positions: e.points.map(ou),
12741
12745
  pathOptions: {
12742
12746
  color: e.color ?? eu("var(--sf-map-route-stroke)"),
12743
12747
  weight: 3.5
12744
12748
  }
12745
12749
  }, e.id)),
12746
- n.map((e) => /* @__PURE__ */ v(ee, {
12750
+ n.map((e) => /* @__PURE__ */ v(te, {
12747
12751
  position: ou(e.position),
12748
12752
  icon: su(e.color),
12749
12753
  title: e.title ?? e.label,
@@ -13387,7 +13391,7 @@ var Er = (e) => {
13387
13391
  disabled: m || g,
13388
13392
  onClick: () => h(e - i),
13389
13393
  className: x,
13390
- children: /* @__PURE__ */ v(rt, {
13394
+ children: /* @__PURE__ */ v(it, {
13391
13395
  className: p.icon,
13392
13396
  "aria-hidden": "true"
13393
13397
  })
@@ -13402,7 +13406,7 @@ var Er = (e) => {
13402
13406
  disabled: m || _,
13403
13407
  onClick: () => h(e + i),
13404
13408
  className: x,
13405
- children: /* @__PURE__ */ v(tt, {
13409
+ children: /* @__PURE__ */ v(nt, {
13406
13410
  className: p.icon,
13407
13411
  "aria-hidden": "true"
13408
13412
  })
@@ -14094,7 +14098,7 @@ var Er = (e) => {
14094
14098
  let n = e.parentId == null || e.parentId === "" ? null : e.parentId;
14095
14099
  return n == null || !t.has(n);
14096
14100
  });
14097
- }, 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, {
14098
14102
  className: t,
14099
14103
  "aria-hidden": "true"
14100
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 }) => {
@@ -14180,7 +14184,7 @@ var Er = (e) => {
14180
14184
  "aria-label": "Nuevo nodo raíz",
14181
14185
  onClick: () => c(),
14182
14186
  className: "sf-org-tree__toolbar-btn sf-org-tree__toolbar-btn--primary",
14183
- children: /* @__PURE__ */ v(tt, { className: "h-5 w-5" })
14187
+ children: /* @__PURE__ */ v(nt, { className: "h-5 w-5" })
14184
14188
  }), a && /* @__PURE__ */ v("button", {
14185
14189
  type: "button",
14186
14190
  title: "Actualizar",
@@ -14189,7 +14193,7 @@ var Er = (e) => {
14189
14193
  "aria-busy": r || void 0,
14190
14194
  onClick: () => !r && a(),
14191
14195
  className: "sf-org-tree__toolbar-btn sf-org-tree__toolbar-btn--muted",
14192
- 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") })
14193
14197
  })]
14194
14198
  })]
14195
14199
  }),
@@ -14225,7 +14229,7 @@ var Er = (e) => {
14225
14229
  "aria-label": S.has(e.id) ? "Expandir" : "Contraer",
14226
14230
  "aria-expanded": e.hasChildren ? !S.has(e.id) : void 0,
14227
14231
  tabIndex: e.hasChildren ? 0 : -1,
14228
- 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" })
14229
14233
  }),
14230
14234
  /* @__PURE__ */ v(Bd, {
14231
14235
  type: e.type,
@@ -14247,14 +14251,14 @@ var Er = (e) => {
14247
14251
  "aria-label": `Editar ${e.label}`,
14248
14252
  onClick: () => l(e),
14249
14253
  className: "sf-org-tree-row__action",
14250
- children: /* @__PURE__ */ v(dt, { className: "h-3.5 w-3.5" })
14254
+ children: /* @__PURE__ */ v(pt, { className: "h-3.5 w-3.5" })
14251
14255
  }), d && /* @__PURE__ */ v("button", {
14252
14256
  type: "button",
14253
14257
  title: "Eliminar",
14254
14258
  "aria-label": `Eliminar ${e.label}`,
14255
14259
  onClick: () => d(e),
14256
14260
  className: "sf-org-tree-row__action sf-org-tree-row__action--danger",
14257
- children: /* @__PURE__ */ v(Xe, { className: "h-3.5 w-3.5" })
14261
+ children: /* @__PURE__ */ v(Ze, { className: "h-3.5 w-3.5" })
14258
14262
  })]
14259
14263
  })
14260
14264
  ]
@@ -14464,7 +14468,7 @@ var Er = (e) => {
14464
14468
  });
14465
14469
  }, nf = [-12.0464, -77.0428], rf = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), af = (e, t) => {
14466
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" : "";
14467
- return ae.divIcon({
14471
+ return oe.divIcon({
14468
14472
  className: "sf-network-marker-root",
14469
14473
  iconAnchor: [24, 42],
14470
14474
  iconSize: [48, 48],
@@ -14474,7 +14478,7 @@ var Er = (e) => {
14474
14478
  </div>`
14475
14479
  });
14476
14480
  }, of = ({ nodes: e }) => {
14477
- let t = H(), n = Qd(e);
14481
+ let t = V(), n = Qd(e);
14478
14482
  return u(() => {
14479
14483
  n && t.fitBounds(n, {
14480
14484
  padding: [32, 32],
@@ -14495,20 +14499,20 @@ var Er = (e) => {
14495
14499
  role: "region",
14496
14500
  "aria-label": f,
14497
14501
  children: [
14498
- g ? /* @__PURE__ */ y(V, {
14502
+ g ? /* @__PURE__ */ y(B, {
14499
14503
  center: n,
14500
14504
  zoom: r,
14501
14505
  scrollWheelZoom: !0,
14502
14506
  className: "h-full w-full",
14503
14507
  children: [
14504
- /* @__PURE__ */ v(re, {
14508
+ /* @__PURE__ */ v(ie, {
14505
14509
  attribution: S.attribution,
14506
14510
  url: S.url
14507
14511
  }),
14508
14512
  c && e.length > 0 && /* @__PURE__ */ v(of, { nodes: e }),
14509
14513
  w.map(({ edge: e, line: t }) => {
14510
14514
  let n = qd[e.type ?? "backbone"];
14511
- return /* @__PURE__ */ v(ne, {
14515
+ return /* @__PURE__ */ v(re, {
14512
14516
  positions: t,
14513
14517
  pathOptions: {
14514
14518
  color: Jd(n.color),
@@ -14517,7 +14521,7 @@ var Er = (e) => {
14517
14521
  }
14518
14522
  }, `${e.from}-${e.to}-${e.type ?? "backbone"}`);
14519
14523
  }),
14520
- e.map((e) => /* @__PURE__ */ v(ee, {
14524
+ e.map((e) => /* @__PURE__ */ v(te, {
14521
14525
  position: C[e.id],
14522
14526
  icon: af(e, e.id === a),
14523
14527
  title: e.label,
@@ -14891,7 +14895,7 @@ var Er = (e) => {
14891
14895
  "aria-label": "Siguiente",
14892
14896
  className: "sf-carousel__arrow sf-carousel__arrow--next",
14893
14897
  onClick: () => d(c + 1),
14894
- children: /* @__PURE__ */ v(mt, { "aria-hidden": "true" })
14898
+ children: /* @__PURE__ */ v(Y, { "aria-hidden": "true" })
14895
14899
  })] }),
14896
14900
  /* @__PURE__ */ v("div", {
14897
14901
  ref: o,
@@ -14963,10 +14967,10 @@ var Er = (e) => {
14963
14967
  strokeDasharray: e.strokeDasharray ?? "4 4",
14964
14968
  strokeWidth: 1.5
14965
14969
  };
14966
- return e.axis === "x" ? /* @__PURE__ */ v(ye, {
14970
+ return e.axis === "x" ? /* @__PURE__ */ v(xe, {
14967
14971
  x: e.value,
14968
14972
  ...r,
14969
- children: e.label && /* @__PURE__ */ v(W, {
14973
+ children: e.label && /* @__PURE__ */ v(de, {
14970
14974
  value: e.label,
14971
14975
  position: "insideTopRight",
14972
14976
  style: {
@@ -14975,10 +14979,10 @@ var Er = (e) => {
14975
14979
  fontWeight: 600
14976
14980
  }
14977
14981
  })
14978
- }, `ref-${t}`) : /* @__PURE__ */ v(ye, {
14982
+ }, `ref-${t}`) : /* @__PURE__ */ v(xe, {
14979
14983
  y: e.value,
14980
14984
  ...r,
14981
- children: e.label && /* @__PURE__ */ v(W, {
14985
+ children: e.label && /* @__PURE__ */ v(de, {
14982
14986
  value: e.label,
14983
14987
  position: "insideTopRight",
14984
14988
  style: {
@@ -14996,19 +15000,19 @@ var Er = (e) => {
14996
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) => {
14997
15001
  let r = n?.dataKey, i = O && r ? n?.payload?.[us(r)] ?? e : e, a = typeof i == "number" ? i : Number(i ?? 0);
14998
15002
  return [P(a, r), t];
14999
- }, R = T ? (e) => {
15003
+ }, ee = T ? (e) => {
15000
15004
  if (e?.activeLabel === void 0) return;
15001
15005
  let i = t.find((t) => t[n] === e.activeLabel) ?? e.activePayload?.[0]?.payload;
15002
15006
  i && T(i, r[0]);
15003
- } : void 0, z = (e) => C && /* @__PURE__ */ v(ue, {
15007
+ } : void 0, R = (e) => C && /* @__PURE__ */ v(fe, {
15004
15008
  dataKey: e,
15005
15009
  position: E ? "right" : "top",
15006
15010
  formatter: (t) => F(Number(t ?? 0), e),
15007
15011
  style: ss
15008
- }), { Root: B, renderSeries: V } = {
15012
+ }), { Root: z, renderSeries: B } = {
15009
15013
  bar: {
15010
- Root: ce,
15011
- renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(U, {
15014
+ Root: H,
15015
+ renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(le, {
15012
15016
  dataKey: e.key,
15013
15017
  name: e.label ?? e.key,
15014
15018
  fill: rs(e, t),
@@ -15025,14 +15029,14 @@ var Er = (e) => {
15025
15029
  ],
15026
15030
  stackId: Nf(e, D),
15027
15031
  maxBarSize: D === "none" ? 48 : void 0,
15028
- children: z(e.key)
15032
+ children: R(e.key)
15029
15033
  }, e.key))
15030
15034
  },
15031
15035
  line: {
15032
- Root: pe,
15036
+ Root: he,
15033
15037
  renderSeries: () => r.map((e, t) => {
15034
15038
  let n = rs(e, t);
15035
- return /* @__PURE__ */ v(fe, {
15039
+ return /* @__PURE__ */ v(me, {
15036
15040
  type: "monotone",
15037
15041
  dataKey: e.key,
15038
15042
  name: e.label ?? e.key,
@@ -15043,15 +15047,15 @@ var Er = (e) => {
15043
15047
  fill: n
15044
15048
  },
15045
15049
  activeDot: { r: 5 },
15046
- children: z(e.key)
15050
+ children: R(e.key)
15047
15051
  }, e.key);
15048
15052
  })
15049
15053
  },
15050
15054
  area: {
15051
- Root: se,
15055
+ Root: ce,
15052
15056
  renderSeries: () => r.map((e, t) => {
15053
15057
  let n = rs(e, t);
15054
- return /* @__PURE__ */ v(oe, {
15058
+ return /* @__PURE__ */ v(se, {
15055
15059
  type: "monotone",
15056
15060
  dataKey: e.key,
15057
15061
  name: e.label ?? e.key,
@@ -15060,7 +15064,7 @@ var Er = (e) => {
15060
15064
  fillOpacity: .15,
15061
15065
  strokeWidth: 2,
15062
15066
  stackId: Nf(e, D),
15063
- children: z(e.key)
15067
+ children: R(e.key)
15064
15068
  }, e.key);
15065
15069
  })
15066
15070
  }
@@ -15070,52 +15074,52 @@ var Er = (e) => {
15070
15074
  style: { height: i },
15071
15075
  role: "img",
15072
15076
  "aria-label": a ?? `Gráfico ${e}`,
15073
- children: A ? /* @__PURE__ */ v(be, {
15077
+ children: A ? /* @__PURE__ */ v(Se, {
15074
15078
  width: "100%",
15075
15079
  height: "100%",
15076
- children: /* @__PURE__ */ y(B, {
15080
+ children: /* @__PURE__ */ y(z, {
15077
15081
  data: k,
15078
15082
  layout: E ? "vertical" : "horizontal",
15079
15083
  margin: C ? Mf : jf,
15080
- onClick: R,
15084
+ onClick: ee,
15081
15085
  children: [
15082
- c && /* @__PURE__ */ v(le, {
15086
+ c && /* @__PURE__ */ v(ue, {
15083
15087
  strokeDasharray: "3 3",
15084
15088
  horizontal: !E,
15085
15089
  vertical: E
15086
15090
  }),
15087
- E ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Se, {
15091
+ E ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(we, {
15088
15092
  type: "number",
15089
15093
  tick: as,
15090
15094
  axisLine: { stroke: "var(--sf-chart-grid)" },
15091
15095
  tickFormatter: (e) => M(e),
15092
15096
  domain: I
15093
- }), /* @__PURE__ */ v(Ce, {
15097
+ }), /* @__PURE__ */ v(Te, {
15094
15098
  type: "category",
15095
15099
  dataKey: n,
15096
15100
  tick: as,
15097
15101
  axisLine: { stroke: "var(--sf-chart-grid)" },
15098
15102
  tickFormatter: (e) => N(e),
15099
15103
  width: 96
15100
- })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Se, {
15104
+ })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(we, {
15101
15105
  dataKey: n,
15102
15106
  tick: as,
15103
15107
  axisLine: { stroke: "var(--sf-chart-grid)" },
15104
15108
  tickFormatter: (e) => N(e)
15105
- }), /* @__PURE__ */ v(Ce, {
15109
+ }), /* @__PURE__ */ v(Te, {
15106
15110
  tick: as,
15107
15111
  axisLine: { stroke: "var(--sf-chart-grid)" },
15108
15112
  width: 48,
15109
15113
  tickFormatter: (e) => M(e),
15110
15114
  domain: I
15111
15115
  })] }),
15112
- l && /* @__PURE__ */ v(xe, {
15116
+ l && /* @__PURE__ */ v(Ce, {
15113
15117
  contentStyle: is,
15114
15118
  formatter: L
15115
15119
  }),
15116
- u && /* @__PURE__ */ v(de, { wrapperStyle: os }),
15120
+ u && /* @__PURE__ */ v(pe, { wrapperStyle: os }),
15117
15121
  Pf(w),
15118
- V()
15122
+ B()
15119
15123
  ]
15120
15124
  })
15121
15125
  }) : /* @__PURE__ */ v("div", {
@@ -15152,15 +15156,15 @@ var Er = (e) => {
15152
15156
  style: { height: r },
15153
15157
  role: "img",
15154
15158
  "aria-label": i,
15155
- children: d ? /* @__PURE__ */ v(be, {
15159
+ children: d ? /* @__PURE__ */ v(Se, {
15156
15160
  width: "100%",
15157
15161
  height: "100%",
15158
- children: /* @__PURE__ */ y(ve, {
15162
+ children: /* @__PURE__ */ y(be, {
15159
15163
  data: e,
15160
15164
  outerRadius: "70%",
15161
15165
  children: [
15162
- /* @__PURE__ */ v(he, { stroke: "var(--sf-chart-grid)" }),
15163
- /* @__PURE__ */ v(me, {
15166
+ /* @__PURE__ */ v(_e, { stroke: "var(--sf-chart-grid)" }),
15167
+ /* @__PURE__ */ v(ge, {
15164
15168
  dataKey: "label",
15165
15169
  tick: /* @__PURE__ */ v(If, {
15166
15170
  x: 0,
@@ -15172,13 +15176,13 @@ var Er = (e) => {
15172
15176
  color: f
15173
15177
  })
15174
15178
  }),
15175
- /* @__PURE__ */ v(ge, {
15179
+ /* @__PURE__ */ v(ve, {
15176
15180
  domain: [0, t],
15177
15181
  tick: !1,
15178
15182
  axisLine: !1,
15179
15183
  tickCount: 4
15180
15184
  }),
15181
- /* @__PURE__ */ v(_e, {
15185
+ /* @__PURE__ */ v(ye, {
15182
15186
  dataKey: "value",
15183
15187
  name: "Diagnóstico",
15184
15188
  stroke: f,
@@ -15187,11 +15191,11 @@ var Er = (e) => {
15187
15191
  strokeWidth: 2,
15188
15192
  isAnimationActive: !1
15189
15193
  }),
15190
- s && /* @__PURE__ */ v(xe, {
15194
+ s && /* @__PURE__ */ v(Ce, {
15191
15195
  contentStyle: is,
15192
15196
  formatter: (e, t, n) => [p(Number(e), n?.payload?.key), "Valor"]
15193
15197
  }),
15194
- c && /* @__PURE__ */ v(de, { wrapperStyle: os })
15198
+ c && /* @__PURE__ */ v(pe, { wrapperStyle: os })
15195
15199
  ]
15196
15200
  })
15197
15201
  }) : /* @__PURE__ */ v("div", {
@@ -15433,7 +15437,7 @@ var Yf = (e, t, n) => {
15433
15437
  return e != null && e === "development";
15434
15438
  }, ip = (e, t) => {
15435
15439
  let n = x({
15436
- resolver: Te(e),
15440
+ resolver: De(e),
15437
15441
  defaultValues: t?.defaultValues
15438
15442
  }), r = (e, t) => n.handleSubmit(e, (e, n) => {
15439
15443
  rp() && console.log(e), t?.(e, n);
@@ -15476,19 +15480,19 @@ ${e.map((e) => `<Row>${n.map((t) => {
15476
15480
  </Worksheet>
15477
15481
  </Workbook>`, a = new Blob([i], { type: "application/vnd.ms-excel" }), o = URL.createObjectURL(a), s = document.createElement("a");
15478
15482
  s.href = o, s.download = r.endsWith(".xls") || r.endsWith(".xlsx") ? r : `${r}.xls`, s.click(), URL.revokeObjectURL(o);
15479
- }, 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) => {
15480
15484
  let t = e?.minLength == null ? void 0 : Math.max(1, e.minLength);
15481
15485
  return {
15482
15486
  minLength: t,
15483
15487
  maxLength: e?.maxLength == null ? void 0 : Math.max(t ?? 1, e.maxLength)
15484
15488
  };
15485
15489
  }, wp = (e) => {
15486
- 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" }));
15487
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;
15488
- }, 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) => {
15489
15493
  let t = /^(?:\+51)\s?[0-9]{3}\s?[0-9]{3}\s?[0-9]{3}$/;
15490
- 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);
15491
- }, 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 = {
15492
15496
  transformNullIfEmpty: gp,
15493
15497
  requiredString: _p,
15494
15498
  nullableString: vp,
@@ -15510,7 +15514,7 @@ ${e.map((e) => `<Row>${n.map((t) => {
15510
15514
  requiredCelular: Rp,
15511
15515
  requiredStringArray: zp,
15512
15516
  nullableStringArray: Bp
15513
- }, Hp = (e) => G.object().shape(e(Vp));
15517
+ }, Hp = (e) => U.object().shape(e(Vp));
15514
15518
  //#endregion
15515
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 };
15516
15520