@harbour-enterprises/superdoc 0.8.28 → 0.8.29
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/chunks/@harbour-enterprises/{super-editor-CB8DAPXW.es.js → super-editor-D1Xk5Yrd.es.js} +3 -3
- package/dist/chunks/{super-editor.es-93vlhruz.cjs → super-editor.es-DOk_Y-T9.cjs} +2 -2
- package/dist/style.css +9 -9
- package/dist/super-editor/chunks/{converter-BgR6-bU6.js → converter-14D5Azcr.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-TEkS1DUm.js → docx-zipper-DgX4zdaV.js} +1 -1
- package/dist/super-editor/chunks/{editor-BcxLdJCV.js → editor-CPMoG7gE.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-B0DE6Jyp.js → toolbar-BDRxH8WI.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +308 -308
- package/dist/superdoc.umd.js +5 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Ml, a as Rl, d as Bl, b as li, j as ci, v as Fl, f as Nl, p as zl, c as Ll } from "./chunks/@harbour-enterprises/super-editor-
|
|
2
|
-
import { F as My, A as Ry, t as By } from "./chunks/@harbour-enterprises/super-editor-
|
|
1
|
+
import { T as Ml, a as Rl, d as Bl, b as li, j as ci, v as Fl, f as Nl, p as zl, c as Ll } from "./chunks/@harbour-enterprises/super-editor-D1Xk5Yrd.es.js";
|
|
2
|
+
import { F as My, A as Ry, t as By } from "./chunks/@harbour-enterprises/super-editor-D1Xk5Yrd.es.js";
|
|
3
3
|
import { X as Ms, r as E, Y as Je, Z as ee, _ as on, a as A, $ as rn, a0 as zo, B as Ce, i as we, p as St, l as Ie, v as te, a1 as Hl, K as Ge, Q as He, a2 as jl, a3 as Vl, a4 as ui, g as Lt, M as An, L as So, j as et, k as ut, h as Lo, S as Ul, q as Wl, y as Eo, F as je, P as Mr, m as Ee, C as st, E as En, A as D, U as Kl, R as Gl, V as ql, J as Ct, N as Cn, D as Yn, O as Xl, I as Yl, T as Jl, b as K, o as j, t as at, u as ht, x as Rs, f as ae, z as Qe, e as he, s as it, w as ft, n as jn, a5 as Bs, d as Dt, c as Fs, W as Zl, a6 as Ql } from "./chunks/vue-BEXwSXMc.es.js";
|
|
4
4
|
import { B as Fn } from "./chunks/jszip-B3_nOU0X.es.js";
|
|
5
5
|
import { B as ec } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -30,7 +30,7 @@ const Qt = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
30
30
|
const r = await (await fetch(e)).blob();
|
|
31
31
|
return new File([r], t, { type: n });
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Oy(e, t) {
|
|
34
34
|
const n = e.split(".").map(Number), o = t.split(".").map(Number);
|
|
35
35
|
for (let r = 0; r < Math.max(n.length, o.length); r++) {
|
|
36
36
|
const i = n[r] || 0, s = o[r] || 0;
|
|
@@ -830,18 +830,18 @@ async function Sc(e) {
|
|
|
830
830
|
Ae("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
let
|
|
833
|
+
let Ot;
|
|
834
834
|
function Ec() {
|
|
835
|
-
|
|
835
|
+
Ot || (Ot = document.createElement("input"), Ot.type = "file", Ot.accept = ".json");
|
|
836
836
|
function e() {
|
|
837
837
|
return new Promise((t, n) => {
|
|
838
|
-
|
|
839
|
-
const o =
|
|
838
|
+
Ot.onchange = async () => {
|
|
839
|
+
const o = Ot.files;
|
|
840
840
|
if (!o)
|
|
841
841
|
return t(null);
|
|
842
842
|
const r = o.item(0);
|
|
843
843
|
return t(r ? { text: await r.text(), file: r } : null);
|
|
844
|
-
},
|
|
844
|
+
}, Ot.oncancel = () => t(null), Ot.onerror = n, Ot.click();
|
|
845
845
|
});
|
|
846
846
|
}
|
|
847
847
|
return e;
|
|
@@ -929,7 +929,7 @@ function Ic(e) {
|
|
|
929
929
|
newValue: e.newValue
|
|
930
930
|
} : {};
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Oc(e) {
|
|
933
933
|
switch (e) {
|
|
934
934
|
case yt.direct:
|
|
935
935
|
return "mutation";
|
|
@@ -942,7 +942,7 @@ function kc(e) {
|
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
let yn = !0;
|
|
945
|
-
const go = [], qt = "pinia:mutations", ze = "pinia", { assign:
|
|
945
|
+
const go = [], qt = "pinia:mutations", ze = "pinia", { assign: kc } = Object, $o = (e) => "🍍 " + e;
|
|
946
946
|
function Pc(e, t) {
|
|
947
947
|
Us({
|
|
948
948
|
id: "dev.esm.pinia",
|
|
@@ -1169,8 +1169,8 @@ function Dc(e, t) {
|
|
|
1169
1169
|
return;
|
|
1170
1170
|
const c = {
|
|
1171
1171
|
time: o(),
|
|
1172
|
-
title:
|
|
1173
|
-
data:
|
|
1172
|
+
title: Oc(a),
|
|
1173
|
+
data: kc({ store: dt(t.$id) }, Ic(s)),
|
|
1174
1174
|
groupId: jt
|
|
1175
1175
|
};
|
|
1176
1176
|
a === yt.patchFunction ? c.subtitle = "⤵️" : a === yt.patchObject ? c.subtitle = "🧩" : s && !Array.isArray(s) && (c.subtitle = s.type), s && (c.data["rawEvent(s)"] = {
|
|
@@ -1355,7 +1355,7 @@ function gr(e, t, n = {}, o, r, i) {
|
|
|
1355
1355
|
y === _ && (c = !0);
|
|
1356
1356
|
}), u = !0, pn(f, C, o.state.value[e]);
|
|
1357
1357
|
}
|
|
1358
|
-
const
|
|
1358
|
+
const O = i ? function() {
|
|
1359
1359
|
const { state: C } = n, _ = C ? C() : {};
|
|
1360
1360
|
this.$patch((z) => {
|
|
1361
1361
|
rt(z, _);
|
|
@@ -1397,7 +1397,7 @@ function gr(e, t, n = {}, o, r, i) {
|
|
|
1397
1397
|
return H instanceof Promise ? H.then((L) => (pn(M, L), L)).catch((L) => (pn(x, L), Promise.reject(L))) : (pn(M, H), H);
|
|
1398
1398
|
};
|
|
1399
1399
|
return _[bi] = !0, _[Qo] = C, _;
|
|
1400
|
-
},
|
|
1400
|
+
}, k = /* @__PURE__ */ Je({
|
|
1401
1401
|
actions: {},
|
|
1402
1402
|
getters: {},
|
|
1403
1403
|
state: [],
|
|
@@ -1408,7 +1408,7 @@ function gr(e, t, n = {}, o, r, i) {
|
|
|
1408
1408
|
$id: e,
|
|
1409
1409
|
$onAction: gi.bind(null, h),
|
|
1410
1410
|
$patch: m,
|
|
1411
|
-
$reset:
|
|
1411
|
+
$reset: O,
|
|
1412
1412
|
$subscribe(v, C = {}) {
|
|
1413
1413
|
const _ = gi(f, v, C.detached, () => z()), z = s.run(() => Ie(() => o.state.value[e], (M) => {
|
|
1414
1414
|
(C.flush === "sync" ? u : c) && v({
|
|
@@ -1422,7 +1422,7 @@ function gr(e, t, n = {}, o, r, i) {
|
|
|
1422
1422
|
$dispose: P
|
|
1423
1423
|
}, d = Ge(ee.env.NODE_ENV !== "production" || ee.env.NODE_ENV !== "production" && ee.env.NODE_ENV !== "test" && Ht ? rt(
|
|
1424
1424
|
{
|
|
1425
|
-
_hmrPayload:
|
|
1425
|
+
_hmrPayload: k,
|
|
1426
1426
|
_customProperties: Je(/* @__PURE__ */ new Set())
|
|
1427
1427
|
// devtools custom properties
|
|
1428
1428
|
},
|
|
@@ -1435,11 +1435,11 @@ function gr(e, t, n = {}, o, r, i) {
|
|
|
1435
1435
|
for (const v in T) {
|
|
1436
1436
|
const C = T[v];
|
|
1437
1437
|
if (rn(C) && !yi(C) || zo(C))
|
|
1438
|
-
ee.env.NODE_ENV !== "production" && r ? no(w.value, v, Ce(T, v)) : i || (p && Fc(C) && (rn(C) ? C.value = p[v] : vr(C, p[v])), o.state.value[e][v] = C), ee.env.NODE_ENV !== "production" &&
|
|
1438
|
+
ee.env.NODE_ENV !== "production" && r ? no(w.value, v, Ce(T, v)) : i || (p && Fc(C) && (rn(C) ? C.value = p[v] : vr(C, p[v])), o.state.value[e][v] = C), ee.env.NODE_ENV !== "production" && k.state.push(v);
|
|
1439
1439
|
else if (typeof C == "function") {
|
|
1440
1440
|
const _ = ee.env.NODE_ENV !== "production" && r ? C : S(C, v);
|
|
1441
|
-
T[v] = _, ee.env.NODE_ENV !== "production" && (
|
|
1442
|
-
} else ee.env.NODE_ENV !== "production" && yi(C) && (
|
|
1441
|
+
T[v] = _, ee.env.NODE_ENV !== "production" && (k.actions[v] = C), a.actions[v] = C;
|
|
1442
|
+
} else ee.env.NODE_ENV !== "production" && yi(C) && (k.getters[v] = i ? (
|
|
1443
1443
|
// @ts-expect-error
|
|
1444
1444
|
n.getters[v]
|
|
1445
1445
|
) : C, Ht && (T._getters || // @ts-expect-error: same
|
|
@@ -1794,7 +1794,7 @@ function Yt(e) {
|
|
|
1794
1794
|
documentId: i,
|
|
1795
1795
|
page: 1,
|
|
1796
1796
|
selectionBounds: {}
|
|
1797
|
-
}),
|
|
1797
|
+
}), O = e.selection?.selectionBounds ? { ...e.selection.selectionBounds } : { top: 0, left: 0, right: 0, bottom: 0 }, P = E(e.trackedChange), S = E(e.trackedChangeType || null), k = E(e.trackedChangeText || null), I = E(e.deletedText || null), d = E(e.resolvedTime || null), b = E(e.resolvedByEmail || null), T = E(e.resolvedByName || null), v = ({ email: L, name: X, superdoc: ne }) => {
|
|
1798
1798
|
if (d.value) return;
|
|
1799
1799
|
if (d.value = Date.now(), b.value = L, T.value = X, P.value) {
|
|
1800
1800
|
const ge = { type: Mn.RESOLVED, comment: H() };
|
|
@@ -1865,7 +1865,7 @@ function Yt(e) {
|
|
|
1865
1865
|
commentText: y.value,
|
|
1866
1866
|
selection: m ? m.getValues() : null,
|
|
1867
1867
|
trackedChange: P.value,
|
|
1868
|
-
trackedChangeText:
|
|
1868
|
+
trackedChangeText: k.value,
|
|
1869
1869
|
trackedChangeType: S.value,
|
|
1870
1870
|
deletedText: I.value,
|
|
1871
1871
|
resolvedTime: d.value,
|
|
@@ -1888,11 +1888,11 @@ function Yt(e) {
|
|
|
1888
1888
|
isInternal: l,
|
|
1889
1889
|
commentText: y,
|
|
1890
1890
|
selection: m,
|
|
1891
|
-
floatingPosition:
|
|
1891
|
+
floatingPosition: O,
|
|
1892
1892
|
trackedChange: P,
|
|
1893
1893
|
deletedText: I,
|
|
1894
1894
|
trackedChangeType: S,
|
|
1895
|
-
trackedChangeText:
|
|
1895
|
+
trackedChangeText: k,
|
|
1896
1896
|
resolvedTime: d,
|
|
1897
1897
|
resolvedByEmail: b,
|
|
1898
1898
|
resolvedByName: T,
|
|
@@ -1908,7 +1908,7 @@ function Yt(e) {
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
function nu(e, t) {
|
|
1911
|
-
const n = e.id, o = P(e), r = e.data, i = t, s = e.state, a = e.role, l = E(null), c = E([]), u = E(!1), f = E(t.rulers), h = An(e.ydoc), g = An(e.provider), p = An(e.socket), w = E(e.isNewFile), y = An(null), m = (M) => y.value = M,
|
|
1911
|
+
const n = e.id, o = P(e), r = e.data, i = t, s = e.state, a = e.role, l = E(null), c = E([]), u = E(!1), f = E(t.rulers), h = An(e.ydoc), g = An(e.provider), p = An(e.socket), w = E(e.isNewFile), y = An(null), m = (M) => y.value = M, O = () => y.value;
|
|
1912
1912
|
function P({ type: M, data: x }) {
|
|
1913
1913
|
if (x?.type) return x.type;
|
|
1914
1914
|
if (M) return M in hi ? hi[M] : null;
|
|
@@ -1916,7 +1916,7 @@ function nu(e, t) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
const S = () => {
|
|
1918
1918
|
v.value = T.value, T.value = [];
|
|
1919
|
-
},
|
|
1919
|
+
}, k = () => {
|
|
1920
1920
|
T.value = v.value, console.debug("[superdoc] Restored comments:", T.value);
|
|
1921
1921
|
}, I = E(e.fields || []), d = E(e.fields?.map((M) => zc(M)) || []), b = E(e.annotations || []), T = E(C()), v = E(T.value);
|
|
1922
1922
|
function C() {
|
|
@@ -1947,9 +1947,9 @@ function nu(e, t) {
|
|
|
1947
1947
|
conversations: T,
|
|
1948
1948
|
// Actions
|
|
1949
1949
|
setEditor: m,
|
|
1950
|
-
getEditor:
|
|
1950
|
+
getEditor: O,
|
|
1951
1951
|
removeComments: S,
|
|
1952
|
-
restoreComments:
|
|
1952
|
+
restoreComments: k,
|
|
1953
1953
|
removeConversation: (M) => {
|
|
1954
1954
|
const x = T.value.findIndex((R) => R.conversationId === M);
|
|
1955
1955
|
x > -1 && T.value.splice(x, 1);
|
|
@@ -1985,13 +1985,13 @@ const Et = /* @__PURE__ */ Lr("superdoc", () => {
|
|
|
1985
1985
|
if (!d) return [];
|
|
1986
1986
|
for (let b of d)
|
|
1987
1987
|
try {
|
|
1988
|
-
let T = await
|
|
1988
|
+
let T = await O(b);
|
|
1989
1989
|
const v = nu(T, e.value);
|
|
1990
1990
|
n.value.push(v);
|
|
1991
1991
|
} catch (T) {
|
|
1992
1992
|
console.warn("[superdoc] Error initializing document:", b, "with error:", T, "Skipping document.");
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1994
|
+
}, O = async (d) => {
|
|
1995
1995
|
if (e.value?.modules.collaboration && !d.isNewFile)
|
|
1996
1996
|
return { ...d, data: null, url: null };
|
|
1997
1997
|
if (d.data) return d;
|
|
@@ -2054,7 +2054,7 @@ const Et = /* @__PURE__ */ Lr("superdoc", () => {
|
|
|
2054
2054
|
readOnly: !1,
|
|
2055
2055
|
allowResolve: !0,
|
|
2056
2056
|
showResolved: !1
|
|
2057
|
-
}), n = !1, o = {}, r = Mn, i = E(!1), s = E(!1), a = E(null), l = E(!1), c = E(null), u = E(null), f = E([]), h = E([]), g = /* @__PURE__ */ new Set([]), p = E(!0), w = E(""), y = E([]), m = E(!1),
|
|
2057
|
+
}), n = !1, o = {}, r = Mn, i = E(!1), s = E(!1), a = E(null), l = E(!1), c = E(null), u = E(null), f = E([]), h = E([]), g = /* @__PURE__ */ new Set([]), p = E(!0), w = E(""), y = E([]), m = E(!1), O = E([]), P = E({}), S = E(0), k = E([]), I = E([]), d = E(!1), b = E(!1), T = E([]), v = E(null), C = (V = {}) => {
|
|
2058
2058
|
const W = { ...t, ...V };
|
|
2059
2059
|
Object.assign(t, W), p.value = t.suppressInternalExternal || !1, V.comments && V.comments.length && (y.value = V.comments?.map((J) => Yt(J)) || []);
|
|
2060
2060
|
}, _ = (V) => V == null ? null : y.value.find((W) => W.commentId == V || W.importedId == V), z = (V) => {
|
|
@@ -2276,13 +2276,13 @@ const Et = /* @__PURE__ */ Lr("superdoc", () => {
|
|
|
2276
2276
|
commentsList: y,
|
|
2277
2277
|
isCommentsListVisible: m,
|
|
2278
2278
|
generalCommentIds: T,
|
|
2279
|
-
editorCommentIds:
|
|
2279
|
+
editorCommentIds: O,
|
|
2280
2280
|
commentsParentElement: a,
|
|
2281
2281
|
editorCommentPositions: P,
|
|
2282
2282
|
hasInitializedLocations: l,
|
|
2283
2283
|
// Floating comments
|
|
2284
2284
|
floatingCommentsOffset: S,
|
|
2285
|
-
sortedConversations:
|
|
2285
|
+
sortedConversations: k,
|
|
2286
2286
|
visibleConversations: I,
|
|
2287
2287
|
skipSelectionUpdate: d,
|
|
2288
2288
|
isFloatingCommentsReady: b,
|
|
@@ -2332,8 +2332,8 @@ function ou(e) {
|
|
|
2332
2332
|
after(m) {
|
|
2333
2333
|
m.bem.b = w, m.bem.els = y;
|
|
2334
2334
|
},
|
|
2335
|
-
$({ context: m, props:
|
|
2336
|
-
return p = typeof p == "string" ? p : p({ context: m, props:
|
|
2335
|
+
$({ context: m, props: O }) {
|
|
2336
|
+
return p = typeof p == "string" ? p : p({ context: m, props: O }), m.bem.b = p, `${O?.bPrefix || t}${m.bem.b}`;
|
|
2337
2337
|
}
|
|
2338
2338
|
};
|
|
2339
2339
|
}
|
|
@@ -2347,7 +2347,7 @@ function ou(e) {
|
|
|
2347
2347
|
y.bem.els = w;
|
|
2348
2348
|
},
|
|
2349
2349
|
$({ context: y, props: m }) {
|
|
2350
|
-
return p = typeof p == "string" ? p : p({ context: y, props: m }), y.bem.els = p.split(",").map((
|
|
2350
|
+
return p = typeof p == "string" ? p : p({ context: y, props: m }), y.bem.els = p.split(",").map((O) => O.trim()), y.bem.els.map((O) => `${m?.bPrefix || t}${y.bem.b}${n}${O}`).join(", ");
|
|
2351
2351
|
}
|
|
2352
2352
|
};
|
|
2353
2353
|
}
|
|
@@ -2356,16 +2356,16 @@ function ou(e) {
|
|
|
2356
2356
|
$({ context: w, props: y }) {
|
|
2357
2357
|
p = typeof p == "string" ? p : p({ context: w, props: y });
|
|
2358
2358
|
const m = p.split(",").map((S) => S.trim());
|
|
2359
|
-
function
|
|
2360
|
-
return m.map((
|
|
2359
|
+
function O(S) {
|
|
2360
|
+
return m.map((k) => `&${y?.bPrefix || t}${w.bem.b}${S !== void 0 ? `${n}${S}` : ""}${o}${k}`).join(", ");
|
|
2361
2361
|
}
|
|
2362
2362
|
const P = w.bem.els;
|
|
2363
2363
|
if (P !== null) {
|
|
2364
2364
|
if (ee.env.NODE_ENV !== "production" && P.length >= 2)
|
|
2365
2365
|
throw Error(`[css-render/plugin-bem]: m(${p}) is invalid, using modifier inside multiple elements is not allowed`);
|
|
2366
|
-
return
|
|
2366
|
+
return O(P[0]);
|
|
2367
2367
|
} else
|
|
2368
|
-
return
|
|
2368
|
+
return O();
|
|
2369
2369
|
}
|
|
2370
2370
|
};
|
|
2371
2371
|
}
|
|
@@ -2656,7 +2656,7 @@ const xu = "n", To = `.${xu}-`, Cu = "__", Su = "--", la = aa(), ca = ou({
|
|
|
2656
2656
|
la.use(ca);
|
|
2657
2657
|
const {
|
|
2658
2658
|
c: G,
|
|
2659
|
-
find:
|
|
2659
|
+
find: ky
|
|
2660
2660
|
} = la, {
|
|
2661
2661
|
cB: Y,
|
|
2662
2662
|
cE: ve,
|
|
@@ -2698,13 +2698,13 @@ function _i(e, t) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
return !1;
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function Oo(e) {
|
|
2702
2702
|
return e.composedPath()[0] || null;
|
|
2703
2703
|
}
|
|
2704
2704
|
function $i(e) {
|
|
2705
2705
|
return typeof e == "string" ? e.endsWith("px") ? Number(e.slice(0, e.length - 2)) : Number(e) : e;
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Ou(e) {
|
|
2708
2708
|
if (e != null)
|
|
2709
2709
|
return typeof e == "number" ? `${e}px` : e.endsWith("px") ? e : `${e}px`;
|
|
2710
2710
|
}
|
|
@@ -2881,7 +2881,7 @@ const Ti = {
|
|
|
2881
2881
|
yellowgreen: "#9ACD32",
|
|
2882
2882
|
transparent: "#0000"
|
|
2883
2883
|
};
|
|
2884
|
-
function
|
|
2884
|
+
function ku(e, t, n) {
|
|
2885
2885
|
t /= 100, n /= 100;
|
|
2886
2886
|
let o = (r, i = (r + e / 60) % 6) => n - n * t * Math.max(Math.min(i, 4 - i, 1), 0);
|
|
2887
2887
|
return [o(5) * 255, o(3) * 255, o(1) * 255];
|
|
@@ -2900,13 +2900,13 @@ function Nu(e) {
|
|
|
2900
2900
|
let t;
|
|
2901
2901
|
if (t = ha.exec(e))
|
|
2902
2902
|
return [
|
|
2903
|
-
|
|
2903
|
+
ko(t[1]),
|
|
2904
2904
|
Vt(t[5]),
|
|
2905
2905
|
Vt(t[9]),
|
|
2906
2906
|
en(t[13])
|
|
2907
2907
|
];
|
|
2908
2908
|
if (t = da.exec(e))
|
|
2909
|
-
return [
|
|
2909
|
+
return [ko(t[1]), Vt(t[5]), Vt(t[9]), 1];
|
|
2910
2910
|
throw new Error(`[seemly/hsla]: Invalid color value ${e}.`);
|
|
2911
2911
|
} catch (t) {
|
|
2912
2912
|
throw t;
|
|
@@ -2917,13 +2917,13 @@ function zu(e) {
|
|
|
2917
2917
|
let t;
|
|
2918
2918
|
if (t = pa.exec(e))
|
|
2919
2919
|
return [
|
|
2920
|
-
|
|
2920
|
+
ko(t[1]),
|
|
2921
2921
|
Vt(t[5]),
|
|
2922
2922
|
Vt(t[9]),
|
|
2923
2923
|
en(t[13])
|
|
2924
2924
|
];
|
|
2925
2925
|
if (t = fa.exec(e))
|
|
2926
|
-
return [
|
|
2926
|
+
return [ko(t[1]), Vt(t[5]), Vt(t[9]), 1];
|
|
2927
2927
|
throw new Error(`[seemly/hsva]: Invalid color value ${e}.`);
|
|
2928
2928
|
} catch (t) {
|
|
2929
2929
|
throw t;
|
|
@@ -2971,7 +2971,7 @@ function an(e) {
|
|
|
2971
2971
|
return [...Pu(n, o, r), i];
|
|
2972
2972
|
} else if (fa.test(e) || pa.test(e)) {
|
|
2973
2973
|
const [n, o, r, i] = zu(e);
|
|
2974
|
-
return [...
|
|
2974
|
+
return [...ku(n, o, r), i];
|
|
2975
2975
|
}
|
|
2976
2976
|
throw new Error(`[seemly/rgba]: Invalid color value ${e}.`);
|
|
2977
2977
|
} catch (t) {
|
|
@@ -3004,7 +3004,7 @@ function en(e) {
|
|
|
3004
3004
|
const t = Math.round(Number(e) * 100) / 100;
|
|
3005
3005
|
return t > 1 ? 1 : t < 0 ? 0 : t;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function ko(e) {
|
|
3008
3008
|
const t = Math.round(Number(e));
|
|
3009
3009
|
return t >= 360 || t < 0 ? 0 : t;
|
|
3010
3010
|
}
|
|
@@ -3069,7 +3069,7 @@ function Wu(e, t, n, o) {
|
|
|
3069
3069
|
if (e === "mousemoveoutside" || e === "clickoutside") {
|
|
3070
3070
|
const r = ga(e, t, n);
|
|
3071
3071
|
return Object.keys(r).forEach((i) => {
|
|
3072
|
-
|
|
3072
|
+
Oe(i, document, r[i], o);
|
|
3073
3073
|
}), !0;
|
|
3074
3074
|
}
|
|
3075
3075
|
return !1;
|
|
@@ -3194,7 +3194,7 @@ function Gu() {
|
|
|
3194
3194
|
function m(d) {
|
|
3195
3195
|
return f[d] === void 0 && (f[d] = /* @__PURE__ */ new Set(), window.addEventListener(d, w)), f[d];
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function O(d, b) {
|
|
3198
3198
|
let T = d.get(b);
|
|
3199
3199
|
return T === void 0 && d.set(b, T = /* @__PURE__ */ new Set()), T;
|
|
3200
3200
|
}
|
|
@@ -3211,13 +3211,13 @@ function Gu() {
|
|
|
3211
3211
|
const T = f[d];
|
|
3212
3212
|
return !!(T !== void 0 && T.has(b));
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function k(d, b, T, v) {
|
|
3215
3215
|
let C;
|
|
3216
3216
|
if (typeof v == "object" && v.once === !0 ? C = (R) => {
|
|
3217
3217
|
I(d, b, C, v), T(R);
|
|
3218
3218
|
} : C = T, Wu(d, b, C, v))
|
|
3219
3219
|
return;
|
|
3220
|
-
const z = v === !0 || typeof v == "object" && v.capture === !0 ? "capture" : "bubble", M = y(z, d), x =
|
|
3220
|
+
const z = v === !0 || typeof v == "object" && v.capture === !0 ? "capture" : "bubble", M = y(z, d), x = O(M, b);
|
|
3221
3221
|
if (x.has(C) || x.add(C), b === window) {
|
|
3222
3222
|
const R = m(d);
|
|
3223
3223
|
R.has(C) || R.add(C);
|
|
@@ -3226,7 +3226,7 @@ function Gu() {
|
|
|
3226
3226
|
function I(d, b, T, v) {
|
|
3227
3227
|
if (Ku(d, b, T, v))
|
|
3228
3228
|
return;
|
|
3229
|
-
const _ = v === !0 || typeof v == "object" && v.capture === !0, z = _ ? "capture" : "bubble", M = y(z, d), x =
|
|
3229
|
+
const _ = v === !0 || typeof v == "object" && v.capture === !0, z = _ ? "capture" : "bubble", M = y(z, d), x = O(M, b);
|
|
3230
3230
|
if (b === window && !P(b, _ ? "bubble" : "capture", d, T) && S(d, T)) {
|
|
3231
3231
|
const F = f[d];
|
|
3232
3232
|
F.delete(T), F.size === 0 && (window.removeEventListener(d, w), f[d] = void 0);
|
|
@@ -3234,11 +3234,11 @@ function Gu() {
|
|
|
3234
3234
|
x.has(T) && x.delete(T), x.size === 0 && M.delete(b), M.size === 0 && (window.removeEventListener(d, p, z === "capture"), u[z][d] = void 0);
|
|
3235
3235
|
}
|
|
3236
3236
|
return {
|
|
3237
|
-
on:
|
|
3237
|
+
on: k,
|
|
3238
3238
|
off: I
|
|
3239
3239
|
};
|
|
3240
3240
|
}
|
|
3241
|
-
const { on:
|
|
3241
|
+
const { on: Oe, off: Se } = Gu();
|
|
3242
3242
|
function qu(e) {
|
|
3243
3243
|
const t = E(!!e.value);
|
|
3244
3244
|
if (t.value)
|
|
@@ -3370,8 +3370,8 @@ function td(e = {}, t) {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
});
|
|
3372
3372
|
}, a = () => {
|
|
3373
|
-
(t === void 0 || t.value) && (
|
|
3374
|
-
l ? (
|
|
3373
|
+
(t === void 0 || t.value) && (Oe("keydown", document, i), Oe("keyup", document, s)), t !== void 0 && Ie(t, (l) => {
|
|
3374
|
+
l ? (Oe("keydown", document, i), Oe("keyup", document, s)) : (Se("keydown", document, i), Se("keyup", document, s));
|
|
3375
3375
|
});
|
|
3376
3376
|
};
|
|
3377
3377
|
return Xu() ? (Lo(a), ut(() => {
|
|
@@ -3387,7 +3387,7 @@ function Sn(e) {
|
|
|
3387
3387
|
i.value = document.fullscreenElement;
|
|
3388
3388
|
};
|
|
3389
3389
|
et(() => {
|
|
3390
|
-
|
|
3390
|
+
Oe("fullscreenchange", document, s);
|
|
3391
3391
|
}), ut(() => {
|
|
3392
3392
|
Se("fullscreenchange", document, s);
|
|
3393
3393
|
});
|
|
@@ -3532,8 +3532,8 @@ const Ca = Ee({
|
|
|
3532
3532
|
let m = o.value;
|
|
3533
3533
|
for (; m = xa(m), m !== null; )
|
|
3534
3534
|
i.push(m);
|
|
3535
|
-
for (const
|
|
3536
|
-
|
|
3535
|
+
for (const O of i)
|
|
3536
|
+
Oe("scroll", O, f, !0);
|
|
3537
3537
|
}, a = () => {
|
|
3538
3538
|
for (const m of i)
|
|
3539
3539
|
Se("scroll", m, f, !0);
|
|
@@ -3547,7 +3547,7 @@ const Ca = Ee({
|
|
|
3547
3547
|
}, h = () => {
|
|
3548
3548
|
l.forEach((m) => m());
|
|
3549
3549
|
}, g = /* @__PURE__ */ new Set(), p = (m) => {
|
|
3550
|
-
g.size === 0 &&
|
|
3550
|
+
g.size === 0 && Oe("resize", window, y), g.has(m) || g.add(m);
|
|
3551
3551
|
}, w = (m) => {
|
|
3552
3552
|
g.has(m) && g.delete(m), g.size === 0 && Se("resize", window, y);
|
|
3553
3553
|
}, y = () => {
|
|
@@ -3589,21 +3589,21 @@ const Ca = Ee({
|
|
|
3589
3589
|
mounted(e, { value: t }) {
|
|
3590
3590
|
e[mn] = {
|
|
3591
3591
|
handler: void 0
|
|
3592
|
-
}, typeof t == "function" && (e[mn].handler = t,
|
|
3592
|
+
}, typeof t == "function" && (e[mn].handler = t, Oe("mousemoveoutside", e, t));
|
|
3593
3593
|
},
|
|
3594
3594
|
updated(e, { value: t }) {
|
|
3595
3595
|
const n = e[mn];
|
|
3596
|
-
typeof t == "function" ? n.handler ? n.handler !== t && (Se("mousemoveoutside", e, n.handler), n.handler = t,
|
|
3596
|
+
typeof t == "function" ? n.handler ? n.handler !== t && (Se("mousemoveoutside", e, n.handler), n.handler = t, Oe("mousemoveoutside", e, t)) : (e[mn].handler = t, Oe("mousemoveoutside", e, t)) : n.handler && (Se("mousemoveoutside", e, n.handler), n.handler = void 0);
|
|
3597
3597
|
},
|
|
3598
3598
|
unmounted(e) {
|
|
3599
3599
|
const { handler: t } = e[mn];
|
|
3600
3600
|
t && Se("mousemoveoutside", e, t), e[mn].handler = void 0;
|
|
3601
3601
|
}
|
|
3602
|
-
}, vn = "@@coContext",
|
|
3602
|
+
}, vn = "@@coContext", Oi = {
|
|
3603
3603
|
mounted(e, { value: t, modifiers: n }) {
|
|
3604
3604
|
e[vn] = {
|
|
3605
3605
|
handler: void 0
|
|
3606
|
-
}, typeof t == "function" && (e[vn].handler = t,
|
|
3606
|
+
}, typeof t == "function" && (e[vn].handler = t, Oe("clickoutside", e, t, {
|
|
3607
3607
|
capture: n.capture
|
|
3608
3608
|
}));
|
|
3609
3609
|
},
|
|
@@ -3611,9 +3611,9 @@ const Ca = Ee({
|
|
|
3611
3611
|
const o = e[vn];
|
|
3612
3612
|
typeof t == "function" ? o.handler ? o.handler !== t && (Se("clickoutside", e, o.handler, {
|
|
3613
3613
|
capture: n.capture
|
|
3614
|
-
}), o.handler = t,
|
|
3614
|
+
}), o.handler = t, Oe("clickoutside", e, t, {
|
|
3615
3615
|
capture: n.capture
|
|
3616
|
-
})) : (e[vn].handler = t,
|
|
3616
|
+
})) : (e[vn].handler = t, Oe("clickoutside", e, t, {
|
|
3617
3617
|
capture: n.capture
|
|
3618
3618
|
})) : o.handler && (Se("clickoutside", e, o.handler, {
|
|
3619
3619
|
capture: n.capture
|
|
@@ -3700,7 +3700,7 @@ function Jn() {
|
|
|
3700
3700
|
context: e
|
|
3701
3701
|
};
|
|
3702
3702
|
}
|
|
3703
|
-
function
|
|
3703
|
+
function ki(e, t) {
|
|
3704
3704
|
console.error(`[vueuc/${e}]: ${t}`);
|
|
3705
3705
|
}
|
|
3706
3706
|
const { c: so } = aa(), pd = "vueuc-style";
|
|
@@ -3806,8 +3806,8 @@ function yd(e, t, n, o, r, i) {
|
|
|
3806
3806
|
};
|
|
3807
3807
|
const u = (g, p, w) => {
|
|
3808
3808
|
let y = 0, m = 0;
|
|
3809
|
-
const
|
|
3810
|
-
return
|
|
3809
|
+
const O = n[g] - t[p] - t[g];
|
|
3810
|
+
return O > 0 && o && (w ? m = Ai[p] ? O : -O : y = Ai[p] ? O : -O), {
|
|
3811
3811
|
left: y,
|
|
3812
3812
|
top: m
|
|
3813
3813
|
};
|
|
@@ -4085,11 +4085,11 @@ const Cd = so([
|
|
|
4085
4085
|
return;
|
|
4086
4086
|
const g = t.targetRef, { x: p, y: w, overlap: y } = e, m = p !== void 0 && w !== void 0 ? id(p, w) : tr(g);
|
|
4087
4087
|
h.style.setProperty("--v-target-width", `${Math.round(m.width)}px`), h.style.setProperty("--v-target-height", `${Math.round(m.height)}px`);
|
|
4088
|
-
const { width:
|
|
4088
|
+
const { width: O, minWidth: P, placement: S, internalShift: k, flip: I } = e;
|
|
4089
4089
|
h.setAttribute("v-placement", S), y ? h.setAttribute("v-overlap", "") : h.removeAttribute("v-overlap");
|
|
4090
4090
|
const { style: d } = h;
|
|
4091
|
-
|
|
4092
|
-
const b = tr(h), T = tr(r.value), { left: v, top: C, placement: _ } = yd(S, m, b,
|
|
4091
|
+
O === "target" ? d.width = `${m.width}px` : O !== void 0 ? d.width = O : d.width = "", P === "target" ? d.minWidth = `${m.width}px` : P !== void 0 ? d.minWidth = P : d.minWidth = "";
|
|
4092
|
+
const b = tr(h), T = tr(r.value), { left: v, top: C, placement: _ } = yd(S, m, b, k, I, y), z = wd(_, y), { left: M, top: x, transform: R } = xd(_, T, m, C, v, y);
|
|
4093
4093
|
h.setAttribute("v-placement", _), h.style.setProperty("--v-offset-left", `${Math.round(v)}px`), h.style.setProperty("--v-offset-top", `${Math.round(C)}px`), h.style.transform = `translateX(${M}) translateY(${x}) ${R}`, h.style.setProperty("--v-transform-origin", z), h.style.transformOrigin = z;
|
|
4094
4094
|
};
|
|
4095
4095
|
Ie(n, (h) => {
|
|
@@ -4223,7 +4223,7 @@ var nn = function(e) {
|
|
|
4223
4223
|
return !0;
|
|
4224
4224
|
}
|
|
4225
4225
|
return !1;
|
|
4226
|
-
}, Ln = typeof window < "u" ? window : {}, lo = /* @__PURE__ */ new WeakMap(), Fi = /auto|scroll/, Id = /^tb|vertical/,
|
|
4226
|
+
}, Ln = typeof window < "u" ? window : {}, lo = /* @__PURE__ */ new WeakMap(), Fi = /auto|scroll/, Id = /^tb|vertical/, Od = /msie|trident/i.test(Ln.navigator && Ln.navigator.userAgent), gt = function(e) {
|
|
4227
4227
|
return parseFloat(e || "0");
|
|
4228
4228
|
}, xn = function(e, t, n) {
|
|
4229
4229
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new $d((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -4237,14 +4237,14 @@ var nn = function(e) {
|
|
|
4237
4237
|
return lo.get(e);
|
|
4238
4238
|
if (Ta(e))
|
|
4239
4239
|
return lo.set(e, Ni), Ni;
|
|
4240
|
-
var n = getComputedStyle(e), o = Wr(e) && e.ownerSVGElement && e.getBBox(), r = !
|
|
4240
|
+
var n = getComputedStyle(e), o = Wr(e) && e.ownerSVGElement && e.getBBox(), r = !Od && n.boxSizing === "border-box", i = Id.test(n.writingMode || ""), s = !o && Fi.test(n.overflowY || ""), a = !o && Fi.test(n.overflowX || ""), l = o ? 0 : gt(n.paddingTop), c = o ? 0 : gt(n.paddingRight), u = o ? 0 : gt(n.paddingBottom), f = o ? 0 : gt(n.paddingLeft), h = o ? 0 : gt(n.borderTopWidth), g = o ? 0 : gt(n.borderRightWidth), p = o ? 0 : gt(n.borderBottomWidth), w = o ? 0 : gt(n.borderLeftWidth), y = f + c, m = l + u, O = w + g, P = h + p, S = a ? e.offsetHeight - P - e.clientHeight : 0, k = s ? e.offsetWidth - O - e.clientWidth : 0, I = r ? y + O : 0, d = r ? m + P : 0, b = o ? o.width : gt(n.width) - I - k, T = o ? o.height : gt(n.height) - d - S, v = b + y + k + O, C = T + m + S + P, _ = nn({
|
|
4241
4241
|
devicePixelContentBoxSize: xn(Math.round(b * devicePixelRatio), Math.round(T * devicePixelRatio), i),
|
|
4242
4242
|
borderBoxSize: xn(v, C, i),
|
|
4243
4243
|
contentBoxSize: xn(b, T, i),
|
|
4244
4244
|
contentRect: new $a(f, l, b, T)
|
|
4245
4245
|
});
|
|
4246
4246
|
return lo.set(e, _), _;
|
|
4247
|
-
},
|
|
4247
|
+
}, Oa = function(e, t, n) {
|
|
4248
4248
|
var o = Ia(e, n), r = o.borderBoxSize, i = o.contentBoxSize, s = o.devicePixelContentBoxSize;
|
|
4249
4249
|
switch (t) {
|
|
4250
4250
|
case Wn.DEVICE_PIXEL_CONTENT_BOX:
|
|
@@ -4254,13 +4254,13 @@ var nn = function(e) {
|
|
|
4254
4254
|
default:
|
|
4255
4255
|
return i;
|
|
4256
4256
|
}
|
|
4257
|
-
},
|
|
4257
|
+
}, kd = /* @__PURE__ */ function() {
|
|
4258
4258
|
function e(t) {
|
|
4259
4259
|
var n = Ia(t);
|
|
4260
4260
|
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = nn([n.borderBoxSize]), this.contentBoxSize = nn([n.contentBoxSize]), this.devicePixelContentBoxSize = nn([n.devicePixelContentBoxSize]);
|
|
4261
4261
|
}
|
|
4262
4262
|
return e;
|
|
4263
|
-
}(),
|
|
4263
|
+
}(), ka = function(e) {
|
|
4264
4264
|
if (Ta(e))
|
|
4265
4265
|
return 1 / 0;
|
|
4266
4266
|
for (var t = 0, n = e.parentNode; n; )
|
|
@@ -4272,8 +4272,8 @@ var nn = function(e) {
|
|
|
4272
4272
|
if (s.activeTargets.length !== 0) {
|
|
4273
4273
|
var a = [];
|
|
4274
4274
|
s.activeTargets.forEach(function(c) {
|
|
4275
|
-
var u = new
|
|
4276
|
-
a.push(u), c.lastReportedSize =
|
|
4275
|
+
var u = new kd(c.target), f = ka(c.target);
|
|
4276
|
+
a.push(u), c.lastReportedSize = Oa(c.target, c.observedBox), f < e && (e = f);
|
|
4277
4277
|
}), t.push(function() {
|
|
4278
4278
|
s.callback.call(s.observer, a, s.observer);
|
|
4279
4279
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
@@ -4287,7 +4287,7 @@ var nn = function(e) {
|
|
|
4287
4287
|
}, zi = function(e) {
|
|
4288
4288
|
tn.forEach(function(n) {
|
|
4289
4289
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
|
|
4290
|
-
r.isActive() && (
|
|
4290
|
+
r.isActive() && (ka(r.target) > e ? n.activeTargets.push(r) : n.skippedTargets.push(r));
|
|
4291
4291
|
});
|
|
4292
4292
|
});
|
|
4293
4293
|
}, Dd = function() {
|
|
@@ -4385,7 +4385,7 @@ var nn = function(e) {
|
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
4387
4387
|
return e.prototype.isActive = function() {
|
|
4388
|
-
var t =
|
|
4388
|
+
var t = Oa(this.target, this.observedBox, !0);
|
|
4389
4389
|
return Ld(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
4390
4390
|
}, e;
|
|
4391
4391
|
}(), jd = /* @__PURE__ */ function() {
|
|
@@ -4474,11 +4474,11 @@ const Ui = new Ud(), Wi = Ee({
|
|
|
4474
4474
|
et(() => {
|
|
4475
4475
|
const r = n.$el;
|
|
4476
4476
|
if (r === void 0) {
|
|
4477
|
-
|
|
4477
|
+
ki("resize-observer", "$el does not exist.");
|
|
4478
4478
|
return;
|
|
4479
4479
|
}
|
|
4480
4480
|
if (r.nextElementSibling !== r.nextSibling && r.nodeType === 3 && r.nodeValue !== "") {
|
|
4481
|
-
|
|
4481
|
+
ki("resize-observer", "$el can not be observed (it may be a text node).");
|
|
4482
4482
|
return;
|
|
4483
4483
|
}
|
|
4484
4484
|
r.nextElementSibling !== null && (Ui.registerHandler(r.nextElementSibling, o), t = !0);
|
|
@@ -4567,7 +4567,7 @@ const Kd = Ee({
|
|
|
4567
4567
|
}
|
|
4568
4568
|
et(() => {
|
|
4569
4569
|
Ie(() => e.active, (y) => {
|
|
4570
|
-
y ? (f(),
|
|
4570
|
+
y ? (f(), Oe("keydown", document, l)) : (Se("keydown", document, l), r && h());
|
|
4571
4571
|
}, {
|
|
4572
4572
|
immediate: !0
|
|
4573
4573
|
});
|
|
@@ -4577,7 +4577,7 @@ const Kd = Ee({
|
|
|
4577
4577
|
function c(y) {
|
|
4578
4578
|
if (!i && a()) {
|
|
4579
4579
|
const m = u();
|
|
4580
|
-
if (m === null || m.contains(
|
|
4580
|
+
if (m === null || m.contains(Oo(y)))
|
|
4581
4581
|
return;
|
|
4582
4582
|
g("first");
|
|
4583
4583
|
}
|
|
@@ -4603,17 +4603,17 @@ const Kd = Ee({
|
|
|
4603
4603
|
}
|
|
4604
4604
|
function h() {
|
|
4605
4605
|
var y;
|
|
4606
|
-
if (e.disabled || (document.removeEventListener("focus", c, !0), Pn = Pn.filter((
|
|
4606
|
+
if (e.disabled || (document.removeEventListener("focus", c, !0), Pn = Pn.filter((O) => O !== t), a()))
|
|
4607
4607
|
return;
|
|
4608
4608
|
const { finalFocusTo: m } = e;
|
|
4609
4609
|
m !== void 0 ? (y = Pi(m)) === null || y === void 0 || y.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && s instanceof HTMLElement && (i = !0, s.focus({ preventScroll: !0 }), i = !1);
|
|
4610
4610
|
}
|
|
4611
4611
|
function g(y) {
|
|
4612
4612
|
if (a() && e.active) {
|
|
4613
|
-
const m = n.value,
|
|
4614
|
-
if (m !== null &&
|
|
4613
|
+
const m = n.value, O = o.value;
|
|
4614
|
+
if (m !== null && O !== null) {
|
|
4615
4615
|
const P = u();
|
|
4616
|
-
if (P == null || P ===
|
|
4616
|
+
if (P == null || P === O) {
|
|
4617
4617
|
i = !0, m.focus({ preventScroll: !0 }), i = !1;
|
|
4618
4618
|
return;
|
|
4619
4619
|
}
|
|
@@ -4807,10 +4807,10 @@ function $n(e, t, n, o) {
|
|
|
4807
4807
|
} = o;
|
|
4808
4808
|
w && (h += `-${yr(JSON.stringify(w))}`), y && (h += `-${yr(JSON.stringify(y))}`), a.value = h, c = () => {
|
|
4809
4809
|
const m = n.value;
|
|
4810
|
-
let
|
|
4810
|
+
let O = "";
|
|
4811
4811
|
for (const P in m)
|
|
4812
|
-
|
|
4813
|
-
G(`.${h}`,
|
|
4812
|
+
O += `${P}: ${m[P]};`;
|
|
4813
|
+
G(`.${h}`, O).mount({
|
|
4814
4814
|
id: h,
|
|
4815
4815
|
ssr: l,
|
|
4816
4816
|
parent: s
|
|
@@ -5003,13 +5003,13 @@ function If(e, t) {
|
|
|
5003
5003
|
t[n] = e[n];
|
|
5004
5004
|
return t;
|
|
5005
5005
|
}
|
|
5006
|
-
var
|
|
5006
|
+
var Of = 800, kf = 16, Pf = Date.now;
|
|
5007
5007
|
function Df(e) {
|
|
5008
5008
|
var t = 0, n = 0;
|
|
5009
5009
|
return function() {
|
|
5010
|
-
var o = Pf(), r =
|
|
5010
|
+
var o = Pf(), r = kf - (o - n);
|
|
5011
5011
|
if (n = o, r > 0) {
|
|
5012
|
-
if (++t >=
|
|
5012
|
+
if (++t >= Of)
|
|
5013
5013
|
return arguments[0];
|
|
5014
5014
|
} else
|
|
5015
5015
|
t = 0;
|
|
@@ -5140,11 +5140,11 @@ var Ua = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
5140
5140
|
return e || lr && lr.binding && lr.binding("util");
|
|
5141
5141
|
} catch {
|
|
5142
5142
|
}
|
|
5143
|
-
}(), ls = as && as.isTypedArray, ei = ls ? $h(ls) : _h, Ih = Object.prototype,
|
|
5143
|
+
}(), ls = as && as.isTypedArray, ei = ls ? $h(ls) : _h, Ih = Object.prototype, Oh = Ih.hasOwnProperty;
|
|
5144
5144
|
function Wa(e, t) {
|
|
5145
5145
|
var n = ct(e), o = !n && Mo(e), r = !n && !o && Ro(e), i = !n && !o && !r && ei(e), s = n || o || r || i, a = s ? qf(e.length, String) : [], l = a.length;
|
|
5146
5146
|
for (var c in e)
|
|
5147
|
-
(t ||
|
|
5147
|
+
(t || Oh.call(e, c)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5148
5148
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
5149
5149
|
r && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5150
5150
|
i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
@@ -5156,10 +5156,10 @@ function Ka(e, t) {
|
|
|
5156
5156
|
return e(t(n));
|
|
5157
5157
|
};
|
|
5158
5158
|
}
|
|
5159
|
-
var
|
|
5159
|
+
var kh = Ka(Object.keys, Object), Ph = Object.prototype, Dh = Ph.hasOwnProperty;
|
|
5160
5160
|
function Ah(e) {
|
|
5161
5161
|
if (!Qr(e))
|
|
5162
|
-
return
|
|
5162
|
+
return kh(e);
|
|
5163
5163
|
var t = [];
|
|
5164
5164
|
for (var n in Object(e))
|
|
5165
5165
|
Dh.call(e, n) && n != "constructor" && t.push(n);
|
|
@@ -5392,12 +5392,12 @@ function Tp(e) {
|
|
|
5392
5392
|
function Ip(e) {
|
|
5393
5393
|
return this.__data__.has(e);
|
|
5394
5394
|
}
|
|
5395
|
-
var
|
|
5396
|
-
function
|
|
5395
|
+
var Op = 200;
|
|
5396
|
+
function kp(e, t) {
|
|
5397
5397
|
var n = this.__data__;
|
|
5398
5398
|
if (n instanceof Mt) {
|
|
5399
5399
|
var o = n.__data__;
|
|
5400
|
-
if (!Gn || o.length <
|
|
5400
|
+
if (!Gn || o.length < Op - 1)
|
|
5401
5401
|
return o.push([e, t]), this.size = ++n.size, this;
|
|
5402
5402
|
n = this.__data__ = new Rt(o);
|
|
5403
5403
|
}
|
|
@@ -5411,7 +5411,7 @@ xt.prototype.clear = _p;
|
|
|
5411
5411
|
xt.prototype.delete = $p;
|
|
5412
5412
|
xt.prototype.get = Tp;
|
|
5413
5413
|
xt.prototype.has = Ip;
|
|
5414
|
-
xt.prototype.set =
|
|
5414
|
+
xt.prototype.set = kp;
|
|
5415
5415
|
var Za = typeof exports == "object" && exports && !exports.nodeType && exports, cs = Za && typeof module == "object" && module && !module.nodeType && module, Pp = cs && cs.exports === Za, us = Pp ? Tt.Buffer : void 0;
|
|
5416
5416
|
us && us.allocUnsafe;
|
|
5417
5417
|
function Dp(e, t) {
|
|
@@ -5512,9 +5512,9 @@ function Qa(e, t, n, o, r, i) {
|
|
|
5512
5512
|
break;
|
|
5513
5513
|
}
|
|
5514
5514
|
if (g) {
|
|
5515
|
-
if (!Jp(t, function(m,
|
|
5516
|
-
if (!Zp(g,
|
|
5517
|
-
return g.push(
|
|
5515
|
+
if (!Jp(t, function(m, O) {
|
|
5516
|
+
if (!Zp(g, O) && (p === m || r(p, m, n, o, i)))
|
|
5517
|
+
return g.push(O);
|
|
5518
5518
|
})) {
|
|
5519
5519
|
h = !1;
|
|
5520
5520
|
break;
|
|
@@ -5591,18 +5591,18 @@ function wm(e, t, n, o, r, i) {
|
|
|
5591
5591
|
i.set(e, t), i.set(t, e);
|
|
5592
5592
|
for (var y = s; ++f < l; ) {
|
|
5593
5593
|
h = a[f];
|
|
5594
|
-
var m = e[h],
|
|
5594
|
+
var m = e[h], O = t[h];
|
|
5595
5595
|
if (o)
|
|
5596
|
-
var P = s ? o(
|
|
5597
|
-
if (!(P === void 0 ? m ===
|
|
5596
|
+
var P = s ? o(O, m, h, t, e, i) : o(m, O, h, e, t, i);
|
|
5597
|
+
if (!(P === void 0 ? m === O || r(m, O, n, o, i) : P)) {
|
|
5598
5598
|
w = !1;
|
|
5599
5599
|
break;
|
|
5600
5600
|
}
|
|
5601
5601
|
y || (y = h == "constructor");
|
|
5602
5602
|
}
|
|
5603
5603
|
if (w && !y) {
|
|
5604
|
-
var S = e.constructor,
|
|
5605
|
-
S !=
|
|
5604
|
+
var S = e.constructor, k = t.constructor;
|
|
5605
|
+
S != k && "constructor" in e && "constructor" in t && !(typeof S == "function" && S instanceof S && typeof k == "function" && k instanceof k) && (w = !1);
|
|
5606
5606
|
}
|
|
5607
5607
|
return i.delete(e), i.delete(t), w;
|
|
5608
5608
|
}
|
|
@@ -5675,10 +5675,10 @@ function Im(e) {
|
|
|
5675
5675
|
return n === e || $m(n, e, t);
|
|
5676
5676
|
};
|
|
5677
5677
|
}
|
|
5678
|
-
function
|
|
5678
|
+
function Om(e, t) {
|
|
5679
5679
|
return e != null && t in Object(e);
|
|
5680
5680
|
}
|
|
5681
|
-
function
|
|
5681
|
+
function km(e, t, n) {
|
|
5682
5682
|
t = qa(t, e);
|
|
5683
5683
|
for (var o = -1, r = t.length, i = !1; ++o < r; ) {
|
|
5684
5684
|
var s = Ko(t[o]);
|
|
@@ -5689,7 +5689,7 @@ function Om(e, t, n) {
|
|
|
5689
5689
|
return i || ++o != r ? i : (r = e == null ? 0 : e.length, !!r && Zr(r) && Yr(s, r) && (ct(e) || Mo(e)));
|
|
5690
5690
|
}
|
|
5691
5691
|
function Pm(e, t) {
|
|
5692
|
-
return e != null &&
|
|
5692
|
+
return e != null && km(e, t, Om);
|
|
5693
5693
|
}
|
|
5694
5694
|
var Dm = 1, Am = 2;
|
|
5695
5695
|
function Mm(e, t) {
|
|
@@ -5740,13 +5740,13 @@ function Hm(e, t) {
|
|
|
5740
5740
|
};
|
|
5741
5741
|
}
|
|
5742
5742
|
var jm = Hm(Lm);
|
|
5743
|
-
function
|
|
5743
|
+
function Or(e, t, n) {
|
|
5744
5744
|
(n !== void 0 && !Qn(e[t], n) || n === void 0 && !(t in e)) && Jr(e, t, n);
|
|
5745
5745
|
}
|
|
5746
5746
|
function Vm(e) {
|
|
5747
5747
|
return Kt(e) && Tn(e);
|
|
5748
5748
|
}
|
|
5749
|
-
function
|
|
5749
|
+
function kr(e, t) {
|
|
5750
5750
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
|
5751
5751
|
return e[t];
|
|
5752
5752
|
}
|
|
@@ -5754,9 +5754,9 @@ function Um(e) {
|
|
|
5754
5754
|
return Hf(e, Ga(e));
|
|
5755
5755
|
}
|
|
5756
5756
|
function Wm(e, t, n, o, r, i, s) {
|
|
5757
|
-
var a =
|
|
5757
|
+
var a = kr(e, n), l = kr(t, n), c = s.get(l);
|
|
5758
5758
|
if (c) {
|
|
5759
|
-
|
|
5759
|
+
Or(e, n, c);
|
|
5760
5760
|
return;
|
|
5761
5761
|
}
|
|
5762
5762
|
var u = i ? i(a, l, n + "", e, t, s) : void 0, f = u === void 0;
|
|
@@ -5764,15 +5764,15 @@ function Wm(e, t, n, o, r, i, s) {
|
|
|
5764
5764
|
var h = ct(l), g = !h && Ro(l), p = !h && !g && ei(l);
|
|
5765
5765
|
u = l, h || g || p ? ct(a) ? u = a : Vm(a) ? u = If(a) : g ? (f = !1, u = Dp(l)) : p ? (f = !1, u = Kp(l)) : u = [] : Ep(l) || Mo(l) ? (u = a, Mo(a) ? u = Um(a) : (!Gt(a) || Xr(a)) && (u = Gp(l))) : f = !1;
|
|
5766
5766
|
}
|
|
5767
|
-
f && (s.set(l, u), r(u, l, o, i, s), s.delete(l)),
|
|
5767
|
+
f && (s.set(l, u), r(u, l, o, i, s), s.delete(l)), Or(e, n, u);
|
|
5768
5768
|
}
|
|
5769
5769
|
function ol(e, t, n, o, r) {
|
|
5770
5770
|
e !== t && nl(t, function(i, s) {
|
|
5771
5771
|
if (r || (r = new xt()), Gt(i))
|
|
5772
5772
|
Wm(e, t, s, n, ol, o, r);
|
|
5773
5773
|
else {
|
|
5774
|
-
var a = o ? o(
|
|
5775
|
-
a === void 0 && (a = i),
|
|
5774
|
+
var a = o ? o(kr(e, s), i, s + "", e, t, r) : void 0;
|
|
5775
|
+
a === void 0 && (a = i), Or(e, s, a);
|
|
5776
5776
|
}
|
|
5777
5777
|
}, Ga);
|
|
5778
5778
|
}
|
|
@@ -5930,17 +5930,17 @@ function qe(e, t, n, o, r, i) {
|
|
|
5930
5930
|
} = g, {
|
|
5931
5931
|
common: m = void 0,
|
|
5932
5932
|
[e]: {
|
|
5933
|
-
common:
|
|
5933
|
+
common: O = void 0,
|
|
5934
5934
|
self: P = void 0,
|
|
5935
5935
|
peers: S = {}
|
|
5936
5936
|
} = {}
|
|
5937
5937
|
} = a?.mergedThemeRef.value || {}, {
|
|
5938
|
-
common:
|
|
5938
|
+
common: k = void 0,
|
|
5939
5939
|
[e]: I = {}
|
|
5940
5940
|
} = a?.mergedThemeOverridesRef.value || {}, {
|
|
5941
5941
|
common: d,
|
|
5942
5942
|
peers: b = {}
|
|
5943
|
-
} = I, T = ho({}, u ||
|
|
5943
|
+
} = I, T = ho({}, u || O || m || o.common, k, d, w), v = ho(
|
|
5944
5944
|
// {}, executed every time, no need for empty obj
|
|
5945
5945
|
(c = f || P || o.self) === null || c === void 0 ? void 0 : c(T),
|
|
5946
5946
|
p,
|
|
@@ -6457,8 +6457,8 @@ const av = {
|
|
|
6457
6457
|
mergedClsPrefixRef: t,
|
|
6458
6458
|
inlineThemeDisabled: n,
|
|
6459
6459
|
mergedRtlRef: o
|
|
6460
|
-
} = _n(e), r = rl("Scrollbar", o, t), i = E(null), s = E(null), a = E(null), l = E(null), c = E(null), u = E(null), f = E(null), h = E(null), g = E(null), p = E(null), w = E(null), y = E(0), m = E(0),
|
|
6461
|
-
let S = !1,
|
|
6460
|
+
} = _n(e), r = rl("Scrollbar", o, t), i = E(null), s = E(null), a = E(null), l = E(null), c = E(null), u = E(null), f = E(null), h = E(null), g = E(null), p = E(null), w = E(null), y = E(0), m = E(0), O = E(!1), P = E(!1);
|
|
6461
|
+
let S = !1, k = !1, I, d, b = 0, T = 0, v = 0, C = 0;
|
|
6462
6462
|
const _ = ed(), z = qe("Scrollbar", "-scrollbar", lv, av, e, t), M = A(() => {
|
|
6463
6463
|
const {
|
|
6464
6464
|
value: $
|
|
@@ -6527,7 +6527,7 @@ const av = {
|
|
|
6527
6527
|
const {
|
|
6528
6528
|
trigger: $
|
|
6529
6529
|
} = e;
|
|
6530
|
-
return $ === "none" ||
|
|
6530
|
+
return $ === "none" || O.value;
|
|
6531
6531
|
}), Ue = A(() => {
|
|
6532
6532
|
const {
|
|
6533
6533
|
trigger: $
|
|
@@ -6622,11 +6622,11 @@ const av = {
|
|
|
6622
6622
|
}
|
|
6623
6623
|
function ie() {
|
|
6624
6624
|
I !== void 0 && window.clearTimeout(I), I = window.setTimeout(() => {
|
|
6625
|
-
|
|
6625
|
+
O.value = !1;
|
|
6626
6626
|
}, e.duration);
|
|
6627
6627
|
}
|
|
6628
6628
|
function re() {
|
|
6629
|
-
I !== void 0 && window.clearTimeout(I),
|
|
6629
|
+
I !== void 0 && window.clearTimeout(I), O.value = !0;
|
|
6630
6630
|
}
|
|
6631
6631
|
function le() {
|
|
6632
6632
|
d !== void 0 && window.clearTimeout(d), P.value = !0;
|
|
@@ -6676,13 +6676,13 @@ const av = {
|
|
|
6676
6676
|
}
|
|
6677
6677
|
function tt($) {
|
|
6678
6678
|
var B;
|
|
6679
|
-
return !(!((B = i.value) === null || B === void 0) && B.contains(
|
|
6679
|
+
return !(!((B = i.value) === null || B === void 0) && B.contains(Oo($)));
|
|
6680
6680
|
}
|
|
6681
6681
|
function vt($) {
|
|
6682
|
-
$.preventDefault(), $.stopPropagation(),
|
|
6682
|
+
$.preventDefault(), $.stopPropagation(), k = !0, Oe("mousemove", window, nt, !0), Oe("mouseup", window, Bt, !0), T = m.value, v = r?.value ? window.innerWidth - $.clientX : $.clientX;
|
|
6683
6683
|
}
|
|
6684
6684
|
function nt($) {
|
|
6685
|
-
if (!
|
|
6685
|
+
if (!k) return;
|
|
6686
6686
|
I !== void 0 && window.clearTimeout(I), d !== void 0 && window.clearTimeout(d);
|
|
6687
6687
|
const {
|
|
6688
6688
|
value: B
|
|
@@ -6707,12 +6707,12 @@ const av = {
|
|
|
6707
6707
|
}
|
|
6708
6708
|
}
|
|
6709
6709
|
function Bt($) {
|
|
6710
|
-
$.preventDefault(), $.stopPropagation(), Se("mousemove", window, nt, !0), Se("mouseup", window, Bt, !0),
|
|
6710
|
+
$.preventDefault(), $.stopPropagation(), Se("mousemove", window, nt, !0), Se("mouseup", window, Bt, !0), k = !1, We(), tt($) && W();
|
|
6711
6711
|
}
|
|
6712
6712
|
function fn($) {
|
|
6713
|
-
$.preventDefault(), $.stopPropagation(), S = !0,
|
|
6713
|
+
$.preventDefault(), $.stopPropagation(), S = !0, Oe("mousemove", window, On, !0), Oe("mouseup", window, kn, !0), b = y.value, C = $.clientY;
|
|
6714
6714
|
}
|
|
6715
|
-
function
|
|
6715
|
+
function On($) {
|
|
6716
6716
|
if (!S) return;
|
|
6717
6717
|
I !== void 0 && window.clearTimeout(I), d !== void 0 && window.clearTimeout(d);
|
|
6718
6718
|
const {
|
|
@@ -6731,8 +6731,8 @@ const av = {
|
|
|
6731
6731
|
} = _e;
|
|
6732
6732
|
Ve && (Ve.scrollTop = be);
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6735
|
-
$.preventDefault(), $.stopPropagation(), Se("mousemove", window,
|
|
6734
|
+
function kn($) {
|
|
6735
|
+
$.preventDefault(), $.stopPropagation(), Se("mousemove", window, On, !0), Se("mouseup", window, kn, !0), S = !1, We(), tt($) && W();
|
|
6736
6736
|
}
|
|
6737
6737
|
Ct(() => {
|
|
6738
6738
|
const {
|
|
@@ -6750,7 +6750,7 @@ const av = {
|
|
|
6750
6750
|
}), et(() => {
|
|
6751
6751
|
e.container || We();
|
|
6752
6752
|
}), ut(() => {
|
|
6753
|
-
I !== void 0 && window.clearTimeout(I), d !== void 0 && window.clearTimeout(d), Se("mousemove", window,
|
|
6753
|
+
I !== void 0 && window.clearTimeout(I), d !== void 0 && window.clearTimeout(d), Se("mousemove", window, On, !0), Se("mouseup", window, kn, !0);
|
|
6754
6754
|
});
|
|
6755
6755
|
const to = A(() => {
|
|
6756
6756
|
const {
|
|
@@ -6783,9 +6783,9 @@ const av = {
|
|
|
6783
6783
|
top: $l,
|
|
6784
6784
|
right: Tl,
|
|
6785
6785
|
bottom: Il,
|
|
6786
|
-
left:
|
|
6786
|
+
left: Ol
|
|
6787
6787
|
} = Bn(r?.value ? Gi(Ve) : Ve), {
|
|
6788
|
-
top:
|
|
6788
|
+
top: kl,
|
|
6789
6789
|
right: Pl,
|
|
6790
6790
|
bottom: Dl,
|
|
6791
6791
|
left: Al
|
|
@@ -6808,8 +6808,8 @@ const av = {
|
|
|
6808
6808
|
"--n-scrollbar-rail-top-vertical-right": $l,
|
|
6809
6809
|
"--n-scrollbar-rail-right-vertical-right": Tl,
|
|
6810
6810
|
"--n-scrollbar-rail-bottom-vertical-right": Il,
|
|
6811
|
-
"--n-scrollbar-rail-left-vertical-right":
|
|
6812
|
-
"--n-scrollbar-rail-top-vertical-left":
|
|
6811
|
+
"--n-scrollbar-rail-left-vertical-right": Ol,
|
|
6812
|
+
"--n-scrollbar-rail-top-vertical-left": kl,
|
|
6813
6813
|
"--n-scrollbar-rail-right-vertical-left": Pl,
|
|
6814
6814
|
"--n-scrollbar-rail-bottom-vertical-left": Dl,
|
|
6815
6815
|
"--n-scrollbar-rail-left-vertical-left": Al,
|
|
@@ -7053,11 +7053,11 @@ function hr(e, t) {
|
|
|
7053
7053
|
r !== void 0 ? f = $v(r, n, t, c) : o !== void 0 ? f = Ev(o, n, t, c) : f = No(n, t, c, !1);
|
|
7054
7054
|
const h = l === "parent", g = l === "child" || a, p = f, w = /* @__PURE__ */ new Set(), y = Math.max.apply(null, Array.from(u.keys()));
|
|
7055
7055
|
for (let m = y; m >= 0; m -= 1) {
|
|
7056
|
-
const
|
|
7056
|
+
const O = m === 0, P = u.get(m);
|
|
7057
7057
|
for (const S of P) {
|
|
7058
7058
|
if (S.isLeaf)
|
|
7059
7059
|
continue;
|
|
7060
|
-
const { key:
|
|
7060
|
+
const { key: k, shallowLoaded: I } = S;
|
|
7061
7061
|
if (g && I && S.children.forEach((v) => {
|
|
7062
7062
|
!v.disabled && !v.isLeaf && v.shallowLoaded && p.has(v.key) && p.delete(v.key);
|
|
7063
7063
|
}), S.disabled || !I)
|
|
@@ -7077,7 +7077,7 @@ function hr(e, t) {
|
|
|
7077
7077
|
}
|
|
7078
7078
|
d && !T ? (h && S.children.forEach((v) => {
|
|
7079
7079
|
!v.disabled && p.has(v.key) && p.delete(v.key);
|
|
7080
|
-
}), p.add(
|
|
7080
|
+
}), p.add(k)) : b && w.add(k), O && g && p.has(k) && p.delete(k);
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
7083
|
return {
|
|
@@ -7123,12 +7123,12 @@ function Iv(e) {
|
|
|
7123
7123
|
const t = e[0];
|
|
7124
7124
|
return t.isGroup || t.ignored || t.disabled ? t.getNext() : t;
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7126
|
+
function Ov(e, t) {
|
|
7127
7127
|
const n = e.siblings, o = n.length, { index: r } = e;
|
|
7128
7128
|
return t ? n[(r + 1) % o] : r === n.length - 1 ? null : n[r + 1];
|
|
7129
7129
|
}
|
|
7130
7130
|
function _s(e, t, { loop: n = !1, includeDisabled: o = !1 } = {}) {
|
|
7131
|
-
const r = t === "prev" ?
|
|
7131
|
+
const r = t === "prev" ? kv : Ov, i = {
|
|
7132
7132
|
reverse: t === "prev"
|
|
7133
7133
|
};
|
|
7134
7134
|
let s = !1, a = null;
|
|
@@ -7161,7 +7161,7 @@ function _s(e, t, { loop: n = !1, includeDisabled: o = !1 } = {}) {
|
|
|
7161
7161
|
}
|
|
7162
7162
|
return l(e), a;
|
|
7163
7163
|
}
|
|
7164
|
-
function
|
|
7164
|
+
function kv(e, t) {
|
|
7165
7165
|
const n = e.siblings, o = n.length, { index: r } = e;
|
|
7166
7166
|
return t ? n[(r - 1 + o) % o] : r === 0 ? null : n[r - 1];
|
|
7167
7167
|
}
|
|
@@ -7235,8 +7235,8 @@ function dl(e, t, n, o, r, i = null, s = 0) {
|
|
|
7235
7235
|
function Rv(e, t = {}) {
|
|
7236
7236
|
var n;
|
|
7237
7237
|
const o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), { getDisabled: i = gv, getIgnored: s = mv, getIsGroup: a = Cv, getKey: l = pv } = t, c = (n = t.getChildren) !== null && n !== void 0 ? n : hv, u = t.ignoreEmptyChildren ? (S) => {
|
|
7238
|
-
const
|
|
7239
|
-
return Array.isArray(
|
|
7238
|
+
const k = c(S);
|
|
7239
|
+
return Array.isArray(k) ? k.length ? k : null : k;
|
|
7240
7240
|
} : c, f = Object.assign({
|
|
7241
7241
|
get key() {
|
|
7242
7242
|
return l(this.rawNode);
|
|
@@ -7263,30 +7263,30 @@ function Rv(e, t = {}) {
|
|
|
7263
7263
|
function g(S) {
|
|
7264
7264
|
if (S == null)
|
|
7265
7265
|
return null;
|
|
7266
|
-
const
|
|
7267
|
-
return
|
|
7266
|
+
const k = o.get(S);
|
|
7267
|
+
return k && !k.isGroup && !k.ignored ? k : null;
|
|
7268
7268
|
}
|
|
7269
7269
|
function p(S) {
|
|
7270
7270
|
if (S == null)
|
|
7271
7271
|
return null;
|
|
7272
|
-
const
|
|
7273
|
-
return
|
|
7272
|
+
const k = o.get(S);
|
|
7273
|
+
return k && !k.ignored ? k : null;
|
|
7274
7274
|
}
|
|
7275
|
-
function w(S,
|
|
7275
|
+
function w(S, k) {
|
|
7276
7276
|
const I = p(S);
|
|
7277
|
-
return I ? I.getPrev(
|
|
7277
|
+
return I ? I.getPrev(k) : null;
|
|
7278
7278
|
}
|
|
7279
|
-
function y(S,
|
|
7279
|
+
function y(S, k) {
|
|
7280
7280
|
const I = p(S);
|
|
7281
|
-
return I ? I.getNext(
|
|
7281
|
+
return I ? I.getNext(k) : null;
|
|
7282
7282
|
}
|
|
7283
7283
|
function m(S) {
|
|
7284
|
-
const
|
|
7285
|
-
return
|
|
7284
|
+
const k = p(S);
|
|
7285
|
+
return k ? k.getParent() : null;
|
|
7286
7286
|
}
|
|
7287
|
-
function
|
|
7288
|
-
const
|
|
7289
|
-
return
|
|
7287
|
+
function O(S) {
|
|
7288
|
+
const k = p(S);
|
|
7289
|
+
return k ? k.getChild() : null;
|
|
7290
7290
|
}
|
|
7291
7291
|
const P = {
|
|
7292
7292
|
treeNodes: h,
|
|
@@ -7301,15 +7301,15 @@ function Rv(e, t = {}) {
|
|
|
7301
7301
|
getPrev: w,
|
|
7302
7302
|
getNext: y,
|
|
7303
7303
|
getParent: m,
|
|
7304
|
-
getChild:
|
|
7304
|
+
getChild: O,
|
|
7305
7305
|
getFirstAvailableNode() {
|
|
7306
7306
|
return Iv(h);
|
|
7307
7307
|
},
|
|
7308
|
-
getPath(S,
|
|
7309
|
-
return Tv(S,
|
|
7308
|
+
getPath(S, k = {}) {
|
|
7309
|
+
return Tv(S, k, P);
|
|
7310
7310
|
},
|
|
7311
|
-
getCheckedKeys(S,
|
|
7312
|
-
const { cascade: I = !0, leafOnly: d = !1, checkStrategy: b = "all", allowNotLoaded: T = !1 } =
|
|
7311
|
+
getCheckedKeys(S, k = {}) {
|
|
7312
|
+
const { cascade: I = !0, leafOnly: d = !1, checkStrategy: b = "all", allowNotLoaded: T = !1 } = k;
|
|
7313
7313
|
return hr({
|
|
7314
7314
|
checkedKeys: dr(S),
|
|
7315
7315
|
indeterminateKeys: fr(S),
|
|
@@ -7319,11 +7319,11 @@ function Rv(e, t = {}) {
|
|
|
7319
7319
|
allowNotLoaded: T
|
|
7320
7320
|
}, P);
|
|
7321
7321
|
},
|
|
7322
|
-
check(S,
|
|
7322
|
+
check(S, k, I = {}) {
|
|
7323
7323
|
const { cascade: d = !0, leafOnly: b = !1, checkStrategy: T = "all", allowNotLoaded: v = !1 } = I;
|
|
7324
7324
|
return hr({
|
|
7325
|
-
checkedKeys: dr(
|
|
7326
|
-
indeterminateKeys: fr(
|
|
7325
|
+
checkedKeys: dr(k),
|
|
7326
|
+
indeterminateKeys: fr(k),
|
|
7327
7327
|
keysToCheck: S == null ? [] : Es(S),
|
|
7328
7328
|
cascade: d,
|
|
7329
7329
|
leafOnly: b,
|
|
@@ -7331,11 +7331,11 @@ function Rv(e, t = {}) {
|
|
|
7331
7331
|
allowNotLoaded: v
|
|
7332
7332
|
}, P);
|
|
7333
7333
|
},
|
|
7334
|
-
uncheck(S,
|
|
7334
|
+
uncheck(S, k, I = {}) {
|
|
7335
7335
|
const { cascade: d = !0, leafOnly: b = !1, checkStrategy: T = "all", allowNotLoaded: v = !1 } = I;
|
|
7336
7336
|
return hr({
|
|
7337
|
-
checkedKeys: dr(
|
|
7338
|
-
indeterminateKeys: fr(
|
|
7337
|
+
checkedKeys: dr(k),
|
|
7338
|
+
indeterminateKeys: fr(k),
|
|
7339
7339
|
keysToUncheck: S == null ? [] : Es(S),
|
|
7340
7340
|
cascade: d,
|
|
7341
7341
|
leafOnly: b,
|
|
@@ -7409,7 +7409,7 @@ const fl = {
|
|
|
7409
7409
|
bottom: "top",
|
|
7410
7410
|
left: "right",
|
|
7411
7411
|
right: "left"
|
|
7412
|
-
},
|
|
7412
|
+
}, ke = "var(--n-arrow-height) * 1.414", zv = G([Y("popover", `
|
|
7413
7413
|
transition:
|
|
7414
7414
|
box-shadow .3s var(--n-bezier),
|
|
7415
7415
|
background-color .3s var(--n-bezier),
|
|
@@ -7446,8 +7446,8 @@ const fl = {
|
|
|
7446
7446
|
transition: background-color .3s var(--n-bezier);
|
|
7447
7447
|
position: absolute;
|
|
7448
7448
|
display: block;
|
|
7449
|
-
width: calc(${
|
|
7450
|
-
height: calc(${
|
|
7449
|
+
width: calc(${ke});
|
|
7450
|
+
height: calc(${ke});
|
|
7451
7451
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
7452
7452
|
transform: rotate(45deg);
|
|
7453
7453
|
background-color: var(--n-color);
|
|
@@ -7479,45 +7479,45 @@ const fl = {
|
|
|
7479
7479
|
transform .15s var(--n-bezier-ease-in);
|
|
7480
7480
|
`)
|
|
7481
7481
|
]), ot("top-start", `
|
|
7482
|
-
top: calc(${
|
|
7483
|
-
left: calc(${
|
|
7482
|
+
top: calc(${ke} / -2);
|
|
7483
|
+
left: calc(${kt("top-start")} - var(--v-offset-left));
|
|
7484
7484
|
`), ot("top", `
|
|
7485
|
-
top: calc(${
|
|
7486
|
-
transform: translateX(calc(${
|
|
7485
|
+
top: calc(${ke} / -2);
|
|
7486
|
+
transform: translateX(calc(${ke} / -2)) rotate(45deg);
|
|
7487
7487
|
left: 50%;
|
|
7488
7488
|
`), ot("top-end", `
|
|
7489
|
-
top: calc(${
|
|
7490
|
-
right: calc(${
|
|
7489
|
+
top: calc(${ke} / -2);
|
|
7490
|
+
right: calc(${kt("top-end")} + var(--v-offset-left));
|
|
7491
7491
|
`), ot("bottom-start", `
|
|
7492
|
-
bottom: calc(${
|
|
7493
|
-
left: calc(${
|
|
7492
|
+
bottom: calc(${ke} / -2);
|
|
7493
|
+
left: calc(${kt("bottom-start")} - var(--v-offset-left));
|
|
7494
7494
|
`), ot("bottom", `
|
|
7495
|
-
bottom: calc(${
|
|
7496
|
-
transform: translateX(calc(${
|
|
7495
|
+
bottom: calc(${ke} / -2);
|
|
7496
|
+
transform: translateX(calc(${ke} / -2)) rotate(45deg);
|
|
7497
7497
|
left: 50%;
|
|
7498
7498
|
`), ot("bottom-end", `
|
|
7499
|
-
bottom: calc(${
|
|
7500
|
-
right: calc(${
|
|
7499
|
+
bottom: calc(${ke} / -2);
|
|
7500
|
+
right: calc(${kt("bottom-end")} + var(--v-offset-left));
|
|
7501
7501
|
`), ot("left-start", `
|
|
7502
|
-
left: calc(${
|
|
7503
|
-
top: calc(${
|
|
7502
|
+
left: calc(${ke} / -2);
|
|
7503
|
+
top: calc(${kt("left-start")} - var(--v-offset-top));
|
|
7504
7504
|
`), ot("left", `
|
|
7505
|
-
left: calc(${
|
|
7506
|
-
transform: translateY(calc(${
|
|
7505
|
+
left: calc(${ke} / -2);
|
|
7506
|
+
transform: translateY(calc(${ke} / -2)) rotate(45deg);
|
|
7507
7507
|
top: 50%;
|
|
7508
7508
|
`), ot("left-end", `
|
|
7509
|
-
left: calc(${
|
|
7510
|
-
bottom: calc(${
|
|
7509
|
+
left: calc(${ke} / -2);
|
|
7510
|
+
bottom: calc(${kt("left-end")} + var(--v-offset-top));
|
|
7511
7511
|
`), ot("right-start", `
|
|
7512
|
-
right: calc(${
|
|
7513
|
-
top: calc(${
|
|
7512
|
+
right: calc(${ke} / -2);
|
|
7513
|
+
top: calc(${kt("right-start")} - var(--v-offset-top));
|
|
7514
7514
|
`), ot("right", `
|
|
7515
|
-
right: calc(${
|
|
7516
|
-
transform: translateY(calc(${
|
|
7515
|
+
right: calc(${ke} / -2);
|
|
7516
|
+
transform: translateY(calc(${ke} / -2)) rotate(45deg);
|
|
7517
7517
|
top: 50%;
|
|
7518
7518
|
`), ot("right-end", `
|
|
7519
|
-
right: calc(${
|
|
7520
|
-
bottom: calc(${
|
|
7519
|
+
right: calc(${ke} / -2);
|
|
7520
|
+
bottom: calc(${kt("right-end")} + var(--v-offset-top));
|
|
7521
7521
|
`), ...Gm({
|
|
7522
7522
|
top: ["right-start", "left-start"],
|
|
7523
7523
|
right: ["top-end", "bottom-end"],
|
|
@@ -7526,11 +7526,11 @@ const fl = {
|
|
|
7526
7526
|
}, (e, t) => {
|
|
7527
7527
|
const n = ["right", "left"].includes(t), o = n ? "width" : "height";
|
|
7528
7528
|
return e.map((r) => {
|
|
7529
|
-
const i = r.split("-")[1] === "end", a = `calc((${`var(--v-target-${o}, 0px)`} - ${
|
|
7529
|
+
const i = r.split("-")[1] === "end", a = `calc((${`var(--v-target-${o}, 0px)`} - ${ke}) / 2)`, l = kt(r);
|
|
7530
7530
|
return G(`[v-placement="${r}"] >`, [Y("popover-shared", [pe("center-arrow", [Y("popover-arrow", `${t}: calc(max(${a}, ${l}) ${i ? "+" : "-"} var(--v-offset-${n ? "left" : "top"}));`)])])]);
|
|
7531
7531
|
});
|
|
7532
7532
|
})]);
|
|
7533
|
-
function
|
|
7533
|
+
function kt(e) {
|
|
7534
7534
|
return ["top", "bottom"].includes(e.split("-")[0]) ? "var(--n-arrow-offset)" : "var(--n-arrow-offset-vertical)";
|
|
7535
7535
|
}
|
|
7536
7536
|
function ot(e, t) {
|
|
@@ -7633,9 +7633,9 @@ const Lv = Ee({
|
|
|
7633
7633
|
value: v
|
|
7634
7634
|
}
|
|
7635
7635
|
} = l;
|
|
7636
|
-
return v || (d === "click" && !b && T.push([
|
|
7636
|
+
return v || (d === "click" && !b && T.push([Oi, S, void 0, {
|
|
7637
7637
|
capture: !0
|
|
7638
|
-
}]), d === "hover" && T.push([ad, P])), b && T.push([
|
|
7638
|
+
}]), d === "hover" && T.push([ad, P])), b && T.push([Oi, S, void 0, {
|
|
7639
7639
|
capture: !0
|
|
7640
7640
|
}]), (e.displayDirective === "show" || e.animated && f.value) && T.push([Xl, e.show]), T;
|
|
7641
7641
|
}), g = A(() => {
|
|
@@ -7706,16 +7706,16 @@ const Lv = Ee({
|
|
|
7706
7706
|
function m(d) {
|
|
7707
7707
|
e.trigger === "hover" && e.keepAliveOnHover && e.show && l.handleMouseEnter(d);
|
|
7708
7708
|
}
|
|
7709
|
-
function
|
|
7709
|
+
function O(d) {
|
|
7710
7710
|
e.trigger === "hover" && e.keepAliveOnHover && l.handleMouseLeave(d);
|
|
7711
7711
|
}
|
|
7712
7712
|
function P(d) {
|
|
7713
|
-
e.trigger === "hover" && !
|
|
7713
|
+
e.trigger === "hover" && !k().contains(Oo(d)) && l.handleMouseMoveOutside(d);
|
|
7714
7714
|
}
|
|
7715
7715
|
function S(d) {
|
|
7716
|
-
(e.trigger === "click" && !
|
|
7716
|
+
(e.trigger === "click" && !k().contains(Oo(d)) || e.onClickoutside) && l.handleClickOutside(d);
|
|
7717
7717
|
}
|
|
7718
|
-
function
|
|
7718
|
+
function k() {
|
|
7719
7719
|
return l.getTriggerElement();
|
|
7720
7720
|
}
|
|
7721
7721
|
st(Vo, c), st(Vr, null), st(Ur, null);
|
|
@@ -7735,7 +7735,7 @@ const Lv = Ee({
|
|
|
7735
7735
|
c,
|
|
7736
7736
|
p.value,
|
|
7737
7737
|
m,
|
|
7738
|
-
|
|
7738
|
+
O
|
|
7739
7739
|
);
|
|
7740
7740
|
else {
|
|
7741
7741
|
const {
|
|
@@ -7783,7 +7783,7 @@ const Lv = Ee({
|
|
|
7783
7783
|
style: p.value,
|
|
7784
7784
|
onKeydown: l.handleKeydown,
|
|
7785
7785
|
onMouseenter: m,
|
|
7786
|
-
onMouseleave:
|
|
7786
|
+
onMouseleave: O
|
|
7787
7787
|
}, n), _ ? D(Kd, {
|
|
7788
7788
|
active: e.show,
|
|
7789
7789
|
autoFocus: !0
|
|
@@ -7984,7 +7984,7 @@ const si = {
|
|
|
7984
7984
|
} = h;
|
|
7985
7985
|
x && (window.clearTimeout(x), h.value = null);
|
|
7986
7986
|
}
|
|
7987
|
-
function
|
|
7987
|
+
function O() {
|
|
7988
7988
|
const {
|
|
7989
7989
|
value: x
|
|
7990
7990
|
} = g;
|
|
@@ -8004,10 +8004,10 @@ const si = {
|
|
|
8004
8004
|
w(!1);
|
|
8005
8005
|
}
|
|
8006
8006
|
}
|
|
8007
|
-
function
|
|
8007
|
+
function k() {
|
|
8008
8008
|
const x = a();
|
|
8009
8009
|
if (e.trigger === "hover" && !x) {
|
|
8010
|
-
if (
|
|
8010
|
+
if (O(), h.value !== null || l()) return;
|
|
8011
8011
|
const R = () => {
|
|
8012
8012
|
w(!0), h.value = null;
|
|
8013
8013
|
}, {
|
|
@@ -8033,17 +8033,17 @@ const si = {
|
|
|
8033
8033
|
}
|
|
8034
8034
|
function b(x) {
|
|
8035
8035
|
var R;
|
|
8036
|
-
l() && (e.trigger === "click" && (m(),
|
|
8036
|
+
l() && (e.trigger === "click" && (m(), O(), w(!1)), (R = e.onClickoutside) === null || R === void 0 || R.call(e, x));
|
|
8037
8037
|
}
|
|
8038
8038
|
function T() {
|
|
8039
8039
|
if (e.trigger === "click" && !a()) {
|
|
8040
|
-
m(),
|
|
8040
|
+
m(), O();
|
|
8041
8041
|
const x = !l();
|
|
8042
8042
|
w(x);
|
|
8043
8043
|
}
|
|
8044
8044
|
}
|
|
8045
8045
|
function v(x) {
|
|
8046
|
-
e.internalTrapFocus && x.key === "Escape" && (m(),
|
|
8046
|
+
e.internalTrapFocus && x.key === "Escape" && (m(), O(), w(!1));
|
|
8047
8047
|
}
|
|
8048
8048
|
function C(x) {
|
|
8049
8049
|
r.value = x;
|
|
@@ -8058,7 +8058,7 @@ const si = {
|
|
|
8058
8058
|
return st("NPopover", {
|
|
8059
8059
|
getTriggerElement: _,
|
|
8060
8060
|
handleKeydown: v,
|
|
8061
|
-
handleMouseEnter:
|
|
8061
|
+
handleMouseEnter: k,
|
|
8062
8062
|
handleMouseLeave: I,
|
|
8063
8063
|
handleClickOutside: b,
|
|
8064
8064
|
handleMouseMoveOutside: d,
|
|
@@ -8080,7 +8080,7 @@ const si = {
|
|
|
8080
8080
|
getMergedShow: l,
|
|
8081
8081
|
setShow: C,
|
|
8082
8082
|
handleClick: T,
|
|
8083
|
-
handleMouseEnter:
|
|
8083
|
+
handleMouseEnter: k,
|
|
8084
8084
|
handleMouseLeave: I,
|
|
8085
8085
|
handleFocus: P,
|
|
8086
8086
|
handleBlur: S,
|
|
@@ -8507,7 +8507,7 @@ const qv = {
|
|
|
8507
8507
|
I.preventDefault();
|
|
8508
8508
|
}
|
|
8509
8509
|
}
|
|
8510
|
-
const
|
|
8510
|
+
const O = {
|
|
8511
8511
|
focus: () => {
|
|
8512
8512
|
var I;
|
|
8513
8513
|
(I = n.value) === null || I === void 0 || I.focus();
|
|
@@ -8577,8 +8577,8 @@ const qv = {
|
|
|
8577
8577
|
"--n-font-size": oe,
|
|
8578
8578
|
"--n-label-padding": ue
|
|
8579
8579
|
};
|
|
8580
|
-
}),
|
|
8581
|
-
return Object.assign(u,
|
|
8580
|
+
}), k = r ? $n("checkbox", A(() => h.value[0]), S, e) : void 0;
|
|
8581
|
+
return Object.assign(u, O, {
|
|
8582
8582
|
rtlEnabled: P,
|
|
8583
8583
|
selfRef: n,
|
|
8584
8584
|
mergedClsPrefix: o,
|
|
@@ -8590,8 +8590,8 @@ const qv = {
|
|
|
8590
8590
|
handleKeyUp: y,
|
|
8591
8591
|
handleKeyDown: m,
|
|
8592
8592
|
cssVars: r ? void 0 : S,
|
|
8593
|
-
themeClass:
|
|
8594
|
-
onRender:
|
|
8593
|
+
themeClass: k?.themeClass,
|
|
8594
|
+
onRender: k?.onRender
|
|
8595
8595
|
});
|
|
8596
8596
|
},
|
|
8597
8597
|
render() {
|
|
@@ -8628,7 +8628,7 @@ const qv = {
|
|
|
8628
8628
|
onKeydown: h,
|
|
8629
8629
|
onClick: g,
|
|
8630
8630
|
onMousedown: () => {
|
|
8631
|
-
|
|
8631
|
+
Oe("selectstart", window, (w) => {
|
|
8632
8632
|
w.preventDefault();
|
|
8633
8633
|
}, {
|
|
8634
8634
|
once: !0
|
|
@@ -8981,12 +8981,12 @@ const gl = Ee({
|
|
|
8981
8981
|
renderOptionRef: g,
|
|
8982
8982
|
nodePropsRef: p,
|
|
8983
8983
|
menuPropsRef: w
|
|
8984
|
-
} = t, y = we(Is, null), m = we(ai),
|
|
8984
|
+
} = t, y = we(Is, null), m = we(ai), O = we(Vo), P = A(() => e.tmNode.rawNode), S = A(() => {
|
|
8985
8985
|
const {
|
|
8986
8986
|
value: F
|
|
8987
8987
|
} = h;
|
|
8988
8988
|
return Ar(e.tmNode.rawNode, F);
|
|
8989
|
-
}),
|
|
8989
|
+
}), k = A(() => {
|
|
8990
8990
|
const {
|
|
8991
8991
|
disabled: F
|
|
8992
8992
|
} = e.tmNode;
|
|
@@ -9057,7 +9057,7 @@ const gl = Ee({
|
|
|
9057
9057
|
siblingHasIcon: m.showIconRef,
|
|
9058
9058
|
siblingHasSubmenu: m.hasSubmenuRef,
|
|
9059
9059
|
menuProps: w,
|
|
9060
|
-
popoverBody:
|
|
9060
|
+
popoverBody: O,
|
|
9061
9061
|
animated: a,
|
|
9062
9062
|
mergedShowSubmenu: A(() => b.value && !T.value),
|
|
9063
9063
|
rawNode: P,
|
|
@@ -9086,7 +9086,7 @@ const gl = Ee({
|
|
|
9086
9086
|
} = e.tmNode, L = F.findIndex((X) => H === X);
|
|
9087
9087
|
return L === -1 ? !1 : L === F.length - 1;
|
|
9088
9088
|
}),
|
|
9089
|
-
mergedDisabled:
|
|
9089
|
+
mergedDisabled: k,
|
|
9090
9090
|
renderOption: g,
|
|
9091
9091
|
nodeProps: p,
|
|
9092
9092
|
handleClick: R,
|
|
@@ -9115,8 +9115,8 @@ const gl = Ee({
|
|
|
9115
9115
|
} = this;
|
|
9116
9116
|
let p = null;
|
|
9117
9117
|
if (r) {
|
|
9118
|
-
const
|
|
9119
|
-
p = D(bl, Object.assign({},
|
|
9118
|
+
const O = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, o, o.children);
|
|
9119
|
+
p = D(bl, Object.assign({}, O, {
|
|
9120
9120
|
clsPrefix: i,
|
|
9121
9121
|
scrollable: this.scrollable,
|
|
9122
9122
|
tmNodes: this.tmNode.children,
|
|
@@ -9526,7 +9526,7 @@ const gl = Ee({
|
|
|
9526
9526
|
keydown: {
|
|
9527
9527
|
ArrowUp: {
|
|
9528
9528
|
prevent: !0,
|
|
9529
|
-
handler:
|
|
9529
|
+
handler: k
|
|
9530
9530
|
},
|
|
9531
9531
|
ArrowRight: {
|
|
9532
9532
|
prevent: !0,
|
|
@@ -9544,7 +9544,7 @@ const gl = Ee({
|
|
|
9544
9544
|
prevent: !0,
|
|
9545
9545
|
handler: d
|
|
9546
9546
|
},
|
|
9547
|
-
Escape:
|
|
9547
|
+
Escape: O
|
|
9548
9548
|
}
|
|
9549
9549
|
}, f);
|
|
9550
9550
|
const {
|
|
@@ -9587,7 +9587,7 @@ const gl = Ee({
|
|
|
9587
9587
|
function m() {
|
|
9588
9588
|
i.value = null, s.value = null, a.value = null;
|
|
9589
9589
|
}
|
|
9590
|
-
function
|
|
9590
|
+
function O() {
|
|
9591
9591
|
y(!1);
|
|
9592
9592
|
}
|
|
9593
9593
|
function P() {
|
|
@@ -9596,7 +9596,7 @@ const gl = Ee({
|
|
|
9596
9596
|
function S() {
|
|
9597
9597
|
T("right");
|
|
9598
9598
|
}
|
|
9599
|
-
function
|
|
9599
|
+
function k() {
|
|
9600
9600
|
T("up");
|
|
9601
9601
|
}
|
|
9602
9602
|
function I() {
|
|
@@ -9863,7 +9863,7 @@ const yg = {
|
|
|
9863
9863
|
opacitySpinning: f,
|
|
9864
9864
|
color: h,
|
|
9865
9865
|
textColor: g
|
|
9866
|
-
} = u, p = typeof l == "number" ?
|
|
9866
|
+
} = u, p = typeof l == "number" ? Ou(l) : u[bt("size", l)];
|
|
9867
9867
|
return {
|
|
9868
9868
|
"--n-bezier": c,
|
|
9869
9869
|
"--n-opacity-spinning": f,
|
|
@@ -9945,15 +9945,15 @@ const yg = {
|
|
|
9945
9945
|
default: () => this.active ? a : null
|
|
9946
9946
|
})) : a;
|
|
9947
9947
|
}
|
|
9948
|
-
}), Eg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0 0 0 0l.3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"/></svg>', _g = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>', $g = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>', Tg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"/></svg>',
|
|
9948
|
+
}), Eg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0 0 0 0l.3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"/></svg>', _g = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>', $g = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>', Tg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"/></svg>', Os = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>', Ig = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>', Og = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"/></svg>', Pt = {
|
|
9949
9949
|
comment: Eg,
|
|
9950
9950
|
caretDown: _g,
|
|
9951
9951
|
internal: $g,
|
|
9952
9952
|
external: Tg,
|
|
9953
|
-
markDone:
|
|
9954
|
-
acceptChange:
|
|
9953
|
+
markDone: Os,
|
|
9954
|
+
acceptChange: Os,
|
|
9955
9955
|
rejectChange: Ig,
|
|
9956
|
-
overflow:
|
|
9956
|
+
overflow: Og
|
|
9957
9957
|
}, Ne = Object.freeze({
|
|
9958
9958
|
RESOLVE_OWN: "RESOLVE_OWN",
|
|
9959
9959
|
RESOLVE_OTHER: "RESOLVE_OTHER",
|
|
@@ -9969,7 +9969,7 @@ const yg = {
|
|
|
9969
9969
|
EDITOR: "editor",
|
|
9970
9970
|
SUGGESTER: "suggester",
|
|
9971
9971
|
VIEWER: "viewer"
|
|
9972
|
-
}),
|
|
9972
|
+
}), kg = Object.freeze({
|
|
9973
9973
|
[Ne.RESOLVE_OWN]: {
|
|
9974
9974
|
internal: [Te.EDITOR],
|
|
9975
9975
|
external: [Te.EDITOR]
|
|
@@ -10012,7 +10012,7 @@ const yg = {
|
|
|
10012
10012
|
}
|
|
10013
10013
|
}), bn = (e, t, n) => {
|
|
10014
10014
|
const o = n ? "internal" : "external";
|
|
10015
|
-
return
|
|
10015
|
+
return kg[e]?.[o]?.includes(t);
|
|
10016
10016
|
}, Re = (e, t) => {
|
|
10017
10017
|
const n = e.__vccOpts || e;
|
|
10018
10018
|
for (const [o, r] of t)
|
|
@@ -10146,17 +10146,17 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10146
10146
|
if (!u.value) return !1;
|
|
10147
10147
|
const P = [], S = /* @__PURE__ */ new Set();
|
|
10148
10148
|
r.comment.creatorEmail === i.$superdoc.config.user.email && S.add("edit");
|
|
10149
|
-
const
|
|
10150
|
-
return (
|
|
10151
|
-
}), w = () => n("resolve"), y = () => n("reject"), m = (P) => n("overflow-select", P),
|
|
10149
|
+
const k = r.comment.creatorEmail === i.$superdoc.config.user.email;
|
|
10150
|
+
return (k && bn(Ne.COMMENTS_DELETE_OWN, s, a) || !k && bn(Ne.COMMENTS_DELETE_OTHER, s, a)) && S.add("delete"), S.forEach((I) => P.push(c[I])), P;
|
|
10151
|
+
}), w = () => n("resolve"), y = () => n("reject"), m = (P) => n("overflow-select", P), O = A(() => r.isPendingInput ? i.$superdoc.config.user : r.comment.getCommentUser());
|
|
10152
10152
|
return (P, S) => (j(), K("div", Vg, [
|
|
10153
10153
|
ae("div", Ug, [
|
|
10154
10154
|
ht(Rg, {
|
|
10155
|
-
user:
|
|
10155
|
+
user: O.value,
|
|
10156
10156
|
class: "avatar"
|
|
10157
10157
|
}, null, 8, ["user"]),
|
|
10158
10158
|
ae("div", Wg, [
|
|
10159
|
-
ae("div", Kg, at(
|
|
10159
|
+
ae("div", Kg, at(O.value.name), 1),
|
|
10160
10160
|
r.comment.createdTime ? (j(), K("div", Gg, at(te(jg)(r.comment.createdTime)), 1)) : he("", !0)
|
|
10161
10161
|
])
|
|
10162
10162
|
]),
|
|
@@ -10248,7 +10248,7 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10248
10248
|
], 2)
|
|
10249
10249
|
]));
|
|
10250
10250
|
}
|
|
10251
|
-
},
|
|
10251
|
+
}, ks = /* @__PURE__ */ Re(eb, [["__scopeId", "data-v-76d953bd"]]), tb = {
|
|
10252
10252
|
key: 0,
|
|
10253
10253
|
class: "existing-internal-input"
|
|
10254
10254
|
}, nb = {
|
|
@@ -10297,24 +10297,24 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10297
10297
|
pendingComment: w,
|
|
10298
10298
|
currentCommentText: y,
|
|
10299
10299
|
isDebugging: m,
|
|
10300
|
-
editingCommentId:
|
|
10300
|
+
editingCommentId: O,
|
|
10301
10301
|
editorCommentPositions: P
|
|
10302
|
-
} = lt(s), { activeZoom: S } = lt(i),
|
|
10302
|
+
} = lt(s), { activeZoom: S } = lt(i), k = E(!0);
|
|
10303
10303
|
E(!1);
|
|
10304
|
-
const I = E(null), d = E(null), b = A(() => g.value === o.comment.commentId), T = A(() => !h.readOnly && b.value && !o.comment.resolvedTime &&
|
|
10304
|
+
const I = E(null), d = E(null), b = A(() => g.value === o.comment.commentId), T = A(() => !h.readOnly && b.value && !o.comment.resolvedTime && O.value !== o.comment.commentId), v = A(() => (Q) => C.value && Q === _.value.length - 1 ? !0 : _.value.length > 1 && Q !== _.value.length - 1), C = A(() => !h.readOnly && b.value && !o.comment.resolvedTime && O.value !== o.comment.commentId), _ = A(() => {
|
|
10305
10305
|
const Q = o.comment;
|
|
10306
10306
|
return s.commentsList.filter((oe) => {
|
|
10307
10307
|
const Pe = oe.parentCommentId === Q.commentId, fe = oe.commentId === o.comment.commentId;
|
|
10308
10308
|
return Pe || fe;
|
|
10309
10309
|
}).sort((oe, Pe) => oe.commentId === o.comment.commentId && oe.createdTime - Pe.createdTime);
|
|
10310
|
-
}), z = A(() => o.comment.resolvedTime ? !0 : h.value.readOnly), M = A(() => (Q) =>
|
|
10310
|
+
}), z = A(() => o.comment.resolvedTime ? !0 : h.value.readOnly), M = A(() => (Q) => O.value === Q.commentId), x = A(() => r.$superdoc.config.isInternal ? !f.value && !o.comment.trackedChange : !1), R = A(() => y.value && y.value !== "<p></p>"), F = () => {
|
|
10311
10311
|
o.comment.resolvedTime || (g.value = o.comment.commentId, o.comment.setActive(r.$superdoc));
|
|
10312
10312
|
}, H = (Q) => {
|
|
10313
10313
|
Q.target.classList.contains("n-dropdown-option-body__label") || Q.target.classList.contains("comment-highlight") || (g.value === o.comment.commentId && (p.value = 0, n("dialog-exit")), g.value = null);
|
|
10314
10314
|
}, L = () => {
|
|
10315
10315
|
const Q = {
|
|
10316
10316
|
documentId: o.comment.fileId,
|
|
10317
|
-
isInternal: w.value ? w.value.isInternal :
|
|
10317
|
+
isInternal: w.value ? w.value.isInternal : k.value,
|
|
10318
10318
|
parentCommentId: w.value ? null : o.comment.commentId
|
|
10319
10319
|
};
|
|
10320
10320
|
if (w.value) {
|
|
@@ -10342,14 +10342,14 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10342
10342
|
}, ce = (Q, oe) => {
|
|
10343
10343
|
switch (Q) {
|
|
10344
10344
|
case "edit":
|
|
10345
|
-
y.value = oe.commentText, g.value = oe.commentId,
|
|
10345
|
+
y.value = oe.commentText, g.value = oe.commentId, O.value = oe.commentId;
|
|
10346
10346
|
break;
|
|
10347
10347
|
case "delete":
|
|
10348
10348
|
c({ superdoc: r.$superdoc, commentId: oe.commentId });
|
|
10349
10349
|
break;
|
|
10350
10350
|
}
|
|
10351
10351
|
}, ge = (Q) => {
|
|
10352
|
-
|
|
10352
|
+
O.value = null, Q.setText({ text: y.value, superdoc: r.$superdoc }), u(r.$superdoc);
|
|
10353
10353
|
}, $e = (Q) => {
|
|
10354
10354
|
const oe = !!w.value, Pe = Q.toLowerCase() === "internal";
|
|
10355
10355
|
oe ? w.value.isInternal = Pe : o.comment.setIsInternal({ isInternal: Pe, superdoc: r.$superdoc });
|
|
@@ -10361,7 +10361,7 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10361
10361
|
}
|
|
10362
10362
|
return Q;
|
|
10363
10363
|
}), _e = (Q) => typeof Q == "string" ? new Date(Q).getTime() : Q, ue = (Q) => {
|
|
10364
|
-
|
|
10364
|
+
O.value = null, l(r.$superdoc);
|
|
10365
10365
|
}, Xe = A(() => {
|
|
10366
10366
|
const Q = r.$superdoc.users;
|
|
10367
10367
|
return o.comment.isInternal === !0 ? Q.filter((oe) => oe.access?.role === "internal") : Q;
|
|
@@ -10426,7 +10426,7 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10426
10426
|
class: "comment",
|
|
10427
10427
|
innerHTML: fe.commentText
|
|
10428
10428
|
}, null, 8, fb)) : te(m) && !M.value(fe) ? (j(), K("div", hb, at(te(P)[fe.importedId !== void 0 ? fe.importedId : fe.commentId]?.bounds), 1)) : (j(), K("div", pb, [
|
|
10429
|
-
ht(
|
|
10429
|
+
ht(ks, {
|
|
10430
10430
|
users: Xe.value,
|
|
10431
10431
|
config: te(h),
|
|
10432
10432
|
"include-header": !1,
|
|
@@ -10447,7 +10447,7 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10447
10447
|
v.value(Ye) ? (j(), K("div", bb)) : he("", !0)
|
|
10448
10448
|
]))), 128)),
|
|
10449
10449
|
C.value && !te(h).readOnly ? (j(), K("div", yb, [
|
|
10450
|
-
ht(
|
|
10450
|
+
ht(ks, {
|
|
10451
10451
|
ref_key: "commentInput",
|
|
10452
10452
|
ref: I,
|
|
10453
10453
|
users: Xe.value,
|
|
@@ -10505,8 +10505,8 @@ const Vg = { class: "card-section comment-header" }, Ug = { class: "comment-head
|
|
|
10505
10505
|
])) : he("", !0)
|
|
10506
10506
|
]));
|
|
10507
10507
|
}
|
|
10508
|
-
},
|
|
10509
|
-
class
|
|
10508
|
+
}, Ob = /* @__PURE__ */ Re(Ib, [["__scopeId", "data-v-12d3e3dd"]]);
|
|
10509
|
+
class kb extends Ns {
|
|
10510
10510
|
element;
|
|
10511
10511
|
config = {
|
|
10512
10512
|
comments: [],
|
|
@@ -10517,7 +10517,7 @@ class Ob extends Ns {
|
|
|
10517
10517
|
super(), this.config = { ...this.config, ...t }, this.element = this.config.element, this.app = null, this.superdoc = n, this.open();
|
|
10518
10518
|
}
|
|
10519
10519
|
createVueApp() {
|
|
10520
|
-
this.app = Fs(
|
|
10520
|
+
this.app = Fs(Ob), this.app.directive("click-outside", Hs), this.app.config.globalProperties.$superdoc = this.superdoc, !this.element && this.config.selector && (this.element = document.getElementById(this.config.selector)), this.container = this.app.mount(this.element);
|
|
10521
10521
|
}
|
|
10522
10522
|
close() {
|
|
10523
10523
|
this.app && (this.app.unmount(), this.app = null, this.container = null, this.element = null);
|
|
@@ -10551,7 +10551,7 @@ const Pb = (e, t) => {
|
|
|
10551
10551
|
async function m() {
|
|
10552
10552
|
r?.$superdoc?.config?.pdfjsWorkerSrcUrl && (di.GlobalWorkerOptions.workerSrc = r.$superdoc.config.pdfjsWorkerSrcUrl);
|
|
10553
10553
|
}
|
|
10554
|
-
async function
|
|
10554
|
+
async function O(C) {
|
|
10555
10555
|
await m();
|
|
10556
10556
|
const _ = di.getDocument(C), z = await _.promise;
|
|
10557
10557
|
return { loadingTask: _, document: z };
|
|
@@ -10559,7 +10559,7 @@ const Pb = (e, t) => {
|
|
|
10559
10559
|
async function P(C) {
|
|
10560
10560
|
const _ = new FileReader();
|
|
10561
10561
|
_.onload = async function(z) {
|
|
10562
|
-
const { loadingTask: M, document: x } = await
|
|
10562
|
+
const { loadingTask: M, document: x } = await O(z.target.result);
|
|
10563
10563
|
f = x, S(x);
|
|
10564
10564
|
}, _.readAsArrayBuffer(C);
|
|
10565
10565
|
}
|
|
@@ -10568,7 +10568,7 @@ const Pb = (e, t) => {
|
|
|
10568
10568
|
I(C);
|
|
10569
10569
|
}, 150);
|
|
10570
10570
|
};
|
|
10571
|
-
async function
|
|
10571
|
+
async function k(C, _, z) {
|
|
10572
10572
|
const M = Pb(_, z + 1).map((x) => C.getPage(x));
|
|
10573
10573
|
return await Promise.all(M);
|
|
10574
10574
|
}
|
|
@@ -10576,7 +10576,7 @@ const Pb = (e, t) => {
|
|
|
10576
10576
|
try {
|
|
10577
10577
|
const _ = C.numPages;
|
|
10578
10578
|
s.value = _;
|
|
10579
|
-
const M = await
|
|
10579
|
+
const M = await k(C, 1, _), x = [];
|
|
10580
10580
|
for (const [R, F] of M.entries()) {
|
|
10581
10581
|
const H = document.createElement("div");
|
|
10582
10582
|
H.className = "pdf-page", H.dataset.pageNumber = R + 1, H.id = `${p}-page-${R + 1}`, x.push(H);
|
|
@@ -10630,7 +10630,7 @@ const Pb = (e, t) => {
|
|
|
10630
10630
|
n("selection-change", M);
|
|
10631
10631
|
}
|
|
10632
10632
|
}, v = () => {
|
|
10633
|
-
h.forEach((C) => C.destroy()), f.cleanup(), f.destroy(), h = [], f = null
|
|
10633
|
+
h.forEach((C) => C.destroy()), f.cleanup(), f.destroy(), h = [], f = null;
|
|
10634
10634
|
};
|
|
10635
10635
|
return et(async () => {
|
|
10636
10636
|
await Promise.resolve({ }), await P(w);
|
|
@@ -10655,7 +10655,7 @@ const Pb = (e, t) => {
|
|
|
10655
10655
|
]))
|
|
10656
10656
|
], 32));
|
|
10657
10657
|
}
|
|
10658
|
-
}, Mb = /* @__PURE__ */ Re(Ab, [["__scopeId", "data-v-
|
|
10658
|
+
}, Mb = /* @__PURE__ */ Re(Ab, [["__scopeId", "data-v-33ecc09d"]]), Rb = {
|
|
10659
10659
|
class: "comments-container",
|
|
10660
10660
|
id: "commentsContainer"
|
|
10661
10661
|
}, Bb = { class: "comments-layer" }, Fb = ["onClick", "data-id"], Nb = {
|
|
@@ -10673,7 +10673,7 @@ const Pb = (e, t) => {
|
|
|
10673
10673
|
emits: ["highlight-click"],
|
|
10674
10674
|
setup(e, { expose: t, emit: n }) {
|
|
10675
10675
|
const o = Et(), r = At(), { COMMENT_EVENTS: i } = r, { documentsWithConverations: s, activeComment: a, floatingCommentsOffset: l, commentsList: c } = lt(r), { documents: u, activeZoom: f } = lt(o), { proxy: h } = St(), g = n, p = e, w = (S) => {
|
|
10676
|
-
const
|
|
10676
|
+
const k = {
|
|
10677
10677
|
creatorEmail: p.user.email,
|
|
10678
10678
|
creatorName: p.user.name,
|
|
10679
10679
|
documentId: S.documentId,
|
|
@@ -10689,10 +10689,10 @@ const Pb = (e, t) => {
|
|
|
10689
10689
|
I.left = I.right, I.right = T;
|
|
10690
10690
|
}
|
|
10691
10691
|
S.selectionBounds = I;
|
|
10692
|
-
const d = u.value.find((T) => T.id === S.documentId), b = Yt(
|
|
10692
|
+
const d = u.value.find((T) => T.id === S.documentId), b = Yt(k);
|
|
10693
10693
|
a.value = b.commentId, d.conversations.push(b), h.$superdoc.emit("comments-update", { type: i.NEW, comment: b.getValues() });
|
|
10694
10694
|
}, y = (S) => {
|
|
10695
|
-
const { selection:
|
|
10695
|
+
const { selection: k, commentId: I } = S, d = k.getContainerLocation(p.parent), b = S.selection.selectionBounds;
|
|
10696
10696
|
(parseFloat(b.top) + d.top) * f.value;
|
|
10697
10697
|
const T = "#078383", v = "#B1124B";
|
|
10698
10698
|
let C = "33";
|
|
@@ -10709,7 +10709,7 @@ const Pb = (e, t) => {
|
|
|
10709
10709
|
};
|
|
10710
10710
|
}, m = (S) => {
|
|
10711
10711
|
l.value = S.selection.selectionBounds.top;
|
|
10712
|
-
},
|
|
10712
|
+
}, O = (S, k) => {
|
|
10713
10713
|
S.isFocused = !0, a.value = S.commentId, S.setActive(h.$superdoc), g("highlight-click", S);
|
|
10714
10714
|
}, P = A(() => c.value.filter((S) => !S.parentCommentId).filter((S) => S.selection && S.selection.selectionBounds?.top).filter((S) => !S.resolvedTime).filter((S) => S.selection?.source !== "super-editor"));
|
|
10715
10715
|
return Ie(a, (S) => {
|
|
@@ -10717,13 +10717,13 @@ const Pb = (e, t) => {
|
|
|
10717
10717
|
document.getElementById(S)?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
10718
10718
|
}), t({
|
|
10719
10719
|
addCommentEntry: w,
|
|
10720
|
-
activateComment:
|
|
10720
|
+
activateComment: O,
|
|
10721
10721
|
setFloatingCommentOffset: m
|
|
10722
|
-
}), (S,
|
|
10722
|
+
}), (S, k) => (j(), K("div", Rb, [
|
|
10723
10723
|
ae("div", Bb, [
|
|
10724
10724
|
(j(!0), K(je, null, Dt(P.value, (I) => (j(), K("div", {
|
|
10725
10725
|
class: "comment-anchor sd-highlight",
|
|
10726
|
-
onClick: ft((d) =>
|
|
10726
|
+
onClick: ft((d) => O(I), ["stop", "prevent"]),
|
|
10727
10727
|
"data-id": I.commentId,
|
|
10728
10728
|
style: Qe(y(I))
|
|
10729
10729
|
}, null, 12, Fb))), 256))
|
|
@@ -10753,57 +10753,57 @@ const Pb = (e, t) => {
|
|
|
10753
10753
|
editorCommentPositions: a
|
|
10754
10754
|
} = lt(n), l = E(null), c = E([]), u = E(!1), f = E(0), h = E(0), g = A(() => (m) => l.value ? (l.value.getBoundingClientRect(), typeof m.top != "number" || isNaN(m.top) ? { display: "none" } : { top: `${m.top}px` }) : { top: "0px" }), p = (m) => {
|
|
10755
10755
|
if (!m) return window;
|
|
10756
|
-
let
|
|
10757
|
-
for (;
|
|
10758
|
-
const P = getComputedStyle(
|
|
10756
|
+
let O = m.parentNode;
|
|
10757
|
+
for (; O && O !== document; ) {
|
|
10758
|
+
const P = getComputedStyle(O);
|
|
10759
10759
|
if (/(auto|scroll|overlay)/.test(P.overflow + P.overflowY + P.overflowX))
|
|
10760
|
-
return
|
|
10761
|
-
|
|
10760
|
+
return O;
|
|
10761
|
+
O = O.parentNode;
|
|
10762
10762
|
}
|
|
10763
10763
|
return window;
|
|
10764
10764
|
}, w = (m) => {
|
|
10765
10765
|
if (!m) return;
|
|
10766
|
-
const { elementRef:
|
|
10767
|
-
|
|
10766
|
+
const { elementRef: O, commentId: P } = m;
|
|
10767
|
+
O && He(() => {
|
|
10768
10768
|
const S = P;
|
|
10769
10769
|
if (c.value.some((C) => C.id == S)) return;
|
|
10770
|
-
const
|
|
10770
|
+
const k = o.value.find((C) => C.commentId === S || C.importedId == S), I = a.value[S]?.bounds;
|
|
10771
10771
|
if (!I) return;
|
|
10772
10772
|
const d = p(t.parent);
|
|
10773
10773
|
d === window ? window.scrollY : d.scrollTop;
|
|
10774
|
-
const b = t.parent.getBoundingClientRect(), T =
|
|
10774
|
+
const b = t.parent.getBoundingClientRect(), T = O.value?.getBoundingClientRect(), v = {
|
|
10775
10775
|
id: S,
|
|
10776
10776
|
top: I.top - b.top,
|
|
10777
10777
|
height: T.height,
|
|
10778
|
-
commentRef:
|
|
10779
|
-
elementRef:
|
|
10778
|
+
commentRef: k,
|
|
10779
|
+
elementRef: O
|
|
10780
10780
|
};
|
|
10781
10781
|
c.value.push(v);
|
|
10782
10782
|
});
|
|
10783
10783
|
}, y = async () => {
|
|
10784
10784
|
let m = 0;
|
|
10785
|
-
c.value.sort((
|
|
10786
|
-
|
|
10785
|
+
c.value.sort((O, P) => O.top - P.top).forEach((O) => {
|
|
10786
|
+
O.top <= m + 15 && (O.top = m + 15), m = O.top + O.height;
|
|
10787
10787
|
}), await He(), u.value = !0;
|
|
10788
10788
|
};
|
|
10789
10789
|
return Ct(() => {
|
|
10790
10790
|
c.value.length === o.value.length && He(y);
|
|
10791
|
-
}), Ie(i, (m,
|
|
10791
|
+
}), Ie(i, (m, O) => {
|
|
10792
10792
|
He(() => {
|
|
10793
10793
|
if (!i.value) return f.value = 0;
|
|
10794
10794
|
const P = n.getComment(i.value);
|
|
10795
10795
|
if (!P) return f.value = 0;
|
|
10796
10796
|
const S = c.value.find((d) => d.id === P.commentId);
|
|
10797
10797
|
if (!S) return f.value = 0;
|
|
10798
|
-
const
|
|
10799
|
-
l.value.getBoundingClientRect(), f.value =
|
|
10798
|
+
const k = P.selection.selectionBounds.top, I = S.top;
|
|
10799
|
+
l.value.getBoundingClientRect(), f.value = k - I, setTimeout(() => {
|
|
10800
10800
|
S.elementRef.value?.scrollIntoView({
|
|
10801
10801
|
behavior: "smooth",
|
|
10802
10802
|
block: "center"
|
|
10803
10803
|
});
|
|
10804
10804
|
}, 200);
|
|
10805
10805
|
});
|
|
10806
|
-
}), (m,
|
|
10806
|
+
}), (m, O) => (j(), K("div", {
|
|
10807
10807
|
class: "section-wrapper",
|
|
10808
10808
|
ref_key: "floatingCommentsContainer",
|
|
10809
10809
|
ref: l
|
|
@@ -11028,10 +11028,10 @@ const Pb = (e, t) => {
|
|
|
11028
11028
|
if (!h) return;
|
|
11029
11029
|
const g = h.getBoundingClientRect(), p = c.pageContainers;
|
|
11030
11030
|
!g || !p || f.forEach((w) => {
|
|
11031
|
-
const { itemid: y, page: m, nostyle:
|
|
11031
|
+
const { itemid: y, page: m, nostyle: O } = w;
|
|
11032
11032
|
let P = w.pageannotation;
|
|
11033
11033
|
w.itemfieldtype === "CHECKBOXINPUT" && (P = w.annotationid);
|
|
11034
|
-
const { x1: S, y1:
|
|
11034
|
+
const { x1: S, y1: k, x2: I, y2: d } = w, b = { x1: S, y1: k, x2: I, y2: d }, T = document.getElementById(`${u}-page-${m + 1}`);
|
|
11035
11035
|
if (!T) return;
|
|
11036
11036
|
const v = T.getBoundingClientRect(), C = c.pageContainers.find((H) => H.page === m + 1), _ = v.height / C.containerBounds.originalHeight, z = v.bottom - g.top, M = v.left - g.left, x = a(b, _, z, M), R = {
|
|
11037
11037
|
fontSize: w.original_font_size + "px",
|
|
@@ -11045,17 +11045,17 @@ const Pb = (e, t) => {
|
|
|
11045
11045
|
originalAnnotationId: w.originalannotationid,
|
|
11046
11046
|
coordinates: x,
|
|
11047
11047
|
style: R,
|
|
11048
|
-
nostyle:
|
|
11048
|
+
nostyle: O ?? !1
|
|
11049
11049
|
};
|
|
11050
11050
|
l.push(F);
|
|
11051
11051
|
});
|
|
11052
11052
|
}), l;
|
|
11053
11053
|
}), a = (l, c, u, f) => {
|
|
11054
|
-
const { x1: h, y1: g, x2: p, y2: w } = l, y = h * c, m = g * c,
|
|
11054
|
+
const { x1: h, y1: g, x2: p, y2: w } = l, y = h * c, m = g * c, O = p * c, P = w * c;
|
|
11055
11055
|
return {
|
|
11056
11056
|
top: `${u - P}px`,
|
|
11057
11057
|
left: `${y + f}px`,
|
|
11058
|
-
minWidth: `${
|
|
11058
|
+
minWidth: `${O - y}px`,
|
|
11059
11059
|
minHeight: `${P - m}px`
|
|
11060
11060
|
};
|
|
11061
11061
|
};
|
|
@@ -11176,10 +11176,10 @@ const Pb = (e, t) => {
|
|
|
11176
11176
|
documentsWithConverations: w,
|
|
11177
11177
|
commentsList: y,
|
|
11178
11178
|
pendingComment: m,
|
|
11179
|
-
activeComment:
|
|
11179
|
+
activeComment: O,
|
|
11180
11180
|
skipSelectionUpdate: P,
|
|
11181
11181
|
commentsByDocument: S,
|
|
11182
|
-
isCommentsListVisible:
|
|
11182
|
+
isCommentsListVisible: k,
|
|
11183
11183
|
isFloatingCommentsReady: I,
|
|
11184
11184
|
generalCommentIds: d,
|
|
11185
11185
|
getFloatingComments: b,
|
|
@@ -11289,7 +11289,7 @@ const Pb = (e, t) => {
|
|
|
11289
11289
|
B === "trackedChange" && M({ superdoc: x.$superdoc, params: N }), He(() => {
|
|
11290
11290
|
m.value || o.setActiveComment($);
|
|
11291
11291
|
}), typeof x.$superdoc.config.onCommentsUpdate == "function" && x.$superdoc.config.onCommentsUpdate(N);
|
|
11292
|
-
}, re = A(() => "comments" in f), le = A(() => m.value || b.value?.length > 0 && i.value && R.value && re.value && !
|
|
11292
|
+
}, re = A(() => "comments" in f), le = A(() => m.value || b.value?.length > 0 && i.value && R.value && re.value && !k.value), Z = A(() => re.value ? H.top && !p.value?.readOnly : !1);
|
|
11293
11293
|
A(() => {
|
|
11294
11294
|
if (!re.value) return !1;
|
|
11295
11295
|
!p?.readOnly && a.value;
|
|
@@ -11369,7 +11369,7 @@ const Pb = (e, t) => {
|
|
|
11369
11369
|
if (!de.value) return;
|
|
11370
11370
|
const $ = N.offsetY / (c.value / 100), B = N.offsetX / (c.value / 100);
|
|
11371
11371
|
nt({ x: B, y: $ });
|
|
11372
|
-
},
|
|
11372
|
+
}, On = (N) => {
|
|
11373
11373
|
if (!de.value || (me.value.removeEventListener("mousemove", fn), !a.value)) return;
|
|
11374
11374
|
const $ = Un({
|
|
11375
11375
|
selectionBounds: {
|
|
@@ -11381,7 +11381,7 @@ const Pb = (e, t) => {
|
|
|
11381
11381
|
documentId: r.value[0].id
|
|
11382
11382
|
});
|
|
11383
11383
|
tt($), me.value.style.pointerEvents = "none";
|
|
11384
|
-
},
|
|
11384
|
+
}, kn = A(() => !(x.$superdoc.config.modules?.comments).readOnly), to = (N, $) => {
|
|
11385
11385
|
N.documentMarginsLastChange = $.pageMargins;
|
|
11386
11386
|
}, Ft = (N) => {
|
|
11387
11387
|
re.value && (vt(), de.value = !0, Bt(N));
|
|
@@ -11421,11 +11421,11 @@ const Pb = (e, t) => {
|
|
|
11421
11421
|
key: 0,
|
|
11422
11422
|
class: "superdoc__selection-layer selection-layer",
|
|
11423
11423
|
onMousedown: Bt,
|
|
11424
|
-
onMouseup:
|
|
11424
|
+
onMouseup: On,
|
|
11425
11425
|
ref_key: "selectionLayer",
|
|
11426
11426
|
ref: me
|
|
11427
11427
|
}, [
|
|
11428
|
-
te(a) &&
|
|
11428
|
+
te(a) && kn.value ? (j(), K("div", {
|
|
11429
11429
|
key: 0,
|
|
11430
11430
|
style: Qe(We.value),
|
|
11431
11431
|
class: "superdoc__temp-selection temp-selection sd-highlight sd-initial-highlight"
|
|
@@ -11573,7 +11573,7 @@ class Py extends Ns {
|
|
|
11573
11573
|
this.config = {
|
|
11574
11574
|
...this.config,
|
|
11575
11575
|
...t
|
|
11576
|
-
}, this.config.colors = Uc(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.8.
|
|
11576
|
+
}, this.config.colors = Uc(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.8.29", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || Ls(), this.colors = this.config.colors, await this.#i(this.config.modules), this.#o(), this.#r(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#s(this);
|
|
11577
11577
|
}
|
|
11578
11578
|
get requiredNumberOfEditors() {
|
|
11579
11579
|
return this.superdocStore.documents.filter((t) => t.type === Qt).length;
|
|
@@ -11686,7 +11686,7 @@ class Py extends Ns {
|
|
|
11686
11686
|
this.toolbar = new zl(n), this.toolbar.on("superdoc-command", this.onToolbarCommand.bind(this)), this.once("editorCreate", () => this.toolbar.updateToolbarState());
|
|
11687
11687
|
}
|
|
11688
11688
|
addCommentsList(t) {
|
|
11689
|
-
!this.config?.modules?.comments || this.config.role === "viewer" || (console.debug("🦋 [superdoc] Adding comments list to:", t), t && (this.config.modules.comments.element = t), this.commentsList = new
|
|
11689
|
+
!this.config?.modules?.comments || this.config.role === "viewer" || (console.debug("🦋 [superdoc] Adding comments list to:", t), t && (this.config.modules.comments.element = t), this.commentsList = new kb(this.config.modules?.comments, this), this.config.onCommentsListChange && this.config.onCommentsListChange({ isRendered: !0 }));
|
|
11690
11690
|
}
|
|
11691
11691
|
removeCommentsList() {
|
|
11692
11692
|
this.commentsList && (this.commentsList.close(), this.commentsList = null, this.config.onCommentsListChange && this.config.onCommentsListChange({ isRendered: !1 }));
|
|
@@ -11831,7 +11831,7 @@ export {
|
|
|
11831
11831
|
Ho as PDF,
|
|
11832
11832
|
My as SuperConverter,
|
|
11833
11833
|
Py as SuperDoc,
|
|
11834
|
-
|
|
11834
|
+
Oy as compareVersions,
|
|
11835
11835
|
Ll as createZip,
|
|
11836
11836
|
Ry as fieldAnnotationHelpers,
|
|
11837
11837
|
pi as getFileObject,
|