@moubing/bing-ui 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bing-ui.css +1 -1
- package/dist/bing-ui.es.js +227 -228
- package/dist/bing-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/bing-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, TransitionGroup as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, h as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onBeforeUpdate as b, onMounted as x, onUnmounted as S, onUpdated as C, onWatcherCleanup as w, openBlock as T, provide as E, reactive as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as j, shallowReadonly as M, shallowRef as N, toDisplayString as P, toRaw as F, toValue as I, unref as L, useAttrs as R, useCssVars as z, useSlots as ee, vShow as B, watch as V, watchEffect as H, withCtx as U, withDirectives as W, withModifiers as te } from "vue";
|
|
2
2
|
import { gsap as G } from "gsap";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var K = Object.create, ne = Object.defineProperty, q = Object.getOwnPropertyDescriptor, J = Object.getOwnPropertyNames, Y = Object.getPrototypeOf,
|
|
4
|
+
var K = Object.create, ne = Object.defineProperty, q = Object.getOwnPropertyDescriptor, J = Object.getOwnPropertyNames, Y = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, re = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ie = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
6
|
for (var r in e) ne(n, r, {
|
|
7
7
|
get: e[r],
|
|
@@ -9,7 +9,7 @@ var K = Object.create, ne = Object.defineProperty, q = Object.getOwnPropertyDesc
|
|
|
9
9
|
});
|
|
10
10
|
return t || ne(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
11
|
}, ae = (e, t, n, r) => {
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = J(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = J(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !X.call(e, s) && s !== n && ne(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
14
|
enumerable: !(r = q(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
@@ -676,7 +676,7 @@ var it = ["aria-label"], at = [
|
|
|
676
676
|
"blur"
|
|
677
677
|
],
|
|
678
678
|
setup(t, { emit: n }) {
|
|
679
|
-
let r = t, a = n, o = O(null), u = O(null), d = O([]), f = O(void 0), p = O(-1), m = O(!1), h,
|
|
679
|
+
let r = t, a = n, o = O(null), u = O(null), d = O([]), f = O(void 0), p = O(-1), m = O(!1), h, v, S = 0, C, w = i(() => r.modelValue !== void 0), E = i(() => r.items.filter((e) => !e.disabled)), D = i(() => E.value[0]), j = i(() => w.value ? r.modelValue : f.value ?? D.value?.value), M = i(() => r.items.findIndex((e) => Object.is(e.value, j.value))), N = i(() => [
|
|
680
680
|
"bing-tabs",
|
|
681
681
|
`bing-tabs--${r.variant}`,
|
|
682
682
|
`bing-tabs--${r.size}`,
|
|
@@ -685,34 +685,34 @@ var it = ["aria-label"], at = [
|
|
|
685
685
|
"is-disabled": r.disabled,
|
|
686
686
|
"is-indicator-ready": m.value
|
|
687
687
|
}
|
|
688
|
-
]),
|
|
688
|
+
]), F = i(() => Le(r.smoothScroll, Ie, {
|
|
689
689
|
keyboard: !1,
|
|
690
690
|
smoothTouchpad: !1,
|
|
691
691
|
respectReducedMotion: !0
|
|
692
692
|
}));
|
|
693
|
-
function
|
|
693
|
+
function I() {
|
|
694
694
|
return typeof window < "u";
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
return !r.animated || r.respectReducedMotion &&
|
|
696
|
+
function L() {
|
|
697
|
+
return !r.animated || r.respectReducedMotion && I() && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function R(e, t) {
|
|
700
700
|
let n = t === "left" ? "borderLeftWidth" : "borderTopWidth", r = Number.parseFloat(window.getComputedStyle(e)[n]);
|
|
701
701
|
return Number.isFinite(r) ? r : t === "left" ? e.clientLeft : e.clientTop;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function z(e) {
|
|
704
704
|
return r.disabled || !!e.disabled;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function ee(e, t) {
|
|
707
707
|
e instanceof HTMLButtonElement && (d.value[t] = e);
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function B(e) {
|
|
710
710
|
return e.querySelector(".bing-tabs__tab-surface") ?? e;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
712
|
+
function H(e) {
|
|
713
|
+
return z(r.items[e]) ? -1 : p.value >= 0 ? p.value === e ? 0 : -1 : M.value === e ? 0 : -1;
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function U(e, t) {
|
|
716
716
|
let n = r.items.length;
|
|
717
717
|
if (n === 0) return -1;
|
|
718
718
|
let i = e;
|
|
@@ -720,109 +720,109 @@ var it = ["aria-label"], at = [
|
|
|
720
720
|
if (i += t, r.loop) i = (i + n) % n;
|
|
721
721
|
else if (i < 0 || i >= n) return -1;
|
|
722
722
|
let e = r.items[i];
|
|
723
|
-
if (e && !
|
|
723
|
+
if (e && !z(e)) return i;
|
|
724
724
|
}
|
|
725
725
|
return -1;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
let t = (e === "first" ? r.items : [...r.items].reverse()).findIndex((e) => !
|
|
727
|
+
function W(e) {
|
|
728
|
+
let t = (e === "first" ? r.items : [...r.items].reverse()).findIndex((e) => !z(e));
|
|
729
729
|
return t < 0 ? -1 : e === "first" ? t : r.items.length - 1 - t;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function te(e) {
|
|
732
732
|
return r.items.find((t) => Object.is(t.value, e));
|
|
733
733
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
734
|
+
function K() {
|
|
735
|
+
return I() && !!o.value?.contains(document.activeElement);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
if (r.activation !== "auto" ||
|
|
739
|
-
let t = r.items[
|
|
740
|
-
!t ||
|
|
737
|
+
function ne(e = !1) {
|
|
738
|
+
if (r.activation !== "auto" || M.value < 0) return;
|
|
739
|
+
let t = r.items[M.value];
|
|
740
|
+
!t || z(t) || (p.value = M.value, e && K() && Y(M.value));
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
if (
|
|
742
|
+
function q(e, t) {
|
|
743
|
+
if (z(e)) {
|
|
744
744
|
t.preventDefault();
|
|
745
745
|
return;
|
|
746
746
|
}
|
|
747
|
-
let n =
|
|
747
|
+
let n = j.value;
|
|
748
748
|
if (Object.is(n, e.value)) return;
|
|
749
|
-
|
|
749
|
+
w.value || (f.value = e.value);
|
|
750
750
|
let r = {
|
|
751
751
|
value: e.value,
|
|
752
752
|
previousValue: n,
|
|
753
753
|
item: e,
|
|
754
|
-
previousItem:
|
|
754
|
+
previousItem: te(n),
|
|
755
755
|
event: t
|
|
756
756
|
};
|
|
757
757
|
a("update:modelValue", e.value), a("change", r);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
p.value = t,
|
|
759
|
+
function J(e, t, n) {
|
|
760
|
+
p.value = t, q(e, n);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Y(e) {
|
|
763
763
|
let t = d.value[e];
|
|
764
|
-
t && (
|
|
764
|
+
t && (C?.cancel(), p.value = e, t.focus());
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function X(e, t) {
|
|
767
767
|
let n = r.items[e];
|
|
768
|
-
!n ||
|
|
769
|
-
Object.is(
|
|
768
|
+
!n || z(n) || (t.preventDefault(), Y(e), r.activation === "auto" && (q(n, t), g().then(() => {
|
|
769
|
+
Object.is(j.value, n.value) || ne(!0);
|
|
770
770
|
})));
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function re(e, t) {
|
|
773
773
|
if (t.key === "ArrowRight" || t.key === "ArrowDown") {
|
|
774
|
-
|
|
774
|
+
X(U(e, 1), t);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
777
|
if (t.key === "ArrowLeft" || t.key === "ArrowUp") {
|
|
778
|
-
|
|
778
|
+
X(U(e, -1), t);
|
|
779
779
|
return;
|
|
780
780
|
}
|
|
781
781
|
if (t.key === "Home") {
|
|
782
|
-
|
|
782
|
+
X(W("first"), t);
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
785
785
|
if (t.key === "End") {
|
|
786
|
-
|
|
786
|
+
X(W("last"), t);
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
789
|
if (t.key === "Enter" || t.key === " ") {
|
|
790
790
|
let n = r.items[e];
|
|
791
791
|
if (!n) return;
|
|
792
|
-
t.preventDefault(),
|
|
792
|
+
t.preventDefault(), q(n, t);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
|
|
795
|
+
function ie(e, t, n) {
|
|
796
|
+
C?.cancel(), p.value = t, a("focus", {
|
|
797
797
|
value: e.value,
|
|
798
798
|
item: e,
|
|
799
799
|
event: n
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function ae(e, t) {
|
|
803
803
|
o.value?.contains(t.relatedTarget) || (p.value = -1), a("blur", {
|
|
804
804
|
value: e.value,
|
|
805
805
|
item: e,
|
|
806
806
|
event: t
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
if ((
|
|
809
|
+
function oe(e) {
|
|
810
|
+
if ((C?.handleWheel(e) ?? !1) || e.defaultPrevented || !o.value) return;
|
|
811
811
|
let t = e.deltaX || (e.shiftKey ? e.deltaY : 0), n = Math.max(0, o.value.scrollWidth - o.value.clientWidth);
|
|
812
812
|
n > .5 && (t < 0 ? o.value.scrollLeft > .5 : t > 0 && o.value.scrollLeft < n - .5) && e.stopPropagation();
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
|
|
814
|
+
function Z(e = !0) {
|
|
815
|
+
I() && (S && window.cancelAnimationFrame(S), S = window.requestAnimationFrame(() => {
|
|
816
|
+
S = 0, se(e);
|
|
817
817
|
}));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
let t = o.value, n = u.value, r = d.value[
|
|
821
|
-
if (!t || !n || !r ||
|
|
819
|
+
function se(e = !0) {
|
|
820
|
+
let t = o.value, n = u.value, r = d.value[M.value];
|
|
821
|
+
if (!t || !n || !r || M.value < 0) {
|
|
822
822
|
n && G.set(n, { autoAlpha: 0 }), m.value = !1;
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
let i = t.getBoundingClientRect(), a =
|
|
825
|
+
let i = t.getBoundingClientRect(), a = B(r).getBoundingClientRect(), s = n.getBoundingClientRect(), c = R(t, "left"), l = R(t, "top"), f = Math.max(1, a.width), p = Math.max(1, a.height), g = a.left - i.left - c, _ = a.top - i.top - l, v = m.value && s.width > 0 && s.height > 0, y = v ? s.left - i.left - c : g, b = v ? s.top - i.top - l : _, x = v ? s.width / f : 1, S = v ? s.height / p : 1, C = e && v && !L();
|
|
826
826
|
h?.kill(), G.set(n, {
|
|
827
827
|
width: f,
|
|
828
828
|
height: p,
|
|
@@ -859,49 +859,48 @@ var it = ["aria-label"], at = [
|
|
|
859
859
|
return b(() => {
|
|
860
860
|
d.value = [];
|
|
861
861
|
}), x(() => {
|
|
862
|
-
|
|
862
|
+
C = et({
|
|
863
863
|
getElement: () => o.value,
|
|
864
864
|
getOptions: () => {
|
|
865
|
-
let e =
|
|
865
|
+
let e = F.value;
|
|
866
866
|
return e === !1 ? void 0 : e;
|
|
867
867
|
},
|
|
868
868
|
getAxes: () => ({
|
|
869
869
|
horizontal: !0,
|
|
870
870
|
vertical: !1
|
|
871
871
|
}),
|
|
872
|
-
isEnabled: () =>
|
|
872
|
+
isEnabled: () => F.value !== !1
|
|
873
873
|
}), g().then(() => {
|
|
874
|
-
|
|
875
|
-
}), typeof ResizeObserver < "u" && o.value && (
|
|
876
|
-
|
|
877
|
-
}),
|
|
874
|
+
se(!1);
|
|
875
|
+
}), typeof ResizeObserver < "u" && o.value && (v = new ResizeObserver(() => {
|
|
876
|
+
Z(!1);
|
|
877
|
+
}), v.observe(o.value));
|
|
878
878
|
}), y(() => {
|
|
879
|
-
h?.kill(),
|
|
879
|
+
h?.kill(), C?.cancel(), C = void 0, S && I() && window.cancelAnimationFrame(S), v?.disconnect();
|
|
880
880
|
}), V(() => r.smoothScroll, () => {
|
|
881
|
-
|
|
881
|
+
C?.cancel();
|
|
882
882
|
}, { deep: !0 }), V(() => [
|
|
883
|
-
|
|
883
|
+
j.value,
|
|
884
884
|
r.items.length,
|
|
885
885
|
r.size,
|
|
886
886
|
r.variant,
|
|
887
887
|
r.block
|
|
888
888
|
], () => {
|
|
889
889
|
g().then(() => {
|
|
890
|
-
|
|
890
|
+
se(!0);
|
|
891
891
|
});
|
|
892
|
-
}), V(
|
|
893
|
-
p.value < 0 || !
|
|
894
|
-
|
|
892
|
+
}), V(M, () => {
|
|
893
|
+
p.value < 0 || !K() || g().then(() => {
|
|
894
|
+
ne(!0);
|
|
895
895
|
});
|
|
896
896
|
}), (n, r) => (T(), s("div", {
|
|
897
897
|
ref_key: "rootRef",
|
|
898
898
|
ref: o,
|
|
899
|
-
class: _(
|
|
900
|
-
style: v(I.value),
|
|
899
|
+
class: _(N.value),
|
|
901
900
|
role: "tablist",
|
|
902
901
|
"aria-orientation": "horizontal",
|
|
903
902
|
"aria-label": t.ariaLabel,
|
|
904
|
-
onWheel:
|
|
903
|
+
onWheel: oe
|
|
905
904
|
}, [c("span", {
|
|
906
905
|
ref_key: "indicatorRef",
|
|
907
906
|
ref: u,
|
|
@@ -910,29 +909,29 @@ var it = ["aria-label"], at = [
|
|
|
910
909
|
}, null, 512), (T(!0), s(e, null, k(t.items, (e, t) => (T(), s("button", {
|
|
911
910
|
key: String(e.value),
|
|
912
911
|
ref_for: !0,
|
|
913
|
-
ref: (e) =>
|
|
912
|
+
ref: (e) => ee(e, t),
|
|
914
913
|
class: _(["bing-tabs__tab", {
|
|
915
|
-
"is-active": Object.is(e.value,
|
|
916
|
-
"is-disabled":
|
|
914
|
+
"is-active": Object.is(e.value, j.value),
|
|
915
|
+
"is-disabled": z(e)
|
|
917
916
|
}]),
|
|
918
917
|
type: "button",
|
|
919
918
|
role: "tab",
|
|
920
|
-
"aria-selected": Object.is(e.value,
|
|
921
|
-
"aria-disabled":
|
|
919
|
+
"aria-selected": Object.is(e.value, j.value),
|
|
920
|
+
"aria-disabled": z(e) || void 0,
|
|
922
921
|
"aria-label": e.ariaLabel,
|
|
923
|
-
disabled:
|
|
924
|
-
tabindex:
|
|
925
|
-
onClick: (n) =>
|
|
926
|
-
onKeydown: (e) =>
|
|
927
|
-
onFocus: (n) =>
|
|
928
|
-
onBlur: (t) =>
|
|
922
|
+
disabled: z(e),
|
|
923
|
+
tabindex: H(t),
|
|
924
|
+
onClick: (n) => J(e, t, n),
|
|
925
|
+
onKeydown: (e) => re(t, e),
|
|
926
|
+
onFocus: (n) => ie(e, t, n),
|
|
927
|
+
onBlur: (t) => ae(e, t)
|
|
929
928
|
}, [c("span", ot, [c("span", st, [A(n.$slots, "item", {
|
|
930
929
|
item: e,
|
|
931
|
-
active: Object.is(e.value,
|
|
932
|
-
disabled:
|
|
933
|
-
}, () => [l(P(e.label), 1)], !0)])])], 42, at))), 128))],
|
|
930
|
+
active: Object.is(e.value, j.value),
|
|
931
|
+
disabled: z(e)
|
|
932
|
+
}, () => [l(P(e.label), 1)], !0)])])], 42, at))), 128))], 42, it));
|
|
934
933
|
}
|
|
935
|
-
}), [["__scopeId", "data-v-
|
|
934
|
+
}), [["__scopeId", "data-v-32add4b3"]]), lt = ["aria-hidden"], ut = /* @__PURE__ */ je(/* @__PURE__ */ d({
|
|
936
935
|
__name: "BingAppSwitcherTransition",
|
|
937
936
|
props: {
|
|
938
937
|
modelValue: { default: void 0 },
|
|
@@ -1599,7 +1598,7 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1599
1598
|
};
|
|
1600
1599
|
}
|
|
1601
1600
|
}
|
|
1602
|
-
function
|
|
1601
|
+
function X() {
|
|
1603
1602
|
C?.kill(), C = void 0, h.value = !1, d.value && (G.killTweensOf(d.value), G.set(d.value, {
|
|
1604
1603
|
"--bing-card-press-progress": 0,
|
|
1605
1604
|
"--bing-card-press-ring-scale": .78,
|
|
@@ -1609,7 +1608,7 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1609
1608
|
scale: .98
|
|
1610
1609
|
}));
|
|
1611
1610
|
}
|
|
1612
|
-
function
|
|
1611
|
+
function re() {
|
|
1613
1612
|
h.value = !1, d.value && (G.killTweensOf(d.value), G.timeline().to(d.value, {
|
|
1614
1613
|
"--bing-card-press-ring-scale": .96,
|
|
1615
1614
|
autoAlpha: .82,
|
|
@@ -1656,7 +1655,7 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1656
1655
|
}
|
|
1657
1656
|
function ae(e) {
|
|
1658
1657
|
if (!ee() || I.value !== "press" || k || e.button !== 0) return;
|
|
1659
|
-
|
|
1658
|
+
X(), N = !1, j = e.clientX, M = e.clientY, h.value = !0;
|
|
1660
1659
|
let t = a.value?.getBoundingClientRect(), i = t && t.width > 0 ? `${H((e.clientX - t.left) / t.width * 100, 0, 100)}%` : "50%", o = t && t.height > 0 ? `${H((e.clientY - t.top) / t.height * 100, 0, 100)}%` : "50%";
|
|
1661
1660
|
try {
|
|
1662
1661
|
e.currentTarget?.setPointerCapture?.(e.pointerId);
|
|
@@ -1674,7 +1673,7 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1674
1673
|
ease: "none",
|
|
1675
1674
|
overwrite: !0,
|
|
1676
1675
|
onComplete: () => {
|
|
1677
|
-
if (C = void 0, N = !0, r("long-press"),
|
|
1676
|
+
if (C = void 0, N = !0, r("long-press"), re(), n.longPressRelease === "restore") {
|
|
1678
1677
|
ie(!0);
|
|
1679
1678
|
return;
|
|
1680
1679
|
}
|
|
@@ -1697,13 +1696,13 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1697
1696
|
function Z(e) {
|
|
1698
1697
|
if (!C) return;
|
|
1699
1698
|
let t = e.clientX - j, n = e.clientY - M;
|
|
1700
|
-
Math.hypot(t, n) > jt &&
|
|
1699
|
+
Math.hypot(t, n) > jt && X();
|
|
1701
1700
|
}
|
|
1702
1701
|
function se() {
|
|
1703
|
-
|
|
1702
|
+
X(), N && n.longPressRelease === "restore" && ie(!1), N = !1;
|
|
1704
1703
|
}
|
|
1705
1704
|
function ce() {
|
|
1706
|
-
N ||
|
|
1705
|
+
N || X(), !D && q();
|
|
1707
1706
|
}
|
|
1708
1707
|
function le() {
|
|
1709
1708
|
let e = a.value, t = l.value;
|
|
@@ -1764,11 +1763,11 @@ var xt = { class: "bing-card__face bing-card__front" }, St = {
|
|
|
1764
1763
|
n.flipTrigger,
|
|
1765
1764
|
n.disabled
|
|
1766
1765
|
], () => {
|
|
1767
|
-
|
|
1766
|
+
X(), p.value = !1, g(ue);
|
|
1768
1767
|
}, { flush: "post" }), x(() => {
|
|
1769
1768
|
g(ue);
|
|
1770
1769
|
}), y(() => {
|
|
1771
|
-
|
|
1770
|
+
X(), E?.kill(), E = void 0, k = !1, w?.kill(), w = void 0, D = !1, S?.disconnect(), S = void 0, b?.revert(), b = void 0, G.killTweensOf([
|
|
1772
1771
|
l.value,
|
|
1773
1772
|
u.value,
|
|
1774
1773
|
d.value,
|
|
@@ -2896,10 +2895,10 @@ var Wn = [
|
|
|
2896
2895
|
y: q(e?.y, 0)
|
|
2897
2896
|
};
|
|
2898
2897
|
}
|
|
2899
|
-
function
|
|
2898
|
+
function X(e) {
|
|
2900
2899
|
return Math.round(e * 1e3) / 1e3;
|
|
2901
2900
|
}
|
|
2902
|
-
function
|
|
2901
|
+
function re(e, t, n) {
|
|
2903
2902
|
return Math.min(n, Math.max(t, e));
|
|
2904
2903
|
}
|
|
2905
2904
|
function ie(e, t) {
|
|
@@ -2978,15 +2977,15 @@ var Wn = [
|
|
|
2978
2977
|
function he(e, t, n) {
|
|
2979
2978
|
let r = me();
|
|
2980
2979
|
if (d.lockAspectRatio && n && n.aspectRatio > 0) {
|
|
2981
|
-
let i = n.aspectRatio, a =
|
|
2980
|
+
let i = n.aspectRatio, a = re(_e(e, t, n.direction, n) === "width" ? e : t * i, Math.max(r.minWidth, r.minHeight * i), Math.min(r.maxWidth, r.maxHeight * i));
|
|
2982
2981
|
return {
|
|
2983
2982
|
width: a,
|
|
2984
2983
|
height: a / i
|
|
2985
2984
|
};
|
|
2986
2985
|
}
|
|
2987
2986
|
return {
|
|
2988
|
-
width:
|
|
2989
|
-
height:
|
|
2987
|
+
width: re(e, r.minWidth, r.maxWidth),
|
|
2988
|
+
height: re(t, r.minHeight, r.maxHeight)
|
|
2990
2989
|
};
|
|
2991
2990
|
}
|
|
2992
2991
|
function ge(e, t, n, r) {
|
|
@@ -3071,12 +3070,12 @@ var Wn = [
|
|
|
3071
3070
|
let l = he(o, s, e), u = ye(l, e), d = be(l, u, e);
|
|
3072
3071
|
return l = d.size, u = d.position, {
|
|
3073
3072
|
size: {
|
|
3074
|
-
width:
|
|
3075
|
-
height:
|
|
3073
|
+
width: X(l.width),
|
|
3074
|
+
height: X(l.height)
|
|
3076
3075
|
},
|
|
3077
3076
|
position: {
|
|
3078
|
-
x:
|
|
3079
|
-
y:
|
|
3077
|
+
x: X(u.x),
|
|
3078
|
+
y: X(u.y)
|
|
3080
3079
|
}
|
|
3081
3080
|
};
|
|
3082
3081
|
}
|
|
@@ -3348,8 +3347,8 @@ var Wn = [
|
|
|
3348
3347
|
"is-scrolling": E.value,
|
|
3349
3348
|
"is-smooth": !!r.smooth
|
|
3350
3349
|
}]), te = i(() => ({
|
|
3351
|
-
height:
|
|
3352
|
-
maxHeight:
|
|
3350
|
+
height: X(r.height),
|
|
3351
|
+
maxHeight: X(r.maxHeight)
|
|
3353
3352
|
})), G = i(() => ({
|
|
3354
3353
|
height: `${m.value}px`,
|
|
3355
3354
|
transform: `translate(-50%, ${h.value}px)`
|
|
@@ -3360,10 +3359,10 @@ var Wn = [
|
|
|
3360
3359
|
function Y() {
|
|
3361
3360
|
return typeof window < "u" && typeof document < "u";
|
|
3362
3361
|
}
|
|
3363
|
-
function
|
|
3362
|
+
function X(e) {
|
|
3364
3363
|
return typeof e == "number" ? `${e}px` : e;
|
|
3365
3364
|
}
|
|
3366
|
-
function
|
|
3365
|
+
function re() {
|
|
3367
3366
|
!Y() || k === void 0 || (window.clearTimeout(k), k = void 0);
|
|
3368
3367
|
}
|
|
3369
3368
|
function ie() {
|
|
@@ -3429,7 +3428,7 @@ var Wn = [
|
|
|
3429
3428
|
g(de);
|
|
3430
3429
|
}
|
|
3431
3430
|
function pe() {
|
|
3432
|
-
Y() && (
|
|
3431
|
+
Y() && (re(), E.value = !0, k = window.setTimeout(() => {
|
|
3433
3432
|
k = void 0, E.value = !1;
|
|
3434
3433
|
}, 720));
|
|
3435
3434
|
}
|
|
@@ -3594,7 +3593,7 @@ var Wn = [
|
|
|
3594
3593
|
isEnabled: ce
|
|
3595
3594
|
}), Pe();
|
|
3596
3595
|
}), y(() => {
|
|
3597
|
-
|
|
3596
|
+
re(), ie(), Z(), P = void 0, Oe(), D?.disconnect(), D = void 0, Y() && window.removeEventListener("resize", fe);
|
|
3598
3597
|
}), t({
|
|
3599
3598
|
handleWheel: _e,
|
|
3600
3599
|
scrollBy: Ne,
|
|
@@ -10796,14 +10795,14 @@ var Of = ["aria-label"], kf = {
|
|
|
10796
10795
|
E.value,
|
|
10797
10796
|
A.value
|
|
10798
10797
|
], () => {
|
|
10799
|
-
|
|
10798
|
+
X();
|
|
10800
10799
|
}, { immediate: !0 }), x(() => {
|
|
10801
10800
|
G(), C = new MutationObserver(G), C.observe(document.documentElement, {
|
|
10802
10801
|
attributeFilter: ["data-bing-theme"],
|
|
10803
10802
|
attributes: !0
|
|
10804
10803
|
}), w = window.matchMedia?.("(prefers-color-scheme: dark)"), w?.addEventListener?.("change", G);
|
|
10805
10804
|
}), y(() => {
|
|
10806
|
-
b += 1,
|
|
10805
|
+
b += 1, re(), C?.disconnect(), w?.removeEventListener?.("change", G), C = void 0, w = void 0;
|
|
10807
10806
|
});
|
|
10808
10807
|
function te() {
|
|
10809
10808
|
if (typeof document > "u") return "vitesse-light";
|
|
@@ -10841,7 +10840,7 @@ var Of = ["aria-label"], kf = {
|
|
|
10841
10840
|
let t = {};
|
|
10842
10841
|
return e.color && (t.color = e.color), e.fontStyle !== void 0 && ((e.fontStyle & Kf) === Kf && (t.fontStyle = "italic"), (e.fontStyle & qf) === qf && (t.fontWeight = "700"), (e.fontStyle & Jf) === Jf && (t.textDecoration = "underline")), t;
|
|
10843
10842
|
}
|
|
10844
|
-
async function
|
|
10843
|
+
async function X() {
|
|
10845
10844
|
let e = b += 1;
|
|
10846
10845
|
p.value = "loading", f.value = ne(l.code);
|
|
10847
10846
|
try {
|
|
@@ -10854,7 +10853,7 @@ var Of = ["aria-label"], kf = {
|
|
|
10854
10853
|
f.value = ne(l.code), p.value = "error", d("highlightError", n);
|
|
10855
10854
|
}
|
|
10856
10855
|
}
|
|
10857
|
-
function
|
|
10856
|
+
function re() {
|
|
10858
10857
|
if (S === void 0 || typeof window > "u") {
|
|
10859
10858
|
S = void 0;
|
|
10860
10859
|
return;
|
|
@@ -10862,7 +10861,7 @@ var Of = ["aria-label"], kf = {
|
|
|
10862
10861
|
window.clearTimeout(S), S = void 0;
|
|
10863
10862
|
}
|
|
10864
10863
|
function ie() {
|
|
10865
|
-
|
|
10864
|
+
re(), !(typeof window > "u") && (S = window.setTimeout(() => {
|
|
10866
10865
|
S = void 0, m.value = !1;
|
|
10867
10866
|
}, Math.max(0, l.copyResetDelay)));
|
|
10868
10867
|
}
|
|
@@ -11344,7 +11343,7 @@ var pp = [
|
|
|
11344
11343
|
}), k, M, P, F = 0, I = !1, R = !1, z = !1, B = !1, H = "manual", U = i(() => l.id ?? b), W = !!(m?.vnode.props && (Object.prototype.hasOwnProperty.call(m.vnode.props, "modelValue") || Object.prototype.hasOwnProperty.call(m.vnode.props, "model-value"))), K = i(() => !l.disabled && (W ? !!l.modelValue : E.value)), ne = i(() => {
|
|
11345
11344
|
let e = Array.isArray(l.trigger) ? l.trigger : [l.trigger], t = e.length > 0 ? e : ["manual"];
|
|
11346
11345
|
return [...new Set(t)];
|
|
11347
|
-
}), q = i(() => ne.value.includes("hover")), J = i(() => ne.value.includes("click")), Y = i(() => ne.value.includes("manual")),
|
|
11346
|
+
}), q = i(() => ne.value.includes("hover")), J = i(() => ne.value.includes("click")), Y = i(() => ne.value.includes("manual")), X = i(() => Math.max(0, l.openDelay)), re = i(() => Math.max(0, l.closeDelay)), ie = i(() => Math.max(0, l.offset)), ae = i(() => Math.max(0, l.viewportPadding)), oe = i(() => typeof l.maxWidth == "number" ? `${Math.max(1, l.maxWidth)}px` : l.maxWidth), Z = i(() => bt("bing-tooltip", {
|
|
11348
11347
|
glass: l.glass,
|
|
11349
11348
|
glassBlur: l.glassBlur,
|
|
11350
11349
|
glassOpacity: l.glassOpacity,
|
|
@@ -11568,23 +11567,23 @@ var pp = [
|
|
|
11568
11567
|
}
|
|
11569
11568
|
function tt(e) {
|
|
11570
11569
|
if (!l.disabled) {
|
|
11571
|
-
if (qe(),
|
|
11570
|
+
if (qe(), X.value === 0 || ap.value) {
|
|
11572
11571
|
Qe(e);
|
|
11573
11572
|
return;
|
|
11574
11573
|
}
|
|
11575
11574
|
Ke(), M = window.setTimeout(() => {
|
|
11576
11575
|
M = void 0, Qe(e);
|
|
11577
|
-
},
|
|
11576
|
+
}, X.value);
|
|
11578
11577
|
}
|
|
11579
11578
|
}
|
|
11580
11579
|
function nt(e) {
|
|
11581
|
-
if (Ke(),
|
|
11580
|
+
if (Ke(), re.value === 0) {
|
|
11582
11581
|
$e(e);
|
|
11583
11582
|
return;
|
|
11584
11583
|
}
|
|
11585
11584
|
qe(), P = window.setTimeout(() => {
|
|
11586
11585
|
P = void 0, $e(e);
|
|
11587
|
-
},
|
|
11586
|
+
}, re.value);
|
|
11588
11587
|
}
|
|
11589
11588
|
function rt() {
|
|
11590
11589
|
k?.kill(), k = void 0;
|
|
@@ -11980,7 +11979,7 @@ var pp = [
|
|
|
11980
11979
|
keyboard: !1,
|
|
11981
11980
|
smoothTouchpad: !1,
|
|
11982
11981
|
respectReducedMotion: !0
|
|
11983
|
-
})), C = `bing-select-${++d}`, w = `${C}-listbox`, E = O(null), D = O(null), j = O(null), M = O(null), N = O(null), F = O(null), I = O(null), R = O(null), z = O(null), B = O(null), H = O(null), W = O([]), K = O(!1), ne = O(!1), q = O(!1), J = O(-1), Y = O(!1),
|
|
11982
|
+
})), C = `bing-select-${++d}`, w = `${C}-listbox`, E = O(null), D = O(null), j = O(null), M = O(null), N = O(null), F = O(null), I = O(null), R = O(null), z = O(null), B = O(null), H = O(null), W = O([]), K = O(!1), ne = O(!1), q = O(!1), J = O(-1), Y = O(!1), X = O(!1), re = O(-1), ie = O("right"), ae = O(""), oe = O(2 ** 53 - 1), Z = O(0), se = O(0), ce = O(0), le = O({
|
|
11984
11983
|
align: "start",
|
|
11985
11984
|
left: 0,
|
|
11986
11985
|
minHeight: 0,
|
|
@@ -12025,7 +12024,7 @@ var pp = [
|
|
|
12025
12024
|
"is-glass": f.glass,
|
|
12026
12025
|
"is-multiple": f.multiple,
|
|
12027
12026
|
"is-keyboard-navigating": Y.value,
|
|
12028
|
-
"is-keyboard-scrolling":
|
|
12027
|
+
"is-keyboard-scrolling": X.value
|
|
12029
12028
|
}
|
|
12030
12029
|
]), Ye = i(() => ({
|
|
12031
12030
|
position: "fixed",
|
|
@@ -12062,7 +12061,7 @@ var pp = [
|
|
|
12062
12061
|
let e = f.modelValue;
|
|
12063
12062
|
return f.multiple ? Array.isArray(e) ? e : e === null ? [] : [e] : Array.isArray(e) ? e.length > 0 ? [e[0]] : [] : e === null ? [] : [e];
|
|
12064
12063
|
}), ot = i(() => Lt(at.value)), st = i(() => f.multiple && !h.value), ct = i(() => ot.value.slice(0, oe.value)), lt = i(() => Math.max(0, ot.value.length - oe.value)), ut = i(() => Be.value === "lg" ? "md" : "sm"), dt = i(() => Fe.value.filter((e) => !e.disabled)), ft = i(() => dt.value.map((e) => e.value)), pt = i(() => dt.value.filter((e) => zt(e)).length), mt = i(() => ot.value.length > 0), ht = i(() => f.clearable && !Ve.value && mt.value), gt = i(() => f.multiple && f.showSelectAll), _t = i(() => dt.value.length > 0), Q = i(() => _t.value && dt.value.every((e) => At(at.value, e.value))), vt = i(() => dt.value.some((e) => At(at.value, e.value)) && !Q.value), yt = i(() => K.value && J.value >= 0 ? Rt(J.value) : void 0), xt = i(() => {
|
|
12065
|
-
let e = f.options[
|
|
12064
|
+
let e = f.options[re.value];
|
|
12066
12065
|
return Ht(e) ? e : void 0;
|
|
12067
12066
|
}), St = i(() => xt.value ? zt(xt.value) : !1), Ct = i(() => xt.value ? Bt(xt.value) : void 0), wt = i(() => Vt(xt.value)), Tt = i(() => {
|
|
12068
12067
|
if (!mt.value) return f.placeholder;
|
|
@@ -12194,15 +12193,15 @@ var pp = [
|
|
|
12194
12193
|
!Et() || Se === void 0 || (window.clearTimeout(Se), Se = void 0);
|
|
12195
12194
|
}
|
|
12196
12195
|
function ln() {
|
|
12197
|
-
|
|
12196
|
+
X.value = !1, cn();
|
|
12198
12197
|
}
|
|
12199
12198
|
function un() {
|
|
12200
|
-
!Et() || !
|
|
12201
|
-
Se = void 0,
|
|
12199
|
+
!Et() || !X.value || (cn(), Se = window.setTimeout(() => {
|
|
12200
|
+
Se = void 0, X.value = !1;
|
|
12202
12201
|
}, 120));
|
|
12203
12202
|
}
|
|
12204
12203
|
function dn() {
|
|
12205
|
-
!Et() || !Y.value || (
|
|
12204
|
+
!Et() || !Y.value || (X.value = !0, un());
|
|
12206
12205
|
}
|
|
12207
12206
|
function fn(e) {
|
|
12208
12207
|
!Number.isFinite(e.clientX) || !Number.isFinite(e.clientY) || (we = e.clientX, Te = e.clientY);
|
|
@@ -12386,8 +12385,8 @@ var pp = [
|
|
|
12386
12385
|
}
|
|
12387
12386
|
function Mn(e, t, n) {
|
|
12388
12387
|
if (!Ht(t)) return;
|
|
12389
|
-
let r =
|
|
12390
|
-
on(),
|
|
12388
|
+
let r = re.value, i = r === n ? void 0 : kn();
|
|
12389
|
+
on(), re.value = n, q.value = !0, g(() => {
|
|
12391
12390
|
jn(e, r !== n, i);
|
|
12392
12391
|
});
|
|
12393
12392
|
}
|
|
@@ -12395,7 +12394,7 @@ var pp = [
|
|
|
12395
12394
|
on(), an();
|
|
12396
12395
|
let t = B.value;
|
|
12397
12396
|
if (!t) {
|
|
12398
|
-
q.value = !1,
|
|
12397
|
+
q.value = !1, re.value = -1;
|
|
12399
12398
|
return;
|
|
12400
12399
|
}
|
|
12401
12400
|
if (G.killTweensOf([t, H.value].filter(Boolean)), e || Ot()) {
|
|
@@ -12404,7 +12403,7 @@ var pp = [
|
|
|
12404
12403
|
scale: .96,
|
|
12405
12404
|
clearProps: "width,height,overflow",
|
|
12406
12405
|
willChange: "auto"
|
|
12407
|
-
}), q.value = !1,
|
|
12406
|
+
}), q.value = !1, re.value = -1;
|
|
12408
12407
|
return;
|
|
12409
12408
|
}
|
|
12410
12409
|
G.to(t, {
|
|
@@ -12415,12 +12414,12 @@ var pp = [
|
|
|
12415
12414
|
ease: "power2.out",
|
|
12416
12415
|
overwrite: !0,
|
|
12417
12416
|
onComplete: () => {
|
|
12418
|
-
q.value = !1,
|
|
12417
|
+
q.value = !1, re.value = -1;
|
|
12419
12418
|
}
|
|
12420
12419
|
});
|
|
12421
12420
|
}
|
|
12422
|
-
function Fn(e =
|
|
12423
|
-
!Et() || e < 0 || e !==
|
|
12421
|
+
function Fn(e = re.value) {
|
|
12422
|
+
!Et() || e < 0 || e !== re.value || (on(), be = window.setTimeout(() => {
|
|
12424
12423
|
be = void 0, Pn();
|
|
12425
12424
|
}, 120));
|
|
12426
12425
|
}
|
|
@@ -12449,7 +12448,7 @@ var pp = [
|
|
|
12449
12448
|
}
|
|
12450
12449
|
function Vn() {
|
|
12451
12450
|
if (!q.value || !xt.value) return;
|
|
12452
|
-
let e = Tn(
|
|
12451
|
+
let e = Tn(re.value);
|
|
12453
12452
|
if (!e) {
|
|
12454
12453
|
Pn(!0);
|
|
12455
12454
|
return;
|
|
@@ -12781,7 +12780,7 @@ var pp = [
|
|
|
12781
12780
|
Pn(!0);
|
|
12782
12781
|
return;
|
|
12783
12782
|
}
|
|
12784
|
-
if (Ht(t) ? (on(), (
|
|
12783
|
+
if (Ht(t) ? (on(), (re.value !== n || !q.value) && Mn(r, t, n)) : Pn(!0), Ot()) return;
|
|
12785
12784
|
let i = Cr(r);
|
|
12786
12785
|
i && (Tr(r, i, e), r.classList.contains("is-liquid-active") || (r.classList.add("is-liquid-active"), G.killTweensOf(i), G.fromTo(i, {
|
|
12787
12786
|
autoAlpha: 0,
|
|
@@ -13278,7 +13277,7 @@ var pp = [
|
|
|
13278
13277
|
}, [A(r.$slots, "option-detail", {
|
|
13279
13278
|
option: xt.value,
|
|
13280
13279
|
selected: St.value,
|
|
13281
|
-
index:
|
|
13280
|
+
index: re.value
|
|
13282
13281
|
}, () => [
|
|
13283
13282
|
c("span", Op, P(xt.value.label), 1),
|
|
13284
13283
|
Ct.value ? (T(), s("span", kp, P(Ct.value), 1)) : o("", !0),
|
|
@@ -13443,7 +13442,7 @@ var pp = [
|
|
|
13443
13442
|
placement: "bottom",
|
|
13444
13443
|
top: 0,
|
|
13445
13444
|
width: rm
|
|
13446
|
-
}), J = !1, Y = !1,
|
|
13445
|
+
}), J = !1, Y = !1, X = !1, re = !1, ie = 0, ae, oe, Z, se, ce = i(() => d.id ?? p?.controlId.value ?? h), le = i(() => d.size ?? p?.size.value ?? "md"), ue = i(() => d.disabled || p?.disabled.value || !1), de = i(() => d.status ?? p?.status.value ?? "default"), fe = i(() => [d.ariaDescribedby, p?.ariaDescribedby.value].filter(Boolean).join(" ") || void 0), pe = i(() => bt("bing-color-picker", {
|
|
13447
13446
|
glass: d.glass,
|
|
13448
13447
|
glassBlur: d.glassBlur,
|
|
13449
13448
|
glassOpacity: d.glassOpacity,
|
|
@@ -13781,13 +13780,13 @@ var pp = [
|
|
|
13781
13780
|
n && Q(xe.value, n.saturation, n.value, "field");
|
|
13782
13781
|
}
|
|
13783
13782
|
function St(e) {
|
|
13784
|
-
ue.value || (e.preventDefault(), M.value?.focus(),
|
|
13783
|
+
ue.value || (e.preventDefault(), M.value?.focus(), re = !0, xt(e.clientX, e.clientY), zt());
|
|
13785
13784
|
}
|
|
13786
13785
|
function Ct(e) {
|
|
13787
|
-
|
|
13786
|
+
re && (e.preventDefault(), xt(e.clientX, e.clientY));
|
|
13788
13787
|
}
|
|
13789
13788
|
function wt(e) {
|
|
13790
|
-
|
|
13789
|
+
re && (e.preventDefault(), xt(e.clientX, e.clientY), re = !1, Bt(), mt("field"));
|
|
13791
13790
|
}
|
|
13792
13791
|
function Tt(e) {
|
|
13793
13792
|
if (ue.value) return;
|
|
@@ -13851,10 +13850,10 @@ var pp = [
|
|
|
13851
13850
|
!Pe() || !J || (window.removeEventListener("pointerdown", on, !0), J = !1);
|
|
13852
13851
|
}
|
|
13853
13852
|
function zt() {
|
|
13854
|
-
!Pe() ||
|
|
13853
|
+
!Pe() || X || (window.addEventListener("pointermove", Ct), window.addEventListener("pointerup", wt), window.addEventListener("pointercancel", wt), X = !0);
|
|
13855
13854
|
}
|
|
13856
13855
|
function Bt() {
|
|
13857
|
-
!Pe() || !
|
|
13856
|
+
!Pe() || !X || (window.removeEventListener("pointermove", Ct), window.removeEventListener("pointerup", wt), window.removeEventListener("pointercancel", wt), X = !1);
|
|
13858
13857
|
}
|
|
13859
13858
|
function Vt() {
|
|
13860
13859
|
!Pe() || Y || (window.addEventListener("resize", Wt), window.addEventListener("scroll", Wt, !0), Y = !0);
|
|
@@ -13984,7 +13983,7 @@ var pp = [
|
|
|
13984
13983
|
ue.value || W.value || (K.value = !0, W.value = !0, Lt(), Vt(), f("open"), await g(), Gt(), Xt());
|
|
13985
13984
|
}
|
|
13986
13985
|
function nn(e = !1) {
|
|
13987
|
-
W.value && (se && mt(se), W.value = !1, Rt(),
|
|
13986
|
+
W.value && (se && mt(se), W.value = !1, Rt(), re = !1, Bt(), Ht(), Ut(), f("close"), en(e));
|
|
13988
13987
|
}
|
|
13989
13988
|
function rn() {
|
|
13990
13989
|
if (!ue.value) {
|
|
@@ -14244,7 +14243,7 @@ var pp = [
|
|
|
14244
14243
|
], 2)
|
|
14245
14244
|
], 46, Bp)) : o("", !0)]))], 6));
|
|
14246
14245
|
}
|
|
14247
|
-
}), [["__scopeId", "data-v-a9a05e1f"]]), um = /* @__PURE__ */
|
|
14246
|
+
}), [["__scopeId", "data-v-a9a05e1f"]]), um = /* @__PURE__ */ re(((e, t) => {
|
|
14248
14247
|
(function(n, r) {
|
|
14249
14248
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
14250
14249
|
})(e, (function() {
|
|
@@ -14538,7 +14537,7 @@ var pp = [
|
|
|
14538
14537
|
return w(1e3 * e);
|
|
14539
14538
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
14540
14539
|
}));
|
|
14541
|
-
})), dm = /* @__PURE__ */
|
|
14540
|
+
})), dm = /* @__PURE__ */ re(((e, t) => {
|
|
14542
14541
|
(function(n, r) {
|
|
14543
14542
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs_plugin_customParseFormat = r();
|
|
14544
14543
|
})(e, (function() {
|
|
@@ -14831,7 +14830,7 @@ var pp = [
|
|
|
14831
14830
|
placement: "bottom",
|
|
14832
14831
|
top: 0,
|
|
14833
14832
|
width: 0
|
|
14834
|
-
}), ne = !1, q = !1, J = 0, Y,
|
|
14833
|
+
}), ne = !1, q = !1, J = 0, Y, X, re, ie = i(() => b.id ?? S?.controlId.value ?? C), ae = i(() => b.size ?? S?.size.value ?? "md"), oe = i(() => b.disabled || S?.disabled.value || !1), Z = i(() => b.status ?? S?.status.value ?? "default"), se = i(() => [b.ariaDescribedby, S?.ariaDescribedby.value].filter(Boolean).join(" ") || void 0), ce = i(() => b.valueFormat ?? f[b.type]), le = i(() => b.format ?? ce.value), ue = i(() => b.type === "date" || b.type === "datetime"), de = i(() => b.type === "datetime" || b.type === "time"), fe = i(() => b.range || b.type === "datetime" || b.type === "time"), pe = i(() => Le(b.smoothScroll, Ie, {
|
|
14835
14834
|
keyboard: !1,
|
|
14836
14835
|
respectReducedMotion: !0,
|
|
14837
14836
|
smoothTouchpad: !1
|
|
@@ -14933,11 +14932,11 @@ var pp = [
|
|
|
14933
14932
|
}
|
|
14934
14933
|
function $e(e = !1) {
|
|
14935
14934
|
let t = Qe();
|
|
14936
|
-
|
|
14935
|
+
X?.kill(), X = void 0, e && t.length && G.set(t, { clearProps: "opacity,visibility,transform,transformOrigin" });
|
|
14937
14936
|
}
|
|
14938
14937
|
function et(e = !1) {
|
|
14939
14938
|
let t = Qe();
|
|
14940
|
-
|
|
14939
|
+
re?.kill(), re = void 0, e && t.length && G.set(t, { clearProps: "opacity,visibility,transform,transformOrigin" });
|
|
14941
14940
|
}
|
|
14942
14941
|
function tt() {
|
|
14943
14942
|
let e = Qe();
|
|
@@ -14952,16 +14951,16 @@ var pp = [
|
|
|
14952
14951
|
scale: .985,
|
|
14953
14952
|
transformOrigin: K.value.placement === "bottom" ? "50% 0%" : "50% 100%",
|
|
14954
14953
|
y: t
|
|
14955
|
-
}),
|
|
14954
|
+
}), X = G.timeline({
|
|
14956
14955
|
defaults: {
|
|
14957
14956
|
duration: .18,
|
|
14958
14957
|
ease: "power3.out",
|
|
14959
14958
|
overwrite: !0
|
|
14960
14959
|
},
|
|
14961
14960
|
onComplete: () => {
|
|
14962
|
-
|
|
14961
|
+
X = void 0, G.set(e, { clearProps: "opacity,visibility,transform,transformOrigin" });
|
|
14963
14962
|
}
|
|
14964
|
-
}),
|
|
14963
|
+
}), X.to(e, {
|
|
14965
14964
|
opacity: 1,
|
|
14966
14965
|
scale: 1,
|
|
14967
14966
|
y: 0
|
|
@@ -14977,14 +14976,14 @@ var pp = [
|
|
|
14977
14976
|
return;
|
|
14978
14977
|
}
|
|
14979
14978
|
let n = K.value.placement === "bottom" ? -8 : 8;
|
|
14980
|
-
et(), G.killTweensOf(t), G.set(t, { transformOrigin: K.value.placement === "bottom" ? "50% 0%" : "50% 100%" }),
|
|
14979
|
+
et(), G.killTweensOf(t), G.set(t, { transformOrigin: K.value.placement === "bottom" ? "50% 0%" : "50% 100%" }), re = G.timeline({
|
|
14981
14980
|
defaults: {
|
|
14982
14981
|
duration: .16,
|
|
14983
14982
|
ease: "power2.in",
|
|
14984
14983
|
overwrite: !0
|
|
14985
14984
|
},
|
|
14986
14985
|
onComplete: () => nt(e)
|
|
14987
|
-
}),
|
|
14986
|
+
}), re.to(t, {
|
|
14988
14987
|
autoAlpha: 0,
|
|
14989
14988
|
scale: .985,
|
|
14990
14989
|
y: n
|
|
@@ -16198,7 +16197,7 @@ var pp = [
|
|
|
16198
16197
|
"is-peeking": ee.value,
|
|
16199
16198
|
"has-overlay-blur": S.overlayBlur,
|
|
16200
16199
|
"has-animated-orbs": S.overlayBlur && S.overlayOrbsAnimated
|
|
16201
|
-
}]), Y = i(() => S.title ? `${w}-title` : void 0),
|
|
16200
|
+
}]), Y = i(() => S.title ? `${w}-title` : void 0), X = i(() => S.ariaLabel ?? (S.title ? void 0 : "Dialog")), re = i(() => Math.min(1, Math.max(0, S.peekOpacity))), ie = i(() => S.overlayBlur ? S.overlayOrbs : []);
|
|
16202
16201
|
function ae(e, t) {
|
|
16203
16202
|
return typeof e == "number" ? `${e}px` : e ?? `${t}px`;
|
|
16204
16203
|
}
|
|
@@ -16426,7 +16425,7 @@ var pp = [
|
|
|
16426
16425
|
scale: 1
|
|
16427
16426
|
}), N.to(n, { opacity: 0 }, 0).to(t.dialog, {
|
|
16428
16427
|
scale: a,
|
|
16429
|
-
opacity:
|
|
16428
|
+
opacity: re.value,
|
|
16430
16429
|
force3D: !0
|
|
16431
16430
|
}, 0).to(t.peekAnchor, {
|
|
16432
16431
|
autoAlpha: 1,
|
|
@@ -16541,7 +16540,7 @@ var pp = [
|
|
|
16541
16540
|
style: v(ne.value),
|
|
16542
16541
|
role: "dialog",
|
|
16543
16542
|
"aria-modal": "true",
|
|
16544
|
-
"aria-label":
|
|
16543
|
+
"aria-label": X.value,
|
|
16545
16544
|
"aria-labelledby": Y.value,
|
|
16546
16545
|
"aria-describedby": n.ariaDescribedby
|
|
16547
16546
|
}, [
|
|
@@ -16802,23 +16801,23 @@ var pp = [
|
|
|
16802
16801
|
y: t + 6
|
|
16803
16802
|
};
|
|
16804
16803
|
}
|
|
16805
|
-
function
|
|
16804
|
+
function X(e) {
|
|
16806
16805
|
e !== R.value && (L.value || (b.value = e), u("update:open", e));
|
|
16807
16806
|
}
|
|
16808
|
-
function
|
|
16807
|
+
function re(e) {
|
|
16809
16808
|
S.value = e, u("update:context", e);
|
|
16810
16809
|
}
|
|
16811
16810
|
function ie() {
|
|
16812
|
-
C.value = null, S.value !== null &&
|
|
16811
|
+
C.value = null, S.value !== null && re(null);
|
|
16813
16812
|
}
|
|
16814
16813
|
function ae() {
|
|
16815
|
-
ce(),
|
|
16814
|
+
ce(), X(!0);
|
|
16816
16815
|
}
|
|
16817
16816
|
function oe(e = !1) {
|
|
16818
|
-
ce(),
|
|
16817
|
+
ce(), X(!1), e && fe();
|
|
16819
16818
|
}
|
|
16820
16819
|
function Z() {
|
|
16821
|
-
ce(),
|
|
16820
|
+
ce(), X(!R.value);
|
|
16822
16821
|
}
|
|
16823
16822
|
function se(e) {
|
|
16824
16823
|
return e.pointerType === "touch";
|
|
@@ -16828,7 +16827,7 @@ var pp = [
|
|
|
16828
16827
|
}
|
|
16829
16828
|
function le() {
|
|
16830
16829
|
!te() || l.trigger !== "hover" || (ce(), I = window.setTimeout(() => {
|
|
16831
|
-
I = void 0,
|
|
16830
|
+
I = void 0, X(!1);
|
|
16832
16831
|
}, 110));
|
|
16833
16832
|
}
|
|
16834
16833
|
function ue(e = null) {
|
|
@@ -16860,7 +16859,7 @@ var pp = [
|
|
|
16860
16859
|
m.value?.focus();
|
|
16861
16860
|
}
|
|
16862
16861
|
async function pe(e) {
|
|
16863
|
-
ce(), R.value ||
|
|
16862
|
+
ce(), R.value || X(!0), await g(), await g(), ot(e);
|
|
16864
16863
|
}
|
|
16865
16864
|
async function me(e, t, n, r) {
|
|
16866
16865
|
de(e), ce();
|
|
@@ -16869,13 +16868,13 @@ var pp = [
|
|
|
16869
16868
|
...D.value,
|
|
16870
16869
|
left: i.x,
|
|
16871
16870
|
top: i.y
|
|
16872
|
-
},
|
|
16871
|
+
}, re(t), u("context-open", {
|
|
16873
16872
|
event: e,
|
|
16874
16873
|
context: t,
|
|
16875
16874
|
x: n,
|
|
16876
16875
|
y: r
|
|
16877
16876
|
}), !R.value) {
|
|
16878
|
-
|
|
16877
|
+
X(!0), await g(), await g(), Ze(), it();
|
|
16879
16878
|
return;
|
|
16880
16879
|
}
|
|
16881
16880
|
await g(), Ze(), await g(), a && Ue(a), it();
|
|
@@ -17380,14 +17379,14 @@ var pp = [
|
|
|
17380
17379
|
function Y(e, t, n) {
|
|
17381
17380
|
return Math.min(n, Math.max(t, e));
|
|
17382
17381
|
}
|
|
17383
|
-
function
|
|
17382
|
+
function X(e) {
|
|
17384
17383
|
if (r.disabled) {
|
|
17385
17384
|
e.preventDefault();
|
|
17386
17385
|
return;
|
|
17387
17386
|
}
|
|
17388
17387
|
u("click", e), !(!e.defaultPrevented && z.value) && !e.defaultPrevented && V.value && f?.close();
|
|
17389
17388
|
}
|
|
17390
|
-
function
|
|
17389
|
+
function re() {
|
|
17391
17390
|
!J() || E === void 0 || (window.clearTimeout(E), E = void 0);
|
|
17392
17391
|
}
|
|
17393
17392
|
function ie() {
|
|
@@ -17416,13 +17415,13 @@ var pp = [
|
|
|
17416
17415
|
b.value = !1, Z(), ie();
|
|
17417
17416
|
}
|
|
17418
17417
|
function le() {
|
|
17419
|
-
!z.value || r.disabled || (
|
|
17418
|
+
!z.value || r.disabled || (re(), b.value = !0, g(() => {
|
|
17420
17419
|
se(), oe();
|
|
17421
17420
|
}));
|
|
17422
17421
|
}
|
|
17423
17422
|
function ue() {
|
|
17424
17423
|
if (!(!z.value || x.value || S.value)) {
|
|
17425
|
-
if (
|
|
17424
|
+
if (re(), !J()) {
|
|
17426
17425
|
ce();
|
|
17427
17426
|
return;
|
|
17428
17427
|
}
|
|
@@ -17446,13 +17445,13 @@ var pp = [
|
|
|
17446
17445
|
t instanceof Node && e.currentTarget.contains(t) || (S.value = !1, ue());
|
|
17447
17446
|
}
|
|
17448
17447
|
function he() {
|
|
17449
|
-
!z.value || r.disabled || (x.value = !0,
|
|
17448
|
+
!z.value || r.disabled || (x.value = !0, re());
|
|
17450
17449
|
}
|
|
17451
17450
|
function ge() {
|
|
17452
17451
|
z.value && (x.value = !1, ue());
|
|
17453
17452
|
}
|
|
17454
17453
|
function _e() {
|
|
17455
|
-
!z.value || r.disabled || (S.value = !0,
|
|
17454
|
+
!z.value || r.disabled || (S.value = !0, re());
|
|
17456
17455
|
}
|
|
17457
17456
|
function ve(e) {
|
|
17458
17457
|
if (!z.value) return;
|
|
@@ -17464,7 +17463,7 @@ var pp = [
|
|
|
17464
17463
|
S.value = !1, ue();
|
|
17465
17464
|
}
|
|
17466
17465
|
return y(() => {
|
|
17467
|
-
|
|
17466
|
+
re(), Z(), ie();
|
|
17468
17467
|
}), (n, r) => (T(), s("div", {
|
|
17469
17468
|
class: _(G.value),
|
|
17470
17469
|
onPointerenter: de,
|
|
@@ -17489,7 +17488,7 @@ var pp = [
|
|
|
17489
17488
|
"aria-haspopup": z.value ? "menu" : void 0,
|
|
17490
17489
|
"aria-expanded": z.value ? String(b.value) : void 0,
|
|
17491
17490
|
"aria-controls": z.value ? M : void 0,
|
|
17492
|
-
onClick:
|
|
17491
|
+
onClick: X
|
|
17493
17492
|
}, {
|
|
17494
17493
|
default: U(() => [
|
|
17495
17494
|
I.value ? (T(), s("span", hh, [A(n.$slots, "prefix", {}, () => [e.icon ? (T(), a(zn, {
|
|
@@ -17630,7 +17629,7 @@ var pp = [
|
|
|
17630
17629
|
x: 0,
|
|
17631
17630
|
y: 0,
|
|
17632
17631
|
rotation: 0
|
|
17633
|
-
}), R = !1, z = !1, ee = 0, B, H, W, te = 0, K = 0, ne, q, J, Y,
|
|
17632
|
+
}), R = !1, z = !1, ee = 0, B, H, W, te = 0, K = 0, ne, q, J, Y, X, re, ie, ae, oe = !1, Z = !1, se, ce = null, le, ue = 0, de = 0, fe = 0, pe = 0, me = !1, he = i(() => b.items.filter((e) => !!(e.src || e.previewSrc))), ge = i(() => he.value.length), _e = i(() => ge.value > 0), ve = i(() => he.value[k.value]), ye = i(() => ve.value?.previewSrc || ve.value?.src || ""), be = i(() => ve.value?.alt ?? ""), xe = i(() => ge.value > 1), Se = i(() => b.downloadable && !!ve.value), Ce = i(() => Math.max(.1, Math.min(b.minScale, b.maxScale))), we = i(() => Math.max(Ce.value, b.maxScale)), Te = i(() => Math.max(.05, b.zoomStep)), Ee = i(() => I.scale <= Ce.value + .001), De = i(() => I.scale >= we.value - .001), Oe = i(() => A.value ?? k.value), ke = i(() => M.value === "loading" || A.value !== void 0), Ae = i(() => ["bing-image-preview-root", {
|
|
17634
17633
|
"is-active": E.value,
|
|
17635
17634
|
"is-dragging": j.value,
|
|
17636
17635
|
"is-loading": ke.value,
|
|
@@ -17831,10 +17830,10 @@ var pp = [
|
|
|
17831
17830
|
Y = void 0, J?.kill(), J = void 0, e?.();
|
|
17832
17831
|
}
|
|
17833
17832
|
function lt() {
|
|
17834
|
-
if (oe = !1, !
|
|
17833
|
+
if (oe = !1, !X || !ie) return;
|
|
17835
17834
|
ct();
|
|
17836
|
-
let e =
|
|
17837
|
-
|
|
17835
|
+
let e = X, t = re, n = ie, r = ae, i = !1;
|
|
17836
|
+
X = void 0, re = void 0, ie = void 0, ae = void 0;
|
|
17838
17837
|
let a = () => {
|
|
17839
17838
|
i || (i = !0, G.set(e, { clearProps: "opacity,visibility,transform" }), t && G.set(t, { clearProps: "opacity,visibility,transform" }), n(), r?.(), Z = !0, Y === a && (Y = void 0, J = void 0));
|
|
17840
17839
|
};
|
|
@@ -17873,10 +17872,10 @@ var pp = [
|
|
|
17873
17872
|
});
|
|
17874
17873
|
}
|
|
17875
17874
|
function ft(e, t) {
|
|
17876
|
-
|
|
17875
|
+
X = e, ie = t, ut();
|
|
17877
17876
|
}
|
|
17878
17877
|
function pt(e, t) {
|
|
17879
|
-
|
|
17878
|
+
re = e, ae = t, ut();
|
|
17880
17879
|
}
|
|
17881
17880
|
function mt(e) {
|
|
17882
17881
|
if (e.preventDefault(), _e.value) {
|
|
@@ -18008,7 +18007,7 @@ var pp = [
|
|
|
18008
18007
|
}), V(() => ge.value, () => {
|
|
18009
18008
|
A.value !== void 0 && A.value >= ge.value && ($e(), Re()), k.value = We(k.value);
|
|
18010
18009
|
}), y(() => {
|
|
18011
|
-
St(), $e(), Re(!0), J?.kill(), J = void 0, Y = void 0,
|
|
18010
|
+
St(), $e(), Re(!0), J?.kill(), J = void 0, Y = void 0, X = void 0, re = void 0, ie = void 0, ae = void 0, se?.revert(), se = void 0, Ke(), Ue(), Pe() && z && (window.removeEventListener("keydown", yt), z = !1);
|
|
18012
18011
|
}), (r, i) => (T(), a(t, { to: e.teleportTo }, [w.value ? (T(), s("div", {
|
|
18013
18012
|
key: 0,
|
|
18014
18013
|
ref_key: "rootRef",
|
|
@@ -18324,7 +18323,7 @@ var pp = [
|
|
|
18324
18323
|
"xlsx",
|
|
18325
18324
|
"pptx",
|
|
18326
18325
|
"office"
|
|
18327
|
-
].includes(W.value)),
|
|
18326
|
+
].includes(W.value)), X = i(() => ne.value && A.value === "loading"), re = i(() => ne.value && A.value === "error"), ie = i(() => `${H.value} preview`), ae = i(() => [
|
|
18328
18327
|
"bing-file-preview-root",
|
|
18329
18328
|
`bing-file-preview-root--${W.value}`,
|
|
18330
18329
|
{ "is-active": D.value }
|
|
@@ -18692,10 +18691,10 @@ var pp = [
|
|
|
18692
18691
|
class: "bing-file-preview__frame",
|
|
18693
18692
|
src: te.value,
|
|
18694
18693
|
title: ie.value
|
|
18695
|
-
}, null, 8, ng)) : W.value === "csv" ? (T(), s("div", rg, [
|
|
18694
|
+
}, null, 8, ng)) : W.value === "csv" ? (T(), s("div", rg, [X.value ? (T(), s("div", ig, [u(zn, {
|
|
18696
18695
|
icon: L(Dn),
|
|
18697
18696
|
size: "lg"
|
|
18698
|
-
}, null, 8, ["icon"]), i[3] ||= c("span", null, "Loading file", -1)])) :
|
|
18697
|
+
}, null, 8, ["icon"]), i[3] ||= c("span", null, "Loading file", -1)])) : re.value ? (T(), s("div", ag, [i[4] ||= c("h3", null, "Could not load CSV", -1), c("p", null, P(M.value), 1)])) : (T(), a(tr, {
|
|
18699
18698
|
key: 2,
|
|
18700
18699
|
ref_key: "contentScrollRef",
|
|
18701
18700
|
ref: w,
|
|
@@ -18708,10 +18707,10 @@ var pp = [
|
|
|
18708
18707
|
}, {
|
|
18709
18708
|
default: U(() => [c("div", og, [c("table", sg, [c("thead", null, [c("tr", null, [(T(!0), s(e, null, k(he.value, (e, t) => (T(), s("th", { key: `head-${t}` }, P(e || `Column ${t + 1}`), 1))), 128))])]), c("tbody", null, [(T(!0), s(e, null, k(ge.value, (t, n) => (T(), s("tr", { key: `row-${n}` }, [(T(!0), s(e, null, k(t, (e, t) => (T(), s("td", { key: `cell-${n}-${t}` }, P(e), 1))), 128))]))), 128))])])])]),
|
|
18710
18709
|
_: 1
|
|
18711
|
-
}, 8, ["smooth"]))])) : W.value === "text" || W.value === "json" ? (T(), s("div", cg, [
|
|
18710
|
+
}, 8, ["smooth"]))])) : W.value === "text" || W.value === "json" ? (T(), s("div", cg, [X.value ? (T(), s("div", lg, [u(zn, {
|
|
18712
18711
|
icon: L(Dn),
|
|
18713
18712
|
size: "lg"
|
|
18714
|
-
}, null, 8, ["icon"]), i[5] ||= c("span", null, "Loading file", -1)])) :
|
|
18713
|
+
}, null, 8, ["icon"]), i[5] ||= c("span", null, "Loading file", -1)])) : re.value ? (T(), s("div", ug, [i[6] ||= c("h3", null, "Could not load text", -1), c("p", null, P(M.value), 1)])) : (T(), a(tr, {
|
|
18715
18714
|
key: 2,
|
|
18716
18715
|
ref_key: "contentScrollRef",
|
|
18717
18716
|
ref: w,
|
|
@@ -22468,13 +22467,13 @@ _T = sw(gT), vT = /* @__PURE__ */ new WeakMap(), yT = /* @__PURE__ */ new WeakSe
|
|
|
22468
22467
|
let J = r_(() => r.transform), Y = d.translate ?? {
|
|
22469
22468
|
x: 0,
|
|
22470
22469
|
y: 0
|
|
22471
|
-
},
|
|
22470
|
+
}, X = J.x * p.scaleX + Y.x, re = J.y * p.scaleY + Y.y, ie = nS();
|
|
22472
22471
|
S.set({
|
|
22473
22472
|
width: v - ee,
|
|
22474
22473
|
height: y - B,
|
|
22475
22474
|
top: q.top + ie.y,
|
|
22476
22475
|
left: q.left + ie.x,
|
|
22477
|
-
translate: `${
|
|
22476
|
+
translate: `${X}px ${re}px 0`,
|
|
22478
22477
|
transform: this.overlay ? "none" : L,
|
|
22479
22478
|
transition: F ? `${F}, translate 0ms linear` : "translate 0ms linear",
|
|
22480
22479
|
scale: h ? `${_.x} ${_.y}` : "",
|
|
@@ -24232,13 +24231,13 @@ var CO = ["aria-grabbed", "data-bing-sortable-key"], wO = /* @__PURE__ */ je(/*
|
|
|
24232
24231
|
function Y(e) {
|
|
24233
24232
|
return e.nativeEvent instanceof PointerEvent ? e.nativeEvent : void 0;
|
|
24234
24233
|
}
|
|
24235
|
-
function
|
|
24234
|
+
function X(e, t, n) {
|
|
24236
24235
|
let r = [...e], [i] = r.splice(t, 1);
|
|
24237
24236
|
return i === void 0 || r.splice(M(n, 0, r.length), 0, i), r;
|
|
24238
24237
|
}
|
|
24239
|
-
function
|
|
24238
|
+
function re(e, t, n, r = E.value) {
|
|
24240
24239
|
let i = r.indexOf(e);
|
|
24241
|
-
return ne(
|
|
24240
|
+
return ne(X(r, i >= 0 ? i : t, n));
|
|
24242
24241
|
}
|
|
24243
24242
|
function ie(e, t, n = E.value, i = {}) {
|
|
24244
24243
|
let a = ne(e);
|
|
@@ -24272,7 +24271,7 @@ var CO = ["aria-grabbed", "data-bing-sortable-key"], wO = /* @__PURE__ */ je(/*
|
|
|
24272
24271
|
function Z(e) {
|
|
24273
24272
|
let { source: t } = e.operation, n = Y(e);
|
|
24274
24273
|
if (!n || !CD(t) || !W(t.id)) return;
|
|
24275
|
-
let i = p.value ?? t.initialIndex, a =
|
|
24274
|
+
let i = p.value ?? t.initialIndex, a = re(t.id, i, t.index);
|
|
24276
24275
|
m.value = a;
|
|
24277
24276
|
let s = ae(t.id, t.index, a, n);
|
|
24278
24277
|
if (s && o("drag", s), r.reorderMode === "live") {
|
|
@@ -24291,7 +24290,7 @@ var CO = ["aria-grabbed", "data-bing-sortable-key"], wO = /* @__PURE__ */ je(/*
|
|
|
24291
24290
|
if (f.value = null, p.value = null, m.value = null, !n || e.canceled || !CD(t) || !W(t.id)) return;
|
|
24292
24291
|
let s = J(t.id);
|
|
24293
24292
|
if (!s) return;
|
|
24294
|
-
let c = a ?? t.initialIndex, l = t.index, u =
|
|
24293
|
+
let c = a ?? t.initialIndex, l = t.index, u = re(t.id, c, l);
|
|
24295
24294
|
r.reorderMode === "drop" && ie(u, {
|
|
24296
24295
|
key: t.id,
|
|
24297
24296
|
item: s.item,
|
|
@@ -24305,7 +24304,7 @@ var CO = ["aria-grabbed", "data-bing-sortable-key"], wO = /* @__PURE__ */ je(/*
|
|
|
24305
24304
|
function ce(e, t) {
|
|
24306
24305
|
if (r.disabled || e.disabled || !r.keyboard) return;
|
|
24307
24306
|
let n = t.key, i = null, a = D.value.indexOf(e.key);
|
|
24308
|
-
r.axis === "vertical" ? n === "ArrowUp" ? i = a - 1 : n === "ArrowDown" && (i = a + 1) : n === "ArrowLeft" ? i = a - 1 : n === "ArrowRight" && (i = a + 1), n === "Home" ? i = 0 : n === "End" && (i = D.value.length - 1), !(i === null || a < 0) && (t.preventDefault(), ie(
|
|
24307
|
+
r.axis === "vertical" ? n === "ArrowUp" ? i = a - 1 : n === "ArrowDown" && (i = a + 1) : n === "ArrowLeft" ? i = a - 1 : n === "ArrowRight" && (i = a + 1), n === "Home" ? i = 0 : n === "End" && (i = D.value.length - 1), !(i === null || a < 0) && (t.preventDefault(), ie(X(D.value, a, M(i, 0, D.value.length - 1)), {
|
|
24309
24308
|
key: e.key,
|
|
24310
24309
|
item: e.item,
|
|
24311
24310
|
from: a,
|
|
@@ -24849,10 +24848,10 @@ var hk = [
|
|
|
24849
24848
|
function Y(e) {
|
|
24850
24849
|
f("close", e), pk.close(e.id), lk();
|
|
24851
24850
|
}
|
|
24852
|
-
function
|
|
24851
|
+
function X() {
|
|
24853
24852
|
ck();
|
|
24854
24853
|
}
|
|
24855
|
-
function
|
|
24854
|
+
function re() {
|
|
24856
24855
|
lk();
|
|
24857
24856
|
}
|
|
24858
24857
|
function ie(e) {
|
|
@@ -24879,8 +24878,8 @@ var hk = [
|
|
|
24879
24878
|
smooth: E.value,
|
|
24880
24879
|
always: "",
|
|
24881
24880
|
"aria-label": t.toasts.length > 0 ? "Toast notifications" : void 0,
|
|
24882
|
-
onPointerenter:
|
|
24883
|
-
onPointerleave:
|
|
24881
|
+
onPointerenter: X,
|
|
24882
|
+
onPointerleave: re
|
|
24884
24883
|
}, {
|
|
24885
24884
|
default: U(() => [u(r, {
|
|
24886
24885
|
tag: "div",
|
|
@@ -24901,9 +24900,9 @@ var hk = [
|
|
|
24901
24900
|
role: ee(e),
|
|
24902
24901
|
"aria-live": B(e),
|
|
24903
24902
|
"aria-label": e.ariaLabel,
|
|
24904
|
-
onPointerenter:
|
|
24905
|
-
onPointerleave:
|
|
24906
|
-
onFocusin:
|
|
24903
|
+
onPointerenter: X,
|
|
24904
|
+
onPointerleave: re,
|
|
24905
|
+
onFocusin: X,
|
|
24907
24906
|
onFocusout: ie
|
|
24908
24907
|
}, [c("div", gk, [
|
|
24909
24908
|
c("span", _k, [u(zn, {
|
|
@@ -25168,7 +25167,7 @@ var hk = [
|
|
|
25168
25167
|
"scroll"
|
|
25169
25168
|
],
|
|
25170
25169
|
setup(t, { expose: n, emit: d }) {
|
|
25171
|
-
let f = t, p = d, m = ee(), b = O(null), S = O(null), C = O(null), w = O(null), E = O(null), D = O(null), j = O(!1), M = O([...f.defaultSelectedRowKeys]), N = O([...f.defaultExpandedRowKeys]), F = O({ ...f.defaultColumnWidths }), I = O(f.defaultColumnOrder.length ? [...f.defaultColumnOrder] : f.columns.map((e) => e.key)), R = O([...new Set([...f.defaultHiddenColumnKeys, ...f.columns.filter((e) => e.hidden).map((e) => e.key)])]), z = O({ ...f.defaultColumnFixed }), B = O(Math.max(1, f.defaultPage)), H = O(Math.max(1, f.defaultPageSize)), W = O(f.defaultSortKey), G = O(f.defaultSortOrder), K = O(0), ne = O(0), q = O(0), J = O(0), Y = O(0),
|
|
25170
|
+
let f = t, p = d, m = ee(), b = O(null), S = O(null), C = O(null), w = O(null), E = O(null), D = O(null), j = O(!1), M = O([...f.defaultSelectedRowKeys]), N = O([...f.defaultExpandedRowKeys]), F = O({ ...f.defaultColumnWidths }), I = O(f.defaultColumnOrder.length ? [...f.defaultColumnOrder] : f.columns.map((e) => e.key)), R = O([...new Set([...f.defaultHiddenColumnKeys, ...f.columns.filter((e) => e.hidden).map((e) => e.key)])]), z = O({ ...f.defaultColumnFixed }), B = O(Math.max(1, f.defaultPage)), H = O(Math.max(1, f.defaultPageSize)), W = O(f.defaultSortKey), G = O(f.defaultSortOrder), K = O(0), ne = O(0), q = O(0), J = O(0), Y = O(0), X = O(0), re = O(0), ie = O(!1), ae = O(null), oe = O(null), Z = O(null), se = O(!1), ce = O(null), le = O(!1), ue = O(!1), de = O(null), fe = O(!1), pe = O(null), me = O(void 0), he = O(null), ge = {
|
|
25172
25171
|
duration: 190,
|
|
25173
25172
|
easing: "cubic-bezier(0.22, 1, 0.36, 1)"
|
|
25174
25173
|
}, _e = i(() => Le(f.smoothScroll, Ie, {
|
|
@@ -25273,7 +25272,7 @@ var hk = [
|
|
|
25273
25272
|
return Je.value.forEach((t) => {
|
|
25274
25273
|
hn(t) === "left" && (e += Cn(t));
|
|
25275
25274
|
}), e;
|
|
25276
|
-
}), jt = i(() => Je.value.reduce((e, t) => hn(t) === "right" ? e + Cn(t) : e, 0)), Mt = i(() => gA * dn(
|
|
25275
|
+
}), jt = i(() => Je.value.reduce((e, t) => hn(t) === "right" ? e + Cn(t) : e, 0)), Mt = i(() => gA * dn(X.value / hA, 0, 1)), Nt = i(() => gA * dn((re.value - X.value) / hA, 0, 1)), Pt = i(() => ({
|
|
25277
25276
|
left: `${At.value}px`,
|
|
25278
25277
|
opacity: Mt.value
|
|
25279
25278
|
})), Ft = i(() => ({
|
|
@@ -25282,12 +25281,12 @@ var hk = [
|
|
|
25282
25281
|
})), It = i(() => ({ width: f.selectable && Gt.value ? `${Re.value}px` : "0px" })), Lt = i(() => ({
|
|
25283
25282
|
right: "0px",
|
|
25284
25283
|
width: `${jt.value}px`
|
|
25285
|
-
})), Rt = i(() => xt.value && f.selectable && Gt.value), zt = i(() => xt.value && jt.value > 0), Bt = i(() => xt.value && At.value > 0 &&
|
|
25284
|
+
})), Rt = i(() => xt.value && f.selectable && Gt.value), zt = i(() => xt.value && jt.value > 0), Bt = i(() => xt.value && At.value > 0 && re.value > 1), Vt = i(() => xt.value && jt.value > 0 && re.value > 1), Ht = i(() => re.value > 1), Ut = i(() => {
|
|
25286
25285
|
if (!Ht.value || Y.value <= 0 || q.value <= 0 || J.value <= 0) return {
|
|
25287
25286
|
width: "0px",
|
|
25288
25287
|
transform: "translate3d(0, 0, 0)"
|
|
25289
25288
|
};
|
|
25290
|
-
let e = dn(q.value / J.value * Y.value, 36, Y.value), t = Math.max(0, Y.value - e), n =
|
|
25289
|
+
let e = dn(q.value / J.value * Y.value, 36, Y.value), t = Math.max(0, Y.value - e), n = re.value > 0 ? X.value / re.value * t : 0;
|
|
25291
25290
|
return {
|
|
25292
25291
|
width: `${e}px`,
|
|
25293
25292
|
transform: `translate3d(${dn(n, 0, t)}px, 0, 0)`
|
|
@@ -25696,14 +25695,14 @@ var hk = [
|
|
|
25696
25695
|
}
|
|
25697
25696
|
function Ar(e) {
|
|
25698
25697
|
let t = e.target;
|
|
25699
|
-
K.value = t.scrollTop,
|
|
25698
|
+
K.value = t.scrollTop, X.value = t.scrollLeft, q.value = t.clientWidth, J.value = t.scrollWidth, re.value = Qr(t), ie.value = $r(t) > 0, jr(), p("scroll", e);
|
|
25700
25699
|
}
|
|
25701
25700
|
function jr() {
|
|
25702
25701
|
Y.value = E.value?.clientWidth ?? 0;
|
|
25703
25702
|
}
|
|
25704
25703
|
function Mr() {
|
|
25705
25704
|
let e = C.value?.viewport;
|
|
25706
|
-
ne.value = e?.clientHeight ?? 0, q.value = e?.clientWidth ?? 0, J.value = e?.scrollWidth ?? 0,
|
|
25705
|
+
ne.value = e?.clientHeight ?? 0, q.value = e?.clientWidth ?? 0, J.value = e?.scrollWidth ?? 0, X.value = e?.scrollLeft ?? 0, re.value = e ? Qr(e) : 0, ie.value = e ? $r(e) > 0 : !1, jr();
|
|
25707
25706
|
}
|
|
25708
25707
|
function Nr() {
|
|
25709
25708
|
g(() => {
|
|
@@ -25865,16 +25864,16 @@ var hk = [
|
|
|
25865
25864
|
let t = E.value.getBoundingClientRect(), n = ti();
|
|
25866
25865
|
if (n <= 0) return;
|
|
25867
25866
|
let r = Y.value - n;
|
|
25868
|
-
ei(dn(e.clientX - t.left - r / 2, 0, n) / n * Math.max(1,
|
|
25867
|
+
ei(dn(e.clientX - t.left - r / 2, 0, n) / n * Math.max(1, re.value));
|
|
25869
25868
|
}
|
|
25870
25869
|
function ri(e) {
|
|
25871
25870
|
if (!Ht.value) return;
|
|
25872
25871
|
C.value?.stop(), jr();
|
|
25873
25872
|
let t = ti();
|
|
25874
25873
|
t <= 0 || !cn() || (e.preventDefault(), e.stopPropagation(), ke = {
|
|
25875
|
-
maxScrollLeft:
|
|
25874
|
+
maxScrollLeft: re.value,
|
|
25876
25875
|
startClientX: e.clientX,
|
|
25877
|
-
startScrollLeft:
|
|
25876
|
+
startScrollLeft: X.value,
|
|
25878
25877
|
thumbTravel: t
|
|
25879
25878
|
}, se.value = !0, Ae = document.documentElement.style.cursor, je = document.documentElement.style.userSelect, document.documentElement.style.cursor = "grabbing", document.documentElement.style.userSelect = "none", window.addEventListener("pointermove", ii), window.addEventListener("pointerup", ai), window.addEventListener("pointercancel", ai));
|
|
25880
25879
|
}
|
|
@@ -26546,7 +26545,7 @@ var hk = [
|
|
|
26546
26545
|
keyboard: !1,
|
|
26547
26546
|
smoothTouchpad: !1,
|
|
26548
26547
|
respectReducedMotion: !0
|
|
26549
|
-
})), S = `bing-tree-select-${++d}`, C = `${S}-listbox`, w = O(null), E = O(null), D = O(null), j = O(null), M = O(null), N = O(null), F = O(null), I = O(null), R = O(null), z = O(!1), B = O(!1), H = O(!1), W = O(void 0), K = O(!1), ne = O(!1), q = O(-1), J = O("right"), Y = O(""),
|
|
26548
|
+
})), S = `bing-tree-select-${++d}`, C = `${S}-listbox`, w = O(null), E = O(null), D = O(null), j = O(null), M = O(null), N = O(null), F = O(null), I = O(null), R = O(null), z = O(!1), B = O(!1), H = O(!1), W = O(void 0), K = O(!1), ne = O(!1), q = O(-1), J = O("right"), Y = O(""), X = O([]), re = O(0), ie = O(0), ae = O(0), oe = O({
|
|
26550
26549
|
align: "start",
|
|
26551
26550
|
left: 0,
|
|
26552
26551
|
minHeight: 180,
|
|
@@ -26554,9 +26553,9 @@ var hk = [
|
|
|
26554
26553
|
placement: "bottom",
|
|
26555
26554
|
top: 0,
|
|
26556
26555
|
width: 340
|
|
26557
|
-
}), Z, se = !1, ce = !1, le = !1, ue = 0, de = 0, fe = 0, pe = 0, me, he, ge, _e = 0, ve, ye, be = !1, xe = i(() => typeof f.panelMinHeight == "number" ? `${f.panelMinHeight}px` : f.panelMinHeight), Se = i(() => typeof f.panelMaxHeight == "number" ? `${f.panelMaxHeight}px` : f.panelMaxHeight), Ce = i(() => Math.max(0, Math.floor(f.virtualThreshold))), we = i(() => Math.max(40, Math.floor(f.virtualItemHeight))), Te = i(() => Math.max(0, Math.floor(f.virtualOverscan))), Ee = i(() => Vt(f.options)), De = i(() => new Set(
|
|
26556
|
+
}), Z, se = !1, ce = !1, le = !1, ue = 0, de = 0, fe = 0, pe = 0, me, he, ge, _e = 0, ve, ye, be = !1, xe = i(() => typeof f.panelMinHeight == "number" ? `${f.panelMinHeight}px` : f.panelMinHeight), Se = i(() => typeof f.panelMaxHeight == "number" ? `${f.panelMaxHeight}px` : f.panelMaxHeight), Ce = i(() => Math.max(0, Math.floor(f.virtualThreshold))), we = i(() => Math.max(40, Math.floor(f.virtualItemHeight))), Te = i(() => Math.max(0, Math.floor(f.virtualOverscan))), Ee = i(() => Vt(f.options)), De = i(() => new Set(X.value)), Oe = i(() => Ft(Y.value)), ke = i(() => Ae.value && Oe.value.length > 0), Ae = i(() => f.searchable === !0 ? !0 : f.searchable === !1 ? !1 : Ee.value.flat.length > 8), je = i(() => f.searchPlaceholder.includes("/") ? f.searchPlaceholder : `${f.searchPlaceholder} (/)`), Me = i(() => ke.value ? Ut(Ee.value.roots, Oe.value) : Ht(Ee.value.roots)), Ne = i(() => f.virtual === !0 ? Me.value.length > 0 : f.virtual === !1 ? !1 : Me.value.length > Ce.value), Pe = i(() => Ne.value ? Me.value.length * we.value : 0), Fe = i(() => Ne.value ? gn(Math.floor(ie.value / we.value) - Te.value, 0, Me.value.length) : 0), Re = i(() => {
|
|
26558
26557
|
if (!Ne.value) return Me.value.length;
|
|
26559
|
-
let e = ae.value ||
|
|
26558
|
+
let e = ae.value || re.value || we.value;
|
|
26560
26559
|
return gn(Math.ceil((ie.value + e) / we.value) + Te.value, Fe.value, Me.value.length);
|
|
26561
26560
|
}), ze = i(() => Ne.value ? Me.value.slice(Fe.value, Re.value) : Me.value), Be = i(() => Fe.value * we.value), Ve = i(() => {
|
|
26562
26561
|
if (Ne.value) return {
|
|
@@ -27035,7 +27034,7 @@ var hk = [
|
|
|
27035
27034
|
function er() {
|
|
27036
27035
|
if (!jt() || !w.value || !j.value) return;
|
|
27037
27036
|
let e = Number.isFinite(f.panelGap) ? Math.max(0, f.panelGap) : 10, t = w.value.getBoundingClientRect(), n = window.innerWidth, r = window.innerHeight, i = hn(), a = Math.min(mn(), i), o = j.value.querySelector(".bing-tree-select__panel-body"), s = M.value?.getBoundingClientRect().height ?? 0, c = Ne.value ? Pe.value + BA : o?.scrollHeight ?? 0, l = Math.max(we.value, Me.value.length * we.value), u = s + (c || l) + 2, d = vn(t, gn(u, a, i), r, 12, e), p = f.panelAlign, m = yn(d, t, r, 12, e), h = Math.max(0, Math.min(i, m || i)), g = Math.min(a, h), _ = gn(u, g, h), v = Math.max(0, _ - s - 2), y = t.width || w.value.offsetWidth || 340, b = Math.max(0, n - 24), x = Math.min(Math.max(y, zA), b), S = bn(d, p, t, x, n, 12, e), C = xn(d, p, t, _, r, 12, e);
|
|
27038
|
-
|
|
27037
|
+
re.value = v, ae.value = v, oe.value = {
|
|
27039
27038
|
align: p,
|
|
27040
27039
|
left: S,
|
|
27041
27040
|
minHeight: g,
|
|
@@ -27053,10 +27052,10 @@ var hk = [
|
|
|
27053
27052
|
function rr() {
|
|
27054
27053
|
let e = F.value?.viewport;
|
|
27055
27054
|
if (!e) {
|
|
27056
|
-
ae.value =
|
|
27055
|
+
ae.value = re.value;
|
|
27057
27056
|
return;
|
|
27058
27057
|
}
|
|
27059
|
-
ie.value = e.scrollTop, ae.value = e.clientHeight ||
|
|
27058
|
+
ie.value = e.scrollTop, ae.value = e.clientHeight || re.value;
|
|
27060
27059
|
}
|
|
27061
27060
|
function ir(e) {
|
|
27062
27061
|
Pn(e);
|
|
@@ -27071,13 +27070,13 @@ var hk = [
|
|
|
27071
27070
|
ie.value = 0;
|
|
27072
27071
|
return;
|
|
27073
27072
|
}
|
|
27074
|
-
let e = ae.value ||
|
|
27073
|
+
let e = ae.value || re.value || we.value, t = Math.max(0, Pe.value - e);
|
|
27075
27074
|
ie.value <= t || (F.value?.scrollTo(t), ie.value = t);
|
|
27076
27075
|
}
|
|
27077
27076
|
function sr(e) {
|
|
27078
27077
|
let t = e.target;
|
|
27079
27078
|
if (t) {
|
|
27080
|
-
if (ie.value = t.scrollTop, ae.value = t.clientHeight ||
|
|
27079
|
+
if (ie.value = t.scrollTop, ae.value = t.clientHeight || re.value, K.value) {
|
|
27081
27080
|
ei(), jn();
|
|
27082
27081
|
return;
|
|
27083
27082
|
}
|
|
@@ -27325,11 +27324,11 @@ var hk = [
|
|
|
27325
27324
|
return {
|
|
27326
27325
|
value: e.value,
|
|
27327
27326
|
node: e.node,
|
|
27328
|
-
expandedValues: [...
|
|
27327
|
+
expandedValues: [...X.value]
|
|
27329
27328
|
};
|
|
27330
27329
|
}
|
|
27331
27330
|
function Nr(e, t) {
|
|
27332
|
-
e.children.length === 0 || ke.value || t !== De.value.has(e.value) && (F.value?.stop(),
|
|
27331
|
+
e.children.length === 0 || ke.value || t !== De.value.has(e.value) && (F.value?.stop(), X.value = t ? Pt([...X.value, e.value]) : X.value.filter((t) => !Nt(t, e.value)), p(t ? "expand" : "collapse", Mr(e)), g(() => {
|
|
27333
27332
|
or(), er(), ar();
|
|
27334
27333
|
}));
|
|
27335
27334
|
}
|
|
@@ -27337,12 +27336,12 @@ var hk = [
|
|
|
27337
27336
|
Nr(e, !De.value.has(e.value));
|
|
27338
27337
|
}
|
|
27339
27338
|
function Fr() {
|
|
27340
|
-
ke.value || !at.value || (F.value?.stop(),
|
|
27339
|
+
ke.value || !at.value || (F.value?.stop(), X.value = [...Ee.value.expandableValues], g(() => {
|
|
27341
27340
|
or(), er(), ar();
|
|
27342
27341
|
}));
|
|
27343
27342
|
}
|
|
27344
27343
|
function Ir() {
|
|
27345
|
-
ke.value || !at.value || (F.value?.stop(),
|
|
27344
|
+
ke.value || !at.value || (F.value?.stop(), X.value = [], g(() => {
|
|
27346
27345
|
or(), er(), ar();
|
|
27347
27346
|
}));
|
|
27348
27347
|
}
|
|
@@ -27442,7 +27441,7 @@ var hk = [
|
|
|
27442
27441
|
if (Ne.value) {
|
|
27443
27442
|
let e = F.value?.viewport, t = Me.value.findIndex((e) => Nt(e.value, W.value));
|
|
27444
27443
|
if (!e || t < 0) return;
|
|
27445
|
-
let n = we.value, r = t * n, i = r + n, a = e.clientHeight ||
|
|
27444
|
+
let n = we.value, r = t * n, i = r + n, a = e.clientHeight || re.value, o = e.scrollTop, s = o + a, c = o;
|
|
27446
27445
|
r < o ? c = r : i > s && (c = i - a), Math.abs(c - o) > .5 && (Mn(), F.value?.scrollTo(c)), rr(), F.value?.update();
|
|
27447
27446
|
return;
|
|
27448
27447
|
}
|
|
@@ -27595,14 +27594,14 @@ var hk = [
|
|
|
27595
27594
|
F.value?.stop();
|
|
27596
27595
|
let e = new Set(Ee.value.expandableValues);
|
|
27597
27596
|
if (!be) {
|
|
27598
|
-
|
|
27597
|
+
X.value = f.defaultExpandAll ? [...Ee.value.expandableValues] : f.defaultExpandedValues.filter((t) => e.has(t)), be = !0;
|
|
27599
27598
|
return;
|
|
27600
27599
|
}
|
|
27601
27600
|
if (f.defaultExpandAll) {
|
|
27602
|
-
|
|
27601
|
+
X.value = [...Ee.value.expandableValues];
|
|
27603
27602
|
return;
|
|
27604
27603
|
}
|
|
27605
|
-
|
|
27604
|
+
X.value = X.value.filter((t) => e.has(t));
|
|
27606
27605
|
}, {
|
|
27607
27606
|
deep: !0,
|
|
27608
27607
|
immediate: !0
|
|
@@ -27813,7 +27812,7 @@ var hk = [
|
|
|
27813
27812
|
ref_key: "panelScrollRef",
|
|
27814
27813
|
ref: F,
|
|
27815
27814
|
class: "bing-tree-select__panel-scroll",
|
|
27816
|
-
height:
|
|
27815
|
+
height: re.value,
|
|
27817
27816
|
smooth: x.value,
|
|
27818
27817
|
focusable: !1,
|
|
27819
27818
|
always: "",
|