@stonecrop/desktop 0.2.60 → 0.2.62
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 +953 -953
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +21 -21
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as de, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as bo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as
|
|
1
|
+
import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as de, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as bo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as k, shallowReactive as Cr, watch as z, nextTick as Re, hasInjectionContext as Pr, getCurrentInstance as We, reactive as ke, h as _o, provide as ft, isRef as tt, isReactive as an, toRef as ht, watchEffect as Dr, getCurrentScope as xt, onScopeDispose as St, toRefs as Cn, useTemplateRef as Nt, normalizeStyle as re, renderSlot as ge, createVNode as Et, withCtx as kt, readonly as Ar, customRef as Tr, createTextVNode as Eo, onBeforeUnmount as Rr, resolveComponent as Vr, withKeys as ct, vModelText as jr } from "vue";
|
|
2
2
|
const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr = ["onClick"], Ur = { class: "dropdown-container" }, Hr = { class: "dropdown" }, Fr = ["onclick"], zr = ["href"], Gr = { class: "dropdown-item" }, qr = /* @__PURE__ */ Z({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
@@ -7,31 +7,31 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
|
|
|
7
7
|
setup(e) {
|
|
8
8
|
const t = C(e.elements), n = C(!1), o = C(null), r = C(!1), s = C(!1);
|
|
9
9
|
Be(() => {
|
|
10
|
-
|
|
10
|
+
a();
|
|
11
11
|
});
|
|
12
|
-
const
|
|
13
|
-
for (const
|
|
14
|
-
|
|
15
|
-
},
|
|
12
|
+
const a = () => {
|
|
13
|
+
for (const c of t.value)
|
|
14
|
+
c.elementType === "dropdown" && (c.show = !1);
|
|
15
|
+
}, i = () => {
|
|
16
16
|
r.value = !0, o.value = setTimeout(() => {
|
|
17
17
|
r.value && (n.value = !0);
|
|
18
18
|
}, 500);
|
|
19
|
-
},
|
|
19
|
+
}, d = () => {
|
|
20
20
|
r.value = !1, s.value = !1, clearTimeout(o.value), n.value = !1;
|
|
21
|
-
}, l = (
|
|
22
|
-
const
|
|
23
|
-
|
|
21
|
+
}, l = (c) => {
|
|
22
|
+
const u = !t.value[c].show;
|
|
23
|
+
a(), t.value[c].show = u;
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
25
|
+
return (c, u) => (I(), V("div", {
|
|
26
26
|
class: Se([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
|
|
27
|
-
onMouseover:
|
|
28
|
-
onMouseleave:
|
|
27
|
+
onMouseover: i,
|
|
28
|
+
onMouseleave: d
|
|
29
29
|
}, [
|
|
30
30
|
M("div", Lr, [
|
|
31
31
|
M("div", {
|
|
32
32
|
id: "chevron",
|
|
33
|
-
onClick:
|
|
34
|
-
},
|
|
33
|
+
onClick: u[0] || (u[0] = (p) => s.value = !s.value)
|
|
34
|
+
}, u[1] || (u[1] = [
|
|
35
35
|
M("svg", {
|
|
36
36
|
class: "leftBar",
|
|
37
37
|
version: "1.1",
|
|
@@ -64,7 +64,7 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
|
|
|
64
64
|
], -1)
|
|
65
65
|
]))
|
|
66
66
|
]),
|
|
67
|
-
|
|
67
|
+
u[2] || (u[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
68
68
|
(I(!0), V(Ne, null, Ie(t.value, (p, f) => (I(), V("div", {
|
|
69
69
|
class: "action-element",
|
|
70
70
|
key: p.label
|
|
@@ -128,33 +128,33 @@ const Zr = { class: "aform" }, es = /* @__PURE__ */ Z({
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["update:modelValue"],
|
|
130
130
|
setup(e, { emit: t }) {
|
|
131
|
-
const n = t, o = C(e.data || {}), r = (
|
|
132
|
-
let
|
|
133
|
-
for (const [
|
|
134
|
-
["component", "fieldtype"].includes(
|
|
135
|
-
return
|
|
131
|
+
const n = t, o = C(e.data || {}), r = (a) => {
|
|
132
|
+
let i = {};
|
|
133
|
+
for (const [d, l] of Object.entries(a))
|
|
134
|
+
["component", "fieldtype"].includes(d) || (i[d] = l), d === "rows" && l && l.length === 0 && (i.rows = o.value[a.fieldname]);
|
|
135
|
+
return i;
|
|
136
136
|
}, s = j({
|
|
137
|
-
get: () => e.modelValue.map((
|
|
137
|
+
get: () => e.modelValue.map((a, i) => j({
|
|
138
138
|
get() {
|
|
139
|
-
return
|
|
139
|
+
return a.value;
|
|
140
140
|
},
|
|
141
|
-
set: (
|
|
142
|
-
e.modelValue[
|
|
141
|
+
set: (d) => {
|
|
142
|
+
e.modelValue[i].value = d, n("update:modelValue", e.modelValue);
|
|
143
143
|
}
|
|
144
144
|
})),
|
|
145
145
|
set: () => {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
return (
|
|
149
|
-
(I(!0), V(Ne, null, Ie(
|
|
148
|
+
return (a, i) => (I(), V("form", Zr, [
|
|
149
|
+
(I(!0), V(Ne, null, Ie(a.modelValue, (d, l) => (I(), xe(rn(d.component), sn({
|
|
150
150
|
key: l,
|
|
151
|
-
schema:
|
|
151
|
+
schema: d,
|
|
152
152
|
modelValue: s.value[l].value,
|
|
153
|
-
"onUpdate:modelValue": (
|
|
154
|
-
data: o.value[
|
|
155
|
-
readonly:
|
|
153
|
+
"onUpdate:modelValue": (c) => s.value[l].value = c,
|
|
154
|
+
data: o.value[d.fieldname],
|
|
155
|
+
readonly: a.readonly,
|
|
156
156
|
ref_for: !0
|
|
157
|
-
}, r(
|
|
157
|
+
}, r(d)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
160
|
}), ts = /* @__PURE__ */ Xr(es, [["__scopeId", "data-v-d9ce3008"]]);
|
|
@@ -300,8 +300,8 @@ const ko = class mt {
|
|
|
300
300
|
*/
|
|
301
301
|
runAction(t, n, o) {
|
|
302
302
|
const r = this.registry.registry[t.slug].actions.get(n), { initialState: s } = this.workflow;
|
|
303
|
-
this.workflow.transition(s, { type: n }), r.length > 0 && r.forEach((
|
|
304
|
-
new Function(
|
|
303
|
+
this.workflow.transition(s, { type: n }), r.length > 0 && r.forEach((a) => {
|
|
304
|
+
new Function(a)(o);
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
};
|
|
@@ -338,50 +338,50 @@ class ds {
|
|
|
338
338
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
339
339
|
const o = {};
|
|
340
340
|
if (t.settings)
|
|
341
|
-
for (const
|
|
342
|
-
const
|
|
343
|
-
o[
|
|
341
|
+
for (const a in t.settings) {
|
|
342
|
+
const i = t.settings[a];
|
|
343
|
+
o[a] = i.defaultValue;
|
|
344
344
|
}
|
|
345
345
|
const r = `__vue-devtools-plugin-settings__${t.id}`;
|
|
346
346
|
let s = Object.assign({}, o);
|
|
347
347
|
try {
|
|
348
|
-
const
|
|
349
|
-
Object.assign(s,
|
|
348
|
+
const a = localStorage.getItem(r), i = JSON.parse(a);
|
|
349
|
+
Object.assign(s, i);
|
|
350
350
|
} catch {
|
|
351
351
|
}
|
|
352
352
|
this.fallbacks = {
|
|
353
353
|
getSettings() {
|
|
354
354
|
return s;
|
|
355
355
|
},
|
|
356
|
-
setSettings(
|
|
356
|
+
setSettings(a) {
|
|
357
357
|
try {
|
|
358
|
-
localStorage.setItem(r, JSON.stringify(
|
|
358
|
+
localStorage.setItem(r, JSON.stringify(a));
|
|
359
359
|
} catch {
|
|
360
360
|
}
|
|
361
|
-
s =
|
|
361
|
+
s = a;
|
|
362
362
|
},
|
|
363
363
|
now() {
|
|
364
364
|
return us();
|
|
365
365
|
}
|
|
366
|
-
}, n && n.on(ls, (
|
|
367
|
-
|
|
366
|
+
}, n && n.on(ls, (a, i) => {
|
|
367
|
+
a === this.plugin.id && this.fallbacks.setSettings(i);
|
|
368
368
|
}), this.proxiedOn = new Proxy({}, {
|
|
369
|
-
get: (
|
|
369
|
+
get: (a, i) => this.target ? this.target.on[i] : (...d) => {
|
|
370
370
|
this.onQueue.push({
|
|
371
|
-
method:
|
|
372
|
-
args:
|
|
371
|
+
method: i,
|
|
372
|
+
args: d
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
}), this.proxiedTarget = new Proxy({}, {
|
|
376
|
-
get: (
|
|
377
|
-
method:
|
|
378
|
-
args:
|
|
376
|
+
get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...d) => (this.targetQueue.push({
|
|
377
|
+
method: i,
|
|
378
|
+
args: d,
|
|
379
379
|
resolve: () => {
|
|
380
380
|
}
|
|
381
|
-
}), this.fallbacks[
|
|
381
|
+
}), this.fallbacks[i](...d)) : (...d) => new Promise((l) => {
|
|
382
382
|
this.targetQueue.push({
|
|
383
|
-
method:
|
|
384
|
-
args:
|
|
383
|
+
method: i,
|
|
384
|
+
args: d,
|
|
385
385
|
resolve: l
|
|
386
386
|
});
|
|
387
387
|
})
|
|
@@ -400,12 +400,12 @@ function cn(e, t) {
|
|
|
400
400
|
if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
401
401
|
r.emit(is, e, t);
|
|
402
402
|
else {
|
|
403
|
-
const
|
|
403
|
+
const a = s ? new ds(n, r) : null;
|
|
404
404
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
405
405
|
pluginDescriptor: n,
|
|
406
406
|
setupFn: t,
|
|
407
|
-
proxy:
|
|
408
|
-
}),
|
|
407
|
+
proxy: a
|
|
408
|
+
}), a && t(a.proxiedTarget);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
/*!
|
|
@@ -489,19 +489,19 @@ function hs(e, t = "download", n) {
|
|
|
489
489
|
function ms(e, t, n, o) {
|
|
490
490
|
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
|
|
491
491
|
return un(e, t, n);
|
|
492
|
-
const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Pn.HTMLElement)) || "safari" in Pn,
|
|
493
|
-
if ((
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
let
|
|
497
|
-
if (typeof
|
|
492
|
+
const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Pn.HTMLElement)) || "safari" in Pn, a = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
493
|
+
if ((a || r && s || No) && typeof FileReader < "u") {
|
|
494
|
+
const i = new FileReader();
|
|
495
|
+
i.onloadend = function() {
|
|
496
|
+
let d = i.result;
|
|
497
|
+
if (typeof d != "string")
|
|
498
498
|
throw o = null, new Error("Wrong reader.result type");
|
|
499
|
-
|
|
500
|
-
},
|
|
499
|
+
d = a ? d : d.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = d : location.assign(d), o = null;
|
|
500
|
+
}, i.readAsDataURL(e);
|
|
501
501
|
} else {
|
|
502
|
-
const
|
|
503
|
-
o ? o.location.assign(
|
|
504
|
-
URL.revokeObjectURL(
|
|
502
|
+
const i = URL.createObjectURL(e);
|
|
503
|
+
o ? o.location.assign(i) : location.href = i, o = null, setTimeout(function() {
|
|
504
|
+
URL.revokeObjectURL(i);
|
|
505
505
|
}, 4e4);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
@@ -612,7 +612,7 @@ function Es(e) {
|
|
|
612
612
|
return {
|
|
613
613
|
editable: !1,
|
|
614
614
|
key: r,
|
|
615
|
-
value: s._getters.reduce((
|
|
615
|
+
value: s._getters.reduce((a, i) => (a[i] = s[i], a), {})
|
|
616
616
|
};
|
|
617
617
|
})
|
|
618
618
|
};
|
|
@@ -723,38 +723,38 @@ function xs(e, t) {
|
|
|
723
723
|
}), n.on.inspectComponent((o, r) => {
|
|
724
724
|
const s = o.componentInstance && o.componentInstance.proxy;
|
|
725
725
|
if (s && s._pStores) {
|
|
726
|
-
const
|
|
727
|
-
Object.values(
|
|
726
|
+
const a = o.componentInstance.proxy._pStores;
|
|
727
|
+
Object.values(a).forEach((i) => {
|
|
728
728
|
o.instanceData.state.push({
|
|
729
|
-
type: $t(
|
|
729
|
+
type: $t(i.$id),
|
|
730
730
|
key: "state",
|
|
731
731
|
editable: !0,
|
|
732
|
-
value:
|
|
732
|
+
value: i._isOptionsAPI ? {
|
|
733
733
|
_custom: {
|
|
734
|
-
value: et(
|
|
734
|
+
value: et(i.$state),
|
|
735
735
|
actions: [
|
|
736
736
|
{
|
|
737
737
|
icon: "restore",
|
|
738
738
|
tooltip: "Reset the state of this store",
|
|
739
|
-
action: () =>
|
|
739
|
+
action: () => i.$reset()
|
|
740
740
|
}
|
|
741
741
|
]
|
|
742
742
|
}
|
|
743
743
|
} : (
|
|
744
744
|
// NOTE: workaround to unwrap transferred refs
|
|
745
|
-
Object.keys(
|
|
745
|
+
Object.keys(i.$state).reduce((d, l) => (d[l] = i.$state[l], d), {})
|
|
746
746
|
)
|
|
747
|
-
}),
|
|
748
|
-
type: $t(
|
|
747
|
+
}), i._getters && i._getters.length && o.instanceData.state.push({
|
|
748
|
+
type: $t(i.$id),
|
|
749
749
|
key: "getters",
|
|
750
750
|
editable: !1,
|
|
751
|
-
value:
|
|
751
|
+
value: i._getters.reduce((d, l) => {
|
|
752
752
|
try {
|
|
753
|
-
|
|
754
|
-
} catch (
|
|
755
|
-
|
|
753
|
+
d[l] = i[l];
|
|
754
|
+
} catch (c) {
|
|
755
|
+
d[l] = c;
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return d;
|
|
758
758
|
}, {})
|
|
759
759
|
});
|
|
760
760
|
});
|
|
@@ -776,20 +776,20 @@ function xs(e, t) {
|
|
|
776
776
|
const s = o.nodeId === yt ? t : t._s.get(o.nodeId);
|
|
777
777
|
if (!s)
|
|
778
778
|
return F(`store "${o.nodeId}" not found`, "error");
|
|
779
|
-
const { path:
|
|
780
|
-
dn(s) ?
|
|
779
|
+
const { path: a } = o;
|
|
780
|
+
dn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), Ae = !1, o.set(s, a, o.state.value), Ae = !0;
|
|
781
781
|
}
|
|
782
782
|
}), n.on.editComponentState((o) => {
|
|
783
783
|
if (o.type.startsWith("🍍")) {
|
|
784
784
|
const r = o.type.replace(/^🍍\s*/, ""), s = t._s.get(r);
|
|
785
785
|
if (!s)
|
|
786
786
|
return F(`store "${r}" not found`, "error");
|
|
787
|
-
const { path:
|
|
788
|
-
if (
|
|
787
|
+
const { path: a } = o;
|
|
788
|
+
if (a[0] !== "state")
|
|
789
789
|
return F(`Invalid path for store "${r}":
|
|
790
|
-
${
|
|
790
|
+
${a}
|
|
791
791
|
Only state can be modified.`);
|
|
792
|
-
|
|
792
|
+
a[0] = "$state", Ae = !1, o.set(s, a, o.state.value), Ae = !0;
|
|
793
793
|
}
|
|
794
794
|
});
|
|
795
795
|
});
|
|
@@ -817,86 +817,86 @@ function Ss(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:
|
|
821
|
-
const
|
|
820
|
+
t.$onAction(({ after: a, onError: i, name: d, args: l }) => {
|
|
821
|
+
const c = To++;
|
|
822
822
|
n.addTimelineEvent({
|
|
823
823
|
layerId: Ee,
|
|
824
824
|
event: {
|
|
825
825
|
time: o(),
|
|
826
|
-
title: "🛫 " +
|
|
826
|
+
title: "🛫 " + d,
|
|
827
827
|
subtitle: "start",
|
|
828
828
|
data: {
|
|
829
829
|
store: te(t.$id),
|
|
830
|
-
action: te(
|
|
830
|
+
action: te(d),
|
|
831
831
|
args: l
|
|
832
832
|
},
|
|
833
|
-
groupId:
|
|
833
|
+
groupId: c
|
|
834
834
|
}
|
|
835
|
-
}),
|
|
835
|
+
}), a((u) => {
|
|
836
836
|
ye = void 0, n.addTimelineEvent({
|
|
837
837
|
layerId: Ee,
|
|
838
838
|
event: {
|
|
839
839
|
time: o(),
|
|
840
|
-
title: "🛬 " +
|
|
840
|
+
title: "🛬 " + d,
|
|
841
841
|
subtitle: "end",
|
|
842
842
|
data: {
|
|
843
843
|
store: te(t.$id),
|
|
844
|
-
action: te(
|
|
844
|
+
action: te(d),
|
|
845
845
|
args: l,
|
|
846
|
-
result:
|
|
846
|
+
result: u
|
|
847
847
|
},
|
|
848
|
-
groupId:
|
|
848
|
+
groupId: c
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
|
-
}),
|
|
851
|
+
}), i((u) => {
|
|
852
852
|
ye = void 0, n.addTimelineEvent({
|
|
853
853
|
layerId: Ee,
|
|
854
854
|
event: {
|
|
855
855
|
time: o(),
|
|
856
856
|
logType: "error",
|
|
857
|
-
title: "💥 " +
|
|
857
|
+
title: "💥 " + d,
|
|
858
858
|
subtitle: "end",
|
|
859
859
|
data: {
|
|
860
860
|
store: te(t.$id),
|
|
861
|
-
action: te(
|
|
861
|
+
action: te(d),
|
|
862
862
|
args: l,
|
|
863
|
-
error:
|
|
863
|
+
error: u
|
|
864
864
|
},
|
|
865
|
-
groupId:
|
|
865
|
+
groupId: c
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
});
|
|
869
|
-
}, !0), t._customProperties.forEach((
|
|
870
|
-
z(() =>
|
|
869
|
+
}, !0), t._customProperties.forEach((a) => {
|
|
870
|
+
z(() => k(t[a]), (i, d) => {
|
|
871
871
|
n.notifyComponentUpdate(), n.sendInspectorState(q), Ae && n.addTimelineEvent({
|
|
872
872
|
layerId: Ee,
|
|
873
873
|
event: {
|
|
874
874
|
time: o(),
|
|
875
875
|
title: "Change",
|
|
876
|
-
subtitle:
|
|
876
|
+
subtitle: a,
|
|
877
877
|
data: {
|
|
878
|
-
newValue:
|
|
879
|
-
oldValue:
|
|
878
|
+
newValue: i,
|
|
879
|
+
oldValue: d
|
|
880
880
|
},
|
|
881
881
|
groupId: ye
|
|
882
882
|
}
|
|
883
883
|
});
|
|
884
884
|
}, { deep: !0 });
|
|
885
|
-
}), t.$subscribe(({ events:
|
|
885
|
+
}), t.$subscribe(({ events: a, type: i }, d) => {
|
|
886
886
|
if (n.notifyComponentUpdate(), n.sendInspectorState(q), !Ae)
|
|
887
887
|
return;
|
|
888
888
|
const l = {
|
|
889
889
|
time: o(),
|
|
890
|
-
title: $s(
|
|
891
|
-
data: Os({ store: te(t.$id) }, ks(
|
|
890
|
+
title: $s(i),
|
|
891
|
+
data: Os({ store: te(t.$id) }, ks(a)),
|
|
892
892
|
groupId: ye
|
|
893
893
|
};
|
|
894
|
-
|
|
894
|
+
i === se.patchFunction ? l.subtitle = "⤵️" : i === se.patchObject ? l.subtitle = "🧩" : a && !Array.isArray(a) && (l.subtitle = a.type), a && (l.data["rawEvent(s)"] = {
|
|
895
895
|
_custom: {
|
|
896
896
|
display: "DebuggerEvent",
|
|
897
897
|
type: "object",
|
|
898
898
|
tooltip: "raw DebuggerEvent[]",
|
|
899
|
-
value:
|
|
899
|
+
value: a
|
|
900
900
|
}
|
|
901
901
|
}), n.addTimelineEvent({
|
|
902
902
|
layerId: Ee,
|
|
@@ -904,8 +904,8 @@ function Ss(e, t) {
|
|
|
904
904
|
});
|
|
905
905
|
}, { detached: !0, flush: "sync" });
|
|
906
906
|
const r = t._hotUpdate;
|
|
907
|
-
t._hotUpdate = $e((
|
|
908
|
-
r(
|
|
907
|
+
t._hotUpdate = $e((a) => {
|
|
908
|
+
r(a), n.addTimelineEvent({
|
|
909
909
|
layerId: Ee,
|
|
910
910
|
event: {
|
|
911
911
|
time: o(),
|
|
@@ -929,17 +929,17 @@ function Dn(e, t, n) {
|
|
|
929
929
|
const o = t.reduce((r, s) => (r[s] = et(e)[s], r), {});
|
|
930
930
|
for (const r in o)
|
|
931
931
|
e[r] = function() {
|
|
932
|
-
const s = To,
|
|
933
|
-
get(...
|
|
934
|
-
return ye = s, Reflect.get(...
|
|
932
|
+
const s = To, a = n ? new Proxy(e, {
|
|
933
|
+
get(...d) {
|
|
934
|
+
return ye = s, Reflect.get(...d);
|
|
935
935
|
},
|
|
936
|
-
set(...
|
|
937
|
-
return ye = s, Reflect.set(...
|
|
936
|
+
set(...d) {
|
|
937
|
+
return ye = s, Reflect.set(...d);
|
|
938
938
|
}
|
|
939
939
|
}) : e;
|
|
940
940
|
ye = s;
|
|
941
|
-
const
|
|
942
|
-
return ye = void 0,
|
|
941
|
+
const i = o[r].apply(a, arguments);
|
|
942
|
+
return ye = void 0, i;
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
945
|
function Ns({ app: e, store: t, options: n }) {
|
|
@@ -963,7 +963,7 @@ function Is() {
|
|
|
963
963
|
let n = [], o = [];
|
|
964
964
|
const r = $e({
|
|
965
965
|
install(s) {
|
|
966
|
-
nt(r), r._a = s, s.provide(xo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe && xs(s, r), o.forEach((
|
|
966
|
+
nt(r), r._a = s, s.provide(xo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe && xs(s, r), o.forEach((a) => n.push(a)), o = [];
|
|
967
967
|
},
|
|
968
968
|
use(s) {
|
|
969
969
|
return !this._a && !$o ? o.push(s) : n.push(s), this;
|
|
@@ -1026,39 +1026,39 @@ function Rn(e) {
|
|
|
1026
1026
|
return !!(tt(e) && e.effect);
|
|
1027
1027
|
}
|
|
1028
1028
|
function Vn(e, t, n, o) {
|
|
1029
|
-
const { state: r, actions: s, getters:
|
|
1030
|
-
let
|
|
1029
|
+
const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
|
|
1030
|
+
let d;
|
|
1031
1031
|
function l() {
|
|
1032
|
-
!
|
|
1033
|
-
const
|
|
1032
|
+
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
1033
|
+
const c = process.env.NODE_ENV !== "production" && o ? (
|
|
1034
1034
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1035
1035
|
Cn(C(r ? r() : {}).value)
|
|
1036
1036
|
) : Cn(n.state.value[e]);
|
|
1037
|
-
return Q(
|
|
1037
|
+
return Q(c, s, Object.keys(a || {}).reduce((u, p) => (process.env.NODE_ENV !== "production" && p in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), u[p] = $e(j(() => {
|
|
1038
1038
|
nt(n);
|
|
1039
1039
|
const f = n._s.get(e);
|
|
1040
|
-
return
|
|
1041
|
-
})),
|
|
1040
|
+
return a[p].call(f, f);
|
|
1041
|
+
})), u), {}));
|
|
1042
1042
|
}
|
|
1043
|
-
return
|
|
1043
|
+
return d = Kt(e, l, t, n, o, !0), d;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Kt(e, t, n = {}, o, r, s) {
|
|
1046
|
-
let
|
|
1047
|
-
const
|
|
1046
|
+
let a;
|
|
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" && !$o && (
|
|
1052
|
-
l ? f = b : l == !1 &&
|
|
1050
|
+
const d = { deep: !0 };
|
|
1051
|
+
process.env.NODE_ENV !== "production" && !$o && (d.onTrigger = (b) => {
|
|
1052
|
+
l ? f = b : l == !1 && !$._hotUpdating && (Array.isArray(f) ? f.push(b) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1053
1053
|
});
|
|
1054
|
-
let l,
|
|
1054
|
+
let l, c, u = [], p = [], f;
|
|
1055
1055
|
const m = o.state.value[e];
|
|
1056
1056
|
!s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1057
1057
|
const v = C({});
|
|
1058
|
-
let
|
|
1058
|
+
let _;
|
|
1059
1059
|
function x(b) {
|
|
1060
1060
|
let w;
|
|
1061
|
-
l =
|
|
1061
|
+
l = c = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
|
|
1062
1062
|
type: se.patchFunction,
|
|
1063
1063
|
storeId: e,
|
|
1064
1064
|
events: f
|
|
@@ -1068,10 +1068,10 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1068
1068
|
storeId: e,
|
|
1069
1069
|
events: f
|
|
1070
1070
|
});
|
|
1071
|
-
const L =
|
|
1071
|
+
const L = _ = Symbol();
|
|
1072
1072
|
Re().then(() => {
|
|
1073
|
-
|
|
1074
|
-
}),
|
|
1073
|
+
_ === L && (l = !0);
|
|
1074
|
+
}), c = !0, De(u, w, o.state.value[e]);
|
|
1075
1075
|
}
|
|
1076
1076
|
const O = s ? function() {
|
|
1077
1077
|
const { state: b } = n, w = b ? b() : {};
|
|
@@ -1085,7 +1085,7 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1085
1085
|
} : Vo
|
|
1086
1086
|
);
|
|
1087
1087
|
function P() {
|
|
1088
|
-
|
|
1088
|
+
a.stop(), u = [], p = [], o._s.delete(e);
|
|
1089
1089
|
}
|
|
1090
1090
|
const U = (b, w = "") => {
|
|
1091
1091
|
if (Tn in b)
|
|
@@ -1102,13 +1102,13 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1102
1102
|
De(p, {
|
|
1103
1103
|
args: K,
|
|
1104
1104
|
name: L[jt],
|
|
1105
|
-
store:
|
|
1105
|
+
store: $,
|
|
1106
1106
|
after: He,
|
|
1107
1107
|
onError: it
|
|
1108
1108
|
});
|
|
1109
1109
|
let oe;
|
|
1110
1110
|
try {
|
|
1111
|
-
oe = b.apply(this && this.$id === e ? this :
|
|
1111
|
+
oe = b.apply(this && this.$id === e ? this : $, K);
|
|
1112
1112
|
} catch (G) {
|
|
1113
1113
|
throw De(Ue, G), G;
|
|
1114
1114
|
}
|
|
@@ -1128,17 +1128,17 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1128
1128
|
$patch: x,
|
|
1129
1129
|
$reset: O,
|
|
1130
1130
|
$subscribe(b, w = {}) {
|
|
1131
|
-
const L = An(
|
|
1132
|
-
(w.flush === "sync" ?
|
|
1131
|
+
const L = An(u, b, w.detached, () => K()), K = a.run(() => z(() => o.state.value[e], (ee) => {
|
|
1132
|
+
(w.flush === "sync" ? c : l) && b({
|
|
1133
1133
|
storeId: e,
|
|
1134
1134
|
type: se.direct,
|
|
1135
1135
|
events: f
|
|
1136
1136
|
}, ee);
|
|
1137
|
-
}, Q({},
|
|
1137
|
+
}, Q({}, d, w)));
|
|
1138
1138
|
return L;
|
|
1139
1139
|
},
|
|
1140
1140
|
$dispose: P
|
|
1141
|
-
},
|
|
1141
|
+
}, $ = ke(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe ? Q(
|
|
1142
1142
|
{
|
|
1143
1143
|
_hmrPayload: D,
|
|
1144
1144
|
_customProperties: $e(/* @__PURE__ */ new Set())
|
|
@@ -1148,22 +1148,22 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1148
1148
|
// must be added later
|
|
1149
1149
|
// setupStore
|
|
1150
1150
|
) : B);
|
|
1151
|
-
o._s.set(e,
|
|
1152
|
-
const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (
|
|
1151
|
+
o._s.set(e, $);
|
|
1152
|
+
const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (a = bo()).run(() => t({ action: U }))));
|
|
1153
1153
|
for (const b in ne) {
|
|
1154
1154
|
const w = ne[b];
|
|
1155
1155
|
if (tt(w) && !Rn(w) || an(w))
|
|
1156
1156
|
process.env.NODE_ENV !== "production" && r ? ut(v.value, b, ht(ne, b)) : s || (m && Ds(w) && (tt(w) ? w.value = m[b] : Jt(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" && D.state.push(b);
|
|
1157
1157
|
else if (typeof w == "function") {
|
|
1158
1158
|
const L = process.env.NODE_ENV !== "production" && r ? w : U(w, b);
|
|
1159
|
-
ne[b] = L, process.env.NODE_ENV !== "production" && (D.actions[b] = w),
|
|
1159
|
+
ne[b] = L, process.env.NODE_ENV !== "production" && (D.actions[b] = w), i.actions[b] = w;
|
|
1160
1160
|
} else process.env.NODE_ENV !== "production" && Rn(w) && (D.getters[b] = s ? (
|
|
1161
1161
|
// @ts-expect-error
|
|
1162
1162
|
n.getters[b]
|
|
1163
1163
|
) : w, Oe && (ne._getters || // @ts-expect-error: same
|
|
1164
1164
|
(ne._getters = $e([]))).push(b));
|
|
1165
1165
|
}
|
|
1166
|
-
if (Q(
|
|
1166
|
+
if (Q($, ne), Q(et($), ne), Object.defineProperty($, "$state", {
|
|
1167
1167
|
get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
|
|
1168
1168
|
set: (b) => {
|
|
1169
1169
|
if (process.env.NODE_ENV !== "production" && r)
|
|
@@ -1172,34 +1172,34 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1172
1172
|
Q(w, b);
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
}), process.env.NODE_ENV !== "production" && (
|
|
1176
|
-
|
|
1177
|
-
if (w in
|
|
1178
|
-
const L = b.$state[w], K =
|
|
1175
|
+
}), process.env.NODE_ENV !== "production" && ($._hotUpdate = $e((b) => {
|
|
1176
|
+
$._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
|
|
1177
|
+
if (w in $.$state) {
|
|
1178
|
+
const L = b.$state[w], K = $.$state[w];
|
|
1179
1179
|
typeof L == "object" && Ce(L) && Ce(K) ? Ro(L, K) : b.$state[w] = K;
|
|
1180
1180
|
}
|
|
1181
|
-
ut(
|
|
1182
|
-
}), Object.keys(
|
|
1183
|
-
w in b.$state || Vt(
|
|
1184
|
-
}), l = !1,
|
|
1181
|
+
ut($, w, ht(b.$state, w));
|
|
1182
|
+
}), Object.keys($.$state).forEach((w) => {
|
|
1183
|
+
w in b.$state || Vt($, w);
|
|
1184
|
+
}), l = !1, c = !1, o.state.value[e] = ht(b._hmrPayload, "hotState"), c = !0, Re().then(() => {
|
|
1185
1185
|
l = !0;
|
|
1186
1186
|
});
|
|
1187
1187
|
for (const w in b._hmrPayload.actions) {
|
|
1188
1188
|
const L = b[w];
|
|
1189
|
-
ut(
|
|
1189
|
+
ut($, w, U(L, w));
|
|
1190
1190
|
}
|
|
1191
1191
|
for (const w in b._hmrPayload.getters) {
|
|
1192
1192
|
const L = b._hmrPayload.getters[w], K = s ? (
|
|
1193
1193
|
// special handling of options api
|
|
1194
|
-
j(() => (nt(o), L.call(
|
|
1194
|
+
j(() => (nt(o), L.call($, $)))
|
|
1195
1195
|
) : L;
|
|
1196
|
-
ut(
|
|
1196
|
+
ut($, w, K);
|
|
1197
1197
|
}
|
|
1198
|
-
Object.keys(
|
|
1199
|
-
w in b._hmrPayload.getters || Vt(
|
|
1200
|
-
}), Object.keys(
|
|
1201
|
-
w in b._hmrPayload.actions || Vt(
|
|
1202
|
-
}),
|
|
1198
|
+
Object.keys($._hmrPayload.getters).forEach((w) => {
|
|
1199
|
+
w in b._hmrPayload.getters || Vt($, w);
|
|
1200
|
+
}), Object.keys($._hmrPayload.actions).forEach((w) => {
|
|
1201
|
+
w in b._hmrPayload.actions || Vt($, w);
|
|
1202
|
+
}), $._hmrPayload = b._hmrPayload, $._getters = b._getters, $._hotUpdating = !1;
|
|
1203
1203
|
})), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1204
1204
|
const b = {
|
|
1205
1205
|
writable: !0,
|
|
@@ -1208,59 +1208,59 @@ function Kt(e, t, n = {}, o, r, s) {
|
|
|
1208
1208
|
enumerable: !1
|
|
1209
1209
|
};
|
|
1210
1210
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
|
1211
|
-
Object.defineProperty(
|
|
1211
|
+
Object.defineProperty($, w, Q({ value: $[w] }, b));
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
1214
|
return o._p.forEach((b) => {
|
|
1215
1215
|
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
|
|
1216
|
-
const w =
|
|
1217
|
-
store:
|
|
1216
|
+
const w = a.run(() => b({
|
|
1217
|
+
store: $,
|
|
1218
1218
|
app: o._a,
|
|
1219
1219
|
pinia: o,
|
|
1220
|
-
options:
|
|
1220
|
+
options: i
|
|
1221
1221
|
}));
|
|
1222
|
-
Object.keys(w || {}).forEach((L) =>
|
|
1222
|
+
Object.keys(w || {}).forEach((L) => $._customProperties.add(L)), Q($, w);
|
|
1223
1223
|
} else
|
|
1224
|
-
Q(
|
|
1225
|
-
store:
|
|
1224
|
+
Q($, a.run(() => b({
|
|
1225
|
+
store: $,
|
|
1226
1226
|
app: o._a,
|
|
1227
1227
|
pinia: o,
|
|
1228
|
-
options:
|
|
1228
|
+
options: i
|
|
1229
1229
|
})));
|
|
1230
|
-
}), process.env.NODE_ENV !== "production" &&
|
|
1230
|
+
}), process.env.NODE_ENV !== "production" && $.$state && typeof $.$state == "object" && typeof $.$state.constructor == "function" && !$.$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 "${$.$id}".`), m && s && n.hydrate && n.hydrate($.$state, m), l = !0, c = !0, $;
|
|
1233
1233
|
}
|
|
1234
1234
|
// @__NO_SIDE_EFFECTS__
|
|
1235
1235
|
function As(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 i
|
|
1239
|
+
function a(i, d) {
|
|
1240
1240
|
const l = Pr();
|
|
1241
|
-
if (
|
|
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" && qe && qe._testing ? null :
|
|
1243
|
+
(process.env.NODE_ENV === "test" && qe && qe._testing ? null : i) || (l ? ae(xo, null) : null), i && nt(i), process.env.NODE_ENV !== "production" && !qe)
|
|
1244
1244
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1245
1245
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1246
1246
|
This will fail in production.`);
|
|
1247
|
-
|
|
1248
|
-
const
|
|
1249
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1247
|
+
i = qe, i._s.has(o) || (s ? Kt(o, t, r, i) : Vn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
1248
|
+
const c = i._s.get(o);
|
|
1249
|
+
if (process.env.NODE_ENV !== "production" && d) {
|
|
1250
|
+
const u = "__hot:" + o, p = s ? Kt(u, t, r, i, !0) : Vn(u, Q({}, r), i, !0);
|
|
1251
|
+
d._hotUpdate(p), delete i.state.value[u], i._s.delete(u);
|
|
1252
1252
|
}
|
|
1253
1253
|
if (process.env.NODE_ENV !== "production" && Oe) {
|
|
1254
|
-
const
|
|
1255
|
-
if (
|
|
1256
|
-
!
|
|
1257
|
-
const p =
|
|
1258
|
-
f[o] =
|
|
1254
|
+
const u = We();
|
|
1255
|
+
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1256
|
+
!d) {
|
|
1257
|
+
const p = u.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
1258
|
+
f[o] = c;
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return c;
|
|
1262
1262
|
}
|
|
1263
|
-
return
|
|
1263
|
+
return a.$id = o, a;
|
|
1264
1264
|
}
|
|
1265
1265
|
const Ts = /* @__PURE__ */ As("data", () => {
|
|
1266
1266
|
const e = C([]), t = C({});
|
|
@@ -1271,11 +1271,11 @@ function jo(e) {
|
|
|
1271
1271
|
const t = Ts(), n = C(new rs(e, t)), o = C(!1);
|
|
1272
1272
|
return Nr(async () => {
|
|
1273
1273
|
var r, s;
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1274
|
+
const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), d = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
|
|
1275
|
+
if (!i && !d)
|
|
1276
1276
|
return;
|
|
1277
|
-
const l = await e.getMeta(
|
|
1278
|
-
e.addDoctype(l), n.value.setup(l),
|
|
1277
|
+
const l = await e.getMeta(i);
|
|
1278
|
+
e.addDoctype(l), n.value.setup(l), i && (d ? await n.value.getRecord(l, d) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", d ? [d] : void 0), o.value = !0;
|
|
1279
1279
|
}), { stonecrop: n, isReady: o };
|
|
1280
1280
|
}
|
|
1281
1281
|
const Rs = class bt {
|
|
@@ -1351,14 +1351,14 @@ function Ve(e) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
const Ys = /\/$/, Qs = (e) => e.replace(Ys, "");
|
|
1353
1353
|
function Mt(e, t, n = "/") {
|
|
1354
|
-
let o, r = {}, s = "",
|
|
1355
|
-
const
|
|
1356
|
-
let
|
|
1357
|
-
return
|
|
1358
|
-
fullPath: o + (s && "?") + s +
|
|
1354
|
+
let o, r = {}, s = "", a = "";
|
|
1355
|
+
const i = t.indexOf("#");
|
|
1356
|
+
let d = t.indexOf("?");
|
|
1357
|
+
return i < d && i >= 0 && (d = -1), d > -1 && (o = t.slice(0, d), s = t.slice(d + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = ea(o ?? t, n), {
|
|
1358
|
+
fullPath: o + (s && "?") + s + a,
|
|
1359
1359
|
path: o,
|
|
1360
1360
|
query: r,
|
|
1361
|
-
hash: Ve(
|
|
1361
|
+
hash: Ve(a)
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
1364
|
function Xs(e, t) {
|
|
@@ -1398,14 +1398,14 @@ function ea(e, t) {
|
|
|
1398
1398
|
return t;
|
|
1399
1399
|
const n = t.split("/"), o = e.split("/"), r = o[o.length - 1];
|
|
1400
1400
|
(r === ".." || r === ".") && o.push("");
|
|
1401
|
-
let s = n.length - 1,
|
|
1402
|
-
for (
|
|
1403
|
-
if (
|
|
1404
|
-
if (
|
|
1401
|
+
let s = n.length - 1, a, i;
|
|
1402
|
+
for (a = 0; a < o.length; a++)
|
|
1403
|
+
if (i = o[a], i !== ".")
|
|
1404
|
+
if (i === "..")
|
|
1405
1405
|
s > 1 && s--;
|
|
1406
1406
|
else
|
|
1407
1407
|
break;
|
|
1408
|
-
return n.slice(0, s).join("/") + "/" + o.slice(
|
|
1408
|
+
return n.slice(0, s).join("/") + "/" + o.slice(a).join("/");
|
|
1409
1409
|
}
|
|
1410
1410
|
const me = {
|
|
1411
1411
|
path: "/",
|
|
@@ -1492,34 +1492,34 @@ let la = () => location.protocol + "//" + location.host;
|
|
|
1492
1492
|
function zo(e, t) {
|
|
1493
1493
|
const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
|
|
1494
1494
|
if (s > -1) {
|
|
1495
|
-
let
|
|
1496
|
-
return
|
|
1495
|
+
let a = r.includes(e.slice(s)) ? e.slice(s).length : 1, i = r.slice(a);
|
|
1496
|
+
return i[0] !== "/" && (i = "/" + i), jn(i, "");
|
|
1497
1497
|
}
|
|
1498
1498
|
return jn(n, e) + o + r;
|
|
1499
1499
|
}
|
|
1500
1500
|
function ca(e, t, n, o) {
|
|
1501
|
-
let r = [], s = [],
|
|
1502
|
-
const
|
|
1501
|
+
let r = [], s = [], a = null;
|
|
1502
|
+
const i = ({ state: p }) => {
|
|
1503
1503
|
const f = zo(e, location), m = n.value, v = t.value;
|
|
1504
|
-
let
|
|
1504
|
+
let _ = 0;
|
|
1505
1505
|
if (p) {
|
|
1506
|
-
if (n.value = f, t.value = p,
|
|
1507
|
-
|
|
1506
|
+
if (n.value = f, t.value = p, a && a === m) {
|
|
1507
|
+
a = null;
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
1510
|
-
|
|
1510
|
+
_ = v ? p.position - v.position : 0;
|
|
1511
1511
|
} else
|
|
1512
1512
|
o(f);
|
|
1513
1513
|
r.forEach((x) => {
|
|
1514
1514
|
x(n.value, m, {
|
|
1515
|
-
delta:
|
|
1515
|
+
delta: _,
|
|
1516
1516
|
type: ot.pop,
|
|
1517
|
-
direction:
|
|
1517
|
+
direction: _ ? _ > 0 ? Ye.forward : Ye.back : Ye.unknown
|
|
1518
1518
|
});
|
|
1519
1519
|
});
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1522
|
-
|
|
1521
|
+
function d() {
|
|
1522
|
+
a = n.value;
|
|
1523
1523
|
}
|
|
1524
1524
|
function l(p) {
|
|
1525
1525
|
r.push(p);
|
|
@@ -1529,21 +1529,21 @@ function ca(e, t, n, o) {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
return s.push(f), f;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function c() {
|
|
1533
1533
|
const { history: p } = window;
|
|
1534
1534
|
p.state && p.replaceState(R({}, p.state, { scroll: It() }), "");
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function u() {
|
|
1537
1537
|
for (const p of s)
|
|
1538
1538
|
p();
|
|
1539
|
-
s = [], window.removeEventListener("popstate",
|
|
1539
|
+
s = [], window.removeEventListener("popstate", i), window.removeEventListener("beforeunload", c);
|
|
1540
1540
|
}
|
|
1541
|
-
return window.addEventListener("popstate",
|
|
1541
|
+
return window.addEventListener("popstate", i), window.addEventListener("beforeunload", c, {
|
|
1542
1542
|
passive: !0
|
|
1543
1543
|
}), {
|
|
1544
|
-
pauseListeners:
|
|
1544
|
+
pauseListeners: d,
|
|
1545
1545
|
listen: l,
|
|
1546
|
-
destroy:
|
|
1546
|
+
destroy: u
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
1549
|
function Wn(e, t, n, o = !1, r = !1) {
|
|
@@ -1571,26 +1571,26 @@ function ua(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(d, l, c) {
|
|
1575
|
+
const u = e.indexOf("#"), p = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + d : la() + e + d;
|
|
1576
1576
|
try {
|
|
1577
|
-
t[
|
|
1577
|
+
t[c ? "replaceState" : "pushState"](l, "", p), r.value = l;
|
|
1578
1578
|
} catch (f) {
|
|
1579
|
-
process.env.NODE_ENV !== "production" ? S("Error with push/replace State", f) : console.error(f), n[
|
|
1579
|
+
process.env.NODE_ENV !== "production" ? S("Error with push/replace State", f) : console.error(f), n[c ? "replace" : "assign"](p);
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1583
|
-
const
|
|
1582
|
+
function a(d, l) {
|
|
1583
|
+
const c = R({}, t.state, Wn(
|
|
1584
1584
|
r.value.back,
|
|
1585
1585
|
// keep back and forward entries but override current position
|
|
1586
|
-
|
|
1586
|
+
d,
|
|
1587
1587
|
r.value.forward,
|
|
1588
1588
|
!0
|
|
1589
1589
|
), l, { position: r.value.position });
|
|
1590
|
-
s(
|
|
1590
|
+
s(d, c, !0), o.value = d;
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1593
|
-
const
|
|
1592
|
+
function i(d, l) {
|
|
1593
|
+
const c = R(
|
|
1594
1594
|
{},
|
|
1595
1595
|
// use current history state to gracefully handle a wrong call to
|
|
1596
1596
|
// history.replaceState
|
|
@@ -1598,7 +1598,7 @@ function ua(e) {
|
|
|
1598
1598
|
r.value,
|
|
1599
1599
|
t.state,
|
|
1600
1600
|
{
|
|
1601
|
-
forward:
|
|
1601
|
+
forward: d,
|
|
1602
1602
|
scroll: It()
|
|
1603
1603
|
}
|
|
1604
1604
|
);
|
|
@@ -1606,22 +1606,22 @@ function ua(e) {
|
|
|
1606
1606
|
|
|
1607
1607
|
history.replaceState(history.state, '', url)
|
|
1608
1608
|
|
|
1609
|
-
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(
|
|
1610
|
-
const
|
|
1611
|
-
s(
|
|
1609
|
+
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
|
|
1610
|
+
const u = R({}, Wn(o.value, d, null), { position: c.position + 1 }, l);
|
|
1611
|
+
s(d, u, !1), o.value = d;
|
|
1612
1612
|
}
|
|
1613
1613
|
return {
|
|
1614
1614
|
location: o,
|
|
1615
1615
|
state: r,
|
|
1616
|
-
push:
|
|
1617
|
-
replace:
|
|
1616
|
+
push: i,
|
|
1617
|
+
replace: a
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
function da(e) {
|
|
1621
1621
|
e = ta(e);
|
|
1622
1622
|
const t = ua(e), n = ca(e, t.state, t.location, t.replace);
|
|
1623
|
-
function o(s,
|
|
1624
|
-
|
|
1623
|
+
function o(s, a = !0) {
|
|
1624
|
+
a || n.pauseListeners(), history.go(s);
|
|
1625
1625
|
}
|
|
1626
1626
|
const r = R({
|
|
1627
1627
|
// it's overridden right after
|
|
@@ -1703,22 +1703,22 @@ function ga(e, t) {
|
|
|
1703
1703
|
let r = n.start ? "^" : "";
|
|
1704
1704
|
const s = [];
|
|
1705
1705
|
for (const l of e) {
|
|
1706
|
-
const
|
|
1706
|
+
const c = l.length ? [] : [
|
|
1707
1707
|
90
|
|
1708
1708
|
/* PathScore.Root */
|
|
1709
1709
|
];
|
|
1710
1710
|
n.strict && !l.length && (r += "/");
|
|
1711
|
-
for (let
|
|
1712
|
-
const p = l[
|
|
1711
|
+
for (let u = 0; u < l.length; u++) {
|
|
1712
|
+
const p = l[u];
|
|
1713
1713
|
let f = 40 + (n.sensitive ? 0.25 : 0);
|
|
1714
1714
|
if (p.type === 0)
|
|
1715
|
-
|
|
1715
|
+
u || (r += "/"), r += p.value.replace(va, "\\$&"), f += 40;
|
|
1716
1716
|
else if (p.type === 1) {
|
|
1717
|
-
const { value: m, repeatable: v, optional:
|
|
1717
|
+
const { value: m, repeatable: v, optional: _, regexp: x } = p;
|
|
1718
1718
|
s.push({
|
|
1719
1719
|
name: m,
|
|
1720
1720
|
repeatable: v,
|
|
1721
|
-
optional:
|
|
1721
|
+
optional: _
|
|
1722
1722
|
});
|
|
1723
1723
|
const O = x || Hn;
|
|
1724
1724
|
if (O !== Hn) {
|
|
@@ -1730,58 +1730,58 @@ function ga(e, t) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
let P = v ? `((?:${O})(?:/(?:${O}))*)` : `(${O})`;
|
|
1733
|
-
|
|
1733
|
+
u || (P = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
1734
1734
|
// or /:p?-:p2
|
|
1735
|
-
|
|
1735
|
+
_ && l.length < 2 ? `(?:/${P})` : "/" + P), _ && (P += "?"), r += P, f += 20, _ && (f += -8), v && (f += -20), O === ".*" && (f += -50);
|
|
1736
1736
|
}
|
|
1737
|
-
|
|
1737
|
+
c.push(f);
|
|
1738
1738
|
}
|
|
1739
|
-
o.push(
|
|
1739
|
+
o.push(c);
|
|
1740
1740
|
}
|
|
1741
1741
|
if (n.strict && n.end) {
|
|
1742
1742
|
const l = o.length - 1;
|
|
1743
1743
|
o[l][o[l].length - 1] += 0.7000000000000001;
|
|
1744
1744
|
}
|
|
1745
1745
|
n.strict || (r += "/?"), n.end ? r += "$" : n.strict && (r += "(?:/|$)");
|
|
1746
|
-
const
|
|
1747
|
-
function
|
|
1748
|
-
const
|
|
1749
|
-
if (!
|
|
1746
|
+
const a = new RegExp(r, n.sensitive ? "" : "i");
|
|
1747
|
+
function i(l) {
|
|
1748
|
+
const c = l.match(a), u = {};
|
|
1749
|
+
if (!c)
|
|
1750
1750
|
return null;
|
|
1751
|
-
for (let p = 1; p <
|
|
1752
|
-
const f =
|
|
1753
|
-
|
|
1751
|
+
for (let p = 1; p < c.length; p++) {
|
|
1752
|
+
const f = c[p] || "", m = s[p - 1];
|
|
1753
|
+
u[m.name] = f && m.repeatable ? f.split("/") : f;
|
|
1754
1754
|
}
|
|
1755
|
-
return
|
|
1755
|
+
return u;
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
let
|
|
1757
|
+
function d(l) {
|
|
1758
|
+
let c = "", u = !1;
|
|
1759
1759
|
for (const p of e) {
|
|
1760
|
-
(!
|
|
1760
|
+
(!u || !c.endsWith("/")) && (c += "/"), u = !1;
|
|
1761
1761
|
for (const f of p)
|
|
1762
1762
|
if (f.type === 0)
|
|
1763
|
-
|
|
1763
|
+
c += f.value;
|
|
1764
1764
|
else if (f.type === 1) {
|
|
1765
|
-
const { value: m, repeatable: v, optional:
|
|
1765
|
+
const { value: m, repeatable: v, optional: _ } = f, x = m in l ? l[m] : "";
|
|
1766
1766
|
if (Y(x) && !v)
|
|
1767
1767
|
throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
|
|
1768
1768
|
const O = Y(x) ? x.join("/") : x;
|
|
1769
1769
|
if (!O)
|
|
1770
|
-
if (
|
|
1771
|
-
p.length < 2 && (
|
|
1770
|
+
if (_)
|
|
1771
|
+
p.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : u = !0);
|
|
1772
1772
|
else
|
|
1773
1773
|
throw new Error(`Missing required param "${m}"`);
|
|
1774
|
-
|
|
1774
|
+
c += O;
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
|
-
return
|
|
1777
|
+
return c || "/";
|
|
1778
1778
|
}
|
|
1779
1779
|
return {
|
|
1780
|
-
re:
|
|
1780
|
+
re: a,
|
|
1781
1781
|
score: o,
|
|
1782
1782
|
keys: s,
|
|
1783
|
-
parse:
|
|
1784
|
-
stringify:
|
|
1783
|
+
parse: i,
|
|
1784
|
+
stringify: d
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
1787
|
function ya(e, t) {
|
|
@@ -1832,59 +1832,59 @@ function _a(e) {
|
|
|
1832
1832
|
let n = 0, o = n;
|
|
1833
1833
|
const r = [];
|
|
1834
1834
|
let s;
|
|
1835
|
-
function
|
|
1835
|
+
function a() {
|
|
1836
1836
|
s && r.push(s), s = [];
|
|
1837
1837
|
}
|
|
1838
|
-
let
|
|
1839
|
-
function
|
|
1838
|
+
let i = 0, d, l = "", c = "";
|
|
1839
|
+
function u() {
|
|
1840
1840
|
l && (n === 0 ? s.push({
|
|
1841
1841
|
type: 0,
|
|
1842
1842
|
value: l
|
|
1843
|
-
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (
|
|
1843
|
+
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (d === "*" || d === "+") && t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`), s.push({
|
|
1844
1844
|
type: 1,
|
|
1845
1845
|
value: l,
|
|
1846
|
-
regexp:
|
|
1847
|
-
repeatable:
|
|
1848
|
-
optional:
|
|
1846
|
+
regexp: c,
|
|
1847
|
+
repeatable: d === "*" || d === "+",
|
|
1848
|
+
optional: d === "*" || d === "?"
|
|
1849
1849
|
})) : t("Invalid state to consume buffer"), l = "");
|
|
1850
1850
|
}
|
|
1851
1851
|
function p() {
|
|
1852
|
-
l +=
|
|
1852
|
+
l += d;
|
|
1853
1853
|
}
|
|
1854
|
-
for (;
|
|
1855
|
-
if (
|
|
1854
|
+
for (; i < e.length; ) {
|
|
1855
|
+
if (d = e[i++], d === "\\" && n !== 2) {
|
|
1856
1856
|
o = n, n = 4;
|
|
1857
1857
|
continue;
|
|
1858
1858
|
}
|
|
1859
1859
|
switch (n) {
|
|
1860
1860
|
case 0:
|
|
1861
|
-
|
|
1861
|
+
d === "/" ? (l && u(), a()) : d === ":" ? (u(), n = 1) : p();
|
|
1862
1862
|
break;
|
|
1863
1863
|
case 4:
|
|
1864
1864
|
p(), n = o;
|
|
1865
1865
|
break;
|
|
1866
1866
|
case 1:
|
|
1867
|
-
|
|
1867
|
+
d === "(" ? n = 2 : ba.test(d) ? p() : (u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--);
|
|
1868
1868
|
break;
|
|
1869
1869
|
case 2:
|
|
1870
|
-
|
|
1870
|
+
d === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + d : n = 3 : c += d;
|
|
1871
1871
|
break;
|
|
1872
1872
|
case 3:
|
|
1873
|
-
|
|
1873
|
+
u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--, c = "";
|
|
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 "${l}"`),
|
|
1880
|
+
return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), u(), a(), r;
|
|
1881
1881
|
}
|
|
1882
1882
|
function Ea(e, t, n) {
|
|
1883
1883
|
const o = ga(_a(e.path), n);
|
|
1884
1884
|
if (process.env.NODE_ENV !== "production") {
|
|
1885
1885
|
const s = /* @__PURE__ */ new Set();
|
|
1886
|
-
for (const
|
|
1887
|
-
s.has(
|
|
1886
|
+
for (const a of o.keys)
|
|
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 = R(o, {
|
|
1890
1890
|
record: e,
|
|
@@ -1898,15 +1898,15 @@ function Ea(e, t, n) {
|
|
|
1898
1898
|
function ka(e, t) {
|
|
1899
1899
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
1900
1900
|
t = Jn({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
1901
|
-
function r(
|
|
1902
|
-
return o.get(
|
|
1901
|
+
function r(u) {
|
|
1902
|
+
return o.get(u);
|
|
1903
1903
|
}
|
|
1904
|
-
function s(
|
|
1905
|
-
const m = !f, v = Gn(
|
|
1904
|
+
function s(u, p, f) {
|
|
1905
|
+
const m = !f, v = Gn(u);
|
|
1906
1906
|
process.env.NODE_ENV !== "production" && Sa(v, p), v.aliasOf = f && f.record;
|
|
1907
|
-
const
|
|
1908
|
-
if ("alias" in
|
|
1909
|
-
const U = typeof
|
|
1907
|
+
const _ = Jn(t, u), x = [v];
|
|
1908
|
+
if ("alias" in u) {
|
|
1909
|
+
const U = typeof u.alias == "string" ? [u.alias] : u.alias;
|
|
1910
1910
|
for (const D of U)
|
|
1911
1911
|
x.push(
|
|
1912
1912
|
// we need to normalize again to ensure the `mods` property
|
|
@@ -1927,51 +1927,51 @@ function ka(e, t) {
|
|
|
1927
1927
|
for (const U of x) {
|
|
1928
1928
|
const { path: D } = U;
|
|
1929
1929
|
if (p && D[0] !== "/") {
|
|
1930
|
-
const B = p.record.path,
|
|
1931
|
-
U.path = p.record.path + (D &&
|
|
1930
|
+
const B = p.record.path, $ = B[B.length - 1] === "/" ? "" : "/";
|
|
1931
|
+
U.path = p.record.path + (D && $ + D);
|
|
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 = Ea(U, p,
|
|
1936
|
+
if (O = Ea(U, p, _), process.env.NODE_ENV !== "production" && p && D[0] === "/" && Na(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && xa(f, O)) : (P = P || O, P !== O && P.alias.push(O), m && u.name && !qn(O) && a(u.name)), Jo(O) && d(O), v.children) {
|
|
1937
1937
|
const B = v.children;
|
|
1938
|
-
for (let
|
|
1939
|
-
s(B[
|
|
1938
|
+
for (let $ = 0; $ < B.length; $++)
|
|
1939
|
+
s(B[$], O, f && f.children[$]);
|
|
1940
1940
|
}
|
|
1941
1941
|
f = f || O;
|
|
1942
1942
|
}
|
|
1943
1943
|
return P ? () => {
|
|
1944
|
-
|
|
1944
|
+
a(P);
|
|
1945
1945
|
} : Ke;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1948
|
-
if (Go(
|
|
1949
|
-
const p = o.get(
|
|
1950
|
-
p && (o.delete(
|
|
1947
|
+
function a(u) {
|
|
1948
|
+
if (Go(u)) {
|
|
1949
|
+
const p = o.get(u);
|
|
1950
|
+
p && (o.delete(u), 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(u);
|
|
1953
|
+
p > -1 && (n.splice(p, 1), u.record.name && o.delete(u.record.name), u.children.forEach(a), u.alias.forEach(a));
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function i() {
|
|
1957
1957
|
return n;
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
const p = Ia(
|
|
1961
|
-
n.splice(p, 0,
|
|
1959
|
+
function d(u) {
|
|
1960
|
+
const p = Ia(u, n);
|
|
1961
|
+
n.splice(p, 0, u), u.record.name && !qn(u) && o.set(u.record.name, u);
|
|
1962
1962
|
}
|
|
1963
|
-
function l(
|
|
1964
|
-
let f, m = {}, v,
|
|
1965
|
-
if ("name" in
|
|
1966
|
-
if (f = o.get(
|
|
1963
|
+
function l(u, p) {
|
|
1964
|
+
let f, m = {}, v, _;
|
|
1965
|
+
if ("name" in u && u.name) {
|
|
1966
|
+
if (f = o.get(u.name), !f)
|
|
1967
1967
|
throw je(1, {
|
|
1968
|
-
location:
|
|
1968
|
+
location: u
|
|
1969
1969
|
});
|
|
1970
1970
|
if (process.env.NODE_ENV !== "production") {
|
|
1971
|
-
const P = Object.keys(
|
|
1971
|
+
const P = Object.keys(u.params || {}).filter((U) => !f.keys.find((D) => D.name === U));
|
|
1972
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
|
+
_ = f.record.name, m = R(
|
|
1975
1975
|
// paramsFromLocation is a new object
|
|
1976
1976
|
zn(
|
|
1977
1977
|
p.params,
|
|
@@ -1981,40 +1981,40 @@ 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
|
-
|
|
1984
|
+
u.params && zn(u.params, f.keys.map((P) => P.name))
|
|
1985
1985
|
), v = f.stringify(m);
|
|
1986
|
-
} else if (
|
|
1987
|
-
v =
|
|
1986
|
+
} else if (u.path != null)
|
|
1987
|
+
v = u.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((P) => P.re.test(v)), f && (m = f.parse(v), _ = 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 je(1, {
|
|
1991
|
-
location:
|
|
1991
|
+
location: u,
|
|
1992
1992
|
currentLocation: p
|
|
1993
1993
|
});
|
|
1994
|
-
|
|
1994
|
+
_ = f.record.name, m = R({}, p.params, u.params), v = f.stringify(m);
|
|
1995
1995
|
}
|
|
1996
1996
|
const x = [];
|
|
1997
1997
|
let O = f;
|
|
1998
1998
|
for (; O; )
|
|
1999
1999
|
x.unshift(O.record), O = O.parent;
|
|
2000
2000
|
return {
|
|
2001
|
-
name:
|
|
2001
|
+
name: _,
|
|
2002
2002
|
path: v,
|
|
2003
2003
|
params: m,
|
|
2004
2004
|
matched: x,
|
|
2005
2005
|
meta: Oa(x)
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
|
-
e.forEach((
|
|
2009
|
-
function
|
|
2008
|
+
e.forEach((u) => s(u));
|
|
2009
|
+
function c() {
|
|
2010
2010
|
n.length = 0, o.clear();
|
|
2011
2011
|
}
|
|
2012
2012
|
return {
|
|
2013
2013
|
addRoute: s,
|
|
2014
2014
|
resolve: l,
|
|
2015
|
-
removeRoute:
|
|
2016
|
-
clearRoutes:
|
|
2017
|
-
getRoutes:
|
|
2015
|
+
removeRoute: a,
|
|
2016
|
+
clearRoutes: c,
|
|
2017
|
+
getRoutes: i,
|
|
2018
2018
|
getRecordMatcher: r
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
@@ -2115,12 +2115,12 @@ function Pa(e) {
|
|
|
2115
2115
|
return t;
|
|
2116
2116
|
const n = (e[0] === "?" ? e.slice(1) : e).split("&");
|
|
2117
2117
|
for (let o = 0; o < n.length; ++o) {
|
|
2118
|
-
const r = n[o].replace(Bo, " "), s = r.indexOf("="),
|
|
2119
|
-
if (
|
|
2120
|
-
let
|
|
2121
|
-
Y(
|
|
2118
|
+
const r = n[o].replace(Bo, " "), s = r.indexOf("="), a = Ve(s < 0 ? r : r.slice(0, s)), i = s < 0 ? null : Ve(r.slice(s + 1));
|
|
2119
|
+
if (a in t) {
|
|
2120
|
+
let d = t[a];
|
|
2121
|
+
Y(d) || (d = t[a] = [d]), d.push(i);
|
|
2122
2122
|
} else
|
|
2123
|
-
t[
|
|
2123
|
+
t[a] = i;
|
|
2124
2124
|
}
|
|
2125
2125
|
return t;
|
|
2126
2126
|
}
|
|
@@ -2164,33 +2164,33 @@ function ze() {
|
|
|
2164
2164
|
reset: n
|
|
2165
2165
|
};
|
|
2166
2166
|
}
|
|
2167
|
-
function ve(e, t, n, o, r, s = (
|
|
2168
|
-
const
|
|
2167
|
+
function ve(e, t, n, o, r, s = (a) => a()) {
|
|
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((
|
|
2170
|
+
return () => new Promise((i, d) => {
|
|
2171
2171
|
const l = (p) => {
|
|
2172
|
-
p === !1 ?
|
|
2172
|
+
p === !1 ? d(je(4, {
|
|
2173
2173
|
from: n,
|
|
2174
2174
|
to: t
|
|
2175
|
-
})) : p instanceof Error ?
|
|
2175
|
+
})) : p instanceof Error ? d(p) : Ot(p) ? d(je(2, {
|
|
2176
2176
|
from: t,
|
|
2177
2177
|
to: p
|
|
2178
|
-
})) : (
|
|
2179
|
-
o.enterCallbacks[r] ===
|
|
2180
|
-
},
|
|
2181
|
-
let
|
|
2182
|
-
if (e.length < 3 && (
|
|
2178
|
+
})) : (a && // since enterCallbackArray is truthy, both record and name also are
|
|
2179
|
+
o.enterCallbacks[r] === a && typeof p == "function" && a.push(p), i());
|
|
2180
|
+
}, c = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Ta(l, t, n) : l));
|
|
2181
|
+
let u = Promise.resolve(c);
|
|
2182
|
+
if (e.length < 3 && (u = u.then(l)), 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
|
-
if (typeof
|
|
2187
|
-
|
|
2188
|
-
else if (
|
|
2189
|
-
S(p),
|
|
2186
|
+
if (typeof c == "object" && "then" in c)
|
|
2187
|
+
u = u.then((f) => l._called ? f : (S(p), Promise.reject(new Error("Invalid navigation guard"))));
|
|
2188
|
+
else if (c !== void 0 && !l._called) {
|
|
2189
|
+
S(p), d(new Error("Invalid navigation guard"));
|
|
2190
2190
|
return;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
|
-
|
|
2193
|
+
u.catch((p) => d(p));
|
|
2194
2194
|
});
|
|
2195
2195
|
}
|
|
2196
2196
|
function Ta(e, t, n) {
|
|
@@ -2201,33 +2201,33 @@ function Ta(e, t, n) {
|
|
|
2201
2201
|
}
|
|
2202
2202
|
function Bt(e, t, n, o, r = (s) => s()) {
|
|
2203
2203
|
const s = [];
|
|
2204
|
-
for (const
|
|
2205
|
-
process.env.NODE_ENV !== "production" && !
|
|
2206
|
-
for (const
|
|
2207
|
-
let
|
|
2204
|
+
for (const a of e) {
|
|
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
|
+
for (const i in a.components) {
|
|
2207
|
+
let d = a.components[i];
|
|
2208
2208
|
if (process.env.NODE_ENV !== "production") {
|
|
2209
|
-
if (!
|
|
2210
|
-
throw S(`Component "${
|
|
2211
|
-
if ("then" in
|
|
2212
|
-
S(`Component "${
|
|
2213
|
-
const l =
|
|
2214
|
-
|
|
2215
|
-
} else
|
|
2216
|
-
!
|
|
2209
|
+
if (!d || typeof d != "object" && typeof d != "function")
|
|
2210
|
+
throw S(`Component "${i}" in record with path "${a.path}" is not a valid component. Received "${String(d)}".`), new Error("Invalid route component");
|
|
2211
|
+
if ("then" in d) {
|
|
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 l = d;
|
|
2214
|
+
d = () => l;
|
|
2215
|
+
} else d.__asyncLoader && // warn only once per component
|
|
2216
|
+
!d.__warnedDefineAsync && (d.__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
|
-
if (!(t !== "beforeRouteEnter" && !
|
|
2219
|
-
if (Lo(
|
|
2220
|
-
const l = (
|
|
2221
|
-
l && s.push(ve(l, n, o,
|
|
2218
|
+
if (!(t !== "beforeRouteEnter" && !a.instances[i]))
|
|
2219
|
+
if (Lo(d)) {
|
|
2220
|
+
const l = (d.__vccOpts || d)[t];
|
|
2221
|
+
l && s.push(ve(l, n, o, a, i, r));
|
|
2222
2222
|
} else {
|
|
2223
|
-
let l =
|
|
2224
|
-
process.env.NODE_ENV !== "production" && !("catch" in l) && (S(`Component "${
|
|
2225
|
-
if (!
|
|
2226
|
-
throw new Error(`Couldn't resolve component "${
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
const p = (
|
|
2230
|
-
return p && ve(p, n, o,
|
|
2223
|
+
let l = d();
|
|
2224
|
+
process.env.NODE_ENV !== "production" && !("catch" in l) && (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.`), l = Promise.resolve(l)), s.push(() => l.then((c) => {
|
|
2225
|
+
if (!c)
|
|
2226
|
+
throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
|
|
2227
|
+
const u = Vs(c) ? c.default : c;
|
|
2228
|
+
a.mods[i] = c, a.components[i] = u;
|
|
2229
|
+
const p = (u.__vccOpts || u)[t];
|
|
2230
|
+
return p && ve(p, n, o, a, i, r)();
|
|
2231
2231
|
}));
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
@@ -2238,55 +2238,55 @@ function Qn(e) {
|
|
|
2238
2238
|
const t = ae(fn), n = ae(Ko);
|
|
2239
2239
|
let o = !1, r = null;
|
|
2240
2240
|
const s = j(() => {
|
|
2241
|
-
const
|
|
2242
|
-
return process.env.NODE_ENV !== "production" && (!o ||
|
|
2243
|
-
- to:`,
|
|
2241
|
+
const c = k(e.to);
|
|
2242
|
+
return process.env.NODE_ENV !== "production" && (!o || c !== r) && (Ot(c) || (o ? S(`Invalid value for prop "to" in useLink()
|
|
2243
|
+
- to:`, c, `
|
|
2244
2244
|
- previous to:`, r, `
|
|
2245
2245
|
- props:`, e) : S(`Invalid value for prop "to" in useLink()
|
|
2246
|
-
- to:`,
|
|
2247
|
-
- props:`, e)), r =
|
|
2248
|
-
}),
|
|
2249
|
-
const { matched:
|
|
2246
|
+
- to:`, c, `
|
|
2247
|
+
- props:`, e)), r = c, o = !0), t.resolve(c);
|
|
2248
|
+
}), a = j(() => {
|
|
2249
|
+
const { matched: c } = s.value, { length: u } = c, p = c[u - 1], f = n.matched;
|
|
2250
2250
|
if (!p || !f.length)
|
|
2251
2251
|
return -1;
|
|
2252
2252
|
const m = f.findIndex(we.bind(null, p));
|
|
2253
2253
|
if (m > -1)
|
|
2254
2254
|
return m;
|
|
2255
|
-
const v = Xn(u
|
|
2255
|
+
const v = Xn(c[u - 2]);
|
|
2256
2256
|
return (
|
|
2257
2257
|
// we are dealing with nested routes
|
|
2258
|
-
|
|
2258
|
+
u > 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
2261
|
Xn(p) === v && // avoid comparing the child with its parent
|
|
2262
|
-
f[f.length - 1].path !== v ? f.findIndex(we.bind(null, u
|
|
2262
|
+
f[f.length - 1].path !== v ? f.findIndex(we.bind(null, c[u - 2])) : m
|
|
2263
2263
|
);
|
|
2264
|
-
}),
|
|
2265
|
-
function l(
|
|
2266
|
-
return ja(
|
|
2267
|
-
|
|
2264
|
+
}), i = j(() => a.value > -1 && La(n.params, s.value.params)), d = j(() => a.value > -1 && a.value === n.matched.length - 1 && Fo(n.params, s.value.params));
|
|
2265
|
+
function l(c = {}) {
|
|
2266
|
+
return ja(c) ? t[k(e.replace) ? "replace" : "push"](
|
|
2267
|
+
k(e.to)
|
|
2268
2268
|
// avoid uncaught errors are they are logged anyway
|
|
2269
2269
|
).catch(Ke) : Promise.resolve();
|
|
2270
2270
|
}
|
|
2271
2271
|
if (process.env.NODE_ENV !== "production" && ce) {
|
|
2272
|
-
const
|
|
2273
|
-
if (
|
|
2274
|
-
const
|
|
2272
|
+
const c = We();
|
|
2273
|
+
if (c) {
|
|
2274
|
+
const u = {
|
|
2275
2275
|
route: s.value,
|
|
2276
|
-
isActive:
|
|
2277
|
-
isExactActive:
|
|
2276
|
+
isActive: i.value,
|
|
2277
|
+
isExactActive: d.value,
|
|
2278
2278
|
error: null
|
|
2279
2279
|
};
|
|
2280
|
-
|
|
2281
|
-
|
|
2280
|
+
c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), Dr(() => {
|
|
2281
|
+
u.route = s.value, u.isActive = i.value, u.isExactActive = d.value, u.error = Ot(k(e.to)) ? null : 'Invalid "to" value';
|
|
2282
2282
|
}, { flush: "post" });
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
2285
|
return {
|
|
2286
2286
|
route: s,
|
|
2287
2287
|
href: j(() => s.value.href),
|
|
2288
|
-
isActive:
|
|
2289
|
-
isExactActive:
|
|
2288
|
+
isActive: i,
|
|
2289
|
+
isExactActive: d,
|
|
2290
2290
|
navigate: l
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
@@ -2348,7 +2348,7 @@ function La(e, t) {
|
|
|
2348
2348
|
if (typeof o == "string") {
|
|
2349
2349
|
if (o !== r)
|
|
2350
2350
|
return !1;
|
|
2351
|
-
} else if (!Y(r) || r.length !== o.length || o.some((s,
|
|
2351
|
+
} else if (!Y(r) || r.length !== o.length || o.some((s, a) => s !== r[a]))
|
|
2352
2352
|
return !1;
|
|
2353
2353
|
}
|
|
2354
2354
|
return !0;
|
|
@@ -2372,39 +2372,39 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ Z({
|
|
|
2372
2372
|
compatConfig: { MODE: 3 },
|
|
2373
2373
|
setup(e, { attrs: t, slots: n }) {
|
|
2374
2374
|
process.env.NODE_ENV !== "production" && Wa();
|
|
2375
|
-
const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0),
|
|
2376
|
-
let l =
|
|
2377
|
-
const { matched:
|
|
2378
|
-
let
|
|
2379
|
-
for (; (
|
|
2375
|
+
const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0), a = j(() => {
|
|
2376
|
+
let l = k(s);
|
|
2377
|
+
const { matched: c } = r.value;
|
|
2378
|
+
let u;
|
|
2379
|
+
for (; (u = c[l]) && !u.components; )
|
|
2380
2380
|
l++;
|
|
2381
2381
|
return l;
|
|
2382
|
-
}),
|
|
2383
|
-
ft(Yn, j(() =>
|
|
2384
|
-
const
|
|
2385
|
-
return z(() => [
|
|
2386
|
-
|
|
2382
|
+
}), i = j(() => r.value.matched[a.value]);
|
|
2383
|
+
ft(Yn, j(() => a.value + 1)), ft(Aa, i), ft(en, r);
|
|
2384
|
+
const d = C();
|
|
2385
|
+
return z(() => [d.value, i.value, e.name], ([l, c, u], [p, f, m]) => {
|
|
2386
|
+
c && (c.instances[u] = l, f && f !== c && l && l === p && (c.leaveGuards.size || (c.leaveGuards = f.leaveGuards), c.updateGuards.size || (c.updateGuards = f.updateGuards))), l && c && // if there is no instance but to and from are the same this might be
|
|
2387
2387
|
// the first visit
|
|
2388
|
-
(!f || !we(
|
|
2388
|
+
(!f || !we(c, f) || !p) && (c.enterCallbacks[u] || []).forEach((v) => v(l));
|
|
2389
2389
|
}, { flush: "post" }), () => {
|
|
2390
|
-
const l = r.value,
|
|
2390
|
+
const l = r.value, c = e.name, u = i.value, p = u && u.components[c];
|
|
2391
2391
|
if (!p)
|
|
2392
2392
|
return eo(n.default, { Component: p, route: l });
|
|
2393
|
-
const f =
|
|
2394
|
-
onVnodeUnmounted: (
|
|
2395
|
-
|
|
2393
|
+
const f = u.props[c], m = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, v = _o(p, R({}, m, t, {
|
|
2394
|
+
onVnodeUnmounted: (_) => {
|
|
2395
|
+
_.component.isUnmounted && (u.instances[c] = null);
|
|
2396
2396
|
},
|
|
2397
|
-
ref:
|
|
2397
|
+
ref: d
|
|
2398
2398
|
}));
|
|
2399
2399
|
if (process.env.NODE_ENV !== "production" && ce && v.ref) {
|
|
2400
|
-
const
|
|
2401
|
-
depth:
|
|
2402
|
-
name:
|
|
2403
|
-
path:
|
|
2404
|
-
meta:
|
|
2400
|
+
const _ = {
|
|
2401
|
+
depth: a.value,
|
|
2402
|
+
name: u.name,
|
|
2403
|
+
path: u.path,
|
|
2404
|
+
meta: u.meta
|
|
2405
2405
|
};
|
|
2406
2406
|
(Y(v.ref) ? v.ref.map((x) => x.i) : [v.ref.i]).forEach((x) => {
|
|
2407
|
-
x.__vrv_devtools =
|
|
2407
|
+
x.__vrv_devtools = _;
|
|
2408
2408
|
});
|
|
2409
2409
|
}
|
|
2410
2410
|
return (
|
|
@@ -2473,73 +2473,73 @@ function Ha(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((
|
|
2477
|
-
|
|
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((c, u) => {
|
|
2477
|
+
c.instanceData && c.instanceData.state.push({
|
|
2478
2478
|
type: "Routing",
|
|
2479
2479
|
key: "$route",
|
|
2480
2480
|
editable: !1,
|
|
2481
2481
|
value: Ge(t.currentRoute.value, "Current Route")
|
|
2482
2482
|
});
|
|
2483
|
-
}), r.on.visitComponentTree(({ treeNode:
|
|
2484
|
-
if (
|
|
2485
|
-
const p =
|
|
2486
|
-
|
|
2483
|
+
}), r.on.visitComponentTree(({ treeNode: c, componentInstance: u }) => {
|
|
2484
|
+
if (u.__vrv_devtools) {
|
|
2485
|
+
const p = u.__vrv_devtools;
|
|
2486
|
+
c.tags.push({
|
|
2487
2487
|
label: (p.name ? `${p.name.toString()}: ` : "") + p.path,
|
|
2488
2488
|
textColor: 0,
|
|
2489
2489
|
tooltip: "This component is rendered by <router-view>",
|
|
2490
2490
|
backgroundColor: Yo
|
|
2491
2491
|
});
|
|
2492
2492
|
}
|
|
2493
|
-
Y(
|
|
2494
|
-
let f = p.route.path, m = Zo, v = "",
|
|
2495
|
-
p.error ? (f = p.error, m = Ja,
|
|
2493
|
+
Y(u.__vrl_devtools) && (u.__devtoolsApi = r, u.__vrl_devtools.forEach((p) => {
|
|
2494
|
+
let f = p.route.path, m = Zo, v = "", _ = 0;
|
|
2495
|
+
p.error ? (f = p.error, m = Ja, _ = Ka) : p.isExactActive ? (m = Xo, v = "This is exactly active") : p.isActive && (m = Qo, v = "This link is active"), c.tags.push({
|
|
2496
2496
|
label: f,
|
|
2497
|
-
textColor:
|
|
2497
|
+
textColor: _,
|
|
2498
2498
|
tooltip: v,
|
|
2499
2499
|
backgroundColor: m
|
|
2500
2500
|
});
|
|
2501
2501
|
}));
|
|
2502
2502
|
}), z(t.currentRoute, () => {
|
|
2503
|
-
|
|
2503
|
+
d(), 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((
|
|
2510
|
+
}), t.onError((c, u) => {
|
|
2511
2511
|
r.addTimelineEvent({
|
|
2512
2512
|
layerId: s,
|
|
2513
2513
|
event: {
|
|
2514
2514
|
title: "Error during Navigation",
|
|
2515
|
-
subtitle:
|
|
2515
|
+
subtitle: u.fullPath,
|
|
2516
2516
|
logType: "error",
|
|
2517
2517
|
time: r.now(),
|
|
2518
|
-
data: { error:
|
|
2519
|
-
groupId:
|
|
2518
|
+
data: { error: c },
|
|
2519
|
+
groupId: u.meta.__navigationId
|
|
2520
2520
|
}
|
|
2521
2521
|
});
|
|
2522
2522
|
});
|
|
2523
|
-
let
|
|
2524
|
-
t.beforeEach((
|
|
2523
|
+
let a = 0;
|
|
2524
|
+
t.beforeEach((c, u) => {
|
|
2525
2525
|
const p = {
|
|
2526
2526
|
guard: dt("beforeEach"),
|
|
2527
|
-
from: Ge(
|
|
2528
|
-
to: Ge(
|
|
2527
|
+
from: Ge(u, "Current Location during this navigation"),
|
|
2528
|
+
to: Ge(c, "Target location")
|
|
2529
2529
|
};
|
|
2530
|
-
Object.defineProperty(
|
|
2531
|
-
value:
|
|
2530
|
+
Object.defineProperty(c.meta, "__navigationId", {
|
|
2531
|
+
value: a++
|
|
2532
2532
|
}), r.addTimelineEvent({
|
|
2533
2533
|
layerId: s,
|
|
2534
2534
|
event: {
|
|
2535
2535
|
time: r.now(),
|
|
2536
2536
|
title: "Start of navigation",
|
|
2537
|
-
subtitle:
|
|
2537
|
+
subtitle: c.fullPath,
|
|
2538
2538
|
data: p,
|
|
2539
|
-
groupId:
|
|
2539
|
+
groupId: c.meta.__navigationId
|
|
2540
2540
|
}
|
|
2541
2541
|
});
|
|
2542
|
-
}), t.afterEach((
|
|
2542
|
+
}), t.afterEach((c, u, p) => {
|
|
2543
2543
|
const f = {
|
|
2544
2544
|
guard: dt("afterEach")
|
|
2545
2545
|
};
|
|
@@ -2551,48 +2551,48 @@ function Ha(e, t, n) {
|
|
|
2551
2551
|
tooltip: "Navigation Failure",
|
|
2552
2552
|
value: p
|
|
2553
2553
|
}
|
|
2554
|
-
}, f.status = dt("❌")) : f.status = dt("✅"), f.from = Ge(
|
|
2554
|
+
}, f.status = dt("❌")) : f.status = dt("✅"), f.from = Ge(u, "Current Location during this navigation"), f.to = Ge(c, "Target location"), r.addTimelineEvent({
|
|
2555
2555
|
layerId: s,
|
|
2556
2556
|
event: {
|
|
2557
2557
|
title: "End of navigation",
|
|
2558
|
-
subtitle:
|
|
2558
|
+
subtitle: c.fullPath,
|
|
2559
2559
|
time: r.now(),
|
|
2560
2560
|
data: f,
|
|
2561
2561
|
logType: p ? "warning" : "default",
|
|
2562
|
-
groupId:
|
|
2562
|
+
groupId: c.meta.__navigationId
|
|
2563
2563
|
}
|
|
2564
2564
|
});
|
|
2565
2565
|
});
|
|
2566
|
-
const
|
|
2566
|
+
const i = "router-inspector:" + o;
|
|
2567
2567
|
r.addInspector({
|
|
2568
|
-
id:
|
|
2568
|
+
id: i,
|
|
2569
2569
|
label: "Routes" + (o ? " " + o : ""),
|
|
2570
2570
|
icon: "book",
|
|
2571
2571
|
treeFilterPlaceholder: "Search routes"
|
|
2572
2572
|
});
|
|
2573
|
-
function
|
|
2573
|
+
function d() {
|
|
2574
2574
|
if (!l)
|
|
2575
2575
|
return;
|
|
2576
|
-
const
|
|
2577
|
-
let
|
|
2576
|
+
const c = l;
|
|
2577
|
+
let u = 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
|
+
u.forEach(nr), c.filter && (u = u.filter((p) => (
|
|
2581
2581
|
// save matches state based on the payload
|
|
2582
|
-
tn(p,
|
|
2583
|
-
))),
|
|
2582
|
+
tn(p, c.filter.toLowerCase())
|
|
2583
|
+
))), u.forEach((p) => tr(p, t.currentRoute.value)), c.rootNodes = u.map(er);
|
|
2584
2584
|
}
|
|
2585
2585
|
let l;
|
|
2586
|
-
r.on.getInspectorTree((
|
|
2587
|
-
l =
|
|
2588
|
-
}), r.on.getInspectorState((
|
|
2589
|
-
if (
|
|
2590
|
-
const
|
|
2591
|
-
|
|
2592
|
-
options: za(
|
|
2586
|
+
r.on.getInspectorTree((c) => {
|
|
2587
|
+
l = c, c.app === e && c.inspectorId === i && d();
|
|
2588
|
+
}), r.on.getInspectorState((c) => {
|
|
2589
|
+
if (c.app === e && c.inspectorId === i) {
|
|
2590
|
+
const u = n.getRoutes().find((p) => p.record.__vd_id === c.nodeId);
|
|
2591
|
+
u && (c.state = {
|
|
2592
|
+
options: za(u)
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
|
-
}), r.sendInspectorTree(
|
|
2595
|
+
}), r.sendInspectorTree(i), r.sendInspectorState(i);
|
|
2596
2596
|
});
|
|
2597
2597
|
}
|
|
2598
2598
|
function Fa(e) {
|
|
@@ -2708,16 +2708,16 @@ function Za(e) {
|
|
|
2708
2708
|
const t = ka(e.routes, e), n = e.parseQuery || Pa, o = e.stringifyQuery || Kn, r = e.history;
|
|
2709
2709
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
2710
2710
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
|
2711
|
-
const s = ze(),
|
|
2711
|
+
const s = ze(), a = ze(), i = ze(), d = Ir(me);
|
|
2712
2712
|
let l = me;
|
|
2713
2713
|
ce && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2714
|
-
const
|
|
2714
|
+
const c = Lt.bind(null, (h) => "" + h), u = Lt.bind(null, Ks), p = (
|
|
2715
2715
|
// @ts-expect-error: intentionally avoid the type check
|
|
2716
2716
|
Lt.bind(null, Ve)
|
|
2717
2717
|
);
|
|
2718
2718
|
function f(h, y) {
|
|
2719
|
-
let g,
|
|
2720
|
-
return Go(h) ? (g = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !g && S(`Parent route "${String(h)}" not found when adding child route`, y),
|
|
2719
|
+
let g, E;
|
|
2720
|
+
return Go(h) ? (g = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !g && S(`Parent route "${String(h)}" not found when adding child route`, y), E = y) : E = h, t.addRoute(E, g);
|
|
2721
2721
|
}
|
|
2722
2722
|
function m(h) {
|
|
2723
2723
|
const y = t.getRecordMatcher(h);
|
|
@@ -2726,11 +2726,11 @@ function Za(e) {
|
|
|
2726
2726
|
function v() {
|
|
2727
2727
|
return t.getRoutes().map((h) => h.record);
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function _(h) {
|
|
2730
2730
|
return !!t.getRecordMatcher(h);
|
|
2731
2731
|
}
|
|
2732
2732
|
function x(h, y) {
|
|
2733
|
-
if (y = R({}, y ||
|
|
2733
|
+
if (y = R({}, y || d.value), typeof h == "string") {
|
|
2734
2734
|
const N = Mt(n, h, y.path), W = t.resolve({ path: N.path }, y), be = r.createHref(N.fullPath);
|
|
2735
2735
|
return process.env.NODE_ENV !== "production" && (be.startsWith("//") ? S(`Location "${h}" resolved to "${be}". A resolved location cannot start with multiple slashes.`) : W.matched.length || S(`No match found for location with path "${h}"`)), R(N, W, {
|
|
2736
2736
|
params: p(W.params),
|
|
@@ -2753,16 +2753,16 @@ function Za(e) {
|
|
|
2753
2753
|
for (const W in N)
|
|
2754
2754
|
N[W] == null && delete N[W];
|
|
2755
2755
|
g = R({}, h, {
|
|
2756
|
-
params:
|
|
2757
|
-
}), y.params =
|
|
2756
|
+
params: u(N)
|
|
2757
|
+
}), y.params = u(y.params);
|
|
2758
2758
|
}
|
|
2759
|
-
const
|
|
2760
|
-
process.env.NODE_ENV !== "production" && T && !T.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`),
|
|
2759
|
+
const E = t.resolve(g, y), T = h.hash || "";
|
|
2760
|
+
process.env.NODE_ENV !== "production" && T && !T.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), E.params = c(p(E.params));
|
|
2761
2761
|
const H = Xs(o, R({}, h, {
|
|
2762
2762
|
hash: Gs(T),
|
|
2763
|
-
path:
|
|
2763
|
+
path: E.path
|
|
2764
2764
|
})), A = r.createHref(H);
|
|
2765
|
-
return process.env.NODE_ENV !== "production" && (A.startsWith("//") ? S(`Location "${h}" resolved to "${A}". A resolved location cannot start with multiple slashes.`) :
|
|
2765
|
+
return process.env.NODE_ENV !== "production" && (A.startsWith("//") ? S(`Location "${h}" resolved to "${A}". 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}"`)), R({
|
|
2766
2766
|
fullPath: H,
|
|
2767
2767
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
2768
2768
|
// hash
|
|
@@ -2775,13 +2775,13 @@ function Za(e) {
|
|
|
2775
2775
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
2776
2776
|
o === Kn ? Da(h.query) : h.query || {}
|
|
2777
2777
|
)
|
|
2778
|
-
},
|
|
2778
|
+
}, E, {
|
|
2779
2779
|
redirectedFrom: void 0,
|
|
2780
2780
|
href: A
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
2783
|
function O(h) {
|
|
2784
|
-
return typeof h == "string" ? Mt(n, h,
|
|
2784
|
+
return typeof h == "string" ? Mt(n, h, d.value.path) : R({}, h);
|
|
2785
2785
|
}
|
|
2786
2786
|
function P(h, y) {
|
|
2787
2787
|
if (l !== h)
|
|
@@ -2791,7 +2791,7 @@ function Za(e) {
|
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
2793
|
function U(h) {
|
|
2794
|
-
return
|
|
2794
|
+
return $(h);
|
|
2795
2795
|
}
|
|
2796
2796
|
function D(h) {
|
|
2797
2797
|
return U(R(O(h), { replace: !0 }));
|
|
@@ -2800,26 +2800,26 @@ function Za(e) {
|
|
|
2800
2800
|
const y = h.matched[h.matched.length - 1];
|
|
2801
2801
|
if (y && y.redirect) {
|
|
2802
2802
|
const { redirect: g } = y;
|
|
2803
|
-
let
|
|
2804
|
-
if (typeof
|
|
2803
|
+
let E = typeof g == "function" ? g(h) : g;
|
|
2804
|
+
if (typeof E == "string" && (E = E.includes("?") || E.includes("#") ? E = O(E) : (
|
|
2805
2805
|
// force empty params
|
|
2806
|
-
{ path:
|
|
2807
|
-
),
|
|
2806
|
+
{ path: E }
|
|
2807
|
+
), E.params = {}), process.env.NODE_ENV !== "production" && E.path == null && !("name" in E))
|
|
2808
2808
|
throw S(`Invalid redirect found:
|
|
2809
|
-
${JSON.stringify(
|
|
2809
|
+
${JSON.stringify(E, null, 2)}
|
|
2810
2810
|
when navigating to "${h.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
2811
2811
|
return R({
|
|
2812
2812
|
query: h.query,
|
|
2813
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 g = l = x(h),
|
|
2819
|
+
function $(h, y) {
|
|
2820
|
+
const g = l = x(h), E = d.value, T = h.state, H = h.force, A = h.replace === !0, N = B(g);
|
|
2821
2821
|
if (N)
|
|
2822
|
-
return
|
|
2822
|
+
return $(
|
|
2823
2823
|
R(O(N), {
|
|
2824
2824
|
state: typeof N == "object" ? R({}, T, N.state) : T,
|
|
2825
2825
|
force: H,
|
|
@@ -2831,16 +2831,16 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2831
2831
|
const W = g;
|
|
2832
2832
|
W.redirectedFrom = y;
|
|
2833
2833
|
let be;
|
|
2834
|
-
return !H && Ln(o,
|
|
2835
|
-
|
|
2836
|
-
|
|
2834
|
+
return !H && Ln(o, E, g) && (be = je(16, { to: W, from: E }), In(
|
|
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
|
-
)), (be ? Promise.resolve(be) : w(W,
|
|
2843
|
+
)), (be ? Promise.resolve(be) : w(W, E)).catch((J) => le(J) ? (
|
|
2844
2844
|
// navigation redirects still mark the router as ready
|
|
2845
2845
|
le(
|
|
2846
2846
|
J,
|
|
@@ -2849,7 +2849,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2849
2849
|
) ? J : At(J)
|
|
2850
2850
|
) : (
|
|
2851
2851
|
// reject any unknown error
|
|
2852
|
-
G(J, W,
|
|
2852
|
+
G(J, W, E)
|
|
2853
2853
|
)).then((J) => {
|
|
2854
2854
|
if (J) {
|
|
2855
2855
|
if (le(
|
|
@@ -2863,8 +2863,8 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2863
2863
|
(y._count = y._count ? (
|
|
2864
2864
|
// @ts-expect-error
|
|
2865
2865
|
y._count + 1
|
|
2866
|
-
) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${
|
|
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 "${W.fullPath}". Aborting to avoid a Stack Overflow.
|
|
2867
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : $(
|
|
2868
2868
|
// keep options
|
|
2869
2869
|
R({
|
|
2870
2870
|
// preserve an existing replacement but allow the redirect to override it
|
|
@@ -2877,8 +2877,8 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2877
2877
|
y || W
|
|
2878
2878
|
);
|
|
2879
2879
|
} else
|
|
2880
|
-
J = K(W,
|
|
2881
|
-
return L(W,
|
|
2880
|
+
J = K(W, E, !0, A, T);
|
|
2881
|
+
return L(W, E, J), J;
|
|
2882
2882
|
});
|
|
2883
2883
|
}
|
|
2884
2884
|
function ne(h, y) {
|
|
@@ -2891,9 +2891,9 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2891
2891
|
}
|
|
2892
2892
|
function w(h, y) {
|
|
2893
2893
|
let g;
|
|
2894
|
-
const [
|
|
2895
|
-
g = Bt(
|
|
2896
|
-
for (const N of
|
|
2894
|
+
const [E, T, H] = ei(h, y);
|
|
2895
|
+
g = Bt(E.reverse(), "beforeRouteLeave", h, y);
|
|
2896
|
+
for (const N of E)
|
|
2897
2897
|
N.leaveGuards.forEach((W) => {
|
|
2898
2898
|
g.push(ve(W, h, y));
|
|
2899
2899
|
});
|
|
@@ -2922,7 +2922,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2922
2922
|
return g.push(A), Pe(g);
|
|
2923
2923
|
}).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(H, "beforeRouteEnter", h, y, b), g.push(A), Pe(g))).then(() => {
|
|
2924
2924
|
g = [];
|
|
2925
|
-
for (const N of
|
|
2925
|
+
for (const N of a.list())
|
|
2926
2926
|
g.push(ve(N, h, y));
|
|
2927
2927
|
return g.push(A), Pe(g);
|
|
2928
2928
|
}).catch((N) => le(
|
|
@@ -2932,28 +2932,28 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2932
2932
|
) ? N : Promise.reject(N));
|
|
2933
2933
|
}
|
|
2934
2934
|
function L(h, y, g) {
|
|
2935
|
-
|
|
2935
|
+
i.list().forEach((E) => b(() => E(h, y, g)));
|
|
2936
2936
|
}
|
|
2937
|
-
function K(h, y, g,
|
|
2937
|
+
function K(h, y, g, E, T) {
|
|
2938
2938
|
const H = P(h, y);
|
|
2939
2939
|
if (H)
|
|
2940
2940
|
return H;
|
|
2941
2941
|
const A = y === me, N = ce ? history.state : {};
|
|
2942
|
-
g && (
|
|
2942
|
+
g && (E || A ? r.replace(h.fullPath, R({
|
|
2943
2943
|
scroll: A && N && N.scroll
|
|
2944
|
-
}, T)) : r.push(h.fullPath, T)),
|
|
2944
|
+
}, T)) : r.push(h.fullPath, T)), d.value = h, In(h, y, g, A), At();
|
|
2945
2945
|
}
|
|
2946
2946
|
let ee;
|
|
2947
2947
|
function Ue() {
|
|
2948
2948
|
ee || (ee = r.listen((h, y, g) => {
|
|
2949
|
-
const
|
|
2949
|
+
const E = x(h), T = B(E);
|
|
2950
2950
|
if (T) {
|
|
2951
|
-
|
|
2951
|
+
$(R(T, { replace: !0 }), E).catch(Ke);
|
|
2952
2952
|
return;
|
|
2953
2953
|
}
|
|
2954
|
-
l =
|
|
2955
|
-
const H =
|
|
2956
|
-
ce && aa(Bn(H.fullPath, g.delta), It()), w(
|
|
2954
|
+
l = E;
|
|
2955
|
+
const H = d.value;
|
|
2956
|
+
ce && aa(Bn(H.fullPath, g.delta), It()), w(E, H).catch((A) => le(
|
|
2957
2957
|
A,
|
|
2958
2958
|
12
|
|
2959
2959
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -2961,9 +2961,9 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2961
2961
|
A,
|
|
2962
2962
|
2
|
|
2963
2963
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2964
|
-
) ? (
|
|
2964
|
+
) ? ($(
|
|
2965
2965
|
A.to,
|
|
2966
|
-
|
|
2966
|
+
E
|
|
2967
2967
|
// avoid an uncaught rejection, let push call triggerError
|
|
2968
2968
|
).then((N) => {
|
|
2969
2969
|
le(
|
|
@@ -2971,10 +2971,10 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2971
2971
|
20
|
|
2972
2972
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2973
2973
|
) && !g.delta && g.type === ot.pop && r.go(-1, !1);
|
|
2974
|
-
}).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), G(A,
|
|
2974
|
+
}).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), G(A, E, H))).then((A) => {
|
|
2975
2975
|
A = A || K(
|
|
2976
2976
|
// after navigation, all matched components are resolved
|
|
2977
|
-
|
|
2977
|
+
E,
|
|
2978
2978
|
H,
|
|
2979
2979
|
!1
|
|
2980
2980
|
), A && (g.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
@@ -2987,40 +2987,40 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2987
2987
|
A,
|
|
2988
2988
|
20
|
|
2989
2989
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2990
|
-
) && r.go(-1, !1)), L(
|
|
2990
|
+
) && r.go(-1, !1)), L(E, H, A);
|
|
2991
2991
|
}).catch(Ke);
|
|
2992
2992
|
}));
|
|
2993
2993
|
}
|
|
2994
2994
|
let He = ze(), it = ze(), oe;
|
|
2995
2995
|
function G(h, y, g) {
|
|
2996
2996
|
At(h);
|
|
2997
|
-
const
|
|
2998
|
-
return
|
|
2997
|
+
const E = it.list();
|
|
2998
|
+
return E.length ? E.forEach((T) => T(h, y, g)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
|
|
2999
2999
|
}
|
|
3000
3000
|
function xr() {
|
|
3001
|
-
return oe &&
|
|
3001
|
+
return oe && d.value !== me ? Promise.resolve() : new Promise((h, y) => {
|
|
3002
3002
|
He.add([h, y]);
|
|
3003
3003
|
});
|
|
3004
3004
|
}
|
|
3005
3005
|
function At(h) {
|
|
3006
3006
|
return oe || (oe = !h, Ue(), He.list().forEach(([y, g]) => h ? g(h) : y()), He.reset()), h;
|
|
3007
3007
|
}
|
|
3008
|
-
function In(h, y, g,
|
|
3008
|
+
function In(h, y, g, E) {
|
|
3009
3009
|
const { scrollBehavior: T } = e;
|
|
3010
3010
|
if (!ce || !T)
|
|
3011
3011
|
return Promise.resolve();
|
|
3012
|
-
const H = !g && ia(Bn(h.fullPath, 0)) || (
|
|
3012
|
+
const H = !g && ia(Bn(h.fullPath, 0)) || (E || !g) && history.state && history.state.scroll || null;
|
|
3013
3013
|
return Re().then(() => T(h, y, H)).then((A) => A && sa(A)).catch((A) => G(A, h, y));
|
|
3014
3014
|
}
|
|
3015
3015
|
const Tt = (h) => r.go(h);
|
|
3016
3016
|
let Rt;
|
|
3017
3017
|
const lt = /* @__PURE__ */ new Set(), Sr = {
|
|
3018
|
-
currentRoute:
|
|
3018
|
+
currentRoute: d,
|
|
3019
3019
|
listening: !0,
|
|
3020
3020
|
addRoute: f,
|
|
3021
3021
|
removeRoute: m,
|
|
3022
3022
|
clearRoutes: t.clearRoutes,
|
|
3023
|
-
hasRoute:
|
|
3023
|
+
hasRoute: _,
|
|
3024
3024
|
getRoutes: v,
|
|
3025
3025
|
resolve: x,
|
|
3026
3026
|
options: e,
|
|
@@ -3030,30 +3030,30 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3030
3030
|
back: () => Tt(-1),
|
|
3031
3031
|
forward: () => Tt(1),
|
|
3032
3032
|
beforeEach: s.add,
|
|
3033
|
-
beforeResolve:
|
|
3034
|
-
afterEach:
|
|
3033
|
+
beforeResolve: a.add,
|
|
3034
|
+
afterEach: i.add,
|
|
3035
3035
|
onError: it.add,
|
|
3036
3036
|
isReady: xr,
|
|
3037
3037
|
install(h) {
|
|
3038
3038
|
const y = this;
|
|
3039
3039
|
h.component("RouterLink", Va), h.component("RouterView", Ba), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
|
|
3040
3040
|
enumerable: !0,
|
|
3041
|
-
get: () =>
|
|
3041
|
+
get: () => k(d)
|
|
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
|
-
!Rt &&
|
|
3044
|
+
!Rt && d.value === me && (Rt = !0, U(r.location).catch((T) => {
|
|
3045
3045
|
process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", T);
|
|
3046
3046
|
}));
|
|
3047
3047
|
const g = {};
|
|
3048
3048
|
for (const T in me)
|
|
3049
3049
|
Object.defineProperty(g, T, {
|
|
3050
|
-
get: () =>
|
|
3050
|
+
get: () => d.value[T],
|
|
3051
3051
|
enumerable: !0
|
|
3052
3052
|
});
|
|
3053
|
-
h.provide(fn, y), h.provide(Ko, Cr(g)), h.provide(en,
|
|
3054
|
-
const
|
|
3053
|
+
h.provide(fn, y), h.provide(Ko, Cr(g)), h.provide(en, d);
|
|
3054
|
+
const E = h.unmount;
|
|
3055
3055
|
lt.add(h), h.unmount = function() {
|
|
3056
|
-
lt.delete(h), lt.size < 1 && (l = me, ee && ee(), ee = null,
|
|
3056
|
+
lt.delete(h), lt.size < 1 && (l = me, ee && ee(), ee = null, d.value = me, Rt = !1, oe = !1), E();
|
|
3057
3057
|
}, process.env.NODE_ENV !== "production" && ce && Ha(h, y, t);
|
|
3058
3058
|
}
|
|
3059
3059
|
};
|
|
@@ -3064,11 +3064,11 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3064
3064
|
}
|
|
3065
3065
|
function ei(e, t) {
|
|
3066
3066
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
3067
|
-
for (let
|
|
3068
|
-
const
|
|
3069
|
-
|
|
3070
|
-
const
|
|
3071
|
-
|
|
3067
|
+
for (let a = 0; a < s; a++) {
|
|
3068
|
+
const i = t.matched[a];
|
|
3069
|
+
i && (e.matched.find((l) => we(l, i)) ? o.push(i) : n.push(i));
|
|
3070
|
+
const d = e.matched[a];
|
|
3071
|
+
d && (t.matched.find((l) => we(l, d)) || r.push(d));
|
|
3072
3072
|
}
|
|
3073
3073
|
return [n, o, r];
|
|
3074
3074
|
}
|
|
@@ -3208,8 +3208,8 @@ function vi(e) {
|
|
|
3208
3208
|
autoIncrement: !0
|
|
3209
3209
|
});
|
|
3210
3210
|
}, new Promise(function(r, s) {
|
|
3211
|
-
o.onerror = function(
|
|
3212
|
-
return s(
|
|
3211
|
+
o.onerror = function(a) {
|
|
3212
|
+
return s(a);
|
|
3213
3213
|
}, o.onsuccess = function() {
|
|
3214
3214
|
r(o.result);
|
|
3215
3215
|
};
|
|
@@ -3221,42 +3221,42 @@ function gi(e, t, n) {
|
|
|
3221
3221
|
time: o,
|
|
3222
3222
|
data: n
|
|
3223
3223
|
}, s = e.transaction([pe], "readwrite", Pt);
|
|
3224
|
-
return new Promise(function(
|
|
3224
|
+
return new Promise(function(a, i) {
|
|
3225
3225
|
s.oncomplete = function() {
|
|
3226
|
-
return
|
|
3226
|
+
return a();
|
|
3227
3227
|
}, s.onerror = function(l) {
|
|
3228
|
-
return
|
|
3228
|
+
return i(l);
|
|
3229
3229
|
};
|
|
3230
|
-
var
|
|
3231
|
-
|
|
3230
|
+
var d = s.objectStore(pe);
|
|
3231
|
+
d.add(r), vn(s);
|
|
3232
3232
|
});
|
|
3233
3233
|
}
|
|
3234
3234
|
function yi(e, t) {
|
|
3235
3235
|
var n = e.transaction(pe, "readonly", Pt), o = n.objectStore(pe), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
|
|
3236
3236
|
if (o.getAll) {
|
|
3237
|
-
var
|
|
3238
|
-
return new Promise(function(
|
|
3239
|
-
|
|
3240
|
-
return l(
|
|
3241
|
-
},
|
|
3242
|
-
c
|
|
3237
|
+
var a = o.getAll(s);
|
|
3238
|
+
return new Promise(function(d, l) {
|
|
3239
|
+
a.onerror = function(c) {
|
|
3240
|
+
return l(c);
|
|
3241
|
+
}, a.onsuccess = function(c) {
|
|
3242
|
+
d(c.target.result);
|
|
3243
3243
|
};
|
|
3244
3244
|
});
|
|
3245
3245
|
}
|
|
3246
|
-
function
|
|
3246
|
+
function i() {
|
|
3247
3247
|
try {
|
|
3248
3248
|
return s = IDBKeyRange.bound(t + 1, 1 / 0), o.openCursor(s);
|
|
3249
3249
|
} catch {
|
|
3250
3250
|
return o.openCursor();
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
return new Promise(function(
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3256
|
-
return l(
|
|
3257
|
-
},
|
|
3258
|
-
var p =
|
|
3259
|
-
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n),
|
|
3253
|
+
return new Promise(function(d, l) {
|
|
3254
|
+
var c = i();
|
|
3255
|
+
c.onerror = function(u) {
|
|
3256
|
+
return l(u);
|
|
3257
|
+
}, c.onsuccess = function(u) {
|
|
3258
|
+
var p = u.target.result;
|
|
3259
|
+
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n), d(r));
|
|
3260
3260
|
};
|
|
3261
3261
|
});
|
|
3262
3262
|
}
|
|
@@ -3266,23 +3266,23 @@ function wi(e, t) {
|
|
|
3266
3266
|
var n = e.db.transaction(pe, "readwrite", Pt), o = n.objectStore(pe);
|
|
3267
3267
|
return Promise.all(t.map(function(r) {
|
|
3268
3268
|
var s = o.delete(r);
|
|
3269
|
-
return new Promise(function(
|
|
3269
|
+
return new Promise(function(a) {
|
|
3270
3270
|
s.onsuccess = function() {
|
|
3271
|
-
return
|
|
3271
|
+
return a();
|
|
3272
3272
|
};
|
|
3273
3273
|
});
|
|
3274
3274
|
}));
|
|
3275
3275
|
}
|
|
3276
3276
|
function bi(e, t) {
|
|
3277
3277
|
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(pe, "readonly", Pt), r = o.objectStore(pe), s = [];
|
|
3278
|
-
return new Promise(function(
|
|
3279
|
-
r.openCursor().onsuccess = function(
|
|
3280
|
-
var
|
|
3281
|
-
if (
|
|
3282
|
-
var l =
|
|
3283
|
-
l.time < n ? (s.push(l),
|
|
3278
|
+
return new Promise(function(a) {
|
|
3279
|
+
r.openCursor().onsuccess = function(i) {
|
|
3280
|
+
var d = i.target.result;
|
|
3281
|
+
if (d) {
|
|
3282
|
+
var l = d.value;
|
|
3283
|
+
l.time < n ? (s.push(l), d.continue()) : (vn(o), a(s));
|
|
3284
3284
|
} else
|
|
3285
|
-
|
|
3285
|
+
a(s);
|
|
3286
3286
|
};
|
|
3287
3287
|
});
|
|
3288
3288
|
}
|
|
@@ -3395,8 +3395,8 @@ function Ai(e, t) {
|
|
|
3395
3395
|
uuid: e.uuid
|
|
3396
3396
|
}, s = JSON.stringify(r);
|
|
3397
3397
|
cr().setItem(o, s);
|
|
3398
|
-
var
|
|
3399
|
-
|
|
3398
|
+
var a = document.createEvent("Event");
|
|
3399
|
+
a.initEvent("storage", !0, !0), a.key = o, a.newValue = s, window.dispatchEvent(a), n();
|
|
3400
3400
|
});
|
|
3401
3401
|
});
|
|
3402
3402
|
}
|
|
@@ -3596,10 +3596,10 @@ function oo(e, t, n) {
|
|
|
3596
3596
|
data: n
|
|
3597
3597
|
}, s = e._prepP ? e._prepP : Le;
|
|
3598
3598
|
return s.then(function() {
|
|
3599
|
-
var
|
|
3600
|
-
return e._uMP.add(
|
|
3601
|
-
return e._uMP.delete(
|
|
3602
|
-
}),
|
|
3599
|
+
var a = e.method.postMessage(e._state, r);
|
|
3600
|
+
return e._uMP.add(a), a.catch().then(function() {
|
|
3601
|
+
return e._uMP.delete(a);
|
|
3602
|
+
}), a;
|
|
3603
3603
|
});
|
|
3604
3604
|
}
|
|
3605
3605
|
function Xi(e) {
|
|
@@ -3623,8 +3623,8 @@ function Zi(e) {
|
|
|
3623
3623
|
if (!e._iL && fr(e)) {
|
|
3624
3624
|
var t = function(o) {
|
|
3625
3625
|
e._addEL[o.type].forEach(function(r) {
|
|
3626
|
-
var s = 1e5,
|
|
3627
|
-
o.time >=
|
|
3626
|
+
var s = 1e5, a = r.time - s;
|
|
3627
|
+
o.time >= a && r.fn(o.data);
|
|
3628
3628
|
});
|
|
3629
3629
|
}, n = e.method.microSeconds();
|
|
3630
3630
|
e._prepP ? e._prepP.then(function() {
|
|
@@ -3692,8 +3692,8 @@ function Te(e) {
|
|
|
3692
3692
|
let t = "", n = 0;
|
|
3693
3693
|
const o = e.length;
|
|
3694
3694
|
for (let r = 0; r < o; r += 1) {
|
|
3695
|
-
const s = e[r],
|
|
3696
|
-
|
|
3695
|
+
const s = e[r], a = rl(s);
|
|
3696
|
+
a && (t += e.slice(n, r) + a, n = r + 1);
|
|
3697
3697
|
}
|
|
3698
3698
|
return `"${n === 0 ? e : t + e.slice(n)}"`;
|
|
3699
3699
|
}
|
|
@@ -3709,68 +3709,68 @@ function sl(e, t) {
|
|
|
3709
3709
|
/** @type {any[]} */
|
|
3710
3710
|
e
|
|
3711
3711
|
), o = Array(n.length);
|
|
3712
|
-
function r(s,
|
|
3712
|
+
function r(s, a = !1) {
|
|
3713
3713
|
if (s === wn) return;
|
|
3714
3714
|
if (s === mr) return NaN;
|
|
3715
3715
|
if (s === vr) return 1 / 0;
|
|
3716
3716
|
if (s === gr) return -1 / 0;
|
|
3717
3717
|
if (s === bn) return -0;
|
|
3718
|
-
if (
|
|
3718
|
+
if (a) throw new Error("Invalid input");
|
|
3719
3719
|
if (s in o) return o[s];
|
|
3720
|
-
const
|
|
3721
|
-
if (!
|
|
3722
|
-
o[s] =
|
|
3723
|
-
else if (Array.isArray(
|
|
3724
|
-
if (typeof
|
|
3725
|
-
const
|
|
3726
|
-
switch (
|
|
3720
|
+
const i = n[s];
|
|
3721
|
+
if (!i || typeof i != "object")
|
|
3722
|
+
o[s] = i;
|
|
3723
|
+
else if (Array.isArray(i))
|
|
3724
|
+
if (typeof i[0] == "string") {
|
|
3725
|
+
const d = i[0];
|
|
3726
|
+
switch (d) {
|
|
3727
3727
|
case "Date":
|
|
3728
|
-
o[s] = new Date(
|
|
3728
|
+
o[s] = new Date(i[1]);
|
|
3729
3729
|
break;
|
|
3730
3730
|
case "Set":
|
|
3731
3731
|
const l = /* @__PURE__ */ new Set();
|
|
3732
3732
|
o[s] = l;
|
|
3733
|
-
for (let p = 1; p <
|
|
3734
|
-
l.add(r(
|
|
3733
|
+
for (let p = 1; p < i.length; p += 1)
|
|
3734
|
+
l.add(r(i[p]));
|
|
3735
3735
|
break;
|
|
3736
3736
|
case "Map":
|
|
3737
|
-
const
|
|
3738
|
-
o[s] =
|
|
3739
|
-
for (let p = 1; p <
|
|
3740
|
-
|
|
3737
|
+
const c = /* @__PURE__ */ new Map();
|
|
3738
|
+
o[s] = c;
|
|
3739
|
+
for (let p = 1; p < i.length; p += 2)
|
|
3740
|
+
c.set(r(i[p]), r(i[p + 1]));
|
|
3741
3741
|
break;
|
|
3742
3742
|
case "RegExp":
|
|
3743
|
-
o[s] = new RegExp(
|
|
3743
|
+
o[s] = new RegExp(i[1], i[2]);
|
|
3744
3744
|
break;
|
|
3745
3745
|
case "Object":
|
|
3746
|
-
o[s] = Object(
|
|
3746
|
+
o[s] = Object(i[1]);
|
|
3747
3747
|
break;
|
|
3748
3748
|
case "BigInt":
|
|
3749
|
-
o[s] = BigInt(
|
|
3749
|
+
o[s] = BigInt(i[1]);
|
|
3750
3750
|
break;
|
|
3751
3751
|
case "null":
|
|
3752
|
-
const
|
|
3753
|
-
o[s] =
|
|
3754
|
-
for (let p = 1; p <
|
|
3755
|
-
|
|
3752
|
+
const u = /* @__PURE__ */ Object.create(null);
|
|
3753
|
+
o[s] = u;
|
|
3754
|
+
for (let p = 1; p < i.length; p += 2)
|
|
3755
|
+
u[i[p]] = r(i[p + 1]);
|
|
3756
3756
|
break;
|
|
3757
3757
|
default:
|
|
3758
|
-
throw new Error(`Unknown type ${
|
|
3758
|
+
throw new Error(`Unknown type ${d}`);
|
|
3759
3759
|
}
|
|
3760
3760
|
} else {
|
|
3761
|
-
const
|
|
3762
|
-
o[s] =
|
|
3763
|
-
for (let l = 0; l <
|
|
3764
|
-
const
|
|
3765
|
-
|
|
3761
|
+
const d = new Array(i.length);
|
|
3762
|
+
o[s] = d;
|
|
3763
|
+
for (let l = 0; l < i.length; l += 1) {
|
|
3764
|
+
const c = i[l];
|
|
3765
|
+
c !== hr && (d[l] = r(c));
|
|
3766
3766
|
}
|
|
3767
3767
|
}
|
|
3768
3768
|
else {
|
|
3769
|
-
const
|
|
3770
|
-
o[s] =
|
|
3771
|
-
for (const l in
|
|
3772
|
-
const
|
|
3773
|
-
|
|
3769
|
+
const d = {};
|
|
3770
|
+
o[s] = d;
|
|
3771
|
+
for (const l in i) {
|
|
3772
|
+
const c = i[l];
|
|
3773
|
+
d[l] = r(c);
|
|
3774
3774
|
}
|
|
3775
3775
|
}
|
|
3776
3776
|
return o[s];
|
|
@@ -3782,8 +3782,8 @@ function lo(e, t) {
|
|
|
3782
3782
|
for (const l in t)
|
|
3783
3783
|
r.push({ key: l, fn: t[l] });
|
|
3784
3784
|
const s = [];
|
|
3785
|
-
let
|
|
3786
|
-
function
|
|
3785
|
+
let a = 0;
|
|
3786
|
+
function i(l) {
|
|
3787
3787
|
if (typeof l == "function")
|
|
3788
3788
|
throw new Ut("Cannot stringify a function", s);
|
|
3789
3789
|
if (o.has(l)) return o.get(l);
|
|
@@ -3792,52 +3792,52 @@ function lo(e, t) {
|
|
|
3792
3792
|
if (l === 1 / 0) return vr;
|
|
3793
3793
|
if (l === -1 / 0) return gr;
|
|
3794
3794
|
if (l === 0 && 1 / l < 0) return bn;
|
|
3795
|
-
const
|
|
3796
|
-
o.set(l,
|
|
3795
|
+
const c = a++;
|
|
3796
|
+
o.set(l, c);
|
|
3797
3797
|
for (const { key: p, fn: f } of r) {
|
|
3798
3798
|
const m = f(l);
|
|
3799
3799
|
if (m)
|
|
3800
|
-
return n[
|
|
3800
|
+
return n[c] = `["${p}",${i(m)}]`, c;
|
|
3801
3801
|
}
|
|
3802
|
-
let
|
|
3802
|
+
let u = "";
|
|
3803
3803
|
if (ao(l))
|
|
3804
|
-
|
|
3804
|
+
u = Ht(l);
|
|
3805
3805
|
else
|
|
3806
3806
|
switch (ol(l)) {
|
|
3807
3807
|
case "Number":
|
|
3808
3808
|
case "String":
|
|
3809
3809
|
case "Boolean":
|
|
3810
|
-
|
|
3810
|
+
u = `["Object",${Ht(l)}]`;
|
|
3811
3811
|
break;
|
|
3812
3812
|
case "BigInt":
|
|
3813
|
-
|
|
3813
|
+
u = `["BigInt",${l}]`;
|
|
3814
3814
|
break;
|
|
3815
3815
|
case "Date":
|
|
3816
|
-
|
|
3816
|
+
u = `["Date","${isNaN(l.getDate()) ? "" : l.toISOString()}"]`;
|
|
3817
3817
|
break;
|
|
3818
3818
|
case "RegExp":
|
|
3819
3819
|
const { source: p, flags: f } = l;
|
|
3820
|
-
|
|
3820
|
+
u = f ? `["RegExp",${Te(p)},"${f}"]` : `["RegExp",${Te(p)}]`;
|
|
3821
3821
|
break;
|
|
3822
3822
|
case "Array":
|
|
3823
|
-
|
|
3823
|
+
u = "[";
|
|
3824
3824
|
for (let m = 0; m < l.length; m += 1)
|
|
3825
|
-
m > 0 && (
|
|
3826
|
-
|
|
3825
|
+
m > 0 && (u += ","), m in l ? (s.push(`[${m}]`), u += i(l[m]), s.pop()) : u += hr;
|
|
3826
|
+
u += "]";
|
|
3827
3827
|
break;
|
|
3828
3828
|
case "Set":
|
|
3829
|
-
|
|
3829
|
+
u = '["Set"';
|
|
3830
3830
|
for (const m of l)
|
|
3831
|
-
|
|
3832
|
-
|
|
3831
|
+
u += `,${i(m)}`;
|
|
3832
|
+
u += "]";
|
|
3833
3833
|
break;
|
|
3834
3834
|
case "Map":
|
|
3835
|
-
|
|
3835
|
+
u = '["Map"';
|
|
3836
3836
|
for (const [m, v] of l)
|
|
3837
3837
|
s.push(
|
|
3838
3838
|
`.get(${ao(m) ? Ht(m) : "..."})`
|
|
3839
|
-
),
|
|
3840
|
-
|
|
3839
|
+
), u += `,${i(m)},${i(v)}`, s.pop();
|
|
3840
|
+
u += "]";
|
|
3841
3841
|
break;
|
|
3842
3842
|
default:
|
|
3843
3843
|
if (!nl(l))
|
|
@@ -3851,47 +3851,47 @@ function lo(e, t) {
|
|
|
3851
3851
|
s
|
|
3852
3852
|
);
|
|
3853
3853
|
if (Object.getPrototypeOf(l) === null) {
|
|
3854
|
-
|
|
3854
|
+
u = '["null"';
|
|
3855
3855
|
for (const m in l)
|
|
3856
|
-
s.push(`.${m}`),
|
|
3857
|
-
|
|
3856
|
+
s.push(`.${m}`), u += `,${Te(m)},${i(l[m])}`, s.pop();
|
|
3857
|
+
u += "]";
|
|
3858
3858
|
} else {
|
|
3859
|
-
|
|
3859
|
+
u = "{";
|
|
3860
3860
|
let m = !1;
|
|
3861
3861
|
for (const v in l)
|
|
3862
|
-
m && (
|
|
3863
|
-
|
|
3862
|
+
m && (u += ","), m = !0, s.push(`.${v}`), u += `${Te(v)}:${i(l[v])}`, s.pop();
|
|
3863
|
+
u += "}";
|
|
3864
3864
|
}
|
|
3865
3865
|
}
|
|
3866
|
-
return n[
|
|
3866
|
+
return n[c] = u, c;
|
|
3867
3867
|
}
|
|
3868
|
-
const
|
|
3869
|
-
return
|
|
3868
|
+
const d = i(e);
|
|
3869
|
+
return d < 0 ? `${d}` : `[${n.join(",")}]`;
|
|
3870
3870
|
}
|
|
3871
3871
|
function Ht(e) {
|
|
3872
3872
|
const t = typeof e;
|
|
3873
3873
|
return t === "string" ? Te(e) : e instanceof String ? Te(e.toString()) : e === void 0 ? wn.toString() : e === 0 && 1 / e < 0 ? bn.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
|
|
3874
3874
|
}
|
|
3875
3875
|
function al(e, t, { initialize: n, type: o }) {
|
|
3876
|
-
let r = `${t.$id}-${e.toString()}`, s = new yn(r, { type: o }),
|
|
3877
|
-
z(() => t[e], (
|
|
3878
|
-
|
|
3879
|
-
}, { deep: !0 }), s.onmessage = (
|
|
3880
|
-
if (
|
|
3881
|
-
s.postMessage({ timestamp:
|
|
3876
|
+
let r = `${t.$id}-${e.toString()}`, s = new yn(r, { type: o }), a = !1, i = 0;
|
|
3877
|
+
z(() => t[e], (c) => {
|
|
3878
|
+
a || (i = Date.now(), s.postMessage({ timestamp: i, state: io(lo(c)) })), a = !1;
|
|
3879
|
+
}, { deep: !0 }), s.onmessage = (c) => {
|
|
3880
|
+
if (c === void 0) {
|
|
3881
|
+
s.postMessage({ timestamp: i, state: io(lo(t[e])) });
|
|
3882
3882
|
return;
|
|
3883
3883
|
}
|
|
3884
|
-
|
|
3884
|
+
c.timestamp <= i || (a = !0, i = c.timestamp, t[e] = c.state);
|
|
3885
3885
|
};
|
|
3886
|
-
let
|
|
3887
|
-
return n &&
|
|
3886
|
+
let d = () => s.postMessage(void 0), l = () => s.close();
|
|
3887
|
+
return n && d(), { sync: d, unshare: l };
|
|
3888
3888
|
}
|
|
3889
3889
|
var il = (e, t) => Object.keys(t).includes(e), ll = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
|
|
3890
|
-
var s,
|
|
3891
|
-
let
|
|
3892
|
-
!
|
|
3893
|
-
var
|
|
3894
|
-
|
|
3890
|
+
var s, a;
|
|
3891
|
+
let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, d = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
|
|
3892
|
+
!i || Object.keys(o.$state).forEach((l) => {
|
|
3893
|
+
var c;
|
|
3894
|
+
d.includes(l) || !il(l, o.$state) || al(l, o, { initialize: ((c = r == null ? void 0 : r.share) == null ? void 0 : c.initialize) ?? e, type: n });
|
|
3895
3895
|
});
|
|
3896
3896
|
};
|
|
3897
3897
|
const cl = Is();
|
|
@@ -3908,16 +3908,16 @@ const ul = /* @__PURE__ */ Z({
|
|
|
3908
3908
|
return z(n, () => {
|
|
3909
3909
|
if (n.value) {
|
|
3910
3910
|
let r = t.value.schema.schema.toArray();
|
|
3911
|
-
r.forEach((s,
|
|
3912
|
-
const
|
|
3913
|
-
r[
|
|
3911
|
+
r.forEach((s, a) => {
|
|
3912
|
+
const d = t.value.store.record[s.fieldname];
|
|
3913
|
+
r[a].value = d;
|
|
3914
3914
|
}), o.value = r;
|
|
3915
3915
|
}
|
|
3916
|
-
}), (r, s) =>
|
|
3916
|
+
}), (r, s) => k(n) ? (I(), xe(k(ts), {
|
|
3917
3917
|
key: 0,
|
|
3918
3918
|
class: "aform-main",
|
|
3919
3919
|
modelValue: o.value,
|
|
3920
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
3920
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a)
|
|
3921
3921
|
}, null, 8, ["modelValue"])) : de("", !0);
|
|
3922
3922
|
}
|
|
3923
3923
|
});
|
|
@@ -3926,7 +3926,7 @@ function yr(e) {
|
|
|
3926
3926
|
return xt() ? (St(e), !0) : !1;
|
|
3927
3927
|
}
|
|
3928
3928
|
function _n(e) {
|
|
3929
|
-
return typeof e == "function" ? e() :
|
|
3929
|
+
return typeof e == "function" ? e() : k(e);
|
|
3930
3930
|
}
|
|
3931
3931
|
const fl = typeof window < "u" && typeof document < "u";
|
|
3932
3932
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -3942,21 +3942,21 @@ function st(...e) {
|
|
|
3942
3942
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = at) : [t, n, o, r] = e, !t)
|
|
3943
3943
|
return gl;
|
|
3944
3944
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
3945
|
-
const s = [],
|
|
3946
|
-
s.forEach((
|
|
3947
|
-
},
|
|
3945
|
+
const s = [], a = () => {
|
|
3946
|
+
s.forEach((c) => c()), s.length = 0;
|
|
3947
|
+
}, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
|
|
3948
3948
|
() => [rt(t), _n(r)],
|
|
3949
|
-
([
|
|
3950
|
-
if (
|
|
3949
|
+
([c, u]) => {
|
|
3950
|
+
if (a(), !c)
|
|
3951
3951
|
return;
|
|
3952
|
-
const p = vl(
|
|
3952
|
+
const p = vl(u) ? { ...u } : u;
|
|
3953
3953
|
s.push(
|
|
3954
|
-
...n.flatMap((f) => o.map((m) =>
|
|
3954
|
+
...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
|
|
3955
3955
|
);
|
|
3956
3956
|
},
|
|
3957
3957
|
{ immediate: !0, flush: "post" }
|
|
3958
3958
|
), l = () => {
|
|
3959
|
-
|
|
3959
|
+
d(), a();
|
|
3960
3960
|
};
|
|
3961
3961
|
return yr(l), l;
|
|
3962
3962
|
}
|
|
@@ -3973,24 +3973,24 @@ function wl(e) {
|
|
|
3973
3973
|
function bl(e, t, n = {}) {
|
|
3974
3974
|
const { window: o = at, ...r } = n;
|
|
3975
3975
|
let s;
|
|
3976
|
-
const
|
|
3976
|
+
const a = wl(() => o && "MutationObserver" in o), i = () => {
|
|
3977
3977
|
s && (s.disconnect(), s = void 0);
|
|
3978
|
-
},
|
|
3978
|
+
}, d = j(() => {
|
|
3979
3979
|
const p = _n(e), f = (Array.isArray(p) ? p : [p]).map(rt).filter(hl);
|
|
3980
3980
|
return new Set(f);
|
|
3981
3981
|
}), l = z(
|
|
3982
|
-
() =>
|
|
3982
|
+
() => d.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
|
-
),
|
|
3988
|
-
l(),
|
|
3987
|
+
), c = () => s == null ? void 0 : s.takeRecords(), u = () => {
|
|
3988
|
+
l(), i();
|
|
3989
3989
|
};
|
|
3990
|
-
return yr(
|
|
3991
|
-
isSupported:
|
|
3992
|
-
stop:
|
|
3993
|
-
takeRecords:
|
|
3990
|
+
return yr(u), {
|
|
3991
|
+
isSupported: a,
|
|
3992
|
+
stop: u,
|
|
3993
|
+
takeRecords: c
|
|
3994
3994
|
};
|
|
3995
3995
|
}
|
|
3996
3996
|
function _l(e = {}) {
|
|
@@ -3999,41 +3999,41 @@ function _l(e = {}) {
|
|
|
3999
3999
|
window: n = at,
|
|
4000
4000
|
deep: o = !0,
|
|
4001
4001
|
triggerOnRemoval: r = !1
|
|
4002
|
-
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document,
|
|
4002
|
+
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
|
|
4003
4003
|
var l;
|
|
4004
|
-
let
|
|
4004
|
+
let c = s == null ? void 0 : s.activeElement;
|
|
4005
4005
|
if (o)
|
|
4006
|
-
for (;
|
|
4007
|
-
|
|
4008
|
-
return
|
|
4009
|
-
},
|
|
4010
|
-
|
|
4006
|
+
for (; c != null && c.shadowRoot; )
|
|
4007
|
+
c = (l = c == null ? void 0 : c.shadowRoot) == null ? void 0 : l.activeElement;
|
|
4008
|
+
return c;
|
|
4009
|
+
}, i = C(), d = () => {
|
|
4010
|
+
i.value = a();
|
|
4011
4011
|
};
|
|
4012
4012
|
return n && (st(n, "blur", (l) => {
|
|
4013
|
-
l.relatedTarget === null &&
|
|
4014
|
-
}, !0), st(n, "focus",
|
|
4015
|
-
l.filter((
|
|
4016
|
-
|
|
4013
|
+
l.relatedTarget === null && d();
|
|
4014
|
+
}, !0), st(n, "focus", d, !0)), r && bl(s, (l) => {
|
|
4015
|
+
l.filter((c) => c.removedNodes.length).map((c) => Array.from(c.removedNodes)).flat().forEach((c) => {
|
|
4016
|
+
c === i.value && d();
|
|
4017
4017
|
});
|
|
4018
4018
|
}, {
|
|
4019
4019
|
childList: !0,
|
|
4020
4020
|
subtree: !0
|
|
4021
|
-
}),
|
|
4021
|
+
}), d(), i;
|
|
4022
4022
|
}
|
|
4023
4023
|
const El = "focusin", kl = "focusout";
|
|
4024
4024
|
function $l(e, t = {}) {
|
|
4025
|
-
const { window: n = at } = t, o = j(() => rt(e)), r = C(!1), s = j(() => r.value),
|
|
4026
|
-
return !n || !
|
|
4025
|
+
const { window: n = at } = t, o = j(() => rt(e)), r = C(!1), s = j(() => r.value), a = _l(t);
|
|
4026
|
+
return !n || !a.value ? { focused: s } : (st(o, El, () => r.value = !0), st(o, kl, () => r.value = !1), { focused: s });
|
|
4027
4027
|
}
|
|
4028
4028
|
function Ol(e, { window: t = at, scrollTarget: n } = {}) {
|
|
4029
4029
|
const o = C(!1), r = () => {
|
|
4030
4030
|
if (!t) return;
|
|
4031
|
-
const s = t.document,
|
|
4032
|
-
if (!
|
|
4031
|
+
const s = t.document, a = rt(e);
|
|
4032
|
+
if (!a)
|
|
4033
4033
|
o.value = !1;
|
|
4034
4034
|
else {
|
|
4035
|
-
const
|
|
4036
|
-
o.value =
|
|
4035
|
+
const i = a.getBoundingClientRect();
|
|
4036
|
+
o.value = i.top <= (t.innerHeight || s.documentElement.clientHeight) && i.left <= (t.innerWidth || s.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
|
|
4037
4037
|
}
|
|
4038
4038
|
};
|
|
4039
4039
|
return z(
|
|
@@ -4220,73 +4220,73 @@ const fe = (e) => {
|
|
|
4220
4220
|
}
|
|
4221
4221
|
};
|
|
4222
4222
|
function wr(e) {
|
|
4223
|
-
const t = (
|
|
4224
|
-
let
|
|
4225
|
-
return
|
|
4226
|
-
}, n = (
|
|
4227
|
-
const
|
|
4228
|
-
let
|
|
4229
|
-
if (typeof
|
|
4230
|
-
|
|
4231
|
-
else if (Array.isArray(
|
|
4232
|
-
for (const l of
|
|
4233
|
-
l instanceof HTMLElement ?
|
|
4234
|
-
else if (
|
|
4235
|
-
|
|
4236
|
-
else if (Array.isArray(
|
|
4237
|
-
for (const l of
|
|
4238
|
-
l instanceof HTMLElement ?
|
|
4223
|
+
const t = (a) => {
|
|
4224
|
+
let i = null;
|
|
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
|
+
}, n = (a) => {
|
|
4227
|
+
const i = t(a);
|
|
4228
|
+
let d = [];
|
|
4229
|
+
if (typeof a.selectors == "string")
|
|
4230
|
+
d = i ? Array.from(i.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
|
|
4231
|
+
else if (Array.isArray(a.selectors))
|
|
4232
|
+
for (const l of a.selectors)
|
|
4233
|
+
l instanceof HTMLElement ? d.push(l) : d.push(l.$el);
|
|
4234
|
+
else if (a.selectors instanceof HTMLElement)
|
|
4235
|
+
d.push(a.selectors);
|
|
4236
|
+
else if (Array.isArray(a.selectors.value))
|
|
4237
|
+
for (const l of a.selectors.value)
|
|
4238
|
+
l instanceof HTMLElement ? d.push(l) : d.push(l.$el);
|
|
4239
4239
|
else
|
|
4240
|
-
|
|
4241
|
-
return
|
|
4242
|
-
}, o = (
|
|
4243
|
-
const
|
|
4244
|
-
let
|
|
4245
|
-
return
|
|
4246
|
-
}, r = (
|
|
4247
|
-
const
|
|
4248
|
-
if (pt.includes(
|
|
4249
|
-
const l =
|
|
4250
|
-
for (const
|
|
4251
|
-
const [
|
|
4252
|
-
if (
|
|
4253
|
-
const f = l[
|
|
4254
|
-
const x =
|
|
4255
|
-
return
|
|
4240
|
+
d.push(a.selectors.value);
|
|
4241
|
+
return d;
|
|
4242
|
+
}, o = (a) => {
|
|
4243
|
+
const i = t(a);
|
|
4244
|
+
let d = [];
|
|
4245
|
+
return a.selectors ? d = n(a) : i && (d = Array.from(i.children).filter((l) => he(l) && fe(l))), d;
|
|
4246
|
+
}, r = (a) => (i) => {
|
|
4247
|
+
const d = Nl[i.key] || i.key.toLowerCase();
|
|
4248
|
+
if (pt.includes(d)) return;
|
|
4249
|
+
const l = a.handlers || xn;
|
|
4250
|
+
for (const c of Object.keys(l)) {
|
|
4251
|
+
const [u, ...p] = c.split(".");
|
|
4252
|
+
if (u === "keydown" && p.includes(d)) {
|
|
4253
|
+
const f = l[c], m = p.filter((_) => pt.includes(_)), v = pt.some((_) => {
|
|
4254
|
+
const x = _.charAt(0).toUpperCase() + _.slice(1);
|
|
4255
|
+
return i.getModifierState(x);
|
|
4256
4256
|
});
|
|
4257
4257
|
if (m.length > 0) {
|
|
4258
4258
|
if (v) {
|
|
4259
|
-
for (const
|
|
4260
|
-
if (p.includes(
|
|
4261
|
-
const x =
|
|
4262
|
-
|
|
4259
|
+
for (const _ of pt)
|
|
4260
|
+
if (p.includes(_)) {
|
|
4261
|
+
const x = _.charAt(0).toUpperCase() + _.slice(1);
|
|
4262
|
+
i.getModifierState(x) && f(i);
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
4265
|
} else
|
|
4266
|
-
v || f(
|
|
4266
|
+
v || f(i);
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
}, s = [];
|
|
4270
4270
|
Be(() => {
|
|
4271
|
-
for (const
|
|
4272
|
-
const
|
|
4273
|
-
for (const
|
|
4274
|
-
const { focused: p } = $l(C(
|
|
4275
|
-
m ?
|
|
4271
|
+
for (const a of e) {
|
|
4272
|
+
const i = t(a), d = o(a), l = r(a), c = i ? [i] : d;
|
|
4273
|
+
for (const u of c) {
|
|
4274
|
+
const { focused: p } = $l(C(u)), f = z(p, (m) => {
|
|
4275
|
+
m ? u.addEventListener("keydown", l) : u.removeEventListener("keydown", l);
|
|
4276
4276
|
});
|
|
4277
4277
|
s.push(f);
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
4280
|
}), Rr(() => {
|
|
4281
|
-
for (const
|
|
4282
|
-
|
|
4281
|
+
for (const a of s)
|
|
4282
|
+
a();
|
|
4283
4283
|
});
|
|
4284
4284
|
}
|
|
4285
4285
|
function Sn(e) {
|
|
4286
4286
|
return xt() ? (St(e), !0) : !1;
|
|
4287
4287
|
}
|
|
4288
4288
|
function Dt(e) {
|
|
4289
|
-
return typeof e == "function" ? e() :
|
|
4289
|
+
return typeof e == "function" ? e() : k(e);
|
|
4290
4290
|
}
|
|
4291
4291
|
const Il = typeof window < "u" && typeof document < "u";
|
|
4292
4292
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4309,21 +4309,21 @@ function vo(...e) {
|
|
|
4309
4309
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Nn) : [t, n, o, r] = e, !t)
|
|
4310
4310
|
return Al;
|
|
4311
4311
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4312
|
-
const s = [],
|
|
4313
|
-
s.forEach((
|
|
4314
|
-
},
|
|
4312
|
+
const s = [], a = () => {
|
|
4313
|
+
s.forEach((c) => c()), s.length = 0;
|
|
4314
|
+
}, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
|
|
4315
4315
|
() => [Me(t), Dt(r)],
|
|
4316
|
-
([
|
|
4317
|
-
if (
|
|
4316
|
+
([c, u]) => {
|
|
4317
|
+
if (a(), !c)
|
|
4318
4318
|
return;
|
|
4319
|
-
const p = Dl(
|
|
4319
|
+
const p = Dl(u) ? { ...u } : u;
|
|
4320
4320
|
s.push(
|
|
4321
|
-
...n.flatMap((f) => o.map((m) =>
|
|
4321
|
+
...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
|
|
4322
4322
|
);
|
|
4323
4323
|
},
|
|
4324
4324
|
{ immediate: !0, flush: "post" }
|
|
4325
4325
|
), l = () => {
|
|
4326
|
-
|
|
4326
|
+
d(), a();
|
|
4327
4327
|
};
|
|
4328
4328
|
return Sn(l), l;
|
|
4329
4329
|
}
|
|
@@ -4340,50 +4340,50 @@ function br(e) {
|
|
|
4340
4340
|
function _r(e, t, n = {}) {
|
|
4341
4341
|
const { window: o = Nn, ...r } = n;
|
|
4342
4342
|
let s;
|
|
4343
|
-
const
|
|
4343
|
+
const a = br(() => o && "MutationObserver" in o), i = () => {
|
|
4344
4344
|
s && (s.disconnect(), s = void 0);
|
|
4345
|
-
},
|
|
4345
|
+
}, d = j(() => {
|
|
4346
4346
|
const p = Dt(e), f = (Array.isArray(p) ? p : [p]).map(Me).filter(Cl);
|
|
4347
4347
|
return new Set(f);
|
|
4348
4348
|
}), l = z(
|
|
4349
|
-
() =>
|
|
4349
|
+
() => d.value,
|
|
4350
4350
|
(p) => {
|
|
4351
|
-
|
|
4351
|
+
i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
|
|
4352
4352
|
},
|
|
4353
4353
|
{ immediate: !0, flush: "post" }
|
|
4354
|
-
),
|
|
4355
|
-
l(),
|
|
4354
|
+
), c = () => s == null ? void 0 : s.takeRecords(), u = () => {
|
|
4355
|
+
l(), i();
|
|
4356
4356
|
};
|
|
4357
|
-
return Sn(
|
|
4358
|
-
isSupported:
|
|
4359
|
-
stop:
|
|
4360
|
-
takeRecords:
|
|
4357
|
+
return Sn(u), {
|
|
4358
|
+
isSupported: a,
|
|
4359
|
+
stop: u,
|
|
4360
|
+
takeRecords: c
|
|
4361
4361
|
};
|
|
4362
4362
|
}
|
|
4363
4363
|
function jl(e, t, n = {}) {
|
|
4364
4364
|
const { window: o = Nn, ...r } = n;
|
|
4365
4365
|
let s;
|
|
4366
|
-
const
|
|
4366
|
+
const a = br(() => o && "ResizeObserver" in o), i = () => {
|
|
4367
4367
|
s && (s.disconnect(), s = void 0);
|
|
4368
|
-
},
|
|
4369
|
-
const
|
|
4370
|
-
return Array.isArray(
|
|
4368
|
+
}, d = j(() => {
|
|
4369
|
+
const u = Dt(e);
|
|
4370
|
+
return Array.isArray(u) ? u.map((p) => Me(p)) : [Me(u)];
|
|
4371
4371
|
}), l = z(
|
|
4372
|
-
|
|
4373
|
-
(
|
|
4374
|
-
if (
|
|
4372
|
+
d,
|
|
4373
|
+
(u) => {
|
|
4374
|
+
if (i(), a.value && o) {
|
|
4375
4375
|
s = new ResizeObserver(t);
|
|
4376
|
-
for (const p of
|
|
4376
|
+
for (const p of u)
|
|
4377
4377
|
p && s.observe(p, r);
|
|
4378
4378
|
}
|
|
4379
4379
|
},
|
|
4380
4380
|
{ immediate: !0, flush: "post" }
|
|
4381
|
-
),
|
|
4382
|
-
|
|
4381
|
+
), c = () => {
|
|
4382
|
+
i(), l();
|
|
4383
4383
|
};
|
|
4384
|
-
return Sn(
|
|
4385
|
-
isSupported:
|
|
4386
|
-
stop:
|
|
4384
|
+
return Sn(c), {
|
|
4385
|
+
isSupported: a,
|
|
4386
|
+
stop: c
|
|
4387
4387
|
};
|
|
4388
4388
|
}
|
|
4389
4389
|
function Ll(e, t = {}) {
|
|
@@ -4392,34 +4392,34 @@ function Ll(e, t = {}) {
|
|
|
4392
4392
|
windowResize: o = !0,
|
|
4393
4393
|
windowScroll: r = !0,
|
|
4394
4394
|
immediate: s = !0,
|
|
4395
|
-
updateTiming:
|
|
4396
|
-
} = t,
|
|
4395
|
+
updateTiming: a = "sync"
|
|
4396
|
+
} = t, i = C(0), d = C(0), l = C(0), c = C(0), u = C(0), p = C(0), f = C(0), m = C(0);
|
|
4397
4397
|
function v() {
|
|
4398
4398
|
const x = Me(e);
|
|
4399
4399
|
if (!x) {
|
|
4400
|
-
n && (
|
|
4400
|
+
n && (i.value = 0, d.value = 0, l.value = 0, c.value = 0, u.value = 0, p.value = 0, f.value = 0, m.value = 0);
|
|
4401
4401
|
return;
|
|
4402
4402
|
}
|
|
4403
4403
|
const O = x.getBoundingClientRect();
|
|
4404
|
-
|
|
4404
|
+
i.value = O.height, d.value = O.bottom, l.value = O.left, c.value = O.right, u.value = O.top, p.value = O.width, f.value = O.x, m.value = O.y;
|
|
4405
4405
|
}
|
|
4406
|
-
function
|
|
4407
|
-
|
|
4406
|
+
function _() {
|
|
4407
|
+
a === "sync" ? v() : a === "next-frame" && requestAnimationFrame(() => v());
|
|
4408
4408
|
}
|
|
4409
|
-
return jl(e,
|
|
4409
|
+
return jl(e, _), z(() => Me(e), (x) => !x && _()), _r(e, _, {
|
|
4410
4410
|
attributeFilter: ["style", "class"]
|
|
4411
|
-
}), r && vo("scroll",
|
|
4412
|
-
s &&
|
|
4411
|
+
}), r && vo("scroll", _, { capture: !0, passive: !0 }), o && vo("resize", _, { passive: !0 }), Rl(() => {
|
|
4412
|
+
s && _();
|
|
4413
4413
|
}), {
|
|
4414
|
-
height:
|
|
4415
|
-
bottom:
|
|
4414
|
+
height: i,
|
|
4415
|
+
bottom: d,
|
|
4416
4416
|
left: l,
|
|
4417
|
-
right:
|
|
4418
|
-
top:
|
|
4417
|
+
right: c,
|
|
4418
|
+
top: u,
|
|
4419
4419
|
width: p,
|
|
4420
4420
|
x: f,
|
|
4421
4421
|
y: m,
|
|
4422
|
-
update:
|
|
4422
|
+
update: _
|
|
4423
4423
|
};
|
|
4424
4424
|
}
|
|
4425
4425
|
const Ml = (e) => {
|
|
@@ -4436,23 +4436,23 @@ const Ml = (e) => {
|
|
|
4436
4436
|
pinned: { type: Boolean }
|
|
4437
4437
|
},
|
|
4438
4438
|
setup(e) {
|
|
4439
|
-
const t = ae(e.tableid), n = Nt("cell"), { bottom: o, left: r } = Ll(n), s = t.cellData(e.colIndex, e.rowIndex),
|
|
4439
|
+
const t = ae(e.tableid), n = Nt("cell"), { bottom: o, left: r } = Ll(n), s = t.cellData(e.colIndex, e.rowIndex), a = C(""), i = C(!1), d = t.table, l = t.columns[e.colIndex], c = t.rows[e.rowIndex], u = l.align || "center", p = l.width || "40ch", f = j(() => typeof v.value == "string" ? Ml(v.value) : !1), m = j(() => {
|
|
4440
4440
|
var D;
|
|
4441
4441
|
return {
|
|
4442
|
-
textAlign:
|
|
4442
|
+
textAlign: u,
|
|
4443
4443
|
width: p,
|
|
4444
|
-
backgroundColor:
|
|
4445
|
-
fontWeight:
|
|
4444
|
+
backgroundColor: i.value ? "var(--sc-cell-modified)" : "inherit",
|
|
4445
|
+
fontWeight: i.value ? "bold" : "inherit",
|
|
4446
4446
|
paddingLeft: U(e.colIndex, (D = t.display[e.rowIndex]) == null ? void 0 : D.indent)
|
|
4447
4447
|
};
|
|
4448
4448
|
}), v = j(() => {
|
|
4449
4449
|
const D = t.cellData(e.colIndex, e.rowIndex);
|
|
4450
|
-
return
|
|
4451
|
-
}),
|
|
4450
|
+
return _(D);
|
|
4451
|
+
}), _ = (D) => {
|
|
4452
4452
|
const B = l.format;
|
|
4453
|
-
return B ? typeof B == "function" ? B(D, { table:
|
|
4453
|
+
return B ? typeof B == "function" ? B(D, { table: d, row: c, column: l }) : typeof B == "string" ? Function(`"use strict";return (${B})`)()(D, { table: d, row: c, column: l }) : D : D;
|
|
4454
4454
|
}, x = () => {
|
|
4455
|
-
l.mask, l.modalComponent && (t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = o.value, t.modal.left = r.value, t.modal.width = p, typeof l.modalComponent == "function" ? t.modal.component = l.modalComponent({ table:
|
|
4455
|
+
l.mask, l.modalComponent && (t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = o.value, t.modal.left = r.value, t.modal.width = p, typeof l.modalComponent == "function" ? t.modal.component = l.modalComponent({ table: d, row: c, column: l }) : t.modal.component = l.modalComponent, t.modal.componentProps = l.modalComponentExtraProps);
|
|
4456
4456
|
};
|
|
4457
4457
|
if (e.addNavigation) {
|
|
4458
4458
|
let D = {
|
|
@@ -4474,16 +4474,16 @@ const Ml = (e) => {
|
|
|
4474
4474
|
]);
|
|
4475
4475
|
}
|
|
4476
4476
|
const O = () => {
|
|
4477
|
-
n.value && (
|
|
4477
|
+
n.value && (a.value = n.value.textContent);
|
|
4478
4478
|
}, P = () => {
|
|
4479
|
-
n.value && (l.format ?
|
|
4479
|
+
n.value && (l.format ? i.value = n.value.textContent !== _(s) : i.value = n.value.textContent !== s, n.value.textContent !== a.value && (a.value = n.value.textContent, n.value.dispatchEvent(new Event("change")), l.format || t.setCellData(e.rowIndex, e.colIndex, a.value)));
|
|
4480
4480
|
}, U = (D, B) => B && D === 0 && B > 0 ? `${B}ch` : "inherit";
|
|
4481
4481
|
return (D, B) => (I(), V("td", {
|
|
4482
4482
|
ref: "cell",
|
|
4483
4483
|
"data-colindex": D.colIndex,
|
|
4484
4484
|
"data-rowindex": D.rowIndex,
|
|
4485
|
-
"data-editable":
|
|
4486
|
-
contenteditable:
|
|
4485
|
+
"data-editable": k(l).edit,
|
|
4486
|
+
contenteditable: k(l).edit,
|
|
4487
4487
|
tabindex: D.tabIndex,
|
|
4488
4488
|
spellcheck: !1,
|
|
4489
4489
|
style: re(m.value),
|
|
@@ -4495,10 +4495,10 @@ const Ml = (e) => {
|
|
|
4495
4495
|
onMousedown: x,
|
|
4496
4496
|
class: Se(["atable-cell", D.pinned ? "sticky-column" : ""])
|
|
4497
4497
|
}, [
|
|
4498
|
-
|
|
4498
|
+
k(l).cellComponent ? (I(), xe(rn(k(l).cellComponent), sn({
|
|
4499
4499
|
key: 0,
|
|
4500
4500
|
value: v.value
|
|
4501
|
-
},
|
|
4501
|
+
}, k(l).cellComponentProps), null, 16, ["value"])) : f.value ? (I(), V("span", {
|
|
4502
4502
|
key: 1,
|
|
4503
4503
|
innerHTML: v.value
|
|
4504
4504
|
}, null, 8, Wl)) : (I(), V("span", Ul, ue(v.value), 1))
|
|
@@ -4513,39 +4513,39 @@ const Ml = (e) => {
|
|
|
4513
4513
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
4514
4514
|
},
|
|
4515
4515
|
setup(e) {
|
|
4516
|
-
const t = ae(e.tableid), n = Nt("rowEl"), o = j(() => t.columns.some((
|
|
4517
|
-
t.toggleRowExpand(
|
|
4516
|
+
const t = ae(e.tableid), n = Nt("rowEl"), o = j(() => t.columns.some((i) => i.pinned)), r = j(() => t.config.view !== "tree" || t.display[e.rowIndex].isRoot || t.display[e.rowIndex].open), s = j(() => t.config.view !== "tree" ? "" : t.display[e.rowIndex].isRoot || t.display[e.rowIndex].isParent ? t.display[e.rowIndex].childrenOpen ? "-" : "+" : ""), a = (i) => {
|
|
4517
|
+
t.toggleRowExpand(i);
|
|
4518
4518
|
};
|
|
4519
4519
|
if (e.addNavigation) {
|
|
4520
|
-
let
|
|
4521
|
-
typeof e.addNavigation == "object" && (
|
|
4522
|
-
...
|
|
4520
|
+
let i = xn;
|
|
4521
|
+
typeof e.addNavigation == "object" && (i = {
|
|
4522
|
+
...i,
|
|
4523
4523
|
...e.addNavigation
|
|
4524
4524
|
}), wr([
|
|
4525
4525
|
{
|
|
4526
4526
|
selectors: n,
|
|
4527
|
-
handlers:
|
|
4527
|
+
handlers: i
|
|
4528
4528
|
}
|
|
4529
4529
|
]);
|
|
4530
4530
|
}
|
|
4531
|
-
return (
|
|
4531
|
+
return (i, d) => Ze((I(), V("tr", {
|
|
4532
4532
|
ref: "rowEl",
|
|
4533
|
-
tabindex:
|
|
4533
|
+
tabindex: i.tabIndex,
|
|
4534
4534
|
class: "table-row"
|
|
4535
4535
|
}, [
|
|
4536
|
-
|
|
4537
|
-
|
|
4536
|
+
k(t).config.view !== "uncounted" ? ge(i.$slots, "index", { key: 0 }, () => [
|
|
4537
|
+
k(t).config.view === "list" ? (I(), V("td", {
|
|
4538
4538
|
key: 0,
|
|
4539
4539
|
tabIndex: -1,
|
|
4540
4540
|
class: Se(["list-index", o.value ? "sticky-index" : ""])
|
|
4541
|
-
}, ue(
|
|
4541
|
+
}, ue(i.rowIndex + 1), 3)) : k(t).config.view === "tree" ? (I(), V("td", {
|
|
4542
4542
|
key: 1,
|
|
4543
4543
|
tabIndex: -1,
|
|
4544
4544
|
class: Se(["tree-index", o.value ? "sticky-index" : ""]),
|
|
4545
|
-
onClick:
|
|
4545
|
+
onClick: d[0] || (d[0] = (l) => a(i.rowIndex))
|
|
4546
4546
|
}, ue(s.value), 3)) : de("", !0)
|
|
4547
4547
|
]) : de("", !0),
|
|
4548
|
-
ge(
|
|
4548
|
+
ge(i.$slots, "default")
|
|
4549
4549
|
], 8, Fl)), [
|
|
4550
4550
|
[on, r.value]
|
|
4551
4551
|
]);
|
|
@@ -4555,7 +4555,7 @@ function Er(e) {
|
|
|
4555
4555
|
return xt() ? (St(e), !0) : !1;
|
|
4556
4556
|
}
|
|
4557
4557
|
function Qe(e) {
|
|
4558
|
-
return typeof e == "function" ? e() :
|
|
4558
|
+
return typeof e == "function" ? e() : k(e);
|
|
4559
4559
|
}
|
|
4560
4560
|
const kr = typeof window < "u" && typeof document < "u";
|
|
4561
4561
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -4587,62 +4587,62 @@ function _t(...e) {
|
|
|
4587
4587
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = $r) : [t, n, o, r] = e, !t)
|
|
4588
4588
|
return Xe;
|
|
4589
4589
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4590
|
-
const s = [],
|
|
4591
|
-
s.forEach((
|
|
4592
|
-
},
|
|
4590
|
+
const s = [], a = () => {
|
|
4591
|
+
s.forEach((c) => c()), s.length = 0;
|
|
4592
|
+
}, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
|
|
4593
4593
|
() => [Je(t), Qe(r)],
|
|
4594
|
-
([
|
|
4595
|
-
if (
|
|
4594
|
+
([c, u]) => {
|
|
4595
|
+
if (a(), !c)
|
|
4596
4596
|
return;
|
|
4597
|
-
const p = ql(
|
|
4597
|
+
const p = ql(u) ? { ...u } : u;
|
|
4598
4598
|
s.push(
|
|
4599
|
-
...n.flatMap((f) => o.map((m) =>
|
|
4599
|
+
...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
|
|
4600
4600
|
);
|
|
4601
4601
|
},
|
|
4602
4602
|
{ immediate: !0, flush: "post" }
|
|
4603
4603
|
), l = () => {
|
|
4604
|
-
|
|
4604
|
+
d(), a();
|
|
4605
4605
|
};
|
|
4606
4606
|
return Er(l), l;
|
|
4607
4607
|
}
|
|
4608
4608
|
let yo = !1;
|
|
4609
4609
|
function wo(e, t, n = {}) {
|
|
4610
|
-
const { window: o = $r, ignore: r = [], capture: s = !0, detectIframe:
|
|
4610
|
+
const { window: o = $r, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
|
|
4611
4611
|
if (!o)
|
|
4612
4612
|
return Xe;
|
|
4613
|
-
nn && !yo && (yo = !0, Array.from(o.document.body.children).forEach((
|
|
4614
|
-
let
|
|
4615
|
-
const
|
|
4616
|
-
if (typeof
|
|
4617
|
-
return Array.from(o.document.querySelectorAll(
|
|
4613
|
+
nn && !yo && (yo = !0, Array.from(o.document.body.children).forEach((c) => c.addEventListener("click", Xe)), o.document.documentElement.addEventListener("click", Xe));
|
|
4614
|
+
let i = !0;
|
|
4615
|
+
const d = (c) => r.some((u) => {
|
|
4616
|
+
if (typeof u == "string")
|
|
4617
|
+
return Array.from(o.document.querySelectorAll(u)).some((p) => p === c.target || c.composedPath().includes(p));
|
|
4618
4618
|
{
|
|
4619
|
-
const p = Je(
|
|
4620
|
-
return p && (
|
|
4619
|
+
const p = Je(u);
|
|
4620
|
+
return p && (c.target === p || c.composedPath().includes(p));
|
|
4621
4621
|
}
|
|
4622
4622
|
}), l = [
|
|
4623
|
-
_t(o, "click", (
|
|
4624
|
-
const
|
|
4625
|
-
if (!(!
|
|
4626
|
-
if (
|
|
4627
|
-
|
|
4623
|
+
_t(o, "click", (c) => {
|
|
4624
|
+
const u = Je(e);
|
|
4625
|
+
if (!(!u || u === c.target || c.composedPath().includes(u))) {
|
|
4626
|
+
if (c.detail === 0 && (i = !d(c)), !i) {
|
|
4627
|
+
i = !0;
|
|
4628
4628
|
return;
|
|
4629
4629
|
}
|
|
4630
|
-
t(
|
|
4630
|
+
t(c);
|
|
4631
4631
|
}
|
|
4632
4632
|
}, { passive: !0, capture: s }),
|
|
4633
|
-
_t(o, "pointerdown", (
|
|
4634
|
-
const
|
|
4635
|
-
|
|
4633
|
+
_t(o, "pointerdown", (c) => {
|
|
4634
|
+
const u = Je(e);
|
|
4635
|
+
i = !d(c) && !!(u && !c.composedPath().includes(u));
|
|
4636
4636
|
}, { passive: !0 }),
|
|
4637
|
-
|
|
4637
|
+
a && _t(o, "blur", (c) => {
|
|
4638
4638
|
setTimeout(() => {
|
|
4639
|
-
var
|
|
4639
|
+
var u;
|
|
4640
4640
|
const p = Je(e);
|
|
4641
|
-
((
|
|
4641
|
+
((u = o.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(c);
|
|
4642
4642
|
}, 0);
|
|
4643
4643
|
})
|
|
4644
4644
|
].filter(Boolean);
|
|
4645
|
-
return () => l.forEach((
|
|
4645
|
+
return () => l.forEach((c) => c());
|
|
4646
4646
|
}
|
|
4647
4647
|
const Yl = {
|
|
4648
4648
|
[go.mounted](e, t) {
|
|
@@ -4678,10 +4678,10 @@ const zt = /* @__PURE__ */ new WeakMap();
|
|
|
4678
4678
|
function Xl(e, t = !1) {
|
|
4679
4679
|
const n = C(t);
|
|
4680
4680
|
let o = null, r = "";
|
|
4681
|
-
z(Kl(e), (
|
|
4682
|
-
const
|
|
4683
|
-
if (
|
|
4684
|
-
const l =
|
|
4681
|
+
z(Kl(e), (i) => {
|
|
4682
|
+
const d = Ft(Qe(i));
|
|
4683
|
+
if (d) {
|
|
4684
|
+
const l = d;
|
|
4685
4685
|
if (zt.get(l) || zt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
|
|
4686
4686
|
return n.value = !0;
|
|
4687
4687
|
if (n.value)
|
|
@@ -4691,25 +4691,25 @@ function Xl(e, t = !1) {
|
|
|
4691
4691
|
immediate: !0
|
|
4692
4692
|
});
|
|
4693
4693
|
const s = () => {
|
|
4694
|
-
const
|
|
4695
|
-
!
|
|
4696
|
-
|
|
4694
|
+
const i = Ft(Qe(e));
|
|
4695
|
+
!i || n.value || (nn && (o = _t(
|
|
4696
|
+
i,
|
|
4697
4697
|
"touchmove",
|
|
4698
|
-
(
|
|
4699
|
-
Ql(
|
|
4698
|
+
(d) => {
|
|
4699
|
+
Ql(d);
|
|
4700
4700
|
},
|
|
4701
4701
|
{ passive: !1 }
|
|
4702
|
-
)),
|
|
4703
|
-
},
|
|
4704
|
-
const
|
|
4705
|
-
!
|
|
4702
|
+
)), i.style.overflow = "hidden", n.value = !0);
|
|
4703
|
+
}, a = () => {
|
|
4704
|
+
const i = Ft(Qe(e));
|
|
4705
|
+
!i || !n.value || (nn && (o == null || o()), i.style.overflow = r, zt.delete(i), n.value = !1);
|
|
4706
4706
|
};
|
|
4707
|
-
return Er(
|
|
4707
|
+
return Er(a), j({
|
|
4708
4708
|
get() {
|
|
4709
4709
|
return n.value;
|
|
4710
4710
|
},
|
|
4711
|
-
set(
|
|
4712
|
-
|
|
4711
|
+
set(i) {
|
|
4712
|
+
i ? s() : a();
|
|
4713
4713
|
}
|
|
4714
4714
|
});
|
|
4715
4715
|
}
|
|
@@ -4726,8 +4726,8 @@ function Zl() {
|
|
|
4726
4726
|
}
|
|
4727
4727
|
Zl();
|
|
4728
4728
|
class ec {
|
|
4729
|
-
constructor(t, n, o, r, s,
|
|
4730
|
-
_e(this, "id"), _e(this, "rows"), _e(this, "columns"), _e(this, "config"), _e(this, "table"), _e(this, "display"), _e(this, "modal"), this.id = t || crypto.randomUUID(), this.rows = o, this.columns = ke(n), this.config = ke(r), this.table = s || ke(this.createTableObject()), this.display = this.createDisplayObject(
|
|
4729
|
+
constructor(t, n, o, r, s, a) {
|
|
4730
|
+
_e(this, "id"), _e(this, "rows"), _e(this, "columns"), _e(this, "config"), _e(this, "table"), _e(this, "display"), _e(this, "modal"), this.id = t || crypto.randomUUID(), this.rows = o, this.columns = ke(n), this.config = ke(r), this.table = s || ke(this.createTableObject()), this.display = this.createDisplayObject(a), this.modal = ke({ visible: !1 });
|
|
4731
4731
|
}
|
|
4732
4732
|
createTableObject() {
|
|
4733
4733
|
const t = {};
|
|
@@ -4797,23 +4797,23 @@ const tc = {
|
|
|
4797
4797
|
});
|
|
4798
4798
|
return (r, s) => r.columns.length ? (I(), V("thead", tc, [
|
|
4799
4799
|
M("tr", nc, [
|
|
4800
|
-
|
|
4800
|
+
k(t).zeroColumn ? (I(), V("th", {
|
|
4801
4801
|
key: 0,
|
|
4802
4802
|
id: "header-index",
|
|
4803
4803
|
class: Se([[
|
|
4804
4804
|
n.value ? "sticky-index" : "",
|
|
4805
|
-
|
|
4806
|
-
|
|
4805
|
+
k(t).config.view === "tree" ? "tree-index" : "",
|
|
4806
|
+
k(t).config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
4807
4807
|
], "list-index"])
|
|
4808
4808
|
}, null, 2)) : de("", !0),
|
|
4809
|
-
(I(!0), V(Ne, null, Ie(r.columns, (
|
|
4810
|
-
key:
|
|
4809
|
+
(I(!0), V(Ne, null, Ie(r.columns, (a, i) => (I(), V("th", {
|
|
4810
|
+
key: a.name,
|
|
4811
4811
|
tabindex: "-1",
|
|
4812
|
-
style: re(o(
|
|
4813
|
-
class: Se(
|
|
4812
|
+
style: re(o(a)),
|
|
4813
|
+
class: Se(a.pinned ? "sticky-column" : "")
|
|
4814
4814
|
}, [
|
|
4815
4815
|
ge(r.$slots, "default", {}, () => [
|
|
4816
|
-
Eo(ue(
|
|
4816
|
+
Eo(ue(a.label || String.fromCharCode(i + 97).toUpperCase()), 1)
|
|
4817
4817
|
])
|
|
4818
4818
|
], 6))), 128))
|
|
4819
4819
|
])
|
|
@@ -4849,75 +4849,75 @@ const tc = {
|
|
|
4849
4849
|
config: { default: () => new Object() }
|
|
4850
4850
|
},
|
|
4851
4851
|
emits: ["update:modelValue"],
|
|
4852
|
-
setup(e, {
|
|
4853
|
-
const
|
|
4854
|
-
ft(
|
|
4855
|
-
() =>
|
|
4856
|
-
(
|
|
4857
|
-
|
|
4852
|
+
setup(e, { expose: t, emit: n }) {
|
|
4853
|
+
const o = n, r = Nt("table"), s = e.modelValue ? e.modelValue : e.rows, a = new ec(e.id, e.columns, s, e.config);
|
|
4854
|
+
ft(a.id, a), z(
|
|
4855
|
+
() => a.rows,
|
|
4856
|
+
(l) => {
|
|
4857
|
+
o("update:modelValue", l);
|
|
4858
4858
|
},
|
|
4859
4859
|
{ deep: !0 }
|
|
4860
4860
|
), Be(() => {
|
|
4861
|
-
e.columns.some((
|
|
4861
|
+
e.columns.some((l) => l.pinned) && (i(), a.config.view === "tree" && _r(r, i, { childList: !0, subtree: !0 }));
|
|
4862
4862
|
});
|
|
4863
4863
|
const i = () => {
|
|
4864
|
-
const
|
|
4865
|
-
for (const [
|
|
4866
|
-
const
|
|
4867
|
-
|
|
4864
|
+
const l = r.value, c = l.rows[0], u = l.rows[1], p = c ? Array.from(c.cells) : [];
|
|
4865
|
+
for (const [f, m] of p.entries()) {
|
|
4866
|
+
const v = u.cells[f];
|
|
4867
|
+
v && (m.style.width = `${v.offsetWidth}px`);
|
|
4868
4868
|
}
|
|
4869
|
-
for (const
|
|
4870
|
-
let
|
|
4871
|
-
const
|
|
4872
|
-
for (const
|
|
4873
|
-
(
|
|
4874
|
-
|
|
4869
|
+
for (const f of l.rows) {
|
|
4870
|
+
let m = 0;
|
|
4871
|
+
const v = [];
|
|
4872
|
+
for (const _ of f.cells)
|
|
4873
|
+
(_.classList.contains("sticky-column") || _.classList.contains("sticky-index")) && (_.style.left = `${m}px`, m += _.offsetWidth, v.push(_));
|
|
4874
|
+
v.length > 0 && v[v.length - 1].classList.add("sticky-column-edge");
|
|
4875
4875
|
}
|
|
4876
|
-
},
|
|
4877
|
-
var
|
|
4878
|
-
|
|
4876
|
+
}, d = (l) => {
|
|
4877
|
+
var c;
|
|
4878
|
+
l.target instanceof Node && (c = a.modal.parent) != null && c.contains(l.target) || a.modal.visible && (a.modal.visible = !1);
|
|
4879
4879
|
};
|
|
4880
|
-
return window.addEventListener("keydown", (
|
|
4881
|
-
if (
|
|
4882
|
-
|
|
4883
|
-
const
|
|
4884
|
-
|
|
4885
|
-
|
|
4880
|
+
return window.addEventListener("keydown", (l) => {
|
|
4881
|
+
if (l.key === "Escape" && a.modal.visible) {
|
|
4882
|
+
a.modal.visible = !1;
|
|
4883
|
+
const c = a.modal.parent;
|
|
4884
|
+
c && Re().then(() => {
|
|
4885
|
+
c.focus();
|
|
4886
4886
|
});
|
|
4887
4887
|
}
|
|
4888
|
-
}), (
|
|
4888
|
+
}), t({ tableData: a }), (l, c) => Ze((I(), V("table", {
|
|
4889
4889
|
ref: "table",
|
|
4890
4890
|
class: "atable",
|
|
4891
|
-
style: re({ width:
|
|
4891
|
+
style: re({ width: k(a).config.fullWidth ? "100%" : "auto" })
|
|
4892
4892
|
}, [
|
|
4893
|
-
ge(
|
|
4893
|
+
ge(l.$slots, "header", { data: k(a) }, () => [
|
|
4894
4894
|
Et(oc, {
|
|
4895
|
-
columns:
|
|
4896
|
-
tableid:
|
|
4895
|
+
columns: k(a).columns,
|
|
4896
|
+
tableid: k(a).id
|
|
4897
4897
|
}, null, 8, ["columns", "tableid"])
|
|
4898
4898
|
], !0),
|
|
4899
4899
|
M("tbody", null, [
|
|
4900
|
-
ge(
|
|
4901
|
-
(I(!0), V(Ne, null, Ie(
|
|
4900
|
+
ge(l.$slots, "body", { data: k(a) }, () => [
|
|
4901
|
+
(I(!0), V(Ne, null, Ie(k(a).rows, (u, p) => (I(), xe(zl, {
|
|
4902
4902
|
key: u.id,
|
|
4903
4903
|
row: u,
|
|
4904
|
-
rowIndex:
|
|
4905
|
-
tableid:
|
|
4904
|
+
rowIndex: p,
|
|
4905
|
+
tableid: k(a).id
|
|
4906
4906
|
}, {
|
|
4907
4907
|
default: kt(() => [
|
|
4908
|
-
(I(!0), V(Ne, null, Ie(
|
|
4909
|
-
key:
|
|
4910
|
-
tableid:
|
|
4911
|
-
col:
|
|
4908
|
+
(I(!0), V(Ne, null, Ie(k(a).columns, (f, m) => (I(), xe(Hl, {
|
|
4909
|
+
key: f.name,
|
|
4910
|
+
tableid: k(a).id,
|
|
4911
|
+
col: f,
|
|
4912
4912
|
spellcheck: "false",
|
|
4913
|
-
pinned:
|
|
4914
|
-
rowIndex:
|
|
4915
|
-
colIndex:
|
|
4916
|
-
component:
|
|
4913
|
+
pinned: f.pinned,
|
|
4914
|
+
rowIndex: p,
|
|
4915
|
+
colIndex: m,
|
|
4916
|
+
component: f.cellComponent,
|
|
4917
4917
|
style: re({
|
|
4918
|
-
textAlign: (
|
|
4919
|
-
minWidth: (
|
|
4920
|
-
width:
|
|
4918
|
+
textAlign: (f == null ? void 0 : f.align) || "center",
|
|
4919
|
+
minWidth: (f == null ? void 0 : f.width) || "40ch",
|
|
4920
|
+
width: k(a).config.fullWidth ? "auto" : null
|
|
4921
4921
|
})
|
|
4922
4922
|
}, null, 8, ["tableid", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
|
|
4923
4923
|
]),
|
|
@@ -4925,33 +4925,33 @@ const tc = {
|
|
|
4925
4925
|
}, 1032, ["row", "rowIndex", "tableid"]))), 128))
|
|
4926
4926
|
], !0)
|
|
4927
4927
|
]),
|
|
4928
|
-
ge(
|
|
4929
|
-
ge(
|
|
4928
|
+
ge(l.$slots, "footer", { data: k(a) }, void 0, !0),
|
|
4929
|
+
ge(l.$slots, "modal", { data: k(a) }, () => [
|
|
4930
4930
|
Ze(Et(rc, {
|
|
4931
|
-
colIndex:
|
|
4932
|
-
rowIndex:
|
|
4933
|
-
tableid:
|
|
4931
|
+
colIndex: k(a).modal.colIndex,
|
|
4932
|
+
rowIndex: k(a).modal.rowIndex,
|
|
4933
|
+
tableid: k(a).id,
|
|
4934
4934
|
style: re({
|
|
4935
|
-
left:
|
|
4936
|
-
top:
|
|
4937
|
-
maxWidth:
|
|
4935
|
+
left: k(a).modal.left + "px",
|
|
4936
|
+
top: k(a).modal.top + "px",
|
|
4937
|
+
maxWidth: k(a).modal.width + "px"
|
|
4938
4938
|
})
|
|
4939
4939
|
}, {
|
|
4940
4940
|
default: kt(() => [
|
|
4941
|
-
(I(), xe(rn(
|
|
4942
|
-
key: `${
|
|
4943
|
-
colIndex:
|
|
4944
|
-
rowIndex:
|
|
4945
|
-
tableid:
|
|
4946
|
-
},
|
|
4941
|
+
(I(), xe(rn(k(a).modal.component), sn({
|
|
4942
|
+
key: `${k(a).modal.rowIndex}:${k(a).modal.colIndex}`,
|
|
4943
|
+
colIndex: k(a).modal.colIndex,
|
|
4944
|
+
rowIndex: k(a).modal.rowIndex,
|
|
4945
|
+
tableid: k(a).id
|
|
4946
|
+
}, k(a).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
|
|
4947
4947
|
]),
|
|
4948
4948
|
_: 1
|
|
4949
4949
|
}, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
|
|
4950
|
-
[on,
|
|
4950
|
+
[on, k(a).modal.visible]
|
|
4951
4951
|
])
|
|
4952
4952
|
], !0)
|
|
4953
4953
|
], 4)), [
|
|
4954
|
-
[
|
|
4954
|
+
[k(Yl), d]
|
|
4955
4955
|
]);
|
|
4956
4956
|
}
|
|
4957
4957
|
}), ac = (e, t) => {
|
|
@@ -4959,14 +4959,14 @@ const tc = {
|
|
|
4959
4959
|
for (const [o, r] of t)
|
|
4960
4960
|
n[o] = r;
|
|
4961
4961
|
return n;
|
|
4962
|
-
}, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-
|
|
4962
|
+
}, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-183c4dd3"]]), lc = /* @__PURE__ */ Z({
|
|
4963
4963
|
__name: "Records",
|
|
4964
4964
|
setup(e) {
|
|
4965
4965
|
const { stonecrop: t, isReady: n } = jo(), o = { view: "list" };
|
|
4966
|
-
return (r, s) =>
|
|
4966
|
+
return (r, s) => k(n) ? (I(), xe(k(ic), {
|
|
4967
4967
|
key: 0,
|
|
4968
|
-
columns:
|
|
4969
|
-
rows:
|
|
4968
|
+
columns: k(t).schema.schema.toArray(),
|
|
4969
|
+
rows: k(t).store.records,
|
|
4970
4970
|
config: o
|
|
4971
4971
|
}, null, 8, ["columns", "rows"])) : de("", !0);
|
|
4972
4972
|
}
|
|
@@ -4986,26 +4986,26 @@ const tc = {
|
|
|
4986
4986
|
breadcrumbs: { default: () => [] }
|
|
4987
4987
|
},
|
|
4988
4988
|
setup(e) {
|
|
4989
|
-
const t = C(!0), n = C(!1), o = C(""), r = Nt("searchinput"), s = j(() => t.value ? "unrotated" : "rotated"),
|
|
4989
|
+
const t = C(!0), n = C(!1), o = C(""), r = Nt("searchinput"), s = j(() => t.value ? "unrotated" : "rotated"), a = () => {
|
|
4990
4990
|
t.value = !t.value;
|
|
4991
|
-
},
|
|
4991
|
+
}, i = async () => {
|
|
4992
4992
|
n.value = !n.value, await Re(() => {
|
|
4993
4993
|
r.value.focus();
|
|
4994
4994
|
});
|
|
4995
|
-
},
|
|
4996
|
-
|
|
4997
|
-
}, l = async (
|
|
4998
|
-
|
|
4999
|
-
},
|
|
4995
|
+
}, d = (u) => {
|
|
4996
|
+
u.preventDefault(), u.stopPropagation();
|
|
4997
|
+
}, l = async (u) => {
|
|
4998
|
+
u.preventDefault(), u.stopPropagation(), await i();
|
|
4999
|
+
}, c = () => {
|
|
5000
5000
|
};
|
|
5001
|
-
return (
|
|
5001
|
+
return (u, p) => {
|
|
5002
5002
|
const f = Vr("router-link");
|
|
5003
5003
|
return I(), V("footer", null, [
|
|
5004
5004
|
M("ul", cc, [
|
|
5005
5005
|
M("li", {
|
|
5006
5006
|
class: "hidebreadcrumbs",
|
|
5007
|
-
onClick:
|
|
5008
|
-
onKeydown: ct(
|
|
5007
|
+
onClick: a,
|
|
5008
|
+
onKeydown: ct(a, ["enter"])
|
|
5009
5009
|
}, [
|
|
5010
5010
|
M("a", uc, [
|
|
5011
5011
|
M("div", {
|
|
@@ -5015,8 +5015,8 @@ const tc = {
|
|
|
5015
5015
|
], 32),
|
|
5016
5016
|
M("li", {
|
|
5017
5017
|
class: "hometab",
|
|
5018
|
-
onClick:
|
|
5019
|
-
onKeydown: ct(
|
|
5018
|
+
onClick: c,
|
|
5019
|
+
onKeydown: ct(c, ["enter"]),
|
|
5020
5020
|
style: re({ display: t.value ? "block" : "none" })
|
|
5021
5021
|
}, [
|
|
5022
5022
|
Et(f, {
|
|
@@ -5046,8 +5046,8 @@ const tc = {
|
|
|
5046
5046
|
], 36),
|
|
5047
5047
|
M("li", {
|
|
5048
5048
|
class: "searchtab",
|
|
5049
|
-
onClick:
|
|
5050
|
-
onKeydown: ct(
|
|
5049
|
+
onClick: i,
|
|
5050
|
+
onKeydown: ct(i, ["enter"]),
|
|
5051
5051
|
style: re({ display: t.value ? "block" : "none" })
|
|
5052
5052
|
}, [
|
|
5053
5053
|
M("a", pc, [
|
|
@@ -5068,8 +5068,8 @@ const tc = {
|
|
|
5068
5068
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
|
|
5069
5069
|
ref: "searchinput",
|
|
5070
5070
|
style: re({ display: n.value ? "block" : "none" }),
|
|
5071
|
-
onClick: p[1] || (p[1] = (m) =>
|
|
5072
|
-
onInput: p[2] || (p[2] = (m) =>
|
|
5071
|
+
onClick: p[1] || (p[1] = (m) => d(m)),
|
|
5072
|
+
onInput: p[2] || (p[2] = (m) => d(m)),
|
|
5073
5073
|
onBlur: p[3] || (p[3] = (m) => l(m)),
|
|
5074
5074
|
onKeydown: p[4] || (p[4] = ct((m) => l(m), ["enter"])),
|
|
5075
5075
|
type: "text"
|
|
@@ -5078,7 +5078,7 @@ const tc = {
|
|
|
5078
5078
|
])
|
|
5079
5079
|
])
|
|
5080
5080
|
], 36),
|
|
5081
|
-
(I(!0), V(Ne, null, Ie(
|
|
5081
|
+
(I(!0), V(Ne, null, Ie(u.breadcrumbs, (m) => (I(), V("li", {
|
|
5082
5082
|
key: m.title,
|
|
5083
5083
|
style: re({ display: t.value ? "block" : "none" })
|
|
5084
5084
|
}, [
|