@stonecrop/desktop 0.2.37 → 0.2.39
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 +851 -855
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +19 -19
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as V, onMounted as Zt, openBlock as
|
|
1
|
+
import { defineComponent as Z, ref as V, onMounted as Zt, openBlock as I, createElementBlock as T, normalizeClass as yo, createElementVNode as j, Fragment as Ne, renderList as Ie, toDisplayString as de, createCommentVNode as be, withDirectives as Ke, vShow as en, computed as L, createBlock as Se, resolveDynamicComponent as tn, mergeProps as nn, effectScope as bo, markRaw as Oe, inject as ae, onBeforeMount as Or, shallowRef as xr, toRaw as Ye, unref as $, shallowReactive as Sr, watch as J, nextTick as Qe, hasInjectionContext as Nr, getCurrentInstance as $t, reactive as $e, h as wo, provide as dt, isRef as Xe, isReactive as on, toRef as pt, watchEffect as Ir, getCurrentScope as rn, onScopeDispose as sn, toRefs as Nn, normalizeStyle as ue, renderSlot as ge, createVNode as wt, withCtx as _t, useTemplateRef as an, createTextVNode as _o, onBeforeUnmount as Cr, readonly as Pr, customRef as Dr, resolveComponent as Ar, withKeys as at, vModelText as Tr } from "vue";
|
|
2
2
|
const Vr = { class: "action-menu-icon" }, Rr = ["onclick"], jr = { key: 1 }, Lr = ["onClick"], Mr = { class: "dropdown-container" }, Br = { class: "dropdown" }, Ur = ["onclick"], Wr = ["href"], Hr = { class: "dropdown-item" }, Fr = /* @__PURE__ */ Z({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
@@ -16,22 +16,22 @@ const Vr = { class: "action-menu-icon" }, Rr = ["onclick"], jr = { key: 1 }, Lr
|
|
|
16
16
|
r.value = !0, o.value = setTimeout(() => {
|
|
17
17
|
r.value && (n.value = !0);
|
|
18
18
|
}, 500);
|
|
19
|
-
},
|
|
19
|
+
}, c = () => {
|
|
20
20
|
r.value = !1, s.value = !1, clearTimeout(o.value), n.value = !1;
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
a(), t.value[l].show =
|
|
21
|
+
}, u = (l) => {
|
|
22
|
+
const d = !t.value[l].show;
|
|
23
|
+
a(), t.value[l].show = d;
|
|
24
24
|
};
|
|
25
|
-
return (l,
|
|
25
|
+
return (l, d) => (I(), T("div", {
|
|
26
26
|
class: yo([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
|
|
27
27
|
onMouseover: i,
|
|
28
|
-
onMouseleave:
|
|
28
|
+
onMouseleave: c
|
|
29
29
|
}, [
|
|
30
30
|
j("div", Vr, [
|
|
31
31
|
j("div", {
|
|
32
32
|
id: "chevron",
|
|
33
|
-
onClick:
|
|
34
|
-
},
|
|
33
|
+
onClick: d[0] || (d[0] = (p) => s.value = !s.value)
|
|
34
|
+
}, d[1] || (d[1] = [
|
|
35
35
|
j("svg", {
|
|
36
36
|
class: "leftBar",
|
|
37
37
|
version: "1.1",
|
|
@@ -64,35 +64,35 @@ const Vr = { class: "action-menu-icon" }, Rr = ["onclick"], jr = { key: 1 }, Lr
|
|
|
64
64
|
], -1)
|
|
65
65
|
]))
|
|
66
66
|
]),
|
|
67
|
-
|
|
68
|
-
(
|
|
67
|
+
d[2] || (d[2] = j("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
68
|
+
(I(!0), T(Ne, null, Ie(t.value, (p, f) => (I(), T("div", {
|
|
69
69
|
class: "action-element",
|
|
70
70
|
key: p.label
|
|
71
71
|
}, [
|
|
72
|
-
p.elementType == "button" ? (
|
|
72
|
+
p.elementType == "button" ? (I(), T("button", {
|
|
73
73
|
key: 0,
|
|
74
74
|
onclick: p.action,
|
|
75
75
|
class: "button-default"
|
|
76
76
|
}, de(p.label), 9, Rr)) : be("", !0),
|
|
77
|
-
p.elementType == "dropdown" ? (
|
|
77
|
+
p.elementType == "dropdown" ? (I(), T("div", jr, [
|
|
78
78
|
j("button", {
|
|
79
79
|
class: "button-default",
|
|
80
|
-
onClick: (
|
|
80
|
+
onClick: (m) => u(f)
|
|
81
81
|
}, de(p.label), 9, Lr),
|
|
82
82
|
Ke(j("div", Mr, [
|
|
83
83
|
j("div", Br, [
|
|
84
|
-
(
|
|
85
|
-
key:
|
|
84
|
+
(I(!0), T(Ne, null, Ie(p.actions, (m) => (I(), T("div", {
|
|
85
|
+
key: m.label
|
|
86
86
|
}, [
|
|
87
|
-
|
|
87
|
+
m.action != null ? (I(), T("button", {
|
|
88
88
|
key: 0,
|
|
89
|
-
onclick:
|
|
89
|
+
onclick: m.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
}, de(
|
|
91
|
+
}, de(m.label), 9, Ur)) : m.link != null ? (I(), T("a", {
|
|
92
92
|
key: 1,
|
|
93
|
-
href:
|
|
93
|
+
href: m.link
|
|
94
94
|
}, [
|
|
95
|
-
j("button", Hr, de(
|
|
95
|
+
j("button", Hr, de(m.label), 1)
|
|
96
96
|
], 8, Wr)) : be("", !0)
|
|
97
97
|
]))), 128))
|
|
98
98
|
])
|
|
@@ -110,7 +110,7 @@ const Vr = { class: "action-menu-icon" }, Rr = ["onclick"], jr = { key: 1 }, Lr
|
|
|
110
110
|
return n;
|
|
111
111
|
}, Gr = /* @__PURE__ */ ln(Fr, [["__scopeId", "data-v-4fb5c934"]]), qr = {};
|
|
112
112
|
function zr(e, t) {
|
|
113
|
-
return
|
|
113
|
+
return I(), T("dialog");
|
|
114
114
|
}
|
|
115
115
|
const Jr = /* @__PURE__ */ ln(qr, [["render", zr]]), Kr = (e, t) => {
|
|
116
116
|
const n = e.__vccOpts || e;
|
|
@@ -130,31 +130,31 @@ const Yr = { class: "aform" }, Qr = /* @__PURE__ */ Z({
|
|
|
130
130
|
setup(e, { emit: t }) {
|
|
131
131
|
const n = t, o = V(e.data || {}), r = (a) => {
|
|
132
132
|
let i = {};
|
|
133
|
-
for (const [
|
|
134
|
-
["component", "fieldtype"].includes(
|
|
133
|
+
for (const [c, u] of Object.entries(a))
|
|
134
|
+
["component", "fieldtype"].includes(c) || (i[c] = u), c === "rows" && u && u.length === 0 && (i.rows = o.value[a.fieldname]);
|
|
135
135
|
return i;
|
|
136
136
|
}, s = L({
|
|
137
137
|
get: () => e.modelValue.map((a, i) => L({
|
|
138
138
|
get() {
|
|
139
139
|
return a.value;
|
|
140
140
|
},
|
|
141
|
-
set: (
|
|
142
|
-
e.modelValue[i].value =
|
|
141
|
+
set: (c) => {
|
|
142
|
+
e.modelValue[i].value = c, n("update:modelValue", e.modelValue);
|
|
143
143
|
}
|
|
144
144
|
})),
|
|
145
145
|
set: () => {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
return (a, i) => (
|
|
149
|
-
(
|
|
150
|
-
key:
|
|
151
|
-
schema:
|
|
152
|
-
modelValue: s.value[
|
|
153
|
-
"onUpdate:modelValue": (l) => s.value[
|
|
154
|
-
data: o.value[
|
|
148
|
+
return (a, i) => (I(), T("form", Yr, [
|
|
149
|
+
(I(!0), T(Ne, null, Ie(a.modelValue, (c, u) => (I(), Se(tn(c.component), nn({
|
|
150
|
+
key: u,
|
|
151
|
+
schema: c,
|
|
152
|
+
modelValue: s.value[u].value,
|
|
153
|
+
"onUpdate:modelValue": (l) => s.value[u].value = l,
|
|
154
|
+
data: o.value[c.fieldname],
|
|
155
155
|
readonly: a.readonly,
|
|
156
156
|
ref_for: !0
|
|
157
|
-
}, r(
|
|
157
|
+
}, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
160
|
}), Xr = /* @__PURE__ */ Kr(Qr, [["__scopeId", "data-v-15ed36be"]]);
|
|
@@ -366,23 +366,23 @@ class ls {
|
|
|
366
366
|
}, n && n.on(ss, (a, i) => {
|
|
367
367
|
a === this.plugin.id && this.fallbacks.setSettings(i);
|
|
368
368
|
}), this.proxiedOn = new Proxy({}, {
|
|
369
|
-
get: (a, i) => this.target ? this.target.on[i] : (...
|
|
369
|
+
get: (a, i) => this.target ? this.target.on[i] : (...c) => {
|
|
370
370
|
this.onQueue.push({
|
|
371
371
|
method: i,
|
|
372
|
-
args:
|
|
372
|
+
args: c
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
}), this.proxiedTarget = new Proxy({}, {
|
|
376
|
-
get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...
|
|
376
|
+
get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...c) => (this.targetQueue.push({
|
|
377
377
|
method: i,
|
|
378
|
-
args:
|
|
378
|
+
args: c,
|
|
379
379
|
resolve: () => {
|
|
380
380
|
}
|
|
381
|
-
}), this.fallbacks[i](...
|
|
381
|
+
}), this.fallbacks[i](...c)) : (...c) => new Promise((u) => {
|
|
382
382
|
this.targetQueue.push({
|
|
383
383
|
method: i,
|
|
384
|
-
args:
|
|
385
|
-
resolve:
|
|
384
|
+
args: c,
|
|
385
|
+
resolve: u
|
|
386
386
|
});
|
|
387
387
|
})
|
|
388
388
|
});
|
|
@@ -493,10 +493,10 @@ function ps(e, t, n, o) {
|
|
|
493
493
|
if ((a || r && s || So) && typeof FileReader < "u") {
|
|
494
494
|
const i = new FileReader();
|
|
495
495
|
i.onloadend = function() {
|
|
496
|
-
let
|
|
497
|
-
if (typeof
|
|
496
|
+
let c = i.result;
|
|
497
|
+
if (typeof c != "string")
|
|
498
498
|
throw o = null, new Error("Wrong reader.result type");
|
|
499
|
-
|
|
499
|
+
c = a ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location.assign(c), o = null;
|
|
500
500
|
}, i.readAsDataURL(e);
|
|
501
501
|
} else {
|
|
502
502
|
const i = URL.createObjectURL(e);
|
|
@@ -742,19 +742,19 @@ function ks(e, t) {
|
|
|
742
742
|
}
|
|
743
743
|
} : (
|
|
744
744
|
// NOTE: workaround to unwrap transferred refs
|
|
745
|
-
Object.keys(i.$state).reduce((
|
|
745
|
+
Object.keys(i.$state).reduce((c, u) => (c[u] = i.$state[u], c), {})
|
|
746
746
|
)
|
|
747
747
|
}), i._getters && i._getters.length && o.instanceData.state.push({
|
|
748
748
|
type: Et(i.$id),
|
|
749
749
|
key: "getters",
|
|
750
750
|
editable: !1,
|
|
751
|
-
value: i._getters.reduce((
|
|
751
|
+
value: i._getters.reduce((c, u) => {
|
|
752
752
|
try {
|
|
753
|
-
|
|
753
|
+
c[u] = i[u];
|
|
754
754
|
} catch (l) {
|
|
755
|
-
|
|
755
|
+
c[u] = l;
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return c;
|
|
758
758
|
}, {})
|
|
759
759
|
});
|
|
760
760
|
});
|
|
@@ -817,57 +817,57 @@ function $s(e, t) {
|
|
|
817
817
|
}
|
|
818
818
|
}, (n) => {
|
|
819
819
|
const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
820
|
-
t.$onAction(({ after: a, onError: i, name:
|
|
820
|
+
t.$onAction(({ after: a, onError: i, name: c, args: u }) => {
|
|
821
821
|
const l = Ao++;
|
|
822
822
|
n.addTimelineEvent({
|
|
823
823
|
layerId: ke,
|
|
824
824
|
event: {
|
|
825
825
|
time: o(),
|
|
826
|
-
title: "🛫 " +
|
|
826
|
+
title: "🛫 " + c,
|
|
827
827
|
subtitle: "start",
|
|
828
828
|
data: {
|
|
829
829
|
store: ne(t.$id),
|
|
830
|
-
action: ne(
|
|
831
|
-
args:
|
|
830
|
+
action: ne(c),
|
|
831
|
+
args: u
|
|
832
832
|
},
|
|
833
833
|
groupId: l
|
|
834
834
|
}
|
|
835
|
-
}), a((
|
|
835
|
+
}), a((d) => {
|
|
836
836
|
ye = void 0, n.addTimelineEvent({
|
|
837
837
|
layerId: ke,
|
|
838
838
|
event: {
|
|
839
839
|
time: o(),
|
|
840
|
-
title: "🛬 " +
|
|
840
|
+
title: "🛬 " + c,
|
|
841
841
|
subtitle: "end",
|
|
842
842
|
data: {
|
|
843
843
|
store: ne(t.$id),
|
|
844
|
-
action: ne(
|
|
845
|
-
args:
|
|
846
|
-
result:
|
|
844
|
+
action: ne(c),
|
|
845
|
+
args: u,
|
|
846
|
+
result: d
|
|
847
847
|
},
|
|
848
848
|
groupId: l
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
|
-
}), i((
|
|
851
|
+
}), i((d) => {
|
|
852
852
|
ye = void 0, n.addTimelineEvent({
|
|
853
853
|
layerId: ke,
|
|
854
854
|
event: {
|
|
855
855
|
time: o(),
|
|
856
856
|
logType: "error",
|
|
857
|
-
title: "💥 " +
|
|
857
|
+
title: "💥 " + c,
|
|
858
858
|
subtitle: "end",
|
|
859
859
|
data: {
|
|
860
860
|
store: ne(t.$id),
|
|
861
|
-
action: ne(
|
|
862
|
-
args:
|
|
863
|
-
error:
|
|
861
|
+
action: ne(c),
|
|
862
|
+
args: u,
|
|
863
|
+
error: d
|
|
864
864
|
},
|
|
865
865
|
groupId: l
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
});
|
|
869
869
|
}, !0), t._customProperties.forEach((a) => {
|
|
870
|
-
J(() =>
|
|
870
|
+
J(() => $(t[a]), (i, c) => {
|
|
871
871
|
n.notifyComponentUpdate(), n.sendInspectorState(G), Ae && n.addTimelineEvent({
|
|
872
872
|
layerId: ke,
|
|
873
873
|
event: {
|
|
@@ -876,22 +876,22 @@ function $s(e, t) {
|
|
|
876
876
|
subtitle: a,
|
|
877
877
|
data: {
|
|
878
878
|
newValue: i,
|
|
879
|
-
oldValue:
|
|
879
|
+
oldValue: c
|
|
880
880
|
},
|
|
881
881
|
groupId: ye
|
|
882
882
|
}
|
|
883
883
|
});
|
|
884
884
|
}, { deep: !0 });
|
|
885
|
-
}), t.$subscribe(({ events: a, type: i },
|
|
885
|
+
}), t.$subscribe(({ events: a, type: i }, c) => {
|
|
886
886
|
if (n.notifyComponentUpdate(), n.sendInspectorState(G), !Ae)
|
|
887
887
|
return;
|
|
888
|
-
const
|
|
888
|
+
const u = {
|
|
889
889
|
time: o(),
|
|
890
890
|
title: _s(i),
|
|
891
891
|
data: Es({ store: ne(t.$id) }, ws(a)),
|
|
892
892
|
groupId: ye
|
|
893
893
|
};
|
|
894
|
-
i === se.patchFunction ?
|
|
894
|
+
i === se.patchFunction ? u.subtitle = "⤵️" : i === se.patchObject ? u.subtitle = "🧩" : a && !Array.isArray(a) && (u.subtitle = a.type), a && (u.data["rawEvent(s)"] = {
|
|
895
895
|
_custom: {
|
|
896
896
|
display: "DebuggerEvent",
|
|
897
897
|
type: "object",
|
|
@@ -900,7 +900,7 @@ function $s(e, t) {
|
|
|
900
900
|
}
|
|
901
901
|
}), n.addTimelineEvent({
|
|
902
902
|
layerId: ke,
|
|
903
|
-
event:
|
|
903
|
+
event: u
|
|
904
904
|
});
|
|
905
905
|
}, { detached: !0, flush: "sync" });
|
|
906
906
|
const r = t._hotUpdate;
|
|
@@ -930,11 +930,11 @@ function Cn(e, t, n) {
|
|
|
930
930
|
for (const r in o)
|
|
931
931
|
e[r] = function() {
|
|
932
932
|
const s = Ao, a = n ? new Proxy(e, {
|
|
933
|
-
get(...
|
|
934
|
-
return ye = s, Reflect.get(...
|
|
933
|
+
get(...c) {
|
|
934
|
+
return ye = s, Reflect.get(...c);
|
|
935
935
|
},
|
|
936
|
-
set(...
|
|
937
|
-
return ye = s, Reflect.set(...
|
|
936
|
+
set(...c) {
|
|
937
|
+
return ye = s, Reflect.set(...c);
|
|
938
938
|
}
|
|
939
939
|
}) : e;
|
|
940
940
|
ye = s;
|
|
@@ -1027,56 +1027,56 @@ function An(e) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
function Tn(e, t, n, o) {
|
|
1029
1029
|
const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
|
|
1030
|
-
let
|
|
1031
|
-
function
|
|
1030
|
+
let c;
|
|
1031
|
+
function u() {
|
|
1032
1032
|
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
1033
1033
|
const l = process.env.NODE_ENV !== "production" && o ? (
|
|
1034
1034
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1035
1035
|
Nn(V(r ? r() : {}).value)
|
|
1036
1036
|
) : Nn(n.state.value[e]);
|
|
1037
|
-
return Q(l, s, Object.keys(a || {}).reduce((
|
|
1037
|
+
return Q(l, s, Object.keys(a || {}).reduce((d, p) => (process.env.NODE_ENV !== "production" && p in l && 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] = Oe(L(() => {
|
|
1038
1038
|
Ze(n);
|
|
1039
1039
|
const f = n._s.get(e);
|
|
1040
1040
|
return a[p].call(f, f);
|
|
1041
|
-
})),
|
|
1041
|
+
})), d), {}));
|
|
1042
1042
|
}
|
|
1043
|
-
return
|
|
1043
|
+
return c = Gt(e, u, t, n, o, !0), c;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Gt(e, t, n = {}, o, r, s) {
|
|
1046
1046
|
let a;
|
|
1047
1047
|
const i = Q({ actions: {} }, n);
|
|
1048
1048
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
1049
1049
|
throw new Error("Pinia destroyed");
|
|
1050
|
-
const
|
|
1051
|
-
process.env.NODE_ENV !== "production" && !ko && (
|
|
1052
|
-
|
|
1050
|
+
const c = { deep: !0 };
|
|
1051
|
+
process.env.NODE_ENV !== "production" && !ko && (c.onTrigger = (w) => {
|
|
1052
|
+
u ? f = w : u == !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
|
-
let
|
|
1055
|
-
const
|
|
1056
|
-
!s && !
|
|
1057
|
-
const
|
|
1058
|
-
let
|
|
1059
|
-
function
|
|
1060
|
-
let
|
|
1061
|
-
|
|
1054
|
+
let u, l, d = [], p = [], f;
|
|
1055
|
+
const m = o.state.value[e];
|
|
1056
|
+
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1057
|
+
const b = V({});
|
|
1058
|
+
let x;
|
|
1059
|
+
function _(w) {
|
|
1060
|
+
let y;
|
|
1061
|
+
u = l = !1, process.env.NODE_ENV !== "production" && (f = []), typeof w == "function" ? (w(o.state.value[e]), y = {
|
|
1062
1062
|
type: se.patchFunction,
|
|
1063
1063
|
storeId: e,
|
|
1064
1064
|
events: f
|
|
1065
|
-
}) : (Ft(o.state.value[e], w),
|
|
1065
|
+
}) : (Ft(o.state.value[e], w), y = {
|
|
1066
1066
|
type: se.patchObject,
|
|
1067
1067
|
payload: w,
|
|
1068
1068
|
storeId: e,
|
|
1069
1069
|
events: f
|
|
1070
1070
|
});
|
|
1071
|
-
const R =
|
|
1071
|
+
const R = x = Symbol();
|
|
1072
1072
|
Qe().then(() => {
|
|
1073
|
-
|
|
1074
|
-
}), l = !0, De(
|
|
1073
|
+
x === R && (u = !0);
|
|
1074
|
+
}), l = !0, De(d, y, o.state.value[e]);
|
|
1075
1075
|
}
|
|
1076
1076
|
const O = s ? function() {
|
|
1077
|
-
const { state: w } = n,
|
|
1077
|
+
const { state: w } = n, y = w ? w() : {};
|
|
1078
1078
|
this.$patch((R) => {
|
|
1079
|
-
Q(R,
|
|
1079
|
+
Q(R, y);
|
|
1080
1080
|
});
|
|
1081
1081
|
} : (
|
|
1082
1082
|
/* istanbul ignore next */
|
|
@@ -1085,11 +1085,11 @@ function Gt(e, t, n = {}, o, r, s) {
|
|
|
1085
1085
|
} : Vo
|
|
1086
1086
|
);
|
|
1087
1087
|
function P() {
|
|
1088
|
-
a.stop(),
|
|
1088
|
+
a.stop(), d = [], p = [], o._s.delete(e);
|
|
1089
1089
|
}
|
|
1090
|
-
const U = (w,
|
|
1090
|
+
const U = (w, y = "") => {
|
|
1091
1091
|
if (Dn in w)
|
|
1092
|
-
return w[Dt] =
|
|
1092
|
+
return w[Dt] = y, w;
|
|
1093
1093
|
const R = function() {
|
|
1094
1094
|
Ze(o);
|
|
1095
1095
|
const K = Array.from(arguments), te = [], Le = [];
|
|
@@ -1102,43 +1102,43 @@ function Gt(e, t, n = {}, o, r, s) {
|
|
|
1102
1102
|
De(p, {
|
|
1103
1103
|
args: K,
|
|
1104
1104
|
name: R[Dt],
|
|
1105
|
-
store:
|
|
1105
|
+
store: k,
|
|
1106
1106
|
after: Me,
|
|
1107
1107
|
onError: rt
|
|
1108
1108
|
});
|
|
1109
1109
|
let re;
|
|
1110
1110
|
try {
|
|
1111
|
-
re = w.apply(this && this.$id === e ? this :
|
|
1111
|
+
re = w.apply(this && this.$id === e ? this : k, K);
|
|
1112
1112
|
} catch (F) {
|
|
1113
1113
|
throw De(Le, F), F;
|
|
1114
1114
|
}
|
|
1115
1115
|
return re instanceof Promise ? re.then((F) => (De(te, F), F)).catch((F) => (De(Le, F), Promise.reject(F))) : (De(te, re), re);
|
|
1116
1116
|
};
|
|
1117
|
-
return R[Dn] = !0, R[Dt] =
|
|
1117
|
+
return R[Dn] = !0, R[Dt] = y, R;
|
|
1118
1118
|
}, q = /* @__PURE__ */ Oe({
|
|
1119
1119
|
actions: {},
|
|
1120
1120
|
getters: {},
|
|
1121
1121
|
state: [],
|
|
1122
|
-
hotState:
|
|
1122
|
+
hotState: b
|
|
1123
1123
|
}), ee = {
|
|
1124
1124
|
_p: o,
|
|
1125
1125
|
// _s: scope,
|
|
1126
1126
|
$id: e,
|
|
1127
1127
|
$onAction: Pn.bind(null, p),
|
|
1128
|
-
$patch:
|
|
1128
|
+
$patch: _,
|
|
1129
1129
|
$reset: O,
|
|
1130
|
-
$subscribe(w,
|
|
1131
|
-
const R = Pn(
|
|
1132
|
-
(
|
|
1130
|
+
$subscribe(w, y = {}) {
|
|
1131
|
+
const R = Pn(d, w, y.detached, () => K()), K = a.run(() => J(() => o.state.value[e], (te) => {
|
|
1132
|
+
(y.flush === "sync" ? l : u) && w({
|
|
1133
1133
|
storeId: e,
|
|
1134
1134
|
type: se.direct,
|
|
1135
1135
|
events: f
|
|
1136
1136
|
}, te);
|
|
1137
|
-
}, Q({},
|
|
1137
|
+
}, Q({}, c, y)));
|
|
1138
1138
|
return R;
|
|
1139
1139
|
},
|
|
1140
1140
|
$dispose: P
|
|
1141
|
-
},
|
|
1141
|
+
}, k = $e(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe ? Q(
|
|
1142
1142
|
{
|
|
1143
1143
|
_hmrPayload: q,
|
|
1144
1144
|
_customProperties: Oe(/* @__PURE__ */ new Set())
|
|
@@ -1148,58 +1148,58 @@ function Gt(e, t, n = {}, o, r, s) {
|
|
|
1148
1148
|
// must be added later
|
|
1149
1149
|
// setupStore
|
|
1150
1150
|
) : ee);
|
|
1151
|
-
o._s.set(e,
|
|
1151
|
+
o._s.set(e, k);
|
|
1152
1152
|
const oe = (o._a && o._a.runWithContext || Ss)(() => o._e.run(() => (a = bo()).run(() => t({ action: U }))));
|
|
1153
1153
|
for (const w in oe) {
|
|
1154
|
-
const
|
|
1155
|
-
if (Xe(
|
|
1156
|
-
process.env.NODE_ENV !== "production" && r ? it(
|
|
1157
|
-
else if (typeof
|
|
1158
|
-
const R = process.env.NODE_ENV !== "production" && r ?
|
|
1159
|
-
oe[w] = R, process.env.NODE_ENV !== "production" && (q.actions[w] =
|
|
1160
|
-
} else process.env.NODE_ENV !== "production" && An(
|
|
1154
|
+
const y = oe[w];
|
|
1155
|
+
if (Xe(y) && !An(y) || on(y))
|
|
1156
|
+
process.env.NODE_ENV !== "production" && r ? it(b.value, w, pt(oe, w)) : s || (m && Is(y) && (Xe(y) ? y.value = m[w] : Ft(y, m[w])), o.state.value[e][w] = y), process.env.NODE_ENV !== "production" && q.state.push(w);
|
|
1157
|
+
else if (typeof y == "function") {
|
|
1158
|
+
const R = process.env.NODE_ENV !== "production" && r ? y : U(y, w);
|
|
1159
|
+
oe[w] = R, process.env.NODE_ENV !== "production" && (q.actions[w] = y), i.actions[w] = y;
|
|
1160
|
+
} else process.env.NODE_ENV !== "production" && An(y) && (q.getters[w] = s ? (
|
|
1161
1161
|
// @ts-expect-error
|
|
1162
1162
|
n.getters[w]
|
|
1163
|
-
) :
|
|
1163
|
+
) : y, xe && (oe._getters || // @ts-expect-error: same
|
|
1164
1164
|
(oe._getters = Oe([]))).push(w));
|
|
1165
1165
|
}
|
|
1166
|
-
if (Q(
|
|
1167
|
-
get: () => process.env.NODE_ENV !== "production" && r ?
|
|
1166
|
+
if (Q(k, oe), Q(Ye(k), oe), Object.defineProperty(k, "$state", {
|
|
1167
|
+
get: () => process.env.NODE_ENV !== "production" && r ? b.value : o.state.value[e],
|
|
1168
1168
|
set: (w) => {
|
|
1169
1169
|
if (process.env.NODE_ENV !== "production" && r)
|
|
1170
1170
|
throw new Error("cannot set hotState");
|
|
1171
|
-
|
|
1172
|
-
Q(
|
|
1171
|
+
_((y) => {
|
|
1172
|
+
Q(y, w);
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1176
|
-
|
|
1177
|
-
if (
|
|
1178
|
-
const R = w.$state[
|
|
1179
|
-
typeof R == "object" && Ce(R) && Ce(K) ? To(R, K) : w.$state[
|
|
1175
|
+
}), process.env.NODE_ENV !== "production" && (k._hotUpdate = Oe((w) => {
|
|
1176
|
+
k._hotUpdating = !0, w._hmrPayload.state.forEach((y) => {
|
|
1177
|
+
if (y in k.$state) {
|
|
1178
|
+
const R = w.$state[y], K = k.$state[y];
|
|
1179
|
+
typeof R == "object" && Ce(R) && Ce(K) ? To(R, K) : w.$state[y] = K;
|
|
1180
1180
|
}
|
|
1181
|
-
it(
|
|
1182
|
-
}), Object.keys(
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
|
|
1181
|
+
it(k, y, pt(w.$state, y));
|
|
1182
|
+
}), Object.keys(k.$state).forEach((y) => {
|
|
1183
|
+
y in w.$state || Pt(k, y);
|
|
1184
|
+
}), u = !1, l = !1, o.state.value[e] = pt(w._hmrPayload, "hotState"), l = !0, Qe().then(() => {
|
|
1185
|
+
u = !0;
|
|
1186
1186
|
});
|
|
1187
|
-
for (const
|
|
1188
|
-
const R = w[
|
|
1189
|
-
it(
|
|
1187
|
+
for (const y in w._hmrPayload.actions) {
|
|
1188
|
+
const R = w[y];
|
|
1189
|
+
it(k, y, U(R, y));
|
|
1190
1190
|
}
|
|
1191
|
-
for (const
|
|
1192
|
-
const R = w._hmrPayload.getters[
|
|
1191
|
+
for (const y in w._hmrPayload.getters) {
|
|
1192
|
+
const R = w._hmrPayload.getters[y], K = s ? (
|
|
1193
1193
|
// special handling of options api
|
|
1194
|
-
L(() => (Ze(o), R.call(
|
|
1194
|
+
L(() => (Ze(o), R.call(k, k)))
|
|
1195
1195
|
) : R;
|
|
1196
|
-
it(
|
|
1196
|
+
it(k, y, K);
|
|
1197
1197
|
}
|
|
1198
|
-
Object.keys(
|
|
1199
|
-
|
|
1200
|
-
}), Object.keys(
|
|
1201
|
-
|
|
1202
|
-
}),
|
|
1198
|
+
Object.keys(k._hmrPayload.getters).forEach((y) => {
|
|
1199
|
+
y in w._hmrPayload.getters || Pt(k, y);
|
|
1200
|
+
}), Object.keys(k._hmrPayload.actions).forEach((y) => {
|
|
1201
|
+
y in w._hmrPayload.actions || Pt(k, y);
|
|
1202
|
+
}), k._hmrPayload = w._hmrPayload, k._getters = w._getters, k._hotUpdating = !1;
|
|
1203
1203
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe) {
|
|
1204
1204
|
const w = {
|
|
1205
1205
|
writable: !0,
|
|
@@ -1207,54 +1207,54 @@ function Gt(e, t, n = {}, o, r, s) {
|
|
|
1207
1207
|
// avoid warning on devtools trying to display this property
|
|
1208
1208
|
enumerable: !1
|
|
1209
1209
|
};
|
|
1210
|
-
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
|
1211
|
-
Object.defineProperty(
|
|
1210
|
+
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((y) => {
|
|
1211
|
+
Object.defineProperty(k, y, Q({ value: k[y] }, 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" && xe) {
|
|
1216
|
-
const
|
|
1217
|
-
store:
|
|
1216
|
+
const y = a.run(() => w({
|
|
1217
|
+
store: k,
|
|
1218
1218
|
app: o._a,
|
|
1219
1219
|
pinia: o,
|
|
1220
1220
|
options: i
|
|
1221
1221
|
}));
|
|
1222
|
-
Object.keys(
|
|
1222
|
+
Object.keys(y || {}).forEach((R) => k._customProperties.add(R)), Q(k, y);
|
|
1223
1223
|
} else
|
|
1224
|
-
Q(
|
|
1225
|
-
store:
|
|
1224
|
+
Q(k, a.run(() => w({
|
|
1225
|
+
store: k,
|
|
1226
1226
|
app: o._a,
|
|
1227
1227
|
pinia: o,
|
|
1228
1228
|
options: i
|
|
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), u = !0, l = !0, k;
|
|
1233
1233
|
}
|
|
1234
1234
|
// @__NO_SIDE_EFFECTS__
|
|
1235
1235
|
function Cs(e, t, n) {
|
|
1236
1236
|
let o, r;
|
|
1237
1237
|
const s = typeof t == "function";
|
|
1238
1238
|
o = e, r = s ? n : t;
|
|
1239
|
-
function a(i,
|
|
1240
|
-
const
|
|
1239
|
+
function a(i, c) {
|
|
1240
|
+
const u = Nr();
|
|
1241
1241
|
if (i = // 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" && He && He._testing ? null : i) || (
|
|
1243
|
+
(process.env.NODE_ENV === "test" && He && He._testing ? null : i) || (u ? ae(Oo, null) : null), i && Ze(i), process.env.NODE_ENV !== "production" && !He)
|
|
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.`);
|
|
1247
1247
|
i = He, i._s.has(o) || (s ? Gt(o, t, r, i) : Tn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
1248
1248
|
const l = i._s.get(o);
|
|
1249
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1249
|
+
if (process.env.NODE_ENV !== "production" && c) {
|
|
1250
|
+
const d = "__hot:" + o, p = s ? Gt(d, t, r, i, !0) : Tn(d, Q({}, r), i, !0);
|
|
1251
|
+
c._hotUpdate(p), delete i.state.value[d], i._s.delete(d);
|
|
1252
1252
|
}
|
|
1253
1253
|
if (process.env.NODE_ENV !== "production" && xe) {
|
|
1254
|
-
const
|
|
1255
|
-
if (
|
|
1256
|
-
!
|
|
1257
|
-
const p =
|
|
1254
|
+
const d = $t();
|
|
1255
|
+
if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1256
|
+
!c) {
|
|
1257
|
+
const p = d.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
1258
1258
|
f[o] = l;
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
@@ -1271,11 +1271,11 @@ function Ro(e) {
|
|
|
1271
1271
|
const t = Ps(), n = V(new ts(e, t)), o = V(!1);
|
|
1272
1272
|
return Or(async () => {
|
|
1273
1273
|
var r, s;
|
|
1274
|
-
const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(),
|
|
1275
|
-
if (!i && !
|
|
1274
|
+
const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
|
|
1275
|
+
if (!i && !c)
|
|
1276
1276
|
return;
|
|
1277
|
-
const
|
|
1278
|
-
e.addDoctype(
|
|
1277
|
+
const u = await e.getMeta(i);
|
|
1278
|
+
e.addDoctype(u), n.value.setup(u), i && (c ? await n.value.getRecord(u, c) : await n.value.getRecords(u)), n.value.runAction(u, "LOAD", c ? [c] : void 0), o.value = !0;
|
|
1279
1279
|
}), { stonecrop: n, isReady: o };
|
|
1280
1280
|
}
|
|
1281
1281
|
const Ds = class yt {
|
|
@@ -1318,7 +1318,7 @@ function At(e, t) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
const Ge = () => {
|
|
1320
1320
|
}, Y = Array.isArray;
|
|
1321
|
-
function
|
|
1321
|
+
function S(e) {
|
|
1322
1322
|
const t = Array.from(arguments).slice(1);
|
|
1323
1323
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
1324
1324
|
}
|
|
@@ -1345,7 +1345,7 @@ function Ve(e) {
|
|
|
1345
1345
|
try {
|
|
1346
1346
|
return decodeURIComponent("" + e);
|
|
1347
1347
|
} catch {
|
|
1348
|
-
process.env.NODE_ENV !== "production" &&
|
|
1348
|
+
process.env.NODE_ENV !== "production" && S(`Error decoding "${e}". Using original value`);
|
|
1349
1349
|
}
|
|
1350
1350
|
return "" + e;
|
|
1351
1351
|
}
|
|
@@ -1353,8 +1353,8 @@ const zs = /\/$/, Js = (e) => e.replace(zs, "");
|
|
|
1353
1353
|
function Tt(e, t, n = "/") {
|
|
1354
1354
|
let o, r = {}, s = "", a = "";
|
|
1355
1355
|
const i = t.indexOf("#");
|
|
1356
|
-
let
|
|
1357
|
-
return i <
|
|
1356
|
+
let c = t.indexOf("?");
|
|
1357
|
+
return i < c && i >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = Qs(o ?? t, n), {
|
|
1358
1358
|
fullPath: o + (s && "?") + s + a,
|
|
1359
1359
|
path: o,
|
|
1360
1360
|
query: r,
|
|
@@ -1393,7 +1393,7 @@ function Qs(e, t) {
|
|
|
1393
1393
|
if (e.startsWith("/"))
|
|
1394
1394
|
return e;
|
|
1395
1395
|
if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
|
|
1396
|
-
return
|
|
1396
|
+
return S(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
|
|
1397
1397
|
if (!e)
|
|
1398
1398
|
return t;
|
|
1399
1399
|
const n = t.split("/"), o = e.split("/"), r = o[o.length - 1];
|
|
@@ -1460,16 +1460,16 @@ function na(e) {
|
|
|
1460
1460
|
try {
|
|
1461
1461
|
const s = document.querySelector(e.el);
|
|
1462
1462
|
if (o && s) {
|
|
1463
|
-
|
|
1463
|
+
S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
1466
|
} catch {
|
|
1467
|
-
|
|
1467
|
+
S(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
|
|
1468
1468
|
return;
|
|
1469
1469
|
}
|
|
1470
1470
|
const r = typeof n == "string" ? o ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
|
|
1471
1471
|
if (!r) {
|
|
1472
|
-
process.env.NODE_ENV !== "production" &&
|
|
1472
|
+
process.env.NODE_ENV !== "production" && S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
|
1473
1473
|
return;
|
|
1474
1474
|
}
|
|
1475
1475
|
t = ta(r, e);
|
|
@@ -1500,32 +1500,32 @@ function Fo(e, t) {
|
|
|
1500
1500
|
function aa(e, t, n, o) {
|
|
1501
1501
|
let r = [], s = [], a = null;
|
|
1502
1502
|
const i = ({ state: p }) => {
|
|
1503
|
-
const f = Fo(e, location),
|
|
1504
|
-
let
|
|
1503
|
+
const f = Fo(e, location), m = n.value, b = t.value;
|
|
1504
|
+
let x = 0;
|
|
1505
1505
|
if (p) {
|
|
1506
|
-
if (n.value = f, t.value = p, a && a ===
|
|
1506
|
+
if (n.value = f, t.value = p, a && a === m) {
|
|
1507
1507
|
a = null;
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
|
-
|
|
1510
|
+
x = b ? p.position - b.position : 0;
|
|
1511
1511
|
} else
|
|
1512
1512
|
o(f);
|
|
1513
|
-
r.forEach((
|
|
1514
|
-
|
|
1515
|
-
delta:
|
|
1513
|
+
r.forEach((_) => {
|
|
1514
|
+
_(n.value, m, {
|
|
1515
|
+
delta: x,
|
|
1516
1516
|
type: et.pop,
|
|
1517
|
-
direction:
|
|
1517
|
+
direction: x ? x > 0 ? qe.forward : qe.back : qe.unknown
|
|
1518
1518
|
});
|
|
1519
1519
|
});
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1521
|
+
function c() {
|
|
1522
1522
|
a = n.value;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function u(p) {
|
|
1525
1525
|
r.push(p);
|
|
1526
1526
|
const f = () => {
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1527
|
+
const m = r.indexOf(p);
|
|
1528
|
+
m > -1 && r.splice(m, 1);
|
|
1529
1529
|
};
|
|
1530
1530
|
return s.push(f), f;
|
|
1531
1531
|
}
|
|
@@ -1533,7 +1533,7 @@ function aa(e, t, n, o) {
|
|
|
1533
1533
|
const { history: p } = window;
|
|
1534
1534
|
p.state && p.replaceState(A({}, p.state, { scroll: Ot() }), "");
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function d() {
|
|
1537
1537
|
for (const p of s)
|
|
1538
1538
|
p();
|
|
1539
1539
|
s = [], window.removeEventListener("popstate", i), window.removeEventListener("beforeunload", l);
|
|
@@ -1541,9 +1541,9 @@ function aa(e, t, n, o) {
|
|
|
1541
1541
|
return window.addEventListener("popstate", i), window.addEventListener("beforeunload", l, {
|
|
1542
1542
|
passive: !0
|
|
1543
1543
|
}), {
|
|
1544
|
-
pauseListeners:
|
|
1545
|
-
listen:
|
|
1546
|
-
destroy:
|
|
1544
|
+
pauseListeners: c,
|
|
1545
|
+
listen: u,
|
|
1546
|
+
destroy: d
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
1549
|
function Mn(e, t, n, o = !1, r = !1) {
|
|
@@ -1571,25 +1571,25 @@ function ia(e) {
|
|
|
1571
1571
|
// scrollBehavior to be triggered without a saved position
|
|
1572
1572
|
scroll: null
|
|
1573
1573
|
}, !0);
|
|
1574
|
-
function s(
|
|
1575
|
-
const
|
|
1574
|
+
function s(c, u, l) {
|
|
1575
|
+
const d = e.indexOf("#"), p = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + c : sa() + e + c;
|
|
1576
1576
|
try {
|
|
1577
|
-
t[l ? "replaceState" : "pushState"](
|
|
1577
|
+
t[l ? "replaceState" : "pushState"](u, "", p), r.value = u;
|
|
1578
1578
|
} catch (f) {
|
|
1579
|
-
process.env.NODE_ENV !== "production" ?
|
|
1579
|
+
process.env.NODE_ENV !== "production" ? S("Error with push/replace State", f) : console.error(f), n[l ? "replace" : "assign"](p);
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
function a(
|
|
1582
|
+
function a(c, u) {
|
|
1583
1583
|
const l = A({}, t.state, Mn(
|
|
1584
1584
|
r.value.back,
|
|
1585
1585
|
// keep back and forward entries but override current position
|
|
1586
|
-
|
|
1586
|
+
c,
|
|
1587
1587
|
r.value.forward,
|
|
1588
1588
|
!0
|
|
1589
|
-
),
|
|
1590
|
-
s(
|
|
1589
|
+
), u, { position: r.value.position });
|
|
1590
|
+
s(c, l, !0), o.value = c;
|
|
1591
1591
|
}
|
|
1592
|
-
function i(
|
|
1592
|
+
function i(c, u) {
|
|
1593
1593
|
const l = A(
|
|
1594
1594
|
{},
|
|
1595
1595
|
// use current history state to gracefully handle a wrong call to
|
|
@@ -1598,17 +1598,17 @@ function ia(e) {
|
|
|
1598
1598
|
r.value,
|
|
1599
1599
|
t.state,
|
|
1600
1600
|
{
|
|
1601
|
-
forward:
|
|
1601
|
+
forward: c,
|
|
1602
1602
|
scroll: Ot()
|
|
1603
1603
|
}
|
|
1604
1604
|
);
|
|
1605
|
-
process.env.NODE_ENV !== "production" && !t.state &&
|
|
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:
|
|
1606
1606
|
|
|
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(l.current, l, !0);
|
|
1610
|
-
const
|
|
1611
|
-
s(
|
|
1610
|
+
const d = A({}, Mn(o.value, c, null), { position: l.position + 1 }, u);
|
|
1611
|
+
s(c, d, !1), o.value = c;
|
|
1612
1612
|
}
|
|
1613
1613
|
return {
|
|
1614
1614
|
location: o,
|
|
@@ -1702,75 +1702,75 @@ function ha(e, t) {
|
|
|
1702
1702
|
const n = A({}, pa, t), o = [];
|
|
1703
1703
|
let r = n.start ? "^" : "";
|
|
1704
1704
|
const s = [];
|
|
1705
|
-
for (const
|
|
1706
|
-
const l =
|
|
1705
|
+
for (const u of e) {
|
|
1706
|
+
const l = u.length ? [] : [
|
|
1707
1707
|
90
|
|
1708
1708
|
/* PathScore.Root */
|
|
1709
1709
|
];
|
|
1710
|
-
n.strict && !
|
|
1711
|
-
for (let
|
|
1712
|
-
const p =
|
|
1710
|
+
n.strict && !u.length && (r += "/");
|
|
1711
|
+
for (let d = 0; d < u.length; d++) {
|
|
1712
|
+
const p = u[d];
|
|
1713
1713
|
let f = 40 + (n.sensitive ? 0.25 : 0);
|
|
1714
1714
|
if (p.type === 0)
|
|
1715
|
-
|
|
1715
|
+
d || (r += "/"), r += p.value.replace(fa, "\\$&"), f += 40;
|
|
1716
1716
|
else if (p.type === 1) {
|
|
1717
|
-
const { value:
|
|
1717
|
+
const { value: m, repeatable: b, optional: x, regexp: _ } = p;
|
|
1718
1718
|
s.push({
|
|
1719
|
-
name:
|
|
1720
|
-
repeatable:
|
|
1721
|
-
optional:
|
|
1719
|
+
name: m,
|
|
1720
|
+
repeatable: b,
|
|
1721
|
+
optional: x
|
|
1722
1722
|
});
|
|
1723
|
-
const O =
|
|
1723
|
+
const O = _ || Un;
|
|
1724
1724
|
if (O !== Un) {
|
|
1725
1725
|
f += 10;
|
|
1726
1726
|
try {
|
|
1727
1727
|
new RegExp(`(${O})`);
|
|
1728
1728
|
} catch (U) {
|
|
1729
|
-
throw new Error(`Invalid custom RegExp for param "${
|
|
1729
|
+
throw new Error(`Invalid custom RegExp for param "${m}" (${O}): ` + U.message);
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
let P =
|
|
1733
|
-
|
|
1732
|
+
let P = b ? `((?:${O})(?:/(?:${O}))*)` : `(${O})`;
|
|
1733
|
+
d || (P = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
1734
1734
|
// or /:p?-:p2
|
|
1735
|
-
|
|
1735
|
+
x && u.length < 2 ? `(?:/${P})` : "/" + P), x && (P += "?"), r += P, f += 20, x && (f += -8), b && (f += -20), O === ".*" && (f += -50);
|
|
1736
1736
|
}
|
|
1737
1737
|
l.push(f);
|
|
1738
1738
|
}
|
|
1739
1739
|
o.push(l);
|
|
1740
1740
|
}
|
|
1741
1741
|
if (n.strict && n.end) {
|
|
1742
|
-
const
|
|
1743
|
-
o[
|
|
1742
|
+
const u = o.length - 1;
|
|
1743
|
+
o[u][o[u].length - 1] += 0.7000000000000001;
|
|
1744
1744
|
}
|
|
1745
1745
|
n.strict || (r += "/?"), n.end ? r += "$" : n.strict && (r += "(?:/|$)");
|
|
1746
1746
|
const a = new RegExp(r, n.sensitive ? "" : "i");
|
|
1747
|
-
function i(
|
|
1748
|
-
const l =
|
|
1747
|
+
function i(u) {
|
|
1748
|
+
const l = u.match(a), d = {};
|
|
1749
1749
|
if (!l)
|
|
1750
1750
|
return null;
|
|
1751
1751
|
for (let p = 1; p < l.length; p++) {
|
|
1752
|
-
const f = l[p] || "",
|
|
1753
|
-
|
|
1752
|
+
const f = l[p] || "", m = s[p - 1];
|
|
1753
|
+
d[m.name] = f && m.repeatable ? f.split("/") : f;
|
|
1754
1754
|
}
|
|
1755
|
-
return
|
|
1755
|
+
return d;
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
let l = "",
|
|
1757
|
+
function c(u) {
|
|
1758
|
+
let l = "", d = !1;
|
|
1759
1759
|
for (const p of e) {
|
|
1760
|
-
(!
|
|
1760
|
+
(!d || !l.endsWith("/")) && (l += "/"), d = !1;
|
|
1761
1761
|
for (const f of p)
|
|
1762
1762
|
if (f.type === 0)
|
|
1763
1763
|
l += f.value;
|
|
1764
1764
|
else if (f.type === 1) {
|
|
1765
|
-
const { value:
|
|
1766
|
-
if (Y(
|
|
1767
|
-
throw new Error(`Provided param "${
|
|
1768
|
-
const O = Y(
|
|
1765
|
+
const { value: m, repeatable: b, optional: x } = f, _ = m in u ? u[m] : "";
|
|
1766
|
+
if (Y(_) && !b)
|
|
1767
|
+
throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
|
|
1768
|
+
const O = Y(_) ? _.join("/") : _;
|
|
1769
1769
|
if (!O)
|
|
1770
|
-
if (
|
|
1771
|
-
p.length < 2 && (l.endsWith("/") ? l = l.slice(0, -1) :
|
|
1770
|
+
if (x)
|
|
1771
|
+
p.length < 2 && (l.endsWith("/") ? l = l.slice(0, -1) : d = !0);
|
|
1772
1772
|
else
|
|
1773
|
-
throw new Error(`Missing required param "${
|
|
1773
|
+
throw new Error(`Missing required param "${m}"`);
|
|
1774
1774
|
l += O;
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
@@ -1781,7 +1781,7 @@ function ha(e, t) {
|
|
|
1781
1781
|
score: o,
|
|
1782
1782
|
keys: s,
|
|
1783
1783
|
parse: i,
|
|
1784
|
-
stringify:
|
|
1784
|
+
stringify: c
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
1787
|
function ma(e, t) {
|
|
@@ -1827,7 +1827,7 @@ function ya(e) {
|
|
|
1827
1827
|
if (!e.startsWith("/"))
|
|
1828
1828
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
1829
1829
|
function t(f) {
|
|
1830
|
-
throw new Error(`ERR (${n})/"${
|
|
1830
|
+
throw new Error(`ERR (${n})/"${u}": ${f}`);
|
|
1831
1831
|
}
|
|
1832
1832
|
let n = 0, o = n;
|
|
1833
1833
|
const r = [];
|
|
@@ -1835,56 +1835,56 @@ function ya(e) {
|
|
|
1835
1835
|
function a() {
|
|
1836
1836
|
s && r.push(s), s = [];
|
|
1837
1837
|
}
|
|
1838
|
-
let i = 0,
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1838
|
+
let i = 0, c, u = "", l = "";
|
|
1839
|
+
function d() {
|
|
1840
|
+
u && (n === 0 ? s.push({
|
|
1841
1841
|
type: 0,
|
|
1842
|
-
value:
|
|
1843
|
-
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (
|
|
1842
|
+
value: u
|
|
1843
|
+
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (c === "*" || c === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), s.push({
|
|
1844
1844
|
type: 1,
|
|
1845
|
-
value:
|
|
1845
|
+
value: u,
|
|
1846
1846
|
regexp: l,
|
|
1847
|
-
repeatable:
|
|
1848
|
-
optional:
|
|
1849
|
-
})) : t("Invalid state to consume buffer"),
|
|
1847
|
+
repeatable: c === "*" || c === "+",
|
|
1848
|
+
optional: c === "*" || c === "?"
|
|
1849
|
+
})) : t("Invalid state to consume buffer"), u = "");
|
|
1850
1850
|
}
|
|
1851
1851
|
function p() {
|
|
1852
|
-
|
|
1852
|
+
u += c;
|
|
1853
1853
|
}
|
|
1854
1854
|
for (; i < e.length; ) {
|
|
1855
|
-
if (
|
|
1855
|
+
if (c = e[i++], c === "\\" && n !== 2) {
|
|
1856
1856
|
o = n, n = 4;
|
|
1857
1857
|
continue;
|
|
1858
1858
|
}
|
|
1859
1859
|
switch (n) {
|
|
1860
1860
|
case 0:
|
|
1861
|
-
|
|
1861
|
+
c === "/" ? (u && d(), a()) : c === ":" ? (d(), n = 1) : p();
|
|
1862
1862
|
break;
|
|
1863
1863
|
case 4:
|
|
1864
1864
|
p(), n = o;
|
|
1865
1865
|
break;
|
|
1866
1866
|
case 1:
|
|
1867
|
-
|
|
1867
|
+
c === "(" ? n = 2 : ga.test(c) ? p() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && i--);
|
|
1868
1868
|
break;
|
|
1869
1869
|
case 2:
|
|
1870
|
-
|
|
1870
|
+
c === ")" ? l[l.length - 1] == "\\" ? l = l.slice(0, -1) + c : n = 3 : l += c;
|
|
1871
1871
|
break;
|
|
1872
1872
|
case 3:
|
|
1873
|
-
|
|
1873
|
+
d(), n = 0, c !== "*" && c !== "?" && c !== "+" && i--, l = "";
|
|
1874
1874
|
break;
|
|
1875
1875
|
default:
|
|
1876
1876
|
t("Unknown state");
|
|
1877
1877
|
break;
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
-
return n === 2 && t(`Unfinished custom RegExp for param "${
|
|
1880
|
+
return n === 2 && t(`Unfinished custom RegExp for param "${u}"`), d(), a(), r;
|
|
1881
1881
|
}
|
|
1882
1882
|
function ba(e, t, n) {
|
|
1883
1883
|
const o = ha(ya(e.path), n);
|
|
1884
1884
|
if (process.env.NODE_ENV !== "production") {
|
|
1885
1885
|
const s = /* @__PURE__ */ new Set();
|
|
1886
1886
|
for (const a of o.keys)
|
|
1887
|
-
s.has(a.name) &&
|
|
1887
|
+
s.has(a.name) && S(`Found duplicated params with name "${a.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(a.name);
|
|
1888
1888
|
}
|
|
1889
1889
|
const r = A(o, {
|
|
1890
1890
|
record: e,
|
|
@@ -1898,45 +1898,45 @@ function ba(e, t, n) {
|
|
|
1898
1898
|
function wa(e, t) {
|
|
1899
1899
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
1900
1900
|
t = qn({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
1901
|
-
function r(
|
|
1902
|
-
return o.get(
|
|
1903
|
-
}
|
|
1904
|
-
function s(
|
|
1905
|
-
const
|
|
1906
|
-
process.env.NODE_ENV !== "production" && $a(
|
|
1907
|
-
const
|
|
1908
|
-
if ("alias" in
|
|
1909
|
-
const U = typeof
|
|
1901
|
+
function r(d) {
|
|
1902
|
+
return o.get(d);
|
|
1903
|
+
}
|
|
1904
|
+
function s(d, p, f) {
|
|
1905
|
+
const m = !f, b = Fn(d);
|
|
1906
|
+
process.env.NODE_ENV !== "production" && $a(b, p), b.aliasOf = f && f.record;
|
|
1907
|
+
const x = qn(t, d), _ = [b];
|
|
1908
|
+
if ("alias" in d) {
|
|
1909
|
+
const U = typeof d.alias == "string" ? [d.alias] : d.alias;
|
|
1910
1910
|
for (const q of U)
|
|
1911
|
-
|
|
1911
|
+
_.push(
|
|
1912
1912
|
// we need to normalize again to ensure the `mods` property
|
|
1913
1913
|
// being non enumerable
|
|
1914
|
-
Fn(A({},
|
|
1914
|
+
Fn(A({}, b, {
|
|
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
|
-
components: f ? f.record.components :
|
|
1917
|
+
components: f ? f.record.components : b.components,
|
|
1918
1918
|
path: q,
|
|
1919
1919
|
// we might be the child of an alias
|
|
1920
|
-
aliasOf: f ? f.record :
|
|
1920
|
+
aliasOf: f ? f.record : b
|
|
1921
1921
|
// the aliases are always of the same kind as the original since they
|
|
1922
1922
|
// are defined on the same record
|
|
1923
1923
|
}))
|
|
1924
1924
|
);
|
|
1925
1925
|
}
|
|
1926
1926
|
let O, P;
|
|
1927
|
-
for (const U of
|
|
1927
|
+
for (const U of _) {
|
|
1928
1928
|
const { path: q } = U;
|
|
1929
1929
|
if (p && q[0] !== "/") {
|
|
1930
|
-
const ee = p.record.path,
|
|
1931
|
-
U.path = p.record.path + (q &&
|
|
1930
|
+
const ee = p.record.path, k = ee[ee.length - 1] === "/" ? "" : "/";
|
|
1931
|
+
U.path = p.record.path + (q && k + q);
|
|
1932
1932
|
}
|
|
1933
1933
|
if (process.env.NODE_ENV !== "production" && U.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 = ba(U, p,
|
|
1937
|
-
const ee =
|
|
1938
|
-
for (let
|
|
1939
|
-
s(ee[
|
|
1936
|
+
if (O = ba(U, p, x), process.env.NODE_ENV !== "production" && p && q[0] === "/" && Oa(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && ka(f, O)) : (P = P || O, P !== O && P.alias.push(O), m && d.name && !Gn(O) && a(d.name)), zo(O) && c(O), b.children) {
|
|
1937
|
+
const ee = b.children;
|
|
1938
|
+
for (let k = 0; k < ee.length; k++)
|
|
1939
|
+
s(ee[k], O, f && f.children[k]);
|
|
1940
1940
|
}
|
|
1941
1941
|
f = f || O;
|
|
1942
1942
|
}
|
|
@@ -1944,34 +1944,34 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1944
1944
|
a(P);
|
|
1945
1945
|
} : Ge;
|
|
1946
1946
|
}
|
|
1947
|
-
function a(
|
|
1948
|
-
if (Go(
|
|
1949
|
-
const p = o.get(
|
|
1950
|
-
p && (o.delete(
|
|
1947
|
+
function a(d) {
|
|
1948
|
+
if (Go(d)) {
|
|
1949
|
+
const p = o.get(d);
|
|
1950
|
+
p && (o.delete(d), n.splice(n.indexOf(p), 1), p.children.forEach(a), p.alias.forEach(a));
|
|
1951
1951
|
} else {
|
|
1952
|
-
const p = n.indexOf(
|
|
1953
|
-
p > -1 && (n.splice(p, 1),
|
|
1952
|
+
const p = n.indexOf(d);
|
|
1953
|
+
p > -1 && (n.splice(p, 1), d.record.name && o.delete(d.record.name), d.children.forEach(a), d.alias.forEach(a));
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
1956
|
function i() {
|
|
1957
1957
|
return n;
|
|
1958
1958
|
}
|
|
1959
|
-
function d
|
|
1960
|
-
const p = xa(
|
|
1961
|
-
n.splice(p, 0,
|
|
1959
|
+
function c(d) {
|
|
1960
|
+
const p = xa(d, n);
|
|
1961
|
+
n.splice(p, 0, d), d.record.name && !Gn(d) && o.set(d.record.name, d);
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1964
|
-
let f,
|
|
1965
|
-
if ("name" in
|
|
1966
|
-
if (f = o.get(
|
|
1963
|
+
function u(d, p) {
|
|
1964
|
+
let f, m = {}, b, x;
|
|
1965
|
+
if ("name" in d && d.name) {
|
|
1966
|
+
if (f = o.get(d.name), !f)
|
|
1967
1967
|
throw Re(1, {
|
|
1968
|
-
location:
|
|
1968
|
+
location: d
|
|
1969
1969
|
});
|
|
1970
1970
|
if (process.env.NODE_ENV !== "production") {
|
|
1971
|
-
const P = Object.keys(
|
|
1972
|
-
P.length &&
|
|
1971
|
+
const P = Object.keys(d.params || {}).filter((U) => !f.keys.find((q) => q.name === U));
|
|
1972
|
+
P.length && S(`Discarded invalid param(s) "${P.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
|
+
x = f.record.name, m = A(
|
|
1975
1975
|
// paramsFromLocation is a new object
|
|
1976
1976
|
Hn(
|
|
1977
1977
|
p.params,
|
|
@@ -1981,37 +1981,37 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
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
|
-
|
|
1985
|
-
),
|
|
1986
|
-
} else if (
|
|
1987
|
-
|
|
1984
|
+
d.params && Hn(d.params, f.keys.map((P) => P.name))
|
|
1985
|
+
), b = f.stringify(m);
|
|
1986
|
+
} else if (d.path != null)
|
|
1987
|
+
b = d.path, process.env.NODE_ENV !== "production" && !b.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${b}". Unless you directly called \`matcher.resolve("${b}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((P) => P.re.test(b)), f && (m = f.parse(b), x = f.record.name);
|
|
1988
1988
|
else {
|
|
1989
1989
|
if (f = p.name ? o.get(p.name) : n.find((P) => P.re.test(p.path)), !f)
|
|
1990
1990
|
throw Re(1, {
|
|
1991
|
-
location:
|
|
1991
|
+
location: d,
|
|
1992
1992
|
currentLocation: p
|
|
1993
1993
|
});
|
|
1994
|
-
|
|
1994
|
+
x = f.record.name, m = A({}, p.params, d.params), b = f.stringify(m);
|
|
1995
1995
|
}
|
|
1996
|
-
const
|
|
1996
|
+
const _ = [];
|
|
1997
1997
|
let O = f;
|
|
1998
1998
|
for (; O; )
|
|
1999
|
-
|
|
1999
|
+
_.unshift(O.record), O = O.parent;
|
|
2000
2000
|
return {
|
|
2001
|
-
name:
|
|
2002
|
-
path:
|
|
2003
|
-
params:
|
|
2004
|
-
matched:
|
|
2005
|
-
meta: Ea(
|
|
2001
|
+
name: x,
|
|
2002
|
+
path: b,
|
|
2003
|
+
params: m,
|
|
2004
|
+
matched: _,
|
|
2005
|
+
meta: Ea(_)
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
|
-
e.forEach((
|
|
2008
|
+
e.forEach((d) => s(d));
|
|
2009
2009
|
function l() {
|
|
2010
2010
|
n.length = 0, o.clear();
|
|
2011
2011
|
}
|
|
2012
2012
|
return {
|
|
2013
2013
|
addRoute: s,
|
|
2014
|
-
resolve:
|
|
2014
|
+
resolve: u,
|
|
2015
2015
|
removeRoute: a,
|
|
2016
2016
|
clearRoutes: l,
|
|
2017
2017
|
getRoutes: i,
|
|
@@ -2078,18 +2078,18 @@ function Kt(e, t) {
|
|
|
2078
2078
|
function ka(e, t) {
|
|
2079
2079
|
for (const n of e.keys)
|
|
2080
2080
|
if (!n.optional && !t.keys.find(Kt.bind(null, n)))
|
|
2081
|
-
return
|
|
2081
|
+
return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2082
2082
|
for (const n of t.keys)
|
|
2083
2083
|
if (!n.optional && !e.keys.find(Kt.bind(null, n)))
|
|
2084
|
-
return
|
|
2084
|
+
return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2085
2085
|
}
|
|
2086
2086
|
function $a(e, t) {
|
|
2087
|
-
t && t.record.name && !e.name && !e.path &&
|
|
2087
|
+
t && t.record.name && !e.name && !e.path && S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
|
|
2088
2088
|
}
|
|
2089
2089
|
function Oa(e, t) {
|
|
2090
2090
|
for (const n of t.keys)
|
|
2091
2091
|
if (!e.keys.find(Kt.bind(null, n)))
|
|
2092
|
-
return
|
|
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
2094
|
function xa(e, t) {
|
|
2095
2095
|
let n = 0, o = t.length;
|
|
@@ -2098,7 +2098,7 @@ function xa(e, t) {
|
|
|
2098
2098
|
qo(e, t[s]) < 0 ? o = s : n = s + 1;
|
|
2099
2099
|
}
|
|
2100
2100
|
const r = Sa(e);
|
|
2101
|
-
return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 &&
|
|
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
2103
|
function Sa(e) {
|
|
2104
2104
|
let t = e;
|
|
@@ -2117,8 +2117,8 @@ function Na(e) {
|
|
|
2117
2117
|
for (let o = 0; o < n.length; ++o) {
|
|
2118
2118
|
const r = n[o].replace(Mo, " "), s = r.indexOf("="), a = Ve(s < 0 ? r : r.slice(0, s)), i = s < 0 ? null : Ve(r.slice(s + 1));
|
|
2119
2119
|
if (a in t) {
|
|
2120
|
-
let
|
|
2121
|
-
Y(
|
|
2120
|
+
let c = t[a];
|
|
2121
|
+
Y(c) || (c = t[a] = [c]), c.push(i);
|
|
2122
2122
|
} else
|
|
2123
2123
|
t[a] = i;
|
|
2124
2124
|
}
|
|
@@ -2167,66 +2167,66 @@ function Ue() {
|
|
|
2167
2167
|
function ve(e, t, n, o, r, s = (a) => a()) {
|
|
2168
2168
|
const a = o && // name is defined if record is because of the function overload
|
|
2169
2169
|
(o.enterCallbacks[r] = o.enterCallbacks[r] || []);
|
|
2170
|
-
return () => new Promise((i,
|
|
2171
|
-
const
|
|
2172
|
-
p === !1 ?
|
|
2170
|
+
return () => new Promise((i, c) => {
|
|
2171
|
+
const u = (p) => {
|
|
2172
|
+
p === !1 ? c(Re(4, {
|
|
2173
2173
|
from: n,
|
|
2174
2174
|
to: t
|
|
2175
|
-
})) : p instanceof Error ?
|
|
2175
|
+
})) : p instanceof Error ? c(p) : kt(p) ? c(Re(2, {
|
|
2176
2176
|
from: t,
|
|
2177
2177
|
to: p
|
|
2178
2178
|
})) : (a && // since enterCallbackArray is truthy, both record and name also are
|
|
2179
2179
|
o.enterCallbacks[r] === a && typeof p == "function" && a.push(p), i());
|
|
2180
|
-
}, l = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Pa(
|
|
2181
|
-
let
|
|
2182
|
-
if (e.length < 3 && (
|
|
2180
|
+
}, l = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Pa(u, t, n) : u));
|
|
2181
|
+
let d = Promise.resolve(l);
|
|
2182
|
+
if (e.length < 3 && (d = d.then(u)), process.env.NODE_ENV !== "production" && e.length > 2) {
|
|
2183
2183
|
const p = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
|
2184
2184
|
${e.toString()}
|
|
2185
2185
|
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
|
|
2186
2186
|
if (typeof l == "object" && "then" in l)
|
|
2187
|
-
|
|
2188
|
-
else if (l !== void 0 && !
|
|
2189
|
-
|
|
2187
|
+
d = d.then((f) => u._called ? f : (S(p), Promise.reject(new Error("Invalid navigation guard"))));
|
|
2188
|
+
else if (l !== void 0 && !u._called) {
|
|
2189
|
+
S(p), c(new Error("Invalid navigation guard"));
|
|
2190
2190
|
return;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
|
|
2193
|
+
d.catch((p) => c(p));
|
|
2194
2194
|
});
|
|
2195
2195
|
}
|
|
2196
2196
|
function Pa(e, t, n) {
|
|
2197
2197
|
let o = 0;
|
|
2198
2198
|
return function() {
|
|
2199
|
-
o++ === 1 &&
|
|
2199
|
+
o++ === 1 && S(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
|
|
2200
2200
|
};
|
|
2201
2201
|
}
|
|
2202
2202
|
function Vt(e, t, n, o, r = (s) => s()) {
|
|
2203
2203
|
const s = [];
|
|
2204
2204
|
for (const a of e) {
|
|
2205
|
-
process.env.NODE_ENV !== "production" && !a.components && !a.children.length &&
|
|
2205
|
+
process.env.NODE_ENV !== "production" && !a.components && !a.children.length && S(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);
|
|
2206
2206
|
for (const i in a.components) {
|
|
2207
|
-
let
|
|
2207
|
+
let c = a.components[i];
|
|
2208
2208
|
if (process.env.NODE_ENV !== "production") {
|
|
2209
|
-
if (!
|
|
2210
|
-
throw
|
|
2211
|
-
if ("then" in
|
|
2212
|
-
|
|
2213
|
-
const
|
|
2214
|
-
|
|
2215
|
-
} else
|
|
2216
|
-
!
|
|
2209
|
+
if (!c || typeof c != "object" && typeof c != "function")
|
|
2210
|
+
throw S(`Component "${i}" in record with path "${a.path}" is not a valid component. Received "${String(c)}".`), new Error("Invalid route component");
|
|
2211
|
+
if ("then" in c) {
|
|
2212
|
+
S(`Component "${i}" in record with path "${a.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
|
|
2213
|
+
const u = c;
|
|
2214
|
+
c = () => u;
|
|
2215
|
+
} else c.__asyncLoader && // warn only once per component
|
|
2216
|
+
!c.__warnedDefineAsync && (c.__warnedDefineAsync = !0, S(`Component "${i}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
|
2217
2217
|
}
|
|
2218
2218
|
if (!(t !== "beforeRouteEnter" && !a.instances[i]))
|
|
2219
|
-
if (jo(
|
|
2220
|
-
const
|
|
2221
|
-
|
|
2219
|
+
if (jo(c)) {
|
|
2220
|
+
const u = (c.__vccOpts || c)[t];
|
|
2221
|
+
u && s.push(ve(u, n, o, a, i, r));
|
|
2222
2222
|
} else {
|
|
2223
|
-
let
|
|
2224
|
-
process.env.NODE_ENV !== "production" && !("catch" in
|
|
2223
|
+
let u = c();
|
|
2224
|
+
process.env.NODE_ENV !== "production" && !("catch" in u) && (S(`Component "${i}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), u = Promise.resolve(u)), s.push(() => u.then((l) => {
|
|
2225
2225
|
if (!l)
|
|
2226
2226
|
throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
|
|
2227
|
-
const
|
|
2228
|
-
a.mods[i] = l, a.components[i] =
|
|
2229
|
-
const p = (
|
|
2227
|
+
const d = As(l) ? l.default : l;
|
|
2228
|
+
a.mods[i] = l, a.components[i] = d;
|
|
2229
|
+
const p = (d.__vccOpts || d)[t];
|
|
2230
2230
|
return p && ve(p, n, o, a, i, r)();
|
|
2231
2231
|
}));
|
|
2232
2232
|
}
|
|
@@ -2238,47 +2238,47 @@ function Kn(e) {
|
|
|
2238
2238
|
const t = ae(fn), n = ae(Jo);
|
|
2239
2239
|
let o = !1, r = null;
|
|
2240
2240
|
const s = L(() => {
|
|
2241
|
-
const l =
|
|
2242
|
-
return process.env.NODE_ENV !== "production" && (!o || l !== r) && (kt(l) || (o ?
|
|
2241
|
+
const l = $(e.to);
|
|
2242
|
+
return process.env.NODE_ENV !== "production" && (!o || l !== r) && (kt(l) || (o ? S(`Invalid value for prop "to" in useLink()
|
|
2243
2243
|
- to:`, l, `
|
|
2244
2244
|
- previous to:`, r, `
|
|
2245
|
-
- props:`, e) :
|
|
2245
|
+
- props:`, e) : S(`Invalid value for prop "to" in useLink()
|
|
2246
2246
|
- to:`, l, `
|
|
2247
2247
|
- props:`, e)), r = l, o = !0), t.resolve(l);
|
|
2248
2248
|
}), a = L(() => {
|
|
2249
|
-
const { matched: l } = s.value, { length:
|
|
2249
|
+
const { matched: l } = s.value, { length: d } = l, p = l[d - 1], f = n.matched;
|
|
2250
2250
|
if (!p || !f.length)
|
|
2251
2251
|
return -1;
|
|
2252
|
-
const
|
|
2253
|
-
if (
|
|
2254
|
-
return
|
|
2255
|
-
const
|
|
2252
|
+
const m = f.findIndex(we.bind(null, p));
|
|
2253
|
+
if (m > -1)
|
|
2254
|
+
return m;
|
|
2255
|
+
const b = Yn(l[d - 2]);
|
|
2256
2256
|
return (
|
|
2257
2257
|
// we are dealing with nested routes
|
|
2258
|
-
|
|
2258
|
+
d > 1 && // if the parent and matched route have the same path, this link is
|
|
2259
2259
|
// referring to the empty child. Or we currently are on a different
|
|
2260
2260
|
// child of the same parent
|
|
2261
|
-
Yn(p) ===
|
|
2262
|
-
f[f.length - 1].path !==
|
|
2261
|
+
Yn(p) === b && // avoid comparing the child with its parent
|
|
2262
|
+
f[f.length - 1].path !== b ? f.findIndex(we.bind(null, l[d - 2])) : m
|
|
2263
2263
|
);
|
|
2264
|
-
}), i = L(() => a.value > -1 && Va(n.params, s.value.params)),
|
|
2265
|
-
function
|
|
2266
|
-
return Ta(l) ? t[
|
|
2267
|
-
|
|
2264
|
+
}), i = L(() => a.value > -1 && Va(n.params, s.value.params)), c = L(() => a.value > -1 && a.value === n.matched.length - 1 && Ho(n.params, s.value.params));
|
|
2265
|
+
function u(l = {}) {
|
|
2266
|
+
return Ta(l) ? t[$(e.replace) ? "replace" : "push"](
|
|
2267
|
+
$(e.to)
|
|
2268
2268
|
// avoid uncaught errors are they are logged anyway
|
|
2269
2269
|
).catch(Ge) : Promise.resolve();
|
|
2270
2270
|
}
|
|
2271
2271
|
if (process.env.NODE_ENV !== "production" && ce) {
|
|
2272
2272
|
const l = $t();
|
|
2273
2273
|
if (l) {
|
|
2274
|
-
const
|
|
2274
|
+
const d = {
|
|
2275
2275
|
route: s.value,
|
|
2276
2276
|
isActive: i.value,
|
|
2277
|
-
isExactActive:
|
|
2277
|
+
isExactActive: c.value,
|
|
2278
2278
|
error: null
|
|
2279
2279
|
};
|
|
2280
|
-
l.__vrl_devtools = l.__vrl_devtools || [], l.__vrl_devtools.push(
|
|
2281
|
-
|
|
2280
|
+
l.__vrl_devtools = l.__vrl_devtools || [], l.__vrl_devtools.push(d), Ir(() => {
|
|
2281
|
+
d.route = s.value, d.isActive = i.value, d.isExactActive = c.value, d.error = kt($(e.to)) ? null : 'Invalid "to" value';
|
|
2282
2282
|
}, { flush: "post" });
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
@@ -2286,8 +2286,8 @@ function Kn(e) {
|
|
|
2286
2286
|
route: s,
|
|
2287
2287
|
href: L(() => s.value.href),
|
|
2288
2288
|
isActive: i,
|
|
2289
|
-
isExactActive:
|
|
2290
|
-
navigate:
|
|
2289
|
+
isExactActive: c,
|
|
2290
|
+
navigate: u
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
2293
|
const Da = /* @__PURE__ */ Z({
|
|
@@ -2373,44 +2373,44 @@ const Qn = (e, t, n) => e ?? t ?? n, Ra = /* @__PURE__ */ Z({
|
|
|
2373
2373
|
setup(e, { attrs: t, slots: n }) {
|
|
2374
2374
|
process.env.NODE_ENV !== "production" && La();
|
|
2375
2375
|
const o = ae(Yt), r = L(() => e.route || o.value), s = ae(Jn, 0), a = L(() => {
|
|
2376
|
-
let
|
|
2376
|
+
let u = $(s);
|
|
2377
2377
|
const { matched: l } = r.value;
|
|
2378
|
-
let
|
|
2379
|
-
for (; (
|
|
2380
|
-
|
|
2381
|
-
return
|
|
2378
|
+
let d;
|
|
2379
|
+
for (; (d = l[u]) && !d.components; )
|
|
2380
|
+
u++;
|
|
2381
|
+
return u;
|
|
2382
2382
|
}), i = L(() => r.value.matched[a.value]);
|
|
2383
2383
|
dt(Jn, L(() => a.value + 1)), dt(Ca, i), dt(Yt, r);
|
|
2384
|
-
const
|
|
2385
|
-
return J(() => [
|
|
2386
|
-
l && (l.instances[
|
|
2384
|
+
const c = V();
|
|
2385
|
+
return J(() => [c.value, i.value, e.name], ([u, l, d], [p, f, m]) => {
|
|
2386
|
+
l && (l.instances[d] = u, f && f !== l && u && u === p && (l.leaveGuards.size || (l.leaveGuards = f.leaveGuards), l.updateGuards.size || (l.updateGuards = f.updateGuards))), u && l && // if there is no instance but to and from are the same this might be
|
|
2387
2387
|
// the first visit
|
|
2388
|
-
(!f || !we(l, f) || !p) && (l.enterCallbacks[
|
|
2388
|
+
(!f || !we(l, f) || !p) && (l.enterCallbacks[d] || []).forEach((b) => b(u));
|
|
2389
2389
|
}, { flush: "post" }), () => {
|
|
2390
|
-
const
|
|
2390
|
+
const u = r.value, l = e.name, d = i.value, p = d && d.components[l];
|
|
2391
2391
|
if (!p)
|
|
2392
|
-
return Xn(n.default, { Component: p, route:
|
|
2393
|
-
const f =
|
|
2394
|
-
onVnodeUnmounted: (
|
|
2395
|
-
|
|
2392
|
+
return Xn(n.default, { Component: p, route: u });
|
|
2393
|
+
const f = d.props[l], m = f ? f === !0 ? u.params : typeof f == "function" ? f(u) : f : null, b = wo(p, A({}, m, t, {
|
|
2394
|
+
onVnodeUnmounted: (x) => {
|
|
2395
|
+
x.component.isUnmounted && (d.instances[l] = null);
|
|
2396
2396
|
},
|
|
2397
|
-
ref:
|
|
2397
|
+
ref: c
|
|
2398
2398
|
}));
|
|
2399
|
-
if (process.env.NODE_ENV !== "production" && ce &&
|
|
2400
|
-
const
|
|
2399
|
+
if (process.env.NODE_ENV !== "production" && ce && b.ref) {
|
|
2400
|
+
const x = {
|
|
2401
2401
|
depth: a.value,
|
|
2402
|
-
name:
|
|
2403
|
-
path:
|
|
2404
|
-
meta:
|
|
2402
|
+
name: d.name,
|
|
2403
|
+
path: d.path,
|
|
2404
|
+
meta: d.meta
|
|
2405
2405
|
};
|
|
2406
|
-
(Y(
|
|
2407
|
-
|
|
2406
|
+
(Y(b.ref) ? b.ref.map((_) => _.i) : [b.ref.i]).forEach((_) => {
|
|
2407
|
+
_.__vrv_devtools = x;
|
|
2408
2408
|
});
|
|
2409
2409
|
}
|
|
2410
2410
|
return (
|
|
2411
2411
|
// pass the vnode to the slot as a prop.
|
|
2412
2412
|
// h and <component :is="..."> both accept vnodes
|
|
2413
|
-
Xn(n.default, { Component:
|
|
2413
|
+
Xn(n.default, { Component: b, route: u }) || b
|
|
2414
2414
|
);
|
|
2415
2415
|
};
|
|
2416
2416
|
}
|
|
@@ -2426,7 +2426,7 @@ function La() {
|
|
|
2426
2426
|
const e = $t(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
|
2427
2427
|
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
|
2428
2428
|
const o = t === "KeepAlive" ? "keep-alive" : "transition";
|
|
2429
|
-
|
|
2429
|
+
S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
2430
2430
|
Use slot props instead:
|
|
2431
2431
|
|
|
2432
2432
|
<router-view v-slot="{ Component }">
|
|
@@ -2473,16 +2473,16 @@ function Ba(e, t, n) {
|
|
|
2473
2473
|
componentStateTypes: ["Routing"],
|
|
2474
2474
|
app: e
|
|
2475
2475
|
}, (r) => {
|
|
2476
|
-
typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((l,
|
|
2476
|
+
typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((l, d) => {
|
|
2477
2477
|
l.instanceData && l.instanceData.state.push({
|
|
2478
2478
|
type: "Routing",
|
|
2479
2479
|
key: "$route",
|
|
2480
2480
|
editable: !1,
|
|
2481
2481
|
value: We(t.currentRoute.value, "Current Route")
|
|
2482
2482
|
});
|
|
2483
|
-
}), r.on.visitComponentTree(({ treeNode: l, componentInstance:
|
|
2484
|
-
if (
|
|
2485
|
-
const p =
|
|
2483
|
+
}), r.on.visitComponentTree(({ treeNode: l, componentInstance: d }) => {
|
|
2484
|
+
if (d.__vrv_devtools) {
|
|
2485
|
+
const p = d.__vrv_devtools;
|
|
2486
2486
|
l.tags.push({
|
|
2487
2487
|
label: (p.name ? `${p.name.toString()}: ` : "") + p.path,
|
|
2488
2488
|
textColor: 0,
|
|
@@ -2490,41 +2490,41 @@ function Ba(e, t, n) {
|
|
|
2490
2490
|
backgroundColor: Ko
|
|
2491
2491
|
});
|
|
2492
2492
|
}
|
|
2493
|
-
Y(
|
|
2494
|
-
let f = p.route.path,
|
|
2495
|
-
p.error ? (f = p.error,
|
|
2493
|
+
Y(d.__vrl_devtools) && (d.__devtoolsApi = r, d.__vrl_devtools.forEach((p) => {
|
|
2494
|
+
let f = p.route.path, m = Xo, b = "", x = 0;
|
|
2495
|
+
p.error ? (f = p.error, m = Ga, x = qa) : p.isExactActive ? (m = Qo, b = "This is exactly active") : p.isActive && (m = Yo, b = "This link is active"), l.tags.push({
|
|
2496
2496
|
label: f,
|
|
2497
|
-
textColor:
|
|
2498
|
-
tooltip:
|
|
2499
|
-
backgroundColor:
|
|
2497
|
+
textColor: x,
|
|
2498
|
+
tooltip: b,
|
|
2499
|
+
backgroundColor: m
|
|
2500
2500
|
});
|
|
2501
2501
|
}));
|
|
2502
2502
|
}), J(t.currentRoute, () => {
|
|
2503
|
-
|
|
2503
|
+
c(), r.notifyComponentUpdate(), r.sendInspectorTree(i), r.sendInspectorState(i);
|
|
2504
2504
|
});
|
|
2505
2505
|
const s = "router:navigations:" + o;
|
|
2506
2506
|
r.addTimelineLayer({
|
|
2507
2507
|
id: s,
|
|
2508
2508
|
label: `Router${o ? " " + o : ""} Navigations`,
|
|
2509
2509
|
color: 4237508
|
|
2510
|
-
}), t.onError((l,
|
|
2510
|
+
}), t.onError((l, d) => {
|
|
2511
2511
|
r.addTimelineEvent({
|
|
2512
2512
|
layerId: s,
|
|
2513
2513
|
event: {
|
|
2514
2514
|
title: "Error during Navigation",
|
|
2515
|
-
subtitle:
|
|
2515
|
+
subtitle: d.fullPath,
|
|
2516
2516
|
logType: "error",
|
|
2517
2517
|
time: r.now(),
|
|
2518
2518
|
data: { error: l },
|
|
2519
|
-
groupId:
|
|
2519
|
+
groupId: d.meta.__navigationId
|
|
2520
2520
|
}
|
|
2521
2521
|
});
|
|
2522
2522
|
});
|
|
2523
2523
|
let a = 0;
|
|
2524
|
-
t.beforeEach((l,
|
|
2524
|
+
t.beforeEach((l, d) => {
|
|
2525
2525
|
const p = {
|
|
2526
2526
|
guard: lt("beforeEach"),
|
|
2527
|
-
from: We(
|
|
2527
|
+
from: We(d, "Current Location during this navigation"),
|
|
2528
2528
|
to: We(l, "Target location")
|
|
2529
2529
|
};
|
|
2530
2530
|
Object.defineProperty(l.meta, "__navigationId", {
|
|
@@ -2539,7 +2539,7 @@ function Ba(e, t, n) {
|
|
|
2539
2539
|
groupId: l.meta.__navigationId
|
|
2540
2540
|
}
|
|
2541
2541
|
});
|
|
2542
|
-
}), t.afterEach((l,
|
|
2542
|
+
}), t.afterEach((l, d, p) => {
|
|
2543
2543
|
const f = {
|
|
2544
2544
|
guard: lt("afterEach")
|
|
2545
2545
|
};
|
|
@@ -2551,7 +2551,7 @@ function Ba(e, t, n) {
|
|
|
2551
2551
|
tooltip: "Navigation Failure",
|
|
2552
2552
|
value: p
|
|
2553
2553
|
}
|
|
2554
|
-
}, f.status = lt("❌")) : f.status = lt("✅"), f.from = We(
|
|
2554
|
+
}, f.status = lt("❌")) : f.status = lt("✅"), f.from = We(d, "Current Location during this navigation"), f.to = We(l, "Target location"), r.addTimelineEvent({
|
|
2555
2555
|
layerId: s,
|
|
2556
2556
|
event: {
|
|
2557
2557
|
title: "End of navigation",
|
|
@@ -2570,26 +2570,26 @@ function Ba(e, t, n) {
|
|
|
2570
2570
|
icon: "book",
|
|
2571
2571
|
treeFilterPlaceholder: "Search routes"
|
|
2572
2572
|
});
|
|
2573
|
-
function
|
|
2574
|
-
if (!
|
|
2573
|
+
function c() {
|
|
2574
|
+
if (!u)
|
|
2575
2575
|
return;
|
|
2576
|
-
const l =
|
|
2577
|
-
let
|
|
2576
|
+
const l = u;
|
|
2577
|
+
let d = n.getRoutes().filter((p) => !p.parent || // these routes have a parent with no component which will not appear in the view
|
|
2578
2578
|
// therefore we still need to include them
|
|
2579
2579
|
!p.parent.record.components);
|
|
2580
|
-
|
|
2580
|
+
d.forEach(tr), l.filter && (d = d.filter((p) => (
|
|
2581
2581
|
// save matches state based on the payload
|
|
2582
2582
|
Qt(p, l.filter.toLowerCase())
|
|
2583
|
-
))),
|
|
2583
|
+
))), d.forEach((p) => er(p, t.currentRoute.value)), l.rootNodes = d.map(Zo);
|
|
2584
2584
|
}
|
|
2585
|
-
let
|
|
2585
|
+
let u;
|
|
2586
2586
|
r.on.getInspectorTree((l) => {
|
|
2587
|
-
|
|
2587
|
+
u = l, l.app === e && l.inspectorId === i && c();
|
|
2588
2588
|
}), r.on.getInspectorState((l) => {
|
|
2589
2589
|
if (l.app === e && l.inspectorId === i) {
|
|
2590
|
-
const
|
|
2591
|
-
|
|
2592
|
-
options: Wa(
|
|
2590
|
+
const d = n.getRoutes().find((p) => p.record.__vd_id === l.nodeId);
|
|
2591
|
+
d && (l.state = {
|
|
2592
|
+
options: Wa(d)
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
2595
|
}), r.sendInspectorTree(i), r.sendInspectorState(i);
|
|
@@ -2708,61 +2708,61 @@ function Ya(e) {
|
|
|
2708
2708
|
const t = wa(e.routes, e), n = e.parseQuery || Na, o = e.stringifyQuery || zn, 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 = Ue(), a = Ue(), i = Ue(),
|
|
2712
|
-
let
|
|
2711
|
+
const s = Ue(), a = Ue(), i = Ue(), c = xr(me);
|
|
2712
|
+
let u = me;
|
|
2713
2713
|
ce && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2714
|
-
const l = At.bind(null, (
|
|
2714
|
+
const l = At.bind(null, (h) => "" + h), d = At.bind(null, qs), p = (
|
|
2715
2715
|
// @ts-expect-error: intentionally avoid the type check
|
|
2716
2716
|
At.bind(null, Ve)
|
|
2717
2717
|
);
|
|
2718
|
-
function f(
|
|
2719
|
-
let v,
|
|
2720
|
-
return Go(
|
|
2718
|
+
function f(h, g) {
|
|
2719
|
+
let v, E;
|
|
2720
|
+
return Go(h) ? (v = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !v && S(`Parent route "${String(h)}" not found when adding child route`, g), E = g) : E = h, t.addRoute(E, v);
|
|
2721
2721
|
}
|
|
2722
|
-
function h
|
|
2723
|
-
const g = t.getRecordMatcher(
|
|
2724
|
-
g ? t.removeRoute(g) : process.env.NODE_ENV !== "production" &&
|
|
2722
|
+
function m(h) {
|
|
2723
|
+
const g = t.getRecordMatcher(h);
|
|
2724
|
+
g ? t.removeRoute(g) : process.env.NODE_ENV !== "production" && S(`Cannot remove non-existent route "${String(h)}"`);
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2727
|
-
return t.getRoutes().map((
|
|
2726
|
+
function b() {
|
|
2727
|
+
return t.getRoutes().map((h) => h.record);
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2730
|
-
return !!t.getRecordMatcher(
|
|
2729
|
+
function x(h) {
|
|
2730
|
+
return !!t.getRecordMatcher(h);
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2733
|
-
if (g = A({}, g ||
|
|
2734
|
-
const
|
|
2735
|
-
return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ?
|
|
2732
|
+
function _(h, g) {
|
|
2733
|
+
if (g = A({}, g || c.value), typeof h == "string") {
|
|
2734
|
+
const N = Tt(n, h, g.path), M = t.resolve({ path: N.path }, g), _e = r.createHref(N.fullPath);
|
|
2735
|
+
return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? S(`Location "${h}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) : M.matched.length || S(`No match found for location with path "${h}"`)), A(N, M, {
|
|
2736
2736
|
params: p(M.params),
|
|
2737
|
-
hash: Ve(
|
|
2737
|
+
hash: Ve(N.hash),
|
|
2738
2738
|
redirectedFrom: void 0,
|
|
2739
2739
|
href: _e
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
2742
|
-
if (process.env.NODE_ENV !== "production" && !kt(
|
|
2743
|
-
return
|
|
2744
|
-
- Location:`,
|
|
2742
|
+
if (process.env.NODE_ENV !== "production" && !kt(h))
|
|
2743
|
+
return S(`router.resolve() was passed an invalid location. This will fail in production.
|
|
2744
|
+
- Location:`, h), _({});
|
|
2745
2745
|
let v;
|
|
2746
|
-
if (
|
|
2747
|
-
process.env.NODE_ENV !== "production" && "params" in
|
|
2748
|
-
Object.keys(
|
|
2749
|
-
path: Tt(n,
|
|
2746
|
+
if (h.path != null)
|
|
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.`), v = A({}, h, {
|
|
2749
|
+
path: Tt(n, h.path, g.path).path
|
|
2750
2750
|
});
|
|
2751
2751
|
else {
|
|
2752
|
-
const
|
|
2753
|
-
for (const M in
|
|
2754
|
-
|
|
2755
|
-
v = A({},
|
|
2756
|
-
params:
|
|
2757
|
-
}), g.params =
|
|
2752
|
+
const N = A({}, h.params);
|
|
2753
|
+
for (const M in N)
|
|
2754
|
+
N[M] == null && delete N[M];
|
|
2755
|
+
v = A({}, h, {
|
|
2756
|
+
params: d(N)
|
|
2757
|
+
}), g.params = d(g.params);
|
|
2758
2758
|
}
|
|
2759
|
-
const
|
|
2760
|
-
process.env.NODE_ENV !== "production" && D && !D.startsWith("#") &&
|
|
2761
|
-
const B = Ks(o, A({},
|
|
2759
|
+
const E = t.resolve(v, g), D = h.hash || "";
|
|
2760
|
+
process.env.NODE_ENV !== "production" && D && !D.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${D}" with "#${D}".`), E.params = l(p(E.params));
|
|
2761
|
+
const B = Ks(o, A({}, h, {
|
|
2762
2762
|
hash: Hs(D),
|
|
2763
|
-
path:
|
|
2763
|
+
path: E.path
|
|
2764
2764
|
})), C = r.createHref(B);
|
|
2765
|
-
return process.env.NODE_ENV !== "production" && (C.startsWith("//") ?
|
|
2765
|
+
return process.env.NODE_ENV !== "production" && (C.startsWith("//") ? S(`Location "${h}" resolved to "${C}". A resolved location cannot start with multiple slashes.`) : E.matched.length || S(`No match found for location with path "${h.path != null ? h.path : h}"`)), A({
|
|
2766
2766
|
fullPath: B,
|
|
2767
2767
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
2768
2768
|
// hash
|
|
@@ -2773,55 +2773,55 @@ function Ya(e) {
|
|
|
2773
2773
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
2774
2774
|
// use their own type anyway.
|
|
2775
2775
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
2776
|
-
o === zn ? Ia(
|
|
2776
|
+
o === zn ? Ia(h.query) : h.query || {}
|
|
2777
2777
|
)
|
|
2778
|
-
},
|
|
2778
|
+
}, E, {
|
|
2779
2779
|
redirectedFrom: void 0,
|
|
2780
2780
|
href: C
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
|
-
function O(
|
|
2784
|
-
return typeof
|
|
2783
|
+
function O(h) {
|
|
2784
|
+
return typeof h == "string" ? Tt(n, h, c.value.path) : A({}, h);
|
|
2785
2785
|
}
|
|
2786
|
-
function P(
|
|
2787
|
-
if (
|
|
2786
|
+
function P(h, g) {
|
|
2787
|
+
if (u !== h)
|
|
2788
2788
|
return Re(8, {
|
|
2789
2789
|
from: g,
|
|
2790
|
-
to:
|
|
2790
|
+
to: h
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
|
-
function U(
|
|
2794
|
-
return
|
|
2793
|
+
function U(h) {
|
|
2794
|
+
return k(h);
|
|
2795
2795
|
}
|
|
2796
|
-
function q(
|
|
2797
|
-
return U(A(O(
|
|
2796
|
+
function q(h) {
|
|
2797
|
+
return U(A(O(h), { replace: !0 }));
|
|
2798
2798
|
}
|
|
2799
|
-
function ee(
|
|
2800
|
-
const g =
|
|
2799
|
+
function ee(h) {
|
|
2800
|
+
const g = h.matched[h.matched.length - 1];
|
|
2801
2801
|
if (g && g.redirect) {
|
|
2802
2802
|
const { redirect: v } = g;
|
|
2803
|
-
let
|
|
2804
|
-
if (typeof
|
|
2803
|
+
let E = typeof v == "function" ? v(h) : v;
|
|
2804
|
+
if (typeof E == "string" && (E = E.includes("?") || E.includes("#") ? E = O(E) : (
|
|
2805
2805
|
// force empty params
|
|
2806
|
-
{ path:
|
|
2807
|
-
),
|
|
2808
|
-
throw
|
|
2809
|
-
${JSON.stringify(
|
|
2810
|
-
when navigating to "${
|
|
2806
|
+
{ path: E }
|
|
2807
|
+
), E.params = {}), process.env.NODE_ENV !== "production" && E.path == null && !("name" in E))
|
|
2808
|
+
throw S(`Invalid redirect found:
|
|
2809
|
+
${JSON.stringify(E, null, 2)}
|
|
2810
|
+
when navigating to "${h.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
2811
2811
|
return A({
|
|
2812
|
-
query:
|
|
2813
|
-
hash:
|
|
2812
|
+
query: h.query,
|
|
2813
|
+
hash: h.hash,
|
|
2814
2814
|
// avoid transferring params if the redirect has a path
|
|
2815
|
-
params:
|
|
2816
|
-
},
|
|
2815
|
+
params: E.path != null ? {} : h.params
|
|
2816
|
+
}, E);
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2820
|
-
const v =
|
|
2821
|
-
if (
|
|
2822
|
-
return
|
|
2823
|
-
A(O(
|
|
2824
|
-
state: typeof
|
|
2819
|
+
function k(h, g) {
|
|
2820
|
+
const v = u = _(h), E = c.value, D = h.state, B = h.force, C = h.replace === !0, N = ee(v);
|
|
2821
|
+
if (N)
|
|
2822
|
+
return k(
|
|
2823
|
+
A(O(N), {
|
|
2824
|
+
state: typeof N == "object" ? A({}, D, N.state) : D,
|
|
2825
2825
|
force: B,
|
|
2826
2826
|
replace: C
|
|
2827
2827
|
}),
|
|
@@ -2831,16 +2831,16 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2831
2831
|
const M = v;
|
|
2832
2832
|
M.redirectedFrom = g;
|
|
2833
2833
|
let _e;
|
|
2834
|
-
return !B && Rn(o,
|
|
2835
|
-
|
|
2836
|
-
|
|
2834
|
+
return !B && Rn(o, E, v) && (_e = Re(16, { to: M, from: E }), Sn(
|
|
2835
|
+
E,
|
|
2836
|
+
E,
|
|
2837
2837
|
// this is a push, the only way for it to be triggered from a
|
|
2838
2838
|
// history.listen is with a redirect, which makes it become a push
|
|
2839
2839
|
!0,
|
|
2840
2840
|
// This cannot be the first navigation because the initial location
|
|
2841
2841
|
// cannot be manually navigated to
|
|
2842
2842
|
!1
|
|
2843
|
-
)), (_e ? Promise.resolve(_e) :
|
|
2843
|
+
)), (_e ? Promise.resolve(_e) : y(M, E)).catch((z) => le(z) ? (
|
|
2844
2844
|
// navigation redirects still mark the router as ready
|
|
2845
2845
|
le(
|
|
2846
2846
|
z,
|
|
@@ -2849,7 +2849,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2849
2849
|
) ? z : Nt(z)
|
|
2850
2850
|
) : (
|
|
2851
2851
|
// reject any unknown error
|
|
2852
|
-
F(z, M,
|
|
2852
|
+
F(z, M, E)
|
|
2853
2853
|
)).then((z) => {
|
|
2854
2854
|
if (z) {
|
|
2855
2855
|
if (le(
|
|
@@ -2858,13 +2858,13 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2858
2858
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2859
2859
|
))
|
|
2860
2860
|
return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
|
2861
|
-
Rn(o,
|
|
2861
|
+
Rn(o, _(z.to), M) && // and we have done it a couple of times
|
|
2862
2862
|
g && // @ts-expect-error: added only in dev
|
|
2863
2863
|
(g._count = g._count ? (
|
|
2864
2864
|
// @ts-expect-error
|
|
2865
2865
|
g._count + 1
|
|
2866
|
-
) : 1) > 30 ? (
|
|
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"))) :
|
|
2866
|
+
) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${M.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"))) : k(
|
|
2868
2868
|
// keep options
|
|
2869
2869
|
A({
|
|
2870
2870
|
// preserve an existing replacement but allow the redirect to override it
|
|
@@ -2877,83 +2877,83 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2877
2877
|
g || M
|
|
2878
2878
|
);
|
|
2879
2879
|
} else
|
|
2880
|
-
z = K(M,
|
|
2881
|
-
return R(M,
|
|
2880
|
+
z = K(M, E, !0, C, D);
|
|
2881
|
+
return R(M, E, z), z;
|
|
2882
2882
|
});
|
|
2883
2883
|
}
|
|
2884
|
-
function oe(
|
|
2885
|
-
const v = P(
|
|
2884
|
+
function oe(h, g) {
|
|
2885
|
+
const v = P(h, g);
|
|
2886
2886
|
return v ? Promise.reject(v) : Promise.resolve();
|
|
2887
2887
|
}
|
|
2888
|
-
function w(
|
|
2888
|
+
function w(h) {
|
|
2889
2889
|
const g = st.values().next().value;
|
|
2890
|
-
return g && typeof g.runWithContext == "function" ? g.runWithContext(
|
|
2890
|
+
return g && typeof g.runWithContext == "function" ? g.runWithContext(h) : h();
|
|
2891
2891
|
}
|
|
2892
|
-
function
|
|
2892
|
+
function y(h, g) {
|
|
2893
2893
|
let v;
|
|
2894
|
-
const [
|
|
2895
|
-
v = Vt(
|
|
2896
|
-
for (const
|
|
2897
|
-
|
|
2898
|
-
v.push(ve(M,
|
|
2894
|
+
const [E, D, B] = Qa(h, g);
|
|
2895
|
+
v = Vt(E.reverse(), "beforeRouteLeave", h, g);
|
|
2896
|
+
for (const N of E)
|
|
2897
|
+
N.leaveGuards.forEach((M) => {
|
|
2898
|
+
v.push(ve(M, h, g));
|
|
2899
2899
|
});
|
|
2900
|
-
const C = oe.bind(null,
|
|
2900
|
+
const C = oe.bind(null, h, g);
|
|
2901
2901
|
return v.push(C), Pe(v).then(() => {
|
|
2902
2902
|
v = [];
|
|
2903
|
-
for (const
|
|
2904
|
-
v.push(ve(
|
|
2903
|
+
for (const N of s.list())
|
|
2904
|
+
v.push(ve(N, h, g));
|
|
2905
2905
|
return v.push(C), Pe(v);
|
|
2906
2906
|
}).then(() => {
|
|
2907
|
-
v = Vt(D, "beforeRouteUpdate",
|
|
2908
|
-
for (const
|
|
2909
|
-
|
|
2910
|
-
v.push(ve(M,
|
|
2907
|
+
v = Vt(D, "beforeRouteUpdate", h, g);
|
|
2908
|
+
for (const N of D)
|
|
2909
|
+
N.updateGuards.forEach((M) => {
|
|
2910
|
+
v.push(ve(M, h, g));
|
|
2911
2911
|
});
|
|
2912
2912
|
return v.push(C), Pe(v);
|
|
2913
2913
|
}).then(() => {
|
|
2914
2914
|
v = [];
|
|
2915
|
-
for (const
|
|
2916
|
-
if (
|
|
2917
|
-
if (Y(
|
|
2918
|
-
for (const M of
|
|
2919
|
-
v.push(ve(M,
|
|
2915
|
+
for (const N of B)
|
|
2916
|
+
if (N.beforeEnter)
|
|
2917
|
+
if (Y(N.beforeEnter))
|
|
2918
|
+
for (const M of N.beforeEnter)
|
|
2919
|
+
v.push(ve(M, h, g));
|
|
2920
2920
|
else
|
|
2921
|
-
v.push(ve(
|
|
2921
|
+
v.push(ve(N.beforeEnter, h, g));
|
|
2922
2922
|
return v.push(C), Pe(v);
|
|
2923
|
-
}).then(() => (
|
|
2923
|
+
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), v = Vt(B, "beforeRouteEnter", h, g, w), v.push(C), Pe(v))).then(() => {
|
|
2924
2924
|
v = [];
|
|
2925
|
-
for (const
|
|
2926
|
-
v.push(ve(
|
|
2925
|
+
for (const N of a.list())
|
|
2926
|
+
v.push(ve(N, h, g));
|
|
2927
2927
|
return v.push(C), Pe(v);
|
|
2928
|
-
}).catch((
|
|
2929
|
-
|
|
2928
|
+
}).catch((N) => le(
|
|
2929
|
+
N,
|
|
2930
2930
|
8
|
|
2931
2931
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2932
|
-
) ?
|
|
2932
|
+
) ? N : Promise.reject(N));
|
|
2933
2933
|
}
|
|
2934
|
-
function R(
|
|
2935
|
-
i.list().forEach((
|
|
2934
|
+
function R(h, g, v) {
|
|
2935
|
+
i.list().forEach((E) => w(() => E(h, g, v)));
|
|
2936
2936
|
}
|
|
2937
|
-
function K(
|
|
2938
|
-
const B = P(
|
|
2937
|
+
function K(h, g, v, E, D) {
|
|
2938
|
+
const B = P(h, g);
|
|
2939
2939
|
if (B)
|
|
2940
2940
|
return B;
|
|
2941
|
-
const C = g === me,
|
|
2942
|
-
v && (
|
|
2943
|
-
scroll: C &&
|
|
2944
|
-
}, D)) : r.push(
|
|
2941
|
+
const C = g === me, N = ce ? history.state : {};
|
|
2942
|
+
v && (E || C ? r.replace(h.fullPath, A({
|
|
2943
|
+
scroll: C && N && N.scroll
|
|
2944
|
+
}, D)) : r.push(h.fullPath, D)), c.value = h, Sn(h, g, v, C), Nt();
|
|
2945
2945
|
}
|
|
2946
2946
|
let te;
|
|
2947
2947
|
function Le() {
|
|
2948
|
-
te || (te = r.listen((
|
|
2949
|
-
const
|
|
2948
|
+
te || (te = r.listen((h, g, v) => {
|
|
2949
|
+
const E = _(h), D = ee(E);
|
|
2950
2950
|
if (D) {
|
|
2951
|
-
|
|
2951
|
+
k(A(D, { replace: !0 }), E).catch(Ge);
|
|
2952
2952
|
return;
|
|
2953
2953
|
}
|
|
2954
|
-
|
|
2955
|
-
const B =
|
|
2956
|
-
ce && oa(Ln(B.fullPath, v.delta), Ot()),
|
|
2954
|
+
u = E;
|
|
2955
|
+
const B = c.value;
|
|
2956
|
+
ce && oa(Ln(B.fullPath, v.delta), Ot()), y(E, B).catch((C) => le(
|
|
2957
2957
|
C,
|
|
2958
2958
|
12
|
|
2959
2959
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -2961,20 +2961,20 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2961
2961
|
C,
|
|
2962
2962
|
2
|
|
2963
2963
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2964
|
-
) ? (
|
|
2964
|
+
) ? (k(
|
|
2965
2965
|
C.to,
|
|
2966
|
-
|
|
2966
|
+
E
|
|
2967
2967
|
// avoid an uncaught rejection, let push call triggerError
|
|
2968
|
-
).then((
|
|
2968
|
+
).then((N) => {
|
|
2969
2969
|
le(
|
|
2970
|
-
|
|
2970
|
+
N,
|
|
2971
2971
|
20
|
|
2972
2972
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2973
2973
|
) && !v.delta && v.type === et.pop && r.go(-1, !1);
|
|
2974
|
-
}).catch(Ge), Promise.reject()) : (v.delta && r.go(-v.delta, !1), F(C,
|
|
2974
|
+
}).catch(Ge), Promise.reject()) : (v.delta && r.go(-v.delta, !1), F(C, E, B))).then((C) => {
|
|
2975
2975
|
C = C || K(
|
|
2976
2976
|
// after navigation, all matched components are resolved
|
|
2977
|
-
|
|
2977
|
+
E,
|
|
2978
2978
|
B,
|
|
2979
2979
|
!1
|
|
2980
2980
|
), C && (v.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
@@ -2987,42 +2987,42 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2987
2987
|
C,
|
|
2988
2988
|
20
|
|
2989
2989
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2990
|
-
) && r.go(-1, !1)), R(
|
|
2990
|
+
) && r.go(-1, !1)), R(E, B, C);
|
|
2991
2991
|
}).catch(Ge);
|
|
2992
2992
|
}));
|
|
2993
2993
|
}
|
|
2994
2994
|
let Me = Ue(), rt = Ue(), re;
|
|
2995
|
-
function F(
|
|
2996
|
-
Nt(
|
|
2997
|
-
const
|
|
2998
|
-
return
|
|
2995
|
+
function F(h, g, v) {
|
|
2996
|
+
Nt(h);
|
|
2997
|
+
const E = rt.list();
|
|
2998
|
+
return E.length ? E.forEach((D) => D(h, g, v)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
|
|
2999
2999
|
}
|
|
3000
3000
|
function kr() {
|
|
3001
|
-
return re &&
|
|
3002
|
-
Me.add([
|
|
3001
|
+
return re && c.value !== me ? Promise.resolve() : new Promise((h, g) => {
|
|
3002
|
+
Me.add([h, g]);
|
|
3003
3003
|
});
|
|
3004
3004
|
}
|
|
3005
|
-
function Nt(
|
|
3006
|
-
return re || (re = !
|
|
3005
|
+
function Nt(h) {
|
|
3006
|
+
return re || (re = !h, Le(), Me.list().forEach(([g, v]) => h ? v(h) : g()), Me.reset()), h;
|
|
3007
3007
|
}
|
|
3008
|
-
function Sn(
|
|
3008
|
+
function Sn(h, g, v, E) {
|
|
3009
3009
|
const { scrollBehavior: D } = e;
|
|
3010
3010
|
if (!ce || !D)
|
|
3011
3011
|
return Promise.resolve();
|
|
3012
|
-
const B = !v && ra(Ln(
|
|
3013
|
-
return Qe().then(() => D(
|
|
3012
|
+
const B = !v && ra(Ln(h.fullPath, 0)) || (E || !v) && history.state && history.state.scroll || null;
|
|
3013
|
+
return Qe().then(() => D(h, g, B)).then((C) => C && na(C)).catch((C) => F(C, h, g));
|
|
3014
3014
|
}
|
|
3015
|
-
const It = (
|
|
3015
|
+
const It = (h) => r.go(h);
|
|
3016
3016
|
let Ct;
|
|
3017
3017
|
const st = /* @__PURE__ */ new Set(), $r = {
|
|
3018
|
-
currentRoute:
|
|
3018
|
+
currentRoute: c,
|
|
3019
3019
|
listening: !0,
|
|
3020
3020
|
addRoute: f,
|
|
3021
|
-
removeRoute:
|
|
3021
|
+
removeRoute: m,
|
|
3022
3022
|
clearRoutes: t.clearRoutes,
|
|
3023
|
-
hasRoute:
|
|
3024
|
-
getRoutes:
|
|
3025
|
-
resolve:
|
|
3023
|
+
hasRoute: x,
|
|
3024
|
+
getRoutes: b,
|
|
3025
|
+
resolve: _,
|
|
3026
3026
|
options: e,
|
|
3027
3027
|
push: U,
|
|
3028
3028
|
replace: q,
|
|
@@ -3034,31 +3034,31 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3034
3034
|
afterEach: i.add,
|
|
3035
3035
|
onError: rt.add,
|
|
3036
3036
|
isReady: kr,
|
|
3037
|
-
install(
|
|
3037
|
+
install(h) {
|
|
3038
3038
|
const g = this;
|
|
3039
|
-
|
|
3039
|
+
h.component("RouterLink", Aa), h.component("RouterView", ja), h.config.globalProperties.$router = g, Object.defineProperty(h.config.globalProperties, "$route", {
|
|
3040
3040
|
enumerable: !0,
|
|
3041
|
-
get: () =>
|
|
3041
|
+
get: () => $(c)
|
|
3042
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
|
-
!Ct &&
|
|
3045
|
-
process.env.NODE_ENV !== "production" &&
|
|
3044
|
+
!Ct && c.value === me && (Ct = !0, U(r.location).catch((D) => {
|
|
3045
|
+
process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", D);
|
|
3046
3046
|
}));
|
|
3047
3047
|
const v = {};
|
|
3048
3048
|
for (const D in me)
|
|
3049
3049
|
Object.defineProperty(v, D, {
|
|
3050
|
-
get: () =>
|
|
3050
|
+
get: () => c.value[D],
|
|
3051
3051
|
enumerable: !0
|
|
3052
3052
|
});
|
|
3053
|
-
|
|
3054
|
-
const
|
|
3055
|
-
st.add(
|
|
3056
|
-
st.delete(
|
|
3057
|
-
}, process.env.NODE_ENV !== "production" && ce && Ba(
|
|
3053
|
+
h.provide(fn, g), h.provide(Jo, Sr(v)), h.provide(Yt, c);
|
|
3054
|
+
const E = h.unmount;
|
|
3055
|
+
st.add(h), h.unmount = function() {
|
|
3056
|
+
st.delete(h), st.size < 1 && (u = me, te && te(), te = null, c.value = me, Ct = !1, re = !1), E();
|
|
3057
|
+
}, process.env.NODE_ENV !== "production" && ce && Ba(h, g, t);
|
|
3058
3058
|
}
|
|
3059
3059
|
};
|
|
3060
|
-
function Pe(
|
|
3061
|
-
return
|
|
3060
|
+
function Pe(h) {
|
|
3061
|
+
return h.reduce((g, v) => g.then(() => w(v)), Promise.resolve());
|
|
3062
3062
|
}
|
|
3063
3063
|
return $r;
|
|
3064
3064
|
}
|
|
@@ -3066,9 +3066,9 @@ function Qa(e, t) {
|
|
|
3066
3066
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
3067
3067
|
for (let a = 0; a < s; a++) {
|
|
3068
3068
|
const i = t.matched[a];
|
|
3069
|
-
i && (e.matched.find((
|
|
3070
|
-
const
|
|
3071
|
-
|
|
3069
|
+
i && (e.matched.find((u) => we(u, i)) ? o.push(i) : n.push(i));
|
|
3070
|
+
const c = e.matched[a];
|
|
3071
|
+
c && (t.matched.find((u) => we(u, c)) || r.push(c));
|
|
3072
3072
|
}
|
|
3073
3073
|
return [n, o, r];
|
|
3074
3074
|
}
|
|
@@ -3224,22 +3224,22 @@ function hi(e, t, n) {
|
|
|
3224
3224
|
return new Promise(function(a, i) {
|
|
3225
3225
|
s.oncomplete = function() {
|
|
3226
3226
|
return a();
|
|
3227
|
-
}, s.onerror = function(
|
|
3228
|
-
return i(
|
|
3227
|
+
}, s.onerror = function(u) {
|
|
3228
|
+
return i(u);
|
|
3229
3229
|
};
|
|
3230
|
-
var
|
|
3231
|
-
|
|
3230
|
+
var c = s.objectStore(pe);
|
|
3231
|
+
c.add(r), vn(s);
|
|
3232
3232
|
});
|
|
3233
3233
|
}
|
|
3234
3234
|
function mi(e, t) {
|
|
3235
3235
|
var n = e.transaction(pe, "readonly", St), o = n.objectStore(pe), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
|
|
3236
3236
|
if (o.getAll) {
|
|
3237
3237
|
var a = o.getAll(s);
|
|
3238
|
-
return new Promise(function(
|
|
3238
|
+
return new Promise(function(c, u) {
|
|
3239
3239
|
a.onerror = function(l) {
|
|
3240
|
-
return
|
|
3240
|
+
return u(l);
|
|
3241
3241
|
}, a.onsuccess = function(l) {
|
|
3242
|
-
|
|
3242
|
+
c(l.target.result);
|
|
3243
3243
|
};
|
|
3244
3244
|
});
|
|
3245
3245
|
}
|
|
@@ -3250,13 +3250,13 @@ function mi(e, t) {
|
|
|
3250
3250
|
return o.openCursor();
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
return new Promise(function(
|
|
3253
|
+
return new Promise(function(c, u) {
|
|
3254
3254
|
var l = i();
|
|
3255
|
-
l.onerror = function(
|
|
3256
|
-
return
|
|
3257
|
-
}, l.onsuccess = function(
|
|
3258
|
-
var p =
|
|
3259
|
-
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n),
|
|
3255
|
+
l.onerror = function(d) {
|
|
3256
|
+
return u(d);
|
|
3257
|
+
}, l.onsuccess = function(d) {
|
|
3258
|
+
var p = d.target.result;
|
|
3259
|
+
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n), c(r));
|
|
3260
3260
|
};
|
|
3261
3261
|
});
|
|
3262
3262
|
}
|
|
@@ -3277,10 +3277,10 @@ function gi(e, t) {
|
|
|
3277
3277
|
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(pe, "readonly", St), r = o.objectStore(pe), s = [];
|
|
3278
3278
|
return new Promise(function(a) {
|
|
3279
3279
|
r.openCursor().onsuccess = function(i) {
|
|
3280
|
-
var
|
|
3281
|
-
if (
|
|
3282
|
-
var
|
|
3283
|
-
|
|
3280
|
+
var c = i.target.result;
|
|
3281
|
+
if (c) {
|
|
3282
|
+
var u = c.value;
|
|
3283
|
+
u.time < n ? (s.push(u), c.continue()) : (vn(o), a(s));
|
|
3284
3284
|
} else
|
|
3285
3285
|
a(s);
|
|
3286
3286
|
};
|
|
@@ -3722,16 +3722,16 @@ function nl(e, t) {
|
|
|
3722
3722
|
o[s] = i;
|
|
3723
3723
|
else if (Array.isArray(i))
|
|
3724
3724
|
if (typeof i[0] == "string") {
|
|
3725
|
-
const
|
|
3726
|
-
switch (
|
|
3725
|
+
const c = i[0];
|
|
3726
|
+
switch (c) {
|
|
3727
3727
|
case "Date":
|
|
3728
3728
|
o[s] = new Date(i[1]);
|
|
3729
3729
|
break;
|
|
3730
3730
|
case "Set":
|
|
3731
|
-
const
|
|
3732
|
-
o[s] =
|
|
3731
|
+
const u = /* @__PURE__ */ new Set();
|
|
3732
|
+
o[s] = u;
|
|
3733
3733
|
for (let p = 1; p < i.length; p += 1)
|
|
3734
|
-
|
|
3734
|
+
u.add(r(i[p]));
|
|
3735
3735
|
break;
|
|
3736
3736
|
case "Map":
|
|
3737
3737
|
const l = /* @__PURE__ */ new Map();
|
|
@@ -3749,28 +3749,28 @@ function nl(e, t) {
|
|
|
3749
3749
|
o[s] = BigInt(i[1]);
|
|
3750
3750
|
break;
|
|
3751
3751
|
case "null":
|
|
3752
|
-
const
|
|
3753
|
-
o[s] =
|
|
3752
|
+
const d = /* @__PURE__ */ Object.create(null);
|
|
3753
|
+
o[s] = d;
|
|
3754
3754
|
for (let p = 1; p < i.length; p += 2)
|
|
3755
|
-
|
|
3755
|
+
d[i[p]] = r(i[p + 1]);
|
|
3756
3756
|
break;
|
|
3757
3757
|
default:
|
|
3758
|
-
throw new Error(`Unknown type ${
|
|
3758
|
+
throw new Error(`Unknown type ${c}`);
|
|
3759
3759
|
}
|
|
3760
3760
|
} else {
|
|
3761
|
-
const
|
|
3762
|
-
o[s] =
|
|
3763
|
-
for (let
|
|
3764
|
-
const l = i[
|
|
3765
|
-
l !== fr && (
|
|
3761
|
+
const c = new Array(i.length);
|
|
3762
|
+
o[s] = c;
|
|
3763
|
+
for (let u = 0; u < i.length; u += 1) {
|
|
3764
|
+
const l = i[u];
|
|
3765
|
+
l !== fr && (c[u] = r(l));
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
3768
|
else {
|
|
3769
|
-
const
|
|
3770
|
-
o[s] =
|
|
3771
|
-
for (const
|
|
3772
|
-
const l = i[
|
|
3773
|
-
|
|
3769
|
+
const c = {};
|
|
3770
|
+
o[s] = c;
|
|
3771
|
+
for (const u in i) {
|
|
3772
|
+
const l = i[u];
|
|
3773
|
+
c[u] = r(l);
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
3776
|
return o[s];
|
|
@@ -3779,94 +3779,94 @@ function nl(e, t) {
|
|
|
3779
3779
|
}
|
|
3780
3780
|
function ao(e, t) {
|
|
3781
3781
|
const n = [], o = /* @__PURE__ */ new Map(), r = [];
|
|
3782
|
-
for (const
|
|
3783
|
-
r.push({ key:
|
|
3782
|
+
for (const u in t)
|
|
3783
|
+
r.push({ key: u, fn: t[u] });
|
|
3784
3784
|
const s = [];
|
|
3785
3785
|
let a = 0;
|
|
3786
|
-
function i(
|
|
3787
|
-
if (typeof
|
|
3786
|
+
function i(u) {
|
|
3787
|
+
if (typeof u == "function")
|
|
3788
3788
|
throw new jt("Cannot stringify a function", s);
|
|
3789
|
-
if (o.has(
|
|
3790
|
-
if (
|
|
3791
|
-
if (Number.isNaN(
|
|
3792
|
-
if (
|
|
3793
|
-
if (
|
|
3794
|
-
if (
|
|
3789
|
+
if (o.has(u)) return o.get(u);
|
|
3790
|
+
if (u === void 0) return bn;
|
|
3791
|
+
if (Number.isNaN(u)) return hr;
|
|
3792
|
+
if (u === 1 / 0) return mr;
|
|
3793
|
+
if (u === -1 / 0) return vr;
|
|
3794
|
+
if (u === 0 && 1 / u < 0) return wn;
|
|
3795
3795
|
const l = a++;
|
|
3796
|
-
o.set(
|
|
3796
|
+
o.set(u, l);
|
|
3797
3797
|
for (const { key: p, fn: f } of r) {
|
|
3798
|
-
const
|
|
3799
|
-
if (
|
|
3800
|
-
return n[l] = `["${p}",${i(
|
|
3798
|
+
const m = f(u);
|
|
3799
|
+
if (m)
|
|
3800
|
+
return n[l] = `["${p}",${i(m)}]`, l;
|
|
3801
3801
|
}
|
|
3802
|
-
let
|
|
3803
|
-
if (ro(
|
|
3804
|
-
|
|
3802
|
+
let d = "";
|
|
3803
|
+
if (ro(u))
|
|
3804
|
+
d = Lt(u);
|
|
3805
3805
|
else
|
|
3806
|
-
switch (el(
|
|
3806
|
+
switch (el(u)) {
|
|
3807
3807
|
case "Number":
|
|
3808
3808
|
case "String":
|
|
3809
3809
|
case "Boolean":
|
|
3810
|
-
|
|
3810
|
+
d = `["Object",${Lt(u)}]`;
|
|
3811
3811
|
break;
|
|
3812
3812
|
case "BigInt":
|
|
3813
|
-
|
|
3813
|
+
d = `["BigInt",${u}]`;
|
|
3814
3814
|
break;
|
|
3815
3815
|
case "Date":
|
|
3816
|
-
|
|
3816
|
+
d = `["Date","${isNaN(u.getDate()) ? "" : u.toISOString()}"]`;
|
|
3817
3817
|
break;
|
|
3818
3818
|
case "RegExp":
|
|
3819
|
-
const { source: p, flags: f } =
|
|
3820
|
-
|
|
3819
|
+
const { source: p, flags: f } = u;
|
|
3820
|
+
d = f ? `["RegExp",${Te(p)},"${f}"]` : `["RegExp",${Te(p)}]`;
|
|
3821
3821
|
break;
|
|
3822
3822
|
case "Array":
|
|
3823
|
-
|
|
3824
|
-
for (let
|
|
3825
|
-
|
|
3826
|
-
|
|
3823
|
+
d = "[";
|
|
3824
|
+
for (let m = 0; m < u.length; m += 1)
|
|
3825
|
+
m > 0 && (d += ","), m in u ? (s.push(`[${m}]`), d += i(u[m]), s.pop()) : d += fr;
|
|
3826
|
+
d += "]";
|
|
3827
3827
|
break;
|
|
3828
3828
|
case "Set":
|
|
3829
|
-
|
|
3830
|
-
for (const
|
|
3831
|
-
|
|
3832
|
-
|
|
3829
|
+
d = '["Set"';
|
|
3830
|
+
for (const m of u)
|
|
3831
|
+
d += `,${i(m)}`;
|
|
3832
|
+
d += "]";
|
|
3833
3833
|
break;
|
|
3834
3834
|
case "Map":
|
|
3835
|
-
|
|
3836
|
-
for (const [
|
|
3835
|
+
d = '["Map"';
|
|
3836
|
+
for (const [m, b] of u)
|
|
3837
3837
|
s.push(
|
|
3838
|
-
`.get(${ro(
|
|
3839
|
-
),
|
|
3840
|
-
|
|
3838
|
+
`.get(${ro(m) ? Lt(m) : "..."})`
|
|
3839
|
+
), d += `,${i(m)},${i(b)}`, s.pop();
|
|
3840
|
+
d += "]";
|
|
3841
3841
|
break;
|
|
3842
3842
|
default:
|
|
3843
|
-
if (!Zi(
|
|
3843
|
+
if (!Zi(u))
|
|
3844
3844
|
throw new jt(
|
|
3845
3845
|
"Cannot stringify arbitrary non-POJOs",
|
|
3846
3846
|
s
|
|
3847
3847
|
);
|
|
3848
|
-
if (Object.getOwnPropertySymbols(
|
|
3848
|
+
if (Object.getOwnPropertySymbols(u).length > 0)
|
|
3849
3849
|
throw new jt(
|
|
3850
3850
|
"Cannot stringify POJOs with symbolic keys",
|
|
3851
3851
|
s
|
|
3852
3852
|
);
|
|
3853
|
-
if (Object.getPrototypeOf(
|
|
3854
|
-
|
|
3855
|
-
for (const
|
|
3856
|
-
s.push(`.${
|
|
3857
|
-
|
|
3853
|
+
if (Object.getPrototypeOf(u) === null) {
|
|
3854
|
+
d = '["null"';
|
|
3855
|
+
for (const m in u)
|
|
3856
|
+
s.push(`.${m}`), d += `,${Te(m)},${i(u[m])}`, s.pop();
|
|
3857
|
+
d += "]";
|
|
3858
3858
|
} else {
|
|
3859
|
-
|
|
3860
|
-
let
|
|
3861
|
-
for (const
|
|
3862
|
-
|
|
3863
|
-
|
|
3859
|
+
d = "{";
|
|
3860
|
+
let m = !1;
|
|
3861
|
+
for (const b in u)
|
|
3862
|
+
m && (d += ","), m = !0, s.push(`.${b}`), d += `${Te(b)}:${i(u[b])}`, s.pop();
|
|
3863
|
+
d += "}";
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
|
-
return n[l] =
|
|
3866
|
+
return n[l] = d, l;
|
|
3867
3867
|
}
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3868
|
+
const c = i(e);
|
|
3869
|
+
return c < 0 ? `${c}` : `[${n.join(",")}]`;
|
|
3870
3870
|
}
|
|
3871
3871
|
function Lt(e) {
|
|
3872
3872
|
const t = typeof e;
|
|
@@ -3883,15 +3883,15 @@ function ol(e, t, { initialize: n, type: o }) {
|
|
|
3883
3883
|
}
|
|
3884
3884
|
l.timestamp <= i || (a = !0, i = l.timestamp, t[e] = l.state);
|
|
3885
3885
|
};
|
|
3886
|
-
let
|
|
3887
|
-
return n &&
|
|
3886
|
+
let c = () => s.postMessage(void 0), u = () => s.close();
|
|
3887
|
+
return n && c(), { sync: c, unshare: u };
|
|
3888
3888
|
}
|
|
3889
3889
|
var rl = (e, t) => Object.keys(t).includes(e), sl = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
|
|
3890
3890
|
var s, a;
|
|
3891
|
-
let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t,
|
|
3892
|
-
!i || Object.keys(o.$state).forEach((
|
|
3891
|
+
let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
|
|
3892
|
+
!i || Object.keys(o.$state).forEach((u) => {
|
|
3893
3893
|
var l;
|
|
3894
|
-
|
|
3894
|
+
c.includes(u) || !rl(u, o.$state) || ol(u, o, { initialize: ((l = r == null ? void 0 : r.share) == null ? void 0 : l.initialize) ?? e, type: n });
|
|
3895
3895
|
});
|
|
3896
3896
|
};
|
|
3897
3897
|
const al = xs();
|
|
@@ -3909,11 +3909,11 @@ const il = /* @__PURE__ */ Z({
|
|
|
3909
3909
|
if (n.value) {
|
|
3910
3910
|
let r = t.value.schema.schema.toArray();
|
|
3911
3911
|
r.forEach((s, a) => {
|
|
3912
|
-
const
|
|
3913
|
-
r[a].value =
|
|
3912
|
+
const c = t.value.store.record[s.fieldname];
|
|
3913
|
+
r[a].value = c;
|
|
3914
3914
|
}), o.value = r;
|
|
3915
3915
|
}
|
|
3916
|
-
}), (r, s) =>
|
|
3916
|
+
}), (r, s) => $(n) ? (I(), Se($(Xr), {
|
|
3917
3917
|
key: 0,
|
|
3918
3918
|
class: "aform-main",
|
|
3919
3919
|
modelValue: o.value,
|
|
@@ -3926,7 +3926,7 @@ function gr(e) {
|
|
|
3926
3926
|
return rn() ? (sn(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 ul = typeof window < "u" && typeof document < "u";
|
|
3932
3932
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -3944,21 +3944,21 @@ function nt(...e) {
|
|
|
3944
3944
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
3945
3945
|
const s = [], a = () => {
|
|
3946
3946
|
s.forEach((l) => l()), s.length = 0;
|
|
3947
|
-
}, i = (l,
|
|
3947
|
+
}, i = (l, d, p, f) => (l.addEventListener(d, p, f), () => l.removeEventListener(d, p, f)), c = J(
|
|
3948
3948
|
() => [tt(t), _n(r)],
|
|
3949
|
-
([l,
|
|
3949
|
+
([l, d]) => {
|
|
3950
3950
|
if (a(), !l)
|
|
3951
3951
|
return;
|
|
3952
|
-
const p = fl(
|
|
3952
|
+
const p = fl(d) ? { ...d } : d;
|
|
3953
3953
|
s.push(
|
|
3954
|
-
...n.flatMap((f) => o.map((
|
|
3954
|
+
...n.flatMap((f) => o.map((m) => i(l, f, m, p)))
|
|
3955
3955
|
);
|
|
3956
3956
|
},
|
|
3957
3957
|
{ immediate: !0, flush: "post" }
|
|
3958
|
-
),
|
|
3959
|
-
|
|
3958
|
+
), u = () => {
|
|
3959
|
+
c(), a();
|
|
3960
3960
|
};
|
|
3961
|
-
return gr(
|
|
3961
|
+
return gr(u), u;
|
|
3962
3962
|
}
|
|
3963
3963
|
function ml() {
|
|
3964
3964
|
const e = V(!1), t = $t();
|
|
@@ -3975,21 +3975,21 @@ function gl(e, t, n = {}) {
|
|
|
3975
3975
|
let s;
|
|
3976
3976
|
const a = vl(() => o && "MutationObserver" in o), i = () => {
|
|
3977
3977
|
s && (s.disconnect(), s = void 0);
|
|
3978
|
-
},
|
|
3978
|
+
}, c = L(() => {
|
|
3979
3979
|
const p = _n(e), f = (Array.isArray(p) ? p : [p]).map(tt).filter(dl);
|
|
3980
3980
|
return new Set(f);
|
|
3981
|
-
}),
|
|
3982
|
-
() =>
|
|
3981
|
+
}), u = J(
|
|
3982
|
+
() => c.value,
|
|
3983
3983
|
(p) => {
|
|
3984
3984
|
i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
|
|
3985
3985
|
},
|
|
3986
3986
|
{ immediate: !0, flush: "post" }
|
|
3987
|
-
), l = () => s == null ? void 0 : s.takeRecords(),
|
|
3988
|
-
|
|
3987
|
+
), l = () => s == null ? void 0 : s.takeRecords(), d = () => {
|
|
3988
|
+
u(), i();
|
|
3989
3989
|
};
|
|
3990
|
-
return gr(
|
|
3990
|
+
return gr(d), {
|
|
3991
3991
|
isSupported: a,
|
|
3992
|
-
stop:
|
|
3992
|
+
stop: d,
|
|
3993
3993
|
takeRecords: l
|
|
3994
3994
|
};
|
|
3995
3995
|
}
|
|
@@ -4000,25 +4000,25 @@ function yl(e = {}) {
|
|
|
4000
4000
|
deep: o = !0,
|
|
4001
4001
|
triggerOnRemoval: r = !1
|
|
4002
4002
|
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
|
|
4003
|
-
var
|
|
4003
|
+
var u;
|
|
4004
4004
|
let l = s == null ? void 0 : s.activeElement;
|
|
4005
4005
|
if (o)
|
|
4006
4006
|
for (; l != null && l.shadowRoot; )
|
|
4007
|
-
l = (
|
|
4007
|
+
l = (u = l == null ? void 0 : l.shadowRoot) == null ? void 0 : u.activeElement;
|
|
4008
4008
|
return l;
|
|
4009
|
-
}, i = V(),
|
|
4009
|
+
}, i = V(), c = () => {
|
|
4010
4010
|
i.value = a();
|
|
4011
4011
|
};
|
|
4012
|
-
return n && (nt(n, "blur", (
|
|
4013
|
-
|
|
4014
|
-
}, !0), nt(n, "focus",
|
|
4015
|
-
|
|
4016
|
-
l === i.value &&
|
|
4012
|
+
return n && (nt(n, "blur", (u) => {
|
|
4013
|
+
u.relatedTarget === null && c();
|
|
4014
|
+
}, !0), nt(n, "focus", c, !0)), r && gl(s, (u) => {
|
|
4015
|
+
u.filter((l) => l.removedNodes.length).map((l) => Array.from(l.removedNodes)).flat().forEach((l) => {
|
|
4016
|
+
l === i.value && c();
|
|
4017
4017
|
});
|
|
4018
4018
|
}, {
|
|
4019
4019
|
childList: !0,
|
|
4020
4020
|
subtree: !0
|
|
4021
|
-
}),
|
|
4021
|
+
}), c(), i;
|
|
4022
4022
|
}
|
|
4023
4023
|
const bl = "focusin", wl = "focusout";
|
|
4024
4024
|
function _l(e, t = {}) {
|
|
@@ -4225,54 +4225,54 @@ function yr(e) {
|
|
|
4225
4225
|
return a.parent && (typeof a.parent == "string" ? i = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? i = a.parent : i = a.parent.value), i;
|
|
4226
4226
|
}, n = (a) => {
|
|
4227
4227
|
const i = t(a);
|
|
4228
|
-
let
|
|
4228
|
+
let c = [];
|
|
4229
4229
|
if (typeof a.selectors == "string")
|
|
4230
|
-
|
|
4230
|
+
c = i ? Array.from(i.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
|
|
4231
4231
|
else if (Array.isArray(a.selectors))
|
|
4232
|
-
for (const
|
|
4233
|
-
|
|
4232
|
+
for (const u of a.selectors)
|
|
4233
|
+
u instanceof HTMLElement ? c.push(u) : c.push(u.$el);
|
|
4234
4234
|
else if (a.selectors instanceof HTMLElement)
|
|
4235
|
-
|
|
4235
|
+
c.push(a.selectors);
|
|
4236
4236
|
else if (Array.isArray(a.selectors.value))
|
|
4237
|
-
for (const
|
|
4238
|
-
|
|
4237
|
+
for (const u of a.selectors.value)
|
|
4238
|
+
u instanceof HTMLElement ? c.push(u) : c.push(u.$el);
|
|
4239
4239
|
else
|
|
4240
|
-
|
|
4241
|
-
return
|
|
4240
|
+
c.push(a.selectors.value);
|
|
4241
|
+
return c;
|
|
4242
4242
|
}, o = (a) => {
|
|
4243
4243
|
const i = t(a);
|
|
4244
|
-
let
|
|
4245
|
-
return a.selectors ?
|
|
4244
|
+
let c = [];
|
|
4245
|
+
return a.selectors ? c = n(a) : i && (c = Array.from(i.children).filter((u) => he(u) && fe(u))), c;
|
|
4246
4246
|
}, r = (a) => (i) => {
|
|
4247
|
-
const
|
|
4248
|
-
if (ct.includes(
|
|
4249
|
-
const
|
|
4250
|
-
for (const l of Object.keys(
|
|
4251
|
-
const [
|
|
4252
|
-
if (
|
|
4253
|
-
const f =
|
|
4254
|
-
const
|
|
4255
|
-
return i.getModifierState(
|
|
4247
|
+
const c = Ol[i.key] || i.key.toLowerCase();
|
|
4248
|
+
if (ct.includes(c)) return;
|
|
4249
|
+
const u = a.handlers || xn;
|
|
4250
|
+
for (const l of Object.keys(u)) {
|
|
4251
|
+
const [d, ...p] = l.split(".");
|
|
4252
|
+
if (d === "keydown" && p.includes(c)) {
|
|
4253
|
+
const f = u[l], m = p.filter((x) => ct.includes(x)), b = ct.some((x) => {
|
|
4254
|
+
const _ = x.charAt(0).toUpperCase() + x.slice(1);
|
|
4255
|
+
return i.getModifierState(_);
|
|
4256
4256
|
});
|
|
4257
|
-
if (
|
|
4258
|
-
if (
|
|
4259
|
-
for (const
|
|
4260
|
-
if (p.includes(
|
|
4261
|
-
const
|
|
4262
|
-
i.getModifierState(
|
|
4257
|
+
if (m.length > 0) {
|
|
4258
|
+
if (b) {
|
|
4259
|
+
for (const x of ct)
|
|
4260
|
+
if (p.includes(x)) {
|
|
4261
|
+
const _ = x.charAt(0).toUpperCase() + x.slice(1);
|
|
4262
|
+
i.getModifierState(_) && f(i);
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
4265
|
} else
|
|
4266
|
-
|
|
4266
|
+
b || f(i);
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
}, s = [];
|
|
4270
4270
|
Zt(() => {
|
|
4271
4271
|
for (const a of e) {
|
|
4272
|
-
const i = t(a),
|
|
4273
|
-
for (const
|
|
4274
|
-
const { focused: p } = _l(V(
|
|
4275
|
-
|
|
4272
|
+
const i = t(a), c = o(a), u = r(a), l = i ? [i] : c;
|
|
4273
|
+
for (const d of l) {
|
|
4274
|
+
const { focused: p } = _l(V(d)), f = J(p, (m) => {
|
|
4275
|
+
m ? d.addEventListener("keydown", u) : d.removeEventListener("keydown", u);
|
|
4276
4276
|
});
|
|
4277
4277
|
s.push(f);
|
|
4278
4278
|
}
|
|
@@ -4293,70 +4293,66 @@ const xl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4293
4293
|
},
|
|
4294
4294
|
setup(e) {
|
|
4295
4295
|
var t;
|
|
4296
|
-
const n = ae(e.tableid), o = an("cell"), r = V(""), s = V(!1), a = L(() => {
|
|
4297
|
-
const
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
}), i = () => {
|
|
4304
|
-
if (n.columns[e.colIndex].mask, n.columns[e.colIndex].modalComponent) {
|
|
4305
|
-
const h = o.value.getBoundingClientRect();
|
|
4306
|
-
n.modal.visible = !0, n.modal.colIndex = e.colIndex, n.modal.rowIndex = e.rowIndex, n.modal.parent = o.value, n.modal.top = h.top + h.height, n.modal.left = h.left, n.modal.width = c.value, n.modal.component = n.columns[e.colIndex].modalComponent, n.modal.componentProps = n.columns[e.colIndex].modalComponentProps;
|
|
4296
|
+
const n = ae(e.tableid), o = an("cell"), r = V(""), s = V(!1), a = n.table, i = n.columns[e.colIndex], c = n.rows[e.rowIndex], u = L(() => {
|
|
4297
|
+
const _ = n.cellData(e.colIndex, e.rowIndex), O = i.format;
|
|
4298
|
+
return O ? typeof O == "function" ? O(_, { table: a, row: c, column: i }) : typeof O == "string" ? Function(`"use strict";return (${O})`)()(_, { table: a, row: c, column: i }) : _ : _;
|
|
4299
|
+
}), l = () => {
|
|
4300
|
+
if (i.mask, i.modalComponent) {
|
|
4301
|
+
const _ = o.value.getBoundingClientRect();
|
|
4302
|
+
n.modal.visible = !0, n.modal.colIndex = e.colIndex, n.modal.rowIndex = e.rowIndex, n.modal.parent = o.value, n.modal.top = _.top + _.height, n.modal.left = _.left, n.modal.width = p.value, typeof i.modalComponent == "function" ? n.modal.component = i.modalComponent({ table: a, row: c, column: i }) : n.modal.component = i.modalComponent, n.modal.componentProps = i.modalComponentExtraProps;
|
|
4307
4303
|
}
|
|
4308
4304
|
};
|
|
4309
4305
|
if (e.addNavigation) {
|
|
4310
|
-
let
|
|
4306
|
+
let _ = {
|
|
4311
4307
|
...xn,
|
|
4312
|
-
"keydown.f2":
|
|
4313
|
-
"keydown.alt.up":
|
|
4314
|
-
"keydown.alt.down":
|
|
4315
|
-
"keydown.alt.left":
|
|
4316
|
-
"keydown.alt.right":
|
|
4308
|
+
"keydown.f2": l,
|
|
4309
|
+
"keydown.alt.up": l,
|
|
4310
|
+
"keydown.alt.down": l,
|
|
4311
|
+
"keydown.alt.left": l,
|
|
4312
|
+
"keydown.alt.right": l
|
|
4317
4313
|
};
|
|
4318
|
-
typeof e.addNavigation == "object" && (
|
|
4319
|
-
...
|
|
4314
|
+
typeof e.addNavigation == "object" && (_ = {
|
|
4315
|
+
..._,
|
|
4320
4316
|
...e.addNavigation
|
|
4321
4317
|
}), yr([
|
|
4322
4318
|
{
|
|
4323
4319
|
selectors: o,
|
|
4324
|
-
handlers:
|
|
4320
|
+
handlers: _
|
|
4325
4321
|
}
|
|
4326
4322
|
]);
|
|
4327
4323
|
}
|
|
4328
|
-
const d = L(() =>
|
|
4324
|
+
const d = L(() => i.align || "center"), p = L(() => i.width || "40ch"), f = () => {
|
|
4329
4325
|
o.value && (r.value = o.value.textContent);
|
|
4330
|
-
},
|
|
4331
|
-
o.value && o.value.textContent !== r.value && (r.value = o.value.textContent, o.value.dispatchEvent(new Event("change")), s.value = !0,
|
|
4332
|
-
},
|
|
4326
|
+
}, m = () => {
|
|
4327
|
+
o.value && o.value.textContent !== r.value && (r.value = o.value.textContent, o.value.dispatchEvent(new Event("change")), s.value = !0, i.format || n.setCellData(e.rowIndex, e.colIndex, r.value));
|
|
4328
|
+
}, b = (_, O) => O && _ === 0 && O > 0 ? `${O}ch` : "inherit", x = {
|
|
4333
4329
|
textAlign: d.value,
|
|
4334
|
-
width:
|
|
4330
|
+
width: p.value,
|
|
4335
4331
|
backgroundColor: s.value ? "var(--cell-modified-color)" : "inherit",
|
|
4336
4332
|
fontWeight: s.value ? "bold" : "inherit",
|
|
4337
|
-
paddingLeft:
|
|
4333
|
+
paddingLeft: b(e.colIndex, (t = n.display[e.rowIndex]) == null ? void 0 : t.indent)
|
|
4338
4334
|
};
|
|
4339
|
-
return (
|
|
4335
|
+
return (_, O) => (I(), T("td", {
|
|
4340
4336
|
ref: "cell",
|
|
4341
|
-
"data-colindex":
|
|
4342
|
-
"data-rowindex":
|
|
4343
|
-
"data-editable":
|
|
4344
|
-
contenteditable:
|
|
4345
|
-
tabindex:
|
|
4337
|
+
"data-colindex": _.colIndex,
|
|
4338
|
+
"data-rowindex": _.rowIndex,
|
|
4339
|
+
"data-editable": $(n).columns[_.colIndex].edit,
|
|
4340
|
+
contenteditable: $(n).columns[_.colIndex].edit,
|
|
4341
|
+
tabindex: _.tabIndex,
|
|
4346
4342
|
spellcheck: !1,
|
|
4347
|
-
style:
|
|
4348
|
-
onFocus:
|
|
4349
|
-
onPaste:
|
|
4350
|
-
onBlur:
|
|
4351
|
-
onInput:
|
|
4352
|
-
onClick:
|
|
4353
|
-
onMousedown:
|
|
4343
|
+
style: x,
|
|
4344
|
+
onFocus: f,
|
|
4345
|
+
onPaste: m,
|
|
4346
|
+
onBlur: m,
|
|
4347
|
+
onInput: m,
|
|
4348
|
+
onClick: l,
|
|
4349
|
+
onMousedown: l,
|
|
4354
4350
|
class: "atable__cell"
|
|
4355
4351
|
}, [
|
|
4356
|
-
|
|
4352
|
+
$(n).columns[_.colIndex].cellComponent ? (I(), Se(tn($(n).columns[_.colIndex].cellComponent), nn({
|
|
4357
4353
|
key: 0,
|
|
4358
|
-
value:
|
|
4359
|
-
},
|
|
4354
|
+
value: u.value
|
|
4355
|
+
}, $(n).columns[_.colIndex].cellComponentProps), null, 16, ["value"])) : (I(), T("span", Sl, de(u.value), 1))
|
|
4360
4356
|
], 40, xl));
|
|
4361
4357
|
}
|
|
4362
4358
|
}), Il = ["tabindex"], Cl = {
|
|
@@ -4388,17 +4384,17 @@ const xl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4388
4384
|
}
|
|
4389
4385
|
]);
|
|
4390
4386
|
}
|
|
4391
|
-
return (a, i) => Ke((
|
|
4387
|
+
return (a, i) => Ke((I(), T("tr", {
|
|
4392
4388
|
ref: "rowEl",
|
|
4393
4389
|
tabindex: a.tabIndex,
|
|
4394
4390
|
class: "table-row"
|
|
4395
4391
|
}, [
|
|
4396
4392
|
ge(a.$slots, "index", {}, () => [
|
|
4397
|
-
|
|
4393
|
+
$(t).config.view === "list" ? (I(), T("td", Cl, de(a.rowIndex + 1), 1)) : $(t).config.view === "tree" ? (I(), T("td", {
|
|
4398
4394
|
key: 1,
|
|
4399
4395
|
tabIndex: -1,
|
|
4400
4396
|
class: "tree-index",
|
|
4401
|
-
onClick: i[0] || (i[0] = (
|
|
4397
|
+
onClick: i[0] || (i[0] = (c) => s(a.rowIndex))
|
|
4402
4398
|
}, de(r.value), 1)) : be("", !0)
|
|
4403
4399
|
]),
|
|
4404
4400
|
ge(a.$slots, "default")
|
|
@@ -4411,7 +4407,7 @@ function br(e) {
|
|
|
4411
4407
|
return rn() ? (sn(e), !0) : !1;
|
|
4412
4408
|
}
|
|
4413
4409
|
function ze(e) {
|
|
4414
|
-
return typeof e == "function" ? e() :
|
|
4410
|
+
return typeof e == "function" ? e() : $(e);
|
|
4415
4411
|
}
|
|
4416
4412
|
const wr = typeof window < "u" && typeof document < "u";
|
|
4417
4413
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4445,21 +4441,21 @@ function bt(...e) {
|
|
|
4445
4441
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4446
4442
|
const s = [], a = () => {
|
|
4447
4443
|
s.forEach((l) => l()), s.length = 0;
|
|
4448
|
-
}, i = (l,
|
|
4444
|
+
}, i = (l, d, p, f) => (l.addEventListener(d, p, f), () => l.removeEventListener(d, p, f)), c = J(
|
|
4449
4445
|
() => [Fe(t), ze(r)],
|
|
4450
|
-
([l,
|
|
4446
|
+
([l, d]) => {
|
|
4451
4447
|
if (a(), !l)
|
|
4452
4448
|
return;
|
|
4453
|
-
const p = Al(
|
|
4449
|
+
const p = Al(d) ? { ...d } : d;
|
|
4454
4450
|
s.push(
|
|
4455
|
-
...n.flatMap((f) => o.map((
|
|
4451
|
+
...n.flatMap((f) => o.map((m) => i(l, f, m, p)))
|
|
4456
4452
|
);
|
|
4457
4453
|
},
|
|
4458
4454
|
{ immediate: !0, flush: "post" }
|
|
4459
|
-
),
|
|
4460
|
-
|
|
4455
|
+
), u = () => {
|
|
4456
|
+
c(), a();
|
|
4461
4457
|
};
|
|
4462
|
-
return br(
|
|
4458
|
+
return br(u), u;
|
|
4463
4459
|
}
|
|
4464
4460
|
let mo = !1;
|
|
4465
4461
|
function vo(e, t, n = {}) {
|
|
@@ -4468,18 +4464,18 @@ function vo(e, t, n = {}) {
|
|
|
4468
4464
|
return Je;
|
|
4469
4465
|
Xt && !mo && (mo = !0, Array.from(o.document.body.children).forEach((l) => l.addEventListener("click", Je)), o.document.documentElement.addEventListener("click", Je));
|
|
4470
4466
|
let i = !0;
|
|
4471
|
-
const
|
|
4472
|
-
if (typeof
|
|
4473
|
-
return Array.from(o.document.querySelectorAll(
|
|
4467
|
+
const c = (l) => r.some((d) => {
|
|
4468
|
+
if (typeof d == "string")
|
|
4469
|
+
return Array.from(o.document.querySelectorAll(d)).some((p) => p === l.target || l.composedPath().includes(p));
|
|
4474
4470
|
{
|
|
4475
|
-
const p = Fe(
|
|
4471
|
+
const p = Fe(d);
|
|
4476
4472
|
return p && (l.target === p || l.composedPath().includes(p));
|
|
4477
4473
|
}
|
|
4478
|
-
}),
|
|
4474
|
+
}), u = [
|
|
4479
4475
|
bt(o, "click", (l) => {
|
|
4480
|
-
const
|
|
4481
|
-
if (!(!
|
|
4482
|
-
if (l.detail === 0 && (i = !
|
|
4476
|
+
const d = Fe(e);
|
|
4477
|
+
if (!(!d || d === l.target || l.composedPath().includes(d))) {
|
|
4478
|
+
if (l.detail === 0 && (i = !c(l)), !i) {
|
|
4483
4479
|
i = !0;
|
|
4484
4480
|
return;
|
|
4485
4481
|
}
|
|
@@ -4487,18 +4483,18 @@ function vo(e, t, n = {}) {
|
|
|
4487
4483
|
}
|
|
4488
4484
|
}, { passive: !0, capture: s }),
|
|
4489
4485
|
bt(o, "pointerdown", (l) => {
|
|
4490
|
-
const
|
|
4491
|
-
i = !
|
|
4486
|
+
const d = Fe(e);
|
|
4487
|
+
i = !c(l) && !!(d && !l.composedPath().includes(d));
|
|
4492
4488
|
}, { passive: !0 }),
|
|
4493
4489
|
a && bt(o, "blur", (l) => {
|
|
4494
4490
|
setTimeout(() => {
|
|
4495
|
-
var
|
|
4491
|
+
var d;
|
|
4496
4492
|
const p = Fe(e);
|
|
4497
|
-
((
|
|
4493
|
+
((d = o.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(l);
|
|
4498
4494
|
}, 0);
|
|
4499
4495
|
})
|
|
4500
4496
|
].filter(Boolean);
|
|
4501
|
-
return () =>
|
|
4497
|
+
return () => u.forEach((l) => l());
|
|
4502
4498
|
}
|
|
4503
4499
|
const Rl = {
|
|
4504
4500
|
[ho.mounted](e, t) {
|
|
@@ -4535,13 +4531,13 @@ function Ll(e, t = !1) {
|
|
|
4535
4531
|
const n = V(t);
|
|
4536
4532
|
let o = null, r = "";
|
|
4537
4533
|
J(Vl(e), (i) => {
|
|
4538
|
-
const
|
|
4539
|
-
if (
|
|
4540
|
-
const
|
|
4541
|
-
if (Bt.get(
|
|
4534
|
+
const c = Mt(ze(i));
|
|
4535
|
+
if (c) {
|
|
4536
|
+
const u = c;
|
|
4537
|
+
if (Bt.get(u) || Bt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (r = u.style.overflow), u.style.overflow === "hidden")
|
|
4542
4538
|
return n.value = !0;
|
|
4543
4539
|
if (n.value)
|
|
4544
|
-
return
|
|
4540
|
+
return u.style.overflow = "hidden";
|
|
4545
4541
|
}
|
|
4546
4542
|
}, {
|
|
4547
4543
|
immediate: !0
|
|
@@ -4551,8 +4547,8 @@ function Ll(e, t = !1) {
|
|
|
4551
4547
|
!i || n.value || (Xt && (o = bt(
|
|
4552
4548
|
i,
|
|
4553
4549
|
"touchmove",
|
|
4554
|
-
(
|
|
4555
|
-
jl(
|
|
4550
|
+
(c) => {
|
|
4551
|
+
jl(c);
|
|
4556
4552
|
},
|
|
4557
4553
|
{ passive: !1 }
|
|
4558
4554
|
)), i.style.overflow = "hidden", n.value = !0);
|
|
@@ -4678,10 +4674,10 @@ const ql = {
|
|
|
4678
4674
|
textAlign: o.align || "center",
|
|
4679
4675
|
width: t.config.fullWidth ? "auto" : null
|
|
4680
4676
|
});
|
|
4681
|
-
return (o, r) => o.columns.length ? (
|
|
4677
|
+
return (o, r) => o.columns.length ? (I(), T("thead", ql, [
|
|
4682
4678
|
j("tr", zl, [
|
|
4683
|
-
|
|
4684
|
-
(
|
|
4679
|
+
$(t).zeroColumn ? (I(), T("th", Jl)) : be("", !0),
|
|
4680
|
+
(I(!0), T(Ne, null, Ie(o.columns, (s, a) => (I(), T("th", {
|
|
4685
4681
|
key: s.name,
|
|
4686
4682
|
tabindex: "-1",
|
|
4687
4683
|
style: ue(n(s))
|
|
@@ -4704,7 +4700,7 @@ const ql = {
|
|
|
4704
4700
|
const t = (n) => {
|
|
4705
4701
|
n.stopPropagation();
|
|
4706
4702
|
};
|
|
4707
|
-
return (n, o) => (
|
|
4703
|
+
return (n, o) => (I(), T("div", {
|
|
4708
4704
|
class: "amodal",
|
|
4709
4705
|
tabindex: "-1",
|
|
4710
4706
|
onClick: t,
|
|
@@ -4745,37 +4741,37 @@ const ql = {
|
|
|
4745
4741
|
i.focus();
|
|
4746
4742
|
});
|
|
4747
4743
|
}
|
|
4748
|
-
}), (a, i) => Ke((
|
|
4744
|
+
}), (a, i) => Ke((I(), T("table", {
|
|
4749
4745
|
class: "atable",
|
|
4750
|
-
style: ue({ width:
|
|
4746
|
+
style: ue({ width: $(r).config.fullWidth ? "100%" : "auto" })
|
|
4751
4747
|
}, [
|
|
4752
|
-
ge(a.$slots, "header", { data:
|
|
4748
|
+
ge(a.$slots, "header", { data: $(r) }, () => [
|
|
4753
4749
|
wt(Kl, {
|
|
4754
|
-
columns:
|
|
4755
|
-
tableid:
|
|
4750
|
+
columns: $(r).columns,
|
|
4751
|
+
tableid: $(r).id
|
|
4756
4752
|
}, null, 8, ["columns", "tableid"])
|
|
4757
4753
|
]),
|
|
4758
4754
|
j("tbody", null, [
|
|
4759
|
-
ge(a.$slots, "body", { data:
|
|
4760
|
-
(
|
|
4761
|
-
key:
|
|
4762
|
-
row:
|
|
4763
|
-
rowIndex:
|
|
4764
|
-
tableid:
|
|
4755
|
+
ge(a.$slots, "body", { data: $(r) }, () => [
|
|
4756
|
+
(I(!0), T(Ne, null, Ie($(r).rows, (c, u) => (I(), Se(Pl, {
|
|
4757
|
+
key: c.id,
|
|
4758
|
+
row: c,
|
|
4759
|
+
rowIndex: u,
|
|
4760
|
+
tableid: $(r).id
|
|
4765
4761
|
}, {
|
|
4766
4762
|
default: _t(() => [
|
|
4767
|
-
(
|
|
4763
|
+
(I(!0), T(Ne, null, Ie($(r).columns, (l, d) => (I(), Se(Nl, {
|
|
4768
4764
|
key: l.name,
|
|
4769
|
-
tableid:
|
|
4765
|
+
tableid: $(r).id,
|
|
4770
4766
|
col: l,
|
|
4771
4767
|
spellcheck: "false",
|
|
4772
|
-
rowIndex:
|
|
4773
|
-
colIndex:
|
|
4768
|
+
rowIndex: u,
|
|
4769
|
+
colIndex: d + ($(r).zeroColumn ? 0 : -1),
|
|
4774
4770
|
component: l.cellComponent,
|
|
4775
4771
|
style: ue({
|
|
4776
4772
|
textAlign: (l == null ? void 0 : l.align) || "center",
|
|
4777
4773
|
minWidth: (l == null ? void 0 : l.width) || "40ch",
|
|
4778
|
-
width:
|
|
4774
|
+
width: $(r).config.fullWidth ? "auto" : null
|
|
4779
4775
|
})
|
|
4780
4776
|
}, null, 8, ["tableid", "col", "rowIndex", "colIndex", "component", "style"]))), 128))
|
|
4781
4777
|
]),
|
|
@@ -4783,43 +4779,43 @@ const ql = {
|
|
|
4783
4779
|
}, 1032, ["row", "rowIndex", "tableid"]))), 128))
|
|
4784
4780
|
])
|
|
4785
4781
|
]),
|
|
4786
|
-
ge(a.$slots, "footer", { data:
|
|
4787
|
-
ge(a.$slots, "modal", { data:
|
|
4782
|
+
ge(a.$slots, "footer", { data: $(r) }),
|
|
4783
|
+
ge(a.$slots, "modal", { data: $(r) }, () => [
|
|
4788
4784
|
Ke(wt(Yl, {
|
|
4789
|
-
colIndex:
|
|
4790
|
-
rowIndex:
|
|
4791
|
-
tableid:
|
|
4785
|
+
colIndex: $(r).modal.colIndex,
|
|
4786
|
+
rowIndex: $(r).modal.rowIndex,
|
|
4787
|
+
tableid: $(r).id,
|
|
4792
4788
|
style: ue({
|
|
4793
|
-
left:
|
|
4794
|
-
top:
|
|
4795
|
-
maxWidth:
|
|
4789
|
+
left: $(r).modal.left + "px",
|
|
4790
|
+
top: $(r).modal.top + "px",
|
|
4791
|
+
maxWidth: $(r).modal.width + "px"
|
|
4796
4792
|
})
|
|
4797
4793
|
}, {
|
|
4798
4794
|
default: _t(() => [
|
|
4799
|
-
(
|
|
4800
|
-
key: `${
|
|
4801
|
-
colIndex:
|
|
4802
|
-
rowIndex:
|
|
4803
|
-
tableid:
|
|
4804
|
-
},
|
|
4795
|
+
(I(), Se(tn($(r).modal.component), nn({
|
|
4796
|
+
key: `${$(r).modal.rowIndex}:${$(r).modal.colIndex}`,
|
|
4797
|
+
colIndex: $(r).modal.colIndex,
|
|
4798
|
+
rowIndex: $(r).modal.rowIndex,
|
|
4799
|
+
tableid: $(r).id
|
|
4800
|
+
}, $(r).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
|
|
4805
4801
|
]),
|
|
4806
4802
|
_: 1
|
|
4807
4803
|
}, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
|
|
4808
|
-
[en,
|
|
4804
|
+
[en, $(r).modal.visible]
|
|
4809
4805
|
])
|
|
4810
4806
|
])
|
|
4811
4807
|
], 4)), [
|
|
4812
|
-
[
|
|
4808
|
+
[$(Rl), s]
|
|
4813
4809
|
]);
|
|
4814
4810
|
}
|
|
4815
4811
|
}), Xl = /* @__PURE__ */ Z({
|
|
4816
4812
|
__name: "Records",
|
|
4817
4813
|
setup(e) {
|
|
4818
4814
|
const { stonecrop: t, isReady: n } = Ro(), o = { view: "list" };
|
|
4819
|
-
return (r, s) =>
|
|
4815
|
+
return (r, s) => $(n) ? (I(), Se($(Ql), {
|
|
4820
4816
|
key: 0,
|
|
4821
|
-
columns:
|
|
4822
|
-
rows:
|
|
4817
|
+
columns: $(t).schema.schema.toArray(),
|
|
4818
|
+
rows: $(t).store.records,
|
|
4823
4819
|
config: o
|
|
4824
4820
|
}, null, 8, ["columns", "rows"])) : be("", !0);
|
|
4825
4821
|
}
|
|
@@ -4845,15 +4841,15 @@ const ql = {
|
|
|
4845
4841
|
n.value = !n.value, await Qe(() => {
|
|
4846
4842
|
r.value.focus();
|
|
4847
4843
|
});
|
|
4848
|
-
},
|
|
4849
|
-
|
|
4850
|
-
},
|
|
4851
|
-
|
|
4844
|
+
}, c = (d) => {
|
|
4845
|
+
d.preventDefault(), d.stopPropagation();
|
|
4846
|
+
}, u = async (d) => {
|
|
4847
|
+
d.preventDefault(), d.stopPropagation(), await i();
|
|
4852
4848
|
}, l = () => {
|
|
4853
4849
|
};
|
|
4854
|
-
return (
|
|
4850
|
+
return (d, p) => {
|
|
4855
4851
|
const f = Ar("router-link");
|
|
4856
|
-
return
|
|
4852
|
+
return I(), T("footer", null, [
|
|
4857
4853
|
j("ul", Zl, [
|
|
4858
4854
|
j("li", {
|
|
4859
4855
|
class: "hidebreadcrumbs",
|
|
@@ -4877,7 +4873,7 @@ const ql = {
|
|
|
4877
4873
|
tabindex: "0"
|
|
4878
4874
|
}, {
|
|
4879
4875
|
default: _t(() => [
|
|
4880
|
-
(
|
|
4876
|
+
(I(), T("svg", tc, p[5] || (p[5] = [
|
|
4881
4877
|
j("g", null, [
|
|
4882
4878
|
j("path", {
|
|
4883
4879
|
style: { fill: "#010002" },
|
|
@@ -4907,7 +4903,7 @@ const ql = {
|
|
|
4907
4903
|
j("span", {
|
|
4908
4904
|
style: ue({ display: n.value ? "none" : "block" })
|
|
4909
4905
|
}, [
|
|
4910
|
-
(
|
|
4906
|
+
(I(), T("svg", oc, p[6] || (p[6] = [
|
|
4911
4907
|
j("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
|
|
4912
4908
|
j("path", {
|
|
4913
4909
|
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",
|
|
@@ -4918,29 +4914,29 @@ const ql = {
|
|
|
4918
4914
|
])))
|
|
4919
4915
|
], 4),
|
|
4920
4916
|
Ke(j("input", {
|
|
4921
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4917
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
|
|
4922
4918
|
ref: "searchinput",
|
|
4923
4919
|
style: ue({ display: n.value ? "block" : "none" }),
|
|
4924
|
-
onClick: p[1] || (p[1] = (
|
|
4925
|
-
onInput: p[2] || (p[2] = (
|
|
4926
|
-
onBlur: p[3] || (p[3] = (
|
|
4927
|
-
onKeydown: p[4] || (p[4] = at((
|
|
4920
|
+
onClick: p[1] || (p[1] = (m) => c(m)),
|
|
4921
|
+
onInput: p[2] || (p[2] = (m) => c(m)),
|
|
4922
|
+
onBlur: p[3] || (p[3] = (m) => u(m)),
|
|
4923
|
+
onKeydown: p[4] || (p[4] = at((m) => u(m), ["enter"])),
|
|
4928
4924
|
type: "text"
|
|
4929
4925
|
}, null, 36), [
|
|
4930
4926
|
[Tr, o.value]
|
|
4931
4927
|
])
|
|
4932
4928
|
])
|
|
4933
4929
|
], 36),
|
|
4934
|
-
(
|
|
4935
|
-
key:
|
|
4930
|
+
(I(!0), T(Ne, null, Ie(d.breadcrumbs, (m) => (I(), T("li", {
|
|
4931
|
+
key: m.title,
|
|
4936
4932
|
style: ue({ display: t.value ? "block" : "none" })
|
|
4937
4933
|
}, [
|
|
4938
4934
|
wt(f, {
|
|
4939
4935
|
tabindex: "0",
|
|
4940
|
-
to:
|
|
4936
|
+
to: m.to
|
|
4941
4937
|
}, {
|
|
4942
4938
|
default: _t(() => [
|
|
4943
|
-
_o(de(
|
|
4939
|
+
_o(de(m.title), 1)
|
|
4944
4940
|
]),
|
|
4945
4941
|
_: 2
|
|
4946
4942
|
}, 1032, ["to"])
|