@toteat-eng/ds-react 2026.6.9 → 2026.6.10-1
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/components/Banner/Banner.d.ts +14 -0
- package/dist/components/Banner/__stories__/Banner.stories.d.ts +16 -0
- package/dist/components/Banner/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +14 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/PermissionGate/PermissionGate.d.ts +30 -0
- package/dist/components/PermissionGate/__stories__/PermissionGate.stories.d.ts +10 -0
- package/dist/components/PermissionGate/index.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +21 -0
- package/dist/components/SearchInput/__stories__/SearchInput.stories.d.ts +11 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/Stepper/Stepper.d.ts +18 -0
- package/dist/components/Stepper/__stories__/Stepper.stories.d.ts +11 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.es.js +535 -335
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/csv.d.ts +17 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -86,9 +86,9 @@ function re({ size: e = "medium", label: t = "Cargando", className: n, "data-tes
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
var M = {
|
|
89
|
-
button: "
|
|
90
|
-
spinnerWrap: "
|
|
91
|
-
content: "
|
|
89
|
+
button: "_button_11r91_2",
|
|
90
|
+
spinnerWrap: "_spinnerWrap_11r91_121",
|
|
91
|
+
content: "_content_11r91_128"
|
|
92
92
|
};
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/components/Button/Button.tsx
|
|
@@ -346,12 +346,102 @@ function Fn({ variant: e = "default", size: t = "medium", children: n, className
|
|
|
346
346
|
children: n
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
var In = {
|
|
349
|
+
var In = {
|
|
350
|
+
banner: "_banner_k1c7g_2",
|
|
351
|
+
content: "_content_k1c7g_40",
|
|
352
|
+
action: "_action_k1c7g_45",
|
|
353
|
+
dismiss: "_dismiss_k1c7g_51"
|
|
354
|
+
};
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/components/Banner/Banner.tsx
|
|
357
|
+
function Ln({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cerrar", action: i, children: a, className: o, "data-testid": s }) {
|
|
358
|
+
let c = e === "error";
|
|
359
|
+
return /* @__PURE__ */ u("div", {
|
|
360
|
+
className: [In.banner, o].filter(Boolean).join(" "),
|
|
361
|
+
"data-variant": e,
|
|
362
|
+
role: c ? "alert" : "status",
|
|
363
|
+
"aria-live": c ? "assertive" : "polite",
|
|
364
|
+
"data-testid": s,
|
|
365
|
+
children: [
|
|
366
|
+
t && /* @__PURE__ */ l(F, {
|
|
367
|
+
name: t,
|
|
368
|
+
size: 20,
|
|
369
|
+
"aria-hidden": "true"
|
|
370
|
+
}),
|
|
371
|
+
/* @__PURE__ */ l("span", {
|
|
372
|
+
className: In.content,
|
|
373
|
+
children: a
|
|
374
|
+
}),
|
|
375
|
+
i && /* @__PURE__ */ l("span", {
|
|
376
|
+
className: In.action,
|
|
377
|
+
children: i
|
|
378
|
+
}),
|
|
379
|
+
n && /* @__PURE__ */ l("button", {
|
|
380
|
+
type: "button",
|
|
381
|
+
className: In.dismiss,
|
|
382
|
+
onClick: n,
|
|
383
|
+
"aria-label": r,
|
|
384
|
+
children: /* @__PURE__ */ l(F, {
|
|
385
|
+
name: "close-outline",
|
|
386
|
+
size: 20,
|
|
387
|
+
"aria-hidden": "true"
|
|
388
|
+
})
|
|
389
|
+
})
|
|
390
|
+
]
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
var L = {
|
|
394
|
+
nav: "_nav_2i10d_2",
|
|
395
|
+
back: "_back_2i10d_9",
|
|
396
|
+
crumbs: "_crumbs_2i10d_40",
|
|
397
|
+
item: "_item_2i10d_51",
|
|
398
|
+
link: "_link_2i10d_65",
|
|
399
|
+
ancestor: "_ancestor_2i10d_85",
|
|
400
|
+
current: "_current_2i10d_89"
|
|
401
|
+
};
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/components/Breadcrumb/Breadcrumb.tsx
|
|
404
|
+
function Rn({ items: e, onBack: t, backLabel: n = "Volver", label: r = "Ruta de navegación", className: i, "data-testid": a }) {
|
|
405
|
+
return e.length === 0 ? null : /* @__PURE__ */ u("nav", {
|
|
406
|
+
"aria-label": r,
|
|
407
|
+
className: [L.nav, i].filter(Boolean).join(" "),
|
|
408
|
+
"data-testid": a,
|
|
409
|
+
children: [t && /* @__PURE__ */ l("button", {
|
|
410
|
+
type: "button",
|
|
411
|
+
className: L.back,
|
|
412
|
+
onClick: t,
|
|
413
|
+
"aria-label": n,
|
|
414
|
+
children: /* @__PURE__ */ l(F, {
|
|
415
|
+
name: "chevron-left-outline",
|
|
416
|
+
size: 18,
|
|
417
|
+
"aria-hidden": "true"
|
|
418
|
+
})
|
|
419
|
+
}), /* @__PURE__ */ l("ol", {
|
|
420
|
+
className: L.crumbs,
|
|
421
|
+
children: e.map((t, n) => {
|
|
422
|
+
let r = n === e.length - 1;
|
|
423
|
+
return /* @__PURE__ */ l("li", {
|
|
424
|
+
className: L.item,
|
|
425
|
+
"aria-current": r ? "page" : void 0,
|
|
426
|
+
children: t.href && !r ? /* @__PURE__ */ l("a", {
|
|
427
|
+
href: t.href,
|
|
428
|
+
className: L.link,
|
|
429
|
+
children: t.label
|
|
430
|
+
}) : /* @__PURE__ */ l("span", {
|
|
431
|
+
className: r ? L.current : L.ancestor,
|
|
432
|
+
children: t.label
|
|
433
|
+
})
|
|
434
|
+
}, t.id);
|
|
435
|
+
})
|
|
436
|
+
})]
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
var zn = { card: "_card_b9brq_2" };
|
|
350
440
|
//#endregion
|
|
351
441
|
//#region src/components/Card/Card.tsx
|
|
352
|
-
function
|
|
442
|
+
function Bn({ padding: e = "small", elevation: t = "none", hoverable: n = !1, maxWidth: r, children: i, className: a, style: o, ...s }) {
|
|
353
443
|
return /* @__PURE__ */ l("section", {
|
|
354
|
-
className: [
|
|
444
|
+
className: [zn.card, a].filter(Boolean).join(" "),
|
|
355
445
|
"data-padding": e,
|
|
356
446
|
"data-elevation": t,
|
|
357
447
|
"data-hoverable": n ? "" : void 0,
|
|
@@ -363,7 +453,7 @@ function Ln({ padding: e = "small", elevation: t = "none", hoverable: n = !1, ma
|
|
|
363
453
|
children: i
|
|
364
454
|
});
|
|
365
455
|
}
|
|
366
|
-
var
|
|
456
|
+
var R = {
|
|
367
457
|
chartWrapper: "_chartWrapper_2djq2_2",
|
|
368
458
|
chartTitle: "_chartTitle_2djq2_7",
|
|
369
459
|
kpiCard: "_kpiCard_2djq2_16",
|
|
@@ -371,7 +461,7 @@ var L = {
|
|
|
371
461
|
kpiValue: "_kpiValue_2djq2_31",
|
|
372
462
|
kpiChange: "_kpiChange_2djq2_38",
|
|
373
463
|
emptyState: "_emptyState_2djq2_55"
|
|
374
|
-
},
|
|
464
|
+
}, Vn = [
|
|
375
465
|
"#ff4235",
|
|
376
466
|
"#2563eb",
|
|
377
467
|
"#16a34a",
|
|
@@ -379,12 +469,12 @@ var L = {
|
|
|
379
469
|
"#7c3aed",
|
|
380
470
|
"#0891b2"
|
|
381
471
|
];
|
|
382
|
-
function
|
|
472
|
+
function Hn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
383
473
|
return e?.length ? /* @__PURE__ */ u("div", {
|
|
384
|
-
className:
|
|
474
|
+
className: R.chartWrapper,
|
|
385
475
|
"data-testid": c,
|
|
386
476
|
children: [i && /* @__PURE__ */ l("div", {
|
|
387
|
-
className:
|
|
477
|
+
className: R.chartTitle,
|
|
388
478
|
children: i
|
|
389
479
|
}), /* @__PURE__ */ l(y, {
|
|
390
480
|
width: "100%",
|
|
@@ -416,7 +506,7 @@ function Rn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
416
506
|
type: "monotone",
|
|
417
507
|
dataKey: e.dataKey,
|
|
418
508
|
name: e.label ?? e.dataKey,
|
|
419
|
-
stroke: e.color ??
|
|
509
|
+
stroke: e.color ?? Vn[t % Vn.length],
|
|
420
510
|
strokeWidth: 2,
|
|
421
511
|
dot: !1,
|
|
422
512
|
activeDot: { r: 4 }
|
|
@@ -425,16 +515,16 @@ function Rn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
425
515
|
})
|
|
426
516
|
})]
|
|
427
517
|
}) : /* @__PURE__ */ l("div", {
|
|
428
|
-
className:
|
|
518
|
+
className: R.emptyState,
|
|
429
519
|
children: "Sin datos"
|
|
430
520
|
});
|
|
431
521
|
}
|
|
432
|
-
function
|
|
522
|
+
function Un({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
433
523
|
return e?.length ? /* @__PURE__ */ u("div", {
|
|
434
|
-
className:
|
|
524
|
+
className: R.chartWrapper,
|
|
435
525
|
"data-testid": c,
|
|
436
526
|
children: [i && /* @__PURE__ */ l("div", {
|
|
437
|
-
className:
|
|
527
|
+
className: R.chartTitle,
|
|
438
528
|
children: i
|
|
439
529
|
}), /* @__PURE__ */ l(y, {
|
|
440
530
|
width: "100%",
|
|
@@ -465,7 +555,7 @@ function zn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
465
555
|
n.map((e, t) => /* @__PURE__ */ l(p, {
|
|
466
556
|
dataKey: e.dataKey,
|
|
467
557
|
name: e.label ?? e.dataKey,
|
|
468
|
-
fill: e.color ??
|
|
558
|
+
fill: e.color ?? Vn[t % Vn.length],
|
|
469
559
|
radius: [
|
|
470
560
|
2,
|
|
471
561
|
2,
|
|
@@ -477,16 +567,16 @@ function zn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
477
567
|
})
|
|
478
568
|
})]
|
|
479
569
|
}) : /* @__PURE__ */ l("div", {
|
|
480
|
-
className:
|
|
570
|
+
className: R.emptyState,
|
|
481
571
|
children: "Sin datos"
|
|
482
572
|
});
|
|
483
573
|
}
|
|
484
|
-
function
|
|
574
|
+
function Wn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
485
575
|
return e?.length ? /* @__PURE__ */ u("div", {
|
|
486
|
-
className:
|
|
576
|
+
className: R.chartWrapper,
|
|
487
577
|
"data-testid": c,
|
|
488
578
|
children: [i && /* @__PURE__ */ l("div", {
|
|
489
|
-
className:
|
|
579
|
+
className: R.chartTitle,
|
|
490
580
|
children: i
|
|
491
581
|
}), /* @__PURE__ */ l(y, {
|
|
492
582
|
width: "100%",
|
|
@@ -515,7 +605,7 @@ function Bn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
515
605
|
/* @__PURE__ */ l(b, { formatter: o ? (e) => o(e) : void 0 }),
|
|
516
606
|
!s && /* @__PURE__ */ l(g, {}),
|
|
517
607
|
n.map((e, t) => {
|
|
518
|
-
let n = e.color ??
|
|
608
|
+
let n = e.color ?? Vn[t % Vn.length];
|
|
519
609
|
return /* @__PURE__ */ l(d, {
|
|
520
610
|
type: "monotone",
|
|
521
611
|
dataKey: e.dataKey,
|
|
@@ -530,32 +620,32 @@ function Bn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
530
620
|
})
|
|
531
621
|
})]
|
|
532
622
|
}) : /* @__PURE__ */ l("div", {
|
|
533
|
-
className:
|
|
623
|
+
className: R.emptyState,
|
|
534
624
|
children: "Sin datos"
|
|
535
625
|
});
|
|
536
626
|
}
|
|
537
|
-
function
|
|
627
|
+
function Gn({ label: e, value: t, change: n, trend: r = "neutral", "data-testid": i }) {
|
|
538
628
|
return /* @__PURE__ */ u("div", {
|
|
539
|
-
className:
|
|
629
|
+
className: R.kpiCard,
|
|
540
630
|
"data-testid": i,
|
|
541
631
|
children: [
|
|
542
632
|
/* @__PURE__ */ l("div", {
|
|
543
|
-
className:
|
|
633
|
+
className: R.kpiLabel,
|
|
544
634
|
children: e
|
|
545
635
|
}),
|
|
546
636
|
/* @__PURE__ */ l("div", {
|
|
547
|
-
className:
|
|
637
|
+
className: R.kpiValue,
|
|
548
638
|
children: t
|
|
549
639
|
}),
|
|
550
640
|
n && /* @__PURE__ */ l("div", {
|
|
551
|
-
className:
|
|
641
|
+
className: R.kpiChange,
|
|
552
642
|
"data-trend": r,
|
|
553
643
|
children: n
|
|
554
644
|
})
|
|
555
645
|
]
|
|
556
646
|
});
|
|
557
647
|
}
|
|
558
|
-
var
|
|
648
|
+
var Kn = {
|
|
559
649
|
wrapper: "_wrapper_rrvhj_2",
|
|
560
650
|
input: "_input_rrvhj_9",
|
|
561
651
|
checkmark: "_checkmark_rrvhj_27",
|
|
@@ -563,10 +653,10 @@ var Hn = {
|
|
|
563
653
|
};
|
|
564
654
|
//#endregion
|
|
565
655
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
566
|
-
function
|
|
656
|
+
function qn({ label: e, className: t, id: n, ref: r, "data-testid": i, ...a }) {
|
|
567
657
|
let o = n ?? `checkbox-${String(e ?? "").toLowerCase().replace(/\s+/g, "-")}`;
|
|
568
658
|
return /* @__PURE__ */ u("label", {
|
|
569
|
-
className: [
|
|
659
|
+
className: [Kn.wrapper, t].filter(Boolean).join(" "),
|
|
570
660
|
htmlFor: o,
|
|
571
661
|
"data-testid": i,
|
|
572
662
|
children: [
|
|
@@ -574,21 +664,21 @@ function Un({ label: e, className: t, id: n, ref: r, "data-testid": i, ...a }) {
|
|
|
574
664
|
ref: r,
|
|
575
665
|
type: "checkbox",
|
|
576
666
|
id: o,
|
|
577
|
-
className:
|
|
667
|
+
className: Kn.input,
|
|
578
668
|
...a
|
|
579
669
|
}),
|
|
580
670
|
/* @__PURE__ */ l("span", {
|
|
581
|
-
className:
|
|
671
|
+
className: Kn.checkmark,
|
|
582
672
|
"aria-hidden": "true"
|
|
583
673
|
}),
|
|
584
674
|
e && /* @__PURE__ */ l("span", {
|
|
585
|
-
className:
|
|
675
|
+
className: Kn.label,
|
|
586
676
|
children: e
|
|
587
677
|
})
|
|
588
678
|
]
|
|
589
679
|
});
|
|
590
680
|
}
|
|
591
|
-
var
|
|
681
|
+
var Jn = {
|
|
592
682
|
wrapper: "_wrapper_1b0cf_2",
|
|
593
683
|
icon: "_icon_1b0cf_12",
|
|
594
684
|
"ds-coming-soon-fade-in": "_ds-coming-soon-fade-in_1b0cf_1",
|
|
@@ -596,25 +686,25 @@ var Wn = {
|
|
|
596
686
|
};
|
|
597
687
|
//#endregion
|
|
598
688
|
//#region src/components/ComingSoon/ComingSoon.tsx
|
|
599
|
-
function
|
|
689
|
+
function Yn({ message: e, icon: t = "lock-password-1-outline", className: n, "data-testid": r }) {
|
|
600
690
|
let i = e?.trim() ? e : "Próximamente";
|
|
601
691
|
return /* @__PURE__ */ u("div", {
|
|
602
692
|
role: "status",
|
|
603
693
|
"aria-live": "polite",
|
|
604
|
-
className: [
|
|
694
|
+
className: [Jn.wrapper, n].filter(Boolean).join(" "),
|
|
605
695
|
"data-testid": r,
|
|
606
696
|
children: [/* @__PURE__ */ l(F, {
|
|
607
697
|
name: t,
|
|
608
698
|
size: 40,
|
|
609
699
|
"aria-hidden": "true",
|
|
610
|
-
className:
|
|
700
|
+
className: Jn.icon
|
|
611
701
|
}), /* @__PURE__ */ l("p", {
|
|
612
|
-
className:
|
|
702
|
+
className: Jn.message,
|
|
613
703
|
children: i
|
|
614
704
|
})]
|
|
615
705
|
});
|
|
616
706
|
}
|
|
617
|
-
var
|
|
707
|
+
var Xn = {
|
|
618
708
|
row: "_row_1ubkn_2",
|
|
619
709
|
labelCol: "_labelCol_1ubkn_31",
|
|
620
710
|
label: "_label_1ubkn_31",
|
|
@@ -623,25 +713,25 @@ var Kn = {
|
|
|
623
713
|
};
|
|
624
714
|
//#endregion
|
|
625
715
|
//#region src/components/ConfigRow/ConfigRow.tsx
|
|
626
|
-
function
|
|
716
|
+
function Zn({ label: e, description: t, children: n, htmlFor: r, dimmed: i = !1, divider: a = !0, className: o, "data-testid": s }) {
|
|
627
717
|
let c = r ? "label" : "span";
|
|
628
718
|
return /* @__PURE__ */ u("div", {
|
|
629
|
-
className: [
|
|
719
|
+
className: [Xn.row, o].filter(Boolean).join(" "),
|
|
630
720
|
"data-dimmed": i || void 0,
|
|
631
721
|
"data-divider": a || void 0,
|
|
632
722
|
"data-testid": s,
|
|
633
723
|
children: [/* @__PURE__ */ u("div", {
|
|
634
|
-
className:
|
|
724
|
+
className: Xn.labelCol,
|
|
635
725
|
children: [/* @__PURE__ */ l(c, {
|
|
636
726
|
htmlFor: r,
|
|
637
|
-
className:
|
|
727
|
+
className: Xn.label,
|
|
638
728
|
children: e
|
|
639
729
|
}), t && /* @__PURE__ */ l("span", {
|
|
640
|
-
className:
|
|
730
|
+
className: Xn.description,
|
|
641
731
|
children: t
|
|
642
732
|
})]
|
|
643
733
|
}), /* @__PURE__ */ l("div", {
|
|
644
|
-
className:
|
|
734
|
+
className: Xn.controlCol,
|
|
645
735
|
children: n
|
|
646
736
|
})]
|
|
647
737
|
});
|
|
@@ -662,13 +752,13 @@ var z = {
|
|
|
662
752
|
};
|
|
663
753
|
//#endregion
|
|
664
754
|
//#region src/components/DataTable/DataTable.tsx
|
|
665
|
-
function
|
|
755
|
+
function Qn(e) {
|
|
666
756
|
let t = e.getIsSorted();
|
|
667
757
|
if (t === "asc") return "ascending";
|
|
668
758
|
if (t === "desc") return "descending";
|
|
669
759
|
if (e.getCanSort()) return "none";
|
|
670
760
|
}
|
|
671
|
-
function
|
|
761
|
+
function $n({ data: e, columns: t, isLoading: n = !1, loadingSlot: i, pageSize: c = 20, searchable: d = !1, sortable: f = !0, paginated: p = !0, emptyMessage: m = "Sin resultados", searchPlaceholder: h = "Buscar...", previousLabel: g = "Anterior", nextLabel: _ = "Siguiente", onRowClick: v, selectable: y = !1, onSelectionChange: b, manualPagination: x = !1, pageCount: S, onPageChange: k, "data-testid": A }) {
|
|
672
762
|
let [ee, j] = s([]), [te, ne] = s(""), [M, N] = s({
|
|
673
763
|
pageIndex: 0,
|
|
674
764
|
pageSize: c
|
|
@@ -676,12 +766,12 @@ function Yn({ data: e, columns: t, isLoading: n = !1, loadingSlot: i, pageSize:
|
|
|
676
766
|
id: "__select__",
|
|
677
767
|
size: 40,
|
|
678
768
|
enableSorting: !1,
|
|
679
|
-
header: ({ table: e }) => /* @__PURE__ */ l(
|
|
769
|
+
header: ({ table: e }) => /* @__PURE__ */ l(qn, {
|
|
680
770
|
checked: e.getIsAllPageRowsSelected(),
|
|
681
771
|
onChange: e.getToggleAllPageRowsSelectedHandler(),
|
|
682
772
|
"aria-label": "Select all rows"
|
|
683
773
|
}),
|
|
684
|
-
cell: ({ row: e }) => /* @__PURE__ */ l(
|
|
774
|
+
cell: ({ row: e }) => /* @__PURE__ */ l(qn, {
|
|
685
775
|
checked: e.getIsSelected(),
|
|
686
776
|
onChange: e.getToggleSelectedHandler(),
|
|
687
777
|
"aria-label": `Select row ${e.index + 1}`
|
|
@@ -750,7 +840,7 @@ function Yn({ data: e, columns: t, isLoading: n = !1, loadingSlot: i, pageSize:
|
|
|
750
840
|
className: z.th,
|
|
751
841
|
"data-sortable": e.column.getCanSort() || void 0,
|
|
752
842
|
onClick: e.column.getToggleSortingHandler(),
|
|
753
|
-
"aria-sort":
|
|
843
|
+
"aria-sort": Qn(e.column),
|
|
754
844
|
children: [
|
|
755
845
|
C(e.column.columnDef.header, e.getContext()),
|
|
756
846
|
e.column.getIsSorted() === "asc" && " ▲",
|
|
@@ -808,27 +898,27 @@ function Yn({ data: e, columns: t, isLoading: n = !1, loadingSlot: i, pageSize:
|
|
|
808
898
|
]
|
|
809
899
|
});
|
|
810
900
|
}
|
|
811
|
-
var
|
|
901
|
+
var er = {
|
|
812
902
|
wrapper: "_wrapper_kap55_2",
|
|
813
903
|
label: "_label_kap55_8",
|
|
814
904
|
input: "_input_kap55_16"
|
|
815
905
|
};
|
|
816
906
|
//#endregion
|
|
817
907
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
818
|
-
function
|
|
908
|
+
function tr({ error: e, label: t, className: n, id: r, ref: a, "data-testid": o, ...s }) {
|
|
819
909
|
let c = i(), d = r ?? c;
|
|
820
910
|
return /* @__PURE__ */ u("div", {
|
|
821
|
-
className: I(
|
|
911
|
+
className: I(er.wrapper, n),
|
|
822
912
|
"data-testid": o,
|
|
823
913
|
children: [t && /* @__PURE__ */ l("label", {
|
|
824
914
|
htmlFor: d,
|
|
825
|
-
className:
|
|
915
|
+
className: er.label,
|
|
826
916
|
children: t
|
|
827
917
|
}), /* @__PURE__ */ l("input", {
|
|
828
918
|
ref: a,
|
|
829
919
|
type: "date",
|
|
830
920
|
id: d,
|
|
831
|
-
className:
|
|
921
|
+
className: er.input,
|
|
832
922
|
"data-error": e || void 0,
|
|
833
923
|
"aria-invalid": e || void 0,
|
|
834
924
|
...s
|
|
@@ -844,7 +934,7 @@ var B = {
|
|
|
844
934
|
};
|
|
845
935
|
//#endregion
|
|
846
936
|
//#region src/components/DateRangePicker/DateRangePicker.tsx
|
|
847
|
-
function
|
|
937
|
+
function nr({ startDate: e = "", endDate: t = "", onStartChange: n, onEndChange: r, startLabel: a = "Desde", endLabel: o = "Hasta", error: s, disabled: c, minDate: d, maxDate: f, className: p, "data-testid": m }) {
|
|
848
938
|
let h = i(), g = i();
|
|
849
939
|
return /* @__PURE__ */ u("div", {
|
|
850
940
|
className: I(B.wrapper, p),
|
|
@@ -898,11 +988,11 @@ function Qn({ startDate: e = "", endDate: t = "", onStartChange: n, onEndChange:
|
|
|
898
988
|
}
|
|
899
989
|
//#endregion
|
|
900
990
|
//#region src/utils/focusTrap.ts
|
|
901
|
-
var
|
|
902
|
-
function
|
|
991
|
+
var rr = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
992
|
+
function ir(e, t) {
|
|
903
993
|
r(() => {
|
|
904
994
|
if (!t || !e.current) return;
|
|
905
|
-
let n = e.current, r = document.activeElement, i = () => Array.from(n.querySelectorAll(
|
|
995
|
+
let n = e.current, r = document.activeElement, i = () => Array.from(n.querySelectorAll(rr));
|
|
906
996
|
i()[0]?.focus();
|
|
907
997
|
function a(e) {
|
|
908
998
|
if (e.key !== "Tab") return;
|
|
@@ -929,7 +1019,7 @@ var V = {
|
|
|
929
1019
|
};
|
|
930
1020
|
//#endregion
|
|
931
1021
|
//#region src/components/Dialog/Dialog.tsx
|
|
932
|
-
function
|
|
1022
|
+
function ar({ open: e, onClose: t, title: n, children: a, size: s = "medium", className: c, "data-testid": d }) {
|
|
933
1023
|
let f = i(), p = o(null);
|
|
934
1024
|
return r(() => {
|
|
935
1025
|
if (e) {
|
|
@@ -938,7 +1028,7 @@ function tr({ open: e, onClose: t, title: n, children: a, size: s = "medium", cl
|
|
|
938
1028
|
document.body.style.overflow = "", document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, e);
|
|
939
1029
|
};
|
|
940
1030
|
}
|
|
941
|
-
}, [e]),
|
|
1031
|
+
}, [e]), ir(p, e), r(() => {
|
|
942
1032
|
if (!e) return;
|
|
943
1033
|
let n = (e) => {
|
|
944
1034
|
e.key === "Escape" && (e.preventDefault(), t());
|
|
@@ -1003,13 +1093,13 @@ var H = {
|
|
|
1003
1093
|
menuItem: "_menuItem_4t7ma_172",
|
|
1004
1094
|
menuIcon: "_menuIcon_4t7ma_200",
|
|
1005
1095
|
menuLabel: "_menuLabel_4t7ma_204"
|
|
1006
|
-
},
|
|
1096
|
+
}, or = {
|
|
1007
1097
|
tiny: 14,
|
|
1008
1098
|
small: 16,
|
|
1009
1099
|
medium: 20,
|
|
1010
1100
|
large: 24
|
|
1011
1101
|
};
|
|
1012
|
-
function
|
|
1102
|
+
function sr({ text: e, menuItems: t, size: n = "medium", variant: i = "primary", disabled: a = !1, onSelect: c, onOpen: d, onClose: f, "data-testid": p }) {
|
|
1013
1103
|
let [m, h] = s(!1), [g, _] = s(-1), v = o(null), y = o(null);
|
|
1014
1104
|
function b() {
|
|
1015
1105
|
h(!0), _(-1), d?.();
|
|
@@ -1044,7 +1134,7 @@ function rr({ text: e, menuItems: t, size: n = "medium", variant: i = "primary",
|
|
|
1044
1134
|
}
|
|
1045
1135
|
return document.addEventListener("click", e), () => document.removeEventListener("click", e);
|
|
1046
1136
|
}, [f]);
|
|
1047
|
-
let T =
|
|
1137
|
+
let T = or[n];
|
|
1048
1138
|
return /* @__PURE__ */ u("div", {
|
|
1049
1139
|
ref: v,
|
|
1050
1140
|
className: H.root,
|
|
@@ -1108,7 +1198,7 @@ function rr({ text: e, menuItems: t, size: n = "medium", variant: i = "primary",
|
|
|
1108
1198
|
})]
|
|
1109
1199
|
});
|
|
1110
1200
|
}
|
|
1111
|
-
var
|
|
1201
|
+
var cr = {
|
|
1112
1202
|
container: "_container_1mo04_2",
|
|
1113
1203
|
triggerWrapper: "_triggerWrapper_1mo04_8",
|
|
1114
1204
|
menu: "_menu_1mo04_19",
|
|
@@ -1117,7 +1207,7 @@ var ir = {
|
|
|
1117
1207
|
};
|
|
1118
1208
|
//#endregion
|
|
1119
1209
|
//#region src/components/DropdownMenu/DropdownMenu.tsx
|
|
1120
|
-
function
|
|
1210
|
+
function lr({ trigger: e, items: t, align: i = "left", "data-testid": a }) {
|
|
1121
1211
|
let [c, d] = s(!1), f = o(null), p = o(null), m = o(/* @__PURE__ */ new Map()), h = n(() => {
|
|
1122
1212
|
d(!1), p.current?.focus();
|
|
1123
1213
|
}, []);
|
|
@@ -1139,18 +1229,18 @@ function ar({ trigger: e, items: t, align: i = "left", "data-testid": a }) {
|
|
|
1139
1229
|
e && m.current.get(e.id)?.focus();
|
|
1140
1230
|
}, [c, t]), /* @__PURE__ */ u("div", {
|
|
1141
1231
|
ref: f,
|
|
1142
|
-
className:
|
|
1232
|
+
className: cr.container,
|
|
1143
1233
|
"data-testid": a,
|
|
1144
1234
|
children: [/* @__PURE__ */ l("button", {
|
|
1145
1235
|
ref: p,
|
|
1146
1236
|
type: "button",
|
|
1147
|
-
className:
|
|
1237
|
+
className: cr.triggerWrapper,
|
|
1148
1238
|
onClick: () => d(!c),
|
|
1149
1239
|
"aria-haspopup": "menu",
|
|
1150
1240
|
"aria-expanded": c,
|
|
1151
1241
|
children: e
|
|
1152
1242
|
}), c && /* @__PURE__ */ l("div", {
|
|
1153
|
-
className:
|
|
1243
|
+
className: cr.menu,
|
|
1154
1244
|
"data-align": i,
|
|
1155
1245
|
role: "menu",
|
|
1156
1246
|
onKeyDown: (e) => {
|
|
@@ -1163,7 +1253,7 @@ function ar({ trigger: e, items: t, align: i = "left", "data-testid": a }) {
|
|
|
1163
1253
|
},
|
|
1164
1254
|
type: "button",
|
|
1165
1255
|
role: "menuitem",
|
|
1166
|
-
className:
|
|
1256
|
+
className: cr.menuItem,
|
|
1167
1257
|
"data-danger": e.danger || void 0,
|
|
1168
1258
|
disabled: e.disabled,
|
|
1169
1259
|
tabIndex: -1,
|
|
@@ -1171,63 +1261,63 @@ function ar({ trigger: e, items: t, align: i = "left", "data-testid": a }) {
|
|
|
1171
1261
|
e.onClick(), d(!1);
|
|
1172
1262
|
},
|
|
1173
1263
|
children: [e.icon && /* @__PURE__ */ l("span", {
|
|
1174
|
-
className:
|
|
1264
|
+
className: cr.icon,
|
|
1175
1265
|
children: e.icon
|
|
1176
1266
|
}), e.label]
|
|
1177
1267
|
}, e.id))
|
|
1178
1268
|
})]
|
|
1179
1269
|
});
|
|
1180
1270
|
}
|
|
1181
|
-
var
|
|
1271
|
+
var ur = {
|
|
1182
1272
|
skeleton: "_skeleton_d5768_2",
|
|
1183
1273
|
"ds-skeleton-shimmer": "_ds-skeleton-shimmer_d5768_1"
|
|
1184
1274
|
};
|
|
1185
1275
|
//#endregion
|
|
1186
1276
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
1187
|
-
function
|
|
1277
|
+
function dr(e) {
|
|
1188
1278
|
if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
|
|
1189
1279
|
}
|
|
1190
|
-
function
|
|
1280
|
+
function fr({ width: e, height: t, variant: n = "rectangular", className: r, "data-testid": i }) {
|
|
1191
1281
|
return /* @__PURE__ */ l("span", {
|
|
1192
1282
|
"aria-hidden": "true",
|
|
1193
|
-
className: [
|
|
1283
|
+
className: [ur.skeleton, r].filter(Boolean).join(" "),
|
|
1194
1284
|
"data-variant": n,
|
|
1195
1285
|
"data-testid": i,
|
|
1196
1286
|
style: {
|
|
1197
|
-
width:
|
|
1198
|
-
height:
|
|
1287
|
+
width: dr(e),
|
|
1288
|
+
height: dr(t)
|
|
1199
1289
|
}
|
|
1200
1290
|
});
|
|
1201
1291
|
}
|
|
1202
|
-
var
|
|
1292
|
+
var pr = {
|
|
1203
1293
|
imagePreview: "_imagePreview_1rnes_2",
|
|
1204
1294
|
hidden: "_hidden_1rnes_21",
|
|
1205
1295
|
errorIcon: "_errorIcon_1rnes_27"
|
|
1206
1296
|
};
|
|
1207
1297
|
//#endregion
|
|
1208
1298
|
//#region src/components/ImagePreview/ImagePreview.tsx
|
|
1209
|
-
function
|
|
1299
|
+
function mr(e) {
|
|
1210
1300
|
return e.startsWith("data:image/");
|
|
1211
1301
|
}
|
|
1212
|
-
function
|
|
1302
|
+
function hr(e) {
|
|
1213
1303
|
try {
|
|
1214
1304
|
return new URL(e), !0;
|
|
1215
1305
|
} catch {
|
|
1216
1306
|
return !1;
|
|
1217
1307
|
}
|
|
1218
1308
|
}
|
|
1219
|
-
function
|
|
1309
|
+
function gr({ imageSrc: e, width: t = 40, height: n = 40, alt: i = "Image without alt text", borderRadius: a = 8, className: o, "data-testid": c }) {
|
|
1220
1310
|
let [d, f] = s(() => e ? "loading" : "error");
|
|
1221
1311
|
return r(() => {
|
|
1222
1312
|
if (!e) {
|
|
1223
1313
|
f("error");
|
|
1224
1314
|
return;
|
|
1225
1315
|
}
|
|
1226
|
-
if (!
|
|
1316
|
+
if (!mr(e) && !hr(e)) {
|
|
1227
1317
|
f("error");
|
|
1228
1318
|
return;
|
|
1229
1319
|
}
|
|
1230
|
-
if (
|
|
1320
|
+
if (mr(e)) {
|
|
1231
1321
|
f("loaded");
|
|
1232
1322
|
return;
|
|
1233
1323
|
}
|
|
@@ -1237,7 +1327,7 @@ function fr({ imageSrc: e, width: t = 40, height: n = 40, alt: i = "Image withou
|
|
|
1237
1327
|
t.onload = null, t.onerror = null;
|
|
1238
1328
|
};
|
|
1239
1329
|
}, [e]), /* @__PURE__ */ u("div", {
|
|
1240
|
-
className: [
|
|
1330
|
+
className: [pr.imagePreview, o].filter(Boolean).join(" "),
|
|
1241
1331
|
"data-state": d,
|
|
1242
1332
|
"data-testid": c,
|
|
1243
1333
|
role: d === "error" ? "img" : void 0,
|
|
@@ -1254,15 +1344,15 @@ function fr({ imageSrc: e, width: t = 40, height: n = 40, alt: i = "Image withou
|
|
|
1254
1344
|
width: t,
|
|
1255
1345
|
height: n,
|
|
1256
1346
|
decoding: "async",
|
|
1257
|
-
loading:
|
|
1258
|
-
className: d === "loading" ?
|
|
1347
|
+
loading: mr(e) ? void 0 : "lazy",
|
|
1348
|
+
className: d === "loading" ? pr.hidden : void 0
|
|
1259
1349
|
}),
|
|
1260
|
-
d === "loading" && /* @__PURE__ */ l(
|
|
1350
|
+
d === "loading" && /* @__PURE__ */ l(fr, {
|
|
1261
1351
|
width: t,
|
|
1262
1352
|
height: n
|
|
1263
1353
|
}),
|
|
1264
1354
|
d === "error" && /* @__PURE__ */ l("span", {
|
|
1265
|
-
className:
|
|
1355
|
+
className: pr.errorIcon,
|
|
1266
1356
|
children: /* @__PURE__ */ l(F, {
|
|
1267
1357
|
name: "error-outline",
|
|
1268
1358
|
size: Math.round(t * .6),
|
|
@@ -1281,7 +1371,7 @@ var U = {
|
|
|
1281
1371
|
zoneLabel: "_zoneLabel_10rwp_81",
|
|
1282
1372
|
description: "_description_10rwp_88",
|
|
1283
1373
|
fileList: "_fileList_10rwp_94"
|
|
1284
|
-
},
|
|
1374
|
+
}, _r = {
|
|
1285
1375
|
images: {
|
|
1286
1376
|
types: [
|
|
1287
1377
|
"png",
|
|
@@ -1321,11 +1411,11 @@ var U = {
|
|
|
1321
1411
|
mimeTypes: ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]
|
|
1322
1412
|
}
|
|
1323
1413
|
};
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1414
|
+
function vr(e) {
|
|
1415
|
+
return _r[e].mimeTypes.join(",");
|
|
1326
1416
|
}
|
|
1327
|
-
function
|
|
1328
|
-
let { types: n, mimeTypes: r } =
|
|
1417
|
+
function yr(e, t) {
|
|
1418
|
+
let { types: n, mimeTypes: r } = _r[t];
|
|
1329
1419
|
return Array.from(e).filter((e) => {
|
|
1330
1420
|
let t = r.some((t) => e.type === t), i = n.some((t) => e.name.toLowerCase().endsWith(`.${t}`));
|
|
1331
1421
|
return t || i;
|
|
@@ -1333,39 +1423,39 @@ function hr(e, t) {
|
|
|
1333
1423
|
}
|
|
1334
1424
|
//#endregion
|
|
1335
1425
|
//#region src/components/DropZone/DropZone.tsx
|
|
1336
|
-
async function
|
|
1426
|
+
async function br(e, t) {
|
|
1337
1427
|
return t ? new Promise((t) => {
|
|
1338
1428
|
let n = new FileReader();
|
|
1339
1429
|
n.onload = (e) => t(e.target?.result ?? ""), n.readAsDataURL(e);
|
|
1340
1430
|
}) : "";
|
|
1341
1431
|
}
|
|
1342
|
-
async function
|
|
1432
|
+
async function xr(e, t) {
|
|
1343
1433
|
return Promise.all(e.map(async (e) => ({
|
|
1344
1434
|
id: crypto.randomUUID(),
|
|
1345
1435
|
file: e,
|
|
1346
1436
|
name: e.name,
|
|
1347
|
-
preview: await
|
|
1437
|
+
preview: await br(e, t)
|
|
1348
1438
|
})));
|
|
1349
1439
|
}
|
|
1350
|
-
function
|
|
1440
|
+
function Sr({ label: e = "Haz click o arrastra un archivo para subir", allowedFileTypes: t = "images", multiple: n = !0, displayPreview: i = !0, displayFileList: a = !1, value: c, onDrop: d, onDropError: f, onRemove: p, onChange: m, className: h, "data-testid": g }) {
|
|
1351
1441
|
let _ = o(null), [v, y] = s(!1), [b, x] = s(!1), [S, C] = s(c ?? []);
|
|
1352
1442
|
r(() => {
|
|
1353
1443
|
c !== void 0 && C(c ?? []);
|
|
1354
1444
|
}, [c]);
|
|
1355
|
-
let w = c === void 0 ? S : c ?? [], T = (a || !i && !a) && w.length > 0, E =
|
|
1445
|
+
let w = c === void 0 ? S : c ?? [], T = (a || !i && !a) && w.length > 0, E = _r[t].types, D = vr(t), O = t === "images";
|
|
1356
1446
|
async function k(e, r) {
|
|
1357
1447
|
if (e.length === 0) {
|
|
1358
1448
|
f?.(`No files match the allowed types: ${t}`);
|
|
1359
1449
|
return;
|
|
1360
1450
|
}
|
|
1361
|
-
let i = await
|
|
1451
|
+
let i = await xr(e, O), a = n ? [...w, ...i] : i;
|
|
1362
1452
|
c === void 0 && C(a), m?.(a), d(r);
|
|
1363
1453
|
}
|
|
1364
1454
|
async function A(e) {
|
|
1365
1455
|
if (!b) {
|
|
1366
1456
|
x(!0);
|
|
1367
1457
|
try {
|
|
1368
|
-
await k(
|
|
1458
|
+
await k(yr(e, t), e);
|
|
1369
1459
|
} catch (e) {
|
|
1370
1460
|
f?.(e instanceof Error ? e.message : "Unknown error");
|
|
1371
1461
|
} finally {
|
|
@@ -1387,7 +1477,7 @@ function vr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1387
1477
|
type: "button",
|
|
1388
1478
|
className: U.previewBtn,
|
|
1389
1479
|
onClick: () => ee(t),
|
|
1390
|
-
children: [/* @__PURE__ */ l(
|
|
1480
|
+
children: [/* @__PURE__ */ l(gr, {
|
|
1391
1481
|
imageSrc: e.preview,
|
|
1392
1482
|
width: 70,
|
|
1393
1483
|
height: 70,
|
|
@@ -1468,7 +1558,7 @@ function vr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1468
1558
|
}
|
|
1469
1559
|
//#endregion
|
|
1470
1560
|
//#region src/components/DsProvider/DsProvider.tsx
|
|
1471
|
-
function
|
|
1561
|
+
function Cr({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
1472
1562
|
return /* @__PURE__ */ l("div", {
|
|
1473
1563
|
className: I("tot-ds-root", n),
|
|
1474
1564
|
"data-theme": e,
|
|
@@ -1476,18 +1566,18 @@ function yr({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
|
1476
1566
|
children: t
|
|
1477
1567
|
});
|
|
1478
1568
|
}
|
|
1479
|
-
var
|
|
1569
|
+
var wr = {
|
|
1480
1570
|
wrapper: "_wrapper_x6gz1_1",
|
|
1481
1571
|
message: "_message_x6gz1_10"
|
|
1482
1572
|
};
|
|
1483
1573
|
//#endregion
|
|
1484
1574
|
//#region src/components/EmptyState/EmptyState.tsx
|
|
1485
|
-
function
|
|
1575
|
+
function Tr({ message: e, action: t, "data-testid": n }) {
|
|
1486
1576
|
return /* @__PURE__ */ u("div", {
|
|
1487
|
-
className:
|
|
1577
|
+
className: wr.wrapper,
|
|
1488
1578
|
"data-testid": n,
|
|
1489
1579
|
children: [/* @__PURE__ */ l("p", {
|
|
1490
|
-
className:
|
|
1580
|
+
className: wr.message,
|
|
1491
1581
|
children: e
|
|
1492
1582
|
}), t]
|
|
1493
1583
|
});
|
|
@@ -1501,7 +1591,7 @@ var W = {
|
|
|
1501
1591
|
details: "_details_1tgia_39",
|
|
1502
1592
|
stack: "_stack_1tgia_57",
|
|
1503
1593
|
retryButton: "_retryButton_1tgia_70"
|
|
1504
|
-
},
|
|
1594
|
+
}, Er = class extends e {
|
|
1505
1595
|
constructor(e) {
|
|
1506
1596
|
super(e), this.state = {
|
|
1507
1597
|
hasError: !1,
|
|
@@ -1574,7 +1664,7 @@ var W = {
|
|
|
1574
1664
|
})
|
|
1575
1665
|
}) : n;
|
|
1576
1666
|
}
|
|
1577
|
-
},
|
|
1667
|
+
}, Dr = {
|
|
1578
1668
|
field: "_field_7gstu_2",
|
|
1579
1669
|
label: "_label_7gstu_8",
|
|
1580
1670
|
required: "_required_7gstu_16",
|
|
@@ -1583,30 +1673,30 @@ var W = {
|
|
|
1583
1673
|
};
|
|
1584
1674
|
//#endregion
|
|
1585
1675
|
//#region src/components/FormField/FormField.tsx
|
|
1586
|
-
function
|
|
1676
|
+
function Or({ label: e, htmlFor: t, error: n, description: r, required: i = !1, children: a, className: o, "data-testid": s }) {
|
|
1587
1677
|
let c = t ? `${t}-error` : void 0, d = t ? `${t}-description` : void 0;
|
|
1588
1678
|
return /* @__PURE__ */ u("div", {
|
|
1589
|
-
className: [
|
|
1679
|
+
className: [Dr.field, o].filter(Boolean).join(" "),
|
|
1590
1680
|
"data-testid": s,
|
|
1591
1681
|
children: [
|
|
1592
1682
|
/* @__PURE__ */ u("label", {
|
|
1593
1683
|
htmlFor: t,
|
|
1594
|
-
className:
|
|
1684
|
+
className: Dr.label,
|
|
1595
1685
|
children: [e, i && /* @__PURE__ */ u("span", {
|
|
1596
|
-
className:
|
|
1686
|
+
className: Dr.required,
|
|
1597
1687
|
"aria-hidden": "true",
|
|
1598
1688
|
children: [" ", "*"]
|
|
1599
1689
|
})]
|
|
1600
1690
|
}),
|
|
1601
1691
|
r && /* @__PURE__ */ l("p", {
|
|
1602
1692
|
id: d,
|
|
1603
|
-
className:
|
|
1693
|
+
className: Dr.description,
|
|
1604
1694
|
children: r
|
|
1605
1695
|
}),
|
|
1606
1696
|
a,
|
|
1607
1697
|
n && /* @__PURE__ */ l("p", {
|
|
1608
1698
|
id: c,
|
|
1609
|
-
className:
|
|
1699
|
+
className: Dr.error,
|
|
1610
1700
|
role: "alert",
|
|
1611
1701
|
"aria-live": "polite",
|
|
1612
1702
|
children: n
|
|
@@ -1614,15 +1704,15 @@ function wr({ label: e, htmlFor: t, error: n, description: r, required: i = !1,
|
|
|
1614
1704
|
]
|
|
1615
1705
|
});
|
|
1616
1706
|
}
|
|
1617
|
-
var
|
|
1707
|
+
var kr = {
|
|
1618
1708
|
wrapper: "_wrapper_8byuq_2",
|
|
1619
1709
|
error: "_error_8byuq_9"
|
|
1620
1710
|
};
|
|
1621
1711
|
//#endregion
|
|
1622
1712
|
//#region src/components/GoogleSignInButton/GoogleSignInButton.tsx
|
|
1623
|
-
function
|
|
1713
|
+
function Ar({ onSignIn: e, isPending: t = !1, isError: n = !1, error: r, "data-testid": i }) {
|
|
1624
1714
|
return /* @__PURE__ */ u("div", {
|
|
1625
|
-
className:
|
|
1715
|
+
className: kr.wrapper,
|
|
1626
1716
|
"data-testid": i,
|
|
1627
1717
|
children: [/* @__PURE__ */ u(N, {
|
|
1628
1718
|
type: "button",
|
|
@@ -1639,36 +1729,36 @@ function Er({ onSignIn: e, isPending: t = !1, isError: n = !1, error: r, "data-t
|
|
|
1639
1729
|
}), "Google"]
|
|
1640
1730
|
}), n && /* @__PURE__ */ l("span", {
|
|
1641
1731
|
role: "alert",
|
|
1642
|
-
className:
|
|
1732
|
+
className: kr.error,
|
|
1643
1733
|
children: r instanceof Error ? r.message : "Error al iniciar sesión con Google"
|
|
1644
1734
|
})]
|
|
1645
1735
|
});
|
|
1646
1736
|
}
|
|
1647
|
-
var
|
|
1737
|
+
var jr = {
|
|
1648
1738
|
groupedButtons: "_groupedButtons_13s4p_2",
|
|
1649
1739
|
button: "_button_13s4p_15"
|
|
1650
1740
|
};
|
|
1651
1741
|
//#endregion
|
|
1652
1742
|
//#region src/components/GroupedButtons/GroupedButtons.tsx
|
|
1653
|
-
function
|
|
1743
|
+
function Mr(e, t) {
|
|
1654
1744
|
return t === 1 ? "standalone" : e === 0 ? "left" : e === t - 1 ? "right" : "center";
|
|
1655
1745
|
}
|
|
1656
|
-
function
|
|
1746
|
+
function Nr({ label: e, options: t, selectedButton: n, size: r = "medium", fullWidth: i = !1, disabled: a = !1, onChange: o, className: c, ...d }) {
|
|
1657
1747
|
let [f, p] = s(() => t[0]?.value), m = n !== void 0, h = m ? n : f, g = (e) => {
|
|
1658
1748
|
let n = t.find((t) => t.value === e);
|
|
1659
1749
|
a || n?.disabled || (m || p(e), o?.(e));
|
|
1660
1750
|
};
|
|
1661
1751
|
return /* @__PURE__ */ l("fieldset", {
|
|
1662
1752
|
"aria-label": e,
|
|
1663
|
-
className: [
|
|
1753
|
+
className: [jr.groupedButtons, c].filter(Boolean).join(" "),
|
|
1664
1754
|
disabled: a,
|
|
1665
1755
|
"data-full-width": i ? "" : void 0,
|
|
1666
1756
|
...d,
|
|
1667
1757
|
children: t.map((e, n) => /* @__PURE__ */ u("button", {
|
|
1668
1758
|
type: "button",
|
|
1669
|
-
className:
|
|
1759
|
+
className: jr.button,
|
|
1670
1760
|
"data-size": r,
|
|
1671
|
-
"data-position":
|
|
1761
|
+
"data-position": Mr(n, t.length),
|
|
1672
1762
|
"data-selected": h === e.value ? "" : void 0,
|
|
1673
1763
|
disabled: a || e.disabled,
|
|
1674
1764
|
onClick: () => g(e.value),
|
|
@@ -1679,7 +1769,7 @@ function kr({ label: e, options: t, selectedButton: n, size: r = "medium", fullW
|
|
|
1679
1769
|
}, e.value))
|
|
1680
1770
|
});
|
|
1681
1771
|
}
|
|
1682
|
-
var
|
|
1772
|
+
var Pr = {
|
|
1683
1773
|
header: "_header_1dj55_2",
|
|
1684
1774
|
item: "_item_1dj55_17",
|
|
1685
1775
|
title: "_title_1dj55_24",
|
|
@@ -1687,18 +1777,18 @@ var Ar = {
|
|
|
1687
1777
|
};
|
|
1688
1778
|
//#endregion
|
|
1689
1779
|
//#region src/components/Header/Header.tsx
|
|
1690
|
-
function
|
|
1780
|
+
function Fr({ headers: e = [], spaceBetween: t = !1, className: n, ...r }) {
|
|
1691
1781
|
return /* @__PURE__ */ l("section", {
|
|
1692
|
-
className: [
|
|
1782
|
+
className: [Pr.header, n].filter(Boolean).join(" "),
|
|
1693
1783
|
"data-space-between": t ? "" : void 0,
|
|
1694
1784
|
...r,
|
|
1695
1785
|
children: e.map((e) => /* @__PURE__ */ u("div", {
|
|
1696
|
-
className:
|
|
1786
|
+
className: Pr.item,
|
|
1697
1787
|
children: [/* @__PURE__ */ l("p", {
|
|
1698
|
-
className:
|
|
1788
|
+
className: Pr.title,
|
|
1699
1789
|
children: e.title
|
|
1700
1790
|
}), e.description && /* @__PURE__ */ l("p", {
|
|
1701
|
-
className:
|
|
1791
|
+
className: Pr.description,
|
|
1702
1792
|
children: e.description
|
|
1703
1793
|
})]
|
|
1704
1794
|
}, e.title))
|
|
@@ -1706,12 +1796,12 @@ function jr({ headers: e = [], spaceBetween: t = !1, className: n, ...r }) {
|
|
|
1706
1796
|
}
|
|
1707
1797
|
//#endregion
|
|
1708
1798
|
//#region src/components/LanguageSelector/LanguageSelector.tsx
|
|
1709
|
-
function
|
|
1799
|
+
function Ir({ value: e, options: t, onChange: n, "data-testid": r }) {
|
|
1710
1800
|
let i = a(() => t.map(({ value: e, label: t }) => ({
|
|
1711
1801
|
value: e,
|
|
1712
1802
|
label: t
|
|
1713
1803
|
})), [t]);
|
|
1714
|
-
return /* @__PURE__ */ l(
|
|
1804
|
+
return /* @__PURE__ */ l(sr, {
|
|
1715
1805
|
text: t.find((t) => t.value === e)?.label ?? e,
|
|
1716
1806
|
menuItems: i,
|
|
1717
1807
|
size: "small",
|
|
@@ -1720,22 +1810,22 @@ function Mr({ value: e, options: t, onChange: n, "data-testid": r }) {
|
|
|
1720
1810
|
"data-testid": r
|
|
1721
1811
|
});
|
|
1722
1812
|
}
|
|
1723
|
-
var
|
|
1813
|
+
var Lr = { logo: "_logo_t6mnr_2" }, Rr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" fill=\"none\" viewBox=\"0 0 80 80\"><path fill=\"#e6d9ca\" d=\"M47.328 24.999V10H32.329v14.999h-15v15h15v14.999h14.999V39.999h14.999V25z\"/><path fill=\"#ff4235\" d=\"M32.328 40a15 15 0 0 0 14.998 15h15v15H47.329a15 15 0 0 1-15-15z\"/></svg>\n", zr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" fill=\"none\" viewBox=\"0 0 80 80\"><path fill=\"#1b1b1b\" d=\"M47.328 24.999V10H32.329v14.999h-15v15h15v14.999h14.999V39.999h14.999V25z\"/><path fill=\"#e6d9ca\" d=\"M32.328 40a15 15 0 0 0 14.998 15h15v15H47.329a15 15 0 0 1-15-15z\"/></svg>\n", Br = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"80\" height=\"80\" fill=\"none\" viewBox=\"0 0 80 80\"><path fill=\"#1b1b1b\" d=\"M47.328 24.999V10H32.329v14.999h-15v15h15v14.999h14.999V39.999h14.999V25z\"/><path fill=\"#ff4235\" d=\"M32.328 40a15 15 0 0 0 14.998 15h15v15H47.329a15 15 0 0 1-15-15z\"/></svg>\n", Vr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"317\" height=\"80\" fill=\"none\" viewBox=\"0 0 317 80\"><g clip-path=\"url(#a)\"><path fill=\"#e6d9ca\" d=\"M7.54 63.372v-33.22H.02V15.932h7.539V0h16.046v15.93h11.31v14.223h-11.33v33.34zM103.586 47.3c0 18.721-14.222 32.706-31.612 32.706S40.484 66.021 40.484 47.3s14.08-32.95 31.49-32.95 31.612 14.222 31.612 32.95m-16.168.121c0-10.823-6.932-18.363-15.444-18.363s-15.438 7.54-15.438 18.363c0 10.574 6.932 17.87 15.438 17.87s15.444-7.296 15.444-17.87M142.002 78.406c-18.357 1.92-28.086-9.12-28.086-26.242V30.153h-7.539V15.93h7.571V0h16.002v15.93h11.303v14.223H129.95v22.133c0 8.75 4.006 12.033 12.033 11.52z\"/><path fill=\"#ff4235\" d=\"M163.155 53.502c2.068 7.68 8.148 12.398 15.688 12.398 5.345 0 10.574-2.31 13.249-7.297h17.141c-3.642 12.801-14.721 21.403-30.268 21.403-17.634 0-32.099-14.593-32.099-32.706s14.465-32.95 32.099-32.95c18.478 0 33.794 14.344 31.484 39.152zm31.363-13.134c-1.92-7.297-8.026-11.918-15.681-11.918-7.297 0-13.134 4.622-15.445 11.918zM260.296 72.71c-4.135 4.378-10.452 7.04-19.202 7.04-13.255 0-25.41-6.688-25.41-20.308 0-14.082 11.79-17.75 25.654-18.965 10.458-.973 17.87-2.19 17.87-7.297 0-3.283-4.256-5.959-11.425-5.959-5.716 0-12.283 2.56-13.742 7.905h-16.052c1.581-11.911 13.005-20.789 29.442-20.789 25.41 0 27.356 16.411 27.356 21.397V68.32c.137 3.481.751 6.927 1.824 10.24H261.89a22.4 22.4 0 0 1-1.594-5.85m-.486-24.322c-3.405 2.189-8.628 3.283-15.195 4.013-7.905.851-12.769 2.56-12.769 7.169 0 3.526 4.134 5.958 10.58 5.958 9.601 0 17.384-3.283 17.384-11.303zM316.205 78.406c-18.357 1.92-28.086-9.12-28.086-26.242V30.153h-7.52V15.93h7.539V0h16.046v15.93h11.31v14.223h-11.31v22.133c0 8.75 4.014 12.033 12.04 11.52zM7.495 47.044a16.45 16.45 0 0 0 16.392 16.392l10.99.044.038 16.354-10.983-.045A16.45 16.45 0 0 1 7.54 63.397z\"/></g><defs><clipPath id=\"a\"><path fill=\"#fff\" d=\"M0 0h316.224v80H0z\"/></clipPath></defs></svg>\n", Hr = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"317\" height=\"80\" fill=\"none\" viewBox=\"0 0 317 80\"><g clip-path=\"url(#a)\"><path fill=\"#1b1b1b\" d=\"M7.54 63.372v-33.22H.02V15.932h7.539V0h16.046v15.93h11.31v14.223h-11.31v33.34zM103.586 47.3c0 18.721-14.222 32.706-31.612 32.706S40.484 66.021 40.484 47.3s14.08-32.95 31.49-32.95 31.612 14.222 31.612 32.95m-16.168.121c0-10.823-6.931-18.363-15.444-18.363s-15.438 7.54-15.438 18.363c0 10.574 6.932 17.87 15.438 17.87s15.444-7.296 15.444-17.87M142.002 78.406c-18.357 1.92-28.086-9.12-28.086-26.242V30.153h-7.539V15.93h7.571V0h16.002v15.93h11.303v14.223H129.95v22.133c0 8.75 4.006 12.033 12.033 11.52z\"/><path fill=\"#e6d9ca\" d=\"M163.155 53.502c2.068 7.68 8.148 12.398 15.688 12.398 5.345 0 10.574-2.31 13.249-7.297h17.141c-3.642 12.801-14.721 21.403-30.268 21.403-17.634 0-32.099-14.593-32.099-32.706s14.465-32.95 32.099-32.95c18.478 0 33.794 14.344 31.484 39.152zm31.363-13.134c-1.92-7.297-8.026-11.918-15.681-11.918-7.297 0-13.134 4.622-15.445 11.918zM260.296 72.71c-4.135 4.378-10.452 7.04-19.202 7.04-13.255 0-25.41-6.688-25.41-20.308 0-14.082 11.79-17.75 25.654-18.965 10.458-.973 17.87-2.19 17.87-7.297 0-3.283-4.256-5.959-11.425-5.959-5.716 0-12.283 2.56-13.742 7.905h-16.046c1.581-11.911 13.006-20.789 29.442-20.789 25.41 0 27.356 16.411 27.356 21.397V68.32c.137 3.481.751 6.927 1.824 10.24h-14.721a22.4 22.4 0 0 1-1.6-5.85m-.486-24.322c-3.406 2.189-8.628 3.283-15.195 4.013-7.905.851-12.801 2.56-12.801 7.169 0 3.526 4.134 5.958 10.58 5.958 9.601 0 17.384-3.283 17.384-11.303zM316.204 78.406c-18.356 1.92-28.085-9.12-28.085-26.242V30.153h-7.54V15.93h7.54V0h16.046v15.93h11.31v14.223h-11.31v22.133c0 8.75 4.013 12.033 12.039 11.52zM7.495 47.044a16.45 16.45 0 0 0 16.392 16.392l10.99.044.038 16.354-10.983-.045A16.45 16.45 0 0 1 7.54 63.397z\"/></g><defs><clipPath id=\"a\"><path fill=\"#fff\" d=\"M0 0h316.224v80H0z\"/></clipPath></defs></svg>\n", Ur = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"317\" height=\"80\" fill=\"none\" viewBox=\"0 0 317 80\"><g clip-path=\"url(#a)\"><path fill=\"#1b1b1b\" d=\"M7.54 63.372v-33.22H.02V15.932h7.539V0h16.046v15.93h11.31v14.223h-11.33v33.34zM103.586 47.3c0 18.721-14.222 32.706-31.612 32.706S40.484 66.021 40.484 47.3s14.08-32.95 31.49-32.95 31.612 14.222 31.612 32.95m-16.168.121c0-10.823-6.932-18.363-15.444-18.363s-15.438 7.54-15.438 18.363c0 10.574 6.932 17.87 15.438 17.87s15.444-7.296 15.444-17.87M142.002 78.406c-18.357 1.92-28.086-9.12-28.086-26.242V30.153h-7.539V15.93h7.571V0h16.002v15.93h11.303v14.223H129.95v22.133c0 8.75 4.006 12.033 12.033 11.52z\"/><path fill=\"#ff4235\" d=\"M163.155 53.502c2.068 7.68 8.148 12.398 15.688 12.398 5.345 0 10.574-2.31 13.249-7.297h17.141c-3.642 12.801-14.721 21.403-30.268 21.403-17.634 0-32.099-14.593-32.099-32.706s14.465-32.95 32.099-32.95c18.478 0 33.794 14.344 31.484 39.152zm31.363-13.134c-1.92-7.297-8.026-11.918-15.681-11.918-7.297 0-13.134 4.622-15.445 11.918zM260.296 72.71c-4.135 4.378-10.452 7.04-19.202 7.04-13.255 0-25.41-6.688-25.41-20.308 0-14.082 11.79-17.75 25.654-18.965 10.458-.973 17.87-2.19 17.87-7.297 0-3.283-4.256-5.959-11.425-5.959-5.716 0-12.283 2.56-13.742 7.905h-16.046c1.581-11.911 13.006-20.789 29.442-20.789 25.41 0 27.356 16.411 27.356 21.397V68.32c.137 3.481.751 6.927 1.824 10.24h-14.721a22.4 22.4 0 0 1-1.6-5.85m-.486-24.322c-3.405 2.189-8.628 3.283-15.195 4.013-7.905.851-12.801 2.56-12.801 7.169 0 3.526 4.135 5.958 10.58 5.958 9.601 0 17.384-3.283 17.384-11.303zM316.204 78.406c-18.356 1.92-28.085-9.12-28.085-26.242V30.153h-7.54V15.93h7.54V0h16.046v15.93h11.31v14.223h-11.31v22.133c0 8.75 4.013 12.033 12.039 11.52zM7.495 47.044a16.45 16.45 0 0 0 16.392 16.392l10.99.044.038 16.354-10.983-.045A16.45 16.45 0 0 1 7.54 63.397z\"/></g><defs><clipPath id=\"a\"><path fill=\"#fff\" d=\"M0 0h316.224v80H0z\"/></clipPath></defs></svg>\n";
|
|
1724
1814
|
//#endregion
|
|
1725
1815
|
//#region src/components/LogoToteat/LogoToteat.tsx
|
|
1726
|
-
function
|
|
1816
|
+
function Wr(e) {
|
|
1727
1817
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
1728
1818
|
}
|
|
1729
|
-
var
|
|
1730
|
-
original:
|
|
1731
|
-
"cream-orange":
|
|
1732
|
-
"black-cream":
|
|
1733
|
-
},
|
|
1734
|
-
original:
|
|
1735
|
-
"cream-orange":
|
|
1736
|
-
"black-cream":
|
|
1819
|
+
var Gr = {
|
|
1820
|
+
original: Ur,
|
|
1821
|
+
"cream-orange": Vr,
|
|
1822
|
+
"black-cream": Hr
|
|
1823
|
+
}, Kr = {
|
|
1824
|
+
original: Br,
|
|
1825
|
+
"cream-orange": Rr,
|
|
1826
|
+
"black-cream": zr
|
|
1737
1827
|
};
|
|
1738
|
-
function
|
|
1828
|
+
function qr(e, t, n) {
|
|
1739
1829
|
if (t !== void 0 && n !== void 0) return {
|
|
1740
1830
|
width: t,
|
|
1741
1831
|
height: n
|
|
@@ -1758,10 +1848,10 @@ function Ur(e, t, n) {
|
|
|
1758
1848
|
height: Math.round(t / 317 * 80)
|
|
1759
1849
|
};
|
|
1760
1850
|
}
|
|
1761
|
-
function
|
|
1762
|
-
let s = e === "icon" ?
|
|
1851
|
+
function Jr({ mode: e = "complete", variant: t = "original", width: n, height: r, alt: i = "Logo Toteat", className: a, ...o }) {
|
|
1852
|
+
let s = e === "icon" ? Kr[t] : Gr[t], c = qr(e, n, r), u = s.replace(/width="\d+"/, `width="${c.width}"`).replace(/height="\d+"/, `height="${c.height}"`).replace(/<svg/, `<svg role="img" aria-label="${Wr(i)}"`);
|
|
1763
1853
|
return /* @__PURE__ */ l("span", {
|
|
1764
|
-
className: [
|
|
1854
|
+
className: [Lr.logo, a].filter(Boolean).join(" "),
|
|
1765
1855
|
"data-mode": e,
|
|
1766
1856
|
"data-variant": t,
|
|
1767
1857
|
...o,
|
|
@@ -1779,8 +1869,8 @@ var G = {
|
|
|
1779
1869
|
search: "_search_jb72r_120",
|
|
1780
1870
|
option: "_option_jb72r_108",
|
|
1781
1871
|
noResults: "_noResults_jb72r_162"
|
|
1782
|
-
},
|
|
1783
|
-
function
|
|
1872
|
+
}, Yr = 240;
|
|
1873
|
+
function Xr({ options: e, value: t, onChange: i, placeholder: a = "Seleccionar...", searchPlaceholder: c = "Buscar...", noResultsText: d = "Sin resultados", removeLabel: f = "Eliminar", disabled: p, error: m, "data-testid": h }) {
|
|
1784
1874
|
let [g, _] = s(!1), [v, y] = s(!1), [b, x] = s(""), S = o(null), C = o(null), w = e.filter((e) => t.includes(e.value)), T = e.filter((e) => !t.includes(e.value) && e.label.toLowerCase().includes(b.toLowerCase())), E = n(() => {
|
|
1785
1875
|
_(!1), C.current?.focus();
|
|
1786
1876
|
}, []);
|
|
@@ -1799,7 +1889,7 @@ function Kr({ options: e, value: t, onChange: i, placeholder: a = "Seleccionar..
|
|
|
1799
1889
|
}, [g, E]), r(() => {
|
|
1800
1890
|
if (!g || !S.current) return;
|
|
1801
1891
|
let e = S.current.getBoundingClientRect();
|
|
1802
|
-
y(window.innerHeight - e.bottom <
|
|
1892
|
+
y(window.innerHeight - e.bottom < Yr + 8);
|
|
1803
1893
|
}, [g]);
|
|
1804
1894
|
let D = (e) => i([...t, e]), O = (e) => i(t.filter((t) => t !== e));
|
|
1805
1895
|
return /* @__PURE__ */ u("div", {
|
|
@@ -1878,7 +1968,7 @@ var K = {
|
|
|
1878
1968
|
};
|
|
1879
1969
|
//#endregion
|
|
1880
1970
|
//#region src/components/NavBar/NavBar.tsx
|
|
1881
|
-
function
|
|
1971
|
+
function Zr({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle: r, isLoading: i = !1, isPinLocked: a = !1, rightSlot: o, "data-testid": s }) {
|
|
1882
1972
|
return a ? null : /* @__PURE__ */ u("header", {
|
|
1883
1973
|
className: K.navbar,
|
|
1884
1974
|
"data-testid": s,
|
|
@@ -1938,7 +2028,7 @@ function qr({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle:
|
|
|
1938
2028
|
]
|
|
1939
2029
|
});
|
|
1940
2030
|
}
|
|
1941
|
-
var
|
|
2031
|
+
var Qr = {
|
|
1942
2032
|
overlay: "_overlay_8yoic_2",
|
|
1943
2033
|
"overlay-fade-in": "_overlay-fade-in_8yoic_1",
|
|
1944
2034
|
backdrop: "_backdrop_8yoic_22",
|
|
@@ -1946,7 +2036,7 @@ var Jr = {
|
|
|
1946
2036
|
};
|
|
1947
2037
|
//#endregion
|
|
1948
2038
|
//#region src/components/Overlay/Overlay.tsx
|
|
1949
|
-
function
|
|
2039
|
+
function $r({ visible: e = !1, onClose: t, children: i, dismissible: a = !0, closeOnBackdrop: o = !0, closeOnEsc: s = !0, lockScroll: c = !0, blur: d = !1, placement: f = "center", zIndex: p = 1200, role: m = "presentation", "aria-label": h, className: g, "data-testid": _ }) {
|
|
1950
2040
|
let v = n(() => {
|
|
1951
2041
|
a && t();
|
|
1952
2042
|
}, [a, t]);
|
|
@@ -1966,7 +2056,7 @@ function Yr({ visible: e = !1, onClose: t, children: i, dismissible: a = !0, clo
|
|
|
1966
2056
|
v
|
|
1967
2057
|
]), !e || typeof document > "u" ? null : k(/* @__PURE__ */ u("div", {
|
|
1968
2058
|
"data-testid": _,
|
|
1969
|
-
className: [
|
|
2059
|
+
className: [Qr.overlay, g].filter(Boolean).join(" "),
|
|
1970
2060
|
"data-blur": d ? "" : void 0,
|
|
1971
2061
|
"data-placement": f,
|
|
1972
2062
|
style: { "--overlay-z-index": String(p) },
|
|
@@ -1974,13 +2064,13 @@ function Yr({ visible: e = !1, onClose: t, children: i, dismissible: a = !0, clo
|
|
|
1974
2064
|
"aria-label": h,
|
|
1975
2065
|
children: [/* @__PURE__ */ l("button", {
|
|
1976
2066
|
type: "button",
|
|
1977
|
-
className:
|
|
2067
|
+
className: Qr.backdrop,
|
|
1978
2068
|
"data-backdrop": "",
|
|
1979
2069
|
onClick: o ? v : void 0,
|
|
1980
2070
|
"aria-hidden": "true",
|
|
1981
2071
|
tabIndex: -1
|
|
1982
2072
|
}), /* @__PURE__ */ l("div", {
|
|
1983
|
-
className:
|
|
2073
|
+
className: Qr.content,
|
|
1984
2074
|
children: i
|
|
1985
2075
|
})]
|
|
1986
2076
|
}), document.body);
|
|
@@ -1996,19 +2086,19 @@ var q = {
|
|
|
1996
2086
|
closeBtn: "_closeBtn_we8nc_66",
|
|
1997
2087
|
body: "_body_we8nc_94",
|
|
1998
2088
|
actions: "_actions_we8nc_101"
|
|
1999
|
-
},
|
|
2089
|
+
}, ei = {
|
|
2000
2090
|
success: "success-outline",
|
|
2001
2091
|
info: "info-outline",
|
|
2002
2092
|
warning: "exclamation-outline",
|
|
2003
2093
|
error: "error-outline"
|
|
2004
|
-
},
|
|
2094
|
+
}, ti = {
|
|
2005
2095
|
success: "var(--ds-color-success)",
|
|
2006
2096
|
info: "var(--ds-color-info)",
|
|
2007
2097
|
warning: "var(--ds-color-warning)",
|
|
2008
2098
|
error: "var(--ds-color-primary)"
|
|
2009
2099
|
};
|
|
2010
|
-
function
|
|
2011
|
-
let S = i(), C = i(), w = a ??
|
|
2100
|
+
function ni({ title: e, eyebrow: t, children: n, status: r = "success", iconName: a, iconSize: o = 44, dismissible: s = !0, showCloseButton: c = !0, closeButtonLabel: d = "Close overlay message", primaryButtonLabel: f, secondaryButtonLabel: p, loadingPrimary: m = !1, loadingSecondary: h = !1, maxWidth: g = 400, standalone: _ = !1, onClose: v, onPrimaryClick: y, onSecondaryClick: b, "data-testid": x }) {
|
|
2101
|
+
let S = i(), C = i(), w = a ?? ei[r], T = ti[r], E = !!n, D = !!f || !!p;
|
|
2012
2102
|
return /* @__PURE__ */ u("div", {
|
|
2013
2103
|
className: q.overlayMessage,
|
|
2014
2104
|
"data-status": r,
|
|
@@ -2082,14 +2172,14 @@ function Qr({ title: e, eyebrow: t, children: n, status: r = "success", iconName
|
|
|
2082
2172
|
]
|
|
2083
2173
|
});
|
|
2084
2174
|
}
|
|
2085
|
-
function
|
|
2086
|
-
return e ? d ? /* @__PURE__ */ l(
|
|
2175
|
+
function ri({ visible: e = !1, onClose: t, dismissible: n = !0, closeOnBackdrop: r = !0, closeOnEsc: i = !0, lockScroll: a = !0, zIndex: o = 1200, blur: s = !1, placement: c = "center", "aria-label": u, standalone: d = !1, "data-testid": f, ...p }) {
|
|
2176
|
+
return e ? d ? /* @__PURE__ */ l(ni, {
|
|
2087
2177
|
...p,
|
|
2088
2178
|
standalone: !0,
|
|
2089
2179
|
dismissible: n,
|
|
2090
2180
|
onClose: t,
|
|
2091
2181
|
"data-testid": f
|
|
2092
|
-
}) : /* @__PURE__ */ l(
|
|
2182
|
+
}) : /* @__PURE__ */ l($r, {
|
|
2093
2183
|
visible: e,
|
|
2094
2184
|
onClose: t,
|
|
2095
2185
|
dismissible: n,
|
|
@@ -2100,7 +2190,7 @@ function $r({ visible: e = !1, onClose: t, dismissible: n = !0, closeOnBackdrop:
|
|
|
2100
2190
|
blur: s,
|
|
2101
2191
|
placement: c,
|
|
2102
2192
|
"aria-label": u,
|
|
2103
|
-
children: /* @__PURE__ */ l(
|
|
2193
|
+
children: /* @__PURE__ */ l(ni, {
|
|
2104
2194
|
...p,
|
|
2105
2195
|
dismissible: n,
|
|
2106
2196
|
onClose: t,
|
|
@@ -2108,15 +2198,15 @@ function $r({ visible: e = !1, onClose: t, dismissible: n = !0, closeOnBackdrop:
|
|
|
2108
2198
|
})
|
|
2109
2199
|
}) : null;
|
|
2110
2200
|
}
|
|
2111
|
-
var
|
|
2112
|
-
function
|
|
2201
|
+
var ii = { canvas: "_canvas_ljz2v_7" }, ai = "#version 300 es\nin vec2 a_pos;\nvoid main() { gl_Position = vec4(a_pos, 0.0, 1.0); }", oi = "#version 300 es\nprecision highp float;\n\nuniform float u_time;\nuniform vec2 u_res;\nout vec4 fragColor;\n\n#define PI 3.14159265359\n#define CELL 18.0 /* px per grid cell */\n#define RADIUS 2.1 /* dot radius in px */\n#define SPEED 25.0 /* wave propagation */\n#define PERIOD 3.8 /* seconds per cycle */\n#define AMP 0.40 /* wave amplitude */\n#define BASE 1.30 /* resting scale */\n\nfloat swave(float t, float k) {\n return (2.0 * AMP / PI) * atan(sin(2.0 * PI * t / PERIOD) / k);\n}\n\nvoid main() {\n vec2 p = gl_FragCoord.xy;\n vec2 center = u_res * 0.5;\n vec2 gridP = p / CELL;\n\n float alpha = 0.0;\n\n for (int dy = -2; dy <= 2; dy++) {\n for (int dx = -2; dx <= 2; dx++) {\n /* grid cell index of this neighbour */\n vec2 cell = floor(gridP) + vec2(float(dx), float(dy));\n\n /* hex stagger: odd x-columns shift down half a cell */\n float hexY = mod(cell.x, 2.0) * 0.5;\n\n /* dot centre in grid units relative to screen centre */\n vec2 origGU = cell + vec2(0.5, 0.5 + hexY) - center / CELL;\n\n /* distance with 8-fold angular symmetry → petal wave-front */\n float d8 = length(origGU) + 0.5 * cos(8.0 * atan(origGU.y, origGU.x));\n\n /* smooth-square-wave breathing */\n float k = 0.15 + 0.2 * abs(d8) / 72.0;\n float wave = swave(u_time - d8 / SPEED, k);\n float scale = wave + BASE;\n\n /* animated dot centre in pixel space */\n vec2 animPx = origGU * scale * CELL + center;\n\n /* soft circle SDF */\n float dist = length(p - animPx);\n float a = 1.0 - smoothstep(RADIUS - 0.6, RADIUS + 0.6, dist);\n alpha = max(alpha, a);\n }\n }\n\n /* primary colour #ff4235 at low opacity — sits on frosted-glass overlay */\n fragColor = vec4(1.0, 0.259, 0.208, alpha * 0.28);\n}";
|
|
2202
|
+
function si(e) {
|
|
2113
2203
|
let t = (t, n) => {
|
|
2114
2204
|
let r = e.createShader(t);
|
|
2115
2205
|
return e.shaderSource(r, n), e.compileShader(r), r;
|
|
2116
2206
|
}, n = e.createProgram();
|
|
2117
|
-
return e.attachShader(n, t(e.VERTEX_SHADER,
|
|
2207
|
+
return e.attachShader(n, t(e.VERTEX_SHADER, ai)), e.attachShader(n, t(e.FRAGMENT_SHADER, oi)), e.linkProgram(n), n;
|
|
2118
2208
|
}
|
|
2119
|
-
function
|
|
2209
|
+
function ci({ active: e }) {
|
|
2120
2210
|
let t = o(null);
|
|
2121
2211
|
return r(() => {
|
|
2122
2212
|
if (!e || !t.current || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
@@ -2127,7 +2217,7 @@ function ii({ active: e }) {
|
|
|
2127
2217
|
if (!r) return;
|
|
2128
2218
|
let i = () => {
|
|
2129
2219
|
n.width = window.innerWidth, n.height = window.innerHeight, r.viewport(0, 0, n.width, n.height), r.uniform2f(l, n.width, n.height);
|
|
2130
|
-
}, a =
|
|
2220
|
+
}, a = si(r);
|
|
2131
2221
|
r.useProgram(a);
|
|
2132
2222
|
let o = r.createBuffer();
|
|
2133
2223
|
r.bindBuffer(r.ARRAY_BUFFER, o), r.bufferData(r.ARRAY_BUFFER, new Float32Array([
|
|
@@ -2156,11 +2246,11 @@ function ii({ active: e }) {
|
|
|
2156
2246
|
};
|
|
2157
2247
|
}, [e]), /* @__PURE__ */ l("canvas", {
|
|
2158
2248
|
ref: t,
|
|
2159
|
-
className:
|
|
2249
|
+
className: ii.canvas,
|
|
2160
2250
|
"aria-hidden": "true"
|
|
2161
2251
|
});
|
|
2162
2252
|
}
|
|
2163
|
-
var
|
|
2253
|
+
var li = {
|
|
2164
2254
|
overlay: "_overlay_15uou_3",
|
|
2165
2255
|
logoLayer: "_logoLayer_15uou_58",
|
|
2166
2256
|
srOnly: "_srOnly_15uou_103"
|
|
@@ -2177,7 +2267,7 @@ var ai = {
|
|
|
2177
2267
|
};
|
|
2178
2268
|
//#endregion
|
|
2179
2269
|
//#region src/components/PageLoadingOverlay/ToteatLogo.tsx
|
|
2180
|
-
function
|
|
2270
|
+
function ui() {
|
|
2181
2271
|
return /* @__PURE__ */ u("div", {
|
|
2182
2272
|
className: J.outer,
|
|
2183
2273
|
"aria-hidden": "true",
|
|
@@ -2207,38 +2297,43 @@ function oi() {
|
|
|
2207
2297
|
}
|
|
2208
2298
|
//#endregion
|
|
2209
2299
|
//#region src/components/PageLoadingOverlay/PageLoadingOverlay.tsx
|
|
2210
|
-
function
|
|
2300
|
+
function di({ isOpen: e, label: t = "Cargando…", "data-testid": n }) {
|
|
2211
2301
|
return k(/* @__PURE__ */ u(c, { children: [
|
|
2212
2302
|
/* @__PURE__ */ l("div", {
|
|
2213
|
-
className:
|
|
2303
|
+
className: li.overlay,
|
|
2214
2304
|
"data-open": e,
|
|
2215
2305
|
role: "status",
|
|
2216
2306
|
"aria-live": "polite",
|
|
2217
2307
|
"aria-busy": e,
|
|
2218
2308
|
"aria-label": t,
|
|
2219
2309
|
"data-testid": n,
|
|
2220
|
-
children: /* @__PURE__ */ l(
|
|
2310
|
+
children: /* @__PURE__ */ l(ci, { active: e })
|
|
2221
2311
|
}),
|
|
2222
2312
|
/* @__PURE__ */ l("div", {
|
|
2223
|
-
className: `${
|
|
2313
|
+
className: `${li.logoLayer} tot-ds-root`,
|
|
2224
2314
|
"data-open": e,
|
|
2225
2315
|
"aria-hidden": "true",
|
|
2226
|
-
children: /* @__PURE__ */ l(
|
|
2316
|
+
children: /* @__PURE__ */ l(ui, {})
|
|
2227
2317
|
}),
|
|
2228
2318
|
/* @__PURE__ */ l("span", {
|
|
2229
|
-
className:
|
|
2319
|
+
className: li.srOnly,
|
|
2230
2320
|
"aria-live": "polite",
|
|
2231
2321
|
"aria-atomic": "true",
|
|
2232
2322
|
children: e ? t : ""
|
|
2233
2323
|
})
|
|
2234
2324
|
] }), document.body);
|
|
2235
2325
|
}
|
|
2236
|
-
|
|
2326
|
+
//#endregion
|
|
2327
|
+
//#region src/components/PermissionGate/PermissionGate.tsx
|
|
2328
|
+
function fi({ granted: e, children: t, fallback: n = null }) {
|
|
2329
|
+
return /* @__PURE__ */ l(c, { children: e ? t : n });
|
|
2330
|
+
}
|
|
2331
|
+
var pi = { overlay: "_overlay_16mjb_2" };
|
|
2237
2332
|
//#endregion
|
|
2238
2333
|
//#region src/components/PinLockOverlay/PinLockOverlay.tsx
|
|
2239
|
-
function
|
|
2334
|
+
function mi({ isLocked: e, children: t, "data-testid": n }) {
|
|
2240
2335
|
return e ? /* @__PURE__ */ l("div", {
|
|
2241
|
-
className:
|
|
2336
|
+
className: pi.overlay,
|
|
2242
2337
|
role: "dialog",
|
|
2243
2338
|
"aria-label": "Pantalla bloqueada — ingresa tu PIN",
|
|
2244
2339
|
"aria-modal": "true",
|
|
@@ -2246,7 +2341,7 @@ function li({ isLocked: e, children: t, "data-testid": n }) {
|
|
|
2246
2341
|
children: t
|
|
2247
2342
|
}) : null;
|
|
2248
2343
|
}
|
|
2249
|
-
var
|
|
2344
|
+
var hi = {
|
|
2250
2345
|
wrapper: "_wrapper_lqgoi_2",
|
|
2251
2346
|
input: "_input_lqgoi_9",
|
|
2252
2347
|
circle: "_circle_lqgoi_27",
|
|
@@ -2254,10 +2349,10 @@ var ui = {
|
|
|
2254
2349
|
};
|
|
2255
2350
|
//#endregion
|
|
2256
2351
|
//#region src/components/Radio/Radio.tsx
|
|
2257
|
-
function
|
|
2352
|
+
function gi({ label: e, className: t, id: n, ref: r, "data-testid": i, ...a }) {
|
|
2258
2353
|
let o = n ?? `radio-${a.value}`;
|
|
2259
2354
|
return /* @__PURE__ */ u("label", {
|
|
2260
|
-
className: [
|
|
2355
|
+
className: [hi.wrapper, t].filter(Boolean).join(" "),
|
|
2261
2356
|
htmlFor: o,
|
|
2262
2357
|
"data-testid": i,
|
|
2263
2358
|
children: [
|
|
@@ -2265,20 +2360,68 @@ function di({ label: e, className: t, id: n, ref: r, "data-testid": i, ...a }) {
|
|
|
2265
2360
|
ref: r,
|
|
2266
2361
|
type: "radio",
|
|
2267
2362
|
id: o,
|
|
2268
|
-
className:
|
|
2363
|
+
className: hi.input,
|
|
2269
2364
|
...a
|
|
2270
2365
|
}),
|
|
2271
2366
|
/* @__PURE__ */ l("span", {
|
|
2272
|
-
className:
|
|
2367
|
+
className: hi.circle,
|
|
2273
2368
|
"aria-hidden": "true"
|
|
2274
2369
|
}),
|
|
2275
2370
|
e && /* @__PURE__ */ l("span", {
|
|
2276
|
-
className:
|
|
2371
|
+
className: hi.label,
|
|
2277
2372
|
children: e
|
|
2278
2373
|
})
|
|
2279
2374
|
]
|
|
2280
2375
|
});
|
|
2281
2376
|
}
|
|
2377
|
+
var _i = {
|
|
2378
|
+
root: "_root_fxapc_2",
|
|
2379
|
+
srOnly: "_srOnly_fxapc_8",
|
|
2380
|
+
input: "_input_fxapc_20",
|
|
2381
|
+
clearButton: "_clearButton_fxapc_77"
|
|
2382
|
+
};
|
|
2383
|
+
//#endregion
|
|
2384
|
+
//#region src/components/SearchInput/SearchInput.tsx
|
|
2385
|
+
function vi({ value: e, onChange: t, onClear: n, placeholder: r, label: a, id: s, disabled: c = !1, clearLabel: d = "Limpiar búsqueda", className: f, inputProps: p, "data-testid": m }) {
|
|
2386
|
+
let h = i(), g = s ?? h, _ = o(null);
|
|
2387
|
+
function v() {
|
|
2388
|
+
n ? n() : t(""), _.current?.focus();
|
|
2389
|
+
}
|
|
2390
|
+
return /* @__PURE__ */ u("div", {
|
|
2391
|
+
className: [_i.root, f].filter(Boolean).join(" "),
|
|
2392
|
+
"data-testid": m,
|
|
2393
|
+
children: [
|
|
2394
|
+
/* @__PURE__ */ l("label", {
|
|
2395
|
+
htmlFor: g,
|
|
2396
|
+
className: _i.srOnly,
|
|
2397
|
+
children: a
|
|
2398
|
+
}),
|
|
2399
|
+
/* @__PURE__ */ l("input", {
|
|
2400
|
+
...p,
|
|
2401
|
+
ref: _,
|
|
2402
|
+
id: g,
|
|
2403
|
+
type: "search",
|
|
2404
|
+
className: _i.input,
|
|
2405
|
+
value: e,
|
|
2406
|
+
onChange: (e) => t(e.target.value),
|
|
2407
|
+
placeholder: r,
|
|
2408
|
+
disabled: c
|
|
2409
|
+
}),
|
|
2410
|
+
e.length > 0 && /* @__PURE__ */ l("button", {
|
|
2411
|
+
type: "button",
|
|
2412
|
+
className: _i.clearButton,
|
|
2413
|
+
"aria-label": d,
|
|
2414
|
+
disabled: c,
|
|
2415
|
+
onClick: v,
|
|
2416
|
+
children: /* @__PURE__ */ l(F, {
|
|
2417
|
+
name: "close-outline",
|
|
2418
|
+
size: 16,
|
|
2419
|
+
"aria-hidden": "true"
|
|
2420
|
+
})
|
|
2421
|
+
})
|
|
2422
|
+
]
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2282
2425
|
var Y = {
|
|
2283
2426
|
root: "_root_1nkx3_2",
|
|
2284
2427
|
content: "_content_1nkx3_9",
|
|
@@ -2290,7 +2433,7 @@ var Y = {
|
|
|
2290
2433
|
};
|
|
2291
2434
|
//#endregion
|
|
2292
2435
|
//#region src/components/SectionHeader/SectionHeader.tsx
|
|
2293
|
-
function
|
|
2436
|
+
function yi({ title: e, description: t, icon: n, iconSize: r = 32, headingLevel: i = 2, actions: a, className: o, "data-testid": s }) {
|
|
2294
2437
|
let c = `h${i}`;
|
|
2295
2438
|
return /* @__PURE__ */ u("header", {
|
|
2296
2439
|
className: [Y.root, o].filter(Boolean).join(" "),
|
|
@@ -2334,7 +2477,7 @@ var X = {
|
|
|
2334
2477
|
};
|
|
2335
2478
|
//#endregion
|
|
2336
2479
|
//#region src/components/Select/Select.tsx
|
|
2337
|
-
function
|
|
2480
|
+
function bi({ options: e, value: t, onChange: i, placeholder: a = "Seleccionar...", searchable: c = !1, searchPlaceholder: d = "Buscar...", noResultsText: f = "Sin resultados", disabled: p, error: m, name: h, "data-testid": g }) {
|
|
2338
2481
|
let [_, v] = s(!1), [y, b] = s(""), x = o(null), S = o(null), C = e.find((e) => e.value === t), w = c ? e.filter((e) => e.label.toLowerCase().includes(y.toLowerCase())) : e, T = n(() => {
|
|
2339
2482
|
v(!1), S.current?.focus();
|
|
2340
2483
|
}, []);
|
|
@@ -2414,35 +2557,35 @@ function pi({ options: e, value: t, onChange: i, placeholder: a = "Seleccionar..
|
|
|
2414
2557
|
]
|
|
2415
2558
|
});
|
|
2416
2559
|
}
|
|
2417
|
-
var
|
|
2560
|
+
var xi = {
|
|
2418
2561
|
backdrop: "_backdrop_e6k21_2",
|
|
2419
2562
|
sidebar: "_sidebar_e6k21_19"
|
|
2420
2563
|
};
|
|
2421
2564
|
//#endregion
|
|
2422
2565
|
//#region src/components/Sidebar/Sidebar.tsx
|
|
2423
|
-
function
|
|
2566
|
+
function Si({ isOpen: e, onClose: t, isPinLocked: n = !1, isModal: r = !1, children: i }) {
|
|
2424
2567
|
return n || r ? null : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
|
|
2425
|
-
className:
|
|
2568
|
+
className: xi.backdrop,
|
|
2426
2569
|
"data-open": e,
|
|
2427
2570
|
"data-testid": "sidebar-backdrop",
|
|
2428
2571
|
onClick: t,
|
|
2429
2572
|
role: "presentation",
|
|
2430
2573
|
"aria-hidden": "true"
|
|
2431
2574
|
}), /* @__PURE__ */ l("nav", {
|
|
2432
|
-
className:
|
|
2575
|
+
className: xi.sidebar,
|
|
2433
2576
|
"data-open": e,
|
|
2434
2577
|
"aria-label": "Menú principal",
|
|
2435
2578
|
children: i
|
|
2436
2579
|
})] });
|
|
2437
2580
|
}
|
|
2438
|
-
var
|
|
2581
|
+
var Ci = {
|
|
2439
2582
|
item: "_item_1twlt_2",
|
|
2440
2583
|
active: "_active_1twlt_33"
|
|
2441
|
-
},
|
|
2442
|
-
function
|
|
2584
|
+
}, wi = Ci.item, Ti = Ci.active;
|
|
2585
|
+
function Ei({ label: e, isActive: t = !1, className: n, type: r = "button", ...i }) {
|
|
2443
2586
|
return /* @__PURE__ */ l("button", {
|
|
2444
2587
|
type: r,
|
|
2445
|
-
className: I(
|
|
2588
|
+
className: I(Ci.item, t && Ci.active, n),
|
|
2446
2589
|
"data-active": t || void 0,
|
|
2447
2590
|
...i,
|
|
2448
2591
|
children: e
|
|
@@ -2460,7 +2603,7 @@ var Z = {
|
|
|
2460
2603
|
};
|
|
2461
2604
|
//#endregion
|
|
2462
2605
|
//#region src/components/SidebarNavSection/SidebarNavSection.tsx
|
|
2463
|
-
function
|
|
2606
|
+
function Di({ title: e, icon: t, titleSuffix: n, defaultOpen: r = !1, isActive: i = !1, className: a, children: o, "data-testid": c }) {
|
|
2464
2607
|
let [d, f] = s(r);
|
|
2465
2608
|
return /* @__PURE__ */ u("div", {
|
|
2466
2609
|
className: I(Z.section, a),
|
|
@@ -2505,7 +2648,7 @@ function bi({ title: e, icon: t, titleSuffix: n, defaultOpen: r = !1, isActive:
|
|
|
2505
2648
|
}
|
|
2506
2649
|
//#endregion
|
|
2507
2650
|
//#region src/components/StatusBadge/StatusBadge.tsx
|
|
2508
|
-
function
|
|
2651
|
+
function Oi({ status: e, labels: t, variants: n, fallbackLabel: r, fallbackVariant: i = "default", size: a, "data-testid": o }) {
|
|
2509
2652
|
return /* @__PURE__ */ l(Fn, {
|
|
2510
2653
|
variant: n[e] ?? i,
|
|
2511
2654
|
size: a,
|
|
@@ -2513,19 +2656,66 @@ function xi({ status: e, labels: t, variants: n, fallbackLabel: r, fallbackVaria
|
|
|
2513
2656
|
children: t[e] ?? r ?? e
|
|
2514
2657
|
});
|
|
2515
2658
|
}
|
|
2516
|
-
var
|
|
2659
|
+
var ki = {
|
|
2660
|
+
stepper: "_stepper_16r3t_2",
|
|
2661
|
+
button: "_button_16r3t_8",
|
|
2662
|
+
output: "_output_16r3t_46"
|
|
2663
|
+
};
|
|
2664
|
+
//#endregion
|
|
2665
|
+
//#region src/components/Stepper/Stepper.tsx
|
|
2666
|
+
function Ai({ value: e, onChange: t, min: n = 0, max: r = 2 ** 53 - 1, step: i = 1, disabled: a = !1, "aria-label": o, decrementLabel: s = "Disminuir", incrementLabel: c = "Aumentar", className: d, "data-testid": f }) {
|
|
2667
|
+
let p = a || e <= n, m = a || e >= r;
|
|
2668
|
+
return /* @__PURE__ */ u("div", {
|
|
2669
|
+
role: "group",
|
|
2670
|
+
"aria-label": o,
|
|
2671
|
+
className: [ki.stepper, d].filter(Boolean).join(" "),
|
|
2672
|
+
"data-testid": f,
|
|
2673
|
+
children: [
|
|
2674
|
+
/* @__PURE__ */ l("button", {
|
|
2675
|
+
type: "button",
|
|
2676
|
+
"aria-label": s,
|
|
2677
|
+
disabled: p,
|
|
2678
|
+
className: ki.button,
|
|
2679
|
+
onClick: () => t(Math.max(n, e - i)),
|
|
2680
|
+
children: /* @__PURE__ */ l(F, {
|
|
2681
|
+
name: "minus-filled",
|
|
2682
|
+
size: 20,
|
|
2683
|
+
"aria-hidden": "true"
|
|
2684
|
+
})
|
|
2685
|
+
}),
|
|
2686
|
+
/* @__PURE__ */ l("output", {
|
|
2687
|
+
className: ki.output,
|
|
2688
|
+
"aria-live": "polite",
|
|
2689
|
+
children: e
|
|
2690
|
+
}),
|
|
2691
|
+
/* @__PURE__ */ l("button", {
|
|
2692
|
+
type: "button",
|
|
2693
|
+
"aria-label": c,
|
|
2694
|
+
disabled: m,
|
|
2695
|
+
className: ki.button,
|
|
2696
|
+
onClick: () => t(Math.min(r, e + i)),
|
|
2697
|
+
children: /* @__PURE__ */ l(F, {
|
|
2698
|
+
name: "plus-filled",
|
|
2699
|
+
size: 20,
|
|
2700
|
+
"aria-hidden": "true"
|
|
2701
|
+
})
|
|
2702
|
+
})
|
|
2703
|
+
]
|
|
2704
|
+
});
|
|
2705
|
+
}
|
|
2706
|
+
var ji = { tabbar: "_tabbar_qy5zr_2" };
|
|
2517
2707
|
//#endregion
|
|
2518
2708
|
//#region src/components/TabBar/TabBar.tsx
|
|
2519
|
-
function
|
|
2709
|
+
function Mi({ variant: e = "default", children: t, "data-testid": n }) {
|
|
2520
2710
|
return /* @__PURE__ */ l("div", {
|
|
2521
|
-
className:
|
|
2711
|
+
className: ji.tabbar,
|
|
2522
2712
|
role: "tablist",
|
|
2523
2713
|
"data-variant": e,
|
|
2524
2714
|
"data-testid": n,
|
|
2525
2715
|
children: t
|
|
2526
2716
|
});
|
|
2527
2717
|
}
|
|
2528
|
-
var
|
|
2718
|
+
var Ni = {
|
|
2529
2719
|
tabs: "_tabs_zujvo_2",
|
|
2530
2720
|
tabList: "_tabList_zujvo_8",
|
|
2531
2721
|
tab: "_tab_zujvo_2",
|
|
@@ -2533,7 +2723,7 @@ var wi = {
|
|
|
2533
2723
|
};
|
|
2534
2724
|
//#endregion
|
|
2535
2725
|
//#region src/components/Tabs/Tabs.tsx
|
|
2536
|
-
function
|
|
2726
|
+
function Pi({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange: i, "data-testid": a }) {
|
|
2537
2727
|
let [c, d] = s(t ?? e[0]?.id ?? ""), f = n !== void 0, p = f ? n : c, m = o(/* @__PURE__ */ new Map()), h = o(f);
|
|
2538
2728
|
process.env.NODE_ENV !== "production" && h.current !== f && console.error("Tabs: `activeTab` prop changed from %s to %s. A component cannot switch between controlled and uncontrolled modes.", h.current ? "controlled" : "uncontrolled", f ? "controlled" : "uncontrolled");
|
|
2539
2729
|
let g = (e) => {
|
|
@@ -2543,10 +2733,10 @@ function Ti({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
2543
2733
|
t.key === "ArrowRight" ? (t.preventDefault(), a = r[(i + 1) % r.length]) : t.key === "ArrowLeft" ? (t.preventDefault(), a = r[(i - 1 + r.length) % r.length]) : t.key === "Home" ? (t.preventDefault(), a = r[0]) : t.key === "End" && (t.preventDefault(), a = r[r.length - 1]), a && (g(a), m.current.get(a)?.focus());
|
|
2544
2734
|
}, v = e.find((e) => e.id === p)?.content;
|
|
2545
2735
|
return /* @__PURE__ */ u("div", {
|
|
2546
|
-
className:
|
|
2736
|
+
className: Ni.tabs,
|
|
2547
2737
|
"data-testid": a,
|
|
2548
2738
|
children: [/* @__PURE__ */ l("div", {
|
|
2549
|
-
className:
|
|
2739
|
+
className: Ni.tabList,
|
|
2550
2740
|
role: "tablist",
|
|
2551
2741
|
"aria-label": r,
|
|
2552
2742
|
children: e.map((e, t) => /* @__PURE__ */ l("button", {
|
|
@@ -2558,7 +2748,7 @@ function Ti({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
2558
2748
|
"aria-selected": e.id === p,
|
|
2559
2749
|
"aria-controls": v == null ? void 0 : `panel-${p}`,
|
|
2560
2750
|
id: `tab-${e.id}`,
|
|
2561
|
-
className:
|
|
2751
|
+
className: Ni.tab,
|
|
2562
2752
|
"data-active": e.id === p || void 0,
|
|
2563
2753
|
disabled: e.disabled,
|
|
2564
2754
|
tabIndex: e.id === p ? 0 : -1,
|
|
@@ -2570,32 +2760,32 @@ function Ti({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
2570
2760
|
role: "tabpanel",
|
|
2571
2761
|
id: `panel-${p}`,
|
|
2572
2762
|
"aria-labelledby": `tab-${p}`,
|
|
2573
|
-
className:
|
|
2763
|
+
className: Ni.panel,
|
|
2574
2764
|
children: v
|
|
2575
2765
|
})]
|
|
2576
2766
|
});
|
|
2577
2767
|
}
|
|
2578
|
-
var
|
|
2768
|
+
var Fi = { textarea: "_textarea_1vuas_2" };
|
|
2579
2769
|
//#endregion
|
|
2580
2770
|
//#region src/components/Textarea/Textarea.tsx
|
|
2581
|
-
function
|
|
2771
|
+
function Ii({ error: e, className: t, rows: n = 3, ref: r, ...i }) {
|
|
2582
2772
|
return /* @__PURE__ */ l("textarea", {
|
|
2583
2773
|
ref: r,
|
|
2584
2774
|
rows: n,
|
|
2585
|
-
className: [
|
|
2775
|
+
className: [Fi.textarea, t].filter(Boolean).join(" "),
|
|
2586
2776
|
"data-error": e ? "" : void 0,
|
|
2587
2777
|
"aria-invalid": e || void 0,
|
|
2588
2778
|
...i
|
|
2589
2779
|
});
|
|
2590
2780
|
}
|
|
2591
|
-
var
|
|
2592
|
-
wrapper: "
|
|
2593
|
-
input: "
|
|
2594
|
-
toggleButton: "
|
|
2595
|
-
},
|
|
2781
|
+
var Li = {
|
|
2782
|
+
wrapper: "_wrapper_15b6s_2",
|
|
2783
|
+
input: "_input_15b6s_7",
|
|
2784
|
+
toggleButton: "_toggleButton_15b6s_12"
|
|
2785
|
+
}, Ri = t(function({ error: e = !1, showPasswordToggle: t = !1, size: n = "medium", className: r, type: i, "data-testid": a, ...o }, c) {
|
|
2596
2786
|
let [d, f] = s(!1), p = i === "password", m = p && d ? "text" : i, h = p && t, g = /* @__PURE__ */ l("input", {
|
|
2597
2787
|
ref: c,
|
|
2598
|
-
className: [
|
|
2788
|
+
className: [Li.input, !h && r].filter(Boolean).join(" "),
|
|
2599
2789
|
"data-error": e ? "" : void 0,
|
|
2600
2790
|
"data-size": n,
|
|
2601
2791
|
"aria-invalid": e || void 0,
|
|
@@ -2604,13 +2794,13 @@ var Oi = {
|
|
|
2604
2794
|
...o
|
|
2605
2795
|
});
|
|
2606
2796
|
return h ? /* @__PURE__ */ u("div", {
|
|
2607
|
-
className: [
|
|
2797
|
+
className: [Li.wrapper, r].filter(Boolean).join(" "),
|
|
2608
2798
|
"data-error": e ? "" : void 0,
|
|
2609
2799
|
"data-size": n,
|
|
2610
2800
|
"data-testid": a,
|
|
2611
2801
|
children: [g, /* @__PURE__ */ l("button", {
|
|
2612
2802
|
type: "button",
|
|
2613
|
-
className:
|
|
2803
|
+
className: Li.toggleButton,
|
|
2614
2804
|
"aria-label": d ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
2615
2805
|
"aria-pressed": d,
|
|
2616
2806
|
disabled: o.disabled,
|
|
@@ -2625,7 +2815,7 @@ var Oi = {
|
|
|
2625
2815
|
});
|
|
2626
2816
|
//#endregion
|
|
2627
2817
|
//#region src/components/ThemeGate/ThemeGate.tsx
|
|
2628
|
-
function
|
|
2818
|
+
function zi({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
2629
2819
|
return /* @__PURE__ */ l("div", {
|
|
2630
2820
|
"data-theme": e,
|
|
2631
2821
|
className: n,
|
|
@@ -2633,49 +2823,49 @@ function Ai({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
|
2633
2823
|
children: t
|
|
2634
2824
|
});
|
|
2635
2825
|
}
|
|
2636
|
-
var
|
|
2826
|
+
var Bi = {
|
|
2637
2827
|
container: "_container_18wzq_2",
|
|
2638
2828
|
toast: "_toast_18wzq_22",
|
|
2639
2829
|
"ds-toast-enter": "_ds-toast-enter_18wzq_1",
|
|
2640
2830
|
toastMessage: "_toastMessage_18wzq_61",
|
|
2641
2831
|
dismissButton: "_dismissButton_18wzq_65"
|
|
2642
|
-
},
|
|
2643
|
-
function
|
|
2644
|
-
for (let e of
|
|
2832
|
+
}, Vi = [], Hi = /* @__PURE__ */ new Set(), Ui = 0;
|
|
2833
|
+
function Wi() {
|
|
2834
|
+
for (let e of Hi) e([...Vi]);
|
|
2645
2835
|
}
|
|
2646
|
-
function
|
|
2647
|
-
let t = `toast-${++
|
|
2648
|
-
return
|
|
2836
|
+
function Gi(e) {
|
|
2837
|
+
let t = `toast-${++Ui}-${Date.now()}`;
|
|
2838
|
+
return Vi = [...Vi, {
|
|
2649
2839
|
id: t,
|
|
2650
2840
|
message: e.message,
|
|
2651
2841
|
variant: e.variant ?? "info",
|
|
2652
2842
|
duration: e.duration,
|
|
2653
2843
|
dismissible: e.dismissible,
|
|
2654
2844
|
"data-testid": e["data-testid"]
|
|
2655
|
-
}],
|
|
2845
|
+
}], Wi(), t;
|
|
2656
2846
|
}
|
|
2657
|
-
function
|
|
2658
|
-
|
|
2847
|
+
function Ki(e) {
|
|
2848
|
+
Vi = Vi.filter((t) => t.id !== e), Wi();
|
|
2659
2849
|
}
|
|
2660
|
-
function
|
|
2661
|
-
let [e, t] = s(
|
|
2850
|
+
function qi() {
|
|
2851
|
+
let [e, t] = s(Vi), i = o(!0);
|
|
2662
2852
|
return r(() => {
|
|
2663
2853
|
i.current = !0;
|
|
2664
2854
|
let e = (e) => {
|
|
2665
2855
|
i.current && t(e);
|
|
2666
2856
|
};
|
|
2667
|
-
return
|
|
2668
|
-
i.current = !1,
|
|
2857
|
+
return Hi.add(e), () => {
|
|
2858
|
+
i.current = !1, Hi.delete(e);
|
|
2669
2859
|
};
|
|
2670
2860
|
}, []), {
|
|
2671
2861
|
toasts: e,
|
|
2672
|
-
addToast: n((e) =>
|
|
2673
|
-
dismissToast: n((e) =>
|
|
2862
|
+
addToast: n((e) => Gi(e), []),
|
|
2863
|
+
dismissToast: n((e) => Ki(e), [])
|
|
2674
2864
|
};
|
|
2675
2865
|
}
|
|
2676
2866
|
//#endregion
|
|
2677
2867
|
//#region src/components/Toast/Toast.tsx
|
|
2678
|
-
function
|
|
2868
|
+
function Ji({ toast: e, onDismiss: t, dismissLabel: n = "Cerrar notificación" }) {
|
|
2679
2869
|
let { id: i, message: a, variant: s, duration: c = 4e3, dismissible: d = !0, "data-testid": f } = e, p = o(void 0);
|
|
2680
2870
|
return r(() => (p.current = setTimeout(() => {
|
|
2681
2871
|
t(i);
|
|
@@ -2686,17 +2876,17 @@ function zi({ toast: e, onDismiss: t, dismissLabel: n = "Cerrar notificación" }
|
|
|
2686
2876
|
c,
|
|
2687
2877
|
t
|
|
2688
2878
|
]), /* @__PURE__ */ u("div", {
|
|
2689
|
-
className:
|
|
2879
|
+
className: Bi.toast,
|
|
2690
2880
|
"data-variant": s,
|
|
2691
2881
|
role: s === "error" || s === "warning" ? "alert" : "status",
|
|
2692
2882
|
"aria-atomic": "true",
|
|
2693
2883
|
"data-testid": f,
|
|
2694
2884
|
children: [/* @__PURE__ */ l("span", {
|
|
2695
|
-
className:
|
|
2885
|
+
className: Bi.toastMessage,
|
|
2696
2886
|
children: a
|
|
2697
2887
|
}), d && /* @__PURE__ */ l("button", {
|
|
2698
2888
|
type: "button",
|
|
2699
|
-
className:
|
|
2889
|
+
className: Bi.dismissButton,
|
|
2700
2890
|
onClick: () => t(i),
|
|
2701
2891
|
"aria-label": n,
|
|
2702
2892
|
children: /* @__PURE__ */ l("svg", {
|
|
@@ -2714,19 +2904,19 @@ function zi({ toast: e, onDismiss: t, dismissLabel: n = "Cerrar notificación" }
|
|
|
2714
2904
|
})]
|
|
2715
2905
|
});
|
|
2716
2906
|
}
|
|
2717
|
-
function
|
|
2718
|
-
let { toasts: n, dismissToast: r } =
|
|
2907
|
+
function Yi({ notificationsLabel: e = "Notificaciones", dismissLabel: t }) {
|
|
2908
|
+
let { toasts: n, dismissToast: r } = qi();
|
|
2719
2909
|
return typeof document > "u" ? null : k(/* @__PURE__ */ l("section", {
|
|
2720
|
-
className:
|
|
2910
|
+
className: Bi.container,
|
|
2721
2911
|
"aria-label": e,
|
|
2722
|
-
children: n.map((e) => /* @__PURE__ */ l(
|
|
2912
|
+
children: n.map((e) => /* @__PURE__ */ l(Ji, {
|
|
2723
2913
|
toast: e,
|
|
2724
2914
|
onDismiss: r,
|
|
2725
2915
|
dismissLabel: t
|
|
2726
2916
|
}, e.id))
|
|
2727
2917
|
}), document.body);
|
|
2728
2918
|
}
|
|
2729
|
-
var
|
|
2919
|
+
var Xi = {
|
|
2730
2920
|
wrapper: "_wrapper_1hq4w_2",
|
|
2731
2921
|
input: "_input_1hq4w_9",
|
|
2732
2922
|
track: "_track_1hq4w_29",
|
|
@@ -2735,10 +2925,10 @@ var Vi = {
|
|
|
2735
2925
|
};
|
|
2736
2926
|
//#endregion
|
|
2737
2927
|
//#region src/components/Toggle/Toggle.tsx
|
|
2738
|
-
function
|
|
2928
|
+
function Zi({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-testid": a, ...o }) {
|
|
2739
2929
|
let s = r ?? `toggle-${String(e ?? "").toLowerCase().replace(/\s+/g, "-")}`;
|
|
2740
2930
|
return /* @__PURE__ */ u("label", {
|
|
2741
|
-
className:
|
|
2931
|
+
className: Xi.wrapper,
|
|
2742
2932
|
"data-size": t,
|
|
2743
2933
|
htmlFor: s,
|
|
2744
2934
|
"data-testid": a,
|
|
@@ -2749,55 +2939,55 @@ function Hi({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-t
|
|
|
2749
2939
|
role: "switch",
|
|
2750
2940
|
"aria-checked": o.checked ?? !1,
|
|
2751
2941
|
id: s,
|
|
2752
|
-
className:
|
|
2942
|
+
className: Xi.input,
|
|
2753
2943
|
...o
|
|
2754
2944
|
}),
|
|
2755
2945
|
/* @__PURE__ */ l("span", {
|
|
2756
|
-
className:
|
|
2946
|
+
className: Xi.track,
|
|
2757
2947
|
"aria-hidden": "true",
|
|
2758
|
-
children: /* @__PURE__ */ l("span", { className:
|
|
2948
|
+
children: /* @__PURE__ */ l("span", { className: Xi.thumb })
|
|
2759
2949
|
}),
|
|
2760
2950
|
e && /* @__PURE__ */ l("span", {
|
|
2761
|
-
className:
|
|
2951
|
+
className: Xi.label,
|
|
2762
2952
|
children: e
|
|
2763
2953
|
})
|
|
2764
2954
|
]
|
|
2765
2955
|
});
|
|
2766
2956
|
}
|
|
2767
|
-
var
|
|
2957
|
+
var Qi = {
|
|
2768
2958
|
trigger: "_trigger_wx3tb_2",
|
|
2769
2959
|
tooltip: "_tooltip_wx3tb_7"
|
|
2770
|
-
},
|
|
2771
|
-
function
|
|
2960
|
+
}, $i = 8;
|
|
2961
|
+
function ea(e, t) {
|
|
2772
2962
|
switch (t) {
|
|
2773
2963
|
case "top": return {
|
|
2774
|
-
top: e.top -
|
|
2964
|
+
top: e.top - $i,
|
|
2775
2965
|
left: e.left + e.width / 2
|
|
2776
2966
|
};
|
|
2777
2967
|
case "bottom": return {
|
|
2778
|
-
top: e.bottom +
|
|
2968
|
+
top: e.bottom + $i,
|
|
2779
2969
|
left: e.left + e.width / 2
|
|
2780
2970
|
};
|
|
2781
2971
|
case "left": return {
|
|
2782
2972
|
top: e.top + e.height / 2,
|
|
2783
|
-
left: e.left -
|
|
2973
|
+
left: e.left - $i
|
|
2784
2974
|
};
|
|
2785
2975
|
case "right": return {
|
|
2786
2976
|
top: e.top + e.height / 2,
|
|
2787
|
-
left: e.right +
|
|
2977
|
+
left: e.right + $i
|
|
2788
2978
|
};
|
|
2789
2979
|
}
|
|
2790
2980
|
}
|
|
2791
|
-
function
|
|
2981
|
+
function ta({ content: e, children: t, placement: r = "top", "data-testid": a }) {
|
|
2792
2982
|
let [d, f] = s(!1), [p, m] = s({
|
|
2793
2983
|
top: 0,
|
|
2794
2984
|
left: 0
|
|
2795
2985
|
}), h = o(null), g = i(), _ = n(() => {
|
|
2796
|
-
h.current && (m(
|
|
2986
|
+
h.current && (m(ea(h.current.getBoundingClientRect(), r)), f(!0));
|
|
2797
2987
|
}, [r]), v = n(() => f(!1), []);
|
|
2798
2988
|
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("span", {
|
|
2799
2989
|
ref: h,
|
|
2800
|
-
className:
|
|
2990
|
+
className: Qi.trigger,
|
|
2801
2991
|
"aria-describedby": d ? g : void 0,
|
|
2802
2992
|
onMouseEnter: _,
|
|
2803
2993
|
onMouseLeave: v,
|
|
@@ -2808,7 +2998,7 @@ function Ki({ content: e, children: t, placement: r = "top", "data-testid": a })
|
|
|
2808
2998
|
}), d && typeof document < "u" && k(/* @__PURE__ */ l("div", {
|
|
2809
2999
|
id: g,
|
|
2810
3000
|
role: "tooltip",
|
|
2811
|
-
className:
|
|
3001
|
+
className: Qi.tooltip,
|
|
2812
3002
|
"data-placement": r,
|
|
2813
3003
|
style: {
|
|
2814
3004
|
top: p.top,
|
|
@@ -2835,26 +3025,26 @@ var Q = {
|
|
|
2835
3025
|
function $(e) {
|
|
2836
3026
|
return e ? "" : void 0;
|
|
2837
3027
|
}
|
|
2838
|
-
function
|
|
3028
|
+
function na(e) {
|
|
2839
3029
|
return [
|
|
2840
3030
|
"INPUT",
|
|
2841
3031
|
"TEXTAREA",
|
|
2842
3032
|
"SELECT"
|
|
2843
3033
|
].includes(e.tagName) || e.isContentEditable;
|
|
2844
3034
|
}
|
|
2845
|
-
function
|
|
3035
|
+
function ra(e, t, n) {
|
|
2846
3036
|
return e === "ArrowRight" ? t && !n : e === "ArrowLeft" ? t && n : !1;
|
|
2847
3037
|
}
|
|
2848
|
-
function
|
|
2849
|
-
if (!(t.disabled ||
|
|
3038
|
+
function ia(e, t, n, r, i, a, o) {
|
|
3039
|
+
if (!(t.disabled || na(e.target))) {
|
|
2850
3040
|
if (e.key === "Enter" || e.key === " ") {
|
|
2851
3041
|
e.preventDefault(), n ? a(t.id) : i && o(t.id);
|
|
2852
3042
|
return;
|
|
2853
3043
|
}
|
|
2854
|
-
|
|
3044
|
+
ra(e.key, n, r) && (e.preventDefault(), a(t.id));
|
|
2855
3045
|
}
|
|
2856
3046
|
}
|
|
2857
|
-
function
|
|
3047
|
+
function aa(e, t, n, r, i, a, o, s, c) {
|
|
2858
3048
|
return {
|
|
2859
3049
|
handleDragStart(n) {
|
|
2860
3050
|
if (!r.current) {
|
|
@@ -2898,9 +3088,9 @@ function Xi(e, t, n, r, i, a, o, s, c) {
|
|
|
2898
3088
|
}
|
|
2899
3089
|
};
|
|
2900
3090
|
}
|
|
2901
|
-
function
|
|
3091
|
+
function oa({ item: e, level: t, selectable: n, selected: r, prefixSlot: i, labelSlot: a, metaSlot: o, suffixSlot: s, onToggleSelect: d }) {
|
|
2902
3092
|
return /* @__PURE__ */ u(c, { children: [
|
|
2903
|
-
n && /* @__PURE__ */ l(
|
|
3093
|
+
n && /* @__PURE__ */ l(qn, {
|
|
2904
3094
|
checked: r,
|
|
2905
3095
|
disabled: e.disabled,
|
|
2906
3096
|
className: Q.checkbox,
|
|
@@ -2924,8 +3114,8 @@ function Zi({ item: e, level: t, selectable: n, selected: r, prefixSlot: i, labe
|
|
|
2924
3114
|
})
|
|
2925
3115
|
] });
|
|
2926
3116
|
}
|
|
2927
|
-
function
|
|
2928
|
-
let O = o(!1), k = (t) =>
|
|
3117
|
+
function sa({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggable: i = !1, selectable: a = !1, hasChildren: s = !1, indentSize: c = 24, parentId: d = null, bordered: f = !1, flatIndex: p = 0, striped: m = !1, onToggleExpand: h, onToggleSelect: g, onDragStart: _, onDragEnd: v, onDragOver: y, onDragLeave: b, onDrop: x, children: S, "data-testid": C, labelSlot: w, metaSlot: T, prefixSlot: E, suffixSlot: D }) {
|
|
3118
|
+
let O = o(!1), k = (t) => ia(t, e, s, n, a, h, g), A = aa(e, d, i, O, _, v, y, b, x);
|
|
2929
3119
|
return /* @__PURE__ */ u("div", {
|
|
2930
3120
|
className: Q.treeItem,
|
|
2931
3121
|
style: { "--tree-item-indent": `${t * c}px` },
|
|
@@ -2976,7 +3166,7 @@ function Qi({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggab
|
|
|
2976
3166
|
className: Q.indent,
|
|
2977
3167
|
"aria-hidden": "true"
|
|
2978
3168
|
}),
|
|
2979
|
-
/* @__PURE__ */ l(
|
|
3169
|
+
/* @__PURE__ */ l(oa, {
|
|
2980
3170
|
item: e,
|
|
2981
3171
|
level: t,
|
|
2982
3172
|
selectable: a,
|
|
@@ -3012,31 +3202,31 @@ function Qi({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggab
|
|
|
3012
3202
|
})]
|
|
3013
3203
|
});
|
|
3014
3204
|
}
|
|
3015
|
-
var
|
|
3205
|
+
var ca = { treeList: "_treeList_trryv_2" };
|
|
3016
3206
|
//#endregion
|
|
3017
3207
|
//#region src/components/TreeList/TreeList.tsx
|
|
3018
|
-
function
|
|
3208
|
+
function la(e, t) {
|
|
3019
3209
|
for (let n of e) {
|
|
3020
3210
|
if (n.id === t) return n;
|
|
3021
3211
|
if (n.children) {
|
|
3022
|
-
let e =
|
|
3212
|
+
let e = la(n.children, t);
|
|
3023
3213
|
if (e) return e;
|
|
3024
3214
|
}
|
|
3025
3215
|
}
|
|
3026
3216
|
return null;
|
|
3027
3217
|
}
|
|
3028
|
-
function
|
|
3218
|
+
function ua(e, t) {
|
|
3029
3219
|
let n = /* @__PURE__ */ new Map(), r = 0;
|
|
3030
3220
|
function i(e) {
|
|
3031
3221
|
for (let a of e) n.set(a.id, r++), a.children?.length && t.includes(a.id) && i(a.children);
|
|
3032
3222
|
}
|
|
3033
3223
|
return i(e), n;
|
|
3034
3224
|
}
|
|
3035
|
-
function
|
|
3225
|
+
function da(e) {
|
|
3036
3226
|
let { items: t, parentId: n, level: r, expandedIds: i, selectedIds: a, flatIndexMap: o } = e;
|
|
3037
3227
|
return t.map((t) => {
|
|
3038
3228
|
let s = !!t.children?.length, c = i.includes(t.id);
|
|
3039
|
-
return /* @__PURE__ */ l(
|
|
3229
|
+
return /* @__PURE__ */ l(sa, {
|
|
3040
3230
|
item: t,
|
|
3041
3231
|
level: r,
|
|
3042
3232
|
parentId: n,
|
|
@@ -3059,7 +3249,7 @@ function na(e) {
|
|
|
3059
3249
|
metaSlot: e.metaSlot,
|
|
3060
3250
|
prefixSlot: e.prefixSlot,
|
|
3061
3251
|
suffixSlot: e.suffixSlot,
|
|
3062
|
-
children: s && c && t.children && /* @__PURE__ */ l(
|
|
3252
|
+
children: s && c && t.children && /* @__PURE__ */ l(da, {
|
|
3063
3253
|
...e,
|
|
3064
3254
|
items: t.children,
|
|
3065
3255
|
parentId: t.id,
|
|
@@ -3068,14 +3258,14 @@ function na(e) {
|
|
|
3068
3258
|
}, t.id);
|
|
3069
3259
|
});
|
|
3070
3260
|
}
|
|
3071
|
-
function
|
|
3261
|
+
function fa({ items: e = [], draggable: t = !1, expandedIds: r, selectedIds: i, selectable: c = !1, indentSize: u = 24, bordered: d = !1, striped: f = !1, onExpandChange: p, onSelectChange: m, onReorder: h, labelSlot: g, metaSlot: _, prefixSlot: v, suffixSlot: y, "data-testid": b }) {
|
|
3072
3262
|
let [x, S] = s([]), [C, w] = s([]), T = o(null), E = r ?? x, D = i ?? C, O = {
|
|
3073
3263
|
items: e,
|
|
3074
3264
|
parentId: null,
|
|
3075
3265
|
level: 0,
|
|
3076
3266
|
expandedIds: E,
|
|
3077
3267
|
selectedIds: D,
|
|
3078
|
-
flatIndexMap: a(() =>
|
|
3268
|
+
flatIndexMap: a(() => ua(e, E), [e, E]),
|
|
3079
3269
|
draggable: t,
|
|
3080
3270
|
selectable: c,
|
|
3081
3271
|
bordered: d,
|
|
@@ -3115,7 +3305,7 @@ function ra({ items: e = [], draggable: t = !1, expandedIds: r, selectedIds: i,
|
|
|
3115
3305
|
if (!n || n.parentId !== t.parentId) return;
|
|
3116
3306
|
let r = n.itemId, i = t.item.id;
|
|
3117
3307
|
if (r === i) return;
|
|
3118
|
-
let a = t.parentId === null ? e :
|
|
3308
|
+
let a = t.parentId === null ? e : la(e, t.parentId)?.children;
|
|
3119
3309
|
if (!a) return;
|
|
3120
3310
|
let o = a.findIndex((e) => e.id === r), s = a.findIndex((e) => e.id === i);
|
|
3121
3311
|
o === -1 || s === -1 || h?.({
|
|
@@ -3132,14 +3322,14 @@ function ra({ items: e = [], draggable: t = !1, expandedIds: r, selectedIds: i,
|
|
|
3132
3322
|
suffixSlot: y
|
|
3133
3323
|
};
|
|
3134
3324
|
return /* @__PURE__ */ l("div", {
|
|
3135
|
-
className:
|
|
3325
|
+
className: ca.treeList,
|
|
3136
3326
|
role: "tree",
|
|
3137
3327
|
"data-draggable": t ? "" : void 0,
|
|
3138
3328
|
"data-testid": b,
|
|
3139
|
-
children: /* @__PURE__ */ l(
|
|
3329
|
+
children: /* @__PURE__ */ l(da, { ...O })
|
|
3140
3330
|
});
|
|
3141
3331
|
}
|
|
3142
|
-
var
|
|
3332
|
+
var pa = {
|
|
3143
3333
|
header: "_header_u329l_2",
|
|
3144
3334
|
titleSection: "_titleSection_u329l_12",
|
|
3145
3335
|
title: "_title_u329l_12",
|
|
@@ -3147,23 +3337,23 @@ var ia = {
|
|
|
3147
3337
|
};
|
|
3148
3338
|
//#endregion
|
|
3149
3339
|
//#region src/layouts/AdminPageHeader/AdminPageHeader.tsx
|
|
3150
|
-
function
|
|
3340
|
+
function ma({ title: e, actions: t, "data-testid": n }) {
|
|
3151
3341
|
return /* @__PURE__ */ u("header", {
|
|
3152
|
-
className:
|
|
3342
|
+
className: pa.header,
|
|
3153
3343
|
"data-testid": n,
|
|
3154
3344
|
children: [/* @__PURE__ */ l("div", {
|
|
3155
|
-
className:
|
|
3345
|
+
className: pa.titleSection,
|
|
3156
3346
|
children: /* @__PURE__ */ l("span", {
|
|
3157
|
-
className:
|
|
3347
|
+
className: pa.title,
|
|
3158
3348
|
children: e
|
|
3159
3349
|
})
|
|
3160
3350
|
}), t && /* @__PURE__ */ l("div", {
|
|
3161
|
-
className:
|
|
3351
|
+
className: pa.actions,
|
|
3162
3352
|
children: t
|
|
3163
3353
|
})]
|
|
3164
3354
|
});
|
|
3165
3355
|
}
|
|
3166
|
-
var
|
|
3356
|
+
var ha = {
|
|
3167
3357
|
shell: "_shell_1c2iw_2",
|
|
3168
3358
|
body: "_body_1c2iw_10",
|
|
3169
3359
|
sidebarSlot: "_sidebarSlot_1c2iw_16",
|
|
@@ -3173,14 +3363,14 @@ var oa = {
|
|
|
3173
3363
|
};
|
|
3174
3364
|
//#endregion
|
|
3175
3365
|
//#region src/layouts/AppShell/AppShell.tsx
|
|
3176
|
-
function
|
|
3177
|
-
return c ? /* @__PURE__ */ l(
|
|
3366
|
+
function ga({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle: r, sidebar: i, children: a, tabBar: o, headerRight: s, isPinLocked: c = !1, pinLockContent: d, isLoading: f = !1, "data-testid": p }) {
|
|
3367
|
+
return c ? /* @__PURE__ */ l(mi, {
|
|
3178
3368
|
isLocked: !0,
|
|
3179
3369
|
children: d
|
|
3180
3370
|
}) : /* @__PURE__ */ u("div", {
|
|
3181
|
-
className:
|
|
3371
|
+
className: ha.shell,
|
|
3182
3372
|
"data-testid": p,
|
|
3183
|
-
children: [/* @__PURE__ */ l(
|
|
3373
|
+
children: [/* @__PURE__ */ l(Zr, {
|
|
3184
3374
|
restaurantName: e,
|
|
3185
3375
|
onMenuToggle: t,
|
|
3186
3376
|
onLogoClick: n,
|
|
@@ -3188,82 +3378,82 @@ function sa({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle:
|
|
|
3188
3378
|
isLoading: f,
|
|
3189
3379
|
rightSlot: s
|
|
3190
3380
|
}), /* @__PURE__ */ u("div", {
|
|
3191
|
-
className:
|
|
3381
|
+
className: ha.body,
|
|
3192
3382
|
children: [/* @__PURE__ */ l("div", {
|
|
3193
|
-
className:
|
|
3383
|
+
className: ha.sidebarSlot,
|
|
3194
3384
|
children: i
|
|
3195
3385
|
}), /* @__PURE__ */ u("div", {
|
|
3196
|
-
className:
|
|
3386
|
+
className: ha.contentArea,
|
|
3197
3387
|
children: [/* @__PURE__ */ l("main", {
|
|
3198
|
-
className:
|
|
3388
|
+
className: ha.main,
|
|
3199
3389
|
children: a
|
|
3200
3390
|
}), o && /* @__PURE__ */ l("div", {
|
|
3201
|
-
className:
|
|
3391
|
+
className: ha.tabBarSlot,
|
|
3202
3392
|
children: o
|
|
3203
3393
|
})]
|
|
3204
3394
|
})]
|
|
3205
3395
|
})]
|
|
3206
3396
|
});
|
|
3207
3397
|
}
|
|
3208
|
-
var
|
|
3398
|
+
var _a = { divider: "_divider_1nit0_1" };
|
|
3209
3399
|
//#endregion
|
|
3210
3400
|
//#region src/layouts/Divider/Divider.tsx
|
|
3211
|
-
function
|
|
3401
|
+
function va({ orientation: e = "horizontal", spacing: t = "md", className: n, "data-testid": r }) {
|
|
3212
3402
|
return /* @__PURE__ */ l("hr", {
|
|
3213
|
-
className: [
|
|
3403
|
+
className: [_a.divider, n].filter(Boolean).join(" "),
|
|
3214
3404
|
"data-orientation": e,
|
|
3215
3405
|
"data-spacing": t,
|
|
3216
3406
|
"aria-orientation": e,
|
|
3217
3407
|
"data-testid": r
|
|
3218
3408
|
});
|
|
3219
3409
|
}
|
|
3220
|
-
var
|
|
3410
|
+
var ya = { grid: "_grid_w5ah8_2" }, ba = {
|
|
3221
3411
|
xs: "var(--ds-space-1)",
|
|
3222
3412
|
sm: "var(--ds-space-2)",
|
|
3223
3413
|
md: "var(--ds-space-3)",
|
|
3224
3414
|
lg: "var(--ds-space-4)",
|
|
3225
3415
|
xl: "var(--ds-space-6)"
|
|
3226
3416
|
};
|
|
3227
|
-
function
|
|
3417
|
+
function xa({ columns: e = 1, gap: t = "md", children: n, className: r, style: i, "data-testid": a }) {
|
|
3228
3418
|
let o = {
|
|
3229
3419
|
"--grid-columns": typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e,
|
|
3230
|
-
"--grid-gap":
|
|
3420
|
+
"--grid-gap": ba[t],
|
|
3231
3421
|
...i
|
|
3232
3422
|
};
|
|
3233
3423
|
return /* @__PURE__ */ l("div", {
|
|
3234
|
-
className: [
|
|
3424
|
+
className: [ya.grid, r].filter(Boolean).join(" "),
|
|
3235
3425
|
style: o,
|
|
3236
3426
|
"data-testid": a,
|
|
3237
3427
|
children: n
|
|
3238
3428
|
});
|
|
3239
3429
|
}
|
|
3240
|
-
var
|
|
3430
|
+
var Sa = {
|
|
3241
3431
|
footer: "_footer_1dat1_2",
|
|
3242
3432
|
dot: "_dot_1dat1_14",
|
|
3243
3433
|
info: "_info_1dat1_22"
|
|
3244
3434
|
};
|
|
3245
3435
|
//#endregion
|
|
3246
3436
|
//#region src/layouts/LoginFooter/LoginFooter.tsx
|
|
3247
|
-
function
|
|
3437
|
+
function Ca({ languageSelector: e, appName: t = "Toteat©", version: n, env: r, className: i, "data-testid": a }) {
|
|
3248
3438
|
return /* @__PURE__ */ u("footer", {
|
|
3249
|
-
className: [
|
|
3439
|
+
className: [Sa.footer, i].filter(Boolean).join(" "),
|
|
3250
3440
|
"data-testid": a,
|
|
3251
3441
|
children: [
|
|
3252
3442
|
e,
|
|
3253
3443
|
e && /* @__PURE__ */ l("span", {
|
|
3254
|
-
className:
|
|
3444
|
+
className: Sa.dot,
|
|
3255
3445
|
"aria-hidden": "true"
|
|
3256
3446
|
}),
|
|
3257
3447
|
/* @__PURE__ */ l("span", {
|
|
3258
|
-
className:
|
|
3448
|
+
className: Sa.info,
|
|
3259
3449
|
children: t
|
|
3260
3450
|
}),
|
|
3261
3451
|
(n || r) && /* @__PURE__ */ l("span", {
|
|
3262
|
-
className:
|
|
3452
|
+
className: Sa.dot,
|
|
3263
3453
|
"aria-hidden": "true"
|
|
3264
3454
|
}),
|
|
3265
3455
|
(n || r) && /* @__PURE__ */ u("span", {
|
|
3266
|
-
className:
|
|
3456
|
+
className: Sa.info,
|
|
3267
3457
|
children: [
|
|
3268
3458
|
n && /* @__PURE__ */ u(c, { children: ["Ver: ", n] }),
|
|
3269
3459
|
n && r && /* @__PURE__ */ l(c, { children: "\xA0\xA0" }),
|
|
@@ -3273,24 +3463,24 @@ function ma({ languageSelector: e, appName: t = "Toteat©", version: n, env: r,
|
|
|
3273
3463
|
]
|
|
3274
3464
|
});
|
|
3275
3465
|
}
|
|
3276
|
-
var
|
|
3466
|
+
var wa = {
|
|
3277
3467
|
page: "_page_s8gdl_2",
|
|
3278
3468
|
card: "_card_s8gdl_45",
|
|
3279
3469
|
cardEntrance: "_cardEntrance_s8gdl_1"
|
|
3280
3470
|
};
|
|
3281
3471
|
//#endregion
|
|
3282
3472
|
//#region src/layouts/LoginPageLayout/LoginPageLayout.tsx
|
|
3283
|
-
function
|
|
3473
|
+
function Ta({ children: e, "data-testid": t }) {
|
|
3284
3474
|
return /* @__PURE__ */ l("main", {
|
|
3285
|
-
className:
|
|
3475
|
+
className: wa.page,
|
|
3286
3476
|
"data-testid": t,
|
|
3287
3477
|
children: /* @__PURE__ */ l("div", {
|
|
3288
|
-
className:
|
|
3478
|
+
className: wa.card,
|
|
3289
3479
|
children: e
|
|
3290
3480
|
})
|
|
3291
3481
|
});
|
|
3292
3482
|
}
|
|
3293
|
-
var
|
|
3483
|
+
var Ea = {
|
|
3294
3484
|
root: "_root_11bhp_2",
|
|
3295
3485
|
sidebar: "_sidebar_11bhp_20",
|
|
3296
3486
|
main: "_main_11bhp_37",
|
|
@@ -3299,22 +3489,22 @@ var _a = {
|
|
|
3299
3489
|
};
|
|
3300
3490
|
//#endregion
|
|
3301
3491
|
//#region src/layouts/PageLayout/PageLayout.tsx
|
|
3302
|
-
function
|
|
3492
|
+
function Da({ sidebar: e, header: t, children: n, collapsed: r = !1, className: i, "data-testid": a }) {
|
|
3303
3493
|
return /* @__PURE__ */ u("div", {
|
|
3304
|
-
className: [
|
|
3494
|
+
className: [Ea.root, i].filter(Boolean).join(" "),
|
|
3305
3495
|
"data-sidebar-collapsed": r ? "" : void 0,
|
|
3306
3496
|
"data-testid": a,
|
|
3307
3497
|
children: [e && /* @__PURE__ */ l("aside", {
|
|
3308
|
-
className:
|
|
3498
|
+
className: Ea.sidebar,
|
|
3309
3499
|
"aria-label": "Navegación lateral",
|
|
3310
3500
|
children: e
|
|
3311
3501
|
}), /* @__PURE__ */ u("div", {
|
|
3312
|
-
className:
|
|
3502
|
+
className: Ea.main,
|
|
3313
3503
|
children: [t && /* @__PURE__ */ l("header", {
|
|
3314
|
-
className:
|
|
3504
|
+
className: Ea.header,
|
|
3315
3505
|
children: t
|
|
3316
3506
|
}), /* @__PURE__ */ l("main", {
|
|
3317
|
-
className:
|
|
3507
|
+
className: Ea.content,
|
|
3318
3508
|
children: n
|
|
3319
3509
|
})]
|
|
3320
3510
|
})]
|
|
@@ -3322,36 +3512,36 @@ function va({ sidebar: e, header: t, children: n, collapsed: r = !1, className:
|
|
|
3322
3512
|
}
|
|
3323
3513
|
//#endregion
|
|
3324
3514
|
//#region src/layouts/Stack/Stack.tsx
|
|
3325
|
-
var
|
|
3515
|
+
var Oa = {
|
|
3326
3516
|
xs: "var(--ds-space-1)",
|
|
3327
3517
|
sm: "var(--ds-space-2)",
|
|
3328
3518
|
md: "var(--ds-space-3)",
|
|
3329
3519
|
lg: "var(--ds-space-4)",
|
|
3330
3520
|
xl: "var(--ds-space-6)",
|
|
3331
3521
|
"2xl": "var(--ds-space-8)"
|
|
3332
|
-
},
|
|
3522
|
+
}, ka = {
|
|
3333
3523
|
start: "flex-start",
|
|
3334
3524
|
center: "center",
|
|
3335
3525
|
end: "flex-end",
|
|
3336
3526
|
between: "space-between",
|
|
3337
3527
|
around: "space-around",
|
|
3338
3528
|
evenly: "space-evenly"
|
|
3339
|
-
},
|
|
3529
|
+
}, Aa = {
|
|
3340
3530
|
start: "flex-start",
|
|
3341
3531
|
center: "center",
|
|
3342
3532
|
end: "flex-end",
|
|
3343
3533
|
stretch: "stretch",
|
|
3344
3534
|
baseline: "baseline"
|
|
3345
3535
|
};
|
|
3346
|
-
function
|
|
3536
|
+
function ja({ as: e, direction: t = "vertical", gap: n = "md", align: r, justify: i, wrap: a = !1, children: o, className: s, style: c, ...u }) {
|
|
3347
3537
|
return /* @__PURE__ */ l(e ?? "div", {
|
|
3348
3538
|
className: s,
|
|
3349
3539
|
style: {
|
|
3350
3540
|
display: "flex",
|
|
3351
3541
|
flexDirection: t === "vertical" ? "column" : "row",
|
|
3352
|
-
gap:
|
|
3353
|
-
alignItems: r ?
|
|
3354
|
-
justifyContent: i ?
|
|
3542
|
+
gap: Oa[n],
|
|
3543
|
+
alignItems: r ? Aa[r] : void 0,
|
|
3544
|
+
justifyContent: i ? ka[i] : void 0,
|
|
3355
3545
|
flexWrap: a ? "wrap" : void 0,
|
|
3356
3546
|
...c
|
|
3357
3547
|
},
|
|
@@ -3360,11 +3550,21 @@ function Sa({ as: e, direction: t = "vertical", gap: n = "md", align: r, justify
|
|
|
3360
3550
|
});
|
|
3361
3551
|
}
|
|
3362
3552
|
//#endregion
|
|
3553
|
+
//#region src/utils/csv.ts
|
|
3554
|
+
function Ma(e) {
|
|
3555
|
+
if (e == null) return "";
|
|
3556
|
+
let t = String(e);
|
|
3557
|
+
return /[",\r\n]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
|
|
3558
|
+
}
|
|
3559
|
+
function Na(e) {
|
|
3560
|
+
return e.length === 0 ? "" : e.map((e) => e.map(Ma).join(",")).join("\r\n");
|
|
3561
|
+
}
|
|
3562
|
+
//#endregion
|
|
3363
3563
|
//#region src/utils/portal.ts
|
|
3364
|
-
function
|
|
3564
|
+
function Pa(e, t) {
|
|
3365
3565
|
return k(e, t ?? document.body);
|
|
3366
3566
|
}
|
|
3367
3567
|
//#endregion
|
|
3368
|
-
export { te as Accordion,
|
|
3568
|
+
export { te as Accordion, ma as AdminPageHeader, ga as AppShell, jn as AppleSignInButton, Wn as AreaChart, Nn as BackgroundWrapper, Fn as Badge, Ln as Banner, Un as BarChart, Rn as Breadcrumb, N as Button, Bn as Card, qn as Checkbox, Yn as ComingSoon, Zn as ConfigRow, $n as DataTable, tr as DatePicker, nr as DateRangePicker, ar as Dialog, va as Divider, Sr as DropZone, sr as DropdownButton, lr as DropdownMenu, Cr as DsProvider, Tr as EmptyState, Er as ErrorBoundary, Or as FormField, Ar as GoogleSignInButton, xa as Grid, Nr as GroupedButtons, Fr as Header, F as Icon, gr as ImagePreview, Gn as KpiCard, Ir as LanguageSelector, Hn as LineChart, Ca as LoginFooter, Ta as LoginPageLayout, Jr as LogoToteat, Xr as Multiselect, Zr as NavBar, $r as Overlay, ri as OverlayMessage, Da as PageLayout, di as PageLoadingOverlay, fi as PermissionGate, mi as PinLockOverlay, gi as Radio, vi as SearchInput, yi as SectionHeader, bi as Select, Si as Sidebar, Ei as SidebarNavItem, Di as SidebarNavSection, fr as Skeleton, re as Spinner, ja as Stack, Oi as StatusBadge, Ai as Stepper, Mi as TabBar, Pi as Tabs, Ri as TextInput, Ii as Textarea, zi as ThemeGate, Yi as ToastContainer, Zi as Toggle, ta as Tooltip, sa as TreeItem, fa as TreeList, I as cn, Ma as escapeCell, Pa as portal, Na as rowsToCsv, Ti as sidebarNavItemActiveClass, wi as sidebarNavItemClass, ir as useFocusTrap, qi as useToast };
|
|
3369
3569
|
|
|
3370
3570
|
//# sourceMappingURL=index.es.js.map
|