doph-js 0.1.54 → 0.1.56
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/dophJs.js +80 -80
- package/dist/dophJs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as sn, computed as
|
|
1
|
+
import { useSlots as sn, computed as z, h as co, openBlock as _, createBlock as q, unref as K, ref as J, createElementBlock as j, Fragment as ft, normalizeClass as fe, renderSlot as G, createCommentVNode as re, normalizeStyle as pe, resolveDynamicComponent as Ce, onMounted as rn, toDisplayString as be, withDirectives as Ct, createElementVNode as Z, vModelText as ao, withCtx as ee, createTextVNode as Xe, Transition as Wn, withModifiers as Ne, resolveComponent as Os, createVNode as Ge, renderList as ln, pushScopeId as Es, popScopeId as Ls, reactive as jn, resolveDirective as Vo, Teleport as Fo, nextTick as Wo, getCurrentInstance as jo, watch as it, onUnmounted as Uo, mergeProps as wt, shallowRef as Zt, defineComponent as Yo, toRefs as Bs, watchPostEffect as Ns, useCssVars as As, normalizeProps as Hs, guardReactiveProps as zs, TransitionGroup as qo, vModelCheckbox as Ms, vModelSelect as Rs } from "vue";
|
|
2
2
|
const xt = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -8,17 +8,17 @@ const xt = {
|
|
|
8
8
|
className: String
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const n = e, t = sn(), o =
|
|
11
|
+
const n = e, t = sn(), o = z(() => {
|
|
12
12
|
const { className: c } = n;
|
|
13
13
|
return c === void 0 ? "icon" : ["icon", c].join(" ");
|
|
14
|
-
}), s =
|
|
14
|
+
}), s = z(() => {
|
|
15
15
|
const { color: c } = n;
|
|
16
16
|
return c === void 0 ? null : c;
|
|
17
|
-
}), r =
|
|
17
|
+
}), r = z(() => {
|
|
18
18
|
const c = n.size ?? null;
|
|
19
19
|
if (c !== void 0)
|
|
20
20
|
return typeof c == "number" || /^\d+$/.test(c) ? `${c}px` : c;
|
|
21
|
-
}), i =
|
|
21
|
+
}), i = z(() => co(
|
|
22
22
|
"i",
|
|
23
23
|
{
|
|
24
24
|
class: o.value,
|
|
@@ -68,11 +68,11 @@ const Ps = { key: 1 }, ht = {
|
|
|
68
68
|
},
|
|
69
69
|
emits: ["click", "contextmenu"],
|
|
70
70
|
setup(e, { expose: n, emit: t }) {
|
|
71
|
-
const o = e, s = sn(), r = J(null), i =
|
|
71
|
+
const o = e, s = sn(), r = J(null), i = z(() => o.icon ? Fe.getters.getIcon(o.icon) : null), c = (p) => {
|
|
72
72
|
t("click", p);
|
|
73
73
|
}, l = (p) => {
|
|
74
74
|
t("contextmenu", p);
|
|
75
|
-
}, a =
|
|
75
|
+
}, a = z(() => o.scale === "large" ? "button-lg" : o.scale === "small" ? "button-sm" : ""), d = (p) => !!s[p], u = z(() => d("default") ? "" : o.scale === "large" ? "d-button-lg-icon" : o.scale === "small" ? "d-button-sm-icon" : "d-button-icon");
|
|
76
76
|
return n({
|
|
77
77
|
elementSize: () => Xo(r)
|
|
78
78
|
}), (p, S) => (_(), j(ft, null, [
|
|
@@ -139,7 +139,7 @@ const Ot = (e, n) => {
|
|
|
139
139
|
},
|
|
140
140
|
emits: ["update:modelValue"],
|
|
141
141
|
setup(e, { expose: n, emit: t }) {
|
|
142
|
-
const o = e, s = J(null), r =
|
|
142
|
+
const o = e, s = J(null), r = z(() => o.scale === "small" ? "d-input-small" : o.scale === "large" ? "d-input-large" : ""), i = z({
|
|
143
143
|
get: () => o.modelValue,
|
|
144
144
|
set: (l) => {
|
|
145
145
|
t("update:modelValue", l);
|
|
@@ -336,7 +336,7 @@ const Ot = (e, n) => {
|
|
|
336
336
|
tag: { type: String, default: "div" }
|
|
337
337
|
},
|
|
338
338
|
setup(e) {
|
|
339
|
-
const n = e, t = sn(), o = J(!1), s =
|
|
339
|
+
const n = e, t = sn(), o = J(!1), s = z(() => o && n.transferData), r = z(() => ({ position: "fixed", top: "-1000px" })), i = (c, l) => {
|
|
340
340
|
const a = l.dataTransfer;
|
|
341
341
|
if ([he.dragenter, he.dragover].includes(c) && n.dropEffect && (a.dropEffect = n.dropEffect), c === he.dragstart) {
|
|
342
342
|
if (n.effectAllowed && (a.effectAllowed = n.effectAllowed), n.image || t.image) {
|
|
@@ -391,7 +391,7 @@ const er = (e) => (Es("data-v-ac7bae20"), e = e(), Ls(), e), tr = {
|
|
|
391
391
|
},
|
|
392
392
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick", "nodecontext"],
|
|
393
393
|
setup(e, { emit: n }) {
|
|
394
|
-
const t = e, o = J(null), s = J(!1), r = J(!1), i = J(!1), c =
|
|
394
|
+
const t = e, o = J(null), s = J(!1), r = J(!1), i = J(!1), c = z(() => t.model.children && t.model.children.length), l = z(() => (P.actions.isTreeExpanded(t.treeId) && (t.model.expanded = t.model.expanded === void 0 ? !0 : t.model.expanded), t.model.expanded)), a = ($) => {
|
|
395
395
|
n("nodeclick", { event: $, model: t.model });
|
|
396
396
|
}, d = ($) => {
|
|
397
397
|
n("nodeclick", $);
|
|
@@ -399,7 +399,7 @@ const er = (e) => (Es("data-v-ac7bae20"), e = e(), Ls(), e), tr = {
|
|
|
399
399
|
n("nodedrop", $);
|
|
400
400
|
}, f = ($) => {
|
|
401
401
|
n("nodecontext", $);
|
|
402
|
-
}, p =
|
|
402
|
+
}, p = z(() => (P.actions.isItemSelected(t.treeId, t.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (i.value ? "node-bottom " : "")), S = z(() => t.search ? !1 : t.model.draggable === !0), v = ($) => {
|
|
403
403
|
n("nodedrop", { e: $, model: t.model });
|
|
404
404
|
let b = Jt.data;
|
|
405
405
|
if (b === void 0 || b.model === void 0)
|
|
@@ -417,11 +417,11 @@ const er = (e) => (Es("data-v-ac7bae20"), e = e(), Ls(), e), tr = {
|
|
|
417
417
|
return s.value = !0, !1;
|
|
418
418
|
if (b.model.id === t.model.id || P.actions.isChildOfParent(t.treeId, t.items, t.model.id, b.model.id) || P.actions.isParentOfChild(t.treeId, t.items, b.model.id, t.model.id))
|
|
419
419
|
return !1;
|
|
420
|
-
const B = $.y, M = o.value.getBoundingClientRect().top,
|
|
421
|
-
B > M && B <= M + y ? (s.value = !1, r.value = !0, i.value = !1) : B < M +
|
|
420
|
+
const B = $.y, M = o.value.getBoundingClientRect().top, H = o.value.getBoundingClientRect().height, y = H / 3;
|
|
421
|
+
B > M && B <= M + y ? (s.value = !1, r.value = !0, i.value = !1) : B < M + H && B >= M + H - y ? (s.value = !1, r.value = !1, i.value = !0) : (s.value = !0, r.value = !1, i.value = !1);
|
|
422
422
|
}, T = () => {
|
|
423
423
|
s.value = !1, r.value = !1, i.value = !1;
|
|
424
|
-
}, m =
|
|
424
|
+
}, m = z(() => t.model.title.startsWith("-")), w = z(() => {
|
|
425
425
|
if (t.model.title.startsWith("-")) {
|
|
426
426
|
let [$, ...b] = t.model.title.split(" ");
|
|
427
427
|
return b = b.join(" "), b;
|
|
@@ -445,7 +445,7 @@ const er = (e) => (Es("data-v-ac7bae20"), e = e(), Ls(), e), tr = {
|
|
|
445
445
|
onDragleave: Ne(T, ["prevent"])
|
|
446
446
|
}, {
|
|
447
447
|
default: ee(() => {
|
|
448
|
-
var M,
|
|
448
|
+
var M, H;
|
|
449
449
|
return [
|
|
450
450
|
Z("div", {
|
|
451
451
|
ref_key: "node",
|
|
@@ -484,7 +484,7 @@ const er = (e) => (Es("data-v-ac7bae20"), e = e(), Ls(), e), tr = {
|
|
|
484
484
|
Z("div", dr, [
|
|
485
485
|
((M = t.model.badge) == null ? void 0 : M.value) !== void 0 && !m.value ? (_(), q(Ce(Gs), {
|
|
486
486
|
key: 0,
|
|
487
|
-
class: fe([(
|
|
487
|
+
class: fe([(H = t.model.badge) == null ? void 0 : H.class, "badge-sm"])
|
|
488
488
|
}, {
|
|
489
489
|
default: ee(() => [
|
|
490
490
|
Xe(be(t.model.badge.value), 1)
|
|
@@ -682,7 +682,7 @@ const Oe = mr(), P = {
|
|
|
682
682
|
emits: Object.keys(he),
|
|
683
683
|
setup(e, { expose: n, emit: t }) {
|
|
684
684
|
let o = jn({});
|
|
685
|
-
const s = J("false"), r = J(null), i = /* @__PURE__ */ new Set(), c =
|
|
685
|
+
const s = J("false"), r = J(null), i = /* @__PURE__ */ new Set(), c = z(() => s.value && o), l = (d, u) => {
|
|
686
686
|
o = Jt.data, t(d, u, o), d === he.dragenter && (i.size || u.target === r.value) && i.add(u.target), d === he.dragleave && i.delete(u.target), d === he.drop && i.clear(), s.value = !!i.size;
|
|
687
687
|
};
|
|
688
688
|
return n({
|
|
@@ -765,7 +765,7 @@ const Oe = mr(), P = {
|
|
|
765
765
|
},
|
|
766
766
|
emits: ["select"],
|
|
767
767
|
setup(e, { expose: n, emit: t }) {
|
|
768
|
-
const o = e, s = J(null), r = J(0), i = J(0), c =
|
|
768
|
+
const o = e, s = J(null), r = J(0), i = J(0), c = z(() => ({
|
|
769
769
|
left: r.value + "px",
|
|
770
770
|
top: i.value + "px"
|
|
771
771
|
})), l = (d) => {
|
|
@@ -837,7 +837,7 @@ const Oe = mr(), P = {
|
|
|
837
837
|
}), Oe.on(`move-${c}`, (y) => {
|
|
838
838
|
t("move", y);
|
|
839
839
|
});
|
|
840
|
-
const a =
|
|
840
|
+
const a = z(() => o.search ? P.actions.deepSearchByTitle(o.items, o.search) : o.items), d = (y = null) => {
|
|
841
841
|
P.mutations.setItemSelect(c, y.model), P.actions.toggleItem(c, y.model), t("select", y);
|
|
842
842
|
}, u = (y = null) => {
|
|
843
843
|
t("over", y);
|
|
@@ -853,10 +853,10 @@ const Oe = mr(), P = {
|
|
|
853
853
|
T(y) && P.mutations.setItemSelect(c, T(y));
|
|
854
854
|
}, w = (y) => {
|
|
855
855
|
o.contextClick({ e: y.e, model: y.model, target: i.value });
|
|
856
|
-
}, $ = (y) => o.contextBeforeClick({ model: y, target: i.value }), b =
|
|
856
|
+
}, $ = (y) => o.contextBeforeClick({ model: y, target: i.value }), b = z(() => o.context), B = (y) => (b.value && (i.value = y.model, r.value.show(y.e)), !1), M = () => H(a.value), H = (y) => {
|
|
857
857
|
let X = 0;
|
|
858
858
|
for (let h = 0; h < y.length; h++)
|
|
859
|
-
X += P.actions.beforeItem(c, y[h]) ? 1 : 0, y[h].children && y[h].children.length > 0 && (X +=
|
|
859
|
+
X += P.actions.beforeItem(c, y[h]) ? 1 : 0, y[h].children && y[h].children.length > 0 && (X += H(y[h].children));
|
|
860
860
|
return X;
|
|
861
861
|
};
|
|
862
862
|
return n({
|
|
@@ -905,14 +905,14 @@ const vr = {
|
|
|
905
905
|
items: Array
|
|
906
906
|
},
|
|
907
907
|
setup(e) {
|
|
908
|
-
const n = e
|
|
909
|
-
return (
|
|
908
|
+
const n = e;
|
|
909
|
+
return (t, o) => (_(), q(Ko, {
|
|
910
910
|
class: "accordion",
|
|
911
|
-
items:
|
|
911
|
+
items: n.items,
|
|
912
912
|
"no-select": !0
|
|
913
913
|
}, null, 8, ["items"]));
|
|
914
914
|
}
|
|
915
|
-
}, Kl = /* @__PURE__ */ Ot(vr, [["__scopeId", "data-v-
|
|
915
|
+
}, Kl = /* @__PURE__ */ Ot(vr, [["__scopeId", "data-v-4c920528"]]), yr = {
|
|
916
916
|
__name: "DLayoutHeader",
|
|
917
917
|
props: {
|
|
918
918
|
fixed: {
|
|
@@ -946,7 +946,7 @@ const vr = {
|
|
|
946
946
|
useMinWidthLayout: Boolean
|
|
947
947
|
},
|
|
948
948
|
setup(e) {
|
|
949
|
-
const n = e, t =
|
|
949
|
+
const n = e, t = z(() => {
|
|
950
950
|
const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: c, transitionDuration: l, transitionTimingFunction: a } = n, d = o ? "fixed" : "static", u = n.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
951
951
|
return `position:${d};z-index:${s};${u}height:${i}px;padding-left:${c}px;transition-duration:${l}ms;transition-timing-function:${a};`;
|
|
952
952
|
});
|
|
@@ -995,7 +995,7 @@ const vr = {
|
|
|
995
995
|
useMinWidthLayout: Boolean
|
|
996
996
|
},
|
|
997
997
|
setup(e) {
|
|
998
|
-
const n = e, t =
|
|
998
|
+
const n = e, t = z(() => {
|
|
999
999
|
const { fixed: o, top: s, zIndex: r, minWidth: i, height: c, paddingLeft: l, transitionDuration: a, transitionTimingFunction: d } = n, u = o ? "fixed" : "static", f = n.useMinWidthLayout ? `min-width: ${i}px;` : "";
|
|
1000
1000
|
return `position:${u};top:${s}px;z-index:${r};${f}height:${c}px;padding-left:${l}px;transition-duration:${a}ms;transition-timing-function:${d};`;
|
|
1001
1001
|
});
|
|
@@ -1040,7 +1040,7 @@ const vr = {
|
|
|
1040
1040
|
useMinWidthLayout: Boolean
|
|
1041
1041
|
},
|
|
1042
1042
|
setup(e) {
|
|
1043
|
-
const n = e, t =
|
|
1043
|
+
const n = e, t = z(() => {
|
|
1044
1044
|
const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: c, transitionDuration: l, transitionTimingFunction: a } = n, d = o ? "fixed" : "static", u = n.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
1045
1045
|
return `position:${d};z-index:${s};${u}height:${i}px;padding-left:${c}px;transition-duration:${l}ms;transition-timing-function:${a};`;
|
|
1046
1046
|
});
|
|
@@ -1080,7 +1080,7 @@ const vr = {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
},
|
|
1082
1082
|
setup(e) {
|
|
1083
|
-
const n = e, t =
|
|
1083
|
+
const n = e, t = z(() => {
|
|
1084
1084
|
const { zIndex: o, width: s, paddingTop: r, transitionDuration: i, transitionTimingFunction: c } = n;
|
|
1085
1085
|
return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1086
1086
|
});
|
|
@@ -1117,7 +1117,7 @@ const vr = {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
1119
|
setup(e) {
|
|
1120
|
-
const n = e, t =
|
|
1120
|
+
const n = e, t = z(() => {
|
|
1121
1121
|
const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration: i, transitionTimingFunction: c } = n, l = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
|
|
1122
1122
|
return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${l}transition-duration:${i}ms;transition-timing-function:${c};`;
|
|
1123
1123
|
});
|
|
@@ -1130,7 +1130,7 @@ const vr = {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
1132
|
function Sr(e) {
|
|
1133
|
-
const n = J(0), t =
|
|
1133
|
+
const n = J(0), t = z(() => `transform: translateX(${-n.value}px);`);
|
|
1134
1134
|
let o = !1;
|
|
1135
1135
|
function s(d) {
|
|
1136
1136
|
n.value = d;
|
|
@@ -1249,13 +1249,13 @@ const $r = 1001, kr = 999, Dr = 998, Zl = {
|
|
|
1249
1249
|
},
|
|
1250
1250
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1251
1251
|
setup(e, { emit: n }) {
|
|
1252
|
-
const t = e, o =
|
|
1252
|
+
const t = e, o = z(() => t.useMinWidthLayout ? `min-width:${t.minWidth}px;` : ""), s = z(() => t.useMinWidthLayout && (t.fixedHeaderAndTab || t.fixedFooter)), r = Sr(s), i = z(() => t.fixedHeaderAndTab ? r.value : ""), c = z(() => t.fixedFooter ? r.value : ""), l = z(() => {
|
|
1253
1253
|
const { transitionDuration: b, transitionTimingFunction: B } = t;
|
|
1254
1254
|
return {
|
|
1255
1255
|
transitionDuration: b,
|
|
1256
1256
|
transitionTimingFunction: B
|
|
1257
1257
|
};
|
|
1258
|
-
}), a =
|
|
1258
|
+
}), a = z(() => t.mode === "vertical"), d = z(() => t.isMobile || a.value ? 1003 : 1e3), u = z({
|
|
1259
1259
|
get() {
|
|
1260
1260
|
return t.sidebarCollapse;
|
|
1261
1261
|
},
|
|
@@ -1266,18 +1266,18 @@ const $r = 1001, kr = 999, Dr = 998, Zl = {
|
|
|
1266
1266
|
function f() {
|
|
1267
1267
|
n("sidebar-mask-click");
|
|
1268
1268
|
}
|
|
1269
|
-
const p =
|
|
1269
|
+
const p = z(() => t.isMobile && !u.value), S = z(() => {
|
|
1270
1270
|
const { transitionDuration: b, transitionTimingFunction: B } = t;
|
|
1271
1271
|
return `background-color:${t.maskBg};transition-duration:${b}ms;transition-timing-function:${B};`;
|
|
1272
|
-
}), v =
|
|
1273
|
-
const { sidebarWidth: b, sidebarCollapsedWidth: B } = t, M = t.isMobile ? 0 : B,
|
|
1274
|
-
return t.sidebarVisible ?
|
|
1275
|
-
}), D =
|
|
1272
|
+
}), v = z(() => {
|
|
1273
|
+
const { sidebarWidth: b, sidebarCollapsedWidth: B } = t, M = t.isMobile ? 0 : B, H = u.value ? M : b;
|
|
1274
|
+
return t.sidebarVisible ? H : 0;
|
|
1275
|
+
}), D = z(() => t.isMobile ? 0 : v.value), T = z(() => a.value ? D.value : 0), m = z(
|
|
1276
1276
|
() => !t.isMobile && !a.value && t.headerVisible ? t.headerHeight : 0
|
|
1277
|
-
), w =
|
|
1277
|
+
), w = z(() => {
|
|
1278
1278
|
let b = 0;
|
|
1279
1279
|
return t.fixedHeaderAndTab && (t.headerVisible && (b += t.headerHeight), t.tabVisible && (b += t.tabHeight)), b;
|
|
1280
|
-
}), $ =
|
|
1280
|
+
}), $ = z(() => t.fixedFooter && t.footerVisible ? t.footerHeight : 0);
|
|
1281
1281
|
return (b, B) => (_(), j("div", {
|
|
1282
1282
|
class: "d-layout",
|
|
1283
1283
|
style: pe(o.value)
|
|
@@ -1587,8 +1587,8 @@ const Ae = (e, n) => {
|
|
|
1587
1587
|
if (lt(v) && v >= 0) {
|
|
1588
1588
|
const T = Me(c) ? c() : c, m = lt(T) && T >= 0, w = v > 0 ? en : ns, $ = v > 0 ? Hn : ts, B = d(S) || S, M = a.bind(0, B);
|
|
1589
1589
|
r();
|
|
1590
|
-
const
|
|
1591
|
-
r = () => $(
|
|
1590
|
+
const H = w(M, v);
|
|
1591
|
+
r = () => $(H), m && !t && (t = en(u, T)), o = s = B;
|
|
1592
1592
|
} else
|
|
1593
1593
|
a(S);
|
|
1594
1594
|
};
|
|
@@ -1859,7 +1859,7 @@ const Do = (e, n, t, o) => {
|
|
|
1859
1859
|
}, Ut = "tabindex", Yt = mt.bind(0, ""), Tn = (e) => {
|
|
1860
1860
|
Ie(Je(e), Kn(e)), je(e);
|
|
1861
1861
|
}, _i = (e) => {
|
|
1862
|
-
const n = $e(), { q: t, A: o } = n, s = yt()[so], r = s && s.T, { elements: i } = t(), { host: c, padding: l, viewport: a, content: d } = i, u = Bt(e), f = u ? {} : e, { elements: p } = f, { host: S, padding: v, viewport: D, content: T } = p || {}, m = u ? e : f.target, w = Qt(m, "textarea"), $ = m.ownerDocument, b = $.documentElement, B = m === $.body, M = $.defaultView,
|
|
1862
|
+
const n = $e(), { q: t, A: o } = n, s = yt()[so], r = s && s.T, { elements: i } = t(), { host: c, padding: l, viewport: a, content: d } = i, u = Bt(e), f = u ? {} : e, { elements: p } = f, { host: S, padding: v, viewport: D, content: T } = p || {}, m = u ? e : f.target, w = Qt(m, "textarea"), $ = m.ownerDocument, b = $.documentElement, B = m === $.body, M = $.defaultView, H = hi.bind(0, [m]), y = ys.bind(0, [m]), X = ro.bind(0, [m]), h = H.bind(0, Yt, a), N = y.bind(0, Yt, d), g = h(D), x = g === m, k = x && B, I = !x && N(T), V = !x && Bt(g) && g === I, R = V && !!X(d), E = R ? h() : g, O = R ? I : N(), U = k ? b : V ? E : g, te = w ? H(Yt, c, S) : m, C = k ? U : te, L = V ? O : I, A = $.activeElement, Y = !x && M.top === M && A === m, W = {
|
|
1863
1863
|
Z: m,
|
|
1864
1864
|
J: C,
|
|
1865
1865
|
K: U,
|
|
@@ -1923,8 +1923,8 @@ const Do = (e, n, t, o) => {
|
|
|
1923
1923
|
let [p, S] = a(f);
|
|
1924
1924
|
const { A: v, Y: D } = $e(), { yt: T } = t(), { wt: m, bt: w, St: $ } = d, [b, B] = u("paddingAbsolute");
|
|
1925
1925
|
(m || S || !D && w) && ([p, S] = l(f));
|
|
1926
|
-
const
|
|
1927
|
-
if (
|
|
1926
|
+
const H = !c && (B || $ || S);
|
|
1927
|
+
if (H) {
|
|
1928
1928
|
const y = !b || !r && !v, X = p.r + p.l, h = p.t + p.b, N = {
|
|
1929
1929
|
marginRight: y && !T ? -X : 0,
|
|
1930
1930
|
marginBottom: y ? -h : 0,
|
|
@@ -1946,7 +1946,7 @@ const Do = (e, n, t, o) => {
|
|
|
1946
1946
|
});
|
|
1947
1947
|
}
|
|
1948
1948
|
return {
|
|
1949
|
-
xt:
|
|
1949
|
+
xt: H
|
|
1950
1950
|
};
|
|
1951
1951
|
};
|
|
1952
1952
|
}, { max: Pn } = Math, ot = Pn.bind(0, 0), ws = "visible", Co = "hidden", Si = 42, qt = {
|
|
@@ -1971,7 +1971,7 @@ const Do = (e, n, t, o) => {
|
|
|
1971
1971
|
h: o.h > t ? o.h : 0
|
|
1972
1972
|
};
|
|
1973
1973
|
}, Xt = (e) => e.indexOf(ws) === 0, Di = (e, n) => {
|
|
1974
|
-
const [t, o] = n, { J: s, tt: r, K: i, ot: c, ft: l, ht: a, it: d, ct: u } = e, { k: f, Y: p, A: S, I: v } = $e(), D = yt()[so], T = !l && !S && (v.x || v.y), m = d && l, [w, $] = Ae(qt, nn.bind(0, i)), [b, B] = Ae(qt, tn.bind(0, i)), [M,
|
|
1974
|
+
const [t, o] = n, { J: s, tt: r, K: i, ot: c, ft: l, ht: a, it: d, ct: u } = e, { k: f, Y: p, A: S, I: v } = $e(), D = yt()[so], T = !l && !S && (v.x || v.y), m = d && l, [w, $] = Ae(qt, nn.bind(0, i)), [b, B] = Ae(qt, tn.bind(0, i)), [M, H] = Ae(qt), [y, X] = Ae(qt), [h] = Ae($i), N = (R, E) => {
|
|
1975
1975
|
if (ye(i, {
|
|
1976
1976
|
height: ""
|
|
1977
1977
|
}), E) {
|
|
@@ -2015,7 +2015,7 @@ const Do = (e, n, t, o) => {
|
|
|
2015
2015
|
}, [I, V] = D ? D.L(T, p, i, c, t, g, k) : [() => T, () => [ke]];
|
|
2016
2016
|
return (R, E, O) => {
|
|
2017
2017
|
const { wt: F, Tt: U, bt: te, xt: C, vt: L, St: A } = R, { gt: Y, yt: W } = t(), [oe, le] = E("showNativeOverlaidScrollbars"), [ce, de] = E("overflow"), se = oe && v.x && v.y, ne = !l && !p && (F || te || U || le || L), ge = Xt(ce.x), Le = Xt(ce.y), Te = ge || Le;
|
|
2018
|
-
let et = $(O), at = B(O), bt =
|
|
2018
|
+
let et = $(O), at = B(O), bt = H(O), _t = X(O), me;
|
|
2019
2019
|
if (le && S && a(gs, Xr, !se), ne && (me = g(se), N(me, Y)), F || C || te || A || le) {
|
|
2020
2020
|
Te && a(Tt, Dt, !1);
|
|
2021
2021
|
const [Ye, tt] = V(se, W, me), [Pe, Ft] = et = w(O), [Ve, Lt] = at = b(O), dt = Kt(i);
|
|
@@ -2125,7 +2125,7 @@ const Do = (e, n, t, o) => {
|
|
|
2125
2125
|
g: 33,
|
|
2126
2126
|
v: 99
|
|
2127
2127
|
}), [f, p] = Ci(e, u, c), S = r || [], v = i || [], D = S.concat(v), T = (w, $) => {
|
|
2128
|
-
const b = a || ke, B = d || ke, M = /* @__PURE__ */ new Set(),
|
|
2128
|
+
const b = a || ke, B = d || ke, M = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
2129
2129
|
let y = !1, X = !1;
|
|
2130
2130
|
if (Q(w, (h) => {
|
|
2131
2131
|
const { attributeName: N, target: g, type: x, oldValue: k, addedNodes: I, removedNodes: V } = h, R = x === "attributes", E = x === "childList", O = e === g, F = R && ct(N) ? ve(g, N) : 0, U = F !== 0 && k !== F, te = qn(v, N) > -1 && U;
|
|
@@ -2133,11 +2133,11 @@ const Do = (e, n, t, o) => {
|
|
|
2133
2133
|
const C = !R, L = R && U, A = L && l && Qt(g, l), W = (A ? !b(g, N, k, F) : C || L) && !B(h, !!A, e, o);
|
|
2134
2134
|
Q(I, (oe) => M.add(oe)), Q(V, (oe) => M.add(oe)), X = X || W;
|
|
2135
2135
|
}
|
|
2136
|
-
!n && O && U && !b(g, N, k, F) && (
|
|
2136
|
+
!n && O && U && !b(g, N, k, F) && (H.add(N), y = y || te);
|
|
2137
2137
|
}), M.size > 0 && p((h) => vt(M).reduce((N, g) => (ie(N, Qo(h, g)), Qt(g, h) ? ie(N, g) : N), [])), n)
|
|
2138
2138
|
return !$ && X && t(!1), [!1];
|
|
2139
|
-
if (
|
|
2140
|
-
const h = [vt(
|
|
2139
|
+
if (H.size > 0 || y) {
|
|
2140
|
+
const h = [vt(H), y];
|
|
2141
2141
|
return !$ && t.apply(0, h), h;
|
|
2142
2142
|
}
|
|
2143
2143
|
}, m = new zr((w) => T(w));
|
|
@@ -2166,8 +2166,8 @@ const Do = (e, n, t, o) => {
|
|
|
2166
2166
|
const D = Ee(v) && v.length > 0 && Nt(v[0]), T = !D && Yn(v[0]);
|
|
2167
2167
|
let m = !1, w = !1, $ = !0;
|
|
2168
2168
|
if (D) {
|
|
2169
|
-
const [b, , B] = u(v.pop().contentRect), M = kt(b),
|
|
2170
|
-
m = !B && !!
|
|
2169
|
+
const [b, , B] = u(v.pop().contentRect), M = kt(b), H = kt(B);
|
|
2170
|
+
m = !B && !!H || !M, w = !H && M, $ = !m;
|
|
2171
2171
|
} else
|
|
2172
2172
|
T ? [, $] = v : w = v === !0;
|
|
2173
2173
|
if (o && $) {
|
|
@@ -2302,7 +2302,7 @@ const Do = (e, n, t, o) => {
|
|
|
2302
2302
|
Tt: I
|
|
2303
2303
|
};
|
|
2304
2304
|
return I ? !V && D(R) : d || T(k), R;
|
|
2305
|
-
}, [B, M,
|
|
2305
|
+
}, [B, M, H] = l || !p ? Oi(i, m) : [ke, ke, ke], [y, X] = d ? [ke, ke] : xs(i, w, {
|
|
2306
2306
|
Pt: !0,
|
|
2307
2307
|
Yt: !0
|
|
2308
2308
|
}), [h, N] = Oo(i, !1, b, {
|
|
@@ -2322,7 +2322,7 @@ const Do = (e, n, t, o) => {
|
|
|
2322
2322
|
}, () => {
|
|
2323
2323
|
x && x.observe(i), T(), X(), M();
|
|
2324
2324
|
}, () => {
|
|
2325
|
-
const k = {}, I = N(), V =
|
|
2325
|
+
const k = {}, I = N(), V = H(), R = r && r[1]();
|
|
2326
2326
|
return I && ae(k, b.apply(0, ie(I, !0))), V && ae(k, m.apply(0, ie(V, !0))), R && ae(k, $.apply(0, ie(R, !0))), k;
|
|
2327
2327
|
}, (k) => {
|
|
2328
2328
|
const [I] = k("update.ignoreMutation"), [V, R] = k("update.attributes"), [E, O] = k("update.elementEvents"), [F, U] = k("update.debounce"), te = O || R, C = (L) => Me(I) && I(L);
|
|
@@ -2375,12 +2375,12 @@ const Do = (e, n, t, o) => {
|
|
|
2375
2375
|
yt: At(e.J)
|
|
2376
2376
|
}), Ni = (e, n) => {
|
|
2377
2377
|
const t = Rn(n, {}), [o, s, r] = to(), [i, c, l] = _i(e), a = _s(Bi(i)), [d, u] = a, f = Ti(i, a), p = (w, $, b) => {
|
|
2378
|
-
const M = De(w).some((
|
|
2378
|
+
const M = De(w).some((H) => !!w[H]) || !Gn($) || b;
|
|
2379
2379
|
return M && r("u", [w, $, b]), M;
|
|
2380
2380
|
}, [S, v, D, T] = Li(i, u, (w) => p(f(t, w), {}, !1)), m = d.bind(0);
|
|
2381
2381
|
return m.Nt = (w) => o("u", w), m.qt = () => {
|
|
2382
|
-
const { Z: w, K: $, rt: b, it: B } = i, M = B ? b.documentElement : w,
|
|
2383
|
-
v(), c(), ze($,
|
|
2382
|
+
const { Z: w, K: $, rt: b, it: B } = i, M = B ? b.documentElement : w, H = ze(M), y = Ke(M);
|
|
2383
|
+
v(), c(), ze($, H), Ke($, y);
|
|
2384
2384
|
}, m.Ft = i, [(w, $) => {
|
|
2385
2385
|
const b = Rn(n, w, $);
|
|
2386
2386
|
return T(b), p(f(b, D(), $), w, !!$);
|
|
@@ -2406,13 +2406,13 @@ const Do = (e, n, t, o) => {
|
|
|
2406
2406
|
$: !0
|
|
2407
2407
|
}), Ri = (e, n, t, o, s, r, i) => {
|
|
2408
2408
|
const { V: c } = $e(), { Gt: l, Xt: a, Ut: d } = o, u = `scroll${i ? "Left" : "Top"}`, f = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", S = i ? "left" : "top", v = i ? "w" : "h", D = i ? "x" : "y", T = (m, w) => ($) => {
|
|
2409
|
-
const { Et: b } = r(), B = Ht(a)[v] - Ht(l)[v],
|
|
2410
|
-
s[u] = m +
|
|
2409
|
+
const { Et: b } = r(), B = Ht(a)[v] - Ht(l)[v], H = w * $ / B * b[D], X = At(d) && i ? c.n || c.i ? 1 : -1 : 1;
|
|
2410
|
+
s[u] = m + H * X;
|
|
2411
2411
|
};
|
|
2412
2412
|
return ue(a, "pointerdown", (m) => {
|
|
2413
2413
|
const w = St(m.target, `.${oo}`) === l, $ = w ? l : a;
|
|
2414
2414
|
if (pt(n, He, bo, !0), Hi(m, e, w)) {
|
|
2415
|
-
const b = !w && m.shiftKey, B = () => We(l), M = () => We(a),
|
|
2415
|
+
const b = !w && m.shiftKey, B = () => We(l), M = () => We(a), H = (E, O) => (E || B())[S] - (O || M())[S], y = T(s[u] || 0, 1 / Ai(s)[D]), X = m[f], h = B(), N = M(), g = h[p], x = H(h, N) + g / 2, k = X - N[S], I = w ? 0 : k - x, V = (E) => {
|
|
2416
2416
|
Ue(R), $.releasePointerCapture(E.pointerId);
|
|
2417
2417
|
}, R = [pt.bind(0, n, He, bo), ue(t, Ao, V), ue(t, "selectstart", (E) => cs(E), {
|
|
2418
2418
|
S: !1
|
|
@@ -2424,7 +2424,7 @@ const Do = (e, n, t, o) => {
|
|
|
2424
2424
|
y(I);
|
|
2425
2425
|
else if (!w) {
|
|
2426
2426
|
const E = yt()[ui];
|
|
2427
|
-
E && ie(R, E.O(y,
|
|
2427
|
+
E && ie(R, E.O(y, H, I, g, k));
|
|
2428
2428
|
}
|
|
2429
2429
|
$.setPointerCapture(m.pointerId);
|
|
2430
2430
|
}
|
|
@@ -2488,20 +2488,20 @@ const Do = (e, n, t, o) => {
|
|
|
2488
2488
|
Q(C, (W) => {
|
|
2489
2489
|
Y(W.Ut, L);
|
|
2490
2490
|
});
|
|
2491
|
-
},
|
|
2491
|
+
}, H = (C, L) => {
|
|
2492
2492
|
Q(C, (A) => {
|
|
2493
2493
|
const [Y, W] = L(A);
|
|
2494
2494
|
ye(Y, W);
|
|
2495
2495
|
});
|
|
2496
2496
|
}, y = (C, L, A) => {
|
|
2497
|
-
|
|
2497
|
+
H(C, (Y) => {
|
|
2498
2498
|
const { Gt: W, Xt: oe } = Y;
|
|
2499
2499
|
return [W, {
|
|
2500
2500
|
[A ? "width" : "height"]: `${(100 * Ss(W, oe, A, L)).toFixed(3)}%`
|
|
2501
2501
|
}];
|
|
2502
2502
|
});
|
|
2503
2503
|
}, X = (C, L, A) => {
|
|
2504
|
-
!w && !w &&
|
|
2504
|
+
!w && !w && H(C, (Y) => {
|
|
2505
2505
|
const { Gt: W, Xt: oe, Ut: le } = Y, ce = ji(W, oe, f, L, At(le), A);
|
|
2506
2506
|
return [W, {
|
|
2507
2507
|
transform: ce === ce ? It(`${(100 * ce).toFixed(3)}%`, A) : ""
|
|
@@ -2520,7 +2520,7 @@ const Do = (e, n, t, o) => {
|
|
|
2520
2520
|
}, V = (C) => {
|
|
2521
2521
|
X(g, C, !0), X(x, C);
|
|
2522
2522
|
}, R = () => {
|
|
2523
|
-
!w && !w && (S &&
|
|
2523
|
+
!w && !w && (S && H(g, h), S && H(x, h));
|
|
2524
2524
|
}, E = ({ Et: C }) => {
|
|
2525
2525
|
B(), x.concat(g).forEach(({ Ut: L }) => {
|
|
2526
2526
|
b(L) && T.set(L, [zo(L, m, C.x, !0), zo(L, w, C.y)]);
|
|
@@ -2549,18 +2549,18 @@ const Do = (e, n, t, o) => {
|
|
|
2549
2549
|
B: m,
|
|
2550
2550
|
nn: g,
|
|
2551
2551
|
sn: F,
|
|
2552
|
-
en:
|
|
2552
|
+
en: H.bind(0, g)
|
|
2553
2553
|
},
|
|
2554
2554
|
cn: {
|
|
2555
2555
|
B: w,
|
|
2556
2556
|
nn: x,
|
|
2557
2557
|
sn: U,
|
|
2558
|
-
en:
|
|
2558
|
+
en: H.bind(0, x)
|
|
2559
2559
|
}
|
|
2560
2560
|
}, te, Ue.bind(0, N)];
|
|
2561
2561
|
}, qi = (e, n, t, o) => {
|
|
2562
2562
|
let s, r, i, c, l, a = 0;
|
|
2563
|
-
const d = _s({}), [u] = d, [f, p] = ut(), [S, v] = ut(), [D, T] = ut(100), [m, w] = ut(100), [$, b] = ut(100), [B, M] = ut(() => a), [
|
|
2563
|
+
const d = _s({}), [u] = d, [f, p] = ut(), [S, v] = ut(), [D, T] = ut(100), [m, w] = ut(100), [$, b] = ut(100), [B, M] = ut(() => a), [H, y, X] = Yi(e, t.Ft, Vi(n, t)), { J: h, et: N, it: g } = t.Ft, { Qt: x, Wt: k, Zt: I, Jt: V, Kt: R } = H, E = (C) => {
|
|
2564
2564
|
x(Mn, C, !0), x(Mn, C, !1);
|
|
2565
2565
|
}, O = (C, L) => {
|
|
2566
2566
|
if (M(), C)
|
|
@@ -2588,7 +2588,7 @@ const Do = (e, n, t, o) => {
|
|
|
2588
2588
|
});
|
|
2589
2589
|
}), o(C), R();
|
|
2590
2590
|
})], te = u.bind(0);
|
|
2591
|
-
return te.Ft =
|
|
2591
|
+
return te.Ft = H, te.qt = y, [(C, L, A) => {
|
|
2592
2592
|
const { Ht: Y, Lt: W, It: oe, St: le, Pt: ce } = A, { I: de } = $e(), se = Rn(n, C, L), ne = t(), { Et: ge, Ot: Le, yt: Te, At: et } = ne, [at, bt] = se("showNativeOverlaidScrollbars"), [_t, me] = se("scrollbars.theme"), [_e, we] = se("scrollbars.visibility"), [Be, Rt] = se("scrollbars.autoHide"), [pn, mn] = se("scrollbars.autoHideSuspend"), [gn] = se("scrollbars.autoHideDelay"), [hn, Re] = se("scrollbars.dragScroll"), [Pt, vn] = se("scrollbars.clickScroll"), Vt = ce && !L, Ye = Y || W || le, tt = oe || we, Pe = at && de.x && de.y, Ft = (Ve, Lt) => {
|
|
2593
2593
|
const dt = _e === "visible" || _e === "auto" && Ve === "scroll";
|
|
2594
2594
|
return x(si, dt, Lt), dt;
|
|
@@ -2610,7 +2610,7 @@ const Do = (e, n, t, o) => {
|
|
|
2610
2610
|
const f = (g) => {
|
|
2611
2611
|
const x = yt()[ai], k = x && x.O;
|
|
2612
2612
|
return k ? k(g, !0) : g;
|
|
2613
|
-
}, p = ae({}, o(), f(n)), [S, v, D] = to(t), [T, m, w] = Ni(e, p), [$, b, B] = qi(e, p, m, (g) => D("scroll", [N, g])), M = (g, x) => T(g, !!x),
|
|
2613
|
+
}, p = ae({}, o(), f(n)), [S, v, D] = to(t), [T, m, w] = Ni(e, p), [$, b, B] = qi(e, p, m, (g) => D("scroll", [N, g])), M = (g, x) => T(g, !!x), H = M.bind(0, {}, !0), y = r(H), X = i(H), h = (g) => {
|
|
2614
2614
|
bi(a), y(), X(), B(), w(), u = !0, D("destroyed", [N, !!g]), v();
|
|
2615
2615
|
}, N = {
|
|
2616
2616
|
options(g, x) {
|
|
@@ -3135,7 +3135,7 @@ const cl = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
3135
3135
|
});
|
|
3136
3136
|
}, d = (p) => {
|
|
3137
3137
|
t("select", p);
|
|
3138
|
-
}, u =
|
|
3138
|
+
}, u = z(() => ({ left: c.value + "px", top: l.value + "px", ...o.menuStyle }));
|
|
3139
3139
|
n({
|
|
3140
3140
|
show: a
|
|
3141
3141
|
});
|
|
@@ -3397,12 +3397,12 @@ const On = "[-+]?[0-9]*.?[0-9]+", Ro = [
|
|
|
3397
3397
|
const t = e, o = {
|
|
3398
3398
|
IDLE: 0,
|
|
3399
3399
|
DESTROYED: 2
|
|
3400
|
-
}, s = J([]), r = J(null), i = J(wl.get("velocity")), c =
|
|
3400
|
+
}, s = J([]), r = J(null), i = J(wl.get("velocity")), c = z(() => t.animationType === "velocity"), l = z(() => c.value ? Cl : Il), a = z(() => s.value.filter((h) => h.state !== o.DESTROYED)), d = z(() => $l(t.width)), u = z(() => {
|
|
3401
3401
|
const { x: h, y: N } = Tl(t.position), g = d.value.value, x = d.value.type, k = {
|
|
3402
3402
|
width: g + x
|
|
3403
3403
|
};
|
|
3404
3404
|
return N && (k[N] = "0px"), h && (h === "center" ? k.left = `calc(50% - ${+g / 2}${x})` : k[h] = "0px"), k;
|
|
3405
|
-
}), f =
|
|
3405
|
+
}), f = z(() => "bottom" in u.value), p = (h) => {
|
|
3406
3406
|
n("click", h), t.closeOnClick && $(h);
|
|
3407
3407
|
}, S = () => {
|
|
3408
3408
|
var h;
|
|
@@ -3449,7 +3449,7 @@ const On = "[-+]?[0-9]*.?[0-9]+", Ro = [
|
|
|
3449
3449
|
var x;
|
|
3450
3450
|
const g = (x = t.animation) == null ? void 0 : x[h];
|
|
3451
3451
|
return typeof g == "function" ? g(N) : g;
|
|
3452
|
-
},
|
|
3452
|
+
}, H = (h, N) => {
|
|
3453
3453
|
if (!c.value)
|
|
3454
3454
|
return;
|
|
3455
3455
|
const g = M("enter", h);
|
|
@@ -3477,7 +3477,7 @@ const On = "[-+]?[0-9]*.?[0-9]+", Ro = [
|
|
|
3477
3477
|
}, [
|
|
3478
3478
|
(_(), q(Ce(l.value), {
|
|
3479
3479
|
name: e.animationName,
|
|
3480
|
-
onEnter:
|
|
3480
|
+
onEnter: H,
|
|
3481
3481
|
onLeave: y,
|
|
3482
3482
|
onAfterLeave: X
|
|
3483
3483
|
}, {
|
|
@@ -3532,7 +3532,7 @@ const On = "[-+]?[0-9]*.?[0-9]+", Ro = [
|
|
|
3532
3532
|
},
|
|
3533
3533
|
emits: ["click"],
|
|
3534
3534
|
setup(e, { emit: n }) {
|
|
3535
|
-
const t = e, o =
|
|
3535
|
+
const t = e, o = z(() => t.icon ? Fe.getters.getIcon(t.icon) : null);
|
|
3536
3536
|
return (s, r) => (_(), j("div", {
|
|
3537
3537
|
class: fe(["d-info-progress", t.type ? `d-info-progress-${t.type}` : null]),
|
|
3538
3538
|
style: pe(t.style),
|
|
@@ -3576,7 +3576,7 @@ const On = "[-+]?[0-9]*.?[0-9]+", Ro = [
|
|
|
3576
3576
|
},
|
|
3577
3577
|
emits: ["update:modelValue"],
|
|
3578
3578
|
setup(e, { emit: n }) {
|
|
3579
|
-
const t = e, s = jo().uid, r =
|
|
3579
|
+
const t = e, s = jo().uid, r = z({
|
|
3580
3580
|
get: () => t.modelValue,
|
|
3581
3581
|
set: (i) => {
|
|
3582
3582
|
n("update:modelValue", i);
|
|
@@ -3625,7 +3625,7 @@ const ic = {
|
|
|
3625
3625
|
},
|
|
3626
3626
|
emits: ["update:modelValue"],
|
|
3627
3627
|
setup(e, { emit: n }) {
|
|
3628
|
-
const t = e, o =
|
|
3628
|
+
const t = e, o = z(() => t.scale ? "d-select-" + t.scale : ""), s = z({
|
|
3629
3629
|
get: () => t.modelValue,
|
|
3630
3630
|
set: (r) => {
|
|
3631
3631
|
n("update:modelValue", r);
|
package/dist/dophJs.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(R,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(R=typeof globalThis<"u"?globalThis:R||self,t(R.DophJs={},R.Vue))})(this,function(R,t){"use strict";const hl="",gl="",yl="",bl="",Xe={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String,className:String},setup(e){const o=e,n=t.useSlots(),s=t.computed(()=>{const{className:a}=o;return a===void 0?"icon":["icon",a].join(" ")}),r=t.computed(()=>{const{color:a}=o;return a===void 0?null:a}),c=t.computed(()=>{const a=o.size??null;if(a!==void 0)return typeof a=="number"||/^\d+$/.test(a)?`${a}px`:a}),l=t.computed(()=>t.h("i",{class:s.value,style:{color:r.value,fontSize:c.value}},o.component?t.h(o.component):n));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(l)))}},Se={state:{},getters:{getIcon(e){return Se.state[e]},getIcons(){return Se.state}},mutations:{addIcon(e,o){Se.state.name=o},addIcons(e){for(const o in e)e.hasOwnProperty(o)&&(Se.state[o]=e[o])}}};function Rn(e){const o=e.value.getBoundingClientRect();let n=e.value,s=0,r=0;for(;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)s+=n.offsetLeft-n.scrollLeft,r+=n.offsetTop-n.scrollTop,n=n.offsetParent;return{top:r,left:s,x:o.x,y:o.y,width:o.width,height:o.height}}const us={key:1},Re={__name:"DButton",props:{class:String,style:[String,Object],icon:String,scale:String},emits:["click","contextmenu"],setup(e,{expose:o,emit:n}){const s=e,r=t.useSlots(),c=t.ref(null),l=t.computed(()=>s.icon?Se.getters.getIcon(s.icon):null),a=m=>{n("click",m)},i=m=>{n("contextmenu",m)},d=t.computed(()=>s.scale==="large"?"button-lg":s.scale==="small"?"button-sm":""),f=m=>!!r[m],u=t.computed(()=>f("default")?"":s.scale==="large"?"d-button-lg-icon":s.scale==="small"?"d-button-sm-icon":"d-button-icon");return o({elementSize:()=>Rn(c)}),(m,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[l.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"el",ref:c,onClick:a,onContextmenu:i,class:t.normalizeClass(["button",[s.class,d.value].join(" ")])},[t.renderSlot(m.$slots,"default")],34)),l.value?(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"el",ref:c,onClick:a,onContextmenu:i,class:t.normalizeClass(["button button-ext",[s.class,d.value,u.value].join(" ")]),style:t.normalizeStyle(s.style)},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:0,component:l.value,color:"inherit"},null,8,["component"])):t.createCommentVNode("",!0),t.unref(r).default?(t.openBlock(),t.createElementBlock("div",us,[t.renderSlot(m.$slots,"default")])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)],64))}},kl="",ot=(e,o)=>{const n=e.__vccOpts||e;for(const[s,r]of o)n[s]=r;return n},ps={key:0,class:"d-input"},ms={key:0,class:"label"},hs=["placeholder"],gs={key:1,class:"d-input",style:{display:"flex","align-items":"flex-end","justify-content":"flex-start"}},ys={style:{flex:"1"}},bs={key:0,class:"label"},ks=["placeholder"],Ss=ot({__name:"DInput",props:{label:String,placeholder:String,size:String,scale:String,modelValue:String,post:Object,focus:Boolean},emits:["update:modelValue"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.computed(()=>s.scale==="small"?"d-input-small":s.scale==="large"?"d-input-large":""),l=t.computed({get:()=>s.modelValue,set:i=>{n("update:modelValue",i)}});t.onMounted(()=>{s.focus&&a()});const a=()=>{r.value.focus()};return o({focus:a}),(i,d)=>s.post?s.post.click?(t.openBlock(),t.createElementBlock("div",gs,[t.createElementVNode("div",ys,[s.label?(t.openBlock(),t.createElementBlock("div",bs,t.toDisplayString(s.label),1)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{ref_key:"inputRef",ref:r,class:t.normalizeClass(["d-input-post-field",c.value]),"onUpdate:modelValue":d[1]||(d[1]=f=>l.value=f),type:"text",placeholder:s.placeholder,style:t.normalizeStyle(s.size==="wide"?"width:100%":"")},null,14,ks),[[t.vModelText,l.value]])]),s.post.label?(t.openBlock(),t.createBlock(Re,{key:0,scale:s.scale,class:t.normalizeClass(["d-input-post-button",s.post.class]),onClick:s.post.click,icon:s.post.icon},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.post.label),1)]),_:1},8,["scale","onClick","icon","class"])):(t.openBlock(),t.createBlock(Re,{key:1,scale:s.scale,class:t.normalizeClass(["d-input-post-button",s.post.class]),onClick:s.post.click,icon:s.post.icon},null,8,["scale","onClick","icon","class"]))])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ps,[s.label?(t.openBlock(),t.createElementBlock("div",ms,t.toDisplayString(s.label),1)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{ref_key:"inputRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=f=>l.value=f),type:"text",class:t.normalizeClass(c.value),placeholder:s.placeholder,style:t.normalizeStyle(s.size==="wide"?"width:100%":"")},null,14,hs),[[t.vModelText,l.value]])]))}},[["__scopeId","data-v-ea2b3438"]]),vn={__name:"DBadge",props:{class:String},setup(e){const o=e;return(n,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["badge",o.class])},[t.renderSlot(n.$slots,"default")],2))}},ze="0px",Fn={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(e){const o=e,n=i=>({height:i.style.height,width:i.style.width,position:i.style.position,visibility:i.style.visibility,overflow:i.style.overflow,paddingTop:i.style.paddingTop,paddingBottom:i.style.paddingBottom,borderTopWidth:i.style.borderTopWidth,borderBottomWidth:i.style.borderBottomWidth,marginTop:i.style.marginTop,marginBottom:i.style.marginBottom}),s=(i,d)=>{const{width:f}=getComputedStyle(i);i.style.width=f,i.style.position="absolute",i.style.visibility="hidden",i.style.height="";let{height:u}=getComputedStyle(i);return i.style.width=d.width,i.style.position=d.position,i.style.visibility=d.visibility,i.style.height=ze,i.style.overflow="hidden",d.height&&d.height!==ze?d.height:u},r=(i,d,f,u,p)=>{const m=i.animate(u,p);i.style.height=d.height,m.onfinish=()=>{i.style.overflow=d.overflow,f()}},c=(i,d)=>[{height:ze,opacity:o.opacityClosed,paddingTop:ze,paddingBottom:ze,borderTopWidth:ze,borderBottomWidth:ze,marginTop:ze,marginBottom:ze},{height:i,opacity:o.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],l=(i,d)=>{const f=i,u=n(f),p=s(f,u),m=c(p,u),x={duration:o.duration,easing:o.easingEnter};r(f,u,d,m,x)},a=(i,d)=>{const f=i,u=n(f),{height:p}=getComputedStyle(f);f.style.height=p,f.style.overflow="hidden";const m=c(p,u).reverse(),x={duration:o.duration,easing:o.easingLeave};r(f,u,d,m,x)};return(i,d)=>(t.openBlock(),t.createBlock(t.Transition,{css:!1,onEnter:l,onLeave:a},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3}))}},pt={data:void 0},Wt=e=>e.reduce((o,n)=>(o[n]=n)&&o,{}),ce=Wt(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),ws=Wt(["copy","move","link","none"]),_s=Wt(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),Wn={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:e=>e in ws},effectAllowed:{validator:e=>e in _s},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(e){const o=e,n=t.useSlots(),s=t.ref(!1),r=t.computed(()=>s&&o.transferData),c=t.computed(()=>({position:"fixed",top:"-1000px"})),l=(a,i)=>{const d=i.dataTransfer;if([ce.dragenter,ce.dragover].includes(a)&&o.dropEffect&&(d.dropEffect=o.dropEffect),a===ce.dragstart){if(o.effectAllowed&&(d.effectAllowed=o.effectAllowed),o.image||n.image){let f;o.image?(f=new Image,f.src=o.image):n.image&&(f=n.image[0].elm),d.setDragImage&&d.setDragImage(f,o.imageXOffset,o.imageYOffset)}o.transferData!==void 0&&(pt.data=o.transferData,i.dataTransfer.setData("text","")),s.value=!0}};return(a,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{draggable:o.draggable,onDrag:i[0]||(i[0]=d=>l(t.unref(ce).drag,d)),onDragstart:i[1]||(i[1]=t.withModifiers(d=>l(t.unref(ce).dragstart,d),["stop"])),onDragenter:i[2]||(i[2]=d=>l(t.unref(ce).dragenter,d)),onDragleave:i[3]||(i[3]=d=>l(t.unref(ce).dragleave,d)),onDragend:i[4]||(i[4]=d=>l(t.unref(ce).dragend,d))},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{transferData:r.value}),e.hideImageHtml?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.value)},[t.renderSlot(a.$slots,"image",{transferData:r.value})],4)):t.renderSlot(a.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},wl="",xs=e=>(t.pushScopeId("data-v-ac7bae20"),e=e(),t.popScopeId(),e),Bs={key:0,style:{display:"none"}},$s={key:1},Cs=[xs(()=>t.createElementVNode("div",{class:"tree-divider"},null,-1))],Ds={key:2},Es={class:"tree-divider-header"},Ts={class:"item-title"},Ns={key:0,class:"tree-divider"},Is={key:1},Vs={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},zs={key:0,class:"sub-menu"},jn=ot({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick","nodecontext"],setup(e,{emit:o}){const n=e,s=t.ref(null),r=t.ref(!1),c=t.ref(!1),l=t.ref(!1),a=t.computed(()=>n.model.children&&n.model.children.length),i=t.computed(()=>(A.actions.isTreeExpanded(n.treeId)&&(n.model.expanded=n.model.expanded===void 0?!0:n.model.expanded),n.model.expanded)),d=B=>{o("nodeclick",{event:B,model:n.model})},f=B=>{o("nodeclick",B)},u=B=>{o("nodedrop",B)},p=B=>{o("nodecontext",B)},m=t.computed(()=>(A.actions.isItemSelected(n.treeId,n.model.id)?"selected":"")+(r.value?"node-over ":"")+(c.value?"node-top ":"")+(l.value?"node-bottom ":"")),x=t.computed(()=>n.search?!1:n.model.draggable===!0),b=B=>{o("nodedrop",{e:B,model:n.model});let S=pt.data;if(S===void 0||S.model===void 0)return r.value=!1,!1;if(S.model.id===n.model.id||A.actions.isChildOfParent(n.treeId,n.items,n.model.id,S.model.id)||A.actions.isParentOfChild(n.treeId,n.items,S.model.id,n.model.id))return r.value=!1,c.value=!1,l.value=!1,!1;if(!A.state.trees[n.treeId].transfer&&S.id!==n.treeId)return!1;let z="";c.value?z="before":l.value?z="after":z="inside",A.actions.moveTreeNode(S.id,n.treeId,n.items,S.model.id,n.model.id,z),r.value=!1,c.value=!1,l.value=!1},C=B=>{o("nodedragover",{e:B,model:n.model});let S=pt.data;if(S===void 0||S.model===void 0)return r.value=!0,!1;if(S.model.id===n.model.id||A.actions.isChildOfParent(n.treeId,n.items,n.model.id,S.model.id)||A.actions.isParentOfChild(n.treeId,n.items,S.model.id,n.model.id))return!1;const z=B.y,H=s.value.getBoundingClientRect().top,M=s.value.getBoundingClientRect().height,k=M/3;z>H&&z<=H+k?(r.value=!1,c.value=!0,l.value=!1):z<H+M&&z>=H+M-k?(r.value=!1,c.value=!1,l.value=!0):(r.value=!0,c.value=!1,l.value=!1)},D=()=>{r.value=!1,c.value=!1,l.value=!1},h=t.computed(()=>n.model.title.startsWith("-")),w=t.computed(()=>{if(n.model.title.startsWith("-")){let[B,...S]=n.model.title.split(" ");return S=S.join(" "),S}return null});return(B,S)=>{const z=t.resolveComponent("d-tree-item",!0);return t.unref(A).actions.beforeItem(n.treeId,e.model)?h.value&&!w.value?(t.openBlock(),t.createElementBlock("li",$s,Cs)):h.value&&w.value?(t.openBlock(),t.createElementBlock("li",Ds,[t.createElementVNode("div",Es,t.toDisplayString(t.unref(A).actions.renderTitle(n.treeId,w.value)),1)])):(t.openBlock(),t.createBlock(Wn,{key:3,tag:"li",class:"tree-item","transfer-data":{id:n.treeId,model:n.model},draggable:x.value,onDrop:t.withModifiers(b,["stop"]),onDragenter:S[1]||(S[1]=t.withModifiers(()=>{},["prevent"])),onDragover:t.withModifiers(C,["prevent","stop"]),onDragleave:t.withModifiers(D,["prevent"])},{default:t.withCtx(()=>{var H,M;return[t.createElementVNode("div",{ref_key:"node",ref:s,class:t.normalizeClass(m.value),onClick:d,onContextmenu:S[0]||(S[0]=t.withModifiers(k=>o("nodecontext",{e:k,model:n.model}),["prevent"]))},[t.createElementVNode("div",null,[n.model.icons&&n.model.icons.pre&&a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:0,component:t.unref(Se).getters.getIcon(n.model.icons.pre.component),size:18,color:n.model.icons.pre.color?n.model.icons.pre.color:"inherit",class:t.normalizeClass(i.value?"tree-open-pre":"")},null,8,["component","color","class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.pre&&!a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:1,component:t.unref(Se).getters.getIcon(n.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:t.normalizeClass(i.value?"tree-open-pre":"")},null,8,["component","class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.icon&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:2,component:t.unref(Se).getters.getIcon(n.model.icons.icon.component),color:n.model.icons.icon.color?n.model.icons.icon.color:"inherit",size:n.model.icons.icon.size?n.model.icons.icon.size:null,className:n.model.icons.icon.class?n.model.icons.icon.class:null},null,8,["component","color","size","className"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ts,[h.value?(t.openBlock(),t.createElementBlock("div",Ns)):t.createCommentVNode("",!0),h.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Is,t.toDisplayString(t.unref(A).actions.renderTitle(n.treeId,n.model.title)),1))])]),t.createElementVNode("div",Vs,[((H=n.model.badge)==null?void 0:H.value)!==void 0&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(vn),{key:0,class:t.normalizeClass([(M=n.model.badge)==null?void 0:M.class,"badge-sm"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.model.badge.value),1)]),_:1},8,["class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.post&&a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:1,component:t.unref(Se).getters.getIcon(n.model.icons.post.component),size:20,color:n.model.icons.post.color?n.model.icons.post.color:"inherit",class:t.normalizeClass(i.value?"tree-open-post":"")},null,8,["component","color","class"])):t.createCommentVNode("",!0)])],34),t.createVNode(Fn,null,{default:t.withCtx(()=>[a.value&&i.value&&!n.search?(t.openBlock(),t.createElementBlock("ul",zs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model.children,k=>(t.openBlock(),t.createBlock(z,{class:"tree-item",key:k.id,model:k,treeId:n.treeId,items:n.items,search:n.search,onNodeclick:f,onNodedrop:u,onNodecontext:p},null,8,["model","treeId","items","search"]))),128))])):t.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])):(t.openBlock(),t.createElementBlock("li",Bs))}}},[["__scopeId","data-v-ac7bae20"]]);function Un(e){return e=e||new Map,{all:e,on(o,n){const s=e.get(o);s?s.push(n):e.set(o,[n])},off(o,n){const s=e.get(o);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(o,[]))},emit(o,n){let s=e.get(o);s&&s.slice().map(r=>{r(n)}),s=e.get("*"),s&&s.slice().map(r=>{r(o,n)})}}}const me=Un(),A={state:t.reactive({trees:{}}),getters:{getItems(e){return A.state.trees[e].items},getItemsSelect(e){return A.state.trees[e].selected},getParentId(e,o,n,s="id",r="children",c={}){return n&&e&&(e.find(l=>l[s]===n?(c.found=o,l):A.getters.getParentId(l[r],l.id,n,s,r,c)),c.found)?c.found:!1}},mutations:{setTreeItems(e,o){A.state.trees[e].items=o},setItemSelect(e,o){A.state.trees[e].noSelect||(A.state.trees[e].multiSelect?A.state.trees[e].selected.includes(o.id)?A.state.trees[e].selected=A.state.trees[e].selected.filter(function(n){return n!==o.id}):A.state.trees[e].selected=[...A.state.trees[e].selected,o.id]:A.state.trees[e].selected=[o.id])}},actions:{initTreeStore(e,o,n,s,r,c,l){A.state.trees[e]=[],A.state.trees[e].selected=[],A.state.trees[e].noSelect=o,A.state.trees[e].multiSelect=n,A.state.trees[e].expanded=s,A.state.trees[e].transfer=r,A.state.trees[e].renderTitle=c,A.state.trees[e].beforeItem=l},renderTitle(e,o){return A.state.trees[e].renderTitle?A.state.trees[e].renderTitle(o):o},beforeItem(e,o){return A.state.trees[e].beforeItem?A.state.trees[e].beforeItem(o):!0},isItemSelected(e,o){return A.state.trees[e].selected.includes(o)},toggleItem(e,o){o.expanded=o.expanded===void 0||!o.expanded,o.children&&o.children.length&&(o.expanded?me.emit(`expand-${e}`,{id:e,model:o}):me.emit(`collapse-${e}`,{id:e,model:o}))},isTreeExpanded(e){return A.state.trees[e].expanded},isChildOfParent(e,o,n,s){const r=A.actions.deepSearch(o,n);if(r&&r.children){for(let c=0;c<r.children.length;c++)if(r.children[c].id===s)return!0}return!1},isParentOfChild(e,o,n,s){const r=A.actions.deepSearch(o,n);return!!(r&&r.children&&A.actions.deepSearch(r.children,s))},deepSearch(e,o,n="id",s="children",r={}){return o&&e&&(e.find(c=>c[n]===o?(r.found=c,c):A.actions.deepSearch(c[s],o,n,s,r)),r.found)?r.found:!1},deepSearchByTitle(e,o,n="title",s="children",r=[]){if(o&&e&&(e.find(c=>{const l=new RegExp(o,"gi");c[n].toString().toLowerCase().match(l)!==null&&r.push(c),A.actions.deepSearchByTitle(c[s],o,n,s,r)}),r)){for(let c=0;c<r.length;c++);return r}return r},moveTreeNode(e,o,n,s,r,c){const l=A.actions.deleteTreeNode(n,s);A.actions.insertTreeNode(n,r,l,c),me.emit(`move-${o}`,{fromTreeId:e,toTreeId:o,moved:l.id,target:r,position:c})},insertTreeNode(e,o,n,s){if(e)for(let r=0;r<e.length;r++){if(e[r].id===o){let l=r;return s==="after"?(l++,e.splice(l,0,n)):s==="before"?e.splice(l,0,n):s==="inside"&&(Object.hasOwn(e[r],"children")||(e[r].children=[],e[r].opened=!0),e[r].children.splice(0,0,n)),e[r]}const c=this.insertTreeNode(e[r].children,o,n,s);if(c)return c}},deleteTreeNode(e,o){if(e)for(let n=0;n<e.length;n++){if(e[n].id===o){const r=e[n];return e.splice(n,1),r}const s=A.actions.deleteTreeNode(e[n].children,o);if(s)return s}}}},Yn={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(ce),setup(e,{expose:o,emit:n}){let s=t.reactive({});const r=t.ref("false"),c=t.ref(null),l=new Set,a=t.computed(()=>r.value&&s),i=(f,u)=>{s=pt.data,n(f,u,s),f===ce.dragenter&&(l.size||u.target===c.value)&&l.add(u.target),f===ce.dragleave&&l.delete(u.target),f===ce.drop&&l.clear(),r.value=!!l.size};return o({elementSize:()=>Rn(c)}),(f,u)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"el",ref:c,onDragenter:u[0]||(u[0]=p=>i(t.unref(ce).dragenter,p)),onDragleave:u[1]||(u[1]=p=>i(t.unref(ce).dragleave,p)),onDragover:u[2]||(u[2]=t.withModifiers(p=>i(t.unref(ce).dragover,p),["prevent"])),onDrop:u[3]||(u[3]=t.withModifiers(p=>i(t.unref(ce).drop,p),["prevent"]))},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{transferData:a.value})]),_:3},544))}},jt={__name:"DMenu",props:{class:String,items:Array,style:[String,Object],noSelect:{type:Boolean,default:!0},renderItemTitle:Function,beforeItem:Function},emits:["select"],setup(e,{expose:o,emit:n}){const s=e;let r=t.ref(null),c=t.ref(!1);const l=()=>{me.emit("menu-show-request"),c.value=!0},a=()=>{var p;(p=r.value)==null||p.collapseAll(),c.value=!1},i=()=>c.value;me.on("menu-show-request",()=>{a()}),o({show:l,hide:a,elementSize:()=>r.value.elementSize(),isShowed:i,itemsCount:()=>r.value.itemsCount()});const u=p=>{n("select",p),p.model.children||a()};return(p,m)=>{const x=t.resolveDirective("click-outside");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.unref(c)?t.withDirectives((t.openBlock(),t.createBlock(Ut,{key:0,ref_key:"treeRef",ref:r,items:s.items,"no-select":s.noSelect,class:t.normalizeClass(s.class),style:t.normalizeStyle(s.style),onSelect:u,"render-title":s.renderItemTitle,"before-item":s.beforeItem},null,8,["items","no-select","class","style","render-title","before-item"])),[[x,()=>a()]]):t.createCommentVNode("",!0)])}}},qn={__name:"DContextMenu",props:{items:Array,renderItemTitle:Function,beforeItem:Function},emits:["select"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.ref(0),l=t.ref(0),a=t.computed(()=>({left:c.value+"px",top:l.value+"px"})),i=f=>{r.value.show(),t.nextTick(()=>{const u=r.value.elementSize(),p=window.innerWidth,m=window.innerHeight;c.value=p-f.pageX<u.width?f.pageX-u.width:f.pageX,l.value=m-f.pageY<u.height?f.pageY-u.height:f.pageY,r.value.itemsCount()===0&&r.value.hide()})},d=f=>{n("select",f)};return o({show:i}),(f,u)=>(t.openBlock(),t.createBlock(jt,{ref_key:"dMenuRef",ref:r,onSelect:d,items:s.items,style:t.normalizeStyle(a.value),class:"context-menu","no-select":!0,"render-item-title":s.renderItemTitle,"before-item":s.beforeItem},null,8,["items","style","render-item-title","before-item"]))}},Ut={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,beforeItem:Function,search:String,context:Array,contextClick:{type:Function,default:()=>{}},contextBeforeClick:{type:Function,default:()=>!0}},emits:["select","collapse","expand","move","over","drop"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.ref(!1),l=t.ref(null),a=t.getCurrentInstance().uid;A.actions.initTreeStore(a,s.noSelect,s.multiSelect,s.expanded,s.transfer,s.renderTitle,s.beforeItem);const i=(k,Y)=>{console.log(k,Y)};me.on(`expand-${a}`,k=>{n("expand",k)}),me.on(`collapse-${a}`,k=>{n("collapse",k)}),me.on(`move-${a}`,k=>{n("move",k)});const d=t.computed(()=>s.search?A.actions.deepSearchByTitle(s.items,s.search):s.items),f=(k=null)=>{A.mutations.setItemSelect(a,k.model),A.actions.toggleItem(a,k.model),n("select",k)},u=(k=null)=>{n("over",k)},p=(k=null)=>{n("drop",k)},m=()=>r.value.elementSize(),x=()=>{for(let k=0;k<s.items.length;k++)s.items[k].expanded=!0},b=()=>{for(let k=0;k<s.items.length;k++)s.items[k].expanded=!1},C=()=>a,D=k=>A.actions.deepSearch(s.items,k),h=k=>{D(k)&&A.mutations.setItemSelect(a,D(k))},w=k=>{s.contextClick({e:k.e,model:k.model,target:l.value})},B=k=>s.contextBeforeClick({model:k,target:l.value}),S=t.computed(()=>s.context),z=k=>(S.value&&(l.value=k.model,c.value.show(k.e)),!1),H=()=>M(d.value),M=k=>{let Y=0;for(let y=0;y<k.length;y++)Y+=A.actions.beforeItem(a,k[y])?1:0,k[y].children&&k[y].children.length>0&&(Y+=M(k[y].children));return Y};return o({elementSize:m,expandAll:x,collapseAll:b,getId:C,getNode:D,selectNode:h,itemsCount:H}),(k,Y)=>(t.openBlock(),t.createBlock(Yn,{ref_key:"treeRef",ref:r,class:"tree",tag:"ul",onDrop:t.withModifiers(i,["stop"])},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,y=>(t.openBlock(),t.createBlock(jn,{key:y.id,model:y,treeId:t.unref(a),items:s.items,search:s.search,onNodeclick:f,onNodedragover:u,onNodedrop:p,onNodecontext:z},null,8,["model","treeId","items","search"]))),128)),S.value?(t.openBlock(),t.createBlock(qn,{key:0,ref_key:"contextTreeRef",ref:c,items:S.value,onSelect:w,"before-item":B},null,8,["items"])):t.createCommentVNode("",!0)]),_:1},8,["onDrop"]))}},Bl="",Os=ot({__name:"DAccordion",props:{items:Array},setup(e){const o=e,n=t.computed(()=>o.items);return(s,r)=>(t.openBlock(),t.createBlock(Ut,{class:"accordion",items:n.value,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-7b3ec3e4"]]),Xn={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:l,paddingLeft:a,transitionDuration:i,transitionTimingFunction:d}=o,f=s?"fixed":"static",u=o.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${a}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(t.openBlock(),t.createElementBlock("header",{class:"d-layout-header",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Gn={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,top:r,zIndex:c,minWidth:l,height:a,paddingLeft:i,transitionDuration:d,transitionTimingFunction:f}=o,u=s?"fixed":"static",p=o.useMinWidthLayout?`min-width: ${l}px;`:"";return`position:${u};top:${r}px;z-index:${c};${p}height:${a}px;padding-left:${i}px;transition-duration:${d}ms;transition-timing-function:${f};`});return(s,r)=>(t.openBlock(),t.createElementBlock("div",{class:"d-layout-tab",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Kn={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:l,paddingLeft:a,transitionDuration:i,transitionTimingFunction:d}=o,f=s?"fixed":"static",u=o.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${a}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(t.openBlock(),t.createElementBlock("footer",{class:"d-layout-footer",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Jn={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(e){const o=e,n=t.computed(()=>{const{zIndex:s,width:r,paddingTop:c,transitionDuration:l,transitionTimingFunction:a}=o;return`z-index:${s};width:${r}px;padding-top:${c}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(t.openBlock(),t.createElementBlock("aside",{class:"d-layout-sidebar",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Zn={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(e){const o=e,n=t.computed(()=>{const{paddingTop:s,paddingBottom:r,paddingLeft:c,transitionDuration:l,transitionTimingFunction:a}=o,i=`overflow:${o.overflowHidden?"hidden":"visible"};`;return`padding-top:${s}px;padding-bottom:${r}px;padding-left:${c}px;${i}transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(t.openBlock(),t.createElementBlock("main",{style:t.normalizeStyle(n.value),class:"d-layout-content"},[t.renderSlot(s.$slots,"default")],4))}};function Ls(e){const o=t.ref(0),n=t.computed(()=>`transform: translateX(${-o.value}px);`);let s=!1;function r(f){o.value=f}function c(){var f;const u=((f=document.scrollingElement)===null||f===void 0?void 0:f.scrollLeft)||0;r(u)}function l(){c()}function a(){document.addEventListener("scroll",c)}function i(){s&&document.removeEventListener("scroll",c)}function d(){l(),a(),s=!0}return t.watch(e,f=>{f?d():i()},{immediate:!0}),t.onUnmounted(()=>{i()}),n}const Ms=1001,As=999,Hs=998,Ps={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse","sidebar-mask-click"],setup(e,{emit:o}){const n=e,s=t.computed(()=>n.useMinWidthLayout?`min-width:${n.minWidth}px;`:""),r=t.computed(()=>n.useMinWidthLayout&&(n.fixedHeaderAndTab||n.fixedFooter)),c=Ls(r),l=t.computed(()=>n.fixedHeaderAndTab?c.value:""),a=t.computed(()=>n.fixedFooter?c.value:""),i=t.computed(()=>{const{transitionDuration:S,transitionTimingFunction:z}=n;return{transitionDuration:S,transitionTimingFunction:z}}),d=t.computed(()=>n.mode==="vertical"),f=t.computed(()=>n.isMobile||d.value?1003:1e3),u=t.computed({get(){return n.sidebarCollapse},set(S){o("update:sidebar-collapse",S)}});function p(){o("sidebar-mask-click")}const m=t.computed(()=>n.isMobile&&!u.value),x=t.computed(()=>{const{transitionDuration:S,transitionTimingFunction:z}=n;return`background-color:${n.maskBg};transition-duration:${S}ms;transition-timing-function:${z};`}),b=t.computed(()=>{const{sidebarWidth:S,sidebarCollapsedWidth:z}=n,H=n.isMobile?0:z,M=u.value?H:S;return n.sidebarVisible?M:0}),C=t.computed(()=>n.isMobile?0:b.value),D=t.computed(()=>d.value?C.value:0),h=t.computed(()=>!n.isMobile&&!d.value&&n.headerVisible?n.headerHeight:0),w=t.computed(()=>{let S=0;return n.fixedHeaderAndTab&&(n.headerVisible&&(S+=n.headerHeight),n.tabVisible&&(S+=n.tabHeight)),S}),B=t.computed(()=>n.fixedFooter&&n.footerVisible?n.footerHeight:0);return(S,z)=>(t.openBlock(),t.createElementBlock("div",{class:"d-layout",style:t.normalizeStyle(s.value)},[e.headerVisible?(t.openBlock(),t.createBlock(Xn,t.mergeProps({key:0},i.value,{fixed:e.fixedHeaderAndTab,"z-index":Ms,"min-width":e.minWidth,height:e.headerHeight,"padding-left":D.value,style:l.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):t.createCommentVNode("",!0),e.tabVisible?(t.openBlock(),t.createBlock(Gn,t.mergeProps({key:1},i.value,{fixed:e.fixedHeaderAndTab,"z-index":As,"min-width":e.minWidth,top:e.headerHeight,height:e.tabHeight,"padding-left":C.value,style:l.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):t.createCommentVNode("",!0),e.sidebarVisible?(t.openBlock(),t.createBlock(Jn,t.mergeProps({key:2},i.value,{"z-index":f.value,width:b.value,"padding-top":h.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:t.normalizeStyle(x.value),onClick:p},null,4)):t.createCommentVNode("",!0),t.createVNode(Zn,t.mergeProps(i.value,{"padding-top":w.value,"padding-bottom":B.value,"padding-left":C.value,"overflow-hidden":e.addMainOverflowHidden}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),e.footerVisible?(t.openBlock(),t.createBlock(Kn,t.mergeProps({key:4},i.value,{fixed:e.fixedFooter,"z-index":Hs,"min-width":e.minWidth,height:e.footerHeight,"padding-left":C.value,style:a.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):t.createCommentVNode("",!0)],4))}},Oe={state:t.reactive({theme:"dark"}),getters:{theme(){return Oe.state.theme}},mutations:{setTheme(e){Oe.state.theme=e,document.documentElement.setAttribute("class",e)}},actions:{toggleTheme(){Oe.state.theme=Oe.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",Oe.state.theme)}}},Rs={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(e){const o=e;return Oe.mutations.setTheme(o.theme),(n,s)=>t.renderSlot(n.$slots,"default")}};/*!
|
|
1
|
+
(function(R,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(R=typeof globalThis<"u"?globalThis:R||self,t(R.DophJs={},R.Vue))})(this,function(R,t){"use strict";const hl="",gl="",yl="",bl="",Xe={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String,className:String},setup(e){const o=e,n=t.useSlots(),s=t.computed(()=>{const{className:a}=o;return a===void 0?"icon":["icon",a].join(" ")}),r=t.computed(()=>{const{color:a}=o;return a===void 0?null:a}),c=t.computed(()=>{const a=o.size??null;if(a!==void 0)return typeof a=="number"||/^\d+$/.test(a)?`${a}px`:a}),l=t.computed(()=>t.h("i",{class:s.value,style:{color:r.value,fontSize:c.value}},o.component?t.h(o.component):n));return(a,i)=>(t.openBlock(),t.createBlock(t.unref(l)))}},Se={state:{},getters:{getIcon(e){return Se.state[e]},getIcons(){return Se.state}},mutations:{addIcon(e,o){Se.state.name=o},addIcons(e){for(const o in e)e.hasOwnProperty(o)&&(Se.state[o]=e[o])}}};function Rn(e){const o=e.value.getBoundingClientRect();let n=e.value,s=0,r=0;for(;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)s+=n.offsetLeft-n.scrollLeft,r+=n.offsetTop-n.scrollTop,n=n.offsetParent;return{top:r,left:s,x:o.x,y:o.y,width:o.width,height:o.height}}const us={key:1},Re={__name:"DButton",props:{class:String,style:[String,Object],icon:String,scale:String},emits:["click","contextmenu"],setup(e,{expose:o,emit:n}){const s=e,r=t.useSlots(),c=t.ref(null),l=t.computed(()=>s.icon?Se.getters.getIcon(s.icon):null),a=m=>{n("click",m)},i=m=>{n("contextmenu",m)},d=t.computed(()=>s.scale==="large"?"button-lg":s.scale==="small"?"button-sm":""),f=m=>!!r[m],u=t.computed(()=>f("default")?"":s.scale==="large"?"d-button-lg-icon":s.scale==="small"?"d-button-sm-icon":"d-button-icon");return o({elementSize:()=>Rn(c)}),(m,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[l.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"el",ref:c,onClick:a,onContextmenu:i,class:t.normalizeClass(["button",[s.class,d.value].join(" ")])},[t.renderSlot(m.$slots,"default")],34)),l.value?(t.openBlock(),t.createElementBlock("div",{key:1,ref_key:"el",ref:c,onClick:a,onContextmenu:i,class:t.normalizeClass(["button button-ext",[s.class,d.value,u.value].join(" ")]),style:t.normalizeStyle(s.style)},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:0,component:l.value,color:"inherit"},null,8,["component"])):t.createCommentVNode("",!0),t.unref(r).default?(t.openBlock(),t.createElementBlock("div",us,[t.renderSlot(m.$slots,"default")])):t.createCommentVNode("",!0)],38)):t.createCommentVNode("",!0)],64))}},kl="",ot=(e,o)=>{const n=e.__vccOpts||e;for(const[s,r]of o)n[s]=r;return n},ps={key:0,class:"d-input"},ms={key:0,class:"label"},hs=["placeholder"],gs={key:1,class:"d-input",style:{display:"flex","align-items":"flex-end","justify-content":"flex-start"}},ys={style:{flex:"1"}},bs={key:0,class:"label"},ks=["placeholder"],Ss=ot({__name:"DInput",props:{label:String,placeholder:String,size:String,scale:String,modelValue:String,post:Object,focus:Boolean},emits:["update:modelValue"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.computed(()=>s.scale==="small"?"d-input-small":s.scale==="large"?"d-input-large":""),l=t.computed({get:()=>s.modelValue,set:i=>{n("update:modelValue",i)}});t.onMounted(()=>{s.focus&&a()});const a=()=>{r.value.focus()};return o({focus:a}),(i,d)=>s.post?s.post.click?(t.openBlock(),t.createElementBlock("div",gs,[t.createElementVNode("div",ys,[s.label?(t.openBlock(),t.createElementBlock("div",bs,t.toDisplayString(s.label),1)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{ref_key:"inputRef",ref:r,class:t.normalizeClass(["d-input-post-field",c.value]),"onUpdate:modelValue":d[1]||(d[1]=f=>l.value=f),type:"text",placeholder:s.placeholder,style:t.normalizeStyle(s.size==="wide"?"width:100%":"")},null,14,ks),[[t.vModelText,l.value]])]),s.post.label?(t.openBlock(),t.createBlock(Re,{key:0,scale:s.scale,class:t.normalizeClass(["d-input-post-button",s.post.class]),onClick:s.post.click,icon:s.post.icon},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(s.post.label),1)]),_:1},8,["scale","onClick","icon","class"])):(t.openBlock(),t.createBlock(Re,{key:1,scale:s.scale,class:t.normalizeClass(["d-input-post-button",s.post.class]),onClick:s.post.click,icon:s.post.icon},null,8,["scale","onClick","icon","class"]))])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",ps,[s.label?(t.openBlock(),t.createElementBlock("div",ms,t.toDisplayString(s.label),1)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("input",{ref_key:"inputRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=f=>l.value=f),type:"text",class:t.normalizeClass(c.value),placeholder:s.placeholder,style:t.normalizeStyle(s.size==="wide"?"width:100%":"")},null,14,hs),[[t.vModelText,l.value]])]))}},[["__scopeId","data-v-ea2b3438"]]),vn={__name:"DBadge",props:{class:String},setup(e){const o=e;return(n,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["badge",o.class])},[t.renderSlot(n.$slots,"default")],2))}},ze="0px",Fn={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(e){const o=e,n=i=>({height:i.style.height,width:i.style.width,position:i.style.position,visibility:i.style.visibility,overflow:i.style.overflow,paddingTop:i.style.paddingTop,paddingBottom:i.style.paddingBottom,borderTopWidth:i.style.borderTopWidth,borderBottomWidth:i.style.borderBottomWidth,marginTop:i.style.marginTop,marginBottom:i.style.marginBottom}),s=(i,d)=>{const{width:f}=getComputedStyle(i);i.style.width=f,i.style.position="absolute",i.style.visibility="hidden",i.style.height="";let{height:u}=getComputedStyle(i);return i.style.width=d.width,i.style.position=d.position,i.style.visibility=d.visibility,i.style.height=ze,i.style.overflow="hidden",d.height&&d.height!==ze?d.height:u},r=(i,d,f,u,p)=>{const m=i.animate(u,p);i.style.height=d.height,m.onfinish=()=>{i.style.overflow=d.overflow,f()}},c=(i,d)=>[{height:ze,opacity:o.opacityClosed,paddingTop:ze,paddingBottom:ze,borderTopWidth:ze,borderBottomWidth:ze,marginTop:ze,marginBottom:ze},{height:i,opacity:o.opacityOpened,paddingTop:d.paddingTop,paddingBottom:d.paddingBottom,borderTopWidth:d.borderTopWidth,borderBottomWidth:d.borderBottomWidth,marginTop:d.marginTop,marginBottom:d.marginBottom}],l=(i,d)=>{const f=i,u=n(f),p=s(f,u),m=c(p,u),x={duration:o.duration,easing:o.easingEnter};r(f,u,d,m,x)},a=(i,d)=>{const f=i,u=n(f),{height:p}=getComputedStyle(f);f.style.height=p,f.style.overflow="hidden";const m=c(p,u).reverse(),x={duration:o.duration,easing:o.easingLeave};r(f,u,d,m,x)};return(i,d)=>(t.openBlock(),t.createBlock(t.Transition,{css:!1,onEnter:l,onLeave:a},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3}))}},pt={data:void 0},Wt=e=>e.reduce((o,n)=>(o[n]=n)&&o,{}),ce=Wt(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),ws=Wt(["copy","move","link","none"]),_s=Wt(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),Wn={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:e=>e in ws},effectAllowed:{validator:e=>e in _s},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(e){const o=e,n=t.useSlots(),s=t.ref(!1),r=t.computed(()=>s&&o.transferData),c=t.computed(()=>({position:"fixed",top:"-1000px"})),l=(a,i)=>{const d=i.dataTransfer;if([ce.dragenter,ce.dragover].includes(a)&&o.dropEffect&&(d.dropEffect=o.dropEffect),a===ce.dragstart){if(o.effectAllowed&&(d.effectAllowed=o.effectAllowed),o.image||n.image){let f;o.image?(f=new Image,f.src=o.image):n.image&&(f=n.image[0].elm),d.setDragImage&&d.setDragImage(f,o.imageXOffset,o.imageYOffset)}o.transferData!==void 0&&(pt.data=o.transferData,i.dataTransfer.setData("text","")),s.value=!0}};return(a,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{draggable:o.draggable,onDrag:i[0]||(i[0]=d=>l(t.unref(ce).drag,d)),onDragstart:i[1]||(i[1]=t.withModifiers(d=>l(t.unref(ce).dragstart,d),["stop"])),onDragenter:i[2]||(i[2]=d=>l(t.unref(ce).dragenter,d)),onDragleave:i[3]||(i[3]=d=>l(t.unref(ce).dragleave,d)),onDragend:i[4]||(i[4]=d=>l(t.unref(ce).dragend,d))},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{transferData:r.value}),e.hideImageHtml?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.value)},[t.renderSlot(a.$slots,"image",{transferData:r.value})],4)):t.renderSlot(a.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},wl="",xs=e=>(t.pushScopeId("data-v-ac7bae20"),e=e(),t.popScopeId(),e),Bs={key:0,style:{display:"none"}},$s={key:1},Cs=[xs(()=>t.createElementVNode("div",{class:"tree-divider"},null,-1))],Ds={key:2},Es={class:"tree-divider-header"},Ts={class:"item-title"},Ns={key:0,class:"tree-divider"},Is={key:1},Vs={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},zs={key:0,class:"sub-menu"},jn=ot({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick","nodecontext"],setup(e,{emit:o}){const n=e,s=t.ref(null),r=t.ref(!1),c=t.ref(!1),l=t.ref(!1),a=t.computed(()=>n.model.children&&n.model.children.length),i=t.computed(()=>(A.actions.isTreeExpanded(n.treeId)&&(n.model.expanded=n.model.expanded===void 0?!0:n.model.expanded),n.model.expanded)),d=B=>{o("nodeclick",{event:B,model:n.model})},f=B=>{o("nodeclick",B)},u=B=>{o("nodedrop",B)},p=B=>{o("nodecontext",B)},m=t.computed(()=>(A.actions.isItemSelected(n.treeId,n.model.id)?"selected":"")+(r.value?"node-over ":"")+(c.value?"node-top ":"")+(l.value?"node-bottom ":"")),x=t.computed(()=>n.search?!1:n.model.draggable===!0),b=B=>{o("nodedrop",{e:B,model:n.model});let S=pt.data;if(S===void 0||S.model===void 0)return r.value=!1,!1;if(S.model.id===n.model.id||A.actions.isChildOfParent(n.treeId,n.items,n.model.id,S.model.id)||A.actions.isParentOfChild(n.treeId,n.items,S.model.id,n.model.id))return r.value=!1,c.value=!1,l.value=!1,!1;if(!A.state.trees[n.treeId].transfer&&S.id!==n.treeId)return!1;let z="";c.value?z="before":l.value?z="after":z="inside",A.actions.moveTreeNode(S.id,n.treeId,n.items,S.model.id,n.model.id,z),r.value=!1,c.value=!1,l.value=!1},C=B=>{o("nodedragover",{e:B,model:n.model});let S=pt.data;if(S===void 0||S.model===void 0)return r.value=!0,!1;if(S.model.id===n.model.id||A.actions.isChildOfParent(n.treeId,n.items,n.model.id,S.model.id)||A.actions.isParentOfChild(n.treeId,n.items,S.model.id,n.model.id))return!1;const z=B.y,H=s.value.getBoundingClientRect().top,M=s.value.getBoundingClientRect().height,k=M/3;z>H&&z<=H+k?(r.value=!1,c.value=!0,l.value=!1):z<H+M&&z>=H+M-k?(r.value=!1,c.value=!1,l.value=!0):(r.value=!0,c.value=!1,l.value=!1)},D=()=>{r.value=!1,c.value=!1,l.value=!1},h=t.computed(()=>n.model.title.startsWith("-")),w=t.computed(()=>{if(n.model.title.startsWith("-")){let[B,...S]=n.model.title.split(" ");return S=S.join(" "),S}return null});return(B,S)=>{const z=t.resolveComponent("d-tree-item",!0);return t.unref(A).actions.beforeItem(n.treeId,e.model)?h.value&&!w.value?(t.openBlock(),t.createElementBlock("li",$s,Cs)):h.value&&w.value?(t.openBlock(),t.createElementBlock("li",Ds,[t.createElementVNode("div",Es,t.toDisplayString(t.unref(A).actions.renderTitle(n.treeId,w.value)),1)])):(t.openBlock(),t.createBlock(Wn,{key:3,tag:"li",class:"tree-item","transfer-data":{id:n.treeId,model:n.model},draggable:x.value,onDrop:t.withModifiers(b,["stop"]),onDragenter:S[1]||(S[1]=t.withModifiers(()=>{},["prevent"])),onDragover:t.withModifiers(C,["prevent","stop"]),onDragleave:t.withModifiers(D,["prevent"])},{default:t.withCtx(()=>{var H,M;return[t.createElementVNode("div",{ref_key:"node",ref:s,class:t.normalizeClass(m.value),onClick:d,onContextmenu:S[0]||(S[0]=t.withModifiers(k=>o("nodecontext",{e:k,model:n.model}),["prevent"]))},[t.createElementVNode("div",null,[n.model.icons&&n.model.icons.pre&&a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:0,component:t.unref(Se).getters.getIcon(n.model.icons.pre.component),size:18,color:n.model.icons.pre.color?n.model.icons.pre.color:"inherit",class:t.normalizeClass(i.value?"tree-open-pre":"")},null,8,["component","color","class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.pre&&!a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:1,component:t.unref(Se).getters.getIcon(n.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:t.normalizeClass(i.value?"tree-open-pre":"")},null,8,["component","class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.icon&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:2,component:t.unref(Se).getters.getIcon(n.model.icons.icon.component),color:n.model.icons.icon.color?n.model.icons.icon.color:"inherit",size:n.model.icons.icon.size?n.model.icons.icon.size:null,className:n.model.icons.icon.class?n.model.icons.icon.class:null},null,8,["component","color","size","className"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ts,[h.value?(t.openBlock(),t.createElementBlock("div",Ns)):t.createCommentVNode("",!0),h.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Is,t.toDisplayString(t.unref(A).actions.renderTitle(n.treeId,n.model.title)),1))])]),t.createElementVNode("div",Vs,[((H=n.model.badge)==null?void 0:H.value)!==void 0&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(vn),{key:0,class:t.normalizeClass([(M=n.model.badge)==null?void 0:M.class,"badge-sm"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.model.badge.value),1)]),_:1},8,["class"])):t.createCommentVNode("",!0),n.model.icons&&n.model.icons.post&&a.value&&!n.search&&!h.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(Xe),{key:1,component:t.unref(Se).getters.getIcon(n.model.icons.post.component),size:20,color:n.model.icons.post.color?n.model.icons.post.color:"inherit",class:t.normalizeClass(i.value?"tree-open-post":"")},null,8,["component","color","class"])):t.createCommentVNode("",!0)])],34),t.createVNode(Fn,null,{default:t.withCtx(()=>[a.value&&i.value&&!n.search?(t.openBlock(),t.createElementBlock("ul",zs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.model.children,k=>(t.openBlock(),t.createBlock(z,{class:"tree-item",key:k.id,model:k,treeId:n.treeId,items:n.items,search:n.search,onNodeclick:f,onNodedrop:u,onNodecontext:p},null,8,["model","treeId","items","search"]))),128))])):t.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"])):(t.openBlock(),t.createElementBlock("li",Bs))}}},[["__scopeId","data-v-ac7bae20"]]);function Un(e){return e=e||new Map,{all:e,on(o,n){const s=e.get(o);s?s.push(n):e.set(o,[n])},off(o,n){const s=e.get(o);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(o,[]))},emit(o,n){let s=e.get(o);s&&s.slice().map(r=>{r(n)}),s=e.get("*"),s&&s.slice().map(r=>{r(o,n)})}}}const me=Un(),A={state:t.reactive({trees:{}}),getters:{getItems(e){return A.state.trees[e].items},getItemsSelect(e){return A.state.trees[e].selected},getParentId(e,o,n,s="id",r="children",c={}){return n&&e&&(e.find(l=>l[s]===n?(c.found=o,l):A.getters.getParentId(l[r],l.id,n,s,r,c)),c.found)?c.found:!1}},mutations:{setTreeItems(e,o){A.state.trees[e].items=o},setItemSelect(e,o){A.state.trees[e].noSelect||(A.state.trees[e].multiSelect?A.state.trees[e].selected.includes(o.id)?A.state.trees[e].selected=A.state.trees[e].selected.filter(function(n){return n!==o.id}):A.state.trees[e].selected=[...A.state.trees[e].selected,o.id]:A.state.trees[e].selected=[o.id])}},actions:{initTreeStore(e,o,n,s,r,c,l){A.state.trees[e]=[],A.state.trees[e].selected=[],A.state.trees[e].noSelect=o,A.state.trees[e].multiSelect=n,A.state.trees[e].expanded=s,A.state.trees[e].transfer=r,A.state.trees[e].renderTitle=c,A.state.trees[e].beforeItem=l},renderTitle(e,o){return A.state.trees[e].renderTitle?A.state.trees[e].renderTitle(o):o},beforeItem(e,o){return A.state.trees[e].beforeItem?A.state.trees[e].beforeItem(o):!0},isItemSelected(e,o){return A.state.trees[e].selected.includes(o)},toggleItem(e,o){o.expanded=o.expanded===void 0||!o.expanded,o.children&&o.children.length&&(o.expanded?me.emit(`expand-${e}`,{id:e,model:o}):me.emit(`collapse-${e}`,{id:e,model:o}))},isTreeExpanded(e){return A.state.trees[e].expanded},isChildOfParent(e,o,n,s){const r=A.actions.deepSearch(o,n);if(r&&r.children){for(let c=0;c<r.children.length;c++)if(r.children[c].id===s)return!0}return!1},isParentOfChild(e,o,n,s){const r=A.actions.deepSearch(o,n);return!!(r&&r.children&&A.actions.deepSearch(r.children,s))},deepSearch(e,o,n="id",s="children",r={}){return o&&e&&(e.find(c=>c[n]===o?(r.found=c,c):A.actions.deepSearch(c[s],o,n,s,r)),r.found)?r.found:!1},deepSearchByTitle(e,o,n="title",s="children",r=[]){if(o&&e&&(e.find(c=>{const l=new RegExp(o,"gi");c[n].toString().toLowerCase().match(l)!==null&&r.push(c),A.actions.deepSearchByTitle(c[s],o,n,s,r)}),r)){for(let c=0;c<r.length;c++);return r}return r},moveTreeNode(e,o,n,s,r,c){const l=A.actions.deleteTreeNode(n,s);A.actions.insertTreeNode(n,r,l,c),me.emit(`move-${o}`,{fromTreeId:e,toTreeId:o,moved:l.id,target:r,position:c})},insertTreeNode(e,o,n,s){if(e)for(let r=0;r<e.length;r++){if(e[r].id===o){let l=r;return s==="after"?(l++,e.splice(l,0,n)):s==="before"?e.splice(l,0,n):s==="inside"&&(Object.hasOwn(e[r],"children")||(e[r].children=[],e[r].opened=!0),e[r].children.splice(0,0,n)),e[r]}const c=this.insertTreeNode(e[r].children,o,n,s);if(c)return c}},deleteTreeNode(e,o){if(e)for(let n=0;n<e.length;n++){if(e[n].id===o){const r=e[n];return e.splice(n,1),r}const s=A.actions.deleteTreeNode(e[n].children,o);if(s)return s}}}},Yn={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(ce),setup(e,{expose:o,emit:n}){let s=t.reactive({});const r=t.ref("false"),c=t.ref(null),l=new Set,a=t.computed(()=>r.value&&s),i=(f,u)=>{s=pt.data,n(f,u,s),f===ce.dragenter&&(l.size||u.target===c.value)&&l.add(u.target),f===ce.dragleave&&l.delete(u.target),f===ce.drop&&l.clear(),r.value=!!l.size};return o({elementSize:()=>Rn(c)}),(f,u)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.tag),{ref_key:"el",ref:c,onDragenter:u[0]||(u[0]=p=>i(t.unref(ce).dragenter,p)),onDragleave:u[1]||(u[1]=p=>i(t.unref(ce).dragleave,p)),onDragover:u[2]||(u[2]=t.withModifiers(p=>i(t.unref(ce).dragover,p),["prevent"])),onDrop:u[3]||(u[3]=t.withModifiers(p=>i(t.unref(ce).drop,p),["prevent"]))},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{transferData:a.value})]),_:3},544))}},jt={__name:"DMenu",props:{class:String,items:Array,style:[String,Object],noSelect:{type:Boolean,default:!0},renderItemTitle:Function,beforeItem:Function},emits:["select"],setup(e,{expose:o,emit:n}){const s=e;let r=t.ref(null),c=t.ref(!1);const l=()=>{me.emit("menu-show-request"),c.value=!0},a=()=>{var p;(p=r.value)==null||p.collapseAll(),c.value=!1},i=()=>c.value;me.on("menu-show-request",()=>{a()}),o({show:l,hide:a,elementSize:()=>r.value.elementSize(),isShowed:i,itemsCount:()=>r.value.itemsCount()});const u=p=>{n("select",p),p.model.children||a()};return(p,m)=>{const x=t.resolveDirective("click-outside");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.unref(c)?t.withDirectives((t.openBlock(),t.createBlock(Ut,{key:0,ref_key:"treeRef",ref:r,items:s.items,"no-select":s.noSelect,class:t.normalizeClass(s.class),style:t.normalizeStyle(s.style),onSelect:u,"render-title":s.renderItemTitle,"before-item":s.beforeItem},null,8,["items","no-select","class","style","render-title","before-item"])),[[x,()=>a()]]):t.createCommentVNode("",!0)])}}},qn={__name:"DContextMenu",props:{items:Array,renderItemTitle:Function,beforeItem:Function},emits:["select"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.ref(0),l=t.ref(0),a=t.computed(()=>({left:c.value+"px",top:l.value+"px"})),i=f=>{r.value.show(),t.nextTick(()=>{const u=r.value.elementSize(),p=window.innerWidth,m=window.innerHeight;c.value=p-f.pageX<u.width?f.pageX-u.width:f.pageX,l.value=m-f.pageY<u.height?f.pageY-u.height:f.pageY,r.value.itemsCount()===0&&r.value.hide()})},d=f=>{n("select",f)};return o({show:i}),(f,u)=>(t.openBlock(),t.createBlock(jt,{ref_key:"dMenuRef",ref:r,onSelect:d,items:s.items,style:t.normalizeStyle(a.value),class:"context-menu","no-select":!0,"render-item-title":s.renderItemTitle,"before-item":s.beforeItem},null,8,["items","style","render-item-title","before-item"]))}},Ut={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,beforeItem:Function,search:String,context:Array,contextClick:{type:Function,default:()=>{}},contextBeforeClick:{type:Function,default:()=>!0}},emits:["select","collapse","expand","move","over","drop"],setup(e,{expose:o,emit:n}){const s=e,r=t.ref(null),c=t.ref(!1),l=t.ref(null),a=t.getCurrentInstance().uid;A.actions.initTreeStore(a,s.noSelect,s.multiSelect,s.expanded,s.transfer,s.renderTitle,s.beforeItem);const i=(k,Y)=>{console.log(k,Y)};me.on(`expand-${a}`,k=>{n("expand",k)}),me.on(`collapse-${a}`,k=>{n("collapse",k)}),me.on(`move-${a}`,k=>{n("move",k)});const d=t.computed(()=>s.search?A.actions.deepSearchByTitle(s.items,s.search):s.items),f=(k=null)=>{A.mutations.setItemSelect(a,k.model),A.actions.toggleItem(a,k.model),n("select",k)},u=(k=null)=>{n("over",k)},p=(k=null)=>{n("drop",k)},m=()=>r.value.elementSize(),x=()=>{for(let k=0;k<s.items.length;k++)s.items[k].expanded=!0},b=()=>{for(let k=0;k<s.items.length;k++)s.items[k].expanded=!1},C=()=>a,D=k=>A.actions.deepSearch(s.items,k),h=k=>{D(k)&&A.mutations.setItemSelect(a,D(k))},w=k=>{s.contextClick({e:k.e,model:k.model,target:l.value})},B=k=>s.contextBeforeClick({model:k,target:l.value}),S=t.computed(()=>s.context),z=k=>(S.value&&(l.value=k.model,c.value.show(k.e)),!1),H=()=>M(d.value),M=k=>{let Y=0;for(let y=0;y<k.length;y++)Y+=A.actions.beforeItem(a,k[y])?1:0,k[y].children&&k[y].children.length>0&&(Y+=M(k[y].children));return Y};return o({elementSize:m,expandAll:x,collapseAll:b,getId:C,getNode:D,selectNode:h,itemsCount:H}),(k,Y)=>(t.openBlock(),t.createBlock(Yn,{ref_key:"treeRef",ref:r,class:"tree",tag:"ul",onDrop:t.withModifiers(i,["stop"])},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.value,y=>(t.openBlock(),t.createBlock(jn,{key:y.id,model:y,treeId:t.unref(a),items:s.items,search:s.search,onNodeclick:f,onNodedragover:u,onNodedrop:p,onNodecontext:z},null,8,["model","treeId","items","search"]))),128)),S.value?(t.openBlock(),t.createBlock(qn,{key:0,ref_key:"contextTreeRef",ref:c,items:S.value,onSelect:w,"before-item":B},null,8,["items"])):t.createCommentVNode("",!0)]),_:1},8,["onDrop"]))}},Bl="",Os=ot({__name:"DAccordion",props:{items:Array},setup(e){const o=e;return(n,s)=>(t.openBlock(),t.createBlock(Ut,{class:"accordion",items:o.items,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-4c920528"]]),Xn={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:l,paddingLeft:a,transitionDuration:i,transitionTimingFunction:d}=o,f=s?"fixed":"static",u=o.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${a}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(t.openBlock(),t.createElementBlock("header",{class:"d-layout-header",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Gn={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,top:r,zIndex:c,minWidth:l,height:a,paddingLeft:i,transitionDuration:d,transitionTimingFunction:f}=o,u=s?"fixed":"static",p=o.useMinWidthLayout?`min-width: ${l}px;`:"";return`position:${u};top:${r}px;z-index:${c};${p}height:${a}px;padding-left:${i}px;transition-duration:${d}ms;transition-timing-function:${f};`});return(s,r)=>(t.openBlock(),t.createElementBlock("div",{class:"d-layout-tab",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Kn={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(e){const o=e,n=t.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:l,paddingLeft:a,transitionDuration:i,transitionTimingFunction:d}=o,f=s?"fixed":"static",u=o.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${u}height:${l}px;padding-left:${a}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(t.openBlock(),t.createElementBlock("footer",{class:"d-layout-footer",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Jn={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(e){const o=e,n=t.computed(()=>{const{zIndex:s,width:r,paddingTop:c,transitionDuration:l,transitionTimingFunction:a}=o;return`z-index:${s};width:${r}px;padding-top:${c}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(t.openBlock(),t.createElementBlock("aside",{class:"d-layout-sidebar",style:t.normalizeStyle(n.value)},[t.renderSlot(s.$slots,"default")],4))}},Zn={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(e){const o=e,n=t.computed(()=>{const{paddingTop:s,paddingBottom:r,paddingLeft:c,transitionDuration:l,transitionTimingFunction:a}=o,i=`overflow:${o.overflowHidden?"hidden":"visible"};`;return`padding-top:${s}px;padding-bottom:${r}px;padding-left:${c}px;${i}transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(t.openBlock(),t.createElementBlock("main",{style:t.normalizeStyle(n.value),class:"d-layout-content"},[t.renderSlot(s.$slots,"default")],4))}};function Ls(e){const o=t.ref(0),n=t.computed(()=>`transform: translateX(${-o.value}px);`);let s=!1;function r(f){o.value=f}function c(){var f;const u=((f=document.scrollingElement)===null||f===void 0?void 0:f.scrollLeft)||0;r(u)}function l(){c()}function a(){document.addEventListener("scroll",c)}function i(){s&&document.removeEventListener("scroll",c)}function d(){l(),a(),s=!0}return t.watch(e,f=>{f?d():i()},{immediate:!0}),t.onUnmounted(()=>{i()}),n}const Ms=1001,As=999,Hs=998,Ps={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse","sidebar-mask-click"],setup(e,{emit:o}){const n=e,s=t.computed(()=>n.useMinWidthLayout?`min-width:${n.minWidth}px;`:""),r=t.computed(()=>n.useMinWidthLayout&&(n.fixedHeaderAndTab||n.fixedFooter)),c=Ls(r),l=t.computed(()=>n.fixedHeaderAndTab?c.value:""),a=t.computed(()=>n.fixedFooter?c.value:""),i=t.computed(()=>{const{transitionDuration:S,transitionTimingFunction:z}=n;return{transitionDuration:S,transitionTimingFunction:z}}),d=t.computed(()=>n.mode==="vertical"),f=t.computed(()=>n.isMobile||d.value?1003:1e3),u=t.computed({get(){return n.sidebarCollapse},set(S){o("update:sidebar-collapse",S)}});function p(){o("sidebar-mask-click")}const m=t.computed(()=>n.isMobile&&!u.value),x=t.computed(()=>{const{transitionDuration:S,transitionTimingFunction:z}=n;return`background-color:${n.maskBg};transition-duration:${S}ms;transition-timing-function:${z};`}),b=t.computed(()=>{const{sidebarWidth:S,sidebarCollapsedWidth:z}=n,H=n.isMobile?0:z,M=u.value?H:S;return n.sidebarVisible?M:0}),C=t.computed(()=>n.isMobile?0:b.value),D=t.computed(()=>d.value?C.value:0),h=t.computed(()=>!n.isMobile&&!d.value&&n.headerVisible?n.headerHeight:0),w=t.computed(()=>{let S=0;return n.fixedHeaderAndTab&&(n.headerVisible&&(S+=n.headerHeight),n.tabVisible&&(S+=n.tabHeight)),S}),B=t.computed(()=>n.fixedFooter&&n.footerVisible?n.footerHeight:0);return(S,z)=>(t.openBlock(),t.createElementBlock("div",{class:"d-layout",style:t.normalizeStyle(s.value)},[e.headerVisible?(t.openBlock(),t.createBlock(Xn,t.mergeProps({key:0},i.value,{fixed:e.fixedHeaderAndTab,"z-index":Ms,"min-width":e.minWidth,height:e.headerHeight,"padding-left":D.value,style:l.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):t.createCommentVNode("",!0),e.tabVisible?(t.openBlock(),t.createBlock(Gn,t.mergeProps({key:1},i.value,{fixed:e.fixedHeaderAndTab,"z-index":As,"min-width":e.minWidth,top:e.headerHeight,height:e.tabHeight,"padding-left":C.value,style:l.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):t.createCommentVNode("",!0),e.sidebarVisible?(t.openBlock(),t.createBlock(Jn,t.mergeProps({key:2},i.value,{"z-index":f.value,width:b.value,"padding-top":h.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:t.normalizeStyle(x.value),onClick:p},null,4)):t.createCommentVNode("",!0),t.createVNode(Zn,t.mergeProps(i.value,{"padding-top":w.value,"padding-bottom":B.value,"padding-left":C.value,"overflow-hidden":e.addMainOverflowHidden}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),e.footerVisible?(t.openBlock(),t.createBlock(Kn,t.mergeProps({key:4},i.value,{fixed:e.fixedFooter,"z-index":Hs,"min-width":e.minWidth,height:e.footerHeight,"padding-left":C.value,style:a.value}),{default:t.withCtx(()=>[t.renderSlot(S.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):t.createCommentVNode("",!0)],4))}},Oe={state:t.reactive({theme:"dark"}),getters:{theme(){return Oe.state.theme}},mutations:{setTheme(e){Oe.state.theme=e,document.documentElement.setAttribute("class",e)}},actions:{toggleTheme(){Oe.state.theme=Oe.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",Oe.state.theme)}}},Rs={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(e){const o=e;return Oe.mutations.setTheme(o.theme),(n,s)=>t.renderSlot(n.$slots,"default")}};/*!
|
|
2
2
|
* OverlayScrollbars
|
|
3
3
|
* Version: 2.3.0
|
|
4
4
|
*
|
package/dist/style.css
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* https://github.com/KingSora
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT license.
|
|
9
|
-
*/.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-environment{--os-custom-prop: -1;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:var(--os-custom-prop)}.os-environment div{width:200%;height:200%;margin:10px 0}.os-environment.os-environment-flexbox-glue{display:flex;flex-direction:row;flex-wrap:nowrap;height:auto;width:auto;min-height:200px;min-width:200px}.os-environment.os-environment-flexbox-glue div{flex:auto;width:auto;height:auto;max-height:100%;max-width:100%;margin:0}.os-environment.os-environment-flexbox-glue-max{max-height:200px}.os-environment.os-environment-flexbox-glue-max div{overflow:visible}.os-environment.os-environment-flexbox-glue-max div:before{content:"";display:block;height:999px;width:999px}.os-environment,[data-overlayscrollbars-viewport]{-ms-overflow-style:scrollbar!important}[data-overlayscrollbars-initialize],[data-overlayscrollbars~=scrollbarHidden],[data-overlayscrollbars-viewport~=scrollbarHidden],.os-scrollbar-hidden.os-environment{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,.os-scrollbar-hidden.os-environment::-webkit-scrollbar,.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not(html):not(body){overflow:auto}html[data-overlayscrollbars],html.os-scrollbar-hidden,html.os-scrollbar-hidden>body{box-sizing:border-box;margin:0;width:100%;height:100%}html[data-overlayscrollbars]>body{overflow:visible}[data-overlayscrollbars~=host]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;flex-direction:row!important;flex-wrap:nowrap!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]{--os-vaw: 0;--os-vah: 0}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport],[data-overlayscrollbars~=host],[data-overlayscrollbars~=viewport]{overflow:hidden}[data-overlayscrollbars~=overflowVisible],[data-overlayscrollbars-padding~=overflowVisible],[data-overlayscrollbars-viewport~=overflowVisible]{overflow:visible}[data-overlayscrollbars-overflow-x=hidden]{overflow-x:hidden}[data-overlayscrollbars-overflow-x=scroll]{overflow-x:scroll}[data-overlayscrollbars-overflow-x=hidden]{overflow-y:hidden}[data-overlayscrollbars-overflow-y=scroll]{overflow-y:scroll}[data-overlayscrollbars~=scrollbarPressed],[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]{scroll-behavior:auto!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none}.os-scrollbar-track{position:relative;direction:ltr!important;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible,.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0}.os-scrollbar-vertical .os-scrollbar-handle{right:0}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar .os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar .os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar .os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar .os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar .os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar .os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar .os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars~=updating]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track{border-radius:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal{padding:2px;right:10px;height:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl{left:10px;right:0}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle{min-width:33px;max-width:none}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical,.os-no-css-vars.os-theme-light.os-scrollbar-vertical{padding:2px;bottom:10px;width:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle{min-height:33px;max-height:none}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:-6px;left:-2px}.os-no-css-vars.os-theme-dark .os-scrollbar-handle{background:rgba(0,0,0,.44)}.os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-no-css-vars.os-theme-dark:active .os-scrollbar-handle{background:rgba(0,0,0,.66)}.os-no-css-vars.os-theme-light .os-scrollbar-handle{background:rgba(255,255,255,.44)}.os-no-css-vars.os-theme-light:hover .os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-no-css-vars.os-theme-light:active .os-scrollbar-handle{background:rgba(255,255,255,.66)}.dark .d-input input,.dark .d-select select{color:#ccc;background-color:#292c30;border-color:#4a4a4a}.dark .d-input input:focus,.dark .d-select select:focus{outline:none!important;border-color:#666}.light .d-input input,.light .d-select select{color:#333;background-color:#f2f2f2;border-color:#e5e5e5}.light .d-input input:focus,.light .d-select select:focus{outline:none!important;border-color:#d3d3d3}.dark .d-checkbox input[type=checkbox]+label:before{border:1px solid #51545a}.dark .d-checkbox input[type=checkbox]:checked+label:before{border-color:#51545a;background-color:#51545a}.dark .d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:disabled+label:before{background-color:#606367}.light .d-checkbox input[type=checkbox]+label:before{border:1px solid #b7b8ba}.light .d-checkbox input[type=checkbox]:checked+label:before{border-color:#7f7f7f;background-color:#7f7f7f}.light .d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:disabled+label:before{background-color:#d4d4d6}.dark{background-color:#34383e;color:#ccc}.dark .d-blue{color:#02769f}.dark .d-green{color:#11755b}.dark .d-red{color:#da4444}.dark .d-orange{color:#d48900}.dark .d-violet{color:#7750d2}.dark .d-stress-blue{color:#51c0e7}.dark .d-stress-green{color:#60d7ad}.dark .d-stress-red{color:#ff9292}.dark .d-stress-orange{color:#ffc458}.dark .d-stress-violet{color:#c2a7ff}.light{background-color:#fff;color:#333}.light .d-blue{color:#51c0e7}.light .d-green{color:#60d7ad}.light .d-red{color:#ff9292}.light .d-orange{color:#ffc458}.light .d-violet{color:#c2a7ff}.light .d-stress-blue{color:#02769f}.light .d-stress-green{color:#11755b}.light .d-stress-red{color:#da4444}.light .d-stress-orange{color:#d48900}.light .d-stress-violet{color:#7750d2}.light a{color:#6e7175}.light a:hover{color:#111315}.dark a{color:#c5c6c8}.dark a:hover{color:#e2e3e3}.light .lms_scroller{background:#c4c4c4}.dark .lms_scroller{background:#868686}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e2e3e3}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f1f1}.light .d-layout .d-layout-tab{background-color:#fbfbfb}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#51545a}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#43464c}.dark .d-layout .d-layout-tab{background-color:#2b2f34}.dark .d-panel{background-color:#43464c}.light .d-panel{background-color:#f0f1f1}.dark .d-card .card-header{background-color:#51545a;border-bottom:solid 1px #44474C}.dark .d-card .card-footer{background-color:#51545a;border-top:solid 1px #44474C}.light .card-header,.light .card-footer{background-color:#e2e3e3}.dark .modal{background-color:#00000080}.dark .modal .modal-dialog{box-shadow:0 0 15px 5px #00000080}.dark .modal .modal-dialog .modal-content{color:#ccc}.dark .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.dark .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.light .modal{background-color:#ffffff80}.light .modal .modal-dialog{background-color:#fff;box-shadow:0 0 10px 5px #0003}.light .modal .modal-dialog .modal-content{color:#6e7175}.light .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .d-notification-group .d-notification-template{background:white}.light .d-notification-group .d-notification-template.d-notification{color:#333;background:#f0f1f1;box-shadow:0 0 5px #0000004d}.light .d-notification-group .d-notification-template.d-notification.primary{background:#97D9F1}.light .d-notification-group .d-notification-template.d-notification.warning{background:#FFDC9B}.light .d-notification-group .d-notification-template.d-notification.error{background:#FFBEBE}.light .d-notification-group .d-notification-template.d-notification.success{background:#A0E7CE}.dark .d-notification-group .d-notification-template{background:white}.dark .d-notification-group .d-notification-template.d-notification{color:#fff;background:#6e7175;box-shadow:0 0 5px #000000b3}.dark .d-notification-group .d-notification-template.d-notification.primary{background:#02769f}.dark .d-notification-group .d-notification-template.d-notification.warning{background:#d48900}.dark .d-notification-group .d-notification-template.d-notification.error{background:#da4444}.dark .d-notification-group .d-notification-template.d-notification.success{background:#11755b}.dark .d-info-progress{background-color:#2b2f34}.dark .d-info-progress .d-info-progress-icon-container .d-info-progress-icon{background-color:#606367;box-shadow:0 0 5px #0003}.dark .d-info-progress .d-info-progress-data-container .d-info-progress-line{background-color:#606367}.dark .d-info-progress.d-info-progress-primary .d-info-progress-icon,.dark .d-info-progress.d-info-progress-primary .d-info-progress-line{background-color:#02769f}.dark .d-info-progress.d-info-progress-success .d-info-progress-icon,.dark .d-info-progress.d-info-progress-success .d-info-progress-line{background-color:#11755b}.dark .d-info-progress.d-info-progress-error .d-info-progress-icon,.dark .d-info-progress.d-info-progress-error .d-info-progress-line{background-color:#da4444}.dark .d-info-progress.d-info-progress-warning .d-info-progress-icon,.dark .d-info-progress.d-info-progress-warning .d-info-progress-line{background-color:#d48900}.light .d-info-progress{background-color:#f0f1f1}.light .d-info-progress .d-info-progress-icon-container .d-info-progress-icon{background-color:#b7b8ba;box-shadow:0 0 5px #0003}.light .d-info-progress .d-info-progress-data-container .d-info-progress-line{background-color:#b7b8ba}.light .d-info-progress.d-info-progress-primary .d-info-progress-icon,.light .d-info-progress.d-info-progress-primary .d-info-progress-line{background-color:#97d9f1}.light .d-info-progress.d-info-progress-success .d-info-progress-icon,.light .d-info-progress.d-info-progress-success .d-info-progress-line{background-color:#a0e7ce}.light .d-info-progress.d-info-progress-error .d-info-progress-icon,.light .d-info-progress.d-info-progress-error .d-info-progress-line{background-color:#ffbebe}.light .d-info-progress.d-info-progress-warning .d-info-progress-icon,.light .d-info-progress.d-info-progress-warning .d-info-progress-line{background-color:#ffdc9b}body{position:relative;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-ea2b3438],[data-v-ea2b3438]:after,[data-v-ea2b3438]:before{box-sizing:border-box}.node-top[data-v-ac7bae20]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-ac7bae20]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-ac7bae20]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-7b3ec3e4]{padding-left:0!important}.modal .modal-dialog[data-v-82cadd63]{width:var(--558e9e46)}
|
|
9
|
+
*/.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-environment{--os-custom-prop: -1;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:var(--os-custom-prop)}.os-environment div{width:200%;height:200%;margin:10px 0}.os-environment.os-environment-flexbox-glue{display:flex;flex-direction:row;flex-wrap:nowrap;height:auto;width:auto;min-height:200px;min-width:200px}.os-environment.os-environment-flexbox-glue div{flex:auto;width:auto;height:auto;max-height:100%;max-width:100%;margin:0}.os-environment.os-environment-flexbox-glue-max{max-height:200px}.os-environment.os-environment-flexbox-glue-max div{overflow:visible}.os-environment.os-environment-flexbox-glue-max div:before{content:"";display:block;height:999px;width:999px}.os-environment,[data-overlayscrollbars-viewport]{-ms-overflow-style:scrollbar!important}[data-overlayscrollbars-initialize],[data-overlayscrollbars~=scrollbarHidden],[data-overlayscrollbars-viewport~=scrollbarHidden],.os-scrollbar-hidden.os-environment{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,.os-scrollbar-hidden.os-environment::-webkit-scrollbar,.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not(html):not(body){overflow:auto}html[data-overlayscrollbars],html.os-scrollbar-hidden,html.os-scrollbar-hidden>body{box-sizing:border-box;margin:0;width:100%;height:100%}html[data-overlayscrollbars]>body{overflow:visible}[data-overlayscrollbars~=host]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;flex-direction:row!important;flex-wrap:nowrap!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]{--os-vaw: 0;--os-vah: 0}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport],[data-overlayscrollbars~=host],[data-overlayscrollbars~=viewport]{overflow:hidden}[data-overlayscrollbars~=overflowVisible],[data-overlayscrollbars-padding~=overflowVisible],[data-overlayscrollbars-viewport~=overflowVisible]{overflow:visible}[data-overlayscrollbars-overflow-x=hidden]{overflow-x:hidden}[data-overlayscrollbars-overflow-x=scroll]{overflow-x:scroll}[data-overlayscrollbars-overflow-x=hidden]{overflow-y:hidden}[data-overlayscrollbars-overflow-y=scroll]{overflow-y:scroll}[data-overlayscrollbars~=scrollbarPressed],[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]{scroll-behavior:auto!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none}.os-scrollbar-track{position:relative;direction:ltr!important;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible,.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0}.os-scrollbar-vertical .os-scrollbar-handle{right:0}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar .os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar .os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar .os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar .os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar .os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar .os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar .os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars~=updating]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track{border-radius:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal{padding:2px;right:10px;height:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl{left:10px;right:0}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle{min-width:33px;max-width:none}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical,.os-no-css-vars.os-theme-light.os-scrollbar-vertical{padding:2px;bottom:10px;width:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle{min-height:33px;max-height:none}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:-6px;left:-2px}.os-no-css-vars.os-theme-dark .os-scrollbar-handle{background:rgba(0,0,0,.44)}.os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-no-css-vars.os-theme-dark:active .os-scrollbar-handle{background:rgba(0,0,0,.66)}.os-no-css-vars.os-theme-light .os-scrollbar-handle{background:rgba(255,255,255,.44)}.os-no-css-vars.os-theme-light:hover .os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-no-css-vars.os-theme-light:active .os-scrollbar-handle{background:rgba(255,255,255,.66)}.dark .d-input input,.dark .d-select select{color:#ccc;background-color:#292c30;border-color:#4a4a4a}.dark .d-input input:focus,.dark .d-select select:focus{outline:none!important;border-color:#666}.light .d-input input,.light .d-select select{color:#333;background-color:#f2f2f2;border-color:#e5e5e5}.light .d-input input:focus,.light .d-select select:focus{outline:none!important;border-color:#d3d3d3}.dark .d-checkbox input[type=checkbox]+label:before{border:1px solid #51545a}.dark .d-checkbox input[type=checkbox]:checked+label:before{border-color:#51545a;background-color:#51545a}.dark .d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#7c7f83}.dark .d-checkbox input[type=checkbox]:disabled+label:before{background-color:#606367}.light .d-checkbox input[type=checkbox]+label:before{border:1px solid #b7b8ba}.light .d-checkbox input[type=checkbox]:checked+label:before{border-color:#7f7f7f;background-color:#7f7f7f}.light .d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#9a9c9f}.light .d-checkbox input[type=checkbox]:disabled+label:before{background-color:#d4d4d6}.dark{background-color:#34383e;color:#ccc}.dark .d-blue{color:#02769f}.dark .d-green{color:#11755b}.dark .d-red{color:#da4444}.dark .d-orange{color:#d48900}.dark .d-violet{color:#7750d2}.dark .d-stress-blue{color:#51c0e7}.dark .d-stress-green{color:#60d7ad}.dark .d-stress-red{color:#ff9292}.dark .d-stress-orange{color:#ffc458}.dark .d-stress-violet{color:#c2a7ff}.light{background-color:#fff;color:#333}.light .d-blue{color:#51c0e7}.light .d-green{color:#60d7ad}.light .d-red{color:#ff9292}.light .d-orange{color:#ffc458}.light .d-violet{color:#c2a7ff}.light .d-stress-blue{color:#02769f}.light .d-stress-green{color:#11755b}.light .d-stress-red{color:#da4444}.light .d-stress-orange{color:#d48900}.light .d-stress-violet{color:#7750d2}.light a{color:#6e7175}.light a:hover{color:#111315}.dark a{color:#c5c6c8}.dark a:hover{color:#e2e3e3}.light .lms_scroller{background:#c4c4c4}.dark .lms_scroller{background:#868686}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e2e3e3}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f1f1}.light .d-layout .d-layout-tab{background-color:#fbfbfb}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#51545a}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#43464c}.dark .d-layout .d-layout-tab{background-color:#2b2f34}.dark .d-panel{background-color:#43464c}.light .d-panel{background-color:#f0f1f1}.dark .d-card .card-header{background-color:#51545a;border-bottom:solid 1px #44474C}.dark .d-card .card-footer{background-color:#51545a;border-top:solid 1px #44474C}.light .card-header,.light .card-footer{background-color:#e2e3e3}.dark .modal{background-color:#00000080}.dark .modal .modal-dialog{box-shadow:0 0 15px 5px #00000080}.dark .modal .modal-dialog .modal-content{color:#ccc}.dark .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.dark .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.light .modal{background-color:#ffffff80}.light .modal .modal-dialog{background-color:#fff;box-shadow:0 0 10px 5px #0003}.light .modal .modal-dialog .modal-content{color:#6e7175}.light .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .d-notification-group .d-notification-template{background:white}.light .d-notification-group .d-notification-template.d-notification{color:#333;background:#f0f1f1;box-shadow:0 0 5px #0000004d}.light .d-notification-group .d-notification-template.d-notification.primary{background:#97D9F1}.light .d-notification-group .d-notification-template.d-notification.warning{background:#FFDC9B}.light .d-notification-group .d-notification-template.d-notification.error{background:#FFBEBE}.light .d-notification-group .d-notification-template.d-notification.success{background:#A0E7CE}.dark .d-notification-group .d-notification-template{background:white}.dark .d-notification-group .d-notification-template.d-notification{color:#fff;background:#6e7175;box-shadow:0 0 5px #000000b3}.dark .d-notification-group .d-notification-template.d-notification.primary{background:#02769f}.dark .d-notification-group .d-notification-template.d-notification.warning{background:#d48900}.dark .d-notification-group .d-notification-template.d-notification.error{background:#da4444}.dark .d-notification-group .d-notification-template.d-notification.success{background:#11755b}.dark .d-info-progress{background-color:#2b2f34}.dark .d-info-progress .d-info-progress-icon-container .d-info-progress-icon{background-color:#606367;box-shadow:0 0 5px #0003}.dark .d-info-progress .d-info-progress-data-container .d-info-progress-line{background-color:#606367}.dark .d-info-progress.d-info-progress-primary .d-info-progress-icon,.dark .d-info-progress.d-info-progress-primary .d-info-progress-line{background-color:#02769f}.dark .d-info-progress.d-info-progress-success .d-info-progress-icon,.dark .d-info-progress.d-info-progress-success .d-info-progress-line{background-color:#11755b}.dark .d-info-progress.d-info-progress-error .d-info-progress-icon,.dark .d-info-progress.d-info-progress-error .d-info-progress-line{background-color:#da4444}.dark .d-info-progress.d-info-progress-warning .d-info-progress-icon,.dark .d-info-progress.d-info-progress-warning .d-info-progress-line{background-color:#d48900}.light .d-info-progress{background-color:#f0f1f1}.light .d-info-progress .d-info-progress-icon-container .d-info-progress-icon{background-color:#b7b8ba;box-shadow:0 0 5px #0003}.light .d-info-progress .d-info-progress-data-container .d-info-progress-line{background-color:#b7b8ba}.light .d-info-progress.d-info-progress-primary .d-info-progress-icon,.light .d-info-progress.d-info-progress-primary .d-info-progress-line{background-color:#97d9f1}.light .d-info-progress.d-info-progress-success .d-info-progress-icon,.light .d-info-progress.d-info-progress-success .d-info-progress-line{background-color:#a0e7ce}.light .d-info-progress.d-info-progress-error .d-info-progress-icon,.light .d-info-progress.d-info-progress-error .d-info-progress-line{background-color:#ffbebe}.light .d-info-progress.d-info-progress-warning .d-info-progress-icon,.light .d-info-progress.d-info-progress-warning .d-info-progress-line{background-color:#ffdc9b}body{position:relative;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-ea2b3438],[data-v-ea2b3438]:after,[data-v-ea2b3438]:before{box-sizing:border-box}.node-top[data-v-ac7bae20]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-ac7bae20]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-ac7bae20]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-4c920528]{padding-left:0!important}.modal .modal-dialog[data-v-82cadd63]{width:var(--558e9e46)}
|