@prefabs.tech/vue3-ui 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PrefabsTechVue3UI.es.js +509 -481
- package/dist/PrefabsTechVue3UI.umd.js +2 -2
- package/dist/src/Modal/Index.vue.d.ts +11 -0
- package/dist/src/Modal/Index.vue.d.ts.map +1 -1
- package/dist/src/Page/Index.vue.d.ts +14 -2
- package/dist/src/Page/Index.vue.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/page.d.ts +8 -0
- package/dist/src/types/page.d.ts.map +1 -0
- package/dist/vue3-ui.css +1 -1
- package/package.json +2 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, ref as _, useSlots as Se, createElementBlock as p, createCommentVNode as k, unref as Z, openBlock as d, normalizeClass as N, Fragment as H, renderList as le, createElementVNode as h, createVNode as re, withDirectives as bt, vShow as Ct, toDisplayString as O, Transition as gn, withCtx as q, createBlock as F, resolveDynamicComponent as _e, computed as W, renderSlot as I, createTextVNode as Q, onMounted as yt, nextTick as Je, getCurrentInstance as qt, watch as Ve, getCurrentScope as Vn, onScopeDispose as zn, hasInjectionContext as mn, inject as jn, toValue as Ce, shallowRef as Vt, watchEffect as Rn, onBeforeUnmount as vn, normalizeStyle as Ne, mergeProps as fe, createSlots as Hn, resolveComponent as bn, h as Qt, withModifiers as Zn } from "vue";
|
|
2
2
|
const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded", "onClick"], Yn = ["src"], Un = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "pane",
|
|
5
5
|
role: "region"
|
|
6
6
|
}, Xn = {
|
|
7
7
|
name: "Accordion"
|
|
8
|
-
}, R0 = /* @__PURE__ */
|
|
8
|
+
}, R0 = /* @__PURE__ */ P({
|
|
9
9
|
...Xn,
|
|
10
10
|
props: {
|
|
11
11
|
canSelfCollapse: {
|
|
@@ -28,12 +28,12 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
|
|
|
28
28
|
const t = e, n = _(t.defaultIndex), o = (l) => {
|
|
29
29
|
!t.canSelfCollapse || n.value !== l ? n.value = l : n.value = -1;
|
|
30
30
|
}, i = Se(), a = i?.default ? i.default().filter((l) => l?.props?.title) : null;
|
|
31
|
-
return (l, r) =>
|
|
31
|
+
return (l, r) => Z(a) ? (d(), p("div", {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: N(["accordion", t.direction]),
|
|
34
34
|
"aria-orientation": t.direction
|
|
35
35
|
}, [
|
|
36
|
-
(d(!0), p(
|
|
36
|
+
(d(!0), p(H, null, le(Z(a), (s, u) => (d(), p("section", {
|
|
37
37
|
key: u,
|
|
38
38
|
"data-expanded": u === n.value
|
|
39
39
|
}, [
|
|
@@ -53,13 +53,13 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
|
|
|
53
53
|
h("span", null, O(s?.props?.title), 1)
|
|
54
54
|
], 8, Wn)
|
|
55
55
|
]),
|
|
56
|
-
|
|
56
|
+
re(gn, {
|
|
57
57
|
appear: "",
|
|
58
58
|
name: "expand"
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
60
|
+
default: q(() => [
|
|
61
61
|
u === n.value ? (d(), p("div", Un, [
|
|
62
|
-
(d(),
|
|
62
|
+
(d(), F(_e(s)))
|
|
63
63
|
])) : k("", !0)
|
|
64
64
|
]),
|
|
65
65
|
_: 2
|
|
@@ -78,7 +78,7 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
|
|
|
78
78
|
class: "icon-right"
|
|
79
79
|
}, eo = {
|
|
80
80
|
name: "BadgeComponent"
|
|
81
|
-
}, to = /* @__PURE__ */
|
|
81
|
+
}, to = /* @__PURE__ */ P({
|
|
82
82
|
...eo,
|
|
83
83
|
props: {
|
|
84
84
|
iconLeft: {
|
|
@@ -108,11 +108,11 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
setup(e) {
|
|
111
|
-
const t = e, n = Se(), o =
|
|
111
|
+
const t = e, n = Se(), o = W(() => ["badge", t.rounded && "rounded", t.severity].filter(Boolean).join(" "));
|
|
112
112
|
return (i, a) => (d(), p("span", {
|
|
113
113
|
class: N(o.value)
|
|
114
114
|
}, [
|
|
115
|
-
e.iconLeft ||
|
|
115
|
+
e.iconLeft || Z(n).iconLeft ? (d(), p("span", Kn, [
|
|
116
116
|
I(i.$slots, "iconLeft", {}, () => [
|
|
117
117
|
h("i", {
|
|
118
118
|
class: N(e.iconLeft)
|
|
@@ -120,7 +120,7 @@ const Gn = ["aria-orientation"], qn = ["data-expanded"], Wn = ["aria-expanded",
|
|
|
120
120
|
])
|
|
121
121
|
])) : k("", !0),
|
|
122
122
|
e.label ? (d(), p("div", Qn, O(e.label), 1)) : k("", !0),
|
|
123
|
-
e.iconRight ||
|
|
123
|
+
e.iconRight || Z(n).iconRight ? (d(), p("span", Jn, [
|
|
124
124
|
I(i.$slots, "iconRight", {}, () => [
|
|
125
125
|
h("i", {
|
|
126
126
|
class: N(e.iconRight)
|
|
@@ -151,7 +151,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
151
151
|
class: "icon-right"
|
|
152
152
|
}, so = {
|
|
153
153
|
name: "ButtonElement"
|
|
154
|
-
},
|
|
154
|
+
}, ue = /* @__PURE__ */ P({
|
|
155
155
|
...so,
|
|
156
156
|
props: {
|
|
157
157
|
ariaLabel: {
|
|
@@ -215,7 +215,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
215
215
|
},
|
|
216
216
|
emits: ["click"],
|
|
217
217
|
setup(e, { emit: t }) {
|
|
218
|
-
const n = t, o = e, i = Se(), a =
|
|
218
|
+
const n = t, o = e, i = Se(), a = W(() => [
|
|
219
219
|
"button",
|
|
220
220
|
o.severity,
|
|
221
221
|
o.size,
|
|
@@ -224,11 +224,11 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
224
224
|
o.loading && "loading",
|
|
225
225
|
o.rounded && "rounded",
|
|
226
226
|
r.value && "disabled"
|
|
227
|
-
].filter(Boolean).join(" ")), l =
|
|
227
|
+
].filter(Boolean).join(" ")), l = W(() => o.to ? "link" : "button"), r = W(() => o.disabled || o.loading);
|
|
228
228
|
function s() {
|
|
229
229
|
n("click");
|
|
230
230
|
}
|
|
231
|
-
return (u, f) => (d(),
|
|
231
|
+
return (u, f) => (d(), F(_e(e.to ? "a" : "button"), {
|
|
232
232
|
"aria-label": e.ariaLabel,
|
|
233
233
|
class: N(a.value),
|
|
234
234
|
disabled: !e.to && r.value,
|
|
@@ -237,8 +237,8 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
237
237
|
title: e.title,
|
|
238
238
|
onClick: f[0] || (f[0] = (c) => !e.to && s())
|
|
239
239
|
}, {
|
|
240
|
-
default:
|
|
241
|
-
e.iconLeft ||
|
|
240
|
+
default: q(() => [
|
|
241
|
+
e.iconLeft || Z(i).iconLeft ? (d(), p("span", ao, [
|
|
242
242
|
I(u.$slots, "iconLeft", {}, () => [
|
|
243
243
|
h("i", {
|
|
244
244
|
class: N(e.iconLeft)
|
|
@@ -250,14 +250,14 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
250
250
|
h("span", null, O(e.label), 1)
|
|
251
251
|
])
|
|
252
252
|
])) : k("", !0),
|
|
253
|
-
e.iconRight ||
|
|
253
|
+
e.iconRight || Z(i).iconRight ? (d(), p("span", ro, [
|
|
254
254
|
I(u.$slots, "iconRight", {}, () => [
|
|
255
255
|
h("i", {
|
|
256
256
|
class: N(e.iconRight)
|
|
257
257
|
}, null, 2)
|
|
258
258
|
])
|
|
259
259
|
])) : k("", !0),
|
|
260
|
-
e.loading ? (d(),
|
|
260
|
+
e.loading ? (d(), F(wt, {
|
|
261
261
|
key: 3,
|
|
262
262
|
class: "loading-button"
|
|
263
263
|
})) : k("", !0)
|
|
@@ -273,7 +273,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
273
273
|
class: "card-footer"
|
|
274
274
|
}, go = {
|
|
275
275
|
name: "Card"
|
|
276
|
-
}, mo = /* @__PURE__ */
|
|
276
|
+
}, mo = /* @__PURE__ */ P({
|
|
277
277
|
...go,
|
|
278
278
|
props: {
|
|
279
279
|
title: {
|
|
@@ -298,7 +298,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
298
298
|
}
|
|
299
299
|
}), vo = { class: "label" }, bo = { class: "value" }, Co = {
|
|
300
300
|
name: "DataElement"
|
|
301
|
-
}, H0 = /* @__PURE__ */
|
|
301
|
+
}, H0 = /* @__PURE__ */ P({
|
|
302
302
|
...Co,
|
|
303
303
|
props: {
|
|
304
304
|
caption: {
|
|
@@ -342,7 +342,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
342
342
|
}
|
|
343
343
|
}), yo = ["disabled"], wo = { class: "label" }, So = {
|
|
344
344
|
name: "LoadingButton"
|
|
345
|
-
}, ko = /* @__PURE__ */
|
|
345
|
+
}, ko = /* @__PURE__ */ P({
|
|
346
346
|
...So,
|
|
347
347
|
props: {
|
|
348
348
|
disabled: {
|
|
@@ -368,7 +368,7 @@ const wt = /* @__PURE__ */ et(no, [["render", io], ["__scopeId", "data-v-4c97cef
|
|
|
368
368
|
h("div", wo, [
|
|
369
369
|
h("span", null, O(e.label), 1)
|
|
370
370
|
]),
|
|
371
|
-
e.loading ? (d(),
|
|
371
|
+
e.loading ? (d(), F(wt, { key: 0 })) : k("", !0)
|
|
372
372
|
], 10, yo));
|
|
373
373
|
}
|
|
374
374
|
}), $o = /* @__PURE__ */ et(ko, [["__scopeId", "data-v-3fdbc7b3"]]), Eo = {
|
|
@@ -379,14 +379,14 @@ function To(e, t, n, o, i, a) {
|
|
|
379
379
|
}
|
|
380
380
|
const Z0 = /* @__PURE__ */ et(Eo, [["render", To], ["__scopeId", "data-v-bf8003ec"]]);
|
|
381
381
|
function xo(e) {
|
|
382
|
-
return Vn() ? (
|
|
382
|
+
return Vn() ? (zn(e), !0) : !1;
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const Et = /* @__PURE__ */ new WeakMap(), Lo = (...e) => {
|
|
385
385
|
var t;
|
|
386
|
-
const n = e[0], o = (t =
|
|
386
|
+
const n = e[0], o = (t = qt()) == null ? void 0 : t.proxy;
|
|
387
387
|
if (o == null && !mn())
|
|
388
388
|
throw new Error("injectLocal must be called in setup");
|
|
389
|
-
return o &&
|
|
389
|
+
return o && Et.has(o) && n in Et.get(o) ? Et.get(o)[n] : jn(...e);
|
|
390
390
|
}, Cn = typeof window < "u" && typeof document < "u";
|
|
391
391
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
392
392
|
const Oo = Object.prototype.toString, Mo = (e) => Oo.call(e) === "[object Object]", Be = () => {
|
|
@@ -399,15 +399,15 @@ function Jt(e) {
|
|
|
399
399
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
400
400
|
}
|
|
401
401
|
function Io(e) {
|
|
402
|
-
return
|
|
402
|
+
return qt();
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Dt(e) {
|
|
405
405
|
return Array.isArray(e) ? e : [e];
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ao(e, t = !0, n) {
|
|
408
408
|
Io() ? yt(e, n) : t ? e() : Je(e);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Po(e, t, n) {
|
|
411
411
|
return Ve(
|
|
412
412
|
e,
|
|
413
413
|
t,
|
|
@@ -426,16 +426,16 @@ function Ze(e) {
|
|
|
426
426
|
function De(...e) {
|
|
427
427
|
const t = [], n = () => {
|
|
428
428
|
t.forEach((r) => r()), t.length = 0;
|
|
429
|
-
}, o = (r, s, u, f) => (r.addEventListener(s, u, f), () => r.removeEventListener(s, u, f)), i =
|
|
430
|
-
const r =
|
|
429
|
+
}, o = (r, s, u, f) => (r.addEventListener(s, u, f), () => r.removeEventListener(s, u, f)), i = W(() => {
|
|
430
|
+
const r = Dt(Ce(e[0])).filter((s) => s != null);
|
|
431
431
|
return r.every((s) => typeof s != "string") ? r : void 0;
|
|
432
|
-
}), a =
|
|
432
|
+
}), a = Po(
|
|
433
433
|
() => {
|
|
434
434
|
var r, s;
|
|
435
435
|
return [
|
|
436
436
|
(s = (r = i.value) == null ? void 0 : r.map((u) => Ze(u))) != null ? s : [St].filter((u) => u != null),
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
Dt(Ce(i.value ? e[1] : e[0])),
|
|
438
|
+
Dt(Z(i.value ? e[2] : e[1])),
|
|
439
439
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
440
440
|
Ce(i.value ? e[3] : e[2])
|
|
441
441
|
];
|
|
@@ -459,7 +459,7 @@ function De(...e) {
|
|
|
459
459
|
return xo(n), l;
|
|
460
460
|
}
|
|
461
461
|
let en = !1;
|
|
462
|
-
function
|
|
462
|
+
function Wt(e, t, n = {}) {
|
|
463
463
|
const { window: o = St, ignore: i = [], capture: a = !0, detectIframe: l = !1, controls: r = !1 } = n;
|
|
464
464
|
if (!o)
|
|
465
465
|
return r ? { stop: Be, cancel: Be, trigger: Be } : Be;
|
|
@@ -525,22 +525,22 @@ function qt(e, t, n = {}) {
|
|
|
525
525
|
} : M;
|
|
526
526
|
}
|
|
527
527
|
function No() {
|
|
528
|
-
const e =
|
|
528
|
+
const e = Vt(!1), t = qt();
|
|
529
529
|
return t && yt(() => {
|
|
530
530
|
e.value = !0;
|
|
531
531
|
}, t), e;
|
|
532
532
|
}
|
|
533
533
|
function Fo(e) {
|
|
534
534
|
const t = No();
|
|
535
|
-
return
|
|
535
|
+
return W(() => (t.value, !!e()));
|
|
536
536
|
}
|
|
537
537
|
const Vo = Symbol("vueuse-ssr-width");
|
|
538
|
-
function
|
|
538
|
+
function zo() {
|
|
539
539
|
const e = mn() ? Lo(Vo, null) : null;
|
|
540
540
|
return typeof e == "number" ? e : void 0;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
const { window: n = St, ssrWidth: o =
|
|
542
|
+
function jo(e, t = {}) {
|
|
543
|
+
const { window: n = St, ssrWidth: o = zo() } = t, i = Fo(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = _(typeof o == "number"), l = Vt(), r = Vt(!1), s = (u) => {
|
|
544
544
|
r.value = u.matches;
|
|
545
545
|
};
|
|
546
546
|
return Rn(() => {
|
|
@@ -555,9 +555,9 @@ function zo(e, t = {}) {
|
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
i.value && (l.value = n.matchMedia(Ce(e)), r.value = l.value.matches);
|
|
558
|
-
}), De(l, "change", s, { passive: !0 }),
|
|
558
|
+
}), De(l, "change", s, { passive: !0 }), W(() => r.value);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function kt(e = {}) {
|
|
561
561
|
const {
|
|
562
562
|
window: t = St,
|
|
563
563
|
initialWidth: n = Number.POSITIVE_INFINITY,
|
|
@@ -574,10 +574,10 @@ function Wt(e = {}) {
|
|
|
574
574
|
r.value = Math.round(c * $), s.value = Math.round(v * $);
|
|
575
575
|
} else a ? (r.value = t.innerWidth, s.value = t.innerHeight) : (r.value = t.document.documentElement.clientWidth, s.value = t.document.documentElement.clientHeight);
|
|
576
576
|
};
|
|
577
|
-
u(),
|
|
577
|
+
u(), Ao(u);
|
|
578
578
|
const f = { passive: !0 };
|
|
579
579
|
if (De("resize", u, f), t && l === "visual" && t.visualViewport && De(t.visualViewport, "resize", u, f), i) {
|
|
580
|
-
const c =
|
|
580
|
+
const c = jo("(orientation: portrait)");
|
|
581
581
|
Ve(c, () => u());
|
|
582
582
|
}
|
|
583
583
|
return { width: r, height: s };
|
|
@@ -587,7 +587,7 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
587
587
|
class: "modal-body"
|
|
588
588
|
}, Zo = { class: "modal-footer" }, Go = {
|
|
589
589
|
name: "ConfirmationModal"
|
|
590
|
-
}, tn = /* @__PURE__ */
|
|
590
|
+
}, tn = /* @__PURE__ */ P({
|
|
591
591
|
...Go,
|
|
592
592
|
props: {
|
|
593
593
|
divider: {
|
|
@@ -606,10 +606,10 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
606
606
|
emits: ["on:confirm", "on:close"],
|
|
607
607
|
setup(e, { emit: t }) {
|
|
608
608
|
const n = t, o = e, i = _();
|
|
609
|
-
|
|
609
|
+
Wt(i, (s) => {
|
|
610
610
|
r();
|
|
611
611
|
});
|
|
612
|
-
const a =
|
|
612
|
+
const a = W(() => ["modal", o.divider && "divided-modal"].filter(Boolean).join(" "));
|
|
613
613
|
function l() {
|
|
614
614
|
n("on:confirm");
|
|
615
615
|
}
|
|
@@ -653,13 +653,13 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
653
653
|
])),
|
|
654
654
|
h("div", Zo, [
|
|
655
655
|
I(s.$slots, "footer", {}, () => [
|
|
656
|
-
|
|
656
|
+
re(ue, {
|
|
657
657
|
size: "small",
|
|
658
658
|
label: "Cancel",
|
|
659
659
|
severity: "secondary",
|
|
660
660
|
onClick: u[1] || (u[1] = (f) => r())
|
|
661
661
|
}),
|
|
662
|
-
|
|
662
|
+
re(ue, {
|
|
663
663
|
size: "small",
|
|
664
664
|
label: "Confirm",
|
|
665
665
|
severity: "primary",
|
|
@@ -673,7 +673,7 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
673
673
|
}
|
|
674
674
|
}), qo = ["data-aria-orientation"], Wo = {
|
|
675
675
|
name: "DividerElement"
|
|
676
|
-
}, G0 = /* @__PURE__ */
|
|
676
|
+
}, G0 = /* @__PURE__ */ P({
|
|
677
677
|
...Wo,
|
|
678
678
|
props: {
|
|
679
679
|
orientation: {
|
|
@@ -715,7 +715,7 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
715
715
|
);
|
|
716
716
|
return i === "Invalid Date" ? null : i;
|
|
717
717
|
}, wn = (e) => {
|
|
718
|
-
const { width: t, height: n } =
|
|
718
|
+
const { width: t, height: n } = kt(), o = {
|
|
719
719
|
top: e.top,
|
|
720
720
|
bottom: n.value - e.bottom,
|
|
721
721
|
left: e.left,
|
|
@@ -733,14 +733,14 @@ const Ro = { class: "modal-wrapper" }, Ho = {
|
|
|
733
733
|
}
|
|
734
734
|
return t;
|
|
735
735
|
}, Ko = (e) => e === "sessionStorage" ? sessionStorage : localStorage;
|
|
736
|
-
let
|
|
736
|
+
let Tt = null;
|
|
737
737
|
function Qo(e, t) {
|
|
738
738
|
const n = _();
|
|
739
739
|
return new Promise((o) => {
|
|
740
740
|
Ve(
|
|
741
741
|
() => e,
|
|
742
742
|
(i) => {
|
|
743
|
-
|
|
743
|
+
Tt && clearTimeout(Tt), Tt = setTimeout(() => {
|
|
744
744
|
n.value = i, o(n);
|
|
745
745
|
}, t);
|
|
746
746
|
},
|
|
@@ -750,7 +750,7 @@ function Qo(e, t) {
|
|
|
750
750
|
}
|
|
751
751
|
const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
752
752
|
name: "Popup"
|
|
753
|
-
}, ti = /* @__PURE__ */
|
|
753
|
+
}, ti = /* @__PURE__ */ P({
|
|
754
754
|
...ei,
|
|
755
755
|
props: {
|
|
756
756
|
ariaLabel: {
|
|
@@ -768,7 +768,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
768
768
|
},
|
|
769
769
|
emits: ["onClickOutside"],
|
|
770
770
|
setup(e, { expose: t, emit: n }) {
|
|
771
|
-
const o = e, i = n, a = Se(), l = _(null), r = _(null), s = _(null), u = _(!1), f = _("bottom"), c = _({ top: "0", left: "0" }), v = _([]), { width: $, height: w } =
|
|
771
|
+
const o = e, i = n, a = Se(), l = _(null), r = _(null), s = _(null), u = _(!1), f = _("bottom"), c = _({ top: "0", left: "0" }), v = _([]), { width: $, height: w } = kt(), M = W(() => !!a.content);
|
|
772
772
|
vn(() => {
|
|
773
773
|
window.removeEventListener("scroll", D), window.removeEventListener("resize", D), v.value.forEach(({ element: b, listener: C }) => {
|
|
774
774
|
b.removeEventListener("scroll", C);
|
|
@@ -788,13 +788,13 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
788
788
|
return;
|
|
789
789
|
const b = s.value.getBoundingClientRect(), C = r.value.getBoundingClientRect();
|
|
790
790
|
let g = 0, S = 0;
|
|
791
|
-
const y = o.position || wn(b),
|
|
791
|
+
const y = o.position || wn(b), V = $.value - b.right < 100, J = w.value - (b.bottom + C.height + o.offset) >= 0, U = b.top - C.height - o.offset >= 0;
|
|
792
792
|
switch (y) {
|
|
793
793
|
case "top":
|
|
794
|
-
g = U ? b.top - C.height - o.offset : b.bottom + o.offset, S =
|
|
794
|
+
g = U ? b.top - C.height - o.offset : b.bottom + o.offset, S = V ? b.right - C.width : b.left;
|
|
795
795
|
break;
|
|
796
796
|
case "bottom":
|
|
797
|
-
g = J ? b.bottom + o.offset : b.top - C.height - o.offset, S =
|
|
797
|
+
g = J ? b.bottom + o.offset : b.top - C.height - o.offset, S = V ? b.right - C.width : b.left;
|
|
798
798
|
break;
|
|
799
799
|
case "left":
|
|
800
800
|
S = b.left - C.width - o.offset, g = b.top;
|
|
@@ -803,20 +803,20 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
803
803
|
S = b.left + b.width + o.offset, g = b.top;
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
|
-
const
|
|
807
|
-
if (u.value = ne >= 0 &&
|
|
806
|
+
const he = w.value - (g + C.height), ne = g;
|
|
807
|
+
if (u.value = ne >= 0 && he >= 0, y === "right" || y === "left")
|
|
808
808
|
S = Math.max(0, S);
|
|
809
809
|
else {
|
|
810
810
|
S + C.width > $.value && (S = $.value - C.width), S = Math.max(0, S);
|
|
811
|
-
const
|
|
812
|
-
g = Math.min(Math.max(g, 0),
|
|
811
|
+
const ve = w.value - C.height;
|
|
812
|
+
g = Math.min(Math.max(g, 0), ve);
|
|
813
813
|
}
|
|
814
814
|
c.value = {
|
|
815
815
|
top: `${g}px`,
|
|
816
816
|
left: `${S}px`
|
|
817
817
|
}, f.value = y;
|
|
818
818
|
};
|
|
819
|
-
return
|
|
819
|
+
return Wt(l, () => {
|
|
820
820
|
u.value = !1, i("onClickOutside");
|
|
821
821
|
}), t({
|
|
822
822
|
isVisible: u,
|
|
@@ -859,7 +859,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
859
859
|
viewBox: "0 0 1792 1792"
|
|
860
860
|
}, ii = ["aria-label"], ai = ["aria-disabled", "onClick"], li = { class: "menu-item" }, ri = {
|
|
861
861
|
name: "Dropdown"
|
|
862
|
-
},
|
|
862
|
+
}, si = /* @__PURE__ */ P({
|
|
863
863
|
...ri,
|
|
864
864
|
props: {
|
|
865
865
|
icon: {
|
|
@@ -877,25 +877,25 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
877
877
|
},
|
|
878
878
|
emits: ["select"],
|
|
879
879
|
setup(e, { emit: t }) {
|
|
880
|
-
const n = e, o = t, i = _(), a =
|
|
880
|
+
const n = e, o = t, i = _(), a = W(
|
|
881
881
|
() => n.menu.filter((r) => r.display !== !1)
|
|
882
882
|
), l = (r) => {
|
|
883
883
|
r.disabled || (o("select", r), i.value.isVisible = !1);
|
|
884
884
|
};
|
|
885
|
-
return (r, s) => (d(),
|
|
885
|
+
return (r, s) => (d(), F(ti, {
|
|
886
886
|
ref_key: "popup",
|
|
887
887
|
ref: i,
|
|
888
888
|
class: "dropdown-menu",
|
|
889
889
|
position: "bottom",
|
|
890
890
|
tabindex: "0"
|
|
891
891
|
}, {
|
|
892
|
-
content:
|
|
892
|
+
content: q(() => [
|
|
893
893
|
h("ul", {
|
|
894
894
|
class: "dropdown-menu",
|
|
895
895
|
"aria-label": e.label + "dropdown menu",
|
|
896
896
|
tabindex: "0"
|
|
897
897
|
}, [
|
|
898
|
-
(d(!0), p(
|
|
898
|
+
(d(!0), p(H, null, le(a.value, (u) => (d(), p("li", {
|
|
899
899
|
key: u.label,
|
|
900
900
|
"aria-disabled": u.disabled ? "true" : "false",
|
|
901
901
|
class: N([[{ disabled: u.disabled }, u.class], "menu-item"]),
|
|
@@ -913,13 +913,13 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
913
913
|
], 10, ai))), 128))
|
|
914
914
|
], 8, ii)
|
|
915
915
|
]),
|
|
916
|
-
default:
|
|
916
|
+
default: q(() => [
|
|
917
917
|
h("div", {
|
|
918
918
|
"aria-label": (e.label ?? "") + " dropdown",
|
|
919
919
|
class: N([{ triggered: i.value?.isVisible }, "dropdown-menu-trigger"])
|
|
920
920
|
}, [
|
|
921
921
|
I(r.$slots, "default", {}, () => [
|
|
922
|
-
e.label ? (d(), p(
|
|
922
|
+
e.label ? (d(), p(H, { key: 0 }, [
|
|
923
923
|
h("span", null, O(e.label), 1),
|
|
924
924
|
s[0] || (s[0] = h("svg", {
|
|
925
925
|
class: "dropdown-icon",
|
|
@@ -971,10 +971,10 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
971
971
|
_: 3
|
|
972
972
|
}, 512));
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
974
|
+
}), ui = { class: "error" }, di = { class: "code" }, ci = {
|
|
975
975
|
name: "Error"
|
|
976
|
-
}, nn = /* @__PURE__ */
|
|
977
|
-
...
|
|
976
|
+
}, nn = /* @__PURE__ */ P({
|
|
977
|
+
...ci,
|
|
978
978
|
props: {
|
|
979
979
|
error: {
|
|
980
980
|
required: !0,
|
|
@@ -982,15 +982,15 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
982
982
|
}
|
|
983
983
|
},
|
|
984
984
|
setup(e) {
|
|
985
|
-
return (t, n) => (d(), p("p",
|
|
985
|
+
return (t, n) => (d(), p("p", ui, [
|
|
986
986
|
Q(O(e.error.message) + " ", 1),
|
|
987
|
-
h("span",
|
|
987
|
+
h("span", di, "(" + O(e.error.code) + ")", 1)
|
|
988
988
|
]));
|
|
989
989
|
}
|
|
990
|
-
}),
|
|
990
|
+
}), fi = { class: "errors" }, hi = { key: 1 }, pi = {
|
|
991
991
|
name: "Errors"
|
|
992
|
-
},
|
|
993
|
-
...
|
|
992
|
+
}, q0 = /* @__PURE__ */ P({
|
|
993
|
+
...pi,
|
|
994
994
|
props: {
|
|
995
995
|
errors: {
|
|
996
996
|
required: !0,
|
|
@@ -998,21 +998,21 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
998
998
|
}
|
|
999
999
|
},
|
|
1000
1000
|
setup(e) {
|
|
1001
|
-
return (t, n) => (d(), p("div",
|
|
1002
|
-
e.errors.length === 1 ? (d(),
|
|
1001
|
+
return (t, n) => (d(), p("div", fi, [
|
|
1002
|
+
e.errors.length === 1 ? (d(), F(nn, {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
error: e.errors[0]
|
|
1005
|
-
}, null, 8, ["error"])) : (d(), p("ul",
|
|
1006
|
-
(d(!0), p(
|
|
1007
|
-
|
|
1005
|
+
}, null, 8, ["error"])) : (d(), p("ul", hi, [
|
|
1006
|
+
(d(!0), p(H, null, le(e.errors, (o, i) => (d(), p("li", { key: i }, [
|
|
1007
|
+
re(nn, { error: o }, null, 8, ["error"])
|
|
1008
1008
|
]))), 128))
|
|
1009
1009
|
]))
|
|
1010
1010
|
]));
|
|
1011
1011
|
}
|
|
1012
|
-
}),
|
|
1012
|
+
}), gi = { class: "confirmation-file-actions" }, mi = {
|
|
1013
1013
|
name: "ConfirmationFileActions"
|
|
1014
|
-
},
|
|
1015
|
-
...
|
|
1014
|
+
}, vi = /* @__PURE__ */ P({
|
|
1015
|
+
...mi,
|
|
1016
1016
|
props: {
|
|
1017
1017
|
archiveConfirmationHeader: {
|
|
1018
1018
|
default: "Archive file?",
|
|
@@ -1040,75 +1040,75 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1040
1040
|
"on:confirmDelete"
|
|
1041
1041
|
],
|
|
1042
1042
|
setup(e) {
|
|
1043
|
-
return (t, n) => (d(), p("div",
|
|
1044
|
-
e.showArchiveConfirmation ? (d(),
|
|
1043
|
+
return (t, n) => (d(), p("div", gi, [
|
|
1044
|
+
e.showArchiveConfirmation ? (d(), F(tn, {
|
|
1045
1045
|
key: 0,
|
|
1046
1046
|
"onOn:close": n[0] || (n[0] = (o) => t.$emit("on:closeArchive")),
|
|
1047
1047
|
"onOn:confirm": n[1] || (n[1] = (o) => t.$emit("on:confirmArchive"))
|
|
1048
1048
|
}, {
|
|
1049
|
-
header:
|
|
1049
|
+
header: q(() => [
|
|
1050
1050
|
Q(O(e.archiveConfirmationHeader), 1)
|
|
1051
1051
|
]),
|
|
1052
|
-
body:
|
|
1052
|
+
body: q(() => [
|
|
1053
1053
|
Q(O(e.archiveConfirmationMessage), 1)
|
|
1054
1054
|
]),
|
|
1055
1055
|
_: 1
|
|
1056
1056
|
})) : k("", !0),
|
|
1057
|
-
e.showDeleteConfirmation ? (d(),
|
|
1057
|
+
e.showDeleteConfirmation ? (d(), F(tn, {
|
|
1058
1058
|
key: 1,
|
|
1059
1059
|
"onOn:close": n[2] || (n[2] = (o) => t.$emit("on:closeDelete")),
|
|
1060
1060
|
"onOn:confirm": n[3] || (n[3] = (o) => t.$emit("on:confirmDelete"))
|
|
1061
1061
|
}, {
|
|
1062
|
-
header:
|
|
1062
|
+
header: q(() => [
|
|
1063
1063
|
Q(O(e.deleteConfirmationHeader), 1)
|
|
1064
1064
|
]),
|
|
1065
|
-
body:
|
|
1065
|
+
body: q(() => [
|
|
1066
1066
|
Q(O(e.deleteConfirmationMessage), 1)
|
|
1067
1067
|
]),
|
|
1068
1068
|
_: 1
|
|
1069
1069
|
})) : k("", !0)
|
|
1070
1070
|
]));
|
|
1071
1071
|
}
|
|
1072
|
-
}),
|
|
1072
|
+
}), bi = { class: "file-thumbnail-details-wrapper" }, Ci = {
|
|
1073
1073
|
key: 0,
|
|
1074
1074
|
class: "file-thumbnail"
|
|
1075
|
-
},
|
|
1075
|
+
}, yi = { class: "details-wrapper" }, wi = { class: "name-description-details-wrapper" }, Si = {
|
|
1076
1076
|
key: 0,
|
|
1077
1077
|
class: "name"
|
|
1078
|
-
},
|
|
1078
|
+
}, ki = {
|
|
1079
1079
|
key: 1,
|
|
1080
1080
|
class: "file-size"
|
|
1081
|
-
},
|
|
1081
|
+
}, $i = {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
class: "description-wrapper-details"
|
|
1084
|
-
},
|
|
1084
|
+
}, Ei = {
|
|
1085
1085
|
key: 0,
|
|
1086
1086
|
class: "file-upload-download-details-wrapper"
|
|
1087
|
-
},
|
|
1087
|
+
}, Di = {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
class: "file-upload-details"
|
|
1090
|
-
},
|
|
1090
|
+
}, Ti = {
|
|
1091
1091
|
key: 0,
|
|
1092
1092
|
class: "uploaded-by"
|
|
1093
|
-
},
|
|
1093
|
+
}, xi = {
|
|
1094
1094
|
key: 1,
|
|
1095
1095
|
class: "uploaded-at"
|
|
1096
|
-
},
|
|
1096
|
+
}, Li = {
|
|
1097
1097
|
key: 1,
|
|
1098
1098
|
class: "file-download-details"
|
|
1099
|
-
},
|
|
1099
|
+
}, Oi = {
|
|
1100
1100
|
key: 0,
|
|
1101
1101
|
class: "download-count"
|
|
1102
|
-
},
|
|
1102
|
+
}, Mi = {
|
|
1103
1103
|
key: 1,
|
|
1104
1104
|
class: "last-downloaded-at"
|
|
1105
|
-
},
|
|
1105
|
+
}, _i = {
|
|
1106
1106
|
key: 0,
|
|
1107
1107
|
class: "file-actions"
|
|
1108
|
-
},
|
|
1108
|
+
}, Bi = {
|
|
1109
1109
|
name: "FileCard"
|
|
1110
|
-
},
|
|
1111
|
-
...
|
|
1110
|
+
}, Ii = /* @__PURE__ */ P({
|
|
1111
|
+
...Bi,
|
|
1112
1112
|
props: {
|
|
1113
1113
|
actionButtonsVisibility: {
|
|
1114
1114
|
default: () => ({
|
|
@@ -1203,10 +1203,10 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1203
1203
|
}, u = () => {
|
|
1204
1204
|
r("delete"), a.value = !1;
|
|
1205
1205
|
};
|
|
1206
|
-
return (f, c) => (d(),
|
|
1207
|
-
default:
|
|
1208
|
-
h("div",
|
|
1209
|
-
e.showThumbnail || f.$slots.thumbnail ? (d(), p("div",
|
|
1206
|
+
return (f, c) => (d(), F(mo, { class: "file-card" }, {
|
|
1207
|
+
default: q(() => [
|
|
1208
|
+
h("div", bi, [
|
|
1209
|
+
e.showThumbnail || f.$slots.thumbnail ? (d(), p("div", Ci, [
|
|
1210
1210
|
I(f.$slots, "thumbnail", {}, () => [
|
|
1211
1211
|
c[8] || (c[8] = h("svg", {
|
|
1212
1212
|
fill: "none",
|
|
@@ -1224,20 +1224,20 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1224
1224
|
], -1))
|
|
1225
1225
|
])
|
|
1226
1226
|
])) : k("", !0),
|
|
1227
|
-
h("div",
|
|
1228
|
-
h("div",
|
|
1227
|
+
h("div", yi, [
|
|
1228
|
+
h("div", wi, [
|
|
1229
1229
|
h("div", null, [
|
|
1230
|
-
e.visibilityDetail.originalFileName ? (d(), p("span",
|
|
1231
|
-
e.file.size && e.visibilityDetail.size ? (d(), p("span",
|
|
1230
|
+
e.visibilityDetail.originalFileName ? (d(), p("span", Si, O(e.file.originalFileName), 1)) : k("", !0),
|
|
1231
|
+
e.file.size && e.visibilityDetail.size ? (d(), p("span", ki, " (" + O(e.file.size) + ") ", 1)) : k("", !0)
|
|
1232
1232
|
]),
|
|
1233
|
-
e.file.description && e.visibilityDetail.description ? (d(), p("div",
|
|
1233
|
+
e.file.description && e.visibilityDetail.description ? (d(), p("div", $i, [
|
|
1234
1234
|
h("span", null, O(e.file.description), 1),
|
|
1235
|
-
e.allowEditDescription ? (d(),
|
|
1235
|
+
e.allowEditDescription ? (d(), F(ue, fe({ key: 0 }, e.editDescriptionButtonProps, {
|
|
1236
1236
|
size: "small",
|
|
1237
1237
|
variant: "outlined",
|
|
1238
1238
|
onClick: c[0] || (c[0] = (v) => f.$emit("click:editDescription"))
|
|
1239
1239
|
}), {
|
|
1240
|
-
iconLeft:
|
|
1240
|
+
iconLeft: q(() => c[9] || (c[9] = [
|
|
1241
1241
|
h("svg", {
|
|
1242
1242
|
fill: "none",
|
|
1243
1243
|
width: "20",
|
|
@@ -1254,37 +1254,37 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1254
1254
|
}, 16)) : k("", !0)
|
|
1255
1255
|
])) : k("", !0)
|
|
1256
1256
|
]),
|
|
1257
|
-
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy || e.visibilityDetail.lastDownloadedAt || e.visibilityDetail.downloadCount ? (d(), p("div",
|
|
1258
|
-
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy ? (d(), p("div",
|
|
1259
|
-
e.visibilityDetail.uploadedBy ? (d(), p("div",
|
|
1257
|
+
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy || e.visibilityDetail.lastDownloadedAt || e.visibilityDetail.downloadCount ? (d(), p("div", Ei, [
|
|
1258
|
+
e.visibilityDetail.uploadedAt || e.visibilityDetail.uploadedBy ? (d(), p("div", Di, [
|
|
1259
|
+
e.visibilityDetail.uploadedBy ? (d(), p("div", Ti, [
|
|
1260
1260
|
h("span", null, O(e.messages?.uploadedByHeader || "Uploaded by"), 1),
|
|
1261
1261
|
h("span", null, O(l(e.file)), 1)
|
|
1262
1262
|
])) : k("", !0),
|
|
1263
|
-
e.visibilityDetail.uploadedAt ? (d(), p("div",
|
|
1263
|
+
e.visibilityDetail.uploadedAt ? (d(), p("div", xi, [
|
|
1264
1264
|
h("span", null, O(e.messages?.uploadedAtHeader || "Uploaded at"), 1),
|
|
1265
|
-
h("span", null, O(
|
|
1265
|
+
h("span", null, O(Z(Xo)(e.file.uploadedAt)), 1)
|
|
1266
1266
|
])) : k("", !0)
|
|
1267
1267
|
])) : k("", !0),
|
|
1268
|
-
e.visibilityDetail.downloadCount || e.visibilityDetail.lastDownloadedAt ? (d(), p("div",
|
|
1269
|
-
e.visibilityDetail.downloadCount ? (d(), p("div",
|
|
1268
|
+
e.visibilityDetail.downloadCount || e.visibilityDetail.lastDownloadedAt ? (d(), p("div", Li, [
|
|
1269
|
+
e.visibilityDetail.downloadCount ? (d(), p("div", Oi, [
|
|
1270
1270
|
h("span", null, O(e.messages?.downloadCountHeader || "Downloads:"), 1),
|
|
1271
1271
|
h("span", null, O(e.file.downloadCount), 1)
|
|
1272
1272
|
])) : k("", !0),
|
|
1273
|
-
e.visibilityDetail.lastDownloadedAt ? (d(), p("div",
|
|
1273
|
+
e.visibilityDetail.lastDownloadedAt ? (d(), p("div", Mi, [
|
|
1274
1274
|
h("span", null, O(e.messages?.lastDownloadedAtHeader || "Last download:"), 1),
|
|
1275
|
-
h("span", null, O(
|
|
1275
|
+
h("span", null, O(Z(Uo)(Number(e.file.lastDownloadedAt))), 1)
|
|
1276
1276
|
])) : k("", !0)
|
|
1277
1277
|
])) : k("", !0)
|
|
1278
1278
|
])) : k("", !0)
|
|
1279
1279
|
])
|
|
1280
1280
|
]),
|
|
1281
|
-
e.visibilityDetail.actions ? (d(), p("div",
|
|
1282
|
-
e.actionButtonsVisibility.archive ? (d(),
|
|
1281
|
+
e.visibilityDetail.actions ? (d(), p("div", _i, [
|
|
1282
|
+
e.actionButtonsVisibility.archive ? (d(), F(ue, fe({ key: 0 }, e.archiveButtonProps, {
|
|
1283
1283
|
label: e.messages?.archiveAction || "Archive",
|
|
1284
1284
|
size: "small",
|
|
1285
1285
|
onClick: c[1] || (c[1] = (v) => i.value = !0)
|
|
1286
1286
|
}), {
|
|
1287
|
-
iconLeft:
|
|
1287
|
+
iconLeft: q(() => c[10] || (c[10] = [
|
|
1288
1288
|
h("svg", {
|
|
1289
1289
|
fill: "none",
|
|
1290
1290
|
viewBox: "0 0 24 24",
|
|
@@ -1301,12 +1301,12 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1301
1301
|
])),
|
|
1302
1302
|
_: 1
|
|
1303
1303
|
}, 16, ["label"])) : k("", !0),
|
|
1304
|
-
e.actionButtonsVisibility.delete ? (d(),
|
|
1304
|
+
e.actionButtonsVisibility.delete ? (d(), F(ue, fe({ key: 1 }, e.deleteButtonProps, {
|
|
1305
1305
|
label: e.messages?.deleteAction || "Delete",
|
|
1306
1306
|
size: "small",
|
|
1307
1307
|
onClick: c[2] || (c[2] = (v) => a.value = !0)
|
|
1308
1308
|
}), {
|
|
1309
|
-
iconLeft:
|
|
1309
|
+
iconLeft: q(() => c[11] || (c[11] = [
|
|
1310
1310
|
h("svg", {
|
|
1311
1311
|
fill: "none",
|
|
1312
1312
|
viewBox: "0 0 24 24",
|
|
@@ -1323,12 +1323,12 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1323
1323
|
])),
|
|
1324
1324
|
_: 1
|
|
1325
1325
|
}, 16, ["label"])) : k("", !0),
|
|
1326
|
-
e.actionButtonsVisibility.download ? (d(),
|
|
1326
|
+
e.actionButtonsVisibility.download ? (d(), F(ue, fe({ key: 2 }, e.downloadButtonProps, {
|
|
1327
1327
|
label: e.messages?.downloadAction || "Download",
|
|
1328
1328
|
size: "small",
|
|
1329
1329
|
onClick: c[3] || (c[3] = (v) => r("download"))
|
|
1330
1330
|
}), {
|
|
1331
|
-
iconLeft:
|
|
1331
|
+
iconLeft: q(() => c[12] || (c[12] = [
|
|
1332
1332
|
h("svg", {
|
|
1333
1333
|
fill: "none",
|
|
1334
1334
|
viewBox: "0 0 24 24",
|
|
@@ -1346,12 +1346,12 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1346
1346
|
])),
|
|
1347
1347
|
_: 1
|
|
1348
1348
|
}, 16, ["label"])) : k("", !0),
|
|
1349
|
-
e.actionButtonsVisibility.share ? (d(),
|
|
1349
|
+
e.actionButtonsVisibility.share ? (d(), F(ue, fe({ key: 3 }, e.shareButtonProps, {
|
|
1350
1350
|
label: e.messages?.shareAction || "Share",
|
|
1351
1351
|
size: "small",
|
|
1352
1352
|
onClick: c[4] || (c[4] = (v) => r("share"))
|
|
1353
1353
|
}), {
|
|
1354
|
-
iconLeft:
|
|
1354
|
+
iconLeft: q(() => c[13] || (c[13] = [
|
|
1355
1355
|
h("svg", {
|
|
1356
1356
|
fill: "none",
|
|
1357
1357
|
viewBox: "0 0 24 24",
|
|
@@ -1367,12 +1367,12 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1367
1367
|
])),
|
|
1368
1368
|
_: 1
|
|
1369
1369
|
}, 16, ["label"])) : k("", !0),
|
|
1370
|
-
e.actionButtonsVisibility.view ? (d(),
|
|
1370
|
+
e.actionButtonsVisibility.view ? (d(), F(ue, fe({ key: 4 }, e.viewButtonProps, {
|
|
1371
1371
|
label: e.messages?.viewAction || "View",
|
|
1372
1372
|
size: "small",
|
|
1373
1373
|
onClick: c[5] || (c[5] = (v) => r("view"))
|
|
1374
1374
|
}), {
|
|
1375
|
-
iconLeft:
|
|
1375
|
+
iconLeft: q(() => c[14] || (c[14] = [
|
|
1376
1376
|
h("svg", {
|
|
1377
1377
|
viewBox: "0 0 24 24",
|
|
1378
1378
|
fill: "none",
|
|
@@ -1396,7 +1396,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1396
1396
|
])),
|
|
1397
1397
|
_: 1
|
|
1398
1398
|
}, 16, ["label"])) : k("", !0),
|
|
1399
|
-
|
|
1399
|
+
re(vi, {
|
|
1400
1400
|
"archive-confirmation-header": e.messages?.archiveConfirmationHeader,
|
|
1401
1401
|
"archive-confirmation-message": e.messages?.archiveConfirmationMessage,
|
|
1402
1402
|
"delete-confirmation-header": e.messages?.deleteConfirmationHeader,
|
|
@@ -1413,9 +1413,9 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1413
1413
|
_: 3
|
|
1414
1414
|
}));
|
|
1415
1415
|
}
|
|
1416
|
-
}),
|
|
1416
|
+
}), Ai = { class: "file-list-wrapper" }, Pi = {
|
|
1417
1417
|
name: "FilesList"
|
|
1418
|
-
},
|
|
1418
|
+
}, W0 = /* @__PURE__ */ P({
|
|
1419
1419
|
...Pi,
|
|
1420
1420
|
props: {
|
|
1421
1421
|
actionButtonsVisibility: {
|
|
@@ -1506,8 +1506,8 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1506
1506
|
break;
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
return (i, a) => (d(), p("div",
|
|
1510
|
-
(d(!0), p(
|
|
1509
|
+
return (i, a) => (d(), p("div", Ai, [
|
|
1510
|
+
(d(!0), p(H, null, le(e.files, (l) => (d(), F(Ii, {
|
|
1511
1511
|
key: l.originalFileName,
|
|
1512
1512
|
"action-buttons-visibility": e.actionButtonsVisibility,
|
|
1513
1513
|
"allow-edit-description": e.actionButtonsVisibility?.edit,
|
|
@@ -1530,7 +1530,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1530
1530
|
}, Hn({ _: 2 }, [
|
|
1531
1531
|
i.$slots.thumbnail ? {
|
|
1532
1532
|
name: "thumbnail",
|
|
1533
|
-
fn:
|
|
1533
|
+
fn: q(() => [
|
|
1534
1534
|
I(i.$slots, "thumbnail")
|
|
1535
1535
|
]),
|
|
1536
1536
|
key: "0"
|
|
@@ -1538,10 +1538,10 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1538
1538
|
]), 1032, ["action-buttons-visibility", "allow-edit-description", "archive-button-props", "delete-button-props", "download-button-props", "edit-description-button-props", "file", "messages", "share-button-props", "show-thumbnail", "view-button-props", "visibility-detail", "onClick:editDescription", "onOn:archive", "onOn:delete", "onOn:download", "onOn:share", "onOn:view"]))), 128))
|
|
1539
1539
|
]));
|
|
1540
1540
|
}
|
|
1541
|
-
}),
|
|
1541
|
+
}), Ni = { class: "field debounce-input" }, Fi = ["aria-label", "disabled", "placeholder", "type", "value"], Vi = {
|
|
1542
1542
|
name: "DebouncedInput"
|
|
1543
|
-
},
|
|
1544
|
-
...
|
|
1543
|
+
}, Y0 = /* @__PURE__ */ P({
|
|
1544
|
+
...Vi,
|
|
1545
1545
|
props: {
|
|
1546
1546
|
ariaLabel: {
|
|
1547
1547
|
default: "input",
|
|
@@ -1580,7 +1580,7 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1580
1580
|
o("update:modelValue", l);
|
|
1581
1581
|
});
|
|
1582
1582
|
};
|
|
1583
|
-
return (a, l) => (d(), p("div",
|
|
1583
|
+
return (a, l) => (d(), p("div", Ni, [
|
|
1584
1584
|
h("input", {
|
|
1585
1585
|
"aria-label": e.ariaLabel ?? e.placeholder,
|
|
1586
1586
|
disabled: e.disabled,
|
|
@@ -1589,24 +1589,24 @@ const Jo = ["aria-expanded", "aria-label"], ei = {
|
|
|
1589
1589
|
value: e.modelValue,
|
|
1590
1590
|
class: "input-field",
|
|
1591
1591
|
onInput: i
|
|
1592
|
-
}, null, 40,
|
|
1592
|
+
}, null, 40, Fi)
|
|
1593
1593
|
]));
|
|
1594
1594
|
}
|
|
1595
|
-
}),
|
|
1595
|
+
}), zi = {
|
|
1596
1596
|
name: "GridContainer"
|
|
1597
1597
|
}, ji = { class: "grid-container" };
|
|
1598
|
-
function
|
|
1598
|
+
function Ri(e, t, n, o, i, a) {
|
|
1599
1599
|
return d(), p("div", ji, [
|
|
1600
1600
|
I(e.$slots, "default")
|
|
1601
1601
|
]);
|
|
1602
1602
|
}
|
|
1603
|
-
const
|
|
1603
|
+
const U0 = /* @__PURE__ */ et(zi, [["render", Ri]]), Hi = {
|
|
1604
1604
|
key: 0,
|
|
1605
1605
|
class: "loading-page"
|
|
1606
|
-
},
|
|
1606
|
+
}, Zi = {
|
|
1607
1607
|
name: "LoadingPage"
|
|
1608
|
-
},
|
|
1609
|
-
...
|
|
1608
|
+
}, Gi = /* @__PURE__ */ P({
|
|
1609
|
+
...Zi,
|
|
1610
1610
|
props: {
|
|
1611
1611
|
loading: {
|
|
1612
1612
|
default: !1,
|
|
@@ -1614,17 +1614,17 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
},
|
|
1616
1616
|
setup(e) {
|
|
1617
|
-
return (t, n) => e.loading ? (d(), p("div",
|
|
1618
|
-
|
|
1617
|
+
return (t, n) => e.loading ? (d(), p("div", Hi, [
|
|
1618
|
+
re(wt, { class: "loading-icon" })
|
|
1619
1619
|
])) : k("", !0);
|
|
1620
1620
|
}
|
|
1621
|
-
}),
|
|
1621
|
+
}), qi = { class: "message-content" }, Wi = { key: 1 }, Yi = {
|
|
1622
1622
|
name: "Message"
|
|
1623
|
-
},
|
|
1624
|
-
...
|
|
1623
|
+
}, X0 = /* @__PURE__ */ P({
|
|
1624
|
+
...Yi,
|
|
1625
1625
|
props: {
|
|
1626
1626
|
enableClose: {
|
|
1627
|
-
default: !
|
|
1627
|
+
default: !0,
|
|
1628
1628
|
type: Boolean
|
|
1629
1629
|
},
|
|
1630
1630
|
icon: {
|
|
@@ -1638,7 +1638,7 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1638
1638
|
severity: {
|
|
1639
1639
|
type: String,
|
|
1640
1640
|
default: "info",
|
|
1641
|
-
validator: (e) => ["danger", "info", "success", "warning"].includes(e)
|
|
1641
|
+
validator: (e) => ["danger", "info", "success", "tip", "warning"].includes(e)
|
|
1642
1642
|
},
|
|
1643
1643
|
showIcon: {
|
|
1644
1644
|
default: !0,
|
|
@@ -1653,23 +1653,23 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1653
1653
|
return (l, r) => bt((d(), p("div", {
|
|
1654
1654
|
class: N(["message", e.severity])
|
|
1655
1655
|
}, [
|
|
1656
|
-
e.icon ||
|
|
1656
|
+
e.icon || Z(o).icon || e.showIcon ? (d(), p("span", {
|
|
1657
1657
|
key: 0,
|
|
1658
|
-
class: N(["icon", { default: !e.icon && !
|
|
1658
|
+
class: N(["icon", { default: !e.icon && !Z(o).icon && e.showIcon }])
|
|
1659
1659
|
}, [
|
|
1660
|
-
(e.icon ||
|
|
1660
|
+
(e.icon || Z(o).icon) && e.showIcon ? I(l.$slots, "icon", { key: 0 }, () => [
|
|
1661
1661
|
h("i", {
|
|
1662
1662
|
class: N(e.icon)
|
|
1663
1663
|
}, null, 2)
|
|
1664
1664
|
]) : k("", !0)
|
|
1665
1665
|
], 2)) : k("", !0),
|
|
1666
|
-
h("div",
|
|
1666
|
+
h("div", qi, [
|
|
1667
1667
|
I(l.$slots, "default", {}, () => [
|
|
1668
|
-
Array.isArray(e.message) ? e.message.length ? (d(), p("ul",
|
|
1669
|
-
(d(!0), p(
|
|
1668
|
+
Array.isArray(e.message) ? e.message.length ? (d(), p("ul", Wi, [
|
|
1669
|
+
(d(!0), p(H, null, le(e.message, (s, u) => (d(), p("li", {
|
|
1670
1670
|
key: `message-${u}`
|
|
1671
1671
|
}, O(s), 1))), 128))
|
|
1672
|
-
])) : k("", !0) : (d(), p(
|
|
1672
|
+
])) : k("", !0) : (d(), p(H, { key: 0 }, [
|
|
1673
1673
|
Q(O(e.message), 1)
|
|
1674
1674
|
], 64))
|
|
1675
1675
|
])
|
|
@@ -1683,7 +1683,7 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1683
1683
|
[Ct, i.value]
|
|
1684
1684
|
]);
|
|
1685
1685
|
}
|
|
1686
|
-
}),
|
|
1686
|
+
}), Ui = { class: "modal overlay" }, Xi = { class: "header" }, Ki = {
|
|
1687
1687
|
key: 0,
|
|
1688
1688
|
role: "heading"
|
|
1689
1689
|
}, Qi = {
|
|
@@ -1694,7 +1694,7 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1694
1694
|
class: "footer"
|
|
1695
1695
|
}, e2 = {
|
|
1696
1696
|
name: "Modal"
|
|
1697
|
-
},
|
|
1697
|
+
}, K0 = /* @__PURE__ */ P({
|
|
1698
1698
|
...e2,
|
|
1699
1699
|
props: {
|
|
1700
1700
|
dismissOnClickOut: {
|
|
@@ -1705,6 +1705,11 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1705
1705
|
default: !1,
|
|
1706
1706
|
type: Boolean
|
|
1707
1707
|
},
|
|
1708
|
+
size: {
|
|
1709
|
+
default: "medium",
|
|
1710
|
+
type: String,
|
|
1711
|
+
validator: (e) => ["auto", "medium", "large"].includes(e)
|
|
1712
|
+
},
|
|
1708
1713
|
title: {
|
|
1709
1714
|
default: "",
|
|
1710
1715
|
type: String
|
|
@@ -1713,46 +1718,44 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1713
1718
|
emits: ["on:close"],
|
|
1714
1719
|
setup(e, { emit: t }) {
|
|
1715
1720
|
const n = _(), o = t, i = e, a = Se();
|
|
1716
|
-
|
|
1721
|
+
Wt(n, (r) => {
|
|
1717
1722
|
i.dismissOnClickOut && l();
|
|
1718
1723
|
});
|
|
1719
1724
|
const l = () => {
|
|
1720
1725
|
o("on:close");
|
|
1721
1726
|
};
|
|
1722
|
-
return (r, s) => bt((d(), p("div",
|
|
1723
|
-
h("div",
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
e.title ? (d(), p("span", Ki, O(e.title), 1)) : k("", !0)
|
|
1732
|
-
]),
|
|
1733
|
-
(d(), p("svg", {
|
|
1734
|
-
"aria-label": "close modal",
|
|
1735
|
-
height: "1.5rem",
|
|
1736
|
-
tabindex: "0",
|
|
1737
|
-
width: "1.5rem",
|
|
1738
|
-
viewBox: "0 0 16 16",
|
|
1739
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1740
|
-
onClick: s[0] || (s[0] = (u) => l())
|
|
1741
|
-
}, s[1] || (s[1] = [
|
|
1742
|
-
h("path", {
|
|
1743
|
-
fill: "currentColor",
|
|
1744
|
-
d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"
|
|
1745
|
-
}, null, -1)
|
|
1746
|
-
])))
|
|
1727
|
+
return (r, s) => bt((d(), p("div", Ui, [
|
|
1728
|
+
h("div", {
|
|
1729
|
+
ref_key: "dzangolabVueModal",
|
|
1730
|
+
ref: n,
|
|
1731
|
+
class: N(["dialog", e.size, { active: e.show }])
|
|
1732
|
+
}, [
|
|
1733
|
+
h("div", Xi, [
|
|
1734
|
+
I(r.$slots, "header", {}, () => [
|
|
1735
|
+
e.title ? (d(), p("span", Ki, O(e.title), 1)) : k("", !0)
|
|
1747
1736
|
]),
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1737
|
+
(d(), p("svg", {
|
|
1738
|
+
"aria-label": "close modal",
|
|
1739
|
+
height: "1.5rem",
|
|
1740
|
+
tabindex: "0",
|
|
1741
|
+
width: "1.5rem",
|
|
1742
|
+
viewBox: "0 0 16 16",
|
|
1743
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1744
|
+
onClick: s[0] || (s[0] = (u) => l())
|
|
1745
|
+
}, s[1] || (s[1] = [
|
|
1746
|
+
h("path", {
|
|
1747
|
+
fill: "currentColor",
|
|
1748
|
+
d: "M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94z"
|
|
1749
|
+
}, null, -1)
|
|
1750
|
+
])))
|
|
1751
|
+
]),
|
|
1752
|
+
Z(a).default ? (d(), p("div", Qi, [
|
|
1753
|
+
I(r.$slots, "default")
|
|
1754
|
+
])) : k("", !0),
|
|
1755
|
+
Z(a).footer ? (d(), p("div", Ji, [
|
|
1756
|
+
I(r.$slots, "footer")
|
|
1757
|
+
])) : k("", !0)
|
|
1758
|
+
], 2)
|
|
1756
1759
|
], 512)), [
|
|
1757
1760
|
[Ct, e.show]
|
|
1758
1761
|
]);
|
|
@@ -1762,7 +1765,7 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1762
1765
|
class: "title-tag"
|
|
1763
1766
|
}, l2 = { key: 0 }, r2 = { class: "page-toolbar" }, s2 = { class: "page-content" }, u2 = {
|
|
1764
1767
|
name: "Page"
|
|
1765
|
-
}, d2 = /* @__PURE__ */
|
|
1768
|
+
}, d2 = /* @__PURE__ */ P({
|
|
1766
1769
|
...u2,
|
|
1767
1770
|
props: {
|
|
1768
1771
|
centered: Boolean,
|
|
@@ -1785,45 +1788,70 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1785
1788
|
titleTag: {
|
|
1786
1789
|
default: void 0,
|
|
1787
1790
|
type: String
|
|
1791
|
+
},
|
|
1792
|
+
toolbarActionsMenu: {
|
|
1793
|
+
default: () => [],
|
|
1794
|
+
type: Array
|
|
1788
1795
|
}
|
|
1789
1796
|
},
|
|
1790
|
-
|
|
1791
|
-
|
|
1797
|
+
emits: ["action:click"],
|
|
1798
|
+
setup(e, { emit: t }) {
|
|
1799
|
+
const { width: n } = kt(), o = e, i = t, a = W(() => n.value > 576), l = W(
|
|
1800
|
+
() => o.toolbarActionsMenu.filter((s) => s.display !== !1)
|
|
1801
|
+
), r = (s) => {
|
|
1802
|
+
i("action:click", s);
|
|
1803
|
+
};
|
|
1804
|
+
return (s, u) => (d(), p("div", {
|
|
1792
1805
|
class: "page",
|
|
1793
1806
|
"data-centered": e.centered
|
|
1794
1807
|
}, [
|
|
1795
1808
|
h("div", n2, [
|
|
1796
1809
|
h("div", o2, [
|
|
1797
1810
|
h("div", i2, [
|
|
1798
|
-
e.title ? (d(),
|
|
1799
|
-
default:
|
|
1811
|
+
e.title ? (d(), F(_e(e.titleElement), { key: 0 }, {
|
|
1812
|
+
default: q(() => [
|
|
1800
1813
|
Q(O(e.title), 1)
|
|
1801
1814
|
]),
|
|
1802
1815
|
_: 1
|
|
1803
1816
|
})) : k("", !0),
|
|
1804
|
-
I(
|
|
1817
|
+
I(s.$slots, "titleTag", {}, () => [
|
|
1805
1818
|
e.titleTag ? (d(), p("span", a2, [
|
|
1806
|
-
|
|
1819
|
+
re(to, { label: e.titleTag }, null, 8, ["label"])
|
|
1807
1820
|
])) : k("", !0)
|
|
1808
1821
|
])
|
|
1809
1822
|
]),
|
|
1810
|
-
I(
|
|
1823
|
+
I(s.$slots, "subtitle", {}, () => [
|
|
1811
1824
|
e.subTitle ? (d(), p("small", l2, O(e.subTitle), 1)) : k("", !0)
|
|
1812
1825
|
])
|
|
1813
1826
|
]),
|
|
1814
1827
|
h("div", r2, [
|
|
1815
|
-
I(
|
|
1828
|
+
I(s.$slots, "toolbar", {}, () => [
|
|
1829
|
+
l.value?.length && !a.value ? (d(), p(H, { key: 0 }, [
|
|
1830
|
+
l.value?.length > 1 ? (d(), F(si, {
|
|
1831
|
+
key: 0,
|
|
1832
|
+
menu: l.value,
|
|
1833
|
+
onSelect: u[0] || (u[0] = (f) => r(f))
|
|
1834
|
+
}, null, 8, ["menu"])) : (d(), F(ue, fe({ key: 1 }, l.value[0], {
|
|
1835
|
+
"icon-left": String(l.value[0]?.icon ?? l.value[0]?.iconLeft),
|
|
1836
|
+
onClick: u[1] || (u[1] = (f) => r(l.value[0]))
|
|
1837
|
+
}), null, 16, ["icon-left"]))
|
|
1838
|
+
], 64)) : l.value?.length ? (d(!0), p(H, { key: 1 }, le(l.value, (f, c) => (d(), F(ue, fe({ ref_for: !0 }, f, {
|
|
1839
|
+
key: `${f?.label}-${c}`,
|
|
1840
|
+
"icon-left": String(f?.icon ?? f?.iconLeft),
|
|
1841
|
+
onClick: (v) => r(f)
|
|
1842
|
+
}), null, 16, ["icon-left", "onClick"]))), 128)) : k("", !0)
|
|
1843
|
+
])
|
|
1816
1844
|
])
|
|
1817
1845
|
]),
|
|
1818
1846
|
h("div", s2, [
|
|
1819
|
-
I(
|
|
1820
|
-
|
|
1847
|
+
I(s.$slots, "default"),
|
|
1848
|
+
re(Gi, { loading: e.loading }, null, 8, ["loading"])
|
|
1821
1849
|
])
|
|
1822
1850
|
], 8, t2));
|
|
1823
1851
|
}
|
|
1824
1852
|
}), c2 = { class: "menu" }, f2 = ["onClick"], h2 = {
|
|
1825
1853
|
name: "ResponsiveMenu"
|
|
1826
|
-
},
|
|
1854
|
+
}, Q0 = /* @__PURE__ */ P({
|
|
1827
1855
|
...h2,
|
|
1828
1856
|
props: {
|
|
1829
1857
|
routes: {
|
|
@@ -1842,15 +1870,15 @@ const X0 = /* @__PURE__ */ et(Vi, [["render", zi]]), Ri = {
|
|
|
1842
1870
|
const o = bn("router-link");
|
|
1843
1871
|
return d(), p("nav", c2, [
|
|
1844
1872
|
h("ul", null, [
|
|
1845
|
-
(d(!0), p(
|
|
1873
|
+
(d(!0), p(H, null, le(e.routes, (i, a) => (d(), p("li", {
|
|
1846
1874
|
key: a,
|
|
1847
1875
|
class: N({ active: e.activeRoute === i.route }),
|
|
1848
1876
|
onClick: (l) => t.$emit("change-route", i.route)
|
|
1849
1877
|
}, [
|
|
1850
|
-
|
|
1878
|
+
re(o, {
|
|
1851
1879
|
to: { name: i.route }
|
|
1852
1880
|
}, {
|
|
1853
|
-
default:
|
|
1881
|
+
default: q(() => [
|
|
1854
1882
|
Q(O(i.name), 1)
|
|
1855
1883
|
]),
|
|
1856
1884
|
_: 2
|
|
@@ -1882,7 +1910,7 @@ function on(e, t) {
|
|
|
1882
1910
|
}
|
|
1883
1911
|
return n;
|
|
1884
1912
|
}
|
|
1885
|
-
function
|
|
1913
|
+
function me(e) {
|
|
1886
1914
|
for (var t = 1; t < arguments.length; t++) {
|
|
1887
1915
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1888
1916
|
t % 2 ? on(Object(n), !0).forEach(function(o) {
|
|
@@ -1945,7 +1973,7 @@ var ke = ye(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), tt = ye(/E
|
|
|
1945
1973
|
capture: !1,
|
|
1946
1974
|
passive: !1
|
|
1947
1975
|
};
|
|
1948
|
-
function
|
|
1976
|
+
function A(e, t, n) {
|
|
1949
1977
|
e.addEventListener(t, n, !ke && $n);
|
|
1950
1978
|
}
|
|
1951
1979
|
function B(e, t, n) {
|
|
@@ -1970,7 +1998,7 @@ function ht(e, t) {
|
|
|
1970
1998
|
function C2(e) {
|
|
1971
1999
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1972
2000
|
}
|
|
1973
|
-
function
|
|
2001
|
+
function pe(e, t, n, o) {
|
|
1974
2002
|
if (e) {
|
|
1975
2003
|
n = n || document;
|
|
1976
2004
|
do {
|
|
@@ -1999,7 +2027,7 @@ function T(e, t, n) {
|
|
|
1999
2027
|
!(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = n + (typeof n == "string" ? "" : "px");
|
|
2000
2028
|
}
|
|
2001
2029
|
}
|
|
2002
|
-
function
|
|
2030
|
+
function ze(e, t) {
|
|
2003
2031
|
var n = "";
|
|
2004
2032
|
if (typeof e == "string")
|
|
2005
2033
|
n = e;
|
|
@@ -2021,14 +2049,14 @@ function En(e, t, n) {
|
|
|
2021
2049
|
}
|
|
2022
2050
|
return [];
|
|
2023
2051
|
}
|
|
2024
|
-
function
|
|
2052
|
+
function ge() {
|
|
2025
2053
|
var e = document.scrollingElement;
|
|
2026
2054
|
return e || document.documentElement;
|
|
2027
2055
|
}
|
|
2028
|
-
function
|
|
2056
|
+
function Y(e, t, n, o, i) {
|
|
2029
2057
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2030
2058
|
var a, l, r, s, u, f, c;
|
|
2031
|
-
if (e !== window && e.parentNode && e !==
|
|
2059
|
+
if (e !== window && e.parentNode && e !== ge() ? (a = e.getBoundingClientRect(), l = a.top, r = a.left, s = a.bottom, u = a.right, f = a.height, c = a.width) : (l = 0, r = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !ke))
|
|
2032
2060
|
do
|
|
2033
2061
|
if (i && i.getBoundingClientRect && (T(i, "transform") !== "none" || n && T(i, "position") !== "static")) {
|
|
2034
2062
|
var v = i.getBoundingClientRect();
|
|
@@ -2037,7 +2065,7 @@ function W(e, t, n, o, i) {
|
|
|
2037
2065
|
}
|
|
2038
2066
|
while (i = i.parentNode);
|
|
2039
2067
|
if (o && e !== window) {
|
|
2040
|
-
var $ =
|
|
2068
|
+
var $ = ze(i || e), w = $ && $.a, M = $ && $.d;
|
|
2041
2069
|
$ && (l /= M, r /= w, c /= w, f /= M, s = l + f, u = r + c);
|
|
2042
2070
|
}
|
|
2043
2071
|
return {
|
|
@@ -2051,17 +2079,17 @@ function W(e, t, n, o, i) {
|
|
|
2051
2079
|
}
|
|
2052
2080
|
}
|
|
2053
2081
|
function rn(e, t, n) {
|
|
2054
|
-
for (var o = xe(e, !0), i =
|
|
2055
|
-
var a =
|
|
2082
|
+
for (var o = xe(e, !0), i = Y(e)[t]; o; ) {
|
|
2083
|
+
var a = Y(o)[n], l = void 0;
|
|
2056
2084
|
if (l = i >= a, !l) return o;
|
|
2057
|
-
if (o ===
|
|
2085
|
+
if (o === ge()) break;
|
|
2058
2086
|
o = xe(o, !1);
|
|
2059
2087
|
}
|
|
2060
2088
|
return !1;
|
|
2061
2089
|
}
|
|
2062
|
-
function
|
|
2090
|
+
function je(e, t, n, o) {
|
|
2063
2091
|
for (var i = 0, a = 0, l = e.children; a < l.length; ) {
|
|
2064
|
-
if (l[a].style.display !== "none" && l[a] !== x.ghost && (o || l[a] !== x.dragged) &&
|
|
2092
|
+
if (l[a].style.display !== "none" && l[a] !== x.ghost && (o || l[a] !== x.dragged) && pe(l[a], n.draggable, e, !1)) {
|
|
2065
2093
|
if (i === t)
|
|
2066
2094
|
return l[a];
|
|
2067
2095
|
i++;
|
|
@@ -2075,7 +2103,7 @@ function Yt(e, t) {
|
|
|
2075
2103
|
n = n.previousElementSibling;
|
|
2076
2104
|
return n || null;
|
|
2077
2105
|
}
|
|
2078
|
-
function
|
|
2106
|
+
function se(e, t) {
|
|
2079
2107
|
var n = 0;
|
|
2080
2108
|
if (!e || !e.parentNode)
|
|
2081
2109
|
return -1;
|
|
@@ -2084,10 +2112,10 @@ function re(e, t) {
|
|
|
2084
2112
|
return n;
|
|
2085
2113
|
}
|
|
2086
2114
|
function sn(e) {
|
|
2087
|
-
var t = 0, n = 0, o =
|
|
2115
|
+
var t = 0, n = 0, o = ge();
|
|
2088
2116
|
if (e)
|
|
2089
2117
|
do {
|
|
2090
|
-
var i =
|
|
2118
|
+
var i = ze(e), a = i.a, l = i.d;
|
|
2091
2119
|
t += e.scrollLeft * a, n += e.scrollTop * l;
|
|
2092
2120
|
} while (e !== o && (e = e.parentNode));
|
|
2093
2121
|
return [t, n];
|
|
@@ -2101,19 +2129,19 @@ function y2(e, t) {
|
|
|
2101
2129
|
return -1;
|
|
2102
2130
|
}
|
|
2103
2131
|
function xe(e, t) {
|
|
2104
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2132
|
+
if (!e || !e.getBoundingClientRect) return ge();
|
|
2105
2133
|
var n = e, o = !1;
|
|
2106
2134
|
do
|
|
2107
2135
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2108
2136
|
var i = T(n);
|
|
2109
2137
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2110
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2138
|
+
if (!n.getBoundingClientRect || n === document.body) return ge();
|
|
2111
2139
|
if (o || t) return n;
|
|
2112
2140
|
o = !0;
|
|
2113
2141
|
}
|
|
2114
2142
|
}
|
|
2115
2143
|
while (n = n.parentNode);
|
|
2116
|
-
return
|
|
2144
|
+
return ge();
|
|
2117
2145
|
}
|
|
2118
2146
|
function w2(e, t) {
|
|
2119
2147
|
if (e && t)
|
|
@@ -2121,7 +2149,7 @@ function w2(e, t) {
|
|
|
2121
2149
|
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2122
2150
|
return e;
|
|
2123
2151
|
}
|
|
2124
|
-
function
|
|
2152
|
+
function xt(e, t) {
|
|
2125
2153
|
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);
|
|
2126
2154
|
}
|
|
2127
2155
|
var Ue;
|
|
@@ -2156,11 +2184,11 @@ function k2() {
|
|
|
2156
2184
|
if (!(T(i, "display") === "none" || i === x.ghost)) {
|
|
2157
2185
|
e.push({
|
|
2158
2186
|
target: i,
|
|
2159
|
-
rect:
|
|
2187
|
+
rect: Y(i)
|
|
2160
2188
|
});
|
|
2161
|
-
var a =
|
|
2189
|
+
var a = me({}, e[e.length - 1].rect);
|
|
2162
2190
|
if (i.thisAnimationDuration) {
|
|
2163
|
-
var l =
|
|
2191
|
+
var l = ze(i, !0);
|
|
2164
2192
|
l && (a.top -= l.f, a.left -= l.e);
|
|
2165
2193
|
}
|
|
2166
2194
|
i.fromRect = a;
|
|
@@ -2184,9 +2212,9 @@ function k2() {
|
|
|
2184
2212
|
}
|
|
2185
2213
|
var a = !1, l = 0;
|
|
2186
2214
|
e.forEach(function(r) {
|
|
2187
|
-
var s = 0, u = r.target, f = u.fromRect, c =
|
|
2188
|
-
M && (c.top -= M.f, c.left -= M.e), u.toRect = c, u.thisAnimationDuration &&
|
|
2189
|
-
(w.top - c.top) / (w.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = E2(w, v, $, i.options)),
|
|
2215
|
+
var s = 0, u = r.target, f = u.fromRect, c = Y(u), v = u.prevFromRect, $ = u.prevToRect, w = r.rect, M = ze(u, !0);
|
|
2216
|
+
M && (c.top -= M.f, c.left -= M.e), u.toRect = c, u.thisAnimationDuration && xt(v, c) && !xt(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
2217
|
+
(w.top - c.top) / (w.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = E2(w, v, $, i.options)), xt(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, w, c, s)), s && (a = !0, l = Math.max(l, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
2190
2218
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
2191
2219
|
}, s), u.thisAnimationDuration = s);
|
|
2192
2220
|
}), clearTimeout(t), a ? t = setTimeout(function() {
|
|
@@ -2196,7 +2224,7 @@ function k2() {
|
|
|
2196
2224
|
animate: function(o, i, a, l) {
|
|
2197
2225
|
if (l) {
|
|
2198
2226
|
T(o, "transition", ""), T(o, "transform", "");
|
|
2199
|
-
var r =
|
|
2227
|
+
var r = ze(this.el), s = r && r.a, u = r && r.d, f = (i.left - a.left) / (s || 1), c = (i.top - a.top) / (u || 1);
|
|
2200
2228
|
o.animatingX = !!f, o.animatingY = !!c, T(o, "transform", "translate3d(" + f + "px," + c + "px,0)"), this.forRepaintDummy = $2(o), T(o, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), T(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
2201
2229
|
T(o, "transition", ""), T(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
2202
2230
|
}, l);
|
|
@@ -2210,12 +2238,12 @@ function $2(e) {
|
|
|
2210
2238
|
function E2(e, t, n, o) {
|
|
2211
2239
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
2212
2240
|
}
|
|
2213
|
-
var Ie = [],
|
|
2241
|
+
var Ie = [], Lt = {
|
|
2214
2242
|
initializeByDefault: !0
|
|
2215
2243
|
}, nt = {
|
|
2216
2244
|
mount: function(t) {
|
|
2217
|
-
for (var n in
|
|
2218
|
-
|
|
2245
|
+
for (var n in Lt)
|
|
2246
|
+
Lt.hasOwnProperty(n) && !(n in t) && (t[n] = Lt[n]);
|
|
2219
2247
|
Ie.forEach(function(o) {
|
|
2220
2248
|
if (o.pluginName === t.pluginName)
|
|
2221
2249
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
@@ -2228,9 +2256,9 @@ var Ie = [], xt = {
|
|
|
2228
2256
|
};
|
|
2229
2257
|
var a = t + "Global";
|
|
2230
2258
|
Ie.forEach(function(l) {
|
|
2231
|
-
n[l.pluginName] && (n[l.pluginName][a] && n[l.pluginName][a](
|
|
2259
|
+
n[l.pluginName] && (n[l.pluginName][a] && n[l.pluginName][a](me({
|
|
2232
2260
|
sortable: n
|
|
2233
|
-
}, o)), n.options[l.pluginName] && n[l.pluginName][t] && n[l.pluginName][t](
|
|
2261
|
+
}, o)), n.options[l.pluginName] && n[l.pluginName][t] && n[l.pluginName][t](me({
|
|
2234
2262
|
sortable: n
|
|
2235
2263
|
}, o)));
|
|
2236
2264
|
});
|
|
@@ -2270,7 +2298,7 @@ function D2(e) {
|
|
|
2270
2298
|
bubbles: !0,
|
|
2271
2299
|
cancelable: !0
|
|
2272
2300
|
}) : (M = document.createEvent("Event"), M.initEvent(o, !0, !0)), M.to = l || n, M.from = r || n, M.item = i || n, M.clone = a, M.oldIndex = s, M.newIndex = u, M.oldDraggableIndex = f, M.newDraggableIndex = c, M.originalEvent = v, M.pullMode = $ ? $.lastPutMode : void 0;
|
|
2273
|
-
var b =
|
|
2301
|
+
var b = me(me({}, w), nt.getEventProperties(o, t));
|
|
2274
2302
|
for (var C in b)
|
|
2275
2303
|
M[C] = b[C];
|
|
2276
2304
|
n && n.dispatchEvent(M), E[D] && E[D].call(t, M);
|
|
@@ -2278,11 +2306,11 @@ function D2(e) {
|
|
|
2278
2306
|
}
|
|
2279
2307
|
var T2 = ["evt"], te = function(t, n) {
|
|
2280
2308
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, a = m2(o, T2);
|
|
2281
|
-
nt.pluginEvent.bind(x)(t, n,
|
|
2309
|
+
nt.pluginEvent.bind(x)(t, n, me({
|
|
2282
2310
|
dragEl: m,
|
|
2283
|
-
parentEl:
|
|
2311
|
+
parentEl: j,
|
|
2284
2312
|
ghostEl: L,
|
|
2285
|
-
rootEl:
|
|
2313
|
+
rootEl: z,
|
|
2286
2314
|
nextEl: Me,
|
|
2287
2315
|
lastDownEl: ut,
|
|
2288
2316
|
cloneEl: R,
|
|
@@ -2313,26 +2341,26 @@ var T2 = ["evt"], te = function(t, n) {
|
|
|
2313
2341
|
}, a));
|
|
2314
2342
|
};
|
|
2315
2343
|
function ee(e) {
|
|
2316
|
-
D2(
|
|
2344
|
+
D2(me({
|
|
2317
2345
|
putSortable: X,
|
|
2318
2346
|
cloneEl: R,
|
|
2319
2347
|
targetEl: m,
|
|
2320
|
-
rootEl:
|
|
2348
|
+
rootEl: z,
|
|
2321
2349
|
oldIndex: Fe,
|
|
2322
2350
|
oldDraggableIndex: Xe,
|
|
2323
2351
|
newIndex: ie,
|
|
2324
2352
|
newDraggableIndex: Ee
|
|
2325
2353
|
}, e));
|
|
2326
2354
|
}
|
|
2327
|
-
var m,
|
|
2328
|
-
if (
|
|
2355
|
+
var m, j, L, z, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Pe = !1, pt = !1, gt = [], Le, ce, Ot, Mt, un, dn, Ge, Ae, Ke, Qe = !1, at = !1, dt, K, _t = [], zt = !1, mt = [], $t = typeof document < "u", lt = kn, cn = tt || ke ? "cssFloat" : "float", x2 = $t && !b2 && !kn && "draggable" in document.createElement("div"), Ln = function() {
|
|
2356
|
+
if ($t) {
|
|
2329
2357
|
if (ke)
|
|
2330
2358
|
return !1;
|
|
2331
2359
|
var e = document.createElement("x");
|
|
2332
2360
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2333
2361
|
}
|
|
2334
2362
|
}(), On = function(t, n) {
|
|
2335
|
-
var o = T(t), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a =
|
|
2363
|
+
var o = T(t), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), a = je(t, 0, n), l = je(t, 1, n), r = a && T(a), s = l && T(l), u = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + Y(a).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Y(l).width;
|
|
2336
2364
|
if (o.display === "flex")
|
|
2337
2365
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2338
2366
|
if (o.display === "grid")
|
|
@@ -2350,7 +2378,7 @@ var m, z, L, V, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Ae = !1, pt = !1, gt = [],
|
|
|
2350
2378
|
return gt.some(function(i) {
|
|
2351
2379
|
var a = i[ae].options.emptyInsertThreshold;
|
|
2352
2380
|
if (!(!a || Yt(i))) {
|
|
2353
|
-
var l =
|
|
2381
|
+
var l = Y(i), r = t >= l.left - a && t <= l.right + a, s = n >= l.top - a && n <= l.bottom + a;
|
|
2354
2382
|
if (r && s)
|
|
2355
2383
|
return o = i;
|
|
2356
2384
|
}
|
|
@@ -2380,7 +2408,7 @@ var m, z, L, V, Me, ut, R, Te, Fe, ie, Xe, Ee, it, X, Ae = !1, pt = !1, gt = [],
|
|
|
2380
2408
|
}, Bn = function() {
|
|
2381
2409
|
!Ln && L && T(L, "display", "");
|
|
2382
2410
|
};
|
|
2383
|
-
|
|
2411
|
+
$t && document.addEventListener("click", function(e) {
|
|
2384
2412
|
if (pt)
|
|
2385
2413
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), pt = !1, !1;
|
|
2386
2414
|
}, !0);
|
|
@@ -2453,13 +2481,13 @@ function x(e, t) {
|
|
|
2453
2481
|
Mn(t);
|
|
2454
2482
|
for (var i in this)
|
|
2455
2483
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2456
|
-
this.nativeDraggable = t.forceFallback ? !1 : x2, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
2484
|
+
this.nativeDraggable = t.forceFallback ? !1 : x2, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? A(e, "pointerdown", this._onTapStart) : (A(e, "mousedown", this._onTapStart), A(e, "touchstart", this._onTapStart)), this.nativeDraggable && (A(e, "dragover", this), A(e, "dragenter", this)), gt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), we(this, k2());
|
|
2457
2485
|
}
|
|
2458
2486
|
x.prototype = /** @lends Sortable.prototype */
|
|
2459
2487
|
{
|
|
2460
2488
|
constructor: x,
|
|
2461
2489
|
_isOutsideThisEl: function(t) {
|
|
2462
|
-
!this.el.contains(t) && t !== this.el && (
|
|
2490
|
+
!this.el.contains(t) && t !== this.el && (Ae = null);
|
|
2463
2491
|
},
|
|
2464
2492
|
_getDirection: function(t, n) {
|
|
2465
2493
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, m) : this.options.direction;
|
|
@@ -2467,8 +2495,8 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2467
2495
|
_onTapStart: function(t) {
|
|
2468
2496
|
if (t.cancelable) {
|
|
2469
2497
|
var n = this, o = this.el, i = this.options, a = i.preventOnFilter, l = t.type, r = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (r || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, f = i.filter;
|
|
2470
|
-
if (V2(o), !m && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ye && s && s.tagName.toUpperCase() === "SELECT") && (s =
|
|
2471
|
-
if (Fe =
|
|
2498
|
+
if (V2(o), !m && !(/mousedown|pointerdown/.test(l) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ye && s && s.tagName.toUpperCase() === "SELECT") && (s = pe(s, i.draggable, o, !1), !(s && s.animated) && ut !== s)) {
|
|
2499
|
+
if (Fe = se(s), Xe = se(s, i.draggable), typeof f == "function") {
|
|
2472
2500
|
if (f.call(this, t, s, this)) {
|
|
2473
2501
|
ee({
|
|
2474
2502
|
sortable: n,
|
|
@@ -2483,7 +2511,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2483
2511
|
return;
|
|
2484
2512
|
}
|
|
2485
2513
|
} else if (f && (f = f.split(",").some(function(c) {
|
|
2486
|
-
if (c =
|
|
2514
|
+
if (c = pe(u, c.trim(), o, !1), c)
|
|
2487
2515
|
return ee({
|
|
2488
2516
|
sortable: n,
|
|
2489
2517
|
rootEl: c,
|
|
@@ -2498,15 +2526,15 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2498
2526
|
a && t.cancelable && t.preventDefault();
|
|
2499
2527
|
return;
|
|
2500
2528
|
}
|
|
2501
|
-
i.handle && !
|
|
2529
|
+
i.handle && !pe(u, i.handle, o, !1) || this._prepareDragStart(t, r, s);
|
|
2502
2530
|
}
|
|
2503
2531
|
}
|
|
2504
2532
|
},
|
|
2505
2533
|
_prepareDragStart: function(t, n, o) {
|
|
2506
2534
|
var i = this, a = i.el, l = i.options, r = a.ownerDocument, s;
|
|
2507
2535
|
if (o && !m && o.parentNode === a) {
|
|
2508
|
-
var u =
|
|
2509
|
-
if (
|
|
2536
|
+
var u = Y(o);
|
|
2537
|
+
if (z = a, m = o, j = m.parentNode, Me = m.nextSibling, ut = o, it = l.group, x.dragged = m, Le = {
|
|
2510
2538
|
target: m,
|
|
2511
2539
|
clientX: (n || t).clientX,
|
|
2512
2540
|
clientY: (n || t).clientY
|
|
@@ -2523,15 +2551,15 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2523
2551
|
originalEvent: t
|
|
2524
2552
|
}), oe(m, l.chosenClass, !0);
|
|
2525
2553
|
}, l.ignore.split(",").forEach(function(f) {
|
|
2526
|
-
En(m, f.trim(),
|
|
2527
|
-
}),
|
|
2554
|
+
En(m, f.trim(), Bt);
|
|
2555
|
+
}), A(r, "dragover", Oe), A(r, "mousemove", Oe), A(r, "touchmove", Oe), A(r, "mouseup", i._onDrop), A(r, "touchend", i._onDrop), A(r, "touchcancel", i._onDrop), an && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), te("delayStart", this, {
|
|
2528
2556
|
evt: t
|
|
2529
2557
|
}), l.delay && (!l.delayOnTouchOnly || n) && (!this.nativeDraggable || !(tt || ke))) {
|
|
2530
2558
|
if (x.eventCanceled) {
|
|
2531
2559
|
this._onDrop();
|
|
2532
2560
|
return;
|
|
2533
2561
|
}
|
|
2534
|
-
|
|
2562
|
+
A(r, "mouseup", i._disableDelayedDrag), A(r, "touchend", i._disableDelayedDrag), A(r, "touchcancel", i._disableDelayedDrag), A(r, "mousemove", i._delayedDragTouchMoveHandler), A(r, "touchmove", i._delayedDragTouchMoveHandler), l.supportPointer && A(r, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, l.delay);
|
|
2535
2563
|
} else
|
|
2536
2564
|
s();
|
|
2537
2565
|
}
|
|
@@ -2541,14 +2569,14 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2541
2569
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
2542
2570
|
},
|
|
2543
2571
|
_disableDelayedDrag: function() {
|
|
2544
|
-
m &&
|
|
2572
|
+
m && Bt(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2545
2573
|
},
|
|
2546
2574
|
_disableDelayedDragEvents: function() {
|
|
2547
2575
|
var t = this.el.ownerDocument;
|
|
2548
2576
|
B(t, "mouseup", this._disableDelayedDrag), B(t, "touchend", this._disableDelayedDrag), B(t, "touchcancel", this._disableDelayedDrag), B(t, "mousemove", this._delayedDragTouchMoveHandler), B(t, "touchmove", this._delayedDragTouchMoveHandler), B(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2549
2577
|
},
|
|
2550
2578
|
_triggerDragStart: function(t, n) {
|
|
2551
|
-
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ?
|
|
2579
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : n ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(m, "dragend", this), A(z, "dragstart", this._onDragStart));
|
|
2552
2580
|
try {
|
|
2553
2581
|
document.selection ? ct(function() {
|
|
2554
2582
|
document.selection.empty();
|
|
@@ -2557,10 +2585,10 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2557
2585
|
}
|
|
2558
2586
|
},
|
|
2559
2587
|
_dragStarted: function(t, n) {
|
|
2560
|
-
if (
|
|
2588
|
+
if (Pe = !1, z && m) {
|
|
2561
2589
|
te("dragStarted", this, {
|
|
2562
2590
|
evt: n
|
|
2563
|
-
}), this.nativeDraggable &&
|
|
2591
|
+
}), this.nativeDraggable && A(document, "dragover", M2);
|
|
2564
2592
|
var o = this.options;
|
|
2565
2593
|
!t && oe(m, o.dragClass, !1), oe(m, o.ghostClass, !0), x.active = this, t && this._appendGhost(), ee({
|
|
2566
2594
|
sortable: this,
|
|
@@ -2571,17 +2599,17 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2571
2599
|
this._nulling();
|
|
2572
2600
|
},
|
|
2573
2601
|
_emulateDragOver: function() {
|
|
2574
|
-
if (
|
|
2575
|
-
this._lastX =
|
|
2576
|
-
for (var t = document.elementFromPoint(
|
|
2602
|
+
if (ce) {
|
|
2603
|
+
this._lastX = ce.clientX, this._lastY = ce.clientY, _n();
|
|
2604
|
+
for (var t = document.elementFromPoint(ce.clientX, ce.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(ce.clientX, ce.clientY), t !== n); )
|
|
2577
2605
|
n = t;
|
|
2578
2606
|
if (m.parentNode[ae]._isOutsideThisEl(t), n)
|
|
2579
2607
|
do {
|
|
2580
2608
|
if (n[ae]) {
|
|
2581
2609
|
var o = void 0;
|
|
2582
2610
|
if (o = n[ae]._onDragOver({
|
|
2583
|
-
clientX:
|
|
2584
|
-
clientY:
|
|
2611
|
+
clientX: ce.clientX,
|
|
2612
|
+
clientY: ce.clientY,
|
|
2585
2613
|
target: t,
|
|
2586
2614
|
rootEl: n
|
|
2587
2615
|
}), o && !this.options.dragoverBubble)
|
|
@@ -2594,14 +2622,14 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2594
2622
|
},
|
|
2595
2623
|
_onTouchMove: function(t) {
|
|
2596
2624
|
if (Le) {
|
|
2597
|
-
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L &&
|
|
2598
|
-
if (!x.active && !
|
|
2625
|
+
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, a = t.touches ? t.touches[0] : t, l = L && ze(L, !0), r = L && l && l.a, s = L && l && l.d, u = lt && K && sn(K), f = (a.clientX - Le.clientX + i.x) / (r || 1) + (u ? u[0] - _t[0] : 0) / (r || 1), c = (a.clientY - Le.clientY + i.y) / (s || 1) + (u ? u[1] - _t[1] : 0) / (s || 1);
|
|
2626
|
+
if (!x.active && !Pe) {
|
|
2599
2627
|
if (o && Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) < o)
|
|
2600
2628
|
return;
|
|
2601
2629
|
this._onDragStart(t, !0);
|
|
2602
2630
|
}
|
|
2603
2631
|
if (L) {
|
|
2604
|
-
l ? (l.e += f - (
|
|
2632
|
+
l ? (l.e += f - (Ot || 0), l.f += c - (Mt || 0)) : l = {
|
|
2605
2633
|
a: 1,
|
|
2606
2634
|
b: 0,
|
|
2607
2635
|
c: 0,
|
|
@@ -2610,18 +2638,18 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2610
2638
|
f: c
|
|
2611
2639
|
};
|
|
2612
2640
|
var v = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
|
|
2613
|
-
T(L, "webkitTransform", v), T(L, "mozTransform", v), T(L, "msTransform", v), T(L, "transform", v),
|
|
2641
|
+
T(L, "webkitTransform", v), T(L, "mozTransform", v), T(L, "msTransform", v), T(L, "transform", v), Ot = f, Mt = c, ce = a;
|
|
2614
2642
|
}
|
|
2615
2643
|
t.cancelable && t.preventDefault();
|
|
2616
2644
|
}
|
|
2617
2645
|
},
|
|
2618
2646
|
_appendGhost: function() {
|
|
2619
2647
|
if (!L) {
|
|
2620
|
-
var t = this.options.fallbackOnBody ? document.body :
|
|
2648
|
+
var t = this.options.fallbackOnBody ? document.body : z, n = Y(m, !0, lt, !0, t), o = this.options;
|
|
2621
2649
|
if (lt) {
|
|
2622
2650
|
for (K = t; T(K, "position") === "static" && T(K, "transform") === "none" && K !== document; )
|
|
2623
2651
|
K = K.parentNode;
|
|
2624
|
-
K !== document.body && K !== document.documentElement ? (K === document && (K =
|
|
2652
|
+
K !== document.body && K !== document.documentElement ? (K === document && (K = ge()), n.top += K.scrollTop, n.left += K.scrollLeft) : K = ge(), _t = sn(K);
|
|
2625
2653
|
}
|
|
2626
2654
|
L = m.cloneNode(!0), oe(L, o.ghostClass, !1), oe(L, o.fallbackClass, !0), oe(L, o.dragClass, !0), T(L, "transition", ""), T(L, "transform", ""), T(L, "box-sizing", "border-box"), T(L, "margin", 0), T(L, "top", n.top), T(L, "left", n.left), T(L, "width", n.width), T(L, "height", n.height), T(L, "opacity", "0.8"), T(L, "position", lt ? "absolute" : "fixed"), T(L, "zIndex", "100000"), T(L, "pointerEvents", "none"), x.ghost = L, t.appendChild(L), T(L, "transform-origin", un / parseInt(L.style.width) * 100 + "% " + dn / parseInt(L.style.height) * 100 + "%");
|
|
2627
2655
|
}
|
|
@@ -2635,18 +2663,18 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2635
2663
|
return;
|
|
2636
2664
|
}
|
|
2637
2665
|
te("setupClone", this), x.eventCanceled || (R = xn(m), R.draggable = !1, R.style["will-change"] = "", this._hideClone(), oe(R, this.options.chosenClass, !1), x.clone = R), o.cloneId = ct(function() {
|
|
2638
|
-
te("clone", o), !x.eventCanceled && (o.options.removeCloneOnHide ||
|
|
2666
|
+
te("clone", o), !x.eventCanceled && (o.options.removeCloneOnHide || z.insertBefore(R, m), o._hideClone(), ee({
|
|
2639
2667
|
sortable: o,
|
|
2640
2668
|
name: "clone"
|
|
2641
2669
|
}));
|
|
2642
|
-
}), !n && oe(m, a.dragClass, !0), n ? (pt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (B(document, "mouseup", o._onDrop), B(document, "touchend", o._onDrop), B(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, m)),
|
|
2670
|
+
}), !n && oe(m, a.dragClass, !0), n ? (pt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (B(document, "mouseup", o._onDrop), B(document, "touchend", o._onDrop), B(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", a.setData && a.setData.call(o, i, m)), A(document, "drop", o), T(m, "transform", "translateZ(0)")), Pe = !0, o._dragStartId = ct(o._dragStarted.bind(o, n, t)), A(document, "selectstart", o), Ge = !0, Ye && T(document.body, "user-select", "none");
|
|
2643
2671
|
},
|
|
2644
2672
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
2645
2673
|
_onDragOver: function(t) {
|
|
2646
2674
|
var n = this.el, o = t.target, i, a, l, r = this.options, s = r.group, u = x.active, f = it === s, c = r.sort, v = X || u, $, w = this, M = !1;
|
|
2647
|
-
if (
|
|
2675
|
+
if (zt) return;
|
|
2648
2676
|
function E(He, Nn) {
|
|
2649
|
-
te(He, w,
|
|
2677
|
+
te(He, w, me({
|
|
2650
2678
|
evt: t,
|
|
2651
2679
|
isOwner: f,
|
|
2652
2680
|
axis: $ ? "vertical" : "horizontal",
|
|
@@ -2658,7 +2686,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2658
2686
|
target: o,
|
|
2659
2687
|
completed: b,
|
|
2660
2688
|
onMove: function(Kt, Fn) {
|
|
2661
|
-
return rt(
|
|
2689
|
+
return rt(z, n, m, i, Kt, Y(Kt), t, Fn);
|
|
2662
2690
|
},
|
|
2663
2691
|
changed: C
|
|
2664
2692
|
}, Nn));
|
|
@@ -2671,10 +2699,10 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2671
2699
|
insertion: He
|
|
2672
2700
|
}), He && (f ? u._hideClone() : u._showClone(w), w !== v && (oe(m, X ? X.options.ghostClass : u.options.ghostClass, !1), oe(m, r.ghostClass, !0)), X !== w && w !== x.active ? X = w : w === x.active && X && (X = null), v === w && (w._ignoreWhileAnimating = o), w.animateAll(function() {
|
|
2673
2701
|
E("dragOverAnimationComplete"), w._ignoreWhileAnimating = null;
|
|
2674
|
-
}), w !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && (
|
|
2702
|
+
}), w !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && (Ae = null), !r.dragoverBubble && !t.rootEl && o !== document && (m.parentNode[ae]._isOutsideThisEl(t.target), !He && Oe(t)), !r.dragoverBubble && t.stopPropagation && t.stopPropagation(), M = !0;
|
|
2675
2703
|
}
|
|
2676
2704
|
function C() {
|
|
2677
|
-
ie =
|
|
2705
|
+
ie = se(m), Ee = se(m, r.draggable), ee({
|
|
2678
2706
|
sortable: w,
|
|
2679
2707
|
name: "change",
|
|
2680
2708
|
toEl: n,
|
|
@@ -2683,44 +2711,44 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2683
2711
|
originalEvent: t
|
|
2684
2712
|
});
|
|
2685
2713
|
}
|
|
2686
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o =
|
|
2714
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = pe(o, r.draggable, n, !0), E("dragOver"), x.eventCanceled) return M;
|
|
2687
2715
|
if (m.contains(t.target) || o.animated && o.animatingX && o.animatingY || w._ignoreWhileAnimating === o)
|
|
2688
2716
|
return b(!1);
|
|
2689
|
-
if (pt = !1, u && !r.disabled && (f ? c || (l =
|
|
2690
|
-
if ($ = this._getDirection(t, o) === "vertical", i =
|
|
2717
|
+
if (pt = !1, u && !r.disabled && (f ? c || (l = j !== z) : X === this || (this.lastPutMode = it.checkPull(this, u, m, t)) && s.checkPut(this, u, m, t))) {
|
|
2718
|
+
if ($ = this._getDirection(t, o) === "vertical", i = Y(m), E("dragOverValid"), x.eventCanceled) return M;
|
|
2691
2719
|
if (l)
|
|
2692
|
-
return
|
|
2720
|
+
return j = z, D(), this._hideClone(), E("revert"), x.eventCanceled || (Me ? z.insertBefore(m, Me) : z.appendChild(m)), b(!0);
|
|
2693
2721
|
var g = Yt(n, r.draggable);
|
|
2694
|
-
if (!g ||
|
|
2722
|
+
if (!g || A2(t, $, this) && !g.animated) {
|
|
2695
2723
|
if (g === m)
|
|
2696
2724
|
return b(!1);
|
|
2697
|
-
if (g && n === t.target && (o = g), o && (a =
|
|
2698
|
-
return D(), n.appendChild(m),
|
|
2725
|
+
if (g && n === t.target && (o = g), o && (a = Y(o)), rt(z, n, m, i, o, a, t, !!o) !== !1)
|
|
2726
|
+
return D(), n.appendChild(m), j = n, C(), b(!0);
|
|
2699
2727
|
} else if (g && I2(t, $, this)) {
|
|
2700
|
-
var S =
|
|
2728
|
+
var S = je(n, 0, r, !0);
|
|
2701
2729
|
if (S === m)
|
|
2702
2730
|
return b(!1);
|
|
2703
|
-
if (o = S, a =
|
|
2704
|
-
return D(), n.insertBefore(m, S),
|
|
2731
|
+
if (o = S, a = Y(o), rt(z, n, m, i, o, a, t, !1) !== !1)
|
|
2732
|
+
return D(), n.insertBefore(m, S), j = n, C(), b(!0);
|
|
2705
2733
|
} else if (o.parentNode === n) {
|
|
2706
|
-
a =
|
|
2707
|
-
var y = 0,
|
|
2708
|
-
|
|
2709
|
-
var
|
|
2734
|
+
a = Y(o);
|
|
2735
|
+
var y = 0, V, J = m.parentNode !== n, U = !L2(m.animated && m.toRect || i, o.animated && o.toRect || a, $), he = $ ? "top" : "left", ne = rn(o, "top", "top") || rn(m, "top", "top"), ve = ne ? ne.scrollTop : void 0;
|
|
2736
|
+
Ae !== o && (V = a[he], Qe = !1, at = !U && r.invertSwap || J), y = P2(t, o, a, $, U ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, at, Ae === o);
|
|
2737
|
+
var de;
|
|
2710
2738
|
if (y !== 0) {
|
|
2711
|
-
var
|
|
2739
|
+
var be = se(m);
|
|
2712
2740
|
do
|
|
2713
|
-
|
|
2714
|
-
while (
|
|
2741
|
+
be -= y, de = j.children[be];
|
|
2742
|
+
while (de && (T(de, "display") === "none" || de === L));
|
|
2715
2743
|
}
|
|
2716
|
-
if (y === 0 ||
|
|
2744
|
+
if (y === 0 || de === o)
|
|
2717
2745
|
return b(!1);
|
|
2718
|
-
|
|
2746
|
+
Ae = o, Ke = y;
|
|
2719
2747
|
var Re = o.nextElementSibling, $e = !1;
|
|
2720
2748
|
$e = y === 1;
|
|
2721
|
-
var ot = rt(
|
|
2749
|
+
var ot = rt(z, n, m, i, o, a, t, $e);
|
|
2722
2750
|
if (ot !== !1)
|
|
2723
|
-
return (ot === 1 || ot === -1) && ($e = ot === 1),
|
|
2751
|
+
return (ot === 1 || ot === -1) && ($e = ot === 1), zt = !0, setTimeout(B2, 30), D(), $e && !Re ? n.appendChild(m) : o.parentNode.insertBefore(m, $e ? Re : o), ne && Tn(ne, 0, ve - ne.scrollTop), j = m.parentNode, V !== void 0 && !at && (dt = Math.abs(V - Y(o)[he])), C(), b(!0);
|
|
2724
2752
|
}
|
|
2725
2753
|
if (n.contains(m))
|
|
2726
2754
|
return b(!1);
|
|
@@ -2737,62 +2765,62 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2737
2765
|
},
|
|
2738
2766
|
_onDrop: function(t) {
|
|
2739
2767
|
var n = this.el, o = this.options;
|
|
2740
|
-
if (ie =
|
|
2768
|
+
if (ie = se(m), Ee = se(m, o.draggable), te("drop", this, {
|
|
2741
2769
|
evt: t
|
|
2742
|
-
}),
|
|
2770
|
+
}), j = m && m.parentNode, ie = se(m), Ee = se(m, o.draggable), x.eventCanceled) {
|
|
2743
2771
|
this._nulling();
|
|
2744
2772
|
return;
|
|
2745
2773
|
}
|
|
2746
|
-
|
|
2774
|
+
Pe = !1, at = !1, Qe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), jt(this.cloneId), jt(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ye && T(document.body, "user-select", ""), T(m, "transform", ""), t && (Ge && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), L && L.parentNode && L.parentNode.removeChild(L), (z === j || X && X.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), m && (this.nativeDraggable && B(m, "dragend", this), Bt(m), m.style["will-change"] = "", Ge && !Pe && oe(m, X ? X.options.ghostClass : this.options.ghostClass, !1), oe(m, this.options.chosenClass, !1), ee({
|
|
2747
2775
|
sortable: this,
|
|
2748
2776
|
name: "unchoose",
|
|
2749
|
-
toEl:
|
|
2777
|
+
toEl: j,
|
|
2750
2778
|
newIndex: null,
|
|
2751
2779
|
newDraggableIndex: null,
|
|
2752
2780
|
originalEvent: t
|
|
2753
|
-
}),
|
|
2754
|
-
rootEl:
|
|
2781
|
+
}), z !== j ? (ie >= 0 && (ee({
|
|
2782
|
+
rootEl: j,
|
|
2755
2783
|
name: "add",
|
|
2756
|
-
toEl:
|
|
2757
|
-
fromEl:
|
|
2784
|
+
toEl: j,
|
|
2785
|
+
fromEl: z,
|
|
2758
2786
|
originalEvent: t
|
|
2759
2787
|
}), ee({
|
|
2760
2788
|
sortable: this,
|
|
2761
2789
|
name: "remove",
|
|
2762
|
-
toEl:
|
|
2790
|
+
toEl: j,
|
|
2763
2791
|
originalEvent: t
|
|
2764
2792
|
}), ee({
|
|
2765
|
-
rootEl:
|
|
2793
|
+
rootEl: j,
|
|
2766
2794
|
name: "sort",
|
|
2767
|
-
toEl:
|
|
2768
|
-
fromEl:
|
|
2795
|
+
toEl: j,
|
|
2796
|
+
fromEl: z,
|
|
2769
2797
|
originalEvent: t
|
|
2770
2798
|
}), ee({
|
|
2771
2799
|
sortable: this,
|
|
2772
2800
|
name: "sort",
|
|
2773
|
-
toEl:
|
|
2801
|
+
toEl: j,
|
|
2774
2802
|
originalEvent: t
|
|
2775
2803
|
})), X && X.save()) : ie !== Fe && ie >= 0 && (ee({
|
|
2776
2804
|
sortable: this,
|
|
2777
2805
|
name: "update",
|
|
2778
|
-
toEl:
|
|
2806
|
+
toEl: j,
|
|
2779
2807
|
originalEvent: t
|
|
2780
2808
|
}), ee({
|
|
2781
2809
|
sortable: this,
|
|
2782
2810
|
name: "sort",
|
|
2783
|
-
toEl:
|
|
2811
|
+
toEl: j,
|
|
2784
2812
|
originalEvent: t
|
|
2785
2813
|
})), x.active && ((ie == null || ie === -1) && (ie = Fe, Ee = Xe), ee({
|
|
2786
2814
|
sortable: this,
|
|
2787
2815
|
name: "end",
|
|
2788
|
-
toEl:
|
|
2816
|
+
toEl: j,
|
|
2789
2817
|
originalEvent: t
|
|
2790
2818
|
}), this.save()))), this._nulling();
|
|
2791
2819
|
},
|
|
2792
2820
|
_nulling: function() {
|
|
2793
|
-
te("nulling", this),
|
|
2821
|
+
te("nulling", this), z = m = j = L = Me = R = ut = Te = Le = ce = Ge = ie = Ee = Fe = Xe = Ae = Ke = X = it = x.dragged = x.ghost = x.clone = x.active = null, mt.forEach(function(t) {
|
|
2794
2822
|
t.checked = !0;
|
|
2795
|
-
}), mt.length =
|
|
2823
|
+
}), mt.length = Ot = Mt = 0;
|
|
2796
2824
|
},
|
|
2797
2825
|
handleEvent: function(t) {
|
|
2798
2826
|
switch (t.type) {
|
|
@@ -2815,7 +2843,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2815
2843
|
*/
|
|
2816
2844
|
toArray: function() {
|
|
2817
2845
|
for (var t = [], n, o = this.el.children, i = 0, a = o.length, l = this.options; i < a; i++)
|
|
2818
|
-
n = o[i],
|
|
2846
|
+
n = o[i], pe(n, l.draggable, this.el, !1) && t.push(n.getAttribute(l.dataIdAttr) || F2(n));
|
|
2819
2847
|
return t;
|
|
2820
2848
|
},
|
|
2821
2849
|
/**
|
|
@@ -2826,7 +2854,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2826
2854
|
var o = {}, i = this.el;
|
|
2827
2855
|
this.toArray().forEach(function(a, l) {
|
|
2828
2856
|
var r = i.children[l];
|
|
2829
|
-
|
|
2857
|
+
pe(r, this.options.draggable, i, !1) && (o[a] = r);
|
|
2830
2858
|
}, this), n && this.captureAnimationState(), t.forEach(function(a) {
|
|
2831
2859
|
o[a] && (i.removeChild(o[a]), i.appendChild(o[a]));
|
|
2832
2860
|
}), n && this.animateAll();
|
|
@@ -2845,7 +2873,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2845
2873
|
* @returns {HTMLElement|null}
|
|
2846
2874
|
*/
|
|
2847
2875
|
closest: function(t, n) {
|
|
2848
|
-
return
|
|
2876
|
+
return pe(t, n || this.options.draggable, this.el, !1);
|
|
2849
2877
|
},
|
|
2850
2878
|
/**
|
|
2851
2879
|
* Set/get option
|
|
@@ -2883,7 +2911,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
2883
2911
|
}
|
|
2884
2912
|
if (Te) {
|
|
2885
2913
|
if (te("showClone", this), x.eventCanceled) return;
|
|
2886
|
-
m.parentNode ==
|
|
2914
|
+
m.parentNode == z && !this.options.group.revertClone ? z.insertBefore(R, m) : Me ? z.insertBefore(R, Me) : z.appendChild(R), this.options.group.revertClone && this.animate(m, R), T(R, "display", ""), Te = !1;
|
|
2887
2915
|
}
|
|
2888
2916
|
}
|
|
2889
2917
|
};
|
|
@@ -2895,23 +2923,23 @@ function rt(e, t, n, o, i, a, l, r) {
|
|
|
2895
2923
|
return window.CustomEvent && !ke && !tt ? s = new CustomEvent("move", {
|
|
2896
2924
|
bubbles: !0,
|
|
2897
2925
|
cancelable: !0
|
|
2898
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = a ||
|
|
2926
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = a || Y(t), s.willInsertAfter = r, s.originalEvent = l, e.dispatchEvent(s), f && (c = f.call(u, s, l)), c;
|
|
2899
2927
|
}
|
|
2900
|
-
function
|
|
2928
|
+
function Bt(e) {
|
|
2901
2929
|
e.draggable = !1;
|
|
2902
2930
|
}
|
|
2903
2931
|
function B2() {
|
|
2904
|
-
|
|
2932
|
+
zt = !1;
|
|
2905
2933
|
}
|
|
2906
2934
|
function I2(e, t, n) {
|
|
2907
|
-
var o =
|
|
2935
|
+
var o = Y(je(n.el, 0, n.options, !0)), i = 10;
|
|
2908
2936
|
return t ? e.clientX < o.left - i || e.clientY < o.top && e.clientX < o.right : e.clientY < o.top - i || e.clientY < o.bottom && e.clientX < o.left;
|
|
2909
2937
|
}
|
|
2910
|
-
function
|
|
2911
|
-
var o =
|
|
2938
|
+
function A2(e, t, n) {
|
|
2939
|
+
var o = Y(Yt(n.el, n.options.draggable)), i = 10;
|
|
2912
2940
|
return t ? e.clientX > o.right + i || e.clientX <= o.right && e.clientY > o.bottom && e.clientX >= o.left : e.clientX > o.right && e.clientY > o.top || e.clientX <= o.right && e.clientY > o.bottom + i;
|
|
2913
2941
|
}
|
|
2914
|
-
function
|
|
2942
|
+
function P2(e, t, n, o, i, a, l, r) {
|
|
2915
2943
|
var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, f = o ? n.top : n.left, c = o ? n.bottom : n.right, v = !1;
|
|
2916
2944
|
if (!l) {
|
|
2917
2945
|
if (r && dt < u * i) {
|
|
@@ -2925,7 +2953,7 @@ function A2(e, t, n, o, i, a, l, r) {
|
|
|
2925
2953
|
return v = v || l, v && (s < f + u * a / 2 || s > c - u * a / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
2926
2954
|
}
|
|
2927
2955
|
function N2(e) {
|
|
2928
|
-
return
|
|
2956
|
+
return se(m) < se(e) ? 1 : -1;
|
|
2929
2957
|
}
|
|
2930
2958
|
function F2(e) {
|
|
2931
2959
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
@@ -2945,27 +2973,27 @@ function ct(e) {
|
|
|
2945
2973
|
function jt(e) {
|
|
2946
2974
|
return clearTimeout(e);
|
|
2947
2975
|
}
|
|
2948
|
-
|
|
2949
|
-
(x.active ||
|
|
2976
|
+
$t && A(document, "touchmove", function(e) {
|
|
2977
|
+
(x.active || Pe) && e.cancelable && e.preventDefault();
|
|
2950
2978
|
});
|
|
2951
2979
|
x.utils = {
|
|
2952
|
-
on:
|
|
2980
|
+
on: A,
|
|
2953
2981
|
off: B,
|
|
2954
2982
|
css: T,
|
|
2955
2983
|
find: En,
|
|
2956
2984
|
is: function(t, n) {
|
|
2957
|
-
return !!
|
|
2985
|
+
return !!pe(t, n, t, !1);
|
|
2958
2986
|
},
|
|
2959
2987
|
extend: w2,
|
|
2960
2988
|
throttle: Dn,
|
|
2961
|
-
closest:
|
|
2989
|
+
closest: pe,
|
|
2962
2990
|
toggleClass: oe,
|
|
2963
2991
|
clone: xn,
|
|
2964
|
-
index:
|
|
2992
|
+
index: se,
|
|
2965
2993
|
nextTick: ct,
|
|
2966
2994
|
cancelNextTick: jt,
|
|
2967
2995
|
detectDirection: On,
|
|
2968
|
-
getChild:
|
|
2996
|
+
getChild: je
|
|
2969
2997
|
};
|
|
2970
2998
|
x.get = function(e) {
|
|
2971
2999
|
return e[ae];
|
|
@@ -2976,15 +3004,15 @@ x.mount = function() {
|
|
|
2976
3004
|
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
2977
3005
|
if (!o.prototype || !o.prototype.constructor)
|
|
2978
3006
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
2979
|
-
o.utils && (x.utils =
|
|
3007
|
+
o.utils && (x.utils = me(me({}, x.utils), o.utils)), nt.mount(o);
|
|
2980
3008
|
});
|
|
2981
3009
|
};
|
|
2982
3010
|
x.create = function(e, t) {
|
|
2983
3011
|
return new x(e, t);
|
|
2984
3012
|
};
|
|
2985
3013
|
x.version = v2;
|
|
2986
|
-
var
|
|
2987
|
-
function
|
|
3014
|
+
var G = [], qe, Rt, Ht = !1, It, At, vt, We;
|
|
3015
|
+
function z2() {
|
|
2988
3016
|
function e() {
|
|
2989
3017
|
this.defaults = {
|
|
2990
3018
|
scroll: !0,
|
|
@@ -2999,7 +3027,7 @@ function j2() {
|
|
|
2999
3027
|
return e.prototype = {
|
|
3000
3028
|
dragStarted: function(n) {
|
|
3001
3029
|
var o = n.originalEvent;
|
|
3002
|
-
this.sortable.nativeDraggable ?
|
|
3030
|
+
this.sortable.nativeDraggable ? A(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? A(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? A(document, "touchmove", this._handleFallbackAutoScroll) : A(document, "mousemove", this._handleFallbackAutoScroll);
|
|
3003
3031
|
},
|
|
3004
3032
|
dragOverCompleted: function(n) {
|
|
3005
3033
|
var o = n.originalEvent;
|
|
@@ -3009,7 +3037,7 @@ function j2() {
|
|
|
3009
3037
|
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), fn(), ft(), S2();
|
|
3010
3038
|
},
|
|
3011
3039
|
nulling: function() {
|
|
3012
|
-
vt =
|
|
3040
|
+
vt = Rt = qe = Ht = We = It = At = null, G.length = 0;
|
|
3013
3041
|
},
|
|
3014
3042
|
_handleFallbackAutoScroll: function(n) {
|
|
3015
3043
|
this._handleAutoScroll(n, !0);
|
|
@@ -3019,12 +3047,12 @@ function j2() {
|
|
|
3019
3047
|
if (vt = n, o || this.options.forceAutoScrollFallback || tt || ke || Ye) {
|
|
3020
3048
|
Pt(n, this.options, r, o);
|
|
3021
3049
|
var s = xe(r, !0);
|
|
3022
|
-
|
|
3050
|
+
Ht && (!We || a !== It || l !== At) && (We && fn(), We = setInterval(function() {
|
|
3023
3051
|
var u = xe(document.elementFromPoint(a, l), !0);
|
|
3024
3052
|
u !== s && (s = u, ft()), Pt(n, i.options, u, o);
|
|
3025
|
-
}, 10),
|
|
3053
|
+
}, 10), It = a, At = l);
|
|
3026
3054
|
} else {
|
|
3027
|
-
if (!this.options.bubbleScroll || xe(r, !0) ===
|
|
3055
|
+
if (!this.options.bubbleScroll || xe(r, !0) === ge()) {
|
|
3028
3056
|
ft();
|
|
3029
3057
|
return;
|
|
3030
3058
|
}
|
|
@@ -3037,34 +3065,34 @@ function j2() {
|
|
|
3037
3065
|
});
|
|
3038
3066
|
}
|
|
3039
3067
|
function ft() {
|
|
3040
|
-
|
|
3068
|
+
G.forEach(function(e) {
|
|
3041
3069
|
clearInterval(e.pid);
|
|
3042
|
-
}),
|
|
3070
|
+
}), G = [];
|
|
3043
3071
|
}
|
|
3044
3072
|
function fn() {
|
|
3045
3073
|
clearInterval(We);
|
|
3046
3074
|
}
|
|
3047
3075
|
var Pt = Dn(function(e, t, n, o) {
|
|
3048
3076
|
if (t.scroll) {
|
|
3049
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, s =
|
|
3050
|
-
|
|
3077
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, l = t.scrollSensitivity, r = t.scrollSpeed, s = ge(), u = !1, f;
|
|
3078
|
+
Rt !== n && (Rt = n, ft(), qe = t.scroll, f = t.scrollFn, qe === !0 && (qe = xe(n, !0)));
|
|
3051
3079
|
var c = 0, v = qe;
|
|
3052
3080
|
do {
|
|
3053
|
-
var $ = v, w =
|
|
3054
|
-
$ === s ? (S = C <
|
|
3055
|
-
var
|
|
3056
|
-
if (!
|
|
3057
|
-
for (var
|
|
3058
|
-
|
|
3059
|
-
(
|
|
3081
|
+
var $ = v, w = Y($), M = w.top, E = w.bottom, D = w.left, b = w.right, C = w.width, g = w.height, S = void 0, y = void 0, V = $.scrollWidth, J = $.scrollHeight, U = T($), he = $.scrollLeft, ne = $.scrollTop;
|
|
3082
|
+
$ === s ? (S = C < V && (U.overflowX === "auto" || U.overflowX === "scroll" || U.overflowX === "visible"), y = g < J && (U.overflowY === "auto" || U.overflowY === "scroll" || U.overflowY === "visible")) : (S = C < V && (U.overflowX === "auto" || U.overflowX === "scroll"), y = g < J && (U.overflowY === "auto" || U.overflowY === "scroll"));
|
|
3083
|
+
var ve = S && (Math.abs(b - i) <= l && he + C < V) - (Math.abs(D - i) <= l && !!he), de = y && (Math.abs(E - a) <= l && ne + g < J) - (Math.abs(M - a) <= l && !!ne);
|
|
3084
|
+
if (!G[c])
|
|
3085
|
+
for (var be = 0; be <= c; be++)
|
|
3086
|
+
G[be] || (G[be] = {});
|
|
3087
|
+
(G[c].vx != ve || G[c].vy != de || G[c].el !== $) && (G[c].el = $, G[c].vx = ve, G[c].vy = de, clearInterval(G[c].pid), (ve != 0 || de != 0) && (u = !0, G[c].pid = setInterval(function() {
|
|
3060
3088
|
o && this.layer === 0 && x.active._onTouchMove(vt);
|
|
3061
|
-
var Re =
|
|
3062
|
-
typeof f == "function" && f.call(x.dragged.parentNode[ae], $e, Re, e, vt,
|
|
3089
|
+
var Re = G[this.layer].vy ? G[this.layer].vy * r : 0, $e = G[this.layer].vx ? G[this.layer].vx * r : 0;
|
|
3090
|
+
typeof f == "function" && f.call(x.dragged.parentNode[ae], $e, Re, e, vt, G[this.layer].el) !== "continue" || Tn(G[this.layer].el, $e, Re);
|
|
3063
3091
|
}.bind({
|
|
3064
3092
|
layer: c
|
|
3065
3093
|
}), 24))), c++;
|
|
3066
3094
|
} while (t.bubbleScroll && v !== s && (v = xe(v, !1)));
|
|
3067
|
-
|
|
3095
|
+
Ht = u;
|
|
3068
3096
|
}
|
|
3069
3097
|
}, 30), In = function(t) {
|
|
3070
3098
|
var n = t.originalEvent, o = t.putSortable, i = t.dragEl, a = t.activeSortable, l = t.dispatchSortableEvent, r = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
@@ -3089,7 +3117,7 @@ Ut.prototype = {
|
|
|
3089
3117
|
onSpill: function(t) {
|
|
3090
3118
|
var n = t.dragEl, o = t.putSortable;
|
|
3091
3119
|
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
3092
|
-
var i =
|
|
3120
|
+
var i = je(this.sortable.el, this.startIndex, this.options);
|
|
3093
3121
|
i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
3094
3122
|
},
|
|
3095
3123
|
drop: In
|
|
@@ -3109,12 +3137,12 @@ Xt.prototype = {
|
|
|
3109
3137
|
we(Xt, {
|
|
3110
3138
|
pluginName: "removeOnSpill"
|
|
3111
3139
|
});
|
|
3112
|
-
x.mount(new
|
|
3140
|
+
x.mount(new z2());
|
|
3113
3141
|
x.mount(Xt, Ut);
|
|
3114
|
-
function
|
|
3142
|
+
function j2() {
|
|
3115
3143
|
return typeof window < "u" ? window.console : global.console;
|
|
3116
3144
|
}
|
|
3117
|
-
const R2 =
|
|
3145
|
+
const R2 = j2();
|
|
3118
3146
|
function H2(e) {
|
|
3119
3147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3120
3148
|
return function(o) {
|
|
@@ -3122,7 +3150,7 @@ function H2(e) {
|
|
|
3122
3150
|
};
|
|
3123
3151
|
}
|
|
3124
3152
|
const Z2 = /-(\w)/g, hn = H2((e) => e.replace(Z2, (t, n) => n ? n.toUpperCase() : ""));
|
|
3125
|
-
function
|
|
3153
|
+
function Nt(e) {
|
|
3126
3154
|
e.parentElement !== null && e.parentElement.removeChild(e);
|
|
3127
3155
|
}
|
|
3128
3156
|
function pn(e, t, n) {
|
|
@@ -3138,12 +3166,12 @@ function q2(e, t, n, o) {
|
|
|
3138
3166
|
const i = Object.values(e), a = t.length - o;
|
|
3139
3167
|
return [...t].map((r, s) => s >= a ? i.length : i.indexOf(r));
|
|
3140
3168
|
}
|
|
3141
|
-
function
|
|
3169
|
+
function An(e, t) {
|
|
3142
3170
|
this.$nextTick(() => this.$emit(e.toLowerCase(), t));
|
|
3143
3171
|
}
|
|
3144
3172
|
function W2(e) {
|
|
3145
3173
|
return (t) => {
|
|
3146
|
-
this.realList !== null && this["onDrag" + e](t),
|
|
3174
|
+
this.realList !== null && this["onDrag" + e](t), An.call(this, e, t);
|
|
3147
3175
|
};
|
|
3148
3176
|
}
|
|
3149
3177
|
function Y2(e) {
|
|
@@ -3158,8 +3186,8 @@ function U2(e) {
|
|
|
3158
3186
|
function X2(e, t) {
|
|
3159
3187
|
return t ? { ...t.props, ...t.attrs } : e;
|
|
3160
3188
|
}
|
|
3161
|
-
const
|
|
3162
|
-
let
|
|
3189
|
+
const Zt = ["Start", "Add", "Remove", "Update", "End"], Gt = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], K2 = ["Move", ...Zt, ...Gt].map((e) => "on" + e);
|
|
3190
|
+
let Ft = null;
|
|
3163
3191
|
const Q2 = {
|
|
3164
3192
|
options: Object,
|
|
3165
3193
|
list: {
|
|
@@ -3197,15 +3225,15 @@ const Q2 = {
|
|
|
3197
3225
|
required: !1,
|
|
3198
3226
|
default: null
|
|
3199
3227
|
}
|
|
3200
|
-
}, J2 =
|
|
3228
|
+
}, J2 = P({
|
|
3201
3229
|
name: "VueDraggableNext",
|
|
3202
3230
|
inheritAttrs: !1,
|
|
3203
3231
|
emits: [
|
|
3204
3232
|
"update:modelValue",
|
|
3205
3233
|
"move",
|
|
3206
3234
|
"change",
|
|
3207
|
-
...
|
|
3208
|
-
...
|
|
3235
|
+
...Zt.map((e) => e.toLowerCase()),
|
|
3236
|
+
...Gt.map((e) => e.toLowerCase())
|
|
3209
3237
|
],
|
|
3210
3238
|
props: Q2,
|
|
3211
3239
|
data() {
|
|
@@ -3228,10 +3256,10 @@ const Q2 = {
|
|
|
3228
3256
|
},
|
|
3229
3257
|
mounted() {
|
|
3230
3258
|
const e = {};
|
|
3231
|
-
|
|
3259
|
+
Zt.forEach((i) => {
|
|
3232
3260
|
e["on" + i] = W2.call(this, i);
|
|
3233
|
-
}),
|
|
3234
|
-
e["on" + i] =
|
|
3261
|
+
}), Gt.forEach((i) => {
|
|
3262
|
+
e["on" + i] = An.bind(this, i);
|
|
3235
3263
|
});
|
|
3236
3264
|
const t = Object.keys(this.$attrs).reduce((i, a) => (i[hn(a)] = this.$attrs[a], i), {}), n = Object.assign({}, t, e, {
|
|
3237
3265
|
onMove: (i, a) => this.onDragMove(i, a)
|
|
@@ -3327,13 +3355,13 @@ const Q2 = {
|
|
|
3327
3355
|
n.children = [], n.kept = void 0;
|
|
3328
3356
|
},
|
|
3329
3357
|
onDragStart(e) {
|
|
3330
|
-
this.computeIndexes(), this.context = this.getUnderlyingVm(e.item), this.context && (e.item._underlying_vm_ = this.clone(this.context.element),
|
|
3358
|
+
this.computeIndexes(), this.context = this.getUnderlyingVm(e.item), this.context && (e.item._underlying_vm_ = this.clone(this.context.element), Ft = e.item);
|
|
3331
3359
|
},
|
|
3332
3360
|
onDragAdd(e) {
|
|
3333
3361
|
const t = e.item._underlying_vm_;
|
|
3334
3362
|
if (t === void 0)
|
|
3335
3363
|
return;
|
|
3336
|
-
|
|
3364
|
+
Nt(e.item);
|
|
3337
3365
|
const n = this.getVmIndex(e.newIndex);
|
|
3338
3366
|
this.spliceList(n, 0, t), this.computeIndexes();
|
|
3339
3367
|
const o = { element: t, newIndex: n };
|
|
@@ -3341,7 +3369,7 @@ const Q2 = {
|
|
|
3341
3369
|
},
|
|
3342
3370
|
onDragRemove(e) {
|
|
3343
3371
|
if (pn(this.$el, e.item, e.oldIndex), e.pullMode === "clone") {
|
|
3344
|
-
|
|
3372
|
+
Nt(e.clone);
|
|
3345
3373
|
return;
|
|
3346
3374
|
}
|
|
3347
3375
|
if (!this.context)
|
|
@@ -3352,7 +3380,7 @@ const Q2 = {
|
|
|
3352
3380
|
this.resetTransitionData(t), this.emitChanges({ removed: n });
|
|
3353
3381
|
},
|
|
3354
3382
|
onDragUpdate(e) {
|
|
3355
|
-
|
|
3383
|
+
Nt(e.item), pn(e.from, e.item, e.oldIndex);
|
|
3356
3384
|
const t = this.context.index, n = this.getVmIndex(e.newIndex);
|
|
3357
3385
|
this.updatePosition(t, n);
|
|
3358
3386
|
const o = { element: this.context.element, oldIndex: t, newIndex: n };
|
|
@@ -3374,7 +3402,7 @@ const Q2 = {
|
|
|
3374
3402
|
return n(l, t);
|
|
3375
3403
|
},
|
|
3376
3404
|
onDragEnd() {
|
|
3377
|
-
this.computeIndexes(),
|
|
3405
|
+
this.computeIndexes(), Ft = null;
|
|
3378
3406
|
},
|
|
3379
3407
|
getTrargetedComponent(e) {
|
|
3380
3408
|
return e.__draggable_component__;
|
|
@@ -3396,12 +3424,12 @@ const Q2 = {
|
|
|
3396
3424
|
if (n.length === 0)
|
|
3397
3425
|
return 0;
|
|
3398
3426
|
const o = n.indexOf(t.related), i = e.component.getVmIndex(o);
|
|
3399
|
-
return n.indexOf(
|
|
3427
|
+
return n.indexOf(Ft) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
3400
3428
|
}
|
|
3401
3429
|
}
|
|
3402
3430
|
}), e0 = { class: "flex m-10" }, t0 = { class: "sortable-list" }, n0 = {
|
|
3403
3431
|
name: "SortableList"
|
|
3404
|
-
},
|
|
3432
|
+
}, J0 = /* @__PURE__ */ P({
|
|
3405
3433
|
...n0,
|
|
3406
3434
|
props: {
|
|
3407
3435
|
list: {
|
|
@@ -3416,12 +3444,12 @@ const Q2 = {
|
|
|
3416
3444
|
};
|
|
3417
3445
|
return (i, a) => (d(), p("div", e0, [
|
|
3418
3446
|
h("ul", t0, [
|
|
3419
|
-
|
|
3447
|
+
re(Z(J2), {
|
|
3420
3448
|
list: e.list,
|
|
3421
3449
|
onChange: a[0] || (a[0] = (l) => o(e.list))
|
|
3422
3450
|
}, {
|
|
3423
|
-
default:
|
|
3424
|
-
(d(!0), p(
|
|
3451
|
+
default: q(() => [
|
|
3452
|
+
(d(!0), p(H, null, le(e.list, (l) => (d(), p("li", {
|
|
3425
3453
|
key: l.id
|
|
3426
3454
|
}, [
|
|
3427
3455
|
a[1] || (a[1] = h("span", { class: "grab-icon" }, [
|
|
@@ -3442,7 +3470,7 @@ const Q2 = {
|
|
|
3442
3470
|
])
|
|
3443
3471
|
], -1)),
|
|
3444
3472
|
h("div", null, [
|
|
3445
|
-
l.render ? (d(),
|
|
3473
|
+
l.render ? (d(), F(_e(l.render(l.data)), { key: 0 })) : (d(), p(H, { key: 1 }, [
|
|
3446
3474
|
Q(O(l.data), 1)
|
|
3447
3475
|
], 64))
|
|
3448
3476
|
])
|
|
@@ -3455,7 +3483,7 @@ const Q2 = {
|
|
|
3455
3483
|
}
|
|
3456
3484
|
}), o0 = ["disabled"], i0 = ["src", "alt"], a0 = {
|
|
3457
3485
|
name: "SSOButton"
|
|
3458
|
-
},
|
|
3486
|
+
}, Pn = /* @__PURE__ */ P({
|
|
3459
3487
|
...a0,
|
|
3460
3488
|
props: {
|
|
3461
3489
|
alignCenter: Boolean,
|
|
@@ -3506,7 +3534,7 @@ const Q2 = {
|
|
|
3506
3534
|
}
|
|
3507
3535
|
}), l0 = "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", r0 = {
|
|
3508
3536
|
name: "FacebookSignInButton"
|
|
3509
|
-
},
|
|
3537
|
+
}, ea = /* @__PURE__ */ P({
|
|
3510
3538
|
...r0,
|
|
3511
3539
|
props: {
|
|
3512
3540
|
baseButtonOptions: {
|
|
@@ -3528,9 +3556,9 @@ const Q2 = {
|
|
|
3528
3556
|
},
|
|
3529
3557
|
emits: ["click"],
|
|
3530
3558
|
setup(e) {
|
|
3531
|
-
return (t, n) => (d(),
|
|
3559
|
+
return (t, n) => (d(), F(Pn, fe(e.baseButtonOptions, {
|
|
3532
3560
|
disabled: e.disabled,
|
|
3533
|
-
"image-source":
|
|
3561
|
+
"image-source": Z(l0),
|
|
3534
3562
|
loading: e.loading,
|
|
3535
3563
|
title: e.title,
|
|
3536
3564
|
class: "facebook",
|
|
@@ -3539,7 +3567,7 @@ const Q2 = {
|
|
|
3539
3567
|
}
|
|
3540
3568
|
}), s0 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='46px'%20height='46px'%20viewBox='0%200%2046%2046'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'%3e%3c!--%20Generator:%20Sketch%203.3.3%20(12081)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3ebtn_google_light_normal_ios%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cfilter%20x='-50%25'%20y='-50%25'%20width='200%25'%20height='200%25'%20filterUnits='objectBoundingBox'%20id='filter-1'%3e%3cfeOffset%20dx='0'%20dy='1'%20in='SourceAlpha'%20result='shadowOffsetOuter1'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter1'%20result='shadowBlurOuter1'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.168%200'%20in='shadowBlurOuter1'%20type='matrix'%20result='shadowMatrixOuter1'%3e%3c/feColorMatrix%3e%3cfeOffset%20dx='0'%20dy='0'%20in='SourceAlpha'%20result='shadowOffsetOuter2'%3e%3c/feOffset%3e%3cfeGaussianBlur%20stdDeviation='0.5'%20in='shadowOffsetOuter2'%20result='shadowBlurOuter2'%3e%3c/feGaussianBlur%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.084%200'%20in='shadowBlurOuter2'%20type='matrix'%20result='shadowMatrixOuter2'%3e%3c/feColorMatrix%3e%3cfeMerge%3e%3cfeMergeNode%20in='shadowMatrixOuter1'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='shadowMatrixOuter2'%3e%3c/feMergeNode%3e%3cfeMergeNode%20in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3crect%20id='path-2'%20x='0'%20y='0'%20width='40'%20height='40'%20rx='2'%3e%3c/rect%3e%3c/defs%3e%3cg%20id='Google-Button'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20sketch:type='MSPage'%3e%3cg%20id='9-PATCH'%20sketch:type='MSArtboardGroup'%20transform='translate(-608.000000,%20-160.000000)'%3e%3c/g%3e%3cg%20id='btn_google_light_normal'%20sketch:type='MSArtboardGroup'%20transform='translate(-1.000000,%20-1.000000)'%3e%3cg%20id='button'%20sketch:type='MSLayerGroup'%20transform='translate(4.000000,%204.000000)'%20filter='url(%23filter-1)'%3e%3cg%20id='button-bg'%3e%3cuse%20fill='%23FFFFFF'%20fill-rule='evenodd'%20sketch:type='MSShapeGroup'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3cuse%20fill='none'%20xlink:href='%23path-2'%3e%3c/use%3e%3c/g%3e%3c/g%3e%3cg%20id='logo_googleg_48dp'%20sketch:type='MSLayerGroup'%20transform='translate(15.000000,%2015.000000)'%3e%3cpath%20d='M17.64,9.20454545%20C17.64,8.56636364%2017.5827273,7.95272727%2017.4763636,7.36363636%20L9,7.36363636%20L9,10.845%20L13.8436364,10.845%20C13.635,11.97%2013.0009091,12.9231818%2012.0477273,13.5613636%20L12.0477273,15.8195455%20L14.9563636,15.8195455%20C16.6581818,14.2527273%2017.64,11.9454545%2017.64,9.20454545%20L17.64,9.20454545%20Z'%20id='Shape'%20fill='%234285F4'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M9,18%20C11.43,18%2013.4672727,17.1940909%2014.9563636,15.8195455%20L12.0477273,13.5613636%20C11.2418182,14.1013636%2010.2109091,14.4204545%209,14.4204545%20C6.65590909,14.4204545%204.67181818,12.8372727%203.96409091,10.71%20L0.957272727,10.71%20L0.957272727,13.0418182%20C2.43818182,15.9831818%205.48181818,18%209,18%20L9,18%20Z'%20id='Shape'%20fill='%2334A853'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M3.96409091,10.71%20C3.78409091,10.17%203.68181818,9.59318182%203.68181818,9%20C3.68181818,8.40681818%203.78409091,7.83%203.96409091,7.29%20L3.96409091,4.95818182%20L0.957272727,4.95818182%20C0.347727273,6.17318182%200,7.54772727%200,9%20C0,10.4522727%200.347727273,11.8268182%200.957272727,13.0418182%20L3.96409091,10.71%20L3.96409091,10.71%20Z'%20id='Shape'%20fill='%23FBBC05'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M9,3.57954545%20C10.3213636,3.57954545%2011.5077273,4.03363636%2012.4404545,4.92545455%20L15.0218182,2.34409091%20C13.4631818,0.891818182%2011.4259091,0%209,0%20C5.48181818,0%202.43818182,2.01681818%200.957272727,4.95818182%20L3.96409091,7.29%20C4.67181818,5.16272727%206.65590909,3.57954545%209,3.57954545%20L9,3.57954545%20Z'%20id='Shape'%20fill='%23EA4335'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3cpath%20d='M0,0%20L18,0%20L18,18%20L0,18%20L0,0%20Z'%20id='Shape'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3c/g%3e%3cg%20id='handles_square'%20sketch:type='MSLayerGroup'%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", u0 = {
|
|
3541
3569
|
name: "GoogleSignInButton"
|
|
3542
|
-
},
|
|
3570
|
+
}, ta = /* @__PURE__ */ P({
|
|
3543
3571
|
...u0,
|
|
3544
3572
|
props: {
|
|
3545
3573
|
baseButtonOptions: {
|
|
@@ -3561,9 +3589,9 @@ const Q2 = {
|
|
|
3561
3589
|
},
|
|
3562
3590
|
emits: ["click"],
|
|
3563
3591
|
setup(e) {
|
|
3564
|
-
return (t, n) => (d(),
|
|
3592
|
+
return (t, n) => (d(), F(Pn, fe(e.baseButtonOptions, {
|
|
3565
3593
|
disabled: e.disabled,
|
|
3566
|
-
"image-source":
|
|
3594
|
+
"image-source": Z(s0),
|
|
3567
3595
|
loading: e.loading,
|
|
3568
3596
|
title: e.title,
|
|
3569
3597
|
class: "google",
|
|
@@ -3578,7 +3606,7 @@ const Q2 = {
|
|
|
3578
3606
|
class: "content"
|
|
3579
3607
|
}, g0 = { class: "actions" }, m0 = {
|
|
3580
3608
|
name: "Stepper"
|
|
3581
|
-
}, v0 = /* @__PURE__ */
|
|
3609
|
+
}, v0 = /* @__PURE__ */ P({
|
|
3582
3610
|
...m0,
|
|
3583
3611
|
props: {
|
|
3584
3612
|
nextButtonProperties: {
|
|
@@ -3603,7 +3631,7 @@ const Q2 = {
|
|
|
3603
3631
|
};
|
|
3604
3632
|
return (u, f) => (d(), p("div", c0, [
|
|
3605
3633
|
h("ul", f0, [
|
|
3606
|
-
(d(!0), p(
|
|
3634
|
+
(d(!0), p(H, null, le(e.steps, (c, v) => (d(), p("li", {
|
|
3607
3635
|
key: v,
|
|
3608
3636
|
class: N([
|
|
3609
3637
|
"step",
|
|
@@ -3616,7 +3644,7 @@ const Q2 = {
|
|
|
3616
3644
|
{ active: v === i.value, completed: v < i.value }
|
|
3617
3645
|
])
|
|
3618
3646
|
}, [
|
|
3619
|
-
v < i.value ? (d(), p("img", h0)) : (d(), p(
|
|
3647
|
+
v < i.value ? (d(), p("img", h0)) : (d(), p(H, { key: 1 }, [
|
|
3620
3648
|
Q(O(c.step || v + 1), 1)
|
|
3621
3649
|
], 64))
|
|
3622
3650
|
], 2),
|
|
@@ -3626,7 +3654,7 @@ const Q2 = {
|
|
|
3626
3654
|
}, O(c.label), 3)) : k("", !0)
|
|
3627
3655
|
], 2))), 128))
|
|
3628
3656
|
]),
|
|
3629
|
-
(d(!0), p(
|
|
3657
|
+
(d(!0), p(H, null, le(e.steps, (c, v) => (d(), p(H, { key: v }, [
|
|
3630
3658
|
v === i.value && c.content ? (d(), p("div", p0, [
|
|
3631
3659
|
I(u.$slots, c?.step, {}, () => [
|
|
3632
3660
|
Q(O(c.content), 1)
|
|
@@ -3634,7 +3662,7 @@ const Q2 = {
|
|
|
3634
3662
|
])) : k("", !0)
|
|
3635
3663
|
], 64))), 128)),
|
|
3636
3664
|
h("div", g0, [
|
|
3637
|
-
|
|
3665
|
+
re(Z(ue), {
|
|
3638
3666
|
disabled: l.value || e.previousButtonProperties?.disabled,
|
|
3639
3667
|
"icon-left": e.previousButtonProperties?.iconLeft,
|
|
3640
3668
|
"icon-right": e.previousButtonProperties?.iconRight,
|
|
@@ -3645,7 +3673,7 @@ const Q2 = {
|
|
|
3645
3673
|
variant: e.previousButtonProperties?.variant ?? "outlined",
|
|
3646
3674
|
onClick: s
|
|
3647
3675
|
}, null, 8, ["disabled", "icon-left", "icon-right", "label", "rounded", "severity", "size", "variant"]),
|
|
3648
|
-
|
|
3676
|
+
re(Z(ue), {
|
|
3649
3677
|
disabled: a.value || e.nextButtonProperties?.disabled,
|
|
3650
3678
|
"icon-left": e.nextButtonProperties?.iconLeft,
|
|
3651
3679
|
"icon-right": e.nextButtonProperties?.iconRight,
|
|
@@ -3659,12 +3687,12 @@ const Q2 = {
|
|
|
3659
3687
|
])
|
|
3660
3688
|
]));
|
|
3661
3689
|
}
|
|
3662
|
-
}),
|
|
3690
|
+
}), na = /* @__PURE__ */ et(v0, [["__scopeId", "data-v-75d55d88"]]), b0 = ["data-position"], C0 = { role: "tablist" }, y0 = ["data-selected"], w0 = ["aria-expanded", "onClick"], S0 = ["src"], k0 = {
|
|
3663
3691
|
class: "tabbed-pane",
|
|
3664
3692
|
role: "region"
|
|
3665
3693
|
}, $0 = {
|
|
3666
3694
|
name: "TabbedPanel"
|
|
3667
|
-
},
|
|
3695
|
+
}, oa = /* @__PURE__ */ P({
|
|
3668
3696
|
...$0,
|
|
3669
3697
|
props: {
|
|
3670
3698
|
defaultIndex: {
|
|
@@ -3681,15 +3709,15 @@ const Q2 = {
|
|
|
3681
3709
|
setup(e) {
|
|
3682
3710
|
const t = Se(), n = e, o = _(n.defaultIndex), i = (r) => {
|
|
3683
3711
|
o.value = r;
|
|
3684
|
-
}, a = t?.default ? t.default().filter((r) => r?.props?.title) : [], l =
|
|
3685
|
-
return (r, s) =>
|
|
3712
|
+
}, a = t?.default ? t.default().filter((r) => r?.props?.title) : [], l = W(() => a[o.value]);
|
|
3713
|
+
return (r, s) => Z(a).length ? (d(), p("div", {
|
|
3686
3714
|
key: 0,
|
|
3687
3715
|
class: "tabbed-panel",
|
|
3688
3716
|
"data-position": n.position
|
|
3689
3717
|
}, [
|
|
3690
3718
|
h("nav", null, [
|
|
3691
3719
|
h("ul", C0, [
|
|
3692
|
-
(d(!0), p(
|
|
3720
|
+
(d(!0), p(H, null, le(Z(a), (u, f) => (d(), p("li", {
|
|
3693
3721
|
key: f,
|
|
3694
3722
|
"data-selected": f === o.value
|
|
3695
3723
|
}, [
|
|
@@ -3699,7 +3727,7 @@ const Q2 = {
|
|
|
3699
3727
|
type: "button",
|
|
3700
3728
|
onClick: (c) => i(f)
|
|
3701
3729
|
}, [
|
|
3702
|
-
I(r.$slots, "icon",
|
|
3730
|
+
I(r.$slots, "icon", fe({ ref_for: !0 }, u), () => [
|
|
3703
3731
|
u?.props?.icon ? (d(), p("img", {
|
|
3704
3732
|
key: 0,
|
|
3705
3733
|
src: u?.props?.icon,
|
|
@@ -3711,13 +3739,13 @@ const Q2 = {
|
|
|
3711
3739
|
], 8, y0))), 128))
|
|
3712
3740
|
])
|
|
3713
3741
|
]),
|
|
3714
|
-
|
|
3742
|
+
re(gn, {
|
|
3715
3743
|
appear: "",
|
|
3716
3744
|
name: "expand"
|
|
3717
3745
|
}, {
|
|
3718
|
-
default:
|
|
3746
|
+
default: q(() => [
|
|
3719
3747
|
h("div", k0, [
|
|
3720
|
-
(d(),
|
|
3748
|
+
(d(), F(_e(l.value)))
|
|
3721
3749
|
])
|
|
3722
3750
|
]),
|
|
3723
3751
|
_: 1
|
|
@@ -3742,7 +3770,7 @@ const Q2 = {
|
|
|
3742
3770
|
return t;
|
|
3743
3771
|
}, D0 = ["id"], T0 = ["aria-orientation"], x0 = ["id", "aria-label", "aria-selected", "onClick"], L0 = ["src"], O0 = ["title"], M0 = ["onClick"], _0 = { role: "tabpanel" }, B0 = {
|
|
3744
3772
|
name: "TabView"
|
|
3745
|
-
},
|
|
3773
|
+
}, ia = /* @__PURE__ */ P({
|
|
3746
3774
|
...B0,
|
|
3747
3775
|
props: {
|
|
3748
3776
|
activeKey: {
|
|
@@ -3791,11 +3819,11 @@ const Q2 = {
|
|
|
3791
3819
|
setup(e, { expose: t, emit: n }) {
|
|
3792
3820
|
const o = e, i = n, a = Se(), l = _(o.activeKey), r = _(!1), s = _(
|
|
3793
3821
|
o.visibleTabs?.length ? o.visibleTabs : o.tabs.map((g) => g.key)
|
|
3794
|
-
), u =
|
|
3822
|
+
), u = W(() => c.value.find((g) => g.key === l.value)?.children || $.value.find(
|
|
3795
3823
|
(g) => typeof g == "object" && g !== null && "props" in g && g.props?.key === l.value
|
|
3796
|
-
)), f =
|
|
3824
|
+
)), f = W(() => E0(o.position)), c = W(
|
|
3797
3825
|
() => s.value.map((g) => o.tabs.find((S) => S.key === g)).filter((g) => g !== void 0)
|
|
3798
|
-
), v =
|
|
3826
|
+
), v = W(() => Ko(o.persistStateStorage)), $ = W(() => (a?.default?.() ?? []).flatMap((S) => Array.isArray(S?.children) && !S?.props?.key ? S.children.filter(
|
|
3799
3827
|
(y) => typeof y == "object" && y !== null && "props" in y && y.props?.key
|
|
3800
3828
|
) : S?.props?.key ? [S] : []));
|
|
3801
3829
|
yt(() => {
|
|
@@ -3828,8 +3856,8 @@ const Q2 = {
|
|
|
3828
3856
|
});
|
|
3829
3857
|
const w = (g) => l.value === g, M = (g) => {
|
|
3830
3858
|
const S = s.value.findIndex((J) => J === g), y = s.value.filter((J) => J !== g);
|
|
3831
|
-
let
|
|
3832
|
-
S > 0 ?
|
|
3859
|
+
let V = "";
|
|
3860
|
+
S > 0 ? V = y[S - 1] : V = y[0], y.includes(l.value) || b(V), s.value = y, i("update:visibleTabs", y);
|
|
3833
3861
|
}, E = (g) => {
|
|
3834
3862
|
if (!o.interceptTabClose) {
|
|
3835
3863
|
M(g);
|
|
@@ -3846,8 +3874,8 @@ const Q2 = {
|
|
|
3846
3874
|
}
|
|
3847
3875
|
}, b = (g) => {
|
|
3848
3876
|
if (l.value = g, r.value) {
|
|
3849
|
-
const { pathname: S, search: y } = window.location,
|
|
3850
|
-
history.replaceState(null, "",
|
|
3877
|
+
const { pathname: S, search: y } = window.location, V = o.enableHashRouting ? `${S}${y}#${l.value}` : `${S}${y}`;
|
|
3878
|
+
history.replaceState(null, "", V);
|
|
3851
3879
|
}
|
|
3852
3880
|
i("update:activeKey", g);
|
|
3853
3881
|
}, C = () => {
|
|
@@ -3867,9 +3895,9 @@ const Q2 = {
|
|
|
3867
3895
|
"aria-orientation": f.value,
|
|
3868
3896
|
role: "tablist"
|
|
3869
3897
|
}, [
|
|
3870
|
-
(d(!0), p(
|
|
3898
|
+
(d(!0), p(H, null, le(c.value, (y, V) => (d(), p("button", {
|
|
3871
3899
|
id: y.key,
|
|
3872
|
-
key:
|
|
3900
|
+
key: V,
|
|
3873
3901
|
"aria-label": y.label,
|
|
3874
3902
|
"aria-selected": w(y.key),
|
|
3875
3903
|
class: N({ active: w(y.key) }),
|
|
@@ -3901,13 +3929,13 @@ const Q2 = {
|
|
|
3901
3929
|
], 10, x0))), 128))
|
|
3902
3930
|
], 8, T0),
|
|
3903
3931
|
h("div", _0, [
|
|
3904
|
-
typeof u.value == "string" ? (d(), p(
|
|
3932
|
+
typeof u.value == "string" ? (d(), p(H, { key: 0 }, [
|
|
3905
3933
|
Q(O(u.value), 1)
|
|
3906
|
-
], 64)) : (d(), p(
|
|
3907
|
-
e.lazy ? (d(), p(
|
|
3908
|
-
u.value ? (d(),
|
|
3909
|
-
], 64)) : (d(!0), p(
|
|
3910
|
-
key: `slot-component-${
|
|
3934
|
+
], 64)) : (d(), p(H, { key: 1 }, [
|
|
3935
|
+
e.lazy ? (d(), p(H, { key: 1 }, [
|
|
3936
|
+
u.value ? (d(), F(_e(u.value), { key: 0 })) : k("", !0)
|
|
3937
|
+
], 64)) : (d(!0), p(H, { key: 0 }, le($.value, (y, V) => bt((d(), F(_e(y), {
|
|
3938
|
+
key: `slot-component-${V}`
|
|
3911
3939
|
})), [
|
|
3912
3940
|
[Ct, y === u.value]
|
|
3913
3941
|
])), 128))
|
|
@@ -3915,10 +3943,10 @@ const Q2 = {
|
|
|
3915
3943
|
])
|
|
3916
3944
|
], 10, D0));
|
|
3917
3945
|
}
|
|
3918
|
-
}), I0 = ["aria-label"],
|
|
3946
|
+
}), I0 = ["aria-label"], A0 = {
|
|
3919
3947
|
name: "Tooltip"
|
|
3920
|
-
},
|
|
3921
|
-
...
|
|
3948
|
+
}, aa = /* @__PURE__ */ P({
|
|
3949
|
+
...A0,
|
|
3922
3950
|
props: {
|
|
3923
3951
|
ariaLabel: {
|
|
3924
3952
|
default: "tooltip",
|
|
@@ -3945,7 +3973,7 @@ const Q2 = {
|
|
|
3945
3973
|
}
|
|
3946
3974
|
},
|
|
3947
3975
|
setup(e) {
|
|
3948
|
-
const t = e, n = _(null), o = _(null), i = _(null), a = _(!1), l = _(), r = _({ top: "0", left: "0" }), s = _([]), u = _(!1), f = _(null), c = Se(), { width: v, height: $ } =
|
|
3976
|
+
const t = e, n = _(null), o = _(null), i = _(null), a = _(!1), l = _(), r = _({ top: "0", left: "0" }), s = _([]), u = _(!1), f = _(null), c = Se(), { width: v, height: $ } = kt(), w = W(() => !!c.content);
|
|
3949
3977
|
vn(() => {
|
|
3950
3978
|
window.removeEventListener("resize", D), s.value.forEach(({ element: C, listener: g }) => {
|
|
3951
3979
|
C.removeEventListener("scroll", g);
|
|
@@ -3966,13 +3994,13 @@ const Q2 = {
|
|
|
3966
3994
|
return;
|
|
3967
3995
|
const C = i.value.getBoundingClientRect(), g = o.value.getBoundingClientRect();
|
|
3968
3996
|
let S = 0, y = 0;
|
|
3969
|
-
const
|
|
3970
|
-
switch (
|
|
3997
|
+
const V = t.position || wn(C), J = C.top - g.height - t.offset >= 0, U = $.value - (C.bottom + g.height + t.offset) >= 0, he = C.left + C.width / 2 - g.width / 2, ne = C.top + C.height / 2 - g.height / 2;
|
|
3998
|
+
switch (V) {
|
|
3971
3999
|
case "top":
|
|
3972
|
-
S = J ? C.top - g.height - t.offset : C.bottom + t.offset, y =
|
|
4000
|
+
S = J ? C.top - g.height - t.offset : C.bottom + t.offset, y = he;
|
|
3973
4001
|
break;
|
|
3974
4002
|
case "bottom":
|
|
3975
|
-
S = U ? C.bottom + t.offset : C.top - g.height - t.offset, y =
|
|
4003
|
+
S = U ? C.bottom + t.offset : C.top - g.height - t.offset, y = he;
|
|
3976
4004
|
break;
|
|
3977
4005
|
case "left":
|
|
3978
4006
|
y = C.left - g.width - t.offset, S = ne;
|
|
@@ -3981,18 +4009,18 @@ const Q2 = {
|
|
|
3981
4009
|
y = C.left + C.width + t.offset, S = ne;
|
|
3982
4010
|
break;
|
|
3983
4011
|
}
|
|
3984
|
-
const
|
|
3985
|
-
if (a.value =
|
|
4012
|
+
const ve = $.value - (S + g.height), de = S;
|
|
4013
|
+
if (a.value = de > 0 && ve > 0, V === "right" || V === "left")
|
|
3986
4014
|
y = Math.max(0, y);
|
|
3987
4015
|
else {
|
|
3988
4016
|
y + g.width > v.value && (y = v.value - g.width), y = Math.max(0, y);
|
|
3989
|
-
const
|
|
3990
|
-
S = Math.min(Math.max(S, 0),
|
|
4017
|
+
const be = $.value - g.height;
|
|
4018
|
+
S = Math.min(Math.max(S, 0), be);
|
|
3991
4019
|
}
|
|
3992
4020
|
r.value = {
|
|
3993
4021
|
top: `${S}px`,
|
|
3994
4022
|
left: `${y}px`
|
|
3995
|
-
}, l.value =
|
|
4023
|
+
}, l.value = V;
|
|
3996
4024
|
};
|
|
3997
4025
|
return yt(() => {
|
|
3998
4026
|
window.addEventListener("resize", D), n.value && Sn(n.value).forEach((g) => {
|
|
@@ -4028,9 +4056,9 @@ const Q2 = {
|
|
|
4028
4056
|
], 6)) : k("", !0)
|
|
4029
4057
|
], 40, I0));
|
|
4030
4058
|
}
|
|
4031
|
-
}),
|
|
4059
|
+
}), P0 = ["aria-label", "href", "data-youtube-video-token"], N0 = ["src", "alt", "data-aspect-ratio"], F0 = ["href"], V0 = {
|
|
4032
4060
|
name: "YoutubeFacade"
|
|
4033
|
-
},
|
|
4061
|
+
}, la = /* @__PURE__ */ P({
|
|
4034
4062
|
...V0,
|
|
4035
4063
|
props: {
|
|
4036
4064
|
alt: {
|
|
@@ -4070,7 +4098,7 @@ const Q2 = {
|
|
|
4070
4098
|
l.dataset.aspectRatio && (r.style.aspectRatio = l.dataset.aspectRatio);
|
|
4071
4099
|
const s = a.parentNode;
|
|
4072
4100
|
s && s.replaceChild(r, a);
|
|
4073
|
-
}, o =
|
|
4101
|
+
}, o = W(() => t.imageSource || `https://img.youtube.com/vi/${t.videoToken}/maxresdefault.jpg`);
|
|
4074
4102
|
return (i, a) => (d(), p("div", {
|
|
4075
4103
|
class: "youtube-facade",
|
|
4076
4104
|
style: Ne(`background-image: url(${o.value})`)
|
|
@@ -4093,7 +4121,7 @@ const Q2 = {
|
|
|
4093
4121
|
"data-aspect-ratio": e.aspectRatio,
|
|
4094
4122
|
style: Ne(`aspect-ratio: ${e.aspectRatio}`)
|
|
4095
4123
|
}, null, 12, N0)
|
|
4096
|
-
], 12,
|
|
4124
|
+
], 12, P0),
|
|
4097
4125
|
h("a", {
|
|
4098
4126
|
href: e.videoLink,
|
|
4099
4127
|
rel: "noreferrer",
|
|
@@ -4105,7 +4133,7 @@ const Q2 = {
|
|
|
4105
4133
|
], 4)
|
|
4106
4134
|
], 4));
|
|
4107
4135
|
}
|
|
4108
|
-
}),
|
|
4136
|
+
}), ra = {
|
|
4109
4137
|
install: (e) => {
|
|
4110
4138
|
e.component("LoadingButton", $o), e.component("LoadingIcon", wt), e.component("Page", d2);
|
|
4111
4139
|
}
|
|
@@ -4113,35 +4141,35 @@ const Q2 = {
|
|
|
4113
4141
|
export {
|
|
4114
4142
|
R0 as Accordion,
|
|
4115
4143
|
to as BadgeComponent,
|
|
4116
|
-
|
|
4144
|
+
ue as ButtonElement,
|
|
4117
4145
|
mo as Card,
|
|
4118
4146
|
tn as ConfirmationModal,
|
|
4119
4147
|
H0 as Data,
|
|
4120
|
-
|
|
4148
|
+
Y0 as DebouncedInput,
|
|
4121
4149
|
G0 as Divider,
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4150
|
+
si as Dropdown,
|
|
4151
|
+
q0 as Errors,
|
|
4152
|
+
ea as FacebookSignInButton,
|
|
4153
|
+
Ii as FileCard,
|
|
4154
|
+
W0 as FilesList,
|
|
4155
|
+
ta as GoogleSignInButton,
|
|
4156
|
+
U0 as GridContainer,
|
|
4129
4157
|
$o as LoadingButton,
|
|
4130
4158
|
wt as LoadingIcon,
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4159
|
+
Gi as LoadingPage,
|
|
4160
|
+
X0 as Message,
|
|
4161
|
+
K0 as Modal,
|
|
4134
4162
|
d2 as Page,
|
|
4135
4163
|
ti as Popup,
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4164
|
+
Q0 as ResponsiveMenu,
|
|
4165
|
+
J0 as SortableList,
|
|
4166
|
+
na as Stepper,
|
|
4139
4167
|
Z0 as SubPane,
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4168
|
+
ia as TabView,
|
|
4169
|
+
oa as TabbedPanel,
|
|
4170
|
+
aa as Tooltip,
|
|
4171
|
+
la as YoutubeFacade,
|
|
4172
|
+
ra as default,
|
|
4145
4173
|
Uo as formatDate,
|
|
4146
4174
|
Xo as formatDateTime,
|
|
4147
4175
|
wn as getBestPosition,
|