@sakaniui/react 0.4.0 → 0.4.2
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/README.md +5 -5
- package/dist/{TopBar-CWqp1c0A.js → TopBar-BN2DyH1y.js} +976 -659
- package/dist/TopBar-CepIdyw6.cjs +1 -0
- package/dist/blocks/LiquidDashboardBlock/parts/RailTooltip.d.ts +12 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +2145 -2028
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +528 -528
- package/dist/style.css +1 -1
- package/dist/tokens.css +54 -28
- package/package.json +1 -1
- package/dist/TopBar-CgO9Njm_.cjs +0 -1
|
@@ -610,120 +610,369 @@ function it(e, r) {
|
|
|
610
610
|
t && a(t.closest("[data-surface]")?.getAttribute("data-surface") ?? void 0);
|
|
611
611
|
}, [e, r]), i;
|
|
612
612
|
}
|
|
613
|
-
var
|
|
614
|
-
liquid: "
|
|
615
|
-
regular: "
|
|
616
|
-
clear: "
|
|
617
|
-
|
|
618
|
-
|
|
613
|
+
var L = {
|
|
614
|
+
liquid: "_liquid_13biw_6",
|
|
615
|
+
regular: "_regular_13biw_6",
|
|
616
|
+
clear: "_clear_13biw_14",
|
|
617
|
+
"tint-regular": "_tint-regular_13biw_34",
|
|
618
|
+
"tint-clear": "_tint-clear_13biw_35",
|
|
619
|
+
"tint-subtle": "_tint-subtle_13biw_36",
|
|
620
|
+
"tint-none": "_tint-none_13biw_37",
|
|
621
|
+
sourceClip: "_sourceClip_13biw_47",
|
|
622
|
+
source: "_source_13biw_47",
|
|
623
|
+
sourceImage: "_sourceImage_13biw_56",
|
|
624
|
+
sourceCanvas: "_sourceCanvas_13biw_63",
|
|
625
|
+
probe: "_probe_13biw_64",
|
|
626
|
+
fill: "_fill_13biw_65",
|
|
627
|
+
interactive: "_interactive_13biw_120",
|
|
628
|
+
defs: "_defs_13biw_122"
|
|
619
629
|
};
|
|
620
630
|
//#endregion
|
|
621
631
|
//#region src/lib/LiquidGlass.tsx
|
|
622
|
-
function
|
|
632
|
+
function at() {
|
|
623
633
|
return typeof navigator > "u" ? !1 : !!(navigator.userAgentData?.brands)?.some((e) => /Chromium/i.test(e.brand));
|
|
624
634
|
}
|
|
625
|
-
var
|
|
626
|
-
function
|
|
627
|
-
let i = `${
|
|
628
|
-
if (
|
|
629
|
-
let
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
635
|
+
var ot = /* @__PURE__ */ new Map();
|
|
636
|
+
function st(e) {
|
|
637
|
+
let { w: t, h: n, radius: r, bezel: i, intensity: a, reach: o, lx: s, ly: c } = e, l = `${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u = ot.get(l);
|
|
638
|
+
if (u) return u;
|
|
639
|
+
let d = () => {
|
|
640
|
+
let e = document.createElement("canvas");
|
|
641
|
+
return e.width = t, e.height = n, e;
|
|
642
|
+
}, f = d(), p = d(), m = f.getContext("2d"), h = p.getContext("2d");
|
|
643
|
+
if (!m || !h) return {
|
|
644
|
+
map: "",
|
|
645
|
+
light: ""
|
|
646
|
+
};
|
|
647
|
+
let g = m.createImageData(t, n), _ = h.createImageData(t, n), v = g.data, y = _.data, b = Math.min(r, t / 2, n / 2), x = t / 2, S = n / 2, C = Math.max(i, a > 0 ? o : 0, 1);
|
|
648
|
+
for (let e = 0; e < n; e++) for (let r = 0; r < t; r++) {
|
|
649
|
+
let l = r + .5, u = e + .5, d = Math.abs(l - x) - (t / 2 - b), f = Math.abs(u - S) - (n / 2 - b), p = Math.max(d, 0), m = Math.max(f, 0), h = Math.hypot(p, m), g = -(h + Math.min(Math.max(d, f), 0) - b), _ = 0, w = 0, T = 0;
|
|
650
|
+
if (g > -1 && g < C) {
|
|
651
|
+
let e = 0, t = 0;
|
|
652
|
+
if (d > 0 && f > 0 && h > 0 ? (e = p / h, t = m / h) : d > f ? e = 1 : t = 1, e *= Math.sign(l - x) || 1, t *= Math.sign(u - S) || 1, g >= 0 && g < i) {
|
|
653
|
+
let n = 1 - Math.min(i, g < 1 ? g + 1 : g) / i, r = (1 - Math.sqrt(1 - n * n)) * (g < 1 ? .5 : 1);
|
|
654
|
+
_ = -e * r, w = -t * r;
|
|
655
|
+
}
|
|
656
|
+
if (a > 0) {
|
|
657
|
+
let n = e * s + t * c, r = Math.abs(n);
|
|
658
|
+
g < 1 ? T = a * (n > 0 ? 106 * r ** .86 : 101 * r ** 1.45) : o > 0 && (T = (n > 0 ? -14 : 11.6) * a * r * Math.max(0, 1 - (g - .5) / o));
|
|
659
|
+
}
|
|
640
660
|
}
|
|
641
|
-
let
|
|
642
|
-
|
|
661
|
+
let E = (e * t + r) * 4;
|
|
662
|
+
v[E] = 128 + _ * 127, v[E + 1] = 128 + w * 127, v[E + 2] = 128, v[E + 3] = 255;
|
|
663
|
+
let D = Math.max(0, Math.min(255, Math.round(128 + T)));
|
|
664
|
+
y[E] = D, y[E + 1] = D, y[E + 2] = D, y[E + 3] = 255;
|
|
665
|
+
}
|
|
666
|
+
m.putImageData(g, 0, 0), h.putImageData(_, 0, 0);
|
|
667
|
+
let w = {
|
|
668
|
+
map: f.toDataURL(),
|
|
669
|
+
light: p.toDataURL()
|
|
670
|
+
};
|
|
671
|
+
return ot.set(l, w), w;
|
|
672
|
+
}
|
|
673
|
+
var ct = e.createContext(null), lt = e.forwardRef(({ src: t, position: n = "center", veil: r, style: a, children: o, ...s }, c) => {
|
|
674
|
+
let l = e.useRef(null), u = (e) => {
|
|
675
|
+
l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
676
|
+
}, d = r ? `linear-gradient(${r}, ${r}), url("${t}")` : `url("${t}")`, f = r ? "100% 100%, cover" : "cover", p = e.useMemo(() => ({
|
|
677
|
+
src: t,
|
|
678
|
+
veil: r,
|
|
679
|
+
image: d,
|
|
680
|
+
size: f,
|
|
681
|
+
position: n,
|
|
682
|
+
rootRef: l
|
|
683
|
+
}), [
|
|
684
|
+
t,
|
|
685
|
+
r,
|
|
686
|
+
d,
|
|
687
|
+
f,
|
|
688
|
+
n
|
|
689
|
+
]);
|
|
690
|
+
return /* @__PURE__ */ i("div", {
|
|
691
|
+
ref: u,
|
|
692
|
+
...s,
|
|
693
|
+
style: {
|
|
694
|
+
backgroundImage: d,
|
|
695
|
+
backgroundSize: f,
|
|
696
|
+
backgroundPosition: n,
|
|
697
|
+
backgroundRepeat: "no-repeat",
|
|
698
|
+
...a
|
|
699
|
+
},
|
|
700
|
+
children: /* @__PURE__ */ i(ct.Provider, {
|
|
701
|
+
value: p,
|
|
702
|
+
children: o
|
|
703
|
+
})
|
|
704
|
+
});
|
|
705
|
+
});
|
|
706
|
+
lt.displayName = "LiquidBackdrop";
|
|
707
|
+
var ut = /* @__PURE__ */ new Set(), dt = 0, ft = 0, pt = () => {
|
|
708
|
+
let e = !1;
|
|
709
|
+
ut.forEach((t) => {
|
|
710
|
+
t() && (e = !0);
|
|
711
|
+
}), ft = e ? 0 : ft + 1, dt = ut.size && ft < 24 ? requestAnimationFrame(pt) : 0;
|
|
712
|
+
}, mt = () => {
|
|
713
|
+
ft = 0, !dt && ut.size && (dt = requestAnimationFrame(pt));
|
|
714
|
+
}, ht = !1;
|
|
715
|
+
function gt(e) {
|
|
716
|
+
if (!ht && typeof window < "u") {
|
|
717
|
+
ht = !0, window.addEventListener("scroll", mt, {
|
|
718
|
+
capture: !0,
|
|
719
|
+
passive: !0
|
|
720
|
+
}), window.addEventListener("resize", mt);
|
|
721
|
+
for (let e of [
|
|
722
|
+
"transitionrun",
|
|
723
|
+
"transitionend",
|
|
724
|
+
"animationstart",
|
|
725
|
+
"animationend",
|
|
726
|
+
"pointerdown",
|
|
727
|
+
"pointerup"
|
|
728
|
+
]) document.addEventListener(e, mt, !0);
|
|
729
|
+
new MutationObserver(mt).observe(document.documentElement, {
|
|
730
|
+
attributes: !0,
|
|
731
|
+
attributeFilter: ["class", "data-theme"],
|
|
732
|
+
subtree: !0
|
|
733
|
+
});
|
|
643
734
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
735
|
+
return ut.add(e), e(), mt(), () => {
|
|
736
|
+
ut.delete(e);
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
function _t() {
|
|
740
|
+
ut.forEach((e) => e()), mt();
|
|
647
741
|
}
|
|
648
|
-
var
|
|
742
|
+
var vt = /* @__PURE__ */ new Map();
|
|
743
|
+
function yt(e) {
|
|
744
|
+
let t = vt.get(e);
|
|
745
|
+
return t || (t = new Promise((t, n) => {
|
|
746
|
+
let r = new Image();
|
|
747
|
+
r.decoding = "async", r.onload = () => t(r), r.onerror = n, r.src = e;
|
|
748
|
+
}), vt.set(e, t)), t;
|
|
749
|
+
}
|
|
750
|
+
function bt(e) {
|
|
751
|
+
let t = {
|
|
752
|
+
left: 0,
|
|
753
|
+
top: 0,
|
|
754
|
+
center: .5,
|
|
755
|
+
right: 1,
|
|
756
|
+
bottom: 1
|
|
757
|
+
}, n = e.trim().split(/\s+/), r = (e) => e === void 0 ? .5 : e in t ? t[e] : e.endsWith("%") ? parseFloat(e) / 100 : .5;
|
|
758
|
+
return n.length === 1 && (n[0] === "top" || n[0] === "bottom") ? [.5, r(n[0])] : [r(n[0]), r(n[1])];
|
|
759
|
+
}
|
|
760
|
+
var xt = 300 * 300, St = (e, t, n) => {
|
|
649
761
|
let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
|
|
650
762
|
return Number.isFinite(r) ? r : n;
|
|
651
763
|
};
|
|
652
|
-
function
|
|
653
|
-
let
|
|
764
|
+
function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source: c = !0, bake: l = "auto" } = {}) {
|
|
765
|
+
let u = `liquid-${e.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [d, f] = e.useState(null), p = n && o !== "off" && at(), m = e.useContext(ct), h = p && c && !!m, g = e.useRef(null);
|
|
654
766
|
e.useEffect(() => {
|
|
655
767
|
let e = t.current;
|
|
656
|
-
if (!e || !
|
|
657
|
-
|
|
768
|
+
if (!e || !p) {
|
|
769
|
+
f(null);
|
|
658
770
|
return;
|
|
659
771
|
}
|
|
660
772
|
let n = () => {
|
|
661
773
|
let t = Math.round(e.offsetWidth), n = Math.round(e.offsetHeight);
|
|
662
774
|
if (!t || !n) return;
|
|
663
|
-
let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i =
|
|
775
|
+
let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i = St(e, "--liquid-refraction", .8), a = Math.max(0, St(e, "--liquid-depth", 20)), o = St(e, "--liquid-dispersion", 0), s = Math.max(0, St(e, "--liquid-frost", 0)), c = Math.max(0, St(e, "--liquid-light-intensity", 0)), l = St(e, "--liquid-light-angle", -45) * Math.PI / 180, u = .8 * a, d = Math.max(1, Math.round(Math.min(u, Math.min(t, n) / 2))), p = u > 0 ? d / u : 0, m = {
|
|
664
776
|
w: t,
|
|
665
777
|
h: n,
|
|
666
778
|
radius: r,
|
|
667
|
-
bezel:
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
frost:
|
|
671
|
-
|
|
779
|
+
bezel: d,
|
|
780
|
+
bend: i * (10.9 + 1.1 * a) * p,
|
|
781
|
+
spread: .11 * o,
|
|
782
|
+
frost: Math.max(.65, Math.hypot(.47, .45 * s)),
|
|
783
|
+
intensity: c,
|
|
784
|
+
reach: .75 * a * (p || 1),
|
|
785
|
+
lx: Math.sin(l),
|
|
786
|
+
ly: -Math.cos(l)
|
|
672
787
|
};
|
|
673
|
-
|
|
788
|
+
f((e) => e && Object.keys(m).every((t) => e[t] === m[t]) ? e : m);
|
|
674
789
|
};
|
|
675
790
|
n();
|
|
676
|
-
let r = new ResizeObserver(
|
|
791
|
+
let r = new ResizeObserver(() => {
|
|
792
|
+
n(), mt();
|
|
793
|
+
});
|
|
677
794
|
return r.observe(e), () => r.disconnect();
|
|
678
|
-
}, [
|
|
679
|
-
|
|
795
|
+
}, [
|
|
796
|
+
t,
|
|
797
|
+
p,
|
|
798
|
+
s
|
|
799
|
+
]);
|
|
800
|
+
let _ = d ? st(d) : null, v = e.useCallback((e) => {
|
|
680
801
|
let t = e.currentTarget, n = t.getBoundingClientRect();
|
|
681
802
|
t.style.setProperty("--mx", `${e.clientX - n.left}px`), t.style.setProperty("--my", `${e.clientY - n.top}px`);
|
|
682
|
-
}, []),
|
|
803
|
+
}, []), y = p && !!d && !!_?.map, b = h && !!d && (l === "auto" ? d.w * d.h > xt : l), x = e.useRef(null), S = e.useRef(null), C = e.useRef(0);
|
|
804
|
+
e.useLayoutEffect(() => {
|
|
805
|
+
let e = t.current;
|
|
806
|
+
if (!h || !y || !e || !m || !d || !_) return;
|
|
807
|
+
let n = "", r = 0, i = 0, a = 0, o = (e, t, n, r, i) => {
|
|
808
|
+
let a = ++C.current;
|
|
809
|
+
yt(m.src).then((o) => {
|
|
810
|
+
let s = x.current, c = document.getElementById(`${u}-bake`);
|
|
811
|
+
if (a !== C.current || !s || !c) return;
|
|
812
|
+
let l = Math.min(2, window.devicePixelRatio || 1), f = Math.round(d.w * l), p = Math.round(d.h * l), h = document.createElement("canvas");
|
|
813
|
+
h.width = f, h.height = p;
|
|
814
|
+
let g = h.getContext("2d"), _ = s.getContext("2d");
|
|
815
|
+
if (!g || !_) return;
|
|
816
|
+
g.scale(l, l), g.translate(e, t);
|
|
817
|
+
let v = Math.max(n / o.naturalWidth, r / o.naturalHeight), y = o.naturalWidth * v, b = o.naturalHeight * v, [S, w] = bt(m.position);
|
|
818
|
+
g.drawImage(o, (n - y) * S, (r - b) * w, y, b), i && i !== "rgba(0, 0, 0, 0)" && i !== "transparent" && (g.fillStyle = i, g.fillRect(0, 0, n, r)), s.width = f, s.height = p, _.filter = `url(#${u}-bake)`, _.drawImage(h, 0, 0), _.filter = "none";
|
|
819
|
+
}).catch(() => {});
|
|
820
|
+
};
|
|
821
|
+
return gt(() => {
|
|
822
|
+
let t = m.rootRef.current, s = g.current;
|
|
823
|
+
if (!t || !b && !s || b && !x.current) return ++r < 120;
|
|
824
|
+
let c = e.getBoundingClientRect(), l = t.getBoundingClientRect(), u = e.offsetWidth ? c.width / e.offsetWidth : 1, d = e.offsetHeight ? c.height / e.offsetHeight : 1, f = (l.left - c.left) / u, p = (l.top - c.top) / d, h = l.width / u, _ = l.height / d, v = "";
|
|
825
|
+
b && m.veil && S.current && (S.current.style.backgroundColor = m.veil, v = getComputedStyle(S.current).backgroundColor);
|
|
826
|
+
let y = `${f.toFixed(2)},${p.toFixed(2)},${h.toFixed(2)},${_.toFixed(2)},${v}`;
|
|
827
|
+
if (y === n) return !1;
|
|
828
|
+
if (n = y, b) {
|
|
829
|
+
let e = performance.now();
|
|
830
|
+
clearTimeout(a), e - i > 120 ? (i = e, o(f, p, h, _, v)) : a = window.setTimeout(() => {
|
|
831
|
+
i = performance.now(), o(f, p, h, _, v);
|
|
832
|
+
}, 130);
|
|
833
|
+
} else s && (s.style.width = `${h}px`, s.style.height = `${_}px`, s.style.transform = `translate3d(${f}px, ${p}px, 0)`);
|
|
834
|
+
return !0;
|
|
835
|
+
});
|
|
836
|
+
}, [
|
|
837
|
+
h,
|
|
838
|
+
y,
|
|
839
|
+
m,
|
|
840
|
+
t,
|
|
841
|
+
b,
|
|
842
|
+
d,
|
|
843
|
+
_,
|
|
844
|
+
u
|
|
845
|
+
]);
|
|
846
|
+
let w = (e) => {
|
|
683
847
|
let t = Array(20).fill(0);
|
|
684
848
|
return t[e * 5 + e] = 1, t[18] = 1, t.join(" ");
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
849
|
+
}, T = y && d && _ ? /* @__PURE__ */ i("svg", {
|
|
850
|
+
className: L.defs,
|
|
851
|
+
width: "0",
|
|
852
|
+
height: "0",
|
|
853
|
+
"aria-hidden": "true",
|
|
854
|
+
focusable: "false",
|
|
855
|
+
children: /* @__PURE__ */ a("filter", {
|
|
856
|
+
id: u,
|
|
857
|
+
x: "0",
|
|
858
|
+
y: "0",
|
|
859
|
+
width: d.w,
|
|
860
|
+
height: d.h,
|
|
861
|
+
filterUnits: "userSpaceOnUse",
|
|
862
|
+
primitiveUnits: "userSpaceOnUse",
|
|
863
|
+
colorInterpolationFilters: "sRGB",
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ i("feImage", {
|
|
866
|
+
href: _.map,
|
|
867
|
+
x: "0",
|
|
868
|
+
y: "0",
|
|
869
|
+
width: d.w,
|
|
870
|
+
height: d.h,
|
|
871
|
+
preserveAspectRatio: "none",
|
|
872
|
+
result: "map"
|
|
873
|
+
}),
|
|
874
|
+
/* @__PURE__ */ i("feGaussianBlur", {
|
|
875
|
+
in: "SourceGraphic",
|
|
876
|
+
stdDeviation: d.frost,
|
|
877
|
+
edgeMode: "duplicate",
|
|
878
|
+
result: "frost"
|
|
879
|
+
}),
|
|
880
|
+
[
|
|
881
|
+
0,
|
|
882
|
+
1,
|
|
883
|
+
2
|
|
884
|
+
].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
|
|
885
|
+
in: "frost",
|
|
886
|
+
in2: "map",
|
|
887
|
+
scale: 2 * d.bend * (1 + (1 - t) * d.spread),
|
|
888
|
+
xChannelSelector: "R",
|
|
889
|
+
yChannelSelector: "G",
|
|
890
|
+
result: `d${t}`
|
|
891
|
+
}), /* @__PURE__ */ i("feColorMatrix", {
|
|
892
|
+
in: `d${t}`,
|
|
893
|
+
type: "matrix",
|
|
894
|
+
values: w(t),
|
|
895
|
+
result: `c${t}`
|
|
896
|
+
})] }, t)),
|
|
897
|
+
/* @__PURE__ */ i("feBlend", {
|
|
898
|
+
in: "c0",
|
|
899
|
+
in2: "c1",
|
|
900
|
+
mode: "screen",
|
|
901
|
+
result: "c01"
|
|
902
|
+
}),
|
|
903
|
+
/* @__PURE__ */ i("feBlend", {
|
|
904
|
+
in: "c01",
|
|
905
|
+
in2: "c2",
|
|
906
|
+
mode: "screen",
|
|
907
|
+
result: "bent"
|
|
908
|
+
}),
|
|
909
|
+
d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
|
|
910
|
+
href: _.light,
|
|
911
|
+
x: "0",
|
|
912
|
+
y: "0",
|
|
913
|
+
width: d.w,
|
|
914
|
+
height: d.h,
|
|
915
|
+
preserveAspectRatio: "none",
|
|
916
|
+
result: "light"
|
|
917
|
+
}), /* @__PURE__ */ i("feComposite", {
|
|
918
|
+
in: "bent",
|
|
919
|
+
in2: "light",
|
|
920
|
+
operator: "arithmetic",
|
|
921
|
+
k1: 0,
|
|
922
|
+
k2: 1,
|
|
923
|
+
k3: 1,
|
|
924
|
+
k4: -128 / 255
|
|
925
|
+
})] })
|
|
926
|
+
]
|
|
927
|
+
})
|
|
928
|
+
}) : null, E = typeof window < "u" ? Math.min(2, window.devicePixelRatio || 1) : 1, D = b && d && _ ? (() => {
|
|
929
|
+
let t = Math.round(d.w * E), n = Math.round(d.h * E);
|
|
930
|
+
return /* @__PURE__ */ i("svg", {
|
|
931
|
+
className: L.defs,
|
|
689
932
|
width: "0",
|
|
690
933
|
height: "0",
|
|
691
934
|
"aria-hidden": "true",
|
|
692
935
|
focusable: "false",
|
|
693
936
|
children: /* @__PURE__ */ a("filter", {
|
|
694
|
-
id:
|
|
937
|
+
id: `${u}-bake`,
|
|
695
938
|
x: "0",
|
|
696
939
|
y: "0",
|
|
697
|
-
width:
|
|
698
|
-
height:
|
|
940
|
+
width: t,
|
|
941
|
+
height: n,
|
|
699
942
|
filterUnits: "userSpaceOnUse",
|
|
700
943
|
primitiveUnits: "userSpaceOnUse",
|
|
701
944
|
colorInterpolationFilters: "sRGB",
|
|
702
945
|
children: [
|
|
703
946
|
/* @__PURE__ */ i("feImage", {
|
|
704
|
-
href:
|
|
947
|
+
href: _.map,
|
|
705
948
|
x: "0",
|
|
706
949
|
y: "0",
|
|
707
|
-
width:
|
|
708
|
-
height:
|
|
950
|
+
width: t,
|
|
951
|
+
height: n,
|
|
709
952
|
preserveAspectRatio: "none",
|
|
710
953
|
result: "map"
|
|
711
954
|
}),
|
|
955
|
+
/* @__PURE__ */ i("feGaussianBlur", {
|
|
956
|
+
in: "SourceGraphic",
|
|
957
|
+
stdDeviation: d.frost * E,
|
|
958
|
+
edgeMode: "duplicate",
|
|
959
|
+
result: "frost"
|
|
960
|
+
}),
|
|
712
961
|
[
|
|
713
962
|
0,
|
|
714
963
|
1,
|
|
715
964
|
2
|
|
716
965
|
].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
|
|
717
|
-
in: "
|
|
966
|
+
in: "frost",
|
|
718
967
|
in2: "map",
|
|
719
|
-
scale:
|
|
968
|
+
scale: 2 * d.bend * E * (1 + (1 - t) * d.spread),
|
|
720
969
|
xChannelSelector: "R",
|
|
721
970
|
yChannelSelector: "G",
|
|
722
971
|
result: `d${t}`
|
|
723
972
|
}), /* @__PURE__ */ i("feColorMatrix", {
|
|
724
973
|
in: `d${t}`,
|
|
725
974
|
type: "matrix",
|
|
726
|
-
values:
|
|
975
|
+
values: w(t),
|
|
727
976
|
result: `c${t}`
|
|
728
977
|
})] }, t)),
|
|
729
978
|
/* @__PURE__ */ i("feBlend", {
|
|
@@ -736,75 +985,140 @@ function ut(t, { enabled: n = !0, refraction: r = "auto" } = {}) {
|
|
|
736
985
|
in: "c01",
|
|
737
986
|
in2: "c2",
|
|
738
987
|
mode: "screen",
|
|
739
|
-
result: "
|
|
740
|
-
}),
|
|
741
|
-
/* @__PURE__ */ i("feGaussianBlur", {
|
|
742
|
-
in: "rgb",
|
|
743
|
-
stdDeviation: s.frost,
|
|
744
|
-
result: "soft"
|
|
988
|
+
result: "bent"
|
|
745
989
|
}),
|
|
746
|
-
/* @__PURE__ */ i("
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
990
|
+
d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
|
|
991
|
+
href: _.light,
|
|
992
|
+
x: "0",
|
|
993
|
+
y: "0",
|
|
994
|
+
width: t,
|
|
995
|
+
height: n,
|
|
996
|
+
preserveAspectRatio: "none",
|
|
997
|
+
result: "light"
|
|
998
|
+
}), /* @__PURE__ */ i("feComposite", {
|
|
999
|
+
in: "bent",
|
|
1000
|
+
in2: "light",
|
|
1001
|
+
operator: "arithmetic",
|
|
1002
|
+
k1: 0,
|
|
1003
|
+
k2: 1,
|
|
1004
|
+
k3: 1,
|
|
1005
|
+
k4: -128 / 255
|
|
1006
|
+
})] })
|
|
751
1007
|
]
|
|
752
1008
|
})
|
|
753
|
-
})
|
|
754
|
-
|
|
1009
|
+
});
|
|
1010
|
+
})() : null;
|
|
1011
|
+
return {
|
|
1012
|
+
filter: y && h && m ? b ? /* @__PURE__ */ a(r, { children: [
|
|
1013
|
+
D,
|
|
1014
|
+
/* @__PURE__ */ a("span", {
|
|
1015
|
+
className: L.sourceClip,
|
|
1016
|
+
"aria-hidden": "true",
|
|
1017
|
+
children: [/* @__PURE__ */ i("canvas", {
|
|
1018
|
+
ref: x,
|
|
1019
|
+
className: L.sourceCanvas
|
|
1020
|
+
}), /* @__PURE__ */ i("span", {
|
|
1021
|
+
ref: S,
|
|
1022
|
+
className: L.probe
|
|
1023
|
+
})]
|
|
1024
|
+
}),
|
|
1025
|
+
/* @__PURE__ */ i("span", {
|
|
1026
|
+
className: L.fill,
|
|
1027
|
+
"aria-hidden": "true"
|
|
1028
|
+
})
|
|
1029
|
+
] }) : /* @__PURE__ */ a(r, { children: [
|
|
1030
|
+
T,
|
|
1031
|
+
/* @__PURE__ */ i("span", {
|
|
1032
|
+
className: L.sourceClip,
|
|
1033
|
+
"aria-hidden": "true",
|
|
1034
|
+
children: /* @__PURE__ */ i("span", {
|
|
1035
|
+
className: L.source,
|
|
1036
|
+
style: { filter: `url(#${u})` },
|
|
1037
|
+
children: /* @__PURE__ */ i("span", {
|
|
1038
|
+
ref: g,
|
|
1039
|
+
className: L.sourceImage,
|
|
1040
|
+
style: {
|
|
1041
|
+
backgroundImage: m.image,
|
|
1042
|
+
backgroundSize: m.size,
|
|
1043
|
+
backgroundPosition: m.position
|
|
1044
|
+
}
|
|
1045
|
+
})
|
|
1046
|
+
})
|
|
1047
|
+
}),
|
|
1048
|
+
/* @__PURE__ */ i("span", {
|
|
1049
|
+
className: L.fill,
|
|
1050
|
+
"aria-hidden": "true"
|
|
1051
|
+
})
|
|
1052
|
+
] }) : T,
|
|
1053
|
+
refracting: y,
|
|
755
1054
|
props: {
|
|
756
1055
|
"data-surface": "liquid",
|
|
757
|
-
"data-refraction":
|
|
758
|
-
style:
|
|
759
|
-
onPointerMove:
|
|
1056
|
+
"data-refraction": y ? h ? "source" : "on" : "off",
|
|
1057
|
+
style: y && !h ? { backdropFilter: `url(#${u})` } : void 0,
|
|
1058
|
+
onPointerMove: v
|
|
760
1059
|
}
|
|
761
1060
|
};
|
|
762
1061
|
}
|
|
763
|
-
var
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
1062
|
+
var wt = (e) => {
|
|
1063
|
+
if (!e) return {};
|
|
1064
|
+
let t = {};
|
|
1065
|
+
return e.refraction !== void 0 && (t["--liquid-refraction"] = e.refraction), e.depth !== void 0 && (t["--liquid-depth"] = e.depth), e.dispersion !== void 0 && (t["--liquid-dispersion"] = e.dispersion), e.frost !== void 0 && (t["--liquid-frost"] = e.frost), e.lightIntensity !== void 0 && (t["--liquid-light-intensity"] = e.lightIntensity), e.lightAngle !== void 0 && (t["--liquid-light-angle"] = e.lightAngle), t;
|
|
1066
|
+
}, Tt = e.forwardRef(({ variant: t = "regular", tint: n = "auto", radius: r = 20, refraction: i = "auto", effect: o, source: s = !0, bake: c = "auto", interactive: l, className: u, style: d, children: f, onPointerMove: p, ...m }, h) => {
|
|
1067
|
+
let g = e.useRef(null), _ = (e) => {
|
|
1068
|
+
g.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
|
|
1069
|
+
}, v = Ct(g, {
|
|
1070
|
+
refraction: i,
|
|
1071
|
+
source: s,
|
|
1072
|
+
bake: c,
|
|
1073
|
+
watch: o ? JSON.stringify(o) : ""
|
|
1074
|
+
});
|
|
767
1075
|
return /* @__PURE__ */ a("div", {
|
|
768
|
-
ref:
|
|
769
|
-
...
|
|
770
|
-
...
|
|
1076
|
+
ref: _,
|
|
1077
|
+
...m,
|
|
1078
|
+
...v.props,
|
|
771
1079
|
className: [
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
1080
|
+
L.liquid,
|
|
1081
|
+
L[t],
|
|
1082
|
+
n === "auto" ? "" : L[`tint-${n}`],
|
|
1083
|
+
l ? L.interactive : "",
|
|
1084
|
+
u ?? ""
|
|
776
1085
|
].filter(Boolean).join(" "),
|
|
777
1086
|
style: {
|
|
778
|
-
borderRadius:
|
|
779
|
-
...
|
|
780
|
-
...
|
|
1087
|
+
borderRadius: r,
|
|
1088
|
+
...wt(o),
|
|
1089
|
+
...v.props.style,
|
|
1090
|
+
...d
|
|
781
1091
|
},
|
|
782
1092
|
onPointerMove: (e) => {
|
|
783
|
-
|
|
1093
|
+
v.props.onPointerMove(e), p?.(e);
|
|
784
1094
|
},
|
|
785
|
-
children: [
|
|
1095
|
+
children: [v.filter, f]
|
|
786
1096
|
});
|
|
787
1097
|
});
|
|
788
|
-
|
|
789
|
-
var
|
|
1098
|
+
Tt.displayName = "LiquidGlass";
|
|
1099
|
+
var Et = (e = "regular", t = "auto") => [
|
|
1100
|
+
L.liquid,
|
|
1101
|
+
L[e],
|
|
1102
|
+
t === "auto" ? "" : L[`tint-${t}`]
|
|
1103
|
+
].filter(Boolean).join(" "), Dt = {
|
|
790
1104
|
"divider--horizontal": "_divider--horizontal_nem37_4",
|
|
791
1105
|
"divider--labeled": "_divider--labeled_nem37_13",
|
|
792
1106
|
"divider--vertical": "_divider--vertical_nem37_27",
|
|
793
1107
|
divider__label: "_divider__label_nem37_38"
|
|
794
|
-
},
|
|
1108
|
+
}, Ot = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
|
|
795
1109
|
role: "separator",
|
|
796
1110
|
"aria-orientation": e,
|
|
797
1111
|
className: [
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
t ?
|
|
1112
|
+
Dt.divider,
|
|
1113
|
+
Dt[`divider--${e}`],
|
|
1114
|
+
t ? Dt["divider--labeled"] : "",
|
|
801
1115
|
n ?? ""
|
|
802
1116
|
].filter(Boolean).join(" "),
|
|
803
1117
|
children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
|
|
804
|
-
className:
|
|
1118
|
+
className: Dt.divider__label,
|
|
805
1119
|
children: t
|
|
806
1120
|
})
|
|
807
|
-
}),
|
|
1121
|
+
}), R = {
|
|
808
1122
|
backdrop: "_backdrop_13dud_1",
|
|
809
1123
|
card: "_card_13dud_12",
|
|
810
1124
|
header: "_header_13dud_34",
|
|
@@ -823,8 +1137,11 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
823
1137
|
"sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
|
|
824
1138
|
"card--exiting": "_card--exiting_13dud_115",
|
|
825
1139
|
"sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
|
|
826
|
-
},
|
|
827
|
-
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = rt(T, t), D = it(T, t), O = D === "liquid", k =
|
|
1140
|
+
}, kt = ({ open: t, onClose: n, title: o, description: s, variant: c = "default", icon: l, cancelLabel: u = "Cancel", confirmLabel: d, onCancel: f, onConfirm: p, confirmLoading: m, closeOnEscape: h = !0, closeOnBackdropClick: g = !0, children: _, hideHeader: v = !1, hideFooterDivider: y = !1, footerJustify: b = "end", className: x }) => {
|
|
1141
|
+
let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = rt(T, t), D = it(T, t), O = D === "liquid", k = Ct(C, {
|
|
1142
|
+
enabled: O,
|
|
1143
|
+
source: !1
|
|
1144
|
+
}), [A, j] = e.useState(!1);
|
|
828
1145
|
e.useEffect(() => {
|
|
829
1146
|
t && j(!0);
|
|
830
1147
|
}, [t]), e.useEffect(() => {
|
|
@@ -864,9 +1181,9 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
864
1181
|
"aria-hidden": "true"
|
|
865
1182
|
}), A && Ee(/* @__PURE__ */ i("div", {
|
|
866
1183
|
className: [
|
|
867
|
-
|
|
1184
|
+
R.backdrop,
|
|
868
1185
|
E,
|
|
869
|
-
t ?
|
|
1186
|
+
t ? R["backdrop--entering"] : R["backdrop--exiting"]
|
|
870
1187
|
].filter(Boolean).join(" "),
|
|
871
1188
|
"data-surface": D,
|
|
872
1189
|
onMouseDown: (e) => {
|
|
@@ -880,9 +1197,9 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
880
1197
|
"aria-label": v ? o : void 0,
|
|
881
1198
|
tabIndex: -1,
|
|
882
1199
|
className: [
|
|
883
|
-
|
|
884
|
-
O ?
|
|
885
|
-
t ?
|
|
1200
|
+
R.card,
|
|
1201
|
+
O ? Et("regular") : "",
|
|
1202
|
+
t ? R["card--entering"] : R["card--exiting"],
|
|
886
1203
|
x ?? ""
|
|
887
1204
|
].filter(Boolean).join(" "),
|
|
888
1205
|
...O ? k.props : {},
|
|
@@ -892,20 +1209,20 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
892
1209
|
children: [
|
|
893
1210
|
O && k.filter,
|
|
894
1211
|
!v && /* @__PURE__ */ a("div", {
|
|
895
|
-
className:
|
|
1212
|
+
className: R.header,
|
|
896
1213
|
children: [/* @__PURE__ */ a("div", {
|
|
897
|
-
className:
|
|
1214
|
+
className: R.titleGroup,
|
|
898
1215
|
children: [S && /* @__PURE__ */ i("span", {
|
|
899
|
-
className:
|
|
1216
|
+
className: R.iconWrap,
|
|
900
1217
|
"aria-hidden": "true",
|
|
901
1218
|
children: l ?? /* @__PURE__ */ i(oe, {
|
|
902
1219
|
size: 24,
|
|
903
1220
|
strokeWidth: M(24),
|
|
904
|
-
className:
|
|
1221
|
+
className: R.icon
|
|
905
1222
|
})
|
|
906
1223
|
}), /* @__PURE__ */ i("p", {
|
|
907
1224
|
id: "modal-title",
|
|
908
|
-
className:
|
|
1225
|
+
className: R.title,
|
|
909
1226
|
children: o
|
|
910
1227
|
})]
|
|
911
1228
|
}), /* @__PURE__ */ i(He, {
|
|
@@ -917,13 +1234,13 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
917
1234
|
})]
|
|
918
1235
|
}),
|
|
919
1236
|
s && /* @__PURE__ */ i("p", {
|
|
920
|
-
className:
|
|
1237
|
+
className: R.description,
|
|
921
1238
|
children: s
|
|
922
1239
|
}),
|
|
923
1240
|
_,
|
|
924
|
-
!y && /* @__PURE__ */ i(
|
|
1241
|
+
!y && /* @__PURE__ */ i(Ot, {}),
|
|
925
1242
|
/* @__PURE__ */ a("div", {
|
|
926
|
-
className: [
|
|
1243
|
+
className: [R.footer, b === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
|
|
927
1244
|
children: [/* @__PURE__ */ i(P, {
|
|
928
1245
|
variant: "secondary",
|
|
929
1246
|
onClick: ee,
|
|
@@ -939,7 +1256,7 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
939
1256
|
]
|
|
940
1257
|
})
|
|
941
1258
|
}), document.body)] });
|
|
942
|
-
},
|
|
1259
|
+
}, z = {
|
|
943
1260
|
row: "_row_88l3n_2",
|
|
944
1261
|
"row--unread": "_row--unread_88l3n_12",
|
|
945
1262
|
iconWrapSurface: "_iconWrapSurface_88l3n_17",
|
|
@@ -953,28 +1270,28 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
953
1270
|
cardTop: "_cardTop_88l3n_87",
|
|
954
1271
|
description: "_description_88l3n_94",
|
|
955
1272
|
actions: "_actions_88l3n_102"
|
|
956
|
-
},
|
|
1273
|
+
}, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
|
|
957
1274
|
let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
|
|
958
1275
|
size: 24,
|
|
959
1276
|
strokeWidth: M(24)
|
|
960
1277
|
});
|
|
961
1278
|
return p ? /* @__PURE__ */ a("div", {
|
|
962
|
-
className: [
|
|
1279
|
+
className: [z.card, f ?? ""].filter(Boolean).join(" "),
|
|
963
1280
|
children: [/* @__PURE__ */ a("div", {
|
|
964
|
-
className:
|
|
1281
|
+
className: z.cardTop,
|
|
965
1282
|
children: [
|
|
966
1283
|
/* @__PURE__ */ i("span", {
|
|
967
|
-
className:
|
|
1284
|
+
className: z.iconWrapCanvas,
|
|
968
1285
|
"aria-hidden": "true",
|
|
969
1286
|
children: h
|
|
970
1287
|
}),
|
|
971
1288
|
/* @__PURE__ */ a("div", {
|
|
972
|
-
className:
|
|
1289
|
+
className: z.content,
|
|
973
1290
|
children: [/* @__PURE__ */ i("p", {
|
|
974
|
-
className:
|
|
1291
|
+
className: z.titleBold,
|
|
975
1292
|
children: t
|
|
976
1293
|
}), /* @__PURE__ */ i("p", {
|
|
977
|
-
className:
|
|
1294
|
+
className: z.description,
|
|
978
1295
|
children: s
|
|
979
1296
|
})]
|
|
980
1297
|
}),
|
|
@@ -987,7 +1304,7 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
987
1304
|
})
|
|
988
1305
|
]
|
|
989
1306
|
}), /* @__PURE__ */ a("div", {
|
|
990
|
-
className:
|
|
1307
|
+
className: z.actions,
|
|
991
1308
|
children: [c && /* @__PURE__ */ i(P, {
|
|
992
1309
|
variant: "ghost",
|
|
993
1310
|
size: "sm",
|
|
@@ -1002,43 +1319,43 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
1002
1319
|
})]
|
|
1003
1320
|
})]
|
|
1004
1321
|
}) : /* @__PURE__ */ a("div", {
|
|
1005
|
-
className: [
|
|
1322
|
+
className: [z.row, m ? z["row--unread"] : ""].filter(Boolean).join(" "),
|
|
1006
1323
|
children: [
|
|
1007
1324
|
/* @__PURE__ */ i("span", {
|
|
1008
|
-
className:
|
|
1325
|
+
className: z.iconWrapSurface,
|
|
1009
1326
|
"aria-hidden": "true",
|
|
1010
1327
|
children: h
|
|
1011
1328
|
}),
|
|
1012
1329
|
/* @__PURE__ */ a("div", {
|
|
1013
|
-
className:
|
|
1330
|
+
className: z.content,
|
|
1014
1331
|
children: [/* @__PURE__ */ i("p", {
|
|
1015
|
-
className: m ?
|
|
1332
|
+
className: m ? z.titleBold : z.titleMuted,
|
|
1016
1333
|
children: t
|
|
1017
1334
|
}), n && /* @__PURE__ */ i("p", {
|
|
1018
|
-
className:
|
|
1335
|
+
className: z.timestamp,
|
|
1019
1336
|
children: n
|
|
1020
1337
|
})]
|
|
1021
1338
|
}),
|
|
1022
1339
|
m && /* @__PURE__ */ i("span", {
|
|
1023
|
-
className:
|
|
1340
|
+
className: z.dot,
|
|
1024
1341
|
"aria-hidden": "true"
|
|
1025
1342
|
})
|
|
1026
1343
|
]
|
|
1027
1344
|
});
|
|
1028
|
-
},
|
|
1345
|
+
}, jt = {
|
|
1029
1346
|
stat: "_stat_krs8c_1",
|
|
1030
1347
|
labelRow: "_labelRow_krs8c_10",
|
|
1031
1348
|
label: "_label_krs8c_10",
|
|
1032
1349
|
value: "_value_krs8c_27"
|
|
1033
|
-
},
|
|
1034
|
-
className: [
|
|
1350
|
+
}, Mt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
|
|
1351
|
+
className: [jt.stat, r ?? ""].filter(Boolean).join(" "),
|
|
1035
1352
|
children: [/* @__PURE__ */ a("div", {
|
|
1036
|
-
className:
|
|
1353
|
+
className: jt.labelRow,
|
|
1037
1354
|
children: [/* @__PURE__ */ i("p", {
|
|
1038
|
-
className:
|
|
1355
|
+
className: jt.label,
|
|
1039
1356
|
children: e
|
|
1040
1357
|
}), /* @__PURE__ */ i("p", {
|
|
1041
|
-
className:
|
|
1358
|
+
className: jt.value,
|
|
1042
1359
|
children: t
|
|
1043
1360
|
})]
|
|
1044
1361
|
}), /* @__PURE__ */ i(tt, {
|
|
@@ -1046,7 +1363,7 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
1046
1363
|
size: "lg",
|
|
1047
1364
|
label: e
|
|
1048
1365
|
})]
|
|
1049
|
-
}),
|
|
1366
|
+
}), Nt = {
|
|
1050
1367
|
balance: "_balance_5gcu5_1",
|
|
1051
1368
|
label: "_label_5gcu5_10",
|
|
1052
1369
|
amountRow: "_amountRow_5gcu5_19",
|
|
@@ -1056,25 +1373,25 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
1056
1373
|
fill: "_fill_5gcu5_50",
|
|
1057
1374
|
"fill--over": "_fill--over_5gcu5_57",
|
|
1058
1375
|
footer: "_footer_5gcu5_61"
|
|
1059
|
-
},
|
|
1376
|
+
}, Pt = (e) => e.toLocaleString("en-US", {
|
|
1060
1377
|
style: "currency",
|
|
1061
1378
|
currency: "USD"
|
|
1062
|
-
}),
|
|
1379
|
+
}), Ft = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Pt, className: o }) => {
|
|
1063
1380
|
let s = t > n, c = s ? 100 : n > 0 ? t / n * 100 : 0, l = s ? `${r(t - n)} over your limit` : `${r(n - t)} remaining`;
|
|
1064
1381
|
return /* @__PURE__ */ a("div", {
|
|
1065
|
-
className: [
|
|
1382
|
+
className: [Nt.balance, o ?? ""].filter(Boolean).join(" "),
|
|
1066
1383
|
children: [
|
|
1067
1384
|
/* @__PURE__ */ i("p", {
|
|
1068
|
-
className:
|
|
1385
|
+
className: Nt.label,
|
|
1069
1386
|
children: e
|
|
1070
1387
|
}),
|
|
1071
1388
|
/* @__PURE__ */ a("div", {
|
|
1072
|
-
className:
|
|
1389
|
+
className: Nt.amountRow,
|
|
1073
1390
|
children: [/* @__PURE__ */ i("p", {
|
|
1074
|
-
className:
|
|
1391
|
+
className: Nt.amount,
|
|
1075
1392
|
children: r(t)
|
|
1076
1393
|
}), /* @__PURE__ */ a("p", {
|
|
1077
|
-
className:
|
|
1394
|
+
className: Nt.limit,
|
|
1078
1395
|
children: [
|
|
1079
1396
|
"of ",
|
|
1080
1397
|
r(n),
|
|
@@ -1083,19 +1400,19 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
1083
1400
|
})]
|
|
1084
1401
|
}),
|
|
1085
1402
|
/* @__PURE__ */ i("div", {
|
|
1086
|
-
className:
|
|
1403
|
+
className: Nt.track,
|
|
1087
1404
|
role: "progressbar",
|
|
1088
1405
|
"aria-label": e,
|
|
1089
1406
|
"aria-valuenow": Math.round(c),
|
|
1090
1407
|
"aria-valuemin": 0,
|
|
1091
1408
|
"aria-valuemax": 100,
|
|
1092
1409
|
children: /* @__PURE__ */ i("div", {
|
|
1093
|
-
className: [
|
|
1410
|
+
className: [Nt.fill, s ? Nt["fill--over"] : ""].filter(Boolean).join(" "),
|
|
1094
1411
|
style: { width: `${c}%` }
|
|
1095
1412
|
})
|
|
1096
1413
|
}),
|
|
1097
1414
|
/* @__PURE__ */ i("p", {
|
|
1098
|
-
className:
|
|
1415
|
+
className: Nt.footer,
|
|
1099
1416
|
children: l
|
|
1100
1417
|
})
|
|
1101
1418
|
]
|
|
@@ -1103,7 +1420,7 @@ var ft = (e = "regular") => [at.liquid, at[e]].join(" "), pt = {
|
|
|
1103
1420
|
};
|
|
1104
1421
|
//#endregion
|
|
1105
1422
|
//#region src/lib/useChartTokens.ts
|
|
1106
|
-
function
|
|
1423
|
+
function It(e) {
|
|
1107
1424
|
let [, r] = n(0);
|
|
1108
1425
|
return t(() => {
|
|
1109
1426
|
if (typeof document > "u") return;
|
|
@@ -1122,65 +1439,65 @@ function St(e) {
|
|
|
1122
1439
|
}
|
|
1123
1440
|
//#endregion
|
|
1124
1441
|
//#region src/lib/chartPalette.ts
|
|
1125
|
-
var
|
|
1442
|
+
var Lt = [
|
|
1126
1443
|
"#ff4700",
|
|
1127
1444
|
"#5b92dd",
|
|
1128
1445
|
"#47a8a2",
|
|
1129
1446
|
"#9179d6",
|
|
1130
1447
|
"#dca84f",
|
|
1131
1448
|
"#12b76a"
|
|
1132
|
-
],
|
|
1449
|
+
], Rt = {
|
|
1133
1450
|
tooltip: "_tooltip_ic16u_3",
|
|
1134
1451
|
title: "_title_ic16u_23",
|
|
1135
1452
|
row: "_row_ic16u_27",
|
|
1136
1453
|
dot: "_dot_ic16u_34",
|
|
1137
1454
|
label: "_label_ic16u_41",
|
|
1138
1455
|
value: "_value_ic16u_42"
|
|
1139
|
-
},
|
|
1140
|
-
className:
|
|
1456
|
+
}, zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
|
|
1457
|
+
className: Rt.tooltip,
|
|
1141
1458
|
children: [n !== void 0 && n !== "" && /* @__PURE__ */ i("span", {
|
|
1142
|
-
className:
|
|
1459
|
+
className: Rt.title,
|
|
1143
1460
|
children: n
|
|
1144
1461
|
}), t.map((e, t) => /* @__PURE__ */ a("div", {
|
|
1145
|
-
className:
|
|
1462
|
+
className: Rt.row,
|
|
1146
1463
|
children: [
|
|
1147
1464
|
/* @__PURE__ */ i("span", {
|
|
1148
|
-
className:
|
|
1465
|
+
className: Rt.dot,
|
|
1149
1466
|
style: { background: e.color ?? e.payload?.fill ?? e.fill }
|
|
1150
1467
|
}),
|
|
1151
1468
|
/* @__PURE__ */ i("span", {
|
|
1152
|
-
className:
|
|
1469
|
+
className: Rt.label,
|
|
1153
1470
|
children: e.name
|
|
1154
1471
|
}),
|
|
1155
1472
|
/* @__PURE__ */ i("span", {
|
|
1156
|
-
className:
|
|
1473
|
+
className: Rt.value,
|
|
1157
1474
|
children: r ? r(e.value, e.name) : e.value
|
|
1158
1475
|
})
|
|
1159
1476
|
]
|
|
1160
1477
|
}, t))]
|
|
1161
|
-
}),
|
|
1478
|
+
}), Bt = {
|
|
1162
1479
|
chart: "_chart_1s6lv_2",
|
|
1163
1480
|
legend: "_legend_1s6lv_31",
|
|
1164
1481
|
legendItem: "_legendItem_1s6lv_41",
|
|
1165
1482
|
legendSwatch: "_legendSwatch_1s6lv_46"
|
|
1166
|
-
},
|
|
1483
|
+
}, Vt = {
|
|
1167
1484
|
sm: 180,
|
|
1168
1485
|
md: 240,
|
|
1169
1486
|
lg: 320,
|
|
1170
1487
|
xl: 420
|
|
1171
|
-
},
|
|
1488
|
+
}, B = 6, Ht = (e) => {
|
|
1172
1489
|
if (e <= 0) return 1;
|
|
1173
1490
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
1174
1491
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
1175
|
-
},
|
|
1176
|
-
let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m =
|
|
1492
|
+
}, Ut = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
|
|
1493
|
+
let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m = It(p), h = m("--color-chart-2") ?? "#5b92dd", g = m("--color-chart-5") ?? "#dca84f", _ = m("--color-chart-1") ?? "#ff4700", v = [
|
|
1177
1494
|
1,
|
|
1178
1495
|
2,
|
|
1179
1496
|
3,
|
|
1180
1497
|
4,
|
|
1181
1498
|
5,
|
|
1182
1499
|
6
|
|
1183
|
-
].map((e) => m(`--color-chart-${e}`) ??
|
|
1500
|
+
].map((e) => m(`--color-chart-${e}`) ?? Lt[e - 1]), y = m("--color-border-subtle") ?? "#e7e5e1", b = m("--color-fg-muted") ?? "#78716a", x = n === "multiple" || n === "stacked", S = x && t.some((e) => e.value2 !== void 0), C = m("--color-bg-canvas") ?? "#fafaf9", w = Ht(Math.max(1, ...t.map((e) => Math.abs(e.value)))), T = [
|
|
1184
1501
|
-w,
|
|
1185
1502
|
-w / 2,
|
|
1186
1503
|
0,
|
|
@@ -1188,7 +1505,7 @@ var Ct = [
|
|
|
1188
1505
|
w
|
|
1189
1506
|
], E = /* @__PURE__ */ i(Se, {
|
|
1190
1507
|
cursor: !1,
|
|
1191
|
-
content: /* @__PURE__ */ i(
|
|
1508
|
+
content: /* @__PURE__ */ i(zt, {}),
|
|
1192
1509
|
wrapperStyle: { zIndex: 50 },
|
|
1193
1510
|
position: d ? { y: d.y } : void 0
|
|
1194
1511
|
}), D = (e) => n === "active" ? v[e % v.length] : n === "negative" && t[e].value < 0 ? _ : h, O = (e) => l !== null && e !== l ? .45 : 1, k = (e, t, n, r, i, a) => ({
|
|
@@ -1238,10 +1555,10 @@ var Ct = [
|
|
|
1238
1555
|
};
|
|
1239
1556
|
return /* @__PURE__ */ i("div", {
|
|
1240
1557
|
ref: p,
|
|
1241
|
-
className: [
|
|
1558
|
+
className: [Bt.chart, c ?? ""].filter(Boolean).join(" "),
|
|
1242
1559
|
children: /* @__PURE__ */ i(xe, {
|
|
1243
1560
|
width: "100%",
|
|
1244
|
-
height:
|
|
1561
|
+
height: Vt[o],
|
|
1245
1562
|
children: /* @__PURE__ */ a(le, {
|
|
1246
1563
|
data: t,
|
|
1247
1564
|
layout: n === "horizontal" ? "vertical" : "horizontal",
|
|
@@ -1287,11 +1604,11 @@ var Ct = [
|
|
|
1287
1604
|
}),
|
|
1288
1605
|
E,
|
|
1289
1606
|
x && /* @__PURE__ */ i(fe, { content: (e) => /* @__PURE__ */ i("ul", {
|
|
1290
|
-
className:
|
|
1607
|
+
className: Bt.legend,
|
|
1291
1608
|
children: e.payload?.map((e) => /* @__PURE__ */ a("li", {
|
|
1292
|
-
className:
|
|
1609
|
+
className: Bt.legendItem,
|
|
1293
1610
|
children: [/* @__PURE__ */ i("span", {
|
|
1294
|
-
className:
|
|
1611
|
+
className: Bt.legendSwatch,
|
|
1295
1612
|
style: { background: e.color }
|
|
1296
1613
|
}), /* @__PURE__ */ i("span", {
|
|
1297
1614
|
style: { color: e.color },
|
|
@@ -1307,13 +1624,13 @@ var Ct = [
|
|
|
1307
1624
|
radius: n === "stacked" ? [
|
|
1308
1625
|
0,
|
|
1309
1626
|
0,
|
|
1310
|
-
|
|
1311
|
-
|
|
1627
|
+
B,
|
|
1628
|
+
B
|
|
1312
1629
|
] : [
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1630
|
+
B,
|
|
1631
|
+
B,
|
|
1632
|
+
B,
|
|
1633
|
+
B
|
|
1317
1634
|
],
|
|
1318
1635
|
isAnimationActive: !1,
|
|
1319
1636
|
activeBar: A("value"),
|
|
@@ -1329,15 +1646,15 @@ var Ct = [
|
|
|
1329
1646
|
fill: g,
|
|
1330
1647
|
stackId: n === "stacked" ? "stack" : void 0,
|
|
1331
1648
|
radius: n === "stacked" ? [
|
|
1332
|
-
|
|
1333
|
-
|
|
1649
|
+
B,
|
|
1650
|
+
B,
|
|
1334
1651
|
0,
|
|
1335
1652
|
0
|
|
1336
1653
|
] : [
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1654
|
+
B,
|
|
1655
|
+
B,
|
|
1656
|
+
B,
|
|
1657
|
+
B
|
|
1341
1658
|
],
|
|
1342
1659
|
isAnimationActive: !1,
|
|
1343
1660
|
activeBar: A("value2"),
|
|
@@ -1352,10 +1669,10 @@ var Ct = [
|
|
|
1352
1669
|
name: "Value",
|
|
1353
1670
|
fill: l === null ? h : D(l),
|
|
1354
1671
|
radius: [
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1672
|
+
B,
|
|
1673
|
+
B,
|
|
1674
|
+
B,
|
|
1675
|
+
B
|
|
1359
1676
|
],
|
|
1360
1677
|
isAnimationActive: !1,
|
|
1361
1678
|
activeBar: A("value"),
|
|
@@ -1370,7 +1687,7 @@ var Ct = [
|
|
|
1370
1687
|
})
|
|
1371
1688
|
})
|
|
1372
1689
|
});
|
|
1373
|
-
},
|
|
1690
|
+
}, Wt = {
|
|
1374
1691
|
badge: "_badge_a5a38_6",
|
|
1375
1692
|
"badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
|
|
1376
1693
|
"badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
|
|
@@ -1386,29 +1703,29 @@ var Ct = [
|
|
|
1386
1703
|
"badge--info-solid": "_badge--info-solid_a5a38_41",
|
|
1387
1704
|
badge__icon: "_badge__icon_a5a38_44",
|
|
1388
1705
|
badge__label: "_badge__label_a5a38_45"
|
|
1389
|
-
},
|
|
1706
|
+
}, Gt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
|
|
1390
1707
|
className: [
|
|
1391
|
-
|
|
1392
|
-
|
|
1708
|
+
Wt.badge,
|
|
1709
|
+
Wt[`badge--${e}-${t}`],
|
|
1393
1710
|
s ?? ""
|
|
1394
1711
|
].filter(Boolean).join(" "),
|
|
1395
1712
|
children: [
|
|
1396
1713
|
n && /* @__PURE__ */ i("span", {
|
|
1397
|
-
className:
|
|
1714
|
+
className: Wt.badge__icon,
|
|
1398
1715
|
"aria-hidden": "true",
|
|
1399
1716
|
children: n
|
|
1400
1717
|
}),
|
|
1401
1718
|
/* @__PURE__ */ i("span", {
|
|
1402
|
-
className:
|
|
1719
|
+
className: Wt.badge__label,
|
|
1403
1720
|
children: o
|
|
1404
1721
|
}),
|
|
1405
1722
|
r && /* @__PURE__ */ i("span", {
|
|
1406
|
-
className:
|
|
1723
|
+
className: Wt.badge__icon,
|
|
1407
1724
|
"aria-hidden": "true",
|
|
1408
1725
|
children: r
|
|
1409
1726
|
})
|
|
1410
1727
|
]
|
|
1411
|
-
}),
|
|
1728
|
+
}), V = {
|
|
1412
1729
|
stepper: "_stepper_1w3rz_1",
|
|
1413
1730
|
stepBtn: "_stepBtn_1w3rz_10",
|
|
1414
1731
|
stepDivider: "_stepDivider_1w3rz_27",
|
|
@@ -1427,7 +1744,7 @@ var Ct = [
|
|
|
1427
1744
|
"roll-out-down": "_roll-out-down_1w3rz_1",
|
|
1428
1745
|
rollInDown: "_rollInDown_1w3rz_133",
|
|
1429
1746
|
"roll-in-down": "_roll-in-down_1w3rz_1"
|
|
1430
|
-
},
|
|
1747
|
+
}, Kt = ({ value: t }) => {
|
|
1431
1748
|
let n = e.useRef(t), [r, o] = e.useState(null);
|
|
1432
1749
|
return t !== n.current && (o({
|
|
1433
1750
|
value: n.current,
|
|
@@ -1437,30 +1754,30 @@ var Ct = [
|
|
|
1437
1754
|
let e = setTimeout(() => o(null), 260);
|
|
1438
1755
|
return () => clearTimeout(e);
|
|
1439
1756
|
}, [r]), /* @__PURE__ */ a("span", {
|
|
1440
|
-
className:
|
|
1757
|
+
className: V.roll,
|
|
1441
1758
|
children: [r && /* @__PURE__ */ i("span", {
|
|
1442
|
-
className: [
|
|
1759
|
+
className: [V.rollNum, r.direction === "up" ? V.rollOutUp : V.rollOutDown].join(" "),
|
|
1443
1760
|
"aria-hidden": "true",
|
|
1444
1761
|
children: r.value
|
|
1445
1762
|
}, `out-${r.value}`), /* @__PURE__ */ i("span", {
|
|
1446
|
-
className: [
|
|
1763
|
+
className: [V.rollNum, r ? r.direction === "up" ? V.rollInUp : V.rollInDown : ""].filter(Boolean).join(" "),
|
|
1447
1764
|
onAnimationEnd: () => o(null),
|
|
1448
1765
|
children: t
|
|
1449
1766
|
}, `in-${t}`)]
|
|
1450
1767
|
});
|
|
1451
|
-
},
|
|
1768
|
+
}, qt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
|
|
1452
1769
|
let l = t > r, u = o === void 0 || t < o, d = e.useRef(null), [f, p] = e.useState(!1), [m, h] = e.useState(String(t)), g = (e) => {
|
|
1453
1770
|
let t = e;
|
|
1454
1771
|
return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
|
|
1455
1772
|
};
|
|
1456
1773
|
return /* @__PURE__ */ a("div", {
|
|
1457
|
-
className: [
|
|
1774
|
+
className: [V.stepper, c ?? ""].filter(Boolean).join(" "),
|
|
1458
1775
|
role: "group",
|
|
1459
1776
|
"aria-label": s,
|
|
1460
1777
|
children: [
|
|
1461
1778
|
/* @__PURE__ */ i("button", {
|
|
1462
1779
|
type: "button",
|
|
1463
|
-
className:
|
|
1780
|
+
className: V.stepBtn,
|
|
1464
1781
|
disabled: !l,
|
|
1465
1782
|
onClick: () => n?.(Math.max(r, t - 1)),
|
|
1466
1783
|
"aria-label": "Decrease quantity",
|
|
@@ -1470,17 +1787,17 @@ var Ct = [
|
|
|
1470
1787
|
})
|
|
1471
1788
|
}),
|
|
1472
1789
|
/* @__PURE__ */ i("span", {
|
|
1473
|
-
className:
|
|
1790
|
+
className: V.stepDivider,
|
|
1474
1791
|
"aria-hidden": "true"
|
|
1475
1792
|
}),
|
|
1476
1793
|
/* @__PURE__ */ a("span", {
|
|
1477
|
-
className:
|
|
1794
|
+
className: V.stepValue,
|
|
1478
1795
|
children: [/* @__PURE__ */ i("input", {
|
|
1479
1796
|
ref: d,
|
|
1480
1797
|
type: "text",
|
|
1481
1798
|
inputMode: "numeric",
|
|
1482
1799
|
size: Math.max((f ? m : String(t)).length, 1),
|
|
1483
|
-
className: [
|
|
1800
|
+
className: [V.stepInput, f ? "" : V.stepInputResting].filter(Boolean).join(" "),
|
|
1484
1801
|
value: f ? m : String(t),
|
|
1485
1802
|
"aria-label": s,
|
|
1486
1803
|
onFocus: (e) => {
|
|
@@ -1499,18 +1816,18 @@ var Ct = [
|
|
|
1499
1816
|
e.key === "Enter" && (e.preventDefault(), d.current?.blur()), e.key === "Escape" && (h(String(t)), d.current?.blur());
|
|
1500
1817
|
}
|
|
1501
1818
|
}), /* @__PURE__ */ i("span", {
|
|
1502
|
-
className: [
|
|
1819
|
+
className: [V.rollOverlay, f ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
|
|
1503
1820
|
"aria-hidden": "true",
|
|
1504
|
-
children: /* @__PURE__ */ i(
|
|
1821
|
+
children: /* @__PURE__ */ i(Kt, { value: t })
|
|
1505
1822
|
})]
|
|
1506
1823
|
}),
|
|
1507
1824
|
/* @__PURE__ */ i("span", {
|
|
1508
|
-
className:
|
|
1825
|
+
className: V.stepDivider,
|
|
1509
1826
|
"aria-hidden": "true"
|
|
1510
1827
|
}),
|
|
1511
1828
|
/* @__PURE__ */ i("button", {
|
|
1512
1829
|
type: "button",
|
|
1513
|
-
className:
|
|
1830
|
+
className: V.stepBtn,
|
|
1514
1831
|
disabled: !u,
|
|
1515
1832
|
onClick: () => n?.(o === void 0 ? t + 1 : Math.min(o, t + 1)),
|
|
1516
1833
|
"aria-label": "Increase quantity",
|
|
@@ -1521,7 +1838,7 @@ var Ct = [
|
|
|
1521
1838
|
})
|
|
1522
1839
|
]
|
|
1523
1840
|
});
|
|
1524
|
-
},
|
|
1841
|
+
}, Jt = {
|
|
1525
1842
|
item: "_item_15jww_1",
|
|
1526
1843
|
thumb: "_thumb_15jww_11",
|
|
1527
1844
|
info: "_info_15jww_19",
|
|
@@ -1532,31 +1849,31 @@ var Ct = [
|
|
|
1532
1849
|
priceRow: "_priceRow_15jww_67",
|
|
1533
1850
|
priceOriginal: "_priceOriginal_15jww_75",
|
|
1534
1851
|
priceSale: "_priceSale_15jww_80"
|
|
1535
|
-
},
|
|
1852
|
+
}, Yt = (e) => e.toLocaleString("en-US", {
|
|
1536
1853
|
style: "currency",
|
|
1537
1854
|
currency: "USD"
|
|
1538
|
-
}),
|
|
1855
|
+
}), Xt = ({ image: e, imageAlt: t, name: n, variant: r, price: o, compareAtPrice: s, quantity: c, onQuantityChange: l, minQuantity: u = 1, maxQuantity: d, onRemove: f, removeLabel: p = "Remove item", formatPrice: m = Yt, className: h }) => {
|
|
1539
1856
|
let g = s !== void 0;
|
|
1540
1857
|
return /* @__PURE__ */ a("div", {
|
|
1541
|
-
className: [
|
|
1858
|
+
className: [Jt.item, h ?? ""].filter(Boolean).join(" "),
|
|
1542
1859
|
children: [
|
|
1543
1860
|
/* @__PURE__ */ i("img", {
|
|
1544
1861
|
src: e,
|
|
1545
1862
|
alt: t ?? n,
|
|
1546
|
-
className:
|
|
1863
|
+
className: Jt.thumb
|
|
1547
1864
|
}),
|
|
1548
1865
|
/* @__PURE__ */ a("div", {
|
|
1549
|
-
className:
|
|
1866
|
+
className: Jt.info,
|
|
1550
1867
|
children: [
|
|
1551
1868
|
/* @__PURE__ */ i("p", {
|
|
1552
|
-
className:
|
|
1869
|
+
className: Jt.name,
|
|
1553
1870
|
children: n
|
|
1554
1871
|
}),
|
|
1555
1872
|
r && /* @__PURE__ */ i("p", {
|
|
1556
|
-
className:
|
|
1873
|
+
className: Jt.variant,
|
|
1557
1874
|
children: r
|
|
1558
1875
|
}),
|
|
1559
|
-
/* @__PURE__ */ i(
|
|
1876
|
+
/* @__PURE__ */ i(qt, {
|
|
1560
1877
|
quantity: c,
|
|
1561
1878
|
onQuantityChange: l,
|
|
1562
1879
|
min: u,
|
|
@@ -1566,18 +1883,18 @@ var Ct = [
|
|
|
1566
1883
|
]
|
|
1567
1884
|
}),
|
|
1568
1885
|
/* @__PURE__ */ a("div", {
|
|
1569
|
-
className:
|
|
1886
|
+
className: Jt.right,
|
|
1570
1887
|
children: [g ? /* @__PURE__ */ a("div", {
|
|
1571
|
-
className:
|
|
1888
|
+
className: Jt.priceRow,
|
|
1572
1889
|
children: [/* @__PURE__ */ i("span", {
|
|
1573
|
-
className:
|
|
1890
|
+
className: Jt.priceOriginal,
|
|
1574
1891
|
children: m(s)
|
|
1575
1892
|
}), /* @__PURE__ */ i("span", {
|
|
1576
|
-
className:
|
|
1893
|
+
className: Jt.priceSale,
|
|
1577
1894
|
children: m(o)
|
|
1578
1895
|
})]
|
|
1579
1896
|
}) : /* @__PURE__ */ i("p", {
|
|
1580
|
-
className:
|
|
1897
|
+
className: Jt.price,
|
|
1581
1898
|
children: m(o)
|
|
1582
1899
|
}), /* @__PURE__ */ i(He, {
|
|
1583
1900
|
icon: w,
|
|
@@ -1589,7 +1906,7 @@ var Ct = [
|
|
|
1589
1906
|
})
|
|
1590
1907
|
]
|
|
1591
1908
|
});
|
|
1592
|
-
},
|
|
1909
|
+
}, Zt = {
|
|
1593
1910
|
steps: "_steps_t53um_1",
|
|
1594
1911
|
step: "_step_t53um_1",
|
|
1595
1912
|
connector: "_connector_t53um_16",
|
|
@@ -1600,26 +1917,26 @@ var Ct = [
|
|
|
1600
1917
|
label: "_label_t53um_49",
|
|
1601
1918
|
labelActive: "_labelActive_t53um_56",
|
|
1602
1919
|
labelUpcoming: "_labelUpcoming_t53um_59"
|
|
1603
|
-
},
|
|
1920
|
+
}, Qt = [
|
|
1604
1921
|
"Cart",
|
|
1605
1922
|
"Shipping",
|
|
1606
1923
|
"Payment",
|
|
1607
1924
|
"Confirmation"
|
|
1608
|
-
],
|
|
1609
|
-
className: [
|
|
1925
|
+
], $t = ({ steps: t = Qt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
|
|
1926
|
+
className: [Zt.steps, r ?? ""].filter(Boolean).join(" "),
|
|
1610
1927
|
role: "list",
|
|
1611
1928
|
children: t.map((r, o) => {
|
|
1612
1929
|
let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
|
|
1613
1930
|
return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
|
|
1614
|
-
className:
|
|
1931
|
+
className: Zt.step,
|
|
1615
1932
|
role: "listitem",
|
|
1616
1933
|
"aria-current": s === "active" ? "step" : void 0,
|
|
1617
1934
|
children: [/* @__PURE__ */ i("span", {
|
|
1618
1935
|
className: [
|
|
1619
|
-
|
|
1620
|
-
s === "completed" ?
|
|
1621
|
-
s === "active" ?
|
|
1622
|
-
s === "upcoming" ?
|
|
1936
|
+
Zt.circle,
|
|
1937
|
+
s === "completed" ? Zt.circleCompleted : "",
|
|
1938
|
+
s === "active" ? Zt.circleActive : "",
|
|
1939
|
+
s === "upcoming" ? Zt.circleUpcoming : ""
|
|
1623
1940
|
].filter(Boolean).join(" "),
|
|
1624
1941
|
"aria-hidden": "true",
|
|
1625
1942
|
children: /* @__PURE__ */ i(l, {
|
|
@@ -1628,27 +1945,27 @@ var Ct = [
|
|
|
1628
1945
|
})
|
|
1629
1946
|
}), /* @__PURE__ */ i("span", {
|
|
1630
1947
|
className: [
|
|
1631
|
-
|
|
1632
|
-
s === "active" ?
|
|
1633
|
-
s === "upcoming" ?
|
|
1948
|
+
Zt.label,
|
|
1949
|
+
s === "active" ? Zt.labelActive : "",
|
|
1950
|
+
s === "upcoming" ? Zt.labelUpcoming : ""
|
|
1634
1951
|
].filter(Boolean).join(" "),
|
|
1635
1952
|
children: r
|
|
1636
1953
|
})]
|
|
1637
1954
|
}), !c && /* @__PURE__ */ i("span", {
|
|
1638
|
-
className:
|
|
1955
|
+
className: Zt.connector,
|
|
1639
1956
|
"aria-hidden": "true"
|
|
1640
1957
|
})] }, r);
|
|
1641
1958
|
})
|
|
1642
|
-
}),
|
|
1959
|
+
}), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
|
|
1643
1960
|
let r = (e) => {
|
|
1644
1961
|
let t = e / 255;
|
|
1645
1962
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
1646
1963
|
};
|
|
1647
1964
|
return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
|
|
1648
|
-
},
|
|
1965
|
+
}, rn = (e, t) => {
|
|
1649
1966
|
let n = Math.max(e, t), r = Math.min(e, t);
|
|
1650
1967
|
return (n + .05) / (r + .05);
|
|
1651
|
-
},
|
|
1968
|
+
}, an = (e) => {
|
|
1652
1969
|
let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
|
|
1653
1970
|
if (n) {
|
|
1654
1971
|
let e = n[1];
|
|
@@ -1664,31 +1981,31 @@ var Ct = [
|
|
|
1664
1981
|
Number(r[2]),
|
|
1665
1982
|
Number(r[3])
|
|
1666
1983
|
] : null;
|
|
1667
|
-
},
|
|
1668
|
-
let r =
|
|
1669
|
-
return
|
|
1670
|
-
},
|
|
1671
|
-
let t =
|
|
1672
|
-
if (t) return
|
|
1673
|
-
if (typeof document > "u") return
|
|
1674
|
-
|
|
1675
|
-
let n =
|
|
1676
|
-
if (!n) return
|
|
1984
|
+
}, on = (e, t, n) => {
|
|
1985
|
+
let r = nn(e, t, n), i = rn(r, nn(20, 20, 20));
|
|
1986
|
+
return rn(r, nn(250, 250, 249)) >= i ? en : tn;
|
|
1987
|
+
}, sn = null, cn = (e) => {
|
|
1988
|
+
let t = an(e);
|
|
1989
|
+
if (t) return on(...t);
|
|
1990
|
+
if (typeof document > "u") return en;
|
|
1991
|
+
sn ??= document.createElement("canvas"), sn.width = 1, sn.height = 1;
|
|
1992
|
+
let n = sn.getContext("2d", { willReadFrequently: !0 });
|
|
1993
|
+
if (!n) return en;
|
|
1677
1994
|
n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
|
|
1678
1995
|
let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
|
|
1679
|
-
return
|
|
1680
|
-
},
|
|
1996
|
+
return on(r, i, a);
|
|
1997
|
+
}, ln = {
|
|
1681
1998
|
swatch: "_swatch_1i3c3_1",
|
|
1682
1999
|
circle: "_circle_1i3c3_22",
|
|
1683
2000
|
circleUnavailable: "_circleUnavailable_1i3c3_32",
|
|
1684
2001
|
ring: "_ring_1i3c3_39",
|
|
1685
2002
|
check: "_check_1i3c3_55",
|
|
1686
2003
|
strike: "_strike_1i3c3_66"
|
|
1687
|
-
},
|
|
1688
|
-
let u = e.useMemo(() =>
|
|
2004
|
+
}, un = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
|
|
2005
|
+
let u = e.useMemo(() => cn(t), [t]);
|
|
1689
2006
|
return /* @__PURE__ */ a("button", {
|
|
1690
2007
|
type: "button",
|
|
1691
|
-
className: [
|
|
2008
|
+
className: [ln.swatch, c ?? ""].filter(Boolean).join(" "),
|
|
1692
2009
|
style: { "--swatch-color": t },
|
|
1693
2010
|
disabled: !o,
|
|
1694
2011
|
"aria-pressed": o ? r : void 0,
|
|
@@ -1696,49 +2013,49 @@ var Ct = [
|
|
|
1696
2013
|
onClick: s,
|
|
1697
2014
|
children: [
|
|
1698
2015
|
r && o && /* @__PURE__ */ i("span", {
|
|
1699
|
-
className:
|
|
2016
|
+
className: ln.ring,
|
|
1700
2017
|
"aria-hidden": "true"
|
|
1701
2018
|
}),
|
|
1702
2019
|
/* @__PURE__ */ i("span", {
|
|
1703
|
-
className: [
|
|
2020
|
+
className: [ln.circle, o ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
|
|
1704
2021
|
"aria-hidden": "true"
|
|
1705
2022
|
}),
|
|
1706
2023
|
r && o && /* @__PURE__ */ i(l, {
|
|
1707
2024
|
size: 14,
|
|
1708
2025
|
strokeWidth: M(14),
|
|
1709
|
-
className:
|
|
2026
|
+
className: ln.check,
|
|
1710
2027
|
style: { color: u },
|
|
1711
2028
|
"aria-hidden": "true"
|
|
1712
2029
|
}),
|
|
1713
2030
|
!o && /* @__PURE__ */ i("span", {
|
|
1714
|
-
className:
|
|
2031
|
+
className: ln.strike,
|
|
1715
2032
|
style: { background: u },
|
|
1716
2033
|
"aria-hidden": "true"
|
|
1717
2034
|
})
|
|
1718
2035
|
]
|
|
1719
2036
|
});
|
|
1720
|
-
},
|
|
2037
|
+
}, dn = {
|
|
1721
2038
|
row: "_row_1r4ef_1",
|
|
1722
2039
|
original: "_original_1r4ef_8",
|
|
1723
2040
|
price: "_price_1r4ef_17",
|
|
1724
2041
|
priceSale: "_priceSale_1r4ef_24"
|
|
1725
|
-
},
|
|
2042
|
+
}, fn = (e) => e.toLocaleString("en-US", {
|
|
1726
2043
|
style: "currency",
|
|
1727
2044
|
currency: "USD"
|
|
1728
|
-
}),
|
|
2045
|
+
}), pn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = fn, className: o }) => {
|
|
1729
2046
|
let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
|
|
1730
2047
|
return /* @__PURE__ */ a("div", {
|
|
1731
|
-
className: [
|
|
2048
|
+
className: [dn.row, o ?? ""].filter(Boolean).join(" "),
|
|
1732
2049
|
children: [
|
|
1733
2050
|
s && /* @__PURE__ */ i("span", {
|
|
1734
|
-
className:
|
|
2051
|
+
className: dn.original,
|
|
1735
2052
|
children: r(t)
|
|
1736
2053
|
}),
|
|
1737
2054
|
/* @__PURE__ */ i("span", {
|
|
1738
|
-
className: [
|
|
2055
|
+
className: [dn.price, s ? dn.priceSale : ""].filter(Boolean).join(" "),
|
|
1739
2056
|
children: r(e)
|
|
1740
2057
|
}),
|
|
1741
|
-
s && n && /* @__PURE__ */ a(
|
|
2058
|
+
s && n && /* @__PURE__ */ a(Gt, {
|
|
1742
2059
|
variant: "danger",
|
|
1743
2060
|
emphasis: "solid",
|
|
1744
2061
|
children: [
|
|
@@ -1749,17 +2066,17 @@ var Ct = [
|
|
|
1749
2066
|
})
|
|
1750
2067
|
]
|
|
1751
2068
|
});
|
|
1752
|
-
},
|
|
2069
|
+
}, mn = {
|
|
1753
2070
|
button: "_button_58k4v_1",
|
|
1754
2071
|
icon: "_icon_58k4v_24",
|
|
1755
2072
|
iconSaved: "_iconSaved_58k4v_27",
|
|
1756
2073
|
bounce: "_bounce_58k4v_40",
|
|
1757
2074
|
"wishlist-bounce": "_wishlist-bounce_58k4v_1"
|
|
1758
|
-
},
|
|
2075
|
+
}, hn = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
|
|
1759
2076
|
let [o, s] = e.useState(!1);
|
|
1760
2077
|
return /* @__PURE__ */ i("button", {
|
|
1761
2078
|
type: "button",
|
|
1762
|
-
className: [
|
|
2079
|
+
className: [mn.button, a ?? ""].filter(Boolean).join(" "),
|
|
1763
2080
|
"aria-pressed": t,
|
|
1764
2081
|
"aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
|
|
1765
2082
|
onClick: () => {
|
|
@@ -1768,12 +2085,12 @@ var Ct = [
|
|
|
1768
2085
|
children: /* @__PURE__ */ i(S, {
|
|
1769
2086
|
size: 16,
|
|
1770
2087
|
strokeWidth: M(16),
|
|
1771
|
-
className: [t ?
|
|
2088
|
+
className: [t ? mn.iconSaved : mn.icon, o ? mn.bounce : ""].filter(Boolean).join(" "),
|
|
1772
2089
|
fill: t ? "currentColor" : "none",
|
|
1773
2090
|
onAnimationEnd: () => s(!1)
|
|
1774
2091
|
})
|
|
1775
2092
|
});
|
|
1776
|
-
},
|
|
2093
|
+
}, H = {
|
|
1777
2094
|
card: "_card_jlv97_1",
|
|
1778
2095
|
imageWrap: "_imageWrap_jlv97_16",
|
|
1779
2096
|
image: "_image_jlv97_16",
|
|
@@ -1793,81 +2110,81 @@ var Ct = [
|
|
|
1793
2110
|
description: "_description_jlv97_118",
|
|
1794
2111
|
swatches: "_swatches_jlv97_131",
|
|
1795
2112
|
addButton: "_addButton_jlv97_136"
|
|
1796
|
-
},
|
|
2113
|
+
}, gn = (e) => e.toLocaleString("en-US", {
|
|
1797
2114
|
style: "currency",
|
|
1798
2115
|
currency: "USD"
|
|
1799
|
-
}),
|
|
2116
|
+
}), _n = ({ image: e, imageAlt: t, name: n, description: r, price: o, compareAtPrice: s, rating: c, reviewCount: l, colors: u = [], onColorSelect: d, inStock: f = !0, wishlisted: p = !1, onWishlistToggle: m, onAddItem: h, addItemLabel: g = "Add Item", formatPrice: _ = gn, className: v }) => {
|
|
1800
2117
|
let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
|
|
1801
2118
|
return /* @__PURE__ */ a("div", {
|
|
1802
|
-
className: [
|
|
2119
|
+
className: [H.card, v ?? ""].filter(Boolean).join(" "),
|
|
1803
2120
|
children: [/* @__PURE__ */ a("div", {
|
|
1804
|
-
className:
|
|
2121
|
+
className: H.imageWrap,
|
|
1805
2122
|
children: [
|
|
1806
2123
|
/* @__PURE__ */ i("img", {
|
|
1807
2124
|
src: e,
|
|
1808
2125
|
alt: t ?? n,
|
|
1809
|
-
className: [
|
|
2126
|
+
className: [H.image, f ? "" : H.imageDimmed].filter(Boolean).join(" ")
|
|
1810
2127
|
}),
|
|
1811
|
-
y && f && /* @__PURE__ */ a(
|
|
2128
|
+
y && f && /* @__PURE__ */ a(Gt, {
|
|
1812
2129
|
variant: "danger",
|
|
1813
2130
|
emphasis: "solid",
|
|
1814
|
-
className:
|
|
2131
|
+
className: H.saleBadge,
|
|
1815
2132
|
children: [
|
|
1816
2133
|
"-",
|
|
1817
2134
|
b,
|
|
1818
2135
|
"%"
|
|
1819
2136
|
]
|
|
1820
2137
|
}),
|
|
1821
|
-
f && /* @__PURE__ */ i(
|
|
2138
|
+
f && /* @__PURE__ */ i(hn, {
|
|
1822
2139
|
saved: p,
|
|
1823
2140
|
label: n,
|
|
1824
|
-
className:
|
|
2141
|
+
className: H.wishlistBtn,
|
|
1825
2142
|
onToggle: m
|
|
1826
2143
|
}),
|
|
1827
2144
|
!f && /* @__PURE__ */ i("span", {
|
|
1828
|
-
className:
|
|
2145
|
+
className: H.outOfStockLabel,
|
|
1829
2146
|
children: "Out of stock"
|
|
1830
2147
|
})
|
|
1831
2148
|
]
|
|
1832
2149
|
}), /* @__PURE__ */ a("div", {
|
|
1833
|
-
className:
|
|
2150
|
+
className: H.body,
|
|
1834
2151
|
children: [
|
|
1835
2152
|
c !== void 0 && /* @__PURE__ */ i("div", {
|
|
1836
|
-
className:
|
|
2153
|
+
className: H.rating,
|
|
1837
2154
|
role: "img",
|
|
1838
2155
|
"aria-label": `Rated ${c} out of 5${l ? ` (${l} reviews)` : ""}`,
|
|
1839
2156
|
children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(ne, {
|
|
1840
2157
|
size: 16,
|
|
1841
2158
|
strokeWidth: M(16),
|
|
1842
|
-
className: t < x ?
|
|
2159
|
+
className: t < x ? H.starFilled : H.starEmpty,
|
|
1843
2160
|
fill: t < x ? "currentColor" : "none"
|
|
1844
2161
|
}, t))
|
|
1845
2162
|
}),
|
|
1846
2163
|
/* @__PURE__ */ a("div", {
|
|
1847
|
-
className:
|
|
2164
|
+
className: H.titleRow,
|
|
1848
2165
|
children: [/* @__PURE__ */ i("p", {
|
|
1849
|
-
className:
|
|
2166
|
+
className: H.name,
|
|
1850
2167
|
children: n
|
|
1851
2168
|
}), /* @__PURE__ */ a("div", {
|
|
1852
|
-
className:
|
|
2169
|
+
className: H.priceRow,
|
|
1853
2170
|
children: [y && /* @__PURE__ */ i("span", {
|
|
1854
|
-
className:
|
|
2171
|
+
className: H.priceOriginal,
|
|
1855
2172
|
children: _(s)
|
|
1856
2173
|
}), /* @__PURE__ */ i("span", {
|
|
1857
|
-
className:
|
|
2174
|
+
className: H.price,
|
|
1858
2175
|
children: _(o)
|
|
1859
2176
|
})]
|
|
1860
2177
|
})]
|
|
1861
2178
|
}),
|
|
1862
2179
|
r && /* @__PURE__ */ i("p", {
|
|
1863
|
-
className:
|
|
2180
|
+
className: H.description,
|
|
1864
2181
|
children: r
|
|
1865
2182
|
}),
|
|
1866
2183
|
u.length > 0 && /* @__PURE__ */ i("div", {
|
|
1867
|
-
className:
|
|
2184
|
+
className: H.swatches,
|
|
1868
2185
|
role: "group",
|
|
1869
2186
|
"aria-label": "Color",
|
|
1870
|
-
children: u.map((e) => /* @__PURE__ */ i(
|
|
2187
|
+
children: u.map((e) => /* @__PURE__ */ i(un, {
|
|
1871
2188
|
...e,
|
|
1872
2189
|
onSelect: () => d?.(e.id ?? e.label)
|
|
1873
2190
|
}, e.id ?? e.label))
|
|
@@ -1876,14 +2193,14 @@ var Ct = [
|
|
|
1876
2193
|
variant: "primary",
|
|
1877
2194
|
size: "md",
|
|
1878
2195
|
disabled: !f,
|
|
1879
|
-
className:
|
|
2196
|
+
className: H.addButton,
|
|
1880
2197
|
onClick: h,
|
|
1881
2198
|
children: f ? g : "Out of stock"
|
|
1882
2199
|
})
|
|
1883
2200
|
]
|
|
1884
2201
|
})]
|
|
1885
2202
|
});
|
|
1886
|
-
},
|
|
2203
|
+
}, U = {
|
|
1887
2204
|
gallery: "_gallery_1mrk8_1",
|
|
1888
2205
|
galleryBottom: "_galleryBottom_1mrk8_5",
|
|
1889
2206
|
galleryLeft: "_galleryLeft_1mrk8_10",
|
|
@@ -1898,11 +2215,11 @@ var Ct = [
|
|
|
1898
2215
|
thumbLeft: "_thumbLeft_1mrk8_70",
|
|
1899
2216
|
thumbActive: "_thumbActive_1mrk8_75",
|
|
1900
2217
|
thumbImage: "_thumbImage_1mrk8_79"
|
|
1901
|
-
},
|
|
2218
|
+
}, vn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
|
|
1902
2219
|
let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
|
|
1903
2220
|
l || d(e), s?.(e);
|
|
1904
2221
|
}, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
|
|
1905
|
-
className: [
|
|
2222
|
+
className: [U.thumbs, h ? U.thumbsLeft : U.thumbsBottom].filter(Boolean).join(" "),
|
|
1906
2223
|
role: "tablist",
|
|
1907
2224
|
"aria-label": "Product images",
|
|
1908
2225
|
children: t.map((e, t) => /* @__PURE__ */ i("button", {
|
|
@@ -1911,56 +2228,56 @@ var Ct = [
|
|
|
1911
2228
|
"aria-selected": t === f,
|
|
1912
2229
|
"aria-label": e.alt ?? `Image ${t + 1}`,
|
|
1913
2230
|
className: [
|
|
1914
|
-
|
|
1915
|
-
h ?
|
|
1916
|
-
t === f ?
|
|
2231
|
+
U.thumb,
|
|
2232
|
+
h ? U.thumbLeft : U.thumbBottom,
|
|
2233
|
+
t === f ? U.thumbActive : ""
|
|
1917
2234
|
].filter(Boolean).join(" "),
|
|
1918
2235
|
onClick: () => p(t),
|
|
1919
2236
|
children: /* @__PURE__ */ i("img", {
|
|
1920
2237
|
src: e.src,
|
|
1921
2238
|
alt: "",
|
|
1922
|
-
className:
|
|
2239
|
+
className: U.thumbImage
|
|
1923
2240
|
})
|
|
1924
2241
|
}, e.src + t))
|
|
1925
2242
|
});
|
|
1926
2243
|
return /* @__PURE__ */ a("div", {
|
|
1927
2244
|
className: [
|
|
1928
|
-
|
|
1929
|
-
h ?
|
|
2245
|
+
U.gallery,
|
|
2246
|
+
h ? U.galleryLeft : U.galleryBottom,
|
|
1930
2247
|
c ?? ""
|
|
1931
2248
|
].filter(Boolean).join(" "),
|
|
1932
2249
|
children: [
|
|
1933
2250
|
!h && m && /* @__PURE__ */ i("div", {
|
|
1934
|
-
className:
|
|
2251
|
+
className: U.mainBottom,
|
|
1935
2252
|
children: /* @__PURE__ */ i("img", {
|
|
1936
2253
|
src: m.src,
|
|
1937
2254
|
alt: m.alt ?? "",
|
|
1938
|
-
className:
|
|
2255
|
+
className: U.mainImage
|
|
1939
2256
|
})
|
|
1940
2257
|
}),
|
|
1941
2258
|
g,
|
|
1942
2259
|
h && m && /* @__PURE__ */ i("div", {
|
|
1943
|
-
className:
|
|
2260
|
+
className: U.mainLeft,
|
|
1944
2261
|
children: /* @__PURE__ */ i("img", {
|
|
1945
2262
|
src: m.src,
|
|
1946
2263
|
alt: m.alt ?? "",
|
|
1947
|
-
className:
|
|
2264
|
+
className: U.mainImage
|
|
1948
2265
|
})
|
|
1949
2266
|
})
|
|
1950
2267
|
]
|
|
1951
2268
|
});
|
|
1952
|
-
},
|
|
2269
|
+
}, yn = {
|
|
1953
2270
|
button: "_button_1vgn5_1",
|
|
1954
2271
|
unselected: "_unselected_1vgn5_23",
|
|
1955
2272
|
selected: "_selected_1vgn5_32",
|
|
1956
2273
|
unavailable: "_unavailable_1vgn5_37",
|
|
1957
2274
|
label: "_label_1vgn5_44",
|
|
1958
2275
|
strike: "_strike_1vgn5_55"
|
|
1959
|
-
},
|
|
2276
|
+
}, bn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
|
|
1960
2277
|
type: "button",
|
|
1961
2278
|
className: [
|
|
1962
|
-
|
|
1963
|
-
n ? t ?
|
|
2279
|
+
yn.button,
|
|
2280
|
+
n ? t ? yn.selected : yn.unselected : yn.unavailable,
|
|
1964
2281
|
o ?? ""
|
|
1965
2282
|
].filter(Boolean).join(" "),
|
|
1966
2283
|
disabled: !n,
|
|
@@ -1968,13 +2285,13 @@ var Ct = [
|
|
|
1968
2285
|
"aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
|
|
1969
2286
|
onClick: r,
|
|
1970
2287
|
children: [/* @__PURE__ */ i("span", {
|
|
1971
|
-
className:
|
|
2288
|
+
className: yn.label,
|
|
1972
2289
|
children: e
|
|
1973
2290
|
}), !n && /* @__PURE__ */ i("span", {
|
|
1974
|
-
className:
|
|
2291
|
+
className: yn.strike,
|
|
1975
2292
|
"aria-hidden": "true"
|
|
1976
2293
|
})]
|
|
1977
|
-
}),
|
|
2294
|
+
}), xn = {
|
|
1978
2295
|
row: "_row_1snsi_1",
|
|
1979
2296
|
rowVertical: "_rowVertical_1snsi_8",
|
|
1980
2297
|
stars: "_stars_1snsi_13",
|
|
@@ -1983,40 +2300,40 @@ var Ct = [
|
|
|
1983
2300
|
label: "_label_1snsi_29",
|
|
1984
2301
|
value: "_value_1snsi_38",
|
|
1985
2302
|
count: "_count_1snsi_43"
|
|
1986
|
-
},
|
|
2303
|
+
}, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Sn, className: s }) => {
|
|
1987
2304
|
let c = Math.max(0, Math.min(5, e)), l = Math.round(c * 2) / 2, u = Math.floor(l), d = l - u === .5, f = 5 - u - !!d, p = /* @__PURE__ */ a("div", {
|
|
1988
|
-
className:
|
|
2305
|
+
className: xn.stars,
|
|
1989
2306
|
role: "img",
|
|
1990
2307
|
"aria-label": `${c} out of 5 stars`,
|
|
1991
2308
|
children: [
|
|
1992
2309
|
Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(ne, {
|
|
1993
2310
|
size: 24,
|
|
1994
2311
|
strokeWidth: M(24),
|
|
1995
|
-
className:
|
|
2312
|
+
className: xn.starFull,
|
|
1996
2313
|
fill: "currentColor",
|
|
1997
2314
|
"aria-hidden": "true"
|
|
1998
2315
|
}, `full-${t}`)),
|
|
1999
2316
|
d && /* @__PURE__ */ i(re, {
|
|
2000
2317
|
size: 24,
|
|
2001
2318
|
strokeWidth: M(24),
|
|
2002
|
-
className:
|
|
2319
|
+
className: xn.starFull,
|
|
2003
2320
|
fill: "currentColor",
|
|
2004
2321
|
"aria-hidden": "true"
|
|
2005
2322
|
}),
|
|
2006
2323
|
Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(ne, {
|
|
2007
2324
|
size: 24,
|
|
2008
2325
|
strokeWidth: M(24),
|
|
2009
|
-
className:
|
|
2326
|
+
className: xn.starEmpty,
|
|
2010
2327
|
"aria-hidden": "true"
|
|
2011
2328
|
}, `empty-${t}`))
|
|
2012
2329
|
]
|
|
2013
2330
|
}), m = n && /* @__PURE__ */ a("div", {
|
|
2014
|
-
className:
|
|
2331
|
+
className: xn.label,
|
|
2015
2332
|
children: [/* @__PURE__ */ i("span", {
|
|
2016
|
-
className:
|
|
2333
|
+
className: xn.value,
|
|
2017
2334
|
children: c.toFixed(1)
|
|
2018
2335
|
}), t !== void 0 && /* @__PURE__ */ a("span", {
|
|
2019
|
-
className:
|
|
2336
|
+
className: xn.count,
|
|
2020
2337
|
children: [
|
|
2021
2338
|
"(",
|
|
2022
2339
|
o(t),
|
|
@@ -2024,8 +2341,8 @@ var Ct = [
|
|
|
2024
2341
|
]
|
|
2025
2342
|
})]
|
|
2026
2343
|
}), h = [
|
|
2027
|
-
|
|
2028
|
-
r === "vertical" ?
|
|
2344
|
+
xn.row,
|
|
2345
|
+
r === "vertical" ? xn.rowVertical : "",
|
|
2029
2346
|
s ?? ""
|
|
2030
2347
|
].filter(Boolean).join(" ");
|
|
2031
2348
|
return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
|
|
@@ -2035,15 +2352,15 @@ var Ct = [
|
|
|
2035
2352
|
className: h,
|
|
2036
2353
|
children: [p, m]
|
|
2037
2354
|
});
|
|
2038
|
-
},
|
|
2355
|
+
}, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
|
|
2039
2356
|
let a = e <= 0, o = !a && e <= t, s = a ? "danger" : o ? "warning" : "success", c = a ? "Out of stock" : o ? `Only ${e} left` : "In stock";
|
|
2040
|
-
return /* @__PURE__ */ i(
|
|
2357
|
+
return /* @__PURE__ */ i(Gt, {
|
|
2041
2358
|
variant: s,
|
|
2042
2359
|
emphasis: "subtle",
|
|
2043
2360
|
className: r,
|
|
2044
2361
|
children: n ?? c
|
|
2045
2362
|
});
|
|
2046
|
-
},
|
|
2363
|
+
}, W = {
|
|
2047
2364
|
card: "_card_1w9hp_1",
|
|
2048
2365
|
cardDefault: "_cardDefault_1w9hp_8",
|
|
2049
2366
|
imageDefault: "_imageDefault_1w9hp_19",
|
|
@@ -2058,55 +2375,55 @@ var Ct = [
|
|
|
2058
2375
|
excerpt: "_excerpt_1w9hp_114",
|
|
2059
2376
|
author: "_author_1w9hp_123",
|
|
2060
2377
|
authorText: "_authorText_1w9hp_130"
|
|
2061
|
-
},
|
|
2378
|
+
}, Tn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
|
|
2062
2379
|
let d = l === "horizontal";
|
|
2063
2380
|
return /* @__PURE__ */ a("div", {
|
|
2064
2381
|
className: [
|
|
2065
|
-
|
|
2066
|
-
d ?
|
|
2382
|
+
W.card,
|
|
2383
|
+
d ? W.cardHorizontal : W.cardDefault,
|
|
2067
2384
|
u ?? ""
|
|
2068
2385
|
].filter(Boolean).join(" "),
|
|
2069
2386
|
children: [d ? /* @__PURE__ */ i("span", {
|
|
2070
|
-
className:
|
|
2387
|
+
className: W.imageWrapHorizontal,
|
|
2071
2388
|
children: /* @__PURE__ */ i("img", {
|
|
2072
2389
|
src: e,
|
|
2073
2390
|
alt: t ?? "",
|
|
2074
|
-
className:
|
|
2391
|
+
className: W.image
|
|
2075
2392
|
})
|
|
2076
2393
|
}) : /* @__PURE__ */ i("img", {
|
|
2077
2394
|
src: e,
|
|
2078
2395
|
alt: t ?? "",
|
|
2079
|
-
className:
|
|
2396
|
+
className: W.imageDefault
|
|
2080
2397
|
}), /* @__PURE__ */ a("div", {
|
|
2081
|
-
className: d ?
|
|
2398
|
+
className: d ? W.bodyHorizontal : W.bodyDefault,
|
|
2082
2399
|
children: [
|
|
2083
2400
|
/* @__PURE__ */ a("div", {
|
|
2084
|
-
className:
|
|
2085
|
-
children: [/* @__PURE__ */ i(
|
|
2401
|
+
className: W.metaRow,
|
|
2402
|
+
children: [/* @__PURE__ */ i(Gt, {
|
|
2086
2403
|
variant: "accent",
|
|
2087
2404
|
emphasis: "subtle",
|
|
2088
2405
|
children: n
|
|
2089
2406
|
}), /* @__PURE__ */ i("span", {
|
|
2090
|
-
className:
|
|
2407
|
+
className: W.readTime,
|
|
2091
2408
|
children: r
|
|
2092
2409
|
})]
|
|
2093
2410
|
}),
|
|
2094
2411
|
/* @__PURE__ */ i("p", {
|
|
2095
|
-
className:
|
|
2412
|
+
className: W.title,
|
|
2096
2413
|
children: o
|
|
2097
2414
|
}),
|
|
2098
2415
|
/* @__PURE__ */ i("p", {
|
|
2099
|
-
className:
|
|
2416
|
+
className: W.excerpt,
|
|
2100
2417
|
children: s
|
|
2101
2418
|
}),
|
|
2102
2419
|
/* @__PURE__ */ a("div", {
|
|
2103
|
-
className:
|
|
2420
|
+
className: W.author,
|
|
2104
2421
|
children: [/* @__PURE__ */ i(Ne, {
|
|
2105
2422
|
size: "sm",
|
|
2106
2423
|
src: c.avatarSrc,
|
|
2107
2424
|
alt: c.avatarAlt ?? c.name
|
|
2108
2425
|
}), /* @__PURE__ */ a("p", {
|
|
2109
|
-
className:
|
|
2426
|
+
className: W.authorText,
|
|
2110
2427
|
children: [
|
|
2111
2428
|
c.name,
|
|
2112
2429
|
" · ",
|
|
@@ -2117,7 +2434,7 @@ var Ct = [
|
|
|
2117
2434
|
]
|
|
2118
2435
|
})]
|
|
2119
2436
|
});
|
|
2120
|
-
},
|
|
2437
|
+
}, En = {
|
|
2121
2438
|
card: "_card_8cf5b_1",
|
|
2122
2439
|
cardHorizontal: "_cardHorizontal_8cf5b_12",
|
|
2123
2440
|
cardVertical: "_cardVertical_8cf5b_20",
|
|
@@ -2129,45 +2446,45 @@ var Ct = [
|
|
|
2129
2446
|
footer: "_footer_8cf5b_86",
|
|
2130
2447
|
author: "_author_8cf5b_94",
|
|
2131
2448
|
authorText: "_authorText_8cf5b_101"
|
|
2132
|
-
},
|
|
2449
|
+
}, Dn = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
|
|
2133
2450
|
let f = u === "vertical";
|
|
2134
2451
|
return /* @__PURE__ */ a("div", {
|
|
2135
2452
|
className: [
|
|
2136
|
-
|
|
2137
|
-
f ?
|
|
2453
|
+
En.card,
|
|
2454
|
+
f ? En.cardVertical : En.cardHorizontal,
|
|
2138
2455
|
d ?? ""
|
|
2139
2456
|
].filter(Boolean).join(" "),
|
|
2140
2457
|
children: [/* @__PURE__ */ i("img", {
|
|
2141
2458
|
src: e,
|
|
2142
2459
|
alt: t ?? "",
|
|
2143
|
-
className:
|
|
2460
|
+
className: En.image
|
|
2144
2461
|
}), /* @__PURE__ */ a("div", {
|
|
2145
|
-
className: f ?
|
|
2462
|
+
className: f ? En.bodyVertical : En.bodyHorizontal,
|
|
2146
2463
|
children: [
|
|
2147
|
-
/* @__PURE__ */ i(
|
|
2464
|
+
/* @__PURE__ */ i(Gt, {
|
|
2148
2465
|
variant: "accent",
|
|
2149
2466
|
emphasis: "subtle",
|
|
2150
2467
|
children: n
|
|
2151
2468
|
}),
|
|
2152
2469
|
/* @__PURE__ */ i("p", {
|
|
2153
|
-
className:
|
|
2470
|
+
className: En.title,
|
|
2154
2471
|
children: r
|
|
2155
2472
|
}),
|
|
2156
2473
|
/* @__PURE__ */ i("p", {
|
|
2157
|
-
className:
|
|
2474
|
+
className: En.excerpt,
|
|
2158
2475
|
children: o
|
|
2159
2476
|
}),
|
|
2160
2477
|
/* @__PURE__ */ a("div", {
|
|
2161
|
-
className:
|
|
2478
|
+
className: En.footer,
|
|
2162
2479
|
children: [/* @__PURE__ */ a("div", {
|
|
2163
|
-
className:
|
|
2480
|
+
className: En.author,
|
|
2164
2481
|
children: [/* @__PURE__ */ i(Ne, {
|
|
2165
2482
|
size: "md",
|
|
2166
2483
|
src: s.avatarSrc,
|
|
2167
2484
|
alt: s.avatarAlt ?? s.name,
|
|
2168
2485
|
initials: s.initials
|
|
2169
2486
|
}), /* @__PURE__ */ a("p", {
|
|
2170
|
-
className:
|
|
2487
|
+
className: En.authorText,
|
|
2171
2488
|
children: [
|
|
2172
2489
|
s.name,
|
|
2173
2490
|
" · ",
|
|
@@ -2184,7 +2501,7 @@ var Ct = [
|
|
|
2184
2501
|
]
|
|
2185
2502
|
})]
|
|
2186
2503
|
});
|
|
2187
|
-
},
|
|
2504
|
+
}, On = {
|
|
2188
2505
|
chip: "_chip_scl8l_1",
|
|
2189
2506
|
"chip--sm": "_chip--sm_scl8l_11",
|
|
2190
2507
|
"chip--md": "_chip--md_scl8l_17",
|
|
@@ -2193,26 +2510,26 @@ var Ct = [
|
|
|
2193
2510
|
"chip--outline": "_chip--outline_scl8l_35",
|
|
2194
2511
|
"chip--solid": "_chip--solid_scl8l_39",
|
|
2195
2512
|
"chip--subtle": "_chip--subtle_scl8l_43"
|
|
2196
|
-
},
|
|
2513
|
+
}, kn = {
|
|
2197
2514
|
sm: 16,
|
|
2198
2515
|
md: 20,
|
|
2199
2516
|
lg: 24
|
|
2200
|
-
},
|
|
2201
|
-
let o =
|
|
2517
|
+
}, An = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
|
|
2518
|
+
let o = kn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
|
|
2202
2519
|
size: o,
|
|
2203
2520
|
strokeWidth: M(o)
|
|
2204
2521
|
}) : t;
|
|
2205
2522
|
return /* @__PURE__ */ i("div", {
|
|
2206
2523
|
className: [
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2524
|
+
On.chip,
|
|
2525
|
+
On[`chip--${n}`],
|
|
2526
|
+
On[`chip--${r}`],
|
|
2210
2527
|
a ?? ""
|
|
2211
2528
|
].filter(Boolean).join(" "),
|
|
2212
2529
|
"aria-hidden": "true",
|
|
2213
2530
|
children: s
|
|
2214
2531
|
});
|
|
2215
|
-
},
|
|
2532
|
+
}, jn = {
|
|
2216
2533
|
group: "_group_mvlh4_3",
|
|
2217
2534
|
group__item: "_group__item_mvlh4_6",
|
|
2218
2535
|
"group--sm": "_group--sm_mvlh4_9",
|
|
@@ -2223,16 +2540,16 @@ var Ct = [
|
|
|
2223
2540
|
"overflow--md": "_overflow--md_mvlh4_26",
|
|
2224
2541
|
"overflow--lg": "_overflow--lg_mvlh4_27",
|
|
2225
2542
|
"overflow--xl": "_overflow--xl_mvlh4_28"
|
|
2226
|
-
},
|
|
2543
|
+
}, Mn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
|
|
2227
2544
|
let o = n.slice(0, t), s = n.length - o.length;
|
|
2228
2545
|
return /* @__PURE__ */ a("div", {
|
|
2229
2546
|
className: [
|
|
2230
|
-
|
|
2231
|
-
|
|
2547
|
+
jn.group,
|
|
2548
|
+
jn[`group--${e}`],
|
|
2232
2549
|
r ?? ""
|
|
2233
2550
|
].filter(Boolean).join(" "),
|
|
2234
2551
|
children: [o.map((t, n) => /* @__PURE__ */ i("span", {
|
|
2235
|
-
className:
|
|
2552
|
+
className: jn.group__item,
|
|
2236
2553
|
children: /* @__PURE__ */ i(Ne, {
|
|
2237
2554
|
size: e,
|
|
2238
2555
|
src: t.src,
|
|
@@ -2240,25 +2557,25 @@ var Ct = [
|
|
|
2240
2557
|
alt: t.alt
|
|
2241
2558
|
})
|
|
2242
2559
|
}, n)), s > 0 && /* @__PURE__ */ i("span", {
|
|
2243
|
-
className:
|
|
2560
|
+
className: jn.group__item,
|
|
2244
2561
|
children: /* @__PURE__ */ a("span", {
|
|
2245
|
-
className: [
|
|
2562
|
+
className: [jn.overflow, jn[`overflow--${e}`]].join(" "),
|
|
2246
2563
|
children: ["+", s]
|
|
2247
2564
|
})
|
|
2248
2565
|
})]
|
|
2249
2566
|
});
|
|
2250
|
-
},
|
|
2567
|
+
}, Nn = {
|
|
2251
2568
|
root: "_root_165je_1",
|
|
2252
2569
|
dot: "_dot_165je_13",
|
|
2253
2570
|
dotActive: "_dotActive_165je_21",
|
|
2254
2571
|
dotRemote: "_dotRemote_165je_25"
|
|
2255
|
-
},
|
|
2256
|
-
className: [
|
|
2572
|
+
}, Pn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
|
|
2573
|
+
className: [Nn.root, n ?? ""].filter(Boolean).join(" "),
|
|
2257
2574
|
children: [/* @__PURE__ */ i("span", {
|
|
2258
|
-
className: [
|
|
2575
|
+
className: [Nn.dot, t === "active" ? Nn.dotActive : Nn.dotRemote].join(" "),
|
|
2259
2576
|
"aria-hidden": "true"
|
|
2260
2577
|
}), e]
|
|
2261
|
-
}),
|
|
2578
|
+
}), Fn = {
|
|
2262
2579
|
root: "_root_15jaa_1",
|
|
2263
2580
|
rootCard: "_rootCard_15jaa_9",
|
|
2264
2581
|
rootRow: "_rootRow_15jaa_21",
|
|
@@ -2268,30 +2585,30 @@ var Ct = [
|
|
|
2268
2585
|
description: "_description_15jaa_56",
|
|
2269
2586
|
metaRow: "_metaRow_15jaa_65",
|
|
2270
2587
|
applyBtn: "_applyBtn_15jaa_72"
|
|
2271
|
-
},
|
|
2588
|
+
}, In = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
|
|
2272
2589
|
let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
2273
|
-
className:
|
|
2590
|
+
className: Fn.titleGroup,
|
|
2274
2591
|
children: [/* @__PURE__ */ i("p", {
|
|
2275
|
-
className:
|
|
2592
|
+
className: Fn.title,
|
|
2276
2593
|
children: e
|
|
2277
2594
|
}), /* @__PURE__ */ i("p", {
|
|
2278
|
-
className:
|
|
2595
|
+
className: Fn.description,
|
|
2279
2596
|
children: t
|
|
2280
2597
|
})]
|
|
2281
2598
|
}), /* @__PURE__ */ a("div", {
|
|
2282
|
-
className:
|
|
2599
|
+
className: Fn.metaRow,
|
|
2283
2600
|
children: [
|
|
2284
|
-
/* @__PURE__ */ i(
|
|
2601
|
+
/* @__PURE__ */ i(Gt, {
|
|
2285
2602
|
variant: "accent",
|
|
2286
2603
|
emphasis: "subtle",
|
|
2287
2604
|
children: n
|
|
2288
2605
|
}),
|
|
2289
|
-
/* @__PURE__ */ i(
|
|
2606
|
+
/* @__PURE__ */ i(Gt, {
|
|
2290
2607
|
variant: "neutral",
|
|
2291
2608
|
emphasis: "subtle",
|
|
2292
2609
|
children: o
|
|
2293
2610
|
}),
|
|
2294
|
-
/* @__PURE__ */ i(
|
|
2611
|
+
/* @__PURE__ */ i(Pn, {
|
|
2295
2612
|
location: s,
|
|
2296
2613
|
status: c
|
|
2297
2614
|
})
|
|
@@ -2299,24 +2616,24 @@ var Ct = [
|
|
|
2299
2616
|
})] });
|
|
2300
2617
|
return p ? /* @__PURE__ */ a("div", {
|
|
2301
2618
|
className: [
|
|
2302
|
-
|
|
2303
|
-
|
|
2619
|
+
Fn.root,
|
|
2620
|
+
Fn.rootRow,
|
|
2304
2621
|
f ?? ""
|
|
2305
2622
|
].filter(Boolean).join(" "),
|
|
2306
2623
|
children: [/* @__PURE__ */ i("div", {
|
|
2307
|
-
className:
|
|
2624
|
+
className: Fn.rowLeft,
|
|
2308
2625
|
children: m
|
|
2309
2626
|
}), /* @__PURE__ */ i(P, {
|
|
2310
2627
|
variant: "secondary",
|
|
2311
2628
|
size: "sm",
|
|
2312
|
-
className:
|
|
2629
|
+
className: Fn.applyBtn,
|
|
2313
2630
|
onClick: l,
|
|
2314
2631
|
children: u
|
|
2315
2632
|
})]
|
|
2316
2633
|
}) : /* @__PURE__ */ a("div", {
|
|
2317
2634
|
className: [
|
|
2318
|
-
|
|
2319
|
-
|
|
2635
|
+
Fn.root,
|
|
2636
|
+
Fn.rootCard,
|
|
2320
2637
|
f ?? ""
|
|
2321
2638
|
].filter(Boolean).join(" "),
|
|
2322
2639
|
children: [m, /* @__PURE__ */ i(P, {
|
|
@@ -2326,30 +2643,30 @@ var Ct = [
|
|
|
2326
2643
|
children: u
|
|
2327
2644
|
})]
|
|
2328
2645
|
});
|
|
2329
|
-
},
|
|
2646
|
+
}, Ln = {
|
|
2330
2647
|
root: "_root_3bf2n_1",
|
|
2331
2648
|
rootCenter: "_rootCenter_3bf2n_9",
|
|
2332
2649
|
rootLeft: "_rootLeft_3bf2n_14",
|
|
2333
2650
|
title: "_title_3bf2n_19",
|
|
2334
2651
|
subtitle: "_subtitle_3bf2n_28"
|
|
2335
|
-
},
|
|
2652
|
+
}, Rn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
|
|
2336
2653
|
className: [
|
|
2337
|
-
|
|
2338
|
-
r === "left" ?
|
|
2654
|
+
Ln.root,
|
|
2655
|
+
r === "left" ? Ln.rootLeft : Ln.rootCenter,
|
|
2339
2656
|
s ?? ""
|
|
2340
2657
|
].filter(Boolean).join(" "),
|
|
2341
2658
|
children: [
|
|
2342
|
-
e && /* @__PURE__ */ i(
|
|
2659
|
+
e && /* @__PURE__ */ i(Gt, {
|
|
2343
2660
|
variant: "accent",
|
|
2344
2661
|
emphasis: "subtle",
|
|
2345
2662
|
children: e
|
|
2346
2663
|
}),
|
|
2347
2664
|
/* @__PURE__ */ i(o, {
|
|
2348
|
-
className:
|
|
2665
|
+
className: Ln.title,
|
|
2349
2666
|
children: t
|
|
2350
2667
|
}),
|
|
2351
2668
|
n && /* @__PURE__ */ i("p", {
|
|
2352
|
-
className:
|
|
2669
|
+
className: Ln.subtitle,
|
|
2353
2670
|
children: n
|
|
2354
2671
|
})
|
|
2355
2672
|
]
|
|
@@ -2366,7 +2683,7 @@ var Ct = [
|
|
|
2366
2683
|
role: "_role_1ye9i_99",
|
|
2367
2684
|
social: "_social_1ye9i_108",
|
|
2368
2685
|
bio: "_bio_1ye9i_116"
|
|
2369
|
-
},
|
|
2686
|
+
}, zn = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
|
|
2370
2687
|
className: [G.card, u ?? ""].filter(Boolean).join(" "),
|
|
2371
2688
|
children: [/* @__PURE__ */ a("div", {
|
|
2372
2689
|
className: G.imageWrap,
|
|
@@ -2376,7 +2693,7 @@ var Ct = [
|
|
|
2376
2693
|
className: G.image
|
|
2377
2694
|
}), /* @__PURE__ */ i("div", {
|
|
2378
2695
|
className: G.locationBar,
|
|
2379
|
-
children: /* @__PURE__ */ i(
|
|
2696
|
+
children: /* @__PURE__ */ i(Pn, {
|
|
2380
2697
|
location: o,
|
|
2381
2698
|
status: s,
|
|
2382
2699
|
className: G.locationDot
|
|
@@ -2401,7 +2718,7 @@ var Ct = [
|
|
|
2401
2718
|
href: e.href,
|
|
2402
2719
|
onClick: e.onClick,
|
|
2403
2720
|
"aria-label": e.label,
|
|
2404
|
-
children: /* @__PURE__ */ i(
|
|
2721
|
+
children: /* @__PURE__ */ i(An, {
|
|
2405
2722
|
icon: e.icon,
|
|
2406
2723
|
size: "sm",
|
|
2407
2724
|
variant: "subtle"
|
|
@@ -2413,7 +2730,7 @@ var Ct = [
|
|
|
2413
2730
|
children: c
|
|
2414
2731
|
})]
|
|
2415
2732
|
})]
|
|
2416
|
-
}),
|
|
2733
|
+
}), Bn = {
|
|
2417
2734
|
alert: "_alert_1hjs5_3",
|
|
2418
2735
|
alert__icon: "_alert__icon_1hjs5_12",
|
|
2419
2736
|
alert__content: "_alert__content_1hjs5_13",
|
|
@@ -2424,7 +2741,7 @@ var Ct = [
|
|
|
2424
2741
|
"alert--warning": "_alert--warning_1hjs5_24",
|
|
2425
2742
|
"alert--danger": "_alert--danger_1hjs5_27",
|
|
2426
2743
|
"alert--neutral": "_alert--neutral_1hjs5_30"
|
|
2427
|
-
},
|
|
2744
|
+
}, Vn = {
|
|
2428
2745
|
info: /* @__PURE__ */ a(r, { children: [
|
|
2429
2746
|
/* @__PURE__ */ i("circle", {
|
|
2430
2747
|
cx: "12",
|
|
@@ -2498,15 +2815,15 @@ var Ct = [
|
|
|
2498
2815
|
y2: "8"
|
|
2499
2816
|
})
|
|
2500
2817
|
] })
|
|
2501
|
-
},
|
|
2818
|
+
}, Hn = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
|
|
2502
2819
|
role: "alert",
|
|
2503
2820
|
className: [
|
|
2504
|
-
|
|
2505
|
-
|
|
2821
|
+
Bn.alert,
|
|
2822
|
+
Bn[`alert--${e}`],
|
|
2506
2823
|
o ?? ""
|
|
2507
2824
|
].filter(Boolean).join(" "),
|
|
2508
2825
|
children: [/* @__PURE__ */ i("span", {
|
|
2509
|
-
className:
|
|
2826
|
+
className: Bn.alert__icon,
|
|
2510
2827
|
"aria-hidden": "true",
|
|
2511
2828
|
children: /* @__PURE__ */ i("svg", {
|
|
2512
2829
|
viewBox: "0 0 24 24",
|
|
@@ -2517,15 +2834,15 @@ var Ct = [
|
|
|
2517
2834
|
strokeLinejoin: "round",
|
|
2518
2835
|
width: 18,
|
|
2519
2836
|
height: 18,
|
|
2520
|
-
children: r ??
|
|
2837
|
+
children: r ?? Vn[e]
|
|
2521
2838
|
})
|
|
2522
2839
|
}), /* @__PURE__ */ a("div", {
|
|
2523
|
-
className:
|
|
2840
|
+
className: Bn.alert__content,
|
|
2524
2841
|
children: [t && /* @__PURE__ */ i("div", {
|
|
2525
|
-
className:
|
|
2842
|
+
className: Bn.alert__title,
|
|
2526
2843
|
children: t
|
|
2527
2844
|
}), n && /* @__PURE__ */ i("div", {
|
|
2528
|
-
className:
|
|
2845
|
+
className: Bn.alert__description,
|
|
2529
2846
|
children: n
|
|
2530
2847
|
})]
|
|
2531
2848
|
})]
|
|
@@ -2546,7 +2863,7 @@ var Ct = [
|
|
|
2546
2863
|
card__footer: "_card__footer_6iftf_47",
|
|
2547
2864
|
card__meta: "_card__meta_6iftf_48",
|
|
2548
2865
|
card__assignees: "_card__assignees_6iftf_49"
|
|
2549
|
-
},
|
|
2866
|
+
}, Un = ({ type: e = "default", state: t = "default", cover: n, leading: o, title: s, trailing: c, description: l, tags: u, meta: d, assignees: f, onClick: p, className: m }) => {
|
|
2550
2867
|
let h = e !== "compact", g = d || f;
|
|
2551
2868
|
return /* @__PURE__ */ a("div", {
|
|
2552
2869
|
onClick: p,
|
|
@@ -2599,7 +2916,7 @@ var Ct = [
|
|
|
2599
2916
|
})] })
|
|
2600
2917
|
]
|
|
2601
2918
|
});
|
|
2602
|
-
},
|
|
2919
|
+
}, Wn = {
|
|
2603
2920
|
breadcrumb: "_breadcrumb_tszff_3",
|
|
2604
2921
|
list: "_list_tszff_5",
|
|
2605
2922
|
item: "_item_tszff_15",
|
|
@@ -2608,12 +2925,12 @@ var Ct = [
|
|
|
2608
2925
|
separator: "_separator_tszff_33",
|
|
2609
2926
|
"list--button": "_list--button_tszff_38",
|
|
2610
2927
|
chip: "_chip_tszff_41"
|
|
2611
|
-
},
|
|
2928
|
+
}, Gn = {
|
|
2612
2929
|
highlight: "_highlight_1bp09_15",
|
|
2613
2930
|
visible: "_visible_1bp09_24",
|
|
2614
2931
|
glide: "_glide_1bp09_28"
|
|
2615
|
-
},
|
|
2616
|
-
function
|
|
2932
|
+
}, Kn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
|
|
2933
|
+
function qn(e, t) {
|
|
2617
2934
|
let n = 0, r = 0, i = e;
|
|
2618
2935
|
for (; i && i !== t;) {
|
|
2619
2936
|
n += i.offsetLeft, r += i.offsetTop;
|
|
@@ -2632,7 +2949,7 @@ function Mn(e, t) {
|
|
|
2632
2949
|
tone: a.getPropertyValue("--hover-tone").trim()
|
|
2633
2950
|
};
|
|
2634
2951
|
}
|
|
2635
|
-
function
|
|
2952
|
+
function Jn() {
|
|
2636
2953
|
let t = e.useRef(null), [n, r] = e.useState(null), a = e.useCallback((e) => {
|
|
2637
2954
|
t.current = e, r(e);
|
|
2638
2955
|
}, []), o = e.useRef(null), s = e.useRef(!1), c = e.useRef(null), l = e.useRef(!1), u = e.useRef(null), [d, f] = e.useState(null), [p, m] = e.useState(!1), [h, g] = e.useState(!1), _ = e.useCallback(() => {
|
|
@@ -2641,7 +2958,7 @@ function Nn() {
|
|
|
2641
2958
|
let n = t.current;
|
|
2642
2959
|
if (!n) return;
|
|
2643
2960
|
n !== u.current && (u.current = n, s.current = !1), o.current = e;
|
|
2644
|
-
let r =
|
|
2961
|
+
let r = qn(e, n);
|
|
2645
2962
|
if (s.current) {
|
|
2646
2963
|
f(r);
|
|
2647
2964
|
return;
|
|
@@ -2660,7 +2977,7 @@ function Nn() {
|
|
|
2660
2977
|
if (!n) return;
|
|
2661
2978
|
let r = e.target.closest("[data-hover-item]");
|
|
2662
2979
|
if (!(!r || r.closest("[data-hover-group]") !== n)) {
|
|
2663
|
-
if (
|
|
2980
|
+
if (Kn(r)) {
|
|
2664
2981
|
_();
|
|
2665
2982
|
return;
|
|
2666
2983
|
}
|
|
@@ -2677,7 +2994,7 @@ function Nn() {
|
|
|
2677
2994
|
_();
|
|
2678
2995
|
return;
|
|
2679
2996
|
}
|
|
2680
|
-
f(
|
|
2997
|
+
f(qn(t, e));
|
|
2681
2998
|
}
|
|
2682
2999
|
}, r = new ResizeObserver(t);
|
|
2683
3000
|
return r.observe(e), e.addEventListener("scroll", t, !0), () => {
|
|
@@ -2688,9 +3005,9 @@ function Nn() {
|
|
|
2688
3005
|
ref: c,
|
|
2689
3006
|
"aria-hidden": "true",
|
|
2690
3007
|
className: [
|
|
2691
|
-
|
|
2692
|
-
p ?
|
|
2693
|
-
h ?
|
|
3008
|
+
Gn.highlight,
|
|
3009
|
+
p ? Gn.visible : "",
|
|
3010
|
+
h ? Gn.glide : ""
|
|
2694
3011
|
].filter(Boolean).join(" "),
|
|
2695
3012
|
style: d ? {
|
|
2696
3013
|
transform: `translate(${d.x}px, ${d.y}px)`,
|
|
@@ -2700,7 +3017,7 @@ function Nn() {
|
|
|
2700
3017
|
background: d.tone || void 0
|
|
2701
3018
|
} : void 0
|
|
2702
3019
|
}), x = e.useCallback((e) => {
|
|
2703
|
-
e && !
|
|
3020
|
+
e && !Kn(e) ? v(e) : _();
|
|
2704
3021
|
}, [_, v]);
|
|
2705
3022
|
return {
|
|
2706
3023
|
ref: a,
|
|
@@ -2713,8 +3030,8 @@ function Nn() {
|
|
|
2713
3030
|
showItem: x
|
|
2714
3031
|
};
|
|
2715
3032
|
}
|
|
2716
|
-
var
|
|
2717
|
-
let { ref: r, groupProps: i, highlight: o } =
|
|
3033
|
+
var Yn = ({ children: e, style: t, ...n }) => {
|
|
3034
|
+
let { ref: r, groupProps: i, highlight: o } = Jn();
|
|
2718
3035
|
return /* @__PURE__ */ a("div", {
|
|
2719
3036
|
ref: r,
|
|
2720
3037
|
...n,
|
|
@@ -2725,8 +3042,8 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2725
3042
|
},
|
|
2726
3043
|
children: [o, e]
|
|
2727
3044
|
});
|
|
2728
|
-
},
|
|
2729
|
-
className:
|
|
3045
|
+
}, Xn = ({ size: e }) => /* @__PURE__ */ i("span", {
|
|
3046
|
+
className: Wn.separator,
|
|
2730
3047
|
"aria-hidden": "true",
|
|
2731
3048
|
children: /* @__PURE__ */ i("svg", {
|
|
2732
3049
|
viewBox: "0 0 24 24",
|
|
@@ -2739,23 +3056,23 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2739
3056
|
height: e,
|
|
2740
3057
|
children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
|
|
2741
3058
|
})
|
|
2742
|
-
}),
|
|
2743
|
-
let r = t === "button", o =
|
|
3059
|
+
}), Zn = ({ items: e, variant: t = "text", className: n }) => {
|
|
3060
|
+
let r = t === "button", o = Jn();
|
|
2744
3061
|
return /* @__PURE__ */ i("nav", {
|
|
2745
3062
|
"aria-label": "Breadcrumb",
|
|
2746
|
-
className: [
|
|
3063
|
+
className: [Wn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
|
|
2747
3064
|
children: /* @__PURE__ */ a("ol", {
|
|
2748
3065
|
ref: o.ref,
|
|
2749
3066
|
...r ? o.groupProps : {},
|
|
2750
|
-
className: [
|
|
3067
|
+
className: [Wn.list, r ? Wn["list--button"] : ""].filter(Boolean).join(" "),
|
|
2751
3068
|
children: [r && /* @__PURE__ */ i("li", {
|
|
2752
3069
|
"aria-hidden": "true",
|
|
2753
3070
|
style: { display: "contents" },
|
|
2754
3071
|
children: o.highlight
|
|
2755
3072
|
}), e.map((t, n) => {
|
|
2756
|
-
let o = n === e.length - 1, s = r ?
|
|
3073
|
+
let o = n === e.length - 1, s = r ? Wn.chip : o ? Wn.current : Wn.crumb;
|
|
2757
3074
|
return /* @__PURE__ */ a("li", {
|
|
2758
|
-
className:
|
|
3075
|
+
className: Wn.item,
|
|
2759
3076
|
children: [o || !t.href ? /* @__PURE__ */ i("span", {
|
|
2760
3077
|
className: s,
|
|
2761
3078
|
"data-hover-item": r ? "off" : void 0,
|
|
@@ -2766,26 +3083,26 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2766
3083
|
"data-hover-item": "",
|
|
2767
3084
|
className: s,
|
|
2768
3085
|
children: t.label
|
|
2769
|
-
}), !o && /* @__PURE__ */ i(
|
|
3086
|
+
}), !o && /* @__PURE__ */ i(Xn, { size: r ? 14 : 16 })]
|
|
2770
3087
|
}, n);
|
|
2771
3088
|
})]
|
|
2772
3089
|
})
|
|
2773
3090
|
});
|
|
2774
|
-
},
|
|
3091
|
+
}, Qn = {
|
|
2775
3092
|
meta: "_meta_g1mpv_2",
|
|
2776
3093
|
meta__icon: "_meta__icon_g1mpv_3",
|
|
2777
3094
|
meta__label: "_meta__label_g1mpv_4"
|
|
2778
|
-
},
|
|
2779
|
-
className: [
|
|
3095
|
+
}, $n = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
|
|
3096
|
+
className: [Qn.meta, n ?? ""].filter(Boolean).join(" "),
|
|
2780
3097
|
children: [/* @__PURE__ */ i("span", {
|
|
2781
|
-
className:
|
|
3098
|
+
className: Qn.meta__icon,
|
|
2782
3099
|
"aria-hidden": "true",
|
|
2783
3100
|
children: e
|
|
2784
3101
|
}), /* @__PURE__ */ i("span", {
|
|
2785
|
-
className:
|
|
3102
|
+
className: Qn.meta__label,
|
|
2786
3103
|
children: t
|
|
2787
3104
|
})]
|
|
2788
|
-
}),
|
|
3105
|
+
}), er = {
|
|
2789
3106
|
composer: "_composer_1dwtx_2",
|
|
2790
3107
|
"composer--typing": "_composer--typing_1dwtx_15",
|
|
2791
3108
|
input: "_input_1dwtx_22",
|
|
@@ -2799,7 +3116,7 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2799
3116
|
row: "_row_1dwtx_36",
|
|
2800
3117
|
icon: "_icon_1dwtx_37",
|
|
2801
3118
|
send: "_send_1dwtx_52"
|
|
2802
|
-
},
|
|
3119
|
+
}, tr = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
|
|
2803
3120
|
let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, y] = e.useState({
|
|
2804
3121
|
top: 0,
|
|
2805
3122
|
right: 0
|
|
@@ -2849,29 +3166,29 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2849
3166
|
c?.(x);
|
|
2850
3167
|
}, [x, c]), /* @__PURE__ */ a("div", {
|
|
2851
3168
|
className: [
|
|
2852
|
-
|
|
2853
|
-
|
|
3169
|
+
er.composer,
|
|
3170
|
+
er[`composer--${t}`],
|
|
2854
3171
|
f ?? ""
|
|
2855
3172
|
].filter(Boolean).join(" "),
|
|
2856
3173
|
children: [
|
|
2857
3174
|
t === "uploading" && /* @__PURE__ */ a("div", {
|
|
2858
|
-
className:
|
|
3175
|
+
className: er.upload,
|
|
2859
3176
|
children: [
|
|
2860
3177
|
/* @__PURE__ */ i(b, {
|
|
2861
3178
|
size: 16,
|
|
2862
3179
|
strokeWidth: M(16),
|
|
2863
|
-
className:
|
|
3180
|
+
className: er.upload__icon,
|
|
2864
3181
|
"aria-hidden": "true"
|
|
2865
3182
|
}),
|
|
2866
3183
|
/* @__PURE__ */ a("div", {
|
|
2867
|
-
className:
|
|
3184
|
+
className: er.upload__body,
|
|
2868
3185
|
children: [/* @__PURE__ */ i("span", {
|
|
2869
|
-
className:
|
|
3186
|
+
className: er.upload__name,
|
|
2870
3187
|
children: l
|
|
2871
3188
|
}), /* @__PURE__ */ i("div", {
|
|
2872
|
-
className:
|
|
3189
|
+
className: er.upload__track,
|
|
2873
3190
|
children: /* @__PURE__ */ i("div", {
|
|
2874
|
-
className:
|
|
3191
|
+
className: er.upload__fill,
|
|
2875
3192
|
style: { width: `${u}%` }
|
|
2876
3193
|
})
|
|
2877
3194
|
})]
|
|
@@ -2965,7 +3282,7 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2965
3282
|
style: { display: "none" }
|
|
2966
3283
|
}),
|
|
2967
3284
|
/* @__PURE__ */ a("div", {
|
|
2968
|
-
className:
|
|
3285
|
+
className: er.row,
|
|
2969
3286
|
children: [
|
|
2970
3287
|
/* @__PURE__ */ i(He, {
|
|
2971
3288
|
icon: O,
|
|
@@ -2978,7 +3295,7 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
2978
3295
|
/* @__PURE__ */ i("input", {
|
|
2979
3296
|
ref: C,
|
|
2980
3297
|
type: "text",
|
|
2981
|
-
className:
|
|
3298
|
+
className: er.input,
|
|
2982
3299
|
value: D,
|
|
2983
3300
|
placeholder: p ? "You can't reply to this conversation" : r,
|
|
2984
3301
|
disabled: p,
|
|
@@ -3064,7 +3381,7 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
3064
3381
|
})
|
|
3065
3382
|
]
|
|
3066
3383
|
});
|
|
3067
|
-
},
|
|
3384
|
+
}, nr = {
|
|
3068
3385
|
wrapper: "_wrapper_1nmcn_3",
|
|
3069
3386
|
"wrapper--disabled": "_wrapper--disabled_1nmcn_11",
|
|
3070
3387
|
input: "_input_1nmcn_14",
|
|
@@ -3076,16 +3393,16 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
3076
3393
|
text__description: "_text__description_1nmcn_73",
|
|
3077
3394
|
checkbox: "_checkbox_1nmcn_77",
|
|
3078
3395
|
"wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
|
|
3079
|
-
},
|
|
3396
|
+
}, rr = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
|
|
3080
3397
|
let d = e.useId(), f = s ?? d, p = e.useRef(null);
|
|
3081
3398
|
return e.useImperativeHandle(u, () => p.current), e.useEffect(() => {
|
|
3082
3399
|
p.current && (p.current.indeterminate = !!r);
|
|
3083
3400
|
}, [r]), /* @__PURE__ */ a("label", {
|
|
3084
3401
|
htmlFor: f,
|
|
3085
3402
|
className: [
|
|
3086
|
-
|
|
3087
|
-
n ?
|
|
3088
|
-
o ?
|
|
3403
|
+
nr.wrapper,
|
|
3404
|
+
n ? nr["wrapper--withDescription"] : "",
|
|
3405
|
+
o ? nr["wrapper--disabled"] : "",
|
|
3089
3406
|
c ?? ""
|
|
3090
3407
|
].filter(Boolean).join(" "),
|
|
3091
3408
|
children: [
|
|
@@ -3094,14 +3411,14 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
3094
3411
|
id: f,
|
|
3095
3412
|
type: "checkbox",
|
|
3096
3413
|
disabled: o,
|
|
3097
|
-
className:
|
|
3414
|
+
className: nr.input,
|
|
3098
3415
|
...l
|
|
3099
3416
|
}),
|
|
3100
3417
|
/* @__PURE__ */ a("span", {
|
|
3101
|
-
className:
|
|
3418
|
+
className: nr.box,
|
|
3102
3419
|
"aria-hidden": "true",
|
|
3103
3420
|
children: [/* @__PURE__ */ i("svg", {
|
|
3104
|
-
className:
|
|
3421
|
+
className: nr.check,
|
|
3105
3422
|
width: 12,
|
|
3106
3423
|
height: 12,
|
|
3107
3424
|
viewBox: "0 0 24 24",
|
|
@@ -3111,22 +3428,22 @@ var Pn = ({ children: e, style: t, ...n }) => {
|
|
|
3111
3428
|
strokeLinecap: "round",
|
|
3112
3429
|
strokeLinejoin: "round",
|
|
3113
3430
|
children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
|
|
3114
|
-
}), /* @__PURE__ */ i("span", { className:
|
|
3431
|
+
}), /* @__PURE__ */ i("span", { className: nr.dash })]
|
|
3115
3432
|
}),
|
|
3116
3433
|
(t || n) && /* @__PURE__ */ a("span", {
|
|
3117
|
-
className:
|
|
3434
|
+
className: nr.text,
|
|
3118
3435
|
children: [t && /* @__PURE__ */ i("span", {
|
|
3119
|
-
className:
|
|
3436
|
+
className: nr.text__label,
|
|
3120
3437
|
children: t
|
|
3121
3438
|
}), n && /* @__PURE__ */ i("span", {
|
|
3122
|
-
className:
|
|
3439
|
+
className: nr.text__description,
|
|
3123
3440
|
children: n
|
|
3124
3441
|
})]
|
|
3125
3442
|
})
|
|
3126
3443
|
]
|
|
3127
3444
|
});
|
|
3128
3445
|
});
|
|
3129
|
-
|
|
3446
|
+
rr.displayName = "Checkbox";
|
|
3130
3447
|
var q = {
|
|
3131
3448
|
item: "_item_1bf0e_2",
|
|
3132
3449
|
"item--hover": "_item--hover_1bf0e_12",
|
|
@@ -3142,7 +3459,7 @@ var q = {
|
|
|
3142
3459
|
item__preview: "_item__preview_1bf0e_31",
|
|
3143
3460
|
item__typing: "_item__typing_1bf0e_36",
|
|
3144
3461
|
item__badge: "_item__badge_1bf0e_37"
|
|
3145
|
-
},
|
|
3462
|
+
}, ir = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
|
|
3146
3463
|
role: "button",
|
|
3147
3464
|
"data-hover-item": "",
|
|
3148
3465
|
tabIndex: 0,
|
|
@@ -3196,12 +3513,12 @@ var q = {
|
|
|
3196
3513
|
})]
|
|
3197
3514
|
})]
|
|
3198
3515
|
})]
|
|
3199
|
-
}),
|
|
3516
|
+
}), ar = {
|
|
3200
3517
|
chart: "_chart_aiboa_2",
|
|
3201
3518
|
center: "_center_aiboa_26",
|
|
3202
3519
|
center__value: "_center__value_aiboa_35",
|
|
3203
3520
|
center__caption: "_center__caption_aiboa_36"
|
|
3204
|
-
},
|
|
3521
|
+
}, or = {
|
|
3205
3522
|
sm: {
|
|
3206
3523
|
h: 180,
|
|
3207
3524
|
inner: 50,
|
|
@@ -3222,26 +3539,26 @@ var q = {
|
|
|
3222
3539
|
inner: 98,
|
|
3223
3540
|
outer: 142
|
|
3224
3541
|
}
|
|
3225
|
-
},
|
|
3542
|
+
}, sr = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
|
|
3226
3543
|
let [l, u] = e.useState(null), [d, f] = e.useState(null), p = (e) => {
|
|
3227
3544
|
let t = e.currentTarget.getBoundingClientRect();
|
|
3228
3545
|
f({
|
|
3229
3546
|
x: e.clientX - t.left,
|
|
3230
3547
|
y: e.clientY - t.top
|
|
3231
3548
|
});
|
|
3232
|
-
}, m = e.useRef(null), h =
|
|
3549
|
+
}, m = e.useRef(null), h = It(m), g = [
|
|
3233
3550
|
1,
|
|
3234
3551
|
2,
|
|
3235
3552
|
3,
|
|
3236
3553
|
4,
|
|
3237
3554
|
5
|
|
3238
|
-
].map((e) => h(`--color-chart-${e}`) ??
|
|
3239
|
-
...
|
|
3240
|
-
h: s ??
|
|
3555
|
+
].map((e) => h(`--color-chart-${e}`) ?? Lt[e - 1]), _ = {
|
|
3556
|
+
...or[n],
|
|
3557
|
+
h: s ?? or[n].h
|
|
3241
3558
|
}, v = (_.outer - _.inner) / 2 - 7;
|
|
3242
3559
|
return /* @__PURE__ */ a("div", {
|
|
3243
3560
|
ref: m,
|
|
3244
|
-
className: [
|
|
3561
|
+
className: [ar.chart, c ?? ""].filter(Boolean).join(" "),
|
|
3245
3562
|
style: { height: _.h },
|
|
3246
3563
|
onMouseMove: p,
|
|
3247
3564
|
children: [/* @__PURE__ */ i(xe, {
|
|
@@ -3266,29 +3583,29 @@ var q = {
|
|
|
3266
3583
|
fillOpacity: l !== null && t !== l ? .45 : 1
|
|
3267
3584
|
}, t))
|
|
3268
3585
|
}), /* @__PURE__ */ i(Se, {
|
|
3269
|
-
content: /* @__PURE__ */ i(
|
|
3586
|
+
content: /* @__PURE__ */ i(zt, {}),
|
|
3270
3587
|
wrapperStyle: { zIndex: 50 },
|
|
3271
3588
|
position: d ?? void 0
|
|
3272
3589
|
})] })
|
|
3273
3590
|
}), (r || o) && /* @__PURE__ */ a("div", {
|
|
3274
|
-
className:
|
|
3591
|
+
className: ar.center,
|
|
3275
3592
|
children: [r && /* @__PURE__ */ i("span", {
|
|
3276
|
-
className:
|
|
3593
|
+
className: ar.center__value,
|
|
3277
3594
|
children: r
|
|
3278
3595
|
}), o && /* @__PURE__ */ i("span", {
|
|
3279
|
-
className:
|
|
3596
|
+
className: ar.center__caption,
|
|
3280
3597
|
children: o
|
|
3281
3598
|
})]
|
|
3282
3599
|
})]
|
|
3283
3600
|
});
|
|
3284
|
-
},
|
|
3601
|
+
}, cr = {
|
|
3285
3602
|
empty: "_empty_1sxwx_2",
|
|
3286
3603
|
empty__chip: "_empty__chip_1sxwx_12",
|
|
3287
3604
|
"empty__chip--error": "_empty__chip--error_1sxwx_22",
|
|
3288
3605
|
empty__title: "_empty__title_1sxwx_23",
|
|
3289
3606
|
empty__desc: "_empty__desc_1sxwx_31",
|
|
3290
3607
|
empty__action: "_empty__action_1sxwx_39"
|
|
3291
|
-
},
|
|
3608
|
+
}, lr = {
|
|
3292
3609
|
"no-data": {
|
|
3293
3610
|
icon: /* @__PURE__ */ i(C, {
|
|
3294
3611
|
size: 18,
|
|
@@ -3313,34 +3630,34 @@ var q = {
|
|
|
3313
3630
|
title: "Couldn't load data",
|
|
3314
3631
|
description: "Something went wrong while fetching records."
|
|
3315
3632
|
}
|
|
3316
|
-
},
|
|
3317
|
-
let l =
|
|
3633
|
+
}, ur = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
|
|
3634
|
+
let l = lr[e];
|
|
3318
3635
|
return /* @__PURE__ */ a("div", {
|
|
3319
|
-
className: [
|
|
3636
|
+
className: [cr.empty, c ?? ""].filter(Boolean).join(" "),
|
|
3320
3637
|
role: "status",
|
|
3321
3638
|
children: [
|
|
3322
3639
|
/* @__PURE__ */ i("span", {
|
|
3323
|
-
className: [
|
|
3640
|
+
className: [cr.empty__chip, cr[`empty__chip--${e}`]].join(" "),
|
|
3324
3641
|
"aria-hidden": "true",
|
|
3325
3642
|
children: s ?? l.icon
|
|
3326
3643
|
}),
|
|
3327
3644
|
/* @__PURE__ */ i("p", {
|
|
3328
|
-
className:
|
|
3645
|
+
className: cr.empty__title,
|
|
3329
3646
|
children: t ?? l.title
|
|
3330
3647
|
}),
|
|
3331
3648
|
/* @__PURE__ */ i("p", {
|
|
3332
|
-
className:
|
|
3649
|
+
className: cr.empty__desc,
|
|
3333
3650
|
children: n ?? l.description
|
|
3334
3651
|
}),
|
|
3335
3652
|
r && /* @__PURE__ */ i("button", {
|
|
3336
3653
|
type: "button",
|
|
3337
|
-
className:
|
|
3654
|
+
className: cr.empty__action,
|
|
3338
3655
|
onClick: o,
|
|
3339
3656
|
children: r
|
|
3340
3657
|
})
|
|
3341
3658
|
]
|
|
3342
3659
|
});
|
|
3343
|
-
},
|
|
3660
|
+
}, dr = {
|
|
3344
3661
|
chip: "_chip_1qnyq_2",
|
|
3345
3662
|
chip__lead: "_chip__lead_1qnyq_20",
|
|
3346
3663
|
chip__trail: "_chip__trail_1qnyq_20",
|
|
@@ -3348,50 +3665,50 @@ var q = {
|
|
|
3348
3665
|
chip__remove: "_chip__remove_1qnyq_29",
|
|
3349
3666
|
"chip--add": "_chip--add_1qnyq_38",
|
|
3350
3667
|
"chip--leaving": "_chip--leaving_1qnyq_45"
|
|
3351
|
-
},
|
|
3668
|
+
}, fr = 160, pr = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, mr = ({ type: t = "default", children: n, onClick: r, onRemove: o, className: s }) => {
|
|
3352
3669
|
let [c, l] = e.useState(!1), u = e.useRef(void 0);
|
|
3353
3670
|
e.useEffect(() => () => window.clearTimeout(u.current), []);
|
|
3354
3671
|
let f = () => {
|
|
3355
3672
|
if (!c) {
|
|
3356
|
-
if (
|
|
3673
|
+
if (pr()) {
|
|
3357
3674
|
o?.();
|
|
3358
3675
|
return;
|
|
3359
3676
|
}
|
|
3360
3677
|
l(!0), u.current = window.setTimeout(() => {
|
|
3361
3678
|
o?.(), l(!1);
|
|
3362
|
-
},
|
|
3679
|
+
}, fr);
|
|
3363
3680
|
}
|
|
3364
3681
|
};
|
|
3365
3682
|
return /* @__PURE__ */ a("button", {
|
|
3366
3683
|
type: "button",
|
|
3367
3684
|
onClick: r,
|
|
3368
3685
|
className: [
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
c ?
|
|
3686
|
+
dr.chip,
|
|
3687
|
+
dr[`chip--${t}`],
|
|
3688
|
+
c ? dr["chip--leaving"] : "",
|
|
3372
3689
|
s ?? ""
|
|
3373
3690
|
].filter(Boolean).join(" "),
|
|
3374
3691
|
children: [
|
|
3375
3692
|
t === "add" && /* @__PURE__ */ i(k, {
|
|
3376
3693
|
size: 14,
|
|
3377
3694
|
strokeWidth: M(14),
|
|
3378
|
-
className:
|
|
3695
|
+
className: dr.chip__lead,
|
|
3379
3696
|
"aria-hidden": "true"
|
|
3380
3697
|
}),
|
|
3381
3698
|
/* @__PURE__ */ i("span", {
|
|
3382
|
-
className:
|
|
3699
|
+
className: dr.chip__label,
|
|
3383
3700
|
children: n
|
|
3384
3701
|
}),
|
|
3385
3702
|
t === "default" && /* @__PURE__ */ i(d, {
|
|
3386
3703
|
size: 14,
|
|
3387
3704
|
strokeWidth: M(14),
|
|
3388
|
-
className:
|
|
3705
|
+
className: dr.chip__trail,
|
|
3389
3706
|
"aria-hidden": "true"
|
|
3390
3707
|
}),
|
|
3391
3708
|
t === "active" && /* @__PURE__ */ i("span", {
|
|
3392
3709
|
role: "button",
|
|
3393
3710
|
"aria-label": "Remove filter",
|
|
3394
|
-
className:
|
|
3711
|
+
className: dr.chip__remove,
|
|
3395
3712
|
onClick: (e) => {
|
|
3396
3713
|
e.stopPropagation(), f();
|
|
3397
3714
|
},
|
|
@@ -3403,7 +3720,7 @@ var q = {
|
|
|
3403
3720
|
})
|
|
3404
3721
|
]
|
|
3405
3722
|
});
|
|
3406
|
-
},
|
|
3723
|
+
}, hr = {
|
|
3407
3724
|
field: "_field_1nyia_10",
|
|
3408
3725
|
field__label: "_field__label_1nyia_18",
|
|
3409
3726
|
field__description: "_field__description_1nyia_26",
|
|
@@ -3417,80 +3734,80 @@ var q = {
|
|
|
3417
3734
|
input__control: "_input__control_1nyia_81",
|
|
3418
3735
|
input__icon: "_input__icon_1nyia_110",
|
|
3419
3736
|
"input--unstyled": "_input--unstyled_1nyia_120"
|
|
3420
|
-
},
|
|
3421
|
-
size:
|
|
3422
|
-
strokeWidth: M(
|
|
3423
|
-
}) : t,
|
|
3737
|
+
}, gr = 16, _r = (t) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
3738
|
+
size: gr,
|
|
3739
|
+
strokeWidth: M(gr)
|
|
3740
|
+
}) : t, vr = e.forwardRef(({ label: t, description: n, error: r, size: o = "md", unstyled: s, leadingIcon: c, trailingIcon: l, disabled: u, id: d, className: f, ...p }, m) => {
|
|
3424
3741
|
let h = e.useId(), g = d ?? h, _ = !!r;
|
|
3425
3742
|
return /* @__PURE__ */ a("div", {
|
|
3426
|
-
className: [
|
|
3743
|
+
className: [hr.field, f ?? ""].filter(Boolean).join(" "),
|
|
3427
3744
|
children: [
|
|
3428
3745
|
t && /* @__PURE__ */ i("label", {
|
|
3429
3746
|
htmlFor: g,
|
|
3430
|
-
className:
|
|
3747
|
+
className: hr.field__label,
|
|
3431
3748
|
children: t
|
|
3432
3749
|
}),
|
|
3433
3750
|
/* @__PURE__ */ a("div", {
|
|
3434
3751
|
className: [
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
_ ?
|
|
3438
|
-
u ?
|
|
3752
|
+
hr.input,
|
|
3753
|
+
hr[`input--${o}`],
|
|
3754
|
+
_ ? hr["input--error"] : "",
|
|
3755
|
+
u ? hr["input--disabled"] : ""
|
|
3439
3756
|
].filter(Boolean).join(" "),
|
|
3440
3757
|
children: [
|
|
3441
3758
|
c && /* @__PURE__ */ i("span", {
|
|
3442
|
-
className:
|
|
3759
|
+
className: hr.input__icon,
|
|
3443
3760
|
"aria-hidden": "true",
|
|
3444
|
-
children:
|
|
3761
|
+
children: _r(c)
|
|
3445
3762
|
}),
|
|
3446
3763
|
/* @__PURE__ */ i("input", {
|
|
3447
3764
|
ref: m,
|
|
3448
3765
|
id: g,
|
|
3449
|
-
className:
|
|
3766
|
+
className: hr.input__control,
|
|
3450
3767
|
disabled: u,
|
|
3451
3768
|
"aria-invalid": _ || void 0,
|
|
3452
3769
|
"aria-describedby": n || r ? `${g}-desc` : void 0,
|
|
3453
3770
|
...p
|
|
3454
3771
|
}),
|
|
3455
3772
|
l && /* @__PURE__ */ i("span", {
|
|
3456
|
-
className:
|
|
3773
|
+
className: hr.input__icon,
|
|
3457
3774
|
"aria-hidden": "true",
|
|
3458
|
-
children:
|
|
3775
|
+
children: _r(l)
|
|
3459
3776
|
})
|
|
3460
3777
|
]
|
|
3461
3778
|
}),
|
|
3462
3779
|
(n || r) && /* @__PURE__ */ i("span", {
|
|
3463
3780
|
id: `${g}-desc`,
|
|
3464
|
-
className: _ ?
|
|
3781
|
+
className: _ ? hr.field__error : hr.field__description,
|
|
3465
3782
|
children: r || n
|
|
3466
3783
|
})
|
|
3467
3784
|
]
|
|
3468
3785
|
});
|
|
3469
3786
|
});
|
|
3470
|
-
|
|
3471
|
-
var
|
|
3787
|
+
vr.displayName = "Input";
|
|
3788
|
+
var yr = { chart: "_chart_18fgd_2" }, br = {
|
|
3472
3789
|
sm: 180,
|
|
3473
3790
|
md: 240,
|
|
3474
3791
|
lg: 320,
|
|
3475
3792
|
xl: 420
|
|
3476
|
-
},
|
|
3793
|
+
}, xr = /* @__PURE__ */ new Set([
|
|
3477
3794
|
"dots",
|
|
3478
3795
|
"custom-dots",
|
|
3479
3796
|
"dots-colors",
|
|
3480
3797
|
"label",
|
|
3481
3798
|
"custom-label"
|
|
3482
|
-
]),
|
|
3483
|
-
let f = e.useRef(null), p =
|
|
3799
|
+
]), Sr = ({ data: t, series: n, xKey: r = "label", variant: o = "default", labelKey: s, size: c = "md", height: l, showLegend: u, className: d }) => {
|
|
3800
|
+
let f = e.useRef(null), p = It(f), m = [
|
|
3484
3801
|
1,
|
|
3485
3802
|
2,
|
|
3486
3803
|
3,
|
|
3487
3804
|
4,
|
|
3488
3805
|
5
|
|
3489
|
-
].map((e) => p(`--color-chart-${e}`) ??
|
|
3806
|
+
].map((e) => p(`--color-chart-${e}`) ?? Lt[e - 1]), h = [
|
|
3490
3807
|
m[1],
|
|
3491
3808
|
m[0],
|
|
3492
3809
|
...m.slice(2)
|
|
3493
|
-
], g = p("--color-border-subtle") ?? "#e7e5e1", _ = p("--color-fg-muted") ?? "#78716a", v = p("--color-bg-canvas") ?? "#fafaf9", y = p("--color-fg-default") ?? "#141414", b = o === "linear" ? "linear" : o === "step" ? "step" : "monotone", x =
|
|
3810
|
+
], g = p("--color-border-subtle") ?? "#e7e5e1", _ = p("--color-fg-muted") ?? "#78716a", v = p("--color-bg-canvas") ?? "#fafaf9", y = p("--color-fg-default") ?? "#141414", b = o === "linear" ? "linear" : o === "step" ? "step" : "monotone", x = xr.has(o), S = (e) => (t) => {
|
|
3494
3811
|
let { cx: n, cy: r } = t;
|
|
3495
3812
|
return /* @__PURE__ */ a("g", {
|
|
3496
3813
|
stroke: e,
|
|
@@ -3543,10 +3860,10 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3543
3860
|
};
|
|
3544
3861
|
return /* @__PURE__ */ i("div", {
|
|
3545
3862
|
ref: f,
|
|
3546
|
-
className: [
|
|
3863
|
+
className: [yr.chart, d ?? ""].filter(Boolean).join(" "),
|
|
3547
3864
|
children: /* @__PURE__ */ i(xe, {
|
|
3548
3865
|
width: "100%",
|
|
3549
|
-
height: l ??
|
|
3866
|
+
height: l ?? br[c],
|
|
3550
3867
|
children: /* @__PURE__ */ a(me, {
|
|
3551
3868
|
data: t,
|
|
3552
3869
|
margin: {
|
|
@@ -3574,7 +3891,7 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3574
3891
|
stroke: p("--color-border-default") ?? "#dbdad7",
|
|
3575
3892
|
strokeWidth: 1
|
|
3576
3893
|
},
|
|
3577
|
-
content: /* @__PURE__ */ i(
|
|
3894
|
+
content: /* @__PURE__ */ i(zt, {}),
|
|
3578
3895
|
wrapperStyle: { zIndex: 50 }
|
|
3579
3896
|
}),
|
|
3580
3897
|
u && /* @__PURE__ */ i(fe, { wrapperStyle: {
|
|
@@ -3607,24 +3924,24 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3607
3924
|
})
|
|
3608
3925
|
})
|
|
3609
3926
|
});
|
|
3610
|
-
},
|
|
3611
|
-
menu: "
|
|
3612
|
-
divider: "
|
|
3613
|
-
},
|
|
3614
|
-
let i =
|
|
3927
|
+
}, Cr = {
|
|
3928
|
+
menu: "_menu_1cx61_2",
|
|
3929
|
+
divider: "_divider_1cx61_26"
|
|
3930
|
+
}, wr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
|
|
3931
|
+
let i = Jn();
|
|
3615
3932
|
return /* @__PURE__ */ a("div", {
|
|
3616
3933
|
ref: i.ref,
|
|
3617
3934
|
...i.groupProps,
|
|
3618
3935
|
role: "menu",
|
|
3619
3936
|
"aria-label": r["aria-label"],
|
|
3620
3937
|
style: { minWidth: t },
|
|
3621
|
-
className: [
|
|
3938
|
+
className: [Cr.menu, n ?? ""].filter(Boolean).join(" "),
|
|
3622
3939
|
children: [i.highlight, e]
|
|
3623
3940
|
});
|
|
3624
|
-
},
|
|
3625
|
-
className:
|
|
3941
|
+
}, Tr = () => /* @__PURE__ */ i("div", {
|
|
3942
|
+
className: Cr.divider,
|
|
3626
3943
|
role: "separator"
|
|
3627
|
-
}),
|
|
3944
|
+
}), Er = {
|
|
3628
3945
|
item: "_item_1ezjp_2",
|
|
3629
3946
|
item__icon: "_item__icon_1ezjp_27",
|
|
3630
3947
|
item__label: "_item__label_1ezjp_28",
|
|
@@ -3633,7 +3950,7 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3633
3950
|
"item--checked": "_item--checked_1ezjp_38",
|
|
3634
3951
|
"item--disabled": "_item--disabled_1ezjp_39",
|
|
3635
3952
|
"item--destructive": "_item--destructive_1ezjp_40"
|
|
3636
|
-
},
|
|
3953
|
+
}, Dr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
|
|
3637
3954
|
let c = e === "disabled";
|
|
3638
3955
|
return /* @__PURE__ */ a("div", {
|
|
3639
3956
|
role: "menuitem",
|
|
@@ -3646,28 +3963,28 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3646
3963
|
c || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o?.());
|
|
3647
3964
|
},
|
|
3648
3965
|
className: [
|
|
3649
|
-
|
|
3650
|
-
|
|
3966
|
+
Er.item,
|
|
3967
|
+
Er[`item--${e}`],
|
|
3651
3968
|
s ?? ""
|
|
3652
3969
|
].filter(Boolean).join(" "),
|
|
3653
3970
|
children: [
|
|
3654
3971
|
t && /* @__PURE__ */ i("span", {
|
|
3655
|
-
className:
|
|
3972
|
+
className: Er.item__icon,
|
|
3656
3973
|
"aria-hidden": "true",
|
|
3657
3974
|
children: t
|
|
3658
3975
|
}),
|
|
3659
3976
|
/* @__PURE__ */ i("span", {
|
|
3660
|
-
className:
|
|
3977
|
+
className: Er.item__label,
|
|
3661
3978
|
children: r
|
|
3662
3979
|
}),
|
|
3663
3980
|
n && /* @__PURE__ */ i("kbd", {
|
|
3664
|
-
className:
|
|
3981
|
+
className: Er.item__shortcut,
|
|
3665
3982
|
children: n
|
|
3666
3983
|
}),
|
|
3667
3984
|
e === "checked" && /* @__PURE__ */ i(l, {
|
|
3668
3985
|
size: 16,
|
|
3669
3986
|
strokeWidth: M(16),
|
|
3670
|
-
className:
|
|
3987
|
+
className: Er.item__check,
|
|
3671
3988
|
"aria-hidden": "true"
|
|
3672
3989
|
})
|
|
3673
3990
|
]
|
|
@@ -3696,7 +4013,7 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3696
4013
|
foot__receipt: "_foot__receipt_1q1m5_32",
|
|
3697
4014
|
system: "_system_1q1m5_34",
|
|
3698
4015
|
system__pill: "_system__pill_1q1m5_35"
|
|
3699
|
-
},
|
|
4016
|
+
}, Or = ({ type: e = "received", content: t = "text", avatar: n, authorName: o, timestamp: s, children: c, image: l, fileName: d, fileSize: f, reactions: p, read: m, className: h }) => {
|
|
3700
4017
|
if (e === "system") return /* @__PURE__ */ i("div", {
|
|
3701
4018
|
className: [J.system, h ?? ""].filter(Boolean).join(" "),
|
|
3702
4019
|
children: /* @__PURE__ */ i("span", {
|
|
@@ -3782,19 +4099,19 @@ var ir = { chart: "_chart_18fgd_2" }, ar = {
|
|
|
3782
4099
|
]
|
|
3783
4100
|
})]
|
|
3784
4101
|
});
|
|
3785
|
-
},
|
|
4102
|
+
}, kr = {
|
|
3786
4103
|
pagination: "_pagination_e1j7r_2",
|
|
3787
4104
|
page: "_page_e1j7r_9",
|
|
3788
4105
|
arrow: "_arrow_e1j7r_9",
|
|
3789
4106
|
"page--active": "_page--active_e1j7r_26",
|
|
3790
4107
|
ellipsis: "_ellipsis_e1j7r_40"
|
|
3791
|
-
},
|
|
3792
|
-
function
|
|
4108
|
+
}, Ar = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
4109
|
+
function jr(e, t, n) {
|
|
3793
4110
|
let r = n * 2 + 5;
|
|
3794
|
-
if (e <= r) return
|
|
4111
|
+
if (e <= r) return Ar(1, e);
|
|
3795
4112
|
let i = r - 2, a = n * 2 + 1;
|
|
3796
4113
|
if (t <= i) return [
|
|
3797
|
-
...
|
|
4114
|
+
...Ar(1, i),
|
|
3798
4115
|
"end-ellipsis",
|
|
3799
4116
|
e
|
|
3800
4117
|
];
|
|
@@ -3802,19 +4119,19 @@ function gr(e, t, n) {
|
|
|
3802
4119
|
return s <= e - 3 ? [
|
|
3803
4120
|
1,
|
|
3804
4121
|
"start-ellipsis",
|
|
3805
|
-
...
|
|
4122
|
+
...Ar(o, s),
|
|
3806
4123
|
"end-ellipsis",
|
|
3807
4124
|
e
|
|
3808
4125
|
] : [
|
|
3809
4126
|
1,
|
|
3810
4127
|
"start-ellipsis",
|
|
3811
|
-
...
|
|
4128
|
+
...Ar(e - i + 1, e)
|
|
3812
4129
|
];
|
|
3813
4130
|
}
|
|
3814
|
-
var
|
|
4131
|
+
var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
|
|
3815
4132
|
let c = e.useRef(null);
|
|
3816
4133
|
if (t < 1) return null;
|
|
3817
|
-
let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d =
|
|
4134
|
+
let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = jr(t, l, u), m = c.current;
|
|
3818
4135
|
if (m && m.total === t && m.siblings === u) {
|
|
3819
4136
|
let e = m.tokens, n = e.includes(l), r = l === 1 && e[1] === "start-ellipsis" || l === t && e[e.length - 2] === "end-ellipsis";
|
|
3820
4137
|
n && !r && (d = e);
|
|
@@ -3824,12 +4141,12 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3824
4141
|
siblings: u,
|
|
3825
4142
|
tokens: d
|
|
3826
4143
|
}, /* @__PURE__ */ a("nav", {
|
|
3827
|
-
className: [
|
|
4144
|
+
className: [kr.pagination, s ?? ""].filter(Boolean).join(" "),
|
|
3828
4145
|
"aria-label": "Pagination",
|
|
3829
4146
|
children: [
|
|
3830
4147
|
/* @__PURE__ */ i("button", {
|
|
3831
4148
|
type: "button",
|
|
3832
|
-
className:
|
|
4149
|
+
className: kr.arrow,
|
|
3833
4150
|
disabled: l <= 1,
|
|
3834
4151
|
onClick: () => r(l - 1),
|
|
3835
4152
|
"aria-label": "Previous page",
|
|
@@ -3840,19 +4157,19 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3840
4157
|
}),
|
|
3841
4158
|
d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
|
|
3842
4159
|
type: "button",
|
|
3843
|
-
className: [
|
|
4160
|
+
className: [kr.page, e === l ? kr["page--active"] : ""].filter(Boolean).join(" "),
|
|
3844
4161
|
"aria-current": e === l ? "page" : void 0,
|
|
3845
4162
|
"aria-label": `Page ${e}`,
|
|
3846
4163
|
onClick: () => e !== l && r(e),
|
|
3847
4164
|
children: e
|
|
3848
4165
|
}, e) : /* @__PURE__ */ i("span", {
|
|
3849
|
-
className:
|
|
4166
|
+
className: kr.ellipsis,
|
|
3850
4167
|
"aria-hidden": "true",
|
|
3851
4168
|
children: "…"
|
|
3852
4169
|
}, e)),
|
|
3853
4170
|
/* @__PURE__ */ i("button", {
|
|
3854
4171
|
type: "button",
|
|
3855
|
-
className:
|
|
4172
|
+
className: kr.arrow,
|
|
3856
4173
|
disabled: l >= t,
|
|
3857
4174
|
onClick: () => r(l + 1),
|
|
3858
4175
|
"aria-label": "Next page",
|
|
@@ -3863,14 +4180,14 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3863
4180
|
})
|
|
3864
4181
|
]
|
|
3865
4182
|
});
|
|
3866
|
-
},
|
|
4183
|
+
}, Nr = {
|
|
3867
4184
|
track: "_track_1br5v_2",
|
|
3868
4185
|
segment: "_segment_1br5v_12",
|
|
3869
4186
|
"segment--active": "_segment--active_1br5v_38",
|
|
3870
4187
|
thumb: "_thumb_1br5v_44",
|
|
3871
4188
|
"thumb--animated": "_thumb--animated_1br5v_62",
|
|
3872
4189
|
"track--fullWidth": "_track--fullWidth_1br5v_68"
|
|
3873
|
-
},
|
|
4190
|
+
}, Pr = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
|
|
3874
4191
|
let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
|
|
3875
4192
|
l || d(e), o?.(e);
|
|
3876
4193
|
}, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
|
|
@@ -3891,13 +4208,13 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3891
4208
|
ref: m,
|
|
3892
4209
|
role: "tablist",
|
|
3893
4210
|
className: [
|
|
3894
|
-
|
|
3895
|
-
s ?
|
|
4211
|
+
Nr.track,
|
|
4212
|
+
s ? Nr["track--fullWidth"] : "",
|
|
3896
4213
|
c ?? ""
|
|
3897
4214
|
].filter(Boolean).join(" "),
|
|
3898
4215
|
children: [g && /* @__PURE__ */ i("span", {
|
|
3899
4216
|
"aria-hidden": "true",
|
|
3900
|
-
className: [
|
|
4217
|
+
className: [Nr.thumb, v ? Nr["thumb--animated"] : ""].filter(Boolean).join(" "),
|
|
3901
4218
|
style: {
|
|
3902
4219
|
transform: `translateX(${g.left}px)`,
|
|
3903
4220
|
width: g.width
|
|
@@ -3911,7 +4228,7 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3911
4228
|
role: "tab",
|
|
3912
4229
|
type: "button",
|
|
3913
4230
|
"aria-selected": t,
|
|
3914
|
-
className: [
|
|
4231
|
+
className: [Nr.segment, t ? Nr["segment--active"] : ""].filter(Boolean).join(" "),
|
|
3915
4232
|
onClick: () => p(e.value),
|
|
3916
4233
|
children: e.label
|
|
3917
4234
|
}, e.value);
|
|
@@ -3947,7 +4264,7 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
3947
4264
|
option__check: "_option__check_1b512_179",
|
|
3948
4265
|
optionHighlight: "_optionHighlight_1b512_151",
|
|
3949
4266
|
"optionHighlight--animated": "_optionHighlight--animated_1b512_201"
|
|
3950
|
-
},
|
|
4267
|
+
}, Fr = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
|
|
3951
4268
|
let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, E] = e.useState(!1), [D, O] = e.useState(0), k = e.useRef(null), A = e.useRef(null), j = e.useRef(null), ee = e.useRef({}), [te, ne] = e.useState(null), [re, ie] = e.useState(!1);
|
|
3952
4269
|
e.useLayoutEffect(() => {
|
|
3953
4270
|
let e = ee.current[D];
|
|
@@ -4153,27 +4470,27 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4153
4470
|
})
|
|
4154
4471
|
]
|
|
4155
4472
|
});
|
|
4156
|
-
},
|
|
4473
|
+
}, Ir = {
|
|
4157
4474
|
sidebar: "_sidebar_alxv4_4",
|
|
4158
4475
|
"sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
|
|
4159
|
-
},
|
|
4160
|
-
let r =
|
|
4476
|
+
}, Lr = ({ collapsed: e = !1, children: t, className: n }) => {
|
|
4477
|
+
let r = Jn();
|
|
4161
4478
|
return /* @__PURE__ */ a("nav", {
|
|
4162
4479
|
ref: r.ref,
|
|
4163
4480
|
...r.groupProps,
|
|
4164
4481
|
className: [
|
|
4165
|
-
|
|
4166
|
-
e ?
|
|
4482
|
+
Ir.sidebar,
|
|
4483
|
+
e ? Ir["sidebar--collapsed"] : "",
|
|
4167
4484
|
n ?? ""
|
|
4168
4485
|
].filter(Boolean).join(" "),
|
|
4169
4486
|
"data-collapsed": e,
|
|
4170
4487
|
children: [r.highlight, t]
|
|
4171
4488
|
});
|
|
4172
|
-
},
|
|
4173
|
-
className:
|
|
4489
|
+
}, Rr = { divider: "_divider_1oof5_1" }, zr = () => /* @__PURE__ */ i("div", {
|
|
4490
|
+
className: Rr.divider,
|
|
4174
4491
|
role: "separator"
|
|
4175
|
-
}),
|
|
4176
|
-
className:
|
|
4492
|
+
}), Br = { groupLabel: "_groupLabel_62q1j_2" }, Vr = ({ children: e }) => /* @__PURE__ */ i("div", {
|
|
4493
|
+
className: Br.groupLabel,
|
|
4177
4494
|
children: e
|
|
4178
4495
|
}), X = {
|
|
4179
4496
|
header: "_header_6bhip_2",
|
|
@@ -4189,7 +4506,7 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4189
4506
|
"header__text--collapsed": "_header__text--collapsed_6bhip_70",
|
|
4190
4507
|
header__title: "_header__title_6bhip_74",
|
|
4191
4508
|
header__toggle: "_header__toggle_6bhip_76"
|
|
4192
|
-
},
|
|
4509
|
+
}, Hr = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = D }) => /* @__PURE__ */ a("div", {
|
|
4193
4510
|
className: [
|
|
4194
4511
|
X.header,
|
|
4195
4512
|
e === "workspace" ? X["header--workspace"] : "",
|
|
@@ -4253,19 +4570,19 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4253
4570
|
})
|
|
4254
4571
|
]
|
|
4255
4572
|
}), Z = {
|
|
4256
|
-
item: "
|
|
4257
|
-
"item--disabled": "_item--
|
|
4258
|
-
"item--active": "_item--
|
|
4259
|
-
"item--active-flat": "_item--active-
|
|
4260
|
-
item__icon: "
|
|
4261
|
-
item__bar: "
|
|
4262
|
-
item__chevron: "
|
|
4263
|
-
item__badge: "
|
|
4264
|
-
"item--collapsed": "_item--
|
|
4265
|
-
item__label: "
|
|
4266
|
-
"item__label--collapsed": "_item__label--
|
|
4267
|
-
"item__chevron--expanded": "_item__chevron--
|
|
4268
|
-
},
|
|
4573
|
+
item: "_item_1arxb_5",
|
|
4574
|
+
"item--disabled": "_item--disabled_1arxb_37",
|
|
4575
|
+
"item--active": "_item--active_1arxb_37",
|
|
4576
|
+
"item--active-flat": "_item--active-flat_1arxb_37",
|
|
4577
|
+
item__icon: "_item__icon_1arxb_38",
|
|
4578
|
+
item__bar: "_item__bar_1arxb_49",
|
|
4579
|
+
item__chevron: "_item__chevron_1arxb_82",
|
|
4580
|
+
item__badge: "_item__badge_1arxb_84",
|
|
4581
|
+
"item--collapsed": "_item--collapsed_1arxb_103",
|
|
4582
|
+
item__label: "_item__label_1arxb_142",
|
|
4583
|
+
"item__label--collapsed": "_item__label--collapsed_1arxb_151",
|
|
4584
|
+
"item__chevron--expanded": "_item__chevron--expanded_1arxb_174"
|
|
4585
|
+
}, Ur = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, expanded: d, onClick: f, href: m, nativeTooltip: h = !0 }) => {
|
|
4269
4586
|
let g = n && o, _ = n && !o, v = [
|
|
4270
4587
|
Z.item,
|
|
4271
4588
|
g ? Z["item--active"] : "",
|
|
@@ -4320,22 +4637,22 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4320
4637
|
...b,
|
|
4321
4638
|
children: y
|
|
4322
4639
|
});
|
|
4323
|
-
},
|
|
4324
|
-
promo: "
|
|
4325
|
-
promo__head: "
|
|
4326
|
-
promo__icon: "
|
|
4327
|
-
promo__title: "
|
|
4328
|
-
promo__dismiss: "
|
|
4329
|
-
promo__desc: "
|
|
4330
|
-
promo__cta: "
|
|
4331
|
-
},
|
|
4332
|
-
className: [
|
|
4640
|
+
}, Wr = {
|
|
4641
|
+
promo: "_promo_1524z_4",
|
|
4642
|
+
promo__head: "_promo__head_1524z_20",
|
|
4643
|
+
promo__icon: "_promo__icon_1524z_21",
|
|
4644
|
+
promo__title: "_promo__title_1524z_22",
|
|
4645
|
+
promo__dismiss: "_promo__dismiss_1524z_23",
|
|
4646
|
+
promo__desc: "_promo__desc_1524z_30",
|
|
4647
|
+
promo__cta: "_promo__cta_1524z_33"
|
|
4648
|
+
}, Gr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
|
|
4649
|
+
className: [Wr.promo, Wr[`promo--${e}`]].join(" "),
|
|
4333
4650
|
children: [
|
|
4334
4651
|
/* @__PURE__ */ a("div", {
|
|
4335
|
-
className:
|
|
4652
|
+
className: Wr.promo__head,
|
|
4336
4653
|
children: [
|
|
4337
4654
|
/* @__PURE__ */ i("span", {
|
|
4338
|
-
className:
|
|
4655
|
+
className: Wr.promo__icon,
|
|
4339
4656
|
"aria-hidden": "true",
|
|
4340
4657
|
children: /* @__PURE__ */ i(c, {
|
|
4341
4658
|
size: 16,
|
|
@@ -4343,12 +4660,12 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4343
4660
|
})
|
|
4344
4661
|
}),
|
|
4345
4662
|
/* @__PURE__ */ i("span", {
|
|
4346
|
-
className:
|
|
4663
|
+
className: Wr.promo__title,
|
|
4347
4664
|
children: t
|
|
4348
4665
|
}),
|
|
4349
4666
|
s && /* @__PURE__ */ i("button", {
|
|
4350
4667
|
type: "button",
|
|
4351
|
-
className:
|
|
4668
|
+
className: Wr.promo__dismiss,
|
|
4352
4669
|
onClick: s,
|
|
4353
4670
|
"aria-label": "Dismiss",
|
|
4354
4671
|
children: /* @__PURE__ */ i(se, {
|
|
@@ -4359,36 +4676,36 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4359
4676
|
]
|
|
4360
4677
|
}),
|
|
4361
4678
|
n && /* @__PURE__ */ i("p", {
|
|
4362
|
-
className:
|
|
4679
|
+
className: Wr.promo__desc,
|
|
4363
4680
|
children: n
|
|
4364
4681
|
}),
|
|
4365
4682
|
r && /* @__PURE__ */ i("button", {
|
|
4366
4683
|
type: "button",
|
|
4367
|
-
className:
|
|
4684
|
+
className: Wr.promo__cta,
|
|
4368
4685
|
onClick: o,
|
|
4369
4686
|
children: r
|
|
4370
4687
|
})
|
|
4371
4688
|
]
|
|
4372
|
-
}),
|
|
4689
|
+
}), Kr = {
|
|
4373
4690
|
subItem: "_subItem_1sz05_2",
|
|
4374
4691
|
"subItem--disabled": "_subItem--disabled_1sz05_26",
|
|
4375
4692
|
"subItem--active": "_subItem--active_1sz05_27",
|
|
4376
4693
|
subItem__dot: "_subItem__dot_1sz05_31",
|
|
4377
4694
|
subItem__label: "_subItem__label_1sz05_41"
|
|
4378
|
-
},
|
|
4695
|
+
}, qr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
|
|
4379
4696
|
let c = {
|
|
4380
4697
|
className: [
|
|
4381
|
-
|
|
4382
|
-
t ?
|
|
4383
|
-
n ?
|
|
4698
|
+
Kr.subItem,
|
|
4699
|
+
t ? Kr["subItem--active"] : "",
|
|
4700
|
+
n ? Kr["subItem--disabled"] : ""
|
|
4384
4701
|
].filter(Boolean).join(" "),
|
|
4385
4702
|
"data-hover-item": "",
|
|
4386
4703
|
"aria-current": t ? "page" : void 0
|
|
4387
4704
|
}, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
|
|
4388
|
-
className:
|
|
4705
|
+
className: Kr.subItem__dot,
|
|
4389
4706
|
"aria-hidden": "true"
|
|
4390
4707
|
}), /* @__PURE__ */ i("span", {
|
|
4391
|
-
className:
|
|
4708
|
+
className: Kr.subItem__label,
|
|
4392
4709
|
children: e
|
|
4393
4710
|
})] });
|
|
4394
4711
|
return s && !n ? /* @__PURE__ */ i("a", {
|
|
@@ -4402,49 +4719,49 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4402
4719
|
...c,
|
|
4403
4720
|
children: l
|
|
4404
4721
|
});
|
|
4405
|
-
},
|
|
4722
|
+
}, Jr = {
|
|
4406
4723
|
skeleton: "_skeleton_94hr3_9",
|
|
4407
4724
|
"skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
|
|
4408
4725
|
"skeleton--text": "_skeleton--text_94hr3_22",
|
|
4409
4726
|
"skeleton--rect": "_skeleton--rect_94hr3_29",
|
|
4410
4727
|
"skeleton--circle": "_skeleton--circle_94hr3_35"
|
|
4411
|
-
},
|
|
4728
|
+
}, Yr = ({ variant: e = "text", width: t, height: n, className: r }) => {
|
|
4412
4729
|
let a = {};
|
|
4413
4730
|
return t !== void 0 && (a.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (a.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ i("span", {
|
|
4414
4731
|
"aria-hidden": "true",
|
|
4415
4732
|
className: [
|
|
4416
|
-
|
|
4417
|
-
|
|
4733
|
+
Jr.skeleton,
|
|
4734
|
+
Jr[`skeleton--${e}`],
|
|
4418
4735
|
r ?? ""
|
|
4419
4736
|
].filter(Boolean).join(" "),
|
|
4420
4737
|
style: a
|
|
4421
4738
|
});
|
|
4422
|
-
},
|
|
4739
|
+
}, Xr = {
|
|
4423
4740
|
field: "_field_u7te8_3",
|
|
4424
4741
|
header: "_header_u7te8_4",
|
|
4425
4742
|
label: "_label_u7te8_5",
|
|
4426
4743
|
value: "_value_u7te8_6",
|
|
4427
4744
|
slider: "_slider_u7te8_8",
|
|
4428
4745
|
"sakani-slider-bounce": "_sakani-slider-bounce_u7te8_1"
|
|
4429
|
-
},
|
|
4746
|
+
}, Zr = 1.2, Qr = 460, $r = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
|
|
4430
4747
|
let h = e.useId(), g = u ?? h, _ = Number(s ?? c ?? r), [v, y] = e.useState(_), b = s === void 0 ? v : Number(s), x = (b - r) / (o - r) * 100, S = e.useRef(null), C = (e) => {
|
|
4431
4748
|
S.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
|
|
4432
4749
|
}, w = e.useRef(null), T = e.useRef(void 0);
|
|
4433
4750
|
e.useEffect(() => () => window.clearTimeout(T.current), []);
|
|
4434
4751
|
let E = (e) => {
|
|
4435
4752
|
let t = S.current;
|
|
4436
|
-
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"),
|
|
4753
|
+
t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"), Qr));
|
|
4437
4754
|
};
|
|
4438
4755
|
return /* @__PURE__ */ a("div", {
|
|
4439
|
-
className: [
|
|
4756
|
+
className: [Xr.field, d ?? ""].filter(Boolean).join(" "),
|
|
4440
4757
|
children: [(t || n) && /* @__PURE__ */ a("div", {
|
|
4441
|
-
className:
|
|
4758
|
+
className: Xr.header,
|
|
4442
4759
|
children: [t && /* @__PURE__ */ i("label", {
|
|
4443
4760
|
htmlFor: g,
|
|
4444
|
-
className:
|
|
4761
|
+
className: Xr.label,
|
|
4445
4762
|
children: t
|
|
4446
4763
|
}), n && /* @__PURE__ */ i("span", {
|
|
4447
|
-
className:
|
|
4764
|
+
className: Xr.value,
|
|
4448
4765
|
children: b
|
|
4449
4766
|
})]
|
|
4450
4767
|
}), /* @__PURE__ */ i("input", {
|
|
@@ -4458,19 +4775,19 @@ var _r = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
|
|
|
4458
4775
|
disabled: l,
|
|
4459
4776
|
onChange: (e) => {
|
|
4460
4777
|
let t = Number(e.target.value), n = performance.now(), i = w.current;
|
|
4461
|
-
i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >=
|
|
4778
|
+
i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >= Zr && E(t === o ? 1 : -1), w.current = {
|
|
4462
4779
|
v: t,
|
|
4463
4780
|
t: n
|
|
4464
4781
|
}, s === void 0 && y(t), f?.(e);
|
|
4465
4782
|
},
|
|
4466
|
-
className:
|
|
4783
|
+
className: Xr.slider,
|
|
4467
4784
|
style: { "--pct": `${x}%` },
|
|
4468
4785
|
...p
|
|
4469
4786
|
})]
|
|
4470
4787
|
});
|
|
4471
4788
|
});
|
|
4472
|
-
|
|
4473
|
-
var
|
|
4789
|
+
$r.displayName = "Slider";
|
|
4790
|
+
var ei = {
|
|
4474
4791
|
card: "_card_1qi93_4",
|
|
4475
4792
|
"card--featured": "_card--featured_1qi93_24",
|
|
4476
4793
|
card__head: "_card__head_1qi93_26",
|
|
@@ -4483,19 +4800,19 @@ var zr = {
|
|
|
4483
4800
|
"card--trend-up": "_card--trend-up_1qi93_68",
|
|
4484
4801
|
"card--trend-down": "_card--trend-down_1qi93_69",
|
|
4485
4802
|
card__description: "_card__description_1qi93_72"
|
|
4486
|
-
},
|
|
4803
|
+
}, ti = {
|
|
4487
4804
|
up: ae,
|
|
4488
4805
|
down: ie,
|
|
4489
4806
|
flat: w
|
|
4490
|
-
},
|
|
4807
|
+
}, ni = {
|
|
4491
4808
|
up: "success",
|
|
4492
4809
|
down: "danger",
|
|
4493
4810
|
flat: "neutral"
|
|
4494
|
-
},
|
|
4811
|
+
}, ri = ({ data: e }) => {
|
|
4495
4812
|
if (e.length < 2) return null;
|
|
4496
4813
|
let t = Math.min(...e), n = Math.max(...e) - t || 1;
|
|
4497
4814
|
return /* @__PURE__ */ i("svg", {
|
|
4498
|
-
className:
|
|
4815
|
+
className: ii,
|
|
4499
4816
|
viewBox: "0 0 100 32",
|
|
4500
4817
|
preserveAspectRatio: "none",
|
|
4501
4818
|
"aria-hidden": "true",
|
|
@@ -4508,21 +4825,21 @@ var zr = {
|
|
|
4508
4825
|
strokeLinecap: "round"
|
|
4509
4826
|
})
|
|
4510
4827
|
});
|
|
4511
|
-
},
|
|
4512
|
-
let m =
|
|
4828
|
+
}, ii = ei.card__sparkline, ai = ({ title: e, value: t, description: n, sparkline: r, delta: o, trend: s = "up", badgeVariant: c, variant: l = "minimal", icon: u, showMenu: d, onMenu: f, className: p }) => {
|
|
4829
|
+
let m = ti[s], h = (l === "icon" || l === "featured") && u;
|
|
4513
4830
|
return /* @__PURE__ */ a("div", {
|
|
4514
4831
|
className: [
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4832
|
+
ei.card,
|
|
4833
|
+
ei[`card--${l}`],
|
|
4834
|
+
ei[`card--trend-${s}`],
|
|
4518
4835
|
p ?? ""
|
|
4519
4836
|
].filter(Boolean).join(" "),
|
|
4520
4837
|
children: [
|
|
4521
4838
|
/* @__PURE__ */ a("div", {
|
|
4522
|
-
className:
|
|
4839
|
+
className: ei.card__head,
|
|
4523
4840
|
children: [
|
|
4524
4841
|
h && /* @__PURE__ */ i("span", {
|
|
4525
|
-
className:
|
|
4842
|
+
className: ei.card__icon,
|
|
4526
4843
|
"aria-hidden": "true",
|
|
4527
4844
|
children: /* @__PURE__ */ i(u, {
|
|
4528
4845
|
size: 18,
|
|
@@ -4530,12 +4847,12 @@ var zr = {
|
|
|
4530
4847
|
})
|
|
4531
4848
|
}),
|
|
4532
4849
|
/* @__PURE__ */ i("span", {
|
|
4533
|
-
className:
|
|
4850
|
+
className: ei.card__title,
|
|
4534
4851
|
children: e
|
|
4535
4852
|
}),
|
|
4536
4853
|
d && /* @__PURE__ */ i("button", {
|
|
4537
4854
|
type: "button",
|
|
4538
|
-
className:
|
|
4855
|
+
className: ei.card__menu,
|
|
4539
4856
|
onClick: f,
|
|
4540
4857
|
"aria-label": "More options",
|
|
4541
4858
|
children: /* @__PURE__ */ i(T, {
|
|
@@ -4546,21 +4863,21 @@ var zr = {
|
|
|
4546
4863
|
]
|
|
4547
4864
|
}),
|
|
4548
4865
|
/* @__PURE__ */ i("div", {
|
|
4549
|
-
className:
|
|
4866
|
+
className: ei.card__value,
|
|
4550
4867
|
children: t
|
|
4551
4868
|
}),
|
|
4552
|
-
r && /* @__PURE__ */ i(
|
|
4869
|
+
r && /* @__PURE__ */ i(ri, { data: r }),
|
|
4553
4870
|
(o || n) && /* @__PURE__ */ a("div", {
|
|
4554
|
-
className:
|
|
4555
|
-
children: [o && /* @__PURE__ */ i(
|
|
4556
|
-
variant: c ??
|
|
4871
|
+
className: ei.card__meta,
|
|
4872
|
+
children: [o && /* @__PURE__ */ i(Gt, {
|
|
4873
|
+
variant: c ?? ni[s],
|
|
4557
4874
|
leftIcon: /* @__PURE__ */ i(m, {
|
|
4558
4875
|
size: 12,
|
|
4559
4876
|
strokeWidth: 2
|
|
4560
4877
|
}),
|
|
4561
4878
|
children: o
|
|
4562
4879
|
}), n && /* @__PURE__ */ i("p", {
|
|
4563
|
-
className:
|
|
4880
|
+
className: ei.card__description,
|
|
4564
4881
|
children: n
|
|
4565
4882
|
})]
|
|
4566
4883
|
})
|
|
@@ -4594,18 +4911,18 @@ var zr = {
|
|
|
4594
4911
|
"bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
|
|
4595
4912
|
dragCell: "_dragCell_9nqt2_235",
|
|
4596
4913
|
dragHandle: "_dragHandle_9nqt2_251"
|
|
4597
|
-
},
|
|
4598
|
-
function
|
|
4914
|
+
}, oi = 640;
|
|
4915
|
+
function si(t) {
|
|
4599
4916
|
let [n, r] = e.useState(!1);
|
|
4600
4917
|
return e.useEffect(() => {
|
|
4601
4918
|
if (t !== "auto") return;
|
|
4602
|
-
let e = window.matchMedia(`(max-width: ${
|
|
4919
|
+
let e = window.matchMedia(`(max-width: ${oi}px)`);
|
|
4603
4920
|
r(e.matches);
|
|
4604
4921
|
let n = (e) => r(e.matches);
|
|
4605
4922
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
4606
4923
|
}, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
|
|
4607
4924
|
}
|
|
4608
|
-
var
|
|
4925
|
+
var ci = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
|
|
4609
4926
|
let s = e.useRef(null);
|
|
4610
4927
|
return e.useEffect(() => {
|
|
4611
4928
|
s.current && (s.current.indeterminate = !!n);
|
|
@@ -4636,10 +4953,10 @@ var qr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
|
|
|
4636
4953
|
})]
|
|
4637
4954
|
});
|
|
4638
4955
|
};
|
|
4639
|
-
function
|
|
4640
|
-
let m =
|
|
4956
|
+
function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
|
|
4957
|
+
let m = si(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
|
|
4641
4958
|
h || _(e), s?.(e);
|
|
4642
|
-
}, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D =
|
|
4959
|
+
}, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D = Jn(), O = () => {
|
|
4643
4960
|
if (C === null || T === null || C === T) {
|
|
4644
4961
|
w(null), E(null);
|
|
4645
4962
|
return;
|
|
@@ -4664,7 +4981,7 @@ function Jr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
4664
4981
|
].filter(Boolean).join(" "),
|
|
4665
4982
|
children: [r && /* @__PURE__ */ i("div", {
|
|
4666
4983
|
className: Q.card__selectRow,
|
|
4667
|
-
children: /* @__PURE__ */ i(
|
|
4984
|
+
children: /* @__PURE__ */ i(ci, {
|
|
4668
4985
|
checked: o,
|
|
4669
4986
|
onChange: () => A(n),
|
|
4670
4987
|
label: `Select row ${n + 1}`
|
|
@@ -4700,7 +5017,7 @@ function Jr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
4700
5017
|
}),
|
|
4701
5018
|
r && /* @__PURE__ */ i("th", {
|
|
4702
5019
|
className: Q.checkCell,
|
|
4703
|
-
children: /* @__PURE__ */ i(
|
|
5020
|
+
children: /* @__PURE__ */ i(ci, {
|
|
4704
5021
|
checked: b,
|
|
4705
5022
|
indeterminate: S,
|
|
4706
5023
|
onChange: k,
|
|
@@ -4753,7 +5070,7 @@ function Jr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
4753
5070
|
}),
|
|
4754
5071
|
r && /* @__PURE__ */ i("td", {
|
|
4755
5072
|
className: Q.checkCell,
|
|
4756
|
-
children: /* @__PURE__ */ i(
|
|
5073
|
+
children: /* @__PURE__ */ i(ci, {
|
|
4757
5074
|
checked: o,
|
|
4758
5075
|
onChange: () => A(n),
|
|
4759
5076
|
label: `Select row ${n + 1}`
|
|
@@ -4770,7 +5087,7 @@ function Jr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
|
|
|
4770
5087
|
})]
|
|
4771
5088
|
});
|
|
4772
5089
|
}
|
|
4773
|
-
var
|
|
5090
|
+
var ui = {
|
|
4774
5091
|
tabs: "_tabs_1122j_3",
|
|
4775
5092
|
"tabs--borderless": "_tabs--borderless_1122j_16",
|
|
4776
5093
|
"tabs--fill": "_tabs--fill_1122j_21",
|
|
@@ -4779,7 +5096,7 @@ var Yr = {
|
|
|
4779
5096
|
"tab--active": "_tab--active_1122j_63",
|
|
4780
5097
|
indicator: "_indicator_1122j_74",
|
|
4781
5098
|
"indicator--animated": "_indicator--animated_1122j_88"
|
|
4782
|
-
},
|
|
5099
|
+
}, di = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
|
|
4783
5100
|
let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
|
|
4784
5101
|
u || f(e), o?.(e);
|
|
4785
5102
|
}, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
|
|
@@ -4800,9 +5117,9 @@ var Yr = {
|
|
|
4800
5117
|
ref: h,
|
|
4801
5118
|
role: "tablist",
|
|
4802
5119
|
className: [
|
|
4803
|
-
|
|
4804
|
-
s ? "" :
|
|
4805
|
-
c ?
|
|
5120
|
+
ui.tabs,
|
|
5121
|
+
s ? "" : ui["tabs--borderless"],
|
|
5122
|
+
c ? ui["tabs--fill"] : "",
|
|
4806
5123
|
l ?? ""
|
|
4807
5124
|
].filter(Boolean).join(" "),
|
|
4808
5125
|
children: [t.map((e) => {
|
|
@@ -4816,9 +5133,9 @@ var Yr = {
|
|
|
4816
5133
|
"aria-selected": t,
|
|
4817
5134
|
disabled: e.disabled,
|
|
4818
5135
|
className: [
|
|
4819
|
-
|
|
4820
|
-
t ?
|
|
4821
|
-
e.disabled ?
|
|
5136
|
+
ui.tab,
|
|
5137
|
+
t ? ui["tab--active"] : "",
|
|
5138
|
+
e.disabled ? ui["tab--disabled"] : ""
|
|
4822
5139
|
].filter(Boolean).join(" "),
|
|
4823
5140
|
onClick: () => m(e.value),
|
|
4824
5141
|
children: [n && /* @__PURE__ */ i(n, {
|
|
@@ -4829,14 +5146,14 @@ var Yr = {
|
|
|
4829
5146
|
}, e.value);
|
|
4830
5147
|
}), _ && /* @__PURE__ */ i("span", {
|
|
4831
5148
|
"aria-hidden": "true",
|
|
4832
|
-
className: [
|
|
5149
|
+
className: [ui.indicator, y ? ui["indicator--animated"] : ""].filter(Boolean).join(" "),
|
|
4833
5150
|
style: {
|
|
4834
5151
|
transform: `translateX(${_.left}px)`,
|
|
4835
5152
|
width: _.width
|
|
4836
5153
|
}
|
|
4837
5154
|
})]
|
|
4838
5155
|
});
|
|
4839
|
-
},
|
|
5156
|
+
}, fi = {
|
|
4840
5157
|
wrapper: "_wrapper_w6wtp_8",
|
|
4841
5158
|
bubble: "_bubble_w6wtp_8",
|
|
4842
5159
|
bubble__title: "_bubble__title_w6wtp_46",
|
|
@@ -4858,7 +5175,7 @@ var Yr = {
|
|
|
4858
5175
|
"caret--center-left": "_caret--center-left_w6wtp_121",
|
|
4859
5176
|
"bubble--center-right": "_bubble--center-right_w6wtp_131",
|
|
4860
5177
|
"caret--center-right": "_caret--center-right_w6wtp_139"
|
|
4861
|
-
},
|
|
5178
|
+
}, pi = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
|
|
4862
5179
|
let [c, l] = e.useState(!1);
|
|
4863
5180
|
return e.useEffect(() => {
|
|
4864
5181
|
let e = (e) => {
|
|
@@ -4866,24 +5183,24 @@ var Yr = {
|
|
|
4866
5183
|
};
|
|
4867
5184
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
4868
5185
|
}, []), /* @__PURE__ */ a("span", {
|
|
4869
|
-
className: [
|
|
5186
|
+
className: [fi.wrapper, s ?? ""].filter(Boolean).join(" "),
|
|
4870
5187
|
"data-dismissed": c || void 0,
|
|
4871
5188
|
onMouseLeave: () => l(!1),
|
|
4872
5189
|
onBlur: () => l(!1),
|
|
4873
5190
|
children: [o, /* @__PURE__ */ a("span", {
|
|
4874
5191
|
role: "tooltip",
|
|
4875
|
-
className: [
|
|
5192
|
+
className: [fi.bubble, fi[`bubble--${r}`]].join(" "),
|
|
4876
5193
|
children: [
|
|
4877
5194
|
/* @__PURE__ */ i("span", {
|
|
4878
|
-
className:
|
|
5195
|
+
className: fi.bubble__title,
|
|
4879
5196
|
children: t
|
|
4880
5197
|
}),
|
|
4881
5198
|
n && /* @__PURE__ */ i("span", {
|
|
4882
|
-
className:
|
|
5199
|
+
className: fi.bubble__subtitle,
|
|
4883
5200
|
children: n
|
|
4884
5201
|
}),
|
|
4885
5202
|
/* @__PURE__ */ i("span", {
|
|
4886
|
-
className: [
|
|
5203
|
+
className: [fi.caret, fi[`caret--${r}`]].join(" "),
|
|
4887
5204
|
"aria-hidden": "true"
|
|
4888
5205
|
})
|
|
4889
5206
|
]
|
|
@@ -4912,8 +5229,8 @@ var Yr = {
|
|
|
4912
5229
|
"bar__left--search": "_bar__left--search_yqi1k_84",
|
|
4913
5230
|
bar__accountChevron: "_bar__accountChevron_yqi1k_98",
|
|
4914
5231
|
"bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
|
|
4915
|
-
},
|
|
4916
|
-
let C =
|
|
5232
|
+
}, mi = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = E, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: h, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
|
|
5233
|
+
let C = Jn(), w = Jn(), T = t === "md" ? 20 : 18, D = M(T);
|
|
4917
5234
|
return /* @__PURE__ */ i("header", {
|
|
4918
5235
|
className: [
|
|
4919
5236
|
$.bar,
|
|
@@ -5014,4 +5331,4 @@ var Yr = {
|
|
|
5014
5331
|
});
|
|
5015
5332
|
};
|
|
5016
5333
|
//#endregion
|
|
5017
|
-
export {
|
|
5334
|
+
export { $t as $, $n as A, Mn as B, vr as C, ze as Ct, ir as D, ke as Dt, sr as E, Ne as Et, Hn as F, Cn as G, Dn as H, zn as I, _n as J, bn as K, Rn as L, Yn as M, Jn as N, rr as O, Oe as Ot, Un as P, cn as Q, In as R, Sr as S, He as St, ur as T, Pe as Tt, Tn as U, An as V, wn as W, pn as X, hn as Y, un as Z, Mr as _, rt as _t, ai as a, zt as at, wr as b, We as bt, qr as c, Ft as ct, Hr as d, kt as dt, Qt as et, Vr as f, Ot as ft, Pr as g, Ct as gt, Fr as h, _t as ht, li as i, Ut as it, Zn as j, tr as k, M as kt, Gr as l, Mt as lt, Lr as m, Tt as mt, pi as n, qt as nt, $r as o, Lt as ot, zr as p, lt as pt, vn as q, di as r, Gt as rt, Yr as s, It as st, mi as t, Xt as tt, Ur as u, At as ut, Or as v, tt as vt, mr as w, Le as wt, Tr as x, P as xt, Dr as y, $e as yt, Pn as z };
|