@stonecrop/desktop 0.3.7 → 0.3.8
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 +476 -467
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +24 -24
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -6
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as C, onMounted as Ke, openBlock as A, createElementBlock as B, normalizeClass as Ve, createElementVNode as W, Fragment as Ae, renderList as Te, toDisplayString as ve, createCommentVNode as ge, withDirectives as lt, vShow as gn, computed as
|
|
1
|
+
import { defineComponent as ae, ref as C, onMounted as Ke, openBlock as A, createElementBlock as B, normalizeClass as Ve, createElementVNode as W, Fragment as Ae, renderList as Te, toDisplayString as ve, createCommentVNode as ge, withDirectives as lt, vShow as gn, computed as R, createBlock as Ie, resolveDynamicComponent as yn, mergeProps as bn, effectScope as wn, markRaw as re, inject as Ne, onBeforeMount as zr, shallowRef as qr, toRaw as qe, unref as S, shallowReactive as Gr, watch as G, nextTick as xe, hasInjectionContext as jo, getCurrentInstance as Le, reactive as _n, h as Ro, provide as Ft, isRef as de, isReactive as Xe, toRef as De, watchEffect as Jr, getCurrentScope as jt, onScopeDispose as Rt, toRefs as Pt, useTemplateRef as ht, normalizeStyle as le, renderSlot as ke, createVNode as It, withCtx as Dt, readonly as Yr, customRef as Qr, createTextVNode as Lo, onBeforeUnmount as Kr, resolveComponent as Xr, withKeys as yt, vModelText as Zr } from "vue";
|
|
2
2
|
const es = { class: "action-menu-icon" }, ts = ["onclick"], ns = { key: 1 }, os = ["onClick"], rs = { class: "dropdown-container" }, ss = { class: "dropdown" }, as = ["onclick"], is = ["href"], cs = { class: "dropdown-item" }, ls = /* @__PURE__ */ ae({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
@@ -10,22 +10,22 @@ const es = { class: "action-menu-icon" }, ts = ["onclick"], ns = { key: 1 }, os
|
|
|
10
10
|
a();
|
|
11
11
|
});
|
|
12
12
|
const a = () => {
|
|
13
|
-
for (const
|
|
14
|
-
|
|
13
|
+
for (const l of t.value)
|
|
14
|
+
l.type === "dropdown" && (l.show = !1);
|
|
15
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
|
-
}, c = (
|
|
22
|
-
const u = !t.value[
|
|
23
|
-
a(), t.value[
|
|
21
|
+
}, c = (l) => {
|
|
22
|
+
const u = !t.value[l].show;
|
|
23
|
+
a(), t.value[l].show = u;
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
25
|
+
return (l, u) => (A(), B("div", {
|
|
26
26
|
class: Ve([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
|
|
27
27
|
onMouseover: i,
|
|
28
|
-
onMouseleave:
|
|
28
|
+
onMouseleave: d
|
|
29
29
|
}, [
|
|
30
30
|
W("div", es, [
|
|
31
31
|
W("div", {
|
|
@@ -130,31 +130,31 @@ const ms = { class: "aform" }, vs = /* @__PURE__ */ ae({
|
|
|
130
130
|
setup(e, { emit: t }) {
|
|
131
131
|
const n = t, o = C(e.data || {}), r = (a) => {
|
|
132
132
|
let i = {};
|
|
133
|
-
for (const [
|
|
134
|
-
["component", "fieldtype"].includes(
|
|
133
|
+
for (const [d, c] of Object.entries(a))
|
|
134
|
+
["component", "fieldtype"].includes(d) || (i[d] = c), d === "rows" && c && c.length === 0 && (i.rows = o.value[a.fieldname]);
|
|
135
135
|
return i;
|
|
136
|
-
}, s =
|
|
137
|
-
get: () => e.modelValue.map((a, i) =>
|
|
136
|
+
}, s = R({
|
|
137
|
+
get: () => e.modelValue.map((a, i) => R({
|
|
138
138
|
get() {
|
|
139
139
|
return a.value;
|
|
140
140
|
},
|
|
141
|
-
set: (
|
|
142
|
-
e.modelValue[i].value =
|
|
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
148
|
return (a, i) => (A(), B("form", ms, [
|
|
149
|
-
(A(!0), B(Ae, null, Te(a.modelValue, (
|
|
149
|
+
(A(!0), B(Ae, null, Te(a.modelValue, (d, c) => (A(), Ie(yn(d.component), bn({
|
|
150
150
|
key: c,
|
|
151
|
-
schema:
|
|
151
|
+
schema: d,
|
|
152
152
|
modelValue: s.value[c].value,
|
|
153
|
-
"onUpdate:modelValue": (
|
|
154
|
-
data: o.value[
|
|
153
|
+
"onUpdate:modelValue": (l) => s.value[c].value = l,
|
|
154
|
+
data: o.value[d.fieldname],
|
|
155
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
|
}), gs = /* @__PURE__ */ hs(vs, [["__scopeId", "data-v-68845234"]]);
|
|
@@ -188,7 +188,7 @@ const Mo = class kt {
|
|
|
188
188
|
* ```
|
|
189
189
|
*/
|
|
190
190
|
constructor(t, n, o, r, s) {
|
|
191
|
-
if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "
|
|
191
|
+
if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "store"), oe(this, "schema"), oe(this, "workflow"), oe(this, "actions"), kt._root)
|
|
192
192
|
return kt._root;
|
|
193
193
|
kt._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
|
|
194
194
|
}
|
|
@@ -308,10 +308,14 @@ const Mo = class kt {
|
|
|
308
308
|
* ```
|
|
309
309
|
*/
|
|
310
310
|
runAction(t, n, o) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
311
|
+
var r;
|
|
312
|
+
const s = (r = this.registry.registry[t.slug].actions) == null ? void 0 : r.get(n);
|
|
313
|
+
if (this.workflow) {
|
|
314
|
+
const { initialState: a } = this.workflow;
|
|
315
|
+
this.workflow.transition(a, { type: n }), s && s.length > 0 && s.forEach((i) => {
|
|
316
|
+
new Function(i)(o);
|
|
317
|
+
});
|
|
318
|
+
}
|
|
315
319
|
}
|
|
316
320
|
};
|
|
317
321
|
oe(Mo, "_root");
|
|
@@ -375,22 +379,22 @@ class xs {
|
|
|
375
379
|
}, n && n.on($s, (a, i) => {
|
|
376
380
|
a === this.plugin.id && this.fallbacks.setSettings(i);
|
|
377
381
|
}), this.proxiedOn = new Proxy({}, {
|
|
378
|
-
get: (a, i) => this.target ? this.target.on[i] : (...
|
|
382
|
+
get: (a, i) => this.target ? this.target.on[i] : (...d) => {
|
|
379
383
|
this.onQueue.push({
|
|
380
384
|
method: i,
|
|
381
|
-
args:
|
|
385
|
+
args: d
|
|
382
386
|
});
|
|
383
387
|
}
|
|
384
388
|
}), this.proxiedTarget = new Proxy({}, {
|
|
385
|
-
get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...
|
|
389
|
+
get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...d) => (this.targetQueue.push({
|
|
386
390
|
method: i,
|
|
387
|
-
args:
|
|
391
|
+
args: d,
|
|
388
392
|
resolve: () => {
|
|
389
393
|
}
|
|
390
|
-
}), this.fallbacks[i](...
|
|
394
|
+
}), this.fallbacks[i](...d)) : (...d) => new Promise((c) => {
|
|
391
395
|
this.targetQueue.push({
|
|
392
396
|
method: i,
|
|
393
|
-
args:
|
|
397
|
+
args: d,
|
|
394
398
|
resolve: c
|
|
395
399
|
});
|
|
396
400
|
})
|
|
@@ -502,10 +506,10 @@ function Is(e, t, n, o) {
|
|
|
502
506
|
if ((a || r && s || Fo) && typeof FileReader < "u") {
|
|
503
507
|
const i = new FileReader();
|
|
504
508
|
i.onloadend = function() {
|
|
505
|
-
let
|
|
506
|
-
if (typeof
|
|
509
|
+
let d = i.result;
|
|
510
|
+
if (typeof d != "string")
|
|
507
511
|
throw o = null, new Error("Wrong reader.result type");
|
|
508
|
-
|
|
512
|
+
d = a ? d : d.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = d : location.assign(d), o = null;
|
|
509
513
|
}, i.readAsDataURL(e);
|
|
510
514
|
} else {
|
|
511
515
|
const i = URL.createObjectURL(e);
|
|
@@ -751,19 +755,19 @@ function Us(e, t) {
|
|
|
751
755
|
}
|
|
752
756
|
} : (
|
|
753
757
|
// NOTE: workaround to unwrap transferred refs
|
|
754
|
-
Object.keys(i.$state).reduce((
|
|
758
|
+
Object.keys(i.$state).reduce((d, c) => (d[c] = i.$state[c], d), {})
|
|
755
759
|
)
|
|
756
760
|
}), i._getters && i._getters.length && o.instanceData.state.push({
|
|
757
761
|
type: Vt(i.$id),
|
|
758
762
|
key: "getters",
|
|
759
763
|
editable: !1,
|
|
760
|
-
value: i._getters.reduce((
|
|
764
|
+
value: i._getters.reduce((d, c) => {
|
|
761
765
|
try {
|
|
762
|
-
|
|
763
|
-
} catch (
|
|
764
|
-
|
|
766
|
+
d[c] = i[c];
|
|
767
|
+
} catch (l) {
|
|
768
|
+
d[c] = l;
|
|
765
769
|
}
|
|
766
|
-
return
|
|
770
|
+
return d;
|
|
767
771
|
}, {})
|
|
768
772
|
});
|
|
769
773
|
});
|
|
@@ -826,35 +830,35 @@ function Hs(e, t) {
|
|
|
826
830
|
}
|
|
827
831
|
}, (n) => {
|
|
828
832
|
const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
829
|
-
t.$onAction(({ after: a, onError: i, name:
|
|
830
|
-
const
|
|
833
|
+
t.$onAction(({ after: a, onError: i, name: d, args: c }) => {
|
|
834
|
+
const l = Qo++;
|
|
831
835
|
n.addTimelineEvent({
|
|
832
836
|
layerId: Pe,
|
|
833
837
|
event: {
|
|
834
838
|
time: o(),
|
|
835
|
-
title: "🛫 " +
|
|
839
|
+
title: "🛫 " + d,
|
|
836
840
|
subtitle: "start",
|
|
837
841
|
data: {
|
|
838
842
|
store: ce(t.$id),
|
|
839
|
-
action: ce(
|
|
843
|
+
action: ce(d),
|
|
840
844
|
args: c
|
|
841
845
|
},
|
|
842
|
-
groupId:
|
|
846
|
+
groupId: l
|
|
843
847
|
}
|
|
844
848
|
}), a((u) => {
|
|
845
849
|
Oe = void 0, n.addTimelineEvent({
|
|
846
850
|
layerId: Pe,
|
|
847
851
|
event: {
|
|
848
852
|
time: o(),
|
|
849
|
-
title: "🛬 " +
|
|
853
|
+
title: "🛬 " + d,
|
|
850
854
|
subtitle: "end",
|
|
851
855
|
data: {
|
|
852
856
|
store: ce(t.$id),
|
|
853
|
-
action: ce(
|
|
857
|
+
action: ce(d),
|
|
854
858
|
args: c,
|
|
855
859
|
result: u
|
|
856
860
|
},
|
|
857
|
-
groupId:
|
|
861
|
+
groupId: l
|
|
858
862
|
}
|
|
859
863
|
});
|
|
860
864
|
}), i((u) => {
|
|
@@ -863,20 +867,20 @@ function Hs(e, t) {
|
|
|
863
867
|
event: {
|
|
864
868
|
time: o(),
|
|
865
869
|
logType: "error",
|
|
866
|
-
title: "💥 " +
|
|
870
|
+
title: "💥 " + d,
|
|
867
871
|
subtitle: "end",
|
|
868
872
|
data: {
|
|
869
873
|
store: ce(t.$id),
|
|
870
|
-
action: ce(
|
|
874
|
+
action: ce(d),
|
|
871
875
|
args: c,
|
|
872
876
|
error: u
|
|
873
877
|
},
|
|
874
|
-
groupId:
|
|
878
|
+
groupId: l
|
|
875
879
|
}
|
|
876
880
|
});
|
|
877
881
|
});
|
|
878
882
|
}, !0), t._customProperties.forEach((a) => {
|
|
879
|
-
G(() => S(t[a]), (i,
|
|
883
|
+
G(() => S(t[a]), (i, d) => {
|
|
880
884
|
n.notifyComponentUpdate(), n.sendInspectorState(Q), He && n.addTimelineEvent({
|
|
881
885
|
layerId: Pe,
|
|
882
886
|
event: {
|
|
@@ -885,13 +889,13 @@ function Hs(e, t) {
|
|
|
885
889
|
subtitle: a,
|
|
886
890
|
data: {
|
|
887
891
|
newValue: i,
|
|
888
|
-
oldValue:
|
|
892
|
+
oldValue: d
|
|
889
893
|
},
|
|
890
894
|
groupId: Oe
|
|
891
895
|
}
|
|
892
896
|
});
|
|
893
897
|
}, { deep: !0 });
|
|
894
|
-
}), t.$subscribe(({ events: a, type: i },
|
|
898
|
+
}), t.$subscribe(({ events: a, type: i }, d) => {
|
|
895
899
|
if (n.notifyComponentUpdate(), n.sendInspectorState(Q), !He)
|
|
896
900
|
return;
|
|
897
901
|
const c = {
|
|
@@ -939,11 +943,11 @@ function zn(e, t, n) {
|
|
|
939
943
|
for (const r in o)
|
|
940
944
|
e[r] = function() {
|
|
941
945
|
const s = Qo, a = n ? new Proxy(e, {
|
|
942
|
-
get(...
|
|
943
|
-
return Oe = s, Reflect.get(...
|
|
946
|
+
get(...d) {
|
|
947
|
+
return Oe = s, Reflect.get(...d);
|
|
944
948
|
},
|
|
945
|
-
set(...
|
|
946
|
-
return Oe = s, Reflect.set(...
|
|
949
|
+
set(...d) {
|
|
950
|
+
return Oe = s, Reflect.set(...d);
|
|
947
951
|
}
|
|
948
952
|
}) : e;
|
|
949
953
|
Oe = s;
|
|
@@ -1036,38 +1040,38 @@ function Jn(e) {
|
|
|
1036
1040
|
}
|
|
1037
1041
|
function Yn(e, t, n, o) {
|
|
1038
1042
|
const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
|
|
1039
|
-
let
|
|
1043
|
+
let d;
|
|
1040
1044
|
function c() {
|
|
1041
1045
|
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
1042
|
-
const
|
|
1046
|
+
const l = process.env.NODE_ENV !== "production" && o ? (
|
|
1043
1047
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1044
1048
|
Pt(C(r ? r() : {}).value)
|
|
1045
1049
|
) : Pt(n.state.value[e]);
|
|
1046
|
-
return te(
|
|
1050
|
+
return te(l, s, Object.keys(a || {}).reduce((u, p) => (process.env.NODE_ENV !== "production" && p in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), u[p] = re(R(() => {
|
|
1047
1051
|
ut(n);
|
|
1048
1052
|
const f = n._s.get(e);
|
|
1049
1053
|
return a[p].call(f, f);
|
|
1050
1054
|
})), u), {}));
|
|
1051
1055
|
}
|
|
1052
|
-
return
|
|
1056
|
+
return d = an(e, c, t, n, o, !0), d;
|
|
1053
1057
|
}
|
|
1054
1058
|
function an(e, t, n = {}, o, r, s) {
|
|
1055
1059
|
let a;
|
|
1056
1060
|
const i = te({ actions: {} }, n);
|
|
1057
1061
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
1058
1062
|
throw new Error("Pinia destroyed");
|
|
1059
|
-
const
|
|
1060
|
-
process.env.NODE_ENV !== "production" && !Bo && (
|
|
1063
|
+
const d = { deep: !0 };
|
|
1064
|
+
process.env.NODE_ENV !== "production" && !Bo && (d.onTrigger = (w) => {
|
|
1061
1065
|
c ? f = w : c == !1 && !m._hotUpdating && (Array.isArray(f) ? f.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
1062
1066
|
});
|
|
1063
|
-
let c,
|
|
1067
|
+
let c, l, u = [], p = [], f;
|
|
1064
1068
|
const h = o.state.value[e];
|
|
1065
1069
|
!s && !h && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1066
1070
|
const b = C({});
|
|
1067
1071
|
let _;
|
|
1068
1072
|
function x(w) {
|
|
1069
1073
|
let v;
|
|
1070
|
-
c =
|
|
1074
|
+
c = l = !1, process.env.NODE_ENV !== "production" && (f = []), typeof w == "function" ? (w(o.state.value[e]), v = {
|
|
1071
1075
|
type: ue.patchFunction,
|
|
1072
1076
|
storeId: e,
|
|
1073
1077
|
events: f
|
|
@@ -1080,7 +1084,7 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1080
1084
|
const y = _ = Symbol();
|
|
1081
1085
|
xe().then(() => {
|
|
1082
1086
|
_ === y && (c = !0);
|
|
1083
|
-
}),
|
|
1087
|
+
}), l = !0, We(u, v, o.state.value[e]);
|
|
1084
1088
|
}
|
|
1085
1089
|
const N = s ? function() {
|
|
1086
1090
|
const { state: w } = n, v = w ? w() : {};
|
|
@@ -1138,12 +1142,12 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1138
1142
|
$reset: N,
|
|
1139
1143
|
$subscribe(w, v = {}) {
|
|
1140
1144
|
const y = qn(u, w, v.detached, () => I()), I = a.run(() => G(() => o.state.value[e], (U) => {
|
|
1141
|
-
(v.flush === "sync" ?
|
|
1145
|
+
(v.flush === "sync" ? l : c) && w({
|
|
1142
1146
|
storeId: e,
|
|
1143
1147
|
type: ue.direct,
|
|
1144
1148
|
events: f
|
|
1145
1149
|
}, U);
|
|
1146
|
-
}, te({},
|
|
1150
|
+
}, te({}, d, v)));
|
|
1147
1151
|
return y;
|
|
1148
1152
|
},
|
|
1149
1153
|
$dispose: $
|
|
@@ -1190,7 +1194,7 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1190
1194
|
bt(m, v, De(w.$state, v));
|
|
1191
1195
|
}), Object.keys(m.$state).forEach((v) => {
|
|
1192
1196
|
v in w.$state || zt(m, v);
|
|
1193
|
-
}), c = !1,
|
|
1197
|
+
}), c = !1, l = !1, o.state.value[e] = De(w._hmrPayload, "hotState"), l = !0, xe().then(() => {
|
|
1194
1198
|
c = !0;
|
|
1195
1199
|
});
|
|
1196
1200
|
for (const v in w._hmrPayload.actions) {
|
|
@@ -1200,7 +1204,7 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1200
1204
|
for (const v in w._hmrPayload.getters) {
|
|
1201
1205
|
const y = w._hmrPayload.getters[v], I = s ? (
|
|
1202
1206
|
// special handling of options api
|
|
1203
|
-
|
|
1207
|
+
R(() => (ut(o), y.call(m, m)))
|
|
1204
1208
|
) : y;
|
|
1205
1209
|
bt(m, v, I);
|
|
1206
1210
|
}
|
|
@@ -1238,7 +1242,7 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1238
1242
|
})));
|
|
1239
1243
|
}), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
1240
1244
|
state: () => new MyClass()
|
|
1241
|
-
Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), c = !0,
|
|
1245
|
+
Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), c = !0, l = !0, m;
|
|
1242
1246
|
}
|
|
1243
1247
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1244
1248
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1246,7 +1250,7 @@ function Ys(e, t, n) {
|
|
|
1246
1250
|
let o, r;
|
|
1247
1251
|
const s = typeof t == "function";
|
|
1248
1252
|
o = e, r = s ? n : t;
|
|
1249
|
-
function a(i,
|
|
1253
|
+
function a(i, d) {
|
|
1250
1254
|
const c = jo();
|
|
1251
1255
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1252
1256
|
// pinia instance with getActivePinia()
|
|
@@ -1255,20 +1259,20 @@ function Ys(e, t, n) {
|
|
|
1255
1259
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1256
1260
|
This will fail in production.`);
|
|
1257
1261
|
i = nt, i._s.has(o) || (s ? an(o, t, r, i) : Yn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
1258
|
-
const
|
|
1259
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1262
|
+
const l = i._s.get(o);
|
|
1263
|
+
if (process.env.NODE_ENV !== "production" && d) {
|
|
1260
1264
|
const u = "__hot:" + o, p = s ? an(u, t, r, i, !0) : Yn(u, te({}, r), i, !0);
|
|
1261
|
-
|
|
1265
|
+
d._hotUpdate(p), delete i.state.value[u], i._s.delete(u);
|
|
1262
1266
|
}
|
|
1263
1267
|
if (process.env.NODE_ENV !== "production" && $e) {
|
|
1264
1268
|
const u = Le();
|
|
1265
1269
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
1266
|
-
!
|
|
1270
|
+
!d) {
|
|
1267
1271
|
const p = u.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
1268
|
-
f[o] =
|
|
1272
|
+
f[o] = l;
|
|
1269
1273
|
}
|
|
1270
1274
|
}
|
|
1271
|
-
return
|
|
1275
|
+
return l;
|
|
1272
1276
|
}
|
|
1273
1277
|
return a.$id = o, a;
|
|
1274
1278
|
}
|
|
@@ -1286,12 +1290,13 @@ function Zo(e) {
|
|
|
1286
1290
|
}
|
|
1287
1291
|
const n = C(new ws(e, t)), o = C(!1);
|
|
1288
1292
|
return zr(async () => {
|
|
1289
|
-
var r, s;
|
|
1290
|
-
|
|
1291
|
-
|
|
1293
|
+
var r, s, a;
|
|
1294
|
+
if (!e) return;
|
|
1295
|
+
const i = e.router.currentRoute.value, d = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = i.params.record) == null ? void 0 : s.toString().toLowerCase();
|
|
1296
|
+
if (!d && !c)
|
|
1292
1297
|
return;
|
|
1293
|
-
const
|
|
1294
|
-
e.addDoctype(
|
|
1298
|
+
const l = await ((a = e.getMeta) == null ? void 0 : a.call(e, d));
|
|
1299
|
+
l && (e.addDoctype(l), n.value.setup(l), d && (c ? await n.value.getRecord(l, c) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", c ? [c] : void 0)), o.value = !0;
|
|
1295
1300
|
}), { stonecrop: n, isReady: o };
|
|
1296
1301
|
}
|
|
1297
1302
|
const Ks = class St {
|
|
@@ -1307,7 +1312,7 @@ const Ks = class St {
|
|
|
1307
1312
|
* @see {@link DoctypeMeta}
|
|
1308
1313
|
*/
|
|
1309
1314
|
addDoctype(t) {
|
|
1310
|
-
t.doctype in Object.keys(this.registry) || (this.registry[t.slug] = t), this.router.hasRoute(t.doctype)
|
|
1315
|
+
t.doctype in Object.keys(this.registry) || (this.registry[t.slug] = t), !this.router.hasRoute(t.doctype) && t.component && this.router.addRoute({
|
|
1311
1316
|
path: `/${t.slug}`,
|
|
1312
1317
|
name: t.slug,
|
|
1313
1318
|
component: t.component
|
|
@@ -1329,7 +1334,7 @@ function Xs(e) {
|
|
|
1329
1334
|
// add the Module string tag
|
|
1330
1335
|
e.default && er(e.default);
|
|
1331
1336
|
}
|
|
1332
|
-
const
|
|
1337
|
+
const L = Object.assign;
|
|
1333
1338
|
function Gt(e, t) {
|
|
1334
1339
|
const n = {};
|
|
1335
1340
|
for (const o in t) {
|
|
@@ -1375,8 +1380,8 @@ const pa = /\/$/, fa = (e) => e.replace(pa, "");
|
|
|
1375
1380
|
function Jt(e, t, n = "/") {
|
|
1376
1381
|
let o, r = {}, s = "", a = "";
|
|
1377
1382
|
const i = t.indexOf("#");
|
|
1378
|
-
let
|
|
1379
|
-
return i <
|
|
1383
|
+
let d = t.indexOf("?");
|
|
1384
|
+
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 = va(o ?? t, n), {
|
|
1380
1385
|
fullPath: o + (s && "?") + s + a,
|
|
1381
1386
|
path: o,
|
|
1382
1387
|
query: r,
|
|
@@ -1540,7 +1545,7 @@ function Oa(e, t, n, o) {
|
|
|
1540
1545
|
});
|
|
1541
1546
|
});
|
|
1542
1547
|
};
|
|
1543
|
-
function
|
|
1548
|
+
function d() {
|
|
1544
1549
|
a = n.value;
|
|
1545
1550
|
}
|
|
1546
1551
|
function c(p) {
|
|
@@ -1551,19 +1556,19 @@ function Oa(e, t, n, o) {
|
|
|
1551
1556
|
};
|
|
1552
1557
|
return s.push(f), f;
|
|
1553
1558
|
}
|
|
1554
|
-
function
|
|
1559
|
+
function l() {
|
|
1555
1560
|
const { history: p } = window;
|
|
1556
|
-
p.state && p.replaceState(
|
|
1561
|
+
p.state && p.replaceState(L({}, p.state, { scroll: Lt() }), "");
|
|
1557
1562
|
}
|
|
1558
1563
|
function u() {
|
|
1559
1564
|
for (const p of s)
|
|
1560
1565
|
p();
|
|
1561
|
-
s = [], window.removeEventListener("popstate", i), window.removeEventListener("beforeunload",
|
|
1566
|
+
s = [], window.removeEventListener("popstate", i), window.removeEventListener("beforeunload", l);
|
|
1562
1567
|
}
|
|
1563
|
-
return window.addEventListener("popstate", i), window.addEventListener("beforeunload",
|
|
1568
|
+
return window.addEventListener("popstate", i), window.addEventListener("beforeunload", l, {
|
|
1564
1569
|
passive: !0
|
|
1565
1570
|
}), {
|
|
1566
|
-
pauseListeners:
|
|
1571
|
+
pauseListeners: d,
|
|
1567
1572
|
listen: c,
|
|
1568
1573
|
destroy: u
|
|
1569
1574
|
};
|
|
@@ -1593,26 +1598,26 @@ function Na(e) {
|
|
|
1593
1598
|
// scrollBehavior to be triggered without a saved position
|
|
1594
1599
|
scroll: null
|
|
1595
1600
|
}, !0);
|
|
1596
|
-
function s(
|
|
1597
|
-
const u = e.indexOf("#"), p = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) +
|
|
1601
|
+
function s(d, c, l) {
|
|
1602
|
+
const u = e.indexOf("#"), p = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + d : $a() + e + d;
|
|
1598
1603
|
try {
|
|
1599
|
-
t[
|
|
1604
|
+
t[l ? "replaceState" : "pushState"](c, "", p), r.value = c;
|
|
1600
1605
|
} catch (f) {
|
|
1601
|
-
process.env.NODE_ENV !== "production" ? D("Error with push/replace State", f) : console.error(f), n[
|
|
1606
|
+
process.env.NODE_ENV !== "production" ? D("Error with push/replace State", f) : console.error(f), n[l ? "replace" : "assign"](p);
|
|
1602
1607
|
}
|
|
1603
1608
|
}
|
|
1604
|
-
function a(
|
|
1605
|
-
const
|
|
1609
|
+
function a(d, c) {
|
|
1610
|
+
const l = L({}, t.state, eo(
|
|
1606
1611
|
r.value.back,
|
|
1607
1612
|
// keep back and forward entries but override current position
|
|
1608
|
-
|
|
1613
|
+
d,
|
|
1609
1614
|
r.value.forward,
|
|
1610
1615
|
!0
|
|
1611
1616
|
), c, { position: r.value.position });
|
|
1612
|
-
s(
|
|
1617
|
+
s(d, l, !0), o.value = d;
|
|
1613
1618
|
}
|
|
1614
|
-
function i(
|
|
1615
|
-
const
|
|
1619
|
+
function i(d, c) {
|
|
1620
|
+
const l = L(
|
|
1616
1621
|
{},
|
|
1617
1622
|
// use current history state to gracefully handle a wrong call to
|
|
1618
1623
|
// history.replaceState
|
|
@@ -1620,7 +1625,7 @@ function Na(e) {
|
|
|
1620
1625
|
r.value,
|
|
1621
1626
|
t.state,
|
|
1622
1627
|
{
|
|
1623
|
-
forward:
|
|
1628
|
+
forward: d,
|
|
1624
1629
|
scroll: Lt()
|
|
1625
1630
|
}
|
|
1626
1631
|
);
|
|
@@ -1628,9 +1633,9 @@ function Na(e) {
|
|
|
1628
1633
|
|
|
1629
1634
|
history.replaceState(history.state, '', url)
|
|
1630
1635
|
|
|
1631
|
-
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(
|
|
1632
|
-
const u =
|
|
1633
|
-
s(
|
|
1636
|
+
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(l.current, l, !0);
|
|
1637
|
+
const u = L({}, eo(o.value, d, null), { position: l.position + 1 }, c);
|
|
1638
|
+
s(d, u, !1), o.value = d;
|
|
1634
1639
|
}
|
|
1635
1640
|
return {
|
|
1636
1641
|
location: o,
|
|
@@ -1645,7 +1650,7 @@ function xa(e) {
|
|
|
1645
1650
|
function o(s, a = !0) {
|
|
1646
1651
|
a || n.pauseListeners(), history.go(s);
|
|
1647
1652
|
}
|
|
1648
|
-
const r =
|
|
1653
|
+
const r = L({
|
|
1649
1654
|
// it's overridden right after
|
|
1650
1655
|
location: "",
|
|
1651
1656
|
base: e,
|
|
@@ -1692,10 +1697,10 @@ while being at
|
|
|
1692
1697
|
}
|
|
1693
1698
|
};
|
|
1694
1699
|
function Je(e, t) {
|
|
1695
|
-
return process.env.NODE_ENV !== "production" ?
|
|
1700
|
+
return process.env.NODE_ENV !== "production" ? L(new Error(Sa[e](t)), {
|
|
1696
1701
|
type: e,
|
|
1697
1702
|
[un]: !0
|
|
1698
|
-
}, t) :
|
|
1703
|
+
}, t) : L(new Error(), {
|
|
1699
1704
|
type: e,
|
|
1700
1705
|
[un]: !0
|
|
1701
1706
|
}, t);
|
|
@@ -1721,11 +1726,11 @@ const no = "[^/]+?", Ia = {
|
|
|
1721
1726
|
end: !0
|
|
1722
1727
|
}, Da = /[.+*?^${}()[\]/\\]/g;
|
|
1723
1728
|
function Va(e, t) {
|
|
1724
|
-
const n =
|
|
1729
|
+
const n = L({}, Ia, t), o = [];
|
|
1725
1730
|
let r = n.start ? "^" : "";
|
|
1726
1731
|
const s = [];
|
|
1727
1732
|
for (const c of e) {
|
|
1728
|
-
const
|
|
1733
|
+
const l = c.length ? [] : [
|
|
1729
1734
|
90
|
|
1730
1735
|
/* PathScore.Root */
|
|
1731
1736
|
];
|
|
@@ -1756,9 +1761,9 @@ function Va(e, t) {
|
|
|
1756
1761
|
// or /:p?-:p2
|
|
1757
1762
|
_ && c.length < 2 ? `(?:/${$})` : "/" + $), _ && ($ += "?"), r += $, f += 20, _ && (f += -8), b && (f += -20), N === ".*" && (f += -50);
|
|
1758
1763
|
}
|
|
1759
|
-
|
|
1764
|
+
l.push(f);
|
|
1760
1765
|
}
|
|
1761
|
-
o.push(
|
|
1766
|
+
o.push(l);
|
|
1762
1767
|
}
|
|
1763
1768
|
if (n.strict && n.end) {
|
|
1764
1769
|
const c = o.length - 1;
|
|
@@ -1767,22 +1772,22 @@ function Va(e, t) {
|
|
|
1767
1772
|
n.strict || (r += "/?"), n.end ? r += "$" : n.strict && !r.endsWith("/") && (r += "(?:/|$)");
|
|
1768
1773
|
const a = new RegExp(r, n.sensitive ? "" : "i");
|
|
1769
1774
|
function i(c) {
|
|
1770
|
-
const
|
|
1771
|
-
if (!
|
|
1775
|
+
const l = c.match(a), u = {};
|
|
1776
|
+
if (!l)
|
|
1772
1777
|
return null;
|
|
1773
|
-
for (let p = 1; p <
|
|
1774
|
-
const f =
|
|
1778
|
+
for (let p = 1; p < l.length; p++) {
|
|
1779
|
+
const f = l[p] || "", h = s[p - 1];
|
|
1775
1780
|
u[h.name] = f && h.repeatable ? f.split("/") : f;
|
|
1776
1781
|
}
|
|
1777
1782
|
return u;
|
|
1778
1783
|
}
|
|
1779
|
-
function
|
|
1780
|
-
let
|
|
1784
|
+
function d(c) {
|
|
1785
|
+
let l = "", u = !1;
|
|
1781
1786
|
for (const p of e) {
|
|
1782
|
-
(!u || !
|
|
1787
|
+
(!u || !l.endsWith("/")) && (l += "/"), u = !1;
|
|
1783
1788
|
for (const f of p)
|
|
1784
1789
|
if (f.type === 0)
|
|
1785
|
-
|
|
1790
|
+
l += f.value;
|
|
1786
1791
|
else if (f.type === 1) {
|
|
1787
1792
|
const { value: h, repeatable: b, optional: _ } = f, x = h in c ? c[h] : "";
|
|
1788
1793
|
if (Z(x) && !b)
|
|
@@ -1790,20 +1795,20 @@ function Va(e, t) {
|
|
|
1790
1795
|
const N = Z(x) ? x.join("/") : x;
|
|
1791
1796
|
if (!N)
|
|
1792
1797
|
if (_)
|
|
1793
|
-
p.length < 2 && (
|
|
1798
|
+
p.length < 2 && (l.endsWith("/") ? l = l.slice(0, -1) : u = !0);
|
|
1794
1799
|
else
|
|
1795
1800
|
throw new Error(`Missing required param "${h}"`);
|
|
1796
|
-
|
|
1801
|
+
l += N;
|
|
1797
1802
|
}
|
|
1798
1803
|
}
|
|
1799
|
-
return
|
|
1804
|
+
return l || "/";
|
|
1800
1805
|
}
|
|
1801
1806
|
return {
|
|
1802
1807
|
re: a,
|
|
1803
1808
|
score: o,
|
|
1804
1809
|
keys: s,
|
|
1805
1810
|
parse: i,
|
|
1806
|
-
stringify:
|
|
1811
|
+
stringify: d
|
|
1807
1812
|
};
|
|
1808
1813
|
}
|
|
1809
1814
|
function Aa(e, t) {
|
|
@@ -1857,42 +1862,42 @@ function Ra(e) {
|
|
|
1857
1862
|
function a() {
|
|
1858
1863
|
s && r.push(s), s = [];
|
|
1859
1864
|
}
|
|
1860
|
-
let i = 0,
|
|
1865
|
+
let i = 0, d, c = "", l = "";
|
|
1861
1866
|
function u() {
|
|
1862
1867
|
c && (n === 0 ? s.push({
|
|
1863
1868
|
type: 0,
|
|
1864
1869
|
value: c
|
|
1865
|
-
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (
|
|
1870
|
+
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (d === "*" || d === "+") && t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`), s.push({
|
|
1866
1871
|
type: 1,
|
|
1867
1872
|
value: c,
|
|
1868
|
-
regexp:
|
|
1869
|
-
repeatable:
|
|
1870
|
-
optional:
|
|
1873
|
+
regexp: l,
|
|
1874
|
+
repeatable: d === "*" || d === "+",
|
|
1875
|
+
optional: d === "*" || d === "?"
|
|
1871
1876
|
})) : t("Invalid state to consume buffer"), c = "");
|
|
1872
1877
|
}
|
|
1873
1878
|
function p() {
|
|
1874
|
-
c +=
|
|
1879
|
+
c += d;
|
|
1875
1880
|
}
|
|
1876
1881
|
for (; i < e.length; ) {
|
|
1877
|
-
if (
|
|
1882
|
+
if (d = e[i++], d === "\\" && n !== 2) {
|
|
1878
1883
|
o = n, n = 4;
|
|
1879
1884
|
continue;
|
|
1880
1885
|
}
|
|
1881
1886
|
switch (n) {
|
|
1882
1887
|
case 0:
|
|
1883
|
-
|
|
1888
|
+
d === "/" ? (c && u(), a()) : d === ":" ? (u(), n = 1) : p();
|
|
1884
1889
|
break;
|
|
1885
1890
|
case 4:
|
|
1886
1891
|
p(), n = o;
|
|
1887
1892
|
break;
|
|
1888
1893
|
case 1:
|
|
1889
|
-
|
|
1894
|
+
d === "(" ? n = 2 : ja.test(d) ? p() : (u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--);
|
|
1890
1895
|
break;
|
|
1891
1896
|
case 2:
|
|
1892
|
-
|
|
1897
|
+
d === ")" ? l[l.length - 1] == "\\" ? l = l.slice(0, -1) + d : n = 3 : l += d;
|
|
1893
1898
|
break;
|
|
1894
1899
|
case 3:
|
|
1895
|
-
u(), n = 0,
|
|
1900
|
+
u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--, l = "";
|
|
1896
1901
|
break;
|
|
1897
1902
|
default:
|
|
1898
1903
|
t("Unknown state");
|
|
@@ -1908,7 +1913,7 @@ function La(e, t, n) {
|
|
|
1908
1913
|
for (const a of o.keys)
|
|
1909
1914
|
s.has(a.name) && D(`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);
|
|
1910
1915
|
}
|
|
1911
|
-
const r =
|
|
1916
|
+
const r = L(o, {
|
|
1912
1917
|
record: e,
|
|
1913
1918
|
parent: t,
|
|
1914
1919
|
// these needs to be populated by the parent
|
|
@@ -1933,7 +1938,7 @@ function Ma(e, t) {
|
|
|
1933
1938
|
x.push(
|
|
1934
1939
|
// we need to normalize again to ensure the `mods` property
|
|
1935
1940
|
// being non enumerable
|
|
1936
|
-
so(
|
|
1941
|
+
so(L({}, b, {
|
|
1937
1942
|
// this allows us to hold a copy of the `components` option
|
|
1938
1943
|
// so that async components cache is hold on the original record
|
|
1939
1944
|
components: f ? f.record.components : b.components,
|
|
@@ -1955,7 +1960,7 @@ function Ma(e, t) {
|
|
|
1955
1960
|
if (process.env.NODE_ENV !== "production" && j.path === "*")
|
|
1956
1961
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
1957
1962
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
|
1958
|
-
if (N = La(j, p, _), process.env.NODE_ENV !== "production" && p && H[0] === "/" && za(N, p), f ? (f.alias.push(N), process.env.NODE_ENV !== "production" && Ua(f, N)) : ($ = $ || N, $ !== N && $.alias.push(N), h && u.name && !ao(N) && (process.env.NODE_ENV !== "production" && Fa(u, p), a(u.name))), ur(N) &&
|
|
1963
|
+
if (N = La(j, p, _), process.env.NODE_ENV !== "production" && p && H[0] === "/" && za(N, p), f ? (f.alias.push(N), process.env.NODE_ENV !== "production" && Ua(f, N)) : ($ = $ || N, $ !== N && $.alias.push(N), h && u.name && !ao(N) && (process.env.NODE_ENV !== "production" && Fa(u, p), a(u.name))), ur(N) && d(N), b.children) {
|
|
1959
1964
|
const Y = b.children;
|
|
1960
1965
|
for (let m = 0; m < Y.length; m++)
|
|
1961
1966
|
s(Y[m], N, f && f.children[m]);
|
|
@@ -1978,7 +1983,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1978
1983
|
function i() {
|
|
1979
1984
|
return n;
|
|
1980
1985
|
}
|
|
1981
|
-
function
|
|
1986
|
+
function d(u) {
|
|
1982
1987
|
const p = qa(u, n);
|
|
1983
1988
|
n.splice(p, 0, u), u.record.name && !ao(u) && o.set(u.record.name, u);
|
|
1984
1989
|
}
|
|
@@ -1993,7 +1998,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1993
1998
|
const $ = Object.keys(u.params || {}).filter((j) => !f.keys.find((H) => H.name === j));
|
|
1994
1999
|
$.length && D(`Discarded invalid param(s) "${$.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
1995
2000
|
}
|
|
1996
|
-
_ = f.record.name, h =
|
|
2001
|
+
_ = f.record.name, h = L(
|
|
1997
2002
|
// paramsFromLocation is a new object
|
|
1998
2003
|
ro(
|
|
1999
2004
|
p.params,
|
|
@@ -2013,7 +2018,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
2013
2018
|
location: u,
|
|
2014
2019
|
currentLocation: p
|
|
2015
2020
|
});
|
|
2016
|
-
_ = f.record.name, h =
|
|
2021
|
+
_ = f.record.name, h = L({}, p.params, u.params), b = f.stringify(h);
|
|
2017
2022
|
}
|
|
2018
2023
|
const x = [];
|
|
2019
2024
|
let N = f;
|
|
@@ -2028,14 +2033,14 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
2028
2033
|
};
|
|
2029
2034
|
}
|
|
2030
2035
|
e.forEach((u) => s(u));
|
|
2031
|
-
function
|
|
2036
|
+
function l() {
|
|
2032
2037
|
n.length = 0, o.clear();
|
|
2033
2038
|
}
|
|
2034
2039
|
return {
|
|
2035
2040
|
addRoute: s,
|
|
2036
2041
|
resolve: c,
|
|
2037
2042
|
removeRoute: a,
|
|
2038
|
-
clearRoutes:
|
|
2043
|
+
clearRoutes: l,
|
|
2039
2044
|
getRoutes: i,
|
|
2040
2045
|
getRecordMatcher: r
|
|
2041
2046
|
};
|
|
@@ -2086,7 +2091,7 @@ function ao(e) {
|
|
|
2086
2091
|
return !1;
|
|
2087
2092
|
}
|
|
2088
2093
|
function Wa(e) {
|
|
2089
|
-
return e.reduce((t, n) =>
|
|
2094
|
+
return e.reduce((t, n) => L(t, n.meta), {});
|
|
2090
2095
|
}
|
|
2091
2096
|
function io(e, t) {
|
|
2092
2097
|
const n = {};
|
|
@@ -2144,8 +2149,8 @@ function Ja(e) {
|
|
|
2144
2149
|
for (let o = 0; o < n.length; ++o) {
|
|
2145
2150
|
const r = n[o].replace(nr, " "), s = r.indexOf("="), a = Ge(s < 0 ? r : r.slice(0, s)), i = s < 0 ? null : Ge(r.slice(s + 1));
|
|
2146
2151
|
if (a in t) {
|
|
2147
|
-
let
|
|
2148
|
-
Z(
|
|
2152
|
+
let d = t[a];
|
|
2153
|
+
Z(d) || (d = t[a] = [d]), d.push(i);
|
|
2149
2154
|
} else
|
|
2150
2155
|
t[a] = i;
|
|
2151
2156
|
}
|
|
@@ -2194,30 +2199,30 @@ function et() {
|
|
|
2194
2199
|
function Ee(e, t, n, o, r, s = (a) => a()) {
|
|
2195
2200
|
const a = o && // name is defined if record is because of the function overload
|
|
2196
2201
|
(o.enterCallbacks[r] = o.enterCallbacks[r] || []);
|
|
2197
|
-
return () => new Promise((i,
|
|
2202
|
+
return () => new Promise((i, d) => {
|
|
2198
2203
|
const c = (p) => {
|
|
2199
|
-
p === !1 ?
|
|
2204
|
+
p === !1 ? d(Je(4, {
|
|
2200
2205
|
from: n,
|
|
2201
2206
|
to: t
|
|
2202
|
-
})) : p instanceof Error ?
|
|
2207
|
+
})) : p instanceof Error ? d(p) : At(p) ? d(Je(2, {
|
|
2203
2208
|
from: t,
|
|
2204
2209
|
to: p
|
|
2205
2210
|
})) : (a && // since enterCallbackArray is truthy, both record and name also are
|
|
2206
2211
|
o.enterCallbacks[r] === a && typeof p == "function" && a.push(p), i());
|
|
2207
|
-
},
|
|
2208
|
-
let u = Promise.resolve(
|
|
2212
|
+
}, l = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Ka(c, t, n) : c));
|
|
2213
|
+
let u = Promise.resolve(l);
|
|
2209
2214
|
if (e.length < 3 && (u = u.then(c)), process.env.NODE_ENV !== "production" && e.length > 2) {
|
|
2210
2215
|
const p = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
|
2211
2216
|
${e.toString()}
|
|
2212
2217
|
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
|
|
2213
|
-
if (typeof
|
|
2218
|
+
if (typeof l == "object" && "then" in l)
|
|
2214
2219
|
u = u.then((f) => c._called ? f : (D(p), Promise.reject(new Error("Invalid navigation guard"))));
|
|
2215
|
-
else if (
|
|
2216
|
-
D(p),
|
|
2220
|
+
else if (l !== void 0 && !c._called) {
|
|
2221
|
+
D(p), d(new Error("Invalid navigation guard"));
|
|
2217
2222
|
return;
|
|
2218
2223
|
}
|
|
2219
2224
|
}
|
|
2220
|
-
u.catch((p) =>
|
|
2225
|
+
u.catch((p) => d(p));
|
|
2221
2226
|
});
|
|
2222
2227
|
}
|
|
2223
2228
|
function Ka(e, t, n) {
|
|
@@ -2231,28 +2236,28 @@ function Yt(e, t, n, o, r = (s) => s()) {
|
|
|
2231
2236
|
for (const a of e) {
|
|
2232
2237
|
process.env.NODE_ENV !== "production" && !a.components && !a.children.length && D(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);
|
|
2233
2238
|
for (const i in a.components) {
|
|
2234
|
-
let
|
|
2239
|
+
let d = a.components[i];
|
|
2235
2240
|
if (process.env.NODE_ENV !== "production") {
|
|
2236
|
-
if (!
|
|
2237
|
-
throw D(`Component "${i}" in record with path "${a.path}" is not a valid component. Received "${String(
|
|
2238
|
-
if ("then" in
|
|
2241
|
+
if (!d || typeof d != "object" && typeof d != "function")
|
|
2242
|
+
throw D(`Component "${i}" in record with path "${a.path}" is not a valid component. Received "${String(d)}".`), new Error("Invalid route component");
|
|
2243
|
+
if ("then" in d) {
|
|
2239
2244
|
D(`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.`);
|
|
2240
|
-
const c =
|
|
2241
|
-
|
|
2242
|
-
} else
|
|
2243
|
-
!
|
|
2245
|
+
const c = d;
|
|
2246
|
+
d = () => c;
|
|
2247
|
+
} else d.__asyncLoader && // warn only once per component
|
|
2248
|
+
!d.__warnedDefineAsync && (d.__warnedDefineAsync = !0, D(`Component "${i}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
|
2244
2249
|
}
|
|
2245
2250
|
if (!(t !== "beforeRouteEnter" && !a.instances[i]))
|
|
2246
|
-
if (er(
|
|
2247
|
-
const c = (
|
|
2251
|
+
if (er(d)) {
|
|
2252
|
+
const c = (d.__vccOpts || d)[t];
|
|
2248
2253
|
c && s.push(Ee(c, n, o, a, i, r));
|
|
2249
2254
|
} else {
|
|
2250
|
-
let c =
|
|
2251
|
-
process.env.NODE_ENV !== "production" && !("catch" in c) && (D(`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.`), c = Promise.resolve(c)), s.push(() => c.then((
|
|
2252
|
-
if (!
|
|
2255
|
+
let c = d();
|
|
2256
|
+
process.env.NODE_ENV !== "production" && !("catch" in c) && (D(`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.`), c = Promise.resolve(c)), s.push(() => c.then((l) => {
|
|
2257
|
+
if (!l)
|
|
2253
2258
|
throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
|
|
2254
|
-
const u = Xs(
|
|
2255
|
-
a.mods[i] =
|
|
2259
|
+
const u = Xs(l) ? l.default : l;
|
|
2260
|
+
a.mods[i] = l, a.components[i] = u;
|
|
2256
2261
|
const p = (u.__vccOpts || u)[t];
|
|
2257
2262
|
return p && Ee(p, n, o, a, i, r)();
|
|
2258
2263
|
}));
|
|
@@ -2264,33 +2269,33 @@ function Yt(e, t, n, o, r = (s) => s()) {
|
|
|
2264
2269
|
function uo(e) {
|
|
2265
2270
|
const t = Ne(xn), n = Ne(dr);
|
|
2266
2271
|
let o = !1, r = null;
|
|
2267
|
-
const s =
|
|
2268
|
-
const
|
|
2269
|
-
return process.env.NODE_ENV !== "production" && (!o ||
|
|
2270
|
-
- to:`,
|
|
2272
|
+
const s = R(() => {
|
|
2273
|
+
const l = S(e.to);
|
|
2274
|
+
return process.env.NODE_ENV !== "production" && (!o || l !== r) && (At(l) || (o ? D(`Invalid value for prop "to" in useLink()
|
|
2275
|
+
- to:`, l, `
|
|
2271
2276
|
- previous to:`, r, `
|
|
2272
2277
|
- props:`, e) : D(`Invalid value for prop "to" in useLink()
|
|
2273
|
-
- to:`,
|
|
2274
|
-
- props:`, e)), r =
|
|
2275
|
-
}), a =
|
|
2276
|
-
const { matched:
|
|
2278
|
+
- to:`, l, `
|
|
2279
|
+
- props:`, e)), r = l, o = !0), t.resolve(l);
|
|
2280
|
+
}), a = R(() => {
|
|
2281
|
+
const { matched: l } = s.value, { length: u } = l, p = l[u - 1], f = n.matched;
|
|
2277
2282
|
if (!p || !f.length)
|
|
2278
2283
|
return -1;
|
|
2279
2284
|
const h = f.findIndex(Se.bind(null, p));
|
|
2280
2285
|
if (h > -1)
|
|
2281
2286
|
return h;
|
|
2282
|
-
const b = po(
|
|
2287
|
+
const b = po(l[u - 2]);
|
|
2283
2288
|
return (
|
|
2284
2289
|
// we are dealing with nested routes
|
|
2285
2290
|
u > 1 && // if the parent and matched route have the same path, this link is
|
|
2286
2291
|
// referring to the empty child. Or we currently are on a different
|
|
2287
2292
|
// child of the same parent
|
|
2288
2293
|
po(p) === b && // avoid comparing the child with its parent
|
|
2289
|
-
f[f.length - 1].path !== b ? f.findIndex(Se.bind(null,
|
|
2294
|
+
f[f.length - 1].path !== b ? f.findIndex(Se.bind(null, l[u - 2])) : h
|
|
2290
2295
|
);
|
|
2291
|
-
}), i =
|
|
2292
|
-
function c(
|
|
2293
|
-
if (ti(
|
|
2296
|
+
}), i = R(() => a.value > -1 && ni(n.params, s.value.params)), d = R(() => a.value > -1 && a.value === n.matched.length - 1 && ar(n.params, s.value.params));
|
|
2297
|
+
function c(l = {}) {
|
|
2298
|
+
if (ti(l)) {
|
|
2294
2299
|
const u = t[S(e.replace) ? "replace" : "push"](
|
|
2295
2300
|
S(e.to)
|
|
2296
2301
|
// avoid uncaught errors are they are logged anyway
|
|
@@ -2300,24 +2305,24 @@ function uo(e) {
|
|
|
2300
2305
|
return Promise.resolve();
|
|
2301
2306
|
}
|
|
2302
2307
|
if (process.env.NODE_ENV !== "production" && me) {
|
|
2303
|
-
const
|
|
2304
|
-
if (
|
|
2308
|
+
const l = Le();
|
|
2309
|
+
if (l) {
|
|
2305
2310
|
const u = {
|
|
2306
2311
|
route: s.value,
|
|
2307
2312
|
isActive: i.value,
|
|
2308
|
-
isExactActive:
|
|
2313
|
+
isExactActive: d.value,
|
|
2309
2314
|
error: null
|
|
2310
2315
|
};
|
|
2311
|
-
|
|
2312
|
-
u.route = s.value, u.isActive = i.value, u.isExactActive =
|
|
2316
|
+
l.__vrl_devtools = l.__vrl_devtools || [], l.__vrl_devtools.push(u), Jr(() => {
|
|
2317
|
+
u.route = s.value, u.isActive = i.value, u.isExactActive = d.value, u.error = At(S(e.to)) ? null : 'Invalid "to" value';
|
|
2313
2318
|
}, { flush: "post" });
|
|
2314
2319
|
}
|
|
2315
2320
|
}
|
|
2316
2321
|
return {
|
|
2317
2322
|
route: s,
|
|
2318
|
-
href:
|
|
2323
|
+
href: R(() => s.value.href),
|
|
2319
2324
|
isActive: i,
|
|
2320
|
-
isExactActive:
|
|
2325
|
+
isExactActive: d,
|
|
2321
2326
|
navigate: c
|
|
2322
2327
|
};
|
|
2323
2328
|
}
|
|
@@ -2344,7 +2349,7 @@ const Za = /* @__PURE__ */ ae({
|
|
|
2344
2349
|
},
|
|
2345
2350
|
useLink: uo,
|
|
2346
2351
|
setup(e, { slots: t }) {
|
|
2347
|
-
const n = _n(uo(e)), { options: o } = Ne(xn), r =
|
|
2352
|
+
const n = _n(uo(e)), { options: o } = Ne(xn), r = R(() => ({
|
|
2348
2353
|
[fo(e.activeClass, o.linkActiveClass, "router-link-active")]: n.isActive,
|
|
2349
2354
|
// [getLinkClass(
|
|
2350
2355
|
// props.inactiveClass,
|
|
@@ -2406,29 +2411,29 @@ const fo = (e, t, n) => e ?? t ?? n, oi = /* @__PURE__ */ ae({
|
|
|
2406
2411
|
compatConfig: { MODE: 3 },
|
|
2407
2412
|
setup(e, { attrs: t, slots: n }) {
|
|
2408
2413
|
process.env.NODE_ENV !== "production" && si();
|
|
2409
|
-
const o = Ne(pn), r =
|
|
2414
|
+
const o = Ne(pn), r = R(() => e.route || o.value), s = Ne(lo, 0), a = R(() => {
|
|
2410
2415
|
let c = S(s);
|
|
2411
|
-
const { matched:
|
|
2416
|
+
const { matched: l } = r.value;
|
|
2412
2417
|
let u;
|
|
2413
|
-
for (; (u =
|
|
2418
|
+
for (; (u = l[c]) && !u.components; )
|
|
2414
2419
|
c++;
|
|
2415
2420
|
return c;
|
|
2416
|
-
}), i =
|
|
2417
|
-
Ft(lo,
|
|
2418
|
-
const
|
|
2419
|
-
return G(() => [
|
|
2420
|
-
|
|
2421
|
+
}), i = R(() => r.value.matched[a.value]);
|
|
2422
|
+
Ft(lo, R(() => a.value + 1)), Ft(Qa, i), Ft(pn, r);
|
|
2423
|
+
const d = C();
|
|
2424
|
+
return G(() => [d.value, i.value, e.name], ([c, l, u], [p, f, h]) => {
|
|
2425
|
+
l && (l.instances[u] = c, f && f !== l && c && c === p && (l.leaveGuards.size || (l.leaveGuards = f.leaveGuards), l.updateGuards.size || (l.updateGuards = f.updateGuards))), c && l && // if there is no instance but to and from are the same this might be
|
|
2421
2426
|
// the first visit
|
|
2422
|
-
(!f || !Se(
|
|
2427
|
+
(!f || !Se(l, f) || !p) && (l.enterCallbacks[u] || []).forEach((b) => b(c));
|
|
2423
2428
|
}, { flush: "post" }), () => {
|
|
2424
|
-
const c = r.value,
|
|
2429
|
+
const c = r.value, l = e.name, u = i.value, p = u && u.components[l];
|
|
2425
2430
|
if (!p)
|
|
2426
2431
|
return ho(n.default, { Component: p, route: c });
|
|
2427
|
-
const f = u.props[
|
|
2432
|
+
const f = u.props[l], h = f ? f === !0 ? c.params : typeof f == "function" ? f(c) : f : null, b = Ro(p, L({}, h, t, {
|
|
2428
2433
|
onVnodeUnmounted: (_) => {
|
|
2429
|
-
_.component.isUnmounted && (u.instances[
|
|
2434
|
+
_.component.isUnmounted && (u.instances[l] = null);
|
|
2430
2435
|
},
|
|
2431
|
-
ref:
|
|
2436
|
+
ref: d
|
|
2432
2437
|
}));
|
|
2433
2438
|
if (process.env.NODE_ENV !== "production" && me && b.ref) {
|
|
2434
2439
|
const _ = {
|
|
@@ -2471,7 +2476,7 @@ Use slot props instead:
|
|
|
2471
2476
|
}
|
|
2472
2477
|
}
|
|
2473
2478
|
function tt(e, t) {
|
|
2474
|
-
const n =
|
|
2479
|
+
const n = L({}, e, {
|
|
2475
2480
|
// remove variables that can contain vue instances
|
|
2476
2481
|
matched: e.matched.map((o) => vi(o, ["instances", "children", "aliasOf"]))
|
|
2477
2482
|
});
|
|
@@ -2507,17 +2512,17 @@ function ii(e, t, n) {
|
|
|
2507
2512
|
componentStateTypes: ["Routing"],
|
|
2508
2513
|
app: e
|
|
2509
2514
|
}, (r) => {
|
|
2510
|
-
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((
|
|
2511
|
-
|
|
2515
|
+
typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((l, u) => {
|
|
2516
|
+
l.instanceData && l.instanceData.state.push({
|
|
2512
2517
|
type: "Routing",
|
|
2513
2518
|
key: "$route",
|
|
2514
2519
|
editable: !1,
|
|
2515
2520
|
value: tt(t.currentRoute.value, "Current Route")
|
|
2516
2521
|
});
|
|
2517
|
-
}), r.on.visitComponentTree(({ treeNode:
|
|
2522
|
+
}), r.on.visitComponentTree(({ treeNode: l, componentInstance: u }) => {
|
|
2518
2523
|
if (u.__vrv_devtools) {
|
|
2519
2524
|
const p = u.__vrv_devtools;
|
|
2520
|
-
|
|
2525
|
+
l.tags.push({
|
|
2521
2526
|
label: (p.name ? `${p.name.toString()}: ` : "") + p.path,
|
|
2522
2527
|
textColor: 0,
|
|
2523
2528
|
tooltip: "This component is rendered by <router-view>",
|
|
@@ -2526,7 +2531,7 @@ function ii(e, t, n) {
|
|
|
2526
2531
|
}
|
|
2527
2532
|
Z(u.__vrl_devtools) && (u.__devtoolsApi = r, u.__vrl_devtools.forEach((p) => {
|
|
2528
2533
|
let f = p.route.path, h = mr, b = "", _ = 0;
|
|
2529
|
-
p.error ? (f = p.error, h = pi, _ = fi) : p.isExactActive ? (h = hr, b = "This is exactly active") : p.isActive && (h = fr, b = "This link is active"),
|
|
2534
|
+
p.error ? (f = p.error, h = pi, _ = fi) : p.isExactActive ? (h = hr, b = "This is exactly active") : p.isActive && (h = fr, b = "This link is active"), l.tags.push({
|
|
2530
2535
|
label: f,
|
|
2531
2536
|
textColor: _,
|
|
2532
2537
|
tooltip: b,
|
|
@@ -2534,14 +2539,14 @@ function ii(e, t, n) {
|
|
|
2534
2539
|
});
|
|
2535
2540
|
}));
|
|
2536
2541
|
}), G(t.currentRoute, () => {
|
|
2537
|
-
|
|
2542
|
+
d(), r.notifyComponentUpdate(), r.sendInspectorTree(i), r.sendInspectorState(i);
|
|
2538
2543
|
});
|
|
2539
2544
|
const s = "router:navigations:" + o;
|
|
2540
2545
|
r.addTimelineLayer({
|
|
2541
2546
|
id: s,
|
|
2542
2547
|
label: `Router${o ? " " + o : ""} Navigations`,
|
|
2543
2548
|
color: 4237508
|
|
2544
|
-
}), t.onError((
|
|
2549
|
+
}), t.onError((l, u) => {
|
|
2545
2550
|
r.addTimelineEvent({
|
|
2546
2551
|
layerId: s,
|
|
2547
2552
|
event: {
|
|
@@ -2549,31 +2554,31 @@ function ii(e, t, n) {
|
|
|
2549
2554
|
subtitle: u.fullPath,
|
|
2550
2555
|
logType: "error",
|
|
2551
2556
|
time: r.now(),
|
|
2552
|
-
data: { error:
|
|
2557
|
+
data: { error: l },
|
|
2553
2558
|
groupId: u.meta.__navigationId
|
|
2554
2559
|
}
|
|
2555
2560
|
});
|
|
2556
2561
|
});
|
|
2557
2562
|
let a = 0;
|
|
2558
|
-
t.beforeEach((
|
|
2563
|
+
t.beforeEach((l, u) => {
|
|
2559
2564
|
const p = {
|
|
2560
2565
|
guard: wt("beforeEach"),
|
|
2561
2566
|
from: tt(u, "Current Location during this navigation"),
|
|
2562
|
-
to: tt(
|
|
2567
|
+
to: tt(l, "Target location")
|
|
2563
2568
|
};
|
|
2564
|
-
Object.defineProperty(
|
|
2569
|
+
Object.defineProperty(l.meta, "__navigationId", {
|
|
2565
2570
|
value: a++
|
|
2566
2571
|
}), r.addTimelineEvent({
|
|
2567
2572
|
layerId: s,
|
|
2568
2573
|
event: {
|
|
2569
2574
|
time: r.now(),
|
|
2570
2575
|
title: "Start of navigation",
|
|
2571
|
-
subtitle:
|
|
2576
|
+
subtitle: l.fullPath,
|
|
2572
2577
|
data: p,
|
|
2573
|
-
groupId:
|
|
2578
|
+
groupId: l.meta.__navigationId
|
|
2574
2579
|
}
|
|
2575
2580
|
});
|
|
2576
|
-
}), t.afterEach((
|
|
2581
|
+
}), t.afterEach((l, u, p) => {
|
|
2577
2582
|
const f = {
|
|
2578
2583
|
guard: wt("afterEach")
|
|
2579
2584
|
};
|
|
@@ -2585,15 +2590,15 @@ function ii(e, t, n) {
|
|
|
2585
2590
|
tooltip: "Navigation Failure",
|
|
2586
2591
|
value: p
|
|
2587
2592
|
}
|
|
2588
|
-
}, f.status = wt("❌")) : f.status = wt("✅"), f.from = tt(u, "Current Location during this navigation"), f.to = tt(
|
|
2593
|
+
}, f.status = wt("❌")) : f.status = wt("✅"), f.from = tt(u, "Current Location during this navigation"), f.to = tt(l, "Target location"), r.addTimelineEvent({
|
|
2589
2594
|
layerId: s,
|
|
2590
2595
|
event: {
|
|
2591
2596
|
title: "End of navigation",
|
|
2592
|
-
subtitle:
|
|
2597
|
+
subtitle: l.fullPath,
|
|
2593
2598
|
time: r.now(),
|
|
2594
2599
|
data: f,
|
|
2595
2600
|
logType: p ? "warning" : "default",
|
|
2596
|
-
groupId:
|
|
2601
|
+
groupId: l.meta.__navigationId
|
|
2597
2602
|
}
|
|
2598
2603
|
});
|
|
2599
2604
|
});
|
|
@@ -2604,25 +2609,25 @@ function ii(e, t, n) {
|
|
|
2604
2609
|
icon: "book",
|
|
2605
2610
|
treeFilterPlaceholder: "Search routes"
|
|
2606
2611
|
});
|
|
2607
|
-
function
|
|
2612
|
+
function d() {
|
|
2608
2613
|
if (!c)
|
|
2609
2614
|
return;
|
|
2610
|
-
const
|
|
2615
|
+
const l = c;
|
|
2611
2616
|
let u = n.getRoutes().filter((p) => !p.parent || // these routes have a parent with no component which will not appear in the view
|
|
2612
2617
|
// therefore we still need to include them
|
|
2613
2618
|
!p.parent.record.components);
|
|
2614
|
-
u.forEach(yr),
|
|
2619
|
+
u.forEach(yr), l.filter && (u = u.filter((p) => (
|
|
2615
2620
|
// save matches state based on the payload
|
|
2616
|
-
fn(p,
|
|
2617
|
-
))), u.forEach((p) => gr(p, t.currentRoute.value)),
|
|
2621
|
+
fn(p, l.filter.toLowerCase())
|
|
2622
|
+
))), u.forEach((p) => gr(p, t.currentRoute.value)), l.rootNodes = u.map(vr);
|
|
2618
2623
|
}
|
|
2619
2624
|
let c;
|
|
2620
|
-
r.on.getInspectorTree((
|
|
2621
|
-
c =
|
|
2622
|
-
}), r.on.getInspectorState((
|
|
2623
|
-
if (
|
|
2624
|
-
const u = n.getRoutes().find((p) => p.record.__vd_id ===
|
|
2625
|
-
u && (
|
|
2625
|
+
r.on.getInspectorTree((l) => {
|
|
2626
|
+
c = l, l.app === e && l.inspectorId === i && d();
|
|
2627
|
+
}), r.on.getInspectorState((l) => {
|
|
2628
|
+
if (l.app === e && l.inspectorId === i) {
|
|
2629
|
+
const u = n.getRoutes().find((p) => p.record.__vd_id === l.nodeId);
|
|
2630
|
+
u && (l.state = {
|
|
2626
2631
|
options: li(u)
|
|
2627
2632
|
});
|
|
2628
2633
|
}
|
|
@@ -2742,10 +2747,10 @@ function gi(e) {
|
|
|
2742
2747
|
const t = Ma(e.routes, e), n = e.parseQuery || Ja, o = e.stringifyQuery || co, r = e.history;
|
|
2743
2748
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
2744
2749
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
|
2745
|
-
const s = et(), a = et(), i = et(),
|
|
2750
|
+
const s = et(), a = et(), i = et(), d = qr(_e);
|
|
2746
2751
|
let c = _e;
|
|
2747
2752
|
me && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2748
|
-
const
|
|
2753
|
+
const l = Gt.bind(null, (g) => "" + g), u = Gt.bind(null, da), p = (
|
|
2749
2754
|
// @ts-expect-error: intentionally avoid the type check
|
|
2750
2755
|
Gt.bind(null, Ge)
|
|
2751
2756
|
);
|
|
@@ -2764,9 +2769,9 @@ function gi(e) {
|
|
|
2764
2769
|
return !!t.getRecordMatcher(g);
|
|
2765
2770
|
}
|
|
2766
2771
|
function x(g, k) {
|
|
2767
|
-
if (k =
|
|
2772
|
+
if (k = L({}, k || d.value), typeof g == "string") {
|
|
2768
2773
|
const V = Jt(n, g, k.path), z = t.resolve({ path: V.path }, k), Ce = r.createHref(V.fullPath);
|
|
2769
|
-
return process.env.NODE_ENV !== "production" && (Ce.startsWith("//") ? D(`Location "${g}" resolved to "${Ce}". A resolved location cannot start with multiple slashes.`) : z.matched.length || D(`No match found for location with path "${g}"`)),
|
|
2774
|
+
return process.env.NODE_ENV !== "production" && (Ce.startsWith("//") ? D(`Location "${g}" resolved to "${Ce}". A resolved location cannot start with multiple slashes.`) : z.matched.length || D(`No match found for location with path "${g}"`)), L(V, z, {
|
|
2770
2775
|
params: p(z.params),
|
|
2771
2776
|
hash: Ge(V.hash),
|
|
2772
2777
|
redirectedFrom: void 0,
|
|
@@ -2779,24 +2784,24 @@ function gi(e) {
|
|
|
2779
2784
|
let E;
|
|
2780
2785
|
if (g.path != null)
|
|
2781
2786
|
process.env.NODE_ENV !== "production" && "params" in g && !("name" in g) && // @ts-expect-error: the type is never
|
|
2782
|
-
Object.keys(g.params).length && D(`Path "${g.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), E =
|
|
2787
|
+
Object.keys(g.params).length && D(`Path "${g.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), E = L({}, g, {
|
|
2783
2788
|
path: Jt(n, g.path, k.path).path
|
|
2784
2789
|
});
|
|
2785
2790
|
else {
|
|
2786
|
-
const V =
|
|
2791
|
+
const V = L({}, g.params);
|
|
2787
2792
|
for (const z in V)
|
|
2788
2793
|
V[z] == null && delete V[z];
|
|
2789
|
-
E =
|
|
2794
|
+
E = L({}, g, {
|
|
2790
2795
|
params: u(V)
|
|
2791
2796
|
}), k.params = u(k.params);
|
|
2792
2797
|
}
|
|
2793
2798
|
const O = t.resolve(E, k), M = g.hash || "";
|
|
2794
|
-
process.env.NODE_ENV !== "production" && M && !M.startsWith("#") && D(`A \`hash\` should always start with the character "#". Replace "${M}" with "#${M}".`), O.params =
|
|
2795
|
-
const q = ha(o,
|
|
2799
|
+
process.env.NODE_ENV !== "production" && M && !M.startsWith("#") && D(`A \`hash\` should always start with the character "#". Replace "${M}" with "#${M}".`), O.params = l(p(O.params));
|
|
2800
|
+
const q = ha(o, L({}, g, {
|
|
2796
2801
|
hash: ca(M),
|
|
2797
2802
|
path: O.path
|
|
2798
2803
|
})), T = r.createHref(q);
|
|
2799
|
-
return process.env.NODE_ENV !== "production" && (T.startsWith("//") ? D(`Location "${g}" resolved to "${T}". A resolved location cannot start with multiple slashes.`) : O.matched.length || D(`No match found for location with path "${g.path != null ? g.path : g}"`)),
|
|
2804
|
+
return process.env.NODE_ENV !== "production" && (T.startsWith("//") ? D(`Location "${g}" resolved to "${T}". A resolved location cannot start with multiple slashes.`) : O.matched.length || D(`No match found for location with path "${g.path != null ? g.path : g}"`)), L({
|
|
2800
2805
|
fullPath: q,
|
|
2801
2806
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
2802
2807
|
// hash
|
|
@@ -2815,7 +2820,7 @@ function gi(e) {
|
|
|
2815
2820
|
});
|
|
2816
2821
|
}
|
|
2817
2822
|
function N(g) {
|
|
2818
|
-
return typeof g == "string" ? Jt(n, g,
|
|
2823
|
+
return typeof g == "string" ? Jt(n, g, d.value.path) : L({}, g);
|
|
2819
2824
|
}
|
|
2820
2825
|
function $(g, k) {
|
|
2821
2826
|
if (c !== g)
|
|
@@ -2828,7 +2833,7 @@ function gi(e) {
|
|
|
2828
2833
|
return m(g);
|
|
2829
2834
|
}
|
|
2830
2835
|
function H(g) {
|
|
2831
|
-
return j(
|
|
2836
|
+
return j(L(N(g), { replace: !0 }));
|
|
2832
2837
|
}
|
|
2833
2838
|
function Y(g) {
|
|
2834
2839
|
const k = g.matched[g.matched.length - 1];
|
|
@@ -2842,7 +2847,7 @@ function gi(e) {
|
|
|
2842
2847
|
throw D(`Invalid redirect found:
|
|
2843
2848
|
${JSON.stringify(O, null, 2)}
|
|
2844
2849
|
when navigating to "${g.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
2845
|
-
return
|
|
2850
|
+
return L({
|
|
2846
2851
|
query: g.query,
|
|
2847
2852
|
hash: g.hash,
|
|
2848
2853
|
// avoid transferring params if the redirect has a path
|
|
@@ -2851,11 +2856,11 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2851
2856
|
}
|
|
2852
2857
|
}
|
|
2853
2858
|
function m(g, k) {
|
|
2854
|
-
const E = c = x(g), O =
|
|
2859
|
+
const E = c = x(g), O = d.value, M = g.state, q = g.force, T = g.replace === !0, V = Y(E);
|
|
2855
2860
|
if (V)
|
|
2856
2861
|
return m(
|
|
2857
|
-
|
|
2858
|
-
state: typeof V == "object" ?
|
|
2862
|
+
L(N(V), {
|
|
2863
|
+
state: typeof V == "object" ? L({}, M, V.state) : M,
|
|
2859
2864
|
force: q,
|
|
2860
2865
|
replace: T
|
|
2861
2866
|
}),
|
|
@@ -2900,11 +2905,11 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2900
2905
|
) : 1) > 30 ? (D(`Detected a possibly infinite redirection in a navigation guard when going from "${O.fullPath}" to "${z.fullPath}". Aborting to avoid a Stack Overflow.
|
|
2901
2906
|
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"))) : m(
|
|
2902
2907
|
// keep options
|
|
2903
|
-
|
|
2908
|
+
L({
|
|
2904
2909
|
// preserve an existing replacement but allow the redirect to override it
|
|
2905
2910
|
replace: T
|
|
2906
2911
|
}, N(K.to), {
|
|
2907
|
-
state: typeof K.to == "object" ?
|
|
2912
|
+
state: typeof K.to == "object" ? L({}, M, K.to.state) : M,
|
|
2908
2913
|
force: q
|
|
2909
2914
|
}),
|
|
2910
2915
|
// preserve the original redirectedFrom if any
|
|
@@ -2973,20 +2978,20 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2973
2978
|
if (q)
|
|
2974
2979
|
return q;
|
|
2975
2980
|
const T = k === _e, V = me ? history.state : {};
|
|
2976
|
-
E && (O || T ? r.replace(g.fullPath,
|
|
2981
|
+
E && (O || T ? r.replace(g.fullPath, L({
|
|
2977
2982
|
scroll: T && V && V.scroll
|
|
2978
|
-
}, M)) : r.push(g.fullPath, M)),
|
|
2983
|
+
}, M)) : r.push(g.fullPath, M)), d.value = g, Hn(g, k, E, T), Wt();
|
|
2979
2984
|
}
|
|
2980
2985
|
let U;
|
|
2981
2986
|
function ie() {
|
|
2982
2987
|
U || (U = r.listen((g, k, E) => {
|
|
2983
2988
|
const O = x(g), M = Y(O);
|
|
2984
2989
|
if (M) {
|
|
2985
|
-
m(
|
|
2990
|
+
m(L(M, { replace: !0, force: !0 }), O).catch(at);
|
|
2986
2991
|
return;
|
|
2987
2992
|
}
|
|
2988
2993
|
c = O;
|
|
2989
|
-
const q =
|
|
2994
|
+
const q = d.value;
|
|
2990
2995
|
me && Ea(Zn(q.fullPath, E.delta), Lt()), v(O, q).catch((T) => he(
|
|
2991
2996
|
T,
|
|
2992
2997
|
12
|
|
@@ -2996,7 +3001,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2996
3001
|
2
|
|
2997
3002
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2998
3003
|
) ? (m(
|
|
2999
|
-
|
|
3004
|
+
L(N(T.to), {
|
|
3000
3005
|
force: !0
|
|
3001
3006
|
}),
|
|
3002
3007
|
O
|
|
@@ -3034,7 +3039,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3034
3039
|
return O.length ? O.forEach((M) => M(g, k, E)) : (process.env.NODE_ENV !== "production" && D("uncaught error during route navigation:"), console.error(g)), Promise.reject(g);
|
|
3035
3040
|
}
|
|
3036
3041
|
function X() {
|
|
3037
|
-
return ee &&
|
|
3042
|
+
return ee && d.value !== _e ? Promise.resolve() : new Promise((g, k) => {
|
|
3038
3043
|
pe.add([g, k]);
|
|
3039
3044
|
});
|
|
3040
3045
|
}
|
|
@@ -3051,7 +3056,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3051
3056
|
const Ut = (g) => r.go(g);
|
|
3052
3057
|
let Ht;
|
|
3053
3058
|
const gt = /* @__PURE__ */ new Set(), Fr = {
|
|
3054
|
-
currentRoute:
|
|
3059
|
+
currentRoute: d,
|
|
3055
3060
|
listening: !0,
|
|
3056
3061
|
addRoute: f,
|
|
3057
3062
|
removeRoute: h,
|
|
@@ -3074,22 +3079,22 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3074
3079
|
const k = this;
|
|
3075
3080
|
g.component("RouterLink", ei), g.component("RouterView", ri), g.config.globalProperties.$router = k, Object.defineProperty(g.config.globalProperties, "$route", {
|
|
3076
3081
|
enumerable: !0,
|
|
3077
|
-
get: () => S(
|
|
3082
|
+
get: () => S(d)
|
|
3078
3083
|
}), me && // used for the initial navigation client side to avoid pushing
|
|
3079
3084
|
// multiple times when the router is used in multiple apps
|
|
3080
|
-
!Ht &&
|
|
3085
|
+
!Ht && d.value === _e && (Ht = !0, j(r.location).catch((M) => {
|
|
3081
3086
|
process.env.NODE_ENV !== "production" && D("Unexpected error when starting the router:", M);
|
|
3082
3087
|
}));
|
|
3083
3088
|
const E = {};
|
|
3084
3089
|
for (const M in _e)
|
|
3085
3090
|
Object.defineProperty(E, M, {
|
|
3086
|
-
get: () =>
|
|
3091
|
+
get: () => d.value[M],
|
|
3087
3092
|
enumerable: !0
|
|
3088
3093
|
});
|
|
3089
|
-
g.provide(xn, k), g.provide(dr, Gr(E)), g.provide(pn,
|
|
3094
|
+
g.provide(xn, k), g.provide(dr, Gr(E)), g.provide(pn, d);
|
|
3090
3095
|
const O = g.unmount;
|
|
3091
3096
|
gt.add(g), g.unmount = function() {
|
|
3092
|
-
gt.delete(g), gt.size < 1 && (c = _e, U && U(), U = null,
|
|
3097
|
+
gt.delete(g), gt.size < 1 && (c = _e, U && U(), U = null, d.value = _e, Ht = !1, ee = !1), O();
|
|
3093
3098
|
}, process.env.NODE_ENV !== "production" && me && ii(g, k, t);
|
|
3094
3099
|
}
|
|
3095
3100
|
};
|
|
@@ -3103,8 +3108,8 @@ function yi(e, t) {
|
|
|
3103
3108
|
for (let a = 0; a < s; a++) {
|
|
3104
3109
|
const i = t.matched[a];
|
|
3105
3110
|
i && (e.matched.find((c) => Se(c, i)) ? o.push(i) : n.push(i));
|
|
3106
|
-
const
|
|
3107
|
-
|
|
3111
|
+
const d = e.matched[a];
|
|
3112
|
+
d && (t.matched.find((c) => Se(c, d)) || r.push(d));
|
|
3108
3113
|
}
|
|
3109
3114
|
return [n, o, r];
|
|
3110
3115
|
}
|
|
@@ -3263,19 +3268,19 @@ function Ti(e, t, n) {
|
|
|
3263
3268
|
}, s.onerror = function(c) {
|
|
3264
3269
|
return i(c);
|
|
3265
3270
|
};
|
|
3266
|
-
var
|
|
3267
|
-
|
|
3271
|
+
var d = s.objectStore(ye);
|
|
3272
|
+
d.add(r), Pn(s);
|
|
3268
3273
|
});
|
|
3269
3274
|
}
|
|
3270
3275
|
function ji(e, t) {
|
|
3271
3276
|
var n = e.transaction(ye, "readonly", Bt), o = n.objectStore(ye), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
|
|
3272
3277
|
if (o.getAll) {
|
|
3273
3278
|
var a = o.getAll(s);
|
|
3274
|
-
return new Promise(function(
|
|
3275
|
-
a.onerror = function(
|
|
3276
|
-
return c(
|
|
3277
|
-
}, a.onsuccess = function(
|
|
3278
|
-
l
|
|
3279
|
+
return new Promise(function(d, c) {
|
|
3280
|
+
a.onerror = function(l) {
|
|
3281
|
+
return c(l);
|
|
3282
|
+
}, a.onsuccess = function(l) {
|
|
3283
|
+
d(l.target.result);
|
|
3279
3284
|
};
|
|
3280
3285
|
});
|
|
3281
3286
|
}
|
|
@@ -3286,13 +3291,13 @@ function ji(e, t) {
|
|
|
3286
3291
|
return o.openCursor();
|
|
3287
3292
|
}
|
|
3288
3293
|
}
|
|
3289
|
-
return new Promise(function(
|
|
3290
|
-
var
|
|
3291
|
-
|
|
3294
|
+
return new Promise(function(d, c) {
|
|
3295
|
+
var l = i();
|
|
3296
|
+
l.onerror = function(u) {
|
|
3292
3297
|
return c(u);
|
|
3293
|
-
},
|
|
3298
|
+
}, l.onsuccess = function(u) {
|
|
3294
3299
|
var p = u.target.result;
|
|
3295
|
-
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (Pn(n),
|
|
3300
|
+
p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (Pn(n), d(r));
|
|
3296
3301
|
};
|
|
3297
3302
|
});
|
|
3298
3303
|
}
|
|
@@ -3313,10 +3318,10 @@ function Li(e, t) {
|
|
|
3313
3318
|
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(ye, "readonly", Bt), r = o.objectStore(ye), s = [];
|
|
3314
3319
|
return new Promise(function(a) {
|
|
3315
3320
|
r.openCursor().onsuccess = function(i) {
|
|
3316
|
-
var
|
|
3317
|
-
if (
|
|
3318
|
-
var c =
|
|
3319
|
-
c.time < n ? (s.push(c),
|
|
3321
|
+
var d = i.target.result;
|
|
3322
|
+
if (d) {
|
|
3323
|
+
var c = d.value;
|
|
3324
|
+
c.time < n ? (s.push(c), d.continue()) : (Pn(o), a(s));
|
|
3320
3325
|
} else
|
|
3321
3326
|
a(s);
|
|
3322
3327
|
};
|
|
@@ -3758,8 +3763,8 @@ function kc(e, t) {
|
|
|
3758
3763
|
o[s] = i;
|
|
3759
3764
|
else if (Array.isArray(i))
|
|
3760
3765
|
if (typeof i[0] == "string") {
|
|
3761
|
-
const
|
|
3762
|
-
switch (
|
|
3766
|
+
const d = i[0];
|
|
3767
|
+
switch (d) {
|
|
3763
3768
|
case "Date":
|
|
3764
3769
|
o[s] = new Date(i[1]);
|
|
3765
3770
|
break;
|
|
@@ -3770,10 +3775,10 @@ function kc(e, t) {
|
|
|
3770
3775
|
c.add(r(i[p]));
|
|
3771
3776
|
break;
|
|
3772
3777
|
case "Map":
|
|
3773
|
-
const
|
|
3774
|
-
o[s] =
|
|
3778
|
+
const l = /* @__PURE__ */ new Map();
|
|
3779
|
+
o[s] = l;
|
|
3775
3780
|
for (let p = 1; p < i.length; p += 2)
|
|
3776
|
-
|
|
3781
|
+
l.set(r(i[p]), r(i[p + 1]));
|
|
3777
3782
|
break;
|
|
3778
3783
|
case "RegExp":
|
|
3779
3784
|
o[s] = new RegExp(i[1], i[2]);
|
|
@@ -3791,22 +3796,22 @@ function kc(e, t) {
|
|
|
3791
3796
|
u[i[p]] = r(i[p + 1]);
|
|
3792
3797
|
break;
|
|
3793
3798
|
default:
|
|
3794
|
-
throw new Error(`Unknown type ${
|
|
3799
|
+
throw new Error(`Unknown type ${d}`);
|
|
3795
3800
|
}
|
|
3796
3801
|
} else {
|
|
3797
|
-
const
|
|
3798
|
-
o[s] =
|
|
3802
|
+
const d = new Array(i.length);
|
|
3803
|
+
o[s] = d;
|
|
3799
3804
|
for (let c = 0; c < i.length; c += 1) {
|
|
3800
|
-
const
|
|
3801
|
-
|
|
3805
|
+
const l = i[c];
|
|
3806
|
+
l !== Pr && (d[c] = r(l));
|
|
3802
3807
|
}
|
|
3803
3808
|
}
|
|
3804
3809
|
else {
|
|
3805
|
-
const
|
|
3806
|
-
o[s] =
|
|
3810
|
+
const d = {};
|
|
3811
|
+
o[s] = d;
|
|
3807
3812
|
for (const c in i) {
|
|
3808
|
-
const
|
|
3809
|
-
|
|
3813
|
+
const l = i[c];
|
|
3814
|
+
d[c] = r(l);
|
|
3810
3815
|
}
|
|
3811
3816
|
}
|
|
3812
3817
|
return o[s];
|
|
@@ -3828,12 +3833,12 @@ function Eo(e, t) {
|
|
|
3828
3833
|
if (c === 1 / 0) return Dr;
|
|
3829
3834
|
if (c === -1 / 0) return Vr;
|
|
3830
3835
|
if (c === 0 && 1 / c < 0) return An;
|
|
3831
|
-
const
|
|
3832
|
-
o.set(c,
|
|
3836
|
+
const l = a++;
|
|
3837
|
+
o.set(c, l);
|
|
3833
3838
|
for (const { key: p, fn: f } of r) {
|
|
3834
3839
|
const h = f(c);
|
|
3835
3840
|
if (h)
|
|
3836
|
-
return n[
|
|
3841
|
+
return n[l] = `["${p}",${i(h)}]`, l;
|
|
3837
3842
|
}
|
|
3838
3843
|
let u = "";
|
|
3839
3844
|
if (wo(c))
|
|
@@ -3899,10 +3904,10 @@ function Eo(e, t) {
|
|
|
3899
3904
|
u += "}";
|
|
3900
3905
|
}
|
|
3901
3906
|
}
|
|
3902
|
-
return n[
|
|
3907
|
+
return n[l] = u, l;
|
|
3903
3908
|
}
|
|
3904
|
-
const
|
|
3905
|
-
return
|
|
3909
|
+
const d = i(e);
|
|
3910
|
+
return d < 0 ? `${d}` : `[${n.join(",")}]`;
|
|
3906
3911
|
}
|
|
3907
3912
|
function Xt(e) {
|
|
3908
3913
|
const t = typeof e;
|
|
@@ -3910,24 +3915,24 @@ function Xt(e) {
|
|
|
3910
3915
|
}
|
|
3911
3916
|
function $c(e, t, { initialize: n, type: o }) {
|
|
3912
3917
|
let r = `${t.$id}-${e.toString()}`, s = new Dn(r, { type: o }), a = !1, i = 0;
|
|
3913
|
-
G(() => t[e], (
|
|
3914
|
-
a || (i = Date.now(), s.postMessage({ timestamp: i, state: _o(Eo(
|
|
3915
|
-
}, { deep: !0 }), s.onmessage = (
|
|
3916
|
-
if (
|
|
3918
|
+
G(() => t[e], (l) => {
|
|
3919
|
+
a || (i = Date.now(), s.postMessage({ timestamp: i, state: _o(Eo(l)) })), a = !1;
|
|
3920
|
+
}, { deep: !0 }), s.onmessage = (l) => {
|
|
3921
|
+
if (l === void 0) {
|
|
3917
3922
|
s.postMessage({ timestamp: i, state: _o(Eo(t[e])) });
|
|
3918
3923
|
return;
|
|
3919
3924
|
}
|
|
3920
|
-
|
|
3925
|
+
l.timestamp <= i || (a = !0, i = l.timestamp, t[e] = l.state);
|
|
3921
3926
|
};
|
|
3922
|
-
let
|
|
3923
|
-
return n &&
|
|
3927
|
+
let d = () => s.postMessage(void 0), c = () => s.close();
|
|
3928
|
+
return n && d(), { sync: d, unshare: c };
|
|
3924
3929
|
}
|
|
3925
3930
|
var Oc = (e, t) => Object.keys(t).includes(e), Nc = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
|
|
3926
3931
|
var s, a;
|
|
3927
|
-
let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t,
|
|
3932
|
+
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) ?? [];
|
|
3928
3933
|
!i || Object.keys(o.$state).forEach((c) => {
|
|
3929
|
-
var
|
|
3930
|
-
|
|
3934
|
+
var l;
|
|
3935
|
+
d.includes(c) || !Oc(c, o.$state) || $c(c, o, { initialize: ((l = r == null ? void 0 : r.share) == null ? void 0 : l.initialize) ?? e, type: n });
|
|
3931
3936
|
});
|
|
3932
3937
|
};
|
|
3933
3938
|
const xc = zs();
|
|
@@ -3945,8 +3950,8 @@ const Sc = /* @__PURE__ */ ae({
|
|
|
3945
3950
|
if (n.value) {
|
|
3946
3951
|
let r = t.value.schema.schema.toArray();
|
|
3947
3952
|
r.forEach((s, a) => {
|
|
3948
|
-
const
|
|
3949
|
-
r[a].value =
|
|
3953
|
+
const d = t.value.store.record[s.fieldname];
|
|
3954
|
+
r[a].value = d;
|
|
3950
3955
|
}), o.value = r;
|
|
3951
3956
|
}
|
|
3952
3957
|
}), (r, s) => S(n) ? (A(), Ie(S(gs), {
|
|
@@ -4035,38 +4040,38 @@ function Oo(e) {
|
|
|
4035
4040
|
}
|
|
4036
4041
|
function No(e, t, n, o) {
|
|
4037
4042
|
const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
|
|
4038
|
-
let
|
|
4043
|
+
let d;
|
|
4039
4044
|
function c() {
|
|
4040
4045
|
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
4041
|
-
const
|
|
4046
|
+
const l = process.env.NODE_ENV !== "production" && o ? (
|
|
4042
4047
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
4043
4048
|
Pt(C(r ? r() : {}).value)
|
|
4044
4049
|
) : Pt(n.state.value[e]);
|
|
4045
|
-
return ne(
|
|
4050
|
+
return ne(l, s, Object.keys(a || {}).reduce((u, p) => (process.env.NODE_ENV !== "production" && p in l && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), u[p] = re(R(() => {
|
|
4046
4051
|
Tt(n);
|
|
4047
4052
|
const f = n._s.get(e);
|
|
4048
4053
|
return a[p].call(f, f);
|
|
4049
4054
|
})), u), {}));
|
|
4050
4055
|
}
|
|
4051
|
-
return
|
|
4056
|
+
return d = mn(e, c, t, n, o, !0), d;
|
|
4052
4057
|
}
|
|
4053
4058
|
function mn(e, t, n = {}, o, r, s) {
|
|
4054
4059
|
let a;
|
|
4055
4060
|
const i = ne({ actions: {} }, n);
|
|
4056
4061
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
4057
4062
|
throw new Error("Pinia destroyed");
|
|
4058
|
-
const
|
|
4059
|
-
process.env.NODE_ENV !== "production" && !Cc && (
|
|
4063
|
+
const d = { deep: !0 };
|
|
4064
|
+
process.env.NODE_ENV !== "production" && !Cc && (d.onTrigger = (v) => {
|
|
4060
4065
|
c ? f = v : c == !1 && !m._hotUpdating && (Array.isArray(f) ? f.push(v) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
4061
4066
|
});
|
|
4062
|
-
let c,
|
|
4067
|
+
let c, l, u = [], p = [], f;
|
|
4063
4068
|
const h = o.state.value[e];
|
|
4064
4069
|
!s && !h && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
4065
4070
|
const b = C({});
|
|
4066
4071
|
let _;
|
|
4067
4072
|
function x(v) {
|
|
4068
4073
|
let y;
|
|
4069
|
-
c =
|
|
4074
|
+
c = l = !1, process.env.NODE_ENV !== "production" && (f = []), typeof v == "function" ? (v(o.state.value[e]), y = {
|
|
4070
4075
|
type: ct.patchFunction,
|
|
4071
4076
|
storeId: e,
|
|
4072
4077
|
events: f
|
|
@@ -4079,7 +4084,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4079
4084
|
const I = _ = Symbol();
|
|
4080
4085
|
xe().then(() => {
|
|
4081
4086
|
_ === I && (c = !0);
|
|
4082
|
-
}),
|
|
4087
|
+
}), l = !0, Ue(u, y, o.state.value[e]);
|
|
4083
4088
|
}
|
|
4084
4089
|
const N = s ? function() {
|
|
4085
4090
|
const { state: y } = n, I = y ? y() : {};
|
|
@@ -4137,12 +4142,12 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4137
4142
|
$reset: N,
|
|
4138
4143
|
$subscribe(v, y = {}) {
|
|
4139
4144
|
const I = ko(u, v, y.detached, () => U()), U = a.run(() => G(() => o.state.value[e], (ie) => {
|
|
4140
|
-
(y.flush === "sync" ?
|
|
4145
|
+
(y.flush === "sync" ? l : c) && v({
|
|
4141
4146
|
storeId: e,
|
|
4142
4147
|
type: ct.direct,
|
|
4143
4148
|
events: f
|
|
4144
4149
|
}, ie);
|
|
4145
|
-
}, ne({},
|
|
4150
|
+
}, ne({}, d, y)));
|
|
4146
4151
|
return I;
|
|
4147
4152
|
},
|
|
4148
4153
|
$dispose: $
|
|
@@ -4189,7 +4194,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4189
4194
|
_t(m, y, De(v.$state, y));
|
|
4190
4195
|
}), Object.keys(m.$state).forEach((y) => {
|
|
4191
4196
|
y in v.$state || Zt(m, y);
|
|
4192
|
-
}), c = !1,
|
|
4197
|
+
}), c = !1, l = !1, o.state.value[e] = De(v._hmrPayload, "hotState"), l = !0, xe().then(() => {
|
|
4193
4198
|
c = !0;
|
|
4194
4199
|
});
|
|
4195
4200
|
for (const y in v._hmrPayload.actions) {
|
|
@@ -4199,7 +4204,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4199
4204
|
for (const y in v._hmrPayload.getters) {
|
|
4200
4205
|
const I = v._hmrPayload.getters[y], U = s ? (
|
|
4201
4206
|
// special handling of options api
|
|
4202
|
-
|
|
4207
|
+
R(() => (Tt(o), I.call(m, m)))
|
|
4203
4208
|
) : I;
|
|
4204
4209
|
_t(m, y, U);
|
|
4205
4210
|
}
|
|
@@ -4237,7 +4242,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4237
4242
|
})));
|
|
4238
4243
|
}), process.env.NODE_ENV !== "production" && m.$state && typeof m.$state == "object" && typeof m.$state.constructor == "function" && !m.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
4239
4244
|
state: () => new MyClass()
|
|
4240
|
-
Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), c = !0,
|
|
4245
|
+
Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), c = !0, l = !0, m;
|
|
4241
4246
|
}
|
|
4242
4247
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
4243
4248
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -4248,7 +4253,7 @@ function Ac(e, t, n) {
|
|
|
4248
4253
|
o = e, r = s ? n : t;
|
|
4249
4254
|
else if (r = e, o = e.id, process.env.NODE_ENV !== "production" && typeof o != "string")
|
|
4250
4255
|
throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
|
|
4251
|
-
function a(i,
|
|
4256
|
+
function a(i, d) {
|
|
4252
4257
|
const c = jo();
|
|
4253
4258
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4254
4259
|
// pinia instance with getActivePinia()
|
|
@@ -4257,20 +4262,20 @@ function Ac(e, t, n) {
|
|
|
4257
4262
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4258
4263
|
This will fail in production.`);
|
|
4259
4264
|
i = ot, i._s.has(o) || (s ? mn(o, t, r, i) : No(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
|
|
4260
|
-
const
|
|
4261
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4265
|
+
const l = i._s.get(o);
|
|
4266
|
+
if (process.env.NODE_ENV !== "production" && d) {
|
|
4262
4267
|
const u = "__hot:" + o, p = s ? mn(u, t, r, i, !0) : No(u, ne({}, r), i, !0);
|
|
4263
|
-
|
|
4268
|
+
d._hotUpdate(p), delete i.state.value[u], i._s.delete(u);
|
|
4264
4269
|
}
|
|
4265
4270
|
if (process.env.NODE_ENV !== "production" && rt) {
|
|
4266
4271
|
const u = Le();
|
|
4267
4272
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
4268
|
-
!
|
|
4273
|
+
!d) {
|
|
4269
4274
|
const p = u.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
|
|
4270
|
-
f[o] =
|
|
4275
|
+
f[o] = l;
|
|
4271
4276
|
}
|
|
4272
4277
|
}
|
|
4273
|
-
return
|
|
4278
|
+
return l;
|
|
4274
4279
|
}
|
|
4275
4280
|
return a.$id = o, a;
|
|
4276
4281
|
}
|
|
@@ -4295,20 +4300,20 @@ function ft(...e) {
|
|
|
4295
4300
|
return Mc;
|
|
4296
4301
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4297
4302
|
const s = [], a = () => {
|
|
4298
|
-
s.forEach((
|
|
4299
|
-
}, i = (
|
|
4303
|
+
s.forEach((l) => l()), s.length = 0;
|
|
4304
|
+
}, i = (l, u, p, f) => (l.addEventListener(u, p, f), () => l.removeEventListener(u, p, f)), d = G(
|
|
4300
4305
|
() => [pt(t), Tn(r)],
|
|
4301
|
-
([
|
|
4302
|
-
if (a(), !
|
|
4306
|
+
([l, u]) => {
|
|
4307
|
+
if (a(), !l)
|
|
4303
4308
|
return;
|
|
4304
4309
|
const p = Lc(u) ? { ...u } : u;
|
|
4305
4310
|
s.push(
|
|
4306
|
-
...n.flatMap((f) => o.map((h) => i(
|
|
4311
|
+
...n.flatMap((f) => o.map((h) => i(l, f, h, p)))
|
|
4307
4312
|
);
|
|
4308
4313
|
},
|
|
4309
4314
|
{ immediate: !0, flush: "post" }
|
|
4310
4315
|
), c = () => {
|
|
4311
|
-
|
|
4316
|
+
d(), a();
|
|
4312
4317
|
};
|
|
4313
4318
|
return jr(c), c;
|
|
4314
4319
|
}
|
|
@@ -4320,29 +4325,29 @@ function Bc() {
|
|
|
4320
4325
|
}
|
|
4321
4326
|
function Wc(e) {
|
|
4322
4327
|
const t = Bc();
|
|
4323
|
-
return
|
|
4328
|
+
return R(() => (t.value, !!e()));
|
|
4324
4329
|
}
|
|
4325
4330
|
function Uc(e, t, n = {}) {
|
|
4326
4331
|
const { window: o = mt, ...r } = n;
|
|
4327
4332
|
let s;
|
|
4328
4333
|
const a = Wc(() => o && "MutationObserver" in o), i = () => {
|
|
4329
4334
|
s && (s.disconnect(), s = void 0);
|
|
4330
|
-
},
|
|
4335
|
+
}, d = R(() => {
|
|
4331
4336
|
const p = Tn(e), f = (Array.isArray(p) ? p : [p]).map(pt).filter(jc);
|
|
4332
4337
|
return new Set(f);
|
|
4333
4338
|
}), c = G(
|
|
4334
|
-
() =>
|
|
4339
|
+
() => d.value,
|
|
4335
4340
|
(p) => {
|
|
4336
4341
|
i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
|
|
4337
4342
|
},
|
|
4338
4343
|
{ immediate: !0, flush: "post" }
|
|
4339
|
-
),
|
|
4344
|
+
), l = () => s == null ? void 0 : s.takeRecords(), u = () => {
|
|
4340
4345
|
c(), i();
|
|
4341
4346
|
};
|
|
4342
4347
|
return jr(u), {
|
|
4343
4348
|
isSupported: a,
|
|
4344
4349
|
stop: u,
|
|
4345
|
-
takeRecords:
|
|
4350
|
+
takeRecords: l
|
|
4346
4351
|
};
|
|
4347
4352
|
}
|
|
4348
4353
|
function Hc(e = {}) {
|
|
@@ -4353,28 +4358,28 @@ function Hc(e = {}) {
|
|
|
4353
4358
|
triggerOnRemoval: r = !1
|
|
4354
4359
|
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
|
|
4355
4360
|
var c;
|
|
4356
|
-
let
|
|
4361
|
+
let l = s == null ? void 0 : s.activeElement;
|
|
4357
4362
|
if (o)
|
|
4358
|
-
for (;
|
|
4359
|
-
|
|
4360
|
-
return
|
|
4361
|
-
}, i = C(),
|
|
4363
|
+
for (; l != null && l.shadowRoot; )
|
|
4364
|
+
l = (c = l == null ? void 0 : l.shadowRoot) == null ? void 0 : c.activeElement;
|
|
4365
|
+
return l;
|
|
4366
|
+
}, i = C(), d = () => {
|
|
4362
4367
|
i.value = a();
|
|
4363
4368
|
};
|
|
4364
4369
|
return n && (ft(n, "blur", (c) => {
|
|
4365
|
-
c.relatedTarget === null &&
|
|
4366
|
-
}, !0), ft(n, "focus",
|
|
4367
|
-
c.filter((
|
|
4368
|
-
|
|
4370
|
+
c.relatedTarget === null && d();
|
|
4371
|
+
}, !0), ft(n, "focus", d, !0)), r && Uc(s, (c) => {
|
|
4372
|
+
c.filter((l) => l.removedNodes.length).map((l) => Array.from(l.removedNodes)).flat().forEach((l) => {
|
|
4373
|
+
l === i.value && d();
|
|
4369
4374
|
});
|
|
4370
4375
|
}, {
|
|
4371
4376
|
childList: !0,
|
|
4372
4377
|
subtree: !0
|
|
4373
|
-
}),
|
|
4378
|
+
}), d(), i;
|
|
4374
4379
|
}
|
|
4375
4380
|
const Fc = "focusin", zc = "focusout";
|
|
4376
4381
|
function qc(e, t = {}) {
|
|
4377
|
-
const { window: n = mt } = t, o =
|
|
4382
|
+
const { window: n = mt } = t, o = R(() => pt(e)), r = C(!1), s = R(() => r.value), a = Hc(t);
|
|
4378
4383
|
return !n || !a.value ? { focused: s } : (ft(o, Fc, () => r.value = !0), ft(o, zc, () => r.value = !1), { focused: s });
|
|
4379
4384
|
}
|
|
4380
4385
|
function Gc(e, { window: t = mt, scrollTarget: n } = {}) {
|
|
@@ -4424,8 +4429,8 @@ const be = (e) => {
|
|
|
4424
4429
|
if (n instanceof HTMLTableCellElement) {
|
|
4425
4430
|
const r = (t = n.parentElement) == null ? void 0 : t.parentElement;
|
|
4426
4431
|
if (r) {
|
|
4427
|
-
const s = r.firstElementChild.children[n.cellIndex];
|
|
4428
|
-
|
|
4432
|
+
const s = r.firstElementChild, a = s == null ? void 0 : s.children[n.cellIndex];
|
|
4433
|
+
a && (o = a);
|
|
4429
4434
|
}
|
|
4430
4435
|
} else if (n instanceof HTMLTableRowElement) {
|
|
4431
4436
|
const r = n.parentElement;
|
|
@@ -4459,8 +4464,8 @@ const be = (e) => {
|
|
|
4459
4464
|
if (n instanceof HTMLTableCellElement) {
|
|
4460
4465
|
const r = (t = n.parentElement) == null ? void 0 : t.parentElement;
|
|
4461
4466
|
if (r) {
|
|
4462
|
-
const s = r.lastElementChild.children[n.cellIndex];
|
|
4463
|
-
|
|
4467
|
+
const s = r.lastElementChild, a = s == null ? void 0 : s.children[n.cellIndex];
|
|
4468
|
+
a && (o = a);
|
|
4464
4469
|
}
|
|
4465
4470
|
} else if (n instanceof HTMLTableRowElement) {
|
|
4466
4471
|
const r = n.parentElement;
|
|
@@ -4497,11 +4502,11 @@ const be = (e) => {
|
|
|
4497
4502
|
}
|
|
4498
4503
|
return n && (!we(n) || !be(n)) ? Mn(n) : n;
|
|
4499
4504
|
}, Io = (e) => {
|
|
4500
|
-
const t = e.target.parentElement.firstElementChild;
|
|
4501
|
-
return
|
|
4505
|
+
const t = e.target.parentElement, n = t == null ? void 0 : t.firstElementChild;
|
|
4506
|
+
return n && (!we(n) || !be(n)) ? Mn(n) : n;
|
|
4502
4507
|
}, Do = (e) => {
|
|
4503
|
-
const t = e.target.parentElement.lastElementChild;
|
|
4504
|
-
return
|
|
4508
|
+
const t = e.target.parentElement, n = t == null ? void 0 : t.lastElementChild;
|
|
4509
|
+
return n && (!we(n) || !be(n)) ? Ln(n) : n;
|
|
4505
4510
|
}, Et = ["alt", "control", "shift", "meta"], Qc = {
|
|
4506
4511
|
ArrowUp: "up",
|
|
4507
4512
|
ArrowDown: "down",
|
|
@@ -4576,33 +4581,35 @@ function Rr(e) {
|
|
|
4576
4581
|
let i = null;
|
|
4577
4582
|
return a.parent && (typeof a.parent == "string" ? i = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? i = a.parent : i = a.parent.value), i;
|
|
4578
4583
|
}, n = (a) => {
|
|
4579
|
-
|
|
4580
|
-
|
|
4584
|
+
var i;
|
|
4585
|
+
const d = t(a);
|
|
4586
|
+
let c = [];
|
|
4581
4587
|
if (typeof a.selectors == "string")
|
|
4582
|
-
|
|
4588
|
+
c = d ? Array.from(d.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
|
|
4583
4589
|
else if (Array.isArray(a.selectors))
|
|
4584
|
-
for (const
|
|
4585
|
-
|
|
4590
|
+
for (const l of a.selectors)
|
|
4591
|
+
l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
|
|
4586
4592
|
else if (a.selectors instanceof HTMLElement)
|
|
4587
|
-
|
|
4588
|
-
else if (
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4593
|
+
c.push(a.selectors);
|
|
4594
|
+
else if ((i = a.selectors) != null && i.value)
|
|
4595
|
+
if (Array.isArray(a.selectors.value))
|
|
4596
|
+
for (const l of a.selectors.value)
|
|
4597
|
+
l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
|
|
4598
|
+
else
|
|
4599
|
+
c.push(a.selectors.value);
|
|
4600
|
+
return c;
|
|
4594
4601
|
}, o = (a) => {
|
|
4595
4602
|
const i = t(a);
|
|
4596
|
-
let
|
|
4597
|
-
return a.selectors ?
|
|
4603
|
+
let d = [];
|
|
4604
|
+
return a.selectors ? d = n(a) : i && (d = Array.from(i.children).filter((c) => we(c) && be(c))), d;
|
|
4598
4605
|
}, r = (a) => (i) => {
|
|
4599
|
-
const
|
|
4600
|
-
if (Et.includes(
|
|
4606
|
+
const d = Qc[i.key] || i.key.toLowerCase();
|
|
4607
|
+
if (Et.includes(d)) return;
|
|
4601
4608
|
const c = a.handlers || Bn;
|
|
4602
|
-
for (const
|
|
4603
|
-
const [u, ...p] =
|
|
4604
|
-
if (u === "keydown" && p.includes(
|
|
4605
|
-
const f = c[
|
|
4609
|
+
for (const l of Object.keys(c)) {
|
|
4610
|
+
const [u, ...p] = l.split(".");
|
|
4611
|
+
if (u === "keydown" && p.includes(d)) {
|
|
4612
|
+
const f = c[l], h = p.filter((_) => Et.includes(_)), b = Et.some((_) => {
|
|
4606
4613
|
const x = _.charAt(0).toUpperCase() + _.slice(1);
|
|
4607
4614
|
return i.getModifierState(x);
|
|
4608
4615
|
});
|
|
@@ -4621,8 +4628,8 @@ function Rr(e) {
|
|
|
4621
4628
|
}, s = [];
|
|
4622
4629
|
Ke(() => {
|
|
4623
4630
|
for (const a of e) {
|
|
4624
|
-
const i = t(a),
|
|
4625
|
-
for (const u of
|
|
4631
|
+
const i = t(a), d = o(a), c = r(a), l = i ? [i] : d;
|
|
4632
|
+
for (const u of l) {
|
|
4626
4633
|
const { focused: p } = qc(C(u)), f = G(p, (h) => {
|
|
4627
4634
|
h ? u.addEventListener("keydown", c) : u.removeEventListener("keydown", c);
|
|
4628
4635
|
});
|
|
@@ -4672,20 +4679,20 @@ function Vo(...e) {
|
|
|
4672
4679
|
return ze;
|
|
4673
4680
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4674
4681
|
const s = [], a = () => {
|
|
4675
|
-
s.forEach((
|
|
4676
|
-
}, i = (
|
|
4682
|
+
s.forEach((l) => l()), s.length = 0;
|
|
4683
|
+
}, i = (l, u, p, f) => (l.addEventListener(u, p, f), () => l.removeEventListener(u, p, f)), d = G(
|
|
4677
4684
|
() => [Qe(t), se(r)],
|
|
4678
|
-
([
|
|
4679
|
-
if (a(), !
|
|
4685
|
+
([l, u]) => {
|
|
4686
|
+
if (a(), !l)
|
|
4680
4687
|
return;
|
|
4681
4688
|
const p = Lr(u) ? { ...u } : u;
|
|
4682
4689
|
s.push(
|
|
4683
|
-
...n.flatMap((f) => o.map((h) => i(
|
|
4690
|
+
...n.flatMap((f) => o.map((h) => i(l, f, h, p)))
|
|
4684
4691
|
);
|
|
4685
4692
|
},
|
|
4686
4693
|
{ immediate: !0, flush: "post" }
|
|
4687
4694
|
), c = () => {
|
|
4688
|
-
|
|
4695
|
+
d(), a();
|
|
4689
4696
|
};
|
|
4690
4697
|
return vt(c), c;
|
|
4691
4698
|
}
|
|
@@ -4697,29 +4704,29 @@ function ol() {
|
|
|
4697
4704
|
}
|
|
4698
4705
|
function Mr(e) {
|
|
4699
4706
|
const t = ol();
|
|
4700
|
-
return
|
|
4707
|
+
return R(() => (t.value, !!e()));
|
|
4701
4708
|
}
|
|
4702
4709
|
function Br(e, t, n = {}) {
|
|
4703
4710
|
const { window: o = Un, ...r } = n;
|
|
4704
4711
|
let s;
|
|
4705
4712
|
const a = Mr(() => o && "MutationObserver" in o), i = () => {
|
|
4706
4713
|
s && (s.disconnect(), s = void 0);
|
|
4707
|
-
},
|
|
4714
|
+
}, d = R(() => {
|
|
4708
4715
|
const p = se(e), f = (Array.isArray(p) ? p : [p]).map(Qe).filter(Kc);
|
|
4709
4716
|
return new Set(f);
|
|
4710
4717
|
}), c = G(
|
|
4711
|
-
() =>
|
|
4718
|
+
() => d.value,
|
|
4712
4719
|
(p) => {
|
|
4713
4720
|
i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
|
|
4714
4721
|
},
|
|
4715
4722
|
{ immediate: !0, flush: "post" }
|
|
4716
|
-
),
|
|
4723
|
+
), l = () => s == null ? void 0 : s.takeRecords(), u = () => {
|
|
4717
4724
|
c(), i();
|
|
4718
4725
|
};
|
|
4719
4726
|
return vt(u), {
|
|
4720
4727
|
isSupported: a,
|
|
4721
4728
|
stop: u,
|
|
4722
|
-
takeRecords:
|
|
4729
|
+
takeRecords: l
|
|
4723
4730
|
};
|
|
4724
4731
|
}
|
|
4725
4732
|
function rl(e, t, n = {}) {
|
|
@@ -4727,11 +4734,11 @@ function rl(e, t, n = {}) {
|
|
|
4727
4734
|
let s;
|
|
4728
4735
|
const a = Mr(() => o && "ResizeObserver" in o), i = () => {
|
|
4729
4736
|
s && (s.disconnect(), s = void 0);
|
|
4730
|
-
},
|
|
4737
|
+
}, d = R(() => {
|
|
4731
4738
|
const u = se(e);
|
|
4732
4739
|
return Array.isArray(u) ? u.map((p) => Qe(p)) : [Qe(u)];
|
|
4733
4740
|
}), c = G(
|
|
4734
|
-
|
|
4741
|
+
d,
|
|
4735
4742
|
(u) => {
|
|
4736
4743
|
if (i(), a.value && o) {
|
|
4737
4744
|
s = new ResizeObserver(t);
|
|
@@ -4740,12 +4747,12 @@ function rl(e, t, n = {}) {
|
|
|
4740
4747
|
}
|
|
4741
4748
|
},
|
|
4742
4749
|
{ immediate: !0, flush: "post" }
|
|
4743
|
-
),
|
|
4750
|
+
), l = () => {
|
|
4744
4751
|
i(), c();
|
|
4745
4752
|
};
|
|
4746
|
-
return vt(
|
|
4753
|
+
return vt(l), {
|
|
4747
4754
|
isSupported: a,
|
|
4748
|
-
stop:
|
|
4755
|
+
stop: l
|
|
4749
4756
|
};
|
|
4750
4757
|
}
|
|
4751
4758
|
function Wr(e, t = {}) {
|
|
@@ -4755,15 +4762,15 @@ function Wr(e, t = {}) {
|
|
|
4755
4762
|
windowScroll: r = !0,
|
|
4756
4763
|
immediate: s = !0,
|
|
4757
4764
|
updateTiming: a = "sync"
|
|
4758
|
-
} = t, i = C(0),
|
|
4765
|
+
} = t, i = C(0), d = C(0), c = C(0), l = C(0), u = C(0), p = C(0), f = C(0), h = C(0);
|
|
4759
4766
|
function b() {
|
|
4760
4767
|
const x = Qe(e);
|
|
4761
4768
|
if (!x) {
|
|
4762
|
-
n && (i.value = 0,
|
|
4769
|
+
n && (i.value = 0, d.value = 0, c.value = 0, l.value = 0, u.value = 0, p.value = 0, f.value = 0, h.value = 0);
|
|
4763
4770
|
return;
|
|
4764
4771
|
}
|
|
4765
4772
|
const N = x.getBoundingClientRect();
|
|
4766
|
-
i.value = N.height,
|
|
4773
|
+
i.value = N.height, d.value = N.bottom, c.value = N.left, l.value = N.right, u.value = N.top, p.value = N.width, f.value = N.x, h.value = N.y;
|
|
4767
4774
|
}
|
|
4768
4775
|
function _() {
|
|
4769
4776
|
a === "sync" ? b() : a === "next-frame" && requestAnimationFrame(() => b());
|
|
@@ -4774,9 +4781,9 @@ function Wr(e, t = {}) {
|
|
|
4774
4781
|
s && _();
|
|
4775
4782
|
}), {
|
|
4776
4783
|
height: i,
|
|
4777
|
-
bottom:
|
|
4784
|
+
bottom: d,
|
|
4778
4785
|
left: c,
|
|
4779
|
-
right:
|
|
4786
|
+
right: l,
|
|
4780
4787
|
top: u,
|
|
4781
4788
|
width: p,
|
|
4782
4789
|
x: f,
|
|
@@ -4799,18 +4806,18 @@ const sl = (e) => {
|
|
|
4799
4806
|
},
|
|
4800
4807
|
emits: ["cellInput"],
|
|
4801
4808
|
setup(e, { emit: t }) {
|
|
4802
|
-
const n = t, o = ht("cell"), { width: r, height: s } = Wr(o), a = e.store.getCellData(e.colIndex, e.rowIndex), i = C(""),
|
|
4809
|
+
const n = t, o = ht("cell"), { width: r, height: s } = Wr(o), a = e.store.getCellData(e.colIndex, e.rowIndex), i = C(""), d = C(!1), c = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], u = c.align || "center", p = c.width || "40ch", f = R(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), h = R(() => typeof f.value == "string" ? sl(f.value) : !1), b = R(() => {
|
|
4803
4810
|
var $;
|
|
4804
4811
|
return {
|
|
4805
4812
|
textAlign: u,
|
|
4806
4813
|
width: p,
|
|
4807
|
-
backgroundColor:
|
|
4808
|
-
fontWeight:
|
|
4814
|
+
backgroundColor: d.value ? "var(--sc-cell-changed-color)" : "inherit",
|
|
4815
|
+
fontWeight: d.value ? "bold" : "inherit",
|
|
4809
4816
|
paddingLeft: e.store.getIndent(e.colIndex, ($ = e.store.display[e.rowIndex]) == null ? void 0 : $.indent)
|
|
4810
4817
|
};
|
|
4811
4818
|
}), _ = () => {
|
|
4812
4819
|
c.mask, c.modalComponent && e.store.$patch(($) => {
|
|
4813
|
-
$.modal.visible = !0, $.modal.colIndex = e.colIndex, $.modal.rowIndex = e.rowIndex, $.modal.parent = o.value, $.modal.top = o.value.offsetTop + o.value.offsetHeight, $.modal.left = o.value.offsetLeft, $.modal.width = r.value, $.modal.height = s.value, typeof c.modalComponent == "function" ? $.modal.component = c.modalComponent({ table: $.table, row:
|
|
4820
|
+
$.modal.visible = !0, $.modal.colIndex = e.colIndex, $.modal.rowIndex = e.rowIndex, $.modal.parent = o.value, $.modal.top = o.value.offsetTop + o.value.offsetHeight, $.modal.left = o.value.offsetLeft, $.modal.width = r.value, $.modal.height = s.value, typeof c.modalComponent == "function" ? $.modal.component = c.modalComponent({ table: $.table, row: l, column: c }) : $.modal.component = c.modalComponent, $.modal.componentProps = c.modalComponentExtraProps;
|
|
4814
4821
|
});
|
|
4815
4822
|
};
|
|
4816
4823
|
if (e.addNavigation) {
|
|
@@ -4836,7 +4843,7 @@ const sl = (e) => {
|
|
|
4836
4843
|
o.value && (i.value = o.value.textContent);
|
|
4837
4844
|
}, N = ($) => {
|
|
4838
4845
|
const j = $.target;
|
|
4839
|
-
j.textContent !== i.value && (n("cellInput", e.colIndex, e.rowIndex, j.textContent, i.value), i.value = j.textContent, c.format ? (
|
|
4846
|
+
j.textContent !== i.value && (n("cellInput", e.colIndex, e.rowIndex, j.textContent, i.value), i.value = j.textContent, c.format ? (d.value = j.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, a), e.store.setCellText(e.colIndex, e.rowIndex, j.textContent)) : (d.value = j.textContent !== a, e.store.setCellData(e.colIndex, e.rowIndex, j.textContent)));
|
|
4840
4847
|
};
|
|
4841
4848
|
return ($, j) => (A(), B("td", {
|
|
4842
4849
|
ref: "cell",
|
|
@@ -4871,7 +4878,7 @@ const sl = (e) => {
|
|
|
4871
4878
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
4872
4879
|
},
|
|
4873
4880
|
setup(e) {
|
|
4874
|
-
const t = ht("rowEl"), n = e.store.isRowVisible(e.rowIndex), o = e.store.getRowExpandSymbol(e.rowIndex);
|
|
4881
|
+
const t = ht("rowEl"), n = R(() => e.store.isRowVisible(e.rowIndex)), o = R(() => e.store.getRowExpandSymbol(e.rowIndex));
|
|
4875
4882
|
if (e.addNavigation) {
|
|
4876
4883
|
let r = Bn;
|
|
4877
4884
|
typeof e.addNavigation == "object" && (r = {
|
|
@@ -4899,11 +4906,11 @@ const sl = (e) => {
|
|
|
4899
4906
|
tabIndex: -1,
|
|
4900
4907
|
class: Ve(["tree-index", r.store.hasPinnedColumns ? "sticky-index" : ""]),
|
|
4901
4908
|
onClick: s[0] || (s[0] = (a) => r.store.toggleRowExpand(r.rowIndex))
|
|
4902
|
-
}, ve(
|
|
4909
|
+
}, ve(o.value), 3)) : ge("", !0)
|
|
4903
4910
|
]) : ge("", !0),
|
|
4904
4911
|
ke(r.$slots, "default")
|
|
4905
4912
|
], 8, ul)), [
|
|
4906
|
-
[gn,
|
|
4913
|
+
[gn, n.value]
|
|
4907
4914
|
]);
|
|
4908
4915
|
}
|
|
4909
4916
|
}), Ur = Wn ? window : void 0;
|
|
@@ -4918,20 +4925,20 @@ function Ct(...e) {
|
|
|
4918
4925
|
return ze;
|
|
4919
4926
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4920
4927
|
const s = [], a = () => {
|
|
4921
|
-
s.forEach((
|
|
4922
|
-
}, i = (
|
|
4928
|
+
s.forEach((l) => l()), s.length = 0;
|
|
4929
|
+
}, i = (l, u, p, f) => (l.addEventListener(u, p, f), () => l.removeEventListener(u, p, f)), d = G(
|
|
4923
4930
|
() => [st(t), se(r)],
|
|
4924
|
-
([
|
|
4925
|
-
if (a(), !
|
|
4931
|
+
([l, u]) => {
|
|
4932
|
+
if (a(), !l)
|
|
4926
4933
|
return;
|
|
4927
4934
|
const p = Lr(u) ? { ...u } : u;
|
|
4928
4935
|
s.push(
|
|
4929
|
-
...n.flatMap((f) => o.map((h) => i(
|
|
4936
|
+
...n.flatMap((f) => o.map((h) => i(l, f, h, p)))
|
|
4930
4937
|
);
|
|
4931
4938
|
},
|
|
4932
4939
|
{ immediate: !0, flush: "post" }
|
|
4933
4940
|
), c = () => {
|
|
4934
|
-
|
|
4941
|
+
d(), a();
|
|
4935
4942
|
};
|
|
4936
4943
|
return vt(c), c;
|
|
4937
4944
|
}
|
|
@@ -4942,7 +4949,7 @@ function To(e, t, n = {}) {
|
|
|
4942
4949
|
return ze;
|
|
4943
4950
|
vn && !Ao && (Ao = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", ze)), o.document.documentElement.addEventListener("click", ze));
|
|
4944
4951
|
let i = !0;
|
|
4945
|
-
const
|
|
4952
|
+
const d = (h) => se(r).some((b) => {
|
|
4946
4953
|
if (typeof b == "string")
|
|
4947
4954
|
return Array.from(o.document.querySelectorAll(b)).some((_) => _ === h.target || h.composedPath().includes(_));
|
|
4948
4955
|
{
|
|
@@ -4954,14 +4961,14 @@ function To(e, t, n = {}) {
|
|
|
4954
4961
|
const b = se(h);
|
|
4955
4962
|
return b && b.$.subTree.shapeFlag === 16;
|
|
4956
4963
|
}
|
|
4957
|
-
function
|
|
4964
|
+
function l(h, b) {
|
|
4958
4965
|
const _ = se(h), x = _.$.subTree && _.$.subTree.children;
|
|
4959
4966
|
return x == null || !Array.isArray(x) ? !1 : x.some((N) => N.el === b.target || b.composedPath().includes(N.el));
|
|
4960
4967
|
}
|
|
4961
4968
|
const u = (h) => {
|
|
4962
4969
|
const b = st(e);
|
|
4963
|
-
if (h.target != null && !(!(b instanceof Element) && c(e) &&
|
|
4964
|
-
if (h.detail === 0 && (i = !
|
|
4970
|
+
if (h.target != null && !(!(b instanceof Element) && c(e) && l(e, h)) && !(!b || b === h.target || h.composedPath().includes(b))) {
|
|
4971
|
+
if (h.detail === 0 && (i = !d(h)), !i) {
|
|
4965
4972
|
i = !0;
|
|
4966
4973
|
return;
|
|
4967
4974
|
}
|
|
@@ -4977,7 +4984,7 @@ function To(e, t, n = {}) {
|
|
|
4977
4984
|
}, { passive: !0, capture: s }),
|
|
4978
4985
|
Ct(o, "pointerdown", (h) => {
|
|
4979
4986
|
const b = st(e);
|
|
4980
|
-
i = !
|
|
4987
|
+
i = !d(h) && !!(b && !h.composedPath().includes(b));
|
|
4981
4988
|
}, { passive: !0 }),
|
|
4982
4989
|
a && Ct(o, "blur", (h) => {
|
|
4983
4990
|
setTimeout(() => {
|
|
@@ -5024,9 +5031,9 @@ function hl(e, t = !1) {
|
|
|
5024
5031
|
const n = C(t);
|
|
5025
5032
|
let o = null, r = "";
|
|
5026
5033
|
G(tl(e), (i) => {
|
|
5027
|
-
const
|
|
5028
|
-
if (
|
|
5029
|
-
const c =
|
|
5034
|
+
const d = tn(se(i));
|
|
5035
|
+
if (d) {
|
|
5036
|
+
const c = d;
|
|
5030
5037
|
if (nn.get(c) || nn.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
|
|
5031
5038
|
return n.value = !0;
|
|
5032
5039
|
if (n.value)
|
|
@@ -5040,8 +5047,8 @@ function hl(e, t = !1) {
|
|
|
5040
5047
|
!i || n.value || (vn && (o = Ct(
|
|
5041
5048
|
i,
|
|
5042
5049
|
"touchmove",
|
|
5043
|
-
(
|
|
5044
|
-
fl(
|
|
5050
|
+
(d) => {
|
|
5051
|
+
fl(d);
|
|
5045
5052
|
},
|
|
5046
5053
|
{ passive: !1 }
|
|
5047
5054
|
)), i.style.overflow = "hidden", n.value = !0);
|
|
@@ -5049,7 +5056,7 @@ function hl(e, t = !1) {
|
|
|
5049
5056
|
const i = tn(se(e));
|
|
5050
5057
|
!i || !n.value || (vn && (o == null || o()), i.style.overflow = r, nn.delete(i), n.value = !1);
|
|
5051
5058
|
};
|
|
5052
|
-
return vt(a),
|
|
5059
|
+
return vt(a), R({
|
|
5053
5060
|
get() {
|
|
5054
5061
|
return n.value;
|
|
5055
5062
|
},
|
|
@@ -5116,11 +5123,11 @@ const vl = {
|
|
|
5116
5123
|
container: {}
|
|
5117
5124
|
},
|
|
5118
5125
|
setup(e) {
|
|
5119
|
-
const t = ht("amodal"), { width: n, height: o } = Wr(t), r =
|
|
5126
|
+
const t = ht("amodal"), { width: n, height: o } = Wr(t), r = R(() => {
|
|
5120
5127
|
var a, i;
|
|
5121
|
-
const
|
|
5128
|
+
const d = ((a = e.container) == null ? void 0 : a.offsetWidth) || 0, c = ((i = e.container) == null ? void 0 : i.offsetHeight) || 0, l = e.store.modal.left + n.value > d ? e.store.modal.left - (n.value - e.store.modal.width) : e.store.modal.left, u = e.store.modal.top + o.value > c ? e.store.modal.top - o.value - e.store.modal.height : e.store.modal.top;
|
|
5122
5129
|
return {
|
|
5123
|
-
left: `${
|
|
5130
|
+
left: `${l}px`,
|
|
5124
5131
|
top: `${u}px`
|
|
5125
5132
|
};
|
|
5126
5133
|
}), s = (a) => {
|
|
@@ -5156,7 +5163,7 @@ const vl = {
|
|
|
5156
5163
|
y.parent && w.add(y.parent), P[v] = {
|
|
5157
5164
|
childrenOpen: !1,
|
|
5158
5165
|
expanded: !1,
|
|
5159
|
-
indent: y.indent ||
|
|
5166
|
+
indent: y.indent || 0,
|
|
5160
5167
|
isParent: w.has(v),
|
|
5161
5168
|
isRoot: y.parent === null || y.parent === void 0,
|
|
5162
5169
|
rowModified: !1,
|
|
@@ -5165,22 +5172,24 @@ const vl = {
|
|
|
5165
5172
|
};
|
|
5166
5173
|
}
|
|
5167
5174
|
return P;
|
|
5168
|
-
}, r = C(e.columns), s = C(e.rows), a = C(e.config || {}), i = C(e.table || n()),
|
|
5175
|
+
}, r = C(e.columns), s = C(e.rows), a = C(e.config || {}), i = C(e.table || n()), d = C(o(e.display)), c = C(e.modal || { visible: !1 }), l = C({}), u = R(() => r.value.some((m) => m.pinned)), p = R(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), f = R(
|
|
5176
|
+
() => a.value.view ? ["list", "tree", "list-expansion"].includes(a.value.view) : !1
|
|
5177
|
+
), h = (m, P) => i.value[`${m}:${P}`], b = (m, P, w) => {
|
|
5169
5178
|
const v = `${m}:${P}`, y = r.value[m];
|
|
5170
|
-
i.value[v] !== w && (
|
|
5179
|
+
i.value[v] !== w && (d.value[P].rowModified = !0), i.value[v] = w, s.value[P][y.name] = w;
|
|
5171
5180
|
}, _ = (m, P, w) => {
|
|
5172
5181
|
const v = `${m}:${P}`;
|
|
5173
|
-
i.value[v] !== w && (
|
|
5182
|
+
i.value[v] !== w && (d.value[P].rowModified = !0, l.value[v] = w);
|
|
5174
5183
|
}, x = (m) => ({
|
|
5175
5184
|
minWidth: m.width || "40ch",
|
|
5176
5185
|
textAlign: m.align || "center",
|
|
5177
|
-
width: a.value.fullWidth ? "auto" :
|
|
5178
|
-
}), N = (m) => a.value.view !== "tree" ||
|
|
5186
|
+
width: a.value.fullWidth ? "auto" : void 0
|
|
5187
|
+
}), N = (m) => a.value.view !== "tree" || d.value[m].isRoot || d.value[m].open, $ = (m) => a.value.view !== "tree" ? "" : d.value[m].isRoot || d.value[m].isParent ? d.value[m].childrenOpen ? "-" : "+" : "", j = (m) => {
|
|
5179
5188
|
if (a.value.view === "tree") {
|
|
5180
|
-
|
|
5189
|
+
d.value[m].childrenOpen = !d.value[m].childrenOpen;
|
|
5181
5190
|
for (let P = s.value.length - 1; P >= 0; P--)
|
|
5182
|
-
|
|
5183
|
-
} else a.value.view === "list-expansion" && (
|
|
5191
|
+
d.value[P].parent === m && (d.value[P].open = !d.value[P].open, d.value[P].childrenOpen && j(P));
|
|
5192
|
+
} else a.value.view === "list-expansion" && (d.value[m].expanded = !d.value[m].expanded);
|
|
5184
5193
|
}, H = (m, P) => {
|
|
5185
5194
|
const w = h(m, P);
|
|
5186
5195
|
return Y(m, P, w);
|
|
@@ -5192,11 +5201,11 @@ const vl = {
|
|
|
5192
5201
|
// state
|
|
5193
5202
|
columns: r,
|
|
5194
5203
|
config: a,
|
|
5195
|
-
display:
|
|
5204
|
+
display: d,
|
|
5196
5205
|
modal: c,
|
|
5197
5206
|
rows: s,
|
|
5198
5207
|
table: i,
|
|
5199
|
-
updates:
|
|
5208
|
+
updates: l,
|
|
5200
5209
|
// getters
|
|
5201
5210
|
hasPinnedColumns: u,
|
|
5202
5211
|
numberedRowWidth: p,
|
|
@@ -5230,9 +5239,9 @@ const vl = {
|
|
|
5230
5239
|
emits: ["update:modelValue", "cellUpdate"],
|
|
5231
5240
|
setup(e, { expose: t, emit: n }) {
|
|
5232
5241
|
const o = n, r = ht("table"), s = e.modelValue ? e.modelValue : e.rows, a = wl({ columns: e.columns, rows: s, id: e.id, config: e.config });
|
|
5233
|
-
a.$onAction(({ name: c, store:
|
|
5242
|
+
a.$onAction(({ name: c, store: l, args: u, after: p }) => {
|
|
5234
5243
|
if (c === "setCellData") {
|
|
5235
|
-
const [f, h, b] = u, _ =
|
|
5244
|
+
const [f, h, b] = u, _ = l.getCellData(f, h);
|
|
5236
5245
|
p(() => {
|
|
5237
5246
|
o("cellUpdate", f, h, b, _);
|
|
5238
5247
|
});
|
|
@@ -5244,12 +5253,12 @@ const vl = {
|
|
|
5244
5253
|
},
|
|
5245
5254
|
{ deep: !0 }
|
|
5246
5255
|
), Ke(() => {
|
|
5247
|
-
e.columns.some((c) => c.pinned) && (
|
|
5256
|
+
e.columns.some((c) => c.pinned) && (d(), a.config.view === "tree" && Br(r, d, { childList: !0, subtree: !0 }));
|
|
5248
5257
|
});
|
|
5249
|
-
const i = (c,
|
|
5250
|
-
o("cellUpdate", c,
|
|
5251
|
-
},
|
|
5252
|
-
const c = r.value,
|
|
5258
|
+
const i = (c, l, u, p) => {
|
|
5259
|
+
o("cellUpdate", c, l, u, p);
|
|
5260
|
+
}, d = () => {
|
|
5261
|
+
const c = r.value, l = c.rows[0], u = c.rows[1], p = l ? Array.from(l.cells) : [];
|
|
5253
5262
|
for (const [f, h] of p.entries()) {
|
|
5254
5263
|
const b = u == null ? void 0 : u.cells[f];
|
|
5255
5264
|
b && (h.style.width = `${b.offsetWidth}px`);
|
|
@@ -5265,12 +5274,12 @@ const vl = {
|
|
|
5265
5274
|
return window.addEventListener("keydown", (c) => {
|
|
5266
5275
|
if (c.key === "Escape" && a.modal.visible) {
|
|
5267
5276
|
a.modal.visible = !1;
|
|
5268
|
-
const
|
|
5269
|
-
|
|
5270
|
-
|
|
5277
|
+
const l = a.modal.parent;
|
|
5278
|
+
l && xe().then(() => {
|
|
5279
|
+
l.focus();
|
|
5271
5280
|
});
|
|
5272
5281
|
}
|
|
5273
|
-
}), t({ store: a }), (c,
|
|
5282
|
+
}), t({ store: a }), (c, l) => lt((A(), B("table", {
|
|
5274
5283
|
ref: "table",
|
|
5275
5284
|
class: "atable",
|
|
5276
5285
|
style: le({ width: S(a).config.fullWidth ? "100%" : "auto" })
|
|
@@ -5368,17 +5377,17 @@ const vl = {
|
|
|
5368
5377
|
breadcrumbs: { default: () => [] }
|
|
5369
5378
|
},
|
|
5370
5379
|
setup(e) {
|
|
5371
|
-
const t = C(!0), n = C(!1), o = C(""), r = ht("searchinput"), s =
|
|
5380
|
+
const t = C(!0), n = C(!1), o = C(""), r = ht("searchinput"), s = R(() => t.value ? "unrotated" : "rotated"), a = () => {
|
|
5372
5381
|
t.value = !t.value;
|
|
5373
5382
|
}, i = async () => {
|
|
5374
5383
|
n.value = !n.value, await xe(() => {
|
|
5375
5384
|
r.value.focus();
|
|
5376
5385
|
});
|
|
5377
|
-
},
|
|
5386
|
+
}, d = (u) => {
|
|
5378
5387
|
u.preventDefault(), u.stopPropagation();
|
|
5379
5388
|
}, c = async (u) => {
|
|
5380
5389
|
u.preventDefault(), u.stopPropagation(), await i();
|
|
5381
|
-
},
|
|
5390
|
+
}, l = () => {
|
|
5382
5391
|
};
|
|
5383
5392
|
return (u, p) => {
|
|
5384
5393
|
const f = Xr("router-link");
|
|
@@ -5397,8 +5406,8 @@ const vl = {
|
|
|
5397
5406
|
], 32),
|
|
5398
5407
|
W("li", {
|
|
5399
5408
|
class: "hometab",
|
|
5400
|
-
onClick:
|
|
5401
|
-
onKeydown: yt(
|
|
5409
|
+
onClick: l,
|
|
5410
|
+
onKeydown: yt(l, ["enter"]),
|
|
5402
5411
|
style: le({ display: t.value ? "block" : "none" })
|
|
5403
5412
|
}, [
|
|
5404
5413
|
It(f, {
|
|
@@ -5450,8 +5459,8 @@ const vl = {
|
|
|
5450
5459
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => o.value = h),
|
|
5451
5460
|
ref: "searchinput",
|
|
5452
5461
|
style: le({ display: n.value ? "block" : "none" }),
|
|
5453
|
-
onClick: p[1] || (p[1] = (h) =>
|
|
5454
|
-
onInput: p[2] || (p[2] = (h) =>
|
|
5462
|
+
onClick: p[1] || (p[1] = (h) => d(h)),
|
|
5463
|
+
onInput: p[2] || (p[2] = (h) => d(h)),
|
|
5455
5464
|
onBlur: p[3] || (p[3] = (h) => c(h)),
|
|
5456
5465
|
onKeydown: p[4] || (p[4] = yt((h) => c(h), ["enter"])),
|
|
5457
5466
|
type: "text"
|