doph-js 0.0.86 → 0.0.87
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 +764 -747
- package/dist/dophJs.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots as
|
|
1
|
+
import { useSlots as An, computed as F, h as oo, openBlock as O, createBlock as Q, unref as G, ref as re, createElementBlock as oe, Fragment as Xt, normalizeClass as Oe, renderSlot as j, createCommentVNode as ue, resolveDynamicComponent as Ve, createElementVNode as ae, toDisplayString as ot, withDirectives as Mn, normalizeStyle as Te, vModelText as Ss, Transition as Lo, withCtx as se, withModifiers as Ue, resolveComponent as xs, createTextVNode as tt, createVNode as ct, renderList as zo, pushScopeId as $s, popScopeId as Ds, reactive as Pn, getCurrentInstance as Ts, watch as st, onUnmounted as No, mergeProps as Ct, shallowRef as Gt, defineComponent as Ho, toRefs as ks, onMounted as Ao, watchPostEffect as Cs, useCssVars as Is, resolveDirective as Mo, Teleport as Po, nextTick as Fo } from "vue";
|
|
2
2
|
const It = {
|
|
3
3
|
__name: "DIcon",
|
|
4
4
|
props: {
|
|
@@ -8,17 +8,17 @@ const It = {
|
|
|
8
8
|
className: String
|
|
9
9
|
},
|
|
10
10
|
setup(e) {
|
|
11
|
-
const t = e, n =
|
|
11
|
+
const t = e, n = An(), o = F(() => {
|
|
12
12
|
const { className: l } = t;
|
|
13
13
|
return l === void 0 ? "icon" : ["icon", l].join(" ");
|
|
14
|
-
}), s =
|
|
14
|
+
}), s = F(() => {
|
|
15
15
|
const { color: l } = t;
|
|
16
16
|
return l === void 0 ? null : l;
|
|
17
|
-
}), r =
|
|
17
|
+
}), r = F(() => {
|
|
18
18
|
const l = t.size ?? null;
|
|
19
19
|
if (l !== void 0)
|
|
20
20
|
return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
|
|
21
|
-
}),
|
|
21
|
+
}), i = F(() => oo(
|
|
22
22
|
"i",
|
|
23
23
|
{
|
|
24
24
|
class: o.value,
|
|
@@ -29,7 +29,7 @@ const It = {
|
|
|
29
29
|
},
|
|
30
30
|
t.component ? oo(t.component) : n
|
|
31
31
|
));
|
|
32
|
-
return (l,
|
|
32
|
+
return (l, c) => (O(), Q(G(i)));
|
|
33
33
|
}
|
|
34
34
|
}, Ye = {
|
|
35
35
|
state: {},
|
|
@@ -51,14 +51,14 @@ const It = {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function Ro(e) {
|
|
55
55
|
const t = e.value.getBoundingClientRect();
|
|
56
56
|
let n = e.value, o = 0, s = 0;
|
|
57
57
|
for (; n && !isNaN(n.offsetLeft) && !isNaN(n.offsetTop); )
|
|
58
58
|
o += n.offsetLeft - n.scrollLeft, s += n.offsetTop - n.scrollTop, n = n.offsetParent;
|
|
59
59
|
return { top: s, left: o, x: t.x, y: t.y, width: t.width, height: t.height };
|
|
60
60
|
}
|
|
61
|
-
const Os = { key: 1 },
|
|
61
|
+
const Os = { key: 1 }, Kt = {
|
|
62
62
|
__name: "DButton",
|
|
63
63
|
props: {
|
|
64
64
|
class: String,
|
|
@@ -66,38 +66,38 @@ const Os = { key: 1 }, Gt = {
|
|
|
66
66
|
},
|
|
67
67
|
emits: ["click", "contextmenu"],
|
|
68
68
|
setup(e, { expose: t, emit: n }) {
|
|
69
|
-
const o = e, s =
|
|
69
|
+
const o = e, s = An(), r = re(null), i = F(() => o.icon ? Ye.getters.getIcon(o.icon) : null), l = (d) => {
|
|
70
70
|
n("click", d);
|
|
71
|
-
},
|
|
71
|
+
}, c = (d) => {
|
|
72
72
|
n("contextmenu", d);
|
|
73
73
|
};
|
|
74
74
|
return t({
|
|
75
|
-
elementSize: () =>
|
|
76
|
-
}), (d, f) => (O(),
|
|
77
|
-
|
|
75
|
+
elementSize: () => Ro(r)
|
|
76
|
+
}), (d, f) => (O(), oe(Xt, null, [
|
|
77
|
+
i.value ? ue("", !0) : (O(), oe("div", {
|
|
78
78
|
key: 0,
|
|
79
79
|
ref_key: "el",
|
|
80
80
|
ref: r,
|
|
81
81
|
onClick: l,
|
|
82
|
-
onContextmenu:
|
|
82
|
+
onContextmenu: c,
|
|
83
83
|
class: Oe(["button", o.class])
|
|
84
84
|
}, [
|
|
85
85
|
j(d.$slots, "default")
|
|
86
86
|
], 34)),
|
|
87
|
-
|
|
87
|
+
i.value ? (O(), oe("div", {
|
|
88
88
|
key: 1,
|
|
89
89
|
ref_key: "el",
|
|
90
90
|
ref: r,
|
|
91
91
|
onClick: l,
|
|
92
|
-
onContextmenu:
|
|
92
|
+
onContextmenu: c,
|
|
93
93
|
class: Oe(["button button-ext", o.class])
|
|
94
94
|
}, [
|
|
95
|
-
o.icon ? (O(),
|
|
95
|
+
o.icon ? (O(), Q(Ve(It), {
|
|
96
96
|
key: 0,
|
|
97
|
-
component:
|
|
97
|
+
component: i.value,
|
|
98
98
|
color: "inherit"
|
|
99
99
|
}, null, 8, ["component"])) : ue("", !0),
|
|
100
|
-
|
|
100
|
+
G(s).default ? (O(), oe("div", Os, [
|
|
101
101
|
j(d.$slots, "default")
|
|
102
102
|
])) : ue("", !0)
|
|
103
103
|
], 34)) : ue("", !0)
|
|
@@ -121,20 +121,20 @@ const Dt = (e, t) => {
|
|
|
121
121
|
},
|
|
122
122
|
emits: ["update:modelValue"],
|
|
123
123
|
setup(e, { emit: t }) {
|
|
124
|
-
const n = e, o =
|
|
124
|
+
const n = e, o = F(() => n.font === "small" ? "d-input-small" : n.font === "big" ? "d-input-big" : ""), s = F({
|
|
125
125
|
get: () => n.modelValue,
|
|
126
126
|
set: (r) => {
|
|
127
127
|
t("update:modelValue", r);
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
return (r,
|
|
130
|
+
return (r, i) => (O(), oe("div", Es, [
|
|
131
131
|
ae("div", Bs, ot(n.label), 1),
|
|
132
132
|
Mn(ae("input", {
|
|
133
|
-
"onUpdate:modelValue":
|
|
133
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => s.value = l),
|
|
134
134
|
type: "text",
|
|
135
135
|
class: Oe(o.value),
|
|
136
136
|
placeholder: n.placeholder,
|
|
137
|
-
style:
|
|
137
|
+
style: Te(n.size === "wide" ? "width:100%" : "")
|
|
138
138
|
}, null, 14, Ls), [
|
|
139
139
|
[Ss, s.value]
|
|
140
140
|
])
|
|
@@ -147,7 +147,7 @@ const Dt = (e, t) => {
|
|
|
147
147
|
},
|
|
148
148
|
setup(e) {
|
|
149
149
|
const t = e;
|
|
150
|
-
return (n, o) => (O(),
|
|
150
|
+
return (n, o) => (O(), oe("div", {
|
|
151
151
|
class: Oe(["badge", t.class])
|
|
152
152
|
}, [
|
|
153
153
|
j(n.$slots, "default")
|
|
@@ -178,29 +178,29 @@ const Dt = (e, t) => {
|
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
setup(e) {
|
|
181
|
-
const t = e, n = (
|
|
182
|
-
height:
|
|
183
|
-
width:
|
|
184
|
-
position:
|
|
185
|
-
visibility:
|
|
186
|
-
overflow:
|
|
187
|
-
paddingTop:
|
|
188
|
-
paddingBottom:
|
|
189
|
-
borderTopWidth:
|
|
190
|
-
borderBottomWidth:
|
|
191
|
-
marginTop:
|
|
192
|
-
marginBottom:
|
|
193
|
-
}), o = (
|
|
194
|
-
const { width: d } = getComputedStyle(
|
|
195
|
-
|
|
196
|
-
let { height: f } = getComputedStyle(
|
|
197
|
-
return
|
|
198
|
-
}, s = (
|
|
199
|
-
const p =
|
|
200
|
-
|
|
201
|
-
|
|
181
|
+
const t = e, n = (c) => ({
|
|
182
|
+
height: c.style.height,
|
|
183
|
+
width: c.style.width,
|
|
184
|
+
position: c.style.position,
|
|
185
|
+
visibility: c.style.visibility,
|
|
186
|
+
overflow: c.style.overflow,
|
|
187
|
+
paddingTop: c.style.paddingTop,
|
|
188
|
+
paddingBottom: c.style.paddingBottom,
|
|
189
|
+
borderTopWidth: c.style.borderTopWidth,
|
|
190
|
+
borderBottomWidth: c.style.borderBottomWidth,
|
|
191
|
+
marginTop: c.style.marginTop,
|
|
192
|
+
marginBottom: c.style.marginBottom
|
|
193
|
+
}), o = (c, a) => {
|
|
194
|
+
const { width: d } = getComputedStyle(c);
|
|
195
|
+
c.style.width = d, c.style.position = "absolute", c.style.visibility = "hidden", c.style.height = "";
|
|
196
|
+
let { height: f } = getComputedStyle(c);
|
|
197
|
+
return c.style.width = a.width, c.style.position = a.position, c.style.visibility = a.visibility, c.style.height = We, c.style.overflow = "hidden", a.height && a.height !== We ? a.height : f;
|
|
198
|
+
}, s = (c, a, d, f, u) => {
|
|
199
|
+
const p = c.animate(f, u);
|
|
200
|
+
c.style.height = a.height, p.onfinish = () => {
|
|
201
|
+
c.style.overflow = a.overflow, d();
|
|
202
202
|
};
|
|
203
|
-
}, r = (
|
|
203
|
+
}, r = (c, a) => [
|
|
204
204
|
{
|
|
205
205
|
height: We,
|
|
206
206
|
opacity: t.opacityClosed,
|
|
@@ -212,7 +212,7 @@ const Dt = (e, t) => {
|
|
|
212
212
|
marginBottom: We
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
height:
|
|
215
|
+
height: c,
|
|
216
216
|
opacity: t.opacityOpened,
|
|
217
217
|
paddingTop: a.paddingTop,
|
|
218
218
|
paddingBottom: a.paddingBottom,
|
|
@@ -221,29 +221,29 @@ const Dt = (e, t) => {
|
|
|
221
221
|
marginTop: a.marginTop,
|
|
222
222
|
marginBottom: a.marginBottom
|
|
223
223
|
}
|
|
224
|
-
],
|
|
225
|
-
const d =
|
|
224
|
+
], i = (c, a) => {
|
|
225
|
+
const d = c, f = n(d), u = o(d, f), p = r(u, f), y = { duration: t.duration, easing: t.easingEnter };
|
|
226
226
|
s(d, f, a, p, y);
|
|
227
|
-
}, l = (
|
|
228
|
-
const d =
|
|
227
|
+
}, l = (c, a) => {
|
|
228
|
+
const d = c, f = n(d), { height: u } = getComputedStyle(d);
|
|
229
229
|
d.style.height = u, d.style.overflow = "hidden";
|
|
230
230
|
const p = r(u, f).reverse(), y = { duration: t.duration, easing: t.easingLeave };
|
|
231
231
|
s(d, f, a, p, y);
|
|
232
232
|
};
|
|
233
|
-
return (
|
|
233
|
+
return (c, a) => (O(), Q(Lo, {
|
|
234
234
|
css: !1,
|
|
235
|
-
onEnter:
|
|
235
|
+
onEnter: i,
|
|
236
236
|
onLeave: l
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
j(
|
|
238
|
+
default: se(() => [
|
|
239
|
+
j(c.$slots, "default")
|
|
240
240
|
]),
|
|
241
241
|
_: 3
|
|
242
242
|
}));
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, Zt = {
|
|
245
245
|
data: void 0
|
|
246
|
-
},
|
|
246
|
+
}, Fn = (e) => e.reduce((t, n) => (t[n] = n) && t, {}), me = Fn([
|
|
247
247
|
"drag",
|
|
248
248
|
"dragend",
|
|
249
249
|
"dragenter",
|
|
@@ -251,7 +251,7 @@ const Dt = (e, t) => {
|
|
|
251
251
|
"dragstart",
|
|
252
252
|
"dragover",
|
|
253
253
|
"drop"
|
|
254
|
-
]), As =
|
|
254
|
+
]), As = Fn(["copy", "move", "link", "none"]), Ms = Fn([
|
|
255
255
|
"none",
|
|
256
256
|
"copy",
|
|
257
257
|
"copyLink",
|
|
@@ -275,29 +275,29 @@ const Dt = (e, t) => {
|
|
|
275
275
|
tag: { type: String, default: "div" }
|
|
276
276
|
},
|
|
277
277
|
setup(e) {
|
|
278
|
-
const t = e, n =
|
|
279
|
-
const a =
|
|
278
|
+
const t = e, n = An(), o = re(!1), s = F(() => o && t.transferData), r = F(() => ({ position: "fixed", top: "-1000px" })), i = (l, c) => {
|
|
279
|
+
const a = c.dataTransfer;
|
|
280
280
|
if ([me.dragenter, me.dragover].includes(l) && t.dropEffect && (a.dropEffect = t.dropEffect), l === me.dragstart) {
|
|
281
281
|
if (t.effectAllowed && (a.effectAllowed = t.effectAllowed), t.image || n.image) {
|
|
282
282
|
let d;
|
|
283
283
|
t.image ? (d = new Image(), d.src = t.image) : n.image && (d = n.image[0].elm), a.setDragImage && a.setDragImage(d, t.imageXOffset, t.imageYOffset);
|
|
284
284
|
}
|
|
285
|
-
t.transferData !== void 0 && (
|
|
285
|
+
t.transferData !== void 0 && (Zt.data = t.transferData, c.dataTransfer.setData("text", "")), o.value = !0;
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
return (l,
|
|
288
|
+
return (l, c) => (O(), Q(Ve(e.tag), {
|
|
289
289
|
draggable: t.draggable,
|
|
290
|
-
onDrag:
|
|
291
|
-
onDragstart:
|
|
292
|
-
onDragenter:
|
|
293
|
-
onDragleave:
|
|
294
|
-
onDragend:
|
|
290
|
+
onDrag: c[0] || (c[0] = (a) => i(G(me).drag, a)),
|
|
291
|
+
onDragstart: c[1] || (c[1] = Ue((a) => i(G(me).dragstart, a), ["stop"])),
|
|
292
|
+
onDragenter: c[2] || (c[2] = (a) => i(G(me).dragenter, a)),
|
|
293
|
+
onDragleave: c[3] || (c[3] = (a) => i(G(me).dragleave, a)),
|
|
294
|
+
onDragend: c[4] || (c[4] = (a) => i(G(me).dragend, a))
|
|
295
295
|
}, {
|
|
296
|
-
default:
|
|
296
|
+
default: se(() => [
|
|
297
297
|
j(l.$slots, "default", { transferData: s.value }),
|
|
298
|
-
e.hideImageHtml ? (O(),
|
|
298
|
+
e.hideImageHtml ? (O(), oe("div", {
|
|
299
299
|
key: 0,
|
|
300
|
-
style:
|
|
300
|
+
style: Te(r.value)
|
|
301
301
|
}, [
|
|
302
302
|
j(l.$slots, "image", { transferData: s.value })
|
|
303
303
|
], 4)) : j(l.$slots, "image", {
|
|
@@ -309,9 +309,9 @@ const Dt = (e, t) => {
|
|
|
309
309
|
}, 40, ["draggable"]));
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
|
-
const
|
|
312
|
+
const Fs = (e) => ($s("data-v-e047277f"), e = e(), Ds(), e), Rs = { key: 1 }, Ws = /* @__PURE__ */ Fs(() => /* @__PURE__ */ ae("div", { class: "tree-divider" }, null, -1)), Vs = [
|
|
313
313
|
Ws
|
|
314
|
-
], Us = { key:
|
|
314
|
+
], Us = { key: 2 }, Ys = { class: "tree-divider-header" }, qs = { class: "item-title" }, js = {
|
|
315
315
|
key: 0,
|
|
316
316
|
class: "tree-divider"
|
|
317
317
|
}, Xs = { key: 1 }, Gs = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, Ks = {
|
|
@@ -327,27 +327,27 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
|
|
|
327
327
|
},
|
|
328
328
|
emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
|
|
329
329
|
setup(e, { emit: t }) {
|
|
330
|
-
const n = e, o =
|
|
330
|
+
const n = e, o = re(null), s = re(!1), r = re(!1), i = re(!1), l = F(() => n.model.children && n.model.children.length), c = F(() => (L.actions.isTreeExpanded(n.treeId) && (n.model.expanded = n.model.expanded === void 0 ? !0 : n.model.expanded), n.model.expanded)), a = (m) => {
|
|
331
331
|
t("nodeclick", { event: m, model: n.model });
|
|
332
332
|
}, d = (m) => {
|
|
333
333
|
t("nodeclick", m);
|
|
334
|
-
}, f =
|
|
335
|
-
let g =
|
|
336
|
-
if (g.model.id === n.model.id ||
|
|
337
|
-
return s.value = !1, r.value = !1,
|
|
338
|
-
if (!
|
|
334
|
+
}, f = F(() => (L.actions.isItemSelected(n.treeId, n.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (i.value ? "node-bottom " : "")), u = F(() => n.search ? !1 : n.model.draggable === !0), p = (m) => {
|
|
335
|
+
let g = Zt.data;
|
|
336
|
+
if (g.model.id === n.model.id || L.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || L.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
|
|
337
|
+
return s.value = !1, r.value = !1, i.value = !1, !1;
|
|
338
|
+
if (!L.state.trees[n.treeId].transfer && g.id !== n.treeId)
|
|
339
339
|
return !1;
|
|
340
340
|
let S = "";
|
|
341
|
-
r.value ? S = "before" :
|
|
341
|
+
r.value ? S = "before" : i.value ? S = "after" : S = "inside", L.actions.moveTreeNode(g.id, n.treeId, n.items, g.model.id, n.model.id, S), s.value = !1, r.value = !1, i.value = !1;
|
|
342
342
|
}, y = (m) => {
|
|
343
|
-
let g =
|
|
344
|
-
if (g.model.id === n.model.id ||
|
|
343
|
+
let g = Zt.data;
|
|
344
|
+
if (g.model.id === n.model.id || L.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || L.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
|
|
345
345
|
return !1;
|
|
346
|
-
const S = m.y, _ = o.value.getBoundingClientRect().top,
|
|
347
|
-
S > _ && S <= _ +
|
|
346
|
+
const S = m.y, _ = o.value.getBoundingClientRect().top, z = o.value.getBoundingClientRect().height, N = z / 3;
|
|
347
|
+
S > _ && S <= _ + N ? (s.value = !1, r.value = !0, i.value = !1) : S < _ + z && S >= _ + z - N ? (s.value = !1, r.value = !1, i.value = !0) : (s.value = !0, r.value = !1, i.value = !1);
|
|
348
348
|
}, h = () => {
|
|
349
|
-
s.value = !1, r.value = !1,
|
|
350
|
-
}, w =
|
|
349
|
+
s.value = !1, r.value = !1, i.value = !1;
|
|
350
|
+
}, w = F(() => n.model.title.startsWith("-")), D = F(() => {
|
|
351
351
|
if (n.model.title.startsWith("-")) {
|
|
352
352
|
let [m, ...g] = n.model.title.split(" ");
|
|
353
353
|
return g = g.join(" "), g;
|
|
@@ -356,10 +356,10 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
|
|
|
356
356
|
});
|
|
357
357
|
return (m, g) => {
|
|
358
358
|
const S = xs("d-tree-item", !0);
|
|
359
|
-
return w.value && !D.value ? (O(),
|
|
360
|
-
ae("div", Ys, ot(
|
|
361
|
-
])) : (O(),
|
|
362
|
-
key:
|
|
359
|
+
return G(L).actions.beforeItem(n.treeId, e.model) ? w.value && !D.value ? (O(), oe("li", Rs, Vs)) : w.value && D.value ? (O(), oe("li", Us, [
|
|
360
|
+
ae("div", Ys, ot(G(L).actions.renderTitle(n.treeId, D.value)), 1)
|
|
361
|
+
])) : (O(), Q(Ps, {
|
|
362
|
+
key: 3,
|
|
363
363
|
tag: "li",
|
|
364
364
|
class: "tree-item",
|
|
365
365
|
"transfer-data": { id: n.treeId, model: n.model },
|
|
@@ -370,8 +370,8 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
|
|
|
370
370
|
onDragover: Ue(y, ["prevent", "stop"]),
|
|
371
371
|
onDragleave: Ue(h, ["prevent"])
|
|
372
372
|
}, {
|
|
373
|
-
default:
|
|
374
|
-
var _,
|
|
373
|
+
default: se(() => {
|
|
374
|
+
var _, z;
|
|
375
375
|
return [
|
|
376
376
|
ae("div", {
|
|
377
377
|
ref_key: "node",
|
|
@@ -380,58 +380,58 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
|
|
|
380
380
|
onClick: a
|
|
381
381
|
}, [
|
|
382
382
|
ae("div", null, [
|
|
383
|
-
n.model.icons && n.model.icons.pre && l.value && !n.search && !w.value ? (O(),
|
|
383
|
+
n.model.icons && n.model.icons.pre && l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
|
|
384
384
|
key: 0,
|
|
385
|
-
component:
|
|
385
|
+
component: G(Ye).getters.getIcon(n.model.icons.pre.component),
|
|
386
386
|
size: 18,
|
|
387
387
|
color: n.model.icons.pre.color ? n.model.icons.pre.color : "inherit",
|
|
388
|
-
class: Oe(
|
|
388
|
+
class: Oe(c.value ? "tree-open-pre" : "")
|
|
389
389
|
}, null, 8, ["component", "color", "class"])) : ue("", !0),
|
|
390
|
-
n.model.icons && n.model.icons.pre && !l.value && !n.search && !w.value ? (O(),
|
|
390
|
+
n.model.icons && n.model.icons.pre && !l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
|
|
391
391
|
key: 1,
|
|
392
|
-
component:
|
|
392
|
+
component: G(Ye).getters.getIcon(n.model.icons.pre.component),
|
|
393
393
|
size: 18,
|
|
394
394
|
color: "rgba(0,0,0,0)",
|
|
395
|
-
class: Oe(
|
|
395
|
+
class: Oe(c.value ? "tree-open-pre" : "")
|
|
396
396
|
}, null, 8, ["component", "class"])) : ue("", !0),
|
|
397
|
-
n.model.icons && n.model.icons.icon && !w.value ? (O(),
|
|
397
|
+
n.model.icons && n.model.icons.icon && !w.value ? (O(), Q(Ve(It), {
|
|
398
398
|
key: 2,
|
|
399
|
-
component:
|
|
399
|
+
component: G(Ye).getters.getIcon(n.model.icons.icon.component),
|
|
400
400
|
color: n.model.icons.icon.color ? n.model.icons.icon.color : "inherit",
|
|
401
401
|
size: n.model.icons.icon.size ? n.model.icons.icon.size : null,
|
|
402
402
|
className: n.model.icons.icon.class ? n.model.icons.icon.class : null
|
|
403
403
|
}, null, 8, ["component", "color", "size", "className"])) : ue("", !0),
|
|
404
404
|
ae("div", qs, [
|
|
405
|
-
w.value ? (O(),
|
|
406
|
-
w.value ? ue("", !0) : (O(),
|
|
405
|
+
w.value ? (O(), oe("div", js)) : ue("", !0),
|
|
406
|
+
w.value ? ue("", !0) : (O(), oe("div", Xs, ot(G(L).actions.renderTitle(n.treeId, n.model.title)), 1))
|
|
407
407
|
])
|
|
408
408
|
]),
|
|
409
409
|
ae("div", Gs, [
|
|
410
|
-
((_ = n.model.badge) == null ? void 0 : _.value) !== void 0 && !w.value ? (O(),
|
|
410
|
+
((_ = n.model.badge) == null ? void 0 : _.value) !== void 0 && !w.value ? (O(), Q(Ve(Ns), {
|
|
411
411
|
key: 0,
|
|
412
|
-
class: Oe([(
|
|
412
|
+
class: Oe([(z = n.model.badge) == null ? void 0 : z.class, "badge-sm"])
|
|
413
413
|
}, {
|
|
414
|
-
default:
|
|
414
|
+
default: se(() => [
|
|
415
415
|
tt(ot(n.model.badge.value), 1)
|
|
416
416
|
]),
|
|
417
417
|
_: 1
|
|
418
418
|
}, 8, ["class"])) : ue("", !0),
|
|
419
|
-
n.model.icons && n.model.icons.post && l.value && !n.search && !w.value ? (O(),
|
|
419
|
+
n.model.icons && n.model.icons.post && l.value && !n.search && !w.value ? (O(), Q(Ve(It), {
|
|
420
420
|
key: 1,
|
|
421
|
-
component:
|
|
421
|
+
component: G(Ye).getters.getIcon(n.model.icons.post.component),
|
|
422
422
|
size: 20,
|
|
423
423
|
color: n.model.icons.post.color ? n.model.icons.post.color : "inherit",
|
|
424
|
-
class: Oe(
|
|
424
|
+
class: Oe(c.value ? "tree-open-post" : "")
|
|
425
425
|
}, null, 8, ["component", "color", "class"])) : ue("", !0)
|
|
426
426
|
])
|
|
427
427
|
], 2),
|
|
428
428
|
ct(Hs, null, {
|
|
429
|
-
default:
|
|
430
|
-
l.value &&
|
|
431
|
-
(O(!0),
|
|
429
|
+
default: se(() => [
|
|
430
|
+
l.value && c.value && !n.search ? (O(), oe("ul", Ks, [
|
|
431
|
+
(O(!0), oe(Xt, null, zo(e.model.children, (N) => (O(), Q(S, {
|
|
432
432
|
class: "tree-item",
|
|
433
|
-
key:
|
|
434
|
-
model:
|
|
433
|
+
key: N.id,
|
|
434
|
+
model: N,
|
|
435
435
|
treeId: n.treeId,
|
|
436
436
|
items: n.items,
|
|
437
437
|
search: n.search,
|
|
@@ -444,10 +444,10 @@ const Rs = (e) => ($s("data-v-6804865f"), e = e(), Ds(), e), Fs = { key: 0 }, Ws
|
|
|
444
444
|
];
|
|
445
445
|
}),
|
|
446
446
|
_: 1
|
|
447
|
-
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]));
|
|
447
|
+
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"])) : (O(), oe(Xt, { key: 0 }, [], 64));
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
}, Js = /* @__PURE__ */ Dt(Zs, [["__scopeId", "data-v-
|
|
450
|
+
}, Js = /* @__PURE__ */ Dt(Zs, [["__scopeId", "data-v-e047277f"]]);
|
|
451
451
|
function Qs(e) {
|
|
452
452
|
return e = e || /* @__PURE__ */ new Map(), {
|
|
453
453
|
/**
|
|
@@ -495,50 +495,53 @@ function Qs(e) {
|
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
const rt = Qs(),
|
|
498
|
+
const rt = Qs(), L = {
|
|
499
499
|
state: Pn({
|
|
500
500
|
trees: {}
|
|
501
501
|
}),
|
|
502
502
|
getters: {
|
|
503
503
|
getItems(e) {
|
|
504
|
-
return
|
|
504
|
+
return L.state.trees[e].items;
|
|
505
505
|
},
|
|
506
506
|
getItemsSelect(e) {
|
|
507
|
-
return
|
|
507
|
+
return L.state.trees[e].selected;
|
|
508
508
|
},
|
|
509
509
|
// data - ноды, dataId - ID ноды родителя data
|
|
510
510
|
getParentId(e, t, n, o = "id", s = "children", r = {}) {
|
|
511
|
-
return n && e && (e.find((
|
|
511
|
+
return n && e && (e.find((i) => i[o] === n ? (r.found = t, i) : L.getters.getParentId(i[s], i.id, n, o, s, r)), r.found) ? r.found : !1;
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
514
|
mutations: {
|
|
515
515
|
setTreeItems(e, t) {
|
|
516
|
-
|
|
516
|
+
L.state.trees[e].items = t;
|
|
517
517
|
},
|
|
518
518
|
setItemSelect(e, t) {
|
|
519
|
-
|
|
519
|
+
L.state.trees[e].noSelect || (L.state.trees[e].multiSelect ? L.state.trees[e].selected.includes(t.id) ? L.state.trees[e].selected = L.state.trees[e].selected.filter(function(n) {
|
|
520
520
|
return n !== t.id;
|
|
521
|
-
}) :
|
|
521
|
+
}) : L.state.trees[e].selected = [...L.state.trees[e].selected, t.id] : L.state.trees[e].selected = [t.id]);
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
524
|
actions: {
|
|
525
|
-
initTreeStore(e, t, n, o, s, r) {
|
|
526
|
-
|
|
525
|
+
initTreeStore(e, t, n, o, s, r, i) {
|
|
526
|
+
L.state.trees[e] = [], L.state.trees[e].selected = [], L.state.trees[e].noSelect = t, L.state.trees[e].multiSelect = n, L.state.trees[e].expanded = o, L.state.trees[e].transfer = s, L.state.trees[e].renderTitle = r, L.state.trees[e].beforeItem = i;
|
|
527
527
|
},
|
|
528
528
|
renderTitle(e, t) {
|
|
529
|
-
return
|
|
529
|
+
return L.state.trees[e].renderTitle ? L.state.trees[e].renderTitle(t) : t;
|
|
530
|
+
},
|
|
531
|
+
beforeItem(e, t) {
|
|
532
|
+
return L.state.trees[e].beforeItem ? L.state.trees[e].beforeItem(t) : !0;
|
|
530
533
|
},
|
|
531
534
|
isItemSelected(e, t) {
|
|
532
|
-
return
|
|
535
|
+
return L.state.trees[e].selected.includes(t);
|
|
533
536
|
},
|
|
534
537
|
toggleItem(e, t) {
|
|
535
538
|
t.expanded = t.expanded === void 0 || !t.expanded, t.children && t.children.length && (t.expanded ? rt.emit(`expand-${e}`, { id: e, model: t }) : rt.emit(`collapse-${e}`, { id: e, model: t }));
|
|
536
539
|
},
|
|
537
540
|
isTreeExpanded(e) {
|
|
538
|
-
return
|
|
541
|
+
return L.state.trees[e].expanded;
|
|
539
542
|
},
|
|
540
543
|
isChildOfParent(e, t, n, o) {
|
|
541
|
-
const s =
|
|
544
|
+
const s = L.actions.deepSearch(t, n);
|
|
542
545
|
if (s && s.children) {
|
|
543
546
|
for (let r = 0; r < s.children.length; r++)
|
|
544
547
|
if (s.children[r].id === o)
|
|
@@ -548,16 +551,16 @@ const rt = Qs(), M = {
|
|
|
548
551
|
},
|
|
549
552
|
// Является ли нода родителем указанного потомка
|
|
550
553
|
isParentOfChild(e, t, n, o) {
|
|
551
|
-
const s =
|
|
552
|
-
return !!(s && s.children &&
|
|
554
|
+
const s = L.actions.deepSearch(t, n);
|
|
555
|
+
return !!(s && s.children && L.actions.deepSearch(s.children, o));
|
|
553
556
|
},
|
|
554
557
|
deepSearch(e, t, n = "id", o = "children", s = {}) {
|
|
555
|
-
return t && e && (e.find((r) => r[n] === t ? (s.found = r, r) :
|
|
558
|
+
return t && e && (e.find((r) => r[n] === t ? (s.found = r, r) : L.actions.deepSearch(r[o], t, n, o, s)), s.found) ? s.found : !1;
|
|
556
559
|
},
|
|
557
560
|
deepSearchByTitle(e, t, n = "title", o = "children", s = []) {
|
|
558
561
|
if (t && e && (e.find((r) => {
|
|
559
|
-
const
|
|
560
|
-
r[n].toString().toLowerCase().match(
|
|
562
|
+
const i = new RegExp(t, "gi");
|
|
563
|
+
r[n].toString().toLowerCase().match(i) !== null && s.push(r), L.actions.deepSearchByTitle(r[o], t, n, o, s);
|
|
561
564
|
}), s)) {
|
|
562
565
|
for (let r = 0; r < s.length; r++)
|
|
563
566
|
;
|
|
@@ -566,15 +569,15 @@ const rt = Qs(), M = {
|
|
|
566
569
|
return s;
|
|
567
570
|
},
|
|
568
571
|
moveTreeNode(e, t, n, o, s, r) {
|
|
569
|
-
const
|
|
570
|
-
|
|
572
|
+
const i = L.actions.deleteTreeNode(n, o);
|
|
573
|
+
L.actions.insertTreeNode(n, s, i, r), rt.emit(`move-${t}`, { fromTreeId: e, toTreeId: t, moved: i.id, target: s, position: r });
|
|
571
574
|
},
|
|
572
575
|
insertTreeNode(e, t, n, o) {
|
|
573
576
|
if (e)
|
|
574
577
|
for (let s = 0; s < e.length; s++) {
|
|
575
578
|
if (e[s].id === t) {
|
|
576
|
-
let
|
|
577
|
-
return o === "after" ? (
|
|
579
|
+
let i = s;
|
|
580
|
+
return o === "after" ? (i++, e.splice(i, 0, n)) : o === "before" ? e.splice(i, 0, n) : o === "inside" && (Object.hasOwn(e[s], "children") || (e[s].children = [], e[s].opened = !0), e[s].children.splice(0, 0, n)), e[s];
|
|
578
581
|
}
|
|
579
582
|
const r = this.insertTreeNode(e[s].children, t, n, o);
|
|
580
583
|
if (r)
|
|
@@ -588,7 +591,7 @@ const rt = Qs(), M = {
|
|
|
588
591
|
const s = e[n];
|
|
589
592
|
return e.splice(n, 1), s;
|
|
590
593
|
}
|
|
591
|
-
const o =
|
|
594
|
+
const o = L.actions.deleteTreeNode(e[n].children, t);
|
|
592
595
|
if (o)
|
|
593
596
|
return o;
|
|
594
597
|
}
|
|
@@ -602,20 +605,20 @@ const rt = Qs(), M = {
|
|
|
602
605
|
emits: Object.keys(me),
|
|
603
606
|
setup(e, { expose: t, emit: n }) {
|
|
604
607
|
let o = Pn({});
|
|
605
|
-
const s =
|
|
606
|
-
o =
|
|
608
|
+
const s = re("false"), r = re(null), i = /* @__PURE__ */ new Set(), l = F(() => s.value && o), c = (d, f) => {
|
|
609
|
+
o = Zt.data, n(d, f, o), d === me.dragenter && (i.size || f.target === r.value) && i.add(f.target), d === me.dragleave && i.delete(f.target), d === me.drop && i.clear(), s.value = !!i.size;
|
|
607
610
|
};
|
|
608
611
|
return t({
|
|
609
|
-
elementSize: () =>
|
|
610
|
-
}), (d, f) => (O(),
|
|
612
|
+
elementSize: () => Ro(r)
|
|
613
|
+
}), (d, f) => (O(), Q(Ve(e.tag), {
|
|
611
614
|
ref_key: "el",
|
|
612
615
|
ref: r,
|
|
613
|
-
onDragenter: f[0] || (f[0] = (u) =>
|
|
614
|
-
onDragleave: f[1] || (f[1] = (u) =>
|
|
615
|
-
onDragover: f[2] || (f[2] = Ue((u) =>
|
|
616
|
-
onDrop: f[3] || (f[3] = Ue((u) =>
|
|
616
|
+
onDragenter: f[0] || (f[0] = (u) => c(G(me).dragenter, u)),
|
|
617
|
+
onDragleave: f[1] || (f[1] = (u) => c(G(me).dragleave, u)),
|
|
618
|
+
onDragover: f[2] || (f[2] = Ue((u) => c(G(me).dragover, u), ["prevent"])),
|
|
619
|
+
onDrop: f[3] || (f[3] = Ue((u) => c(G(me).drop, u), ["prevent"]))
|
|
617
620
|
}, {
|
|
618
|
-
default:
|
|
621
|
+
default: se(() => [
|
|
619
622
|
j(d.$slots, "default", { transferData: l.value })
|
|
620
623
|
]),
|
|
621
624
|
_: 3
|
|
@@ -636,14 +639,16 @@ const rt = Qs(), M = {
|
|
|
636
639
|
// перенос нод между деревьями
|
|
637
640
|
renderTitle: Function,
|
|
638
641
|
// генерация заголовка (постобработка)
|
|
642
|
+
beforeItem: Function,
|
|
643
|
+
// вызывается перед отрисовкой ноды - true, false
|
|
639
644
|
search: String
|
|
640
645
|
// строка поиска
|
|
641
646
|
},
|
|
642
647
|
emits: ["select", "collapse", "expand", "move"],
|
|
643
648
|
setup(e, { expose: t, emit: n }) {
|
|
644
|
-
const o = e, s =
|
|
645
|
-
|
|
646
|
-
const
|
|
649
|
+
const o = e, s = re(null), r = Ts().uid;
|
|
650
|
+
L.actions.initTreeStore(r, o.noSelect, o.multiSelect, o.expanded, o.transfer, o.renderTitle, o.beforeItem);
|
|
651
|
+
const i = (u, p) => {
|
|
647
652
|
console.log(u, p);
|
|
648
653
|
};
|
|
649
654
|
rt.on(`expand-${r}`, (u) => {
|
|
@@ -653,8 +658,8 @@ const rt = Qs(), M = {
|
|
|
653
658
|
}), rt.on(`move-${r}`, (u) => {
|
|
654
659
|
n("move", u);
|
|
655
660
|
});
|
|
656
|
-
const l =
|
|
657
|
-
|
|
661
|
+
const l = F(() => o.search ? L.actions.deepSearchByTitle(o.items, o.search) : o.items), c = (u = null) => {
|
|
662
|
+
L.mutations.setItemSelect(r, u.model), L.actions.toggleItem(r, u.model), n("select", u);
|
|
658
663
|
};
|
|
659
664
|
return t({
|
|
660
665
|
elementSize: () => s.value.elementSize(),
|
|
@@ -666,21 +671,21 @@ const rt = Qs(), M = {
|
|
|
666
671
|
for (let u = 0; u < o.items.length; u++)
|
|
667
672
|
o.items[u].expanded = !1;
|
|
668
673
|
}
|
|
669
|
-
}), (u, p) => (O(),
|
|
674
|
+
}), (u, p) => (O(), Q(er, {
|
|
670
675
|
ref_key: "treeRef",
|
|
671
676
|
ref: s,
|
|
672
677
|
class: "tree",
|
|
673
678
|
tag: "ul",
|
|
674
|
-
onDrop: Ue(
|
|
679
|
+
onDrop: Ue(i, ["stop"])
|
|
675
680
|
}, {
|
|
676
|
-
default:
|
|
677
|
-
(O(!0),
|
|
681
|
+
default: se(() => [
|
|
682
|
+
(O(!0), oe(Xt, null, zo(l.value, (y) => (O(), Q(Js, {
|
|
678
683
|
key: y.id,
|
|
679
684
|
model: y,
|
|
680
|
-
treeId:
|
|
685
|
+
treeId: G(r),
|
|
681
686
|
items: o.items,
|
|
682
687
|
search: o.search,
|
|
683
|
-
onNodeclick:
|
|
688
|
+
onNodeclick: c
|
|
684
689
|
}, null, 8, ["model", "treeId", "items", "search"]))), 128))
|
|
685
690
|
]),
|
|
686
691
|
_: 1
|
|
@@ -694,7 +699,7 @@ const tr = {
|
|
|
694
699
|
},
|
|
695
700
|
setup(e) {
|
|
696
701
|
const t = e;
|
|
697
|
-
return (n, o) => (O(),
|
|
702
|
+
return (n, o) => (O(), Q(Wo, {
|
|
698
703
|
class: "accordion",
|
|
699
704
|
items: t.items,
|
|
700
705
|
"no-select": !0
|
|
@@ -734,13 +739,13 @@ const tr = {
|
|
|
734
739
|
useMinWidthLayout: Boolean
|
|
735
740
|
},
|
|
736
741
|
setup(e) {
|
|
737
|
-
const t = e, n =
|
|
738
|
-
const { fixed: o, zIndex: s, minWidth: r, height:
|
|
739
|
-
return `position:${d};z-index:${s};${f}height:${
|
|
742
|
+
const t = e, n = F(() => {
|
|
743
|
+
const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: l, transitionDuration: c, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
744
|
+
return `position:${d};z-index:${s};${f}height:${i}px;padding-left:${l}px;transition-duration:${c}ms;transition-timing-function:${a};`;
|
|
740
745
|
});
|
|
741
|
-
return (o, s) => (O(),
|
|
746
|
+
return (o, s) => (O(), oe("header", {
|
|
742
747
|
class: "d-layout-header",
|
|
743
|
-
style:
|
|
748
|
+
style: Te(n.value)
|
|
744
749
|
}, [
|
|
745
750
|
j(o.$slots, "default")
|
|
746
751
|
], 4));
|
|
@@ -783,13 +788,13 @@ const tr = {
|
|
|
783
788
|
useMinWidthLayout: Boolean
|
|
784
789
|
},
|
|
785
790
|
setup(e) {
|
|
786
|
-
const t = e, n =
|
|
787
|
-
const { fixed: o, top: s, zIndex: r, minWidth:
|
|
788
|
-
return `position:${f};top:${s}px;z-index:${r};${u}height:${l}px;padding-left:${
|
|
791
|
+
const t = e, n = F(() => {
|
|
792
|
+
const { fixed: o, top: s, zIndex: r, minWidth: i, height: l, paddingLeft: c, transitionDuration: a, transitionTimingFunction: d } = t, f = o ? "fixed" : "static", u = t.useMinWidthLayout ? `min-width: ${i}px;` : "";
|
|
793
|
+
return `position:${f};top:${s}px;z-index:${r};${u}height:${l}px;padding-left:${c}px;transition-duration:${a}ms;transition-timing-function:${d};`;
|
|
789
794
|
});
|
|
790
|
-
return (o, s) => (O(),
|
|
795
|
+
return (o, s) => (O(), oe("div", {
|
|
791
796
|
class: "d-layout-tab",
|
|
792
|
-
style:
|
|
797
|
+
style: Te(n.value)
|
|
793
798
|
}, [
|
|
794
799
|
j(o.$slots, "default")
|
|
795
800
|
], 4));
|
|
@@ -828,13 +833,13 @@ const tr = {
|
|
|
828
833
|
useMinWidthLayout: Boolean
|
|
829
834
|
},
|
|
830
835
|
setup(e) {
|
|
831
|
-
const t = e, n =
|
|
832
|
-
const { fixed: o, zIndex: s, minWidth: r, height:
|
|
833
|
-
return `position:${d};z-index:${s};${f}height:${
|
|
836
|
+
const t = e, n = F(() => {
|
|
837
|
+
const { fixed: o, zIndex: s, minWidth: r, height: i, paddingLeft: l, transitionDuration: c, transitionTimingFunction: a } = t, d = o ? "fixed" : "static", f = t.useMinWidthLayout ? `min-width:${r}px;` : "";
|
|
838
|
+
return `position:${d};z-index:${s};${f}height:${i}px;padding-left:${l}px;transition-duration:${c}ms;transition-timing-function:${a};`;
|
|
834
839
|
});
|
|
835
|
-
return (o, s) => (O(),
|
|
840
|
+
return (o, s) => (O(), oe("footer", {
|
|
836
841
|
class: "d-layout-footer",
|
|
837
|
-
style:
|
|
842
|
+
style: Te(n.value)
|
|
838
843
|
}, [
|
|
839
844
|
j(o.$slots, "default")
|
|
840
845
|
], 4));
|
|
@@ -868,13 +873,13 @@ const tr = {
|
|
|
868
873
|
}
|
|
869
874
|
},
|
|
870
875
|
setup(e) {
|
|
871
|
-
const t = e, n =
|
|
872
|
-
const { zIndex: o, width: s, paddingTop: r, transitionDuration:
|
|
873
|
-
return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${
|
|
876
|
+
const t = e, n = F(() => {
|
|
877
|
+
const { zIndex: o, width: s, paddingTop: r, transitionDuration: i, transitionTimingFunction: l } = t;
|
|
878
|
+
return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${i}ms;transition-timing-function:${l};`;
|
|
874
879
|
});
|
|
875
|
-
return (o, s) => (O(),
|
|
880
|
+
return (o, s) => (O(), oe("aside", {
|
|
876
881
|
class: "d-layout-sidebar",
|
|
877
|
-
style:
|
|
882
|
+
style: Te(n.value)
|
|
878
883
|
}, [
|
|
879
884
|
j(o.$slots, "default")
|
|
880
885
|
], 4));
|
|
@@ -905,12 +910,12 @@ const tr = {
|
|
|
905
910
|
}
|
|
906
911
|
},
|
|
907
912
|
setup(e) {
|
|
908
|
-
const t = e, n =
|
|
909
|
-
const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration:
|
|
910
|
-
return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${
|
|
913
|
+
const t = e, n = F(() => {
|
|
914
|
+
const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration: i, transitionTimingFunction: l } = t, c = `overflow:${t.overflowHidden ? "hidden" : "visible"};`;
|
|
915
|
+
return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${c}transition-duration:${i}ms;transition-timing-function:${l};`;
|
|
911
916
|
});
|
|
912
|
-
return (o, s) => (O(),
|
|
913
|
-
style:
|
|
917
|
+
return (o, s) => (O(), oe("main", {
|
|
918
|
+
style: Te(n.value),
|
|
914
919
|
class: "d-layout-content"
|
|
915
920
|
}, [
|
|
916
921
|
j(o.$slots, "default")
|
|
@@ -918,7 +923,7 @@ const tr = {
|
|
|
918
923
|
}
|
|
919
924
|
};
|
|
920
925
|
function cr(e) {
|
|
921
|
-
const t =
|
|
926
|
+
const t = re(0), n = F(() => `transform: translateX(${-t.value}px);`);
|
|
922
927
|
let o = !1;
|
|
923
928
|
function s(d) {
|
|
924
929
|
t.value = d;
|
|
@@ -928,22 +933,22 @@ function cr(e) {
|
|
|
928
933
|
const f = ((d = document.scrollingElement) === null || d === void 0 ? void 0 : d.scrollLeft) || 0;
|
|
929
934
|
s(f);
|
|
930
935
|
}
|
|
931
|
-
function
|
|
936
|
+
function i() {
|
|
932
937
|
r();
|
|
933
938
|
}
|
|
934
939
|
function l() {
|
|
935
940
|
document.addEventListener("scroll", r);
|
|
936
941
|
}
|
|
937
|
-
function
|
|
942
|
+
function c() {
|
|
938
943
|
o && document.removeEventListener("scroll", r);
|
|
939
944
|
}
|
|
940
945
|
function a() {
|
|
941
|
-
|
|
946
|
+
i(), l(), o = !0;
|
|
942
947
|
}
|
|
943
948
|
return st(e, (d) => {
|
|
944
|
-
d ? a() :
|
|
949
|
+
d ? a() : c();
|
|
945
950
|
}, { immediate: !0 }), No(() => {
|
|
946
|
-
|
|
951
|
+
c();
|
|
947
952
|
}), n;
|
|
948
953
|
}
|
|
949
954
|
const lr = 1001, ar = 999, dr = 998, sc = {
|
|
@@ -1037,13 +1042,13 @@ const lr = 1001, ar = 999, dr = 998, sc = {
|
|
|
1037
1042
|
},
|
|
1038
1043
|
emits: ["update:sidebar-collapse", "sidebar-mask-click"],
|
|
1039
1044
|
setup(e, { emit: t }) {
|
|
1040
|
-
const n = e, o =
|
|
1041
|
-
const { transitionDuration: _, transitionTimingFunction:
|
|
1045
|
+
const n = e, o = F(() => n.useMinWidthLayout ? `min-width:${n.minWidth}px;` : ""), s = F(() => n.useMinWidthLayout && (n.fixedHeaderAndTab || n.fixedFooter)), r = cr(s), i = F(() => n.fixedHeaderAndTab ? r.value : ""), l = F(() => n.fixedFooter ? r.value : ""), c = F(() => {
|
|
1046
|
+
const { transitionDuration: _, transitionTimingFunction: z } = n;
|
|
1042
1047
|
return {
|
|
1043
1048
|
transitionDuration: _,
|
|
1044
|
-
transitionTimingFunction:
|
|
1049
|
+
transitionTimingFunction: z
|
|
1045
1050
|
};
|
|
1046
|
-
}), a =
|
|
1051
|
+
}), a = F(() => n.mode === "vertical"), d = F(() => n.isMobile || a.value ? 1003 : 1e3), f = F({
|
|
1047
1052
|
get() {
|
|
1048
1053
|
return n.sidebarCollapse;
|
|
1049
1054
|
},
|
|
@@ -1054,77 +1059,77 @@ const lr = 1001, ar = 999, dr = 998, sc = {
|
|
|
1054
1059
|
function u() {
|
|
1055
1060
|
t("sidebar-mask-click");
|
|
1056
1061
|
}
|
|
1057
|
-
const p =
|
|
1058
|
-
const { transitionDuration: _, transitionTimingFunction:
|
|
1059
|
-
return `background-color:${n.maskBg};transition-duration:${_}ms;transition-timing-function:${
|
|
1060
|
-
}), h =
|
|
1061
|
-
const { sidebarWidth: _, sidebarCollapsedWidth:
|
|
1062
|
+
const p = F(() => n.isMobile && !f.value), y = F(() => {
|
|
1063
|
+
const { transitionDuration: _, transitionTimingFunction: z } = n;
|
|
1064
|
+
return `background-color:${n.maskBg};transition-duration:${_}ms;transition-timing-function:${z};`;
|
|
1065
|
+
}), h = F(() => {
|
|
1066
|
+
const { sidebarWidth: _, sidebarCollapsedWidth: z } = n, N = n.isMobile ? 0 : z, P = f.value ? N : _;
|
|
1062
1067
|
return n.sidebarVisible ? P : 0;
|
|
1063
|
-
}), w =
|
|
1068
|
+
}), w = F(() => n.isMobile ? 0 : h.value), D = F(() => a.value ? w.value : 0), m = F(
|
|
1064
1069
|
() => !n.isMobile && !a.value && n.headerVisible ? n.headerHeight : 0
|
|
1065
|
-
), g =
|
|
1070
|
+
), g = F(() => {
|
|
1066
1071
|
let _ = 0;
|
|
1067
1072
|
return n.fixedHeaderAndTab && (n.headerVisible && (_ += n.headerHeight), n.tabVisible && (_ += n.tabHeight)), _;
|
|
1068
|
-
}), S =
|
|
1069
|
-
return (_,
|
|
1073
|
+
}), S = F(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
|
|
1074
|
+
return (_, z) => (O(), oe("div", {
|
|
1070
1075
|
class: "d-layout",
|
|
1071
|
-
style:
|
|
1076
|
+
style: Te(o.value)
|
|
1072
1077
|
}, [
|
|
1073
|
-
e.headerVisible ? (O(),
|
|
1078
|
+
e.headerVisible ? (O(), Q(nr, Ct({ key: 0 }, c.value, {
|
|
1074
1079
|
fixed: e.fixedHeaderAndTab,
|
|
1075
1080
|
"z-index": lr,
|
|
1076
1081
|
"min-width": e.minWidth,
|
|
1077
1082
|
height: e.headerHeight,
|
|
1078
1083
|
"padding-left": D.value,
|
|
1079
|
-
style:
|
|
1084
|
+
style: i.value
|
|
1080
1085
|
}), {
|
|
1081
|
-
default:
|
|
1086
|
+
default: se(() => [
|
|
1082
1087
|
j(_.$slots, "header")
|
|
1083
1088
|
]),
|
|
1084
1089
|
_: 3
|
|
1085
1090
|
}, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : ue("", !0),
|
|
1086
|
-
e.tabVisible ? (O(),
|
|
1091
|
+
e.tabVisible ? (O(), Q(or, Ct({ key: 1 }, c.value, {
|
|
1087
1092
|
fixed: e.fixedHeaderAndTab,
|
|
1088
1093
|
"z-index": ar,
|
|
1089
1094
|
"min-width": e.minWidth,
|
|
1090
1095
|
top: e.headerHeight,
|
|
1091
1096
|
height: e.tabHeight,
|
|
1092
1097
|
"padding-left": w.value,
|
|
1093
|
-
style:
|
|
1098
|
+
style: i.value
|
|
1094
1099
|
}), {
|
|
1095
|
-
default:
|
|
1100
|
+
default: se(() => [
|
|
1096
1101
|
j(_.$slots, "tab")
|
|
1097
1102
|
]),
|
|
1098
1103
|
_: 3
|
|
1099
1104
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : ue("", !0),
|
|
1100
|
-
e.sidebarVisible ? (O(),
|
|
1105
|
+
e.sidebarVisible ? (O(), Q(rr, Ct({ key: 2 }, c.value, {
|
|
1101
1106
|
"z-index": d.value,
|
|
1102
1107
|
width: h.value,
|
|
1103
1108
|
"padding-top": m.value
|
|
1104
1109
|
}), {
|
|
1105
|
-
default:
|
|
1110
|
+
default: se(() => [
|
|
1106
1111
|
j(_.$slots, "sidebar")
|
|
1107
1112
|
]),
|
|
1108
1113
|
_: 3
|
|
1109
1114
|
}, 16, ["z-index", "width", "padding-top"])) : ue("", !0),
|
|
1110
|
-
p.value ? (O(),
|
|
1115
|
+
p.value ? (O(), oe("div", {
|
|
1111
1116
|
key: 3,
|
|
1112
1117
|
class: "d-layout-sidebar-mask",
|
|
1113
|
-
style:
|
|
1118
|
+
style: Te(y.value),
|
|
1114
1119
|
onClick: u
|
|
1115
1120
|
}, null, 4)) : ue("", !0),
|
|
1116
|
-
ct(ir, Ct(
|
|
1121
|
+
ct(ir, Ct(c.value, {
|
|
1117
1122
|
"padding-top": g.value,
|
|
1118
1123
|
"padding-bottom": S.value,
|
|
1119
1124
|
"padding-left": w.value,
|
|
1120
1125
|
"overflow-hidden": e.addMainOverflowHidden
|
|
1121
1126
|
}), {
|
|
1122
|
-
default:
|
|
1127
|
+
default: se(() => [
|
|
1123
1128
|
j(_.$slots, "default")
|
|
1124
1129
|
]),
|
|
1125
1130
|
_: 3
|
|
1126
1131
|
}, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
|
|
1127
|
-
e.footerVisible ? (O(),
|
|
1132
|
+
e.footerVisible ? (O(), Q(sr, Ct({ key: 4 }, c.value, {
|
|
1128
1133
|
fixed: e.fixedFooter,
|
|
1129
1134
|
"z-index": dr,
|
|
1130
1135
|
"min-width": e.minWidth,
|
|
@@ -1132,7 +1137,7 @@ const lr = 1001, ar = 999, dr = 998, sc = {
|
|
|
1132
1137
|
"padding-left": w.value,
|
|
1133
1138
|
style: l.value
|
|
1134
1139
|
}), {
|
|
1135
|
-
default:
|
|
1140
|
+
default: se(() => [
|
|
1136
1141
|
j(_.$slots, "footer")
|
|
1137
1142
|
]),
|
|
1138
1143
|
_: 3
|
|
@@ -1181,7 +1186,7 @@ const lr = 1001, ar = 999, dr = 998, sc = {
|
|
|
1181
1186
|
* Released under the MIT license.
|
|
1182
1187
|
*/
|
|
1183
1188
|
function Y(e, t) {
|
|
1184
|
-
if (
|
|
1189
|
+
if (sn(e))
|
|
1185
1190
|
for (let n = 0; n < e.length && t(e[n], n, e) !== !1; n++)
|
|
1186
1191
|
;
|
|
1187
1192
|
else
|
|
@@ -1190,64 +1195,64 @@ function Y(e, t) {
|
|
|
1190
1195
|
}
|
|
1191
1196
|
function he(e, t) {
|
|
1192
1197
|
const n = lt(t);
|
|
1193
|
-
if (
|
|
1198
|
+
if (ke(t) || n) {
|
|
1194
1199
|
let s = n ? "" : {};
|
|
1195
1200
|
if (e) {
|
|
1196
1201
|
const r = window.getComputedStyle(e, null);
|
|
1197
|
-
s = n ? co(e, r, t) : t.reduce((
|
|
1202
|
+
s = n ? co(e, r, t) : t.reduce((i, l) => (i[l] = co(e, r, l), i), s);
|
|
1198
1203
|
}
|
|
1199
1204
|
return s;
|
|
1200
1205
|
}
|
|
1201
|
-
e && Y(xe(t), (s) =>
|
|
1206
|
+
e && Y(xe(t), (s) => Tr(e, s, t[s]));
|
|
1202
1207
|
}
|
|
1203
1208
|
const Ee = (e, t) => {
|
|
1204
1209
|
const { o: n, u: o, _: s } = e;
|
|
1205
|
-
let r = n,
|
|
1210
|
+
let r = n, i;
|
|
1206
1211
|
const l = (d, f) => {
|
|
1207
1212
|
const u = r, p = d, y = f || (o ? !o(u, p) : u !== p);
|
|
1208
|
-
return (y || s) && (r = p,
|
|
1213
|
+
return (y || s) && (r = p, i = u), [r, y, i];
|
|
1209
1214
|
};
|
|
1210
|
-
return [t ? (d) => l(t(r,
|
|
1211
|
-
}, zt = () => typeof window < "u", Vo = zt() && Node.ELEMENT_NODE, { toString: ur, hasOwnProperty:
|
|
1215
|
+
return [t ? (d) => l(t(r, i), d) : l, (d) => [r, !!d, i]];
|
|
1216
|
+
}, zt = () => typeof window < "u", Vo = zt() && Node.ELEMENT_NODE, { toString: ur, hasOwnProperty: hn } = Object.prototype, Ge = (e) => e === void 0, on = (e) => e === null, fr = (e) => Ge(e) || on(e) ? `${e}` : ur.call(e).replace(/^\[object (.+)\]$/, "$1").toLowerCase(), it = (e) => typeof e == "number", lt = (e) => typeof e == "string", Rn = (e) => typeof e == "boolean", ze = (e) => typeof e == "function", ke = (e) => Array.isArray(e), Et = (e) => typeof e == "object" && !ke(e) && !on(e), sn = (e) => {
|
|
1212
1217
|
const t = !!e && e.length, n = it(t) && t > -1 && t % 1 == 0;
|
|
1213
|
-
return
|
|
1214
|
-
},
|
|
1218
|
+
return ke(e) || !ze(e) && n ? t > 0 && Et(e) ? t - 1 in e : !0 : !1;
|
|
1219
|
+
}, Tn = (e) => {
|
|
1215
1220
|
if (!e || !Et(e) || fr(e) !== "object")
|
|
1216
1221
|
return !1;
|
|
1217
1222
|
let t;
|
|
1218
|
-
const n = "constructor", o = e[n], s = o && o.prototype, r =
|
|
1219
|
-
if (o && !r && !
|
|
1223
|
+
const n = "constructor", o = e[n], s = o && o.prototype, r = hn.call(e, n), i = s && hn.call(s, "isPrototypeOf");
|
|
1224
|
+
if (o && !r && !i)
|
|
1220
1225
|
return !1;
|
|
1221
1226
|
for (t in e)
|
|
1222
1227
|
;
|
|
1223
|
-
return Ge(t) ||
|
|
1228
|
+
return Ge(t) || hn.call(e, t);
|
|
1224
1229
|
}, Ot = (e) => {
|
|
1225
1230
|
const t = HTMLElement;
|
|
1226
1231
|
return e ? t ? e instanceof t : e.nodeType === Vo : !1;
|
|
1227
|
-
},
|
|
1232
|
+
}, rn = (e) => {
|
|
1228
1233
|
const t = Element;
|
|
1229
1234
|
return e ? t ? e instanceof t : e.nodeType === Vo : !1;
|
|
1230
|
-
}, Wn = (e, t, n) => e.indexOf(t, n), ee = (e, t, n) => (!n && !lt(t) &&
|
|
1235
|
+
}, Wn = (e, t, n) => e.indexOf(t, n), ee = (e, t, n) => (!n && !lt(t) && sn(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), gt = (e) => {
|
|
1231
1236
|
const t = Array.from, n = [];
|
|
1232
1237
|
return t && e ? t(e) : (e instanceof Set ? e.forEach((o) => {
|
|
1233
1238
|
ee(n, o);
|
|
1234
1239
|
}) : Y(e, (o) => {
|
|
1235
1240
|
ee(n, o);
|
|
1236
1241
|
}), n);
|
|
1237
|
-
}, Vn = (e) => !!e && e.length === 0,
|
|
1242
|
+
}, Vn = (e) => !!e && e.length === 0, Fe = (e, t, n) => {
|
|
1238
1243
|
Y(e, (s) => s && s.apply(void 0, t || [])), !n && (e.length = 0);
|
|
1239
|
-
},
|
|
1240
|
-
const l = [t, n, o, s, r,
|
|
1241
|
-
return (typeof e != "object" ||
|
|
1242
|
-
Y(xe(
|
|
1243
|
-
const d =
|
|
1244
|
+
}, cn = (e, t) => Object.prototype.hasOwnProperty.call(e, t), xe = (e) => e ? Object.keys(e) : [], ce = (e, t, n, o, s, r, i) => {
|
|
1245
|
+
const l = [t, n, o, s, r, i];
|
|
1246
|
+
return (typeof e != "object" || on(e)) && !ze(e) && (e = {}), Y(l, (c) => {
|
|
1247
|
+
Y(xe(c), (a) => {
|
|
1248
|
+
const d = c[a];
|
|
1244
1249
|
if (e === d)
|
|
1245
1250
|
return !0;
|
|
1246
|
-
const f =
|
|
1247
|
-
if (d && (
|
|
1251
|
+
const f = ke(d);
|
|
1252
|
+
if (d && (Tn(d) || f)) {
|
|
1248
1253
|
const u = e[a];
|
|
1249
1254
|
let p = u;
|
|
1250
|
-
f && !
|
|
1255
|
+
f && !ke(u) ? p = [] : !f && !Tn(u) && (p = {}), e[a] = ce(p, d);
|
|
1251
1256
|
} else
|
|
1252
1257
|
e[a] = d;
|
|
1253
1258
|
});
|
|
@@ -1270,25 +1275,25 @@ const Ee = (e, t) => {
|
|
|
1270
1275
|
if (n) {
|
|
1271
1276
|
const s = ge(e, t) || "", r = new Set(s.split(" "));
|
|
1272
1277
|
r[o ? "add" : "delete"](n);
|
|
1273
|
-
const
|
|
1274
|
-
ge(e, t,
|
|
1278
|
+
const i = gt(r).join(" ").trim();
|
|
1279
|
+
ge(e, t, i);
|
|
1275
1280
|
}
|
|
1276
1281
|
}, pr = (e, t, n) => {
|
|
1277
1282
|
const o = ge(e, t) || "";
|
|
1278
1283
|
return new Set(o.split(" ")).has(n);
|
|
1279
1284
|
}, Le = (e, t) => Uo("scrollLeft", 0, e, t), qe = (e, t) => Uo("scrollTop", 0, e, t), kn = zt() && Element.prototype, Yo = (e, t) => {
|
|
1280
|
-
const n = [], o = t ?
|
|
1285
|
+
const n = [], o = t ? rn(t) ? t : null : document;
|
|
1281
1286
|
return o ? ee(n, o.querySelectorAll(e)) : n;
|
|
1282
1287
|
}, mr = (e, t) => {
|
|
1283
|
-
const n = t ?
|
|
1288
|
+
const n = t ? rn(t) ? t : null : document;
|
|
1284
1289
|
return n ? n.querySelector(e) : null;
|
|
1285
|
-
},
|
|
1286
|
-
if (
|
|
1290
|
+
}, Jt = (e, t) => rn(e) ? (kn.matches || kn.msMatchesSelector).call(e, t) : !1, Yn = (e) => e ? gt(e.childNodes) : [], Xe = (e) => e ? e.parentElement : null, bt = (e, t) => {
|
|
1291
|
+
if (rn(e)) {
|
|
1287
1292
|
const n = kn.closest;
|
|
1288
1293
|
if (n)
|
|
1289
1294
|
return n.call(e, t);
|
|
1290
1295
|
do {
|
|
1291
|
-
if (
|
|
1296
|
+
if (Jt(e, t))
|
|
1292
1297
|
return e;
|
|
1293
1298
|
e = Xe(e);
|
|
1294
1299
|
} while (e);
|
|
@@ -1300,7 +1305,7 @@ const Ee = (e, t) => {
|
|
|
1300
1305
|
}, qn = (e, t, n) => {
|
|
1301
1306
|
if (n && e) {
|
|
1302
1307
|
let o = t, s;
|
|
1303
|
-
|
|
1308
|
+
sn(n) ? (s = document.createDocumentFragment(), Y(n, (r) => {
|
|
1304
1309
|
r === o && (o = r.previousSibling), s.appendChild(r);
|
|
1305
1310
|
})) : s = n, t && (o ? o !== t && (o = o.nextSibling) : o = e.firstChild), e.insertBefore(s, o || null);
|
|
1306
1311
|
}
|
|
@@ -1311,7 +1316,7 @@ const Ee = (e, t) => {
|
|
|
1311
1316
|
}, so = (e, t) => {
|
|
1312
1317
|
qn(Xe(e), e && e.nextSibling, t);
|
|
1313
1318
|
}, Pe = (e) => {
|
|
1314
|
-
if (
|
|
1319
|
+
if (sn(e))
|
|
1315
1320
|
Y(gt(e), (t) => Pe(t));
|
|
1316
1321
|
else if (e) {
|
|
1317
1322
|
const t = Xe(e);
|
|
@@ -1323,60 +1328,60 @@ const Ee = (e, t) => {
|
|
|
1323
1328
|
}, qo = (e) => {
|
|
1324
1329
|
const t = pt();
|
|
1325
1330
|
return t.innerHTML = e.trim(), Y(Yn(t), (n) => Pe(n));
|
|
1326
|
-
},
|
|
1327
|
-
let t =
|
|
1328
|
-
if (
|
|
1331
|
+
}, Cn = (e) => e.charAt(0).toUpperCase() + e.slice(1), vr = () => pt().style, yr = ["-webkit-", "-moz-", "-o-", "-ms-"], br = ["WebKit", "Moz", "O", "MS", "webkit", "moz", "o", "ms"], vn = {}, yn = {}, wr = (e) => {
|
|
1332
|
+
let t = yn[e];
|
|
1333
|
+
if (cn(yn, e))
|
|
1329
1334
|
return t;
|
|
1330
|
-
const n =
|
|
1335
|
+
const n = Cn(e), o = vr();
|
|
1331
1336
|
return Y(yr, (s) => {
|
|
1332
1337
|
const r = s.replace(/-/g, "");
|
|
1333
|
-
return !(t = [e, s + e, r + n,
|
|
1334
|
-
}),
|
|
1335
|
-
},
|
|
1338
|
+
return !(t = [e, s + e, r + n, Cn(r) + n].find((l) => o[l] !== void 0));
|
|
1339
|
+
}), yn[e] = t || "";
|
|
1340
|
+
}, Tt = (e) => {
|
|
1336
1341
|
if (zt()) {
|
|
1337
|
-
let t =
|
|
1338
|
-
return
|
|
1342
|
+
let t = vn[e] || window[e];
|
|
1343
|
+
return cn(vn, e) || (Y(br, (n) => (t = t || window[n + Cn(e)], !t)), vn[e] = t), t;
|
|
1339
1344
|
}
|
|
1340
|
-
}, _r =
|
|
1345
|
+
}, _r = Tt("MutationObserver"), ro = Tt("IntersectionObserver"), wt = Tt("ResizeObserver"), jo = Tt("cancelAnimationFrame"), Xo = Tt("requestAnimationFrame"), In = Tt("ScrollTimeline"), Qt = zt() && window.setTimeout, On = zt() && window.clearTimeout, Sr = /[^\x20\t\r\n\f]+/g, Go = (e, t, n) => {
|
|
1341
1346
|
const o = e && e.classList;
|
|
1342
|
-
let s, r = 0,
|
|
1347
|
+
let s, r = 0, i = !1;
|
|
1343
1348
|
if (o && t && lt(t)) {
|
|
1344
1349
|
const l = t.match(Sr) || [];
|
|
1345
|
-
for (
|
|
1346
|
-
|
|
1350
|
+
for (i = l.length > 0; s = l[r++]; )
|
|
1351
|
+
i = !!n(o, s) && i;
|
|
1347
1352
|
}
|
|
1348
|
-
return
|
|
1353
|
+
return i;
|
|
1349
1354
|
}, jn = (e, t) => {
|
|
1350
1355
|
Go(e, t, (n, o) => n.remove(o));
|
|
1351
|
-
}, je = (e, t) => (Go(e, t, (n, o) => n.add(o)), jn.bind(0, e, t)),
|
|
1356
|
+
}, je = (e, t) => (Go(e, t, (n, o) => n.add(o)), jn.bind(0, e, t)), ln = (e, t, n, o) => {
|
|
1352
1357
|
if (e && t) {
|
|
1353
1358
|
let s = !0;
|
|
1354
1359
|
return Y(n, (r) => {
|
|
1355
|
-
const
|
|
1356
|
-
|
|
1360
|
+
const i = o ? o(e[r]) : e[r], l = o ? o(t[r]) : t[r];
|
|
1361
|
+
i !== l && (s = !1);
|
|
1357
1362
|
}), s;
|
|
1358
1363
|
}
|
|
1359
1364
|
return !1;
|
|
1360
|
-
}, Ko = (e, t) =>
|
|
1365
|
+
}, Ko = (e, t) => ln(e, t, ["w", "h"]), Zo = (e, t) => ln(e, t, ["x", "y"]), xr = (e, t) => ln(e, t, ["t", "r", "b", "l"]), io = (e, t, n) => ln(e, t, ["width", "height"], n && ((o) => Math.round(o))), Se = () => {
|
|
1361
1366
|
}, ut = (e) => {
|
|
1362
1367
|
let t;
|
|
1363
|
-
const n = e ?
|
|
1368
|
+
const n = e ? Qt : Xo, o = e ? On : jo;
|
|
1364
1369
|
return [(s) => {
|
|
1365
1370
|
o(t), t = n(s, ze(e) ? e() : e);
|
|
1366
1371
|
}, () => o(t)];
|
|
1367
1372
|
}, Xn = (e, t) => {
|
|
1368
1373
|
let n, o, s, r = Se;
|
|
1369
|
-
const { g:
|
|
1370
|
-
r(),
|
|
1371
|
-
}, d = (p) =>
|
|
1374
|
+
const { g: i, v: l, p: c } = t || {}, a = function(y) {
|
|
1375
|
+
r(), On(n), n = o = void 0, r = Se, e.apply(this, y);
|
|
1376
|
+
}, d = (p) => c && o ? c(o, p) : p, f = () => {
|
|
1372
1377
|
r !== Se && a(d(s) || s);
|
|
1373
1378
|
}, u = function() {
|
|
1374
|
-
const y = gt(arguments), h = ze(
|
|
1379
|
+
const y = gt(arguments), h = ze(i) ? i() : i;
|
|
1375
1380
|
if (it(h) && h >= 0) {
|
|
1376
|
-
const D = ze(l) ? l() : l, m = it(D) && D >= 0, g = h > 0 ?
|
|
1381
|
+
const D = ze(l) ? l() : l, m = it(D) && D >= 0, g = h > 0 ? Qt : Xo, S = h > 0 ? On : jo, z = d(y) || y, N = a.bind(0, z);
|
|
1377
1382
|
r();
|
|
1378
|
-
const P = g(
|
|
1379
|
-
r = () => S(P), m && !n && (n =
|
|
1383
|
+
const P = g(N, h);
|
|
1384
|
+
r = () => S(P), m && !n && (n = Qt(f, D)), o = s = z;
|
|
1380
1385
|
} else
|
|
1381
1386
|
a(y);
|
|
1382
1387
|
};
|
|
@@ -1384,24 +1389,24 @@ const Ee = (e, t) => {
|
|
|
1384
1389
|
}, $r = {
|
|
1385
1390
|
opacity: 1,
|
|
1386
1391
|
zIndex: 1
|
|
1387
|
-
},
|
|
1392
|
+
}, Ft = (e, t) => {
|
|
1388
1393
|
const n = e || "", o = t ? parseFloat(n) : parseInt(n, 10);
|
|
1389
1394
|
return o === o ? o : 0;
|
|
1390
|
-
}, Dr = (e, t) => !$r[e] && it(t) ? `${t}px` : t, co = (e, t, n) => String((t != null ? t[n] || t.getPropertyValue(n) : e.style[n]) || ""),
|
|
1395
|
+
}, Dr = (e, t) => !$r[e] && it(t) ? `${t}px` : t, co = (e, t, n) => String((t != null ? t[n] || t.getPropertyValue(n) : e.style[n]) || ""), Tr = (e, t, n) => {
|
|
1391
1396
|
try {
|
|
1392
1397
|
const { style: o } = e;
|
|
1393
1398
|
Ge(o[t]) ? o.setProperty(t, n) : o[t] = Dr(t, n);
|
|
1394
1399
|
} catch {
|
|
1395
1400
|
}
|
|
1396
1401
|
}, Bt = (e) => he(e, "direction") === "rtl", lo = (e, t, n) => {
|
|
1397
|
-
const o = t ? `${t}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`,
|
|
1402
|
+
const o = t ? `${t}-` : "", s = n ? `-${n}` : "", r = `${o}top${s}`, i = `${o}right${s}`, l = `${o}bottom${s}`, c = `${o}left${s}`, a = he(e, [r, i, l, c]);
|
|
1398
1403
|
return {
|
|
1399
|
-
t:
|
|
1400
|
-
r:
|
|
1401
|
-
b:
|
|
1402
|
-
l:
|
|
1404
|
+
t: Ft(a[r], !0),
|
|
1405
|
+
r: Ft(a[i], !0),
|
|
1406
|
+
b: Ft(a[l], !0),
|
|
1407
|
+
l: Ft(a[c], !0)
|
|
1403
1408
|
};
|
|
1404
|
-
}, $t = (e, t) => `translate${
|
|
1409
|
+
}, $t = (e, t) => `translate${ke(e) ? `(${e[0]},${e[1]})` : `${t ? "X" : "Y"}(${e})`}`, { round: ao } = Math, Gn = {
|
|
1405
1410
|
w: 0,
|
|
1406
1411
|
h: 0
|
|
1407
1412
|
}, Lt = (e) => e ? {
|
|
@@ -1410,85 +1415,85 @@ const Ee = (e, t) => {
|
|
|
1410
1415
|
} : Gn, jt = (e) => e ? {
|
|
1411
1416
|
w: e.clientWidth,
|
|
1412
1417
|
h: e.clientHeight
|
|
1413
|
-
} : Gn,
|
|
1418
|
+
} : Gn, en = (e) => e ? {
|
|
1414
1419
|
w: e.scrollWidth,
|
|
1415
1420
|
h: e.scrollHeight
|
|
1416
|
-
} : Gn,
|
|
1421
|
+
} : Gn, tn = (e) => {
|
|
1417
1422
|
const t = parseFloat(he(e, "height")) || 0, n = parseFloat(he(e, "width")) || 0;
|
|
1418
1423
|
return {
|
|
1419
1424
|
w: n - ao(n),
|
|
1420
1425
|
h: t - ao(t)
|
|
1421
1426
|
};
|
|
1422
1427
|
}, Me = (e) => e.getBoundingClientRect(), _t = (e) => !!(e && (e.height || e.width));
|
|
1423
|
-
let
|
|
1424
|
-
const
|
|
1425
|
-
if (Ge(
|
|
1426
|
-
|
|
1428
|
+
let Rt;
|
|
1429
|
+
const kr = () => {
|
|
1430
|
+
if (Ge(Rt)) {
|
|
1431
|
+
Rt = !1;
|
|
1427
1432
|
try {
|
|
1428
1433
|
window.addEventListener("test", null, Object.defineProperty({}, "passive", {
|
|
1429
1434
|
get() {
|
|
1430
|
-
|
|
1435
|
+
Rt = !0;
|
|
1431
1436
|
}
|
|
1432
1437
|
}));
|
|
1433
1438
|
} catch {
|
|
1434
1439
|
}
|
|
1435
1440
|
}
|
|
1436
|
-
return
|
|
1441
|
+
return Rt;
|
|
1437
1442
|
}, Jo = (e) => e.split(" "), Cr = (e, t, n, o) => {
|
|
1438
1443
|
Y(Jo(t), (s) => {
|
|
1439
1444
|
e.removeEventListener(s, n, o);
|
|
1440
1445
|
});
|
|
1441
1446
|
}, de = (e, t, n, o) => {
|
|
1442
1447
|
var s;
|
|
1443
|
-
const r =
|
|
1444
|
-
passive:
|
|
1448
|
+
const r = kr(), i = (s = r && o && o.S) != null ? s : r, l = o && o.$ || !1, c = o && o.C || !1, a = [], d = r ? {
|
|
1449
|
+
passive: i,
|
|
1445
1450
|
capture: l
|
|
1446
1451
|
} : l;
|
|
1447
1452
|
return Y(Jo(t), (f) => {
|
|
1448
|
-
const u =
|
|
1453
|
+
const u = c ? (p) => {
|
|
1449
1454
|
e.removeEventListener(f, u, l), n && n(p);
|
|
1450
1455
|
} : n;
|
|
1451
1456
|
ee(a, Cr.bind(null, e, f, u, l)), e.addEventListener(f, u, d);
|
|
1452
|
-
}),
|
|
1457
|
+
}), Fe.bind(0, a);
|
|
1453
1458
|
}, Qo = (e) => e.stopPropagation(), es = (e) => e.preventDefault(), Ir = {
|
|
1454
1459
|
x: 0,
|
|
1455
1460
|
y: 0
|
|
1456
|
-
},
|
|
1461
|
+
}, bn = (e) => {
|
|
1457
1462
|
const t = e ? Me(e) : 0;
|
|
1458
1463
|
return t ? {
|
|
1459
1464
|
x: t.left + window.pageYOffset,
|
|
1460
1465
|
y: t.top + window.pageXOffset
|
|
1461
1466
|
} : Ir;
|
|
1462
1467
|
}, uo = (e, t) => {
|
|
1463
|
-
Y(
|
|
1468
|
+
Y(ke(t) ? t : [t], e);
|
|
1464
1469
|
}, Kn = (e) => {
|
|
1465
|
-
const t = /* @__PURE__ */ new Map(), n = (r,
|
|
1470
|
+
const t = /* @__PURE__ */ new Map(), n = (r, i) => {
|
|
1466
1471
|
if (r) {
|
|
1467
1472
|
const l = t.get(r);
|
|
1468
|
-
uo((
|
|
1469
|
-
l && l[
|
|
1470
|
-
},
|
|
1473
|
+
uo((c) => {
|
|
1474
|
+
l && l[c ? "delete" : "clear"](c);
|
|
1475
|
+
}, i);
|
|
1471
1476
|
} else
|
|
1472
1477
|
t.forEach((l) => {
|
|
1473
1478
|
l.clear();
|
|
1474
1479
|
}), t.clear();
|
|
1475
|
-
}, o = (r,
|
|
1480
|
+
}, o = (r, i) => {
|
|
1476
1481
|
if (lt(r)) {
|
|
1477
1482
|
const a = t.get(r) || /* @__PURE__ */ new Set();
|
|
1478
1483
|
return t.set(r, a), uo((d) => {
|
|
1479
1484
|
ze(d) && a.add(d);
|
|
1480
|
-
},
|
|
1485
|
+
}, i), n.bind(0, r, i);
|
|
1481
1486
|
}
|
|
1482
|
-
|
|
1483
|
-
const l = xe(r),
|
|
1487
|
+
Rn(i) && i && n();
|
|
1488
|
+
const l = xe(r), c = [];
|
|
1484
1489
|
return Y(l, (a) => {
|
|
1485
1490
|
const d = r[a];
|
|
1486
|
-
d && ee(
|
|
1487
|
-
}),
|
|
1488
|
-
}, s = (r,
|
|
1491
|
+
d && ee(c, o(a, d));
|
|
1492
|
+
}), Fe.bind(0, c);
|
|
1493
|
+
}, s = (r, i) => {
|
|
1489
1494
|
const l = t.get(r);
|
|
1490
|
-
Y(gt(l), (
|
|
1491
|
-
|
|
1495
|
+
Y(gt(l), (c) => {
|
|
1496
|
+
i && !Vn(i) ? c.apply(0, i) : c();
|
|
1492
1497
|
});
|
|
1493
1498
|
};
|
|
1494
1499
|
return o(e || {}), [o, n, s];
|
|
@@ -1522,35 +1527,35 @@ const Tr = () => {
|
|
|
1522
1527
|
}, ts = (e, t) => {
|
|
1523
1528
|
const n = {}, o = xe(t).concat(xe(e));
|
|
1524
1529
|
return Y(o, (s) => {
|
|
1525
|
-
const r = e[s],
|
|
1526
|
-
if (Et(r) && Et(
|
|
1527
|
-
ce(n[s] = {}, ts(r,
|
|
1528
|
-
else if (
|
|
1530
|
+
const r = e[s], i = t[s];
|
|
1531
|
+
if (Et(r) && Et(i))
|
|
1532
|
+
ce(n[s] = {}, ts(r, i)), Un(n[s]) && delete n[s];
|
|
1533
|
+
else if (cn(t, s) && i !== r) {
|
|
1529
1534
|
let l = !0;
|
|
1530
|
-
if (
|
|
1535
|
+
if (ke(r) || ke(i))
|
|
1531
1536
|
try {
|
|
1532
|
-
fo(r) === fo(
|
|
1537
|
+
fo(r) === fo(i) && (l = !1);
|
|
1533
1538
|
} catch {
|
|
1534
1539
|
}
|
|
1535
|
-
l && (n[s] =
|
|
1540
|
+
l && (n[s] = i);
|
|
1536
1541
|
}
|
|
1537
1542
|
}), n;
|
|
1538
|
-
}, Nt = "data-overlayscrollbars", ns = "os-environment", os = `${ns}-flexbox-glue`, Er = `${os}-max`, ss = "os-scrollbar-hidden",
|
|
1543
|
+
}, Nt = "data-overlayscrollbars", ns = "os-environment", os = `${ns}-flexbox-glue`, Er = `${os}-max`, ss = "os-scrollbar-hidden", wn = `${Nt}-initialize`, Be = Nt, rs = `${Be}-overflow-x`, is = `${Be}-overflow-y`, St = "overflowVisible", Br = "scrollbarHidden", po = "scrollbarPressed", nn = "updating", Je = `${Nt}-viewport`, _n = "arrange", cs = "scrollbarHidden", xt = St, En = `${Nt}-padding`, Lr = xt, mo = `${Nt}-content`, Zn = "os-size-observer", zr = `${Zn}-appear`, Nr = `${Zn}-listener`, Hr = "os-trinsic-observer", Ar = "os-no-css-vars", Mr = "os-theme-none", we = "os-scrollbar", Pr = `${we}-rtl`, Fr = `${we}-horizontal`, Rr = `${we}-vertical`, ls = `${we}-track`, Jn = `${we}-handle`, Wr = `${we}-visible`, Vr = `${we}-cornerless`, go = `${we}-transitionless`, ho = `${we}-interaction`, vo = `${we}-unusable`, Bn = `${we}-auto-hide`, yo = `${Bn}-hidden`, bo = `${we}-wheel`, Ur = `${ls}-interactive`, Yr = `${Jn}-interactive`, as = {}, ht = () => as, qr = (e) => {
|
|
1539
1544
|
const t = [];
|
|
1540
|
-
return Y(
|
|
1545
|
+
return Y(ke(e) ? e : [e], (n) => {
|
|
1541
1546
|
const o = xe(n);
|
|
1542
1547
|
Y(o, (s) => {
|
|
1543
1548
|
ee(t, as[s] = n[s]);
|
|
1544
1549
|
});
|
|
1545
1550
|
}), t;
|
|
1546
1551
|
}, jr = "__osOptionsValidationPlugin", Xr = "__osSizeObserverPlugin", Qn = "__osScrollbarsHidingPlugin", Gr = "__osClickScrollPlugin";
|
|
1547
|
-
let
|
|
1552
|
+
let Sn;
|
|
1548
1553
|
const wo = (e, t, n, o) => {
|
|
1549
1554
|
De(e, t);
|
|
1550
|
-
const s = jt(t), r = Lt(t),
|
|
1555
|
+
const s = jt(t), r = Lt(t), i = tn(n);
|
|
1551
1556
|
return o && Pe(t), {
|
|
1552
|
-
x: r.h - s.h +
|
|
1553
|
-
y: r.w - s.w +
|
|
1557
|
+
x: r.h - s.h + i.h,
|
|
1558
|
+
y: r.w - s.w + i.w
|
|
1554
1559
|
};
|
|
1555
1560
|
}, Kr = (e) => {
|
|
1556
1561
|
let t = !1;
|
|
@@ -1567,23 +1572,23 @@ const wo = (e, t, n, o) => {
|
|
|
1567
1572
|
overflowY: n,
|
|
1568
1573
|
direction: "rtl"
|
|
1569
1574
|
}), Le(e, 0);
|
|
1570
|
-
const o =
|
|
1575
|
+
const o = bn(e), s = bn(t);
|
|
1571
1576
|
Le(e, -999);
|
|
1572
|
-
const r =
|
|
1577
|
+
const r = bn(t);
|
|
1573
1578
|
return {
|
|
1574
1579
|
i: o.x === s.x,
|
|
1575
1580
|
n: s.x !== r.x
|
|
1576
1581
|
};
|
|
1577
1582
|
}, Jr = (e, t) => {
|
|
1578
|
-
const n = je(e, os), o = Me(e), s = Me(t), r = io(s, o, !0),
|
|
1579
|
-
return n(),
|
|
1583
|
+
const n = je(e, os), o = Me(e), s = Me(t), r = io(s, o, !0), i = je(e, Er), l = Me(e), c = Me(t), a = io(c, l, !0);
|
|
1584
|
+
return n(), i(), r && a;
|
|
1580
1585
|
}, Qr = () => {
|
|
1581
|
-
const { body: e } = document, n = qo(`<div class="${ns}"><div></div></div>`)[0], o = n.firstChild, [s, , r] = Kn(), [
|
|
1586
|
+
const { body: e } = document, n = qo(`<div class="${ns}"><div></div></div>`)[0], o = n.firstChild, [s, , r] = Kn(), [i, l] = Ee({
|
|
1582
1587
|
o: wo(e, n, o),
|
|
1583
1588
|
u: Zo
|
|
1584
|
-
}, wo.bind(0, e, n, o, !0)), [
|
|
1585
|
-
x:
|
|
1586
|
-
y:
|
|
1589
|
+
}, wo.bind(0, e, n, o, !0)), [c] = l(), a = Kr(n), d = {
|
|
1590
|
+
x: c.x === 0,
|
|
1591
|
+
y: c.y === 0
|
|
1587
1592
|
}, f = {
|
|
1588
1593
|
elements: {
|
|
1589
1594
|
host: null,
|
|
@@ -1599,11 +1604,11 @@ const wo = (e, t, n, o) => {
|
|
|
1599
1604
|
body: null
|
|
1600
1605
|
}
|
|
1601
1606
|
}, u = ce({}, Or), p = ce.bind(0, {}, u), y = ce.bind(0, {}, f), h = {
|
|
1602
|
-
k:
|
|
1607
|
+
k: c,
|
|
1603
1608
|
I: d,
|
|
1604
1609
|
A: a,
|
|
1605
1610
|
H: he(n, "zIndex") === "-1",
|
|
1606
|
-
B: !!
|
|
1611
|
+
B: !!In,
|
|
1607
1612
|
V: Zr(n, o),
|
|
1608
1613
|
Y: Jr(n, o),
|
|
1609
1614
|
j: s.bind(0, "z"),
|
|
@@ -1622,64 +1627,64 @@ const wo = (e, t, n, o) => {
|
|
|
1622
1627
|
let m;
|
|
1623
1628
|
w("resize", () => {
|
|
1624
1629
|
const g = ht()[Qn];
|
|
1625
|
-
m = m || g && g.R(), m && m(h,
|
|
1630
|
+
m = m || g && g.R(), m && m(h, i, D.bind(0, !0));
|
|
1626
1631
|
});
|
|
1627
1632
|
}
|
|
1628
1633
|
return h;
|
|
1629
|
-
}, _e = () => (
|
|
1634
|
+
}, _e = () => (Sn || (Sn = Qr()), Sn), eo = (e, t) => ze(t) ? t.apply(0, e) : t, ei = (e, t, n, o) => {
|
|
1630
1635
|
const s = Ge(o) ? n : o;
|
|
1631
1636
|
return eo(e, s) || t.apply(0, e);
|
|
1632
1637
|
}, ds = (e, t, n, o) => {
|
|
1633
1638
|
const s = Ge(o) ? n : o, r = eo(e, s);
|
|
1634
1639
|
return !!r && (Ot(r) ? r : t.apply(0, e));
|
|
1635
1640
|
}, ti = (e, t, n) => {
|
|
1636
|
-
const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A:
|
|
1641
|
+
const { nativeScrollbarsOverlaid: o, body: s } = n || {}, { I: r, A: i } = _e(), { nativeScrollbarsOverlaid: l, body: c } = t, a = o ?? l, d = Ge(s) ? c : s, f = (r.x || r.y) && a, u = e && (on(d) ? !i : d);
|
|
1637
1642
|
return !!f || !!u;
|
|
1638
1643
|
}, to = /* @__PURE__ */ new WeakMap(), ni = (e, t) => {
|
|
1639
1644
|
to.set(e, t);
|
|
1640
1645
|
}, oi = (e) => {
|
|
1641
1646
|
to.delete(e);
|
|
1642
|
-
}, us = (e) => to.get(e), _o = (e, t) => e ? t.split(".").reduce((n, o) => n &&
|
|
1647
|
+
}, us = (e) => to.get(e), _o = (e, t) => e ? t.split(".").reduce((n, o) => n && cn(n, o) ? n[o] : void 0, e) : void 0, Ln = (e, t, n) => (o) => [_o(e, o), n || _o(t, o) !== void 0], fs = (e) => {
|
|
1643
1648
|
let t = e;
|
|
1644
1649
|
return [() => t, (n) => {
|
|
1645
1650
|
t = ce({}, t, n);
|
|
1646
1651
|
}];
|
|
1647
|
-
}, Wt = "tabindex", Vt = pt.bind(0, ""),
|
|
1652
|
+
}, Wt = "tabindex", Vt = pt.bind(0, ""), xn = (e) => {
|
|
1648
1653
|
De(Xe(e), Yn(e)), Pe(e);
|
|
1649
1654
|
}, si = (e) => {
|
|
1650
|
-
const t = _e(), { q: n, A: o } = t, s = ht()[Qn], r = s && s.T, { elements:
|
|
1655
|
+
const t = _e(), { q: n, A: o } = t, s = ht()[Qn], r = s && s.T, { elements: i } = n(), { host: l, padding: c, viewport: a, content: d } = i, f = Ot(e), u = f ? {} : e, { elements: p } = u, { host: y, padding: h, viewport: w, content: D } = p || {}, m = f ? e : u.target, g = Jt(m, "textarea"), S = m.ownerDocument, _ = S.documentElement, z = m === S.body, N = S.defaultView, P = ei.bind(0, [m]), W = ds.bind(0, [m]), ie = eo.bind(0, [m]), q = P.bind(0, Vt, a), R = W.bind(0, Vt, d), b = q(w), v = b === m, x = v && z, T = !v && R(D), H = !v && Ot(b) && b === T, B = H && !!ie(d), k = B ? q() : b, E = B ? T : R(), U = x ? _ : H ? k : b, K = g ? P(Vt, l, y) : m, $ = x ? U : K, C = H ? E : T, I = S.activeElement, V = !v && N.top === N && I === m, A = {
|
|
1651
1656
|
Z: m,
|
|
1652
1657
|
J: $,
|
|
1653
1658
|
K: U,
|
|
1654
|
-
tt: !v && W(Vt,
|
|
1659
|
+
tt: !v && W(Vt, c, h),
|
|
1655
1660
|
nt: C,
|
|
1656
1661
|
ot: !v && !o && r && r(t),
|
|
1657
1662
|
st: x ? _ : U,
|
|
1658
1663
|
et: x ? S : U,
|
|
1659
|
-
ct:
|
|
1664
|
+
ct: N,
|
|
1660
1665
|
rt: S,
|
|
1661
1666
|
lt: g,
|
|
1662
|
-
it:
|
|
1667
|
+
it: z,
|
|
1663
1668
|
ut: f,
|
|
1664
1669
|
ft: v,
|
|
1665
|
-
dt:
|
|
1670
|
+
dt: H,
|
|
1666
1671
|
_t: (fe, ve) => pr(U, v ? Be : Je, v ? ve : fe),
|
|
1667
1672
|
ht: (fe, ve, ye) => ft(U, v ? Be : Je, v ? ve : fe, ye)
|
|
1668
|
-
},
|
|
1669
|
-
const ye =
|
|
1673
|
+
}, Z = xe(A).reduce((fe, ve) => {
|
|
1674
|
+
const ye = A[ve];
|
|
1670
1675
|
return ee(fe, ye && Ot(ye) && !Xe(ye) ? ye : !1);
|
|
1671
|
-
}, []), te = (fe) => fe ? Wn(
|
|
1672
|
-
be(le, Be), be(le,
|
|
1676
|
+
}, []), te = (fe) => fe ? Wn(Z, fe) > -1 : null, { Z: ne, J: le, tt: J, K: X, nt: pe, ot: Ce } = A, $e = [() => {
|
|
1677
|
+
be(le, Be), be(le, wn), be(ne, wn), z && (be(_, Be), be(_, wn));
|
|
1673
1678
|
}], Ke = g && te(le);
|
|
1674
|
-
let at = g ? ne : Yn([pe, X,
|
|
1679
|
+
let at = g ? ne : Yn([pe, X, J, le, ne].find((fe) => te(fe) === !1));
|
|
1675
1680
|
const vt = x ? ne : pe || X;
|
|
1676
|
-
return [
|
|
1677
|
-
ge(le, Be, v ? "viewport" : "host"), ge(
|
|
1678
|
-
const fe =
|
|
1681
|
+
return [A, () => {
|
|
1682
|
+
ge(le, Be, v ? "viewport" : "host"), ge(J, En, ""), ge(pe, mo, ""), v || ge(X, Je, "");
|
|
1683
|
+
const fe = z && !v ? je(Xe(m), ss) : Se;
|
|
1679
1684
|
if (Ke && (so(ne, le), ee($e, () => {
|
|
1680
1685
|
so(le, ne), Pe(le);
|
|
1681
|
-
})), De(vt, at), De(le,
|
|
1682
|
-
fe(), be(
|
|
1686
|
+
})), De(vt, at), De(le, J), De(J || le, !v && X), De(X, pe), ee($e, () => {
|
|
1687
|
+
fe(), be(J, En), be(pe, mo), be(X, rs), be(X, is), be(X, Je), te(pe) && xn(pe), te(X) && xn(X), te(J) && xn(J);
|
|
1683
1688
|
}), o && !v && (ft(X, Je, cs, !0), ee($e, be.bind(0, X, Je))), Ce && (hr(X, Ce), ee($e, Pe.bind(0, Ce))), V) {
|
|
1684
1689
|
const ve = ge(X, Wt);
|
|
1685
1690
|
ge(X, Wt, "-1"), X.focus();
|
|
@@ -1690,54 +1695,54 @@ const wo = (e, t, n, o) => {
|
|
|
1690
1695
|
} else
|
|
1691
1696
|
I && I.focus && I.focus();
|
|
1692
1697
|
at = 0;
|
|
1693
|
-
},
|
|
1698
|
+
}, Fe.bind(0, $e)];
|
|
1694
1699
|
}, ri = (e, t) => {
|
|
1695
1700
|
const { nt: n } = e, [o] = t;
|
|
1696
1701
|
return (s) => {
|
|
1697
|
-
const { Y: r } = _e(), { gt:
|
|
1698
|
-
return
|
|
1699
|
-
height:
|
|
1702
|
+
const { Y: r } = _e(), { gt: i } = o(), { vt: l } = s, c = (n || !r) && l;
|
|
1703
|
+
return c && he(n, {
|
|
1704
|
+
height: i ? "" : "100%"
|
|
1700
1705
|
}), {
|
|
1701
|
-
wt:
|
|
1702
|
-
bt:
|
|
1706
|
+
wt: c,
|
|
1707
|
+
bt: c
|
|
1703
1708
|
};
|
|
1704
1709
|
};
|
|
1705
1710
|
}, ii = (e, t) => {
|
|
1706
|
-
const [n, o] = t, { J: s, tt: r, K:
|
|
1711
|
+
const [n, o] = t, { J: s, tt: r, K: i, ft: l } = e, [c, a] = Ee({
|
|
1707
1712
|
u: xr,
|
|
1708
1713
|
o: lo()
|
|
1709
1714
|
}, lo.bind(0, s, "padding", ""));
|
|
1710
1715
|
return (d, f, u) => {
|
|
1711
1716
|
let [p, y] = a(u);
|
|
1712
|
-
const { A: h, Y: w } = _e(), { yt: D } = n(), { wt: m, bt: g, St: S } = d, [_,
|
|
1713
|
-
(m || y || !w && g) && ([p, y] =
|
|
1714
|
-
const P = !l && (
|
|
1717
|
+
const { A: h, Y: w } = _e(), { yt: D } = n(), { wt: m, bt: g, St: S } = d, [_, z] = f("paddingAbsolute");
|
|
1718
|
+
(m || y || !w && g) && ([p, y] = c(u));
|
|
1719
|
+
const P = !l && (z || S || y);
|
|
1715
1720
|
if (P) {
|
|
1716
|
-
const W = !_ || !r && !h,
|
|
1717
|
-
marginRight: W && !D ? -
|
|
1721
|
+
const W = !_ || !r && !h, ie = p.r + p.l, q = p.t + p.b, R = {
|
|
1722
|
+
marginRight: W && !D ? -ie : 0,
|
|
1718
1723
|
marginBottom: W ? -q : 0,
|
|
1719
|
-
marginLeft: W && D ? -
|
|
1724
|
+
marginLeft: W && D ? -ie : 0,
|
|
1720
1725
|
top: W ? -p.t : 0,
|
|
1721
1726
|
right: W ? D ? -p.r : "auto" : 0,
|
|
1722
1727
|
left: W ? D ? "auto" : -p.l : 0,
|
|
1723
|
-
width: W ? `calc(100% + ${
|
|
1728
|
+
width: W ? `calc(100% + ${ie}px)` : ""
|
|
1724
1729
|
}, b = {
|
|
1725
1730
|
paddingTop: W ? p.t : 0,
|
|
1726
1731
|
paddingRight: W ? p.r : 0,
|
|
1727
1732
|
paddingBottom: W ? p.b : 0,
|
|
1728
1733
|
paddingLeft: W ? p.l : 0
|
|
1729
1734
|
};
|
|
1730
|
-
he(r ||
|
|
1735
|
+
he(r || i, R), he(i, b), o({
|
|
1731
1736
|
tt: p,
|
|
1732
1737
|
$t: !W,
|
|
1733
|
-
P: r ? b : ce({},
|
|
1738
|
+
P: r ? b : ce({}, R, b)
|
|
1734
1739
|
});
|
|
1735
1740
|
}
|
|
1736
1741
|
return {
|
|
1737
1742
|
xt: P
|
|
1738
1743
|
};
|
|
1739
1744
|
};
|
|
1740
|
-
}, { max:
|
|
1745
|
+
}, { max: zn } = Math, Qe = zn.bind(0, 0), ps = "visible", So = "hidden", ci = 42, Ut = {
|
|
1741
1746
|
u: Ko,
|
|
1742
1747
|
o: {
|
|
1743
1748
|
w: 0,
|
|
@@ -1759,84 +1764,84 @@ const wo = (e, t, n, o) => {
|
|
|
1759
1764
|
h: o.h > n ? o.h : 0
|
|
1760
1765
|
};
|
|
1761
1766
|
}, Yt = (e) => e.indexOf(ps) === 0, di = (e, t) => {
|
|
1762
|
-
const [n, o] = t, { J: s, tt: r, K:
|
|
1763
|
-
if (he(
|
|
1767
|
+
const [n, o] = t, { J: s, tt: r, K: i, ot: l, ft: c, ht: a, it: d, ct: f } = e, { k: u, Y: p, A: y, I: h } = _e(), w = ht()[Qn], D = !c && !y && (h.x || h.y), m = d && c, [g, S] = Ee(Ut, tn.bind(0, i)), [_, z] = Ee(Ut, en.bind(0, i)), [N, P] = Ee(Ut), [W, ie] = Ee(Ut), [q] = Ee(li), R = (B, k) => {
|
|
1768
|
+
if (he(i, {
|
|
1764
1769
|
height: ""
|
|
1765
|
-
}),
|
|
1766
|
-
const { $t: E, tt:
|
|
1767
|
-
he(
|
|
1768
|
-
height: C.h + $.h + (U.x &&
|
|
1770
|
+
}), k) {
|
|
1771
|
+
const { $t: E, tt: M } = n(), { Ct: U, M: K } = B, $ = tn(s), C = jt(s), I = he(i, "boxSizing") === "content-box", V = E || I ? M.b + M.t : 0, A = !(h.x && I);
|
|
1772
|
+
he(i, {
|
|
1773
|
+
height: C.h + $.h + (U.x && A ? K.x : 0) - V
|
|
1769
1774
|
});
|
|
1770
1775
|
}
|
|
1771
|
-
}, b = (B,
|
|
1772
|
-
const E = !y && !B ? ci : 0,
|
|
1773
|
-
const
|
|
1774
|
-
return [
|
|
1775
|
-
}, [U,
|
|
1776
|
+
}, b = (B, k) => {
|
|
1777
|
+
const E = !y && !B ? ci : 0, M = (te, ne, le) => {
|
|
1778
|
+
const J = he(i, te), pe = (k ? k[te] : J) === "scroll";
|
|
1779
|
+
return [J, pe, pe && !y ? ne ? E : le : 0, ne && !!E];
|
|
1780
|
+
}, [U, K, $, C] = M("overflowX", h.x, u.x), [I, V, A, Z] = M("overflowY", h.y, u.y);
|
|
1776
1781
|
return {
|
|
1777
1782
|
Ot: {
|
|
1778
1783
|
x: U,
|
|
1779
1784
|
y: I
|
|
1780
1785
|
},
|
|
1781
1786
|
Ct: {
|
|
1782
|
-
x:
|
|
1787
|
+
x: K,
|
|
1783
1788
|
y: V
|
|
1784
1789
|
},
|
|
1785
1790
|
M: {
|
|
1786
1791
|
x: $,
|
|
1787
|
-
y:
|
|
1792
|
+
y: A
|
|
1788
1793
|
},
|
|
1789
1794
|
D: {
|
|
1790
1795
|
x: C,
|
|
1791
|
-
y:
|
|
1796
|
+
y: Z
|
|
1792
1797
|
}
|
|
1793
1798
|
};
|
|
1794
|
-
}, v = (B,
|
|
1795
|
-
const U = (V,
|
|
1796
|
-
const
|
|
1797
|
-
return [
|
|
1798
|
-
}, [
|
|
1799
|
-
return
|
|
1800
|
-
}, x = (B,
|
|
1801
|
-
const { M: U, D:
|
|
1802
|
-
|
|
1803
|
-
}, [
|
|
1804
|
-
return (B,
|
|
1805
|
-
const { wt:
|
|
1806
|
-
let Ke = S(E), at =
|
|
1807
|
-
if (te && y && a(cs, Br, !
|
|
1799
|
+
}, v = (B, k, E, M) => {
|
|
1800
|
+
const U = (V, A) => {
|
|
1801
|
+
const Z = Yt(V), te = A && Z && V.replace(`${ps}-`, "") || "";
|
|
1802
|
+
return [A && !Z ? V : "", Yt(te) ? "hidden" : te];
|
|
1803
|
+
}, [K, $] = U(E.x, k.x), [C, I] = U(E.y, k.y);
|
|
1804
|
+
return M.overflowX = $ && C ? $ : K, M.overflowY = I && K ? I : C, b(B, M);
|
|
1805
|
+
}, x = (B, k, E, M) => {
|
|
1806
|
+
const { M: U, D: K } = B, { x: $, y: C } = K, { x: I, y: V } = U, { P: A } = n(), Z = k ? "marginLeft" : "marginRight", te = k ? "paddingLeft" : "paddingRight", ne = A[Z], le = A.marginBottom, J = A[te], X = A.paddingBottom;
|
|
1807
|
+
M.width = `calc(100% + ${V + -1 * ne}px)`, M[Z] = -V + ne, M.marginBottom = -I + le, E && (M[te] = J + (C ? V : 0), M.paddingBottom = X + ($ ? I : 0));
|
|
1808
|
+
}, [T, H] = w ? w.L(D, p, i, l, n, b, x) : [() => D, () => [Se]];
|
|
1809
|
+
return (B, k, E) => {
|
|
1810
|
+
const { wt: M, Tt: U, bt: K, xt: $, vt: C, St: I } = B, { gt: V, yt: A } = n(), [Z, te] = k("showNativeOverlaidScrollbars"), [ne, le] = k("overflow"), J = Z && h.x && h.y, X = !c && !p && (M || K || U || te || C), pe = Yt(ne.x), Ce = Yt(ne.y), $e = pe || Ce;
|
|
1811
|
+
let Ke = S(E), at = z(E), vt = P(E), yt = ie(E), fe;
|
|
1812
|
+
if (te && y && a(cs, Br, !J), X && (fe = b(J), R(fe, V)), M || $ || K || I || te) {
|
|
1808
1813
|
$e && a(xt, St, !1);
|
|
1809
|
-
const [
|
|
1810
|
-
let
|
|
1811
|
-
|
|
1814
|
+
const [Re, Ze] = H(J, A, fe), [He, Pt] = Ke = g(E), [Ae, kt] = at = _(E), dt = jt(i);
|
|
1815
|
+
let mn = Ae, gn = dt;
|
|
1816
|
+
Re(), (kt || Pt || te) && Ze && !J && T(Ze, Ae, He, A) && (gn = jt(i), mn = en(i));
|
|
1812
1817
|
const _s = {
|
|
1813
|
-
w: Qe(
|
|
1814
|
-
h: Qe(
|
|
1818
|
+
w: Qe(zn(Ae.w, mn.w) + He.w),
|
|
1819
|
+
h: Qe(zn(Ae.h, mn.h) + He.h)
|
|
1815
1820
|
}, no = {
|
|
1816
|
-
w: Qe((m ? f.innerWidth :
|
|
1817
|
-
h: Qe((m ? f.innerHeight + He.h :
|
|
1821
|
+
w: Qe((m ? f.innerWidth : gn.w + Qe(dt.w - Ae.w)) + He.w),
|
|
1822
|
+
h: Qe((m ? f.innerHeight + He.h : gn.h + Qe(dt.h - Ae.h)) + He.h)
|
|
1818
1823
|
};
|
|
1819
|
-
yt = W(no), vt =
|
|
1824
|
+
yt = W(no), vt = N(ai(_s, no), E);
|
|
1820
1825
|
}
|
|
1821
|
-
const [ve, ye] = yt, [Ie, Ht] = vt, [
|
|
1826
|
+
const [ve, ye] = yt, [Ie, Ht] = vt, [an, dn] = at, [un, fn] = Ke, Ne = {
|
|
1822
1827
|
x: Ie.w > 0,
|
|
1823
1828
|
y: Ie.h > 0
|
|
1824
1829
|
}, At = pe && Ce && (Ne.x || Ne.y) || pe && Ne.x && !Ne.y || Ce && Ne.y && !Ne.x;
|
|
1825
|
-
if ($ || I ||
|
|
1826
|
-
const
|
|
1830
|
+
if ($ || I || fn || dn || ye || Ht || le || te || X) {
|
|
1831
|
+
const Re = {
|
|
1827
1832
|
marginRight: 0,
|
|
1828
1833
|
marginBottom: 0,
|
|
1829
1834
|
marginLeft: 0,
|
|
1830
1835
|
width: "",
|
|
1831
1836
|
overflowY: "",
|
|
1832
1837
|
overflowX: ""
|
|
1833
|
-
}, Ze = v(
|
|
1834
|
-
|
|
1838
|
+
}, Ze = v(J, Ne, ne, Re), He = T(Ze, an, un, A);
|
|
1839
|
+
c || x(Ze, A, He, Re), X && R(Ze, V), c ? (ge(s, rs, Re.overflowX), ge(s, is, Re.overflowY)) : he(i, Re);
|
|
1835
1840
|
}
|
|
1836
|
-
ft(s, Be, St, At), ft(r,
|
|
1837
|
-
const [
|
|
1841
|
+
ft(s, Be, St, At), ft(r, En, Lr, At), c || ft(i, Je, xt, $e);
|
|
1842
|
+
const [pn, Mt] = q(b(J).Ot);
|
|
1838
1843
|
return o({
|
|
1839
|
-
Ot:
|
|
1844
|
+
Ot: pn,
|
|
1840
1845
|
zt: {
|
|
1841
1846
|
x: ve.w,
|
|
1842
1847
|
y: ve.h
|
|
@@ -1854,12 +1859,12 @@ const wo = (e, t, n, o) => {
|
|
|
1854
1859
|
};
|
|
1855
1860
|
}, xo = (e, t, n) => {
|
|
1856
1861
|
const o = {}, s = t || {}, r = xe(e).concat(xe(s));
|
|
1857
|
-
return Y(r, (
|
|
1858
|
-
const l = e[
|
|
1859
|
-
o[
|
|
1862
|
+
return Y(r, (i) => {
|
|
1863
|
+
const l = e[i], c = s[i];
|
|
1864
|
+
o[i] = !!(n || l || c);
|
|
1860
1865
|
}), o;
|
|
1861
1866
|
}, ui = (e, t) => {
|
|
1862
|
-
const { Z: n, K: o, ht: s, ft: r } = e, { A:
|
|
1867
|
+
const { Z: n, K: o, ht: s, ft: r } = e, { A: i, I: l, Y: c } = _e(), a = !i && (l.x || l.y), d = [ri(e, t), ii(e, t), di(e, t)];
|
|
1863
1868
|
return (f, u, p) => {
|
|
1864
1869
|
const y = xo(ce({
|
|
1865
1870
|
wt: !1,
|
|
@@ -1872,27 +1877,27 @@ const wo = (e, t, n, o) => {
|
|
|
1872
1877
|
Tt: !1,
|
|
1873
1878
|
bt: !1,
|
|
1874
1879
|
Pt: !1
|
|
1875
|
-
}, u), {}, p), h = a || !
|
|
1876
|
-
s("",
|
|
1880
|
+
}, u), {}, p), h = a || !c, w = h && Le(o), D = h && qe(o);
|
|
1881
|
+
s("", nn, !0);
|
|
1877
1882
|
let m = y;
|
|
1878
1883
|
return Y(d, (g) => {
|
|
1879
1884
|
m = xo(m, g(m, f, !!p) || {}, p);
|
|
1880
|
-
}), Le(o, w), qe(o, D), s("",
|
|
1885
|
+
}), Le(o, w), qe(o, D), s("", nn), r || (Le(n, 0), qe(n, 0)), m;
|
|
1881
1886
|
};
|
|
1882
1887
|
}, fi = (e, t, n) => {
|
|
1883
1888
|
let o, s = !1;
|
|
1884
1889
|
const r = () => {
|
|
1885
1890
|
s = !0;
|
|
1886
|
-
},
|
|
1891
|
+
}, i = (l) => {
|
|
1887
1892
|
if (n) {
|
|
1888
|
-
const
|
|
1893
|
+
const c = n.reduce((a, d) => {
|
|
1889
1894
|
if (d) {
|
|
1890
1895
|
const [f, u] = d, p = u && f && (l ? l(f) : Yo(f, e));
|
|
1891
1896
|
p && p.length && u && lt(u) && ee(a, [p, u.trim()], !0);
|
|
1892
1897
|
}
|
|
1893
1898
|
return a;
|
|
1894
1899
|
}, []);
|
|
1895
|
-
Y(
|
|
1900
|
+
Y(c, (a) => Y(a[0], (d) => {
|
|
1896
1901
|
const f = a[1], u = o.get(d) || [];
|
|
1897
1902
|
if (e.contains(d)) {
|
|
1898
1903
|
const y = de(d, f, (h) => {
|
|
@@ -1900,30 +1905,30 @@ const wo = (e, t, n, o) => {
|
|
|
1900
1905
|
});
|
|
1901
1906
|
o.set(d, ee(u, y));
|
|
1902
1907
|
} else
|
|
1903
|
-
|
|
1908
|
+
Fe(u), o.delete(d);
|
|
1904
1909
|
}));
|
|
1905
1910
|
}
|
|
1906
1911
|
};
|
|
1907
|
-
return n && (o = /* @__PURE__ */ new WeakMap(),
|
|
1912
|
+
return n && (o = /* @__PURE__ */ new WeakMap(), i()), [r, i];
|
|
1908
1913
|
}, $o = (e, t, n, o) => {
|
|
1909
1914
|
let s = !1;
|
|
1910
|
-
const { Mt: r, Dt:
|
|
1915
|
+
const { Mt: r, Dt: i, Rt: l, kt: c, Bt: a, Vt: d } = o || {}, f = Xn(() => {
|
|
1911
1916
|
s && n(!0);
|
|
1912
1917
|
}, {
|
|
1913
1918
|
g: 33,
|
|
1914
1919
|
v: 99
|
|
1915
|
-
}), [u, p] = fi(e, f, l), y = r || [], h =
|
|
1916
|
-
const _ = a || Se,
|
|
1917
|
-
let W = !1,
|
|
1920
|
+
}), [u, p] = fi(e, f, l), y = r || [], h = i || [], w = y.concat(h), D = (g, S) => {
|
|
1921
|
+
const _ = a || Se, z = d || Se, N = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
|
1922
|
+
let W = !1, ie = !1;
|
|
1918
1923
|
if (Y(g, (q) => {
|
|
1919
|
-
const { attributeName:
|
|
1920
|
-
if (t && (
|
|
1921
|
-
const $ = !B, C = B && U, I = C &&
|
|
1922
|
-
Y(
|
|
1924
|
+
const { attributeName: R, target: b, type: v, oldValue: x, addedNodes: T, removedNodes: H } = q, B = v === "attributes", k = v === "childList", E = e === b, M = B && lt(R) ? ge(b, R) : 0, U = M !== 0 && x !== M, K = Wn(h, R) > -1 && U;
|
|
1925
|
+
if (t && (k || !E)) {
|
|
1926
|
+
const $ = !B, C = B && U, I = C && c && Jt(b, c), A = (I ? !_(b, R, x, M) : $ || C) && !z(q, !!I, e, o);
|
|
1927
|
+
Y(T, (Z) => N.add(Z)), Y(H, (Z) => N.add(Z)), ie = ie || A;
|
|
1923
1928
|
}
|
|
1924
|
-
!t && E && U && !_(b,
|
|
1925
|
-
}),
|
|
1926
|
-
return !S &&
|
|
1929
|
+
!t && E && U && !_(b, R, x, M) && (P.add(R), W = W || K);
|
|
1930
|
+
}), N.size > 0 && p((q) => gt(N).reduce((R, b) => (ee(R, Yo(q, b)), Jt(b, q) ? ee(R, b) : R), [])), t)
|
|
1931
|
+
return !S && ie && n(!1), [!1];
|
|
1927
1932
|
if (P.size > 0 || W) {
|
|
1928
1933
|
const q = [gt(P), W];
|
|
1929
1934
|
return !S && n.apply(0, q), q;
|
|
@@ -1946,21 +1951,21 @@ const wo = (e, t, n, o) => {
|
|
|
1946
1951
|
}
|
|
1947
1952
|
}];
|
|
1948
1953
|
}, qt = 3333333, ms = (e, t, n) => {
|
|
1949
|
-
const { Yt: o = !1, Pt: s = !1 } = n || {}, r = ht()[Xr], { V:
|
|
1954
|
+
const { Yt: o = !1, Pt: s = !1 } = n || {}, r = ht()[Xr], { V: i } = _e(), c = qo(`<div class="${Zn}"><div class="${Nr}"></div></div>`)[0], a = c.firstChild, d = Bt.bind(0, e), [f] = Ee({
|
|
1950
1955
|
o: void 0,
|
|
1951
1956
|
_: !0,
|
|
1952
1957
|
u: (h, w) => !(!h || !_t(h) && _t(w))
|
|
1953
1958
|
}), u = (h) => {
|
|
1954
|
-
const w =
|
|
1959
|
+
const w = ke(h) && h.length > 0 && Et(h[0]), D = !w && Rn(h[0]);
|
|
1955
1960
|
let m = !1, g = !1, S = !0;
|
|
1956
1961
|
if (w) {
|
|
1957
|
-
const [_, ,
|
|
1958
|
-
m = !
|
|
1962
|
+
const [_, , z] = f(h.pop().contentRect), N = _t(_), P = _t(z);
|
|
1963
|
+
m = !z && !!P || !N, g = !P && N, S = !m;
|
|
1959
1964
|
} else
|
|
1960
1965
|
D ? [, S] = h : g = h === !0;
|
|
1961
1966
|
if (o && S) {
|
|
1962
|
-
const _ = D ? h[0] : Bt(
|
|
1963
|
-
Le(
|
|
1967
|
+
const _ = D ? h[0] : Bt(c);
|
|
1968
|
+
Le(c, _ ? i.n ? -qt : i.i ? 0 : qt : qt), qe(c, qt);
|
|
1964
1969
|
}
|
|
1965
1970
|
m || t({
|
|
1966
1971
|
wt: !D,
|
|
@@ -1970,7 +1975,7 @@ const wo = (e, t, n, o) => {
|
|
|
1970
1975
|
}, p = [];
|
|
1971
1976
|
let y = s ? u : !1;
|
|
1972
1977
|
return [() => {
|
|
1973
|
-
|
|
1978
|
+
Fe(p), Pe(c);
|
|
1974
1979
|
}, () => {
|
|
1975
1980
|
if (wt) {
|
|
1976
1981
|
const h = new wt(u);
|
|
@@ -1985,151 +1990,151 @@ const wo = (e, t, n, o) => {
|
|
|
1985
1990
|
const [h] = Ee({
|
|
1986
1991
|
o: void 0
|
|
1987
1992
|
}, d);
|
|
1988
|
-
ee(p, de(
|
|
1993
|
+
ee(p, de(c, "scroll", (w) => {
|
|
1989
1994
|
const D = h(), [m, g, S] = D;
|
|
1990
1995
|
g && (jn(a, "ltr rtl"), m ? je(a, "rtl") : je(a, "ltr"), u([!!m, g, S])), Qo(w);
|
|
1991
1996
|
}));
|
|
1992
1997
|
}
|
|
1993
|
-
y && (je(
|
|
1998
|
+
y && (je(c, zr), ee(p, de(c, "animationstart", y, {
|
|
1994
1999
|
C: !!wt
|
|
1995
|
-
}))), (wt || r) && De(e,
|
|
2000
|
+
}))), (wt || r) && De(e, c);
|
|
1996
2001
|
}];
|
|
1997
2002
|
}, pi = (e) => e.h === 0 || e.isIntersecting || e.intersectionRatio > 0, mi = (e, t) => {
|
|
1998
2003
|
let n;
|
|
1999
2004
|
const o = pt(Hr), s = [], [r] = Ee({
|
|
2000
2005
|
o: !1
|
|
2001
|
-
}),
|
|
2002
|
-
if (
|
|
2003
|
-
const d = r(pi(
|
|
2006
|
+
}), i = (c, a) => {
|
|
2007
|
+
if (c) {
|
|
2008
|
+
const d = r(pi(c)), [, f] = d;
|
|
2004
2009
|
if (f)
|
|
2005
2010
|
return !a && t(d), [d];
|
|
2006
2011
|
}
|
|
2007
|
-
}, l = (
|
|
2008
|
-
if (
|
|
2009
|
-
return c
|
|
2012
|
+
}, l = (c, a) => {
|
|
2013
|
+
if (c && c.length > 0)
|
|
2014
|
+
return i(c.pop(), a);
|
|
2010
2015
|
};
|
|
2011
2016
|
return [() => {
|
|
2012
|
-
|
|
2017
|
+
Fe(s), Pe(o);
|
|
2013
2018
|
}, () => {
|
|
2014
2019
|
if (ro)
|
|
2015
|
-
n = new ro((
|
|
2020
|
+
n = new ro((c) => l(c), {
|
|
2016
2021
|
root: e
|
|
2017
2022
|
}), n.observe(o), ee(s, () => {
|
|
2018
2023
|
n.disconnect();
|
|
2019
2024
|
});
|
|
2020
2025
|
else {
|
|
2021
|
-
const
|
|
2026
|
+
const c = () => {
|
|
2022
2027
|
const f = Lt(o);
|
|
2023
|
-
|
|
2024
|
-
}, [a, d] = ms(o,
|
|
2025
|
-
ee(s, a), d(),
|
|
2028
|
+
i(f);
|
|
2029
|
+
}, [a, d] = ms(o, c);
|
|
2030
|
+
ee(s, a), d(), c();
|
|
2026
2031
|
}
|
|
2027
2032
|
De(e, o);
|
|
2028
2033
|
}, () => {
|
|
2029
2034
|
if (n)
|
|
2030
2035
|
return l(n.takeRecords(), !0);
|
|
2031
2036
|
}];
|
|
2032
|
-
}, Do = `[${Be}]`, gi = `[${Je}]`,
|
|
2037
|
+
}, Do = `[${Be}]`, gi = `[${Je}]`, $n = ["tabindex"], To = ["wrap", "cols", "rows"], Dn = ["id", "class", "style", "open"], hi = (e, t, n) => {
|
|
2033
2038
|
let o, s, r;
|
|
2034
|
-
const { J:
|
|
2039
|
+
const { J: i, K: l, nt: c, lt: a, ft: d, _t: f, ht: u } = e, { Y: p } = _e(), [y] = Ee({
|
|
2035
2040
|
u: Ko,
|
|
2036
2041
|
o: {
|
|
2037
2042
|
w: 0,
|
|
2038
2043
|
h: 0
|
|
2039
2044
|
}
|
|
2040
2045
|
}, () => {
|
|
2041
|
-
const x = f(xt, St),
|
|
2042
|
-
u(xt, St), u(
|
|
2043
|
-
const
|
|
2044
|
-
return u(xt, St, x), u(
|
|
2045
|
-
w: E.w +
|
|
2046
|
-
h: E.h +
|
|
2046
|
+
const x = f(xt, St), T = f(_n, ""), H = T && Le(l), B = T && qe(l);
|
|
2047
|
+
u(xt, St), u(_n, ""), u("", nn, !0);
|
|
2048
|
+
const k = en(c), E = en(l), M = tn(l);
|
|
2049
|
+
return u(xt, St, x), u(_n, "", T), u("", nn), Le(l, H), qe(l, B), {
|
|
2050
|
+
w: E.w + k.w + M.w,
|
|
2051
|
+
h: E.h + k.h + M.h
|
|
2047
2052
|
};
|
|
2048
|
-
}), h = a ?
|
|
2053
|
+
}), h = a ? To : Dn.concat(To), w = Xn(n, {
|
|
2049
2054
|
g: () => o,
|
|
2050
2055
|
v: () => s,
|
|
2051
|
-
p(x,
|
|
2052
|
-
const [
|
|
2053
|
-
return [xe(
|
|
2056
|
+
p(x, T) {
|
|
2057
|
+
const [H] = x, [B] = T;
|
|
2058
|
+
return [xe(H).concat(xe(B)).reduce((k, E) => (k[E] = H[E] || B[E], k), {})];
|
|
2054
2059
|
}
|
|
2055
2060
|
}), D = (x) => {
|
|
2056
|
-
Y(x ||
|
|
2057
|
-
if (Wn(
|
|
2058
|
-
const
|
|
2059
|
-
lt(
|
|
2061
|
+
Y(x || $n, (T) => {
|
|
2062
|
+
if (Wn($n, T) > -1) {
|
|
2063
|
+
const H = ge(i, T);
|
|
2064
|
+
lt(H) ? ge(l, T, H) : be(l, T);
|
|
2060
2065
|
}
|
|
2061
2066
|
});
|
|
2062
|
-
}, m = (x,
|
|
2063
|
-
const [
|
|
2067
|
+
}, m = (x, T) => {
|
|
2068
|
+
const [H, B] = x, k = {
|
|
2064
2069
|
vt: B
|
|
2065
2070
|
};
|
|
2066
2071
|
return t({
|
|
2067
|
-
gt:
|
|
2068
|
-
}), !
|
|
2069
|
-
}, g = ({ wt: x, jt:
|
|
2070
|
-
const B = !x ||
|
|
2071
|
-
let
|
|
2072
|
-
if (
|
|
2073
|
-
const [E,
|
|
2074
|
-
|
|
2072
|
+
gt: H
|
|
2073
|
+
}), !T && n(k), k;
|
|
2074
|
+
}, g = ({ wt: x, jt: T, Pt: H }) => {
|
|
2075
|
+
const B = !x || H ? n : w;
|
|
2076
|
+
let k = !1;
|
|
2077
|
+
if (T) {
|
|
2078
|
+
const [E, M] = T;
|
|
2079
|
+
k = M, t({
|
|
2075
2080
|
yt: E
|
|
2076
2081
|
});
|
|
2077
2082
|
}
|
|
2078
2083
|
B({
|
|
2079
2084
|
wt: x,
|
|
2080
|
-
Pt:
|
|
2081
|
-
St:
|
|
2085
|
+
Pt: H,
|
|
2086
|
+
St: k
|
|
2082
2087
|
});
|
|
2083
|
-
}, S = (x,
|
|
2084
|
-
const [,
|
|
2085
|
-
bt:
|
|
2088
|
+
}, S = (x, T) => {
|
|
2089
|
+
const [, H] = y(), B = {
|
|
2090
|
+
bt: H
|
|
2086
2091
|
};
|
|
2087
|
-
return
|
|
2088
|
-
}, _ = (x,
|
|
2092
|
+
return H && !T && (x ? n : w)(B), B;
|
|
2093
|
+
}, _ = (x, T, H) => {
|
|
2089
2094
|
const B = {
|
|
2090
|
-
Tt:
|
|
2095
|
+
Tt: T
|
|
2091
2096
|
};
|
|
2092
|
-
return
|
|
2093
|
-
}, [
|
|
2097
|
+
return T ? !H && w(B) : d || D(x), B;
|
|
2098
|
+
}, [z, N, P] = c || !p ? mi(i, m) : [Se, Se, Se], [W, ie] = d ? [Se, Se] : ms(i, g, {
|
|
2094
2099
|
Pt: !0,
|
|
2095
2100
|
Yt: !0
|
|
2096
|
-
}), [q,
|
|
2097
|
-
Dt:
|
|
2098
|
-
Mt:
|
|
2101
|
+
}), [q, R] = $o(i, !1, _, {
|
|
2102
|
+
Dt: Dn,
|
|
2103
|
+
Mt: Dn.concat($n)
|
|
2099
2104
|
});
|
|
2100
2105
|
let b;
|
|
2101
2106
|
const v = d && wt && new wt((x) => {
|
|
2102
|
-
const
|
|
2107
|
+
const T = x[x.length - 1].contentRect, H = _t(T), k = !_t(b) && H;
|
|
2103
2108
|
g({
|
|
2104
2109
|
wt: !0,
|
|
2105
|
-
Pt:
|
|
2106
|
-
}), b =
|
|
2110
|
+
Pt: k
|
|
2111
|
+
}), b = T;
|
|
2107
2112
|
});
|
|
2108
2113
|
return [() => {
|
|
2109
|
-
|
|
2114
|
+
z(), W(), r && r[0](), v && v.disconnect(), q();
|
|
2110
2115
|
}, () => {
|
|
2111
|
-
v && v.observe(
|
|
2116
|
+
v && v.observe(i), D(), ie(), N();
|
|
2112
2117
|
}, () => {
|
|
2113
|
-
const x = {},
|
|
2114
|
-
return
|
|
2118
|
+
const x = {}, T = R(), H = P(), B = r && r[1]();
|
|
2119
|
+
return T && ce(x, _.apply(0, ee(T, !0))), H && ce(x, m.apply(0, ee(H, !0))), B && ce(x, S.apply(0, ee(B, !0))), x;
|
|
2115
2120
|
}, (x) => {
|
|
2116
|
-
const [
|
|
2117
|
-
if (
|
|
2118
|
-
Mt: h.concat(
|
|
2119
|
-
Rt:
|
|
2121
|
+
const [T] = x("update.ignoreMutation"), [H, B] = x("update.attributes"), [k, E] = x("update.elementEvents"), [M, U] = x("update.debounce"), K = E || B, $ = (C) => ze(T) && T(C);
|
|
2122
|
+
if (K && (r && (r[1](), r[0]()), r = $o(c || l, !0, S, {
|
|
2123
|
+
Mt: h.concat(H || []),
|
|
2124
|
+
Rt: k,
|
|
2120
2125
|
kt: Do,
|
|
2121
2126
|
Vt: (C, I) => {
|
|
2122
|
-
const { target: V, attributeName:
|
|
2123
|
-
return (!I &&
|
|
2127
|
+
const { target: V, attributeName: A } = C;
|
|
2128
|
+
return (!I && A && !d ? gr(V, Do, gi) : !1) || !!bt(V, `.${we}`) || !!$(C);
|
|
2124
2129
|
}
|
|
2125
2130
|
})), U)
|
|
2126
|
-
if (w.m(),
|
|
2127
|
-
const C =
|
|
2131
|
+
if (w.m(), ke(M)) {
|
|
2132
|
+
const C = M[0], I = M[1];
|
|
2128
2133
|
o = it(C) && C, s = it(I) && I;
|
|
2129
2134
|
} else
|
|
2130
|
-
it(
|
|
2135
|
+
it(M) ? (o = M, s = !1) : (o = !1, s = !1);
|
|
2131
2136
|
}];
|
|
2132
|
-
},
|
|
2137
|
+
}, ko = {
|
|
2133
2138
|
x: 0,
|
|
2134
2139
|
y: 0
|
|
2135
2140
|
}, vi = (e) => ({
|
|
@@ -2149,8 +2154,8 @@ const wo = (e, t, n, o) => {
|
|
|
2149
2154
|
paddingBottom: 0,
|
|
2150
2155
|
paddingLeft: 0
|
|
2151
2156
|
},
|
|
2152
|
-
zt:
|
|
2153
|
-
Et:
|
|
2157
|
+
zt: ko,
|
|
2158
|
+
Et: ko,
|
|
2154
2159
|
Ot: {
|
|
2155
2160
|
x: "hidden",
|
|
2156
2161
|
y: "hidden"
|
|
@@ -2162,18 +2167,18 @@ const wo = (e, t, n, o) => {
|
|
|
2162
2167
|
gt: !1,
|
|
2163
2168
|
yt: Bt(e.J)
|
|
2164
2169
|
}), yi = (e, t) => {
|
|
2165
|
-
const n =
|
|
2166
|
-
const
|
|
2167
|
-
return
|
|
2168
|
-
}, [y, h, w, D] = hi(
|
|
2170
|
+
const n = Ln(t, {}), [o, s, r] = Kn(), [i, l, c] = si(e), a = fs(vi(i)), [d, f] = a, u = ui(i, a), p = (g, S, _) => {
|
|
2171
|
+
const N = xe(g).some((P) => !!g[P]) || !Un(S) || _;
|
|
2172
|
+
return N && r("u", [g, S, _]), N;
|
|
2173
|
+
}, [y, h, w, D] = hi(i, f, (g) => p(u(n, g), {}, !1)), m = d.bind(0);
|
|
2169
2174
|
return m.Nt = (g) => o("u", g), m.qt = () => {
|
|
2170
|
-
const { Z: g, K: S, rt: _, it:
|
|
2175
|
+
const { Z: g, K: S, rt: _, it: z } = i, N = z ? _.documentElement : g, P = Le(N), W = qe(N);
|
|
2171
2176
|
h(), l(), Le(S, P), qe(S, W);
|
|
2172
|
-
}, m.Ft =
|
|
2173
|
-
const _ =
|
|
2177
|
+
}, m.Ft = i, [(g, S) => {
|
|
2178
|
+
const _ = Ln(t, g, S);
|
|
2174
2179
|
return D(_), p(u(_, w(), S), g, !!S);
|
|
2175
2180
|
}, m, () => {
|
|
2176
|
-
s(), y(),
|
|
2181
|
+
s(), y(), c();
|
|
2177
2182
|
}];
|
|
2178
2183
|
}, { round: Co } = Math, bi = (e) => {
|
|
2179
2184
|
const { width: t, height: n } = Me(e), { w: o, h: s } = Lt(e);
|
|
@@ -2182,8 +2187,8 @@ const wo = (e, t, n, o) => {
|
|
|
2182
2187
|
y: Co(n) / s || 1
|
|
2183
2188
|
};
|
|
2184
2189
|
}, wi = (e, t, n) => {
|
|
2185
|
-
const o = t.scrollbars, { button: s, isPrimary: r, pointerType:
|
|
2186
|
-
return s === 0 && r && o[n ? "dragScroll" : "clickScroll"] && (l || []).includes(
|
|
2190
|
+
const o = t.scrollbars, { button: s, isPrimary: r, pointerType: i } = e, { pointers: l } = o;
|
|
2191
|
+
return s === 0 && r && o[n ? "dragScroll" : "clickScroll"] && (l || []).includes(i);
|
|
2187
2192
|
}, Io = "pointerup pointerleave pointercancel lostpointercapture", _i = (e) => ({
|
|
2188
2193
|
transform: [$t("0%", e), $t("-100%", e)],
|
|
2189
2194
|
[e ? "left" : "top"]: ["0%", "100%"]
|
|
@@ -2192,27 +2197,27 @@ const wo = (e, t, n, o) => {
|
|
|
2192
2197
|
$: !0
|
|
2193
2198
|
}), {
|
|
2194
2199
|
$: !0
|
|
2195
|
-
}), xi = (e, t, n, o, s, r,
|
|
2196
|
-
const { V: l } = _e(), { Gt:
|
|
2197
|
-
const { Et: _ } = r(),
|
|
2198
|
-
s[f] = m + P *
|
|
2200
|
+
}), xi = (e, t, n, o, s, r, i) => {
|
|
2201
|
+
const { V: l } = _e(), { Gt: c, Xt: a, Ut: d } = o, f = `scroll${i ? "Left" : "Top"}`, u = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", y = i ? "left" : "top", h = i ? "w" : "h", w = i ? "x" : "y", D = (m, g) => (S) => {
|
|
2202
|
+
const { Et: _ } = r(), z = Lt(a)[h] - Lt(c)[h], P = g * S / z * _[w], ie = Bt(d) && i ? l.n || l.i ? 1 : -1 : 1;
|
|
2203
|
+
s[f] = m + P * ie;
|
|
2199
2204
|
};
|
|
2200
2205
|
return de(a, "pointerdown", (m) => {
|
|
2201
|
-
const g = bt(m.target, `.${Jn}`) ===
|
|
2206
|
+
const g = bt(m.target, `.${Jn}`) === c, S = g ? c : a;
|
|
2202
2207
|
if (ft(t, Be, po, !0), wi(m, e, g)) {
|
|
2203
|
-
const _ = !g && m.shiftKey,
|
|
2204
|
-
|
|
2205
|
-
}, B = [ft.bind(0, t, Be, po), de(n, Io,
|
|
2208
|
+
const _ = !g && m.shiftKey, z = () => Me(c), N = () => Me(a), P = (k, E) => (k || z())[y] - (E || N())[y], W = D(s[f] || 0, 1 / bi(s)[w]), ie = m[u], q = z(), R = N(), b = q[p], v = P(q, R) + b / 2, x = ie - R[y], T = g ? 0 : x - v, H = (k) => {
|
|
2209
|
+
Fe(B), S.releasePointerCapture(k.pointerId);
|
|
2210
|
+
}, B = [ft.bind(0, t, Be, po), de(n, Io, H), de(n, "selectstart", (k) => es(k), {
|
|
2206
2211
|
S: !1
|
|
2207
|
-
}), de(a, Io,
|
|
2208
|
-
const E =
|
|
2209
|
-
(g || _) && W(
|
|
2212
|
+
}), de(a, Io, H), de(a, "pointermove", (k) => {
|
|
2213
|
+
const E = k[u] - ie;
|
|
2214
|
+
(g || _) && W(T + E);
|
|
2210
2215
|
})];
|
|
2211
2216
|
if (_)
|
|
2212
|
-
W(
|
|
2217
|
+
W(T);
|
|
2213
2218
|
else if (!g) {
|
|
2214
|
-
const
|
|
2215
|
-
|
|
2219
|
+
const k = ht()[Gr];
|
|
2220
|
+
k && ee(B, k.O(W, P, T, b, x));
|
|
2216
2221
|
}
|
|
2217
2222
|
S.setPointerCapture(m.pointerId);
|
|
2218
2223
|
}
|
|
@@ -2226,16 +2231,16 @@ const wo = (e, t, n, o) => {
|
|
|
2226
2231
|
return () => {
|
|
2227
2232
|
o.cancel();
|
|
2228
2233
|
};
|
|
2229
|
-
}, Di = (e, t) => (n, o, s, r,
|
|
2230
|
-
const { Ut: a } = n, [d, f] = ut(333), u = !!
|
|
2234
|
+
}, Di = (e, t) => (n, o, s, r, i, l, c) => {
|
|
2235
|
+
const { Ut: a } = n, [d, f] = ut(333), u = !!i.scrollBy;
|
|
2231
2236
|
let p = !0;
|
|
2232
|
-
return
|
|
2237
|
+
return Fe.bind(0, [de(a, "pointerenter", () => {
|
|
2233
2238
|
o(ho, !0);
|
|
2234
2239
|
}), de(a, "pointerleave pointercancel", () => {
|
|
2235
2240
|
o(ho);
|
|
2236
2241
|
}), de(a, "wheel", (y) => {
|
|
2237
2242
|
const { deltaX: h, deltaY: w, deltaMode: D } = y;
|
|
2238
|
-
u && p && D === 0 && Xe(a) === r &&
|
|
2243
|
+
u && p && D === 0 && Xe(a) === r && i.scrollBy({
|
|
2239
2244
|
left: h,
|
|
2240
2245
|
top: w,
|
|
2241
2246
|
behavior: "smooth"
|
|
@@ -2245,53 +2250,53 @@ const wo = (e, t, n, o) => {
|
|
|
2245
2250
|
}, {
|
|
2246
2251
|
S: !1,
|
|
2247
2252
|
$: !0
|
|
2248
|
-
}), Si(a, s), xi(e, r, s, n,
|
|
2249
|
-
}, { min:
|
|
2253
|
+
}), Si(a, s), xi(e, r, s, n, i, t, c), $i(n, l, c), f]);
|
|
2254
|
+
}, { min: Nn, max: Oo, abs: Ti, round: ki } = Math, gs = (e, t, n, o) => {
|
|
2250
2255
|
if (o) {
|
|
2251
|
-
const l = n ? "x" : "y", { Et:
|
|
2252
|
-
return Oo(0,
|
|
2256
|
+
const l = n ? "x" : "y", { Et: c, zt: a } = o, d = a[l], f = c[l];
|
|
2257
|
+
return Oo(0, Nn(1, d / (d + f)));
|
|
2253
2258
|
}
|
|
2254
|
-
const s = n ? "width" : "height", r = Me(e)[s],
|
|
2255
|
-
return Oo(0,
|
|
2259
|
+
const s = n ? "width" : "height", r = Me(e)[s], i = Me(t)[s];
|
|
2260
|
+
return Oo(0, Nn(1, r / i));
|
|
2256
2261
|
}, Ci = (e, t, n, o, s, r) => {
|
|
2257
|
-
const { V:
|
|
2262
|
+
const { V: i } = _e(), l = r ? "x" : "y", c = r ? "Left" : "Top", { Et: a } = o, d = ki(a[l]), f = Ti(n[`scroll${c}`]), u = r && s, p = i.i ? f : d - f, h = Nn(1, (u ? p : f) / d), w = gs(e, t, r);
|
|
2258
2263
|
return 1 / w * (1 - w) * h;
|
|
2259
2264
|
}, Ii = (e) => `${Math.max(0, e - 0.5)}px`, Eo = (e, t, n, o) => e.animate({
|
|
2260
2265
|
transform: [$t("0px", o), $t(Ii(n), o)]
|
|
2261
2266
|
}, {
|
|
2262
2267
|
timeline: t,
|
|
2263
2268
|
composite: "add"
|
|
2264
|
-
}), Bo = (e, t) =>
|
|
2269
|
+
}), Bo = (e, t) => In ? new In({
|
|
2265
2270
|
source: e,
|
|
2266
2271
|
axis: t
|
|
2267
2272
|
}) : null, Oi = (e, t, n) => {
|
|
2268
|
-
const { q: o, H: s } = _e(), { scrollbars: r } = o(), { slot:
|
|
2273
|
+
const { q: o, H: s } = _e(), { scrollbars: r } = o(), { slot: i } = r, { rt: l, Z: c, J: a, K: d, ut: f, st: u, it: p, ft: y } = t, { scrollbars: h } = f ? {} : e, { slot: w } = h || {}, D = /* @__PURE__ */ new Map(), m = Bo(u, "x"), g = Bo(u, "y"), S = ds([c, a, d], () => y && p ? c : a, i, w), _ = ($) => y && !p && Xe($) === d, z = () => {
|
|
2269
2274
|
D.forEach(($) => {
|
|
2270
2275
|
($ || []).forEach((C) => {
|
|
2271
2276
|
C.cancel();
|
|
2272
2277
|
});
|
|
2273
2278
|
});
|
|
2274
|
-
},
|
|
2279
|
+
}, N = ($, C, I) => {
|
|
2275
2280
|
const V = I ? je : jn;
|
|
2276
|
-
Y($, (
|
|
2277
|
-
V(
|
|
2281
|
+
Y($, (A) => {
|
|
2282
|
+
V(A.Ut, C);
|
|
2278
2283
|
});
|
|
2279
2284
|
}, P = ($, C) => {
|
|
2280
2285
|
Y($, (I) => {
|
|
2281
|
-
const [V,
|
|
2282
|
-
he(V,
|
|
2286
|
+
const [V, A] = C(I);
|
|
2287
|
+
he(V, A);
|
|
2283
2288
|
});
|
|
2284
2289
|
}, W = ($, C, I) => {
|
|
2285
2290
|
P($, (V) => {
|
|
2286
|
-
const { Gt:
|
|
2287
|
-
return [
|
|
2288
|
-
[I ? "width" : "height"]: `${(100 * gs(
|
|
2291
|
+
const { Gt: A, Xt: Z } = V;
|
|
2292
|
+
return [A, {
|
|
2293
|
+
[I ? "width" : "height"]: `${(100 * gs(A, Z, I, C)).toFixed(3)}%`
|
|
2289
2294
|
}];
|
|
2290
2295
|
});
|
|
2291
|
-
},
|
|
2296
|
+
}, ie = ($, C, I) => {
|
|
2292
2297
|
!g && !g && P($, (V) => {
|
|
2293
|
-
const { Gt:
|
|
2294
|
-
return [
|
|
2298
|
+
const { Gt: A, Xt: Z, Ut: te } = V, ne = Ci(A, Z, u, C, Bt(te), I);
|
|
2299
|
+
return [A, {
|
|
2295
2300
|
transform: ne === ne ? $t(`${(100 * ne).toFixed(3)}%`, I) : ""
|
|
2296
2301
|
}];
|
|
2297
2302
|
});
|
|
@@ -2300,43 +2305,43 @@ const wo = (e, t, n, o) => {
|
|
|
2300
2305
|
return [I, {
|
|
2301
2306
|
transform: I ? $t([`${Le(u)}px`, `${qe(u)}px`]) : ""
|
|
2302
2307
|
}];
|
|
2303
|
-
},
|
|
2304
|
-
const V =
|
|
2305
|
-
|
|
2306
|
-
},
|
|
2308
|
+
}, R = [], b = [], v = [], x = ($, C, I) => {
|
|
2309
|
+
const V = Rn(I), A = V ? I : !0, Z = V ? !I : !0;
|
|
2310
|
+
A && N(b, $, C), Z && N(v, $, C);
|
|
2311
|
+
}, T = ($) => {
|
|
2307
2312
|
W(b, $, !0), W(v, $);
|
|
2308
|
-
},
|
|
2309
|
-
|
|
2313
|
+
}, H = ($) => {
|
|
2314
|
+
ie(b, $, !0), ie(v, $);
|
|
2310
2315
|
}, B = () => {
|
|
2311
2316
|
!g && !g && (y && P(b, q), y && P(v, q));
|
|
2312
|
-
},
|
|
2313
|
-
|
|
2317
|
+
}, k = ({ Et: $ }) => {
|
|
2318
|
+
z(), v.concat(b).forEach(({ Ut: C }) => {
|
|
2314
2319
|
_(C) && D.set(C, [Eo(C, m, $.x, !0), Eo(C, g, $.y)]);
|
|
2315
2320
|
});
|
|
2316
2321
|
}, E = ($) => {
|
|
2317
|
-
const C = $ ?
|
|
2318
|
-
Ut:
|
|
2319
|
-
Xt:
|
|
2322
|
+
const C = $ ? Fr : Rr, I = $ ? b : v, V = Vn(I) ? go : "", A = pt(`${we} ${C} ${V}`), Z = pt(ls), te = pt(Jn), ne = {
|
|
2323
|
+
Ut: A,
|
|
2324
|
+
Xt: Z,
|
|
2320
2325
|
Gt: te
|
|
2321
2326
|
};
|
|
2322
|
-
return s || je(
|
|
2323
|
-
|
|
2324
|
-
}, Pe.bind(0,
|
|
2325
|
-
},
|
|
2326
|
-
De(S, b[0].Ut), De(S, v[0].Ut),
|
|
2327
|
+
return s || je(A, Ar), De(A, Z), De(Z, te), ee(I, ne), ee(R, [() => {
|
|
2328
|
+
z(), D.clear();
|
|
2329
|
+
}, Pe.bind(0, A), n(ne, x, l, a, u, $ ? m : g, $)]), ne;
|
|
2330
|
+
}, M = E.bind(0, !0), U = E.bind(0, !1), K = () => {
|
|
2331
|
+
De(S, b[0].Ut), De(S, v[0].Ut), Qt(() => {
|
|
2327
2332
|
x(go);
|
|
2328
2333
|
}, 300);
|
|
2329
2334
|
};
|
|
2330
|
-
return
|
|
2331
|
-
Wt:
|
|
2332
|
-
Zt:
|
|
2333
|
-
Jt:
|
|
2335
|
+
return M(), U(), [{
|
|
2336
|
+
Wt: T,
|
|
2337
|
+
Zt: H,
|
|
2338
|
+
Jt: k,
|
|
2334
2339
|
Kt: B,
|
|
2335
2340
|
Qt: x,
|
|
2336
2341
|
tn: {
|
|
2337
2342
|
B: m,
|
|
2338
2343
|
nn: b,
|
|
2339
|
-
sn:
|
|
2344
|
+
sn: M,
|
|
2340
2345
|
en: P.bind(0, b)
|
|
2341
2346
|
},
|
|
2342
2347
|
cn: {
|
|
@@ -2345,23 +2350,23 @@ const wo = (e, t, n, o) => {
|
|
|
2345
2350
|
sn: U,
|
|
2346
2351
|
en: P.bind(0, v)
|
|
2347
2352
|
}
|
|
2348
|
-
},
|
|
2353
|
+
}, K, Fe.bind(0, R)];
|
|
2349
2354
|
}, Ei = (e, t, n, o) => {
|
|
2350
|
-
let s, r,
|
|
2351
|
-
const d = fs({}), [f] = d, [u, p] = ut(), [y, h] = ut(), [w, D] = ut(100), [m, g] = ut(100), [S, _] = ut(100), [
|
|
2352
|
-
v(
|
|
2355
|
+
let s, r, i, l, c, a = 0;
|
|
2356
|
+
const d = fs({}), [f] = d, [u, p] = ut(), [y, h] = ut(), [w, D] = ut(100), [m, g] = ut(100), [S, _] = ut(100), [z, N] = ut(() => a), [P, W, ie] = Oi(e, n.Ft, Di(t, n)), { J: q, et: R, it: b } = n.Ft, { Qt: v, Wt: x, Zt: T, Jt: H, Kt: B } = P, k = ($) => {
|
|
2357
|
+
v(Bn, $, !0), v(Bn, $, !1);
|
|
2353
2358
|
}, E = ($, C) => {
|
|
2354
|
-
if (
|
|
2359
|
+
if (N(), $)
|
|
2355
2360
|
v(yo);
|
|
2356
2361
|
else {
|
|
2357
2362
|
const I = () => v(yo, !0);
|
|
2358
|
-
a > 0 && !C ?
|
|
2363
|
+
a > 0 && !C ? z(I) : I();
|
|
2359
2364
|
}
|
|
2360
|
-
},
|
|
2365
|
+
}, M = () => {
|
|
2361
2366
|
l = r, l && E(!0);
|
|
2362
|
-
}, U = [D,
|
|
2367
|
+
}, U = [D, N, g, _, h, p, ie, de(q, "pointerover", M, {
|
|
2363
2368
|
C: !0
|
|
2364
|
-
}), de(q, "pointerenter",
|
|
2369
|
+
}), de(q, "pointerenter", M), de(q, "pointerleave", () => {
|
|
2365
2370
|
l = !1, r && E(!1);
|
|
2366
2371
|
}), de(q, "pointermove", () => {
|
|
2367
2372
|
s && u(() => {
|
|
@@ -2369,42 +2374,42 @@ const wo = (e, t, n, o) => {
|
|
|
2369
2374
|
s && E(!1);
|
|
2370
2375
|
});
|
|
2371
2376
|
});
|
|
2372
|
-
}), de(
|
|
2377
|
+
}), de(R, "scroll", ($) => {
|
|
2373
2378
|
y(() => {
|
|
2374
|
-
|
|
2375
|
-
|
|
2379
|
+
T(n()), i && E(!0), w(() => {
|
|
2380
|
+
i && !l && E(!1);
|
|
2376
2381
|
});
|
|
2377
2382
|
}), o($), B();
|
|
2378
|
-
})],
|
|
2379
|
-
return
|
|
2380
|
-
const { Ht: V, Lt:
|
|
2383
|
+
})], K = f.bind(0);
|
|
2384
|
+
return K.Ft = P, K.qt = W, [($, C, I) => {
|
|
2385
|
+
const { Ht: V, Lt: A, It: Z, St: te, Pt: ne } = I, { I: le } = _e(), J = Ln(t, $, C), X = n(), { Et: pe, Ot: Ce, yt: $e, At: Ke } = X, [at, vt] = J("showNativeOverlaidScrollbars"), [yt, fe] = J("scrollbars.theme"), [ve, ye] = J("scrollbars.visibility"), [Ie, Ht] = J("scrollbars.autoHide"), [an, dn] = J("scrollbars.autoHideSuspend"), [un] = J("scrollbars.autoHideDelay"), [fn, Ne] = J("scrollbars.dragScroll"), [At, pn] = J("scrollbars.clickScroll"), Mt = ne && !C, Re = V || A || te, Ze = Z || ye, He = at && le.x && le.y, Pt = (Ae, kt) => {
|
|
2381
2386
|
const dt = ve === "visible" || ve === "auto" && Ae === "scroll";
|
|
2382
|
-
return v(Wr, dt,
|
|
2387
|
+
return v(Wr, dt, kt), dt;
|
|
2383
2388
|
};
|
|
2384
|
-
if (a =
|
|
2389
|
+
if (a = un, vt && v(Mr, He), fe && (v(c), v(yt, !0), c = yt), (dn || Mt) && (an && Mt && (Ke.x || Ke.y) ? (k(!1), S(() => U.push(de(R, "scroll", k.bind(0, !0), {
|
|
2385
2390
|
C: !0
|
|
2386
|
-
})))) :
|
|
2387
|
-
const Ae = Pt(Ce.x, !0),
|
|
2388
|
-
v(Vr, !(Ae &&
|
|
2391
|
+
})))) : k(!0)), Ht && (s = Ie === "move", r = Ie === "leave", i = Ie !== "never", E(!i, !0)), Ne && v(Yr, fn), pn && v(Ur, At), Ze) {
|
|
2392
|
+
const Ae = Pt(Ce.x, !0), kt = Pt(Ce.y, !1);
|
|
2393
|
+
v(Vr, !(Ae && kt));
|
|
2389
2394
|
}
|
|
2390
|
-
|
|
2391
|
-
},
|
|
2395
|
+
Re && (x(X), T(X), H(X), B(), v(vo, !pe.x, !0), v(vo, !pe.y, !1), v(Pr, $e && !b));
|
|
2396
|
+
}, K, Fe.bind(0, U)];
|
|
2392
2397
|
}, hs = (e, t, n) => {
|
|
2393
2398
|
ze(e) && e(t || void 0, n || void 0);
|
|
2394
2399
|
}, nt = (e, t, n) => {
|
|
2395
|
-
const { G: o, q: s, j: r, N:
|
|
2400
|
+
const { G: o, q: s, j: r, N: i } = _e(), l = ht(), c = Ot(e), a = c ? e : e.target, d = us(a);
|
|
2396
2401
|
if (t && !d) {
|
|
2397
2402
|
let f = !1;
|
|
2398
2403
|
const u = (b) => {
|
|
2399
2404
|
const v = ht()[jr], x = v && v.O;
|
|
2400
2405
|
return x ? x(b, !0) : b;
|
|
2401
|
-
}, p = ce({}, o(), u(t)), [y, h, w] = Kn(n), [D, m, g] = yi(e, p), [S, _,
|
|
2402
|
-
oi(a), W(),
|
|
2403
|
-
},
|
|
2406
|
+
}, p = ce({}, o(), u(t)), [y, h, w] = Kn(n), [D, m, g] = yi(e, p), [S, _, z] = Ei(e, p, m, (b) => w("scroll", [R, b])), N = (b, v) => D(b, !!v), P = N.bind(0, {}, !0), W = r(P), ie = i(P), q = (b) => {
|
|
2407
|
+
oi(a), W(), ie(), z(), g(), f = !0, w("destroyed", [R, !!b]), h();
|
|
2408
|
+
}, R = {
|
|
2404
2409
|
options(b, v) {
|
|
2405
2410
|
if (b) {
|
|
2406
|
-
const x = v ? o() : {},
|
|
2407
|
-
Un(
|
|
2411
|
+
const x = v ? o() : {}, T = ts(p, ce(x, u(b)));
|
|
2412
|
+
Un(T) || (ce(p, T), N(T));
|
|
2408
2413
|
}
|
|
2409
2414
|
return ce({}, p);
|
|
2410
2415
|
},
|
|
@@ -2413,69 +2418,69 @@ const wo = (e, t, n, o) => {
|
|
|
2413
2418
|
b && v && h(b, v);
|
|
2414
2419
|
},
|
|
2415
2420
|
state() {
|
|
2416
|
-
const { zt: b, Et: v, Ot: x, At:
|
|
2421
|
+
const { zt: b, Et: v, Ot: x, At: T, tt: H, $t: B, yt: k } = m();
|
|
2417
2422
|
return ce({}, {
|
|
2418
2423
|
overflowEdge: b,
|
|
2419
2424
|
overflowAmount: v,
|
|
2420
2425
|
overflowStyle: x,
|
|
2421
|
-
hasOverflow:
|
|
2422
|
-
padding:
|
|
2426
|
+
hasOverflow: T,
|
|
2427
|
+
padding: H,
|
|
2423
2428
|
paddingAbsolute: B,
|
|
2424
|
-
directionRTL:
|
|
2429
|
+
directionRTL: k,
|
|
2425
2430
|
destroyed: f
|
|
2426
2431
|
});
|
|
2427
2432
|
},
|
|
2428
2433
|
elements() {
|
|
2429
|
-
const { Z: b, J: v, tt: x, K:
|
|
2434
|
+
const { Z: b, J: v, tt: x, K: T, nt: H, st: B, et: k } = m.Ft, { tn: E, cn: M } = _.Ft, U = ($) => {
|
|
2430
2435
|
const { Gt: C, Xt: I, Ut: V } = $;
|
|
2431
2436
|
return {
|
|
2432
2437
|
scrollbar: V,
|
|
2433
2438
|
track: I,
|
|
2434
2439
|
handle: C
|
|
2435
2440
|
};
|
|
2436
|
-
},
|
|
2441
|
+
}, K = ($) => {
|
|
2437
2442
|
const { nn: C, sn: I } = $, V = U(C[0]);
|
|
2438
2443
|
return ce({}, V, {
|
|
2439
2444
|
clone: () => {
|
|
2440
|
-
const
|
|
2441
|
-
return S({}, !0, {}),
|
|
2445
|
+
const A = U(I());
|
|
2446
|
+
return S({}, !0, {}), A;
|
|
2442
2447
|
}
|
|
2443
2448
|
});
|
|
2444
2449
|
};
|
|
2445
2450
|
return ce({}, {
|
|
2446
2451
|
target: b,
|
|
2447
2452
|
host: v,
|
|
2448
|
-
padding: x ||
|
|
2449
|
-
viewport:
|
|
2450
|
-
content:
|
|
2453
|
+
padding: x || T,
|
|
2454
|
+
viewport: T,
|
|
2455
|
+
content: H || T,
|
|
2451
2456
|
scrollOffsetElement: B,
|
|
2452
|
-
scrollEventElement:
|
|
2453
|
-
scrollbarHorizontal:
|
|
2454
|
-
scrollbarVertical:
|
|
2457
|
+
scrollEventElement: k,
|
|
2458
|
+
scrollbarHorizontal: K(E),
|
|
2459
|
+
scrollbarVertical: K(M)
|
|
2455
2460
|
});
|
|
2456
2461
|
},
|
|
2457
|
-
update: (b) =>
|
|
2462
|
+
update: (b) => N({}, b),
|
|
2458
2463
|
destroy: q.bind(0)
|
|
2459
2464
|
};
|
|
2460
2465
|
return m.Nt((b, v, x) => {
|
|
2461
2466
|
S(v, x, b);
|
|
2462
|
-
}), ni(a,
|
|
2463
|
-
const { wt:
|
|
2464
|
-
w("updated", [
|
|
2467
|
+
}), ni(a, R), Y(xe(l), (b) => hs(l[b], 0, R)), ti(m.Ft.it, s().cancel, !c && e.cancel) ? (q(!0), R) : (m.qt(), _.qt(), w("initialized", [R]), m.Nt((b, v, x) => {
|
|
2468
|
+
const { wt: T, St: H, vt: B, Ht: k, Lt: E, It: M, bt: U, Tt: K } = b;
|
|
2469
|
+
w("updated", [R, {
|
|
2465
2470
|
updateHints: {
|
|
2466
|
-
sizeChanged:
|
|
2467
|
-
directionChanged:
|
|
2471
|
+
sizeChanged: T,
|
|
2472
|
+
directionChanged: H,
|
|
2468
2473
|
heightIntrinsicChanged: B,
|
|
2469
|
-
overflowEdgeChanged:
|
|
2474
|
+
overflowEdgeChanged: k,
|
|
2470
2475
|
overflowAmountChanged: E,
|
|
2471
|
-
overflowStyleChanged:
|
|
2476
|
+
overflowStyleChanged: M,
|
|
2472
2477
|
contentMutation: U,
|
|
2473
|
-
hostMutation:
|
|
2478
|
+
hostMutation: K
|
|
2474
2479
|
},
|
|
2475
2480
|
changedOptions: v,
|
|
2476
2481
|
force: x
|
|
2477
2482
|
}]);
|
|
2478
|
-
}),
|
|
2483
|
+
}), R.update(!0), R);
|
|
2479
2484
|
}
|
|
2480
2485
|
return d;
|
|
2481
2486
|
};
|
|
@@ -2484,10 +2489,10 @@ nt.plugin = (e) => {
|
|
|
2484
2489
|
};
|
|
2485
2490
|
nt.valid = (e) => {
|
|
2486
2491
|
const t = e && e.elements, n = ze(t) && t();
|
|
2487
|
-
return
|
|
2492
|
+
return Tn(n) && !!us(n.target);
|
|
2488
2493
|
};
|
|
2489
2494
|
nt.env = () => {
|
|
2490
|
-
const { k: e, I: t, A: n, V: o, Y: s, H: r, B:
|
|
2495
|
+
const { k: e, I: t, A: n, V: o, Y: s, H: r, B: i, U: l, W: c, q: a, F: d, G: f, X: u } = _e();
|
|
2491
2496
|
return ce({}, {
|
|
2492
2497
|
scrollbarsSize: e,
|
|
2493
2498
|
scrollbarsOverlaid: t,
|
|
@@ -2495,9 +2500,9 @@ nt.env = () => {
|
|
|
2495
2500
|
rtlScrollBehavior: o,
|
|
2496
2501
|
flexboxGlue: s,
|
|
2497
2502
|
cssCustomProperties: r,
|
|
2498
|
-
scrollTimeline:
|
|
2503
|
+
scrollTimeline: i,
|
|
2499
2504
|
staticDefaultInitialization: l,
|
|
2500
|
-
staticDefaultOptions:
|
|
2505
|
+
staticDefaultOptions: c,
|
|
2501
2506
|
getDefaultInitialization: a,
|
|
2502
2507
|
setDefaultInitialization: d,
|
|
2503
2508
|
getDefaultOptions: f,
|
|
@@ -2511,48 +2516,48 @@ const Bi = () => {
|
|
|
2511
2516
|
return [a, a];
|
|
2512
2517
|
}
|
|
2513
2518
|
let e, t;
|
|
2514
|
-
const n = window, o = typeof n.requestIdleCallback == "function", s = n.requestAnimationFrame, r = n.cancelAnimationFrame,
|
|
2519
|
+
const n = window, o = typeof n.requestIdleCallback == "function", s = n.requestAnimationFrame, r = n.cancelAnimationFrame, i = o ? n.requestIdleCallback : s, l = o ? n.cancelIdleCallback : r, c = () => {
|
|
2515
2520
|
l(e), r(t);
|
|
2516
2521
|
};
|
|
2517
2522
|
return [
|
|
2518
2523
|
(a, d) => {
|
|
2519
|
-
|
|
2524
|
+
c(), e = i(
|
|
2520
2525
|
o ? () => {
|
|
2521
|
-
|
|
2526
|
+
c(), t = s(a);
|
|
2522
2527
|
} : a,
|
|
2523
2528
|
typeof d == "object" ? d : { timeout: 2233 }
|
|
2524
2529
|
);
|
|
2525
2530
|
},
|
|
2526
|
-
|
|
2531
|
+
c
|
|
2527
2532
|
];
|
|
2528
2533
|
}, vs = (e) => {
|
|
2529
2534
|
let t = null, n, o, s;
|
|
2530
|
-
const r =
|
|
2535
|
+
const r = Gt(e || {}), [i, l] = Bi();
|
|
2531
2536
|
return st(
|
|
2532
2537
|
() => {
|
|
2533
|
-
var
|
|
2534
|
-
return
|
|
2538
|
+
var c;
|
|
2539
|
+
return G((c = r.value) == null ? void 0 : c.defer);
|
|
2535
2540
|
},
|
|
2536
|
-
(
|
|
2537
|
-
s =
|
|
2541
|
+
(c) => {
|
|
2542
|
+
s = c;
|
|
2538
2543
|
},
|
|
2539
2544
|
{ deep: !0, immediate: !0 }
|
|
2540
2545
|
), st(
|
|
2541
2546
|
() => {
|
|
2542
|
-
var
|
|
2543
|
-
return
|
|
2547
|
+
var c;
|
|
2548
|
+
return G((c = r.value) == null ? void 0 : c.options);
|
|
2544
2549
|
},
|
|
2545
|
-
(
|
|
2546
|
-
n =
|
|
2550
|
+
(c) => {
|
|
2551
|
+
n = c, nt.valid(t) && t.options(n || {}, !0);
|
|
2547
2552
|
},
|
|
2548
2553
|
{ deep: !0, immediate: !0 }
|
|
2549
2554
|
), st(
|
|
2550
2555
|
() => {
|
|
2551
|
-
var
|
|
2552
|
-
return
|
|
2556
|
+
var c;
|
|
2557
|
+
return G((c = r.value) == null ? void 0 : c.events);
|
|
2553
2558
|
},
|
|
2554
|
-
(
|
|
2555
|
-
o =
|
|
2559
|
+
(c) => {
|
|
2560
|
+
o = c, nt.valid(t) && t.on(
|
|
2556
2561
|
o || {},
|
|
2557
2562
|
!0
|
|
2558
2563
|
);
|
|
@@ -2561,11 +2566,11 @@ const Bi = () => {
|
|
|
2561
2566
|
), No(() => {
|
|
2562
2567
|
l(), t == null || t.destroy();
|
|
2563
2568
|
}), [
|
|
2564
|
-
(
|
|
2569
|
+
(c) => {
|
|
2565
2570
|
if (nt.valid(t))
|
|
2566
2571
|
return t;
|
|
2567
|
-
const a = () => t = nt(
|
|
2568
|
-
s ?
|
|
2572
|
+
const a = () => t = nt(c, n || {}, o || {});
|
|
2573
|
+
s ? i(a, s) : a();
|
|
2569
2574
|
},
|
|
2570
2575
|
() => t
|
|
2571
2576
|
];
|
|
@@ -2584,7 +2589,7 @@ const Bi = () => {
|
|
|
2584
2589
|
updated: "osUpdated",
|
|
2585
2590
|
destroyed: "osDestroyed",
|
|
2586
2591
|
scroll: "osScroll"
|
|
2587
|
-
}, { element: r, options:
|
|
2592
|
+
}, { element: r, options: i, events: l, defer: c } = ks(o), a = Gt(null), d = Gt(null), f = re(), u = re(!1), [p, y] = vs({ options: i, events: f, defer: c });
|
|
2588
2593
|
return t({
|
|
2589
2594
|
osInstance: y,
|
|
2590
2595
|
getElement: () => a.value
|
|
@@ -2603,7 +2608,7 @@ const Bi = () => {
|
|
|
2603
2608
|
return (m = y()) == null ? void 0 : m.destroy();
|
|
2604
2609
|
}));
|
|
2605
2610
|
}), st(
|
|
2606
|
-
() =>
|
|
2611
|
+
() => G(l),
|
|
2607
2612
|
(h) => {
|
|
2608
2613
|
const w = h || {};
|
|
2609
2614
|
f.value = Object.keys(s).reduce((D, m) => {
|
|
@@ -2618,13 +2623,13 @@ const Bi = () => {
|
|
|
2618
2623
|
}, {});
|
|
2619
2624
|
},
|
|
2620
2625
|
{ deep: !0, immediate: !0 }
|
|
2621
|
-
), (h, w) => (O(),
|
|
2626
|
+
), (h, w) => (O(), Q(Ve(G(r)), {
|
|
2622
2627
|
"data-overlayscrollbars-initialize": "",
|
|
2623
2628
|
ref_key: "elementRef",
|
|
2624
2629
|
ref: a
|
|
2625
2630
|
}, {
|
|
2626
|
-
default:
|
|
2627
|
-
u.value ? (O(),
|
|
2631
|
+
default: se(() => [
|
|
2632
|
+
u.value ? (O(), oe("div", {
|
|
2628
2633
|
key: 0,
|
|
2629
2634
|
ref_key: "slotRef",
|
|
2630
2635
|
ref: d,
|
|
@@ -2646,7 +2651,7 @@ const Bi = () => {
|
|
|
2646
2651
|
// 'never', 'scroll', 'leave' and 'move' - когда гасить
|
|
2647
2652
|
},
|
|
2648
2653
|
setup(e) {
|
|
2649
|
-
const t = e, n =
|
|
2654
|
+
const t = e, n = re(null), [o, s] = vs({
|
|
2650
2655
|
defer: !0,
|
|
2651
2656
|
events: {
|
|
2652
2657
|
initialized: () => {
|
|
@@ -2670,7 +2675,7 @@ const Bi = () => {
|
|
|
2670
2675
|
autoHide: t.autoHide
|
|
2671
2676
|
}
|
|
2672
2677
|
});
|
|
2673
|
-
}), Ao(() => o(document.body)), (r,
|
|
2678
|
+
}), Ao(() => o(document.body)), (r, i) => j(r.$slots, "default");
|
|
2674
2679
|
}
|
|
2675
2680
|
};
|
|
2676
2681
|
const zi = {
|
|
@@ -2683,7 +2688,7 @@ const zi = {
|
|
|
2683
2688
|
// 'never', 'scroll', 'leave' and 'move' - когда гасить
|
|
2684
2689
|
},
|
|
2685
2690
|
setup(e) {
|
|
2686
|
-
const t = e, n =
|
|
2691
|
+
const t = e, n = re(null);
|
|
2687
2692
|
return st(() => et.state.theme, (o) => {
|
|
2688
2693
|
n.value.osInstance().options({
|
|
2689
2694
|
scrollbars: {
|
|
@@ -2691,7 +2696,7 @@ const zi = {
|
|
|
2691
2696
|
autoHide: t.autoHide
|
|
2692
2697
|
}
|
|
2693
2698
|
});
|
|
2694
|
-
}), (o, s) => (O(),
|
|
2699
|
+
}), (o, s) => (O(), Q(G(Li), {
|
|
2695
2700
|
class: "os-vue",
|
|
2696
2701
|
ref_key: "osRef",
|
|
2697
2702
|
ref: n,
|
|
@@ -2704,14 +2709,14 @@ const zi = {
|
|
|
2704
2709
|
events: {},
|
|
2705
2710
|
defer: ""
|
|
2706
2711
|
}, {
|
|
2707
|
-
default:
|
|
2712
|
+
default: se(() => [
|
|
2708
2713
|
j(o.$slots, "default", {}, void 0, !0)
|
|
2709
2714
|
]),
|
|
2710
2715
|
_: 3
|
|
2711
2716
|
}, 8, ["options"]));
|
|
2712
2717
|
}
|
|
2713
2718
|
}, cc = /* @__PURE__ */ Dt(zi, [["__scopeId", "data-v-9b322173"]]);
|
|
2714
|
-
const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { class: "modal-header" }, Mi = { class: "modal-title" }, Pi = { class: "modal-body" },
|
|
2719
|
+
const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { class: "modal-header" }, Mi = { class: "modal-title" }, Pi = { class: "modal-body" }, Fi = { class: "modal-footer" }, Ri = {
|
|
2715
2720
|
__name: "DModal",
|
|
2716
2721
|
props: {
|
|
2717
2722
|
show: Boolean,
|
|
@@ -2721,25 +2726,25 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
|
|
|
2721
2726
|
emits: ["open", "close"],
|
|
2722
2727
|
setup(e, { expose: t, emit: n }) {
|
|
2723
2728
|
const o = e;
|
|
2724
|
-
Is((
|
|
2729
|
+
Is((c) => ({
|
|
2725
2730
|
"558e9e46": o.width
|
|
2726
2731
|
}));
|
|
2727
|
-
const s =
|
|
2732
|
+
const s = re(null), r = re(!1);
|
|
2728
2733
|
r.value = o == null ? void 0 : o.show;
|
|
2729
|
-
const
|
|
2734
|
+
const i = () => {
|
|
2730
2735
|
r.value = !0, n("open", s);
|
|
2731
2736
|
}, l = () => {
|
|
2732
2737
|
r.value = !1, n("close", s);
|
|
2733
2738
|
};
|
|
2734
2739
|
return t({
|
|
2735
|
-
show:
|
|
2740
|
+
show: i,
|
|
2736
2741
|
hide: l
|
|
2737
|
-
}), (
|
|
2742
|
+
}), (c, a) => {
|
|
2738
2743
|
const d = Mo("keydown");
|
|
2739
|
-
return O(),
|
|
2744
|
+
return O(), Q(Po, { to: "body" }, [
|
|
2740
2745
|
ct(Lo, { name: "fade" }, {
|
|
2741
|
-
default:
|
|
2742
|
-
r.value ? Mn((O(),
|
|
2746
|
+
default: se(() => [
|
|
2747
|
+
r.value ? Mn((O(), oe("div", {
|
|
2743
2748
|
key: 0,
|
|
2744
2749
|
ref_key: "modalRef",
|
|
2745
2750
|
ref: s,
|
|
@@ -2749,14 +2754,14 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
|
|
|
2749
2754
|
ae("div", Hi, [
|
|
2750
2755
|
ae("div", Ai, [
|
|
2751
2756
|
ae("h5", Mi, [
|
|
2752
|
-
j(
|
|
2757
|
+
j(c.$slots, "modal-title", {}, void 0, !0)
|
|
2753
2758
|
])
|
|
2754
2759
|
]),
|
|
2755
2760
|
ae("div", Pi, [
|
|
2756
|
-
j(
|
|
2761
|
+
j(c.$slots, "default", {}, void 0, !0)
|
|
2757
2762
|
]),
|
|
2758
|
-
ae("div",
|
|
2759
|
-
j(
|
|
2763
|
+
ae("div", Fi, [
|
|
2764
|
+
j(c.$slots, "modal-footer", {}, void 0, !0)
|
|
2760
2765
|
])
|
|
2761
2766
|
])
|
|
2762
2767
|
])
|
|
@@ -2769,8 +2774,8 @@ const Ni = { class: "modal-dialog" }, Hi = { class: "modal-content" }, Ai = { cl
|
|
|
2769
2774
|
]);
|
|
2770
2775
|
};
|
|
2771
2776
|
}
|
|
2772
|
-
}, ys = /* @__PURE__ */ Dt(
|
|
2773
|
-
function
|
|
2777
|
+
}, ys = /* @__PURE__ */ Dt(Ri, [["__scopeId", "data-v-82cadd63"]]), mt = Gt();
|
|
2778
|
+
function Hn(e) {
|
|
2774
2779
|
e === void 0 && (e = mt.value.comp.returnValue()), mt.value.resolve(e), mt.value = null;
|
|
2775
2780
|
}
|
|
2776
2781
|
function bs(e, t, n = "default") {
|
|
@@ -2794,7 +2799,7 @@ Ho({
|
|
|
2794
2799
|
transitionAttrs: Object
|
|
2795
2800
|
},
|
|
2796
2801
|
setup() {
|
|
2797
|
-
const e =
|
|
2802
|
+
const e = re();
|
|
2798
2803
|
return st(e, () => {
|
|
2799
2804
|
mt.value && (mt.value.comp = e.value);
|
|
2800
2805
|
}), {
|
|
@@ -2813,19 +2818,19 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2813
2818
|
const n = e;
|
|
2814
2819
|
return t({
|
|
2815
2820
|
returnValue: () => !0
|
|
2816
|
-
}), (s, r) => (O(),
|
|
2817
|
-
"modal-title":
|
|
2821
|
+
}), (s, r) => (O(), Q(ys, { show: !0 }, {
|
|
2822
|
+
"modal-title": se(() => [
|
|
2818
2823
|
tt(ot(n.title), 1)
|
|
2819
2824
|
]),
|
|
2820
|
-
default:
|
|
2825
|
+
default: se(() => [
|
|
2821
2826
|
tt(ot(n.message), 1)
|
|
2822
2827
|
]),
|
|
2823
|
-
"modal-footer":
|
|
2828
|
+
"modal-footer": se(() => [
|
|
2824
2829
|
ae("div", Wi, [
|
|
2825
|
-
ct(
|
|
2826
|
-
onClick: r[0] || (r[0] = (
|
|
2830
|
+
ct(Kt, {
|
|
2831
|
+
onClick: r[0] || (r[0] = (i) => G(Hn)())
|
|
2827
2832
|
}, {
|
|
2828
|
-
default:
|
|
2833
|
+
default: se(() => [
|
|
2829
2834
|
tt("Закрыть")
|
|
2830
2835
|
]),
|
|
2831
2836
|
_: 1
|
|
@@ -2845,28 +2850,28 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2845
2850
|
const n = e;
|
|
2846
2851
|
return t({
|
|
2847
2852
|
returnValue: () => !0
|
|
2848
|
-
}), (s, r) => (O(),
|
|
2849
|
-
"modal-title":
|
|
2853
|
+
}), (s, r) => (O(), Q(ys, { show: !0 }, {
|
|
2854
|
+
"modal-title": se(() => [
|
|
2850
2855
|
tt(ot(n.title), 1)
|
|
2851
2856
|
]),
|
|
2852
|
-
default:
|
|
2857
|
+
default: se(() => [
|
|
2853
2858
|
tt(ot(n.message), 1)
|
|
2854
2859
|
]),
|
|
2855
|
-
"modal-footer":
|
|
2860
|
+
"modal-footer": se(() => [
|
|
2856
2861
|
ae("div", Ui, [
|
|
2857
|
-
ct(
|
|
2858
|
-
onClick: r[0] || (r[0] = (
|
|
2862
|
+
ct(Kt, {
|
|
2863
|
+
onClick: r[0] || (r[0] = (i) => G(Hn)())
|
|
2859
2864
|
}, {
|
|
2860
|
-
default:
|
|
2865
|
+
default: se(() => [
|
|
2861
2866
|
tt("Да")
|
|
2862
2867
|
]),
|
|
2863
2868
|
_: 1
|
|
2864
2869
|
}),
|
|
2865
|
-
ct(
|
|
2870
|
+
ct(Kt, {
|
|
2866
2871
|
class: "button-red",
|
|
2867
|
-
onClick: r[1] || (r[1] = (
|
|
2872
|
+
onClick: r[1] || (r[1] = (i) => G(Hn)(!1))
|
|
2868
2873
|
}, {
|
|
2869
|
-
default:
|
|
2874
|
+
default: se(() => [
|
|
2870
2875
|
tt("Нет")
|
|
2871
2876
|
]),
|
|
2872
2877
|
_: 1
|
|
@@ -2885,42 +2890,46 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2885
2890
|
noSelect: {
|
|
2886
2891
|
type: Boolean,
|
|
2887
2892
|
default: !0
|
|
2888
|
-
}
|
|
2893
|
+
},
|
|
2894
|
+
renderItemTitle: Function,
|
|
2895
|
+
beforeItem: Function
|
|
2889
2896
|
},
|
|
2890
2897
|
emits: ["select"],
|
|
2891
2898
|
setup(e, { expose: t, emit: n }) {
|
|
2892
2899
|
const o = e;
|
|
2893
|
-
let s =
|
|
2894
|
-
const
|
|
2900
|
+
let s = re(null), r = re(!1);
|
|
2901
|
+
const i = () => {
|
|
2895
2902
|
rt.emit("menu-show-request"), r.value = !0;
|
|
2896
2903
|
}, l = () => {
|
|
2897
2904
|
r.value = !1;
|
|
2898
|
-
},
|
|
2905
|
+
}, c = () => r.value;
|
|
2899
2906
|
rt.on("menu-show-request", () => {
|
|
2900
2907
|
var f;
|
|
2901
2908
|
(f = s.value) == null || f.collapseAll(), l();
|
|
2902
2909
|
}), t({
|
|
2903
|
-
show:
|
|
2910
|
+
show: i,
|
|
2904
2911
|
hide: l,
|
|
2905
2912
|
elementSize: () => s.value.elementSize(),
|
|
2906
|
-
isShowed:
|
|
2913
|
+
isShowed: c
|
|
2907
2914
|
});
|
|
2908
2915
|
const d = (f) => {
|
|
2909
2916
|
n("select", f), f.model.children || l();
|
|
2910
2917
|
};
|
|
2911
2918
|
return (f, u) => {
|
|
2912
2919
|
const p = Mo("click-outside");
|
|
2913
|
-
return O(),
|
|
2914
|
-
|
|
2920
|
+
return O(), Q(Po, { to: "body" }, [
|
|
2921
|
+
G(r) ? Mn((O(), Q(Wo, {
|
|
2915
2922
|
key: 0,
|
|
2916
2923
|
ref_key: "treeRef",
|
|
2917
2924
|
ref: s,
|
|
2918
2925
|
items: o.items,
|
|
2919
2926
|
"no-select": o.noSelect,
|
|
2920
2927
|
class: Oe(o.class),
|
|
2921
|
-
style:
|
|
2922
|
-
onSelect: d
|
|
2923
|
-
|
|
2928
|
+
style: Te(o.style),
|
|
2929
|
+
onSelect: d,
|
|
2930
|
+
"render-title": o.renderItemTitle,
|
|
2931
|
+
"before-item": o.beforeItem
|
|
2932
|
+
}, null, 8, ["items", "no-select", "class", "style", "render-title", "before-item"])), [
|
|
2924
2933
|
[p, () => l()]
|
|
2925
2934
|
]) : ue("", !0)
|
|
2926
2935
|
]);
|
|
@@ -2935,33 +2944,35 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2935
2944
|
default: null
|
|
2936
2945
|
},
|
|
2937
2946
|
items: Array,
|
|
2938
|
-
menuStyle: Object
|
|
2947
|
+
menuStyle: Object,
|
|
2948
|
+
renderItemTitle: Function,
|
|
2949
|
+
beforeItem: Function
|
|
2939
2950
|
},
|
|
2940
2951
|
emits: ["select"],
|
|
2941
2952
|
setup(e, { expose: t, emit: n }) {
|
|
2942
|
-
const o = e, s =
|
|
2953
|
+
const o = e, s = re(null), r = re(null), i = re(0), l = re(0), c = () => {
|
|
2943
2954
|
if (s.value.isShowed()) {
|
|
2944
2955
|
s.value.hide();
|
|
2945
2956
|
return;
|
|
2946
2957
|
}
|
|
2947
|
-
s.value.show(),
|
|
2958
|
+
s.value.show(), Fo(() => {
|
|
2948
2959
|
const f = s.value.elementSize(), u = r.value.elementSize(), p = window.innerWidth, y = window.innerHeight;
|
|
2949
|
-
|
|
2960
|
+
i.value = p - (u.x + u.width) < f.width ? u.left - f.width + u.width : u.left, l.value = y - (u.y + u.height) < f.height ? u.top - f.height - 5 : u.height + u.top + 5;
|
|
2950
2961
|
});
|
|
2951
2962
|
}, a = (f) => {
|
|
2952
2963
|
n("select", f);
|
|
2953
|
-
}, d =
|
|
2964
|
+
}, d = F(() => ({ left: i.value + "px", top: l.value + "px", ...o.menuStyle }));
|
|
2954
2965
|
return t({
|
|
2955
|
-
show:
|
|
2956
|
-
}), (f, u) => (O(),
|
|
2957
|
-
ct(
|
|
2966
|
+
show: c
|
|
2967
|
+
}), (f, u) => (O(), oe("div", qi, [
|
|
2968
|
+
ct(Kt, {
|
|
2958
2969
|
ref_key: "buttonRef",
|
|
2959
2970
|
ref: r,
|
|
2960
2971
|
class: Oe(o.class),
|
|
2961
2972
|
icon: o.icon,
|
|
2962
|
-
onClick: Ue(
|
|
2973
|
+
onClick: Ue(c, ["stop", "prevent"])
|
|
2963
2974
|
}, {
|
|
2964
|
-
default:
|
|
2975
|
+
default: se(() => [
|
|
2965
2976
|
j(f.$slots, "default")
|
|
2966
2977
|
]),
|
|
2967
2978
|
_: 3
|
|
@@ -2971,53 +2982,59 @@ const Wi = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2971
2982
|
ref: s,
|
|
2972
2983
|
items: o.items,
|
|
2973
2984
|
class: "dropdown-menu",
|
|
2974
|
-
style:
|
|
2985
|
+
style: Te(d.value),
|
|
2975
2986
|
"no-select": !0,
|
|
2976
|
-
onSelect: a
|
|
2977
|
-
|
|
2987
|
+
onSelect: a,
|
|
2988
|
+
"render-item-title": o.renderItemTitle,
|
|
2989
|
+
"before-item": o.beforeItem
|
|
2990
|
+
}, null, 8, ["items", "style", "render-item-title", "before-item"])
|
|
2978
2991
|
]));
|
|
2979
2992
|
}
|
|
2980
2993
|
}, ac = {
|
|
2981
2994
|
__name: "DContextMenu",
|
|
2982
2995
|
props: {
|
|
2983
|
-
items: Array
|
|
2996
|
+
items: Array,
|
|
2997
|
+
renderItemTitle: Function,
|
|
2998
|
+
beforeItem: Function
|
|
2984
2999
|
},
|
|
2985
3000
|
emits: ["select"],
|
|
2986
3001
|
setup(e, { expose: t, emit: n }) {
|
|
2987
|
-
const o = e, s =
|
|
3002
|
+
const o = e, s = re(null), r = re(0), i = re(0), l = F(() => ({
|
|
2988
3003
|
left: r.value + "px",
|
|
2989
|
-
top:
|
|
2990
|
-
})),
|
|
2991
|
-
s.value.show(),
|
|
3004
|
+
top: i.value + "px"
|
|
3005
|
+
})), c = (d) => {
|
|
3006
|
+
s.value.show(), Fo(() => {
|
|
2992
3007
|
const f = s.value.elementSize(), u = window.innerWidth, p = window.innerHeight;
|
|
2993
|
-
r.value = u - d.pageX < f.width ? d.pageX - f.width : d.pageX,
|
|
3008
|
+
r.value = u - d.pageX < f.width ? d.pageX - f.width : d.pageX, i.value = p - d.pageY < f.height ? d.pageY - f.height : d.pageY;
|
|
2994
3009
|
});
|
|
2995
3010
|
}, a = (d) => {
|
|
2996
3011
|
n("select", d);
|
|
2997
3012
|
};
|
|
2998
3013
|
return t({
|
|
2999
|
-
show:
|
|
3000
|
-
}), (d, f) => (O(),
|
|
3014
|
+
show: c
|
|
3015
|
+
}), (d, f) => (O(), Q(ws, {
|
|
3001
3016
|
ref_key: "dMenuRef",
|
|
3002
3017
|
ref: s,
|
|
3003
3018
|
onSelect: a,
|
|
3004
3019
|
items: o.items,
|
|
3005
|
-
style:
|
|
3020
|
+
style: Te(l.value),
|
|
3006
3021
|
class: "context-menu",
|
|
3007
|
-
"no-select": !0
|
|
3008
|
-
|
|
3022
|
+
"no-select": !0,
|
|
3023
|
+
"render-item-title": o.renderItemTitle,
|
|
3024
|
+
"before-item": o.beforeItem
|
|
3025
|
+
}, null, 8, ["items", "style", "render-item-title", "before-item"]));
|
|
3009
3026
|
}
|
|
3010
3027
|
}, ji = {}, Xi = { class: "d-panel" };
|
|
3011
3028
|
function Gi(e, t) {
|
|
3012
|
-
return O(),
|
|
3029
|
+
return O(), oe("div", Xi, [
|
|
3013
3030
|
j(e.$slots, "default")
|
|
3014
3031
|
]);
|
|
3015
3032
|
}
|
|
3016
3033
|
const Ki = /* @__PURE__ */ Dt(ji, [["render", Gi]]), Zi = { class: "card-header" }, Ji = { class: "modal-title" }, Qi = { class: "card-body" }, ec = { class: "card-footer" }, dc = {
|
|
3017
3034
|
__name: "DCard",
|
|
3018
3035
|
setup(e) {
|
|
3019
|
-
return (t, n) => (O(),
|
|
3020
|
-
default:
|
|
3036
|
+
return (t, n) => (O(), Q(Ki, { class: "d-card" }, {
|
|
3037
|
+
default: se(() => [
|
|
3021
3038
|
ae("div", Zi, [
|
|
3022
3039
|
ae("h5", Ji, [
|
|
3023
3040
|
j(t.$slots, "title")
|
|
@@ -3054,7 +3071,7 @@ export {
|
|
|
3054
3071
|
oc as DAccordion,
|
|
3055
3072
|
Vi as DAlertDialog,
|
|
3056
3073
|
Ns as DBadge,
|
|
3057
|
-
|
|
3074
|
+
Kt as DButton,
|
|
3058
3075
|
dc as DCard,
|
|
3059
3076
|
Hs as DCollapse,
|
|
3060
3077
|
rc as DConfigProvider,
|
|
@@ -3078,10 +3095,10 @@ export {
|
|
|
3078
3095
|
Ki as DPanel,
|
|
3079
3096
|
cc as DScroll,
|
|
3080
3097
|
ic as DScrollProvider,
|
|
3081
|
-
|
|
3098
|
+
Zt as DTransferStore,
|
|
3082
3099
|
Wo as DTree,
|
|
3083
3100
|
Js as DTreeItem,
|
|
3084
|
-
|
|
3101
|
+
L as DTreeStore,
|
|
3085
3102
|
uc as alert,
|
|
3086
3103
|
pc as clickOutside,
|
|
3087
3104
|
fc as confirm,
|