@sfperusacdev/sf-ui 0.1.35 → 0.1.37

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
@@ -13,7 +13,7 @@ import { json as R } from "@codemirror/lang-json";
13
13
  import { sql as z } from "@codemirror/lang-sql";
14
14
  import { MapContainer as B, Marker as te, Polygon as ne, Polyline as V, TileLayer as H, useMap as U, useMapEvents as re } from "react-leaflet";
15
15
  import ie from "leaflet";
16
- import { Area as ae, AreaChart as oe, Bar as W, BarChart as se, CartesianGrid as ce, Label as le, 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";
16
+ import { Area as ae, AreaChart as oe, Bar as se, BarChart as W, CartesianGrid as ce, Label as le, 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
17
  import we from "react-easy-crop";
18
18
  import { yupResolver as Te } from "@hookform/resolvers/yup";
19
19
  import * as G from "yup";
@@ -108,13 +108,13 @@ function Ge(e, t) {
108
108
  }
109
109
  return (t === "string" ? String : Number)(e);
110
110
  }
111
- function K(t) {
112
- return t && t.map((t, n) => /*#__PURE__*/ e.createElement(t.tag, He({ key: n }, t.attr), K(t.child)));
111
+ function Ke(t) {
112
+ return t && t.map((t, n) => /*#__PURE__*/ e.createElement(t.tag, He({ key: n }, t.attr), Ke(t.child)));
113
113
  }
114
- function q(t) {
115
- return (n) => /*#__PURE__*/ e.createElement(Ke, Be({ attr: He({}, t.attr) }, n), K(t.child));
114
+ function K(t) {
115
+ return (n) => /*#__PURE__*/ e.createElement(qe, Be({ attr: He({}, t.attr) }, n), Ke(t.child));
116
116
  }
117
- function Ke(t) {
117
+ function qe(t) {
118
118
  var n = (n) => {
119
119
  var r = t.attr, i = t.size, a = t.title, o = Re(t, Le), s = i || n.size || "1em", c;
120
120
  return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /*#__PURE__*/ e.createElement("svg", Be({
@@ -133,8 +133,8 @@ function Ke(t) {
133
133
  }
134
134
  //#endregion
135
135
  //#region node_modules/react-icons/fi/index.mjs
136
- function qe(e) {
137
- return q({
136
+ function Je(e) {
137
+ return K({
138
138
  tag: "svg",
139
139
  attr: {
140
140
  viewBox: "0 0 24 24",
@@ -165,8 +165,8 @@ function qe(e) {
165
165
  }]
166
166
  })(e);
167
167
  }
168
- function J(e) {
169
- return q({
168
+ function Ye(e) {
169
+ return K({
170
170
  tag: "svg",
171
171
  attr: {
172
172
  viewBox: "0 0 24 24",
@@ -204,8 +204,8 @@ function J(e) {
204
204
  ]
205
205
  })(e);
206
206
  }
207
- function Je(e) {
208
- return q({
207
+ function q(e) {
208
+ return K({
209
209
  tag: "svg",
210
210
  attr: {
211
211
  viewBox: "0 0 24 24",
@@ -230,8 +230,8 @@ function Je(e) {
230
230
  }]
231
231
  })(e);
232
232
  }
233
- function Ye(e) {
234
- return q({
233
+ function Xe(e) {
234
+ return K({
235
235
  tag: "svg",
236
236
  attr: {
237
237
  viewBox: "0 0 24 24",
@@ -275,8 +275,8 @@ function Ye(e) {
275
275
  ]
276
276
  })(e);
277
277
  }
278
- function Xe(e) {
279
- return q({
278
+ function Ze(e) {
279
+ return K({
280
280
  tag: "svg",
281
281
  attr: {
282
282
  viewBox: "0 0 24 24",
@@ -379,8 +379,8 @@ function Xe(e) {
379
379
  ]
380
380
  })(e);
381
381
  }
382
- function Ze(e) {
383
- return q({
382
+ function Qe(e) {
383
+ return K({
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 q({
400
+ function J(e) {
401
+ return K({
402
402
  tag: "svg",
403
403
  attr: {
404
404
  viewBox: "0 0 24 24",
@@ -429,7 +429,7 @@ function Qe(e) {
429
429
  })(e);
430
430
  }
431
431
  function $e(e) {
432
- return q({
432
+ return K({
433
433
  tag: "svg",
434
434
  attr: {
435
435
  viewBox: "0 0 24 24",
@@ -459,7 +459,7 @@ function $e(e) {
459
459
  })(e);
460
460
  }
461
461
  function et(e) {
462
- return q({
462
+ return K({
463
463
  tag: "svg",
464
464
  attr: {
465
465
  viewBox: "0 0 24 24",
@@ -489,7 +489,7 @@ function et(e) {
489
489
  })(e);
490
490
  }
491
491
  function tt(e) {
492
- return q({
492
+ return K({
493
493
  tag: "svg",
494
494
  attr: {
495
495
  viewBox: "0 0 24 24",
@@ -521,7 +521,7 @@ function tt(e) {
521
521
  })(e);
522
522
  }
523
523
  function nt(e) {
524
- return q({
524
+ return K({
525
525
  tag: "svg",
526
526
  attr: {
527
527
  viewBox: "0 0 24 24",
@@ -539,7 +539,7 @@ function nt(e) {
539
539
  })(e);
540
540
  }
541
541
  function rt(e) {
542
- return q({
542
+ return K({
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 Y(e) {
565
- return q({
564
+ function it(e) {
565
+ return K({
566
566
  tag: "svg",
567
567
  attr: {
568
568
  viewBox: "0 0 24 24",
@@ -579,8 +579,8 @@ function Y(e) {
579
579
  }]
580
580
  })(e);
581
581
  }
582
- function it(e) {
583
- return q({
582
+ function Y(e) {
583
+ return K({
584
584
  tag: "svg",
585
585
  attr: {
586
586
  viewBox: "0 0 24 24",
@@ -606,7 +606,7 @@ function it(e) {
606
606
  })(e);
607
607
  }
608
608
  function at(e) {
609
- return q({
609
+ return K({
610
610
  tag: "svg",
611
611
  attr: {
612
612
  viewBox: "0 0 24 24",
@@ -701,7 +701,7 @@ function at(e) {
701
701
  })(e);
702
702
  }
703
703
  function ot(e) {
704
- return q({
704
+ return K({
705
705
  tag: "svg",
706
706
  attr: {
707
707
  viewBox: "0 0 24 24",
@@ -731,7 +731,7 @@ function ot(e) {
731
731
  })(e);
732
732
  }
733
733
  function st(e) {
734
- return q({
734
+ return K({
735
735
  tag: "svg",
736
736
  attr: {
737
737
  viewBox: "0 0 24 24",
@@ -775,7 +775,7 @@ function st(e) {
775
775
  })(e);
776
776
  }
777
777
  function ct(e) {
778
- return q({
778
+ return K({
779
779
  tag: "svg",
780
780
  attr: {
781
781
  viewBox: "0 0 24 24",
@@ -830,7 +830,7 @@ function ct(e) {
830
830
  })(e);
831
831
  }
832
832
  function lt(e) {
833
- return q({
833
+ return K({
834
834
  tag: "svg",
835
835
  attr: {
836
836
  viewBox: "0 0 24 24",
@@ -856,7 +856,7 @@ function lt(e) {
856
856
  })(e);
857
857
  }
858
858
  function ut(e) {
859
- return q({
859
+ return K({
860
860
  tag: "svg",
861
861
  attr: {
862
862
  viewBox: "0 0 24 24",
@@ -883,7 +883,7 @@ function ut(e) {
883
883
  })(e);
884
884
  }
885
885
  function dt(e) {
886
- return q({
886
+ return K({
887
887
  tag: "svg",
888
888
  attr: {
889
889
  viewBox: "0 0 24 24",
@@ -901,7 +901,7 @@ function dt(e) {
901
901
  })(e);
902
902
  }
903
903
  function ft(e) {
904
- return q({
904
+ return K({
905
905
  tag: "svg",
906
906
  attr: {
907
907
  viewBox: "0 0 24 24",
@@ -923,7 +923,7 @@ function ft(e) {
923
923
  })(e);
924
924
  }
925
925
  function pt(e) {
926
- return q({
926
+ return K({
927
927
  tag: "svg",
928
928
  attr: {
929
929
  viewBox: "0 0 24 24",
@@ -945,7 +945,7 @@ function pt(e) {
945
945
  })(e);
946
946
  }
947
947
  function mt(e) {
948
- return q({
948
+ return K({
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 q({
966
+ return K({
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 q({
984
+ return K({
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 q({
1002
+ return K({
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 q({
1020
+ return K({
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 q({
1042
+ return K({
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 q({
1099
+ return K({
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 q({
1128
+ return K({
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 q({
1150
+ return K({
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 q({
1177
+ return K({
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 q({
1204
+ return K({
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 q({
1244
+ return K({
1245
1245
  tag: "svg",
1246
1246
  attr: {
1247
1247
  viewBox: "0 0 24 24",
@@ -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 ? J : void 0);
1364
1364
  return /* @__PURE__ */ v(Z, {
1365
1365
  id: S,
1366
1366
  label: n,
@@ -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(J, {
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"
@@ -2675,9 +2675,9 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2675
2675
  document.removeEventListener("pointerdown", e);
2676
2676
  };
2677
2677
  }, []);
2678
- let W = /* @__PURE__ */ y("div", {
2678
+ let se = /* @__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(J, {
2681
2681
  size: 16,
2682
2682
  className: "text-slate-400"
2683
2683
  }), /* @__PURE__ */ v("input", {
@@ -2686,7 +2686,7 @@ 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
- }), se = /* @__PURE__ */ v("div", {
2689
+ }), W = /* @__PURE__ */ v("div", {
2690
2690
  ref: z,
2691
2691
  className: "overflow-auto py-1",
2692
2692
  style: { maxHeight: Math.max(72, (I?.maxHeight ?? 288) - mn) },
@@ -2762,7 +2762,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2762
2762
  t.stopPropagation(), ie(e.value);
2763
2763
  },
2764
2764
  className: "rounded text-slate-400 hover:text-slate-700",
2765
- children: /* @__PURE__ */ v(qe, { size: 12 })
2765
+ children: /* @__PURE__ */ v(Je, { size: 12 })
2766
2766
  })]
2767
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",
@@ -2782,7 +2782,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
2782
2782
  e.stopPropagation(), ae();
2783
2783
  },
2784
2784
  className: "rounded p-0.5 text-slate-400 hover:text-slate-700",
2785
- children: /* @__PURE__ */ v(qe, { size: 14 })
2785
+ children: /* @__PURE__ */ v(Je, { 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: [se, W] }) : /* @__PURE__ */ y(_, { children: [W, se] })
2801
+ children: I?.direction === "top" ? /* @__PURE__ */ y(_, { children: [W, se] }) : /* @__PURE__ */ y(_, { children: [se, W] })
2802
2802
  })]
2803
2803
  })
2804
2804
  });
@@ -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
- }), re = U.getRowModel().rows, ie = U.getFilteredRowModel().rows.length, ae = Math.max(0, f - re.length), oe = U.getState().pagination.pageIndex + 1, W = Math.max(1, U.getPageCount()), se = U.getAllLeafColumns().length, ce = C > 0 && F.trim().length < C;
3024
+ }), re = U.getRowModel().rows, ie = U.getFilteredRowModel().rows.length, ae = Math.max(0, f - re.length), oe = U.getState().pagination.pageIndex + 1, se = Math.max(1, U.getPageCount()), W = U.getAllLeafColumns().length, ce = 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(J, {
3039
3039
  size: 16,
3040
3040
  className: "shrink-0 text-slate-400"
3041
3041
  }), /* @__PURE__ */ v("input", {
@@ -3071,7 +3071,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3071
3071
  type: "button",
3072
3072
  onClick: () => ne(e.value),
3073
3073
  className: "shrink-0 rounded text-slate-400 hover:text-slate-700",
3074
- children: /* @__PURE__ */ v(qe, { size: 12 })
3074
+ children: /* @__PURE__ */ v(Je, { size: 12 })
3075
3075
  })]
3076
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",
@@ -3092,7 +3092,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
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(J, { size: 28 })
3096
3096
  }),
3097
3097
  /* @__PURE__ */ v("p", {
3098
3098
  className: "sf-search-table-select__prompt-title",
@@ -3117,20 +3117,20 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3117
3117
  }, e.id);
3118
3118
  }), Array.from({ length: ae }).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: se }).map((e, t) => /* @__PURE__ */ v("td", {
3120
+ children: Array.from({ length: W }).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: se,
3127
+ colSpan: W,
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: se }).map((e, t) => /* @__PURE__ */ v("td", {
3133
+ children: Array.from({ length: W }).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))
@@ -3160,7 +3160,7 @@ var X = /* @__PURE__ */ Pe((/* @__PURE__ */ Me(((e, t) => {
3160
3160
  children: [
3161
3161
  oe,
3162
3162
  " / ",
3163
- W
3163
+ se
3164
3164
  ]
3165
3165
  }),
3166
3166
  /* @__PURE__ */ v("button", {
@@ -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 q({
3561
+ return K({
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 q({
3579
+ return K({
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 q({
3597
+ return K({
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 q({
3615
+ return K({
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 q({
3633
+ return K({
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 q({
3651
+ return K({
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 q({
3669
+ return K({
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 q({
3687
+ return K({
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 q({
3718
+ return K({
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 q({
3734
+ return K({
3735
3735
  tag: "svg",
3736
3736
  attr: { viewBox: "0 0 24 24" },
3737
3737
  child: [{
@@ -4347,42 +4347,42 @@ var mr = (e) => {
4347
4347
  for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
4348
4348
  return !0;
4349
4349
  };
4350
- function _r({ 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 = 20, fillParentHeight: g = !1, maxBodyHeightPx: b, className: x = "", emptyMessage: S = "No hay datos", title: C = "Tabla", subtitle: w, sidePanel: N = !1, onGroupingChange: P, toolbarSlot: F, belowToolbarSlot: I, loading: L = !1, loadingMessage: ee = "Cargando...", isFetching: R = !1, error: z, onRetry: B, onRefresh: te, onRowClick: ne, enableRowSelection: V = !0, getRowActions: H, getBulkActions: U, bulkActionsSlot: re, onSelectionChange: ie, headerVariant: ae = "default", embedded: oe = !1, detail: W, controller: se }) {
4351
- let [ce, le] = h(o), [ue, de] = h(() => o.length > 0 ? {} : !0), [fe, pe] = h([]), [me, he] = h(""), [ge, _e] = h([]), [ve, ye] = h({}), [be, xe] = h({}), [Se, Ce] = h(() => pr(i).map((e) => e.id)), [we, Te] = h({}), [G, Ee] = h({
4350
+ function _r({ 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 = 20, fillParentHeight: g = !1, maxBodyHeightPx: b, className: x = "", emptyMessage: S = "No hay datos", title: C = "Tabla", subtitle: w, sidePanel: N = !1, onGroupingChange: P, toolbarSlot: F, belowToolbarSlot: I, loading: L = !1, loadingMessage: ee = "Cargando...", isFetching: R = !1, error: z, onRetry: B, onRefresh: te, onRowClick: ne, enableRowSelection: V = !0, getRowActions: H, getBulkActions: U, bulkActionsSlot: re, onSelectionChange: ie, headerVariant: ae = "default", searchPlaceholder: oe = "Buscar...", embedded: se = !1, detail: W, controller: ce }) {
4351
+ let [le, ue] = h(o), [de, fe] = h(() => o.length > 0 ? {} : !0), [pe, me] = h([]), [he, ge] = h(""), [_e, ve] = h([]), [ye, be] = h({}), [xe, Se] = h({}), [Ce, we] = h(() => pr(i).map((e) => e.id)), [Te, G] = h({}), [Ee, De] = h({
4352
4352
  pageIndex: 0,
4353
4353
  pageSize: f
4354
- }), [De, Oe] = h(!1), [ke, Ae] = h(!1), [je, Me] = h(!1), [Ne, Pe] = h(null), [Fe, Ie] = h(!1), [Le, Re] = h({}), ze = W != null && (W.render != null || W.getRows != null && W.columns != null), Be = (e) => ze ? W?.isExpandable?.(e) ?? !0 : !1, Ve = (e, t) => {
4355
- let n = Le[e];
4354
+ }), [Oe, ke] = h(!1), [Ae, je] = h(!1), [Me, Ne] = h(!1), [Pe, Fe] = h(null), [Ie, Le] = h(!1), [Re, ze] = h({}), Be = W != null && (W.render != null || W.getRows != null && W.columns != null), Ve = (e) => Be ? W?.isExpandable?.(e) ?? !0 : !1, He = (e, t) => {
4355
+ let n = Re[e];
4356
4356
  if (n != null) return n;
4357
4357
  let r = W?.defaultExpanded;
4358
4358
  return typeof r == "function" ? r(t) : r === !0;
4359
- }, He = (e, t) => {
4360
- let n = !Ve(e, t);
4361
- Re((t) => ({
4359
+ }, Ue = (e, t) => {
4360
+ let n = !He(e, t);
4361
+ ze((t) => ({
4362
4362
  ...t,
4363
4363
  [e]: n
4364
4364
  }));
4365
- }, Ue = p(() => {
4365
+ }, We = p(() => {
4366
4366
  let e = [];
4367
- return ze && e.push("__detail"), V && e.push("__select"), H && e.push("__actions"), e;
4367
+ return Be && e.push("__detail"), V && e.push("__select"), H && e.push("__actions"), e;
4368
4368
  }, [
4369
4369
  V,
4370
4370
  H,
4371
- ze
4372
- ]), We = p(() => {
4371
+ Be
4372
+ ]), Ge = p(() => {
4373
4373
  if (e) return t ?? Yn();
4374
- }, [e, t]), Ge = m(!1), K = m(!1), q = m(void 0), Ke = m(null), qe = m(void 0), J = a ?? ce, Je = p(() => w ?? (!s || J.length === 0 ? null : `Agrupado por: ${J.join(" → ")}`), [
4374
+ }, [e, t]), Ke = m(!1), K = m(!1), qe = m(void 0), Je = m(null), Ye = m(void 0), q = a ?? le, Xe = p(() => w ?? (!s || q.length === 0 ? null : `Agrupado por: ${q.join(" → ")}`), [
4375
4375
  w,
4376
4376
  s,
4377
- J
4378
- ]), Ye = ae === "brand", Xe = p(() => pr(i).map((e) => ({
4377
+ q
4378
+ ]), Ze = ae === "brand", Qe = p(() => pr(i).map((e) => ({
4379
4379
  id: e.id,
4380
4380
  headerLabel: lr(e.header, e.id)
4381
- })).filter((e) => !!e), [i]), Ze = p(() => {
4381
+ })).filter((e) => !!e), [i]), J = p(() => {
4382
4382
  let e = /* @__PURE__ */ new Map();
4383
- for (let t of Xe) e.set(t.id, t.headerLabel);
4383
+ for (let t of Qe) e.set(t.id, t.headerLabel);
4384
4384
  return e;
4385
- }, [Xe]), Qe = p(() => {
4385
+ }, [Qe]), $e = p(() => {
4386
4386
  let e = /* @__PURE__ */ new Map(), t = pr(i);
4387
4387
  for (let n of t) {
4388
4388
  let t = n.id, i = "string";
@@ -4396,15 +4396,15 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4396
4396
  e.set(t, i);
4397
4397
  }
4398
4398
  return e;
4399
- }, [i, r]), $e = p(() => fr(i, we), [we, i]), et = p(() => {
4399
+ }, [i, r]), et = p(() => fr(i, Te), [Te, i]), tt = p(() => {
4400
4400
  let e = [];
4401
- return ze && e.push("__detail"), V && e.push("__select"), e.push(...Se), H && e.push("__actions"), e;
4401
+ return Be && e.push("__detail"), V && e.push("__select"), e.push(...Ce), H && e.push("__actions"), e;
4402
4402
  }, [
4403
- Se,
4403
+ Ce,
4404
4404
  V,
4405
4405
  H,
4406
- ze
4407
- ]), tt = p(() => {
4406
+ Be
4407
+ ]), nt = p(() => {
4408
4408
  let e = {
4409
4409
  id: "__select",
4410
4410
  size: 44,
@@ -4444,11 +4444,11 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4444
4444
  return /* @__PURE__ */ v(cr, {
4445
4445
  row: e.original,
4446
4446
  actions: t,
4447
- open: Ne === n,
4448
- onOpenChange: (e) => Pe(e ? n : null)
4447
+ open: Pe === n,
4448
+ onOpenChange: (e) => Fe(e ? n : null)
4449
4449
  });
4450
4450
  }
4451
- }, n = ze ? {
4451
+ }, n = Be ? {
4452
4452
  id: "__detail",
4453
4453
  size: 40,
4454
4454
  enableSorting: !1,
@@ -4456,14 +4456,14 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4456
4456
  enableHiding: !1,
4457
4457
  header: () => null,
4458
4458
  cell: ({ row: e }) => {
4459
- if (e.getIsGrouped() || !Be(e.original)) return null;
4460
- let t = Ve(e.id, e.original);
4459
+ if (e.getIsGrouped() || !Ve(e.original)) return null;
4460
+ let t = He(e.id, e.original);
4461
4461
  return /* @__PURE__ */ v("button", {
4462
4462
  type: "button",
4463
4463
  className: "sf-table-detail-toggle",
4464
4464
  "aria-expanded": t,
4465
4465
  "aria-label": t ? "Contraer detalle" : "Expandir detalle",
4466
- onClick: () => He(e.id, e.original),
4466
+ onClick: () => Ue(e.id, e.original),
4467
4467
  children: /* @__PURE__ */ v(t ? Gn : Wn, {
4468
4468
  className: "h-4 w-4",
4469
4469
  "aria-hidden": "true"
@@ -4474,38 +4474,38 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4474
4474
  return [
4475
4475
  ...n ? [n] : [],
4476
4476
  ...V ? [e] : [],
4477
- ...$e,
4477
+ ...et,
4478
4478
  ...t ? [t] : []
4479
4479
  ];
4480
4480
  }, [
4481
- $e,
4481
+ et,
4482
4482
  V,
4483
4483
  H,
4484
- Ne,
4485
- ze,
4486
- Le,
4484
+ Pe,
4485
+ Be,
4486
+ Re,
4487
4487
  W
4488
- ]), nt = p(() => {
4489
- let e = Object.entries(we).sort(([e], [t]) => e.localeCompare(t));
4488
+ ]), rt = p(() => {
4489
+ let e = Object.entries(Te).sort(([e], [t]) => e.localeCompare(t));
4490
4490
  return JSON.stringify(e);
4491
- }, [we]), rt = p(() => {
4491
+ }, [Te]), it = p(() => {
4492
4492
  if (s) return k();
4493
- }, [s, nt]);
4493
+ }, [s, rt]);
4494
4494
  u(() => {
4495
- if (!e || !We) return;
4495
+ if (!e || !Ge) return;
4496
4496
  let t = !1;
4497
4497
  return (async () => {
4498
- let n = await We.getItem(ur(e));
4498
+ let n = await Ge.getItem(ur(e));
4499
4499
  if (t || !n) {
4500
- Ge.current = !0;
4500
+ Ke.current = !0;
4501
4501
  return;
4502
4502
  }
4503
4503
  try {
4504
4504
  let e = JSON.parse(n);
4505
4505
  if (K.current) return;
4506
- a == null && Array.isArray(e.grouping) && le(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? de({}) : de(e.expanded)), e.sorting && pe(e.sorting), typeof e.globalFilter == "string" && he(e.globalFilter), e.columnFilters && _e(e.columnFilters), e.columnVisibility && ye(e.columnVisibility), e.columnOrder && Ce(e.columnOrder), e.columnAggregations && Te(e.columnAggregations), e.pagination && Ee(e.pagination);
4506
+ a == null && Array.isArray(e.grouping) && ue(e.grouping), e.expanded != null && (e.expanded === !0 && Array.isArray(e.grouping) && e.grouping.length > 0 ? fe({}) : fe(e.expanded)), e.sorting && me(e.sorting), typeof e.globalFilter == "string" && ge(e.globalFilter), e.columnFilters && ve(e.columnFilters), e.columnVisibility && be(e.columnVisibility), e.columnOrder && we(e.columnOrder), e.columnAggregations && G(e.columnAggregations), e.pagination && De(e.pagination);
4507
4507
  } catch {} finally {
4508
- Ge.current = !0;
4508
+ Ke.current = !0;
4509
4509
  }
4510
4510
  })(), () => {
4511
4511
  t = !0;
@@ -4513,101 +4513,101 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4513
4513
  }, [
4514
4514
  a,
4515
4515
  e,
4516
- We
4516
+ Ge
4517
4517
  ]), u(() => {
4518
4518
  let e = pr(i).map((e) => e.id);
4519
- Ce((t) => {
4519
+ we((t) => {
4520
4520
  let n = t.filter((t) => e.includes(t));
4521
4521
  for (let t of e) n.includes(t) || n.push(t);
4522
4522
  return n;
4523
4523
  });
4524
4524
  }, [i]), u(() => {
4525
- if (!e || !We || !Ge.current) return;
4525
+ if (!e || !Ge || !Ke.current) return;
4526
4526
  let t = {
4527
- grouping: a == null ? J : void 0,
4528
- expanded: ue,
4529
- sorting: fe,
4530
- globalFilter: me,
4531
- columnFilters: ge,
4532
- columnVisibility: ve,
4533
- columnOrder: Se,
4534
- columnAggregations: we,
4535
- pagination: G
4527
+ grouping: a == null ? q : void 0,
4528
+ expanded: de,
4529
+ sorting: pe,
4530
+ globalFilter: he,
4531
+ columnFilters: _e,
4532
+ columnVisibility: ye,
4533
+ columnOrder: Ce,
4534
+ columnAggregations: Te,
4535
+ pagination: Ee
4536
4536
  };
4537
- return window.clearTimeout(q.current), q.current = window.setTimeout(() => {
4538
- We.setItem(ur(e), JSON.stringify(t)).catch(() => {});
4537
+ return window.clearTimeout(qe.current), qe.current = window.setTimeout(() => {
4538
+ Ge.setItem(ur(e), JSON.stringify(t)).catch(() => {});
4539
4539
  }, 250), () => {
4540
- window.clearTimeout(q.current);
4540
+ window.clearTimeout(qe.current);
4541
4541
  };
4542
4542
  }, [
4543
- ge,
4544
- we,
4545
- Se,
4546
- ve,
4547
- ue,
4548
- me,
4543
+ _e,
4544
+ Te,
4545
+ Ce,
4546
+ ye,
4547
+ de,
4548
+ he,
4549
4549
  a,
4550
4550
  e,
4551
- G,
4552
- J,
4553
- We,
4554
- fe
4551
+ Ee,
4552
+ q,
4553
+ Ge,
4554
+ pe
4555
4555
  ]);
4556
4556
  let Y = M({
4557
4557
  data: r,
4558
- columns: tt,
4558
+ columns: nt,
4559
4559
  debugTable: !1,
4560
4560
  state: {
4561
- grouping: J,
4562
- expanded: ue,
4563
- sorting: fe,
4564
- globalFilter: me,
4565
- columnFilters: ge,
4566
- columnVisibility: ve,
4567
- columnOrder: et,
4568
- pagination: G,
4569
- rowSelection: be
4561
+ grouping: q,
4562
+ expanded: de,
4563
+ sorting: pe,
4564
+ globalFilter: he,
4565
+ columnFilters: _e,
4566
+ columnVisibility: ye,
4567
+ columnOrder: tt,
4568
+ pagination: Ee,
4569
+ rowSelection: xe
4570
4570
  },
4571
4571
  onGroupingChange: (e) => {
4572
4572
  K.current = !0;
4573
- let t = typeof e == "function" ? e(J) : e;
4574
- le((e) => gr(e, t) ? e : t), gr(J, t) || P?.(t);
4573
+ let t = typeof e == "function" ? e(q) : e;
4574
+ ue((e) => gr(e, t) ? e : t), gr(q, t) || P?.(t);
4575
4575
  },
4576
4576
  onExpandedChange: (e) => {
4577
- K.current = !0, de(e);
4577
+ K.current = !0, fe(e);
4578
4578
  },
4579
4579
  onSortingChange: (e) => {
4580
- K.current = !0, pe(e);
4580
+ K.current = !0, me(e);
4581
4581
  },
4582
4582
  onGlobalFilterChange: (e) => {
4583
- K.current = !0, he(e);
4583
+ K.current = !0, ge(e);
4584
4584
  },
4585
4585
  onColumnFiltersChange: (e) => {
4586
- K.current = !0, _e(e);
4586
+ K.current = !0, ve(e);
4587
4587
  },
4588
4588
  onColumnVisibilityChange: (e) => {
4589
- K.current = !0, ye(e);
4589
+ K.current = !0, be(e);
4590
4590
  },
4591
4591
  onRowSelectionChange: (e) => {
4592
- K.current = !0, xe(e);
4592
+ K.current = !0, Se(e);
4593
4593
  },
4594
4594
  onColumnOrderChange: (e) => {
4595
4595
  K.current = !0;
4596
- let t = (typeof e == "function" ? e(et) : e).filter((e) => !Ue.includes(e));
4597
- Ce(t);
4596
+ let t = (typeof e == "function" ? e(tt) : e).filter((e) => !We.includes(e));
4597
+ we(t);
4598
4598
  },
4599
4599
  onPaginationChange: (e) => {
4600
- K.current = !0, Ee(e);
4600
+ K.current = !0, De(e);
4601
4601
  },
4602
4602
  autoResetExpanded: !1,
4603
4603
  autoResetPageIndex: !1,
4604
4604
  enableGrouping: s,
4605
4605
  enableSorting: c,
4606
- paginateExpandedRows: J.length === 0,
4606
+ paginateExpandedRows: q.length === 0,
4607
4607
  groupedColumnMode: "reorder",
4608
4608
  getCoreRowModel: E(),
4609
4609
  getFilteredRowModel: l ? O() : void 0,
4610
- getGroupedRowModel: rt,
4610
+ getGroupedRowModel: it,
4611
4611
  getSortedRowModel: c ? j() : void 0,
4612
4612
  getExpandedRowModel: D(),
4613
4613
  getSubRows: (e) => e.subRows,
@@ -4615,27 +4615,27 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4615
4615
  filterFns: { columnFilter: ar },
4616
4616
  enableRowSelection: V
4617
4617
  });
4618
- Ke.current = Y;
4619
- let it = Y.getSelectedRowModel().flatRows.map((e) => e.original);
4618
+ Je.current = Y;
4619
+ let at = Y.getSelectedRowModel().flatRows.map((e) => e.original);
4620
4620
  return u(() => {
4621
- it.length === 0 && Ie(!1);
4622
- }, [it.length]), u(() => {
4621
+ at.length === 0 && Le(!1);
4622
+ }, [at.length]), u(() => {
4623
4623
  Y.setOptions((e) => ({
4624
4624
  ...e,
4625
- columns: tt
4625
+ columns: nt
4626
4626
  }));
4627
4627
  }, [
4628
- tt,
4628
+ nt,
4629
4629
  Y,
4630
- nt
4630
+ rt
4631
4631
  ]), u(() => {
4632
4632
  ie?.(Y.getSelectedRowModel().flatRows.map((e) => e.original));
4633
4633
  }, [
4634
4634
  ie,
4635
- be,
4635
+ xe,
4636
4636
  Y
4637
4637
  ]), u(() => {
4638
- se && se.register({
4638
+ ce && ce.register({
4639
4639
  selection: {
4640
4640
  selectRowFn: (e) => {
4641
4641
  let t = Array.isArray(e) ? e : [e];
@@ -4651,37 +4651,37 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4651
4651
  },
4652
4652
  row: {
4653
4653
  selectRowFn: (e) => {
4654
- qe.current = e, Y.resetRowSelection();
4654
+ Ye.current = e, Y.resetRowSelection();
4655
4655
  let t = Y.getPrePaginationRowModel().flatRows.find((t) => t.original === e);
4656
4656
  t && t.toggleSelected(!0);
4657
4657
  },
4658
4658
  cleanSelectionFn: () => {
4659
- qe.current = void 0, Y.resetRowSelection();
4659
+ Ye.current = void 0, Y.resetRowSelection();
4660
4660
  },
4661
- getSelectedRowFn: () => qe.current
4661
+ getSelectedRowFn: () => Ye.current
4662
4662
  }
4663
4663
  });
4664
4664
  }, [
4665
- se,
4666
- be,
4665
+ ce,
4666
+ xe,
4667
4667
  Y
4668
4668
  ]), u(() => {
4669
- s && J.length !== 0 && Y.setGrouping(J);
4669
+ s && q.length !== 0 && Y.setGrouping(q);
4670
4670
  }, [
4671
4671
  s,
4672
- J,
4672
+ q,
4673
4673
  Y,
4674
- nt
4674
+ rt
4675
4675
  ]), /* @__PURE__ */ y("div", {
4676
4676
  className: g ? "flex h-full w-full min-h-0 flex-col" : "flex w-full min-h-0 flex-col",
4677
4677
  style: g ? void 0 : { maxHeight: "100dvh" },
4678
4678
  children: [
4679
- N && De && /* @__PURE__ */ y("div", {
4679
+ N && Oe && /* @__PURE__ */ y("div", {
4680
4680
  className: "fixed inset-0 z-50",
4681
4681
  children: [/* @__PURE__ */ v("button", {
4682
4682
  type: "button",
4683
4683
  "aria-label": "Cerrar panel",
4684
- onClick: () => Oe(!1),
4684
+ onClick: () => ke(!1),
4685
4685
  className: "sf-table-panel-scrim"
4686
4686
  }), /* @__PURE__ */ y("aside", {
4687
4687
  className: "sf-table-panel",
@@ -4695,7 +4695,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4695
4695
  children: "Columns, Group By, Aggregations"
4696
4696
  })] }), /* @__PURE__ */ v("button", {
4697
4697
  type: "button",
4698
- onClick: () => Oe(!1),
4698
+ onClick: () => ke(!1),
4699
4699
  className: "sf-table-panel__close",
4700
4700
  children: "Ocultar"
4701
4701
  })]
@@ -4709,8 +4709,8 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4709
4709
  children: "Columns"
4710
4710
  }), /* @__PURE__ */ v("div", {
4711
4711
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4712
- children: Se.map((e) => Y.getColumn(e)).filter(Boolean).map((e, t) => {
4713
- let n = e.id, r = e.getCanHide?.() ?? !0, i = e.getIsVisible(), a = Ze.get(n) ?? n;
4712
+ children: Ce.map((e) => Y.getColumn(e)).filter(Boolean).map((e, t) => {
4713
+ let n = e.id, r = e.getCanHide?.() ?? !0, i = e.getIsVisible(), a = J.get(n) ?? n;
4714
4714
  return /* @__PURE__ */ y("div", {
4715
4715
  draggable: !0,
4716
4716
  onDragStart: (e) => {
@@ -4726,8 +4726,8 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4726
4726
  e.preventDefault();
4727
4727
  let r = mr(e);
4728
4728
  if (!r || r === n) return;
4729
- let i = Se.indexOf(r), a = t;
4730
- i !== -1 && Y.setColumnOrder(hr(Se, i, a));
4729
+ let i = Ce.indexOf(r), a = t;
4730
+ i !== -1 && Y.setColumnOrder(hr(Ce, i, a));
4731
4731
  },
4732
4732
  className: "sf-table-column-row",
4733
4733
  children: [/* @__PURE__ */ y("span", {
@@ -4764,7 +4764,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4764
4764
  let n = Y.getColumn(t);
4765
4765
  if (!n || !n.getCanGroup()) return;
4766
4766
  n.getIsVisible() || n.toggleVisibility(!0);
4767
- let r = J.includes(t) ? J : [...J, t];
4767
+ let r = q.includes(t) ? q : [...q, t];
4768
4768
  Y.setGrouping(r);
4769
4769
  },
4770
4770
  children: [/* @__PURE__ */ y("div", {
@@ -4772,7 +4772,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4772
4772
  children: [/* @__PURE__ */ v("p", {
4773
4773
  className: "sf-table-panel__section-title",
4774
4774
  children: "Group By"
4775
- }), J.length > 0 && /* @__PURE__ */ v("button", {
4775
+ }), q.length > 0 && /* @__PURE__ */ v("button", {
4776
4776
  type: "button",
4777
4777
  onClick: () => Y.resetGrouping(),
4778
4778
  className: "sf-table-panel-btn-sm",
@@ -4780,12 +4780,12 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4780
4780
  })]
4781
4781
  }), /* @__PURE__ */ v("div", {
4782
4782
  className: "sf-table-panel-stack sf-table-panel-stack--tight",
4783
- children: J.length === 0 ? /* @__PURE__ */ v("div", {
4783
+ children: q.length === 0 ? /* @__PURE__ */ v("div", {
4784
4784
  className: "sf-table-panel-empty",
4785
4785
  children: "Arrastra columnas aquí"
4786
- }) : J.map((e) => {
4786
+ }) : q.map((e) => {
4787
4787
  if (!Y.getColumn(e)) return null;
4788
- let t = Ze.get(e) ?? e;
4788
+ let t = J.get(e) ?? e;
4789
4789
  return /* @__PURE__ */ y("div", {
4790
4790
  className: "sf-table-panel-row",
4791
4791
  children: [/* @__PURE__ */ v("span", {
@@ -4793,7 +4793,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4793
4793
  children: t
4794
4794
  }), /* @__PURE__ */ v("button", {
4795
4795
  type: "button",
4796
- onClick: () => Y.setGrouping(J.filter((t) => t !== e)),
4796
+ onClick: () => Y.setGrouping(q.filter((t) => t !== e)),
4797
4797
  className: "sf-table-panel-link",
4798
4798
  children: "Quitar"
4799
4799
  })]
@@ -4809,7 +4809,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4809
4809
  onDrop: (e) => {
4810
4810
  e.preventDefault();
4811
4811
  let t = mr(e);
4812
- t && Y.getColumn(t) && Te((e) => (K.current = !0, e[t] ? e : {
4812
+ t && Y.getColumn(t) && G((e) => (K.current = !0, e[t] ? e : {
4813
4813
  ...e,
4814
4814
  [t]: "sum"
4815
4815
  }));
@@ -4819,10 +4819,10 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4819
4819
  children: [/* @__PURE__ */ v("p", {
4820
4820
  className: "sf-table-panel__section-title",
4821
4821
  children: "Aggregations"
4822
- }), Object.keys(we).length > 0 && /* @__PURE__ */ v("button", {
4822
+ }), Object.keys(Te).length > 0 && /* @__PURE__ */ v("button", {
4823
4823
  type: "button",
4824
4824
  onClick: () => {
4825
- K.current = !0, Te({});
4825
+ K.current = !0, G({});
4826
4826
  },
4827
4827
  className: "sf-table-panel-btn-sm",
4828
4828
  children: "Clear"
@@ -4832,21 +4832,21 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4832
4832
  children: [/* @__PURE__ */ v("p", {
4833
4833
  className: "sf-table-panel__subtitle",
4834
4834
  children: "Nota: solo se ve el resultado cuando la tabla está agrupada."
4835
- }), Object.keys(we).length === 0 ? /* @__PURE__ */ v("div", {
4835
+ }), Object.keys(Te).length === 0 ? /* @__PURE__ */ v("div", {
4836
4836
  className: "sf-table-panel-empty",
4837
4837
  children: "Arrastra columnas aquí"
4838
- }) : Object.entries(we).map(([e, t]) => /* @__PURE__ */ y("div", {
4838
+ }) : Object.entries(Te).map(([e, t]) => /* @__PURE__ */ y("div", {
4839
4839
  className: "sf-table-panel-row",
4840
4840
  children: [
4841
4841
  /* @__PURE__ */ v("span", {
4842
4842
  className: "min-w-0 flex-1 truncate",
4843
- children: Ze.get(e) ?? e
4843
+ children: J.get(e) ?? e
4844
4844
  }),
4845
4845
  /* @__PURE__ */ v("select", {
4846
4846
  value: t,
4847
4847
  onChange: (t) => {
4848
4848
  let n = t.target.value;
4849
- K.current = !0, Te((t) => ({
4849
+ K.current = !0, G((t) => ({
4850
4850
  ...t,
4851
4851
  [e]: n
4852
4852
  }));
@@ -4859,7 +4859,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4859
4859
  }),
4860
4860
  /* @__PURE__ */ v("button", {
4861
4861
  type: "button",
4862
- onClick: () => Te((t) => {
4862
+ onClick: () => G((t) => {
4863
4863
  K.current = !0;
4864
4864
  let n = { ...t };
4865
4865
  return delete n[e], n;
@@ -4875,40 +4875,40 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4875
4875
  })]
4876
4876
  })]
4877
4877
  }),
4878
- N && ke && /* @__PURE__ */ v(or, {
4879
- open: ke,
4880
- onClose: () => Ae(!1),
4881
- columnsMeta: Xe,
4882
- headerLabelById: Ze,
4883
- columnTypeById: Qe,
4884
- columnFilters: ge,
4878
+ N && Ae && /* @__PURE__ */ v(or, {
4879
+ open: Ae,
4880
+ onClose: () => je(!1),
4881
+ columnsMeta: Qe,
4882
+ headerLabelById: J,
4883
+ columnTypeById: $e,
4884
+ columnFilters: _e,
4885
4885
  table: Y,
4886
4886
  markUserEdit: () => {
4887
4887
  K.current = !0;
4888
4888
  }
4889
4889
  }),
4890
- N && je && /* @__PURE__ */ v(sr, {
4891
- open: je,
4892
- onClose: () => Me(!1),
4893
- columnsMeta: Xe,
4894
- headerLabelById: Ze,
4895
- sorting: fe,
4890
+ N && Me && /* @__PURE__ */ v(sr, {
4891
+ open: Me,
4892
+ onClose: () => Ne(!1),
4893
+ columnsMeta: Qe,
4894
+ headerLabelById: J,
4895
+ sorting: pe,
4896
4896
  table: Y,
4897
4897
  markUserEdit: () => {
4898
4898
  K.current = !0;
4899
4899
  }
4900
4900
  }),
4901
4901
  /* @__PURE__ */ y("div", {
4902
- className: (0, X.default)(oe ? "sf-table--embedded w-full" : "sf-table-shell w-full", x),
4902
+ className: (0, X.default)(se ? "sf-table--embedded w-full" : "sf-table-shell w-full", x),
4903
4903
  children: [
4904
- !oe && /* @__PURE__ */ y("div", {
4904
+ !se && /* @__PURE__ */ y("div", {
4905
4905
  className: "sf-table-toolbar",
4906
4906
  children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
4907
4907
  className: "sf-table-title",
4908
4908
  children: C
4909
- }), Je != null && Je !== "" && /* @__PURE__ */ v("p", {
4909
+ }), Xe != null && Xe !== "" && /* @__PURE__ */ v("p", {
4910
4910
  className: "sf-table-subtitle",
4911
- children: Je
4911
+ children: Xe
4912
4912
  })] }), /* @__PURE__ */ y("div", {
4913
4913
  className: "sf-table-toolbar-actions",
4914
4914
  children: [
@@ -4938,7 +4938,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4938
4938
  /* @__PURE__ */ v("button", {
4939
4939
  type: "button",
4940
4940
  onClick: () => {
4941
- Ae(!1), Me(!1), Oe(!0);
4941
+ je(!1), Ne(!1), ke(!0);
4942
4942
  },
4943
4943
  "aria-label": "Abrir panel de tabla",
4944
4944
  className: "sf-table-toolbar-btn",
@@ -4950,7 +4950,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4950
4950
  l && /* @__PURE__ */ v("button", {
4951
4951
  type: "button",
4952
4952
  onClick: () => {
4953
- Oe(!1), Me(!1), Ae(!0);
4953
+ ke(!1), Ne(!1), je(!0);
4954
4954
  },
4955
4955
  "aria-label": "Abrir panel de filtros",
4956
4956
  className: "sf-table-toolbar-btn",
@@ -4962,7 +4962,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4962
4962
  c && /* @__PURE__ */ v("button", {
4963
4963
  type: "button",
4964
4964
  onClick: () => {
4965
- Oe(!1), Ae(!1), Me(!0);
4965
+ ke(!1), je(!1), Ne(!0);
4966
4966
  },
4967
4967
  "aria-label": "Abrir panel de ordenamiento",
4968
4968
  className: "sf-table-toolbar-btn",
@@ -4974,40 +4974,40 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
4974
4974
  ]
4975
4975
  }),
4976
4976
  l && /* @__PURE__ */ v("input", {
4977
- value: me,
4977
+ value: he,
4978
4978
  onChange: (e) => {
4979
- K.current = !0, he(e.target.value);
4979
+ K.current = !0, ge(e.target.value);
4980
4980
  },
4981
- placeholder: "Buscar...",
4981
+ placeholder: oe,
4982
4982
  className: "sf-table-search"
4983
4983
  }),
4984
- s && J.length > 0 && /* @__PURE__ */ v("div", {
4984
+ s && q.length > 0 && /* @__PURE__ */ v("div", {
4985
4985
  className: "sf-table-group-hint",
4986
4986
  children: "Agrupado"
4987
4987
  }),
4988
- typeof F == "function" ? F(it, { clearSelection: () => Y.resetRowSelection() }) : F,
4989
- V && it.length > 0 && /* @__PURE__ */ y("div", {
4988
+ typeof F == "function" ? F(at, { clearSelection: () => Y.resetRowSelection() }) : F,
4989
+ V && at.length > 0 && /* @__PURE__ */ y("div", {
4990
4990
  className: "flex items-center gap-2",
4991
4991
  children: [(() => {
4992
- let e = U?.(it, { clearSelection: () => Y.resetRowSelection() }) ?? [];
4992
+ let e = U?.(at, { clearSelection: () => Y.resetRowSelection() }) ?? [];
4993
4993
  return e.length === 0 ? null : /* @__PURE__ */ y("div", {
4994
4994
  className: "relative",
4995
4995
  children: [/* @__PURE__ */ v("button", {
4996
4996
  type: "button",
4997
4997
  "aria-label": "Acciones",
4998
4998
  className: "sf-table-row-action-trigger",
4999
- onClick: () => Ie((e) => !e),
4999
+ onClick: () => Le((e) => !e),
5000
5000
  children: /* @__PURE__ */ v(Hn, {
5001
5001
  className: "h-4 w-4",
5002
5002
  "aria-hidden": "true"
5003
5003
  })
5004
- }), Fe && /* @__PURE__ */ v("div", {
5004
+ }), Ie && /* @__PURE__ */ v("div", {
5005
5005
  className: "sf-table-row-action-menu min-w-[12.5rem]",
5006
5006
  children: e.map((e) => /* @__PURE__ */ y("button", {
5007
5007
  type: "button",
5008
5008
  disabled: e.disabled,
5009
5009
  onClick: () => {
5010
- Ie(!1), e.onSelect(it, { clearSelection: () => Y.resetRowSelection() });
5010
+ Le(!1), e.onSelect(at, { clearSelection: () => Y.resetRowSelection() });
5011
5011
  },
5012
5012
  children: [e.icon ? /* @__PURE__ */ v("span", {
5013
5013
  className: "sf-table-row-action-menu__icon",
@@ -5019,7 +5019,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5019
5019
  }, e.label))
5020
5020
  })]
5021
5021
  });
5022
- })(), re?.(it, { clearSelection: () => Y.resetRowSelection() })]
5022
+ })(), re?.(at, { clearSelection: () => Y.resetRowSelection() })]
5023
5023
  })
5024
5024
  ]
5025
5025
  })]
@@ -5035,7 +5035,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5035
5035
  }),
5036
5036
  I != null && /* @__PURE__ */ v("div", {
5037
5037
  className: "mb-3",
5038
- children: typeof I == "function" ? I(it, { clearSelection: () => Y.resetRowSelection() }) : I
5038
+ children: typeof I == "function" ? I(at, { clearSelection: () => Y.resetRowSelection() }) : I
5039
5039
  }),
5040
5040
  /* @__PURE__ */ v("div", {
5041
5041
  className: "min-h-0 flex-1",
@@ -5043,13 +5043,13 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5043
5043
  children: /* @__PURE__ */ v("div", {
5044
5044
  className: "sf-table-scroll h-full",
5045
5045
  children: /* @__PURE__ */ y("table", {
5046
- className: (0, X.default)("sf-table min-w-max w-full border-collapse text-sm", Ye && "sf-table--brand-header"),
5046
+ className: (0, X.default)("sf-table min-w-max w-full border-collapse text-sm", Ze && "sf-table--brand-header"),
5047
5047
  children: [/* @__PURE__ */ v("thead", {
5048
- className: (0, X.default)(Ye && "sf-table__head--brand"),
5048
+ className: (0, X.default)(Ze && "sf-table__head--brand"),
5049
5049
  children: Y.getHeaderGroups().map((e) => /* @__PURE__ */ v("tr", { children: e.headers.map((e) => /* @__PURE__ */ v("th", {
5050
5050
  colSpan: e.colSpan,
5051
5051
  style: e.colSpan > 1 ? void 0 : { width: e.getSize() },
5052
- className: (0, X.default)(Ye && "sf-table__th--brand", e.column.id === "__actions" && "right-0 z-2"),
5052
+ className: (0, X.default)(Ze && "sf-table__th--brand", e.column.id === "__actions" && "right-0 z-2"),
5053
5053
  children: e.isPlaceholder ? null : /* @__PURE__ */ v("div", {
5054
5054
  className: "flex items-center gap-2",
5055
5055
  children: e.column.getCanSort() ? /* @__PURE__ */ y("button", {
@@ -5082,7 +5082,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5082
5082
  className: "sf-table-empty",
5083
5083
  children: S
5084
5084
  }) }) : /* @__PURE__ */ v(_, { children: Y.getRowModel().rows.map((e) => {
5085
- let t = ze && !e.getIsGrouped() && Be(e.original) && Ve(e.id, e.original);
5085
+ let t = Be && !e.getIsGrouped() && Ve(e.original) && He(e.id, e.original);
5086
5086
  return /* @__PURE__ */ y(n, { children: [/* @__PURE__ */ v("tr", {
5087
5087
  className: (0, X.default)("sf-table-row", e.getIsGrouped() && "sf-table-row--group", ne && !e.getIsGrouped() && "sf-table-row--clickable", t && "sf-table-row--detail-open"),
5088
5088
  onClick: ne && !e.getIsGrouped() ? (t) => {
@@ -5110,7 +5110,7 @@ function _r({ id: e, stateStore: t, data: r, columns: i, grouping: a, defaultGro
5110
5110
  ]
5111
5111
  }) : r ? (() => {
5112
5112
  let e = t.column.id;
5113
- return we[e] == null ? null : T(t.column.columnDef.aggregatedCell ?? t.column.columnDef.cell, t.getContext());
5113
+ return Te[e] == null ? null : T(t.column.columnDef.aggregatedCell ?? t.column.columnDef.cell, t.getContext());
5114
5114
  })() : i ? null : T(t.column.columnDef.cell, t.getContext())
5115
5115
  }, t.id);
5116
5116
  })
@@ -5766,7 +5766,7 @@ var yr = (e) => {
5766
5766
  "aria-label": i,
5767
5767
  title: i,
5768
5768
  className: "sf-row-action sf-row-action--delete",
5769
- children: /* @__PURE__ */ v(Ye, {
5769
+ children: /* @__PURE__ */ v(Xe, {
5770
5770
  className: "h-4 w-4",
5771
5771
  "aria-hidden": "true"
5772
5772
  })
@@ -5777,7 +5777,7 @@ var yr = (e) => {
5777
5777
  type: "button",
5778
5778
  variant: "outline",
5779
5779
  loading: i,
5780
- icon: i ? void 0 : /* @__PURE__ */ v(qe, {
5780
+ icon: i ? void 0 : /* @__PURE__ */ v(Je, {
5781
5781
  className: "h-4 w-4",
5782
5782
  "aria-hidden": "true"
5783
5783
  }),
@@ -6198,7 +6198,7 @@ var yr = (e) => {
6198
6198
  onClick: t,
6199
6199
  "aria-label": "Cerrar",
6200
6200
  className: "sf-modal-close",
6201
- children: /* @__PURE__ */ v(qe, {
6201
+ children: /* @__PURE__ */ v(Je, {
6202
6202
  className: "h-5 w-5",
6203
6203
  "aria-hidden": "true"
6204
6204
  })
@@ -6633,7 +6633,7 @@ var yr = (e) => {
6633
6633
  onClick: t,
6634
6634
  "aria-label": "Cerrar",
6635
6635
  className: "sf-drawer__close",
6636
- children: /* @__PURE__ */ v(qe, {
6636
+ children: /* @__PURE__ */ v(Je, {
6637
6637
  className: "h-5 w-5",
6638
6638
  "aria-hidden": "true"
6639
6639
  })
@@ -6922,7 +6922,7 @@ var yr = (e) => {
6922
6922
  onClick: r,
6923
6923
  "aria-label": "Cerrar panel",
6924
6924
  className: "sf-side-panel__close",
6925
- children: /* @__PURE__ */ v(qe, {
6925
+ children: /* @__PURE__ */ v(Je, {
6926
6926
  className: "h-4 w-4",
6927
6927
  "aria-hidden": "true"
6928
6928
  })
@@ -7548,7 +7548,7 @@ var yr = (e) => {
7548
7548
  children: [
7549
7549
  n && /* @__PURE__ */ y("div", {
7550
7550
  className: "sf-maestro-layout__search",
7551
- children: [/* @__PURE__ */ v(Qe, {
7551
+ children: [/* @__PURE__ */ v(J, {
7552
7552
  className: "sf-maestro-layout__search-icon",
7553
7553
  "aria-hidden": "true"
7554
7554
  }), /* @__PURE__ */ v(Sa, {
@@ -7590,7 +7590,7 @@ var yr = (e) => {
7590
7590
  left: `${12 + n / Math.max(e.length - 1, 1) * 76}%`,
7591
7591
  top: n % 2 == 0 ? "38%" : "58%"
7592
7592
  },
7593
- children: [/* @__PURE__ */ v(it, {}), /* @__PURE__ */ y("span", { children: [
7593
+ children: [/* @__PURE__ */ v(Y, {}), /* @__PURE__ */ y("span", { children: [
7594
7594
  t.order,
7595
7595
  ". ",
7596
7596
  t.name
@@ -7677,7 +7677,7 @@ var yr = (e) => {
7677
7677
  className: "sf-itinerary-editor__stop-remove",
7678
7678
  "aria-label": `Eliminar parada ${e.name}`,
7679
7679
  onClick: e.onRemove,
7680
- children: /* @__PURE__ */ v(Ye, { "aria-hidden": "true" })
7680
+ children: /* @__PURE__ */ v(Xe, { "aria-hidden": "true" })
7681
7681
  })]
7682
7682
  })]
7683
7683
  })
@@ -8648,7 +8648,7 @@ var yr = (e) => {
8648
8648
  className: "sf-app-shell-default-topbar__icon-btn",
8649
8649
  "aria-label": _.mode === "dark" ? "Cambiar a modo claro" : "Cambiar a modo oscuro",
8650
8650
  onClick: _.onToggle,
8651
- children: _.mode === "dark" ? /* @__PURE__ */ v(Xe, { "aria-hidden": "true" }) : /* @__PURE__ */ v(nt, { "aria-hidden": "true" })
8651
+ children: _.mode === "dark" ? /* @__PURE__ */ v(Ze, { "aria-hidden": "true" }) : /* @__PURE__ */ v(nt, { "aria-hidden": "true" })
8652
8652
  }),
8653
8653
  b && /* @__PURE__ */ v(ki, {
8654
8654
  className: "sf-app-shell-default-topbar__notification",
@@ -9159,7 +9159,7 @@ var yr = (e) => {
9159
9159
  onBlur: () => setTimeout(() => g(!1), 200)
9160
9160
  }), /* @__PURE__ */ v("span", {
9161
9161
  className: "sf-geocoder-icon",
9162
- children: o ? "..." : /* @__PURE__ */ v(Qe, {
9162
+ children: o ? "..." : /* @__PURE__ */ v(J, {
9163
9163
  "aria-hidden": "true",
9164
9164
  className: "h-3.5 w-3.5"
9165
9165
  })
@@ -9438,10 +9438,10 @@ var yr = (e) => {
9438
9438
  children: u ? /* @__PURE__ */ v(be, {
9439
9439
  width: "100%",
9440
9440
  height: "100%",
9441
- children: n === "bar" ? /* @__PURE__ */ v(se, {
9441
+ children: n === "bar" ? /* @__PURE__ */ v(W, {
9442
9442
  data: e,
9443
9443
  margin: d,
9444
- children: /* @__PURE__ */ v(W, {
9444
+ children: /* @__PURE__ */ v(se, {
9445
9445
  dataKey: t,
9446
9446
  fill: l,
9447
9447
  radius: [
@@ -9529,13 +9529,13 @@ var yr = (e) => {
9529
9529
  }, _s = {
9530
9530
  comfortable: "mb-2",
9531
9531
  compact: "mb-1"
9532
- }, vs = ({ label: e, value: t, sublabel: n, icon: r, iconClassName: i, trend: a, trendLabel: o, trendDirection: s = "up-good", accentTone: c, progress: l, valueFormat: u, formatOptions: d, sparkline: f, layout: p = "stacked", variant: m = "default", size: h = "md", density: g = "comfortable", accentBar: _, iconStyle: b = "solid", labelWrap: x = !1, className: S, onClick: C }) => {
9533
- let w = a != null, T = w && a >= 0, E = w ? s === "neutral" ? null : s === "down-good" ? !T : T : null, D = l ? us(l.value, l.max) : null, O = l?.label ?? (D === null ? void 0 : `${Math.round(D)}%`), k = _ ?? p === "stacked", A = (e) => typeof e == "number" ? ls(u, d)(e) : e, j = !l && f && f.data.length > 0, M = (e) => {
9532
+ }, vs = ({ label: e, value: t, sublabel: n, icon: r, iconClassName: i, trend: a, trendLabel: o, trendDirection: s = "up-good", accentTone: c, progress: l, valueFormat: u, formatOptions: d, sparkline: f, layout: p = "stacked", variant: m = "default", size: h = "md", density: g = "comfortable", accentBar: _, iconStyle: b = "solid", labelWrap: x = !1, className: S, onClick: C, selected: w = !1, showChevron: T = !0 }) => {
9533
+ let E = a != null, D = E && a >= 0, O = E ? s === "neutral" ? null : s === "down-good" ? !D : D : null, k = l ? us(l.value, l.max) : null, A = l?.label ?? (k === null ? void 0 : `${Math.round(k)}%`), j = _ ?? p === "stacked", M = (e) => typeof e == "number" ? ls(u, d)(e) : e, N = !l && f && f.data.length > 0, P = (e) => {
9534
9534
  C && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C());
9535
- }, N = D !== null && /* @__PURE__ */ y("div", {
9535
+ }, F = k !== null && /* @__PURE__ */ y("div", {
9536
9536
  className: "mt-2 flex items-center gap-2",
9537
9537
  role: "progressbar",
9538
- "aria-valuenow": Math.round(D),
9538
+ "aria-valuenow": Math.round(k),
9539
9539
  "aria-valuemin": 0,
9540
9540
  "aria-valuemax": 100,
9541
9541
  children: [/* @__PURE__ */ v("div", {
@@ -9543,15 +9543,15 @@ var yr = (e) => {
9543
9543
  children: /* @__PURE__ */ v("div", {
9544
9544
  className: "h-full rounded-full transition-[width]",
9545
9545
  style: {
9546
- width: `${D}%`,
9546
+ width: `${k}%`,
9547
9547
  backgroundColor: c ? ss[c] : "var(--sf-kpi-accent-slate)"
9548
9548
  }
9549
9549
  })
9550
- }), O && /* @__PURE__ */ v("span", {
9550
+ }), A && /* @__PURE__ */ v("span", {
9551
9551
  className: "shrink-0 text-xs font-semibold tabular-nums sf-card-muted",
9552
- children: O
9552
+ children: A
9553
9553
  })]
9554
- }), P = j && /* @__PURE__ */ v("div", {
9554
+ }), I = N && /* @__PURE__ */ v("div", {
9555
9555
  className: "mt-2",
9556
9556
  children: /* @__PURE__ */ v(as, {
9557
9557
  data: f.data,
@@ -9566,11 +9566,12 @@ var yr = (e) => {
9566
9566
  color: a
9567
9567
  } : { background: a };
9568
9568
  return /* @__PURE__ */ y("div", {
9569
- className: (0, X.default)("sf-card flex items-center gap-3", fs[h], m === "filled" ? "sf-kpi-card--filled" : c && k && "sf-kpi-card", m !== "filled" && c && k && os[c], C && "sf-card--interactive", S),
9569
+ className: (0, X.default)("sf-card flex items-center gap-3", fs[h], m === "filled" ? "sf-kpi-card--filled" : c && j && "sf-kpi-card", m !== "filled" && c && j && os[c], C && "sf-card--interactive", w && "sf-kpi-card--selected", S),
9570
9570
  onClick: C,
9571
- onKeyDown: M,
9571
+ onKeyDown: P,
9572
9572
  role: C ? "button" : void 0,
9573
9573
  tabIndex: C ? 0 : void 0,
9574
+ "aria-pressed": C ? w : void 0,
9574
9575
  children: [
9575
9576
  r && /* @__PURE__ */ v("span", {
9576
9577
  className: (0, X.default)("sf-kpi-tile", hs[h], b === "soft" && "sf-kpi-tile--soft", i),
@@ -9587,15 +9588,19 @@ var yr = (e) => {
9587
9588
  }),
9588
9589
  /* @__PURE__ */ v("p", {
9589
9590
  className: (0, X.default)(ms[h], "font-bold tabular-nums sf-card-title"),
9590
- children: A(t)
9591
+ children: M(t)
9591
9592
  }),
9592
- D === null ? j ? P : n && /* @__PURE__ */ v("p", {
9593
+ k === null ? N ? I : n && /* @__PURE__ */ v("p", {
9593
9594
  className: "mt-1 text-xs sf-card-muted",
9594
9595
  children: n
9595
- }) : N
9596
+ }) : F,
9597
+ w && /* @__PURE__ */ y("p", {
9598
+ className: "sf-kpi-card__selected-hint",
9599
+ children: [/* @__PURE__ */ v(vt, { "aria-hidden": "true" }), "Seleccionado"]
9600
+ })
9596
9601
  ]
9597
9602
  }),
9598
- C && /* @__PURE__ */ v("span", {
9603
+ C && T && /* @__PURE__ */ v("span", {
9599
9604
  className: "sf-kpi-chevron",
9600
9605
  "aria-hidden": "true",
9601
9606
  children: /* @__PURE__ */ v(mt, {})
@@ -9604,9 +9609,9 @@ var yr = (e) => {
9604
9609
  });
9605
9610
  }
9606
9611
  return /* @__PURE__ */ y("div", {
9607
- className: (0, X.default)("sf-card", ds[h], m === "filled" ? "sf-kpi-card--filled" : c && k && "sf-kpi-card", m !== "filled" && c && k && os[c], C && "sf-card--interactive", S),
9612
+ className: (0, X.default)("sf-card", ds[h], m === "filled" ? "sf-kpi-card--filled" : c && j && "sf-kpi-card", m !== "filled" && c && j && os[c], C && "sf-card--interactive", S),
9608
9613
  onClick: C,
9609
- onKeyDown: M,
9614
+ onKeyDown: P,
9610
9615
  role: C ? "button" : void 0,
9611
9616
  tabIndex: C ? 0 : void 0,
9612
9617
  children: [
@@ -9622,20 +9627,20 @@ var yr = (e) => {
9622
9627
  className: (0, X.default)(x ? "sf-kpi-card__label--wrap" : "truncate", "text-sm font-medium sf-card-subtitle"),
9623
9628
  children: e
9624
9629
  })]
9625
- }), w && /* @__PURE__ */ y("span", {
9626
- className: (0, X.default)("flex shrink-0 items-center gap-0.5 text-xs font-semibold tabular-nums", E === null ? "text-[var(--sf-text-muted)]" : E ? "text-[var(--sf-success)]" : "text-[var(--sf-danger)]"),
9630
+ }), E && /* @__PURE__ */ y("span", {
9631
+ className: (0, X.default)("flex shrink-0 items-center gap-0.5 text-xs font-semibold tabular-nums", O === null ? "text-[var(--sf-text-muted)]" : O ? "text-[var(--sf-success)]" : "text-[var(--sf-danger)]"),
9627
9632
  children: [/* @__PURE__ */ v("span", {
9628
9633
  "aria-hidden": "true",
9629
- children: T ? "↑" : "↓"
9634
+ children: D ? "↑" : "↓"
9630
9635
  }), cs(a)]
9631
9636
  })]
9632
9637
  }),
9633
9638
  /* @__PURE__ */ v("p", {
9634
9639
  className: (0, X.default)(ps[h], "font-semibold tabular-nums sf-card-title truncate"),
9635
9640
  title: typeof t == "string" ? t : void 0,
9636
- children: A(t)
9641
+ children: M(t)
9637
9642
  }),
9638
- D === null ? j && P : N,
9643
+ k === null ? N && I : F,
9639
9644
  (n || o) && /* @__PURE__ */ y("div", {
9640
9645
  className: (0, X.default)("flex items-center justify-between gap-2", gs[g]),
9641
9646
  children: [n && /* @__PURE__ */ v("span", {
@@ -9749,12 +9754,15 @@ var yr = (e) => {
9749
9754
  })]
9750
9755
  })]
9751
9756
  });
9752
- }, ks = ({ metrics: e, small: t = !1, className: n }) => /* @__PURE__ */ v("div", {
9757
+ }, ks = ({ metrics: e, small: t = !1, className: n, footnote: r }) => /* @__PURE__ */ y("div", {
9753
9758
  className: (0, X.default)("flex w-full flex-col gap-3", n),
9754
- children: e.map((e, n) => /* @__PURE__ */ v(Os, {
9759
+ children: [e.map((e, n) => /* @__PURE__ */ v(Os, {
9755
9760
  item: e,
9756
9761
  small: t
9757
- }, `${e.label}-${n}`))
9762
+ }, `${e.label}-${n}`)), r && /* @__PURE__ */ v("p", {
9763
+ className: (0, X.default)("sf-metric-list__footnote", `sf-metric-list__footnote--${r.tone ?? "amber"}`),
9764
+ children: r.text
9765
+ })]
9758
9766
  }), As = {
9759
9767
  default: "sf-entity-card--default",
9760
9768
  featured: "sf-entity-card--featured",
@@ -10114,7 +10122,7 @@ var yr = (e) => {
10114
10122
  className: "sf-tramo-card__apto",
10115
10123
  children: /* @__PURE__ */ y("span", {
10116
10124
  className: "sf-tramo-card__apto-badge",
10117
- children: [/* @__PURE__ */ v(Ze, {
10125
+ children: [/* @__PURE__ */ v(Qe, {
10118
10126
  size: 13,
10119
10127
  "aria-hidden": "true"
10120
10128
  }), i]
@@ -10364,26 +10372,131 @@ var yr = (e) => {
10364
10372
  size: e.size ?? t
10365
10373
  }, n))
10366
10374
  }), _c = {
10375
+ xs: 56,
10376
+ sm: 80,
10377
+ md: 110,
10378
+ lg: 150
10379
+ }, vc = {
10380
+ xs: 6,
10381
+ sm: 8,
10382
+ md: 10,
10383
+ lg: 13
10384
+ }, yc = {
10385
+ xs: 13,
10386
+ sm: 18,
10387
+ md: 24,
10388
+ lg: 34
10389
+ }, bc = {
10390
+ xs: 8,
10391
+ sm: 10,
10392
+ md: 11,
10393
+ lg: 13
10394
+ }, xc = [
10395
+ "var(--sf-primary)",
10396
+ "var(--sf-info)",
10397
+ "var(--sf-warning)",
10398
+ "var(--sf-accent)"
10399
+ ], Sc = ({ segments: e, centerValue: t, centerLabel: n, size: r = "md", strokeWidth: i, showLegend: a = !0, className: o }) => {
10400
+ let s = e.reduce((e, t) => e + Math.max(0, t.value), 0), c = _c[r], l = i ?? vc[r], u = (c - l) / 2, d = c / 2, f = 2 * Math.PI * u, p = 0, m = e.map((e, t) => {
10401
+ let n = Math.max(0, e.value), r = s > 0 ? n / s : 0, i = f * r, a = f * (1 - p);
10402
+ return p += r, {
10403
+ ...e,
10404
+ pct: r,
10405
+ color: e.color ?? xc[t % xc.length],
10406
+ dasharray: `${i} ${f - i}`,
10407
+ dashoffset: a
10408
+ };
10409
+ });
10410
+ return /* @__PURE__ */ y("div", {
10411
+ className: (0, X.default)("sf-donut-breakdown", o),
10412
+ children: [/* @__PURE__ */ y("div", {
10413
+ className: "relative",
10414
+ style: {
10415
+ width: c,
10416
+ height: c
10417
+ },
10418
+ children: [/* @__PURE__ */ v("svg", {
10419
+ width: c,
10420
+ height: c,
10421
+ viewBox: `0 0 ${c} ${c}`,
10422
+ className: "-rotate-90",
10423
+ "aria-hidden": "true",
10424
+ children: s <= 0 ? /* @__PURE__ */ v("circle", {
10425
+ cx: d,
10426
+ cy: d,
10427
+ r: u,
10428
+ fill: "none",
10429
+ stroke: "var(--sf-gauge-track)",
10430
+ strokeWidth: l
10431
+ }) : m.map((e, t) => /* @__PURE__ */ v("circle", {
10432
+ cx: d,
10433
+ cy: d,
10434
+ r: u,
10435
+ fill: "none",
10436
+ stroke: e.color,
10437
+ strokeWidth: l,
10438
+ strokeDasharray: e.dasharray,
10439
+ strokeDashoffset: e.dashoffset
10440
+ }, `${e.label}-${t}`))
10441
+ }), /* @__PURE__ */ y("div", {
10442
+ className: "absolute inset-0 flex flex-col items-center justify-center",
10443
+ children: [/* @__PURE__ */ v("span", {
10444
+ className: "sf-donut-breakdown__value",
10445
+ style: { fontSize: yc[r] },
10446
+ children: t ?? s.toLocaleString("es-PE")
10447
+ }), n && /* @__PURE__ */ v("span", {
10448
+ className: "sf-donut-breakdown__label",
10449
+ style: { fontSize: bc[r] },
10450
+ children: n
10451
+ })]
10452
+ })]
10453
+ }), a && /* @__PURE__ */ v("ul", {
10454
+ className: "sf-donut-breakdown__legend",
10455
+ children: m.map((e, t) => /* @__PURE__ */ y("li", {
10456
+ className: "sf-donut-breakdown__legend-item",
10457
+ children: [
10458
+ /* @__PURE__ */ v("span", {
10459
+ className: "sf-donut-breakdown__legend-dot",
10460
+ style: { backgroundColor: e.color },
10461
+ "aria-hidden": "true"
10462
+ }),
10463
+ /* @__PURE__ */ v("span", {
10464
+ className: "sf-donut-breakdown__legend-label",
10465
+ children: e.label
10466
+ }),
10467
+ /* @__PURE__ */ v("span", {
10468
+ className: "sf-donut-breakdown__legend-value",
10469
+ children: e.value.toLocaleString("es-PE")
10470
+ }),
10471
+ /* @__PURE__ */ y("span", {
10472
+ className: "sf-donut-breakdown__legend-pct",
10473
+ children: [Math.round(e.pct * 100), "%"]
10474
+ })
10475
+ ]
10476
+ }, `${e.label}-${t}`))
10477
+ })]
10478
+ });
10479
+ }, Cc = {
10367
10480
  success: "sf-event-log__dot--success",
10368
10481
  warning: "sf-event-log__dot--warning",
10369
10482
  danger: "sf-event-log__dot--danger",
10370
10483
  info: "sf-event-log__dot--info",
10371
10484
  default: "sf-event-log__dot--default"
10372
- }, vc = {
10485
+ }, wc = {
10373
10486
  success: "sf-event-log__icon-wrap--success",
10374
10487
  warning: "sf-event-log__icon-wrap--warning",
10375
10488
  danger: "sf-event-log__icon-wrap--danger",
10376
10489
  info: "sf-event-log__icon-wrap--info",
10377
10490
  default: "sf-event-log__icon-wrap--default"
10378
- }, yc = {
10491
+ }, Tc = {
10379
10492
  success: "sf-alert-row-list__meta--success",
10380
10493
  warning: "sf-alert-row-list__meta--warning",
10381
10494
  danger: "sf-alert-row-list__meta--danger",
10382
10495
  info: "sf-alert-row-list__meta--info",
10383
10496
  default: "sf-alert-row-list__meta--default"
10384
- }, bc = (e, t) => {
10497
+ }, Ec = (e, t) => {
10385
10498
  t && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
10386
- }, xc = ({ events: e, title: t, maxHeight: n, compact: r = !1, showTimeline: i = !0, viewAllLabel: a, onViewAll: o, className: s }) => {
10499
+ }, Dc = ({ events: e, title: t, maxHeight: n, compact: r = !1, showTimeline: i = !0, viewAllLabel: a, onViewAll: o, className: s }) => {
10387
10500
  let c = r ? "text-[11px]" : "text-xs", l = r ? "text-[10px]" : "text-[11px]", u = r ? "text-[9px]" : "text-[10px]", d = r ? "py-1.5" : "py-2.5";
10388
10501
  return /* @__PURE__ */ y("div", {
10389
10502
  className: (0, X.default)("sf-event-log", s),
@@ -10424,11 +10537,11 @@ var yr = (e) => {
10424
10537
  /* @__PURE__ */ v("div", {
10425
10538
  className: "mt-0.5 shrink-0",
10426
10539
  children: t.icon ? /* @__PURE__ */ v("div", {
10427
- className: (0, X.default)("sf-event-log__icon-wrap", vc[r]),
10540
+ className: (0, X.default)("sf-event-log__icon-wrap", wc[r]),
10428
10541
  "aria-hidden": "true",
10429
10542
  children: t.icon
10430
10543
  }) : /* @__PURE__ */ v("div", {
10431
- className: (0, X.default)("sf-event-log__dot", _c[r]),
10544
+ className: (0, X.default)("sf-event-log__dot", Cc[r]),
10432
10545
  "aria-hidden": "true"
10433
10546
  })
10434
10547
  }),
@@ -10462,16 +10575,16 @@ var yr = (e) => {
10462
10575
  })]
10463
10576
  })]
10464
10577
  });
10465
- }, Sc = {
10578
+ }, Oc = {
10466
10579
  time: "Hora",
10467
10580
  vehicle: "Vehículo",
10468
10581
  description: "Descripción"
10469
- }, Cc = {
10582
+ }, kc = {
10470
10583
  critical: "sf-alert-row-list__severity--critical",
10471
10584
  warning: "sf-alert-row-list__severity--warning",
10472
10585
  info: !1
10473
- }, wc = ({ severity: e }) => {
10474
- let t = Cc[e];
10586
+ }, Ac = ({ severity: e }) => {
10587
+ let t = kc[e];
10475
10588
  return t ? /* @__PURE__ */ v("span", {
10476
10589
  className: (0, X.default)("sf-alert-row-list__severity", t),
10477
10590
  "aria-hidden": "true",
@@ -10506,7 +10619,7 @@ var yr = (e) => {
10506
10619
  })] })
10507
10620
  })
10508
10621
  }) : null;
10509
- }, Tc = ({ actions: e }) => /* @__PURE__ */ v("span", {
10622
+ }, jc = ({ actions: e }) => /* @__PURE__ */ v("span", {
10510
10623
  className: "sf-alert-row-list__actions",
10511
10624
  children: e.map((e, t) => /* @__PURE__ */ v("button", {
10512
10625
  type: "button",
@@ -10516,9 +10629,9 @@ var yr = (e) => {
10516
10629
  },
10517
10630
  children: e.label
10518
10631
  }, t))
10519
- }), Ec = ({ items: e, maxHeight: t, className: n, columns: r = !1, headerLabels: i, density: a = "comfortable", emptyMessage: o = "Sin alertas" }) => {
10632
+ }), Mc = ({ items: e, maxHeight: t, className: n, columns: r = !1, headerLabels: i, density: a = "comfortable", emptyMessage: o = "Sin alertas" }) => {
10520
10633
  let s = {
10521
- ...Sc,
10634
+ ...Oc,
10522
10635
  ...i
10523
10636
  };
10524
10637
  return /* @__PURE__ */ y("div", {
@@ -10552,13 +10665,13 @@ var yr = (e) => {
10552
10665
  role: a ? "button" : "listitem",
10553
10666
  tabIndex: a ? 0 : void 0,
10554
10667
  onClick: a ? e.onClick : void 0,
10555
- onKeyDown: a ? (t) => bc(t, e.onClick) : void 0
10668
+ onKeyDown: a ? (t) => Ec(t, e.onClick) : void 0
10556
10669
  };
10557
10670
  return r ? /* @__PURE__ */ y("div", {
10558
10671
  ...o,
10559
10672
  children: [
10560
10673
  /* @__PURE__ */ v("span", {
10561
- className: (0, X.default)("sf-event-log__dot", _c[n]),
10674
+ className: (0, X.default)("sf-event-log__dot", Cc[n]),
10562
10675
  "aria-hidden": "true"
10563
10676
  }),
10564
10677
  /* @__PURE__ */ v("span", {
@@ -10567,7 +10680,7 @@ var yr = (e) => {
10567
10680
  }),
10568
10681
  /* @__PURE__ */ y("span", {
10569
10682
  className: "sf-alert-row-list__vehicle",
10570
- children: [e.severity && /* @__PURE__ */ v(wc, { severity: e.severity }), e.vehicle]
10683
+ children: [e.severity && /* @__PURE__ */ v(Ac, { severity: e.severity }), e.vehicle]
10571
10684
  }),
10572
10685
  /* @__PURE__ */ y("span", {
10573
10686
  className: "sf-alert-row-list__description",
@@ -10578,17 +10691,17 @@ var yr = (e) => {
10578
10691
  children: e.icon
10579
10692
  }), e.label]
10580
10693
  }), e.meta && /* @__PURE__ */ v("span", {
10581
- className: (0, X.default)("sf-alert-row-list__meta", yc[n]),
10694
+ className: (0, X.default)("sf-alert-row-list__meta", Tc[n]),
10582
10695
  children: e.meta
10583
10696
  })]
10584
10697
  }),
10585
- i && /* @__PURE__ */ v(Tc, { actions: e.actions })
10698
+ i && /* @__PURE__ */ v(jc, { actions: e.actions })
10586
10699
  ]
10587
10700
  }, t) : /* @__PURE__ */ y("div", {
10588
10701
  ...o,
10589
10702
  children: [
10590
10703
  /* @__PURE__ */ v("span", {
10591
- className: (0, X.default)("sf-event-log__dot", _c[n]),
10704
+ className: (0, X.default)("sf-event-log__dot", Cc[n]),
10592
10705
  "aria-hidden": "true"
10593
10706
  }),
10594
10707
  /* @__PURE__ */ y("span", {
@@ -10599,20 +10712,20 @@ var yr = (e) => {
10599
10712
  }), e.label]
10600
10713
  }),
10601
10714
  e.meta && /* @__PURE__ */ v("span", {
10602
- className: (0, X.default)("sf-alert-row-list__meta", yc[n]),
10715
+ className: (0, X.default)("sf-alert-row-list__meta", Tc[n]),
10603
10716
  children: e.meta
10604
10717
  }),
10605
10718
  e.time && /* @__PURE__ */ v("span", {
10606
10719
  className: "sf-alert-row-list__time",
10607
10720
  children: e.time
10608
10721
  }),
10609
- i && /* @__PURE__ */ v(Tc, { actions: e.actions })
10722
+ i && /* @__PURE__ */ v(jc, { actions: e.actions })
10610
10723
  ]
10611
10724
  }, t);
10612
10725
  })
10613
10726
  ]
10614
10727
  });
10615
- }, Dc = {
10728
+ }, Nc = {
10616
10729
  success: {
10617
10730
  color: "#1F8A4C",
10618
10731
  halo: "#EAF5EE"
@@ -10633,17 +10746,17 @@ var yr = (e) => {
10633
10746
  color: "var(--sf-text-subtle, #5C7180)",
10634
10747
  halo: "var(--sf-surface-alt, #EEF0F2)"
10635
10748
  }
10636
- }, Oc = {
10749
+ }, Pc = {
10637
10750
  display: "flex",
10638
10751
  gap: 12,
10639
10752
  flexWrap: "wrap"
10640
- }, kc = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
10753
+ }, Fc = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
10641
10754
  className: (0, X.default)("sf-alert-lane", t),
10642
- style: Oc,
10755
+ style: Pc,
10643
10756
  role: "list",
10644
10757
  "aria-label": "Alertas",
10645
10758
  children: e.map((e, t) => {
10646
- let n = Dc[e.status ?? "default"], r = e.color ?? n.color, i = e.halo ?? n.halo;
10759
+ let n = Nc[e.status ?? "default"], r = e.color ?? n.color, i = e.halo ?? n.halo;
10647
10760
  return /* @__PURE__ */ y("div", {
10648
10761
  role: "listitem",
10649
10762
  style: {
@@ -10714,30 +10827,70 @@ var yr = (e) => {
10714
10827
  ]
10715
10828
  }, e.id ?? t);
10716
10829
  })
10717
- }), Ac = ({ items: e, className: t, density: n = "comfortable", emptyMessage: r = "Sin alertas" }) => /* @__PURE__ */ y("div", {
10830
+ }), Ic = ({ tone: e = "default" }) => /* @__PURE__ */ v("span", {
10831
+ className: (0, X.default)("sf-alert-summary-row__icon", `sf-alert-summary-row__icon--${e}`),
10832
+ "aria-hidden": "true",
10833
+ children: /* @__PURE__ */ y("svg", {
10834
+ viewBox: "0 0 16 16",
10835
+ width: "14",
10836
+ height: "14",
10837
+ fill: "none",
10838
+ stroke: "currentColor",
10839
+ strokeWidth: "1.6",
10840
+ strokeLinecap: "round",
10841
+ children: [/* @__PURE__ */ v("circle", {
10842
+ cx: "8",
10843
+ cy: "8",
10844
+ r: "6.4"
10845
+ }), e === "danger" || e === "warning" ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("line", {
10846
+ x1: "8",
10847
+ y1: "5",
10848
+ x2: "8",
10849
+ y2: "8.6"
10850
+ }), /* @__PURE__ */ v("line", {
10851
+ x1: "8",
10852
+ y1: "10.8",
10853
+ x2: "8",
10854
+ y2: "10.81"
10855
+ })] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("line", {
10856
+ x1: "8",
10857
+ y1: "7",
10858
+ x2: "8",
10859
+ y2: "11"
10860
+ }), /* @__PURE__ */ v("line", {
10861
+ x1: "8",
10862
+ y1: "4.7",
10863
+ x2: "8",
10864
+ y2: "4.71"
10865
+ })] })]
10866
+ })
10867
+ }), Lc = ({ items: e, className: t, density: n = "comfortable", emptyMessage: r = "Sin alertas", showIcon: i = !1 }) => /* @__PURE__ */ y("div", {
10718
10868
  className: (0, X.default)("sf-alert-summary-list", t),
10719
10869
  children: [e.length === 0 && /* @__PURE__ */ v("p", {
10720
10870
  className: "sf-alert-summary-list__empty",
10721
10871
  role: "status",
10722
10872
  children: r
10723
10873
  }), e.map((e, t) => {
10724
- let r = !!e.actions?.length, i = !r && !!e.onClick;
10874
+ let r = !!e.actions?.length, a = !r && !!e.onClick;
10725
10875
  return /* @__PURE__ */ y("div", {
10726
- className: (0, X.default)("sf-alert-summary-row", `sf-alert-summary-row--${e.tone ?? "default"}`, n === "compact" && "sf-alert-summary-row--compact", i && "sf-alert-summary-row--clickable"),
10727
- onClick: i ? e.onClick : void 0,
10728
- role: i ? "button" : void 0,
10729
- tabIndex: i ? 0 : void 0,
10730
- onKeyDown: i ? (t) => {
10876
+ className: (0, X.default)("sf-alert-summary-row", `sf-alert-summary-row--${e.tone ?? "default"}`, n === "compact" && "sf-alert-summary-row--compact", a && "sf-alert-summary-row--clickable"),
10877
+ onClick: a ? e.onClick : void 0,
10878
+ role: a ? "button" : void 0,
10879
+ tabIndex: a ? 0 : void 0,
10880
+ onKeyDown: a ? (t) => {
10731
10881
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.onClick?.());
10732
10882
  } : void 0,
10733
10883
  children: [/* @__PURE__ */ y("div", {
10734
- className: "min-w-0",
10735
- children: [/* @__PURE__ */ v("p", {
10736
- className: "sf-alert-summary-row__label",
10737
- children: e.label
10738
- }), e.description && /* @__PURE__ */ v("p", {
10739
- className: "sf-alert-summary-row__description",
10740
- children: e.description
10884
+ className: "flex min-w-0 items-start gap-2",
10885
+ children: [i && (e.icon ?? /* @__PURE__ */ v(Ic, { tone: e.tone })), /* @__PURE__ */ y("div", {
10886
+ className: "min-w-0",
10887
+ children: [/* @__PURE__ */ v("p", {
10888
+ className: "sf-alert-summary-row__label",
10889
+ children: e.label
10890
+ }), e.description && /* @__PURE__ */ v("p", {
10891
+ className: "sf-alert-summary-row__description",
10892
+ children: e.description
10893
+ })]
10741
10894
  })]
10742
10895
  }), /* @__PURE__ */ y("div", {
10743
10896
  className: "flex shrink-0 items-center gap-3",
@@ -10758,7 +10911,7 @@ var yr = (e) => {
10758
10911
  })]
10759
10912
  }, `${e.label}-${t}`);
10760
10913
  })]
10761
- }), jc = ({ items: e, confidence: t, updatedAt: n, className: r }) => {
10914
+ }), Rc = ({ items: e, confidence: t, updatedAt: n, className: r }) => {
10762
10915
  let i = [
10763
10916
  ...e.map((e, t) => /* @__PURE__ */ y("span", {
10764
10917
  className: "sf-evidence-footnote__item",
@@ -10795,7 +10948,7 @@ var yr = (e) => {
10795
10948
  }), e]
10796
10949
  }, t))
10797
10950
  });
10798
- }, Mc = (e) => e.toLocaleString("es-PE"), Nc = ({ rows: e, planLabel: t = "Plan", realLabel: n = "Real", className: r }) => /* @__PURE__ */ y("table", {
10951
+ }, zc = (e) => e.toLocaleString("es-PE"), Bc = ({ rows: e, planLabel: t = "Plan", realLabel: n = "Real", className: r }) => /* @__PURE__ */ y("table", {
10799
10952
  className: (0, X.default)("sf-comparison-table", r),
10800
10953
  children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", { children: [
10801
10954
  /* @__PURE__ */ v("th", { className: "sf-comparison-table__th sf-comparison-table__th--label" }),
@@ -10812,7 +10965,7 @@ var yr = (e) => {
10812
10965
  children: "Desviación"
10813
10966
  })
10814
10967
  ] }) }), /* @__PURE__ */ v("tbody", { children: e.map((e) => {
10815
- let t = e.valueFormat ?? Mc, n = e.direction ?? "up-good", r = e.real - e.plan, i = e.plan === 0 ? 0 : r / Math.abs(e.plan) * 100, a = n === "neutral" ? null : n === "up-good" ? r >= 0 : r <= 0;
10968
+ let t = e.valueFormat ?? zc, n = e.direction ?? "up-good", r = e.real - e.plan, i = e.plan === 0 ? 0 : r / Math.abs(e.plan) * 100, a = n === "neutral" ? null : n === "up-good" ? r >= 0 : r <= 0;
10816
10969
  return /* @__PURE__ */ y("tr", {
10817
10970
  className: "sf-comparison-table__row",
10818
10971
  children: [
@@ -10843,40 +10996,40 @@ var yr = (e) => {
10843
10996
  ]
10844
10997
  }, e.key);
10845
10998
  }) })]
10846
- }), Pc = {
10999
+ }), Vc = {
10847
11000
  default: "",
10848
11001
  accent: "sf-card--accent",
10849
11002
  critical: "sf-card--critical",
10850
11003
  warning: "sf-card--warning",
10851
11004
  success: "sf-card--success"
10852
- }, Fc = {
11005
+ }, Hc = {
10853
11006
  1: "col-span-1",
10854
11007
  2: "col-span-1 sm:col-span-2",
10855
11008
  3: "col-span-1 sm:col-span-2 lg:col-span-3",
10856
11009
  4: "col-span-1 sm:col-span-2 lg:col-span-4",
10857
11010
  5: "col-span-1 sm:col-span-2 lg:col-span-5",
10858
11011
  6: "col-span-1 sm:col-span-2 lg:col-span-6"
10859
- }, Ic = {
11012
+ }, Uc = {
10860
11013
  none: "",
10861
11014
  sm: "p-3",
10862
11015
  md: "p-4",
10863
11016
  lg: "p-5"
10864
- }, Lc = {
11017
+ }, Wc = {
10865
11018
  visible: "",
10866
11019
  auto: "overflow-auto",
10867
11020
  hidden: "overflow-hidden"
10868
- }, Rc = () => /* @__PURE__ */ v("div", {
11021
+ }, Gc = () => /* @__PURE__ */ v("div", {
10869
11022
  className: "sf-card-state__spinner",
10870
11023
  role: "status",
10871
11024
  "aria-label": "Cargando",
10872
11025
  children: /* @__PURE__ */ v("span", { className: "sf-card-state__spinner-ring" })
10873
- }), zc = ({ title: e, subtitle: t, icon: n, headerAction: r, variant: i = "default", span: a = 1, padding: o = "md", headerSize: s = "sm", headerWrap: c = !1, footer: l, state: u = "idle", loadingMessage: d = "Cargando…", errorMessage: f = "No se pudo cargar la información.", emptyMessage: p = "Sin datos para mostrar.", onRetry: m, retryLabel: h = "Reintentar", minHeight: g, bodyOverflow: b = "visible", className: x, children: S }) => {
11026
+ }), Kc = ({ title: e, subtitle: t, icon: n, headerAction: r, variant: i = "default", span: a = 1, padding: o = "md", headerSize: s = "sm", headerWrap: c = !1, footer: l, state: u = "idle", loadingMessage: d = "Cargando…", errorMessage: f = "No se pudo cargar la información.", emptyMessage: p = "Sin datos para mostrar.", onRetry: m, retryLabel: h = "Reintentar", minHeight: g, bodyOverflow: b = "visible", className: x, children: S }) => {
10874
11027
  let C = g === void 0 ? void 0 : { minHeight: g }, w = u !== "idle" && /* @__PURE__ */ y("div", {
10875
11028
  className: "sf-card-state",
10876
11029
  style: C,
10877
11030
  role: u === "error" ? "alert" : u === "empty" ? "status" : void 0,
10878
11031
  children: [
10879
- u === "loading" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Rc, {}), d && /* @__PURE__ */ v("p", {
11032
+ u === "loading" && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Gc, {}), d && /* @__PURE__ */ v("p", {
10880
11033
  className: "sf-card-state__message",
10881
11034
  children: d
10882
11035
  })] }),
@@ -10898,7 +11051,7 @@ var yr = (e) => {
10898
11051
  return /* @__PURE__ */ y("div", {
10899
11052
  role: e ? "region" : void 0,
10900
11053
  "aria-label": e,
10901
- className: (0, X.default)("sf-card flex flex-col overflow-hidden", Pc[i], Fc[a], x),
11054
+ className: (0, X.default)("sf-card flex flex-col overflow-hidden", Vc[i], Hc[a], x),
10902
11055
  children: [
10903
11056
  (e || n || r) && /* @__PURE__ */ y("div", {
10904
11057
  className: (0, X.default)("sf-card-header", s === "md" && "sf-card-header--md", c && "sf-card-header--wrap"),
@@ -10929,7 +11082,7 @@ var yr = (e) => {
10929
11082
  ]
10930
11083
  }),
10931
11084
  /* @__PURE__ */ v("div", {
10932
- className: (0, X.default)("flex-1", Ic[o], Lc[b]),
11085
+ className: (0, X.default)("flex-1", Uc[o], Wc[b]),
10933
11086
  style: u === "idle" ? C : void 0,
10934
11087
  children: u === "idle" ? S : w
10935
11088
  }),
@@ -10939,24 +11092,24 @@ var yr = (e) => {
10939
11092
  })
10940
11093
  ]
10941
11094
  });
10942
- }, Bc = {
11095
+ }, qc = {
10943
11096
  2: "grid-cols-1 sm:grid-cols-2",
10944
11097
  3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
10945
11098
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
10946
11099
  5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5",
10947
11100
  6: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-6"
10948
- }, Vc = {
11101
+ }, Jc = {
10949
11102
  sm: "gap-2",
10950
11103
  md: "gap-3",
10951
11104
  lg: "gap-5"
10952
- }, Hc = {
11105
+ }, Yc = {
10953
11106
  stretch: "items-stretch",
10954
11107
  start: "items-start"
10955
- }, Uc = ({ cols: e = 4, gap: t = "md", alignItems: n = "stretch", minColWidth: r, className: i, children: a }) => /* @__PURE__ */ v("div", {
10956
- className: (0, X.default)("grid", !r && Bc[e], Vc[t], Hc[n], i),
11108
+ }, Xc = ({ cols: e = 4, gap: t = "md", alignItems: n = "stretch", minColWidth: r, className: i, children: a }) => /* @__PURE__ */ v("div", {
11109
+ className: (0, X.default)("grid", !r && qc[e], Jc[t], Yc[n], i),
10957
11110
  style: r ? { gridTemplateColumns: `repeat(auto-fit, minmax(${r}, 1fr))` } : void 0,
10958
11111
  children: a
10959
- }), Wc = ({ title: e, subtitle: t, action: n, className: r, children: i }) => /* @__PURE__ */ y("section", {
11112
+ }), Zc = ({ title: e, subtitle: t, action: n, className: r, children: i }) => /* @__PURE__ */ y("section", {
10960
11113
  className: (0, X.default)("flex flex-col gap-3", r),
10961
11114
  "aria-label": e,
10962
11115
  children: [/* @__PURE__ */ y("div", {
@@ -10972,13 +11125,13 @@ var yr = (e) => {
10972
11125
  children: n
10973
11126
  })]
10974
11127
  }), i]
10975
- }), Gc = {
11128
+ }), Qc = {
10976
11129
  slate: "sf-stat-tone--slate",
10977
11130
  emerald: "sf-stat-tone--emerald",
10978
11131
  amber: "sf-stat-tone--amber",
10979
11132
  red: "sf-stat-tone--red",
10980
11133
  blue: "sf-stat-tone--blue"
10981
- }, Kc = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
11134
+ }, $c = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
10982
11135
  role: "list",
10983
11136
  "aria-label": "Resumen de métricas",
10984
11137
  className: (0, X.default)("flex flex-wrap items-center gap-5 border-t border-[var(--sf-border)] bg-[var(--sf-card-bg)] px-4 py-2", t),
@@ -10987,7 +11140,7 @@ var yr = (e) => {
10987
11140
  role: "listitem",
10988
11141
  children: [
10989
11142
  e.tone && /* @__PURE__ */ v("span", {
10990
- className: (0, X.default)("h-1.5 w-1.5 shrink-0 rounded-full", Gc[e.tone]),
11143
+ className: (0, X.default)("h-1.5 w-1.5 shrink-0 rounded-full", Qc[e.tone]),
10991
11144
  "aria-hidden": "true"
10992
11145
  }),
10993
11146
  /* @__PURE__ */ y("span", {
@@ -11000,7 +11153,7 @@ var yr = (e) => {
11000
11153
  })
11001
11154
  ]
11002
11155
  }, t))
11003
- }), qc = ({ header: e, sidebar: t, statBar: n, className: r, children: i }) => /* @__PURE__ */ y("div", {
11156
+ }), el = ({ header: e, sidebar: t, statBar: n, className: r, children: i }) => /* @__PURE__ */ y("div", {
11004
11157
  className: "sf-card flex min-h-[480px] flex-col overflow-hidden bg-[var(--sf-page-bg)]",
11005
11158
  role: "region",
11006
11159
  "aria-label": "Dashboard",
@@ -11025,7 +11178,7 @@ var yr = (e) => {
11025
11178
  children: n
11026
11179
  })
11027
11180
  ]
11028
- }), Jc = ({ title: e, onClose: t, headerAction: n, icon: r, iconSize: i = "sm", heading: a, badge: o, rows: s = [], align: c = "stack", actions: l, sectionTitle: u, items: d = [], width: f = 320, className: p }) => {
11181
+ }), tl = ({ title: e, onClose: t, headerAction: n, icon: r, iconSize: i = "sm", heading: a, badge: o, rows: s = [], align: c = "stack", actions: l, sectionTitle: u, items: d = [], width: f = 320, className: p }) => {
11029
11182
  let m = typeof f == "number" ? `${f}px` : f;
11030
11183
  return /* @__PURE__ */ y("aside", {
11031
11184
  className: (0, X.default)("sf-detail-side-panel", p),
@@ -11042,7 +11195,7 @@ var yr = (e) => {
11042
11195
  className: "sf-detail-side-panel__close",
11043
11196
  onClick: t,
11044
11197
  "aria-label": "Cerrar",
11045
- children: /* @__PURE__ */ v(qe, { "aria-hidden": "true" })
11198
+ children: /* @__PURE__ */ v(Je, { "aria-hidden": "true" })
11046
11199
  })]
11047
11200
  }),
11048
11201
  e && /* @__PURE__ */ v("h3", {
@@ -11118,7 +11271,7 @@ var yr = (e) => {
11118
11271
  })
11119
11272
  ]
11120
11273
  });
11121
- }, Yc = ({ title: e, icon: t, tone: n = "default", rows: r = [], children: i, className: a, density: o = "md" }) => {
11274
+ }, nl = ({ title: e, icon: t, tone: n = "default", rows: r = [], children: i, className: a, density: o = "md" }) => {
11122
11275
  let s = r.length > 0 || !!i;
11123
11276
  return /* @__PURE__ */ y("section", {
11124
11277
  className: (0, X.default)("sf-detail-section", n !== "default" && `sf-detail-section--${n}`, o === "sm" && "sf-detail-section--sm", a),
@@ -11159,15 +11312,15 @@ var yr = (e) => {
11159
11312
  })]
11160
11313
  })]
11161
11314
  });
11162
- }, Xc = ({ small: e, error: t }) => (0, X.default)("sf-input", "sf-input--otp", e && "sf-input--sm", t && "sf-input--error"), Zc = (e, t) => {
11315
+ }, rl = ({ small: e, error: t }) => (0, X.default)("sf-input", "sf-input--otp", e && "sf-input--sm", t && "sf-input--error"), il = (e, t) => {
11163
11316
  let n = rn(String(e ?? ""), t);
11164
11317
  return Array.from({ length: t }, (e, t) => n[t] ?? "");
11165
- }, Qc = ({ form: e, name: t, label: n, info: r, required: i, disabled: a, small: o, className: s, length: c = 6, onChange: l }) => {
11318
+ }, al = ({ form: e, name: t, label: n, info: r, required: i, disabled: a, small: o, className: s, length: c = 6, onChange: l }) => {
11166
11319
  let u = b({
11167
11320
  name: t,
11168
11321
  control: e.control
11169
- }), d = m([]), [f, p] = h(() => Zc(u.field.value, c)), [g, _] = h(u.field.value);
11170
- u.field.value !== g && (_(u.field.value), p(Zc(u.field.value, c)));
11322
+ }), d = m([]), [f, p] = h(() => il(u.field.value, c)), [g, _] = h(u.field.value);
11323
+ u.field.value !== g && (_(u.field.value), p(il(u.field.value, c)));
11171
11324
  let y = String(t), x = u.fieldState.error?.message ? String(u.fieldState.error.message) : void 0, S = (e) => {
11172
11325
  p(e);
11173
11326
  let t = e.join("");
@@ -11211,7 +11364,7 @@ var yr = (e) => {
11211
11364
  onBlur: () => u.field.onBlur(),
11212
11365
  onChange: (e) => C(t, e.target.value),
11213
11366
  onKeyDown: (e) => w(t, e),
11214
- className: Xc({
11367
+ className: rl({
11215
11368
  small: o,
11216
11369
  error: !!x,
11217
11370
  disabled: a
@@ -11219,15 +11372,15 @@ var yr = (e) => {
11219
11372
  }, t))
11220
11373
  })
11221
11374
  });
11222
- }, $c = (e) => {
11375
+ }, ol = (e) => {
11223
11376
  let [t, n] = e.slice(0, 10).split("-").map(Number), r = new Date(t, n, 0).getDate();
11224
11377
  return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
11225
- }, el = ({ form: e, startName: t, endName: n, startLabel: r = "Desde", endLabel: i = "Hasta", required: a, endRequired: o, small: s, readOnlyEnd: c, adjustEnd: l = "start", onEndAdjusted: u, className: d }) => {
11378
+ }, sl = ({ form: e, startName: t, endName: n, startLabel: r = "Desde", endLabel: i = "Hasta", required: a, endRequired: o, small: s, readOnlyEnd: c, adjustEnd: l = "start", onEndAdjusted: u, className: d }) => {
11226
11379
  let f = String(e.watch(t) ?? ""), p = (t, r) => {
11227
11380
  if (l === "none") return;
11228
11381
  let i = t.slice(0, 10), a = r.slice(0, 10);
11229
11382
  if (!Dn(i) || !Dn(a) || a >= i) return;
11230
- let o = l === "month-end" ? $c(i) : i;
11383
+ let o = l === "month-end" ? ol(i) : i;
11231
11384
  e.setValue(n, o, { shouldValidate: !1 }), u?.(o);
11232
11385
  };
11233
11386
  return /* @__PURE__ */ y("div", {
@@ -11252,16 +11405,16 @@ var yr = (e) => {
11252
11405
  onChange: (n) => p(String(e.getValues(t) ?? ""), n)
11253
11406
  })]
11254
11407
  });
11255
- }, tl = (e) => /* @__PURE__ */ v(Nn, {
11408
+ }, cl = (e) => /* @__PURE__ */ v(Nn, {
11256
11409
  ...e,
11257
11410
  utc: !0
11258
- }), nl = () => ({
11411
+ }), ll = () => ({
11259
11412
  start: "",
11260
11413
  end: ""
11261
- }), rl = () => ({
11414
+ }), ul = () => ({
11262
11415
  start: "",
11263
11416
  end: ""
11264
- }), il = 0, al = () => (il += 1, `photo_${Date.now()}_${il}`), ol = (e, t) => {
11417
+ }), dl = 0, fl = () => (dl += 1, `photo_${Date.now()}_${dl}`), pl = (e, t) => {
11265
11418
  if (!t || t === "*") return !0;
11266
11419
  let n = t.replace(/\s/g, "").split(","), r = `.${e.name.split(".").pop()?.toLowerCase() ?? ""}`, i = e.type.toLowerCase();
11267
11420
  return n.some((e) => {
@@ -11273,20 +11426,20 @@ var yr = (e) => {
11273
11426
  }
11274
11427
  return i === t;
11275
11428
  });
11276
- }, sl = (e, t = !1) => new Promise((n) => {
11429
+ }, ml = (e, t = !1) => new Promise((n) => {
11277
11430
  let r = document.createElement("input");
11278
11431
  r.type = "file", r.accept = e, r.multiple = t, r.style.display = "none", r.onchange = () => {
11279
11432
  n(Array.from(r.files ?? [])), r.remove();
11280
11433
  }, document.body.appendChild(r), r.click();
11281
- }), cl = (e) => ({
11282
- id: al(),
11434
+ }), hl = (e) => ({
11435
+ id: fl(),
11283
11436
  preview: URL.createObjectURL(e),
11284
11437
  file: e
11285
- }), ll = (e) => {
11438
+ }), gl = (e) => {
11286
11439
  URL.revokeObjectURL(e.preview);
11287
- }, ul = (e) => {
11288
- e.forEach(ll);
11289
- }, dl = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e && typeof e.id == "string" && typeof e.preview == "string" && e.file instanceof File) : [], fl = (e, t = .92) => new Promise((n, r) => {
11440
+ }, _l = (e) => {
11441
+ e.forEach(gl);
11442
+ }, vl = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e && typeof e.id == "string" && typeof e.preview == "string" && e.file instanceof File) : [], yl = (e, t = .92) => new Promise((n, r) => {
11290
11443
  let i = URL.createObjectURL(e), a = new Image();
11291
11444
  a.onload = () => {
11292
11445
  let o = Math.min(a.width, a.height), s = (a.width - o) / 2, c = (a.height - o) / 2, l = document.createElement("canvas");
@@ -11309,7 +11462,7 @@ var yr = (e) => {
11309
11462
  }, a.onerror = () => {
11310
11463
  URL.revokeObjectURL(i), r(/* @__PURE__ */ Error("Imagen inválida"));
11311
11464
  }, a.src = i;
11312
- }), pl = (e) => e.length === 0 ? "Arrastra archivos o haz clic" : e.length === 1 ? e[0].name : `${e.length} archivos seleccionados`, ml = (e) => `${e.name}-${e.lastModified}-${e.size}`, hl = ({ form: e, name: t, label: n, info: r, required: i, accept: a = "*", multiple: o = !1, maxSizeMb: s = 10, dropLabel: c, readOnly: l, disabled: u, small: d, className: f, onChange: p, onUpload: g, onRefresh: _ }) => {
11465
+ }), bl = (e) => e.length === 0 ? "Arrastra archivos o haz clic" : e.length === 1 ? e[0].name : `${e.length} archivos seleccionados`, xl = (e) => `${e.name}-${e.lastModified}-${e.size}`, Sl = ({ form: e, name: t, label: n, info: r, required: i, accept: a = "*", multiple: o = !1, maxSizeMb: s = 10, dropLabel: c, readOnly: l, disabled: u, small: d, className: f, onChange: p, onUpload: g, onRefresh: _ }) => {
11313
11466
  let x = m(null), S = b({
11314
11467
  name: t,
11315
11468
  control: e.control
@@ -11318,7 +11471,7 @@ var yr = (e) => {
11318
11471
  return e ? Array.isArray(e) ? e : [e] : [];
11319
11472
  })(), L = async (e) => {
11320
11473
  if (g) for (let t of e) {
11321
- let e = ml(t);
11474
+ let e = xl(t);
11322
11475
  O((t) => new Set(t).add(e)), E((t) => ({
11323
11476
  ...t,
11324
11477
  [e]: 0
@@ -11343,7 +11496,7 @@ var yr = (e) => {
11343
11496
  }
11344
11497
  }
11345
11498
  }, ee = (e) => {
11346
- let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && ol(e, a)), r = e.length - n.length;
11499
+ let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && pl(e, a)), r = e.length - n.length;
11347
11500
  if (A(r > 0 ? `${r} archivo(s) no cumplen tipo o tamaño máximo.` : null), o) {
11348
11501
  let e = [...I, ...n];
11349
11502
  S.field.onChange(e), p?.(e), L(n);
@@ -11397,7 +11550,7 @@ var yr = (e) => {
11397
11550
  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"),
11398
11551
  children: [/* @__PURE__ */ v("span", {
11399
11552
  className: "sf-file-drop__title",
11400
- children: C ? "Suelta aquí" : c ?? pl(I)
11553
+ children: C ? "Suelta aquí" : c ?? bl(I)
11401
11554
  }), /* @__PURE__ */ y("span", {
11402
11555
  className: "sf-file-drop__hint",
11403
11556
  children: [
@@ -11412,7 +11565,7 @@ var yr = (e) => {
11412
11565
  className: "sf-file-list",
11413
11566
  "aria-label": "Archivos seleccionados",
11414
11567
  children: I.map((e) => {
11415
- let t = ml(e), n = T[t], r = D.has(t);
11568
+ let t = xl(e), n = T[t], r = D.has(t);
11416
11569
  return /* @__PURE__ */ y("li", {
11417
11570
  className: "sf-file-list__item",
11418
11571
  children: [/* @__PURE__ */ y("span", {
@@ -11441,7 +11594,7 @@ var yr = (e) => {
11441
11594
  ]
11442
11595
  })
11443
11596
  });
11444
- }, gl = ({ form: e, name: t, label: n, info: r, required: i, capture: a, maxSizeMb: o = 5, readOnly: c, disabled: l, small: d, className: f, onChange: g, onRefresh: _ }) => {
11597
+ }, Cl = ({ form: e, name: t, label: n, info: r, required: i, capture: a, maxSizeMb: o = 5, readOnly: c, disabled: l, small: d, className: f, onChange: g, onRefresh: _ }) => {
11445
11598
  let x = m(null), S = b({
11446
11599
  name: t,
11447
11600
  control: e.control
@@ -11531,7 +11684,7 @@ var yr = (e) => {
11531
11684
  ]
11532
11685
  })
11533
11686
  });
11534
- }, _l = ({ form: e, name: t, label: n, info: r, required: i, width: a = 400, height: o = 160, readOnly: c, disabled: l, className: d, onChange: f, onRefresh: p }) => {
11687
+ }, wl = ({ form: e, name: t, label: n, info: r, required: i, width: a = 400, height: o = 160, readOnly: c, disabled: l, className: d, onChange: f, onRefresh: p }) => {
11535
11688
  let g = m(null), _ = m(!1), x = m(null), S = m(void 0), C = b({
11536
11689
  name: t,
11537
11690
  control: e.control
@@ -11623,11 +11776,11 @@ var yr = (e) => {
11623
11776
  })]
11624
11777
  })
11625
11778
  });
11626
- }, vl = ({ form: e, name: t, label: n, info: r, required: i, max: a = 10, maxSizeMb: o = 5, camera: c = !1, readOnly: l, disabled: d, small: f, className: g, onChange: _, onRefresh: x }) => {
11779
+ }, Tl = ({ form: e, name: t, label: n, info: r, required: i, max: a = 10, maxSizeMb: o = 5, camera: c = !1, readOnly: l, disabled: d, small: f, className: g, onChange: _, onRefresh: x }) => {
11627
11780
  let S = m(null), C = b({
11628
11781
  name: t,
11629
11782
  control: e.control
11630
- }), w = String(t), T = C.fieldState.error?.message ? String(C.fieldState.error.message) : void 0, [E, D] = h(null), O = T ?? E ?? void 0, k = l || d, A = p(() => dl(C.field.value), [C.field.value]), j = p(() => !k && A.length < a, [
11783
+ }), w = String(t), T = C.fieldState.error?.message ? String(C.fieldState.error.message) : void 0, [E, D] = h(null), O = T ?? E ?? void 0, k = l || d, A = p(() => vl(C.field.value), [C.field.value]), j = p(() => !k && A.length < a, [
11631
11784
  k,
11632
11785
  a,
11633
11786
  A.length
@@ -11635,7 +11788,7 @@ var yr = (e) => {
11635
11788
  u(() => {
11636
11789
  N.current = A;
11637
11790
  }, [A]), u(() => () => {
11638
- for (let e of N.current) ll(e);
11791
+ for (let e of N.current) gl(e);
11639
11792
  }, []);
11640
11793
  let P = s((e) => {
11641
11794
  C.field.onChange(e), _?.(e);
@@ -11650,7 +11803,7 @@ var yr = (e) => {
11650
11803
  D(`Hay imágenes que superan ${o} MB.`);
11651
11804
  return;
11652
11805
  }
11653
- let r = a - A.length, i = n.slice(0, r).map((e) => cl(e));
11806
+ let r = a - A.length, i = n.slice(0, r).map((e) => hl(e));
11654
11807
  if (n.length > r) {
11655
11808
  D(`Solo puedes agregar ${r} imagen(es) más.`);
11656
11809
  return;
@@ -11663,7 +11816,7 @@ var yr = (e) => {
11663
11816
  A
11664
11817
  ]), I = s((e) => {
11665
11818
  let t = A.find((t) => t.id === e);
11666
- t && ll(t), P(A.filter((t) => t.id !== e));
11819
+ t && gl(t), P(A.filter((t) => t.id !== e));
11667
11820
  }, [P, A]);
11668
11821
  return /* @__PURE__ */ v(Z, {
11669
11822
  id: w,
@@ -11735,19 +11888,19 @@ var yr = (e) => {
11735
11888
  ]
11736
11889
  })
11737
11890
  });
11738
- }, yl = (e) => {
11891
+ }, El = (e) => {
11739
11892
  switch (e.kind) {
11740
- case "photo": return /* @__PURE__ */ v(gl, { ...e });
11741
- case "multiPhoto": return /* @__PURE__ */ v(vl, { ...e });
11742
- case "signature": return /* @__PURE__ */ v(_l, { ...e });
11893
+ case "photo": return /* @__PURE__ */ v(Cl, { ...e });
11894
+ case "multiPhoto": return /* @__PURE__ */ v(Tl, { ...e });
11895
+ case "signature": return /* @__PURE__ */ v(wl, { ...e });
11743
11896
  case "file": return /* @__PURE__ */ v(Rn, { ...e });
11744
11897
  default: return null;
11745
11898
  }
11746
- }, bl = (e) => new Promise((t, n) => {
11899
+ }, Dl = (e) => new Promise((t, n) => {
11747
11900
  let r = new Image();
11748
11901
  r.addEventListener("load", () => t(r)), r.addEventListener("error", () => n(/* @__PURE__ */ Error("No se pudo cargar la imagen"))), r.setAttribute("crossOrigin", "anonymous"), r.src = e;
11749
- }), xl = async (e, t, n, r = "image/jpeg") => {
11750
- let i = await bl(e), a = document.createElement("canvas");
11902
+ }), Ol = async (e, t, n, r = "image/jpeg") => {
11903
+ let i = await Dl(e), a = document.createElement("canvas");
11751
11904
  a.width = t.width, a.height = t.height;
11752
11905
  let o = a.getContext("2d");
11753
11906
  if (!o) throw Error("Canvas no disponible");
@@ -11760,7 +11913,7 @@ var yr = (e) => {
11760
11913
  e(new File([i], n, { type: r }));
11761
11914
  }, r, .92);
11762
11915
  });
11763
- }, Sl = ({ imageUrl: e, fileName: t, aspect: n = 1, onCancel: r, onConfirm: i, className: a }) => {
11916
+ }, kl = ({ imageUrl: e, fileName: t, aspect: n = 1, onCancel: r, onConfirm: i, className: a }) => {
11764
11917
  let [o, c] = h({
11765
11918
  x: 0,
11766
11919
  y: 0
@@ -11771,7 +11924,7 @@ var yr = (e) => {
11771
11924
  m(!0);
11772
11925
  try {
11773
11926
  let n = t.toLowerCase().endsWith(".png") ? "image/png" : "image/jpeg";
11774
- i(await xl(e, d, t, n));
11927
+ i(await Ol(e, d, t, n));
11775
11928
  } finally {
11776
11929
  m(!1);
11777
11930
  }
@@ -11822,7 +11975,7 @@ var yr = (e) => {
11822
11975
  })
11823
11976
  ]
11824
11977
  });
11825
- }, Cl = ({ form: e, name: t, label: n, info: r, required: i, maxSizeMb: a = 5, interactive: o = !0, aspect: c = 1, readOnly: l, disabled: d, small: f, className: g, onChange: _, onRefresh: x }) => {
11978
+ }, Al = ({ form: e, name: t, label: n, info: r, required: i, maxSizeMb: a = 5, interactive: o = !0, aspect: c = 1, readOnly: l, disabled: d, small: f, className: g, onChange: _, onRefresh: x }) => {
11826
11979
  let S = m(null), C = b({
11827
11980
  name: t,
11828
11981
  control: e.control
@@ -11851,7 +12004,7 @@ var yr = (e) => {
11851
12004
  }
11852
12005
  T(!0);
11853
12006
  try {
11854
- let t = await fl(e);
12007
+ let t = await yl(e);
11855
12008
  I(t);
11856
12009
  } finally {
11857
12010
  T(!1);
@@ -11943,7 +12096,7 @@ var yr = (e) => {
11943
12096
  role: "dialog",
11944
12097
  "aria-modal": "true",
11945
12098
  "aria-label": "Editor de recorte",
11946
- children: /* @__PURE__ */ v(Sl, {
12099
+ children: /* @__PURE__ */ v(kl, {
11947
12100
  imageUrl: E.url,
11948
12101
  fileName: E.fileName,
11949
12102
  aspect: c,
@@ -11955,7 +12108,7 @@ var yr = (e) => {
11955
12108
  })]
11956
12109
  })]
11957
12110
  });
11958
- }, wl = () => [], Tl = ({ title: e, description: t, className: n, children: r }) => /* @__PURE__ */ y("section", {
12111
+ }, jl = () => [], Ml = ({ title: e, description: t, className: n, children: r }) => /* @__PURE__ */ y("section", {
11959
12112
  className: (0, X.default)("sf-neutral-map-frame", n),
11960
12113
  children: [(e || t) && /* @__PURE__ */ y("div", {
11961
12114
  className: "sf-neutral-map-frame__header",
@@ -11967,11 +12120,11 @@ var yr = (e) => {
11967
12120
  children: t
11968
12121
  })]
11969
12122
  }), r]
11970
- }), El = ({ tone: e = "info", children: t }) => /* @__PURE__ */ v("p", {
12123
+ }), Nl = ({ tone: e = "info", children: t }) => /* @__PURE__ */ v("p", {
11971
12124
  className: (0, X.default)("sf-neutral-map-status", `sf-neutral-map-status--${e}`),
11972
12125
  role: e === "error" ? "alert" : "status",
11973
12126
  children: t
11974
- }), Dl = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
12127
+ }), Pl = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
11975
12128
  className: (0, X.default)("sf-map-legend", t),
11976
12129
  role: "list",
11977
12130
  "aria-label": "Leyenda del mapa",
@@ -11998,7 +12151,7 @@ var yr = (e) => {
11998
12151
  })
11999
12152
  ]
12000
12153
  }, t))
12001
- }), Ol = ({ mapType: e, onMapTypeChange: t, onFullscreen: n, onLayers: r, className: i }) => /* @__PURE__ */ y("div", {
12154
+ }), Fl = ({ mapType: e, onMapTypeChange: t, onFullscreen: n, onLayers: r, className: i }) => /* @__PURE__ */ y("div", {
12002
12155
  className: (0, X.default)("sf-map-toolbar", i),
12003
12156
  children: [
12004
12157
  /* @__PURE__ */ y("div", {
@@ -12025,7 +12178,7 @@ var yr = (e) => {
12025
12178
  onClick: n,
12026
12179
  "aria-label": "Pantalla completa",
12027
12180
  title: "Pantalla completa",
12028
- children: /* @__PURE__ */ v(Y, { "aria-hidden": "true" })
12181
+ children: /* @__PURE__ */ v(it, { "aria-hidden": "true" })
12029
12182
  }),
12030
12183
  r && /* @__PURE__ */ v("button", {
12031
12184
  type: "button",
@@ -12036,7 +12189,7 @@ var yr = (e) => {
12036
12189
  children: /* @__PURE__ */ v(ot, { "aria-hidden": "true" })
12037
12190
  })
12038
12191
  ]
12039
- }), kl = ({ title: e, subtitle: t, statusLabel: n, statusColor: r, speedKmh: i, onClick: a, className: o }) => /* @__PURE__ */ y("div", {
12192
+ }), Il = ({ title: e, subtitle: t, statusLabel: n, statusColor: r, speedKmh: i, onClick: a, className: o }) => /* @__PURE__ */ y("div", {
12040
12193
  className: (0, X.default)("sf-map-vehicle-popup", a && "sf-map-vehicle-popup--interactive", o),
12041
12194
  onClick: a,
12042
12195
  onKeyDown: (e) => {
@@ -12076,59 +12229,59 @@ var yr = (e) => {
12076
12229
  ]
12077
12230
  })
12078
12231
  ]
12079
- }), Al = "Maps config not found. Wrap your app with <SfProvider maps={...}>.", jl = {
12232
+ }), Ll = "Maps config not found. Wrap your app with <SfProvider maps={...}>.", Rl = {
12080
12233
  lat: -12.0464,
12081
12234
  lng: -77.0428
12082
- }, Ml = 13, Nl = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", Pl = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Fl = {
12235
+ }, zl = 13, Bl = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", Vl = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Hl = {
12083
12236
  drawing: "basic",
12084
12237
  streetView: "none",
12085
12238
  clustering: "none",
12086
12239
  heatmap: "none"
12087
- }, Il = {
12240
+ }, Ul = {
12088
12241
  drawing: "basic",
12089
12242
  streetView: "interactive",
12090
12243
  clustering: "client",
12091
12244
  heatmap: "weighted"
12092
- }, Ll = "sf-google-maps-script", Rl = ({ apiKey: e, language: t = "es", region: n = "PE", libraries: r = [] }) => {
12245
+ }, Wl = "sf-google-maps-script", Gl = ({ apiKey: e, language: t = "es", region: n = "PE", libraries: r = [] }) => {
12093
12246
  let i = new URLSearchParams({
12094
12247
  key: e,
12095
12248
  language: t,
12096
12249
  region: n
12097
12250
  });
12098
12251
  return r.length > 0 && i.set("libraries", r.join(",")), `https://maps.googleapis.com/maps/api/js?${i.toString()}`;
12099
- }, zl = (e) => {
12252
+ }, Kl = (e) => {
12100
12253
  let t = window;
12101
12254
  return t.google?.maps ? Promise.resolve(t.google) : (t.__sfGoogleMapsPromise ||= new Promise((n, r) => {
12102
- let i = document.getElementById(Ll);
12255
+ let i = document.getElementById(Wl);
12103
12256
  if (i) {
12104
12257
  i.addEventListener("load", () => n(t.google ?? {})), i.addEventListener("error", () => r(/* @__PURE__ */ Error("No se pudo cargar Google Maps.")));
12105
12258
  return;
12106
12259
  }
12107
12260
  let a = document.createElement("script");
12108
- a.id = Ll, a.src = Rl(e), a.async = !0, a.defer = !0, a.addEventListener("load", () => n(t.google ?? {})), a.addEventListener("error", () => r(/* @__PURE__ */ Error("No se pudo cargar Google Maps."))), document.head.appendChild(a);
12261
+ a.id = Wl, a.src = Gl(e), a.async = !0, a.defer = !0, a.addEventListener("load", () => n(t.google ?? {})), a.addEventListener("error", () => r(/* @__PURE__ */ Error("No se pudo cargar Google Maps."))), document.head.appendChild(a);
12109
12262
  }), t.__sfGoogleMapsPromise);
12110
- }, Bl = (e, t = "") => {
12263
+ }, ql = (e, t = "") => {
12111
12264
  let n = e.match(/^var\((--[^,)]+)\)$/);
12112
12265
  return !n || typeof document > "u" ? t || e : getComputedStyle(document.documentElement).getPropertyValue(n[1]).trim() || t || e;
12113
- }, Vl = (e, t) => ({
12266
+ }, Jl = (e, t) => ({
12114
12267
  map: t,
12115
12268
  paths: e.points,
12116
- strokeColor: e.color ?? Bl("var(--sf-map-area-stroke)"),
12117
- fillColor: e.fillColor ?? e.color ?? Bl("var(--sf-map-area-fill)"),
12269
+ strokeColor: e.color ?? ql("var(--sf-map-area-stroke)"),
12270
+ fillColor: e.fillColor ?? e.color ?? ql("var(--sf-map-area-fill)"),
12118
12271
  fillOpacity: .14,
12119
12272
  strokeWeight: 2.5
12120
- }), Hl = (e, t) => ({
12273
+ }), Yl = (e, t) => ({
12121
12274
  map: t,
12122
12275
  path: e.points,
12123
- strokeColor: e.color ?? Bl("var(--sf-map-route-stroke)"),
12276
+ strokeColor: e.color ?? ql("var(--sf-map-route-stroke)"),
12124
12277
  strokeWeight: 3.5
12125
- }), Ul = (e, t, n) => ({
12278
+ }), Xl = (e, t, n) => ({
12126
12279
  map: t,
12127
12280
  position: e.position,
12128
12281
  title: e.title ?? e.label,
12129
12282
  label: e.label ? e.label.slice(0, 1).toUpperCase() : void 0,
12130
12283
  draggable: !n && e.options?.draggable
12131
- }), Wl = ({ config: e, center: t = jl, zoom: n = 13, markers: r = [], routes: i = [], areas: a = [], height: o = 320, className: s, readOnly: c, onClick: l, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: p, onMarkerDragEnd: g }) => {
12284
+ }), Zl = ({ config: e, center: t = Rl, zoom: n = 13, markers: r = [], routes: i = [], areas: a = [], height: o = 320, className: s, readOnly: c, onClick: l, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: p, onMarkerDragEnd: g }) => {
12132
12285
  let _ = m(null), y = m(null), b = m(/* @__PURE__ */ new Map()), x = m(/* @__PURE__ */ new Map()), S = m(/* @__PURE__ */ new Map()), C = m({
12133
12286
  onMarkerClick: d,
12134
12287
  onMarkerDoubleClick: f,
@@ -12161,9 +12314,9 @@ var yr = (e) => {
12161
12314
  return;
12162
12315
  }
12163
12316
  let t = !1;
12164
- return D("loading"), zl(e).then((n) => {
12317
+ return D("loading"), Kl(e).then((n) => {
12165
12318
  t || !_.current || !n.maps?.Map || (y.current = new n.maps.Map(_.current, {
12166
- center: jl,
12319
+ center: Rl,
12167
12320
  zoom: 13,
12168
12321
  mapId: e.mapId,
12169
12322
  disableDefaultUI: c
@@ -12182,7 +12335,7 @@ var yr = (e) => {
12182
12335
  }, []), u(() => {
12183
12336
  if (E !== "ready" || !e?.apiKey || !y.current) return;
12184
12337
  let t = !1;
12185
- return zl(e).then((e) => {
12338
+ return Kl(e).then((e) => {
12186
12339
  if (t || !e.maps?.Marker) return;
12187
12340
  let n = new Set(r.map((e) => e.id));
12188
12341
  b.current.forEach((e, t) => {
@@ -12191,10 +12344,10 @@ var yr = (e) => {
12191
12344
  x.current.set(t.id, t);
12192
12345
  let n = b.current.get(t.id);
12193
12346
  if (n) {
12194
- n.marker.setPosition?.(t.position), n.marker.setOptions?.(Ul(t, y.current, c));
12347
+ n.marker.setPosition?.(t.position), n.marker.setOptions?.(Xl(t, y.current, c));
12195
12348
  return;
12196
12349
  }
12197
- let r = new e.maps.Marker(Ul(t, y.current, c)), i = () => x.current.get(t.id) ?? t, a = [
12350
+ let r = new e.maps.Marker(Xl(t, y.current, c)), i = () => x.current.get(t.id) ?? t, a = [
12198
12351
  r.addListener?.("click", () => {
12199
12352
  C.current.onMarkerClick?.({ marker: i() });
12200
12353
  }),
@@ -12238,7 +12391,7 @@ var yr = (e) => {
12238
12391
  ]), u(() => {
12239
12392
  if (E !== "ready" || !e?.apiKey || !y.current) return;
12240
12393
  let t = !1;
12241
- return zl(e).then((e) => {
12394
+ return Kl(e).then((e) => {
12242
12395
  if (t || !e.maps?.Polyline || !e.maps.Polygon) return;
12243
12396
  let n = /* @__PURE__ */ new Set([...a.map((e) => `area:${e.id}`), ...i.map((e) => `route:${e.id}`)]);
12244
12397
  S.current.forEach((e, t) => {
@@ -12246,22 +12399,22 @@ var yr = (e) => {
12246
12399
  }), a.forEach((t) => {
12247
12400
  let n = `area:${t.id}`, r = S.current.get(n);
12248
12401
  if (r?.kind === "area") {
12249
- r.shape.setPaths?.(t.points), r.shape.setOptions?.(Vl(t, y.current));
12402
+ r.shape.setPaths?.(t.points), r.shape.setOptions?.(Jl(t, y.current));
12250
12403
  return;
12251
12404
  }
12252
12405
  r?.shape.setMap?.(null), S.current.set(n, {
12253
12406
  kind: "area",
12254
- shape: new e.maps.Polygon(Vl(t, y.current))
12407
+ shape: new e.maps.Polygon(Jl(t, y.current))
12255
12408
  });
12256
12409
  }), i.forEach((t) => {
12257
12410
  let n = `route:${t.id}`, r = S.current.get(n);
12258
12411
  if (r?.kind === "route") {
12259
- r.shape.setPath?.(t.points), r.shape.setOptions?.(Hl(t, y.current));
12412
+ r.shape.setPath?.(t.points), r.shape.setOptions?.(Yl(t, y.current));
12260
12413
  return;
12261
12414
  }
12262
12415
  r?.shape.setMap?.(null), S.current.set(n, {
12263
12416
  kind: "route",
12264
- shape: new e.maps.Polyline(Hl(t, y.current))
12417
+ shape: new e.maps.Polyline(Yl(t, y.current))
12265
12418
  });
12266
12419
  });
12267
12420
  }), () => {
@@ -12275,7 +12428,7 @@ var yr = (e) => {
12275
12428
  ]), u(() => {
12276
12429
  if (E !== "ready" || !e?.apiKey || !y.current || !l || c) return;
12277
12430
  let t = !1, n;
12278
- return zl(e).then(() => {
12431
+ return Kl(e).then(() => {
12279
12432
  let e = y.current;
12280
12433
  t || !e?.addListener || (n = e.addListener("click", (e) => {
12281
12434
  e.latLng && l({ location: {
@@ -12304,25 +12457,25 @@ var yr = (e) => {
12304
12457
  "aria-busy": E !== "ready" || void 0
12305
12458
  })
12306
12459
  });
12307
- }, Gl = (e) => ({
12460
+ }, Ql = (e) => ({
12308
12461
  id: "google",
12309
- capabilities: Il,
12310
- createRenderer: () => (t) => /* @__PURE__ */ v(Wl, {
12462
+ capabilities: Ul,
12463
+ createRenderer: () => (t) => /* @__PURE__ */ v(Zl, {
12311
12464
  ...t,
12312
12465
  config: e
12313
12466
  })
12314
- }), Kl = (e) => [e.lat, e.lng], ql = (e) => ie.divIcon({
12467
+ }), $l = (e) => [e.lat, e.lng], eu = (e) => ie.divIcon({
12315
12468
  className: "",
12316
12469
  html: `<div class="sf-neutral-map-marker" style="${e ? `--sf-neutral-map-marker-bg:${e};` : ""}"></div>`,
12317
12470
  iconSize: [18, 18],
12318
12471
  iconAnchor: [9, 9]
12319
- }), Jl = ({ readOnly: e, onClick: t }) => (re({ click(n) {
12472
+ }), tu = ({ readOnly: e, onClick: t }) => (re({ click(n) {
12320
12473
  e || t?.({ location: {
12321
12474
  lat: n.latlng.lat,
12322
12475
  lng: n.latlng.lng
12323
12476
  } });
12324
- } }), null), Yl = ({ center: e = jl, zoom: t = 13, markers: n = [], routes: r = [], areas: i = [], height: a = 320, className: o, readOnly: s, tileUrl: c = Nl, attribution: l = Pl, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
12325
- let g = To(), _ = p(() => Kl(e), [e]), b = typeof a == "number" ? { height: `${a}px` } : { height: a };
12477
+ } }), null), nu = ({ center: e = Rl, zoom: t = 13, markers: n = [], routes: r = [], areas: i = [], height: a = 320, className: o, readOnly: s, tileUrl: c = Bl, attribution: l = Vl, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
12478
+ let g = To(), _ = p(() => $l(e), [e]), b = typeof a == "number" ? { height: `${a}px` } : { height: a };
12326
12479
  return g ? /* @__PURE__ */ v("div", {
12327
12480
  className: o,
12328
12481
  style: b,
@@ -12337,29 +12490,29 @@ var yr = (e) => {
12337
12490
  attribution: l,
12338
12491
  url: c
12339
12492
  }),
12340
- /* @__PURE__ */ v(Jl, {
12493
+ /* @__PURE__ */ v(tu, {
12341
12494
  readOnly: s,
12342
12495
  onClick: u
12343
12496
  }),
12344
12497
  i.map((e) => /* @__PURE__ */ v(ne, {
12345
- positions: e.points.map(Kl),
12498
+ positions: e.points.map($l),
12346
12499
  pathOptions: {
12347
- color: e.color ?? Bl("var(--sf-map-area-stroke)"),
12348
- fillColor: e.fillColor ?? e.color ?? Bl("var(--sf-map-area-fill)"),
12500
+ color: e.color ?? ql("var(--sf-map-area-stroke)"),
12501
+ fillColor: e.fillColor ?? e.color ?? ql("var(--sf-map-area-fill)"),
12349
12502
  fillOpacity: .14,
12350
12503
  weight: 2.5
12351
12504
  }
12352
12505
  }, e.id)),
12353
12506
  r.map((e) => /* @__PURE__ */ v(V, {
12354
- positions: e.points.map(Kl),
12507
+ positions: e.points.map($l),
12355
12508
  pathOptions: {
12356
- color: e.color ?? Bl("var(--sf-map-route-stroke)"),
12509
+ color: e.color ?? ql("var(--sf-map-route-stroke)"),
12357
12510
  weight: 3.5
12358
12511
  }
12359
12512
  }, e.id)),
12360
12513
  n.map((e) => /* @__PURE__ */ v(te, {
12361
- position: Kl(e.position),
12362
- icon: ql(e.color),
12514
+ position: $l(e.position),
12515
+ icon: eu(e.color),
12363
12516
  title: e.title ?? e.label,
12364
12517
  draggable: !s && e.options?.draggable,
12365
12518
  bubblingMouseEvents: !1,
@@ -12396,18 +12549,18 @@ var yr = (e) => {
12396
12549
  style: b,
12397
12550
  children: "Cargando mapa…"
12398
12551
  });
12399
- }, Xl = (e) => ({
12552
+ }, ru = (e) => ({
12400
12553
  id: "leaflet",
12401
- capabilities: Fl,
12402
- createRenderer: () => (t) => /* @__PURE__ */ v(Yl, {
12554
+ capabilities: Hl,
12555
+ createRenderer: () => (t) => /* @__PURE__ */ v(nu, {
12403
12556
  ...t,
12404
12557
  tileUrl: e?.tileUrl,
12405
12558
  attribution: e?.attribution
12406
12559
  })
12407
- }), Zl = 6371e3, Ql = (e) => e * Math.PI / 180, $l = (e, t) => {
12408
- let n = Ql(t.lat - e.lat), r = Ql(t.lng - e.lng), i = Ql(e.lat), a = Ql(t.lat), o = Math.sin(n / 2) ** 2 + Math.sin(r / 2) ** 2 * Math.cos(i) * Math.cos(a);
12409
- return 2 * Zl * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o));
12410
- }, eu = () => ({
12560
+ }), iu = 6371e3, au = (e) => e * Math.PI / 180, ou = (e, t) => {
12561
+ let n = au(t.lat - e.lat), r = au(t.lng - e.lng), i = au(e.lat), a = au(t.lat), o = Math.sin(n / 2) ** 2 + Math.sin(r / 2) ** 2 * Math.cos(i) * Math.cos(a);
12562
+ return 2 * iu * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o));
12563
+ }, su = () => ({
12411
12564
  id: "basic",
12412
12565
  capabilities: {
12413
12566
  distance: "point-to-point",
@@ -12415,12 +12568,12 @@ var yr = (e) => {
12415
12568
  },
12416
12569
  async calculateDistance(e) {
12417
12570
  let t = e.origins[0], n = e.destinations[0];
12418
- return { distanceMeters: t && n ? $l(t, n) : 0 };
12571
+ return { distanceMeters: t && n ? ou(t, n) : 0 };
12419
12572
  }
12420
- }), tu = (e) => ({
12573
+ }), cu = (e) => ({
12421
12574
  lat: e.lat(),
12422
12575
  lng: e.lng()
12423
- }), nu = (e) => {
12576
+ }), lu = (e) => {
12424
12577
  let t = e.geometry?.location;
12425
12578
  if (!t) return null;
12426
12579
  let n = e.formatted_address ?? e.place_id ?? "Ubicación Google Maps";
@@ -12428,45 +12581,45 @@ var yr = (e) => {
12428
12581
  id: e.place_id ?? n,
12429
12582
  label: n,
12430
12583
  address: e.formatted_address,
12431
- location: tu(t),
12584
+ location: cu(t),
12432
12585
  provider: "google",
12433
12586
  raw: e
12434
12587
  };
12435
- }, ru = (e) => ({
12588
+ }, uu = (e) => ({
12436
12589
  id: "google",
12437
12590
  capabilities: { geocoding: "full" },
12438
12591
  async geocode(t) {
12439
- let n = (await zl(e)).maps?.Geocoder;
12592
+ let n = (await Kl(e)).maps?.Geocoder;
12440
12593
  return n ? new Promise((e) => {
12441
12594
  new n().geocode({ address: t }, (t) => {
12442
- e((t ?? []).map((e) => nu(e)).filter((e) => !!e));
12595
+ e((t ?? []).map((e) => lu(e)).filter((e) => !!e));
12443
12596
  });
12444
12597
  }) : [];
12445
12598
  },
12446
12599
  async reverseGeocode(t) {
12447
- let n = (await zl(e)).maps?.Geocoder;
12600
+ let n = (await Kl(e)).maps?.Geocoder;
12448
12601
  return n ? new Promise((e) => {
12449
12602
  new n().geocode({ location: t }, (t) => {
12450
- e(nu(t?.[0] ?? {}));
12603
+ e(lu(t?.[0] ?? {}));
12451
12604
  });
12452
12605
  }) : null;
12453
12606
  }
12454
- }), iu = (e) => e.toFixed(6), au = (e, t, n) => Math.min(Math.max(e, t), n), ou = (e) => au(e, -90, 90), su = (e) => au(e, -180, 180), cu = (e, t = 0) => {
12607
+ }), du = (e) => e.toFixed(6), fu = (e, t, n) => Math.min(Math.max(e, t), n), pu = (e) => fu(e, -90, 90), mu = (e) => fu(e, -180, 180), hu = (e, t = 0) => {
12455
12608
  if (typeof e == "number") return Number.isFinite(e) ? e : t;
12456
12609
  let n = Number.parseFloat(e.trim().replace(",", "."));
12457
12610
  return Number.isFinite(n) ? n : t;
12458
- }, lu = (e) => `${iu(e.lat)}, ${iu(e.lng)}`, uu = (e, t) => {
12611
+ }, gu = (e) => `${du(e.lat)}, ${du(e.lng)}`, _u = (e, t) => {
12459
12612
  if (!e || typeof e != "object" || !("lat" in e) || !("lng" in e)) return t;
12460
- let n = cu(e.lat, t.lat), r = cu(e.lng, t.lng);
12613
+ let n = hu(e.lat, t.lat), r = hu(e.lng, t.lng);
12461
12614
  return {
12462
- lat: ou(n),
12463
- lng: su(r)
12615
+ lat: pu(n),
12616
+ lng: mu(r)
12464
12617
  };
12465
- }, du = (e, t = "Ubicación") => ({
12618
+ }, vu = (e, t = "Ubicación") => ({
12466
12619
  id: `${e.lat}:${e.lng}`,
12467
12620
  position: e,
12468
12621
  label: t
12469
- }), fu = () => ({
12622
+ }), yu = () => ({
12470
12623
  id: "nominatim",
12471
12624
  capabilities: { geocoding: "basic" },
12472
12625
  async geocode(e) {
@@ -12490,13 +12643,13 @@ var yr = (e) => {
12490
12643
  provider: "nominatim"
12491
12644
  };
12492
12645
  }
12493
- }), pu = (e) => ({
12646
+ }), bu = (e) => ({
12494
12647
  id: e.id,
12495
12648
  capabilities: { places: e.capabilities.geocoding === "none" ? "none" : "basic" },
12496
12649
  searchPlaces(t) {
12497
12650
  return e.geocode(t);
12498
12651
  }
12499
- }), mu = () => ({
12652
+ }), xu = () => ({
12500
12653
  id: "basic",
12501
12654
  capabilities: {
12502
12655
  routing: "basic",
@@ -12514,31 +12667,31 @@ var yr = (e) => {
12514
12667
  ]
12515
12668
  };
12516
12669
  }
12517
- }), hu = i({}), gu = (e) => {
12670
+ }), Su = i({}), Cu = (e) => {
12518
12671
  let t = e.services?.geocoding ?? e.defaultEngine, n = e.engines.google;
12519
- return t === "google" && n ? ru(n) : fu();
12520
- }, _u = (e) => {
12521
- let t = e.defaultEngine === "google" ? Gl(e.engines.google) : Xl(e.engines.leaflet), n = gu(e);
12672
+ return t === "google" && n ? uu(n) : yu();
12673
+ }, wu = (e) => {
12674
+ let t = e.defaultEngine === "google" ? Ql(e.engines.google) : ru(e.engines.leaflet), n = Cu(e);
12522
12675
  return {
12523
12676
  config: e,
12524
12677
  engine: t,
12525
12678
  geocodingService: n,
12526
- placesService: pu(n),
12527
- routingService: mu(),
12528
- distanceService: eu()
12679
+ placesService: bu(n),
12680
+ routingService: xu(),
12681
+ distanceService: su()
12529
12682
  };
12530
- }, vu = ({ maps: e, children: t }) => {
12531
- let n = p(() => ({ maps: e ? _u(e) : void 0 }), [e]);
12532
- return /* @__PURE__ */ v(hu.Provider, {
12683
+ }, Tu = ({ maps: e, children: t }) => {
12684
+ let n = p(() => ({ maps: e ? wu(e) : void 0 }), [e]);
12685
+ return /* @__PURE__ */ v(Su.Provider, {
12533
12686
  value: n,
12534
12687
  children: t
12535
12688
  });
12536
- }, yu = () => c(hu), bu = () => {
12537
- let e = yu();
12538
- if (!e.maps) throw Error(Al);
12689
+ }, Eu = () => c(Su), Du = () => {
12690
+ let e = Eu();
12691
+ if (!e.maps) throw Error(Ll);
12539
12692
  return e.maps;
12540
- }, xu = () => {
12541
- let e = bu(), [t, n] = h(!1), [r, i] = h([]), [a, o] = h(null), c = m(0);
12693
+ }, Ou = () => {
12694
+ let e = Du(), [t, n] = h(!1), [r, i] = h([]), [a, o] = h(null), c = m(0);
12542
12695
  return {
12543
12696
  loading: t,
12544
12697
  results: r,
@@ -12562,18 +12715,18 @@ var yr = (e) => {
12562
12715
  }
12563
12716
  }, [e.geocodingService])
12564
12717
  };
12565
- }, Su = () => {
12566
- let e = bu();
12718
+ }, ku = () => {
12719
+ let e = Du();
12567
12720
  return p(() => ({
12568
12721
  id: e.engine.id,
12569
12722
  capabilities: e.engine.capabilities,
12570
12723
  renderer: e.engine.createRenderer()
12571
12724
  }), [e.engine]);
12572
- }, Cu = () => bu().config, wu = (e) => e && typeof e == "object" && "label" in e ? String(e.label ?? "") : "", Tu = ({ form: e, name: t, label: n, info: r, required: i, placeholder: a = "Buscar dirección", readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
12725
+ }, Au = () => Du().config, ju = (e) => e && typeof e == "object" && "label" in e ? String(e.label ?? "") : "", Mu = ({ form: e, name: t, label: n, info: r, required: i, placeholder: a = "Buscar dirección", readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
12573
12726
  let d = b({
12574
12727
  name: t,
12575
12728
  control: e.control
12576
- }), { loading: f, results: p, error: m, search: g } = xu(), [_, x] = h(() => wu(d.field.value)), S = String(t), C = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, w = o || s, T = (e) => {
12729
+ }), { loading: f, results: p, error: m, search: g } = Ou(), [_, x] = h(() => ju(d.field.value)), S = String(t), C = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, w = o || s, T = (e) => {
12577
12730
  d.field.onChange(e), l?.(e);
12578
12731
  };
12579
12732
  return /* @__PURE__ */ v(Z, {
@@ -12640,9 +12793,9 @@ var yr = (e) => {
12640
12793
  ]
12641
12794
  })
12642
12795
  });
12643
- }, Eu = ({ title: e, description: t, center: n = jl, zoom: r = 13, markers: i = [], routes: a = [], areas: o = [], height: s = 360, className: c, readOnly: l, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
12644
- let g = Su(), _ = p(() => g.renderer, [g.renderer]);
12645
- return /* @__PURE__ */ v(Tl, {
12796
+ }, Nu = ({ title: e, description: t, center: n = Rl, zoom: r = 13, markers: i = [], routes: a = [], areas: o = [], height: s = 360, className: c, readOnly: l, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
12797
+ let g = ku(), _ = p(() => g.renderer, [g.renderer]);
12798
+ return /* @__PURE__ */ v(Ml, {
12646
12799
  title: e,
12647
12800
  description: t,
12648
12801
  className: c,
@@ -12661,16 +12814,16 @@ var yr = (e) => {
12661
12814
  onMarkerDragEnd: h
12662
12815
  })
12663
12816
  });
12664
- }, Du = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
12817
+ }, Pu = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
12665
12818
  let [d, f] = h(!1), [p, m] = h(null), g = b({
12666
12819
  name: t,
12667
12820
  control: e.control
12668
- }), _ = String(t), x = g.fieldState.error?.message ? String(g.fieldState.error.message) : void 0, S = o || s, C = uu(g.field.value, jl), w = (e) => {
12821
+ }), _ = String(t), x = g.fieldState.error?.message ? String(g.fieldState.error.message) : void 0, S = o || s, C = _u(g.field.value, Rl), w = (e) => {
12669
12822
  g.field.onChange(e), l?.(e);
12670
12823
  }, T = (e, t) => {
12671
12824
  w({
12672
12825
  ...C,
12673
- [e]: cu(t, C[e])
12826
+ [e]: hu(t, C[e])
12674
12827
  });
12675
12828
  };
12676
12829
  return /* @__PURE__ */ v(Z, {
@@ -12693,7 +12846,7 @@ var yr = (e) => {
12693
12846
  id: `${_}-lat`,
12694
12847
  type: "text",
12695
12848
  inputMode: "decimal",
12696
- value: iu(C.lat),
12849
+ value: du(C.lat),
12697
12850
  readOnly: S,
12698
12851
  disabled: s,
12699
12852
  "aria-invalid": !!x || void 0,
@@ -12713,7 +12866,7 @@ var yr = (e) => {
12713
12866
  id: `${_}-lng`,
12714
12867
  type: "text",
12715
12868
  inputMode: "decimal",
12716
- value: iu(C.lng),
12869
+ value: du(C.lng),
12717
12870
  readOnly: S,
12718
12871
  disabled: s,
12719
12872
  "aria-invalid": !!x || void 0,
@@ -12732,8 +12885,8 @@ var yr = (e) => {
12732
12885
  onClick: () => {
12733
12886
  !navigator.geolocation || d || S || (f(!0), m(null), navigator.geolocation.getCurrentPosition((e) => {
12734
12887
  let t = {
12735
- lat: Number(iu(e.coords.latitude)),
12736
- lng: Number(iu(e.coords.longitude))
12888
+ lat: Number(du(e.coords.latitude)),
12889
+ lng: Number(du(e.coords.longitude))
12737
12890
  };
12738
12891
  w(t), m(e.coords.accuracy > 200 ? `Precisión aproximada: ${Math.round(e.coords.accuracy)} m.` : null), f(!1);
12739
12892
  }, () => {
@@ -12754,7 +12907,7 @@ var yr = (e) => {
12754
12907
  role: "status",
12755
12908
  children: p
12756
12909
  }),
12757
- /* @__PURE__ */ v(Eu, {
12910
+ /* @__PURE__ */ v(Nu, {
12758
12911
  center: C,
12759
12912
  zoom: a,
12760
12913
  height: 220,
@@ -12766,8 +12919,8 @@ var yr = (e) => {
12766
12919
  }],
12767
12920
  onClick: (e) => {
12768
12921
  w({
12769
- lat: Number(iu(e.location.lat)),
12770
- lng: Number(iu(e.location.lng))
12922
+ lat: Number(du(e.location.lat)),
12923
+ lng: Number(du(e.location.lng))
12771
12924
  }), g.field.onBlur();
12772
12925
  }
12773
12926
  }),
@@ -12778,19 +12931,19 @@ var yr = (e) => {
12778
12931
  ]
12779
12932
  })
12780
12933
  });
12781
- }, Ou = (e) => /* @__PURE__ */ v(Du, { ...e }), ku = (e) => Array.isArray(e) ? e.map((e) => uu(e, jl)) : [], Au = (e) => e.length === 0 ? "Sin puntos" : e.length === 1 ? "1 punto" : `${e.length} puntos`, ju = "var(--sf-map-area-stroke)", Mu = "var(--sf-map-area-fill)", Nu = "var(--sf-map-route-stroke)", Pu = ({ form: e, name: t, mode: n, label: r, info: i, required: a = !0, zoom: o = 13, readOnly: s, disabled: c, className: l, onChange: u, onRefresh: d }) => {
12934
+ }, Fu = (e) => /* @__PURE__ */ v(Pu, { ...e }), Iu = (e) => Array.isArray(e) ? e.map((e) => _u(e, Rl)) : [], Lu = (e) => e.length === 0 ? "Sin puntos" : e.length === 1 ? "1 punto" : `${e.length} puntos`, Ru = "var(--sf-map-area-stroke)", zu = "var(--sf-map-area-fill)", Bu = "var(--sf-map-route-stroke)", Vu = ({ form: e, name: t, mode: n, label: r, info: i, required: a = !0, zoom: o = 13, readOnly: s, disabled: c, className: l, onChange: u, onRefresh: d }) => {
12782
12935
  let f = n === "area" ? 3 : 2, p = `Dibuja al menos ${f} puntos para ${n === "area" ? "un área" : "una ruta"}.`, m = b({
12783
12936
  name: t,
12784
12937
  control: e.control,
12785
12938
  rules: { validate: (e) => {
12786
- let t = ku(e).length;
12939
+ let t = Iu(e).length;
12787
12940
  return t === 0 && !a ? !0 : t < f ? p : !0;
12788
12941
  } }
12789
- }), h = String(t), g = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, _ = s || c, x = ku(m.field.value), S = x.at(-1) ?? jl, C = {
12942
+ }), h = String(t), g = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, _ = s || c, x = Iu(m.field.value), S = x.at(-1) ?? Rl, C = {
12790
12943
  id: `${h}-${n}`,
12791
12944
  points: x,
12792
- color: n === "area" ? ju : Nu,
12793
- fillColor: n === "area" ? Mu : void 0
12945
+ color: n === "area" ? Ru : Bu,
12946
+ fillColor: n === "area" ? zu : void 0
12794
12947
  }, w = (e) => {
12795
12948
  m.field.onChange(e), u?.(e);
12796
12949
  }, T = () => w(x.slice(0, -1)), E = () => w([]), D = (e, t, n) => e.map((e, r) => r === t ? n : e), O = (e) => {
@@ -12823,7 +12976,7 @@ var yr = (e) => {
12823
12976
  children: "Limpiar"
12824
12977
  })]
12825
12978
  }),
12826
- /* @__PURE__ */ v(Eu, {
12979
+ /* @__PURE__ */ v(Nu, {
12827
12980
  center: S,
12828
12981
  zoom: o,
12829
12982
  height: 260,
@@ -12832,7 +12985,7 @@ var yr = (e) => {
12832
12985
  id: `${h}-point-${t}`,
12833
12986
  position: e,
12834
12987
  label: String(t + 1),
12835
- color: n === "area" ? ju : Nu,
12988
+ color: n === "area" ? Ru : Bu,
12836
12989
  options: { draggable: !_ }
12837
12990
  })),
12838
12991
  areas: n === "area" && x.length >= 3 ? [C] : [],
@@ -12855,7 +13008,7 @@ var yr = (e) => {
12855
13008
  className: "sf-map-hint",
12856
13009
  "aria-live": "polite",
12857
13010
  children: [
12858
- Au(x),
13011
+ Lu(x),
12859
13012
  " · Clic para añadir. Arrastra un punto para moverlo. Doble clic para eliminar.",
12860
13013
  " ",
12861
13014
  /* @__PURE__ */ v("span", {
@@ -12867,38 +13020,38 @@ var yr = (e) => {
12867
13020
  ]
12868
13021
  })
12869
13022
  });
12870
- }, Fu = (e) => /* @__PURE__ */ v(Pu, {
13023
+ }, Hu = (e) => /* @__PURE__ */ v(Vu, {
12871
13024
  ...e,
12872
13025
  mode: "area"
12873
- }), Iu = (e) => /* @__PURE__ */ v(Pu, {
13026
+ }), Uu = (e) => /* @__PURE__ */ v(Vu, {
12874
13027
  ...e,
12875
13028
  mode: "route"
12876
- }), Lu = (e) => {
13029
+ }), Wu = (e) => {
12877
13030
  switch (e.kind) {
12878
- case "coordinates": return /* @__PURE__ */ v(Ou, { ...e });
12879
- case "location": return /* @__PURE__ */ v(Du, { ...e });
12880
- case "address": return /* @__PURE__ */ v(Tu, { ...e });
12881
- case "area": return /* @__PURE__ */ v(Fu, { ...e });
12882
- case "route": return /* @__PURE__ */ v(Iu, { ...e });
13031
+ case "coordinates": return /* @__PURE__ */ v(Fu, { ...e });
13032
+ case "location": return /* @__PURE__ */ v(Pu, { ...e });
13033
+ case "address": return /* @__PURE__ */ v(Mu, { ...e });
13034
+ case "area": return /* @__PURE__ */ v(Hu, { ...e });
13035
+ case "route": return /* @__PURE__ */ v(Uu, { ...e });
12883
13036
  default: return null;
12884
13037
  }
12885
- }, Ru = /^#[0-9a-fA-F]{6}$/, zu = "#".padEnd(7, "0"), Bu = () => {
13038
+ }, Gu = /^#[0-9a-fA-F]{6}$/, Ku = "#".padEnd(7, "0"), qu = () => {
12886
13039
  if (typeof document > "u") return "";
12887
13040
  let e = getComputedStyle(document.documentElement).getPropertyValue("--sf-primary").trim();
12888
- return Ru.test(e) ? e.toLowerCase() : "";
12889
- }, Vu = (e, t, n) => Math.min(n, Math.max(t, e)), Hu = (e, t) => t?.formatValue ? t.formatValue(e) : t?.suffix ? `${e} ${t.suffix}` : String(e), Uu = () => [], Wu = (e) => Array.isArray(e) ? e.map((e) => String(e ?? "").trim()).filter(Boolean) : [], Gu = () => [], Ku = (e) => Array.isArray(e) ? e.map((e) => {
13041
+ return Gu.test(e) ? e.toLowerCase() : "";
13042
+ }, Ju = (e, t, n) => Math.min(n, Math.max(t, e)), Yu = (e, t) => t?.formatValue ? t.formatValue(e) : t?.suffix ? `${e} ${t.suffix}` : String(e), Xu = () => [], Zu = (e) => Array.isArray(e) ? e.map((e) => String(e ?? "").trim()).filter(Boolean) : [], Qu = () => [], $u = (e) => Array.isArray(e) ? e.map((e) => {
12890
13043
  if (typeof e != "object" || !e) return null;
12891
13044
  let t = e;
12892
13045
  return {
12893
13046
  key: String(t.key ?? ""),
12894
13047
  value: String(t.value ?? "")
12895
13048
  };
12896
- }).filter((e) => e != null) : [], qu = (e = 0, t = 100) => ({
13049
+ }).filter((e) => e != null) : [], ed = (e = 0, t = 100) => ({
12897
13050
  start: e,
12898
13051
  end: t
12899
- }), Ju = (e, t = 0, n = 100) => {
13052
+ }), td = (e, t = 0, n = 100) => {
12900
13053
  if (e && typeof e == "object" && "start" in e && "end" in e) {
12901
- let r = e, i = Vu(Number(r.start), t, n), a = Vu(Number(r.end), t, n);
13054
+ let r = e, i = Ju(Number(r.start), t, n), a = Ju(Number(r.end), t, n);
12902
13055
  return i <= a ? {
12903
13056
  start: i,
12904
13057
  end: a
@@ -12907,15 +13060,15 @@ var yr = (e) => {
12907
13060
  end: i
12908
13061
  };
12909
13062
  }
12910
- return qu(t, n);
12911
- }, Yu = (e, t) => {
12912
- let n = Bu(), r = String(t ?? (n || zu)).trim(), i = Ru.test(r) ? r.toLowerCase() : zu, a = String(e ?? i).trim();
12913
- return Ru.test(a) ? a.toLowerCase() : i;
12914
- }, Xu = (e, t, n) => n <= t ? 0 : Math.round((Vu(e, t, n) - t) / (n - t) * 100), Zu = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), Qu = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, step: s = 1, suffix: c, readOnly: l, disabled: u, className: d, formatValue: f, onChange: p, onRefresh: m }) => {
13063
+ return ed(t, n);
13064
+ }, nd = (e, t) => {
13065
+ let n = qu(), r = String(t ?? (n || Ku)).trim(), i = Gu.test(r) ? r.toLowerCase() : Ku, a = String(e ?? i).trim();
13066
+ return Gu.test(a) ? a.toLowerCase() : i;
13067
+ }, rd = (e, t, n) => n <= t ? 0 : Math.round((Ju(e, t, n) - t) / (n - t) * 100), id = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), ad = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, step: s = 1, suffix: c, readOnly: l, disabled: u, className: d, formatValue: f, onChange: p, onRefresh: m }) => {
12915
13068
  let h = b({
12916
13069
  name: t,
12917
13070
  control: e.control
12918
- }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Vu(Number(h.field.value ?? a), a, o), C = (e) => {
13071
+ }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Ju(Number(h.field.value ?? a), a, o), C = (e) => {
12919
13072
  h.field.onChange(e), p?.(e);
12920
13073
  };
12921
13074
  return /* @__PURE__ */ v(Z, {
@@ -12939,17 +13092,17 @@ var yr = (e) => {
12939
13092
  "aria-invalid": !!_ || void 0,
12940
13093
  onBlur: () => h.field.onBlur(),
12941
13094
  onChange: (e) => C(Number(e.target.value)),
12942
- className: Zu(x)
13095
+ className: id(x)
12943
13096
  }), /* @__PURE__ */ v("span", {
12944
13097
  className: "sf-slider__value",
12945
- children: Hu(S, {
13098
+ children: Yu(S, {
12946
13099
  suffix: c,
12947
13100
  formatValue: f
12948
13101
  })
12949
13102
  })]
12950
13103
  })
12951
13104
  });
12952
- }, $u = {
13105
+ }, od = {
12953
13106
  slate: {
12954
13107
  wrap: "border-slate-300 bg-white",
12955
13108
  button: "bg-slate-50 text-slate-600 hover:bg-slate-100",
@@ -12970,7 +13123,7 @@ var yr = (e) => {
12970
13123
  button: "bg-blue-50 text-blue-700 hover:bg-blue-100",
12971
13124
  value: "text-blue-700"
12972
13125
  }
12973
- }, ed = {
13126
+ }, sd = {
12974
13127
  sm: {
12975
13128
  button: "h-6 w-6",
12976
13129
  icon: "h-3 w-3",
@@ -12981,13 +13134,13 @@ var yr = (e) => {
12981
13134
  icon: "h-3.5 w-3.5",
12982
13135
  value: "min-w-[2.5rem] px-1.5 text-sm"
12983
13136
  }
12984
- }, td = (e, t) => {
13137
+ }, cd = (e, t) => {
12985
13138
  let n = (String(t).split(".")[1] ?? "").length;
12986
13139
  return Number(e.toFixed(n));
12987
- }, nd = ({ value: e, onChange: t, min: n = 0, max: r = Infinity, step: i = 1, tone: a = "slate", size: o = "md", disabled: s = !1, readOnly: c = !1, ariaLabel: l, formatValue: u, className: d }) => {
12988
- let f = $u[a], p = ed[o], m = s || c, h = (a) => {
13140
+ }, ld = ({ value: e, onChange: t, min: n = 0, max: r = Infinity, step: i = 1, tone: a = "slate", size: o = "md", disabled: s = !1, readOnly: c = !1, ariaLabel: l, formatValue: u, className: d }) => {
13141
+ let f = od[a], p = sd[o], m = s || c, h = (a) => {
12989
13142
  if (m) return;
12990
- let o = Math.min(r, Math.max(n, td(a, i)));
13143
+ let o = Math.min(r, Math.max(n, cd(a, i)));
12991
13144
  o !== e && t(o);
12992
13145
  }, g = e <= n, _ = e >= r, b = u ? u(e) : String(e), x = (0, X.default)("flex items-center justify-center font-bold leading-none transition-colors disabled:cursor-not-allowed disabled:opacity-40", f.button, p.button);
12993
13146
  return /* @__PURE__ */ y("div", {
@@ -13023,11 +13176,11 @@ var yr = (e) => {
13023
13176
  })
13024
13177
  ]
13025
13178
  });
13026
- }, rd = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), id = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, step: s = 1, suffix: c, readOnly: l, disabled: u, className: d, formatValue: f, onChange: p, onRefresh: m }) => {
13179
+ }, ud = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), dd = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, step: s = 1, suffix: c, readOnly: l, disabled: u, className: d, formatValue: f, onChange: p, onRefresh: m }) => {
13027
13180
  let h = b({
13028
13181
  name: t,
13029
13182
  control: e.control
13030
- }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Ju(h.field.value, a, o), C = (e) => {
13183
+ }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = td(h.field.value, a, o), C = (e) => {
13031
13184
  h.field.onChange(e), p?.(e);
13032
13185
  }, w = {
13033
13186
  suffix: c,
@@ -13045,7 +13198,7 @@ var yr = (e) => {
13045
13198
  children: [
13046
13199
  /* @__PURE__ */ v("span", {
13047
13200
  className: "sf-slider__value sf-slider__value--sm",
13048
- children: Hu(S.start, w)
13201
+ children: Yu(S.start, w)
13049
13202
  }),
13050
13203
  /* @__PURE__ */ y("div", {
13051
13204
  className: "grid flex-1 gap-2",
@@ -13067,7 +13220,7 @@ var yr = (e) => {
13067
13220
  end: Math.max(t, S.end)
13068
13221
  });
13069
13222
  },
13070
- className: rd(x)
13223
+ className: ud(x)
13071
13224
  }), /* @__PURE__ */ v("input", {
13072
13225
  id: `${g}-end`,
13073
13226
  type: "range",
@@ -13086,21 +13239,21 @@ var yr = (e) => {
13086
13239
  end: t
13087
13240
  });
13088
13241
  },
13089
- className: rd(x)
13242
+ className: ud(x)
13090
13243
  })]
13091
13244
  }),
13092
13245
  /* @__PURE__ */ v("span", {
13093
13246
  className: "sf-slider__value sf-slider__value--sm",
13094
- children: Hu(S.end, w)
13247
+ children: Yu(S.end, w)
13095
13248
  })
13096
13249
  ]
13097
13250
  })
13098
13251
  });
13099
- }, ad = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, suffix: s, className: c, formatValue: l, onRefresh: u }) => {
13252
+ }, fd = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, suffix: s, className: c, formatValue: l, onRefresh: u }) => {
13100
13253
  let d = b({
13101
13254
  name: t,
13102
13255
  control: e.control
13103
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = Vu(Number(d.field.value ?? a), a, o), h = Xu(m, a, o);
13256
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = Ju(Number(d.field.value ?? a), a, o), h = rd(m, a, o);
13104
13257
  return /* @__PURE__ */ v(Z, {
13105
13258
  id: f,
13106
13259
  label: n,
@@ -13123,21 +13276,21 @@ var yr = (e) => {
13123
13276
  })
13124
13277
  }), /* @__PURE__ */ v("span", {
13125
13278
  className: "sf-progress-bar__value",
13126
- children: Hu(m, {
13279
+ children: Yu(m, {
13127
13280
  suffix: s,
13128
13281
  formatValue: l
13129
13282
  })
13130
13283
  })]
13131
13284
  })
13132
13285
  });
13133
- }, od = {
13286
+ }, pd = {
13134
13287
  default: "sf-progress-bar-readonly__fill--default",
13135
13288
  success: "sf-progress-bar-readonly__fill--success",
13136
13289
  warning: "sf-progress-bar-readonly__fill--warning",
13137
13290
  danger: "sf-progress-bar-readonly__fill--danger",
13138
13291
  info: "sf-progress-bar-readonly__fill--info"
13139
- }, sd = ({ value: e, min: t = 0, max: n = 100, label: r, showValue: i = !0, suffix: a, formatValue: o, tone: s = "default", size: c = "md", className: l }) => {
13140
- let u = Vu(e, t, n), d = Xu(u, t, n), f = Hu(u, {
13292
+ }, md = ({ value: e, min: t = 0, max: n = 100, label: r, showValue: i = !0, suffix: a, formatValue: o, tone: s = "default", size: c = "md", className: l }) => {
13293
+ let u = Ju(e, t, n), d = rd(u, t, n), f = Yu(u, {
13141
13294
  suffix: a,
13142
13295
  formatValue: o
13143
13296
  });
@@ -13151,7 +13304,7 @@ var yr = (e) => {
13151
13304
  /* @__PURE__ */ v("div", {
13152
13305
  className: "sf-progress-bar-readonly__track",
13153
13306
  children: /* @__PURE__ */ v("div", {
13154
- className: (0, X.default)("sf-progress-bar-readonly__fill", od[s]),
13307
+ className: (0, X.default)("sf-progress-bar-readonly__fill", pd[s]),
13155
13308
  style: { width: `${d}%` },
13156
13309
  role: "progressbar",
13157
13310
  "aria-label": r ?? "Progreso",
@@ -13166,11 +13319,11 @@ var yr = (e) => {
13166
13319
  })
13167
13320
  ]
13168
13321
  });
13169
- }, cd = ({ form: e, name: t, label: n, info: r, required: i, stars: a = 5, readOnly: o, disabled: s, small: c, className: l, onChange: u, onRefresh: d }) => {
13322
+ }, hd = ({ form: e, name: t, label: n, info: r, required: i, stars: a = 5, readOnly: o, disabled: s, small: c, className: l, onChange: u, onRefresh: d }) => {
13170
13323
  let [f, p] = h(0), m = b({
13171
13324
  name: t,
13172
13325
  control: e.control
13173
- }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, y = o || s, x = ld(Number(m.field.value ?? 0), a), S = f || x, C = (e) => {
13326
+ }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, y = o || s, x = gd(Number(m.field.value ?? 0), a), S = f || x, C = (e) => {
13174
13327
  m.field.onChange(e), u?.(e), m.field.onBlur();
13175
13328
  }, w = (e, t) => {
13176
13329
  if (y) return;
@@ -13210,12 +13363,12 @@ var yr = (e) => {
13210
13363
  }, e))
13211
13364
  })
13212
13365
  });
13213
- }, ld = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : Math.min(t, Math.round(e)), ud = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
13366
+ }, gd = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : Math.min(t, Math.round(e)), _d = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
13214
13367
  let d = b({
13215
13368
  name: t,
13216
13369
  control: e.control
13217
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = Yu(d.field.value), g = (e) => {
13218
- let t = Yu(e, h);
13370
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = nd(d.field.value), g = (e) => {
13371
+ let t = nd(e, h);
13219
13372
  d.field.onChange(t), l?.(t);
13220
13373
  };
13221
13374
  return /* @__PURE__ */ v(Z, {
@@ -13258,11 +13411,11 @@ var yr = (e) => {
13258
13411
  })]
13259
13412
  })
13260
13413
  });
13261
- }, dd = ({ form: e, name: t, label: n, info: r, required: i, placeholder: a = "Escribe y presiona Enter", maxItems: o, readOnly: s, disabled: c, className: l, onChange: u, onRefresh: d }) => {
13414
+ }, vd = ({ form: e, name: t, label: n, info: r, required: i, placeholder: a = "Escribe y presiona Enter", maxItems: o, readOnly: s, disabled: c, className: l, onChange: u, onRefresh: d }) => {
13262
13415
  let [f, p] = h(""), m = b({
13263
13416
  name: t,
13264
13417
  control: e.control
13265
- }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, x = s || c, S = Wu(m.field.value), C = o != null && S.length >= o, w = (e) => {
13418
+ }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, x = s || c, S = Zu(m.field.value), C = o != null && S.length >= o, w = (e) => {
13266
13419
  m.field.onChange(e), u?.(e);
13267
13420
  }, T = () => {
13268
13421
  let e = f.trim();
@@ -13314,11 +13467,11 @@ var yr = (e) => {
13314
13467
  })]
13315
13468
  })
13316
13469
  });
13317
- }, fd = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
13470
+ }, yd = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
13318
13471
  let d = b({
13319
13472
  name: t,
13320
13473
  control: e.control
13321
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = Ku(d.field.value), g = (e) => {
13474
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = $u(d.field.value), g = (e) => {
13322
13475
  d.field.onChange(e), l?.(e);
13323
13476
  }, _ = (e, t, n) => {
13324
13477
  g(h.map((r, i) => i === e ? {
@@ -13403,7 +13556,7 @@ var yr = (e) => {
13403
13556
  })]
13404
13557
  })
13405
13558
  });
13406
- }, pd = ({ items: e, onReorder: t, className: n }) => {
13559
+ }, bd = ({ items: e, onReorder: t, className: n }) => {
13407
13560
  let [r, i] = h(null), a = (n) => (a) => {
13408
13561
  if (a.preventDefault(), !r) return;
13409
13562
  let o = e.findIndex((e) => e.id === r);
@@ -13429,7 +13582,7 @@ var yr = (e) => {
13429
13582
  })]
13430
13583
  }, e.id))
13431
13584
  });
13432
- }, md = ({ value: e, onChange: t, options: n, name: r = "card-radio-group", className: i, ariaLabel: a = "Opciones" }) => /* @__PURE__ */ v("div", {
13585
+ }, xd = ({ value: e, onChange: t, options: n, name: r = "card-radio-group", className: i, ariaLabel: a = "Opciones" }) => /* @__PURE__ */ v("div", {
13433
13586
  className: (0, X.default)("sf-card-radio-group", i),
13434
13587
  role: "radiogroup",
13435
13588
  "aria-label": a,
@@ -13474,7 +13627,7 @@ var yr = (e) => {
13474
13627
  ]
13475
13628
  }, n.value);
13476
13629
  })
13477
- }), hd = ({ value: e, onChange: t, zones: n, label: r, disabled: i, className: a }) => {
13630
+ }), Sd = ({ value: e, onChange: t, zones: n, label: r, disabled: i, className: a }) => {
13478
13631
  let o = Math.max(0, n.findIndex((t) => t.value === e)), s = n[o], c = n.length > 1 ? o / (n.length - 1) * 100 : 0;
13479
13632
  return /* @__PURE__ */ y("div", {
13480
13633
  className: (0, X.default)("sf-semantic-slider", a),
@@ -13505,19 +13658,19 @@ var yr = (e) => {
13505
13658
  })
13506
13659
  ]
13507
13660
  });
13508
- }, gd = {
13661
+ }, Cd = {
13509
13662
  slate: "var(--sf-metric-tone-slate)",
13510
13663
  emerald: "var(--sf-metric-tone-emerald)",
13511
13664
  amber: "var(--sf-metric-tone-amber)",
13512
13665
  red: "var(--sf-metric-tone-red)",
13513
13666
  blue: "var(--sf-metric-tone-blue)"
13514
- }, _d = [
13667
+ }, wd = [
13515
13668
  "slate",
13516
13669
  "blue",
13517
13670
  "amber",
13518
13671
  "emerald",
13519
13672
  "red"
13520
- ], vd = ({ segments: e, onChange: t, unit: n, valueFormat: r, className: i }) => {
13673
+ ], Td = ({ segments: e, onChange: t, unit: n, valueFormat: r, className: i }) => {
13521
13674
  let a = m(null), o = m(null), [s, c] = h(null), l = e.reduce((e, t) => e + t.value, 0), u = r ?? ((e) => `${e.toLocaleString("es-PE")}${n ? ` ${n}` : ""}`), d = (n, r, i) => {
13522
13675
  t && t(e.map((e, t) => t === n ? {
13523
13676
  ...e,
@@ -13559,14 +13712,14 @@ var yr = (e) => {
13559
13712
  ref: a,
13560
13713
  className: "sf-allocation-bar__track",
13561
13714
  children: e.map((n, r) => {
13562
- let i = l > 0 ? n.value / l * 100 : 0, a = b[r], o = n.tone ?? _d[r % _d.length], c = r === e.length - 1, d = c ? 0 : n.value + e[r + 1].value, m = d > 0 ? Math.round(n.value / d * 100) : 50;
13715
+ let i = l > 0 ? n.value / l * 100 : 0, a = b[r], o = n.tone ?? wd[r % wd.length], c = r === e.length - 1, d = c ? 0 : n.value + e[r + 1].value, m = d > 0 ? Math.round(n.value / d * 100) : 50;
13563
13716
  return /* @__PURE__ */ y("div", {
13564
13717
  className: "contents",
13565
13718
  children: [/* @__PURE__ */ v("div", {
13566
13719
  className: "sf-allocation-bar__seg",
13567
13720
  style: {
13568
13721
  width: `${i}%`,
13569
- backgroundColor: gd[o]
13722
+ backgroundColor: Cd[o]
13570
13723
  },
13571
13724
  title: `${n.label} · ${u(n.value)} (${Math.round(i)}%)`
13572
13725
  }), !c && t && /* @__PURE__ */ v("div", {
@@ -13596,7 +13749,7 @@ var yr = (e) => {
13596
13749
  children: [
13597
13750
  /* @__PURE__ */ v("span", {
13598
13751
  className: "sf-allocation-bar__label-dot",
13599
- style: { backgroundColor: gd[t.tone ?? _d[e.indexOf(t) % _d.length]] },
13752
+ style: { backgroundColor: Cd[t.tone ?? wd[e.indexOf(t) % wd.length]] },
13600
13753
  "aria-hidden": "true"
13601
13754
  }),
13602
13755
  t.label,
@@ -13610,11 +13763,11 @@ var yr = (e) => {
13610
13763
  })
13611
13764
  })]
13612
13765
  });
13613
- }, yd = (e) => new Date(e).toLocaleTimeString("es-PE", {
13766
+ }, Ed = (e) => new Date(e).toLocaleTimeString("es-PE", {
13614
13767
  hour: "2-digit",
13615
13768
  minute: "2-digit"
13616
- }), bd = ({ value: e, onChange: t, min: n, max: r, step: i, marks: a, formatValue: o, label: s, disabled: c, className: l }) => {
13617
- let u = o ?? yd, d = r > n ? Math.min(100, Math.max(0, (e - n) / (r - n) * 100)) : 0, f = i ?? Math.max(1, Math.round((r - n) / 200));
13769
+ }), Dd = ({ value: e, onChange: t, min: n, max: r, step: i, marks: a, formatValue: o, label: s, disabled: c, className: l }) => {
13770
+ let u = o ?? Ed, d = r > n ? Math.min(100, Math.max(0, (e - n) / (r - n) * 100)) : 0, f = i ?? Math.max(1, Math.round((r - n) / 200));
13618
13771
  return /* @__PURE__ */ y("div", {
13619
13772
  className: (0, X.default)("sf-temporal-scrub", l),
13620
13773
  children: [s && /* @__PURE__ */ v("p", {
@@ -13656,7 +13809,7 @@ var yr = (e) => {
13656
13809
  ]
13657
13810
  })]
13658
13811
  });
13659
- }, xd = {
13812
+ }, Od = {
13660
13813
  group: {
13661
13814
  label: "Grupo / Entidad",
13662
13815
  labelShort: "GRP",
@@ -13675,7 +13828,7 @@ var yr = (e) => {
13675
13828
  rowClass: "sf-org-tree-row--role",
13676
13829
  barClass: "sf-org-tree-bar--role"
13677
13830
  }
13678
- }, Sd = (e) => {
13831
+ }, kd = (e) => {
13679
13832
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id));
13680
13833
  for (let n of e) {
13681
13834
  let e = n.parentId == null || n.parentId === "" ? null : n.parentId, r = t.get(e) ?? [];
@@ -13702,16 +13855,16 @@ var yr = (e) => {
13702
13855
  hasChildren: !1
13703
13856
  });
13704
13857
  return r;
13705
- }, Cd = (e, t = xd) => t[e] ?? xd[e] ?? null, wd = (e) => e.length, Td = (e) => {
13858
+ }, Ad = (e, t = Od) => t[e] ?? Od[e] ?? null, jd = (e) => e.length, Md = (e) => {
13706
13859
  let t = new Set(e.map((e) => e.id));
13707
13860
  return e.filter((e) => {
13708
13861
  let n = e.parentId == null || e.parentId === "" ? null : e.parentId;
13709
13862
  return n == null || !t.has(n);
13710
13863
  });
13711
- }, Ed = ({ type: e, className: t }) => v(e === "group" ? bt : e === "role" ? Je : J, {
13864
+ }, Nd = ({ type: e, className: t }) => v(e === "group" ? bt : e === "role" ? q : Ye, {
13712
13865
  className: t,
13713
13866
  "aria-hidden": "true"
13714
- }), Dd = ({ 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 = xd, onRenderNode: _, maxHeight: b = 480, className: x }) => {
13867
+ }), Pd = ({ 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 = Od, onRenderNode: _, maxHeight: b = 480, className: x }) => {
13715
13868
  let [S, C] = h(/* @__PURE__ */ new Set()), [w, T] = h({
13716
13869
  visible: !1,
13717
13870
  x: 0,
@@ -13734,7 +13887,7 @@ var yr = (e) => {
13734
13887
  window.removeEventListener("mousedown", e), window.removeEventListener("keydown", t);
13735
13888
  };
13736
13889
  }, [w.visible]);
13737
- let D = p(() => Sd(e), [e]), O = s((e) => {
13890
+ let D = p(() => kd(e), [e]), O = s((e) => {
13738
13891
  let t = e.parentId == null || e.parentId === "" ? null : e.parentId;
13739
13892
  for (; t != null;) {
13740
13893
  if (S.has(t)) return !0;
@@ -13821,7 +13974,7 @@ var yr = (e) => {
13821
13974
  className: "sf-org-tree__empty",
13822
13975
  children: "Sin nodos"
13823
13976
  }), k.map((e) => {
13824
- let t = Cd(e.type, g);
13977
+ let t = Ad(e.type, g);
13825
13978
  return /* @__PURE__ */ v("li", {
13826
13979
  role: "treeitem",
13827
13980
  "aria-level": e.depth + 1,
@@ -13841,7 +13994,7 @@ var yr = (e) => {
13841
13994
  tabIndex: e.hasChildren ? 0 : -1,
13842
13995
  children: S.has(e.id) ? /* @__PURE__ */ v(mt, { className: "h-4 w-4" }) : /* @__PURE__ */ v(gt, { className: "h-4 w-4" })
13843
13996
  }),
13844
- /* @__PURE__ */ v(Ed, {
13997
+ /* @__PURE__ */ v(Nd, {
13845
13998
  type: e.type,
13846
13999
  className: "h-4 w-4 shrink-0 opacity-70"
13847
14000
  }),
@@ -13868,7 +14021,7 @@ var yr = (e) => {
13868
14021
  "aria-label": `Eliminar ${e.label}`,
13869
14022
  onClick: () => d(e),
13870
14023
  className: "sf-org-tree-row__action sf-org-tree-row__action--danger",
13871
- children: /* @__PURE__ */ v(Ye, { className: "h-3.5 w-3.5" })
14024
+ children: /* @__PURE__ */ v(Xe, { className: "h-3.5 w-3.5" })
13872
14025
  })]
13873
14026
  })
13874
14027
  ]
@@ -13926,7 +14079,7 @@ var yr = (e) => {
13926
14079
  })
13927
14080
  ]
13928
14081
  });
13929
- }, Od = {
14082
+ }, Fd = {
13930
14083
  street: {
13931
14084
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
13932
14085
  attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>"
@@ -13935,27 +14088,27 @@ var yr = (e) => {
13935
14088
  url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
13936
14089
  attribution: "Tiles &copy; Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community"
13937
14090
  }
13938
- }, kd = {
14091
+ }, Id = {
13939
14092
  default: "Nodo",
13940
14093
  nap: "NAP",
13941
14094
  olt: "OLT",
13942
14095
  splitter: "Splitter"
13943
- }, Ad = {
14096
+ }, Ld = {
13944
14097
  default: "var(--sf-accent)",
13945
14098
  nap: "var(--sf-network-kind-nap)",
13946
14099
  olt: "var(--sf-network-kind-olt)",
13947
14100
  splitter: "var(--sf-network-kind-splitter)"
13948
- }, jd = {
14101
+ }, Rd = {
13949
14102
  normal: "var(--sf-network-status-normal)",
13950
14103
  warning: "var(--sf-network-status-warning)",
13951
14104
  critical: "var(--sf-network-status-critical)",
13952
14105
  maintenance: "var(--sf-network-status-maintenance)"
13953
- }, Md = {
14106
+ }, zd = {
13954
14107
  normal: "Normal",
13955
14108
  warning: "Advertencia",
13956
14109
  critical: "Crítico",
13957
14110
  maintenance: "Mantenimiento"
13958
- }, Nd = {
14111
+ }, Bd = {
13959
14112
  backbone: {
13960
14113
  color: "var(--sf-network-edge-backbone)",
13961
14114
  weight: 2.5
@@ -13969,7 +14122,7 @@ var yr = (e) => {
13969
14122
  weight: 1.5,
13970
14123
  dashArray: "6 4"
13971
14124
  }
13972
- }, Pd = Bl, Fd = (e) => {
14125
+ }, Vd = ql, Hd = (e) => {
13973
14126
  if (!Array.isArray(e)) return [];
13974
14127
  let t = [];
13975
14128
  for (let n of e) {
@@ -13978,24 +14131,24 @@ var yr = (e) => {
13978
14131
  if (!r) continue;
13979
14132
  let i = Number(e.lat), a = Number(e.lng);
13980
14133
  if (!Number.isFinite(i) || !Number.isFinite(a)) continue;
13981
- let o = String(e.status ?? "normal"), s = o in jd ? o : "normal", c = {
14134
+ let o = String(e.status ?? "normal"), s = o in Rd ? o : "normal", c = {
13982
14135
  id: r,
13983
14136
  label: String(e.label ?? ""),
13984
14137
  lat: i,
13985
14138
  lng: a,
13986
14139
  status: s
13987
14140
  }, l = e.kind == null ? r.startsWith("nap:") ? "nap" : "default" : String(e.kind);
13988
- l in kd && (c.kind = l), e.value != null && Number.isFinite(Number(e.value)) && (c.value = Number(e.value)), e.icon != null && (c.icon = String(e.icon)), t.push(c);
14141
+ l in Id && (c.kind = l), e.value != null && Number.isFinite(Number(e.value)) && (c.value = Number(e.value)), e.icon != null && (c.icon = String(e.icon)), t.push(c);
13989
14142
  }
13990
14143
  return t;
13991
- }, Id = (e) => {
14144
+ }, Ud = (e) => {
13992
14145
  if (!Array.isArray(e)) return [];
13993
14146
  let t = [];
13994
14147
  for (let n of e) {
13995
14148
  if (typeof n != "object" || !n) continue;
13996
14149
  let e = n, r = String(e.from ?? ""), i = String(e.to ?? "");
13997
14150
  if (!r || !i) continue;
13998
- let a = String(e.type ?? "backbone"), o = a in Nd ? a : "backbone";
14151
+ let a = String(e.type ?? "backbone"), o = a in Bd ? a : "backbone";
13999
14152
  t.push({
14000
14153
  from: r,
14001
14154
  to: i,
@@ -14003,7 +14156,7 @@ var yr = (e) => {
14003
14156
  });
14004
14157
  }
14005
14158
  return t;
14006
- }, Ld = (e) => {
14159
+ }, Wd = (e) => {
14007
14160
  let t = {
14008
14161
  normal: 0,
14009
14162
  warning: 0,
@@ -14012,18 +14165,18 @@ var yr = (e) => {
14012
14165
  };
14013
14166
  for (let n of e) t[n.status] += 1;
14014
14167
  return t;
14015
- }, Rd = (e) => {
14168
+ }, Gd = (e) => {
14016
14169
  if (e.length === 0) return null;
14017
14170
  let t = e.map((e) => e.lat), n = e.map((e) => e.lng);
14018
14171
  return [[Math.min(...t), Math.min(...n)], [Math.max(...t), Math.max(...n)]];
14019
- }, zd = (e) => Object.fromEntries(e.map((e) => [e.id, [e.lat, e.lng]])), Bd = (e, t) => e.flatMap((e) => {
14172
+ }, Kd = (e) => Object.fromEntries(e.map((e) => [e.id, [e.lat, e.lng]])), qd = (e, t) => e.flatMap((e) => {
14020
14173
  let n = t[e.from], r = t[e.to];
14021
14174
  return !n || !r ? [] : [{
14022
14175
  edge: e,
14023
14176
  line: [n, r]
14024
14177
  }];
14025
- }), Vd = ({ nodes: e, edges: t = [], placement: n = "bottom-left", className: r }) => {
14026
- let i = Ld(e), a = Array.from(new Set(t.map((e) => e.type ?? "backbone")));
14178
+ }), Jd = ({ nodes: e, edges: t = [], placement: n = "bottom-left", className: r }) => {
14179
+ let i = Wd(e), a = Array.from(new Set(t.map((e) => e.type ?? "backbone")));
14027
14180
  return /* @__PURE__ */ y("div", {
14028
14181
  className: (0, X.default)("sf-network-legend", n === "bottom-right" ? "sf-network-legend--right" : "sf-network-legend--left", r),
14029
14182
  role: "region",
@@ -14035,15 +14188,15 @@ var yr = (e) => {
14035
14188
  }),
14036
14189
  /* @__PURE__ */ v("ul", {
14037
14190
  className: "space-y-1",
14038
- children: Object.keys(Md).map((e) => /* @__PURE__ */ y("li", {
14191
+ children: Object.keys(zd).map((e) => /* @__PURE__ */ y("li", {
14039
14192
  className: "sf-network-legend__item",
14040
14193
  children: [/* @__PURE__ */ y("span", {
14041
14194
  className: "flex items-center gap-2",
14042
14195
  children: [/* @__PURE__ */ v("span", {
14043
14196
  className: "inline-block h-2.5 w-2.5 rounded-full",
14044
- style: { background: jd[e] },
14197
+ style: { background: Rd[e] },
14045
14198
  "aria-hidden": "true"
14046
- }), Md[e]]
14199
+ }), zd[e]]
14047
14200
  }), /* @__PURE__ */ v("span", {
14048
14201
  className: "sf-network-legend__count",
14049
14202
  children: i[e]
@@ -14056,7 +14209,7 @@ var yr = (e) => {
14056
14209
  }), /* @__PURE__ */ v("ul", {
14057
14210
  className: "space-y-1",
14058
14211
  children: a.map((e) => {
14059
- let t = Nd[e ?? "backbone"];
14212
+ let t = Bd[e ?? "backbone"];
14060
14213
  return /* @__PURE__ */ y("li", {
14061
14214
  className: "sf-network-legend__item sf-network-legend__item--edge",
14062
14215
  children: [/* @__PURE__ */ v("span", {
@@ -14076,19 +14229,19 @@ var yr = (e) => {
14076
14229
  })
14077
14230
  ]
14078
14231
  });
14079
- }, Hd = [-12.0464, -77.0428], Ud = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Wd = (e, t) => {
14080
- let n = e.status, r = e.kind ?? "default", i = r === "nap" ? "NAP" : e.value == null ? e.icon ?? kd[r].slice(0, 3).toUpperCase() : `${e.value}%`, a = Ud(e.label.length > 40 ? `${e.label.slice(0, 37)}…` : e.label), o = t ? " sf-network-marker--selected" : "";
14232
+ }, Yd = [-12.0464, -77.0428], Xd = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Zd = (e, t) => {
14233
+ let n = e.status, r = e.kind ?? "default", i = r === "nap" ? "NAP" : e.value == null ? e.icon ?? Id[r].slice(0, 3).toUpperCase() : `${e.value}%`, a = Xd(e.label.length > 40 ? `${e.label.slice(0, 37)}…` : e.label), o = t ? " sf-network-marker--selected" : "";
14081
14234
  return ie.divIcon({
14082
14235
  className: "sf-network-marker-root",
14083
14236
  iconAnchor: [24, 42],
14084
14237
  iconSize: [48, 48],
14085
14238
  html: `<div class="sf-network-marker${o}">
14086
14239
  <div class="sf-network-marker__label">${a}</div>
14087
- <div class="sf-network-marker__dot sf-network-marker__dot--status-${n} sf-network-marker__dot--kind-${r}">${Ud(String(i))}</div>
14240
+ <div class="sf-network-marker__dot sf-network-marker__dot--status-${n} sf-network-marker__dot--kind-${r}">${Xd(String(i))}</div>
14088
14241
  </div>`
14089
14242
  });
14090
- }, Gd = ({ nodes: e }) => {
14091
- let t = U(), n = Rd(e);
14243
+ }, Qd = ({ nodes: e }) => {
14244
+ let t = U(), n = Gd(e);
14092
14245
  return u(() => {
14093
14246
  n && t.fitBounds(n, {
14094
14247
  padding: [32, 32],
@@ -14099,8 +14252,8 @@ var yr = (e) => {
14099
14252
  t,
14100
14253
  e
14101
14254
  ]), null;
14102
- }, Kd = ({ nodes: e, edges: t = [], center: n = Hd, zoom: r = 12, height: i = 420, selectedNodeId: a, onNodeClick: o, showLegend: s = !0, fitBoundsToNodes: c = !0, basemap: l, onBasemapChange: u, showBasemapSwitcher: d = !1, ariaLabel: f = "Mapa de red", className: m }) => {
14103
- let g = To(), [_, b] = h("street"), x = l ?? _, S = Od[x], C = p(() => zd(e), [e]), w = p(() => Bd(t, C), [t, C]), T = (e) => {
14255
+ }, $d = ({ nodes: e, edges: t = [], center: n = Yd, zoom: r = 12, height: i = 420, selectedNodeId: a, onNodeClick: o, showLegend: s = !0, fitBoundsToNodes: c = !0, basemap: l, onBasemapChange: u, showBasemapSwitcher: d = !1, ariaLabel: f = "Mapa de red", className: m }) => {
14256
+ let g = To(), [_, b] = h("street"), x = l ?? _, S = Fd[x], C = p(() => Kd(e), [e]), w = p(() => qd(t, C), [t, C]), T = (e) => {
14104
14257
  l === void 0 && b(e), u?.(e);
14105
14258
  };
14106
14259
  return /* @__PURE__ */ y("div", {
@@ -14119,13 +14272,13 @@ var yr = (e) => {
14119
14272
  attribution: S.attribution,
14120
14273
  url: S.url
14121
14274
  }),
14122
- c && e.length > 0 && /* @__PURE__ */ v(Gd, { nodes: e }),
14275
+ c && e.length > 0 && /* @__PURE__ */ v(Qd, { nodes: e }),
14123
14276
  w.map(({ edge: e, line: t }) => {
14124
- let n = Nd[e.type ?? "backbone"];
14277
+ let n = Bd[e.type ?? "backbone"];
14125
14278
  return /* @__PURE__ */ v(V, {
14126
14279
  positions: t,
14127
14280
  pathOptions: {
14128
- color: Pd(n.color),
14281
+ color: Vd(n.color),
14129
14282
  weight: n.weight,
14130
14283
  dashArray: n.dashArray
14131
14284
  }
@@ -14133,7 +14286,7 @@ var yr = (e) => {
14133
14286
  }),
14134
14287
  e.map((e) => /* @__PURE__ */ v(te, {
14135
14288
  position: C[e.id],
14136
- icon: Wd(e, e.id === a),
14289
+ icon: Zd(e, e.id === a),
14137
14290
  title: e.label,
14138
14291
  alt: `${e.label}, estado ${e.status}`,
14139
14292
  keyboard: !!o,
@@ -14157,17 +14310,17 @@ var yr = (e) => {
14157
14310
  children: e === "street" ? "Mapa" : "Satélite"
14158
14311
  }, e))
14159
14312
  }),
14160
- s && e.length > 0 && /* @__PURE__ */ v(Vd, {
14313
+ s && e.length > 0 && /* @__PURE__ */ v(Jd, {
14161
14314
  nodes: e,
14162
14315
  edges: t
14163
14316
  })
14164
14317
  ]
14165
14318
  });
14166
- }, qd = {
14319
+ }, ef = {
14167
14320
  edit: "sf-audit-timeline__icon-wrap--edit",
14168
14321
  sync: "sf-audit-timeline__icon-wrap--sync",
14169
14322
  create: "sf-audit-timeline__icon-wrap--create"
14170
- }, Jd = ({ items: e, sectionTitle: t = "Historial de movimientos", eventCountLabel: n, ariaLabel: r = "Historial de movimientos", emptyMessage: i = "Sin eventos", className: a }) => {
14323
+ }, tf = ({ items: e, sectionTitle: t = "Historial de movimientos", eventCountLabel: n, ariaLabel: r = "Historial de movimientos", emptyMessage: i = "Sin eventos", className: a }) => {
14171
14324
  let o = n ?? `${e.length} evento${e.length === 1 ? "" : "s"}`;
14172
14325
  return /* @__PURE__ */ y("section", {
14173
14326
  className: (0, X.default)("sf-audit-timeline", a),
@@ -14206,11 +14359,11 @@ var yr = (e) => {
14206
14359
  /* @__PURE__ */ v("div", {
14207
14360
  className: "sf-audit-timeline__marker",
14208
14361
  children: t.icon ? /* @__PURE__ */ v("span", {
14209
- className: (0, X.default)("sf-audit-timeline__icon-wrap", qd[r]),
14362
+ className: (0, X.default)("sf-audit-timeline__icon-wrap", ef[r]),
14210
14363
  "aria-hidden": "true",
14211
14364
  children: t.icon
14212
14365
  }) : /* @__PURE__ */ v("span", {
14213
- className: (0, X.default)("sf-audit-timeline__icon-wrap", qd[r]),
14366
+ className: (0, X.default)("sf-audit-timeline__icon-wrap", ef[r]),
14214
14367
  "aria-hidden": "true"
14215
14368
  })
14216
14369
  }),
@@ -14246,16 +14399,16 @@ var yr = (e) => {
14246
14399
  })]
14247
14400
  })]
14248
14401
  });
14249
- }, Yd = {
14402
+ }, nf = {
14250
14403
  info: "sf-record-list__icon--info",
14251
14404
  warning: "sf-record-list__icon--warning",
14252
14405
  success: "sf-record-list__icon--success",
14253
14406
  neutral: "sf-record-list__icon--neutral"
14254
- }, Xd = ({ icon: e, iconTone: t = "info", title: n, subtitle: r, badge: i, actions: a, className: o }) => /* @__PURE__ */ y("article", {
14407
+ }, rf = ({ icon: e, iconTone: t = "info", title: n, subtitle: r, badge: i, actions: a, className: o }) => /* @__PURE__ */ y("article", {
14255
14408
  className: (0, X.default)("sf-record-list__item", o),
14256
14409
  children: [
14257
14410
  e && /* @__PURE__ */ v("span", {
14258
- className: (0, X.default)("sf-record-list__icon", Yd[t]),
14411
+ className: (0, X.default)("sf-record-list__icon", nf[t]),
14259
14412
  "aria-hidden": "true",
14260
14413
  children: e
14261
14414
  }),
@@ -14280,7 +14433,7 @@ var yr = (e) => {
14280
14433
  children: a
14281
14434
  })
14282
14435
  ]
14283
- }), Zd = ({ title: e, action: t, items: n, className: r, ariaLabel: i }) => /* @__PURE__ */ y("section", {
14436
+ }), af = ({ title: e, action: t, items: n, className: r, ariaLabel: i }) => /* @__PURE__ */ y("section", {
14284
14437
  className: (0, X.default)("sf-record-list", r),
14285
14438
  "aria-label": i ?? (typeof e == "string" ? e : void 0),
14286
14439
  children: [(e || t) && /* @__PURE__ */ y("div", {
@@ -14294,9 +14447,9 @@ var yr = (e) => {
14294
14447
  })]
14295
14448
  }), /* @__PURE__ */ v("div", {
14296
14449
  className: "sf-record-list__items",
14297
- children: n.map((e, t) => /* @__PURE__ */ v(Xd, { ...e }, e.id ?? t))
14450
+ children: n.map((e, t) => /* @__PURE__ */ v(rf, { ...e }, e.id ?? t))
14298
14451
  })]
14299
- }), Qd = ({ label: e, pulse: t = !0, className: n }) => /* @__PURE__ */ y("span", {
14452
+ }), of = ({ label: e, pulse: t = !0, className: n }) => /* @__PURE__ */ y("span", {
14300
14453
  className: (0, X.default)("sf-live-chip", n),
14301
14454
  children: [/* @__PURE__ */ v("span", {
14302
14455
  className: (0, X.default)("sf-live-chip__dot", t && "sf-live-chip__dot--pulse"),
@@ -14305,12 +14458,12 @@ var yr = (e) => {
14305
14458
  className: "sf-live-chip__label",
14306
14459
  children: e
14307
14460
  })]
14308
- }), $d = {
14461
+ }), sf = {
14309
14462
  default: "var(--sf-text, #1B2A38)",
14310
14463
  success: "#1F8A4C",
14311
14464
  warning: "#C76A12",
14312
14465
  danger: "#C0392B"
14313
- }, ef = {
14466
+ }, cf = {
14314
14467
  display: "flex",
14315
14468
  alignItems: "center",
14316
14469
  justifyContent: "space-between",
@@ -14321,110 +14474,110 @@ var yr = (e) => {
14321
14474
  border: "1px solid var(--sf-border, #E2E8EC)",
14322
14475
  borderRadius: 13,
14323
14476
  boxShadow: "0 1px 3px rgba(12,33,49,.06), 0 1px 2px rgba(12,33,49,.04)"
14324
- }, tf = {
14477
+ }, lf = {
14325
14478
  display: "flex",
14326
14479
  alignItems: "center",
14327
14480
  gap: 14,
14328
14481
  flexWrap: "wrap"
14329
- }, nf = {
14482
+ }, uf = {
14330
14483
  width: 1,
14331
14484
  height: 20,
14332
14485
  background: "var(--sf-border, #DCE3E7)"
14333
- }, rf = {
14486
+ }, df = {
14334
14487
  fontSize: 13,
14335
14488
  fontWeight: 600,
14336
14489
  color: "var(--sf-text-subtle, #8A98A4)"
14337
- }, af = {
14490
+ }, ff = {
14338
14491
  fontSize: 15,
14339
14492
  fontWeight: 800,
14340
14493
  color: "var(--sf-text, #1B2A38)",
14341
14494
  fontVariantNumeric: "tabular-nums"
14342
- }, of = {
14495
+ }, pf = {
14343
14496
  fontSize: 12.5,
14344
14497
  fontWeight: 800,
14345
14498
  color: "#C76A12"
14346
- }, sf = {
14499
+ }, mf = {
14347
14500
  fontSize: 13,
14348
14501
  fontWeight: 700,
14349
14502
  color: "var(--sf-text-subtle, #5C7180)"
14350
- }, cf = {
14503
+ }, hf = {
14351
14504
  display: "flex",
14352
14505
  alignItems: "center",
14353
14506
  gap: 22,
14354
14507
  margin: 0
14355
- }, lf = {
14508
+ }, gf = {
14356
14509
  display: "flex",
14357
14510
  alignItems: "baseline",
14358
14511
  gap: 6
14359
- }, uf = {
14512
+ }, _f = {
14360
14513
  fontSize: 10.5,
14361
14514
  fontWeight: 700,
14362
14515
  letterSpacing: ".05em",
14363
14516
  textTransform: "uppercase",
14364
14517
  color: "var(--sf-text-subtle, #8A98A4)"
14365
- }, df = ({ liveLabel: e, metrics: t, nextDeparture: n, className: r, ariaLabel: i = "Estado en vivo" }) => /* @__PURE__ */ y("section", {
14518
+ }, vf = ({ liveLabel: e, metrics: t, nextDeparture: n, className: r, ariaLabel: i = "Estado en vivo" }) => /* @__PURE__ */ y("section", {
14366
14519
  className: (0, X.default)("sf-live-status-bar", r),
14367
14520
  "aria-label": i,
14368
- style: ef,
14521
+ style: cf,
14369
14522
  children: [/* @__PURE__ */ y("div", {
14370
- style: tf,
14523
+ style: lf,
14371
14524
  children: [
14372
- /* @__PURE__ */ v(Qd, { label: "En vivo" }),
14525
+ /* @__PURE__ */ v(of, { label: "En vivo" }),
14373
14526
  /* @__PURE__ */ v("span", {
14374
- style: sf,
14527
+ style: mf,
14375
14528
  children: e
14376
14529
  }),
14377
14530
  n && /* @__PURE__ */ y(_, { children: [
14378
14531
  /* @__PURE__ */ v("span", {
14379
- style: nf,
14532
+ style: uf,
14380
14533
  "aria-hidden": "true"
14381
14534
  }),
14382
14535
  /* @__PURE__ */ v("span", {
14383
- style: rf,
14536
+ style: df,
14384
14537
  children: n.label ?? "Próxima salida"
14385
14538
  }),
14386
14539
  /* @__PURE__ */ v("span", {
14387
- style: af,
14540
+ style: ff,
14388
14541
  children: n.time
14389
14542
  }),
14390
14543
  n.countdown != null && /* @__PURE__ */ v("span", {
14391
- style: of,
14544
+ style: pf,
14392
14545
  children: n.countdown
14393
14546
  })
14394
14547
  ] })
14395
14548
  ]
14396
14549
  }), /* @__PURE__ */ v("dl", {
14397
- style: cf,
14550
+ style: hf,
14398
14551
  children: t.map((e, t) => /* @__PURE__ */ y("div", {
14399
- style: lf,
14552
+ style: gf,
14400
14553
  children: [/* @__PURE__ */ v("dd", {
14401
14554
  style: {
14402
14555
  margin: 0,
14403
14556
  fontSize: 20,
14404
14557
  fontWeight: 800,
14405
14558
  fontVariantNumeric: "tabular-nums",
14406
- color: $d[e.accent ?? "default"]
14559
+ color: sf[e.accent ?? "default"]
14407
14560
  },
14408
14561
  children: e.value
14409
14562
  }), /* @__PURE__ */ v("dt", {
14410
- style: uf,
14563
+ style: _f,
14411
14564
  children: e.label
14412
14565
  })]
14413
14566
  }, e.id ?? `${e.label}-${t}`))
14414
14567
  })]
14415
- }), ff = {
14568
+ }), yf = {
14416
14569
  success: "sf-timeline__dot--success",
14417
14570
  warning: "sf-timeline__dot--warning",
14418
14571
  danger: "sf-timeline__dot--danger",
14419
14572
  info: "sf-timeline__dot--info",
14420
14573
  default: "sf-timeline__dot--default"
14421
- }, pf = {
14574
+ }, bf = {
14422
14575
  success: "sf-timeline__icon-wrap--success",
14423
14576
  warning: "sf-timeline__icon-wrap--warning",
14424
14577
  danger: "sf-timeline__icon-wrap--danger",
14425
14578
  info: "sf-timeline__icon-wrap--info",
14426
14579
  default: "sf-timeline__icon-wrap--default"
14427
- }, mf = ({ items: e, ariaLabel: t = "Línea de tiempo", emptyMessage: n = "Sin eventos", className: r }) => /* @__PURE__ */ y("ol", {
14580
+ }, xf = ({ items: e, ariaLabel: t = "Línea de tiempo", emptyMessage: n = "Sin eventos", className: r }) => /* @__PURE__ */ y("ol", {
14428
14581
  className: (0, X.default)("sf-timeline", r),
14429
14582
  "aria-label": t,
14430
14583
  children: [e.length === 0 && /* @__PURE__ */ v("li", {
@@ -14443,11 +14596,11 @@ var yr = (e) => {
14443
14596
  /* @__PURE__ */ v("div", {
14444
14597
  className: "sf-timeline__marker",
14445
14598
  children: t.icon ? /* @__PURE__ */ v("span", {
14446
- className: (0, X.default)("sf-timeline__icon-wrap", pf[r]),
14599
+ className: (0, X.default)("sf-timeline__icon-wrap", bf[r]),
14447
14600
  "aria-hidden": "true",
14448
14601
  children: t.icon
14449
14602
  }) : /* @__PURE__ */ v("span", {
14450
- className: (0, X.default)("sf-timeline__dot", ff[r]),
14603
+ className: (0, X.default)("sf-timeline__dot", yf[r]),
14451
14604
  "aria-hidden": "true"
14452
14605
  })
14453
14606
  }),
@@ -14470,7 +14623,7 @@ var yr = (e) => {
14470
14623
  ]
14471
14624
  }, t.id ?? n);
14472
14625
  })]
14473
- }), hf = ({ items: e, autoPlay: t = !1, intervalMs: n = 4e3, showDots: r = !0, showArrows: i = !0, className: a }) => {
14626
+ }), Sf = ({ items: e, autoPlay: t = !1, intervalMs: n = 4e3, showDots: r = !0, showArrows: i = !0, className: a }) => {
14474
14627
  let o = m(null), [c, l] = h(0), d = s((t) => {
14475
14628
  let n = o.current;
14476
14629
  if (!n || e.length === 0) return;
@@ -14532,7 +14685,7 @@ var yr = (e) => {
14532
14685
  })
14533
14686
  ]
14534
14687
  });
14535
- }, gf = ({ src: e, alt: t, aspectRatio: n = "16/9", fit: r = "cover", overlay: i = "none", children: a, rounded: o = !0, loading: s = "lazy", fallback: c, className: l, imgProps: u }) => {
14688
+ }, Cf = ({ src: e, alt: t, aspectRatio: n = "16/9", fit: r = "cover", overlay: i = "none", children: a, rounded: o = !0, loading: s = "lazy", fallback: c, className: l, imgProps: u }) => {
14536
14689
  let [d, f] = h(!1), p = !!e && !d;
14537
14690
  return /* @__PURE__ */ y("div", {
14538
14691
  className: (0, X.default)("sf-media-panel", o && "sf-media-panel--rounded", l),
@@ -14559,19 +14712,19 @@ var yr = (e) => {
14559
14712
  })
14560
14713
  ]
14561
14714
  });
14562
- }, _f = {
14715
+ }, wf = {
14563
14716
  top: 8,
14564
14717
  right: 8,
14565
14718
  left: 0,
14566
14719
  bottom: 0
14567
- }, vf = {
14720
+ }, Tf = {
14568
14721
  top: 20,
14569
14722
  right: 8,
14570
14723
  left: 0,
14571
14724
  bottom: 0
14572
- }, yf = (e, t) => {
14725
+ }, Ef = (e, t) => {
14573
14726
  if (t !== "none") return e.stackId ?? "sf-stack";
14574
- }, bf = (e) => e?.map((e, t) => {
14727
+ }, Df = (e) => e?.map((e, t) => {
14575
14728
  let n = e.color ?? "var(--sf-chart-reference)", r = {
14576
14729
  stroke: n,
14577
14730
  strokeDasharray: e.strokeDasharray ?? "4 4",
@@ -14602,7 +14755,7 @@ var yr = (e) => {
14602
14755
  }
14603
14756
  })
14604
14757
  }, `ref-${t}`);
14605
- }), xf = ({ type: e, data: t, xKey: n, series: r, height: i = 280, ariaLabel: a, emptyMessage: o = "Sin datos para mostrar", className: s, showGrid: c = !0, showTooltip: l = !0, showLegend: u = r.length > 1, orientation: d = "vertical", stacking: f = "none", unit: m, yDomain: h, xAxisFormat: g, yAxisFormat: b, tooltipFormat: x, valueLabelFormat: S, showValueLabels: C = !1, referenceLines: w, onDataPointClick: T }) => {
14758
+ }), Of = ({ type: e, data: t, xKey: n, series: r, height: i = 280, ariaLabel: a, emptyMessage: o = "Sin datos para mostrar", className: s, showGrid: c = !0, showTooltip: l = !0, showLegend: u = r.length > 1, orientation: d = "vertical", stacking: f = "none", unit: m, yDomain: h, xAxisFormat: g, yAxisFormat: b, tooltipFormat: x, valueLabelFormat: S, showValueLabels: C = !1, referenceLines: w, onDataPointClick: T }) => {
14606
14759
  let E = e === "bar" && d === "horizontal", D = e === "line" ? "none" : f, O = D === "stacked-100", k = p(() => O ? is(t, r) : t, [
14607
14760
  t,
14608
14761
  r,
@@ -14621,8 +14774,8 @@ var yr = (e) => {
14621
14774
  style: es
14622
14775
  }), { Root: z, renderSeries: B } = {
14623
14776
  bar: {
14624
- Root: se,
14625
- renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(W, {
14777
+ Root: W,
14778
+ renderSeries: () => r.map((e, t) => /* @__PURE__ */ v(se, {
14626
14779
  dataKey: e.key,
14627
14780
  name: e.label ?? e.key,
14628
14781
  fill: Xo(e, t),
@@ -14637,7 +14790,7 @@ var yr = (e) => {
14637
14790
  0,
14638
14791
  0
14639
14792
  ],
14640
- stackId: yf(e, D),
14793
+ stackId: Ef(e, D),
14641
14794
  maxBarSize: D === "none" ? 48 : void 0,
14642
14795
  children: R(e.key)
14643
14796
  }, e.key))
@@ -14673,7 +14826,7 @@ var yr = (e) => {
14673
14826
  fill: n,
14674
14827
  fillOpacity: .15,
14675
14828
  strokeWidth: 2,
14676
- stackId: yf(e, D),
14829
+ stackId: Ef(e, D),
14677
14830
  children: R(e.key)
14678
14831
  }, e.key);
14679
14832
  })
@@ -14690,7 +14843,7 @@ var yr = (e) => {
14690
14843
  children: /* @__PURE__ */ y(z, {
14691
14844
  data: k,
14692
14845
  layout: E ? "vertical" : "horizontal",
14693
- margin: C ? vf : _f,
14846
+ margin: C ? Tf : wf,
14694
14847
  onClick: ee,
14695
14848
  children: [
14696
14849
  c && /* @__PURE__ */ v(ce, {
@@ -14728,7 +14881,7 @@ var yr = (e) => {
14728
14881
  formatter: L
14729
14882
  }),
14730
14883
  u && /* @__PURE__ */ v(de, { wrapperStyle: $o }),
14731
- bf(w),
14884
+ Df(w),
14732
14885
  B()
14733
14886
  ]
14734
14887
  })
@@ -14738,7 +14891,7 @@ var yr = (e) => {
14738
14891
  children: o
14739
14892
  })
14740
14893
  });
14741
- }, Sf = ({ x: e, y: t, payload: n, data: r, showValues: i, format: a, color: o }) => {
14894
+ }, kf = ({ x: e, y: t, payload: n, data: r, showValues: i, format: a, color: o }) => {
14742
14895
  let s = r.find((e) => e.label === n.value);
14743
14896
  return /* @__PURE__ */ y("g", { children: [/* @__PURE__ */ v("text", {
14744
14897
  x: e,
@@ -14759,7 +14912,7 @@ var yr = (e) => {
14759
14912
  },
14760
14913
  children: a(s.value, s.key)
14761
14914
  })] });
14762
- }, Cf = ({ data: e, max: t = 100, color: n, height: r = 280, ariaLabel: i = "Diagnóstico", emptyMessage: a = "Sin datos para mostrar", className: o, showTooltip: s = !0, showLegend: c = !1, showValues: l = !1, valueFormat: u }) => {
14915
+ }, Af = ({ data: e, max: t = 100, color: n, height: r = 280, ariaLabel: i = "Diagnóstico", emptyMessage: a = "Sin datos para mostrar", className: o, showTooltip: s = !0, showLegend: c = !1, showValues: l = !1, valueFormat: u }) => {
14763
14916
  let d = e.length > 0, f = Xo({ color: n }, 0), p = u ?? ts();
14764
14917
  return /* @__PURE__ */ v("div", {
14765
14918
  className: (0, X.default)("sf-chart", o),
@@ -14776,7 +14929,7 @@ var yr = (e) => {
14776
14929
  /* @__PURE__ */ v(he, { stroke: "var(--sf-chart-grid)" }),
14777
14930
  /* @__PURE__ */ v(me, {
14778
14931
  dataKey: "label",
14779
- tick: /* @__PURE__ */ v(Sf, {
14932
+ tick: /* @__PURE__ */ v(kf, {
14780
14933
  x: 0,
14781
14934
  y: 0,
14782
14935
  payload: { value: "" },
@@ -14814,8 +14967,8 @@ var yr = (e) => {
14814
14967
  children: a
14815
14968
  })
14816
14969
  });
14817
- }, wf = (e) => Math.min(100, Math.max(0, e)), Tf = ({ value: e, average: t, min: n, max: r, unit: i, label: a, valueFormat: o, direction: s = "down-good", className: c }) => {
14818
- let l = o ?? ts(i), u = Math.abs(e - t) || Math.abs(t) * .1 || 1, d = n ?? Math.min(e, t) - u * .5, f = r ?? Math.max(e, t) + u * .5, p = (e) => f > d ? wf((e - d) / (f - d) * 100) : 50, m = p(e), h = p(t), g = t === 0 ? 0 : (e - t) / Math.abs(t) * 100, _ = s === "neutral" ? null : s === "down-good" ? g <= 0 : g >= 0, b = Math.abs(g) >= .5;
14970
+ }, jf = (e) => Math.min(100, Math.max(0, e)), Mf = ({ value: e, average: t, min: n, max: r, unit: i, label: a, valueFormat: o, direction: s = "down-good", className: c }) => {
14971
+ let l = o ?? ts(i), u = Math.abs(e - t) || Math.abs(t) * .1 || 1, d = n ?? Math.min(e, t) - u * .5, f = r ?? Math.max(e, t) + u * .5, p = (e) => f > d ? jf((e - d) / (f - d) * 100) : 50, m = p(e), h = p(t), g = t === 0 ? 0 : (e - t) / Math.abs(t) * 100, _ = s === "neutral" ? null : s === "down-good" ? g <= 0 : g >= 0, b = Math.abs(g) >= .5;
14819
14972
  return /* @__PURE__ */ y("div", {
14820
14973
  className: (0, X.default)("sf-deviation-band", c),
14821
14974
  children: [
@@ -14855,7 +15008,7 @@ var yr = (e) => {
14855
15008
  })
14856
15009
  ]
14857
15010
  });
14858
- }, Ef = (e, { initialPageSize: t = 10 } = {}) => {
15011
+ }, Nf = (e, { initialPageSize: t = 10 } = {}) => {
14859
15012
  let [n, r] = h(""), [i, a] = h(0), [o, s] = h(t), c = p(() => {
14860
15013
  let t = n.trim().toLowerCase();
14861
15014
  return t ? e.filter((e) => Object.values(e).some((e) => String(e ?? "").toLowerCase().includes(t))) : e;
@@ -14882,37 +15035,37 @@ var yr = (e) => {
14882
15035
  ]),
14883
15036
  totalItems: l
14884
15037
  };
14885
- }, Df = (e) => String(e ?? "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim(), Of = (e) => typeof e == "string" || typeof e == "number", kf = (e, t) => {
14886
- let n = Df(t);
15038
+ }, Pf = (e) => String(e ?? "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim(), Ff = (e) => typeof e == "string" || typeof e == "number", If = (e, t) => {
15039
+ let n = Pf(t);
14887
15040
  return typeof t == "number" && (n = `#${n}`), e.toLowerCase().endsWith("codigo") && !n.startsWith("#") && (n = `.${n}`), n;
14888
- }, Af = (e, t, n) => {
15041
+ }, Lf = (e, t, n) => {
14889
15042
  if (t?.length) return [...t];
14890
15043
  let r = new Set(n), i = [];
14891
- for (let t in e) r.has(t) || Of(e[t]) && i.push(t);
15044
+ for (let t in e) r.has(t) || Ff(e[t]) && i.push(t);
14892
15045
  return i;
14893
- }, jf = (e, t, n) => {
14894
- let r = "", i = Af(e, t, n);
15046
+ }, Rf = (e, t, n) => {
15047
+ let r = "", i = Lf(e, t, n);
14895
15048
  for (let t of i) {
14896
15049
  let n = e[t];
14897
- if (!Of(n)) continue;
14898
- let i = kf(t, n);
15050
+ if (!Ff(n)) continue;
15051
+ let i = If(t, n);
14899
15052
  i && (r += `${i} `);
14900
15053
  }
14901
15054
  return r;
14902
- }, Mf = (e) => {
15055
+ }, zf = (e) => {
14903
15056
  let t = e.split(";"), n = [];
14904
15057
  for (let e of t) {
14905
- let t = Df(e);
15058
+ let t = Pf(e);
14906
15059
  t.length >= 2 && n.push(t);
14907
15060
  }
14908
15061
  return n;
14909
- }, Nf = (e, t) => {
14910
- let [n, r] = h(""), i = l(n), a = t?.filters, o = t?.searchableKeys, s = t?.ignoredKeys, c = p(() => Mf(i), [i]), u = p(() => {
15062
+ }, Bf = (e, t) => {
15063
+ let [n, r] = h(""), i = l(n), a = t?.filters, o = t?.searchableKeys, s = t?.ignoredKeys, c = p(() => zf(i), [i]), u = p(() => {
14911
15064
  if (!e?.length) return [];
14912
15065
  let t = [];
14913
15066
  for (let n of e) t.push({
14914
15067
  item: n,
14915
- searchIndex: jf(n, o, s)
15068
+ searchIndex: Rf(n, o, s)
14916
15069
  });
14917
15070
  return t;
14918
15071
  }, [
@@ -14954,15 +15107,15 @@ var yr = (e) => {
14954
15107
  };
14955
15108
  //#endregion
14956
15109
  //#region src/hooks/useArrayPaginator.ts
14957
- function Pf(e, t, n) {
15110
+ function Vf(e, t, n) {
14958
15111
  if (t <= 0) return [];
14959
15112
  let r = Math.max(0, n);
14960
15113
  return r >= e.length ? [] : e.slice(r, r + t);
14961
15114
  }
14962
- var Ff = (e, t, n) => {
15115
+ var Hf = (e, t, n) => {
14963
15116
  let r = e?.[n], i = t?.[n];
14964
15117
  return r == null && i == null ? 0 : r == null ? -1 : i == null ? 1 : typeof r == "boolean" && typeof i == "boolean" ? Number(r) - Number(i) : typeof r == "number" && typeof i == "number" ? r - i : r instanceof Date && i instanceof Date ? r.getTime() - i.getTime() : typeof r == "string" && typeof i == "string" ? r.localeCompare(i, void 0, { sensitivity: "base" }) : String(r).localeCompare(String(i), void 0, { sensitivity: "base" });
14965
- }, If = (e, t) => {
15118
+ }, Uf = (e, t) => {
14966
15119
  let [n, r] = h([]), [i, a] = h(() => ({
14967
15120
  limit: Math.max(1, t?.limit ?? 100),
14968
15121
  offset: 0
@@ -14975,7 +15128,7 @@ var Ff = (e, t, n) => {
14975
15128
  if (e.length === 0) return [];
14976
15129
  let r = [...e];
14977
15130
  if (n.length > 0) {
14978
- let e = t?.onSortFunc ?? Ff, i = t?.strictSort ?? !1;
15131
+ let e = t?.onSortFunc ?? Hf, i = t?.strictSort ?? !1;
14979
15132
  r.sort((t, r) => {
14980
15133
  for (let { id: a, desc: o } of n) {
14981
15134
  if (i && (!(typeof t == "object" && t) || !(typeof r == "object" && r) || !(a in t) || !(a in r))) continue;
@@ -14985,7 +15138,7 @@ var Ff = (e, t, n) => {
14985
15138
  return 0;
14986
15139
  });
14987
15140
  }
14988
- return Pf(r, o, c);
15141
+ return Vf(r, o, c);
14989
15142
  }, [
14990
15143
  e,
14991
15144
  o,
@@ -15004,7 +15157,7 @@ var Ff = (e, t, n) => {
15004
15157
  onSortChange: r,
15005
15158
  pageData: u
15006
15159
  };
15007
- }, Lf = (e, t) => {
15160
+ }, Wf = (e, t) => {
15008
15161
  if (typeof window > "u") return t;
15009
15162
  try {
15010
15163
  let n = window.localStorage.getItem(e);
@@ -15012,8 +15165,8 @@ var Ff = (e, t, n) => {
15012
15165
  } catch {
15013
15166
  return t;
15014
15167
  }
15015
- }, Rf = (e, t) => {
15016
- let [n, r] = h(() => Lf(e, t));
15168
+ }, Gf = (e, t) => {
15169
+ let [n, r] = h(() => Wf(e, t));
15017
15170
  return [n, (t) => {
15018
15171
  r((n) => {
15019
15172
  let r = typeof t == "function" ? t(n) : t;
@@ -15023,52 +15176,52 @@ var Ff = (e, t, n) => {
15023
15176
  return r;
15024
15177
  });
15025
15178
  }];
15026
- }, zf = (e) => typeof window > "u" ? null : new URL(window.location.href).searchParams.get(e), Bf = (e, t) => {
15179
+ }, Kf = (e) => typeof window > "u" ? null : new URL(window.location.href).searchParams.get(e), qf = (e, t) => {
15027
15180
  if (typeof window > "u") return;
15028
15181
  let n = new URL(window.location.href);
15029
15182
  t != null && t !== "" ? n.searchParams.set(e, t) : n.searchParams.delete(e), window.history.replaceState(null, "", n.toString());
15030
- }, Vf = (e) => {
15031
- Bf(e, null);
15032
- }, Hf = (e, t) => {
15183
+ }, Jf = (e) => {
15184
+ qf(e, null);
15185
+ }, Yf = (e, t) => {
15033
15186
  let [n, r] = h(() => {
15034
15187
  let n = typeof e == "function" ? e() : e;
15035
15188
  if (!t) return n;
15036
- let r = zf(t);
15037
- return r == null || r === "" ? (Bf(t, n), n) : r;
15189
+ let r = Kf(t);
15190
+ return r == null || r === "" ? (qf(t, n), n) : r;
15038
15191
  });
15039
15192
  return [n, (e) => {
15040
15193
  r((n) => {
15041
15194
  let r = typeof e == "function" ? e(n) : e;
15042
- return t && Bf(t, r), r;
15195
+ return t && qf(t, r), r;
15043
15196
  });
15044
15197
  }];
15045
- }, Uf = () => {
15198
+ }, Xf = () => {
15046
15199
  let e = globalThis.process?.env?.NODE_ENV;
15047
15200
  return e != null && e === "development";
15048
- }, Wf = (e, t) => {
15201
+ }, Zf = (e, t) => {
15049
15202
  let n = x({
15050
15203
  resolver: Te(e),
15051
15204
  defaultValues: t?.defaultValues
15052
15205
  }), r = (e, t) => n.handleSubmit(e, (e, n) => {
15053
- Uf() && console.log(e), t?.(e, n);
15206
+ Xf() && console.log(e), t?.(e, n);
15054
15207
  });
15055
15208
  return {
15056
15209
  ...n,
15057
15210
  handleSubmit: r
15058
15211
  };
15059
- }, Gf = (e) => {
15212
+ }, Qf = (e) => {
15060
15213
  let t = String(e ?? ""), n = 0;
15061
15214
  for (; n < t.length && t.charCodeAt(n) <= 32;) n += 1;
15062
15215
  let r = t.slice(n);
15063
15216
  return /^[=+\-@]/.test(r) ? `'${t}` : t;
15064
- }, Kf = (e) => {
15065
- let t = Gf(e);
15217
+ }, $f = (e) => {
15218
+ let t = Qf(e);
15066
15219
  return /[",\n\r]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
15067
- }, qf = (e, t) => {
15220
+ }, ep = (e, t) => {
15068
15221
  if (typeof document > "u") return;
15069
- let n = `\uFEFF${[t.columns.map((e) => Kf(e.header)).join(","), ...e.map((e) => t.columns.map((t) => Kf(t.getValue(e))).join(","))].join("\n")}`, r = new Blob([n], { type: "text/csv;charset=utf-8" }), i = URL.createObjectURL(r), a = document.createElement("a");
15222
+ let n = `\uFEFF${[t.columns.map((e) => $f(e.header)).join(","), ...e.map((e) => t.columns.map((t) => $f(t.getValue(e))).join(","))].join("\n")}`, r = new Blob([n], { type: "text/csv;charset=utf-8" }), i = URL.createObjectURL(r), a = document.createElement("a");
15070
15223
  a.href = i, a.download = t.filename ?? "export.csv", a.click(), URL.revokeObjectURL(i);
15071
- }, Jf = (e) => Gf(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Yf = (e) => typeof e == "number" && Number.isFinite(e) ? "Number" : "String", Xf = (e, t) => {
15224
+ }, tp = (e) => Qf(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), np = (e) => typeof e == "number" && Number.isFinite(e) ? "Number" : "String", rp = (e, t) => {
15072
15225
  if (typeof document > "u") return;
15073
15226
  let { columns: n, filename: r = "export.xls" } = t, i = `<?xml version="1.0"?>
15074
15227
  <?mso-application progid="Excel.Sheet"?>
@@ -15081,51 +15234,51 @@ var Ff = (e, t, n) => {
15081
15234
  </Styles>
15082
15235
  <Worksheet ss:Name="Export">
15083
15236
  <Table>
15084
- <Row>${n.map((e) => `<Cell ss:StyleID="Header"><Data ss:Type="String">${Jf(e.header)}</Data></Cell>`).join("")}</Row>
15237
+ <Row>${n.map((e) => `<Cell ss:StyleID="Header"><Data ss:Type="String">${tp(e.header)}</Data></Cell>`).join("")}</Row>
15085
15238
  ${e.map((e) => `<Row>${n.map((t) => {
15086
- let n = t.getValue(e), r = Yf(n);
15087
- return `<Cell><Data ss:Type="${r}">${r === "Number" ? String(n) : Jf(n)}</Data></Cell>`;
15239
+ let n = t.getValue(e), r = np(n);
15240
+ return `<Cell><Data ss:Type="${r}">${r === "Number" ? String(n) : tp(n)}</Data></Cell>`;
15088
15241
  }).join("")}</Row>`).join("")}
15089
15242
  </Table>
15090
15243
  </Worksheet>
15091
15244
  </Workbook>`, a = new Blob([i], { type: "application/vnd.ms-excel" }), o = URL.createObjectURL(a), s = document.createElement("a");
15092
15245
  s.href = o, s.download = r.endsWith(".xls") || r.endsWith(".xlsx") ? r : `${r}.xls`, s.click(), URL.revokeObjectURL(o);
15093
- }, Zf = "Este campo es requerido", Qf = "Introduce una dirección de correo electrónico válida", $f = "El correo electrónico es obligatorio", ep = "El valor de este campo es inválido", tp = "Introduce un número de celular válido", np = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, rp = (e = Zf) => G.string().transform(np).required(e), ip = () => G.string().transform(np).default(null).nullable(), ap = (e = $f) => G.string().transform(np).email(Qf).required(e), op = (e = Qf) => G.string().transform(np).test("emailTest", e, (e) => e == null || e === "" || G.string().email().isValidSync(e)).default(null).nullable(), sp = (e, t = ep, n = Zf) => G.string().transform(np).trim().test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).required(n), cp = (e, t = ep) => G.string().transform(np).test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).default(null).nullable(), lp = (e) => {
15246
+ }, ip = "Este campo es requerido", ap = "Introduce una dirección de correo electrónico válida", op = "El correo electrónico es obligatorio", sp = "El valor de este campo es inválido", cp = "Introduce un número de celular válido", lp = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, up = (e = ip) => G.string().transform(lp).required(e), dp = () => G.string().transform(lp).default(null).nullable(), fp = (e = op) => G.string().transform(lp).email(ap).required(e), pp = (e = ap) => G.string().transform(lp).test("emailTest", e, (e) => e == null || e === "" || G.string().email().isValidSync(e)).default(null).nullable(), mp = (e, t = sp, n = ip) => G.string().transform(lp).trim().test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).required(n), hp = (e, t = sp) => G.string().transform(lp).test("rgxValidation", t, (t) => t == null || t === "" || t.match(e) != null).default(null).nullable(), gp = (e) => {
15094
15247
  let t = e?.minLength == null ? void 0 : Math.max(1, e.minLength);
15095
15248
  return {
15096
15249
  minLength: t,
15097
15250
  maxLength: e?.maxLength == null ? void 0 : Math.max(t ?? 1, e.maxLength)
15098
15251
  };
15099
- }, up = (e) => {
15100
- let { minLength: t, maxLength: n } = lp(e), r = /^[0-9]+$/, i = G.string().transform(np).test("rgxValidation", (e, t) => e == null || e === "" || e.match(r) != null || t.createError({ message: "El campo debe contener solo caracteres numéricos" }));
15252
+ }, _p = (e) => {
15253
+ let { minLength: t, maxLength: n } = gp(e), r = /^[0-9]+$/, i = G.string().transform(lp).test("rgxValidation", (e, t) => e == null || e === "" || e.match(r) != null || t.createError({ message: "El campo debe contener solo caracteres numéricos" }));
15101
15254
  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;
15102
- }, dp = (e) => up(e).required(Zf), fp = (e) => up(e).default(null).nullable(), pp = (e = Zf) => G.boolean().typeError("El tipo de dato debe ser booleano").required(e), mp = () => G.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), hp = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, gp = (e = Zf) => G.number().transform(hp).typeError("Debe ser numérico").required(e), _p = () => G.number().transform(hp).typeError("Debe ser numérico").default(null).nullable().notRequired(), vp = (e = Zf) => G.number().transform(hp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), yp = (e = Zf) => vp(e).integer("Este campo debe ser un número entero"), bp = () => G.number().transform(hp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), xp = () => bp().integer("Este campo debe ser un número entero"), Sp = (e) => {
15255
+ }, vp = (e) => _p(e).required(ip), yp = (e) => _p(e).default(null).nullable(), bp = (e = ip) => G.boolean().typeError("El tipo de dato debe ser booleano").required(e), xp = () => G.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), Sp = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, Cp = (e = ip) => G.number().transform(Sp).typeError("Debe ser numérico").required(e), wp = () => G.number().transform(Sp).typeError("Debe ser numérico").default(null).nullable().notRequired(), Tp = (e = ip) => G.number().transform(Sp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), Ep = (e = ip) => Tp(e).integer("Este campo debe ser un número entero"), Dp = () => G.number().transform(Sp).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), Op = () => Dp().integer("Este campo debe ser un número entero"), kp = (e) => {
15103
15256
  let t = /^(?:\+51)\s?[0-9]{3}\s?[0-9]{3}\s?[0-9]{3}$/;
15104
15257
  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);
15105
- }, Cp = (e = tp) => Sp(e).nullable(), wp = (e = tp) => Sp(e).required(Zf), Tp = (e = Zf) => G.array().of(rp()).min(1, "Debe contener al menos un elemento").required(e), Ep = () => G.array().of(ip()).default(null).nullable(), Dp = {
15106
- transformNullIfEmpty: np,
15107
- requiredString: rp,
15108
- nullableString: ip,
15109
- requiredEmail: ap,
15110
- nullableEmail: op,
15111
- requiredMatchString: sp,
15112
- nullableOrMatchString: cp,
15113
- requiredStringNumbersOnly: dp,
15114
- nullableStringNumbersOnly: fp,
15115
- requiredBoolean: pp,
15116
- nullableBoolean: mp,
15117
- requiredNumber: gp,
15118
- nullableNumber: _p,
15119
- requiredPositiveNumber: vp,
15120
- requiredPositiveInteger: yp,
15121
- nullablePositiveNumber: bp,
15122
- nullablePositiveInteger: xp,
15123
- nullableCelular: Cp,
15124
- requiredCelular: wp,
15125
- requiredStringArray: Tp,
15126
- nullableStringArray: Ep
15127
- }, Op = (e) => G.object().shape(e(Dp));
15258
+ }, Ap = (e = cp) => kp(e).nullable(), jp = (e = cp) => kp(e).required(ip), Mp = (e = ip) => G.array().of(up()).min(1, "Debe contener al menos un elemento").required(e), Np = () => G.array().of(dp()).default(null).nullable(), Pp = {
15259
+ transformNullIfEmpty: lp,
15260
+ requiredString: up,
15261
+ nullableString: dp,
15262
+ requiredEmail: fp,
15263
+ nullableEmail: pp,
15264
+ requiredMatchString: mp,
15265
+ nullableOrMatchString: hp,
15266
+ requiredStringNumbersOnly: vp,
15267
+ nullableStringNumbersOnly: yp,
15268
+ requiredBoolean: bp,
15269
+ nullableBoolean: xp,
15270
+ requiredNumber: Cp,
15271
+ nullableNumber: wp,
15272
+ requiredPositiveNumber: Tp,
15273
+ requiredPositiveInteger: Ep,
15274
+ nullablePositiveNumber: Dp,
15275
+ nullablePositiveInteger: Op,
15276
+ nullableCelular: Ap,
15277
+ requiredCelular: jp,
15278
+ requiredStringArray: Mp,
15279
+ nullableStringArray: Np
15280
+ }, Fp = (e) => G.object().shape(e(Pp));
15128
15281
  //#endregion
15129
- export { Qr as AccessDenied, ra as Accordion, Hr as ActionButton, Dr as ActiveFiltersBar, Tu as AddressSearchInput, Wr as Alert, kc as AlertLane, Ec as AlertRowList, Ac as AlertSummaryList, vd as AllocationBar, go as AppBarContainer, ho as AppShell, uo as AppsGridIcon, Fu as AreaInput, xn as AsyncCardSelect, vr as AsyncCustomTable, yn as AsyncSearchSelect, wn as AsyncSearchTableSelect, Jd as AuditTimeline, Da as Avatar, Oa as AvatarGroup, ja as Badge, $t as BooleanCheckbox, ta as Breadcrumb, $ as Button, Lr as ButtonGroup, Yo as CHART_SERIES_COLORS, nn as COUNTRY_DIAL_CODES, tn as CURRENCY_SYMBOLS, ac as Calendar, md as CardRadioGroup, bn as CardSelect, hf as Carousel, xf as Chart, Jt as Checkbox, Yt as CheckboxGroup, ko as CodeEditor, ud as ColorInput, Ii as CommandPalette, Nc as ComparisonTable, di as ConfirmDialog, wi as ContextMenuProvider, Ou as CoordinatesInput, fn as CurrencyInput, _r as CustomTable, zc as DashboardCard, Uc as DashboardGrid, qc as DashboardLayout, Wc as DashboardSection, Kc as DashboardStatBar, Mt as DateInput, Lt as DatePicker, el as DateRangeFields, Nn as DateRangeInput, tl as DateRangeUtcInput, oo as DateWeekStrip, Yc as DetailSection, Jc as DetailSidePanel, Tf as DeviationBand, Cf as DiagnosticRadar, Bn as DisplayField, sn as DniInput, hc as DonutGauge, gc as DonutGaugeRow, Mi as Drawer, gi as DropdownMenu, _i as DropdownMenuItem, Nr as EditableDataGrid, Gr as EmptyState, zs as EntityCard, Vs as EntityCardGrid, qr as ErrorView, xc as EventLog, jc as EvidenceFootnote, Ir as ExpandableTableSection, Z as FieldLayout, hl as FileDropInput, Rn as FileInput, va as FilterBar, ba as FilterBarDate, ya as FilterBarField, xa as FilterBarSelect, Sa as FilterBarText, Br as FormActions, ha as FormWizard, Xi as HeightProvider, kt as Input, Ta as ItineraryEditor, vs as KPICard, bs as KPIGrid, fd as KeyValueInput, Qd as LiveChip, Za as LiveRouteBoard, df as LiveStatusBar, Xr as LoadingView, Du as LocationPicker, jo as MIN_MAP_GEOCODER_QUERY_LENGTH, Qs as MONTH_NAMES, Ca as MaestroLayout, Tl as MapFrame, Dl as MapLegend, Jo as MapPicker, El as MapStatus, Ol as MapToolbar, kl as MapVehiclePopup, Eu as MapView, _a as MasterDetailLayout, ga as MasterDetailListItem, gf as MediaPanel, pi as MessageDialog, ks as MetricBarList, Os as MetricBarRow, li as Modal, qs as ModuleCard, Js as ModuleCardGrid, vl as MultiPhotoInput, Od as NETWORK_BASEMAPS, Nd as NETWORK_EDGE_STYLES, Ad as NETWORK_KIND_COLORS, kd as NETWORK_KIND_LABELS, jd as NETWORK_STATUS_COLORS, Md as NETWORK_STATUS_LABELS, nr as NUMBER_FILTER_OPS, Vd as NetworkLegend, Kd as NetworkMap, ki as NotificationBell, jt as NumberInput, nd as NumberStepper, xd as ORG_TREE_DEFAULT_THEMES, vi as OptionItem, Dd as OrgTree, Qc as OtpInput, zi as PageContainer, Vi as PageHeader, er as PaginationRangeInput, za as PassengerBoardCard, zt as PasswordInput, un as PhoneInput, Cl as PhotoCropInput, gl as PhotoInput, Nt as Popover, Ri as ProductTour, ad as ProgressBar, sd as ProgressBarReadonly, Di as QRView, Ts as QuickActionGrid, ws as QuickActionTile, Xt as RadioGroup, id as RangeSliderInput, cd as RatingInput, Ws as RecommendationCard, Zd as RecordList, Xd as RecordListItem, Zr as RetryBlock, Co as RichTextEditor, Iu as RouteInput, zr as RowActions, cn as RucInput, jl as SF_DEFAULT_MAP_CENTER, Ml as SF_DEFAULT_MAP_ZOOM, Il as SF_GOOGLE_ENGINE_CAPABILITIES, Fl as SF_LEAFLET_ENGINE_CAPABILITIES, Al as SF_MAPS_CONFIG_ERROR, Pl as SF_OSM_ATTRIBUTION, Nl as SF_OSM_TILE_URL, tr as STRING_FILTER_OPS, ia as ScrollArea, _n as SearchSelect, Cn as SearchTableSelect, qt as Select, hd as SemanticSlider, ea as Separator, vu as SfProvider, Ni as Sheet, Hi as SidePanel, Ji as SidePanelContainer, _l as SignaturePad, ei as Skeleton, Qu as SliderInput, Fn as SmartDateInput, pn as SmartInput, Lu as SmartMapInput, yl as SmartMediaInput, Tn as SmartSelect, pd as SortableList, as as Sparkline, Yr as Spinner, Cs as SplitBar, Zs as StatCard, fa as Stepper, aa as SummaryItem, fo as SyncIcon, yi as TabMenuOption, Er as TableColumnSettings, or as TableFiltersPanel, Bi as TablePageLayout, sr as TableSortingPanel, Ui as Tabs, dd as TagsInput, bd as TemporalScrub, At as TextArea, Pn as TimeRangeInput, mf as Timeline, oi as ToastProvider, Zt as Toggle, Qt as ToggleCard, Rr as ToolbarButton, Ai as Tooltip, Ys as TramoCard, Kt as Transfer, Wt as TreeSelect, Qa as UnitSelector, Qi as Visibility, $i as Visivility, $s as WEEKDAY_LABELS, lo as WeekdayToggleStrip, en as YesNoSelect, ka as badgeClassName, Aa as badgeDotClassName, Ar as buildActiveFilterChips, ts as buildDefaultFormatter, nc as buildMonthGrid, Sd as buildOrgTreeRows, Gt as buttonClassName, Mn as calcTimeDuration, Vu as clampNumber, Eo as codeEditorClassName, ar as columnFilterFn, Ld as countNetworkStatus, wd as countOrgTreeNodes, Op as createFormSchema, Yn as createLocalStorageAsyncStateStore, cl as createPhotoItem, fl as cropImageToSquare, Ff as defaultOnSortFunc, nl as emptyDateRange, Gu as emptyKeyValuePairs, qu as emptyNumberRange, wl as emptyPhotoItems, Uu as emptyTags, rl as emptyTimeRange, qf as exportTableCsv, Xf as exportTableXlsx, Q as fieldClassName, kr as formatColumnFilterValue, No as formatMapGeocoderLabel, Hu as formatSliderLabel, kn as fromUtcDateIso, ir as inferInitialFilterValue, Dt as inputFocusTransition, Mr as isBlankRow, rr as isColumnFilterValue, Dn as isValidDateString, ol as isValidFileType, Bd as networkEdgeLines, Rd as networkMapBounds, zd as networkNodePositions, al as nextPhotoId, An as normalizeDateRange, Yu as normalizeHexColor, Ku as normalizeKeyValuePairs, Id as normalizeNetworkEdges, Fd as normalizeNetworkNodes, Ju as normalizeNumberRange, dl as normalizePhotoItems, Wu as normalizeTags, jn as normalizeTimeRange, mp as nullableBoolean, Cp as nullableCelular, op as nullableEmail, _p as nullableNumber, cp as nullableOrMatchString, xp as nullablePositiveInteger, bp as nullablePositiveNumber, ip as nullableString, Ep as nullableStringArray, fp as nullableStringNumbersOnly, Td as orgTreeRootNodes, tc as parseYMD, Xu as progressPercent, rs as rawValueKey, zf as readQueryValue, Vf as removeQueryValue, pp as requiredBoolean, wp as requiredCelular, ap as requiredEmail, sp as requiredMatchString, gp as requiredNumber, yp as requiredPositiveInteger, vp as requiredPositiveNumber, rp as requiredString, Tp as requiredStringArray, dp as requiredStringNumbersOnly, Cd as resolveOrgTreeTheme, Xo as resolveSeriesColor, ll as revokePhotoPreview, ul as revokePhotoPreviews, rn as sanitizeDigits, Mo as searchMapAddresses, ou as sfClampLatitude, su as sfClampLongitude, iu as sfFormatCoordinate, lu as sfLatLngToString, du as sfMarkerFromLatLng, uu as sfNormalizeLatLng, cu as sfParseCoordinate, sl as showFilePicker, Ot as textareaClassName, to as toIsoDate, En as toLocalDateYMD, ec as toLocalYMD, is as toStacked100Data, Ut as toStringArray, On as toUtcDateIso, np as transformNullIfEmpty, Bf as updateQueryValue, xu as useAddressSearch, If as useArrayPaginator, vn as useAsyncOptions, bi as useClickAway, Zi as useContainerHeight, Ei as useContextMenu, Wf as useCustomForm, yr as useCustomTableController, hi as useDropdownClose, Nf as useFilterData, ma as useFormWizard, To as useIsClient, Ef as useMaestroFilter, Su as useMapEngine, Cu as useMapsConfig, ui as useModal, Hf as useQueryStringState, yu as useSf, bu as useSfMaps, Ki as useSidePanelContainer, Wi as useSidePanelHandle, Rf as useStoredState, wr as useTableColumnSettings, si as useToast, on as validateDni, an as validateRuc, Dp as validators };
15282
+ export { Qr as AccessDenied, ra as Accordion, Hr as ActionButton, Dr as ActiveFiltersBar, Mu as AddressSearchInput, Wr as Alert, Fc as AlertLane, Mc as AlertRowList, Lc as AlertSummaryList, Td as AllocationBar, go as AppBarContainer, ho as AppShell, uo as AppsGridIcon, Hu as AreaInput, xn as AsyncCardSelect, vr as AsyncCustomTable, yn as AsyncSearchSelect, wn as AsyncSearchTableSelect, tf as AuditTimeline, Da as Avatar, Oa as AvatarGroup, ja as Badge, $t as BooleanCheckbox, ta as Breadcrumb, $ as Button, Lr as ButtonGroup, Yo as CHART_SERIES_COLORS, nn as COUNTRY_DIAL_CODES, tn as CURRENCY_SYMBOLS, ac as Calendar, xd as CardRadioGroup, bn as CardSelect, Sf as Carousel, Of as Chart, Jt as Checkbox, Yt as CheckboxGroup, ko as CodeEditor, _d as ColorInput, Ii as CommandPalette, Bc as ComparisonTable, di as ConfirmDialog, wi as ContextMenuProvider, Fu as CoordinatesInput, fn as CurrencyInput, _r as CustomTable, Kc as DashboardCard, Xc as DashboardGrid, el as DashboardLayout, Zc as DashboardSection, $c as DashboardStatBar, Mt as DateInput, Lt as DatePicker, sl as DateRangeFields, Nn as DateRangeInput, cl as DateRangeUtcInput, oo as DateWeekStrip, nl as DetailSection, tl as DetailSidePanel, Mf as DeviationBand, Af as DiagnosticRadar, Bn as DisplayField, sn as DniInput, Sc as DonutBreakdown, hc as DonutGauge, gc as DonutGaugeRow, Mi as Drawer, gi as DropdownMenu, _i as DropdownMenuItem, Nr as EditableDataGrid, Gr as EmptyState, zs as EntityCard, Vs as EntityCardGrid, qr as ErrorView, Dc as EventLog, Rc as EvidenceFootnote, Ir as ExpandableTableSection, Z as FieldLayout, Sl as FileDropInput, Rn as FileInput, va as FilterBar, ba as FilterBarDate, ya as FilterBarField, xa as FilterBarSelect, Sa as FilterBarText, Br as FormActions, ha as FormWizard, Xi as HeightProvider, kt as Input, Ta as ItineraryEditor, vs as KPICard, bs as KPIGrid, yd as KeyValueInput, of as LiveChip, Za as LiveRouteBoard, vf as LiveStatusBar, Xr as LoadingView, Pu as LocationPicker, jo as MIN_MAP_GEOCODER_QUERY_LENGTH, Qs as MONTH_NAMES, Ca as MaestroLayout, Ml as MapFrame, Pl as MapLegend, Jo as MapPicker, Nl as MapStatus, Fl as MapToolbar, Il as MapVehiclePopup, Nu as MapView, _a as MasterDetailLayout, ga as MasterDetailListItem, Cf as MediaPanel, pi as MessageDialog, ks as MetricBarList, Os as MetricBarRow, li as Modal, qs as ModuleCard, Js as ModuleCardGrid, Tl as MultiPhotoInput, Fd as NETWORK_BASEMAPS, Bd as NETWORK_EDGE_STYLES, Ld as NETWORK_KIND_COLORS, Id as NETWORK_KIND_LABELS, Rd as NETWORK_STATUS_COLORS, zd as NETWORK_STATUS_LABELS, nr as NUMBER_FILTER_OPS, Jd as NetworkLegend, $d as NetworkMap, ki as NotificationBell, jt as NumberInput, ld as NumberStepper, Od as ORG_TREE_DEFAULT_THEMES, vi as OptionItem, Pd as OrgTree, al as OtpInput, zi as PageContainer, Vi as PageHeader, er as PaginationRangeInput, za as PassengerBoardCard, zt as PasswordInput, un as PhoneInput, Al as PhotoCropInput, Cl as PhotoInput, Nt as Popover, Ri as ProductTour, fd as ProgressBar, md as ProgressBarReadonly, Di as QRView, Ts as QuickActionGrid, ws as QuickActionTile, Xt as RadioGroup, dd as RangeSliderInput, hd as RatingInput, Ws as RecommendationCard, af as RecordList, rf as RecordListItem, Zr as RetryBlock, Co as RichTextEditor, Uu as RouteInput, zr as RowActions, cn as RucInput, Rl as SF_DEFAULT_MAP_CENTER, zl as SF_DEFAULT_MAP_ZOOM, Ul as SF_GOOGLE_ENGINE_CAPABILITIES, Hl as SF_LEAFLET_ENGINE_CAPABILITIES, Ll as SF_MAPS_CONFIG_ERROR, Vl as SF_OSM_ATTRIBUTION, Bl as SF_OSM_TILE_URL, tr as STRING_FILTER_OPS, ia as ScrollArea, _n as SearchSelect, Cn as SearchTableSelect, qt as Select, Sd as SemanticSlider, ea as Separator, Tu as SfProvider, Ni as Sheet, Hi as SidePanel, Ji as SidePanelContainer, wl as SignaturePad, ei as Skeleton, ad as SliderInput, Fn as SmartDateInput, pn as SmartInput, Wu as SmartMapInput, El as SmartMediaInput, Tn as SmartSelect, bd as SortableList, as as Sparkline, Yr as Spinner, Cs as SplitBar, Zs as StatCard, fa as Stepper, aa as SummaryItem, fo as SyncIcon, yi as TabMenuOption, Er as TableColumnSettings, or as TableFiltersPanel, Bi as TablePageLayout, sr as TableSortingPanel, Ui as Tabs, vd as TagsInput, Dd as TemporalScrub, At as TextArea, Pn as TimeRangeInput, xf as Timeline, oi as ToastProvider, Zt as Toggle, Qt as ToggleCard, Rr as ToolbarButton, Ai as Tooltip, Ys as TramoCard, Kt as Transfer, Wt as TreeSelect, Qa as UnitSelector, Qi as Visibility, $i as Visivility, $s as WEEKDAY_LABELS, lo as WeekdayToggleStrip, en as YesNoSelect, ka as badgeClassName, Aa as badgeDotClassName, Ar as buildActiveFilterChips, ts as buildDefaultFormatter, nc as buildMonthGrid, kd as buildOrgTreeRows, Gt as buttonClassName, Mn as calcTimeDuration, Ju as clampNumber, Eo as codeEditorClassName, ar as columnFilterFn, Wd as countNetworkStatus, jd as countOrgTreeNodes, Fp as createFormSchema, Yn as createLocalStorageAsyncStateStore, hl as createPhotoItem, yl as cropImageToSquare, Hf as defaultOnSortFunc, ll as emptyDateRange, Qu as emptyKeyValuePairs, ed as emptyNumberRange, jl as emptyPhotoItems, Xu as emptyTags, ul as emptyTimeRange, ep as exportTableCsv, rp as exportTableXlsx, Q as fieldClassName, kr as formatColumnFilterValue, No as formatMapGeocoderLabel, Yu as formatSliderLabel, kn as fromUtcDateIso, ir as inferInitialFilterValue, Dt as inputFocusTransition, Mr as isBlankRow, rr as isColumnFilterValue, Dn as isValidDateString, pl as isValidFileType, qd as networkEdgeLines, Gd as networkMapBounds, Kd as networkNodePositions, fl as nextPhotoId, An as normalizeDateRange, nd as normalizeHexColor, $u as normalizeKeyValuePairs, Ud as normalizeNetworkEdges, Hd as normalizeNetworkNodes, td as normalizeNumberRange, vl as normalizePhotoItems, Zu as normalizeTags, jn as normalizeTimeRange, xp as nullableBoolean, Ap as nullableCelular, pp as nullableEmail, wp as nullableNumber, hp as nullableOrMatchString, Op as nullablePositiveInteger, Dp as nullablePositiveNumber, dp as nullableString, Np as nullableStringArray, yp as nullableStringNumbersOnly, Md as orgTreeRootNodes, tc as parseYMD, rd as progressPercent, rs as rawValueKey, Kf as readQueryValue, Jf as removeQueryValue, bp as requiredBoolean, jp as requiredCelular, fp as requiredEmail, mp as requiredMatchString, Cp as requiredNumber, Ep as requiredPositiveInteger, Tp as requiredPositiveNumber, up as requiredString, Mp as requiredStringArray, vp as requiredStringNumbersOnly, Ad as resolveOrgTreeTheme, Xo as resolveSeriesColor, gl as revokePhotoPreview, _l as revokePhotoPreviews, rn as sanitizeDigits, Mo as searchMapAddresses, pu as sfClampLatitude, mu as sfClampLongitude, du as sfFormatCoordinate, gu as sfLatLngToString, vu as sfMarkerFromLatLng, _u as sfNormalizeLatLng, hu as sfParseCoordinate, ml as showFilePicker, Ot as textareaClassName, to as toIsoDate, En as toLocalDateYMD, ec as toLocalYMD, is as toStacked100Data, Ut as toStringArray, On as toUtcDateIso, lp as transformNullIfEmpty, qf as updateQueryValue, Ou as useAddressSearch, Uf as useArrayPaginator, vn as useAsyncOptions, bi as useClickAway, Zi as useContainerHeight, Ei as useContextMenu, Zf as useCustomForm, yr as useCustomTableController, hi as useDropdownClose, Bf as useFilterData, ma as useFormWizard, To as useIsClient, Nf as useMaestroFilter, ku as useMapEngine, Au as useMapsConfig, ui as useModal, Yf as useQueryStringState, Eu as useSf, Du as useSfMaps, Ki as useSidePanelContainer, Wi as useSidePanelHandle, Gf as useStoredState, wr as useTableColumnSettings, si as useToast, on as validateDni, an as validateRuc, Pp as validators };
15130
15283
 
15131
15284
  //# sourceMappingURL=sf-ui.js.map