@selectwin/kit 0.1.53 → 0.1.54
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/SelectMenu.d.ts +21 -0
- package/dist/icons.d.ts +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +472 -440
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useRef as Y, useEffect as te, forwardRef as P, useState as T, useId as
|
|
|
3
3
|
import Me from "gsap";
|
|
4
4
|
import { createPortal as Et } from "react-dom";
|
|
5
5
|
import { Link as Bl, useNavigate as Fl } from "react-router-dom";
|
|
6
|
-
const
|
|
6
|
+
const on = (t, n, l) => t < n ? n : t > l ? l : t;
|
|
7
7
|
function Il(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;
|
|
@@ -52,7 +52,7 @@ function ha({ className: t, theme: n, glowTarget: l }) {
|
|
|
52
52
|
if (!A) return;
|
|
53
53
|
const re = A.getBoundingClientRect(), $e = re.left - L + re.width / 2, Ce = re.top - B + re.height / 2, Le = re.width / 2, Ne = re.height / 2, Pe = (X - $e) / (Le + x), we = (pe - Ce) / (Ne + x), Ue = Math.sqrt(Pe * Pe + we * we), He = Ue < 1 ? 1 - Ue : 0, Be = He * He * (3 - 2 * He);
|
|
54
54
|
if (Be > 1e-3 || E > 1e-3) {
|
|
55
|
-
const I =
|
|
55
|
+
const I = on((X - $e) / Math.max(Le, 1), -1, 1) * 10 * Be, V = on((pe - Ce) / Math.max(Ne, 1), -1, 1) * 10 * Be;
|
|
56
56
|
A.style.setProperty("--select-card-glow", Be.toFixed(3)), A.style.setProperty("--select-card-glow-rgb", `${de}, ${me}, ${ue}`), A.style.setProperty("--select-card-glow-x", `${I.toFixed(1)}px`), A.style.setProperty("--select-card-glow-y", `${V.toFixed(1)}px`);
|
|
57
57
|
}
|
|
58
58
|
E = Be;
|
|
@@ -533,7 +533,7 @@ function Kt() {
|
|
|
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 Zn() {
|
|
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
539
|
function ga() {
|
|
@@ -555,7 +555,7 @@ function Qt() {
|
|
|
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 en() {
|
|
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() {
|
|
@@ -610,16 +610,23 @@ function Bt() {
|
|
|
610
610
|
/* @__PURE__ */ e("path", { d: "M11.995 16h.009" })
|
|
611
611
|
] });
|
|
612
612
|
}
|
|
613
|
+
function $a() {
|
|
614
|
+
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
615
|
+
/* @__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 10Z" }),
|
|
616
|
+
/* @__PURE__ */ e("path", { d: "M9.95 9.55c0-1.13.92-2.05 2.05-2.05s2.05.92 2.05 2.05c0 1.06-.72 1.6-1.35 1.95-.44.25-.7.6-.7 1.15v.35" }),
|
|
617
|
+
/* @__PURE__ */ e("path", { d: "M11.995 16h.009" })
|
|
618
|
+
] });
|
|
619
|
+
}
|
|
613
620
|
function Ul() {
|
|
614
621
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
615
622
|
/* @__PURE__ */ e("path", { d: "M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z" }),
|
|
616
623
|
/* @__PURE__ */ e("path", { d: "M11.995 17h.009" })
|
|
617
624
|
] });
|
|
618
625
|
}
|
|
619
|
-
function
|
|
626
|
+
function wa() {
|
|
620
627
|
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
628
|
}
|
|
622
|
-
function
|
|
629
|
+
function ka() {
|
|
623
630
|
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
631
|
/* @__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
632
|
/* @__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 +639,7 @@ function Yl() {
|
|
|
632
639
|
/* @__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
640
|
] });
|
|
634
641
|
}
|
|
635
|
-
function
|
|
642
|
+
function Sa() {
|
|
636
643
|
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
644
|
/* @__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
645
|
/* @__PURE__ */ e("path", { d: "M9 12a13 13 0 0 1 9-9 13 13 0 0 1-9 9Z" }),
|
|
@@ -670,25 +677,25 @@ function Jl() {
|
|
|
670
677
|
function Je() {
|
|
671
678
|
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
679
|
}
|
|
673
|
-
function
|
|
680
|
+
function Ca() {
|
|
674
681
|
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
682
|
/* @__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
683
|
/* @__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
684
|
] });
|
|
678
685
|
}
|
|
679
|
-
function
|
|
686
|
+
function La() {
|
|
680
687
|
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
688
|
/* @__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
689
|
/* @__PURE__ */ e("path", { d: "M9 2h6" })
|
|
683
690
|
] });
|
|
684
691
|
}
|
|
685
|
-
function
|
|
692
|
+
function Aa() {
|
|
686
693
|
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
694
|
/* @__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
695
|
/* @__PURE__ */ e("path", { d: "m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9" })
|
|
689
696
|
] });
|
|
690
697
|
}
|
|
691
|
-
function
|
|
698
|
+
function Ea() {
|
|
692
699
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
693
700
|
"path",
|
|
694
701
|
{
|
|
@@ -697,20 +704,20 @@ function Aa() {
|
|
|
697
704
|
}
|
|
698
705
|
) });
|
|
699
706
|
}
|
|
700
|
-
function
|
|
707
|
+
function Ba() {
|
|
701
708
|
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
709
|
}
|
|
703
|
-
function
|
|
710
|
+
function Fa() {
|
|
704
711
|
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
712
|
/* @__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
713
|
/* @__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
714
|
/* @__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
715
|
] });
|
|
709
716
|
}
|
|
710
|
-
function
|
|
717
|
+
function Ia() {
|
|
711
718
|
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
719
|
}
|
|
713
|
-
function
|
|
720
|
+
function Pa() {
|
|
714
721
|
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
722
|
/* @__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
723
|
/* @__PURE__ */ e("path", { d: "m9.05 11.87 1.61 1.61 4.3-4.3" })
|
|
@@ -738,23 +745,23 @@ function Ql() {
|
|
|
738
745
|
/* @__PURE__ */ e("path", { d: "m7.75 12 2.83 2.83 5.67-5.66" })
|
|
739
746
|
] });
|
|
740
747
|
}
|
|
741
|
-
function
|
|
748
|
+
function Ra() {
|
|
742
749
|
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
750
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "4" }),
|
|
744
751
|
/* @__PURE__ */ e("path", { d: "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.9 7.9" })
|
|
745
752
|
] });
|
|
746
753
|
}
|
|
747
|
-
function
|
|
754
|
+
function Da() {
|
|
748
755
|
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
756
|
}
|
|
750
|
-
function
|
|
757
|
+
function Ta() {
|
|
751
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: [
|
|
752
759
|
/* @__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
760
|
/* @__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
761
|
/* @__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
762
|
] });
|
|
756
763
|
}
|
|
757
|
-
function
|
|
764
|
+
function Wa() {
|
|
758
765
|
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
766
|
/* @__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
767
|
/* @__PURE__ */ e("path", { d: "M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" })
|
|
@@ -763,7 +770,7 @@ function Ta() {
|
|
|
763
770
|
function zn() {
|
|
764
771
|
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
772
|
}
|
|
766
|
-
function
|
|
773
|
+
function Oa() {
|
|
767
774
|
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
775
|
}
|
|
769
776
|
function ec() {
|
|
@@ -772,29 +779,29 @@ function ec() {
|
|
|
772
779
|
/* @__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
780
|
] });
|
|
774
781
|
}
|
|
775
|
-
function
|
|
782
|
+
function Ha() {
|
|
776
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: [
|
|
777
784
|
/* @__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
785
|
/* @__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
786
|
/* @__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
787
|
] });
|
|
781
788
|
}
|
|
782
|
-
function
|
|
789
|
+
function ja() {
|
|
783
790
|
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
791
|
/* @__PURE__ */ e("path", { d: "M2 8.505h20M6 16.505h2M10.5 16.505h4" }),
|
|
785
792
|
/* @__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
793
|
] });
|
|
787
794
|
}
|
|
788
|
-
function
|
|
795
|
+
function Va() {
|
|
789
796
|
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
797
|
/* @__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
798
|
/* @__PURE__ */ e("path", { d: "M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18" })
|
|
792
799
|
] });
|
|
793
800
|
}
|
|
794
|
-
function
|
|
801
|
+
function Za() {
|
|
795
802
|
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
803
|
}
|
|
797
|
-
function
|
|
804
|
+
function Ga() {
|
|
798
805
|
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
806
|
/* @__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
807
|
/* @__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" })
|
|
@@ -809,7 +816,7 @@ function Xn() {
|
|
|
809
816
|
function Kn() {
|
|
810
817
|
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
818
|
}
|
|
812
|
-
function
|
|
819
|
+
function Ua() {
|
|
813
820
|
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
821
|
}
|
|
815
822
|
function tc() {
|
|
@@ -824,35 +831,35 @@ function nc() {
|
|
|
824
831
|
/* @__PURE__ */ e("path", { d: "M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8" })
|
|
825
832
|
] });
|
|
826
833
|
}
|
|
827
|
-
function
|
|
834
|
+
function Ya() {
|
|
828
835
|
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
836
|
/* @__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
837
|
/* @__PURE__ */ e("path", { d: "M14.495 14.5h.009M9.495 9.5h.008" })
|
|
831
838
|
] });
|
|
832
839
|
}
|
|
833
|
-
function
|
|
840
|
+
function qa() {
|
|
834
841
|
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
842
|
/* @__PURE__ */ e("path", { d: "M2 2v17c0 1.66 1.34 3 3 3h17" }),
|
|
836
843
|
/* @__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
844
|
] });
|
|
838
845
|
}
|
|
839
|
-
function
|
|
846
|
+
function za() {
|
|
840
847
|
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
848
|
/* @__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
849
|
/* @__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
850
|
/* @__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
851
|
] });
|
|
845
852
|
}
|
|
846
|
-
function
|
|
853
|
+
function Xa() {
|
|
847
854
|
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
855
|
}
|
|
849
|
-
function
|
|
856
|
+
function Ka() {
|
|
850
857
|
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
858
|
}
|
|
852
|
-
function
|
|
859
|
+
function Ja() {
|
|
853
860
|
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
861
|
}
|
|
855
|
-
function
|
|
862
|
+
function Qa() {
|
|
856
863
|
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
864
|
/* @__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
865
|
/* @__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" })
|
|
@@ -944,7 +951,7 @@ const lt = P(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
944
951
|
] }),
|
|
945
952
|
d ? /* @__PURE__ */ e("p", { id: `${R}-err`, className: "select-field__error", children: d }) : r ? /* @__PURE__ */ e("p", { id: `${R}-hint`, className: "select-field__hint", children: r }) : null
|
|
946
953
|
] });
|
|
947
|
-
}),
|
|
954
|
+
}), er = P(function({ label: n, checked: l, onChange: c, disabled: s, hint: a, name: o, className: i, ...r }, d) {
|
|
948
955
|
return /* @__PURE__ */ m("span", { ref: d, ...r, className: `select-checkbox-field${s ? " select-checkbox-field--disabled" : ""}${i ? " " + i : ""}`, children: [
|
|
949
956
|
/* @__PURE__ */ m("label", { className: "select-checkbox", children: [
|
|
950
957
|
/* @__PURE__ */ e(
|
|
@@ -962,7 +969,7 @@ const lt = P(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
962
969
|
] }),
|
|
963
970
|
a && /* @__PURE__ */ e("span", { className: "select-checkbox__hint", children: a })
|
|
964
971
|
] });
|
|
965
|
-
}),
|
|
972
|
+
}), tr = P(function({ label: n, value: l, onChange: c, labelAction: s, info: a, description: o, hint: i, error: r, placeholder: d, rows: h = 4, mono: u, name: f, required: g, disabled: v, maxLength: x, onBlur: N, size: k = "md", className: _, ...p }, b) {
|
|
966
973
|
const S = ne(), $ = r ? `${S}-err` : i ? `${S}-hint` : void 0;
|
|
967
974
|
return /* @__PURE__ */ m("div", { ref: b, ...p, className: `select-field${k === "sm" ? " select-field--sm" : ""}${_ ? " " + _ : ""}`, children: [
|
|
968
975
|
(n || a || s) && /* @__PURE__ */ e(lt, { htmlFor: S, label: n, info: a, action: s }),
|
|
@@ -987,7 +994,7 @@ const lt = P(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
987
994
|
),
|
|
988
995
|
r ? /* @__PURE__ */ e("p", { id: `${S}-err`, className: "select-field__error", children: r }) : i ? /* @__PURE__ */ e("p", { id: `${S}-hint`, className: "select-field__hint", children: i }) : null
|
|
989
996
|
] });
|
|
990
|
-
}),
|
|
997
|
+
}), nr = P(function({ label: n, value: l, onChange: c, unit: s, info: a, hint: o, error: i, placeholder: r = "0", disabled: d = !1, min: h, max: u, className: f, ...g }, v) {
|
|
991
998
|
const x = ne();
|
|
992
999
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${f ? " " + f : ""}`, children: [
|
|
993
1000
|
n && /* @__PURE__ */ e(lt, { htmlFor: x, label: n, info: a }),
|
|
@@ -1011,11 +1018,11 @@ const lt = P(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
1011
1018
|
] }),
|
|
1012
1019
|
i ? /* @__PURE__ */ e("p", { className: "select-field__error", children: i }) : o ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: o }) : null
|
|
1013
1020
|
] });
|
|
1014
|
-
}),
|
|
1021
|
+
}), dn = new Intl.NumberFormat("pt-BR", {
|
|
1015
1022
|
minimumFractionDigits: 2,
|
|
1016
1023
|
maximumFractionDigits: 2
|
|
1017
1024
|
}), Tt = (t) => t.replace(/\D/g, "");
|
|
1018
|
-
function
|
|
1025
|
+
function un(t, n) {
|
|
1019
1026
|
if (n <= 0) return t.length;
|
|
1020
1027
|
let l = 0;
|
|
1021
1028
|
for (let c = t.length - 1; c >= 0; c--) {
|
|
@@ -1024,15 +1031,15 @@ function dn(t, n) {
|
|
|
1024
1031
|
}
|
|
1025
1032
|
return 0;
|
|
1026
1033
|
}
|
|
1027
|
-
const
|
|
1028
|
-
const x = ne(), N = Y(null), k = Y(null), _ = l == null ? "" :
|
|
1034
|
+
const lr = P(function({ label: n, value: l, onChange: c, info: s, hint: a, error: o, onBlur: i, placeholder: r = "0,00", name: d, disabled: h = !1, size: u = "md", className: f, ...g }, v) {
|
|
1035
|
+
const x = ne(), N = Y(null), k = Y(null), _ = l == null ? "" : dn.format(l / 100);
|
|
1029
1036
|
Ee(() => {
|
|
1030
1037
|
const b = N.current;
|
|
1031
1038
|
if (!b || k.current == null) return;
|
|
1032
1039
|
const S = k.current;
|
|
1033
1040
|
if (k.current = null, document.activeElement !== b) return;
|
|
1034
1041
|
b.value !== _ && (b.value = _);
|
|
1035
|
-
const $ =
|
|
1042
|
+
const $ = un(b.value, S);
|
|
1036
1043
|
b.setSelectionRange($, $);
|
|
1037
1044
|
});
|
|
1038
1045
|
const p = (b) => {
|
|
@@ -1042,7 +1049,7 @@ const nr = P(function({ label: n, value: l, onChange: c, info: s, hint: a, error
|
|
|
1042
1049
|
const E = b.nativeEvent.inputType;
|
|
1043
1050
|
E === "deleteContentBackward" && w ? w = w.slice(0, -1) : E === "deleteContentForward" && y && (y = y.slice(1));
|
|
1044
1051
|
}
|
|
1045
|
-
const C = w + y, L = C ? parseInt(C, 10) : 0, B =
|
|
1052
|
+
const C = w + y, L = C ? parseInt(C, 10) : 0, B = dn.format(L / 100), A = un(B, y.length);
|
|
1046
1053
|
S.value = B, S.setSelectionRange(A, A), k.current = y.length, c(L);
|
|
1047
1054
|
};
|
|
1048
1055
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${u === "sm" ? " select-field--sm" : ""}${f ? " " + f : ""}`, children: [
|
|
@@ -1077,18 +1084,18 @@ const nr = P(function({ label: n, value: l, onChange: c, info: s, hint: a, error
|
|
|
1077
1084
|
o ? /* @__PURE__ */ e("p", { className: "select-field__error", children: o }) : a ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: a }) : null
|
|
1078
1085
|
] });
|
|
1079
1086
|
});
|
|
1080
|
-
function
|
|
1087
|
+
function tn(t) {
|
|
1081
1088
|
return (t ?? "").replace(/\D/g, "");
|
|
1082
1089
|
}
|
|
1083
1090
|
function lc(t) {
|
|
1084
|
-
const n =
|
|
1091
|
+
const n = tn(t);
|
|
1085
1092
|
return n.length === 11 ? "CPF" : n.length === 14 ? "CNPJ" : "";
|
|
1086
1093
|
}
|
|
1087
1094
|
function cc(t) {
|
|
1088
|
-
const n =
|
|
1095
|
+
const n = tn(t).slice(0, 14);
|
|
1089
1096
|
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");
|
|
1090
1097
|
}
|
|
1091
|
-
function
|
|
1098
|
+
function cr({
|
|
1092
1099
|
label: t = "CPF/CNPJ",
|
|
1093
1100
|
value: n,
|
|
1094
1101
|
onChange: l,
|
|
@@ -1104,7 +1111,7 @@ function lr({
|
|
|
1104
1111
|
{
|
|
1105
1112
|
label: t,
|
|
1106
1113
|
value: cc(n),
|
|
1107
|
-
onChange: (d) => l(
|
|
1114
|
+
onChange: (d) => l(tn(d)),
|
|
1108
1115
|
inputMode: "numeric",
|
|
1109
1116
|
autoComplete: "off",
|
|
1110
1117
|
maxLength: 18,
|
|
@@ -1179,7 +1186,7 @@ function ll(t) {
|
|
|
1179
1186
|
return t;
|
|
1180
1187
|
}
|
|
1181
1188
|
}
|
|
1182
|
-
const
|
|
1189
|
+
const sr = P(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, allowMultiple: a = !0, maxFiles: o, hint: i, className: r, ...d }, h) {
|
|
1183
1190
|
const u = Y(null), [f, g] = T(!1), [v, x] = T(0), N = s * 1024 * 1024, k = ye(() => n.map((C) => el(C) ? URL.createObjectURL(C) : null), [n]);
|
|
1184
1191
|
te(
|
|
1185
1192
|
() => () => {
|
|
@@ -1275,7 +1282,7 @@ const cr = P(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1275
1282
|
/* @__PURE__ */ e("span", { className: "select-addbtn__icon", "aria-hidden": "true", children: c ?? /* @__PURE__ */ e(Je, {}) }),
|
|
1276
1283
|
n
|
|
1277
1284
|
] });
|
|
1278
|
-
}),
|
|
1285
|
+
}), ar = P(function({ label: n, urls: l, onChange: c, maxUrls: s, placeholder: a, helpText: o, className: i, ...r }, d) {
|
|
1279
1286
|
const [h, u] = T(""), [f, g] = T(null), v = s != null && l.length >= s, x = () => {
|
|
1280
1287
|
const _ = h.trim();
|
|
1281
1288
|
if (_) {
|
|
@@ -1591,7 +1598,7 @@ const oc = [
|
|
|
1591
1598
|
"textarea:not([disabled])",
|
|
1592
1599
|
'[tabindex]:not([tabindex="-1"])'
|
|
1593
1600
|
].join(",");
|
|
1594
|
-
function
|
|
1601
|
+
function hn(t) {
|
|
1595
1602
|
return Array.from(t.querySelectorAll(oc)).filter(
|
|
1596
1603
|
(n) => n.offsetWidth > 0 || n.offsetHeight > 0 || n === document.activeElement
|
|
1597
1604
|
);
|
|
@@ -1601,10 +1608,10 @@ function ic(t, n) {
|
|
|
1601
1608
|
if (!t) return;
|
|
1602
1609
|
const l = n.current;
|
|
1603
1610
|
if (!l) return;
|
|
1604
|
-
(
|
|
1611
|
+
(hn(l)[0] ?? l).focus({ preventScroll: !0 });
|
|
1605
1612
|
const s = (a) => {
|
|
1606
1613
|
if (a.key !== "Tab") return;
|
|
1607
|
-
const o =
|
|
1614
|
+
const o = hn(l);
|
|
1608
1615
|
if (o.length === 0) {
|
|
1609
1616
|
a.preventDefault();
|
|
1610
1617
|
return;
|
|
@@ -1788,7 +1795,7 @@ function mc(t) {
|
|
|
1788
1795
|
const n = t.replace(/[^\d-]/g, ""), [l = "", ...c] = n.split("-");
|
|
1789
1796
|
return c.length ? `${l}-${c.join("").replace(/\D/g, "").slice(0, 2)}` : l;
|
|
1790
1797
|
}
|
|
1791
|
-
const
|
|
1798
|
+
const rr = P(function({ value: n, onChange: l, banks: c = [], showType: s = !1, error: a, className: o, ...i }, r) {
|
|
1792
1799
|
const d = (u) => l({ ...n, ...u }), h = c.map((u) => ({ label: u.name || u.code, value: u.code }));
|
|
1793
1800
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-stack${o ? " " + o : ""}`, children: [
|
|
1794
1801
|
/* @__PURE__ */ e(
|
|
@@ -1831,20 +1838,20 @@ const ar = P(function({ value: n, onChange: l, banks: c = [], showType: s = !1,
|
|
|
1831
1838
|
}
|
|
1832
1839
|
)
|
|
1833
1840
|
] });
|
|
1834
|
-
}),
|
|
1841
|
+
}), nn = P(function({ checked: n, onChange: l, disabled: c = !1, label: s, className: a, ...o }, i) {
|
|
1835
1842
|
return /* @__PURE__ */ e("button", { ref: i, ...o, 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" }) });
|
|
1836
|
-
}),
|
|
1843
|
+
}), or = P(function({ children: n, scroll: l = !1, className: c, ...s }, a) {
|
|
1837
1844
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-togglelist${l ? " select-togglelist--scroll" : ""}${c ? " " + c : ""}`, children: n });
|
|
1838
|
-
}),
|
|
1845
|
+
}), ir = P(function({ icon: n, label: l, checked: c, onChange: s, disabled: a = !1, className: o, ...i }, r) {
|
|
1839
1846
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-togglerow${a ? " select-togglerow--disabled" : ""}${o ? " " + o : ""}`, children: [
|
|
1840
1847
|
n && /* @__PURE__ */ e("span", { className: "select-togglerow__icon", children: n }),
|
|
1841
1848
|
/* @__PURE__ */ e("span", { className: "select-togglerow__label", children: l }),
|
|
1842
|
-
/* @__PURE__ */ e(
|
|
1849
|
+
/* @__PURE__ */ e(nn, { checked: c, onChange: s, disabled: a, label: typeof l == "string" ? l : void 0 })
|
|
1843
1850
|
] });
|
|
1844
|
-
}),
|
|
1851
|
+
}), dr = P(function({ icon: n, title: l, checked: c, onChange: s, children: a, disabled: o = !1, className: i, ...r }, d) {
|
|
1845
1852
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-togglepanel${c ? " is-on" : ""}${i ? " " + i : ""}`, children: [
|
|
1846
1853
|
/* @__PURE__ */ m("div", { className: "select-togglepanel__header", children: [
|
|
1847
|
-
/* @__PURE__ */ e(
|
|
1854
|
+
/* @__PURE__ */ e(nn, { checked: c, onChange: s, disabled: o, label: typeof l == "string" ? l : void 0 }),
|
|
1848
1855
|
n && /* @__PURE__ */ e("span", { className: "select-togglepanel__icon", children: n }),
|
|
1849
1856
|
/* @__PURE__ */ e("span", { className: "select-togglepanel__title", children: l })
|
|
1850
1857
|
] }),
|
|
@@ -1898,7 +1905,7 @@ function _c({ iso: t }) {
|
|
|
1898
1905
|
/* @__PURE__ */ e("g", { clipPath: `url(#flag-${t})`, children: n })
|
|
1899
1906
|
] }) : /* @__PURE__ */ e("span", { className: "select-phone__flagfallback", "aria-hidden": "true", children: t });
|
|
1900
1907
|
}
|
|
1901
|
-
const
|
|
1908
|
+
const ln = {
|
|
1902
1909
|
US: "(###) ###-####",
|
|
1903
1910
|
// 10 digits
|
|
1904
1911
|
MX: "## #### ####",
|
|
@@ -1927,7 +1934,7 @@ function gc(t, n) {
|
|
|
1927
1934
|
}
|
|
1928
1935
|
function bc(t) {
|
|
1929
1936
|
if (t === "BR") return 11;
|
|
1930
|
-
const n =
|
|
1937
|
+
const n = ln[t];
|
|
1931
1938
|
return n ? vc(n) : 15;
|
|
1932
1939
|
}
|
|
1933
1940
|
function yc(t) {
|
|
@@ -1943,12 +1950,12 @@ function xc(t) {
|
|
|
1943
1950
|
function Nc(t, n) {
|
|
1944
1951
|
const l = ol(t, n);
|
|
1945
1952
|
if (t === "BR") return xc(l);
|
|
1946
|
-
const c =
|
|
1953
|
+
const c = ln[t];
|
|
1947
1954
|
return c ? gc(c, l) : l;
|
|
1948
1955
|
}
|
|
1949
1956
|
function Mc(t) {
|
|
1950
1957
|
if (t === "BR") return "(00) 00000-0000";
|
|
1951
|
-
const n =
|
|
1958
|
+
const n = ln[t];
|
|
1952
1959
|
return n ? n.replace(/#/g, "0") : "";
|
|
1953
1960
|
}
|
|
1954
1961
|
const il = [
|
|
@@ -1964,7 +1971,7 @@ function $c(t) {
|
|
|
1964
1971
|
var n;
|
|
1965
1972
|
return ((n = il.find((l) => l.iso === t)) == null ? void 0 : n.dial) ?? "";
|
|
1966
1973
|
}
|
|
1967
|
-
const
|
|
1974
|
+
const ur = P(function({ label: n, value: l, onChange: c, labelAction: s, hint: a, error: o, onBlur: i, placeholder: r, className: d, ...h }, u) {
|
|
1968
1975
|
const f = ne(), g = $c(l.country), v = o ? `${f}-err` : a ? `${f}-hint` : void 0;
|
|
1969
1976
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-field${d ? " " + d : ""}`, children: [
|
|
1970
1977
|
/* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
@@ -2014,7 +2021,7 @@ const dr = P(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2014
2021
|
] }),
|
|
2015
2022
|
o ? /* @__PURE__ */ e("p", { id: `${f}-err`, className: "select-field__error", children: o }) : a ? /* @__PURE__ */ e("p", { id: `${f}-hint`, className: "select-field__hint", children: a }) : null
|
|
2016
2023
|
] });
|
|
2017
|
-
}),
|
|
2024
|
+
}), hr = P(function({ value: n, onChange: l, options: c, name: s, className: a, ...o }, i) {
|
|
2018
2025
|
const r = ne(), d = s ?? r;
|
|
2019
2026
|
return /* @__PURE__ */ e("div", { ref: i, ...o, className: `select-radiogroup${a ? " " + a : ""}`, role: "radiogroup", children: c.map((h) => {
|
|
2020
2027
|
const u = h.value === n;
|
|
@@ -2046,7 +2053,7 @@ const dr = P(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2046
2053
|
h.value
|
|
2047
2054
|
);
|
|
2048
2055
|
}) });
|
|
2049
|
-
}),
|
|
2056
|
+
}), pr = P(function({ value: n, onChange: l, options: c, ariaLabel: s, fullWidth: a = !1, className: o, ...i }, r) {
|
|
2050
2057
|
const d = Math.max(0, c.findIndex((v) => v.value === n)), h = Y([]), [u, f] = T(null);
|
|
2051
2058
|
Ee(() => {
|
|
2052
2059
|
const v = h.current[d];
|
|
@@ -2107,7 +2114,7 @@ const dr = P(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2107
2114
|
chargeback: { label: "Chargeback", tone: "critical" },
|
|
2108
2115
|
dispute: { label: "Em disputa", tone: "critical" }
|
|
2109
2116
|
};
|
|
2110
|
-
function
|
|
2117
|
+
function mr({
|
|
2111
2118
|
status: t,
|
|
2112
2119
|
map: n = wc,
|
|
2113
2120
|
size: l
|
|
@@ -2152,7 +2159,7 @@ function ul({ items: t, sections: n, onAction: l, autoFocus: c = !0, className:
|
|
|
2152
2159
|
))
|
|
2153
2160
|
] }, h)) });
|
|
2154
2161
|
}
|
|
2155
|
-
function
|
|
2162
|
+
function fr({
|
|
2156
2163
|
items: t,
|
|
2157
2164
|
label: n = "Ações",
|
|
2158
2165
|
disabled: l
|
|
@@ -2237,7 +2244,7 @@ function st({ children: t, gap: n, align: l, blockAlign: c = "center", wrap: s =
|
|
|
2237
2244
|
};
|
|
2238
2245
|
return /* @__PURE__ */ e(r, { ...i, className: It("select-inline", o), style: d, children: t });
|
|
2239
2246
|
}
|
|
2240
|
-
function
|
|
2247
|
+
function _r({ children: t, columns: n = 2, gap: l = "400", alignItems: c, collapseBelow: s, as: a = "div", className: o, ...i }) {
|
|
2241
2248
|
const r = a, d = {
|
|
2242
2249
|
"--select-grid-columns": typeof n == "number" ? `repeat(${n}, minmax(0, 1fr))` : n,
|
|
2243
2250
|
gap: ze[l],
|
|
@@ -2285,7 +2292,7 @@ function Xe({ children: t, as: n = "p", variant: l = "bodyMd", tone: c, fontWeig
|
|
|
2285
2292
|
].filter(Boolean).join(" ");
|
|
2286
2293
|
return /* @__PURE__ */ e(h, { ...d, className: u, style: a ? { textAlign: a } : void 0, children: t });
|
|
2287
2294
|
}
|
|
2288
|
-
const
|
|
2295
|
+
const pn = "https://cdn.selectwin.io/public/payicons", Lc = [
|
|
2289
2296
|
{ value: "visa", label: "Visa", file: "visa" },
|
|
2290
2297
|
{ value: "mastercard", label: "Mastercard", file: "mastercard" },
|
|
2291
2298
|
{ value: "elo", label: "Elo", file: "elo" },
|
|
@@ -2298,18 +2305,18 @@ const hn = "https://cdn.selectwin.io/public/payicons", Lc = [
|
|
|
2298
2305
|
{ value: "discover", label: "Discover", file: "discover" },
|
|
2299
2306
|
{ value: "banescard", label: "Banescard", file: "banescard" },
|
|
2300
2307
|
{ value: "dinersclub", label: "Diners Club", file: "dinersclub" }
|
|
2301
|
-
],
|
|
2308
|
+
], mn = {
|
|
2302
2309
|
master: "mastercard",
|
|
2303
2310
|
"american-express": "amex",
|
|
2304
2311
|
americanexpress: "amex",
|
|
2305
2312
|
diners: "dinersclub",
|
|
2306
2313
|
"diners-club": "dinersclub"
|
|
2307
|
-
},
|
|
2314
|
+
}, fn = new Map(Lc.map((t) => [t.value, t]));
|
|
2308
2315
|
function hl(t) {
|
|
2309
2316
|
if (!t) return null;
|
|
2310
2317
|
const n = t.toLowerCase().trim().replace(/\s+/g, "-");
|
|
2311
2318
|
for (const l of [n, n.replace(/-/g, "")]) {
|
|
2312
|
-
const c =
|
|
2319
|
+
const c = fn.get(l) ?? (mn[l] ? fn.get(mn[l]) : void 0);
|
|
2313
2320
|
if (c) return c;
|
|
2314
2321
|
}
|
|
2315
2322
|
return null;
|
|
@@ -2331,11 +2338,11 @@ const Ec = {
|
|
|
2331
2338
|
boleto: "Boleto bancário",
|
|
2332
2339
|
nupay: "Nupay"
|
|
2333
2340
|
};
|
|
2334
|
-
function
|
|
2341
|
+
function _n(t) {
|
|
2335
2342
|
var n;
|
|
2336
2343
|
return ((n = hl(t)) == null ? void 0 : n.file) ?? null;
|
|
2337
2344
|
}
|
|
2338
|
-
function
|
|
2345
|
+
function vr({
|
|
2339
2346
|
method: t,
|
|
2340
2347
|
cardBrand: n,
|
|
2341
2348
|
/** Chip height in px; width is derived to a card aspect ratio (1.2). Default 24×29. */
|
|
@@ -2348,15 +2355,15 @@ function _r({
|
|
|
2348
2355
|
* method/brand text everywhere the label renders (chip title, alt, showLabel, fallback). */
|
|
2349
2356
|
label: a
|
|
2350
2357
|
}) {
|
|
2351
|
-
const o =
|
|
2358
|
+
const o = _n(n) ?? (t ? Ec[t] : null), i = n ? Ac(n) : void 0, r = a || i || (t ? _t[t] : void 0) || t || "—";
|
|
2352
2359
|
if (!o)
|
|
2353
2360
|
return /* @__PURE__ */ e(Xe, { as: "span", tone: "subdued", variant: "bodySm", children: a || t && _t[t] || i || t || "—" });
|
|
2354
|
-
const d =
|
|
2361
|
+
const d = _n(n) == null, h = l, u = Math.round(l * 1.2);
|
|
2355
2362
|
if (s) {
|
|
2356
2363
|
const g = d ? Math.round(l * 0.7) : l, v = /* @__PURE__ */ e(
|
|
2357
2364
|
"img",
|
|
2358
2365
|
{
|
|
2359
|
-
src: `${
|
|
2366
|
+
src: `${pn}/${o}.svg`,
|
|
2360
2367
|
alt: r,
|
|
2361
2368
|
title: r,
|
|
2362
2369
|
loading: "lazy",
|
|
@@ -2396,7 +2403,7 @@ function _r({
|
|
|
2396
2403
|
children: /* @__PURE__ */ e(
|
|
2397
2404
|
"img",
|
|
2398
2405
|
{
|
|
2399
|
-
src: `${
|
|
2406
|
+
src: `${pn}/${o}.svg`,
|
|
2400
2407
|
alt: r,
|
|
2401
2408
|
loading: "lazy",
|
|
2402
2409
|
style: d ? (
|
|
@@ -2428,7 +2435,7 @@ function Fc(t) {
|
|
|
2428
2435
|
return !0;
|
|
2429
2436
|
}
|
|
2430
2437
|
}
|
|
2431
|
-
function
|
|
2438
|
+
function cn({
|
|
2432
2439
|
content: t,
|
|
2433
2440
|
children: n,
|
|
2434
2441
|
placement: l = "top",
|
|
@@ -2520,7 +2527,7 @@ function ln({
|
|
|
2520
2527
|
] });
|
|
2521
2528
|
}
|
|
2522
2529
|
const ge = P(function({ icon: n, label: l, onClick: c, disabled: s = !1, size: a = "md", variant: o = "ghost", active: i = !1, className: r, ...d }, h) {
|
|
2523
|
-
return /* @__PURE__ */ e(
|
|
2530
|
+
return /* @__PURE__ */ e(cn, { content: l, children: /* @__PURE__ */ e("button", { ref: h, ...d, type: "button", className: `select-iconbtn select-iconbtn--${a} select-iconbtn--${o}${i ? " is-active" : ""}${r ? " " + r : ""}`, "aria-label": l, "aria-pressed": i, onClick: c, disabled: s, children: n }) });
|
|
2524
2531
|
});
|
|
2525
2532
|
function Ic({
|
|
2526
2533
|
open: t,
|
|
@@ -2546,7 +2553,7 @@ function Ic({
|
|
|
2546
2553
|
);
|
|
2547
2554
|
}
|
|
2548
2555
|
const Pc = 3e3, Ut = "", pl = (t, n) => t === "" ? n : t + Ut + n;
|
|
2549
|
-
function
|
|
2556
|
+
function vn(t) {
|
|
2550
2557
|
const n = t.split(Ut), l = [];
|
|
2551
2558
|
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(Ut));
|
|
2552
2559
|
return l;
|
|
@@ -2579,10 +2586,10 @@ function fl(t) {
|
|
|
2579
2586
|
function pt(t) {
|
|
2580
2587
|
return Array.isArray(t) ? t.length : Oe(t) ? Object.keys(t).length : 0;
|
|
2581
2588
|
}
|
|
2582
|
-
function
|
|
2589
|
+
function sn(t) {
|
|
2583
2590
|
return t == null ? "null" : typeof t == "string" ? t : t instanceof Date ? Number.isNaN(t.getTime()) ? "Invalid Date" : t.toISOString() : String(t);
|
|
2584
2591
|
}
|
|
2585
|
-
function
|
|
2592
|
+
function gn(t) {
|
|
2586
2593
|
const n = pt(t), l = Array.isArray(t);
|
|
2587
2594
|
return n === 0 ? l ? "[]" : "{}" : l ? `[${n} ${n === 1 ? "item" : "itens"}]` : `{${n} ${n === 1 ? "chave" : "chaves"}}`;
|
|
2588
2595
|
}
|
|
@@ -2647,21 +2654,21 @@ function Vc(t, n) {
|
|
|
2647
2654
|
if (!l) return jc;
|
|
2648
2655
|
const c = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
2649
2656
|
return ot(t, ({ path: a, key: o, value: i }) => {
|
|
2650
|
-
if (o.toLowerCase().includes(l) || !Oe(i) &&
|
|
2657
|
+
if (o.toLowerCase().includes(l) || !Oe(i) && sn(i).toLowerCase().includes(l)) {
|
|
2651
2658
|
c.add(a), s.add(a);
|
|
2652
|
-
for (const d of
|
|
2659
|
+
for (const d of vn(a)) s.add(d);
|
|
2653
2660
|
}
|
|
2654
2661
|
}), c.size > 0 && ot(t, ({ path: a }) => {
|
|
2655
|
-
|
|
2662
|
+
vn(a).some((o) => c.has(o)) && s.add(a);
|
|
2656
2663
|
}), { matched: c, visible: s, count: c.size, active: !0 };
|
|
2657
2664
|
}
|
|
2658
|
-
const
|
|
2665
|
+
const bn = /("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(?:\s*:)?|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;
|
|
2659
2666
|
function Zc(t) {
|
|
2660
2667
|
const n = [];
|
|
2661
2668
|
let l = 0;
|
|
2662
|
-
|
|
2669
|
+
bn.lastIndex = 0;
|
|
2663
2670
|
let c;
|
|
2664
|
-
for (; (c =
|
|
2671
|
+
for (; (c = bn.exec(t)) !== null; ) {
|
|
2665
2672
|
c.index > l && n.push({ text: t.slice(l, c.index), cls: "plain" });
|
|
2666
2673
|
const s = c[0];
|
|
2667
2674
|
let a = "num";
|
|
@@ -2693,7 +2700,7 @@ function Uc(t, n) {
|
|
|
2693
2700
|
s += 1, a = c.indexOf(l, a + l.length);
|
|
2694
2701
|
return s;
|
|
2695
2702
|
}
|
|
2696
|
-
const
|
|
2703
|
+
const yn = 320, Yc = 12e4, qc = {
|
|
2697
2704
|
string: "str",
|
|
2698
2705
|
number: "num",
|
|
2699
2706
|
boolean: "bool",
|
|
@@ -2720,7 +2727,7 @@ function zc(t = 1400) {
|
|
|
2720
2727
|
return [n, s];
|
|
2721
2728
|
}
|
|
2722
2729
|
function vl({ value: t, term: n, forceFull: l }) {
|
|
2723
|
-
const c = ml(t), s =
|
|
2730
|
+
const c = ml(t), s = sn(t), a = !l && s.length > yn, o = a ? `${s.slice(0, yn)}…` : s, i = c === "string";
|
|
2724
2731
|
return /* @__PURE__ */ m("span", { className: `select-json__v select-json__v--${qc[c]}`, title: a ? s : void 0, children: [
|
|
2725
2732
|
i && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' }),
|
|
2726
2733
|
/* @__PURE__ */ e(St, { text: o, term: n }),
|
|
@@ -2763,8 +2770,8 @@ function gl({
|
|
|
2763
2770
|
h ? /* @__PURE__ */ e("span", { className: "select-json__v select-json__v--other", children: "[referência circular]" }) : f ? (
|
|
2764
2771
|
// The summary doubles as a second hit-target for the caret; `tabIndex={-1}`
|
|
2765
2772
|
// keeps it out of the tab order (the caret is already the focusable control).
|
|
2766
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children:
|
|
2767
|
-
) : u ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children:
|
|
2773
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children: gn(r) })
|
|
2774
|
+
) : u ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children: gn(r) }) : /* @__PURE__ */ e(vl, { value: r, term: s.search, forceFull: v })
|
|
2768
2775
|
] }),
|
|
2769
2776
|
/* @__PURE__ */ e(
|
|
2770
2777
|
"button",
|
|
@@ -2773,7 +2780,7 @@ function gl({
|
|
|
2773
2780
|
className: "select-json__copy",
|
|
2774
2781
|
"aria-label": `Copiar ${i}`,
|
|
2775
2782
|
title: s.copied === x ? "Copiado!" : "Copiar valor",
|
|
2776
|
-
onClick: () => s.copy(x, u ? _l(r) :
|
|
2783
|
+
onClick: () => s.copy(x, u ? _l(r) : sn(r)),
|
|
2777
2784
|
children: s.copied === x ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(Qt, {})
|
|
2778
2785
|
}
|
|
2779
2786
|
)
|
|
@@ -2788,7 +2795,7 @@ function Xc({ text: t, term: n }) {
|
|
|
2788
2795
|
const l = ye(() => t.length > Yc ? null : Zc(t), [t]);
|
|
2789
2796
|
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 }) });
|
|
2790
2797
|
}
|
|
2791
|
-
const
|
|
2798
|
+
const gr = P(function({ value: n, title: l = "Metadados", maxHeight: c = 360, defaultOpen: s = !1, defaultExpandDepth: a = 1, searchable: o = !0, emptyLabel: i = "Sem dados", className: r, ...d }, h) {
|
|
2792
2799
|
const [u, f] = T(s), [g, v] = T("tree"), [x, N] = T(""), [k, _] = T(/* @__PURE__ */ new Set()), [p, b] = zc(), S = Y(null), $ = ye(() => Dc(n), [n]), M = Tc($), w = ye(
|
|
2793
2800
|
() => typeof n == "string" && $ === n ? n : _l($),
|
|
2794
2801
|
[n, $]
|
|
@@ -2878,7 +2885,7 @@ const vr = P(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2878
2885
|
warning: "var(--select-warning-text)",
|
|
2879
2886
|
info: "var(--select-info-text)",
|
|
2880
2887
|
default: "var(--select-text-secondary)"
|
|
2881
|
-
},
|
|
2888
|
+
}, br = P(function({ items: n, className: l, ...c }, s) {
|
|
2882
2889
|
var i;
|
|
2883
2890
|
const a = n.length ? ((i = n[0]) == null ? void 0 : i.tone) ?? "default" : "default", o = { "--tl-final": Kc[a] };
|
|
2884
2891
|
return /* @__PURE__ */ e("ul", { ref: s, ...c, className: `select-timeline${l ? " " + l : ""}`, style: o, children: n.map((r, d) => /* @__PURE__ */ m("li", { className: "select-timeline__item", children: [
|
|
@@ -2894,18 +2901,18 @@ const vr = P(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2894
2901
|
] }, d)) });
|
|
2895
2902
|
}), Jc = P(function({ children: n, onClick: l, disabled: c = !1, tone: s = "default", className: a, ...o }, i) {
|
|
2896
2903
|
return /* @__PURE__ */ e("button", { ref: i, ...o, type: "button", className: `select-linkbtn${s === "critical" ? " select-linkbtn--critical" : ""}${a ? " " + a : ""}`, onClick: l, disabled: c, children: n });
|
|
2897
|
-
}),
|
|
2904
|
+
}), yr = P(function({ children: n, className: l, ...c }, s) {
|
|
2898
2905
|
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 });
|
|
2899
2906
|
}), Qc = P(function({ name: n, src: l, icon: c, dashed: s = !1, round: a = !1, className: o, ...i }, r) {
|
|
2900
2907
|
var h, u;
|
|
2901
2908
|
const d = ((u = (h = n == null ? void 0 : n.trim()) == null ? void 0 : h[0]) == null ? void 0 : u.toUpperCase()) ?? "?";
|
|
2902
2909
|
return /* @__PURE__ */ e("span", { ref: r, ...i, className: `select-avatar${s ? " select-avatar--dashed" : ""}${a ? " select-avatar--round" : ""}${o ? " " + o : ""}`, "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 }) });
|
|
2903
2910
|
});
|
|
2904
|
-
function
|
|
2911
|
+
function xr({ children: t, className: n, ...l }) {
|
|
2905
2912
|
const c = Ft({ selector: ".select-optionrow", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
2906
2913
|
return /* @__PURE__ */ e("div", { ...l, className: `select-optionlist${n ? " " + n : ""}`, ref: c, children: t });
|
|
2907
2914
|
}
|
|
2908
|
-
function
|
|
2915
|
+
function Nr({
|
|
2909
2916
|
title: t,
|
|
2910
2917
|
subtitle: n,
|
|
2911
2918
|
leading: l,
|
|
@@ -2923,7 +2930,7 @@ function xr({
|
|
|
2923
2930
|
] }), d = `select-optionrow${a ? " select-optionrow--muted" : ""}`;
|
|
2924
2931
|
return o ? /* @__PURE__ */ e("button", { type: "button", className: d, onClick: s, children: r }) : /* @__PURE__ */ e("div", { className: d, children: r });
|
|
2925
2932
|
}
|
|
2926
|
-
const
|
|
2933
|
+
const Mr = P(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix: s = "Conectado como", className: a, ...o }, i) {
|
|
2927
2934
|
return /* @__PURE__ */ m("span", { ref: i, ...o, className: `select-identity${a ? " " + a : ""}`, children: [
|
|
2928
2935
|
/* @__PURE__ */ m("span", { className: "select-identity__text", children: [
|
|
2929
2936
|
s,
|
|
@@ -2932,7 +2939,7 @@ const Nr = P(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2932
2939
|
] }),
|
|
2933
2940
|
l && /* @__PURE__ */ e("button", { type: "button", className: "select-identity__action", onClick: l, children: c })
|
|
2934
2941
|
] });
|
|
2935
|
-
}),
|
|
2942
|
+
}), $r = P(function({ value: n, onChange: l, length: c = 6, onComplete: s, autoFocus: a = !1, disabled: o = !1, className: i, ...r }, d) {
|
|
2936
2943
|
const h = Y([]), u = Array.from({ length: c }, (_, p) => n[p] ?? ""), f = (_) => {
|
|
2937
2944
|
var p;
|
|
2938
2945
|
return (p = h.current[_]) == null ? void 0 : p.focus();
|
|
@@ -2989,18 +2996,18 @@ const Nr = P(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2989
2996
|
p
|
|
2990
2997
|
)) });
|
|
2991
2998
|
});
|
|
2992
|
-
function
|
|
2999
|
+
function wr({
|
|
2993
3000
|
children: t = "Voltar",
|
|
2994
3001
|
onClick: n,
|
|
2995
3002
|
href: l
|
|
2996
3003
|
}) {
|
|
2997
3004
|
const c = /* @__PURE__ */ m(ae, { children: [
|
|
2998
|
-
/* @__PURE__ */ e(
|
|
3005
|
+
/* @__PURE__ */ e(Zn, {}),
|
|
2999
3006
|
/* @__PURE__ */ e("span", { children: t })
|
|
3000
3007
|
] });
|
|
3001
3008
|
return l ? /* @__PURE__ */ e("a", { className: "select-backlink", href: l, children: c }) : /* @__PURE__ */ e("button", { type: "button", className: "select-backlink", onClick: n, children: c });
|
|
3002
3009
|
}
|
|
3003
|
-
const
|
|
3010
|
+
const kr = P(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar código", className: s, ...a }, o) {
|
|
3004
3011
|
const [i, r] = T(l);
|
|
3005
3012
|
te(() => {
|
|
3006
3013
|
if (i <= 0) return;
|
|
@@ -3011,7 +3018,7 @@ const wr = P(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar c
|
|
|
3011
3018
|
i > 0 || (n(), r(l));
|
|
3012
3019
|
}, [i, n, l]), h = i > 0, u = h ? `Reenviar em 0:${String(i).padStart(2, "0")}` : c;
|
|
3013
3020
|
return /* @__PURE__ */ e("button", { ref: o, ...a, type: "button", className: `select-resend${s ? " " + s : ""}`, onClick: d, disabled: h, children: u });
|
|
3014
|
-
}),
|
|
3021
|
+
}), xn = [
|
|
3015
3022
|
{ label: "Muito fraca", cls: "is-0" },
|
|
3016
3023
|
{ label: "Fraca", cls: "is-1" },
|
|
3017
3024
|
{ label: "Razoável", cls: "is-2" },
|
|
@@ -3023,8 +3030,8 @@ function es(t) {
|
|
|
3023
3030
|
let n = 0;
|
|
3024
3031
|
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);
|
|
3025
3032
|
}
|
|
3026
|
-
const
|
|
3027
|
-
const a = es(n), o =
|
|
3033
|
+
const Sr = P(function({ value: n, className: l, ...c }, s) {
|
|
3034
|
+
const a = es(n), o = xn[a] ?? xn[0];
|
|
3028
3035
|
return /* @__PURE__ */ m("div", { ref: s, ...c, className: `select-strength${l ? " " + l : ""}`, "aria-hidden": !n, children: [
|
|
3029
3036
|
/* @__PURE__ */ e("div", { className: `select-strength__bars select-strength__bars--${o.cls}`, children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ e("span", { className: `select-strength__bar${i < a ? " is-on" : ""}` }, i)) }),
|
|
3030
3037
|
n && /* @__PURE__ */ e("span", { className: "select-strength__label", children: o.label })
|
|
@@ -3046,7 +3053,7 @@ const kr = P(function({ value: n, className: l, ...c }, s) {
|
|
|
3046
3053
|
className: "select-page__back",
|
|
3047
3054
|
onClick: o.onAction,
|
|
3048
3055
|
"aria-label": o.content ?? "Voltar",
|
|
3049
|
-
children: /* @__PURE__ */ e(
|
|
3056
|
+
children: /* @__PURE__ */ e(Zn, {})
|
|
3050
3057
|
}
|
|
3051
3058
|
),
|
|
3052
3059
|
/* @__PURE__ */ m("div", { className: "select-page__head", children: [
|
|
@@ -3094,8 +3101,8 @@ function ls({ children: t }) {
|
|
|
3094
3101
|
function cs({ children: t, columns: n = 2 }) {
|
|
3095
3102
|
return /* @__PURE__ */ e("div", { className: "select-formlayout__group", style: { "--cols": String(n) }, children: t });
|
|
3096
3103
|
}
|
|
3097
|
-
const
|
|
3098
|
-
function
|
|
3104
|
+
const Cr = Object.assign(ls, { Group: cs });
|
|
3105
|
+
function Nn({ lines: t = 3 }) {
|
|
3099
3106
|
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)) });
|
|
3100
3107
|
}
|
|
3101
3108
|
function ss({ size: t = "medium" }) {
|
|
@@ -3107,13 +3114,13 @@ function as({ size: t = "medium" }) {
|
|
|
3107
3114
|
function rs({ height: t = 240 }) {
|
|
3108
3115
|
return /* @__PURE__ */ e("div", { className: "select-skeleton select-skel-block", style: { height: t } });
|
|
3109
3116
|
}
|
|
3110
|
-
const
|
|
3117
|
+
const Lr = Object.assign(
|
|
3111
3118
|
function({ lines: n }) {
|
|
3112
|
-
return /* @__PURE__ */ e(
|
|
3119
|
+
return /* @__PURE__ */ e(Nn, { lines: n });
|
|
3113
3120
|
},
|
|
3114
|
-
{ Body:
|
|
3121
|
+
{ Body: Nn, Display: ss, Thumbnail: as, Block: rs }
|
|
3115
3122
|
), os = { sm: "1rem", md: "1.25rem", lg: "1.5rem" };
|
|
3116
|
-
function
|
|
3123
|
+
function Ar({
|
|
3117
3124
|
source: t,
|
|
3118
3125
|
tone: n = "inherit",
|
|
3119
3126
|
size: l = "md"
|
|
@@ -3121,15 +3128,15 @@ function Lr({
|
|
|
3121
3128
|
const c = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" ");
|
|
3122
3129
|
return /* @__PURE__ */ e("span", { className: c, style: { "--select-icon-size": os[l] }, "aria-hidden": "true", children: /* @__PURE__ */ e(t, {}) });
|
|
3123
3130
|
}
|
|
3124
|
-
const
|
|
3131
|
+
const Er = P(function({ children: n, tone: l = "neutral", hideIcon: c = !1, className: s, ...a }, o) {
|
|
3125
3132
|
const i = l === "warning" || l === "critical" ? /* @__PURE__ */ e(Ul, {}) : /* @__PURE__ */ e(Bt, {});
|
|
3126
3133
|
return /* @__PURE__ */ m("div", { ref: o, ...a, className: `select-note select-note--${l}${s ? " " + s : ""}`, children: [
|
|
3127
3134
|
!c && /* @__PURE__ */ e("span", { className: "select-note__icon", children: i }),
|
|
3128
3135
|
/* @__PURE__ */ e("span", { className: "select-note__body", children: n })
|
|
3129
3136
|
] });
|
|
3130
|
-
}),
|
|
3137
|
+
}), Br = P(function({ children: n, className: l, ...c }, s) {
|
|
3131
3138
|
return /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-settinglist${l ? " " + l : ""}`, children: n });
|
|
3132
|
-
}),
|
|
3139
|
+
}), Fr = P(function({ control: n, title: l, badge: c, description: s, children: a, bodyOpen: o, className: i, ...r }, d) {
|
|
3133
3140
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-setting${i ? " " + i : ""}`, children: [
|
|
3134
3141
|
n && /* @__PURE__ */ e("div", { className: "select-setting__control", children: n }),
|
|
3135
3142
|
/* @__PURE__ */ m("div", { className: "select-setting__main", children: [
|
|
@@ -3147,7 +3154,7 @@ const Ar = P(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
3147
3154
|
))
|
|
3148
3155
|
] })
|
|
3149
3156
|
] });
|
|
3150
|
-
}),
|
|
3157
|
+
}), Ir = P(function({ title: n, description: l, headerAction: c, footer: s, children: a, tone: o = "default", flush: i = !1, className: r, ...d }, h) {
|
|
3151
3158
|
return /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-panel${o === "highlight" ? " select-panel--highlight" : ""}${r ? " " + r : ""}`, children: [
|
|
3152
3159
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-panel__header", children: [
|
|
3153
3160
|
/* @__PURE__ */ m("div", { className: "select-panel__heading", children: [
|
|
@@ -3161,7 +3168,7 @@ const Ar = P(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
3161
3168
|
] });
|
|
3162
3169
|
}), Pt = P(function({ content: n, title: l, label: c = "Mais informações", placement: s = "top", className: a, ...o }, i) {
|
|
3163
3170
|
return /* @__PURE__ */ e(
|
|
3164
|
-
|
|
3171
|
+
cn,
|
|
3165
3172
|
{
|
|
3166
3173
|
placement: s,
|
|
3167
3174
|
delay: 120,
|
|
@@ -3183,7 +3190,7 @@ const Ar = P(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
3183
3190
|
)
|
|
3184
3191
|
}
|
|
3185
3192
|
);
|
|
3186
|
-
}),
|
|
3193
|
+
}), Pr = P(function({ title: n, help: l, description: c, action: s, collapsible: a = !1, defaultOpen: o = !0, children: i, className: r, ...d }, h) {
|
|
3187
3194
|
const [u, f] = T(o);
|
|
3188
3195
|
return a ? /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-section select-section--collapsible${u ? " is-open" : ""}${r ? " " + r : ""}`, children: [
|
|
3189
3196
|
/* @__PURE__ */ m("button", { type: "button", className: "select-section__head select-section__head--toggle", "aria-expanded": u, onClick: () => f((g) => !g), children: [
|
|
@@ -3205,7 +3212,7 @@ const Ar = P(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
3205
3212
|
/* @__PURE__ */ e("div", { className: "select-section__body", children: i })
|
|
3206
3213
|
] });
|
|
3207
3214
|
});
|
|
3208
|
-
function
|
|
3215
|
+
function Rr({ tabs: t, value: n, onChange: l, end: c, className: s, ...a }) {
|
|
3209
3216
|
const o = Y(null), [i, r] = T({ left: 0, width: 0 });
|
|
3210
3217
|
Ee(() => {
|
|
3211
3218
|
const h = o.current;
|
|
@@ -3308,7 +3315,7 @@ function is({
|
|
|
3308
3315
|
] }) })
|
|
3309
3316
|
] });
|
|
3310
3317
|
}
|
|
3311
|
-
const
|
|
3318
|
+
const Dr = P(function({ sections: n, active: l, onSelect: c, header: s, className: a, ...o }, i) {
|
|
3312
3319
|
return /* @__PURE__ */ m("nav", { ref: i, ...o, className: `select-sidenav${a ? " " + a : ""}`, children: [
|
|
3313
3320
|
s && /* @__PURE__ */ e("div", { className: "select-sidenav__header", children: s }),
|
|
3314
3321
|
n.map((r, d) => /* @__PURE__ */ m("div", { className: "select-sidenav__section", children: [
|
|
@@ -3382,7 +3389,7 @@ const Rr = P(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3382
3389
|
] }) }),
|
|
3383
3390
|
s && /* @__PURE__ */ e("div", { className: "select-table__footer", children: s })
|
|
3384
3391
|
] });
|
|
3385
|
-
}),
|
|
3392
|
+
}), Tr = P(function({ name: n, secondary: l, src: c, className: s, ...a }, o) {
|
|
3386
3393
|
return /* @__PURE__ */ m("span", { ref: o, ...a, className: `select-usercell${s ? " " + s : ""}`, children: [
|
|
3387
3394
|
/* @__PURE__ */ e(Qc, { name: typeof n == "string" ? n : void 0, src: c }),
|
|
3388
3395
|
/* @__PURE__ */ m("span", { className: "select-usercell__text", children: [
|
|
@@ -3391,10 +3398,10 @@ const Rr = P(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3391
3398
|
] })
|
|
3392
3399
|
] });
|
|
3393
3400
|
});
|
|
3394
|
-
function
|
|
3401
|
+
function Mn({ children: t, onClick: n }) {
|
|
3395
3402
|
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 });
|
|
3396
3403
|
}
|
|
3397
|
-
const
|
|
3404
|
+
const $n = P(function({ children: n, align: l = "start", className: c, ...s }, a) {
|
|
3398
3405
|
return /* @__PURE__ */ e("div", { ref: a, ...s, role: "cell", className: `select-table__td select-table__cell--${l}${c ? " " + c : ""}`, children: n });
|
|
3399
3406
|
}), us = P(function({ icon: n, title: l, subtitle: c, action: s, className: a, ...o }, i) {
|
|
3400
3407
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-table-empty${a ? " " + a : ""}`, children: [
|
|
@@ -3411,8 +3418,30 @@ const Mn = P(function({ children: n, align: l = "start", className: c, ...s }, a
|
|
|
3411
3418
|
/* @__PURE__ */ e("span", { className: "select-menu__label", children: n }),
|
|
3412
3419
|
c && /* @__PURE__ */ e("span", { className: "select-menu__trailing", children: c })
|
|
3413
3420
|
] });
|
|
3421
|
+
}), Wr = P(function({ children: n, href: l, icon: c, trailing: s, external: a, tone: o = "default", className: i, ...r }, d) {
|
|
3422
|
+
const h = a ?? /^(https?:|mailto:|tel:)/i.test(l), u = s ?? (h ? /* @__PURE__ */ e(en, {}) : void 0);
|
|
3423
|
+
return /* @__PURE__ */ m(
|
|
3424
|
+
"a",
|
|
3425
|
+
{
|
|
3426
|
+
ref: d,
|
|
3427
|
+
...r,
|
|
3428
|
+
href: l,
|
|
3429
|
+
role: "menuitem",
|
|
3430
|
+
target: h ? "_blank" : r.target,
|
|
3431
|
+
rel: h ? "noreferrer" : r.rel,
|
|
3432
|
+
className: `select-menu__item select-menu__item--${o}${i ? " " + i : ""}`,
|
|
3433
|
+
children: [
|
|
3434
|
+
c && /* @__PURE__ */ e("span", { className: "select-menu__icon", children: c }),
|
|
3435
|
+
/* @__PURE__ */ e("span", { className: "select-menu__label", children: n }),
|
|
3436
|
+
u && /* @__PURE__ */ e("span", { className: "select-menu__trailing", children: u })
|
|
3437
|
+
]
|
|
3438
|
+
}
|
|
3439
|
+
);
|
|
3414
3440
|
});
|
|
3415
|
-
function
|
|
3441
|
+
function Or({ children: t }) {
|
|
3442
|
+
return /* @__PURE__ */ e("div", { className: "select-menu__heading", children: t });
|
|
3443
|
+
}
|
|
3444
|
+
function Hr() {
|
|
3416
3445
|
return /* @__PURE__ */ e("div", { className: "select-menu__divider", role: "separator" });
|
|
3417
3446
|
}
|
|
3418
3447
|
const ms = P(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, o) {
|
|
@@ -3420,24 +3449,24 @@ const ms = P(function({ children: n, onClick: l, active: c = !1, className: s, .
|
|
|
3420
3449
|
/* @__PURE__ */ e("span", { children: n }),
|
|
3421
3450
|
/* @__PURE__ */ e("span", { className: "select-menubtn__caret", "aria-hidden": "true", children: /* @__PURE__ */ e(be, {}) })
|
|
3422
3451
|
] });
|
|
3423
|
-
}),
|
|
3452
|
+
}), jr = P(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, o) {
|
|
3424
3453
|
return /* @__PURE__ */ m("button", { ref: o, ...a, type: "button", className: `select-chip${c ? " select-chip--active" : ""}${s ? " " + s : ""}`, onClick: l, children: [
|
|
3425
3454
|
!c && /* @__PURE__ */ e("span", { className: "select-chip__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(Je, {}) }),
|
|
3426
3455
|
n
|
|
3427
3456
|
] });
|
|
3428
|
-
}),
|
|
3457
|
+
}), Vr = P(function({ label: n, value: l, href: c, onCopy: s, className: a, ...o }, i) {
|
|
3429
3458
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-copyrow${a ? " " + a : ""}`, children: [
|
|
3430
3459
|
n && /* @__PURE__ */ e("span", { className: "select-copyrow__label", children: n }),
|
|
3431
3460
|
/* @__PURE__ */ m("div", { className: "select-copyrow__value", children: [
|
|
3432
3461
|
/* @__PURE__ */ e("span", { className: "select-copyrow__text", children: l }),
|
|
3433
3462
|
/* @__PURE__ */ m("div", { className: "select-copyrow__actions", children: [
|
|
3434
|
-
c && /* @__PURE__ */ e("a", { className: "select-iconbtn select-iconbtn--sm", href: c, target: "_blank", rel: "noreferrer", "aria-label": "Abrir", title: "Abrir", children: /* @__PURE__ */ e(
|
|
3463
|
+
c && /* @__PURE__ */ e("a", { className: "select-iconbtn select-iconbtn--sm", href: c, target: "_blank", rel: "noreferrer", "aria-label": "Abrir", title: "Abrir", children: /* @__PURE__ */ e(en, {}) }),
|
|
3435
3464
|
/* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Qt, {}), label: "Copiar", onClick: () => s == null ? void 0 : s(l) })
|
|
3436
3465
|
] })
|
|
3437
3466
|
] })
|
|
3438
3467
|
] });
|
|
3439
3468
|
});
|
|
3440
|
-
function
|
|
3469
|
+
function Zr({
|
|
3441
3470
|
value: t,
|
|
3442
3471
|
children: n,
|
|
3443
3472
|
truncate: l,
|
|
@@ -3454,7 +3483,7 @@ function Hr({
|
|
|
3454
3483
|
// Keep navigation isolated from any row handler; the text alone is the link target.
|
|
3455
3484
|
/* @__PURE__ */ e(Bl, { className: "select-copyid__text select-copyid__link", to: a, onClick: (u) => u.stopPropagation(), children: d })
|
|
3456
3485
|
) : /* @__PURE__ */ e("span", { className: "select-copyid__text", children: d }),
|
|
3457
|
-
/* @__PURE__ */ e(
|
|
3486
|
+
/* @__PURE__ */ e(cn, { content: i ? "Copiado" : c, children: /* @__PURE__ */ e(
|
|
3458
3487
|
"button",
|
|
3459
3488
|
{
|
|
3460
3489
|
type: "button",
|
|
@@ -3470,7 +3499,7 @@ function Hr({
|
|
|
3470
3499
|
) })
|
|
3471
3500
|
] });
|
|
3472
3501
|
}
|
|
3473
|
-
const
|
|
3502
|
+
const Gr = P(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !1, className: a, ...o }, i) {
|
|
3474
3503
|
const [r, d] = T(c);
|
|
3475
3504
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-collapsible${s ? " select-collapsible--plain" : ""}${r ? " is-open" : ""}${a ? " " + a : ""}`, children: [
|
|
3476
3505
|
/* @__PURE__ */ m("button", { type: "button", className: "select-collapsible__header", onClick: () => d((h) => !h), "aria-expanded": r, children: [
|
|
@@ -3479,7 +3508,7 @@ const jr = P(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3479
3508
|
] }),
|
|
3480
3509
|
/* @__PURE__ */ e("div", { className: "select-collapsible__bodywrap", children: /* @__PURE__ */ e("div", { className: "select-collapsible__bodyclip", "aria-hidden": !r, children: /* @__PURE__ */ e("div", { className: "select-collapsible__body", children: l }) }) })
|
|
3481
3510
|
] });
|
|
3482
|
-
}),
|
|
3511
|
+
}), Ur = P(function({ icon: n, title: l, description: c, action: s, onDismiss: a, className: o, ...i }, r) {
|
|
3483
3512
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-actioncard${o ? " " + o : ""}`, children: [
|
|
3484
3513
|
a && /* @__PURE__ */ e("div", { className: "select-actioncard__dismiss", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Ke, {}), label: "Dispensar", onClick: a }) }),
|
|
3485
3514
|
n && /* @__PURE__ */ e("span", { className: "select-actioncard__icon", children: n }),
|
|
@@ -3489,7 +3518,7 @@ const jr = P(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3489
3518
|
] }),
|
|
3490
3519
|
s && /* @__PURE__ */ e("div", { className: "select-actioncard__action", children: s })
|
|
3491
3520
|
] });
|
|
3492
|
-
}),
|
|
3521
|
+
}), Yr = P(function({ media: n, sublabel: l, title: c, badge: s, meta: a, accent: o = !0, onClick: i, className: r, ...d }, h) {
|
|
3493
3522
|
return /* @__PURE__ */ m("button", { ref: h, ...d, type: "button", className: `select-tile${r ? " " + r : ""}`, onClick: i, children: [
|
|
3494
3523
|
o && /* @__PURE__ */ e("span", { className: "select-tile__accent", "aria-hidden": "true" }),
|
|
3495
3524
|
/* @__PURE__ */ m("div", { className: "select-tile__main", children: [
|
|
@@ -3504,12 +3533,12 @@ const jr = P(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3504
3533
|
] }),
|
|
3505
3534
|
a && /* @__PURE__ */ e("div", { className: "select-tile__meta", children: a })
|
|
3506
3535
|
] });
|
|
3507
|
-
}),
|
|
3536
|
+
}), qr = P(function({ label: n, onClick: l, className: c, ...s }, a) {
|
|
3508
3537
|
return /* @__PURE__ */ m("button", { ref: a, ...s, type: "button", className: `select-tile select-tile--create${c ? " " + c : ""}`, onClick: l, children: [
|
|
3509
3538
|
/* @__PURE__ */ e("span", { className: "select-tile__plus", "aria-hidden": "true", children: /* @__PURE__ */ e(Je, {}) }),
|
|
3510
3539
|
/* @__PURE__ */ e("span", { className: "select-tile__createlabel", children: n })
|
|
3511
3540
|
] });
|
|
3512
|
-
}),
|
|
3541
|
+
}), zr = P(function({ avatar: n, name: l, badge: c, onClick: s, className: a, ...o }, i) {
|
|
3513
3542
|
return /* @__PURE__ */ m("button", { ref: i, ...o, type: "button", className: `select-wsswitcher${a ? " " + a : ""}`, onClick: s, "aria-haspopup": "menu", children: [
|
|
3514
3543
|
n && /* @__PURE__ */ e("span", { className: "select-wsswitcher__avatar", children: n }),
|
|
3515
3544
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__name", children: l }),
|
|
@@ -3594,7 +3623,7 @@ function Rt({
|
|
|
3594
3623
|
document.body
|
|
3595
3624
|
);
|
|
3596
3625
|
}
|
|
3597
|
-
function
|
|
3626
|
+
function Xr({ actions: t, label: n = "Ações" }) {
|
|
3598
3627
|
const [l, c] = T(!1);
|
|
3599
3628
|
return /* @__PURE__ */ e(
|
|
3600
3629
|
We,
|
|
@@ -3617,7 +3646,7 @@ function Yr({ actions: t, label: n = "Ações" }) {
|
|
|
3617
3646
|
}
|
|
3618
3647
|
);
|
|
3619
3648
|
}
|
|
3620
|
-
function
|
|
3649
|
+
function Kr({
|
|
3621
3650
|
open: t,
|
|
3622
3651
|
onClose: n,
|
|
3623
3652
|
onConfirm: l,
|
|
@@ -3655,7 +3684,7 @@ function qr({
|
|
|
3655
3684
|
}
|
|
3656
3685
|
);
|
|
3657
3686
|
}
|
|
3658
|
-
function
|
|
3687
|
+
function Jr({
|
|
3659
3688
|
open: t,
|
|
3660
3689
|
onClose: n,
|
|
3661
3690
|
onSubmit: l,
|
|
@@ -3771,7 +3800,7 @@ const gs = P(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3771
3800
|
] }),
|
|
3772
3801
|
b != null && /* @__PURE__ */ e("p", { className: "select-pagination__count", children: b })
|
|
3773
3802
|
] });
|
|
3774
|
-
}),
|
|
3803
|
+
}), Qr = "9.5rem", Yt = "select-datatable:hidden-cols:";
|
|
3775
3804
|
function bs(t) {
|
|
3776
3805
|
try {
|
|
3777
3806
|
const n = localStorage.getItem(Yt + t), l = n ? JSON.parse(n) : null;
|
|
@@ -3786,14 +3815,14 @@ function ys(t, n) {
|
|
|
3786
3815
|
} catch {
|
|
3787
3816
|
}
|
|
3788
3817
|
}
|
|
3789
|
-
function
|
|
3818
|
+
function wn(t) {
|
|
3790
3819
|
return t.hideable ?? !!t.title;
|
|
3791
3820
|
}
|
|
3792
|
-
const
|
|
3793
|
-
function
|
|
3821
|
+
const kn = "select-datatable:page-size:";
|
|
3822
|
+
function eo(t, n, l) {
|
|
3794
3823
|
const [c, s] = T(() => {
|
|
3795
3824
|
try {
|
|
3796
|
-
const o = Number(localStorage.getItem(
|
|
3825
|
+
const o = Number(localStorage.getItem(kn + t));
|
|
3797
3826
|
return Number.isInteger(o) && o > 0 && (!l || l.includes(o)) ? o : n;
|
|
3798
3827
|
} catch {
|
|
3799
3828
|
return n;
|
|
@@ -3802,7 +3831,7 @@ function Kr(t, n, l) {
|
|
|
3802
3831
|
return [c, (o) => {
|
|
3803
3832
|
s(o);
|
|
3804
3833
|
try {
|
|
3805
|
-
localStorage.setItem(
|
|
3834
|
+
localStorage.setItem(kn + t, String(o));
|
|
3806
3835
|
} catch {
|
|
3807
3836
|
}
|
|
3808
3837
|
}];
|
|
@@ -3811,7 +3840,7 @@ function xs(t, n, l) {
|
|
|
3811
3840
|
const c = t == null || t === "", s = n == null || n === "";
|
|
3812
3841
|
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" });
|
|
3813
3842
|
}
|
|
3814
|
-
function
|
|
3843
|
+
function to({
|
|
3815
3844
|
columns: t,
|
|
3816
3845
|
items: n,
|
|
3817
3846
|
getId: l,
|
|
@@ -3825,7 +3854,7 @@ function Jr({
|
|
|
3825
3854
|
filters: h,
|
|
3826
3855
|
columnsKey: u
|
|
3827
3856
|
}) {
|
|
3828
|
-
const [f, g] = T(() => u ? bs(u) : []), [v, x] = T(!1), [N, k] = T(!1), _ = ye(() => new Set(f), [f]), p = t.filter(
|
|
3857
|
+
const [f, g] = T(() => u ? bs(u) : []), [v, x] = T(!1), [N, k] = T(!1), _ = ye(() => new Set(f), [f]), p = t.filter(wn), b = p.length > 0 && p.every((R) => _.has(R.key)), S = (R) => !b && _.has(R.key) && wn(R), $ = t.filter((R) => !S(R)), M = p.filter((R) => !S(R)), [w, y] = T(null), C = (R) => {
|
|
3829
3858
|
g((D) => {
|
|
3830
3859
|
const O = !D.includes(R.key), G = O ? [...D, R.key] : D.filter((q) => q !== R.key);
|
|
3831
3860
|
return u && ys(u, G), O && y((q) => q && q.key === R.key ? null : q), G;
|
|
@@ -3890,7 +3919,7 @@ function Jr({
|
|
|
3890
3919
|
/* @__PURE__ */ e(ds, { columns: E, empty: F, title: i, help: r, filters: h, action: W ? /* @__PURE__ */ m("span", { className: "select-datatable__toolbar", children: [
|
|
3891
3920
|
d,
|
|
3892
3921
|
W
|
|
3893
|
-
] }) : d, children: c ? Array.from({ length: 5 }, (R, D) => /* @__PURE__ */ e(
|
|
3922
|
+
] }) : d, children: c ? Array.from({ length: 5 }, (R, D) => /* @__PURE__ */ e(Mn, { children: $.map((O, G) => /* @__PURE__ */ e($n, { align: O.align, width: O.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, G)) }, `skeleton-${D}`)) : A.map((R) => /* @__PURE__ */ e(Mn, { onClick: o ? () => o(R) : void 0, children: $.map((D, O) => /* @__PURE__ */ e($n, { align: D.align, width: D.width, children: D.render(R) }, O)) }, l(R))) }),
|
|
3894
3923
|
a && /* @__PURE__ */ m("div", { className: "select-datatable__pagination", children: [
|
|
3895
3924
|
a.pageSizeOptions && a.pageSizeOptions.length > 1 && a.onPageSizeChange && /* @__PURE__ */ e("div", { className: "select-datatable__pagesize", children: /* @__PURE__ */ e(
|
|
3896
3925
|
We,
|
|
@@ -3973,12 +4002,12 @@ const Ns = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], Ms = [
|
|
|
3973
4002
|
"Outubro",
|
|
3974
4003
|
"Novembro",
|
|
3975
4004
|
"Dezembro"
|
|
3976
|
-
], Te = (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),
|
|
4005
|
+
], Te = (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), Sn = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), Cn = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), Ln = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
|
|
3977
4006
|
function $s(t) {
|
|
3978
4007
|
const n = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(t || "");
|
|
3979
4008
|
return n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]), Number(n[4] ?? 0), Number(n[5] ?? 0)) : null;
|
|
3980
4009
|
}
|
|
3981
|
-
function
|
|
4010
|
+
function An(t, n) {
|
|
3982
4011
|
const l = `${t.getFullYear()}-${Te(t.getMonth() + 1)}-${Te(t.getDate())}`;
|
|
3983
4012
|
return n ? `${l}T${Te(t.getHours())}:${Te(t.getMinutes())}` : l;
|
|
3984
4013
|
}
|
|
@@ -3987,15 +4016,15 @@ function ws(t, n) {
|
|
|
3987
4016
|
return n ? `${l} ${Te(t.getHours())}:${Te(t.getMinutes())}` : l;
|
|
3988
4017
|
}
|
|
3989
4018
|
const ks = P(function({ label: n, value: l, onChange: c, showTime: s = !1, placeholder: a, required: o, disabled: i, error: r, hint: d, minDate: h, maxDate: u, clearable: f = !0, id: g, className: v, ...x }, N) {
|
|
3990
|
-
const k = ne(), _ = g ?? k, [p, b] = T(!1), S = $s(l), [$, M] = T(() => vt(S ?? /* @__PURE__ */ new Date())), w = h ? ct(h) : null, y = u ? ct(u) : null, C = (D) => !!w && ct(D) < w || !!y && ct(D) > y, L =
|
|
4019
|
+
const k = ne(), _ = g ?? k, [p, b] = T(!1), S = $s(l), [$, M] = T(() => vt(S ?? /* @__PURE__ */ new Date())), w = h ? ct(h) : null, y = u ? ct(u) : null, C = (D) => !!w && ct(D) < w || !!y && ct(D) > y, L = Sn(vt($), -vt($).getDay()), B = Array.from({ length: 42 }, (D, O) => Sn(L, O)), A = ct(/* @__PURE__ */ new Date()), E = () => {
|
|
3991
4020
|
i || (M(vt(S ?? /* @__PURE__ */ new Date())), b((D) => !D));
|
|
3992
4021
|
}, F = (D) => {
|
|
3993
4022
|
if (C(D)) return;
|
|
3994
4023
|
const O = new Date(D);
|
|
3995
|
-
s && O.setHours((S == null ? void 0 : S.getHours()) ?? 0, (S == null ? void 0 : S.getMinutes()) ?? 0, 0, 0), c(
|
|
4024
|
+
s && O.setHours((S == null ? void 0 : S.getHours()) ?? 0, (S == null ? void 0 : S.getMinutes()) ?? 0, 0, 0), c(An(O, s)), s || b(!1);
|
|
3996
4025
|
}, W = (D) => {
|
|
3997
4026
|
const [O = "", G = ""] = D.split(":"), q = Number(O), ie = Number(G), fe = new Date(S ?? A);
|
|
3998
|
-
fe.setHours(Number.isFinite(q) ? q : 0, Number.isFinite(ie) ? ie : 0, 0, 0), c(
|
|
4027
|
+
fe.setHours(Number.isFinite(q) ? q : 0, Number.isFinite(ie) ? ie : 0, 0, 0), c(An(fe, !0));
|
|
3999
4028
|
}, Z = () => {
|
|
4000
4029
|
c(""), b(!1);
|
|
4001
4030
|
}, R = /* @__PURE__ */ m("div", { className: `select-input-wrap${r ? " select-input-wrap--error" : ""}`, children: [
|
|
@@ -4019,18 +4048,18 @@ const ks = P(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
4019
4048
|
n && /* @__PURE__ */ e(lt, { htmlFor: _, label: o ? `${n} *` : n }),
|
|
4020
4049
|
/* @__PURE__ */ e("div", { className: "select-datefield", children: /* @__PURE__ */ e(We, { active: p, onClose: () => b(!1), placement: "bottom-start", role: "dialog", activator: R, children: /* @__PURE__ */ m("div", { className: "select-datefield__pop", children: [
|
|
4021
4050
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
4022
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => M((D) =>
|
|
4051
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => M((D) => Cn(D, -1)), children: /* @__PURE__ */ e(Kt, {}) }),
|
|
4023
4052
|
/* @__PURE__ */ m("span", { className: "select-datepicker__monthlabel", children: [
|
|
4024
4053
|
Ms[$.getMonth()],
|
|
4025
4054
|
" ",
|
|
4026
4055
|
$.getFullYear()
|
|
4027
4056
|
] }),
|
|
4028
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => M((D) =>
|
|
4057
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => M((D) => Cn(D, 1)), children: /* @__PURE__ */ e(dt, {}) })
|
|
4029
4058
|
] }),
|
|
4030
4059
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
4031
4060
|
Ns.map((D) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: D }, D)),
|
|
4032
4061
|
B.map((D) => {
|
|
4033
|
-
const O = D.getMonth() !== $.getMonth(), G = !!S &&
|
|
4062
|
+
const O = D.getMonth() !== $.getMonth(), G = !!S && Ln(D, S), q = "select-datepicker__daybtn" + (G ? " is-selected" : "") + (Ln(D, A) && !G ? " is-today" : "") + (O ? " is-outside" : "");
|
|
4034
4063
|
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: q, disabled: C(D), onClick: () => F(D), children: D.getDate() }) }, D.getTime());
|
|
4035
4064
|
})
|
|
4036
4065
|
] }),
|
|
@@ -4147,7 +4176,7 @@ function Ss({
|
|
|
4147
4176
|
}
|
|
4148
4177
|
);
|
|
4149
4178
|
}
|
|
4150
|
-
const
|
|
4179
|
+
const no = P(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: o, className: i, ...r }, d) {
|
|
4151
4180
|
const [h, u] = T([]), [f, g] = T(null), [v, x] = T(!1), N = (M) => (l[M.key] ?? "").trim() !== "", k = (M) => !!M.pinned || N(M) || h.includes(M.key), _ = n.filter(k), p = n.filter((M) => !k(M)), b = n.filter(N), S = () => {
|
|
4152
4181
|
u([]), g(null), s();
|
|
4153
4182
|
}, $ = (M) => {
|
|
@@ -4258,7 +4287,7 @@ const Qr = P(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4258
4287
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: S, children: "Limpar tudo" })
|
|
4259
4288
|
] })
|
|
4260
4289
|
] });
|
|
4261
|
-
}),
|
|
4290
|
+
}), lo = P(function({ label: n, options: l, selected: c, onChange: s, placeholder: a = "Selecionar…", hint: o, error: i, onBlur: r, size: d = "md", className: h, ...u }, f) {
|
|
4262
4291
|
const [g, v] = T(!1), [x, N] = T(""), k = 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);
|
|
4263
4292
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-field${d === "sm" ? " select-field--sm" : ""}${h ? " " + h : ""}`, children: [
|
|
4264
4293
|
n && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ e("span", { className: "select-field__label", children: n }) }),
|
|
@@ -4334,7 +4363,7 @@ const Qr = P(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4334
4363
|
),
|
|
4335
4364
|
i ? /* @__PURE__ */ e("p", { className: "select-field__error", children: i }) : o ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: o }) : null
|
|
4336
4365
|
] });
|
|
4337
|
-
}),
|
|
4366
|
+
}), co = P(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: o = !1, className: i, ...r }, d) {
|
|
4338
4367
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-surface${i ? " " + i : ""}`, children: [
|
|
4339
4368
|
(n || l || c) && /* @__PURE__ */ m("div", { className: "select-surface__header", children: [
|
|
4340
4369
|
/* @__PURE__ */ m("div", { className: "select-surface__heading", children: [
|
|
@@ -4347,7 +4376,7 @@ const Qr = P(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4347
4376
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4348
4377
|
] });
|
|
4349
4378
|
}), Nl = Xt(null), Cs = 220, Ls = 4e3, As = 8, Es = 0.04, Bs = 5;
|
|
4350
|
-
function
|
|
4379
|
+
function so({ children: t }) {
|
|
4351
4380
|
const [n, l] = T([]), c = Y(0), s = Y(/* @__PURE__ */ new Map()), a = Fe((d) => {
|
|
4352
4381
|
l((h) => h.filter((u) => u.id !== d)), s.current.delete(d);
|
|
4353
4382
|
}, []), o = Fe(
|
|
@@ -4397,12 +4426,12 @@ function no({ children: t }) {
|
|
|
4397
4426
|
)
|
|
4398
4427
|
] });
|
|
4399
4428
|
}
|
|
4400
|
-
function
|
|
4429
|
+
function ao() {
|
|
4401
4430
|
const t = zt(Nl);
|
|
4402
4431
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4403
4432
|
return t;
|
|
4404
4433
|
}
|
|
4405
|
-
const Fs = { desktop: "100%", mobile: 390 },
|
|
4434
|
+
const Fs = { desktop: "100%", mobile: 390 }, ro = P(function({ src: n, title: l = "Pré-visualização", height: c = 560, initialDevice: s = "desktop", showDeviceToggle: a = !0, emptyLabel: o = "Salve para gerar a pré-visualização.", className: i, ...r }, d) {
|
|
4406
4435
|
const [h, u] = T(s), [f, g] = T(0), [v, x] = T(!0), N = n ? `${n}${n.includes("?") ? "&" : "?"}_pv=${f}` : "", k = () => {
|
|
4407
4436
|
x(!0), g((_) => _ + 1);
|
|
4408
4437
|
};
|
|
@@ -4442,7 +4471,7 @@ const Fs = { desktop: "100%", mobile: 390 }, co = P(function({ src: n, title: l
|
|
|
4442
4471
|
rel: "noreferrer",
|
|
4443
4472
|
"aria-label": "Abrir em nova aba",
|
|
4444
4473
|
title: "Abrir em nova aba",
|
|
4445
|
-
children: /* @__PURE__ */ e(
|
|
4474
|
+
children: /* @__PURE__ */ e(en, {})
|
|
4446
4475
|
}
|
|
4447
4476
|
)
|
|
4448
4477
|
] })
|
|
@@ -4479,19 +4508,19 @@ function Ts() {
|
|
|
4479
4508
|
return !1;
|
|
4480
4509
|
}
|
|
4481
4510
|
}
|
|
4482
|
-
function
|
|
4511
|
+
function En(t) {
|
|
4483
4512
|
try {
|
|
4484
4513
|
localStorage.setItem(Ml, t ? "1" : "0");
|
|
4485
4514
|
} catch {
|
|
4486
4515
|
}
|
|
4487
4516
|
}
|
|
4488
|
-
function
|
|
4517
|
+
function oo({ children: t }) {
|
|
4489
4518
|
const [n, l] = T(Ts), c = Fe((o) => {
|
|
4490
|
-
l(o),
|
|
4519
|
+
l(o), En(o);
|
|
4491
4520
|
}, []), s = Fe(() => {
|
|
4492
4521
|
l((o) => {
|
|
4493
4522
|
const i = !o;
|
|
4494
|
-
return
|
|
4523
|
+
return En(i), i;
|
|
4495
4524
|
});
|
|
4496
4525
|
}, []), a = ye(() => ({ hidden: n, toggle: s, setHidden: c }), [n, s, c]);
|
|
4497
4526
|
return /* @__PURE__ */ e($l.Provider, { value: a, children: t });
|
|
@@ -4530,7 +4559,7 @@ const Os = new Intl.NumberFormat("pt-BR", {
|
|
|
4530
4559
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4531
4560
|
] });
|
|
4532
4561
|
});
|
|
4533
|
-
function
|
|
4562
|
+
function io() {
|
|
4534
4563
|
const { hidden: t, toggle: n } = wl();
|
|
4535
4564
|
return /* @__PURE__ */ e(
|
|
4536
4565
|
ge,
|
|
@@ -4543,7 +4572,7 @@ function ao() {
|
|
|
4543
4572
|
}
|
|
4544
4573
|
);
|
|
4545
4574
|
}
|
|
4546
|
-
const
|
|
4575
|
+
const uo = P(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: o, ...i }, r) {
|
|
4547
4576
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-balance${o ? " " + o : ""}`, children: [
|
|
4548
4577
|
/* @__PURE__ */ m("div", { className: "select-balance__head", children: [
|
|
4549
4578
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -4574,7 +4603,7 @@ const ro = P(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4574
4603
|
] }, d.label)) })
|
|
4575
4604
|
] })
|
|
4576
4605
|
] });
|
|
4577
|
-
}),
|
|
4606
|
+
}), ho = P(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: o, ...i }, r) {
|
|
4578
4607
|
const d = c ?? n - l.reduce((h, u) => h + u.cents, 0);
|
|
4579
4608
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-fees${o ? " " + o : ""}`, children: [
|
|
4580
4609
|
/* @__PURE__ */ m("div", { className: "select-fees__row", children: [
|
|
@@ -4594,7 +4623,7 @@ const ro = P(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4594
4623
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(at, { cents: d }) })
|
|
4595
4624
|
] })
|
|
4596
4625
|
] });
|
|
4597
|
-
}),
|
|
4626
|
+
}), po = P(function({ label: n, value: l, caption: c, chart: s, help: a, tone: o, bare: i = !1, className: r, ...d }, h) {
|
|
4598
4627
|
return /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-kpi${i ? " select-kpi--bare" : ""}${r ? " " + r : ""}`, children: [
|
|
4599
4628
|
/* @__PURE__ */ m("span", { className: `select-kpi__label${a != null ? " select-kpi__label--help" : ""}`, children: [
|
|
4600
4629
|
a != null ? /* @__PURE__ */ e("span", { className: "select-kpi__labeltext", children: n }) : n,
|
|
@@ -4604,7 +4633,7 @@ const ro = P(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4604
4633
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
4605
4634
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
4606
4635
|
] });
|
|
4607
|
-
}),
|
|
4636
|
+
}), mo = P(function({ title: n, caption: l, action: c, help: s, loading: a = !1, hideValues: o = !1, height: i = 260, flush: r = !1, insight: d, insightTone: h = "neutral", children: u, className: f, ...g }, v) {
|
|
4608
4637
|
const x = i === "auto" ? void 0 : `${i / 16}rem`, N = i === "auto" ? "10rem" : `${i / 16}rem`;
|
|
4609
4638
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-chartcard${f ? " " + f : ""}`, children: [
|
|
4610
4639
|
(n || c || l) && /* @__PURE__ */ m("div", { className: "select-chartcard__head", children: [
|
|
@@ -4680,7 +4709,7 @@ function Vs(t, n = 5) {
|
|
|
4680
4709
|
for (let r = 0; r <= o + a / 2; r += a) i.push(Math.round(r * 1e6) / 1e6);
|
|
4681
4710
|
return { max: o, values: i };
|
|
4682
4711
|
}
|
|
4683
|
-
function
|
|
4712
|
+
function Bn(t) {
|
|
4684
4713
|
return t.map((n, l) => `${l === 0 ? "M" : "L"}${n[0].toFixed(2)},${n[1].toFixed(2)}`).join(" ");
|
|
4685
4714
|
}
|
|
4686
4715
|
function Ge(t) {
|
|
@@ -4727,7 +4756,7 @@ function it(t, n, l, c, s, a) {
|
|
|
4727
4756
|
const [o, i] = gt(t, n, l, s), [r, d] = gt(t, n, l, a), [h, u] = gt(t, n, c, a), [f, g] = gt(t, n, c, s), v = a - s > 180 ? 1 : 0;
|
|
4728
4757
|
return `M${o.toFixed(2)},${i.toFixed(2)} A${l},${l} 0 ${v} 1 ${r.toFixed(2)},${d.toFixed(2)} L${h.toFixed(2)},${u.toFixed(2)} A${c},${c} 0 ${v} 0 ${f.toFixed(2)},${g.toFixed(2)} Z`;
|
|
4729
4758
|
}
|
|
4730
|
-
const
|
|
4759
|
+
const Fn = [
|
|
4731
4760
|
"var(--select-chart-1)",
|
|
4732
4761
|
"var(--select-chart-2)",
|
|
4733
4762
|
"var(--select-chart-3)",
|
|
@@ -4735,14 +4764,14 @@ const Bn = [
|
|
|
4735
4764
|
"var(--select-chart-5)"
|
|
4736
4765
|
];
|
|
4737
4766
|
function j(t) {
|
|
4738
|
-
return
|
|
4767
|
+
return Fn[t % Fn.length];
|
|
4739
4768
|
}
|
|
4740
4769
|
function z(t) {
|
|
4741
4770
|
const n = Math.abs(t);
|
|
4742
4771
|
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));
|
|
4743
4772
|
}
|
|
4744
4773
|
const Ie = { top: 16, right: 22, bottom: 32, left: 48 };
|
|
4745
|
-
function
|
|
4774
|
+
function fo({ data: t, color: n, height: l = 40, className: c, ...s }) {
|
|
4746
4775
|
const { ref: a, width: o } = ce(l), i = n ?? j(0), r = ne(), d = 4;
|
|
4747
4776
|
let h = null;
|
|
4748
4777
|
if (o > 0 && t.length > 1) {
|
|
@@ -4802,7 +4831,7 @@ function J({ tip: t, className: n, ...l }) {
|
|
|
4802
4831
|
] }, r))
|
|
4803
4832
|
] });
|
|
4804
4833
|
}
|
|
4805
|
-
function
|
|
4834
|
+
function _o({ data: t, height: n = 240, color: l, format: c = z, className: s, ...a }) {
|
|
4806
4835
|
const { ref: o, width: i } = ce(n), r = K(), d = ne(), h = l ?? j(0), u = xe(Math.max(0, ...t.map((p) => p.value))), f = Ie, 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), k = f.top + v, _ = (p) => k - p / u * v;
|
|
4807
4836
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: o, children: [
|
|
4808
4837
|
i > 0 && /* @__PURE__ */ m("svg", { width: i, height: n, className: "select-chart", children: [
|
|
@@ -4853,7 +4882,7 @@ function po({ data: t, height: n = 240, color: l, format: c = z, className: s, .
|
|
|
4853
4882
|
/* @__PURE__ */ e(J, { tip: r.tip })
|
|
4854
4883
|
] });
|
|
4855
4884
|
}
|
|
4856
|
-
function
|
|
4885
|
+
function vo({ series: t, labels: n, height: l = 240, format: c = z, area: s = !1, className: a, ...o }) {
|
|
4857
4886
|
const { ref: i, width: r } = ce(l), d = K(), h = ne(), [u, f] = T(null), { max: g, values: v } = Vs(Math.max(0, ...t.flatMap((w) => w.data))), x = Ie, N = Math.max(0, r - x.left - x.right), k = l - x.top - x.bottom, _ = n.length, p = (w) => x.left + (_ <= 1 ? N / 2 : w / (_ - 1) * N), b = (w) => x.top + k - w / g * k, S = _ > 1 ? N / (_ - 1) : N, $ = Math.max(1, Math.ceil(_ / 7)), M = x.top + k;
|
|
4858
4887
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
4859
4888
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: l, className: "select-chart", children: [
|
|
@@ -4940,7 +4969,7 @@ function mo({ series: t, labels: n, height: l = 240, format: c = z, area: s = !1
|
|
|
4940
4969
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
4941
4970
|
] });
|
|
4942
4971
|
}
|
|
4943
|
-
function
|
|
4972
|
+
function go({ series: t, labels: n, height: l = 240, format: c = z, className: s, ...a }) {
|
|
4944
4973
|
const { ref: o, width: i } = ce(l), r = K(), d = ne(), [h, u] = T(null), f = n.length, g = new Array(f).fill(0), v = t.map(
|
|
4945
4974
|
(y) => y.data.map((C, L) => (g[L] = (g[L] ?? 0) + (C ?? 0), g[L]))
|
|
4946
4975
|
), x = xe(Math.max(0, ...g)), N = Ie, k = Math.max(0, i - N.left - N.right), _ = l - N.top - N.bottom, p = (y) => N.left + (f <= 1 ? k / 2 : y / (f - 1) * k), b = (y) => N.top + _ - y / x * _, S = f > 1 ? k / (f - 1) : k, $ = Math.max(1, Math.ceil(f / 7)), M = N.top + _, w = v[v.length - 1];
|
|
@@ -5006,7 +5035,7 @@ function fo({ series: t, labels: n, height: l = 240, format: c = z, className: s
|
|
|
5006
5035
|
/* @__PURE__ */ e(J, { tip: r.tip })
|
|
5007
5036
|
] });
|
|
5008
5037
|
}
|
|
5009
|
-
function
|
|
5038
|
+
function bo({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = z, formatLine: a = (r) => `${Math.round(r)}%`, className: o, ...i }) {
|
|
5010
5039
|
const { ref: r, width: d } = ce(c), h = K(), u = ne(), [f, g] = T(null), v = { ...Ie, right: 58 }, x = Math.max(0, d - v.left - v.right), N = c - v.top - v.bottom, k = t.length, _ = xe(Math.max(0, ...n.data)), p = xe(Math.max(0, ...l.data)), b = k > 0 ? x / k : 0, S = Math.min(b * 0.5, 36), $ = Math.max(1, Math.ceil(k / 8)), M = n.color ?? j(0), w = l.color ?? j(1), y = v.top + N, C = (E) => y - E / _ * N, L = (E) => y - E / p * N, B = (E) => v.left + b * E + b / 2, A = l.data.map((E, F) => [B(F), L(E)]);
|
|
5011
5040
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${o ? " " + o : ""}`, ref: r, children: [
|
|
5012
5041
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: c, className: "select-chart", children: [
|
|
@@ -5104,7 +5133,7 @@ function _o({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = z, fo
|
|
|
5104
5133
|
/* @__PURE__ */ e(J, { tip: h.tip })
|
|
5105
5134
|
] });
|
|
5106
5135
|
}
|
|
5107
|
-
const
|
|
5136
|
+
const yo = P(function({ segments: n, size: l = 200, thickness: c = 26, format: s = z, centerLabel: a, legend: o = !0, gap: i = 2, pie: r = !1, className: d, ...h }, u) {
|
|
5108
5137
|
const f = K(), g = ne(), v = Y(null), x = Ct(v, l), N = n.reduce(($, M) => $ + M.value, 0) || 1, k = x / 2, _ = x / 2, p = x / 2 - 2, b = r ? 0 : p - c;
|
|
5109
5138
|
let S = 0;
|
|
5110
5139
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-donut-wrap${d ? " " + d : ""}`, children: [
|
|
@@ -5153,7 +5182,7 @@ const vo = P(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
5153
5182
|
/* @__PURE__ */ e(J, { tip: f.tip })
|
|
5154
5183
|
] });
|
|
5155
5184
|
});
|
|
5156
|
-
function
|
|
5185
|
+
function xo({ series: t, labels: n, height: l = 240, format: c = z, stacked: s = !1, className: a, ...o }) {
|
|
5157
5186
|
const { ref: i, width: r } = ce(l), d = K(), h = ne(), u = n.length, f = t.length || 1, g = n.map((M, w) => t.reduce((y, C) => y + (C.data[w] ?? 0), 0)), v = xe(s ? Math.max(0, ...g) : Math.max(0, ...t.flatMap((M) => M.data))), x = Ie, N = Math.max(0, r - x.left - x.right), k = l - x.top - x.bottom, _ = x.top + k, p = u ? N / u : 0, b = (M) => _ - M / v * k, S = Math.min(p * 0.72, f * 40), $ = s ? Math.min(p * 0.5, 44) : S / f;
|
|
5158
5187
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5159
5188
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: l, className: "select-chart", children: [
|
|
@@ -5245,7 +5274,7 @@ function go({ series: t, labels: n, height: l = 240, format: c = z, stacked: s =
|
|
|
5245
5274
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
5246
5275
|
] });
|
|
5247
5276
|
}
|
|
5248
|
-
const
|
|
5277
|
+
const No = P(function({ stages: n, format: l = z, className: c, ...s }, a) {
|
|
5249
5278
|
const o = Math.max(1, ...n.map((i) => i.value));
|
|
5250
5279
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((i, r) => {
|
|
5251
5280
|
const d = r > 0 ? n[r - 1].value || 1 : i.value || 1, h = r > 0 ? i.value / d * 100 : 100, u = j(r);
|
|
@@ -5274,15 +5303,15 @@ const bo = P(function({ stages: n, format: l = z, className: c, ...s }, a) {
|
|
|
5274
5303
|
function Zs(t) {
|
|
5275
5304
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
5276
5305
|
}
|
|
5277
|
-
function
|
|
5306
|
+
function In(t, n, l, c) {
|
|
5278
5307
|
const s = Math.PI + c * Math.PI;
|
|
5279
5308
|
return [t + l * Math.cos(s), n + l * Math.sin(s)];
|
|
5280
5309
|
}
|
|
5281
|
-
function
|
|
5282
|
-
const [a, o] =
|
|
5310
|
+
function Pn(t, n, l, c, s) {
|
|
5311
|
+
const [a, o] = In(t, n, l, c), [i, r] = In(t, n, l, s);
|
|
5283
5312
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${l} ${l} 0 0 1 ${i.toFixed(2)} ${r.toFixed(2)}`;
|
|
5284
5313
|
}
|
|
5285
|
-
const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`,
|
|
5314
|
+
const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`, Mo = P(function({ value: n, label: l, caption: c, size: s = 220, thickness: a, color: o, format: i = Gs, className: r, ...d }, h) {
|
|
5286
5315
|
const u = Zs(n), f = ne(), g = a ?? Math.max(8, Math.round(s * 0.075)), v = g / 2 + 2, x = s / 2 - v, N = s / 2, k = s / 2, _ = k + v, p = rc({ value: u, format: i });
|
|
5287
5316
|
return /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-gauge${r ? " " + r : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
5288
5317
|
/* @__PURE__ */ m("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${_}` }, children: [
|
|
@@ -5295,7 +5324,7 @@ const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5295
5324
|
"path",
|
|
5296
5325
|
{
|
|
5297
5326
|
className: "select-gauge__track",
|
|
5298
|
-
d:
|
|
5327
|
+
d: Pn(N, k, x, 0, 1),
|
|
5299
5328
|
fill: "none",
|
|
5300
5329
|
strokeWidth: g,
|
|
5301
5330
|
strokeLinecap: "round"
|
|
@@ -5305,7 +5334,7 @@ const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5305
5334
|
"path",
|
|
5306
5335
|
{
|
|
5307
5336
|
className: "select-gauge__arc",
|
|
5308
|
-
d:
|
|
5337
|
+
d: Pn(N, k, x, 0, u / 100),
|
|
5309
5338
|
fill: "none",
|
|
5310
5339
|
stroke: o ?? `url(#${f})`,
|
|
5311
5340
|
strokeWidth: g,
|
|
@@ -5321,7 +5350,7 @@ const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5321
5350
|
] }),
|
|
5322
5351
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5323
5352
|
] });
|
|
5324
|
-
}),
|
|
5353
|
+
}), $o = P(function({ columns: n, rows: l, format: c = z, formatValue: s, color: a = "var(--select-chart-1)", showValues: o = !0, min: i, max: r, cellSize: d = 40, maxCellSize: h = 96, cellHeight: u = 30, className: f, ...g }, v) {
|
|
5325
5354
|
const x = K(), N = l.flatMap((M) => M.values).filter((M) => M != null && Number.isFinite(M)), k = i ?? (N.length ? Math.min(...N) : 0), p = (r ?? (N.length ? Math.max(...N) : 1)) - k || 1, b = { "--heat-color": a }, S = {
|
|
5326
5355
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${d}px, ${Math.max(d, h)}px))`,
|
|
5327
5356
|
width: "fit-content",
|
|
@@ -5372,7 +5401,7 @@ const Gs = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5372
5401
|
/* @__PURE__ */ e(J, { tip: x.tip })
|
|
5373
5402
|
] });
|
|
5374
5403
|
});
|
|
5375
|
-
function
|
|
5404
|
+
function wo({
|
|
5376
5405
|
items: t,
|
|
5377
5406
|
format: n = z,
|
|
5378
5407
|
color: l,
|
|
@@ -5406,7 +5435,7 @@ function No({
|
|
|
5406
5435
|
] }, `${a.label}-${o}`);
|
|
5407
5436
|
}) });
|
|
5408
5437
|
}
|
|
5409
|
-
const Wt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0,
|
|
5438
|
+
const Wt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, ko = P(function({ series: n, size: l = 200, thickness: c = 14, gap: s = 8, format: a = (u) => `${Math.round(u)}%`, centerLabel: o, legend: i = !0, className: r, ...d }, h) {
|
|
5410
5439
|
const u = ne(), f = l / 2, g = l / 2;
|
|
5411
5440
|
return /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
5412
5441
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5451,12 +5480,12 @@ const Wt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, Mo = P
|
|
|
5451
5480
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: a(Wt(v.value)) })
|
|
5452
5481
|
] }, x)) })
|
|
5453
5482
|
] });
|
|
5454
|
-
}),
|
|
5455
|
-
function
|
|
5483
|
+
}), Rn = 6.1, Ot = 12, Dn = 56, Us = 0.4;
|
|
5484
|
+
function So({ data: t, height: n, color: l, format: c = z, formatValue: s, distributed: a = !0, labelWidth: o, className: i, ...r }) {
|
|
5456
5485
|
const g = n ?? t.length * 36 + 6 + 26, { ref: v, width: x } = ce(g), N = K(), k = ne(), _ = xe(Math.max(0, ...t.map((E) => E.value))), p = t.reduce((E, F) => Math.max(E, F.label.length), 0), b = Math.min(
|
|
5457
|
-
Math.max(
|
|
5458
|
-
Math.max(
|
|
5459
|
-
), S = o ?? b, $ = Math.max(3, Math.floor((S - Ot) /
|
|
5486
|
+
Math.max(Dn, p * Rn + Ot),
|
|
5487
|
+
Math.max(Dn, x * Us)
|
|
5488
|
+
), S = o ?? b, $ = Math.max(3, Math.floor((S - Ot) / Rn)), M = (E) => E.length <= $ ? E : `${E.slice(0, $ - 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 = (E) => S + E / _ * w, A = (E, F) => E.color ?? (a ? j(F) : l ?? j(0));
|
|
5460
5489
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${i ? " " + i : ""}`, ref: v, children: [
|
|
5461
5490
|
x > 0 && /* @__PURE__ */ m("svg", { width: x, height: g, className: "select-chart", children: [
|
|
5462
5491
|
/* @__PURE__ */ e("defs", { children: t.map((E, F) => {
|
|
@@ -5523,7 +5552,7 @@ function $o({ data: t, height: n, color: l, format: c = z, formatValue: s, distr
|
|
|
5523
5552
|
/* @__PURE__ */ e(J, { tip: N.tip })
|
|
5524
5553
|
] });
|
|
5525
5554
|
}
|
|
5526
|
-
function
|
|
5555
|
+
function Co({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
5527
5556
|
const { ref: a, width: o } = ce(n), i = K(), r = ne();
|
|
5528
5557
|
let d = 0;
|
|
5529
5558
|
const h = t.map(($) => {
|
|
@@ -5593,7 +5622,7 @@ function wo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
5593
5622
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
5594
5623
|
] });
|
|
5595
5624
|
}
|
|
5596
|
-
const
|
|
5625
|
+
const Tn = (t) => Math.max(0, Math.min(100, t)), Lo = P(function({ items: n, format: l = z, className: c, ...s }, a) {
|
|
5597
5626
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((o, i) => {
|
|
5598
5627
|
const r = o.color ?? j(i), d = o.max ?? (Math.max(o.value, o.target) * 1.25 || 1), h = o.value >= o.target;
|
|
5599
5628
|
return /* @__PURE__ */ m("div", { className: "select-bullet__row", children: [
|
|
@@ -5619,12 +5648,12 @@ const Dn = (t) => Math.max(0, Math.min(100, t)), ko = P(function({ items: n, for
|
|
|
5619
5648
|
{
|
|
5620
5649
|
className: "select-bullet__fill",
|
|
5621
5650
|
style: {
|
|
5622
|
-
width: `${
|
|
5651
|
+
width: `${Tn(o.value / d * 100)}%`,
|
|
5623
5652
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
5624
5653
|
}
|
|
5625
5654
|
}
|
|
5626
5655
|
),
|
|
5627
|
-
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${
|
|
5656
|
+
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${Tn(o.target / d * 100)}%` } })
|
|
5628
5657
|
] })
|
|
5629
5658
|
] }, `${o.label}-${i}`);
|
|
5630
5659
|
}) });
|
|
@@ -5672,7 +5701,7 @@ function Ys(t, n, l) {
|
|
|
5672
5701
|
l
|
|
5673
5702
|
), c;
|
|
5674
5703
|
}
|
|
5675
|
-
function
|
|
5704
|
+
function Ao({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
5676
5705
|
const { ref: a, width: o } = ce(n), i = K(), r = ne(), d = t.map((u, f) => f).sort((u, f) => t[f].value - t[u].value), h = o > 0 ? Ys(d.map((u) => t[u].value), o, n) : [];
|
|
5677
5706
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
5678
5707
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -5714,7 +5743,7 @@ function So({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
5714
5743
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
5715
5744
|
] });
|
|
5716
5745
|
}
|
|
5717
|
-
function
|
|
5746
|
+
function Eo({ series: t, height: n = 240, xFormat: l = z, yFormat: c = z, xMax: s, yMax: a, maxRadius: o = 18, className: i, ...r }) {
|
|
5718
5747
|
const { ref: d, width: h } = ce(n), u = K(), f = t.flatMap((M) => M.points), g = xe(s ?? Math.max(0, ...f.map((M) => M.x))), v = xe(a ?? Math.max(0, ...f.map((M) => M.y))), x = Math.max(1, ...f.map((M) => M.r ?? 0)), N = Ie, k = Math.max(0, h - N.left - N.right), _ = n - N.top - N.bottom, p = N.top + _, b = (M) => N.left + M / g * k, S = (M) => p - M / v * _, $ = (M) => M.r ? 4 + Math.sqrt(M.r) / Math.sqrt(x) * (o - 4) : 4.5;
|
|
5719
5748
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${i ? " " + i : ""}`, ref: d, children: [
|
|
5720
5749
|
h > 0 && /* @__PURE__ */ m("svg", { width: h, height: n, className: "select-chart", children: [
|
|
@@ -5761,7 +5790,7 @@ function Co({ series: t, height: n = 240, xFormat: l = z, yFormat: c = z, xMax:
|
|
|
5761
5790
|
/* @__PURE__ */ e(J, { tip: u.tip })
|
|
5762
5791
|
] });
|
|
5763
5792
|
}
|
|
5764
|
-
const
|
|
5793
|
+
const Bo = P(function({ axes: n, series: l, size: c = 240, max: s, format: a = z, levels: o = 4, legend: i = !0, className: r, ...d }, h) {
|
|
5765
5794
|
const u = K(), f = ne(), g = n.length, v = c / 2, x = c / 2, N = c / 2 - 30, k = s ?? xe(Math.max(1, ...l.flatMap((S) => S.values))), _ = (S) => (-90 + S * 360 / g) * Math.PI / 180, p = (S, $) => [v + $ * Math.cos(_(S)), x + $ * Math.sin(_(S))], b = (S) => S.map(($, M) => `${M === 0 ? "M" : "L"}${p(M, $).map((w) => w.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
5766
5795
|
return /* @__PURE__ */ m("div", { ref: h, ...d, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
5767
5796
|
/* @__PURE__ */ m("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -5831,7 +5860,7 @@ const Lo = P(function({ axes: n, series: l, size: c = 240, max: s, format: a = z
|
|
|
5831
5860
|
] }, $)) })
|
|
5832
5861
|
] });
|
|
5833
5862
|
});
|
|
5834
|
-
function
|
|
5863
|
+
function Fo({ links: t, height: n = 260, format: l = z, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...o }) {
|
|
5835
5864
|
const { ref: i, width: r } = ce(n), d = K(), h = [], u = [];
|
|
5836
5865
|
for (const y of t)
|
|
5837
5866
|
h.includes(y.source) || h.push(y.source), u.includes(y.target) || u.push(y.target);
|
|
@@ -5879,7 +5908,7 @@ function Ao({ links: t, height: n = 260, format: l = z, nodeWidth: c = 14, nodeG
|
|
|
5879
5908
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
5880
5909
|
] });
|
|
5881
5910
|
}
|
|
5882
|
-
function
|
|
5911
|
+
function Io({ data: t, height: n = 240, format: l = z, upColor: c = "var(--select-chart-4)", downColor: s = "var(--select-chart-3)", className: a, ...o }) {
|
|
5883
5912
|
const { ref: i, width: r } = ce(n), d = K(), h = Ie, u = Math.max(0, r - h.left - h.right), f = n - h.top - h.bottom, g = h.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, k = x - N, _ = v + N, p = (w) => g - (w - k) / (_ - k) * f, b = t.length, S = b ? u / b : 0, $ = Math.min(S * 0.5, 18), M = Array.from({ length: 5 }, (w, y) => k + (_ - k) * y / 4);
|
|
5884
5913
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5885
5914
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -5931,7 +5960,7 @@ function Eo({ data: t, height: n = 240, format: l = z, upColor: c = "var(--selec
|
|
|
5931
5960
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
5932
5961
|
] });
|
|
5933
5962
|
}
|
|
5934
|
-
function
|
|
5963
|
+
function Po({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
5935
5964
|
const { ref: a, width: o } = ce(n), i = K(), r = Ie, d = Math.max(0, o - r.left - r.right), h = n - r.top - r.bottom, u = r.top + h, f = xe(Math.max(1, ...t.map((k) => k.max))), g = (k) => u - k / f * h, v = t.length, x = v ? d / v : 0, N = Math.min(x * 0.5, 40);
|
|
5936
5965
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
5937
5966
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -5987,7 +6016,7 @@ function Bo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
5987
6016
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
5988
6017
|
] });
|
|
5989
6018
|
}
|
|
5990
|
-
function
|
|
6019
|
+
function Ro({ data: t, height: n, min: l, max: c, format: s = z, labelWidth: a = 96, className: o, ...i }) {
|
|
5991
6020
|
const f = n ?? t.length * 36 + 6 + 26, { ref: g, width: v } = ce(f), x = K(), N = ne(), k = l ?? Math.min(0, ...t.map((L) => L.start)), p = (c ?? Math.max(1, ...t.map((L) => L.end))) - k || 1, b = a, S = Math.max(0, v - b - 14), $ = f - 6 - 26, M = t.length ? $ / t.length : 0, w = Math.min(M * 0.6, 22), y = (L) => b + (L - k) / p * S, C = Array.from({ length: 5 }, (L, B) => k + p * B / 4);
|
|
5992
6021
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${o ? " " + o : ""}`, ref: g, children: [
|
|
5993
6022
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -6042,7 +6071,7 @@ function Fo({ data: t, height: n, min: l, max: c, format: s = z, labelWidth: a =
|
|
|
6042
6071
|
/* @__PURE__ */ e(J, { tip: x.tip })
|
|
6043
6072
|
] });
|
|
6044
6073
|
}
|
|
6045
|
-
const
|
|
6074
|
+
const Do = P(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels: c = ["Seg", "", "Qua", "", "Sex", "", "Dom"], columnLabels: s, format: a = z, cell: o = 14, gap: i = 3, min: r, max: d, className: h, ...u }, f) {
|
|
6046
6075
|
const g = K();
|
|
6047
6076
|
ne();
|
|
6048
6077
|
const v = n.flat().filter((w) => w != null && Number.isFinite(w)), x = r ?? (v.length ? Math.min(...v) : 0), k = (d ?? (v.length ? Math.max(...v) : 1)) - x || 1, _ = 30, p = s ? 16 : 4, b = o + i, S = _ + n.length * b, $ = p + 7 * b, M = { "--heat-color": l };
|
|
@@ -6086,7 +6115,7 @@ const Io = P(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6086
6115
|
] }),
|
|
6087
6116
|
/* @__PURE__ */ e(J, { tip: g.tip })
|
|
6088
6117
|
] });
|
|
6089
|
-
}),
|
|
6118
|
+
}), To = P(function({ segments: n, size: l = 200, format: c = z, legend: s = !0, rose: a = !1, className: o, ...i }, r) {
|
|
6090
6119
|
const d = K(), h = l / 2, u = l / 2, f = l / 2 - 2, g = n.length || 1, v = xe(Math.max(1, ...n.map((k) => k.value))), x = (k) => a ? Math.max(0, k) / v * f : Math.sqrt(Math.max(0, k) / v) * f, N = 360 / g;
|
|
6091
6120
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
6092
6121
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -6117,7 +6146,7 @@ const Io = P(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6117
6146
|
] }, _)) })
|
|
6118
6147
|
] });
|
|
6119
6148
|
});
|
|
6120
|
-
function
|
|
6149
|
+
function Wo({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = z, className: a, ...o }) {
|
|
6121
6150
|
const { ref: i, width: r } = ce(c), d = K(), h = { top: 24, right: 64, bottom: 12, left: 132 }, u = xe(Math.max(1, ...t.flatMap((N) => [N.left, N.right]))), f = c - h.top - h.bottom, g = (N) => h.top + f - N / u * f, v = h.left, x = r - h.right;
|
|
6122
6151
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
6123
6152
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: c, className: "select-chart", children: [
|
|
@@ -6164,7 +6193,7 @@ function Ro({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
6164
6193
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
6165
6194
|
] });
|
|
6166
6195
|
}
|
|
6167
|
-
function
|
|
6196
|
+
function Oo({ data: t, height: n, format: l = z, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: o, ...i }) {
|
|
6168
6197
|
const f = n ?? t.length * 34 + 6 + 26, { ref: g, width: v } = ce(f), x = K(), N = "var(--select-chart-2)", k = "var(--select-chart-1)", _ = xe(Math.max(1, ...t.flatMap((w) => [w.from, w.to]))), p = a, b = Math.max(0, v - p - 14), S = f - 6 - 26, $ = t.length ? S / t.length : 0, M = (w) => p + w / _ * b;
|
|
6169
6198
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${o ? " " + o : ""}`, ref: g, children: [
|
|
6170
6199
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -6216,7 +6245,7 @@ function Do({ data: t, height: n, format: l = z, fromLabel: c = "Antes", toLabel
|
|
|
6216
6245
|
/* @__PURE__ */ e(J, { tip: x.tip })
|
|
6217
6246
|
] });
|
|
6218
6247
|
}
|
|
6219
|
-
function
|
|
6248
|
+
function Ho({ columns: t, height: n = 240, format: l = z, gap: c = 3, className: s, ...a }) {
|
|
6220
6249
|
const { ref: o, width: i } = ce(n), r = K(), d = { top: 6, right: 6, bottom: 24, left: 6 }, h = Math.max(0, i - d.left - d.right), u = 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 = [];
|
|
6221
6250
|
t.forEach((p) => p.segments.forEach((b) => {
|
|
6222
6251
|
v.includes(b.key) || v.push(b.key);
|
|
@@ -6268,7 +6297,7 @@ function To({ columns: t, height: n = 240, format: l = z, gap: c = 3, className:
|
|
|
6268
6297
|
/* @__PURE__ */ e(J, { tip: r.tip })
|
|
6269
6298
|
] });
|
|
6270
6299
|
}
|
|
6271
|
-
const
|
|
6300
|
+
const jo = P(function({ value: n, max: l = 100, bands: c, size: s = 220, thickness: a, label: o, format: i = (u) => `${Math.round(u)}`, className: r, ...d }, h) {
|
|
6272
6301
|
const u = a ?? Math.max(10, Math.round(s * 0.08)), f = u / 2 + 2, g = s / 2 - f, v = s / 2, x = s / 2, N = x + f, k = (L) => Math.max(0, Math.min(l, L)), _ = (L) => {
|
|
6273
6302
|
const B = Math.PI + L * Math.PI;
|
|
6274
6303
|
return [v + g * Math.cos(B), x + g * Math.sin(B)];
|
|
@@ -6293,7 +6322,7 @@ const Wo = P(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
6293
6322
|
] })
|
|
6294
6323
|
] }) });
|
|
6295
6324
|
});
|
|
6296
|
-
function
|
|
6325
|
+
function Vo({ series: t, labels: n, height: l = 240, format: c = z, className: s, ...a }) {
|
|
6297
6326
|
const { ref: o, width: i } = ce(l), r = K(), d = ne(), [h, u] = T(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(($, M) => t.reduce((w, y) => w + (y.data[M] ?? 0), 0)), k = Math.max(1, ...N), _ = x / k, p = ($) => g.left + (f <= 1 ? v / 2 : $ / (f - 1) * v), b = n.map(() => 0), S = t.map(($, M) => {
|
|
6298
6327
|
const w = [], y = [];
|
|
6299
6328
|
return n.forEach((C, L) => {
|
|
@@ -6339,7 +6368,7 @@ function Oo({ series: t, labels: n, height: l = 240, format: c = z, className: s
|
|
|
6339
6368
|
/* @__PURE__ */ e(J, { tip: r.tip })
|
|
6340
6369
|
] });
|
|
6341
6370
|
}
|
|
6342
|
-
const
|
|
6371
|
+
const Zo = P(function({ data: n, size: l = 220, format: c = z, legend: s = !0, className: a, ...o }, i) {
|
|
6343
6372
|
const r = K(), d = l / 2, h = l / 2, u = l / 2 - 2, f = u * 0.62, g = u * 0.32, v = n.map((k) => {
|
|
6344
6373
|
var _;
|
|
6345
6374
|
return (_ = k.children) != null && _.length ? k.children.reduce((p, b) => p + b.value, 0) : k.value ?? 0;
|
|
@@ -6400,7 +6429,7 @@ const Ho = P(function({ data: n, size: l = 220, format: c = z, legend: s = !0, c
|
|
|
6400
6429
|
] }, _)) })
|
|
6401
6430
|
] });
|
|
6402
6431
|
});
|
|
6403
|
-
function
|
|
6432
|
+
function Go({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
6404
6433
|
const { ref: a, width: o } = ce(n), i = K(), r = Ie, d = Math.max(0, o - r.left - r.right), h = n - r.top - r.bottom, u = r.top + h, f = xe(Math.max(1, ...t.map((_) => _.max))), g = (_) => u - _ / f * h, v = t.length, x = v ? d / v : 0, N = Math.min(x * 0.42, 46), k = Math.max(1, ...t.flatMap((_) => _.bins));
|
|
6405
6434
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6406
6435
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -6421,7 +6450,7 @@ function jo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
6421
6450
|
const b = r.left + x * p + x / 2, S = _.color ?? j(p), $ = _.bins.length, M = (A) => g(_.min + (_.max - _.min) * A / Math.max(1, $ - 1)), w = (A) => _.bins[A] / k * N, y = [], C = [];
|
|
6422
6451
|
for (let A = $ - 1; A >= 0; A--) y.push([b + w(A), M(A)]);
|
|
6423
6452
|
for (let A = 0; A < $; A++) C.push([b - w(A), M(A)]);
|
|
6424
|
-
const L = `${
|
|
6453
|
+
const L = `${Bn(y)} ${Bn(C).replace(/^M/, "L")} Z`, B = _.median != null ? g(_.median) : null;
|
|
6425
6454
|
return /* @__PURE__ */ m("g", { children: [
|
|
6426
6455
|
/* @__PURE__ */ e("path", { d: L, fill: S, fillOpacity: 0.32, stroke: S, strokeWidth: 1.5, strokeLinejoin: "round" }),
|
|
6427
6456
|
B != null && /* @__PURE__ */ e("line", { x1: b - N * 0.6, x2: b + N * 0.6, y1: B, y2: B, stroke: S, strokeWidth: 2 }),
|
|
@@ -6454,7 +6483,7 @@ function jo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
6454
6483
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
6455
6484
|
] });
|
|
6456
6485
|
}
|
|
6457
|
-
const
|
|
6486
|
+
const Uo = P(function({ matrix: n, labels: l, size: c = 240, format: s = z, padAngle: a = 0.05, className: o, ...i }, r) {
|
|
6458
6487
|
const d = K(), h = l.length, u = 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, k = (2 * Math.PI - h * a) / N, _ = [];
|
|
6459
6488
|
let p = 0;
|
|
6460
6489
|
for (let y = 0; y < h; y++) {
|
|
@@ -6519,7 +6548,7 @@ const Vo = P(function({ matrix: n, labels: l, size: c = 240, format: s = z, padA
|
|
|
6519
6548
|
/* @__PURE__ */ e(J, { tip: d.tip })
|
|
6520
6549
|
] }) });
|
|
6521
6550
|
});
|
|
6522
|
-
function
|
|
6551
|
+
function Yo({ points: t, height: n = 240, radius: l = 16, color: c = "var(--select-chart-1)", xMax: s, yMax: a, format: o = z, className: i, ...r }) {
|
|
6523
6552
|
const { ref: d, width: h } = ce(n), u = K(), f = 12, g = Math.max(0, h - 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)), k = (C) => f + C / x * g, _ = (C) => f + v - C / N * v, p = l, b = Math.sqrt(3), S = (C, L) => {
|
|
6524
6553
|
let B = C, A = L, E = -B - A, F = Math.round(B), W = Math.round(E), Z = Math.round(A);
|
|
6525
6554
|
const R = Math.abs(F - B), D = Math.abs(W - E), O = Math.abs(Z - A);
|
|
@@ -6560,7 +6589,7 @@ function Zo({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
6560
6589
|
/* @__PURE__ */ e(J, { tip: u.tip })
|
|
6561
6590
|
] });
|
|
6562
6591
|
}
|
|
6563
|
-
const
|
|
6592
|
+
const qo = P(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, o) {
|
|
6564
6593
|
const i = n.map((f) => f.value), r = Math.max(1, ...i), d = Math.min(...i), h = r - d || 1, u = (f) => l + (f - d) / h * (c - l);
|
|
6565
6594
|
return /* @__PURE__ */ e("div", { ref: o, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, g) => /* @__PURE__ */ e(
|
|
6566
6595
|
"span",
|
|
@@ -6713,7 +6742,7 @@ function bt([t, n, l], c, s) {
|
|
|
6713
6742
|
const a = c * Lt, o = t * Math.cos(a) + l * Math.sin(a), i = -t * Math.sin(a) + l * Math.cos(a), r = s * Lt, d = n * Math.cos(r) - i * Math.sin(r), h = n * Math.sin(r) + i * Math.cos(r);
|
|
6714
6743
|
return [o, d, h];
|
|
6715
6744
|
}
|
|
6716
|
-
function
|
|
6745
|
+
function Wn(t, n, l) {
|
|
6717
6746
|
let c = t[0] * n[0] + t[1] * n[1] + t[2] * n[2];
|
|
6718
6747
|
c = Math.max(-1, Math.min(1, c));
|
|
6719
6748
|
const s = Math.acos(c);
|
|
@@ -6721,7 +6750,7 @@ function Tn(t, n, l) {
|
|
|
6721
6750
|
const a = Math.sin(s), o = Math.sin((1 - l) * s) / a, i = Math.sin(l * s) / a;
|
|
6722
6751
|
return [t[0] * o + n[0] * i, t[1] * o + n[1] * i, t[2] * o + n[2] * i];
|
|
6723
6752
|
}
|
|
6724
|
-
const
|
|
6753
|
+
const On = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) < 1e-6, zo = P(function({ points: n = [], arcs: l = [], size: c = 320, tilt: s = -18, spin: a = !0, speed: o = 7, color: i = "var(--select-chart-1)", format: r = z, legend: d = !0, map: h = !0, fluid: u = !1, onZoomChange: f, className: g, ...v }, x) {
|
|
6725
6754
|
var Be;
|
|
6726
6755
|
const N = ne(), k = K(), _ = Y(null), p = Ct(_, c), b = n.length ? n.reduce((I, V) => I + V.lng, 0) / n.length : 0, S = Y(
|
|
6727
6756
|
typeof window < "u" && !!((Be = window.matchMedia) != null && Be.call(window, "(prefers-reduced-motion: reduce)").matches)
|
|
@@ -6844,11 +6873,11 @@ const Wn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6844
6873
|
const U = tt(I.from.lat, I.from.lng), oe = tt(I.to.lat, I.to.lng);
|
|
6845
6874
|
let ee = "", se = !1;
|
|
6846
6875
|
for (let Ve = 0; Ve <= 40; Ve++) {
|
|
6847
|
-
const mt = Ve / 40, ft =
|
|
6848
|
-
Al[2] > -0.05 ? (ee += `${se ? "L" : "M"}${
|
|
6876
|
+
const mt = Ve / 40, ft = Wn(U, oe, mt), Dt = 1 + 0.34 * Math.sin(Math.PI * mt), Al = bt(ft, $.current.lng, $.current.lat), rn = X([ft[0] * Dt, ft[1] * Dt, ft[2] * Dt]);
|
|
6877
|
+
Al[2] > -0.05 ? (ee += `${se ? "L" : "M"}${rn.x.toFixed(1)},${rn.y.toFixed(1)}`, se = !0) : se = !1;
|
|
6849
6878
|
}
|
|
6850
|
-
const he = S.current ? 0.5 : (B.current * Pe + V * 0.27) % 1, _e =
|
|
6851
|
-
return { d: ee, col: I.color ?? i, i: V, flow: { ...Qe, vis: Re[2] > 0 }, active:
|
|
6879
|
+
const he = S.current ? 0.5 : (B.current * Pe + V * 0.27) % 1, _e = Wn(U, oe, he), je = 1 + 0.34 * Math.sin(Math.PI * he), Re = bt(_e, $.current.lng, $.current.lat), Qe = X([_e[0] * je, _e[1] * je, _e[2] * je]), an = Ne != null && (On(I.from, Ne) || On(I.to, Ne));
|
|
6880
|
+
return { d: ee, col: I.color ?? i, i: V, flow: { ...Qe, vis: Re[2] > 0 }, active: an };
|
|
6852
6881
|
}), Ue = Ne != null, He = d ? [...n].sort((I, V) => (V.value ?? 0) - (I.value ?? 0)).slice(0, 6) : [];
|
|
6853
6882
|
return /* @__PURE__ */ m("div", { ref: x, ...v, className: `select-globe${g ? " " + g : ""}`, children: [
|
|
6854
6883
|
/* @__PURE__ */ m(
|
|
@@ -7000,7 +7029,7 @@ const Wn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7000
7029
|
] }, V)) })
|
|
7001
7030
|
] });
|
|
7002
7031
|
});
|
|
7003
|
-
function
|
|
7032
|
+
function Xo({ children: t, speed: n = 28, className: l, ...c }) {
|
|
7004
7033
|
const s = Y(null), a = Y(null), o = Y(null), i = Ct(s, 0), r = Ct(o, 0), d = i > 0 && r > i + 1, h = Y(0), u = Y(null), f = Y(!1);
|
|
7005
7034
|
te(() => {
|
|
7006
7035
|
var S;
|
|
@@ -7048,7 +7077,7 @@ function Yo({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
7048
7077
|
}
|
|
7049
7078
|
);
|
|
7050
7079
|
}
|
|
7051
|
-
function
|
|
7080
|
+
function Ko({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
7052
7081
|
var A;
|
|
7053
7082
|
const { ref: a, width: o } = ce(n), i = K(), r = ne(), [d, h] = T(null), u = { ...Ie, right: 44 }, f = [...t].sort((E, F) => F.value - E.value), g = f.length, v = f.reduce((E, F) => E + F.value, 0) || 1;
|
|
7054
7083
|
let x = 0;
|
|
@@ -7115,7 +7144,7 @@ function qo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
7115
7144
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
7116
7145
|
] });
|
|
7117
7146
|
}
|
|
7118
|
-
const
|
|
7147
|
+
const Jo = P(function({ segments: n, cols: l = 10, rows: c = 10, format: s = z, className: a, ...o }, i) {
|
|
7119
7148
|
const r = n.reduce((x, N) => x + N.value, 0) || 1, d = l * c, h = n.map((x) => x.value / r * d), u = h.map(Math.floor);
|
|
7120
7149
|
let f = u.reduce((x, N) => x + N, 0);
|
|
7121
7150
|
const g = h.map((x, N) => ({ i: N, frac: x - u[N] })).sort((x, N) => N.frac - x.frac);
|
|
@@ -7134,7 +7163,7 @@ const zo = P(function({ segments: n, cols: l = 10, rows: c = 10, format: s = z,
|
|
|
7134
7163
|
] }, N)) })
|
|
7135
7164
|
] });
|
|
7136
7165
|
});
|
|
7137
|
-
function
|
|
7166
|
+
function Qo({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", height: c, format: s = z, leftColor: a, rightColor: o, centerWidth: i = 84, className: r, ...d }) {
|
|
7138
7167
|
const h = c ?? Math.max(180, t.length * 40 + 36), { ref: u, width: f } = ce(h), g = K(), [v, x] = T(null), N = 8, k = 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 ? (h - k - _) / t.length : 0, $ = Math.min(S * 0.6, 26), M = N + b, w = N + b + i, y = a ?? j(1), C = o ?? j(0);
|
|
7139
7168
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: u, children: [
|
|
7140
7169
|
f > 0 && /* @__PURE__ */ m("svg", { width: f, height: h, className: "select-chart", onMouseLeave: () => {
|
|
@@ -7188,7 +7217,7 @@ function Xo({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
7188
7217
|
/* @__PURE__ */ e(J, { tip: g.tip })
|
|
7189
7218
|
] });
|
|
7190
7219
|
}
|
|
7191
|
-
function
|
|
7220
|
+
function e1({ series: t, labels: n, height: l = 240, format: c = z, className: s, ...a }) {
|
|
7192
7221
|
const { ref: o, width: i } = ce(l), r = K(), [d, h] = T(null), u = { top: 16, right: 78, bottom: 28, left: 28 }, f = n.length, g = t.length, v = Math.max(0, i - u.left - u.right), x = l - u.top - u.bottom, N = t.map(() => new Array(f).fill(0));
|
|
7193
7222
|
for (let p = 0; p < f; p++)
|
|
7194
7223
|
t.map((S, $) => ({ si: $, v: S.data[p] ?? 0 })).sort((S, $) => $.v - S.v).forEach((S, $) => {
|
|
@@ -7236,7 +7265,7 @@ function Ko({ series: t, labels: n, height: l = 240, format: c = z, className: s
|
|
|
7236
7265
|
/* @__PURE__ */ e(J, { tip: r.tip })
|
|
7237
7266
|
] });
|
|
7238
7267
|
}
|
|
7239
|
-
function
|
|
7268
|
+
function t1({ axes: t, data: n, height: l = 260, format: c = z, className: s, ...a }) {
|
|
7240
7269
|
const { ref: o, width: i } = ce(l), r = K(), [d, h] = T(null), u = { top: 30, right: 28, bottom: 26, left: 28 }, f = Math.max(0, i - u.left - u.right), g = l - u.top - u.bottom, v = t.length, x = (_) => u.left + (v <= 1 ? f / 2 : f / (v - 1) * _), N = t.map((_) => {
|
|
7241
7270
|
const p = n.map((b) => b.values[_.key] ?? 0);
|
|
7242
7271
|
return { min: Math.min(...p), max: Math.max(...p) };
|
|
@@ -7293,7 +7322,7 @@ function Mt(t) {
|
|
|
7293
7322
|
function Cl(t, n = 0) {
|
|
7294
7323
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Cl(l, n + 1)));
|
|
7295
7324
|
}
|
|
7296
|
-
function
|
|
7325
|
+
function n1({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
7297
7326
|
const { ref: a, width: o } = ce(n), i = K(), [r, d] = T(null), h = Cl(t), u = n / (h + 1), f = [], g = (v, x, N, k, _) => {
|
|
7298
7327
|
if (f.push({ node: v, x0: x, x1: N, depth: k, color: v.color ?? j(_), value: Mt(v) }), v.children && v.children.length) {
|
|
7299
7328
|
const p = v.children.reduce((S, $) => S + Mt($), 0) || 1;
|
|
@@ -7337,7 +7366,7 @@ function Qo({ data: t, height: n = 240, format: l = z, className: c, ...s }) {
|
|
|
7337
7366
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
7338
7367
|
] });
|
|
7339
7368
|
}
|
|
7340
|
-
function
|
|
7369
|
+
function l1({ data: t, height: n = 260, className: l, ...c }) {
|
|
7341
7370
|
const { ref: s, width: a } = ce(n), o = K(), [i, r] = T(null), d = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7342
7371
|
let h = null;
|
|
7343
7372
|
if (a > 0) {
|
|
@@ -7407,7 +7436,7 @@ function e1({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7407
7436
|
/* @__PURE__ */ e(J, { tip: o.tip })
|
|
7408
7437
|
] });
|
|
7409
7438
|
}
|
|
7410
|
-
const
|
|
7439
|
+
const c1 = P(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7411
7440
|
const o = Math.min(3, n.length), i = l / 2, r = l / 2, d = Math.max(1, ...n.slice(0, o).map((g) => g.size)), h = l * 0.26, u = (g) => h * 0.45 + h * 0.55 * Math.sqrt(g.size / d), f = o <= 2 ? [
|
|
7412
7441
|
[i - h * 0.42, r],
|
|
7413
7442
|
[i + h * 0.42, r]
|
|
@@ -7455,7 +7484,7 @@ const t1 = P(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7455
7484
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: g.size.toLocaleString("pt-BR") })
|
|
7456
7485
|
] }, v)) })
|
|
7457
7486
|
] });
|
|
7458
|
-
}),
|
|
7487
|
+
}), s1 = P(function({ data: n, size: l = 260, format: c = z, className: s, ...a }, o) {
|
|
7459
7488
|
const i = K(), [r, d] = T(null), h = Math.max(1, ...n.map((y) => y.value)), u = n.map((y, C) => ({ d: y, i: C, r: 8 + Math.sqrt(y.value / h) * 40 })).sort((y, C) => C.r - y.r), f = [];
|
|
7460
7489
|
for (const y of u) {
|
|
7461
7490
|
if (f.length === 0) {
|
|
@@ -7511,7 +7540,7 @@ const t1 = P(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7511
7540
|
/* @__PURE__ */ e(J, { tip: i.tip })
|
|
7512
7541
|
] });
|
|
7513
7542
|
});
|
|
7514
|
-
function
|
|
7543
|
+
function a1({ nodes: t, links: n, height: l = 300, format: c = z, className: s, ...a }) {
|
|
7515
7544
|
const { ref: o, width: i } = ce(l), r = K(), [d, h] = T(null), u = ye(() => {
|
|
7516
7545
|
const v = i || l, x = l, N = t.length, k = /* @__PURE__ */ new Map();
|
|
7517
7546
|
if (!N) return k;
|
|
@@ -7601,11 +7630,11 @@ const Ht = [
|
|
|
7601
7630
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(Xl, {}) },
|
|
7602
7631
|
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(Un, {}) }
|
|
7603
7632
|
];
|
|
7604
|
-
function
|
|
7633
|
+
function r1(t) {
|
|
7605
7634
|
var n;
|
|
7606
7635
|
return t === "system" ? (n = window.matchMedia) != null && n.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
|
|
7607
7636
|
}
|
|
7608
|
-
function
|
|
7637
|
+
function o1({ value: t, onChange: n, className: l, ...c }) {
|
|
7609
7638
|
const [s, a] = T(!1), o = Y(null), i = Ht.find((r) => r.value === t) ?? Ht[2];
|
|
7610
7639
|
return te(() => {
|
|
7611
7640
|
if (!s) return;
|
|
@@ -7634,7 +7663,7 @@ function s1({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7634
7663
|
] });
|
|
7635
7664
|
}
|
|
7636
7665
|
const Ll = Xt(!1);
|
|
7637
|
-
function
|
|
7666
|
+
function i1({
|
|
7638
7667
|
children: t,
|
|
7639
7668
|
stacked: n = !1,
|
|
7640
7669
|
loading: l = !1
|
|
@@ -7642,20 +7671,20 @@ function a1({
|
|
|
7642
7671
|
const c = Ft({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
7643
7672
|
return /* @__PURE__ */ e(Ll.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
7644
7673
|
}
|
|
7645
|
-
const
|
|
7674
|
+
const d1 = P(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: o, ...i }, r) {
|
|
7646
7675
|
const d = zt(Ll), h = a ?? d;
|
|
7647
7676
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-detail select-detail--${s}${o ? " " + o : ""}`, children: [
|
|
7648
7677
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
7649
7678
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: h ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
7650
7679
|
c && /* @__PURE__ */ e("div", { className: "select-detail__action", children: c })
|
|
7651
7680
|
] });
|
|
7652
|
-
}),
|
|
7681
|
+
}), u1 = P(function({ label: n, description: l, onClick: c, icon: s, className: a, ...o }, i) {
|
|
7653
7682
|
return /* @__PURE__ */ m("button", { ref: i, ...o, type: "button", className: `select-addcard${a ? " " + a : ""}`, onClick: c, children: [
|
|
7654
7683
|
/* @__PURE__ */ e("span", { className: "select-addcard__glyph", "aria-hidden": "true", children: s ?? /* @__PURE__ */ e(Je, {}) }),
|
|
7655
7684
|
/* @__PURE__ */ e("span", { className: "select-addcard__label", children: n }),
|
|
7656
7685
|
l && /* @__PURE__ */ e("span", { className: "select-addcard__desc", children: l })
|
|
7657
7686
|
] });
|
|
7658
|
-
}),
|
|
7687
|
+
}), h1 = P(function({ steps: n, current: l, onSelect: c, orientation: s = "horizontal", className: a, ...o }, i) {
|
|
7659
7688
|
const r = s === "vertical";
|
|
7660
7689
|
return /* @__PURE__ */ e(
|
|
7661
7690
|
"ol",
|
|
@@ -7675,7 +7704,7 @@ const r1 = P(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7675
7704
|
})
|
|
7676
7705
|
}
|
|
7677
7706
|
);
|
|
7678
|
-
}),
|
|
7707
|
+
}), p1 = P(function({ name: n, price: l, priceSuffix: c, headerAction: s, summary: a, cta: o, featuresTitle: i, features: r, featured: d = !1, className: h, ...u }, f) {
|
|
7679
7708
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-plan${d ? " select-plan--featured" : ""}${h ? " " + h : ""}`, children: [
|
|
7680
7709
|
/* @__PURE__ */ m("div", { className: "select-plan__top", children: [
|
|
7681
7710
|
/* @__PURE__ */ m("div", { className: "select-plan__head", children: [
|
|
@@ -7697,7 +7726,7 @@ const r1 = P(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7697
7726
|
] }, v)) })
|
|
7698
7727
|
] })
|
|
7699
7728
|
] });
|
|
7700
|
-
}),
|
|
7729
|
+
}), m1 = P(function({ title: n, description: l, headerAction: c, footer: s, children: a, className: o, ...i }, r) {
|
|
7701
7730
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-listcard${o ? " " + o : ""}`, children: [
|
|
7702
7731
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-listcard__head", children: [
|
|
7703
7732
|
/* @__PURE__ */ m("div", { className: "select-listcard__heading", children: [
|
|
@@ -7710,7 +7739,7 @@ const r1 = P(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7710
7739
|
s && /* @__PURE__ */ e("div", { className: "select-listcard__footer", children: s })
|
|
7711
7740
|
] });
|
|
7712
7741
|
});
|
|
7713
|
-
function
|
|
7742
|
+
function f1({
|
|
7714
7743
|
media: t,
|
|
7715
7744
|
title: n,
|
|
7716
7745
|
secondary: l,
|
|
@@ -7728,7 +7757,7 @@ function h1({
|
|
|
7728
7757
|
] }), i = `select-listrow${s ? " select-listrow--muted" : ""}`;
|
|
7729
7758
|
return a ? /* @__PURE__ */ e("button", { type: "button", className: `${i} select-listrow--clickable`, onClick: a, children: o }) : /* @__PURE__ */ e("div", { className: i, children: o });
|
|
7730
7759
|
}
|
|
7731
|
-
const
|
|
7760
|
+
const Hn = P(function({ src: n, alt: l = "", size: c = 40, className: s, ...a }, o) {
|
|
7732
7761
|
const [i, r] = T(!1);
|
|
7733
7762
|
return te(() => r(!1), [n]), /* @__PURE__ */ e("span", { ref: o, ...a, className: `select-thumb${s ? " " + s : ""}`, style: { width: c, height: c }, children: n && !i ? /* @__PURE__ */ e(
|
|
7734
7763
|
"img",
|
|
@@ -7750,7 +7779,7 @@ function zs({
|
|
|
7750
7779
|
}) {
|
|
7751
7780
|
return /* @__PURE__ */ e(Rt, { open: t, onClose: n, title: s, size: "lg", theme: ht(), children: /* @__PURE__ */ e("div", { className: "select-imagezoom", children: /* @__PURE__ */ e("img", { src: l, alt: c ?? s ?? "", className: "select-imagezoom__img" }) }) });
|
|
7752
7781
|
}
|
|
7753
|
-
function
|
|
7782
|
+
function _1({
|
|
7754
7783
|
src: t,
|
|
7755
7784
|
alt: n = "",
|
|
7756
7785
|
size: l = 40,
|
|
@@ -7767,13 +7796,13 @@ function p1({
|
|
|
7767
7796
|
},
|
|
7768
7797
|
"aria-label": "Ampliar imagem",
|
|
7769
7798
|
style: { all: "unset", cursor: "zoom-in", display: "inline-flex" },
|
|
7770
|
-
children: /* @__PURE__ */ e(
|
|
7799
|
+
children: /* @__PURE__ */ e(Hn, { src: t, size: l, alt: n })
|
|
7771
7800
|
}
|
|
7772
7801
|
),
|
|
7773
7802
|
s && /* @__PURE__ */ e(zs, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
7774
|
-
] }) : /* @__PURE__ */ e(
|
|
7803
|
+
] }) : /* @__PURE__ */ e(Hn, { size: l, alt: n });
|
|
7775
7804
|
}
|
|
7776
|
-
const
|
|
7805
|
+
const v1 = P(function({ media: n, title: l, secondary: c, className: s, ...a }, o) {
|
|
7777
7806
|
return /* @__PURE__ */ m("span", { ref: o, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
7778
7807
|
n && /* @__PURE__ */ e("span", { className: "select-mediacell__media", children: n }),
|
|
7779
7808
|
/* @__PURE__ */ m("span", { className: "select-mediacell__text", children: [
|
|
@@ -7782,7 +7811,7 @@ const m1 = P(function({ media: n, title: l, secondary: c, className: s, ...a },
|
|
|
7782
7811
|
] })
|
|
7783
7812
|
] });
|
|
7784
7813
|
});
|
|
7785
|
-
function
|
|
7814
|
+
function g1() {
|
|
7786
7815
|
const [t, n] = T(
|
|
7787
7816
|
() => typeof navigator < "u" && navigator.onLine === !1
|
|
7788
7817
|
);
|
|
@@ -7815,7 +7844,7 @@ function Xs(t) {
|
|
|
7815
7844
|
value: l == null ? "" : String(l)
|
|
7816
7845
|
})) : [];
|
|
7817
7846
|
}
|
|
7818
|
-
const
|
|
7847
|
+
const b1 = P(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valuePlaceholder: s = "Valor", keyOptions: a, addLabel: o = "Adicionar", max: i, helpText: r = "Linhas vazias serão ignoradas.", className: d, ...h }, u) {
|
|
7819
7848
|
const f = Xs(n), g = (k, _) => l(f.map((p, b) => b === k ? { ...p, ..._ } : p)), v = (k) => l(f.filter((_, p) => p !== k)), x = () => l([...f, { name: "", value: "" }]), N = i == null || f.length < i;
|
|
7820
7849
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-kv${d ? " " + d : ""}`, children: [
|
|
7821
7850
|
f.map((k, _) => /* @__PURE__ */ m("div", { className: "select-kv__row", children: [
|
|
@@ -7855,7 +7884,7 @@ const _1 = P(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7855
7884
|
] }) }),
|
|
7856
7885
|
r && /* @__PURE__ */ e("p", { className: "select-kv__hint", children: r })
|
|
7857
7886
|
] });
|
|
7858
|
-
}),
|
|
7887
|
+
}), jn = (t) => String(t).padStart(2, "0"), Ks = {
|
|
7859
7888
|
"en-US": {
|
|
7860
7889
|
weekdays: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7861
7890
|
months: [
|
|
@@ -7898,9 +7927,9 @@ const _1 = P(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7898
7927
|
to: "Até",
|
|
7899
7928
|
cancel: "Cancelar",
|
|
7900
7929
|
apply: "Aplicar",
|
|
7901
|
-
formatDate: (t) => `${
|
|
7930
|
+
formatDate: (t) => `${jn(t.getDate())} / ${jn(t.getMonth() + 1)} / ${t.getFullYear()}`
|
|
7902
7931
|
}
|
|
7903
|
-
}, De = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), yt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), At = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n),
|
|
7932
|
+
}, De = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), yt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), At = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), Vn = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), xt = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), Nt = (t) => {
|
|
7904
7933
|
const n = /* @__PURE__ */ new Date();
|
|
7905
7934
|
return { from: new Date(n.getTime() - t * 6e4), to: n };
|
|
7906
7935
|
}, Js = [
|
|
@@ -7974,7 +8003,7 @@ const na = P(function({ value: n, presets: l = Js, onApply: c, onCancel: s, acce
|
|
|
7974
8003
|
type: "button",
|
|
7975
8004
|
className: "select-datepicker__nav",
|
|
7976
8005
|
"aria-label": o === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
7977
|
-
onClick: () => p((A) =>
|
|
8006
|
+
onClick: () => p((A) => Vn(A, -1)),
|
|
7978
8007
|
children: /* @__PURE__ */ e(Kt, {})
|
|
7979
8008
|
}
|
|
7980
8009
|
),
|
|
@@ -7989,7 +8018,7 @@ const na = P(function({ value: n, presets: l = Js, onApply: c, onCancel: s, acce
|
|
|
7989
8018
|
type: "button",
|
|
7990
8019
|
className: "select-datepicker__nav",
|
|
7991
8020
|
"aria-label": o === "pt-BR" ? "Próximo mês" : "Next month",
|
|
7992
|
-
onClick: () => p((A) =>
|
|
8021
|
+
onClick: () => p((A) => Vn(A, 1)),
|
|
7993
8022
|
children: /* @__PURE__ */ e(dt, {})
|
|
7994
8023
|
}
|
|
7995
8024
|
)
|
|
@@ -8016,7 +8045,7 @@ function la(t, n) {
|
|
|
8016
8045
|
}
|
|
8017
8046
|
return Vt(t.start, t.end) ? Zt(t.start) : `${Zt(t.start)} – ${Zt(t.end)}`;
|
|
8018
8047
|
}
|
|
8019
|
-
function
|
|
8048
|
+
function y1({
|
|
8020
8049
|
value: t,
|
|
8021
8050
|
onChange: n,
|
|
8022
8051
|
presets: l = ea,
|
|
@@ -8074,7 +8103,7 @@ function ca({ size: t }) {
|
|
|
8074
8103
|
}
|
|
8075
8104
|
) });
|
|
8076
8105
|
}
|
|
8077
|
-
const
|
|
8106
|
+
const x1 = P(function({ value: n, max: l = 5, onChange: c, size: s = 20, label: a, disabled: o = !1, className: i, ...r }, d) {
|
|
8078
8107
|
const h = !!c && !o, [u, f] = T(null), g = u ?? n;
|
|
8079
8108
|
return /* @__PURE__ */ e("div", { ref: d, ...r, className: `select-rating${h ? " select-rating--interactive" : ""}${i ? " " + i : ""}`, role: h ? "slider" : "img", "aria-label": a ?? `Avaliação ${n} de ${l}`, "aria-valuenow": h ? n : void 0, "aria-valuemin": h ? 0 : void 0, "aria-valuemax": h ? l : void 0, onMouseLeave: () => h && f(null), children: Array.from({ length: l }, (v, x) => {
|
|
8080
8109
|
const N = x < g, k = /* @__PURE__ */ e("span", { className: `select-rating__star${N ? " is-filled" : ""}`, children: /* @__PURE__ */ e(ca, { size: s }) });
|
|
@@ -8093,7 +8122,7 @@ const g1 = P(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8093
8122
|
x
|
|
8094
8123
|
) : /* @__PURE__ */ e("span", { children: k }, x);
|
|
8095
8124
|
}) });
|
|
8096
|
-
}),
|
|
8125
|
+
}), N1 = P(function({ label: n, value: l, onChange: c, min: s, max: a, step: o = 1, decimal: i = !1, disabled: r = !1, hint: d, error: h, onBlur: u, placeholder: f, size: g = "md", className: v, ...x }, N) {
|
|
8097
8126
|
const k = ne(), _ = (E) => Math.min(a ?? 1 / 0, Math.max(s ?? -1 / 0, E)), p = (E) => Math.round(E * 1e6) / 1e6, b = l ?? 0, S = s != null && b <= s, $ = a != null && b >= a, [M, w] = T(!1), [y, C] = T(""), L = i && M ? y : l == null ? "" : String(l), B = (E) => {
|
|
8098
8127
|
const F = i ? E.replace(/[^\d.,-]/g, "").replace(",", ".") : E.replace(/[^\d-]/g, "");
|
|
8099
8128
|
if (i && C(F), F === "" || F === "-" || F === ".") return c(null);
|
|
@@ -8153,7 +8182,7 @@ const g1 = P(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8153
8182
|
h ? /* @__PURE__ */ e("p", { className: "select-field__error", children: h }) : d ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: d }) : null
|
|
8154
8183
|
] });
|
|
8155
8184
|
});
|
|
8156
|
-
function
|
|
8185
|
+
function M1({
|
|
8157
8186
|
items: t,
|
|
8158
8187
|
onChange: n,
|
|
8159
8188
|
renderRow: l,
|
|
@@ -8208,7 +8237,7 @@ function y1({
|
|
|
8208
8237
|
] })
|
|
8209
8238
|
] });
|
|
8210
8239
|
}
|
|
8211
|
-
function
|
|
8240
|
+
function $1({
|
|
8212
8241
|
title: t,
|
|
8213
8242
|
subtitle: n,
|
|
8214
8243
|
backTo: l,
|
|
@@ -8240,10 +8269,10 @@ function x1({
|
|
|
8240
8269
|
}
|
|
8241
8270
|
);
|
|
8242
8271
|
}
|
|
8243
|
-
const
|
|
8272
|
+
const w1 = P(function({ label: n, checked: l, onChange: c, disabled: s = !1, hint: a, className: o, ...i }, r) {
|
|
8244
8273
|
return /* @__PURE__ */ m("div", { ref: r, ...i, className: `select-switchfield${s ? " is-disabled" : ""}${o ? " " + o : ""}`, children: [
|
|
8245
8274
|
/* @__PURE__ */ m("div", { className: "select-switchfield__row", children: [
|
|
8246
|
-
/* @__PURE__ */ e(
|
|
8275
|
+
/* @__PURE__ */ e(nn, { checked: l, onChange: c, disabled: s, label: n }),
|
|
8247
8276
|
/* @__PURE__ */ e(
|
|
8248
8277
|
"span",
|
|
8249
8278
|
{
|
|
@@ -8258,7 +8287,7 @@ const N1 = P(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8258
8287
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8259
8288
|
] });
|
|
8260
8289
|
}), sa = (t) => /^#[0-9a-fA-F]{6}$/.test(t);
|
|
8261
|
-
function
|
|
8290
|
+
function k1({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error: a }) {
|
|
8262
8291
|
return /* @__PURE__ */ e(
|
|
8263
8292
|
Ze,
|
|
8264
8293
|
{
|
|
@@ -8295,7 +8324,7 @@ function aa(t) {
|
|
|
8295
8324
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
8296
8325
|
});
|
|
8297
8326
|
}
|
|
8298
|
-
const
|
|
8327
|
+
const S1 = P(function({ label: n, value: l, onChange: c, accept: s = "image/*", maxSizeMB: a = 3, urlPlaceholder: o, hint: i, uploadFile: r, className: d, ...h }, u) {
|
|
8299
8328
|
const [f, g] = T([]), [v, x] = T(null), N = l ? [l] : [], k = async (_) => {
|
|
8300
8329
|
const p = _[0];
|
|
8301
8330
|
if (!p) {
|
|
@@ -8333,7 +8362,7 @@ const $1 = P(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8333
8362
|
),
|
|
8334
8363
|
v && /* @__PURE__ */ e("span", { className: "select-imagefield__error", children: v })
|
|
8335
8364
|
] });
|
|
8336
|
-
}),
|
|
8365
|
+
}), C1 = P(function({ items: n, multiple: l = !1, defaultOpenIds: c = [], className: s, ...a }, o) {
|
|
8337
8366
|
const [i, r] = T(() => new Set(c)), d = (h) => r((u) => {
|
|
8338
8367
|
const f = u.has(h), g = new Set(l ? u : []);
|
|
8339
8368
|
return f ? g.delete(h) : g.add(h), g;
|
|
@@ -8371,17 +8400,17 @@ const $1 = P(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8371
8400
|
});
|
|
8372
8401
|
export {
|
|
8373
8402
|
pa as AUTH_FX_VARIANTS,
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8403
|
+
Ba as AppleIcon,
|
|
8404
|
+
Xa as AppsIcon,
|
|
8405
|
+
Zn as ArrowLeftIcon,
|
|
8406
|
+
Ia as ArrowRightIcon,
|
|
8407
|
+
Ra as AtIcon,
|
|
8408
|
+
La as AuthAppIcon,
|
|
8409
|
+
ka as BellIcon,
|
|
8381
8410
|
xa as BookmarkIcon,
|
|
8382
|
-
|
|
8411
|
+
Ta as BuildingIcon,
|
|
8383
8412
|
Xn as CalendarIcon,
|
|
8384
|
-
|
|
8413
|
+
qa as ChartLineIcon,
|
|
8385
8414
|
Ql as CheckCircleIcon,
|
|
8386
8415
|
Ae as CheckIcon,
|
|
8387
8416
|
be as ChevronDownIcon,
|
|
@@ -8392,245 +8421,248 @@ export {
|
|
|
8392
8421
|
ya as ClockIcon,
|
|
8393
8422
|
Ke as CloseIcon,
|
|
8394
8423
|
Qt as CopyIcon,
|
|
8395
|
-
|
|
8424
|
+
ja as CreditCardIcon,
|
|
8396
8425
|
ql as CubeIcon,
|
|
8397
|
-
|
|
8426
|
+
Ya as DiscountIcon,
|
|
8398
8427
|
ba as DotsHorizontalIcon,
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8428
|
+
Va as EditIcon,
|
|
8429
|
+
Ua as ExportIcon,
|
|
8430
|
+
en as ExternalLinkIcon,
|
|
8402
8431
|
Yn as EyeIcon,
|
|
8403
8432
|
qn as EyeOffIcon,
|
|
8404
|
-
|
|
8433
|
+
Ea as FacebookIcon,
|
|
8405
8434
|
ga as FilterIcon,
|
|
8406
8435
|
va as GithubIcon,
|
|
8407
8436
|
Gl as GlobeIcon,
|
|
8408
8437
|
_a as GoogleIcon,
|
|
8409
|
-
|
|
8438
|
+
$a as HelpIcon,
|
|
8439
|
+
Oa as HomeIcon,
|
|
8410
8440
|
Bt as InfoIcon,
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8441
|
+
Wa as KeyIcon,
|
|
8442
|
+
Ga as LockIcon,
|
|
8443
|
+
Aa as MailIcon,
|
|
8444
|
+
Ja as MenuIcon,
|
|
8445
|
+
Ka as MinusCircleIcon,
|
|
8416
8446
|
Kl as MobileIcon,
|
|
8417
8447
|
Un as MonitorIcon,
|
|
8418
8448
|
Xl as MoonIcon,
|
|
8419
8449
|
nc as NoteIcon,
|
|
8420
|
-
|
|
8421
|
-
|
|
8450
|
+
Fa as PasskeyIcon,
|
|
8451
|
+
Ca as PhoneIcon,
|
|
8422
8452
|
Je as PlusIcon,
|
|
8423
8453
|
Jl as RefreshIcon,
|
|
8424
|
-
|
|
8454
|
+
Sa as RocketIcon,
|
|
8425
8455
|
Lc as SELECT_CARD_BRANDS,
|
|
8426
|
-
|
|
8456
|
+
Qr as SELECT_COL_DATETIME,
|
|
8427
8457
|
il as SELECT_COUNTRIES,
|
|
8428
8458
|
ea as SELECT_DAILY_PRESETS,
|
|
8429
8459
|
Js as SELECT_DATE_PRESETS,
|
|
8430
8460
|
ze as SELECT_SPACE,
|
|
8431
8461
|
wc as SELECT_TRANSACTION_STATUS,
|
|
8432
8462
|
Jt as SearchIcon,
|
|
8433
|
-
|
|
8434
|
-
|
|
8463
|
+
C1 as SelectAccordion,
|
|
8464
|
+
Ur as SelectActionCard,
|
|
8435
8465
|
ul as SelectActionList,
|
|
8436
|
-
|
|
8466
|
+
fr as SelectActionMenu,
|
|
8437
8467
|
sc as SelectAddButton,
|
|
8438
|
-
|
|
8468
|
+
u1 as SelectAddCard,
|
|
8439
8469
|
ut as SelectAlert,
|
|
8440
|
-
|
|
8470
|
+
Yr as SelectAppTile,
|
|
8441
8471
|
ma as SelectAuthFx,
|
|
8442
8472
|
Qc as SelectAvatar,
|
|
8443
|
-
|
|
8473
|
+
wr as SelectBackLink,
|
|
8444
8474
|
dl as SelectBadge,
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8475
|
+
uo as SelectBalanceCard,
|
|
8476
|
+
rr as SelectBankAccountField,
|
|
8477
|
+
_o as SelectBarChart,
|
|
8448
8478
|
Cc as SelectBox,
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8479
|
+
Po as SelectBoxPlot,
|
|
8480
|
+
$1 as SelectBuilderLayout,
|
|
8481
|
+
Lo as SelectBullet,
|
|
8482
|
+
e1 as SelectBump,
|
|
8453
8483
|
ve as SelectButton,
|
|
8454
|
-
|
|
8455
|
-
|
|
8484
|
+
Do as SelectCalendarHeatmap,
|
|
8485
|
+
Io as SelectCandlestick,
|
|
8456
8486
|
fa as SelectCard,
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8487
|
+
mo as SelectChartCard,
|
|
8488
|
+
er as SelectCheckbox,
|
|
8489
|
+
Uo as SelectChord,
|
|
8490
|
+
s1 as SelectCirclePack,
|
|
8491
|
+
Gr as SelectCollapsible,
|
|
8492
|
+
k1 as SelectColorField,
|
|
8493
|
+
xo as SelectColumnChart,
|
|
8494
|
+
bo as SelectComboChart,
|
|
8465
8495
|
uc as SelectCombobox,
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8496
|
+
Kr as SelectConfirmModal,
|
|
8497
|
+
Vr as SelectCopyRow,
|
|
8498
|
+
Zr as SelectCopyableId,
|
|
8499
|
+
qr as SelectCreateTile,
|
|
8500
|
+
to as SelectDataTable,
|
|
8471
8501
|
ks as SelectDateField,
|
|
8472
8502
|
na as SelectDatePicker,
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8503
|
+
y1 as SelectDateRangeField,
|
|
8504
|
+
i1 as SelectDetailList,
|
|
8505
|
+
d1 as SelectDetailRow,
|
|
8476
8506
|
Ic as SelectDisclosureButton,
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8507
|
+
yr as SelectDivider,
|
|
8508
|
+
cr as SelectDocumentField,
|
|
8509
|
+
yo as SelectDonut,
|
|
8480
8510
|
ha as SelectDotField,
|
|
8481
|
-
|
|
8482
|
-
|
|
8511
|
+
Oo as SelectDumbbell,
|
|
8512
|
+
ho as SelectFeeBreakdown,
|
|
8483
8513
|
Ze as SelectField,
|
|
8484
8514
|
hc as SelectFieldGrid,
|
|
8485
|
-
|
|
8515
|
+
sr as SelectFileDropzone,
|
|
8486
8516
|
kt as SelectFileTile,
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8517
|
+
no as SelectFilterBar,
|
|
8518
|
+
jr as SelectFilterChip,
|
|
8519
|
+
Cr as SelectFormLayout,
|
|
8520
|
+
Jr as SelectFormModal,
|
|
8521
|
+
No as SelectFunnel,
|
|
8522
|
+
Mo as SelectGauge,
|
|
8523
|
+
jo as SelectGaugeBands,
|
|
8524
|
+
zo as SelectGlobe,
|
|
8525
|
+
_r as SelectGrid,
|
|
8526
|
+
$o as SelectHeatmap,
|
|
8527
|
+
Yo as SelectHexbin,
|
|
8528
|
+
io as SelectHideMoneyToggle,
|
|
8529
|
+
So as SelectHorizontalBar,
|
|
8530
|
+
n1 as SelectIcicle,
|
|
8531
|
+
Ar as SelectIcon,
|
|
8502
8532
|
ge as SelectIconButton,
|
|
8503
|
-
|
|
8504
|
-
|
|
8533
|
+
Mr as SelectIdentityFooter,
|
|
8534
|
+
S1 as SelectImageField,
|
|
8505
8535
|
ac as SelectImageUploadField,
|
|
8506
|
-
|
|
8536
|
+
ar as SelectImageUrlsField,
|
|
8507
8537
|
zs as SelectImageZoomModal,
|
|
8508
8538
|
Pt as SelectInfoTip,
|
|
8509
8539
|
st as SelectInline,
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8540
|
+
gr as SelectJsonViewer,
|
|
8541
|
+
b1 as SelectKeyValueEditor,
|
|
8542
|
+
po as SelectKpiCard,
|
|
8513
8543
|
lt as SelectLabelRow,
|
|
8514
|
-
|
|
8544
|
+
vo as SelectLineChart,
|
|
8515
8545
|
Jc as SelectLinkButton,
|
|
8516
|
-
|
|
8517
|
-
|
|
8546
|
+
m1 as SelectListCard,
|
|
8547
|
+
f1 as SelectListRow,
|
|
8518
8548
|
ts as SelectLoader,
|
|
8519
|
-
|
|
8520
|
-
|
|
8549
|
+
Ho as SelectMarimekko,
|
|
8550
|
+
v1 as SelectMediaCell,
|
|
8521
8551
|
hs as SelectMenu,
|
|
8522
8552
|
ms as SelectMenuButton,
|
|
8523
|
-
|
|
8553
|
+
Hr as SelectMenuDivider,
|
|
8554
|
+
Or as SelectMenuHeading,
|
|
8524
8555
|
ps as SelectMenuItem,
|
|
8556
|
+
Wr as SelectMenuLink,
|
|
8525
8557
|
Hs as SelectMetricDelta,
|
|
8526
8558
|
Rt as SelectModal,
|
|
8527
8559
|
at as SelectMoney,
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8560
|
+
lr as SelectMoneyField,
|
|
8561
|
+
a1 as SelectNetwork,
|
|
8562
|
+
Er as SelectNote,
|
|
8563
|
+
N1 as SelectNumberField,
|
|
8564
|
+
g1 as SelectOfflineModal,
|
|
8565
|
+
xr as SelectOptionList,
|
|
8566
|
+
Nr as SelectOptionRow,
|
|
8567
|
+
$r as SelectOtpInput,
|
|
8536
8568
|
ns as SelectPage,
|
|
8537
8569
|
gs as SelectPagination,
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8570
|
+
Ir as SelectPanel,
|
|
8571
|
+
t1 as SelectParallel,
|
|
8572
|
+
Ko as SelectPareto,
|
|
8573
|
+
Sr as SelectPasswordStrength,
|
|
8574
|
+
vr as SelectPaymentBrand,
|
|
8575
|
+
ur as SelectPhoneField,
|
|
8576
|
+
p1 as SelectPlanCard,
|
|
8577
|
+
To as SelectPolarArea,
|
|
8546
8578
|
We as SelectPopover,
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8579
|
+
ro as SelectPreviewFrame,
|
|
8580
|
+
wo as SelectProgressList,
|
|
8581
|
+
Qo as SelectPyramid,
|
|
8582
|
+
Bo as SelectRadar,
|
|
8583
|
+
ko as SelectRadialBar,
|
|
8584
|
+
hr as SelectRadioGroup,
|
|
8585
|
+
Ro as SelectRangeBar,
|
|
8586
|
+
x1 as SelectRating,
|
|
8587
|
+
M1 as SelectRepeatingFieldArray,
|
|
8588
|
+
kr as SelectResendButton,
|
|
8589
|
+
Xr as SelectRowActions,
|
|
8590
|
+
Fo as SelectSankey,
|
|
8591
|
+
Eo as SelectScatter,
|
|
8560
8592
|
yl as SelectSearchInput,
|
|
8561
|
-
|
|
8562
|
-
|
|
8593
|
+
Pr as SelectSection,
|
|
8594
|
+
pr as SelectSegmented,
|
|
8563
8595
|
cl as SelectSelect,
|
|
8564
8596
|
Ws as SelectSensitiveValue,
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8597
|
+
Br as SelectSettingList,
|
|
8598
|
+
Fr as SelectSettingRow,
|
|
8599
|
+
Dr as SelectSideNav,
|
|
8600
|
+
Lr as SelectSkeleton,
|
|
8601
|
+
Wo as SelectSlope,
|
|
8602
|
+
fo as SelectSparkline,
|
|
8571
8603
|
Gt as SelectStack,
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8604
|
+
go as SelectStackedArea,
|
|
8605
|
+
mr as SelectStatusBadge,
|
|
8606
|
+
h1 as SelectSteps,
|
|
8607
|
+
Vo as SelectStreamGraph,
|
|
8608
|
+
Zo as SelectSunburst,
|
|
8609
|
+
co as SelectSurface,
|
|
8610
|
+
nn as SelectSwitch,
|
|
8611
|
+
w1 as SelectSwitchField,
|
|
8580
8612
|
ds as SelectTable,
|
|
8581
|
-
|
|
8613
|
+
$n as SelectTableCell,
|
|
8582
8614
|
us as SelectTableEmpty,
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8615
|
+
Mn as SelectTableRow,
|
|
8616
|
+
Rr as SelectTabs,
|
|
8617
|
+
lo as SelectTagSelect,
|
|
8586
8618
|
Xe as SelectText,
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8619
|
+
tr as SelectTextarea,
|
|
8620
|
+
o1 as SelectThemeSwitcher,
|
|
8621
|
+
Hn as SelectThumbnail,
|
|
8622
|
+
Xo as SelectTicker,
|
|
8623
|
+
br as SelectTimeline,
|
|
8624
|
+
so as SelectToastProvider,
|
|
8625
|
+
or as SelectToggleList,
|
|
8626
|
+
dr as SelectTogglePanel,
|
|
8627
|
+
ir as SelectToggleRow,
|
|
8628
|
+
cn as SelectTooltip,
|
|
8629
|
+
l1 as SelectTree,
|
|
8630
|
+
Ao as SelectTreemap,
|
|
8631
|
+
nr as SelectUnitInput,
|
|
8632
|
+
Tr as SelectUserCell,
|
|
8633
|
+
oo as SelectValueVisibilityProvider,
|
|
8634
|
+
c1 as SelectVenn,
|
|
8635
|
+
Go as SelectViolin,
|
|
8636
|
+
Jo as SelectWaffle,
|
|
8637
|
+
Co as SelectWaterfall,
|
|
8638
|
+
qo as SelectWordCloud,
|
|
8639
|
+
zr as SelectWorkspaceSwitcher,
|
|
8640
|
+
_1 as SelectZoomThumbnail,
|
|
8609
8641
|
Gn as SelectorIcon,
|
|
8610
|
-
|
|
8642
|
+
Za as SendIcon,
|
|
8611
8643
|
Zl as Setting4Icon,
|
|
8612
8644
|
ec as SettingsIcon,
|
|
8613
|
-
|
|
8645
|
+
Pa as ShieldIcon,
|
|
8614
8646
|
Ma as SplitIcon,
|
|
8615
8647
|
Na as StarIcon,
|
|
8616
|
-
|
|
8617
|
-
|
|
8648
|
+
za as StoreIcon,
|
|
8649
|
+
Qa as StorefrontIcon,
|
|
8618
8650
|
zl as SunIcon,
|
|
8619
8651
|
Yl as TerminalIcon,
|
|
8620
8652
|
zn as TrashIcon,
|
|
8621
8653
|
wt as UploadIcon,
|
|
8622
|
-
|
|
8623
|
-
|
|
8654
|
+
wa as UserIcon,
|
|
8655
|
+
Ha as WalletIcon,
|
|
8624
8656
|
Ul as WarningIcon,
|
|
8625
|
-
|
|
8657
|
+
Da as Web3Icon,
|
|
8626
8658
|
ht as detectSelectTheme,
|
|
8627
8659
|
$c as dialCodeOf,
|
|
8628
8660
|
es as passwordScore,
|
|
8629
|
-
|
|
8661
|
+
r1 as resolveSelectTheme,
|
|
8630
8662
|
hl as selectCardBrand,
|
|
8631
8663
|
Ac as selectCardBrandLabel,
|
|
8632
|
-
|
|
8633
|
-
|
|
8664
|
+
eo as useSelectPageSize,
|
|
8665
|
+
ao as useSelectToast,
|
|
8634
8666
|
wl as useSelectValueVisibility
|
|
8635
8667
|
};
|
|
8636
8668
|
//# sourceMappingURL=index.js.map
|