@stonecrop/desktop 0.2.51 → 0.2.53
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/desktop.js +413 -412
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +13 -13
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as X, ref as
|
|
1
|
+
import { defineComponent as X, ref as P, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as B, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as ye, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as wo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as $, shallowReactive as Cr, watch as F, nextTick as Re, hasInjectionContext as Pr, getCurrentInstance as We, reactive as ke, h as _o, provide as ft, isRef as tt, isReactive as an, toRef as ht, watchEffect as Dr, getCurrentScope as xt, onScopeDispose as St, toRefs as Cn, useTemplateRef as Nt, normalizeStyle as re, renderSlot as ve, createVNode as Et, withCtx as kt, readonly as Ar, customRef as Tr, createTextVNode as Eo, onBeforeUnmount as Rr, resolveComponent as Vr, withKeys as ct, vModelText as jr } from "vue";
|
|
2
2
|
const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr = ["onClick"], Ur = { class: "dropdown-container" }, Hr = { class: "dropdown" }, Fr = ["onclick"], zr = ["href"], Gr = { class: "dropdown-item" }, qr = /* @__PURE__ */ X({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: {}
|
|
6
6
|
},
|
|
7
7
|
setup(e) {
|
|
8
|
-
const t =
|
|
8
|
+
const t = P(e.elements), n = P(!1), o = P(null), r = P(!1), s = P(!1);
|
|
9
9
|
Be(() => {
|
|
10
10
|
i();
|
|
11
11
|
});
|
|
@@ -22,7 +22,7 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
|
|
|
22
22
|
const d = !t.value[u].show;
|
|
23
23
|
i(), t.value[u].show = d;
|
|
24
24
|
};
|
|
25
|
-
return (u, d) => (
|
|
25
|
+
return (u, d) => (I(), V("div", {
|
|
26
26
|
class: Se([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
|
|
27
27
|
onMouseover: a,
|
|
28
28
|
onMouseleave: c
|
|
@@ -65,30 +65,30 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
|
|
|
65
65
|
]))
|
|
66
66
|
]),
|
|
67
67
|
d[2] || (d[2] = B("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
68
|
-
(
|
|
68
|
+
(I(!0), V(Ne, null, Ie(t.value, (p, f) => (I(), V("div", {
|
|
69
69
|
class: "action-element",
|
|
70
70
|
key: p.label
|
|
71
71
|
}, [
|
|
72
|
-
p.elementType == "button" ? (
|
|
72
|
+
p.elementType == "button" ? (I(), V("button", {
|
|
73
73
|
key: 0,
|
|
74
74
|
onclick: p.action,
|
|
75
75
|
class: "button-default"
|
|
76
76
|
}, ue(p.label), 9, Mr)) : ye("", !0),
|
|
77
|
-
p.elementType == "dropdown" ? (
|
|
77
|
+
p.elementType == "dropdown" ? (I(), V("div", Br, [
|
|
78
78
|
B("button", {
|
|
79
79
|
class: "button-default",
|
|
80
80
|
onClick: (m) => l(f)
|
|
81
81
|
}, ue(p.label), 9, Wr),
|
|
82
82
|
Ze(B("div", Ur, [
|
|
83
83
|
B("div", Hr, [
|
|
84
|
-
(
|
|
84
|
+
(I(!0), V(Ne, null, Ie(p.actions, (m) => (I(), V("div", {
|
|
85
85
|
key: m.label
|
|
86
86
|
}, [
|
|
87
|
-
m.action != null ? (
|
|
87
|
+
m.action != null ? (I(), V("button", {
|
|
88
88
|
key: 0,
|
|
89
89
|
onclick: m.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
}, ue(m.label), 9, Fr)) : m.link != null ? (
|
|
91
|
+
}, ue(m.label), 9, Fr)) : m.link != null ? (I(), V("a", {
|
|
92
92
|
key: 1,
|
|
93
93
|
href: m.link
|
|
94
94
|
}, [
|
|
@@ -110,7 +110,7 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
|
|
|
110
110
|
return n;
|
|
111
111
|
}, Jr = /* @__PURE__ */ ln(qr, [["__scopeId", "data-v-4fb5c934"]]), Kr = {};
|
|
112
112
|
function Yr(e, t) {
|
|
113
|
-
return
|
|
113
|
+
return I(), V("dialog");
|
|
114
114
|
}
|
|
115
115
|
const Qr = /* @__PURE__ */ ln(Kr, [["render", Yr]]), Xr = (e, t) => {
|
|
116
116
|
const n = e.__vccOpts || e;
|
|
@@ -128,13 +128,13 @@ const Zr = { class: "aform" }, es = /* @__PURE__ */ X({
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["update:modelValue"],
|
|
130
130
|
setup(e, { emit: t }) {
|
|
131
|
-
const n = t, o =
|
|
131
|
+
const n = t, o = P(e.data || {}), r = (i) => {
|
|
132
132
|
let a = {};
|
|
133
133
|
for (const [c, l] of Object.entries(i))
|
|
134
134
|
["component", "fieldtype"].includes(c) || (a[c] = l), c === "rows" && l && l.length === 0 && (a.rows = o.value[i.fieldname]);
|
|
135
135
|
return a;
|
|
136
|
-
}, s =
|
|
137
|
-
get: () => e.modelValue.map((i, a) =>
|
|
136
|
+
}, s = j({
|
|
137
|
+
get: () => e.modelValue.map((i, a) => j({
|
|
138
138
|
get() {
|
|
139
139
|
return i.value;
|
|
140
140
|
},
|
|
@@ -145,8 +145,8 @@ const Zr = { class: "aform" }, es = /* @__PURE__ */ X({
|
|
|
145
145
|
set: () => {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
return (i, a) => (
|
|
149
|
-
(
|
|
148
|
+
return (i, a) => (I(), V("form", Zr, [
|
|
149
|
+
(I(!0), V(Ne, null, Ie(i.modelValue, (c, l) => (I(), xe(rn(c.component), sn({
|
|
150
150
|
key: l,
|
|
151
151
|
schema: c,
|
|
152
152
|
modelValue: s.value[l].value,
|
|
@@ -418,13 +418,13 @@ const nt = (e) => qe = e, xo = process.env.NODE_ENV !== "production" ? Symbol("p
|
|
|
418
418
|
/* istanbul ignore next */
|
|
419
419
|
Symbol()
|
|
420
420
|
);
|
|
421
|
-
function
|
|
421
|
+
function Ce(e) {
|
|
422
422
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
423
423
|
}
|
|
424
|
-
var
|
|
424
|
+
var se;
|
|
425
425
|
(function(e) {
|
|
426
426
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
427
|
-
})(
|
|
427
|
+
})(se || (se = {}));
|
|
428
428
|
const Oe = typeof window < "u", Pn = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
429
429
|
function ps(e, { autoBom: t = !1 } = {}) {
|
|
430
430
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
@@ -432,7 +432,7 @@ function ps(e, { autoBom: t = !1 } = {}) {
|
|
|
432
432
|
function un(e, t, n) {
|
|
433
433
|
const o = new XMLHttpRequest();
|
|
434
434
|
o.open("GET", e), o.responseType = "blob", o.onload = function() {
|
|
435
|
-
|
|
435
|
+
Io(o.response, t, n);
|
|
436
436
|
}, o.onerror = function() {
|
|
437
437
|
console.error("could not download file");
|
|
438
438
|
}, o.send();
|
|
@@ -454,7 +454,7 @@ function vt(e) {
|
|
|
454
454
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const gt = typeof navigator == "object" ? navigator : { userAgent: "" }, No = /Macintosh/.test(gt.userAgent) && /AppleWebKit/.test(gt.userAgent) && !/Safari/.test(gt.userAgent),
|
|
457
|
+
const gt = typeof navigator == "object" ? navigator : { userAgent: "" }, No = /Macintosh/.test(gt.userAgent) && /AppleWebKit/.test(gt.userAgent) && !/Safari/.test(gt.userAgent), Io = Oe ? (
|
|
458
458
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
459
459
|
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !No ? fs : (
|
|
460
460
|
// Use msSaveOrOpenBlob as a second approach
|
|
@@ -512,7 +512,7 @@ function H(e, t) {
|
|
|
512
512
|
function dn(e) {
|
|
513
513
|
return "_a" in e && "install" in e;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Co() {
|
|
516
516
|
if (!("clipboard" in navigator))
|
|
517
517
|
return H("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
518
518
|
}
|
|
@@ -520,7 +520,7 @@ function Po(e) {
|
|
|
520
520
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (H('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
521
521
|
}
|
|
522
522
|
async function vs(e) {
|
|
523
|
-
if (!
|
|
523
|
+
if (!Co())
|
|
524
524
|
try {
|
|
525
525
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), H("Global state copied to clipboard.");
|
|
526
526
|
} catch (t) {
|
|
@@ -530,7 +530,7 @@ async function vs(e) {
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
async function gs(e) {
|
|
533
|
-
if (!
|
|
533
|
+
if (!Co())
|
|
534
534
|
try {
|
|
535
535
|
Do(e, JSON.parse(await navigator.clipboard.readText())), H("Global state pasted from clipboard.");
|
|
536
536
|
} catch (t) {
|
|
@@ -541,25 +541,25 @@ async function gs(e) {
|
|
|
541
541
|
}
|
|
542
542
|
async function ys(e) {
|
|
543
543
|
try {
|
|
544
|
-
|
|
544
|
+
Io(new Blob([JSON.stringify(e.state.value)], {
|
|
545
545
|
type: "text/plain;charset=utf-8"
|
|
546
546
|
}), "pinia-state.json");
|
|
547
547
|
} catch (t) {
|
|
548
548
|
H("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
let
|
|
551
|
+
let ie;
|
|
552
552
|
function bs() {
|
|
553
|
-
|
|
553
|
+
ie || (ie = document.createElement("input"), ie.type = "file", ie.accept = ".json");
|
|
554
554
|
function e() {
|
|
555
555
|
return new Promise((t, n) => {
|
|
556
|
-
|
|
557
|
-
const o =
|
|
556
|
+
ie.onchange = async () => {
|
|
557
|
+
const o = ie.files;
|
|
558
558
|
if (!o)
|
|
559
559
|
return t(null);
|
|
560
560
|
const r = o.item(0);
|
|
561
561
|
return t(r ? { text: await r.text(), file: r } : null);
|
|
562
|
-
},
|
|
562
|
+
}, ie.oncancel = () => t(null), ie.onerror = n, ie.click();
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
return e;
|
|
@@ -649,11 +649,11 @@ function ks(e) {
|
|
|
649
649
|
}
|
|
650
650
|
function $s(e) {
|
|
651
651
|
switch (e) {
|
|
652
|
-
case
|
|
652
|
+
case se.direct:
|
|
653
653
|
return "mutation";
|
|
654
|
-
case
|
|
654
|
+
case se.patchFunction:
|
|
655
655
|
return "$patch";
|
|
656
|
-
case
|
|
656
|
+
case se.patchObject:
|
|
657
657
|
return "$patch";
|
|
658
658
|
default:
|
|
659
659
|
return "unknown";
|
|
@@ -867,7 +867,7 @@ function Ss(e, t) {
|
|
|
867
867
|
});
|
|
868
868
|
});
|
|
869
869
|
}, !0), t._customProperties.forEach((i) => {
|
|
870
|
-
F(() =>
|
|
870
|
+
F(() => $(t[i]), (a, c) => {
|
|
871
871
|
n.notifyComponentUpdate(), n.sendInspectorState(G), Ae && n.addTimelineEvent({
|
|
872
872
|
layerId: Ee,
|
|
873
873
|
event: {
|
|
@@ -891,7 +891,7 @@ function Ss(e, t) {
|
|
|
891
891
|
data: Os({ store: te(t.$id) }, ks(i)),
|
|
892
892
|
groupId: ge
|
|
893
893
|
};
|
|
894
|
-
a ===
|
|
894
|
+
a === se.patchFunction ? l.subtitle = "⤵️" : a === se.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
|
|
895
895
|
_custom: {
|
|
896
896
|
display: "DebuggerEvent",
|
|
897
897
|
type: "object",
|
|
@@ -958,8 +958,8 @@ function Ns({ app: e, store: t, options: n }) {
|
|
|
958
958
|
);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
const e = wo(!0), t = e.run(() =>
|
|
961
|
+
function Is() {
|
|
962
|
+
const e = wo(!0), t = e.run(() => P({}));
|
|
963
963
|
let n = [], o = [];
|
|
964
964
|
const r = $e({
|
|
965
965
|
install(s) {
|
|
@@ -984,7 +984,7 @@ function Ro(e, t) {
|
|
|
984
984
|
if (!(n in e))
|
|
985
985
|
continue;
|
|
986
986
|
const r = e[n];
|
|
987
|
-
|
|
987
|
+
Ce(r) && Ce(o) && !tt(o) && !an(o) ? e[n] = Ro(r, o) : e[n] = o;
|
|
988
988
|
}
|
|
989
989
|
return e;
|
|
990
990
|
}
|
|
@@ -1003,14 +1003,14 @@ function De(e, ...t) {
|
|
|
1003
1003
|
n(...t);
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1006
|
+
const Cs = (e) => e(), Tn = Symbol(), jt = Symbol();
|
|
1007
1007
|
function Jt(e, t) {
|
|
1008
1008
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1009
1009
|
for (const n in t) {
|
|
1010
1010
|
if (!t.hasOwnProperty(n))
|
|
1011
1011
|
continue;
|
|
1012
1012
|
const o = t[n], r = e[n];
|
|
1013
|
-
|
|
1013
|
+
Ce(r) && Ce(o) && e.hasOwnProperty(n) && !tt(o) && !an(o) ? e[n] = Jt(r, o) : e[n] = o;
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
@@ -1019,7 +1019,7 @@ const Ps = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1019
1019
|
Symbol()
|
|
1020
1020
|
);
|
|
1021
1021
|
function Ds(e) {
|
|
1022
|
-
return !
|
|
1022
|
+
return !Ce(e) || !e.hasOwnProperty(Ps);
|
|
1023
1023
|
}
|
|
1024
1024
|
const { assign: Y } = Object;
|
|
1025
1025
|
function Rn(e) {
|
|
@@ -1032,9 +1032,9 @@ function Vn(e, t, n, o) {
|
|
|
1032
1032
|
!a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
1033
1033
|
const u = process.env.NODE_ENV !== "production" && o ? (
|
|
1034
1034
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1035
|
-
|
|
1036
|
-
) :
|
|
1037
|
-
return Y(u, s, Object.keys(i || {}).reduce((d, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), d[p] = $e(
|
|
1035
|
+
Cn(P(r ? r() : {}).value)
|
|
1036
|
+
) : Cn(n.state.value[e]);
|
|
1037
|
+
return Y(u, s, Object.keys(i || {}).reduce((d, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), d[p] = $e(j(() => {
|
|
1038
1038
|
nt(n);
|
|
1039
1039
|
const f = n._s.get(e);
|
|
1040
1040
|
return i[p].call(f, f);
|
|
@@ -1049,28 +1049,28 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1049
1049
|
throw new Error("Pinia destroyed");
|
|
1050
1050
|
const c = { deep: !0 };
|
|
1051
1051
|
process.env.NODE_ENV !== "production" && !$o && (c.onTrigger = (w) => {
|
|
1052
|
-
l ? f = w : l == !1 && !
|
|
1052
|
+
l ? f = w : l == !1 && !k._hotUpdating && (Array.isArray(f) ? f.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1053
1053
|
});
|
|
1054
1054
|
let l, u, d = [], p = [], f;
|
|
1055
1055
|
const m = o.state.value[e];
|
|
1056
1056
|
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1057
|
-
const v =
|
|
1058
|
-
let
|
|
1057
|
+
const v = P({});
|
|
1058
|
+
let E;
|
|
1059
1059
|
function x(w) {
|
|
1060
1060
|
let b;
|
|
1061
1061
|
l = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof w == "function" ? (w(o.state.value[e]), b = {
|
|
1062
|
-
type:
|
|
1062
|
+
type: se.patchFunction,
|
|
1063
1063
|
storeId: e,
|
|
1064
1064
|
events: f
|
|
1065
1065
|
}) : (Jt(o.state.value[e], w), b = {
|
|
1066
|
-
type:
|
|
1066
|
+
type: se.patchObject,
|
|
1067
1067
|
payload: w,
|
|
1068
1068
|
storeId: e,
|
|
1069
1069
|
events: f
|
|
1070
1070
|
});
|
|
1071
|
-
const M =
|
|
1071
|
+
const M = E = Symbol();
|
|
1072
1072
|
Re().then(() => {
|
|
1073
|
-
|
|
1073
|
+
E === M && (l = !0);
|
|
1074
1074
|
}), u = !0, De(d, b, o.state.value[e]);
|
|
1075
1075
|
}
|
|
1076
1076
|
const O = s ? function() {
|
|
@@ -1084,10 +1084,10 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1084
1084
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1085
1085
|
} : Vo
|
|
1086
1086
|
);
|
|
1087
|
-
function
|
|
1087
|
+
function A() {
|
|
1088
1088
|
i.stop(), d = [], p = [], o._s.delete(e);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const C = (w, b = "") => {
|
|
1091
1091
|
if (Tn in w)
|
|
1092
1092
|
return w[jt] = b, w;
|
|
1093
1093
|
const M = function() {
|
|
@@ -1102,13 +1102,13 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1102
1102
|
De(p, {
|
|
1103
1103
|
args: J,
|
|
1104
1104
|
name: M[jt],
|
|
1105
|
-
store:
|
|
1105
|
+
store: k,
|
|
1106
1106
|
after: He,
|
|
1107
1107
|
onError: it
|
|
1108
1108
|
});
|
|
1109
1109
|
let oe;
|
|
1110
1110
|
try {
|
|
1111
|
-
oe = w.apply(this && this.$id === e ? this :
|
|
1111
|
+
oe = w.apply(this && this.$id === e ? this : k, J);
|
|
1112
1112
|
} catch (z) {
|
|
1113
1113
|
throw De(Ue, z), z;
|
|
1114
1114
|
}
|
|
@@ -1131,14 +1131,14 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1131
1131
|
const M = An(d, w, b.detached, () => J()), J = i.run(() => F(() => o.state.value[e], (ee) => {
|
|
1132
1132
|
(b.flush === "sync" ? u : l) && w({
|
|
1133
1133
|
storeId: e,
|
|
1134
|
-
type:
|
|
1134
|
+
type: se.direct,
|
|
1135
1135
|
events: f
|
|
1136
1136
|
}, ee);
|
|
1137
1137
|
}, Y({}, c, b)));
|
|
1138
1138
|
return M;
|
|
1139
1139
|
},
|
|
1140
|
-
$dispose:
|
|
1141
|
-
},
|
|
1140
|
+
$dispose: A
|
|
1141
|
+
}, k = ke(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe ? Y(
|
|
1142
1142
|
{
|
|
1143
1143
|
_hmrPayload: L,
|
|
1144
1144
|
_customProperties: $e(/* @__PURE__ */ new Set())
|
|
@@ -1148,14 +1148,14 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1148
1148
|
// must be added later
|
|
1149
1149
|
// setupStore
|
|
1150
1150
|
) : Z);
|
|
1151
|
-
o._s.set(e,
|
|
1152
|
-
const ne = (o._a && o._a.runWithContext ||
|
|
1151
|
+
o._s.set(e, k);
|
|
1152
|
+
const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (i = wo()).run(() => t({ action: C }))));
|
|
1153
1153
|
for (const w in ne) {
|
|
1154
1154
|
const b = ne[w];
|
|
1155
1155
|
if (tt(b) && !Rn(b) || an(b))
|
|
1156
1156
|
process.env.NODE_ENV !== "production" && r ? ut(v.value, w, ht(ne, w)) : s || (m && Ds(b) && (tt(b) ? b.value = m[w] : Jt(b, m[w])), o.state.value[e][w] = b), process.env.NODE_ENV !== "production" && L.state.push(w);
|
|
1157
1157
|
else if (typeof b == "function") {
|
|
1158
|
-
const M = process.env.NODE_ENV !== "production" && r ? b :
|
|
1158
|
+
const M = process.env.NODE_ENV !== "production" && r ? b : C(b, w);
|
|
1159
1159
|
ne[w] = M, process.env.NODE_ENV !== "production" && (L.actions[w] = b), a.actions[w] = b;
|
|
1160
1160
|
} else process.env.NODE_ENV !== "production" && Rn(b) && (L.getters[w] = s ? (
|
|
1161
1161
|
// @ts-expect-error
|
|
@@ -1163,7 +1163,7 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1163
1163
|
) : b, Oe && (ne._getters || // @ts-expect-error: same
|
|
1164
1164
|
(ne._getters = $e([]))).push(w));
|
|
1165
1165
|
}
|
|
1166
|
-
if (Y(
|
|
1166
|
+
if (Y(k, ne), Y(et(k), ne), Object.defineProperty(k, "$state", {
|
|
1167
1167
|
get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
|
|
1168
1168
|
set: (w) => {
|
|
1169
1169
|
if (process.env.NODE_ENV !== "production" && r)
|
|
@@ -1172,34 +1172,34 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1172
1172
|
Y(b, w);
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1176
|
-
|
|
1177
|
-
if (b in
|
|
1178
|
-
const M = w.$state[b], J =
|
|
1179
|
-
typeof M == "object" &&
|
|
1175
|
+
}), process.env.NODE_ENV !== "production" && (k._hotUpdate = $e((w) => {
|
|
1176
|
+
k._hotUpdating = !0, w._hmrPayload.state.forEach((b) => {
|
|
1177
|
+
if (b in k.$state) {
|
|
1178
|
+
const M = w.$state[b], J = k.$state[b];
|
|
1179
|
+
typeof M == "object" && Ce(M) && Ce(J) ? Ro(M, J) : w.$state[b] = J;
|
|
1180
1180
|
}
|
|
1181
|
-
ut(
|
|
1182
|
-
}), Object.keys(
|
|
1183
|
-
b in w.$state || Vt(
|
|
1181
|
+
ut(k, b, ht(w.$state, b));
|
|
1182
|
+
}), Object.keys(k.$state).forEach((b) => {
|
|
1183
|
+
b in w.$state || Vt(k, b);
|
|
1184
1184
|
}), l = !1, u = !1, o.state.value[e] = ht(w._hmrPayload, "hotState"), u = !0, Re().then(() => {
|
|
1185
1185
|
l = !0;
|
|
1186
1186
|
});
|
|
1187
1187
|
for (const b in w._hmrPayload.actions) {
|
|
1188
1188
|
const M = w[b];
|
|
1189
|
-
ut(
|
|
1189
|
+
ut(k, b, C(M, b));
|
|
1190
1190
|
}
|
|
1191
1191
|
for (const b in w._hmrPayload.getters) {
|
|
1192
1192
|
const M = w._hmrPayload.getters[b], J = s ? (
|
|
1193
1193
|
// special handling of options api
|
|
1194
|
-
|
|
1194
|
+
j(() => (nt(o), M.call(k, k)))
|
|
1195
1195
|
) : M;
|
|
1196
|
-
ut(
|
|
1196
|
+
ut(k, b, J);
|
|
1197
1197
|
}
|
|
1198
|
-
Object.keys(
|
|
1199
|
-
b in w._hmrPayload.getters || Vt(
|
|
1200
|
-
}), Object.keys(
|
|
1201
|
-
b in w._hmrPayload.actions || Vt(
|
|
1202
|
-
}),
|
|
1198
|
+
Object.keys(k._hmrPayload.getters).forEach((b) => {
|
|
1199
|
+
b in w._hmrPayload.getters || Vt(k, b);
|
|
1200
|
+
}), Object.keys(k._hmrPayload.actions).forEach((b) => {
|
|
1201
|
+
b in w._hmrPayload.actions || Vt(k, b);
|
|
1202
|
+
}), k._hmrPayload = w._hmrPayload, k._getters = w._getters, k._hotUpdating = !1;
|
|
1203
1203
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1204
1204
|
const w = {
|
|
1205
1205
|
writable: !0,
|
|
@@ -1208,28 +1208,28 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1208
1208
|
enumerable: !1
|
|
1209
1209
|
};
|
|
1210
1210
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((b) => {
|
|
1211
|
-
Object.defineProperty(
|
|
1211
|
+
Object.defineProperty(k, b, Y({ value: k[b] }, w));
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
1214
|
return o._p.forEach((w) => {
|
|
1215
1215
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1216
1216
|
const b = i.run(() => w({
|
|
1217
|
-
store:
|
|
1217
|
+
store: k,
|
|
1218
1218
|
app: o._a,
|
|
1219
1219
|
pinia: o,
|
|
1220
1220
|
options: a
|
|
1221
1221
|
}));
|
|
1222
|
-
Object.keys(b || {}).forEach((M) =>
|
|
1222
|
+
Object.keys(b || {}).forEach((M) => k._customProperties.add(M)), Y(k, b);
|
|
1223
1223
|
} else
|
|
1224
|
-
Y(
|
|
1225
|
-
store:
|
|
1224
|
+
Y(k, i.run(() => w({
|
|
1225
|
+
store: k,
|
|
1226
1226
|
app: o._a,
|
|
1227
1227
|
pinia: o,
|
|
1228
1228
|
options: a
|
|
1229
1229
|
})));
|
|
1230
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1230
|
+
}), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1231
1231
|
state: () => new MyClass()
|
|
1232
|
-
Found in store "${
|
|
1232
|
+
Found in store "${k.$id}".`), m && s && n.hydrate && n.hydrate(k.$state, m), l = !0, u = !0, k;
|
|
1233
1233
|
}
|
|
1234
1234
|
// @__NO_SIDE_EFFECTS__
|
|
1235
1235
|
function As(e, t, n) {
|
|
@@ -1240,7 +1240,7 @@ function As(e, t, n) {
|
|
|
1240
1240
|
const l = Pr();
|
|
1241
1241
|
if (a = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1242
1242
|
// pinia instance with getActivePinia()
|
|
1243
|
-
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : a) || (l ?
|
|
1243
|
+
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : a) || (l ? ae(xo, null) : null), a && nt(a), process.env.NODE_ENV !== "production" && !qe)
|
|
1244
1244
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1245
1245
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1246
1246
|
This will fail in production.`);
|
|
@@ -1263,12 +1263,12 @@ This will fail in production.`);
|
|
|
1263
1263
|
return i.$id = o, i;
|
|
1264
1264
|
}
|
|
1265
1265
|
const Ts = /* @__PURE__ */ As("data", () => {
|
|
1266
|
-
const e =
|
|
1266
|
+
const e = P([]), t = P({});
|
|
1267
1267
|
return { records: e, record: t };
|
|
1268
1268
|
});
|
|
1269
1269
|
function jo(e) {
|
|
1270
|
-
e || (e =
|
|
1271
|
-
const t = Ts(), n =
|
|
1270
|
+
e || (e = ae("$registry"));
|
|
1271
|
+
const t = Ts(), n = P(new rs(e, t)), o = P(!1);
|
|
1272
1272
|
return Nr(async () => {
|
|
1273
1273
|
var r, s;
|
|
1274
1274
|
const i = e.router.currentRoute.value, a = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = i.params.record) == null ? void 0 : s.toString().toLowerCase();
|
|
@@ -1298,7 +1298,7 @@ Q(Rs, "_root");
|
|
|
1298
1298
|
* (c) 2024 Eduardo San Martin Morote
|
|
1299
1299
|
* @license MIT
|
|
1300
1300
|
*/
|
|
1301
|
-
const
|
|
1301
|
+
const ce = typeof document < "u";
|
|
1302
1302
|
function Lo(e) {
|
|
1303
1303
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
1304
1304
|
}
|
|
@@ -1307,7 +1307,7 @@ function Vs(e) {
|
|
|
1307
1307
|
// add the Module string tag
|
|
1308
1308
|
e.default && Lo(e.default);
|
|
1309
1309
|
}
|
|
1310
|
-
const
|
|
1310
|
+
const R = Object.assign;
|
|
1311
1311
|
function Lt(e, t) {
|
|
1312
1312
|
const n = {};
|
|
1313
1313
|
for (const o in t) {
|
|
@@ -1429,7 +1429,7 @@ var Ye;
|
|
|
1429
1429
|
})(Ye || (Ye = {}));
|
|
1430
1430
|
function ta(e) {
|
|
1431
1431
|
if (!e)
|
|
1432
|
-
if (
|
|
1432
|
+
if (ce) {
|
|
1433
1433
|
const t = document.querySelector("base");
|
|
1434
1434
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
|
1435
1435
|
} else
|
|
@@ -1448,7 +1448,7 @@ function ra(e, t) {
|
|
|
1448
1448
|
top: o.top - n.top - (t.top || 0)
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
|
-
const
|
|
1451
|
+
const It = () => ({
|
|
1452
1452
|
left: window.scrollX,
|
|
1453
1453
|
top: window.scrollY
|
|
1454
1454
|
});
|
|
@@ -1501,20 +1501,20 @@ function ca(e, t, n, o) {
|
|
|
1501
1501
|
let r = [], s = [], i = null;
|
|
1502
1502
|
const a = ({ state: p }) => {
|
|
1503
1503
|
const f = zo(e, location), m = n.value, v = t.value;
|
|
1504
|
-
let
|
|
1504
|
+
let E = 0;
|
|
1505
1505
|
if (p) {
|
|
1506
1506
|
if (n.value = f, t.value = p, i && i === m) {
|
|
1507
1507
|
i = null;
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
|
-
|
|
1510
|
+
E = v ? p.position - v.position : 0;
|
|
1511
1511
|
} else
|
|
1512
1512
|
o(f);
|
|
1513
1513
|
r.forEach((x) => {
|
|
1514
1514
|
x(n.value, m, {
|
|
1515
|
-
delta:
|
|
1515
|
+
delta: E,
|
|
1516
1516
|
type: ot.pop,
|
|
1517
|
-
direction:
|
|
1517
|
+
direction: E ? E > 0 ? Ye.forward : Ye.back : Ye.unknown
|
|
1518
1518
|
});
|
|
1519
1519
|
});
|
|
1520
1520
|
};
|
|
@@ -1531,7 +1531,7 @@ function ca(e, t, n, o) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
function u() {
|
|
1533
1533
|
const { history: p } = window;
|
|
1534
|
-
p.state && p.replaceState(
|
|
1534
|
+
p.state && p.replaceState(R({}, p.state, { scroll: It() }), "");
|
|
1535
1535
|
}
|
|
1536
1536
|
function d() {
|
|
1537
1537
|
for (const p of s)
|
|
@@ -1553,7 +1553,7 @@ function Wn(e, t, n, o = !1, r = !1) {
|
|
|
1553
1553
|
forward: n,
|
|
1554
1554
|
replaced: o,
|
|
1555
1555
|
position: window.history.length,
|
|
1556
|
-
scroll: r ?
|
|
1556
|
+
scroll: r ? It() : null
|
|
1557
1557
|
};
|
|
1558
1558
|
}
|
|
1559
1559
|
function ua(e) {
|
|
@@ -1580,7 +1580,7 @@ function ua(e) {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
1582
|
function i(c, l) {
|
|
1583
|
-
const u =
|
|
1583
|
+
const u = R({}, t.state, Wn(
|
|
1584
1584
|
r.value.back,
|
|
1585
1585
|
// keep back and forward entries but override current position
|
|
1586
1586
|
c,
|
|
@@ -1590,7 +1590,7 @@ function ua(e) {
|
|
|
1590
1590
|
s(c, u, !0), o.value = c;
|
|
1591
1591
|
}
|
|
1592
1592
|
function a(c, l) {
|
|
1593
|
-
const u =
|
|
1593
|
+
const u = R(
|
|
1594
1594
|
{},
|
|
1595
1595
|
// use current history state to gracefully handle a wrong call to
|
|
1596
1596
|
// history.replaceState
|
|
@@ -1599,7 +1599,7 @@ function ua(e) {
|
|
|
1599
1599
|
t.state,
|
|
1600
1600
|
{
|
|
1601
1601
|
forward: c,
|
|
1602
|
-
scroll:
|
|
1602
|
+
scroll: It()
|
|
1603
1603
|
}
|
|
1604
1604
|
);
|
|
1605
1605
|
process.env.NODE_ENV !== "production" && !t.state && S(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
@@ -1607,7 +1607,7 @@ function ua(e) {
|
|
|
1607
1607
|
history.replaceState(history.state, '', url)
|
|
1608
1608
|
|
|
1609
1609
|
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(u.current, u, !0);
|
|
1610
|
-
const d =
|
|
1610
|
+
const d = R({}, Wn(o.value, c, null), { position: u.position + 1 }, l);
|
|
1611
1611
|
s(c, d, !1), o.value = c;
|
|
1612
1612
|
}
|
|
1613
1613
|
return {
|
|
@@ -1623,7 +1623,7 @@ function da(e) {
|
|
|
1623
1623
|
function o(s, i = !0) {
|
|
1624
1624
|
i || n.pauseListeners(), history.go(s);
|
|
1625
1625
|
}
|
|
1626
|
-
const r =
|
|
1626
|
+
const r = R({
|
|
1627
1627
|
// it's overridden right after
|
|
1628
1628
|
location: "",
|
|
1629
1629
|
base: e,
|
|
@@ -1670,15 +1670,15 @@ while being at
|
|
|
1670
1670
|
}
|
|
1671
1671
|
};
|
|
1672
1672
|
function je(e, t) {
|
|
1673
|
-
return process.env.NODE_ENV !== "production" ?
|
|
1673
|
+
return process.env.NODE_ENV !== "production" ? R(new Error(pa[e](t)), {
|
|
1674
1674
|
type: e,
|
|
1675
1675
|
[Xt]: !0
|
|
1676
|
-
}, t) :
|
|
1676
|
+
}, t) : R(new Error(), {
|
|
1677
1677
|
type: e,
|
|
1678
1678
|
[Xt]: !0
|
|
1679
1679
|
}, t);
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function le(e, t) {
|
|
1682
1682
|
return e instanceof Error && Xt in e && (t == null || !!(e.type & t));
|
|
1683
1683
|
}
|
|
1684
1684
|
const fa = ["params", "query", "hash"];
|
|
@@ -1699,7 +1699,7 @@ const Hn = "[^/]+?", ma = {
|
|
|
1699
1699
|
end: !0
|
|
1700
1700
|
}, va = /[.+*?^${}()[\]/\\]/g;
|
|
1701
1701
|
function ga(e, t) {
|
|
1702
|
-
const n =
|
|
1702
|
+
const n = R({}, ma, t), o = [];
|
|
1703
1703
|
let r = n.start ? "^" : "";
|
|
1704
1704
|
const s = [];
|
|
1705
1705
|
for (const l of e) {
|
|
@@ -1714,25 +1714,25 @@ function ga(e, t) {
|
|
|
1714
1714
|
if (p.type === 0)
|
|
1715
1715
|
d || (r += "/"), r += p.value.replace(va, "\\$&"), f += 40;
|
|
1716
1716
|
else if (p.type === 1) {
|
|
1717
|
-
const { value: m, repeatable: v, optional:
|
|
1717
|
+
const { value: m, repeatable: v, optional: E, regexp: x } = p;
|
|
1718
1718
|
s.push({
|
|
1719
1719
|
name: m,
|
|
1720
1720
|
repeatable: v,
|
|
1721
|
-
optional:
|
|
1721
|
+
optional: E
|
|
1722
1722
|
});
|
|
1723
1723
|
const O = x || Hn;
|
|
1724
1724
|
if (O !== Hn) {
|
|
1725
1725
|
f += 10;
|
|
1726
1726
|
try {
|
|
1727
1727
|
new RegExp(`(${O})`);
|
|
1728
|
-
} catch (
|
|
1729
|
-
throw new Error(`Invalid custom RegExp for param "${m}" (${O}): ` +
|
|
1728
|
+
} catch (C) {
|
|
1729
|
+
throw new Error(`Invalid custom RegExp for param "${m}" (${O}): ` + C.message);
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
let
|
|
1733
|
-
d || (
|
|
1732
|
+
let A = v ? `((?:${O})(?:/(?:${O}))*)` : `(${O})`;
|
|
1733
|
+
d || (A = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
1734
1734
|
// or /:p?-:p2
|
|
1735
|
-
|
|
1735
|
+
E && l.length < 2 ? `(?:/${A})` : "/" + A), E && (A += "?"), r += A, f += 20, E && (f += -8), v && (f += -20), O === ".*" && (f += -50);
|
|
1736
1736
|
}
|
|
1737
1737
|
u.push(f);
|
|
1738
1738
|
}
|
|
@@ -1762,12 +1762,12 @@ function ga(e, t) {
|
|
|
1762
1762
|
if (f.type === 0)
|
|
1763
1763
|
u += f.value;
|
|
1764
1764
|
else if (f.type === 1) {
|
|
1765
|
-
const { value: m, repeatable: v, optional:
|
|
1765
|
+
const { value: m, repeatable: v, optional: E } = f, x = m in l ? l[m] : "";
|
|
1766
1766
|
if (K(x) && !v)
|
|
1767
1767
|
throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
|
|
1768
1768
|
const O = K(x) ? x.join("/") : x;
|
|
1769
1769
|
if (!O)
|
|
1770
|
-
if (
|
|
1770
|
+
if (E)
|
|
1771
1771
|
p.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : d = !0);
|
|
1772
1772
|
else
|
|
1773
1773
|
throw new Error(`Missing required param "${m}"`);
|
|
@@ -1886,7 +1886,7 @@ function Ea(e, t, n) {
|
|
|
1886
1886
|
for (const i of o.keys)
|
|
1887
1887
|
s.has(i.name) && S(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
|
|
1888
1888
|
}
|
|
1889
|
-
const r =
|
|
1889
|
+
const r = R(o, {
|
|
1890
1890
|
record: e,
|
|
1891
1891
|
parent: t,
|
|
1892
1892
|
// these needs to be populated by the parent
|
|
@@ -1904,14 +1904,14 @@ function ka(e, t) {
|
|
|
1904
1904
|
function s(d, p, f) {
|
|
1905
1905
|
const m = !f, v = Gn(d);
|
|
1906
1906
|
process.env.NODE_ENV !== "production" && Sa(v, p), v.aliasOf = f && f.record;
|
|
1907
|
-
const
|
|
1907
|
+
const E = Jn(t, d), x = [v];
|
|
1908
1908
|
if ("alias" in d) {
|
|
1909
|
-
const
|
|
1910
|
-
for (const L of
|
|
1909
|
+
const C = typeof d.alias == "string" ? [d.alias] : d.alias;
|
|
1910
|
+
for (const L of C)
|
|
1911
1911
|
x.push(
|
|
1912
1912
|
// we need to normalize again to ensure the `mods` property
|
|
1913
1913
|
// being non enumerable
|
|
1914
|
-
Gn(
|
|
1914
|
+
Gn(R({}, v, {
|
|
1915
1915
|
// this allows us to hold a copy of the `components` option
|
|
1916
1916
|
// so that async components cache is hold on the original record
|
|
1917
1917
|
components: f ? f.record.components : v.components,
|
|
@@ -1923,25 +1923,25 @@ function ka(e, t) {
|
|
|
1923
1923
|
}))
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
|
-
let O,
|
|
1927
|
-
for (const
|
|
1928
|
-
const { path: L } =
|
|
1926
|
+
let O, A;
|
|
1927
|
+
for (const C of x) {
|
|
1928
|
+
const { path: L } = C;
|
|
1929
1929
|
if (p && L[0] !== "/") {
|
|
1930
|
-
const Z = p.record.path,
|
|
1931
|
-
|
|
1930
|
+
const Z = p.record.path, k = Z[Z.length - 1] === "/" ? "" : "/";
|
|
1931
|
+
C.path = p.record.path + (L && k + L);
|
|
1932
1932
|
}
|
|
1933
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1933
|
+
if (process.env.NODE_ENV !== "production" && C.path === "*")
|
|
1934
1934
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
1935
1935
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
|
1936
|
-
if (O = Ea(
|
|
1936
|
+
if (O = Ea(C, p, E), process.env.NODE_ENV !== "production" && p && L[0] === "/" && Na(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && xa(f, O)) : (A = A || O, A !== O && A.alias.push(O), m && d.name && !qn(O) && i(d.name)), Jo(O) && c(O), v.children) {
|
|
1937
1937
|
const Z = v.children;
|
|
1938
|
-
for (let
|
|
1939
|
-
s(Z[
|
|
1938
|
+
for (let k = 0; k < Z.length; k++)
|
|
1939
|
+
s(Z[k], O, f && f.children[k]);
|
|
1940
1940
|
}
|
|
1941
1941
|
f = f || O;
|
|
1942
1942
|
}
|
|
1943
|
-
return
|
|
1944
|
-
i(
|
|
1943
|
+
return A ? () => {
|
|
1944
|
+
i(A);
|
|
1945
1945
|
} : Ke;
|
|
1946
1946
|
}
|
|
1947
1947
|
function i(d) {
|
|
@@ -1957,48 +1957,48 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1957
1957
|
return n;
|
|
1958
1958
|
}
|
|
1959
1959
|
function c(d) {
|
|
1960
|
-
const p =
|
|
1960
|
+
const p = Ia(d, n);
|
|
1961
1961
|
n.splice(p, 0, d), d.record.name && !qn(d) && o.set(d.record.name, d);
|
|
1962
1962
|
}
|
|
1963
1963
|
function l(d, p) {
|
|
1964
|
-
let f, m = {}, v,
|
|
1964
|
+
let f, m = {}, v, E;
|
|
1965
1965
|
if ("name" in d && d.name) {
|
|
1966
1966
|
if (f = o.get(d.name), !f)
|
|
1967
1967
|
throw je(1, {
|
|
1968
1968
|
location: d
|
|
1969
1969
|
});
|
|
1970
1970
|
if (process.env.NODE_ENV !== "production") {
|
|
1971
|
-
const
|
|
1972
|
-
|
|
1971
|
+
const A = Object.keys(d.params || {}).filter((C) => !f.keys.find((L) => L.name === C));
|
|
1972
|
+
A.length && S(`Discarded invalid param(s) "${A.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
1973
1973
|
}
|
|
1974
|
-
|
|
1974
|
+
E = f.record.name, m = R(
|
|
1975
1975
|
// paramsFromLocation is a new object
|
|
1976
1976
|
zn(
|
|
1977
1977
|
p.params,
|
|
1978
1978
|
// only keep params that exist in the resolved location
|
|
1979
1979
|
// only keep optional params coming from a parent record
|
|
1980
|
-
f.keys.filter((
|
|
1980
|
+
f.keys.filter((A) => !A.optional).concat(f.parent ? f.parent.keys.filter((A) => A.optional) : []).map((A) => A.name)
|
|
1981
1981
|
),
|
|
1982
1982
|
// discard any existing params in the current location that do not exist here
|
|
1983
1983
|
// #1497 this ensures better active/exact matching
|
|
1984
|
-
d.params && zn(d.params, f.keys.map((
|
|
1984
|
+
d.params && zn(d.params, f.keys.map((A) => A.name))
|
|
1985
1985
|
), v = f.stringify(m);
|
|
1986
1986
|
} else if (d.path != null)
|
|
1987
|
-
v = d.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((
|
|
1987
|
+
v = d.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((A) => A.re.test(v)), f && (m = f.parse(v), E = f.record.name);
|
|
1988
1988
|
else {
|
|
1989
|
-
if (f = p.name ? o.get(p.name) : n.find((
|
|
1989
|
+
if (f = p.name ? o.get(p.name) : n.find((A) => A.re.test(p.path)), !f)
|
|
1990
1990
|
throw je(1, {
|
|
1991
1991
|
location: d,
|
|
1992
1992
|
currentLocation: p
|
|
1993
1993
|
});
|
|
1994
|
-
|
|
1994
|
+
E = f.record.name, m = R({}, p.params, d.params), v = f.stringify(m);
|
|
1995
1995
|
}
|
|
1996
1996
|
const x = [];
|
|
1997
1997
|
let O = f;
|
|
1998
1998
|
for (; O; )
|
|
1999
1999
|
x.unshift(O.record), O = O.parent;
|
|
2000
2000
|
return {
|
|
2001
|
-
name:
|
|
2001
|
+
name: E,
|
|
2002
2002
|
path: v,
|
|
2003
2003
|
params: m,
|
|
2004
2004
|
matched: x,
|
|
@@ -2064,7 +2064,7 @@ function qn(e) {
|
|
|
2064
2064
|
return !1;
|
|
2065
2065
|
}
|
|
2066
2066
|
function Oa(e) {
|
|
2067
|
-
return e.reduce((t, n) =>
|
|
2067
|
+
return e.reduce((t, n) => R(t, n.meta), {});
|
|
2068
2068
|
}
|
|
2069
2069
|
function Jn(e, t) {
|
|
2070
2070
|
const n = {};
|
|
@@ -2091,16 +2091,16 @@ function Na(e, t) {
|
|
|
2091
2091
|
if (!e.keys.find(Zt.bind(null, n)))
|
|
2092
2092
|
return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function Ia(e, t) {
|
|
2095
2095
|
let n = 0, o = t.length;
|
|
2096
2096
|
for (; n !== o; ) {
|
|
2097
2097
|
const s = n + o >> 1;
|
|
2098
2098
|
qo(e, t[s]) < 0 ? o = s : n = s + 1;
|
|
2099
2099
|
}
|
|
2100
|
-
const r =
|
|
2100
|
+
const r = Ca(e);
|
|
2101
2101
|
return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ca(e) {
|
|
2104
2104
|
let t = e;
|
|
2105
2105
|
for (; t = t.parent; )
|
|
2106
2106
|
if (Jo(t) && qo(e, t) === 0)
|
|
@@ -2235,17 +2235,17 @@ function Bt(e, t, n, o, r = (s) => s()) {
|
|
|
2235
2235
|
return s;
|
|
2236
2236
|
}
|
|
2237
2237
|
function Qn(e) {
|
|
2238
|
-
const t =
|
|
2238
|
+
const t = ae(fn), n = ae(Ko);
|
|
2239
2239
|
let o = !1, r = null;
|
|
2240
|
-
const s =
|
|
2241
|
-
const u =
|
|
2240
|
+
const s = j(() => {
|
|
2241
|
+
const u = $(e.to);
|
|
2242
2242
|
return process.env.NODE_ENV !== "production" && (!o || u !== r) && (Ot(u) || (o ? S(`Invalid value for prop "to" in useLink()
|
|
2243
2243
|
- to:`, u, `
|
|
2244
2244
|
- previous to:`, r, `
|
|
2245
2245
|
- props:`, e) : S(`Invalid value for prop "to" in useLink()
|
|
2246
2246
|
- to:`, u, `
|
|
2247
2247
|
- props:`, e)), r = u, o = !0), t.resolve(u);
|
|
2248
|
-
}), i =
|
|
2248
|
+
}), i = j(() => {
|
|
2249
2249
|
const { matched: u } = s.value, { length: d } = u, p = u[d - 1], f = n.matched;
|
|
2250
2250
|
if (!p || !f.length)
|
|
2251
2251
|
return -1;
|
|
@@ -2261,14 +2261,14 @@ function Qn(e) {
|
|
|
2261
2261
|
Xn(p) === v && // avoid comparing the child with its parent
|
|
2262
2262
|
f[f.length - 1].path !== v ? f.findIndex(be.bind(null, u[d - 2])) : m
|
|
2263
2263
|
);
|
|
2264
|
-
}), a =
|
|
2264
|
+
}), a = j(() => i.value > -1 && La(n.params, s.value.params)), c = j(() => i.value > -1 && i.value === n.matched.length - 1 && Fo(n.params, s.value.params));
|
|
2265
2265
|
function l(u = {}) {
|
|
2266
|
-
return ja(u) ? t[
|
|
2267
|
-
|
|
2266
|
+
return ja(u) ? t[$(e.replace) ? "replace" : "push"](
|
|
2267
|
+
$(e.to)
|
|
2268
2268
|
// avoid uncaught errors are they are logged anyway
|
|
2269
2269
|
).catch(Ke) : Promise.resolve();
|
|
2270
2270
|
}
|
|
2271
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2271
|
+
if (process.env.NODE_ENV !== "production" && ce) {
|
|
2272
2272
|
const u = We();
|
|
2273
2273
|
if (u) {
|
|
2274
2274
|
const d = {
|
|
@@ -2278,13 +2278,13 @@ function Qn(e) {
|
|
|
2278
2278
|
error: null
|
|
2279
2279
|
};
|
|
2280
2280
|
u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(d), Dr(() => {
|
|
2281
|
-
d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = Ot(
|
|
2281
|
+
d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = Ot($(e.to)) ? null : 'Invalid "to" value';
|
|
2282
2282
|
}, { flush: "post" });
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
return {
|
|
2286
2286
|
route: s,
|
|
2287
|
-
href:
|
|
2287
|
+
href: j(() => s.value.href),
|
|
2288
2288
|
isActive: a,
|
|
2289
2289
|
isExactActive: c,
|
|
2290
2290
|
navigate: l
|
|
@@ -2310,7 +2310,7 @@ const Ra = /* @__PURE__ */ X({
|
|
|
2310
2310
|
},
|
|
2311
2311
|
useLink: Qn,
|
|
2312
2312
|
setup(e, { slots: t }) {
|
|
2313
|
-
const n = ke(Qn(e)), { options: o } =
|
|
2313
|
+
const n = ke(Qn(e)), { options: o } = ae(fn), r = j(() => ({
|
|
2314
2314
|
[Zn(e.activeClass, o.linkActiveClass, "router-link-active")]: n.isActive,
|
|
2315
2315
|
// [getLinkClass(
|
|
2316
2316
|
// props.inactiveClass,
|
|
@@ -2372,16 +2372,16 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ X({
|
|
|
2372
2372
|
compatConfig: { MODE: 3 },
|
|
2373
2373
|
setup(e, { attrs: t, slots: n }) {
|
|
2374
2374
|
process.env.NODE_ENV !== "production" && Wa();
|
|
2375
|
-
const o =
|
|
2376
|
-
let l =
|
|
2375
|
+
const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0), i = j(() => {
|
|
2376
|
+
let l = $(s);
|
|
2377
2377
|
const { matched: u } = r.value;
|
|
2378
2378
|
let d;
|
|
2379
2379
|
for (; (d = u[l]) && !d.components; )
|
|
2380
2380
|
l++;
|
|
2381
2381
|
return l;
|
|
2382
|
-
}), a =
|
|
2383
|
-
ft(Yn,
|
|
2384
|
-
const c =
|
|
2382
|
+
}), a = j(() => r.value.matched[i.value]);
|
|
2383
|
+
ft(Yn, j(() => i.value + 1)), ft(Aa, a), ft(en, r);
|
|
2384
|
+
const c = P();
|
|
2385
2385
|
return F(() => [c.value, a.value, e.name], ([l, u, d], [p, f, m]) => {
|
|
2386
2386
|
u && (u.instances[d] = l, f && f !== u && l && l === p && (u.leaveGuards.size || (u.leaveGuards = f.leaveGuards), u.updateGuards.size || (u.updateGuards = f.updateGuards))), l && u && // if there is no instance but to and from are the same this might be
|
|
2387
2387
|
// the first visit
|
|
@@ -2390,21 +2390,21 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ X({
|
|
|
2390
2390
|
const l = r.value, u = e.name, d = a.value, p = d && d.components[u];
|
|
2391
2391
|
if (!p)
|
|
2392
2392
|
return eo(n.default, { Component: p, route: l });
|
|
2393
|
-
const f = d.props[u], m = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, v = _o(p,
|
|
2394
|
-
onVnodeUnmounted: (
|
|
2395
|
-
|
|
2393
|
+
const f = d.props[u], m = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, v = _o(p, R({}, m, t, {
|
|
2394
|
+
onVnodeUnmounted: (E) => {
|
|
2395
|
+
E.component.isUnmounted && (d.instances[u] = null);
|
|
2396
2396
|
},
|
|
2397
2397
|
ref: c
|
|
2398
2398
|
}));
|
|
2399
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2400
|
-
const
|
|
2399
|
+
if (process.env.NODE_ENV !== "production" && ce && v.ref) {
|
|
2400
|
+
const E = {
|
|
2401
2401
|
depth: i.value,
|
|
2402
2402
|
name: d.name,
|
|
2403
2403
|
path: d.path,
|
|
2404
2404
|
meta: d.meta
|
|
2405
2405
|
};
|
|
2406
2406
|
(K(v.ref) ? v.ref.map((x) => x.i) : [v.ref.i]).forEach((x) => {
|
|
2407
|
-
x.__vrv_devtools =
|
|
2407
|
+
x.__vrv_devtools = E;
|
|
2408
2408
|
});
|
|
2409
2409
|
}
|
|
2410
2410
|
return (
|
|
@@ -2437,7 +2437,7 @@ Use slot props instead:
|
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
function Ge(e, t) {
|
|
2440
|
-
const n =
|
|
2440
|
+
const n = R({}, e, {
|
|
2441
2441
|
// remove variables that can contain vue instances
|
|
2442
2442
|
matched: e.matched.map((o) => Xa(o, ["instances", "children", "aliasOf"]))
|
|
2443
2443
|
});
|
|
@@ -2491,10 +2491,10 @@ function Ha(e, t, n) {
|
|
|
2491
2491
|
});
|
|
2492
2492
|
}
|
|
2493
2493
|
K(d.__vrl_devtools) && (d.__devtoolsApi = r, d.__vrl_devtools.forEach((p) => {
|
|
2494
|
-
let f = p.route.path, m = Zo, v = "",
|
|
2495
|
-
p.error ? (f = p.error, m = Ja,
|
|
2494
|
+
let f = p.route.path, m = Zo, v = "", E = 0;
|
|
2495
|
+
p.error ? (f = p.error, m = Ja, E = Ka) : p.isExactActive ? (m = Xo, v = "This is exactly active") : p.isActive && (m = Qo, v = "This link is active"), u.tags.push({
|
|
2496
2496
|
label: f,
|
|
2497
|
-
textColor:
|
|
2497
|
+
textColor: E,
|
|
2498
2498
|
tooltip: v,
|
|
2499
2499
|
backgroundColor: m
|
|
2500
2500
|
});
|
|
@@ -2708,9 +2708,9 @@ function Za(e) {
|
|
|
2708
2708
|
const t = ka(e.routes, e), n = e.parseQuery || Pa, o = e.stringifyQuery || Kn, r = e.history;
|
|
2709
2709
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
2710
2710
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
|
2711
|
-
const s = ze(), i = ze(), a = ze(), c =
|
|
2711
|
+
const s = ze(), i = ze(), a = ze(), c = Ir(he);
|
|
2712
2712
|
let l = he;
|
|
2713
|
-
|
|
2713
|
+
ce && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2714
2714
|
const u = Lt.bind(null, (h) => "" + h), d = Lt.bind(null, Ks), p = (
|
|
2715
2715
|
// @ts-expect-error: intentionally avoid the type check
|
|
2716
2716
|
Lt.bind(null, Ve)
|
|
@@ -2726,13 +2726,13 @@ function Za(e) {
|
|
|
2726
2726
|
function v() {
|
|
2727
2727
|
return t.getRoutes().map((h) => h.record);
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function E(h) {
|
|
2730
2730
|
return !!t.getRecordMatcher(h);
|
|
2731
2731
|
}
|
|
2732
2732
|
function x(h, y) {
|
|
2733
|
-
if (y =
|
|
2733
|
+
if (y = R({}, y || c.value), typeof h == "string") {
|
|
2734
2734
|
const N = Mt(n, h, y.path), W = t.resolve({ path: N.path }, y), we = r.createHref(N.fullPath);
|
|
2735
|
-
return process.env.NODE_ENV !== "production" && (we.startsWith("//") ? S(`Location "${h}" resolved to "${we}". A resolved location cannot start with multiple slashes.`) : W.matched.length || S(`No match found for location with path "${h}"`)),
|
|
2735
|
+
return process.env.NODE_ENV !== "production" && (we.startsWith("//") ? S(`Location "${h}" resolved to "${we}". A resolved location cannot start with multiple slashes.`) : W.matched.length || S(`No match found for location with path "${h}"`)), R(N, W, {
|
|
2736
2736
|
params: p(W.params),
|
|
2737
2737
|
hash: Ve(N.hash),
|
|
2738
2738
|
redirectedFrom: void 0,
|
|
@@ -2745,28 +2745,28 @@ function Za(e) {
|
|
|
2745
2745
|
let g;
|
|
2746
2746
|
if (h.path != null)
|
|
2747
2747
|
process.env.NODE_ENV !== "production" && "params" in h && !("name" in h) && // @ts-expect-error: the type is never
|
|
2748
|
-
Object.keys(h.params).length && S(`Path "${h.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), g =
|
|
2748
|
+
Object.keys(h.params).length && S(`Path "${h.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), g = R({}, h, {
|
|
2749
2749
|
path: Mt(n, h.path, y.path).path
|
|
2750
2750
|
});
|
|
2751
2751
|
else {
|
|
2752
|
-
const N =
|
|
2752
|
+
const N = R({}, h.params);
|
|
2753
2753
|
for (const W in N)
|
|
2754
2754
|
N[W] == null && delete N[W];
|
|
2755
|
-
g =
|
|
2755
|
+
g = R({}, h, {
|
|
2756
2756
|
params: d(N)
|
|
2757
2757
|
}), y.params = d(y.params);
|
|
2758
2758
|
}
|
|
2759
|
-
const _ = t.resolve(g, y),
|
|
2760
|
-
process.env.NODE_ENV !== "production" &&
|
|
2761
|
-
const U = Xs(o,
|
|
2762
|
-
hash: Gs(
|
|
2759
|
+
const _ = t.resolve(g, y), T = h.hash || "";
|
|
2760
|
+
process.env.NODE_ENV !== "production" && T && !T.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), _.params = u(p(_.params));
|
|
2761
|
+
const U = Xs(o, R({}, h, {
|
|
2762
|
+
hash: Gs(T),
|
|
2763
2763
|
path: _.path
|
|
2764
|
-
})),
|
|
2765
|
-
return process.env.NODE_ENV !== "production" && (
|
|
2764
|
+
})), D = r.createHref(U);
|
|
2765
|
+
return process.env.NODE_ENV !== "production" && (D.startsWith("//") ? S(`Location "${h}" resolved to "${D}". A resolved location cannot start with multiple slashes.`) : _.matched.length || S(`No match found for location with path "${h.path != null ? h.path : h}"`)), R({
|
|
2766
2766
|
fullPath: U,
|
|
2767
2767
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
2768
2768
|
// hash
|
|
2769
|
-
hash:
|
|
2769
|
+
hash: T,
|
|
2770
2770
|
query: (
|
|
2771
2771
|
// if the user is using a custom query lib like qs, we might have
|
|
2772
2772
|
// nested objects, so we keep the query as is, meaning it can contain
|
|
@@ -2777,24 +2777,24 @@ function Za(e) {
|
|
|
2777
2777
|
)
|
|
2778
2778
|
}, _, {
|
|
2779
2779
|
redirectedFrom: void 0,
|
|
2780
|
-
href:
|
|
2780
|
+
href: D
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
2783
|
function O(h) {
|
|
2784
|
-
return typeof h == "string" ? Mt(n, h, c.value.path) :
|
|
2784
|
+
return typeof h == "string" ? Mt(n, h, c.value.path) : R({}, h);
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function A(h, y) {
|
|
2787
2787
|
if (l !== h)
|
|
2788
2788
|
return je(8, {
|
|
2789
2789
|
from: y,
|
|
2790
2790
|
to: h
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2794
|
-
return
|
|
2793
|
+
function C(h) {
|
|
2794
|
+
return k(h);
|
|
2795
2795
|
}
|
|
2796
2796
|
function L(h) {
|
|
2797
|
-
return
|
|
2797
|
+
return C(R(O(h), { replace: !0 }));
|
|
2798
2798
|
}
|
|
2799
2799
|
function Z(h) {
|
|
2800
2800
|
const y = h.matched[h.matched.length - 1];
|
|
@@ -2808,7 +2808,7 @@ function Za(e) {
|
|
|
2808
2808
|
throw S(`Invalid redirect found:
|
|
2809
2809
|
${JSON.stringify(_, null, 2)}
|
|
2810
2810
|
when navigating to "${h.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
2811
|
-
return
|
|
2811
|
+
return R({
|
|
2812
2812
|
query: h.query,
|
|
2813
2813
|
hash: h.hash,
|
|
2814
2814
|
// avoid transferring params if the redirect has a path
|
|
@@ -2816,14 +2816,14 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2816
2816
|
}, _);
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2820
|
-
const g = l = x(h), _ = c.value,
|
|
2819
|
+
function k(h, y) {
|
|
2820
|
+
const g = l = x(h), _ = c.value, T = h.state, U = h.force, D = h.replace === !0, N = Z(g);
|
|
2821
2821
|
if (N)
|
|
2822
|
-
return
|
|
2823
|
-
|
|
2824
|
-
state: typeof N == "object" ?
|
|
2822
|
+
return k(
|
|
2823
|
+
R(O(N), {
|
|
2824
|
+
state: typeof N == "object" ? R({}, T, N.state) : T,
|
|
2825
2825
|
force: U,
|
|
2826
|
-
replace:
|
|
2826
|
+
replace: D
|
|
2827
2827
|
}),
|
|
2828
2828
|
// keep original redirectedFrom if it exists
|
|
2829
2829
|
y || g
|
|
@@ -2831,7 +2831,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2831
2831
|
const W = g;
|
|
2832
2832
|
W.redirectedFrom = y;
|
|
2833
2833
|
let we;
|
|
2834
|
-
return !U && Ln(o, _, g) && (we = je(16, { to: W, from: _ }),
|
|
2834
|
+
return !U && Ln(o, _, g) && (we = je(16, { to: W, from: _ }), In(
|
|
2835
2835
|
_,
|
|
2836
2836
|
_,
|
|
2837
2837
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -2840,9 +2840,9 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2840
2840
|
// This cannot be the first navigation because the initial location
|
|
2841
2841
|
// cannot be manually navigated to
|
|
2842
2842
|
!1
|
|
2843
|
-
)), (we ? Promise.resolve(we) : b(W, _)).catch((q) =>
|
|
2843
|
+
)), (we ? Promise.resolve(we) : b(W, _)).catch((q) => le(q) ? (
|
|
2844
2844
|
// navigation redirects still mark the router as ready
|
|
2845
|
-
|
|
2845
|
+
le(
|
|
2846
2846
|
q,
|
|
2847
2847
|
2
|
|
2848
2848
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
@@ -2852,7 +2852,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2852
2852
|
z(q, W, _)
|
|
2853
2853
|
)).then((q) => {
|
|
2854
2854
|
if (q) {
|
|
2855
|
-
if (
|
|
2855
|
+
if (le(
|
|
2856
2856
|
q,
|
|
2857
2857
|
2
|
|
2858
2858
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
@@ -2864,25 +2864,25 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2864
2864
|
// @ts-expect-error
|
|
2865
2865
|
y._count + 1
|
|
2866
2866
|
) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
|
|
2867
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) :
|
|
2867
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : k(
|
|
2868
2868
|
// keep options
|
|
2869
|
-
|
|
2869
|
+
R({
|
|
2870
2870
|
// preserve an existing replacement but allow the redirect to override it
|
|
2871
|
-
replace:
|
|
2871
|
+
replace: D
|
|
2872
2872
|
}, O(q.to), {
|
|
2873
|
-
state: typeof q.to == "object" ?
|
|
2873
|
+
state: typeof q.to == "object" ? R({}, T, q.to.state) : T,
|
|
2874
2874
|
force: U
|
|
2875
2875
|
}),
|
|
2876
2876
|
// preserve the original redirectedFrom if any
|
|
2877
2877
|
y || W
|
|
2878
2878
|
);
|
|
2879
2879
|
} else
|
|
2880
|
-
q = J(W, _, !0,
|
|
2880
|
+
q = J(W, _, !0, D, T);
|
|
2881
2881
|
return M(W, _, q), q;
|
|
2882
2882
|
});
|
|
2883
2883
|
}
|
|
2884
2884
|
function ne(h, y) {
|
|
2885
|
-
const g =
|
|
2885
|
+
const g = A(h, y);
|
|
2886
2886
|
return g ? Promise.reject(g) : Promise.resolve();
|
|
2887
2887
|
}
|
|
2888
2888
|
function w(h) {
|
|
@@ -2891,25 +2891,25 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2891
2891
|
}
|
|
2892
2892
|
function b(h, y) {
|
|
2893
2893
|
let g;
|
|
2894
|
-
const [_,
|
|
2894
|
+
const [_, T, U] = ei(h, y);
|
|
2895
2895
|
g = Bt(_.reverse(), "beforeRouteLeave", h, y);
|
|
2896
2896
|
for (const N of _)
|
|
2897
2897
|
N.leaveGuards.forEach((W) => {
|
|
2898
2898
|
g.push(me(W, h, y));
|
|
2899
2899
|
});
|
|
2900
|
-
const
|
|
2901
|
-
return g.push(
|
|
2900
|
+
const D = ne.bind(null, h, y);
|
|
2901
|
+
return g.push(D), Pe(g).then(() => {
|
|
2902
2902
|
g = [];
|
|
2903
2903
|
for (const N of s.list())
|
|
2904
2904
|
g.push(me(N, h, y));
|
|
2905
|
-
return g.push(
|
|
2905
|
+
return g.push(D), Pe(g);
|
|
2906
2906
|
}).then(() => {
|
|
2907
|
-
g = Bt(
|
|
2908
|
-
for (const N of
|
|
2907
|
+
g = Bt(T, "beforeRouteUpdate", h, y);
|
|
2908
|
+
for (const N of T)
|
|
2909
2909
|
N.updateGuards.forEach((W) => {
|
|
2910
2910
|
g.push(me(W, h, y));
|
|
2911
2911
|
});
|
|
2912
|
-
return g.push(
|
|
2912
|
+
return g.push(D), Pe(g);
|
|
2913
2913
|
}).then(() => {
|
|
2914
2914
|
g = [];
|
|
2915
2915
|
for (const N of U)
|
|
@@ -2919,13 +2919,13 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2919
2919
|
g.push(me(W, h, y));
|
|
2920
2920
|
else
|
|
2921
2921
|
g.push(me(N.beforeEnter, h, y));
|
|
2922
|
-
return g.push(
|
|
2923
|
-
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(U, "beforeRouteEnter", h, y, w), g.push(
|
|
2922
|
+
return g.push(D), Pe(g);
|
|
2923
|
+
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(U, "beforeRouteEnter", h, y, w), g.push(D), Pe(g))).then(() => {
|
|
2924
2924
|
g = [];
|
|
2925
2925
|
for (const N of i.list())
|
|
2926
2926
|
g.push(me(N, h, y));
|
|
2927
|
-
return g.push(
|
|
2928
|
-
}).catch((N) =>
|
|
2927
|
+
return g.push(D), Pe(g);
|
|
2928
|
+
}).catch((N) => le(
|
|
2929
2929
|
N,
|
|
2930
2930
|
8
|
|
2931
2931
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -2934,60 +2934,60 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2934
2934
|
function M(h, y, g) {
|
|
2935
2935
|
a.list().forEach((_) => w(() => _(h, y, g)));
|
|
2936
2936
|
}
|
|
2937
|
-
function J(h, y, g, _,
|
|
2938
|
-
const U =
|
|
2937
|
+
function J(h, y, g, _, T) {
|
|
2938
|
+
const U = A(h, y);
|
|
2939
2939
|
if (U)
|
|
2940
2940
|
return U;
|
|
2941
|
-
const
|
|
2942
|
-
g && (_ ||
|
|
2943
|
-
scroll:
|
|
2944
|
-
},
|
|
2941
|
+
const D = y === he, N = ce ? history.state : {};
|
|
2942
|
+
g && (_ || D ? r.replace(h.fullPath, R({
|
|
2943
|
+
scroll: D && N && N.scroll
|
|
2944
|
+
}, T)) : r.push(h.fullPath, T)), c.value = h, In(h, y, g, D), At();
|
|
2945
2945
|
}
|
|
2946
2946
|
let ee;
|
|
2947
2947
|
function Ue() {
|
|
2948
2948
|
ee || (ee = r.listen((h, y, g) => {
|
|
2949
|
-
const _ = x(h),
|
|
2950
|
-
if (
|
|
2951
|
-
|
|
2949
|
+
const _ = x(h), T = Z(_);
|
|
2950
|
+
if (T) {
|
|
2951
|
+
k(R(T, { replace: !0 }), _).catch(Ke);
|
|
2952
2952
|
return;
|
|
2953
2953
|
}
|
|
2954
2954
|
l = _;
|
|
2955
2955
|
const U = c.value;
|
|
2956
|
-
|
|
2957
|
-
|
|
2956
|
+
ce && aa(Bn(U.fullPath, g.delta), It()), b(_, U).catch((D) => le(
|
|
2957
|
+
D,
|
|
2958
2958
|
12
|
|
2959
2959
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2960
|
-
) ?
|
|
2961
|
-
|
|
2960
|
+
) ? D : le(
|
|
2961
|
+
D,
|
|
2962
2962
|
2
|
|
2963
2963
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2964
|
-
) ? (
|
|
2965
|
-
|
|
2964
|
+
) ? (k(
|
|
2965
|
+
D.to,
|
|
2966
2966
|
_
|
|
2967
2967
|
// avoid an uncaught rejection, let push call triggerError
|
|
2968
2968
|
).then((N) => {
|
|
2969
|
-
|
|
2969
|
+
le(
|
|
2970
2970
|
N,
|
|
2971
2971
|
20
|
|
2972
2972
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2973
2973
|
) && !g.delta && g.type === ot.pop && r.go(-1, !1);
|
|
2974
|
-
}).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), z(
|
|
2975
|
-
|
|
2974
|
+
}).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), z(D, _, U))).then((D) => {
|
|
2975
|
+
D = D || J(
|
|
2976
2976
|
// after navigation, all matched components are resolved
|
|
2977
2977
|
_,
|
|
2978
2978
|
U,
|
|
2979
2979
|
!1
|
|
2980
|
-
),
|
|
2980
|
+
), D && (g.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
2981
2981
|
// entry while a different route is displayed
|
|
2982
|
-
!
|
|
2983
|
-
|
|
2982
|
+
!le(
|
|
2983
|
+
D,
|
|
2984
2984
|
8
|
|
2985
2985
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2986
|
-
) ? r.go(-g.delta, !1) : g.type === ot.pop &&
|
|
2987
|
-
|
|
2986
|
+
) ? r.go(-g.delta, !1) : g.type === ot.pop && le(
|
|
2987
|
+
D,
|
|
2988
2988
|
20
|
|
2989
2989
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2990
|
-
) && r.go(-1, !1)), M(_, U,
|
|
2990
|
+
) && r.go(-1, !1)), M(_, U, D);
|
|
2991
2991
|
}).catch(Ke);
|
|
2992
2992
|
}));
|
|
2993
2993
|
}
|
|
@@ -2995,7 +2995,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2995
2995
|
function z(h, y, g) {
|
|
2996
2996
|
At(h);
|
|
2997
2997
|
const _ = it.list();
|
|
2998
|
-
return _.length ? _.forEach((
|
|
2998
|
+
return _.length ? _.forEach((T) => T(h, y, g)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
|
|
2999
2999
|
}
|
|
3000
3000
|
function xr() {
|
|
3001
3001
|
return oe && c.value !== he ? Promise.resolve() : new Promise((h, y) => {
|
|
@@ -3005,12 +3005,12 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3005
3005
|
function At(h) {
|
|
3006
3006
|
return oe || (oe = !h, Ue(), He.list().forEach(([y, g]) => h ? g(h) : y()), He.reset()), h;
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const { scrollBehavior:
|
|
3010
|
-
if (!
|
|
3008
|
+
function In(h, y, g, _) {
|
|
3009
|
+
const { scrollBehavior: T } = e;
|
|
3010
|
+
if (!ce || !T)
|
|
3011
3011
|
return Promise.resolve();
|
|
3012
3012
|
const U = !g && ia(Bn(h.fullPath, 0)) || (_ || !g) && history.state && history.state.scroll || null;
|
|
3013
|
-
return Re().then(() =>
|
|
3013
|
+
return Re().then(() => T(h, y, U)).then((D) => D && sa(D)).catch((D) => z(D, h, y));
|
|
3014
3014
|
}
|
|
3015
3015
|
const Tt = (h) => r.go(h);
|
|
3016
3016
|
let Rt;
|
|
@@ -3020,11 +3020,11 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3020
3020
|
addRoute: f,
|
|
3021
3021
|
removeRoute: m,
|
|
3022
3022
|
clearRoutes: t.clearRoutes,
|
|
3023
|
-
hasRoute:
|
|
3023
|
+
hasRoute: E,
|
|
3024
3024
|
getRoutes: v,
|
|
3025
3025
|
resolve: x,
|
|
3026
3026
|
options: e,
|
|
3027
|
-
push:
|
|
3027
|
+
push: C,
|
|
3028
3028
|
replace: L,
|
|
3029
3029
|
go: Tt,
|
|
3030
3030
|
back: () => Tt(-1),
|
|
@@ -3038,23 +3038,23 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3038
3038
|
const y = this;
|
|
3039
3039
|
h.component("RouterLink", Va), h.component("RouterView", Ba), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
|
|
3040
3040
|
enumerable: !0,
|
|
3041
|
-
get: () =>
|
|
3042
|
-
}),
|
|
3041
|
+
get: () => $(c)
|
|
3042
|
+
}), ce && // used for the initial navigation client side to avoid pushing
|
|
3043
3043
|
// multiple times when the router is used in multiple apps
|
|
3044
|
-
!Rt && c.value === he && (Rt = !0,
|
|
3045
|
-
process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:",
|
|
3044
|
+
!Rt && c.value === he && (Rt = !0, C(r.location).catch((T) => {
|
|
3045
|
+
process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", T);
|
|
3046
3046
|
}));
|
|
3047
3047
|
const g = {};
|
|
3048
|
-
for (const
|
|
3049
|
-
Object.defineProperty(g,
|
|
3050
|
-
get: () => c.value[
|
|
3048
|
+
for (const T in he)
|
|
3049
|
+
Object.defineProperty(g, T, {
|
|
3050
|
+
get: () => c.value[T],
|
|
3051
3051
|
enumerable: !0
|
|
3052
3052
|
});
|
|
3053
|
-
h.provide(fn, y), h.provide(Ko,
|
|
3053
|
+
h.provide(fn, y), h.provide(Ko, Cr(g)), h.provide(en, c);
|
|
3054
3054
|
const _ = h.unmount;
|
|
3055
3055
|
lt.add(h), h.unmount = function() {
|
|
3056
3056
|
lt.delete(h), lt.size < 1 && (l = he, ee && ee(), ee = null, c.value = he, Rt = !1, oe = !1), _();
|
|
3057
|
-
}, process.env.NODE_ENV !== "production" &&
|
|
3057
|
+
}, process.env.NODE_ENV !== "production" && ce && Ha(h, y, t);
|
|
3058
3058
|
}
|
|
3059
3059
|
};
|
|
3060
3060
|
function Pe(h) {
|
|
@@ -3096,11 +3096,11 @@ function hn() {
|
|
|
3096
3096
|
return Math.random().toString(36).substring(2);
|
|
3097
3097
|
}
|
|
3098
3098
|
var to = 0, Wt = 0;
|
|
3099
|
-
function
|
|
3099
|
+
function Ct() {
|
|
3100
3100
|
var e = (/* @__PURE__ */ new Date()).getTime();
|
|
3101
3101
|
return e === to ? (Wt++, e * 1e3 + Wt) : (to = e, Wt = 0, e * 1e3);
|
|
3102
3102
|
}
|
|
3103
|
-
var oi =
|
|
3103
|
+
var oi = Ct, ri = "native";
|
|
3104
3104
|
function si(e) {
|
|
3105
3105
|
var t = {
|
|
3106
3106
|
messagesCallback: null,
|
|
@@ -3184,7 +3184,7 @@ function mn() {
|
|
|
3184
3184
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
|
|
3185
3185
|
return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
|
|
3186
3186
|
}
|
|
3187
|
-
var fi =
|
|
3187
|
+
var fi = Ct, hi = "pubkey.broadcast-channel-0-", de = "messages", Pt = {
|
|
3188
3188
|
durability: "relaxed"
|
|
3189
3189
|
}, mi = "idb";
|
|
3190
3190
|
function ar() {
|
|
@@ -3363,7 +3363,7 @@ function Si() {
|
|
|
3363
3363
|
function Ni(e) {
|
|
3364
3364
|
return e.idb.fallbackInterval * 2;
|
|
3365
3365
|
}
|
|
3366
|
-
var
|
|
3366
|
+
var Ii = {
|
|
3367
3367
|
create: Ei,
|
|
3368
3368
|
close: $i,
|
|
3369
3369
|
onMessage: xi,
|
|
@@ -3372,7 +3372,7 @@ var Ci = {
|
|
|
3372
3372
|
type: mi,
|
|
3373
3373
|
averageResponseTime: Ni,
|
|
3374
3374
|
microSeconds: fi
|
|
3375
|
-
},
|
|
3375
|
+
}, Ci = Ct, Pi = "pubkey.broadcastChannel-", Di = "localstorage";
|
|
3376
3376
|
function cr() {
|
|
3377
3377
|
var e;
|
|
3378
3378
|
if (typeof window > "u") return null;
|
|
@@ -3451,8 +3451,8 @@ var Bi = {
|
|
|
3451
3451
|
canBeUsed: dr,
|
|
3452
3452
|
type: Di,
|
|
3453
3453
|
averageResponseTime: Mi,
|
|
3454
|
-
microSeconds:
|
|
3455
|
-
}, Wi =
|
|
3454
|
+
microSeconds: Ci
|
|
3455
|
+
}, Wi = Ct, Ui = "simulate", gn = /* @__PURE__ */ new Set();
|
|
3456
3456
|
function Hi(e) {
|
|
3457
3457
|
var t = {
|
|
3458
3458
|
name: e,
|
|
@@ -3500,7 +3500,7 @@ var Ki = {
|
|
|
3500
3500
|
}, no = [
|
|
3501
3501
|
di,
|
|
3502
3502
|
// fastest
|
|
3503
|
-
|
|
3503
|
+
Ii,
|
|
3504
3504
|
Bi
|
|
3505
3505
|
];
|
|
3506
3506
|
function Yi(e) {
|
|
@@ -3894,7 +3894,7 @@ var il = (e, t) => Object.keys(t).includes(e), ll = ({ initialize: e = !0, enabl
|
|
|
3894
3894
|
c.includes(l) || !il(l, o.$state) || al(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
|
|
3895
3895
|
});
|
|
3896
3896
|
};
|
|
3897
|
-
const cl =
|
|
3897
|
+
const cl = Is();
|
|
3898
3898
|
cl.use(
|
|
3899
3899
|
ll({
|
|
3900
3900
|
enable: !0,
|
|
@@ -3904,7 +3904,7 @@ cl.use(
|
|
|
3904
3904
|
const ul = /* @__PURE__ */ X({
|
|
3905
3905
|
__name: "Doctype",
|
|
3906
3906
|
setup(e) {
|
|
3907
|
-
const { stonecrop: t, isReady: n } = jo(), o =
|
|
3907
|
+
const { stonecrop: t, isReady: n } = jo(), o = P([]);
|
|
3908
3908
|
return F(n, () => {
|
|
3909
3909
|
if (n.value) {
|
|
3910
3910
|
let r = t.value.schema.schema.toArray();
|
|
@@ -3913,7 +3913,7 @@ const ul = /* @__PURE__ */ X({
|
|
|
3913
3913
|
r[i].value = c;
|
|
3914
3914
|
}), o.value = r;
|
|
3915
3915
|
}
|
|
3916
|
-
}), (r, s) =>
|
|
3916
|
+
}), (r, s) => $(n) ? (I(), xe($(ts), {
|
|
3917
3917
|
key: 0,
|
|
3918
3918
|
class: "aform-main",
|
|
3919
3919
|
modelValue: o.value,
|
|
@@ -3926,7 +3926,7 @@ function yr(e) {
|
|
|
3926
3926
|
return xt() ? (St(e), !0) : !1;
|
|
3927
3927
|
}
|
|
3928
3928
|
function _n(e) {
|
|
3929
|
-
return typeof e == "function" ? e() :
|
|
3929
|
+
return typeof e == "function" ? e() : $(e);
|
|
3930
3930
|
}
|
|
3931
3931
|
const fl = typeof window < "u" && typeof document < "u";
|
|
3932
3932
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -3961,21 +3961,21 @@ function st(...e) {
|
|
|
3961
3961
|
return yr(l), l;
|
|
3962
3962
|
}
|
|
3963
3963
|
function yl() {
|
|
3964
|
-
const e =
|
|
3964
|
+
const e = P(!1), t = We();
|
|
3965
3965
|
return t && Be(() => {
|
|
3966
3966
|
e.value = !0;
|
|
3967
3967
|
}, t), e;
|
|
3968
3968
|
}
|
|
3969
3969
|
function bl(e) {
|
|
3970
3970
|
const t = yl();
|
|
3971
|
-
return
|
|
3971
|
+
return j(() => (t.value, !!e()));
|
|
3972
3972
|
}
|
|
3973
3973
|
function wl(e, t, n = {}) {
|
|
3974
3974
|
const { window: o = at, ...r } = n;
|
|
3975
3975
|
let s;
|
|
3976
3976
|
const i = bl(() => o && "MutationObserver" in o), a = () => {
|
|
3977
3977
|
s && (s.disconnect(), s = void 0);
|
|
3978
|
-
}, c =
|
|
3978
|
+
}, c = j(() => {
|
|
3979
3979
|
const p = _n(e), f = (Array.isArray(p) ? p : [p]).map(rt).filter(hl);
|
|
3980
3980
|
return new Set(f);
|
|
3981
3981
|
}), l = F(
|
|
@@ -4006,7 +4006,7 @@ function _l(e = {}) {
|
|
|
4006
4006
|
for (; u != null && u.shadowRoot; )
|
|
4007
4007
|
u = (l = u == null ? void 0 : u.shadowRoot) == null ? void 0 : l.activeElement;
|
|
4008
4008
|
return u;
|
|
4009
|
-
}, a =
|
|
4009
|
+
}, a = P(), c = () => {
|
|
4010
4010
|
a.value = i();
|
|
4011
4011
|
};
|
|
4012
4012
|
return n && (st(n, "blur", (l) => {
|
|
@@ -4022,11 +4022,11 @@ function _l(e = {}) {
|
|
|
4022
4022
|
}
|
|
4023
4023
|
const El = "focusin", kl = "focusout";
|
|
4024
4024
|
function $l(e, t = {}) {
|
|
4025
|
-
const { window: n = at } = t, o =
|
|
4025
|
+
const { window: n = at } = t, o = j(() => rt(e)), r = P(!1), s = j(() => r.value), i = _l(t);
|
|
4026
4026
|
return !n || !i.value ? { focused: s } : (st(o, El, () => r.value = !0), st(o, kl, () => r.value = !1), { focused: s });
|
|
4027
4027
|
}
|
|
4028
4028
|
function Ol(e, { window: t = at, scrollTarget: n } = {}) {
|
|
4029
|
-
const o =
|
|
4029
|
+
const o = P(!1), r = () => {
|
|
4030
4030
|
if (!t) return;
|
|
4031
4031
|
const s = t.document, i = rt(e);
|
|
4032
4032
|
if (!i)
|
|
@@ -4250,15 +4250,15 @@ function br(e) {
|
|
|
4250
4250
|
for (const u of Object.keys(l)) {
|
|
4251
4251
|
const [d, ...p] = u.split(".");
|
|
4252
4252
|
if (d === "keydown" && p.includes(c)) {
|
|
4253
|
-
const f = l[u], m = p.filter((
|
|
4254
|
-
const x =
|
|
4253
|
+
const f = l[u], m = p.filter((E) => pt.includes(E)), v = pt.some((E) => {
|
|
4254
|
+
const x = E.charAt(0).toUpperCase() + E.slice(1);
|
|
4255
4255
|
return a.getModifierState(x);
|
|
4256
4256
|
});
|
|
4257
4257
|
if (m.length > 0) {
|
|
4258
4258
|
if (v) {
|
|
4259
|
-
for (const
|
|
4260
|
-
if (p.includes(
|
|
4261
|
-
const x =
|
|
4259
|
+
for (const E of pt)
|
|
4260
|
+
if (p.includes(E)) {
|
|
4261
|
+
const x = E.charAt(0).toUpperCase() + E.slice(1);
|
|
4262
4262
|
a.getModifierState(x) && f(a);
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
@@ -4271,7 +4271,7 @@ function br(e) {
|
|
|
4271
4271
|
for (const i of e) {
|
|
4272
4272
|
const a = t(i), c = o(i), l = r(i), u = a ? [a] : c;
|
|
4273
4273
|
for (const d of u) {
|
|
4274
|
-
const { focused: p } = $l(
|
|
4274
|
+
const { focused: p } = $l(P(d)), f = F(p, (m) => {
|
|
4275
4275
|
m ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
|
|
4276
4276
|
});
|
|
4277
4277
|
s.push(f);
|
|
@@ -4286,11 +4286,11 @@ function Sn(e) {
|
|
|
4286
4286
|
return xt() ? (St(e), !0) : !1;
|
|
4287
4287
|
}
|
|
4288
4288
|
function Dt(e) {
|
|
4289
|
-
return typeof e == "function" ? e() :
|
|
4289
|
+
return typeof e == "function" ? e() : $(e);
|
|
4290
4290
|
}
|
|
4291
|
-
const
|
|
4291
|
+
const Il = typeof window < "u" && typeof document < "u";
|
|
4292
4292
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4293
|
-
const
|
|
4293
|
+
const Cl = (e) => e != null, Pl = Object.prototype.toString, Dl = (e) => Pl.call(e) === "[object Object]", Al = () => {
|
|
4294
4294
|
};
|
|
4295
4295
|
function Tl(e) {
|
|
4296
4296
|
return We();
|
|
@@ -4298,7 +4298,7 @@ function Tl(e) {
|
|
|
4298
4298
|
function Rl(e, t = !0, n) {
|
|
4299
4299
|
Tl() ? Be(e, n) : t ? e() : Re(e);
|
|
4300
4300
|
}
|
|
4301
|
-
const Nn =
|
|
4301
|
+
const Nn = Il ? window : void 0;
|
|
4302
4302
|
function Me(e) {
|
|
4303
4303
|
var t;
|
|
4304
4304
|
const n = Dt(e);
|
|
@@ -4328,22 +4328,22 @@ function vo(...e) {
|
|
|
4328
4328
|
return Sn(l), l;
|
|
4329
4329
|
}
|
|
4330
4330
|
function Vl() {
|
|
4331
|
-
const e =
|
|
4331
|
+
const e = P(!1), t = We();
|
|
4332
4332
|
return t && Be(() => {
|
|
4333
4333
|
e.value = !0;
|
|
4334
4334
|
}, t), e;
|
|
4335
4335
|
}
|
|
4336
4336
|
function wr(e) {
|
|
4337
4337
|
const t = Vl();
|
|
4338
|
-
return
|
|
4338
|
+
return j(() => (t.value, !!e()));
|
|
4339
4339
|
}
|
|
4340
4340
|
function _r(e, t, n = {}) {
|
|
4341
4341
|
const { window: o = Nn, ...r } = n;
|
|
4342
4342
|
let s;
|
|
4343
4343
|
const i = wr(() => o && "MutationObserver" in o), a = () => {
|
|
4344
4344
|
s && (s.disconnect(), s = void 0);
|
|
4345
|
-
}, c =
|
|
4346
|
-
const p = Dt(e), f = (Array.isArray(p) ? p : [p]).map(Me).filter(
|
|
4345
|
+
}, c = j(() => {
|
|
4346
|
+
const p = Dt(e), f = (Array.isArray(p) ? p : [p]).map(Me).filter(Cl);
|
|
4347
4347
|
return new Set(f);
|
|
4348
4348
|
}), l = F(
|
|
4349
4349
|
() => c.value,
|
|
@@ -4365,7 +4365,7 @@ function jl(e, t, n = {}) {
|
|
|
4365
4365
|
let s;
|
|
4366
4366
|
const i = wr(() => o && "ResizeObserver" in o), a = () => {
|
|
4367
4367
|
s && (s.disconnect(), s = void 0);
|
|
4368
|
-
}, c =
|
|
4368
|
+
}, c = j(() => {
|
|
4369
4369
|
const d = Dt(e);
|
|
4370
4370
|
return Array.isArray(d) ? d.map((p) => Me(p)) : [Me(d)];
|
|
4371
4371
|
}), l = F(
|
|
@@ -4393,7 +4393,7 @@ function Ll(e, t = {}) {
|
|
|
4393
4393
|
windowScroll: r = !0,
|
|
4394
4394
|
immediate: s = !0,
|
|
4395
4395
|
updateTiming: i = "sync"
|
|
4396
|
-
} = t, a =
|
|
4396
|
+
} = t, a = P(0), c = P(0), l = P(0), u = P(0), d = P(0), p = P(0), f = P(0), m = P(0);
|
|
4397
4397
|
function v() {
|
|
4398
4398
|
const x = Me(e);
|
|
4399
4399
|
if (!x) {
|
|
@@ -4403,13 +4403,13 @@ function Ll(e, t = {}) {
|
|
|
4403
4403
|
const O = x.getBoundingClientRect();
|
|
4404
4404
|
a.value = O.height, c.value = O.bottom, l.value = O.left, u.value = O.right, d.value = O.top, p.value = O.width, f.value = O.x, m.value = O.y;
|
|
4405
4405
|
}
|
|
4406
|
-
function
|
|
4406
|
+
function E() {
|
|
4407
4407
|
i === "sync" ? v() : i === "next-frame" && requestAnimationFrame(() => v());
|
|
4408
4408
|
}
|
|
4409
|
-
return jl(e,
|
|
4409
|
+
return jl(e, E), F(() => Me(e), (x) => !x && E()), _r(e, E, {
|
|
4410
4410
|
attributeFilter: ["style", "class"]
|
|
4411
|
-
}), r && vo("scroll",
|
|
4412
|
-
s &&
|
|
4411
|
+
}), r && vo("scroll", E, { capture: !0, passive: !0 }), o && vo("resize", E, { passive: !0 }), Rl(() => {
|
|
4412
|
+
s && E();
|
|
4413
4413
|
}), {
|
|
4414
4414
|
height: a,
|
|
4415
4415
|
bottom: c,
|
|
@@ -4419,7 +4419,7 @@ function Ll(e, t = {}) {
|
|
|
4419
4419
|
width: p,
|
|
4420
4420
|
x: f,
|
|
4421
4421
|
y: m,
|
|
4422
|
-
update:
|
|
4422
|
+
update: E
|
|
4423
4423
|
};
|
|
4424
4424
|
}
|
|
4425
4425
|
const Ml = (e) => {
|
|
@@ -4436,68 +4436,70 @@ const Ml = (e) => {
|
|
|
4436
4436
|
pinned: { type: Boolean }
|
|
4437
4437
|
},
|
|
4438
4438
|
setup(e) {
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4439
|
+
const t = ae(e.tableid), n = Nt("cell"), { bottom: o, left: r } = Ll(n), s = t.cellData(e.colIndex, e.rowIndex), i = P(""), a = P(!1), c = t.table, l = t.columns[e.colIndex], u = t.rows[e.rowIndex], d = l.align || "center", p = l.width || "40ch", f = j(() => typeof v.value == "string" ? Ml(v.value) : !1), m = j(() => {
|
|
4440
|
+
var C;
|
|
4441
|
+
return {
|
|
4442
|
+
textAlign: d,
|
|
4443
|
+
width: p,
|
|
4444
|
+
backgroundColor: a.value ? "var(--cell-modified-color)" : "inherit",
|
|
4445
|
+
fontWeight: a.value ? "bold" : "inherit",
|
|
4446
|
+
paddingLeft: A(e.colIndex, (C = t.display[e.rowIndex]) == null ? void 0 : C.indent)
|
|
4447
|
+
};
|
|
4448
|
+
}), v = j(() => {
|
|
4449
|
+
const C = t.cellData(e.colIndex, e.rowIndex), L = l.format;
|
|
4450
|
+
return L ? typeof L == "function" ? L(C, { table: c, row: u, column: l }) : typeof L == "string" ? Function(`"use strict";return (${L})`)()(C, { table: c, row: u, column: l }) : C : C;
|
|
4451
|
+
}), E = () => {
|
|
4452
|
+
l.mask, l.modalComponent && (t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = o.value, t.modal.left = r.value, t.modal.width = p, typeof l.modalComponent == "function" ? t.modal.component = l.modalComponent({ table: c, row: u, column: l }) : t.modal.component = l.modalComponent, t.modal.componentProps = l.modalComponentExtraProps);
|
|
4445
4453
|
};
|
|
4446
4454
|
if (e.addNavigation) {
|
|
4447
|
-
let
|
|
4455
|
+
let C = {
|
|
4448
4456
|
...xn,
|
|
4449
|
-
"keydown.f2":
|
|
4450
|
-
"keydown.alt.up":
|
|
4451
|
-
"keydown.alt.down":
|
|
4452
|
-
"keydown.alt.left":
|
|
4453
|
-
"keydown.alt.right":
|
|
4457
|
+
"keydown.f2": E,
|
|
4458
|
+
"keydown.alt.up": E,
|
|
4459
|
+
"keydown.alt.down": E,
|
|
4460
|
+
"keydown.alt.left": E,
|
|
4461
|
+
"keydown.alt.right": E
|
|
4454
4462
|
};
|
|
4455
|
-
typeof e.addNavigation == "object" && (
|
|
4456
|
-
...
|
|
4463
|
+
typeof e.addNavigation == "object" && (C = {
|
|
4464
|
+
...C,
|
|
4457
4465
|
...e.addNavigation
|
|
4458
4466
|
}), br([
|
|
4459
4467
|
{
|
|
4460
|
-
selectors:
|
|
4461
|
-
handlers:
|
|
4468
|
+
selectors: n,
|
|
4469
|
+
handlers: C
|
|
4462
4470
|
}
|
|
4463
4471
|
]);
|
|
4464
4472
|
}
|
|
4465
|
-
const
|
|
4466
|
-
|
|
4467
|
-
},
|
|
4468
|
-
|
|
4469
|
-
},
|
|
4470
|
-
|
|
4471
|
-
width: p.value,
|
|
4472
|
-
backgroundColor: s.value ? "var(--cell-modified-color)" : "inherit",
|
|
4473
|
-
fontWeight: s.value ? "bold" : "inherit",
|
|
4474
|
-
paddingLeft: O(e.colIndex, (t = n.display[e.rowIndex]) == null ? void 0 : t.indent)
|
|
4475
|
-
};
|
|
4476
|
-
return (A, L) => (C(), j("td", {
|
|
4473
|
+
const x = () => {
|
|
4474
|
+
n.value && (i.value = n.value.textContent);
|
|
4475
|
+
}, O = () => {
|
|
4476
|
+
n.value && (a.value = n.value.textContent !== s, n.value.textContent !== i.value && (i.value = n.value.textContent, n.value.dispatchEvent(new Event("change")), l.format || t.setCellData(e.rowIndex, e.colIndex, i.value)));
|
|
4477
|
+
}, A = (C, L) => L && C === 0 && L > 0 ? `${L}ch` : "inherit";
|
|
4478
|
+
return (C, L) => (I(), V("td", {
|
|
4477
4479
|
ref: "cell",
|
|
4478
|
-
"data-colindex":
|
|
4479
|
-
"data-rowindex":
|
|
4480
|
-
"data-editable":
|
|
4481
|
-
contenteditable:
|
|
4482
|
-
tabindex:
|
|
4480
|
+
"data-colindex": C.colIndex,
|
|
4481
|
+
"data-rowindex": C.rowIndex,
|
|
4482
|
+
"data-editable": $(l).edit,
|
|
4483
|
+
contenteditable: $(l).edit,
|
|
4484
|
+
tabindex: C.tabIndex,
|
|
4483
4485
|
spellcheck: !1,
|
|
4484
|
-
style:
|
|
4485
|
-
onFocus:
|
|
4486
|
-
onPaste:
|
|
4487
|
-
onBlur:
|
|
4488
|
-
onInput:
|
|
4489
|
-
onClick:
|
|
4490
|
-
onMousedown:
|
|
4491
|
-
class: Se(["atable__cell",
|
|
4486
|
+
style: re(m.value),
|
|
4487
|
+
onFocus: x,
|
|
4488
|
+
onPaste: O,
|
|
4489
|
+
onBlur: O,
|
|
4490
|
+
onInput: O,
|
|
4491
|
+
onClick: E,
|
|
4492
|
+
onMousedown: E,
|
|
4493
|
+
class: Se(["atable__cell", C.pinned ? "sticky-column" : ""])
|
|
4492
4494
|
}, [
|
|
4493
|
-
|
|
4495
|
+
$(l).cellComponent ? (I(), xe(rn($(l).cellComponent), sn({
|
|
4494
4496
|
key: 0,
|
|
4495
|
-
value:
|
|
4496
|
-
},
|
|
4497
|
+
value: v.value
|
|
4498
|
+
}, $(l).cellComponentProps), null, 16, ["value"])) : f.value ? (I(), V("span", {
|
|
4497
4499
|
key: 1,
|
|
4498
|
-
innerHTML:
|
|
4499
|
-
}, null, 8, Wl)) : (
|
|
4500
|
-
],
|
|
4500
|
+
innerHTML: v.value
|
|
4501
|
+
}, null, 8, Wl)) : (I(), V("span", Ul, ue(v.value), 1))
|
|
4502
|
+
], 46, Bl));
|
|
4501
4503
|
}
|
|
4502
4504
|
}), Fl = ["tabindex"], zl = /* @__PURE__ */ X({
|
|
4503
4505
|
__name: "ARow",
|
|
@@ -4508,7 +4510,7 @@ const Ml = (e) => {
|
|
|
4508
4510
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
4509
4511
|
},
|
|
4510
4512
|
setup(e) {
|
|
4511
|
-
const t =
|
|
4513
|
+
const t = ae(e.tableid), n = Nt("rowEl"), o = j(() => t.columns.some((a) => a.pinned)), r = j(() => t.config.view !== "tree" || t.display[e.rowIndex].isRoot || t.display[e.rowIndex].open), s = j(() => t.config.view !== "tree" ? "" : t.display[e.rowIndex].isRoot || t.display[e.rowIndex].isParent ? t.display[e.rowIndex].childrenOpen ? "-" : "+" : ""), i = (a) => {
|
|
4512
4514
|
t.toggleRowExpand(a);
|
|
4513
4515
|
};
|
|
4514
4516
|
if (e.addNavigation) {
|
|
@@ -4523,17 +4525,17 @@ const Ml = (e) => {
|
|
|
4523
4525
|
}
|
|
4524
4526
|
]);
|
|
4525
4527
|
}
|
|
4526
|
-
return (a, c) => Ze((
|
|
4528
|
+
return (a, c) => Ze((I(), V("tr", {
|
|
4527
4529
|
ref: "rowEl",
|
|
4528
4530
|
tabindex: a.tabIndex,
|
|
4529
4531
|
class: "table-row"
|
|
4530
4532
|
}, [
|
|
4531
4533
|
ve(a.$slots, "index", {}, () => [
|
|
4532
|
-
|
|
4534
|
+
$(t).config.view === "list" ? (I(), V("td", {
|
|
4533
4535
|
key: 0,
|
|
4534
4536
|
tabIndex: -1,
|
|
4535
4537
|
class: Se(["list-index", o.value ? "sticky-index" : ""])
|
|
4536
|
-
}, ue(a.rowIndex + 1), 3)) :
|
|
4538
|
+
}, ue(a.rowIndex + 1), 3)) : $(t).config.view === "tree" ? (I(), V("td", {
|
|
4537
4539
|
key: 1,
|
|
4538
4540
|
tabIndex: -1,
|
|
4539
4541
|
class: Se(["tree-index", o.value ? "sticky-index" : ""]),
|
|
@@ -4550,7 +4552,7 @@ function Er(e) {
|
|
|
4550
4552
|
return xt() ? (St(e), !0) : !1;
|
|
4551
4553
|
}
|
|
4552
4554
|
function Qe(e) {
|
|
4553
|
-
return typeof e == "function" ? e() :
|
|
4555
|
+
return typeof e == "function" ? e() : $(e);
|
|
4554
4556
|
}
|
|
4555
4557
|
const kr = typeof window < "u" && typeof document < "u";
|
|
4556
4558
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4569,7 +4571,7 @@ function Kl(...e) {
|
|
|
4569
4571
|
if (e.length !== 1)
|
|
4570
4572
|
return ht(...e);
|
|
4571
4573
|
const t = e[0];
|
|
4572
|
-
return typeof t == "function" ? Ar(Tr(() => ({ get: t, set: Xe }))) :
|
|
4574
|
+
return typeof t == "function" ? Ar(Tr(() => ({ get: t, set: Xe }))) : P(t);
|
|
4573
4575
|
}
|
|
4574
4576
|
function Je(e) {
|
|
4575
4577
|
var t;
|
|
@@ -4671,7 +4673,7 @@ function Ql(e) {
|
|
|
4671
4673
|
}
|
|
4672
4674
|
const zt = /* @__PURE__ */ new WeakMap();
|
|
4673
4675
|
function Xl(e, t = !1) {
|
|
4674
|
-
const n =
|
|
4676
|
+
const n = P(t);
|
|
4675
4677
|
let o = null, r = "";
|
|
4676
4678
|
F(Kl(e), (a) => {
|
|
4677
4679
|
const c = Ft(Qe(a));
|
|
@@ -4699,7 +4701,7 @@ function Xl(e, t = !1) {
|
|
|
4699
4701
|
const a = Ft(Qe(e));
|
|
4700
4702
|
!a || !n.value || (nn && (o == null || o()), a.style.overflow = r, zt.delete(a), n.value = !1);
|
|
4701
4703
|
};
|
|
4702
|
-
return Er(i),
|
|
4704
|
+
return Er(i), j({
|
|
4703
4705
|
get() {
|
|
4704
4706
|
return n.value;
|
|
4705
4707
|
},
|
|
@@ -4710,7 +4712,7 @@ function Xl(e, t = !1) {
|
|
|
4710
4712
|
}
|
|
4711
4713
|
function Zl() {
|
|
4712
4714
|
let e = !1;
|
|
4713
|
-
const t =
|
|
4715
|
+
const t = P(!1);
|
|
4714
4716
|
return (n, o) => {
|
|
4715
4717
|
if (t.value = o.value, e)
|
|
4716
4718
|
return;
|
|
@@ -4732,7 +4734,7 @@ class ec {
|
|
|
4732
4734
|
return t;
|
|
4733
4735
|
}
|
|
4734
4736
|
createDisplayObject(t) {
|
|
4735
|
-
const n = [Object.assign({}, {
|
|
4737
|
+
const n = [Object.assign({}, { rowModified: !1 })];
|
|
4736
4738
|
if (t && "0:0" in t)
|
|
4737
4739
|
return t;
|
|
4738
4740
|
const o = /* @__PURE__ */ new Set();
|
|
@@ -4744,7 +4746,7 @@ class ec {
|
|
|
4744
4746
|
indent: s.indent || null,
|
|
4745
4747
|
isParent: o.has(r),
|
|
4746
4748
|
isRoot: s.parent === null || s.parent === void 0,
|
|
4747
|
-
|
|
4749
|
+
rowModified: !1,
|
|
4748
4750
|
open: s.parent === null || s.parent === void 0,
|
|
4749
4751
|
parent: s.parent
|
|
4750
4752
|
};
|
|
@@ -4755,15 +4757,14 @@ class ec {
|
|
|
4755
4757
|
return ["list", "tree", "list-expansion"].includes(this.config.view);
|
|
4756
4758
|
}
|
|
4757
4759
|
get numberedRowWidth() {
|
|
4758
|
-
return
|
|
4760
|
+
return j(() => String(Math.ceil(this.rows.length / 100) + 1) + "ch");
|
|
4759
4761
|
}
|
|
4760
4762
|
cellData(t, n) {
|
|
4761
4763
|
return this.table[`${t}:${n}`];
|
|
4762
4764
|
}
|
|
4763
4765
|
setCellData(t, n, o) {
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
return this.rows[t][r.name] = o, this.table[`${n}:${t}`];
|
|
4766
|
+
const r = `${n}:${t}`, s = this.columns[n];
|
|
4767
|
+
return this.table[r] !== o && (this.display[t].rowModified = !0), this.table[r] = o, this.rows[t][s.name] = o, this.table[r];
|
|
4767
4768
|
}
|
|
4768
4769
|
toggleRowExpand(t) {
|
|
4769
4770
|
if (this.config.view === "tree") {
|
|
@@ -4786,22 +4787,22 @@ const tc = {
|
|
|
4786
4787
|
tableid: {}
|
|
4787
4788
|
},
|
|
4788
4789
|
setup(e) {
|
|
4789
|
-
const t =
|
|
4790
|
+
const t = ae(e.tableid), n = j(() => t.columns.some((r) => r.pinned)), o = (r) => ({
|
|
4790
4791
|
minWidth: r.width || "40ch",
|
|
4791
4792
|
textAlign: r.align || "center",
|
|
4792
4793
|
width: t.config.fullWidth ? "auto" : null
|
|
4793
4794
|
});
|
|
4794
|
-
return (r, s) => r.columns.length ? (
|
|
4795
|
+
return (r, s) => r.columns.length ? (I(), V("thead", tc, [
|
|
4795
4796
|
B("tr", nc, [
|
|
4796
|
-
|
|
4797
|
+
$(t).zeroColumn ? (I(), V("th", {
|
|
4797
4798
|
key: 0,
|
|
4798
4799
|
id: "header-index",
|
|
4799
4800
|
class: Se(n.value ? "sticky-index" : "")
|
|
4800
4801
|
}, null, 2)) : ye("", !0),
|
|
4801
|
-
(
|
|
4802
|
+
(I(!0), V(Ne, null, Ie(r.columns, (i, a) => (I(), V("th", {
|
|
4802
4803
|
key: i.name,
|
|
4803
4804
|
tabindex: "-1",
|
|
4804
|
-
style:
|
|
4805
|
+
style: re(o(i)),
|
|
4805
4806
|
class: Se(i.pinned ? "sticky-column" : "")
|
|
4806
4807
|
}, [
|
|
4807
4808
|
ve(r.$slots, "default", {}, () => [
|
|
@@ -4822,7 +4823,7 @@ const tc = {
|
|
|
4822
4823
|
const t = (n) => {
|
|
4823
4824
|
n.stopPropagation();
|
|
4824
4825
|
};
|
|
4825
|
-
return (n, o) => (
|
|
4826
|
+
return (n, o) => (I(), V("div", {
|
|
4826
4827
|
class: "amodal",
|
|
4827
4828
|
tabindex: "-1",
|
|
4828
4829
|
onClick: t,
|
|
@@ -4877,39 +4878,39 @@ const tc = {
|
|
|
4877
4878
|
l.focus();
|
|
4878
4879
|
});
|
|
4879
4880
|
}
|
|
4880
|
-
}), (c, l) => Ze((
|
|
4881
|
+
}), (c, l) => Ze((I(), V("table", {
|
|
4881
4882
|
ref: "table",
|
|
4882
4883
|
class: "atable",
|
|
4883
|
-
style:
|
|
4884
|
+
style: re({ width: $(s).config.fullWidth ? "100%" : "auto" })
|
|
4884
4885
|
}, [
|
|
4885
|
-
ve(c.$slots, "header", { data:
|
|
4886
|
+
ve(c.$slots, "header", { data: $(s) }, () => [
|
|
4886
4887
|
Et(oc, {
|
|
4887
|
-
columns:
|
|
4888
|
-
tableid:
|
|
4888
|
+
columns: $(s).columns,
|
|
4889
|
+
tableid: $(s).id
|
|
4889
4890
|
}, null, 8, ["columns", "tableid"])
|
|
4890
4891
|
], !0),
|
|
4891
4892
|
B("tbody", null, [
|
|
4892
|
-
ve(c.$slots, "body", { data:
|
|
4893
|
-
(
|
|
4893
|
+
ve(c.$slots, "body", { data: $(s) }, () => [
|
|
4894
|
+
(I(!0), V(Ne, null, Ie($(s).rows, (u, d) => (I(), xe(zl, {
|
|
4894
4895
|
key: u.id,
|
|
4895
4896
|
row: u,
|
|
4896
4897
|
rowIndex: d,
|
|
4897
|
-
tableid:
|
|
4898
|
+
tableid: $(s).id
|
|
4898
4899
|
}, {
|
|
4899
4900
|
default: kt(() => [
|
|
4900
|
-
(
|
|
4901
|
+
(I(!0), V(Ne, null, Ie($(s).columns, (p, f) => (I(), xe(Hl, {
|
|
4901
4902
|
key: p.name,
|
|
4902
|
-
tableid:
|
|
4903
|
+
tableid: $(s).id,
|
|
4903
4904
|
col: p,
|
|
4904
4905
|
spellcheck: "false",
|
|
4905
4906
|
pinned: p.pinned,
|
|
4906
4907
|
rowIndex: d,
|
|
4907
|
-
colIndex: f + (
|
|
4908
|
+
colIndex: f + ($(s).zeroColumn ? 0 : -1),
|
|
4908
4909
|
component: p.cellComponent,
|
|
4909
|
-
style:
|
|
4910
|
+
style: re({
|
|
4910
4911
|
textAlign: (p == null ? void 0 : p.align) || "center",
|
|
4911
4912
|
minWidth: (p == null ? void 0 : p.width) || "40ch",
|
|
4912
|
-
width:
|
|
4913
|
+
width: $(s).config.fullWidth ? "auto" : null
|
|
4913
4914
|
})
|
|
4914
4915
|
}, null, 8, ["tableid", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
|
|
4915
4916
|
]),
|
|
@@ -4917,33 +4918,33 @@ const tc = {
|
|
|
4917
4918
|
}, 1032, ["row", "rowIndex", "tableid"]))), 128))
|
|
4918
4919
|
], !0)
|
|
4919
4920
|
]),
|
|
4920
|
-
ve(c.$slots, "footer", { data:
|
|
4921
|
-
ve(c.$slots, "modal", { data:
|
|
4921
|
+
ve(c.$slots, "footer", { data: $(s) }, void 0, !0),
|
|
4922
|
+
ve(c.$slots, "modal", { data: $(s) }, () => [
|
|
4922
4923
|
Ze(Et(rc, {
|
|
4923
|
-
colIndex:
|
|
4924
|
-
rowIndex:
|
|
4925
|
-
tableid:
|
|
4926
|
-
style:
|
|
4927
|
-
left:
|
|
4928
|
-
top:
|
|
4929
|
-
maxWidth:
|
|
4924
|
+
colIndex: $(s).modal.colIndex,
|
|
4925
|
+
rowIndex: $(s).modal.rowIndex,
|
|
4926
|
+
tableid: $(s).id,
|
|
4927
|
+
style: re({
|
|
4928
|
+
left: $(s).modal.left + "px",
|
|
4929
|
+
top: $(s).modal.top + "px",
|
|
4930
|
+
maxWidth: $(s).modal.width + "px"
|
|
4930
4931
|
})
|
|
4931
4932
|
}, {
|
|
4932
4933
|
default: kt(() => [
|
|
4933
|
-
(
|
|
4934
|
-
key: `${
|
|
4935
|
-
colIndex:
|
|
4936
|
-
rowIndex:
|
|
4937
|
-
tableid:
|
|
4938
|
-
},
|
|
4934
|
+
(I(), xe(rn($(s).modal.component), sn({
|
|
4935
|
+
key: `${$(s).modal.rowIndex}:${$(s).modal.colIndex}`,
|
|
4936
|
+
colIndex: $(s).modal.colIndex,
|
|
4937
|
+
rowIndex: $(s).modal.rowIndex,
|
|
4938
|
+
tableid: $(s).id
|
|
4939
|
+
}, $(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
|
|
4939
4940
|
]),
|
|
4940
4941
|
_: 1
|
|
4941
4942
|
}, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
|
|
4942
|
-
[on,
|
|
4943
|
+
[on, $(s).modal.visible]
|
|
4943
4944
|
])
|
|
4944
4945
|
], !0)
|
|
4945
4946
|
], 4)), [
|
|
4946
|
-
[
|
|
4947
|
+
[$(Yl), a]
|
|
4947
4948
|
]);
|
|
4948
4949
|
}
|
|
4949
4950
|
}), ac = (e, t) => {
|
|
@@ -4955,10 +4956,10 @@ const tc = {
|
|
|
4955
4956
|
__name: "Records",
|
|
4956
4957
|
setup(e) {
|
|
4957
4958
|
const { stonecrop: t, isReady: n } = jo(), o = { view: "list" };
|
|
4958
|
-
return (r, s) =>
|
|
4959
|
+
return (r, s) => $(n) ? (I(), xe($(ic), {
|
|
4959
4960
|
key: 0,
|
|
4960
|
-
columns:
|
|
4961
|
-
rows:
|
|
4961
|
+
columns: $(t).schema.schema.toArray(),
|
|
4962
|
+
rows: $(t).store.records,
|
|
4962
4963
|
config: o
|
|
4963
4964
|
}, null, 8, ["columns", "rows"])) : ye("", !0);
|
|
4964
4965
|
}
|
|
@@ -4978,7 +4979,7 @@ const tc = {
|
|
|
4978
4979
|
breadcrumbs: { default: () => [] }
|
|
4979
4980
|
},
|
|
4980
4981
|
setup(e) {
|
|
4981
|
-
const t =
|
|
4982
|
+
const t = P(!0), n = P(!1), o = P(""), r = Nt("searchinput"), s = j(() => t.value ? "unrotated" : "rotated"), i = () => {
|
|
4982
4983
|
t.value = !t.value;
|
|
4983
4984
|
}, a = async () => {
|
|
4984
4985
|
n.value = !n.value, await Re(() => {
|
|
@@ -4992,7 +4993,7 @@ const tc = {
|
|
|
4992
4993
|
};
|
|
4993
4994
|
return (d, p) => {
|
|
4994
4995
|
const f = Vr("router-link");
|
|
4995
|
-
return
|
|
4996
|
+
return I(), V("footer", null, [
|
|
4996
4997
|
B("ul", cc, [
|
|
4997
4998
|
B("li", {
|
|
4998
4999
|
class: "hidebreadcrumbs",
|
|
@@ -5009,14 +5010,14 @@ const tc = {
|
|
|
5009
5010
|
class: "hometab",
|
|
5010
5011
|
onClick: u,
|
|
5011
5012
|
onKeydown: ct(u, ["enter"]),
|
|
5012
|
-
style:
|
|
5013
|
+
style: re({ display: t.value ? "block" : "none" })
|
|
5013
5014
|
}, [
|
|
5014
5015
|
Et(f, {
|
|
5015
5016
|
to: "/home",
|
|
5016
5017
|
tabindex: "0"
|
|
5017
5018
|
}, {
|
|
5018
5019
|
default: kt(() => [
|
|
5019
|
-
(
|
|
5020
|
+
(I(), V("svg", dc, p[5] || (p[5] = [
|
|
5020
5021
|
B("g", null, [
|
|
5021
5022
|
B("path", {
|
|
5022
5023
|
style: { fill: "#010002" },
|
|
@@ -5040,13 +5041,13 @@ const tc = {
|
|
|
5040
5041
|
class: "searchtab",
|
|
5041
5042
|
onClick: a,
|
|
5042
5043
|
onKeydown: ct(a, ["enter"]),
|
|
5043
|
-
style:
|
|
5044
|
+
style: re({ display: t.value ? "block" : "none" })
|
|
5044
5045
|
}, [
|
|
5045
5046
|
B("a", pc, [
|
|
5046
5047
|
B("span", {
|
|
5047
|
-
style:
|
|
5048
|
+
style: re({ display: n.value ? "none" : "block" })
|
|
5048
5049
|
}, [
|
|
5049
|
-
(
|
|
5050
|
+
(I(), V("svg", fc, p[6] || (p[6] = [
|
|
5050
5051
|
B("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
|
|
5051
5052
|
B("path", {
|
|
5052
5053
|
d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
|
|
@@ -5059,7 +5060,7 @@ const tc = {
|
|
|
5059
5060
|
Ze(B("input", {
|
|
5060
5061
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
|
|
5061
5062
|
ref: "searchinput",
|
|
5062
|
-
style:
|
|
5063
|
+
style: re({ display: n.value ? "block" : "none" }),
|
|
5063
5064
|
onClick: p[1] || (p[1] = (m) => c(m)),
|
|
5064
5065
|
onInput: p[2] || (p[2] = (m) => c(m)),
|
|
5065
5066
|
onBlur: p[3] || (p[3] = (m) => l(m)),
|
|
@@ -5070,9 +5071,9 @@ const tc = {
|
|
|
5070
5071
|
])
|
|
5071
5072
|
])
|
|
5072
5073
|
], 36),
|
|
5073
|
-
(
|
|
5074
|
+
(I(!0), V(Ne, null, Ie(d.breadcrumbs, (m) => (I(), V("li", {
|
|
5074
5075
|
key: m.title,
|
|
5075
|
-
style:
|
|
5076
|
+
style: re({ display: t.value ? "block" : "none" })
|
|
5076
5077
|
}, [
|
|
5077
5078
|
Et(f, {
|
|
5078
5079
|
tabindex: "0",
|