@roku-ui/vue 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1194 -1171
- package/dist/index.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, openBlock as
|
|
1
|
+
import { defineComponent as W, openBlock as w, createElementBlock as A, normalizeStyle as P, renderSlot as L, computed as m, shallowRef as Ye, ref as M, watch as Q, isRef as St, getCurrentScope as er, onScopeDispose as tr, unref as h, onMounted as he, nextTick as dt, customRef as Mr, getCurrentInstance as et, readonly as kt, reactive as Fe, watchEffect as de, onUpdated as Ar, inject as $e, createBlock as G, resolveDynamicComponent as xe, mergeProps as Z, Fragment as J, createTextVNode as Ze, toDisplayString as ne, createCommentVNode as F, normalizeClass as D, withCtx as ee, mergeModels as re, useModel as ie, renderList as fe, createElementVNode as O, useAttrs as rr, withDirectives as ft, vModelText as Hr, createVNode as U, provide as Re, Teleport as nr, Transition as We, useSlots as vt, resolveComponent as Tr, TransitionGroup as Rr, vModelDynamic as Ir, withModifiers as lr, withKeys as yt, vModelCheckbox as Er, vShow as zr, h as Lt } from "vue";
|
|
2
2
|
const qa = /* @__PURE__ */ W({
|
|
3
3
|
__name: "AspectRatio",
|
|
4
4
|
props: {
|
|
@@ -9,7 +9,7 @@ const qa = /* @__PURE__ */ W({
|
|
|
9
9
|
maxHeight: {}
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
|
-
return (r, t) => (
|
|
12
|
+
return (r, t) => (w(), A("div", {
|
|
13
13
|
style: P({
|
|
14
14
|
"--ar-ratio": r.ratio,
|
|
15
15
|
width: r.width,
|
|
@@ -448,7 +448,7 @@ E.mostReadable = function(e, r, t) {
|
|
|
448
448
|
size: o
|
|
449
449
|
}) || !i ? n : (t.includeFallbackColors = !1, E.mostReadable(e, ["#fff", "#000"], t));
|
|
450
450
|
};
|
|
451
|
-
var
|
|
451
|
+
var xt = E.names = {
|
|
452
452
|
aliceblue: "f0f8ff",
|
|
453
453
|
antiquewhite: "faebd7",
|
|
454
454
|
aqua: "0ff",
|
|
@@ -598,7 +598,7 @@ var wt = E.names = {
|
|
|
598
598
|
whitesmoke: "f5f5f5",
|
|
599
599
|
yellow: "ff0",
|
|
600
600
|
yellowgreen: "9acd32"
|
|
601
|
-
}, Qr = E.hexNames = en(
|
|
601
|
+
}, Qr = E.hexNames = en(xt);
|
|
602
602
|
function en(e) {
|
|
603
603
|
var r = {};
|
|
604
604
|
for (var t in e)
|
|
@@ -616,7 +616,7 @@ function q(e, r) {
|
|
|
616
616
|
function pt(e) {
|
|
617
617
|
return Math.min(1, Math.max(0, e));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function ce(e) {
|
|
620
620
|
return parseInt(e, 16);
|
|
621
621
|
}
|
|
622
622
|
function tn(e) {
|
|
@@ -635,7 +635,7 @@ function or(e) {
|
|
|
635
635
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
636
636
|
}
|
|
637
637
|
function Yt(e) {
|
|
638
|
-
return
|
|
638
|
+
return ce(e) / 255;
|
|
639
639
|
}
|
|
640
640
|
var ye = function() {
|
|
641
641
|
var e = "[-\\+]?\\d+%?", r = "[-\\+]?\\d*\\.\\d+%?", t = "(?:" + r + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?", a = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?";
|
|
@@ -659,8 +659,8 @@ function _e(e) {
|
|
|
659
659
|
function nn(e) {
|
|
660
660
|
e = e.replace(Br, "").replace(Vr, "").toLowerCase();
|
|
661
661
|
var r = !1;
|
|
662
|
-
if (
|
|
663
|
-
e =
|
|
662
|
+
if (xt[e])
|
|
663
|
+
e = xt[e], r = !0;
|
|
664
664
|
else if (e == "transparent")
|
|
665
665
|
return {
|
|
666
666
|
r: 0,
|
|
@@ -698,26 +698,26 @@ function nn(e) {
|
|
|
698
698
|
v: t[3],
|
|
699
699
|
a: t[4]
|
|
700
700
|
} : (t = ye.hex8.exec(e)) ? {
|
|
701
|
-
r:
|
|
702
|
-
g:
|
|
703
|
-
b:
|
|
701
|
+
r: ce(t[1]),
|
|
702
|
+
g: ce(t[2]),
|
|
703
|
+
b: ce(t[3]),
|
|
704
704
|
a: Yt(t[4]),
|
|
705
705
|
format: r ? "name" : "hex8"
|
|
706
706
|
} : (t = ye.hex6.exec(e)) ? {
|
|
707
|
-
r:
|
|
708
|
-
g:
|
|
709
|
-
b:
|
|
707
|
+
r: ce(t[1]),
|
|
708
|
+
g: ce(t[2]),
|
|
709
|
+
b: ce(t[3]),
|
|
710
710
|
format: r ? "name" : "hex"
|
|
711
711
|
} : (t = ye.hex4.exec(e)) ? {
|
|
712
|
-
r:
|
|
713
|
-
g:
|
|
714
|
-
b:
|
|
712
|
+
r: ce(t[1] + "" + t[1]),
|
|
713
|
+
g: ce(t[2] + "" + t[2]),
|
|
714
|
+
b: ce(t[3] + "" + t[3]),
|
|
715
715
|
a: Yt(t[4] + "" + t[4]),
|
|
716
716
|
format: r ? "name" : "hex8"
|
|
717
717
|
} : (t = ye.hex3.exec(e)) ? {
|
|
718
|
-
r:
|
|
719
|
-
g:
|
|
720
|
-
b:
|
|
718
|
+
r: ce(t[1] + "" + t[1]),
|
|
719
|
+
g: ce(t[2] + "" + t[2]),
|
|
720
|
+
b: ce(t[3] + "" + t[3]),
|
|
721
721
|
format: r ? "name" : "hex"
|
|
722
722
|
} : !1;
|
|
723
723
|
}
|
|
@@ -731,7 +731,7 @@ function ln(e) {
|
|
|
731
731
|
size: t
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function ae(e) {
|
|
735
735
|
return m(
|
|
736
736
|
() => ({ style: an(e.rounded), class: "rounded-[--r-rounded]" })
|
|
737
737
|
);
|
|
@@ -802,7 +802,7 @@ function Ke(e, r = me) {
|
|
|
802
802
|
}
|
|
803
803
|
function un(e, r) {
|
|
804
804
|
let t, n, a;
|
|
805
|
-
const l =
|
|
805
|
+
const l = M(!0), i = () => {
|
|
806
806
|
l.value = !0, a();
|
|
807
807
|
};
|
|
808
808
|
Q(e, i, { flush: "sync" });
|
|
@@ -836,11 +836,11 @@ function Gt() {
|
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
838
|
function K(e) {
|
|
839
|
-
return typeof e == "function" ? e() :
|
|
839
|
+
return typeof e == "function" ? e() : h(e);
|
|
840
840
|
}
|
|
841
841
|
const Me = typeof window < "u" && typeof document < "u";
|
|
842
842
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
843
|
-
const cn = (e) => e != null, dn = Object.prototype.toString, fn = (e) => dn.call(e) === "[object Object]",
|
|
843
|
+
const cn = (e) => e != null, dn = Object.prototype.toString, fn = (e) => dn.call(e) === "[object Object]", we = () => {
|
|
844
844
|
}, vn = (e, r) => Object.prototype.hasOwnProperty.call(e, r), pn = /* @__PURE__ */ hn();
|
|
845
845
|
function hn() {
|
|
846
846
|
var e, r;
|
|
@@ -856,9 +856,9 @@ function _t(e, r) {
|
|
|
856
856
|
}
|
|
857
857
|
const cr = (e) => e();
|
|
858
858
|
function mn(e, r = {}) {
|
|
859
|
-
let t, n, a =
|
|
859
|
+
let t, n, a = we;
|
|
860
860
|
const l = (s) => {
|
|
861
|
-
clearTimeout(s), a(), a =
|
|
861
|
+
clearTimeout(s), a(), a = we;
|
|
862
862
|
};
|
|
863
863
|
return (s) => {
|
|
864
864
|
const o = K(e), c = K(r.maxWait);
|
|
@@ -872,22 +872,22 @@ function mn(e, r = {}) {
|
|
|
872
872
|
};
|
|
873
873
|
}
|
|
874
874
|
function gn(...e) {
|
|
875
|
-
let r = 0, t, n = !0, a =
|
|
875
|
+
let r = 0, t, n = !0, a = we, l, i, s, o, c;
|
|
876
876
|
!St(e[0]) && typeof e[0] == "object" ? { delay: i, trailing: s = !0, leading: o = !0, rejectOnCancel: c = !1 } = e[0] : [i, s = !0, o = !0, c = !1] = e;
|
|
877
877
|
const d = () => {
|
|
878
|
-
t && (clearTimeout(t), t = void 0, a(), a =
|
|
878
|
+
t && (clearTimeout(t), t = void 0, a(), a = we);
|
|
879
879
|
};
|
|
880
880
|
return (f) => {
|
|
881
|
-
const
|
|
882
|
-
return d(),
|
|
883
|
-
a = c ?
|
|
884
|
-
r = Date.now(), n = !0, b(
|
|
885
|
-
}, Math.max(0,
|
|
886
|
-
})), !o && !t && (t = setTimeout(() => n = !0,
|
|
881
|
+
const g = K(i), C = Date.now() - r, v = () => l = f();
|
|
882
|
+
return d(), g <= 0 ? (r = Date.now(), v()) : (C > g && (o || !n) ? (r = Date.now(), v()) : s && (l = new Promise((b, x) => {
|
|
883
|
+
a = c ? x : b, t = setTimeout(() => {
|
|
884
|
+
r = Date.now(), n = !0, b(v()), d();
|
|
885
|
+
}, Math.max(0, g - C));
|
|
886
|
+
})), !o && !t && (t = setTimeout(() => n = !0, g)), n = !1, l);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function yn(e = cr) {
|
|
890
|
-
const r =
|
|
890
|
+
const r = M(!0);
|
|
891
891
|
function t() {
|
|
892
892
|
r.value = !1;
|
|
893
893
|
}
|
|
@@ -908,13 +908,13 @@ function dr(e, r = 200, t = {}) {
|
|
|
908
908
|
e
|
|
909
909
|
);
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
const n =
|
|
911
|
+
function wn(e, r = 200, t = {}) {
|
|
912
|
+
const n = M(e.value), a = dr(() => {
|
|
913
913
|
n.value = e.value;
|
|
914
914
|
}, r, t);
|
|
915
915
|
return Q(e, () => a()), n;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function xn(e, r = 200, t = !1, n = !0, a = !1) {
|
|
918
918
|
return _t(
|
|
919
919
|
gn(r, t, n, a),
|
|
920
920
|
e
|
|
@@ -955,7 +955,7 @@ function _n(e = !1, r = {}) {
|
|
|
955
955
|
const {
|
|
956
956
|
truthyValue: t = !0,
|
|
957
957
|
falsyValue: n = !1
|
|
958
|
-
} = r, a = St(e), l =
|
|
958
|
+
} = r, a = St(e), l = M(e);
|
|
959
959
|
function i(s) {
|
|
960
960
|
if (arguments.length)
|
|
961
961
|
return l.value = s, l.value;
|
|
@@ -966,27 +966,27 @@ function _n(e = !1, r = {}) {
|
|
|
966
966
|
}
|
|
967
967
|
return a ? i : [l, i];
|
|
968
968
|
}
|
|
969
|
-
const
|
|
970
|
-
function
|
|
969
|
+
const se = Me ? window : void 0, $n = Me ? window.document : void 0;
|
|
970
|
+
function oe(e) {
|
|
971
971
|
var r;
|
|
972
972
|
const t = K(e);
|
|
973
973
|
return (r = t == null ? void 0 : t.$el) != null ? r : t;
|
|
974
974
|
}
|
|
975
975
|
function N(...e) {
|
|
976
976
|
let r, t, n, a;
|
|
977
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, n, a] = e, r =
|
|
978
|
-
return
|
|
977
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, n, a] = e, r = se) : [r, t, n, a] = e, !r)
|
|
978
|
+
return we;
|
|
979
979
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
980
980
|
const l = [], i = () => {
|
|
981
981
|
l.forEach((d) => d()), l.length = 0;
|
|
982
|
-
}, s = (d, u, f,
|
|
983
|
-
() => [
|
|
982
|
+
}, s = (d, u, f, g) => (d.addEventListener(u, f, g), () => d.removeEventListener(u, f, g)), o = Q(
|
|
983
|
+
() => [oe(r), K(a)],
|
|
984
984
|
([d, u]) => {
|
|
985
985
|
if (i(), !d)
|
|
986
986
|
return;
|
|
987
987
|
const f = fn(u) ? { ...u } : u;
|
|
988
988
|
l.push(
|
|
989
|
-
...t.flatMap((
|
|
989
|
+
...t.flatMap((g) => n.map((C) => s(d, g, C, f)))
|
|
990
990
|
);
|
|
991
991
|
},
|
|
992
992
|
{ immediate: !0, flush: "post" }
|
|
@@ -997,57 +997,57 @@ function N(...e) {
|
|
|
997
997
|
}
|
|
998
998
|
let qt = !1;
|
|
999
999
|
function $t(e, r, t = {}) {
|
|
1000
|
-
const { window: n =
|
|
1000
|
+
const { window: n = se, ignore: a = [], capture: l = !0, detectIframe: i = !1 } = t;
|
|
1001
1001
|
if (!n)
|
|
1002
|
-
return
|
|
1003
|
-
pn && !qt && (qt = !0, Array.from(n.document.body.children).forEach((
|
|
1002
|
+
return we;
|
|
1003
|
+
pn && !qt && (qt = !0, Array.from(n.document.body.children).forEach((v) => v.addEventListener("click", we)), n.document.documentElement.addEventListener("click", we));
|
|
1004
1004
|
let s = !0;
|
|
1005
|
-
const o = (
|
|
1005
|
+
const o = (v) => K(a).some((b) => {
|
|
1006
1006
|
if (typeof b == "string")
|
|
1007
|
-
return Array.from(n.document.querySelectorAll(b)).some((
|
|
1007
|
+
return Array.from(n.document.querySelectorAll(b)).some((x) => x === v.target || v.composedPath().includes(x));
|
|
1008
1008
|
{
|
|
1009
|
-
const
|
|
1010
|
-
return
|
|
1009
|
+
const x = oe(b);
|
|
1010
|
+
return x && (v.target === x || v.composedPath().includes(x));
|
|
1011
1011
|
}
|
|
1012
1012
|
});
|
|
1013
|
-
function c(
|
|
1014
|
-
const b = K(
|
|
1013
|
+
function c(v) {
|
|
1014
|
+
const b = K(v);
|
|
1015
1015
|
return b && b.$.subTree.shapeFlag === 16;
|
|
1016
1016
|
}
|
|
1017
|
-
function d(
|
|
1018
|
-
const
|
|
1019
|
-
return
|
|
1017
|
+
function d(v, b) {
|
|
1018
|
+
const x = K(v), p = x.$.subTree && x.$.subTree.children;
|
|
1019
|
+
return p == null || !Array.isArray(p) ? !1 : p.some((S) => S.el === b.target || b.composedPath().includes(S.el));
|
|
1020
1020
|
}
|
|
1021
|
-
const u = (
|
|
1022
|
-
const b =
|
|
1023
|
-
if (
|
|
1024
|
-
if (
|
|
1021
|
+
const u = (v) => {
|
|
1022
|
+
const b = oe(e);
|
|
1023
|
+
if (v.target != null && !(!(b instanceof Element) && c(e) && d(e, v)) && !(!b || b === v.target || v.composedPath().includes(b))) {
|
|
1024
|
+
if (v.detail === 0 && (s = !o(v)), !s) {
|
|
1025
1025
|
s = !0;
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
|
-
r(
|
|
1028
|
+
r(v);
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
let f = !1;
|
|
1032
|
-
const
|
|
1033
|
-
N(n, "click", (
|
|
1032
|
+
const g = [
|
|
1033
|
+
N(n, "click", (v) => {
|
|
1034
1034
|
f || (f = !0, setTimeout(() => {
|
|
1035
1035
|
f = !1;
|
|
1036
|
-
}, 0), u(
|
|
1036
|
+
}, 0), u(v));
|
|
1037
1037
|
}, { passive: !0, capture: l }),
|
|
1038
|
-
N(n, "pointerdown", (
|
|
1039
|
-
const b =
|
|
1040
|
-
s = !o(
|
|
1038
|
+
N(n, "pointerdown", (v) => {
|
|
1039
|
+
const b = oe(e);
|
|
1040
|
+
s = !o(v) && !!(b && !v.composedPath().includes(b));
|
|
1041
1041
|
}, { passive: !0 }),
|
|
1042
|
-
i && N(n, "blur", (
|
|
1042
|
+
i && N(n, "blur", (v) => {
|
|
1043
1043
|
setTimeout(() => {
|
|
1044
1044
|
var b;
|
|
1045
|
-
const
|
|
1046
|
-
((b = n.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(
|
|
1045
|
+
const x = oe(e);
|
|
1046
|
+
((b = n.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(x != null && x.contains(n.document.activeElement)) && r(v);
|
|
1047
1047
|
}, 0);
|
|
1048
1048
|
})
|
|
1049
1049
|
].filter(Boolean);
|
|
1050
|
-
return () =>
|
|
1050
|
+
return () => g.forEach((v) => v());
|
|
1051
1051
|
}
|
|
1052
1052
|
function Cn(e) {
|
|
1053
1053
|
return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
|
|
@@ -1056,7 +1056,7 @@ function pe(...e) {
|
|
|
1056
1056
|
let r, t, n = {};
|
|
1057
1057
|
e.length === 3 ? (r = e[0], t = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (r = !0, t = e[0], n = e[1]) : (r = e[0], t = e[1]) : (r = !0, t = e[0]);
|
|
1058
1058
|
const {
|
|
1059
|
-
target: a =
|
|
1059
|
+
target: a = se,
|
|
1060
1060
|
eventName: l = "keydown",
|
|
1061
1061
|
passive: i = !1,
|
|
1062
1062
|
dedupe: s = !1
|
|
@@ -1066,7 +1066,7 @@ function pe(...e) {
|
|
|
1066
1066
|
}, i);
|
|
1067
1067
|
}
|
|
1068
1068
|
function Mn() {
|
|
1069
|
-
const e =
|
|
1069
|
+
const e = M(!1), r = et();
|
|
1070
1070
|
return r && he(() => {
|
|
1071
1071
|
e.value = !0;
|
|
1072
1072
|
}, r), e;
|
|
@@ -1076,17 +1076,17 @@ function Ct(e) {
|
|
|
1076
1076
|
return m(() => (r.value, !!e()));
|
|
1077
1077
|
}
|
|
1078
1078
|
function Mt(e, r, t = {}) {
|
|
1079
|
-
const { window: n =
|
|
1079
|
+
const { window: n = se, ...a } = t;
|
|
1080
1080
|
let l;
|
|
1081
1081
|
const i = Ct(() => n && "MutationObserver" in n), s = () => {
|
|
1082
1082
|
l && (l.disconnect(), l = void 0);
|
|
1083
1083
|
}, o = m(() => {
|
|
1084
|
-
const f = K(e),
|
|
1085
|
-
return new Set(
|
|
1084
|
+
const f = K(e), g = (Array.isArray(f) ? f : [f]).map(oe).filter(cn);
|
|
1085
|
+
return new Set(g);
|
|
1086
1086
|
}), c = Q(
|
|
1087
1087
|
() => o.value,
|
|
1088
1088
|
(f) => {
|
|
1089
|
-
s(), i.value && f.size && (l = new MutationObserver(r), f.forEach((
|
|
1089
|
+
s(), i.value && f.size && (l = new MutationObserver(r), f.forEach((g) => l.observe(g, a)));
|
|
1090
1090
|
},
|
|
1091
1091
|
{ immediate: !0, flush: "post" }
|
|
1092
1092
|
), d = () => l == null ? void 0 : l.takeRecords(), u = () => {
|
|
@@ -1102,19 +1102,19 @@ function An(e, r = {}) {
|
|
|
1102
1102
|
const {
|
|
1103
1103
|
immediate: t = !0,
|
|
1104
1104
|
fpsLimit: n = void 0,
|
|
1105
|
-
window: a =
|
|
1106
|
-
} = r, l =
|
|
1105
|
+
window: a = se
|
|
1106
|
+
} = r, l = M(!1), i = n ? 1e3 / n : null;
|
|
1107
1107
|
let s = 0, o = null;
|
|
1108
1108
|
function c(f) {
|
|
1109
1109
|
if (!l.value || !a)
|
|
1110
1110
|
return;
|
|
1111
1111
|
s || (s = f);
|
|
1112
|
-
const
|
|
1113
|
-
if (i &&
|
|
1112
|
+
const g = f - s;
|
|
1113
|
+
if (i && g < i) {
|
|
1114
1114
|
o = a.requestAnimationFrame(c);
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
|
-
s = f, e({ delta:
|
|
1117
|
+
s = f, e({ delta: g, timestamp: f }), o = a.requestAnimationFrame(c);
|
|
1118
1118
|
}
|
|
1119
1119
|
function d() {
|
|
1120
1120
|
!l.value && a && (l.value = !0, s = 0, o = a.requestAnimationFrame(c));
|
|
@@ -1129,24 +1129,24 @@ function An(e, r = {}) {
|
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
function Hn(e, r = {}) {
|
|
1132
|
-
const { window: t =
|
|
1132
|
+
const { window: t = se } = r, n = Ct(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
1133
1133
|
let a;
|
|
1134
|
-
const l =
|
|
1134
|
+
const l = M(!1), i = (c) => {
|
|
1135
1135
|
l.value = c.matches;
|
|
1136
1136
|
}, s = () => {
|
|
1137
1137
|
a && ("removeEventListener" in a ? a.removeEventListener("change", i) : a.removeListener(i));
|
|
1138
|
-
}, o =
|
|
1138
|
+
}, o = de(() => {
|
|
1139
1139
|
n.value && (s(), a = t.matchMedia(K(e)), "addEventListener" in a ? a.addEventListener("change", i) : a.addListener(i), l.value = a.matches);
|
|
1140
1140
|
});
|
|
1141
1141
|
return Ue(() => {
|
|
1142
1142
|
o(), s(), a = void 0;
|
|
1143
1143
|
}), l;
|
|
1144
1144
|
}
|
|
1145
|
-
const ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, st = "__vueuse_ssr_handlers__", Tn = /* @__PURE__ */
|
|
1146
|
-
function
|
|
1145
|
+
const ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, st = "__vueuse_ssr_handlers__", Tn = /* @__PURE__ */ Rn();
|
|
1146
|
+
function Rn() {
|
|
1147
1147
|
return st in ot || (ot[st] = ot[st] || {}), ot[st];
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function In(e, r) {
|
|
1150
1150
|
return Tn[e] || r;
|
|
1151
1151
|
}
|
|
1152
1152
|
function En(e) {
|
|
@@ -1195,38 +1195,38 @@ function Bn(e, r, t, n = {}) {
|
|
|
1195
1195
|
writeDefaults: o = !0,
|
|
1196
1196
|
mergeDefaults: c = !1,
|
|
1197
1197
|
shallow: d,
|
|
1198
|
-
window: u =
|
|
1198
|
+
window: u = se,
|
|
1199
1199
|
eventFilter: f,
|
|
1200
|
-
onError:
|
|
1201
|
-
console.error(
|
|
1200
|
+
onError: g = (_) => {
|
|
1201
|
+
console.error(_);
|
|
1202
1202
|
},
|
|
1203
|
-
initOnMounted:
|
|
1204
|
-
} = n,
|
|
1203
|
+
initOnMounted: C
|
|
1204
|
+
} = n, v = (d ? Ye : M)(r);
|
|
1205
1205
|
if (!t)
|
|
1206
1206
|
try {
|
|
1207
|
-
t =
|
|
1208
|
-
var
|
|
1209
|
-
return (
|
|
1207
|
+
t = In("getDefaultStorage", () => {
|
|
1208
|
+
var _;
|
|
1209
|
+
return (_ = se) == null ? void 0 : _.localStorage;
|
|
1210
1210
|
})();
|
|
1211
|
-
} catch (
|
|
1212
|
-
|
|
1211
|
+
} catch (_) {
|
|
1212
|
+
g(_);
|
|
1213
1213
|
}
|
|
1214
1214
|
if (!t)
|
|
1215
|
-
return
|
|
1216
|
-
const b = K(r),
|
|
1217
|
-
|
|
1218
|
-
() => H(
|
|
1215
|
+
return v;
|
|
1216
|
+
const b = K(r), x = En(b), p = (a = n.serializer) != null ? a : zn[x], { pause: S, resume: $ } = kn(
|
|
1217
|
+
v,
|
|
1218
|
+
() => H(v.value),
|
|
1219
1219
|
{ flush: l, deep: i, eventFilter: f }
|
|
1220
1220
|
);
|
|
1221
1221
|
u && s && Ge(() => {
|
|
1222
|
-
t instanceof Storage ? N(u, "storage",
|
|
1223
|
-
}),
|
|
1224
|
-
function
|
|
1222
|
+
t instanceof Storage ? N(u, "storage", k) : N(u, Kt, T), C && k();
|
|
1223
|
+
}), C || k();
|
|
1224
|
+
function R(_, I) {
|
|
1225
1225
|
if (u) {
|
|
1226
1226
|
const B = {
|
|
1227
1227
|
key: e,
|
|
1228
|
-
oldValue:
|
|
1229
|
-
newValue:
|
|
1228
|
+
oldValue: _,
|
|
1229
|
+
newValue: I,
|
|
1230
1230
|
storageArea: t
|
|
1231
1231
|
};
|
|
1232
1232
|
u.dispatchEvent(t instanceof Storage ? new StorageEvent("storage", B) : new CustomEvent(Kt, {
|
|
@@ -1234,50 +1234,50 @@ function Bn(e, r, t, n = {}) {
|
|
|
1234
1234
|
}));
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
function H(
|
|
1237
|
+
function H(_) {
|
|
1238
1238
|
try {
|
|
1239
|
-
const
|
|
1240
|
-
if (
|
|
1241
|
-
I
|
|
1239
|
+
const I = t.getItem(e);
|
|
1240
|
+
if (_ == null)
|
|
1241
|
+
R(I, null), t.removeItem(e);
|
|
1242
1242
|
else {
|
|
1243
|
-
const B =
|
|
1244
|
-
|
|
1243
|
+
const B = p.write(_);
|
|
1244
|
+
I !== B && (t.setItem(e, B), R(I, B));
|
|
1245
1245
|
}
|
|
1246
|
-
} catch (
|
|
1247
|
-
|
|
1246
|
+
} catch (I) {
|
|
1247
|
+
g(I);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
const
|
|
1252
|
-
if (
|
|
1253
|
-
return o && b != null && t.setItem(e,
|
|
1254
|
-
if (!
|
|
1255
|
-
const B =
|
|
1256
|
-
return typeof c == "function" ? c(B, b) :
|
|
1257
|
-
} else return typeof
|
|
1250
|
+
function y(_) {
|
|
1251
|
+
const I = _ ? _.newValue : t.getItem(e);
|
|
1252
|
+
if (I == null)
|
|
1253
|
+
return o && b != null && t.setItem(e, p.write(b)), b;
|
|
1254
|
+
if (!_ && c) {
|
|
1255
|
+
const B = p.read(I);
|
|
1256
|
+
return typeof c == "function" ? c(B, b) : x === "object" && !Array.isArray(B) ? { ...b, ...B } : B;
|
|
1257
|
+
} else return typeof I != "string" ? I : p.read(I);
|
|
1258
1258
|
}
|
|
1259
|
-
function _
|
|
1260
|
-
if (!(
|
|
1261
|
-
if (
|
|
1262
|
-
|
|
1259
|
+
function k(_) {
|
|
1260
|
+
if (!(_ && _.storageArea !== t)) {
|
|
1261
|
+
if (_ && _.key == null) {
|
|
1262
|
+
v.value = b;
|
|
1263
1263
|
return;
|
|
1264
1264
|
}
|
|
1265
|
-
if (!(
|
|
1265
|
+
if (!(_ && _.key !== e)) {
|
|
1266
1266
|
S();
|
|
1267
1267
|
try {
|
|
1268
|
-
(
|
|
1269
|
-
} catch (
|
|
1270
|
-
|
|
1268
|
+
(_ == null ? void 0 : _.newValue) !== p.write(v.value) && (v.value = y(_));
|
|
1269
|
+
} catch (I) {
|
|
1270
|
+
g(I);
|
|
1271
1271
|
} finally {
|
|
1272
|
-
|
|
1272
|
+
_ ? dt($) : $();
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
function T(
|
|
1278
|
-
_
|
|
1277
|
+
function T(_) {
|
|
1278
|
+
k(_.detail);
|
|
1279
1279
|
}
|
|
1280
|
-
return
|
|
1280
|
+
return v;
|
|
1281
1281
|
}
|
|
1282
1282
|
function Vn(e) {
|
|
1283
1283
|
const r = et(), t = un(
|
|
@@ -1288,47 +1288,47 @@ function Vn(e) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function Dn(e, r = {}) {
|
|
1290
1290
|
var t, n;
|
|
1291
|
-
const a =
|
|
1291
|
+
const a = M(!1), l = Ye(null);
|
|
1292
1292
|
let i = 0, s = !0;
|
|
1293
1293
|
if (Me) {
|
|
1294
|
-
const o = typeof r == "function" ? { onDrop: r } : r, c = (t = o.multiple) != null ? t : !0, d = (n = o.preventDefaultForUnhandled) != null ? n : !1, u = (
|
|
1295
|
-
var b,
|
|
1296
|
-
const
|
|
1297
|
-
return
|
|
1298
|
-
}, f = (
|
|
1294
|
+
const o = typeof r == "function" ? { onDrop: r } : r, c = (t = o.multiple) != null ? t : !0, d = (n = o.preventDefaultForUnhandled) != null ? n : !1, u = (v) => {
|
|
1295
|
+
var b, x;
|
|
1296
|
+
const p = Array.from((x = (b = v.dataTransfer) == null ? void 0 : b.files) != null ? x : []);
|
|
1297
|
+
return p.length === 0 ? null : c ? p : [p[0]];
|
|
1298
|
+
}, f = (v) => {
|
|
1299
1299
|
if (o.dataTypes) {
|
|
1300
|
-
const b =
|
|
1301
|
-
return typeof b == "function" ? b(
|
|
1300
|
+
const b = h(o.dataTypes);
|
|
1301
|
+
return typeof b == "function" ? b(v) : b ? b.some((x) => v.includes(x)) : !0;
|
|
1302
1302
|
}
|
|
1303
1303
|
return !0;
|
|
1304
|
-
},
|
|
1305
|
-
var b,
|
|
1306
|
-
const
|
|
1307
|
-
return
|
|
1308
|
-
},
|
|
1309
|
-
var
|
|
1310
|
-
if (s =
|
|
1311
|
-
d &&
|
|
1304
|
+
}, g = (v) => {
|
|
1305
|
+
var b, x;
|
|
1306
|
+
const p = Array.from((x = (b = v.dataTransfer) == null ? void 0 : b.items) != null ? x : []), S = p.map((H) => H.type), $ = f(S), R = c || p.length <= 1;
|
|
1307
|
+
return $ && R;
|
|
1308
|
+
}, C = (v, b) => {
|
|
1309
|
+
var x, p, S, $;
|
|
1310
|
+
if (s = g(v), !s) {
|
|
1311
|
+
d && v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "none");
|
|
1312
1312
|
return;
|
|
1313
1313
|
}
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1314
|
+
v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "copy");
|
|
1315
|
+
const R = u(v);
|
|
1316
1316
|
switch (b) {
|
|
1317
1317
|
case "enter":
|
|
1318
|
-
i += 1, a.value = !0, (
|
|
1318
|
+
i += 1, a.value = !0, (x = o.onEnter) == null || x.call(o, null, v);
|
|
1319
1319
|
break;
|
|
1320
1320
|
case "over":
|
|
1321
|
-
(
|
|
1321
|
+
(p = o.onOver) == null || p.call(o, null, v);
|
|
1322
1322
|
break;
|
|
1323
1323
|
case "leave":
|
|
1324
|
-
i -= 1, i === 0 && (a.value = !1), (S = o.onLeave) == null || S.call(o, null,
|
|
1324
|
+
i -= 1, i === 0 && (a.value = !1), (S = o.onLeave) == null || S.call(o, null, v);
|
|
1325
1325
|
break;
|
|
1326
1326
|
case "drop":
|
|
1327
|
-
i = 0, a.value = !1, s && (l.value =
|
|
1327
|
+
i = 0, a.value = !1, s && (l.value = R, ($ = o.onDrop) == null || $.call(o, R, v));
|
|
1328
1328
|
break;
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
|
-
N(e, "dragenter", (
|
|
1331
|
+
N(e, "dragenter", (v) => C(v, "enter")), N(e, "dragover", (v) => C(v, "over")), N(e, "dragleave", (v) => C(v, "leave")), N(e, "drop", (v) => C(v, "drop"));
|
|
1332
1332
|
}
|
|
1333
1333
|
return {
|
|
1334
1334
|
files: l,
|
|
@@ -1336,13 +1336,13 @@ function Dn(e, r = {}) {
|
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
1338
1338
|
function At(e, r, t = {}) {
|
|
1339
|
-
const { window: n =
|
|
1339
|
+
const { window: n = se, ...a } = t;
|
|
1340
1340
|
let l;
|
|
1341
1341
|
const i = Ct(() => n && "ResizeObserver" in n), s = () => {
|
|
1342
1342
|
l && (l.disconnect(), l = void 0);
|
|
1343
1343
|
}, o = m(() => {
|
|
1344
1344
|
const u = K(e);
|
|
1345
|
-
return Array.isArray(u) ? u.map((f) =>
|
|
1345
|
+
return Array.isArray(u) ? u.map((f) => oe(f)) : [oe(u)];
|
|
1346
1346
|
}), c = Q(
|
|
1347
1347
|
o,
|
|
1348
1348
|
(u) => {
|
|
@@ -1368,20 +1368,20 @@ function Ae(e, r = {}) {
|
|
|
1368
1368
|
windowScroll: a = !0,
|
|
1369
1369
|
immediate: l = !0,
|
|
1370
1370
|
updateTiming: i = "sync"
|
|
1371
|
-
} = r, s =
|
|
1372
|
-
function
|
|
1373
|
-
const
|
|
1374
|
-
if (!
|
|
1375
|
-
t && (s.value = 0, o.value = 0, c.value = 0, d.value = 0, u.value = 0, f.value = 0,
|
|
1371
|
+
} = r, s = M(0), o = M(0), c = M(0), d = M(0), u = M(0), f = M(0), g = M(0), C = M(0);
|
|
1372
|
+
function v() {
|
|
1373
|
+
const x = oe(e);
|
|
1374
|
+
if (!x) {
|
|
1375
|
+
t && (s.value = 0, o.value = 0, c.value = 0, d.value = 0, u.value = 0, f.value = 0, g.value = 0, C.value = 0);
|
|
1376
1376
|
return;
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1379
|
-
s.value =
|
|
1378
|
+
const p = x.getBoundingClientRect();
|
|
1379
|
+
s.value = p.height, o.value = p.bottom, c.value = p.left, d.value = p.right, u.value = p.top, f.value = p.width, g.value = p.x, C.value = p.y;
|
|
1380
1380
|
}
|
|
1381
1381
|
function b() {
|
|
1382
|
-
i === "sync" ?
|
|
1382
|
+
i === "sync" ? v() : i === "next-frame" && requestAnimationFrame(() => v());
|
|
1383
1383
|
}
|
|
1384
|
-
return At(e, b), Q(() =>
|
|
1384
|
+
return At(e, b), Q(() => oe(e), (x) => !x && b()), Mt(e, b, {
|
|
1385
1385
|
attributeFilter: ["style", "class"]
|
|
1386
1386
|
}), a && N("scroll", b, { capture: !0, passive: !0 }), n && N("resize", b, { passive: !0 }), Ge(() => {
|
|
1387
1387
|
l && b();
|
|
@@ -1392,8 +1392,8 @@ function Ae(e, r = {}) {
|
|
|
1392
1392
|
right: d,
|
|
1393
1393
|
top: u,
|
|
1394
1394
|
width: f,
|
|
1395
|
-
x:
|
|
1396
|
-
y:
|
|
1395
|
+
x: g,
|
|
1396
|
+
y: C,
|
|
1397
1397
|
update: b
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
@@ -1401,8 +1401,8 @@ function Se(e, r = {}) {
|
|
|
1401
1401
|
const {
|
|
1402
1402
|
delayEnter: t = 0,
|
|
1403
1403
|
delayLeave: n = 0,
|
|
1404
|
-
window: a =
|
|
1405
|
-
} = r, l =
|
|
1404
|
+
window: a = se
|
|
1405
|
+
} = r, l = M(!1);
|
|
1406
1406
|
let i;
|
|
1407
1407
|
const s = (o) => {
|
|
1408
1408
|
const c = o ? t : n;
|
|
@@ -1419,7 +1419,7 @@ const Pn = {
|
|
|
1419
1419
|
function On(e = {}) {
|
|
1420
1420
|
const {
|
|
1421
1421
|
document: r = $n
|
|
1422
|
-
} = e, t =
|
|
1422
|
+
} = e, t = M(null), { on: n, trigger: a } = Gt(), { on: l, trigger: i } = Gt();
|
|
1423
1423
|
let s;
|
|
1424
1424
|
r && (s = r.createElement("input"), s.type = "file", s.onchange = (d) => {
|
|
1425
1425
|
const u = d.target;
|
|
@@ -1452,8 +1452,8 @@ function Ln(e, r = {}) {
|
|
|
1452
1452
|
const {
|
|
1453
1453
|
throttle: t = 0,
|
|
1454
1454
|
idle: n = 200,
|
|
1455
|
-
onStop: a =
|
|
1456
|
-
onScroll: l =
|
|
1455
|
+
onStop: a = we,
|
|
1456
|
+
onScroll: l = we,
|
|
1457
1457
|
offset: i = {
|
|
1458
1458
|
left: 0,
|
|
1459
1459
|
right: 0,
|
|
@@ -1465,84 +1465,84 @@ function Ln(e, r = {}) {
|
|
|
1465
1465
|
passive: !0
|
|
1466
1466
|
},
|
|
1467
1467
|
behavior: o = "auto",
|
|
1468
|
-
window: c =
|
|
1469
|
-
onError: d = (
|
|
1470
|
-
console.error(
|
|
1468
|
+
window: c = se,
|
|
1469
|
+
onError: d = (y) => {
|
|
1470
|
+
console.error(y);
|
|
1471
1471
|
}
|
|
1472
|
-
} = r, u =
|
|
1472
|
+
} = r, u = M(0), f = M(0), g = m({
|
|
1473
1473
|
get() {
|
|
1474
1474
|
return u.value;
|
|
1475
1475
|
},
|
|
1476
|
-
set(
|
|
1477
|
-
|
|
1476
|
+
set(y) {
|
|
1477
|
+
v(y, void 0);
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1479
|
+
}), C = m({
|
|
1480
1480
|
get() {
|
|
1481
1481
|
return f.value;
|
|
1482
1482
|
},
|
|
1483
|
-
set(
|
|
1484
|
-
|
|
1483
|
+
set(y) {
|
|
1484
|
+
v(void 0, y);
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
|
-
function
|
|
1488
|
-
var T,
|
|
1487
|
+
function v(y, k) {
|
|
1488
|
+
var T, _, I, B;
|
|
1489
1489
|
if (!c)
|
|
1490
1490
|
return;
|
|
1491
1491
|
const z = K(e);
|
|
1492
1492
|
if (!z)
|
|
1493
1493
|
return;
|
|
1494
|
-
(
|
|
1495
|
-
top: (T = K(
|
|
1496
|
-
left: (
|
|
1494
|
+
(I = z instanceof Document ? c.document.body : z) == null || I.scrollTo({
|
|
1495
|
+
top: (T = K(k)) != null ? T : C.value,
|
|
1496
|
+
left: (_ = K(y)) != null ? _ : g.value,
|
|
1497
1497
|
behavior: K(o)
|
|
1498
1498
|
});
|
|
1499
1499
|
const j = ((B = z == null ? void 0 : z.document) == null ? void 0 : B.documentElement) || (z == null ? void 0 : z.documentElement) || z;
|
|
1500
|
-
|
|
1500
|
+
g != null && (u.value = j.scrollLeft), C != null && (f.value = j.scrollTop);
|
|
1501
1501
|
}
|
|
1502
|
-
const b =
|
|
1502
|
+
const b = M(!1), x = Fe({
|
|
1503
1503
|
left: !0,
|
|
1504
1504
|
right: !1,
|
|
1505
1505
|
top: !0,
|
|
1506
1506
|
bottom: !1
|
|
1507
|
-
}),
|
|
1507
|
+
}), p = Fe({
|
|
1508
1508
|
left: !1,
|
|
1509
1509
|
right: !1,
|
|
1510
1510
|
top: !1,
|
|
1511
1511
|
bottom: !1
|
|
1512
|
-
}), S = (
|
|
1513
|
-
b.value && (b.value = !1,
|
|
1514
|
-
},
|
|
1515
|
-
var
|
|
1512
|
+
}), S = (y) => {
|
|
1513
|
+
b.value && (b.value = !1, p.left = !1, p.right = !1, p.top = !1, p.bottom = !1, a(y));
|
|
1514
|
+
}, $ = dr(S, t + n), R = (y) => {
|
|
1515
|
+
var k;
|
|
1516
1516
|
if (!c)
|
|
1517
1517
|
return;
|
|
1518
|
-
const T = ((
|
|
1519
|
-
|
|
1518
|
+
const T = ((k = y == null ? void 0 : y.document) == null ? void 0 : k.documentElement) || (y == null ? void 0 : y.documentElement) || oe(y), { display: _, flexDirection: I } = getComputedStyle(T), B = T.scrollLeft;
|
|
1519
|
+
p.left = B < u.value, p.right = B > u.value;
|
|
1520
1520
|
const z = Math.abs(B) <= (i.left || 0), j = Math.abs(B) + T.clientWidth >= T.scrollWidth - (i.right || 0) - Jt;
|
|
1521
|
-
|
|
1521
|
+
_ === "flex" && I === "row-reverse" ? (x.left = j, x.right = z) : (x.left = z, x.right = j), u.value = B;
|
|
1522
1522
|
let X = T.scrollTop;
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1526
|
-
}, H = (
|
|
1527
|
-
var
|
|
1523
|
+
y === c.document && !X && (X = c.document.body.scrollTop), p.top = X < f.value, p.bottom = X > f.value;
|
|
1524
|
+
const le = Math.abs(X) <= (i.top || 0), V = Math.abs(X) + T.clientHeight >= T.scrollHeight - (i.bottom || 0) - Jt;
|
|
1525
|
+
_ === "flex" && I === "column-reverse" ? (x.top = V, x.bottom = le) : (x.top = le, x.bottom = V), f.value = X;
|
|
1526
|
+
}, H = (y) => {
|
|
1527
|
+
var k;
|
|
1528
1528
|
if (!c)
|
|
1529
1529
|
return;
|
|
1530
|
-
const T = (
|
|
1531
|
-
|
|
1530
|
+
const T = (k = y.target.documentElement) != null ? k : y.target;
|
|
1531
|
+
R(T), b.value = !0, $(y), l(y);
|
|
1532
1532
|
};
|
|
1533
1533
|
return N(
|
|
1534
1534
|
e,
|
|
1535
1535
|
"scroll",
|
|
1536
|
-
t ?
|
|
1536
|
+
t ? xn(H, t, !0, !1) : H,
|
|
1537
1537
|
s
|
|
1538
1538
|
), Ge(() => {
|
|
1539
1539
|
try {
|
|
1540
|
-
const
|
|
1541
|
-
if (!
|
|
1540
|
+
const y = K(e);
|
|
1541
|
+
if (!y)
|
|
1542
1542
|
return;
|
|
1543
|
-
|
|
1544
|
-
} catch (
|
|
1545
|
-
d(
|
|
1543
|
+
R(y);
|
|
1544
|
+
} catch (y) {
|
|
1545
|
+
d(y);
|
|
1546
1546
|
}
|
|
1547
1547
|
}), N(
|
|
1548
1548
|
e,
|
|
@@ -1550,19 +1550,19 @@ function Ln(e, r = {}) {
|
|
|
1550
1550
|
S,
|
|
1551
1551
|
s
|
|
1552
1552
|
), {
|
|
1553
|
-
x:
|
|
1554
|
-
y:
|
|
1553
|
+
x: g,
|
|
1554
|
+
y: C,
|
|
1555
1555
|
isScrolling: b,
|
|
1556
|
-
arrivedState:
|
|
1557
|
-
directions:
|
|
1556
|
+
arrivedState: x,
|
|
1557
|
+
directions: p,
|
|
1558
1558
|
measure() {
|
|
1559
|
-
const
|
|
1560
|
-
c &&
|
|
1559
|
+
const y = K(e);
|
|
1560
|
+
c && y && R(y);
|
|
1561
1561
|
}
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
1564
|
function fr(e, r, t = {}) {
|
|
1565
|
-
const { window: n =
|
|
1565
|
+
const { window: n = se } = t;
|
|
1566
1566
|
return Bn(e, r, n == null ? void 0 : n.localStorage, t);
|
|
1567
1567
|
}
|
|
1568
1568
|
const Fn = {
|
|
@@ -1578,53 +1578,53 @@ const Fn = {
|
|
|
1578
1578
|
function Wn(e = {}) {
|
|
1579
1579
|
const {
|
|
1580
1580
|
reactive: r = !1,
|
|
1581
|
-
target: t =
|
|
1581
|
+
target: t = se,
|
|
1582
1582
|
aliasMap: n = Fn,
|
|
1583
1583
|
passive: a = !0,
|
|
1584
|
-
onEventFired: l =
|
|
1584
|
+
onEventFired: l = we
|
|
1585
1585
|
} = e, i = Fe(/* @__PURE__ */ new Set()), s = {
|
|
1586
1586
|
toJSON() {
|
|
1587
1587
|
return {};
|
|
1588
1588
|
},
|
|
1589
1589
|
current: i
|
|
1590
1590
|
}, o = r ? Fe(s) : s, c = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
1591
|
-
function u(
|
|
1592
|
-
|
|
1591
|
+
function u(v, b) {
|
|
1592
|
+
v in o && (r ? o[v] = b : o[v].value = b);
|
|
1593
1593
|
}
|
|
1594
1594
|
function f() {
|
|
1595
1595
|
i.clear();
|
|
1596
|
-
for (const
|
|
1597
|
-
u(
|
|
1596
|
+
for (const v of d)
|
|
1597
|
+
u(v, !1);
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
var
|
|
1601
|
-
const S = (
|
|
1599
|
+
function g(v, b) {
|
|
1600
|
+
var x, p;
|
|
1601
|
+
const S = (x = v.key) == null ? void 0 : x.toLowerCase(), R = [(p = v.code) == null ? void 0 : p.toLowerCase(), S].filter(Boolean);
|
|
1602
1602
|
S && (b ? i.add(S) : i.delete(S));
|
|
1603
|
-
for (const H of
|
|
1603
|
+
for (const H of R)
|
|
1604
1604
|
d.add(H), u(H, b);
|
|
1605
1605
|
S === "meta" && !b ? (c.forEach((H) => {
|
|
1606
1606
|
i.delete(H), u(H, !1);
|
|
1607
|
-
}), c.clear()) : typeof
|
|
1607
|
+
}), c.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...R].forEach((H) => c.add(H));
|
|
1608
1608
|
}
|
|
1609
|
-
N(t, "keydown", (
|
|
1610
|
-
const
|
|
1609
|
+
N(t, "keydown", (v) => (g(v, !0), l(v)), { passive: a }), N(t, "keyup", (v) => (g(v, !1), l(v)), { passive: a }), N("blur", f, { passive: !0 }), N("focus", f, { passive: !0 });
|
|
1610
|
+
const C = new Proxy(
|
|
1611
1611
|
o,
|
|
1612
1612
|
{
|
|
1613
|
-
get(
|
|
1613
|
+
get(v, b, x) {
|
|
1614
1614
|
if (typeof b != "string")
|
|
1615
|
-
return Reflect.get(
|
|
1615
|
+
return Reflect.get(v, b, x);
|
|
1616
1616
|
if (b = b.toLowerCase(), b in n && (b = n[b]), !(b in o))
|
|
1617
1617
|
if (/[+_-]/.test(b)) {
|
|
1618
|
-
const S = b.split(/[+_-]/g).map((
|
|
1619
|
-
o[b] = m(() => S.every((
|
|
1618
|
+
const S = b.split(/[+_-]/g).map(($) => $.trim());
|
|
1619
|
+
o[b] = m(() => S.every(($) => K(C[$])));
|
|
1620
1620
|
} else
|
|
1621
|
-
o[b] =
|
|
1622
|
-
const
|
|
1623
|
-
return r ? K(
|
|
1621
|
+
o[b] = M(!1);
|
|
1622
|
+
const p = Reflect.get(v, b, x);
|
|
1623
|
+
return r ? K(p) : p;
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
);
|
|
1627
|
-
return
|
|
1627
|
+
return C;
|
|
1628
1628
|
}
|
|
1629
1629
|
const Nn = {
|
|
1630
1630
|
page: (e) => [e.pageX, e.pageY],
|
|
@@ -1638,47 +1638,47 @@ function ht(e = {}) {
|
|
|
1638
1638
|
touch: t = !0,
|
|
1639
1639
|
resetOnTouchEnds: n = !1,
|
|
1640
1640
|
initialValue: a = { x: 0, y: 0 },
|
|
1641
|
-
window: l =
|
|
1641
|
+
window: l = se,
|
|
1642
1642
|
target: i = l,
|
|
1643
1643
|
scroll: s = !0,
|
|
1644
1644
|
eventFilter: o
|
|
1645
1645
|
} = e;
|
|
1646
1646
|
let c = null, d = 0, u = 0;
|
|
1647
|
-
const f =
|
|
1648
|
-
const
|
|
1649
|
-
c =
|
|
1650
|
-
},
|
|
1651
|
-
if (
|
|
1652
|
-
const
|
|
1653
|
-
|
|
1647
|
+
const f = M(a.x), g = M(a.y), C = M(null), v = typeof r == "function" ? r : Nn[r], b = (y) => {
|
|
1648
|
+
const k = v(y);
|
|
1649
|
+
c = y, k && ([f.value, g.value] = k, C.value = "mouse"), l && (d = l.scrollX, u = l.scrollY);
|
|
1650
|
+
}, x = (y) => {
|
|
1651
|
+
if (y.touches.length > 0) {
|
|
1652
|
+
const k = v(y.touches[0]);
|
|
1653
|
+
k && ([f.value, g.value] = k, C.value = "touch");
|
|
1654
1654
|
}
|
|
1655
|
-
},
|
|
1655
|
+
}, p = () => {
|
|
1656
1656
|
if (!c || !l)
|
|
1657
1657
|
return;
|
|
1658
|
-
const
|
|
1659
|
-
c instanceof MouseEvent &&
|
|
1658
|
+
const y = v(c);
|
|
1659
|
+
c instanceof MouseEvent && y && (f.value = y[0] + l.scrollX - d, g.value = y[1] + l.scrollY - u);
|
|
1660
1660
|
}, S = () => {
|
|
1661
|
-
f.value = a.x,
|
|
1662
|
-
},
|
|
1661
|
+
f.value = a.x, g.value = a.y;
|
|
1662
|
+
}, $ = o ? (y) => o(() => b(y), {}) : (y) => b(y), R = o ? (y) => o(() => x(y), {}) : (y) => x(y), H = o ? () => o(() => p(), {}) : () => p();
|
|
1663
1663
|
if (i) {
|
|
1664
|
-
const
|
|
1665
|
-
N(i, ["mousemove", "dragover"],
|
|
1664
|
+
const y = { passive: !0 };
|
|
1665
|
+
N(i, ["mousemove", "dragover"], $, y), t && r !== "movement" && (N(i, ["touchstart", "touchmove"], R, y), n && N(i, "touchend", S, y)), s && r === "page" && N(l, "scroll", H, { passive: !0 });
|
|
1666
1666
|
}
|
|
1667
1667
|
return {
|
|
1668
1668
|
x: f,
|
|
1669
|
-
y,
|
|
1670
|
-
sourceType:
|
|
1669
|
+
y: g,
|
|
1670
|
+
sourceType: C
|
|
1671
1671
|
};
|
|
1672
1672
|
}
|
|
1673
1673
|
function vr(e = Vn()) {
|
|
1674
1674
|
const r = Ye(), t = () => {
|
|
1675
|
-
const n =
|
|
1675
|
+
const n = oe(e);
|
|
1676
1676
|
n && (r.value = n.parentElement);
|
|
1677
1677
|
};
|
|
1678
1678
|
return Ge(t), Q(() => K(e), t), r;
|
|
1679
1679
|
}
|
|
1680
1680
|
function jn(e) {
|
|
1681
|
-
const r =
|
|
1681
|
+
const r = M(0), t = m(() => oe(e)), n = () => {
|
|
1682
1682
|
t.value && (r.value = t.value.scrollHeight);
|
|
1683
1683
|
};
|
|
1684
1684
|
return n(), Ge(n), At(() => t.value, n), Mt(() => t.value, n, {
|
|
@@ -1691,7 +1691,7 @@ function Xn(e, r = {}) {
|
|
|
1691
1691
|
const {
|
|
1692
1692
|
initialWidth: t = Number.POSITIVE_INFINITY,
|
|
1693
1693
|
listenOrientation: n = !0
|
|
1694
|
-
} = r, a =
|
|
1694
|
+
} = r, a = M(t), l = m(() => oe(e)), i = () => {
|
|
1695
1695
|
l.value && (a.value = l.value.clientHeight);
|
|
1696
1696
|
};
|
|
1697
1697
|
if (i(), Ge(i), N("resize", i, { passive: !0 }), At(() => l.value, i), Mt(() => l.value, i, {
|
|
@@ -1731,8 +1731,8 @@ const me = [
|
|
|
1731
1731
|
];
|
|
1732
1732
|
function Za() {
|
|
1733
1733
|
if (!Me)
|
|
1734
|
-
return
|
|
1735
|
-
const e =
|
|
1734
|
+
return M("dark");
|
|
1735
|
+
const e = M(document.documentElement.dataset.scheme);
|
|
1736
1736
|
return new MutationObserver((t) => {
|
|
1737
1737
|
t.forEach((n) => {
|
|
1738
1738
|
n.type === "attributes" && n.attributeName === "data-scheme" && (e.value = document.documentElement.dataset.scheme);
|
|
@@ -1746,39 +1746,39 @@ function Qa() {
|
|
|
1746
1746
|
return $e("currentThemeScheme", null);
|
|
1747
1747
|
}
|
|
1748
1748
|
function Yn() {
|
|
1749
|
-
return $e("currentThemeData",
|
|
1749
|
+
return $e("currentThemeData", M(gr));
|
|
1750
1750
|
}
|
|
1751
1751
|
function eo() {
|
|
1752
|
-
return $e("currentThemeName",
|
|
1752
|
+
return $e("currentThemeName", M("default"));
|
|
1753
1753
|
}
|
|
1754
1754
|
function Un(e, r, t = {}) {
|
|
1755
1755
|
const n = me, a = qe;
|
|
1756
1756
|
return t.primary === void 0 && (t.primary = n), t.secondary === void 0 && (t.secondary = n), t.tertiary === void 0 && (t.tertiary = n), t.error === void 0 && (t.error = n), t.surface === void 0 && (t.surface = a), m(() => ({
|
|
1757
1757
|
name: e,
|
|
1758
1758
|
colors: {
|
|
1759
|
-
primary: Ke(
|
|
1760
|
-
secondary: Ke(
|
|
1761
|
-
tertiary: Ke(
|
|
1762
|
-
error: Ke(
|
|
1763
|
-
surface: Ke(
|
|
1759
|
+
primary: Ke(h(r.primary), t.primary),
|
|
1760
|
+
secondary: Ke(h(r.secondary), t.secondary),
|
|
1761
|
+
tertiary: Ke(h(r.tertiary), t.tertiary),
|
|
1762
|
+
error: Ke(h(r.error), t.error),
|
|
1763
|
+
surface: Ke(h(r.surface), t.surface)
|
|
1764
1764
|
}
|
|
1765
1765
|
}));
|
|
1766
1766
|
}
|
|
1767
1767
|
function Gn(e, r = me) {
|
|
1768
1768
|
return m(() => {
|
|
1769
|
-
const t =
|
|
1769
|
+
const t = h(e);
|
|
1770
1770
|
return typeof t == "string" ? Be(t, r).value.map((n) => n.toHexString()) : t;
|
|
1771
1771
|
});
|
|
1772
1772
|
}
|
|
1773
1773
|
function pr(e) {
|
|
1774
|
-
const r =
|
|
1774
|
+
const r = M(e);
|
|
1775
1775
|
return {
|
|
1776
1776
|
...{
|
|
1777
1777
|
...Object.keys(r.value.colors).map((l) => {
|
|
1778
1778
|
const i = l, s = r.value.colors[i];
|
|
1779
1779
|
return Gn(s, i === "surface" ? qe : me).value.reduce((d, u, f) => {
|
|
1780
|
-
const
|
|
1781
|
-
return d[`--r-color-${i}-${f}`] = `${
|
|
1780
|
+
const g = E(u).toRgb();
|
|
1781
|
+
return d[`--r-color-${i}-${f}`] = `${g.r} ${g.g} ${g.b}`, d;
|
|
1782
1782
|
}, {});
|
|
1783
1783
|
}).reduce((l, i) => ({
|
|
1784
1784
|
...l,
|
|
@@ -1793,7 +1793,7 @@ function pr(e) {
|
|
|
1793
1793
|
};
|
|
1794
1794
|
}
|
|
1795
1795
|
function Ht(e) {
|
|
1796
|
-
const r =
|
|
1796
|
+
const r = M("");
|
|
1797
1797
|
return he(() => {
|
|
1798
1798
|
e.id ? r.value = e.id : r.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
|
|
1799
1799
|
}), r;
|
|
@@ -1808,7 +1808,7 @@ function Kn() {
|
|
|
1808
1808
|
attributeFilter: ["data-scheme"]
|
|
1809
1809
|
}), e;
|
|
1810
1810
|
}
|
|
1811
|
-
const Tt = 9, Jn = 8, Zn = 7, tt = 7, Qn = 7, Ne = 3, el = 6, Ee = 5, hr = 6, rt = 3, tl = 4,
|
|
1811
|
+
const Tt = 9, Jn = 8, Zn = 7, tt = 7, Qn = 7, Ne = 3, el = 6, Ee = 5, hr = 6, rt = 3, tl = 4, Rt = 0.25, rl = 0.3, mt = 1, nl = 2, je = 6, ll = 5, Xe = 4, mr = 5, It = 0.08, al = 0.15, De = M("#0067cc"), Pe = M("#5999A6"), Oe = M("#F76C22"), Le = M("#F95858"), Ce = M("#121212"), ol = m(() => te({
|
|
1812
1812
|
color: "surface",
|
|
1813
1813
|
type: "border",
|
|
1814
1814
|
index: {
|
|
@@ -1822,7 +1822,7 @@ function sl(e) {
|
|
|
1822
1822
|
light: je
|
|
1823
1823
|
});
|
|
1824
1824
|
}
|
|
1825
|
-
const to = m(() => ke(
|
|
1825
|
+
const to = m(() => ke(h(De), me).colors), ro = m(() => ke(h(Pe), me).colors), no = m(() => ke(h(Oe), me).colors), lo = m(() => ke(h(Le), me).colors), ao = m(() => ke(h(Ce), qe).colors), gr = Un("default", {
|
|
1826
1826
|
primary: De,
|
|
1827
1827
|
secondary: Pe,
|
|
1828
1828
|
tertiary: Oe,
|
|
@@ -1831,7 +1831,7 @@ const to = m(() => ke(v(De), me).colors), ro = m(() => ke(v(Pe), me).colors), no
|
|
|
1831
1831
|
});
|
|
1832
1832
|
function nt(e, r) {
|
|
1833
1833
|
return m(() => {
|
|
1834
|
-
switch (
|
|
1834
|
+
switch (h(e)) {
|
|
1835
1835
|
case "filled":
|
|
1836
1836
|
return at(r).value;
|
|
1837
1837
|
case "light":
|
|
@@ -1843,18 +1843,18 @@ function nt(e, r) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
function il(e) {
|
|
1845
1845
|
return m(() => {
|
|
1846
|
-
const r =
|
|
1846
|
+
const r = h(e);
|
|
1847
1847
|
switch (r) {
|
|
1848
1848
|
case "surface":
|
|
1849
|
-
return E(
|
|
1849
|
+
return E(h(Ce));
|
|
1850
1850
|
case "primary":
|
|
1851
|
-
return E(
|
|
1851
|
+
return E(h(De));
|
|
1852
1852
|
case "secondary":
|
|
1853
|
-
return E(
|
|
1853
|
+
return E(h(Pe));
|
|
1854
1854
|
case "tertiary":
|
|
1855
|
-
return E(
|
|
1855
|
+
return E(h(Oe));
|
|
1856
1856
|
case "error":
|
|
1857
|
-
return E(
|
|
1857
|
+
return E(h(Le));
|
|
1858
1858
|
default:
|
|
1859
1859
|
return E(r);
|
|
1860
1860
|
}
|
|
@@ -1874,7 +1874,7 @@ function Be(e, r = me) {
|
|
|
1874
1874
|
});
|
|
1875
1875
|
}
|
|
1876
1876
|
function ul() {
|
|
1877
|
-
return m(() => ke(
|
|
1877
|
+
return m(() => ke(h(Ce), qe).colors);
|
|
1878
1878
|
}
|
|
1879
1879
|
function Et() {
|
|
1880
1880
|
return m(() => {
|
|
@@ -2076,14 +2076,14 @@ function te(e) {
|
|
|
2076
2076
|
function ct(e, r, t, n = 1) {
|
|
2077
2077
|
return m(() => {
|
|
2078
2078
|
const a = Be(e);
|
|
2079
|
-
return typeof t == "number" ? ut(
|
|
2079
|
+
return typeof t == "number" ? ut(h(a), r, t, t, n) : ut(h(a), r, t.dark, t.light, n);
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
function Qe(e, r, t = 1) {
|
|
2083
2083
|
return m(() => {
|
|
2084
2084
|
const {
|
|
2085
2085
|
colors: n
|
|
2086
|
-
} = ke(
|
|
2086
|
+
} = ke(h(Ce), qe);
|
|
2087
2087
|
return typeof r == "number" ? ut(n, e, r, r, t) : ut(n, e, r.dark, r.light, t);
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
@@ -2099,7 +2099,7 @@ function zt(e) {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
function Bt(e = "default", r = "primary") {
|
|
2101
2101
|
return m(() => {
|
|
2102
|
-
const t = Be(r).value, n = ke(
|
|
2102
|
+
const t = Be(r).value, n = ke(h(Ce), qe).colors;
|
|
2103
2103
|
return {
|
|
2104
2104
|
style: {
|
|
2105
2105
|
default: () => fl(n),
|
|
@@ -2110,7 +2110,7 @@ function Bt(e = "default", r = "primary") {
|
|
|
2110
2110
|
subtle: () => gl(t),
|
|
2111
2111
|
contrast: () => yl(t),
|
|
2112
2112
|
white: () => bl(t)
|
|
2113
|
-
}[
|
|
2113
|
+
}[h(e)](),
|
|
2114
2114
|
class: "custom-colors"
|
|
2115
2115
|
};
|
|
2116
2116
|
});
|
|
@@ -2141,11 +2141,11 @@ function vl(e) {
|
|
|
2141
2141
|
function pl(e) {
|
|
2142
2142
|
return {
|
|
2143
2143
|
"--d-border": "transparent",
|
|
2144
|
-
"--d-bg": e[Ee].clone().setAlpha(
|
|
2144
|
+
"--d-bg": e[Ee].clone().setAlpha(Rt).toHex8String(),
|
|
2145
2145
|
"--d-bg-h": e[Ee].clone().setAlpha(rl).toHex8String(),
|
|
2146
2146
|
"--d-text": e[Ne].toHexString(),
|
|
2147
2147
|
"--d-text-h": e[Ne].toHexString(),
|
|
2148
|
-
"--l-bg": e[Xe].clone().setAlpha(
|
|
2148
|
+
"--l-bg": e[Xe].clone().setAlpha(It).toHex8String(),
|
|
2149
2149
|
"--l-bg-h": e[Xe].clone().setAlpha(al).toHex8String(),
|
|
2150
2150
|
"--l-text": e[je].toHexString(),
|
|
2151
2151
|
"--l-text-h": e[je].toHexString(),
|
|
@@ -2155,12 +2155,12 @@ function pl(e) {
|
|
|
2155
2155
|
function hl(e) {
|
|
2156
2156
|
return {
|
|
2157
2157
|
"--d-bg": "transparent",
|
|
2158
|
-
"--d-bg-h": e[hr].clone().setAlpha(
|
|
2158
|
+
"--d-bg-h": e[hr].clone().setAlpha(Rt).toHex8String(),
|
|
2159
2159
|
"--d-text": e[Ne].toHexString(),
|
|
2160
2160
|
"--d-text-h": e[Ne].toHexString(),
|
|
2161
2161
|
"--d-border": e[tt].toHexString(),
|
|
2162
2162
|
"--l-bg": "transparent",
|
|
2163
|
-
"--l-bg-h": e[mr].clone().setAlpha(
|
|
2163
|
+
"--l-bg-h": e[mr].clone().setAlpha(It).toHex8String(),
|
|
2164
2164
|
"--l-text": e[je].toHexString(),
|
|
2165
2165
|
"--l-text-h": e[je].toHexString(),
|
|
2166
2166
|
"--l-border": e[rt].toHexString()
|
|
@@ -2181,12 +2181,12 @@ function ml(e) {
|
|
|
2181
2181
|
function gl(e) {
|
|
2182
2182
|
return {
|
|
2183
2183
|
"--d-bg": "transparent",
|
|
2184
|
-
"--d-bg-h": e[3].clone().setAlpha(
|
|
2184
|
+
"--d-bg-h": e[3].clone().setAlpha(Rt).toHex8String(),
|
|
2185
2185
|
"--d-text": e[2].toHexString(),
|
|
2186
2186
|
"--d-text-h": e[2].toHexString(),
|
|
2187
2187
|
"--d-border": "transparent",
|
|
2188
2188
|
"--l-bg": "transparent",
|
|
2189
|
-
"--l-bg-h": e[3].clone().setAlpha(
|
|
2189
|
+
"--l-bg-h": e[3].clone().setAlpha(It).toHex8String(),
|
|
2190
2190
|
"--l-text": e[5].toHexString(),
|
|
2191
2191
|
"--l-text-h": e[5].toHexString(),
|
|
2192
2192
|
"--l-border": "transparent"
|
|
@@ -2223,7 +2223,7 @@ function bl(e) {
|
|
|
2223
2223
|
function br(e, r = "default") {
|
|
2224
2224
|
return m(() => {
|
|
2225
2225
|
const t = Be(e).value, n = ul().value;
|
|
2226
|
-
switch (
|
|
2226
|
+
switch (h(r)) {
|
|
2227
2227
|
case "default":
|
|
2228
2228
|
return {
|
|
2229
2229
|
"--d-bg": n[Tt].toHexString(),
|
|
@@ -2249,10 +2249,10 @@ function br(e, r = "default") {
|
|
|
2249
2249
|
}
|
|
2250
2250
|
});
|
|
2251
2251
|
}
|
|
2252
|
-
const
|
|
2252
|
+
const wl = {
|
|
2253
2253
|
key: 2,
|
|
2254
2254
|
class: "i-fluent-person-24-filled"
|
|
2255
|
-
},
|
|
2255
|
+
}, xl = /* @__PURE__ */ W({
|
|
2256
2256
|
__name: "Avatar",
|
|
2257
2257
|
props: {
|
|
2258
2258
|
is: { default: "img" },
|
|
@@ -2265,7 +2265,7 @@ const xl = {
|
|
|
2265
2265
|
skeleton: { type: Boolean }
|
|
2266
2266
|
},
|
|
2267
2267
|
setup(e) {
|
|
2268
|
-
const r = e, t =
|
|
2268
|
+
const r = e, t = ae(r), n = m(() => r.name || ""), a = m(() => {
|
|
2269
2269
|
switch (r.size) {
|
|
2270
2270
|
case "xs":
|
|
2271
2271
|
return "--size: 2rem; --font-size: 1rem;";
|
|
@@ -2280,7 +2280,7 @@ const xl = {
|
|
|
2280
2280
|
default:
|
|
2281
2281
|
return typeof r.size == "number" && !Number.isNaN(Number(r.size)) ? `--size: ${r.size}rem; --font-size: ${r.size / 2}rem;` : "--size: 4rem;";
|
|
2282
2282
|
}
|
|
2283
|
-
}), l =
|
|
2283
|
+
}), l = M(!1), i = M(null);
|
|
2284
2284
|
function s() {
|
|
2285
2285
|
l.value = !0;
|
|
2286
2286
|
}
|
|
@@ -2292,26 +2292,26 @@ const xl = {
|
|
|
2292
2292
|
return u.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2);
|
|
2293
2293
|
}
|
|
2294
2294
|
const c = m(() => r.color), d = nt(r.variant, c);
|
|
2295
|
-
return (u, f) => u.skeleton ? (
|
|
2295
|
+
return (u, f) => u.skeleton ? (w(), A("div", {
|
|
2296
2296
|
key: 0,
|
|
2297
2297
|
class: "inline-block min-h-[--size] min-w-[--size] animate-pulse rounded-full bg-surface-variant-1",
|
|
2298
|
-
style: P([
|
|
2299
|
-
}, null, 4)) : u.src ? (
|
|
2298
|
+
style: P([h(t).style, a.value])
|
|
2299
|
+
}, null, 4)) : u.src ? (w(), G(xe(u.is), Z({
|
|
2300
2300
|
key: 1,
|
|
2301
2301
|
ref_key: "img",
|
|
2302
2302
|
ref: i,
|
|
2303
2303
|
alt: n.value,
|
|
2304
|
-
class: [[
|
|
2305
|
-
style: [
|
|
2304
|
+
class: [[h(t).class, h(d).class, { hidden: !l.value }], "inline-block h-[var(--size)] w-[var(--size)] rounded-full object-cover"],
|
|
2305
|
+
style: [h(t).style, h(d).style, a.value],
|
|
2306
2306
|
src: u.src
|
|
2307
|
-
}, u.$attrs, { onLoad: s }), null, 16, ["alt", "class", "style", "src"])) : !l.value || !u.src ? (
|
|
2307
|
+
}, u.$attrs, { onLoad: s }), null, 16, ["alt", "class", "style", "src"])) : !l.value || !u.src ? (w(), A("div", Z({
|
|
2308
2308
|
key: 2,
|
|
2309
|
-
class: ["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]", [
|
|
2310
|
-
style: [
|
|
2309
|
+
class: ["inline-block h-[--size] w-[--size] flex items-center justify-center border-4 rounded-full object-cover font-size-[--font-size]", [h(t).class, h(d).class]],
|
|
2310
|
+
style: [h(t).style, h(d).style, a.value]
|
|
2311
2311
|
}, u.$attrs), [
|
|
2312
|
-
u.$slots.default ? L(u.$slots, "default", { key: 0 }) : n.value ? (
|
|
2312
|
+
u.$slots.default ? L(u.$slots, "default", { key: 0 }) : n.value ? (w(), A(J, { key: 1 }, [
|
|
2313
2313
|
Ze(ne(o(n.value)), 1)
|
|
2314
|
-
], 64)) : (
|
|
2314
|
+
], 64)) : (w(), A("i", wl))
|
|
2315
2315
|
], 16)) : F("", !0);
|
|
2316
2316
|
}
|
|
2317
2317
|
}), Vt = /* @__PURE__ */ W({
|
|
@@ -2331,7 +2331,7 @@ const xl = {
|
|
|
2331
2331
|
outlineColor: {}
|
|
2332
2332
|
},
|
|
2333
2333
|
setup(e) {
|
|
2334
|
-
const r = e, t =
|
|
2334
|
+
const r = e, t = ae(r), n = m(() => {
|
|
2335
2335
|
switch (r.size) {
|
|
2336
2336
|
case "sm":
|
|
2337
2337
|
return {
|
|
@@ -2350,23 +2350,23 @@ const xl = {
|
|
|
2350
2350
|
iconContent: "h-8 w-8 p-2"
|
|
2351
2351
|
};
|
|
2352
2352
|
}
|
|
2353
|
-
}), a =
|
|
2354
|
-
return (u, f) => u.skeleton ? (
|
|
2353
|
+
}), a = M(null), l = Se(a), i = m(() => r.hoverVariant && l.value ? r.hoverVariant : r.variant ?? "default"), s = m(() => r.color ?? "primary"), o = Bt(i, s), c = m(() => r.outlineColor ?? s.value), d = zt(c);
|
|
2354
|
+
return (u, f) => u.skeleton ? (w(), A("div", {
|
|
2355
2355
|
key: 0,
|
|
2356
2356
|
style: P([
|
|
2357
|
-
|
|
2357
|
+
h(t).style
|
|
2358
2358
|
]),
|
|
2359
2359
|
class: D([n.value.normalContent, "inline-block animate-pulse rounded-md bg-surface-variant-1"])
|
|
2360
|
-
}, null, 6)) : (
|
|
2360
|
+
}, null, 6)) : (w(), G(xe(u.is), Z({
|
|
2361
2361
|
key: 1,
|
|
2362
2362
|
ref_key: "btn",
|
|
2363
2363
|
ref: a,
|
|
2364
2364
|
"data-size": u.size,
|
|
2365
2365
|
type: u.type,
|
|
2366
2366
|
class: ["flex items-center justify-center gap-1 decoration-none outline-none", [
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2367
|
+
h(o).class,
|
|
2368
|
+
h(t).class,
|
|
2369
|
+
h(d).class,
|
|
2370
2370
|
u.icon ? n.value.iconContent : n.value.normalContent,
|
|
2371
2371
|
{
|
|
2372
2372
|
"opacity-60 pointer-events-none select-none": u.disabled,
|
|
@@ -2374,9 +2374,9 @@ const xl = {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
]],
|
|
2376
2376
|
style: [
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2377
|
+
h(o).style,
|
|
2378
|
+
h(t).style,
|
|
2379
|
+
h(d).style
|
|
2380
2380
|
],
|
|
2381
2381
|
disabled: u.disabled
|
|
2382
2382
|
}, u.$attrs), {
|
|
@@ -2411,32 +2411,32 @@ const xl = {
|
|
|
2411
2411
|
function l(d) {
|
|
2412
2412
|
return typeof d == "string" ? void 0 : d.icon;
|
|
2413
2413
|
}
|
|
2414
|
-
const i =
|
|
2414
|
+
const i = ie(e, "modelValue");
|
|
2415
2415
|
function s(d) {
|
|
2416
2416
|
a(d) === i.value && t.value ? i.value = void 0 : i.value = a(d);
|
|
2417
2417
|
}
|
|
2418
2418
|
const o = m(() => r.selections.length === 1), c = m(() => o.value ? null : "first-children:rounded-r-0 first-children:border-r-none last-children:rounded-l-0 last-children:border-l-none not-first-children:rounded-l-0 not-last-children:rounded-r-0");
|
|
2419
2419
|
return (d, u) => {
|
|
2420
2420
|
const f = Vt;
|
|
2421
|
-
return
|
|
2421
|
+
return w(), A("div", {
|
|
2422
2422
|
class: D(["w-auto inline-flex container", [c.value]])
|
|
2423
2423
|
}, [
|
|
2424
|
-
(
|
|
2425
|
-
key: a(
|
|
2424
|
+
(w(!0), A(J, null, fe(r.selections, (g, C) => (w(), G(f, {
|
|
2425
|
+
key: a(g),
|
|
2426
2426
|
model: i.value,
|
|
2427
|
-
variant: a(
|
|
2427
|
+
variant: a(g) === i.value ? "filled" : void 0,
|
|
2428
2428
|
color: r.color,
|
|
2429
2429
|
class: D({
|
|
2430
|
-
"border-x-none":
|
|
2430
|
+
"border-x-none": C !== 0 && C !== r.selections.length - 1
|
|
2431
2431
|
}),
|
|
2432
|
-
onClick: (
|
|
2432
|
+
onClick: (v) => s(g)
|
|
2433
2433
|
}, {
|
|
2434
2434
|
default: ee(() => [
|
|
2435
|
-
l(
|
|
2435
|
+
l(g) ? (w(), A("i", {
|
|
2436
2436
|
key: 0,
|
|
2437
|
-
class: D(l(
|
|
2437
|
+
class: D(l(g))
|
|
2438
2438
|
}, null, 2)) : F("", !0),
|
|
2439
|
-
Ze(" " + ne(n(
|
|
2439
|
+
Ze(" " + ne(n(g)), 1)
|
|
2440
2440
|
]),
|
|
2441
2441
|
_: 2
|
|
2442
2442
|
}, 1032, ["model", "variant", "color", "class", "onClick"]))), 128))
|
|
@@ -2450,7 +2450,7 @@ const xl = {
|
|
|
2450
2450
|
return t;
|
|
2451
2451
|
}, kl = {}, _l = { class: "flex flex-col gap-4 container" };
|
|
2452
2452
|
function $l(e, r) {
|
|
2453
|
-
return
|
|
2453
|
+
return w(), A("div", _l, [
|
|
2454
2454
|
L(e.$slots, "default")
|
|
2455
2455
|
]);
|
|
2456
2456
|
}
|
|
@@ -2466,8 +2466,8 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2466
2466
|
setup(e) {
|
|
2467
2467
|
const r = e, t = m(() => r.variant), n = m(() => r.color), a = nt(t, n);
|
|
2468
2468
|
return (l, i) => {
|
|
2469
|
-
const s =
|
|
2470
|
-
return
|
|
2469
|
+
const s = xl;
|
|
2470
|
+
return w(), A("div", {
|
|
2471
2471
|
class: D(["flex items-start gap-2", [
|
|
2472
2472
|
{
|
|
2473
2473
|
"flex-row-reverse": l.position === "right",
|
|
@@ -2475,7 +2475,7 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2475
2475
|
}
|
|
2476
2476
|
]])
|
|
2477
2477
|
}, [
|
|
2478
|
-
l.$slots.avatar ? L(l.$slots, "avatar", { key: 0 }) : l.avatar ? (
|
|
2478
|
+
l.$slots.avatar ? L(l.$slots, "avatar", { key: 0 }) : l.avatar ? (w(), G(s, {
|
|
2479
2479
|
key: 1,
|
|
2480
2480
|
size: "xs",
|
|
2481
2481
|
src: l.avatar
|
|
@@ -2487,9 +2487,9 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2487
2487
|
"rounded-tl": l.position === "left",
|
|
2488
2488
|
border: l.withBorder
|
|
2489
2489
|
},
|
|
2490
|
-
|
|
2490
|
+
h(a).class
|
|
2491
2491
|
]]),
|
|
2492
|
-
style: P([
|
|
2492
|
+
style: P([h(a).style])
|
|
2493
2493
|
}, [
|
|
2494
2494
|
L(l.$slots, "default")
|
|
2495
2495
|
], 6)
|
|
@@ -2506,12 +2506,12 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2506
2506
|
},
|
|
2507
2507
|
setup(e) {
|
|
2508
2508
|
const r = e, t = m(() => r.variant), n = m(() => r.color), a = nt(t, n);
|
|
2509
|
-
return (l, i) => (
|
|
2509
|
+
return (l, i) => (w(), A("div", Cl, [
|
|
2510
2510
|
O("div", {
|
|
2511
2511
|
class: D(["w-full rounded-xl px-3 py-2", [
|
|
2512
|
-
|
|
2512
|
+
h(a).class
|
|
2513
2513
|
]]),
|
|
2514
|
-
style: P(
|
|
2514
|
+
style: P(h(a).style)
|
|
2515
2515
|
}, [
|
|
2516
2516
|
L(l.$slots, "default")
|
|
2517
2517
|
], 6)
|
|
@@ -2528,7 +2528,7 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2528
2528
|
rounded: { default: "full" }
|
|
2529
2529
|
},
|
|
2530
2530
|
setup(e) {
|
|
2531
|
-
const r = e, t =
|
|
2531
|
+
const r = e, t = ae(r), n = m(() => {
|
|
2532
2532
|
switch (r.size) {
|
|
2533
2533
|
case "sm":
|
|
2534
2534
|
return "px-3 py-0.5 text-xs";
|
|
@@ -2540,9 +2540,9 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2540
2540
|
return "";
|
|
2541
2541
|
}
|
|
2542
2542
|
}), a = m(() => r.variant), l = m(() => r.color), i = nt(a, l);
|
|
2543
|
-
return (s, o) => (
|
|
2544
|
-
class: D(["inline-block h-fit inline-flex items-center gap-1", [
|
|
2545
|
-
style: P([
|
|
2543
|
+
return (s, o) => (w(), A("span", {
|
|
2544
|
+
class: D(["inline-block h-fit inline-flex items-center gap-1", [h(t).class, h(i).class, n.value]]),
|
|
2545
|
+
style: P([h(t).style, h(i).style])
|
|
2546
2546
|
}, [
|
|
2547
2547
|
s.$slots.leftSection ? L(s.$slots, "leftSection", { key: 0 }) : F("", !0),
|
|
2548
2548
|
L(s.$slots, "default"),
|
|
@@ -2557,11 +2557,11 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2557
2557
|
withBorder: { type: Boolean, default: !1 }
|
|
2558
2558
|
},
|
|
2559
2559
|
setup(e) {
|
|
2560
|
-
return (r, t) => (
|
|
2560
|
+
return (r, t) => (w(), G(xe(r.is), Z({
|
|
2561
2561
|
class: ["h-6 w-6 border rounded-full", [{
|
|
2562
2562
|
border: r.withBorder
|
|
2563
2563
|
}]]
|
|
2564
|
-
},
|
|
2564
|
+
}, h(ol), {
|
|
2565
2565
|
style: {
|
|
2566
2566
|
backgroundColor: r.color
|
|
2567
2567
|
}
|
|
@@ -2578,12 +2578,12 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2578
2578
|
}),
|
|
2579
2579
|
emits: ["update:modelValue"],
|
|
2580
2580
|
setup(e) {
|
|
2581
|
-
const r =
|
|
2581
|
+
const r = ie(e, "modelValue"), t = rr(), n = Ht(t), a = M(null);
|
|
2582
2582
|
return (l, i) => {
|
|
2583
2583
|
const s = Ml;
|
|
2584
|
-
return
|
|
2584
|
+
return w(), A("div", null, [
|
|
2585
2585
|
ft(O("input", {
|
|
2586
|
-
id:
|
|
2586
|
+
id: h(n),
|
|
2587
2587
|
ref_key: "input",
|
|
2588
2588
|
ref: a,
|
|
2589
2589
|
"onUpdate:modelValue": i[0] || (i[0] = (o) => r.value = o),
|
|
@@ -2595,24 +2595,24 @@ const so = /* @__PURE__ */ Sl(kl, [["render", $l]]), io = /* @__PURE__ */ W({
|
|
|
2595
2595
|
]),
|
|
2596
2596
|
O("label", {
|
|
2597
2597
|
class: "flex items-center gap-2",
|
|
2598
|
-
for:
|
|
2598
|
+
for: h(n)
|
|
2599
2599
|
}, [
|
|
2600
|
-
|
|
2600
|
+
U(s, {
|
|
2601
2601
|
"with-border": l.withBorder,
|
|
2602
2602
|
class: "cursor-pointer",
|
|
2603
2603
|
color: r.value ?? "#222"
|
|
2604
2604
|
}, null, 8, ["with-border", "color"]),
|
|
2605
|
-
l.label ? (
|
|
2605
|
+
l.label ? (w(), A("span", Tl, ne(l.label), 1)) : F("", !0)
|
|
2606
2606
|
], 8, Hl)
|
|
2607
2607
|
]);
|
|
2608
2608
|
};
|
|
2609
2609
|
}
|
|
2610
|
-
}),
|
|
2611
|
-
function
|
|
2612
|
-
return $e(
|
|
2610
|
+
}), wr = Symbol("rokuProvider");
|
|
2611
|
+
function Rl() {
|
|
2612
|
+
return $e(wr, M(null));
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2615
|
-
return
|
|
2614
|
+
function Il(e) {
|
|
2615
|
+
return Re(wr, e);
|
|
2616
2616
|
}
|
|
2617
2617
|
const Dt = /* @__PURE__ */ W({
|
|
2618
2618
|
__name: "FullscreenOverlay",
|
|
@@ -2626,7 +2626,7 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2626
2626
|
}),
|
|
2627
2627
|
emits: ["update:modelValue"],
|
|
2628
2628
|
setup(e) {
|
|
2629
|
-
const r = e, t =
|
|
2629
|
+
const r = e, t = ie(e, "modelValue"), n = M(null);
|
|
2630
2630
|
function a(o) {
|
|
2631
2631
|
r.persistent || o.target === n.value && (t.value = !1);
|
|
2632
2632
|
}
|
|
@@ -2642,20 +2642,20 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2642
2642
|
default:
|
|
2643
2643
|
return "";
|
|
2644
2644
|
}
|
|
2645
|
-
}), i =
|
|
2646
|
-
|
|
2645
|
+
}), i = M(0);
|
|
2646
|
+
de(() => {
|
|
2647
2647
|
t.value ? (document.body.style.overflow = "hidden", document.body.style.marginRight = `${i.value}px`) : setTimeout(() => {
|
|
2648
2648
|
document && (document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = ""));
|
|
2649
2649
|
}, 300);
|
|
2650
|
-
}),
|
|
2650
|
+
}), de(() => {
|
|
2651
2651
|
typeof window < "u" && new ResizeObserver(() => {
|
|
2652
2652
|
const c = window.innerWidth - document.body.clientWidth;
|
|
2653
2653
|
c !== 0 && (i.value = c);
|
|
2654
2654
|
}).observe(document.body);
|
|
2655
2655
|
});
|
|
2656
|
-
const s =
|
|
2657
|
-
return (o, c) => (
|
|
2658
|
-
to:
|
|
2656
|
+
const s = Rl();
|
|
2657
|
+
return (o, c) => (w(), G(nr, {
|
|
2658
|
+
to: h(s) ?? "body"
|
|
2659
2659
|
}, [
|
|
2660
2660
|
O("div", {
|
|
2661
2661
|
ref_key: "wrapperRef",
|
|
@@ -2682,17 +2682,17 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2682
2682
|
}),
|
|
2683
2683
|
emits: ["update:modelValue"],
|
|
2684
2684
|
setup(e) {
|
|
2685
|
-
const r = e, t =
|
|
2685
|
+
const r = e, t = ie(e, "modelValue");
|
|
2686
2686
|
return (n, a) => {
|
|
2687
2687
|
const l = Vt, i = Dt;
|
|
2688
|
-
return
|
|
2688
|
+
return w(), G(i, {
|
|
2689
2689
|
modelValue: t.value,
|
|
2690
2690
|
"onUpdate:modelValue": a[1] || (a[1] = (s) => t.value = s),
|
|
2691
2691
|
blur: r.blur,
|
|
2692
2692
|
persistent: r.persistent
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: ee(() => [
|
|
2695
|
-
|
|
2695
|
+
U(We, {
|
|
2696
2696
|
"enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
|
|
2697
2697
|
"enter-to-class": (n.position === "left", "translate-x-0"),
|
|
2698
2698
|
"leave-from-class": (n.position === "left", "translate-x-0"),
|
|
@@ -2701,12 +2701,12 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2701
2701
|
"leave-active-class": "transition ease-in duration-200"
|
|
2702
2702
|
}, {
|
|
2703
2703
|
default: ee(() => [
|
|
2704
|
-
t.value ? (
|
|
2704
|
+
t.value ? (w(), A("div", {
|
|
2705
2705
|
key: 0,
|
|
2706
2706
|
class: D(["bg-surface-low fixed h-full w-full md:w-md", n.position === "left" ? "left-0" : "right-0"])
|
|
2707
2707
|
}, [
|
|
2708
2708
|
O("div", El, [
|
|
2709
|
-
|
|
2709
|
+
U(l, {
|
|
2710
2710
|
icon: "",
|
|
2711
2711
|
variant: "transparent",
|
|
2712
2712
|
class: "text-surface-on hover:text-surface-on",
|
|
@@ -2738,7 +2738,7 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2738
2738
|
},
|
|
2739
2739
|
emits: ["drop"],
|
|
2740
2740
|
setup(e, { emit: r }) {
|
|
2741
|
-
const t = e, n = r, a =
|
|
2741
|
+
const t = e, n = r, a = M(), { onChange: l, open: i } = On({
|
|
2742
2742
|
accept: t.accept
|
|
2743
2743
|
});
|
|
2744
2744
|
l((d) => {
|
|
@@ -2749,19 +2749,19 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2749
2749
|
n("drop", d);
|
|
2750
2750
|
}
|
|
2751
2751
|
}), o = Bt("default"), c = yr();
|
|
2752
|
-
return (d, u) => (
|
|
2752
|
+
return (d, u) => (w(), A("div", {
|
|
2753
2753
|
ref_key: "dropZoneRef",
|
|
2754
2754
|
ref: a,
|
|
2755
2755
|
class: D([[
|
|
2756
|
-
|
|
2757
|
-
|
|
2756
|
+
h(o).class,
|
|
2757
|
+
h(s) && h(c).class,
|
|
2758
2758
|
{
|
|
2759
|
-
"bg-surface-low": !
|
|
2759
|
+
"bg-surface-low": !h(s),
|
|
2760
2760
|
"border-dashed": d.dashed
|
|
2761
2761
|
}
|
|
2762
2762
|
], "h-full w-full flex cursor-pointer items-center justify-center border rounded"]),
|
|
2763
|
-
style: P([
|
|
2764
|
-
onPointerup: u[0] || (u[0] = () =>
|
|
2763
|
+
style: P([h(o).style, h(s) && h(c).style]),
|
|
2764
|
+
onPointerup: u[0] || (u[0] = () => h(i)())
|
|
2765
2765
|
}, [
|
|
2766
2766
|
L(d.$slots, "default")
|
|
2767
2767
|
], 38));
|
|
@@ -2780,7 +2780,7 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2780
2780
|
rounded: { default: "none" }
|
|
2781
2781
|
},
|
|
2782
2782
|
setup(e) {
|
|
2783
|
-
const r = e, t =
|
|
2783
|
+
const r = e, t = M(!1), n = M(null);
|
|
2784
2784
|
function a() {
|
|
2785
2785
|
t.value = !0;
|
|
2786
2786
|
}
|
|
@@ -2788,8 +2788,8 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2788
2788
|
var i;
|
|
2789
2789
|
(i = n.value) != null && i.complete && a();
|
|
2790
2790
|
});
|
|
2791
|
-
const l =
|
|
2792
|
-
return (i, s) => (
|
|
2791
|
+
const l = ae(r);
|
|
2792
|
+
return (i, s) => (w(), A("div", {
|
|
2793
2793
|
style: P({
|
|
2794
2794
|
height: i.height,
|
|
2795
2795
|
width: i.width,
|
|
@@ -2797,32 +2797,32 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2797
2797
|
maxWidth: i.maxWidth
|
|
2798
2798
|
})
|
|
2799
2799
|
}, [
|
|
2800
|
-
i.src ? (
|
|
2800
|
+
i.src ? (w(), G(xe(i.is), Z({
|
|
2801
2801
|
key: 0,
|
|
2802
2802
|
ref_key: "img",
|
|
2803
2803
|
ref: n,
|
|
2804
2804
|
style: [
|
|
2805
2805
|
i.style,
|
|
2806
|
-
|
|
2806
|
+
h(l).style
|
|
2807
2807
|
],
|
|
2808
2808
|
src: i.src,
|
|
2809
2809
|
class: ["h-full w-full object-cover", [
|
|
2810
2810
|
r.class,
|
|
2811
|
-
|
|
2811
|
+
h(l).class,
|
|
2812
2812
|
{
|
|
2813
2813
|
hidden: !t.value
|
|
2814
2814
|
}
|
|
2815
2815
|
]]
|
|
2816
2816
|
}, i.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : F("", !0),
|
|
2817
|
-
t.value ? F("", !0) : (
|
|
2817
|
+
t.value ? F("", !0) : (w(), A("div", {
|
|
2818
2818
|
key: 1,
|
|
2819
2819
|
class: D(["h-full w-full animate-pulse border-transparent object-cover", [
|
|
2820
2820
|
r.class,
|
|
2821
|
-
|
|
2821
|
+
h(l).class
|
|
2822
2822
|
]]),
|
|
2823
2823
|
style: P([
|
|
2824
2824
|
i.style,
|
|
2825
|
-
|
|
2825
|
+
h(l).style
|
|
2826
2826
|
])
|
|
2827
2827
|
}, null, 6))
|
|
2828
2828
|
], 4));
|
|
@@ -2872,19 +2872,19 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2872
2872
|
return "top-0 right-0 translate-x-1/2 -translate-y-1/2";
|
|
2873
2873
|
}
|
|
2874
2874
|
}), i = m(() => r.color), s = cl(i);
|
|
2875
|
-
return (o, c) => (
|
|
2875
|
+
return (o, c) => (w(), A("div", Bl, [
|
|
2876
2876
|
O("div", {
|
|
2877
2877
|
class: D([[l.value, a.value], "absolute z-1"])
|
|
2878
2878
|
}, [
|
|
2879
|
-
r.ping ? (
|
|
2879
|
+
r.ping ? (w(), A("div", {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: D(["absolute box-content animate-ping border-2 border-transparent rounded-full", [
|
|
2882
2882
|
{
|
|
2883
2883
|
[t.value]: !o.$slots.label
|
|
2884
2884
|
},
|
|
2885
|
-
|
|
2885
|
+
h(s).class
|
|
2886
2886
|
]]),
|
|
2887
|
-
style: P([
|
|
2887
|
+
style: P([h(s).style])
|
|
2888
2888
|
}, [
|
|
2889
2889
|
o.$slots.label ? L(o.$slots, "label", { key: 0 }) : F("", !0)
|
|
2890
2890
|
], 6)) : F("", !0),
|
|
@@ -2893,9 +2893,9 @@ const Dt = /* @__PURE__ */ W({
|
|
|
2893
2893
|
{
|
|
2894
2894
|
[t.value]: !o.$slots.label
|
|
2895
2895
|
},
|
|
2896
|
-
|
|
2896
|
+
h(s).class
|
|
2897
2897
|
]]),
|
|
2898
|
-
style: P(
|
|
2898
|
+
style: P(h(s).style)
|
|
2899
2899
|
}, [
|
|
2900
2900
|
o.$slots.label ? L(o.$slots, "label", { key: 0 }) : F("", !0)
|
|
2901
2901
|
], 6)
|
|
@@ -2913,7 +2913,7 @@ function Ot(e) {
|
|
|
2913
2913
|
function He(e) {
|
|
2914
2914
|
return !Pt(e) && !Ot(e);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2916
|
+
function xr(e) {
|
|
2917
2917
|
return e === void 0 ? !1 : e.some((r) => He(r) ? r.icon !== void 0 : !1);
|
|
2918
2918
|
}
|
|
2919
2919
|
const Vl = {
|
|
@@ -2938,53 +2938,64 @@ const Vl = {
|
|
|
2938
2938
|
color: { default: "primary" }
|
|
2939
2939
|
},
|
|
2940
2940
|
setup(e) {
|
|
2941
|
-
const r = e, t =
|
|
2941
|
+
const r = e, t = M(null), n = Se(t, {
|
|
2942
2942
|
delayLeave: 100
|
|
2943
|
-
}), a =
|
|
2944
|
-
|
|
2945
|
-
var
|
|
2946
|
-
i.value && ((
|
|
2943
|
+
}), a = ae({ rounded: r.rounded }), l = $e("menuCurrentIdx", M([])), i = m(() => l.value.join() === r.idx.join());
|
|
2944
|
+
de(() => {
|
|
2945
|
+
var g;
|
|
2946
|
+
i.value && ((g = t.value) == null || g.focus());
|
|
2947
2947
|
});
|
|
2948
2948
|
const s = m(() => l.value.length > r.idx.length && l.value.slice(0, r.idx.length).join() === r.idx.join()), o = m(() => r.color), c = zt(o), d = $e("selectMenuItem", () => {
|
|
2949
2949
|
console.error("selectMenuItem is not provided");
|
|
2950
|
+
}), u = M(null), f = m(() => {
|
|
2951
|
+
var R, H, y, k;
|
|
2952
|
+
const g = window.innerWidth, C = ((R = u.value) == null ? void 0 : R.clientWidth) ?? 0, v = ((H = u.value) == null ? void 0 : H.getBoundingClientRect().left) ?? 0, b = g - v > C, x = window.innerHeight, p = ((y = u.value) == null ? void 0 : y.clientHeight) ?? 0, S = ((k = u.value) == null ? void 0 : k.getBoundingClientRect().top) ?? 0, $ = x - S > p;
|
|
2953
|
+
return {
|
|
2954
|
+
left: b ? "100%" : "auto",
|
|
2955
|
+
right: b ? "auto" : "100%",
|
|
2956
|
+
top: $ ? "0" : "auto",
|
|
2957
|
+
bottom: $ ? "auto" : "0"
|
|
2958
|
+
};
|
|
2950
2959
|
});
|
|
2951
|
-
return (
|
|
2952
|
-
const
|
|
2953
|
-
return
|
|
2960
|
+
return (g, C) => {
|
|
2961
|
+
const v = Tr("MenuItem", !0);
|
|
2962
|
+
return h(Ot)(g.data) ? (w(), A("div", Vl, ne(g.data.title), 1)) : h(Pt)(g.data) ? (w(), A("div", Dl)) : (w(), A("button", Z({
|
|
2954
2963
|
key: 2,
|
|
2955
2964
|
ref_key: "menuItemRef",
|
|
2956
2965
|
ref: t,
|
|
2957
2966
|
tabindex: -1,
|
|
2958
2967
|
class: ["relative inline-block h-8 w-full flex cursor-pointer items-center gap-2 hover:bg-surface-variant-2 px-2 outline-2 focus-visible:outline", [
|
|
2959
|
-
|
|
2968
|
+
h(a).class,
|
|
2960
2969
|
{
|
|
2961
2970
|
"z-1": i.value,
|
|
2962
2971
|
"bg-surface-variant-2": s.value
|
|
2963
2972
|
}
|
|
2964
2973
|
]]
|
|
2965
|
-
},
|
|
2966
|
-
style: [
|
|
2967
|
-
onPointerdown:
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2974
|
+
}, h(c), {
|
|
2975
|
+
style: [h(a).style],
|
|
2976
|
+
onPointerdown: C[0] || (C[0] = () => {
|
|
2977
|
+
const b = g.data;
|
|
2978
|
+
b.value && h(d)(b.value);
|
|
2970
2979
|
})
|
|
2971
2980
|
}), [
|
|
2972
|
-
|
|
2981
|
+
g.data.icon ? (w(), A("i", {
|
|
2973
2982
|
key: 0,
|
|
2974
|
-
class: D([
|
|
2975
|
-
}, null, 2)) : r.hasIcon ? (
|
|
2976
|
-
O("div", Ol, ne(
|
|
2977
|
-
|
|
2978
|
-
|
|
2983
|
+
class: D([g.data.icon, "w-5 flex-shrink-0"])
|
|
2984
|
+
}, null, 2)) : r.hasIcon ? (w(), A("i", Pl)) : F("", !0),
|
|
2985
|
+
O("div", Ol, ne(g.data.title), 1),
|
|
2986
|
+
g.data.children ? (w(), A("i", Ll)) : F("", !0),
|
|
2987
|
+
g.data.children && (h(n) || s.value) ? (w(), A("menu", {
|
|
2979
2988
|
key: 3,
|
|
2980
|
-
|
|
2981
|
-
|
|
2989
|
+
ref_key: "menuDropdownRef",
|
|
2990
|
+
ref: u,
|
|
2991
|
+
class: D(["absolute left-100% top-0 ml-1 w-64 border border bg-surface bg-surface p-2", h(a).class]),
|
|
2992
|
+
style: P([h(a).style, f.value])
|
|
2982
2993
|
}, [
|
|
2983
|
-
(
|
|
2984
|
-
key:
|
|
2985
|
-
"has-icon":
|
|
2986
|
-
data:
|
|
2987
|
-
idx: [...
|
|
2994
|
+
(w(!0), A(J, null, fe(g.data.children, (b, x) => (w(), G(v, {
|
|
2995
|
+
key: x,
|
|
2996
|
+
"has-icon": h(xr)(g.data.children),
|
|
2997
|
+
data: b,
|
|
2998
|
+
idx: [...g.idx, x]
|
|
2988
2999
|
}, null, 8, ["has-icon", "data", "idx"]))), 128))
|
|
2989
3000
|
], 6)) : F("", !0)
|
|
2990
3001
|
], 16));
|
|
@@ -3027,26 +3038,30 @@ const Vl = {
|
|
|
3027
3038
|
setup(e, {
|
|
3028
3039
|
emit: r
|
|
3029
3040
|
}) {
|
|
3030
|
-
const t = e, n = r, a =
|
|
3031
|
-
N(u, "pointerup", (
|
|
3032
|
-
t.trigger !== "click" ||
|
|
3041
|
+
const t = e, n = r, a = ie(e, "modelValue"), l = m(() => a.value), [i, s] = _n(), o = m(() => l.value === void 0 ? i.value : l.value), c = ae(t), d = M(null), u = M(null), f = M(null);
|
|
3042
|
+
N(u, "pointerup", (y) => {
|
|
3043
|
+
t.trigger !== "click" || y.button !== 0 || (y.stopPropagation(), y.preventDefault(), s());
|
|
3033
3044
|
});
|
|
3034
|
-
const
|
|
3045
|
+
const g = Se(u, {
|
|
3035
3046
|
delayLeave: 100
|
|
3036
|
-
}),
|
|
3047
|
+
}), C = Se(f, {
|
|
3037
3048
|
delayLeave: 100
|
|
3038
3049
|
});
|
|
3039
|
-
|
|
3040
|
-
t.trigger === "hover" && (
|
|
3050
|
+
de(() => {
|
|
3051
|
+
t.trigger === "hover" && (g.value || C.value ? s(!0) : s(!1));
|
|
3041
3052
|
});
|
|
3042
|
-
const
|
|
3053
|
+
const v = M({
|
|
3043
3054
|
x: 0,
|
|
3044
3055
|
y: 0
|
|
3045
3056
|
});
|
|
3046
|
-
N(u, "contextmenu", (
|
|
3047
|
-
t.trigger
|
|
3048
|
-
|
|
3049
|
-
|
|
3057
|
+
N(u, "contextmenu", (y) => {
|
|
3058
|
+
if (t.trigger !== "contextmenu")
|
|
3059
|
+
return;
|
|
3060
|
+
y.stopPropagation(), y.preventDefault(), s();
|
|
3061
|
+
const k = d.value, T = k == null ? void 0 : k.getBoundingClientRect();
|
|
3062
|
+
T && (v.value = {
|
|
3063
|
+
x: y.clientX - T.left,
|
|
3064
|
+
y: y.clientY - T.top
|
|
3050
3065
|
});
|
|
3051
3066
|
}), $t(f, () => {
|
|
3052
3067
|
s(!1);
|
|
@@ -3055,99 +3070,107 @@ const Vl = {
|
|
|
3055
3070
|
}), N(window, "contextmenu", () => {
|
|
3056
3071
|
s(!1);
|
|
3057
3072
|
});
|
|
3058
|
-
const b =
|
|
3059
|
-
|
|
3073
|
+
const b = M([-1]);
|
|
3074
|
+
de(() => {
|
|
3060
3075
|
o.value || (b.value = [-1]);
|
|
3061
|
-
}),
|
|
3062
|
-
function
|
|
3063
|
-
const T =
|
|
3064
|
-
if (
|
|
3076
|
+
}), Re("menuCurrentIdx", b);
|
|
3077
|
+
function x(y, k) {
|
|
3078
|
+
const T = y;
|
|
3079
|
+
if (k.length <= 1)
|
|
3065
3080
|
return T.length;
|
|
3066
|
-
const
|
|
3067
|
-
if (!He(
|
|
3081
|
+
const _ = T[k[0]];
|
|
3082
|
+
if (!He(_) || _.children === void 0)
|
|
3068
3083
|
return 0;
|
|
3069
|
-
const
|
|
3070
|
-
return
|
|
3084
|
+
const I = _.children;
|
|
3085
|
+
return x(I, k.slice(1));
|
|
3071
3086
|
}
|
|
3072
|
-
const
|
|
3073
|
-
pe("ArrowDown", (
|
|
3074
|
-
var
|
|
3087
|
+
const p = m(() => t.data === void 0 ? 0 : x(t.data, b.value)), S = m(() => t.data);
|
|
3088
|
+
pe("ArrowDown", (y) => {
|
|
3089
|
+
var I;
|
|
3075
3090
|
if (!o.value)
|
|
3076
3091
|
return;
|
|
3077
|
-
|
|
3078
|
-
const
|
|
3079
|
-
let
|
|
3080
|
-
for (; !He(
|
|
3081
|
-
|
|
3082
|
-
b.value = [...
|
|
3083
|
-
}), pe("ArrowUp", (
|
|
3084
|
-
var
|
|
3092
|
+
y.preventDefault();
|
|
3093
|
+
const k = b.value;
|
|
3094
|
+
let _ = (k[k.length - 1] + 1) % p.value;
|
|
3095
|
+
for (; !He($(S.value, [...k.slice(0, k.length - 1), _])) || (I = $(S.value, [...k.slice(0, k.length - 1), _])) != null && I.render; )
|
|
3096
|
+
_ = (_ + 1) % p.value;
|
|
3097
|
+
b.value = [...k.slice(0, k.length - 1), _];
|
|
3098
|
+
}), pe("ArrowUp", (y) => {
|
|
3099
|
+
var I;
|
|
3085
3100
|
if (!o.value)
|
|
3086
3101
|
return;
|
|
3087
|
-
|
|
3088
|
-
const
|
|
3089
|
-
if (T === -1 &&
|
|
3090
|
-
b.value = [
|
|
3102
|
+
y.preventDefault();
|
|
3103
|
+
const k = b.value, T = k[k.length - 1];
|
|
3104
|
+
if (T === -1 && k.length === 1) {
|
|
3105
|
+
b.value = [p.value - 1];
|
|
3091
3106
|
return;
|
|
3092
3107
|
}
|
|
3093
|
-
let
|
|
3094
|
-
for (; !He(
|
|
3095
|
-
|
|
3096
|
-
b.value = [...
|
|
3097
|
-
}), pe("ArrowRight", (
|
|
3098
|
-
if (o.value && (
|
|
3099
|
-
let
|
|
3108
|
+
let _ = (T - 1 + p.value) % p.value;
|
|
3109
|
+
for (; !He($(S.value, [...k.slice(0, k.length - 1), _])) || (I = $(S.value, [...k.slice(0, k.length - 1), _])) != null && I.render; )
|
|
3110
|
+
_ = (_ - 1 + p.value) % p.value;
|
|
3111
|
+
b.value = [...k.slice(0, k.length - 1), _];
|
|
3112
|
+
}), pe("ArrowRight", (y) => {
|
|
3113
|
+
if (o.value && (y.preventDefault(), !!He($(S.value, b.value)) && b.value[b.value.length - 1] !== -1)) {
|
|
3114
|
+
let k = S.value;
|
|
3100
3115
|
for (let T = 0; T < b.value.length; T++) {
|
|
3101
|
-
if (
|
|
3116
|
+
if (k === void 0)
|
|
3102
3117
|
return;
|
|
3103
|
-
const
|
|
3104
|
-
if (!He(
|
|
3118
|
+
const _ = k[b.value[T]];
|
|
3119
|
+
if (!He(_) || _.children === void 0)
|
|
3105
3120
|
return;
|
|
3106
|
-
|
|
3121
|
+
k = _.children;
|
|
3107
3122
|
}
|
|
3108
|
-
|
|
3123
|
+
k !== void 0 && (b.value = [...b.value, 0]);
|
|
3109
3124
|
}
|
|
3110
|
-
}), pe("ArrowLeft", (
|
|
3111
|
-
o.value && (
|
|
3125
|
+
}), pe("ArrowLeft", (y) => {
|
|
3126
|
+
o.value && (y.preventDefault(), He($(S.value, b.value)) && b.value.length > 1 && (b.value = b.value.slice(0, b.value.length - 1)));
|
|
3112
3127
|
});
|
|
3113
|
-
function
|
|
3114
|
-
if (
|
|
3128
|
+
function $(y, k) {
|
|
3129
|
+
if (k.length === 0)
|
|
3115
3130
|
return;
|
|
3116
|
-
let T =
|
|
3117
|
-
for (let
|
|
3131
|
+
let T = y;
|
|
3132
|
+
for (let _ = 0; _ < k.length - 1; _++) {
|
|
3118
3133
|
if (T === void 0)
|
|
3119
3134
|
return;
|
|
3120
|
-
const
|
|
3121
|
-
if (!He(
|
|
3135
|
+
const I = T[k[_]];
|
|
3136
|
+
if (!He(I) || I.children === void 0)
|
|
3122
3137
|
return;
|
|
3123
|
-
T =
|
|
3138
|
+
T = I.children;
|
|
3124
3139
|
}
|
|
3125
3140
|
if (T !== void 0)
|
|
3126
|
-
return T[
|
|
3141
|
+
return T[k[k.length - 1]];
|
|
3127
3142
|
}
|
|
3128
|
-
|
|
3129
|
-
n("select",
|
|
3130
|
-
}), pe("Enter", (
|
|
3143
|
+
Re("selectMenuItem", (y) => {
|
|
3144
|
+
n("select", y), s(!1);
|
|
3145
|
+
}), pe("Enter", (y) => {
|
|
3131
3146
|
var T;
|
|
3132
3147
|
if (!o.value)
|
|
3133
3148
|
return;
|
|
3134
|
-
|
|
3135
|
-
const
|
|
3136
|
-
|
|
3149
|
+
y.preventDefault();
|
|
3150
|
+
const k = (T = $(S.value, b.value)) == null ? void 0 : T.value;
|
|
3151
|
+
k && (n("select", k), s(!1));
|
|
3152
|
+
});
|
|
3153
|
+
const R = m(() => t.trigger === "contextmenu" ? "" : "absolute mt-2");
|
|
3154
|
+
N(window, "scroll", () => {
|
|
3155
|
+
o.value && s(!1);
|
|
3156
|
+
});
|
|
3157
|
+
const H = m(() => {
|
|
3158
|
+
var X, le, V, Y;
|
|
3159
|
+
const y = window.innerWidth, k = ((X = f.value) == null ? void 0 : X.clientWidth) ?? 0, T = ((le = f.value) == null ? void 0 : le.getBoundingClientRect().left) ?? 0, _ = y - T > k, I = window.innerHeight, B = ((V = f.value) == null ? void 0 : V.clientHeight) ?? 0, z = ((Y = f.value) == null ? void 0 : Y.getBoundingClientRect().top) ?? 0, j = I - z > B;
|
|
3160
|
+
return t.trigger === "contextmenu" ? {
|
|
3161
|
+
left: `${_ ? v.value.x : v.value.x - k}px`,
|
|
3162
|
+
top: `${j ? v.value.y : v.value.y - B}px`,
|
|
3163
|
+
position: "absolute"
|
|
3164
|
+
} : {};
|
|
3137
3165
|
});
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
top: `${p.value.y}px`,
|
|
3141
|
-
position: "absolute"
|
|
3142
|
-
} : {});
|
|
3143
|
-
return (g, _) => {
|
|
3144
|
-
var k, R, B, z;
|
|
3166
|
+
return (y, k) => {
|
|
3167
|
+
var _, I, B, z;
|
|
3145
3168
|
const T = Fl;
|
|
3146
|
-
return
|
|
3169
|
+
return w(), A("div", {
|
|
3147
3170
|
ref_key: "menuWrapperRef",
|
|
3148
3171
|
ref: d,
|
|
3149
|
-
class: D([(
|
|
3150
|
-
relative: !((
|
|
3172
|
+
class: D([(_ = t.classes) == null ? void 0 : _.wrapper, {
|
|
3173
|
+
relative: !((I = t.classes) != null && I.wrapper)
|
|
3151
3174
|
}])
|
|
3152
3175
|
}, [O("div", {
|
|
3153
3176
|
ref_key: "menuTriggerRef",
|
|
@@ -3155,26 +3178,26 @@ const Vl = {
|
|
|
3155
3178
|
class: D([(B = t.classes) == null ? void 0 : B.trigger, {
|
|
3156
3179
|
"w-inherit h-inherit": !((z = t.classes) != null && z.trigger)
|
|
3157
3180
|
}])
|
|
3158
|
-
}, [L(
|
|
3181
|
+
}, [L(y.$slots, "default")], 2), U(We, {
|
|
3159
3182
|
"enter-active-class": t.enterActiveClass,
|
|
3160
3183
|
"leave-active-class": t.leaveActiveClass
|
|
3161
3184
|
}, {
|
|
3162
|
-
default: ee(() => [o.value &&
|
|
3185
|
+
default: ee(() => [o.value && y.data ? (w(), A("menu", {
|
|
3163
3186
|
key: 0,
|
|
3164
3187
|
class: "relative z-1 flex justify-center",
|
|
3165
3188
|
style: P(H.value)
|
|
3166
3189
|
}, [O("div", {
|
|
3167
3190
|
ref_key: "menuDropdownRef",
|
|
3168
3191
|
ref: f,
|
|
3169
|
-
class: D([[
|
|
3170
|
-
style: P([
|
|
3171
|
-
}, [(
|
|
3192
|
+
class: D([[h(c).class, R.value], "w-64 border bg-surface p-2"]),
|
|
3193
|
+
style: P([h(c).style])
|
|
3194
|
+
}, [(w(!0), A(J, null, fe(t.data, (j, X) => (w(), A(J, {
|
|
3172
3195
|
key: X
|
|
3173
|
-
}, [
|
|
3196
|
+
}, [h(Ot)(j) ? (w(), A("div", Wl, ne(j.title), 1)) : h(Pt)(j) ? (w(), A("div", Nl)) : (w(), A(J, {
|
|
3174
3197
|
key: 2
|
|
3175
|
-
}, [j.render ? (
|
|
3198
|
+
}, [j.render ? (w(), G(xe(j.render), {
|
|
3176
3199
|
key: 0
|
|
3177
|
-
})) : (
|
|
3200
|
+
})) : (w(), G(T, Z({
|
|
3178
3201
|
key: 1,
|
|
3179
3202
|
ref_for: !0
|
|
3180
3203
|
}, {
|
|
@@ -3182,7 +3205,7 @@ const Vl = {
|
|
|
3182
3205
|
data: j
|
|
3183
3206
|
}, {
|
|
3184
3207
|
idx: [X],
|
|
3185
|
-
"has-icon":
|
|
3208
|
+
"has-icon": h(xr)(t.data)
|
|
3186
3209
|
}), null, 16, ["idx", "has-icon"]))], 64))], 64))), 128))], 6)], 4)) : F("", !0)]),
|
|
3187
3210
|
_: 1
|
|
3188
3211
|
}, 8, ["enter-active-class", "leave-active-class"])], 2);
|
|
@@ -3200,7 +3223,7 @@ const Vl = {
|
|
|
3200
3223
|
noPadding: { type: Boolean, default: !1 }
|
|
3201
3224
|
},
|
|
3202
3225
|
setup(e) {
|
|
3203
|
-
const r = e, t = m(() => r.color), n = m(() => r.loading), a =
|
|
3226
|
+
const r = e, t = m(() => r.color), n = m(() => r.loading), a = ae(r), { x: l, y: i } = ht({ type: "client" }), s = M(null), { width: o, height: c, top: d, left: u } = Ae(s), f = m(() => Math.min(o.value, c.value)), g = m(() => !o.value || !c.value ? [] : n.value ? [
|
|
3204
3227
|
{
|
|
3205
3228
|
backgroundPosition: "0% 0%",
|
|
3206
3229
|
offset: 0
|
|
@@ -3218,14 +3241,14 @@ const Vl = {
|
|
|
3218
3241
|
offset: 0.75
|
|
3219
3242
|
}
|
|
3220
3243
|
] : []);
|
|
3221
|
-
let
|
|
3222
|
-
const
|
|
3223
|
-
var
|
|
3224
|
-
return r.loading ? (
|
|
3244
|
+
let C;
|
|
3245
|
+
const v = m(() => Be(t.value).value[5]), b = m(() => {
|
|
3246
|
+
var p;
|
|
3247
|
+
return r.loading ? (C ? C.play() : C = (p = s.value) == null ? void 0 : p.animate(g.value, {
|
|
3225
3248
|
duration: 1e3,
|
|
3226
3249
|
iterations: Number.POSITIVE_INFINITY
|
|
3227
3250
|
}), {
|
|
3228
|
-
"--main-color":
|
|
3251
|
+
"--main-color": v.value,
|
|
3229
3252
|
"--gradient": `radial-gradient(circle at center, var(--main-color) ${f.value * 0.5}px, var(--border-color) ${f.value * 0.5}px)`,
|
|
3230
3253
|
"--border-color": "var(--r-surface-border-color)",
|
|
3231
3254
|
"--bg": "var(--r-surface-background-color)",
|
|
@@ -3233,12 +3256,12 @@ const Vl = {
|
|
|
3233
3256
|
"border-color": "transparent",
|
|
3234
3257
|
"background-color": "var(--bg)",
|
|
3235
3258
|
"background-size": "200% 200%"
|
|
3236
|
-
}) : (
|
|
3259
|
+
}) : (C && C.pause(), {
|
|
3237
3260
|
background: "var(--r-surface-background-color)"
|
|
3238
3261
|
});
|
|
3239
|
-
}),
|
|
3262
|
+
}), x = m(() => {
|
|
3240
3263
|
if (r.traceAnimate) {
|
|
3241
|
-
const
|
|
3264
|
+
const p = m(() => ({
|
|
3242
3265
|
x: u.value + o.value / 2,
|
|
3243
3266
|
y: d.value + c.value / 2
|
|
3244
3267
|
})), S = m(() => {
|
|
@@ -3247,16 +3270,16 @@ const Vl = {
|
|
|
3247
3270
|
x: l.value,
|
|
3248
3271
|
y: i.value
|
|
3249
3272
|
};
|
|
3250
|
-
const
|
|
3251
|
-
let H,
|
|
3252
|
-
const
|
|
3253
|
-
return l.value <
|
|
3273
|
+
const $ = p.value.x, R = p.value.y;
|
|
3274
|
+
let H, y;
|
|
3275
|
+
const k = (i.value - R) / (l.value - $);
|
|
3276
|
+
return l.value < $ ? (H = u.value, y = R + k * (u.value - $)) : (H = u.value + o.value, y = R + k * (H - $)), y < d.value ? (y = d.value, H = $ + (y - R) / k) : y > d.value + c.value && (y = d.value + c.value, H = $ + (y - R) / k), {
|
|
3254
3277
|
x: H,
|
|
3255
|
-
y
|
|
3278
|
+
y
|
|
3256
3279
|
};
|
|
3257
3280
|
});
|
|
3258
3281
|
return {
|
|
3259
|
-
"--main-color":
|
|
3282
|
+
"--main-color": v.value,
|
|
3260
3283
|
"--border-color": "var(--r-surface-border-color)",
|
|
3261
3284
|
"--bg": "var(--r-surface-background-color)",
|
|
3262
3285
|
"--gradient": `radial-gradient(circle at ${S.value.x - u.value}px ${S.value.y - d.value}px, var(--main-color) ${f.value * 0.5}px, var(--border-color) ${f.value * 0.5}px)`,
|
|
@@ -3267,27 +3290,27 @@ const Vl = {
|
|
|
3267
3290
|
} else
|
|
3268
3291
|
return {};
|
|
3269
3292
|
});
|
|
3270
|
-
return (
|
|
3293
|
+
return (p, S) => (w(), G(xe(p.is), Z({
|
|
3271
3294
|
ref_key: "paperRef",
|
|
3272
3295
|
ref: s,
|
|
3273
3296
|
class: ["relative border", [
|
|
3274
3297
|
{
|
|
3275
|
-
"p-4": !
|
|
3298
|
+
"p-4": !p.noPadding
|
|
3276
3299
|
},
|
|
3277
|
-
|
|
3300
|
+
h(a).class
|
|
3278
3301
|
]],
|
|
3279
3302
|
style: [
|
|
3280
|
-
|
|
3303
|
+
h(a).style,
|
|
3281
3304
|
b.value,
|
|
3282
|
-
|
|
3305
|
+
x.value
|
|
3283
3306
|
]
|
|
3284
|
-
},
|
|
3307
|
+
}, p.withBorder && !p.traceAnimate && !n.value ? {
|
|
3285
3308
|
class: "border-[var(--r-surface-border-color)]"
|
|
3286
3309
|
} : {
|
|
3287
3310
|
class: "border-transparent"
|
|
3288
3311
|
}), {
|
|
3289
3312
|
default: ee(() => [
|
|
3290
|
-
L(
|
|
3313
|
+
L(p.$slots, "default")
|
|
3291
3314
|
]),
|
|
3292
3315
|
_: 3
|
|
3293
3316
|
}, 16, ["class", "style"]));
|
|
@@ -3307,10 +3330,10 @@ const Vl = {
|
|
|
3307
3330
|
}),
|
|
3308
3331
|
emits: ["update:modelValue"],
|
|
3309
3332
|
setup(e) {
|
|
3310
|
-
const r = e, t =
|
|
3333
|
+
const r = e, t = ie(e, "modelValue");
|
|
3311
3334
|
return (n, a) => {
|
|
3312
3335
|
const l = Sr, i = Dt;
|
|
3313
|
-
return
|
|
3336
|
+
return w(), G(i, {
|
|
3314
3337
|
modelValue: t.value,
|
|
3315
3338
|
"onUpdate:modelValue": a[0] || (a[0] = (s) => t.value = s),
|
|
3316
3339
|
blur: r.blur,
|
|
@@ -3318,7 +3341,7 @@ const Vl = {
|
|
|
3318
3341
|
"wrapper-class": "flex justify-center items-end md:items-start md:pt-5%"
|
|
3319
3342
|
}, {
|
|
3320
3343
|
default: ee(() => [
|
|
3321
|
-
|
|
3344
|
+
U(We, {
|
|
3322
3345
|
"enter-from-class": "translate-y-1/2",
|
|
3323
3346
|
"enter-to-class": "translate-y-0",
|
|
3324
3347
|
"leave-from-class": "translate-y-0",
|
|
@@ -3327,15 +3350,15 @@ const Vl = {
|
|
|
3327
3350
|
"leave-active-class": "transition ease-in duration-100"
|
|
3328
3351
|
}, {
|
|
3329
3352
|
default: ee(() => [
|
|
3330
|
-
t.value ? (
|
|
3331
|
-
n.$slots.default ? L(n.$slots, "default", { key: 0 }) : (
|
|
3353
|
+
t.value ? (w(), A(J, { key: 0 }, [
|
|
3354
|
+
n.$slots.default ? L(n.$slots, "default", { key: 0 }) : (w(), G(l, {
|
|
3332
3355
|
key: 1,
|
|
3333
3356
|
"with-border": "",
|
|
3334
3357
|
class: "w-full flex flex flex-col gap-2 md:w-md"
|
|
3335
3358
|
}, {
|
|
3336
3359
|
default: ee(() => [
|
|
3337
|
-
n.title || n.$slots.title ? (
|
|
3338
|
-
n.title ? (
|
|
3360
|
+
n.title || n.$slots.title ? (w(), A("div", jl, [
|
|
3361
|
+
n.title ? (w(), A("div", Xl, ne(n.title), 1)) : L(n.$slots, "title", { key: 1 })
|
|
3339
3362
|
])) : F("", !0),
|
|
3340
3363
|
O("div", null, [
|
|
3341
3364
|
L(n.$slots, "body")
|
|
@@ -3361,19 +3384,19 @@ const bo = /* @__PURE__ */ W({
|
|
|
3361
3384
|
__name: "ModalSystem",
|
|
3362
3385
|
setup(e) {
|
|
3363
3386
|
const r = Ul();
|
|
3364
|
-
|
|
3387
|
+
de(() => {
|
|
3365
3388
|
console.log(r.value);
|
|
3366
3389
|
});
|
|
3367
3390
|
const t = m(() => r.value.length > 0);
|
|
3368
3391
|
return (n, a) => {
|
|
3369
3392
|
const l = Dt;
|
|
3370
|
-
return
|
|
3393
|
+
return w(), G(l, {
|
|
3371
3394
|
"model-value": t.value,
|
|
3372
3395
|
persistent: !0,
|
|
3373
3396
|
"wrapper-class": "flex justify-center items-end md:items-start md:pt-5%"
|
|
3374
3397
|
}, {
|
|
3375
3398
|
default: ee(() => [
|
|
3376
|
-
O("div", null, ne(
|
|
3399
|
+
O("div", null, ne(h(r)), 1)
|
|
3377
3400
|
]),
|
|
3378
3401
|
_: 1
|
|
3379
3402
|
}, 8, ["model-value"]);
|
|
@@ -3402,18 +3425,18 @@ const bo = /* @__PURE__ */ W({
|
|
|
3402
3425
|
default:
|
|
3403
3426
|
return "h-0.5";
|
|
3404
3427
|
}
|
|
3405
|
-
}), n = m(() => r.color), a = at(n), l = Qe("bg", { dark: 7, light: 3 }), i =
|
|
3406
|
-
return (s, o) => (
|
|
3407
|
-
class: ["relative w-full self-center overflow-hidden", [t.value,
|
|
3408
|
-
style: [
|
|
3409
|
-
},
|
|
3410
|
-
s.loading ? (
|
|
3428
|
+
}), n = m(() => r.color), a = at(n), l = Qe("bg", { dark: 7, light: 3 }), i = ae(r);
|
|
3429
|
+
return (s, o) => (w(), A("div", Z({
|
|
3430
|
+
class: ["relative w-full self-center overflow-hidden", [t.value, h(i).class]],
|
|
3431
|
+
style: [h(i).style]
|
|
3432
|
+
}, h(l)), [
|
|
3433
|
+
s.loading ? (w(), A("div", Z({
|
|
3411
3434
|
key: 1,
|
|
3412
3435
|
class: "loading-progress h-full"
|
|
3413
|
-
},
|
|
3436
|
+
}, h(a)), null, 16)) : (w(), A("div", Z({
|
|
3414
3437
|
key: 0,
|
|
3415
3438
|
class: "h-full"
|
|
3416
|
-
},
|
|
3439
|
+
}, h(a), {
|
|
3417
3440
|
style: [{
|
|
3418
3441
|
width: `${(Number(s.value) - Number(s.min)) / (Number(s.max) - Number(s.min)) * 100}%`
|
|
3419
3442
|
}]
|
|
@@ -3444,7 +3467,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3444
3467
|
},
|
|
3445
3468
|
emits: ["close"],
|
|
3446
3469
|
setup(e) {
|
|
3447
|
-
const r = e, t =
|
|
3470
|
+
const r = e, t = ae(r), n = m(() => r.color), a = at(n), l = sl(n), i = Et(), s = m(() => {
|
|
3448
3471
|
switch (r.size) {
|
|
3449
3472
|
case "sm":
|
|
3450
3473
|
return "min-h-10 p-1";
|
|
@@ -3457,47 +3480,47 @@ const bo = /* @__PURE__ */ W({
|
|
|
3457
3480
|
});
|
|
3458
3481
|
return (o, c) => {
|
|
3459
3482
|
const d = Vt, u = Gl;
|
|
3460
|
-
return
|
|
3483
|
+
return w(), A("div", Z({
|
|
3461
3484
|
class: ["overflow-hidden", [
|
|
3462
3485
|
{ "border-0": !o.withBorder },
|
|
3463
|
-
|
|
3486
|
+
h(t).class,
|
|
3464
3487
|
{
|
|
3465
3488
|
"max-w-100": !o.block,
|
|
3466
3489
|
"w-full": o.block
|
|
3467
3490
|
}
|
|
3468
3491
|
]],
|
|
3469
|
-
style: [
|
|
3470
|
-
},
|
|
3492
|
+
style: [h(t).style]
|
|
3493
|
+
}, h(i)), [
|
|
3471
3494
|
O("div", {
|
|
3472
|
-
class: D(["relative min-w-80 w-full flex items-center gap-2 pl-4", [s.value,
|
|
3495
|
+
class: D(["relative min-w-80 w-full flex items-center gap-2 pl-4", [s.value, h(l).class]])
|
|
3473
3496
|
}, [
|
|
3474
|
-
o.icon ? (
|
|
3497
|
+
o.icon ? (w(), A("div", {
|
|
3475
3498
|
key: 0,
|
|
3476
|
-
class: D([[
|
|
3477
|
-
style: P(
|
|
3499
|
+
class: D([[h(l).class], "leading-0"]),
|
|
3500
|
+
style: P(h(l).style)
|
|
3478
3501
|
}, [
|
|
3479
|
-
o.loading ? (
|
|
3502
|
+
o.loading ? (w(), A("i", ql)) : (w(), A("i", {
|
|
3480
3503
|
key: 1,
|
|
3481
3504
|
class: D(["h-container w-container shrink-0", o.icon])
|
|
3482
3505
|
}, null, 2))
|
|
3483
|
-
], 6)) : (
|
|
3506
|
+
], 6)) : (w(), A("div", Kl, [
|
|
3484
3507
|
O("div", Z({
|
|
3485
3508
|
class: ["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full bg-[var(--d-bg)] dark:bg-[var(--d-bg)]", [{
|
|
3486
3509
|
"animate-pulse": o.loading
|
|
3487
3510
|
}]]
|
|
3488
|
-
},
|
|
3511
|
+
}, h(a)), null, 16)
|
|
3489
3512
|
])),
|
|
3490
3513
|
O("div", Jl, [
|
|
3491
|
-
o.title ? (
|
|
3514
|
+
o.title ? (w(), A("div", {
|
|
3492
3515
|
key: 0,
|
|
3493
3516
|
class: D(["text-[var(--l-text)] dark:text-[var(--d-text)]", [{
|
|
3494
3517
|
"text-xs": o.size === "sm",
|
|
3495
3518
|
"text-sm": o.size === "md",
|
|
3496
3519
|
"text-base": o.size === "lg"
|
|
3497
|
-
},
|
|
3498
|
-
style: P(
|
|
3520
|
+
}, h(l).class]]),
|
|
3521
|
+
style: P(h(l).style)
|
|
3499
3522
|
}, ne(o.title), 7)) : F("", !0),
|
|
3500
|
-
o.$slots.message ? L(o.$slots, "message", { key: 1 }) : o.message ? (
|
|
3523
|
+
o.$slots.message ? L(o.$slots, "message", { key: 1 }) : o.message ? (w(), A("div", {
|
|
3501
3524
|
key: 2,
|
|
3502
3525
|
class: D(["text-surface-dimmed", {
|
|
3503
3526
|
"text-xs": o.size === "sm",
|
|
@@ -3505,7 +3528,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3505
3528
|
}])
|
|
3506
3529
|
}, ne(o.message), 3)) : F("", !0)
|
|
3507
3530
|
]),
|
|
3508
|
-
o.closeable ? (
|
|
3531
|
+
o.closeable ? (w(), G(d, {
|
|
3509
3532
|
key: 2,
|
|
3510
3533
|
icon: "",
|
|
3511
3534
|
variant: "transparent",
|
|
@@ -3513,12 +3536,12 @@ const bo = /* @__PURE__ */ W({
|
|
|
3513
3536
|
onClick: c[0] || (c[0] = (f) => o.$emit("close"))
|
|
3514
3537
|
}, {
|
|
3515
3538
|
default: ee(() => [
|
|
3516
|
-
o.$slots.closeIcon ? L(o.$slots, "close-icon", { key: 0 }) : (
|
|
3539
|
+
o.$slots.closeIcon ? L(o.$slots, "close-icon", { key: 0 }) : (w(), A("i", Zl))
|
|
3517
3540
|
]),
|
|
3518
3541
|
_: 3
|
|
3519
3542
|
})) : F("", !0)
|
|
3520
3543
|
], 2),
|
|
3521
|
-
o.complete ? (
|
|
3544
|
+
o.complete ? (w(), G(u, {
|
|
3522
3545
|
key: 0,
|
|
3523
3546
|
value: o.complete,
|
|
3524
3547
|
max: o.total
|
|
@@ -3526,7 +3549,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3526
3549
|
], 16);
|
|
3527
3550
|
};
|
|
3528
3551
|
}
|
|
3529
|
-
}), ea = { class: "pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto" }, ta = ["data-hash"],
|
|
3552
|
+
}), ea = { class: "pointer-events-none fixed z-20 h-full w-full children:pointer-events-auto" }, ta = ["data-hash"], wo = /* @__PURE__ */ W({
|
|
3530
3553
|
__name: "NotificationSystem",
|
|
3531
3554
|
props: {
|
|
3532
3555
|
position: { default: "top-right" },
|
|
@@ -3539,20 +3562,20 @@ const bo = /* @__PURE__ */ W({
|
|
|
3539
3562
|
pb: { default: 8 }
|
|
3540
3563
|
},
|
|
3541
3564
|
setup(e) {
|
|
3542
|
-
const r = e, t = Ut(r.topN), n =
|
|
3565
|
+
const r = e, t = Ut(r.topN), n = M([]), a = m(() => n.value.map((p) => p.getBoundingClientRect())), l = Ut(), i = Ye({});
|
|
3543
3566
|
Q([n.value], () => {
|
|
3544
|
-
for (const
|
|
3545
|
-
const S =
|
|
3567
|
+
for (const p of n.value) {
|
|
3568
|
+
const S = p.dataset.hash;
|
|
3546
3569
|
if (S && !i.value[S]) {
|
|
3547
|
-
const
|
|
3548
|
-
i.value[S] =
|
|
3570
|
+
const $ = Se(p, {});
|
|
3571
|
+
i.value[S] = $;
|
|
3549
3572
|
}
|
|
3550
3573
|
}
|
|
3551
|
-
}), r.progress && An(({ delta:
|
|
3552
|
-
l.value = l.value.map((S) => i.value[S.hash] && i.value[S.hash].value || !t.value.includes(S) ? S : { ...S, durationMS: S.durationMS -
|
|
3574
|
+
}), r.progress && An(({ delta: p }) => {
|
|
3575
|
+
l.value = l.value.map((S) => i.value[S.hash] && i.value[S.hash].value || !t.value.includes(S) ? S : { ...S, durationMS: S.durationMS - p }).filter((S) => S.durationMS > 0);
|
|
3553
3576
|
}, {});
|
|
3554
3577
|
const s = m(() => {
|
|
3555
|
-
const
|
|
3578
|
+
const p = {
|
|
3556
3579
|
"top-left": 0,
|
|
3557
3580
|
"top-right": 0,
|
|
3558
3581
|
top: 0,
|
|
@@ -3560,88 +3583,88 @@ const bo = /* @__PURE__ */ W({
|
|
|
3560
3583
|
"bottom-right": 0,
|
|
3561
3584
|
bottom: 0
|
|
3562
3585
|
};
|
|
3563
|
-
return t.value.map((S,
|
|
3564
|
-
const
|
|
3565
|
-
return a.value[
|
|
3586
|
+
return t.value.map((S, $) => {
|
|
3587
|
+
const R = S.position || r.position, H = p[R];
|
|
3588
|
+
return a.value[$] && (p[R] += a.value[$].height + r.gap), H;
|
|
3566
3589
|
});
|
|
3567
3590
|
});
|
|
3568
|
-
function o(
|
|
3569
|
-
return ["top-left", "top-right", "top"].includes(
|
|
3591
|
+
function o(p) {
|
|
3592
|
+
return ["top-left", "top-right", "top"].includes(p);
|
|
3570
3593
|
}
|
|
3571
|
-
function c(
|
|
3594
|
+
function c(p = 0, S) {
|
|
3572
3595
|
return S || (S = r.position), o(S) ? {
|
|
3573
|
-
top: `${
|
|
3596
|
+
top: `${p + r.pt}px`
|
|
3574
3597
|
} : {
|
|
3575
|
-
bottom: `${
|
|
3598
|
+
bottom: `${p + r.pb}px`
|
|
3576
3599
|
};
|
|
3577
3600
|
}
|
|
3578
|
-
function d(
|
|
3579
|
-
return
|
|
3601
|
+
function d(p) {
|
|
3602
|
+
return p.includes("right") ? {
|
|
3580
3603
|
transform: "translateX(-100%)"
|
|
3581
|
-
} :
|
|
3604
|
+
} : p.includes("left") ? {} : {
|
|
3582
3605
|
transform: "translateX(-50%)"
|
|
3583
3606
|
};
|
|
3584
3607
|
}
|
|
3585
|
-
function u(
|
|
3586
|
-
return
|
|
3608
|
+
function u(p) {
|
|
3609
|
+
return p.includes("right") ? {
|
|
3587
3610
|
right: `${r.pr}px`
|
|
3588
|
-
} :
|
|
3611
|
+
} : p.includes("left") ? {
|
|
3589
3612
|
left: `${r.pl}px`
|
|
3590
3613
|
} : {
|
|
3591
3614
|
left: "50%"
|
|
3592
3615
|
};
|
|
3593
3616
|
}
|
|
3594
|
-
function f(
|
|
3595
|
-
return
|
|
3617
|
+
function f(p) {
|
|
3618
|
+
return p.includes("top") ? {
|
|
3596
3619
|
top: `${r.pt}px`
|
|
3597
3620
|
} : {
|
|
3598
3621
|
bottom: `${r.pb}px`
|
|
3599
3622
|
};
|
|
3600
3623
|
}
|
|
3601
|
-
const
|
|
3602
|
-
return o(
|
|
3603
|
-
},
|
|
3604
|
-
return o(
|
|
3624
|
+
const g = function(p) {
|
|
3625
|
+
return o(p) ? "animate-keyframes-fade-in-down animate-duration-0.3s" : "animate-keyframes-fade-in-up animate-duration-0.3s";
|
|
3626
|
+
}, C = function(p) {
|
|
3627
|
+
return o(p) ? "animate-keyframes-fade-out-down animate-duration-0.3s" : "animate-keyframes-fade-out-up animate-duration-0.3s";
|
|
3605
3628
|
};
|
|
3606
|
-
function p
|
|
3607
|
-
t.value.indexOf(
|
|
3629
|
+
function v(p) {
|
|
3630
|
+
t.value.indexOf(p) !== -1 && (l.value = l.value.filter(($) => $.hash !== p.hash));
|
|
3608
3631
|
}
|
|
3609
|
-
function b(
|
|
3610
|
-
if (!
|
|
3632
|
+
function b(p) {
|
|
3633
|
+
if (!p.durationMS || p.durationMS <= 0)
|
|
3611
3634
|
return 0;
|
|
3612
|
-
const S =
|
|
3613
|
-
return (
|
|
3635
|
+
const S = p.durationMS, $ = p.initialDurationMS;
|
|
3636
|
+
return ($ - S) / $;
|
|
3614
3637
|
}
|
|
3615
|
-
const
|
|
3616
|
-
return (
|
|
3617
|
-
const
|
|
3618
|
-
return
|
|
3619
|
-
(
|
|
3620
|
-
key:
|
|
3621
|
-
style: P([f(
|
|
3638
|
+
const x = ["top-left", "top-right", "top", "bottom-left", "bottom-right", "bottom"];
|
|
3639
|
+
return (p, S) => {
|
|
3640
|
+
const $ = Ql;
|
|
3641
|
+
return w(), A("div", ea, [
|
|
3642
|
+
(w(), A(J, null, fe(x, (R) => O("div", {
|
|
3643
|
+
key: R,
|
|
3644
|
+
style: P([f(R), u(R)]),
|
|
3622
3645
|
class: "absolute"
|
|
3623
3646
|
}, [
|
|
3624
|
-
|
|
3625
|
-
"enter-active-class":
|
|
3626
|
-
"leave-active-class":
|
|
3647
|
+
U(Rr, {
|
|
3648
|
+
"enter-active-class": g(R),
|
|
3649
|
+
"leave-active-class": C(R)
|
|
3627
3650
|
}, {
|
|
3628
3651
|
default: ee(() => [
|
|
3629
|
-
(
|
|
3652
|
+
(w(!0), A(J, null, fe(h(t), (H, y) => (w(), A(J, {
|
|
3630
3653
|
key: H.hash
|
|
3631
3654
|
}, [
|
|
3632
|
-
H.position ===
|
|
3655
|
+
H.position === R ? (w(), A("div", {
|
|
3633
3656
|
key: 0,
|
|
3634
3657
|
class: "absolute transition-top,bottom,transform duration-0.3s",
|
|
3635
|
-
style: P([c(s.value[
|
|
3658
|
+
style: P([c(s.value[y], H.position)])
|
|
3636
3659
|
}, [
|
|
3637
3660
|
O("div", {
|
|
3638
3661
|
ref_for: !0,
|
|
3639
3662
|
ref_key: "notificationRefs",
|
|
3640
3663
|
ref: n,
|
|
3641
3664
|
"data-hash": H.hash,
|
|
3642
|
-
style: P([d(
|
|
3665
|
+
style: P([d(R), c(s.value[y], H.position)])
|
|
3643
3666
|
}, [
|
|
3644
|
-
|
|
3667
|
+
U($, {
|
|
3645
3668
|
"with-border": "",
|
|
3646
3669
|
closeable: "",
|
|
3647
3670
|
title: H.title,
|
|
@@ -3649,8 +3672,8 @@ const bo = /* @__PURE__ */ W({
|
|
|
3649
3672
|
icon: H.icon,
|
|
3650
3673
|
loading: H.loading,
|
|
3651
3674
|
color: H.color,
|
|
3652
|
-
complete:
|
|
3653
|
-
onClose: (
|
|
3675
|
+
complete: p.progress ? b(H) * 100 : void 0,
|
|
3676
|
+
onClose: (k) => v(H)
|
|
3654
3677
|
}, null, 8, ["title", "message", "icon", "loading", "color", "complete", "onClose"])
|
|
3655
3678
|
], 12, ta)
|
|
3656
3679
|
], 4)) : F("", !0)
|
|
@@ -3683,16 +3706,16 @@ const bo = /* @__PURE__ */ W({
|
|
|
3683
3706
|
default:
|
|
3684
3707
|
return "";
|
|
3685
3708
|
}
|
|
3686
|
-
}), n =
|
|
3709
|
+
}), n = ae(r), a = M(null), l = E(r.color).toRgb(), i = m(() => ({
|
|
3687
3710
|
backgroundColor: `rgba(${l.r}, ${l.g}, ${l.b}, ${r.opacity / 100})`
|
|
3688
3711
|
}));
|
|
3689
|
-
return (s, o) => (
|
|
3712
|
+
return (s, o) => (w(), A("div", ra, [
|
|
3690
3713
|
L(s.$slots, "default"),
|
|
3691
3714
|
O("div", Z(s.$attrs, {
|
|
3692
3715
|
ref_key: "wrapperRef",
|
|
3693
3716
|
ref: a,
|
|
3694
|
-
class: [[t.value,
|
|
3695
|
-
style: [
|
|
3717
|
+
class: [[t.value, h(n).class], "absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],
|
|
3718
|
+
style: [h(n).style, i.value]
|
|
3696
3719
|
}), [
|
|
3697
3720
|
L(s.$slots, "content")
|
|
3698
3721
|
], 16)
|
|
@@ -3716,7 +3739,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3716
3739
|
}),
|
|
3717
3740
|
emits: ["update:modelValue"],
|
|
3718
3741
|
setup(e, { expose: r }) {
|
|
3719
|
-
const t = e, n =
|
|
3742
|
+
const t = e, n = ie(e, "modelValue"), a = m(() => {
|
|
3720
3743
|
switch (t.size) {
|
|
3721
3744
|
case "sm":
|
|
3722
3745
|
return {
|
|
@@ -3742,36 +3765,36 @@ const bo = /* @__PURE__ */ W({
|
|
|
3742
3765
|
default:
|
|
3743
3766
|
return "text-sm";
|
|
3744
3767
|
}
|
|
3745
|
-
}), i = m(() => t.color), s = br(i), o = m(() => t.disabled ? "pointer-events-none select-none filter opacity-60" : ""), c =
|
|
3768
|
+
}), i = m(() => t.color), s = br(i), o = m(() => t.disabled ? "pointer-events-none select-none filter opacity-60" : ""), c = ae(t), d = M(null);
|
|
3746
3769
|
r({
|
|
3747
3770
|
el: d
|
|
3748
3771
|
});
|
|
3749
3772
|
const u = rr(), f = Ht(u);
|
|
3750
|
-
return (
|
|
3751
|
-
style: P([
|
|
3773
|
+
return (g, C) => (w(), A("div", {
|
|
3774
|
+
style: P([h(s)])
|
|
3752
3775
|
}, [
|
|
3753
|
-
|
|
3776
|
+
g.$slots.label || g.label ? (w(), A("label", {
|
|
3754
3777
|
key: 0,
|
|
3755
|
-
for:
|
|
3778
|
+
for: h(f),
|
|
3756
3779
|
class: D(["mb-1 block", [l.value]])
|
|
3757
3780
|
}, [
|
|
3758
|
-
|
|
3781
|
+
g.$slots.label ? L(g.$slots, "label", { key: 0 }) : (w(), A("span", aa, ne(g.label), 1))
|
|
3759
3782
|
], 10, la)) : F("", !0),
|
|
3760
|
-
ft(O("input", Z({ id:
|
|
3783
|
+
ft(O("input", Z({ id: h(f) }, g.$attrs, {
|
|
3761
3784
|
ref_key: "input",
|
|
3762
3785
|
ref: d,
|
|
3763
|
-
"onUpdate:modelValue":
|
|
3764
|
-
disabled:
|
|
3765
|
-
class: ["w-full border px-2 py-1 outline-none custom-input-colors", [o.value,
|
|
3766
|
-
style: [
|
|
3767
|
-
placeholder:
|
|
3786
|
+
"onUpdate:modelValue": C[0] || (C[0] = (v) => n.value = v),
|
|
3787
|
+
disabled: g.disabled,
|
|
3788
|
+
class: ["w-full border px-2 py-1 outline-none custom-input-colors", [o.value, h(c).class, a.value.base]],
|
|
3789
|
+
style: [h(c).style],
|
|
3790
|
+
placeholder: g.placeholder,
|
|
3768
3791
|
type: t.password ? "password" : "text"
|
|
3769
3792
|
}), null, 16, oa), [
|
|
3770
|
-
[
|
|
3793
|
+
[Ir, n.value]
|
|
3771
3794
|
])
|
|
3772
3795
|
], 4));
|
|
3773
3796
|
}
|
|
3774
|
-
}), ia = { class: "flex gap-2" },
|
|
3797
|
+
}), ia = { class: "flex gap-2" }, xo = /* @__PURE__ */ W({
|
|
3775
3798
|
__name: "PinInput",
|
|
3776
3799
|
props: {
|
|
3777
3800
|
modelValue: {},
|
|
@@ -3780,7 +3803,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3780
3803
|
password: { type: Boolean }
|
|
3781
3804
|
},
|
|
3782
3805
|
setup(e) {
|
|
3783
|
-
const r = e, t =
|
|
3806
|
+
const r = e, t = M([]);
|
|
3784
3807
|
function n(s) {
|
|
3785
3808
|
s.preventDefault(), s.stopPropagation();
|
|
3786
3809
|
const o = t.value.findIndex((d) => d.el === s.target), c = s.target.value ?? "";
|
|
@@ -3805,8 +3828,8 @@ const bo = /* @__PURE__ */ W({
|
|
|
3805
3828
|
const o = t.value.findIndex((c) => c.el === s.target);
|
|
3806
3829
|
o < t.value.length - 1 && (t.value[o + 1].el.focus(), t.value[o + 1].el.select());
|
|
3807
3830
|
}
|
|
3808
|
-
return (s, o) => (
|
|
3809
|
-
(
|
|
3831
|
+
return (s, o) => (w(), A("div", ia, [
|
|
3832
|
+
(w(!0), A(J, null, fe(r.length, (c) => (w(), G(sa, {
|
|
3810
3833
|
ref_for: !0,
|
|
3811
3834
|
ref_key: "inputs",
|
|
3812
3835
|
ref: t,
|
|
@@ -3840,7 +3863,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
3840
3863
|
}),
|
|
3841
3864
|
emits: ["update:modelValue"],
|
|
3842
3865
|
setup(e) {
|
|
3843
|
-
const r = e, t =
|
|
3866
|
+
const r = e, t = M(null), n = M(null), a = Ae(t), l = Ae(n), i = m(() => {
|
|
3844
3867
|
switch (r.position) {
|
|
3845
3868
|
case "top-start":
|
|
3846
3869
|
return "top-0 left-0";
|
|
@@ -3910,17 +3933,17 @@ const bo = /* @__PURE__ */ W({
|
|
|
3910
3933
|
default:
|
|
3911
3934
|
return {};
|
|
3912
3935
|
}
|
|
3913
|
-
}), o = Se(t), c =
|
|
3936
|
+
}), o = Se(t), c = ie(e, "modelValue"), d = m(() => r.trigger === "hover" ? o.value : c.value);
|
|
3914
3937
|
function u(f) {
|
|
3915
|
-
var
|
|
3916
|
-
!((
|
|
3938
|
+
var g;
|
|
3939
|
+
!((g = t.value) != null && g.contains(f.target)) || f.target === t.value || (c.value = !c.value);
|
|
3917
3940
|
}
|
|
3918
3941
|
return $t(n, (f) => {
|
|
3919
|
-
var
|
|
3920
|
-
(
|
|
3921
|
-
}), (f,
|
|
3922
|
-
const
|
|
3923
|
-
return
|
|
3942
|
+
var g;
|
|
3943
|
+
(g = t.value) != null && g.contains(f.target) ? c.value = !0 : c.value = !1;
|
|
3944
|
+
}), (f, g) => {
|
|
3945
|
+
const C = na;
|
|
3946
|
+
return w(), A("div", {
|
|
3924
3947
|
ref_key: "wrapperRef",
|
|
3925
3948
|
ref: t,
|
|
3926
3949
|
class: "relative"
|
|
@@ -3928,16 +3951,16 @@ const bo = /* @__PURE__ */ W({
|
|
|
3928
3951
|
O("div", { onPointerup: u }, [
|
|
3929
3952
|
L(f.$slots, "default")
|
|
3930
3953
|
], 32),
|
|
3931
|
-
d.value && f.overlay ? (
|
|
3954
|
+
d.value && f.overlay ? (w(), G(C, {
|
|
3932
3955
|
key: 0,
|
|
3933
3956
|
opacity: 0,
|
|
3934
3957
|
class: "fixed inset-0 z-10",
|
|
3935
3958
|
style: P({
|
|
3936
3959
|
zIndex: f.zIndex
|
|
3937
3960
|
}),
|
|
3938
|
-
onPointerup:
|
|
3961
|
+
onPointerup: g[0] || (g[0] = (v) => c.value = !1)
|
|
3939
3962
|
}, null, 8, ["style"])) : F("", !0),
|
|
3940
|
-
d.value ? (
|
|
3963
|
+
d.value ? (w(), A("div", {
|
|
3941
3964
|
key: 1,
|
|
3942
3965
|
ref_key: "contentRef",
|
|
3943
3966
|
ref: n,
|
|
@@ -3966,55 +3989,55 @@ const bo = /* @__PURE__ */ W({
|
|
|
3966
3989
|
}),
|
|
3967
3990
|
emits: /* @__PURE__ */ re(["select"], ["update:modelValue"]),
|
|
3968
3991
|
setup(e, { emit: r }) {
|
|
3969
|
-
const t = e, n = r, a = m(() => t.count ?? 5), l =
|
|
3970
|
-
function d(
|
|
3971
|
-
function H(
|
|
3972
|
-
return typeof
|
|
3973
|
-
active:
|
|
3974
|
-
normal:
|
|
3992
|
+
const t = e, n = r, a = m(() => t.count ?? 5), l = ie(e, "modelValue"), i = m(() => t.highlightSelectedOnly ?? !1), s = m(() => t.unselectable ?? !1), o = M(-1), c = m(() => d(t.icons, a.value, pa, ha));
|
|
3993
|
+
function d(p, S, $, R) {
|
|
3994
|
+
function H(k) {
|
|
3995
|
+
return typeof k == "string" ? { active: k, normal: k } : k === void 0 ? { active: R, normal: $ } : {
|
|
3996
|
+
active: k.active || R,
|
|
3997
|
+
normal: k.normal || $
|
|
3975
3998
|
};
|
|
3976
3999
|
}
|
|
3977
|
-
if (
|
|
3978
|
-
return Array.from({ length: S }, () => ({ active:
|
|
3979
|
-
let
|
|
3980
|
-
if (typeof
|
|
3981
|
-
|
|
3982
|
-
else if (Array.isArray(
|
|
3983
|
-
const
|
|
3984
|
-
return
|
|
4000
|
+
if (p === void 0)
|
|
4001
|
+
return Array.from({ length: S }, () => ({ active: R, normal: $ }));
|
|
4002
|
+
let y;
|
|
4003
|
+
if (typeof p == "string")
|
|
4004
|
+
y = { active: p, normal: p };
|
|
4005
|
+
else if (Array.isArray(p)) {
|
|
4006
|
+
const k = p.map((T) => H(T));
|
|
4007
|
+
return k.length === 1 ? (y = k[0], Array.from({ length: S }, () => ({ ...y }))) : k.slice(0, S).concat(
|
|
3985
4008
|
// Fill remaining with default values
|
|
3986
|
-
Array.from({ length: Math.max(0, S -
|
|
4009
|
+
Array.from({ length: Math.max(0, S - k.length) }, () => ({ active: R, normal: $ }))
|
|
3987
4010
|
);
|
|
3988
4011
|
} else
|
|
3989
|
-
|
|
3990
|
-
active:
|
|
3991
|
-
normal:
|
|
4012
|
+
y = {
|
|
4013
|
+
active: p.active || R,
|
|
4014
|
+
normal: p.normal || $
|
|
3992
4015
|
};
|
|
3993
|
-
return Array.from({ length: S }, () => ({ ...
|
|
4016
|
+
return Array.from({ length: S }, () => ({ ...y }));
|
|
3994
4017
|
}
|
|
3995
|
-
function u(
|
|
3996
|
-
return i.value ? o.value !== -1 ? o.value ===
|
|
4018
|
+
function u(p) {
|
|
4019
|
+
return i.value ? o.value !== -1 ? o.value === p + 1 : l.value === p + 1 : o.value !== -1 ? o.value > p : l.value >= p + 1;
|
|
3997
4020
|
}
|
|
3998
|
-
function f(
|
|
3999
|
-
const S = c.value[
|
|
4000
|
-
return u(
|
|
4021
|
+
function f(p) {
|
|
4022
|
+
const S = c.value[p].normal, $ = c.value[p].active;
|
|
4023
|
+
return u(p) ? [i.value ? va : da, $] : [fa, S];
|
|
4001
4024
|
}
|
|
4002
|
-
const
|
|
4025
|
+
const C = m(() => {
|
|
4003
4026
|
if (typeof t.color == "string")
|
|
4004
4027
|
return Array.from({ length: a.value }).map(() => t.color);
|
|
4005
|
-
const
|
|
4006
|
-
return t.color.forEach((S,
|
|
4007
|
-
S && (
|
|
4008
|
-
}),
|
|
4009
|
-
}).value.map((
|
|
4028
|
+
const p = Array.from({ length: a.value }).map(() => ca);
|
|
4029
|
+
return t.color.forEach((S, $) => {
|
|
4030
|
+
S && (p[$] = S);
|
|
4031
|
+
}), p;
|
|
4032
|
+
}).value.map((p) => nt("filled", p)), v = te({
|
|
4010
4033
|
color: "surface",
|
|
4011
4034
|
type: "text",
|
|
4012
4035
|
index: { dark: 6, light: 4 }
|
|
4013
4036
|
});
|
|
4014
|
-
function b(
|
|
4015
|
-
l.value ===
|
|
4037
|
+
function b(p) {
|
|
4038
|
+
l.value === p && s.value ? (n("select", 0), l.value = 0) : (n("select", p + 1), l.value = p + 1);
|
|
4016
4039
|
}
|
|
4017
|
-
const
|
|
4040
|
+
const x = m(() => {
|
|
4018
4041
|
switch (t.size) {
|
|
4019
4042
|
case "sm":
|
|
4020
4043
|
return "text-xs";
|
|
@@ -4025,18 +4048,18 @@ const bo = /* @__PURE__ */ W({
|
|
|
4025
4048
|
return "text-base";
|
|
4026
4049
|
}
|
|
4027
4050
|
});
|
|
4028
|
-
return (
|
|
4029
|
-
class: D(["flex cursor-pointer",
|
|
4051
|
+
return (p, S) => (w(), A("div", {
|
|
4052
|
+
class: D(["flex cursor-pointer", x.value])
|
|
4030
4053
|
}, [
|
|
4031
|
-
(
|
|
4032
|
-
key:
|
|
4054
|
+
(w(!0), A(J, null, fe(a.value, ($, R) => (w(), A("div", {
|
|
4055
|
+
key: R,
|
|
4033
4056
|
class: "pr-1",
|
|
4034
|
-
onMouseover: (H) => o.value =
|
|
4057
|
+
onMouseover: (H) => o.value = R + 1,
|
|
4035
4058
|
onMouseleave: S[0] || (S[0] = (H) => o.value = -1),
|
|
4036
|
-
onPointerdown: (H) => b(
|
|
4059
|
+
onPointerdown: (H) => b(R)
|
|
4037
4060
|
}, [
|
|
4038
|
-
O("i", Z({ ref_for: !0 }, u(
|
|
4039
|
-
class: ["active:translate-y-1px", [f(
|
|
4061
|
+
O("i", Z({ ref_for: !0 }, u(R) ? h(C)[R].value : h(v), {
|
|
4062
|
+
class: ["active:translate-y-1px", [f(R)]]
|
|
4040
4063
|
}), null, 16)
|
|
4041
4064
|
], 40, ua))), 128))
|
|
4042
4065
|
], 2));
|
|
@@ -4052,10 +4075,10 @@ const bo = /* @__PURE__ */ W({
|
|
|
4052
4075
|
},
|
|
4053
4076
|
setup(e) {
|
|
4054
4077
|
const r = e, t = Kn(), n = m(() => r.themes[r.theme]);
|
|
4055
|
-
|
|
4078
|
+
de(() => {
|
|
4056
4079
|
Ce.value = typeof n.value.colors.surface == "string" ? n.value.colors.surface : Ce.value, De.value = typeof n.value.colors.primary == "string" ? n.value.colors.primary : De.value, Pe.value = typeof n.value.colors.secondary == "string" ? n.value.colors.secondary : Pe.value, Oe.value = typeof n.value.colors.tertiary == "string" ? n.value.colors.tertiary : Oe.value, Le.value = typeof n.value.colors.error == "string" ? n.value.colors.error : Le.value;
|
|
4057
4080
|
});
|
|
4058
|
-
const a =
|
|
4081
|
+
const a = M(null), l = m(() => pr({
|
|
4059
4082
|
colors: {
|
|
4060
4083
|
surface: Ce.value,
|
|
4061
4084
|
primary: De.value,
|
|
@@ -4065,7 +4088,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
4065
4088
|
},
|
|
4066
4089
|
name: n.value.name
|
|
4067
4090
|
}));
|
|
4068
|
-
return
|
|
4091
|
+
return Re(qn, t), Re("currentThemeData", m(() => n.value)), Il(a), (i, s) => (w(), G(xe(i.is), {
|
|
4069
4092
|
ref_key: "wrapperRef",
|
|
4070
4093
|
ref: a,
|
|
4071
4094
|
style: P([
|
|
@@ -4102,9 +4125,9 @@ const bo = /* @__PURE__ */ W({
|
|
|
4102
4125
|
}),
|
|
4103
4126
|
emits: ["update:modelValue"],
|
|
4104
4127
|
setup(e) {
|
|
4105
|
-
const r = e, t =
|
|
4128
|
+
const r = e, t = ie(e, "modelValue");
|
|
4106
4129
|
r.value && (t.value = r.value);
|
|
4107
|
-
const n =
|
|
4130
|
+
const n = M(null), a = M(!1), l = m(() => {
|
|
4108
4131
|
switch (r.size) {
|
|
4109
4132
|
case "sm":
|
|
4110
4133
|
return {
|
|
@@ -4144,27 +4167,27 @@ const bo = /* @__PURE__ */ W({
|
|
|
4144
4167
|
})), f = m(() => ({
|
|
4145
4168
|
wrapper: t.value ? c.value.style : o.value.style,
|
|
4146
4169
|
indicator: t.value ? {} : ""
|
|
4147
|
-
})),
|
|
4148
|
-
return N(b, "keydown", (
|
|
4149
|
-
(
|
|
4150
|
-
}), (
|
|
4170
|
+
})), g = ae(r), C = m(() => r.color), v = zt(C), b = M(null);
|
|
4171
|
+
return N(b, "keydown", (x) => {
|
|
4172
|
+
(x.key === "Enter" || x.key === " ") && (t.value = !t.value);
|
|
4173
|
+
}), (x, p) => (w(), A("div", {
|
|
4151
4174
|
ref_key: "wrapperRef",
|
|
4152
4175
|
ref: b,
|
|
4153
4176
|
role: "switch",
|
|
4154
4177
|
tabindex: "0",
|
|
4155
4178
|
class: D(["relative flex items-center gap-2 outline-none", [
|
|
4156
|
-
v
|
|
4157
|
-
|
|
4179
|
+
h(v).class,
|
|
4180
|
+
h(g).class,
|
|
4158
4181
|
{
|
|
4159
4182
|
"pointer-events-none filter-grayscale op-60": r.disabled
|
|
4160
4183
|
}
|
|
4161
4184
|
]]),
|
|
4162
|
-
style: P([v
|
|
4185
|
+
style: P([h(v).style, h(g).style])
|
|
4163
4186
|
}, [
|
|
4164
4187
|
ft(O("input", Z({
|
|
4165
|
-
id:
|
|
4166
|
-
"onUpdate:modelValue":
|
|
4167
|
-
},
|
|
4188
|
+
id: h(s),
|
|
4189
|
+
"onUpdate:modelValue": p[0] || (p[0] = (S) => t.value = S)
|
|
4190
|
+
}, x.$attrs, {
|
|
4168
4191
|
class: "hidden",
|
|
4169
4192
|
type: "checkbox"
|
|
4170
4193
|
}), null, 16, ma), [
|
|
@@ -4172,23 +4195,23 @@ const bo = /* @__PURE__ */ W({
|
|
|
4172
4195
|
]),
|
|
4173
4196
|
O("label", {
|
|
4174
4197
|
class: "leading-0 cursor-pointer!",
|
|
4175
|
-
for:
|
|
4198
|
+
for: h(s)
|
|
4176
4199
|
}, [
|
|
4177
4200
|
O("div", {
|
|
4178
4201
|
ref_key: "wrapper",
|
|
4179
4202
|
ref: n,
|
|
4180
|
-
class: D([[l.value.wrapper, ...u.value.wrapper,
|
|
4181
|
-
style: P([
|
|
4182
|
-
onPointerdown:
|
|
4183
|
-
onPointerup:
|
|
4184
|
-
onPointerleave:
|
|
4185
|
-
onPointerenter:
|
|
4203
|
+
class: D([[l.value.wrapper, ...u.value.wrapper, h(g).class], "relative inline-block"]),
|
|
4204
|
+
style: P([h(g).style, f.value.wrapper]),
|
|
4205
|
+
onPointerdown: p[1] || (p[1] = (S) => a.value = !0),
|
|
4206
|
+
onPointerup: p[2] || (p[2] = (S) => a.value = !1),
|
|
4207
|
+
onPointerleave: p[3] || (p[3] = (S) => a.value = !1),
|
|
4208
|
+
onPointerenter: p[4] || (p[4] = (S) => S.buttons === 1 && (a.value = !0))
|
|
4186
4209
|
}, [
|
|
4187
4210
|
O("div", {
|
|
4188
|
-
class: D(["absolute top-50% -translate-y-50%", [l.value.indicator, u.value.indicator, i.value.indicator, t.value ? l.value.active : l.value.inactive,
|
|
4189
|
-
style: P([
|
|
4211
|
+
class: D(["absolute top-50% -translate-y-50%", [l.value.indicator, u.value.indicator, i.value.indicator, t.value ? l.value.active : l.value.inactive, h(g).class]]),
|
|
4212
|
+
style: P([h(g).style, f.value.indicator])
|
|
4190
4213
|
}, [
|
|
4191
|
-
|
|
4214
|
+
U(We, {
|
|
4192
4215
|
name: "fade",
|
|
4193
4216
|
mode: "out-in",
|
|
4194
4217
|
"enter-active-class": "transition-all duration-300",
|
|
@@ -4199,24 +4222,24 @@ const bo = /* @__PURE__ */ W({
|
|
|
4199
4222
|
"leave-to-class": "scale-0"
|
|
4200
4223
|
}, {
|
|
4201
4224
|
default: ee(() => [
|
|
4202
|
-
r.indicatorIcon ? (
|
|
4225
|
+
r.indicatorIcon ? (w(), A("i", {
|
|
4203
4226
|
key: 0,
|
|
4204
|
-
class: D(["h-full w-full", [r.indicatorIcon, t.value ?
|
|
4205
|
-
style: P(
|
|
4206
|
-
}, null, 6)) : t.value && r.onIndicatorIcon ? (
|
|
4227
|
+
class: D(["h-full w-full", [r.indicatorIcon, t.value ? h(d).class : "text-black"]]),
|
|
4228
|
+
style: P(h(d).style)
|
|
4229
|
+
}, null, 6)) : t.value && r.onIndicatorIcon ? (w(), A("i", {
|
|
4207
4230
|
key: 1,
|
|
4208
|
-
class: D(["h-full w-full", [r.onIndicatorIcon, t.value ?
|
|
4209
|
-
style: P(
|
|
4210
|
-
}, null, 6)) : !t.value && r.offIndicatorIcon ? (
|
|
4231
|
+
class: D(["h-full w-full", [r.onIndicatorIcon, t.value ? h(d).class : "text-black"]]),
|
|
4232
|
+
style: P(h(d).style)
|
|
4233
|
+
}, null, 6)) : !t.value && r.offIndicatorIcon ? (w(), A("i", {
|
|
4211
4234
|
key: 2,
|
|
4212
|
-
class: D(["h-full w-full", [r.offIndicatorIcon, t.value ?
|
|
4213
|
-
style: P(
|
|
4235
|
+
class: D(["h-full w-full", [r.offIndicatorIcon, t.value ? h(d).class : "text-black"]]),
|
|
4236
|
+
style: P(h(d).style)
|
|
4214
4237
|
}, null, 6)) : F("", !0)
|
|
4215
4238
|
]),
|
|
4216
4239
|
_: 1
|
|
4217
4240
|
})
|
|
4218
4241
|
], 6),
|
|
4219
|
-
|
|
4242
|
+
U(We, {
|
|
4220
4243
|
name: "fade",
|
|
4221
4244
|
mode: "out-in",
|
|
4222
4245
|
"enter-active-class": "transition-all duration-300",
|
|
@@ -4227,19 +4250,19 @@ const bo = /* @__PURE__ */ W({
|
|
|
4227
4250
|
"leave-to-class": "scale-0 rotate-50 "
|
|
4228
4251
|
}, {
|
|
4229
4252
|
default: ee(() => [
|
|
4230
|
-
t.value ? (
|
|
4253
|
+
t.value ? (w(), A("i", {
|
|
4231
4254
|
key: "on",
|
|
4232
4255
|
class: D(["absolute top-1/2 -translate-y-50%", [l.value.icon, {
|
|
4233
|
-
[`left-0 text-${
|
|
4234
|
-
[
|
|
4235
|
-
[
|
|
4256
|
+
[`left-0 text-${x.color}-on-container-low`]: t.value,
|
|
4257
|
+
[x.onIcon ?? ""]: t.value && x.onIcon,
|
|
4258
|
+
[x.offIcon ?? ""]: !t.value && x.offIcon
|
|
4236
4259
|
}]])
|
|
4237
|
-
}, null, 2)) : (
|
|
4260
|
+
}, null, 2)) : (w(), A("i", {
|
|
4238
4261
|
key: "off",
|
|
4239
4262
|
class: D(["absolute top-1/2 -translate-y-50%", [l.value.icon, {
|
|
4240
4263
|
"right-0": !t.value,
|
|
4241
|
-
[
|
|
4242
|
-
[
|
|
4264
|
+
[x.onIcon ?? ""]: t.value && x.onIcon,
|
|
4265
|
+
[x.offIcon ?? ""]: !t.value && x.offIcon
|
|
4243
4266
|
}]])
|
|
4244
4267
|
}, null, 2))
|
|
4245
4268
|
]),
|
|
@@ -4247,20 +4270,20 @@ const bo = /* @__PURE__ */ W({
|
|
|
4247
4270
|
})
|
|
4248
4271
|
], 38)
|
|
4249
4272
|
], 8, ga),
|
|
4250
|
-
|
|
4273
|
+
x.label ? (w(), A("label", {
|
|
4251
4274
|
key: 0,
|
|
4252
|
-
for:
|
|
4253
|
-
}, ne(
|
|
4275
|
+
for: h(s)
|
|
4276
|
+
}, ne(x.label), 9, ya)) : F("", !0)
|
|
4254
4277
|
], 6));
|
|
4255
4278
|
}
|
|
4256
|
-
}),
|
|
4279
|
+
}), wa = { class: "scheme-switch inline-block" }, xa = { class: "dark:hidden" }, Sa = { class: "light:hidden" }, $o = /* @__PURE__ */ W({
|
|
4257
4280
|
__name: "SchemeSwitch",
|
|
4258
4281
|
props: {
|
|
4259
4282
|
disableViewTranslation: { type: Boolean, default: !1 },
|
|
4260
4283
|
circleTranslation: { type: Boolean, default: !1 }
|
|
4261
4284
|
},
|
|
4262
4285
|
setup(e) {
|
|
4263
|
-
const r = e, t =
|
|
4286
|
+
const r = e, t = M(!1);
|
|
4264
4287
|
let n;
|
|
4265
4288
|
N("click", (i) => n = i), Q([t], () => {
|
|
4266
4289
|
if (Me) {
|
|
@@ -4292,26 +4315,26 @@ const bo = /* @__PURE__ */ W({
|
|
|
4292
4315
|
}
|
|
4293
4316
|
}
|
|
4294
4317
|
});
|
|
4295
|
-
const a =
|
|
4318
|
+
const a = M(!0), l = M(!1);
|
|
4296
4319
|
return he(() => {
|
|
4297
4320
|
Me && (t.value = localStorage.getItem("scheme") === "dark"), a.value = !1;
|
|
4298
4321
|
}), dt(() => {
|
|
4299
4322
|
l.value = !0;
|
|
4300
4323
|
}), (i, s) => {
|
|
4301
4324
|
const o = ba;
|
|
4302
|
-
return
|
|
4325
|
+
return w(), A("div", wa, [
|
|
4303
4326
|
O("div", {
|
|
4304
4327
|
class: D({ hidden: !a.value })
|
|
4305
4328
|
}, [
|
|
4306
|
-
O("div",
|
|
4307
|
-
|
|
4329
|
+
O("div", xa, [
|
|
4330
|
+
U(o, {
|
|
4308
4331
|
value: !1,
|
|
4309
4332
|
"on-icon": "i-line-md-moon-twotone-alt-loop",
|
|
4310
4333
|
"off-icon": "i-line-md-sunny-outline-twotone-loop"
|
|
4311
4334
|
})
|
|
4312
4335
|
]),
|
|
4313
4336
|
O("div", Sa, [
|
|
4314
|
-
|
|
4337
|
+
U(o, {
|
|
4315
4338
|
value: !0,
|
|
4316
4339
|
color: "secondary",
|
|
4317
4340
|
"on-icon": "i-line-md-moon-twotone-alt-loop",
|
|
@@ -4322,7 +4345,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
4322
4345
|
O("div", {
|
|
4323
4346
|
class: D({ hidden: a.value })
|
|
4324
4347
|
}, [
|
|
4325
|
-
|
|
4348
|
+
U(o, {
|
|
4326
4349
|
modelValue: t.value,
|
|
4327
4350
|
"onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c),
|
|
4328
4351
|
animate: l.value,
|
|
@@ -4344,59 +4367,59 @@ const bo = /* @__PURE__ */ W({
|
|
|
4344
4367
|
autoHide: { type: Boolean }
|
|
4345
4368
|
},
|
|
4346
4369
|
setup(e, { expose: r }) {
|
|
4347
|
-
const t = e, n = vr(), a = Ae(n), l =
|
|
4370
|
+
const t = e, n = vr(), a = Ae(n), l = M(), i = Ae(() => l.value), s = m(() => {
|
|
4348
4371
|
if (t.height)
|
|
4349
4372
|
return typeof t.height == "number" ? `${t.height}px` : t.height;
|
|
4350
4373
|
const z = n.value ? Number.parseFloat(getComputedStyle(n.value).paddingTop) + Number.parseFloat(getComputedStyle(n.value).paddingBottom) : 0, j = n.value ? Number.parseFloat(getComputedStyle(n.value).marginTop) + Number.parseFloat(getComputedStyle(n.value).marginBottom) : 0;
|
|
4351
4374
|
return `${a.height.value - z - j}px`;
|
|
4352
|
-
}), o =
|
|
4375
|
+
}), o = M(), c = Xn(() => o.value), { x: d, y: u } = Ln(() => o.value), f = m(() => {
|
|
4353
4376
|
var z;
|
|
4354
4377
|
return (((z = o.value) == null ? void 0 : z.scrollHeight) ?? 0) - (c.value ?? 0);
|
|
4355
|
-
}),
|
|
4378
|
+
}), g = jn(() => o.value), C = m(() => u.value / f.value || 0), v = m(() => o.value ? c.value / g.value * c.value : 0), b = m(() => c.value - v.value), x = m(() => {
|
|
4356
4379
|
if (!o.value)
|
|
4357
4380
|
return null;
|
|
4358
|
-
const z =
|
|
4381
|
+
const z = C.value * b.value;
|
|
4359
4382
|
return {
|
|
4360
4383
|
x: d.value,
|
|
4361
4384
|
y: u.value,
|
|
4362
|
-
barHeight:
|
|
4385
|
+
barHeight: v.value,
|
|
4363
4386
|
barTop: z
|
|
4364
4387
|
};
|
|
4365
|
-
}),
|
|
4388
|
+
}), p = M(!1), S = M(0), $ = M(""), R = M(0), H = ht({ type: "client" });
|
|
4366
4389
|
N(() => l.value, "pointerdown", (z) => {
|
|
4367
|
-
|
|
4390
|
+
p.value = !0, S.value = z.clientY, R.value = u.value, $.value = document.body.style.userSelect, document.body.style.userSelect = "none";
|
|
4368
4391
|
}), N(() => document, "pointermove", () => {
|
|
4369
|
-
if (!
|
|
4392
|
+
if (!p.value)
|
|
4370
4393
|
return;
|
|
4371
4394
|
if (t.threshold < i.left.value - H.x.value || H.x.value - i.right.value > t.threshold) {
|
|
4372
|
-
u.value =
|
|
4395
|
+
u.value = R.value;
|
|
4373
4396
|
return;
|
|
4374
4397
|
}
|
|
4375
4398
|
const j = (H.y.value - S.value) / b.value;
|
|
4376
|
-
u.value =
|
|
4399
|
+
u.value = R.value + j * f.value;
|
|
4377
4400
|
}), N(() => document, "pointerup", () => {
|
|
4378
|
-
|
|
4401
|
+
p.value = !1, document.body.style.userSelect = $.value;
|
|
4379
4402
|
}), r({
|
|
4380
4403
|
$el: o
|
|
4381
4404
|
});
|
|
4382
|
-
const
|
|
4405
|
+
const y = M(), k = Se(y), T = Se(() => l.value), _ = Qe("bg", { dark: 2, light: 7 }, 0.5), I = Qe("bg", { dark: 2, light: 7 }, 0.75);
|
|
4383
4406
|
function B(z) {
|
|
4384
|
-
var
|
|
4385
|
-
const { clientY: j } = z, { top: X, height:
|
|
4386
|
-
(
|
|
4387
|
-
top: ge /
|
|
4407
|
+
var Ie;
|
|
4408
|
+
const { clientY: j } = z, { top: X, height: le } = i, V = X.value, Y = le.value, ue = V + Y / 2, ge = j - ue;
|
|
4409
|
+
(Ie = o.value) == null || Ie.scrollBy({
|
|
4410
|
+
top: ge / Y * c.value,
|
|
4388
4411
|
behavior: "smooth"
|
|
4389
4412
|
});
|
|
4390
4413
|
}
|
|
4391
|
-
return (z, j) => (
|
|
4414
|
+
return (z, j) => (w(), A("div", {
|
|
4392
4415
|
ref_key: "wrapperRef",
|
|
4393
|
-
ref:
|
|
4416
|
+
ref: y,
|
|
4394
4417
|
style: P({
|
|
4395
4418
|
height: s.value
|
|
4396
4419
|
}),
|
|
4397
4420
|
class: "relative max-h-fit overflow-hidden"
|
|
4398
4421
|
}, [
|
|
4399
|
-
|
|
4422
|
+
x.value ? (w(), A("div", {
|
|
4400
4423
|
key: 0,
|
|
4401
4424
|
style: P({
|
|
4402
4425
|
width: `${z.barWidth}px`
|
|
@@ -4408,24 +4431,24 @@ const bo = /* @__PURE__ */ W({
|
|
|
4408
4431
|
ref_key: "scrollBarIndicatorRef",
|
|
4409
4432
|
ref: l,
|
|
4410
4433
|
class: D([[
|
|
4411
|
-
|
|
4434
|
+
h(_).class,
|
|
4412
4435
|
{
|
|
4413
|
-
"op-0": !
|
|
4414
|
-
"op-100":
|
|
4436
|
+
"op-0": !h(k) && z.autoHide,
|
|
4437
|
+
"op-100": h(k) && z.autoHide
|
|
4415
4438
|
}
|
|
4416
4439
|
], "absolute right-0 z-1 rounded-full transition-background-color,opacity"]),
|
|
4417
4440
|
style: P([
|
|
4418
4441
|
{
|
|
4419
4442
|
right: "0px",
|
|
4420
4443
|
width: `${z.barWidth}px`,
|
|
4421
|
-
top: `${
|
|
4422
|
-
height: `${
|
|
4444
|
+
top: `${x.value.barTop}px`,
|
|
4445
|
+
height: `${x.value.barHeight}px`
|
|
4423
4446
|
},
|
|
4424
|
-
!
|
|
4425
|
-
(
|
|
4447
|
+
!h(T) && !p.value && h(_).style,
|
|
4448
|
+
(h(T) || p.value) && h(I).style
|
|
4426
4449
|
])
|
|
4427
4450
|
}, null, 6), [
|
|
4428
|
-
[zr,
|
|
4451
|
+
[zr, x.value.barHeight < h(c)]
|
|
4429
4452
|
])
|
|
4430
4453
|
], 36)) : F("", !0),
|
|
4431
4454
|
O("div", {
|
|
@@ -4469,39 +4492,39 @@ const bo = /* @__PURE__ */ W({
|
|
|
4469
4492
|
}),
|
|
4470
4493
|
emits: /* @__PURE__ */ re(["change", "input"], ["update:modelValue"]),
|
|
4471
4494
|
setup(e, { emit: r }) {
|
|
4472
|
-
const t = e, n = r, a =
|
|
4495
|
+
const t = e, n = r, a = ae(t), l = ie(e, "modelValue"), i = M(null), s = M(null), o = M(!1);
|
|
4473
4496
|
$t(s, () => {
|
|
4474
4497
|
o.value = !1;
|
|
4475
4498
|
});
|
|
4476
|
-
const c =
|
|
4477
|
-
|
|
4499
|
+
const c = M(-1), d = M(-1);
|
|
4500
|
+
de(() => {
|
|
4478
4501
|
o.value || (d.value = -1);
|
|
4479
4502
|
}), Q(l, () => {
|
|
4480
4503
|
n("change", l.value);
|
|
4481
4504
|
});
|
|
4482
|
-
const u = m(() => l.value), f = m(() =>
|
|
4505
|
+
const u = m(() => l.value), f = m(() => v(u.value)), g = m(() => t.options.findIndex((V) => I(V, u.value))), C = M(f.value);
|
|
4483
4506
|
Q(f, () => {
|
|
4484
|
-
|
|
4507
|
+
C.value = f.value;
|
|
4485
4508
|
});
|
|
4486
|
-
function
|
|
4509
|
+
function v(V) {
|
|
4487
4510
|
return V ? typeof V == "string" || typeof V == "symbol" || typeof V == "number" ? String(V) : V.label ? V.label : V.id : "";
|
|
4488
4511
|
}
|
|
4489
4512
|
function b(V) {
|
|
4490
4513
|
if (V)
|
|
4491
4514
|
return typeof V == "string" || typeof V == "symbol" || typeof V == "number" ? V : V.id;
|
|
4492
4515
|
}
|
|
4493
|
-
function
|
|
4516
|
+
function x(V) {
|
|
4494
4517
|
o.value = !0;
|
|
4495
|
-
const
|
|
4496
|
-
|
|
4518
|
+
const Y = V.target;
|
|
4519
|
+
C.value = Y.value, n("input", C.value);
|
|
4497
4520
|
}
|
|
4498
|
-
const
|
|
4521
|
+
const p = m(() => t.searchable && C.value !== f.value ? t.options.filter((V) => t.filter(v(V), C.value)) : t.options);
|
|
4499
4522
|
pe("ArrowDown", (V) => {
|
|
4500
|
-
o.value && (V.preventDefault(), d.value === -1 && c.value !== -1 ? d.value = c.value : d.value === -1 && c.value === -1 &&
|
|
4523
|
+
o.value && (V.preventDefault(), d.value === -1 && c.value !== -1 ? d.value = c.value : d.value === -1 && c.value === -1 && g.value !== -1 && (d.value = g.value), d.value = (d.value + 1) % t.options.length);
|
|
4501
4524
|
}), pe("ArrowUp", (V) => {
|
|
4502
|
-
o.value && (V.preventDefault(), d.value === -1 && c.value !== -1 ? d.value = c.value : d.value === -1 && c.value === -1 &&
|
|
4525
|
+
o.value && (V.preventDefault(), d.value === -1 && c.value !== -1 ? d.value = c.value : d.value === -1 && c.value === -1 && g.value !== -1 && (d.value = g.value), d.value = (d.value - 1 + t.options.length) % t.options.length);
|
|
4503
4526
|
}), pe("Enter", () => {
|
|
4504
|
-
o.value && d.value !== -1 && (l.value =
|
|
4527
|
+
o.value && d.value !== -1 && (l.value = p.value[d.value], i.value.focus(), o.value = !1);
|
|
4505
4528
|
});
|
|
4506
4529
|
function S(V) {
|
|
4507
4530
|
if (i.value.focus(), !o.value) {
|
|
@@ -4510,7 +4533,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
4510
4533
|
}
|
|
4511
4534
|
l.value = V, o.value = !1;
|
|
4512
4535
|
}
|
|
4513
|
-
const
|
|
4536
|
+
const $ = m(() => t.color), R = br($, "default"), H = m(() => {
|
|
4514
4537
|
switch (t.size) {
|
|
4515
4538
|
case "sm":
|
|
4516
4539
|
return {
|
|
@@ -4528,80 +4551,80 @@ const bo = /* @__PURE__ */ W({
|
|
|
4528
4551
|
dropdown: "text-base children:py-1"
|
|
4529
4552
|
};
|
|
4530
4553
|
}
|
|
4531
|
-
}),
|
|
4554
|
+
}), y = M(null), { height: k } = Ae(y), { bottom: T } = Ae(i);
|
|
4532
4555
|
Q([o], () => {
|
|
4533
4556
|
d.value = -1, c.value = -1;
|
|
4534
4557
|
});
|
|
4535
|
-
const
|
|
4536
|
-
function
|
|
4537
|
-
return
|
|
4558
|
+
const _ = m(() => o.value && Me ? k.value === 0 ? !1 : document.documentElement.clientHeight - T.value > k.value : !1);
|
|
4559
|
+
function I(V, Y) {
|
|
4560
|
+
return Y ? typeof V == "string" || typeof V == "symbol" || typeof V == "number" ? V === Y : typeof Y == "string" || typeof Y == "symbol" || typeof Y == "number" ? !1 : V.id === Y.id : !1;
|
|
4538
4561
|
}
|
|
4539
|
-
const B = m(() => t.searchable ? "cursor-text" : "cursor-pointer"), z = Et(), j = yr(), X = at(
|
|
4540
|
-
function
|
|
4562
|
+
const B = m(() => t.searchable ? "cursor-text" : "cursor-pointer"), z = Et(), j = yr(), X = at($);
|
|
4563
|
+
function le(V) {
|
|
4541
4564
|
c.value = V, d.value = -1;
|
|
4542
4565
|
}
|
|
4543
|
-
return (V,
|
|
4566
|
+
return (V, Y) => (w(), A("div", {
|
|
4544
4567
|
ref_key: "wrapperRef",
|
|
4545
4568
|
ref: s,
|
|
4546
4569
|
class: "relative",
|
|
4547
|
-
style: P(
|
|
4570
|
+
style: P(h(R))
|
|
4548
4571
|
}, [
|
|
4549
4572
|
O("div", ka, [
|
|
4550
4573
|
O("input", {
|
|
4551
4574
|
ref_key: "inputRef",
|
|
4552
4575
|
ref: i,
|
|
4553
|
-
class: D([[H.value.wrapper,
|
|
4576
|
+
class: D([[H.value.wrapper, h(a).class, B.value], "border outline-none outline-none focus-visible:outline-2 custom-input-colors"]),
|
|
4554
4577
|
placeholder: V.placeholder,
|
|
4555
|
-
style: P([
|
|
4578
|
+
style: P([h(a).style, h(R)]),
|
|
4556
4579
|
readonly: !V.searchable,
|
|
4557
|
-
value:
|
|
4580
|
+
value: C.value,
|
|
4558
4581
|
"aria-label": V.ariaLabel,
|
|
4559
4582
|
"aria-haspopup": "listbox",
|
|
4560
4583
|
autocomplete: "off",
|
|
4561
|
-
onInput:
|
|
4562
|
-
onClick:
|
|
4584
|
+
onInput: x,
|
|
4585
|
+
onClick: Y[0] || (Y[0] = (ue) => o.value = !0)
|
|
4563
4586
|
}, null, 46, _a),
|
|
4564
|
-
|
|
4587
|
+
Y[2] || (Y[2] = O("i", { class: "i-fluent-chevron-down-12-filled pointer-events-none absolute right-2" }, null, -1))
|
|
4565
4588
|
]),
|
|
4566
|
-
o.value ? (
|
|
4589
|
+
o.value ? (w(), A("div", {
|
|
4567
4590
|
key: 0,
|
|
4568
4591
|
ref_key: "dropdownRef",
|
|
4569
|
-
ref:
|
|
4570
|
-
class: D(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1", [
|
|
4571
|
-
"bottom-10": !
|
|
4592
|
+
ref: y,
|
|
4593
|
+
class: D(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1", [h(z).class, H.value.dropdown, {
|
|
4594
|
+
"bottom-10": !_.value
|
|
4572
4595
|
}]]),
|
|
4573
|
-
style: P([
|
|
4596
|
+
style: P([h(z).style])
|
|
4574
4597
|
}, [
|
|
4575
|
-
V.options.length === 0 ? (
|
|
4598
|
+
V.options.length === 0 ? (w(), A("div", $a, [
|
|
4576
4599
|
L(V.$slots, "none", {}, () => [
|
|
4577
4600
|
Ze(ne(V.noneText), 1)
|
|
4578
4601
|
])
|
|
4579
|
-
])) : (
|
|
4580
|
-
(
|
|
4581
|
-
key: b(
|
|
4602
|
+
])) : (w(), A(J, { key: 1 }, [
|
|
4603
|
+
(w(!0), A(J, null, fe(p.value, (ue, ge) => (w(), A("div", {
|
|
4604
|
+
key: b(ue),
|
|
4582
4605
|
class: D([[
|
|
4583
|
-
d.value === ge &&
|
|
4584
|
-
c.value === ge && d.value === -1 &&
|
|
4606
|
+
d.value === ge && h(X).class,
|
|
4607
|
+
c.value === ge && d.value === -1 && h(j).class
|
|
4585
4608
|
], "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
|
|
4586
4609
|
style: P([
|
|
4587
|
-
d.value === ge &&
|
|
4588
|
-
c.value === ge && d.value === -1 &&
|
|
4610
|
+
d.value === ge && h(X).style,
|
|
4611
|
+
c.value === ge && d.value === -1 && h(j).style
|
|
4589
4612
|
]),
|
|
4590
|
-
onPointerdown: (
|
|
4591
|
-
onMousemove: (
|
|
4592
|
-
onMouseleave:
|
|
4613
|
+
onPointerdown: (Ie) => S(ue),
|
|
4614
|
+
onMousemove: (Ie) => le(ge),
|
|
4615
|
+
onMouseleave: Y[1] || (Y[1] = (Ie) => c.value = -1)
|
|
4593
4616
|
}, [
|
|
4594
4617
|
L(V.$slots, "item", {
|
|
4595
|
-
data:
|
|
4596
|
-
selected:
|
|
4618
|
+
data: ue,
|
|
4619
|
+
selected: I(ue, u.value)
|
|
4597
4620
|
}, () => [
|
|
4598
|
-
Ze(ne(
|
|
4621
|
+
Ze(ne(v(ue)), 1)
|
|
4599
4622
|
]),
|
|
4600
|
-
|
|
4623
|
+
I(ue, u.value) ? (w(), A("div", Ma, Y[3] || (Y[3] = [
|
|
4601
4624
|
O("i", { class: "i-fluent-checkmark-12-filled h-3 w-3" }, null, -1)
|
|
4602
4625
|
]))) : F("", !0)
|
|
4603
4626
|
], 46, Ca))), 128)),
|
|
4604
|
-
V.searchable &&
|
|
4627
|
+
V.searchable && p.value.length === 0 ? (w(), A("div", Aa, [
|
|
4605
4628
|
L(V.$slots, "not-found", {}, () => [
|
|
4606
4629
|
Ze(ne(V.notFoundText), 1)
|
|
4607
4630
|
])
|
|
@@ -4619,72 +4642,72 @@ const bo = /* @__PURE__ */ W({
|
|
|
4619
4642
|
emits: ["selectStart", "selectChange", "selectEnd"],
|
|
4620
4643
|
setup(e, { emit: r }) {
|
|
4621
4644
|
const t = e, n = r, a = m(() => t.color), l = Be(a), i = m(() => {
|
|
4622
|
-
const
|
|
4645
|
+
const x = l.value[5].setAlpha(0.5).toHex8String(), p = l.value[5].setAlpha(0.1).toHex8String();
|
|
4623
4646
|
return {
|
|
4624
|
-
"--border-color":
|
|
4625
|
-
"--fill-color":
|
|
4647
|
+
"--border-color": x,
|
|
4648
|
+
"--fill-color": p
|
|
4626
4649
|
};
|
|
4627
|
-
}), { shift: s, control: o } = Wn(), c = vr(), d = m(() => t.target ?? c.value), u = ht(), f =
|
|
4628
|
-
N(d, "pointerdown", (
|
|
4629
|
-
if (
|
|
4650
|
+
}), { shift: s, control: o } = Wn(), c = vr(), d = m(() => t.target ?? c.value), u = ht(), f = M({ x: 0, y: 0 }), g = M({ x: 0, y: 0 }), C = M(!1), v = Ae(d);
|
|
4651
|
+
N(d, "pointerdown", (x) => {
|
|
4652
|
+
if (x.button !== 0)
|
|
4630
4653
|
return;
|
|
4631
|
-
const
|
|
4654
|
+
const p = x.pageX - v.left.value, S = x.pageY - v.top.value;
|
|
4632
4655
|
f.value = {
|
|
4633
|
-
x:
|
|
4656
|
+
x: p,
|
|
4634
4657
|
y: S
|
|
4635
|
-
},
|
|
4636
|
-
x:
|
|
4658
|
+
}, g.value = {
|
|
4659
|
+
x: p,
|
|
4637
4660
|
y: S
|
|
4638
|
-
},
|
|
4639
|
-
}, { capture: !0 }), N(window, "pointerup", (
|
|
4640
|
-
|
|
4641
|
-
left: Math.min(f.value.x,
|
|
4642
|
-
top: Math.min(f.value.y,
|
|
4643
|
-
right: Math.max(f.value.x,
|
|
4644
|
-
bottom: Math.max(f.value.y,
|
|
4645
|
-
}, { target:
|
|
4646
|
-
}), N(d, "pointermove", (
|
|
4647
|
-
const
|
|
4648
|
-
|
|
4649
|
-
x:
|
|
4661
|
+
}, C.value = !0, n("selectStart", { target: x.target, shift: s.value, ctrl: o.value });
|
|
4662
|
+
}, { capture: !0 }), N(window, "pointerup", (x) => {
|
|
4663
|
+
C.value = !1, n("selectEnd", {
|
|
4664
|
+
left: Math.min(f.value.x, g.value.x),
|
|
4665
|
+
top: Math.min(f.value.y, g.value.y),
|
|
4666
|
+
right: Math.max(f.value.x, g.value.x),
|
|
4667
|
+
bottom: Math.max(f.value.y, g.value.y)
|
|
4668
|
+
}, { target: x.target, shift: s.value, ctrl: o.value });
|
|
4669
|
+
}), N(d, "pointermove", (x) => {
|
|
4670
|
+
const p = x.pageX - v.left.value, S = x.pageY - v.top.value;
|
|
4671
|
+
C.value && (g.value = {
|
|
4672
|
+
x: p,
|
|
4650
4673
|
y: S
|
|
4651
4674
|
}, n("selectChange", {
|
|
4652
|
-
left: Math.min(f.value.x,
|
|
4653
|
-
top: Math.min(f.value.y,
|
|
4654
|
-
right: Math.max(f.value.x,
|
|
4655
|
-
bottom: Math.max(f.value.y,
|
|
4656
|
-
}, { target:
|
|
4675
|
+
left: Math.min(f.value.x, g.value.x),
|
|
4676
|
+
top: Math.min(f.value.y, g.value.y),
|
|
4677
|
+
right: Math.max(f.value.x, g.value.x),
|
|
4678
|
+
bottom: Math.max(f.value.y, g.value.y)
|
|
4679
|
+
}, { target: x.target, shift: s.value, ctrl: o.value }));
|
|
4657
4680
|
});
|
|
4658
4681
|
const b = m(() => d.value ? d.value.parentElement : null);
|
|
4659
|
-
return N(b, "scroll", (
|
|
4660
|
-
|
|
4661
|
-
x: u.x.value -
|
|
4662
|
-
y: u.y.value -
|
|
4682
|
+
return N(b, "scroll", (x) => {
|
|
4683
|
+
C.value && (g.value = {
|
|
4684
|
+
x: u.x.value - v.left.value,
|
|
4685
|
+
y: u.y.value - v.top.value
|
|
4663
4686
|
}, n("selectChange", {
|
|
4664
|
-
left: Math.min(f.value.x,
|
|
4665
|
-
top: Math.min(f.value.y,
|
|
4666
|
-
right: Math.max(f.value.x,
|
|
4667
|
-
bottom: Math.max(f.value.y,
|
|
4668
|
-
}, { target:
|
|
4687
|
+
left: Math.min(f.value.x, g.value.x),
|
|
4688
|
+
top: Math.min(f.value.y, g.value.y),
|
|
4689
|
+
right: Math.max(f.value.x, g.value.x),
|
|
4690
|
+
bottom: Math.max(f.value.y, g.value.y)
|
|
4691
|
+
}, { target: x.target, shift: s.value, ctrl: o.value }));
|
|
4669
4692
|
}), N(window, "dragend", () => {
|
|
4670
|
-
|
|
4671
|
-
}), (
|
|
4693
|
+
C.value = !1;
|
|
4694
|
+
}), (x, p) => d.value ? (w(), G(nr, {
|
|
4672
4695
|
key: 0,
|
|
4673
4696
|
to: d.value
|
|
4674
4697
|
}, [
|
|
4675
|
-
|
|
4698
|
+
C.value ? (w(), A("div", {
|
|
4676
4699
|
key: 0,
|
|
4677
4700
|
class: "absolute z-10000 h-1 border border border-[var(--border-color)] bg-[var(--fill-color)]",
|
|
4678
4701
|
style: P([{
|
|
4679
|
-
left: `${Math.min(f.value.x,
|
|
4680
|
-
top: `${Math.min(f.value.y,
|
|
4681
|
-
width: `${Math.abs(f.value.x -
|
|
4682
|
-
height: `${Math.abs(f.value.y -
|
|
4702
|
+
left: `${Math.min(f.value.x, g.value.x)}px`,
|
|
4703
|
+
top: `${Math.min(f.value.y, g.value.y)}px`,
|
|
4704
|
+
width: `${Math.abs(f.value.x - g.value.x)}px`,
|
|
4705
|
+
height: `${Math.abs(f.value.y - g.value.y)}px`
|
|
4683
4706
|
}, i.value])
|
|
4684
4707
|
}, null, 4)) : F("", !0)
|
|
4685
4708
|
], 8, ["to"])) : F("", !0);
|
|
4686
4709
|
}
|
|
4687
|
-
}), Ha = { class: "relative w-full" }, Ta = "dark:bg-white bg-[var(--i-bg)]",
|
|
4710
|
+
}), Ha = { class: "relative w-full" }, Ta = "dark:bg-white bg-[var(--i-bg)]", Ra = "dark:bg-[var(--i-bg)] bg-white", Ho = /* @__PURE__ */ W({
|
|
4688
4711
|
__name: "Slider",
|
|
4689
4712
|
props: /* @__PURE__ */ re({
|
|
4690
4713
|
size: { default: "md" },
|
|
@@ -4706,52 +4729,52 @@ const bo = /* @__PURE__ */ W({
|
|
|
4706
4729
|
emits: ["update:modelValue"],
|
|
4707
4730
|
setup(e) {
|
|
4708
4731
|
const r = e;
|
|
4709
|
-
function t(H,
|
|
4732
|
+
function t(H, y, k) {
|
|
4710
4733
|
const T = [];
|
|
4711
|
-
for (let
|
|
4712
|
-
T.push(
|
|
4713
|
-
return T[T.length - 1] !==
|
|
4734
|
+
for (let _ = H; _ <= y; _ += k)
|
|
4735
|
+
T.push(_);
|
|
4736
|
+
return T[T.length - 1] !== y && T.push(y), T;
|
|
4714
4737
|
}
|
|
4715
|
-
function n(H,
|
|
4716
|
-
const
|
|
4738
|
+
function n(H, y) {
|
|
4739
|
+
const k = [];
|
|
4717
4740
|
if (H === 0)
|
|
4718
|
-
return
|
|
4719
|
-
|
|
4720
|
-
const T = (
|
|
4721
|
-
for (let
|
|
4722
|
-
|
|
4723
|
-
return
|
|
4741
|
+
return k;
|
|
4742
|
+
k.push(y[0]);
|
|
4743
|
+
const T = (y.length - 1) / (H - 1);
|
|
4744
|
+
for (let _ = 1; _ < H - 1; _++)
|
|
4745
|
+
k.push(y[Math.round(_ * T)]);
|
|
4746
|
+
return k.push(y[y.length - 1]), k;
|
|
4724
4747
|
}
|
|
4725
|
-
const a = m(() => r.options ? r.options.length : r.tickNum ?? 0), l = m(() => r.options === void 0 ? t(r.min, r.max, r.step) : r.options), i = m(() => n(a.value, l.value)), s =
|
|
4748
|
+
const a = m(() => r.options ? r.options.length : r.tickNum ?? 0), l = m(() => r.options === void 0 ? t(r.min, r.max, r.step) : r.options), i = m(() => n(a.value, l.value)), s = ie(e, "modelValue"), o = m(() => l.value.length ?? 0), c = M(l.value.includes(s.value) ? l.value.indexOf(s.value) : 0);
|
|
4726
4749
|
function d(H) {
|
|
4727
|
-
let
|
|
4728
|
-
if (
|
|
4750
|
+
let y = l.value.indexOf(H);
|
|
4751
|
+
if (y === -1)
|
|
4729
4752
|
if (typeof H == "number") {
|
|
4730
|
-
let
|
|
4753
|
+
let k = 1 / 0;
|
|
4731
4754
|
for (let T = 0; T < l.value.length; T++) {
|
|
4732
|
-
const
|
|
4733
|
-
|
|
4755
|
+
const _ = Math.abs(l.value[T] - H);
|
|
4756
|
+
_ < k && (k = _, y = T);
|
|
4734
4757
|
}
|
|
4735
4758
|
} else
|
|
4736
|
-
|
|
4737
|
-
return
|
|
4759
|
+
y = 0;
|
|
4760
|
+
return y;
|
|
4738
4761
|
}
|
|
4739
|
-
const u = m(() => r.color), f = Be(u.value),
|
|
4740
|
-
|
|
4762
|
+
const u = m(() => r.color), f = Be(u.value), g = m(() => f.value[4]), C = at(u);
|
|
4763
|
+
de(() => {
|
|
4741
4764
|
c.value < 0 || (s.value = l.value[c.value]);
|
|
4742
|
-
}),
|
|
4765
|
+
}), de(() => {
|
|
4743
4766
|
c.value = d(s.value);
|
|
4744
4767
|
});
|
|
4745
|
-
const
|
|
4746
|
-
function
|
|
4747
|
-
if (!
|
|
4768
|
+
const v = M(), b = M(), x = M(!1);
|
|
4769
|
+
function p(H) {
|
|
4770
|
+
if (!x.value)
|
|
4748
4771
|
return;
|
|
4749
4772
|
if (!(H.buttons === 1)) {
|
|
4750
|
-
|
|
4773
|
+
x.value = !1;
|
|
4751
4774
|
return;
|
|
4752
4775
|
}
|
|
4753
4776
|
H.preventDefault(), H.stopPropagation();
|
|
4754
|
-
const
|
|
4777
|
+
const k = Ae(v), { clientX: T } = H, _ = k.left.value, B = k.right.value - _, z = Math.round((T - _) / B * (o.value - 1));
|
|
4755
4778
|
if (z < 0) {
|
|
4756
4779
|
c.value = 0;
|
|
4757
4780
|
return;
|
|
@@ -4762,16 +4785,16 @@ const bo = /* @__PURE__ */ W({
|
|
|
4762
4785
|
}
|
|
4763
4786
|
c.value = z;
|
|
4764
4787
|
}
|
|
4765
|
-
|
|
4788
|
+
de(() => {
|
|
4766
4789
|
c.value = d(s.value);
|
|
4767
4790
|
});
|
|
4768
4791
|
function S(H) {
|
|
4769
|
-
H.preventDefault(), H.stopPropagation(),
|
|
4792
|
+
H.preventDefault(), H.stopPropagation(), x.value = !0, p(H);
|
|
4770
4793
|
}
|
|
4771
|
-
N(
|
|
4772
|
-
N(document, "pointermove",
|
|
4794
|
+
N(v, "pointerdown", S), he(() => {
|
|
4795
|
+
N(document, "pointermove", p), c.value = Math.max(0, d(s.value));
|
|
4773
4796
|
});
|
|
4774
|
-
const
|
|
4797
|
+
const $ = m(() => {
|
|
4775
4798
|
switch (r.size) {
|
|
4776
4799
|
case "sm":
|
|
4777
4800
|
return {
|
|
@@ -4805,63 +4828,63 @@ const bo = /* @__PURE__ */ W({
|
|
|
4805
4828
|
progress: "-mx-1"
|
|
4806
4829
|
};
|
|
4807
4830
|
}
|
|
4808
|
-
}),
|
|
4831
|
+
}), R = m(() => r.animate ? {
|
|
4809
4832
|
indicator: "transition-left",
|
|
4810
4833
|
progress: "transition-width"
|
|
4811
4834
|
} : {
|
|
4812
4835
|
indicator: "",
|
|
4813
4836
|
progress: ""
|
|
4814
4837
|
});
|
|
4815
|
-
return (H,
|
|
4838
|
+
return (H, y) => (w(), A("div", Ha, [
|
|
4816
4839
|
O("div", {
|
|
4817
4840
|
ref_key: "wrapper",
|
|
4818
|
-
ref:
|
|
4841
|
+
ref: v,
|
|
4819
4842
|
type: "size",
|
|
4820
|
-
class: D(["w-full flex cursor-pointer items-center",
|
|
4821
|
-
onTouchmove:
|
|
4843
|
+
class: D(["w-full flex cursor-pointer items-center", $.value.wrapper]),
|
|
4844
|
+
onTouchmove: y[0] || (y[0] = lr(() => {
|
|
4822
4845
|
}, ["prevent"]))
|
|
4823
4846
|
}, [
|
|
4824
4847
|
O("div", {
|
|
4825
|
-
class: D(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7",
|
|
4848
|
+
class: D(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7", $.value.innerWrapper])
|
|
4826
4849
|
}, [
|
|
4827
4850
|
O("div", {
|
|
4828
|
-
class: D(["relative flex",
|
|
4851
|
+
class: D(["relative flex", $.value.content]),
|
|
4829
4852
|
style: P({
|
|
4830
4853
|
width: `${r.width}rem`,
|
|
4831
4854
|
minWidth: `${r.minWidth}rem`
|
|
4832
4855
|
})
|
|
4833
4856
|
}, [
|
|
4834
|
-
(
|
|
4835
|
-
key:
|
|
4857
|
+
(w(!0), A(J, null, fe(i.value, (k) => (w(), A("div", {
|
|
4858
|
+
key: k,
|
|
4836
4859
|
style: P({
|
|
4837
|
-
left: `${d(
|
|
4860
|
+
left: `${d(k) / (o.value - 1) * 100}%`
|
|
4838
4861
|
}),
|
|
4839
|
-
class: D(["absolute top-50% rounded-full bg-surface-0",
|
|
4862
|
+
class: D(["absolute top-50% rounded-full bg-surface-0", $.value.tick])
|
|
4840
4863
|
}, null, 6))), 128)),
|
|
4841
|
-
c.value !== -1 ? (
|
|
4864
|
+
c.value !== -1 ? (w(), A("div", {
|
|
4842
4865
|
key: 0,
|
|
4843
4866
|
ref_key: "indicator",
|
|
4844
4867
|
ref: b,
|
|
4845
|
-
class: D(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [
|
|
4868
|
+
class: D(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [$.value.indicator, R.value.indicator, Ta]]),
|
|
4846
4869
|
style: P([
|
|
4847
|
-
`--i-bg: ${
|
|
4870
|
+
`--i-bg: ${g.value}`,
|
|
4848
4871
|
{
|
|
4849
4872
|
left: `${c.value / (o.value - 1) * 100}%`
|
|
4850
4873
|
}
|
|
4851
4874
|
])
|
|
4852
4875
|
}, [
|
|
4853
4876
|
O("div", {
|
|
4854
|
-
class: D(["pointer-events-none absolute left-50% top-50% rounded-full", [
|
|
4877
|
+
class: D(["pointer-events-none absolute left-50% top-50% rounded-full", [$.value.indicatorInner, Ra]])
|
|
4855
4878
|
}, null, 2)
|
|
4856
4879
|
], 6)) : F("", !0),
|
|
4857
4880
|
O("div", {
|
|
4858
4881
|
class: D(["pointer-events-none h-full rounded-full", [
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4882
|
+
h(C).class,
|
|
4883
|
+
$.value.progress,
|
|
4884
|
+
R.value.progress
|
|
4862
4885
|
]]),
|
|
4863
4886
|
style: P([
|
|
4864
|
-
|
|
4887
|
+
h(C).style,
|
|
4865
4888
|
{
|
|
4866
4889
|
width: `${c.value / (o.value - 1) * 100}%`
|
|
4867
4890
|
}
|
|
@@ -4870,31 +4893,31 @@ const bo = /* @__PURE__ */ W({
|
|
|
4870
4893
|
], 6)
|
|
4871
4894
|
], 2)
|
|
4872
4895
|
], 34),
|
|
4873
|
-
i.value.length > 0 ? (
|
|
4896
|
+
i.value.length > 0 ? (w(), A("div", {
|
|
4874
4897
|
key: 0,
|
|
4875
4898
|
class: "relative mx-1 h-1em text-xs text-surface-dimmed",
|
|
4876
4899
|
style: P({
|
|
4877
4900
|
width: `${r.width}rem`
|
|
4878
4901
|
})
|
|
4879
4902
|
}, [
|
|
4880
|
-
(
|
|
4903
|
+
(w(!0), A(J, null, fe(i.value, (k, T) => (w(), A("div", {
|
|
4881
4904
|
key: T,
|
|
4882
4905
|
style: P({
|
|
4883
|
-
left: `${d(
|
|
4906
|
+
left: `${d(k) / (o.value - 1) * 100}%`
|
|
4884
4907
|
}),
|
|
4885
|
-
class: D(["absolute w-auto flex rounded-full -translate-x-50%",
|
|
4886
|
-
}, ne(
|
|
4908
|
+
class: D(["absolute w-auto flex rounded-full -translate-x-50%", $.value.tick])
|
|
4909
|
+
}, ne(k), 7))), 128))
|
|
4887
4910
|
], 4)) : F("", !0)
|
|
4888
4911
|
]));
|
|
4889
4912
|
}
|
|
4890
|
-
}),
|
|
4913
|
+
}), Ia = { class: "h-full py-2" }, To = /* @__PURE__ */ W({
|
|
4891
4914
|
__name: "TabItem",
|
|
4892
4915
|
props: {
|
|
4893
4916
|
value: {},
|
|
4894
4917
|
color: { default: "primary" }
|
|
4895
4918
|
},
|
|
4896
4919
|
setup(e) {
|
|
4897
|
-
const r = e, t = m(() => r.color), n = $e(sr,
|
|
4920
|
+
const r = e, t = m(() => r.color), n = $e(sr, M("")), a = M(null), l = m(() => n.value === r.value);
|
|
4898
4921
|
function i() {
|
|
4899
4922
|
n.value = r.value;
|
|
4900
4923
|
}
|
|
@@ -4927,26 +4950,26 @@ const bo = /* @__PURE__ */ W({
|
|
|
4927
4950
|
type: "outline",
|
|
4928
4951
|
index: 5
|
|
4929
4952
|
});
|
|
4930
|
-
return (
|
|
4953
|
+
return (g, C) => (w(), A("button", Z({
|
|
4931
4954
|
ref_key: "tabRef",
|
|
4932
4955
|
ref: a,
|
|
4933
4956
|
type: "button",
|
|
4934
4957
|
class: ["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 outline-offset-0!", [c.value]]
|
|
4935
|
-
},
|
|
4936
|
-
l.value ? (
|
|
4958
|
+
}, h(f), { onClick: i }), [
|
|
4959
|
+
l.value ? (w(), A("div", {
|
|
4937
4960
|
key: 0,
|
|
4938
|
-
class: D([
|
|
4939
|
-
style: P([
|
|
4940
|
-
}, null, 6)) : (
|
|
4961
|
+
class: D([h(u).class, d.value]),
|
|
4962
|
+
style: P([h(u).style])
|
|
4963
|
+
}, null, 6)) : (w(), A("div", {
|
|
4941
4964
|
key: 1,
|
|
4942
4965
|
class: D([d.value])
|
|
4943
4966
|
}, null, 2)),
|
|
4944
|
-
O("div",
|
|
4945
|
-
L(
|
|
4967
|
+
O("div", Ia, [
|
|
4968
|
+
L(g.$slots, "default")
|
|
4946
4969
|
])
|
|
4947
4970
|
], 16));
|
|
4948
4971
|
}
|
|
4949
|
-
}),
|
|
4972
|
+
}), Ro = /* @__PURE__ */ W({
|
|
4950
4973
|
__name: "Tabs",
|
|
4951
4974
|
props: /* @__PURE__ */ re({
|
|
4952
4975
|
defaultValue: {},
|
|
@@ -4961,61 +4984,61 @@ const bo = /* @__PURE__ */ W({
|
|
|
4961
4984
|
var u;
|
|
4962
4985
|
const c = (u = t.default) == null ? void 0 : u.call(t);
|
|
4963
4986
|
return (c == null ? void 0 : c.flatMap((f) => f.type === J ? f.children : f).filter((f) => {
|
|
4964
|
-
var
|
|
4965
|
-
return ((
|
|
4987
|
+
var g;
|
|
4988
|
+
return ((g = f == null ? void 0 : f.props) == null ? void 0 : g.value) !== void 0;
|
|
4966
4989
|
}).map((f) => f.props.value)) ?? [];
|
|
4967
|
-
}), a =
|
|
4990
|
+
}), a = ie(e, "modelValue");
|
|
4968
4991
|
!a.value && n.value.length > 0 && (a.value = n.value[0]);
|
|
4969
|
-
const l =
|
|
4992
|
+
const l = M(null);
|
|
4970
4993
|
he(() => {
|
|
4971
4994
|
r.defaultValue && (a.value = r.defaultValue);
|
|
4972
|
-
}),
|
|
4995
|
+
}), Re(sr, a);
|
|
4973
4996
|
const i = m(() => r.direction);
|
|
4974
|
-
|
|
4997
|
+
Re(ir, i);
|
|
4975
4998
|
const s = /* @__PURE__ */ new Map();
|
|
4976
|
-
|
|
4977
|
-
var
|
|
4978
|
-
if (!((
|
|
4999
|
+
Re(ur, s), pe("ArrowLeft", (c) => {
|
|
5000
|
+
var g;
|
|
5001
|
+
if (!((g = l.value) != null && g.contains(document.activeElement)) || (c.preventDefault(), r.direction !== "horizontal"))
|
|
4979
5002
|
return;
|
|
4980
5003
|
const d = a.value ? n.value.indexOf(a.value) : 0, u = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
|
|
4981
5004
|
a.value = u;
|
|
4982
5005
|
const f = s.get(u);
|
|
4983
5006
|
if (f) {
|
|
4984
|
-
const
|
|
4985
|
-
|
|
5007
|
+
const C = f.value;
|
|
5008
|
+
C && C.focus();
|
|
4986
5009
|
}
|
|
4987
5010
|
}), pe("ArrowRight", (c) => {
|
|
4988
|
-
var
|
|
4989
|
-
if (!((
|
|
5011
|
+
var g;
|
|
5012
|
+
if (!((g = l.value) != null && g.contains(document.activeElement)) || (c.preventDefault(), r.direction !== "horizontal"))
|
|
4990
5013
|
return;
|
|
4991
5014
|
const d = a.value ? n.value.indexOf(a.value) : 0, u = d < n.value.length - 1 ? a.value = n.value[d + 1] : a.value = n.value[0];
|
|
4992
5015
|
a.value = u;
|
|
4993
5016
|
const f = s.get(u);
|
|
4994
5017
|
if (f) {
|
|
4995
|
-
const
|
|
4996
|
-
|
|
5018
|
+
const C = f.value;
|
|
5019
|
+
C && C.focus();
|
|
4997
5020
|
}
|
|
4998
5021
|
}), pe("ArrowUp", (c) => {
|
|
4999
|
-
var
|
|
5000
|
-
if (!((
|
|
5022
|
+
var g;
|
|
5023
|
+
if (!((g = l.value) != null && g.contains(document.activeElement)) || (c.preventDefault(), r.direction !== "vertical"))
|
|
5001
5024
|
return;
|
|
5002
5025
|
const d = a.value ? n.value.indexOf(a.value) : 0, u = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
|
|
5003
5026
|
a.value = u;
|
|
5004
5027
|
const f = s.get(u);
|
|
5005
5028
|
if (f) {
|
|
5006
|
-
const
|
|
5007
|
-
|
|
5029
|
+
const C = f.value;
|
|
5030
|
+
C && C.focus();
|
|
5008
5031
|
}
|
|
5009
5032
|
}), pe("ArrowDown", (c) => {
|
|
5010
|
-
var
|
|
5011
|
-
if (!((
|
|
5033
|
+
var g;
|
|
5034
|
+
if (!((g = l.value) != null && g.contains(document.activeElement)) || (c.preventDefault(), r.direction !== "vertical"))
|
|
5012
5035
|
return;
|
|
5013
5036
|
const d = a.value ? n.value.indexOf(a.value) : 0, u = d < n.value.length - 1 ? n.value[d + 1] : n.value[0];
|
|
5014
5037
|
a.value = u;
|
|
5015
5038
|
const f = s.get(u);
|
|
5016
5039
|
if (f) {
|
|
5017
|
-
const
|
|
5018
|
-
|
|
5040
|
+
const C = f.value;
|
|
5041
|
+
C && C.focus();
|
|
5019
5042
|
}
|
|
5020
5043
|
});
|
|
5021
5044
|
const o = m(() => {
|
|
@@ -5028,7 +5051,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
5028
5051
|
return "flex-row";
|
|
5029
5052
|
}
|
|
5030
5053
|
});
|
|
5031
|
-
return (c, d) => (
|
|
5054
|
+
return (c, d) => (w(), A("div", {
|
|
5032
5055
|
ref_key: "tabRef",
|
|
5033
5056
|
ref: l,
|
|
5034
5057
|
class: D(["flex", [o.value]])
|
|
@@ -5036,7 +5059,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
5036
5059
|
L(c.$slots, "default")
|
|
5037
5060
|
], 2));
|
|
5038
5061
|
}
|
|
5039
|
-
}),
|
|
5062
|
+
}), Io = /* @__PURE__ */ W({
|
|
5040
5063
|
__name: "Tag",
|
|
5041
5064
|
props: {
|
|
5042
5065
|
color: {},
|
|
@@ -5057,18 +5080,18 @@ const bo = /* @__PURE__ */ W({
|
|
|
5057
5080
|
default:
|
|
5058
5081
|
return "px-3 py-0.5 text-sm";
|
|
5059
5082
|
}
|
|
5060
|
-
}), n =
|
|
5061
|
-
return (s, o) => (
|
|
5083
|
+
}), n = ae(r), a = m(() => r.color ?? "primary"), l = m(() => r.variant), i = Bt(l, a);
|
|
5084
|
+
return (s, o) => (w(), A("span", {
|
|
5062
5085
|
tabindex: -1,
|
|
5063
|
-
style: P([
|
|
5064
|
-
class: D([[
|
|
5086
|
+
style: P([h(i).style, h(n).style]),
|
|
5087
|
+
class: D([[h(i).class, h(n).class, t.value], "inline-block h-fit flex cursor-pointer gap-1 border"])
|
|
5065
5088
|
}, [
|
|
5066
|
-
r.leftIcon ? (
|
|
5089
|
+
r.leftIcon ? (w(), A("i", {
|
|
5067
5090
|
key: 0,
|
|
5068
5091
|
class: D([r.leftIcon, "shrink-0"])
|
|
5069
5092
|
}, null, 2)) : s.$slots.leftIcon ? L(s.$slots, "left-icon", { key: 1 }) : F("", !0),
|
|
5070
5093
|
L(s.$slots, "default"),
|
|
5071
|
-
r.rightIcon ? (
|
|
5094
|
+
r.rightIcon ? (w(), A("i", {
|
|
5072
5095
|
key: 2,
|
|
5073
5096
|
class: D([r.rightIcon, "h-container w-container shrink-0"])
|
|
5074
5097
|
}, null, 2)) : s.$slots.rightIcon ? L(s.$slots, "right-icon", { key: 3 }) : F("", !0)
|
|
@@ -5082,10 +5105,10 @@ const bo = /* @__PURE__ */ W({
|
|
|
5082
5105
|
},
|
|
5083
5106
|
setup(e) {
|
|
5084
5107
|
const r = e, t = Yn(), n = m(() => pr(r.theme ? r.theme : t.value)), a = fr("scheme", "light"), l = m(() => r.scheme ? r.scheme : a.value);
|
|
5085
|
-
return (i, s) => (
|
|
5108
|
+
return (i, s) => (w(), A("div", {
|
|
5086
5109
|
style: P([n.value]),
|
|
5087
5110
|
"data-scheme": l.value,
|
|
5088
|
-
"data-theme":
|
|
5111
|
+
"data-theme": h(t).name
|
|
5089
5112
|
}, [
|
|
5090
5113
|
L(i.$slots, "default")
|
|
5091
5114
|
], 12, Ea));
|
|
@@ -5096,19 +5119,19 @@ const bo = /* @__PURE__ */ W({
|
|
|
5096
5119
|
timeout: { default: 200 }
|
|
5097
5120
|
},
|
|
5098
5121
|
setup(e) {
|
|
5099
|
-
const r = e, t = ht(), n =
|
|
5122
|
+
const r = e, t = ht(), n = M(null), a = Se(n), l = wn(a, r.timeout), i = M(0), s = M(0), o = M(null), c = Se(o);
|
|
5100
5123
|
return Q(l, (d, u) => {
|
|
5101
5124
|
l.value && d !== u && (i.value = t.x.value, s.value = t.y.value);
|
|
5102
5125
|
}), (d, u) => {
|
|
5103
5126
|
const f = Sr;
|
|
5104
|
-
return
|
|
5127
|
+
return w(), A("div", null, [
|
|
5105
5128
|
O("div", {
|
|
5106
5129
|
ref_key: "hoverableRef",
|
|
5107
5130
|
ref: n
|
|
5108
5131
|
}, [
|
|
5109
5132
|
L(d.$slots, "default")
|
|
5110
5133
|
], 512),
|
|
5111
|
-
i.value && s.value && (
|
|
5134
|
+
i.value && s.value && (h(l) || h(c)) ? (w(), A("div", {
|
|
5112
5135
|
key: 0,
|
|
5113
5136
|
ref_key: "tooltipRef",
|
|
5114
5137
|
ref: o,
|
|
@@ -5118,7 +5141,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
5118
5141
|
top: `${s.value + 20}px`
|
|
5119
5142
|
})
|
|
5120
5143
|
}, [
|
|
5121
|
-
|
|
5144
|
+
U(f, { "with-border": "" }, {
|
|
5122
5145
|
default: ee(() => [
|
|
5123
5146
|
L(d.$slots, "content")
|
|
5124
5147
|
]),
|
|
@@ -5128,7 +5151,7 @@ const bo = /* @__PURE__ */ W({
|
|
|
5128
5151
|
]);
|
|
5129
5152
|
};
|
|
5130
5153
|
}
|
|
5131
|
-
}), za = 'before:absolute before:left-4 before:h-full before:border-r before:content-[""]',
|
|
5154
|
+
}), za = 'before:absolute before:left-4 before:h-full before:border-r before:content-[""]', wt = "relative h-8 py-1 w-full flex items-center gap-2 cursor-pointer focus-visible:outline-none focus-visible:bg-surface-variant-1", Bo = /* @__PURE__ */ W({
|
|
5132
5155
|
__name: "TreeList",
|
|
5133
5156
|
props: /* @__PURE__ */ re({
|
|
5134
5157
|
items: {},
|
|
@@ -5141,125 +5164,125 @@ const bo = /* @__PURE__ */ W({
|
|
|
5141
5164
|
}),
|
|
5142
5165
|
emits: ["update:modelValue"],
|
|
5143
5166
|
setup(e) {
|
|
5144
|
-
const r = e, t =
|
|
5145
|
-
function a(
|
|
5146
|
-
return "children" in
|
|
5167
|
+
const r = e, t = ae(r), n = ie(e, "modelValue");
|
|
5168
|
+
function a(v) {
|
|
5169
|
+
return "children" in v;
|
|
5147
5170
|
}
|
|
5148
|
-
function l(
|
|
5149
|
-
return "value" in
|
|
5171
|
+
function l(v) {
|
|
5172
|
+
return "value" in v;
|
|
5150
5173
|
}
|
|
5151
|
-
const i = m(() => `${
|
|
5152
|
-
function u(
|
|
5153
|
-
a(
|
|
5154
|
-
u(
|
|
5174
|
+
const i = m(() => `${wt} hover:bg-surface-variant-1 hover:text-surface text-surface-dimmed`), s = m(() => `${wt} text-primary before:border-primary bg-surface-variant-1`), o = m(() => [wt, "text-surface font-bold hover:bg-surface-variant-1"]), c = M(null), d = M(/* @__PURE__ */ new Map());
|
|
5175
|
+
function u(v, b) {
|
|
5176
|
+
a(v) && (d.value.set(v, v.open ?? !1), v.children.forEach((x) => {
|
|
5177
|
+
u(x);
|
|
5155
5178
|
}));
|
|
5156
5179
|
}
|
|
5157
|
-
|
|
5158
|
-
r.items.forEach((
|
|
5159
|
-
a(
|
|
5180
|
+
de(() => {
|
|
5181
|
+
r.items.forEach((v) => {
|
|
5182
|
+
a(v) && u(v);
|
|
5160
5183
|
});
|
|
5161
5184
|
});
|
|
5162
5185
|
function f({
|
|
5163
|
-
data:
|
|
5186
|
+
data: v,
|
|
5164
5187
|
level: b
|
|
5165
5188
|
}) {
|
|
5166
|
-
return
|
|
5167
|
-
default: () =>
|
|
5168
|
-
}) : Lt("a",
|
|
5189
|
+
return U("li", null, [U((p) => v.is ? Lt(v.is, p, {
|
|
5190
|
+
default: () => v.title
|
|
5191
|
+
}) : Lt("a", p, v.title), Z({
|
|
5169
5192
|
tabindex: 0,
|
|
5170
5193
|
class: [t.value.class, za, {
|
|
5171
|
-
[i.value]: n.value !==
|
|
5172
|
-
[s.value]: n.value ===
|
|
5194
|
+
[i.value]: n.value !== v.value,
|
|
5195
|
+
[s.value]: n.value === v.value
|
|
5173
5196
|
}],
|
|
5174
5197
|
style: [{
|
|
5175
5198
|
paddingLeft: `${32 + b * 4}px`
|
|
5176
5199
|
}, t.value.style],
|
|
5177
|
-
onClick: () => n.value =
|
|
5178
|
-
onKeyup: (
|
|
5179
|
-
|
|
5200
|
+
onClick: () => n.value = v.value,
|
|
5201
|
+
onKeyup: (p) => {
|
|
5202
|
+
p.key === "Enter" && (n.value = v.value);
|
|
5180
5203
|
}
|
|
5181
|
-
},
|
|
5182
|
-
default: () => [
|
|
5204
|
+
}, v.attrs), {
|
|
5205
|
+
default: () => [v.title]
|
|
5183
5206
|
})]);
|
|
5184
5207
|
}
|
|
5185
|
-
function
|
|
5186
|
-
data:
|
|
5208
|
+
function g({
|
|
5209
|
+
data: v,
|
|
5187
5210
|
level: b
|
|
5188
5211
|
}) {
|
|
5189
|
-
return
|
|
5212
|
+
return U("li", {
|
|
5190
5213
|
class: ["flex items-center relative py-2 text-surface-dimmed font-bold tracking-widest text-xs"],
|
|
5191
5214
|
style: [{
|
|
5192
5215
|
paddingLeft: `${32 + b * 4}px`
|
|
5193
5216
|
}, t.value.style]
|
|
5194
|
-
}, [
|
|
5217
|
+
}, [U("div", {
|
|
5195
5218
|
class: "absolute left-4 h-1/2 translate-y-1/2 border-r"
|
|
5196
|
-
}, null),
|
|
5219
|
+
}, null), U("div", {
|
|
5197
5220
|
class: "absolute left-[calc(1rem+0.6px)] h-2 w-2 border rounded-sm bg-surface-variant-1 -translate-x-1/2"
|
|
5198
|
-
}, null),
|
|
5221
|
+
}, null), v.title]);
|
|
5199
5222
|
}
|
|
5200
|
-
function
|
|
5201
|
-
data:
|
|
5223
|
+
function C({
|
|
5224
|
+
data: v,
|
|
5202
5225
|
level: b
|
|
5203
5226
|
}) {
|
|
5204
|
-
const
|
|
5205
|
-
return
|
|
5227
|
+
const x = m(() => d.value.get(v)), p = M(null), S = M(null);
|
|
5228
|
+
return U("li", {
|
|
5206
5229
|
class: "transition-height",
|
|
5207
|
-
ref:
|
|
5208
|
-
}, [
|
|
5230
|
+
ref: p
|
|
5231
|
+
}, [U("button", {
|
|
5209
5232
|
ref: S,
|
|
5210
|
-
onClick: () => d.value.set(
|
|
5233
|
+
onClick: () => d.value.set(v, !d.value.get(v)),
|
|
5211
5234
|
class: [t.value.class, o.value],
|
|
5212
5235
|
style: [{
|
|
5213
5236
|
paddingLeft: `${32 + b * 4}px`
|
|
5214
5237
|
}, t.value.style]
|
|
5215
|
-
}, [
|
|
5216
|
-
class: ["i-tabler-chevron-down absolute left-2 h-4 w-4 py-1 transition-transform",
|
|
5217
|
-
}, null),
|
|
5218
|
-
onBeforeEnter: (
|
|
5219
|
-
|
|
5238
|
+
}, [U("i", {
|
|
5239
|
+
class: ["i-tabler-chevron-down absolute left-2 h-4 w-4 py-1 transition-transform", x.value ? "rotate-0" : "-rotate-90"]
|
|
5240
|
+
}, null), v.title]), U(We, {
|
|
5241
|
+
onBeforeEnter: ($) => {
|
|
5242
|
+
$ instanceof HTMLElement && ($.style.height = "0px");
|
|
5220
5243
|
},
|
|
5221
|
-
onEnter: (
|
|
5222
|
-
|
|
5244
|
+
onEnter: ($) => {
|
|
5245
|
+
$ instanceof HTMLElement && ($.style.height = `${$.scrollHeight}px`);
|
|
5223
5246
|
},
|
|
5224
|
-
onAfterEnter: (
|
|
5225
|
-
|
|
5247
|
+
onAfterEnter: ($) => {
|
|
5248
|
+
$ instanceof HTMLElement && ($.style.height = "auto");
|
|
5226
5249
|
},
|
|
5227
|
-
onBeforeLeave: (
|
|
5228
|
-
|
|
5250
|
+
onBeforeLeave: ($) => {
|
|
5251
|
+
$ instanceof HTMLElement && ($.style.height = `${$.scrollHeight}px`);
|
|
5229
5252
|
},
|
|
5230
|
-
onLeave: (
|
|
5231
|
-
|
|
5253
|
+
onLeave: ($) => {
|
|
5254
|
+
$ instanceof HTMLElement && ($.style.height = "0px");
|
|
5232
5255
|
},
|
|
5233
5256
|
css: !0,
|
|
5234
5257
|
mode: "out-in"
|
|
5235
5258
|
}, {
|
|
5236
|
-
default: () => [d.value.get(
|
|
5259
|
+
default: () => [d.value.get(v) && U("ul", {
|
|
5237
5260
|
class: "overflow-hidden transition-height"
|
|
5238
|
-
}, [
|
|
5239
|
-
data:
|
|
5261
|
+
}, [v.children.map(($) => l($) ? U(f, {
|
|
5262
|
+
data: $,
|
|
5240
5263
|
level: b + 1
|
|
5241
|
-
}, null) : a(
|
|
5242
|
-
data:
|
|
5264
|
+
}, null) : a($) ? U(C, {
|
|
5265
|
+
data: $,
|
|
5243
5266
|
level: b + 1
|
|
5244
|
-
}, null) :
|
|
5245
|
-
data:
|
|
5267
|
+
}, null) : U(g, {
|
|
5268
|
+
data: $,
|
|
5246
5269
|
level: b + 1
|
|
5247
5270
|
}, null))])]
|
|
5248
5271
|
})]);
|
|
5249
5272
|
}
|
|
5250
|
-
return (
|
|
5273
|
+
return (v, b) => (w(), A("ul", {
|
|
5251
5274
|
ref_key: "treeListRef",
|
|
5252
5275
|
ref: c,
|
|
5253
5276
|
class: "flex flex-col text-sm"
|
|
5254
|
-
}, [(
|
|
5255
|
-
key:
|
|
5256
|
-
}, [l(
|
|
5277
|
+
}, [(w(!0), A(J, null, fe(v.items, (x, p) => (w(), A(J, {
|
|
5278
|
+
key: p
|
|
5279
|
+
}, [l(x) ? (w(), G(f, {
|
|
5257
5280
|
key: 0,
|
|
5258
|
-
data:
|
|
5281
|
+
data: x,
|
|
5259
5282
|
level: 0
|
|
5260
|
-
}, null, 8, ["data"])) : a(
|
|
5283
|
+
}, null, 8, ["data"])) : a(x) ? (w(), G(C, {
|
|
5261
5284
|
key: 1,
|
|
5262
|
-
data:
|
|
5285
|
+
data: x,
|
|
5263
5286
|
level: 0
|
|
5264
5287
|
}, null, 8, ["data"])) : F("", !0)], 64))), 128))], 512));
|
|
5265
5288
|
}
|
|
@@ -5268,7 +5291,7 @@ function kr(e) {
|
|
|
5268
5291
|
return er() ? (tr(e), !0) : !1;
|
|
5269
5292
|
}
|
|
5270
5293
|
function ve(e) {
|
|
5271
|
-
return typeof e == "function" ? e() :
|
|
5294
|
+
return typeof e == "function" ? e() : h(e);
|
|
5272
5295
|
}
|
|
5273
5296
|
const Ba = typeof window < "u" && typeof document < "u";
|
|
5274
5297
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -5305,11 +5328,11 @@ function Oa(...e) {
|
|
|
5305
5328
|
t && (clearTimeout(t), t = void 0, a(), a = ze);
|
|
5306
5329
|
};
|
|
5307
5330
|
return (u) => {
|
|
5308
|
-
const f = ve(i),
|
|
5309
|
-
return d(), f <= 0 ? (r = Date.now(),
|
|
5310
|
-
a = c ? b :
|
|
5311
|
-
r = Date.now(), n = !0,
|
|
5312
|
-
}, Math.max(0, f -
|
|
5331
|
+
const f = ve(i), g = Date.now() - r, C = () => l = u();
|
|
5332
|
+
return d(), f <= 0 ? (r = Date.now(), C()) : (g > f && (o || !n) ? (r = Date.now(), C()) : s && (l = new Promise((v, b) => {
|
|
5333
|
+
a = c ? b : v, t = setTimeout(() => {
|
|
5334
|
+
r = Date.now(), n = !0, v(C()), d();
|
|
5335
|
+
}, Math.max(0, f - g));
|
|
5313
5336
|
})), !o && !t && (t = setTimeout(() => n = !0, f)), n = !1, l);
|
|
5314
5337
|
};
|
|
5315
5338
|
}
|
|
@@ -5344,14 +5367,14 @@ function Zt(...e) {
|
|
|
5344
5367
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
5345
5368
|
const l = [], i = () => {
|
|
5346
5369
|
l.forEach((d) => d()), l.length = 0;
|
|
5347
|
-
}, s = (d, u, f,
|
|
5370
|
+
}, s = (d, u, f, g) => (d.addEventListener(u, f, g), () => d.removeEventListener(u, f, g)), o = Q(
|
|
5348
5371
|
() => [Te(r), ve(a)],
|
|
5349
5372
|
([d, u]) => {
|
|
5350
5373
|
if (i(), !d)
|
|
5351
5374
|
return;
|
|
5352
5375
|
const f = Da(u) ? { ...u } : u;
|
|
5353
5376
|
l.push(
|
|
5354
|
-
...t.flatMap((
|
|
5377
|
+
...t.flatMap((g) => n.map((C) => s(d, g, C, f)))
|
|
5355
5378
|
);
|
|
5356
5379
|
},
|
|
5357
5380
|
{ immediate: !0, flush: "post" }
|
|
@@ -5361,7 +5384,7 @@ function Zt(...e) {
|
|
|
5361
5384
|
return kr(c), c;
|
|
5362
5385
|
}
|
|
5363
5386
|
function Na() {
|
|
5364
|
-
const e =
|
|
5387
|
+
const e = M(!1), r = et();
|
|
5365
5388
|
return r && he(() => {
|
|
5366
5389
|
e.value = !0;
|
|
5367
5390
|
}, r), e;
|
|
@@ -5400,19 +5423,19 @@ function Ya(e, r = { width: 0, height: 0 }, t = {}) {
|
|
|
5400
5423
|
const { window: n = gt, box: a = "content-box" } = t, l = m(() => {
|
|
5401
5424
|
var u, f;
|
|
5402
5425
|
return (f = (u = Te(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
5403
|
-
}), i =
|
|
5426
|
+
}), i = M(r.width), s = M(r.height), { stop: o } = Xa(
|
|
5404
5427
|
e,
|
|
5405
5428
|
([u]) => {
|
|
5406
5429
|
const f = a === "border-box" ? u.borderBoxSize : a === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
5407
5430
|
if (n && l.value) {
|
|
5408
|
-
const
|
|
5409
|
-
if (
|
|
5410
|
-
const
|
|
5411
|
-
i.value =
|
|
5431
|
+
const g = Te(e);
|
|
5432
|
+
if (g) {
|
|
5433
|
+
const C = g.getBoundingClientRect();
|
|
5434
|
+
i.value = C.width, s.value = C.height;
|
|
5412
5435
|
}
|
|
5413
5436
|
} else if (f) {
|
|
5414
|
-
const
|
|
5415
|
-
i.value =
|
|
5437
|
+
const g = Array.isArray(f) ? f : [f];
|
|
5438
|
+
i.value = g.reduce((C, { inlineSize: v }) => C + v, 0), s.value = g.reduce((C, { blockSize: v }) => C + v, 0);
|
|
5416
5439
|
} else
|
|
5417
5440
|
i.value = u.contentRect.width, s.value = u.contentRect.height;
|
|
5418
5441
|
},
|
|
@@ -5456,69 +5479,69 @@ function Ua(e, r = {}) {
|
|
|
5456
5479
|
},
|
|
5457
5480
|
behavior: o = "auto",
|
|
5458
5481
|
window: c = gt,
|
|
5459
|
-
onError: d = (
|
|
5460
|
-
console.error(
|
|
5482
|
+
onError: d = (y) => {
|
|
5483
|
+
console.error(y);
|
|
5461
5484
|
}
|
|
5462
|
-
} = r, u =
|
|
5485
|
+
} = r, u = M(0), f = M(0), g = m({
|
|
5463
5486
|
get() {
|
|
5464
5487
|
return u.value;
|
|
5465
5488
|
},
|
|
5466
|
-
set(
|
|
5467
|
-
|
|
5489
|
+
set(y) {
|
|
5490
|
+
v(y, void 0);
|
|
5468
5491
|
}
|
|
5469
|
-
}),
|
|
5492
|
+
}), C = m({
|
|
5470
5493
|
get() {
|
|
5471
5494
|
return f.value;
|
|
5472
5495
|
},
|
|
5473
|
-
set(
|
|
5474
|
-
|
|
5496
|
+
set(y) {
|
|
5497
|
+
v(void 0, y);
|
|
5475
5498
|
}
|
|
5476
5499
|
});
|
|
5477
|
-
function
|
|
5478
|
-
var T,
|
|
5500
|
+
function v(y, k) {
|
|
5501
|
+
var T, _, I, B;
|
|
5479
5502
|
if (!c)
|
|
5480
5503
|
return;
|
|
5481
5504
|
const z = ve(e);
|
|
5482
5505
|
if (!z)
|
|
5483
5506
|
return;
|
|
5484
|
-
(
|
|
5485
|
-
top: (T = ve(
|
|
5486
|
-
left: (
|
|
5507
|
+
(I = z instanceof Document ? c.document.body : z) == null || I.scrollTo({
|
|
5508
|
+
top: (T = ve(k)) != null ? T : C.value,
|
|
5509
|
+
left: (_ = ve(y)) != null ? _ : g.value,
|
|
5487
5510
|
behavior: ve(o)
|
|
5488
5511
|
});
|
|
5489
5512
|
const j = ((B = z == null ? void 0 : z.document) == null ? void 0 : B.documentElement) || (z == null ? void 0 : z.documentElement) || z;
|
|
5490
|
-
|
|
5513
|
+
g != null && (u.value = j.scrollLeft), C != null && (f.value = j.scrollTop);
|
|
5491
5514
|
}
|
|
5492
|
-
const b =
|
|
5515
|
+
const b = M(!1), x = Fe({
|
|
5493
5516
|
left: !0,
|
|
5494
5517
|
right: !1,
|
|
5495
5518
|
top: !0,
|
|
5496
5519
|
bottom: !1
|
|
5497
|
-
}),
|
|
5520
|
+
}), p = Fe({
|
|
5498
5521
|
left: !1,
|
|
5499
5522
|
right: !1,
|
|
5500
5523
|
top: !1,
|
|
5501
5524
|
bottom: !1
|
|
5502
|
-
}), S = (
|
|
5503
|
-
b.value && (b.value = !1,
|
|
5504
|
-
},
|
|
5505
|
-
var
|
|
5525
|
+
}), S = (y) => {
|
|
5526
|
+
b.value && (b.value = !1, p.left = !1, p.right = !1, p.top = !1, p.bottom = !1, a(y));
|
|
5527
|
+
}, $ = Fa(S, t + n), R = (y) => {
|
|
5528
|
+
var k;
|
|
5506
5529
|
if (!c)
|
|
5507
5530
|
return;
|
|
5508
|
-
const T = ((
|
|
5509
|
-
|
|
5531
|
+
const T = ((k = y == null ? void 0 : y.document) == null ? void 0 : k.documentElement) || (y == null ? void 0 : y.documentElement) || Te(y), { display: _, flexDirection: I } = getComputedStyle(T), B = T.scrollLeft;
|
|
5532
|
+
p.left = B < u.value, p.right = B > u.value;
|
|
5510
5533
|
const z = Math.abs(B) <= (i.left || 0), j = Math.abs(B) + T.clientWidth >= T.scrollWidth - (i.right || 0) - Qt;
|
|
5511
|
-
|
|
5534
|
+
_ === "flex" && I === "row-reverse" ? (x.left = j, x.right = z) : (x.left = z, x.right = j), u.value = B;
|
|
5512
5535
|
let X = T.scrollTop;
|
|
5513
|
-
|
|
5514
|
-
const
|
|
5515
|
-
|
|
5516
|
-
}, H = (
|
|
5517
|
-
var
|
|
5536
|
+
y === c.document && !X && (X = c.document.body.scrollTop), p.top = X < f.value, p.bottom = X > f.value;
|
|
5537
|
+
const le = Math.abs(X) <= (i.top || 0), V = Math.abs(X) + T.clientHeight >= T.scrollHeight - (i.bottom || 0) - Qt;
|
|
5538
|
+
_ === "flex" && I === "column-reverse" ? (x.top = V, x.bottom = le) : (x.top = le, x.bottom = V), f.value = X;
|
|
5539
|
+
}, H = (y) => {
|
|
5540
|
+
var k;
|
|
5518
5541
|
if (!c)
|
|
5519
5542
|
return;
|
|
5520
|
-
const T = (
|
|
5521
|
-
|
|
5543
|
+
const T = (k = y.target.documentElement) != null ? k : y.target;
|
|
5544
|
+
R(T), b.value = !0, $(y), l(y);
|
|
5522
5545
|
};
|
|
5523
5546
|
return Zt(
|
|
5524
5547
|
e,
|
|
@@ -5527,12 +5550,12 @@ function Ua(e, r = {}) {
|
|
|
5527
5550
|
s
|
|
5528
5551
|
), $r(() => {
|
|
5529
5552
|
try {
|
|
5530
|
-
const
|
|
5531
|
-
if (!
|
|
5553
|
+
const y = ve(e);
|
|
5554
|
+
if (!y)
|
|
5532
5555
|
return;
|
|
5533
|
-
|
|
5534
|
-
} catch (
|
|
5535
|
-
d(
|
|
5556
|
+
R(y);
|
|
5557
|
+
} catch (y) {
|
|
5558
|
+
d(y);
|
|
5536
5559
|
}
|
|
5537
5560
|
}), Zt(
|
|
5538
5561
|
e,
|
|
@@ -5540,14 +5563,14 @@ function Ua(e, r = {}) {
|
|
|
5540
5563
|
S,
|
|
5541
5564
|
s
|
|
5542
5565
|
), {
|
|
5543
|
-
x:
|
|
5544
|
-
y:
|
|
5566
|
+
x: g,
|
|
5567
|
+
y: C,
|
|
5545
5568
|
isScrolling: b,
|
|
5546
|
-
arrivedState:
|
|
5547
|
-
directions:
|
|
5569
|
+
arrivedState: x,
|
|
5570
|
+
directions: p,
|
|
5548
5571
|
measure() {
|
|
5549
|
-
const
|
|
5550
|
-
c &&
|
|
5572
|
+
const y = ve(e);
|
|
5573
|
+
c && y && R(y);
|
|
5551
5574
|
}
|
|
5552
5575
|
};
|
|
5553
5576
|
}
|
|
@@ -5561,67 +5584,67 @@ const Vo = /* @__PURE__ */ W({
|
|
|
5561
5584
|
paddingX: {}
|
|
5562
5585
|
},
|
|
5563
5586
|
setup(e, { expose: r }) {
|
|
5564
|
-
const t = e, n = vt(), a = m(() =>
|
|
5587
|
+
const t = e, n = vt(), a = m(() => h(t.gap) ?? 16), l = m(() => h(t.rowCount) ?? 3), i = m(() => h(t.paddingX) ?? 0), s = M();
|
|
5565
5588
|
function o(S) {
|
|
5566
5589
|
return Array.isArray(S);
|
|
5567
5590
|
}
|
|
5568
|
-
const c =
|
|
5591
|
+
const c = M([]), d = m(() => {
|
|
5569
5592
|
const S = c.value;
|
|
5570
|
-
return Array.from(S).map((
|
|
5593
|
+
return Array.from(S).map(($) => Ya($));
|
|
5571
5594
|
}), u = m(() => {
|
|
5572
|
-
var S,
|
|
5573
|
-
return t.itemWidth ?
|
|
5574
|
-
}), f = m(() => t.itemWidth ?
|
|
5575
|
-
function
|
|
5576
|
-
const
|
|
5577
|
-
for (let
|
|
5578
|
-
const B =
|
|
5579
|
-
T.push({ x: j, y: X, width: B.width.value, height: B.height.value }),
|
|
5595
|
+
var S, $;
|
|
5596
|
+
return t.itemWidth ? h(t.itemWidth) * l.value + a.value * (l.value - 1) + i.value * 2 : t.wrapperWidth ? h(t.wrapperWidth) : (($ = (S = s.value) == null ? void 0 : S.parentElement) == null ? void 0 : $.clientWidth) ?? 0;
|
|
5597
|
+
}), f = m(() => t.itemWidth ? h(t.itemWidth) : (u.value - i.value * 2 - a.value * (l.value - 1)) / l.value);
|
|
5598
|
+
function g(S, $, R, H) {
|
|
5599
|
+
const y = h(S), k = Array.from({ length: h($) }).fill(0), T = [], _ = Math.max(0, u.value - h(H) * 2 - f.value * y.length - h(R) * y.length) / 2;
|
|
5600
|
+
for (let I = 0; I < y.length; I++) {
|
|
5601
|
+
const B = y[I], z = k.indexOf(Math.min(...k)), j = z * (f.value + h(R)) + h(H) + _, X = k[z];
|
|
5602
|
+
T.push({ x: j, y: X, width: B.width.value, height: B.height.value }), k[z] += B.height.value + h(R);
|
|
5580
5603
|
}
|
|
5581
5604
|
return T;
|
|
5582
5605
|
}
|
|
5583
|
-
const
|
|
5606
|
+
const C = m(() => g(d, l, a, i)), v = m(() => o(C.value) ? Math.max(...C.value.map((S) => S.y + S.height)) : 0), b = m(() => {
|
|
5584
5607
|
var S;
|
|
5585
5608
|
return ((S = n.default) == null ? void 0 : S.call(n)) ?? [];
|
|
5586
|
-
}),
|
|
5609
|
+
}), x = m(() => {
|
|
5587
5610
|
const S = [];
|
|
5588
|
-
return b.value.forEach((
|
|
5589
|
-
o(
|
|
5590
|
-
S.push(
|
|
5591
|
-
}) : S.push(
|
|
5611
|
+
return b.value.forEach(($) => {
|
|
5612
|
+
o($.children) ? $.children.forEach((R) => {
|
|
5613
|
+
S.push(R);
|
|
5614
|
+
}) : S.push($);
|
|
5592
5615
|
}), S;
|
|
5593
5616
|
});
|
|
5594
|
-
function
|
|
5595
|
-
if (!o(
|
|
5617
|
+
function p(S) {
|
|
5618
|
+
if (!o(C.value))
|
|
5596
5619
|
return {};
|
|
5597
|
-
const
|
|
5598
|
-
return
|
|
5599
|
-
left: `${
|
|
5600
|
-
top: `${
|
|
5620
|
+
const $ = C.value[S];
|
|
5621
|
+
return $ ? {
|
|
5622
|
+
left: `${$.x ?? 0}px`,
|
|
5623
|
+
top: `${$.y ?? 0}px`,
|
|
5601
5624
|
maxWidth: `${f.value}px`
|
|
5602
5625
|
} : {};
|
|
5603
5626
|
}
|
|
5604
5627
|
return r({
|
|
5605
5628
|
width: f
|
|
5606
|
-
}), (S,
|
|
5629
|
+
}), (S, $) => (w(), A("div", {
|
|
5607
5630
|
ref_key: "wrapper",
|
|
5608
5631
|
ref: s,
|
|
5609
5632
|
style: P({
|
|
5610
5633
|
position: "relative",
|
|
5611
5634
|
overflowX: "clip",
|
|
5612
5635
|
width: `${u.value}px`,
|
|
5613
|
-
height: `${
|
|
5636
|
+
height: `${v.value}px`,
|
|
5614
5637
|
overflow: "scroll"
|
|
5615
5638
|
})
|
|
5616
5639
|
}, [
|
|
5617
|
-
(
|
|
5640
|
+
(w(!0), A(J, null, fe(x.value, (R, H) => (w(), A("div", {
|
|
5618
5641
|
key: H,
|
|
5619
5642
|
ref_for: !0,
|
|
5620
5643
|
ref_key: "itemsRef",
|
|
5621
5644
|
ref: c,
|
|
5622
|
-
style: P([
|
|
5645
|
+
style: P([p(H), { position: "absolute" }])
|
|
5623
5646
|
}, [
|
|
5624
|
-
(
|
|
5647
|
+
(w(), G(xe(R), {
|
|
5625
5648
|
style: P({
|
|
5626
5649
|
width: `${f.value}px`
|
|
5627
5650
|
})
|
|
@@ -5642,76 +5665,76 @@ const Vo = /* @__PURE__ */ W({
|
|
|
5642
5665
|
rangeExpand: {}
|
|
5643
5666
|
},
|
|
5644
5667
|
setup(e, { expose: r }) {
|
|
5645
|
-
const t = e, n = m(() =>
|
|
5646
|
-
function d(
|
|
5647
|
-
return Array.isArray(
|
|
5668
|
+
const t = e, n = m(() => h(t.rangeExpand) ?? 0), a = vt(), l = m(() => h(t.gap) ?? 16), i = m(() => h(t.rowCount) ?? 3), s = m(() => h(t.paddingX) ?? 0), o = M(), c = m(() => o.value && o.value.$el ? o.value.$el : o.value);
|
|
5669
|
+
function d(_) {
|
|
5670
|
+
return Array.isArray(_);
|
|
5648
5671
|
}
|
|
5649
5672
|
const u = m(() => {
|
|
5650
|
-
var
|
|
5651
|
-
return t.itemWidth ?
|
|
5652
|
-
}), f = m(() => t.itemWidth ?
|
|
5653
|
-
const
|
|
5673
|
+
var _, I;
|
|
5674
|
+
return t.itemWidth ? h(t.itemWidth) * i.value + l.value * (i.value - 1) + s.value * 2 : t.wrapperWidth ? h(t.wrapperWidth) : ((I = (_ = c.value) == null ? void 0 : _.parentElement) == null ? void 0 : I.clientWidth) ?? 0;
|
|
5675
|
+
}), f = m(() => t.itemWidth ? h(t.itemWidth) : (u.value - s.value * 2 - l.value * (i.value - 1)) / i.value), g = m(() => h(t.items).map((_) => {
|
|
5676
|
+
const I = f.value / _.width;
|
|
5654
5677
|
return {
|
|
5655
5678
|
width: f.value,
|
|
5656
|
-
height:
|
|
5679
|
+
height: _.height * I
|
|
5657
5680
|
};
|
|
5658
5681
|
}));
|
|
5659
|
-
function
|
|
5660
|
-
const j =
|
|
5661
|
-
for (let
|
|
5662
|
-
const
|
|
5663
|
-
|
|
5682
|
+
function C(_, I, B, z) {
|
|
5683
|
+
const j = h(_), X = Array.from({ length: h(I) }).fill(0), le = [], V = Math.max(0, u.value - h(z) * 2 - f.value * j.length - h(B) * j.length) / 2;
|
|
5684
|
+
for (let Y = 0; Y < j.length; Y++) {
|
|
5685
|
+
const ue = j[Y], ge = X.indexOf(Math.min(...X)), Ie = ge * (f.value + h(B)) + h(z) + V, Cr = X[ge];
|
|
5686
|
+
le.push({ x: Ie, y: Cr, width: ue.width, height: ue.height }), X[ge] += ue.height + h(B);
|
|
5664
5687
|
}
|
|
5665
|
-
return
|
|
5688
|
+
return le;
|
|
5666
5689
|
}
|
|
5667
|
-
const
|
|
5668
|
-
var
|
|
5669
|
-
return ((
|
|
5690
|
+
const v = m(() => C(g, i, l, s)), b = m(() => d(v.value) ? Math.max(...v.value.map((_) => _.y + _.height)) : 0), x = m(() => {
|
|
5691
|
+
var _;
|
|
5692
|
+
return ((_ = a.default) == null ? void 0 : _.call(a)) ?? [];
|
|
5670
5693
|
});
|
|
5671
|
-
function
|
|
5672
|
-
if (!d(
|
|
5694
|
+
function p(_) {
|
|
5695
|
+
if (!d(v.value))
|
|
5673
5696
|
return {};
|
|
5674
|
-
const
|
|
5675
|
-
return
|
|
5676
|
-
left: `${
|
|
5677
|
-
top: `${
|
|
5697
|
+
const I = v.value[_];
|
|
5698
|
+
return I ? {
|
|
5699
|
+
left: `${I.x ?? 0}px`,
|
|
5700
|
+
top: `${I.y ?? 0}px`,
|
|
5678
5701
|
maxWidth: `${f.value}px`
|
|
5679
5702
|
} : {};
|
|
5680
5703
|
}
|
|
5681
|
-
const S =
|
|
5682
|
-
behavior:
|
|
5704
|
+
const S = M(!1), $ = m(() => S.value ? "smooth" : "auto"), R = Ua(c, {
|
|
5705
|
+
behavior: $
|
|
5683
5706
|
}), H = m(() => {
|
|
5684
|
-
var
|
|
5707
|
+
var _;
|
|
5685
5708
|
return [
|
|
5686
|
-
|
|
5687
|
-
|
|
5709
|
+
R.y.value - n.value,
|
|
5710
|
+
R.y.value + (((_ = c.value) == null ? void 0 : _.clientHeight) ?? 0) + n.value
|
|
5688
5711
|
];
|
|
5689
|
-
}),
|
|
5690
|
-
const
|
|
5691
|
-
return
|
|
5692
|
-
})),
|
|
5693
|
-
const
|
|
5694
|
-
return
|
|
5695
|
-
if (d(
|
|
5696
|
-
|
|
5697
|
-
|
|
5712
|
+
}), y = m(() => v.value.map((_) => {
|
|
5713
|
+
const I = _.y, B = _.y + _.height;
|
|
5714
|
+
return I >= H.value[0] && I <= H.value[1] || B >= H.value[0] && B <= H.value[1] || I <= H.value[0] && B >= H.value[1];
|
|
5715
|
+
})), k = m(() => {
|
|
5716
|
+
const _ = [];
|
|
5717
|
+
return x.value.forEach((I, B) => {
|
|
5718
|
+
if (d(I.children))
|
|
5719
|
+
I.children.forEach((z, j) => {
|
|
5720
|
+
y.value[j] && _.push([z, j]);
|
|
5698
5721
|
});
|
|
5699
5722
|
else {
|
|
5700
|
-
if (!
|
|
5723
|
+
if (!y.value[B])
|
|
5701
5724
|
return;
|
|
5702
|
-
|
|
5725
|
+
_.push([I, B]);
|
|
5703
5726
|
}
|
|
5704
|
-
}),
|
|
5727
|
+
}), _;
|
|
5705
5728
|
});
|
|
5706
5729
|
r({
|
|
5707
|
-
scroll:
|
|
5708
|
-
scrollTo: (
|
|
5730
|
+
scroll: R,
|
|
5731
|
+
scrollTo: (_, I = !1) => {
|
|
5709
5732
|
const B = S.value;
|
|
5710
|
-
S.value =
|
|
5733
|
+
S.value = I, R.y.value = _, S.value = B;
|
|
5711
5734
|
}
|
|
5712
5735
|
});
|
|
5713
5736
|
const T = m(() => t.is ?? "div");
|
|
5714
|
-
return (
|
|
5737
|
+
return (_, I) => (w(), G(xe(T.value), {
|
|
5715
5738
|
ref_key: "wrapper",
|
|
5716
5739
|
ref: o,
|
|
5717
5740
|
style: {
|
|
@@ -5727,11 +5750,11 @@ const Vo = /* @__PURE__ */ W({
|
|
|
5727
5750
|
position: "relative"
|
|
5728
5751
|
})
|
|
5729
5752
|
}, [
|
|
5730
|
-
(
|
|
5753
|
+
(w(!0), A(J, null, fe(k.value, ([B, z]) => (w(), A("div", {
|
|
5731
5754
|
key: B,
|
|
5732
|
-
style: P([
|
|
5755
|
+
style: P([p(z), { position: "absolute" }])
|
|
5733
5756
|
}, [
|
|
5734
|
-
(
|
|
5757
|
+
(w(), G(xe(B), {
|
|
5735
5758
|
style: P({
|
|
5736
5759
|
width: `${f.value}px`
|
|
5737
5760
|
})
|
|
@@ -5745,7 +5768,7 @@ const Vo = /* @__PURE__ */ W({
|
|
|
5745
5768
|
});
|
|
5746
5769
|
export {
|
|
5747
5770
|
qa as AspectRatio,
|
|
5748
|
-
|
|
5771
|
+
xl as Avatar,
|
|
5749
5772
|
Vt as Btn,
|
|
5750
5773
|
oo as BtnGroup,
|
|
5751
5774
|
me as COLOR_LIGHTNESS_MAP,
|
|
@@ -5765,11 +5788,11 @@ export {
|
|
|
5765
5788
|
yo as Modal,
|
|
5766
5789
|
bo as ModalSystem,
|
|
5767
5790
|
Ql as Notification,
|
|
5768
|
-
|
|
5791
|
+
wo as NotificationSystem,
|
|
5769
5792
|
Ka as Notifications,
|
|
5770
5793
|
na as Overlay,
|
|
5771
5794
|
Sr as Paper,
|
|
5772
|
-
|
|
5795
|
+
xo as PinInput,
|
|
5773
5796
|
So as Popover,
|
|
5774
5797
|
Gl as Progress,
|
|
5775
5798
|
ko as Rating,
|
|
@@ -5782,8 +5805,8 @@ export {
|
|
|
5782
5805
|
Ho as Slider,
|
|
5783
5806
|
ba as Switch,
|
|
5784
5807
|
To as TabItem,
|
|
5785
|
-
|
|
5786
|
-
|
|
5808
|
+
Ro as Tabs,
|
|
5809
|
+
Io as Tag,
|
|
5787
5810
|
sa as TextField,
|
|
5788
5811
|
Eo as ThemeProvider,
|
|
5789
5812
|
zo as Tooltip,
|
|
@@ -5831,7 +5854,7 @@ export {
|
|
|
5831
5854
|
Ut as useNotifications,
|
|
5832
5855
|
zt as useOutlineCS,
|
|
5833
5856
|
Za as useRootTheme,
|
|
5834
|
-
|
|
5857
|
+
ae as useRounded,
|
|
5835
5858
|
Kn as useSchemeString,
|
|
5836
5859
|
jn as useScrollHeight,
|
|
5837
5860
|
Qe as useSurfaceCS,
|