@sfperusacdev/sf-ui 0.1.22 → 0.1.23

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
@@ -5258,22 +5258,33 @@ var sr = (e) => {
5258
5258
  label: n(e.id),
5259
5259
  valueLabel: _r(e.value)
5260
5260
  }));
5261
- }, yr = ({ data: e, columns: t, rowKey: n, onChange: r, className: i }) => {
5262
- let [a, o] = h(null), [s, c] = h(null), l = p(() => e.map((e, t) => ({
5261
+ }, yr = (e, t) => t.every((t) => {
5262
+ let n = e[t];
5263
+ return n == null || String(n).trim() === "";
5264
+ }), br = ({ data: e, columns: t, rowKey: n, onChange: r, className: i, mode: a = "cell", showIndex: o = a === "form", onAddRow: s, addLabel: c = "Agregar", onRemoveRow: l, title: u, pageSize: d, emptyMessage: f = "Sin registros." }) => {
5265
+ let [m, g] = h(null), [_, b] = h(null), [x, S] = h(0), [C, w] = h(d ?? 0), T = a === "form", E = p(() => e.map((e, t) => ({
5263
5266
  row: e,
5264
5267
  originalIndex: t,
5265
5268
  rowId: String(e[n])
5266
- })), [e, n]), u = p(() => {
5267
- if (!s) return l;
5268
- let e = [...l];
5269
+ })), [e, n]), D = p(() => {
5270
+ if (!_) return E;
5271
+ let e = [...E];
5269
5272
  return e.sort((e, t) => {
5270
- let n = e.row[s.columnId], r = t.row[s.columnId];
5271
- if (typeof n == "number" && typeof r == "number") return s.direction === "asc" ? n - r : r - n;
5273
+ let n = e.row[_.columnId], r = t.row[_.columnId];
5274
+ if (typeof n == "number" && typeof r == "number") return _.direction === "asc" ? n - r : r - n;
5272
5275
  let i = String(n ?? "").toLowerCase(), a = String(r ?? "").toLowerCase(), o = i.localeCompare(a, "es");
5273
- return s.direction === "asc" ? o : -o;
5276
+ return _.direction === "asc" ? o : -o;
5274
5277
  }), e;
5275
- }, [l, s]), d = (t, n, i, a) => {
5276
- let s = e.map((e, n) => {
5278
+ }, [E, _]), O = p(() => {
5279
+ if (!C || C <= 0) return D;
5280
+ let e = x * C;
5281
+ return D.slice(e, e + C);
5282
+ }, [
5283
+ D,
5284
+ x,
5285
+ C
5286
+ ]), k = C && C > 0 ? Math.max(1, Math.ceil(D.length / C)) : 1, A = Math.min(x, k - 1), j = (t, n, i, a) => {
5287
+ let o = e.map((e, n) => {
5277
5288
  if (n !== t) return e;
5278
5289
  let r = e[i];
5279
5290
  if (typeof r == "number") {
@@ -5288,82 +5299,182 @@ var sr = (e) => {
5288
5299
  [i]: a
5289
5300
  };
5290
5301
  });
5291
- r?.(s), o((e) => e?.rowId === n && e.columnId === i ? null : e);
5302
+ r?.(o), g((e) => e?.rowId === n && e.columnId === i ? null : e);
5303
+ }, M = (e) => !T && e.sortable !== !1, N = (e) => {
5304
+ M(e) && b((t) => !t || t.columnId !== e.id ? {
5305
+ columnId: e.id,
5306
+ direction: "asc"
5307
+ } : t.direction === "asc" ? {
5308
+ columnId: e.id,
5309
+ direction: "desc"
5310
+ } : null);
5292
5311
  };
5293
- return /* @__PURE__ */ v("div", {
5312
+ return /* @__PURE__ */ y("div", {
5294
5313
  className: (0, X.default)("sf-editable-grid-wrap", i),
5295
- children: /* @__PURE__ */ y("table", {
5296
- className: "sf-editable-grid",
5297
- children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ v("tr", { children: t.map((e) => /* @__PURE__ */ v("th", {
5298
- className: (0, X.default)("sf-editable-grid__th", e.align === "right" && "sf-editable-grid__th--right", e.sortable !== !1 && "cursor-pointer select-none"),
5299
- role: e.sortable === !1 ? void 0 : "button",
5300
- tabIndex: e.sortable === !1 ? void 0 : 0,
5301
- "aria-label": e.sortable === !1 ? void 0 : `Ordenar por ${e.header}`,
5302
- onClick: () => {
5303
- e.sortable !== !1 && c((t) => !t || t.columnId !== e.id ? {
5304
- columnId: e.id,
5305
- direction: "asc"
5306
- } : t.direction === "asc" ? {
5307
- columnId: e.id,
5308
- direction: "desc"
5309
- } : null);
5310
- },
5311
- onKeyDown: (t) => {
5312
- e.sortable !== !1 && (t.key !== "Enter" && t.key !== " " || (t.preventDefault(), c((t) => !t || t.columnId !== e.id ? {
5313
- columnId: e.id,
5314
- direction: "asc"
5315
- } : t.direction === "asc" ? {
5316
- columnId: e.id,
5317
- direction: "desc"
5318
- } : null)));
5319
- },
5320
- children: /* @__PURE__ */ y("span", {
5321
- className: "inline-flex items-center gap-1",
5322
- children: [e.header, s?.columnId === e.id && /* @__PURE__ */ v("span", {
5323
- "aria-hidden": "true",
5324
- children: s.direction === "asc" ? "▲" : "▼"
5325
- })]
5326
- })
5327
- }, e.id)) }) }), /* @__PURE__ */ v("tbody", { children: u.map(({ row: e, originalIndex: n, rowId: r }) => {
5328
- let i = r;
5329
- return /* @__PURE__ */ v("tr", {
5330
- className: "sf-editable-grid__row",
5331
- children: t.map((t) => {
5332
- let r = e[t.id], s = a?.rowId === i && a.columnId === t.id, c = t.editable !== !1, l = () => {
5333
- c && o({
5334
- rowId: i,
5335
- columnId: t.id
5336
- });
5337
- };
5338
- return /* @__PURE__ */ v("td", {
5339
- className: (0, X.default)("sf-editable-grid__td", t.align === "right" && "sf-editable-grid__td--right", c && "sf-editable-grid__td--editable"),
5340
- role: c ? "button" : void 0,
5341
- tabIndex: c ? 0 : void 0,
5342
- "aria-label": c ? `Editar ${t.header}` : void 0,
5343
- onDoubleClick: l,
5344
- onKeyDown: (e) => {
5345
- !c || s || e.key !== "Enter" && e.key !== " " && e.key !== "F2" || (e.preventDefault(), l());
5346
- },
5347
- children: s ? /* @__PURE__ */ v("input", {
5348
- autoFocus: !0,
5349
- defaultValue: String(r ?? ""),
5350
- className: Q({ small: !0 }),
5351
- "aria-label": `Valor de ${t.header}`,
5352
- onBlur: (e) => d(n, i, t.id, e.target.value),
5353
- onKeyDown: (e) => {
5354
- e.key === "Enter" && d(n, i, t.id, e.currentTarget.value), e.key === "Escape" && o(null);
5355
- }
5356
- }) : String(r ?? "")
5357
- }, t.id);
5314
+ children: [
5315
+ (u || T && s) && /* @__PURE__ */ y("div", {
5316
+ className: "sf-editable-grid__toolbar",
5317
+ children: [/* @__PURE__ */ v("div", {
5318
+ className: "sf-editable-grid__title",
5319
+ children: u
5320
+ }), T && s && /* @__PURE__ */ y("button", {
5321
+ type: "button",
5322
+ className: "sf-editable-grid__add",
5323
+ onClick: s,
5324
+ children: ["", c]
5325
+ })]
5326
+ }),
5327
+ /* @__PURE__ */ y("table", {
5328
+ className: "sf-editable-grid",
5329
+ children: [/* @__PURE__ */ v("thead", { children: /* @__PURE__ */ y("tr", { children: [
5330
+ o && /* @__PURE__ */ v("th", {
5331
+ className: "sf-editable-grid__th sf-editable-grid__th--index",
5332
+ children: "#"
5333
+ }),
5334
+ t.map((e) => /* @__PURE__ */ v("th", {
5335
+ style: e.width ? { width: e.width } : void 0,
5336
+ className: (0, X.default)("sf-editable-grid__th", e.align === "right" && "sf-editable-grid__th--right", M(e) && "cursor-pointer select-none"),
5337
+ role: M(e) ? "button" : void 0,
5338
+ tabIndex: M(e) ? 0 : void 0,
5339
+ "aria-label": M(e) ? `Ordenar por ${e.header}` : void 0,
5340
+ onClick: () => N(e),
5341
+ onKeyDown: (t) => {
5342
+ M(e) && (t.key !== "Enter" && t.key !== " " || (t.preventDefault(), N(e)));
5343
+ },
5344
+ children: /* @__PURE__ */ y("span", {
5345
+ className: "inline-flex items-center gap-1",
5346
+ children: [e.header, _?.columnId === e.id && /* @__PURE__ */ v("span", {
5347
+ "aria-hidden": "true",
5348
+ children: _.direction === "asc" ? "" : "▼"
5349
+ })]
5350
+ })
5351
+ }, e.id)),
5352
+ T && l && /* @__PURE__ */ v("th", {
5353
+ className: "sf-editable-grid__th sf-editable-grid__th--remove",
5354
+ "aria-label": "Quitar"
5358
5355
  })
5359
- }, i);
5360
- }) })]
5361
- })
5356
+ ] }) }), /* @__PURE__ */ y("tbody", { children: [O.length === 0 && /* @__PURE__ */ v("tr", { children: /* @__PURE__ */ v("td", {
5357
+ className: "sf-editable-grid__td sf-editable-grid__td--empty",
5358
+ colSpan: t.length + +!!o + (T && l ? 1 : 0),
5359
+ children: f
5360
+ }) }), O.map(({ row: e, originalIndex: n, rowId: r }) => {
5361
+ let i = r;
5362
+ return /* @__PURE__ */ y("tr", {
5363
+ className: "sf-editable-grid__row",
5364
+ children: [
5365
+ o && /* @__PURE__ */ v("td", {
5366
+ className: "sf-editable-grid__td sf-editable-grid__td--index",
5367
+ children: n + 1
5368
+ }),
5369
+ t.map((t) => {
5370
+ let r = e[t.id], a = t.editable !== !1;
5371
+ if (T) return /* @__PURE__ */ v("td", {
5372
+ className: "sf-editable-grid__td sf-editable-grid__td--form",
5373
+ children: t.render ? t.render(e, n) : a ? /* @__PURE__ */ v("input", {
5374
+ type: t.type ?? "text",
5375
+ value: String(r ?? ""),
5376
+ placeholder: t.placeholder,
5377
+ "aria-label": `${t.header} fila ${n + 1}`,
5378
+ className: Q({ small: !0 }),
5379
+ onChange: (e) => j(n, i, t.id, e.target.value)
5380
+ }) : String(r ?? "")
5381
+ }, t.id);
5382
+ let o = m?.rowId === i && m.columnId === t.id, s = () => {
5383
+ a && g({
5384
+ rowId: i,
5385
+ columnId: t.id
5386
+ });
5387
+ };
5388
+ return /* @__PURE__ */ v("td", {
5389
+ className: (0, X.default)("sf-editable-grid__td", t.align === "right" && "sf-editable-grid__td--right", a && "sf-editable-grid__td--editable"),
5390
+ role: a ? "button" : void 0,
5391
+ tabIndex: a ? 0 : void 0,
5392
+ "aria-label": a ? `Editar ${t.header}` : void 0,
5393
+ onDoubleClick: s,
5394
+ onKeyDown: (e) => {
5395
+ !a || o || e.key !== "Enter" && e.key !== " " && e.key !== "F2" || (e.preventDefault(), s());
5396
+ },
5397
+ children: o ? /* @__PURE__ */ v("input", {
5398
+ autoFocus: !0,
5399
+ defaultValue: String(r ?? ""),
5400
+ className: Q({ small: !0 }),
5401
+ "aria-label": `Valor de ${t.header}`,
5402
+ onBlur: (e) => j(n, i, t.id, e.target.value),
5403
+ onKeyDown: (e) => {
5404
+ e.key === "Enter" && j(n, i, t.id, e.currentTarget.value), e.key === "Escape" && g(null);
5405
+ }
5406
+ }) : String(r ?? "")
5407
+ }, t.id);
5408
+ }),
5409
+ T && l && /* @__PURE__ */ v("td", {
5410
+ className: "sf-editable-grid__td sf-editable-grid__td--remove",
5411
+ children: /* @__PURE__ */ v("button", {
5412
+ type: "button",
5413
+ "aria-label": `Quitar fila ${n + 1}`,
5414
+ className: "sf-editable-grid__remove",
5415
+ onClick: () => l(e, n),
5416
+ children: "✕"
5417
+ })
5418
+ })
5419
+ ]
5420
+ }, i);
5421
+ })] })]
5422
+ }),
5423
+ C > 0 && /* @__PURE__ */ y("div", {
5424
+ className: "sf-editable-grid__pagination",
5425
+ children: [/* @__PURE__ */ y("label", {
5426
+ className: "sf-editable-grid__page-size",
5427
+ children: [
5428
+ "Mostrar",
5429
+ " ",
5430
+ /* @__PURE__ */ v("select", {
5431
+ value: C,
5432
+ onChange: (e) => {
5433
+ w(Number(e.target.value)), S(0);
5434
+ },
5435
+ children: [
5436
+ 5,
5437
+ 10,
5438
+ 25
5439
+ ].map((e) => /* @__PURE__ */ v("option", {
5440
+ value: e,
5441
+ children: e
5442
+ }, e))
5443
+ }),
5444
+ " ",
5445
+ "por página"
5446
+ ]
5447
+ }), /* @__PURE__ */ y("div", {
5448
+ className: "sf-editable-grid__page-nav",
5449
+ children: [
5450
+ /* @__PURE__ */ y("span", { children: [
5451
+ A + 1,
5452
+ " / ",
5453
+ k
5454
+ ] }),
5455
+ /* @__PURE__ */ v("button", {
5456
+ type: "button",
5457
+ "aria-label": "Página anterior",
5458
+ disabled: A === 0,
5459
+ onClick: () => S((e) => Math.max(0, e - 1)),
5460
+ children: "‹"
5461
+ }),
5462
+ /* @__PURE__ */ v("button", {
5463
+ type: "button",
5464
+ "aria-label": "Página siguiente",
5465
+ disabled: A >= k - 1,
5466
+ onClick: () => S((e) => Math.min(k - 1, e + 1)),
5467
+ children: "›"
5468
+ })
5469
+ ]
5470
+ })]
5471
+ })
5472
+ ]
5362
5473
  });
5363
- }, br = (e, t, n) => {
5474
+ }, xr = (e, t, n) => {
5364
5475
  let r = e.includes(t);
5365
5476
  return n === "single" ? r ? [] : [t] : r ? e.filter((e) => e !== t) : [...e, t];
5366
- }, xr = (e) => e.content ? e.content : e.table ? /* @__PURE__ */ v(ar, {
5477
+ }, Sr = (e) => e.content ? e.content : e.table ? /* @__PURE__ */ v(ar, {
5367
5478
  embedded: !0,
5368
5479
  data: e.table.data,
5369
5480
  columns: e.table.columns,
@@ -5375,15 +5486,15 @@ var sr = (e) => {
5375
5486
  enablePagination: e.table.enablePagination ?? !1,
5376
5487
  pageSize: e.table.pageSize,
5377
5488
  emptyMessage: e.table.emptyMessage
5378
- }) : null, Sr = ({ items: e, type: t = "single", className: n, ariaLabel: r = "Sección expandible" }) => {
5489
+ }) : null, Cr = ({ items: e, type: t = "single", className: n, ariaLabel: r = "Sección expandible" }) => {
5379
5490
  let [i, a] = h(() => e.filter((e) => e.defaultOpen).map((e) => e.id)), o = s((e, n) => {
5380
- n || a((n) => br(n, e, t));
5491
+ n || a((n) => xr(n, e, t));
5381
5492
  }, [t]);
5382
5493
  return /* @__PURE__ */ v("section", {
5383
5494
  className: (0, X.default)("sf-expandable-table-section", n),
5384
5495
  "aria-label": r,
5385
5496
  children: e.map((e) => {
5386
- let t = i.includes(e.id), n = xr(e);
5497
+ let t = i.includes(e.id), n = Sr(e);
5387
5498
  return /* @__PURE__ */ y("div", {
5388
5499
  className: "sf-expandable-table-section__item",
5389
5500
  children: [/* @__PURE__ */ y("button", {
@@ -5414,10 +5525,10 @@ var sr = (e) => {
5414
5525
  }, e.id);
5415
5526
  })
5416
5527
  });
5417
- }, Cr = ({ children: e, className: t }) => /* @__PURE__ */ v("div", {
5528
+ }, wr = ({ children: e, className: t }) => /* @__PURE__ */ v("div", {
5418
5529
  className: (0, X.default)("flex flex-wrap items-center gap-3", t),
5419
5530
  children: e
5420
- }), wr = ({ selected: e = !1, small: t = !1, icon: n, label: r, loading: i = !1, disabled: a, className: o, type: s = "button", ...c }) => /* @__PURE__ */ y("button", {
5531
+ }), Tr = ({ selected: e = !1, small: t = !1, icon: n, label: r, loading: i = !1, disabled: a, className: o, type: s = "button", ...c }) => /* @__PURE__ */ y("button", {
5421
5532
  type: s,
5422
5533
  disabled: a || i,
5423
5534
  "aria-label": c["aria-label"] ?? r,
@@ -5434,7 +5545,7 @@ var sr = (e) => {
5434
5545
  className: "sf-toolbar-btn__label",
5435
5546
  children: r
5436
5547
  })]
5437
- }), Tr = ({ onEdit: e, onDelete: t, disabled: n = !1, editLabel: r = "Editar", deleteLabel: i = "Eliminar", className: a }) => /* @__PURE__ */ y("div", {
5548
+ }), Er = ({ onEdit: e, onDelete: t, disabled: n = !1, editLabel: r = "Editar", deleteLabel: i = "Eliminar", className: a }) => /* @__PURE__ */ y("div", {
5438
5549
  className: (0, X.default)("sf-row-actions", a),
5439
5550
  children: [/* @__PURE__ */ v("button", {
5440
5551
  type: "button",
@@ -5459,7 +5570,7 @@ var sr = (e) => {
5459
5570
  "aria-hidden": "true"
5460
5571
  })
5461
5572
  })]
5462
- }), Er = o(({ cancelLabel: e = "Cancelar", saveLabel: t = "Guardar", onCancel: n, onSave: r, cancelLoading: i = !1, saveLoading: a = !1, hideSave: o = !1, className: s }) => /* @__PURE__ */ y(Cr, {
5573
+ }), Dr = o(({ cancelLabel: e = "Cancelar", saveLabel: t = "Guardar", onCancel: n, onSave: r, cancelLoading: i = !1, saveLoading: a = !1, hideSave: o = !1, className: s }) => /* @__PURE__ */ y(wr, {
5463
5574
  className: (0, X.default)("justify-end", s),
5464
5575
  children: [/* @__PURE__ */ v($, {
5465
5576
  type: "button",
@@ -5481,7 +5592,7 @@ var sr = (e) => {
5481
5592
  onClick: r,
5482
5593
  children: t
5483
5594
  })]
5484
- })), Dr = {
5595
+ })), Or = {
5485
5596
  primary: Ft({
5486
5597
  variant: "primary",
5487
5598
  size: "sm"
@@ -5509,22 +5620,22 @@ var sr = (e) => {
5509
5620
  success: (0, X.default)(Ft({ size: "sm" }), "sf-btn--success"),
5510
5621
  warning: (0, X.default)(Ft({ size: "sm" }), "sf-btn--warning"),
5511
5622
  info: (0, X.default)(Ft({ size: "sm" }), "sf-btn--info")
5512
- }, Or = ({ children: e, loading: t = !1, disabled: n, icon: r, variant: i = "primary", className: a, type: o = "button", ...s }) => /* @__PURE__ */ y("button", {
5623
+ }, kr = ({ children: e, loading: t = !1, disabled: n, icon: r, variant: i = "primary", className: a, type: o = "button", ...s }) => /* @__PURE__ */ y("button", {
5513
5624
  type: o,
5514
5625
  disabled: n || t,
5515
5626
  "aria-busy": t || void 0,
5516
- className: (0, X.default)(Dr[i], a),
5627
+ className: (0, X.default)(Or[i], a),
5517
5628
  ...s,
5518
5629
  children: [e, t ? /* @__PURE__ */ v(Y, {
5519
5630
  className: "h-3.5 w-3.5 animate-spin",
5520
5631
  "aria-hidden": "true"
5521
5632
  }) : r]
5522
- }), kr = {
5633
+ }), Ar = {
5523
5634
  info: "ℹ",
5524
5635
  success: "✓",
5525
5636
  warning: "⚠",
5526
5637
  danger: "✕"
5527
- }, Ar = ({ variant: e = "info", title: t, message: n, dismissible: r = !1, onDismiss: i, icon: a, className: o }) => {
5638
+ }, jr = ({ variant: e = "info", title: t, message: n, dismissible: r = !1, onDismiss: i, icon: a, className: o }) => {
5528
5639
  let [s, c] = h(!0);
5529
5640
  return s ? /* @__PURE__ */ y("div", {
5530
5641
  role: "alert",
@@ -5533,7 +5644,7 @@ var sr = (e) => {
5533
5644
  /* @__PURE__ */ v("span", {
5534
5645
  className: "sf-alert__icon",
5535
5646
  "aria-hidden": "true",
5536
- children: a ?? kr[e]
5647
+ children: a ?? Ar[e]
5537
5648
  }),
5538
5649
  /* @__PURE__ */ y("div", {
5539
5650
  className: "min-w-0 flex-1",
@@ -5556,7 +5667,7 @@ var sr = (e) => {
5556
5667
  })
5557
5668
  ]
5558
5669
  }) : null;
5559
- }, jr = ({ message: e = "No se encontraron resultados.", actionLabel: t, onAction: n, icon: r }) => /* @__PURE__ */ y("div", {
5670
+ }, Mr = ({ message: e = "No se encontraron resultados.", actionLabel: t, onAction: n, icon: r }) => /* @__PURE__ */ y("div", {
5560
5671
  className: "sf-empty-state",
5561
5672
  children: [
5562
5673
  r ?? /* @__PURE__ */ v("svg", {
@@ -5581,8 +5692,8 @@ var sr = (e) => {
5581
5692
  children: t
5582
5693
  })
5583
5694
  ]
5584
- }), Mr = (e) => typeof e == "string" ? e : e instanceof DOMException && e.name === "AbortError" ? "La solicitud fue cancelada." : e instanceof Error ? e.message : "No se pudo conectar al servidor. Verifica tu conexión.", Nr = ({ error: e, message: t, onRetry: n, retryLabel: r = "Reintentar" }) => {
5585
- let i = t ?? (e == null ? "Ocurrió un error inesperado." : Mr(e));
5695
+ }), Nr = (e) => typeof e == "string" ? e : e instanceof DOMException && e.name === "AbortError" ? "La solicitud fue cancelada." : e instanceof Error ? e.message : "No se pudo conectar al servidor. Verifica tu conexión.", Pr = ({ error: e, message: t, onRetry: n, retryLabel: r = "Reintentar" }) => {
5696
+ let i = t ?? (e == null ? "Ocurrió un error inesperado." : Nr(e));
5586
5697
  return /* @__PURE__ */ y("div", {
5587
5698
  className: "sf-error-view",
5588
5699
  children: [
@@ -5609,17 +5720,17 @@ var sr = (e) => {
5609
5720
  })
5610
5721
  ]
5611
5722
  });
5612
- }, Pr = {
5723
+ }, Fr = {
5613
5724
  xs: "sf-spinner--xs",
5614
5725
  sm: "sf-spinner--sm",
5615
5726
  md: "sf-spinner--md",
5616
5727
  lg: "sf-spinner--lg"
5617
- }, Fr = ({ size: e = "md", className: t }) => /* @__PURE__ */ y("div", {
5728
+ }, Ir = ({ size: e = "md", className: t }) => /* @__PURE__ */ y("div", {
5618
5729
  role: "status",
5619
5730
  className: (0, X.default)("inline-flex", t),
5620
5731
  children: [/* @__PURE__ */ y("svg", {
5621
5732
  "aria-hidden": "true",
5622
- className: (0, X.default)("sf-spinner animate-spin", Pr[e]),
5733
+ className: (0, X.default)("sf-spinner animate-spin", Fr[e]),
5623
5734
  viewBox: "0 0 100 101",
5624
5735
  fill: "none",
5625
5736
  xmlns: "http://www.w3.org/2000/svg",
@@ -5634,15 +5745,15 @@ var sr = (e) => {
5634
5745
  className: "sr-only",
5635
5746
  children: "Cargando..."
5636
5747
  })]
5637
- }), Ir = ({ message: e = "Cargando..." }) => /* @__PURE__ */ y("div", {
5748
+ }), Lr = ({ message: e = "Cargando..." }) => /* @__PURE__ */ y("div", {
5638
5749
  className: "sf-loading-view",
5639
5750
  role: "status",
5640
5751
  "aria-live": "polite",
5641
- children: [/* @__PURE__ */ v(Fr, { size: "lg" }), /* @__PURE__ */ v("p", {
5752
+ children: [/* @__PURE__ */ v(Ir, { size: "lg" }), /* @__PURE__ */ v("p", {
5642
5753
  className: "sf-loading-view__message",
5643
5754
  children: e
5644
5755
  })]
5645
- }), Lr = ({ children: e, isError: t = !1, isLoading: n = !1, error: r, onRetry: i, className: a }) => {
5756
+ }), Rr = ({ children: e, isError: t = !1, isLoading: n = !1, error: r, onRetry: i, className: a }) => {
5646
5757
  let o = t && !n;
5647
5758
  return /* @__PURE__ */ y("div", {
5648
5759
  className: (0, X.default)("sf-retry-block", a),
@@ -5653,7 +5764,7 @@ var sr = (e) => {
5653
5764
  className: "sf-retry-block__overlay",
5654
5765
  role: "status",
5655
5766
  "aria-live": "polite",
5656
- children: /* @__PURE__ */ v(Fr, { size: "lg" })
5767
+ children: /* @__PURE__ */ v(Ir, { size: "lg" })
5657
5768
  }),
5658
5769
  o && /* @__PURE__ */ v("div", {
5659
5770
  className: "sf-retry-block__overlay sf-retry-block__overlay--error",
@@ -5680,7 +5791,7 @@ var sr = (e) => {
5680
5791
  })
5681
5792
  ]
5682
5793
  });
5683
- }, Rr = ({ title: e = "Acceso denegado", message: t = "No tienes permisos para acceder a esta sección.", onBack: n, backLabel: r = "Volver atrás", className: i }) => /* @__PURE__ */ v("div", {
5794
+ }, zr = ({ title: e = "Acceso denegado", message: t = "No tienes permisos para acceder a esta sección.", onBack: n, backLabel: r = "Volver atrás", className: i }) => /* @__PURE__ */ v("div", {
5684
5795
  className: (0, X.default)("sf-access-denied", i),
5685
5796
  role: "alert",
5686
5797
  "aria-live": "assertive",
@@ -5703,24 +5814,24 @@ var sr = (e) => {
5703
5814
  })
5704
5815
  ]
5705
5816
  })
5706
- }), zr = {
5817
+ }), Br = {
5707
5818
  text: "sf-skeleton--text",
5708
5819
  block: "sf-skeleton--block",
5709
5820
  circle: "sf-skeleton--circle"
5710
- }, Br = ({ variant: e = "text", width: t, height: n, className: r }) => /* @__PURE__ */ v("div", {
5821
+ }, Vr = ({ variant: e = "text", width: t, height: n, className: r }) => /* @__PURE__ */ v("div", {
5711
5822
  "aria-hidden": "true",
5712
- className: (0, X.default)("sf-skeleton", zr[e], r),
5823
+ className: (0, X.default)("sf-skeleton", Br[e], r),
5713
5824
  style: {
5714
5825
  width: t,
5715
5826
  height: n
5716
5827
  }
5717
- }), Vr = i(null), Hr = {
5828
+ }), Hr = i(null), Ur = {
5718
5829
  default: "●",
5719
5830
  info: "ℹ",
5720
5831
  success: "✓",
5721
5832
  warning: "⚠",
5722
5833
  danger: "✕"
5723
- }, Ur = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`, Wr = ({ toast: e, onDismiss: t }) => {
5834
+ }, Wr = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`, Gr = ({ toast: e, onDismiss: t }) => {
5724
5835
  let n = e.variant ?? "default";
5725
5836
  return /* @__PURE__ */ y("div", {
5726
5837
  role: n === "danger" || n === "warning" ? "alert" : "status",
@@ -5729,7 +5840,7 @@ var sr = (e) => {
5729
5840
  /* @__PURE__ */ v("span", {
5730
5841
  className: "sf-toast__icon",
5731
5842
  "aria-hidden": "true",
5732
- children: Hr[n]
5843
+ children: Ur[n]
5733
5844
  }),
5734
5845
  /* @__PURE__ */ y("div", {
5735
5846
  className: "sf-toast__body",
@@ -5762,21 +5873,21 @@ var sr = (e) => {
5762
5873
  })
5763
5874
  ]
5764
5875
  });
5765
- }, Gr = ({ toasts: e, position: t, onDismiss: n }) => e.length === 0 ? null : N(/* @__PURE__ */ v("div", {
5876
+ }, Kr = ({ toasts: e, position: t, onDismiss: n }) => e.length === 0 ? null : N(/* @__PURE__ */ v("div", {
5766
5877
  className: (0, X.default)("sf-toast-viewport", `sf-toast-viewport--${t}`),
5767
5878
  "aria-live": "polite",
5768
- children: e.map((e) => /* @__PURE__ */ v(Wr, {
5879
+ children: e.map((e) => /* @__PURE__ */ v(Gr, {
5769
5880
  toast: e,
5770
5881
  onDismiss: n
5771
5882
  }, e.id))
5772
- }), document.body), Kr = ({ children: e, position: t = "bottom-right" }) => {
5883
+ }), document.body), qr = ({ children: e, position: t = "bottom-right" }) => {
5773
5884
  let [n, r] = h([]), i = m(/* @__PURE__ */ new Map()), a = s((e) => {
5774
5885
  let t = i.current.get(e);
5775
5886
  t && (clearTimeout(t), i.current.delete(e)), r((t) => t.filter((t) => t.id !== e));
5776
5887
  }, []), o = s(() => {
5777
5888
  i.current.forEach((e) => clearTimeout(e)), i.current.clear(), r([]);
5778
5889
  }, []), c = s((e) => {
5779
- let t = e.id ?? Ur(), n = {
5890
+ let t = e.id ?? Wr(), n = {
5780
5891
  ...e,
5781
5892
  id: t
5782
5893
  }, o = i.current.get(t);
@@ -5800,24 +5911,24 @@ var sr = (e) => {
5800
5911
  a,
5801
5912
  o
5802
5913
  ]);
5803
- return /* @__PURE__ */ y(Vr.Provider, {
5914
+ return /* @__PURE__ */ y(Hr.Provider, {
5804
5915
  value: l,
5805
- children: [e, /* @__PURE__ */ v(Gr, {
5916
+ children: [e, /* @__PURE__ */ v(Kr, {
5806
5917
  toasts: n,
5807
5918
  position: t,
5808
5919
  onDismiss: a
5809
5920
  })]
5810
5921
  });
5811
- }, qr = () => {
5812
- let e = c(Vr);
5922
+ }, Jr = () => {
5923
+ let e = c(Hr);
5813
5924
  if (!e) throw Error("useToast debe usarse dentro de ToastProvider");
5814
5925
  return e;
5815
- }, Jr = {
5926
+ }, Yr = {
5816
5927
  sm: "sf-modal--sm",
5817
5928
  md: "sf-modal--md",
5818
5929
  lg: "sf-modal--lg",
5819
5930
  xl: "sf-modal--xl"
5820
- }, Yr = ({ open: e, onClose: t, title: n, subtitle: r, icon: i, children: a, footer: o, subheader: s, size: c = "md", maxWidth: l, width: f, headerVariant: p = "default", hideHeader: m = !1, closeOnOverlay: h = !0, className: g }) => {
5931
+ }, Xr = ({ open: e, onClose: t, title: n, subtitle: r, icon: i, children: a, footer: o, subheader: s, size: c = "md", maxWidth: l, width: f, headerVariant: p = "default", hideHeader: m = !1, closeOnOverlay: h = !0, className: g }) => {
5821
5932
  let _ = d(), b = f != null || l != null ? {
5822
5933
  width: f,
5823
5934
  maxWidth: l
@@ -5843,7 +5954,7 @@ var sr = (e) => {
5843
5954
  role: "dialog",
5844
5955
  "aria-modal": "true",
5845
5956
  "aria-labelledby": !m && n ? _ : void 0,
5846
- className: (0, X.default)("sf-modal", Jr[c], g),
5957
+ className: (0, X.default)("sf-modal", Yr[c], g),
5847
5958
  style: b,
5848
5959
  children: [
5849
5960
  !m && /* @__PURE__ */ y("div", {
@@ -5891,7 +6002,7 @@ var sr = (e) => {
5891
6002
  ]
5892
6003
  })]
5893
6004
  }), document.body) : null;
5894
- }, Xr = (e) => {
6005
+ }, Zr = (e) => {
5895
6006
  let [t, n] = h({ open: !1 }), r = s((t) => {
5896
6007
  n({
5897
6008
  open: !0,
@@ -5909,12 +6020,12 @@ var sr = (e) => {
5909
6020
  close: i,
5910
6021
  data: t.data
5911
6022
  };
5912
- }, Zr = ({ open: e, title: t = "Confirmar acción", message: n = "¿Estás seguro de continuar?", confirmLabel: r = "Confirmar", cancelLabel: i = "Cancelar", onConfirm: a, onCancel: o, loading: s = !1, danger: c = !0 }) => /* @__PURE__ */ v(Yr, {
6023
+ }, Qr = ({ open: e, title: t = "Confirmar acción", message: n = "¿Estás seguro de continuar?", confirmLabel: r = "Confirmar", cancelLabel: i = "Cancelar", onConfirm: a, onCancel: o, loading: s = !1, danger: c = !0 }) => /* @__PURE__ */ v(Xr, {
5913
6024
  open: e,
5914
6025
  onClose: o,
5915
6026
  title: t,
5916
6027
  size: "sm",
5917
- footer: /* @__PURE__ */ y(Cr, {
6028
+ footer: /* @__PURE__ */ y(wr, {
5918
6029
  className: "justify-end",
5919
6030
  children: [/* @__PURE__ */ v($, {
5920
6031
  variant: "outline",
@@ -5932,7 +6043,7 @@ var sr = (e) => {
5932
6043
  className: "sf-modal-body-text",
5933
6044
  children: n
5934
6045
  })
5935
- }), Qr = {
6046
+ }), $r = {
5936
6047
  info: {
5937
6048
  icon: /* @__PURE__ */ v(Ze, {
5938
6049
  className: "h-6 w-6",
@@ -5965,9 +6076,9 @@ var sr = (e) => {
5965
6076
  iconWrap: "bg-red-50 text-red-600",
5966
6077
  button: "danger"
5967
6078
  }
5968
- }, $r = ({ open: e, onClose: t, variant: n = "info", title: r, message: i, actionLabel: a = "Entendido" }) => {
5969
- let o = Qr[n];
5970
- return /* @__PURE__ */ v(Yr, {
6079
+ }, ei = ({ open: e, onClose: t, variant: n = "info", title: r, message: i, actionLabel: a = "Entendido" }) => {
6080
+ let o = $r[n];
6081
+ return /* @__PURE__ */ v(Xr, {
5971
6082
  open: e,
5972
6083
  onClose: t,
5973
6084
  size: "sm",
@@ -5997,7 +6108,7 @@ var sr = (e) => {
5997
6108
  ]
5998
6109
  })
5999
6110
  });
6000
- }, ei = i(() => void 0), ti = () => c(ei), ni = ({ trigger: e, children: t, align: n = "end", widthClassName: r = "w-52", className: i }) => {
6111
+ }, ti = i(() => void 0), ni = () => c(ti), ri = ({ trigger: e, children: t, align: n = "end", widthClassName: r = "w-52", className: i }) => {
6001
6112
  let [a, o] = h(!1), s = m(null), c = d(), l = () => o(!1);
6002
6113
  u(() => {
6003
6114
  if (!a) return;
@@ -6022,7 +6133,7 @@ var sr = (e) => {
6022
6133
  onClick: () => o((e) => !e),
6023
6134
  className: "inline-flex",
6024
6135
  children: f
6025
- }), a && /* @__PURE__ */ v(ei.Provider, {
6136
+ }), a && /* @__PURE__ */ v(ti.Provider, {
6026
6137
  value: l,
6027
6138
  children: /* @__PURE__ */ v("div", {
6028
6139
  id: c,
@@ -6032,8 +6143,8 @@ var sr = (e) => {
6032
6143
  })
6033
6144
  })]
6034
6145
  });
6035
- }, ri = ({ label: e, onClick: t, icon: n, disabled: r = !1, danger: i = !1 }) => {
6036
- let a = ti();
6146
+ }, ii = ({ label: e, onClick: t, icon: n, disabled: r = !1, danger: i = !1 }) => {
6147
+ let a = ni();
6037
6148
  return /* @__PURE__ */ y("button", {
6038
6149
  type: "button",
6039
6150
  role: "menuitem",
@@ -6050,7 +6161,7 @@ var sr = (e) => {
6050
6161
  children: e
6051
6162
  })]
6052
6163
  });
6053
- }, ii = ({ title: e, selected: t = !1, icon: n, disabled: r, onClick: i, role: a, className: o }) => /* @__PURE__ */ y("button", {
6164
+ }, ai = ({ title: e, selected: t = !1, icon: n, disabled: r, onClick: i, role: a, className: o }) => /* @__PURE__ */ y("button", {
6054
6165
  type: "button",
6055
6166
  role: a,
6056
6167
  disabled: r,
@@ -6064,7 +6175,7 @@ var sr = (e) => {
6064
6175
  className: "truncate",
6065
6176
  children: e
6066
6177
  })]
6067
- }), ai = ({ label: e, icon: t, selected: n, className: r }) => /* @__PURE__ */ y("span", {
6178
+ }), oi = ({ label: e, icon: t, selected: n, className: r }) => /* @__PURE__ */ y("span", {
6068
6179
  className: (0, X.default)("sf-tab-menu-option", n ? "sf-tab-menu-option--selected" : "sf-tab-menu-option--idle", r),
6069
6180
  children: [t ? typeof t == "string" ? /* @__PURE__ */ v("img", {
6070
6181
  src: t,
@@ -6074,7 +6185,7 @@ var sr = (e) => {
6074
6185
  className: "sf-tab-menu-option__icon",
6075
6186
  "aria-hidden": "true"
6076
6187
  }) : t : null, /* @__PURE__ */ v("span", { children: e })]
6077
- }), oi = (e) => {
6188
+ }), si = (e) => {
6078
6189
  let t = m(null), n = m(e);
6079
6190
  return f(() => {
6080
6191
  n.current = e;
@@ -6087,11 +6198,11 @@ var sr = (e) => {
6087
6198
  document.removeEventListener("mousedown", e), document.removeEventListener("touchstart", e);
6088
6199
  };
6089
6200
  }, []), t;
6090
- }, si = i(() => void 0), ci = 240, li = 32, ui = ({ children: e }) => {
6201
+ }, ci = i(() => void 0), li = 240, ui = 32, di = ({ children: e }) => {
6091
6202
  let [t, n] = h({
6092
6203
  items: [],
6093
6204
  isVisible: !1
6094
- }), r = oi(() => n({
6205
+ }), r = si(() => n({
6095
6206
  items: [],
6096
6207
  isVisible: !1
6097
6208
  }));
@@ -6108,8 +6219,8 @@ var sr = (e) => {
6108
6219
  let i = {
6109
6220
  x: t.event?.pageX ?? 0,
6110
6221
  y: t.event?.pageY ?? 0
6111
- }, a = t.items.length * li + 8;
6112
- return typeof window < "u" && (i.x + ci >= window.innerWidth && (i.x -= ci), i.y + a >= window.innerHeight && (i.y -= a), i.y < 0 && (i.y = 0), i.x < 0 && (i.x = 0)), /* @__PURE__ */ y(si.Provider, {
6222
+ }, a = t.items.length * ui + 8;
6223
+ return typeof window < "u" && (i.x + li >= window.innerWidth && (i.x -= li), i.y + a >= window.innerHeight && (i.y -= a), i.y < 0 && (i.y = 0), i.x < 0 && (i.x = 0)), /* @__PURE__ */ y(ci.Provider, {
6113
6224
  value: n,
6114
6225
  children: [t.isVisible && t.event && t.items.length > 0 && /* @__PURE__ */ v("div", {
6115
6226
  ref: r,
@@ -6118,7 +6229,7 @@ var sr = (e) => {
6118
6229
  style: {
6119
6230
  top: i.y,
6120
6231
  left: i.x,
6121
- width: ci
6232
+ width: li
6122
6233
  },
6123
6234
  onContextMenu: (e) => e.preventDefault(),
6124
6235
  children: t.items.map((e) => {
@@ -6146,18 +6257,18 @@ var sr = (e) => {
6146
6257
  })
6147
6258
  }), e]
6148
6259
  });
6149
- }, di = (e, t) => {
6260
+ }, fi = (e, t) => {
6150
6261
  let n = [];
6151
6262
  for (let r of e) {
6152
6263
  let e = typeof r == "function" ? r(t) : r;
6153
6264
  e && n.push(e);
6154
6265
  }
6155
6266
  return n;
6156
- }, fi = (e) => {
6157
- let t = c(si);
6267
+ }, pi = (e) => {
6268
+ let t = c(ci);
6158
6269
  return s((n, r) => {
6159
6270
  n.preventDefault(), n.stopPropagation();
6160
- let i = di(e, r);
6271
+ let i = fi(e, r);
6161
6272
  i.length !== 0 && t({
6162
6273
  items: i,
6163
6274
  isVisible: !0,
@@ -6165,9 +6276,9 @@ var sr = (e) => {
6165
6276
  ctxValue: r
6166
6277
  });
6167
6278
  }, [e, t]);
6168
- }, pi = ({ open: e, onClose: t, value: n, title: r = "Código QR", size: i = 192, ariaLabel: a }) => {
6279
+ }, mi = ({ open: e, onClose: t, value: n, title: r = "Código QR", size: i = 192, ariaLabel: a }) => {
6169
6280
  let o = d();
6170
- return /* @__PURE__ */ v(Yr, {
6281
+ return /* @__PURE__ */ v(Xr, {
6171
6282
  open: e,
6172
6283
  onClose: t,
6173
6284
  title: r,
@@ -6189,9 +6300,9 @@ var sr = (e) => {
6189
6300
  })]
6190
6301
  })
6191
6302
  });
6192
- }, mi = (e) => e <= 0 ? "" : e > 9 ? "+9" : String(e), hi = ({ items: e, onItemClick: t, emptyLabel: n = "Sin notificaciones", className: r }) => {
6193
- let i = mi(e.length), a = e.length === 1 ? "Notificaciones, 1 pendiente" : `Notificaciones, ${e.length} pendientes`;
6194
- return /* @__PURE__ */ v(ni, {
6303
+ }, hi = (e) => e <= 0 ? "" : e > 9 ? "+9" : String(e), gi = ({ items: e, onItemClick: t, emptyLabel: n = "Sin notificaciones", className: r }) => {
6304
+ let i = hi(e.length), a = e.length === 1 ? "Notificaciones, 1 pendiente" : `Notificaciones, ${e.length} pendientes`;
6305
+ return /* @__PURE__ */ v(ri, {
6195
6306
  className: r,
6196
6307
  widthClassName: "w-72",
6197
6308
  align: "end",
@@ -6218,7 +6329,7 @@ var sr = (e) => {
6218
6329
  className: "sf-notification-bell__empty",
6219
6330
  role: "status",
6220
6331
  children: n
6221
- }) : e.map((e) => /* @__PURE__ */ v(ii, {
6332
+ }) : e.map((e) => /* @__PURE__ */ v(ai, {
6222
6333
  title: e.title,
6223
6334
  role: "menuitem",
6224
6335
  icon: /* @__PURE__ */ v(dt, {
@@ -6230,7 +6341,7 @@ var sr = (e) => {
6230
6341
  }, e.id))
6231
6342
  })
6232
6343
  });
6233
- }, gi = ({ content: e, children: t, placement: n = "top", className: i, contentClassName: o }) => {
6344
+ }, _i = ({ content: e, children: t, placement: n = "top", className: i, contentClassName: o }) => {
6234
6345
  let s = d(), c = a(t) ? r(t, {
6235
6346
  "aria-describedby": s,
6236
6347
  tabIndex: t.props.tabIndex ?? 0
@@ -6244,12 +6355,12 @@ var sr = (e) => {
6244
6355
  children: e
6245
6356
  })]
6246
6357
  });
6247
- }, _i = {
6358
+ }, vi = {
6248
6359
  left: { width: 360 },
6249
6360
  right: { width: 360 },
6250
6361
  top: { height: "40vh" },
6251
6362
  bottom: { height: "40vh" }
6252
- }, vi = ({ open: e, onClose: t, side: n = "right", title: r, subtitle: i, icon: a, children: o, footer: s, subheader: c, width: l, height: f, headerVariant: p = "default", closeOnOverlay: m = !0, className: h }) => {
6363
+ }, yi = ({ open: e, onClose: t, side: n = "right", title: r, subtitle: i, icon: a, children: o, footer: s, subheader: c, width: l, height: f, headerVariant: p = "default", closeOnOverlay: m = !0, className: h }) => {
6253
6364
  let g = d(), _ = p === "brand";
6254
6365
  if (u(() => {
6255
6366
  if (!e) return;
@@ -6263,9 +6374,9 @@ var sr = (e) => {
6263
6374
  };
6264
6375
  }, [e, t]), !e) return null;
6265
6376
  let b = {
6266
- ..._i[n],
6267
- ...n === "left" || n === "right" ? { width: l ?? _i[n].width } : {},
6268
- ...n === "top" || n === "bottom" ? { height: f ?? _i[n].height } : {}
6377
+ ...vi[n],
6378
+ ...n === "left" || n === "right" ? { width: l ?? vi[n].width } : {},
6379
+ ...n === "top" || n === "bottom" ? { height: f ?? vi[n].height } : {}
6269
6380
  };
6270
6381
  return N(/* @__PURE__ */ y("div", {
6271
6382
  className: "sf-drawer-root",
@@ -6326,7 +6437,7 @@ var sr = (e) => {
6326
6437
  ]
6327
6438
  })]
6328
6439
  }), document.body);
6329
- }, yi = vi, bi = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.platform), xi = ({ onOpenChange: e, items: t, placeholder: n, emptyMessage: r, className: i }) => {
6440
+ }, bi = yi, xi = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Si = ({ onOpenChange: e, items: t, placeholder: n, emptyMessage: r, className: i }) => {
6330
6441
  let a = m(null), [o, s] = h(""), [c, l] = h(0), d = p(() => {
6331
6442
  let e = o.trim().toLowerCase();
6332
6443
  return e ? t.filter((t) => `${t.label} ${t.group ?? ""} ${t.keywords ?? ""}`.toLowerCase().includes(e)) : t;
@@ -6372,7 +6483,7 @@ var sr = (e) => {
6372
6483
  className: "sf-command-palette__input"
6373
6484
  }), /* @__PURE__ */ v("span", {
6374
6485
  className: "sf-command-palette__hint",
6375
- children: bi ? "⌘K" : "Ctrl+K"
6486
+ children: xi ? "⌘K" : "Ctrl+K"
6376
6487
  })]
6377
6488
  }), /* @__PURE__ */ v("div", {
6378
6489
  className: "sf-command-palette__list",
@@ -6395,7 +6506,7 @@ var sr = (e) => {
6395
6506
  })]
6396
6507
  })]
6397
6508
  });
6398
- }, Si = ({ open: e, onOpenChange: t, items: n, placeholder: r = "Buscar acción…", emptyMessage: i = "Sin resultados", enableShortcut: a = !0, className: o }) => (u(() => {
6509
+ }, Ci = ({ open: e, onOpenChange: t, items: n, placeholder: r = "Buscar acción…", emptyMessage: i = "Sin resultados", enableShortcut: a = !0, className: o }) => (u(() => {
6399
6510
  if (!a) return;
6400
6511
  let n = (n) => {
6401
6512
  (n.metaKey || n.ctrlKey) && n.key.toLowerCase() === "k" && (n.preventDefault(), t(!e));
@@ -6405,13 +6516,13 @@ var sr = (e) => {
6405
6516
  a,
6406
6517
  t,
6407
6518
  e
6408
- ]), e ? N(/* @__PURE__ */ v(xi, {
6519
+ ]), e ? N(/* @__PURE__ */ v(Si, {
6409
6520
  onOpenChange: t,
6410
6521
  items: n,
6411
6522
  placeholder: r,
6412
6523
  emptyMessage: i,
6413
6524
  className: o
6414
- }), document.body) : null), Ci = (e, t) => {
6525
+ }), document.body) : null), wi = (e, t) => {
6415
6526
  switch (t) {
6416
6527
  case "top": return {
6417
6528
  top: e.top - 12,
@@ -6434,7 +6545,7 @@ var sr = (e) => {
6434
6545
  transform: "translateX(-50%)"
6435
6546
  };
6436
6547
  }
6437
- }, wi = ({ open: e, onOpenChange: t, steps: n, stepIndex: r, onStepChange: i, className: a }) => {
6548
+ }, Ti = ({ open: e, onOpenChange: t, steps: n, stepIndex: r, onStepChange: i, className: a }) => {
6438
6549
  let [o, c] = h(0), [l, d] = h(null), p = r ?? o, m = n[p], g = s((e) => {
6439
6550
  r === void 0 && c(e), i?.(e);
6440
6551
  }, [r, i]), _ = s(() => {
@@ -6476,7 +6587,7 @@ var sr = (e) => {
6476
6587
  };
6477
6588
  return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
6478
6589
  }, [t, e]), !e || !m) return null;
6479
- let b = p >= n.length - 1, x = l ? Ci(l, m.placement ?? "bottom") : void 0;
6590
+ let b = p >= n.length - 1, x = l ? wi(l, m.placement ?? "bottom") : void 0;
6480
6591
  return N(/* @__PURE__ */ y("div", {
6481
6592
  className: (0, X.default)("sf-product-tour-root", a),
6482
6593
  children: [
@@ -6535,13 +6646,13 @@ var sr = (e) => {
6535
6646
  })
6536
6647
  ]
6537
6648
  }), document.body);
6538
- }, Ti = ({ children: e, className: t, padded: n = !0 }) => /* @__PURE__ */ v("div", {
6649
+ }, Ei = ({ children: e, className: t, padded: n = !0 }) => /* @__PURE__ */ v("div", {
6539
6650
  className: (0, X.default)("sf-page-container", n && "sf-page-container--padded", t),
6540
6651
  children: e
6541
- }), Ei = ({ children: e, className: t, padded: n = !0 }) => /* @__PURE__ */ v("div", {
6652
+ }), Di = ({ children: e, className: t, padded: n = !0 }) => /* @__PURE__ */ v("div", {
6542
6653
  className: (0, X.default)("sf-table-page-layout", n && "sf-table-page-layout--padded", t),
6543
6654
  children: e
6544
- }), Di = ({ title: e, subtitle: t, eyebrow: n, icon: r, actions: i, className: a, tone: o = "default", sticky: s = !0 }) => /* @__PURE__ */ y("header", {
6655
+ }), Oi = ({ title: e, subtitle: t, eyebrow: n, icon: r, actions: i, className: a, tone: o = "default", sticky: s = !0 }) => /* @__PURE__ */ y("header", {
6545
6656
  className: (0, X.default)("sf-page-header", o === "app" && "sf-page-header--app", !s && "sf-page-header--static", a),
6546
6657
  children: [/* @__PURE__ */ y("div", {
6547
6658
  className: "sf-page-header__main",
@@ -6569,7 +6680,7 @@ var sr = (e) => {
6569
6680
  className: "sf-page-header__actions",
6570
6681
  children: i
6571
6682
  })]
6572
- }), Oi = ({ open: e, title: t, subtitle: n, onClose: r, width: i = 420, side: a = "right", children: o, footer: s, className: c }) => /* @__PURE__ */ y("aside", {
6683
+ }), ki = ({ open: e, title: t, subtitle: n, onClose: r, width: i = 420, side: a = "right", children: o, footer: s, className: c }) => /* @__PURE__ */ y("aside", {
6573
6684
  "aria-hidden": !e,
6574
6685
  className: (0, X.default)("sf-side-panel", a === "right" ? "sf-side-panel--right" : "sf-side-panel--left", e ? "sf-side-panel--open" : "sf-side-panel--closed", c),
6575
6686
  style: { width: e ? i : 0 },
@@ -6605,7 +6716,7 @@ var sr = (e) => {
6605
6716
  children: s
6606
6717
  })
6607
6718
  ]
6608
- }), ki = ({ tabs: e, value: t, onChange: n, className: r, variant: i = "underline" }) => {
6719
+ }), Ai = ({ tabs: e, value: t, onChange: n, className: r, variant: i = "underline" }) => {
6609
6720
  let a = i === "segmented", o = i === "accentUnderline";
6610
6721
  return /* @__PURE__ */ v("div", {
6611
6722
  className: (0, X.default)("sf-tabs", a && "sf-tabs--segmented", o && "sf-tabs--accent-underline", r),
@@ -6637,7 +6748,7 @@ var sr = (e) => {
6637
6748
  }, e.id);
6638
6749
  })
6639
6750
  });
6640
- }, Ai = (e = !1) => {
6751
+ }, ji = (e = !1) => {
6641
6752
  let [t, n] = h(e);
6642
6753
  return {
6643
6754
  isOpen: t,
@@ -6645,15 +6756,15 @@ var sr = (e) => {
6645
6756
  closePanel: s(() => n(!1), []),
6646
6757
  toggle: s(() => n((e) => !e), [])
6647
6758
  };
6648
- }, ji = i({
6759
+ }, Mi = i({
6649
6760
  isOpen: !1,
6650
6761
  openPanel: () => void 0,
6651
6762
  closePanel: () => void 0,
6652
6763
  toggle: () => void 0
6653
- }), Mi = () => c(ji), Ni = (e) => typeof e == "number" ? `${e}px` : e == null ? "420px" : String(e), Pi = ({ children: e, panel: t, width: n = "420px", handle: r, closeOnClickOutside: i = !1, ariaLabel: a = "Panel lateral", className: o }) => {
6654
- let s = Ai(), { isOpen: c, openPanel: l, closePanel: d, toggle: f } = r ?? s, m = oi(() => {
6764
+ }), Ni = () => c(Mi), Pi = (e) => typeof e == "number" ? `${e}px` : e == null ? "420px" : String(e), Fi = ({ children: e, panel: t, width: n = "420px", handle: r, closeOnClickOutside: i = !1, ariaLabel: a = "Panel lateral", className: o }) => {
6765
+ let s = ji(), { isOpen: c, openPanel: l, closePanel: d, toggle: f } = r ?? s, m = si(() => {
6655
6766
  i && c && d();
6656
- }), h = Ni(n), g = typeof t == "function" ? t(c) : t, _ = p(() => ({
6767
+ }), h = Pi(n), g = typeof t == "function" ? t(c) : t, _ = p(() => ({
6657
6768
  isOpen: c,
6658
6769
  openPanel: l,
6659
6770
  closePanel: d,
@@ -6670,7 +6781,7 @@ var sr = (e) => {
6670
6781
  e.key === "Escape" && d();
6671
6782
  };
6672
6783
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
6673
- }, [d, c]), /* @__PURE__ */ v(ji.Provider, {
6784
+ }, [d, c]), /* @__PURE__ */ v(Mi.Provider, {
6674
6785
  value: _,
6675
6786
  children: /* @__PURE__ */ y("div", {
6676
6787
  className: (0, X.default)("relative h-full overflow-hidden", o),
@@ -6694,17 +6805,17 @@ var sr = (e) => {
6694
6805
  })]
6695
6806
  })
6696
6807
  });
6697
- }, Fi = i(null), Ii = ({ height: e, children: t }) => /* @__PURE__ */ v(Fi.Provider, {
6808
+ }, Ii = i(null), Li = ({ height: e, children: t }) => /* @__PURE__ */ v(Ii.Provider, {
6698
6809
  value: e,
6699
6810
  children: t
6700
- }), Li = () => c(Fi), Ri = ({ visible: e, children: t, className: n }) => /* @__PURE__ */ v("div", {
6811
+ }), Ri = () => c(Ii), zi = ({ visible: e, children: t, className: n }) => /* @__PURE__ */ v("div", {
6701
6812
  className: (0, X.default)(!e && "hidden", n),
6702
6813
  children: t
6703
- }), zi = Ri, Bi = ({ orientation: e = "horizontal", className: t }) => /* @__PURE__ */ v("div", {
6814
+ }), Bi = zi, Vi = ({ orientation: e = "horizontal", className: t }) => /* @__PURE__ */ v("div", {
6704
6815
  role: "separator",
6705
6816
  "aria-orientation": e,
6706
6817
  className: (0, X.default)("sf-separator", `sf-separator--${e}`, t)
6707
- }), Vi = ({ items: e, separator: t = "/", className: n, ariaLabel: r = "Ruta de navegación" }) => e.length === 0 ? null : /* @__PURE__ */ v("nav", {
6818
+ }), Hi = ({ items: e, separator: t = "/", className: n, ariaLabel: r = "Ruta de navegación" }) => e.length === 0 ? null : /* @__PURE__ */ v("nav", {
6708
6819
  "aria-label": r,
6709
6820
  className: (0, X.default)("sf-breadcrumb", n),
6710
6821
  children: /* @__PURE__ */ v("ol", {
@@ -6734,13 +6845,13 @@ var sr = (e) => {
6734
6845
  }, r);
6735
6846
  })
6736
6847
  })
6737
- }), Hi = (e, t, n) => {
6848
+ }), Ui = (e, t, n) => {
6738
6849
  let r = e.includes(t);
6739
6850
  return n === "single" ? r ? [] : [t] : r ? e.filter((e) => e !== t) : [...e, t];
6740
- }, Ui = ({ items: e, type: t = "single", defaultValue: n = [], value: r, onChange: i, className: a }) => {
6851
+ }, Wi = ({ items: e, type: t = "single", defaultValue: n = [], value: r, onChange: i, className: a }) => {
6741
6852
  let o = d(), [c, l] = h(n), u = r ?? c, f = s((e, n) => {
6742
6853
  if (n) return;
6743
- let a = Hi(u, e, t);
6854
+ let a = Ui(u, e, t);
6744
6855
  r === void 0 && l(a), i?.(a);
6745
6856
  }, [
6746
6857
  u,
@@ -6780,7 +6891,7 @@ var sr = (e) => {
6780
6891
  }, e.id);
6781
6892
  })
6782
6893
  });
6783
- }, Wi = ({ children: e, maxHeight: t, maxWidth: n, className: r, ariaLabel: i }) => /* @__PURE__ */ v("div", {
6894
+ }, Gi = ({ children: e, maxHeight: t, maxWidth: n, className: r, ariaLabel: i }) => /* @__PURE__ */ v("div", {
6784
6895
  className: (0, X.default)("sf-scroll-area", r),
6785
6896
  style: {
6786
6897
  maxHeight: t,
@@ -6790,7 +6901,7 @@ var sr = (e) => {
6790
6901
  role: i ? "region" : void 0,
6791
6902
  "aria-label": i,
6792
6903
  children: e
6793
- }), Gi = ({ label: e, value: t, className: n }) => /* @__PURE__ */ y("div", {
6904
+ }), Ki = ({ label: e, value: t, className: n }) => /* @__PURE__ */ y("div", {
6794
6905
  className: (0, X.default)("sf-summary-item", n),
6795
6906
  children: [/* @__PURE__ */ v("p", {
6796
6907
  className: "sf-summary-item__label",
@@ -6799,40 +6910,40 @@ var sr = (e) => {
6799
6910
  className: "sf-summary-item__value",
6800
6911
  children: t
6801
6912
  })]
6802
- }), Ki = (e, t, n, r) => {
6913
+ }), qi = (e, t, n, r) => {
6803
6914
  if (e.status) return e.status;
6804
6915
  if (!t) return n === 0 ? "active" : "pending";
6805
6916
  let i = r.findIndex((e) => e.key === t);
6806
6917
  return n < i ? "completed" : n === i ? "active" : "pending";
6807
- }, qi = {
6918
+ }, Ji = {
6808
6919
  completed: "sf-step__circle--completed",
6809
6920
  active: "sf-step__circle--active",
6810
6921
  pending: "sf-step__circle--pending",
6811
6922
  error: "sf-step__circle--error"
6812
- }, Ji = {
6923
+ }, Yi = {
6813
6924
  completed: "sf-step__label--completed",
6814
6925
  active: "sf-step__label--active",
6815
6926
  pending: "sf-step__label--pending",
6816
6927
  error: "sf-step__label--error"
6817
- }, Yi = (e, t) => e === "completed" ? "✓" : e === "error" ? "✕" : String(t + 1), Xi = ({ status: e, index: t, label: n, size: r, onClick: i }) => {
6818
- let a = (0, X.default)("sf-step__circle", r === "sm" ? "sf-step__circle--sm" : "sf-step__circle--md", qi[e], i ? "sf-step__circle--clickable" : "sf-step__circle--default"), o = `Paso ${t + 1}: ${n}`;
6928
+ }, Xi = (e, t) => e === "completed" ? "✓" : e === "error" ? "✕" : String(t + 1), Zi = ({ status: e, index: t, label: n, size: r, onClick: i }) => {
6929
+ let a = (0, X.default)("sf-step__circle", r === "sm" ? "sf-step__circle--sm" : "sf-step__circle--md", Ji[e], i ? "sf-step__circle--clickable" : "sf-step__circle--default"), o = `Paso ${t + 1}: ${n}`;
6819
6930
  return i ? /* @__PURE__ */ v("button", {
6820
6931
  type: "button",
6821
6932
  onClick: i,
6822
6933
  "aria-label": o,
6823
6934
  "aria-current": e === "active" ? "step" : void 0,
6824
6935
  className: a,
6825
- children: Yi(e, t)
6936
+ children: Xi(e, t)
6826
6937
  }) : /* @__PURE__ */ v("span", {
6827
6938
  className: a,
6828
6939
  "aria-label": o,
6829
6940
  "aria-current": e === "active" ? "step" : void 0,
6830
- children: Yi(e, t)
6941
+ children: Xi(e, t)
6831
6942
  });
6832
- }, Zi = ({ done: e, orientation: t }) => /* @__PURE__ */ v("div", {
6943
+ }, Qi = ({ done: e, orientation: t }) => /* @__PURE__ */ v("div", {
6833
6944
  "aria-hidden": "true",
6834
6945
  className: (0, X.default)("sf-step__connector", t === "horizontal" ? "sf-step__connector--horizontal" : "sf-step__connector--vertical", e ? "sf-step__connector--done" : "sf-step__connector--pending")
6835
- }), Qi = ({ steps: e, activeKey: t, orientation: n = "horizontal", size: r = "md", variant: i = "default", onStepClick: a, className: o }) => {
6946
+ }), $i = ({ steps: e, activeKey: t, orientation: n = "horizontal", size: r = "md", variant: i = "default", onStepClick: a, className: o }) => {
6836
6947
  let s = i === "accentUnderline";
6837
6948
  if (n === "horizontal" && i === "inline") {
6838
6949
  let n = r === "sm" ? "1.5rem" : "1.875rem";
@@ -6842,20 +6953,20 @@ var sr = (e) => {
6842
6953
  role: "list",
6843
6954
  "aria-label": "Progreso",
6844
6955
  children: e.map((n, i) => {
6845
- let o = Ki(n, t, i, e), s = i === e.length - 1;
6956
+ let o = qi(n, t, i, e), s = i === e.length - 1;
6846
6957
  return /* @__PURE__ */ y("div", {
6847
6958
  className: "sf-stepper__inline-group",
6848
6959
  role: "listitem",
6849
6960
  children: [/* @__PURE__ */ y("div", {
6850
6961
  className: "sf-stepper__inline-item",
6851
- children: [/* @__PURE__ */ v(Xi, {
6962
+ children: [/* @__PURE__ */ v(Zi, {
6852
6963
  status: o,
6853
6964
  index: i,
6854
6965
  label: n.label,
6855
6966
  size: r,
6856
6967
  onClick: o === "completed" && a ? () => a(n.key) : void 0
6857
6968
  }), /* @__PURE__ */ v("span", {
6858
- className: (0, X.default)("sf-stepper__inline-label", Ji[o]),
6969
+ className: (0, X.default)("sf-stepper__inline-label", Yi[o]),
6859
6970
  children: n.label
6860
6971
  })]
6861
6972
  }), !s && /* @__PURE__ */ v("div", {
@@ -6876,11 +6987,11 @@ var sr = (e) => {
6876
6987
  children: [/* @__PURE__ */ v("div", {
6877
6988
  className: "sf-stepper__track",
6878
6989
  children: e.map((n, i) => {
6879
- let o = Ki(n, t, i, e), s = i > 0 ? Ki(e[i - 1], t, i - 1, e) : null, c = i === e.length - 1;
6990
+ let o = qi(n, t, i, e), s = i > 0 ? qi(e[i - 1], t, i - 1, e) : null, c = i === e.length - 1;
6880
6991
  return /* @__PURE__ */ v("div", {
6881
6992
  className: (0, X.default)("sf-stepper__segment", i > 0 && s === "completed" && "sf-stepper__segment--before-done", !c && o === "completed" && "sf-stepper__segment--after-done"),
6882
6993
  role: "listitem",
6883
- children: /* @__PURE__ */ v(Xi, {
6994
+ children: /* @__PURE__ */ v(Zi, {
6884
6995
  status: o,
6885
6996
  index: i,
6886
6997
  label: n.label,
@@ -6893,11 +7004,11 @@ var sr = (e) => {
6893
7004
  className: "sf-stepper__labels",
6894
7005
  style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
6895
7006
  children: e.map((n, r) => {
6896
- let i = Ki(n, t, r, e);
7007
+ let i = qi(n, t, r, e);
6897
7008
  return /* @__PURE__ */ y("div", {
6898
7009
  className: (0, X.default)("sf-stepper__label-col", s && i === "active" && "sf-stepper__label-col--active"),
6899
7010
  children: [/* @__PURE__ */ v("p", {
6900
- className: (0, X.default)("sf-stepper__label", Ji[i]),
7011
+ className: (0, X.default)("sf-stepper__label", Yi[i]),
6901
7012
  children: n.label
6902
7013
  }), n.sublabel && /* @__PURE__ */ v("p", {
6903
7014
  className: "sf-stepper__sublabel",
@@ -6913,26 +7024,26 @@ var sr = (e) => {
6913
7024
  role: "list",
6914
7025
  "aria-label": "Progreso",
6915
7026
  children: e.map((n, i) => {
6916
- let o = Ki(n, t, i, e), s = i === e.length - 1, c = Ki(e[i], t, i, e) === "completed";
7027
+ let o = qi(n, t, i, e), s = i === e.length - 1, c = qi(e[i], t, i, e) === "completed";
6917
7028
  return /* @__PURE__ */ y("div", {
6918
7029
  className: "sf-stepper__step-row",
6919
7030
  role: "listitem",
6920
7031
  children: [/* @__PURE__ */ y("div", {
6921
7032
  className: "flex flex-col items-center",
6922
- children: [/* @__PURE__ */ v(Xi, {
7033
+ children: [/* @__PURE__ */ v(Zi, {
6923
7034
  status: o,
6924
7035
  index: i,
6925
7036
  label: n.label,
6926
7037
  size: r,
6927
7038
  onClick: o === "completed" && a ? () => a(n.key) : void 0
6928
- }), !s && /* @__PURE__ */ v(Zi, {
7039
+ }), !s && /* @__PURE__ */ v(Qi, {
6929
7040
  done: c,
6930
7041
  orientation: "vertical"
6931
7042
  })]
6932
7043
  }), /* @__PURE__ */ y("div", {
6933
7044
  className: (0, X.default)("sf-stepper__vertical-body", s && "sf-stepper__vertical-body--last"),
6934
7045
  children: [/* @__PURE__ */ v("p", {
6935
- className: (0, X.default)("mt-1 text-sm leading-tight", Ji[o]),
7046
+ className: (0, X.default)("mt-1 text-sm leading-tight", Yi[o]),
6936
7047
  children: n.label
6937
7048
  }), n.sublabel && /* @__PURE__ */ v("p", {
6938
7049
  className: "sf-stepper__sublabel",
@@ -6942,7 +7053,7 @@ var sr = (e) => {
6942
7053
  }, n.key);
6943
7054
  })
6944
7055
  });
6945
- }, $i = /* @__PURE__ */ v(it, { "aria-hidden": "true" }), ea = ({ steps: e, activeKey: t, defaultActiveKey: n, onActiveKeyChange: r, onFinish: i, nextLabel: a = "Siguiente", prevLabel: o = "Anterior", finishLabel: c = "Finalizar", showStepProgress: l = !1, stepperVariant: u = "default", footerVariant: d = "default", hidePrevOnFirst: f = !0, nextIcon: m = $i, primaryVariant: g = "primary", orientation: _ = "horizontal" }) => {
7056
+ }, ea = /* @__PURE__ */ v(it, { "aria-hidden": "true" }), ta = ({ steps: e, activeKey: t, defaultActiveKey: n, onActiveKeyChange: r, onFinish: i, nextLabel: a = "Siguiente", prevLabel: o = "Anterior", finishLabel: c = "Finalizar", showStepProgress: l = !1, stepperVariant: u = "default", footerVariant: d = "default", hidePrevOnFirst: f = !0, nextIcon: m = ea, primaryVariant: g = "primary", orientation: _ = "horizontal" }) => {
6946
7057
  let b = e[0]?.key ?? "", [x, S] = h(n ?? b), [C, w] = h(/* @__PURE__ */ new Set()), [T, E] = h(!1), D = t ?? x, O = s((e) => {
6947
7058
  t === void 0 && S(e), r?.(e);
6948
7059
  }, [t, r]), k = p(() => Math.max(0, e.findIndex((e) => e.key === D)), [D, e]), A = e[k], j = k === 0, M = k === e.length - 1, N = p(() => e.map((e, t) => {
@@ -6992,7 +7103,7 @@ var sr = (e) => {
6992
7103
  i,
6993
7104
  O,
6994
7105
  e
6995
- ]), F = /* @__PURE__ */ v(Qi, {
7106
+ ]), F = /* @__PURE__ */ v($i, {
6996
7107
  steps: N,
6997
7108
  activeKey: D,
6998
7109
  orientation: _,
@@ -7022,7 +7133,7 @@ var sr = (e) => {
7022
7133
  " de ",
7023
7134
  e.length
7024
7135
  ]
7025
- }), /* @__PURE__ */ y(Cr, {
7136
+ }), /* @__PURE__ */ y(wr, {
7026
7137
  className: "sf-form-wizard__actions",
7027
7138
  children: [L && /* @__PURE__ */ v($, {
7028
7139
  type: "button",
@@ -7045,8 +7156,8 @@ var sr = (e) => {
7045
7156
  isLast: M,
7046
7157
  goToStep: P
7047
7158
  };
7048
- }, ta = ({ contentBorderless: e = !1, hideFooter: t = !1, className: n, ...r }) => {
7049
- let i = ea(r);
7159
+ }, na = ({ contentBorderless: e = !1, hideFooter: t = !1, className: n, ...r }) => {
7160
+ let i = ta(r);
7050
7161
  return /* @__PURE__ */ y("div", {
7051
7162
  className: (0, X.default)("sf-form-wizard", n),
7052
7163
  children: [
@@ -7058,7 +7169,7 @@ var sr = (e) => {
7058
7169
  !t && i.footer
7059
7170
  ]
7060
7171
  });
7061
- }, na = ({ title: e, subtitle: t, meta: n, status: r, icon: i, active: a = !1, onClick: o, className: s }) => /* @__PURE__ */ y(o ? "button" : "article", {
7172
+ }, ra = ({ title: e, subtitle: t, meta: n, status: r, icon: i, active: a = !1, onClick: o, className: s }) => /* @__PURE__ */ y(o ? "button" : "article", {
7062
7173
  type: o ? "button" : void 0,
7063
7174
  onClick: o,
7064
7175
  className: (0, X.default)("sf-master-detail-list-item", a && "sf-master-detail-list-item--active", o && "sf-master-detail-list-item--interactive", s),
@@ -7089,7 +7200,7 @@ var sr = (e) => {
7089
7200
  children: r
7090
7201
  })
7091
7202
  ]
7092
- }), ra = ({ listHeader: e, list: t, detail: n, listWidth: r = "18rem", className: i, ariaLabel: a = "Vista maestro detalle" }) => /* @__PURE__ */ y("section", {
7203
+ }), ia = ({ listHeader: e, list: t, detail: n, listWidth: r = "18rem", className: i, ariaLabel: a = "Vista maestro detalle" }) => /* @__PURE__ */ y("section", {
7093
7204
  className: (0, X.default)("sf-master-detail-layout", i),
7094
7205
  "aria-label": a,
7095
7206
  children: [/* @__PURE__ */ y("aside", {
@@ -7106,7 +7217,7 @@ var sr = (e) => {
7106
7217
  className: "sf-master-detail-layout__detail",
7107
7218
  children: n
7108
7219
  })]
7109
- }), ia = ({ children: e, onApply: t, applyLabel: n = "Aplicar", applyLoading: r = !1, className: i, ariaLabel: a = "Filtros" }) => /* @__PURE__ */ y("section", {
7220
+ }), aa = ({ children: e, onApply: t, applyLabel: n = "Aplicar", applyLoading: r = !1, className: i, ariaLabel: a = "Filtros" }) => /* @__PURE__ */ y("section", {
7110
7221
  className: (0, X.default)("sf-filter-bar", i),
7111
7222
  "aria-label": a,
7112
7223
  children: [/* @__PURE__ */ v("div", {
@@ -7122,7 +7233,7 @@ var sr = (e) => {
7122
7233
  children: n
7123
7234
  })
7124
7235
  })]
7125
- }), aa = ({ label: e, children: t, className: n }) => /* @__PURE__ */ y("label", {
7236
+ }), oa = ({ label: e, children: t, className: n }) => /* @__PURE__ */ y("label", {
7126
7237
  className: (0, X.default)("sf-filter-bar__field", n),
7127
7238
  children: [/* @__PURE__ */ v("span", {
7128
7239
  className: "sf-filter-bar__label",
@@ -7131,7 +7242,7 @@ var sr = (e) => {
7131
7242
  className: "sf-filter-bar__control",
7132
7243
  children: t
7133
7244
  })]
7134
- }), oa = ({ value: e, defaultValue: t, onChange: n, disabled: r, className: i, id: a, "aria-label": o }) => /* @__PURE__ */ v("input", {
7245
+ }), sa = ({ value: e, defaultValue: t, onChange: n, disabled: r, className: i, id: a, "aria-label": o }) => /* @__PURE__ */ v("input", {
7135
7246
  type: "date",
7136
7247
  id: a,
7137
7248
  "aria-label": o,
@@ -7140,7 +7251,7 @@ var sr = (e) => {
7140
7251
  disabled: r,
7141
7252
  className: (0, X.default)("sf-filter-bar__input", i),
7142
7253
  onChange: n ? (e) => n(e.target.value) : void 0
7143
- }), sa = ({ value: e, defaultValue: t, onChange: n, options: r, placeholder: i, disabled: a, className: o, id: s, "aria-label": c }) => /* @__PURE__ */ y("select", {
7254
+ }), ca = ({ value: e, defaultValue: t, onChange: n, options: r, placeholder: i, disabled: a, className: o, id: s, "aria-label": c }) => /* @__PURE__ */ y("select", {
7144
7255
  id: s,
7145
7256
  "aria-label": c,
7146
7257
  value: e,
@@ -7157,7 +7268,7 @@ var sr = (e) => {
7157
7268
  disabled: e.disabled,
7158
7269
  children: e.label
7159
7270
  }, e.value))]
7160
- }), ca = ({ value: e, defaultValue: t, onChange: n, placeholder: r, disabled: i, className: a, id: o, "aria-label": s }) => /* @__PURE__ */ v("input", {
7271
+ }), la = ({ value: e, defaultValue: t, onChange: n, placeholder: r, disabled: i, className: a, id: o, "aria-label": s }) => /* @__PURE__ */ v("input", {
7161
7272
  type: "search",
7162
7273
  id: o,
7163
7274
  "aria-label": s ?? r,
@@ -7167,7 +7278,7 @@ var sr = (e) => {
7167
7278
  disabled: i,
7168
7279
  className: (0, X.default)("sf-filter-bar__input", a),
7169
7280
  onChange: n ? (e) => n(e.target.value) : void 0
7170
- }), la = ({ title: e, searchValue: t = "", onSearchChange: n, searchPlaceholder: r = "Buscar en todos los campos…", onNew: i, newLabel: a = "Nuevo", actions: o, children: s, footer: c, className: l, ariaLabel: u = "Listado maestro" }) => /* @__PURE__ */ y("section", {
7281
+ }), ua = ({ title: e, searchValue: t = "", onSearchChange: n, searchPlaceholder: r = "Buscar en todos los campos…", onNew: i, newLabel: a = "Nuevo", actions: o, children: s, footer: c, className: l, ariaLabel: u = "Listado maestro" }) => /* @__PURE__ */ y("section", {
7171
7282
  className: (0, X.default)("sf-maestro-layout", l),
7172
7283
  "aria-label": u,
7173
7284
  children: [
@@ -7184,7 +7295,7 @@ var sr = (e) => {
7184
7295
  children: [/* @__PURE__ */ v(Ge, {
7185
7296
  className: "sf-maestro-layout__search-icon",
7186
7297
  "aria-hidden": "true"
7187
- }), /* @__PURE__ */ v(ca, {
7298
+ }), /* @__PURE__ */ v(la, {
7188
7299
  value: t,
7189
7300
  onChange: n,
7190
7301
  placeholder: r,
@@ -7211,7 +7322,7 @@ var sr = (e) => {
7211
7322
  children: c
7212
7323
  })
7213
7324
  ]
7214
- }), ua = ({ stops: e, originLabel: t, destinationLabel: n }) => /* @__PURE__ */ y("div", {
7325
+ }), da = ({ stops: e, originLabel: t, destinationLabel: n }) => /* @__PURE__ */ y("div", {
7215
7326
  className: "sf-itinerary-editor__map",
7216
7327
  "aria-hidden": "true",
7217
7328
  children: [
@@ -7238,7 +7349,7 @@ var sr = (e) => {
7238
7349
  ]
7239
7350
  })
7240
7351
  ]
7241
- }), da = ({ eyebrow: e, title: t = "Itinerario de paradas", action: n, originLabel: r, destinationLabel: i, stops: a, mapSlot: o, className: s }) => /* @__PURE__ */ y("section", {
7352
+ }), fa = ({ eyebrow: e, title: t = "Itinerario de paradas", action: n, originLabel: r, destinationLabel: i, stops: a, mapSlot: o, className: s }) => /* @__PURE__ */ y("section", {
7242
7353
  className: (0, X.default)("sf-itinerary-editor", s),
7243
7354
  "aria-label": t,
7244
7355
  children: [
@@ -7266,7 +7377,7 @@ var sr = (e) => {
7266
7377
  /* @__PURE__ */ v("span", { children: i })
7267
7378
  ]
7268
7379
  }),
7269
- o ?? /* @__PURE__ */ v(ua, {
7380
+ o ?? /* @__PURE__ */ v(da, {
7270
7381
  stops: a,
7271
7382
  originLabel: r,
7272
7383
  destinationLabel: i
@@ -7316,10 +7427,10 @@ var sr = (e) => {
7316
7427
  }, e.id))
7317
7428
  })
7318
7429
  ]
7319
- }), fa = (e) => {
7430
+ }), pa = (e) => {
7320
7431
  let t = e.trim().split(/\s+/).filter(Boolean);
7321
7432
  return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2) : `${t[0][0] ?? ""}${t[1][0] ?? ""}`;
7322
- }, pa = ({ src: e, alt: t = "", fallback: n, size: r = "md", variant: i = "default", shape: a = "circle", className: o, imgProps: s }) => {
7433
+ }, ma = ({ src: e, alt: t = "", fallback: n, size: r = "md", variant: i = "default", shape: a = "circle", className: o, imgProps: s }) => {
7323
7434
  let [c, l] = h(!1), u = !!e && !c;
7324
7435
  return /* @__PURE__ */ v("span", {
7325
7436
  className: (0, X.default)("sf-avatar", `sf-avatar--${r}`, i === "accent" && "sf-avatar--accent", a === "rounded" && "sf-avatar--rounded", o),
@@ -7332,10 +7443,10 @@ var sr = (e) => {
7332
7443
  }) : /* @__PURE__ */ v("span", {
7333
7444
  className: "sf-avatar__fallback",
7334
7445
  "aria-hidden": !!(n ?? t),
7335
- children: n ?? fa(t || "?")
7446
+ children: n ?? pa(t || "?")
7336
7447
  })
7337
7448
  });
7338
- }, ma = ({ children: e, max: n = 4, size: r = "md", className: i }) => {
7449
+ }, ha = ({ children: e, max: n = 4, size: r = "md", className: i }) => {
7339
7450
  let o = t.toArray(e).filter(a), s = n > 0 ? o.slice(0, n) : o, c = o.length - s.length;
7340
7451
  return /* @__PURE__ */ y("div", {
7341
7452
  className: (0, X.default)("sf-avatar-group", i),
@@ -7347,8 +7458,8 @@ var sr = (e) => {
7347
7458
  children: e
7348
7459
  }, t))]
7349
7460
  });
7350
- }, ha = ({ variant: e = "neutral", size: t = "sm", shape: n = "pill", className: r }) => (0, X.default)("sf-badge", t === "sm" ? "sf-badge--sm" : "sf-badge--md", n === "circle" && "sf-badge--circle", e === "neutral" && "sf-badge--neutral", e === "primary" && "sf-badge--primary", e === "success" && "sf-badge--success", e === "warning" && "sf-badge--warning", e === "danger" && "sf-badge--danger", e === "info" && "sf-badge--info", r), ga = (e) => (0, X.default)("sf-badge-dot", e === "neutral" && "sf-badge-dot--neutral", e === "primary" && "sf-badge-dot--primary", e === "success" && "sf-badge-dot--success", e === "warning" && "sf-badge-dot--warning", e === "danger" && "sf-badge-dot--danger", e === "info" && "sf-badge-dot--info"), _a = ({ label: e, variant: t = "neutral", dot: n = !1, size: r = "sm", shape: i = "pill", className: a }) => i === "circle" ? /* @__PURE__ */ v("span", {
7351
- className: ha({
7461
+ }, ga = ({ variant: e = "neutral", size: t = "sm", shape: n = "pill", className: r }) => (0, X.default)("sf-badge", t === "sm" ? "sf-badge--sm" : "sf-badge--md", n === "circle" && "sf-badge--circle", e === "neutral" && "sf-badge--neutral", e === "primary" && "sf-badge--primary", e === "success" && "sf-badge--success", e === "warning" && "sf-badge--warning", e === "danger" && "sf-badge--danger", e === "info" && "sf-badge--info", r), _a = (e) => (0, X.default)("sf-badge-dot", e === "neutral" && "sf-badge-dot--neutral", e === "primary" && "sf-badge-dot--primary", e === "success" && "sf-badge-dot--success", e === "warning" && "sf-badge-dot--warning", e === "danger" && "sf-badge-dot--danger", e === "info" && "sf-badge-dot--info"), va = ({ label: e, variant: t = "neutral", dot: n = !1, size: r = "sm", shape: i = "pill", className: a }) => i === "circle" ? /* @__PURE__ */ v("span", {
7462
+ className: ga({
7352
7463
  variant: t,
7353
7464
  size: r,
7354
7465
  shape: "circle",
@@ -7356,16 +7467,16 @@ var sr = (e) => {
7356
7467
  }),
7357
7468
  children: e
7358
7469
  }) : /* @__PURE__ */ y("span", {
7359
- className: ha({
7470
+ className: ga({
7360
7471
  variant: t,
7361
7472
  size: r,
7362
7473
  className: a
7363
7474
  }),
7364
7475
  children: [n && /* @__PURE__ */ v("span", {
7365
- className: ga(t),
7476
+ className: _a(t),
7366
7477
  "aria-hidden": "true"
7367
7478
  }), e]
7368
- }), va = ({ size: e = 15 }) => /* @__PURE__ */ v("svg", {
7479
+ }), ya = ({ size: e = 15 }) => /* @__PURE__ */ v("svg", {
7369
7480
  width: e,
7370
7481
  height: e,
7371
7482
  viewBox: "0 0 24 24",
@@ -7373,7 +7484,7 @@ var sr = (e) => {
7373
7484
  stroke: "currentColor",
7374
7485
  strokeWidth: 2.6,
7375
7486
  children: /* @__PURE__ */ v("path", { d: "M20 6 9 17l-5-5" })
7376
- }), ya = ({ size: e = 14 }) => /* @__PURE__ */ v("svg", {
7487
+ }), ba = ({ size: e = 14 }) => /* @__PURE__ */ v("svg", {
7377
7488
  width: e,
7378
7489
  height: e,
7379
7490
  viewBox: "0 0 24 24",
@@ -7381,13 +7492,13 @@ var sr = (e) => {
7381
7492
  stroke: "currentColor",
7382
7493
  strokeWidth: 2.6,
7383
7494
  children: /* @__PURE__ */ v("path", { d: "M18 6 6 18M6 6l12 12" })
7384
- }), ba = {
7495
+ }), xa = {
7385
7496
  display: "flex",
7386
7497
  alignItems: "center",
7387
7498
  gap: 11,
7388
7499
  padding: "7px 8px",
7389
7500
  borderRadius: 9
7390
- }, xa = (e, t) => ({
7501
+ }, Sa = (e, t) => ({
7391
7502
  width: 30,
7392
7503
  height: 30,
7393
7504
  borderRadius: "50%",
@@ -7399,24 +7510,24 @@ var sr = (e) => {
7399
7510
  fontWeight: 800,
7400
7511
  fontSize: 10,
7401
7512
  flex: "none"
7402
- }), Sa = {
7513
+ }), Ca = {
7403
7514
  fontSize: 12.5,
7404
7515
  fontWeight: 700,
7405
7516
  color: "var(--sf-text, #1B2A38)",
7406
7517
  whiteSpace: "nowrap",
7407
7518
  overflow: "hidden",
7408
7519
  textOverflow: "ellipsis"
7409
- }, Ca = {
7520
+ }, wa = {
7410
7521
  fontSize: 10.5,
7411
7522
  fontWeight: 600,
7412
7523
  color: "var(--sf-text-subtle, #8A98A4)",
7413
7524
  fontVariantNumeric: "tabular-nums"
7414
- }, wa = ({ initials: e, name: t, subtitle: n, avatarBg: r, avatarFg: i, onRemove: a, onBoard: o, onAbsent: s, boardLabel: c, className: l }) => /* @__PURE__ */ y("div", {
7525
+ }, Ta = ({ initials: e, name: t, subtitle: n, avatarBg: r, avatarFg: i, onRemove: a, onBoard: o, onAbsent: s, boardLabel: c, className: l }) => /* @__PURE__ */ y("div", {
7415
7526
  className: (0, X.default)("sf-passenger-board-card sf-passenger-board-card--rich", l),
7416
- style: ba,
7527
+ style: xa,
7417
7528
  children: [
7418
7529
  /* @__PURE__ */ v("div", {
7419
- style: xa(r, i),
7530
+ style: Sa(r, i),
7420
7531
  children: e
7421
7532
  }),
7422
7533
  /* @__PURE__ */ y("div", {
@@ -7425,10 +7536,10 @@ var sr = (e) => {
7425
7536
  minWidth: 0
7426
7537
  },
7427
7538
  children: [/* @__PURE__ */ v("div", {
7428
- style: Sa,
7539
+ style: Ca,
7429
7540
  children: t
7430
7541
  }), n != null && /* @__PURE__ */ v("div", {
7431
- style: Ca,
7542
+ style: wa,
7432
7543
  children: n
7433
7544
  })]
7434
7545
  }),
@@ -7449,7 +7560,7 @@ var sr = (e) => {
7449
7560
  justifyContent: "center",
7450
7561
  flex: "none"
7451
7562
  },
7452
- children: /* @__PURE__ */ v(va, {})
7563
+ children: /* @__PURE__ */ v(ya, {})
7453
7564
  }),
7454
7565
  o && /* @__PURE__ */ y("button", {
7455
7566
  type: "button",
@@ -7471,7 +7582,7 @@ var sr = (e) => {
7471
7582
  fontWeight: 800,
7472
7583
  flex: "none"
7473
7584
  },
7474
- children: [/* @__PURE__ */ v(va, { size: 13 }), "Subir"]
7585
+ children: [/* @__PURE__ */ v(ya, { size: 13 }), "Subir"]
7475
7586
  }),
7476
7587
  s && /* @__PURE__ */ v("button", {
7477
7588
  type: "button",
@@ -7490,14 +7601,14 @@ var sr = (e) => {
7490
7601
  justifyContent: "center",
7491
7602
  flex: "none"
7492
7603
  },
7493
- children: /* @__PURE__ */ v(ya, {})
7604
+ children: /* @__PURE__ */ v(ba, {})
7494
7605
  })
7495
7606
  ]
7496
- }), Ta = (e) => {
7607
+ }), Ea = (e) => {
7497
7608
  let { initials: t, name: n, subtitle: r, onboard: i = !1, badge: a, onToggle: o, onRemove: s, onBoard: c, onAbsent: l, className: u } = e;
7498
- if (s || c || l) return /* @__PURE__ */ v(wa, { ...e });
7609
+ if (s || c || l) return /* @__PURE__ */ v(Ta, { ...e });
7499
7610
  let d = /* @__PURE__ */ y(_, { children: [
7500
- /* @__PURE__ */ v(pa, {
7611
+ /* @__PURE__ */ v(ma, {
7501
7612
  fallback: t,
7502
7613
  size: "sm",
7503
7614
  variant: i ? "accent" : "default",
@@ -7514,7 +7625,7 @@ var sr = (e) => {
7514
7625
  children: r
7515
7626
  })]
7516
7627
  }),
7517
- a ?? (i ? /* @__PURE__ */ v(_a, {
7628
+ a ?? (i ? /* @__PURE__ */ v(va, {
7518
7629
  label: "A bordo",
7519
7630
  variant: "success",
7520
7631
  dot: !0
@@ -7532,7 +7643,7 @@ var sr = (e) => {
7532
7643
  className: (0, X.default)("sf-passenger-board-card", "sf-passenger-board-card--static", i && "sf-passenger-board-card--onboard", u),
7533
7644
  children: d
7534
7645
  });
7535
- }, Ea = () => /* @__PURE__ */ v("svg", {
7646
+ }, Da = () => /* @__PURE__ */ v("svg", {
7536
7647
  width: "12",
7537
7648
  height: "12",
7538
7649
  viewBox: "0 0 24 24",
@@ -7540,7 +7651,7 @@ var sr = (e) => {
7540
7651
  stroke: "#2E9E5B",
7541
7652
  strokeWidth: "2",
7542
7653
  children: /* @__PURE__ */ v("path", { d: "M4 17V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10M4 17h16M7 11h10" })
7543
- }), Da = () => /* @__PURE__ */ y("svg", {
7654
+ }), Oa = () => /* @__PURE__ */ y("svg", {
7544
7655
  width: "14",
7545
7656
  height: "14",
7546
7657
  viewBox: "0 0 24 24",
@@ -7548,7 +7659,7 @@ var sr = (e) => {
7548
7659
  stroke: "currentColor",
7549
7660
  strokeWidth: "2",
7550
7661
  children: [/* @__PURE__ */ v("path", { d: "M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z" }), /* @__PURE__ */ v("path", { d: "M12 9v4M12 17h.01" })]
7551
- }), Oa = () => /* @__PURE__ */ v("svg", {
7662
+ }), ka = () => /* @__PURE__ */ v("svg", {
7552
7663
  width: "15",
7553
7664
  height: "15",
7554
7665
  viewBox: "0 0 24 24",
@@ -7556,7 +7667,7 @@ var sr = (e) => {
7556
7667
  stroke: "currentColor",
7557
7668
  strokeWidth: "2.4",
7558
7669
  children: /* @__PURE__ */ v("path", { d: "M12 5v14M5 12h14" })
7559
- }), ka = () => /* @__PURE__ */ y("svg", {
7670
+ }), Aa = () => /* @__PURE__ */ y("svg", {
7560
7671
  width: "15",
7561
7672
  height: "15",
7562
7673
  viewBox: "0 0 24 24",
@@ -7564,7 +7675,7 @@ var sr = (e) => {
7564
7675
  stroke: "currentColor",
7565
7676
  strokeWidth: "2",
7566
7677
  children: [/* @__PURE__ */ v("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), /* @__PURE__ */ v("path", { d: "M14 2v6h6M9 15l2 2 4-4" })]
7567
- }), Aa = () => /* @__PURE__ */ y("svg", {
7678
+ }), ja = () => /* @__PURE__ */ y("svg", {
7568
7679
  width: "18",
7569
7680
  height: "18",
7570
7681
  viewBox: "0 0 24 24",
@@ -7576,12 +7687,12 @@ var sr = (e) => {
7576
7687
  cy: "7",
7577
7688
  r: "4"
7578
7689
  })]
7579
- }), ja = {
7690
+ }), Ma = {
7580
7691
  display: "grid",
7581
7692
  gridTemplateColumns: "repeat(auto-fill, minmax(480px, 1fr))",
7582
7693
  gap: 10,
7583
7694
  alignContent: "start"
7584
- }, Ma = {
7695
+ }, Na = {
7585
7696
  display: "flex",
7586
7697
  alignItems: "center",
7587
7698
  gap: 11,
@@ -7592,7 +7703,7 @@ var sr = (e) => {
7592
7703
  background: "transparent",
7593
7704
  textAlign: "left",
7594
7705
  fontFamily: "inherit"
7595
- }, Na = {
7706
+ }, Pa = {
7596
7707
  display: "inline-flex",
7597
7708
  alignItems: "center",
7598
7709
  gap: 5,
@@ -7604,20 +7715,20 @@ var sr = (e) => {
7604
7715
  fontWeight: 800,
7605
7716
  color: "var(--sf-text, #1B2A38)",
7606
7717
  flex: "none"
7607
- }, Pa = (e) => ({
7718
+ }, Fa = (e) => ({
7608
7719
  fontSize: 9.5,
7609
7720
  fontWeight: 800,
7610
7721
  letterSpacing: ".08em",
7611
7722
  textTransform: "uppercase",
7612
7723
  color: e,
7613
7724
  padding: "6px 8px 4px"
7614
- }), Fa = {
7725
+ }), Ia = {
7615
7726
  display: "flex",
7616
7727
  gap: 8,
7617
7728
  padding: "10px 12px",
7618
7729
  borderTop: "1px solid var(--sf-border, #E2E8EC)",
7619
7730
  background: "var(--sf-surface-alt, #EEF0F2)"
7620
- }, Ia = (e) => e >= 100 ? "#1F8A4C" : e >= 60 ? "#2E9E5B" : e > 0 ? "#C76A12" : "var(--sf-text-subtle,#8A98A4)", La = ({ routes: e, openRouteId: t, defaultOpenRouteId: n, onOpenRouteChange: r, onPassengerRemove: i, onPassengerBoard: a, onPassengerAbsent: o, onAddPassenger: c, onEvento: l, onCloseManifest: u, className: d, ariaLabel: f = "Torre de control" }) => {
7731
+ }, La = (e) => e >= 100 ? "#1F8A4C" : e >= 60 ? "#2E9E5B" : e > 0 ? "#C76A12" : "var(--sf-text-subtle,#8A98A4)", Ra = ({ routes: e, openRouteId: t, defaultOpenRouteId: n, onOpenRouteChange: r, onPassengerRemove: i, onPassengerBoard: a, onPassengerAbsent: o, onAddPassenger: c, onEvento: l, onCloseManifest: u, className: d, ariaLabel: f = "Torre de control" }) => {
7621
7732
  let [m, g] = h(n ?? e.find((e) => e.defaultOpen)?.id ?? e[0]?.id ?? null), [b, x] = h({}), S = t === void 0 ? m : t, C = s((e) => {
7622
7733
  let t = S === e ? null : e;
7623
7734
  r ? r(t) : g(t);
@@ -7635,9 +7746,9 @@ var sr = (e) => {
7635
7746
  return /* @__PURE__ */ v("section", {
7636
7747
  className: (0, X.default)("sf-live-route-board", d),
7637
7748
  "aria-label": f,
7638
- style: ja,
7749
+ style: Ma,
7639
7750
  children: w.map(({ route: e, onboard: t, pending: n, cap: r, onboardCount: s, pct: d }) => {
7640
- let f = S === e.id, p = Ia(d), m = !!b[e.id], h = e.plate;
7751
+ let f = S === e.id, p = La(d), m = !!b[e.id], h = e.plate;
7641
7752
  return /* @__PURE__ */ y("div", {
7642
7753
  style: {
7643
7754
  background: "var(--sf-card-bg, #fff)",
@@ -7650,7 +7761,7 @@ var sr = (e) => {
7650
7761
  },
7651
7762
  children: [/* @__PURE__ */ y("button", {
7652
7763
  type: "button",
7653
- style: Ma,
7764
+ style: Na,
7654
7765
  "aria-expanded": f,
7655
7766
  onClick: () => C(e.id),
7656
7767
  children: [
@@ -7680,8 +7791,8 @@ var sr = (e) => {
7680
7791
  children: e.route
7681
7792
  }),
7682
7793
  h != null && /* @__PURE__ */ y("span", {
7683
- style: Na,
7684
- children: [/* @__PURE__ */ v(Ea, {}), h]
7794
+ style: Pa,
7795
+ children: [/* @__PURE__ */ v(Da, {}), h]
7685
7796
  }),
7686
7797
  (e.driver != null || e.departure != null) && /* @__PURE__ */ y("span", {
7687
7798
  style: {
@@ -7765,9 +7876,9 @@ var sr = (e) => {
7765
7876
  overflow: "auto"
7766
7877
  },
7767
7878
  children: [t.length > 0 ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
7768
- style: Pa("#1F8A4C"),
7879
+ style: Fa("#1F8A4C"),
7769
7880
  children: ["A bordo · ", s]
7770
- }), t.map((t) => /* @__PURE__ */ v(Ta, {
7881
+ }), t.map((t) => /* @__PURE__ */ v(Ea, {
7771
7882
  initials: t.initials,
7772
7883
  name: t.name,
7773
7884
  subtitle: t.subtitle,
@@ -7783,7 +7894,7 @@ var sr = (e) => {
7783
7894
  padding: "14px 12px",
7784
7895
  color: "var(--sf-text-subtle, #8A98A4)"
7785
7896
  },
7786
- children: [/* @__PURE__ */ v(Aa, {}), /* @__PURE__ */ v("span", {
7897
+ children: [/* @__PURE__ */ v(ja, {}), /* @__PURE__ */ v("span", {
7787
7898
  style: {
7788
7899
  fontSize: 12,
7789
7900
  fontWeight: 700
@@ -7792,7 +7903,7 @@ var sr = (e) => {
7792
7903
  })]
7793
7904
  }), m && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
7794
7905
  style: {
7795
- ...Pa("var(--sf-text-subtle, #8A98A4)"),
7906
+ ...Fa("var(--sf-text-subtle, #8A98A4)"),
7796
7907
  display: "flex",
7797
7908
  alignItems: "center",
7798
7909
  justifyContent: "space-between",
@@ -7802,7 +7913,7 @@ var sr = (e) => {
7802
7913
  style: { color: "#1E6FA3" },
7803
7914
  children: [n.length, " en padrón"]
7804
7915
  })]
7805
- }), n.map((t) => /* @__PURE__ */ v(Ta, {
7916
+ }), n.map((t) => /* @__PURE__ */ v(Ea, {
7806
7917
  initials: t.initials,
7807
7918
  name: t.name,
7808
7919
  subtitle: t.subtitle,
@@ -7813,7 +7924,7 @@ var sr = (e) => {
7813
7924
  onAbsent: o ? () => o(e.id, t.id) : void 0
7814
7925
  }, t.id))] })]
7815
7926
  }), /* @__PURE__ */ y("div", {
7816
- style: Fa,
7927
+ style: Ia,
7817
7928
  children: [
7818
7929
  /* @__PURE__ */ y("button", {
7819
7930
  type: "button",
@@ -7839,7 +7950,7 @@ var sr = (e) => {
7839
7950
  justifyContent: "center",
7840
7951
  gap: 7
7841
7952
  },
7842
- children: [/* @__PURE__ */ v(Oa, {}), "Subir pasajero"]
7953
+ children: [/* @__PURE__ */ v(ka, {}), "Subir pasajero"]
7843
7954
  }),
7844
7955
  l && /* @__PURE__ */ y("button", {
7845
7956
  type: "button",
@@ -7859,7 +7970,7 @@ var sr = (e) => {
7859
7970
  alignItems: "center",
7860
7971
  gap: 6
7861
7972
  },
7862
- children: [/* @__PURE__ */ v(Da, {}), "Evento"]
7973
+ children: [/* @__PURE__ */ v(Oa, {}), "Evento"]
7863
7974
  }),
7864
7975
  u && /* @__PURE__ */ v("button", {
7865
7976
  type: "button",
@@ -7877,7 +7988,7 @@ var sr = (e) => {
7877
7988
  alignItems: "center",
7878
7989
  justifyContent: "center"
7879
7990
  },
7880
- children: /* @__PURE__ */ v(ka, {})
7991
+ children: /* @__PURE__ */ v(Aa, {})
7881
7992
  })
7882
7993
  ]
7883
7994
  })]
@@ -7885,7 +7996,7 @@ var sr = (e) => {
7885
7996
  }, e.id);
7886
7997
  })
7887
7998
  });
7888
- }, Ra = ({ label: e = "Abordar a", value: t, options: n, onChange: r, className: i, ariaLabel: a = "Seleccionar unidad" }) => /* @__PURE__ */ y("div", {
7999
+ }, za = ({ label: e = "Abordar a", value: t, options: n, onChange: r, className: i, ariaLabel: a = "Seleccionar unidad" }) => /* @__PURE__ */ y("div", {
7889
8000
  className: (0, X.default)("sf-unit-selector", i),
7890
8001
  role: "group",
7891
8002
  "aria-label": a,
@@ -7911,7 +8022,7 @@ var sr = (e) => {
7911
8022
  }, e.id);
7912
8023
  })
7913
8024
  })]
7914
- }), za = [
8025
+ }), Ba = [
7915
8026
  "DOM",
7916
8027
  "LUN",
7917
8028
  "MAR",
@@ -7919,7 +8030,7 @@ var sr = (e) => {
7919
8030
  "JUE",
7920
8031
  "VIE",
7921
8032
  "SÁB"
7922
- ], Ba = [
8033
+ ], Va = [
7923
8034
  "ENE",
7924
8035
  "FEB",
7925
8036
  "MAR",
@@ -7932,10 +8043,10 @@ var sr = (e) => {
7932
8043
  "OCT",
7933
8044
  "NOV",
7934
8045
  "DIC"
7935
- ], Va = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, Ha = (e) => {
8046
+ ], Ha = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, Ua = (e) => {
7936
8047
  let t = new Date(e), n = t.getDay(), r = n === 0 ? -6 : 1 - n;
7937
8048
  return t.setDate(t.getDate() + r), t.setHours(0, 0, 0, 0), t;
7938
- }, Ua = {
8049
+ }, Wa = {
7939
8050
  display: "inline-flex",
7940
8051
  alignItems: "center",
7941
8052
  gap: 6,
@@ -7945,7 +8056,7 @@ var sr = (e) => {
7945
8056
  padding: 5,
7946
8057
  boxShadow: "0 1px 3px rgba(12,33,49,.06)",
7947
8058
  flex: "none"
7948
- }, Wa = {
8059
+ }, Ga = {
7949
8060
  width: 34,
7950
8061
  height: 34,
7951
8062
  border: "none",
@@ -7957,7 +8068,7 @@ var sr = (e) => {
7957
8068
  alignItems: "center",
7958
8069
  justifyContent: "center",
7959
8070
  flex: "none"
7960
- }, Ga = ({ dir: e }) => /* @__PURE__ */ v("svg", {
8071
+ }, Ka = ({ dir: e }) => /* @__PURE__ */ v("svg", {
7961
8072
  width: "16",
7962
8073
  height: "16",
7963
8074
  viewBox: "0 0 24 24",
@@ -7965,24 +8076,24 @@ var sr = (e) => {
7965
8076
  stroke: "currentColor",
7966
8077
  strokeWidth: "2.4",
7967
8078
  children: /* @__PURE__ */ v("path", { d: e === "left" ? "M15 18l-6-6 6-6" : "M9 18l6-6-6-6" })
7968
- }), Ka = ({ selectedDate: e, onSelectedDateChange: t, todayIso: n, dayLabels: r = za, monthLabels: i = Ba, todayLabel: a = "Hoy", className: o }) => {
7969
- let s = p(() => n ?? Va(/* @__PURE__ */ new Date()), [n]), c = p(() => Ha(/* @__PURE__ */ new Date(`${e}T12:00:00`)), [e]), l = p(() => Array.from({ length: 7 }, (e, t) => {
8079
+ }), qa = ({ selectedDate: e, onSelectedDateChange: t, todayIso: n, dayLabels: r = Ba, monthLabels: i = Va, todayLabel: a = "Hoy", className: o }) => {
8080
+ let s = p(() => n ?? Ha(/* @__PURE__ */ new Date()), [n]), c = p(() => Ua(/* @__PURE__ */ new Date(`${e}T12:00:00`)), [e]), l = p(() => Array.from({ length: 7 }, (e, t) => {
7970
8081
  let n = new Date(c);
7971
- return n.setDate(n.getDate() + t), Va(n);
8082
+ return n.setDate(n.getDate() + t), Ha(n);
7972
8083
  }), [c]), u = (n) => {
7973
8084
  let r = /* @__PURE__ */ new Date(`${e}T12:00:00`);
7974
- r.setDate(r.getDate() + n * 7), t(Va(r));
8085
+ r.setDate(r.getDate() + n * 7), t(Ha(r));
7975
8086
  };
7976
8087
  return /* @__PURE__ */ y("div", {
7977
8088
  className: (0, X.default)("sf-date-week-strip", o),
7978
- style: Ua,
8089
+ style: Wa,
7979
8090
  children: [
7980
8091
  /* @__PURE__ */ v("button", {
7981
8092
  type: "button",
7982
- style: Wa,
8093
+ style: Ga,
7983
8094
  onClick: () => u(-1),
7984
8095
  "aria-label": "Semana anterior",
7985
- children: /* @__PURE__ */ v(Ga, { dir: "left" })
8096
+ children: /* @__PURE__ */ v(Ka, { dir: "left" })
7986
8097
  }),
7987
8098
  l.map((n) => {
7988
8099
  let o = /* @__PURE__ */ new Date(`${n.slice(0, 10)}T12:00:00`), c = r[o.getDay()], l = String(o.getDate()).padStart(2, "0"), u = o.getDate() === 1 ? i[o.getMonth()] : void 0, d = n === e;
@@ -8047,14 +8158,14 @@ var sr = (e) => {
8047
8158
  }),
8048
8159
  /* @__PURE__ */ v("button", {
8049
8160
  type: "button",
8050
- style: Wa,
8161
+ style: Ga,
8051
8162
  onClick: () => u(1),
8052
8163
  "aria-label": "Semana siguiente",
8053
- children: /* @__PURE__ */ v(Ga, { dir: "right" })
8164
+ children: /* @__PURE__ */ v(Ka, { dir: "right" })
8054
8165
  })
8055
8166
  ]
8056
8167
  });
8057
- }, qa = [
8168
+ }, Ja = [
8058
8169
  {
8059
8170
  value: 1,
8060
8171
  label: "L"
@@ -8083,7 +8194,7 @@ var sr = (e) => {
8083
8194
  value: 0,
8084
8195
  label: "D"
8085
8196
  }
8086
- ], Ja = {
8197
+ ], Ya = {
8087
8198
  display: "block",
8088
8199
  fontSize: 10,
8089
8200
  fontWeight: 800,
@@ -8091,10 +8202,10 @@ var sr = (e) => {
8091
8202
  textTransform: "uppercase",
8092
8203
  color: "var(--sf-text-subtle, #5C7180)",
8093
8204
  margin: "0 0 8px 2px"
8094
- }, Ya = ({ selected: e, onChange: t, label: n, days: r = qa, className: i }) => /* @__PURE__ */ y("div", {
8205
+ }, Xa = ({ selected: e, onChange: t, label: n, days: r = Ja, className: i }) => /* @__PURE__ */ y("div", {
8095
8206
  className: (0, X.default)("sf-weekday-toggle-strip", i),
8096
8207
  children: [n && /* @__PURE__ */ v("span", {
8097
- style: Ja,
8208
+ style: Ya,
8098
8209
  children: n
8099
8210
  }), /* @__PURE__ */ v("div", {
8100
8211
  style: {
@@ -8142,17 +8253,17 @@ var sr = (e) => {
8142
8253
  }, `${n.value}-${r}`);
8143
8254
  })
8144
8255
  })]
8145
- }), Xa = (e, t) => e.find((e) => e.items.some((e) => e.id === t)), Za = (e) => {
8256
+ }), Za = (e, t) => e.find((e) => e.items.some((e) => e.id === t)), Qa = (e) => {
8146
8257
  let t = e.trim().split(/\s+/).filter(Boolean);
8147
8258
  return t.length === 0 ? "US" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : `${t[0][0] ?? ""}${t[1][0] ?? ""}`.toUpperCase();
8148
- }, Qa = ({ categories: e, activeItemId: t, onChange: r, brand: i, topBar: a, children: o, submenuCollapsed: s = !1, onSubmenuCollapsedChange: c, submenuFooter: l, showSubmenuHeader: u = !1, showDefaultTopBar: d = !1, topBarContext: f, branchSelector: m, themeToggle: h, notifications: g, moduleLauncher: _, userMenu: b, helpAction: x, exitToModulesAction: S, className: C, contentClassName: w }) => {
8149
- let T = p(() => Xa(e, t) ?? e[0], [e, t]), E = T?.id, D = T?.items ?? [], O = D.find((e) => e.id === t), k = (e) => {
8259
+ }, $a = ({ categories: e, activeItemId: t, onChange: r, brand: i, topBar: a, children: o, submenuCollapsed: s = !1, onSubmenuCollapsedChange: c, submenuFooter: l, showSubmenuHeader: u = !1, showDefaultTopBar: d = !1, topBarContext: f, branchSelector: m, themeToggle: h, notifications: g, moduleLauncher: _, userMenu: b, helpAction: x, exitToModulesAction: S, className: C, contentClassName: w }) => {
8260
+ let T = p(() => Za(e, t) ?? e[0], [e, t]), E = T?.id, D = T?.items ?? [], O = D.find((e) => e.id === t), k = (e) => {
8150
8261
  c?.(e);
8151
8262
  }, A = {
8152
8263
  section: f?.section ?? T?.label,
8153
8264
  title: f?.title ?? O?.label,
8154
8265
  icon: f?.icon ?? T?.icon
8155
- }, j = !!m || !!h || !!g || !!x || !!_ || !!b, M = b ? b.initials ?? Za(b.fullName) : "", N = (e) => {
8266
+ }, j = !!m || !!h || !!g || !!x || !!_ || !!b, M = b ? b.initials ?? Qa(b.fullName) : "", N = (e) => {
8156
8267
  let t = e.items[0];
8157
8268
  t && (r(t.id), k(!1));
8158
8269
  }, P = /* @__PURE__ */ y("div", {
@@ -8195,7 +8306,7 @@ var sr = (e) => {
8195
8306
  onClick: h.onToggle,
8196
8307
  children: h.mode === "dark" ? /* @__PURE__ */ v(Ue, { "aria-hidden": "true" }) : /* @__PURE__ */ v(Ye, { "aria-hidden": "true" })
8197
8308
  }),
8198
- g && /* @__PURE__ */ v(hi, {
8309
+ g && /* @__PURE__ */ v(gi, {
8199
8310
  className: "sf-app-shell-default-topbar__notification",
8200
8311
  items: g.items,
8201
8312
  onItemClick: g.onItemClick
@@ -8207,7 +8318,7 @@ var sr = (e) => {
8207
8318
  onClick: x.onClick,
8208
8319
  children: x.icon ?? /* @__PURE__ */ v(Ze, { "aria-hidden": "true" })
8209
8320
  }),
8210
- _ && /* @__PURE__ */ v(ni, {
8321
+ _ && /* @__PURE__ */ v(ri, {
8211
8322
  align: "end",
8212
8323
  widthClassName: "w-[27rem] max-w-[calc(100vw-1.5rem)]",
8213
8324
  trigger: /* @__PURE__ */ v("span", {
@@ -8251,12 +8362,12 @@ var sr = (e) => {
8251
8362
  })]
8252
8363
  })
8253
8364
  }),
8254
- b && /* @__PURE__ */ v(ni, {
8365
+ b && /* @__PURE__ */ v(ri, {
8255
8366
  align: "end",
8256
8367
  widthClassName: "w-72",
8257
8368
  trigger: /* @__PURE__ */ y("span", {
8258
8369
  className: "sf-app-shell-default-topbar__icon-btn sf-app-shell-default-topbar__profile-btn",
8259
- children: [/* @__PURE__ */ v(pa, {
8370
+ children: [/* @__PURE__ */ v(ma, {
8260
8371
  alt: b.fullName,
8261
8372
  fallback: M,
8262
8373
  size: "sm"
@@ -8434,7 +8545,7 @@ var sr = (e) => {
8434
8545
  })]
8435
8546
  })]
8436
8547
  });
8437
- }, $a = Qa, eo = /* @__PURE__ */ new Set([
8548
+ }, eo = $a, to = /* @__PURE__ */ new Set([
8438
8549
  "script",
8439
8550
  "iframe",
8440
8551
  "object",
@@ -8442,19 +8553,19 @@ var sr = (e) => {
8442
8553
  "link",
8443
8554
  "meta",
8444
8555
  "style"
8445
- ]), to = /* @__PURE__ */ new Set([
8556
+ ]), no = /* @__PURE__ */ new Set([
8446
8557
  "href",
8447
8558
  "src",
8448
8559
  "xlink:href",
8449
8560
  "formaction"
8450
- ]), no = (e) => /^\s*javascript:/i.test(e), ro = (e) => e.replace(/<\s*script[^>]*>[\s\S]*?<\s*\/\s*script\s*>/gi, "").replace(/\son\w+\s*=\s*(".*?"|'.*?'|[^\s>]+)/gi, "").replace(/\s(href|src|xlink:href|formaction)\s*=\s*("javascript:[^"]*"|'javascript:[^']*'|javascript:[^\s>]+)/gi, ""), io = (e) => {
8561
+ ]), ro = (e) => /^\s*javascript:/i.test(e), io = (e) => e.replace(/<\s*script[^>]*>[\s\S]*?<\s*\/\s*script\s*>/gi, "").replace(/\son\w+\s*=\s*(".*?"|'.*?'|[^\s>]+)/gi, "").replace(/\s(href|src|xlink:href|formaction)\s*=\s*("javascript:[^"]*"|'javascript:[^']*'|javascript:[^\s>]+)/gi, ""), ao = (e) => {
8451
8562
  let t = String(e ?? "");
8452
8563
  if (!t) return "";
8453
- if (typeof window > "u" || typeof DOMParser > "u") return ro(t);
8564
+ if (typeof window > "u" || typeof DOMParser > "u") return io(t);
8454
8565
  let n = new DOMParser().parseFromString(t, "text/html"), r = Array.from(n.body.querySelectorAll("*"));
8455
8566
  for (let e of r) {
8456
8567
  let t = e.tagName.toLowerCase();
8457
- if (eo.has(t)) {
8568
+ if (to.has(t)) {
8458
8569
  e.remove();
8459
8570
  continue;
8460
8571
  }
@@ -8464,11 +8575,11 @@ var sr = (e) => {
8464
8575
  e.removeAttribute(t.name);
8465
8576
  continue;
8466
8577
  }
8467
- to.has(n) && no(r) && e.removeAttribute(t.name);
8578
+ no.has(n) && ro(r) && e.removeAttribute(t.name);
8468
8579
  }
8469
8580
  }
8470
8581
  return n.body.innerHTML;
8471
- }, ao = [
8582
+ }, oo = [
8472
8583
  {
8473
8584
  cmd: "bold",
8474
8585
  label: "B",
@@ -8504,17 +8615,17 @@ var sr = (e) => {
8504
8615
  label: "↪",
8505
8616
  title: "Rehacer"
8506
8617
  }
8507
- ], oo = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, height: c = 180, className: l, onChange: d, onRefresh: f }) => {
8618
+ ], so = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, height: c = 180, className: l, onChange: d, onRefresh: f }) => {
8508
8619
  let h = m(null), g = b({
8509
8620
  name: t,
8510
8621
  control: e.control
8511
8622
  }), _ = String(t), x = g.fieldState.error, S = a || o;
8512
8623
  u(() => {
8513
- let e = io(g.field.value);
8624
+ let e = ao(g.field.value);
8514
8625
  h.current && h.current.innerHTML !== e && (h.current.innerHTML = e);
8515
8626
  }, []);
8516
8627
  let C = s(() => {
8517
- let e = h.current?.innerHTML ?? "", t = io(e);
8628
+ let e = h.current?.innerHTML ?? "", t = ao(e);
8518
8629
  h.current && t !== e && (h.current.innerHTML = t), g.field.onChange(t), d?.(t);
8519
8630
  }, [g.field, d]), w = s((e) => {
8520
8631
  document.execCommand(e, !1), h.current?.focus(), C();
@@ -8522,7 +8633,7 @@ var sr = (e) => {
8522
8633
  e.preventDefault();
8523
8634
  let t = e.clipboardData.getData("text/plain");
8524
8635
  document.execCommand("insertText", !1, t), C();
8525
- }, [C]), E = p(() => ao.map(({ cmd: e, label: t, title: n }) => /* @__PURE__ */ v("button", {
8636
+ }, [C]), E = p(() => oo.map(({ cmd: e, label: t, title: n }) => /* @__PURE__ */ v("button", {
8526
8637
  type: "button",
8527
8638
  title: n,
8528
8639
  "aria-label": n,
@@ -8561,7 +8672,7 @@ var sr = (e) => {
8561
8672
  })]
8562
8673
  })
8563
8674
  });
8564
- }, so = () => () => void 0, co = () => g(so, () => !0, () => !1), lo = ({ small: e, error: t, className: n }) => (0, X.default)("sf-input", "sf-input--textarea", "sf-input--code", e && "sf-input--sm", t && "sf-input--error", n), uo = (e) => {
8675
+ }, co = () => () => void 0, lo = () => g(co, () => !0, () => !1), uo = ({ small: e, error: t, className: n }) => (0, X.default)("sf-input", "sf-input--textarea", "sf-input--code", e && "sf-input--sm", t && "sf-input--error", n), fo = (e) => {
8565
8676
  switch (e) {
8566
8677
  case "javascript": return [ee()];
8567
8678
  case "json": return [R()];
@@ -8569,14 +8680,14 @@ var sr = (e) => {
8569
8680
  case "sql": return [te()];
8570
8681
  default: return [];
8571
8682
  }
8572
- }, fo = {
8683
+ }, po = {
8573
8684
  javascript: "JavaScript",
8574
8685
  json: "JSON",
8575
8686
  html: "HTML",
8576
8687
  sql: "SQL",
8577
8688
  text: "Texto"
8578
- }, po = ({ form: e, name: t, label: n, info: r, required: i, language: a = "javascript", highlighted: o = !0, readOnly: c, disabled: l, rows: u = 8, small: d, className: f, onChange: p, onRefresh: m }) => {
8579
- let h = co(), g = b({
8689
+ }, mo = ({ form: e, name: t, label: n, info: r, required: i, language: a = "javascript", highlighted: o = !0, readOnly: c, disabled: l, rows: u = 8, small: d, className: f, onChange: p, onRefresh: m }) => {
8690
+ let h = lo(), g = b({
8580
8691
  name: t,
8581
8692
  control: e.control
8582
8693
  }), _ = String(t), x = g.fieldState.error, S = String(g.field.value ?? ""), C = c || l, w = `${u * (d ? 1.25 : 1.5)}rem`, T = s((e) => {
@@ -8594,12 +8705,12 @@ var sr = (e) => {
8594
8705
  "aria-invalid": !!x || void 0,
8595
8706
  children: [/* @__PURE__ */ v("div", {
8596
8707
  className: "sf-code-editor__header",
8597
- children: fo[a]
8708
+ children: po[a]
8598
8709
  }), h && o && a !== "text" ? /* @__PURE__ */ v(I, {
8599
8710
  id: _,
8600
8711
  value: S,
8601
8712
  height: w,
8602
- extensions: uo(a),
8713
+ extensions: fo(a),
8603
8714
  editable: !C,
8604
8715
  readOnly: C,
8605
8716
  "aria-label": n ?? String(t),
@@ -8622,7 +8733,7 @@ var sr = (e) => {
8622
8733
  "aria-invalid": !!x || void 0,
8623
8734
  onBlur: () => g.field.onBlur(),
8624
8735
  onChange: (e) => T(e.target.value),
8625
- className: lo({
8736
+ className: uo({
8626
8737
  small: d,
8627
8738
  error: !!x,
8628
8739
  readOnly: c,
@@ -8632,7 +8743,7 @@ var sr = (e) => {
8632
8743
  })]
8633
8744
  })
8634
8745
  });
8635
- }, mo = ({ target: e, zoom: t = 16 }) => {
8746
+ }, ho = ({ target: e, zoom: t = 16 }) => {
8636
8747
  let n = re();
8637
8748
  return u(() => {
8638
8749
  e && n.setView([e.lat, e.lng], t, { animate: !0 });
@@ -8641,7 +8752,7 @@ var sr = (e) => {
8641
8752
  t,
8642
8753
  n
8643
8754
  ]), null;
8644
- }, ho = 3, go = async (e, t = 5) => {
8755
+ }, go = 3, _o = async (e, t = 5) => {
8645
8756
  let n = e.trim();
8646
8757
  if (n.length < 3) return [];
8647
8758
  let r = await fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(n)}&limit=${t}&addressdetails=0`, { headers: { "Accept-Language": "es" } });
@@ -8650,7 +8761,7 @@ var sr = (e) => {
8650
8761
  lng: Number.parseFloat(e.lon),
8651
8762
  label: e.display_name
8652
8763
  })).filter((e) => Number.isFinite(e.lat) && Number.isFinite(e.lng)) : [];
8653
- }, _o = (e, t = 3) => e.split(",").slice(0, t).join(", ").trim(), vo = ({ onSelect: e, placeholder: t = "Buscar direccion...", className: n, disabled: r }) => {
8764
+ }, vo = (e, t = 3) => e.split(",").slice(0, t).join(", ").trim(), yo = ({ onSelect: e, placeholder: t = "Buscar direccion...", className: n, disabled: r }) => {
8654
8765
  let [i, a] = h(""), [o, c] = h(!1), [l, f] = h([]), [p, g] = h(!1), _ = m(null), b = d(), x = `${b}-results`, S = s(async (e) => {
8655
8766
  let t = e.trim();
8656
8767
  if (!t) {
@@ -8659,7 +8770,7 @@ var sr = (e) => {
8659
8770
  }
8660
8771
  c(!0);
8661
8772
  try {
8662
- let e = await go(t);
8773
+ let e = await _o(t);
8663
8774
  f(e), g(e.length > 0);
8664
8775
  } catch {
8665
8776
  f([]), g(!1);
@@ -8673,7 +8784,7 @@ var sr = (e) => {
8673
8784
  let C = (e) => {
8674
8785
  a(e), _.current && clearTimeout(_.current), _.current = setTimeout(() => S(e), 500);
8675
8786
  }, w = (t) => {
8676
- e(t), a(_o(t.label, 2)), f([]), g(!1);
8787
+ e(t), a(vo(t.label, 2)), f([]), g(!1);
8677
8788
  };
8678
8789
  return /* @__PURE__ */ y("div", {
8679
8790
  className: (0, X.default)("w-[220px]", n),
@@ -8722,37 +8833,37 @@ var sr = (e) => {
8722
8833
  "aria-selected": !1,
8723
8834
  className: "sf-geocoder-result",
8724
8835
  onMouseDown: () => w(e),
8725
- children: _o(e.label)
8836
+ children: vo(e.label)
8726
8837
  })
8727
8838
  }, `${e.lat}-${e.lng}-${e.label}`))
8728
8839
  })]
8729
8840
  });
8730
- }, yo = ae.divIcon({
8841
+ }, bo = ae.divIcon({
8731
8842
  className: "",
8732
8843
  html: "<div class=\"sf-map-picker-marker\"></div>",
8733
8844
  iconSize: [14, 14],
8734
8845
  iconAnchor: [7, 7]
8735
- }), bo = {
8846
+ }), xo = {
8736
8847
  lat: "-12.0464",
8737
8848
  lng: "-77.0428"
8738
- }, xo = (e, t) => {
8849
+ }, So = (e, t) => {
8739
8850
  let n = Number.parseFloat(e.trim().replace(",", "."));
8740
8851
  return Number.isFinite(n) ? n : t;
8741
- }, So = (e) => e.toFixed(6), Co = {
8852
+ }, Co = (e) => e.toFixed(6), wo = {
8742
8853
  enableHighAccuracy: !0,
8743
8854
  maximumAge: 0,
8744
8855
  timeout: 15e3
8745
- }, wo = (e) => e >= 1e3 ? `Ubicación aproximada (~${(e / 1e3).toFixed(1)} km). Ajusta el marcador en el mapa si no coincide.` : e >= 200 ? `Precisión moderada (~${Math.round(e)} m). Verifica en el mapa.` : null, To = (e) => {
8856
+ }, To = (e) => e >= 1e3 ? `Ubicación aproximada (~${(e / 1e3).toFixed(1)} km). Ajusta el marcador en el mapa si no coincide.` : e >= 200 ? `Precisión moderada (~${Math.round(e)} m). Verifica en el mapa.` : null, Eo = (e) => {
8746
8857
  switch (e) {
8747
8858
  case GeolocationPositionError.PERMISSION_DENIED: return "Permiso de ubicación denegado.";
8748
8859
  case GeolocationPositionError.POSITION_UNAVAILABLE: return "Ubicación no disponible en este dispositivo.";
8749
8860
  case GeolocationPositionError.TIMEOUT: return "Tiempo agotado. Intenta de nuevo o marca el punto en el mapa.";
8750
8861
  default: return "No se pudo obtener la ubicación.";
8751
8862
  }
8752
- }, Eo = (e) => e && typeof e == "object" && "lat" in e && "lng" in e ? {
8753
- lat: String(e.lat ?? bo.lat),
8754
- lng: String(e.lng ?? bo.lng)
8755
- } : { ...bo }, Do = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Oo = ({ lat: e, lng: t }) => {
8863
+ }, Do = (e) => e && typeof e == "object" && "lat" in e && "lng" in e ? {
8864
+ lat: String(e.lat ?? xo.lat),
8865
+ lng: String(e.lng ?? xo.lng)
8866
+ } : { ...xo }, Oo = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", ko = ({ lat: e, lng: t }) => {
8756
8867
  let n = re();
8757
8868
  return u(() => {
8758
8869
  n.setView([e, t], n.getZoom(), { animate: !0 });
@@ -8761,19 +8872,19 @@ var sr = (e) => {
8761
8872
  t,
8762
8873
  n
8763
8874
  ]), null;
8764
- }, ko = ({ readOnly: e, onPick: t }) => (ie({ click(n) {
8765
- e || t(So(n.latlng.lat), So(n.latlng.lng));
8766
- } }), null), Ao = ({ lat: e, lng: t, zoom: n = 13, readOnly: r, showGeocoder: i = !0, onPick: a }) => {
8875
+ }, Ao = ({ readOnly: e, onPick: t }) => (ie({ click(n) {
8876
+ e || t(Co(n.latlng.lat), Co(n.latlng.lng));
8877
+ } }), null), jo = ({ lat: e, lng: t, zoom: n = 13, readOnly: r, showGeocoder: i = !0, onPick: a }) => {
8767
8878
  let o = [e, t], [s, c] = h(null);
8768
8879
  return /* @__PURE__ */ y("div", {
8769
8880
  className: "relative h-40 w-full",
8770
- children: [!r && i && /* @__PURE__ */ v(vo, {
8881
+ children: [!r && i && /* @__PURE__ */ v(yo, {
8771
8882
  className: "absolute left-2 top-2 z-[1000]",
8772
8883
  onSelect: (e) => {
8773
8884
  c({
8774
8885
  lat: e.lat,
8775
8886
  lng: e.lng
8776
- }), a(So(e.lat), So(e.lng));
8887
+ }), a(Co(e.lat), Co(e.lng));
8777
8888
  }
8778
8889
  }), /* @__PURE__ */ y(z, {
8779
8890
  center: o,
@@ -8782,38 +8893,38 @@ var sr = (e) => {
8782
8893
  className: "sf-map-frame",
8783
8894
  children: [
8784
8895
  /* @__PURE__ */ v(H, {
8785
- attribution: Do,
8896
+ attribution: Oo,
8786
8897
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
8787
8898
  }),
8788
- /* @__PURE__ */ v(mo, { target: s }),
8789
- /* @__PURE__ */ v(Oo, {
8899
+ /* @__PURE__ */ v(ho, { target: s }),
8900
+ /* @__PURE__ */ v(ko, {
8790
8901
  lat: e,
8791
8902
  lng: t
8792
8903
  }),
8793
- /* @__PURE__ */ v(ko, {
8904
+ /* @__PURE__ */ v(Ao, {
8794
8905
  readOnly: r,
8795
8906
  onPick: a
8796
8907
  }),
8797
8908
  /* @__PURE__ */ v(ne, {
8798
8909
  position: o,
8799
- icon: yo,
8910
+ icon: bo,
8800
8911
  draggable: !r,
8801
8912
  eventHandlers: { dragend: (e) => {
8802
8913
  let t = e.target.getLatLng();
8803
- a(So(t.lat), So(t.lng));
8914
+ a(Co(t.lat), Co(t.lng));
8804
8915
  } }
8805
8916
  })
8806
8917
  ]
8807
8918
  })]
8808
8919
  });
8809
- }, jo = {
8810
- lat: xo(bo.lat, -12.0464),
8811
- lng: xo(bo.lng, -77.0428)
8812
- }, Mo = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: c, showGeocoder: l = !0, className: u, onChange: d, onRefresh: f }) => {
8813
- let m = co(), [g, _] = h(!1), [x, S] = h(null), C = b({
8920
+ }, Mo = {
8921
+ lat: So(xo.lat, -12.0464),
8922
+ lng: So(xo.lng, -77.0428)
8923
+ }, No = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: c, showGeocoder: l = !0, className: u, onChange: d, onRefresh: f }) => {
8924
+ let m = lo(), [g, _] = h(!1), [x, S] = h(null), C = b({
8814
8925
  name: t,
8815
8926
  control: e.control
8816
- }), w = String(t), T = C.fieldState.error, E = !!T, D = o || c, O = C.field.onBlur, k = p(() => Eo(C.field.value), [C.field.value]), A = p(() => xo(k.lat, jo.lat), [k.lat]), j = p(() => xo(k.lng, jo.lng), [k.lng]), M = s((e) => {
8927
+ }), w = String(t), T = C.fieldState.error, E = !!T, D = o || c, O = C.field.onBlur, k = p(() => Do(C.field.value), [C.field.value]), A = p(() => So(k.lat, Mo.lat), [k.lat]), j = p(() => So(k.lng, Mo.lng), [k.lng]), M = s((e) => {
8817
8928
  let t = {
8818
8929
  ...k,
8819
8930
  ...e
@@ -8831,10 +8942,10 @@ var sr = (e) => {
8831
8942
  }, [O, M]), P = s(() => {
8832
8943
  !navigator.geolocation || g || (_(!0), S(null), navigator.geolocation.getCurrentPosition((e) => {
8833
8944
  M({
8834
- lat: So(e.coords.latitude),
8835
- lng: So(e.coords.longitude)
8945
+ lat: Co(e.coords.latitude),
8946
+ lng: Co(e.coords.longitude)
8836
8947
  });
8837
- let t = wo(e.coords.accuracy);
8948
+ let t = To(e.coords.accuracy);
8838
8949
  S(t ? {
8839
8950
  tone: "warning",
8840
8951
  message: t
@@ -8842,9 +8953,9 @@ var sr = (e) => {
8842
8953
  }, (e) => {
8843
8954
  S({
8844
8955
  tone: "error",
8845
- message: To(e.code)
8956
+ message: Eo(e.code)
8846
8957
  }), _(!1);
8847
- }, Co));
8958
+ }, wo));
8848
8959
  }, [g, M]);
8849
8960
  return /* @__PURE__ */ v(Z, {
8850
8961
  id: w,
@@ -8913,7 +9024,7 @@ var sr = (e) => {
8913
9024
  role: "status",
8914
9025
  children: x.message
8915
9026
  }),
8916
- m ? /* @__PURE__ */ v(Ao, {
9027
+ m ? /* @__PURE__ */ v(jo, {
8917
9028
  lat: A,
8918
9029
  lng: j,
8919
9030
  zoom: a,
@@ -8932,17 +9043,17 @@ var sr = (e) => {
8932
9043
  ]
8933
9044
  })
8934
9045
  });
8935
- }, No = {
9046
+ }, Po = {
8936
9047
  emerald: "sf-kpi-card--accent-emerald",
8937
9048
  blue: "sf-kpi-card--accent-blue",
8938
9049
  amber: "sf-kpi-card--accent-amber",
8939
9050
  red: "sf-kpi-card--accent-red",
8940
9051
  teal: "sf-kpi-card--accent-teal",
8941
9052
  slate: "sf-kpi-card--accent-slate"
8942
- }, Po = (e) => `${e > 0 ? "+" : ""}${e}%`, Fo = ({ label: e, value: t, sublabel: n, icon: r, iconClassName: i, trend: a, trendLabel: o, accentTone: s, className: c, onClick: l }) => {
9053
+ }, Fo = (e) => `${e > 0 ? "+" : ""}${e}%`, Io = ({ label: e, value: t, sublabel: n, icon: r, iconClassName: i, trend: a, trendLabel: o, accentTone: s, className: c, onClick: l }) => {
8943
9054
  let u = a != null, d = u && a >= 0;
8944
9055
  return /* @__PURE__ */ y("div", {
8945
- className: (0, X.default)("sf-card p-4", s && "sf-kpi-card", s && No[s], l && "sf-card--interactive", c),
9056
+ className: (0, X.default)("sf-card p-4", s && "sf-kpi-card", s && Po[s], l && "sf-card--interactive", c),
8946
9057
  onClick: l,
8947
9058
  onKeyDown: (e) => {
8948
9059
  l && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l());
@@ -8967,7 +9078,7 @@ var sr = (e) => {
8967
9078
  children: [/* @__PURE__ */ v("span", {
8968
9079
  "aria-hidden": "true",
8969
9080
  children: d ? "↑" : "↓"
8970
- }), Po(a)]
9081
+ }), Fo(a)]
8971
9082
  })]
8972
9083
  }),
8973
9084
  /* @__PURE__ */ v("p", {
@@ -8986,21 +9097,21 @@ var sr = (e) => {
8986
9097
  })
8987
9098
  ]
8988
9099
  });
8989
- }, Io = {
9100
+ }, Lo = {
8990
9101
  2: "grid-cols-1 sm:grid-cols-2",
8991
9102
  3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
8992
9103
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
8993
9104
  5: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-5"
8994
- }, Lo = ({ children: e, cols: t = 4, className: n }) => /* @__PURE__ */ v("div", {
8995
- className: (0, X.default)("grid gap-4", Io[t], n),
9105
+ }, Ro = ({ children: e, cols: t = 4, className: n }) => /* @__PURE__ */ v("div", {
9106
+ className: (0, X.default)("grid gap-4", Lo[t], n),
8996
9107
  children: e
8997
- }), Ro = {
9108
+ }), zo = {
8998
9109
  slate: "sf-metric-row__fill--slate",
8999
9110
  emerald: "sf-metric-row__fill--emerald",
9000
9111
  amber: "sf-metric-row__fill--amber",
9001
9112
  red: "sf-metric-row__fill--red",
9002
9113
  blue: "sf-metric-row__fill--blue"
9003
- }, zo = ({ item: e, small: t = !1 }) => {
9114
+ }, Bo = ({ item: e, small: t = !1 }) => {
9004
9115
  let n = Math.max(0, Math.min(100, e.value)), r = e.tone ?? "slate";
9005
9116
  return /* @__PURE__ */ y("div", {
9006
9117
  className: "w-full",
@@ -9016,7 +9127,7 @@ var sr = (e) => {
9016
9127
  }), /* @__PURE__ */ v("div", {
9017
9128
  className: (0, X.default)("sf-metric-row__track", t && "sf-metric-row__track--sm"),
9018
9129
  children: /* @__PURE__ */ v("div", {
9019
- className: (0, X.default)("sf-metric-row__fill", Ro[r]),
9130
+ className: (0, X.default)("sf-metric-row__fill", zo[r]),
9020
9131
  style: {
9021
9132
  width: `${n}%`,
9022
9133
  height: t ? 2 : 4,
@@ -9025,23 +9136,23 @@ var sr = (e) => {
9025
9136
  })
9026
9137
  })]
9027
9138
  });
9028
- }, Bo = ({ metrics: e, small: t = !1, className: n }) => /* @__PURE__ */ v("div", {
9139
+ }, Vo = ({ metrics: e, small: t = !1, className: n }) => /* @__PURE__ */ v("div", {
9029
9140
  className: (0, X.default)("flex w-full flex-col gap-1.5", n),
9030
- children: e.map((e, n) => /* @__PURE__ */ v(zo, {
9141
+ children: e.map((e, n) => /* @__PURE__ */ v(Bo, {
9031
9142
  item: e,
9032
9143
  small: t
9033
9144
  }, `${e.label}-${n}`))
9034
- }), Vo = {
9145
+ }), Ho = {
9035
9146
  default: "sf-entity-card--default",
9036
9147
  featured: "sf-entity-card--featured",
9037
9148
  warning: "sf-entity-card--warning"
9038
- }, Ho = {
9149
+ }, Uo = {
9039
9150
  default: null,
9040
9151
  featured: "★",
9041
9152
  warning: "!"
9042
- }, Uo = (e) => e.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase(), Wo = (e) => e >= 90 ? "sf-entity-score--high" : e >= 70 ? "sf-entity-score--mid" : "sf-entity-score--low", Go = (e) => (t) => {
9153
+ }, Wo = (e) => e.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase(), Go = (e) => e >= 90 ? "sf-entity-score--high" : e >= 70 ? "sf-entity-score--mid" : "sf-entity-score--low", Ko = (e) => (t) => {
9043
9154
  e && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
9044
- }, Ko = ({ photo: e, photoIcon: t, name: n }) => /* @__PURE__ */ v("div", {
9155
+ }, qo = ({ photo: e, photoIcon: t, name: n }) => /* @__PURE__ */ v("div", {
9045
9156
  className: "sf-entity-photo",
9046
9157
  children: e ? /* @__PURE__ */ v("img", {
9047
9158
  src: e,
@@ -9051,18 +9162,18 @@ var sr = (e) => {
9051
9162
  }) : /* @__PURE__ */ v("span", {
9052
9163
  className: "sf-entity-photo__initials",
9053
9164
  "aria-hidden": "true",
9054
- children: t ?? Uo(n)
9165
+ children: t ?? Wo(n)
9055
9166
  })
9056
- }), qo = ({ name: e, subtitle: t, sublabel: n, photo: r, photoIcon: i, status: a = "default", metrics: o = [], actionLabel: s, onAction: c, onClick: l, className: u }) => {
9057
- let d = Ho[a];
9167
+ }), Jo = ({ name: e, subtitle: t, sublabel: n, photo: r, photoIcon: i, status: a = "default", metrics: o = [], actionLabel: s, onAction: c, onClick: l, className: u }) => {
9168
+ let d = Uo[a];
9058
9169
  return /* @__PURE__ */ y("div", {
9059
- className: (0, X.default)("sf-entity-card sf-entity-card--full", Vo[a], l && "sf-entity-card--interactive", u),
9170
+ className: (0, X.default)("sf-entity-card sf-entity-card--full", Ho[a], l && "sf-entity-card--interactive", u),
9060
9171
  onClick: l,
9061
- onKeyDown: Go(l),
9172
+ onKeyDown: Ko(l),
9062
9173
  role: l ? "button" : void 0,
9063
9174
  tabIndex: l ? 0 : void 0,
9064
9175
  children: [
9065
- /* @__PURE__ */ v(Ko, {
9176
+ /* @__PURE__ */ v(qo, {
9066
9177
  photo: r,
9067
9178
  photoIcon: i,
9068
9179
  name: e
@@ -9089,7 +9200,7 @@ var sr = (e) => {
9089
9200
  children: n
9090
9201
  })
9091
9202
  ] }),
9092
- o.length > 0 && /* @__PURE__ */ v(Bo, { metrics: o }),
9203
+ o.length > 0 && /* @__PURE__ */ v(Vo, { metrics: o }),
9093
9204
  s && /* @__PURE__ */ v($, {
9094
9205
  type: "button",
9095
9206
  variant: "outline",
@@ -9104,12 +9215,12 @@ var sr = (e) => {
9104
9215
  })
9105
9216
  ]
9106
9217
  });
9107
- }, Jo = ({ name: e, subtitle: t, sublabel: n, photo: r, photoIcon: i, score: a, status: o = "default", metrics: s = [], onClick: c, className: l }) => {
9108
- let u = Ho[o];
9218
+ }, Yo = ({ name: e, subtitle: t, sublabel: n, photo: r, photoIcon: i, score: a, status: o = "default", metrics: s = [], onClick: c, className: l }) => {
9219
+ let u = Uo[o];
9109
9220
  return /* @__PURE__ */ y("div", {
9110
9221
  className: (0, X.default)("sf-entity-card sf-entity-card--compact", c && "sf-entity-card--interactive", l),
9111
9222
  onClick: c,
9112
- onKeyDown: Go(c),
9223
+ onKeyDown: Ko(c),
9113
9224
  role: c ? "button" : void 0,
9114
9225
  tabIndex: c ? 0 : void 0,
9115
9226
  children: [
@@ -9121,7 +9232,7 @@ var sr = (e) => {
9121
9232
  className: "h-full w-full object-cover"
9122
9233
  }) : /* @__PURE__ */ v("span", {
9123
9234
  className: "sf-entity-photo__initials sf-entity-photo__initials--sm",
9124
- children: i ?? Uo(e)
9235
+ children: i ?? Wo(e)
9125
9236
  }), u && /* @__PURE__ */ v("span", {
9126
9237
  className: "sf-entity-badge sf-entity-badge--inline",
9127
9238
  children: u
@@ -9144,7 +9255,7 @@ var sr = (e) => {
9144
9255
  }),
9145
9256
  s.length > 0 && /* @__PURE__ */ v("div", {
9146
9257
  className: "mt-1 flex flex-col gap-0.5",
9147
- children: s.map((e, t) => /* @__PURE__ */ v(zo, {
9258
+ children: s.map((e, t) => /* @__PURE__ */ v(Bo, {
9148
9259
  item: e,
9149
9260
  small: !0
9150
9261
  }, `${e.label}-${t}`))
@@ -9152,15 +9263,15 @@ var sr = (e) => {
9152
9263
  ]
9153
9264
  }),
9154
9265
  a !== void 0 && /* @__PURE__ */ v("div", {
9155
- className: (0, X.default)("sf-entity-score", Wo(a)),
9266
+ className: (0, X.default)("sf-entity-score", Go(a)),
9156
9267
  children: a
9157
9268
  })
9158
9269
  ]
9159
9270
  });
9160
- }, Yo = ({ name: e, subtitle: t, sublabel: n, groupIcon: r = "👥", groupIconClassName: i, metrics: a = [], actionLabel: o, onAction: s, onClick: c, className: l }) => /* @__PURE__ */ y("div", {
9271
+ }, Xo = ({ name: e, subtitle: t, sublabel: n, groupIcon: r = "👥", groupIconClassName: i, metrics: a = [], actionLabel: o, onAction: s, onClick: c, className: l }) => /* @__PURE__ */ y("div", {
9161
9272
  className: (0, X.default)("sf-entity-card sf-entity-card--group", c && "sf-entity-card--interactive", l),
9162
9273
  onClick: c,
9163
- onKeyDown: Go(c),
9274
+ onKeyDown: Ko(c),
9164
9275
  role: c ? "button" : void 0,
9165
9276
  tabIndex: c ? 0 : void 0,
9166
9277
  children: [/* @__PURE__ */ v("div", {
@@ -9181,7 +9292,7 @@ var sr = (e) => {
9181
9292
  className: "mt-0.5 font-mono text-[11px] sf-card-subtitle",
9182
9293
  children: n
9183
9294
  }),
9184
- a.length > 0 && /* @__PURE__ */ v(Bo, {
9295
+ a.length > 0 && /* @__PURE__ */ v(Vo, {
9185
9296
  metrics: a,
9186
9297
  small: !0,
9187
9298
  className: "mt-2"
@@ -9196,30 +9307,30 @@ var sr = (e) => {
9196
9307
  })
9197
9308
  ]
9198
9309
  })]
9199
- }), Xo = (e) => e.compact ? /* @__PURE__ */ v(Jo, { ...e }) : e.variant === "group" ? /* @__PURE__ */ v(Yo, { ...e }) : /* @__PURE__ */ v(qo, { ...e }), Zo = {
9310
+ }), Zo = (e) => e.compact ? /* @__PURE__ */ v(Yo, { ...e }) : e.variant === "group" ? /* @__PURE__ */ v(Xo, { ...e }) : /* @__PURE__ */ v(Jo, { ...e }), Qo = {
9200
9311
  2: "grid-cols-1 sm:grid-cols-2",
9201
9312
  3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
9202
9313
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
9203
9314
  5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5"
9204
- }, Qo = ({ children: e, cols: t = 3, className: n }) => /* @__PURE__ */ v("div", {
9205
- className: (0, X.default)("grid gap-3", Zo[t], n),
9315
+ }, $o = ({ children: e, cols: t = 3, className: n }) => /* @__PURE__ */ v("div", {
9316
+ className: (0, X.default)("grid gap-3", Qo[t], n),
9206
9317
  children: e
9207
- }), $o = {
9318
+ }), es = {
9208
9319
  alta: "danger",
9209
9320
  media: "warning",
9210
9321
  baja: "success"
9211
- }, es = {
9322
+ }, ts = {
9212
9323
  alto: "Impacto alto",
9213
9324
  medio: "Impacto medio",
9214
9325
  bajo: "Impacto bajo"
9215
- }, ts = ({ title: e, description: t, tags: n = [], priority: r = "media", impact: i = "medio", confidence: a, actionLabel: o, onAction: s, className: c }) => /* @__PURE__ */ y("div", {
9326
+ }, ns = ({ title: e, description: t, tags: n = [], priority: r = "media", impact: i = "medio", confidence: a, actionLabel: o, onAction: s, className: c }) => /* @__PURE__ */ y("div", {
9216
9327
  className: (0, X.default)("sf-card flex items-start gap-3 p-3", c),
9217
9328
  children: [
9218
9329
  /* @__PURE__ */ v("div", {
9219
9330
  className: "mt-0.5 shrink-0",
9220
- children: /* @__PURE__ */ v(_a, {
9331
+ children: /* @__PURE__ */ v(va, {
9221
9332
  label: r,
9222
- variant: $o[r],
9333
+ variant: es[r],
9223
9334
  size: "md"
9224
9335
  })
9225
9336
  }),
@@ -9265,7 +9376,7 @@ var sr = (e) => {
9265
9376
  }),
9266
9377
  /* @__PURE__ */ v("span", {
9267
9378
  className: "text-[11px] font-medium sf-card-muted",
9268
- children: es[i]
9379
+ children: ts[i]
9269
9380
  }),
9270
9381
  o && /* @__PURE__ */ y("button", {
9271
9382
  type: "button",
@@ -9276,7 +9387,7 @@ var sr = (e) => {
9276
9387
  ]
9277
9388
  })
9278
9389
  ]
9279
- }), ns = (e) => e.trim().charAt(0).toUpperCase(), rs = ({ active: e }) => /* @__PURE__ */ v("svg", {
9390
+ }), rs = (e) => e.trim().charAt(0).toUpperCase(), is = ({ active: e }) => /* @__PURE__ */ v("svg", {
9280
9391
  className: (0, X.default)("sf-module-card__favorite-icon", e ? "sf-module-card__favorite-icon--active" : "sf-module-card__favorite-icon--idle"),
9281
9392
  width: 16,
9282
9393
  height: 16,
@@ -9285,7 +9396,7 @@ var sr = (e) => {
9285
9396
  strokeLinejoin: "round",
9286
9397
  "aria-hidden": "true",
9287
9398
  children: /* @__PURE__ */ v("path", { d: "M12 3l2.6 5.3 5.9.85-4.25 4.15 1 5.8L12 18.6 6.75 19.05l1-5.8L3.5 9.15l5.9-.85z" })
9288
- }), is = ({ title: e, subtitle: t, icon: n, logoUrl: r, iconAccent: i, badge: a, isNew: o, favorite: s = !1, onFavoriteToggle: c, onClick: l, variant: u = "tile", density: d = "comfortable", enterAnimation: f = !1, enterAnimationOnce: p = !1, enterDelay: m, className: g, "aria-label": _ }) => {
9399
+ }), as = ({ title: e, subtitle: t, icon: n, logoUrl: r, iconAccent: i, badge: a, isNew: o, favorite: s = !1, onFavoriteToggle: c, onClick: l, variant: u = "tile", density: d = "comfortable", enterAnimation: f = !1, enterAnimationOnce: p = !1, enterDelay: m, className: g, "aria-label": _ }) => {
9289
9400
  let [b, x] = h(!1), S = f && (!p || !b), C = {
9290
9401
  ...i ? { "--sf-module-accent": i } : {},
9291
9402
  ...S && m != null ? { animationDelay: `${m}s` } : {}
@@ -9313,7 +9424,7 @@ var sr = (e) => {
9313
9424
  onClick: (e) => {
9314
9425
  e.stopPropagation(), c?.();
9315
9426
  },
9316
- children: /* @__PURE__ */ v(rs, { active: s })
9427
+ children: /* @__PURE__ */ v(is, { active: s })
9317
9428
  }),
9318
9429
  /* @__PURE__ */ y("div", {
9319
9430
  className: "sf-module-card__icon-shell",
@@ -9324,7 +9435,7 @@ var sr = (e) => {
9324
9435
  alt: ""
9325
9436
  }) : n || /* @__PURE__ */ v("span", {
9326
9437
  className: "sf-module-card__icon-fallback",
9327
- children: ns(e)
9438
+ children: rs(e)
9328
9439
  })
9329
9440
  }), a != null && a > 0 && /* @__PURE__ */ v("span", {
9330
9441
  className: "sf-module-card__badge",
@@ -9354,10 +9465,10 @@ var sr = (e) => {
9354
9465
  })
9355
9466
  ]
9356
9467
  });
9357
- }, as = ({ children: e, variant: t = "tile", density: n = "comfortable", className: r }) => /* @__PURE__ */ v("div", {
9468
+ }, os = ({ children: e, variant: t = "tile", density: n = "comfortable", className: r }) => /* @__PURE__ */ v("div", {
9358
9469
  className: (0, X.default)(t === "tile" ? "sf-module-grid" : "sf-module-row-grid", t === "tile" && n === "compact" && "sf-module-grid--compact", t === "tile" && n === "comfortable" && "sf-module-grid--comfortable", r),
9359
9470
  children: e
9360
- }), os = ({ tipo: e, hora: t, cupos: n, apto: r = !1, aptoLabel: i = "Unidad apta", children: a }) => /* @__PURE__ */ y("div", {
9471
+ }), ss = ({ tipo: e, hora: t, cupos: n, apto: r = !1, aptoLabel: i = "Unidad apta", children: a }) => /* @__PURE__ */ y("div", {
9361
9472
  className: "sf-tramo-card",
9362
9473
  children: [/* @__PURE__ */ y("div", {
9363
9474
  className: "sf-tramo-card__header",
@@ -9397,7 +9508,28 @@ var sr = (e) => {
9397
9508
  })
9398
9509
  })]
9399
9510
  })]
9400
- }), ss = [
9511
+ }), cs = ({ value: e, label: t, accent: n = "var(--sf-success)", icon: r, className: i }) => /* @__PURE__ */ y("div", {
9512
+ className: (0, X.default)("sf-stat-card", i),
9513
+ style: { "--sf-stat-accent": n },
9514
+ children: [
9515
+ /* @__PURE__ */ v("div", {
9516
+ className: "sf-stat-card__accent",
9517
+ "aria-hidden": "true"
9518
+ }),
9519
+ r && /* @__PURE__ */ v("div", {
9520
+ className: "sf-stat-card__icon",
9521
+ children: r
9522
+ }),
9523
+ /* @__PURE__ */ v("div", {
9524
+ className: "sf-stat-card__value",
9525
+ children: e
9526
+ }),
9527
+ /* @__PURE__ */ v("div", {
9528
+ className: "sf-stat-card__label",
9529
+ children: t
9530
+ })
9531
+ ]
9532
+ }), ls = [
9401
9533
  "Enero",
9402
9534
  "Febrero",
9403
9535
  "Marzo",
@@ -9410,7 +9542,7 @@ var sr = (e) => {
9410
9542
  "Octubre",
9411
9543
  "Noviembre",
9412
9544
  "Diciembre"
9413
- ], cs = [
9545
+ ], us = [
9414
9546
  "L",
9415
9547
  "M",
9416
9548
  "X",
@@ -9418,26 +9550,26 @@ var sr = (e) => {
9418
9550
  "V",
9419
9551
  "S",
9420
9552
  "D"
9421
- ], ls = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, us = (e) => {
9553
+ ], ds = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, fs = (e) => {
9422
9554
  let [t, n, r] = e.split("-").map(Number);
9423
9555
  return new Date(t, n - 1, r);
9424
- }, ds = (e, t) => {
9556
+ }, ps = (e, t) => {
9425
9557
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = new Date(e, t + 1, 0).getDate(), i = [];
9426
9558
  for (let e = 0; e < n; e += 1) i.push(null);
9427
9559
  for (let n = 1; n <= r; n += 1) i.push(new Date(e, t, n));
9428
9560
  for (; i.length % 7 != 0;) i.push(null);
9429
9561
  return i;
9430
- }, fs = {
9562
+ }, ms = {
9431
9563
  primary: "sf-calendar__badge--primary",
9432
9564
  warning: "sf-calendar__badge--warning",
9433
9565
  danger: "sf-calendar__badge--danger",
9434
9566
  success: "sf-calendar__badge--success",
9435
9567
  neutral: "sf-calendar__badge--neutral"
9436
- }, ps = (e, t) => {
9437
- let n = `${e.getDate()} de ${ss[e.getMonth()]} de ${e.getFullYear()}`;
9568
+ }, hs = (e, t) => {
9569
+ let n = `${e.getDate()} de ${ls[e.getMonth()]} de ${e.getFullYear()}`;
9438
9570
  return !t || t.count <= 0 ? n : `${n}, ${t.count} evento${t.count === 1 ? "" : "s"}`;
9439
- }, ms = ({ value: e, onChange: t, badges: n = [], compact: r = !1, className: i }) => {
9440
- let a = ls(/* @__PURE__ */ new Date()), o = e ? us(e) : /* @__PURE__ */ new Date(), [s, c] = h(o.getFullYear()), [l, u] = h(o.getMonth()), d = new Map(n.map((e) => [e.date, e])), f = ds(s, l), p = r ? "h-8" : "h-10";
9571
+ }, gs = ({ value: e, onChange: t, badges: n = [], compact: r = !1, className: i }) => {
9572
+ let a = ds(/* @__PURE__ */ new Date()), o = e ? fs(e) : /* @__PURE__ */ new Date(), [s, c] = h(o.getFullYear()), [l, u] = h(o.getMonth()), d = new Map(n.map((e) => [e.date, e])), f = ps(s, l), p = r ? "h-8" : "h-10";
9441
9573
  return /* @__PURE__ */ y("div", {
9442
9574
  className: (0, X.default)("sf-calendar", r ? "sf-calendar--compact" : "sf-calendar--default", i),
9443
9575
  children: [
@@ -9456,7 +9588,7 @@ var sr = (e) => {
9456
9588
  /* @__PURE__ */ y("span", {
9457
9589
  className: "sf-calendar__title",
9458
9590
  children: [
9459
- ss[l],
9591
+ ls[l],
9460
9592
  " ",
9461
9593
  s
9462
9594
  ]
@@ -9475,7 +9607,7 @@ var sr = (e) => {
9475
9607
  /* @__PURE__ */ v("div", {
9476
9608
  className: "mb-0.5 grid grid-cols-7",
9477
9609
  role: "row",
9478
- children: cs.map((e) => /* @__PURE__ */ v("div", {
9610
+ children: us.map((e) => /* @__PURE__ */ v("div", {
9479
9611
  className: "sf-calendar__weekday",
9480
9612
  role: "columnheader",
9481
9613
  "aria-label": e,
@@ -9485,19 +9617,19 @@ var sr = (e) => {
9485
9617
  /* @__PURE__ */ v("div", {
9486
9618
  className: "grid grid-cols-7 gap-y-0.5",
9487
9619
  role: "grid",
9488
- "aria-label": `Calendario de ${ss[l]} ${s}`,
9620
+ "aria-label": `Calendario de ${ls[l]} ${s}`,
9489
9621
  children: f.map((n, r) => {
9490
9622
  if (!n) return /* @__PURE__ */ v("div", {
9491
9623
  className: p,
9492
9624
  role: "gridcell",
9493
9625
  "aria-hidden": "true"
9494
9626
  }, `empty-${r}`);
9495
- let i = ls(n), o = i === e, s = i === a, c = d.get(i);
9627
+ let i = ds(n), o = i === e, s = i === a, c = d.get(i);
9496
9628
  return /* @__PURE__ */ y("button", {
9497
9629
  type: "button",
9498
9630
  role: "gridcell",
9499
9631
  onClick: () => t?.(i),
9500
- "aria-label": ps(n, c),
9632
+ "aria-label": hs(n, c),
9501
9633
  "aria-pressed": o,
9502
9634
  "aria-current": s ? "date" : void 0,
9503
9635
  className: (0, X.default)("sf-calendar__day", p, o && "sf-calendar__day--selected", !o && s && "sf-calendar__day--today", !o && !s && "sf-calendar__day--default"),
@@ -9505,7 +9637,7 @@ var sr = (e) => {
9505
9637
  className: "leading-none",
9506
9638
  children: n.getDate()
9507
9639
  }), c && c.count > 0 && /* @__PURE__ */ v("span", {
9508
- className: (0, X.default)("sf-calendar__badge", o ? "sf-calendar__badge--on-selected" : fs[c.variant ?? "primary"]),
9640
+ className: (0, X.default)("sf-calendar__badge", o ? "sf-calendar__badge--on-selected" : ms[c.variant ?? "primary"]),
9509
9641
  children: c.count > 99 ? "99+" : c.count
9510
9642
  })]
9511
9643
  }, i);
@@ -9513,39 +9645,39 @@ var sr = (e) => {
9513
9645
  })
9514
9646
  ]
9515
9647
  });
9516
- }, hs = {
9648
+ }, _s = {
9517
9649
  xs: 56,
9518
9650
  sm: 80,
9519
9651
  md: 110,
9520
9652
  lg: 150
9521
- }, gs = {
9653
+ }, vs = {
9522
9654
  xs: 13,
9523
9655
  sm: 18,
9524
9656
  md: 24,
9525
9657
  lg: 34
9526
- }, _s = {
9658
+ }, ys = {
9527
9659
  xs: 8,
9528
9660
  sm: 10,
9529
9661
  md: 11,
9530
9662
  lg: 13
9531
- }, vs = {
9663
+ }, bs = {
9532
9664
  xs: 7,
9533
9665
  sm: 9,
9534
9666
  md: 10,
9535
9667
  lg: 12
9536
- }, ys = {
9668
+ }, xs = {
9537
9669
  xs: 6,
9538
9670
  sm: 8,
9539
9671
  md: 10,
9540
9672
  lg: 13
9541
- }, bs = "var(--sf-success)", xs = "var(--sf-warning)", Ss = "var(--sf-danger)", Cs = (e, t, n) => {
9673
+ }, Ss = "var(--sf-success)", Cs = "var(--sf-warning)", ws = "var(--sf-danger)", Ts = (e, t, n) => {
9542
9674
  let { warning: r, critical: i } = n;
9543
- return t ? e >= i ? bs : e >= r ? xs : Ss : e < r ? bs : e < i ? xs : Ss;
9544
- }, ws = ({ value: e, label: t, sublabel: n, size: r = "md", color: i, thresholds: a = {
9675
+ return t ? e >= i ? Ss : e >= r ? Cs : ws : e < r ? Ss : e < i ? Cs : ws;
9676
+ }, Es = ({ value: e, label: t, sublabel: n, size: r = "md", color: i, thresholds: a = {
9545
9677
  warning: 70,
9546
9678
  critical: 90
9547
9679
  }, inverse: o = !1, showValue: s = !0, strokeWidth: c, className: l }) => {
9548
- let u = Math.max(0, Math.min(100, e)), d = hs[r], f = c ?? ys[r], p = (d - f) / 2, m = d / 2, h = 2 * Math.PI * p, g = h * (1 - u / 100), _ = i ?? Cs(u, o, a);
9680
+ let u = Math.max(0, Math.min(100, e)), d = _s[r], f = c ?? xs[r], p = (d - f) / 2, m = d / 2, h = 2 * Math.PI * p, g = h * (1 - u / 100), _ = i ?? Ts(u, o, a);
9549
9681
  return /* @__PURE__ */ y("div", {
9550
9682
  className: (0, X.default)("sf-donut-gauge", l),
9551
9683
  children: [
@@ -9588,9 +9720,9 @@ var sr = (e) => {
9588
9720
  className: "absolute inset-0 flex items-center justify-center",
9589
9721
  children: /* @__PURE__ */ y("span", {
9590
9722
  className: "sf-donut-gauge__value",
9591
- style: { fontSize: gs[r] },
9723
+ style: { fontSize: vs[r] },
9592
9724
  children: [u, /* @__PURE__ */ v("span", {
9593
- style: { fontSize: gs[r] * .55 },
9725
+ style: { fontSize: vs[r] * .55 },
9594
9726
  children: "%"
9595
9727
  })]
9596
9728
  })
@@ -9598,43 +9730,43 @@ var sr = (e) => {
9598
9730
  }),
9599
9731
  t && /* @__PURE__ */ v("span", {
9600
9732
  className: "sf-donut-gauge__label",
9601
- style: { fontSize: _s[r] },
9733
+ style: { fontSize: ys[r] },
9602
9734
  children: t
9603
9735
  }),
9604
9736
  n && /* @__PURE__ */ v("span", {
9605
9737
  className: "sf-donut-gauge__sublabel",
9606
- style: { fontSize: vs[r] },
9738
+ style: { fontSize: bs[r] },
9607
9739
  children: n
9608
9740
  })
9609
9741
  ]
9610
9742
  });
9611
- }, Ts = ({ gauges: e, size: t = "sm", className: n }) => /* @__PURE__ */ v("div", {
9743
+ }, Ds = ({ gauges: e, size: t = "sm", className: n }) => /* @__PURE__ */ v("div", {
9612
9744
  className: (0, X.default)("flex flex-wrap items-start gap-4", n),
9613
- children: e.map((e, n) => /* @__PURE__ */ v(ws, {
9745
+ children: e.map((e, n) => /* @__PURE__ */ v(Es, {
9614
9746
  ...e,
9615
9747
  size: e.size ?? t
9616
9748
  }, n))
9617
- }), Es = {
9749
+ }), Os = {
9618
9750
  success: "sf-event-log__dot--success",
9619
9751
  warning: "sf-event-log__dot--warning",
9620
9752
  danger: "sf-event-log__dot--danger",
9621
9753
  info: "sf-event-log__dot--info",
9622
9754
  default: "sf-event-log__dot--default"
9623
- }, Ds = {
9755
+ }, ks = {
9624
9756
  success: "sf-event-log__icon-wrap--success",
9625
9757
  warning: "sf-event-log__icon-wrap--warning",
9626
9758
  danger: "sf-event-log__icon-wrap--danger",
9627
9759
  info: "sf-event-log__icon-wrap--info",
9628
9760
  default: "sf-event-log__icon-wrap--default"
9629
- }, Os = {
9761
+ }, As = {
9630
9762
  success: "sf-alert-row-list__meta--success",
9631
9763
  warning: "sf-alert-row-list__meta--warning",
9632
9764
  danger: "sf-alert-row-list__meta--danger",
9633
9765
  info: "sf-alert-row-list__meta--info",
9634
9766
  default: "sf-alert-row-list__meta--default"
9635
- }, ks = (e, t) => {
9767
+ }, js = (e, t) => {
9636
9768
  t && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(), t()));
9637
- }, As = ({ events: e, title: t, maxHeight: n, compact: r = !1, showTimeline: i = !0, viewAllLabel: a, onViewAll: o, className: s }) => {
9769
+ }, Ms = ({ events: e, title: t, maxHeight: n, compact: r = !1, showTimeline: i = !0, viewAllLabel: a, onViewAll: o, className: s }) => {
9638
9770
  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";
9639
9771
  return /* @__PURE__ */ y("div", {
9640
9772
  className: (0, X.default)("sf-event-log", s),
@@ -9675,11 +9807,11 @@ var sr = (e) => {
9675
9807
  /* @__PURE__ */ v("div", {
9676
9808
  className: "mt-0.5 shrink-0",
9677
9809
  children: t.icon ? /* @__PURE__ */ v("div", {
9678
- className: (0, X.default)("sf-event-log__icon-wrap", Ds[r]),
9810
+ className: (0, X.default)("sf-event-log__icon-wrap", ks[r]),
9679
9811
  "aria-hidden": "true",
9680
9812
  children: t.icon
9681
9813
  }) : /* @__PURE__ */ v("div", {
9682
- className: (0, X.default)("sf-event-log__dot", Es[r]),
9814
+ className: (0, X.default)("sf-event-log__dot", Os[r]),
9683
9815
  "aria-hidden": "true"
9684
9816
  })
9685
9817
  }),
@@ -9713,7 +9845,7 @@ var sr = (e) => {
9713
9845
  })]
9714
9846
  })]
9715
9847
  });
9716
- }, js = ({ items: e, maxHeight: t, className: n }) => /* @__PURE__ */ y("div", {
9848
+ }, Ns = ({ items: e, maxHeight: t, className: n }) => /* @__PURE__ */ y("div", {
9717
9849
  className: (0, X.default)("sf-alert-row-list sf-alert-row-list--divided", n),
9718
9850
  style: t ? {
9719
9851
  maxHeight: t,
@@ -9732,10 +9864,10 @@ var sr = (e) => {
9732
9864
  role: e.onClick ? "button" : "listitem",
9733
9865
  tabIndex: e.onClick ? 0 : void 0,
9734
9866
  onClick: e.onClick,
9735
- onKeyDown: (t) => ks(t, e.onClick),
9867
+ onKeyDown: (t) => js(t, e.onClick),
9736
9868
  children: [
9737
9869
  /* @__PURE__ */ v("span", {
9738
- className: (0, X.default)("sf-event-log__dot", Es[n]),
9870
+ className: (0, X.default)("sf-event-log__dot", Os[n]),
9739
9871
  "aria-hidden": "true"
9740
9872
  }),
9741
9873
  /* @__PURE__ */ y("span", {
@@ -9746,7 +9878,7 @@ var sr = (e) => {
9746
9878
  }), e.label]
9747
9879
  }),
9748
9880
  e.meta && /* @__PURE__ */ v("span", {
9749
- className: (0, X.default)("sf-alert-row-list__meta", Os[n]),
9881
+ className: (0, X.default)("sf-alert-row-list__meta", As[n]),
9750
9882
  children: e.meta
9751
9883
  }),
9752
9884
  e.time && /* @__PURE__ */ v("span", {
@@ -9756,7 +9888,7 @@ var sr = (e) => {
9756
9888
  ]
9757
9889
  }, t);
9758
9890
  })]
9759
- }), Ms = {
9891
+ }), Ps = {
9760
9892
  success: {
9761
9893
  color: "#1F8A4C",
9762
9894
  halo: "#EAF5EE"
@@ -9777,17 +9909,17 @@ var sr = (e) => {
9777
9909
  color: "var(--sf-text-subtle, #5C7180)",
9778
9910
  halo: "var(--sf-surface-alt, #EEF0F2)"
9779
9911
  }
9780
- }, Ns = {
9912
+ }, Fs = {
9781
9913
  display: "flex",
9782
9914
  gap: 12,
9783
9915
  flexWrap: "wrap"
9784
- }, Ps = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
9916
+ }, Is = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
9785
9917
  className: (0, X.default)("sf-alert-lane", t),
9786
- style: Ns,
9918
+ style: Fs,
9787
9919
  role: "list",
9788
9920
  "aria-label": "Alertas",
9789
9921
  children: e.map((e, t) => {
9790
- let n = Ms[e.status ?? "default"], r = e.color ?? n.color, i = e.halo ?? n.halo;
9922
+ let n = Ps[e.status ?? "default"], r = e.color ?? n.color, i = e.halo ?? n.halo;
9791
9923
  return /* @__PURE__ */ y("div", {
9792
9924
  role: "listitem",
9793
9925
  style: {
@@ -9858,26 +9990,26 @@ var sr = (e) => {
9858
9990
  ]
9859
9991
  }, e.id ?? t);
9860
9992
  })
9861
- }), Fs = {
9993
+ }), Ls = {
9862
9994
  default: "",
9863
9995
  accent: "sf-card--accent",
9864
9996
  critical: "sf-card--critical",
9865
9997
  warning: "sf-card--warning",
9866
9998
  success: "sf-card--success"
9867
- }, Is = {
9999
+ }, Rs = {
9868
10000
  1: "col-span-1",
9869
10001
  2: "col-span-1 sm:col-span-2",
9870
10002
  3: "col-span-1 sm:col-span-2 lg:col-span-3",
9871
10003
  4: "col-span-1 sm:col-span-2 lg:col-span-4"
9872
- }, Ls = {
10004
+ }, zs = {
9873
10005
  none: "",
9874
10006
  sm: "p-3",
9875
10007
  md: "p-4",
9876
10008
  lg: "p-5"
9877
- }, Rs = ({ title: e, subtitle: t, icon: n, headerAction: r, variant: i = "default", span: a = 1, padding: o = "md", className: s, children: c }) => /* @__PURE__ */ y("div", {
10009
+ }, Bs = ({ title: e, subtitle: t, icon: n, headerAction: r, variant: i = "default", span: a = 1, padding: o = "md", className: s, children: c }) => /* @__PURE__ */ y("div", {
9878
10010
  role: e ? "region" : void 0,
9879
10011
  "aria-label": e,
9880
- className: (0, X.default)("sf-card flex flex-col overflow-hidden", Fs[i], Is[a], s),
10012
+ className: (0, X.default)("sf-card flex flex-col overflow-hidden", Ls[i], Rs[a], s),
9881
10013
  children: [(e || n || r) && /* @__PURE__ */ y("div", {
9882
10014
  className: "sf-card-header",
9883
10015
  children: [
@@ -9902,23 +10034,23 @@ var sr = (e) => {
9902
10034
  })
9903
10035
  ]
9904
10036
  }), /* @__PURE__ */ v("div", {
9905
- className: (0, X.default)("flex-1", Ls[o]),
10037
+ className: (0, X.default)("flex-1", zs[o]),
9906
10038
  children: c
9907
10039
  })]
9908
- }), zs = {
10040
+ }), Vs = {
9909
10041
  2: "grid-cols-1 sm:grid-cols-2",
9910
10042
  3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
9911
10043
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
9912
10044
  5: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-5",
9913
10045
  6: "grid-cols-2 sm:grid-cols-3 lg:grid-cols-6"
9914
- }, Bs = {
10046
+ }, Hs = {
9915
10047
  sm: "gap-2",
9916
10048
  md: "gap-3",
9917
10049
  lg: "gap-5"
9918
- }, Vs = ({ cols: e = 4, gap: t = "md", className: n, children: r }) => /* @__PURE__ */ v("div", {
9919
- className: (0, X.default)("grid", zs[e], Bs[t], n),
10050
+ }, Us = ({ cols: e = 4, gap: t = "md", className: n, children: r }) => /* @__PURE__ */ v("div", {
10051
+ className: (0, X.default)("grid", Vs[e], Hs[t], n),
9920
10052
  children: r
9921
- }), Hs = ({ title: e, subtitle: t, action: n, className: r, children: i }) => /* @__PURE__ */ y("section", {
10053
+ }), Ws = ({ title: e, subtitle: t, action: n, className: r, children: i }) => /* @__PURE__ */ y("section", {
9922
10054
  className: (0, X.default)("flex flex-col gap-3", r),
9923
10055
  "aria-label": e,
9924
10056
  children: [/* @__PURE__ */ y("div", {
@@ -9934,13 +10066,13 @@ var sr = (e) => {
9934
10066
  children: n
9935
10067
  })]
9936
10068
  }), i]
9937
- }), Us = {
10069
+ }), Gs = {
9938
10070
  slate: "sf-stat-tone--slate",
9939
10071
  emerald: "sf-stat-tone--emerald",
9940
10072
  amber: "sf-stat-tone--amber",
9941
10073
  red: "sf-stat-tone--red",
9942
10074
  blue: "sf-stat-tone--blue"
9943
- }, Ws = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
10075
+ }, Ks = ({ items: e, className: t }) => /* @__PURE__ */ v("div", {
9944
10076
  role: "list",
9945
10077
  "aria-label": "Resumen de métricas",
9946
10078
  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),
@@ -9949,7 +10081,7 @@ var sr = (e) => {
9949
10081
  role: "listitem",
9950
10082
  children: [
9951
10083
  e.tone && /* @__PURE__ */ v("span", {
9952
- className: (0, X.default)("h-1.5 w-1.5 shrink-0 rounded-full", Us[e.tone]),
10084
+ className: (0, X.default)("h-1.5 w-1.5 shrink-0 rounded-full", Gs[e.tone]),
9953
10085
  "aria-hidden": "true"
9954
10086
  }),
9955
10087
  /* @__PURE__ */ y("span", {
@@ -9962,7 +10094,7 @@ var sr = (e) => {
9962
10094
  })
9963
10095
  ]
9964
10096
  }, t))
9965
- }), Gs = ({ header: e, sidebar: t, statBar: n, className: r, children: i }) => /* @__PURE__ */ y("div", {
10097
+ }), qs = ({ header: e, sidebar: t, statBar: n, className: r, children: i }) => /* @__PURE__ */ y("div", {
9966
10098
  className: "sf-card flex min-h-[480px] flex-col overflow-hidden bg-[var(--sf-page-bg)]",
9967
10099
  role: "region",
9968
10100
  "aria-label": "Dashboard",
@@ -9987,15 +10119,15 @@ var sr = (e) => {
9987
10119
  children: n
9988
10120
  })
9989
10121
  ]
9990
- }), Ks = ({ small: e, error: t }) => (0, X.default)("sf-input", "sf-input--otp", e && "sf-input--sm", t && "sf-input--error"), qs = (e, t) => {
10122
+ }), Js = ({ small: e, error: t }) => (0, X.default)("sf-input", "sf-input--otp", e && "sf-input--sm", t && "sf-input--error"), Ys = (e, t) => {
9991
10123
  let n = qt(String(e ?? ""), t);
9992
10124
  return Array.from({ length: t }, (e, t) => n[t] ?? "");
9993
- }, Js = ({ form: e, name: t, label: n, info: r, required: i, disabled: a, small: o, className: s, length: c = 6, onChange: l }) => {
10125
+ }, Xs = ({ form: e, name: t, label: n, info: r, required: i, disabled: a, small: o, className: s, length: c = 6, onChange: l }) => {
9994
10126
  let u = b({
9995
10127
  name: t,
9996
10128
  control: e.control
9997
- }), d = m([]), [f, p] = h(() => qs(u.field.value, c)), [g, _] = h(u.field.value);
9998
- u.field.value !== g && (_(u.field.value), p(qs(u.field.value, c)));
10129
+ }), d = m([]), [f, p] = h(() => Ys(u.field.value, c)), [g, _] = h(u.field.value);
10130
+ u.field.value !== g && (_(u.field.value), p(Ys(u.field.value, c)));
9999
10131
  let y = String(t), x = u.fieldState.error?.message ? String(u.fieldState.error.message) : void 0, S = (e) => {
10000
10132
  p(e);
10001
10133
  let t = e.join("");
@@ -10039,7 +10171,7 @@ var sr = (e) => {
10039
10171
  onBlur: () => u.field.onBlur(),
10040
10172
  onChange: (e) => C(t, e.target.value),
10041
10173
  onKeyDown: (e) => w(t, e),
10042
- className: Ks({
10174
+ className: Js({
10043
10175
  small: o,
10044
10176
  error: !!x,
10045
10177
  disabled: a
@@ -10047,15 +10179,15 @@ var sr = (e) => {
10047
10179
  }, t))
10048
10180
  })
10049
10181
  });
10050
- }, Ys = (e) => {
10182
+ }, Zs = (e) => {
10051
10183
  let [t, n] = e.slice(0, 10).split("-").map(Number), r = new Date(t, n, 0).getDate();
10052
10184
  return `${t}-${String(n).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
10053
- }, Xs = ({ 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 }) => {
10185
+ }, Qs = ({ 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 }) => {
10054
10186
  let f = String(e.watch(t) ?? ""), p = (t, r) => {
10055
10187
  if (l === "none") return;
10056
10188
  let i = t.slice(0, 10), a = r.slice(0, 10);
10057
10189
  if (!_n(i) || !_n(a) || a >= i) return;
10058
- let o = l === "month-end" ? Ys(i) : i;
10190
+ let o = l === "month-end" ? Zs(i) : i;
10059
10191
  e.setValue(n, o, { shouldValidate: !1 }), u?.(o);
10060
10192
  };
10061
10193
  return /* @__PURE__ */ y("div", {
@@ -10080,16 +10212,16 @@ var sr = (e) => {
10080
10212
  onChange: (n) => p(String(e.getValues(t) ?? ""), n)
10081
10213
  })]
10082
10214
  });
10083
- }, Zs = (e) => /* @__PURE__ */ v(Cn, {
10215
+ }, $s = (e) => /* @__PURE__ */ v(Cn, {
10084
10216
  ...e,
10085
10217
  utc: !0
10086
- }), Qs = () => ({
10218
+ }), ec = () => ({
10087
10219
  start: "",
10088
10220
  end: ""
10089
- }), $s = () => ({
10221
+ }), tc = () => ({
10090
10222
  start: "",
10091
10223
  end: ""
10092
- }), ec = 0, tc = () => (ec += 1, `photo_${Date.now()}_${ec}`), nc = (e, t) => {
10224
+ }), nc = 0, rc = () => (nc += 1, `photo_${Date.now()}_${nc}`), ic = (e, t) => {
10093
10225
  if (!t || t === "*") return !0;
10094
10226
  let n = t.replace(/\s/g, "").split(","), r = `.${e.name.split(".").pop()?.toLowerCase() ?? ""}`, i = e.type.toLowerCase();
10095
10227
  return n.some((e) => {
@@ -10101,20 +10233,20 @@ var sr = (e) => {
10101
10233
  }
10102
10234
  return i === t;
10103
10235
  });
10104
- }, rc = (e, t = !1) => new Promise((n) => {
10236
+ }, ac = (e, t = !1) => new Promise((n) => {
10105
10237
  let r = document.createElement("input");
10106
10238
  r.type = "file", r.accept = e, r.multiple = t, r.style.display = "none", r.onchange = () => {
10107
10239
  n(Array.from(r.files ?? [])), r.remove();
10108
10240
  }, document.body.appendChild(r), r.click();
10109
- }), ic = (e) => ({
10110
- id: tc(),
10241
+ }), oc = (e) => ({
10242
+ id: rc(),
10111
10243
  preview: URL.createObjectURL(e),
10112
10244
  file: e
10113
- }), ac = (e) => {
10245
+ }), sc = (e) => {
10114
10246
  URL.revokeObjectURL(e.preview);
10115
- }, oc = (e) => {
10116
- e.forEach(ac);
10117
- }, sc = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e && typeof e.id == "string" && typeof e.preview == "string" && e.file instanceof File) : [], cc = (e, t = .92) => new Promise((n, r) => {
10247
+ }, cc = (e) => {
10248
+ e.forEach(sc);
10249
+ }, lc = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e && typeof e.id == "string" && typeof e.preview == "string" && e.file instanceof File) : [], uc = (e, t = .92) => new Promise((n, r) => {
10118
10250
  let i = URL.createObjectURL(e), a = new Image();
10119
10251
  a.onload = () => {
10120
10252
  let o = Math.min(a.width, a.height), s = (a.width - o) / 2, c = (a.height - o) / 2, l = document.createElement("canvas");
@@ -10137,7 +10269,7 @@ var sr = (e) => {
10137
10269
  }, a.onerror = () => {
10138
10270
  URL.revokeObjectURL(i), r(/* @__PURE__ */ Error("Imagen inválida"));
10139
10271
  }, a.src = i;
10140
- }), lc = (e) => e.length === 0 ? "Arrastra archivos o haz clic" : e.length === 1 ? e[0].name : `${e.length} archivos seleccionados`, uc = (e) => `${e.name}-${e.lastModified}-${e.size}`, dc = ({ 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: _ }) => {
10272
+ }), dc = (e) => e.length === 0 ? "Arrastra archivos o haz clic" : e.length === 1 ? e[0].name : `${e.length} archivos seleccionados`, fc = (e) => `${e.name}-${e.lastModified}-${e.size}`, pc = ({ 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: _ }) => {
10141
10273
  let x = m(null), S = b({
10142
10274
  name: t,
10143
10275
  control: e.control
@@ -10146,7 +10278,7 @@ var sr = (e) => {
10146
10278
  return e ? Array.isArray(e) ? e : [e] : [];
10147
10279
  })(), L = async (e) => {
10148
10280
  if (g) for (let t of e) {
10149
- let e = uc(t);
10281
+ let e = fc(t);
10150
10282
  O((t) => new Set(t).add(e)), E((t) => ({
10151
10283
  ...t,
10152
10284
  [e]: 0
@@ -10171,7 +10303,7 @@ var sr = (e) => {
10171
10303
  }
10172
10304
  }
10173
10305
  }, ee = (e) => {
10174
- let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && nc(e, a)), r = e.length - n.length;
10306
+ let t = s * 1024 * 1024, n = e.filter((e) => e.size <= t && ic(e, a)), r = e.length - n.length;
10175
10307
  if (A(r > 0 ? `${r} archivo(s) no cumplen tipo o tamaño máximo.` : null), o) {
10176
10308
  let e = [...I, ...n];
10177
10309
  S.field.onChange(e), p?.(e), L(n);
@@ -10225,7 +10357,7 @@ var sr = (e) => {
10225
10357
  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"),
10226
10358
  children: [/* @__PURE__ */ v("span", {
10227
10359
  className: "sf-file-drop__title",
10228
- children: C ? "Suelta aquí" : c ?? lc(I)
10360
+ children: C ? "Suelta aquí" : c ?? dc(I)
10229
10361
  }), /* @__PURE__ */ y("span", {
10230
10362
  className: "sf-file-drop__hint",
10231
10363
  children: [
@@ -10240,7 +10372,7 @@ var sr = (e) => {
10240
10372
  className: "sf-file-list",
10241
10373
  "aria-label": "Archivos seleccionados",
10242
10374
  children: I.map((e) => {
10243
- let t = uc(e), n = T[t], r = D.has(t);
10375
+ let t = fc(e), n = T[t], r = D.has(t);
10244
10376
  return /* @__PURE__ */ y("li", {
10245
10377
  className: "sf-file-list__item",
10246
10378
  children: [/* @__PURE__ */ y("span", {
@@ -10269,7 +10401,7 @@ var sr = (e) => {
10269
10401
  ]
10270
10402
  })
10271
10403
  });
10272
- }, fc = ({ 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: _ }) => {
10404
+ }, mc = ({ 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: _ }) => {
10273
10405
  let x = m(null), S = b({
10274
10406
  name: t,
10275
10407
  control: e.control
@@ -10358,7 +10490,7 @@ var sr = (e) => {
10358
10490
  ]
10359
10491
  })
10360
10492
  });
10361
- }, pc = ({ 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 }) => {
10493
+ }, hc = ({ 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 }) => {
10362
10494
  let g = m(null), _ = m(!1), x = m(null), S = m(void 0), C = b({
10363
10495
  name: t,
10364
10496
  control: e.control
@@ -10450,11 +10582,11 @@ var sr = (e) => {
10450
10582
  })]
10451
10583
  })
10452
10584
  });
10453
- }, mc = ({ 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 }) => {
10585
+ }, gc = ({ 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 }) => {
10454
10586
  let S = m(null), C = b({
10455
10587
  name: t,
10456
10588
  control: e.control
10457
- }), 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(() => sc(C.field.value), [C.field.value]), j = p(() => !k && A.length < a, [
10589
+ }), 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(() => lc(C.field.value), [C.field.value]), j = p(() => !k && A.length < a, [
10458
10590
  k,
10459
10591
  a,
10460
10592
  A.length
@@ -10462,7 +10594,7 @@ var sr = (e) => {
10462
10594
  u(() => {
10463
10595
  N.current = A;
10464
10596
  }, [A]), u(() => () => {
10465
- for (let e of N.current) ac(e);
10597
+ for (let e of N.current) sc(e);
10466
10598
  }, []);
10467
10599
  let P = s((e) => {
10468
10600
  C.field.onChange(e), _?.(e);
@@ -10477,7 +10609,7 @@ var sr = (e) => {
10477
10609
  D(`Hay imágenes que superan ${o} MB.`);
10478
10610
  return;
10479
10611
  }
10480
- let r = a - A.length, i = n.slice(0, r).map((e) => ic(e));
10612
+ let r = a - A.length, i = n.slice(0, r).map((e) => oc(e));
10481
10613
  if (n.length > r) {
10482
10614
  D(`Solo puedes agregar ${r} imagen(es) más.`);
10483
10615
  return;
@@ -10490,7 +10622,7 @@ var sr = (e) => {
10490
10622
  A
10491
10623
  ]), I = s((e) => {
10492
10624
  let t = A.find((t) => t.id === e);
10493
- t && ac(t), P(A.filter((t) => t.id !== e));
10625
+ t && sc(t), P(A.filter((t) => t.id !== e));
10494
10626
  }, [P, A]);
10495
10627
  return /* @__PURE__ */ v(Z, {
10496
10628
  id: w,
@@ -10562,19 +10694,19 @@ var sr = (e) => {
10562
10694
  ]
10563
10695
  })
10564
10696
  });
10565
- }, hc = (e) => {
10697
+ }, _c = (e) => {
10566
10698
  switch (e.kind) {
10567
- case "photo": return /* @__PURE__ */ v(fc, { ...e });
10568
- case "multiPhoto": return /* @__PURE__ */ v(mc, { ...e });
10569
- case "signature": return /* @__PURE__ */ v(pc, { ...e });
10699
+ case "photo": return /* @__PURE__ */ v(mc, { ...e });
10700
+ case "multiPhoto": return /* @__PURE__ */ v(gc, { ...e });
10701
+ case "signature": return /* @__PURE__ */ v(hc, { ...e });
10570
10702
  case "file": return /* @__PURE__ */ v(On, { ...e });
10571
10703
  default: return null;
10572
10704
  }
10573
- }, gc = (e) => new Promise((t, n) => {
10705
+ }, vc = (e) => new Promise((t, n) => {
10574
10706
  let r = new Image();
10575
10707
  r.addEventListener("load", () => t(r)), r.addEventListener("error", () => n(/* @__PURE__ */ Error("No se pudo cargar la imagen"))), r.setAttribute("crossOrigin", "anonymous"), r.src = e;
10576
- }), _c = async (e, t, n, r = "image/jpeg") => {
10577
- let i = await gc(e), a = document.createElement("canvas");
10708
+ }), yc = async (e, t, n, r = "image/jpeg") => {
10709
+ let i = await vc(e), a = document.createElement("canvas");
10578
10710
  a.width = t.width, a.height = t.height;
10579
10711
  let o = a.getContext("2d");
10580
10712
  if (!o) throw Error("Canvas no disponible");
@@ -10587,7 +10719,7 @@ var sr = (e) => {
10587
10719
  e(new File([i], n, { type: r }));
10588
10720
  }, r, .92);
10589
10721
  });
10590
- }, vc = ({ imageUrl: e, fileName: t, aspect: n = 1, onCancel: r, onConfirm: i, className: a }) => {
10722
+ }, bc = ({ imageUrl: e, fileName: t, aspect: n = 1, onCancel: r, onConfirm: i, className: a }) => {
10591
10723
  let [o, c] = h({
10592
10724
  x: 0,
10593
10725
  y: 0
@@ -10597,7 +10729,7 @@ var sr = (e) => {
10597
10729
  if (d) {
10598
10730
  m(!0);
10599
10731
  try {
10600
- i(await _c(e, d, t, t.toLowerCase().endsWith(".png") ? "image/png" : "image/jpeg"));
10732
+ i(await yc(e, d, t, t.toLowerCase().endsWith(".png") ? "image/png" : "image/jpeg"));
10601
10733
  } finally {
10602
10734
  m(!1);
10603
10735
  }
@@ -10648,7 +10780,7 @@ var sr = (e) => {
10648
10780
  })
10649
10781
  ]
10650
10782
  });
10651
- }, yc = ({ 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 }) => {
10783
+ }, xc = ({ 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 }) => {
10652
10784
  let S = m(null), C = b({
10653
10785
  name: t,
10654
10786
  control: e.control
@@ -10677,7 +10809,7 @@ var sr = (e) => {
10677
10809
  }
10678
10810
  T(!0);
10679
10811
  try {
10680
- I(await cc(e));
10812
+ I(await uc(e));
10681
10813
  } finally {
10682
10814
  T(!1);
10683
10815
  }
@@ -10767,7 +10899,7 @@ var sr = (e) => {
10767
10899
  role: "dialog",
10768
10900
  "aria-modal": "true",
10769
10901
  "aria-label": "Editor de recorte",
10770
- children: /* @__PURE__ */ v(vc, {
10902
+ children: /* @__PURE__ */ v(bc, {
10771
10903
  imageUrl: E.url,
10772
10904
  fileName: E.fileName,
10773
10905
  aspect: c,
@@ -10779,7 +10911,7 @@ var sr = (e) => {
10779
10911
  })]
10780
10912
  })]
10781
10913
  });
10782
- }, bc = () => [], xc = ({ title: e, description: t, className: n, children: r }) => /* @__PURE__ */ y("section", {
10914
+ }, Sc = () => [], Cc = ({ title: e, description: t, className: n, children: r }) => /* @__PURE__ */ y("section", {
10783
10915
  className: (0, X.default)("sf-neutral-map-frame", n),
10784
10916
  children: [(e || t) && /* @__PURE__ */ y("div", {
10785
10917
  className: "sf-neutral-map-frame__header",
@@ -10791,63 +10923,63 @@ var sr = (e) => {
10791
10923
  children: t
10792
10924
  })]
10793
10925
  }), r]
10794
- }), Sc = ({ tone: e = "info", children: t }) => /* @__PURE__ */ v("p", {
10926
+ }), wc = ({ tone: e = "info", children: t }) => /* @__PURE__ */ v("p", {
10795
10927
  className: (0, X.default)("sf-neutral-map-status", `sf-neutral-map-status--${e}`),
10796
10928
  role: e === "error" ? "alert" : "status",
10797
10929
  children: t
10798
- }), Cc = "Maps config not found. Wrap your app with <SfProvider maps={...}>.", wc = {
10930
+ }), Tc = "Maps config not found. Wrap your app with <SfProvider maps={...}>.", Ec = {
10799
10931
  lat: -12.0464,
10800
10932
  lng: -77.0428
10801
- }, Tc = 13, Ec = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", Dc = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Oc = {
10933
+ }, Dc = 13, Oc = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", kc = "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>", Ac = {
10802
10934
  drawing: "basic",
10803
10935
  streetView: "none",
10804
10936
  clustering: "none",
10805
10937
  heatmap: "none"
10806
- }, kc = {
10938
+ }, jc = {
10807
10939
  drawing: "basic",
10808
10940
  streetView: "interactive",
10809
10941
  clustering: "client",
10810
10942
  heatmap: "weighted"
10811
- }, Ac = "sf-google-maps-script", jc = ({ apiKey: e, language: t = "es", region: n = "PE", libraries: r = [] }) => {
10943
+ }, Mc = "sf-google-maps-script", Nc = ({ apiKey: e, language: t = "es", region: n = "PE", libraries: r = [] }) => {
10812
10944
  let i = new URLSearchParams({
10813
10945
  key: e,
10814
10946
  language: t,
10815
10947
  region: n
10816
10948
  });
10817
10949
  return r.length > 0 && i.set("libraries", r.join(",")), `https://maps.googleapis.com/maps/api/js?${i.toString()}`;
10818
- }, Mc = (e) => {
10950
+ }, Pc = (e) => {
10819
10951
  let t = window;
10820
10952
  return t.google?.maps ? Promise.resolve(t.google) : (t.__sfGoogleMapsPromise ||= new Promise((n, r) => {
10821
- let i = document.getElementById(Ac);
10953
+ let i = document.getElementById(Mc);
10822
10954
  if (i) {
10823
10955
  i.addEventListener("load", () => n(t.google ?? {})), i.addEventListener("error", () => r(/* @__PURE__ */ Error("No se pudo cargar Google Maps.")));
10824
10956
  return;
10825
10957
  }
10826
10958
  let a = document.createElement("script");
10827
- a.id = Ac, a.src = jc(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);
10959
+ a.id = Mc, a.src = Nc(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);
10828
10960
  }), t.__sfGoogleMapsPromise);
10829
- }, Nc = (e, t = "") => {
10961
+ }, Fc = (e, t = "") => {
10830
10962
  let n = e.match(/^var\((--[^,)]+)\)$/);
10831
10963
  return !n || typeof document > "u" ? t || e : getComputedStyle(document.documentElement).getPropertyValue(n[1]).trim() || t || e;
10832
- }, Pc = (e, t) => ({
10964
+ }, Ic = (e, t) => ({
10833
10965
  map: t,
10834
10966
  paths: e.points,
10835
- strokeColor: e.color ?? Nc("var(--sf-map-area-stroke)"),
10836
- fillColor: e.fillColor ?? e.color ?? Nc("var(--sf-map-area-fill)"),
10967
+ strokeColor: e.color ?? Fc("var(--sf-map-area-stroke)"),
10968
+ fillColor: e.fillColor ?? e.color ?? Fc("var(--sf-map-area-fill)"),
10837
10969
  fillOpacity: .14,
10838
10970
  strokeWeight: 2.5
10839
- }), Fc = (e, t) => ({
10971
+ }), Lc = (e, t) => ({
10840
10972
  map: t,
10841
10973
  path: e.points,
10842
- strokeColor: e.color ?? Nc("var(--sf-map-route-stroke)"),
10974
+ strokeColor: e.color ?? Fc("var(--sf-map-route-stroke)"),
10843
10975
  strokeWeight: 3.5
10844
- }), Ic = (e, t, n) => ({
10976
+ }), Rc = (e, t, n) => ({
10845
10977
  map: t,
10846
10978
  position: e.position,
10847
10979
  title: e.title ?? e.label,
10848
10980
  label: e.label ? e.label.slice(0, 1).toUpperCase() : void 0,
10849
10981
  draggable: !n && e.options?.draggable
10850
- }), Lc = ({ config: e, center: t = wc, 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 }) => {
10982
+ }), zc = ({ config: e, center: t = Ec, 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 }) => {
10851
10983
  let _ = m(null), y = m(null), b = m(/* @__PURE__ */ new Map()), x = m(/* @__PURE__ */ new Map()), S = m(/* @__PURE__ */ new Map()), C = m({
10852
10984
  onMarkerClick: d,
10853
10985
  onMarkerDoubleClick: f,
@@ -10880,9 +11012,9 @@ var sr = (e) => {
10880
11012
  return;
10881
11013
  }
10882
11014
  let t = !1;
10883
- return D("loading"), Mc(e).then((n) => {
11015
+ return D("loading"), Pc(e).then((n) => {
10884
11016
  t || !_.current || !n.maps?.Map || (y.current = new n.maps.Map(_.current, {
10885
- center: wc,
11017
+ center: Ec,
10886
11018
  zoom: 13,
10887
11019
  mapId: e.mapId,
10888
11020
  disableDefaultUI: c
@@ -10901,7 +11033,7 @@ var sr = (e) => {
10901
11033
  }, []), u(() => {
10902
11034
  if (E !== "ready" || !e?.apiKey || !y.current) return;
10903
11035
  let t = !1;
10904
- return Mc(e).then((e) => {
11036
+ return Pc(e).then((e) => {
10905
11037
  if (t || !e.maps?.Marker) return;
10906
11038
  let n = new Set(r.map((e) => e.id));
10907
11039
  b.current.forEach((e, t) => {
@@ -10910,10 +11042,10 @@ var sr = (e) => {
10910
11042
  x.current.set(t.id, t);
10911
11043
  let n = b.current.get(t.id);
10912
11044
  if (n) {
10913
- n.marker.setPosition?.(t.position), n.marker.setOptions?.(Ic(t, y.current, c));
11045
+ n.marker.setPosition?.(t.position), n.marker.setOptions?.(Rc(t, y.current, c));
10914
11046
  return;
10915
11047
  }
10916
- let r = new e.maps.Marker(Ic(t, y.current, c)), i = () => x.current.get(t.id) ?? t, a = [
11048
+ let r = new e.maps.Marker(Rc(t, y.current, c)), i = () => x.current.get(t.id) ?? t, a = [
10917
11049
  r.addListener?.("click", () => {
10918
11050
  C.current.onMarkerClick?.({ marker: i() });
10919
11051
  }),
@@ -10957,7 +11089,7 @@ var sr = (e) => {
10957
11089
  ]), u(() => {
10958
11090
  if (E !== "ready" || !e?.apiKey || !y.current) return;
10959
11091
  let t = !1;
10960
- return Mc(e).then((e) => {
11092
+ return Pc(e).then((e) => {
10961
11093
  if (t || !e.maps?.Polyline || !e.maps.Polygon) return;
10962
11094
  let n = /* @__PURE__ */ new Set([...a.map((e) => `area:${e.id}`), ...i.map((e) => `route:${e.id}`)]);
10963
11095
  S.current.forEach((e, t) => {
@@ -10965,22 +11097,22 @@ var sr = (e) => {
10965
11097
  }), a.forEach((t) => {
10966
11098
  let n = `area:${t.id}`, r = S.current.get(n);
10967
11099
  if (r?.kind === "area") {
10968
- r.shape.setPaths?.(t.points), r.shape.setOptions?.(Pc(t, y.current));
11100
+ r.shape.setPaths?.(t.points), r.shape.setOptions?.(Ic(t, y.current));
10969
11101
  return;
10970
11102
  }
10971
11103
  r?.shape.setMap?.(null), S.current.set(n, {
10972
11104
  kind: "area",
10973
- shape: new e.maps.Polygon(Pc(t, y.current))
11105
+ shape: new e.maps.Polygon(Ic(t, y.current))
10974
11106
  });
10975
11107
  }), i.forEach((t) => {
10976
11108
  let n = `route:${t.id}`, r = S.current.get(n);
10977
11109
  if (r?.kind === "route") {
10978
- r.shape.setPath?.(t.points), r.shape.setOptions?.(Fc(t, y.current));
11110
+ r.shape.setPath?.(t.points), r.shape.setOptions?.(Lc(t, y.current));
10979
11111
  return;
10980
11112
  }
10981
11113
  r?.shape.setMap?.(null), S.current.set(n, {
10982
11114
  kind: "route",
10983
- shape: new e.maps.Polyline(Fc(t, y.current))
11115
+ shape: new e.maps.Polyline(Lc(t, y.current))
10984
11116
  });
10985
11117
  });
10986
11118
  }), () => {
@@ -10994,7 +11126,7 @@ var sr = (e) => {
10994
11126
  ]), u(() => {
10995
11127
  if (E !== "ready" || !e?.apiKey || !y.current || !l || c) return;
10996
11128
  let t = !1, n;
10997
- return Mc(e).then(() => {
11129
+ return Pc(e).then(() => {
10998
11130
  let e = y.current;
10999
11131
  t || !e?.addListener || (n = e.addListener("click", (e) => {
11000
11132
  e.latLng && l({ location: {
@@ -11023,25 +11155,25 @@ var sr = (e) => {
11023
11155
  "aria-busy": E !== "ready" || void 0
11024
11156
  })
11025
11157
  });
11026
- }, Rc = (e) => ({
11158
+ }, Bc = (e) => ({
11027
11159
  id: "google",
11028
- capabilities: kc,
11029
- createRenderer: () => (t) => /* @__PURE__ */ v(Lc, {
11160
+ capabilities: jc,
11161
+ createRenderer: () => (t) => /* @__PURE__ */ v(zc, {
11030
11162
  ...t,
11031
11163
  config: e
11032
11164
  })
11033
- }), zc = (e) => [e.lat, e.lng], Bc = (e) => ae.divIcon({
11165
+ }), Vc = (e) => [e.lat, e.lng], Hc = (e) => ae.divIcon({
11034
11166
  className: "",
11035
11167
  html: `<div class="sf-neutral-map-marker" style="${e ? `--sf-neutral-map-marker-bg:${e};` : ""}"></div>`,
11036
11168
  iconSize: [18, 18],
11037
11169
  iconAnchor: [9, 9]
11038
- }), Vc = ({ readOnly: e, onClick: t }) => (ie({ click(n) {
11170
+ }), Uc = ({ readOnly: e, onClick: t }) => (ie({ click(n) {
11039
11171
  e || t?.({ location: {
11040
11172
  lat: n.latlng.lat,
11041
11173
  lng: n.latlng.lng
11042
11174
  } });
11043
- } }), null), Hc = ({ center: e = wc, zoom: t = 13, markers: n = [], routes: r = [], areas: i = [], height: a = 320, className: o, readOnly: s, tileUrl: c = Ec, attribution: l = Dc, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
11044
- let g = co(), _ = p(() => zc(e), [e]), b = typeof a == "number" ? { height: `${a}px` } : { height: a };
11175
+ } }), null), Wc = ({ center: e = Ec, zoom: t = 13, markers: n = [], routes: r = [], areas: i = [], height: a = 320, className: o, readOnly: s, tileUrl: c = Oc, attribution: l = kc, onClick: u, onMarkerClick: d, onMarkerDoubleClick: f, onMarkerDrag: m, onMarkerDragEnd: h }) => {
11176
+ let g = lo(), _ = p(() => Vc(e), [e]), b = typeof a == "number" ? { height: `${a}px` } : { height: a };
11045
11177
  return g ? /* @__PURE__ */ v("div", {
11046
11178
  className: o,
11047
11179
  style: b,
@@ -11056,29 +11188,29 @@ var sr = (e) => {
11056
11188
  attribution: l,
11057
11189
  url: c
11058
11190
  }),
11059
- /* @__PURE__ */ v(Vc, {
11191
+ /* @__PURE__ */ v(Uc, {
11060
11192
  readOnly: s,
11061
11193
  onClick: u
11062
11194
  }),
11063
11195
  i.map((e) => /* @__PURE__ */ v(B, {
11064
- positions: e.points.map(zc),
11196
+ positions: e.points.map(Vc),
11065
11197
  pathOptions: {
11066
- color: e.color ?? Nc("var(--sf-map-area-stroke)"),
11067
- fillColor: e.fillColor ?? e.color ?? Nc("var(--sf-map-area-fill)"),
11198
+ color: e.color ?? Fc("var(--sf-map-area-stroke)"),
11199
+ fillColor: e.fillColor ?? e.color ?? Fc("var(--sf-map-area-fill)"),
11068
11200
  fillOpacity: .14,
11069
11201
  weight: 2.5
11070
11202
  }
11071
11203
  }, e.id)),
11072
11204
  r.map((e) => /* @__PURE__ */ v(V, {
11073
- positions: e.points.map(zc),
11205
+ positions: e.points.map(Vc),
11074
11206
  pathOptions: {
11075
- color: e.color ?? Nc("var(--sf-map-route-stroke)"),
11207
+ color: e.color ?? Fc("var(--sf-map-route-stroke)"),
11076
11208
  weight: 3.5
11077
11209
  }
11078
11210
  }, e.id)),
11079
11211
  n.map((e) => /* @__PURE__ */ v(ne, {
11080
- position: zc(e.position),
11081
- icon: Bc(e.color),
11212
+ position: Vc(e.position),
11213
+ icon: Hc(e.color),
11082
11214
  title: e.title ?? e.label,
11083
11215
  draggable: !s && e.options?.draggable,
11084
11216
  bubblingMouseEvents: !1,
@@ -11115,18 +11247,18 @@ var sr = (e) => {
11115
11247
  style: b,
11116
11248
  children: "Cargando mapa…"
11117
11249
  });
11118
- }, Uc = (e) => ({
11250
+ }, Gc = (e) => ({
11119
11251
  id: "leaflet",
11120
- capabilities: Oc,
11121
- createRenderer: () => (t) => /* @__PURE__ */ v(Hc, {
11252
+ capabilities: Ac,
11253
+ createRenderer: () => (t) => /* @__PURE__ */ v(Wc, {
11122
11254
  ...t,
11123
11255
  tileUrl: e?.tileUrl,
11124
11256
  attribution: e?.attribution
11125
11257
  })
11126
- }), Wc = 6371e3, Gc = (e) => e * Math.PI / 180, Kc = (e, t) => {
11127
- let n = Gc(t.lat - e.lat), r = Gc(t.lng - e.lng), i = Gc(e.lat), a = Gc(t.lat), o = Math.sin(n / 2) ** 2 + Math.sin(r / 2) ** 2 * Math.cos(i) * Math.cos(a);
11128
- return 2 * Wc * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o));
11129
- }, qc = () => ({
11258
+ }), Kc = 6371e3, qc = (e) => e * Math.PI / 180, Jc = (e, t) => {
11259
+ let n = qc(t.lat - e.lat), r = qc(t.lng - e.lng), i = qc(e.lat), a = qc(t.lat), o = Math.sin(n / 2) ** 2 + Math.sin(r / 2) ** 2 * Math.cos(i) * Math.cos(a);
11260
+ return 2 * Kc * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o));
11261
+ }, Yc = () => ({
11130
11262
  id: "basic",
11131
11263
  capabilities: {
11132
11264
  distance: "point-to-point",
@@ -11134,12 +11266,12 @@ var sr = (e) => {
11134
11266
  },
11135
11267
  async calculateDistance(e) {
11136
11268
  let t = e.origins[0], n = e.destinations[0];
11137
- return { distanceMeters: t && n ? Kc(t, n) : 0 };
11269
+ return { distanceMeters: t && n ? Jc(t, n) : 0 };
11138
11270
  }
11139
- }), Jc = (e) => ({
11271
+ }), Xc = (e) => ({
11140
11272
  lat: e.lat(),
11141
11273
  lng: e.lng()
11142
- }), Yc = (e) => {
11274
+ }), Zc = (e) => {
11143
11275
  let t = e.geometry?.location;
11144
11276
  if (!t) return null;
11145
11277
  let n = e.formatted_address ?? e.place_id ?? "Ubicación Google Maps";
@@ -11147,51 +11279,51 @@ var sr = (e) => {
11147
11279
  id: e.place_id ?? n,
11148
11280
  label: n,
11149
11281
  address: e.formatted_address,
11150
- location: Jc(t),
11282
+ location: Xc(t),
11151
11283
  provider: "google",
11152
11284
  raw: e
11153
11285
  };
11154
- }, Xc = (e) => ({
11286
+ }, Qc = (e) => ({
11155
11287
  id: "google",
11156
11288
  capabilities: { geocoding: "full" },
11157
11289
  async geocode(t) {
11158
- let n = (await Mc(e)).maps?.Geocoder;
11290
+ let n = (await Pc(e)).maps?.Geocoder;
11159
11291
  return n ? new Promise((e) => {
11160
11292
  new n().geocode({ address: t }, (t) => {
11161
- e((t ?? []).map((e) => Yc(e)).filter((e) => !!e));
11293
+ e((t ?? []).map((e) => Zc(e)).filter((e) => !!e));
11162
11294
  });
11163
11295
  }) : [];
11164
11296
  },
11165
11297
  async reverseGeocode(t) {
11166
- let n = (await Mc(e)).maps?.Geocoder;
11298
+ let n = (await Pc(e)).maps?.Geocoder;
11167
11299
  return n ? new Promise((e) => {
11168
11300
  new n().geocode({ location: t }, (t) => {
11169
- e(Yc(t?.[0] ?? {}));
11301
+ e(Zc(t?.[0] ?? {}));
11170
11302
  });
11171
11303
  }) : null;
11172
11304
  }
11173
- }), Zc = (e) => e.toFixed(6), Qc = (e, t, n) => Math.min(Math.max(e, t), n), $c = (e) => Qc(e, -90, 90), el = (e) => Qc(e, -180, 180), tl = (e, t = 0) => {
11305
+ }), $c = (e) => e.toFixed(6), el = (e, t, n) => Math.min(Math.max(e, t), n), tl = (e) => el(e, -90, 90), nl = (e) => el(e, -180, 180), rl = (e, t = 0) => {
11174
11306
  if (typeof e == "number") return Number.isFinite(e) ? e : t;
11175
11307
  let n = Number.parseFloat(e.trim().replace(",", "."));
11176
11308
  return Number.isFinite(n) ? n : t;
11177
- }, nl = (e) => `${Zc(e.lat)}, ${Zc(e.lng)}`, rl = (e, t) => {
11309
+ }, il = (e) => `${$c(e.lat)}, ${$c(e.lng)}`, al = (e, t) => {
11178
11310
  if (!e || typeof e != "object" || !("lat" in e) || !("lng" in e)) return t;
11179
- let n = tl(e.lat, t.lat), r = tl(e.lng, t.lng);
11311
+ let n = rl(e.lat, t.lat), r = rl(e.lng, t.lng);
11180
11312
  return {
11181
- lat: $c(n),
11182
- lng: el(r)
11313
+ lat: tl(n),
11314
+ lng: nl(r)
11183
11315
  };
11184
- }, il = (e, t = "Ubicación") => ({
11316
+ }, ol = (e, t = "Ubicación") => ({
11185
11317
  id: `${e.lat}:${e.lng}`,
11186
11318
  position: e,
11187
11319
  label: t
11188
- }), al = () => ({
11320
+ }), sl = () => ({
11189
11321
  id: "nominatim",
11190
11322
  capabilities: { geocoding: "basic" },
11191
11323
  async geocode(e) {
11192
- return (await go(e)).map((e) => ({
11324
+ return (await _o(e)).map((e) => ({
11193
11325
  id: `${e.lat}:${e.lng}:${e.label}`,
11194
- label: _o(e.label),
11326
+ label: vo(e.label),
11195
11327
  address: e.label,
11196
11328
  location: {
11197
11329
  lat: e.lat,
@@ -11209,13 +11341,13 @@ var sr = (e) => {
11209
11341
  provider: "nominatim"
11210
11342
  };
11211
11343
  }
11212
- }), ol = (e) => ({
11344
+ }), cl = (e) => ({
11213
11345
  id: e.id,
11214
11346
  capabilities: { places: e.capabilities.geocoding === "none" ? "none" : "basic" },
11215
11347
  searchPlaces(t) {
11216
11348
  return e.geocode(t);
11217
11349
  }
11218
- }), sl = () => ({
11350
+ }), ll = () => ({
11219
11351
  id: "basic",
11220
11352
  capabilities: {
11221
11353
  routing: "basic",
@@ -11233,31 +11365,31 @@ var sr = (e) => {
11233
11365
  ]
11234
11366
  };
11235
11367
  }
11236
- }), cl = i({}), ll = (e) => {
11368
+ }), ul = i({}), dl = (e) => {
11237
11369
  let t = e.services?.geocoding ?? e.defaultEngine, n = e.engines.google;
11238
- return t === "google" && n ? Xc(n) : al();
11239
- }, ul = (e) => {
11240
- let t = e.defaultEngine === "google" ? Rc(e.engines.google) : Uc(e.engines.leaflet), n = ll(e);
11370
+ return t === "google" && n ? Qc(n) : sl();
11371
+ }, fl = (e) => {
11372
+ let t = e.defaultEngine === "google" ? Bc(e.engines.google) : Gc(e.engines.leaflet), n = dl(e);
11241
11373
  return {
11242
11374
  config: e,
11243
11375
  engine: t,
11244
11376
  geocodingService: n,
11245
- placesService: ol(n),
11246
- routingService: sl(),
11247
- distanceService: qc()
11377
+ placesService: cl(n),
11378
+ routingService: ll(),
11379
+ distanceService: Yc()
11248
11380
  };
11249
- }, dl = ({ maps: e, children: t }) => {
11250
- let n = p(() => ({ maps: e ? ul(e) : void 0 }), [e]);
11251
- return /* @__PURE__ */ v(cl.Provider, {
11381
+ }, pl = ({ maps: e, children: t }) => {
11382
+ let n = p(() => ({ maps: e ? fl(e) : void 0 }), [e]);
11383
+ return /* @__PURE__ */ v(ul.Provider, {
11252
11384
  value: n,
11253
11385
  children: t
11254
11386
  });
11255
- }, fl = () => c(cl), pl = () => {
11256
- let e = fl();
11257
- if (!e.maps) throw Error(Cc);
11387
+ }, ml = () => c(ul), hl = () => {
11388
+ let e = ml();
11389
+ if (!e.maps) throw Error(Tc);
11258
11390
  return e.maps;
11259
- }, ml = () => {
11260
- let e = pl(), [t, n] = h(!1), [r, i] = h([]), [a, o] = h(null), c = m(0);
11391
+ }, gl = () => {
11392
+ let e = hl(), [t, n] = h(!1), [r, i] = h([]), [a, o] = h(null), c = m(0);
11261
11393
  return {
11262
11394
  loading: t,
11263
11395
  results: r,
@@ -11281,18 +11413,18 @@ var sr = (e) => {
11281
11413
  }
11282
11414
  }, [e.geocodingService])
11283
11415
  };
11284
- }, hl = () => {
11285
- let e = pl();
11416
+ }, _l = () => {
11417
+ let e = hl();
11286
11418
  return p(() => ({
11287
11419
  id: e.engine.id,
11288
11420
  capabilities: e.engine.capabilities,
11289
11421
  renderer: e.engine.createRenderer()
11290
11422
  }), [e.engine]);
11291
- }, gl = () => pl().config, _l = (e) => e && typeof e == "object" && "label" in e ? String(e.label ?? "") : "", vl = ({ 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 }) => {
11423
+ }, vl = () => hl().config, yl = (e) => e && typeof e == "object" && "label" in e ? String(e.label ?? "") : "", bl = ({ 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 }) => {
11292
11424
  let d = b({
11293
11425
  name: t,
11294
11426
  control: e.control
11295
- }), { loading: f, results: p, error: m, search: g } = ml(), [_, x] = h(() => _l(d.field.value)), S = String(t), C = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, w = o || s, T = (e) => {
11427
+ }), { loading: f, results: p, error: m, search: g } = gl(), [_, x] = h(() => yl(d.field.value)), S = String(t), C = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, w = o || s, T = (e) => {
11296
11428
  d.field.onChange(e), l?.(e);
11297
11429
  };
11298
11430
  return /* @__PURE__ */ v(Z, {
@@ -11359,9 +11491,9 @@ var sr = (e) => {
11359
11491
  ]
11360
11492
  })
11361
11493
  });
11362
- }, yl = ({ title: e, description: t, center: n = wc, 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 }) => {
11363
- let g = hl();
11364
- return /* @__PURE__ */ v(xc, {
11494
+ }, xl = ({ title: e, description: t, center: n = Ec, 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 }) => {
11495
+ let g = _l();
11496
+ return /* @__PURE__ */ v(Cc, {
11365
11497
  title: e,
11366
11498
  description: t,
11367
11499
  className: c,
@@ -11380,16 +11512,16 @@ var sr = (e) => {
11380
11512
  onMarkerDragEnd: h
11381
11513
  })
11382
11514
  });
11383
- }, bl = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
11515
+ }, Sl = ({ form: e, name: t, label: n, info: r, required: i, zoom: a = 13, readOnly: o, disabled: s, className: c, onChange: l, onRefresh: u }) => {
11384
11516
  let [d, f] = h(!1), [p, m] = h(null), g = b({
11385
11517
  name: t,
11386
11518
  control: e.control
11387
- }), _ = String(t), x = g.fieldState.error?.message ? String(g.fieldState.error.message) : void 0, S = o || s, C = rl(g.field.value, wc), w = (e) => {
11519
+ }), _ = String(t), x = g.fieldState.error?.message ? String(g.fieldState.error.message) : void 0, S = o || s, C = al(g.field.value, Ec), w = (e) => {
11388
11520
  g.field.onChange(e), l?.(e);
11389
11521
  }, T = (e, t) => {
11390
11522
  w({
11391
11523
  ...C,
11392
- [e]: tl(t, C[e])
11524
+ [e]: rl(t, C[e])
11393
11525
  });
11394
11526
  };
11395
11527
  return /* @__PURE__ */ v(Z, {
@@ -11412,7 +11544,7 @@ var sr = (e) => {
11412
11544
  id: `${_}-lat`,
11413
11545
  type: "text",
11414
11546
  inputMode: "decimal",
11415
- value: Zc(C.lat),
11547
+ value: $c(C.lat),
11416
11548
  readOnly: S,
11417
11549
  disabled: s,
11418
11550
  "aria-invalid": !!x || void 0,
@@ -11432,7 +11564,7 @@ var sr = (e) => {
11432
11564
  id: `${_}-lng`,
11433
11565
  type: "text",
11434
11566
  inputMode: "decimal",
11435
- value: Zc(C.lng),
11567
+ value: $c(C.lng),
11436
11568
  readOnly: S,
11437
11569
  disabled: s,
11438
11570
  "aria-invalid": !!x || void 0,
@@ -11451,8 +11583,8 @@ var sr = (e) => {
11451
11583
  onClick: () => {
11452
11584
  !navigator.geolocation || d || S || (f(!0), m(null), navigator.geolocation.getCurrentPosition((e) => {
11453
11585
  w({
11454
- lat: Number(Zc(e.coords.latitude)),
11455
- lng: Number(Zc(e.coords.longitude))
11586
+ lat: Number($c(e.coords.latitude)),
11587
+ lng: Number($c(e.coords.longitude))
11456
11588
  }), m(e.coords.accuracy > 200 ? `Precisión aproximada: ${Math.round(e.coords.accuracy)} m.` : null), f(!1);
11457
11589
  }, () => {
11458
11590
  m("No se pudo obtener la ubicación. Marca el punto en el mapa."), f(!1);
@@ -11472,7 +11604,7 @@ var sr = (e) => {
11472
11604
  role: "status",
11473
11605
  children: p
11474
11606
  }),
11475
- /* @__PURE__ */ v(yl, {
11607
+ /* @__PURE__ */ v(xl, {
11476
11608
  center: C,
11477
11609
  zoom: a,
11478
11610
  height: 220,
@@ -11484,8 +11616,8 @@ var sr = (e) => {
11484
11616
  }],
11485
11617
  onClick: (e) => {
11486
11618
  w({
11487
- lat: Number(Zc(e.location.lat)),
11488
- lng: Number(Zc(e.location.lng))
11619
+ lat: Number($c(e.location.lat)),
11620
+ lng: Number($c(e.location.lng))
11489
11621
  }), g.field.onBlur();
11490
11622
  }
11491
11623
  }),
@@ -11496,19 +11628,19 @@ var sr = (e) => {
11496
11628
  ]
11497
11629
  })
11498
11630
  });
11499
- }, xl = (e) => /* @__PURE__ */ v(bl, { ...e }), Sl = (e) => Array.isArray(e) ? e.map((e) => rl(e, wc)) : [], Cl = (e) => e.length === 0 ? "Sin puntos" : e.length === 1 ? "1 punto" : `${e.length} puntos`, wl = "var(--sf-map-area-stroke)", Tl = "var(--sf-map-area-fill)", El = "var(--sf-map-route-stroke)", Dl = ({ 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 }) => {
11631
+ }, Cl = (e) => /* @__PURE__ */ v(Sl, { ...e }), wl = (e) => Array.isArray(e) ? e.map((e) => al(e, Ec)) : [], Tl = (e) => e.length === 0 ? "Sin puntos" : e.length === 1 ? "1 punto" : `${e.length} puntos`, El = "var(--sf-map-area-stroke)", Dl = "var(--sf-map-area-fill)", Ol = "var(--sf-map-route-stroke)", kl = ({ 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 }) => {
11500
11632
  let f = n === "area" ? 3 : 2, p = `Dibuja al menos ${f} puntos para ${n === "area" ? "un área" : "una ruta"}.`, m = b({
11501
11633
  name: t,
11502
11634
  control: e.control,
11503
11635
  rules: { validate: (e) => {
11504
- let t = Sl(e).length;
11636
+ let t = wl(e).length;
11505
11637
  return t === 0 && !a ? !0 : t < f ? p : !0;
11506
11638
  } }
11507
- }), h = String(t), g = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, _ = s || c, x = Sl(m.field.value), S = x.at(-1) ?? wc, C = {
11639
+ }), h = String(t), g = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, _ = s || c, x = wl(m.field.value), S = x.at(-1) ?? Ec, C = {
11508
11640
  id: `${h}-${n}`,
11509
11641
  points: x,
11510
- color: n === "area" ? wl : El,
11511
- fillColor: n === "area" ? Tl : void 0
11642
+ color: n === "area" ? El : Ol,
11643
+ fillColor: n === "area" ? Dl : void 0
11512
11644
  }, w = (e) => {
11513
11645
  m.field.onChange(e), u?.(e);
11514
11646
  }, T = () => w(x.slice(0, -1)), E = () => w([]), D = (e, t, n) => e.map((e, r) => r === t ? n : e), O = (e) => {
@@ -11541,7 +11673,7 @@ var sr = (e) => {
11541
11673
  children: "Limpiar"
11542
11674
  })]
11543
11675
  }),
11544
- /* @__PURE__ */ v(yl, {
11676
+ /* @__PURE__ */ v(xl, {
11545
11677
  center: S,
11546
11678
  zoom: o,
11547
11679
  height: 260,
@@ -11550,7 +11682,7 @@ var sr = (e) => {
11550
11682
  id: `${h}-point-${t}`,
11551
11683
  position: e,
11552
11684
  label: String(t + 1),
11553
- color: n === "area" ? wl : El,
11685
+ color: n === "area" ? El : Ol,
11554
11686
  options: { draggable: !_ }
11555
11687
  })),
11556
11688
  areas: n === "area" && x.length >= 3 ? [C] : [],
@@ -11573,7 +11705,7 @@ var sr = (e) => {
11573
11705
  className: "sf-map-hint",
11574
11706
  "aria-live": "polite",
11575
11707
  children: [
11576
- Cl(x),
11708
+ Tl(x),
11577
11709
  " · Clic para añadir. Arrastra un punto para moverlo. Doble clic para eliminar.",
11578
11710
  " ",
11579
11711
  /* @__PURE__ */ v("span", {
@@ -11585,38 +11717,38 @@ var sr = (e) => {
11585
11717
  ]
11586
11718
  })
11587
11719
  });
11588
- }, Ol = (e) => /* @__PURE__ */ v(Dl, {
11720
+ }, Al = (e) => /* @__PURE__ */ v(kl, {
11589
11721
  ...e,
11590
11722
  mode: "area"
11591
- }), kl = (e) => /* @__PURE__ */ v(Dl, {
11723
+ }), jl = (e) => /* @__PURE__ */ v(kl, {
11592
11724
  ...e,
11593
11725
  mode: "route"
11594
- }), Al = (e) => {
11726
+ }), Ml = (e) => {
11595
11727
  switch (e.kind) {
11596
- case "coordinates": return /* @__PURE__ */ v(xl, { ...e });
11597
- case "location": return /* @__PURE__ */ v(bl, { ...e });
11598
- case "address": return /* @__PURE__ */ v(vl, { ...e });
11599
- case "area": return /* @__PURE__ */ v(Ol, { ...e });
11600
- case "route": return /* @__PURE__ */ v(kl, { ...e });
11728
+ case "coordinates": return /* @__PURE__ */ v(Cl, { ...e });
11729
+ case "location": return /* @__PURE__ */ v(Sl, { ...e });
11730
+ case "address": return /* @__PURE__ */ v(bl, { ...e });
11731
+ case "area": return /* @__PURE__ */ v(Al, { ...e });
11732
+ case "route": return /* @__PURE__ */ v(jl, { ...e });
11601
11733
  default: return null;
11602
11734
  }
11603
- }, jl = /^#[0-9a-fA-F]{6}$/, Ml = "#".padEnd(7, "0"), Nl = () => {
11735
+ }, Nl = /^#[0-9a-fA-F]{6}$/, Pl = "#".padEnd(7, "0"), Fl = () => {
11604
11736
  if (typeof document > "u") return "";
11605
11737
  let e = getComputedStyle(document.documentElement).getPropertyValue("--sf-primary").trim();
11606
- return jl.test(e) ? e.toLowerCase() : "";
11607
- }, Pl = (e, t, n) => Math.min(n, Math.max(t, e)), Fl = (e, t) => t?.formatValue ? t.formatValue(e) : t?.suffix ? `${e} ${t.suffix}` : String(e), Il = () => [], Ll = (e) => Array.isArray(e) ? e.map((e) => String(e ?? "").trim()).filter(Boolean) : [], Rl = () => [], zl = (e) => Array.isArray(e) ? e.map((e) => {
11738
+ return Nl.test(e) ? e.toLowerCase() : "";
11739
+ }, Il = (e, t, n) => Math.min(n, Math.max(t, e)), Ll = (e, t) => t?.formatValue ? t.formatValue(e) : t?.suffix ? `${e} ${t.suffix}` : String(e), Rl = () => [], zl = (e) => Array.isArray(e) ? e.map((e) => String(e ?? "").trim()).filter(Boolean) : [], Bl = () => [], Vl = (e) => Array.isArray(e) ? e.map((e) => {
11608
11740
  if (typeof e != "object" || !e) return null;
11609
11741
  let t = e;
11610
11742
  return {
11611
11743
  key: String(t.key ?? ""),
11612
11744
  value: String(t.value ?? "")
11613
11745
  };
11614
- }).filter((e) => e != null) : [], Bl = (e = 0, t = 100) => ({
11746
+ }).filter((e) => e != null) : [], Hl = (e = 0, t = 100) => ({
11615
11747
  start: e,
11616
11748
  end: t
11617
- }), Vl = (e, t = 0, n = 100) => {
11749
+ }), Ul = (e, t = 0, n = 100) => {
11618
11750
  if (e && typeof e == "object" && "start" in e && "end" in e) {
11619
- let r = e, i = Pl(Number(r.start), t, n), a = Pl(Number(r.end), t, n);
11751
+ let r = e, i = Il(Number(r.start), t, n), a = Il(Number(r.end), t, n);
11620
11752
  return i <= a ? {
11621
11753
  start: i,
11622
11754
  end: a
@@ -11625,15 +11757,15 @@ var sr = (e) => {
11625
11757
  end: i
11626
11758
  };
11627
11759
  }
11628
- return Bl(t, n);
11629
- }, Hl = (e, t) => {
11630
- let n = Nl(), r = String(t ?? (n || Ml)).trim(), i = jl.test(r) ? r.toLowerCase() : Ml, a = String(e ?? i).trim();
11631
- return jl.test(a) ? a.toLowerCase() : i;
11632
- }, Ul = (e, t, n) => n <= t ? 0 : Math.round((Pl(e, t, n) - t) / (n - t) * 100), Wl = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), Gl = ({ 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 }) => {
11760
+ return Hl(t, n);
11761
+ }, Wl = (e, t) => {
11762
+ let n = Fl(), r = String(t ?? (n || Pl)).trim(), i = Nl.test(r) ? r.toLowerCase() : Pl, a = String(e ?? i).trim();
11763
+ return Nl.test(a) ? a.toLowerCase() : i;
11764
+ }, Gl = (e, t, n) => n <= t ? 0 : Math.round((Il(e, t, n) - t) / (n - t) * 100), Kl = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), ql = ({ 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 }) => {
11633
11765
  let h = b({
11634
11766
  name: t,
11635
11767
  control: e.control
11636
- }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Pl(Number(h.field.value ?? a), a, o), C = (e) => {
11768
+ }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Il(Number(h.field.value ?? a), a, o), C = (e) => {
11637
11769
  h.field.onChange(e), p?.(e);
11638
11770
  };
11639
11771
  return /* @__PURE__ */ v(Z, {
@@ -11657,17 +11789,17 @@ var sr = (e) => {
11657
11789
  "aria-invalid": !!_ || void 0,
11658
11790
  onBlur: () => h.field.onBlur(),
11659
11791
  onChange: (e) => C(Number(e.target.value)),
11660
- className: Wl(x)
11792
+ className: Kl(x)
11661
11793
  }), /* @__PURE__ */ v("span", {
11662
11794
  className: "sf-slider__value",
11663
- children: Fl(S, {
11795
+ children: Ll(S, {
11664
11796
  suffix: c,
11665
11797
  formatValue: f
11666
11798
  })
11667
11799
  })]
11668
11800
  })
11669
11801
  });
11670
- }, Kl = {
11802
+ }, Jl = {
11671
11803
  slate: {
11672
11804
  wrap: "border-slate-300 bg-white",
11673
11805
  button: "bg-slate-50 text-slate-600 hover:bg-slate-100",
@@ -11688,7 +11820,7 @@ var sr = (e) => {
11688
11820
  button: "bg-blue-50 text-blue-700 hover:bg-blue-100",
11689
11821
  value: "text-blue-700"
11690
11822
  }
11691
- }, ql = {
11823
+ }, Yl = {
11692
11824
  sm: {
11693
11825
  button: "h-6 w-6",
11694
11826
  icon: "h-3 w-3",
@@ -11699,13 +11831,13 @@ var sr = (e) => {
11699
11831
  icon: "h-3.5 w-3.5",
11700
11832
  value: "min-w-[2.5rem] px-1.5 text-sm"
11701
11833
  }
11702
- }, Jl = (e, t) => {
11834
+ }, Xl = (e, t) => {
11703
11835
  let n = (String(t).split(".")[1] ?? "").length;
11704
11836
  return Number(e.toFixed(n));
11705
- }, Yl = ({ 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 }) => {
11706
- let f = Kl[a], p = ql[o], m = s || c, h = (a) => {
11837
+ }, Zl = ({ 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 }) => {
11838
+ let f = Jl[a], p = Yl[o], m = s || c, h = (a) => {
11707
11839
  if (m) return;
11708
- let o = Math.min(r, Math.max(n, Jl(a, i)));
11840
+ let o = Math.min(r, Math.max(n, Xl(a, i)));
11709
11841
  o !== e && t(o);
11710
11842
  }, 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);
11711
11843
  return /* @__PURE__ */ y("div", {
@@ -11741,11 +11873,11 @@ var sr = (e) => {
11741
11873
  })
11742
11874
  ]
11743
11875
  });
11744
- }, Xl = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), Zl = ({ 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 }) => {
11876
+ }, Ql = (e) => (0, X.default)("sf-range-input", e && "pointer-events-none"), $l = ({ 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 }) => {
11745
11877
  let h = b({
11746
11878
  name: t,
11747
11879
  control: e.control
11748
- }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Vl(h.field.value, a, o), C = (e) => {
11880
+ }), g = String(t), _ = h.fieldState.error?.message ? String(h.fieldState.error.message) : void 0, x = l || u, S = Ul(h.field.value, a, o), C = (e) => {
11749
11881
  h.field.onChange(e), p?.(e);
11750
11882
  }, w = {
11751
11883
  suffix: c,
@@ -11763,7 +11895,7 @@ var sr = (e) => {
11763
11895
  children: [
11764
11896
  /* @__PURE__ */ v("span", {
11765
11897
  className: "sf-slider__value sf-slider__value--sm",
11766
- children: Fl(S.start, w)
11898
+ children: Ll(S.start, w)
11767
11899
  }),
11768
11900
  /* @__PURE__ */ y("div", {
11769
11901
  className: "grid flex-1 gap-2",
@@ -11785,7 +11917,7 @@ var sr = (e) => {
11785
11917
  end: Math.max(t, S.end)
11786
11918
  });
11787
11919
  },
11788
- className: Xl(x)
11920
+ className: Ql(x)
11789
11921
  }), /* @__PURE__ */ v("input", {
11790
11922
  id: `${g}-end`,
11791
11923
  type: "range",
@@ -11804,21 +11936,21 @@ var sr = (e) => {
11804
11936
  end: t
11805
11937
  });
11806
11938
  },
11807
- className: Xl(x)
11939
+ className: Ql(x)
11808
11940
  })]
11809
11941
  }),
11810
11942
  /* @__PURE__ */ v("span", {
11811
11943
  className: "sf-slider__value sf-slider__value--sm",
11812
- children: Fl(S.end, w)
11944
+ children: Ll(S.end, w)
11813
11945
  })
11814
11946
  ]
11815
11947
  })
11816
11948
  });
11817
- }, Ql = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, suffix: s, className: c, formatValue: l, onRefresh: u }) => {
11949
+ }, eu = ({ form: e, name: t, label: n, info: r, required: i, min: a = 0, max: o = 100, suffix: s, className: c, formatValue: l, onRefresh: u }) => {
11818
11950
  let d = b({
11819
11951
  name: t,
11820
11952
  control: e.control
11821
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = Pl(Number(d.field.value ?? a), a, o), h = Ul(m, a, o);
11953
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = Il(Number(d.field.value ?? a), a, o), h = Gl(m, a, o);
11822
11954
  return /* @__PURE__ */ v(Z, {
11823
11955
  id: f,
11824
11956
  label: n,
@@ -11841,21 +11973,21 @@ var sr = (e) => {
11841
11973
  })
11842
11974
  }), /* @__PURE__ */ v("span", {
11843
11975
  className: "sf-progress-bar__value",
11844
- children: Fl(m, {
11976
+ children: Ll(m, {
11845
11977
  suffix: s,
11846
11978
  formatValue: l
11847
11979
  })
11848
11980
  })]
11849
11981
  })
11850
11982
  });
11851
- }, $l = {
11983
+ }, tu = {
11852
11984
  default: "sf-progress-bar-readonly__fill--default",
11853
11985
  success: "sf-progress-bar-readonly__fill--success",
11854
11986
  warning: "sf-progress-bar-readonly__fill--warning",
11855
11987
  danger: "sf-progress-bar-readonly__fill--danger",
11856
11988
  info: "sf-progress-bar-readonly__fill--info"
11857
- }, eu = ({ 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 }) => {
11858
- let u = Pl(e, t, n), d = Ul(u, t, n), f = Fl(u, {
11989
+ }, nu = ({ 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 }) => {
11990
+ let u = Il(e, t, n), d = Gl(u, t, n), f = Ll(u, {
11859
11991
  suffix: a,
11860
11992
  formatValue: o
11861
11993
  });
@@ -11869,7 +12001,7 @@ var sr = (e) => {
11869
12001
  /* @__PURE__ */ v("div", {
11870
12002
  className: "sf-progress-bar-readonly__track",
11871
12003
  children: /* @__PURE__ */ v("div", {
11872
- className: (0, X.default)("sf-progress-bar-readonly__fill", $l[s]),
12004
+ className: (0, X.default)("sf-progress-bar-readonly__fill", tu[s]),
11873
12005
  style: { width: `${d}%` },
11874
12006
  role: "progressbar",
11875
12007
  "aria-label": r ?? "Progreso",
@@ -11884,11 +12016,11 @@ var sr = (e) => {
11884
12016
  })
11885
12017
  ]
11886
12018
  });
11887
- }, tu = ({ 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 }) => {
12019
+ }, ru = ({ 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 }) => {
11888
12020
  let [f, p] = h(0), m = b({
11889
12021
  name: t,
11890
12022
  control: e.control
11891
- }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, y = o || s, x = nu(Number(m.field.value ?? 0), a), S = f || x, C = (e) => {
12023
+ }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, y = o || s, x = iu(Number(m.field.value ?? 0), a), S = f || x, C = (e) => {
11892
12024
  m.field.onChange(e), u?.(e), m.field.onBlur();
11893
12025
  }, w = (e, t) => {
11894
12026
  if (y) return;
@@ -11928,12 +12060,12 @@ var sr = (e) => {
11928
12060
  }, e))
11929
12061
  })
11930
12062
  });
11931
- }, nu = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : Math.min(t, Math.round(e)), ru = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
12063
+ }, iu = (e, t) => !Number.isFinite(e) || e < 0 ? 0 : Math.min(t, Math.round(e)), au = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
11932
12064
  let d = b({
11933
12065
  name: t,
11934
12066
  control: e.control
11935
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = Hl(d.field.value), g = (e) => {
11936
- let t = Hl(e, h);
12067
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = Wl(d.field.value), g = (e) => {
12068
+ let t = Wl(e, h);
11937
12069
  d.field.onChange(t), l?.(t);
11938
12070
  };
11939
12071
  return /* @__PURE__ */ v(Z, {
@@ -11976,11 +12108,11 @@ var sr = (e) => {
11976
12108
  })]
11977
12109
  })
11978
12110
  });
11979
- }, iu = ({ 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 }) => {
12111
+ }, ou = ({ 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 }) => {
11980
12112
  let [f, p] = h(""), m = b({
11981
12113
  name: t,
11982
12114
  control: e.control
11983
- }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, x = s || c, S = Ll(m.field.value), C = o != null && S.length >= o, w = (e) => {
12115
+ }), g = String(t), _ = m.fieldState.error?.message ? String(m.fieldState.error.message) : void 0, x = s || c, S = zl(m.field.value), C = o != null && S.length >= o, w = (e) => {
11984
12116
  m.field.onChange(e), u?.(e);
11985
12117
  }, T = () => {
11986
12118
  let e = f.trim();
@@ -12032,11 +12164,11 @@ var sr = (e) => {
12032
12164
  })]
12033
12165
  })
12034
12166
  });
12035
- }, au = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
12167
+ }, su = ({ form: e, name: t, label: n, info: r, required: i, readOnly: a, disabled: o, small: s, className: c, onChange: l, onRefresh: u }) => {
12036
12168
  let d = b({
12037
12169
  name: t,
12038
12170
  control: e.control
12039
- }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = zl(d.field.value), g = (e) => {
12171
+ }), f = String(t), p = d.fieldState.error?.message ? String(d.fieldState.error.message) : void 0, m = a || o, h = Vl(d.field.value), g = (e) => {
12040
12172
  d.field.onChange(e), l?.(e);
12041
12173
  }, _ = (e, t, n) => {
12042
12174
  g(h.map((r, i) => i === e ? {
@@ -12121,7 +12253,7 @@ var sr = (e) => {
12121
12253
  })]
12122
12254
  })
12123
12255
  });
12124
- }, ou = ({ items: e, onReorder: t, className: n }) => {
12256
+ }, cu = ({ items: e, onReorder: t, className: n }) => {
12125
12257
  let [r, i] = h(null), a = (n) => (a) => {
12126
12258
  if (a.preventDefault(), !r) return;
12127
12259
  let o = e.findIndex((e) => e.id === r);
@@ -12147,7 +12279,7 @@ var sr = (e) => {
12147
12279
  })]
12148
12280
  }, e.id))
12149
12281
  });
12150
- }, su = ({ value: e, onChange: t, options: n, name: r = "card-radio-group", className: i, ariaLabel: a = "Opciones" }) => /* @__PURE__ */ v("div", {
12282
+ }, lu = ({ value: e, onChange: t, options: n, name: r = "card-radio-group", className: i, ariaLabel: a = "Opciones" }) => /* @__PURE__ */ v("div", {
12151
12283
  className: (0, X.default)("sf-card-radio-group", i),
12152
12284
  role: "radiogroup",
12153
12285
  "aria-label": a,
@@ -12184,7 +12316,7 @@ var sr = (e) => {
12184
12316
  ]
12185
12317
  }, n.value);
12186
12318
  })
12187
- }), cu = {
12319
+ }), uu = {
12188
12320
  group: {
12189
12321
  label: "Grupo / Entidad",
12190
12322
  labelShort: "GRP",
@@ -12203,7 +12335,7 @@ var sr = (e) => {
12203
12335
  rowClass: "sf-org-tree-row--role",
12204
12336
  barClass: "sf-org-tree-bar--role"
12205
12337
  }
12206
- }, lu = (e) => {
12338
+ }, du = (e) => {
12207
12339
  let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id));
12208
12340
  for (let n of e) {
12209
12341
  let e = n.parentId == null || n.parentId === "" ? null : n.parentId, r = t.get(e) ?? [];
@@ -12230,16 +12362,16 @@ var sr = (e) => {
12230
12362
  hasChildren: !1
12231
12363
  });
12232
12364
  return r;
12233
- }, uu = (e, t = cu) => t[e] ?? cu[e] ?? null, du = (e) => e.length, fu = (e) => {
12365
+ }, fu = (e, t = uu) => t[e] ?? uu[e] ?? null, pu = (e) => e.length, mu = (e) => {
12234
12366
  let t = new Set(e.map((e) => e.id));
12235
12367
  return e.filter((e) => {
12236
12368
  let n = e.parentId == null || e.parentId === "" ? null : e.parentId;
12237
12369
  return n == null || !t.has(n);
12238
12370
  });
12239
- }, pu = ({ type: e, className: t }) => v(e === "group" ? ut : e === "role" ? Ve : q, {
12371
+ }, hu = ({ type: e, className: t }) => v(e === "group" ? ut : e === "role" ? Ve : q, {
12240
12372
  className: t,
12241
12373
  "aria-hidden": "true"
12242
- }), mu = ({ 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 = cu, onRenderNode: _, maxHeight: b = 480, className: x }) => {
12374
+ }), gu = ({ 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 = uu, onRenderNode: _, maxHeight: b = 480, className: x }) => {
12243
12375
  let [S, C] = h(/* @__PURE__ */ new Set()), [w, T] = h({
12244
12376
  visible: !1,
12245
12377
  x: 0,
@@ -12262,7 +12394,7 @@ var sr = (e) => {
12262
12394
  window.removeEventListener("mousedown", e), window.removeEventListener("keydown", t);
12263
12395
  };
12264
12396
  }, [w.visible]);
12265
- let D = p(() => lu(e), [e]), O = s((e) => {
12397
+ let D = p(() => du(e), [e]), O = s((e) => {
12266
12398
  let t = e.parentId == null || e.parentId === "" ? null : e.parentId;
12267
12399
  for (; t != null;) {
12268
12400
  if (S.has(t)) return !0;
@@ -12299,7 +12431,7 @@ var sr = (e) => {
12299
12431
  children: [/* @__PURE__ */ v("span", {
12300
12432
  className: "sf-org-tree__title",
12301
12433
  children: t
12302
- }), r && /* @__PURE__ */ v(Fr, { size: "sm" })]
12434
+ }), r && /* @__PURE__ */ v(Ir, { size: "sm" })]
12303
12435
  }),
12304
12436
  n && /* @__PURE__ */ v("p", {
12305
12437
  className: "sf-org-tree__subtitle",
@@ -12349,7 +12481,7 @@ var sr = (e) => {
12349
12481
  className: "sf-org-tree__empty",
12350
12482
  children: "Sin nodos"
12351
12483
  }), k.map((e) => {
12352
- let t = uu(e.type, g);
12484
+ let t = fu(e.type, g);
12353
12485
  return /* @__PURE__ */ v("li", {
12354
12486
  role: "treeitem",
12355
12487
  "aria-level": e.depth + 1,
@@ -12369,7 +12501,7 @@ var sr = (e) => {
12369
12501
  tabIndex: e.hasChildren ? 0 : -1,
12370
12502
  children: S.has(e.id) ? /* @__PURE__ */ v(it, { className: "h-4 w-4" }) : /* @__PURE__ */ v(ot, { className: "h-4 w-4" })
12371
12503
  }),
12372
- /* @__PURE__ */ v(pu, {
12504
+ /* @__PURE__ */ v(hu, {
12373
12505
  type: e.type,
12374
12506
  className: "h-4 w-4 shrink-0 opacity-70"
12375
12507
  }),
@@ -12454,7 +12586,7 @@ var sr = (e) => {
12454
12586
  })
12455
12587
  ]
12456
12588
  });
12457
- }, hu = {
12589
+ }, _u = {
12458
12590
  street: {
12459
12591
  url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
12460
12592
  attribution: "&copy; <a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\" rel=\"noreferrer\">OpenStreetMap</a>"
@@ -12463,27 +12595,27 @@ var sr = (e) => {
12463
12595
  url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
12464
12596
  attribution: "Tiles &copy; Esri — Source: Esri, Maxar, Earthstar Geographics, and the GIS User Community"
12465
12597
  }
12466
- }, gu = {
12598
+ }, vu = {
12467
12599
  default: "Nodo",
12468
12600
  nap: "NAP",
12469
12601
  olt: "OLT",
12470
12602
  splitter: "Splitter"
12471
- }, _u = {
12603
+ }, yu = {
12472
12604
  default: "var(--sf-accent)",
12473
12605
  nap: "var(--sf-network-kind-nap)",
12474
12606
  olt: "var(--sf-network-kind-olt)",
12475
12607
  splitter: "var(--sf-network-kind-splitter)"
12476
- }, vu = {
12608
+ }, bu = {
12477
12609
  normal: "var(--sf-network-status-normal)",
12478
12610
  warning: "var(--sf-network-status-warning)",
12479
12611
  critical: "var(--sf-network-status-critical)",
12480
12612
  maintenance: "var(--sf-network-status-maintenance)"
12481
- }, yu = {
12613
+ }, xu = {
12482
12614
  normal: "Normal",
12483
12615
  warning: "Advertencia",
12484
12616
  critical: "Crítico",
12485
12617
  maintenance: "Mantenimiento"
12486
- }, bu = {
12618
+ }, Su = {
12487
12619
  backbone: {
12488
12620
  color: "var(--sf-network-edge-backbone)",
12489
12621
  weight: 2.5
@@ -12497,7 +12629,7 @@ var sr = (e) => {
12497
12629
  weight: 1.5,
12498
12630
  dashArray: "6 4"
12499
12631
  }
12500
- }, xu = Nc, Su = (e) => {
12632
+ }, Cu = Fc, wu = (e) => {
12501
12633
  if (!Array.isArray(e)) return [];
12502
12634
  let t = [];
12503
12635
  for (let n of e) {
@@ -12506,24 +12638,24 @@ var sr = (e) => {
12506
12638
  if (!r) continue;
12507
12639
  let i = Number(e.lat), a = Number(e.lng);
12508
12640
  if (!Number.isFinite(i) || !Number.isFinite(a)) continue;
12509
- let o = String(e.status ?? "normal"), s = o in vu ? o : "normal", c = {
12641
+ let o = String(e.status ?? "normal"), s = o in bu ? o : "normal", c = {
12510
12642
  id: r,
12511
12643
  label: String(e.label ?? ""),
12512
12644
  lat: i,
12513
12645
  lng: a,
12514
12646
  status: s
12515
12647
  }, l = e.kind == null ? r.startsWith("nap:") ? "nap" : "default" : String(e.kind);
12516
- l in gu && (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);
12648
+ l in vu && (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);
12517
12649
  }
12518
12650
  return t;
12519
- }, Cu = (e) => {
12651
+ }, Tu = (e) => {
12520
12652
  if (!Array.isArray(e)) return [];
12521
12653
  let t = [];
12522
12654
  for (let n of e) {
12523
12655
  if (typeof n != "object" || !n) continue;
12524
12656
  let e = n, r = String(e.from ?? ""), i = String(e.to ?? "");
12525
12657
  if (!r || !i) continue;
12526
- let a = String(e.type ?? "backbone"), o = a in bu ? a : "backbone";
12658
+ let a = String(e.type ?? "backbone"), o = a in Su ? a : "backbone";
12527
12659
  t.push({
12528
12660
  from: r,
12529
12661
  to: i,
@@ -12531,7 +12663,7 @@ var sr = (e) => {
12531
12663
  });
12532
12664
  }
12533
12665
  return t;
12534
- }, wu = (e) => {
12666
+ }, Eu = (e) => {
12535
12667
  let t = {
12536
12668
  normal: 0,
12537
12669
  warning: 0,
@@ -12540,18 +12672,18 @@ var sr = (e) => {
12540
12672
  };
12541
12673
  for (let n of e) t[n.status] += 1;
12542
12674
  return t;
12543
- }, Tu = (e) => {
12675
+ }, Du = (e) => {
12544
12676
  if (e.length === 0) return null;
12545
12677
  let t = e.map((e) => e.lat), n = e.map((e) => e.lng);
12546
12678
  return [[Math.min(...t), Math.min(...n)], [Math.max(...t), Math.max(...n)]];
12547
- }, Eu = (e) => Object.fromEntries(e.map((e) => [e.id, [e.lat, e.lng]])), Du = (e, t) => e.flatMap((e) => {
12679
+ }, Ou = (e) => Object.fromEntries(e.map((e) => [e.id, [e.lat, e.lng]])), ku = (e, t) => e.flatMap((e) => {
12548
12680
  let n = t[e.from], r = t[e.to];
12549
12681
  return !n || !r ? [] : [{
12550
12682
  edge: e,
12551
12683
  line: [n, r]
12552
12684
  }];
12553
- }), Ou = ({ nodes: e, edges: t = [], placement: n = "bottom-left", className: r }) => {
12554
- let i = wu(e), a = Array.from(new Set(t.map((e) => e.type ?? "backbone")));
12685
+ }), Au = ({ nodes: e, edges: t = [], placement: n = "bottom-left", className: r }) => {
12686
+ let i = Eu(e), a = Array.from(new Set(t.map((e) => e.type ?? "backbone")));
12555
12687
  return /* @__PURE__ */ y("div", {
12556
12688
  className: (0, X.default)("sf-network-legend", n === "bottom-right" ? "sf-network-legend--right" : "sf-network-legend--left", r),
12557
12689
  role: "region",
@@ -12563,15 +12695,15 @@ var sr = (e) => {
12563
12695
  }),
12564
12696
  /* @__PURE__ */ v("ul", {
12565
12697
  className: "space-y-1",
12566
- children: Object.keys(yu).map((e) => /* @__PURE__ */ y("li", {
12698
+ children: Object.keys(xu).map((e) => /* @__PURE__ */ y("li", {
12567
12699
  className: "sf-network-legend__item",
12568
12700
  children: [/* @__PURE__ */ y("span", {
12569
12701
  className: "flex items-center gap-2",
12570
12702
  children: [/* @__PURE__ */ v("span", {
12571
12703
  className: "inline-block h-2.5 w-2.5 rounded-full",
12572
- style: { background: vu[e] },
12704
+ style: { background: bu[e] },
12573
12705
  "aria-hidden": "true"
12574
- }), yu[e]]
12706
+ }), xu[e]]
12575
12707
  }), /* @__PURE__ */ v("span", {
12576
12708
  className: "sf-network-legend__count",
12577
12709
  children: i[e]
@@ -12584,7 +12716,7 @@ var sr = (e) => {
12584
12716
  }), /* @__PURE__ */ v("ul", {
12585
12717
  className: "space-y-1",
12586
12718
  children: a.map((e) => {
12587
- let t = bu[e ?? "backbone"];
12719
+ let t = Su[e ?? "backbone"];
12588
12720
  return /* @__PURE__ */ y("li", {
12589
12721
  className: "sf-network-legend__item sf-network-legend__item--edge",
12590
12722
  children: [/* @__PURE__ */ v("span", {
@@ -12604,19 +12736,19 @@ var sr = (e) => {
12604
12736
  })
12605
12737
  ]
12606
12738
  });
12607
- }, ku = [-12.0464, -77.0428], Au = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), ju = (e, t) => {
12608
- let n = e.status, r = e.kind ?? "default", i = r === "nap" ? "NAP" : e.value == null ? e.icon ?? gu[r].slice(0, 3).toUpperCase() : `${e.value}%`, a = Au(e.label.length > 40 ? `${e.label.slice(0, 37)}…` : e.label), o = t ? " sf-network-marker--selected" : "";
12739
+ }, ju = [-12.0464, -77.0428], Mu = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Nu = (e, t) => {
12740
+ let n = e.status, r = e.kind ?? "default", i = r === "nap" ? "NAP" : e.value == null ? e.icon ?? vu[r].slice(0, 3).toUpperCase() : `${e.value}%`, a = Mu(e.label.length > 40 ? `${e.label.slice(0, 37)}…` : e.label), o = t ? " sf-network-marker--selected" : "";
12609
12741
  return ae.divIcon({
12610
12742
  className: "sf-network-marker-root",
12611
12743
  iconAnchor: [24, 42],
12612
12744
  iconSize: [48, 48],
12613
12745
  html: `<div class="sf-network-marker${o}">
12614
12746
  <div class="sf-network-marker__label">${a}</div>
12615
- <div class="sf-network-marker__dot sf-network-marker__dot--status-${n} sf-network-marker__dot--kind-${r}">${Au(String(i))}</div>
12747
+ <div class="sf-network-marker__dot sf-network-marker__dot--status-${n} sf-network-marker__dot--kind-${r}">${Mu(String(i))}</div>
12616
12748
  </div>`
12617
12749
  });
12618
- }, Mu = ({ nodes: e }) => {
12619
- let t = re(), n = Tu(e);
12750
+ }, Pu = ({ nodes: e }) => {
12751
+ let t = re(), n = Du(e);
12620
12752
  return u(() => {
12621
12753
  n && t.fitBounds(n, {
12622
12754
  padding: [32, 32],
@@ -12627,8 +12759,8 @@ var sr = (e) => {
12627
12759
  t,
12628
12760
  e
12629
12761
  ]), null;
12630
- }, Nu = ({ nodes: e, edges: t = [], center: n = ku, 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 }) => {
12631
- let g = co(), [_, b] = h("street"), x = l ?? _, S = hu[x], C = p(() => Eu(e), [e]), w = p(() => Du(t, C), [t, C]), T = (e) => {
12762
+ }, Fu = ({ nodes: e, edges: t = [], center: n = ju, 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 }) => {
12763
+ let g = lo(), [_, b] = h("street"), x = l ?? _, S = _u[x], C = p(() => Ou(e), [e]), w = p(() => ku(t, C), [t, C]), T = (e) => {
12632
12764
  l === void 0 && b(e), u?.(e);
12633
12765
  };
12634
12766
  return /* @__PURE__ */ y("div", {
@@ -12647,13 +12779,13 @@ var sr = (e) => {
12647
12779
  attribution: S.attribution,
12648
12780
  url: S.url
12649
12781
  }),
12650
- c && e.length > 0 && /* @__PURE__ */ v(Mu, { nodes: e }),
12782
+ c && e.length > 0 && /* @__PURE__ */ v(Pu, { nodes: e }),
12651
12783
  w.map(({ edge: e, line: t }) => {
12652
- let n = bu[e.type ?? "backbone"];
12784
+ let n = Su[e.type ?? "backbone"];
12653
12785
  return /* @__PURE__ */ v(V, {
12654
12786
  positions: t,
12655
12787
  pathOptions: {
12656
- color: xu(n.color),
12788
+ color: Cu(n.color),
12657
12789
  weight: n.weight,
12658
12790
  dashArray: n.dashArray
12659
12791
  }
@@ -12661,7 +12793,7 @@ var sr = (e) => {
12661
12793
  }),
12662
12794
  e.map((e) => /* @__PURE__ */ v(ne, {
12663
12795
  position: C[e.id],
12664
- icon: ju(e, e.id === a),
12796
+ icon: Nu(e, e.id === a),
12665
12797
  title: e.label,
12666
12798
  alt: `${e.label}, estado ${e.status}`,
12667
12799
  keyboard: !!o,
@@ -12685,17 +12817,17 @@ var sr = (e) => {
12685
12817
  children: e === "street" ? "Mapa" : "Satélite"
12686
12818
  }, e))
12687
12819
  }),
12688
- s && e.length > 0 && /* @__PURE__ */ v(Ou, {
12820
+ s && e.length > 0 && /* @__PURE__ */ v(Au, {
12689
12821
  nodes: e,
12690
12822
  edges: t
12691
12823
  })
12692
12824
  ]
12693
12825
  });
12694
- }, Pu = {
12826
+ }, Iu = {
12695
12827
  edit: "sf-audit-timeline__icon-wrap--edit",
12696
12828
  sync: "sf-audit-timeline__icon-wrap--sync",
12697
12829
  create: "sf-audit-timeline__icon-wrap--create"
12698
- }, Fu = ({ items: e, sectionTitle: t = "Historial de movimientos", eventCountLabel: n, ariaLabel: r = "Historial de movimientos", emptyMessage: i = "Sin eventos", className: a }) => {
12830
+ }, Lu = ({ items: e, sectionTitle: t = "Historial de movimientos", eventCountLabel: n, ariaLabel: r = "Historial de movimientos", emptyMessage: i = "Sin eventos", className: a }) => {
12699
12831
  let o = n ?? `${e.length} evento${e.length === 1 ? "" : "s"}`;
12700
12832
  return /* @__PURE__ */ y("section", {
12701
12833
  className: (0, X.default)("sf-audit-timeline", a),
@@ -12734,11 +12866,11 @@ var sr = (e) => {
12734
12866
  /* @__PURE__ */ v("div", {
12735
12867
  className: "sf-audit-timeline__marker",
12736
12868
  children: t.icon ? /* @__PURE__ */ v("span", {
12737
- className: (0, X.default)("sf-audit-timeline__icon-wrap", Pu[r]),
12869
+ className: (0, X.default)("sf-audit-timeline__icon-wrap", Iu[r]),
12738
12870
  "aria-hidden": "true",
12739
12871
  children: t.icon
12740
12872
  }) : /* @__PURE__ */ v("span", {
12741
- className: (0, X.default)("sf-audit-timeline__icon-wrap", Pu[r]),
12873
+ className: (0, X.default)("sf-audit-timeline__icon-wrap", Iu[r]),
12742
12874
  "aria-hidden": "true"
12743
12875
  })
12744
12876
  }),
@@ -12774,16 +12906,16 @@ var sr = (e) => {
12774
12906
  })]
12775
12907
  })]
12776
12908
  });
12777
- }, Iu = {
12909
+ }, Ru = {
12778
12910
  info: "sf-record-list__icon--info",
12779
12911
  warning: "sf-record-list__icon--warning",
12780
12912
  success: "sf-record-list__icon--success",
12781
12913
  neutral: "sf-record-list__icon--neutral"
12782
- }, Lu = ({ icon: e, iconTone: t = "info", title: n, subtitle: r, badge: i, actions: a, className: o }) => /* @__PURE__ */ y("article", {
12914
+ }, zu = ({ icon: e, iconTone: t = "info", title: n, subtitle: r, badge: i, actions: a, className: o }) => /* @__PURE__ */ y("article", {
12783
12915
  className: (0, X.default)("sf-record-list__item", o),
12784
12916
  children: [
12785
12917
  e && /* @__PURE__ */ v("span", {
12786
- className: (0, X.default)("sf-record-list__icon", Iu[t]),
12918
+ className: (0, X.default)("sf-record-list__icon", Ru[t]),
12787
12919
  "aria-hidden": "true",
12788
12920
  children: e
12789
12921
  }),
@@ -12797,7 +12929,7 @@ var sr = (e) => {
12797
12929
  children: r
12798
12930
  })]
12799
12931
  }),
12800
- i && /* @__PURE__ */ v(_a, {
12932
+ i && /* @__PURE__ */ v(va, {
12801
12933
  label: i.label,
12802
12934
  variant: i.variant ?? "success",
12803
12935
  dot: i.dot ?? !0,
@@ -12808,7 +12940,7 @@ var sr = (e) => {
12808
12940
  children: a
12809
12941
  })
12810
12942
  ]
12811
- }), Ru = ({ title: e, action: t, items: n, className: r, ariaLabel: i }) => /* @__PURE__ */ y("section", {
12943
+ }), Bu = ({ title: e, action: t, items: n, className: r, ariaLabel: i }) => /* @__PURE__ */ y("section", {
12812
12944
  className: (0, X.default)("sf-record-list", r),
12813
12945
  "aria-label": i ?? (typeof e == "string" ? e : void 0),
12814
12946
  children: [(e || t) && /* @__PURE__ */ y("div", {
@@ -12822,9 +12954,9 @@ var sr = (e) => {
12822
12954
  })]
12823
12955
  }), /* @__PURE__ */ v("div", {
12824
12956
  className: "sf-record-list__items",
12825
- children: n.map((e, t) => /* @__PURE__ */ v(Lu, { ...e }, e.id ?? t))
12957
+ children: n.map((e, t) => /* @__PURE__ */ v(zu, { ...e }, e.id ?? t))
12826
12958
  })]
12827
- }), zu = ({ label: e, pulse: t = !0, className: n }) => /* @__PURE__ */ y("span", {
12959
+ }), Vu = ({ label: e, pulse: t = !0, className: n }) => /* @__PURE__ */ y("span", {
12828
12960
  className: (0, X.default)("sf-live-chip", n),
12829
12961
  children: [/* @__PURE__ */ v("span", {
12830
12962
  className: (0, X.default)("sf-live-chip__dot", t && "sf-live-chip__dot--pulse"),
@@ -12833,12 +12965,12 @@ var sr = (e) => {
12833
12965
  className: "sf-live-chip__label",
12834
12966
  children: e
12835
12967
  })]
12836
- }), Bu = {
12968
+ }), Hu = {
12837
12969
  default: "var(--sf-text, #1B2A38)",
12838
12970
  success: "#1F8A4C",
12839
12971
  warning: "#C76A12",
12840
12972
  danger: "#C0392B"
12841
- }, Vu = {
12973
+ }, Uu = {
12842
12974
  display: "flex",
12843
12975
  alignItems: "center",
12844
12976
  justifyContent: "space-between",
@@ -12849,110 +12981,110 @@ var sr = (e) => {
12849
12981
  border: "1px solid var(--sf-border, #E2E8EC)",
12850
12982
  borderRadius: 13,
12851
12983
  boxShadow: "0 1px 3px rgba(12,33,49,.06), 0 1px 2px rgba(12,33,49,.04)"
12852
- }, Hu = {
12984
+ }, Wu = {
12853
12985
  display: "flex",
12854
12986
  alignItems: "center",
12855
12987
  gap: 14,
12856
12988
  flexWrap: "wrap"
12857
- }, Uu = {
12989
+ }, Gu = {
12858
12990
  width: 1,
12859
12991
  height: 20,
12860
12992
  background: "var(--sf-border, #DCE3E7)"
12861
- }, Wu = {
12993
+ }, Ku = {
12862
12994
  fontSize: 13,
12863
12995
  fontWeight: 600,
12864
12996
  color: "var(--sf-text-subtle, #8A98A4)"
12865
- }, Gu = {
12997
+ }, qu = {
12866
12998
  fontSize: 15,
12867
12999
  fontWeight: 800,
12868
13000
  color: "var(--sf-text, #1B2A38)",
12869
13001
  fontVariantNumeric: "tabular-nums"
12870
- }, Ku = {
13002
+ }, Ju = {
12871
13003
  fontSize: 12.5,
12872
13004
  fontWeight: 800,
12873
13005
  color: "#C76A12"
12874
- }, qu = {
13006
+ }, Yu = {
12875
13007
  fontSize: 13,
12876
13008
  fontWeight: 700,
12877
13009
  color: "var(--sf-text-subtle, #5C7180)"
12878
- }, Ju = {
13010
+ }, Xu = {
12879
13011
  display: "flex",
12880
13012
  alignItems: "center",
12881
13013
  gap: 22,
12882
13014
  margin: 0
12883
- }, Yu = {
13015
+ }, Zu = {
12884
13016
  display: "flex",
12885
13017
  alignItems: "baseline",
12886
13018
  gap: 6
12887
- }, Xu = {
13019
+ }, Qu = {
12888
13020
  fontSize: 10.5,
12889
13021
  fontWeight: 700,
12890
13022
  letterSpacing: ".05em",
12891
13023
  textTransform: "uppercase",
12892
13024
  color: "var(--sf-text-subtle, #8A98A4)"
12893
- }, Zu = ({ liveLabel: e, metrics: t, nextDeparture: n, className: r, ariaLabel: i = "Estado en vivo" }) => /* @__PURE__ */ y("section", {
13025
+ }, $u = ({ liveLabel: e, metrics: t, nextDeparture: n, className: r, ariaLabel: i = "Estado en vivo" }) => /* @__PURE__ */ y("section", {
12894
13026
  className: (0, X.default)("sf-live-status-bar", r),
12895
13027
  "aria-label": i,
12896
- style: Vu,
13028
+ style: Uu,
12897
13029
  children: [/* @__PURE__ */ y("div", {
12898
- style: Hu,
13030
+ style: Wu,
12899
13031
  children: [
12900
- /* @__PURE__ */ v(zu, { label: "En vivo" }),
13032
+ /* @__PURE__ */ v(Vu, { label: "En vivo" }),
12901
13033
  /* @__PURE__ */ v("span", {
12902
- style: qu,
13034
+ style: Yu,
12903
13035
  children: e
12904
13036
  }),
12905
13037
  n && /* @__PURE__ */ y(_, { children: [
12906
13038
  /* @__PURE__ */ v("span", {
12907
- style: Uu,
13039
+ style: Gu,
12908
13040
  "aria-hidden": "true"
12909
13041
  }),
12910
13042
  /* @__PURE__ */ v("span", {
12911
- style: Wu,
13043
+ style: Ku,
12912
13044
  children: n.label ?? "Próxima salida"
12913
13045
  }),
12914
13046
  /* @__PURE__ */ v("span", {
12915
- style: Gu,
13047
+ style: qu,
12916
13048
  children: n.time
12917
13049
  }),
12918
13050
  n.countdown != null && /* @__PURE__ */ v("span", {
12919
- style: Ku,
13051
+ style: Ju,
12920
13052
  children: n.countdown
12921
13053
  })
12922
13054
  ] })
12923
13055
  ]
12924
13056
  }), /* @__PURE__ */ v("dl", {
12925
- style: Ju,
13057
+ style: Xu,
12926
13058
  children: t.map((e, t) => /* @__PURE__ */ y("div", {
12927
- style: Yu,
13059
+ style: Zu,
12928
13060
  children: [/* @__PURE__ */ v("dd", {
12929
13061
  style: {
12930
13062
  margin: 0,
12931
13063
  fontSize: 20,
12932
13064
  fontWeight: 800,
12933
13065
  fontVariantNumeric: "tabular-nums",
12934
- color: Bu[e.accent ?? "default"]
13066
+ color: Hu[e.accent ?? "default"]
12935
13067
  },
12936
13068
  children: e.value
12937
13069
  }), /* @__PURE__ */ v("dt", {
12938
- style: Xu,
13070
+ style: Qu,
12939
13071
  children: e.label
12940
13072
  })]
12941
13073
  }, e.id ?? `${e.label}-${t}`))
12942
13074
  })]
12943
- }), Qu = {
13075
+ }), ed = {
12944
13076
  success: "sf-timeline__dot--success",
12945
13077
  warning: "sf-timeline__dot--warning",
12946
13078
  danger: "sf-timeline__dot--danger",
12947
13079
  info: "sf-timeline__dot--info",
12948
13080
  default: "sf-timeline__dot--default"
12949
- }, $u = {
13081
+ }, td = {
12950
13082
  success: "sf-timeline__icon-wrap--success",
12951
13083
  warning: "sf-timeline__icon-wrap--warning",
12952
13084
  danger: "sf-timeline__icon-wrap--danger",
12953
13085
  info: "sf-timeline__icon-wrap--info",
12954
13086
  default: "sf-timeline__icon-wrap--default"
12955
- }, ed = ({ items: e, ariaLabel: t = "Línea de tiempo", emptyMessage: n = "Sin eventos", className: r }) => /* @__PURE__ */ y("ol", {
13087
+ }, nd = ({ items: e, ariaLabel: t = "Línea de tiempo", emptyMessage: n = "Sin eventos", className: r }) => /* @__PURE__ */ y("ol", {
12956
13088
  className: (0, X.default)("sf-timeline", r),
12957
13089
  "aria-label": t,
12958
13090
  children: [e.length === 0 && /* @__PURE__ */ v("li", {
@@ -12971,11 +13103,11 @@ var sr = (e) => {
12971
13103
  /* @__PURE__ */ v("div", {
12972
13104
  className: "sf-timeline__marker",
12973
13105
  children: t.icon ? /* @__PURE__ */ v("span", {
12974
- className: (0, X.default)("sf-timeline__icon-wrap", $u[r]),
13106
+ className: (0, X.default)("sf-timeline__icon-wrap", td[r]),
12975
13107
  "aria-hidden": "true",
12976
13108
  children: t.icon
12977
13109
  }) : /* @__PURE__ */ v("span", {
12978
- className: (0, X.default)("sf-timeline__dot", Qu[r]),
13110
+ className: (0, X.default)("sf-timeline__dot", ed[r]),
12979
13111
  "aria-hidden": "true"
12980
13112
  })
12981
13113
  }),
@@ -12998,7 +13130,7 @@ var sr = (e) => {
12998
13130
  ]
12999
13131
  }, t.id ?? n);
13000
13132
  })]
13001
- }), td = ({ items: e, autoPlay: t = !1, intervalMs: n = 4e3, showDots: r = !0, showArrows: i = !0, className: a }) => {
13133
+ }), rd = ({ items: e, autoPlay: t = !1, intervalMs: n = 4e3, showDots: r = !0, showArrows: i = !0, className: a }) => {
13002
13134
  let o = m(null), [c, l] = h(0), d = s((t) => {
13003
13135
  let n = o.current;
13004
13136
  if (!n || e.length === 0) return;
@@ -13060,36 +13192,36 @@ var sr = (e) => {
13060
13192
  })
13061
13193
  ]
13062
13194
  });
13063
- }, nd = [
13195
+ }, id = [
13064
13196
  "var(--sf-chart-1)",
13065
13197
  "var(--sf-chart-2)",
13066
13198
  "var(--sf-chart-3)",
13067
13199
  "var(--sf-chart-4)",
13068
13200
  "var(--sf-chart-5)"
13069
- ], rd = (e, t) => e.color ?? nd[t % nd.length], id = {
13201
+ ], ad = (e, t) => e.color ?? id[t % id.length], od = {
13070
13202
  borderRadius: "0.375rem",
13071
13203
  border: "1px solid var(--sf-chart-tooltip-border)",
13072
13204
  background: "var(--sf-chart-tooltip-bg)",
13073
13205
  fontSize: "0.75rem",
13074
13206
  color: "var(--sf-chart-tooltip-text)"
13075
- }, ad = {
13207
+ }, sd = {
13076
13208
  fill: "var(--sf-chart-axis)",
13077
13209
  fontSize: 11
13078
- }, od = {
13210
+ }, cd = {
13079
13211
  fontSize: "0.75rem",
13080
13212
  color: "var(--sf-chart-axis)"
13081
- }, sd = {
13213
+ }, ld = {
13082
13214
  top: 8,
13083
13215
  right: 8,
13084
13216
  left: 0,
13085
13217
  bottom: 0
13086
- }, cd = {
13218
+ }, ud = {
13087
13219
  bar: {
13088
13220
  Root: ue,
13089
13221
  renderSeries: (e) => e.map((e, t) => /* @__PURE__ */ v(le, {
13090
13222
  dataKey: e.key,
13091
13223
  name: e.label ?? e.key,
13092
- fill: rd(e, t),
13224
+ fill: ad(e, t),
13093
13225
  radius: [
13094
13226
  4,
13095
13227
  4,
@@ -13101,7 +13233,7 @@ var sr = (e) => {
13101
13233
  line: {
13102
13234
  Root: me,
13103
13235
  renderSeries: (e) => e.map((e, t) => {
13104
- let n = rd(e, t);
13236
+ let n = ad(e, t);
13105
13237
  return /* @__PURE__ */ v(pe, {
13106
13238
  type: "monotone",
13107
13239
  dataKey: e.key,
@@ -13119,7 +13251,7 @@ var sr = (e) => {
13119
13251
  area: {
13120
13252
  Root: ce,
13121
13253
  renderSeries: (e) => e.map((e, t) => {
13122
- let n = rd(e, t);
13254
+ let n = ad(e, t);
13123
13255
  return /* @__PURE__ */ v(se, {
13124
13256
  type: "monotone",
13125
13257
  dataKey: e.key,
@@ -13131,8 +13263,8 @@ var sr = (e) => {
13131
13263
  }, e.key);
13132
13264
  })
13133
13265
  }
13134
- }, ld = ({ 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 }) => {
13135
- let { Root: d, renderSeries: f } = cd[e], p = t.length > 0 && r.length > 0;
13266
+ }, dd = ({ 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 }) => {
13267
+ let { Root: d, renderSeries: f } = ud[e], p = t.length > 0 && r.length > 0;
13136
13268
  return /* @__PURE__ */ v("div", {
13137
13269
  className: (0, X.default)("sf-chart", s),
13138
13270
  style: { height: i },
@@ -13143,7 +13275,7 @@ var sr = (e) => {
13143
13275
  height: "100%",
13144
13276
  children: /* @__PURE__ */ y(d, {
13145
13277
  data: t,
13146
- margin: sd,
13278
+ margin: ld,
13147
13279
  children: [
13148
13280
  c && /* @__PURE__ */ v(de, {
13149
13281
  strokeDasharray: "3 3",
@@ -13151,16 +13283,16 @@ var sr = (e) => {
13151
13283
  }),
13152
13284
  /* @__PURE__ */ v(_e, {
13153
13285
  dataKey: n,
13154
- tick: ad,
13286
+ tick: sd,
13155
13287
  axisLine: { stroke: "var(--sf-chart-grid)" }
13156
13288
  }),
13157
13289
  /* @__PURE__ */ v(ve, {
13158
- tick: ad,
13290
+ tick: sd,
13159
13291
  axisLine: { stroke: "var(--sf-chart-grid)" },
13160
13292
  width: 48
13161
13293
  }),
13162
- l && /* @__PURE__ */ v(ge, { contentStyle: id }),
13163
- u && /* @__PURE__ */ v(fe, { wrapperStyle: od }),
13294
+ l && /* @__PURE__ */ v(ge, { contentStyle: od }),
13295
+ u && /* @__PURE__ */ v(fe, { wrapperStyle: cd }),
13164
13296
  f(r)
13165
13297
  ]
13166
13298
  })
@@ -13170,8 +13302,8 @@ var sr = (e) => {
13170
13302
  children: o
13171
13303
  })
13172
13304
  });
13173
- }, ud = ({ data: e, dataKey: t, height: n = 40, width: r = "100%", color: i, ariaLabel: a = "Tendencia", emptyMessage: o = "Sin datos", className: s }) => {
13174
- let c = p(() => rd({ color: i }, 0), [i]), l = e.length > 0, u = p(() => ({
13305
+ }, fd = ({ data: e, dataKey: t, height: n = 40, width: r = "100%", color: i, ariaLabel: a = "Tendencia", emptyMessage: o = "Sin datos", className: s }) => {
13306
+ let c = p(() => ad({ color: i }, 0), [i]), l = e.length > 0, u = p(() => ({
13175
13307
  top: 4,
13176
13308
  right: 4,
13177
13309
  left: 4,
@@ -13206,7 +13338,7 @@ var sr = (e) => {
13206
13338
  children: o
13207
13339
  })
13208
13340
  });
13209
- }, dd = ({ className: e }) => /* @__PURE__ */ v("svg", {
13341
+ }, pd = ({ className: e }) => /* @__PURE__ */ v("svg", {
13210
13342
  className: (0, X.default)("inline-block h-[1em] w-[1em]", e),
13211
13343
  stroke: "currentColor",
13212
13344
  fill: "currentColor",
@@ -13215,7 +13347,7 @@ var sr = (e) => {
13215
13347
  xmlns: "http://www.w3.org/2000/svg",
13216
13348
  "aria-hidden": "true",
13217
13349
  children: /* @__PURE__ */ v("path", { d: "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z" })
13218
- }), fd = (e, { initialPageSize: t = 10 } = {}) => {
13350
+ }), md = (e, { initialPageSize: t = 10 } = {}) => {
13219
13351
  let [n, r] = h(""), [i, a] = h(0), [o, s] = h(t), c = p(() => {
13220
13352
  let t = n.trim().toLowerCase();
13221
13353
  return t ? e.filter((e) => Object.values(e).some((e) => String(e ?? "").toLowerCase().includes(t))) : e;
@@ -13242,37 +13374,37 @@ var sr = (e) => {
13242
13374
  ]),
13243
13375
  totalItems: l
13244
13376
  };
13245
- }, pd = (e) => String(e ?? "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim(), md = (e) => typeof e == "string" || typeof e == "number", hd = (e, t) => {
13246
- let n = pd(t);
13377
+ }, hd = (e) => String(e ?? "").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim(), gd = (e) => typeof e == "string" || typeof e == "number", _d = (e, t) => {
13378
+ let n = hd(t);
13247
13379
  return typeof t == "number" && (n = `#${n}`), e.toLowerCase().endsWith("codigo") && !n.startsWith("#") && (n = `.${n}`), n;
13248
- }, gd = (e, t, n) => {
13380
+ }, vd = (e, t, n) => {
13249
13381
  if (t?.length) return [...t];
13250
13382
  let r = new Set(n), i = [];
13251
- for (let t in e) r.has(t) || md(e[t]) && i.push(t);
13383
+ for (let t in e) r.has(t) || gd(e[t]) && i.push(t);
13252
13384
  return i;
13253
- }, _d = (e, t, n) => {
13254
- let r = "", i = gd(e, t, n);
13385
+ }, yd = (e, t, n) => {
13386
+ let r = "", i = vd(e, t, n);
13255
13387
  for (let t of i) {
13256
13388
  let n = e[t];
13257
- if (!md(n)) continue;
13258
- let i = hd(t, n);
13389
+ if (!gd(n)) continue;
13390
+ let i = _d(t, n);
13259
13391
  i && (r += `${i} `);
13260
13392
  }
13261
13393
  return r;
13262
- }, vd = (e) => {
13394
+ }, bd = (e) => {
13263
13395
  let t = e.split(";"), n = [];
13264
13396
  for (let e of t) {
13265
- let t = pd(e);
13397
+ let t = hd(e);
13266
13398
  t.length >= 2 && n.push(t);
13267
13399
  }
13268
13400
  return n;
13269
- }, yd = (e, t) => {
13270
- let [n, r] = h(""), i = l(n), a = t?.filters, o = t?.searchableKeys, s = t?.ignoredKeys, c = p(() => vd(i), [i]), u = p(() => {
13401
+ }, xd = (e, t) => {
13402
+ let [n, r] = h(""), i = l(n), a = t?.filters, o = t?.searchableKeys, s = t?.ignoredKeys, c = p(() => bd(i), [i]), u = p(() => {
13271
13403
  if (!e?.length) return [];
13272
13404
  let t = [];
13273
13405
  for (let n of e) t.push({
13274
13406
  item: n,
13275
- searchIndex: _d(n, o, s)
13407
+ searchIndex: yd(n, o, s)
13276
13408
  });
13277
13409
  return t;
13278
13410
  }, [
@@ -13314,15 +13446,15 @@ var sr = (e) => {
13314
13446
  };
13315
13447
  //#endregion
13316
13448
  //#region src/hooks/useArrayPaginator.ts
13317
- function bd(e, t, n) {
13449
+ function Sd(e, t, n) {
13318
13450
  if (t <= 0) return [];
13319
13451
  let r = Math.max(0, n);
13320
13452
  return r >= e.length ? [] : e.slice(r, r + t);
13321
13453
  }
13322
- var xd = (e, t, n) => {
13454
+ var Cd = (e, t, n) => {
13323
13455
  let r = e?.[n], i = t?.[n];
13324
13456
  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" });
13325
- }, Sd = (e, t) => {
13457
+ }, wd = (e, t) => {
13326
13458
  let [n, r] = h([]), [i, a] = h(() => ({
13327
13459
  limit: Math.max(1, t?.limit ?? 100),
13328
13460
  offset: 0
@@ -13335,7 +13467,7 @@ var xd = (e, t, n) => {
13335
13467
  if (e.length === 0) return [];
13336
13468
  let r = [...e];
13337
13469
  if (n.length > 0) {
13338
- let e = t?.onSortFunc ?? xd, i = t?.strictSort ?? !1;
13470
+ let e = t?.onSortFunc ?? Cd, i = t?.strictSort ?? !1;
13339
13471
  r.sort((t, r) => {
13340
13472
  for (let { id: a, desc: o } of n) {
13341
13473
  if (i && (!(typeof t == "object" && t) || !(typeof r == "object" && r) || !(a in t) || !(a in r))) continue;
@@ -13345,7 +13477,7 @@ var xd = (e, t, n) => {
13345
13477
  return 0;
13346
13478
  });
13347
13479
  }
13348
- return bd(r, o, c);
13480
+ return Sd(r, o, c);
13349
13481
  }, [
13350
13482
  e,
13351
13483
  o,
@@ -13364,7 +13496,7 @@ var xd = (e, t, n) => {
13364
13496
  onSortChange: r,
13365
13497
  pageData: u
13366
13498
  };
13367
- }, Cd = (e, t) => {
13499
+ }, Td = (e, t) => {
13368
13500
  if (typeof window > "u") return t;
13369
13501
  try {
13370
13502
  let n = window.localStorage.getItem(e);
@@ -13372,8 +13504,8 @@ var xd = (e, t, n) => {
13372
13504
  } catch {
13373
13505
  return t;
13374
13506
  }
13375
- }, wd = (e, t) => {
13376
- let [n, r] = h(() => Cd(e, t));
13507
+ }, Ed = (e, t) => {
13508
+ let [n, r] = h(() => Td(e, t));
13377
13509
  return [n, (t) => {
13378
13510
  r((n) => {
13379
13511
  let r = typeof t == "function" ? t(n) : t;
@@ -13383,52 +13515,52 @@ var xd = (e, t, n) => {
13383
13515
  return r;
13384
13516
  });
13385
13517
  }];
13386
- }, Td = (e) => typeof window > "u" ? null : new URL(window.location.href).searchParams.get(e), Ed = (e, t) => {
13518
+ }, Dd = (e) => typeof window > "u" ? null : new URL(window.location.href).searchParams.get(e), Od = (e, t) => {
13387
13519
  if (typeof window > "u") return;
13388
13520
  let n = new URL(window.location.href);
13389
13521
  t != null && t !== "" ? n.searchParams.set(e, t) : n.searchParams.delete(e), window.history.replaceState(null, "", n.toString());
13390
- }, Dd = (e) => {
13391
- Ed(e, null);
13392
- }, Od = (e, t) => {
13522
+ }, kd = (e) => {
13523
+ Od(e, null);
13524
+ }, Ad = (e, t) => {
13393
13525
  let [n, r] = h(() => {
13394
13526
  let n = typeof e == "function" ? e() : e;
13395
13527
  if (!t) return n;
13396
- let r = Td(t);
13397
- return r == null || r === "" ? (Ed(t, n), n) : r;
13528
+ let r = Dd(t);
13529
+ return r == null || r === "" ? (Od(t, n), n) : r;
13398
13530
  });
13399
13531
  return [n, (e) => {
13400
13532
  r((n) => {
13401
13533
  let r = typeof e == "function" ? e(n) : e;
13402
- return t && Ed(t, r), r;
13534
+ return t && Od(t, r), r;
13403
13535
  });
13404
13536
  }];
13405
- }, kd = () => {
13537
+ }, jd = () => {
13406
13538
  let e = globalThis.process?.env?.NODE_ENV;
13407
13539
  return e != null && e === "development";
13408
- }, Ad = (e, t) => {
13540
+ }, Md = (e, t) => {
13409
13541
  let n = x({
13410
13542
  resolver: ye(e),
13411
13543
  defaultValues: t?.defaultValues
13412
13544
  }), r = (e, t) => n.handleSubmit(e, (e, n) => {
13413
- kd() && console.log(e), t?.(e, n);
13545
+ jd() && console.log(e), t?.(e, n);
13414
13546
  });
13415
13547
  return {
13416
13548
  ...n,
13417
13549
  handleSubmit: r
13418
13550
  };
13419
- }, jd = (e) => {
13551
+ }, Nd = (e) => {
13420
13552
  let t = String(e ?? ""), n = 0;
13421
13553
  for (; n < t.length && t.charCodeAt(n) <= 32;) n += 1;
13422
13554
  let r = t.slice(n);
13423
13555
  return /^[=+\-@]/.test(r) ? `'${t}` : t;
13424
- }, Md = (e) => {
13425
- let t = jd(e);
13556
+ }, Pd = (e) => {
13557
+ let t = Nd(e);
13426
13558
  return /[",\n\r]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
13427
- }, Nd = (e, t) => {
13559
+ }, Fd = (e, t) => {
13428
13560
  if (typeof document > "u") return;
13429
- let n = `\uFEFF${[t.columns.map((e) => Md(e.header)).join(","), ...e.map((e) => t.columns.map((t) => Md(t.getValue(e))).join(","))].join("\n")}`, r = new Blob([n], { type: "text/csv;charset=utf-8" }), i = URL.createObjectURL(r), a = document.createElement("a");
13561
+ let n = `\uFEFF${[t.columns.map((e) => Pd(e.header)).join(","), ...e.map((e) => t.columns.map((t) => Pd(t.getValue(e))).join(","))].join("\n")}`, r = new Blob([n], { type: "text/csv;charset=utf-8" }), i = URL.createObjectURL(r), a = document.createElement("a");
13430
13562
  a.href = i, a.download = t.filename ?? "export.csv", a.click(), URL.revokeObjectURL(i);
13431
- }, Pd = (e) => jd(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Fd = (e) => typeof e == "number" && Number.isFinite(e) ? "Number" : "String", Id = (e, t) => {
13563
+ }, Id = (e) => Nd(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;"), Ld = (e) => typeof e == "number" && Number.isFinite(e) ? "Number" : "String", Rd = (e, t) => {
13432
13564
  if (typeof document > "u") return;
13433
13565
  let { columns: n, filename: r = "export.xls" } = t, i = `<?xml version="1.0"?>
13434
13566
  <?mso-application progid="Excel.Sheet"?>
@@ -13441,51 +13573,51 @@ var xd = (e, t, n) => {
13441
13573
  </Styles>
13442
13574
  <Worksheet ss:Name="Export">
13443
13575
  <Table>
13444
- <Row>${n.map((e) => `<Cell ss:StyleID="Header"><Data ss:Type="String">${Pd(e.header)}</Data></Cell>`).join("")}</Row>
13576
+ <Row>${n.map((e) => `<Cell ss:StyleID="Header"><Data ss:Type="String">${Id(e.header)}</Data></Cell>`).join("")}</Row>
13445
13577
  ${e.map((e) => `<Row>${n.map((t) => {
13446
- let n = t.getValue(e), r = Fd(n);
13447
- return `<Cell><Data ss:Type="${r}">${r === "Number" ? String(n) : Pd(n)}</Data></Cell>`;
13578
+ let n = t.getValue(e), r = Ld(n);
13579
+ return `<Cell><Data ss:Type="${r}">${r === "Number" ? String(n) : Id(n)}</Data></Cell>`;
13448
13580
  }).join("")}</Row>`).join("")}
13449
13581
  </Table>
13450
13582
  </Worksheet>
13451
13583
  </Workbook>`, a = new Blob([i], { type: "application/vnd.ms-excel" }), o = URL.createObjectURL(a), s = document.createElement("a");
13452
13584
  s.href = o, s.download = r.endsWith(".xls") || r.endsWith(".xlsx") ? r : `${r}.xls`, s.click(), URL.revokeObjectURL(o);
13453
- }, Ld = "Este campo es requerido", Rd = "Introduce una dirección de correo electrónico válida", zd = "El correo electrónico es obligatorio", Bd = "El valor de este campo es inválido", Vd = "Introduce un número de celular válido", Hd = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, Ud = (e = Ld) => U.string().transform(Hd).required(e), Wd = () => U.string().transform(Hd).default(null).nullable(), Gd = (e = zd) => U.string().transform(Hd).email(Rd).required(e), Kd = (e = Rd) => U.string().transform(Hd).test("emailTest", e, (e) => e == null || e === "" ? !0 : U.string().email().isValidSync(e)).default(null).nullable(), qd = (e, t = Bd, n = Ld) => U.string().transform(Hd).trim().test("rgxValidation", t, (t) => t == null || t === "" ? !0 : t.match(e) != null).required(n), Jd = (e, t = Bd) => U.string().transform(Hd).test("rgxValidation", t, (t) => t == null || t === "" ? !0 : t.match(e) != null).default(null).nullable(), Yd = (e) => {
13585
+ }, zd = "Este campo es requerido", Bd = "Introduce una dirección de correo electrónico válida", Vd = "El correo electrónico es obligatorio", Hd = "El valor de este campo es inválido", Ud = "Introduce un número de celular válido", Wd = (e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim() : e, Gd = (e = zd) => U.string().transform(Wd).required(e), Kd = () => U.string().transform(Wd).default(null).nullable(), qd = (e = Vd) => U.string().transform(Wd).email(Bd).required(e), Jd = (e = Bd) => U.string().transform(Wd).test("emailTest", e, (e) => e == null || e === "" ? !0 : U.string().email().isValidSync(e)).default(null).nullable(), Yd = (e, t = Hd, n = zd) => U.string().transform(Wd).trim().test("rgxValidation", t, (t) => t == null || t === "" ? !0 : t.match(e) != null).required(n), Xd = (e, t = Hd) => U.string().transform(Wd).test("rgxValidation", t, (t) => t == null || t === "" ? !0 : t.match(e) != null).default(null).nullable(), Zd = (e) => {
13454
13586
  let t = e?.minLength == null ? void 0 : Math.max(1, e.minLength);
13455
13587
  return {
13456
13588
  minLength: t,
13457
13589
  maxLength: e?.maxLength == null ? void 0 : Math.max(t ?? 1, e.maxLength)
13458
13590
  };
13459
- }, Xd = (e) => {
13460
- let { minLength: t, maxLength: n } = Yd(e), r = /^[0-9]+$/, i = U.string().transform(Hd).test("rgxValidation", (e, t) => e == null || e === "" ? !0 : e.match(r) == null ? t.createError({ message: "El campo debe contener solo caracteres numéricos" }) : !0);
13591
+ }, Qd = (e) => {
13592
+ let { minLength: t, maxLength: n } = Zd(e), r = /^[0-9]+$/, i = U.string().transform(Wd).test("rgxValidation", (e, t) => e == null || e === "" ? !0 : e.match(r) == null ? t.createError({ message: "El campo debe contener solo caracteres numéricos" }) : !0);
13461
13593
  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;
13462
- }, Zd = (e) => Xd(e).required(Ld), Qd = (e) => Xd(e).default(null).nullable(), $d = (e = Ld) => U.boolean().typeError("El tipo de dato debe ser booleano").required(e), ef = () => U.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), tf = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, nf = (e = Ld) => U.number().transform(tf).typeError("Debe ser numérico").required(e), rf = () => U.number().transform(tf).typeError("Debe ser numérico").default(null).nullable().notRequired(), af = (e = Ld) => U.number().transform(tf).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), of = (e = Ld) => af(e).integer("Este campo debe ser un número entero"), sf = () => U.number().transform(tf).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), cf = () => sf().integer("Este campo debe ser un número entero"), lf = (e) => {
13594
+ }, $d = (e) => Qd(e).required(zd), ef = (e) => Qd(e).default(null).nullable(), tf = (e = zd) => U.boolean().typeError("El tipo de dato debe ser booleano").required(e), nf = () => U.boolean().typeError("El tipo de dato debe ser booleano").default(null).nullable(), rf = (e, t) => t == null || t === "" ? null : Number.isNaN(e) ? void 0 : e, af = (e = zd) => U.number().transform(rf).typeError("Debe ser numérico").required(e), of = () => U.number().transform(rf).typeError("Debe ser numérico").default(null).nullable().notRequired(), sf = (e = zd) => U.number().transform(rf).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").required(e), cf = (e = zd) => sf(e).integer("Este campo debe ser un número entero"), lf = () => U.number().transform(rf).typeError("Este campo debe ser un valor número").min(0, "Este campo debe ser un valor número positivo").default(null).nullable(), uf = () => lf().integer("Este campo debe ser un número entero"), df = (e) => {
13463
13595
  let t = /^(?:\+51)\s?[0-9]{3}\s?[0-9]{3}\s?[0-9]{3}$/;
13464
13596
  return U.string().transform((e) => e == null ? null : typeof e == "string" ? e.trim() === "" ? null : e.trim().startsWith("+") ? e.trim() : `+51 ${e.trim()}` : e).test("rgxValidation", e, (e) => e == null || e === "" ? !0 : e.match(t) != null).default(null);
13465
- }, uf = (e = Vd) => lf(e).nullable(), df = (e = Vd) => lf(e).required(Ld), ff = (e = Ld) => U.array().of(Ud()).min(1, "Debe contener al menos un elemento").required(e), pf = () => U.array().of(Wd()).default(null).nullable(), mf = {
13466
- transformNullIfEmpty: Hd,
13467
- requiredString: Ud,
13468
- nullableString: Wd,
13469
- requiredEmail: Gd,
13470
- nullableEmail: Kd,
13471
- requiredMatchString: qd,
13472
- nullableOrMatchString: Jd,
13473
- requiredStringNumbersOnly: Zd,
13474
- nullableStringNumbersOnly: Qd,
13475
- requiredBoolean: $d,
13476
- nullableBoolean: ef,
13477
- requiredNumber: nf,
13478
- nullableNumber: rf,
13479
- requiredPositiveNumber: af,
13480
- requiredPositiveInteger: of,
13481
- nullablePositiveNumber: sf,
13482
- nullablePositiveInteger: cf,
13483
- nullableCelular: uf,
13484
- requiredCelular: df,
13485
- requiredStringArray: ff,
13486
- nullableStringArray: pf
13487
- }, hf = (e) => U.object().shape(e(mf));
13597
+ }, ff = (e = Ud) => df(e).nullable(), pf = (e = Ud) => df(e).required(zd), mf = (e = zd) => U.array().of(Gd()).min(1, "Debe contener al menos un elemento").required(e), hf = () => U.array().of(Kd()).default(null).nullable(), gf = {
13598
+ transformNullIfEmpty: Wd,
13599
+ requiredString: Gd,
13600
+ nullableString: Kd,
13601
+ requiredEmail: qd,
13602
+ nullableEmail: Jd,
13603
+ requiredMatchString: Yd,
13604
+ nullableOrMatchString: Xd,
13605
+ requiredStringNumbersOnly: $d,
13606
+ nullableStringNumbersOnly: ef,
13607
+ requiredBoolean: tf,
13608
+ nullableBoolean: nf,
13609
+ requiredNumber: af,
13610
+ nullableNumber: of,
13611
+ requiredPositiveNumber: sf,
13612
+ requiredPositiveInteger: cf,
13613
+ nullablePositiveNumber: lf,
13614
+ nullablePositiveInteger: uf,
13615
+ nullableCelular: ff,
13616
+ requiredCelular: pf,
13617
+ requiredStringArray: mf,
13618
+ nullableStringArray: hf
13619
+ }, _f = (e) => U.object().shape(e(gf));
13488
13620
  //#endregion
13489
- export { Rr as AccessDenied, Ui as Accordion, Or as ActionButton, hr as ActiveFiltersBar, vl as AddressSearchInput, Ar as Alert, Ps as AlertLane, js as AlertRowList, $a as AppBarContainer, Qa as AppShell, Ol as AreaInput, dn as AsyncCardSelect, or as AsyncCustomTable, ln as AsyncSearchSelect, mn as AsyncSearchTableSelect, Fu as AuditTimeline, pa as Avatar, ma as AvatarGroup, _a as Badge, Ut as BooleanCheckbox, Vi as Breadcrumb, $ as Button, Cr as ButtonGroup, nd as CHART_SERIES_COLORS, Kt as COUNTRY_DIAL_CODES, Gt as CURRENCY_SYMBOLS, ms as Calendar, su as CardRadioGroup, un as CardSelect, td as Carousel, ld as Chart, Rt as Checkbox, zt as CheckboxGroup, po as CodeEditor, ru as ColorInput, Si as CommandPalette, Zr as ConfirmDialog, ui as ContextMenuProvider, xl as CoordinatesInput, tn as CurrencyInput, ar as CustomTable, Rs as DashboardCard, Vs as DashboardGrid, Gs as DashboardLayout, Hs as DashboardSection, Ws as DashboardStatBar, St as DateInput, Dt as DatePicker, Xs as DateRangeFields, Cn as DateRangeInput, Zs as DateRangeUtcInput, Ka as DateWeekStrip, An as DisplayField, Xt as DniInput, ws as DonutGauge, Ts as DonutGaugeRow, vi as Drawer, ni as DropdownMenu, ri as DropdownMenuItem, yr as EditableDataGrid, jr as EmptyState, Xo as EntityCard, Qo as EntityCardGrid, Nr as ErrorView, As as EventLog, Sr as ExpandableTableSection, Z as FieldLayout, dc as FileDropInput, On as FileInput, ia as FilterBar, oa as FilterBarDate, aa as FilterBarField, sa as FilterBarSelect, ca as FilterBarText, Er as FormActions, ta as FormWizard, Ii as HeightProvider, yt as Input, da as ItineraryEditor, Fo as KPICard, Lo as KPIGrid, au as KeyValueInput, zu as LiveChip, La as LiveRouteBoard, Zu as LiveStatusBar, Ir as LoadingView, bl as LocationPicker, ho as MIN_MAP_GEOCODER_QUERY_LENGTH, ss as MONTH_NAMES, la as MaestroLayout, xc as MapFrame, Mo as MapPicker, Sc as MapStatus, yl as MapView, ra as MasterDetailLayout, na as MasterDetailListItem, $r as MessageDialog, Bo as MetricBarList, zo as MetricBarRow, Yr as Modal, is as ModuleCard, as as ModuleCardGrid, mc as MultiPhotoInput, hu as NETWORK_BASEMAPS, bu as NETWORK_EDGE_STYLES, _u as NETWORK_KIND_COLORS, gu as NETWORK_KIND_LABELS, vu as NETWORK_STATUS_COLORS, yu as NETWORK_STATUS_LABELS, Wn as NUMBER_FILTER_OPS, Ou as NetworkLegend, Nu as NetworkMap, hi as NotificationBell, xt as NumberInput, Yl as NumberStepper, cu as ORG_TREE_DEFAULT_THEMES, ii as OptionItem, mu as OrgTree, Js as OtpInput, Ti as PageContainer, Di as PageHeader, Hn as PaginationRangeInput, Ta as PassengerBoardCard, kt as PasswordInput, $t as PhoneInput, yc as PhotoCropInput, fc as PhotoInput, Ct as Popover, wi as ProductTour, Ql as ProgressBar, eu as ProgressBarReadonly, pi as QRView, Bt as RadioGroup, Zl as RangeSliderInput, tu as RatingInput, ts as RecommendationCard, Ru as RecordList, Lu as RecordListItem, Lr as RetryBlock, oo as RichTextEditor, kl as RouteInput, Tr as RowActions, Zt as RucInput, wc as SF_DEFAULT_MAP_CENTER, Tc as SF_DEFAULT_MAP_ZOOM, kc as SF_GOOGLE_ENGINE_CAPABILITIES, Oc as SF_LEAFLET_ENGINE_CAPABILITIES, Cc as SF_MAPS_CONFIG_ERROR, Dc as SF_OSM_ATTRIBUTION, Ec as SF_OSM_TILE_URL, Un as STRING_FILTER_OPS, Wi as ScrollArea, sn as SearchSelect, pn as SearchTableSelect, Lt as Select, Bi as Separator, dl as SfProvider, yi as Sheet, Oi as SidePanel, Pi as SidePanelContainer, pc as SignaturePad, Br as Skeleton, Gl as SliderInput, Tn as SmartDateInput, nn as SmartInput, Al as SmartMapInput, hc as SmartMediaInput, hn as SmartSelect, ou as SortableList, ud as Sparkline, Fr as Spinner, Qi as Stepper, Gi as SummaryItem, dd as SyncIcon, ai as TabMenuOption, mr as TableColumnSettings, Jn as TableFiltersPanel, Ei as TablePageLayout, Yn as TableSortingPanel, ki as Tabs, iu as TagsInput, bt as TextArea, wn as TimeRangeInput, ed as Timeline, Kr as ToastProvider, Vt as Toggle, Ht as ToggleCard, wr as ToolbarButton, gi as Tooltip, os as TramoCard, It as Transfer, Pt as TreeSelect, Ra as UnitSelector, Ri as Visibility, zi as Visivility, cs as WEEKDAY_LABELS, Ya as WeekdayToggleStrip, Wt as YesNoSelect, ha as badgeClassName, ga as badgeDotClassName, vr as buildActiveFilterChips, ds as buildMonthGrid, lu as buildOrgTreeRows, Ft as buttonClassName, Sn as calcTimeDuration, Pl as clampNumber, lo as codeEditorClassName, qn as columnFilterFn, wu as countNetworkStatus, du as countOrgTreeNodes, hf as createFormSchema, Ln as createLocalStorageAsyncStateStore, ic as createPhotoItem, cc as cropImageToSquare, xd as defaultOnSortFunc, Qs as emptyDateRange, Rl as emptyKeyValuePairs, Bl as emptyNumberRange, bc as emptyPhotoItems, Il as emptyTags, $s as emptyTimeRange, Nd as exportTableCsv, Id as exportTableXlsx, Q as fieldClassName, _r as formatColumnFilterValue, _o as formatMapGeocoderLabel, Fl as formatSliderLabel, yn as fromUtcDateIso, Kn as inferInitialFilterValue, _t as inputFocusTransition, Gn as isColumnFilterValue, _n as isValidDateString, nc as isValidFileType, Du as networkEdgeLines, Tu as networkMapBounds, Eu as networkNodePositions, tc as nextPhotoId, bn as normalizeDateRange, Hl as normalizeHexColor, zl as normalizeKeyValuePairs, Cu as normalizeNetworkEdges, Su as normalizeNetworkNodes, Vl as normalizeNumberRange, sc as normalizePhotoItems, Ll as normalizeTags, xn as normalizeTimeRange, ef as nullableBoolean, uf as nullableCelular, Kd as nullableEmail, rf as nullableNumber, Jd as nullableOrMatchString, cf as nullablePositiveInteger, sf as nullablePositiveNumber, Wd as nullableString, pf as nullableStringArray, Qd as nullableStringNumbersOnly, fu as orgTreeRootNodes, us as parseYMD, Ul as progressPercent, Td as readQueryValue, Dd as removeQueryValue, $d as requiredBoolean, df as requiredCelular, Gd as requiredEmail, qd as requiredMatchString, nf as requiredNumber, of as requiredPositiveInteger, af as requiredPositiveNumber, Ud as requiredString, ff as requiredStringArray, Zd as requiredStringNumbersOnly, uu as resolveOrgTreeTheme, rd as resolveSeriesColor, ac as revokePhotoPreview, oc as revokePhotoPreviews, qt as sanitizeDigits, go as searchMapAddresses, $c as sfClampLatitude, el as sfClampLongitude, Zc as sfFormatCoordinate, nl as sfLatLngToString, il as sfMarkerFromLatLng, rl as sfNormalizeLatLng, tl as sfParseCoordinate, rc as showFilePicker, vt as textareaClassName, Va as toIsoDate, gn as toLocalDateYMD, ls as toLocalYMD, Nt as toStringArray, vn as toUtcDateIso, Hd as transformNullIfEmpty, Ed as updateQueryValue, ml as useAddressSearch, Sd as useArrayPaginator, cn as useAsyncOptions, oi as useClickAway, Li as useContainerHeight, fi as useContextMenu, Ad as useCustomForm, sr as useCustomTableController, ti as useDropdownClose, yd as useFilterData, ea as useFormWizard, co as useIsClient, fd as useMaestroFilter, hl as useMapEngine, gl as useMapsConfig, Xr as useModal, Od as useQueryStringState, fl as useSf, pl as useSfMaps, Mi as useSidePanelContainer, Ai as useSidePanelHandle, wd as useStoredState, fr as useTableColumnSettings, qr as useToast, Yt as validateDni, Jt as validateRuc, mf as validators };
13621
+ export { zr as AccessDenied, Wi as Accordion, kr as ActionButton, hr as ActiveFiltersBar, bl as AddressSearchInput, jr as Alert, Is as AlertLane, Ns as AlertRowList, eo as AppBarContainer, $a as AppShell, Al as AreaInput, dn as AsyncCardSelect, or as AsyncCustomTable, ln as AsyncSearchSelect, mn as AsyncSearchTableSelect, Lu as AuditTimeline, ma as Avatar, ha as AvatarGroup, va as Badge, Ut as BooleanCheckbox, Hi as Breadcrumb, $ as Button, wr as ButtonGroup, id as CHART_SERIES_COLORS, Kt as COUNTRY_DIAL_CODES, Gt as CURRENCY_SYMBOLS, gs as Calendar, lu as CardRadioGroup, un as CardSelect, rd as Carousel, dd as Chart, Rt as Checkbox, zt as CheckboxGroup, mo as CodeEditor, au as ColorInput, Ci as CommandPalette, Qr as ConfirmDialog, di as ContextMenuProvider, Cl as CoordinatesInput, tn as CurrencyInput, ar as CustomTable, Bs as DashboardCard, Us as DashboardGrid, qs as DashboardLayout, Ws as DashboardSection, Ks as DashboardStatBar, St as DateInput, Dt as DatePicker, Qs as DateRangeFields, Cn as DateRangeInput, $s as DateRangeUtcInput, qa as DateWeekStrip, An as DisplayField, Xt as DniInput, Es as DonutGauge, Ds as DonutGaugeRow, yi as Drawer, ri as DropdownMenu, ii as DropdownMenuItem, br as EditableDataGrid, Mr as EmptyState, Zo as EntityCard, $o as EntityCardGrid, Pr as ErrorView, Ms as EventLog, Cr as ExpandableTableSection, Z as FieldLayout, pc as FileDropInput, On as FileInput, aa as FilterBar, sa as FilterBarDate, oa as FilterBarField, ca as FilterBarSelect, la as FilterBarText, Dr as FormActions, na as FormWizard, Li as HeightProvider, yt as Input, fa as ItineraryEditor, Io as KPICard, Ro as KPIGrid, su as KeyValueInput, Vu as LiveChip, Ra as LiveRouteBoard, $u as LiveStatusBar, Lr as LoadingView, Sl as LocationPicker, go as MIN_MAP_GEOCODER_QUERY_LENGTH, ls as MONTH_NAMES, ua as MaestroLayout, Cc as MapFrame, No as MapPicker, wc as MapStatus, xl as MapView, ia as MasterDetailLayout, ra as MasterDetailListItem, ei as MessageDialog, Vo as MetricBarList, Bo as MetricBarRow, Xr as Modal, as as ModuleCard, os as ModuleCardGrid, gc as MultiPhotoInput, _u as NETWORK_BASEMAPS, Su as NETWORK_EDGE_STYLES, yu as NETWORK_KIND_COLORS, vu as NETWORK_KIND_LABELS, bu as NETWORK_STATUS_COLORS, xu as NETWORK_STATUS_LABELS, Wn as NUMBER_FILTER_OPS, Au as NetworkLegend, Fu as NetworkMap, gi as NotificationBell, xt as NumberInput, Zl as NumberStepper, uu as ORG_TREE_DEFAULT_THEMES, ai as OptionItem, gu as OrgTree, Xs as OtpInput, Ei as PageContainer, Oi as PageHeader, Hn as PaginationRangeInput, Ea as PassengerBoardCard, kt as PasswordInput, $t as PhoneInput, xc as PhotoCropInput, mc as PhotoInput, Ct as Popover, Ti as ProductTour, eu as ProgressBar, nu as ProgressBarReadonly, mi as QRView, Bt as RadioGroup, $l as RangeSliderInput, ru as RatingInput, ns as RecommendationCard, Bu as RecordList, zu as RecordListItem, Rr as RetryBlock, so as RichTextEditor, jl as RouteInput, Er as RowActions, Zt as RucInput, Ec as SF_DEFAULT_MAP_CENTER, Dc as SF_DEFAULT_MAP_ZOOM, jc as SF_GOOGLE_ENGINE_CAPABILITIES, Ac as SF_LEAFLET_ENGINE_CAPABILITIES, Tc as SF_MAPS_CONFIG_ERROR, kc as SF_OSM_ATTRIBUTION, Oc as SF_OSM_TILE_URL, Un as STRING_FILTER_OPS, Gi as ScrollArea, sn as SearchSelect, pn as SearchTableSelect, Lt as Select, Vi as Separator, pl as SfProvider, bi as Sheet, ki as SidePanel, Fi as SidePanelContainer, hc as SignaturePad, Vr as Skeleton, ql as SliderInput, Tn as SmartDateInput, nn as SmartInput, Ml as SmartMapInput, _c as SmartMediaInput, hn as SmartSelect, cu as SortableList, fd as Sparkline, Ir as Spinner, cs as StatCard, $i as Stepper, Ki as SummaryItem, pd as SyncIcon, oi as TabMenuOption, mr as TableColumnSettings, Jn as TableFiltersPanel, Di as TablePageLayout, Yn as TableSortingPanel, Ai as Tabs, ou as TagsInput, bt as TextArea, wn as TimeRangeInput, nd as Timeline, qr as ToastProvider, Vt as Toggle, Ht as ToggleCard, Tr as ToolbarButton, _i as Tooltip, ss as TramoCard, It as Transfer, Pt as TreeSelect, za as UnitSelector, zi as Visibility, Bi as Visivility, us as WEEKDAY_LABELS, Xa as WeekdayToggleStrip, Wt as YesNoSelect, ga as badgeClassName, _a as badgeDotClassName, vr as buildActiveFilterChips, ps as buildMonthGrid, du as buildOrgTreeRows, Ft as buttonClassName, Sn as calcTimeDuration, Il as clampNumber, uo as codeEditorClassName, qn as columnFilterFn, Eu as countNetworkStatus, pu as countOrgTreeNodes, _f as createFormSchema, Ln as createLocalStorageAsyncStateStore, oc as createPhotoItem, uc as cropImageToSquare, Cd as defaultOnSortFunc, ec as emptyDateRange, Bl as emptyKeyValuePairs, Hl as emptyNumberRange, Sc as emptyPhotoItems, Rl as emptyTags, tc as emptyTimeRange, Fd as exportTableCsv, Rd as exportTableXlsx, Q as fieldClassName, _r as formatColumnFilterValue, vo as formatMapGeocoderLabel, Ll as formatSliderLabel, yn as fromUtcDateIso, Kn as inferInitialFilterValue, _t as inputFocusTransition, yr as isBlankRow, Gn as isColumnFilterValue, _n as isValidDateString, ic as isValidFileType, ku as networkEdgeLines, Du as networkMapBounds, Ou as networkNodePositions, rc as nextPhotoId, bn as normalizeDateRange, Wl as normalizeHexColor, Vl as normalizeKeyValuePairs, Tu as normalizeNetworkEdges, wu as normalizeNetworkNodes, Ul as normalizeNumberRange, lc as normalizePhotoItems, zl as normalizeTags, xn as normalizeTimeRange, nf as nullableBoolean, ff as nullableCelular, Jd as nullableEmail, of as nullableNumber, Xd as nullableOrMatchString, uf as nullablePositiveInteger, lf as nullablePositiveNumber, Kd as nullableString, hf as nullableStringArray, ef as nullableStringNumbersOnly, mu as orgTreeRootNodes, fs as parseYMD, Gl as progressPercent, Dd as readQueryValue, kd as removeQueryValue, tf as requiredBoolean, pf as requiredCelular, qd as requiredEmail, Yd as requiredMatchString, af as requiredNumber, cf as requiredPositiveInteger, sf as requiredPositiveNumber, Gd as requiredString, mf as requiredStringArray, $d as requiredStringNumbersOnly, fu as resolveOrgTreeTheme, ad as resolveSeriesColor, sc as revokePhotoPreview, cc as revokePhotoPreviews, qt as sanitizeDigits, _o as searchMapAddresses, tl as sfClampLatitude, nl as sfClampLongitude, $c as sfFormatCoordinate, il as sfLatLngToString, ol as sfMarkerFromLatLng, al as sfNormalizeLatLng, rl as sfParseCoordinate, ac as showFilePicker, vt as textareaClassName, Ha as toIsoDate, gn as toLocalDateYMD, ds as toLocalYMD, Nt as toStringArray, vn as toUtcDateIso, Wd as transformNullIfEmpty, Od as updateQueryValue, gl as useAddressSearch, wd as useArrayPaginator, cn as useAsyncOptions, si as useClickAway, Ri as useContainerHeight, pi as useContextMenu, Md as useCustomForm, sr as useCustomTableController, ni as useDropdownClose, xd as useFilterData, ta as useFormWizard, lo as useIsClient, md as useMaestroFilter, _l as useMapEngine, vl as useMapsConfig, Zr as useModal, Ad as useQueryStringState, ml as useSf, hl as useSfMaps, Ni as useSidePanelContainer, ji as useSidePanelHandle, Ed as useStoredState, fr as useTableColumnSettings, Jr as useToast, Yt as validateDni, Jt as validateRuc, gf as validators };
13490
13622
 
13491
13623
  //# sourceMappingURL=sf-ui.js.map