@selectwin/kit 0.1.45 → 0.1.47
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.js +1134 -1135
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as q, useEffect as le, forwardRef as R, useState as D, useId as te, useMemo as xe, useCallback as Te, useLayoutEffect as Be, Fragment as
|
|
2
|
+
import { useRef as q, useEffect as le, forwardRef as R, useState as D, useId as te, useMemo as xe, useCallback as Te, useLayoutEffect as Be, Fragment as Gt, Children as kl, useContext as Ut, createContext as qt } from "react";
|
|
3
3
|
import Me from "gsap";
|
|
4
4
|
import { createPortal as Ft } from "react-dom";
|
|
5
5
|
import { Link as wl, useNavigate as Sl } from "react-router-dom";
|
|
6
|
-
const
|
|
6
|
+
const cn = (t, n, l) => t < n ? n : t > l ? l : t;
|
|
7
7
|
function Cl(t, n, l) {
|
|
8
8
|
const c = t.getPropertyValue(n).match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
9
9
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : l;
|
|
@@ -20,7 +20,7 @@ function Ll(t, n) {
|
|
|
20
20
|
const c = l.match(/(\d+)[,\s]+(\d+)[,\s]+(\d+)/);
|
|
21
21
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function la({ className: t, theme: n, glowTarget: l }) {
|
|
24
24
|
const c = q(null);
|
|
25
25
|
return le(() => {
|
|
26
26
|
var Q;
|
|
@@ -52,7 +52,7 @@ function na({ className: t, theme: n, glowTarget: l }) {
|
|
|
52
52
|
if (!A) return;
|
|
53
53
|
const oe = A.getBoundingClientRect(), $e = oe.left - L + oe.width / 2, Ce = oe.top - B + oe.height / 2, Le = oe.width / 2, Ne = oe.height / 2, Ie = (z - $e) / (Le + x), ke = (pe - Ce) / (Ne + x), Ue = Math.sqrt(Ie * Ie + ke * ke), He = Ue < 1 ? 1 - Ue : 0, Fe = He * He * (3 - 2 * He);
|
|
54
54
|
if (Fe > 1e-3 || F > 1e-3) {
|
|
55
|
-
const P =
|
|
55
|
+
const P = cn((z - $e) / Math.max(Le, 1), -1, 1) * 10 * Fe, V = cn((pe - Ce) / Math.max(Ne, 1), -1, 1) * 10 * Fe;
|
|
56
56
|
A.style.setProperty("--select-card-glow", Fe.toFixed(3)), A.style.setProperty("--select-card-glow-rgb", `${de}, ${me}, ${he}`), A.style.setProperty("--select-card-glow-x", `${P.toFixed(1)}px`), A.style.setProperty("--select-card-glow-y", `${V.toFixed(1)}px`);
|
|
57
57
|
}
|
|
58
58
|
F = Fe;
|
|
@@ -90,7 +90,7 @@ function na({ className: t, theme: n, glowTarget: l }) {
|
|
|
90
90
|
});
|
|
91
91
|
}, [n, l]), /* @__PURE__ */ e("canvas", { ref: c, className: t, "aria-hidden": "true" });
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const ca = ["dots", "plexus", "grid", "flow", "circuit"], tt = Math.PI * 2, Ye = (t, n, l) => t < n ? n : t > l ? l : t, $t = (t, n, l) => t + (n - t) * l;
|
|
94
94
|
function Al(t, n, l) {
|
|
95
95
|
const c = t.getPropertyValue(n).match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
96
96
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : l;
|
|
@@ -364,7 +364,7 @@ const Bl = (t) => {
|
|
|
364
364
|
flow: Pl,
|
|
365
365
|
circuit: Rl
|
|
366
366
|
};
|
|
367
|
-
function
|
|
367
|
+
function sa({
|
|
368
368
|
className: t,
|
|
369
369
|
theme: n,
|
|
370
370
|
glowTarget: l,
|
|
@@ -424,7 +424,7 @@ function ca({
|
|
|
424
424
|
});
|
|
425
425
|
}, [n, l, c]), /* @__PURE__ */ e("canvas", { ref: s, className: t, "aria-hidden": "true" });
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const aa = R(function({ title: n, subtitle: l, logo: c, mark: s, children: a, footer: r, className: i, ...o }, d) {
|
|
428
428
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-card${i ? " " + i : ""}`, children: [
|
|
429
429
|
/* @__PURE__ */ m("div", { className: "select-card__body", children: [
|
|
430
430
|
c && /* @__PURE__ */ e("div", { className: "select-card__brand", children: c }),
|
|
@@ -483,7 +483,7 @@ const sa = R(function({ title: n, subtitle: l, logo: c, mark: s, children: a, fo
|
|
|
483
483
|
!s && r && /* @__PURE__ */ e("span", { className: "select-btn__icon select-btn__icon--trailing", children: r })
|
|
484
484
|
] });
|
|
485
485
|
});
|
|
486
|
-
function
|
|
486
|
+
function oa() {
|
|
487
487
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
488
488
|
/* @__PURE__ */ e(
|
|
489
489
|
"path",
|
|
@@ -515,7 +515,7 @@ function aa() {
|
|
|
515
515
|
)
|
|
516
516
|
] });
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function ra() {
|
|
519
519
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
520
520
|
"path",
|
|
521
521
|
{
|
|
@@ -527,19 +527,19 @@ function oa() {
|
|
|
527
527
|
function dt() {
|
|
528
528
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" }) });
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Yt() {
|
|
531
531
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08" }) });
|
|
532
532
|
}
|
|
533
533
|
function be() {
|
|
534
534
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" }) });
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Dn() {
|
|
537
537
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" }) });
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function ia() {
|
|
540
540
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10" }) });
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function zt() {
|
|
543
543
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2" }) });
|
|
544
544
|
}
|
|
545
545
|
function kt() {
|
|
@@ -549,19 +549,19 @@ function kt() {
|
|
|
549
549
|
/* @__PURE__ */ e("path", { d: "M22 10h-4c-3 0-4-1-4-4V2l8 8Z" })
|
|
550
550
|
] });
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Xt() {
|
|
553
553
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
554
554
|
/* @__PURE__ */ e("path", { d: "M16 12.9v4.2c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9z" }),
|
|
555
555
|
/* @__PURE__ */ e("path", { d: "M22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16v-3.1C16 9.4 14.6 8 11.1 8H8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9z" })
|
|
556
556
|
] });
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Tn() {
|
|
559
559
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2" }) });
|
|
560
560
|
}
|
|
561
561
|
function Ke() {
|
|
562
562
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 6 18 18M18 6 6 18" }) });
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function da() {
|
|
565
565
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z" }) });
|
|
566
566
|
}
|
|
567
567
|
function Tl() {
|
|
@@ -572,23 +572,23 @@ function Tl() {
|
|
|
572
572
|
/* @__PURE__ */ e("path", { d: "M14 21a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" })
|
|
573
573
|
] });
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function ha() {
|
|
576
576
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
577
577
|
/* @__PURE__ */ e("path", { d: "M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z" }),
|
|
578
578
|
/* @__PURE__ */ e("path", { d: "m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1" })
|
|
579
579
|
] });
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function ua() {
|
|
582
582
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
583
583
|
/* @__PURE__ */ e("path", { d: "M9.25 9.05a8 8 0 0 0 5.5 0" }),
|
|
584
584
|
/* @__PURE__ */ e("path", { d: "M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2Z" }),
|
|
585
585
|
/* @__PURE__ */ e("path", { d: "M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2Z" })
|
|
586
586
|
] });
|
|
587
587
|
}
|
|
588
|
-
const
|
|
588
|
+
const pa = R(function({ filled: n = !1, className: l, ...c }, s) {
|
|
589
589
|
return n ? /* @__PURE__ */ e("svg", { ref: s, ...c, className: l, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5.74 16c.11-.49-.09-1.19-.44-1.54l-2.43-2.43c-.76-.76-1.06-1.57-.84-2.27.23-.7.94-1.18 2-1.36l3.12-.52c.45-.08 1-.48 1.21-.89l1.72-3.45C10.58 2.55 11.26 2 12 2s1.42.55 1.92 1.54l1.72 3.45c.13.26.4.51.69.68L5.56 18.44c-.14.14-.38.01-.34-.19L5.74 16ZM18.7 14.462c-.36.36-.56 1.05-.44 1.54l.69 3.01c.29 1.25.11 2.19-.51 2.64a1.5 1.5 0 0 1-.9.27c-.51 0-1.11-.19-1.77-.58l-2.93-1.74c-.46-.27-1.22-.27-1.68 0l-2.93 1.74c-1.11.65-2.06.76-2.67.31-.23-.17-.4-.4-.51-.7l12.16-12.16c.46-.46 1.11-.67 1.74-.56l1.01.17c1.06.18 1.77.66 2 1.36.22.7-.08 1.51-.84 2.27l-2.42 2.43Z" }) }) : /* @__PURE__ */ e("svg", { ref: s, ...c, className: l, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m13.73 3.51 1.76 3.52c.24.49.88.96 1.42 1.05l3.19.53c2.04.34 2.52 1.82 1.05 3.28l-2.48 2.48c-.42.42-.65 1.23-.52 1.81l.71 3.07c.56 2.43-.73 3.37-2.88 2.1l-2.99-1.77c-.54-.32-1.43-.32-1.98 0l-2.99 1.77c-2.14 1.27-3.44.32-2.88-2.1l.71-3.07c.13-.58-.1-1.39-.52-1.81l-2.48-2.48c-1.46-1.46-.99-2.94 1.05-3.28l3.19-.53c.53-.09 1.17-.56 1.41-1.05l1.76-3.52c.96-1.91 2.52-1.91 3.47 0Z" }) });
|
|
590
590
|
});
|
|
591
|
-
function
|
|
591
|
+
function ma() {
|
|
592
592
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M16.96 6.17c2 1.39 3.38 3.6 3.66 6.15M3.49 12.37a8.601 8.601 0 0 1 3.6-6.15M8.19 20.94c1.16.59 2.48.92 3.87.92 1.34 0 2.6-.3 3.73-.85M12.06 7.7a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56ZM4.83 19.92a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56ZM19.17 19.92a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56Z" }) });
|
|
593
593
|
}
|
|
594
594
|
function Wl() {
|
|
@@ -598,13 +598,13 @@ function Wl() {
|
|
|
598
598
|
/* @__PURE__ */ e("path", { d: "M3 16v-1a28.424 28.424 0 0 0 18 0v1M3 9a28.424 28.424 0 0 1 18 0" })
|
|
599
599
|
] });
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Wn() {
|
|
602
602
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
603
603
|
/* @__PURE__ */ e("path", { d: "m8 9 4-4 4 4" }),
|
|
604
604
|
/* @__PURE__ */ e("path", { d: "m16 15-4 4-4-4" })
|
|
605
605
|
] });
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Kt() {
|
|
608
608
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
609
609
|
/* @__PURE__ */ e("path", { d: "M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5" }),
|
|
610
610
|
/* @__PURE__ */ e("path", { d: "M11.995 16h.009" })
|
|
@@ -616,10 +616,10 @@ function Ol() {
|
|
|
616
616
|
/* @__PURE__ */ e("path", { d: "M11.995 17h.009" })
|
|
617
617
|
] });
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function fa() {
|
|
620
620
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7" }) });
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function _a() {
|
|
623
623
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
624
624
|
/* @__PURE__ */ e("path", { d: "M12.02 2.91c-3.31 0-6 2.69-6 6v2.89c0 .61-.26 1.54-.57 2.06L4.3 15.77c-.71 1.18-.22 2.49 1.08 2.93 4.31 1.44 8.96 1.44 13.27 0 1.21-.4 1.74-1.83 1.08-2.93l-1.15-1.91c-.3-.52-.56-1.45-.56-2.06V8.91c0-3.3-2.7-6-6-6Z" }),
|
|
625
625
|
/* @__PURE__ */ e("path", { d: "M13.87 3.2a6.754 6.754 0 0 0-3.7 0c.29-.74 1.01-1.26 1.85-1.26.84 0 1.56.52 1.85 1.26Z" }),
|
|
@@ -632,7 +632,7 @@ function Hl() {
|
|
|
632
632
|
/* @__PURE__ */ e("path", { d: "M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8" })
|
|
633
633
|
] });
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function va() {
|
|
636
636
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
637
637
|
/* @__PURE__ */ e("path", { d: "M5 15c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.8-.9.8-2.2 0-3a2.1 2.1 0 0 0-3 0Z" }),
|
|
638
638
|
/* @__PURE__ */ e("path", { d: "M9 12a13 13 0 0 1 9-9 13 13 0 0 1-9 9Z" }),
|
|
@@ -655,7 +655,7 @@ function Vl() {
|
|
|
655
655
|
function Zl() {
|
|
656
656
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z" }) });
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function On() {
|
|
659
659
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9" }) });
|
|
660
660
|
}
|
|
661
661
|
function Gl() {
|
|
@@ -670,25 +670,25 @@ function Ul() {
|
|
|
670
670
|
function nt() {
|
|
671
671
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 12h12M12 18V6" }) });
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ga() {
|
|
674
674
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
675
675
|
/* @__PURE__ */ e("path", { d: "M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7" }),
|
|
676
676
|
/* @__PURE__ */ e("path", { d: "M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z" })
|
|
677
677
|
] });
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ba() {
|
|
680
680
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
681
681
|
/* @__PURE__ */ e("path", { d: "M20.75 13.25c0 4.83-3.92 8.75-8.75 8.75s-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75ZM12 8v5" }),
|
|
682
682
|
/* @__PURE__ */ e("path", { d: "M9 2h6" })
|
|
683
683
|
] });
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function xa() {
|
|
686
686
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
687
687
|
/* @__PURE__ */ e("path", { d: "M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z" }),
|
|
688
688
|
/* @__PURE__ */ e("path", { d: "m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9" })
|
|
689
689
|
] });
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function ya() {
|
|
692
692
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
693
693
|
"path",
|
|
694
694
|
{
|
|
@@ -697,20 +697,20 @@ function xa() {
|
|
|
697
697
|
}
|
|
698
698
|
) });
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Na() {
|
|
701
701
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M17.05 12.54c-.02-2.05 1.68-3.03 1.75-3.08-.95-1.4-2.44-1.59-2.97-1.61-1.26-.13-2.47.74-3.11.74-.64 0-1.63-.72-2.69-.7-1.38.02-2.66.8-3.37 2.04-1.44 2.5-.37 6.19 1.03 8.22.69.99 1.5 2.1 2.57 2.06 1.03-.04 1.42-.66 2.66-.66 1.24 0 1.59.66 2.68.64 1.11-.02 1.81-1 2.49-2 .78-1.15 1.1-2.26 1.12-2.32-.02-.01-2.15-.83-2.17-3.27ZM15.1 6.34c.56-.69.94-1.63.84-2.59-.81.03-1.8.54-2.39 1.22-.52.6-.98 1.57-.86 2.49.91.07 1.84-.46 2.41-1.12Z" }) });
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Ma() {
|
|
704
704
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
705
705
|
/* @__PURE__ */ e("path", { d: "M12 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z" }),
|
|
706
706
|
/* @__PURE__ */ e("path", { d: "M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49" }),
|
|
707
707
|
/* @__PURE__ */ e("path", { d: "M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2" })
|
|
708
708
|
] });
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function $a() {
|
|
711
711
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83" }) });
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function ka() {
|
|
714
714
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
715
715
|
/* @__PURE__ */ e("path", { d: "M10.49 2.23 5.5 4.11c-1.15.43-2.09 1.79-2.09 3.01v7.43c0 1.18.78 2.73 1.73 3.44l4.3 3.21c1.41 1.06 3.73 1.06 5.14 0l4.3-3.21c.95-.71 1.73-2.26 1.73-3.44V7.12c0-1.23-.94-2.59-2.09-3.02l-4.99-1.87c-.85-.31-2.21-.31-3.04 0Z" }),
|
|
716
716
|
/* @__PURE__ */ e("path", { d: "m9.05 11.87 1.61 1.61 4.3-4.3" })
|
|
@@ -719,13 +719,13 @@ function $a() {
|
|
|
719
719
|
function Ae() {
|
|
720
720
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 12.5 10 17.5 19 6.5" }) });
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Hn() {
|
|
723
723
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
724
724
|
/* @__PURE__ */ e("path", { d: "M15.58 12c0 1.98-1.6 3.58-3.58 3.58S8.42 13.98 8.42 12s1.6-3.58 3.58-3.58 3.58 1.6 3.58 3.58Z" }),
|
|
725
725
|
/* @__PURE__ */ e("path", { d: "M12 20.27c3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-2.29-3.6-5.58-5.68-9.11-5.68-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19 2.29 3.6 5.58 5.68 9.11 5.68Z" })
|
|
726
726
|
] });
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function jn() {
|
|
729
729
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
730
730
|
/* @__PURE__ */ e("path", { d: "m14.53 9.47-5.06 5.06a3.576 3.576 0 1 1 5.06-5.06Z" }),
|
|
731
731
|
/* @__PURE__ */ e("path", { d: "M17.82 5.77C16.07 4.45 14.07 3.73 12 3.73c-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19.79 1.24 1.71 2.31 2.71 3.17M8.42 19.53c1.14.48 2.35.74 3.58.74 3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-.33-.52-.69-1.01-1.06-1.47" }),
|
|
@@ -738,32 +738,32 @@ function ql() {
|
|
|
738
738
|
/* @__PURE__ */ e("path", { d: "m7.75 12 2.83 2.83 5.67-5.66" })
|
|
739
739
|
] });
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function wa() {
|
|
742
742
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
743
743
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "4" }),
|
|
744
744
|
/* @__PURE__ */ e("path", { d: "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.9 7.9" })
|
|
745
745
|
] });
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Sa() {
|
|
748
748
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M16.29 2.15H7.7C6 2.15 5.25 3 4.79 4.04L2.23 9.8c-.46 1.04-.21 2.59.56 3.43l6.86 7.54c1.3 1.42 3.42 1.42 4.71 0l6.85-7.55c.77-.85 1.02-2.39.55-3.43L19.2 4.03c-.46-1.03-1.21-1.88-2.91-1.88ZM3.5 8h17" }) });
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ca() {
|
|
751
751
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
752
752
|
/* @__PURE__ */ e("path", { d: "M6.7 18H4.15C2.72 18 2 17.28 2 15.85V4.15C2 2.72 2.72 2 4.15 2h4.3c1.43 0 2.15.72 2.15 2.15V6" }),
|
|
753
753
|
/* @__PURE__ */ e("path", { d: "M17.37 8.42v11.16c0 1.61-.8 2.42-2.41 2.42H9.12c-1.61 0-2.42-.81-2.42-2.42V8.42C6.7 6.81 7.51 6 9.12 6h5.84c1.61 0 2.41.81 2.41 2.42Z" }),
|
|
754
754
|
/* @__PURE__ */ e("path", { d: "M13.4 6V4.15c0-1.43.72-2.15 2.15-2.15h4.3C21.28 2 22 2.72 22 4.15v11.7c0 1.43-.72 2.15-2.15 2.15h-2.48M10 11h4M10 14h4M12 22v-3" })
|
|
755
755
|
] });
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function La() {
|
|
758
758
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
759
759
|
/* @__PURE__ */ e("path", { d: "M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3" }),
|
|
760
760
|
/* @__PURE__ */ e("path", { d: "M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" })
|
|
761
761
|
] });
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function Vn() {
|
|
764
764
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M21 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3L3 5.98M8.5 4.97l.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M18.85 9.14l-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14M10.33 16.5h3.33M9.5 12.5h5" }) });
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Aa() {
|
|
767
767
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12ZM12 17.99v-3" }) });
|
|
768
768
|
}
|
|
769
769
|
function Yl() {
|
|
@@ -772,44 +772,44 @@ function Yl() {
|
|
|
772
772
|
/* @__PURE__ */ e("path", { d: "M2 12.88v-1.76c0-1.04.85-1.9 1.9-1.9 1.81 0 2.55-1.28 1.64-2.85-.52-.9-.21-2.07.7-2.59l1.73-.99c.79-.47 1.81-.19 2.28.6l.11.19c.9 1.57 2.38 1.57 3.29 0l.11-.19c.47-.79 1.49-1.07 2.28-.6l1.73.99c.91.52 1.22 1.69.7 2.59-.91 1.57-.17 2.85 1.64 2.85 1.04 0 1.9.85 1.9 1.9v1.76c0 1.04-.85 1.9-1.9 1.9-1.81 0-2.55 1.28-1.64 2.85.52.91.21 2.07-.7 2.59l-1.73.99c-.79.47-1.81.19-2.28-.6l-.11-.19c-.9-1.57-2.38-1.57-3.29 0l-.11.19c-.47.79-1.49 1.07-2.28.6l-1.73-.99a1.899 1.899 0 0 1-.7-2.59c.91-1.57.17-2.85-1.64-2.85-1.05 0-1.9-.86-1.9-1.9Z" })
|
|
773
773
|
] });
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Fa() {
|
|
776
776
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
777
777
|
/* @__PURE__ */ e("path", { d: "M13 11.15H7M2 11.15V6.53c0-2.04 1.65-3.69 3.69-3.69h5.62c2.04 0 3.69 1.27 3.69 3.31" }),
|
|
778
778
|
/* @__PURE__ */ e("path", { d: "M17.48 12.2c-.5.48-.74 1.22-.54 1.98.25.93 1.17 1.52 2.13 1.52H20v1.45c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4v-7c0-2.21 1.79-4 4-4h10c2.2 0 4 1.8 4 4v1.45h-1.08c-.56 0-1.07.22-1.44.6Z" }),
|
|
779
779
|
/* @__PURE__ */ e("path", { d: "M22 12.62v2.06c0 .56-.46 1.02-1.03 1.02h-1.93c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.05c.57 0 1.03.46 1.03 1.02Z" })
|
|
780
780
|
] });
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ba() {
|
|
783
783
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
784
784
|
/* @__PURE__ */ e("path", { d: "M2 8.505h20M6 16.505h2M10.5 16.505h4" }),
|
|
785
785
|
/* @__PURE__ */ e("path", { d: "M6.44 3.505h11.11c3.56 0 4.45.88 4.45 4.39v8.21c0 3.51-.89 4.39-4.44 4.39H6.44c-3.55.01-4.44-.87-4.44-4.38v-8.22c0-3.51.89-4.39 4.44-4.39Z" })
|
|
786
786
|
] });
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Ea() {
|
|
789
789
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
790
790
|
/* @__PURE__ */ e("path", { d: "m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z" }),
|
|
791
791
|
/* @__PURE__ */ e("path", { d: "M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18" })
|
|
792
792
|
] });
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function Ia() {
|
|
795
795
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59" }) });
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Pa() {
|
|
798
798
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
799
799
|
/* @__PURE__ */ e("path", { d: "M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" }),
|
|
800
800
|
/* @__PURE__ */ e("path", { d: "M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z" })
|
|
801
801
|
] });
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Zn() {
|
|
804
804
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
805
805
|
/* @__PURE__ */ e("path", { d: "M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z" }),
|
|
806
806
|
/* @__PURE__ */ e("path", { d: "M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01" })
|
|
807
807
|
] });
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Gn() {
|
|
810
810
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52" }) });
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Ra() {
|
|
813
813
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8" }) });
|
|
814
814
|
}
|
|
815
815
|
function zl() {
|
|
@@ -824,35 +824,35 @@ function Xl() {
|
|
|
824
824
|
/* @__PURE__ */ e("path", { d: "M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8" })
|
|
825
825
|
] });
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Da() {
|
|
828
828
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
829
829
|
/* @__PURE__ */ e("path", { d: "m3.989 14.66-1.52-1.52c-.62-.62-.62-1.64 0-2.26l1.52-1.52c.26-.26.47-.77.47-1.13V6.08c0-.88.72-1.6 1.6-1.6h2.15c.36 0 .87-.21 1.13-.47l1.52-1.52c.62-.62 1.64-.62 2.26 0l1.52 1.52c.26.26.77.47 1.13.47h2.15c.88 0 1.6.72 1.6 1.6v2.15c0 .36.21.87.47 1.13l1.52 1.52c.62.62.62 1.64 0 2.26l-1.52 1.52c-.26.26-.47.77-.47 1.13v2.15c0 .88-.72 1.6-1.6 1.6h-2.15c-.36 0-.87.21-1.13.47l-1.52 1.52c-.62.62-1.64.62-2.26 0l-1.52-1.52c-.26-.26-.77-.47-1.13-.47h-2.15c-.88 0-1.6-.72-1.6-1.6v-2.15c0-.37-.21-.88-.47-1.13ZM9 15l6-6" }),
|
|
830
830
|
/* @__PURE__ */ e("path", { d: "M14.495 14.5h.009M9.495 9.5h.008" })
|
|
831
831
|
] });
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Ta() {
|
|
834
834
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
835
835
|
/* @__PURE__ */ e("path", { d: "M2 2v17c0 1.66 1.34 3 3 3h17" }),
|
|
836
836
|
/* @__PURE__ */ e("path", { d: "m5 17 4.59-5.36c.76-.88 2.11-.94 2.93-.11l.95.95c.82.82 2.17.77 2.93-.11L21 7" })
|
|
837
837
|
] });
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Wa() {
|
|
840
840
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
841
841
|
/* @__PURE__ */ e("path", { d: "M3.01 11.22v4.49C3.01 20.2 4.81 22 9.3 22h5.39c4.49 0 6.29-1.8 6.29-6.29v-4.49" }),
|
|
842
842
|
/* @__PURE__ */ e("path", { d: "M12 12c1.83 0 3.18-1.49 3-3.32L14.34 2H9.67L9 8.68C8.82 10.51 10.17 12 12 12Z" }),
|
|
843
843
|
/* @__PURE__ */ e("path", { d: "M18.31 12c2.02 0 3.5-1.64 3.3-3.65l-.28-2.75C20.97 3 19.97 2 17.35 2H14.3l.7 7.01c.17 1.65 1.66 2.99 3.31 2.99ZM5.64 12c1.65 0 3.14-1.34 3.3-2.99l.22-2.21.48-4.8H6.59C3.97 2 2.97 3 2.61 5.6l-.27 2.75C2.14 10.36 3.62 12 5.64 12ZM12 17c-1.67 0-2.5.83-2.5 2.5V22h5v-2.5c0-1.67-.83-2.5-2.5-2.5Z" })
|
|
844
844
|
] });
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Oa() {
|
|
847
847
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3H5C3 2 2 3 2 5v2c0 2 1 3 3 3ZM17 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM17 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM5 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3H5c-2 0-3 1-3 3v2c0 2 1 3 3 3Z" }) });
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ha() {
|
|
850
850
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8" }) });
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function ja() {
|
|
853
853
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M3 7h18M3 12h18M3 17h18" }) });
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Va() {
|
|
856
856
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
857
857
|
/* @__PURE__ */ e("path", { d: "M13 22H5c-2 0-3-1-3-3v-8c0-2 1-3 3-3h5v11c0 2 1 3 3 3ZM10.11 4c-.08.3-.11.63-.11 1v3H5V6c0-1.1.9-2 2-2h3.11ZM14 8v5M18 8v5M17 17h-2c-.55 0-1 .45-1 1v4h4v-4c0-.55-.45-1-1-1ZM6 13v4" }),
|
|
858
858
|
/* @__PURE__ */ e("path", { d: "M10 19V5c0-2 1-3 3-3h6c2 0 3 1 3 3v14c0 2-1 3-3 3h-6c-2 0-3-1-3-3Z" })
|
|
@@ -862,7 +862,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
862
862
|
return /* @__PURE__ */ m("div", { ref: i, ...r, className: `select-field__labelrow${a ? " " + a : ""}`, children: [
|
|
863
863
|
/* @__PURE__ */ m("span", { className: "select-field__labelwrap", children: [
|
|
864
864
|
/* @__PURE__ */ e("label", { className: "select-field__label", htmlFor: n, children: l }),
|
|
865
|
-
c && /* @__PURE__ */ e("span", { className: "select-field__info", title: c, "aria-label": c, children: /* @__PURE__ */ e(
|
|
865
|
+
c && /* @__PURE__ */ e("span", { className: "select-field__info", title: c, "aria-label": c, children: /* @__PURE__ */ e(Kt, {}) })
|
|
866
866
|
] }),
|
|
867
867
|
s
|
|
868
868
|
] });
|
|
@@ -912,7 +912,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
912
912
|
className: "select-input__reveal",
|
|
913
913
|
onClick: () => Z((de) => !de),
|
|
914
914
|
"aria-label": W ? "Ocultar senha" : "Mostrar senha",
|
|
915
|
-
children: W ? /* @__PURE__ */ e(
|
|
915
|
+
children: W ? /* @__PURE__ */ e(jn, {}) : /* @__PURE__ */ e(Hn, {})
|
|
916
916
|
}
|
|
917
917
|
),
|
|
918
918
|
Se && /* @__PURE__ */ m("span", { className: "select-stepper", children: [
|
|
@@ -925,7 +925,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
925
925
|
"aria-label": "Aumentar",
|
|
926
926
|
disabled: N || z,
|
|
927
927
|
onClick: () => H(1),
|
|
928
|
-
children: /* @__PURE__ */ e(
|
|
928
|
+
children: /* @__PURE__ */ e(Gn, {})
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
931
|
/* @__PURE__ */ e(
|
|
@@ -944,7 +944,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
944
944
|
] }),
|
|
945
945
|
d ? /* @__PURE__ */ e("p", { id: `${O}-err`, className: "select-field__error", children: d }) : o ? /* @__PURE__ */ e("p", { id: `${O}-hint`, className: "select-field__hint", children: o }) : null
|
|
946
946
|
] });
|
|
947
|
-
}),
|
|
947
|
+
}), Za = R(function({ label: n, checked: l, onChange: c, disabled: s, hint: a, name: r, className: i, ...o }, d) {
|
|
948
948
|
return /* @__PURE__ */ m("span", { ref: d, ...o, className: `select-checkbox-field${s ? " select-checkbox-field--disabled" : ""}${i ? " " + i : ""}`, children: [
|
|
949
949
|
/* @__PURE__ */ m("label", { className: "select-checkbox", children: [
|
|
950
950
|
/* @__PURE__ */ e(
|
|
@@ -962,7 +962,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
962
962
|
] }),
|
|
963
963
|
a && /* @__PURE__ */ e("span", { className: "select-checkbox__hint", children: a })
|
|
964
964
|
] });
|
|
965
|
-
}),
|
|
965
|
+
}), Ga = R(function({ label: n, value: l, onChange: c, labelAction: s, info: a, description: r, hint: i, error: o, placeholder: d, rows: u = 4, mono: h, name: f, required: g, disabled: v, maxLength: x, onBlur: N, size: $ = "md", className: _, ...p }, b) {
|
|
966
966
|
const S = te(), k = o ? `${S}-err` : i ? `${S}-hint` : void 0;
|
|
967
967
|
return /* @__PURE__ */ m("div", { ref: b, ...p, className: `select-field${$ === "sm" ? " select-field--sm" : ""}${_ ? " " + _ : ""}`, children: [
|
|
968
968
|
(n || a || s) && /* @__PURE__ */ e(lt, { htmlFor: S, label: n, info: a, action: s }),
|
|
@@ -987,7 +987,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
987
987
|
),
|
|
988
988
|
o ? /* @__PURE__ */ e("p", { id: `${S}-err`, className: "select-field__error", children: o }) : i ? /* @__PURE__ */ e("p", { id: `${S}-hint`, className: "select-field__hint", children: i }) : null
|
|
989
989
|
] });
|
|
990
|
-
}),
|
|
990
|
+
}), Ua = R(function({ label: n, value: l, onChange: c, unit: s, info: a, hint: r, error: i, placeholder: o = "0", disabled: d = !1, min: u, max: h, className: f, ...g }, v) {
|
|
991
991
|
const x = te();
|
|
992
992
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${f ? " " + f : ""}`, children: [
|
|
993
993
|
n && /* @__PURE__ */ e(lt, { htmlFor: x, label: n, info: a }),
|
|
@@ -1014,7 +1014,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
1014
1014
|
}), Kl = new Intl.NumberFormat("pt-BR", {
|
|
1015
1015
|
minimumFractionDigits: 2,
|
|
1016
1016
|
maximumFractionDigits: 2
|
|
1017
|
-
}),
|
|
1017
|
+
}), qa = R(function({ label: n, value: l, onChange: c, info: s, hint: a, error: r, onBlur: i, placeholder: o = "0,00", name: d, disabled: u = !1, size: h = "md", className: f, ...g }, v) {
|
|
1018
1018
|
const x = te();
|
|
1019
1019
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${h === "sm" ? " select-field--sm" : ""}${f ? " " + f : ""}`, children: [
|
|
1020
1020
|
n && /* @__PURE__ */ e(lt, { htmlFor: x, label: n, info: s }),
|
|
@@ -1050,18 +1050,18 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
1050
1050
|
r ? /* @__PURE__ */ e("p", { className: "select-field__error", children: r }) : a ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: a }) : null
|
|
1051
1051
|
] });
|
|
1052
1052
|
});
|
|
1053
|
-
function
|
|
1053
|
+
function Jt(t) {
|
|
1054
1054
|
return (t ?? "").replace(/\D/g, "");
|
|
1055
1055
|
}
|
|
1056
1056
|
function Jl(t) {
|
|
1057
|
-
const n =
|
|
1057
|
+
const n = Jt(t);
|
|
1058
1058
|
return n.length === 11 ? "CPF" : n.length === 14 ? "CNPJ" : "";
|
|
1059
1059
|
}
|
|
1060
1060
|
function Ql(t) {
|
|
1061
|
-
const n =
|
|
1061
|
+
const n = Jt(t).slice(0, 14);
|
|
1062
1062
|
return n.length <= 11 ? n.replace(/^(\d{3})(\d)/, "$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1-$2") : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2");
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Ya({
|
|
1065
1065
|
label: t = "CPF/CNPJ",
|
|
1066
1066
|
value: n,
|
|
1067
1067
|
onChange: l,
|
|
@@ -1077,7 +1077,7 @@ function qa({
|
|
|
1077
1077
|
{
|
|
1078
1078
|
label: t,
|
|
1079
1079
|
value: Ql(n),
|
|
1080
|
-
onChange: (d) => l(
|
|
1080
|
+
onChange: (d) => l(Jt(d)),
|
|
1081
1081
|
inputMode: "numeric",
|
|
1082
1082
|
autoComplete: "off",
|
|
1083
1083
|
maxLength: 18,
|
|
@@ -1128,10 +1128,10 @@ const ht = R(function({ children: n, tone: l = "critical", title: c, action: s,
|
|
|
1128
1128
|
s && /* @__PURE__ */ e("span", { className: "select-filetile__size", children: s })
|
|
1129
1129
|
] });
|
|
1130
1130
|
});
|
|
1131
|
-
function
|
|
1131
|
+
function Un(t) {
|
|
1132
1132
|
return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(0)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function qn(t, n) {
|
|
1135
1135
|
if (!n) return !0;
|
|
1136
1136
|
const l = t.name.toLowerCase(), c = t.type.toLowerCase();
|
|
1137
1137
|
return n.split(",").some((s) => {
|
|
@@ -1139,21 +1139,21 @@ function Yn(t, n) {
|
|
|
1139
1139
|
return a ? a.startsWith(".") ? l.endsWith(a) : a.endsWith("/*") ? c.startsWith(a.slice(0, -1)) : c === a : !1;
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1143
|
-
function
|
|
1142
|
+
const Yn = (t) => t.type.startsWith("image/");
|
|
1143
|
+
function zn(t) {
|
|
1144
1144
|
const n = t.split(".");
|
|
1145
1145
|
return n.length > 1 ? n.pop().toUpperCase() : "FILE";
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1148
|
-
function
|
|
1147
|
+
const Xn = /^https?:\/\/.+/i;
|
|
1148
|
+
function Kn(t) {
|
|
1149
1149
|
try {
|
|
1150
1150
|
return new URL(t).hostname;
|
|
1151
1151
|
} catch {
|
|
1152
1152
|
return t;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
const
|
|
1156
|
-
const h = q(null), [f, g] = D(!1), [v, x] = D(0), N = s * 1024 * 1024, $ = xe(() => n.map((C) =>
|
|
1155
|
+
const za = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, allowMultiple: a = !0, maxFiles: r, hint: i, className: o, ...d }, u) {
|
|
1156
|
+
const h = q(null), [f, g] = D(!1), [v, x] = D(0), N = s * 1024 * 1024, $ = xe(() => n.map((C) => Yn(C) ? URL.createObjectURL(C) : null), [n]);
|
|
1157
1157
|
le(
|
|
1158
1158
|
() => () => {
|
|
1159
1159
|
$.forEach((C) => {
|
|
@@ -1164,7 +1164,7 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1164
1164
|
);
|
|
1165
1165
|
const _ = Te(
|
|
1166
1166
|
(C) => {
|
|
1167
|
-
const L = C.filter((B) => B.size <= N &&
|
|
1167
|
+
const L = C.filter((B) => B.size <= N && qn(B, c));
|
|
1168
1168
|
if (x(C.length - L.length), L.length) {
|
|
1169
1169
|
const B = a ? [...n, ...L] : L.slice(0, 1);
|
|
1170
1170
|
l(r != null ? B.slice(0, r) : B);
|
|
@@ -1189,9 +1189,9 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1189
1189
|
wt,
|
|
1190
1190
|
{
|
|
1191
1191
|
src: $[L] ?? void 0,
|
|
1192
|
-
docExt:
|
|
1192
|
+
docExt: zn(C.name),
|
|
1193
1193
|
name: C.name,
|
|
1194
|
-
sub:
|
|
1194
|
+
sub: Un(C.size),
|
|
1195
1195
|
onRemove: () => k(L)
|
|
1196
1196
|
},
|
|
1197
1197
|
`${C.name}-${L}`
|
|
@@ -1248,11 +1248,11 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1248
1248
|
/* @__PURE__ */ e("span", { className: "select-addbtn__icon", "aria-hidden": "true", children: c ?? /* @__PURE__ */ e(nt, {}) }),
|
|
1249
1249
|
n
|
|
1250
1250
|
] });
|
|
1251
|
-
}),
|
|
1251
|
+
}), Xa = R(function({ label: n, urls: l, onChange: c, maxUrls: s, placeholder: a, helpText: r, className: i, ...o }, d) {
|
|
1252
1252
|
const [u, h] = D(""), [f, g] = D(null), v = s != null && l.length >= s, x = () => {
|
|
1253
1253
|
const _ = u.trim();
|
|
1254
1254
|
if (_) {
|
|
1255
|
-
if (!
|
|
1255
|
+
if (!Xn.test(_)) {
|
|
1256
1256
|
g("Insira uma URL válida (https://…).");
|
|
1257
1257
|
return;
|
|
1258
1258
|
}
|
|
@@ -1267,7 +1267,7 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1267
1267
|
}, $ = (_) => c(l.filter((p, b) => b !== _));
|
|
1268
1268
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-field${i ? " " + i : ""}`, children: [
|
|
1269
1269
|
n && /* @__PURE__ */ e("span", { className: "select-field__label", children: n }),
|
|
1270
|
-
l.length > 0 && /* @__PURE__ */ e("div", { className: "select-filetile-grid", children: l.map((_, p) => /* @__PURE__ */ e(wt, { src: _, name:
|
|
1270
|
+
l.length > 0 && /* @__PURE__ */ e("div", { className: "select-filetile-grid", children: l.map((_, p) => /* @__PURE__ */ e(wt, { src: _, name: Kn(_), onRemove: () => $(p) }, `${_}-${p}`)) }),
|
|
1271
1271
|
!v && /* @__PURE__ */ m(ae, { children: [
|
|
1272
1272
|
/* @__PURE__ */ e(
|
|
1273
1273
|
Ze,
|
|
@@ -1290,7 +1290,7 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1290
1290
|
r != null && !f && /* @__PURE__ */ e("p", { className: "select-field__hint", children: r })
|
|
1291
1291
|
] });
|
|
1292
1292
|
}), tc = R(function({ label: n, mode: l = "multiple", files: c, onFilesChange: s, urls: a, onUrlsChange: r, accept: i = ".jpg,.jpeg,.png,.webp", maxSizeMB: o = 3, maxItems: d = 10, maxFiles: u, uploadHint: h, urlPlaceholder: f, helpText: g, className: v, ...x }, N) {
|
|
1293
|
-
const $ = l === "single", _ = q(null), [p, b] = D(!1), [S, k] = D(0), [M, w] = D(""), [y, C] = D(null), L = $ ? 1 : Math.max(1, d), B = $ ? 1 : u ?? L, A = c.length + a.length, F = $ ? A === 0 : A < L && c.length < B, E = $ ? A === 0 : A < L, T = A > 0, I = o * 1024 * 1024, O = xe(() => c.map((H) =>
|
|
1293
|
+
const $ = l === "single", _ = q(null), [p, b] = D(!1), [S, k] = D(0), [M, w] = D(""), [y, C] = D(null), L = $ ? 1 : Math.max(1, d), B = $ ? 1 : u ?? L, A = c.length + a.length, F = $ ? A === 0 : A < L && c.length < B, E = $ ? A === 0 : A < L, T = A > 0, I = o * 1024 * 1024, O = xe(() => c.map((H) => Yn(H) ? URL.createObjectURL(H) : null), [c]);
|
|
1294
1294
|
le(
|
|
1295
1295
|
() => () => {
|
|
1296
1296
|
O.forEach((H) => {
|
|
@@ -1300,7 +1300,7 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1300
1300
|
[O]
|
|
1301
1301
|
);
|
|
1302
1302
|
const W = (H) => {
|
|
1303
|
-
const Q = H.filter((de) => de.size <= I &&
|
|
1303
|
+
const Q = H.filter((de) => de.size <= I && qn(de, i));
|
|
1304
1304
|
if (k(H.length - Q.length), !Q.length) return;
|
|
1305
1305
|
if ($) {
|
|
1306
1306
|
r([]), s(Q.slice(0, 1));
|
|
@@ -1311,7 +1311,7 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1311
1311
|
}, Z = () => {
|
|
1312
1312
|
const H = M.trim();
|
|
1313
1313
|
if (H) {
|
|
1314
|
-
if (!
|
|
1314
|
+
if (!Xn.test(H)) {
|
|
1315
1315
|
C("Insira uma URL válida (https://…).");
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
@@ -1347,14 +1347,14 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1347
1347
|
wt,
|
|
1348
1348
|
{
|
|
1349
1349
|
src: O[Q] ?? void 0,
|
|
1350
|
-
docExt:
|
|
1350
|
+
docExt: zn(H.name),
|
|
1351
1351
|
name: H.name,
|
|
1352
|
-
sub:
|
|
1352
|
+
sub: Un(H.size),
|
|
1353
1353
|
onRemove: () => J(Q)
|
|
1354
1354
|
},
|
|
1355
1355
|
`f-${H.name}-${Q}`
|
|
1356
1356
|
)),
|
|
1357
|
-
a.map((H, Q) => /* @__PURE__ */ e(wt, { src: H, name:
|
|
1357
|
+
a.map((H, Q) => /* @__PURE__ */ e(wt, { src: H, name: Kn(H), onRemove: () => ie(Q) }, `u-${H}-${Q}`)),
|
|
1358
1358
|
F && /* @__PURE__ */ m("button", { type: "button", className: "select-dropzone select-dropzone--tile", onClick: fe, children: [
|
|
1359
1359
|
/* @__PURE__ */ e(kt, {}),
|
|
1360
1360
|
/* @__PURE__ */ e("span", { children: "Adicionar" })
|
|
@@ -1406,13 +1406,13 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1406
1406
|
] }),
|
|
1407
1407
|
g != null && /* @__PURE__ */ e("p", { className: "select-field__hint", children: g })
|
|
1408
1408
|
] });
|
|
1409
|
-
}),
|
|
1409
|
+
}), Jn = R(function({ label: n, value: l, onChange: c, options: s, labelAction: a, info: r, description: i, hint: o, error: d, placeholder: u, name: h, required: f, disabled: g, size: v = "md", className: x, ...N }, $) {
|
|
1410
1410
|
const _ = te(), p = d ? `${_}-err` : o ? `${_}-hint` : void 0;
|
|
1411
1411
|
return /* @__PURE__ */ m("div", { ref: $, ...N, className: `select-field${v === "sm" ? " select-field--sm" : ""}${x ? " " + x : ""}`, children: [
|
|
1412
1412
|
(n || r || a) && /* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
1413
1413
|
/* @__PURE__ */ m("span", { className: "select-field__labelwrap", children: [
|
|
1414
1414
|
n && /* @__PURE__ */ e("label", { className: "select-field__label", htmlFor: _, children: n }),
|
|
1415
|
-
r && /* @__PURE__ */ e("span", { className: "select-field__info", title: r, "aria-label": r, children: /* @__PURE__ */ e(
|
|
1415
|
+
r && /* @__PURE__ */ e("span", { className: "select-field__info", title: r, "aria-label": r, children: /* @__PURE__ */ e(Kt, {}) })
|
|
1416
1416
|
] }),
|
|
1417
1417
|
a
|
|
1418
1418
|
] }),
|
|
@@ -1440,78 +1440,390 @@ const Ya = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1440
1440
|
] }),
|
|
1441
1441
|
d ? /* @__PURE__ */ e("p", { id: `${_}-err`, className: "select-field__error", children: d }) : o ? /* @__PURE__ */ e("p", { id: `${_}-hint`, className: "select-field__hint", children: o }) : null
|
|
1442
1442
|
] });
|
|
1443
|
-
})
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
const n = t.replace(/[^\d-]/g, ""), [l = "", ...c] = n.split("-");
|
|
1448
|
-
return c.length ? `${l}-${c.join("").replace(/\D/g, "").slice(0, 2)}` : l;
|
|
1443
|
+
});
|
|
1444
|
+
function Qn() {
|
|
1445
|
+
var t;
|
|
1446
|
+
return typeof window < "u" && !!((t = window.matchMedia) != null && t.call(window, "(prefers-reduced-motion: reduce)").matches);
|
|
1449
1447
|
}
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1448
|
+
const el = () => typeof IntersectionObserver < "u";
|
|
1449
|
+
function Bt(t = {}) {
|
|
1450
|
+
const n = q(null), l = q(t);
|
|
1451
|
+
return l.current = t, Be(() => {
|
|
1452
|
+
const c = n.current;
|
|
1453
|
+
if (!c) return;
|
|
1454
|
+
const {
|
|
1455
|
+
selector: s = "[data-reveal]",
|
|
1456
|
+
y: a = 12,
|
|
1457
|
+
scale: r = 1,
|
|
1458
|
+
duration: i = 0.5,
|
|
1459
|
+
stagger: o = 0.06,
|
|
1460
|
+
delay: d = 0,
|
|
1461
|
+
ease: u = "power3.out",
|
|
1462
|
+
scroll: h = !1,
|
|
1463
|
+
once: f = !0,
|
|
1464
|
+
enabled: g = !0
|
|
1465
|
+
} = l.current;
|
|
1466
|
+
if (!g || Qn()) return;
|
|
1467
|
+
const v = s ? Array.from(c.querySelectorAll(s)) : [], x = v.length ? v : [c], N = { opacity: 0, y: a, ...r !== 1 ? { scale: r } : {} };
|
|
1468
|
+
let $;
|
|
1469
|
+
const _ = () => {
|
|
1470
|
+
$ = Me.fromTo(x, N, {
|
|
1471
|
+
opacity: 1,
|
|
1472
|
+
y: 0,
|
|
1473
|
+
scale: 1,
|
|
1474
|
+
duration: i,
|
|
1475
|
+
stagger: o,
|
|
1476
|
+
delay: d,
|
|
1477
|
+
ease: u,
|
|
1478
|
+
clearProps: "transform"
|
|
1479
|
+
});
|
|
1480
|
+
};
|
|
1481
|
+
if (!h || !el())
|
|
1482
|
+
return _(), () => $ == null ? void 0 : $.kill();
|
|
1483
|
+
Me.set(x, N);
|
|
1484
|
+
const p = new IntersectionObserver(
|
|
1485
|
+
(b) => {
|
|
1486
|
+
for (const S of b)
|
|
1487
|
+
S.isIntersecting && (_(), f && p.unobserve(S.target));
|
|
1488
|
+
},
|
|
1489
|
+
{ threshold: 0 }
|
|
1490
|
+
);
|
|
1491
|
+
return p.observe(c), () => {
|
|
1492
|
+
p.disconnect(), $ == null || $.kill();
|
|
1493
|
+
};
|
|
1494
|
+
}, []), n;
|
|
1495
|
+
}
|
|
1496
|
+
function nc(t) {
|
|
1497
|
+
const n = q(null), l = q(t);
|
|
1498
|
+
return l.current = t, Be(() => {
|
|
1499
|
+
const c = n.current;
|
|
1500
|
+
if (!c) return;
|
|
1501
|
+
const {
|
|
1502
|
+
value: s,
|
|
1503
|
+
from: a = 0,
|
|
1504
|
+
duration: r = 1.2,
|
|
1505
|
+
ease: i = "power2.out",
|
|
1506
|
+
format: o = (N) => String(Math.round(N)),
|
|
1507
|
+
scroll: d = !0,
|
|
1508
|
+
once: u = !0,
|
|
1509
|
+
enabled: h = !0
|
|
1510
|
+
} = l.current;
|
|
1511
|
+
if (!h) return;
|
|
1512
|
+
if (Qn()) {
|
|
1513
|
+
c.textContent = o(s);
|
|
1514
|
+
return;
|
|
1515
|
+
}
|
|
1516
|
+
const f = { n: a };
|
|
1517
|
+
let g;
|
|
1518
|
+
const v = () => {
|
|
1519
|
+
g = Me.to(f, {
|
|
1520
|
+
n: s,
|
|
1521
|
+
duration: r,
|
|
1522
|
+
ease: i,
|
|
1523
|
+
onUpdate: () => {
|
|
1524
|
+
c.textContent = o(f.n);
|
|
1479
1525
|
}
|
|
1480
|
-
)
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1526
|
+
});
|
|
1527
|
+
};
|
|
1528
|
+
if (!d || !el())
|
|
1529
|
+
return v(), () => g == null ? void 0 : g.kill();
|
|
1530
|
+
c.textContent = o(a);
|
|
1531
|
+
const x = new IntersectionObserver(
|
|
1532
|
+
(N) => {
|
|
1533
|
+
for (const $ of N)
|
|
1534
|
+
$.isIntersecting && (v(), u && x.unobserve($.target));
|
|
1535
|
+
},
|
|
1536
|
+
{ threshold: 0 }
|
|
1537
|
+
);
|
|
1538
|
+
return x.observe(c), () => {
|
|
1539
|
+
x.disconnect(), g == null || g.kill();
|
|
1540
|
+
};
|
|
1541
|
+
}, [t.value]), n;
|
|
1542
|
+
}
|
|
1543
|
+
function tl(t, n, l, c, s = 8) {
|
|
1544
|
+
const a = window.innerWidth, r = window.innerHeight, i = l.split("-");
|
|
1545
|
+
let o = i[0];
|
|
1546
|
+
const d = i[1];
|
|
1547
|
+
let u = 0, h = 0;
|
|
1548
|
+
if (o === "bottom" || o === "top") {
|
|
1549
|
+
const g = r - t.bottom, v = t.top;
|
|
1550
|
+
o === "bottom" && n.height + c > g && v > g ? o = "top" : o === "top" && n.height + c > v && g > v && (o = "bottom"), u = o === "bottom" ? t.bottom + c : t.top - c - n.height, d === "start" ? h = t.left : d === "end" ? h = t.right - n.width : h = t.left + (t.width - n.width) / 2;
|
|
1551
|
+
} else {
|
|
1552
|
+
const g = a - t.right, v = t.left;
|
|
1553
|
+
o === "right" && n.width + c > g && v > g ? o = "left" : o === "left" && n.width + c > v && g > v && (o = "right"), h = o === "right" ? t.right + c : t.left - c - n.width, u = t.top + (t.height - n.height) / 2;
|
|
1554
|
+
}
|
|
1555
|
+
h = Math.max(s, Math.min(h, a - n.width - s)), u = Math.max(s, Math.min(u, r - n.height - s));
|
|
1556
|
+
const f = typeof window < "u" && window.devicePixelRatio || 1;
|
|
1557
|
+
return h = Math.round(h * f) / f, u = Math.round(u * f) / f, { top: u, left: h, side: o };
|
|
1558
|
+
}
|
|
1559
|
+
const lc = [
|
|
1560
|
+
"a[href]",
|
|
1561
|
+
"button:not([disabled])",
|
|
1562
|
+
"input:not([disabled])",
|
|
1563
|
+
"select:not([disabled])",
|
|
1564
|
+
"textarea:not([disabled])",
|
|
1565
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
1566
|
+
].join(",");
|
|
1567
|
+
function sn(t) {
|
|
1568
|
+
return Array.from(t.querySelectorAll(lc)).filter(
|
|
1569
|
+
(n) => n.offsetWidth > 0 || n.offsetHeight > 0 || n === document.activeElement
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
function cc(t, n) {
|
|
1573
|
+
le(() => {
|
|
1574
|
+
if (!t) return;
|
|
1575
|
+
const l = n.current;
|
|
1576
|
+
if (!l) return;
|
|
1577
|
+
(sn(l)[0] ?? l).focus({ preventScroll: !0 });
|
|
1578
|
+
const s = (a) => {
|
|
1579
|
+
if (a.key !== "Tab") return;
|
|
1580
|
+
const r = sn(l);
|
|
1581
|
+
if (r.length === 0) {
|
|
1582
|
+
a.preventDefault();
|
|
1583
|
+
return;
|
|
1492
1584
|
}
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
return
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1585
|
+
const i = r[0], o = r[r.length - 1], d = document.activeElement;
|
|
1586
|
+
a.shiftKey && d === i ? (a.preventDefault(), o.focus()) : !a.shiftKey && d === o ? (a.preventDefault(), i.focus()) : l.contains(d) || (a.preventDefault(), i.focus());
|
|
1587
|
+
};
|
|
1588
|
+
return l.addEventListener("keydown", s), () => l.removeEventListener("keydown", s);
|
|
1589
|
+
}, [t, n]);
|
|
1590
|
+
}
|
|
1591
|
+
function ut(t) {
|
|
1592
|
+
return ((t == null ? void 0 : t.closest("[data-theme]")) ?? document.documentElement).getAttribute("data-theme") === "dark" ? "dark" : "light";
|
|
1593
|
+
}
|
|
1594
|
+
const Qe = [];
|
|
1595
|
+
function We({
|
|
1596
|
+
active: t,
|
|
1597
|
+
onClose: n,
|
|
1598
|
+
activator: l,
|
|
1599
|
+
children: c,
|
|
1600
|
+
placement: s = "bottom-start",
|
|
1601
|
+
gap: a = 6,
|
|
1602
|
+
role: r,
|
|
1603
|
+
trapFocus: i = !1,
|
|
1604
|
+
matchWidth: o = !1,
|
|
1605
|
+
theme: d
|
|
1606
|
+
}) {
|
|
1607
|
+
const u = q(null), h = q(null), f = q(null), [g, v] = D(null), [x, N] = D("light"), $ = Te(() => {
|
|
1608
|
+
var k;
|
|
1609
|
+
const _ = ((k = u.current) == null ? void 0 : k.firstElementChild) ?? u.current, p = h.current;
|
|
1610
|
+
if (!_ || !p) return;
|
|
1611
|
+
const b = _.getBoundingClientRect(), S = tl(b, { width: p.offsetWidth, height: p.offsetHeight }, s, a);
|
|
1612
|
+
v({ top: S.top, left: S.left, minWidth: o ? b.width : void 0 });
|
|
1613
|
+
}, [s, a, o]);
|
|
1614
|
+
return Be(() => {
|
|
1615
|
+
if (!t) {
|
|
1616
|
+
v(null);
|
|
1617
|
+
return;
|
|
1618
|
+
}
|
|
1619
|
+
N(ut(u.current)), $();
|
|
1620
|
+
}, [t, $]), le(() => {
|
|
1621
|
+
if (t)
|
|
1622
|
+
return f.current = document.activeElement, () => {
|
|
1623
|
+
var _, p;
|
|
1624
|
+
return (p = (_ = f.current) == null ? void 0 : _.focus) == null ? void 0 : p.call(_, { preventScroll: !0 });
|
|
1625
|
+
};
|
|
1626
|
+
}, [t]), le(() => {
|
|
1627
|
+
if (!t) return;
|
|
1628
|
+
const _ = h.current;
|
|
1629
|
+
if (_)
|
|
1630
|
+
return Qe.push(_), () => {
|
|
1631
|
+
const p = Qe.lastIndexOf(_);
|
|
1632
|
+
p !== -1 && Qe.splice(p, 1);
|
|
1633
|
+
};
|
|
1634
|
+
}, [t]), le(() => {
|
|
1635
|
+
if (!t) return;
|
|
1636
|
+
const _ = () => $();
|
|
1637
|
+
return window.addEventListener("scroll", _, !0), window.addEventListener("resize", _), () => {
|
|
1638
|
+
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _);
|
|
1639
|
+
};
|
|
1640
|
+
}, [t, $]), le(() => {
|
|
1641
|
+
if (!t) return;
|
|
1642
|
+
const _ = (b) => {
|
|
1643
|
+
var k, M;
|
|
1644
|
+
const S = b.target;
|
|
1645
|
+
(k = h.current) != null && k.contains(S) || (M = u.current) != null && M.contains(S) || Qe.length && Qe[Qe.length - 1] !== h.current || n();
|
|
1646
|
+
}, p = (b) => {
|
|
1647
|
+
b.key === "Escape" && (b.stopPropagation(), n());
|
|
1648
|
+
};
|
|
1649
|
+
return document.addEventListener("mousedown", _, !0), document.addEventListener("keydown", p), () => {
|
|
1650
|
+
document.removeEventListener("mousedown", _, !0), document.removeEventListener("keydown", p);
|
|
1651
|
+
};
|
|
1652
|
+
}, [t, n]), cc(t && i, h), /* @__PURE__ */ m(ae, { children: [
|
|
1653
|
+
/* @__PURE__ */ e("span", { className: "select-pop__trigger", ref: u, children: l }),
|
|
1654
|
+
t && Ft(
|
|
1655
|
+
/* @__PURE__ */ e(
|
|
1656
|
+
"div",
|
|
1657
|
+
{
|
|
1658
|
+
ref: h,
|
|
1659
|
+
className: "select select-pop__panel",
|
|
1660
|
+
"data-theme": d ?? x,
|
|
1661
|
+
role: r,
|
|
1662
|
+
tabIndex: -1,
|
|
1663
|
+
style: g ? { position: "fixed", top: g.top, left: g.left, minWidth: g.minWidth } : { position: "fixed", top: 0, left: 0, visibility: "hidden" },
|
|
1664
|
+
children: c
|
|
1665
|
+
}
|
|
1666
|
+
),
|
|
1667
|
+
document.body
|
|
1668
|
+
)
|
|
1669
|
+
] });
|
|
1670
|
+
}
|
|
1671
|
+
function sc({ count: t, children: n }) {
|
|
1672
|
+
const l = t > 0 ? Math.min(0.03, 0.35 / t) : 0, c = Bt({ selector: ".select-combobox__option", y: 6, duration: 0.3, stagger: l });
|
|
1673
|
+
return /* @__PURE__ */ e("div", { className: "select-combobox__list", ref: c, children: n });
|
|
1674
|
+
}
|
|
1675
|
+
const ac = R(function({ label: n, value: l, onChange: c, options: s, placeholder: a = "Selecionar…", searchPlaceholder: r = "Buscar…", labelAction: i, hint: o, error: d, emptyText: u = "Nenhum resultado", disabled: h, required: f, size: g = "md", searchable: v = !0, className: x, ...N }, $) {
|
|
1676
|
+
const _ = te(), [p, b] = D(!1), [S, k] = D(""), M = s.find((B) => B.value === l), w = xe(() => {
|
|
1677
|
+
const B = S.trim().toLowerCase();
|
|
1678
|
+
return !v || !B ? s : s.filter((A) => {
|
|
1679
|
+
var F;
|
|
1680
|
+
return A.label.toLowerCase().includes(B) || ((F = A.secondary) == null ? void 0 : F.toLowerCase().includes(B));
|
|
1681
|
+
});
|
|
1682
|
+
}, [s, S, v]), y = () => {
|
|
1683
|
+
b(!1), k("");
|
|
1684
|
+
}, C = (B) => {
|
|
1685
|
+
c(B), y();
|
|
1686
|
+
}, L = d ? `${_}-err` : o ? `${_}-hint` : void 0;
|
|
1687
|
+
return /* @__PURE__ */ m("div", { ref: $, ...N, className: `select-field${g === "sm" ? " select-field--sm" : ""}${x ? " " + x : ""}`, children: [
|
|
1688
|
+
n && /* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
1689
|
+
/* @__PURE__ */ e("label", { className: "select-field__label", htmlFor: _, children: n }),
|
|
1690
|
+
i
|
|
1691
|
+
] }),
|
|
1692
|
+
/* @__PURE__ */ e("div", { className: "select-combobox", children: /* @__PURE__ */ e(
|
|
1693
|
+
We,
|
|
1694
|
+
{
|
|
1695
|
+
active: p,
|
|
1696
|
+
onClose: y,
|
|
1697
|
+
placement: "bottom-start",
|
|
1698
|
+
role: "listbox",
|
|
1699
|
+
matchWidth: !0,
|
|
1700
|
+
activator: /* @__PURE__ */ m(
|
|
1701
|
+
"button",
|
|
1702
|
+
{
|
|
1703
|
+
id: _,
|
|
1704
|
+
type: "button",
|
|
1705
|
+
className: `select-combobox__trigger${d ? " select-input--error" : ""}${p ? " is-open" : ""}`,
|
|
1706
|
+
onClick: () => p ? y() : b(!0),
|
|
1707
|
+
disabled: h,
|
|
1708
|
+
"aria-haspopup": "listbox",
|
|
1709
|
+
"aria-expanded": p,
|
|
1710
|
+
"aria-required": f || void 0,
|
|
1711
|
+
"aria-describedby": L,
|
|
1712
|
+
children: [
|
|
1713
|
+
/* @__PURE__ */ e("span", { className: `select-combobox__value${M ? "" : " is-placeholder"}`, children: M ? M.label : a }),
|
|
1714
|
+
/* @__PURE__ */ e("span", { className: "select-combobox__caret", "aria-hidden": "true", children: /* @__PURE__ */ e(be, {}) })
|
|
1715
|
+
]
|
|
1716
|
+
}
|
|
1717
|
+
),
|
|
1718
|
+
children: /* @__PURE__ */ m("div", { className: "select-combobox__panel", children: [
|
|
1719
|
+
v && /* @__PURE__ */ e("div", { className: "select-combobox__search", children: /* @__PURE__ */ e(
|
|
1720
|
+
"input",
|
|
1721
|
+
{
|
|
1722
|
+
className: "select-combobox__searchinput",
|
|
1723
|
+
type: "text",
|
|
1724
|
+
value: S,
|
|
1725
|
+
onChange: (B) => k(B.target.value),
|
|
1726
|
+
placeholder: r,
|
|
1727
|
+
autoFocus: !0
|
|
1728
|
+
}
|
|
1729
|
+
) }),
|
|
1730
|
+
/* @__PURE__ */ e(sc, { count: w.length, children: w.length === 0 ? /* @__PURE__ */ e("div", { className: "select-combobox__empty", children: u }) : w.map((B) => {
|
|
1731
|
+
const A = B.value === l;
|
|
1732
|
+
return /* @__PURE__ */ m(
|
|
1733
|
+
"button",
|
|
1734
|
+
{
|
|
1735
|
+
type: "button",
|
|
1736
|
+
role: "option",
|
|
1737
|
+
"aria-selected": A,
|
|
1738
|
+
disabled: B.disabled,
|
|
1739
|
+
className: `select-combobox__option${A ? " is-selected" : ""}`,
|
|
1740
|
+
onClick: () => C(B.value),
|
|
1741
|
+
children: [
|
|
1742
|
+
/* @__PURE__ */ m("span", { className: "select-combobox__optiontext", children: [
|
|
1743
|
+
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children: B.label }),
|
|
1744
|
+
B.secondary && /* @__PURE__ */ e("span", { className: "select-combobox__optionsecondary", children: B.secondary })
|
|
1745
|
+
] }),
|
|
1746
|
+
A && /* @__PURE__ */ e("span", { className: "select-combobox__check", "aria-hidden": "true", children: /* @__PURE__ */ e(Ae, {}) })
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1749
|
+
B.value
|
|
1750
|
+
);
|
|
1751
|
+
}) })
|
|
1752
|
+
] })
|
|
1753
|
+
}
|
|
1754
|
+
) }),
|
|
1755
|
+
d ? /* @__PURE__ */ e("p", { id: `${_}-err`, className: "select-field__error", children: d }) : o ? /* @__PURE__ */ e("p", { id: `${_}-hint`, className: "select-field__hint", children: o }) : null
|
|
1756
|
+
] });
|
|
1757
|
+
}), oc = R(function({ children: n, columns: l = 2, className: c, ...s }, a) {
|
|
1758
|
+
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-fieldgrid select-fieldgrid--${l}${c ? " " + c : ""}`, children: n });
|
|
1759
|
+
}), rc = (t) => t.replace(/\D/g, "");
|
|
1760
|
+
function ic(t) {
|
|
1761
|
+
const n = t.replace(/[^\d-]/g, ""), [l = "", ...c] = n.split("-");
|
|
1762
|
+
return c.length ? `${l}-${c.join("").replace(/\D/g, "").slice(0, 2)}` : l;
|
|
1763
|
+
}
|
|
1764
|
+
const Ka = R(function({ value: n, onChange: l, banks: c = [], showType: s = !1, error: a, className: r, ...i }, o) {
|
|
1765
|
+
const d = (h) => l({ ...n, ...h }), u = c.map((h) => ({ label: h.name || h.code, value: h.code }));
|
|
1766
|
+
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-stack${r ? " " + r : ""}`, children: [
|
|
1767
|
+
/* @__PURE__ */ e(
|
|
1768
|
+
ac,
|
|
1769
|
+
{
|
|
1770
|
+
label: "Banco",
|
|
1771
|
+
options: u,
|
|
1772
|
+
value: n.bankCode,
|
|
1773
|
+
onChange: (h) => d({ bankCode: h }),
|
|
1774
|
+
placeholder: "Selecione o banco",
|
|
1775
|
+
searchPlaceholder: "Buscar por nome ou código…",
|
|
1776
|
+
emptyText: "Nenhum banco encontrado",
|
|
1777
|
+
error: a
|
|
1778
|
+
}
|
|
1779
|
+
),
|
|
1780
|
+
/* @__PURE__ */ m(oc, { columns: 2, children: [
|
|
1781
|
+
/* @__PURE__ */ e(Ze, { label: "Agência", value: n.agency, onChange: (h) => d({ agency: rc(h) }), inputMode: "numeric", maxLength: 6 }),
|
|
1782
|
+
/* @__PURE__ */ e(
|
|
1783
|
+
Ze,
|
|
1784
|
+
{
|
|
1785
|
+
label: "Conta (com dígito)",
|
|
1786
|
+
value: n.account,
|
|
1787
|
+
onChange: (h) => d({ account: ic(h) }),
|
|
1788
|
+
inputMode: "numeric",
|
|
1789
|
+
maxLength: 16,
|
|
1790
|
+
placeholder: "Ex: 9288-1"
|
|
1791
|
+
}
|
|
1792
|
+
)
|
|
1793
|
+
] }),
|
|
1794
|
+
s && /* @__PURE__ */ e(
|
|
1795
|
+
Jn,
|
|
1796
|
+
{
|
|
1797
|
+
label: "Tipo de conta",
|
|
1798
|
+
options: [
|
|
1799
|
+
{ label: "Conta corrente", value: "checking" },
|
|
1800
|
+
{ label: "Conta poupança", value: "savings" }
|
|
1801
|
+
],
|
|
1802
|
+
value: n.type ?? "checking",
|
|
1803
|
+
onChange: (h) => d({ type: h })
|
|
1804
|
+
}
|
|
1805
|
+
)
|
|
1806
|
+
] });
|
|
1807
|
+
}), Qt = R(function({ checked: n, onChange: l, disabled: c = !1, label: s, className: a, ...r }, i) {
|
|
1808
|
+
return /* @__PURE__ */ e("button", { ref: i, ...r, type: "button", role: "switch", "aria-checked": n, "aria-label": s, disabled: c, className: `select-switch${n ? " select-switch--on" : ""}${a ? " " + a : ""}`, onClick: () => l(!n), children: /* @__PURE__ */ e("span", { className: "select-switch__knob", "aria-hidden": "true" }) });
|
|
1809
|
+
}), Ja = R(function({ children: n, scroll: l = !1, className: c, ...s }, a) {
|
|
1810
|
+
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-togglelist${l ? " select-togglelist--scroll" : ""}${c ? " " + c : ""}`, children: n });
|
|
1811
|
+
}), Qa = R(function({ icon: n, label: l, checked: c, onChange: s, disabled: a = !1, className: r, ...i }, o) {
|
|
1812
|
+
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-togglerow${a ? " select-togglerow--disabled" : ""}${r ? " " + r : ""}`, children: [
|
|
1813
|
+
n && /* @__PURE__ */ e("span", { className: "select-togglerow__icon", children: n }),
|
|
1814
|
+
/* @__PURE__ */ e("span", { className: "select-togglerow__label", children: l }),
|
|
1815
|
+
/* @__PURE__ */ e(Qt, { checked: c, onChange: s, disabled: a, label: typeof l == "string" ? l : void 0 })
|
|
1816
|
+
] });
|
|
1817
|
+
}), e1 = R(function({ icon: n, title: l, checked: c, onChange: s, children: a, disabled: r = !1, className: i, ...o }, d) {
|
|
1818
|
+
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-togglepanel${c ? " is-on" : ""}${i ? " " + i : ""}`, children: [
|
|
1507
1819
|
/* @__PURE__ */ m("div", { className: "select-togglepanel__header", children: [
|
|
1508
|
-
/* @__PURE__ */ e(
|
|
1820
|
+
/* @__PURE__ */ e(Qt, { checked: c, onChange: s, disabled: r, label: typeof l == "string" ? l : void 0 }),
|
|
1509
1821
|
n && /* @__PURE__ */ e("span", { className: "select-togglepanel__icon", children: n }),
|
|
1510
1822
|
/* @__PURE__ */ e("span", { className: "select-togglepanel__title", children: l })
|
|
1511
1823
|
] }),
|
|
1512
1824
|
a && /* @__PURE__ */ e("div", { className: "select-togglepanel__bodywrap", children: /* @__PURE__ */ e("div", { className: "select-togglepanel__bodyclip", "aria-hidden": !c, children: /* @__PURE__ */ e("div", { className: "select-togglepanel__body", children: a }) }) })
|
|
1513
1825
|
] });
|
|
1514
|
-
}),
|
|
1826
|
+
}), dc = {
|
|
1515
1827
|
BR: /* @__PURE__ */ m(ae, { children: [
|
|
1516
1828
|
/* @__PURE__ */ e("rect", { width: "20", height: "14", fill: "#009B3A" }),
|
|
1517
1829
|
/* @__PURE__ */ e("path", { d: "M10 1.6 18.2 7 10 12.4 1.8 7Z", fill: "#FEDF00" }),
|
|
@@ -1552,14 +1864,14 @@ const Xa = R(function({ value: n, onChange: l, banks: c = [], showType: s = !1,
|
|
|
1552
1864
|
/* @__PURE__ */ e("path", { d: "M10 0v14M0 7h20", stroke: "#C8102E", strokeWidth: "2.6" })
|
|
1553
1865
|
] })
|
|
1554
1866
|
};
|
|
1555
|
-
function
|
|
1556
|
-
const n =
|
|
1867
|
+
function hc({ iso: t }) {
|
|
1868
|
+
const n = dc[t];
|
|
1557
1869
|
return n ? /* @__PURE__ */ m("svg", { className: "select-phone__flag", viewBox: "0 0 20 14", "aria-hidden": "true", focusable: "false", children: [
|
|
1558
1870
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", { id: `flag-${t}`, children: /* @__PURE__ */ e("rect", { width: "20", height: "14", rx: "2" }) }) }),
|
|
1559
1871
|
/* @__PURE__ */ e("g", { clipPath: `url(#flag-${t})`, children: n })
|
|
1560
1872
|
] }) : /* @__PURE__ */ e("span", { className: "select-phone__flagfallback", "aria-hidden": "true", children: t });
|
|
1561
1873
|
}
|
|
1562
|
-
const
|
|
1874
|
+
const en = {
|
|
1563
1875
|
US: "(###) ###-####",
|
|
1564
1876
|
// 10 digits
|
|
1565
1877
|
MX: "## #### ####",
|
|
@@ -1573,12 +1885,12 @@ const tn = {
|
|
|
1573
1885
|
GB: "##### ######"
|
|
1574
1886
|
// 11 digits (mobile, with trunk 0)
|
|
1575
1887
|
};
|
|
1576
|
-
function
|
|
1888
|
+
function uc(t) {
|
|
1577
1889
|
let n = 0;
|
|
1578
1890
|
for (const l of t) l === "#" && (n += 1);
|
|
1579
1891
|
return n;
|
|
1580
1892
|
}
|
|
1581
|
-
function
|
|
1893
|
+
function pc(t, n) {
|
|
1582
1894
|
let l = "", c = 0;
|
|
1583
1895
|
for (const s of t) {
|
|
1584
1896
|
if (c >= n.length) break;
|
|
@@ -1586,33 +1898,33 @@ function rc(t, n) {
|
|
|
1586
1898
|
}
|
|
1587
1899
|
return c < n.length && (l += n.slice(c)), l;
|
|
1588
1900
|
}
|
|
1589
|
-
function
|
|
1901
|
+
function mc(t) {
|
|
1590
1902
|
if (t === "BR") return 11;
|
|
1591
|
-
const n =
|
|
1592
|
-
return n ?
|
|
1903
|
+
const n = en[t];
|
|
1904
|
+
return n ? uc(n) : 15;
|
|
1593
1905
|
}
|
|
1594
|
-
function
|
|
1906
|
+
function fc(t) {
|
|
1595
1907
|
return (t ?? "").replace(/\D/g, "").slice(0, 11);
|
|
1596
1908
|
}
|
|
1597
|
-
function
|
|
1598
|
-
return (n ?? "").replace(/\D/g, "").slice(0,
|
|
1909
|
+
function nl(t, n) {
|
|
1910
|
+
return (n ?? "").replace(/\D/g, "").slice(0, mc(t));
|
|
1599
1911
|
}
|
|
1600
|
-
function
|
|
1601
|
-
const n =
|
|
1912
|
+
function _c(t) {
|
|
1913
|
+
const n = fc(t);
|
|
1602
1914
|
return n.length === 0 ? "" : n.length <= 2 ? `(${n}` : n.length <= 6 ? `(${n.slice(0, 2)}) ${n.slice(2)}` : n.length <= 10 ? `(${n.slice(0, 2)}) ${n.slice(2, 6)}-${n.slice(6)}` : `(${n.slice(0, 2)}) ${n.slice(2, 7)}-${n.slice(7)}`;
|
|
1603
1915
|
}
|
|
1604
|
-
function
|
|
1605
|
-
const l =
|
|
1606
|
-
if (t === "BR") return
|
|
1607
|
-
const c =
|
|
1608
|
-
return c ?
|
|
1916
|
+
function vc(t, n) {
|
|
1917
|
+
const l = nl(t, n);
|
|
1918
|
+
if (t === "BR") return _c(l);
|
|
1919
|
+
const c = en[t];
|
|
1920
|
+
return c ? pc(c, l) : l;
|
|
1609
1921
|
}
|
|
1610
|
-
function
|
|
1922
|
+
function gc(t) {
|
|
1611
1923
|
if (t === "BR") return "(00) 00000-0000";
|
|
1612
|
-
const n =
|
|
1924
|
+
const n = en[t];
|
|
1613
1925
|
return n ? n.replace(/#/g, "0") : "";
|
|
1614
1926
|
}
|
|
1615
|
-
const
|
|
1927
|
+
const ll = [
|
|
1616
1928
|
{ iso: "BR", dial: "+55", flag: "🇧🇷", name: "Brasil" },
|
|
1617
1929
|
{ iso: "US", dial: "+1", flag: "🇺🇸", name: "Estados Unidos" },
|
|
1618
1930
|
{ iso: "PT", dial: "+351", flag: "🇵🇹", name: "Portugal" },
|
|
@@ -1621,12 +1933,12 @@ const el = [
|
|
|
1621
1933
|
{ iso: "ES", dial: "+34", flag: "🇪🇸", name: "Espanha" },
|
|
1622
1934
|
{ iso: "GB", dial: "+44", flag: "🇬🇧", name: "Reino Unido" }
|
|
1623
1935
|
];
|
|
1624
|
-
function
|
|
1936
|
+
function bc(t) {
|
|
1625
1937
|
var n;
|
|
1626
|
-
return ((n =
|
|
1938
|
+
return ((n = ll.find((l) => l.iso === t)) == null ? void 0 : n.dial) ?? "";
|
|
1627
1939
|
}
|
|
1628
|
-
const
|
|
1629
|
-
const f = te(), g =
|
|
1940
|
+
const t1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a, error: r, onBlur: i, placeholder: o, className: d, ...u }, h) {
|
|
1941
|
+
const f = te(), g = bc(l.country), v = r ? `${f}-err` : a ? `${f}-hint` : void 0;
|
|
1630
1942
|
return /* @__PURE__ */ m("div", { ref: h, ...u, className: `select-field${d ? " " + d : ""}`, children: [
|
|
1631
1943
|
/* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
1632
1944
|
/* @__PURE__ */ e("label", { className: "select-field__label", htmlFor: f, children: n }),
|
|
@@ -1635,7 +1947,7 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1635
1947
|
/* @__PURE__ */ m("div", { className: `select-phone${r ? " select-phone--error" : ""}`, children: [
|
|
1636
1948
|
/* @__PURE__ */ m("div", { className: "select-phone__country", children: [
|
|
1637
1949
|
/* @__PURE__ */ m("span", { className: "select-phone__dial", children: [
|
|
1638
|
-
/* @__PURE__ */ e(
|
|
1950
|
+
/* @__PURE__ */ e(hc, { iso: l.country }),
|
|
1639
1951
|
" ",
|
|
1640
1952
|
g
|
|
1641
1953
|
] }),
|
|
@@ -1647,7 +1959,7 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1647
1959
|
value: l.country,
|
|
1648
1960
|
onChange: (x) => c({ ...l, country: x.target.value }),
|
|
1649
1961
|
"aria-label": "País",
|
|
1650
|
-
children:
|
|
1962
|
+
children: ll.map((x) => /* @__PURE__ */ m("option", { value: x.iso, children: [
|
|
1651
1963
|
x.name,
|
|
1652
1964
|
" (",
|
|
1653
1965
|
x.dial,
|
|
@@ -1664,9 +1976,9 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1664
1976
|
type: "tel",
|
|
1665
1977
|
inputMode: "tel",
|
|
1666
1978
|
autoComplete: "tel-national",
|
|
1667
|
-
value:
|
|
1668
|
-
placeholder: o ??
|
|
1669
|
-
onChange: (x) => c({ ...l, number:
|
|
1979
|
+
value: vc(l.country, l.number),
|
|
1980
|
+
placeholder: o ?? gc(l.country),
|
|
1981
|
+
onChange: (x) => c({ ...l, number: nl(l.country, x.target.value) }),
|
|
1670
1982
|
onBlur: i,
|
|
1671
1983
|
"aria-invalid": r ? !0 : void 0,
|
|
1672
1984
|
"aria-describedby": v
|
|
@@ -1675,7 +1987,7 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1675
1987
|
] }),
|
|
1676
1988
|
r ? /* @__PURE__ */ e("p", { id: `${f}-err`, className: "select-field__error", children: r }) : a ? /* @__PURE__ */ e("p", { id: `${f}-hint`, className: "select-field__hint", children: a }) : null
|
|
1677
1989
|
] });
|
|
1678
|
-
}),
|
|
1990
|
+
}), n1 = R(function({ value: n, onChange: l, options: c, name: s, className: a, ...r }, i) {
|
|
1679
1991
|
const o = te(), d = s ?? o;
|
|
1680
1992
|
return /* @__PURE__ */ e("div", { ref: i, ...r, className: `select-radiogroup${a ? " " + a : ""}`, role: "radiogroup", children: c.map((u) => {
|
|
1681
1993
|
const h = u.value === n;
|
|
@@ -1707,7 +2019,7 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1707
2019
|
u.value
|
|
1708
2020
|
);
|
|
1709
2021
|
}) });
|
|
1710
|
-
}),
|
|
2022
|
+
}), l1 = R(function({ value: n, onChange: l, options: c, ariaLabel: s, fullWidth: a = !1, className: r, ...i }, o) {
|
|
1711
2023
|
const d = Math.max(0, c.findIndex((v) => v.value === n)), u = q([]), [h, f] = D(null);
|
|
1712
2024
|
Be(() => {
|
|
1713
2025
|
const v = u.current[d];
|
|
@@ -1715,194 +2027,66 @@ const e1 = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1715
2027
|
}, [d, c.length]);
|
|
1716
2028
|
const g = h ? { left: h.left, width: h.width, opacity: 1 } : { opacity: 0 };
|
|
1717
2029
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-segmented${a ? " select-segmented--full" : ""}${r ? " " + r : ""}`, role: "tablist", "aria-label": s, children: [
|
|
1718
|
-
/* @__PURE__ */ e("span", { className: "select-segmented__pill", "aria-hidden": "true", style: g }),
|
|
1719
|
-
c.map((v, x) => {
|
|
1720
|
-
const N = v.value === n;
|
|
1721
|
-
return /* @__PURE__ */ e(
|
|
1722
|
-
"button",
|
|
1723
|
-
{
|
|
1724
|
-
ref: ($) => {
|
|
1725
|
-
u.current[x] = $;
|
|
1726
|
-
},
|
|
1727
|
-
type: "button",
|
|
1728
|
-
role: "tab",
|
|
1729
|
-
"aria-selected": N,
|
|
1730
|
-
className: `select-segmented__item${N ? " select-segmented__item--active" : ""}`,
|
|
1731
|
-
onClick: () => l(v.value),
|
|
1732
|
-
children: v.label
|
|
1733
|
-
},
|
|
1734
|
-
v.value
|
|
1735
|
-
);
|
|
1736
|
-
})
|
|
1737
|
-
] });
|
|
1738
|
-
}), tl = R(function({ children: n, tone: l = "neutral", icon: c, size: s = "md", className: a, ...r }, i) {
|
|
1739
|
-
return /* @__PURE__ */ m(
|
|
1740
|
-
"span",
|
|
1741
|
-
{
|
|
1742
|
-
ref: i,
|
|
1743
|
-
...r,
|
|
1744
|
-
className: `select-badge select-badge--${l}${s === "sm" ? " select-badge--sm" : ""}${a ? " " + a : ""}`,
|
|
1745
|
-
children: [
|
|
1746
|
-
c && /* @__PURE__ */ e("span", { className: "select-badge__icon", children: c }),
|
|
1747
|
-
n
|
|
1748
|
-
]
|
|
1749
|
-
}
|
|
1750
|
-
);
|
|
1751
|
-
}), fc = {
|
|
1752
|
-
approved: { label: "Aprovada", tone: "success" },
|
|
1753
|
-
"pre-authorized": { label: "Pré-autorizada", tone: "success" },
|
|
1754
|
-
authorized: { label: "Autorizada", tone: "info" },
|
|
1755
|
-
pending: { label: "Pendente", tone: "warning" },
|
|
1756
|
-
awaiting: { label: "Aguardando", tone: "warning" },
|
|
1757
|
-
analyzing: { label: "Em análise", tone: "warning" },
|
|
1758
|
-
processing: { label: "Processando", tone: "info" },
|
|
1759
|
-
"fraud-review": { label: "Anti-fraude", tone: "warning" },
|
|
1760
|
-
failed: { label: "Falhou", tone: "critical" },
|
|
1761
|
-
refused: { label: "Recusada", tone: "critical" },
|
|
1762
|
-
declined: { label: "Recusada", tone: "critical" },
|
|
1763
|
-
unauthorized: { label: "Não autorizada", tone: "critical" },
|
|
1764
|
-
refunded: { label: "Estornada", tone: "info" },
|
|
1765
|
-
canceled: { label: "Cancelada", tone: "neutral" },
|
|
1766
|
-
chargeback: { label: "Chargeback", tone: "critical" },
|
|
1767
|
-
dispute: { label: "Em disputa", tone: "critical" }
|
|
1768
|
-
};
|
|
1769
|
-
function l1({
|
|
1770
|
-
status: t,
|
|
1771
|
-
map: n = fc,
|
|
1772
|
-
size: l
|
|
1773
|
-
}) {
|
|
1774
|
-
const c = n[t] ?? { label: t };
|
|
1775
|
-
return /* @__PURE__ */ e(tl, { tone: c.tone, size: l, children: c.label });
|
|
1776
|
-
}
|
|
1777
|
-
function nl(t, n, l, c, s = 8) {
|
|
1778
|
-
const a = window.innerWidth, r = window.innerHeight, i = l.split("-");
|
|
1779
|
-
let o = i[0];
|
|
1780
|
-
const d = i[1];
|
|
1781
|
-
let u = 0, h = 0;
|
|
1782
|
-
if (o === "bottom" || o === "top") {
|
|
1783
|
-
const g = r - t.bottom, v = t.top;
|
|
1784
|
-
o === "bottom" && n.height + c > g && v > g ? o = "top" : o === "top" && n.height + c > v && g > v && (o = "bottom"), u = o === "bottom" ? t.bottom + c : t.top - c - n.height, d === "start" ? h = t.left : d === "end" ? h = t.right - n.width : h = t.left + (t.width - n.width) / 2;
|
|
1785
|
-
} else {
|
|
1786
|
-
const g = a - t.right, v = t.left;
|
|
1787
|
-
o === "right" && n.width + c > g && v > g ? o = "left" : o === "left" && n.width + c > v && g > v && (o = "right"), h = o === "right" ? t.right + c : t.left - c - n.width, u = t.top + (t.height - n.height) / 2;
|
|
1788
|
-
}
|
|
1789
|
-
h = Math.max(s, Math.min(h, a - n.width - s)), u = Math.max(s, Math.min(u, r - n.height - s));
|
|
1790
|
-
const f = typeof window < "u" && window.devicePixelRatio || 1;
|
|
1791
|
-
return h = Math.round(h * f) / f, u = Math.round(u * f) / f, { top: u, left: h, side: o };
|
|
1792
|
-
}
|
|
1793
|
-
const _c = [
|
|
1794
|
-
"a[href]",
|
|
1795
|
-
"button:not([disabled])",
|
|
1796
|
-
"input:not([disabled])",
|
|
1797
|
-
"select:not([disabled])",
|
|
1798
|
-
"textarea:not([disabled])",
|
|
1799
|
-
'[tabindex]:not([tabindex="-1"])'
|
|
1800
|
-
].join(",");
|
|
1801
|
-
function an(t) {
|
|
1802
|
-
return Array.from(t.querySelectorAll(_c)).filter(
|
|
1803
|
-
(n) => n.offsetWidth > 0 || n.offsetHeight > 0 || n === document.activeElement
|
|
1804
|
-
);
|
|
1805
|
-
}
|
|
1806
|
-
function vc(t, n) {
|
|
1807
|
-
le(() => {
|
|
1808
|
-
if (!t) return;
|
|
1809
|
-
const l = n.current;
|
|
1810
|
-
if (!l) return;
|
|
1811
|
-
(an(l)[0] ?? l).focus({ preventScroll: !0 });
|
|
1812
|
-
const s = (a) => {
|
|
1813
|
-
if (a.key !== "Tab") return;
|
|
1814
|
-
const r = an(l);
|
|
1815
|
-
if (r.length === 0) {
|
|
1816
|
-
a.preventDefault();
|
|
1817
|
-
return;
|
|
1818
|
-
}
|
|
1819
|
-
const i = r[0], o = r[r.length - 1], d = document.activeElement;
|
|
1820
|
-
a.shiftKey && d === i ? (a.preventDefault(), o.focus()) : !a.shiftKey && d === o ? (a.preventDefault(), i.focus()) : l.contains(d) || (a.preventDefault(), i.focus());
|
|
1821
|
-
};
|
|
1822
|
-
return l.addEventListener("keydown", s), () => l.removeEventListener("keydown", s);
|
|
1823
|
-
}, [t, n]);
|
|
1824
|
-
}
|
|
1825
|
-
function ut(t) {
|
|
1826
|
-
return ((t == null ? void 0 : t.closest("[data-theme]")) ?? document.documentElement).getAttribute("data-theme") === "dark" ? "dark" : "light";
|
|
1827
|
-
}
|
|
1828
|
-
const Qe = [];
|
|
1829
|
-
function We({
|
|
1830
|
-
active: t,
|
|
1831
|
-
onClose: n,
|
|
1832
|
-
activator: l,
|
|
1833
|
-
children: c,
|
|
1834
|
-
placement: s = "bottom-start",
|
|
1835
|
-
gap: a = 6,
|
|
1836
|
-
role: r,
|
|
1837
|
-
trapFocus: i = !1,
|
|
1838
|
-
matchWidth: o = !1,
|
|
1839
|
-
theme: d
|
|
1840
|
-
}) {
|
|
1841
|
-
const u = q(null), h = q(null), f = q(null), [g, v] = D(null), [x, N] = D("light"), $ = Te(() => {
|
|
1842
|
-
var k;
|
|
1843
|
-
const _ = ((k = u.current) == null ? void 0 : k.firstElementChild) ?? u.current, p = h.current;
|
|
1844
|
-
if (!_ || !p) return;
|
|
1845
|
-
const b = _.getBoundingClientRect(), S = nl(b, { width: p.offsetWidth, height: p.offsetHeight }, s, a);
|
|
1846
|
-
v({ top: S.top, left: S.left, minWidth: o ? b.width : void 0 });
|
|
1847
|
-
}, [s, a, o]);
|
|
1848
|
-
return Be(() => {
|
|
1849
|
-
if (!t) {
|
|
1850
|
-
v(null);
|
|
1851
|
-
return;
|
|
1852
|
-
}
|
|
1853
|
-
N(ut(u.current)), $();
|
|
1854
|
-
}, [t, $]), le(() => {
|
|
1855
|
-
if (t)
|
|
1856
|
-
return f.current = document.activeElement, () => {
|
|
1857
|
-
var _, p;
|
|
1858
|
-
return (p = (_ = f.current) == null ? void 0 : _.focus) == null ? void 0 : p.call(_, { preventScroll: !0 });
|
|
1859
|
-
};
|
|
1860
|
-
}, [t]), le(() => {
|
|
1861
|
-
if (!t) return;
|
|
1862
|
-
const _ = h.current;
|
|
1863
|
-
if (_)
|
|
1864
|
-
return Qe.push(_), () => {
|
|
1865
|
-
const p = Qe.lastIndexOf(_);
|
|
1866
|
-
p !== -1 && Qe.splice(p, 1);
|
|
1867
|
-
};
|
|
1868
|
-
}, [t]), le(() => {
|
|
1869
|
-
if (!t) return;
|
|
1870
|
-
const _ = () => $();
|
|
1871
|
-
return window.addEventListener("scroll", _, !0), window.addEventListener("resize", _), () => {
|
|
1872
|
-
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _);
|
|
1873
|
-
};
|
|
1874
|
-
}, [t, $]), le(() => {
|
|
1875
|
-
if (!t) return;
|
|
1876
|
-
const _ = (b) => {
|
|
1877
|
-
var k, M;
|
|
1878
|
-
const S = b.target;
|
|
1879
|
-
(k = h.current) != null && k.contains(S) || (M = u.current) != null && M.contains(S) || Qe.length && Qe[Qe.length - 1] !== h.current || n();
|
|
1880
|
-
}, p = (b) => {
|
|
1881
|
-
b.key === "Escape" && (b.stopPropagation(), n());
|
|
1882
|
-
};
|
|
1883
|
-
return document.addEventListener("mousedown", _, !0), document.addEventListener("keydown", p), () => {
|
|
1884
|
-
document.removeEventListener("mousedown", _, !0), document.removeEventListener("keydown", p);
|
|
1885
|
-
};
|
|
1886
|
-
}, [t, n]), vc(t && i, h), /* @__PURE__ */ m(ae, { children: [
|
|
1887
|
-
/* @__PURE__ */ e("span", { className: "select-pop__trigger", ref: u, children: l }),
|
|
1888
|
-
t && Ft(
|
|
1889
|
-
/* @__PURE__ */ e(
|
|
1890
|
-
"div",
|
|
2030
|
+
/* @__PURE__ */ e("span", { className: "select-segmented__pill", "aria-hidden": "true", style: g }),
|
|
2031
|
+
c.map((v, x) => {
|
|
2032
|
+
const N = v.value === n;
|
|
2033
|
+
return /* @__PURE__ */ e(
|
|
2034
|
+
"button",
|
|
1891
2035
|
{
|
|
1892
|
-
ref:
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
2036
|
+
ref: ($) => {
|
|
2037
|
+
u.current[x] = $;
|
|
2038
|
+
},
|
|
2039
|
+
type: "button",
|
|
2040
|
+
role: "tab",
|
|
2041
|
+
"aria-selected": N,
|
|
2042
|
+
className: `select-segmented__item${N ? " select-segmented__item--active" : ""}`,
|
|
2043
|
+
onClick: () => l(v.value),
|
|
2044
|
+
children: v.label
|
|
2045
|
+
},
|
|
2046
|
+
v.value
|
|
2047
|
+
);
|
|
2048
|
+
})
|
|
1903
2049
|
] });
|
|
2050
|
+
}), cl = R(function({ children: n, tone: l = "neutral", icon: c, size: s = "md", className: a, ...r }, i) {
|
|
2051
|
+
return /* @__PURE__ */ m(
|
|
2052
|
+
"span",
|
|
2053
|
+
{
|
|
2054
|
+
ref: i,
|
|
2055
|
+
...r,
|
|
2056
|
+
className: `select-badge select-badge--${l}${s === "sm" ? " select-badge--sm" : ""}${a ? " " + a : ""}`,
|
|
2057
|
+
children: [
|
|
2058
|
+
c && /* @__PURE__ */ e("span", { className: "select-badge__icon", children: c }),
|
|
2059
|
+
n
|
|
2060
|
+
]
|
|
2061
|
+
}
|
|
2062
|
+
);
|
|
2063
|
+
}), xc = {
|
|
2064
|
+
approved: { label: "Aprovada", tone: "success" },
|
|
2065
|
+
"pre-authorized": { label: "Pré-autorizada", tone: "success" },
|
|
2066
|
+
authorized: { label: "Autorizada", tone: "info" },
|
|
2067
|
+
pending: { label: "Pendente", tone: "warning" },
|
|
2068
|
+
awaiting: { label: "Aguardando", tone: "warning" },
|
|
2069
|
+
analyzing: { label: "Em análise", tone: "warning" },
|
|
2070
|
+
processing: { label: "Processando", tone: "info" },
|
|
2071
|
+
"fraud-review": { label: "Anti-fraude", tone: "warning" },
|
|
2072
|
+
failed: { label: "Falhou", tone: "critical" },
|
|
2073
|
+
refused: { label: "Recusada", tone: "critical" },
|
|
2074
|
+
declined: { label: "Recusada", tone: "critical" },
|
|
2075
|
+
unauthorized: { label: "Não autorizada", tone: "critical" },
|
|
2076
|
+
refunded: { label: "Estornada", tone: "info" },
|
|
2077
|
+
canceled: { label: "Cancelada", tone: "neutral" },
|
|
2078
|
+
chargeback: { label: "Chargeback", tone: "critical" },
|
|
2079
|
+
dispute: { label: "Em disputa", tone: "critical" }
|
|
2080
|
+
};
|
|
2081
|
+
function c1({
|
|
2082
|
+
status: t,
|
|
2083
|
+
map: n = xc,
|
|
2084
|
+
size: l
|
|
2085
|
+
}) {
|
|
2086
|
+
const c = n[t] ?? { label: t };
|
|
2087
|
+
return /* @__PURE__ */ e(cl, { tone: c.tone, size: l, children: c.label });
|
|
1904
2088
|
}
|
|
1905
|
-
function
|
|
2089
|
+
function sl({ items: t, sections: n, onAction: l, autoFocus: c = !0, className: s, ...a }) {
|
|
1906
2090
|
const r = q(null), i = n ?? (t ? [{ items: t }] : []);
|
|
1907
2091
|
le(() => {
|
|
1908
2092
|
var d, u;
|
|
@@ -1939,7 +2123,7 @@ function ll({ items: t, sections: n, onAction: l, autoFocus: c = !0, className:
|
|
|
1939
2123
|
))
|
|
1940
2124
|
] }, u)) });
|
|
1941
2125
|
}
|
|
1942
|
-
function
|
|
2126
|
+
function s1({
|
|
1943
2127
|
items: t,
|
|
1944
2128
|
label: n = "Ações",
|
|
1945
2129
|
disabled: l
|
|
@@ -1963,7 +2147,7 @@ function c1({
|
|
|
1963
2147
|
children: n
|
|
1964
2148
|
}
|
|
1965
2149
|
),
|
|
1966
|
-
children: /* @__PURE__ */ e(
|
|
2150
|
+
children: /* @__PURE__ */ e(sl, { items: t, onAction: () => s(!1) })
|
|
1967
2151
|
}
|
|
1968
2152
|
);
|
|
1969
2153
|
}
|
|
@@ -2003,16 +2187,16 @@ const ze = {
|
|
|
2003
2187
|
baseline: "baseline",
|
|
2004
2188
|
stretch: "stretch"
|
|
2005
2189
|
};
|
|
2006
|
-
function
|
|
2190
|
+
function Et(...t) {
|
|
2007
2191
|
return t.filter(Boolean).join(" ");
|
|
2008
2192
|
}
|
|
2009
|
-
function
|
|
2193
|
+
function jt({ children: t, gap: n, align: l, inlineAlign: c, as: s = "div", className: a, ...r }) {
|
|
2010
2194
|
const i = s, o = {
|
|
2011
2195
|
rowGap: n ? ze[n] : void 0,
|
|
2012
2196
|
justifyContent: l ? ot[l] : void 0,
|
|
2013
2197
|
alignItems: c ? ot[c] : void 0
|
|
2014
2198
|
};
|
|
2015
|
-
return /* @__PURE__ */ e(i, { ...r, className:
|
|
2199
|
+
return /* @__PURE__ */ e(i, { ...r, className: Et("select-stack", a), style: o, children: t });
|
|
2016
2200
|
}
|
|
2017
2201
|
function st({ children: t, gap: n, align: l, blockAlign: c = "center", wrap: s = !0, as: a = "div", className: r, ...i }) {
|
|
2018
2202
|
const o = a, d = {
|
|
@@ -2022,43 +2206,43 @@ function st({ children: t, gap: n, align: l, blockAlign: c = "center", wrap: s =
|
|
|
2022
2206
|
alignItems: ot[c],
|
|
2023
2207
|
flexWrap: s ? "wrap" : "nowrap"
|
|
2024
2208
|
};
|
|
2025
|
-
return /* @__PURE__ */ e(o, { ...i, className:
|
|
2209
|
+
return /* @__PURE__ */ e(o, { ...i, className: Et("select-inline", r), style: d, children: t });
|
|
2026
2210
|
}
|
|
2027
|
-
function
|
|
2211
|
+
function a1({ children: t, columns: n = 2, gap: l = "400", alignItems: c, collapseBelow: s, as: a = "div", className: r, ...i }) {
|
|
2028
2212
|
const o = a, d = {
|
|
2029
2213
|
"--select-grid-columns": typeof n == "number" ? `repeat(${n}, minmax(0, 1fr))` : n,
|
|
2030
2214
|
gap: ze[l],
|
|
2031
2215
|
alignItems: c ? ot[c] : void 0
|
|
2032
2216
|
};
|
|
2033
|
-
return /* @__PURE__ */ e(o, { ...i, className:
|
|
2217
|
+
return /* @__PURE__ */ e(o, { ...i, className: Et("select-grid", s && `select-grid--collapse-${s}`, r), style: d, children: t });
|
|
2034
2218
|
}
|
|
2035
|
-
const
|
|
2219
|
+
const yc = {
|
|
2036
2220
|
surface: "var(--select-surface)",
|
|
2037
2221
|
"surface-secondary": "var(--select-card-muted)",
|
|
2038
2222
|
"surface-sunken": "var(--select-surface-sunken)",
|
|
2039
2223
|
card: "var(--select-card-bg)",
|
|
2040
2224
|
transparent: "transparent"
|
|
2041
|
-
},
|
|
2225
|
+
}, Nc = {
|
|
2042
2226
|
sm: "var(--select-radius-sm)",
|
|
2043
2227
|
base: "var(--select-radius)",
|
|
2044
2228
|
lg: "var(--select-radius-lg)",
|
|
2045
2229
|
card: "var(--select-radius-card)",
|
|
2046
2230
|
full: "999px"
|
|
2047
2231
|
};
|
|
2048
|
-
function
|
|
2232
|
+
function Mc({ children: t, padding: n, paddingInline: l, paddingBlock: c, background: s, borderRadius: a, border: r = !1, shadow: i = !1, width: o, minHeight: d, as: u = "div", className: h, style: f, ...g }) {
|
|
2049
2233
|
const v = u, x = {
|
|
2050
2234
|
padding: n ? ze[n] : void 0,
|
|
2051
2235
|
paddingInline: l ? ze[l] : void 0,
|
|
2052
2236
|
paddingBlock: c ? ze[c] : void 0,
|
|
2053
|
-
background: s ?
|
|
2054
|
-
borderRadius: a ?
|
|
2237
|
+
background: s ? yc[s] : void 0,
|
|
2238
|
+
borderRadius: a ? Nc[a] : void 0,
|
|
2055
2239
|
border: r ? "1px solid var(--select-border)" : void 0,
|
|
2056
2240
|
boxShadow: i ? "var(--select-shadow-card)" : void 0,
|
|
2057
2241
|
width: o,
|
|
2058
2242
|
minHeight: d,
|
|
2059
2243
|
...f
|
|
2060
2244
|
};
|
|
2061
|
-
return /* @__PURE__ */ e(v, { ...g, className:
|
|
2245
|
+
return /* @__PURE__ */ e(v, { ...g, className: Et("select-box", h), style: x, children: t });
|
|
2062
2246
|
}
|
|
2063
2247
|
function Xe({ children: t, as: n = "p", variant: l = "bodyMd", tone: c, fontWeight: s, alignment: a, truncate: r = !1, numeric: i = !1, className: o, ...d }) {
|
|
2064
2248
|
const u = n, h = [
|
|
@@ -2072,7 +2256,7 @@ function Xe({ children: t, as: n = "p", variant: l = "bodyMd", tone: c, fontWeig
|
|
|
2072
2256
|
].filter(Boolean).join(" ");
|
|
2073
2257
|
return /* @__PURE__ */ e(u, { ...d, className: h, style: a ? { textAlign: a } : void 0, children: t });
|
|
2074
2258
|
}
|
|
2075
|
-
const
|
|
2259
|
+
const an = "https://cdn.selectwin.io/public/payicons", on = {
|
|
2076
2260
|
visa: "visa",
|
|
2077
2261
|
mastercard: "mastercard",
|
|
2078
2262
|
master: "mastercard",
|
|
@@ -2090,7 +2274,7 @@ const on = "https://cdn.selectwin.io/public/payicons", rn = {
|
|
|
2090
2274
|
diners: "dinersclub",
|
|
2091
2275
|
"diners-club": "dinersclub",
|
|
2092
2276
|
dinersclub: "dinersclub"
|
|
2093
|
-
},
|
|
2277
|
+
}, $c = {
|
|
2094
2278
|
pix: "pix",
|
|
2095
2279
|
billet: "boleto",
|
|
2096
2280
|
boleto: "boleto",
|
|
@@ -2103,12 +2287,12 @@ const on = "https://cdn.selectwin.io/public/payicons", rn = {
|
|
|
2103
2287
|
boleto: "Boleto bancário",
|
|
2104
2288
|
nupay: "Nupay"
|
|
2105
2289
|
};
|
|
2106
|
-
function
|
|
2290
|
+
function rn(t) {
|
|
2107
2291
|
if (!t) return null;
|
|
2108
2292
|
const n = t.toLowerCase().trim().replace(/\s+/g, "-");
|
|
2109
|
-
return
|
|
2293
|
+
return on[n] ?? on[n.replace(/-/g, "")] ?? null;
|
|
2110
2294
|
}
|
|
2111
|
-
function
|
|
2295
|
+
function o1({
|
|
2112
2296
|
method: t,
|
|
2113
2297
|
cardBrand: n,
|
|
2114
2298
|
/** Chip height in px; width is derived to a card aspect ratio (1.2). Default 24×29. */
|
|
@@ -2121,15 +2305,15 @@ function a1({
|
|
|
2121
2305
|
* method/brand text everywhere the label renders (chip title, alt, showLabel, fallback). */
|
|
2122
2306
|
label: a
|
|
2123
2307
|
}) {
|
|
2124
|
-
const r =
|
|
2308
|
+
const r = rn(n) ?? (t ? $c[t] : null), i = a || n || (t ? _t[t] : void 0) || t || "—";
|
|
2125
2309
|
if (!r)
|
|
2126
2310
|
return /* @__PURE__ */ e(Xe, { as: "span", tone: "subdued", variant: "bodySm", children: a || t && _t[t] || n || t || "—" });
|
|
2127
|
-
const o =
|
|
2311
|
+
const o = rn(n) == null, d = l, u = Math.round(l * 1.2);
|
|
2128
2312
|
if (s) {
|
|
2129
2313
|
const f = o ? Math.round(l * 0.7) : l, g = /* @__PURE__ */ e(
|
|
2130
2314
|
"img",
|
|
2131
2315
|
{
|
|
2132
|
-
src: `${
|
|
2316
|
+
src: `${an}/${r}.svg`,
|
|
2133
2317
|
alt: i,
|
|
2134
2318
|
title: i,
|
|
2135
2319
|
loading: "lazy",
|
|
@@ -2169,7 +2353,7 @@ function a1({
|
|
|
2169
2353
|
children: /* @__PURE__ */ e(
|
|
2170
2354
|
"img",
|
|
2171
2355
|
{
|
|
2172
|
-
src: `${
|
|
2356
|
+
src: `${an}/${r}.svg`,
|
|
2173
2357
|
alt: i,
|
|
2174
2358
|
loading: "lazy",
|
|
2175
2359
|
style: o ? (
|
|
@@ -2191,7 +2375,7 @@ function a1({
|
|
|
2191
2375
|
/* @__PURE__ */ e(Xe, { as: "span", variant: "bodySm", children: a || t && _t[t] || n || t })
|
|
2192
2376
|
] }) : h;
|
|
2193
2377
|
}
|
|
2194
|
-
function
|
|
2378
|
+
function al({
|
|
2195
2379
|
content: t,
|
|
2196
2380
|
children: n,
|
|
2197
2381
|
placement: l = "top",
|
|
@@ -2215,7 +2399,7 @@ function cl({
|
|
|
2215
2399
|
}
|
|
2216
2400
|
const v = (($ = r.current) == null ? void 0 : $.firstElementChild) ?? r.current, x = i.current;
|
|
2217
2401
|
if (!v || !x) return;
|
|
2218
|
-
const N =
|
|
2402
|
+
const N = tl(
|
|
2219
2403
|
v.getBoundingClientRect(),
|
|
2220
2404
|
{ width: x.offsetWidth, height: x.offsetHeight },
|
|
2221
2405
|
l,
|
|
@@ -2259,9 +2443,9 @@ function cl({
|
|
|
2259
2443
|
] });
|
|
2260
2444
|
}
|
|
2261
2445
|
const ge = R(function({ icon: n, label: l, onClick: c, disabled: s = !1, size: a = "md", variant: r = "ghost", active: i = !1, className: o, ...d }, u) {
|
|
2262
|
-
return /* @__PURE__ */ e(
|
|
2446
|
+
return /* @__PURE__ */ e(al, { content: l, children: /* @__PURE__ */ e("button", { ref: u, ...d, type: "button", className: `select-iconbtn select-iconbtn--${a} select-iconbtn--${r}${i ? " is-active" : ""}${o ? " " + o : ""}`, "aria-label": l, "aria-pressed": i, onClick: c, disabled: s, children: n }) });
|
|
2263
2447
|
});
|
|
2264
|
-
function
|
|
2448
|
+
function kc({
|
|
2265
2449
|
open: t,
|
|
2266
2450
|
onToggle: n,
|
|
2267
2451
|
children: l,
|
|
@@ -2284,14 +2468,14 @@ function Nc({
|
|
|
2284
2468
|
}
|
|
2285
2469
|
);
|
|
2286
2470
|
}
|
|
2287
|
-
const
|
|
2288
|
-
function
|
|
2289
|
-
const n = t.split(
|
|
2290
|
-
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(
|
|
2471
|
+
const wc = 3e3, Vt = "", ol = (t, n) => t === "" ? n : t + Vt + n;
|
|
2472
|
+
function dn(t) {
|
|
2473
|
+
const n = t.split(Vt), l = [];
|
|
2474
|
+
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(Vt));
|
|
2291
2475
|
return l;
|
|
2292
2476
|
}
|
|
2293
|
-
const
|
|
2294
|
-
function
|
|
2477
|
+
const Sc = (t) => t instanceof Date || t instanceof RegExp || t instanceof Map || t instanceof Set;
|
|
2478
|
+
function rl(t) {
|
|
2295
2479
|
if (t == null) return "null";
|
|
2296
2480
|
if (Array.isArray(t)) return "array";
|
|
2297
2481
|
switch (typeof t) {
|
|
@@ -2303,29 +2487,29 @@ function al(t) {
|
|
|
2303
2487
|
case "boolean":
|
|
2304
2488
|
return "boolean";
|
|
2305
2489
|
case "object":
|
|
2306
|
-
return
|
|
2490
|
+
return Sc(t) ? "other" : "object";
|
|
2307
2491
|
default:
|
|
2308
2492
|
return "other";
|
|
2309
2493
|
}
|
|
2310
2494
|
}
|
|
2311
2495
|
function Oe(t) {
|
|
2312
|
-
const n =
|
|
2496
|
+
const n = rl(t);
|
|
2313
2497
|
return n === "object" || n === "array";
|
|
2314
2498
|
}
|
|
2315
|
-
function
|
|
2499
|
+
function il(t) {
|
|
2316
2500
|
return Array.isArray(t) ? t.map((n, l) => [String(l), n]) : Oe(t) ? Object.entries(t) : [];
|
|
2317
2501
|
}
|
|
2318
2502
|
function pt(t) {
|
|
2319
2503
|
return Array.isArray(t) ? t.length : Oe(t) ? Object.keys(t).length : 0;
|
|
2320
2504
|
}
|
|
2321
|
-
function
|
|
2505
|
+
function tn(t) {
|
|
2322
2506
|
return t == null ? "null" : typeof t == "string" ? t : t instanceof Date ? Number.isNaN(t.getTime()) ? "Invalid Date" : t.toISOString() : String(t);
|
|
2323
2507
|
}
|
|
2324
|
-
function
|
|
2508
|
+
function hn(t) {
|
|
2325
2509
|
const n = pt(t), l = Array.isArray(t);
|
|
2326
2510
|
return n === 0 ? l ? "[]" : "{}" : l ? `[${n} ${n === 1 ? "item" : "itens"}]` : `{${n} ${n === 1 ? "chave" : "chaves"}}`;
|
|
2327
2511
|
}
|
|
2328
|
-
function
|
|
2512
|
+
function Cc(t) {
|
|
2329
2513
|
if (typeof t != "string") return t;
|
|
2330
2514
|
const n = t.trim();
|
|
2331
2515
|
if (!n.startsWith("{") && !n.startsWith("[")) return t;
|
|
@@ -2335,17 +2519,17 @@ function kc(t) {
|
|
|
2335
2519
|
return t;
|
|
2336
2520
|
}
|
|
2337
2521
|
}
|
|
2338
|
-
function
|
|
2522
|
+
function Lc(t) {
|
|
2339
2523
|
return t == null ? !0 : Oe(t) ? pt(t) === 0 : !1;
|
|
2340
2524
|
}
|
|
2341
|
-
function
|
|
2525
|
+
function dl(t) {
|
|
2342
2526
|
try {
|
|
2343
2527
|
return JSON.stringify(t, null, 2) ?? String(t);
|
|
2344
2528
|
} catch {
|
|
2345
2529
|
return String(t);
|
|
2346
2530
|
}
|
|
2347
2531
|
}
|
|
2348
|
-
function rt(t, n, l =
|
|
2532
|
+
function rt(t, n, l = wc) {
|
|
2349
2533
|
let c = 0, s = !1;
|
|
2350
2534
|
const a = (r, i, o, d, u) => {
|
|
2351
2535
|
if (s) return;
|
|
@@ -2360,47 +2544,47 @@ function rt(t, n, l = Mc) {
|
|
|
2360
2544
|
const h = r;
|
|
2361
2545
|
if (u.includes(h)) return;
|
|
2362
2546
|
const f = [...u, h];
|
|
2363
|
-
for (const [g, v] of
|
|
2364
|
-
if (a(v,
|
|
2547
|
+
for (const [g, v] of il(r))
|
|
2548
|
+
if (a(v, ol(i, g), g, d + 1, f), s) return;
|
|
2365
2549
|
};
|
|
2366
2550
|
return a(t, "", "", 0, []), { count: c, truncated: s };
|
|
2367
2551
|
}
|
|
2368
|
-
function
|
|
2552
|
+
function Ac(t, n) {
|
|
2369
2553
|
return Oe(t) && n.includes(t);
|
|
2370
2554
|
}
|
|
2371
|
-
function
|
|
2555
|
+
function Fc(t, n) {
|
|
2372
2556
|
const l = /* @__PURE__ */ new Set();
|
|
2373
2557
|
return rt(t, ({ path: c, value: s, depth: a }) => {
|
|
2374
2558
|
a <= n && Oe(s) && pt(s) > 0 && l.add(c);
|
|
2375
2559
|
}), l;
|
|
2376
2560
|
}
|
|
2377
|
-
function
|
|
2561
|
+
function Bc(t) {
|
|
2378
2562
|
const n = [];
|
|
2379
2563
|
return rt(t, ({ path: l, value: c }) => {
|
|
2380
2564
|
Oe(c) && pt(c) > 0 && n.push(l);
|
|
2381
2565
|
}), n;
|
|
2382
2566
|
}
|
|
2383
|
-
const
|
|
2384
|
-
function
|
|
2567
|
+
const Ec = { matched: /* @__PURE__ */ new Set(), visible: /* @__PURE__ */ new Set(), count: 0, active: !1 };
|
|
2568
|
+
function Ic(t, n) {
|
|
2385
2569
|
const l = n.trim().toLowerCase();
|
|
2386
|
-
if (!l) return
|
|
2570
|
+
if (!l) return Ec;
|
|
2387
2571
|
const c = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
2388
2572
|
return rt(t, ({ path: a, key: r, value: i }) => {
|
|
2389
|
-
if (r.toLowerCase().includes(l) || !Oe(i) &&
|
|
2573
|
+
if (r.toLowerCase().includes(l) || !Oe(i) && tn(i).toLowerCase().includes(l)) {
|
|
2390
2574
|
c.add(a), s.add(a);
|
|
2391
|
-
for (const d of
|
|
2575
|
+
for (const d of dn(a)) s.add(d);
|
|
2392
2576
|
}
|
|
2393
2577
|
}), c.size > 0 && rt(t, ({ path: a }) => {
|
|
2394
|
-
|
|
2578
|
+
dn(a).some((r) => c.has(r)) && s.add(a);
|
|
2395
2579
|
}), { matched: c, visible: s, count: c.size, active: !0 };
|
|
2396
2580
|
}
|
|
2397
|
-
const
|
|
2398
|
-
function
|
|
2581
|
+
const un = /("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(?:\s*:)?|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;
|
|
2582
|
+
function Pc(t) {
|
|
2399
2583
|
const n = [];
|
|
2400
2584
|
let l = 0;
|
|
2401
|
-
|
|
2585
|
+
un.lastIndex = 0;
|
|
2402
2586
|
let c;
|
|
2403
|
-
for (; (c =
|
|
2587
|
+
for (; (c = un.exec(t)) !== null; ) {
|
|
2404
2588
|
c.index > l && n.push({ text: t.slice(l, c.index), cls: "plain" });
|
|
2405
2589
|
const s = c[0];
|
|
2406
2590
|
let a = "num";
|
|
@@ -2408,7 +2592,7 @@ function Bc(t) {
|
|
|
2408
2592
|
}
|
|
2409
2593
|
return l < t.length && n.push({ text: t.slice(l), cls: "plain" }), n;
|
|
2410
2594
|
}
|
|
2411
|
-
function
|
|
2595
|
+
function Rc(t, n) {
|
|
2412
2596
|
const l = n.trim();
|
|
2413
2597
|
if (!l) return [{ text: t, hit: !1 }];
|
|
2414
2598
|
const c = t.toLowerCase(), s = l.toLowerCase(), a = [];
|
|
@@ -2423,7 +2607,7 @@ function Ec(t, n) {
|
|
|
2423
2607
|
}
|
|
2424
2608
|
return a.length > 0 ? a : [{ text: t, hit: !1 }];
|
|
2425
2609
|
}
|
|
2426
|
-
function
|
|
2610
|
+
function Dc(t, n) {
|
|
2427
2611
|
const l = n.trim().toLowerCase();
|
|
2428
2612
|
if (!l) return 0;
|
|
2429
2613
|
const c = t.toLowerCase();
|
|
@@ -2432,7 +2616,7 @@ function Ic(t, n) {
|
|
|
2432
2616
|
s += 1, a = c.indexOf(l, a + l.length);
|
|
2433
2617
|
return s;
|
|
2434
2618
|
}
|
|
2435
|
-
const
|
|
2619
|
+
const pn = 320, Tc = 12e4, Wc = {
|
|
2436
2620
|
string: "str",
|
|
2437
2621
|
number: "num",
|
|
2438
2622
|
boolean: "bool",
|
|
@@ -2442,11 +2626,11 @@ const mn = 320, Pc = 12e4, Rc = {
|
|
|
2442
2626
|
array: "plain"
|
|
2443
2627
|
};
|
|
2444
2628
|
function St({ text: t, term: n }) {
|
|
2445
|
-
return n.trim() ? /* @__PURE__ */ e(ae, { children:
|
|
2446
|
-
(l, c) => l.hit ? /* @__PURE__ */ e("mark", { className: "select-json__hit", children: l.text }, c) : /* @__PURE__ */ e(
|
|
2629
|
+
return n.trim() ? /* @__PURE__ */ e(ae, { children: Rc(t, n).map(
|
|
2630
|
+
(l, c) => l.hit ? /* @__PURE__ */ e("mark", { className: "select-json__hit", children: l.text }, c) : /* @__PURE__ */ e(Gt, { children: l.text }, c)
|
|
2447
2631
|
) }) : /* @__PURE__ */ e(ae, { children: t });
|
|
2448
2632
|
}
|
|
2449
|
-
function
|
|
2633
|
+
function Oc(t = 1400) {
|
|
2450
2634
|
const [n, l] = D(null), c = q(void 0);
|
|
2451
2635
|
le(() => () => window.clearTimeout(c.current), []);
|
|
2452
2636
|
const s = Te(
|
|
@@ -2458,15 +2642,15 @@ function Dc(t = 1400) {
|
|
|
2458
2642
|
);
|
|
2459
2643
|
return [n, s];
|
|
2460
2644
|
}
|
|
2461
|
-
function
|
|
2462
|
-
const c =
|
|
2463
|
-
return /* @__PURE__ */ m("span", { className: `select-json__v select-json__v--${
|
|
2645
|
+
function hl({ value: t, term: n, forceFull: l }) {
|
|
2646
|
+
const c = rl(t), s = tn(t), a = !l && s.length > pn, r = a ? `${s.slice(0, pn)}…` : s, i = c === "string";
|
|
2647
|
+
return /* @__PURE__ */ m("span", { className: `select-json__v select-json__v--${Wc[c]}`, title: a ? s : void 0, children: [
|
|
2464
2648
|
i && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' }),
|
|
2465
2649
|
/* @__PURE__ */ e(St, { text: r, term: n }),
|
|
2466
2650
|
i && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' })
|
|
2467
2651
|
] });
|
|
2468
2652
|
}
|
|
2469
|
-
function
|
|
2653
|
+
function ul({
|
|
2470
2654
|
value: t,
|
|
2471
2655
|
path: n,
|
|
2472
2656
|
depth: l,
|
|
@@ -2474,11 +2658,11 @@ function dl({
|
|
|
2474
2658
|
ctx: s
|
|
2475
2659
|
}) {
|
|
2476
2660
|
const a = s.result.active, r = Array.isArray(t);
|
|
2477
|
-
return /* @__PURE__ */ e(ae, { children:
|
|
2478
|
-
const d =
|
|
2661
|
+
return /* @__PURE__ */ e(ae, { children: il(t).map(([i, o]) => {
|
|
2662
|
+
const d = ol(n, i);
|
|
2479
2663
|
if (a && !s.result.visible.has(d)) return null;
|
|
2480
|
-
const u =
|
|
2481
|
-
return /* @__PURE__ */ m(
|
|
2664
|
+
const u = Ac(o, c), h = Oe(o) && !u, f = h && pt(o) > 0, g = a ? !0 : s.expanded.has(d), v = s.result.matched.has(d), x = `row:${d}`;
|
|
2665
|
+
return /* @__PURE__ */ m(Gt, { children: [
|
|
2482
2666
|
/* @__PURE__ */ m(
|
|
2483
2667
|
"div",
|
|
2484
2668
|
{
|
|
@@ -2502,8 +2686,8 @@ function dl({
|
|
|
2502
2686
|
u ? /* @__PURE__ */ e("span", { className: "select-json__v select-json__v--other", children: "[referência circular]" }) : f ? (
|
|
2503
2687
|
// The summary doubles as a second hit-target for the caret; `tabIndex={-1}`
|
|
2504
2688
|
// keeps it out of the tab order (the caret is already the focusable control).
|
|
2505
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children:
|
|
2506
|
-
) : h ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children:
|
|
2689
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children: hn(o) })
|
|
2690
|
+
) : h ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children: hn(o) }) : /* @__PURE__ */ e(hl, { value: o, term: s.search, forceFull: v })
|
|
2507
2691
|
] }),
|
|
2508
2692
|
/* @__PURE__ */ e(
|
|
2509
2693
|
"button",
|
|
@@ -2512,31 +2696,31 @@ function dl({
|
|
|
2512
2696
|
className: "select-json__copy",
|
|
2513
2697
|
"aria-label": `Copiar ${i}`,
|
|
2514
2698
|
title: s.copied === x ? "Copiado!" : "Copiar valor",
|
|
2515
|
-
onClick: () => s.copy(x, h ?
|
|
2516
|
-
children: s.copied === x ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(
|
|
2699
|
+
onClick: () => s.copy(x, h ? dl(o) : tn(o)),
|
|
2700
|
+
children: s.copied === x ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(Xt, {})
|
|
2517
2701
|
}
|
|
2518
2702
|
)
|
|
2519
2703
|
]
|
|
2520
2704
|
}
|
|
2521
2705
|
),
|
|
2522
|
-
f && g && /* @__PURE__ */ e(
|
|
2706
|
+
f && g && /* @__PURE__ */ e(ul, { value: o, path: d, depth: l + 1, ancestors: [...c, o], ctx: s })
|
|
2523
2707
|
] }, d);
|
|
2524
2708
|
}) });
|
|
2525
2709
|
}
|
|
2526
|
-
function
|
|
2527
|
-
const l = xe(() => t.length >
|
|
2710
|
+
function Hc({ text: t, term: n }) {
|
|
2711
|
+
const l = xe(() => t.length > Tc ? null : Pc(t), [t]);
|
|
2528
2712
|
return l ? /* @__PURE__ */ e("pre", { className: "select-json__pre", children: l.map((c, s) => /* @__PURE__ */ e("span", { className: `select-json__v--${c.cls}`, children: /* @__PURE__ */ e(St, { text: c.text, term: n }) }, s)) }) : /* @__PURE__ */ e("pre", { className: "select-json__pre", children: /* @__PURE__ */ e(St, { text: t, term: n }) });
|
|
2529
2713
|
}
|
|
2530
|
-
const
|
|
2531
|
-
const [h, f] = D(s), [g, v] = D("tree"), [x, N] = D(""), [$, _] = D(/* @__PURE__ */ new Set()), [p, b] =
|
|
2532
|
-
() => typeof n == "string" && k === n ? n :
|
|
2714
|
+
const r1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, defaultOpen: s = !1, defaultExpandDepth: a = 1, searchable: r = !0, emptyLabel: i = "Sem dados", className: o, ...d }, u) {
|
|
2715
|
+
const [h, f] = D(s), [g, v] = D("tree"), [x, N] = D(""), [$, _] = D(/* @__PURE__ */ new Set()), [p, b] = Oc(), S = q(null), k = xe(() => Cc(n), [n]), M = Lc(k), w = xe(
|
|
2716
|
+
() => typeof n == "string" && k === n ? n : dl(k),
|
|
2533
2717
|
[n, k]
|
|
2534
2718
|
), y = xe(() => rt(k, () => {
|
|
2535
|
-
}).truncated, [k]), C = g === "tree" && !y, L = xe(() => y ? [] :
|
|
2719
|
+
}).truncated, [k]), C = g === "tree" && !y, L = xe(() => y ? [] : Bc(k), [k, y]);
|
|
2536
2720
|
le(() => {
|
|
2537
|
-
_(y ? /* @__PURE__ */ new Set() :
|
|
2721
|
+
_(y ? /* @__PURE__ */ new Set() : Fc(k, a)), N("");
|
|
2538
2722
|
}, [k, a, y]);
|
|
2539
|
-
const B = xe(() =>
|
|
2723
|
+
const B = xe(() => Ic(k, C ? x : ""), [k, x, C]), A = x.trim().length > 0, F = C ? B.count : Dc(w, x);
|
|
2540
2724
|
le(() => {
|
|
2541
2725
|
var Z, G;
|
|
2542
2726
|
!h || !A || (G = (Z = S.current) == null ? void 0 : Z.querySelector(".select-json__hit")) == null || G.scrollIntoView({ block: "nearest" });
|
|
@@ -2550,12 +2734,12 @@ const o1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2550
2734
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-json${o ? " " + o : ""}`, children: [
|
|
2551
2735
|
/* @__PURE__ */ m("div", { className: "select-json__head", children: [
|
|
2552
2736
|
/* @__PURE__ */ e(Xe, { as: "h2", variant: "headingSm", children: l }),
|
|
2553
|
-
/* @__PURE__ */ e(
|
|
2737
|
+
/* @__PURE__ */ e(kc, { open: W, onToggle: () => f((Z) => !Z), openLabel: "Ocultar", disabled: M, children: M ? i : "Mostrar" })
|
|
2554
2738
|
] }),
|
|
2555
2739
|
W && /* @__PURE__ */ m("div", { className: "select-json__body", children: [
|
|
2556
2740
|
/* @__PURE__ */ m("div", { className: "select-json__toolbar", children: [
|
|
2557
2741
|
r ? /* @__PURE__ */ m(ae, { children: [
|
|
2558
|
-
/* @__PURE__ */ e("span", { className: "select-json__searchicon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
2742
|
+
/* @__PURE__ */ e("span", { className: "select-json__searchicon", "aria-hidden": "true", children: /* @__PURE__ */ e(zt, {}) }),
|
|
2559
2743
|
/* @__PURE__ */ e(
|
|
2560
2744
|
"input",
|
|
2561
2745
|
{
|
|
@@ -2572,7 +2756,7 @@ const o1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2572
2756
|
C && L.length > 0 && !A && /* @__PURE__ */ e(
|
|
2573
2757
|
ge,
|
|
2574
2758
|
{
|
|
2575
|
-
icon: /* @__PURE__ */ e(
|
|
2759
|
+
icon: /* @__PURE__ */ e(Wn, {}),
|
|
2576
2760
|
label: T ? "Recolher tudo" : "Expandir tudo",
|
|
2577
2761
|
size: "sm",
|
|
2578
2762
|
active: T,
|
|
@@ -2605,21 +2789,21 @@ const o1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2605
2789
|
"Nenhuma chave ou valor corresponde a “",
|
|
2606
2790
|
x.trim(),
|
|
2607
2791
|
"”."
|
|
2608
|
-
] }) }) : /* @__PURE__ */ e("div", { className: "select-json__tree", children: Oe(k) ? /* @__PURE__ */ e(
|
|
2792
|
+
] }) }) : /* @__PURE__ */ e("div", { className: "select-json__tree", children: Oe(k) ? /* @__PURE__ */ e(ul, { value: k, path: "", depth: 0, ancestors: [k], ctx: O }) : /* @__PURE__ */ m("div", { className: "select-json__row", style: { "--json-depth": 0 }, children: [
|
|
2609
2793
|
/* @__PURE__ */ e("span", { className: "select-json__caret select-json__caret--empty", "aria-hidden": "true" }),
|
|
2610
|
-
/* @__PURE__ */ e("span", { className: "select-json__label", children: /* @__PURE__ */ e(
|
|
2611
|
-
] }) }) : /* @__PURE__ */ e(
|
|
2794
|
+
/* @__PURE__ */ e("span", { className: "select-json__label", children: /* @__PURE__ */ e(hl, { value: k, term: x, forceFull: !0 }) })
|
|
2795
|
+
] }) }) : /* @__PURE__ */ e(Hc, { text: w, term: x }) })
|
|
2612
2796
|
] })
|
|
2613
2797
|
] });
|
|
2614
|
-
}),
|
|
2798
|
+
}), jc = {
|
|
2615
2799
|
success: "var(--select-success-text)",
|
|
2616
2800
|
critical: "var(--select-danger-text)",
|
|
2617
2801
|
warning: "var(--select-warning-text)",
|
|
2618
2802
|
info: "var(--select-info-text)",
|
|
2619
2803
|
default: "var(--select-text-secondary)"
|
|
2620
|
-
},
|
|
2804
|
+
}, i1 = R(function({ items: n, className: l, ...c }, s) {
|
|
2621
2805
|
var i;
|
|
2622
|
-
const a = n.length ? ((i = n[0]) == null ? void 0 : i.tone) ?? "default" : "default", r = { "--tl-final":
|
|
2806
|
+
const a = n.length ? ((i = n[0]) == null ? void 0 : i.tone) ?? "default" : "default", r = { "--tl-final": jc[a] };
|
|
2623
2807
|
return /* @__PURE__ */ e("ul", { ref: s, ...c, className: `select-timeline${l ? " " + l : ""}`, style: r, children: n.map((o, d) => /* @__PURE__ */ m("li", { className: "select-timeline__item", children: [
|
|
2624
2808
|
/* @__PURE__ */ e("span", { className: `select-timeline__dot${d === 0 ? " select-timeline__dot--final" : ""}`, "aria-hidden": "true" }),
|
|
2625
2809
|
/* @__PURE__ */ m("div", { className: "select-timeline__body", children: [
|
|
@@ -2631,119 +2815,20 @@ const o1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2631
2815
|
o.content != null && /* @__PURE__ */ e("div", { className: "select-timeline__content", children: o.content })
|
|
2632
2816
|
] })
|
|
2633
2817
|
] }, d)) });
|
|
2634
|
-
}),
|
|
2818
|
+
}), Vc = R(function({ children: n, onClick: l, disabled: c = !1, tone: s = "default", className: a, ...r }, i) {
|
|
2635
2819
|
return /* @__PURE__ */ e("button", { ref: i, ...r, type: "button", className: `select-linkbtn${s === "critical" ? " select-linkbtn--critical" : ""}${a ? " " + a : ""}`, onClick: l, disabled: c, children: n });
|
|
2636
|
-
}),
|
|
2820
|
+
}), d1 = R(function({ children: n, className: l, ...c }, s) {
|
|
2637
2821
|
return n == null ? /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-divider select-divider--plain${l ? " " + l : ""}`, role: "separator" }) : /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-divider${l ? " " + l : ""}`, children: n });
|
|
2638
|
-
}),
|
|
2822
|
+
}), Zc = R(function({ name: n, src: l, icon: c, dashed: s = !1, round: a = !1, className: r, ...i }, o) {
|
|
2639
2823
|
var u, h;
|
|
2640
2824
|
const d = ((h = (u = n == null ? void 0 : n.trim()) == null ? void 0 : u[0]) == null ? void 0 : h.toUpperCase()) ?? "?";
|
|
2641
2825
|
return /* @__PURE__ */ e("span", { ref: o, ...i, className: `select-avatar${s ? " select-avatar--dashed" : ""}${a ? " select-avatar--round" : ""}${r ? " " + r : ""}`, "aria-hidden": "true", children: l ? /* @__PURE__ */ e("img", { src: l, alt: "", className: "select-avatar__img" }) : c ? /* @__PURE__ */ e("span", { className: "select-avatar__icon", children: c }) : /* @__PURE__ */ e("span", { className: "select-avatar__initial", children: d }) });
|
|
2642
2826
|
});
|
|
2643
|
-
function
|
|
2644
|
-
|
|
2645
|
-
return typeof window < "u" && !!((t = window.matchMedia) != null && t.call(window, "(prefers-reduced-motion: reduce)").matches);
|
|
2646
|
-
}
|
|
2647
|
-
const ul = () => typeof IntersectionObserver < "u";
|
|
2648
|
-
function Et(t = {}) {
|
|
2649
|
-
const n = q(null), l = q(t);
|
|
2650
|
-
return l.current = t, Be(() => {
|
|
2651
|
-
const c = n.current;
|
|
2652
|
-
if (!c) return;
|
|
2653
|
-
const {
|
|
2654
|
-
selector: s = "[data-reveal]",
|
|
2655
|
-
y: a = 12,
|
|
2656
|
-
scale: r = 1,
|
|
2657
|
-
duration: i = 0.5,
|
|
2658
|
-
stagger: o = 0.06,
|
|
2659
|
-
delay: d = 0,
|
|
2660
|
-
ease: u = "power3.out",
|
|
2661
|
-
scroll: h = !1,
|
|
2662
|
-
once: f = !0,
|
|
2663
|
-
enabled: g = !0
|
|
2664
|
-
} = l.current;
|
|
2665
|
-
if (!g || hl()) return;
|
|
2666
|
-
const v = s ? Array.from(c.querySelectorAll(s)) : [], x = v.length ? v : [c], N = { opacity: 0, y: a, ...r !== 1 ? { scale: r } : {} };
|
|
2667
|
-
let $;
|
|
2668
|
-
const _ = () => {
|
|
2669
|
-
$ = Me.fromTo(x, N, {
|
|
2670
|
-
opacity: 1,
|
|
2671
|
-
y: 0,
|
|
2672
|
-
scale: 1,
|
|
2673
|
-
duration: i,
|
|
2674
|
-
stagger: o,
|
|
2675
|
-
delay: d,
|
|
2676
|
-
ease: u,
|
|
2677
|
-
clearProps: "transform"
|
|
2678
|
-
});
|
|
2679
|
-
};
|
|
2680
|
-
if (!h || !ul())
|
|
2681
|
-
return _(), () => $ == null ? void 0 : $.kill();
|
|
2682
|
-
Me.set(x, N);
|
|
2683
|
-
const p = new IntersectionObserver(
|
|
2684
|
-
(b) => {
|
|
2685
|
-
for (const S of b)
|
|
2686
|
-
S.isIntersecting && (_(), f && p.unobserve(S.target));
|
|
2687
|
-
},
|
|
2688
|
-
{ threshold: 0 }
|
|
2689
|
-
);
|
|
2690
|
-
return p.observe(c), () => {
|
|
2691
|
-
p.disconnect(), $ == null || $.kill();
|
|
2692
|
-
};
|
|
2693
|
-
}, []), n;
|
|
2694
|
-
}
|
|
2695
|
-
function jc(t) {
|
|
2696
|
-
const n = q(null), l = q(t);
|
|
2697
|
-
return l.current = t, Be(() => {
|
|
2698
|
-
const c = n.current;
|
|
2699
|
-
if (!c) return;
|
|
2700
|
-
const {
|
|
2701
|
-
value: s,
|
|
2702
|
-
from: a = 0,
|
|
2703
|
-
duration: r = 1.2,
|
|
2704
|
-
ease: i = "power2.out",
|
|
2705
|
-
format: o = (N) => String(Math.round(N)),
|
|
2706
|
-
scroll: d = !0,
|
|
2707
|
-
once: u = !0,
|
|
2708
|
-
enabled: h = !0
|
|
2709
|
-
} = l.current;
|
|
2710
|
-
if (!h) return;
|
|
2711
|
-
if (hl()) {
|
|
2712
|
-
c.textContent = o(s);
|
|
2713
|
-
return;
|
|
2714
|
-
}
|
|
2715
|
-
const f = { n: a };
|
|
2716
|
-
let g;
|
|
2717
|
-
const v = () => {
|
|
2718
|
-
g = Me.to(f, {
|
|
2719
|
-
n: s,
|
|
2720
|
-
duration: r,
|
|
2721
|
-
ease: i,
|
|
2722
|
-
onUpdate: () => {
|
|
2723
|
-
c.textContent = o(f.n);
|
|
2724
|
-
}
|
|
2725
|
-
});
|
|
2726
|
-
};
|
|
2727
|
-
if (!d || !ul())
|
|
2728
|
-
return v(), () => g == null ? void 0 : g.kill();
|
|
2729
|
-
c.textContent = o(a);
|
|
2730
|
-
const x = new IntersectionObserver(
|
|
2731
|
-
(N) => {
|
|
2732
|
-
for (const $ of N)
|
|
2733
|
-
$.isIntersecting && (v(), u && x.unobserve($.target));
|
|
2734
|
-
},
|
|
2735
|
-
{ threshold: 0 }
|
|
2736
|
-
);
|
|
2737
|
-
return x.observe(c), () => {
|
|
2738
|
-
x.disconnect(), g == null || g.kill();
|
|
2739
|
-
};
|
|
2740
|
-
}, [t.value]), n;
|
|
2741
|
-
}
|
|
2742
|
-
function d1({ children: t, className: n, ...l }) {
|
|
2743
|
-
const c = Et({ selector: ".select-optionrow", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
2827
|
+
function h1({ children: t, className: n, ...l }) {
|
|
2828
|
+
const c = Bt({ selector: ".select-optionrow", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
2744
2829
|
return /* @__PURE__ */ e("div", { ...l, className: `select-optionlist${n ? " " + n : ""}`, ref: c, children: t });
|
|
2745
2830
|
}
|
|
2746
|
-
function
|
|
2831
|
+
function u1({
|
|
2747
2832
|
title: t,
|
|
2748
2833
|
subtitle: n,
|
|
2749
2834
|
leading: l,
|
|
@@ -2761,7 +2846,7 @@ function h1({
|
|
|
2761
2846
|
] }), d = `select-optionrow${a ? " select-optionrow--muted" : ""}`;
|
|
2762
2847
|
return r ? /* @__PURE__ */ e("button", { type: "button", className: d, onClick: s, children: o }) : /* @__PURE__ */ e("div", { className: d, children: o });
|
|
2763
2848
|
}
|
|
2764
|
-
const
|
|
2849
|
+
const p1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix: s = "Conectado como", className: a, ...r }, i) {
|
|
2765
2850
|
return /* @__PURE__ */ m("span", { ref: i, ...r, className: `select-identity${a ? " " + a : ""}`, children: [
|
|
2766
2851
|
/* @__PURE__ */ m("span", { className: "select-identity__text", children: [
|
|
2767
2852
|
s,
|
|
@@ -2770,7 +2855,7 @@ const u1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2770
2855
|
] }),
|
|
2771
2856
|
l && /* @__PURE__ */ e("button", { type: "button", className: "select-identity__action", onClick: l, children: c })
|
|
2772
2857
|
] });
|
|
2773
|
-
}),
|
|
2858
|
+
}), m1 = R(function({ value: n, onChange: l, length: c = 6, onComplete: s, autoFocus: a = !1, disabled: r = !1, className: i, ...o }, d) {
|
|
2774
2859
|
const u = q([]), h = Array.from({ length: c }, (_, p) => n[p] ?? ""), f = (_) => {
|
|
2775
2860
|
var p;
|
|
2776
2861
|
return (p = u.current[_]) == null ? void 0 : p.focus();
|
|
@@ -2827,18 +2912,18 @@ const u1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2827
2912
|
p
|
|
2828
2913
|
)) });
|
|
2829
2914
|
});
|
|
2830
|
-
function
|
|
2915
|
+
function f1({
|
|
2831
2916
|
children: t = "Voltar",
|
|
2832
2917
|
onClick: n,
|
|
2833
2918
|
href: l
|
|
2834
2919
|
}) {
|
|
2835
2920
|
const c = /* @__PURE__ */ m(ae, { children: [
|
|
2836
|
-
/* @__PURE__ */ e(
|
|
2921
|
+
/* @__PURE__ */ e(Dn, {}),
|
|
2837
2922
|
/* @__PURE__ */ e("span", { children: t })
|
|
2838
2923
|
] });
|
|
2839
2924
|
return l ? /* @__PURE__ */ e("a", { className: "select-backlink", href: l, children: c }) : /* @__PURE__ */ e("button", { type: "button", className: "select-backlink", onClick: n, children: c });
|
|
2840
2925
|
}
|
|
2841
|
-
const
|
|
2926
|
+
const _1 = R(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar código", className: s, ...a }, r) {
|
|
2842
2927
|
const [i, o] = D(l);
|
|
2843
2928
|
le(() => {
|
|
2844
2929
|
if (i <= 0) return;
|
|
@@ -2849,30 +2934,30 @@ const f1 = R(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar c
|
|
|
2849
2934
|
i > 0 || (n(), o(l));
|
|
2850
2935
|
}, [i, n, l]), u = i > 0, h = u ? `Reenviar em 0:${String(i).padStart(2, "0")}` : c;
|
|
2851
2936
|
return /* @__PURE__ */ e("button", { ref: r, ...a, type: "button", className: `select-resend${s ? " " + s : ""}`, onClick: d, disabled: u, children: h });
|
|
2852
|
-
}),
|
|
2937
|
+
}), mn = [
|
|
2853
2938
|
{ label: "Muito fraca", cls: "is-0" },
|
|
2854
2939
|
{ label: "Fraca", cls: "is-1" },
|
|
2855
2940
|
{ label: "Razoável", cls: "is-2" },
|
|
2856
2941
|
{ label: "Forte", cls: "is-3" },
|
|
2857
2942
|
{ label: "Excelente", cls: "is-4" }
|
|
2858
2943
|
];
|
|
2859
|
-
function
|
|
2944
|
+
function Gc(t) {
|
|
2860
2945
|
if (!t) return 0;
|
|
2861
2946
|
let n = 0;
|
|
2862
2947
|
return t.length >= 8 && n++, t.length >= 12 && n++, /[a-z]/.test(t) && /[A-Z]/.test(t) && n++, /\d/.test(t) && /[^A-Za-z0-9]/.test(t) && n++, Math.min(n, 4);
|
|
2863
2948
|
}
|
|
2864
|
-
const
|
|
2865
|
-
const a =
|
|
2949
|
+
const v1 = R(function({ value: n, className: l, ...c }, s) {
|
|
2950
|
+
const a = Gc(n), r = mn[a] ?? mn[0];
|
|
2866
2951
|
return /* @__PURE__ */ m("div", { ref: s, ...c, className: `select-strength${l ? " " + l : ""}`, "aria-hidden": !n, children: [
|
|
2867
2952
|
/* @__PURE__ */ e("div", { className: `select-strength__bars select-strength__bars--${r.cls}`, children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ e("span", { className: `select-strength__bar${i < a ? " is-on" : ""}` }, i)) }),
|
|
2868
2953
|
n && /* @__PURE__ */ e("span", { className: "select-strength__label", children: r.label })
|
|
2869
2954
|
] });
|
|
2870
|
-
}),
|
|
2955
|
+
}), Uc = R(function({ label: n, mark: l, className: c, ...s }, a) {
|
|
2871
2956
|
return /* @__PURE__ */ m("div", { ref: a, ...s, className: `select-loader${c ? " " + c : ""}`, role: "status", "aria-live": "polite", children: [
|
|
2872
2957
|
l != null ? /* @__PURE__ */ e("span", { className: "select-loader__mark", "aria-hidden": "true", children: l }) : /* @__PURE__ */ e("span", { className: "select-loader__spinner", "aria-hidden": "true" }),
|
|
2873
2958
|
n && /* @__PURE__ */ e("span", { className: "select-loader__label", children: n })
|
|
2874
2959
|
] });
|
|
2875
|
-
}),
|
|
2960
|
+
}), qc = R(function({ title: n, subtitle: l, primaryAction: c, secondaryActions: s, headerActions: a, backAction: r, children: i, className: o, ...d }, u) {
|
|
2876
2961
|
const h = !!c || s && s.length > 0 || !!a, f = r || n || l || h;
|
|
2877
2962
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select select-page${o ? " " + o : ""}`, children: [
|
|
2878
2963
|
f && /* @__PURE__ */ m("div", { className: "select-page__header", children: [
|
|
@@ -2884,7 +2969,7 @@ const _1 = R(function({ value: n, className: l, ...c }, s) {
|
|
|
2884
2969
|
className: "select-page__back",
|
|
2885
2970
|
onClick: r.onAction,
|
|
2886
2971
|
"aria-label": r.content ?? "Voltar",
|
|
2887
|
-
children: /* @__PURE__ */ e(
|
|
2972
|
+
children: /* @__PURE__ */ e(Dn, {})
|
|
2888
2973
|
}
|
|
2889
2974
|
),
|
|
2890
2975
|
/* @__PURE__ */ m("div", { className: "select-page__head", children: [
|
|
@@ -2926,48 +3011,48 @@ const _1 = R(function({ value: n, className: l, ...c }, s) {
|
|
|
2926
3011
|
i
|
|
2927
3012
|
] });
|
|
2928
3013
|
});
|
|
2929
|
-
function
|
|
3014
|
+
function Yc({ children: t }) {
|
|
2930
3015
|
return /* @__PURE__ */ e("div", { className: "select-formlayout", children: t });
|
|
2931
3016
|
}
|
|
2932
|
-
function
|
|
3017
|
+
function zc({ children: t, columns: n = 2 }) {
|
|
2933
3018
|
return /* @__PURE__ */ e("div", { className: "select-formlayout__group", style: { "--cols": String(n) }, children: t });
|
|
2934
3019
|
}
|
|
2935
|
-
const
|
|
2936
|
-
function
|
|
3020
|
+
const g1 = Object.assign(Yc, { Group: zc });
|
|
3021
|
+
function fn({ lines: t = 3 }) {
|
|
2937
3022
|
return /* @__PURE__ */ e("div", { className: "select-skel-body", children: Array.from({ length: Math.max(1, t) }, (n, l) => /* @__PURE__ */ e("div", { className: "select-skeleton select-skel-line" }, l)) });
|
|
2938
3023
|
}
|
|
2939
|
-
function
|
|
3024
|
+
function Xc({ size: t = "medium" }) {
|
|
2940
3025
|
return /* @__PURE__ */ e("div", { className: `select-skeleton select-skel-display select-skel-display--${t}` });
|
|
2941
3026
|
}
|
|
2942
|
-
function
|
|
3027
|
+
function Kc({ size: t = "medium" }) {
|
|
2943
3028
|
return /* @__PURE__ */ e("div", { className: `select-skeleton select-skel-thumb select-skel-thumb--${t}` });
|
|
2944
3029
|
}
|
|
2945
|
-
function
|
|
3030
|
+
function Jc({ height: t = 240 }) {
|
|
2946
3031
|
return /* @__PURE__ */ e("div", { className: "select-skeleton select-skel-block", style: { height: t } });
|
|
2947
3032
|
}
|
|
2948
|
-
const
|
|
3033
|
+
const b1 = Object.assign(
|
|
2949
3034
|
function({ lines: n }) {
|
|
2950
|
-
return /* @__PURE__ */ e(
|
|
3035
|
+
return /* @__PURE__ */ e(fn, { lines: n });
|
|
2951
3036
|
},
|
|
2952
|
-
{ Body:
|
|
2953
|
-
),
|
|
2954
|
-
function
|
|
3037
|
+
{ Body: fn, Display: Xc, Thumbnail: Kc, Block: Jc }
|
|
3038
|
+
), Qc = { sm: "1rem", md: "1.25rem", lg: "1.5rem" };
|
|
3039
|
+
function x1({
|
|
2955
3040
|
source: t,
|
|
2956
3041
|
tone: n = "inherit",
|
|
2957
3042
|
size: l = "md"
|
|
2958
3043
|
}) {
|
|
2959
3044
|
const c = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" ");
|
|
2960
|
-
return /* @__PURE__ */ e("span", { className: c, style: { "--select-icon-size":
|
|
3045
|
+
return /* @__PURE__ */ e("span", { className: c, style: { "--select-icon-size": Qc[l] }, "aria-hidden": "true", children: /* @__PURE__ */ e(t, {}) });
|
|
2961
3046
|
}
|
|
2962
|
-
const
|
|
2963
|
-
const i = l === "warning" || l === "critical" ? /* @__PURE__ */ e(Ol, {}) : /* @__PURE__ */ e(
|
|
3047
|
+
const y1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, className: s, ...a }, r) {
|
|
3048
|
+
const i = l === "warning" || l === "critical" ? /* @__PURE__ */ e(Ol, {}) : /* @__PURE__ */ e(Kt, {});
|
|
2964
3049
|
return /* @__PURE__ */ m("div", { ref: r, ...a, className: `select-note select-note--${l}${s ? " " + s : ""}`, children: [
|
|
2965
3050
|
!c && /* @__PURE__ */ e("span", { className: "select-note__icon", children: i }),
|
|
2966
3051
|
/* @__PURE__ */ e("span", { className: "select-note__body", children: n })
|
|
2967
3052
|
] });
|
|
2968
|
-
}),
|
|
3053
|
+
}), N1 = R(function({ children: n, className: l, ...c }, s) {
|
|
2969
3054
|
return /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-settinglist${l ? " " + l : ""}`, children: n });
|
|
2970
|
-
}),
|
|
3055
|
+
}), M1 = R(function({ control: n, title: l, badge: c, description: s, children: a, bodyOpen: r, className: i, ...o }, d) {
|
|
2971
3056
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-setting${i ? " " + i : ""}`, children: [
|
|
2972
3057
|
n && /* @__PURE__ */ e("div", { className: "select-setting__control", children: n }),
|
|
2973
3058
|
/* @__PURE__ */ m("div", { className: "select-setting__main", children: [
|
|
@@ -2985,7 +3070,7 @@ const x1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
2985
3070
|
))
|
|
2986
3071
|
] })
|
|
2987
3072
|
] });
|
|
2988
|
-
}),
|
|
3073
|
+
}), $1 = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, tone: r = "default", flush: i = !1, className: o, ...d }, u) {
|
|
2989
3074
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-panel${r === "highlight" ? " select-panel--highlight" : ""}${o ? " " + o : ""}`, children: [
|
|
2990
3075
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-panel__header", children: [
|
|
2991
3076
|
/* @__PURE__ */ m("div", { className: "select-panel__heading", children: [
|
|
@@ -2997,7 +3082,7 @@ const x1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
2997
3082
|
a && /* @__PURE__ */ e("div", { className: `select-panel__body${i ? " select-panel__body--flush" : ""}`, children: a }),
|
|
2998
3083
|
s && /* @__PURE__ */ e("div", { className: "select-panel__footer", children: s })
|
|
2999
3084
|
] });
|
|
3000
|
-
}),
|
|
3085
|
+
}), k1 = R(function({ title: n, description: l, action: c, collapsible: s = !1, defaultOpen: a = !0, children: r, className: i, ...o }, d) {
|
|
3001
3086
|
const [u, h] = D(a);
|
|
3002
3087
|
return s ? /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-section select-section--collapsible${u ? " is-open" : ""}${i ? " " + i : ""}`, children: [
|
|
3003
3088
|
/* @__PURE__ */ m("button", { type: "button", className: "select-section__head select-section__head--toggle", "aria-expanded": u, onClick: () => h((f) => !f), children: [
|
|
@@ -3016,7 +3101,7 @@ const x1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
3016
3101
|
/* @__PURE__ */ e("div", { className: "select-section__body", children: r })
|
|
3017
3102
|
] });
|
|
3018
3103
|
});
|
|
3019
|
-
function
|
|
3104
|
+
function w1({ tabs: t, value: n, onChange: l, end: c, className: s, ...a }) {
|
|
3020
3105
|
const r = q(null), [i, o] = D({ left: 0, width: 0 });
|
|
3021
3106
|
Be(() => {
|
|
3022
3107
|
const u = r.current;
|
|
@@ -3064,7 +3149,7 @@ function pl(t, n) {
|
|
|
3064
3149
|
var l;
|
|
3065
3150
|
return ((l = t.children) == null ? void 0 : l.some((c) => c.id === n || pl(c, n))) ?? !1;
|
|
3066
3151
|
}
|
|
3067
|
-
function
|
|
3152
|
+
function es({
|
|
3068
3153
|
item: t,
|
|
3069
3154
|
active: n,
|
|
3070
3155
|
onSelect: l
|
|
@@ -3119,13 +3204,13 @@ function Jc({
|
|
|
3119
3204
|
] }) })
|
|
3120
3205
|
] });
|
|
3121
3206
|
}
|
|
3122
|
-
const
|
|
3207
|
+
const S1 = R(function({ sections: n, active: l, onSelect: c, header: s, className: a, ...r }, i) {
|
|
3123
3208
|
return /* @__PURE__ */ m("nav", { ref: i, ...r, className: `select-sidenav${a ? " " + a : ""}`, children: [
|
|
3124
3209
|
s && /* @__PURE__ */ e("div", { className: "select-sidenav__header", children: s }),
|
|
3125
3210
|
n.map((o, d) => /* @__PURE__ */ m("div", { className: "select-sidenav__section", children: [
|
|
3126
3211
|
o.label && /* @__PURE__ */ e("div", { className: "select-sidenav__sectionlabel", children: o.label }),
|
|
3127
3212
|
o.items.map(
|
|
3128
|
-
(u) => u.children ? /* @__PURE__ */ e(
|
|
3213
|
+
(u) => u.children ? /* @__PURE__ */ e(es, { item: u, active: l, onSelect: c }, u.id) : /* @__PURE__ */ m(
|
|
3129
3214
|
"button",
|
|
3130
3215
|
{
|
|
3131
3216
|
type: "button",
|
|
@@ -3143,7 +3228,7 @@ const w1 = R(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3143
3228
|
] });
|
|
3144
3229
|
}), ml = R(function({ value: n, onChange: l, placeholder: c = "Buscar…", shortcut: s, className: a, ...r }, i) {
|
|
3145
3230
|
return /* @__PURE__ */ m("div", { ref: i, ...r, className: `select-search${a ? " " + a : ""}`, children: [
|
|
3146
|
-
/* @__PURE__ */ e("span", { className: "select-search__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
3231
|
+
/* @__PURE__ */ e("span", { className: "select-search__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(zt, {}) }),
|
|
3147
3232
|
/* @__PURE__ */ e(
|
|
3148
3233
|
"input",
|
|
3149
3234
|
{
|
|
@@ -3156,8 +3241,8 @@ const w1 = R(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3156
3241
|
),
|
|
3157
3242
|
s && /* @__PURE__ */ e("kbd", { className: "select-search__kbd", children: s })
|
|
3158
3243
|
] });
|
|
3159
|
-
}),
|
|
3160
|
-
const h = kl.count(l) === 0, f = h && !!c, g = a != null || r != null || i != null, v = f && !g, x =
|
|
3244
|
+
}), ts = R(function({ columns: n, children: l, empty: c, footer: s, title: a, action: r, filters: i, className: o, ...d }, u) {
|
|
3245
|
+
const h = kl.count(l) === 0, f = h && !!c, g = a != null || r != null || i != null, v = f && !g, x = Bt({ selector: ".select-table__row", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 }), N = n.length ? n.map(($) => $.width ?? "minmax(var(--select-table-col-min, 6.5rem), 1fr)").join(" ") : "1fr";
|
|
3161
3246
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-table${v ? " select-table--empty" : ""}${o ? " " + o : ""}`, style: { "--select-table-cols": N }, children: [
|
|
3162
3247
|
g && /* @__PURE__ */ m("div", { className: "select-table__title", children: [
|
|
3163
3248
|
a != null && /* @__PURE__ */ e("h3", { className: "select-table__titletext", children: a }),
|
|
@@ -3190,62 +3275,62 @@ const w1 = R(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3190
3275
|
] }) }),
|
|
3191
3276
|
s && /* @__PURE__ */ e("div", { className: "select-table__footer", children: s })
|
|
3192
3277
|
] });
|
|
3193
|
-
}),
|
|
3278
|
+
}), C1 = R(function({ name: n, secondary: l, src: c, className: s, ...a }, r) {
|
|
3194
3279
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-usercell${s ? " " + s : ""}`, children: [
|
|
3195
|
-
/* @__PURE__ */ e(
|
|
3280
|
+
/* @__PURE__ */ e(Zc, { name: typeof n == "string" ? n : void 0, src: c }),
|
|
3196
3281
|
/* @__PURE__ */ m("span", { className: "select-usercell__text", children: [
|
|
3197
3282
|
/* @__PURE__ */ e("span", { className: "select-usercell__name", children: n }),
|
|
3198
3283
|
l && /* @__PURE__ */ e("span", { className: "select-usercell__secondary", children: l })
|
|
3199
3284
|
] })
|
|
3200
3285
|
] });
|
|
3201
3286
|
});
|
|
3202
|
-
function
|
|
3287
|
+
function _n({ children: t, onClick: n }) {
|
|
3203
3288
|
return n ? /* @__PURE__ */ e("button", { type: "button", className: "select-table__row select-table__row--clickable", onClick: n, children: t }) : /* @__PURE__ */ e("div", { className: "select-table__row", role: "row", children: t });
|
|
3204
3289
|
}
|
|
3205
|
-
const
|
|
3290
|
+
const vn = R(function({ children: n, align: l = "start", className: c, ...s }, a) {
|
|
3206
3291
|
return /* @__PURE__ */ e("div", { ref: a, ...s, role: "cell", className: `select-table__td select-table__cell--${l}${c ? " " + c : ""}`, children: n });
|
|
3207
|
-
}),
|
|
3292
|
+
}), ns = R(function({ icon: n, title: l, subtitle: c, action: s, className: a, ...r }, i) {
|
|
3208
3293
|
return /* @__PURE__ */ m("div", { ref: i, ...r, className: `select-table-empty${a ? " " + a : ""}`, children: [
|
|
3209
3294
|
n && /* @__PURE__ */ e("span", { className: "select-table-empty__icon", children: n }),
|
|
3210
3295
|
/* @__PURE__ */ e("p", { className: "select-table-empty__title", children: l }),
|
|
3211
3296
|
c && /* @__PURE__ */ e("p", { className: "select-table-empty__subtitle", children: c }),
|
|
3212
3297
|
s && /* @__PURE__ */ e("div", { className: "select-table-empty__action", children: s })
|
|
3213
3298
|
] });
|
|
3214
|
-
}),
|
|
3299
|
+
}), ls = R(function({ children: n, className: l, ...c }, s) {
|
|
3215
3300
|
return /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-menu${l ? " " + l : ""}`, role: "menu", children: n });
|
|
3216
|
-
}),
|
|
3301
|
+
}), cs = R(function({ children: n, icon: l, trailing: c, onClick: s, active: a = !1, tone: r = "default", className: i, ...o }, d) {
|
|
3217
3302
|
return /* @__PURE__ */ m("button", { ref: d, ...o, type: "button", role: "menuitem", className: `select-menu__item select-menu__item--${r}${a ? " is-active" : ""}${i ? " " + i : ""}`, onClick: s, children: [
|
|
3218
3303
|
l && /* @__PURE__ */ e("span", { className: "select-menu__icon", children: l }),
|
|
3219
3304
|
/* @__PURE__ */ e("span", { className: "select-menu__label", children: n }),
|
|
3220
3305
|
c && /* @__PURE__ */ e("span", { className: "select-menu__trailing", children: c })
|
|
3221
3306
|
] });
|
|
3222
3307
|
});
|
|
3223
|
-
function
|
|
3308
|
+
function L1() {
|
|
3224
3309
|
return /* @__PURE__ */ e("div", { className: "select-menu__divider", role: "separator" });
|
|
3225
3310
|
}
|
|
3226
|
-
const
|
|
3311
|
+
const ss = R(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, r) {
|
|
3227
3312
|
return /* @__PURE__ */ m("button", { ref: r, ...a, type: "button", className: `select-menubtn${c ? " is-active" : ""}${s ? " " + s : ""}`, onClick: l, "aria-haspopup": "menu", "aria-expanded": c, children: [
|
|
3228
3313
|
/* @__PURE__ */ e("span", { children: n }),
|
|
3229
3314
|
/* @__PURE__ */ e("span", { className: "select-menubtn__caret", "aria-hidden": "true", children: /* @__PURE__ */ e(be, {}) })
|
|
3230
3315
|
] });
|
|
3231
|
-
}),
|
|
3316
|
+
}), A1 = R(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, r) {
|
|
3232
3317
|
return /* @__PURE__ */ m("button", { ref: r, ...a, type: "button", className: `select-chip${c ? " select-chip--active" : ""}${s ? " " + s : ""}`, onClick: l, children: [
|
|
3233
3318
|
!c && /* @__PURE__ */ e("span", { className: "select-chip__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(nt, {}) }),
|
|
3234
3319
|
n
|
|
3235
3320
|
] });
|
|
3236
|
-
}),
|
|
3321
|
+
}), F1 = R(function({ label: n, value: l, href: c, onCopy: s, className: a, ...r }, i) {
|
|
3237
3322
|
return /* @__PURE__ */ m("div", { ref: i, ...r, className: `select-copyrow${a ? " " + a : ""}`, children: [
|
|
3238
3323
|
n && /* @__PURE__ */ e("span", { className: "select-copyrow__label", children: n }),
|
|
3239
3324
|
/* @__PURE__ */ m("div", { className: "select-copyrow__value", children: [
|
|
3240
3325
|
/* @__PURE__ */ e("span", { className: "select-copyrow__text", children: l }),
|
|
3241
3326
|
/* @__PURE__ */ m("div", { className: "select-copyrow__actions", children: [
|
|
3242
|
-
c && /* @__PURE__ */ e("a", { className: "select-iconbtn select-iconbtn--sm", href: c, target: "_blank", rel: "noreferrer", "aria-label": "Abrir", title: "Abrir", children: /* @__PURE__ */ e(
|
|
3243
|
-
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(
|
|
3327
|
+
c && /* @__PURE__ */ e("a", { className: "select-iconbtn select-iconbtn--sm", href: c, target: "_blank", rel: "noreferrer", "aria-label": "Abrir", title: "Abrir", children: /* @__PURE__ */ e(Tn, {}) }),
|
|
3328
|
+
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Xt, {}), label: "Copiar", onClick: () => s == null ? void 0 : s(l) })
|
|
3244
3329
|
] })
|
|
3245
3330
|
] })
|
|
3246
3331
|
] });
|
|
3247
3332
|
});
|
|
3248
|
-
function
|
|
3333
|
+
function B1({
|
|
3249
3334
|
value: t,
|
|
3250
3335
|
children: n,
|
|
3251
3336
|
truncate: l,
|
|
@@ -3262,7 +3347,7 @@ function F1({
|
|
|
3262
3347
|
// Keep navigation isolated from any row handler; the text alone is the link target.
|
|
3263
3348
|
/* @__PURE__ */ e(wl, { className: "select-copyid__text select-copyid__link", to: a, onClick: (h) => h.stopPropagation(), children: d })
|
|
3264
3349
|
) : /* @__PURE__ */ e("span", { className: "select-copyid__text", children: d }),
|
|
3265
|
-
/* @__PURE__ */ e(
|
|
3350
|
+
/* @__PURE__ */ e(al, { content: i ? "Copiado" : c, children: /* @__PURE__ */ e(
|
|
3266
3351
|
"button",
|
|
3267
3352
|
{
|
|
3268
3353
|
type: "button",
|
|
@@ -3273,12 +3358,12 @@ function F1({
|
|
|
3273
3358
|
});
|
|
3274
3359
|
},
|
|
3275
3360
|
"aria-label": i ? "Copiado" : c,
|
|
3276
|
-
children: i ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(
|
|
3361
|
+
children: i ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(Xt, {})
|
|
3277
3362
|
}
|
|
3278
3363
|
) })
|
|
3279
3364
|
] });
|
|
3280
3365
|
}
|
|
3281
|
-
const
|
|
3366
|
+
const E1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !1, className: a, ...r }, i) {
|
|
3282
3367
|
const [o, d] = D(c);
|
|
3283
3368
|
return /* @__PURE__ */ m("div", { ref: i, ...r, className: `select-collapsible${s ? " select-collapsible--plain" : ""}${o ? " is-open" : ""}${a ? " " + a : ""}`, children: [
|
|
3284
3369
|
/* @__PURE__ */ m("button", { type: "button", className: "select-collapsible__header", onClick: () => d((u) => !u), "aria-expanded": o, children: [
|
|
@@ -3287,7 +3372,7 @@ const B1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3287
3372
|
] }),
|
|
3288
3373
|
/* @__PURE__ */ e("div", { className: "select-collapsible__bodywrap", children: /* @__PURE__ */ e("div", { className: "select-collapsible__bodyclip", "aria-hidden": !o, children: /* @__PURE__ */ e("div", { className: "select-collapsible__body", children: l }) }) })
|
|
3289
3374
|
] });
|
|
3290
|
-
}),
|
|
3375
|
+
}), I1 = R(function({ icon: n, title: l, description: c, action: s, onDismiss: a, className: r, ...i }, o) {
|
|
3291
3376
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-actioncard${r ? " " + r : ""}`, children: [
|
|
3292
3377
|
a && /* @__PURE__ */ e("div", { className: "select-actioncard__dismiss", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Ke, {}), label: "Dispensar", onClick: a }) }),
|
|
3293
3378
|
n && /* @__PURE__ */ e("span", { className: "select-actioncard__icon", children: n }),
|
|
@@ -3297,7 +3382,7 @@ const B1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3297
3382
|
] }),
|
|
3298
3383
|
s && /* @__PURE__ */ e("div", { className: "select-actioncard__action", children: s })
|
|
3299
3384
|
] });
|
|
3300
|
-
}),
|
|
3385
|
+
}), P1 = R(function({ media: n, sublabel: l, title: c, badge: s, meta: a, accent: r = !0, onClick: i, className: o, ...d }, u) {
|
|
3301
3386
|
return /* @__PURE__ */ m("button", { ref: u, ...d, type: "button", className: `select-tile${o ? " " + o : ""}`, onClick: i, children: [
|
|
3302
3387
|
r && /* @__PURE__ */ e("span", { className: "select-tile__accent", "aria-hidden": "true" }),
|
|
3303
3388
|
/* @__PURE__ */ m("div", { className: "select-tile__main", children: [
|
|
@@ -3312,19 +3397,19 @@ const B1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3312
3397
|
] }),
|
|
3313
3398
|
a && /* @__PURE__ */ e("div", { className: "select-tile__meta", children: a })
|
|
3314
3399
|
] });
|
|
3315
|
-
}),
|
|
3400
|
+
}), R1 = R(function({ label: n, onClick: l, className: c, ...s }, a) {
|
|
3316
3401
|
return /* @__PURE__ */ m("button", { ref: a, ...s, type: "button", className: `select-tile select-tile--create${c ? " " + c : ""}`, onClick: l, children: [
|
|
3317
3402
|
/* @__PURE__ */ e("span", { className: "select-tile__plus", "aria-hidden": "true", children: /* @__PURE__ */ e(nt, {}) }),
|
|
3318
3403
|
/* @__PURE__ */ e("span", { className: "select-tile__createlabel", children: n })
|
|
3319
3404
|
] });
|
|
3320
|
-
}),
|
|
3405
|
+
}), D1 = R(function({ avatar: n, name: l, badge: c, onClick: s, className: a, ...r }, i) {
|
|
3321
3406
|
return /* @__PURE__ */ m("button", { ref: i, ...r, type: "button", className: `select-wsswitcher${a ? " " + a : ""}`, onClick: s, "aria-haspopup": "menu", children: [
|
|
3322
3407
|
n && /* @__PURE__ */ e("span", { className: "select-wsswitcher__avatar", children: n }),
|
|
3323
3408
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__name", children: l }),
|
|
3324
3409
|
c,
|
|
3325
|
-
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
3410
|
+
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(Wn, {}) })
|
|
3326
3411
|
] });
|
|
3327
|
-
}),
|
|
3412
|
+
}), as = 220;
|
|
3328
3413
|
function It({
|
|
3329
3414
|
open: t,
|
|
3330
3415
|
onClose: n,
|
|
@@ -3347,7 +3432,7 @@ function It({
|
|
|
3347
3432
|
x(!0);
|
|
3348
3433
|
const _ = setTimeout(() => {
|
|
3349
3434
|
g(!1), x(!1);
|
|
3350
|
-
},
|
|
3435
|
+
}, as);
|
|
3351
3436
|
return () => clearTimeout(_);
|
|
3352
3437
|
}
|
|
3353
3438
|
}, [t, f]), le(() => {
|
|
@@ -3402,7 +3487,7 @@ function It({
|
|
|
3402
3487
|
document.body
|
|
3403
3488
|
);
|
|
3404
3489
|
}
|
|
3405
|
-
function
|
|
3490
|
+
function T1({ actions: t, label: n = "Ações" }) {
|
|
3406
3491
|
const [l, c] = D(!1);
|
|
3407
3492
|
return /* @__PURE__ */ e(
|
|
3408
3493
|
We,
|
|
@@ -3421,11 +3506,11 @@ function D1({ actions: t, label: n = "Ações" }) {
|
|
|
3421
3506
|
onClick: () => c((s) => !s)
|
|
3422
3507
|
}
|
|
3423
3508
|
),
|
|
3424
|
-
children: /* @__PURE__ */ e(
|
|
3509
|
+
children: /* @__PURE__ */ e(sl, { items: t, onAction: () => c(!1) })
|
|
3425
3510
|
}
|
|
3426
3511
|
);
|
|
3427
3512
|
}
|
|
3428
|
-
function
|
|
3513
|
+
function W1({
|
|
3429
3514
|
open: t,
|
|
3430
3515
|
onClose: n,
|
|
3431
3516
|
onConfirm: l,
|
|
@@ -3463,7 +3548,7 @@ function T1({
|
|
|
3463
3548
|
}
|
|
3464
3549
|
);
|
|
3465
3550
|
}
|
|
3466
|
-
function
|
|
3551
|
+
function O1({
|
|
3467
3552
|
open: t,
|
|
3468
3553
|
onClose: n,
|
|
3469
3554
|
onSubmit: l,
|
|
@@ -3518,14 +3603,14 @@ function W1({
|
|
|
3518
3603
|
}
|
|
3519
3604
|
);
|
|
3520
3605
|
}
|
|
3521
|
-
function
|
|
3606
|
+
function os(t, n) {
|
|
3522
3607
|
const c = [.../* @__PURE__ */ new Set([1, n, t, t - 1, t + 1])].filter((r) => r >= 1 && r <= n).sort((r, i) => r - i), s = [];
|
|
3523
3608
|
let a = 0;
|
|
3524
3609
|
for (const r of c)
|
|
3525
3610
|
r - a > 1 && s.push("gap"), s.push(r), a = r;
|
|
3526
3611
|
return s;
|
|
3527
3612
|
}
|
|
3528
|
-
function
|
|
3613
|
+
function rs(t, n, l, c, s, a) {
|
|
3529
3614
|
const r = [];
|
|
3530
3615
|
if (t != null)
|
|
3531
3616
|
if (t === 0)
|
|
@@ -3537,8 +3622,8 @@ function as(t, n, l, c, s, a) {
|
|
|
3537
3622
|
r.push(`${t} ${s}`);
|
|
3538
3623
|
return a && c != null && c > 0 && r.push(`Página ${l} de ${c}`), r.length > 0 ? r.join(" · ") : null;
|
|
3539
3624
|
}
|
|
3540
|
-
const
|
|
3541
|
-
const v = a ?? n > 1, x = r ?? (l != null ? n < l : !0), N = i ?? (d ? () => d(n - 1) : void 0), $ = o ?? (d ? () => d(n + 1) : void 0), _ = l != null && l > 1 && d != null, p = _ ?
|
|
3625
|
+
const is = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPrevious: a, hasNext: r, onPrevious: i, onNext: o, onPage: d, noun: u = "resultados", className: h, ...f }, g) {
|
|
3626
|
+
const v = a ?? n > 1, x = r ?? (l != null ? n < l : !0), N = i ?? (d ? () => d(n - 1) : void 0), $ = o ?? (d ? () => d(n + 1) : void 0), _ = l != null && l > 1 && d != null, p = _ ? os(n, l) : [], b = rs(c, s, n, l, u, _);
|
|
3542
3627
|
return /* @__PURE__ */ m("nav", { ref: g, ...f, className: `select-pagination${h ? " " + h : ""}`, "aria-label": "Paginação", children: [
|
|
3543
3628
|
/* @__PURE__ */ m("div", { className: "select-pagination__controls", children: [
|
|
3544
3629
|
/* @__PURE__ */ e(
|
|
@@ -3549,7 +3634,7 @@ const os = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3549
3634
|
onClick: N,
|
|
3550
3635
|
disabled: !v || !N,
|
|
3551
3636
|
"aria-label": "Página anterior",
|
|
3552
|
-
children: /* @__PURE__ */ e(
|
|
3637
|
+
children: /* @__PURE__ */ e(Yt, {})
|
|
3553
3638
|
}
|
|
3554
3639
|
),
|
|
3555
3640
|
_ ? p.map(
|
|
@@ -3579,29 +3664,29 @@ const os = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3579
3664
|
] }),
|
|
3580
3665
|
b != null && /* @__PURE__ */ e("p", { className: "select-pagination__count", children: b })
|
|
3581
3666
|
] });
|
|
3582
|
-
}),
|
|
3583
|
-
function
|
|
3667
|
+
}), H1 = "9.5rem", Zt = "select-datatable:hidden-cols:";
|
|
3668
|
+
function ds(t) {
|
|
3584
3669
|
try {
|
|
3585
|
-
const n = localStorage.getItem(
|
|
3670
|
+
const n = localStorage.getItem(Zt + t), l = n ? JSON.parse(n) : null;
|
|
3586
3671
|
return Array.isArray(l) ? l.filter((c) => typeof c == "string") : [];
|
|
3587
3672
|
} catch {
|
|
3588
3673
|
return [];
|
|
3589
3674
|
}
|
|
3590
3675
|
}
|
|
3591
|
-
function
|
|
3676
|
+
function hs(t, n) {
|
|
3592
3677
|
try {
|
|
3593
|
-
n.length === 0 ? localStorage.removeItem(
|
|
3678
|
+
n.length === 0 ? localStorage.removeItem(Zt + t) : localStorage.setItem(Zt + t, JSON.stringify(n));
|
|
3594
3679
|
} catch {
|
|
3595
3680
|
}
|
|
3596
3681
|
}
|
|
3597
|
-
function
|
|
3682
|
+
function gn(t) {
|
|
3598
3683
|
return t.hideable ?? !!t.title;
|
|
3599
3684
|
}
|
|
3600
|
-
const
|
|
3601
|
-
function
|
|
3685
|
+
const bn = "select-datatable:page-size:";
|
|
3686
|
+
function j1(t, n, l) {
|
|
3602
3687
|
const [c, s] = D(() => {
|
|
3603
3688
|
try {
|
|
3604
|
-
const r = Number(localStorage.getItem(
|
|
3689
|
+
const r = Number(localStorage.getItem(bn + t));
|
|
3605
3690
|
return Number.isInteger(r) && r > 0 && (!l || l.includes(r)) ? r : n;
|
|
3606
3691
|
} catch {
|
|
3607
3692
|
return n;
|
|
@@ -3610,16 +3695,16 @@ function H1(t, n, l) {
|
|
|
3610
3695
|
return [c, (r) => {
|
|
3611
3696
|
s(r);
|
|
3612
3697
|
try {
|
|
3613
|
-
localStorage.setItem(
|
|
3698
|
+
localStorage.setItem(bn + t, String(r));
|
|
3614
3699
|
} catch {
|
|
3615
3700
|
}
|
|
3616
3701
|
}];
|
|
3617
3702
|
}
|
|
3618
|
-
function
|
|
3703
|
+
function us(t, n, l) {
|
|
3619
3704
|
const c = t == null || t === "", s = n == null || n === "";
|
|
3620
3705
|
return c || s ? c && s ? 0 : c ? 1 : -1 : typeof t == "number" && typeof n == "number" ? l * (t - n) : l * String(t).localeCompare(String(n), "pt-BR", { numeric: !0, sensitivity: "base" });
|
|
3621
3706
|
}
|
|
3622
|
-
function
|
|
3707
|
+
function V1({
|
|
3623
3708
|
columns: t,
|
|
3624
3709
|
items: n,
|
|
3625
3710
|
getId: l,
|
|
@@ -3632,10 +3717,10 @@ function j1({
|
|
|
3632
3717
|
filters: d,
|
|
3633
3718
|
columnsKey: u
|
|
3634
3719
|
}) {
|
|
3635
|
-
const [h, f] = D(() => u ?
|
|
3720
|
+
const [h, f] = D(() => u ? ds(u) : []), [g, v] = D(!1), [x, N] = D(!1), $ = xe(() => new Set(h), [h]), _ = t.filter(gn), p = _.length > 0 && _.every((I) => $.has(I.key)), b = (I) => !p && $.has(I.key) && gn(I), S = t.filter((I) => !b(I)), k = _.filter((I) => !b(I)), [M, w] = D(null), y = (I) => {
|
|
3636
3721
|
f((O) => {
|
|
3637
3722
|
const W = !O.includes(I.key), Z = W ? [...O, I.key] : O.filter((G) => G !== I.key);
|
|
3638
|
-
return u &&
|
|
3723
|
+
return u && hs(u, Z), W && w((G) => G && G.key === I.key ? null : G), Z;
|
|
3639
3724
|
});
|
|
3640
3725
|
}, C = (I) => {
|
|
3641
3726
|
w((O) => {
|
|
@@ -3646,7 +3731,7 @@ function j1({
|
|
|
3646
3731
|
const I = L == null ? void 0 : L.sortValue;
|
|
3647
3732
|
if (!M || !I) return n;
|
|
3648
3733
|
const O = M.dir === "asc" ? 1 : -1;
|
|
3649
|
-
return [...n].sort((W, Z) =>
|
|
3734
|
+
return [...n].sort((W, Z) => us(I(W), I(Z), O));
|
|
3650
3735
|
}, [n, M, L]), A = S.map((I) => ({
|
|
3651
3736
|
label: I.title,
|
|
3652
3737
|
align: I.align,
|
|
@@ -3654,7 +3739,7 @@ function j1({
|
|
|
3654
3739
|
sortable: !!I.sortValue,
|
|
3655
3740
|
sortDir: (M == null ? void 0 : M.key) === I.key ? M.dir : null,
|
|
3656
3741
|
onSort: I.sortValue ? () => C(I) : void 0
|
|
3657
|
-
})), F = !c && s ? /* @__PURE__ */ e(
|
|
3742
|
+
})), F = !c && s ? /* @__PURE__ */ e(ns, { icon: s.icon, title: s.heading, subtitle: s.text, action: s.action }) : void 0, E = u && _.length > 0 ? /* @__PURE__ */ e(
|
|
3658
3743
|
We,
|
|
3659
3744
|
{
|
|
3660
3745
|
active: g,
|
|
@@ -3694,10 +3779,10 @@ function j1({
|
|
|
3694
3779
|
}
|
|
3695
3780
|
) : null;
|
|
3696
3781
|
return /* @__PURE__ */ m("div", { className: "select-datatable", children: [
|
|
3697
|
-
/* @__PURE__ */ e(
|
|
3782
|
+
/* @__PURE__ */ e(ts, { columns: A, empty: F, title: i, filters: d, action: E ? /* @__PURE__ */ m("span", { className: "select-datatable__toolbar", children: [
|
|
3698
3783
|
o,
|
|
3699
3784
|
E
|
|
3700
|
-
] }) : o, children: c ? Array.from({ length: 5 }, (I, O) => /* @__PURE__ */ e(
|
|
3785
|
+
] }) : o, children: c ? Array.from({ length: 5 }, (I, O) => /* @__PURE__ */ e(_n, { children: S.map((W, Z) => /* @__PURE__ */ e(vn, { align: W.align, width: W.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, Z)) }, `skeleton-${O}`)) : B.map((I) => /* @__PURE__ */ e(_n, { onClick: r ? () => r(I) : void 0, children: S.map((O, W) => /* @__PURE__ */ e(vn, { align: O.align, width: O.width, children: O.render(I) }, W)) }, l(I))) }),
|
|
3701
3786
|
a && /* @__PURE__ */ m("div", { className: "select-datatable__pagination", children: [
|
|
3702
3787
|
a.pageSizeOptions && a.pageSizeOptions.length > 1 && a.onPageSizeChange && /* @__PURE__ */ e("div", { className: "select-datatable__pagesize", children: /* @__PURE__ */ e(
|
|
3703
3788
|
We,
|
|
@@ -3750,7 +3835,7 @@ function j1({
|
|
|
3750
3835
|
}
|
|
3751
3836
|
) }),
|
|
3752
3837
|
/* @__PURE__ */ e(
|
|
3753
|
-
|
|
3838
|
+
is,
|
|
3754
3839
|
{
|
|
3755
3840
|
page: a.page ?? 1,
|
|
3756
3841
|
pageCount: a.pageCount,
|
|
@@ -3767,7 +3852,7 @@ function j1({
|
|
|
3767
3852
|
] })
|
|
3768
3853
|
] });
|
|
3769
3854
|
}
|
|
3770
|
-
const
|
|
3855
|
+
const ps = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], ms = [
|
|
3771
3856
|
"Janeiro",
|
|
3772
3857
|
"Fevereiro",
|
|
3773
3858
|
"Março",
|
|
@@ -3780,29 +3865,29 @@ const hs = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], us = [
|
|
|
3780
3865
|
"Outubro",
|
|
3781
3866
|
"Novembro",
|
|
3782
3867
|
"Dezembro"
|
|
3783
|
-
], De = (t) => String(t).padStart(2, "0"), ct = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), vt = (t) => new Date(t.getFullYear(), t.getMonth(), 1),
|
|
3784
|
-
function
|
|
3868
|
+
], De = (t) => String(t).padStart(2, "0"), ct = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), vt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), xn = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), yn = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), Nn = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
|
|
3869
|
+
function fs(t) {
|
|
3785
3870
|
const n = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(t || "");
|
|
3786
3871
|
return n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]), Number(n[4] ?? 0), Number(n[5] ?? 0)) : null;
|
|
3787
3872
|
}
|
|
3788
|
-
function
|
|
3873
|
+
function Mn(t, n) {
|
|
3789
3874
|
const l = `${t.getFullYear()}-${De(t.getMonth() + 1)}-${De(t.getDate())}`;
|
|
3790
3875
|
return n ? `${l}T${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3791
3876
|
}
|
|
3792
|
-
function
|
|
3877
|
+
function _s(t, n) {
|
|
3793
3878
|
const l = `${De(t.getDate())}/${De(t.getMonth() + 1)}/${t.getFullYear()}`;
|
|
3794
3879
|
return n ? `${l} ${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3795
3880
|
}
|
|
3796
|
-
const
|
|
3797
|
-
const $ = te(), _ = g ?? $, [p, b] = D(!1), S =
|
|
3881
|
+
const vs = R(function({ label: n, value: l, onChange: c, showTime: s = !1, placeholder: a, required: r, disabled: i, error: o, hint: d, minDate: u, maxDate: h, clearable: f = !0, id: g, className: v, ...x }, N) {
|
|
3882
|
+
const $ = te(), _ = g ?? $, [p, b] = D(!1), S = fs(l), [k, M] = D(() => vt(S ?? /* @__PURE__ */ new Date())), w = u ? ct(u) : null, y = h ? ct(h) : null, C = (W) => !!w && ct(W) < w || !!y && ct(W) > y, L = xn(vt(k), -vt(k).getDay()), B = Array.from({ length: 42 }, (W, Z) => xn(L, Z)), A = ct(/* @__PURE__ */ new Date()), F = () => {
|
|
3798
3883
|
i || (M(vt(S ?? /* @__PURE__ */ new Date())), b((W) => !W));
|
|
3799
3884
|
}, E = (W) => {
|
|
3800
3885
|
if (C(W)) return;
|
|
3801
3886
|
const Z = new Date(W);
|
|
3802
|
-
s && Z.setHours((S == null ? void 0 : S.getHours()) ?? 0, (S == null ? void 0 : S.getMinutes()) ?? 0, 0, 0), c(
|
|
3887
|
+
s && Z.setHours((S == null ? void 0 : S.getHours()) ?? 0, (S == null ? void 0 : S.getMinutes()) ?? 0, 0, 0), c(Mn(Z, s)), s || b(!1);
|
|
3803
3888
|
}, T = (W) => {
|
|
3804
3889
|
const [Z = "", G = ""] = W.split(":"), J = Number(Z), ie = Number(G), fe = new Date(S ?? A);
|
|
3805
|
-
fe.setHours(Number.isFinite(J) ? J : 0, Number.isFinite(ie) ? ie : 0, 0, 0), c(
|
|
3890
|
+
fe.setHours(Number.isFinite(J) ? J : 0, Number.isFinite(ie) ? ie : 0, 0, 0), c(Mn(fe, !0));
|
|
3806
3891
|
}, I = () => {
|
|
3807
3892
|
c(""), b(!1);
|
|
3808
3893
|
}, O = /* @__PURE__ */ m("div", { className: `select-input-wrap${o ? " select-input-wrap--error" : ""}`, children: [
|
|
@@ -3817,27 +3902,27 @@ const fs = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3817
3902
|
"aria-haspopup": "dialog",
|
|
3818
3903
|
"aria-expanded": p,
|
|
3819
3904
|
"aria-invalid": o ? !0 : void 0,
|
|
3820
|
-
children: S ?
|
|
3905
|
+
children: S ? _s(S, s) : /* @__PURE__ */ e("span", { className: "select-datefield__ph", children: a ?? (s ? "Selecione data e hora" : "Selecione uma data") })
|
|
3821
3906
|
}
|
|
3822
3907
|
),
|
|
3823
|
-
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
3908
|
+
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(Zn, {}) })
|
|
3824
3909
|
] });
|
|
3825
3910
|
return /* @__PURE__ */ m("div", { ref: N, ...x, className: `select-field${v ? " " + v : ""}`, children: [
|
|
3826
3911
|
n && /* @__PURE__ */ e(lt, { htmlFor: _, label: r ? `${n} *` : n }),
|
|
3827
3912
|
/* @__PURE__ */ e("div", { className: "select-datefield", children: /* @__PURE__ */ e(We, { active: p, onClose: () => b(!1), placement: "bottom-start", role: "dialog", activator: O, children: /* @__PURE__ */ m("div", { className: "select-datefield__pop", children: [
|
|
3828
3913
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
3829
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => M((W) =>
|
|
3914
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => M((W) => yn(W, -1)), children: /* @__PURE__ */ e(Yt, {}) }),
|
|
3830
3915
|
/* @__PURE__ */ m("span", { className: "select-datepicker__monthlabel", children: [
|
|
3831
|
-
|
|
3916
|
+
ms[k.getMonth()],
|
|
3832
3917
|
" ",
|
|
3833
3918
|
k.getFullYear()
|
|
3834
3919
|
] }),
|
|
3835
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => M((W) =>
|
|
3920
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => M((W) => yn(W, 1)), children: /* @__PURE__ */ e(dt, {}) })
|
|
3836
3921
|
] }),
|
|
3837
3922
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
3838
|
-
|
|
3923
|
+
ps.map((W) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: W }, W)),
|
|
3839
3924
|
B.map((W) => {
|
|
3840
|
-
const Z = W.getMonth() !== k.getMonth(), G = !!S &&
|
|
3925
|
+
const Z = W.getMonth() !== k.getMonth(), G = !!S && Nn(W, S), J = "select-datepicker__daybtn" + (G ? " is-selected" : "") + (Nn(W, A) && !G ? " is-today" : "") + (Z ? " is-outside" : "");
|
|
3841
3926
|
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: J, disabled: C(W), onClick: () => E(W), children: W.getDate() }) }, W.getTime());
|
|
3842
3927
|
})
|
|
3843
3928
|
] }),
|
|
@@ -3869,7 +3954,7 @@ function fl(t, n) {
|
|
|
3869
3954
|
var l, c;
|
|
3870
3955
|
return t.type === "select" ? ((c = (l = t.options) == null ? void 0 : l.find((s) => s.value === n)) == null ? void 0 : c.label) ?? n : n;
|
|
3871
3956
|
}
|
|
3872
|
-
function
|
|
3957
|
+
function gs({
|
|
3873
3958
|
filter: t,
|
|
3874
3959
|
value: n,
|
|
3875
3960
|
onChange: l,
|
|
@@ -3926,7 +4011,7 @@ function _s({
|
|
|
3926
4011
|
v.value
|
|
3927
4012
|
);
|
|
3928
4013
|
}) })
|
|
3929
|
-
] }) : t.type === "date" ? /* @__PURE__ */ e("div", { className: "select-facet__field", children: /* @__PURE__ */ e(
|
|
4014
|
+
] }) : t.type === "date" ? /* @__PURE__ */ e("div", { className: "select-facet__field", children: /* @__PURE__ */ e(vs, { value: n, onChange: l, placeholder: t.placeholder, clearable: !1 }) }) : /* @__PURE__ */ e(
|
|
3930
4015
|
"div",
|
|
3931
4016
|
{
|
|
3932
4017
|
className: "select-facet__field",
|
|
@@ -3951,7 +4036,7 @@ function _s({
|
|
|
3951
4036
|
}
|
|
3952
4037
|
);
|
|
3953
4038
|
}
|
|
3954
|
-
const
|
|
4039
|
+
const Z1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: r, className: i, ...o }, d) {
|
|
3955
4040
|
const [u, h] = D([]), [f, g] = D(null), [v, x] = D(!1), N = (M) => (l[M.key] ?? "").trim() !== "", $ = (M) => !!M.pinned || N(M) || u.includes(M.key), _ = n.filter($), p = n.filter((M) => !$(M)), b = n.filter(N), S = () => {
|
|
3956
4041
|
h([]), g(null), s();
|
|
3957
4042
|
}, k = (M) => {
|
|
@@ -3960,7 +4045,7 @@ const V1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3960
4045
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-filterbar${i ? " " + i : ""}`, children: [
|
|
3961
4046
|
/* @__PURE__ */ m("div", { className: "select-filterbar__row", children: [
|
|
3962
4047
|
a && /* @__PURE__ */ m("div", { className: "select-filterbar__query", children: [
|
|
3963
|
-
/* @__PURE__ */ e("span", { className: "select-filterbar__query-icon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
4048
|
+
/* @__PURE__ */ e("span", { className: "select-filterbar__query-icon", "aria-hidden": "true", children: /* @__PURE__ */ e(zt, {}) }),
|
|
3964
4049
|
/* @__PURE__ */ e(
|
|
3965
4050
|
"input",
|
|
3966
4051
|
{
|
|
@@ -3984,7 +4069,7 @@ const V1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3984
4069
|
)
|
|
3985
4070
|
] }),
|
|
3986
4071
|
_.map((M) => /* @__PURE__ */ e(
|
|
3987
|
-
|
|
4072
|
+
gs,
|
|
3988
4073
|
{
|
|
3989
4074
|
filter: M,
|
|
3990
4075
|
value: l[M.key] ?? "",
|
|
@@ -4049,7 +4134,7 @@ const V1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4049
4134
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: S, children: "Limpar tudo" })
|
|
4050
4135
|
] })
|
|
4051
4136
|
] });
|
|
4052
|
-
}),
|
|
4137
|
+
}), G1 = R(function({ label: n, options: l, selected: c, onChange: s, placeholder: a = "Selecionar…", hint: r, error: i, onBlur: o, size: d = "md", className: u, ...h }, f) {
|
|
4053
4138
|
const [g, v] = D(!1), [x, N] = D(""), $ = l.filter((b) => b.label.toLowerCase().includes(x.trim().toLowerCase())), _ = (b) => s(c.includes(b) ? c.filter((S) => S !== b) : [...c, b]), p = c.map((b) => l.find((S) => S.value === b)).filter((b) => b != null);
|
|
4054
4139
|
return /* @__PURE__ */ m("div", { ref: f, ...h, className: `select-field${d === "sm" ? " select-field--sm" : ""}${u ? " " + u : ""}`, children: [
|
|
4055
4140
|
n && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ e("span", { className: "select-field__label", children: n }) }),
|
|
@@ -4125,7 +4210,7 @@ const V1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4125
4210
|
),
|
|
4126
4211
|
i ? /* @__PURE__ */ e("p", { className: "select-field__error", children: i }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
4127
4212
|
] });
|
|
4128
|
-
}),
|
|
4213
|
+
}), U1 = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: r = !1, className: i, ...o }, d) {
|
|
4129
4214
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-surface${i ? " " + i : ""}`, children: [
|
|
4130
4215
|
(n || l || c) && /* @__PURE__ */ m("div", { className: "select-surface__header", children: [
|
|
4131
4216
|
/* @__PURE__ */ m("div", { className: "select-surface__heading", children: [
|
|
@@ -4137,19 +4222,19 @@ const V1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4137
4222
|
/* @__PURE__ */ e("div", { className: `select-surface__body${r ? " select-surface__body--flush" : ""}`, children: a }),
|
|
4138
4223
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4139
4224
|
] });
|
|
4140
|
-
}), _l =
|
|
4141
|
-
function
|
|
4225
|
+
}), _l = qt(null), bs = 220, xs = 4e3, ys = 8, Ns = 0.04, Ms = 5;
|
|
4226
|
+
function q1({ children: t }) {
|
|
4142
4227
|
const [n, l] = D([]), c = q(0), s = q(/* @__PURE__ */ new Map()), a = Te((d) => {
|
|
4143
4228
|
l((u) => u.filter((h) => h.id !== d)), s.current.delete(d);
|
|
4144
4229
|
}, []), r = Te(
|
|
4145
4230
|
(d) => {
|
|
4146
4231
|
const u = s.current.get(d);
|
|
4147
|
-
u && clearTimeout(u), l((h) => h.map((f) => f.id === d ? { ...f, exiting: !0 } : f)), s.current.set(d, setTimeout(() => a(d),
|
|
4232
|
+
u && clearTimeout(u), l((h) => h.map((f) => f.id === d ? { ...f, exiting: !0 } : f)), s.current.set(d, setTimeout(() => a(d), bs));
|
|
4148
4233
|
},
|
|
4149
4234
|
[a]
|
|
4150
4235
|
), i = Te(
|
|
4151
4236
|
(d, u) => {
|
|
4152
|
-
const h = ++c.current, f = (u == null ? void 0 : u.duration) ??
|
|
4237
|
+
const h = ++c.current, f = (u == null ? void 0 : u.duration) ?? xs;
|
|
4153
4238
|
l((g) => [...g, { id: h, content: d, variant: (u == null ? void 0 : u.variant) ?? "neutral" }]), f > 0 && s.current.set(h, setTimeout(() => r(h), f));
|
|
4154
4239
|
},
|
|
4155
4240
|
[r]
|
|
@@ -4173,8 +4258,8 @@ function U1({ children: t }) {
|
|
|
4173
4258
|
t,
|
|
4174
4259
|
n.length > 0 && Ft(
|
|
4175
4260
|
/* @__PURE__ */ e("div", { className: "select select-toasts", role: "region", "aria-live": "polite", "aria-label": "Notificações", children: n.map((d, u) => {
|
|
4176
|
-
const h = n.length - 1 - u, f = d.exiting || h >=
|
|
4177
|
-
transform: `translate(-50%, ${-h *
|
|
4261
|
+
const h = n.length - 1 - u, f = d.exiting || h >= Ms, g = {
|
|
4262
|
+
transform: `translate(-50%, ${-h * ys}px) scale(${1 - h * Ns})`,
|
|
4178
4263
|
opacity: f ? 0 : 1,
|
|
4179
4264
|
zIndex: 1e3 - h,
|
|
4180
4265
|
pointerEvents: h === 0 && !d.exiting ? "auto" : "none"
|
|
@@ -4188,12 +4273,12 @@ function U1({ children: t }) {
|
|
|
4188
4273
|
)
|
|
4189
4274
|
] });
|
|
4190
4275
|
}
|
|
4191
|
-
function
|
|
4192
|
-
const t =
|
|
4276
|
+
function Y1() {
|
|
4277
|
+
const t = Ut(_l);
|
|
4193
4278
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4194
4279
|
return t;
|
|
4195
4280
|
}
|
|
4196
|
-
const
|
|
4281
|
+
const $s = { desktop: "100%", mobile: 390 }, z1 = R(function({ src: n, title: l = "Pré-visualização", height: c = 560, initialDevice: s = "desktop", showDeviceToggle: a = !0, emptyLabel: r = "Salve para gerar a pré-visualização.", className: i, ...o }, d) {
|
|
4197
4282
|
const [u, h] = D(s), [f, g] = D(0), [v, x] = D(!0), N = n ? `${n}${n.includes("?") ? "&" : "?"}_pv=${f}` : "", $ = () => {
|
|
4198
4283
|
x(!0), g((_) => _ + 1);
|
|
4199
4284
|
};
|
|
@@ -4206,7 +4291,7 @@ const Ns = { desktop: "100%", mobile: 390 }, Y1 = R(function({ src: n, title: l
|
|
|
4206
4291
|
ge,
|
|
4207
4292
|
{
|
|
4208
4293
|
size: "sm",
|
|
4209
|
-
icon: /* @__PURE__ */ e(
|
|
4294
|
+
icon: /* @__PURE__ */ e(On, {}),
|
|
4210
4295
|
label: "Visualizar em desktop",
|
|
4211
4296
|
active: u === "desktop",
|
|
4212
4297
|
onClick: () => h("desktop")
|
|
@@ -4233,13 +4318,13 @@ const Ns = { desktop: "100%", mobile: 390 }, Y1 = R(function({ src: n, title: l
|
|
|
4233
4318
|
rel: "noreferrer",
|
|
4234
4319
|
"aria-label": "Abrir em nova aba",
|
|
4235
4320
|
title: "Abrir em nova aba",
|
|
4236
|
-
children: /* @__PURE__ */ e(
|
|
4321
|
+
children: /* @__PURE__ */ e(Tn, {})
|
|
4237
4322
|
}
|
|
4238
4323
|
)
|
|
4239
4324
|
] })
|
|
4240
4325
|
] }),
|
|
4241
|
-
/* @__PURE__ */ e("div", { className: "select-preview__stage", style: { height: c }, children: N ? /* @__PURE__ */ m("div", { className: "select-preview__device", style: { width:
|
|
4242
|
-
v && /* @__PURE__ */ e("div", { className: "select-preview__loading", children: /* @__PURE__ */ e(
|
|
4326
|
+
/* @__PURE__ */ e("div", { className: "select-preview__stage", style: { height: c }, children: N ? /* @__PURE__ */ m("div", { className: "select-preview__device", style: { width: $s[u] }, children: [
|
|
4327
|
+
v && /* @__PURE__ */ e("div", { className: "select-preview__loading", children: /* @__PURE__ */ e(Uc, {}) }),
|
|
4243
4328
|
/* @__PURE__ */ e(
|
|
4244
4329
|
"iframe",
|
|
4245
4330
|
{
|
|
@@ -4252,45 +4337,45 @@ const Ns = { desktop: "100%", mobile: 390 }, Y1 = R(function({ src: n, title: l
|
|
|
4252
4337
|
)
|
|
4253
4338
|
] }) : /* @__PURE__ */ e("p", { className: "select-preview__empty", children: r }) })
|
|
4254
4339
|
] });
|
|
4255
|
-
}),
|
|
4256
|
-
function
|
|
4340
|
+
}), ks = new Intl.NumberFormat("pt-BR", { style: "currency", currency: "BRL" });
|
|
4341
|
+
function ws(t) {
|
|
4257
4342
|
const n = typeof t == "string" ? Number(t) : t;
|
|
4258
4343
|
return typeof n == "number" && Number.isFinite(n) ? n : 0;
|
|
4259
4344
|
}
|
|
4260
|
-
function
|
|
4261
|
-
return
|
|
4345
|
+
function Ss(t) {
|
|
4346
|
+
return ks.format(ws(t) / 100);
|
|
4262
4347
|
}
|
|
4263
|
-
const vl = "sw:hide-money",
|
|
4348
|
+
const vl = "sw:hide-money", Cs = { hidden: !1, toggle: () => {
|
|
4264
4349
|
}, setHidden: () => {
|
|
4265
|
-
} }, gl =
|
|
4266
|
-
function
|
|
4350
|
+
} }, gl = qt(null);
|
|
4351
|
+
function Ls() {
|
|
4267
4352
|
try {
|
|
4268
4353
|
return localStorage.getItem(vl) === "1";
|
|
4269
4354
|
} catch {
|
|
4270
4355
|
return !1;
|
|
4271
4356
|
}
|
|
4272
4357
|
}
|
|
4273
|
-
function
|
|
4358
|
+
function $n(t) {
|
|
4274
4359
|
try {
|
|
4275
4360
|
localStorage.setItem(vl, t ? "1" : "0");
|
|
4276
4361
|
} catch {
|
|
4277
4362
|
}
|
|
4278
4363
|
}
|
|
4279
|
-
function
|
|
4280
|
-
const [n, l] = D(
|
|
4281
|
-
l(r),
|
|
4364
|
+
function X1({ children: t }) {
|
|
4365
|
+
const [n, l] = D(Ls), c = Te((r) => {
|
|
4366
|
+
l(r), $n(r);
|
|
4282
4367
|
}, []), s = Te(() => {
|
|
4283
4368
|
l((r) => {
|
|
4284
4369
|
const i = !r;
|
|
4285
|
-
return
|
|
4370
|
+
return $n(i), i;
|
|
4286
4371
|
});
|
|
4287
4372
|
}, []), a = xe(() => ({ hidden: n, toggle: s, setHidden: c }), [n, s, c]);
|
|
4288
4373
|
return /* @__PURE__ */ e(gl.Provider, { value: a, children: t });
|
|
4289
4374
|
}
|
|
4290
4375
|
function bl() {
|
|
4291
|
-
return
|
|
4376
|
+
return Ut(gl) ?? Cs;
|
|
4292
4377
|
}
|
|
4293
|
-
const
|
|
4378
|
+
const As = R(function({ children: n, label: l = "valor oculto", className: c, ...s }, a) {
|
|
4294
4379
|
const { hidden: r } = bl();
|
|
4295
4380
|
return /* @__PURE__ */ e("span", { ref: a, ...s, className: `select-sensitive${r ? " select-sensitive--hidden" : ""}${c ? " " + c : ""}`, "aria-label": r ? l : void 0, children: n });
|
|
4296
4381
|
});
|
|
@@ -4298,14 +4383,14 @@ function at({
|
|
|
4298
4383
|
cents: t,
|
|
4299
4384
|
sensitive: n = !0
|
|
4300
4385
|
}) {
|
|
4301
|
-
const l =
|
|
4302
|
-
return n ? /* @__PURE__ */ e(
|
|
4386
|
+
const l = Ss(t);
|
|
4387
|
+
return n ? /* @__PURE__ */ e(As, { children: l }) : /* @__PURE__ */ e(ae, { children: l });
|
|
4303
4388
|
}
|
|
4304
|
-
const
|
|
4389
|
+
const Fs = new Intl.NumberFormat("pt-BR", {
|
|
4305
4390
|
signDisplay: "exceptZero",
|
|
4306
4391
|
minimumFractionDigits: 1,
|
|
4307
4392
|
maximumFractionDigits: 1
|
|
4308
|
-
}),
|
|
4393
|
+
}), Bs = R(function({ value: n, invert: l = !1, caption: c, className: s, ...a }, r) {
|
|
4309
4394
|
if (n == null || !Number.isFinite(n))
|
|
4310
4395
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta select-delta--muted${s ? " " + s : ""}`, children: [
|
|
4311
4396
|
"—",
|
|
@@ -4315,26 +4400,26 @@ const Ls = new Intl.NumberFormat("pt-BR", {
|
|
|
4315
4400
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta${s ? " " + s : ""}`, children: [
|
|
4316
4401
|
/* @__PURE__ */ m("span", { className: `select-delta__value select-delta__value--${u}`, children: [
|
|
4317
4402
|
h ? `${h} ` : "",
|
|
4318
|
-
|
|
4403
|
+
Fs.format(n),
|
|
4319
4404
|
"%"
|
|
4320
4405
|
] }),
|
|
4321
4406
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4322
4407
|
] });
|
|
4323
4408
|
});
|
|
4324
|
-
function
|
|
4409
|
+
function K1() {
|
|
4325
4410
|
const { hidden: t, toggle: n } = bl();
|
|
4326
4411
|
return /* @__PURE__ */ e(
|
|
4327
4412
|
ge,
|
|
4328
4413
|
{
|
|
4329
4414
|
variant: "outline",
|
|
4330
|
-
icon: t ? /* @__PURE__ */ e(
|
|
4415
|
+
icon: t ? /* @__PURE__ */ e(jn, {}) : /* @__PURE__ */ e(Hn, {}),
|
|
4331
4416
|
label: t ? "Mostrar valores" : "Ocultar valores",
|
|
4332
4417
|
active: t,
|
|
4333
4418
|
onClick: n
|
|
4334
4419
|
}
|
|
4335
4420
|
);
|
|
4336
4421
|
}
|
|
4337
|
-
const
|
|
4422
|
+
const J1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: r, ...i }, o) {
|
|
4338
4423
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-balance${r ? " " + r : ""}`, children: [
|
|
4339
4424
|
/* @__PURE__ */ m("div", { className: "select-balance__head", children: [
|
|
4340
4425
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -4354,7 +4439,7 @@ const K1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4354
4439
|
/* @__PURE__ */ m("div", { className: "select-balance__body", children: [
|
|
4355
4440
|
/* @__PURE__ */ m("div", { className: "select-balance__heromain", children: [
|
|
4356
4441
|
/* @__PURE__ */ e("span", { className: "select-balance__heroamount", children: /* @__PURE__ */ e(at, { cents: n }) }),
|
|
4357
|
-
c != null && /* @__PURE__ */ e(
|
|
4442
|
+
c != null && /* @__PURE__ */ e(Bs, { value: c, caption: "vs. período anterior" })
|
|
4358
4443
|
] }),
|
|
4359
4444
|
s.length > 0 && /* @__PURE__ */ e("div", { className: "select-balance__buckets", children: s.map((d) => /* @__PURE__ */ m("div", { className: "select-balance__bucket", children: [
|
|
4360
4445
|
d.icon && /* @__PURE__ */ e("span", { className: "select-balance__bucketicon", children: d.icon }),
|
|
@@ -4365,7 +4450,7 @@ const K1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4365
4450
|
] }, d.label)) })
|
|
4366
4451
|
] })
|
|
4367
4452
|
] });
|
|
4368
|
-
}),
|
|
4453
|
+
}), Q1 = R(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: r, ...i }, o) {
|
|
4369
4454
|
const d = c ?? n - l.reduce((u, h) => u + h.cents, 0);
|
|
4370
4455
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-fees${r ? " " + r : ""}`, children: [
|
|
4371
4456
|
/* @__PURE__ */ m("div", { className: "select-fees__row", children: [
|
|
@@ -4385,14 +4470,14 @@ const K1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4385
4470
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(at, { cents: d }) })
|
|
4386
4471
|
] })
|
|
4387
4472
|
] });
|
|
4388
|
-
}),
|
|
4473
|
+
}), eo = R(function({ label: n, value: l, caption: c, chart: s, tone: a, bare: r = !1, className: i, ...o }, d) {
|
|
4389
4474
|
return /* @__PURE__ */ m("div", { ref: d, ...o, className: `select-kpi${r ? " select-kpi--bare" : ""}${i ? " " + i : ""}`, children: [
|
|
4390
4475
|
/* @__PURE__ */ e("span", { className: "select-kpi__label", children: n }),
|
|
4391
4476
|
/* @__PURE__ */ e("span", { className: `select-kpi__value${a ? ` select-kpi__value--${a}` : ""}`, children: l }),
|
|
4392
4477
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
4393
4478
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
4394
4479
|
] });
|
|
4395
|
-
}),
|
|
4480
|
+
}), to = R(function({ title: n, caption: l, action: c, loading: s = !1, hideValues: a = !1, height: r = 260, flush: i = !1, insight: o, insightTone: d = "neutral", children: u, className: h, ...f }, g) {
|
|
4396
4481
|
const v = r === "auto" ? void 0 : `${r / 16}rem`, x = r === "auto" ? "10rem" : `${r / 16}rem`;
|
|
4397
4482
|
return /* @__PURE__ */ m("div", { ref: g, ...f, className: `select-chartcard${h ? " " + h : ""}`, children: [
|
|
4398
4483
|
(n || c || l) && /* @__PURE__ */ m("div", { className: "select-chartcard__head", children: [
|
|
@@ -4413,7 +4498,7 @@ const K1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4413
4498
|
o != null && !s && /* @__PURE__ */ e("div", { className: `select-chartcard__insight select-chartcard__insight--${d}`, children: (Array.isArray(o) ? o : [o]).filter((N) => N != null).map((N, $) => /* @__PURE__ */ e("span", { className: "select-chartcard__insightpill", children: N }, $)) })
|
|
4414
4499
|
] });
|
|
4415
4500
|
});
|
|
4416
|
-
function
|
|
4501
|
+
function Es() {
|
|
4417
4502
|
const [t, n] = D(1);
|
|
4418
4503
|
return Be(() => {
|
|
4419
4504
|
const l = () => {
|
|
@@ -4424,7 +4509,7 @@ function Fs() {
|
|
|
4424
4509
|
}, []), t;
|
|
4425
4510
|
}
|
|
4426
4511
|
function ce(t) {
|
|
4427
|
-
const n = q(null), [l, c] = D(0), s =
|
|
4512
|
+
const n = q(null), [l, c] = D(0), s = Es();
|
|
4428
4513
|
return Be(() => {
|
|
4429
4514
|
const a = n.current;
|
|
4430
4515
|
if (!a) return;
|
|
@@ -4459,13 +4544,13 @@ function ye(t) {
|
|
|
4459
4544
|
function we(t, n = 4) {
|
|
4460
4545
|
return Array.from({ length: n + 1 }, (l, c) => t / n * c);
|
|
4461
4546
|
}
|
|
4462
|
-
function
|
|
4547
|
+
function Is(t, n = 5) {
|
|
4463
4548
|
if (!(t > 0)) return { max: 1, values: [0, 1] };
|
|
4464
4549
|
const l = t / n, c = Math.pow(10, Math.floor(Math.log10(l))), s = l / c, a = (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * c, r = Math.ceil(t / a) * a, i = [];
|
|
4465
4550
|
for (let o = 0; o <= r + a / 2; o += a) i.push(Math.round(o * 1e6) / 1e6);
|
|
4466
4551
|
return { max: r, values: i };
|
|
4467
4552
|
}
|
|
4468
|
-
function
|
|
4553
|
+
function kn(t) {
|
|
4469
4554
|
return t.map((n, l) => `${l === 0 ? "M" : "L"}${n[0].toFixed(2)},${n[1].toFixed(2)}`).join(" ");
|
|
4470
4555
|
}
|
|
4471
4556
|
function Ge(t) {
|
|
@@ -4512,7 +4597,7 @@ function it(t, n, l, c, s, a) {
|
|
|
4512
4597
|
const [r, i] = gt(t, n, l, s), [o, d] = gt(t, n, l, a), [u, h] = gt(t, n, c, a), [f, g] = gt(t, n, c, s), v = a - s > 180 ? 1 : 0;
|
|
4513
4598
|
return `M${r.toFixed(2)},${i.toFixed(2)} A${l},${l} 0 ${v} 1 ${o.toFixed(2)},${d.toFixed(2)} L${u.toFixed(2)},${h.toFixed(2)} A${c},${c} 0 ${v} 0 ${f.toFixed(2)},${g.toFixed(2)} Z`;
|
|
4514
4599
|
}
|
|
4515
|
-
const
|
|
4600
|
+
const wn = [
|
|
4516
4601
|
"var(--select-chart-1)",
|
|
4517
4602
|
"var(--select-chart-2)",
|
|
4518
4603
|
"var(--select-chart-3)",
|
|
@@ -4520,14 +4605,14 @@ const Sn = [
|
|
|
4520
4605
|
"var(--select-chart-5)"
|
|
4521
4606
|
];
|
|
4522
4607
|
function j(t) {
|
|
4523
|
-
return
|
|
4608
|
+
return wn[t % wn.length];
|
|
4524
4609
|
}
|
|
4525
4610
|
function Y(t) {
|
|
4526
4611
|
const n = Math.abs(t);
|
|
4527
4612
|
return n >= 1e9 ? (t / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : n >= 1e6 ? (t / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : n >= 1e3 ? (t / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(t));
|
|
4528
4613
|
}
|
|
4529
4614
|
const Ee = { top: 16, right: 22, bottom: 32, left: 48 };
|
|
4530
|
-
function
|
|
4615
|
+
function no({ data: t, color: n, height: l = 40, className: c, ...s }) {
|
|
4531
4616
|
const { ref: a, width: r } = ce(l), i = n ?? j(0), o = te(), d = 4;
|
|
4532
4617
|
let u = null;
|
|
4533
4618
|
if (r > 0 && t.length > 1) {
|
|
@@ -4587,7 +4672,7 @@ function K({ tip: t, className: n, ...l }) {
|
|
|
4587
4672
|
] }, o))
|
|
4588
4673
|
] });
|
|
4589
4674
|
}
|
|
4590
|
-
function
|
|
4675
|
+
function lo({ data: t, height: n = 240, color: l, format: c = Y, className: s, ...a }) {
|
|
4591
4676
|
const { ref: r, width: i } = ce(n), o = X(), d = te(), u = l ?? j(0), h = ye(Math.max(0, ...t.map((p) => p.value))), f = Ee, g = Math.max(0, i - f.left - f.right), v = n - f.top - f.bottom, x = t.length > 0 ? g / t.length : 0, N = Math.min(x * 0.62, 44), $ = f.top + v, _ = (p) => $ - p / h * v;
|
|
4592
4677
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
4593
4678
|
i > 0 && /* @__PURE__ */ m("svg", { width: i, height: n, className: "select-chart", children: [
|
|
@@ -4638,8 +4723,8 @@ function no({ data: t, height: n = 240, color: l, format: c = Y, className: s, .
|
|
|
4638
4723
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4639
4724
|
] });
|
|
4640
4725
|
}
|
|
4641
|
-
function
|
|
4642
|
-
const { ref: i, width: o } = ce(l), d = X(), u = te(), [h, f] = D(null), { max: g, values: v } =
|
|
4726
|
+
function co({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1, className: a, ...r }) {
|
|
4727
|
+
const { ref: i, width: o } = ce(l), d = X(), u = te(), [h, f] = D(null), { max: g, values: v } = Is(Math.max(0, ...t.flatMap((w) => w.data))), x = Ee, N = Math.max(0, o - x.left - x.right), $ = l - x.top - x.bottom, _ = n.length, p = (w) => x.left + (_ <= 1 ? N / 2 : w / (_ - 1) * N), b = (w) => x.top + $ - w / g * $, S = _ > 1 ? N / (_ - 1) : N, k = Math.max(1, Math.ceil(_ / 7)), M = x.top + $;
|
|
4643
4728
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
4644
4729
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
4645
4730
|
/* @__PURE__ */ e("defs", { children: t.map((w, y) => {
|
|
@@ -4725,7 +4810,7 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4725
4810
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
4726
4811
|
] });
|
|
4727
4812
|
}
|
|
4728
|
-
function
|
|
4813
|
+
function so({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
4729
4814
|
const { ref: r, width: i } = ce(l), o = X(), d = te(), [u, h] = D(null), f = n.length, g = new Array(f).fill(0), v = t.map(
|
|
4730
4815
|
(y) => y.data.map((C, L) => (g[L] = (g[L] ?? 0) + (C ?? 0), g[L]))
|
|
4731
4816
|
), x = ye(Math.max(0, ...g)), N = Ee, $ = Math.max(0, i - N.left - N.right), _ = l - N.top - N.bottom, p = (y) => N.left + (f <= 1 ? $ / 2 : y / (f - 1) * $), b = (y) => N.top + _ - y / x * _, S = f > 1 ? $ / (f - 1) : $, k = Math.max(1, Math.ceil(f / 7)), M = N.top + _, w = v[v.length - 1];
|
|
@@ -4791,7 +4876,7 @@ function co({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4791
4876
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4792
4877
|
] });
|
|
4793
4878
|
}
|
|
4794
|
-
function
|
|
4879
|
+
function ao({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, formatLine: a = (o) => `${Math.round(o)}%`, className: r, ...i }) {
|
|
4795
4880
|
const { ref: o, width: d } = ce(c), u = X(), h = te(), [f, g] = D(null), v = { ...Ee, right: 58 }, x = Math.max(0, d - v.left - v.right), N = c - v.top - v.bottom, $ = t.length, _ = ye(Math.max(0, ...n.data)), p = ye(Math.max(0, ...l.data)), b = $ > 0 ? x / $ : 0, S = Math.min(b * 0.5, 36), k = Math.max(1, Math.ceil($ / 8)), M = n.color ?? j(0), w = l.color ?? j(1), y = v.top + N, C = (F) => y - F / _ * N, L = (F) => y - F / p * N, B = (F) => v.left + b * F + b / 2, A = l.data.map((F, E) => [B(E), L(F)]);
|
|
4796
4881
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: o, children: [
|
|
4797
4882
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: c, className: "select-chart", children: [
|
|
@@ -4889,7 +4974,7 @@ function so({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4889
4974
|
/* @__PURE__ */ e(K, { tip: u.tip })
|
|
4890
4975
|
] });
|
|
4891
4976
|
}
|
|
4892
|
-
const
|
|
4977
|
+
const oo = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s = Y, centerLabel: a, legend: r = !0, gap: i = 2, pie: o = !1, className: d, ...u }, h) {
|
|
4893
4978
|
const f = X(), g = te(), v = q(null), x = Ct(v, l), N = n.reduce((k, M) => k + M.value, 0) || 1, $ = x / 2, _ = x / 2, p = x / 2 - 2, b = o ? 0 : p - c;
|
|
4894
4979
|
let S = 0;
|
|
4895
4980
|
return /* @__PURE__ */ m("div", { ref: h, ...u, className: `select-donut-wrap${d ? " " + d : ""}`, children: [
|
|
@@ -4938,7 +5023,7 @@ const ao = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4938
5023
|
/* @__PURE__ */ e(K, { tip: f.tip })
|
|
4939
5024
|
] });
|
|
4940
5025
|
});
|
|
4941
|
-
function
|
|
5026
|
+
function ro({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s = !1, className: a, ...r }) {
|
|
4942
5027
|
const { ref: i, width: o } = ce(l), d = X(), u = te(), h = n.length, f = t.length || 1, g = n.map((M, w) => t.reduce((y, C) => y + (C.data[w] ?? 0), 0)), v = ye(s ? Math.max(0, ...g) : Math.max(0, ...t.flatMap((M) => M.data))), x = Ee, N = Math.max(0, o - x.left - x.right), $ = l - x.top - x.bottom, _ = x.top + $, p = h ? N / h : 0, b = (M) => _ - M / v * $, S = Math.min(p * 0.72, f * 40), k = s ? Math.min(p * 0.5, 44) : S / f;
|
|
4943
5028
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
4944
5029
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
@@ -5030,7 +5115,7 @@ function oo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
5030
5115
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5031
5116
|
] });
|
|
5032
5117
|
}
|
|
5033
|
-
const
|
|
5118
|
+
const io = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
5034
5119
|
const r = Math.max(1, ...n.map((i) => i.value));
|
|
5035
5120
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((i, o) => {
|
|
5036
5121
|
const d = o > 0 ? n[o - 1].value || 1 : i.value || 1, u = o > 0 ? i.value / d * 100 : 100, h = j(o);
|
|
@@ -5056,19 +5141,19 @@ const ro = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
|
5056
5141
|
] }, o);
|
|
5057
5142
|
}) });
|
|
5058
5143
|
});
|
|
5059
|
-
function
|
|
5144
|
+
function Ps(t) {
|
|
5060
5145
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
5061
5146
|
}
|
|
5062
|
-
function
|
|
5147
|
+
function Sn(t, n, l, c) {
|
|
5063
5148
|
const s = Math.PI + c * Math.PI;
|
|
5064
5149
|
return [t + l * Math.cos(s), n + l * Math.sin(s)];
|
|
5065
5150
|
}
|
|
5066
|
-
function
|
|
5067
|
-
const [a, r] =
|
|
5151
|
+
function Cn(t, n, l, c, s) {
|
|
5152
|
+
const [a, r] = Sn(t, n, l, c), [i, o] = Sn(t, n, l, s);
|
|
5068
5153
|
return `M ${a.toFixed(2)} ${r.toFixed(2)} A ${l} ${l} 0 0 1 ${i.toFixed(2)} ${o.toFixed(2)}`;
|
|
5069
5154
|
}
|
|
5070
|
-
const
|
|
5071
|
-
const h =
|
|
5155
|
+
const Rs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`, ho = R(function({ value: n, label: l, caption: c, size: s = 220, thickness: a, color: r, format: i = Rs, className: o, ...d }, u) {
|
|
5156
|
+
const h = Ps(n), f = te(), g = a ?? Math.max(8, Math.round(s * 0.075)), v = g / 2 + 2, x = s / 2 - v, N = s / 2, $ = s / 2, _ = $ + v, p = nc({ value: h, format: i });
|
|
5072
5157
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
5073
5158
|
/* @__PURE__ */ m("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${_}` }, children: [
|
|
5074
5159
|
/* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: `0 0 ${s} ${_}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
@@ -5080,7 +5165,7 @@ const Is = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5080
5165
|
"path",
|
|
5081
5166
|
{
|
|
5082
5167
|
className: "select-gauge__track",
|
|
5083
|
-
d:
|
|
5168
|
+
d: Cn(N, $, x, 0, 1),
|
|
5084
5169
|
fill: "none",
|
|
5085
5170
|
strokeWidth: g,
|
|
5086
5171
|
strokeLinecap: "round"
|
|
@@ -5090,7 +5175,7 @@ const Is = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5090
5175
|
"path",
|
|
5091
5176
|
{
|
|
5092
5177
|
className: "select-gauge__arc",
|
|
5093
|
-
d:
|
|
5178
|
+
d: Cn(N, $, x, 0, h / 100),
|
|
5094
5179
|
fill: "none",
|
|
5095
5180
|
stroke: r ?? `url(#${f})`,
|
|
5096
5181
|
strokeWidth: g,
|
|
@@ -5106,7 +5191,7 @@ const Is = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5106
5191
|
] }),
|
|
5107
5192
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5108
5193
|
] });
|
|
5109
|
-
}),
|
|
5194
|
+
}), uo = R(function({ columns: n, rows: l, format: c = Y, formatValue: s, color: a = "var(--select-chart-1)", showValues: r = !0, min: i, max: o, cellSize: d = 40, maxCellSize: u = 96, cellHeight: h = 30, className: f, ...g }, v) {
|
|
5110
5195
|
const x = X(), N = l.flatMap((M) => M.values).filter((M) => M != null && Number.isFinite(M)), $ = i ?? (N.length ? Math.min(...N) : 0), p = (o ?? (N.length ? Math.max(...N) : 1)) - $ || 1, b = { "--heat-color": a }, S = {
|
|
5111
5196
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${d}px, ${Math.max(d, u)}px))`,
|
|
5112
5197
|
width: "fit-content",
|
|
@@ -5120,7 +5205,7 @@ const Is = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5120
5205
|
/* @__PURE__ */ m("div", { className: "select-heatmap__grid", style: S, children: [
|
|
5121
5206
|
/* @__PURE__ */ e("div", { className: "select-heatmap__corner" }),
|
|
5122
5207
|
n.map((M) => /* @__PURE__ */ e("div", { className: "select-heatmap__colhead", children: M }, M)),
|
|
5123
|
-
l.map((M) => /* @__PURE__ */ m(
|
|
5208
|
+
l.map((M) => /* @__PURE__ */ m(Gt, { children: [
|
|
5124
5209
|
/* @__PURE__ */ e("div", { className: "select-heatmap__rowhead", children: M.label }),
|
|
5125
5210
|
M.values.map((w, y) => {
|
|
5126
5211
|
const C = `${M.label}-${n[y] ?? y}`;
|
|
@@ -5157,7 +5242,7 @@ const Is = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5157
5242
|
/* @__PURE__ */ e(K, { tip: x.tip })
|
|
5158
5243
|
] });
|
|
5159
5244
|
});
|
|
5160
|
-
function
|
|
5245
|
+
function po({
|
|
5161
5246
|
items: t,
|
|
5162
5247
|
format: n = Y,
|
|
5163
5248
|
color: l,
|
|
@@ -5172,7 +5257,7 @@ function uo({
|
|
|
5172
5257
|
/* @__PURE__ */ m("div", { className: "select-progresslist__top", children: [
|
|
5173
5258
|
/* @__PURE__ */ m("span", { className: "select-progresslist__label", children: [
|
|
5174
5259
|
/* @__PURE__ */ e("span", { className: "select-progresslist__name", children: a.label }),
|
|
5175
|
-
a.badge && /* @__PURE__ */ e(
|
|
5260
|
+
a.badge && /* @__PURE__ */ e(cl, { tone: a.badge.tone, children: a.badge.label })
|
|
5176
5261
|
] }),
|
|
5177
5262
|
/* @__PURE__ */ e("span", { className: "select-progresslist__value", children: a.valueText ?? n(a.value) })
|
|
5178
5263
|
] }),
|
|
@@ -5191,7 +5276,7 @@ function uo({
|
|
|
5191
5276
|
] }, `${a.label}-${r}`);
|
|
5192
5277
|
}) });
|
|
5193
5278
|
}
|
|
5194
|
-
const Rt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0,
|
|
5279
|
+
const Rt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, mo = R(function({ series: n, size: l = 200, thickness: c = 14, gap: s = 8, format: a = (h) => `${Math.round(h)}%`, centerLabel: r, legend: i = !0, className: o, ...d }, u) {
|
|
5195
5280
|
const h = te(), f = l / 2, g = l / 2;
|
|
5196
5281
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5197
5282
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5236,12 +5321,12 @@ const Rt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, po = R
|
|
|
5236
5321
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: a(Rt(v.value)) })
|
|
5237
5322
|
] }, x)) })
|
|
5238
5323
|
] });
|
|
5239
|
-
}),
|
|
5240
|
-
function
|
|
5324
|
+
}), Ln = 6.1, Dt = 12, An = 56, Ds = 0.4;
|
|
5325
|
+
function fo({ data: t, height: n, color: l, format: c = Y, formatValue: s, distributed: a = !0, labelWidth: r, className: i, ...o }) {
|
|
5241
5326
|
const g = n ?? t.length * 36 + 6 + 26, { ref: v, width: x } = ce(g), N = X(), $ = te(), _ = ye(Math.max(0, ...t.map((F) => F.value))), p = t.reduce((F, E) => Math.max(F, E.label.length), 0), b = Math.min(
|
|
5242
|
-
Math.max(
|
|
5243
|
-
Math.max(
|
|
5244
|
-
), S = r ?? b, k = Math.max(3, Math.floor((S - Dt) /
|
|
5327
|
+
Math.max(An, p * Ln + Dt),
|
|
5328
|
+
Math.max(An, x * Ds)
|
|
5329
|
+
), S = r ?? b, k = Math.max(3, Math.floor((S - Dt) / Ln)), M = (F) => F.length <= k ? F : `${F.slice(0, k - 1).trimEnd()}…`, w = Math.max(0, x - S - 28), y = g - 6 - 26, C = t.length ? y / t.length : 0, L = Math.min(C * 0.62, 22), B = (F) => S + F / _ * w, A = (F, E) => F.color ?? (a ? j(E) : l ?? j(0));
|
|
5245
5330
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${i ? " " + i : ""}`, ref: v, children: [
|
|
5246
5331
|
x > 0 && /* @__PURE__ */ m("svg", { width: x, height: g, className: "select-chart", children: [
|
|
5247
5332
|
/* @__PURE__ */ e("defs", { children: t.map((F, E) => {
|
|
@@ -5308,7 +5393,7 @@ function mo({ data: t, height: n, color: l, format: c = Y, formatValue: s, distr
|
|
|
5308
5393
|
/* @__PURE__ */ e(K, { tip: N.tip })
|
|
5309
5394
|
] });
|
|
5310
5395
|
}
|
|
5311
|
-
function
|
|
5396
|
+
function _o({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5312
5397
|
const { ref: a, width: r } = ce(n), i = X(), o = te();
|
|
5313
5398
|
let d = 0;
|
|
5314
5399
|
const u = t.map((k) => {
|
|
@@ -5378,7 +5463,7 @@ function fo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5378
5463
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5379
5464
|
] });
|
|
5380
5465
|
}
|
|
5381
|
-
const
|
|
5466
|
+
const Fn = (t) => Math.max(0, Math.min(100, t)), vo = R(function({ items: n, format: l = Y, className: c, ...s }, a) {
|
|
5382
5467
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((r, i) => {
|
|
5383
5468
|
const o = r.color ?? j(i), d = r.max ?? (Math.max(r.value, r.target) * 1.25 || 1), u = r.value >= r.target;
|
|
5384
5469
|
return /* @__PURE__ */ m("div", { className: "select-bullet__row", children: [
|
|
@@ -5404,17 +5489,17 @@ const Bn = (t) => Math.max(0, Math.min(100, t)), _o = R(function({ items: n, for
|
|
|
5404
5489
|
{
|
|
5405
5490
|
className: "select-bullet__fill",
|
|
5406
5491
|
style: {
|
|
5407
|
-
width: `${
|
|
5492
|
+
width: `${Fn(r.value / d * 100)}%`,
|
|
5408
5493
|
background: `linear-gradient(90deg, ${o}, color-mix(in srgb, ${o} 55%, transparent))`
|
|
5409
5494
|
}
|
|
5410
5495
|
}
|
|
5411
5496
|
),
|
|
5412
|
-
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${
|
|
5497
|
+
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${Fn(r.target / d * 100)}%` } })
|
|
5413
5498
|
] })
|
|
5414
5499
|
] }, `${r.label}-${i}`);
|
|
5415
5500
|
}) });
|
|
5416
5501
|
});
|
|
5417
|
-
function
|
|
5502
|
+
function Ts(t, n, l) {
|
|
5418
5503
|
const c = [], s = (r, i) => {
|
|
5419
5504
|
const o = r.reduce((h, f) => h + f, 0), d = Math.max(...r), u = Math.min(...r);
|
|
5420
5505
|
return Math.max(i * i * d / (o * o), o * o / (i * i * u));
|
|
@@ -5457,8 +5542,8 @@ function Rs(t, n, l) {
|
|
|
5457
5542
|
l
|
|
5458
5543
|
), c;
|
|
5459
5544
|
}
|
|
5460
|
-
function
|
|
5461
|
-
const { ref: a, width: r } = ce(n), i = X(), o = te(), d = t.map((h, f) => f).sort((h, f) => t[f].value - t[h].value), u = r > 0 ?
|
|
5545
|
+
function go({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5546
|
+
const { ref: a, width: r } = ce(n), i = X(), o = te(), d = t.map((h, f) => f).sort((h, f) => t[f].value - t[h].value), u = r > 0 ? Ts(d.map((h) => t[h].value), r, n) : [];
|
|
5462
5547
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
5463
5548
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
5464
5549
|
/* @__PURE__ */ e("defs", { children: t.map((h, f) => {
|
|
@@ -5499,7 +5584,7 @@ function vo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5499
5584
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5500
5585
|
] });
|
|
5501
5586
|
}
|
|
5502
|
-
function
|
|
5587
|
+
function bo({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax: s, yMax: a, maxRadius: r = 18, className: i, ...o }) {
|
|
5503
5588
|
const { ref: d, width: u } = ce(n), h = X(), f = t.flatMap((M) => M.points), g = ye(s ?? Math.max(0, ...f.map((M) => M.x))), v = ye(a ?? Math.max(0, ...f.map((M) => M.y))), x = Math.max(1, ...f.map((M) => M.r ?? 0)), N = Ee, $ = Math.max(0, u - N.left - N.right), _ = n - N.top - N.bottom, p = N.top + _, b = (M) => N.left + M / g * $, S = (M) => p - M / v * _, k = (M) => M.r ? 4 + Math.sqrt(M.r) / Math.sqrt(x) * (r - 4) : 4.5;
|
|
5504
5589
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${i ? " " + i : ""}`, ref: d, children: [
|
|
5505
5590
|
u > 0 && /* @__PURE__ */ m("svg", { width: u, height: n, className: "select-chart", children: [
|
|
@@ -5546,7 +5631,7 @@ function go({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax:
|
|
|
5546
5631
|
/* @__PURE__ */ e(K, { tip: h.tip })
|
|
5547
5632
|
] });
|
|
5548
5633
|
}
|
|
5549
|
-
const
|
|
5634
|
+
const xo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y, levels: r = 4, legend: i = !0, className: o, ...d }, u) {
|
|
5550
5635
|
const h = X(), f = te(), g = n.length, v = c / 2, x = c / 2, N = c / 2 - 30, $ = s ?? ye(Math.max(1, ...l.flatMap((S) => S.values))), _ = (S) => (-90 + S * 360 / g) * Math.PI / 180, p = (S, k) => [v + k * Math.cos(_(S)), x + k * Math.sin(_(S))], b = (S) => S.map((k, M) => `${M === 0 ? "M" : "L"}${p(M, k).map((w) => w.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
5551
5636
|
return /* @__PURE__ */ m("div", { ref: u, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5552
5637
|
/* @__PURE__ */ m("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -5616,7 +5701,7 @@ const bo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y
|
|
|
5616
5701
|
] }, k)) })
|
|
5617
5702
|
] });
|
|
5618
5703
|
});
|
|
5619
|
-
function
|
|
5704
|
+
function yo({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...r }) {
|
|
5620
5705
|
const { ref: i, width: o } = ce(n), d = X(), u = [], h = [];
|
|
5621
5706
|
for (const y of t)
|
|
5622
5707
|
u.includes(y.source) || u.push(y.source), h.includes(y.target) || h.push(y.target);
|
|
@@ -5664,7 +5749,7 @@ function xo({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeG
|
|
|
5664
5749
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5665
5750
|
] });
|
|
5666
5751
|
}
|
|
5667
|
-
function
|
|
5752
|
+
function No({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--select-chart-4)", downColor: s = "var(--select-chart-3)", className: a, ...r }) {
|
|
5668
5753
|
const { ref: i, width: o } = ce(n), d = X(), u = Ee, h = Math.max(0, o - u.left - u.right), f = n - u.top - u.bottom, g = u.top + f, v = Math.max(1, ...t.map((w) => w.high)), x = Math.min(v, ...t.map((w) => w.low)), N = (v - x) * 0.08 || 1, $ = x - N, _ = v + N, p = (w) => g - (w - $) / (_ - $) * f, b = t.length, S = b ? h / b : 0, k = Math.min(S * 0.5, 18), M = Array.from({ length: 5 }, (w, y) => $ + (_ - $) * y / 4);
|
|
5669
5754
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5670
5755
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -5716,7 +5801,7 @@ function yo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5716
5801
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5717
5802
|
] });
|
|
5718
5803
|
}
|
|
5719
|
-
function
|
|
5804
|
+
function Mo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5720
5805
|
const { ref: a, width: r } = ce(n), i = X(), o = Ee, d = Math.max(0, r - o.left - o.right), u = n - o.top - o.bottom, h = o.top + u, f = ye(Math.max(1, ...t.map(($) => $.max))), g = ($) => h - $ / f * u, v = t.length, x = v ? d / v : 0, N = Math.min(x * 0.5, 40);
|
|
5721
5806
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
5722
5807
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -5772,7 +5857,7 @@ function No({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5772
5857
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5773
5858
|
] });
|
|
5774
5859
|
}
|
|
5775
|
-
function
|
|
5860
|
+
function $o({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a = 96, className: r, ...i }) {
|
|
5776
5861
|
const f = n ?? t.length * 36 + 6 + 26, { ref: g, width: v } = ce(f), x = X(), N = te(), $ = l ?? Math.min(0, ...t.map((L) => L.start)), p = (c ?? Math.max(1, ...t.map((L) => L.end))) - $ || 1, b = a, S = Math.max(0, v - b - 14), k = f - 6 - 26, M = t.length ? k / t.length : 0, w = Math.min(M * 0.6, 22), y = (L) => b + (L - $) / p * S, C = Array.from({ length: 5 }, (L, B) => $ + p * B / 4);
|
|
5777
5862
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5778
5863
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -5827,7 +5912,7 @@ function Mo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a =
|
|
|
5827
5912
|
/* @__PURE__ */ e(K, { tip: x.tip })
|
|
5828
5913
|
] });
|
|
5829
5914
|
}
|
|
5830
|
-
const
|
|
5915
|
+
const ko = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels: c = ["Seg", "", "Qua", "", "Sex", "", "Dom"], columnLabels: s, format: a = Y, cell: r = 14, gap: i = 3, min: o, max: d, className: u, ...h }, f) {
|
|
5831
5916
|
const g = X();
|
|
5832
5917
|
te();
|
|
5833
5918
|
const v = n.flat().filter((w) => w != null && Number.isFinite(w)), x = o ?? (v.length ? Math.min(...v) : 0), $ = (d ?? (v.length ? Math.max(...v) : 1)) - x || 1, _ = 30, p = s ? 16 : 4, b = r + i, S = _ + n.length * b, k = p + 7 * b, M = { "--heat-color": l };
|
|
@@ -5871,7 +5956,7 @@ const $o = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5871
5956
|
] }),
|
|
5872
5957
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
5873
5958
|
] });
|
|
5874
|
-
}),
|
|
5959
|
+
}), wo = R(function({ segments: n, size: l = 200, format: c = Y, legend: s = !0, rose: a = !1, className: r, ...i }, o) {
|
|
5875
5960
|
const d = X(), u = l / 2, h = l / 2, f = l / 2 - 2, g = n.length || 1, v = ye(Math.max(1, ...n.map(($) => $.value))), x = ($) => a ? Math.max(0, $) / v * f : Math.sqrt(Math.max(0, $) / v) * f, N = 360 / g;
|
|
5876
5961
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
5877
5962
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5902,7 +5987,7 @@ const $o = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5902
5987
|
] }, _)) })
|
|
5903
5988
|
] });
|
|
5904
5989
|
});
|
|
5905
|
-
function
|
|
5990
|
+
function So({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = Y, className: a, ...r }) {
|
|
5906
5991
|
const { ref: i, width: o } = ce(c), d = X(), u = { top: 24, right: 64, bottom: 12, left: 132 }, h = ye(Math.max(1, ...t.flatMap((N) => [N.left, N.right]))), f = c - u.top - u.bottom, g = (N) => u.top + f - N / h * f, v = u.left, x = o - u.right;
|
|
5907
5992
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5908
5993
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: c, className: "select-chart", children: [
|
|
@@ -5949,7 +6034,7 @@ function wo({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
5949
6034
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5950
6035
|
] });
|
|
5951
6036
|
}
|
|
5952
|
-
function
|
|
6037
|
+
function Co({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: r, ...i }) {
|
|
5953
6038
|
const f = n ?? t.length * 34 + 6 + 26, { ref: g, width: v } = ce(f), x = X(), N = "var(--select-chart-2)", $ = "var(--select-chart-1)", _ = ye(Math.max(1, ...t.flatMap((w) => [w.from, w.to]))), p = a, b = Math.max(0, v - p - 14), S = f - 6 - 26, k = t.length ? S / t.length : 0, M = (w) => p + w / _ * b;
|
|
5954
6039
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5955
6040
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -6001,7 +6086,7 @@ function So({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel
|
|
|
6001
6086
|
/* @__PURE__ */ e(K, { tip: x.tip })
|
|
6002
6087
|
] });
|
|
6003
6088
|
}
|
|
6004
|
-
function
|
|
6089
|
+
function Lo({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className: s, ...a }) {
|
|
6005
6090
|
const { ref: r, width: i } = ce(n), o = X(), d = { top: 6, right: 6, bottom: 24, left: 6 }, u = Math.max(0, i - d.left - d.right), h = n - d.top - d.bottom, f = t.map((p) => p.segments.reduce((b, S) => b + S.value, 0)), g = f.reduce((p, b) => p + b, 0) || 1, v = [];
|
|
6006
6091
|
t.forEach((p) => p.segments.forEach((b) => {
|
|
6007
6092
|
v.includes(b.key) || v.push(b.key);
|
|
@@ -6053,7 +6138,7 @@ function Co({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
6053
6138
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6054
6139
|
] });
|
|
6055
6140
|
}
|
|
6056
|
-
const
|
|
6141
|
+
const Ao = R(function({ value: n, max: l = 100, bands: c, size: s = 220, thickness: a, label: r, format: i = (h) => `${Math.round(h)}`, className: o, ...d }, u) {
|
|
6057
6142
|
const h = a ?? Math.max(10, Math.round(s * 0.08)), f = h / 2 + 2, g = s / 2 - f, v = s / 2, x = s / 2, N = x + f, $ = (L) => Math.max(0, Math.min(l, L)), _ = (L) => {
|
|
6058
6143
|
const B = Math.PI + L * Math.PI;
|
|
6059
6144
|
return [v + g * Math.cos(B), x + g * Math.sin(B)];
|
|
@@ -6078,7 +6163,7 @@ const Lo = R(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
6078
6163
|
] })
|
|
6079
6164
|
] }) });
|
|
6080
6165
|
});
|
|
6081
|
-
function
|
|
6166
|
+
function Fo({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6082
6167
|
const { ref: r, width: i } = ce(l), o = X(), d = te(), [u, h] = D(null), f = n.length, g = { top: 14, right: 14, bottom: 28, left: 14 }, v = Math.max(0, i - g.left - g.right), x = l - g.top - g.bottom, N = n.map((k, M) => t.reduce((w, y) => w + (y.data[M] ?? 0), 0)), $ = Math.max(1, ...N), _ = x / $, p = (k) => g.left + (f <= 1 ? v / 2 : k / (f - 1) * v), b = n.map(() => 0), S = t.map((k, M) => {
|
|
6083
6168
|
const w = [], y = [];
|
|
6084
6169
|
return n.forEach((C, L) => {
|
|
@@ -6124,7 +6209,7 @@ function Ao({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6124
6209
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6125
6210
|
] });
|
|
6126
6211
|
}
|
|
6127
|
-
const
|
|
6212
|
+
const Bo = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, className: a, ...r }, i) {
|
|
6128
6213
|
const o = X(), d = l / 2, u = l / 2, h = l / 2 - 2, f = h * 0.62, g = h * 0.32, v = n.map(($) => {
|
|
6129
6214
|
var _;
|
|
6130
6215
|
return (_ = $.children) != null && _.length ? $.children.reduce((p, b) => p + b.value, 0) : $.value ?? 0;
|
|
@@ -6185,7 +6270,7 @@ const Fo = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, c
|
|
|
6185
6270
|
] }, _)) })
|
|
6186
6271
|
] });
|
|
6187
6272
|
});
|
|
6188
|
-
function
|
|
6273
|
+
function Eo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
6189
6274
|
const { ref: a, width: r } = ce(n), i = X(), o = Ee, d = Math.max(0, r - o.left - o.right), u = n - o.top - o.bottom, h = o.top + u, f = ye(Math.max(1, ...t.map((_) => _.max))), g = (_) => h - _ / f * u, v = t.length, x = v ? d / v : 0, N = Math.min(x * 0.42, 46), $ = Math.max(1, ...t.flatMap((_) => _.bins));
|
|
6190
6275
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6191
6276
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6206,7 +6291,7 @@ function Bo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6206
6291
|
const b = o.left + x * p + x / 2, S = _.color ?? j(p), k = _.bins.length, M = (A) => g(_.min + (_.max - _.min) * A / Math.max(1, k - 1)), w = (A) => _.bins[A] / $ * N, y = [], C = [];
|
|
6207
6292
|
for (let A = k - 1; A >= 0; A--) y.push([b + w(A), M(A)]);
|
|
6208
6293
|
for (let A = 0; A < k; A++) C.push([b - w(A), M(A)]);
|
|
6209
|
-
const L = `${
|
|
6294
|
+
const L = `${kn(y)} ${kn(C).replace(/^M/, "L")} Z`, B = _.median != null ? g(_.median) : null;
|
|
6210
6295
|
return /* @__PURE__ */ m("g", { children: [
|
|
6211
6296
|
/* @__PURE__ */ e("path", { d: L, fill: S, fillOpacity: 0.32, stroke: S, strokeWidth: 1.5, strokeLinejoin: "round" }),
|
|
6212
6297
|
B != null && /* @__PURE__ */ e("line", { x1: b - N * 0.6, x2: b + N * 0.6, y1: B, y2: B, stroke: S, strokeWidth: 2 }),
|
|
@@ -6239,7 +6324,7 @@ function Bo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6239
6324
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
6240
6325
|
] });
|
|
6241
6326
|
}
|
|
6242
|
-
const
|
|
6327
|
+
const Io = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padAngle: a = 0.05, className: r, ...i }, o) {
|
|
6243
6328
|
const d = X(), u = l.length, h = c / 2, f = c / 2, g = c / 2 - 22, v = g - 9, x = n.map((y) => y.reduce((C, L) => C + L, 0)), N = x.reduce((y, C) => y + C, 0) || 1, $ = (2 * Math.PI - u * a) / N, _ = [];
|
|
6244
6329
|
let p = 0;
|
|
6245
6330
|
for (let y = 0; y < u; y++) {
|
|
@@ -6304,7 +6389,7 @@ const Eo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6304
6389
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
6305
6390
|
] }) });
|
|
6306
6391
|
});
|
|
6307
|
-
function
|
|
6392
|
+
function Po({ points: t, height: n = 240, radius: l = 16, color: c = "var(--select-chart-1)", xMax: s, yMax: a, format: r = Y, className: i, ...o }) {
|
|
6308
6393
|
const { ref: d, width: u } = ce(n), h = X(), f = 12, g = Math.max(0, u - f * 2), v = n - f * 2, x = s ?? Math.max(1, ...t.map((C) => C.x)), N = a ?? Math.max(1, ...t.map((C) => C.y)), $ = (C) => f + C / x * g, _ = (C) => f + v - C / N * v, p = l, b = Math.sqrt(3), S = (C, L) => {
|
|
6309
6394
|
let B = C, A = L, F = -B - A, E = Math.round(B), T = Math.round(F), I = Math.round(A);
|
|
6310
6395
|
const O = Math.abs(E - B), W = Math.abs(T - F), Z = Math.abs(I - A);
|
|
@@ -6345,7 +6430,7 @@ function Io({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
6345
6430
|
/* @__PURE__ */ e(K, { tip: h.tip })
|
|
6346
6431
|
] });
|
|
6347
6432
|
}
|
|
6348
|
-
const
|
|
6433
|
+
const Ro = R(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, r) {
|
|
6349
6434
|
const i = n.map((f) => f.value), o = Math.max(1, ...i), d = Math.min(...i), u = o - d || 1, h = (f) => l + (f - d) / u * (c - l);
|
|
6350
6435
|
return /* @__PURE__ */ e("div", { ref: r, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, g) => /* @__PURE__ */ e(
|
|
6351
6436
|
"span",
|
|
@@ -6361,7 +6446,7 @@ const Po = R(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s
|
|
|
6361
6446
|
},
|
|
6362
6447
|
`${f.text}-${g}`
|
|
6363
6448
|
)) });
|
|
6364
|
-
}),
|
|
6449
|
+
}), Ws = [
|
|
6365
6450
|
[-59.6, -80, -59.9, -80.5, -60.2, -81, -62.3, -80.9, -64.5, -80.9, -65.7, -80.6, -65.7, -80.5, -66.3, -80.3, -64, -80.3, -61.9, -80.4, -61.1, -80, -60.6, -79.6, -59.6, -80],
|
|
6366
6451
|
[-159.2, -79.5, -161.1, -79.6, -162.4, -79.3, -163, -78.9, -163.1, -78.9, -163.7, -78.6, -163.1, -78.2, -161.2, -78.4, -160.2, -78.7, -159.5, -79, -159.2, -79.5],
|
|
6367
6452
|
[-45.2, -78, -43.9, -78.5, -43.5, -79.1, -43.4, -79.5, -43.3, -80, -44.9, -80.3, -46.5, -80.6, -48.4, -80.8, -50.5, -81, -52.9, -81, -54.2, -80.6, -54, -80.2, -51.9, -79.9, -51, -79.6, -50.4, -79.2, -49.9, -78.8, -49.3, -78.5, -48.7, -78, -48.2, -78, -46.7, -77.8, -45.2, -78],
|
|
@@ -6498,7 +6583,7 @@ function bt([t, n, l], c, s) {
|
|
|
6498
6583
|
const a = c * Lt, r = t * Math.cos(a) + l * Math.sin(a), i = -t * Math.sin(a) + l * Math.cos(a), o = s * Lt, d = n * Math.cos(o) - i * Math.sin(o), u = n * Math.sin(o) + i * Math.cos(o);
|
|
6499
6584
|
return [r, d, u];
|
|
6500
6585
|
}
|
|
6501
|
-
function
|
|
6586
|
+
function Bn(t, n, l) {
|
|
6502
6587
|
let c = t[0] * n[0] + t[1] * n[1] + t[2] * n[2];
|
|
6503
6588
|
c = Math.max(-1, Math.min(1, c));
|
|
6504
6589
|
const s = Math.acos(c);
|
|
@@ -6506,7 +6591,7 @@ function En(t, n, l) {
|
|
|
6506
6591
|
const a = Math.sin(s), r = Math.sin((1 - l) * s) / a, i = Math.sin(l * s) / a;
|
|
6507
6592
|
return [t[0] * r + n[0] * i, t[1] * r + n[1] * i, t[2] * r + n[2] * i];
|
|
6508
6593
|
}
|
|
6509
|
-
const
|
|
6594
|
+
const En = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) < 1e-6, Do = R(function({ points: n = [], arcs: l = [], size: c = 320, tilt: s = -18, spin: a = !0, speed: r = 7, color: i = "var(--select-chart-1)", format: o = Y, legend: d = !0, map: u = !0, fluid: h = !1, onZoomChange: f, className: g, ...v }, x) {
|
|
6510
6595
|
var Fe;
|
|
6511
6596
|
const N = te(), $ = X(), _ = q(null), p = Ct(_, c), b = n.length ? n.reduce((P, V) => P + V.lng, 0) / n.length : 0, S = q(
|
|
6512
6597
|
typeof window < "u" && !!((Fe = window.matchMedia) != null && Fe.call(window, "(prefers-reduced-motion: reduce)").matches)
|
|
@@ -6565,7 +6650,7 @@ const In = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6565
6650
|
}
|
|
6566
6651
|
return V;
|
|
6567
6652
|
}, []), de = xe(
|
|
6568
|
-
() =>
|
|
6653
|
+
() => Ws.map((P) => {
|
|
6569
6654
|
const V = [];
|
|
6570
6655
|
for (let U = 0; U < P.length; U += 2) V.push(et(P[U + 1], P[U]));
|
|
6571
6656
|
return V;
|
|
@@ -6629,11 +6714,11 @@ const In = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6629
6714
|
const U = et(P.from.lat, P.from.lng), re = et(P.to.lat, P.to.lng);
|
|
6630
6715
|
let ee = "", se = !1;
|
|
6631
6716
|
for (let Ve = 0; Ve <= 40; Ve++) {
|
|
6632
|
-
const mt = Ve / 40, ft =
|
|
6633
|
-
$l[2] > -0.05 ? (ee += `${se ? "L" : "M"}${
|
|
6717
|
+
const mt = Ve / 40, ft = Bn(U, re, mt), Pt = 1 + 0.34 * Math.sin(Math.PI * mt), $l = bt(ft, k.current.lng, k.current.lat), ln = z([ft[0] * Pt, ft[1] * Pt, ft[2] * Pt]);
|
|
6718
|
+
$l[2] > -0.05 ? (ee += `${se ? "L" : "M"}${ln.x.toFixed(1)},${ln.y.toFixed(1)}`, se = !0) : se = !1;
|
|
6634
6719
|
}
|
|
6635
|
-
const ue = S.current ? 0.5 : (B.current * Ie + V * 0.27) % 1, _e =
|
|
6636
|
-
return { d: ee, col: P.color ?? i, i: V, flow: { ...Je, vis: Pe[2] > 0 }, active:
|
|
6720
|
+
const ue = S.current ? 0.5 : (B.current * Ie + V * 0.27) % 1, _e = Bn(U, re, ue), je = 1 + 0.34 * Math.sin(Math.PI * ue), Pe = bt(_e, k.current.lng, k.current.lat), Je = z([_e[0] * je, _e[1] * je, _e[2] * je]), nn = Ne != null && (En(P.from, Ne) || En(P.to, Ne));
|
|
6721
|
+
return { d: ee, col: P.color ?? i, i: V, flow: { ...Je, vis: Pe[2] > 0 }, active: nn };
|
|
6637
6722
|
}), Ue = Ne != null, He = d ? [...n].sort((P, V) => (V.value ?? 0) - (P.value ?? 0)).slice(0, 6) : [];
|
|
6638
6723
|
return /* @__PURE__ */ m("div", { ref: x, ...v, className: `select-globe${g ? " " + g : ""}`, children: [
|
|
6639
6724
|
/* @__PURE__ */ m(
|
|
@@ -6785,7 +6870,7 @@ const In = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6785
6870
|
] }, V)) })
|
|
6786
6871
|
] });
|
|
6787
6872
|
});
|
|
6788
|
-
function
|
|
6873
|
+
function To({ children: t, speed: n = 28, className: l, ...c }) {
|
|
6789
6874
|
const s = q(null), a = q(null), r = q(null), i = Ct(s, 0), o = Ct(r, 0), d = i > 0 && o > i + 1, u = q(0), h = q(null), f = q(!1);
|
|
6790
6875
|
le(() => {
|
|
6791
6876
|
var S;
|
|
@@ -6833,7 +6918,7 @@ function Do({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
6833
6918
|
}
|
|
6834
6919
|
);
|
|
6835
6920
|
}
|
|
6836
|
-
function
|
|
6921
|
+
function Wo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
6837
6922
|
var A;
|
|
6838
6923
|
const { ref: a, width: r } = ce(n), i = X(), o = te(), [d, u] = D(null), h = { ...Ee, right: 44 }, f = [...t].sort((F, E) => E.value - F.value), g = f.length, v = f.reduce((F, E) => F + E.value, 0) || 1;
|
|
6839
6924
|
let x = 0;
|
|
@@ -6900,7 +6985,7 @@ function To({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6900
6985
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
6901
6986
|
] });
|
|
6902
6987
|
}
|
|
6903
|
-
const
|
|
6988
|
+
const Oo = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y, className: a, ...r }, i) {
|
|
6904
6989
|
const o = n.reduce((x, N) => x + N.value, 0) || 1, d = l * c, u = n.map((x) => x.value / o * d), h = u.map(Math.floor);
|
|
6905
6990
|
let f = h.reduce((x, N) => x + N, 0);
|
|
6906
6991
|
const g = u.map((x, N) => ({ i: N, frac: x - h[N] })).sort((x, N) => N.frac - x.frac);
|
|
@@ -6919,7 +7004,7 @@ const Wo = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y,
|
|
|
6919
7004
|
] }, N)) })
|
|
6920
7005
|
] });
|
|
6921
7006
|
});
|
|
6922
|
-
function
|
|
7007
|
+
function Ho({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", height: c, format: s = Y, leftColor: a, rightColor: r, centerWidth: i = 84, className: o, ...d }) {
|
|
6923
7008
|
const u = c ?? Math.max(180, t.length * 40 + 36), { ref: h, width: f } = ce(u), g = X(), [v, x] = D(null), N = 8, $ = 26, _ = 8, p = Math.max(1, ...t.flatMap((L) => [L.left, L.right])), b = Math.max(0, (f - i - N * 2) / 2), S = t.length ? (u - $ - _) / t.length : 0, k = Math.min(S * 0.6, 26), M = N + b, w = N + b + i, y = a ?? j(1), C = r ?? j(0);
|
|
6924
7009
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${o ? " " + o : ""}`, ref: h, children: [
|
|
6925
7010
|
f > 0 && /* @__PURE__ */ m("svg", { width: f, height: u, className: "select-chart", onMouseLeave: () => {
|
|
@@ -6973,7 +7058,7 @@ function Oo({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6973
7058
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
6974
7059
|
] });
|
|
6975
7060
|
}
|
|
6976
|
-
function
|
|
7061
|
+
function jo({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6977
7062
|
const { ref: r, width: i } = ce(l), o = X(), [d, u] = D(null), h = { top: 16, right: 78, bottom: 28, left: 28 }, f = n.length, g = t.length, v = Math.max(0, i - h.left - h.right), x = l - h.top - h.bottom, N = t.map(() => new Array(f).fill(0));
|
|
6978
7063
|
for (let p = 0; p < f; p++)
|
|
6979
7064
|
t.map((S, k) => ({ si: k, v: S.data[p] ?? 0 })).sort((S, k) => k.v - S.v).forEach((S, k) => {
|
|
@@ -7021,7 +7106,7 @@ function Ho({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
7021
7106
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
7022
7107
|
] });
|
|
7023
7108
|
}
|
|
7024
|
-
function
|
|
7109
|
+
function Vo({ axes: t, data: n, height: l = 260, format: c = Y, className: s, ...a }) {
|
|
7025
7110
|
const { ref: r, width: i } = ce(l), o = X(), [d, u] = D(null), h = { top: 30, right: 28, bottom: 26, left: 28 }, f = Math.max(0, i - h.left - h.right), g = l - h.top - h.bottom, v = t.length, x = (_) => h.left + (v <= 1 ? f / 2 : f / (v - 1) * _), N = t.map((_) => {
|
|
7026
7111
|
const p = n.map((b) => b.values[_.key] ?? 0);
|
|
7027
7112
|
return { min: Math.min(...p), max: Math.max(...p) };
|
|
@@ -7078,7 +7163,7 @@ function Mt(t) {
|
|
|
7078
7163
|
function Nl(t, n = 0) {
|
|
7079
7164
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Nl(l, n + 1)));
|
|
7080
7165
|
}
|
|
7081
|
-
function
|
|
7166
|
+
function Zo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
7082
7167
|
const { ref: a, width: r } = ce(n), i = X(), [o, d] = D(null), u = Nl(t), h = n / (u + 1), f = [], g = (v, x, N, $, _) => {
|
|
7083
7168
|
if (f.push({ node: v, x0: x, x1: N, depth: $, color: v.color ?? j(_), value: Mt(v) }), v.children && v.children.length) {
|
|
7084
7169
|
const p = v.children.reduce((S, k) => S + Mt(k), 0) || 1;
|
|
@@ -7122,7 +7207,7 @@ function Vo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
7122
7207
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
7123
7208
|
] });
|
|
7124
7209
|
}
|
|
7125
|
-
function
|
|
7210
|
+
function Go({ data: t, height: n = 260, className: l, ...c }) {
|
|
7126
7211
|
const { ref: s, width: a } = ce(n), r = X(), [i, o] = D(null), d = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7127
7212
|
let u = null;
|
|
7128
7213
|
if (a > 0) {
|
|
@@ -7192,7 +7277,7 @@ function Zo({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7192
7277
|
/* @__PURE__ */ e(K, { tip: r.tip })
|
|
7193
7278
|
] });
|
|
7194
7279
|
}
|
|
7195
|
-
const
|
|
7280
|
+
const Uo = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7196
7281
|
const r = Math.min(3, n.length), i = l / 2, o = l / 2, d = Math.max(1, ...n.slice(0, r).map((g) => g.size)), u = l * 0.26, h = (g) => u * 0.45 + u * 0.55 * Math.sqrt(g.size / d), f = r <= 2 ? [
|
|
7197
7282
|
[i - u * 0.42, o],
|
|
7198
7283
|
[i + u * 0.42, o]
|
|
@@ -7240,7 +7325,7 @@ const Go = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7240
7325
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: g.size.toLocaleString("pt-BR") })
|
|
7241
7326
|
] }, v)) })
|
|
7242
7327
|
] });
|
|
7243
|
-
}),
|
|
7328
|
+
}), qo = R(function({ data: n, size: l = 260, format: c = Y, className: s, ...a }, r) {
|
|
7244
7329
|
const i = X(), [o, d] = D(null), u = Math.max(1, ...n.map((y) => y.value)), h = n.map((y, C) => ({ d: y, i: C, r: 8 + Math.sqrt(y.value / u) * 40 })).sort((y, C) => C.r - y.r), f = [];
|
|
7245
7330
|
for (const y of h) {
|
|
7246
7331
|
if (f.length === 0) {
|
|
@@ -7296,7 +7381,7 @@ const Go = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7296
7381
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
7297
7382
|
] });
|
|
7298
7383
|
});
|
|
7299
|
-
function
|
|
7384
|
+
function Yo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s, ...a }) {
|
|
7300
7385
|
const { ref: r, width: i } = ce(l), o = X(), [d, u] = D(null), h = xe(() => {
|
|
7301
7386
|
const v = i || l, x = l, N = t.length, $ = /* @__PURE__ */ new Map();
|
|
7302
7387
|
if (!N) return $;
|
|
@@ -7381,96 +7466,10 @@ function qo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s,
|
|
|
7381
7466
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
7382
7467
|
] });
|
|
7383
7468
|
}
|
|
7384
|
-
|
|
7385
|
-
const n = Et({ selector: ".select-combobox__option", y: 6, duration: 0.3, stagger: 0.03 });
|
|
7386
|
-
return /* @__PURE__ */ e("div", { className: "select-combobox__list", ref: n, children: t });
|
|
7387
|
-
}
|
|
7388
|
-
const Yo = R(function({ label: n, value: l, onChange: c, options: s, placeholder: a = "Selecionar…", searchPlaceholder: r = "Buscar…", labelAction: i, hint: o, error: d, emptyText: u = "Nenhum resultado", disabled: h, required: f, size: g = "md", searchable: v = !0, className: x, ...N }, $) {
|
|
7389
|
-
const _ = te(), [p, b] = D(!1), [S, k] = D(""), M = s.find((B) => B.value === l), w = xe(() => {
|
|
7390
|
-
const B = S.trim().toLowerCase();
|
|
7391
|
-
return !v || !B ? s : s.filter((A) => {
|
|
7392
|
-
var F;
|
|
7393
|
-
return A.label.toLowerCase().includes(B) || ((F = A.secondary) == null ? void 0 : F.toLowerCase().includes(B));
|
|
7394
|
-
});
|
|
7395
|
-
}, [s, S, v]), y = () => {
|
|
7396
|
-
b(!1), k("");
|
|
7397
|
-
}, C = (B) => {
|
|
7398
|
-
c(B), y();
|
|
7399
|
-
}, L = d ? `${_}-err` : o ? `${_}-hint` : void 0;
|
|
7400
|
-
return /* @__PURE__ */ m("div", { ref: $, ...N, className: `select-field${g === "sm" ? " select-field--sm" : ""}${x ? " " + x : ""}`, children: [
|
|
7401
|
-
n && /* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
7402
|
-
/* @__PURE__ */ e("label", { className: "select-field__label", htmlFor: _, children: n }),
|
|
7403
|
-
i
|
|
7404
|
-
] }),
|
|
7405
|
-
/* @__PURE__ */ e("div", { className: "select-combobox", children: /* @__PURE__ */ e(
|
|
7406
|
-
We,
|
|
7407
|
-
{
|
|
7408
|
-
active: p,
|
|
7409
|
-
onClose: y,
|
|
7410
|
-
placement: "bottom-start",
|
|
7411
|
-
role: "listbox",
|
|
7412
|
-
matchWidth: !0,
|
|
7413
|
-
activator: /* @__PURE__ */ m(
|
|
7414
|
-
"button",
|
|
7415
|
-
{
|
|
7416
|
-
id: _,
|
|
7417
|
-
type: "button",
|
|
7418
|
-
className: `select-combobox__trigger${d ? " select-input--error" : ""}${p ? " is-open" : ""}`,
|
|
7419
|
-
onClick: () => p ? y() : b(!0),
|
|
7420
|
-
disabled: h,
|
|
7421
|
-
"aria-haspopup": "listbox",
|
|
7422
|
-
"aria-expanded": p,
|
|
7423
|
-
"aria-required": f || void 0,
|
|
7424
|
-
"aria-describedby": L,
|
|
7425
|
-
children: [
|
|
7426
|
-
/* @__PURE__ */ e("span", { className: `select-combobox__value${M ? "" : " is-placeholder"}`, children: M ? M.label : a }),
|
|
7427
|
-
/* @__PURE__ */ e("span", { className: "select-combobox__caret", "aria-hidden": "true", children: /* @__PURE__ */ e(be, {}) })
|
|
7428
|
-
]
|
|
7429
|
-
}
|
|
7430
|
-
),
|
|
7431
|
-
children: /* @__PURE__ */ m("div", { className: "select-combobox__panel", children: [
|
|
7432
|
-
v && /* @__PURE__ */ e("div", { className: "select-combobox__search", children: /* @__PURE__ */ e(
|
|
7433
|
-
"input",
|
|
7434
|
-
{
|
|
7435
|
-
className: "select-combobox__searchinput",
|
|
7436
|
-
type: "text",
|
|
7437
|
-
value: S,
|
|
7438
|
-
onChange: (B) => k(B.target.value),
|
|
7439
|
-
placeholder: r,
|
|
7440
|
-
autoFocus: !0
|
|
7441
|
-
}
|
|
7442
|
-
) }),
|
|
7443
|
-
/* @__PURE__ */ e(Ts, { children: w.length === 0 ? /* @__PURE__ */ e("div", { className: "select-combobox__empty", children: u }) : w.map((B) => {
|
|
7444
|
-
const A = B.value === l;
|
|
7445
|
-
return /* @__PURE__ */ m(
|
|
7446
|
-
"button",
|
|
7447
|
-
{
|
|
7448
|
-
type: "button",
|
|
7449
|
-
role: "option",
|
|
7450
|
-
"aria-selected": A,
|
|
7451
|
-
disabled: B.disabled,
|
|
7452
|
-
className: `select-combobox__option${A ? " is-selected" : ""}`,
|
|
7453
|
-
onClick: () => C(B.value),
|
|
7454
|
-
children: [
|
|
7455
|
-
/* @__PURE__ */ m("span", { className: "select-combobox__optiontext", children: [
|
|
7456
|
-
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children: B.label }),
|
|
7457
|
-
B.secondary && /* @__PURE__ */ e("span", { className: "select-combobox__optionsecondary", children: B.secondary })
|
|
7458
|
-
] }),
|
|
7459
|
-
A && /* @__PURE__ */ e("span", { className: "select-combobox__check", "aria-hidden": "true", children: /* @__PURE__ */ e(Ae, {}) })
|
|
7460
|
-
]
|
|
7461
|
-
},
|
|
7462
|
-
B.value
|
|
7463
|
-
);
|
|
7464
|
-
}) })
|
|
7465
|
-
] })
|
|
7466
|
-
}
|
|
7467
|
-
) }),
|
|
7468
|
-
d ? /* @__PURE__ */ e("p", { id: `${_}-err`, className: "select-field__error", children: d }) : o ? /* @__PURE__ */ e("p", { id: `${_}-hint`, className: "select-field__hint", children: o }) : null
|
|
7469
|
-
] });
|
|
7470
|
-
}), Tt = [
|
|
7469
|
+
const Tt = [
|
|
7471
7470
|
{ value: "light", label: "Claro", icon: /* @__PURE__ */ e(Vl, {}) },
|
|
7472
7471
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(Zl, {}) },
|
|
7473
|
-
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(
|
|
7472
|
+
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(On, {}) }
|
|
7474
7473
|
];
|
|
7475
7474
|
function zo(t) {
|
|
7476
7475
|
var n;
|
|
@@ -7485,12 +7484,12 @@ function Xo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7485
7484
|
};
|
|
7486
7485
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
7487
7486
|
}, [s]), /* @__PURE__ */ m("div", { ...c, className: `select-themeswitcher${l ? " " + l : ""}`, ref: r, children: [
|
|
7488
|
-
/* @__PURE__ */ e(
|
|
7487
|
+
/* @__PURE__ */ e(ss, { active: s, onClick: () => a((o) => !o), children: /* @__PURE__ */ m("span", { className: "select-themeswitcher__current", children: [
|
|
7489
7488
|
i.icon,
|
|
7490
7489
|
i.label
|
|
7491
7490
|
] }) }),
|
|
7492
|
-
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(
|
|
7493
|
-
|
|
7491
|
+
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(ls, { children: Tt.map((o) => /* @__PURE__ */ e(
|
|
7492
|
+
cs,
|
|
7494
7493
|
{
|
|
7495
7494
|
icon: o.icon,
|
|
7496
7495
|
active: o.value === t,
|
|
@@ -7504,17 +7503,17 @@ function Xo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7504
7503
|
)) }) })
|
|
7505
7504
|
] });
|
|
7506
7505
|
}
|
|
7507
|
-
const Ml =
|
|
7506
|
+
const Ml = qt(!1);
|
|
7508
7507
|
function Ko({
|
|
7509
7508
|
children: t,
|
|
7510
7509
|
stacked: n = !1,
|
|
7511
7510
|
loading: l = !1
|
|
7512
7511
|
}) {
|
|
7513
|
-
const c =
|
|
7512
|
+
const c = Bt({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
7514
7513
|
return /* @__PURE__ */ e(Ml.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
7515
7514
|
}
|
|
7516
7515
|
const Jo = R(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: r, ...i }, o) {
|
|
7517
|
-
const d =
|
|
7516
|
+
const d = Ut(Ml), u = a ?? d;
|
|
7518
7517
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-detail select-detail--${s}${r ? " " + r : ""}`, children: [
|
|
7519
7518
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
7520
7519
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: u ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
@@ -7581,7 +7580,7 @@ function nr({
|
|
|
7581
7580
|
] }), i = `select-listrow${s ? " select-listrow--muted" : ""}`;
|
|
7582
7581
|
return a ? /* @__PURE__ */ e("button", { type: "button", className: `${i} select-listrow--clickable`, onClick: a, children: r }) : /* @__PURE__ */ e("div", { className: i, children: r });
|
|
7583
7582
|
}
|
|
7584
|
-
const
|
|
7583
|
+
const In = R(function({ src: n, alt: l = "", size: c = 40, className: s, ...a }, r) {
|
|
7585
7584
|
const [i, o] = D(!1);
|
|
7586
7585
|
return le(() => o(!1), [n]), /* @__PURE__ */ e("span", { ref: r, ...a, className: `select-thumb${s ? " " + s : ""}`, style: { width: c, height: c }, children: n && !i ? /* @__PURE__ */ e(
|
|
7587
7586
|
"img",
|
|
@@ -7594,7 +7593,7 @@ const Pn = R(function({ src: n, alt: l = "", size: c = 40, className: s, ...a },
|
|
|
7594
7593
|
}
|
|
7595
7594
|
) : /* @__PURE__ */ e("span", { className: "select-thumb__ph", "aria-hidden": "true", children: /* @__PURE__ */ e(jl, {}) }) });
|
|
7596
7595
|
});
|
|
7597
|
-
function
|
|
7596
|
+
function Os({
|
|
7598
7597
|
open: t,
|
|
7599
7598
|
onClose: n,
|
|
7600
7599
|
src: l,
|
|
@@ -7620,11 +7619,11 @@ function lr({
|
|
|
7620
7619
|
},
|
|
7621
7620
|
"aria-label": "Ampliar imagem",
|
|
7622
7621
|
style: { all: "unset", cursor: "zoom-in", display: "inline-flex" },
|
|
7623
|
-
children: /* @__PURE__ */ e(
|
|
7622
|
+
children: /* @__PURE__ */ e(In, { src: t, size: l, alt: n })
|
|
7624
7623
|
}
|
|
7625
7624
|
),
|
|
7626
|
-
s && /* @__PURE__ */ e(
|
|
7627
|
-
] }) : /* @__PURE__ */ e(
|
|
7625
|
+
s && /* @__PURE__ */ e(Os, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
7626
|
+
] }) : /* @__PURE__ */ e(In, { size: l, alt: n });
|
|
7628
7627
|
}
|
|
7629
7628
|
const cr = R(function({ media: n, title: l, secondary: c, className: s, ...a }, r) {
|
|
7630
7629
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
@@ -7659,7 +7658,7 @@ function sr() {
|
|
|
7659
7658
|
}
|
|
7660
7659
|
);
|
|
7661
7660
|
}
|
|
7662
|
-
function
|
|
7661
|
+
function Hs(t) {
|
|
7663
7662
|
return Array.isArray(t) ? t.filter((n) => n != null && typeof n == "object").map((n) => ({
|
|
7664
7663
|
name: String(n.name ?? n.key ?? ""),
|
|
7665
7664
|
value: n.value == null ? "" : String(n.value)
|
|
@@ -7669,11 +7668,11 @@ function Os(t) {
|
|
|
7669
7668
|
})) : [];
|
|
7670
7669
|
}
|
|
7671
7670
|
const ar = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valuePlaceholder: s = "Valor", keyOptions: a, addLabel: r = "Adicionar", max: i, helpText: o = "Linhas vazias serão ignoradas.", className: d, ...u }, h) {
|
|
7672
|
-
const f =
|
|
7671
|
+
const f = Hs(n), g = ($, _) => l(f.map((p, b) => b === $ ? { ...p, ..._ } : p)), v = ($) => l(f.filter((_, p) => p !== $)), x = () => l([...f, { name: "", value: "" }]), N = i == null || f.length < i;
|
|
7673
7672
|
return /* @__PURE__ */ m("div", { ref: h, ...u, className: `select-kv${d ? " " + d : ""}`, children: [
|
|
7674
7673
|
f.map(($, _) => /* @__PURE__ */ m("div", { className: "select-kv__row", children: [
|
|
7675
7674
|
/* @__PURE__ */ e("div", { className: "select-kv__field", children: a ? /* @__PURE__ */ e(
|
|
7676
|
-
|
|
7675
|
+
Jn,
|
|
7677
7676
|
{
|
|
7678
7677
|
size: "sm",
|
|
7679
7678
|
options: [{ label: c, value: "" }, ...a],
|
|
@@ -7700,15 +7699,15 @@ const ar = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7700
7699
|
autoComplete: "off"
|
|
7701
7700
|
}
|
|
7702
7701
|
) }),
|
|
7703
|
-
/* @__PURE__ */ e("div", { className: "select-kv__remove", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(
|
|
7702
|
+
/* @__PURE__ */ e("div", { className: "select-kv__remove", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Vn, {}), label: "Remover", onClick: () => v(_) }) })
|
|
7704
7703
|
] }, _)),
|
|
7705
|
-
N && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ m(
|
|
7704
|
+
N && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ m(Vc, { onClick: x, children: [
|
|
7706
7705
|
"+ ",
|
|
7707
7706
|
r
|
|
7708
7707
|
] }) }),
|
|
7709
7708
|
o && /* @__PURE__ */ e("p", { className: "select-kv__hint", children: o })
|
|
7710
7709
|
] });
|
|
7711
|
-
}),
|
|
7710
|
+
}), Pn = (t) => String(t).padStart(2, "0"), js = {
|
|
7712
7711
|
"en-US": {
|
|
7713
7712
|
weekdays: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7714
7713
|
months: [
|
|
@@ -7751,12 +7750,12 @@ const ar = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7751
7750
|
to: "Até",
|
|
7752
7751
|
cancel: "Cancelar",
|
|
7753
7752
|
apply: "Aplicar",
|
|
7754
|
-
formatDate: (t) => `${
|
|
7753
|
+
formatDate: (t) => `${Pn(t.getDate())} / ${Pn(t.getMonth() + 1)} / ${t.getFullYear()}`
|
|
7755
7754
|
}
|
|
7756
|
-
}, Re = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), xt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), At = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n),
|
|
7755
|
+
}, Re = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), xt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), At = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), Rn = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), yt = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), Nt = (t) => {
|
|
7757
7756
|
const n = /* @__PURE__ */ new Date();
|
|
7758
7757
|
return { from: new Date(n.getTime() - t * 6e4), to: n };
|
|
7759
|
-
},
|
|
7758
|
+
}, Vs = [
|
|
7760
7759
|
{ id: "15m", label: "Last 15 minutes", range: () => Nt(15) },
|
|
7761
7760
|
{ id: "1h", label: "Last 1 hour", range: () => Nt(60) },
|
|
7762
7761
|
{ id: "3h", label: "Last 3 hours", range: () => Nt(180) },
|
|
@@ -7767,12 +7766,12 @@ const ar = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7767
7766
|
], qe = (t) => {
|
|
7768
7767
|
const n = Re(/* @__PURE__ */ new Date());
|
|
7769
7768
|
return { from: At(n, -t), to: n };
|
|
7770
|
-
},
|
|
7769
|
+
}, Zs = (t) => {
|
|
7771
7770
|
const n = At(Re(/* @__PURE__ */ new Date()), -1);
|
|
7772
7771
|
return { from: n, to: n };
|
|
7773
|
-
},
|
|
7772
|
+
}, Gs = [
|
|
7774
7773
|
{ id: "today", label: "Hoje", range: () => qe(0) },
|
|
7775
|
-
{ id: "yesterday", label: "Ontem", range: () =>
|
|
7774
|
+
{ id: "yesterday", label: "Ontem", range: () => Zs() },
|
|
7776
7775
|
{ id: "7d", label: "Últimos 7 dias", range: () => qe(6) },
|
|
7777
7776
|
{ id: "10d", label: "Últimos 10 dias", range: () => qe(9) },
|
|
7778
7777
|
{ id: "15d", label: "Últimos 15 dias", range: () => qe(14) },
|
|
@@ -7780,14 +7779,14 @@ const ar = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7780
7779
|
{ id: "30d", label: "Últimos 30 dias", range: () => qe(29) },
|
|
7781
7780
|
{ id: "90d", label: "Últimos 90 dias", range: () => qe(89) }
|
|
7782
7781
|
];
|
|
7783
|
-
function
|
|
7782
|
+
function Us(t) {
|
|
7784
7783
|
if (!t) return "—";
|
|
7785
7784
|
let n = t.getHours();
|
|
7786
7785
|
const l = n < 12 ? "AM" : "PM";
|
|
7787
7786
|
return n = n % 12 || 12, `${n} : ${String(t.getMinutes()).padStart(2, "0")} ${l}`;
|
|
7788
7787
|
}
|
|
7789
|
-
const
|
|
7790
|
-
const g =
|
|
7788
|
+
const qs = R(function({ value: n, presets: l = Vs, onApply: c, onCancel: s, accentVar: a, locale: r = "en-US", showTime: i = !0, maxDate: o, embedded: d = !1, className: u, ...h }, f) {
|
|
7789
|
+
const g = js[r], v = Re(/* @__PURE__ */ new Date()), x = o ? Re(o) : null, [N, $] = D(n ?? { from: v, to: v }), [_, p] = D(xt((n == null ? void 0 : n.from) ?? /* @__PURE__ */ new Date())), [b, S] = D(null), k = At(xt(_), -xt(_).getDay()), M = Array.from({ length: 42 }, (A, F) => At(k, F)), w = (A) => x ? Re(A) > x : !1, y = (A) => A ? g.formatDate(A) : /* @__PURE__ */ e("span", { className: "select-datepicker__placeholder", children: "— / — / ——" }), C = (A) => {
|
|
7791
7790
|
w(A) || (S(null), $((F) => !F.from || F.from && F.to ? { from: A, to: null } : A < Re(F.from) ? { from: A, to: null } : { from: F.from, to: A }));
|
|
7792
7791
|
}, L = (A) => {
|
|
7793
7792
|
if (A.disabled || !A.range) return;
|
|
@@ -7818,7 +7817,7 @@ const Us = R(function({ value: n, presets: l = js, onApply: c, onCancel: s, acce
|
|
|
7818
7817
|
/* @__PURE__ */ e("div", { className: "select-datepicker__fields", children: ["from", "to"].map((A) => /* @__PURE__ */ m("div", { className: "select-datepicker__fieldrow", children: [
|
|
7819
7818
|
/* @__PURE__ */ e("span", { className: "select-datepicker__fieldlabel", children: A === "from" ? g.from : g.to }),
|
|
7820
7819
|
/* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--date", children: y(N[A]) }),
|
|
7821
|
-
i && /* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--time", children:
|
|
7820
|
+
i && /* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--time", children: Us(N[A]) })
|
|
7822
7821
|
] }, A)) }),
|
|
7823
7822
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
7824
7823
|
/* @__PURE__ */ e(
|
|
@@ -7827,8 +7826,8 @@ const Us = R(function({ value: n, presets: l = js, onApply: c, onCancel: s, acce
|
|
|
7827
7826
|
type: "button",
|
|
7828
7827
|
className: "select-datepicker__nav",
|
|
7829
7828
|
"aria-label": r === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
7830
|
-
onClick: () => p((A) =>
|
|
7831
|
-
children: /* @__PURE__ */ e(
|
|
7829
|
+
onClick: () => p((A) => Rn(A, -1)),
|
|
7830
|
+
children: /* @__PURE__ */ e(Yt, {})
|
|
7832
7831
|
}
|
|
7833
7832
|
),
|
|
7834
7833
|
/* @__PURE__ */ m("span", { className: "select-datepicker__monthlabel", children: [
|
|
@@ -7842,7 +7841,7 @@ const Us = R(function({ value: n, presets: l = js, onApply: c, onCancel: s, acce
|
|
|
7842
7841
|
type: "button",
|
|
7843
7842
|
className: "select-datepicker__nav",
|
|
7844
7843
|
"aria-label": r === "pt-BR" ? "Próximo mês" : "Next month",
|
|
7845
|
-
onClick: () => p((A) =>
|
|
7844
|
+
onClick: () => p((A) => Rn(A, 1)),
|
|
7846
7845
|
children: /* @__PURE__ */ e(dt, {})
|
|
7847
7846
|
}
|
|
7848
7847
|
)
|
|
@@ -7861,7 +7860,7 @@ const Us = R(function({ value: n, presets: l = js, onApply: c, onCancel: s, acce
|
|
|
7861
7860
|
] })
|
|
7862
7861
|
] }) });
|
|
7863
7862
|
}), Wt = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), Ot = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), Ht = (t) => `${String(t.getDate()).padStart(2, "0")}/${String(t.getMonth() + 1).padStart(2, "0")}/${t.getFullYear()}`;
|
|
7864
|
-
function
|
|
7863
|
+
function Ys(t, n) {
|
|
7865
7864
|
var l;
|
|
7866
7865
|
for (const c of n) {
|
|
7867
7866
|
const s = (l = c.range) == null ? void 0 : l.call(c);
|
|
@@ -7872,7 +7871,7 @@ function qs(t, n) {
|
|
|
7872
7871
|
function or({
|
|
7873
7872
|
value: t,
|
|
7874
7873
|
onChange: n,
|
|
7875
|
-
presets: l =
|
|
7874
|
+
presets: l = Gs,
|
|
7876
7875
|
maxDate: c,
|
|
7877
7876
|
placement: s = "bottom-end",
|
|
7878
7877
|
size: a = "md",
|
|
@@ -7894,14 +7893,14 @@ function or({
|
|
|
7894
7893
|
size: a,
|
|
7895
7894
|
inline: !i,
|
|
7896
7895
|
disabled: r,
|
|
7897
|
-
icon: /* @__PURE__ */ e(
|
|
7896
|
+
icon: /* @__PURE__ */ e(Zn, {}),
|
|
7898
7897
|
trailingIcon: /* @__PURE__ */ e(be, {}),
|
|
7899
7898
|
onClick: () => d((h) => !h),
|
|
7900
|
-
children:
|
|
7899
|
+
children: Ys(t, l)
|
|
7901
7900
|
}
|
|
7902
7901
|
),
|
|
7903
7902
|
children: /* @__PURE__ */ e(
|
|
7904
|
-
|
|
7903
|
+
qs,
|
|
7905
7904
|
{
|
|
7906
7905
|
embedded: !0,
|
|
7907
7906
|
locale: "pt-BR",
|
|
@@ -7918,7 +7917,7 @@ function or({
|
|
|
7918
7917
|
}
|
|
7919
7918
|
);
|
|
7920
7919
|
}
|
|
7921
|
-
function
|
|
7920
|
+
function zs({ size: t }) {
|
|
7922
7921
|
return /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
7923
7922
|
"path",
|
|
7924
7923
|
{
|
|
@@ -7930,7 +7929,7 @@ function Ys({ size: t }) {
|
|
|
7930
7929
|
const rr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label: a, disabled: r = !1, className: i, ...o }, d) {
|
|
7931
7930
|
const u = !!c && !r, [h, f] = D(null), g = h ?? n;
|
|
7932
7931
|
return /* @__PURE__ */ e("div", { ref: d, ...o, className: `select-rating${u ? " select-rating--interactive" : ""}${i ? " " + i : ""}`, role: u ? "slider" : "img", "aria-label": a ?? `Avaliação ${n} de ${l}`, "aria-valuenow": u ? n : void 0, "aria-valuemin": u ? 0 : void 0, "aria-valuemax": u ? l : void 0, onMouseLeave: () => u && f(null), children: Array.from({ length: l }, (v, x) => {
|
|
7933
|
-
const N = x < g, $ = /* @__PURE__ */ e("span", { className: `select-rating__star${N ? " is-filled" : ""}`, children: /* @__PURE__ */ e(
|
|
7932
|
+
const N = x < g, $ = /* @__PURE__ */ e("span", { className: `select-rating__star${N ? " is-filled" : ""}`, children: /* @__PURE__ */ e(zs, { size: s }) });
|
|
7934
7933
|
return u ? /* @__PURE__ */ e(
|
|
7935
7934
|
"button",
|
|
7936
7935
|
{
|
|
@@ -8036,19 +8035,19 @@ function dr({
|
|
|
8036
8035
|
moveUp: () => N(p, -1),
|
|
8037
8036
|
moveDown: () => N(p, 1)
|
|
8038
8037
|
});
|
|
8039
|
-
return /* @__PURE__ */ m(
|
|
8038
|
+
return /* @__PURE__ */ m(jt, { gap: "300", children: [
|
|
8040
8039
|
t.length === 0 && u != null && /* @__PURE__ */ e("div", { children: u }),
|
|
8041
8040
|
t.map((_, p) => {
|
|
8042
8041
|
const b = $(_, p);
|
|
8043
|
-
return d === "bare" ? /* @__PURE__ */ e("div", { children: l(_, b) }, p) : /* @__PURE__ */ e(
|
|
8042
|
+
return d === "bare" ? /* @__PURE__ */ e("div", { children: l(_, b) }, p) : /* @__PURE__ */ e(Mc, { background: "surface", border: !0, borderRadius: "base", padding: "300", children: /* @__PURE__ */ m(jt, { gap: "200", children: [
|
|
8044
8043
|
/* @__PURE__ */ m(st, { align: "space-between", blockAlign: "center", gap: "200", children: [
|
|
8045
8044
|
/* @__PURE__ */ e(Xe, { as: "span", variant: "bodySm", fontWeight: "medium", tone: "subdued", children: a ? a(p, _) : `#${p + 1}` }),
|
|
8046
8045
|
/* @__PURE__ */ m(st, { gap: "100", blockAlign: "center", wrap: !1, children: [
|
|
8047
8046
|
o && /* @__PURE__ */ m(ae, { children: [
|
|
8048
|
-
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(
|
|
8047
|
+
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Gn, {}), label: "Mover para cima", disabled: b.isFirst, onClick: b.moveUp }),
|
|
8049
8048
|
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(be, {}), label: "Mover para baixo", disabled: b.isLast, onClick: b.moveDown })
|
|
8050
8049
|
] }),
|
|
8051
|
-
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(
|
|
8050
|
+
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Vn, {}), label: "Remover", disabled: !g, onClick: b.remove })
|
|
8052
8051
|
] })
|
|
8053
8052
|
] }),
|
|
8054
8053
|
l(_, b)
|
|
@@ -8075,14 +8074,14 @@ function hr({
|
|
|
8075
8074
|
}) {
|
|
8076
8075
|
const h = Sl();
|
|
8077
8076
|
return /* @__PURE__ */ e(
|
|
8078
|
-
|
|
8077
|
+
qc,
|
|
8079
8078
|
{
|
|
8080
8079
|
title: t,
|
|
8081
8080
|
subtitle: n,
|
|
8082
8081
|
backAction: { content: "Voltar", onAction: () => h(l || -1) },
|
|
8083
8082
|
primaryAction: { content: a, onAction: c, loading: s, disabled: r },
|
|
8084
8083
|
secondaryActions: i ? [{ content: "Cancelar", onAction: () => h(i), disabled: s }] : void 0,
|
|
8085
|
-
children: /* @__PURE__ */ m(
|
|
8084
|
+
children: /* @__PURE__ */ m(jt, { gap: "400", children: [
|
|
8086
8085
|
o != null && /* @__PURE__ */ e(ht, { tone: "critical", children: o }),
|
|
8087
8086
|
d != null ? /* @__PURE__ */ m("div", { className: "select-builder-split", children: [
|
|
8088
8087
|
/* @__PURE__ */ e("div", { className: "select-builder-split__form", children: u }),
|
|
@@ -8095,7 +8094,7 @@ function hr({
|
|
|
8095
8094
|
const ur = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hint: a, className: r, ...i }, o) {
|
|
8096
8095
|
return /* @__PURE__ */ m("div", { ref: o, ...i, className: `select-switchfield${s ? " is-disabled" : ""}${r ? " " + r : ""}`, children: [
|
|
8097
8096
|
/* @__PURE__ */ m("div", { className: "select-switchfield__row", children: [
|
|
8098
|
-
/* @__PURE__ */ e(
|
|
8097
|
+
/* @__PURE__ */ e(Qt, { checked: l, onChange: c, disabled: s, label: n }),
|
|
8099
8098
|
/* @__PURE__ */ e(
|
|
8100
8099
|
"span",
|
|
8101
8100
|
{
|
|
@@ -8109,7 +8108,7 @@ const ur = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8109
8108
|
] }),
|
|
8110
8109
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8111
8110
|
] });
|
|
8112
|
-
}),
|
|
8111
|
+
}), Xs = (t) => /^#[0-9a-fA-F]{6}$/.test(t);
|
|
8113
8112
|
function pr({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error: a }) {
|
|
8114
8113
|
return /* @__PURE__ */ e(
|
|
8115
8114
|
Ze,
|
|
@@ -8132,7 +8131,7 @@ function pr({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8132
8131
|
{
|
|
8133
8132
|
type: "color",
|
|
8134
8133
|
className: "select-color-swatch",
|
|
8135
|
-
value:
|
|
8134
|
+
value: Xs(n) ? n : "#000000",
|
|
8136
8135
|
onChange: (r) => l(r.target.value),
|
|
8137
8136
|
disabled: c,
|
|
8138
8137
|
"aria-label": t ? `${t} — escolher cor` : "Escolher cor"
|
|
@@ -8141,7 +8140,7 @@ function pr({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8141
8140
|
}
|
|
8142
8141
|
);
|
|
8143
8142
|
}
|
|
8144
|
-
function
|
|
8143
|
+
function Ks(t) {
|
|
8145
8144
|
return new Promise((n, l) => {
|
|
8146
8145
|
const c = new FileReader();
|
|
8147
8146
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
@@ -8155,7 +8154,7 @@ const mr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8155
8154
|
return;
|
|
8156
8155
|
}
|
|
8157
8156
|
if (x(null), !o) {
|
|
8158
|
-
c(await
|
|
8157
|
+
c(await Ks(p)), g([]);
|
|
8159
8158
|
return;
|
|
8160
8159
|
}
|
|
8161
8160
|
g([p]);
|
|
@@ -8222,262 +8221,262 @@ const mr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8222
8221
|
}) });
|
|
8223
8222
|
});
|
|
8224
8223
|
export {
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8224
|
+
ca as AUTH_FX_VARIANTS,
|
|
8225
|
+
Na as AppleIcon,
|
|
8226
|
+
Oa as AppsIcon,
|
|
8227
|
+
Dn as ArrowLeftIcon,
|
|
8228
|
+
$a as ArrowRightIcon,
|
|
8229
|
+
wa as AtIcon,
|
|
8230
|
+
ba as AuthAppIcon,
|
|
8231
|
+
_a as BellIcon,
|
|
8232
|
+
ua as BookmarkIcon,
|
|
8233
|
+
Ca as BuildingIcon,
|
|
8234
|
+
Zn as CalendarIcon,
|
|
8235
|
+
Ta as ChartLineIcon,
|
|
8237
8236
|
ql as CheckCircleIcon,
|
|
8238
8237
|
Ae as CheckIcon,
|
|
8239
8238
|
be as ChevronDownIcon,
|
|
8240
|
-
|
|
8239
|
+
Yt as ChevronLeftIcon,
|
|
8241
8240
|
dt as ChevronRightIcon,
|
|
8242
|
-
|
|
8241
|
+
Gn as ChevronUpIcon,
|
|
8243
8242
|
zl as ClipboardIcon,
|
|
8244
|
-
|
|
8243
|
+
ha as ClockIcon,
|
|
8245
8244
|
Ke as CloseIcon,
|
|
8246
|
-
|
|
8247
|
-
|
|
8245
|
+
Xt as CopyIcon,
|
|
8246
|
+
Ba as CreditCardIcon,
|
|
8248
8247
|
jl as CubeIcon,
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8248
|
+
Da as DiscountIcon,
|
|
8249
|
+
da as DotsHorizontalIcon,
|
|
8250
|
+
Ea as EditIcon,
|
|
8251
|
+
Ra as ExportIcon,
|
|
8252
|
+
Tn as ExternalLinkIcon,
|
|
8253
|
+
Hn as EyeIcon,
|
|
8254
|
+
jn as EyeOffIcon,
|
|
8255
|
+
ya as FacebookIcon,
|
|
8256
|
+
ia as FilterIcon,
|
|
8257
|
+
ra as GithubIcon,
|
|
8259
8258
|
Wl as GlobeIcon,
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8259
|
+
oa as GoogleIcon,
|
|
8260
|
+
Aa as HomeIcon,
|
|
8261
|
+
Kt as InfoIcon,
|
|
8262
|
+
La as KeyIcon,
|
|
8263
|
+
Pa as LockIcon,
|
|
8264
|
+
xa as MailIcon,
|
|
8265
|
+
ja as MenuIcon,
|
|
8266
|
+
Ha as MinusCircleIcon,
|
|
8268
8267
|
Gl as MobileIcon,
|
|
8269
|
-
|
|
8268
|
+
On as MonitorIcon,
|
|
8270
8269
|
Zl as MoonIcon,
|
|
8271
8270
|
Xl as NoteIcon,
|
|
8272
|
-
|
|
8273
|
-
|
|
8271
|
+
Ma as PasskeyIcon,
|
|
8272
|
+
ga as PhoneIcon,
|
|
8274
8273
|
nt as PlusIcon,
|
|
8275
8274
|
Ul as RefreshIcon,
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8275
|
+
va as RocketIcon,
|
|
8276
|
+
H1 as SELECT_COL_DATETIME,
|
|
8277
|
+
ll as SELECT_COUNTRIES,
|
|
8278
|
+
Gs as SELECT_DAILY_PRESETS,
|
|
8279
|
+
Vs as SELECT_DATE_PRESETS,
|
|
8281
8280
|
ze as SELECT_SPACE,
|
|
8282
|
-
|
|
8283
|
-
|
|
8281
|
+
xc as SELECT_TRANSACTION_STATUS,
|
|
8282
|
+
zt as SearchIcon,
|
|
8284
8283
|
fr as SelectAccordion,
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8284
|
+
I1 as SelectActionCard,
|
|
8285
|
+
sl as SelectActionList,
|
|
8286
|
+
s1 as SelectActionMenu,
|
|
8288
8287
|
ec as SelectAddButton,
|
|
8289
8288
|
ht as SelectAlert,
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8289
|
+
P1 as SelectAppTile,
|
|
8290
|
+
sa as SelectAuthFx,
|
|
8291
|
+
Zc as SelectAvatar,
|
|
8292
|
+
f1 as SelectBackLink,
|
|
8293
|
+
cl as SelectBadge,
|
|
8294
|
+
J1 as SelectBalanceCard,
|
|
8295
|
+
Ka as SelectBankAccountField,
|
|
8296
|
+
lo as SelectBarChart,
|
|
8297
|
+
Mc as SelectBox,
|
|
8298
|
+
Mo as SelectBoxPlot,
|
|
8300
8299
|
hr as SelectBuilderLayout,
|
|
8301
|
-
|
|
8302
|
-
|
|
8300
|
+
vo as SelectBullet,
|
|
8301
|
+
jo as SelectBump,
|
|
8303
8302
|
ve as SelectButton,
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8303
|
+
ko as SelectCalendarHeatmap,
|
|
8304
|
+
No as SelectCandlestick,
|
|
8305
|
+
aa as SelectCard,
|
|
8306
|
+
to as SelectChartCard,
|
|
8307
|
+
Za as SelectCheckbox,
|
|
8308
|
+
Io as SelectChord,
|
|
8309
|
+
qo as SelectCirclePack,
|
|
8310
|
+
E1 as SelectCollapsible,
|
|
8312
8311
|
pr as SelectColorField,
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8312
|
+
ro as SelectColumnChart,
|
|
8313
|
+
ao as SelectComboChart,
|
|
8314
|
+
ac as SelectCombobox,
|
|
8315
|
+
W1 as SelectConfirmModal,
|
|
8316
|
+
F1 as SelectCopyRow,
|
|
8317
|
+
B1 as SelectCopyableId,
|
|
8318
|
+
R1 as SelectCreateTile,
|
|
8319
|
+
V1 as SelectDataTable,
|
|
8320
|
+
vs as SelectDateField,
|
|
8321
|
+
qs as SelectDatePicker,
|
|
8323
8322
|
or as SelectDateRangeField,
|
|
8324
8323
|
Ko as SelectDetailList,
|
|
8325
8324
|
Jo as SelectDetailRow,
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8325
|
+
kc as SelectDisclosureButton,
|
|
8326
|
+
d1 as SelectDivider,
|
|
8327
|
+
Ya as SelectDocumentField,
|
|
8328
|
+
oo as SelectDonut,
|
|
8329
|
+
la as SelectDotField,
|
|
8330
|
+
Co as SelectDumbbell,
|
|
8331
|
+
Q1 as SelectFeeBreakdown,
|
|
8333
8332
|
Ze as SelectField,
|
|
8334
|
-
|
|
8335
|
-
|
|
8333
|
+
oc as SelectFieldGrid,
|
|
8334
|
+
za as SelectFileDropzone,
|
|
8336
8335
|
wt as SelectFileTile,
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8336
|
+
Z1 as SelectFilterBar,
|
|
8337
|
+
A1 as SelectFilterChip,
|
|
8338
|
+
g1 as SelectFormLayout,
|
|
8339
|
+
O1 as SelectFormModal,
|
|
8340
|
+
io as SelectFunnel,
|
|
8341
|
+
ho as SelectGauge,
|
|
8342
|
+
Ao as SelectGaugeBands,
|
|
8343
|
+
Do as SelectGlobe,
|
|
8344
|
+
a1 as SelectGrid,
|
|
8345
|
+
uo as SelectHeatmap,
|
|
8346
|
+
Po as SelectHexbin,
|
|
8347
|
+
K1 as SelectHideMoneyToggle,
|
|
8348
|
+
fo as SelectHorizontalBar,
|
|
8349
|
+
Zo as SelectIcicle,
|
|
8350
|
+
x1 as SelectIcon,
|
|
8352
8351
|
ge as SelectIconButton,
|
|
8353
|
-
|
|
8352
|
+
p1 as SelectIdentityFooter,
|
|
8354
8353
|
mr as SelectImageField,
|
|
8355
8354
|
tc as SelectImageUploadField,
|
|
8356
|
-
|
|
8357
|
-
|
|
8355
|
+
Xa as SelectImageUrlsField,
|
|
8356
|
+
Os as SelectImageZoomModal,
|
|
8358
8357
|
st as SelectInline,
|
|
8359
|
-
|
|
8358
|
+
r1 as SelectJsonViewer,
|
|
8360
8359
|
ar as SelectKeyValueEditor,
|
|
8361
|
-
|
|
8360
|
+
eo as SelectKpiCard,
|
|
8362
8361
|
lt as SelectLabelRow,
|
|
8363
|
-
|
|
8364
|
-
|
|
8362
|
+
co as SelectLineChart,
|
|
8363
|
+
Vc as SelectLinkButton,
|
|
8365
8364
|
tr as SelectListCard,
|
|
8366
8365
|
nr as SelectListRow,
|
|
8367
|
-
|
|
8368
|
-
|
|
8366
|
+
Uc as SelectLoader,
|
|
8367
|
+
Lo as SelectMarimekko,
|
|
8369
8368
|
cr as SelectMediaCell,
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8369
|
+
ls as SelectMenu,
|
|
8370
|
+
ss as SelectMenuButton,
|
|
8371
|
+
L1 as SelectMenuDivider,
|
|
8372
|
+
cs as SelectMenuItem,
|
|
8373
|
+
Bs as SelectMetricDelta,
|
|
8375
8374
|
It as SelectModal,
|
|
8376
8375
|
at as SelectMoney,
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8376
|
+
qa as SelectMoneyField,
|
|
8377
|
+
Yo as SelectNetwork,
|
|
8378
|
+
y1 as SelectNote,
|
|
8380
8379
|
ir as SelectNumberField,
|
|
8381
8380
|
sr as SelectOfflineModal,
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8381
|
+
h1 as SelectOptionList,
|
|
8382
|
+
u1 as SelectOptionRow,
|
|
8383
|
+
m1 as SelectOtpInput,
|
|
8384
|
+
qc as SelectPage,
|
|
8385
|
+
is as SelectPagination,
|
|
8386
|
+
$1 as SelectPanel,
|
|
8387
|
+
Vo as SelectParallel,
|
|
8388
|
+
Wo as SelectPareto,
|
|
8389
|
+
v1 as SelectPasswordStrength,
|
|
8390
|
+
o1 as SelectPaymentBrand,
|
|
8391
|
+
t1 as SelectPhoneField,
|
|
8393
8392
|
er as SelectPlanCard,
|
|
8394
|
-
|
|
8393
|
+
wo as SelectPolarArea,
|
|
8395
8394
|
We as SelectPopover,
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8395
|
+
z1 as SelectPreviewFrame,
|
|
8396
|
+
po as SelectProgressList,
|
|
8397
|
+
Ho as SelectPyramid,
|
|
8398
|
+
xo as SelectRadar,
|
|
8399
|
+
mo as SelectRadialBar,
|
|
8400
|
+
n1 as SelectRadioGroup,
|
|
8401
|
+
$o as SelectRangeBar,
|
|
8403
8402
|
rr as SelectRating,
|
|
8404
8403
|
dr as SelectRepeatingFieldArray,
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8404
|
+
_1 as SelectResendButton,
|
|
8405
|
+
T1 as SelectRowActions,
|
|
8406
|
+
yo as SelectSankey,
|
|
8407
|
+
bo as SelectScatter,
|
|
8409
8408
|
ml as SelectSearchInput,
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8409
|
+
k1 as SelectSection,
|
|
8410
|
+
l1 as SelectSegmented,
|
|
8411
|
+
Jn as SelectSelect,
|
|
8412
|
+
As as SelectSensitiveValue,
|
|
8413
|
+
N1 as SelectSettingList,
|
|
8414
|
+
M1 as SelectSettingRow,
|
|
8415
|
+
S1 as SelectSideNav,
|
|
8416
|
+
b1 as SelectSkeleton,
|
|
8417
|
+
So as SelectSlope,
|
|
8418
|
+
no as SelectSparkline,
|
|
8419
|
+
jt as SelectStack,
|
|
8420
|
+
so as SelectStackedArea,
|
|
8421
|
+
c1 as SelectStatusBadge,
|
|
8423
8422
|
Qo as SelectSteps,
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8423
|
+
Fo as SelectStreamGraph,
|
|
8424
|
+
Bo as SelectSunburst,
|
|
8425
|
+
U1 as SelectSurface,
|
|
8426
|
+
Qt as SelectSwitch,
|
|
8428
8427
|
ur as SelectSwitchField,
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8428
|
+
ts as SelectTable,
|
|
8429
|
+
vn as SelectTableCell,
|
|
8430
|
+
ns as SelectTableEmpty,
|
|
8431
|
+
_n as SelectTableRow,
|
|
8432
|
+
w1 as SelectTabs,
|
|
8433
|
+
G1 as SelectTagSelect,
|
|
8435
8434
|
Xe as SelectText,
|
|
8436
|
-
|
|
8435
|
+
Ga as SelectTextarea,
|
|
8437
8436
|
Xo as SelectThemeSwitcher,
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8437
|
+
In as SelectThumbnail,
|
|
8438
|
+
To as SelectTicker,
|
|
8439
|
+
i1 as SelectTimeline,
|
|
8440
|
+
q1 as SelectToastProvider,
|
|
8441
|
+
Ja as SelectToggleList,
|
|
8442
|
+
e1 as SelectTogglePanel,
|
|
8443
|
+
Qa as SelectToggleRow,
|
|
8444
|
+
al as SelectTooltip,
|
|
8445
|
+
Go as SelectTree,
|
|
8446
|
+
go as SelectTreemap,
|
|
8447
|
+
Ua as SelectUnitInput,
|
|
8448
|
+
C1 as SelectUserCell,
|
|
8449
|
+
X1 as SelectValueVisibilityProvider,
|
|
8450
|
+
Uo as SelectVenn,
|
|
8451
|
+
Eo as SelectViolin,
|
|
8452
|
+
Oo as SelectWaffle,
|
|
8453
|
+
_o as SelectWaterfall,
|
|
8454
|
+
Ro as SelectWordCloud,
|
|
8455
|
+
D1 as SelectWorkspaceSwitcher,
|
|
8457
8456
|
lr as SelectZoomThumbnail,
|
|
8458
|
-
|
|
8459
|
-
|
|
8457
|
+
Wn as SelectorIcon,
|
|
8458
|
+
Ia as SendIcon,
|
|
8460
8459
|
Tl as Setting4Icon,
|
|
8461
8460
|
Yl as SettingsIcon,
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8461
|
+
ka as ShieldIcon,
|
|
8462
|
+
ma as SplitIcon,
|
|
8463
|
+
pa as StarIcon,
|
|
8464
|
+
Wa as StoreIcon,
|
|
8465
|
+
Va as StorefrontIcon,
|
|
8467
8466
|
Vl as SunIcon,
|
|
8468
8467
|
Hl as TerminalIcon,
|
|
8469
|
-
|
|
8468
|
+
Vn as TrashIcon,
|
|
8470
8469
|
kt as UploadIcon,
|
|
8471
|
-
|
|
8472
|
-
|
|
8470
|
+
fa as UserIcon,
|
|
8471
|
+
Fa as WalletIcon,
|
|
8473
8472
|
Ol as WarningIcon,
|
|
8474
|
-
|
|
8473
|
+
Sa as Web3Icon,
|
|
8475
8474
|
ut as detectSelectTheme,
|
|
8476
|
-
|
|
8477
|
-
|
|
8475
|
+
bc as dialCodeOf,
|
|
8476
|
+
Gc as passwordScore,
|
|
8478
8477
|
zo as resolveSelectTheme,
|
|
8479
|
-
|
|
8480
|
-
|
|
8478
|
+
j1 as useSelectPageSize,
|
|
8479
|
+
Y1 as useSelectToast,
|
|
8481
8480
|
bl as useSelectValueVisibility
|
|
8482
8481
|
};
|
|
8483
8482
|
//# sourceMappingURL=index.js.map
|