@toteat-eng/ds-react 2026.8.12 → 2026.8.25
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/index.es.js +385 -384
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -257,7 +257,7 @@ var kn = {
|
|
|
257
257
|
};
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/Button/Button.tsx
|
|
260
|
-
function
|
|
260
|
+
function R({ variant: e = "primary", size: t = "medium", loading: n = !1, fullWidth: r = !1, icon: i, iconPosition: a = "left", disabled: o, children: s, className: c, type: l = "button", ...u }) {
|
|
261
261
|
return /* @__PURE__ */ p("button", {
|
|
262
262
|
type: l,
|
|
263
263
|
className: [kn.button, c].filter(Boolean).join(" "),
|
|
@@ -283,17 +283,17 @@ function An({ variant: e = "primary", size: t = "medium", loading: n = !1, fullW
|
|
|
283
283
|
})]
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
var
|
|
286
|
+
var An = {
|
|
287
287
|
wrapper: "_wrapper_8byuq_2",
|
|
288
288
|
error: "_error_8byuq_9"
|
|
289
289
|
};
|
|
290
290
|
//#endregion
|
|
291
291
|
//#region src/components/AppleSignInButton/AppleSignInButton.tsx
|
|
292
|
-
function
|
|
292
|
+
function jn({ onSignIn: e, isPending: t = !1, isError: n = !1, error: r, "data-testid": i }) {
|
|
293
293
|
return /* @__PURE__ */ p("div", {
|
|
294
|
-
className:
|
|
294
|
+
className: An.wrapper,
|
|
295
295
|
"data-testid": i,
|
|
296
|
-
children: [/* @__PURE__ */ p(
|
|
296
|
+
children: [/* @__PURE__ */ p(R, {
|
|
297
297
|
type: "button",
|
|
298
298
|
variant: "outline",
|
|
299
299
|
size: "small",
|
|
@@ -308,46 +308,46 @@ function Mn({ onSignIn: e, isPending: t = !1, isError: n = !1, error: r, "data-t
|
|
|
308
308
|
}), "Apple"]
|
|
309
309
|
}), n && /* @__PURE__ */ f("span", {
|
|
310
310
|
role: "alert",
|
|
311
|
-
className:
|
|
311
|
+
className: An.error,
|
|
312
312
|
children: r instanceof Error ? r.message : "Error al iniciar sesión con Apple"
|
|
313
313
|
})]
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var Mn = {
|
|
317
317
|
wrapper: "_wrapper_17prb_2",
|
|
318
318
|
content: "_content_17prb_39"
|
|
319
319
|
};
|
|
320
320
|
//#endregion
|
|
321
321
|
//#region src/components/BackgroundWrapper/BackgroundWrapper.tsx
|
|
322
|
-
function
|
|
322
|
+
function Nn({ children: e, className: t, ...n }) {
|
|
323
323
|
return /* @__PURE__ */ f("div", {
|
|
324
|
-
className: [
|
|
324
|
+
className: [Mn.wrapper, t].filter(Boolean).join(" "),
|
|
325
325
|
"data-full-bleed": "",
|
|
326
326
|
...n,
|
|
327
327
|
children: /* @__PURE__ */ f("div", {
|
|
328
|
-
className:
|
|
328
|
+
className: Mn.content,
|
|
329
329
|
children: e
|
|
330
330
|
})
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
//#endregion
|
|
334
334
|
//#region src/utils/cn.ts
|
|
335
|
-
function
|
|
335
|
+
function z(...e) {
|
|
336
336
|
return e.filter(Boolean).join(" ");
|
|
337
337
|
}
|
|
338
|
-
var
|
|
338
|
+
var Pn = { badge: "_badge_1luxy_2" };
|
|
339
339
|
//#endregion
|
|
340
340
|
//#region src/components/Badge/Badge.tsx
|
|
341
|
-
function
|
|
341
|
+
function Fn({ variant: e = "default", size: t = "medium", children: n, className: r, "data-testid": i }) {
|
|
342
342
|
return /* @__PURE__ */ f("span", {
|
|
343
|
-
className:
|
|
343
|
+
className: z(Pn.badge, r),
|
|
344
344
|
"data-variant": e,
|
|
345
345
|
"data-size": t,
|
|
346
346
|
"data-testid": i,
|
|
347
347
|
children: n
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var In = {
|
|
351
351
|
banner: "_banner_k1c7g_2",
|
|
352
352
|
content: "_content_k1c7g_40",
|
|
353
353
|
action: "_action_k1c7g_45",
|
|
@@ -355,10 +355,10 @@ var Ln = {
|
|
|
355
355
|
};
|
|
356
356
|
//#endregion
|
|
357
357
|
//#region src/components/Banner/Banner.tsx
|
|
358
|
-
function
|
|
358
|
+
function Ln({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cerrar", action: i, children: a, className: o, "data-testid": s }) {
|
|
359
359
|
let c = e === "error";
|
|
360
360
|
return /* @__PURE__ */ p("div", {
|
|
361
|
-
className: [
|
|
361
|
+
className: [In.banner, o].filter(Boolean).join(" "),
|
|
362
362
|
"data-variant": e,
|
|
363
363
|
role: c ? "alert" : "status",
|
|
364
364
|
"aria-live": c ? "assertive" : "polite",
|
|
@@ -370,16 +370,16 @@ function Rn({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cer
|
|
|
370
370
|
"aria-hidden": "true"
|
|
371
371
|
}),
|
|
372
372
|
/* @__PURE__ */ f("span", {
|
|
373
|
-
className:
|
|
373
|
+
className: In.content,
|
|
374
374
|
children: a
|
|
375
375
|
}),
|
|
376
376
|
i && /* @__PURE__ */ f("span", {
|
|
377
|
-
className:
|
|
377
|
+
className: In.action,
|
|
378
378
|
children: i
|
|
379
379
|
}),
|
|
380
380
|
n && /* @__PURE__ */ f("button", {
|
|
381
381
|
type: "button",
|
|
382
|
-
className:
|
|
382
|
+
className: In.dismiss,
|
|
383
383
|
onClick: n,
|
|
384
384
|
"aria-label": r,
|
|
385
385
|
children: /* @__PURE__ */ f(L, {
|
|
@@ -391,7 +391,7 @@ function Rn({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cer
|
|
|
391
391
|
]
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
|
-
var
|
|
394
|
+
var Rn = {
|
|
395
395
|
breadcrumb: "_breadcrumb_1j7hr_2",
|
|
396
396
|
list: "_list_1j7hr_8",
|
|
397
397
|
item: "_item_1j7hr_18",
|
|
@@ -400,26 +400,26 @@ var zn = {
|
|
|
400
400
|
};
|
|
401
401
|
//#endregion
|
|
402
402
|
//#region src/components/Breadcrumb/Breadcrumb.tsx
|
|
403
|
-
function
|
|
403
|
+
function zn({ items: e, "aria-label": t = "Breadcrumb", className: n, "data-testid": r }) {
|
|
404
404
|
if (e.length === 0) return null;
|
|
405
405
|
let i = e.length - 1;
|
|
406
406
|
return /* @__PURE__ */ f("nav", {
|
|
407
407
|
"aria-label": t,
|
|
408
|
-
className:
|
|
408
|
+
className: z(Rn.breadcrumb, n),
|
|
409
409
|
"data-testid": r,
|
|
410
410
|
children: /* @__PURE__ */ f("ol", {
|
|
411
|
-
className:
|
|
411
|
+
className: Rn.list,
|
|
412
412
|
children: e.map((e, t) => {
|
|
413
413
|
let n = t === i, r = `${t}-${e.label}`;
|
|
414
414
|
return /* @__PURE__ */ f("li", {
|
|
415
|
-
className:
|
|
415
|
+
className: Rn.item,
|
|
416
416
|
children: n || !e.href ? /* @__PURE__ */ f("span", {
|
|
417
|
-
className:
|
|
417
|
+
className: Rn.current,
|
|
418
418
|
"aria-current": n ? "page" : void 0,
|
|
419
419
|
children: e.label
|
|
420
420
|
}) : /* @__PURE__ */ f("a", {
|
|
421
421
|
href: e.href,
|
|
422
|
-
className:
|
|
422
|
+
className: Rn.link,
|
|
423
423
|
children: e.label
|
|
424
424
|
})
|
|
425
425
|
}, r);
|
|
@@ -427,12 +427,12 @@ function Bn({ items: e, "aria-label": t = "Breadcrumb", className: n, "data-test
|
|
|
427
427
|
})
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
var
|
|
430
|
+
var Bn = { card: "_card_b9brq_2" };
|
|
431
431
|
//#endregion
|
|
432
432
|
//#region src/components/Card/Card.tsx
|
|
433
|
-
function
|
|
433
|
+
function Vn({ padding: e = "small", elevation: t = "none", hoverable: n = !1, maxWidth: r, children: i, className: a, style: o, ...s }) {
|
|
434
434
|
return /* @__PURE__ */ f("section", {
|
|
435
|
-
className: [
|
|
435
|
+
className: [Bn.card, a].filter(Boolean).join(" "),
|
|
436
436
|
"data-padding": e,
|
|
437
437
|
"data-elevation": t,
|
|
438
438
|
"data-hoverable": n ? "" : void 0,
|
|
@@ -444,7 +444,7 @@ function Hn({ padding: e = "small", elevation: t = "none", hoverable: n = !1, ma
|
|
|
444
444
|
children: i
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var B = {
|
|
448
448
|
chartWrapper: "_chartWrapper_2djq2_2",
|
|
449
449
|
chartTitle: "_chartTitle_2djq2_7",
|
|
450
450
|
kpiCard: "_kpiCard_2djq2_16",
|
|
@@ -452,7 +452,7 @@ var z = {
|
|
|
452
452
|
kpiValue: "_kpiValue_2djq2_31",
|
|
453
453
|
kpiChange: "_kpiChange_2djq2_38",
|
|
454
454
|
emptyState: "_emptyState_2djq2_55"
|
|
455
|
-
},
|
|
455
|
+
}, Hn = [
|
|
456
456
|
"#ff4235",
|
|
457
457
|
"#2563eb",
|
|
458
458
|
"#16a34a",
|
|
@@ -460,12 +460,12 @@ var z = {
|
|
|
460
460
|
"#7c3aed",
|
|
461
461
|
"#0891b2"
|
|
462
462
|
];
|
|
463
|
-
function
|
|
463
|
+
function Un({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
464
464
|
return e?.length ? /* @__PURE__ */ p("div", {
|
|
465
|
-
className:
|
|
465
|
+
className: B.chartWrapper,
|
|
466
466
|
"data-testid": c,
|
|
467
467
|
children: [i && /* @__PURE__ */ f("div", {
|
|
468
|
-
className:
|
|
468
|
+
className: B.chartTitle,
|
|
469
469
|
children: i
|
|
470
470
|
}), /* @__PURE__ */ f(S, {
|
|
471
471
|
width: "100%",
|
|
@@ -497,7 +497,7 @@ function Wn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
497
497
|
type: "monotone",
|
|
498
498
|
dataKey: e.dataKey,
|
|
499
499
|
name: e.label ?? e.dataKey,
|
|
500
|
-
stroke: e.color ??
|
|
500
|
+
stroke: e.color ?? Hn[t % Hn.length],
|
|
501
501
|
strokeWidth: 2,
|
|
502
502
|
dot: !1,
|
|
503
503
|
activeDot: { r: 4 }
|
|
@@ -506,16 +506,16 @@ function Wn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
506
506
|
})
|
|
507
507
|
})]
|
|
508
508
|
}) : /* @__PURE__ */ f("div", {
|
|
509
|
-
className:
|
|
509
|
+
className: B.emptyState,
|
|
510
510
|
children: "Sin datos"
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Wn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
514
514
|
return e?.length ? /* @__PURE__ */ p("div", {
|
|
515
|
-
className:
|
|
515
|
+
className: B.chartWrapper,
|
|
516
516
|
"data-testid": c,
|
|
517
517
|
children: [i && /* @__PURE__ */ f("div", {
|
|
518
|
-
className:
|
|
518
|
+
className: B.chartTitle,
|
|
519
519
|
children: i
|
|
520
520
|
}), /* @__PURE__ */ f(S, {
|
|
521
521
|
width: "100%",
|
|
@@ -546,7 +546,7 @@ function Gn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
546
546
|
n.map((e, t) => /* @__PURE__ */ f(g, {
|
|
547
547
|
dataKey: e.dataKey,
|
|
548
548
|
name: e.label ?? e.dataKey,
|
|
549
|
-
fill: e.color ??
|
|
549
|
+
fill: e.color ?? Hn[t % Hn.length],
|
|
550
550
|
radius: [
|
|
551
551
|
2,
|
|
552
552
|
2,
|
|
@@ -558,16 +558,16 @@ function Gn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
558
558
|
})
|
|
559
559
|
})]
|
|
560
560
|
}) : /* @__PURE__ */ f("div", {
|
|
561
|
-
className:
|
|
561
|
+
className: B.emptyState,
|
|
562
562
|
children: "Sin datos"
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Gn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a, formatValue: o, hideLegend: s, "data-testid": c }) {
|
|
566
566
|
return e?.length ? /* @__PURE__ */ p("div", {
|
|
567
|
-
className:
|
|
567
|
+
className: B.chartWrapper,
|
|
568
568
|
"data-testid": c,
|
|
569
569
|
children: [i && /* @__PURE__ */ f("div", {
|
|
570
|
-
className:
|
|
570
|
+
className: B.chartTitle,
|
|
571
571
|
children: i
|
|
572
572
|
}), /* @__PURE__ */ f(S, {
|
|
573
573
|
width: "100%",
|
|
@@ -596,7 +596,7 @@ function Kn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
596
596
|
/* @__PURE__ */ f(C, { formatter: o ? (e) => o(e) : void 0 }),
|
|
597
597
|
!s && /* @__PURE__ */ f(y, {}),
|
|
598
598
|
n.map((e, t) => {
|
|
599
|
-
let n = e.color ??
|
|
599
|
+
let n = e.color ?? Hn[t % Hn.length];
|
|
600
600
|
return /* @__PURE__ */ f(m, {
|
|
601
601
|
type: "monotone",
|
|
602
602
|
dataKey: e.dataKey,
|
|
@@ -611,32 +611,32 @@ function Kn({ data: e, xKey: t, series: n, height: r = 300, title: i, formatY: a
|
|
|
611
611
|
})
|
|
612
612
|
})]
|
|
613
613
|
}) : /* @__PURE__ */ f("div", {
|
|
614
|
-
className:
|
|
614
|
+
className: B.emptyState,
|
|
615
615
|
children: "Sin datos"
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Kn({ label: e, value: t, change: n, trend: r = "neutral", "data-testid": i }) {
|
|
619
619
|
return /* @__PURE__ */ p("div", {
|
|
620
|
-
className:
|
|
620
|
+
className: B.kpiCard,
|
|
621
621
|
"data-testid": i,
|
|
622
622
|
children: [
|
|
623
623
|
/* @__PURE__ */ f("div", {
|
|
624
|
-
className:
|
|
624
|
+
className: B.kpiLabel,
|
|
625
625
|
children: e
|
|
626
626
|
}),
|
|
627
627
|
/* @__PURE__ */ f("div", {
|
|
628
|
-
className:
|
|
628
|
+
className: B.kpiValue,
|
|
629
629
|
children: t
|
|
630
630
|
}),
|
|
631
631
|
n && /* @__PURE__ */ f("div", {
|
|
632
|
-
className:
|
|
632
|
+
className: B.kpiChange,
|
|
633
633
|
"data-trend": r,
|
|
634
634
|
children: n
|
|
635
635
|
})
|
|
636
636
|
]
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
var
|
|
639
|
+
var qn = {
|
|
640
640
|
wrapper: "_wrapper_rrvhj_2",
|
|
641
641
|
input: "_input_rrvhj_9",
|
|
642
642
|
checkmark: "_checkmark_rrvhj_27",
|
|
@@ -644,10 +644,10 @@ var Jn = {
|
|
|
644
644
|
};
|
|
645
645
|
//#endregion
|
|
646
646
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
647
|
-
function
|
|
647
|
+
function Jn({ label: e, className: t, id: n, ref: r, "data-testid": i, ...o }) {
|
|
648
648
|
let s = a(), c = String(e ?? ""), l = n ?? (c === "" ? `checkbox-${s}` : `checkbox-${c.toLowerCase().replace(/\s+/g, "-")}`);
|
|
649
649
|
return /* @__PURE__ */ p("label", {
|
|
650
|
-
className: [
|
|
650
|
+
className: [qn.wrapper, t].filter(Boolean).join(" "),
|
|
651
651
|
htmlFor: l,
|
|
652
652
|
"data-testid": i,
|
|
653
653
|
children: [
|
|
@@ -655,21 +655,21 @@ function Yn({ label: e, className: t, id: n, ref: r, "data-testid": i, ...o }) {
|
|
|
655
655
|
ref: r,
|
|
656
656
|
type: "checkbox",
|
|
657
657
|
id: l,
|
|
658
|
-
className:
|
|
658
|
+
className: qn.input,
|
|
659
659
|
...o
|
|
660
660
|
}),
|
|
661
661
|
/* @__PURE__ */ f("span", {
|
|
662
|
-
className:
|
|
662
|
+
className: qn.checkmark,
|
|
663
663
|
"aria-hidden": "true"
|
|
664
664
|
}),
|
|
665
665
|
e && /* @__PURE__ */ f("span", {
|
|
666
|
-
className:
|
|
666
|
+
className: qn.label,
|
|
667
667
|
children: e
|
|
668
668
|
})
|
|
669
669
|
]
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
|
-
var
|
|
672
|
+
var Yn = {
|
|
673
673
|
wrapper: "_wrapper_1b0cf_2",
|
|
674
674
|
icon: "_icon_1b0cf_12",
|
|
675
675
|
"ds-coming-soon-fade-in": "_ds-coming-soon-fade-in_1b0cf_1",
|
|
@@ -677,25 +677,25 @@ var Xn = {
|
|
|
677
677
|
};
|
|
678
678
|
//#endregion
|
|
679
679
|
//#region src/components/ComingSoon/ComingSoon.tsx
|
|
680
|
-
function
|
|
680
|
+
function Xn({ message: e, icon: t = "lock-password-1-outline", className: n, "data-testid": r }) {
|
|
681
681
|
let i = e?.trim() ? e : "Próximamente";
|
|
682
682
|
return /* @__PURE__ */ p("div", {
|
|
683
683
|
role: "status",
|
|
684
684
|
"aria-live": "polite",
|
|
685
|
-
className: [
|
|
685
|
+
className: [Yn.wrapper, n].filter(Boolean).join(" "),
|
|
686
686
|
"data-testid": r,
|
|
687
687
|
children: [/* @__PURE__ */ f(L, {
|
|
688
688
|
name: t,
|
|
689
689
|
size: 40,
|
|
690
690
|
"aria-hidden": "true",
|
|
691
|
-
className:
|
|
691
|
+
className: Yn.icon
|
|
692
692
|
}), /* @__PURE__ */ f("p", {
|
|
693
|
-
className:
|
|
693
|
+
className: Yn.message,
|
|
694
694
|
children: i
|
|
695
695
|
})]
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
var
|
|
698
|
+
var Zn = {
|
|
699
699
|
row: "_row_1qgbi_14",
|
|
700
700
|
labelCol: "_labelCol_1qgbi_63",
|
|
701
701
|
label: "_label_1qgbi_63",
|
|
@@ -704,34 +704,34 @@ var Qn = {
|
|
|
704
704
|
};
|
|
705
705
|
//#endregion
|
|
706
706
|
//#region src/components/ConfigRow/ConfigRow.tsx
|
|
707
|
-
function
|
|
707
|
+
function Qn({ label: e, description: t, children: n, htmlFor: r, dimmed: i = !1, divider: a = !0, labelRatio: o, className: s, "data-testid": c }) {
|
|
708
708
|
let l = r ? "label" : "span", u = o === void 0 ? void 0 : {
|
|
709
709
|
"--ds-config-row-label-basis": `${o}%`,
|
|
710
710
|
"--ds-config-row-control-basis": `${100 - o}%`
|
|
711
711
|
};
|
|
712
712
|
return /* @__PURE__ */ p("div", {
|
|
713
|
-
className: [
|
|
713
|
+
className: [Zn.row, s].filter(Boolean).join(" "),
|
|
714
714
|
style: u,
|
|
715
715
|
"data-dimmed": i || void 0,
|
|
716
716
|
"data-divider": a || void 0,
|
|
717
717
|
"data-testid": c,
|
|
718
718
|
children: [/* @__PURE__ */ p("div", {
|
|
719
|
-
className:
|
|
719
|
+
className: Zn.labelCol,
|
|
720
720
|
children: [/* @__PURE__ */ f(l, {
|
|
721
721
|
htmlFor: r,
|
|
722
|
-
className:
|
|
722
|
+
className: Zn.label,
|
|
723
723
|
children: e
|
|
724
724
|
}), t && /* @__PURE__ */ f("span", {
|
|
725
|
-
className:
|
|
725
|
+
className: Zn.description,
|
|
726
726
|
children: t
|
|
727
727
|
})]
|
|
728
728
|
}), /* @__PURE__ */ f("div", {
|
|
729
|
-
className:
|
|
729
|
+
className: Zn.controlCol,
|
|
730
730
|
children: n
|
|
731
731
|
})]
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
var
|
|
734
|
+
var V = {
|
|
735
735
|
wrapper: "_wrapper_tpq1y_2",
|
|
736
736
|
search: "_search_tpq1y_12",
|
|
737
737
|
tableContainer: "_tableContainer_tpq1y_28",
|
|
@@ -752,19 +752,20 @@ var B = {
|
|
|
752
752
|
};
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region src/components/DataTable/DataTable.tsx
|
|
755
|
-
function
|
|
755
|
+
function $n(e) {
|
|
756
756
|
let t = e.getIsSorted();
|
|
757
757
|
if (t === "asc") return "ascending";
|
|
758
758
|
if (t === "desc") return "descending";
|
|
759
759
|
if (e.getCanSort()) return "none";
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function er(e) {
|
|
762
762
|
let t = e.columnDef.header;
|
|
763
763
|
return typeof t == "string" ? t : e.id;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function tr(e, t, n) {
|
|
766
766
|
return String(e.getValue(t) ?? "").toLowerCase().includes(String(n).toLowerCase());
|
|
767
767
|
}
|
|
768
|
+
var nr = [];
|
|
768
769
|
function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize: a = 20, searchable: o = !1, sortable: s = !0, paginated: d = !0, emptyMessage: m = "Sin resultados", searchPlaceholder: h = "Buscar...", filterable: g = !1, filterPlaceholder: _ = "Filtrar...", clearFiltersLabel: v = "Limpiar filtros", onColumnFiltersChange: y, previousLabel: b = "Anterior", nextLabel: x = "Siguiente", onRowClick: S, selectable: C = !1, onSelectionChange: w, manualPagination: T = !1, pageCount: M, onPageChange: N, "data-testid": ee }) {
|
|
769
770
|
let [te, ne] = u([]), [re, ie] = u(""), [ae, oe] = u({
|
|
770
771
|
pageIndex: 0,
|
|
@@ -775,12 +776,12 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
775
776
|
id: "__select__",
|
|
776
777
|
size: 40,
|
|
777
778
|
enableSorting: !1,
|
|
778
|
-
header: ({ table: e }) => /* @__PURE__ */ f(
|
|
779
|
+
header: ({ table: e }) => /* @__PURE__ */ f(Jn, {
|
|
779
780
|
checked: e.getIsAllPageRowsSelected(),
|
|
780
781
|
onChange: e.getToggleAllPageRowsSelectedHandler(),
|
|
781
782
|
"aria-label": "Select all rows"
|
|
782
783
|
}),
|
|
783
|
-
cell: ({ row: e }) => /* @__PURE__ */ f(
|
|
784
|
+
cell: ({ row: e }) => /* @__PURE__ */ f(Jn, {
|
|
784
785
|
checked: e.getIsSelected(),
|
|
785
786
|
onChange: e.getToggleSelectedHandler(),
|
|
786
787
|
"aria-label": `Select row ${e.index + 1}`
|
|
@@ -788,7 +789,7 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
788
789
|
}), []), F = c(() => {
|
|
789
790
|
let e = g ? t.map((e) => e.filterFn ? e : {
|
|
790
791
|
...e,
|
|
791
|
-
filterFn:
|
|
792
|
+
filterFn: tr
|
|
792
793
|
}) : t;
|
|
793
794
|
return C ? [pe, ...e] : e;
|
|
794
795
|
}, [
|
|
@@ -804,7 +805,7 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
804
805
|
globalFilter: re,
|
|
805
806
|
pagination: ae,
|
|
806
807
|
rowSelection: se,
|
|
807
|
-
columnFilters: g ? P :
|
|
808
|
+
columnFilters: g ? P : nr
|
|
808
809
|
},
|
|
809
810
|
onSortingChange: ne,
|
|
810
811
|
onGlobalFilterChange: ie,
|
|
@@ -844,36 +845,36 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
844
845
|
}, [P, y]), i(() => {
|
|
845
846
|
process.env.NODE_ENV === "production" || de.current || !g || !T || (de.current = !0, console.warn("[DataTable] `filterable` with `manualPagination` filters only the rows of the current page, presenting a partial result as complete. Filter server-side, or drop `manualPagination`."));
|
|
846
847
|
}, [g, T]), n ? /* @__PURE__ */ f("div", {
|
|
847
|
-
className:
|
|
848
|
+
className: V.loading,
|
|
848
849
|
children: r ?? /* @__PURE__ */ f(On, { size: "large" })
|
|
849
850
|
}) : /* @__PURE__ */ p("div", {
|
|
850
|
-
className:
|
|
851
|
+
className: V.wrapper,
|
|
851
852
|
"data-testid": ee,
|
|
852
853
|
children: [
|
|
853
854
|
(o || g && P.length > 0) && /* @__PURE__ */ p("div", {
|
|
854
|
-
className:
|
|
855
|
+
className: V.toolbar,
|
|
855
856
|
children: [o && /* @__PURE__ */ f("input", {
|
|
856
857
|
type: "text",
|
|
857
|
-
className:
|
|
858
|
+
className: V.search,
|
|
858
859
|
placeholder: h,
|
|
859
860
|
value: re,
|
|
860
861
|
onChange: (e) => ie(e.target.value)
|
|
861
862
|
}), g && P.length > 0 && /* @__PURE__ */ f("button", {
|
|
862
863
|
type: "button",
|
|
863
|
-
className:
|
|
864
|
+
className: V.clearFilters,
|
|
864
865
|
onClick: fe,
|
|
865
866
|
children: v
|
|
866
867
|
})]
|
|
867
868
|
}),
|
|
868
869
|
/* @__PURE__ */ f("div", {
|
|
869
|
-
className:
|
|
870
|
+
className: V.tableContainer,
|
|
870
871
|
children: /* @__PURE__ */ p("table", {
|
|
871
|
-
className:
|
|
872
|
+
className: V.table,
|
|
872
873
|
children: [/* @__PURE__ */ p("thead", { children: [I.getHeaderGroups().map((e) => /* @__PURE__ */ f("tr", { children: e.headers.map((e) => /* @__PURE__ */ p("th", {
|
|
873
|
-
className:
|
|
874
|
+
className: V.th,
|
|
874
875
|
"data-sortable": e.column.getCanSort() || void 0,
|
|
875
876
|
onClick: e.column.getToggleSortingHandler(),
|
|
876
|
-
"aria-sort":
|
|
877
|
+
"aria-sort": $n(e.column),
|
|
877
878
|
children: [
|
|
878
879
|
E(e.column.columnDef.header, e.getContext()),
|
|
879
880
|
e.column.getIsSorted() === "asc" && " ▲",
|
|
@@ -881,24 +882,24 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
881
882
|
]
|
|
882
883
|
}, e.id)) }, e.id)), g && /* @__PURE__ */ f("tr", {
|
|
883
884
|
ref: ue,
|
|
884
|
-
className:
|
|
885
|
+
className: V.filterRow,
|
|
885
886
|
children: I.getVisibleLeafColumns().map((e) => /* @__PURE__ */ f("td", {
|
|
886
|
-
className:
|
|
887
|
+
className: V.filterCell,
|
|
887
888
|
children: e.getCanFilter() && /* @__PURE__ */ f("input", {
|
|
888
889
|
type: "text",
|
|
889
|
-
className:
|
|
890
|
+
className: V.filterInput,
|
|
890
891
|
placeholder: _,
|
|
891
|
-
"aria-label": `Filtrar por ${
|
|
892
|
+
"aria-label": `Filtrar por ${er(e)}`,
|
|
892
893
|
value: e.getFilterValue() ?? "",
|
|
893
894
|
onChange: (t) => e.setFilterValue(t.target.value)
|
|
894
895
|
})
|
|
895
896
|
}, e.id))
|
|
896
897
|
})] }), /* @__PURE__ */ f("tbody", { children: I.getRowModel().rows.length === 0 ? /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f("td", {
|
|
897
898
|
colSpan: F.length,
|
|
898
|
-
className:
|
|
899
|
+
className: V.empty,
|
|
899
900
|
children: m
|
|
900
901
|
}) }) : I.getRowModel().rows.map((e) => /* @__PURE__ */ f("tr", {
|
|
901
|
-
className:
|
|
902
|
+
className: V.tr,
|
|
902
903
|
"data-clickable": !!S || void 0,
|
|
903
904
|
"data-selected": e.getIsSelected() || void 0,
|
|
904
905
|
onClick: () => S?.(e.original),
|
|
@@ -908,24 +909,24 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
908
909
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), S(e.original));
|
|
909
910
|
} : void 0,
|
|
910
911
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ f("td", {
|
|
911
|
-
className:
|
|
912
|
+
className: V.td,
|
|
912
913
|
children: E(e.column.columnDef.cell, e.getContext())
|
|
913
914
|
}, e.id))
|
|
914
915
|
}, e.id)) })]
|
|
915
916
|
})
|
|
916
917
|
}),
|
|
917
918
|
d && (T ? (M ?? 0) > 1 : I.getPageCount() > 1) && /* @__PURE__ */ p("div", {
|
|
918
|
-
className:
|
|
919
|
+
className: V.pagination,
|
|
919
920
|
children: [
|
|
920
921
|
/* @__PURE__ */ f("button", {
|
|
921
922
|
type: "button",
|
|
922
|
-
className:
|
|
923
|
+
className: V.pageButton,
|
|
923
924
|
onClick: () => I.previousPage(),
|
|
924
925
|
disabled: !I.getCanPreviousPage(),
|
|
925
926
|
children: b
|
|
926
927
|
}),
|
|
927
928
|
/* @__PURE__ */ p("span", {
|
|
928
|
-
className:
|
|
929
|
+
className: V.pageInfo,
|
|
929
930
|
children: [
|
|
930
931
|
I.getState().pagination.pageIndex + 1,
|
|
931
932
|
" /",
|
|
@@ -935,7 +936,7 @@ function rr({ data: e, columns: t, isLoading: n = !1, loadingSlot: r, pageSize:
|
|
|
935
936
|
}),
|
|
936
937
|
/* @__PURE__ */ f("button", {
|
|
937
938
|
type: "button",
|
|
938
|
-
className:
|
|
939
|
+
className: V.pageButton,
|
|
939
940
|
onClick: () => I.nextPage(),
|
|
940
941
|
disabled: !I.getCanNextPage(),
|
|
941
942
|
children: x
|
|
@@ -955,7 +956,7 @@ var ir = {
|
|
|
955
956
|
function ar({ error: e, label: t, className: n, id: r, ref: i, "data-testid": o, ...s }) {
|
|
956
957
|
let c = a(), l = r ?? c;
|
|
957
958
|
return /* @__PURE__ */ p("div", {
|
|
958
|
-
className:
|
|
959
|
+
className: z(ir.wrapper, n),
|
|
959
960
|
"data-testid": o,
|
|
960
961
|
children: [t && /* @__PURE__ */ f("label", {
|
|
961
962
|
htmlFor: l,
|
|
@@ -972,7 +973,7 @@ function ar({ error: e, label: t, className: n, id: r, ref: i, "data-testid": o,
|
|
|
972
973
|
})]
|
|
973
974
|
});
|
|
974
975
|
}
|
|
975
|
-
var
|
|
976
|
+
var H = {
|
|
976
977
|
wrapper: "_wrapper_18zqm_2",
|
|
977
978
|
field: "_field_18zqm_8",
|
|
978
979
|
label: "_label_18zqm_15",
|
|
@@ -984,19 +985,19 @@ var V = {
|
|
|
984
985
|
function or({ startDate: e = "", endDate: t = "", onStartChange: n, onEndChange: r, startLabel: i = "Desde", endLabel: o = "Hasta", error: s, disabled: c, minDate: l, maxDate: u, className: d, "data-testid": m }) {
|
|
985
986
|
let h = a(), g = a();
|
|
986
987
|
return /* @__PURE__ */ p("div", {
|
|
987
|
-
className:
|
|
988
|
+
className: z(H.wrapper, d),
|
|
988
989
|
"data-testid": m,
|
|
989
990
|
children: [
|
|
990
991
|
/* @__PURE__ */ p("div", {
|
|
991
|
-
className:
|
|
992
|
+
className: H.field,
|
|
992
993
|
children: [/* @__PURE__ */ f("label", {
|
|
993
994
|
htmlFor: h,
|
|
994
|
-
className:
|
|
995
|
+
className: H.label,
|
|
995
996
|
children: i
|
|
996
997
|
}), /* @__PURE__ */ f("input", {
|
|
997
998
|
id: h,
|
|
998
999
|
type: "date",
|
|
999
|
-
className:
|
|
1000
|
+
className: H.input,
|
|
1000
1001
|
value: e,
|
|
1001
1002
|
min: l,
|
|
1002
1003
|
max: t || u,
|
|
@@ -1007,20 +1008,20 @@ function or({ startDate: e = "", endDate: t = "", onStartChange: n, onEndChange:
|
|
|
1007
1008
|
})]
|
|
1008
1009
|
}),
|
|
1009
1010
|
/* @__PURE__ */ f("span", {
|
|
1010
|
-
className:
|
|
1011
|
+
className: H.separator,
|
|
1011
1012
|
"aria-hidden": "true",
|
|
1012
1013
|
children: "—"
|
|
1013
1014
|
}),
|
|
1014
1015
|
/* @__PURE__ */ p("div", {
|
|
1015
|
-
className:
|
|
1016
|
+
className: H.field,
|
|
1016
1017
|
children: [/* @__PURE__ */ f("label", {
|
|
1017
1018
|
htmlFor: g,
|
|
1018
|
-
className:
|
|
1019
|
+
className: H.label,
|
|
1019
1020
|
children: o
|
|
1020
1021
|
}), /* @__PURE__ */ f("input", {
|
|
1021
1022
|
id: g,
|
|
1022
1023
|
type: "date",
|
|
1023
|
-
className:
|
|
1024
|
+
className: H.input,
|
|
1024
1025
|
value: t,
|
|
1025
1026
|
min: e || l,
|
|
1026
1027
|
max: u,
|
|
@@ -1074,7 +1075,7 @@ var ur = { closeButton: "_closeButton_drwqj_8" };
|
|
|
1074
1075
|
function dr({ onClick: e, label: t = "Cerrar", size: n = 20, className: r, "data-testid": i }) {
|
|
1075
1076
|
return /* @__PURE__ */ f("button", {
|
|
1076
1077
|
type: "button",
|
|
1077
|
-
className:
|
|
1078
|
+
className: z(ur.closeButton, r),
|
|
1078
1079
|
onClick: e,
|
|
1079
1080
|
"aria-label": t,
|
|
1080
1081
|
"data-testid": i,
|
|
@@ -1223,7 +1224,7 @@ function mr(e = {}) {
|
|
|
1223
1224
|
function hr(e, t) {
|
|
1224
1225
|
return M(e, t ?? document.body);
|
|
1225
1226
|
}
|
|
1226
|
-
var
|
|
1227
|
+
var U = {
|
|
1227
1228
|
root: "_root_139kr_2",
|
|
1228
1229
|
trigger: "_trigger_139kr_7",
|
|
1229
1230
|
triggerText: "_triggerText_139kr_36",
|
|
@@ -1300,7 +1301,7 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1300
1301
|
let E = gr[n];
|
|
1301
1302
|
return /* @__PURE__ */ p("div", {
|
|
1302
1303
|
ref: h,
|
|
1303
|
-
className:
|
|
1304
|
+
className: U.root,
|
|
1304
1305
|
"data-size": n,
|
|
1305
1306
|
"data-variant": r,
|
|
1306
1307
|
"data-open": m || void 0,
|
|
@@ -1309,7 +1310,7 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1309
1310
|
children: [/* @__PURE__ */ p("button", {
|
|
1310
1311
|
ref: g,
|
|
1311
1312
|
type: "button",
|
|
1312
|
-
className:
|
|
1313
|
+
className: U.trigger,
|
|
1313
1314
|
disabled: a,
|
|
1314
1315
|
"aria-expanded": m,
|
|
1315
1316
|
"aria-haspopup": "listbox",
|
|
@@ -1317,15 +1318,15 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1317
1318
|
onKeyDown: x,
|
|
1318
1319
|
children: [
|
|
1319
1320
|
/* @__PURE__ */ f("span", {
|
|
1320
|
-
className:
|
|
1321
|
+
className: U.triggerText,
|
|
1321
1322
|
children: e
|
|
1322
1323
|
}),
|
|
1323
1324
|
/* @__PURE__ */ f("span", {
|
|
1324
|
-
className:
|
|
1325
|
+
className: U.separator,
|
|
1325
1326
|
"aria-hidden": "true"
|
|
1326
1327
|
}),
|
|
1327
1328
|
/* @__PURE__ */ f("span", {
|
|
1328
|
-
className:
|
|
1329
|
+
className: U.iconWrapper,
|
|
1329
1330
|
children: /* @__PURE__ */ f(L, {
|
|
1330
1331
|
name: "chevron-down-outline",
|
|
1331
1332
|
size: E,
|
|
@@ -1335,7 +1336,7 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1335
1336
|
]
|
|
1336
1337
|
}), m && hr(/* @__PURE__ */ f("div", {
|
|
1337
1338
|
ref: _,
|
|
1338
|
-
className:
|
|
1339
|
+
className: z("tot-ds-root", U.menu),
|
|
1339
1340
|
"data-theme": w || void 0,
|
|
1340
1341
|
role: "listbox",
|
|
1341
1342
|
"aria-label": `${e} options`,
|
|
@@ -1346,7 +1347,7 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1346
1347
|
visibility: "visible"
|
|
1347
1348
|
} : { visibility: "hidden" },
|
|
1348
1349
|
children: t.map((e, t) => /* @__PURE__ */ p("div", {
|
|
1349
|
-
className:
|
|
1350
|
+
className: U.menuItem,
|
|
1350
1351
|
"data-focused": v === t || void 0,
|
|
1351
1352
|
"data-disabled": e.disabled || void 0,
|
|
1352
1353
|
role: "option",
|
|
@@ -1360,9 +1361,9 @@ function br({ text: e, menuItems: t, size: n = "medium", variant: r = "primary",
|
|
|
1360
1361
|
name: e.icon,
|
|
1361
1362
|
size: E,
|
|
1362
1363
|
"aria-hidden": "true",
|
|
1363
|
-
className:
|
|
1364
|
+
className: U.menuIcon
|
|
1364
1365
|
}), /* @__PURE__ */ f("span", {
|
|
1365
|
-
className:
|
|
1366
|
+
className: U.menuLabel,
|
|
1366
1367
|
children: e.label
|
|
1367
1368
|
})]
|
|
1368
1369
|
}, e.value))
|
|
@@ -1523,7 +1524,7 @@ function kr({ imageSrc: e, width: t = 40, height: n = 40, alt: r = "Image withou
|
|
|
1523
1524
|
]
|
|
1524
1525
|
});
|
|
1525
1526
|
}
|
|
1526
|
-
var
|
|
1527
|
+
var W = {
|
|
1527
1528
|
container: "_container_10rwp_2",
|
|
1528
1529
|
previewGrid: "_previewGrid_10rwp_10",
|
|
1529
1530
|
previewBtn: "_previewBtn_10rwp_18",
|
|
@@ -1629,14 +1630,14 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1629
1630
|
o === void 0 && C(n), m?.(n), t && d?.(t);
|
|
1630
1631
|
}
|
|
1631
1632
|
return /* @__PURE__ */ p("div", {
|
|
1632
|
-
className: [
|
|
1633
|
+
className: [W.container, h].filter(Boolean).join(" "),
|
|
1633
1634
|
"data-testid": g,
|
|
1634
1635
|
children: [
|
|
1635
1636
|
r && w.length > 0 && /* @__PURE__ */ f("div", {
|
|
1636
|
-
className:
|
|
1637
|
+
className: W.previewGrid,
|
|
1637
1638
|
children: w.map((e, t) => /* @__PURE__ */ p("button", {
|
|
1638
1639
|
type: "button",
|
|
1639
|
-
className:
|
|
1640
|
+
className: W.previewBtn,
|
|
1640
1641
|
onClick: () => j(t),
|
|
1641
1642
|
children: [/* @__PURE__ */ f(kr, {
|
|
1642
1643
|
imageSrc: e.preview,
|
|
@@ -1653,7 +1654,7 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1653
1654
|
}),
|
|
1654
1655
|
/* @__PURE__ */ p("button", {
|
|
1655
1656
|
type: "button",
|
|
1656
|
-
className:
|
|
1657
|
+
className: W.zone,
|
|
1657
1658
|
"data-dragging": v ? "" : void 0,
|
|
1658
1659
|
"data-processing": b ? "" : void 0,
|
|
1659
1660
|
"aria-label": e,
|
|
@@ -1681,7 +1682,7 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1681
1682
|
/* @__PURE__ */ f("input", {
|
|
1682
1683
|
ref: _,
|
|
1683
1684
|
type: "file",
|
|
1684
|
-
className:
|
|
1685
|
+
className: W.input,
|
|
1685
1686
|
multiple: n,
|
|
1686
1687
|
accept: D,
|
|
1687
1688
|
tabIndex: -1,
|
|
@@ -1692,11 +1693,11 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1692
1693
|
}
|
|
1693
1694
|
}),
|
|
1694
1695
|
/* @__PURE__ */ f("strong", {
|
|
1695
|
-
className:
|
|
1696
|
+
className: W.zoneLabel,
|
|
1696
1697
|
children: e
|
|
1697
1698
|
}),
|
|
1698
1699
|
/* @__PURE__ */ p("p", {
|
|
1699
|
-
className:
|
|
1700
|
+
className: W.description,
|
|
1700
1701
|
children: [
|
|
1701
1702
|
"(",
|
|
1702
1703
|
E.join(", "),
|
|
@@ -1706,8 +1707,8 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1706
1707
|
]
|
|
1707
1708
|
}),
|
|
1708
1709
|
T && /* @__PURE__ */ f("div", {
|
|
1709
|
-
className:
|
|
1710
|
-
children: w.map((e, t) => /* @__PURE__ */ f(
|
|
1710
|
+
className: W.fileList,
|
|
1711
|
+
children: w.map((e, t) => /* @__PURE__ */ f(R, {
|
|
1711
1712
|
variant: "outline",
|
|
1712
1713
|
size: "small",
|
|
1713
1714
|
onClick: () => j(t),
|
|
@@ -1721,7 +1722,7 @@ function Fr({ label: e = "Haz click o arrastra un archivo para subir", allowedFi
|
|
|
1721
1722
|
//#region src/components/DsProvider/DsProvider.tsx
|
|
1722
1723
|
function Ir({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
1723
1724
|
return /* @__PURE__ */ f("div", {
|
|
1724
|
-
className:
|
|
1725
|
+
className: z("tot-ds-root", n),
|
|
1725
1726
|
"data-theme": e,
|
|
1726
1727
|
"data-testid": r,
|
|
1727
1728
|
children: t
|
|
@@ -1743,7 +1744,7 @@ function Rr({ message: e, action: t, "data-testid": n }) {
|
|
|
1743
1744
|
}), t]
|
|
1744
1745
|
});
|
|
1745
1746
|
}
|
|
1746
|
-
var
|
|
1747
|
+
var G = {
|
|
1747
1748
|
errorContainer: "_errorContainer_1tgia_2",
|
|
1748
1749
|
errorCard: "_errorCard_1tgia_10",
|
|
1749
1750
|
icon: "_icon_1tgia_19",
|
|
@@ -1778,10 +1779,10 @@ var W = {
|
|
|
1778
1779
|
let { hasError: e, error: t } = this.state, { children: n, fallback: r } = this.props, i = this.props["data-testid"];
|
|
1779
1780
|
return e && t ? typeof r == "function" ? r(t, this.handleRetry) : r || /* @__PURE__ */ f("div", {
|
|
1780
1781
|
role: "alert",
|
|
1781
|
-
className:
|
|
1782
|
+
className: G.errorContainer,
|
|
1782
1783
|
"data-testid": i,
|
|
1783
1784
|
children: /* @__PURE__ */ p("div", {
|
|
1784
|
-
className:
|
|
1785
|
+
className: G.errorCard,
|
|
1785
1786
|
children: [
|
|
1786
1787
|
/* @__PURE__ */ p("svg", {
|
|
1787
1788
|
width: "48",
|
|
@@ -1792,7 +1793,7 @@ var W = {
|
|
|
1792
1793
|
strokeWidth: "1.5",
|
|
1793
1794
|
strokeLinecap: "round",
|
|
1794
1795
|
strokeLinejoin: "round",
|
|
1795
|
-
className:
|
|
1796
|
+
className: G.icon,
|
|
1796
1797
|
"aria-hidden": "true",
|
|
1797
1798
|
children: [
|
|
1798
1799
|
/* @__PURE__ */ f("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
@@ -1801,23 +1802,23 @@ var W = {
|
|
|
1801
1802
|
]
|
|
1802
1803
|
}),
|
|
1803
1804
|
/* @__PURE__ */ f("h2", {
|
|
1804
|
-
className:
|
|
1805
|
+
className: G.title,
|
|
1805
1806
|
children: "Algo salió mal"
|
|
1806
1807
|
}),
|
|
1807
1808
|
/* @__PURE__ */ f("p", {
|
|
1808
|
-
className:
|
|
1809
|
+
className: G.message,
|
|
1809
1810
|
children: "Ha ocurrido un error inesperado. Por favor intenta de nuevo."
|
|
1810
1811
|
}),
|
|
1811
1812
|
process.env.NODE_ENV !== "production" && /* @__PURE__ */ p("details", {
|
|
1812
|
-
className:
|
|
1813
|
+
className: G.details,
|
|
1813
1814
|
children: [/* @__PURE__ */ f("summary", { children: "Detalle del error" }), /* @__PURE__ */ f("pre", {
|
|
1814
|
-
className:
|
|
1815
|
+
className: G.stack,
|
|
1815
1816
|
children: t.message
|
|
1816
1817
|
})]
|
|
1817
1818
|
}),
|
|
1818
1819
|
/* @__PURE__ */ f("button", {
|
|
1819
1820
|
type: "button",
|
|
1820
|
-
className:
|
|
1821
|
+
className: G.retryButton,
|
|
1821
1822
|
onClick: this.handleRetry,
|
|
1822
1823
|
children: "Intentar de nuevo"
|
|
1823
1824
|
})
|
|
@@ -1825,7 +1826,7 @@ var W = {
|
|
|
1825
1826
|
})
|
|
1826
1827
|
}) : n;
|
|
1827
1828
|
}
|
|
1828
|
-
},
|
|
1829
|
+
}, K = {
|
|
1829
1830
|
content: "_content_wq4ph_2",
|
|
1830
1831
|
category: "_category_wq4ph_8",
|
|
1831
1832
|
categoryName: "_categoryName_wq4ph_15",
|
|
@@ -1870,40 +1871,40 @@ function Br({ open: e, onClose: t, onConfirm: n, categories: r, productName: i,
|
|
|
1870
1871
|
size: "large",
|
|
1871
1872
|
"data-testid": a,
|
|
1872
1873
|
children: /* @__PURE__ */ p("div", {
|
|
1873
|
-
className:
|
|
1874
|
+
className: K.content,
|
|
1874
1875
|
children: [r.map((e) => /* @__PURE__ */ p("fieldset", {
|
|
1875
|
-
className:
|
|
1876
|
+
className: K.category,
|
|
1876
1877
|
children: [/* @__PURE__ */ p("legend", {
|
|
1877
|
-
className:
|
|
1878
|
+
className: K.categoryName,
|
|
1878
1879
|
children: [e.name, /* @__PURE__ */ f("span", {
|
|
1879
|
-
className:
|
|
1880
|
+
className: K.categoryHint,
|
|
1880
1881
|
children: e.selectionType === "single" ? "Elige 1" : `Máx. ${e.maxSelections}`
|
|
1881
1882
|
})]
|
|
1882
1883
|
}), /* @__PURE__ */ f("div", {
|
|
1883
|
-
className:
|
|
1884
|
+
className: K.options,
|
|
1884
1885
|
children: e.products.map((t) => {
|
|
1885
1886
|
let n = (o.get(e.id) ?? []).some((e) => e.productId === t.productId);
|
|
1886
1887
|
return /* @__PURE__ */ p("button", {
|
|
1887
1888
|
type: "button",
|
|
1888
|
-
className:
|
|
1889
|
+
className: K.option,
|
|
1889
1890
|
"data-selected": n ? "" : void 0,
|
|
1890
1891
|
"aria-pressed": n,
|
|
1891
1892
|
disabled: !t.inStock,
|
|
1892
1893
|
onClick: () => c(e.id, t.productId, e.selectionType, e.maxSelections),
|
|
1893
1894
|
children: [/* @__PURE__ */ f("span", { children: t.name }), t.price > 0 && /* @__PURE__ */ p("span", {
|
|
1894
|
-
className:
|
|
1895
|
+
className: K.extraPrice,
|
|
1895
1896
|
children: ["+$", t.price]
|
|
1896
1897
|
})]
|
|
1897
1898
|
}, t.productId);
|
|
1898
1899
|
})
|
|
1899
1900
|
})]
|
|
1900
1901
|
}, e.id)), /* @__PURE__ */ p("div", {
|
|
1901
|
-
className:
|
|
1902
|
-
children: [/* @__PURE__ */ f(
|
|
1902
|
+
className: K.actions,
|
|
1903
|
+
children: [/* @__PURE__ */ f(R, {
|
|
1903
1904
|
variant: "ghost",
|
|
1904
1905
|
onClick: m,
|
|
1905
1906
|
children: "Cancelar"
|
|
1906
|
-
}), /* @__PURE__ */ p(
|
|
1907
|
+
}), /* @__PURE__ */ p(R, {
|
|
1907
1908
|
variant: "primary",
|
|
1908
1909
|
onClick: d,
|
|
1909
1910
|
children: ["Agregar ", l.length > 0 ? `(${l.length})` : ""]
|
|
@@ -1962,7 +1963,7 @@ function Wr({ onSignIn: e, isPending: t = !1, isError: n = !1, error: r, "data-t
|
|
|
1962
1963
|
return /* @__PURE__ */ p("div", {
|
|
1963
1964
|
className: Ur.wrapper,
|
|
1964
1965
|
"data-testid": i,
|
|
1965
|
-
children: [/* @__PURE__ */ p(
|
|
1966
|
+
children: [/* @__PURE__ */ p(R, {
|
|
1966
1967
|
type: "button",
|
|
1967
1968
|
variant: "outline",
|
|
1968
1969
|
size: "small",
|
|
@@ -2107,7 +2108,7 @@ function ci({ mode: e = "complete", variant: t = "original", width: n, height: r
|
|
|
2107
2108
|
dangerouslySetInnerHTML: { __html: l }
|
|
2108
2109
|
});
|
|
2109
2110
|
}
|
|
2110
|
-
var
|
|
2111
|
+
var q = {
|
|
2111
2112
|
multiselect: "_multiselect_jb72r_2",
|
|
2112
2113
|
trigger: "_trigger_jb72r_10",
|
|
2113
2114
|
placeholder: "_placeholder_jb72r_42",
|
|
@@ -2148,26 +2149,26 @@ function ui({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2148
2149
|
let T = (e) => n([...t, e]), E = (e) => n(t.filter((t) => t !== e));
|
|
2149
2150
|
return /* @__PURE__ */ p("div", {
|
|
2150
2151
|
ref: y,
|
|
2151
|
-
className:
|
|
2152
|
+
className: q.multiselect,
|
|
2152
2153
|
"data-error": l || void 0,
|
|
2153
2154
|
"data-disabled": c || void 0,
|
|
2154
2155
|
"data-testid": d,
|
|
2155
2156
|
children: [/* @__PURE__ */ p("button", {
|
|
2156
2157
|
ref: b,
|
|
2157
2158
|
type: "button",
|
|
2158
|
-
className:
|
|
2159
|
+
className: q.trigger,
|
|
2159
2160
|
onClick: x,
|
|
2160
2161
|
"aria-haspopup": "listbox",
|
|
2161
2162
|
"aria-expanded": v,
|
|
2162
2163
|
disabled: c,
|
|
2163
2164
|
children: [C.length === 0 && /* @__PURE__ */ f("span", {
|
|
2164
|
-
className:
|
|
2165
|
+
className: q.placeholder,
|
|
2165
2166
|
children: r
|
|
2166
2167
|
}), C.map((e) => /* @__PURE__ */ p("span", {
|
|
2167
|
-
className:
|
|
2168
|
+
className: q.tag,
|
|
2168
2169
|
children: [e.label, /* @__PURE__ */ f("button", {
|
|
2169
2170
|
type: "button",
|
|
2170
|
-
className:
|
|
2171
|
+
className: q.tagRemove,
|
|
2171
2172
|
onClick: (t) => {
|
|
2172
2173
|
t.stopPropagation(), E(e.value);
|
|
2173
2174
|
},
|
|
@@ -2176,31 +2177,31 @@ function ui({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2176
2177
|
})]
|
|
2177
2178
|
}, e.value))]
|
|
2178
2179
|
}), v && /* @__PURE__ */ p("div", {
|
|
2179
|
-
className:
|
|
2180
|
+
className: q.dropdown,
|
|
2180
2181
|
role: "listbox",
|
|
2181
2182
|
"aria-multiselectable": "true",
|
|
2182
2183
|
"data-upward": m || void 0,
|
|
2183
2184
|
children: [/* @__PURE__ */ f("input", {
|
|
2184
2185
|
type: "text",
|
|
2185
|
-
className:
|
|
2186
|
+
className: q.search,
|
|
2186
2187
|
placeholder: a,
|
|
2187
2188
|
"aria-label": a,
|
|
2188
2189
|
value: g,
|
|
2189
2190
|
onChange: (e) => _(e.target.value),
|
|
2190
2191
|
autoFocus: !0
|
|
2191
2192
|
}), /* @__PURE__ */ p("div", {
|
|
2192
|
-
className:
|
|
2193
|
+
className: q.optionsList,
|
|
2193
2194
|
children: [w.map((e) => /* @__PURE__ */ f("button", {
|
|
2194
2195
|
type: "button",
|
|
2195
2196
|
role: "option",
|
|
2196
2197
|
"aria-selected": t.includes(e.value),
|
|
2197
|
-
className:
|
|
2198
|
+
className: q.option,
|
|
2198
2199
|
onClick: () => {
|
|
2199
2200
|
T(e.value), _("");
|
|
2200
2201
|
},
|
|
2201
2202
|
children: e.label
|
|
2202
2203
|
}, e.value)), w.length === 0 && /* @__PURE__ */ f("div", {
|
|
2203
|
-
className:
|
|
2204
|
+
className: q.noResults,
|
|
2204
2205
|
children: o
|
|
2205
2206
|
})]
|
|
2206
2207
|
})]
|
|
@@ -2269,7 +2270,7 @@ function gi({ isOpen: e, onClose: t, mode: n = "overlay", isPinLocked: r = !1, i
|
|
|
2269
2270
|
children: o
|
|
2270
2271
|
})] });
|
|
2271
2272
|
}
|
|
2272
|
-
var
|
|
2273
|
+
var J = {
|
|
2273
2274
|
navbar: "_navbar_5wth4_2",
|
|
2274
2275
|
navLeft: "_navLeft_5wth4_16",
|
|
2275
2276
|
menuButton: "_menuButton_5wth4_27",
|
|
@@ -2285,14 +2286,14 @@ var q = {
|
|
|
2285
2286
|
//#region src/components/NavBar/NavBar.tsx
|
|
2286
2287
|
function _i({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle: r, isMenuOpen: i = !1, isLoading: a = !1, isPinLocked: o = !1, rightSlot: s, "data-testid": c }) {
|
|
2287
2288
|
return o ? null : /* @__PURE__ */ p("header", {
|
|
2288
|
-
className:
|
|
2289
|
+
className: J.navbar,
|
|
2289
2290
|
"data-testid": c,
|
|
2290
2291
|
children: [
|
|
2291
2292
|
/* @__PURE__ */ p("div", {
|
|
2292
|
-
className:
|
|
2293
|
+
className: J.navLeft,
|
|
2293
2294
|
children: [/* @__PURE__ */ f("button", {
|
|
2294
2295
|
type: "button",
|
|
2295
|
-
className:
|
|
2296
|
+
className: J.menuButton,
|
|
2296
2297
|
onClick: t,
|
|
2297
2298
|
"aria-label": i ? "Cerrar menú" : "Abrir menú",
|
|
2298
2299
|
"aria-expanded": i,
|
|
@@ -2307,31 +2308,31 @@ function _i({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle:
|
|
|
2307
2308
|
alt: "Cargando",
|
|
2308
2309
|
width: 20,
|
|
2309
2310
|
height: 20,
|
|
2310
|
-
className:
|
|
2311
|
+
className: J.spinner
|
|
2311
2312
|
})]
|
|
2312
2313
|
}),
|
|
2313
2314
|
/* @__PURE__ */ p("div", {
|
|
2314
|
-
className:
|
|
2315
|
+
className: J.navCenter,
|
|
2315
2316
|
children: [/* @__PURE__ */ f("button", {
|
|
2316
2317
|
type: "button",
|
|
2317
|
-
className:
|
|
2318
|
+
className: J.logoBrand,
|
|
2318
2319
|
onClick: n,
|
|
2319
2320
|
"aria-label": "Ir al inicio",
|
|
2320
2321
|
children: /* @__PURE__ */ f("img", {
|
|
2321
2322
|
src: "/assets/angular/dsLogo.svg",
|
|
2322
2323
|
alt: "Toteat",
|
|
2323
|
-
className:
|
|
2324
|
+
className: J.logo
|
|
2324
2325
|
})
|
|
2325
2326
|
}), /* @__PURE__ */ f("span", {
|
|
2326
|
-
className:
|
|
2327
|
+
className: J.restaurantName,
|
|
2327
2328
|
children: e
|
|
2328
2329
|
})]
|
|
2329
2330
|
}),
|
|
2330
2331
|
/* @__PURE__ */ p("div", {
|
|
2331
|
-
className:
|
|
2332
|
+
className: J.navRight,
|
|
2332
2333
|
children: [s, /* @__PURE__ */ f("button", {
|
|
2333
2334
|
type: "button",
|
|
2334
|
-
className:
|
|
2335
|
+
className: J.rightButton,
|
|
2335
2336
|
onClick: r,
|
|
2336
2337
|
"aria-label": "Pantalla completa",
|
|
2337
2338
|
children: /* @__PURE__ */ f("img", {
|
|
@@ -2389,7 +2390,7 @@ function yi({ visible: e = !1, onClose: t, children: n, dismissible: a = !0, clo
|
|
|
2389
2390
|
})]
|
|
2390
2391
|
}), document.body);
|
|
2391
2392
|
}
|
|
2392
|
-
var
|
|
2393
|
+
var Y = {
|
|
2393
2394
|
overlayMessage: "_overlayMessage_we8nc_2",
|
|
2394
2395
|
header: "_header_we8nc_20",
|
|
2395
2396
|
iconWrap: "_iconWrap_we8nc_30",
|
|
@@ -2414,7 +2415,7 @@ var J = {
|
|
|
2414
2415
|
function Si({ title: e, eyebrow: t, children: n, status: r = "success", iconName: i, iconSize: o = 44, dismissible: s = !0, showCloseButton: c = !0, closeButtonLabel: l = "Close overlay message", primaryButtonLabel: u, secondaryButtonLabel: d, loadingPrimary: m = !1, loadingSecondary: h = !1, maxWidth: g = 400, standalone: _ = !1, onClose: v, onPrimaryClick: y, onSecondaryClick: b, "data-testid": x }) {
|
|
2415
2416
|
let S = a(), C = a(), w = i ?? bi[r], T = xi[r], E = !!n, D = !!u || !!d;
|
|
2416
2417
|
return /* @__PURE__ */ p("div", {
|
|
2417
|
-
className:
|
|
2418
|
+
className: Y.overlayMessage,
|
|
2418
2419
|
"data-status": r,
|
|
2419
2420
|
"data-standalone": _ ? "" : void 0,
|
|
2420
2421
|
role: _ ? "region" : "alertdialog",
|
|
@@ -2425,13 +2426,13 @@ function Si({ title: e, eyebrow: t, children: n, status: r = "success", iconName
|
|
|
2425
2426
|
"data-testid": x,
|
|
2426
2427
|
children: [
|
|
2427
2428
|
/* @__PURE__ */ p("header", {
|
|
2428
|
-
className:
|
|
2429
|
+
className: Y.header,
|
|
2429
2430
|
children: [
|
|
2430
2431
|
/* @__PURE__ */ f("div", {
|
|
2431
|
-
className:
|
|
2432
|
+
className: Y.iconWrap,
|
|
2432
2433
|
"aria-hidden": "true",
|
|
2433
2434
|
children: /* @__PURE__ */ f("span", {
|
|
2434
|
-
className:
|
|
2435
|
+
className: Y.iconColor,
|
|
2435
2436
|
style: { "--om-icon-color": T },
|
|
2436
2437
|
children: /* @__PURE__ */ f(L, {
|
|
2437
2438
|
name: w,
|
|
@@ -2440,18 +2441,18 @@ function Si({ title: e, eyebrow: t, children: n, status: r = "success", iconName
|
|
|
2440
2441
|
})
|
|
2441
2442
|
}),
|
|
2442
2443
|
/* @__PURE__ */ p("div", {
|
|
2443
|
-
className:
|
|
2444
|
+
className: Y.headline,
|
|
2444
2445
|
children: [t && /* @__PURE__ */ f("p", {
|
|
2445
|
-
className:
|
|
2446
|
+
className: Y.eyebrow,
|
|
2446
2447
|
children: t
|
|
2447
2448
|
}), /* @__PURE__ */ f("h2", {
|
|
2448
|
-
className:
|
|
2449
|
+
className: Y.title,
|
|
2449
2450
|
id: S,
|
|
2450
2451
|
children: e
|
|
2451
2452
|
})]
|
|
2452
2453
|
}),
|
|
2453
2454
|
s && c && /* @__PURE__ */ f(dr, {
|
|
2454
|
-
className:
|
|
2455
|
+
className: Y.closeBtn,
|
|
2455
2456
|
label: l,
|
|
2456
2457
|
onClick: v,
|
|
2457
2458
|
size: 20
|
|
@@ -2459,19 +2460,19 @@ function Si({ title: e, eyebrow: t, children: n, status: r = "success", iconName
|
|
|
2459
2460
|
]
|
|
2460
2461
|
}),
|
|
2461
2462
|
E && /* @__PURE__ */ f("div", {
|
|
2462
|
-
className:
|
|
2463
|
+
className: Y.body,
|
|
2463
2464
|
id: C,
|
|
2464
2465
|
children: n
|
|
2465
2466
|
}),
|
|
2466
2467
|
D && /* @__PURE__ */ p("footer", {
|
|
2467
|
-
className:
|
|
2468
|
-
children: [d && /* @__PURE__ */ f(
|
|
2468
|
+
className: Y.actions,
|
|
2469
|
+
children: [d && /* @__PURE__ */ f(R, {
|
|
2469
2470
|
variant: "outline",
|
|
2470
2471
|
fullWidth: !0,
|
|
2471
2472
|
loading: h,
|
|
2472
2473
|
onClick: b,
|
|
2473
2474
|
children: d
|
|
2474
|
-
}), u && /* @__PURE__ */ f(
|
|
2475
|
+
}), u && /* @__PURE__ */ f(R, {
|
|
2475
2476
|
variant: "primary",
|
|
2476
2477
|
fullWidth: !0,
|
|
2477
2478
|
loading: m,
|
|
@@ -2564,7 +2565,7 @@ var ki = {
|
|
|
2564
2565
|
overlay: "_overlay_1h8qm_3",
|
|
2565
2566
|
logoLayer: "_logoLayer_1h8qm_58",
|
|
2566
2567
|
srOnly: "_srOnly_1h8qm_103"
|
|
2567
|
-
},
|
|
2568
|
+
}, X = {
|
|
2568
2569
|
outer: "_outer_2wvr3_9",
|
|
2569
2570
|
circle: "_circle_2wvr3_20",
|
|
2570
2571
|
"circle-lift": "_circle-lift_2wvr3_1",
|
|
@@ -2579,25 +2580,25 @@ var ki = {
|
|
|
2579
2580
|
//#region src/components/PageLoadingOverlay/ToteatLogo.tsx
|
|
2580
2581
|
function Ai() {
|
|
2581
2582
|
return /* @__PURE__ */ p("div", {
|
|
2582
|
-
className:
|
|
2583
|
+
className: X.outer,
|
|
2583
2584
|
"aria-hidden": "true",
|
|
2584
2585
|
children: [
|
|
2585
|
-
/* @__PURE__ */ f("div", { className:
|
|
2586
|
-
/* @__PURE__ */ f("div", { className:
|
|
2587
|
-
/* @__PURE__ */ f("div", { className:
|
|
2586
|
+
/* @__PURE__ */ f("div", { className: X.ring }),
|
|
2587
|
+
/* @__PURE__ */ f("div", { className: X.ring }),
|
|
2588
|
+
/* @__PURE__ */ f("div", { className: X.ring }),
|
|
2588
2589
|
/* @__PURE__ */ f("div", {
|
|
2589
|
-
className:
|
|
2590
|
+
className: X.circle,
|
|
2590
2591
|
children: /* @__PURE__ */ p("svg", {
|
|
2591
|
-
className:
|
|
2592
|
+
className: X.logo,
|
|
2592
2593
|
viewBox: "0 0 80 80",
|
|
2593
2594
|
fill: "none",
|
|
2594
2595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2595
2596
|
"aria-hidden": "true",
|
|
2596
2597
|
children: [/* @__PURE__ */ f("path", {
|
|
2597
|
-
className:
|
|
2598
|
+
className: X.pathDark,
|
|
2598
2599
|
d: "M47.328 24.999V10H32.329v14.999h-15v15h15v14.999h14.999V39.999h14.999V25z"
|
|
2599
2600
|
}), /* @__PURE__ */ f("path", {
|
|
2600
|
-
className:
|
|
2601
|
+
className: X.pathRed,
|
|
2601
2602
|
d: "M32.328 40a15 15 0 0 0 14.998 15h15v15H47.329a15 15 0 0 1-15-15z"
|
|
2602
2603
|
})]
|
|
2603
2604
|
})
|
|
@@ -2771,7 +2772,7 @@ function Vi({ onSearch: e, onClear: t, debounceMs: n = 300, size: r = "md", clea
|
|
|
2771
2772
|
_ || y(""), C(""), t?.(), x.current?.focus();
|
|
2772
2773
|
}, E = b.length > 0;
|
|
2773
2774
|
return /* @__PURE__ */ p("div", {
|
|
2774
|
-
className:
|
|
2775
|
+
className: z(Bi.root, o),
|
|
2775
2776
|
"data-size": r,
|
|
2776
2777
|
"data-testid": h,
|
|
2777
2778
|
children: [/* @__PURE__ */ f("input", {
|
|
@@ -2837,7 +2838,7 @@ function Ui({ title: e, description: t, icon: n, iconSize: r = 32, headingLevel:
|
|
|
2837
2838
|
})]
|
|
2838
2839
|
});
|
|
2839
2840
|
}
|
|
2840
|
-
var
|
|
2841
|
+
var Z = {
|
|
2841
2842
|
select: "_select_1ez7r_2",
|
|
2842
2843
|
trigger: "_trigger_1ez7r_7",
|
|
2843
2844
|
value: "_value_1ez7r_61",
|
|
@@ -2901,7 +2902,7 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2901
2902
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
2902
2903
|
}, [S, O]), /* @__PURE__ */ p("div", {
|
|
2903
2904
|
ref: C,
|
|
2904
|
-
className:
|
|
2905
|
+
className: Z.select,
|
|
2905
2906
|
"data-open": S || void 0,
|
|
2906
2907
|
"data-error": d || void 0,
|
|
2907
2908
|
"data-disabled": l || void 0,
|
|
@@ -2915,16 +2916,16 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2915
2916
|
/* @__PURE__ */ p("button", {
|
|
2916
2917
|
ref: w,
|
|
2917
2918
|
type: "button",
|
|
2918
|
-
className:
|
|
2919
|
+
className: Z.trigger,
|
|
2919
2920
|
onClick: E,
|
|
2920
2921
|
"aria-haspopup": "listbox",
|
|
2921
2922
|
"aria-expanded": S,
|
|
2922
2923
|
disabled: l,
|
|
2923
2924
|
children: [/* @__PURE__ */ f("span", {
|
|
2924
|
-
className: k ?
|
|
2925
|
+
className: k ? Z.value : Z.placeholder,
|
|
2925
2926
|
children: k?.label ?? r
|
|
2926
2927
|
}), /* @__PURE__ */ f("span", {
|
|
2927
|
-
className:
|
|
2928
|
+
className: Z.chevron,
|
|
2928
2929
|
"aria-hidden": "true",
|
|
2929
2930
|
children: /* @__PURE__ */ f(L, {
|
|
2930
2931
|
name: "chevron-down-outline",
|
|
@@ -2935,7 +2936,7 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2935
2936
|
}),
|
|
2936
2937
|
S && typeof document < "u" && M(/* @__PURE__ */ p("div", {
|
|
2937
2938
|
ref: T,
|
|
2938
|
-
className:
|
|
2939
|
+
className: z("tot-ds-root", Z.dropdown),
|
|
2939
2940
|
"data-theme": b,
|
|
2940
2941
|
role: "listbox",
|
|
2941
2942
|
"data-upward": v.upward || void 0,
|
|
@@ -2948,7 +2949,7 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2948
2949
|
children: [
|
|
2949
2950
|
a && /* @__PURE__ */ f("input", {
|
|
2950
2951
|
type: "text",
|
|
2951
|
-
className:
|
|
2952
|
+
className: Z.search,
|
|
2952
2953
|
placeholder: o,
|
|
2953
2954
|
"aria-label": o,
|
|
2954
2955
|
value: g,
|
|
@@ -2959,7 +2960,7 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2959
2960
|
type: "button",
|
|
2960
2961
|
role: "option",
|
|
2961
2962
|
"aria-selected": e.value === t,
|
|
2962
|
-
className:
|
|
2963
|
+
className: Z.option,
|
|
2963
2964
|
"data-selected": e.value === t || void 0,
|
|
2964
2965
|
disabled: e.disabled,
|
|
2965
2966
|
onClick: () => {
|
|
@@ -2968,7 +2969,7 @@ function qi({ options: e, value: t, onChange: n, placeholder: r = "Seleccionar..
|
|
|
2968
2969
|
children: e.label
|
|
2969
2970
|
}, e.value)),
|
|
2970
2971
|
A.length === 0 && /* @__PURE__ */ f("div", {
|
|
2971
|
-
className:
|
|
2972
|
+
className: Z.noResults,
|
|
2972
2973
|
children: c
|
|
2973
2974
|
})
|
|
2974
2975
|
]
|
|
@@ -2983,7 +2984,7 @@ var Ji = {
|
|
|
2983
2984
|
function Zi({ label: e, isActive: t = !1, className: n, type: r = "button", ...i }) {
|
|
2984
2985
|
return /* @__PURE__ */ f("button", {
|
|
2985
2986
|
type: r,
|
|
2986
|
-
className:
|
|
2987
|
+
className: z(Ji.item, t && Ji.active, n),
|
|
2987
2988
|
"data-active": t || void 0,
|
|
2988
2989
|
...i,
|
|
2989
2990
|
children: e
|
|
@@ -2999,7 +3000,7 @@ function Qi(e = !1) {
|
|
|
2999
3000
|
n
|
|
3000
3001
|
];
|
|
3001
3002
|
}
|
|
3002
|
-
var
|
|
3003
|
+
var $i = {
|
|
3003
3004
|
section: "_section_gn76y_2",
|
|
3004
3005
|
trigger: "_trigger_gn76y_7",
|
|
3005
3006
|
icon: "_icon_gn76y_44",
|
|
@@ -3011,14 +3012,14 @@ var Z = {
|
|
|
3011
3012
|
};
|
|
3012
3013
|
//#endregion
|
|
3013
3014
|
//#region src/components/SidebarNavSection/SidebarNavSection.tsx
|
|
3014
|
-
function
|
|
3015
|
+
function ea({ title: e, icon: t, titleSuffix: n, defaultOpen: r = !1, open: i, onToggle: a, isActive: o = !1, className: s, children: c, "data-testid": l }) {
|
|
3015
3016
|
let [u, d] = Qi(r), m = i !== void 0, h = m ? i : u;
|
|
3016
3017
|
return /* @__PURE__ */ p("div", {
|
|
3017
|
-
className:
|
|
3018
|
+
className: z($i.section, s),
|
|
3018
3019
|
"data-testid": l,
|
|
3019
3020
|
children: [/* @__PURE__ */ p("button", {
|
|
3020
3021
|
type: "button",
|
|
3021
|
-
className:
|
|
3022
|
+
className: $i.trigger,
|
|
3022
3023
|
"data-open": h || void 0,
|
|
3023
3024
|
"data-active": o || void 0,
|
|
3024
3025
|
onClick: () => {
|
|
@@ -3027,30 +3028,30 @@ function $i({ title: e, icon: t, titleSuffix: n, defaultOpen: r = !1, open: i, o
|
|
|
3027
3028
|
"aria-expanded": h,
|
|
3028
3029
|
children: [
|
|
3029
3030
|
t && /* @__PURE__ */ f("span", {
|
|
3030
|
-
className:
|
|
3031
|
+
className: $i.icon,
|
|
3031
3032
|
"aria-hidden": "true",
|
|
3032
3033
|
children: t
|
|
3033
3034
|
}),
|
|
3034
3035
|
/* @__PURE__ */ f("span", {
|
|
3035
|
-
className:
|
|
3036
|
+
className: $i.title,
|
|
3036
3037
|
children: e
|
|
3037
3038
|
}),
|
|
3038
3039
|
n && /* @__PURE__ */ f("span", {
|
|
3039
|
-
className:
|
|
3040
|
+
className: $i.suffix,
|
|
3040
3041
|
"aria-hidden": "true",
|
|
3041
3042
|
children: n
|
|
3042
3043
|
}),
|
|
3043
3044
|
/* @__PURE__ */ f("span", {
|
|
3044
|
-
className:
|
|
3045
|
+
className: $i.chevron,
|
|
3045
3046
|
"aria-hidden": "true"
|
|
3046
3047
|
})
|
|
3047
3048
|
]
|
|
3048
3049
|
}), /* @__PURE__ */ f("div", {
|
|
3049
|
-
className:
|
|
3050
|
+
className: $i.content,
|
|
3050
3051
|
"data-open": h || void 0,
|
|
3051
3052
|
inert: !h || void 0,
|
|
3052
3053
|
children: /* @__PURE__ */ f("div", {
|
|
3053
|
-
className:
|
|
3054
|
+
className: $i.inner,
|
|
3054
3055
|
children: c
|
|
3055
3056
|
})
|
|
3056
3057
|
})]
|
|
@@ -3058,8 +3059,8 @@ function $i({ title: e, icon: t, titleSuffix: n, defaultOpen: r = !1, open: i, o
|
|
|
3058
3059
|
}
|
|
3059
3060
|
//#endregion
|
|
3060
3061
|
//#region src/components/StatusBadge/StatusBadge.tsx
|
|
3061
|
-
function
|
|
3062
|
-
return /* @__PURE__ */ f(
|
|
3062
|
+
function ta({ status: e, labels: t, variants: n, fallbackLabel: r, fallbackVariant: i = "default", size: a, "data-testid": o }) {
|
|
3063
|
+
return /* @__PURE__ */ f(Fn, {
|
|
3063
3064
|
variant: n[e] ?? i,
|
|
3064
3065
|
size: a,
|
|
3065
3066
|
"data-testid": o,
|
|
@@ -3068,7 +3069,7 @@ function ea({ status: e, labels: t, variants: n, fallbackLabel: r, fallbackVaria
|
|
|
3068
3069
|
}
|
|
3069
3070
|
//#endregion
|
|
3070
3071
|
//#region src/components/UserNotification/NotificationBase.tsx
|
|
3071
|
-
function
|
|
3072
|
+
function na({ variant: e, rootClassName: t, contentClassName: n, actionClassName: r, icon: i, action: a, children: o, className: s, "data-testid": c, dismissSlot: l, ariaAtomic: u }) {
|
|
3072
3073
|
let d = e === "error";
|
|
3073
3074
|
return /* @__PURE__ */ p("div", {
|
|
3074
3075
|
className: [t, s].filter(Boolean).join(" "),
|
|
@@ -3095,19 +3096,19 @@ function ta({ variant: e, rootClassName: t, contentClassName: n, actionClassName
|
|
|
3095
3096
|
]
|
|
3096
3097
|
});
|
|
3097
3098
|
}
|
|
3098
|
-
var
|
|
3099
|
+
var ra = {
|
|
3099
3100
|
statusBanner: "_statusBanner_azeha_2",
|
|
3100
3101
|
content: "_content_azeha_40",
|
|
3101
3102
|
action: "_action_azeha_45"
|
|
3102
3103
|
};
|
|
3103
3104
|
//#endregion
|
|
3104
3105
|
//#region src/components/StatusBanner/StatusBanner.tsx
|
|
3105
|
-
function
|
|
3106
|
-
return /* @__PURE__ */ f(
|
|
3106
|
+
function ia({ variant: e = "info", icon: t, action: n, children: r, className: i, "data-testid": a }) {
|
|
3107
|
+
return /* @__PURE__ */ f(na, {
|
|
3107
3108
|
variant: e,
|
|
3108
|
-
rootClassName:
|
|
3109
|
-
contentClassName:
|
|
3110
|
-
actionClassName:
|
|
3109
|
+
rootClassName: ra.statusBanner,
|
|
3110
|
+
contentClassName: ra.content,
|
|
3111
|
+
actionClassName: ra.action,
|
|
3111
3112
|
icon: t,
|
|
3112
3113
|
action: n,
|
|
3113
3114
|
className: i,
|
|
@@ -3116,24 +3117,24 @@ function ra({ variant: e = "info", icon: t, action: n, children: r, className: i
|
|
|
3116
3117
|
children: r
|
|
3117
3118
|
});
|
|
3118
3119
|
}
|
|
3119
|
-
var
|
|
3120
|
+
var aa = {
|
|
3120
3121
|
stepper: "_stepper_tofcg_2",
|
|
3121
3122
|
button: "_button_tofcg_13",
|
|
3122
3123
|
value: "_value_tofcg_45"
|
|
3123
3124
|
};
|
|
3124
3125
|
//#endregion
|
|
3125
3126
|
//#region src/components/Stepper/Stepper.tsx
|
|
3126
|
-
function
|
|
3127
|
+
function oa({ value: e, onChange: t, min: n = 0, max: r, step: i = 1, disabled: a = !1, decrementLabel: o = "Decrease", incrementLabel: s = "Increase", className: c, "aria-label": l, "data-testid": u }) {
|
|
3127
3128
|
let d = Number.isFinite(i) && i > 0 ? i : 1, m = Number.isFinite(n) ? n : 0, h = r !== void 0 && Number.isFinite(r) ? r : void 0, g = Number.isFinite(e) ? e : m, _ = g <= m, v = h !== void 0 && g >= h;
|
|
3128
3129
|
return /* @__PURE__ */ p("div", {
|
|
3129
|
-
className:
|
|
3130
|
+
className: z(aa.stepper, c),
|
|
3130
3131
|
role: "group",
|
|
3131
3132
|
"aria-label": l,
|
|
3132
3133
|
"data-testid": u,
|
|
3133
3134
|
children: [
|
|
3134
3135
|
/* @__PURE__ */ f("button", {
|
|
3135
3136
|
type: "button",
|
|
3136
|
-
className:
|
|
3137
|
+
className: aa.button,
|
|
3137
3138
|
onClick: () => {
|
|
3138
3139
|
let e = Math.max(m, g - d);
|
|
3139
3140
|
e !== g && t(e);
|
|
@@ -3146,13 +3147,13 @@ function aa({ value: e, onChange: t, min: n = 0, max: r, step: i = 1, disabled:
|
|
|
3146
3147
|
})
|
|
3147
3148
|
}),
|
|
3148
3149
|
/* @__PURE__ */ f("output", {
|
|
3149
|
-
className:
|
|
3150
|
+
className: aa.value,
|
|
3150
3151
|
"aria-live": "polite",
|
|
3151
3152
|
children: g
|
|
3152
3153
|
}),
|
|
3153
3154
|
/* @__PURE__ */ f("button", {
|
|
3154
3155
|
type: "button",
|
|
3155
|
-
className:
|
|
3156
|
+
className: aa.button,
|
|
3156
3157
|
onClick: () => {
|
|
3157
3158
|
let e = h === void 0 ? g + d : Math.min(h, g + d);
|
|
3158
3159
|
e !== g && t(e);
|
|
@@ -3167,13 +3168,13 @@ function aa({ value: e, onChange: t, min: n = 0, max: r, step: i = 1, disabled:
|
|
|
3167
3168
|
]
|
|
3168
3169
|
});
|
|
3169
3170
|
}
|
|
3170
|
-
var
|
|
3171
|
+
var sa = {
|
|
3171
3172
|
tab: "_tab_1g43g_3",
|
|
3172
3173
|
group: "_group_1g43g_20"
|
|
3173
3174
|
};
|
|
3174
3175
|
//#endregion
|
|
3175
3176
|
//#region src/components/Tab/Tab.tsx
|
|
3176
|
-
function
|
|
3177
|
+
function ca({ tabs: e, label: t, selectedTab: n, size: r = "medium", fullWidth: i = !0, selectedColor: a = "secondary", onChange: o, onTabClick: s, className: c, "data-testid": d }) {
|
|
3177
3178
|
let [p, m] = u(() => e[0]?.value), h = n !== void 0, g = h ? n : p, _ = l(h);
|
|
3178
3179
|
process.env.NODE_ENV !== "production" && _.current !== h && console.error("Tab: `selectedTab` prop changed from %s to %s. A component cannot switch between controlled and uncontrolled modes.", _.current ? "controlled" : "uncontrolled", h ? "controlled" : "uncontrolled");
|
|
3179
3180
|
let v = e.map((e) => ({
|
|
@@ -3184,13 +3185,13 @@ function sa({ tabs: e, label: t, selectedTab: n, size: r = "medium", fullWidth:
|
|
|
3184
3185
|
"data-testid": e["data-testid"]
|
|
3185
3186
|
}));
|
|
3186
3187
|
return /* @__PURE__ */ f("div", {
|
|
3187
|
-
className: [
|
|
3188
|
+
className: [sa.tab, c].filter(Boolean).join(" "),
|
|
3188
3189
|
"data-size": r,
|
|
3189
3190
|
"data-full-width": i ? "" : void 0,
|
|
3190
3191
|
"data-selected-color": a,
|
|
3191
3192
|
"data-testid": d,
|
|
3192
3193
|
children: /* @__PURE__ */ f(qr, {
|
|
3193
|
-
className:
|
|
3194
|
+
className: sa.group,
|
|
3194
3195
|
label: t,
|
|
3195
3196
|
options: v,
|
|
3196
3197
|
selectedButton: g,
|
|
@@ -3207,19 +3208,19 @@ function sa({ tabs: e, label: t, selectedTab: n, size: r = "medium", fullWidth:
|
|
|
3207
3208
|
})
|
|
3208
3209
|
});
|
|
3209
3210
|
}
|
|
3210
|
-
var
|
|
3211
|
+
var la = { tabbar: "_tabbar_qy5zr_2" };
|
|
3211
3212
|
//#endregion
|
|
3212
3213
|
//#region src/components/TabBar/TabBar.tsx
|
|
3213
|
-
function
|
|
3214
|
+
function ua({ variant: e = "default", children: t, "data-testid": n }) {
|
|
3214
3215
|
return /* @__PURE__ */ f("div", {
|
|
3215
|
-
className:
|
|
3216
|
+
className: la.tabbar,
|
|
3216
3217
|
role: "tablist",
|
|
3217
3218
|
"data-variant": e,
|
|
3218
3219
|
"data-testid": n,
|
|
3219
3220
|
children: t
|
|
3220
3221
|
});
|
|
3221
3222
|
}
|
|
3222
|
-
var
|
|
3223
|
+
var da = {
|
|
3223
3224
|
tabs: "_tabs_16jix_2",
|
|
3224
3225
|
tabList: "_tabList_16jix_8",
|
|
3225
3226
|
tab: "_tab_16jix_2",
|
|
@@ -3227,7 +3228,7 @@ var ua = {
|
|
|
3227
3228
|
};
|
|
3228
3229
|
//#endregion
|
|
3229
3230
|
//#region src/components/Tabs/Tabs.tsx
|
|
3230
|
-
function
|
|
3231
|
+
function fa({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange: a, "data-testid": o }) {
|
|
3231
3232
|
let [s, c] = u(t ?? e[0]?.id ?? ""), d = n !== void 0, m = d ? n : s, h = l(/* @__PURE__ */ new Map()), g = l(d), _ = l(!1);
|
|
3232
3233
|
process.env.NODE_ENV !== "production" && g.current !== d && console.error("Tabs: `activeTab` prop changed from %s to %s. A component cannot switch between controlled and uncontrolled modes.", g.current ? "controlled" : "uncontrolled", d ? "controlled" : "uncontrolled");
|
|
3233
3234
|
let v = (e) => {
|
|
@@ -3246,10 +3247,10 @@ function da({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
3246
3247
|
block: "nearest"
|
|
3247
3248
|
});
|
|
3248
3249
|
}, [m]), /* @__PURE__ */ p("div", {
|
|
3249
|
-
className:
|
|
3250
|
+
className: da.tabs,
|
|
3250
3251
|
"data-testid": o,
|
|
3251
3252
|
children: [/* @__PURE__ */ f("div", {
|
|
3252
|
-
className:
|
|
3253
|
+
className: da.tabList,
|
|
3253
3254
|
role: "tablist",
|
|
3254
3255
|
"aria-label": r,
|
|
3255
3256
|
children: e.map((e, t) => /* @__PURE__ */ f("button", {
|
|
@@ -3261,7 +3262,7 @@ function da({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
3261
3262
|
"aria-selected": e.id === m,
|
|
3262
3263
|
"aria-controls": b == null ? void 0 : `panel-${m}`,
|
|
3263
3264
|
id: `tab-${e.id}`,
|
|
3264
|
-
className:
|
|
3265
|
+
className: da.tab,
|
|
3265
3266
|
"data-active": e.id === m || void 0,
|
|
3266
3267
|
disabled: e.disabled,
|
|
3267
3268
|
tabIndex: e.id === m ? 0 : -1,
|
|
@@ -3273,19 +3274,19 @@ function da({ items: e, defaultTab: t, activeTab: n, "aria-label": r, onChange:
|
|
|
3273
3274
|
role: "tabpanel",
|
|
3274
3275
|
id: `panel-${m}`,
|
|
3275
3276
|
"aria-labelledby": `tab-${m}`,
|
|
3276
|
-
className:
|
|
3277
|
+
className: da.panel,
|
|
3277
3278
|
children: b
|
|
3278
3279
|
})]
|
|
3279
3280
|
});
|
|
3280
3281
|
}
|
|
3281
|
-
var
|
|
3282
|
+
var pa = { textarea: "_textarea_1vuas_2" };
|
|
3282
3283
|
//#endregion
|
|
3283
3284
|
//#region src/components/Textarea/Textarea.tsx
|
|
3284
|
-
function
|
|
3285
|
+
function ma({ error: e, className: t, rows: n = 3, ref: r, ...i }) {
|
|
3285
3286
|
return /* @__PURE__ */ f("textarea", {
|
|
3286
3287
|
ref: r,
|
|
3287
3288
|
rows: n,
|
|
3288
|
-
className: [
|
|
3289
|
+
className: [pa.textarea, t].filter(Boolean).join(" "),
|
|
3289
3290
|
"data-error": e ? "" : void 0,
|
|
3290
3291
|
"aria-invalid": e || void 0,
|
|
3291
3292
|
...i
|
|
@@ -3305,26 +3306,26 @@ var Q = {
|
|
|
3305
3306
|
meta: "_meta_8nxer_224",
|
|
3306
3307
|
messages: "_messages_8nxer_235",
|
|
3307
3308
|
error: "_error_8nxer_273"
|
|
3308
|
-
},
|
|
3309
|
+
}, ha = {
|
|
3309
3310
|
success: "success-filled-green",
|
|
3310
3311
|
warning: "warning-outline",
|
|
3311
3312
|
error: "error-filled-red"
|
|
3312
|
-
},
|
|
3313
|
+
}, ga = {
|
|
3313
3314
|
small: 16,
|
|
3314
3315
|
medium: 20,
|
|
3315
3316
|
large: 24
|
|
3316
3317
|
};
|
|
3317
|
-
function
|
|
3318
|
+
function _a(e, t) {
|
|
3318
3319
|
return e === void 0 ? t ? "error" : "default" : e;
|
|
3319
3320
|
}
|
|
3320
|
-
var
|
|
3321
|
+
var va = t(function({ size: e = "medium", error: t = !1, showPasswordToggle: n = !1, label: i, required: s = !1, validationState: c, errorMessage: d, helperText: m, helperTextAlign: h = "right", prefixIcon: g, suffixIcon: _, clearable: v = !1, onClear: y, clearLabel: b = "Limpiar", showPasswordLabel: x = "Mostrar contraseña", hidePasswordLabel: S = "Ocultar contraseña", showCounter: C = !1, showValidationIcon: w = !0, fullWidth: T = !1, className: E, type: D = "text", id: O, value: k, onChange: A, disabled: j, readOnly: M, maxLength: N, "aria-label": ee, "aria-describedby": te, "data-testid": ne, ...re }, ie) {
|
|
3321
3322
|
let ae = a(), oe = O ?? ae, se = l(null);
|
|
3322
3323
|
o(ie, () => se.current, []);
|
|
3323
|
-
let [ce, P] = u(!1), le = D === "password", ue = le && ce ? "text" : D, de =
|
|
3324
|
+
let [ce, P] = u(!1), le = D === "password", ue = le && ce ? "text" : D, de = _a(c, t), fe = de === "error", pe = fe ? d : void 0, F = !!pe, I = !!m && !F, me = I ? `${oe}-helper` : void 0, he = F ? `${oe}-error` : void 0, ge = [
|
|
3324
3325
|
te,
|
|
3325
3326
|
me,
|
|
3326
3327
|
he
|
|
3327
|
-
].filter(Boolean).join(" ") || void 0, _e = typeof k == "string" || typeof k == "number" ? `${k}`.length > 0 : !1, ve = typeof k == "string" || typeof k == "number" ? `${k}`.length : 0, ye = v && !!A && _e && !j && !M && !le, be = le && n, xe = w && de !== "default" ?
|
|
3328
|
+
].filter(Boolean).join(" ") || void 0, _e = typeof k == "string" || typeof k == "number" ? `${k}`.length > 0 : !1, ve = typeof k == "string" || typeof k == "number" ? `${k}`.length : 0, ye = v && !!A && _e && !j && !M && !le, be = le && n, xe = w && de !== "default" ? ha[de] : void 0, Se = !!_ && !ye && !be, Ce = C || typeof N == "number", we = I || F || Ce, Te = ga[e], Ee = r(() => {
|
|
3328
3329
|
if (j || M) return;
|
|
3329
3330
|
let e = se.current;
|
|
3330
3331
|
e && A && ((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 }))), y?.(), se.current?.focus();
|
|
@@ -3445,7 +3446,7 @@ var _a = t(function({ size: e = "medium", error: t = !1, showPasswordToggle: n =
|
|
|
3445
3446
|
});
|
|
3446
3447
|
//#endregion
|
|
3447
3448
|
//#region src/components/ThemeGate/ThemeGate.tsx
|
|
3448
|
-
function
|
|
3449
|
+
function ya({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
3449
3450
|
return /* @__PURE__ */ f("div", {
|
|
3450
3451
|
"data-theme": e,
|
|
3451
3452
|
className: n,
|
|
@@ -3453,49 +3454,49 @@ function va({ theme: e, children: t, className: n, "data-testid": r }) {
|
|
|
3453
3454
|
children: t
|
|
3454
3455
|
});
|
|
3455
3456
|
}
|
|
3456
|
-
var
|
|
3457
|
+
var ba = {
|
|
3457
3458
|
container: "_container_7r0zk_2",
|
|
3458
3459
|
toast: "_toast_7r0zk_22",
|
|
3459
3460
|
"ds-toast-enter": "_ds-toast-enter_7r0zk_1",
|
|
3460
3461
|
toastMessage: "_toastMessage_7r0zk_61",
|
|
3461
3462
|
dismissButton: "_dismissButton_7r0zk_65"
|
|
3462
|
-
},
|
|
3463
|
-
function
|
|
3464
|
-
for (let e of
|
|
3463
|
+
}, xa = [], Sa = /* @__PURE__ */ new Set(), Ca = 0;
|
|
3464
|
+
function wa() {
|
|
3465
|
+
for (let e of Sa) e([...xa]);
|
|
3465
3466
|
}
|
|
3466
|
-
function
|
|
3467
|
-
let t = `toast-${++
|
|
3468
|
-
return
|
|
3467
|
+
function Ta(e) {
|
|
3468
|
+
let t = `toast-${++Ca}-${Date.now()}`;
|
|
3469
|
+
return xa = [...xa, {
|
|
3469
3470
|
id: t,
|
|
3470
3471
|
message: e.message,
|
|
3471
3472
|
variant: e.variant ?? "info",
|
|
3472
3473
|
duration: e.duration,
|
|
3473
3474
|
dismissible: e.dismissible,
|
|
3474
3475
|
"data-testid": e["data-testid"]
|
|
3475
|
-
}],
|
|
3476
|
+
}], wa(), t;
|
|
3476
3477
|
}
|
|
3477
|
-
function
|
|
3478
|
-
|
|
3478
|
+
function Ea(e) {
|
|
3479
|
+
xa = xa.filter((t) => t.id !== e), wa();
|
|
3479
3480
|
}
|
|
3480
|
-
function
|
|
3481
|
-
let [e, t] = u(
|
|
3481
|
+
function Da() {
|
|
3482
|
+
let [e, t] = u(xa), n = l(!0);
|
|
3482
3483
|
return i(() => {
|
|
3483
3484
|
n.current = !0;
|
|
3484
3485
|
let e = (e) => {
|
|
3485
3486
|
n.current && t(e);
|
|
3486
3487
|
};
|
|
3487
|
-
return
|
|
3488
|
-
n.current = !1,
|
|
3488
|
+
return Sa.add(e), () => {
|
|
3489
|
+
n.current = !1, Sa.delete(e);
|
|
3489
3490
|
};
|
|
3490
3491
|
}, []), {
|
|
3491
3492
|
toasts: e,
|
|
3492
|
-
addToast: r((e) =>
|
|
3493
|
-
dismissToast: r((e) =>
|
|
3493
|
+
addToast: r((e) => Ta(e), []),
|
|
3494
|
+
dismissToast: r((e) => Ea(e), [])
|
|
3494
3495
|
};
|
|
3495
3496
|
}
|
|
3496
3497
|
//#endregion
|
|
3497
3498
|
//#region src/components/Toast/Toast.tsx
|
|
3498
|
-
function
|
|
3499
|
+
function Oa({ toast: e, onDismiss: t, dismissLabel: n = "Cerrar notificación" }) {
|
|
3499
3500
|
let { id: r, message: a, variant: o, duration: s = 4e3, dismissible: c = !0, "data-testid": u } = e, d = l(void 0);
|
|
3500
3501
|
return i(() => (d.current = setTimeout(() => {
|
|
3501
3502
|
t(r);
|
|
@@ -3506,35 +3507,35 @@ function Da({ toast: e, onDismiss: t, dismissLabel: n = "Cerrar notificación" }
|
|
|
3506
3507
|
s,
|
|
3507
3508
|
t
|
|
3508
3509
|
]), /* @__PURE__ */ p("div", {
|
|
3509
|
-
className:
|
|
3510
|
+
className: ba.toast,
|
|
3510
3511
|
"data-variant": o,
|
|
3511
3512
|
role: o === "error" || o === "warning" ? "alert" : "status",
|
|
3512
3513
|
"aria-atomic": "true",
|
|
3513
3514
|
"data-testid": u,
|
|
3514
3515
|
children: [/* @__PURE__ */ f("span", {
|
|
3515
|
-
className:
|
|
3516
|
+
className: ba.toastMessage,
|
|
3516
3517
|
children: a
|
|
3517
3518
|
}), c && /* @__PURE__ */ f(dr, {
|
|
3518
|
-
className:
|
|
3519
|
+
className: ba.dismissButton,
|
|
3519
3520
|
onClick: () => t(r),
|
|
3520
3521
|
label: n,
|
|
3521
3522
|
size: 14
|
|
3522
3523
|
})]
|
|
3523
3524
|
});
|
|
3524
3525
|
}
|
|
3525
|
-
function
|
|
3526
|
-
let { toasts: n, dismissToast: r } =
|
|
3526
|
+
function ka({ notificationsLabel: e = "Notificaciones", dismissLabel: t }) {
|
|
3527
|
+
let { toasts: n, dismissToast: r } = Da();
|
|
3527
3528
|
return typeof document > "u" ? null : M(/* @__PURE__ */ f("section", {
|
|
3528
|
-
className:
|
|
3529
|
+
className: ba.container,
|
|
3529
3530
|
"aria-label": e,
|
|
3530
|
-
children: n.map((e) => /* @__PURE__ */ f(
|
|
3531
|
+
children: n.map((e) => /* @__PURE__ */ f(Oa, {
|
|
3531
3532
|
toast: e,
|
|
3532
3533
|
onDismiss: r,
|
|
3533
3534
|
dismissLabel: t
|
|
3534
3535
|
}, e.id))
|
|
3535
3536
|
}), document.body);
|
|
3536
3537
|
}
|
|
3537
|
-
var
|
|
3538
|
+
var Aa = {
|
|
3538
3539
|
wrapper: "_wrapper_1hq4w_2",
|
|
3539
3540
|
input: "_input_1hq4w_9",
|
|
3540
3541
|
track: "_track_1hq4w_29",
|
|
@@ -3543,10 +3544,10 @@ var ka = {
|
|
|
3543
3544
|
};
|
|
3544
3545
|
//#endregion
|
|
3545
3546
|
//#region src/components/Toggle/Toggle.tsx
|
|
3546
|
-
function
|
|
3547
|
+
function ja({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-testid": o, ...s }) {
|
|
3547
3548
|
let c = a(), l = r ?? c;
|
|
3548
3549
|
return /* @__PURE__ */ p("label", {
|
|
3549
|
-
className:
|
|
3550
|
+
className: Aa.wrapper,
|
|
3550
3551
|
"data-size": t,
|
|
3551
3552
|
htmlFor: l,
|
|
3552
3553
|
"data-testid": o,
|
|
@@ -3557,55 +3558,55 @@ function Aa({ label: e, size: t = "medium", className: n, id: r, ref: i, "data-t
|
|
|
3557
3558
|
role: "switch",
|
|
3558
3559
|
"aria-checked": s.checked ?? !1,
|
|
3559
3560
|
id: l,
|
|
3560
|
-
className:
|
|
3561
|
+
className: Aa.input,
|
|
3561
3562
|
...s
|
|
3562
3563
|
}),
|
|
3563
3564
|
/* @__PURE__ */ f("span", {
|
|
3564
|
-
className:
|
|
3565
|
+
className: Aa.track,
|
|
3565
3566
|
"aria-hidden": "true",
|
|
3566
|
-
children: /* @__PURE__ */ f("span", { className:
|
|
3567
|
+
children: /* @__PURE__ */ f("span", { className: Aa.thumb })
|
|
3567
3568
|
}),
|
|
3568
3569
|
e && /* @__PURE__ */ f("span", {
|
|
3569
|
-
className:
|
|
3570
|
+
className: Aa.label,
|
|
3570
3571
|
children: e
|
|
3571
3572
|
})
|
|
3572
3573
|
]
|
|
3573
3574
|
});
|
|
3574
3575
|
}
|
|
3575
|
-
var
|
|
3576
|
+
var Ma = {
|
|
3576
3577
|
trigger: "_trigger_wx3tb_2",
|
|
3577
3578
|
tooltip: "_tooltip_wx3tb_7"
|
|
3578
|
-
},
|
|
3579
|
-
function
|
|
3579
|
+
}, Na = 8;
|
|
3580
|
+
function Pa(e, t) {
|
|
3580
3581
|
switch (t) {
|
|
3581
3582
|
case "top": return {
|
|
3582
|
-
top: e.top -
|
|
3583
|
+
top: e.top - Na,
|
|
3583
3584
|
left: e.left + e.width / 2
|
|
3584
3585
|
};
|
|
3585
3586
|
case "bottom": return {
|
|
3586
|
-
top: e.bottom +
|
|
3587
|
+
top: e.bottom + Na,
|
|
3587
3588
|
left: e.left + e.width / 2
|
|
3588
3589
|
};
|
|
3589
3590
|
case "left": return {
|
|
3590
3591
|
top: e.top + e.height / 2,
|
|
3591
|
-
left: e.left -
|
|
3592
|
+
left: e.left - Na
|
|
3592
3593
|
};
|
|
3593
3594
|
case "right": return {
|
|
3594
3595
|
top: e.top + e.height / 2,
|
|
3595
|
-
left: e.right +
|
|
3596
|
+
left: e.right + Na
|
|
3596
3597
|
};
|
|
3597
3598
|
}
|
|
3598
3599
|
}
|
|
3599
|
-
function
|
|
3600
|
+
function Fa({ content: e, children: t, placement: n = "top", "data-testid": i }) {
|
|
3600
3601
|
let [o, s] = u(!1), [c, m] = u({
|
|
3601
3602
|
top: 0,
|
|
3602
3603
|
left: 0
|
|
3603
3604
|
}), h = l(null), g = a(), _ = r(() => {
|
|
3604
|
-
h.current && (m(
|
|
3605
|
+
h.current && (m(Pa(h.current.getBoundingClientRect(), n)), s(!0));
|
|
3605
3606
|
}, [n]), v = r(() => s(!1), []);
|
|
3606
3607
|
return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("span", {
|
|
3607
3608
|
ref: h,
|
|
3608
|
-
className:
|
|
3609
|
+
className: Ma.trigger,
|
|
3609
3610
|
"aria-describedby": o ? g : void 0,
|
|
3610
3611
|
onMouseEnter: _,
|
|
3611
3612
|
onMouseLeave: v,
|
|
@@ -3616,7 +3617,7 @@ function Pa({ content: e, children: t, placement: n = "top", "data-testid": i })
|
|
|
3616
3617
|
}), o && typeof document < "u" && M(/* @__PURE__ */ f("div", {
|
|
3617
3618
|
id: g,
|
|
3618
3619
|
role: "tooltip",
|
|
3619
|
-
className:
|
|
3620
|
+
className: Ma.tooltip,
|
|
3620
3621
|
"data-placement": n,
|
|
3621
3622
|
style: {
|
|
3622
3623
|
top: c.top,
|
|
@@ -3640,29 +3641,29 @@ var $ = {
|
|
|
3640
3641
|
};
|
|
3641
3642
|
//#endregion
|
|
3642
3643
|
//#region src/components/TreeItem/TreeItem.tsx
|
|
3643
|
-
function
|
|
3644
|
+
function Ia(e) {
|
|
3644
3645
|
return e ? "" : void 0;
|
|
3645
3646
|
}
|
|
3646
|
-
function
|
|
3647
|
+
function La(e) {
|
|
3647
3648
|
return [
|
|
3648
3649
|
"INPUT",
|
|
3649
3650
|
"TEXTAREA",
|
|
3650
3651
|
"SELECT"
|
|
3651
3652
|
].includes(e.tagName) || e.isContentEditable;
|
|
3652
3653
|
}
|
|
3653
|
-
function
|
|
3654
|
+
function Ra(e, t, n) {
|
|
3654
3655
|
return e === "ArrowRight" ? t && !n : e === "ArrowLeft" ? t && n : !1;
|
|
3655
3656
|
}
|
|
3656
|
-
function
|
|
3657
|
-
if (!(t.disabled ||
|
|
3657
|
+
function za(e, t, n, r, i, a, o) {
|
|
3658
|
+
if (!(t.disabled || La(e.target))) {
|
|
3658
3659
|
if (e.key === "Enter" || e.key === " ") {
|
|
3659
3660
|
e.preventDefault(), n ? a(t.id) : i && o(t.id);
|
|
3660
3661
|
return;
|
|
3661
3662
|
}
|
|
3662
|
-
|
|
3663
|
+
Ra(e.key, n, r) && (e.preventDefault(), a(t.id));
|
|
3663
3664
|
}
|
|
3664
3665
|
}
|
|
3665
|
-
function
|
|
3666
|
+
function Ba(e, t, n, r, i, a, o, s, c) {
|
|
3666
3667
|
return {
|
|
3667
3668
|
handleDragStart(n) {
|
|
3668
3669
|
if (!r.current) {
|
|
@@ -3706,9 +3707,9 @@ function za(e, t, n, r, i, a, o, s, c) {
|
|
|
3706
3707
|
}
|
|
3707
3708
|
};
|
|
3708
3709
|
}
|
|
3709
|
-
function
|
|
3710
|
+
function Va({ item: e, level: t, selectable: n, selected: r, prefixSlot: i, labelSlot: a, metaSlot: o, suffixSlot: s, onToggleSelect: c }) {
|
|
3710
3711
|
return /* @__PURE__ */ p(d, { children: [
|
|
3711
|
-
n && /* @__PURE__ */ f(
|
|
3712
|
+
n && /* @__PURE__ */ f(Jn, {
|
|
3712
3713
|
checked: r,
|
|
3713
3714
|
disabled: e.disabled,
|
|
3714
3715
|
className: $.checkbox,
|
|
@@ -3732,19 +3733,19 @@ function Ba({ item: e, level: t, selectable: n, selected: r, prefixSlot: i, labe
|
|
|
3732
3733
|
})
|
|
3733
3734
|
] });
|
|
3734
3735
|
}
|
|
3735
|
-
function
|
|
3736
|
-
let O = l(!1), k = (t) =>
|
|
3736
|
+
function Ha({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggable: i = !1, selectable: a = !1, hasChildren: o = !1, indentSize: s = 24, parentId: c = null, bordered: u = !1, flatIndex: d = 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 }) {
|
|
3737
|
+
let O = l(!1), k = (t) => za(t, e, o, n, a, h, g), A = Ba(e, c, i, O, _, v, y, b, x);
|
|
3737
3738
|
return /* @__PURE__ */ p("div", {
|
|
3738
3739
|
className: $.treeItem,
|
|
3739
3740
|
style: { "--tree-item-indent": `${t * s}px` },
|
|
3740
3741
|
"data-level": t,
|
|
3741
|
-
"data-expanded":
|
|
3742
|
-
"data-selected":
|
|
3743
|
-
"data-disabled":
|
|
3744
|
-
"data-has-children":
|
|
3745
|
-
"data-bordered":
|
|
3746
|
-
"data-striped":
|
|
3747
|
-
"data-odd-row":
|
|
3742
|
+
"data-expanded": Ia(n),
|
|
3743
|
+
"data-selected": Ia(r),
|
|
3744
|
+
"data-disabled": Ia(e.disabled),
|
|
3745
|
+
"data-has-children": Ia(o),
|
|
3746
|
+
"data-bordered": Ia(u),
|
|
3747
|
+
"data-striped": Ia(m),
|
|
3748
|
+
"data-odd-row": Ia(m && d % 2 == 1),
|
|
3748
3749
|
"data-testid": C,
|
|
3749
3750
|
role: "treeitem",
|
|
3750
3751
|
"aria-level": t + 1,
|
|
@@ -3784,7 +3785,7 @@ function Va({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggab
|
|
|
3784
3785
|
className: $.indent,
|
|
3785
3786
|
"aria-hidden": "true"
|
|
3786
3787
|
}),
|
|
3787
|
-
/* @__PURE__ */ f(
|
|
3788
|
+
/* @__PURE__ */ f(Va, {
|
|
3788
3789
|
item: e,
|
|
3789
3790
|
level: t,
|
|
3790
3791
|
selectable: a,
|
|
@@ -3820,31 +3821,31 @@ function Va({ item: e, level: t = 0, expanded: n = !1, selected: r = !1, draggab
|
|
|
3820
3821
|
})]
|
|
3821
3822
|
});
|
|
3822
3823
|
}
|
|
3823
|
-
var
|
|
3824
|
+
var Ua = { treeList: "_treeList_trryv_2" };
|
|
3824
3825
|
//#endregion
|
|
3825
3826
|
//#region src/components/TreeList/TreeList.tsx
|
|
3826
|
-
function
|
|
3827
|
+
function Wa(e, t) {
|
|
3827
3828
|
for (let n of e) {
|
|
3828
3829
|
if (n.id === t) return n;
|
|
3829
3830
|
if (n.children) {
|
|
3830
|
-
let e =
|
|
3831
|
+
let e = Wa(n.children, t);
|
|
3831
3832
|
if (e) return e;
|
|
3832
3833
|
}
|
|
3833
3834
|
}
|
|
3834
3835
|
return null;
|
|
3835
3836
|
}
|
|
3836
|
-
function
|
|
3837
|
+
function Ga(e, t) {
|
|
3837
3838
|
let n = /* @__PURE__ */ new Map(), r = 0;
|
|
3838
3839
|
function i(e) {
|
|
3839
3840
|
for (let a of e) n.set(a.id, r++), a.children?.length && t.includes(a.id) && i(a.children);
|
|
3840
3841
|
}
|
|
3841
3842
|
return i(e), n;
|
|
3842
3843
|
}
|
|
3843
|
-
function
|
|
3844
|
+
function Ka(e) {
|
|
3844
3845
|
let { items: t, parentId: n, level: r, expandedIds: i, selectedIds: a, flatIndexMap: o } = e;
|
|
3845
3846
|
return t.map((t) => {
|
|
3846
3847
|
let s = !!t.children?.length, c = i.includes(t.id);
|
|
3847
|
-
return /* @__PURE__ */ f(
|
|
3848
|
+
return /* @__PURE__ */ f(Ha, {
|
|
3848
3849
|
item: t,
|
|
3849
3850
|
level: r,
|
|
3850
3851
|
parentId: n,
|
|
@@ -3867,7 +3868,7 @@ function Ga(e) {
|
|
|
3867
3868
|
metaSlot: e.metaSlot,
|
|
3868
3869
|
prefixSlot: e.prefixSlot,
|
|
3869
3870
|
suffixSlot: e.suffixSlot,
|
|
3870
|
-
children: s && c && t.children && /* @__PURE__ */ f(
|
|
3871
|
+
children: s && c && t.children && /* @__PURE__ */ f(Ka, {
|
|
3871
3872
|
...e,
|
|
3872
3873
|
items: t.children,
|
|
3873
3874
|
parentId: t.id,
|
|
@@ -3876,14 +3877,14 @@ function Ga(e) {
|
|
|
3876
3877
|
}, t.id);
|
|
3877
3878
|
});
|
|
3878
3879
|
}
|
|
3879
|
-
function
|
|
3880
|
+
function qa({ items: e = [], draggable: t = !1, expandedIds: n, selectedIds: i, selectable: a = !1, indentSize: o = 24, bordered: s = !1, striped: d = !1, onExpandChange: p, onSelectChange: m, onReorder: h, labelSlot: g, metaSlot: _, prefixSlot: v, suffixSlot: y, "data-testid": b }) {
|
|
3880
3881
|
let [x, S] = u([]), [C, w] = u([]), T = l(null), E = n ?? x, D = i ?? C, O = {
|
|
3881
3882
|
items: e,
|
|
3882
3883
|
parentId: null,
|
|
3883
3884
|
level: 0,
|
|
3884
3885
|
expandedIds: E,
|
|
3885
3886
|
selectedIds: D,
|
|
3886
|
-
flatIndexMap: c(() =>
|
|
3887
|
+
flatIndexMap: c(() => Ga(e, E), [e, E]),
|
|
3887
3888
|
draggable: t,
|
|
3888
3889
|
selectable: a,
|
|
3889
3890
|
bordered: s,
|
|
@@ -3923,7 +3924,7 @@ function Ka({ items: e = [], draggable: t = !1, expandedIds: n, selectedIds: i,
|
|
|
3923
3924
|
if (!n || n.parentId !== t.parentId) return;
|
|
3924
3925
|
let r = n.itemId, i = t.item.id;
|
|
3925
3926
|
if (r === i) return;
|
|
3926
|
-
let a = t.parentId === null ? e :
|
|
3927
|
+
let a = t.parentId === null ? e : Wa(e, t.parentId)?.children;
|
|
3927
3928
|
if (!a) return;
|
|
3928
3929
|
let o = a.findIndex((e) => e.id === r), s = a.findIndex((e) => e.id === i);
|
|
3929
3930
|
o === -1 || s === -1 || h?.({
|
|
@@ -3940,14 +3941,14 @@ function Ka({ items: e = [], draggable: t = !1, expandedIds: n, selectedIds: i,
|
|
|
3940
3941
|
suffixSlot: y
|
|
3941
3942
|
};
|
|
3942
3943
|
return /* @__PURE__ */ f("div", {
|
|
3943
|
-
className:
|
|
3944
|
+
className: Ua.treeList,
|
|
3944
3945
|
role: "tree",
|
|
3945
3946
|
"data-draggable": t ? "" : void 0,
|
|
3946
3947
|
"data-testid": b,
|
|
3947
|
-
children: /* @__PURE__ */ f(
|
|
3948
|
+
children: /* @__PURE__ */ f(Ka, { ...O })
|
|
3948
3949
|
});
|
|
3949
3950
|
}
|
|
3950
|
-
var
|
|
3951
|
+
var Ja = {
|
|
3951
3952
|
notification: "_notification_i6esb_2",
|
|
3952
3953
|
content: "_content_i6esb_40",
|
|
3953
3954
|
action: "_action_i6esb_45",
|
|
@@ -3955,18 +3956,18 @@ var qa = {
|
|
|
3955
3956
|
};
|
|
3956
3957
|
//#endregion
|
|
3957
3958
|
//#region src/components/UserNotification/UserNotification.tsx
|
|
3958
|
-
function
|
|
3959
|
-
return /* @__PURE__ */ f(
|
|
3959
|
+
function Ya({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cerrar", action: i, children: a, className: o, "data-testid": s }) {
|
|
3960
|
+
return /* @__PURE__ */ f(na, {
|
|
3960
3961
|
variant: e,
|
|
3961
|
-
rootClassName:
|
|
3962
|
-
contentClassName:
|
|
3963
|
-
actionClassName:
|
|
3962
|
+
rootClassName: Ja.notification,
|
|
3963
|
+
contentClassName: Ja.content,
|
|
3964
|
+
actionClassName: Ja.action,
|
|
3964
3965
|
icon: t,
|
|
3965
3966
|
action: i,
|
|
3966
3967
|
className: o,
|
|
3967
3968
|
"data-testid": s,
|
|
3968
3969
|
dismissSlot: /* @__PURE__ */ f(dr, {
|
|
3969
|
-
className:
|
|
3970
|
+
className: Ja.dismiss,
|
|
3970
3971
|
onClick: n,
|
|
3971
3972
|
label: r,
|
|
3972
3973
|
size: 20
|
|
@@ -3974,7 +3975,7 @@ function Ja({ variant: e = "info", icon: t, onDismiss: n, dismissLabel: r = "Cer
|
|
|
3974
3975
|
children: a
|
|
3975
3976
|
});
|
|
3976
3977
|
}
|
|
3977
|
-
var
|
|
3978
|
+
var Xa = {
|
|
3978
3979
|
header: "_header_u329l_2",
|
|
3979
3980
|
titleSection: "_titleSection_u329l_12",
|
|
3980
3981
|
title: "_title_u329l_12",
|
|
@@ -3982,23 +3983,23 @@ var Ya = {
|
|
|
3982
3983
|
};
|
|
3983
3984
|
//#endregion
|
|
3984
3985
|
//#region src/layouts/AdminPageHeader/AdminPageHeader.tsx
|
|
3985
|
-
function
|
|
3986
|
+
function Za({ title: e, actions: t, "data-testid": n }) {
|
|
3986
3987
|
return /* @__PURE__ */ p("header", {
|
|
3987
|
-
className:
|
|
3988
|
+
className: Xa.header,
|
|
3988
3989
|
"data-testid": n,
|
|
3989
3990
|
children: [/* @__PURE__ */ f("div", {
|
|
3990
|
-
className:
|
|
3991
|
+
className: Xa.titleSection,
|
|
3991
3992
|
children: /* @__PURE__ */ f("span", {
|
|
3992
|
-
className:
|
|
3993
|
+
className: Xa.title,
|
|
3993
3994
|
children: e
|
|
3994
3995
|
})
|
|
3995
3996
|
}), t && /* @__PURE__ */ f("div", {
|
|
3996
|
-
className:
|
|
3997
|
+
className: Xa.actions,
|
|
3997
3998
|
children: t
|
|
3998
3999
|
})]
|
|
3999
4000
|
});
|
|
4000
4001
|
}
|
|
4001
|
-
var
|
|
4002
|
+
var Qa = {
|
|
4002
4003
|
shell: "_shell_h247i_2",
|
|
4003
4004
|
body: "_body_h247i_10",
|
|
4004
4005
|
sidebarSlot: "_sidebarSlot_h247i_17",
|
|
@@ -4008,12 +4009,12 @@ var Za = {
|
|
|
4008
4009
|
};
|
|
4009
4010
|
//#endregion
|
|
4010
4011
|
//#region src/layouts/AppShell/AppShell.tsx
|
|
4011
|
-
function
|
|
4012
|
+
function $a({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle: r, sidebar: i, children: a, tabBar: o, headerRight: s, isSidebarOpen: c = !1, sidebarMode: l = "overlay", contentPadding: u, isPinLocked: d = !1, pinLockContent: m, isLoading: h = !1, "data-testid": g }) {
|
|
4012
4013
|
return d ? /* @__PURE__ */ f(Pi, {
|
|
4013
4014
|
isLocked: !0,
|
|
4014
4015
|
children: m
|
|
4015
4016
|
}) : /* @__PURE__ */ p("div", {
|
|
4016
|
-
className:
|
|
4017
|
+
className: Qa.shell,
|
|
4017
4018
|
"data-sidebar-mode": l,
|
|
4018
4019
|
"data-testid": g,
|
|
4019
4020
|
children: [/* @__PURE__ */ f(_i, {
|
|
@@ -4025,83 +4026,83 @@ function Qa({ restaurantName: e, onMenuToggle: t, onLogoClick: n, onRightToggle:
|
|
|
4025
4026
|
isLoading: h,
|
|
4026
4027
|
rightSlot: s
|
|
4027
4028
|
}), /* @__PURE__ */ p("div", {
|
|
4028
|
-
className:
|
|
4029
|
+
className: Qa.body,
|
|
4029
4030
|
children: [/* @__PURE__ */ f("div", {
|
|
4030
|
-
className:
|
|
4031
|
+
className: Qa.sidebarSlot,
|
|
4031
4032
|
children: i
|
|
4032
4033
|
}), /* @__PURE__ */ p("div", {
|
|
4033
|
-
className:
|
|
4034
|
+
className: Qa.contentArea,
|
|
4034
4035
|
children: [/* @__PURE__ */ f("main", {
|
|
4035
|
-
className:
|
|
4036
|
+
className: Qa.main,
|
|
4036
4037
|
style: u ? { "--ds-appshell-content-padding": u } : void 0,
|
|
4037
4038
|
children: a
|
|
4038
4039
|
}), o && /* @__PURE__ */ f("div", {
|
|
4039
|
-
className:
|
|
4040
|
+
className: Qa.tabBarSlot,
|
|
4040
4041
|
children: o
|
|
4041
4042
|
})]
|
|
4042
4043
|
})]
|
|
4043
4044
|
})]
|
|
4044
4045
|
});
|
|
4045
4046
|
}
|
|
4046
|
-
var
|
|
4047
|
+
var eo = { divider: "_divider_1nit0_1" };
|
|
4047
4048
|
//#endregion
|
|
4048
4049
|
//#region src/layouts/Divider/Divider.tsx
|
|
4049
|
-
function
|
|
4050
|
+
function to({ orientation: e = "horizontal", spacing: t = "md", className: n, "data-testid": r }) {
|
|
4050
4051
|
return /* @__PURE__ */ f("hr", {
|
|
4051
|
-
className: [
|
|
4052
|
+
className: [eo.divider, n].filter(Boolean).join(" "),
|
|
4052
4053
|
"data-orientation": e,
|
|
4053
4054
|
"data-spacing": t,
|
|
4054
4055
|
"aria-orientation": e,
|
|
4055
4056
|
"data-testid": r
|
|
4056
4057
|
});
|
|
4057
4058
|
}
|
|
4058
|
-
var
|
|
4059
|
+
var no = { grid: "_grid_w5ah8_2" }, ro = {
|
|
4059
4060
|
xs: "var(--ds-space-1)",
|
|
4060
4061
|
sm: "var(--ds-space-2)",
|
|
4061
4062
|
md: "var(--ds-space-3)",
|
|
4062
4063
|
lg: "var(--ds-space-4)",
|
|
4063
4064
|
xl: "var(--ds-space-6)"
|
|
4064
4065
|
};
|
|
4065
|
-
function
|
|
4066
|
+
function io({ columns: e = 1, gap: t = "md", children: n, className: r, style: i, "data-testid": a }) {
|
|
4066
4067
|
let o = {
|
|
4067
4068
|
"--grid-columns": typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e,
|
|
4068
|
-
"--grid-gap":
|
|
4069
|
+
"--grid-gap": ro[t],
|
|
4069
4070
|
...i
|
|
4070
4071
|
};
|
|
4071
4072
|
return /* @__PURE__ */ f("div", {
|
|
4072
|
-
className: [
|
|
4073
|
+
className: [no.grid, r].filter(Boolean).join(" "),
|
|
4073
4074
|
style: o,
|
|
4074
4075
|
"data-testid": a,
|
|
4075
4076
|
children: n
|
|
4076
4077
|
});
|
|
4077
4078
|
}
|
|
4078
|
-
var
|
|
4079
|
+
var ao = {
|
|
4079
4080
|
footer: "_footer_1dat1_2",
|
|
4080
4081
|
dot: "_dot_1dat1_14",
|
|
4081
4082
|
info: "_info_1dat1_22"
|
|
4082
4083
|
};
|
|
4083
4084
|
//#endregion
|
|
4084
4085
|
//#region src/layouts/LoginFooter/LoginFooter.tsx
|
|
4085
|
-
function
|
|
4086
|
+
function oo({ languageSelector: e, appName: t = "Toteat©", version: n, env: r, className: i, "data-testid": a }) {
|
|
4086
4087
|
return /* @__PURE__ */ p("footer", {
|
|
4087
|
-
className: [
|
|
4088
|
+
className: [ao.footer, i].filter(Boolean).join(" "),
|
|
4088
4089
|
"data-testid": a,
|
|
4089
4090
|
children: [
|
|
4090
4091
|
e,
|
|
4091
4092
|
e && /* @__PURE__ */ f("span", {
|
|
4092
|
-
className:
|
|
4093
|
+
className: ao.dot,
|
|
4093
4094
|
"aria-hidden": "true"
|
|
4094
4095
|
}),
|
|
4095
4096
|
/* @__PURE__ */ f("span", {
|
|
4096
|
-
className:
|
|
4097
|
+
className: ao.info,
|
|
4097
4098
|
children: t
|
|
4098
4099
|
}),
|
|
4099
4100
|
(n || r) && /* @__PURE__ */ f("span", {
|
|
4100
|
-
className:
|
|
4101
|
+
className: ao.dot,
|
|
4101
4102
|
"aria-hidden": "true"
|
|
4102
4103
|
}),
|
|
4103
4104
|
(n || r) && /* @__PURE__ */ p("span", {
|
|
4104
|
-
className:
|
|
4105
|
+
className: ao.info,
|
|
4105
4106
|
children: [
|
|
4106
4107
|
n && /* @__PURE__ */ p(d, { children: ["Ver: ", n] }),
|
|
4107
4108
|
n && r && /* @__PURE__ */ f(d, { children: "\xA0\xA0" }),
|
|
@@ -4111,24 +4112,24 @@ function ao({ languageSelector: e, appName: t = "Toteat©", version: n, env: r,
|
|
|
4111
4112
|
]
|
|
4112
4113
|
});
|
|
4113
4114
|
}
|
|
4114
|
-
var
|
|
4115
|
+
var so = {
|
|
4115
4116
|
page: "_page_s8gdl_2",
|
|
4116
4117
|
card: "_card_s8gdl_45",
|
|
4117
4118
|
cardEntrance: "_cardEntrance_s8gdl_1"
|
|
4118
4119
|
};
|
|
4119
4120
|
//#endregion
|
|
4120
4121
|
//#region src/layouts/LoginPageLayout/LoginPageLayout.tsx
|
|
4121
|
-
function
|
|
4122
|
+
function co({ children: e, "data-testid": t }) {
|
|
4122
4123
|
return /* @__PURE__ */ f("main", {
|
|
4123
|
-
className:
|
|
4124
|
+
className: so.page,
|
|
4124
4125
|
"data-testid": t,
|
|
4125
4126
|
children: /* @__PURE__ */ f("div", {
|
|
4126
|
-
className:
|
|
4127
|
+
className: so.card,
|
|
4127
4128
|
children: e
|
|
4128
4129
|
})
|
|
4129
4130
|
});
|
|
4130
4131
|
}
|
|
4131
|
-
var
|
|
4132
|
+
var lo = {
|
|
4132
4133
|
root: "_root_1cmfb_2",
|
|
4133
4134
|
sidebar: "_sidebar_1cmfb_20",
|
|
4134
4135
|
main: "_main_1cmfb_37",
|
|
@@ -4137,22 +4138,22 @@ var co = {
|
|
|
4137
4138
|
};
|
|
4138
4139
|
//#endregion
|
|
4139
4140
|
//#region src/layouts/PageLayout/PageLayout.tsx
|
|
4140
|
-
function
|
|
4141
|
+
function uo({ sidebar: e, header: t, children: n, collapsed: r = !1, className: i, "data-testid": a }) {
|
|
4141
4142
|
return /* @__PURE__ */ p("div", {
|
|
4142
|
-
className: [
|
|
4143
|
+
className: [lo.root, i].filter(Boolean).join(" "),
|
|
4143
4144
|
"data-sidebar-collapsed": r ? "" : void 0,
|
|
4144
4145
|
"data-testid": a,
|
|
4145
4146
|
children: [e && /* @__PURE__ */ f("aside", {
|
|
4146
|
-
className:
|
|
4147
|
+
className: lo.sidebar,
|
|
4147
4148
|
"aria-label": "Navegación lateral",
|
|
4148
4149
|
children: e
|
|
4149
4150
|
}), /* @__PURE__ */ p("div", {
|
|
4150
|
-
className:
|
|
4151
|
+
className: lo.main,
|
|
4151
4152
|
children: [t && /* @__PURE__ */ f("header", {
|
|
4152
|
-
className:
|
|
4153
|
+
className: lo.header,
|
|
4153
4154
|
children: t
|
|
4154
4155
|
}), /* @__PURE__ */ f("main", {
|
|
4155
|
-
className:
|
|
4156
|
+
className: lo.content,
|
|
4156
4157
|
children: n
|
|
4157
4158
|
})]
|
|
4158
4159
|
})]
|
|
@@ -4160,36 +4161,36 @@ function lo({ sidebar: e, header: t, children: n, collapsed: r = !1, className:
|
|
|
4160
4161
|
}
|
|
4161
4162
|
//#endregion
|
|
4162
4163
|
//#region src/layouts/Stack/Stack.tsx
|
|
4163
|
-
var
|
|
4164
|
+
var fo = {
|
|
4164
4165
|
xs: "var(--ds-space-1)",
|
|
4165
4166
|
sm: "var(--ds-space-2)",
|
|
4166
4167
|
md: "var(--ds-space-3)",
|
|
4167
4168
|
lg: "var(--ds-space-4)",
|
|
4168
4169
|
xl: "var(--ds-space-6)",
|
|
4169
4170
|
"2xl": "var(--ds-space-8)"
|
|
4170
|
-
},
|
|
4171
|
+
}, po = {
|
|
4171
4172
|
start: "flex-start",
|
|
4172
4173
|
center: "center",
|
|
4173
4174
|
end: "flex-end",
|
|
4174
4175
|
between: "space-between",
|
|
4175
4176
|
around: "space-around",
|
|
4176
4177
|
evenly: "space-evenly"
|
|
4177
|
-
},
|
|
4178
|
+
}, mo = {
|
|
4178
4179
|
start: "flex-start",
|
|
4179
4180
|
center: "center",
|
|
4180
4181
|
end: "flex-end",
|
|
4181
4182
|
stretch: "stretch",
|
|
4182
4183
|
baseline: "baseline"
|
|
4183
4184
|
};
|
|
4184
|
-
function
|
|
4185
|
+
function ho({ as: e, direction: t = "vertical", gap: n = "md", align: r, justify: i, wrap: a = !1, children: o, className: s, style: c, ...l }) {
|
|
4185
4186
|
return /* @__PURE__ */ f(e ?? "div", {
|
|
4186
4187
|
className: s,
|
|
4187
4188
|
style: {
|
|
4188
4189
|
display: "flex",
|
|
4189
4190
|
flexDirection: t === "vertical" ? "column" : "row",
|
|
4190
|
-
gap:
|
|
4191
|
-
alignItems: r ?
|
|
4192
|
-
justifyContent: i ?
|
|
4191
|
+
gap: fo[n],
|
|
4192
|
+
alignItems: r ? mo[r] : void 0,
|
|
4193
|
+
justifyContent: i ? po[i] : void 0,
|
|
4193
4194
|
flexWrap: a ? "wrap" : void 0,
|
|
4194
4195
|
...c
|
|
4195
4196
|
},
|
|
@@ -4199,15 +4200,15 @@ function mo({ as: e, direction: t = "vertical", gap: n = "md", align: r, justify
|
|
|
4199
4200
|
}
|
|
4200
4201
|
//#endregion
|
|
4201
4202
|
//#region src/utils/csv.ts
|
|
4202
|
-
function
|
|
4203
|
+
function go(e) {
|
|
4203
4204
|
if (e == null || typeof e == "number" && !Number.isFinite(e)) return "";
|
|
4204
4205
|
let t = String(e);
|
|
4205
4206
|
return /[",\r\n]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
|
|
4206
4207
|
}
|
|
4207
|
-
function
|
|
4208
|
-
return e.map((e) => e.map(
|
|
4208
|
+
function _o(e) {
|
|
4209
|
+
return e.map((e) => e.map(go).join(",")).join("\r\n");
|
|
4209
4210
|
}
|
|
4210
4211
|
//#endregion
|
|
4211
|
-
export { En as Accordion,
|
|
4212
|
+
export { En as Accordion, Za as AdminPageHeader, $a as AppShell, jn as AppleSignInButton, Gn as AreaChart, Nn as BackgroundWrapper, Fn as Badge, Ln as Banner, Wn as BarChart, zn as Breadcrumb, R as Button, Vn as Card, Jn as Checkbox, Xn as ComingSoon, Qn as ConfigRow, rr as DataTable, ar as DatePicker, or as DateRangePicker, pr as Dialog, to as Divider, Fr as DropZone, br as DropdownButton, Sr as DropdownMenu, Ir as DsProvider, Rr as EmptyState, zr as ErrorBoundary, Br as ExtrasDialog, Hr as FormField, Wr as GoogleSignInButton, io as Grid, qr as GroupedButtons, Yr as Header, L as Icon, kr as ImagePreview, Kn as KpiCard, Xr as LanguageSelector, Un as LineChart, oo as LoginFooter, co as LoginPageLayout, ci as LogoToteat, ui as Multiselect, _i as NavBar, yi as Overlay, Ci as OverlayMessage, uo as PageLayout, ji as PageLoadingOverlay, Mi as PermissionGate, Pi as PinLockOverlay, Li as ProductTile, zi as Radio, Vi as SearchInput, Ui as SectionHeader, qi as Select, gi as Sidebar, Zi as SidebarNavItem, ea as SidebarNavSection, Tr as Skeleton, On as Spinner, ho as Stack, ta as StatusBadge, ia as StatusBanner, oa as Stepper, ca as Tab, ua as TabBar, fa as Tabs, va as TextInput, ma as Textarea, ya as ThemeGate, ka as ToastContainer, ja as Toggle, Fa as Tooltip, Ha as TreeItem, qa as TreeList, Ya as UserNotification, z as cn, go as escapeCell, hr as portal, _o as rowsToCsv, Xi as sidebarNavItemActiveClass, Yi as sidebarNavItemClass, lr as useFocusTrap, Da as useToast };
|
|
4212
4213
|
|
|
4213
4214
|
//# sourceMappingURL=index.es.js.map
|