@prefabs.tech/vue3-ui 0.27.0 → 0.29.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.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as N, ref as
|
|
1
|
+
import { defineComponent as N, ref as P, useSlots as ke, createElementBlock as h, createCommentVNode as C, unref as G, openBlock as c, normalizeClass as A, Fragment as j, renderList as se, createElementVNode as p, createVNode as ue, createBlock as I, resolveDynamicComponent as de, toDisplayString as T, Transition as vn, withCtx as H, computed as W, renderSlot as B, createTextVNode as K, onMounted as et, nextTick as ze, getCurrentInstance as Ht, watch as Ve, getCurrentScope as zn, onScopeDispose as Rn, hasInjectionContext as mn, inject as Zn, toValue as ye, shallowRef as Nt, watchEffect as bn, mergeProps as te, onBeforeUnmount as Cn, normalizeStyle as Ne, createSlots as Hn, withDirectives as Gt, vShow as qt, resolveComponent as yn, h as Qt, withModifiers as Gn } from "vue";
|
|
2
2
|
const qn = ["aria-orientation"], Wn = ["data-expanded"], Yn = ["aria-expanded", "onClick"], Un = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "pane",
|
|
5
5
|
role: "region"
|
|
6
6
|
}, Xn = {
|
|
7
7
|
name: "Accordion"
|
|
8
|
-
},
|
|
8
|
+
}, Za = /* @__PURE__ */ N({
|
|
9
9
|
...Xn,
|
|
10
10
|
props: {
|
|
11
11
|
activeIcon: {
|
|
@@ -33,7 +33,7 @@ const qn = ["aria-orientation"], Wn = ["data-expanded"], Yn = ["aria-expanded",
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(e) {
|
|
36
|
-
const t = e, o =
|
|
36
|
+
const t = e, o = P(t.defaultIndex), n = (l) => {
|
|
37
37
|
!t.canSelfCollapse || o.value !== l ? o.value = l : o.value = -1;
|
|
38
38
|
}, i = ke(), a = i?.default ? i.default().filter((l) => l?.props?.title) : null;
|
|
39
39
|
return (l, r) => G(a) ? (c(), h("div", {
|
|
@@ -59,7 +59,7 @@ const qn = ["aria-orientation"], Wn = ["data-expanded"], Yn = ["aria-expanded",
|
|
|
59
59
|
typeof s?.props?.icon == "string" ? s.props.icon : "icon"
|
|
60
60
|
)
|
|
61
61
|
}, null, 8, ["class"])),
|
|
62
|
-
p("span", null,
|
|
62
|
+
p("span", null, T(s?.props?.title), 1),
|
|
63
63
|
o.value === u ? (c(), I(de(typeof e.activeIcon == "string" ? "i" : e.activeIcon), {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: A(typeof e.activeIcon == "string" ? e.activeIcon : "icon")
|
|
@@ -70,7 +70,7 @@ const qn = ["aria-orientation"], Wn = ["data-expanded"], Yn = ["aria-expanded",
|
|
|
70
70
|
], 8, Yn)
|
|
71
71
|
]),
|
|
72
72
|
ue(vn, { name: "expand" }, {
|
|
73
|
-
default:
|
|
73
|
+
default: H(() => [
|
|
74
74
|
u === o.value ? (c(), h("div", Un, [
|
|
75
75
|
(c(), I(de(s)))
|
|
76
76
|
])) : C("", !0)
|
|
@@ -132,7 +132,7 @@ const qn = ["aria-orientation"], Wn = ["data-expanded"], Yn = ["aria-expanded",
|
|
|
132
132
|
}, null, 2)
|
|
133
133
|
])
|
|
134
134
|
])) : C("", !0),
|
|
135
|
-
e.label ? (c(), h("div", Qn,
|
|
135
|
+
e.label ? (c(), h("div", Qn, T(e.label), 1)) : C("", !0),
|
|
136
136
|
e.iconRight || G(o).iconRight ? (c(), h("span", Jn, [
|
|
137
137
|
B(i.$slots, "iconRight", {}, () => [
|
|
138
138
|
p("i", {
|
|
@@ -250,7 +250,7 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
250
250
|
title: e.title,
|
|
251
251
|
onClick: f[0] || (f[0] = (d) => !e.to && s())
|
|
252
252
|
}, {
|
|
253
|
-
default:
|
|
253
|
+
default: H(() => [
|
|
254
254
|
e.iconLeft || G(i).iconLeft ? (c(), h("span", ao, [
|
|
255
255
|
B(u.$slots, "iconLeft", {}, () => [
|
|
256
256
|
p("i", {
|
|
@@ -260,7 +260,7 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
260
260
|
])) : C("", !0),
|
|
261
261
|
u.$slots.label || e.label ? (c(), h("div", lo, [
|
|
262
262
|
B(u.$slots, "label", {}, () => [
|
|
263
|
-
p("span", null,
|
|
263
|
+
p("span", null, T(e.label), 1)
|
|
264
264
|
])
|
|
265
265
|
])) : C("", !0),
|
|
266
266
|
e.iconRight || G(i).iconRight ? (c(), h("span", ro, [
|
|
@@ -298,7 +298,7 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
298
298
|
return (t, o) => (c(), h("div", uo, [
|
|
299
299
|
t.$slots.header || e.title ? (c(), h("header", co, [
|
|
300
300
|
B(t.$slots, "header", {}, () => [
|
|
301
|
-
p("h3", fo,
|
|
301
|
+
p("h3", fo, T(e.title), 1)
|
|
302
302
|
])
|
|
303
303
|
])) : C("", !0),
|
|
304
304
|
p("div", ho, [
|
|
@@ -311,7 +311,7 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
311
311
|
}
|
|
312
312
|
}), mo = { class: "label" }, bo = { class: "value" }, Co = {
|
|
313
313
|
name: "DataElement"
|
|
314
|
-
},
|
|
314
|
+
}, Ha = /* @__PURE__ */ N({
|
|
315
315
|
...Co,
|
|
316
316
|
props: {
|
|
317
317
|
caption: {
|
|
@@ -343,12 +343,12 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
343
343
|
}, [
|
|
344
344
|
p("div", mo, [
|
|
345
345
|
B(t.$slots, "caption", {}, () => [
|
|
346
|
-
K(
|
|
346
|
+
K(T(e.caption), 1)
|
|
347
347
|
])
|
|
348
348
|
]),
|
|
349
349
|
p("div", bo, [
|
|
350
350
|
B(t.$slots, "value", {}, () => [
|
|
351
|
-
K(
|
|
351
|
+
K(T(e.value), 1)
|
|
352
352
|
])
|
|
353
353
|
])
|
|
354
354
|
], 2));
|
|
@@ -379,7 +379,7 @@ const Ct = /* @__PURE__ */ bt(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
379
379
|
onClick: o[0] || (o[0] = (n) => t.$emit("click"))
|
|
380
380
|
}, [
|
|
381
381
|
p("div", wo, [
|
|
382
|
-
p("span", null,
|
|
382
|
+
p("span", null, T(e.label), 1)
|
|
383
383
|
]),
|
|
384
384
|
e.loading ? (c(), I(Ct, { key: 0 })) : C("", !0)
|
|
385
385
|
], 10, yo));
|
|
@@ -391,15 +391,15 @@ function xo(e, t, o, n, i, a) {
|
|
|
391
391
|
return c(), h("div", Eo);
|
|
392
392
|
}
|
|
393
393
|
const Ga = /* @__PURE__ */ bt(Do, [["render", xo], ["__scopeId", "data-v-bf8003ec"]]);
|
|
394
|
-
function
|
|
394
|
+
function Oo(e) {
|
|
395
395
|
return zn() ? (Rn(e), !0) : !1;
|
|
396
396
|
}
|
|
397
|
-
const kt = /* @__PURE__ */ new WeakMap(),
|
|
397
|
+
const kt = /* @__PURE__ */ new WeakMap(), To = (...e) => {
|
|
398
398
|
var t;
|
|
399
|
-
const o = e[0], n = (t =
|
|
399
|
+
const o = e[0], n = (t = Ht()) == null ? void 0 : t.proxy;
|
|
400
400
|
if (n == null && !mn())
|
|
401
401
|
throw new Error("injectLocal must be called in setup");
|
|
402
|
-
return n && kt.has(n) && o in kt.get(n) ? kt.get(n)[o] :
|
|
402
|
+
return n && kt.has(n) && o in kt.get(n) ? kt.get(n)[o] : Zn(...e);
|
|
403
403
|
}, wn = typeof window < "u" && typeof document < "u";
|
|
404
404
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
405
405
|
const Lo = Object.prototype.toString, Mo = (e) => Lo.call(e) === "[object Object]", Ie = () => {
|
|
@@ -412,15 +412,15 @@ function Jt(e) {
|
|
|
412
412
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
413
413
|
}
|
|
414
414
|
function Ao(e) {
|
|
415
|
-
return
|
|
415
|
+
return Ht();
|
|
416
416
|
}
|
|
417
417
|
function $t(e) {
|
|
418
418
|
return Array.isArray(e) ? e : [e];
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function _o(e, t = !0, o) {
|
|
421
421
|
Ao() ? et(e, o) : t ? e() : ze(e);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Po(e, t, o) {
|
|
424
424
|
return Ve(
|
|
425
425
|
e,
|
|
426
426
|
t,
|
|
@@ -442,7 +442,7 @@ function xe(...e) {
|
|
|
442
442
|
}, n = (r, s, u, f) => (r.addEventListener(s, u, f), () => r.removeEventListener(s, u, f)), i = W(() => {
|
|
443
443
|
const r = $t(ye(e[0])).filter((s) => s != null);
|
|
444
444
|
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
445
|
-
}), a =
|
|
445
|
+
}), a = Po(
|
|
446
446
|
() => {
|
|
447
447
|
var r, s;
|
|
448
448
|
return [
|
|
@@ -469,7 +469,7 @@ function xe(...e) {
|
|
|
469
469
|
), l = () => {
|
|
470
470
|
a(), o();
|
|
471
471
|
};
|
|
472
|
-
return
|
|
472
|
+
return Oo(o), l;
|
|
473
473
|
}
|
|
474
474
|
let en = !1;
|
|
475
475
|
function Wt(e, t, o = {}) {
|
|
@@ -538,7 +538,7 @@ function Wt(e, t, o = {}) {
|
|
|
538
538
|
} : M;
|
|
539
539
|
}
|
|
540
540
|
function No() {
|
|
541
|
-
const e = Nt(!1), t =
|
|
541
|
+
const e = Nt(!1), t = Ht();
|
|
542
542
|
return t && et(() => {
|
|
543
543
|
e.value = !0;
|
|
544
544
|
}, t), e;
|
|
@@ -549,11 +549,11 @@ function Fo(e) {
|
|
|
549
549
|
}
|
|
550
550
|
const Vo = Symbol("vueuse-ssr-width");
|
|
551
551
|
function jo() {
|
|
552
|
-
const e = mn() ?
|
|
552
|
+
const e = mn() ? To(Vo, null) : null;
|
|
553
553
|
return typeof e == "number" ? e : void 0;
|
|
554
554
|
}
|
|
555
555
|
function zo(e, t = {}) {
|
|
556
|
-
const { window: o = yt, ssrWidth: n = jo() } = t, i = Fo(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), a =
|
|
556
|
+
const { window: o = yt, ssrWidth: n = jo() } = t, i = Fo(() => o && "matchMedia" in o && typeof o.matchMedia == "function"), a = P(typeof n == "number"), l = Nt(), r = Nt(!1), s = (u) => {
|
|
557
557
|
r.value = u.matches;
|
|
558
558
|
};
|
|
559
559
|
return bn(() => {
|
|
@@ -578,7 +578,7 @@ function wt(e = {}) {
|
|
|
578
578
|
listenOrientation: i = !0,
|
|
579
579
|
includeScrollbar: a = !0,
|
|
580
580
|
type: l = "inner"
|
|
581
|
-
} = e, r =
|
|
581
|
+
} = e, r = P(o), s = P(n), u = () => {
|
|
582
582
|
if (t)
|
|
583
583
|
if (l === "outer")
|
|
584
584
|
r.value = t.outerWidth, s.value = t.outerHeight;
|
|
@@ -587,7 +587,7 @@ function wt(e = {}) {
|
|
|
587
587
|
r.value = Math.round(d * $), s.value = Math.round(m * $);
|
|
588
588
|
} else a ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
|
|
589
589
|
};
|
|
590
|
-
u(),
|
|
590
|
+
u(), _o(u);
|
|
591
591
|
const f = { passive: !0 };
|
|
592
592
|
if (xe("resize", u, f), t && l === "visual" && t.visualViewport && xe(t.visualViewport, "resize", u, f), i) {
|
|
593
593
|
const d = zo("(orientation: portrait)");
|
|
@@ -595,7 +595,7 @@ function wt(e = {}) {
|
|
|
595
595
|
}
|
|
596
596
|
return { width: r, height: s };
|
|
597
597
|
}
|
|
598
|
-
const Ro = { class: "dialog-header" },
|
|
598
|
+
const Ro = { class: "dialog-header" }, Zo = { class: "title" }, Ho = { class: "dialog-content" }, Go = { class: "dialog-footer" }, qo = {
|
|
599
599
|
name: "ConfirmationModal"
|
|
600
600
|
}, tn = /* @__PURE__ */ N({
|
|
601
601
|
...qo,
|
|
@@ -635,7 +635,7 @@ const Ro = { class: "dialog-header" }, Ho = { class: "title" }, Zo = { class: "d
|
|
|
635
635
|
},
|
|
636
636
|
emits: ["on:confirm", "on:close"],
|
|
637
637
|
setup(e, { emit: t }) {
|
|
638
|
-
const o = t, n = e, i =
|
|
638
|
+
const o = t, n = e, i = P(), a = P();
|
|
639
639
|
Wt(a, (s) => {
|
|
640
640
|
n.closable && n.dismissOnClickOut && r();
|
|
641
641
|
});
|
|
@@ -658,7 +658,7 @@ const Ro = { class: "dialog-header" }, Ho = { class: "title" }, Zo = { class: "d
|
|
|
658
658
|
}, [
|
|
659
659
|
p("div", Ro, [
|
|
660
660
|
B(s.$slots, "header", {}, () => [
|
|
661
|
-
p("span",
|
|
661
|
+
p("span", Zo, T(e.header), 1)
|
|
662
662
|
]),
|
|
663
663
|
e.closable ? B(s.$slots, "closeIcon", { key: 0 }, () => [
|
|
664
664
|
e.closable ? (c(), I(le, {
|
|
@@ -673,7 +673,7 @@ const Ro = { class: "dialog-header" }, Ho = { class: "title" }, Zo = { class: "d
|
|
|
673
673
|
}, null, 8, ["icon-left"])) : C("", !0)
|
|
674
674
|
]) : C("", !0)
|
|
675
675
|
]),
|
|
676
|
-
p("p",
|
|
676
|
+
p("p", Ho, [
|
|
677
677
|
B(s.$slots, "icon", {}, () => [
|
|
678
678
|
e.icon ? (c(), h("i", {
|
|
679
679
|
key: 0,
|
|
@@ -681,7 +681,7 @@ const Ro = { class: "dialog-header" }, Ho = { class: "title" }, Zo = { class: "d
|
|
|
681
681
|
}, null, 2)) : C("", !0)
|
|
682
682
|
]),
|
|
683
683
|
B(s.$slots, "message", {}, () => [
|
|
684
|
-
K(
|
|
684
|
+
K(T(e.message), 1)
|
|
685
685
|
])
|
|
686
686
|
]),
|
|
687
687
|
p("div", Go, [
|
|
@@ -768,7 +768,7 @@ const Ro = { class: "dialog-header" }, Ho = { class: "title" }, Zo = { class: "d
|
|
|
768
768
|
}, Qo = (e) => e === "sessionStorage" ? sessionStorage : localStorage;
|
|
769
769
|
let Dt = null;
|
|
770
770
|
function Jo(e, t) {
|
|
771
|
-
const o =
|
|
771
|
+
const o = P();
|
|
772
772
|
return new Promise((n) => {
|
|
773
773
|
Ve(
|
|
774
774
|
() => e,
|
|
@@ -801,7 +801,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
801
801
|
},
|
|
802
802
|
emits: ["onClickOutside"],
|
|
803
803
|
setup(e, { expose: t, emit: o }) {
|
|
804
|
-
const n = e, i = o, a = ke(), l =
|
|
804
|
+
const n = e, i = o, a = ke(), l = P(null), r = P(null), s = P(null), u = P(!1), f = P("bottom"), d = P({ top: "0", left: "0" }), m = P([]), { width: $, height: S } = wt(), M = W(() => !!a.content);
|
|
805
805
|
Cn(() => {
|
|
806
806
|
window.removeEventListener("scroll", E), window.removeEventListener("resize", E), m.value.forEach(({ element: b, listener: y }) => {
|
|
807
807
|
b.removeEventListener("scroll", y);
|
|
@@ -910,7 +910,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
910
910
|
},
|
|
911
911
|
emits: ["select"],
|
|
912
912
|
setup(e, { emit: t }) {
|
|
913
|
-
const o = e, n = t, i =
|
|
913
|
+
const o = e, n = t, i = P(), a = W(
|
|
914
914
|
() => o.menu.filter((r) => r.display !== !1)
|
|
915
915
|
), l = (r) => {
|
|
916
916
|
r.disabled || (n("select", r), i.value.isVisible = !1);
|
|
@@ -922,7 +922,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
922
922
|
position: "bottom",
|
|
923
923
|
tabindex: "0"
|
|
924
924
|
}, {
|
|
925
|
-
content:
|
|
925
|
+
content: H(() => [
|
|
926
926
|
p("ul", {
|
|
927
927
|
class: "dropdown-menu",
|
|
928
928
|
"aria-label": e.label + "dropdown menu",
|
|
@@ -945,19 +945,19 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
945
945
|
class: A(u.icon)
|
|
946
946
|
}, null, 2)
|
|
947
947
|
]),
|
|
948
|
-
K(" " +
|
|
948
|
+
K(" " + T(u.label), 1)
|
|
949
949
|
])
|
|
950
950
|
], 10, li))), 128))
|
|
951
951
|
], 8, ai)
|
|
952
952
|
]),
|
|
953
|
-
default:
|
|
953
|
+
default: H(() => [
|
|
954
954
|
p("div", {
|
|
955
955
|
"aria-label": (e.label ?? "") + " dropdown",
|
|
956
956
|
class: A([{ triggered: i.value?.isVisible }, "dropdown-menu-trigger"])
|
|
957
957
|
}, [
|
|
958
958
|
B(r.$slots, "default", {}, () => [
|
|
959
959
|
e.label ? (c(), h(j, { key: 0 }, [
|
|
960
|
-
p("span", null,
|
|
960
|
+
p("span", null, T(e.label), 1),
|
|
961
961
|
s[0] || (s[0] = p("svg", {
|
|
962
962
|
class: "dropdown-icon",
|
|
963
963
|
fill: "none",
|
|
@@ -1020,8 +1020,8 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1020
1020
|
},
|
|
1021
1021
|
setup(e) {
|
|
1022
1022
|
return (t, o) => (c(), h("p", ci, [
|
|
1023
|
-
K(
|
|
1024
|
-
p("span", di, "(" +
|
|
1023
|
+
K(T(e.error.message) + " ", 1),
|
|
1024
|
+
p("span", di, "(" + T(e.error.code) + ")", 1)
|
|
1025
1025
|
]));
|
|
1026
1026
|
}
|
|
1027
1027
|
}), hi = { class: "errors" }, pi = { key: 1 }, gi = {
|
|
@@ -1083,11 +1083,11 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1083
1083
|
"onOn:close": o[0] || (o[0] = (n) => t.$emit("on:closeArchive")),
|
|
1084
1084
|
"onOn:confirm": o[1] || (o[1] = (n) => t.$emit("on:confirmArchive"))
|
|
1085
1085
|
}, {
|
|
1086
|
-
header:
|
|
1087
|
-
K(
|
|
1086
|
+
header: H(() => [
|
|
1087
|
+
K(T(e.archiveConfirmationHeader), 1)
|
|
1088
1088
|
]),
|
|
1089
|
-
message:
|
|
1090
|
-
K(
|
|
1089
|
+
message: H(() => [
|
|
1090
|
+
K(T(e.archiveConfirmationMessage), 1)
|
|
1091
1091
|
]),
|
|
1092
1092
|
_: 1
|
|
1093
1093
|
})) : C("", !0),
|
|
@@ -1096,11 +1096,11 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1096
1096
|
"onOn:close": o[2] || (o[2] = (n) => t.$emit("on:closeDelete")),
|
|
1097
1097
|
"onOn:confirm": o[3] || (o[3] = (n) => t.$emit("on:confirmDelete"))
|
|
1098
1098
|
}, {
|
|
1099
|
-
header:
|
|
1100
|
-
K(
|
|
1099
|
+
header: H(() => [
|
|
1100
|
+
K(T(e.deleteConfirmationHeader), 1)
|
|
1101
1101
|
]),
|
|
1102
|
-
message:
|
|
1103
|
-
K(
|
|
1102
|
+
message: H(() => [
|
|
1103
|
+
K(T(e.deleteConfirmationMessage), 1)
|
|
1104
1104
|
]),
|
|
1105
1105
|
_: 1
|
|
1106
1106
|
})) : C("", !0)
|
|
@@ -1124,10 +1124,10 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1124
1124
|
}, xi = {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
class: "file-upload-details"
|
|
1127
|
-
},
|
|
1127
|
+
}, Oi = {
|
|
1128
1128
|
key: 0,
|
|
1129
1129
|
class: "uploaded-by"
|
|
1130
|
-
},
|
|
1130
|
+
}, Ti = {
|
|
1131
1131
|
key: 1,
|
|
1132
1132
|
class: "uploaded-at"
|
|
1133
1133
|
}, Li = {
|
|
@@ -1144,7 +1144,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1144
1144
|
class: "file-actions"
|
|
1145
1145
|
}, Ai = {
|
|
1146
1146
|
name: "FileCard"
|
|
1147
|
-
},
|
|
1147
|
+
}, _i = /* @__PURE__ */ N({
|
|
1148
1148
|
...Ai,
|
|
1149
1149
|
props: {
|
|
1150
1150
|
actionButtonsVisibility: {
|
|
@@ -1229,7 +1229,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1229
1229
|
"on:view"
|
|
1230
1230
|
],
|
|
1231
1231
|
setup(e, { emit: t }) {
|
|
1232
|
-
const o = e, n = t, i =
|
|
1232
|
+
const o = e, n = t, i = P(!1), a = P(!1), l = (f) => f.uploadedBy ? f.uploadedBy.givenName || f.uploadedBy.lastName ? `${f.uploadedBy.givenName || ""} ${f.uploadedBy.lastName || ""}` : f.uploadedBy.email : "—", r = (f) => {
|
|
1233
1233
|
switch (f) {
|
|
1234
1234
|
case "archive":
|
|
1235
1235
|
case "delete":
|
|
@@ -1245,7 +1245,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1245
1245
|
r("delete"), a.value = !1;
|
|
1246
1246
|
};
|
|
1247
1247
|
return (f, d) => (c(), I(vo, { class: "file-card" }, {
|
|
1248
|
-
default:
|
|
1248
|
+
default: H(() => [
|
|
1249
1249
|
p("div", Ci, [
|
|
1250
1250
|
e.showThumbnail || f.$slots.thumbnail ? (c(), h("div", yi, [
|
|
1251
1251
|
B(f.$slots, "thumbnail", {}, () => [
|
|
@@ -1268,17 +1268,17 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1268
1268
|
p("div", wi, [
|
|
1269
1269
|
p("div", Si, [
|
|
1270
1270
|
p("div", null, [
|
|
1271
|
-
e.visibilityDetail.originalFileName ? (c(), h("span", ki,
|
|
1272
|
-
e.file.size && e.visibilityDetail.size ? (c(), h("span", $i, " (" +
|
|
1271
|
+
e.visibilityDetail.originalFileName ? (c(), h("span", ki, T(e.file.originalFileName), 1)) : C("", !0),
|
|
1272
|
+
e.file.size && e.visibilityDetail.size ? (c(), h("span", $i, " (" + T(e.file.size) + ") ", 1)) : C("", !0)
|
|
1273
1273
|
]),
|
|
1274
1274
|
e.file.description && e.visibilityDetail.description ? (c(), h("div", Di, [
|
|
1275
|
-
p("span", null,
|
|
1275
|
+
p("span", null, T(e.file.description), 1),
|
|
1276
1276
|
e.allowEditDescription ? (c(), I(le, te({ key: 0 }, e.editDescriptionButtonProps, {
|
|
1277
1277
|
size: "small",
|
|
1278
1278
|
variant: "outlined",
|
|
1279
1279
|
onClick: d[0] || (d[0] = (m) => f.$emit("click:editDescription"))
|
|
1280
1280
|
}), {
|
|
1281
|
-
iconLeft:
|
|
1281
|
+
iconLeft: H(() => d[9] || (d[9] = [
|
|
1282
1282
|
p("svg", {
|
|
1283
1283
|
fill: "none",
|
|
1284
1284
|
width: "20",
|
|
@@ -1297,23 +1297,23 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1297
1297
|
]),
|
|
1298
1298
|
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy || e.visibilityDetail.lastDownloadedAt || e.visibilityDetail.downloadCount ? (c(), h("div", Ei, [
|
|
1299
1299
|
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy ? (c(), h("div", xi, [
|
|
1300
|
-
e.visibilityDetail.uploadedBy ? (c(), h("div",
|
|
1301
|
-
p("span", null,
|
|
1302
|
-
p("span", null,
|
|
1300
|
+
e.visibilityDetail.uploadedBy ? (c(), h("div", Oi, [
|
|
1301
|
+
p("span", null, T(e.messages?.uploadedByHeader || "Uploaded by"), 1),
|
|
1302
|
+
p("span", null, T(l(e.file)), 1)
|
|
1303
1303
|
])) : C("", !0),
|
|
1304
|
-
e.visibilityDetail.uploadedAt ? (c(), h("div",
|
|
1305
|
-
p("span", null,
|
|
1306
|
-
p("span", null,
|
|
1304
|
+
e.visibilityDetail.uploadedAt ? (c(), h("div", Ti, [
|
|
1305
|
+
p("span", null, T(e.messages?.uploadedAtHeader || "Uploaded at"), 1),
|
|
1306
|
+
p("span", null, T(G(Ko)(e.file.uploadedAt, e.locale)), 1)
|
|
1307
1307
|
])) : C("", !0)
|
|
1308
1308
|
])) : C("", !0),
|
|
1309
1309
|
e.visibilityDetail.downloadCount || e.visibilityDetail.lastDownloadedAt ? (c(), h("div", Li, [
|
|
1310
1310
|
e.visibilityDetail.downloadCount ? (c(), h("div", Mi, [
|
|
1311
|
-
p("span", null,
|
|
1312
|
-
p("span", null,
|
|
1311
|
+
p("span", null, T(e.messages?.downloadCountHeader || "Downloads:"), 1),
|
|
1312
|
+
p("span", null, T(e.file.downloadCount), 1)
|
|
1313
1313
|
])) : C("", !0),
|
|
1314
1314
|
e.visibilityDetail.lastDownloadedAt ? (c(), h("div", Bi, [
|
|
1315
|
-
p("span", null,
|
|
1316
|
-
p("span", null,
|
|
1315
|
+
p("span", null, T(e.messages?.lastDownloadedAtHeader || "Last download:"), 1),
|
|
1316
|
+
p("span", null, T(G(Xo)(Number(e.file.lastDownloadedAt), e.locale)), 1)
|
|
1317
1317
|
])) : C("", !0)
|
|
1318
1318
|
])) : C("", !0)
|
|
1319
1319
|
])) : C("", !0)
|
|
@@ -1325,7 +1325,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1325
1325
|
size: "small",
|
|
1326
1326
|
onClick: d[1] || (d[1] = (m) => i.value = !0)
|
|
1327
1327
|
}), {
|
|
1328
|
-
iconLeft:
|
|
1328
|
+
iconLeft: H(() => d[10] || (d[10] = [
|
|
1329
1329
|
p("svg", {
|
|
1330
1330
|
fill: "none",
|
|
1331
1331
|
viewBox: "0 0 24 24",
|
|
@@ -1347,7 +1347,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1347
1347
|
size: "small",
|
|
1348
1348
|
onClick: d[2] || (d[2] = (m) => a.value = !0)
|
|
1349
1349
|
}), {
|
|
1350
|
-
iconLeft:
|
|
1350
|
+
iconLeft: H(() => d[11] || (d[11] = [
|
|
1351
1351
|
p("svg", {
|
|
1352
1352
|
fill: "none",
|
|
1353
1353
|
viewBox: "0 0 24 24",
|
|
@@ -1369,7 +1369,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1369
1369
|
size: "small",
|
|
1370
1370
|
onClick: d[3] || (d[3] = (m) => r("download"))
|
|
1371
1371
|
}), {
|
|
1372
|
-
iconLeft:
|
|
1372
|
+
iconLeft: H(() => d[12] || (d[12] = [
|
|
1373
1373
|
p("svg", {
|
|
1374
1374
|
fill: "none",
|
|
1375
1375
|
viewBox: "0 0 24 24",
|
|
@@ -1392,7 +1392,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1392
1392
|
size: "small",
|
|
1393
1393
|
onClick: d[4] || (d[4] = (m) => r("share"))
|
|
1394
1394
|
}), {
|
|
1395
|
-
iconLeft:
|
|
1395
|
+
iconLeft: H(() => d[13] || (d[13] = [
|
|
1396
1396
|
p("svg", {
|
|
1397
1397
|
fill: "none",
|
|
1398
1398
|
viewBox: "0 0 24 24",
|
|
@@ -1413,7 +1413,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1413
1413
|
size: "small",
|
|
1414
1414
|
onClick: d[5] || (d[5] = (m) => r("view"))
|
|
1415
1415
|
}), {
|
|
1416
|
-
iconLeft:
|
|
1416
|
+
iconLeft: H(() => d[14] || (d[14] = [
|
|
1417
1417
|
p("svg", {
|
|
1418
1418
|
viewBox: "0 0 24 24",
|
|
1419
1419
|
fill: "none",
|
|
@@ -1454,7 +1454,7 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1454
1454
|
_: 3
|
|
1455
1455
|
}));
|
|
1456
1456
|
}
|
|
1457
|
-
}),
|
|
1457
|
+
}), Pi = { class: "file-list-wrapper" }, Ni = {
|
|
1458
1458
|
name: "FilesList"
|
|
1459
1459
|
}, Ua = /* @__PURE__ */ N({
|
|
1460
1460
|
...Ni,
|
|
@@ -1551,8 +1551,8 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1551
1551
|
break;
|
|
1552
1552
|
}
|
|
1553
1553
|
};
|
|
1554
|
-
return (i, a) => (c(), h("div",
|
|
1555
|
-
(c(!0), h(j, null, se(e.files, (l) => (c(), I(
|
|
1554
|
+
return (i, a) => (c(), h("div", Pi, [
|
|
1555
|
+
(c(!0), h(j, null, se(e.files, (l) => (c(), I(_i, {
|
|
1556
1556
|
key: l.originalFileName,
|
|
1557
1557
|
"action-buttons-visibility": e.actionButtonsVisibility,
|
|
1558
1558
|
"allow-edit-description": e.actionButtonsVisibility?.edit,
|
|
@@ -1573,10 +1573,10 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1573
1573
|
"onOn:download": (r) => n("download", l),
|
|
1574
1574
|
"onOn:share": (r) => n("share", l),
|
|
1575
1575
|
"onOn:view": (r) => n("view", l)
|
|
1576
|
-
},
|
|
1576
|
+
}, Hn({ _: 2 }, [
|
|
1577
1577
|
i.$slots.thumbnail ? {
|
|
1578
1578
|
name: "thumbnail",
|
|
1579
|
-
fn:
|
|
1579
|
+
fn: H(() => [
|
|
1580
1580
|
B(i.$slots, "thumbnail")
|
|
1581
1581
|
]),
|
|
1582
1582
|
key: "0"
|
|
@@ -1641,12 +1641,12 @@ const ei = ["aria-expanded", "aria-label"], ti = {
|
|
|
1641
1641
|
}), zi = {
|
|
1642
1642
|
name: "GridContainer"
|
|
1643
1643
|
}, Ri = { class: "grid-container" };
|
|
1644
|
-
function
|
|
1644
|
+
function Zi(e, t, o, n, i, a) {
|
|
1645
1645
|
return c(), h("div", Ri, [
|
|
1646
1646
|
B(e.$slots, "default")
|
|
1647
1647
|
]);
|
|
1648
1648
|
}
|
|
1649
|
-
const Ka = /* @__PURE__ */ bt(zi, [["render",
|
|
1649
|
+
const Ka = /* @__PURE__ */ bt(zi, [["render", Zi]]), Hi = {
|
|
1650
1650
|
key: 0,
|
|
1651
1651
|
class: "loading-page"
|
|
1652
1652
|
}, Gi = {
|
|
@@ -1660,7 +1660,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
},
|
|
1662
1662
|
setup(e) {
|
|
1663
|
-
return (t, o) => e.loading ? (c(), h("div",
|
|
1663
|
+
return (t, o) => e.loading ? (c(), h("div", Hi, [
|
|
1664
1664
|
ue(Ct, { class: "loading-icon" })
|
|
1665
1665
|
])) : C("", !0);
|
|
1666
1666
|
}
|
|
@@ -1693,7 +1693,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1693
1693
|
},
|
|
1694
1694
|
emits: ["close"],
|
|
1695
1695
|
setup(e, { emit: t }) {
|
|
1696
|
-
const o = t, n = ke(), i =
|
|
1696
|
+
const o = t, n = ke(), i = P(!0), a = () => {
|
|
1697
1697
|
i.value = !1, o("close");
|
|
1698
1698
|
};
|
|
1699
1699
|
return (l, r) => Gt((c(), h("div", {
|
|
@@ -1714,9 +1714,9 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1714
1714
|
Array.isArray(e.message) ? e.message.length ? (c(), h("ul", Yi, [
|
|
1715
1715
|
(c(!0), h(j, null, se(e.message, (s, u) => (c(), h("li", {
|
|
1716
1716
|
key: `message-${u}`
|
|
1717
|
-
},
|
|
1717
|
+
}, T(s), 1))), 128))
|
|
1718
1718
|
])) : C("", !0) : (c(), h(j, { key: 0 }, [
|
|
1719
|
-
K(
|
|
1719
|
+
K(T(e.message), 1)
|
|
1720
1720
|
], 64))
|
|
1721
1721
|
])
|
|
1722
1722
|
]),
|
|
@@ -1763,7 +1763,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1763
1763
|
},
|
|
1764
1764
|
emits: ["on:close"],
|
|
1765
1765
|
setup(e, { emit: t }) {
|
|
1766
|
-
const o =
|
|
1766
|
+
const o = P(), n = t, i = e, a = ke();
|
|
1767
1767
|
Wt(o, (r) => {
|
|
1768
1768
|
i.dismissOnClickOut && l();
|
|
1769
1769
|
});
|
|
@@ -1778,7 +1778,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1778
1778
|
}, [
|
|
1779
1779
|
p("div", Ki, [
|
|
1780
1780
|
B(r.$slots, "header", {}, () => [
|
|
1781
|
-
e.title ? (c(), h("span", Qi,
|
|
1781
|
+
e.title ? (c(), h("span", Qi, T(e.title), 1)) : C("", !0)
|
|
1782
1782
|
]),
|
|
1783
1783
|
(c(), h("svg", {
|
|
1784
1784
|
"aria-label": "close modal",
|
|
@@ -1806,10 +1806,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1806
1806
|
[qt, e.show]
|
|
1807
1807
|
]);
|
|
1808
1808
|
}
|
|
1809
|
-
}), n2 = ["data-centered"], o2 = {
|
|
1810
|
-
key: 0,
|
|
1811
|
-
class: "page-header"
|
|
1812
|
-
}, i2 = { class: "page-title-wrapper" }, a2 = { class: "title" }, l2 = {
|
|
1809
|
+
}), n2 = ["data-centered"], o2 = { class: "page-header" }, i2 = { class: "page-title-wrapper" }, a2 = { class: "title" }, l2 = {
|
|
1813
1810
|
key: 0,
|
|
1814
1811
|
class: "title-tag"
|
|
1815
1812
|
}, r2 = { key: 0 }, s2 = { class: "page-toolbar" }, u2 = { class: "page-content" }, c2 = {
|
|
@@ -1819,8 +1816,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1819
1816
|
props: {
|
|
1820
1817
|
centered: Boolean,
|
|
1821
1818
|
loading: Boolean,
|
|
1822
|
-
|
|
1823
|
-
subTitle: {
|
|
1819
|
+
subtitle: {
|
|
1824
1820
|
default: void 0,
|
|
1825
1821
|
required: !1,
|
|
1826
1822
|
type: String
|
|
@@ -1855,12 +1851,12 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1855
1851
|
class: "page",
|
|
1856
1852
|
"data-centered": e.centered
|
|
1857
1853
|
}, [
|
|
1858
|
-
|
|
1854
|
+
p("div", o2, [
|
|
1859
1855
|
p("div", i2, [
|
|
1860
1856
|
p("div", a2, [
|
|
1861
1857
|
e.title ? (c(), I(de(e.titleElement), { key: 0 }, {
|
|
1862
|
-
default:
|
|
1863
|
-
K(
|
|
1858
|
+
default: H(() => [
|
|
1859
|
+
K(T(e.title), 1)
|
|
1864
1860
|
]),
|
|
1865
1861
|
_: 1
|
|
1866
1862
|
})) : C("", !0),
|
|
@@ -1871,7 +1867,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1871
1867
|
])
|
|
1872
1868
|
]),
|
|
1873
1869
|
B(s.$slots, "subtitle", {}, () => [
|
|
1874
|
-
e.
|
|
1870
|
+
e.subtitle ? (c(), h("small", r2, T(e.subtitle), 1)) : C("", !0)
|
|
1875
1871
|
])
|
|
1876
1872
|
]),
|
|
1877
1873
|
p("div", s2, [
|
|
@@ -1892,7 +1888,7 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1892
1888
|
}), null, 16, ["icon-left", "onClick"]))), 128)) : C("", !0)
|
|
1893
1889
|
])
|
|
1894
1890
|
])
|
|
1895
|
-
])
|
|
1891
|
+
]),
|
|
1896
1892
|
p("div", u2, [
|
|
1897
1893
|
B(s.$slots, "default"),
|
|
1898
1894
|
ue(qi, { loading: e.loading }, null, 8, ["loading"])
|
|
@@ -1928,8 +1924,8 @@ const Ka = /* @__PURE__ */ bt(zi, [["render", Hi]]), Zi = {
|
|
|
1928
1924
|
ue(n, {
|
|
1929
1925
|
to: { name: i.route }
|
|
1930
1926
|
}, {
|
|
1931
|
-
default:
|
|
1932
|
-
K(
|
|
1927
|
+
default: H(() => [
|
|
1928
|
+
K(T(i.name), 1)
|
|
1933
1929
|
]),
|
|
1934
1930
|
_: 2
|
|
1935
1931
|
}, 1032, ["to"])
|
|
@@ -2026,7 +2022,7 @@ var $e = we(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = we(/E
|
|
|
2026
2022
|
function F(e, t, o) {
|
|
2027
2023
|
e.addEventListener(t, o, !$e && En);
|
|
2028
2024
|
}
|
|
2029
|
-
function
|
|
2025
|
+
function _(e, t, o) {
|
|
2030
2026
|
e.removeEventListener(t, o, !$e && En);
|
|
2031
2027
|
}
|
|
2032
2028
|
function ht(e, t) {
|
|
@@ -2129,17 +2125,17 @@ function Y(e, t, o, n, i) {
|
|
|
2129
2125
|
}
|
|
2130
2126
|
}
|
|
2131
2127
|
function rn(e, t, o) {
|
|
2132
|
-
for (var n =
|
|
2128
|
+
for (var n = Te(e, !0), i = Y(e)[t]; n; ) {
|
|
2133
2129
|
var a = Y(n)[o], l = void 0;
|
|
2134
2130
|
if (l = i >= a, !l) return n;
|
|
2135
2131
|
if (n === ve()) break;
|
|
2136
|
-
n =
|
|
2132
|
+
n = Te(n, !1);
|
|
2137
2133
|
}
|
|
2138
2134
|
return !1;
|
|
2139
2135
|
}
|
|
2140
2136
|
function Re(e, t, o, n) {
|
|
2141
2137
|
for (var i = 0, a = 0, l = e.children; a < l.length; ) {
|
|
2142
|
-
if (l[a].style.display !== "none" && l[a] !==
|
|
2138
|
+
if (l[a].style.display !== "none" && l[a] !== O.ghost && (n || l[a] !== O.dragged) && ge(l[a], o.draggable, e, !1)) {
|
|
2143
2139
|
if (i === t)
|
|
2144
2140
|
return l[a];
|
|
2145
2141
|
i++;
|
|
@@ -2149,7 +2145,7 @@ function Re(e, t, o, n) {
|
|
|
2149
2145
|
return null;
|
|
2150
2146
|
}
|
|
2151
2147
|
function Yt(e, t) {
|
|
2152
|
-
for (var o = e.lastElementChild; o && (o ===
|
|
2148
|
+
for (var o = e.lastElementChild; o && (o === O.ghost || x(o, "display") === "none" || t && !ht(o, t)); )
|
|
2153
2149
|
o = o.previousElementSibling;
|
|
2154
2150
|
return o || null;
|
|
2155
2151
|
}
|
|
@@ -2158,7 +2154,7 @@ function ce(e, t) {
|
|
|
2158
2154
|
if (!e || !e.parentNode)
|
|
2159
2155
|
return -1;
|
|
2160
2156
|
for (; e = e.previousElementSibling; )
|
|
2161
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
2157
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== O.clone && (!t || ht(e, t)) && o++;
|
|
2162
2158
|
return o;
|
|
2163
2159
|
}
|
|
2164
2160
|
function sn(e) {
|
|
@@ -2178,7 +2174,7 @@ function w2(e, t) {
|
|
|
2178
2174
|
}
|
|
2179
2175
|
return -1;
|
|
2180
2176
|
}
|
|
2181
|
-
function
|
|
2177
|
+
function Te(e, t) {
|
|
2182
2178
|
if (!e || !e.getBoundingClientRect) return ve();
|
|
2183
2179
|
var o = e, n = !1;
|
|
2184
2180
|
do
|
|
@@ -2203,7 +2199,7 @@ function Et(e, t) {
|
|
|
2203
2199
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2204
2200
|
}
|
|
2205
2201
|
var Xe;
|
|
2206
|
-
function
|
|
2202
|
+
function On(e, t) {
|
|
2207
2203
|
return function() {
|
|
2208
2204
|
if (!Xe) {
|
|
2209
2205
|
var o = arguments, n = this;
|
|
@@ -2216,7 +2212,7 @@ function Tn(e, t) {
|
|
|
2216
2212
|
function k2() {
|
|
2217
2213
|
clearTimeout(Xe), Xe = void 0;
|
|
2218
2214
|
}
|
|
2219
|
-
function
|
|
2215
|
+
function Tn(e, t, o) {
|
|
2220
2216
|
e.scrollLeft += t, e.scrollTop += o;
|
|
2221
2217
|
}
|
|
2222
2218
|
function Ln(e) {
|
|
@@ -2231,7 +2227,7 @@ function $2() {
|
|
|
2231
2227
|
if (e = [], !!this.options.animation) {
|
|
2232
2228
|
var n = [].slice.call(this.el.children);
|
|
2233
2229
|
n.forEach(function(i) {
|
|
2234
|
-
if (!(x(i, "display") === "none" || i ===
|
|
2230
|
+
if (!(x(i, "display") === "none" || i === O.ghost)) {
|
|
2235
2231
|
e.push({
|
|
2236
2232
|
target: i,
|
|
2237
2233
|
rect: Y(i)
|
|
@@ -2354,32 +2350,32 @@ function x2(e) {
|
|
|
2354
2350
|
o && o.dispatchEvent(M), D[E] && D[E].call(t, M);
|
|
2355
2351
|
}
|
|
2356
2352
|
}
|
|
2357
|
-
var
|
|
2358
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, a = m2(n,
|
|
2359
|
-
nt.pluginEvent.bind(
|
|
2353
|
+
var O2 = ["evt"], ne = function(t, o) {
|
|
2354
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, a = m2(n, O2);
|
|
2355
|
+
nt.pluginEvent.bind(O)(t, o, me({
|
|
2360
2356
|
dragEl: v,
|
|
2361
2357
|
parentEl: R,
|
|
2362
2358
|
ghostEl: L,
|
|
2363
2359
|
rootEl: z,
|
|
2364
2360
|
nextEl: Be,
|
|
2365
2361
|
lastDownEl: ut,
|
|
2366
|
-
cloneEl:
|
|
2367
|
-
cloneHidden:
|
|
2362
|
+
cloneEl: Z,
|
|
2363
|
+
cloneHidden: Oe,
|
|
2368
2364
|
dragStarted: qe,
|
|
2369
2365
|
putSortable: X,
|
|
2370
|
-
activeSortable:
|
|
2366
|
+
activeSortable: O.active,
|
|
2371
2367
|
originalEvent: i,
|
|
2372
2368
|
oldIndex: Fe,
|
|
2373
2369
|
oldDraggableIndex: Ke,
|
|
2374
2370
|
newIndex: ae,
|
|
2375
2371
|
newDraggableIndex: Ee,
|
|
2376
2372
|
hideGhostForTarget: An,
|
|
2377
|
-
unhideGhostForTarget:
|
|
2373
|
+
unhideGhostForTarget: _n,
|
|
2378
2374
|
cloneNowHidden: function() {
|
|
2379
|
-
|
|
2375
|
+
Oe = !0;
|
|
2380
2376
|
},
|
|
2381
2377
|
cloneNowShown: function() {
|
|
2382
|
-
|
|
2378
|
+
Oe = !1;
|
|
2383
2379
|
},
|
|
2384
2380
|
dispatchSortableEvent: function(r) {
|
|
2385
2381
|
ee({
|
|
@@ -2393,7 +2389,7 @@ var T2 = ["evt"], ne = function(t, o) {
|
|
|
2393
2389
|
function ee(e) {
|
|
2394
2390
|
x2(me({
|
|
2395
2391
|
putSortable: X,
|
|
2396
|
-
cloneEl:
|
|
2392
|
+
cloneEl: Z,
|
|
2397
2393
|
targetEl: v,
|
|
2398
2394
|
rootEl: z,
|
|
2399
2395
|
oldIndex: Fe,
|
|
@@ -2402,7 +2398,7 @@ function ee(e) {
|
|
|
2402
2398
|
newDraggableIndex: Ee
|
|
2403
2399
|
}, e));
|
|
2404
2400
|
}
|
|
2405
|
-
var v, R, L, z, Be, ut,
|
|
2401
|
+
var v, R, L, z, Be, ut, Z, Oe, Fe, ae, Ke, Ee, it, X, Pe = !1, pt = !1, gt = [], Le, he, Ot, Tt, un, cn, qe, _e, Qe, Je = !1, at = !1, ct, Q, Lt = [], Ft = !1, vt = [], St = typeof document < "u", lt = Dn, dn = tt || $e ? "cssFloat" : "float", T2 = St && !C2 && !Dn && "draggable" in document.createElement("div"), Mn = function() {
|
|
2406
2402
|
if (St) {
|
|
2407
2403
|
if ($e)
|
|
2408
2404
|
return !1;
|
|
@@ -2455,7 +2451,7 @@ var v, R, L, z, Be, ut, H, Te, Fe, ae, Ke, Ee, it, X, _e = !1, pt = !1, gt = [],
|
|
|
2455
2451
|
}), n.name = i.name, n.checkPull = o(i.pull, !0), n.checkPut = o(i.put), n.revertClone = i.revertClone, t.group = n;
|
|
2456
2452
|
}, An = function() {
|
|
2457
2453
|
!Mn && L && x(L, "display", "none");
|
|
2458
|
-
},
|
|
2454
|
+
}, _n = function() {
|
|
2459
2455
|
!Mn && L && x(L, "display", "");
|
|
2460
2456
|
};
|
|
2461
2457
|
St && document.addEventListener("click", function(e) {
|
|
@@ -2476,7 +2472,7 @@ var Me = function(t) {
|
|
|
2476
2472
|
}, B2 = function(t) {
|
|
2477
2473
|
v && v.parentNode[re]._isOutsideThisEl(t.target);
|
|
2478
2474
|
};
|
|
2479
|
-
function
|
|
2475
|
+
function O(e, t) {
|
|
2480
2476
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
2481
2477
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
2482
2478
|
this.el = e, this.options = t = Se({}, t), e[re] = this;
|
|
@@ -2522,7 +2518,7 @@ function T(e, t) {
|
|
|
2522
2518
|
x: 0,
|
|
2523
2519
|
y: 0
|
|
2524
2520
|
},
|
|
2525
|
-
supportPointer:
|
|
2521
|
+
supportPointer: O.supportPointer !== !1 && "PointerEvent" in window && !Ue,
|
|
2526
2522
|
emptyInsertThreshold: 5
|
|
2527
2523
|
};
|
|
2528
2524
|
nt.initializePlugins(this, e, o);
|
|
@@ -2531,13 +2527,13 @@ function T(e, t) {
|
|
|
2531
2527
|
In(t);
|
|
2532
2528
|
for (var i in this)
|
|
2533
2529
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2534
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
2530
|
+
this.nativeDraggable = t.forceFallback ? !1 : T2, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? F(e, "pointerdown", this._onTapStart) : (F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart)), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), gt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Se(this, $2());
|
|
2535
2531
|
}
|
|
2536
|
-
|
|
2532
|
+
O.prototype = /** @lends Sortable.prototype */
|
|
2537
2533
|
{
|
|
2538
|
-
constructor:
|
|
2534
|
+
constructor: O,
|
|
2539
2535
|
_isOutsideThisEl: function(t) {
|
|
2540
|
-
!this.el.contains(t) && t !== this.el && (
|
|
2536
|
+
!this.el.contains(t) && t !== this.el && (_e = null);
|
|
2541
2537
|
},
|
|
2542
2538
|
_getDirection: function(t, o) {
|
|
2543
2539
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, o, v) : this.options.direction;
|
|
@@ -2584,14 +2580,14 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2584
2580
|
var i = this, a = i.el, l = i.options, r = a.ownerDocument, s;
|
|
2585
2581
|
if (n && !v && n.parentNode === a) {
|
|
2586
2582
|
var u = Y(n);
|
|
2587
|
-
if (z = a, v = n, R = v.parentNode, Be = v.nextSibling, ut = n, it = l.group,
|
|
2583
|
+
if (z = a, v = n, R = v.parentNode, Be = v.nextSibling, ut = n, it = l.group, O.dragged = v, Le = {
|
|
2588
2584
|
target: v,
|
|
2589
2585
|
clientX: (o || t).clientX,
|
|
2590
2586
|
clientY: (o || t).clientY
|
|
2591
2587
|
}, un = Le.clientX - u.left, cn = Le.clientY - u.top, this._lastX = (o || t).clientX, this._lastY = (o || t).clientY, v.style["will-change"] = "all", s = function() {
|
|
2592
2588
|
if (ne("delayEnded", i, {
|
|
2593
2589
|
evt: t
|
|
2594
|
-
}),
|
|
2590
|
+
}), O.eventCanceled) {
|
|
2595
2591
|
i._onDrop();
|
|
2596
2592
|
return;
|
|
2597
2593
|
}
|
|
@@ -2605,7 +2601,7 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2605
2601
|
}), F(r, "dragover", Me), F(r, "mousemove", Me), F(r, "touchmove", Me), F(r, "mouseup", i._onDrop), F(r, "touchend", i._onDrop), F(r, "touchcancel", i._onDrop), an && this.nativeDraggable && (this.options.touchStartThreshold = 4, v.draggable = !0), ne("delayStart", this, {
|
|
2606
2602
|
evt: t
|
|
2607
2603
|
}), l.delay && (!l.delayOnTouchOnly || o) && (!this.nativeDraggable || !(tt || $e))) {
|
|
2608
|
-
if (
|
|
2604
|
+
if (O.eventCanceled) {
|
|
2609
2605
|
this._onDrop();
|
|
2610
2606
|
return;
|
|
2611
2607
|
}
|
|
@@ -2623,7 +2619,7 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2623
2619
|
},
|
|
2624
2620
|
_disableDelayedDragEvents: function() {
|
|
2625
2621
|
var t = this.el.ownerDocument;
|
|
2626
|
-
|
|
2622
|
+
_(t, "mouseup", this._disableDelayedDrag), _(t, "touchend", this._disableDelayedDrag), _(t, "touchcancel", this._disableDelayedDrag), _(t, "mousemove", this._delayedDragTouchMoveHandler), _(t, "touchmove", this._delayedDragTouchMoveHandler), _(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2627
2623
|
},
|
|
2628
2624
|
_triggerDragStart: function(t, o) {
|
|
2629
2625
|
o = o || t.pointerType == "touch" && t, !this.nativeDraggable || o ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : o ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(v, "dragend", this), F(z, "dragstart", this._onDragStart));
|
|
@@ -2635,12 +2631,12 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2635
2631
|
}
|
|
2636
2632
|
},
|
|
2637
2633
|
_dragStarted: function(t, o) {
|
|
2638
|
-
if (
|
|
2634
|
+
if (Pe = !1, z && v) {
|
|
2639
2635
|
ne("dragStarted", this, {
|
|
2640
2636
|
evt: o
|
|
2641
2637
|
}), this.nativeDraggable && F(document, "dragover", B2);
|
|
2642
2638
|
var n = this.options;
|
|
2643
|
-
!t && ie(v, n.dragClass, !1), ie(v, n.ghostClass, !0),
|
|
2639
|
+
!t && ie(v, n.dragClass, !1), ie(v, n.ghostClass, !0), O.active = this, t && this._appendGhost(), ee({
|
|
2644
2640
|
sortable: this,
|
|
2645
2641
|
name: "start",
|
|
2646
2642
|
originalEvent: o
|
|
@@ -2667,19 +2663,19 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2667
2663
|
}
|
|
2668
2664
|
t = o;
|
|
2669
2665
|
} while (o = o.parentNode);
|
|
2670
|
-
|
|
2666
|
+
_n();
|
|
2671
2667
|
}
|
|
2672
2668
|
},
|
|
2673
2669
|
_onTouchMove: function(t) {
|
|
2674
2670
|
if (Le) {
|
|
2675
2671
|
var o = this.options, n = o.fallbackTolerance, i = o.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L && je(L, !0), r = L && l && l.a, s = L && l && l.d, u = lt && Q && sn(Q), f = (a.clientX - Le.clientX + i.x) / (r || 1) + (u ? u[0] - Lt[0] : 0) / (r || 1), d = (a.clientY - Le.clientY + i.y) / (s || 1) + (u ? u[1] - Lt[1] : 0) / (s || 1);
|
|
2676
|
-
if (!
|
|
2672
|
+
if (!O.active && !Pe) {
|
|
2677
2673
|
if (n && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < n)
|
|
2678
2674
|
return;
|
|
2679
2675
|
this._onDragStart(t, !0);
|
|
2680
2676
|
}
|
|
2681
2677
|
if (L) {
|
|
2682
|
-
l ? (l.e += f - (
|
|
2678
|
+
l ? (l.e += f - (Ot || 0), l.f += d - (Tt || 0)) : l = {
|
|
2683
2679
|
a: 1,
|
|
2684
2680
|
b: 0,
|
|
2685
2681
|
c: 0,
|
|
@@ -2688,7 +2684,7 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2688
2684
|
f: d
|
|
2689
2685
|
};
|
|
2690
2686
|
var m = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
2691
|
-
x(L, "webkitTransform", m), x(L, "mozTransform", m), x(L, "msTransform", m), x(L, "transform", m),
|
|
2687
|
+
x(L, "webkitTransform", m), x(L, "mozTransform", m), x(L, "msTransform", m), x(L, "transform", m), Ot = f, Tt = d, he = a;
|
|
2692
2688
|
}
|
|
2693
2689
|
t.cancelable && t.preventDefault();
|
|
2694
2690
|
}
|
|
@@ -2701,30 +2697,30 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2701
2697
|
Q = Q.parentNode;
|
|
2702
2698
|
Q !== document.body && Q !== document.documentElement ? (Q === document && (Q = ve()), o.top += Q.scrollTop, o.left += Q.scrollLeft) : Q = ve(), Lt = sn(Q);
|
|
2703
2699
|
}
|
|
2704
|
-
L = v.cloneNode(!0), ie(L, n.ghostClass, !1), ie(L, n.fallbackClass, !0), ie(L, n.dragClass, !0), x(L, "transition", ""), x(L, "transform", ""), x(L, "box-sizing", "border-box"), x(L, "margin", 0), x(L, "top", o.top), x(L, "left", o.left), x(L, "width", o.width), x(L, "height", o.height), x(L, "opacity", "0.8"), x(L, "position", lt ? "absolute" : "fixed"), x(L, "zIndex", "100000"), x(L, "pointerEvents", "none"),
|
|
2700
|
+
L = v.cloneNode(!0), ie(L, n.ghostClass, !1), ie(L, n.fallbackClass, !0), ie(L, n.dragClass, !0), x(L, "transition", ""), x(L, "transform", ""), x(L, "box-sizing", "border-box"), x(L, "margin", 0), x(L, "top", o.top), x(L, "left", o.left), x(L, "width", o.width), x(L, "height", o.height), x(L, "opacity", "0.8"), x(L, "position", lt ? "absolute" : "fixed"), x(L, "zIndex", "100000"), x(L, "pointerEvents", "none"), O.ghost = L, t.appendChild(L), x(L, "transform-origin", un / parseInt(L.style.width) * 100 + "% " + cn / parseInt(L.style.height) * 100 + "%");
|
|
2705
2701
|
}
|
|
2706
2702
|
},
|
|
2707
2703
|
_onDragStart: function(t, o) {
|
|
2708
2704
|
var n = this, i = t.dataTransfer, a = n.options;
|
|
2709
2705
|
if (ne("dragStart", this, {
|
|
2710
2706
|
evt: t
|
|
2711
|
-
}),
|
|
2707
|
+
}), O.eventCanceled) {
|
|
2712
2708
|
this._onDrop();
|
|
2713
2709
|
return;
|
|
2714
2710
|
}
|
|
2715
|
-
ne("setupClone", this),
|
|
2716
|
-
ne("clone", n), !
|
|
2711
|
+
ne("setupClone", this), O.eventCanceled || (Z = Ln(v), Z.draggable = !1, Z.style["will-change"] = "", this._hideClone(), ie(Z, this.options.chosenClass, !1), O.clone = Z), n.cloneId = dt(function() {
|
|
2712
|
+
ne("clone", n), !O.eventCanceled && (n.options.removeCloneOnHide || z.insertBefore(Z, v), n._hideClone(), ee({
|
|
2717
2713
|
sortable: n,
|
|
2718
2714
|
name: "clone"
|
|
2719
2715
|
}));
|
|
2720
|
-
}), !o && ie(v, a.dragClass, !0), o ? (pt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (
|
|
2716
|
+
}), !o && ie(v, a.dragClass, !0), o ? (pt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(n, i, v)), F(document, "drop", n), x(v, "transform", "translateZ(0)")), Pe = !0, n._dragStartId = dt(n._dragStarted.bind(n, o, t)), F(document, "selectstart", n), qe = !0, Ue && x(document.body, "user-select", "none");
|
|
2721
2717
|
},
|
|
2722
2718
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2723
2719
|
_onDragOver: function(t) {
|
|
2724
|
-
var o = this.el, n = t.target, i, a, l, r = this.options, s = r.group, u =
|
|
2720
|
+
var o = this.el, n = t.target, i, a, l, r = this.options, s = r.group, u = O.active, f = it === s, d = r.sort, m = X || u, $, S = this, M = !1;
|
|
2725
2721
|
if (Ft) return;
|
|
2726
|
-
function D(
|
|
2727
|
-
ne(
|
|
2722
|
+
function D(He, Vn) {
|
|
2723
|
+
ne(He, S, me({
|
|
2728
2724
|
evt: t,
|
|
2729
2725
|
isOwner: f,
|
|
2730
2726
|
axis: $ ? "vertical" : "horizontal",
|
|
@@ -2744,12 +2740,12 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2744
2740
|
function E() {
|
|
2745
2741
|
D("dragOverAnimationCapture"), S.captureAnimationState(), S !== m && m.captureAnimationState();
|
|
2746
2742
|
}
|
|
2747
|
-
function b(
|
|
2743
|
+
function b(He) {
|
|
2748
2744
|
return D("dragOverCompleted", {
|
|
2749
|
-
insertion:
|
|
2750
|
-
}),
|
|
2745
|
+
insertion: He
|
|
2746
|
+
}), He && (f ? u._hideClone() : u._showClone(S), S !== m && (ie(v, X ? X.options.ghostClass : u.options.ghostClass, !1), ie(v, r.ghostClass, !0)), X !== S && S !== O.active ? X = S : S === O.active && X && (X = null), m === S && (S._ignoreWhileAnimating = n), S.animateAll(function() {
|
|
2751
2747
|
D("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
|
|
2752
|
-
}), S !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === v && !v.animated || n === o && !n.animated) && (
|
|
2748
|
+
}), S !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (n === v && !v.animated || n === o && !n.animated) && (_e = null), !r.dragoverBubble && !t.rootEl && n !== document && (v.parentNode[re]._isOutsideThisEl(t.target), !He && Me(t)), !r.dragoverBubble && t.stopPropagation && t.stopPropagation(), M = !0;
|
|
2753
2749
|
}
|
|
2754
2750
|
function y() {
|
|
2755
2751
|
ae = ce(v), Ee = ce(v, r.draggable), ee({
|
|
@@ -2761,20 +2757,20 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2761
2757
|
originalEvent: t
|
|
2762
2758
|
});
|
|
2763
2759
|
}
|
|
2764
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = ge(n, r.draggable, o, !0), D("dragOver"),
|
|
2760
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = ge(n, r.draggable, o, !0), D("dragOver"), O.eventCanceled) return M;
|
|
2765
2761
|
if (v.contains(t.target) || n.animated && n.animatingX && n.animatingY || S._ignoreWhileAnimating === n)
|
|
2766
2762
|
return b(!1);
|
|
2767
2763
|
if (pt = !1, u && !r.disabled && (f ? d || (l = R !== z) : X === this || (this.lastPutMode = it.checkPull(this, u, v, t)) && s.checkPut(this, u, v, t))) {
|
|
2768
|
-
if ($ = this._getDirection(t, n) === "vertical", i = Y(v), D("dragOverValid"),
|
|
2764
|
+
if ($ = this._getDirection(t, n) === "vertical", i = Y(v), D("dragOverValid"), O.eventCanceled) return M;
|
|
2769
2765
|
if (l)
|
|
2770
|
-
return R = z, E(), this._hideClone(), D("revert"),
|
|
2766
|
+
return R = z, E(), this._hideClone(), D("revert"), O.eventCanceled || (Be ? z.insertBefore(v, Be) : z.appendChild(v)), b(!0);
|
|
2771
2767
|
var g = Yt(o, r.draggable);
|
|
2772
|
-
if (!g ||
|
|
2768
|
+
if (!g || P2(t, $, this) && !g.animated) {
|
|
2773
2769
|
if (g === v)
|
|
2774
2770
|
return b(!1);
|
|
2775
2771
|
if (g && o === t.target && (n = g), n && (a = Y(n)), rt(z, o, v, i, n, a, t, !!n) !== !1)
|
|
2776
2772
|
return E(), o.appendChild(v), R = o, y(), b(!0);
|
|
2777
|
-
} else if (g &&
|
|
2773
|
+
} else if (g && _2(t, $, this)) {
|
|
2778
2774
|
var k = Re(o, 0, r, !0);
|
|
2779
2775
|
if (k === v)
|
|
2780
2776
|
return b(!1);
|
|
@@ -2783,7 +2779,7 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2783
2779
|
} else if (n.parentNode === o) {
|
|
2784
2780
|
a = Y(n);
|
|
2785
2781
|
var w = 0, V, J = v.parentNode !== o, U = !L2(v.animated && v.toRect || i, n.animated && n.toRect || a, $), pe = $ ? "top" : "left", oe = rn(n, "top", "top") || rn(v, "top", "top"), be = oe ? oe.scrollTop : void 0;
|
|
2786
|
-
|
|
2782
|
+
_e !== n && (V = a[pe], Je = !1, at = !U && r.invertSwap || J), w = N2(t, n, a, $, U ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, at, _e === n);
|
|
2787
2783
|
var fe;
|
|
2788
2784
|
if (w !== 0) {
|
|
2789
2785
|
var Ce = ce(v);
|
|
@@ -2793,12 +2789,12 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2793
2789
|
}
|
|
2794
2790
|
if (w === 0 || fe === n)
|
|
2795
2791
|
return b(!1);
|
|
2796
|
-
|
|
2797
|
-
var
|
|
2792
|
+
_e = n, Qe = w;
|
|
2793
|
+
var Ze = n.nextElementSibling, De = !1;
|
|
2798
2794
|
De = w === 1;
|
|
2799
2795
|
var ot = rt(z, o, v, i, n, a, t, De);
|
|
2800
2796
|
if (ot !== !1)
|
|
2801
|
-
return (ot === 1 || ot === -1) && (De = ot === 1), Ft = !0, setTimeout(A2, 30), E(), De && !
|
|
2797
|
+
return (ot === 1 || ot === -1) && (De = ot === 1), Ft = !0, setTimeout(A2, 30), E(), De && !Ze ? o.appendChild(v) : n.parentNode.insertBefore(v, De ? Ze : n), oe && Tn(oe, 0, be - oe.scrollTop), R = v.parentNode, V !== void 0 && !at && (ct = Math.abs(V - Y(n)[pe])), y(), b(!0);
|
|
2802
2798
|
}
|
|
2803
2799
|
if (o.contains(v))
|
|
2804
2800
|
return b(!1);
|
|
@@ -2807,21 +2803,21 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2807
2803
|
},
|
|
2808
2804
|
_ignoreWhileAnimating: null,
|
|
2809
2805
|
_offMoveEvents: function() {
|
|
2810
|
-
|
|
2806
|
+
_(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Me), _(document, "mousemove", Me), _(document, "touchmove", Me);
|
|
2811
2807
|
},
|
|
2812
2808
|
_offUpEvents: function() {
|
|
2813
2809
|
var t = this.el.ownerDocument;
|
|
2814
|
-
|
|
2810
|
+
_(t, "mouseup", this._onDrop), _(t, "touchend", this._onDrop), _(t, "pointerup", this._onDrop), _(t, "touchcancel", this._onDrop), _(document, "selectstart", this);
|
|
2815
2811
|
},
|
|
2816
2812
|
_onDrop: function(t) {
|
|
2817
2813
|
var o = this.el, n = this.options;
|
|
2818
2814
|
if (ae = ce(v), Ee = ce(v, n.draggable), ne("drop", this, {
|
|
2819
2815
|
evt: t
|
|
2820
|
-
}), R = v && v.parentNode, ae = ce(v), Ee = ce(v, n.draggable),
|
|
2816
|
+
}), R = v && v.parentNode, ae = ce(v), Ee = ce(v, n.draggable), O.eventCanceled) {
|
|
2821
2817
|
this._nulling();
|
|
2822
2818
|
return;
|
|
2823
2819
|
}
|
|
2824
|
-
|
|
2820
|
+
Pe = !1, at = !1, Je = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vt(this.cloneId), Vt(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ue && x(document.body, "user-select", ""), x(v, "transform", ""), t && (qe && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), L && L.parentNode && L.parentNode.removeChild(L), (z === R || X && X.lastPutMode !== "clone") && Z && Z.parentNode && Z.parentNode.removeChild(Z), v && (this.nativeDraggable && _(v, "dragend", this), Mt(v), v.style["will-change"] = "", qe && !Pe && ie(v, X ? X.options.ghostClass : this.options.ghostClass, !1), ie(v, this.options.chosenClass, !1), ee({
|
|
2825
2821
|
sortable: this,
|
|
2826
2822
|
name: "unchoose",
|
|
2827
2823
|
toEl: R,
|
|
@@ -2860,7 +2856,7 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2860
2856
|
name: "sort",
|
|
2861
2857
|
toEl: R,
|
|
2862
2858
|
originalEvent: t
|
|
2863
|
-
})),
|
|
2859
|
+
})), O.active && ((ae == null || ae === -1) && (ae = Fe, Ee = Ke), ee({
|
|
2864
2860
|
sortable: this,
|
|
2865
2861
|
name: "end",
|
|
2866
2862
|
toEl: R,
|
|
@@ -2868,9 +2864,9 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2868
2864
|
}), this.save()))), this._nulling();
|
|
2869
2865
|
},
|
|
2870
2866
|
_nulling: function() {
|
|
2871
|
-
ne("nulling", this), z = v = R = L = Be =
|
|
2867
|
+
ne("nulling", this), z = v = R = L = Be = Z = ut = Oe = Le = he = qe = ae = Ee = Fe = Ke = _e = Qe = X = it = O.dragged = O.ghost = O.clone = O.active = null, vt.forEach(function(t) {
|
|
2872
2868
|
t.checked = !0;
|
|
2873
|
-
}), vt.length =
|
|
2869
|
+
}), vt.length = Ot = Tt = 0;
|
|
2874
2870
|
},
|
|
2875
2871
|
handleEvent: function(t) {
|
|
2876
2872
|
switch (t.type) {
|
|
@@ -2944,14 +2940,14 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2944
2940
|
destroy: function() {
|
|
2945
2941
|
ne("destroy", this);
|
|
2946
2942
|
var t = this.el;
|
|
2947
|
-
t[re] = null,
|
|
2943
|
+
t[re] = null, _(t, "mousedown", this._onTapStart), _(t, "touchstart", this._onTapStart), _(t, "pointerdown", this._onTapStart), this.nativeDraggable && (_(t, "dragover", this), _(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(o) {
|
|
2948
2944
|
o.removeAttribute("draggable");
|
|
2949
2945
|
}), this._onDrop(), this._disableDelayedDragEvents(), gt.splice(gt.indexOf(this.el), 1), this.el = t = null;
|
|
2950
2946
|
},
|
|
2951
2947
|
_hideClone: function() {
|
|
2952
|
-
if (!
|
|
2953
|
-
if (ne("hideClone", this),
|
|
2954
|
-
x(
|
|
2948
|
+
if (!Oe) {
|
|
2949
|
+
if (ne("hideClone", this), O.eventCanceled) return;
|
|
2950
|
+
x(Z, "display", "none"), this.options.removeCloneOnHide && Z.parentNode && Z.parentNode.removeChild(Z), Oe = !0;
|
|
2955
2951
|
}
|
|
2956
2952
|
},
|
|
2957
2953
|
_showClone: function(t) {
|
|
@@ -2959,9 +2955,9 @@ T.prototype = /** @lends Sortable.prototype */
|
|
|
2959
2955
|
this._hideClone();
|
|
2960
2956
|
return;
|
|
2961
2957
|
}
|
|
2962
|
-
if (
|
|
2963
|
-
if (ne("showClone", this),
|
|
2964
|
-
v.parentNode == z && !this.options.group.revertClone ? z.insertBefore(
|
|
2958
|
+
if (Oe) {
|
|
2959
|
+
if (ne("showClone", this), O.eventCanceled) return;
|
|
2960
|
+
v.parentNode == z && !this.options.group.revertClone ? z.insertBefore(Z, v) : Be ? z.insertBefore(Z, Be) : z.appendChild(Z), this.options.group.revertClone && this.animate(v, Z), x(Z, "display", ""), Oe = !1;
|
|
2965
2961
|
}
|
|
2966
2962
|
}
|
|
2967
2963
|
};
|
|
@@ -2981,11 +2977,11 @@ function Mt(e) {
|
|
|
2981
2977
|
function A2() {
|
|
2982
2978
|
Ft = !1;
|
|
2983
2979
|
}
|
|
2984
|
-
function
|
|
2980
|
+
function _2(e, t, o) {
|
|
2985
2981
|
var n = Y(Re(o.el, 0, o.options, !0)), i = 10;
|
|
2986
2982
|
return t ? e.clientX < n.left - i || e.clientY < n.top && e.clientX < n.right : e.clientY < n.top - i || e.clientY < n.bottom && e.clientX < n.left;
|
|
2987
2983
|
}
|
|
2988
|
-
function
|
|
2984
|
+
function P2(e, t, o) {
|
|
2989
2985
|
var n = Y(Yt(o.el, o.options.draggable)), i = 10;
|
|
2990
2986
|
return t ? e.clientX > n.right + i || e.clientX <= n.right && e.clientY > n.bottom && e.clientX >= n.left : e.clientX > n.right && e.clientY > n.top || e.clientX <= n.right && e.clientY > n.bottom + i;
|
|
2991
2987
|
}
|
|
@@ -3024,18 +3020,18 @@ function Vt(e) {
|
|
|
3024
3020
|
return clearTimeout(e);
|
|
3025
3021
|
}
|
|
3026
3022
|
St && F(document, "touchmove", function(e) {
|
|
3027
|
-
(
|
|
3023
|
+
(O.active || Pe) && e.cancelable && e.preventDefault();
|
|
3028
3024
|
});
|
|
3029
|
-
|
|
3025
|
+
O.utils = {
|
|
3030
3026
|
on: F,
|
|
3031
|
-
off:
|
|
3027
|
+
off: _,
|
|
3032
3028
|
css: x,
|
|
3033
3029
|
find: xn,
|
|
3034
3030
|
is: function(t, o) {
|
|
3035
3031
|
return !!ge(t, o, t, !1);
|
|
3036
3032
|
},
|
|
3037
3033
|
extend: S2,
|
|
3038
|
-
throttle:
|
|
3034
|
+
throttle: On,
|
|
3039
3035
|
closest: ge,
|
|
3040
3036
|
toggleClass: ie,
|
|
3041
3037
|
clone: Ln,
|
|
@@ -3045,22 +3041,22 @@ T.utils = {
|
|
|
3045
3041
|
detectDirection: Bn,
|
|
3046
3042
|
getChild: Re
|
|
3047
3043
|
};
|
|
3048
|
-
|
|
3044
|
+
O.get = function(e) {
|
|
3049
3045
|
return e[re];
|
|
3050
3046
|
};
|
|
3051
|
-
|
|
3047
|
+
O.mount = function() {
|
|
3052
3048
|
for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
|
|
3053
3049
|
t[o] = arguments[o];
|
|
3054
3050
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
|
|
3055
3051
|
if (!n.prototype || !n.prototype.constructor)
|
|
3056
3052
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
3057
|
-
n.utils && (
|
|
3053
|
+
n.utils && (O.utils = me(me({}, O.utils), n.utils)), nt.mount(n);
|
|
3058
3054
|
});
|
|
3059
3055
|
};
|
|
3060
|
-
|
|
3061
|
-
return new
|
|
3056
|
+
O.create = function(e, t) {
|
|
3057
|
+
return new O(e, t);
|
|
3062
3058
|
};
|
|
3063
|
-
|
|
3059
|
+
O.version = b2;
|
|
3064
3060
|
var q = [], We, jt, zt = !1, Bt, It, mt, Ye;
|
|
3065
3061
|
function z2() {
|
|
3066
3062
|
function e() {
|
|
@@ -3084,7 +3080,7 @@ function z2() {
|
|
|
3084
3080
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
3085
3081
|
},
|
|
3086
3082
|
drop: function() {
|
|
3087
|
-
this.sortable.nativeDraggable ?
|
|
3083
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), fn(), ft(), k2();
|
|
3088
3084
|
},
|
|
3089
3085
|
nulling: function() {
|
|
3090
3086
|
mt = jt = We = zt = Ye = Bt = It = null, q.length = 0;
|
|
@@ -3096,17 +3092,17 @@ function z2() {
|
|
|
3096
3092
|
var i = this, a = (o.touches ? o.touches[0] : o).clientX, l = (o.touches ? o.touches[0] : o).clientY, r = document.elementFromPoint(a, l);
|
|
3097
3093
|
if (mt = o, n || this.options.forceAutoScrollFallback || tt || $e || Ue) {
|
|
3098
3094
|
At(o, this.options, r, n);
|
|
3099
|
-
var s =
|
|
3095
|
+
var s = Te(r, !0);
|
|
3100
3096
|
zt && (!Ye || a !== Bt || l !== It) && (Ye && fn(), Ye = setInterval(function() {
|
|
3101
|
-
var u =
|
|
3097
|
+
var u = Te(document.elementFromPoint(a, l), !0);
|
|
3102
3098
|
u !== s && (s = u, ft()), At(o, i.options, u, n);
|
|
3103
3099
|
}, 10), Bt = a, It = l);
|
|
3104
3100
|
} else {
|
|
3105
|
-
if (!this.options.bubbleScroll ||
|
|
3101
|
+
if (!this.options.bubbleScroll || Te(r, !0) === ve()) {
|
|
3106
3102
|
ft();
|
|
3107
3103
|
return;
|
|
3108
3104
|
}
|
|
3109
|
-
At(o, this.options,
|
|
3105
|
+
At(o, this.options, Te(r, !1), !1);
|
|
3110
3106
|
}
|
|
3111
3107
|
}
|
|
3112
3108
|
}, Se(e, {
|
|
@@ -3122,10 +3118,10 @@ function ft() {
|
|
|
3122
3118
|
function fn() {
|
|
3123
3119
|
clearInterval(Ye);
|
|
3124
3120
|
}
|
|
3125
|
-
var At =
|
|
3121
|
+
var At = On(function(e, t, o, n) {
|
|
3126
3122
|
if (t.scroll) {
|
|
3127
3123
|
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, s = ve(), u = !1, f;
|
|
3128
|
-
jt !== o && (jt = o, ft(), We = t.scroll, f = t.scrollFn, We === !0 && (We =
|
|
3124
|
+
jt !== o && (jt = o, ft(), We = t.scroll, f = t.scrollFn, We === !0 && (We = Te(o, !0)));
|
|
3129
3125
|
var d = 0, m = We;
|
|
3130
3126
|
do {
|
|
3131
3127
|
var $ = m, S = Y($), M = S.top, D = S.bottom, E = S.left, b = S.right, y = S.width, g = S.height, k = void 0, w = void 0, V = $.scrollWidth, J = $.scrollHeight, U = x($), pe = $.scrollLeft, oe = $.scrollTop;
|
|
@@ -3135,16 +3131,16 @@ var At = Tn(function(e, t, o, n) {
|
|
|
3135
3131
|
for (var Ce = 0; Ce <= d; Ce++)
|
|
3136
3132
|
q[Ce] || (q[Ce] = {});
|
|
3137
3133
|
(q[d].vx != be || q[d].vy != fe || q[d].el !== $) && (q[d].el = $, q[d].vx = be, q[d].vy = fe, clearInterval(q[d].pid), (be != 0 || fe != 0) && (u = !0, q[d].pid = setInterval(function() {
|
|
3138
|
-
n && this.layer === 0 &&
|
|
3139
|
-
var
|
|
3140
|
-
typeof f == "function" && f.call(
|
|
3134
|
+
n && this.layer === 0 && O.active._onTouchMove(mt);
|
|
3135
|
+
var Ze = q[this.layer].vy ? q[this.layer].vy * r : 0, De = q[this.layer].vx ? q[this.layer].vx * r : 0;
|
|
3136
|
+
typeof f == "function" && f.call(O.dragged.parentNode[re], De, Ze, e, mt, q[this.layer].el) !== "continue" || Tn(q[this.layer].el, De, Ze);
|
|
3141
3137
|
}.bind({
|
|
3142
3138
|
layer: d
|
|
3143
3139
|
}), 24))), d++;
|
|
3144
|
-
} while (t.bubbleScroll && m !== s && (m =
|
|
3140
|
+
} while (t.bubbleScroll && m !== s && (m = Te(m, !1)));
|
|
3145
3141
|
zt = u;
|
|
3146
3142
|
}
|
|
3147
|
-
}, 30),
|
|
3143
|
+
}, 30), Pn = function(t) {
|
|
3148
3144
|
var o = t.originalEvent, n = t.putSortable, i = t.dragEl, a = t.activeSortable, l = t.dispatchSortableEvent, r = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
3149
3145
|
if (o) {
|
|
3150
3146
|
var u = n || a;
|
|
@@ -3170,7 +3166,7 @@ Ut.prototype = {
|
|
|
3170
3166
|
var i = Re(this.sortable.el, this.startIndex, this.options);
|
|
3171
3167
|
i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), n && n.animateAll();
|
|
3172
3168
|
},
|
|
3173
|
-
drop:
|
|
3169
|
+
drop: Pn
|
|
3174
3170
|
};
|
|
3175
3171
|
Se(Ut, {
|
|
3176
3172
|
pluginName: "revertOnSpill"
|
|
@@ -3182,25 +3178,25 @@ Xt.prototype = {
|
|
|
3182
3178
|
var o = t.dragEl, n = t.putSortable, i = n || this.sortable;
|
|
3183
3179
|
i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
|
|
3184
3180
|
},
|
|
3185
|
-
drop:
|
|
3181
|
+
drop: Pn
|
|
3186
3182
|
};
|
|
3187
3183
|
Se(Xt, {
|
|
3188
3184
|
pluginName: "removeOnSpill"
|
|
3189
3185
|
});
|
|
3190
|
-
|
|
3191
|
-
|
|
3186
|
+
O.mount(new z2());
|
|
3187
|
+
O.mount(Xt, Ut);
|
|
3192
3188
|
function R2() {
|
|
3193
3189
|
return typeof window < "u" ? window.console : global.console;
|
|
3194
3190
|
}
|
|
3195
|
-
const
|
|
3196
|
-
function
|
|
3191
|
+
const Z2 = R2();
|
|
3192
|
+
function H2(e) {
|
|
3197
3193
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3198
3194
|
return function(n) {
|
|
3199
3195
|
return t[n] || (t[n] = e(n));
|
|
3200
3196
|
};
|
|
3201
3197
|
}
|
|
3202
|
-
const G2 = /-(\w)/g, hn =
|
|
3203
|
-
function
|
|
3198
|
+
const G2 = /-(\w)/g, hn = H2((e) => e.replace(G2, (t, o) => o ? o.toUpperCase() : ""));
|
|
3199
|
+
function _t(e) {
|
|
3204
3200
|
e.parentElement !== null && e.parentElement.removeChild(e);
|
|
3205
3201
|
}
|
|
3206
3202
|
function pn(e, t, o) {
|
|
@@ -3236,8 +3232,8 @@ function X2(e) {
|
|
|
3236
3232
|
function K2(e, t) {
|
|
3237
3233
|
return t ? { ...t.props, ...t.attrs } : e;
|
|
3238
3234
|
}
|
|
3239
|
-
const Rt = ["Start", "Add", "Remove", "Update", "End"],
|
|
3240
|
-
let
|
|
3235
|
+
const Rt = ["Start", "Add", "Remove", "Update", "End"], Zt = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], Q2 = ["Move", ...Rt, ...Zt].map((e) => "on" + e);
|
|
3236
|
+
let Pt = null;
|
|
3241
3237
|
const J2 = {
|
|
3242
3238
|
options: Object,
|
|
3243
3239
|
list: {
|
|
@@ -3283,7 +3279,7 @@ const J2 = {
|
|
|
3283
3279
|
"move",
|
|
3284
3280
|
"change",
|
|
3285
3281
|
...Rt.map((e) => e.toLowerCase()),
|
|
3286
|
-
...
|
|
3282
|
+
...Zt.map((e) => e.toLowerCase())
|
|
3287
3283
|
],
|
|
3288
3284
|
props: J2,
|
|
3289
3285
|
data() {
|
|
@@ -3302,13 +3298,13 @@ const J2 = {
|
|
|
3302
3298
|
return e ? (this.transitionMode = X2(e), Qt(this.getTag(), t, e)) : Qt(this.getTag(), t, []);
|
|
3303
3299
|
},
|
|
3304
3300
|
created() {
|
|
3305
|
-
this.list !== null && this.modelValue !== null &&
|
|
3301
|
+
this.list !== null && this.modelValue !== null && Z2.error("list props are mutually exclusive! Please set one.");
|
|
3306
3302
|
},
|
|
3307
3303
|
mounted() {
|
|
3308
3304
|
const e = {};
|
|
3309
3305
|
Rt.forEach((i) => {
|
|
3310
3306
|
e["on" + i] = Y2.call(this, i);
|
|
3311
|
-
}),
|
|
3307
|
+
}), Zt.forEach((i) => {
|
|
3312
3308
|
e["on" + i] = Nn.bind(this, i);
|
|
3313
3309
|
});
|
|
3314
3310
|
const t = Object.keys(this.$attrs).reduce((i, a) => (i[hn(a)] = this.$attrs[a], i), {}), o = Object.assign({}, t, e, {
|
|
@@ -3316,7 +3312,7 @@ const J2 = {
|
|
|
3316
3312
|
});
|
|
3317
3313
|
!("draggable" in o) && (o.draggable = ">*");
|
|
3318
3314
|
const n = this.$el.nodeType === 1 ? this.$el : this.$el.parentElement;
|
|
3319
|
-
this._sortable = new
|
|
3315
|
+
this._sortable = new O(n, o), n.__draggable_component__ = this, this.computeIndexes();
|
|
3320
3316
|
},
|
|
3321
3317
|
beforeUnmount() {
|
|
3322
3318
|
try {
|
|
@@ -3405,13 +3401,13 @@ const J2 = {
|
|
|
3405
3401
|
o.children = [], o.kept = void 0;
|
|
3406
3402
|
},
|
|
3407
3403
|
onDragStart(e) {
|
|
3408
|
-
this.computeIndexes(), this.context = this.getUnderlyingVm(e.item), this.context && (e.item._underlying_vm_ = this.clone(this.context.element),
|
|
3404
|
+
this.computeIndexes(), this.context = this.getUnderlyingVm(e.item), this.context && (e.item._underlying_vm_ = this.clone(this.context.element), Pt = e.item);
|
|
3409
3405
|
},
|
|
3410
3406
|
onDragAdd(e) {
|
|
3411
3407
|
const t = e.item._underlying_vm_;
|
|
3412
3408
|
if (t === void 0)
|
|
3413
3409
|
return;
|
|
3414
|
-
|
|
3410
|
+
_t(e.item);
|
|
3415
3411
|
const o = this.getVmIndex(e.newIndex);
|
|
3416
3412
|
this.spliceList(o, 0, t), this.computeIndexes();
|
|
3417
3413
|
const n = { element: t, newIndex: o };
|
|
@@ -3419,7 +3415,7 @@ const J2 = {
|
|
|
3419
3415
|
},
|
|
3420
3416
|
onDragRemove(e) {
|
|
3421
3417
|
if (pn(this.$el, e.item, e.oldIndex), e.pullMode === "clone") {
|
|
3422
|
-
|
|
3418
|
+
_t(e.clone);
|
|
3423
3419
|
return;
|
|
3424
3420
|
}
|
|
3425
3421
|
if (!this.context)
|
|
@@ -3430,7 +3426,7 @@ const J2 = {
|
|
|
3430
3426
|
this.resetTransitionData(t), this.emitChanges({ removed: o });
|
|
3431
3427
|
},
|
|
3432
3428
|
onDragUpdate(e) {
|
|
3433
|
-
|
|
3429
|
+
_t(e.item), pn(e.from, e.item, e.oldIndex);
|
|
3434
3430
|
const t = this.context.index, o = this.getVmIndex(e.newIndex);
|
|
3435
3431
|
this.updatePosition(t, o);
|
|
3436
3432
|
const n = { element: this.context.element, oldIndex: t, newIndex: o };
|
|
@@ -3452,7 +3448,7 @@ const J2 = {
|
|
|
3452
3448
|
return o(l, t);
|
|
3453
3449
|
},
|
|
3454
3450
|
onDragEnd() {
|
|
3455
|
-
this.computeIndexes(),
|
|
3451
|
+
this.computeIndexes(), Pt = null;
|
|
3456
3452
|
},
|
|
3457
3453
|
getTrargetedComponent(e) {
|
|
3458
3454
|
return e.__draggable_component__;
|
|
@@ -3474,7 +3470,7 @@ const J2 = {
|
|
|
3474
3470
|
if (o.length === 0)
|
|
3475
3471
|
return 0;
|
|
3476
3472
|
const n = o.indexOf(t.related), i = e.component.getVmIndex(n);
|
|
3477
|
-
return o.indexOf(
|
|
3473
|
+
return o.indexOf(Pt) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
3478
3474
|
}
|
|
3479
3475
|
}
|
|
3480
3476
|
}), ta = { class: "flex m-10" }, na = { class: "sortable-list" }, oa = {
|
|
@@ -3498,7 +3494,7 @@ const J2 = {
|
|
|
3498
3494
|
list: e.list,
|
|
3499
3495
|
onChange: a[0] || (a[0] = (l) => n(e.list))
|
|
3500
3496
|
}, {
|
|
3501
|
-
default:
|
|
3497
|
+
default: H(() => [
|
|
3502
3498
|
(c(!0), h(j, null, se(e.list, (l) => (c(), h("li", {
|
|
3503
3499
|
key: l.id
|
|
3504
3500
|
}, [
|
|
@@ -3521,7 +3517,7 @@ const J2 = {
|
|
|
3521
3517
|
], -1)),
|
|
3522
3518
|
p("div", null, [
|
|
3523
3519
|
l.render ? (c(), I(de(l.render(l.data)), { key: 0 })) : (c(), h(j, { key: 1 }, [
|
|
3524
|
-
K(
|
|
3520
|
+
K(T(l.data), 1)
|
|
3525
3521
|
], 64))
|
|
3526
3522
|
])
|
|
3527
3523
|
]))), 128))
|
|
@@ -3579,7 +3575,7 @@ const J2 = {
|
|
|
3579
3575
|
src: e.imageSource,
|
|
3580
3576
|
alt: e.alternativeText
|
|
3581
3577
|
}, null, 8, aa),
|
|
3582
|
-
p("span", null,
|
|
3578
|
+
p("span", null, T(e.title), 1)
|
|
3583
3579
|
], 10, ia));
|
|
3584
3580
|
}
|
|
3585
3581
|
}), ra = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20width='2084'%20height='2084'%3e%3cpath%20d='M0%200%20C1.15764862%200.00060425%202.31529724%200.0012085%203.50802612%200.00183105%20C85.98260722%200.11720669%20167.94255485%209.87604579%20248.125%2029.1875%20C248.86457947%2029.36476624%20249.60415894%2029.54203247%20250.3661499%2029.72467041%20C334.62230969%2049.9574737%20416.80768306%2081.42007316%20533.125%20145.1875%20C534.02105957%20145.70908691%20534.91711914%20146.23067383%20535.84033203%20146.76806641%20C550.04886476%20155.0696507%20563.74211052%20164.13646225%20577.4375%20173.25%20C578.32679199%20173.8407431%20579.21608398%20174.43148621%20580.13232422%20175.04013062%20C591.69483528%20182.73135096%20603.0720229%20190.63196121%20614.27706909%20198.8354187%20C616.67050493%20200.58663127%20619.07390043%20202.32397661%20621.4765625%20204.0625%20C630.31030376%20210.50445197%20638.91838886%20217.148823%20647.35546875%20224.1015625%20C650.93712446%20227.05029675%20654.58513462%20229.90587171%20658.25%20232.75%20C664.80446613%20237.85872335%20671.10574818%20243.23251579%20677.37939453%20248.68017578%20C679.10687975%20250.17185322%20680.84590215%20251.64870526%20682.58984375%20253.12109375%20C689.5490538%20259.00754793%20696.29865442%20265.06950894%20702.93237305%20271.32104492%20C706.02875784%20274.23828319%20709.1375661%20277.11327067%20712.375%20279.875%20C716.13510937%20283.10378956%20719.58790586%20286.62314338%20723.06616211%20290.14794922%20C725.6075653%20292.71084883%20728.18211543%20295.16942847%20730.9375%20297.5%20C739.34322101%20304.69001756%20747.21573722%20312.7580678%20754.35546875%20321.19921875%20C756.67272617%20323.80293625%20759.14521445%20326.24047964%20761.625%20328.6875%20C765.32908948%20332.34742653%20768.87787767%20336.07693794%20772.2578125%20340.0390625%20C774.15320841%20342.21995738%20776.1052652%20344.34205746%20778.07080078%20346.4597168%20C782.90200954%20351.66642948%20787.48561882%20356.99917793%20791.94140625%20362.53515625%20C794.11897068%20365.18017637%20796.37818763%20367.71962525%20798.6875%20370.25%20C802.24142208%20374.1587026%20805.5852216%20378.17351283%20808.8515625%20382.32421875%20C810.55603659%20384.47091893%20812.27757011%20386.59447521%20814.0234375%20388.70703125%20C821.23010316%20397.44393263%20828.06132486%20406.39389068%20834.73046875%20415.546875%20C837.30174324%20419.07576257%20839.91615421%20422.56735039%20842.56005859%20426.04199219%20C855.57684339%20443.17700697%20867.54995923%20461.05622605%20879.125%20479.1875%20C879.62451172%20479.96512695%20880.12402344%20480.74275391%20880.63867188%20481.54394531%20C897.58381654%20507.93121546%20913.09593508%20535.18898842%20927.46484375%20563.05859375%20C929.00770036%20566.04920309%20930.5667459%20569.02569169%20932.19140625%20571.97265625%20C939.19339133%20584.70486712%20945.14022162%20597.95559111%20951.125%20611.1875%20C951.41070862%20611.81843567%20951.69641724%20612.44937134%20951.99078369%20613.09942627%20C984.41326204%20684.79659167%201008.53753875%20760.05556022%201037.8125%20926.75%20C1037.95767059%20928.00706253%201037.95767059%20928.00706253%201038.10577393%20929.28952026%20C1042.18612959%20965.02273189%201043.64357089%201000.92112464%201043.51611328%201036.86474609%20C1043.49902324%201041.71699519%201043.50922796%201046.56874997%201043.52643585%201051.42098236%20C1043.58875603%201072.22474355%201043.121671%201092.92627467%201041.7421875%201113.6875%20C1041.68073925%201114.61345474%201041.619291%201115.53940948%201041.55598068%201116.49342346%20C1035.0007366%201213.08026312%201014.38267632%201308.16853%20966.125%201439.1875%20C965.74018463%201440.10187836%20965.74018463%201440.10187836%20965.34759521%201441.034729%20C949.45738809%201478.73766744%20932.25383656%201516.09689741%20911.67675781%201551.49414062%20C910.07835791%201554.26845588%20908.51530634%201557.06017358%20906.9609375%201559.859375%20C895.54802769%201580.39389385%20882.94822692%201600.0776952%20869.9375%201619.625%20C869.44011322%201620.37300873%20868.94272644%201621.12101746%20868.43026733%201621.89169312%20C858.68653626%201636.525895%20848.74118479%201651.01255917%20838%201664.9375%20C837.32259766%201665.82091064%20836.64519531%201666.70432129%20835.94726562%201667.61450195%20C834.61307186%201669.35362798%20833.27752794%201671.09171932%20831.94042969%201672.82861328%20C830.34444691%201674.90236067%20828.75291154%201676.97937968%20827.1640625%201679.05859375%20C822.23462047%201685.50301824%20817.23152617%201691.88240063%20812.125%201698.1875%20C811.44050781%201699.03570313%20810.75601562%201699.88390625%20810.05078125%201700.7578125%20C804.87991842%201707.12623602%20799.5782563%201713.37313801%20794.22265625%201719.5859375%20C792.19755881%201721.93532976%20790.1847527%201724.2942514%20788.18359375%201726.6640625%20C781.38039056%201734.70287081%20774.30783235%201742.44088746%20767.07495117%201750.09399414%20C765.68090087%201751.59067391%20764.30252896%201753.10201885%20762.93481445%201754.62280273%20C754.62146255%201763.84397622%20745.8602102%201772.6040054%20737.07202148%201781.37084961%20C734.4290134%201784.0084693%20731.79143019%201786.6514299%20729.15429688%201789.29492188%20C727.45344575%201790.9951126%20725.75228466%201792.69499331%20724.05078125%201794.39453125%20C723.27350174%201795.17383499%20722.49622223%201795.95313873%20721.69538879%201796.75605774%20C717.55441138%201800.87950727%20713.33600026%201804.84794915%20708.89880371%201808.65180969%20C705.95478417%201811.20062738%20703.14452257%201813.89078831%20700.3125%201816.5625%20C695.28811299%201821.26903274%20690.13516609%201825.71608064%20684.7578125%201830.01953125%20C682.01530846%201832.27782463%20679.4156241%201834.64531334%20676.8125%201837.0625%20C672.28436424%201841.22556682%20667.58986729%201845.04964306%20662.72802734%201848.80688477%20C658.76816735%201851.87383515%20654.89260927%201855.02304957%20651.04980469%201858.23535156%20C642.11958177%201865.69578282%20632.89061882%201872.64530815%20623.47070312%201879.47265625%20C621.25005402%201881.09607833%20619.05139889%201882.74445617%20616.859375%201884.40625%20C601.99002628%201895.6324397%20586.41223305%201905.80978513%20570.85534668%201916.04760742%20C568.60118411%201917.5325718%20566.3516835%201919.0245461%20564.1015625%201920.515625%20C544.67940459%201933.3113726%20524.47697034%201944.94533071%20504.125%201956.1875%20C502.63226562%201957.01217773%20502.63226562%201957.01217773%20501.109375%201957.85351562%20C425.12550951%201999.65428426%20344.00442425%202031.25797004%20139.19140625%202076.15625%20C138.04930191%202076.3149482%20138.04930191%202076.3149482%20136.88412476%202076.47685242%20C133.5828542%202076.92098977%20130.46476193%202077.1875%20127.125%202077.1875%20C127.125%201840.5775%20127.125%201603.9675%20127.125%201360.1875%20C220.185%201360.1875%20313.245%201360.1875%20409.125%201360.1875%20C409.455%201357.2175%20409.785%201354.2475%20410.125%201351.1875%20C410.51943974%201348.75034978%20410.94040505%201346.31734207%20411.38798523%201343.88938904%20C411.51213267%201343.21104765%20411.63628011%201342.53270626%20411.7641896%201341.83380908%20C412.17662934%201339.58452582%20412.59355551%201337.33609905%20413.01049805%201335.08764648%20C413.31060355%201333.45620854%20413.61042778%201331.82471884%20413.90999508%201330.19318199%20C414.7269403%201325.74827455%20415.54779155%201321.30409627%20416.3692956%201316.86002946%20C417.24572562%201312.11485646%20418.11843243%201307.36899873%20418.99154663%201302.62321472%20C420.48537353%201294.50627273%20421.9814042%201286.38973962%20423.47903442%201278.27349854%20C425.81168262%201265.63190818%20428.14049765%201252.98961352%20430.46850586%201240.34716797%20C431.24634234%201236.12322799%20432.02419399%201231.8992908%20432.80204773%201227.675354%20C432.994336%201226.63115295%20433.18662427%201225.5869519%20433.38473946%201224.5111084%20C434.5517232%201218.17414514%20435.71909736%201211.83725394%20436.88678104%201205.50041962%20C441.55237596%201180.18084381%20446.20685276%201154.85928396%20450.83816981%201129.53341508%20C451.36915395%201126.62995752%20451.90032052%201123.72653335%20452.43148345%201120.82310849%20C454.7135128%201108.34887001%20456.99400124%201095.87435226%20459.2702446%201083.39905643%20C460.11947451%201078.74719247%20460.97040771%201074.09564133%20461.82182693%201069.44417763%20C462.20864513%201067.32864122%20462.59468226%201065.21296182%20462.97986984%201063.09712791%20C463.49512112%201060.26702672%20464.01297143%201057.43741349%20464.53149414%201054.60791016%20C464.7546708%201053.37627467%20464.7546708%201053.37627467%20464.98235607%201052.11975765%20C465.54550464%201049.05918558%20466.13944488%201046.14416537%20467.125%201043.1875%20C354.925%201043.1875%20242.725%201043.1875%20127.125%201043.1875%20C127.125%20820.4875%20127.125%20820.4875%20166.125%20767.1875%20C166.7334375%20766.33671875%20167.341875%20765.4859375%20167.96875%20764.609375%20C199.0356318%20723.45938244%20248.58254326%20706.8968135%20297.84375%20699.99609375%20C322.20646732%20696.77183572%20346.69767153%20695.99322627%20371.25%20696.0625%20C372.24480377%20696.0640509%20373.23960754%20696.06560181%20374.26455688%20696.06719971%20C403.35847437%20696.11952535%20432.44731149%20696.57260512%20461.5%20698.1875%20C462.25566254%20698.22929382%20463.01132507%20698.27108765%20463.78988647%20698.31414795%20C470.62665266%20698.70012868%20477.33423541%20699.21739077%20484.125%20700.1875%20C484.125%20605.1475%20484.125%20510.1075%20484.125%20412.1875%20C481.485%20411.8575%20478.845%20411.5275%20476.125%20411.1875%20C473.70350389%20410.74024359%20471.28672476%20410.26678913%20468.875%20409.76953125%20C467.46953422%20409.4842065%20466.06392837%20409.19957106%20464.65820312%20408.91552734%20C463.922229%20408.76637878%20463.18625488%20408.61723022%20462.42797852%20408.46356201%20C418.7251371%20399.6667031%20374.4681051%20394.56312206%20330.0625%20390.9375%20C329.04600372%20390.85441589%20328.02950745%20390.77133179%20326.98220825%20390.68572998%20C320.36555577%20390.15035922%20313.7468795%20389.65356543%20307.125%20389.1875%20C306.36406036%20389.13201996%20305.60312073%20389.07653992%20304.81912231%20389.01937866%20C288.301523%20387.84651093%20271.73733416%20387.98693467%20255.1875%20388%20C254.05323767%20388.00040031%20254.05323767%20388.00040031%20252.89606094%20388.00080872%20C229.91924016%20388.01099063%20207.02914183%20388.18285444%20184.125%20390.1875%20C183.00738281%20390.28224609%20183.00738281%20390.28224609%20181.8671875%20390.37890625%20C114.16045062%20396.12440306%2047.41054353%20409.25726526%20-14.875%20437.1875%20C-16.27419678%20437.81374268%20-16.27419678%20437.81374268%20-17.70166016%20438.45263672%20C-44.8755615%20450.73179164%20-70.7002496%20466.38909731%20-93.875%20485.1875%20C-94.78636719%20485.90808594%20-95.69773437%20486.62867188%20-96.63671875%20487.37109375%20C-114.16450229%20501.39832137%20-131.13485733%20517.41657747%20-144.875%20535.1875%20C-145.78582026%20536.30083746%20-146.70012221%20537.41133222%20-147.6171875%20538.51953125%20C-202.325014%20604.95432352%20-228.49253665%20690.27902932%20-246.625%20832.0625%20C-246.68425659%20832.8826358%20-246.74351318%20833.70277161%20-246.80456543%20834.54776001%20C-248.70329112%20861.39656802%20-249.05219436%20888.25161023%20-249.17891693%20915.15448761%20C-249.198928%20919.23179463%20-249.22365365%20923.30906858%20-249.2479248%20927.38635254%20C-249.31571778%20939.21587622%20-249.37618676%20951.04544096%20-249.4375%20962.875%20C-249.581875%20989.378125%20-249.72625%201015.88125%20-249.875%201043.1875%20C-320.825%201043.1875%20-391.775%201043.1875%20-464.875%201043.1875%20C-464.875%201147.7975%20-464.875%201252.4075%20-464.875%201360.1875%20C-393.925%201360.1875%20-322.975%201360.1875%20-249.875%201360.1875%20C-249.875%201589.2075%20-249.875%201818.2275%20-249.875%202054.1875%20C-270.62367633%202049.57668304%20-270.62367633%202049.57668304%20-277.3359375%202047.59375%20C-278.12266342%202047.36577728%20-278.90938934%202047.13780457%20-279.71995544%202046.90292358%20C-282.23215489%202046.17167304%20-284.74129526%202045.43064444%20-287.25%202044.6875%20C-288.12707611%202044.42938538%20-289.00415222%202044.17127075%20-289.9078064%202043.90533447%20C-307.71271842%202038.65736425%20-325.33810391%202032.92982037%20-342.88323975%202026.8737793%20C-344.78762714%202026.21760512%20-346.69382179%202025.56668313%20-348.60009766%202024.91601562%20C-386.39071379%202011.98422192%20-423.03805933%201995.76788599%20-458.875%201978.1875%20C-460.08801596%201977.59464997%20-461.30107048%201977.00187885%20-462.51416016%201976.40917969%20C-478.32368152%201968.67434904%20-493.85789195%201960.60770523%20-509.09521484%201951.78466797%20C-511.96370924%201950.13653075%20-514.8478377%201948.51946121%20-517.73828125%201946.91015625%20C-529.19760797%201940.52415668%20-540.40320532%201933.86804094%20-551.42675781%201926.75732422%20C-554.02158841%201925.09350683%20-556.63012701%201923.45302978%20-559.2421875%201921.81640625%20C-570.92292696%201914.48148611%20-582.3192026%201906.8345234%20-593.55371094%201898.83398438%20C-595.74838809%201897.2773055%20-597.95339131%201895.73697652%20-600.1640625%201894.203125%20C-610.85023778%201886.77100591%20-621.20735707%201878.93827558%20-631.52050781%201870.99853516%20C-633.58006511%201869.41435888%20-635.64392053%201867.83613925%20-637.7109375%201866.26171875%20C-647.39068031%201858.87917139%20-656.7664934%201851.16037524%20-666.03686523%201843.27368164%20C-669.46521372%201840.36174562%20-672.93465337%201837.50993757%20-676.4375%201834.6875%20C-681.51539439%201830.55708445%20-686.32063853%201826.17918232%20-691.1171875%201821.73046875%20C-693.27840548%201819.73761761%20-695.45846969%201817.79042215%20-697.6875%201815.875%20C-707.03725713%201807.75496041%20-715.97948201%201799.16676038%20-724.67578125%201790.35546875%20C-727.32888836%201787.74006121%20-730.11690846%201785.32121245%20-732.94140625%201782.89453125%20C-737.6422449%201778.74449794%20-741.99477244%201774.2690599%20-746.0625%201769.5%20C-749.31932797%201765.70411085%20-752.82135682%201762.20154687%20-756.375%201758.6875%20C-760.41419926%201754.68856796%20-764.33221615%201750.66891397%20-768.01171875%201746.33203125%20C-770.01595855%201744.02526469%20-772.08841257%201741.79447697%20-774.17431641%201739.56176758%20C-779.24905932%201734.12926079%20-784.08240797%201728.59009671%20-788.73828125%201722.7890625%20C-790.83382494%201720.23763271%20-793.01463155%201717.80423227%20-795.25%201715.375%20C-799.23008466%201711.00241564%20-802.88847497%201706.44580709%20-806.50952148%201701.77758789%20C-809.51028782%201697.91192218%20-812.56461153%201694.09842864%20-815.66894531%201690.31542969%20C-827.35908879%201676.06915264%20-838.17666647%201661.18693681%20-848.875%201646.1875%20C-849.71417969%201645.0121167%20-849.71417969%201645.0121167%20-850.5703125%201643.81298828%20C-860.04321275%201630.50929475%20-869.07734538%201616.94618682%20-877.875%201603.1875%20C-878.4952002%201602.21796387%20-879.11540039%201601.24842773%20-879.75439453%201600.24951172%20C-894.48377963%201577.14060668%20-908.02989957%201553.38947828%20-920.875%201529.1875%20C-921.41946777%201528.1670459%20-921.96393555%201527.1465918%20-922.52490234%201526.09521484%20C-950.92205251%201472.73772329%20-973.77638387%201416.81788606%20-992.20300293%201359.27978516%20C-992.84281907%201357.28769639%20-993.48916038%201355.2978585%20-994.13769531%201353.30859375%20C-1021.07962966%201270.16357352%20-1034.75061722%201183.25969817%20-1039.875%201096.1875%20C-1039.98303955%201094.41971191%20-1039.98303955%201094.41971191%20-1040.09326172%201092.61621094%20C-1045.63647387%20997.60231986%20-1035.95069819%20900.80955586%20-988.55480957%20714.24517822%20C-987.91148971%20712.29794869%20-987.27345606%20710.34897503%20-986.63574219%20708.39990234%20C-972.198078%20664.45683716%20-953.94499844%20621.94702594%20-933.50244141%20580.48925781%20C-931.92365217%20577.28620566%20-930.35774073%20574.07710499%20-928.79296875%20570.8671875%20C-922.47719203%20557.98975189%20-915.66417948%20545.46930097%20-908.50732422%20533.04199219%20C-906.88104815%20530.19807658%20-905.28202374%20527.34055521%20-903.69140625%20524.4765625%20C-886.12900281%20492.89821761%20-866.14484941%20462.40194511%20-844.875%20433.1875%20C-844.04911377%20432.04933838%20-844.04911377%20432.04933838%20-843.20654297%20430.88818359%20C-836.06130995%20421.05881457%20-828.7732954%20411.3658484%20-821.20166016%20401.86132812%20C-819.83665981%20400.13912673%20-818.48504984%20398.40715176%20-817.13671875%20396.671875%20C-812.17288962%20390.29043596%20-807.11257707%20384.01899817%20-801.859375%20377.87304688%20C-798.97588109%20374.499359%20-796.15862156%20371.08223817%20-793.375%20367.625%20C-789.24809794%20362.55142507%20-784.87397442%20357.75008858%20-780.4296875%20352.95703125%20C-778.37386278%20350.72831607%20-776.35883043%20348.47982081%20-774.375%20346.1875%20C-770.15531164%20341.33087754%20-765.80192045%20336.59811629%20-761.43359375%20331.87548828%20C-760.40256762%20330.75886631%20-759.37387963%20329.64008046%20-758.34765625%20328.51904297%20C-749.45659923%20318.81038563%20-740.23533473%20309.44175692%20-730.9375%20300.125%20C-730.35145996%20299.53637177%20-729.76541992%20298.94774353%20-729.16162109%20298.34127808%20C-717.61447074%20286.75390994%20-717.61447074%20286.75390994%20-711.50756836%20281.60571289%20C-709.70928757%20280.04354553%20-708.04247572%20278.38787503%20-706.375%20276.6875%20C-703.40764677%20273.67336418%20-700.30154708%20270.88832667%20-697.09765625%20268.12890625%20C-694.54523117%20265.89945939%20-692.05612486%20263.60748618%20-689.5625%20261.3125%20C-685.09977168%20257.24209944%20-680.51242%20253.38573091%20-675.8125%20249.59375%20C-672.51145806%20246.889705%20-669.28754385%20244.10617139%20-666.0625%20241.3125%20C-659.73423409%20235.85005238%20-653.2238193%20230.66076967%20-646.61621094%20225.54199219%20C-644.88545643%20224.19563408%20-643.16395475%20222.83833893%20-641.4453125%20221.4765625%20C-633.37371493%20215.0832974%20-625.20347731%20208.83326471%20-616.92724609%20202.70703125%20C-615.59760536%20201.72253399%20-614.26969096%20200.73569917%20-612.94384766%20199.74609375%20C-591.09427344%20183.46841045%20-568.10643973%20168.4136987%20-544.875%20154.1875%20C-544.10043457%20153.71231934%20-543.32586914%20153.23713867%20-542.52783203%20152.74755859%20C-529.15844276%20144.57334691%20-515.5714239%20136.79891975%20-501.875%20129.1875%20C-500.9586377%20128.67638672%20-500.04227539%20128.16527344%20-499.09814453%20127.63867188%20C-471.10385829%20112.0735903%20-442.34223185%2097.74699667%20-412.875%2085.1875%20C-412.1618866%2084.88326111%20-411.44877319%2084.57902222%20-410.71405029%2084.26556396%20C-385.762709%2073.64318405%20-360.52997695%2063.97343221%20-334.875%2055.1875%20C-334.15306458%2054.93997986%20-333.43112915%2054.69245972%20-332.68731689%2054.43743896%20C-249.37478965%2025.95429945%20-162.18869196%208.98545156%200%200%20Z%20'%20fill='%23FFFFFF'%20transform='translate(1040.875,-0.1875)'/%3e%3c/svg%3e", sa = {
|
|
@@ -3684,7 +3680,7 @@ const J2 = {
|
|
|
3684
3680
|
i === e.activeIndex && n.content ? (c(), h("div", ha, [
|
|
3685
3681
|
B(t.$slots, n?.step, {}, () => [
|
|
3686
3682
|
typeof n.content == "string" ? (c(), h(j, { key: 0 }, [
|
|
3687
|
-
K(
|
|
3683
|
+
K(T(n.content), 1)
|
|
3688
3684
|
], 64)) : (c(), I(de(n.content), { key: 1 }))
|
|
3689
3685
|
])
|
|
3690
3686
|
])) : C("", !0)
|
|
@@ -3744,7 +3740,7 @@ const J2 = {
|
|
|
3744
3740
|
},
|
|
3745
3741
|
emits: ["complete", "update:activeIndex"],
|
|
3746
3742
|
setup(e, { expose: t, emit: o }) {
|
|
3747
|
-
const n = e, i = o, a =
|
|
3743
|
+
const n = e, i = o, a = P(0), l = W(() => n.steps[a.value]);
|
|
3748
3744
|
bn(() => {
|
|
3749
3745
|
n.activeIndex !== void 0 && n.activeIndex !== null && (a.value = n.activeIndex);
|
|
3750
3746
|
});
|
|
@@ -3788,18 +3784,18 @@ const J2 = {
|
|
|
3788
3784
|
}, null, 2)) : (c(), I(de(d?.completedStepIcon), { key: 1 }))
|
|
3789
3785
|
], 64)) : (c(), h("img", ma))
|
|
3790
3786
|
], 64)) : (c(), h(j, { key: 1 }, [
|
|
3791
|
-
K(
|
|
3787
|
+
K(T(d.step || m + 1), 1)
|
|
3792
3788
|
], 64))
|
|
3793
3789
|
], 2),
|
|
3794
3790
|
p("div", ba, [
|
|
3795
3791
|
d.label ? (c(), h("span", {
|
|
3796
3792
|
key: 0,
|
|
3797
3793
|
class: A([{ active: m === a.value }, "step-label"])
|
|
3798
|
-
},
|
|
3794
|
+
}, T(d.label), 3)) : C("", !0),
|
|
3799
3795
|
d.subtitle ? (c(), h("span", {
|
|
3800
3796
|
key: 1,
|
|
3801
3797
|
class: A(["step-subtitle", { active: m === a.value }])
|
|
3802
|
-
},
|
|
3798
|
+
}, T(d.subtitle), 3)) : C("", !0),
|
|
3803
3799
|
n.direction === "vertical" && l.value?.content && m === a.value ? (c(), I(gn, {
|
|
3804
3800
|
key: 2,
|
|
3805
3801
|
"active-index": a.value,
|
|
@@ -3810,7 +3806,7 @@ const J2 = {
|
|
|
3810
3806
|
"onClick:next": r,
|
|
3811
3807
|
"onClick:previous": s
|
|
3812
3808
|
}, {
|
|
3813
|
-
[l.value.step]:
|
|
3809
|
+
[l.value.step]: H(() => [
|
|
3814
3810
|
B(u.$slots, l.value.step)
|
|
3815
3811
|
]),
|
|
3816
3812
|
_: 2
|
|
@@ -3828,7 +3824,7 @@ const J2 = {
|
|
|
3828
3824
|
"onClick:next": r,
|
|
3829
3825
|
"onClick:previous": s
|
|
3830
3826
|
}, {
|
|
3831
|
-
[l.value.step]:
|
|
3827
|
+
[l.value.step]: H(() => [
|
|
3832
3828
|
B(u.$slots, l.value.step)
|
|
3833
3829
|
]),
|
|
3834
3830
|
_: 2
|
|
@@ -3855,7 +3851,7 @@ const J2 = {
|
|
|
3855
3851
|
}
|
|
3856
3852
|
},
|
|
3857
3853
|
setup(e) {
|
|
3858
|
-
const t = ke(), o = e, n =
|
|
3854
|
+
const t = ke(), o = e, n = P(o.defaultIndex), i = (r) => {
|
|
3859
3855
|
n.value = r;
|
|
3860
3856
|
}, a = t?.default ? t.default().filter((r) => r?.props?.title) : [], l = W(() => a[n.value]);
|
|
3861
3857
|
return (r, s) => G(a).length ? (c(), h("div", {
|
|
@@ -3882,7 +3878,7 @@ const J2 = {
|
|
|
3882
3878
|
class: "icon"
|
|
3883
3879
|
}, null, 8, $a)) : C("", !0)
|
|
3884
3880
|
]),
|
|
3885
|
-
p("span", null,
|
|
3881
|
+
p("span", null, T(u.props?.title), 1)
|
|
3886
3882
|
], 8, ka)
|
|
3887
3883
|
], 8, Sa))), 128))
|
|
3888
3884
|
])
|
|
@@ -3891,7 +3887,7 @@ const J2 = {
|
|
|
3891
3887
|
appear: "",
|
|
3892
3888
|
name: "expand"
|
|
3893
3889
|
}, {
|
|
3894
|
-
default:
|
|
3890
|
+
default: H(() => [
|
|
3895
3891
|
p("div", Da, [
|
|
3896
3892
|
(c(), I(de(l.value)))
|
|
3897
3893
|
])
|
|
@@ -3916,7 +3912,7 @@ const J2 = {
|
|
|
3916
3912
|
break;
|
|
3917
3913
|
}
|
|
3918
3914
|
return t;
|
|
3919
|
-
},
|
|
3915
|
+
}, Oa = ["id"], Ta = ["aria-orientation"], La = ["id", "aria-label", "aria-selected", "onClick"], Ma = ["title"], Ba = ["onClick"], Ia = { role: "tabpanel" }, Aa = {
|
|
3920
3916
|
name: "TabView"
|
|
3921
3917
|
}, l0 = /* @__PURE__ */ N({
|
|
3922
3918
|
...Aa,
|
|
@@ -3965,7 +3961,7 @@ const J2 = {
|
|
|
3965
3961
|
"update:visibleTabs"
|
|
3966
3962
|
],
|
|
3967
3963
|
setup(e, { expose: t, emit: o }) {
|
|
3968
|
-
const n = e, i = o, a = ke(), l =
|
|
3964
|
+
const n = e, i = o, a = ke(), l = P(n.activeKey), r = P(!1), s = P(
|
|
3969
3965
|
n.visibleTabs?.length ? n.visibleTabs : n.tabs.map((g) => g.key)
|
|
3970
3966
|
), u = W(() => d.value.find((g) => g.key === l.value)?.children || $.value.find(
|
|
3971
3967
|
(g) => typeof g == "object" && g !== null && "props" in g && g.props?.key === l.value
|
|
@@ -4059,7 +4055,7 @@ const J2 = {
|
|
|
4059
4055
|
}, null, 2)) : C("", !0),
|
|
4060
4056
|
p("span", {
|
|
4061
4057
|
title: w.label
|
|
4062
|
-
},
|
|
4058
|
+
}, T(w.label), 9, Ma),
|
|
4063
4059
|
w.closable ? (c(), h("svg", {
|
|
4064
4060
|
key: 1,
|
|
4065
4061
|
height: "24",
|
|
@@ -4074,10 +4070,10 @@ const J2 = {
|
|
|
4074
4070
|
}, null, -1)
|
|
4075
4071
|
]), 8, Ba)) : C("", !0)
|
|
4076
4072
|
], 10, La))), 128))
|
|
4077
|
-
], 8,
|
|
4073
|
+
], 8, Ta),
|
|
4078
4074
|
p("div", Ia, [
|
|
4079
4075
|
typeof u.value == "string" ? (c(), h(j, { key: 0 }, [
|
|
4080
|
-
K(
|
|
4076
|
+
K(T(u.value), 1)
|
|
4081
4077
|
], 64)) : (c(), h(j, { key: 1 }, [
|
|
4082
4078
|
e.lazy ? (c(), h(j, { key: 1 }, [
|
|
4083
4079
|
u.value ? (c(), I(de(u.value), { key: 0 })) : C("", !0)
|
|
@@ -4088,12 +4084,12 @@ const J2 = {
|
|
|
4088
4084
|
])), 128))
|
|
4089
4085
|
], 64))
|
|
4090
4086
|
])
|
|
4091
|
-
], 10,
|
|
4087
|
+
], 10, Oa));
|
|
4092
4088
|
}
|
|
4093
|
-
}),
|
|
4089
|
+
}), _a = ["aria-label"], Pa = {
|
|
4094
4090
|
name: "Tooltip"
|
|
4095
4091
|
}, r0 = /* @__PURE__ */ N({
|
|
4096
|
-
...
|
|
4092
|
+
...Pa,
|
|
4097
4093
|
props: {
|
|
4098
4094
|
ariaLabel: {
|
|
4099
4095
|
default: "tooltip",
|
|
@@ -4120,7 +4116,7 @@ const J2 = {
|
|
|
4120
4116
|
}
|
|
4121
4117
|
},
|
|
4122
4118
|
setup(e) {
|
|
4123
|
-
const t = e, o =
|
|
4119
|
+
const t = e, o = P(null), n = P(null), i = P(null), a = P(!1), l = P(), r = P({ top: "0", left: "0" }), s = P([]), u = P(!1), f = P(null), d = ke(), { width: m, height: $ } = wt(), S = W(() => !!d.content);
|
|
4124
4120
|
Cn(() => {
|
|
4125
4121
|
window.removeEventListener("resize", E), s.value.forEach(({ element: y, listener: g }) => {
|
|
4126
4122
|
y.removeEventListener("scroll", g);
|
|
@@ -4201,7 +4197,7 @@ const J2 = {
|
|
|
4201
4197
|
}, [
|
|
4202
4198
|
B(y.$slots, "content")
|
|
4203
4199
|
], 6)) : C("", !0)
|
|
4204
|
-
], 40,
|
|
4200
|
+
], 40, _a));
|
|
4205
4201
|
}
|
|
4206
4202
|
}), Na = ["aria-label", "href", "data-youtube-video-token"], Fa = ["src", "alt", "data-aspect-ratio"], Va = ["href"], ja = {
|
|
4207
4203
|
name: "YoutubeFacade"
|
|
@@ -4286,18 +4282,18 @@ const J2 = {
|
|
|
4286
4282
|
}
|
|
4287
4283
|
};
|
|
4288
4284
|
export {
|
|
4289
|
-
|
|
4285
|
+
Za as Accordion,
|
|
4290
4286
|
to as BadgeComponent,
|
|
4291
4287
|
le as ButtonElement,
|
|
4292
4288
|
vo as Card,
|
|
4293
4289
|
tn as ConfirmationModal,
|
|
4294
|
-
|
|
4290
|
+
Ha as Data,
|
|
4295
4291
|
Xa as DebouncedInput,
|
|
4296
4292
|
qa as Divider,
|
|
4297
4293
|
ui as Dropdown,
|
|
4298
4294
|
Ya as Errors,
|
|
4299
4295
|
n0 as FacebookSignInButton,
|
|
4300
|
-
|
|
4296
|
+
_i as FileCard,
|
|
4301
4297
|
Ua as FilesList,
|
|
4302
4298
|
o0 as GoogleSignInButton,
|
|
4303
4299
|
Ka as GridContainer,
|