@vue/devtools-applet 7.4.5 → 7.5.0
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/components/timeline/index.vue.d.ts +21 -3
- package/dist/composables/custom-inspector-state.d.ts +4 -0
- package/dist/composables/custom-inspector.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1422 -1411
- package/dist/modules/custom-inspector/index.vue.d.ts +2 -0
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,47 +1,301 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isPlainObject as
|
|
4
|
-
import {
|
|
5
|
-
import { vTooltip as Q, VueButton as de, VueIcon as oe, VueDropdown as pn, VueDropdownButton as xt, VueInput as Ze, VueCodeBlock as fn, VueDialog as vn, VueSwitch as mn, VueSelect as hn, VueIcIcon as yt } from "@vue/devtools-ui";
|
|
6
|
-
import { flatten as gn, groupBy as Cn } from "lodash-es";
|
|
1
|
+
import { defineComponent as B, withDirectives as J, openBlock as p, createElementBlock as m, normalizeStyle as Ie, unref as d, createTextVNode as ne, toDisplayString as le, mergeModels as ze, useModel as Qe, Fragment as te, renderList as ae, normalizeClass as ie, createBlock as z, toValue as ft, ref as T, computed as V, h as Jt, provide as ge, inject as ve, createElementVNode as u, renderSlot as et, createCommentVNode as U, isRef as Ge, watch as X, onMounted as St, nextTick as Be, readonly as Yt, getCurrentScope as Xt, onScopeDispose as Qt, getCurrentInstance as tt, reactive as vt, shallowRef as mt, toRaw as Tt, mergeProps as ke, withModifiers as fe, withCtx as M, createVNode as x, watchEffect as nt, onUnmounted as ye, vShow as en, createStaticVNode as tn } from "vue";
|
|
2
|
+
import { vTooltip as Q, VueButton as de, VueIcon as oe, VueDropdown as nn, VueDropdownButton as ht, VueInput as Ze, VueCodeBlock as on, VueDialog as ln, VueSwitch as sn, VueSelect as an, VueIcIcon as gt } from "@vue/devtools-ui";
|
|
3
|
+
import { isPlainObject as rn, UNDEFINED as un, NAN as cn, INFINITY as dn, NEGATIVE_INFINITY as pn, getRaw as Et, toSubmit as Ue, formatInspectorStateValue as fn, getInspectorStateValueType as Ct, toEdit as vn, parse as Y } from "@vue/devtools-kit";
|
|
4
|
+
import { rpc as D, DevToolsMessagingEvents as W, onRpcConnected as Re, useDevToolsState as mn } from "@vue/devtools-core";
|
|
7
5
|
import { Splitpanes as Ae, Pane as ue } from "splitpanes";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import { isArray as _t, isObject as xt, sortByKey as Vt, isInSeparateWindow as hn, isInChromePanel as yt } from "@vue/devtools-shared";
|
|
7
|
+
import { debounce as gn } from "perfect-debounce";
|
|
8
|
+
import { RecycleScroller as Cn } from "vue-virtual-scroller";
|
|
9
|
+
import { flatten as _n, groupBy as xn } from "lodash-es";
|
|
10
|
+
function bt(n) {
|
|
11
|
+
return n.toString(16).padStart(6, "0");
|
|
12
|
+
}
|
|
13
|
+
function yn(n, e) {
|
|
14
|
+
const o = new Date(n);
|
|
15
|
+
return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
16
|
+
}
|
|
17
|
+
function bn(n, e) {
|
|
18
|
+
const o = /* @__PURE__ */ new Map(), t = Rt(n, e.toLowerCase(), o, 0);
|
|
19
|
+
return o.clear(), t;
|
|
20
|
+
}
|
|
21
|
+
const Nt = 10;
|
|
22
|
+
function Rt(n, e, o, t) {
|
|
23
|
+
if (t > Nt)
|
|
24
|
+
return !1;
|
|
25
|
+
let s = !1;
|
|
26
|
+
const l = Object.keys(n);
|
|
27
|
+
let i, r;
|
|
28
|
+
for (let c = 0; c < l.length && (i = l[c], r = n[i], s = At(e, i, r, o, t + 1), !s); c++)
|
|
29
|
+
;
|
|
30
|
+
return s;
|
|
31
|
+
}
|
|
32
|
+
function At(n, e, o, t, s) {
|
|
33
|
+
let l = !1, i;
|
|
34
|
+
return e === "_custom" && (e = o.display, o = o.value), (i = wn(o)) && (o = i), e && wt(e, n) ? (l = !0, t.set(o, !0)) : t.has(o) ? l = t.get(o) : Array.isArray(o) ? (t.set(o, null), l = kn(o, n, t, s), t.set(o, l)) : rn(o) ? (t.set(o, null), l = Rt(o, n, t, s), t.set(o, l)) : wt(o, n) && (l = !0, t.set(o, !0)), l;
|
|
35
|
+
}
|
|
36
|
+
function wt(n, e) {
|
|
37
|
+
return `${n}`.toLowerCase().includes(e);
|
|
38
|
+
}
|
|
39
|
+
function wn(n) {
|
|
40
|
+
return n === null ? "null" : n === un ? "undefined" : n === cn ? "NaN" : n === dn ? "Infinity" : n === pn ? "-Infinity" : !1;
|
|
41
|
+
}
|
|
42
|
+
function kn(n, e, o, t) {
|
|
43
|
+
if (t > Nt)
|
|
44
|
+
return !1;
|
|
45
|
+
let s = !1, l;
|
|
46
|
+
for (let i = 0; i < n.length && (l = n[i], s = At(e, null, l, o, t + 1), !s); i++)
|
|
47
|
+
;
|
|
48
|
+
return s;
|
|
49
|
+
}
|
|
50
|
+
const Dt = /* @__PURE__ */ B({
|
|
51
|
+
__name: "NodeTag",
|
|
52
|
+
props: {
|
|
53
|
+
tag: {}
|
|
54
|
+
},
|
|
55
|
+
setup(n) {
|
|
56
|
+
return (e, o) => J((p(), m("span", {
|
|
57
|
+
style: Ie({
|
|
58
|
+
color: `#${d(bt)(e.tag.textColor)}`,
|
|
59
|
+
backgroundColor: `#${d(bt)(e.tag.backgroundColor)}`
|
|
60
|
+
}),
|
|
61
|
+
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
62
|
+
}, [
|
|
63
|
+
ne(le(e.tag.label), 1)
|
|
64
|
+
], 4)), [
|
|
65
|
+
[d(Q), {
|
|
66
|
+
content: e.tag.tooltip,
|
|
67
|
+
html: !0
|
|
68
|
+
}]
|
|
69
|
+
]);
|
|
16
70
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
71
|
+
}), In = { class: "p2" }, $n = ["onClick"], Sn = /* @__PURE__ */ B({
|
|
72
|
+
__name: "SelectiveList",
|
|
73
|
+
props: /* @__PURE__ */ ze({
|
|
74
|
+
data: {}
|
|
75
|
+
}, {
|
|
76
|
+
modelValue: {},
|
|
77
|
+
modelModifiers: {}
|
|
78
|
+
}),
|
|
79
|
+
emits: /* @__PURE__ */ ze(["select"], ["update:modelValue"]),
|
|
80
|
+
setup(n, { emit: e }) {
|
|
81
|
+
const o = e, t = Qe(n, "modelValue");
|
|
82
|
+
function s(l) {
|
|
83
|
+
t.value = l, o("select", l);
|
|
84
|
+
}
|
|
85
|
+
return (l, i) => (p(), m("ul", In, [
|
|
86
|
+
(p(!0), m(te, null, ae(l.data, (r) => (p(), m("li", {
|
|
87
|
+
key: r.id,
|
|
88
|
+
class: ie(["selectable-item", { active: r.id === t.value }]),
|
|
89
|
+
onClick: (c) => s(r.id)
|
|
90
|
+
}, [
|
|
91
|
+
ne(le(r.label) + " ", 1),
|
|
92
|
+
(p(!0), m(te, null, ae(r.tags, (c, g) => (p(), z(Dt, {
|
|
93
|
+
key: g,
|
|
94
|
+
tag: c
|
|
95
|
+
}, null, 8, ["tag"]))), 128))
|
|
96
|
+
], 10, $n))), 128))
|
|
97
|
+
]));
|
|
98
|
+
}
|
|
99
|
+
}), ot = Symbol("VirtualRouteKey"), Pt = Symbol("VirtualRoutesKey");
|
|
100
|
+
function lt(n, e) {
|
|
101
|
+
const o = (e == null ? void 0 : e.defaultRoutePath) ?? ft(n)[0].path, t = T({
|
|
102
|
+
path: o
|
|
103
|
+
}), s = V(() => ft(n)), l = V(() => t.value.path), i = B({
|
|
104
|
+
setup() {
|
|
105
|
+
return () => {
|
|
106
|
+
const c = s.value.find((g) => g.path === l.value);
|
|
107
|
+
return c ? Jt(c.component) : null;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
23
110
|
});
|
|
24
|
-
function
|
|
25
|
-
|
|
111
|
+
function r() {
|
|
112
|
+
t.value.path = o;
|
|
26
113
|
}
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
114
|
+
return ge(ot, t), ge(Pt, s), { VirtualRouterView: i, restoreRouter: r };
|
|
115
|
+
}
|
|
116
|
+
function De() {
|
|
117
|
+
const n = ve(ot);
|
|
118
|
+
return {
|
|
119
|
+
push(e) {
|
|
120
|
+
n.value.path = e;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function Tn() {
|
|
125
|
+
const n = ve(Pt), e = ve(ot);
|
|
126
|
+
return {
|
|
127
|
+
routes: n,
|
|
128
|
+
currentRoute: e
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
const En = {
|
|
132
|
+
border: "b base",
|
|
133
|
+
class: "flex items-center justify-between px3"
|
|
134
|
+
}, Vn = ["href"], Nn = ["href"], $e = /* @__PURE__ */ B({
|
|
135
|
+
__name: "DevToolsHeader",
|
|
136
|
+
props: {
|
|
137
|
+
githubRepoLink: {},
|
|
138
|
+
docLink: {}
|
|
139
|
+
},
|
|
140
|
+
setup(n) {
|
|
141
|
+
const e = De();
|
|
142
|
+
return (o, t) => (p(), m("div", En, [
|
|
143
|
+
u("div", null, [
|
|
144
|
+
et(o.$slots, "default", {}, () => [
|
|
145
|
+
u("i", {
|
|
146
|
+
class: "i-ep:back cursor-pointer op70 text-base hover:op100",
|
|
147
|
+
onClick: t[0] || (t[0] = (s) => d(e).push("/"))
|
|
148
|
+
})
|
|
149
|
+
])
|
|
150
|
+
]),
|
|
151
|
+
u("div", null, [
|
|
152
|
+
u("a", {
|
|
153
|
+
class: "pr2",
|
|
154
|
+
href: o.docLink,
|
|
155
|
+
target: "_blank",
|
|
156
|
+
title: "View Documentation"
|
|
157
|
+
}, t[1] || (t[1] = [
|
|
158
|
+
u("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
159
|
+
]), 8, Vn),
|
|
160
|
+
o.githubRepoLink ? (p(), m("a", {
|
|
161
|
+
key: 0,
|
|
162
|
+
href: o.githubRepoLink,
|
|
163
|
+
target: "_blank",
|
|
164
|
+
title: "Star on GitHub"
|
|
165
|
+
}, t[2] || (t[2] = [
|
|
166
|
+
u("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
167
|
+
]), 8, Nn)) : U("", !0)
|
|
168
|
+
])
|
|
169
|
+
]));
|
|
170
|
+
}
|
|
171
|
+
}), be = (n, e) => {
|
|
172
|
+
const o = n.__vccOpts || n;
|
|
173
|
+
for (const [t, s] of e)
|
|
174
|
+
o[t] = s;
|
|
175
|
+
return o;
|
|
176
|
+
}, Rn = {}, An = { class: "h-full flex flex-col items-center justify-center op50" };
|
|
177
|
+
function Dn(n, e) {
|
|
178
|
+
return p(), m("div", An, [
|
|
179
|
+
e[0] || (e[0] = u("i", { class: "i-lets-icons:blank-light" }, null, -1)),
|
|
180
|
+
u("span", null, [
|
|
181
|
+
et(n.$slots, "default")
|
|
182
|
+
])
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
const Ne = /* @__PURE__ */ be(Rn, [["render", Dn]]), Pn = { class: "flex gap3" }, Mn = ["onClick"], Se = /* @__PURE__ */ B({
|
|
186
|
+
__name: "Navbar",
|
|
187
|
+
setup(n) {
|
|
188
|
+
const { routes: e, currentRoute: o } = Tn(), t = De();
|
|
189
|
+
return (s, l) => (p(), m("ul", Pn, [
|
|
190
|
+
(p(!0), m(te, null, ae(d(e), (i, r) => (p(), m("li", {
|
|
191
|
+
key: r,
|
|
192
|
+
class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", d(o).path === i.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
193
|
+
onClick: (c) => d(t).push(i.path)
|
|
194
|
+
}, le(i.name), 11, Mn))), 128))
|
|
195
|
+
]));
|
|
196
|
+
}
|
|
197
|
+
}), st = /* @__PURE__ */ B({
|
|
198
|
+
__name: "ToggleExpanded",
|
|
199
|
+
props: {
|
|
200
|
+
value: { type: Boolean }
|
|
201
|
+
},
|
|
202
|
+
setup(n) {
|
|
203
|
+
return (e, o) => (p(), m("i", {
|
|
204
|
+
class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
|
|
205
|
+
"transform rotate-90": e.value
|
|
206
|
+
}])
|
|
207
|
+
}, null, 2));
|
|
208
|
+
}
|
|
209
|
+
}), Mt = Symbol("StateEditorSymbol");
|
|
210
|
+
function Hn(n) {
|
|
211
|
+
const e = T(n);
|
|
212
|
+
return ge(Mt, e), {
|
|
213
|
+
context: e
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function at() {
|
|
217
|
+
return ve(Mt);
|
|
218
|
+
}
|
|
219
|
+
function Ln() {
|
|
220
|
+
const n = T(""), e = T("string"), o = T(!1), t = at();
|
|
221
|
+
return {
|
|
222
|
+
editingText: n,
|
|
223
|
+
editing: o,
|
|
224
|
+
toggleEditing(s) {
|
|
225
|
+
s && (e.value = s), o.value = !o.value;
|
|
226
|
+
},
|
|
227
|
+
editingType: e,
|
|
228
|
+
nodeId: V(() => t.value.nodeId)
|
|
32
229
|
};
|
|
33
230
|
}
|
|
34
|
-
function
|
|
231
|
+
function On(n, e) {
|
|
232
|
+
if (n === "array")
|
|
233
|
+
return e.length;
|
|
234
|
+
const o = "newProp";
|
|
235
|
+
let t = 1;
|
|
236
|
+
for (; ; ) {
|
|
237
|
+
const s = `${o}${t}`;
|
|
238
|
+
if (!e[s])
|
|
239
|
+
return s;
|
|
240
|
+
t++;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function jn() {
|
|
244
|
+
const n = T({
|
|
245
|
+
enable: !1,
|
|
246
|
+
key: "",
|
|
247
|
+
value: "undefined"
|
|
248
|
+
});
|
|
249
|
+
function e(t, s) {
|
|
250
|
+
const l = On(t, s);
|
|
251
|
+
n.value = {
|
|
252
|
+
enable: !0,
|
|
253
|
+
key: l.toString(),
|
|
254
|
+
value: "undefined"
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
function o() {
|
|
258
|
+
n.value = {
|
|
259
|
+
enable: !1,
|
|
260
|
+
key: "",
|
|
261
|
+
value: "undefined"
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
return {
|
|
265
|
+
addNewProp: e,
|
|
266
|
+
resetDrafting: o,
|
|
267
|
+
draftingNewProp: n
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
const Ht = "expanded-state";
|
|
271
|
+
function me(n = "") {
|
|
272
|
+
const e = T([]);
|
|
273
|
+
return ge(`${Ht}-${n}`, e), {
|
|
274
|
+
expanded: e
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
function it(n = "") {
|
|
278
|
+
const e = ve(`${Ht}-${n}`, T([]));
|
|
279
|
+
function o(t) {
|
|
280
|
+
const s = e.value.indexOf(t);
|
|
281
|
+
s === -1 ? e.value.push(t) : e.value.splice(s, 1);
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
expanded: e,
|
|
285
|
+
toggleExpanded: o
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
function rt(n) {
|
|
35
289
|
return Xt() ? (Qt(n), !0) : !1;
|
|
36
290
|
}
|
|
37
291
|
function ee(n) {
|
|
38
292
|
return typeof n == "function" ? n() : d(n);
|
|
39
293
|
}
|
|
40
|
-
const
|
|
294
|
+
const ut = typeof window < "u" && typeof document < "u";
|
|
41
295
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
42
|
-
const
|
|
296
|
+
const Un = (n) => typeof n < "u", zn = Object.prototype.toString, Bn = (n) => zn.call(n) === "[object Object]", Fe = () => {
|
|
43
297
|
};
|
|
44
|
-
function
|
|
298
|
+
function Zn(n, e) {
|
|
45
299
|
function o(...t) {
|
|
46
300
|
return new Promise((s, l) => {
|
|
47
301
|
Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(s).catch(l);
|
|
@@ -49,29 +303,29 @@ function kn(n, e) {
|
|
|
49
303
|
}
|
|
50
304
|
return o;
|
|
51
305
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
306
|
+
const Fn = (n) => n();
|
|
307
|
+
function Gn(n, e = {}) {
|
|
54
308
|
let o, t, s = Fe;
|
|
55
|
-
const l = (
|
|
56
|
-
clearTimeout(
|
|
309
|
+
const l = (r) => {
|
|
310
|
+
clearTimeout(r), s(), s = Fe;
|
|
57
311
|
};
|
|
58
|
-
return (
|
|
59
|
-
const c = ee(n),
|
|
60
|
-
return o && l(o), c <= 0 ||
|
|
61
|
-
s = e.rejectOnCancel ? a :
|
|
62
|
-
o && l(o), t = null,
|
|
63
|
-
},
|
|
64
|
-
t && l(t), t = null,
|
|
312
|
+
return (r) => {
|
|
313
|
+
const c = ee(n), g = ee(e.maxWait);
|
|
314
|
+
return o && l(o), c <= 0 || g !== void 0 && g <= 0 ? (t && (l(t), t = null), Promise.resolve(r())) : new Promise((f, a) => {
|
|
315
|
+
s = e.rejectOnCancel ? a : f, g && !t && (t = setTimeout(() => {
|
|
316
|
+
o && l(o), t = null, f(r());
|
|
317
|
+
}, g)), o = setTimeout(() => {
|
|
318
|
+
t && l(t), t = null, f(r());
|
|
65
319
|
}, c);
|
|
66
320
|
});
|
|
67
321
|
};
|
|
68
322
|
}
|
|
69
|
-
function
|
|
323
|
+
function kt(n, e = !1, o = "Timeout") {
|
|
70
324
|
return new Promise((t, s) => {
|
|
71
325
|
setTimeout(e ? () => s(o) : t, n);
|
|
72
326
|
});
|
|
73
327
|
}
|
|
74
|
-
function
|
|
328
|
+
function Kn(n) {
|
|
75
329
|
let e;
|
|
76
330
|
function o() {
|
|
77
331
|
return e || (e = n()), e;
|
|
@@ -81,70 +335,70 @@ function Sn(n) {
|
|
|
81
335
|
e = void 0, t && await t;
|
|
82
336
|
}, o;
|
|
83
337
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
338
|
+
function Wn(n) {
|
|
339
|
+
return tt();
|
|
86
340
|
}
|
|
87
|
-
function
|
|
341
|
+
function qn(n, e, o = {}) {
|
|
88
342
|
const {
|
|
89
|
-
eventFilter: t =
|
|
343
|
+
eventFilter: t = Fn,
|
|
90
344
|
...s
|
|
91
345
|
} = o;
|
|
92
346
|
return X(
|
|
93
347
|
n,
|
|
94
|
-
|
|
348
|
+
Zn(
|
|
95
349
|
t,
|
|
96
350
|
e
|
|
97
351
|
),
|
|
98
352
|
s
|
|
99
353
|
);
|
|
100
354
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
355
|
+
function Jn(n, e = !0, o) {
|
|
356
|
+
Wn() ? St(n, o) : e ? n() : Be(n);
|
|
103
357
|
}
|
|
104
358
|
function Xe(n, e = !1) {
|
|
105
|
-
function o(a, { flush:
|
|
106
|
-
let
|
|
107
|
-
const
|
|
108
|
-
|
|
359
|
+
function o(a, { flush: h = "sync", deep: y = !1, timeout: C, throwOnTimeout: v } = {}) {
|
|
360
|
+
let w = null;
|
|
361
|
+
const L = [new Promise((A) => {
|
|
362
|
+
w = X(
|
|
109
363
|
n,
|
|
110
|
-
(
|
|
111
|
-
a(
|
|
364
|
+
(I) => {
|
|
365
|
+
a(I) !== e && (w ? w() : Be(() => w == null ? void 0 : w()), A(I));
|
|
112
366
|
},
|
|
113
367
|
{
|
|
114
|
-
flush:
|
|
115
|
-
deep:
|
|
368
|
+
flush: h,
|
|
369
|
+
deep: y,
|
|
116
370
|
immediate: !0
|
|
117
371
|
}
|
|
118
372
|
);
|
|
119
373
|
})];
|
|
120
|
-
return
|
|
121
|
-
|
|
122
|
-
), Promise.race(
|
|
374
|
+
return C != null && L.push(
|
|
375
|
+
kt(C, v).then(() => ee(n)).finally(() => w == null ? void 0 : w())
|
|
376
|
+
), Promise.race(L);
|
|
123
377
|
}
|
|
124
|
-
function t(a,
|
|
378
|
+
function t(a, h) {
|
|
125
379
|
if (!Ge(a))
|
|
126
|
-
return o((
|
|
127
|
-
const { flush:
|
|
380
|
+
return o((I) => I === a, h);
|
|
381
|
+
const { flush: y = "sync", deep: C = !1, timeout: v, throwOnTimeout: w } = h ?? {};
|
|
128
382
|
let j = null;
|
|
129
|
-
const A = [new Promise((
|
|
383
|
+
const A = [new Promise((I) => {
|
|
130
384
|
j = X(
|
|
131
385
|
[n, a],
|
|
132
386
|
([R, H]) => {
|
|
133
|
-
e !== (R === H) && (j ? j() :
|
|
387
|
+
e !== (R === H) && (j ? j() : Be(() => j == null ? void 0 : j()), I(R));
|
|
134
388
|
},
|
|
135
389
|
{
|
|
136
|
-
flush:
|
|
137
|
-
deep:
|
|
390
|
+
flush: y,
|
|
391
|
+
deep: C,
|
|
138
392
|
immediate: !0
|
|
139
393
|
}
|
|
140
394
|
);
|
|
141
395
|
})];
|
|
142
|
-
return
|
|
143
|
-
|
|
396
|
+
return v != null && A.push(
|
|
397
|
+
kt(v, w).then(() => ee(n)).finally(() => (j == null || j(), ee(n)))
|
|
144
398
|
), Promise.race(A);
|
|
145
399
|
}
|
|
146
400
|
function s(a) {
|
|
147
|
-
return o((
|
|
401
|
+
return o((h) => !!h, a);
|
|
148
402
|
}
|
|
149
403
|
function l(a) {
|
|
150
404
|
return t(null, a);
|
|
@@ -152,27 +406,27 @@ function Xe(n, e = !1) {
|
|
|
152
406
|
function i(a) {
|
|
153
407
|
return t(void 0, a);
|
|
154
408
|
}
|
|
155
|
-
function
|
|
409
|
+
function r(a) {
|
|
156
410
|
return o(Number.isNaN, a);
|
|
157
411
|
}
|
|
158
|
-
function c(a,
|
|
159
|
-
return o((
|
|
160
|
-
const
|
|
161
|
-
return
|
|
162
|
-
},
|
|
412
|
+
function c(a, h) {
|
|
413
|
+
return o((y) => {
|
|
414
|
+
const C = Array.from(y);
|
|
415
|
+
return C.includes(a) || C.includes(ee(a));
|
|
416
|
+
}, h);
|
|
163
417
|
}
|
|
164
|
-
function
|
|
165
|
-
return
|
|
418
|
+
function g(a) {
|
|
419
|
+
return f(1, a);
|
|
166
420
|
}
|
|
167
|
-
function
|
|
168
|
-
let
|
|
169
|
-
return o(() => (
|
|
421
|
+
function f(a = 1, h) {
|
|
422
|
+
let y = -1;
|
|
423
|
+
return o(() => (y += 1, y >= a), h);
|
|
170
424
|
}
|
|
171
425
|
return Array.isArray(ee(n)) ? {
|
|
172
426
|
toMatch: o,
|
|
173
427
|
toContains: c,
|
|
174
|
-
changed:
|
|
175
|
-
changedTimes:
|
|
428
|
+
changed: g,
|
|
429
|
+
changedTimes: f,
|
|
176
430
|
get not() {
|
|
177
431
|
return Xe(n, !e);
|
|
178
432
|
}
|
|
@@ -181,19 +435,19 @@ function Xe(n, e = !1) {
|
|
|
181
435
|
toBe: t,
|
|
182
436
|
toBeTruthy: s,
|
|
183
437
|
toBeNull: l,
|
|
184
|
-
toBeNaN:
|
|
438
|
+
toBeNaN: r,
|
|
185
439
|
toBeUndefined: i,
|
|
186
|
-
changed:
|
|
187
|
-
changedTimes:
|
|
440
|
+
changed: g,
|
|
441
|
+
changedTimes: f,
|
|
188
442
|
get not() {
|
|
189
443
|
return Xe(n, !e);
|
|
190
444
|
}
|
|
191
445
|
};
|
|
192
446
|
}
|
|
193
|
-
function
|
|
447
|
+
function Lt(n) {
|
|
194
448
|
return Xe(n);
|
|
195
449
|
}
|
|
196
|
-
function
|
|
450
|
+
function Yn(n, e, o = {}) {
|
|
197
451
|
const {
|
|
198
452
|
immediate: t = !0
|
|
199
453
|
} = o, s = T(!1);
|
|
@@ -201,28 +455,28 @@ function Nn(n, e, o = {}) {
|
|
|
201
455
|
function i() {
|
|
202
456
|
l && (clearTimeout(l), l = null);
|
|
203
457
|
}
|
|
204
|
-
function
|
|
458
|
+
function r() {
|
|
205
459
|
s.value = !1, i();
|
|
206
460
|
}
|
|
207
|
-
function c(...
|
|
461
|
+
function c(...g) {
|
|
208
462
|
i(), s.value = !0, l = setTimeout(() => {
|
|
209
|
-
s.value = !1, l = null, n(...
|
|
463
|
+
s.value = !1, l = null, n(...g);
|
|
210
464
|
}, ee(e));
|
|
211
465
|
}
|
|
212
|
-
return t && (s.value = !0,
|
|
466
|
+
return t && (s.value = !0, ut && c()), rt(r), {
|
|
213
467
|
isPending: Yt(s),
|
|
214
468
|
start: c,
|
|
215
|
-
stop:
|
|
469
|
+
stop: r
|
|
216
470
|
};
|
|
217
471
|
}
|
|
218
|
-
function
|
|
472
|
+
function Xn(n = !1, e = {}) {
|
|
219
473
|
const {
|
|
220
474
|
truthyValue: o = !0,
|
|
221
475
|
falsyValue: t = !1
|
|
222
476
|
} = e, s = Ge(n), l = T(n);
|
|
223
|
-
function i(
|
|
477
|
+
function i(r) {
|
|
224
478
|
if (arguments.length)
|
|
225
|
-
return l.value =
|
|
479
|
+
return l.value = r, l.value;
|
|
226
480
|
{
|
|
227
481
|
const c = ee(o);
|
|
228
482
|
return l.value = l.value === c ? ee(t) : c, l.value;
|
|
@@ -230,70 +484,70 @@ function Rn(n = !1, e = {}) {
|
|
|
230
484
|
}
|
|
231
485
|
return s ? i : [l, i];
|
|
232
486
|
}
|
|
233
|
-
function
|
|
487
|
+
function Qn(n, e, o = {}) {
|
|
234
488
|
const {
|
|
235
489
|
debounce: t = 0,
|
|
236
490
|
maxWait: s = void 0,
|
|
237
491
|
...l
|
|
238
492
|
} = o;
|
|
239
|
-
return
|
|
493
|
+
return qn(
|
|
240
494
|
n,
|
|
241
495
|
e,
|
|
242
496
|
{
|
|
243
497
|
...l,
|
|
244
|
-
eventFilter:
|
|
498
|
+
eventFilter: Gn(t, { maxWait: s })
|
|
245
499
|
}
|
|
246
500
|
);
|
|
247
501
|
}
|
|
502
|
+
const Ke = ut ? window : void 0, Ot = ut ? window.navigator : void 0;
|
|
248
503
|
function xe(n) {
|
|
249
504
|
var e;
|
|
250
505
|
const o = ee(n);
|
|
251
506
|
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
252
507
|
}
|
|
253
|
-
const Ke = lt ? window : void 0, Rt = lt ? window.navigator : void 0;
|
|
254
508
|
function he(...n) {
|
|
255
509
|
let e, o, t, s;
|
|
256
510
|
if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, t, s] = n, e = Ke) : [e, o, t, s] = n, !e)
|
|
257
511
|
return Fe;
|
|
258
512
|
Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
|
|
259
513
|
const l = [], i = () => {
|
|
260
|
-
l.forEach((
|
|
261
|
-
},
|
|
514
|
+
l.forEach((f) => f()), l.length = 0;
|
|
515
|
+
}, r = (f, a, h, y) => (f.addEventListener(a, h, y), () => f.removeEventListener(a, h, y)), c = X(
|
|
262
516
|
() => [xe(e), ee(s)],
|
|
263
|
-
([
|
|
264
|
-
if (i(), !
|
|
517
|
+
([f, a]) => {
|
|
518
|
+
if (i(), !f)
|
|
265
519
|
return;
|
|
266
|
-
const
|
|
520
|
+
const h = Bn(a) ? { ...a } : a;
|
|
267
521
|
l.push(
|
|
268
|
-
...o.flatMap((
|
|
522
|
+
...o.flatMap((y) => t.map((C) => r(f, y, C, h)))
|
|
269
523
|
);
|
|
270
524
|
},
|
|
271
525
|
{ immediate: !0, flush: "post" }
|
|
272
|
-
),
|
|
526
|
+
), g = () => {
|
|
273
527
|
c(), i();
|
|
274
528
|
};
|
|
275
|
-
return
|
|
529
|
+
return rt(g), g;
|
|
276
530
|
}
|
|
277
|
-
function
|
|
278
|
-
const n = T(!1), e =
|
|
531
|
+
function eo() {
|
|
532
|
+
const n = T(!1), e = tt();
|
|
279
533
|
return e && St(() => {
|
|
280
534
|
n.value = !0;
|
|
281
535
|
}, e), n;
|
|
282
536
|
}
|
|
283
|
-
function
|
|
284
|
-
const e =
|
|
537
|
+
function ct(n) {
|
|
538
|
+
const e = eo();
|
|
285
539
|
return V(() => (e.value, !!n()));
|
|
286
540
|
}
|
|
287
|
-
function
|
|
541
|
+
function It(n, e = {}) {
|
|
288
542
|
const {
|
|
289
543
|
controls: o = !1,
|
|
290
|
-
navigator: t =
|
|
291
|
-
} = e, s =
|
|
292
|
-
var
|
|
293
|
-
|
|
544
|
+
navigator: t = Ot
|
|
545
|
+
} = e, s = ct(() => t && "permissions" in t), l = mt(), i = typeof n == "string" ? { name: n } : n, r = mt(), c = () => {
|
|
546
|
+
var f, a;
|
|
547
|
+
r.value = (a = (f = l.value) == null ? void 0 : f.state) != null ? a : "prompt";
|
|
294
548
|
};
|
|
295
549
|
he(l, "change", c);
|
|
296
|
-
const
|
|
550
|
+
const g = Kn(async () => {
|
|
297
551
|
if (s.value) {
|
|
298
552
|
if (!l.value)
|
|
299
553
|
try {
|
|
@@ -307,118 +561,118 @@ function wt(n, e = {}) {
|
|
|
307
561
|
return Tt(l.value);
|
|
308
562
|
}
|
|
309
563
|
});
|
|
310
|
-
return
|
|
311
|
-
state:
|
|
564
|
+
return g(), o ? {
|
|
565
|
+
state: r,
|
|
312
566
|
isSupported: s,
|
|
313
|
-
query:
|
|
314
|
-
} :
|
|
567
|
+
query: g
|
|
568
|
+
} : r;
|
|
315
569
|
}
|
|
316
|
-
function
|
|
570
|
+
function to(n = {}) {
|
|
317
571
|
const {
|
|
318
|
-
navigator: e =
|
|
572
|
+
navigator: e = Ot,
|
|
319
573
|
read: o = !1,
|
|
320
574
|
source: t,
|
|
321
575
|
copiedDuring: s = 1500,
|
|
322
576
|
legacy: l = !1
|
|
323
|
-
} = n, i =
|
|
324
|
-
function
|
|
325
|
-
i.value && j(
|
|
326
|
-
|
|
327
|
-
}) :
|
|
577
|
+
} = n, i = ct(() => e && "clipboard" in e), r = It("clipboard-read"), c = It("clipboard-write"), g = V(() => i.value || l), f = T(""), a = T(!1), h = Yn(() => a.value = !1, s);
|
|
578
|
+
function y() {
|
|
579
|
+
i.value && j(r.value) ? e.clipboard.readText().then((L) => {
|
|
580
|
+
f.value = L;
|
|
581
|
+
}) : f.value = w();
|
|
328
582
|
}
|
|
329
|
-
|
|
330
|
-
async function
|
|
331
|
-
|
|
583
|
+
g.value && o && he(["copy", "cut"], y);
|
|
584
|
+
async function C(L = ee(t)) {
|
|
585
|
+
g.value && L != null && (i.value && j(c.value) ? await e.clipboard.writeText(L) : v(L), f.value = L, a.value = !0, h.start());
|
|
332
586
|
}
|
|
333
|
-
function
|
|
587
|
+
function v(L) {
|
|
334
588
|
const A = document.createElement("textarea");
|
|
335
|
-
A.value =
|
|
589
|
+
A.value = L ?? "", A.style.position = "absolute", A.style.opacity = "0", document.body.appendChild(A), A.select(), document.execCommand("copy"), A.remove();
|
|
336
590
|
}
|
|
337
|
-
function
|
|
338
|
-
var
|
|
339
|
-
return (
|
|
591
|
+
function w() {
|
|
592
|
+
var L, A, I;
|
|
593
|
+
return (I = (A = (L = document == null ? void 0 : document.getSelection) == null ? void 0 : L.call(document)) == null ? void 0 : A.toString()) != null ? I : "";
|
|
340
594
|
}
|
|
341
|
-
function j(
|
|
342
|
-
return
|
|
595
|
+
function j(L) {
|
|
596
|
+
return L === "granted" || L === "prompt";
|
|
343
597
|
}
|
|
344
598
|
return {
|
|
345
|
-
isSupported:
|
|
346
|
-
text:
|
|
599
|
+
isSupported: g,
|
|
600
|
+
text: f,
|
|
347
601
|
copied: a,
|
|
348
|
-
copy:
|
|
602
|
+
copy: C
|
|
349
603
|
};
|
|
350
604
|
}
|
|
351
|
-
function
|
|
605
|
+
function no(n) {
|
|
352
606
|
return JSON.parse(JSON.stringify(n));
|
|
353
607
|
}
|
|
354
|
-
function
|
|
608
|
+
function oo(n, e, o = {}) {
|
|
355
609
|
const { window: t = Ke, ...s } = o;
|
|
356
610
|
let l;
|
|
357
|
-
const i =
|
|
611
|
+
const i = ct(() => t && "ResizeObserver" in t), r = () => {
|
|
358
612
|
l && (l.disconnect(), l = void 0);
|
|
359
613
|
}, c = V(() => {
|
|
360
614
|
const a = ee(n);
|
|
361
|
-
return Array.isArray(a) ? a.map((
|
|
362
|
-
}),
|
|
615
|
+
return Array.isArray(a) ? a.map((h) => xe(h)) : [xe(a)];
|
|
616
|
+
}), g = X(
|
|
363
617
|
c,
|
|
364
618
|
(a) => {
|
|
365
|
-
if (
|
|
619
|
+
if (r(), i.value && t) {
|
|
366
620
|
l = new ResizeObserver(e);
|
|
367
|
-
for (const
|
|
368
|
-
|
|
621
|
+
for (const h of a)
|
|
622
|
+
h && l.observe(h, s);
|
|
369
623
|
}
|
|
370
624
|
},
|
|
371
625
|
{ immediate: !0, flush: "post" }
|
|
372
|
-
),
|
|
373
|
-
|
|
626
|
+
), f = () => {
|
|
627
|
+
r(), g();
|
|
374
628
|
};
|
|
375
|
-
return
|
|
629
|
+
return rt(f), {
|
|
376
630
|
isSupported: i,
|
|
377
|
-
stop:
|
|
631
|
+
stop: f
|
|
378
632
|
};
|
|
379
633
|
}
|
|
380
|
-
function
|
|
634
|
+
function lo(n, e = { width: 0, height: 0 }, o = {}) {
|
|
381
635
|
const { window: t = Ke, box: s = "content-box" } = o, l = V(() => {
|
|
382
|
-
var a,
|
|
383
|
-
return (
|
|
384
|
-
}), i = T(e.width),
|
|
636
|
+
var a, h;
|
|
637
|
+
return (h = (a = xe(n)) == null ? void 0 : a.namespaceURI) == null ? void 0 : h.includes("svg");
|
|
638
|
+
}), i = T(e.width), r = T(e.height), { stop: c } = oo(
|
|
385
639
|
n,
|
|
386
640
|
([a]) => {
|
|
387
|
-
const
|
|
641
|
+
const h = s === "border-box" ? a.borderBoxSize : s === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
388
642
|
if (t && l.value) {
|
|
389
|
-
const
|
|
390
|
-
if (
|
|
391
|
-
const
|
|
392
|
-
i.value =
|
|
643
|
+
const y = xe(n);
|
|
644
|
+
if (y) {
|
|
645
|
+
const C = y.getBoundingClientRect();
|
|
646
|
+
i.value = C.width, r.value = C.height;
|
|
393
647
|
}
|
|
394
|
-
} else if (
|
|
395
|
-
const
|
|
396
|
-
i.value =
|
|
648
|
+
} else if (h) {
|
|
649
|
+
const y = Array.isArray(h) ? h : [h];
|
|
650
|
+
i.value = y.reduce((C, { inlineSize: v }) => C + v, 0), r.value = y.reduce((C, { blockSize: v }) => C + v, 0);
|
|
397
651
|
} else
|
|
398
|
-
i.value = a.contentRect.width,
|
|
652
|
+
i.value = a.contentRect.width, r.value = a.contentRect.height;
|
|
399
653
|
},
|
|
400
654
|
o
|
|
401
655
|
);
|
|
402
|
-
|
|
656
|
+
Jn(() => {
|
|
403
657
|
const a = xe(n);
|
|
404
|
-
a && (i.value = "offsetWidth" in a ? a.offsetWidth : e.width,
|
|
658
|
+
a && (i.value = "offsetWidth" in a ? a.offsetWidth : e.width, r.value = "offsetHeight" in a ? a.offsetHeight : e.height);
|
|
405
659
|
});
|
|
406
|
-
const
|
|
660
|
+
const g = X(
|
|
407
661
|
() => xe(n),
|
|
408
662
|
(a) => {
|
|
409
|
-
i.value = a ? e.width : 0,
|
|
663
|
+
i.value = a ? e.width : 0, r.value = a ? e.height : 0;
|
|
410
664
|
}
|
|
411
665
|
);
|
|
412
|
-
function
|
|
413
|
-
c(),
|
|
666
|
+
function f() {
|
|
667
|
+
c(), g();
|
|
414
668
|
}
|
|
415
669
|
return {
|
|
416
670
|
width: i,
|
|
417
|
-
height:
|
|
418
|
-
stop:
|
|
671
|
+
height: r,
|
|
672
|
+
stop: f
|
|
419
673
|
};
|
|
420
674
|
}
|
|
421
|
-
const
|
|
675
|
+
const so = {
|
|
422
676
|
ctrl: "control",
|
|
423
677
|
command: "meta",
|
|
424
678
|
cmd: "meta",
|
|
@@ -428,278 +682,98 @@ const On = {
|
|
|
428
682
|
left: "arrowleft",
|
|
429
683
|
right: "arrowright"
|
|
430
684
|
};
|
|
431
|
-
function
|
|
685
|
+
function ao(n = {}) {
|
|
432
686
|
const {
|
|
433
687
|
reactive: e = !1,
|
|
434
688
|
target: o = Ke,
|
|
435
|
-
aliasMap: t =
|
|
689
|
+
aliasMap: t = so,
|
|
436
690
|
passive: s = !0,
|
|
437
691
|
onEventFired: l = Fe
|
|
438
|
-
} = n, i =
|
|
692
|
+
} = n, i = vt(/* @__PURE__ */ new Set()), r = {
|
|
439
693
|
toJSON() {
|
|
440
694
|
return {};
|
|
441
695
|
},
|
|
442
696
|
current: i
|
|
443
|
-
}, c = e ?
|
|
444
|
-
function a(
|
|
445
|
-
|
|
697
|
+
}, c = e ? vt(r) : r, g = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
|
|
698
|
+
function a(v, w) {
|
|
699
|
+
v in c && (e ? c[v] = w : c[v].value = w);
|
|
446
700
|
}
|
|
447
|
-
function
|
|
701
|
+
function h() {
|
|
448
702
|
i.clear();
|
|
449
|
-
for (const
|
|
450
|
-
a(
|
|
703
|
+
for (const v of f)
|
|
704
|
+
a(v, !1);
|
|
451
705
|
}
|
|
452
|
-
function
|
|
453
|
-
var j,
|
|
454
|
-
const A = (j =
|
|
455
|
-
A && (
|
|
706
|
+
function y(v, w) {
|
|
707
|
+
var j, L;
|
|
708
|
+
const A = (j = v.key) == null ? void 0 : j.toLowerCase(), R = [(L = v.code) == null ? void 0 : L.toLowerCase(), A].filter(Boolean);
|
|
709
|
+
A && (w ? i.add(A) : i.delete(A));
|
|
456
710
|
for (const H of R)
|
|
457
|
-
|
|
458
|
-
A === "meta" && !
|
|
711
|
+
f.add(H), a(H, w);
|
|
712
|
+
A === "meta" && !w ? (g.forEach((H) => {
|
|
459
713
|
i.delete(H), a(H, !1);
|
|
460
|
-
}),
|
|
714
|
+
}), g.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && w && [...i, ...R].forEach((H) => g.add(H));
|
|
461
715
|
}
|
|
462
|
-
he(o, "keydown", (
|
|
463
|
-
const
|
|
716
|
+
he(o, "keydown", (v) => (y(v, !0), l(v)), { passive: s }), he(o, "keyup", (v) => (y(v, !1), l(v)), { passive: s }), he("blur", h, { passive: !0 }), he("focus", h, { passive: !0 });
|
|
717
|
+
const C = new Proxy(
|
|
464
718
|
c,
|
|
465
719
|
{
|
|
466
|
-
get(
|
|
467
|
-
if (typeof
|
|
468
|
-
return Reflect.get(
|
|
469
|
-
if (
|
|
470
|
-
if (/[+_-]/.test(
|
|
471
|
-
const A =
|
|
472
|
-
c[
|
|
720
|
+
get(v, w, j) {
|
|
721
|
+
if (typeof w != "string")
|
|
722
|
+
return Reflect.get(v, w, j);
|
|
723
|
+
if (w = w.toLowerCase(), w in t && (w = t[w]), !(w in c))
|
|
724
|
+
if (/[+_-]/.test(w)) {
|
|
725
|
+
const A = w.split(/[+_-]/g).map((I) => I.trim());
|
|
726
|
+
c[w] = V(() => A.every((I) => ee(C[I])));
|
|
473
727
|
} else
|
|
474
|
-
c[
|
|
475
|
-
const
|
|
476
|
-
return e ? ee(
|
|
728
|
+
c[w] = T(!1);
|
|
729
|
+
const L = Reflect.get(v, w, j);
|
|
730
|
+
return e ? ee(L) : L;
|
|
477
731
|
}
|
|
478
732
|
}
|
|
479
733
|
);
|
|
480
|
-
return
|
|
734
|
+
return C;
|
|
481
735
|
}
|
|
482
|
-
function
|
|
736
|
+
function io(n, e, o, t = {}) {
|
|
483
737
|
var s, l, i;
|
|
484
738
|
const {
|
|
485
|
-
clone:
|
|
739
|
+
clone: r = !1,
|
|
486
740
|
passive: c = !1,
|
|
487
|
-
eventName:
|
|
488
|
-
deep:
|
|
741
|
+
eventName: g,
|
|
742
|
+
deep: f = !1,
|
|
489
743
|
defaultValue: a,
|
|
490
|
-
shouldEmit:
|
|
491
|
-
} = t,
|
|
492
|
-
let
|
|
493
|
-
|
|
494
|
-
const
|
|
495
|
-
|
|
744
|
+
shouldEmit: h
|
|
745
|
+
} = t, y = tt(), C = o || (y == null ? void 0 : y.emit) || ((s = y == null ? void 0 : y.$emit) == null ? void 0 : s.bind(y)) || ((i = (l = y == null ? void 0 : y.proxy) == null ? void 0 : l.$emit) == null ? void 0 : i.bind(y == null ? void 0 : y.proxy));
|
|
746
|
+
let v = g;
|
|
747
|
+
v = v || `update:${e.toString()}`;
|
|
748
|
+
const w = (A) => r ? typeof r == "function" ? r(A) : no(A) : A, j = () => Un(n[e]) ? w(n[e]) : a, L = (A) => {
|
|
749
|
+
h ? h(A) && C(v, A) : C(v, A);
|
|
496
750
|
};
|
|
497
751
|
if (c) {
|
|
498
|
-
const A = j(),
|
|
752
|
+
const A = j(), I = T(A);
|
|
499
753
|
let R = !1;
|
|
500
754
|
return X(
|
|
501
755
|
() => n[e],
|
|
502
756
|
(H) => {
|
|
503
|
-
R || (R = !0,
|
|
757
|
+
R || (R = !0, I.value = w(H), Be(() => R = !1));
|
|
504
758
|
}
|
|
505
759
|
), X(
|
|
506
|
-
|
|
760
|
+
I,
|
|
507
761
|
(H) => {
|
|
508
|
-
!R && (H !== n[e] ||
|
|
762
|
+
!R && (H !== n[e] || f) && L(H);
|
|
509
763
|
},
|
|
510
|
-
{ deep:
|
|
511
|
-
),
|
|
764
|
+
{ deep: f }
|
|
765
|
+
), I;
|
|
512
766
|
} else
|
|
513
767
|
return V({
|
|
514
768
|
get() {
|
|
515
769
|
return j();
|
|
516
770
|
},
|
|
517
771
|
set(A) {
|
|
518
|
-
|
|
772
|
+
L(A);
|
|
519
773
|
}
|
|
520
774
|
});
|
|
521
775
|
}
|
|
522
|
-
function
|
|
523
|
-
return n.toString(16).padStart(6, "0");
|
|
524
|
-
}
|
|
525
|
-
function zn(n, e) {
|
|
526
|
-
const o = new Date(n);
|
|
527
|
-
return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
528
|
-
}
|
|
529
|
-
function Bn(n, e) {
|
|
530
|
-
const o = /* @__PURE__ */ new Map(), t = Dt(n, e.toLowerCase(), o, 0);
|
|
531
|
-
return o.clear(), t;
|
|
532
|
-
}
|
|
533
|
-
const At = 10;
|
|
534
|
-
function Dt(n, e, o, t) {
|
|
535
|
-
if (t > At)
|
|
536
|
-
return !1;
|
|
537
|
-
let s = !1;
|
|
538
|
-
const l = Object.keys(n);
|
|
539
|
-
let i, u;
|
|
540
|
-
for (let c = 0; c < l.length && (i = l[c], u = n[i], s = Pt(e, i, u, o, t + 1), !s); c++)
|
|
541
|
-
;
|
|
542
|
-
return s;
|
|
543
|
-
}
|
|
544
|
-
function Pt(n, e, o, t, s) {
|
|
545
|
-
let l = !1, i;
|
|
546
|
-
return e === "_custom" && (e = o.display, o = o.value), (i = Zn(o)) && (o = i), e && $t(e, n) ? (l = !0, t.set(o, !0)) : t.has(o) ? l = t.get(o) : Array.isArray(o) ? (t.set(o, null), l = Fn(o, n, t, s), t.set(o, l)) : on(o) ? (t.set(o, null), l = Dt(o, n, t, s), t.set(o, l)) : $t(o, n) && (l = !0, t.set(o, !0)), l;
|
|
547
|
-
}
|
|
548
|
-
function $t(n, e) {
|
|
549
|
-
return `${n}`.toLowerCase().includes(e);
|
|
550
|
-
}
|
|
551
|
-
function Zn(n) {
|
|
552
|
-
return n === null ? "null" : n === ln ? "undefined" : n === sn ? "NaN" : n === an ? "Infinity" : n === rn ? "-Infinity" : !1;
|
|
553
|
-
}
|
|
554
|
-
function Fn(n, e, o, t) {
|
|
555
|
-
if (t > At)
|
|
556
|
-
return !1;
|
|
557
|
-
let s = !1, l;
|
|
558
|
-
for (let i = 0; i < n.length && (l = n[i], s = Pt(e, null, l, o, t + 1), !s); i++)
|
|
559
|
-
;
|
|
560
|
-
return s;
|
|
561
|
-
}
|
|
562
|
-
const Mt = /* @__PURE__ */ B({
|
|
563
|
-
__name: "NodeTag",
|
|
564
|
-
props: {
|
|
565
|
-
tag: {}
|
|
566
|
-
},
|
|
567
|
-
setup(n) {
|
|
568
|
-
return (e, o) => J((p(), m("span", {
|
|
569
|
-
style: $e({
|
|
570
|
-
color: `#${d(kt)(e.tag.textColor)}`,
|
|
571
|
-
backgroundColor: `#${d(kt)(e.tag.backgroundColor)}`
|
|
572
|
-
}),
|
|
573
|
-
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
574
|
-
}, [
|
|
575
|
-
ne(le(e.tag.label), 1)
|
|
576
|
-
], 4)), [
|
|
577
|
-
[d(Q), {
|
|
578
|
-
content: e.tag.tooltip,
|
|
579
|
-
html: !0
|
|
580
|
-
}]
|
|
581
|
-
]);
|
|
582
|
-
}
|
|
583
|
-
}), Gn = { class: "p2" }, Kn = ["onClick"], Wn = /* @__PURE__ */ B({
|
|
584
|
-
__name: "SelectiveList",
|
|
585
|
-
props: /* @__PURE__ */ Be({
|
|
586
|
-
data: {}
|
|
587
|
-
}, {
|
|
588
|
-
modelValue: {},
|
|
589
|
-
modelModifiers: {}
|
|
590
|
-
}),
|
|
591
|
-
emits: /* @__PURE__ */ Be(["select"], ["update:modelValue"]),
|
|
592
|
-
setup(n, { emit: e }) {
|
|
593
|
-
const o = e, t = et(n, "modelValue");
|
|
594
|
-
function s(l) {
|
|
595
|
-
t.value = l, o("select", l);
|
|
596
|
-
}
|
|
597
|
-
return (l, i) => (p(), m("ul", Gn, [
|
|
598
|
-
(p(!0), m(te, null, ae(l.data, (u) => (p(), m("li", {
|
|
599
|
-
key: u.id,
|
|
600
|
-
class: ie(["selectable-item", { active: u.id === t.value }]),
|
|
601
|
-
onClick: (c) => s(u.id)
|
|
602
|
-
}, [
|
|
603
|
-
ne(le(u.label) + " ", 1),
|
|
604
|
-
(p(!0), m(te, null, ae(u.tags, (c, C) => (p(), z(Mt, {
|
|
605
|
-
key: C,
|
|
606
|
-
tag: c
|
|
607
|
-
}, null, 8, ["tag"]))), 128))
|
|
608
|
-
], 10, Kn))), 128))
|
|
609
|
-
]));
|
|
610
|
-
}
|
|
611
|
-
}), at = /* @__PURE__ */ B({
|
|
612
|
-
__name: "ToggleExpanded",
|
|
613
|
-
props: {
|
|
614
|
-
value: { type: Boolean }
|
|
615
|
-
},
|
|
616
|
-
setup(n) {
|
|
617
|
-
return (e, o) => (p(), m("i", {
|
|
618
|
-
class: ie(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
|
|
619
|
-
"transform rotate-90": e.value
|
|
620
|
-
}])
|
|
621
|
-
}, null, 2));
|
|
622
|
-
}
|
|
623
|
-
}), Ht = Symbol("StateEditorSymbol");
|
|
624
|
-
function qn(n) {
|
|
625
|
-
const e = T(n);
|
|
626
|
-
return ge(Ht, e), {
|
|
627
|
-
context: e
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
function it() {
|
|
631
|
-
return ve(Ht);
|
|
632
|
-
}
|
|
633
|
-
function Jn() {
|
|
634
|
-
const n = T(""), e = T("string"), o = T(!1), t = it();
|
|
635
|
-
return {
|
|
636
|
-
editingText: n,
|
|
637
|
-
editing: o,
|
|
638
|
-
toggleEditing(s) {
|
|
639
|
-
s && (e.value = s), o.value = !o.value;
|
|
640
|
-
},
|
|
641
|
-
editingType: e,
|
|
642
|
-
nodeId: V(() => t.value.nodeId)
|
|
643
|
-
};
|
|
644
|
-
}
|
|
645
|
-
function Yn(n, e) {
|
|
646
|
-
if (n === "array")
|
|
647
|
-
return e.length;
|
|
648
|
-
const o = "newProp";
|
|
649
|
-
let t = 1;
|
|
650
|
-
for (; ; ) {
|
|
651
|
-
const s = `${o}${t}`;
|
|
652
|
-
if (!e[s])
|
|
653
|
-
return s;
|
|
654
|
-
t++;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
function Xn() {
|
|
658
|
-
const n = T({
|
|
659
|
-
enable: !1,
|
|
660
|
-
key: "",
|
|
661
|
-
value: "undefined"
|
|
662
|
-
});
|
|
663
|
-
function e(t, s) {
|
|
664
|
-
const l = Yn(t, s);
|
|
665
|
-
n.value = {
|
|
666
|
-
enable: !0,
|
|
667
|
-
key: l.toString(),
|
|
668
|
-
value: "undefined"
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
function o() {
|
|
672
|
-
n.value = {
|
|
673
|
-
enable: !1,
|
|
674
|
-
key: "",
|
|
675
|
-
value: "undefined"
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
return {
|
|
679
|
-
addNewProp: e,
|
|
680
|
-
resetDrafting: o,
|
|
681
|
-
draftingNewProp: n
|
|
682
|
-
};
|
|
683
|
-
}
|
|
684
|
-
const Lt = "expanded-state";
|
|
685
|
-
function me(n = "") {
|
|
686
|
-
const e = T([]);
|
|
687
|
-
return ge(`${Lt}-${n}`, e), {
|
|
688
|
-
expanded: e
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
function rt(n = "") {
|
|
692
|
-
const e = ve(`${Lt}-${n}`, T([]));
|
|
693
|
-
function o(t) {
|
|
694
|
-
const s = e.value.indexOf(t);
|
|
695
|
-
s === -1 ? e.value.push(t) : e.value.splice(s, 1);
|
|
696
|
-
}
|
|
697
|
-
return {
|
|
698
|
-
expanded: e,
|
|
699
|
-
toggleExpanded: o
|
|
700
|
-
};
|
|
701
|
-
}
|
|
702
|
-
function Qn(n, e = {}) {
|
|
776
|
+
function ro(n, e = {}) {
|
|
703
777
|
const {
|
|
704
778
|
enter: o = () => {
|
|
705
779
|
},
|
|
@@ -715,7 +789,7 @@ function Qn(n, e = {}) {
|
|
|
715
789
|
isHovering: l
|
|
716
790
|
};
|
|
717
791
|
}
|
|
718
|
-
const
|
|
792
|
+
const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__PURE__ */ B({
|
|
719
793
|
__name: "StateFieldEditor",
|
|
720
794
|
props: {
|
|
721
795
|
data: {},
|
|
@@ -726,13 +800,13 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
726
800
|
},
|
|
727
801
|
emits: ["enableEditInput", "addNewProp"],
|
|
728
802
|
setup(n) {
|
|
729
|
-
const e = n, o =
|
|
803
|
+
const e = n, o = at(), { copy: t, isSupported: s } = to(), l = T(!1), i = V(() => Et(e.data.value)), r = V(() => i.value.value), c = V(() => i.value.customType), g = V(() => r.value === null ? "null" : typeof r.value), f = {
|
|
730
804
|
flat: !0,
|
|
731
805
|
size: "mini"
|
|
732
806
|
}, a = V(() => ({
|
|
733
807
|
"opacity-0": !e.hovering
|
|
734
808
|
}));
|
|
735
|
-
async function
|
|
809
|
+
async function h(C, v = !1) {
|
|
736
810
|
await D.value.editInspectorState({
|
|
737
811
|
path: e.data.path || [e.data.key],
|
|
738
812
|
inspectorId: o.value.inspectorId,
|
|
@@ -740,22 +814,22 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
740
814
|
nodeId: o.value.nodeId,
|
|
741
815
|
state: {
|
|
742
816
|
newKey: null,
|
|
743
|
-
value: Tt(
|
|
744
|
-
type:
|
|
745
|
-
remove:
|
|
817
|
+
value: Tt(C),
|
|
818
|
+
type: g.value,
|
|
819
|
+
remove: v
|
|
746
820
|
}
|
|
747
821
|
}), await D.value.sendInspectorState(o.value.inspectorId);
|
|
748
822
|
}
|
|
749
|
-
function
|
|
750
|
-
const
|
|
751
|
-
|
|
823
|
+
function y(C, v) {
|
|
824
|
+
const w = typeof C == "number" ? C + v : BigInt(C) + BigInt(v);
|
|
825
|
+
h(w);
|
|
752
826
|
}
|
|
753
|
-
return (
|
|
754
|
-
!e.disableEdit &&
|
|
755
|
-
|
|
756
|
-
J((p(), z(d(de), ke(
|
|
827
|
+
return (C, v) => (p(), m("div", uo, [
|
|
828
|
+
!e.disableEdit && C.data.editable ? (p(), m(te, { key: 0 }, [
|
|
829
|
+
g.value === "string" || g.value === "number" || g.value === "object" || g.value === "null" ? (p(), m(te, { key: 0 }, [
|
|
830
|
+
J((p(), z(d(de), ke(f, {
|
|
757
831
|
class: a.value,
|
|
758
|
-
onClick:
|
|
832
|
+
onClick: v[0] || (v[0] = fe((w) => C.$emit("enableEditInput", g.value), ["stop"]))
|
|
759
833
|
}), {
|
|
760
834
|
icon: M(() => [
|
|
761
835
|
x(d(oe), { icon: "i-material-symbols-edit-rounded" })
|
|
@@ -766,9 +840,9 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
766
840
|
content: "Edit value"
|
|
767
841
|
}]
|
|
768
842
|
]),
|
|
769
|
-
|
|
843
|
+
g.value === "object" && C.showAddIfNeeded ? J((p(), z(d(de), ke({ key: 0 }, f, {
|
|
770
844
|
class: a.value,
|
|
771
|
-
onClick:
|
|
845
|
+
onClick: v[1] || (v[1] = fe((w) => C.$emit("addNewProp", Array.isArray(r.value) ? "array" : "object"), ["stop"]))
|
|
772
846
|
}), {
|
|
773
847
|
icon: M(() => [
|
|
774
848
|
x(d(oe), { icon: "i-material-symbols-add-circle-rounded" })
|
|
@@ -780,29 +854,29 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
780
854
|
}]
|
|
781
855
|
]) : U("", !0)
|
|
782
856
|
], 64)) : U("", !0),
|
|
783
|
-
|
|
857
|
+
g.value === "boolean" ? (p(), z(d(de), ke({ key: 1 }, f, {
|
|
784
858
|
class: a.value,
|
|
785
|
-
onClick:
|
|
859
|
+
onClick: v[2] || (v[2] = (w) => h(!r.value))
|
|
786
860
|
}), {
|
|
787
861
|
icon: M(() => [
|
|
788
862
|
x(d(oe), {
|
|
789
|
-
icon:
|
|
863
|
+
icon: r.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
790
864
|
}, null, 8, ["icon"])
|
|
791
865
|
]),
|
|
792
866
|
_: 1
|
|
793
|
-
}, 16, ["class"])) :
|
|
794
|
-
x(d(de), ke(
|
|
867
|
+
}, 16, ["class"])) : g.value === "number" || c.value === "bigint" ? (p(), m(te, { key: 2 }, [
|
|
868
|
+
x(d(de), ke(f, {
|
|
795
869
|
class: a.value,
|
|
796
|
-
onClick:
|
|
870
|
+
onClick: v[3] || (v[3] = fe((w) => y(r.value, 1), ["stop"]))
|
|
797
871
|
}), {
|
|
798
872
|
icon: M(() => [
|
|
799
873
|
x(d(oe), { icon: "i-carbon-add" })
|
|
800
874
|
]),
|
|
801
875
|
_: 1
|
|
802
876
|
}, 16, ["class"]),
|
|
803
|
-
x(d(de), ke(
|
|
877
|
+
x(d(de), ke(f, {
|
|
804
878
|
class: a.value,
|
|
805
|
-
onClick:
|
|
879
|
+
onClick: v[4] || (v[4] = fe((w) => y(r.value, -1), ["stop"]))
|
|
806
880
|
}), {
|
|
807
881
|
icon: M(() => [
|
|
808
882
|
x(d(oe), { icon: "i-carbon-subtract" })
|
|
@@ -811,43 +885,43 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
811
885
|
}, 16, ["class"])
|
|
812
886
|
], 64)) : U("", !0)
|
|
813
887
|
], 64)) : U("", !0),
|
|
814
|
-
!e.disableEdit &&
|
|
888
|
+
!e.disableEdit && C.depth > 0 && C.data.editable ? (p(), z(d(de), ke({ key: 1 }, f, {
|
|
815
889
|
class: a.value,
|
|
816
|
-
onClick:
|
|
890
|
+
onClick: v[5] || (v[5] = fe((w) => h(r.value, !0), ["stop"]))
|
|
817
891
|
}), {
|
|
818
892
|
icon: M(() => [
|
|
819
893
|
x(d(oe), { icon: "i-material-symbols-delete-rounded" })
|
|
820
894
|
]),
|
|
821
895
|
_: 1
|
|
822
896
|
}, 16, ["class"])) : U("", !0),
|
|
823
|
-
x(d(
|
|
897
|
+
x(d(nn), {
|
|
824
898
|
class: ie({
|
|
825
|
-
"opacity-0": !
|
|
899
|
+
"opacity-0": !C.hovering && !l.value
|
|
826
900
|
}),
|
|
827
901
|
"button-props": {
|
|
828
902
|
flat: !0,
|
|
829
903
|
size: "mini"
|
|
830
904
|
},
|
|
831
905
|
disabled: !d(s),
|
|
832
|
-
"onUpdate:visible":
|
|
906
|
+
"onUpdate:visible": v[8] || (v[8] = (w) => l.value = w)
|
|
833
907
|
}, {
|
|
834
908
|
popper: M(() => [
|
|
835
|
-
|
|
836
|
-
x(d(
|
|
837
|
-
onClick:
|
|
909
|
+
u("div", co, [
|
|
910
|
+
x(d(ht), {
|
|
911
|
+
onClick: v[6] || (v[6] = (w) => d(t)(typeof r.value == "object" ? JSON.stringify(r.value) : r.value.toString()))
|
|
838
912
|
}, {
|
|
839
913
|
icon: M(() => [
|
|
840
914
|
x(d(oe), {
|
|
841
915
|
icon: "i-material-symbols-copy-all-rounded",
|
|
842
916
|
class: "mt4px"
|
|
843
917
|
}),
|
|
844
|
-
|
|
918
|
+
v[9] || (v[9] = ne(" Copy Value "))
|
|
845
919
|
]),
|
|
846
920
|
_: 1
|
|
847
921
|
}),
|
|
848
|
-
x(d(
|
|
849
|
-
onClick:
|
|
850
|
-
d(t)(
|
|
922
|
+
x(d(ht), {
|
|
923
|
+
onClick: v[7] || (v[7] = () => {
|
|
924
|
+
d(t)(C.data.key);
|
|
851
925
|
})
|
|
852
926
|
}, {
|
|
853
927
|
icon: M(() => [
|
|
@@ -855,7 +929,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
855
929
|
icon: "i-material-symbols-copy-all-rounded",
|
|
856
930
|
class: "mt4px"
|
|
857
931
|
}),
|
|
858
|
-
|
|
932
|
+
v[10] || (v[10] = ne(" Copy Path "))
|
|
859
933
|
]),
|
|
860
934
|
_: 1
|
|
861
935
|
})
|
|
@@ -868,7 +942,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
868
942
|
}, 8, ["class", "disabled"])
|
|
869
943
|
]));
|
|
870
944
|
}
|
|
871
|
-
}),
|
|
945
|
+
}), fo = { class: "flex-inline items-center gap4px" }, Ye = /* @__PURE__ */ B({
|
|
872
946
|
__name: "StateFieldInputEditor",
|
|
873
947
|
props: {
|
|
874
948
|
modelValue: {},
|
|
@@ -878,11 +952,11 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
878
952
|
},
|
|
879
953
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
880
954
|
setup(n, { emit: e }) {
|
|
881
|
-
const o = n, t = e, s = V(() => o.customType === "date" ? "datetime-local" : ""), { escape: l, enter: i } =
|
|
882
|
-
|
|
955
|
+
const o = n, t = e, s = V(() => o.customType === "date" ? "datetime-local" : ""), { escape: l, enter: i } = ao();
|
|
956
|
+
nt(() => {
|
|
883
957
|
l.value ? t("cancel") : i.value && t("submit");
|
|
884
958
|
});
|
|
885
|
-
const
|
|
959
|
+
const r = io(o, "modelValue", t);
|
|
886
960
|
function c(a) {
|
|
887
961
|
try {
|
|
888
962
|
return Ue(a, o.customType), !0;
|
|
@@ -890,18 +964,18 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
890
964
|
return !1;
|
|
891
965
|
}
|
|
892
966
|
}
|
|
893
|
-
const
|
|
894
|
-
return X(
|
|
895
|
-
|
|
896
|
-
}, 300)), (a,
|
|
967
|
+
const g = T(!1);
|
|
968
|
+
return X(r, gn(() => {
|
|
969
|
+
g.value = !c(r.value);
|
|
970
|
+
}, 300)), (a, h) => (p(), m("span", fo, [
|
|
897
971
|
x(d(Ze), {
|
|
898
|
-
modelValue: d(
|
|
899
|
-
"onUpdate:modelValue":
|
|
972
|
+
modelValue: d(r),
|
|
973
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => Ge(r) ? r.value = y : null),
|
|
900
974
|
type: s.value,
|
|
901
|
-
variant:
|
|
975
|
+
variant: g.value ? "warning" : "normal",
|
|
902
976
|
class: ie(["h25px px4px", a.customType === "date" ? "w240px" : "w120px"]),
|
|
903
977
|
"auto-focus": a.autoFocus,
|
|
904
|
-
onClick:
|
|
978
|
+
onClick: h[1] || (h[1] = fe(() => {
|
|
905
979
|
}, ["stop"]))
|
|
906
980
|
}, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
|
|
907
981
|
a.showActions ? (p(), m(te, { key: 0 }, [
|
|
@@ -909,7 +983,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
909
983
|
size: "mini",
|
|
910
984
|
flat: "",
|
|
911
985
|
class: "p2px!",
|
|
912
|
-
onClick:
|
|
986
|
+
onClick: h[2] || (h[2] = fe((y) => a.$emit("cancel"), ["stop"]))
|
|
913
987
|
}, {
|
|
914
988
|
icon: M(() => [
|
|
915
989
|
x(d(oe), { icon: "i-material-symbols-cancel" })
|
|
@@ -920,7 +994,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
920
994
|
content: "Esc to cancel"
|
|
921
995
|
}]
|
|
922
996
|
]),
|
|
923
|
-
|
|
997
|
+
g.value ? J((p(), z(d(oe), {
|
|
924
998
|
key: 1,
|
|
925
999
|
icon: "i-material-symbols-warning",
|
|
926
1000
|
class: "color-warning-500 dark:color-warning-300"
|
|
@@ -933,7 +1007,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
933
1007
|
size: "mini",
|
|
934
1008
|
flat: "",
|
|
935
1009
|
class: "p2px!",
|
|
936
|
-
onClick:
|
|
1010
|
+
onClick: h[3] || (h[3] = fe((y) => a.$emit("submit"), ["stop"]))
|
|
937
1011
|
}, {
|
|
938
1012
|
icon: M(() => [
|
|
939
1013
|
x(d(oe), { icon: "i-material-symbols-save" })
|
|
@@ -947,18 +1021,18 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
947
1021
|
], 64)) : U("", !0)
|
|
948
1022
|
]));
|
|
949
1023
|
}
|
|
950
|
-
}),
|
|
1024
|
+
}), vo = {
|
|
951
1025
|
key: 1,
|
|
952
1026
|
pl5: ""
|
|
953
|
-
},
|
|
1027
|
+
}, mo = {
|
|
954
1028
|
op70: "",
|
|
955
1029
|
class: "whitespace-nowrap"
|
|
956
|
-
},
|
|
1030
|
+
}, ho = ["innerHTML"], go = { key: 0 }, Co = {
|
|
957
1031
|
"overflow-hidden": "",
|
|
958
1032
|
"text-ellipsis": "",
|
|
959
1033
|
"whitespace-nowrap": "",
|
|
960
1034
|
"state-key": ""
|
|
961
|
-
},
|
|
1035
|
+
}, $t = 30, _o = /* @__PURE__ */ B({
|
|
962
1036
|
__name: "StateFieldViewer",
|
|
963
1037
|
props: {
|
|
964
1038
|
data: {},
|
|
@@ -967,77 +1041,77 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
967
1041
|
expandedStateId: {}
|
|
968
1042
|
},
|
|
969
1043
|
setup(n) {
|
|
970
|
-
const e = n, o = T(
|
|
1044
|
+
const e = n, o = T($t), t = V(() => fn(e.data.value, !1, {
|
|
971
1045
|
customClass: {
|
|
972
1046
|
string: "max-w-120 truncate"
|
|
973
1047
|
}
|
|
974
|
-
})), s = V(() =>
|
|
1048
|
+
})), s = V(() => Ct(e.data.value)), l = V(() => Et(e.data.value)), { expanded: i, toggleExpanded: r } = it(e.expandedStateId ?? ""), c = V(() => {
|
|
975
1049
|
var _;
|
|
976
1050
|
return s.value === "custom" ? `${((_ = e.data.value._custom) == null ? void 0 : _.type) ?? "string"}-custom-state` : "";
|
|
977
|
-
}),
|
|
1051
|
+
}), g = V(() => {
|
|
978
1052
|
const { value: _ } = l.value;
|
|
979
|
-
return
|
|
980
|
-
}),
|
|
1053
|
+
return _t(_) ? _.length : xt(_) ? Object.keys(_).length : 0;
|
|
1054
|
+
}), f = V(() => e.data.path || [e.data.key]), a = V(() => f.value[f.value.length - 1]), h = V(() => {
|
|
981
1055
|
var F, se, re, ce, Ce, _e, He;
|
|
982
|
-
const _ = ["Reactive"], N = ((se = (F = e.data) == null ? void 0 : F._custom) == null ? void 0 : se.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
|
|
1056
|
+
const _ = ["Reactive"], N = ((se = (F = e.data.value) == null ? void 0 : F._custom) == null ? void 0 : se.stateTypeName) || ((re = e.data) == null ? void 0 : re.stateTypeName);
|
|
983
1057
|
if (_.includes(N))
|
|
984
1058
|
return N;
|
|
985
1059
|
if ((Ce = (ce = e.data.value) == null ? void 0 : ce.fields) != null && Ce.abstract)
|
|
986
1060
|
return "";
|
|
987
1061
|
{
|
|
988
|
-
const Le = (He = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : He.type, Oe = s.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, je = s.value === "custom" && Le === "ref" ?
|
|
1062
|
+
const Le = (He = (_e = e.data.value) == null ? void 0 : _e._custom) == null ? void 0 : He.type, Oe = s.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, je = s.value === "custom" && Le === "ref" ? Ct(Oe) : s.value, We = s.value === "string" ? "select-text" : "", Ee = `<span title="${s.value === "string" ? e.data.value : ""}" class="${je}-state-type flex whitespace-nowrap ${We}">${Oe}</span>`;
|
|
989
1063
|
return N ? `${Ee} <span class="text-gray-500">(${N})</span>` : Ee;
|
|
990
1064
|
}
|
|
991
|
-
}),
|
|
1065
|
+
}), y = V(() => {
|
|
992
1066
|
const { value: _, inherit: N, customType: F } = l.value, se = F === "set";
|
|
993
1067
|
let re = [];
|
|
994
|
-
return
|
|
1068
|
+
return _t(_) ? _.slice(0, o.value).map((Ce, _e) => ({
|
|
995
1069
|
key: _e.toString(),
|
|
996
|
-
path: [...
|
|
1070
|
+
path: [...f.value, _e.toString()],
|
|
997
1071
|
value: Ce,
|
|
998
1072
|
...N,
|
|
999
1073
|
editable: e.data.editable && !se,
|
|
1000
1074
|
creating: !1
|
|
1001
|
-
})) : (
|
|
1075
|
+
})) : (xt(_) && (re = Object.keys(_).slice(0, o.value).map((ce) => ({
|
|
1002
1076
|
key: ce,
|
|
1003
|
-
path: [...
|
|
1077
|
+
path: [...f.value, ce],
|
|
1004
1078
|
value: _[ce],
|
|
1005
1079
|
...N,
|
|
1006
1080
|
editable: e.data.editable && !se,
|
|
1007
1081
|
creating: !1
|
|
1008
1082
|
})), s.value !== "custom" && (re = Vt(re))), re === e.data.value ? [] : re);
|
|
1009
|
-
}),
|
|
1083
|
+
}), C = V(() => y.value.length > 0), v = T(), w = at(), { isHovering: j } = ro(() => v.value), { editingType: L, editing: A, editingText: I, toggleEditing: R, nodeId: H } = Ln();
|
|
1010
1084
|
X(() => A.value, (_) => {
|
|
1011
1085
|
if (_) {
|
|
1012
1086
|
const { value: N } = l.value;
|
|
1013
|
-
|
|
1087
|
+
I.value = vn(N, l.value.customType);
|
|
1014
1088
|
} else
|
|
1015
|
-
|
|
1089
|
+
I.value = "";
|
|
1016
1090
|
});
|
|
1017
1091
|
async function K() {
|
|
1018
1092
|
const _ = e.data;
|
|
1019
1093
|
await D.value.editInspectorState({
|
|
1020
|
-
path:
|
|
1021
|
-
inspectorId:
|
|
1094
|
+
path: f.value,
|
|
1095
|
+
inspectorId: w.value.inspectorId,
|
|
1022
1096
|
type: _.stateType,
|
|
1023
1097
|
nodeId: H.value,
|
|
1024
1098
|
state: {
|
|
1025
1099
|
newKey: null,
|
|
1026
|
-
type:
|
|
1027
|
-
value: Ue(
|
|
1100
|
+
type: L.value,
|
|
1101
|
+
value: Ue(I.value, l.value.customType)
|
|
1028
1102
|
}
|
|
1029
|
-
}), await D.value.sendInspectorState(
|
|
1103
|
+
}), await D.value.sendInspectorState(w.value.inspectorId), R();
|
|
1030
1104
|
}
|
|
1031
|
-
const { addNewProp: Z, draftingNewProp: E, resetDrafting: P } =
|
|
1032
|
-
function
|
|
1105
|
+
const { addNewProp: Z, draftingNewProp: E, resetDrafting: P } = jn();
|
|
1106
|
+
function k(_) {
|
|
1033
1107
|
const N = `${e.depth}-${e.index}`;
|
|
1034
|
-
i.value.includes(N) ||
|
|
1108
|
+
i.value.includes(N) || r(N), Z(_, l.value.value);
|
|
1035
1109
|
}
|
|
1036
1110
|
async function $() {
|
|
1037
1111
|
const _ = e.data;
|
|
1038
1112
|
await D.value.editInspectorState({
|
|
1039
|
-
path: [...
|
|
1040
|
-
inspectorId:
|
|
1113
|
+
path: [...f.value, E.value.key],
|
|
1114
|
+
inspectorId: w.value.inspectorId,
|
|
1041
1115
|
type: _.stateType,
|
|
1042
1116
|
nodeId: H.value,
|
|
1043
1117
|
state: {
|
|
@@ -1045,60 +1119,60 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
1045
1119
|
type: typeof Ue(E.value.value),
|
|
1046
1120
|
value: Ue(E.value.value)
|
|
1047
1121
|
}
|
|
1048
|
-
}), await D.value.sendInspectorState(
|
|
1122
|
+
}), await D.value.sendInspectorState(w.value.inspectorId), P();
|
|
1049
1123
|
}
|
|
1050
1124
|
return (_, N) => (p(), m("div", null, [
|
|
1051
|
-
|
|
1125
|
+
u("div", {
|
|
1052
1126
|
ref_key: "containerRef",
|
|
1053
|
-
ref:
|
|
1054
|
-
class: ie(["font-state-field flex items-center text-3.5", [
|
|
1055
|
-
style:
|
|
1056
|
-
onClick: N[1] || (N[1] = (F) => d(
|
|
1127
|
+
ref: v,
|
|
1128
|
+
class: ie(["font-state-field flex items-center text-3.5", [C.value && "cursor-pointer hover:bg-active"]]),
|
|
1129
|
+
style: Ie({ paddingLeft: `${_.depth * 15 + 4}px` }),
|
|
1130
|
+
onClick: N[1] || (N[1] = (F) => d(r)(`${_.depth}-${_.index}`))
|
|
1057
1131
|
}, [
|
|
1058
|
-
|
|
1132
|
+
C.value ? (p(), z(st, {
|
|
1059
1133
|
key: 0,
|
|
1060
1134
|
value: d(i).includes(`${_.depth}-${_.index}`)
|
|
1061
|
-
}, null, 8, ["value"])) : (p(), m("span",
|
|
1062
|
-
|
|
1063
|
-
N[5] || (N[5] =
|
|
1135
|
+
}, null, 8, ["value"])) : (p(), m("span", vo)),
|
|
1136
|
+
u("span", mo, le(a.value), 1),
|
|
1137
|
+
N[5] || (N[5] = u("span", { mx1: "" }, ":", -1)),
|
|
1064
1138
|
d(A) ? (p(), z(Ye, {
|
|
1065
1139
|
key: 2,
|
|
1066
|
-
modelValue: d(
|
|
1067
|
-
"onUpdate:modelValue": N[0] || (N[0] = (F) => Ge(
|
|
1140
|
+
modelValue: d(I),
|
|
1141
|
+
"onUpdate:modelValue": N[0] || (N[0] = (F) => Ge(I) ? I.value = F : null),
|
|
1068
1142
|
class: "mr-1",
|
|
1069
1143
|
"custom-type": l.value.customType,
|
|
1070
1144
|
onCancel: d(R),
|
|
1071
1145
|
onSubmit: K
|
|
1072
1146
|
}, null, 8, ["modelValue", "custom-type", "onCancel"])) : U("", !0),
|
|
1073
|
-
|
|
1147
|
+
u("span", {
|
|
1074
1148
|
class: ie([c.value, "flex whitespace-nowrap"])
|
|
1075
1149
|
}, [
|
|
1076
|
-
|
|
1150
|
+
u("span", {
|
|
1077
1151
|
class: "flex",
|
|
1078
|
-
innerHTML:
|
|
1079
|
-
}, null, 8,
|
|
1152
|
+
innerHTML: h.value
|
|
1153
|
+
}, null, 8, ho)
|
|
1080
1154
|
], 2),
|
|
1081
|
-
x(
|
|
1155
|
+
x(po, {
|
|
1082
1156
|
hovering: d(j),
|
|
1083
|
-
"disable-edit": d(
|
|
1157
|
+
"disable-edit": d(w).disableEdit || d(A),
|
|
1084
1158
|
data: _.data,
|
|
1085
1159
|
depth: _.depth,
|
|
1086
1160
|
onEnableEditInput: d(R),
|
|
1087
|
-
onAddNewProp:
|
|
1161
|
+
onAddNewProp: k
|
|
1088
1162
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
1089
1163
|
], 6),
|
|
1090
|
-
|
|
1091
|
-
x(
|
|
1092
|
-
data:
|
|
1164
|
+
C.value && d(i).includes(`${_.depth}-${_.index}`) ? (p(), m("div", go, [
|
|
1165
|
+
x(jt, {
|
|
1166
|
+
data: y.value,
|
|
1093
1167
|
depth: _.depth,
|
|
1094
1168
|
index: _.index
|
|
1095
1169
|
}, null, 8, ["data", "depth", "index"]),
|
|
1096
|
-
|
|
1170
|
+
g.value > o.value ? J((p(), z(d(de), {
|
|
1097
1171
|
key: 0,
|
|
1098
1172
|
flat: "",
|
|
1099
1173
|
size: "mini",
|
|
1100
1174
|
class: "ml-4",
|
|
1101
|
-
onClick: N[2] || (N[2] = (F) => o.value +=
|
|
1175
|
+
onClick: N[2] || (N[2] = (F) => o.value += $t)
|
|
1102
1176
|
}, {
|
|
1103
1177
|
icon: M(() => [
|
|
1104
1178
|
x(d(oe), { icon: "i-material-symbols-more-horiz" })
|
|
@@ -1109,16 +1183,16 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
1109
1183
|
]) : U("", !0),
|
|
1110
1184
|
d(E).enable ? (p(), m("div", {
|
|
1111
1185
|
key: 1,
|
|
1112
|
-
style:
|
|
1186
|
+
style: Ie({ paddingLeft: `${(_.depth + 1) * 15 + 4}px` })
|
|
1113
1187
|
}, [
|
|
1114
|
-
|
|
1188
|
+
u("span", Co, [
|
|
1115
1189
|
x(Ye, {
|
|
1116
1190
|
modelValue: d(E).key,
|
|
1117
1191
|
"onUpdate:modelValue": N[3] || (N[3] = (F) => d(E).key = F),
|
|
1118
1192
|
"show-actions": !1
|
|
1119
1193
|
}, null, 8, ["modelValue"])
|
|
1120
1194
|
]),
|
|
1121
|
-
N[6] || (N[6] =
|
|
1195
|
+
N[6] || (N[6] = u("span", { "mx-1": "" }, ":", -1)),
|
|
1122
1196
|
x(Ye, {
|
|
1123
1197
|
modelValue: d(E).value,
|
|
1124
1198
|
"onUpdate:modelValue": N[4] || (N[4] = (F) => d(E).value = F),
|
|
@@ -1130,12 +1204,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
1130
1204
|
])) : U("", !0)
|
|
1131
1205
|
]));
|
|
1132
1206
|
}
|
|
1133
|
-
}),
|
|
1134
|
-
const o = n.__vccOpts || n;
|
|
1135
|
-
for (const [t, s] of e)
|
|
1136
|
-
o[t] = s;
|
|
1137
|
-
return o;
|
|
1138
|
-
}, co = /* @__PURE__ */ be(uo, [["__scopeId", "data-v-593842a0"]]), Ot = /* @__PURE__ */ B({
|
|
1207
|
+
}), xo = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-18a10784"]]), jt = /* @__PURE__ */ B({
|
|
1139
1208
|
__name: "ChildStateViewer",
|
|
1140
1209
|
props: {
|
|
1141
1210
|
data: {},
|
|
@@ -1146,7 +1215,7 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
1146
1215
|
setup(n) {
|
|
1147
1216
|
return (e, o) => (p(), m("div", null, [
|
|
1148
1217
|
(p(!0), m(te, null, ae(e.data, (t, s) => (p(), m("div", { key: s }, [
|
|
1149
|
-
x(
|
|
1218
|
+
x(xo, {
|
|
1150
1219
|
data: t,
|
|
1151
1220
|
depth: e.depth + 1,
|
|
1152
1221
|
index: `${e.index}-${s}`,
|
|
@@ -1155,66 +1224,287 @@ const eo = { class: "flex pl5px" }, to = { class: "w160px py5px" }, no = /* @__P
|
|
|
1155
1224
|
]))), 128))
|
|
1156
1225
|
]));
|
|
1157
1226
|
}
|
|
1158
|
-
}),
|
|
1159
|
-
key: 1,
|
|
1160
|
-
pl5: ""
|
|
1161
|
-
},
|
|
1162
|
-
"font-state-field": "",
|
|
1163
|
-
"text-3.5": ""
|
|
1164
|
-
},
|
|
1165
|
-
__name: "RootStateViewer",
|
|
1166
|
-
props: {
|
|
1167
|
-
data: {},
|
|
1168
|
-
nodeId: {},
|
|
1169
|
-
inspectorId: {},
|
|
1170
|
-
disableEdit: { type: Boolean, default: !1 },
|
|
1171
|
-
expandedStateId: { default: "" }
|
|
1172
|
-
},
|
|
1173
|
-
setup(n) {
|
|
1174
|
-
const e = n;
|
|
1175
|
-
function o() {
|
|
1176
|
-
return {
|
|
1177
|
-
nodeId: e.nodeId,
|
|
1178
|
-
inspectorId: e.inspectorId,
|
|
1179
|
-
disableEdit: e.disableEdit
|
|
1180
|
-
};
|
|
1181
|
-
}
|
|
1182
|
-
const { context: t } =
|
|
1183
|
-
|
|
1184
|
-
t.value = o();
|
|
1227
|
+
}), yo = ["onClick"], bo = {
|
|
1228
|
+
key: 1,
|
|
1229
|
+
pl5: ""
|
|
1230
|
+
}, wo = {
|
|
1231
|
+
"font-state-field": "",
|
|
1232
|
+
"text-3.5": ""
|
|
1233
|
+
}, ko = { key: 0 }, Pe = /* @__PURE__ */ B({
|
|
1234
|
+
__name: "RootStateViewer",
|
|
1235
|
+
props: {
|
|
1236
|
+
data: {},
|
|
1237
|
+
nodeId: {},
|
|
1238
|
+
inspectorId: {},
|
|
1239
|
+
disableEdit: { type: Boolean, default: !1 },
|
|
1240
|
+
expandedStateId: { default: "" }
|
|
1241
|
+
},
|
|
1242
|
+
setup(n) {
|
|
1243
|
+
const e = n;
|
|
1244
|
+
function o() {
|
|
1245
|
+
return {
|
|
1246
|
+
nodeId: e.nodeId,
|
|
1247
|
+
inspectorId: e.inspectorId,
|
|
1248
|
+
disableEdit: e.disableEdit
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
const { context: t } = Hn(o());
|
|
1252
|
+
nt(() => {
|
|
1253
|
+
t.value = o();
|
|
1254
|
+
});
|
|
1255
|
+
const { expanded: s, toggleExpanded: l } = it(e.expandedStateId);
|
|
1256
|
+
return (i, r) => (p(), m("div", null, [
|
|
1257
|
+
(p(!0), m(te, null, ae(i.data, (c, g, f) => (p(), m("div", { key: f }, [
|
|
1258
|
+
u("div", {
|
|
1259
|
+
class: ie(["flex items-center", [(c == null ? void 0 : c.length) && "cursor-pointer hover:bg-active"]]),
|
|
1260
|
+
onClick: (a) => d(l)(`${f}`)
|
|
1261
|
+
}, [
|
|
1262
|
+
c != null && c.length ? (p(), z(st, {
|
|
1263
|
+
key: 0,
|
|
1264
|
+
value: d(s).includes(`${f}`)
|
|
1265
|
+
}, null, 8, ["value"])) : (p(), m("span", bo)),
|
|
1266
|
+
u("span", wo, le(g), 1)
|
|
1267
|
+
], 10, yo),
|
|
1268
|
+
c != null && c.length && d(s).includes(`${f}`) ? (p(), m("div", ko, [
|
|
1269
|
+
x(jt, {
|
|
1270
|
+
data: c,
|
|
1271
|
+
index: `${f}`,
|
|
1272
|
+
"expanded-state-id": i.expandedStateId
|
|
1273
|
+
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1274
|
+
])) : U("", !0)
|
|
1275
|
+
]))), 128))
|
|
1276
|
+
]));
|
|
1277
|
+
}
|
|
1278
|
+
}), Io = { class: "p3" }, $o = ["onClick"], So = {
|
|
1279
|
+
key: 0,
|
|
1280
|
+
class: "absolute left-5px top-4.5 h10 w0 border-l-2",
|
|
1281
|
+
border: "solid gray2"
|
|
1282
|
+
}, To = { class: "h-full flex items-center truncate pl5" }, Eo = {
|
|
1283
|
+
absolute: "",
|
|
1284
|
+
"top-5": "",
|
|
1285
|
+
pr2: "",
|
|
1286
|
+
"text-3": "",
|
|
1287
|
+
op40: ""
|
|
1288
|
+
}, Vo = {
|
|
1289
|
+
pl2: "",
|
|
1290
|
+
op30: ""
|
|
1291
|
+
}, No = /* @__PURE__ */ B({
|
|
1292
|
+
__name: "EventList",
|
|
1293
|
+
props: /* @__PURE__ */ ze({
|
|
1294
|
+
data: {}
|
|
1295
|
+
}, {
|
|
1296
|
+
modelValue: {},
|
|
1297
|
+
modelModifiers: {}
|
|
1298
|
+
}),
|
|
1299
|
+
emits: ["update:modelValue"],
|
|
1300
|
+
setup(n) {
|
|
1301
|
+
const e = n, o = Qe(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], s = T(null), l = V(() => {
|
|
1302
|
+
let i = -1, r = 0;
|
|
1303
|
+
return e.data.forEach((c, g) => {
|
|
1304
|
+
(c.groupId !== r || i === -1) && (i = (i + 1) % t.length), r = c.groupId ?? r, c.id = g, c.color = t[i];
|
|
1305
|
+
}), e.data;
|
|
1306
|
+
});
|
|
1307
|
+
return X(() => l.value.length, (i) => {
|
|
1308
|
+
var r;
|
|
1309
|
+
(r = s.value) == null || r.scrollToItem(i - 1);
|
|
1310
|
+
}, { flush: "post" }), (i, r) => (p(), m("div", Io, [
|
|
1311
|
+
x(d(Cn), {
|
|
1312
|
+
ref_key: "scrollerRef",
|
|
1313
|
+
ref: s,
|
|
1314
|
+
items: l.value,
|
|
1315
|
+
"min-item-size": 52,
|
|
1316
|
+
"key-field": "id",
|
|
1317
|
+
"page-mode": "",
|
|
1318
|
+
"item-tag": "li",
|
|
1319
|
+
"list-tag": "ul",
|
|
1320
|
+
buffer: 20
|
|
1321
|
+
}, {
|
|
1322
|
+
default: M(({ item: c }) => [
|
|
1323
|
+
u("div", {
|
|
1324
|
+
class: "relative mb7 h6 cursor-pointer",
|
|
1325
|
+
style: Ie({ color: o.value === c.id ? c.color : "" }),
|
|
1326
|
+
onClick: (g) => o.value = c.id
|
|
1327
|
+
}, [
|
|
1328
|
+
u("span", {
|
|
1329
|
+
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
1330
|
+
style: Ie({ border: `3px solid ${c.color}` })
|
|
1331
|
+
}, null, 4),
|
|
1332
|
+
c.id < i.data.length - 1 ? (p(), m("span", So)) : U("", !0),
|
|
1333
|
+
u("p", To, [
|
|
1334
|
+
u("span", Eo, "[" + le(d(yn)(c.time)) + "]", 1),
|
|
1335
|
+
ne(" " + le(c.title) + " ", 1),
|
|
1336
|
+
u("span", Vo, le(c.subtitle), 1)
|
|
1337
|
+
])
|
|
1338
|
+
], 12, $o)
|
|
1339
|
+
]),
|
|
1340
|
+
_: 1
|
|
1341
|
+
}, 8, ["items"])
|
|
1342
|
+
]));
|
|
1343
|
+
}
|
|
1344
|
+
}), Ro = { class: "h-full flex flex-col" }, Ao = {
|
|
1345
|
+
key: 1,
|
|
1346
|
+
class: "flex-1 overflow-hidden"
|
|
1347
|
+
}, Do = {
|
|
1348
|
+
"h-full": "",
|
|
1349
|
+
"select-none": "",
|
|
1350
|
+
"overflow-scroll": "",
|
|
1351
|
+
class: "no-scrollbar"
|
|
1352
|
+
}, Po = {
|
|
1353
|
+
"h-full": "",
|
|
1354
|
+
"select-none": "",
|
|
1355
|
+
"overflow-scroll": "",
|
|
1356
|
+
class: "no-scrollbar"
|
|
1357
|
+
}, dt = /* @__PURE__ */ B({
|
|
1358
|
+
__name: "index",
|
|
1359
|
+
props: {
|
|
1360
|
+
layerIds: {},
|
|
1361
|
+
docLink: {},
|
|
1362
|
+
githubRepoLink: {},
|
|
1363
|
+
headerVisible: { type: Boolean, default: !0 }
|
|
1364
|
+
},
|
|
1365
|
+
setup(n, { expose: e }) {
|
|
1366
|
+
const o = n, { expanded: t } = me("timeline-state");
|
|
1367
|
+
t.value = ["0", "1"];
|
|
1368
|
+
const s = T([]), l = T(/* @__PURE__ */ new Map()), i = T(0), r = V(() => s.value[i.value] ?? null), c = V(() => {
|
|
1369
|
+
var C;
|
|
1370
|
+
const y = [];
|
|
1371
|
+
for (const v in (C = r.value) == null ? void 0 : C.data)
|
|
1372
|
+
y.push({
|
|
1373
|
+
key: v,
|
|
1374
|
+
type: v,
|
|
1375
|
+
editable: !1,
|
|
1376
|
+
value: r.value.data[v]
|
|
1377
|
+
});
|
|
1378
|
+
return y;
|
|
1379
|
+
}), g = V(() => {
|
|
1380
|
+
var v, w, j;
|
|
1381
|
+
const y = (v = r.value) == null ? void 0 : v.groupId, C = l.value.get(y);
|
|
1382
|
+
if (C) {
|
|
1383
|
+
const L = ((w = C[C.length - 1]) == null ? void 0 : w.time) - (((j = C[0]) == null ? void 0 : j.time) ?? 0);
|
|
1384
|
+
return [{
|
|
1385
|
+
key: "events",
|
|
1386
|
+
type: "events",
|
|
1387
|
+
editable: !1,
|
|
1388
|
+
value: C.length
|
|
1389
|
+
}, L && {
|
|
1390
|
+
key: "duration",
|
|
1391
|
+
type: "duration",
|
|
1392
|
+
editable: !1,
|
|
1393
|
+
value: `${L}ms`
|
|
1394
|
+
}].filter(Boolean);
|
|
1395
|
+
}
|
|
1396
|
+
}), f = V(() => ({ "Event Info": c.value, ...g.value && { "Group Info": g.value } }));
|
|
1397
|
+
function a(y) {
|
|
1398
|
+
var v;
|
|
1399
|
+
const C = y.groupId;
|
|
1400
|
+
C !== void 0 && (l.value.set(C, l.value.get(C) ?? []), (v = l.value.get(C)) == null || v.push(y));
|
|
1401
|
+
}
|
|
1402
|
+
function h(y) {
|
|
1403
|
+
const C = Y(y);
|
|
1404
|
+
if (!C)
|
|
1405
|
+
return;
|
|
1406
|
+
const { layerId: v, event: w } = C;
|
|
1407
|
+
o.layerIds.includes(v) && (s.value.push(w), a(w));
|
|
1408
|
+
}
|
|
1409
|
+
return D.functions.on(W.TIMELINE_EVENT_UPDATED, h), ye(() => {
|
|
1410
|
+
D.functions.off(W.TIMELINE_EVENT_UPDATED, h);
|
|
1411
|
+
}), e({
|
|
1412
|
+
clear() {
|
|
1413
|
+
s.value = [], l.value.clear();
|
|
1414
|
+
}
|
|
1415
|
+
}), (y, C) => (p(), m("div", Ro, [
|
|
1416
|
+
y.headerVisible ? (p(), z($e, {
|
|
1417
|
+
key: 0,
|
|
1418
|
+
"doc-link": y.docLink,
|
|
1419
|
+
"github-repo-link": y.githubRepoLink
|
|
1420
|
+
}, {
|
|
1421
|
+
default: M(() => [
|
|
1422
|
+
x(Se)
|
|
1423
|
+
]),
|
|
1424
|
+
_: 1
|
|
1425
|
+
}, 8, ["doc-link", "github-repo-link"])) : U("", !0),
|
|
1426
|
+
s.value.length ? (p(), m("div", Ao, [
|
|
1427
|
+
x(d(Ae), { class: "h-full" }, {
|
|
1428
|
+
default: M(() => [
|
|
1429
|
+
x(d(ue), {
|
|
1430
|
+
border: "r base",
|
|
1431
|
+
size: "40",
|
|
1432
|
+
"h-full": ""
|
|
1433
|
+
}, {
|
|
1434
|
+
default: M(() => [
|
|
1435
|
+
u("div", Do, [
|
|
1436
|
+
x(No, {
|
|
1437
|
+
modelValue: i.value,
|
|
1438
|
+
"onUpdate:modelValue": C[0] || (C[0] = (v) => i.value = v),
|
|
1439
|
+
data: s.value
|
|
1440
|
+
}, null, 8, ["modelValue", "data"])
|
|
1441
|
+
])
|
|
1442
|
+
]),
|
|
1443
|
+
_: 1
|
|
1444
|
+
}),
|
|
1445
|
+
x(d(ue), { size: "60" }, {
|
|
1446
|
+
default: M(() => [
|
|
1447
|
+
u("div", Po, [
|
|
1448
|
+
x(Pe, {
|
|
1449
|
+
class: "p3",
|
|
1450
|
+
data: f.value,
|
|
1451
|
+
"node-id": "",
|
|
1452
|
+
"inspector-id": "",
|
|
1453
|
+
"disable-edit": !0,
|
|
1454
|
+
"expanded-state-id": "timeline-state"
|
|
1455
|
+
}, null, 8, ["data"])
|
|
1456
|
+
])
|
|
1457
|
+
]),
|
|
1458
|
+
_: 1
|
|
1459
|
+
})
|
|
1460
|
+
]),
|
|
1461
|
+
_: 1
|
|
1462
|
+
})
|
|
1463
|
+
])) : (p(), z(Ne, {
|
|
1464
|
+
key: 2,
|
|
1465
|
+
class: "flex-1"
|
|
1466
|
+
}, {
|
|
1467
|
+
default: M(() => C[1] || (C[1] = [
|
|
1468
|
+
ne(" No events ")
|
|
1469
|
+
])),
|
|
1470
|
+
_: 1
|
|
1471
|
+
}))
|
|
1472
|
+
]));
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
function W1() {
|
|
1476
|
+
const n = T([]), e = T([]);
|
|
1477
|
+
function o(s) {
|
|
1478
|
+
e.value = s, s.length < n.value.length && (n.value = []), e.value.forEach((l) => {
|
|
1479
|
+
t(l);
|
|
1185
1480
|
});
|
|
1186
|
-
const { expanded: s, toggleExpanded: l } = rt(e.expandedStateId);
|
|
1187
|
-
return (i, u) => (p(), m("div", null, [
|
|
1188
|
-
(p(!0), m(te, null, ae(i.data, (c, C, v) => (p(), m("div", { key: v }, [
|
|
1189
|
-
r("div", {
|
|
1190
|
-
class: ie(["flex items-center", [(c == null ? void 0 : c.length) && "cursor-pointer hover:bg-active"]]),
|
|
1191
|
-
onClick: (a) => d(l)(`${v}`)
|
|
1192
|
-
}, [
|
|
1193
|
-
c != null && c.length ? (p(), z(at, {
|
|
1194
|
-
key: 0,
|
|
1195
|
-
value: d(s).includes(`${v}`)
|
|
1196
|
-
}, null, 8, ["value"])) : (p(), m("span", fo)),
|
|
1197
|
-
r("span", vo, le(C), 1)
|
|
1198
|
-
], 10, po),
|
|
1199
|
-
c != null && c.length && d(s).includes(`${v}`) ? (p(), m("div", mo, [
|
|
1200
|
-
x(Ot, {
|
|
1201
|
-
data: c,
|
|
1202
|
-
index: `${v}`,
|
|
1203
|
-
"expanded-state-id": i.expandedStateId
|
|
1204
|
-
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1205
|
-
])) : U("", !0)
|
|
1206
|
-
]))), 128))
|
|
1207
|
-
]));
|
|
1208
1481
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1482
|
+
Re(() => {
|
|
1483
|
+
D.value.getCustomInspector().then((s) => {
|
|
1484
|
+
e.value = s, e.value.forEach((l) => {
|
|
1485
|
+
t(l);
|
|
1486
|
+
});
|
|
1487
|
+
}), D.functions.on(W.INSPECTOR_UPDATED, o);
|
|
1488
|
+
});
|
|
1489
|
+
function t(s) {
|
|
1490
|
+
n.value.some((l) => l.id === s.id) || n.value.push(s);
|
|
1491
|
+
}
|
|
1492
|
+
return ye(() => {
|
|
1493
|
+
D.functions.off(W.INSPECTOR_UPDATED, o);
|
|
1494
|
+
}), {
|
|
1495
|
+
registeredInspector: n,
|
|
1496
|
+
register: t
|
|
1497
|
+
};
|
|
1498
|
+
}
|
|
1499
|
+
const Ut = Symbol("SelectedSymbolKey");
|
|
1500
|
+
function Mo() {
|
|
1211
1501
|
const n = T("");
|
|
1212
|
-
return ge(
|
|
1502
|
+
return ge(Ut, n), {
|
|
1213
1503
|
selected: n
|
|
1214
1504
|
};
|
|
1215
1505
|
}
|
|
1216
|
-
function
|
|
1217
|
-
const n = ve(
|
|
1506
|
+
function Ho() {
|
|
1507
|
+
const n = ve(Ut, T(""));
|
|
1218
1508
|
function e(o) {
|
|
1219
1509
|
n.value = o;
|
|
1220
1510
|
}
|
|
@@ -1223,24 +1513,24 @@ function go() {
|
|
|
1223
1513
|
select: e
|
|
1224
1514
|
};
|
|
1225
1515
|
}
|
|
1226
|
-
const
|
|
1516
|
+
const Lo = ["onClick", "onDblclick"], Oo = {
|
|
1227
1517
|
key: 1,
|
|
1228
1518
|
pl5: ""
|
|
1229
|
-
},
|
|
1519
|
+
}, jo = {
|
|
1230
1520
|
"font-state-field": "",
|
|
1231
1521
|
"text-3.5": ""
|
|
1232
|
-
},
|
|
1522
|
+
}, Uo = {
|
|
1233
1523
|
key: 0,
|
|
1234
1524
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1235
|
-
},
|
|
1525
|
+
}, zo = {
|
|
1236
1526
|
"group-hover:text-white": "",
|
|
1237
1527
|
class: "ws-nowrap [.active_&]:text-white"
|
|
1238
|
-
},
|
|
1528
|
+
}, Bo = {
|
|
1239
1529
|
key: 1,
|
|
1240
1530
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1241
|
-
},
|
|
1531
|
+
}, Zo = { key: 0 }, Me = /* @__PURE__ */ B({
|
|
1242
1532
|
__name: "TreeViewer",
|
|
1243
|
-
props: /* @__PURE__ */
|
|
1533
|
+
props: /* @__PURE__ */ ze({
|
|
1244
1534
|
data: {},
|
|
1245
1535
|
depth: { default: 0 },
|
|
1246
1536
|
withTag: { type: Boolean, default: !1 }
|
|
@@ -1250,48 +1540,48 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1250
1540
|
}),
|
|
1251
1541
|
emits: ["update:modelValue"],
|
|
1252
1542
|
setup(n) {
|
|
1253
|
-
const e =
|
|
1254
|
-
|
|
1543
|
+
const e = Qe(n, "modelValue"), { expanded: o, toggleExpanded: t } = it();
|
|
1544
|
+
Ho();
|
|
1255
1545
|
function s(i) {
|
|
1256
1546
|
return "name" in i && (i == null ? void 0 : i.name) || "label" in i && i.label;
|
|
1257
1547
|
}
|
|
1258
1548
|
function l(i) {
|
|
1259
1549
|
e.value = i;
|
|
1260
1550
|
}
|
|
1261
|
-
return (i,
|
|
1262
|
-
var
|
|
1551
|
+
return (i, r) => (p(!0), m(te, null, ae(i.data, (c, g) => {
|
|
1552
|
+
var f, a;
|
|
1263
1553
|
return p(), m("div", {
|
|
1264
|
-
key:
|
|
1554
|
+
key: g,
|
|
1265
1555
|
class: ie({
|
|
1266
1556
|
"min-w-max": i.depth === 0
|
|
1267
1557
|
})
|
|
1268
1558
|
}, [
|
|
1269
|
-
|
|
1559
|
+
u("div", {
|
|
1270
1560
|
class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === c.id }]),
|
|
1271
|
-
style:
|
|
1272
|
-
onClick: (
|
|
1273
|
-
onDblclick: (
|
|
1561
|
+
style: Ie({ paddingLeft: `${15 * i.depth + 4}px` }),
|
|
1562
|
+
onClick: (h) => l(c.id),
|
|
1563
|
+
onDblclick: (h) => d(t)(c.id)
|
|
1274
1564
|
}, [
|
|
1275
|
-
(
|
|
1565
|
+
(f = c == null ? void 0 : c.children) != null && f.length ? (p(), z(st, {
|
|
1276
1566
|
key: 0,
|
|
1277
1567
|
value: d(o).includes(c.id),
|
|
1278
1568
|
class: "[.active_&]:op20 group-hover:op20",
|
|
1279
|
-
onClick: fe((
|
|
1280
|
-
}, null, 8, ["value", "onClick"])) : (p(), m("span",
|
|
1281
|
-
|
|
1282
|
-
i.withTag ? (p(), m("span",
|
|
1283
|
-
|
|
1284
|
-
i.withTag ? (p(), m("span",
|
|
1569
|
+
onClick: fe((h) => d(t)(c.id), ["stop"])
|
|
1570
|
+
}, null, 8, ["value", "onClick"])) : (p(), m("span", Oo)),
|
|
1571
|
+
u("span", jo, [
|
|
1572
|
+
i.withTag ? (p(), m("span", Uo, "<")) : U("", !0),
|
|
1573
|
+
u("span", zo, le(s(c)), 1),
|
|
1574
|
+
i.withTag ? (p(), m("span", Bo, ">")) : U("", !0)
|
|
1285
1575
|
]),
|
|
1286
|
-
(p(!0), m(te, null, ae(c.tags, (
|
|
1287
|
-
key:
|
|
1288
|
-
tag:
|
|
1576
|
+
(p(!0), m(te, null, ae(c.tags, (h, y) => (p(), z(Dt, {
|
|
1577
|
+
key: y,
|
|
1578
|
+
tag: h
|
|
1289
1579
|
}, null, 8, ["tag"]))), 128))
|
|
1290
|
-
], 46,
|
|
1291
|
-
(a = c == null ? void 0 : c.children) != null && a.length && d(o).includes(c.id) ? (p(), m("div",
|
|
1292
|
-
x(
|
|
1580
|
+
], 46, Lo),
|
|
1581
|
+
(a = c == null ? void 0 : c.children) != null && a.length && d(o).includes(c.id) ? (p(), m("div", Zo, [
|
|
1582
|
+
x(Me, {
|
|
1293
1583
|
modelValue: e.value,
|
|
1294
|
-
"onUpdate:modelValue":
|
|
1584
|
+
"onUpdate:modelValue": r[0] || (r[0] = (h) => e.value = h),
|
|
1295
1585
|
data: c == null ? void 0 : c.children,
|
|
1296
1586
|
depth: i.depth + 1,
|
|
1297
1587
|
"with-tag": i.withTag
|
|
@@ -1300,7 +1590,7 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1300
1590
|
], 2);
|
|
1301
1591
|
}), 128));
|
|
1302
1592
|
}
|
|
1303
|
-
}),
|
|
1593
|
+
}), Fo = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]" }, Go = { class: "flex-1 overflow-scroll text-3.5" }, Ko = /* @__PURE__ */ B({
|
|
1304
1594
|
__name: "RenderCode",
|
|
1305
1595
|
props: {
|
|
1306
1596
|
code: {}
|
|
@@ -1311,94 +1601,94 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1311
1601
|
function t() {
|
|
1312
1602
|
o("close");
|
|
1313
1603
|
}
|
|
1314
|
-
return (s, l) => (p(), m("div",
|
|
1315
|
-
|
|
1316
|
-
l[0] || (l[0] =
|
|
1317
|
-
|
|
1604
|
+
return (s, l) => (p(), m("div", Fo, [
|
|
1605
|
+
u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
1606
|
+
l[0] || (l[0] = u("span", { class: "font-500" }, "Render Code", -1)),
|
|
1607
|
+
u("i", {
|
|
1318
1608
|
class: "i-carbon-close cursor-pointer hover:op80",
|
|
1319
1609
|
onClick: t
|
|
1320
1610
|
})
|
|
1321
1611
|
]),
|
|
1322
|
-
|
|
1323
|
-
x(d(
|
|
1612
|
+
u("div", Go, [
|
|
1613
|
+
x(d(on), {
|
|
1324
1614
|
code: s.code,
|
|
1325
1615
|
lang: "javascript"
|
|
1326
1616
|
}, null, 8, ["code"])
|
|
1327
1617
|
])
|
|
1328
1618
|
]));
|
|
1329
1619
|
}
|
|
1330
|
-
}),
|
|
1620
|
+
}), Wo = { class: "h-full w-full" }, qo = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, Jo = {
|
|
1331
1621
|
key: 0,
|
|
1332
1622
|
class: "h-full flex flex-col p2"
|
|
1333
|
-
},
|
|
1623
|
+
}, Yo = { class: "flex py2" }, Xo = {
|
|
1334
1624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1335
1625
|
style: { height: "1.1em", width: "1.1em" },
|
|
1336
1626
|
class: "op-80 hover:op-100",
|
|
1337
1627
|
viewBox: "0 0 24 24"
|
|
1338
|
-
},
|
|
1628
|
+
}, Qo = { class: "h-full flex flex-col p2" }, el = { class: "flex py2" }, tl = {
|
|
1339
1629
|
key: 0,
|
|
1340
1630
|
class: "font-state-field flex items-center px-1 text-3.5"
|
|
1341
|
-
},
|
|
1631
|
+
}, nl = {
|
|
1342
1632
|
"group-hover:text-white": "",
|
|
1343
1633
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
1344
|
-
},
|
|
1634
|
+
}, ol = { class: "flex items-center gap-2 px-1" }, ll = { class: "h-full flex flex-col items-center justify-center gap-2" }, sl = { class: "block" }, al = {
|
|
1345
1635
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1346
1636
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
1347
1637
|
class: "animate-fade",
|
|
1348
1638
|
viewBox: "0 0 24 24"
|
|
1349
|
-
},
|
|
1639
|
+
}, il = { class: "flex items-center justify-center" }, Ve = "components", rl = /* @__PURE__ */ B({
|
|
1350
1640
|
__name: "index",
|
|
1351
1641
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1352
1642
|
setup(n, { emit: e }) {
|
|
1353
|
-
const o = e, t = T(), s = T(!1), { width: l } =
|
|
1354
|
-
function
|
|
1643
|
+
const o = e, t = T(), s = T(!1), { width: l } = lo(t), i = V(() => s.value ? l.value < 700 : !1), r = T(""), c = T(""), [g, f] = Xn(!0), a = T(!1), h = T(!1), y = T(""), C = T(!1);
|
|
1644
|
+
function v(S, b = [], O = []) {
|
|
1355
1645
|
var G;
|
|
1356
|
-
return
|
|
1357
|
-
|
|
1358
|
-
}),
|
|
1646
|
+
return b.push(S.id), ((G = S.children) == null ? void 0 : G.length) === 0 && O.push([...b]), Array.isArray(S.children) && S.children.forEach((q) => {
|
|
1647
|
+
v(q, b, O);
|
|
1648
|
+
}), b.pop(), O;
|
|
1359
1649
|
}
|
|
1360
|
-
function S
|
|
1361
|
-
const
|
|
1650
|
+
function w(S) {
|
|
1651
|
+
const b = [], O = (G) => {
|
|
1362
1652
|
G == null || G.forEach((q) => {
|
|
1363
1653
|
var we;
|
|
1364
|
-
|
|
1654
|
+
b.push(q), (we = q.children) != null && we.length && O(q.children);
|
|
1365
1655
|
});
|
|
1366
1656
|
};
|
|
1367
|
-
return
|
|
1368
|
-
}
|
|
1369
|
-
function j(
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1372
|
-
|
|
1373
|
-
}), [...new Set(
|
|
1374
|
-
}
|
|
1375
|
-
function
|
|
1376
|
-
const
|
|
1377
|
-
return
|
|
1378
|
-
const q = G.indexOf(
|
|
1379
|
-
q !== -1 &&
|
|
1380
|
-
}), [...new Set(
|
|
1381
|
-
}
|
|
1382
|
-
const A = T([]),
|
|
1383
|
-
var
|
|
1384
|
-
return (
|
|
1385
|
-
}), R = V(() =>
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1657
|
+
return O(S), b;
|
|
1658
|
+
}
|
|
1659
|
+
function j(S, b) {
|
|
1660
|
+
const O = [];
|
|
1661
|
+
return S == null || S.forEach((G) => {
|
|
1662
|
+
O.push(...G.slice(0, b + 1));
|
|
1663
|
+
}), [...new Set(O)];
|
|
1664
|
+
}
|
|
1665
|
+
function L(S, b) {
|
|
1666
|
+
const O = [];
|
|
1667
|
+
return S.forEach((G) => {
|
|
1668
|
+
const q = G.indexOf(b);
|
|
1669
|
+
q !== -1 && O.push(...G.slice(0, q + 1));
|
|
1670
|
+
}), [...new Set(O)];
|
|
1671
|
+
}
|
|
1672
|
+
const A = T([]), I = V(() => {
|
|
1673
|
+
var S, b;
|
|
1674
|
+
return (S = A.value) != null && S.length ? v((b = A.value) == null ? void 0 : b[0]) : [];
|
|
1675
|
+
}), R = V(() => w(A.value)), H = V(() => R.value.map((S) => S.id)), K = T({}), Z = T(""), E = V(() => {
|
|
1676
|
+
const S = [], b = (O) => {
|
|
1677
|
+
O.forEach((G) => {
|
|
1388
1678
|
var q;
|
|
1389
|
-
G.id === Z.value &&
|
|
1679
|
+
G.id === Z.value && S.push(G), (q = G.children) != null && q.length && b(G.children);
|
|
1390
1680
|
});
|
|
1391
1681
|
};
|
|
1392
|
-
return
|
|
1682
|
+
return b(A.value), S[0];
|
|
1393
1683
|
}), P = V(() => {
|
|
1394
|
-
var
|
|
1395
|
-
return ((
|
|
1396
|
-
}),
|
|
1397
|
-
const
|
|
1398
|
-
for (const
|
|
1399
|
-
const G = K.value[
|
|
1684
|
+
var S;
|
|
1685
|
+
return ((S = E.value) == null ? void 0 : S.file) ?? "";
|
|
1686
|
+
}), k = V(() => {
|
|
1687
|
+
const S = {};
|
|
1688
|
+
for (const b in K.value) {
|
|
1689
|
+
const G = K.value[b].filter((we) => {
|
|
1400
1690
|
try {
|
|
1401
|
-
return
|
|
1691
|
+
return bn({
|
|
1402
1692
|
[we.key]: we.value
|
|
1403
1693
|
}, c.value);
|
|
1404
1694
|
} catch (qt) {
|
|
@@ -1406,68 +1696,68 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1406
1696
|
[we.key]: qt
|
|
1407
1697
|
};
|
|
1408
1698
|
}
|
|
1409
|
-
}), q =
|
|
1410
|
-
G.length && (
|
|
1699
|
+
}), q = _n(Object.values(xn(Vt(G), "stateType")));
|
|
1700
|
+
G.length && (S[b] = q);
|
|
1411
1701
|
}
|
|
1412
|
-
return
|
|
1702
|
+
return S;
|
|
1413
1703
|
}), { expanded: $ } = me(), { expanded: _ } = me("component-state");
|
|
1414
|
-
|
|
1415
|
-
async function N(
|
|
1416
|
-
return D.value.getInspectorTree({ inspectorId: Ve, filter:
|
|
1704
|
+
Mo();
|
|
1705
|
+
async function N(S = "") {
|
|
1706
|
+
return D.value.getInspectorTree({ inspectorId: Ve, filter: S }).then((b) => {
|
|
1417
1707
|
var G, q;
|
|
1418
|
-
const
|
|
1419
|
-
A.value =
|
|
1708
|
+
const O = Y(b);
|
|
1709
|
+
A.value = O, Z.value = (q = (G = A.value) == null ? void 0 : G[0]) == null ? void 0 : q.id, $.value = j(I.value, 1), a.value = !0;
|
|
1420
1710
|
});
|
|
1421
1711
|
}
|
|
1422
|
-
function F(
|
|
1423
|
-
if (!
|
|
1712
|
+
function F(S) {
|
|
1713
|
+
if (!S || !(S != null && S.state))
|
|
1424
1714
|
return {};
|
|
1425
|
-
const
|
|
1426
|
-
return
|
|
1427
|
-
|
|
1428
|
-
}),
|
|
1429
|
-
}
|
|
1430
|
-
function se(
|
|
1431
|
-
D.value.getInspectorState({ inspectorId: Ve, nodeId:
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1715
|
+
const b = {};
|
|
1716
|
+
return S.state.forEach((O) => {
|
|
1717
|
+
b[O.type] || (b[O.type] = []), b[O.type].push(O);
|
|
1718
|
+
}), b;
|
|
1719
|
+
}
|
|
1720
|
+
function se(S) {
|
|
1721
|
+
D.value.getInspectorState({ inspectorId: Ve, nodeId: S }).then((b) => {
|
|
1722
|
+
const O = Y(b);
|
|
1723
|
+
O && (K.value = F(O), _.value = Array.from({ length: Object.keys(K.value).length }, (G, q) => `${q}`));
|
|
1434
1724
|
});
|
|
1435
1725
|
}
|
|
1436
|
-
X(Z, (
|
|
1437
|
-
se(
|
|
1726
|
+
X(Z, (S) => {
|
|
1727
|
+
se(S), C.value && je();
|
|
1438
1728
|
});
|
|
1439
|
-
function re(
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1729
|
+
function re(S) {
|
|
1730
|
+
const b = Y(S);
|
|
1731
|
+
b.inspectorId !== Ve || b.nodeId !== Z.value || (K.value = F({ state: b.state.state }));
|
|
1442
1732
|
}
|
|
1443
1733
|
D.functions.on(W.INSPECTOR_STATE_UPDATED, re), N();
|
|
1444
|
-
function ce(
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
|
|
1734
|
+
function ce(S) {
|
|
1735
|
+
const b = S.trim().toLowerCase();
|
|
1736
|
+
f(), N(b).then(() => {
|
|
1737
|
+
f();
|
|
1448
1738
|
});
|
|
1449
1739
|
}
|
|
1450
|
-
|
|
1451
|
-
ce(
|
|
1740
|
+
Qn(r, (S) => {
|
|
1741
|
+
ce(S);
|
|
1452
1742
|
}, { debounce: 300 });
|
|
1453
|
-
function Ce(
|
|
1454
|
-
var
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1743
|
+
function Ce(S) {
|
|
1744
|
+
var O, G;
|
|
1745
|
+
const b = Y(S);
|
|
1746
|
+
b.inspectorId === Ve && (r.value ? ce(r.value) : A.value = b.rootNodes, H.value.includes(Z.value) || (Z.value = (G = (O = A.value) == null ? void 0 : O[0]) == null ? void 0 : G.id, $.value = j(I.value, 1)));
|
|
1457
1747
|
}
|
|
1458
1748
|
D.functions.on(W.INSPECTOR_TREE_UPDATED, Ce), ye(() => {
|
|
1459
1749
|
D.functions.off(W.INSPECTOR_STATE_UPDATED, re), D.functions.off(W.INSPECTOR_TREE_UPDATED, Ce);
|
|
1460
1750
|
});
|
|
1461
1751
|
function _e() {
|
|
1462
|
-
|
|
1463
|
-
const
|
|
1464
|
-
Z.value =
|
|
1752
|
+
h.value = !0, o("onInspectComponentStart"), D.value.inspectComponentInspector().then((S) => {
|
|
1753
|
+
const b = JSON.parse(S);
|
|
1754
|
+
Z.value = b.id, $.value.includes(b.id) || $.value.push(b.id), $.value = [.../* @__PURE__ */ new Set([...$.value, ...L(I.value, b.id)])], Ft();
|
|
1465
1755
|
}).finally(() => {
|
|
1466
|
-
|
|
1756
|
+
h.value = !1, o("onInspectComponentEnd");
|
|
1467
1757
|
});
|
|
1468
1758
|
}
|
|
1469
1759
|
function He() {
|
|
1470
|
-
|
|
1760
|
+
h.value = !1, D.value.cancelInspectComponentInspector();
|
|
1471
1761
|
}
|
|
1472
1762
|
function Le() {
|
|
1473
1763
|
D.value.scrollToComponent(Z.value);
|
|
@@ -1478,8 +1768,8 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1478
1768
|
});
|
|
1479
1769
|
}
|
|
1480
1770
|
function je() {
|
|
1481
|
-
D.value.getComponentRenderCode(Z.value).then((
|
|
1482
|
-
|
|
1771
|
+
D.value.getComponentRenderCode(Z.value).then((S) => {
|
|
1772
|
+
y.value = S, C.value = !0;
|
|
1483
1773
|
});
|
|
1484
1774
|
}
|
|
1485
1775
|
function We() {
|
|
@@ -1488,36 +1778,36 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1488
1778
|
const Ee = T();
|
|
1489
1779
|
function Ft() {
|
|
1490
1780
|
setTimeout(() => {
|
|
1491
|
-
var
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1781
|
+
var b;
|
|
1782
|
+
const S = (b = Ee.value) == null ? void 0 : b.querySelector(".active");
|
|
1783
|
+
S == null || S.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1494
1784
|
}, 300);
|
|
1495
1785
|
}
|
|
1496
1786
|
function Gt() {
|
|
1497
|
-
|
|
1498
|
-
}
|
|
1499
|
-
const qe =
|
|
1500
|
-
label:
|
|
1501
|
-
value:
|
|
1502
|
-
}))), Kt = V(() => pt.value.map((
|
|
1503
|
-
label:
|
|
1504
|
-
id:
|
|
1787
|
+
y.value = "", C.value = !1;
|
|
1788
|
+
}
|
|
1789
|
+
const qe = mn(), pt = V(() => qe.appRecords.value.map((S) => ({
|
|
1790
|
+
label: S.name + (S.version ? ` (${S.version})` : ""),
|
|
1791
|
+
value: S.id
|
|
1792
|
+
}))), Kt = V(() => pt.value.map((S) => ({
|
|
1793
|
+
label: S.label,
|
|
1794
|
+
id: S.value
|
|
1505
1795
|
}))), Je = T(qe.activeAppRecordId.value);
|
|
1506
|
-
|
|
1796
|
+
nt(() => {
|
|
1507
1797
|
Je.value = qe.activeAppRecordId.value;
|
|
1508
1798
|
});
|
|
1509
|
-
function Wt(
|
|
1510
|
-
D.value.toggleApp(
|
|
1799
|
+
function Wt(S) {
|
|
1800
|
+
D.value.toggleApp(S).then(() => {
|
|
1511
1801
|
Z.value = "", N();
|
|
1512
1802
|
});
|
|
1513
1803
|
}
|
|
1514
|
-
return (
|
|
1804
|
+
return (S, b) => (p(), m("div", Wo, [
|
|
1515
1805
|
x(d(Ae), {
|
|
1516
1806
|
ref_key: "splitpanesRef",
|
|
1517
1807
|
ref: t,
|
|
1518
1808
|
class: "flex-1 overflow-auto",
|
|
1519
1809
|
horizontal: i.value,
|
|
1520
|
-
onReady:
|
|
1810
|
+
onReady: b[4] || (b[4] = (O) => s.value = !0)
|
|
1521
1811
|
}, {
|
|
1522
1812
|
default: M(() => [
|
|
1523
1813
|
pt.value.length > 1 ? (p(), z(d(ue), {
|
|
@@ -1526,10 +1816,10 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1526
1816
|
size: "20"
|
|
1527
1817
|
}, {
|
|
1528
1818
|
default: M(() => [
|
|
1529
|
-
|
|
1530
|
-
x(
|
|
1819
|
+
u("div", qo, [
|
|
1820
|
+
x(Sn, {
|
|
1531
1821
|
modelValue: Je.value,
|
|
1532
|
-
"onUpdate:modelValue":
|
|
1822
|
+
"onUpdate:modelValue": b[0] || (b[0] = (O) => Je.value = O),
|
|
1533
1823
|
data: Kt.value,
|
|
1534
1824
|
class: "w-full",
|
|
1535
1825
|
onSelect: Wt
|
|
@@ -1543,24 +1833,24 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1543
1833
|
"h-full": ""
|
|
1544
1834
|
}, {
|
|
1545
1835
|
default: M(() => [
|
|
1546
|
-
a.value ? (p(), m("div",
|
|
1547
|
-
|
|
1836
|
+
a.value ? (p(), m("div", Jo, [
|
|
1837
|
+
u("div", Yo, [
|
|
1548
1838
|
x(d(Ze), {
|
|
1549
|
-
modelValue:
|
|
1550
|
-
"onUpdate:modelValue":
|
|
1839
|
+
modelValue: r.value,
|
|
1840
|
+
"onUpdate:modelValue": b[1] || (b[1] = (O) => r.value = O),
|
|
1551
1841
|
"loading-debounce-time": 250,
|
|
1552
|
-
loading: !d(
|
|
1842
|
+
loading: !d(g),
|
|
1553
1843
|
placeholder: "Find components...",
|
|
1554
1844
|
class: "flex-1 text-3.5"
|
|
1555
1845
|
}, null, 8, ["modelValue", "loading"]),
|
|
1556
|
-
d(
|
|
1846
|
+
d(hn) ? U("", !0) : J((p(), m("button", {
|
|
1557
1847
|
key: 0,
|
|
1558
1848
|
"px-1": "",
|
|
1559
1849
|
class: "hover:color-#00dc82",
|
|
1560
1850
|
onClick: _e
|
|
1561
1851
|
}, [
|
|
1562
|
-
(p(), m("svg",
|
|
1563
|
-
|
|
1852
|
+
(p(), m("svg", Xo, b[6] || (b[6] = [
|
|
1853
|
+
u("path", {
|
|
1564
1854
|
fill: "currentColor",
|
|
1565
1855
|
d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
|
|
1566
1856
|
}, null, -1)
|
|
@@ -1574,14 +1864,14 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1574
1864
|
]
|
|
1575
1865
|
])
|
|
1576
1866
|
]),
|
|
1577
|
-
|
|
1867
|
+
u("div", {
|
|
1578
1868
|
ref_key: "componentTreeContainer",
|
|
1579
1869
|
ref: Ee,
|
|
1580
1870
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
1581
1871
|
}, [
|
|
1582
|
-
x(
|
|
1872
|
+
x(Me, {
|
|
1583
1873
|
modelValue: Z.value,
|
|
1584
|
-
"onUpdate:modelValue":
|
|
1874
|
+
"onUpdate:modelValue": b[2] || (b[2] = (O) => Z.value = O),
|
|
1585
1875
|
data: A.value,
|
|
1586
1876
|
"with-tag": !0
|
|
1587
1877
|
}, null, 8, ["modelValue", "data"])
|
|
@@ -1595,24 +1885,24 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1595
1885
|
"h-full": ""
|
|
1596
1886
|
}, {
|
|
1597
1887
|
default: M(() => {
|
|
1598
|
-
var
|
|
1888
|
+
var O;
|
|
1599
1889
|
return [
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
(
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1890
|
+
u("div", Qo, [
|
|
1891
|
+
u("div", el, [
|
|
1892
|
+
(O = E.value) != null && O.name ? (p(), m("span", tl, [
|
|
1893
|
+
b[7] || (b[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
|
|
1894
|
+
u("span", nl, le(E.value.name), 1),
|
|
1895
|
+
b[8] || (b[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
|
|
1606
1896
|
])) : U("", !0),
|
|
1607
1897
|
x(d(Ze), {
|
|
1608
1898
|
modelValue: c.value,
|
|
1609
|
-
"onUpdate:modelValue":
|
|
1899
|
+
"onUpdate:modelValue": b[3] || (b[3] = (G) => c.value = G),
|
|
1610
1900
|
"loading-debounce-time": 250,
|
|
1611
1901
|
placeholder: "Filter State...",
|
|
1612
1902
|
class: "flex-1 text-3.5"
|
|
1613
1903
|
}, null, 8, ["modelValue"]),
|
|
1614
|
-
|
|
1615
|
-
J(
|
|
1904
|
+
u("div", ol, [
|
|
1905
|
+
J(u("i", {
|
|
1616
1906
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
1617
1907
|
onClick: Le
|
|
1618
1908
|
}, null, 512), [
|
|
@@ -1623,7 +1913,7 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1623
1913
|
{ bottom: !0 }
|
|
1624
1914
|
]
|
|
1625
1915
|
]),
|
|
1626
|
-
J(
|
|
1916
|
+
J(u("i", {
|
|
1627
1917
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
1628
1918
|
onClick: je
|
|
1629
1919
|
}, null, 512), [
|
|
@@ -1634,7 +1924,7 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1634
1924
|
{ bottom: !0 }
|
|
1635
1925
|
]
|
|
1636
1926
|
]),
|
|
1637
|
-
d(
|
|
1927
|
+
d(yt) ? J((p(), m("i", {
|
|
1638
1928
|
key: 0,
|
|
1639
1929
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
1640
1930
|
onClick: Oe
|
|
@@ -1660,17 +1950,17 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1660
1950
|
]) : U("", !0)
|
|
1661
1951
|
])
|
|
1662
1952
|
]),
|
|
1663
|
-
x(
|
|
1953
|
+
x(Pe, {
|
|
1664
1954
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
1665
|
-
data:
|
|
1955
|
+
data: k.value,
|
|
1666
1956
|
"node-id": Z.value,
|
|
1667
1957
|
"inspector-id": Ve,
|
|
1668
1958
|
"expanded-state-id": "component-state"
|
|
1669
1959
|
}, null, 8, ["data", "node-id"])
|
|
1670
1960
|
]),
|
|
1671
|
-
|
|
1961
|
+
C.value && y.value ? (p(), z(Ko, {
|
|
1672
1962
|
key: 0,
|
|
1673
|
-
code:
|
|
1963
|
+
code: y.value,
|
|
1674
1964
|
onClose: Gt
|
|
1675
1965
|
}, null, 8, ["code"])) : U("", !0)
|
|
1676
1966
|
];
|
|
@@ -1680,18 +1970,18 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1680
1970
|
]),
|
|
1681
1971
|
_: 1
|
|
1682
1972
|
}, 8, ["horizontal"]),
|
|
1683
|
-
d(
|
|
1973
|
+
d(yt) ? (p(), z(d(ln), {
|
|
1684
1974
|
key: 0,
|
|
1685
|
-
modelValue:
|
|
1686
|
-
"onUpdate:modelValue":
|
|
1975
|
+
modelValue: h.value,
|
|
1976
|
+
"onUpdate:modelValue": b[5] || (b[5] = (O) => h.value = O),
|
|
1687
1977
|
title: "",
|
|
1688
1978
|
height: "12rem",
|
|
1689
1979
|
closable: !1
|
|
1690
1980
|
}, {
|
|
1691
1981
|
footer: M(() => [
|
|
1692
|
-
|
|
1982
|
+
u("div", il, [
|
|
1693
1983
|
x(d(de), { onClick: He }, {
|
|
1694
|
-
default: M(() =>
|
|
1984
|
+
default: M(() => b[11] || (b[11] = [
|
|
1695
1985
|
ne(" Cancel ")
|
|
1696
1986
|
])),
|
|
1697
1987
|
_: 1
|
|
@@ -1699,52 +1989,52 @@ const Co = ["onClick", "onDblclick"], _o = {
|
|
|
1699
1989
|
])
|
|
1700
1990
|
]),
|
|
1701
1991
|
default: M(() => [
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
(p(), m("svg",
|
|
1705
|
-
|
|
1992
|
+
u("div", ll, [
|
|
1993
|
+
u("span", sl, [
|
|
1994
|
+
(p(), m("svg", al, b[9] || (b[9] = [
|
|
1995
|
+
u("g", {
|
|
1706
1996
|
fill: "none",
|
|
1707
1997
|
stroke: "currentColor",
|
|
1708
1998
|
"stroke-linecap": "round",
|
|
1709
1999
|
"stroke-linejoin": "round",
|
|
1710
2000
|
"stroke-width": "2"
|
|
1711
2001
|
}, [
|
|
1712
|
-
|
|
2002
|
+
u("circle", {
|
|
1713
2003
|
cx: "12",
|
|
1714
2004
|
cy: "12",
|
|
1715
2005
|
r: ".5",
|
|
1716
2006
|
fill: "currentColor"
|
|
1717
2007
|
}),
|
|
1718
|
-
|
|
2008
|
+
u("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
|
|
1719
2009
|
], -1)
|
|
1720
2010
|
])))
|
|
1721
2011
|
]),
|
|
1722
|
-
|
|
2012
|
+
b[10] || (b[10] = u("p", null, " Click on a component on the page to select it ", -1))
|
|
1723
2013
|
])
|
|
1724
2014
|
]),
|
|
1725
2015
|
_: 1
|
|
1726
2016
|
}, 8, ["modelValue"])) : U("", !0)
|
|
1727
2017
|
]));
|
|
1728
2018
|
}
|
|
1729
|
-
}),
|
|
1730
|
-
function
|
|
1731
|
-
return p(), m("div",
|
|
1732
|
-
e[0] || (e[0] =
|
|
1733
|
-
|
|
1734
|
-
|
|
2019
|
+
}), q1 = /* @__PURE__ */ be(rl, [["__scopeId", "data-v-38589395"]]), ul = {}, cl = { class: "h-screen w-screen $ui-fcc flex-col" };
|
|
2020
|
+
function dl(n, e) {
|
|
2021
|
+
return p(), m("div", cl, [
|
|
2022
|
+
e[0] || (e[0] = u("div", { class: "outer" }, [
|
|
2023
|
+
u("div", { class: "inner" }, [
|
|
2024
|
+
u("i", {
|
|
1735
2025
|
class: "i-logos-vue inline-block h8! w8!",
|
|
1736
2026
|
alt: "Vue logo"
|
|
1737
2027
|
})
|
|
1738
2028
|
])
|
|
1739
2029
|
], -1)),
|
|
1740
|
-
|
|
2030
|
+
et(n.$slots, "default", {}, void 0, !0)
|
|
1741
2031
|
]);
|
|
1742
2032
|
}
|
|
1743
|
-
const
|
|
1744
|
-
function
|
|
1745
|
-
return ve(
|
|
2033
|
+
const pl = /* @__PURE__ */ be(ul, [["render", dl], ["__scopeId", "data-v-b8018f07"]]), zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
2034
|
+
function Te() {
|
|
2035
|
+
return ve(zt);
|
|
1746
2036
|
}
|
|
1747
|
-
function
|
|
2037
|
+
function Bt() {
|
|
1748
2038
|
const n = T({
|
|
1749
2039
|
homepage: "",
|
|
1750
2040
|
id: "",
|
|
@@ -1752,160 +2042,128 @@ function zt() {
|
|
|
1752
2042
|
logo: "",
|
|
1753
2043
|
timelineLayerIds: []
|
|
1754
2044
|
});
|
|
1755
|
-
return ge(
|
|
1756
|
-
}
|
|
1757
|
-
const ut = Symbol("VirtualRouteKey"), Bt = Symbol("VirtualRoutesKey");
|
|
1758
|
-
function ct(n, e) {
|
|
1759
|
-
const o = (e == null ? void 0 : e.defaultRoutePath) ?? mt(n)[0].path, t = T({
|
|
1760
|
-
path: o
|
|
1761
|
-
}), s = V(() => mt(n)), l = V(() => t.value.path), i = B({
|
|
1762
|
-
setup() {
|
|
1763
|
-
return () => {
|
|
1764
|
-
const c = s.value.find((C) => C.path === l.value);
|
|
1765
|
-
return c ? en(c.component) : null;
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
});
|
|
1769
|
-
function u() {
|
|
1770
|
-
t.value.path = o;
|
|
1771
|
-
}
|
|
1772
|
-
return ge(ut, t), ge(Bt, s), { VirtualRouterView: i, restoreRouter: u };
|
|
1773
|
-
}
|
|
1774
|
-
function Me() {
|
|
1775
|
-
const n = ve(ut);
|
|
1776
|
-
return {
|
|
1777
|
-
push(e) {
|
|
1778
|
-
n.value.path = e;
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
|
-
}
|
|
1782
|
-
function Ko() {
|
|
1783
|
-
const n = ve(Bt), e = ve(ut);
|
|
1784
|
-
return {
|
|
1785
|
-
routes: n,
|
|
1786
|
-
currentRoute: e
|
|
1787
|
-
};
|
|
2045
|
+
return ge(zt, n), n;
|
|
1788
2046
|
}
|
|
1789
|
-
const
|
|
2047
|
+
const fl = {}, vl = {
|
|
1790
2048
|
width: "175",
|
|
1791
2049
|
height: "34",
|
|
1792
2050
|
viewBox: "0 0 175 34",
|
|
1793
2051
|
fill: "none",
|
|
1794
2052
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1795
2053
|
};
|
|
1796
|
-
function
|
|
1797
|
-
return p(), m("svg",
|
|
1798
|
-
|
|
2054
|
+
function ml(n, e) {
|
|
2055
|
+
return p(), m("svg", vl, e[0] || (e[0] = [
|
|
2056
|
+
u("path", {
|
|
1799
2057
|
fill: "currentColor",
|
|
1800
2058
|
d: "M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"
|
|
1801
2059
|
}, null, -1)
|
|
1802
2060
|
]));
|
|
1803
2061
|
}
|
|
1804
|
-
const
|
|
2062
|
+
const hl = /* @__PURE__ */ be(fl, [["render", ml]]), gl = {
|
|
1805
2063
|
"h-full": "",
|
|
1806
2064
|
"w-full": "",
|
|
1807
2065
|
flex: "",
|
|
1808
2066
|
"items-center": ""
|
|
1809
|
-
},
|
|
2067
|
+
}, Cl = {
|
|
1810
2068
|
flex: "~ col gap2",
|
|
1811
2069
|
ma: "",
|
|
1812
2070
|
"px-5": ""
|
|
1813
|
-
},
|
|
2071
|
+
}, _l = {
|
|
1814
2072
|
flex: "~ col",
|
|
1815
2073
|
"mt-20": "",
|
|
1816
2074
|
"items-center": ""
|
|
1817
|
-
},
|
|
2075
|
+
}, xl = {
|
|
1818
2076
|
flex: "~",
|
|
1819
2077
|
"mt--10": "",
|
|
1820
2078
|
"items-center": "",
|
|
1821
2079
|
"justify-center": ""
|
|
1822
|
-
},
|
|
2080
|
+
}, yl = { class: "mr-1" }, bl = {
|
|
1823
2081
|
key: 0,
|
|
1824
2082
|
class: "inline-block w20"
|
|
1825
|
-
},
|
|
2083
|
+
}, wl = ["src", "alt"], kl = {
|
|
1826
2084
|
key: 1,
|
|
1827
2085
|
class: "mr2 inline-block min-w-20 text-center text-10 font-600"
|
|
1828
|
-
},
|
|
2086
|
+
}, Il = {
|
|
1829
2087
|
mb6: "",
|
|
1830
2088
|
"mt--1": "",
|
|
1831
2089
|
"text-center": "",
|
|
1832
2090
|
"text-sm": "",
|
|
1833
2091
|
flex: "~ gap-1"
|
|
1834
|
-
},
|
|
2092
|
+
}, $l = { op40: "" }, Sl = { flex: "~ gap2 wrap" }, Tl = {
|
|
1835
2093
|
flex: "~ gap-6 wrap",
|
|
1836
2094
|
"mt-5": "",
|
|
1837
2095
|
"items-center": "",
|
|
1838
2096
|
"justify-center": ""
|
|
1839
|
-
},
|
|
2097
|
+
}, El = ["href"], Vl = /* @__PURE__ */ B({
|
|
1840
2098
|
__name: "About",
|
|
1841
2099
|
setup(n) {
|
|
1842
|
-
const e =
|
|
2100
|
+
const e = De(), o = Te(), t = T(!1), s = T(!1);
|
|
1843
2101
|
function l() {
|
|
1844
2102
|
t.value = !0;
|
|
1845
2103
|
}
|
|
1846
2104
|
function i() {
|
|
1847
2105
|
t.value = !0, s.value = !0;
|
|
1848
2106
|
}
|
|
1849
|
-
return (
|
|
1850
|
-
var
|
|
1851
|
-
return p(), m("div",
|
|
1852
|
-
|
|
1853
|
-
c[5] || (c[5] =
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
t.value ? U("", !0) : (p(), m("span",
|
|
1858
|
-
J(
|
|
2107
|
+
return (r, c) => {
|
|
2108
|
+
var g;
|
|
2109
|
+
return p(), m("div", gl, [
|
|
2110
|
+
u("div", Cl, [
|
|
2111
|
+
c[5] || (c[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2112
|
+
u("div", _l, [
|
|
2113
|
+
u("div", xl, [
|
|
2114
|
+
u("span", yl, [
|
|
2115
|
+
t.value ? U("", !0) : (p(), m("span", bl)),
|
|
2116
|
+
J(u("img", {
|
|
1859
2117
|
src: d(o).logo,
|
|
1860
2118
|
alt: `${d(o).label} Logo`,
|
|
1861
2119
|
class: "inline-block h16",
|
|
1862
2120
|
onError: i,
|
|
1863
2121
|
onLoad: l
|
|
1864
|
-
}, null, 40,
|
|
1865
|
-
[
|
|
2122
|
+
}, null, 40, wl), [
|
|
2123
|
+
[en, t.value && !s.value]
|
|
1866
2124
|
]),
|
|
1867
|
-
s.value ? (p(), m("span",
|
|
2125
|
+
s.value ? (p(), m("span", kl, le(d(o).label), 1)) : U("", !0)
|
|
1868
2126
|
]),
|
|
1869
|
-
|
|
1870
|
-
x(
|
|
2127
|
+
u("span", null, [
|
|
2128
|
+
x(hl, { "h-18": "" })
|
|
1871
2129
|
])
|
|
1872
2130
|
]),
|
|
1873
|
-
|
|
1874
|
-
|
|
2131
|
+
u("div", Il, [
|
|
2132
|
+
u("span", $l, le(d(o).label) + " DevTools ", 1)
|
|
1875
2133
|
])
|
|
1876
2134
|
]),
|
|
1877
|
-
c[6] || (c[6] =
|
|
1878
|
-
|
|
1879
|
-
|
|
2135
|
+
c[6] || (c[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2136
|
+
u("div", Sl, [
|
|
2137
|
+
u("div", {
|
|
1880
2138
|
flex: "~ col auto",
|
|
1881
2139
|
"min-w-40": "",
|
|
1882
2140
|
p4: "",
|
|
1883
2141
|
"theme-card-lime": "",
|
|
1884
|
-
onClick: c[0] || (c[0] = (
|
|
2142
|
+
onClick: c[0] || (c[0] = (f) => d(e).push("/state"))
|
|
1885
2143
|
}, c[2] || (c[2] = [
|
|
1886
|
-
|
|
2144
|
+
u("div", {
|
|
1887
2145
|
"i-carbon-tree-view-alt": "",
|
|
1888
2146
|
"text-3xl": ""
|
|
1889
2147
|
}, null, -1),
|
|
1890
|
-
|
|
2148
|
+
u("code", null, "State", -1)
|
|
1891
2149
|
])),
|
|
1892
|
-
(
|
|
2150
|
+
(g = d(o).timelineLayerIds) != null && g.length ? (p(), m("div", {
|
|
1893
2151
|
key: 0,
|
|
1894
2152
|
flex: "~ col auto",
|
|
1895
2153
|
"min-w-40": "",
|
|
1896
2154
|
p4: "",
|
|
1897
2155
|
"theme-card-lime": "",
|
|
1898
|
-
onClick: c[1] || (c[1] = (
|
|
2156
|
+
onClick: c[1] || (c[1] = (f) => d(e).push("/timeline"))
|
|
1899
2157
|
}, c[3] || (c[3] = [
|
|
1900
|
-
|
|
2158
|
+
u("div", {
|
|
1901
2159
|
"i-mdi:timeline-clock-outline": "",
|
|
1902
2160
|
"text-3xl": ""
|
|
1903
2161
|
}, null, -1),
|
|
1904
|
-
|
|
2162
|
+
u("div", null, "Timeline", -1)
|
|
1905
2163
|
]))) : U("", !0)
|
|
1906
2164
|
]),
|
|
1907
|
-
|
|
1908
|
-
|
|
2165
|
+
u("div", Tl, [
|
|
2166
|
+
u("a", {
|
|
1909
2167
|
href: d(o).homepage,
|
|
1910
2168
|
target: "_blank",
|
|
1911
2169
|
flex: "~ gap1",
|
|
@@ -1914,71 +2172,19 @@ const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
|
|
|
1914
2172
|
hover: "op100 text-yellow",
|
|
1915
2173
|
transition: ""
|
|
1916
2174
|
}, c[4] || (c[4] = [
|
|
1917
|
-
|
|
2175
|
+
u("div", { "i-carbon-document": "" }, null, -1),
|
|
1918
2176
|
ne(" View Documentation ")
|
|
1919
|
-
]), 8,
|
|
2177
|
+
]), 8, El)
|
|
1920
2178
|
]),
|
|
1921
|
-
c[7] || (c[7] =
|
|
2179
|
+
c[7] || (c[7] = u("div", { "flex-auto": "" }, null, -1))
|
|
1922
2180
|
])
|
|
1923
2181
|
]);
|
|
1924
2182
|
};
|
|
1925
2183
|
}
|
|
1926
|
-
}),
|
|
1927
|
-
border: "b base",
|
|
1928
|
-
class: "flex items-center justify-between px3"
|
|
1929
|
-
}, f1 = ["href"], v1 = ["href"], Se = /* @__PURE__ */ B({
|
|
1930
|
-
__name: "DevToolsHeader",
|
|
1931
|
-
props: {
|
|
1932
|
-
githubRepoLink: {},
|
|
1933
|
-
docLink: {}
|
|
1934
|
-
},
|
|
1935
|
-
setup(n) {
|
|
1936
|
-
const e = Me();
|
|
1937
|
-
return (o, t) => (p(), m("div", p1, [
|
|
1938
|
-
r("div", null, [
|
|
1939
|
-
nt(o.$slots, "default", {}, () => [
|
|
1940
|
-
r("i", {
|
|
1941
|
-
class: "i-ep:back cursor-pointer op70 text-base hover:op100",
|
|
1942
|
-
onClick: t[0] || (t[0] = (s) => d(e).push("/"))
|
|
1943
|
-
})
|
|
1944
|
-
])
|
|
1945
|
-
]),
|
|
1946
|
-
r("div", null, [
|
|
1947
|
-
r("a", {
|
|
1948
|
-
class: "pr2",
|
|
1949
|
-
href: o.docLink,
|
|
1950
|
-
target: "_blank",
|
|
1951
|
-
title: "View Documentation"
|
|
1952
|
-
}, t[1] || (t[1] = [
|
|
1953
|
-
r("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
1954
|
-
]), 8, f1),
|
|
1955
|
-
o.githubRepoLink ? (p(), m("a", {
|
|
1956
|
-
key: 0,
|
|
1957
|
-
href: o.githubRepoLink,
|
|
1958
|
-
target: "_blank",
|
|
1959
|
-
title: "Star on GitHub"
|
|
1960
|
-
}, t[2] || (t[2] = [
|
|
1961
|
-
r("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
1962
|
-
]), 8, v1)) : U("", !0)
|
|
1963
|
-
])
|
|
1964
|
-
]));
|
|
1965
|
-
}
|
|
1966
|
-
}), m1 = { class: "flex gap3" }, h1 = ["onClick"], Te = /* @__PURE__ */ B({
|
|
1967
|
-
__name: "Navbar",
|
|
1968
|
-
setup(n) {
|
|
1969
|
-
const { routes: e, currentRoute: o } = Ko(), t = Me();
|
|
1970
|
-
return (s, l) => (p(), m("ul", m1, [
|
|
1971
|
-
(p(!0), m(te, null, ae(d(e), (i, u) => (p(), m("li", {
|
|
1972
|
-
key: u,
|
|
1973
|
-
class: ie(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", d(o).path === i.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
1974
|
-
onClick: (c) => d(t).push(i.path)
|
|
1975
|
-
}, le(i.name), 11, h1))), 128))
|
|
1976
|
-
]));
|
|
1977
|
-
}
|
|
1978
|
-
}), g1 = { class: "flex-1 overflow-y-auto p2" }, C1 = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, _1 = { class: "w-4/5" }, x1 = {
|
|
2184
|
+
}), Nl = { class: "flex-1 overflow-y-auto p2" }, Rl = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, Al = { class: "w-4/5" }, Dl = {
|
|
1979
2185
|
key: 0,
|
|
1980
2186
|
class: "flex justify-start"
|
|
1981
|
-
},
|
|
2187
|
+
}, Pl = { key: 1 }, Zt = /* @__PURE__ */ B({
|
|
1982
2188
|
__name: "Settings",
|
|
1983
2189
|
props: {
|
|
1984
2190
|
pluginId: {},
|
|
@@ -1988,178 +2194,169 @@ const Yo = /* @__PURE__ */ be(Wo, [["render", Jo]]), Xo = {
|
|
|
1988
2194
|
emits: ["update"],
|
|
1989
2195
|
setup(n, { emit: e }) {
|
|
1990
2196
|
const o = n, t = e, s = V(() => o.options), l = V(() => o.values);
|
|
1991
|
-
function i(
|
|
1992
|
-
D.value.updatePluginSettings(o.pluginId,
|
|
1993
|
-
t("update",
|
|
2197
|
+
function i(r, c) {
|
|
2198
|
+
D.value.updatePluginSettings(o.pluginId, r, c), D.value.getPluginSettings(o.pluginId).then((g) => {
|
|
2199
|
+
t("update", g);
|
|
1994
2200
|
});
|
|
1995
2201
|
}
|
|
1996
|
-
return (
|
|
1997
|
-
|
|
1998
|
-
(p(!0), m(te, null, ae(s.value, (
|
|
1999
|
-
key:
|
|
2202
|
+
return (r, c) => (p(), m("div", Nl, [
|
|
2203
|
+
u("ul", null, [
|
|
2204
|
+
(p(!0), m(te, null, ae(s.value, (g, f) => (p(), m("li", {
|
|
2205
|
+
key: f,
|
|
2000
2206
|
class: "flex items-center py-2"
|
|
2001
2207
|
}, [
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
x(d(
|
|
2006
|
-
"model-value": l.value[
|
|
2208
|
+
u("div", Rl, le(g.label), 1),
|
|
2209
|
+
u("div", Al, [
|
|
2210
|
+
g.type === "boolean" ? (p(), m("div", Dl, [
|
|
2211
|
+
x(d(sn), {
|
|
2212
|
+
"model-value": l.value[f],
|
|
2007
2213
|
class: "row-reverse flex hover:bg-active py1 pl2 pr1",
|
|
2008
|
-
"onUpdate:modelValue": (a) => i(
|
|
2214
|
+
"onUpdate:modelValue": (a) => i(f, a)
|
|
2009
2215
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2010
|
-
])) :
|
|
2011
|
-
x(d(
|
|
2012
|
-
"model-value": l.value[
|
|
2013
|
-
options:
|
|
2014
|
-
"onUpdate:modelValue": (a) => i(
|
|
2216
|
+
])) : g.type === "choice" ? (p(), m("div", Pl, [
|
|
2217
|
+
x(d(an), {
|
|
2218
|
+
"model-value": l.value[f],
|
|
2219
|
+
options: g.options,
|
|
2220
|
+
"onUpdate:modelValue": (a) => i(f, a)
|
|
2015
2221
|
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
2016
|
-
])) :
|
|
2222
|
+
])) : g.type === "text" ? (p(), z(d(Ze), {
|
|
2017
2223
|
key: 2,
|
|
2018
|
-
"model-value": l.value[
|
|
2019
|
-
"onUpdate:modelValue": (a) => i(
|
|
2224
|
+
"model-value": l.value[f],
|
|
2225
|
+
"onUpdate:modelValue": (a) => i(f, a)
|
|
2020
2226
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : U("", !0)
|
|
2021
2227
|
])
|
|
2022
2228
|
]))), 128))
|
|
2023
2229
|
])
|
|
2024
2230
|
]));
|
|
2025
2231
|
}
|
|
2026
|
-
}),
|
|
2232
|
+
}), Ml = { class: "h-full flex flex-col" }, Hl = /* @__PURE__ */ B({
|
|
2027
2233
|
__name: "Settings",
|
|
2028
2234
|
setup(n) {
|
|
2029
|
-
const e = ve("pluginSettings"), o =
|
|
2235
|
+
const e = ve("pluginSettings"), o = Te(), t = V(() => e.value.options), s = V(() => e.value.values);
|
|
2030
2236
|
function l(i) {
|
|
2031
2237
|
e.value = i;
|
|
2032
2238
|
}
|
|
2033
|
-
return (i,
|
|
2034
|
-
x(
|
|
2239
|
+
return (i, r) => (p(), m("div", Ml, [
|
|
2240
|
+
x($e, {
|
|
2035
2241
|
"doc-link": d(o).homepage
|
|
2036
2242
|
}, {
|
|
2037
2243
|
default: M(() => [
|
|
2038
|
-
x(
|
|
2244
|
+
x(Se)
|
|
2039
2245
|
]),
|
|
2040
2246
|
_: 1
|
|
2041
2247
|
}, 8, ["doc-link"]),
|
|
2042
2248
|
x(Zt, {
|
|
2043
|
-
"plugin-id": d(o).
|
|
2249
|
+
"plugin-id": d(o).pluginId,
|
|
2044
2250
|
options: t.value,
|
|
2045
2251
|
values: s.value,
|
|
2046
2252
|
onUpdate: l
|
|
2047
2253
|
}, null, 8, ["plugin-id", "options", "values"])
|
|
2048
2254
|
]));
|
|
2049
2255
|
}
|
|
2050
|
-
}),
|
|
2051
|
-
function I1(n, e) {
|
|
2052
|
-
return p(), m("div", $1, [
|
|
2053
|
-
e[0] || (e[0] = r("i", { class: "i-lets-icons:blank-light" }, null, -1)),
|
|
2054
|
-
r("span", null, [
|
|
2055
|
-
nt(n.$slots, "default")
|
|
2056
|
-
])
|
|
2057
|
-
]);
|
|
2058
|
-
}
|
|
2059
|
-
const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex flex-col" }, T1 = { class: "h-full flex flex-col p2" }, E1 = {
|
|
2256
|
+
}), Ll = { class: "h-full flex flex-col" }, Ol = { class: "h-full flex flex-col p2" }, jl = {
|
|
2060
2257
|
key: 0,
|
|
2061
2258
|
class: "mb-1 flex justify-end pb-1",
|
|
2062
2259
|
border: "b dashed base"
|
|
2063
|
-
},
|
|
2260
|
+
}, Ul = { class: "flex items-center gap-2 px-1" }, zl = ["onClick"], Bl = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Zl = { class: "h-full flex flex-col p2" }, Fl = {
|
|
2064
2261
|
key: 0,
|
|
2065
2262
|
class: "mb-1 flex justify-end pb-1",
|
|
2066
2263
|
border: "b dashed base"
|
|
2067
|
-
},
|
|
2264
|
+
}, Gl = { class: "flex items-center gap-2 px-1" }, Kl = ["onClick"], Wl = /* @__PURE__ */ B({
|
|
2068
2265
|
__name: "Index",
|
|
2069
2266
|
setup(n) {
|
|
2070
|
-
const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t =
|
|
2071
|
-
var
|
|
2072
|
-
return (
|
|
2073
|
-
}),
|
|
2074
|
-
function
|
|
2267
|
+
const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = Te(), s = V(() => t.value.id), l = T([]), i = T([]), r = T([]), c = V(() => {
|
|
2268
|
+
var k, $;
|
|
2269
|
+
return (k = r.value) != null && k.length ? C(($ = r.value) == null ? void 0 : $[0]) : [];
|
|
2270
|
+
}), g = V(() => w(r.value)), f = V(() => g.value.map((k) => k.id)), a = T(""), h = T({}), y = V(() => !Object.keys(h.value).length);
|
|
2271
|
+
function C(k, $ = [], _ = []) {
|
|
2075
2272
|
var N;
|
|
2076
|
-
return $.push(
|
|
2077
|
-
|
|
2273
|
+
return $.push(k.id), ((N = k.children) == null ? void 0 : N.length) === 0 && _.push([...$]), Array.isArray(k.children) && k.children.forEach((F) => {
|
|
2274
|
+
C(F, $, _);
|
|
2078
2275
|
}), $.pop(), _;
|
|
2079
2276
|
}
|
|
2080
|
-
function
|
|
2277
|
+
function v(k, $) {
|
|
2081
2278
|
const _ = [];
|
|
2082
|
-
return
|
|
2279
|
+
return k == null || k.forEach((N) => {
|
|
2083
2280
|
_.push(...N.slice(0, $ + 1));
|
|
2084
2281
|
}), [...new Set(_)];
|
|
2085
2282
|
}
|
|
2086
|
-
function
|
|
2283
|
+
function w(k) {
|
|
2087
2284
|
const $ = [], _ = (N) => {
|
|
2088
2285
|
N == null || N.forEach((F) => {
|
|
2089
2286
|
var se;
|
|
2090
2287
|
$.push(F), (se = F.children) != null && se.length && _(F.children);
|
|
2091
2288
|
});
|
|
2092
2289
|
};
|
|
2093
|
-
return _(
|
|
2290
|
+
return _(k), $;
|
|
2094
2291
|
}
|
|
2095
2292
|
function j() {
|
|
2096
|
-
D.value.getInspectorNodeActions(s.value).then((
|
|
2097
|
-
l.value =
|
|
2293
|
+
D.value.getInspectorNodeActions(s.value).then((k) => {
|
|
2294
|
+
l.value = k;
|
|
2098
2295
|
});
|
|
2099
2296
|
}
|
|
2100
|
-
function
|
|
2101
|
-
D.value.getInspectorActions(s.value).then((
|
|
2102
|
-
i.value =
|
|
2297
|
+
function L() {
|
|
2298
|
+
D.value.getInspectorActions(s.value).then((k) => {
|
|
2299
|
+
i.value = k;
|
|
2103
2300
|
});
|
|
2104
2301
|
}
|
|
2105
|
-
j(),
|
|
2106
|
-
function A(
|
|
2107
|
-
D.value.callInspectorNodeAction(s.value,
|
|
2302
|
+
j(), L();
|
|
2303
|
+
function A(k) {
|
|
2304
|
+
D.value.callInspectorNodeAction(s.value, k, a.value);
|
|
2108
2305
|
}
|
|
2109
|
-
function k
|
|
2110
|
-
D.value.callInspectorAction(s.value,
|
|
2306
|
+
function I(k) {
|
|
2307
|
+
D.value.callInspectorAction(s.value, k);
|
|
2111
2308
|
}
|
|
2112
|
-
function R(
|
|
2309
|
+
function R(k) {
|
|
2113
2310
|
var $;
|
|
2114
|
-
for (const _ in
|
|
2115
|
-
($ =
|
|
2116
|
-
return
|
|
2311
|
+
for (const _ in k)
|
|
2312
|
+
($ = k[_]) != null && $.length || delete k[_];
|
|
2313
|
+
return k;
|
|
2117
2314
|
}
|
|
2118
|
-
function H(
|
|
2119
|
-
D.value.getInspectorState({ inspectorId: s.value, nodeId:
|
|
2315
|
+
function H(k) {
|
|
2316
|
+
D.value.getInspectorState({ inspectorId: s.value, nodeId: k }).then(($) => {
|
|
2120
2317
|
const _ = Y($);
|
|
2121
|
-
_ && (
|
|
2318
|
+
_ && (h.value = R(_), o.value = Array.from({ length: Object.keys(h.value).length }, (N, F) => `${F}`));
|
|
2122
2319
|
});
|
|
2123
2320
|
}
|
|
2124
2321
|
function K() {
|
|
2125
|
-
|
|
2322
|
+
h.value = {};
|
|
2126
2323
|
}
|
|
2127
2324
|
X(a, () => {
|
|
2128
2325
|
K(), H(a.value);
|
|
2129
2326
|
});
|
|
2130
2327
|
const Z = () => {
|
|
2131
|
-
D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((
|
|
2132
|
-
const $ = Y(
|
|
2133
|
-
|
|
2328
|
+
D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((k) => {
|
|
2329
|
+
const $ = Y(k);
|
|
2330
|
+
r.value = $, !a.value && $.length && (a.value = $[0].id, e.value = v(c.value, 1), H($[0].id));
|
|
2134
2331
|
});
|
|
2135
2332
|
};
|
|
2136
|
-
|
|
2137
|
-
function E(
|
|
2333
|
+
Lt(s).toBeTruthy().then(Z);
|
|
2334
|
+
function E(k) {
|
|
2138
2335
|
var _, N;
|
|
2139
|
-
const $ = Y(
|
|
2140
|
-
!$.rootNodes.length || $.inspectorId !== s.value || (
|
|
2336
|
+
const $ = Y(k);
|
|
2337
|
+
!$.rootNodes.length || $.inspectorId !== s.value || (r.value = $.rootNodes, f.value.includes(a.value) || (a.value = (N = (_ = r.value) == null ? void 0 : _[0]) == null ? void 0 : N.id, e.value = v(c.value, 1)));
|
|
2141
2338
|
}
|
|
2142
|
-
function P(
|
|
2143
|
-
const $ = Y(
|
|
2339
|
+
function P(k) {
|
|
2340
|
+
const $ = Y(k);
|
|
2144
2341
|
if ($.inspectorId !== s.value || !$.state || $.nodeId !== a.value)
|
|
2145
2342
|
return;
|
|
2146
2343
|
const { inspectorId: _, ...N } = $.state;
|
|
2147
|
-
|
|
2344
|
+
h.value = R(N);
|
|
2148
2345
|
}
|
|
2149
2346
|
return Re(() => {
|
|
2150
2347
|
D.functions.on(W.INSPECTOR_TREE_UPDATED, E), D.functions.on(W.INSPECTOR_STATE_UPDATED, P);
|
|
2151
2348
|
}), ye(() => {
|
|
2152
2349
|
D.functions.off(W.INSPECTOR_TREE_UPDATED, E), D.functions.off(W.INSPECTOR_STATE_UPDATED, P);
|
|
2153
|
-
}), (
|
|
2154
|
-
x(
|
|
2350
|
+
}), (k, $) => (p(), m("div", Ll, [
|
|
2351
|
+
x($e, {
|
|
2155
2352
|
"doc-link": d(t).homepage
|
|
2156
2353
|
}, {
|
|
2157
2354
|
default: M(() => [
|
|
2158
|
-
x(
|
|
2355
|
+
x(Se)
|
|
2159
2356
|
]),
|
|
2160
2357
|
_: 1
|
|
2161
2358
|
}, 8, ["doc-link"]),
|
|
2162
|
-
|
|
2359
|
+
r.value.length ? (p(), z(d(Ae), {
|
|
2163
2360
|
key: 0,
|
|
2164
2361
|
class: "flex-1 overflow-auto"
|
|
2165
2362
|
}, {
|
|
@@ -2172,22 +2369,22 @@ const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex
|
|
|
2172
2369
|
default: M(() => {
|
|
2173
2370
|
var _;
|
|
2174
2371
|
return [
|
|
2175
|
-
|
|
2176
|
-
(_ = i.value) != null && _.length ? (p(), m("div",
|
|
2177
|
-
|
|
2372
|
+
u("div", Ol, [
|
|
2373
|
+
(_ = i.value) != null && _.length ? (p(), m("div", jl, [
|
|
2374
|
+
u("div", Ul, [
|
|
2178
2375
|
(p(!0), m(te, null, ae(i.value, (N, F) => J((p(), m("div", {
|
|
2179
2376
|
key: F,
|
|
2180
2377
|
class: "flex items-center gap1",
|
|
2181
|
-
onClick: (se) =>
|
|
2378
|
+
onClick: (se) => I(F)
|
|
2182
2379
|
}, [
|
|
2183
|
-
x(d(
|
|
2380
|
+
x(d(gt), {
|
|
2184
2381
|
name: `baseline-${N.icon.replace(/\_/g, "-")}`,
|
|
2185
2382
|
"cursor-pointer": "",
|
|
2186
2383
|
op70: "",
|
|
2187
2384
|
"text-base": "",
|
|
2188
2385
|
"hover:op100": ""
|
|
2189
2386
|
}, null, 8, ["name"])
|
|
2190
|
-
], 8,
|
|
2387
|
+
], 8, zl)), [
|
|
2191
2388
|
[
|
|
2192
2389
|
d(Q),
|
|
2193
2390
|
{ content: N.tooltip },
|
|
@@ -2197,11 +2394,11 @@ const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex
|
|
|
2197
2394
|
])), 128))
|
|
2198
2395
|
])
|
|
2199
2396
|
])) : U("", !0),
|
|
2200
|
-
|
|
2201
|
-
x(
|
|
2397
|
+
u("div", Bl, [
|
|
2398
|
+
x(Me, {
|
|
2202
2399
|
modelValue: a.value,
|
|
2203
2400
|
"onUpdate:modelValue": $[0] || ($[0] = (N) => a.value = N),
|
|
2204
|
-
data:
|
|
2401
|
+
data: r.value
|
|
2205
2402
|
}, null, 8, ["modelValue", "data"])
|
|
2206
2403
|
])
|
|
2207
2404
|
])
|
|
@@ -2213,22 +2410,22 @@ const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex
|
|
|
2213
2410
|
default: M(() => {
|
|
2214
2411
|
var _;
|
|
2215
2412
|
return [
|
|
2216
|
-
|
|
2217
|
-
(_ = l.value) != null && _.length ? (p(), m("div",
|
|
2218
|
-
|
|
2413
|
+
u("div", Zl, [
|
|
2414
|
+
(_ = l.value) != null && _.length ? (p(), m("div", Fl, [
|
|
2415
|
+
u("div", Gl, [
|
|
2219
2416
|
(p(!0), m(te, null, ae(l.value, (N, F) => J((p(), m("div", {
|
|
2220
2417
|
key: F,
|
|
2221
2418
|
class: "flex items-center gap1",
|
|
2222
2419
|
onClick: (se) => A(F)
|
|
2223
2420
|
}, [
|
|
2224
|
-
x(d(
|
|
2421
|
+
x(d(gt), {
|
|
2225
2422
|
name: `baseline-${N.icon.replace(/\_/g, "-")}`,
|
|
2226
2423
|
"cursor-pointer": "",
|
|
2227
2424
|
op70: "",
|
|
2228
2425
|
"text-base": "",
|
|
2229
2426
|
"hover:op100": ""
|
|
2230
2427
|
}, null, 8, ["name"])
|
|
2231
|
-
], 8,
|
|
2428
|
+
], 8, Kl)), [
|
|
2232
2429
|
[
|
|
2233
2430
|
d(Q),
|
|
2234
2431
|
{ content: N.tooltip },
|
|
@@ -2238,9 +2435,9 @@ const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex
|
|
|
2238
2435
|
])), 128))
|
|
2239
2436
|
])
|
|
2240
2437
|
])) : U("", !0),
|
|
2241
|
-
a.value && !
|
|
2438
|
+
a.value && !y.value ? (p(), z(Pe, {
|
|
2242
2439
|
key: 1,
|
|
2243
|
-
data:
|
|
2440
|
+
data: h.value,
|
|
2244
2441
|
"node-id": a.value,
|
|
2245
2442
|
"inspector-id": s.value,
|
|
2246
2443
|
"expanded-state-id": "custom-inspector-state",
|
|
@@ -2266,364 +2463,176 @@ const Ne = /* @__PURE__ */ be(k1, [["render", I1]]), S1 = { class: "h-full flex
|
|
|
2266
2463
|
}))
|
|
2267
2464
|
]));
|
|
2268
2465
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
key: 0,
|
|
2271
|
-
class: "absolute left-5px top-4.5 h10 w0 border-l-2",
|
|
2272
|
-
border: "solid gray2"
|
|
2273
|
-
}, U1 = { class: "h-full flex items-center truncate pl5" }, z1 = {
|
|
2274
|
-
absolute: "",
|
|
2275
|
-
"top-5": "",
|
|
2276
|
-
pr2: "",
|
|
2277
|
-
"text-3": "",
|
|
2278
|
-
op40: ""
|
|
2279
|
-
}, B1 = {
|
|
2280
|
-
pl2: "",
|
|
2281
|
-
op30: ""
|
|
2282
|
-
}, Z1 = /* @__PURE__ */ B({
|
|
2283
|
-
__name: "EventList",
|
|
2284
|
-
props: /* @__PURE__ */ Be({
|
|
2285
|
-
data: {}
|
|
2286
|
-
}, {
|
|
2287
|
-
modelValue: {},
|
|
2288
|
-
modelModifiers: {}
|
|
2289
|
-
}),
|
|
2290
|
-
emits: ["update:modelValue"],
|
|
2291
|
-
setup(n) {
|
|
2292
|
-
const e = n, o = et(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], s = T(null), l = V(() => {
|
|
2293
|
-
let i = -1, u = 0;
|
|
2294
|
-
return e.data.forEach((c, C) => {
|
|
2295
|
-
(c.groupId !== u || i === -1) && (i = (i + 1) % t.length), u = c.groupId ?? u, c.id = C, c.color = t[i];
|
|
2296
|
-
}), e.data;
|
|
2297
|
-
});
|
|
2298
|
-
return X(() => l.value.length, (i) => {
|
|
2299
|
-
var u;
|
|
2300
|
-
(u = s.value) == null || u.scrollToItem(i - 1);
|
|
2301
|
-
}, { flush: "post" }), (i, u) => (p(), m("div", L1, [
|
|
2302
|
-
x(d(xn), {
|
|
2303
|
-
ref_key: "scrollerRef",
|
|
2304
|
-
ref: s,
|
|
2305
|
-
items: l.value,
|
|
2306
|
-
"min-item-size": 52,
|
|
2307
|
-
"key-field": "id",
|
|
2308
|
-
"page-mode": "",
|
|
2309
|
-
"item-tag": "li",
|
|
2310
|
-
"list-tag": "ul",
|
|
2311
|
-
buffer: 20
|
|
2312
|
-
}, {
|
|
2313
|
-
default: M(({ item: c }) => [
|
|
2314
|
-
r("div", {
|
|
2315
|
-
class: "relative mb7 h6 cursor-pointer",
|
|
2316
|
-
style: $e({ color: o.value === c.id ? c.color : "" }),
|
|
2317
|
-
onClick: (C) => o.value = c.id
|
|
2318
|
-
}, [
|
|
2319
|
-
r("span", {
|
|
2320
|
-
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
2321
|
-
style: $e({ border: `3px solid ${c.color}` })
|
|
2322
|
-
}, null, 4),
|
|
2323
|
-
c.id < i.data.length - 1 ? (p(), m("span", j1)) : U("", !0),
|
|
2324
|
-
r("p", U1, [
|
|
2325
|
-
r("span", z1, "[" + le(d(zn)(c.time)) + "]", 1),
|
|
2326
|
-
ne(" " + le(c.title) + " ", 1),
|
|
2327
|
-
r("span", B1, le(c.subtitle), 1)
|
|
2328
|
-
])
|
|
2329
|
-
], 12, O1)
|
|
2330
|
-
]),
|
|
2331
|
-
_: 1
|
|
2332
|
-
}, 8, ["items"])
|
|
2333
|
-
]));
|
|
2334
|
-
}
|
|
2335
|
-
}), F1 = { class: "h-full flex flex-col" }, G1 = {
|
|
2336
|
-
key: 0,
|
|
2337
|
-
class: "flex-1 overflow-hidden"
|
|
2338
|
-
}, K1 = {
|
|
2339
|
-
"h-full": "",
|
|
2340
|
-
"select-none": "",
|
|
2341
|
-
"overflow-scroll": "",
|
|
2342
|
-
class: "no-scrollbar"
|
|
2343
|
-
}, W1 = {
|
|
2344
|
-
"h-full": "",
|
|
2345
|
-
"select-none": "",
|
|
2346
|
-
"overflow-scroll": "",
|
|
2347
|
-
class: "no-scrollbar"
|
|
2348
|
-
}, dt = /* @__PURE__ */ B({
|
|
2349
|
-
__name: "index",
|
|
2350
|
-
props: {
|
|
2351
|
-
layerIds: {},
|
|
2352
|
-
docLink: {},
|
|
2353
|
-
githubRepoLink: {}
|
|
2354
|
-
},
|
|
2355
|
-
setup(n) {
|
|
2356
|
-
const e = n, { expanded: o } = me("timeline-state");
|
|
2357
|
-
o.value = ["0", "1"];
|
|
2358
|
-
const t = T([]), s = T(/* @__PURE__ */ new Map()), l = T(0), i = V(() => t.value[l.value] ?? null), u = V(() => {
|
|
2359
|
-
var g;
|
|
2360
|
-
const f = [];
|
|
2361
|
-
for (const b in (g = i.value) == null ? void 0 : g.data)
|
|
2362
|
-
f.push({
|
|
2363
|
-
key: b,
|
|
2364
|
-
type: b,
|
|
2365
|
-
editable: !1,
|
|
2366
|
-
value: i.value.data[b]
|
|
2367
|
-
});
|
|
2368
|
-
return f;
|
|
2369
|
-
}), c = V(() => {
|
|
2370
|
-
var b, h, S;
|
|
2371
|
-
const f = (b = i.value) == null ? void 0 : b.groupId, g = s.value.get(f);
|
|
2372
|
-
if (g) {
|
|
2373
|
-
const j = ((h = g[g.length - 1]) == null ? void 0 : h.time) - (((S = g[0]) == null ? void 0 : S.time) ?? 0);
|
|
2374
|
-
return [{
|
|
2375
|
-
key: "events",
|
|
2376
|
-
type: "events",
|
|
2377
|
-
editable: !1,
|
|
2378
|
-
value: g.length
|
|
2379
|
-
}, j && {
|
|
2380
|
-
key: "duration",
|
|
2381
|
-
type: "duration",
|
|
2382
|
-
editable: !1,
|
|
2383
|
-
value: `${j}ms`
|
|
2384
|
-
}].filter(Boolean);
|
|
2385
|
-
}
|
|
2386
|
-
}), C = V(() => ({ "Event Info": u.value, ...c.value && { "Group Info": c.value } }));
|
|
2387
|
-
function v(f) {
|
|
2388
|
-
var b;
|
|
2389
|
-
const g = f.groupId;
|
|
2390
|
-
g !== void 0 && (s.value.set(g, s.value.get(g) ?? []), (b = s.value.get(g)) == null || b.push(f));
|
|
2391
|
-
}
|
|
2392
|
-
function a(f) {
|
|
2393
|
-
const g = Y(f);
|
|
2394
|
-
if (!g)
|
|
2395
|
-
return;
|
|
2396
|
-
const { layerId: b, event: h } = g;
|
|
2397
|
-
e.layerIds.includes(b) && (t.value.push(h), v(h));
|
|
2398
|
-
}
|
|
2399
|
-
return D.functions.on(W.TIMELINE_EVENT_UPDATED, a), ye(() => {
|
|
2400
|
-
D.functions.off(W.TIMELINE_EVENT_UPDATED, a);
|
|
2401
|
-
}), (f, g) => (p(), m("div", F1, [
|
|
2402
|
-
x(Se, {
|
|
2403
|
-
"doc-link": f.docLink,
|
|
2404
|
-
"github-repo-link": f.githubRepoLink
|
|
2405
|
-
}, {
|
|
2406
|
-
default: M(() => [
|
|
2407
|
-
x(Te)
|
|
2408
|
-
]),
|
|
2409
|
-
_: 1
|
|
2410
|
-
}, 8, ["doc-link", "github-repo-link"]),
|
|
2411
|
-
t.value.length ? (p(), m("div", G1, [
|
|
2412
|
-
x(d(Ae), { class: "h-full" }, {
|
|
2413
|
-
default: M(() => [
|
|
2414
|
-
x(d(ue), {
|
|
2415
|
-
border: "r base",
|
|
2416
|
-
size: "40",
|
|
2417
|
-
"h-full": ""
|
|
2418
|
-
}, {
|
|
2419
|
-
default: M(() => [
|
|
2420
|
-
r("div", K1, [
|
|
2421
|
-
x(Z1, {
|
|
2422
|
-
modelValue: l.value,
|
|
2423
|
-
"onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
|
|
2424
|
-
data: t.value
|
|
2425
|
-
}, null, 8, ["modelValue", "data"])
|
|
2426
|
-
])
|
|
2427
|
-
]),
|
|
2428
|
-
_: 1
|
|
2429
|
-
}),
|
|
2430
|
-
x(d(ue), { size: "60" }, {
|
|
2431
|
-
default: M(() => [
|
|
2432
|
-
r("div", W1, [
|
|
2433
|
-
x(De, {
|
|
2434
|
-
class: "p3",
|
|
2435
|
-
data: C.value,
|
|
2436
|
-
"node-id": "",
|
|
2437
|
-
"inspector-id": "",
|
|
2438
|
-
"disable-edit": !0,
|
|
2439
|
-
"expanded-state-id": "timeline-state"
|
|
2440
|
-
}, null, 8, ["data"])
|
|
2441
|
-
])
|
|
2442
|
-
]),
|
|
2443
|
-
_: 1
|
|
2444
|
-
})
|
|
2445
|
-
]),
|
|
2446
|
-
_: 1
|
|
2447
|
-
})
|
|
2448
|
-
])) : (p(), z(Ne, {
|
|
2449
|
-
key: 1,
|
|
2450
|
-
class: "flex-1"
|
|
2451
|
-
}, {
|
|
2452
|
-
default: M(() => g[1] || (g[1] = [
|
|
2453
|
-
ne(" No events ")
|
|
2454
|
-
])),
|
|
2455
|
-
_: 1
|
|
2456
|
-
}))
|
|
2457
|
-
]));
|
|
2458
|
-
}
|
|
2459
|
-
}), q1 = /* @__PURE__ */ B({
|
|
2466
|
+
}), ql = /* @__PURE__ */ B({
|
|
2460
2467
|
__name: "Index",
|
|
2461
2468
|
setup(n) {
|
|
2462
|
-
const e =
|
|
2469
|
+
const e = Te();
|
|
2463
2470
|
return (o, t) => (p(), z(dt, {
|
|
2464
2471
|
"layer-ids": d(e).timelineLayerIds,
|
|
2465
2472
|
"doc-link": d(e).homepage
|
|
2466
2473
|
}, null, 8, ["layer-ids", "doc-link"]));
|
|
2467
2474
|
}
|
|
2468
|
-
}),
|
|
2475
|
+
}), Jl = {
|
|
2469
2476
|
"h-full": "",
|
|
2470
2477
|
"w-full": ""
|
|
2471
|
-
},
|
|
2478
|
+
}, Yl = { key: 0 }, J1 = /* @__PURE__ */ B({
|
|
2472
2479
|
__name: "index",
|
|
2473
2480
|
props: {
|
|
2474
|
-
id: {}
|
|
2481
|
+
id: {},
|
|
2482
|
+
pluginId: {}
|
|
2475
2483
|
},
|
|
2476
2484
|
emits: ["loadError"],
|
|
2477
2485
|
setup(n, { emit: e }) {
|
|
2478
|
-
const o = n, t = e, s =
|
|
2486
|
+
const o = n, t = e, s = Bt(), l = T(!1), i = T(null);
|
|
2479
2487
|
ge("pluginSettings", i);
|
|
2480
|
-
const
|
|
2488
|
+
const r = V(() => {
|
|
2481
2489
|
var a;
|
|
2482
2490
|
return [
|
|
2483
2491
|
{
|
|
2484
2492
|
path: "/state",
|
|
2485
2493
|
name: "State",
|
|
2486
|
-
component:
|
|
2494
|
+
component: Wl,
|
|
2487
2495
|
icon: "i-carbon-tree-view-alt"
|
|
2488
2496
|
},
|
|
2489
2497
|
((a = s.value.timelineLayerIds) == null ? void 0 : a.length) && {
|
|
2490
2498
|
path: "/timeline",
|
|
2491
2499
|
name: "Timeline",
|
|
2492
|
-
component:
|
|
2500
|
+
component: ql,
|
|
2493
2501
|
icon: "i-mdi:timeline-clock-outline"
|
|
2494
2502
|
},
|
|
2495
2503
|
{
|
|
2496
2504
|
path: "/about",
|
|
2497
2505
|
name: "About",
|
|
2498
|
-
component:
|
|
2506
|
+
component: Vl
|
|
2499
2507
|
},
|
|
2500
2508
|
i.value && {
|
|
2501
2509
|
path: "/settings",
|
|
2502
2510
|
name: "Settings",
|
|
2503
|
-
component:
|
|
2511
|
+
component: Hl,
|
|
2504
2512
|
icon: "i-mdi:cog-outline"
|
|
2505
2513
|
}
|
|
2506
2514
|
].filter(Boolean);
|
|
2507
|
-
}), { VirtualRouterView: c, restoreRouter:
|
|
2515
|
+
}), { VirtualRouterView: c, restoreRouter: g } = lt(r, {
|
|
2508
2516
|
defaultRoutePath: "/state"
|
|
2509
2517
|
});
|
|
2510
|
-
function
|
|
2518
|
+
function f() {
|
|
2511
2519
|
l.value = !0, Re(() => {
|
|
2512
2520
|
D.value.getInspectorInfo(o.id).then((a) => {
|
|
2513
2521
|
if (!a) {
|
|
2514
2522
|
t("loadError");
|
|
2515
2523
|
return;
|
|
2516
2524
|
}
|
|
2517
|
-
const
|
|
2525
|
+
const h = {
|
|
2518
2526
|
homepage: a == null ? void 0 : a.homepage,
|
|
2519
2527
|
id: a == null ? void 0 : a.id,
|
|
2520
2528
|
label: a == null ? void 0 : a.label,
|
|
2521
2529
|
logo: a == null ? void 0 : a.logo,
|
|
2522
|
-
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((
|
|
2530
|
+
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((y) => y.id),
|
|
2531
|
+
pluginId: o.pluginId
|
|
2523
2532
|
};
|
|
2524
|
-
s.value =
|
|
2525
|
-
}), D.value.getPluginSettings(o.
|
|
2533
|
+
s.value = h, g(), l.value = !1;
|
|
2534
|
+
}), D.value.getPluginSettings(o.pluginId).then((a) => {
|
|
2526
2535
|
a.options ? i.value = a : i.value = null;
|
|
2527
2536
|
});
|
|
2528
2537
|
});
|
|
2529
2538
|
}
|
|
2530
2539
|
return X(() => o.id, () => {
|
|
2531
|
-
|
|
2540
|
+
f();
|
|
2532
2541
|
}, {
|
|
2533
2542
|
immediate: !0
|
|
2534
2543
|
}), ye(() => {
|
|
2535
2544
|
D.value.unhighlight();
|
|
2536
|
-
}), (a,
|
|
2537
|
-
l.value ? (p(), m("div",
|
|
2538
|
-
x(
|
|
2545
|
+
}), (a, h) => (p(), m("div", Jl, [
|
|
2546
|
+
l.value ? (p(), m("div", Yl, [
|
|
2547
|
+
x(pl)
|
|
2539
2548
|
])) : (p(), z(d(c), { key: 1 }))
|
|
2540
2549
|
]));
|
|
2541
2550
|
}
|
|
2542
|
-
}),
|
|
2551
|
+
}), Xl = {}, Ql = {
|
|
2543
2552
|
viewBox: "0 0 566 154",
|
|
2544
2553
|
fill: "none",
|
|
2545
2554
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2546
2555
|
};
|
|
2547
|
-
function
|
|
2548
|
-
return p(), m("svg",
|
|
2549
|
-
nn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
|
|
2556
|
+
function e1(n, e) {
|
|
2557
|
+
return p(), m("svg", Ql, e[0] || (e[0] = [
|
|
2558
|
+
tn('<svg height="130" viewBox="0 0 319 477" width="180" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a"><stop offset="0" stop-color="#52ce63"></stop><stop offset="1" stop-color="#51a256"></stop></linearGradient><linearGradient id="b" x1="55.342075%" x2="42.816933%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="c" x1="55.348642%" x2="42.808103%" xlink:href="#a" y1="0%" y2="42.862855%"></linearGradient><linearGradient id="d" x1="50%" x2="50%" y1="0%" y2="58.811243%"><stop offset="0" stop-color="#8ae99c"></stop><stop offset="1" stop-color="#52ce63"></stop></linearGradient><linearGradient id="e" x1="51.37763%" x2="44.584719%" y1="17.472551%" y2="100%"><stop offset="0" stop-color="#ffe56c"></stop><stop offset="1" stop-color="#ffc63a"></stop></linearGradient><g fill="none" fill-rule="evenodd" transform="translate(-34 -24)"><g transform="matrix(.99254615 .12186934 -.12186934 .99254615 33.922073 .976691)"><path d="m103.950535 258.274149c44.361599-4.360825 60.014503-40.391282 65.353094-94.699444s-30.93219-103.451001-46.020347-101.9678079c-15.088156 1.4831932-63.0385313 58.9051239-68.3771222 113.2132869-5.3385908 54.308162 4.6827754 87.814791 49.0443752 83.453965z" fill="url(#b)" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -80.496332 125.892944)"></path><path d="m275.876752 258.273992c44.3616 4.360826 53.167133-29.265322 47.828542-83.573485-5.338591-54.308162-52.073133-111.6105744-67.16129-113.0937675-15.088156-1.4831931-52.57477 47.5401275-47.236179 101.8482895s22.207328 90.458137 66.568927 94.818963z" fill="url(#c)" transform="matrix(.70710678 .70710678 -.70710678 .70710678 191.403399 -141.861963)"></path><path d="m188.370027 216.876305c39.941834 0 50.95265-38.251987 50.95265-97.89874 0-59.6467532-37.367733-118.10125956-50.95265-118.10125956s-52.04735 58.45450636-52.04735 118.10125956c0 59.646753 12.105516 97.89874 52.04735 97.89874z" fill="url(#d)"></path></g><path d="m184.473473 501c83.118854 0 150.526527-24.145148 150.526527-133.645148s-67.407673-199.354852-150.526527-199.354852c-83.118855 0-150.473473 89.854852-150.473473 199.354852s67.354618 133.645148 150.473473 133.645148z" fill="url(#e)"></path><ellipse cx="260.5" cy="335" fill="#eaadcc" rx="21.5" ry="10"></ellipse><ellipse cx="102.5" cy="329" fill="#eaadcc" rx="21.5" ry="10" transform="matrix(.99254615 .12186934 -.12186934 .99254615 40.859033 -10.039292)"></ellipse><g transform="matrix(-.99939083 .0348995 .0348995 .99939083 269.284825 271.027667)"><path d="m73.1046985 58.2728794c6.7372416 4.9130333 14.3132632 6.6640587 22.7280649 5.2530761 8.4148016-1.4109825 14.5054466-5.2535769 18.2719346-11.527783" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="6" transform="matrix(.9998477 .01745241 -.01745241 .9998477 1.026464 -1.624794)"></path><path d="m154.501124 3c-5.937545 0-11.312782 2.40629805-15.203644 6.29680621-3.89094 3.89058529-6.29748 9.26545449-6.29748 15.20263179 0 5.9376888 2.406488 11.3127422 6.297291 15.2034272 3.890886 3.8907673 9.266197 6.2971348 15.203833 6.2971348 5.937109 0 11.311896-2.4063889 15.202387-6.2972348 3.890299-3.8906535 6.296489-9.2656636 6.296489-15.2033272 0-5.9371521-2.406242-11.3119781-6.296677-15.20253181-3.890469-3.89058674-9.265181-6.29690619-15.202199-6.29690619z" fill="#000"></path><path d="m154 21c0-3.865549 3.135362-7 6.999413-7 3.866399 0 7.000587 3.134451 7.000587 7s-3.134188 7-7.000587 7c-3.864051-.0011735-6.999413-3.134451-6.999413-7z" fill="#fff"></path><path d="m24.5 13c-5.9375292 0-11.312426 2.406268-15.20299427 6.2967181-3.89069464 3.8905765-6.29700573 9.2654765-6.29700573 15.2027199 0 5.9377549 2.40625962 11.3128391 6.29681766 15.2035153 3.89059104 3.8907092 9.26556184 6.2970467 15.20318234 6.2970467 5.9371249 0 11.3122514-2.406419 15.2030371-6.2973229 3.8905441-3.8906623 6.2969629-9.2656416 6.2969629-15.2032391 0-5.937086-2.4064703-11.3118811-6.297151-15.2024437-3.890763-3.8906448-9.2658154-6.2969943-15.202849-6.2969943z" fill="#000"></path><g fill="#fff"><path d="m136 24.499438c0 10.2185232 8.282911 18.500562 18.501124 18.500562 10.217089 0 18.498876-8.2820388 18.498876-18.500562 0-10.2173992-8.281787-18.499438-18.498876-18.499438-10.218213 0-18.501124 8.2820388-18.501124 18.499438zm-6 0c0-13.5311954 10.96929-24.499438 24.501124-24.499438 13.530838 0 24.498876 10.9683711 24.498876 24.499438 0 13.5319607-10.967808 24.500562-24.498876 24.500562-13.532064 0-24.501124-10.9684728-24.501124-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m6 34.499438c0 10.2185232 8.2817873 18.500562 18.5 18.500562 10.2170889 0 18.5-8.2820388 18.5-18.500562 0-10.2173992-8.2829111-18.499438-18.5-18.499438-10.2182127 0-18.5 8.2820388-18.5 18.499438zm-6 0c0-13.531297 10.9682681-24.499438 24.5-24.499438 13.5309398 0 24.5 10.9684728 24.5 24.499438 0 13.5318591-10.96883 24.500562-24.5 24.500562-13.531962 0-24.5-10.9683711-24.5-24.500562z" fill-rule="nonzero" stroke="#fff" stroke-width="3"></path><path d="m24 31c0-3.865549 3.134451-7 7-7s7 3.134451 7 7-3.134451 7-7 7-7-3.134451-7-7z"></path></g></g><g stroke-linecap="round" stroke-width="11"><g stroke="#ecb732"><path d="m70.5 377.5 74 77"></path><path d="m134.5 386.5-47 50"></path></g><g stroke="#ecb732" transform="matrix(-1 0 0 1 298 377)"><path d="m.5.5 74 77"></path><path d="m64.5 9.5-47 50"></path></g><g stroke="#ffc73b" transform="matrix(0 1 -1 0 215 207)"><path d="m.5.5 49 49"></path><path d="m.5 10.5 49 49" transform="matrix(-1 0 0 1 50 0)"></path></g></g></g></svg><path d="M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z" fill="currentColor"></path>', 2)
|
|
2550
2559
|
]));
|
|
2551
2560
|
}
|
|
2552
|
-
const
|
|
2561
|
+
const t1 = /* @__PURE__ */ be(Xl, [["render", e1]]), n1 = {
|
|
2553
2562
|
"h-full": "",
|
|
2554
2563
|
"w-full": "",
|
|
2555
2564
|
flex: "",
|
|
2556
2565
|
"items-center": ""
|
|
2557
|
-
},
|
|
2566
|
+
}, o1 = {
|
|
2558
2567
|
flex: "~ col gap2",
|
|
2559
2568
|
ma: "",
|
|
2560
2569
|
"px-5": ""
|
|
2561
|
-
},
|
|
2570
|
+
}, l1 = {
|
|
2562
2571
|
flex: "~ col",
|
|
2563
2572
|
"mt-20": "",
|
|
2564
2573
|
"items-center": ""
|
|
2565
|
-
},
|
|
2574
|
+
}, s1 = {
|
|
2566
2575
|
flex: "~",
|
|
2567
2576
|
"mt--10": "",
|
|
2568
2577
|
"items-center": "",
|
|
2569
2578
|
"justify-center": ""
|
|
2570
|
-
},
|
|
2579
|
+
}, a1 = { flex: "~ gap2 wrap" }, i1 = /* @__PURE__ */ B({
|
|
2571
2580
|
__name: "About",
|
|
2572
2581
|
setup(n) {
|
|
2573
|
-
const e =
|
|
2574
|
-
return (o, t) => (p(), m("div",
|
|
2575
|
-
|
|
2576
|
-
t[5] || (t[5] =
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
x(
|
|
2582
|
+
const e = De();
|
|
2583
|
+
return (o, t) => (p(), m("div", n1, [
|
|
2584
|
+
u("div", o1, [
|
|
2585
|
+
t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2586
|
+
u("div", l1, [
|
|
2587
|
+
u("div", s1, [
|
|
2588
|
+
x(t1, { "h-18": "" })
|
|
2580
2589
|
]),
|
|
2581
|
-
t[2] || (t[2] =
|
|
2590
|
+
t[2] || (t[2] = u("div", {
|
|
2582
2591
|
mb6: "",
|
|
2583
2592
|
"mt--1": "",
|
|
2584
2593
|
"text-center": "",
|
|
2585
2594
|
"text-sm": "",
|
|
2586
2595
|
flex: "~ gap-1"
|
|
2587
2596
|
}, [
|
|
2588
|
-
|
|
2597
|
+
u("span", { op40: "" }, " Pinia DevTools ")
|
|
2589
2598
|
], -1))
|
|
2590
2599
|
]),
|
|
2591
|
-
t[6] || (t[6] =
|
|
2592
|
-
|
|
2593
|
-
|
|
2600
|
+
t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2601
|
+
u("div", a1, [
|
|
2602
|
+
u("div", {
|
|
2594
2603
|
flex: "~ col auto",
|
|
2595
2604
|
"min-w-40": "",
|
|
2596
2605
|
p4: "",
|
|
2597
2606
|
"theme-card-lime": "",
|
|
2598
2607
|
onClick: t[0] || (t[0] = (s) => d(e).push("/store"))
|
|
2599
2608
|
}, t[3] || (t[3] = [
|
|
2600
|
-
|
|
2609
|
+
u("div", {
|
|
2601
2610
|
"i-carbon-tree-view-alt": "",
|
|
2602
2611
|
"text-3xl": ""
|
|
2603
2612
|
}, null, -1),
|
|
2604
|
-
|
|
2613
|
+
u("code", null, "Store", -1)
|
|
2605
2614
|
])),
|
|
2606
|
-
|
|
2615
|
+
u("div", {
|
|
2607
2616
|
flex: "~ col auto",
|
|
2608
2617
|
"min-w-40": "",
|
|
2609
2618
|
p4: "",
|
|
2610
2619
|
"theme-card-lime": "",
|
|
2611
2620
|
onClick: t[1] || (t[1] = (s) => d(e).push("/timeline"))
|
|
2612
2621
|
}, t[4] || (t[4] = [
|
|
2613
|
-
|
|
2622
|
+
u("div", {
|
|
2614
2623
|
"i-mdi:timeline-clock-outline": "",
|
|
2615
2624
|
"text-3xl": ""
|
|
2616
2625
|
}, null, -1),
|
|
2617
|
-
|
|
2626
|
+
u("div", null, "Timeline", -1)
|
|
2618
2627
|
]))
|
|
2619
2628
|
]),
|
|
2620
|
-
t[7] || (t[7] =
|
|
2629
|
+
t[7] || (t[7] = u("div", {
|
|
2621
2630
|
flex: "~ gap-6 wrap",
|
|
2622
2631
|
"mt-5": "",
|
|
2623
2632
|
"items-center": "",
|
|
2624
2633
|
"justify-center": ""
|
|
2625
2634
|
}, [
|
|
2626
|
-
|
|
2635
|
+
u("a", {
|
|
2627
2636
|
href: "https://github.com/vuejs/pinia",
|
|
2628
2637
|
target: "_blank",
|
|
2629
2638
|
flex: "~ gap1",
|
|
@@ -2632,10 +2641,10 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2632
2641
|
hover: "op100 text-blue",
|
|
2633
2642
|
transition: ""
|
|
2634
2643
|
}, [
|
|
2635
|
-
|
|
2644
|
+
u("div", { "i-carbon-star": "" }),
|
|
2636
2645
|
ne(" Star on GitHub ")
|
|
2637
2646
|
]),
|
|
2638
|
-
|
|
2647
|
+
u("a", {
|
|
2639
2648
|
href: "https://pinia.vuejs.org/",
|
|
2640
2649
|
target: "_blank",
|
|
2641
2650
|
flex: "~ gap1",
|
|
@@ -2644,141 +2653,141 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2644
2653
|
hover: "op100 text-yellow",
|
|
2645
2654
|
transition: ""
|
|
2646
2655
|
}, [
|
|
2647
|
-
|
|
2656
|
+
u("div", { "i-carbon-document": "" }),
|
|
2648
2657
|
ne(" View Documentation ")
|
|
2649
2658
|
])
|
|
2650
2659
|
], -1)),
|
|
2651
|
-
t[8] || (t[8] =
|
|
2660
|
+
t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
|
|
2652
2661
|
])
|
|
2653
2662
|
]));
|
|
2654
2663
|
}
|
|
2655
|
-
}),
|
|
2664
|
+
}), r1 = { class: "h-full flex flex-col" }, u1 = /* @__PURE__ */ B({
|
|
2656
2665
|
__name: "Settings",
|
|
2657
2666
|
setup(n) {
|
|
2658
2667
|
const e = ve("pluginSettings"), o = V(() => e.value.options), t = V(() => e.value.values);
|
|
2659
2668
|
function s(l) {
|
|
2660
2669
|
e.value = l;
|
|
2661
2670
|
}
|
|
2662
|
-
return (l, i) => (p(), m("div",
|
|
2663
|
-
x(
|
|
2671
|
+
return (l, i) => (p(), m("div", r1, [
|
|
2672
|
+
x($e, {
|
|
2664
2673
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2665
2674
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2666
2675
|
}, {
|
|
2667
2676
|
default: M(() => [
|
|
2668
|
-
x(
|
|
2677
|
+
x(Se)
|
|
2669
2678
|
]),
|
|
2670
2679
|
_: 1
|
|
2671
2680
|
}),
|
|
2672
2681
|
x(Zt, {
|
|
2673
|
-
"plugin-id":
|
|
2682
|
+
"plugin-id": "dev.esm.pinia",
|
|
2674
2683
|
options: o.value,
|
|
2675
2684
|
values: t.value,
|
|
2676
2685
|
onUpdate: s
|
|
2677
2686
|
}, null, 8, ["options", "values"])
|
|
2678
2687
|
]));
|
|
2679
2688
|
}
|
|
2680
|
-
}),
|
|
2689
|
+
}), c1 = { class: "h-full flex flex-col" }, d1 = { class: "h-full flex flex-col p2" }, p1 = {
|
|
2681
2690
|
key: 0,
|
|
2682
2691
|
class: "mb-1 flex justify-end pb-1",
|
|
2683
2692
|
border: "b dashed base"
|
|
2684
|
-
},
|
|
2693
|
+
}, f1 = { class: "flex items-center gap-2 px-1" }, v1 = ["onClick"], m1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, h1 = { class: "h-full flex flex-col p2" }, g1 = {
|
|
2685
2694
|
key: 0,
|
|
2686
2695
|
class: "mb-1 flex justify-end pb-1",
|
|
2687
2696
|
border: "b dashed base"
|
|
2688
|
-
},
|
|
2697
|
+
}, C1 = { class: "flex items-center gap-2 px-1" }, _1 = ["onClick"], pe = "pinia", x1 = /* @__PURE__ */ B({
|
|
2689
2698
|
__name: "Index",
|
|
2690
2699
|
setup(n) {
|
|
2691
|
-
const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = T([]), s = T([]), l = T(""), i = T([]),
|
|
2700
|
+
const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = T([]), s = T([]), l = T(""), i = T([]), r = V(() => {
|
|
2692
2701
|
var E, P;
|
|
2693
|
-
return (E = i.value) != null && E.length ?
|
|
2694
|
-
}), c = V(() =>
|
|
2702
|
+
return (E = i.value) != null && E.length ? h((P = i.value) == null ? void 0 : P[0]) : [];
|
|
2703
|
+
}), c = V(() => C(i.value)), g = V(() => c.value.map((E) => E.id)), f = T({}), a = V(() => {
|
|
2695
2704
|
var E, P;
|
|
2696
|
-
return !((E =
|
|
2705
|
+
return !((E = f.value.state) != null && E.length) && !((P = f.value.getters) != null && P.length);
|
|
2697
2706
|
});
|
|
2698
|
-
function
|
|
2707
|
+
function h(E, P = [], k = []) {
|
|
2699
2708
|
var $;
|
|
2700
|
-
return P.push(E.id), (($ = E.children) == null ? void 0 : $.length) === 0 &&
|
|
2701
|
-
|
|
2702
|
-
}), P.pop(),
|
|
2709
|
+
return P.push(E.id), (($ = E.children) == null ? void 0 : $.length) === 0 && k.push([...P]), Array.isArray(E.children) && E.children.forEach((_) => {
|
|
2710
|
+
h(_, P, k);
|
|
2711
|
+
}), P.pop(), k;
|
|
2703
2712
|
}
|
|
2704
|
-
function
|
|
2705
|
-
const
|
|
2713
|
+
function y(E, P) {
|
|
2714
|
+
const k = [];
|
|
2706
2715
|
return E == null || E.forEach(($) => {
|
|
2707
|
-
|
|
2708
|
-
}), [...new Set(
|
|
2716
|
+
k.push(...$.slice(0, P + 1));
|
|
2717
|
+
}), [...new Set(k)];
|
|
2709
2718
|
}
|
|
2710
|
-
function
|
|
2711
|
-
const P = [],
|
|
2719
|
+
function C(E) {
|
|
2720
|
+
const P = [], k = ($) => {
|
|
2712
2721
|
$ == null || $.forEach((_) => {
|
|
2713
2722
|
var N;
|
|
2714
|
-
P.push(_), (N = _.children) != null && N.length &&
|
|
2723
|
+
P.push(_), (N = _.children) != null && N.length && k(_.children);
|
|
2715
2724
|
});
|
|
2716
2725
|
};
|
|
2717
|
-
return
|
|
2726
|
+
return k(E), P;
|
|
2718
2727
|
}
|
|
2719
|
-
function
|
|
2728
|
+
function v() {
|
|
2720
2729
|
D.value.getInspectorNodeActions(pe).then((E) => {
|
|
2721
2730
|
t.value = E;
|
|
2722
2731
|
});
|
|
2723
2732
|
}
|
|
2724
|
-
function
|
|
2733
|
+
function w() {
|
|
2725
2734
|
D.value.getInspectorActions(pe).then((E) => {
|
|
2726
2735
|
s.value = E;
|
|
2727
2736
|
});
|
|
2728
2737
|
}
|
|
2729
|
-
|
|
2738
|
+
v(), w();
|
|
2730
2739
|
function j(E) {
|
|
2731
2740
|
D.value.callInspectorNodeAction(pe, E, l.value);
|
|
2732
2741
|
}
|
|
2733
|
-
function
|
|
2742
|
+
function L(E) {
|
|
2734
2743
|
D.value.callInspectorAction(pe, E);
|
|
2735
2744
|
}
|
|
2736
2745
|
function A(E) {
|
|
2737
2746
|
var P;
|
|
2738
|
-
for (const
|
|
2739
|
-
(P = E[
|
|
2747
|
+
for (const k in E)
|
|
2748
|
+
(P = E[k]) != null && P.length || delete E[k];
|
|
2740
2749
|
return E;
|
|
2741
2750
|
}
|
|
2742
|
-
function
|
|
2751
|
+
function I(E) {
|
|
2743
2752
|
D.value.getInspectorState({ inspectorId: pe, nodeId: E }).then((P) => {
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2753
|
+
const k = Y(P);
|
|
2754
|
+
k && (f.value = A(k), o.value = Array.from({ length: Object.keys(f.value).length }, ($, _) => `${_}`));
|
|
2746
2755
|
});
|
|
2747
2756
|
}
|
|
2748
2757
|
function R() {
|
|
2749
|
-
|
|
2758
|
+
f.value = {};
|
|
2750
2759
|
}
|
|
2751
2760
|
X(l, () => {
|
|
2752
|
-
R(),
|
|
2761
|
+
R(), I(l.value);
|
|
2753
2762
|
}), (() => {
|
|
2754
2763
|
D.value.getInspectorTree({ inspectorId: pe, filter: "" }).then((E) => {
|
|
2755
2764
|
const P = Y(E);
|
|
2756
|
-
i.value = P, !l.value && P.length && (l.value = P[0].id,
|
|
2765
|
+
i.value = P, !l.value && P.length && (l.value = P[0].id, I(P[0].id), e.value = y(r.value, 1));
|
|
2757
2766
|
});
|
|
2758
2767
|
})();
|
|
2759
2768
|
function K(E) {
|
|
2760
2769
|
const P = Y(E);
|
|
2761
|
-
P.inspectorId !== pe || !P.rootNodes.length || (i.value = P.rootNodes,
|
|
2770
|
+
P.inspectorId !== pe || !P.rootNodes.length || (i.value = P.rootNodes, g.value.includes(l.value) || (l.value = P.rootNodes[0].id, e.value = y(r.value, 1), I(P.rootNodes[0].id)));
|
|
2762
2771
|
}
|
|
2763
2772
|
function Z(E) {
|
|
2764
2773
|
const P = Y(E);
|
|
2765
2774
|
if (P.inspectorId !== pe)
|
|
2766
2775
|
return;
|
|
2767
|
-
const
|
|
2768
|
-
|
|
2769
|
-
state:
|
|
2770
|
-
getters:
|
|
2776
|
+
const k = P.state;
|
|
2777
|
+
f.value = A({
|
|
2778
|
+
state: k.state,
|
|
2779
|
+
getters: k.getters
|
|
2771
2780
|
});
|
|
2772
2781
|
}
|
|
2773
2782
|
return D.functions.on(W.INSPECTOR_TREE_UPDATED, K), D.functions.on(W.INSPECTOR_STATE_UPDATED, Z), ye(() => {
|
|
2774
2783
|
D.functions.off(W.INSPECTOR_TREE_UPDATED, K), D.functions.off(W.INSPECTOR_STATE_UPDATED, Z);
|
|
2775
|
-
}), (E, P) => (p(), m("div",
|
|
2776
|
-
x(
|
|
2784
|
+
}), (E, P) => (p(), m("div", c1, [
|
|
2785
|
+
x($e, {
|
|
2777
2786
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2778
2787
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2779
2788
|
}, {
|
|
2780
2789
|
default: M(() => [
|
|
2781
|
-
x(
|
|
2790
|
+
x(Se)
|
|
2782
2791
|
]),
|
|
2783
2792
|
_: 1
|
|
2784
2793
|
}),
|
|
@@ -2790,24 +2799,24 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2790
2799
|
"h-full": ""
|
|
2791
2800
|
}, {
|
|
2792
2801
|
default: M(() => {
|
|
2793
|
-
var
|
|
2802
|
+
var k;
|
|
2794
2803
|
return [
|
|
2795
|
-
|
|
2796
|
-
(
|
|
2797
|
-
|
|
2804
|
+
u("div", d1, [
|
|
2805
|
+
(k = s.value) != null && k.length ? (p(), m("div", p1, [
|
|
2806
|
+
u("div", f1, [
|
|
2798
2807
|
(p(!0), m(te, null, ae(s.value, ($, _) => J((p(), m("div", {
|
|
2799
2808
|
key: _,
|
|
2800
2809
|
class: "flex items-center gap1",
|
|
2801
|
-
onClick: (N) =>
|
|
2810
|
+
onClick: (N) => L(_)
|
|
2802
2811
|
}, [
|
|
2803
|
-
|
|
2812
|
+
u("i", {
|
|
2804
2813
|
class: ie(`i-ic-baseline-${$.icon.replace(/\_/g, "-")}`),
|
|
2805
2814
|
"cursor-pointer": "",
|
|
2806
2815
|
op70: "",
|
|
2807
2816
|
"text-base": "",
|
|
2808
2817
|
"hover:op100": ""
|
|
2809
2818
|
}, null, 2)
|
|
2810
|
-
], 8,
|
|
2819
|
+
], 8, v1)), [
|
|
2811
2820
|
[
|
|
2812
2821
|
d(Q),
|
|
2813
2822
|
{ content: $.tooltip },
|
|
@@ -2817,8 +2826,8 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2817
2826
|
])), 128))
|
|
2818
2827
|
])
|
|
2819
2828
|
])) : U("", !0),
|
|
2820
|
-
|
|
2821
|
-
x(
|
|
2829
|
+
u("div", m1, [
|
|
2830
|
+
x(Me, {
|
|
2822
2831
|
modelValue: l.value,
|
|
2823
2832
|
"onUpdate:modelValue": P[0] || (P[0] = ($) => l.value = $),
|
|
2824
2833
|
data: i.value
|
|
@@ -2831,24 +2840,24 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2831
2840
|
}),
|
|
2832
2841
|
x(d(ue), { size: "60" }, {
|
|
2833
2842
|
default: M(() => {
|
|
2834
|
-
var
|
|
2843
|
+
var k;
|
|
2835
2844
|
return [
|
|
2836
|
-
|
|
2837
|
-
(
|
|
2838
|
-
|
|
2845
|
+
u("div", h1, [
|
|
2846
|
+
(k = t.value) != null && k.length ? (p(), m("div", g1, [
|
|
2847
|
+
u("div", C1, [
|
|
2839
2848
|
(p(!0), m(te, null, ae(t.value, ($, _) => J((p(), m("div", {
|
|
2840
2849
|
key: _,
|
|
2841
2850
|
class: "flex items-center gap1",
|
|
2842
2851
|
onClick: (N) => j(_)
|
|
2843
2852
|
}, [
|
|
2844
|
-
|
|
2853
|
+
u("i", {
|
|
2845
2854
|
class: ie(`i-ic-baseline-${$.icon.replace(/\_/g, "-")}`),
|
|
2846
2855
|
"cursor-pointer": "",
|
|
2847
2856
|
op70: "",
|
|
2848
2857
|
"text-base": "",
|
|
2849
2858
|
"hover:op100": ""
|
|
2850
2859
|
}, null, 2)
|
|
2851
|
-
], 8,
|
|
2860
|
+
], 8, _1)), [
|
|
2852
2861
|
[
|
|
2853
2862
|
d(Q),
|
|
2854
2863
|
{ content: $.tooltip },
|
|
@@ -2858,10 +2867,10 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2858
2867
|
])), 128))
|
|
2859
2868
|
])
|
|
2860
2869
|
])) : U("", !0),
|
|
2861
|
-
l.value && !a.value ? (p(), z(
|
|
2870
|
+
l.value && !a.value ? (p(), z(Pe, {
|
|
2862
2871
|
key: 1,
|
|
2863
2872
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
2864
|
-
data:
|
|
2873
|
+
data: f.value,
|
|
2865
2874
|
"node-id": l.value,
|
|
2866
2875
|
"inspector-id": pe,
|
|
2867
2876
|
"expanded-state-id": "pinia-store-state"
|
|
@@ -2881,7 +2890,7 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2881
2890
|
})
|
|
2882
2891
|
]));
|
|
2883
2892
|
}
|
|
2884
|
-
}),
|
|
2893
|
+
}), y1 = /* @__PURE__ */ B({
|
|
2885
2894
|
__name: "Index",
|
|
2886
2895
|
setup(n) {
|
|
2887
2896
|
const e = ["pinia:mutations"];
|
|
@@ -2891,10 +2900,10 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2891
2900
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2892
2901
|
}));
|
|
2893
2902
|
}
|
|
2894
|
-
}),
|
|
2903
|
+
}), b1 = {
|
|
2895
2904
|
"h-full": "",
|
|
2896
2905
|
"w-full": ""
|
|
2897
|
-
},
|
|
2906
|
+
}, Y1 = /* @__PURE__ */ B({
|
|
2898
2907
|
__name: "index",
|
|
2899
2908
|
setup(n) {
|
|
2900
2909
|
const e = T(null);
|
|
@@ -2903,137 +2912,137 @@ const tl = /* @__PURE__ */ be(X1, [["render", el]]), nl = {
|
|
|
2903
2912
|
{
|
|
2904
2913
|
path: "/store",
|
|
2905
2914
|
name: "Store",
|
|
2906
|
-
component:
|
|
2915
|
+
component: x1,
|
|
2907
2916
|
icon: "i-carbon-tree-view-alt"
|
|
2908
2917
|
},
|
|
2909
2918
|
{
|
|
2910
2919
|
path: "/timeline",
|
|
2911
2920
|
name: "Timeline",
|
|
2912
|
-
component:
|
|
2921
|
+
component: y1,
|
|
2913
2922
|
icon: "i-mdi:timeline-clock-outline"
|
|
2914
2923
|
},
|
|
2915
2924
|
{
|
|
2916
2925
|
path: "/",
|
|
2917
2926
|
name: "About",
|
|
2918
|
-
component:
|
|
2927
|
+
component: i1,
|
|
2919
2928
|
icon: "i-logos-pinia"
|
|
2920
2929
|
},
|
|
2921
2930
|
e.value && {
|
|
2922
2931
|
path: "/settings",
|
|
2923
2932
|
name: "Settings",
|
|
2924
|
-
component:
|
|
2933
|
+
component: u1,
|
|
2925
2934
|
icon: "i-mdi:cog-outline"
|
|
2926
2935
|
}
|
|
2927
|
-
].filter(Boolean)), { VirtualRouterView: t, restoreRouter: s } =
|
|
2936
|
+
].filter(Boolean)), { VirtualRouterView: t, restoreRouter: s } = lt(o, {
|
|
2928
2937
|
defaultRoutePath: "/store"
|
|
2929
2938
|
});
|
|
2930
2939
|
return Re(() => {
|
|
2931
|
-
D.value.getPluginSettings("pinia").then((
|
|
2932
|
-
|
|
2940
|
+
D.value.getPluginSettings("dev.esm.pinia").then((i) => {
|
|
2941
|
+
i.options ? e.value = i : e.value = null;
|
|
2933
2942
|
});
|
|
2934
|
-
}), (l, i) => (p(), m("div",
|
|
2943
|
+
}), (l, i) => (p(), m("div", b1, [
|
|
2935
2944
|
x(d(t))
|
|
2936
2945
|
]));
|
|
2937
2946
|
}
|
|
2938
|
-
}),
|
|
2947
|
+
}), w1 = {}, k1 = {
|
|
2939
2948
|
viewBox: "0 0 566 154",
|
|
2940
2949
|
fill: "none",
|
|
2941
2950
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2942
2951
|
};
|
|
2943
|
-
function
|
|
2944
|
-
return p(), m("svg",
|
|
2945
|
-
|
|
2952
|
+
function I1(n, e) {
|
|
2953
|
+
return p(), m("svg", k1, e[0] || (e[0] = [
|
|
2954
|
+
u("svg", {
|
|
2946
2955
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2947
2956
|
width: "8em",
|
|
2948
2957
|
height: "8em",
|
|
2949
2958
|
viewBox: "0 -4 24 24"
|
|
2950
2959
|
}, [
|
|
2951
|
-
|
|
2960
|
+
u("path", {
|
|
2952
2961
|
fill: "#3dd68c",
|
|
2953
2962
|
d: "M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"
|
|
2954
2963
|
})
|
|
2955
2964
|
], -1),
|
|
2956
|
-
|
|
2965
|
+
u("path", {
|
|
2957
2966
|
d: "M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",
|
|
2958
2967
|
fill: "currentColor"
|
|
2959
2968
|
}, null, -1)
|
|
2960
2969
|
]));
|
|
2961
2970
|
}
|
|
2962
|
-
const
|
|
2971
|
+
const $1 = /* @__PURE__ */ be(w1, [["render", I1]]), S1 = {
|
|
2963
2972
|
"h-full": "",
|
|
2964
2973
|
"w-full": "",
|
|
2965
2974
|
flex: "",
|
|
2966
2975
|
"items-center": ""
|
|
2967
|
-
},
|
|
2976
|
+
}, T1 = {
|
|
2968
2977
|
flex: "~ col gap2",
|
|
2969
2978
|
ma: "",
|
|
2970
2979
|
"px-5": ""
|
|
2971
|
-
},
|
|
2980
|
+
}, E1 = {
|
|
2972
2981
|
flex: "~ col",
|
|
2973
2982
|
"mt-20": "",
|
|
2974
2983
|
"items-center": ""
|
|
2975
|
-
},
|
|
2984
|
+
}, V1 = {
|
|
2976
2985
|
flex: "~",
|
|
2977
2986
|
"mt--10": "",
|
|
2978
2987
|
"items-center": "",
|
|
2979
2988
|
"justify-center": ""
|
|
2980
|
-
},
|
|
2989
|
+
}, N1 = { flex: "~ gap2 wrap" }, R1 = /* @__PURE__ */ B({
|
|
2981
2990
|
__name: "About",
|
|
2982
2991
|
setup(n) {
|
|
2983
|
-
const e =
|
|
2984
|
-
return (o, t) => (p(), m("div",
|
|
2985
|
-
|
|
2986
|
-
t[5] || (t[5] =
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
x(
|
|
2992
|
+
const e = De();
|
|
2993
|
+
return (o, t) => (p(), m("div", S1, [
|
|
2994
|
+
u("div", T1, [
|
|
2995
|
+
t[5] || (t[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2996
|
+
u("div", E1, [
|
|
2997
|
+
u("div", V1, [
|
|
2998
|
+
x($1, { "h-18": "" })
|
|
2990
2999
|
]),
|
|
2991
|
-
t[2] || (t[2] =
|
|
3000
|
+
t[2] || (t[2] = u("div", {
|
|
2992
3001
|
mb6: "",
|
|
2993
3002
|
"mt--1": "",
|
|
2994
3003
|
"text-center": "",
|
|
2995
3004
|
"text-sm": "",
|
|
2996
3005
|
flex: "~ gap-1"
|
|
2997
3006
|
}, [
|
|
2998
|
-
|
|
3007
|
+
u("span", { op40: "" }, " Router DevTools ")
|
|
2999
3008
|
], -1))
|
|
3000
3009
|
]),
|
|
3001
|
-
t[6] || (t[6] =
|
|
3002
|
-
|
|
3003
|
-
|
|
3010
|
+
t[6] || (t[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
3011
|
+
u("div", N1, [
|
|
3012
|
+
u("div", {
|
|
3004
3013
|
flex: "~ col auto",
|
|
3005
3014
|
"min-w-40": "",
|
|
3006
3015
|
p4: "",
|
|
3007
3016
|
"theme-card-lime": "",
|
|
3008
3017
|
onClick: t[0] || (t[0] = (s) => d(e).push("/routes"))
|
|
3009
3018
|
}, t[3] || (t[3] = [
|
|
3010
|
-
|
|
3019
|
+
u("div", {
|
|
3011
3020
|
"i-carbon-tree-view-alt": "",
|
|
3012
3021
|
"text-3xl": ""
|
|
3013
3022
|
}, null, -1),
|
|
3014
|
-
|
|
3023
|
+
u("code", null, "Routes", -1)
|
|
3015
3024
|
])),
|
|
3016
|
-
|
|
3025
|
+
u("div", {
|
|
3017
3026
|
flex: "~ col auto",
|
|
3018
3027
|
"min-w-40": "",
|
|
3019
3028
|
p4: "",
|
|
3020
3029
|
"theme-card-lime": "",
|
|
3021
3030
|
onClick: t[1] || (t[1] = (s) => d(e).push("/timeline"))
|
|
3022
3031
|
}, t[4] || (t[4] = [
|
|
3023
|
-
|
|
3032
|
+
u("div", {
|
|
3024
3033
|
"i-mdi:timeline-clock-outline": "",
|
|
3025
3034
|
"text-3xl": ""
|
|
3026
3035
|
}, null, -1),
|
|
3027
|
-
|
|
3036
|
+
u("div", null, "Timeline", -1)
|
|
3028
3037
|
]))
|
|
3029
3038
|
]),
|
|
3030
|
-
t[7] || (t[7] =
|
|
3039
|
+
t[7] || (t[7] = u("div", {
|
|
3031
3040
|
flex: "~ gap-6 wrap",
|
|
3032
3041
|
"mt-5": "",
|
|
3033
3042
|
"items-center": "",
|
|
3034
3043
|
"justify-center": ""
|
|
3035
3044
|
}, [
|
|
3036
|
-
|
|
3045
|
+
u("a", {
|
|
3037
3046
|
href: "https://github.com/vuejs/router",
|
|
3038
3047
|
target: "_blank",
|
|
3039
3048
|
flex: "~ gap1",
|
|
@@ -3042,10 +3051,10 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3042
3051
|
hover: "op100 text-blue",
|
|
3043
3052
|
transition: ""
|
|
3044
3053
|
}, [
|
|
3045
|
-
|
|
3054
|
+
u("div", { "i-carbon-star": "" }),
|
|
3046
3055
|
ne(" Star on GitHub ")
|
|
3047
3056
|
]),
|
|
3048
|
-
|
|
3057
|
+
u("a", {
|
|
3049
3058
|
href: "https://router.vuejs.org/",
|
|
3050
3059
|
target: "_blank",
|
|
3051
3060
|
flex: "~ gap1",
|
|
@@ -3054,98 +3063,98 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3054
3063
|
hover: "op100 text-yellow",
|
|
3055
3064
|
transition: ""
|
|
3056
3065
|
}, [
|
|
3057
|
-
|
|
3066
|
+
u("div", { "i-carbon-document": "" }),
|
|
3058
3067
|
ne(" View Documentation ")
|
|
3059
3068
|
])
|
|
3060
3069
|
], -1)),
|
|
3061
|
-
t[8] || (t[8] =
|
|
3070
|
+
t[8] || (t[8] = u("div", { "flex-auto": "" }, null, -1))
|
|
3062
3071
|
])
|
|
3063
3072
|
]));
|
|
3064
3073
|
}
|
|
3065
|
-
}),
|
|
3074
|
+
}), A1 = { class: "h-full flex flex-col" }, D1 = {
|
|
3066
3075
|
"h-full": "",
|
|
3067
3076
|
"select-none": "",
|
|
3068
3077
|
"overflow-scroll": "",
|
|
3069
3078
|
p2: "",
|
|
3070
3079
|
class: "no-scrollbar"
|
|
3071
|
-
},
|
|
3080
|
+
}, P1 = {
|
|
3072
3081
|
"h-full": "",
|
|
3073
3082
|
"select-none": "",
|
|
3074
3083
|
"overflow-scroll": "",
|
|
3075
3084
|
class: "no-scrollbar"
|
|
3076
|
-
},
|
|
3085
|
+
}, M1 = /* @__PURE__ */ B({
|
|
3077
3086
|
__name: "Index",
|
|
3078
3087
|
setup(n) {
|
|
3079
|
-
const { expanded: e } = me(), { expanded: o } = me("routes-state"), t =
|
|
3080
|
-
var
|
|
3081
|
-
return (
|
|
3082
|
-
}), c = V(() =>
|
|
3083
|
-
function a(
|
|
3088
|
+
const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = Te(), s = V(() => t.value.id), l = T(""), i = T([]), r = V(() => {
|
|
3089
|
+
var I, R;
|
|
3090
|
+
return (I = i.value) != null && I.length ? a((R = i.value) == null ? void 0 : R[0]) : [];
|
|
3091
|
+
}), c = V(() => y(i.value)), g = V(() => c.value.map((I) => I.id)), f = T({});
|
|
3092
|
+
function a(I, R = [], H = []) {
|
|
3084
3093
|
var K;
|
|
3085
|
-
return R.push(
|
|
3094
|
+
return R.push(I.id), ((K = I.children) == null ? void 0 : K.length) === 0 && H.push([...R]), Array.isArray(I.children) && I.children.forEach((Z) => {
|
|
3086
3095
|
a(Z, R, H);
|
|
3087
3096
|
}), R.pop(), H;
|
|
3088
3097
|
}
|
|
3089
|
-
function
|
|
3098
|
+
function h(I, R) {
|
|
3090
3099
|
const H = [];
|
|
3091
|
-
return
|
|
3100
|
+
return I == null || I.forEach((K) => {
|
|
3092
3101
|
H.push(...K.slice(0, R + 1));
|
|
3093
3102
|
}), [...new Set(H)];
|
|
3094
3103
|
}
|
|
3095
|
-
function
|
|
3104
|
+
function y(I) {
|
|
3096
3105
|
const R = [], H = (K) => {
|
|
3097
3106
|
K == null || K.forEach((Z) => {
|
|
3098
3107
|
var E;
|
|
3099
3108
|
R.push(Z), (E = Z.children) != null && E.length && H(Z.children);
|
|
3100
3109
|
});
|
|
3101
3110
|
};
|
|
3102
|
-
return H(
|
|
3111
|
+
return H(I), R;
|
|
3103
3112
|
}
|
|
3104
|
-
function
|
|
3113
|
+
function C(I) {
|
|
3105
3114
|
var R;
|
|
3106
|
-
for (const H in
|
|
3107
|
-
(R =
|
|
3108
|
-
return
|
|
3115
|
+
for (const H in I)
|
|
3116
|
+
(R = I[H]) != null && R.length || delete I[H];
|
|
3117
|
+
return I;
|
|
3109
3118
|
}
|
|
3110
|
-
function
|
|
3111
|
-
D.value.getInspectorState({ inspectorId: s.value, nodeId:
|
|
3119
|
+
function v(I) {
|
|
3120
|
+
D.value.getInspectorState({ inspectorId: s.value, nodeId: I }).then((R) => {
|
|
3112
3121
|
const H = Y(R);
|
|
3113
|
-
H && (
|
|
3122
|
+
H && (f.value = C(H), o.value = Array.from({ length: Object.keys(f.value).length }, (K, Z) => `${Z}`));
|
|
3114
3123
|
});
|
|
3115
3124
|
}
|
|
3116
|
-
function
|
|
3117
|
-
|
|
3125
|
+
function w() {
|
|
3126
|
+
f.value = {};
|
|
3118
3127
|
}
|
|
3119
3128
|
X(l, () => {
|
|
3120
|
-
|
|
3129
|
+
w(), v(l.value);
|
|
3121
3130
|
});
|
|
3122
3131
|
const j = () => {
|
|
3123
|
-
D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((
|
|
3124
|
-
const R = Y(
|
|
3125
|
-
i.value = R, !l.value && R.length && (l.value = R[0].id,
|
|
3132
|
+
D.value.getInspectorTree({ inspectorId: s.value, filter: "" }).then((I) => {
|
|
3133
|
+
const R = Y(I);
|
|
3134
|
+
i.value = R, !l.value && R.length && (l.value = R[0].id, v(R[0].id), e.value = h(r.value, 1));
|
|
3126
3135
|
});
|
|
3127
3136
|
};
|
|
3128
|
-
|
|
3129
|
-
function
|
|
3130
|
-
const R = Y(
|
|
3131
|
-
R.inspectorId !== s.value || !R.rootNodes.length || (i.value = R.rootNodes,
|
|
3137
|
+
Lt(s).toBeTruthy().then(j);
|
|
3138
|
+
function L(I) {
|
|
3139
|
+
const R = Y(I);
|
|
3140
|
+
R.inspectorId !== s.value || !R.rootNodes.length || (i.value = R.rootNodes, g.value.includes(l.value) || (l.value = R.rootNodes[0].id, e.value = h(r.value, 1), v(R.rootNodes[0].id)));
|
|
3132
3141
|
}
|
|
3133
|
-
function A(
|
|
3134
|
-
const R = Y(
|
|
3142
|
+
function A(I) {
|
|
3143
|
+
const R = Y(I);
|
|
3135
3144
|
if (R.inspectorId !== s.value)
|
|
3136
3145
|
return;
|
|
3137
3146
|
const H = R.state;
|
|
3138
|
-
|
|
3147
|
+
f.value = C(H);
|
|
3139
3148
|
}
|
|
3140
|
-
return D.functions.on(W.INSPECTOR_TREE_UPDATED,
|
|
3141
|
-
D.functions.off(W.INSPECTOR_TREE_UPDATED,
|
|
3142
|
-
}), (
|
|
3143
|
-
x(
|
|
3149
|
+
return D.functions.on(W.INSPECTOR_TREE_UPDATED, L), D.functions.on(W.INSPECTOR_STATE_UPDATED, A), ye(() => {
|
|
3150
|
+
D.functions.off(W.INSPECTOR_TREE_UPDATED, L), D.functions.off(W.INSPECTOR_STATE_UPDATED, A);
|
|
3151
|
+
}), (I, R) => (p(), m("div", A1, [
|
|
3152
|
+
x($e, {
|
|
3144
3153
|
"doc-link": "https://router.vuejs.org/",
|
|
3145
3154
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3146
3155
|
}, {
|
|
3147
3156
|
default: M(() => [
|
|
3148
|
-
x(
|
|
3157
|
+
x(Se)
|
|
3149
3158
|
]),
|
|
3150
3159
|
_: 1
|
|
3151
3160
|
}),
|
|
@@ -3157,8 +3166,8 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3157
3166
|
"h-full": ""
|
|
3158
3167
|
}, {
|
|
3159
3168
|
default: M(() => [
|
|
3160
|
-
|
|
3161
|
-
x(
|
|
3169
|
+
u("div", D1, [
|
|
3170
|
+
x(Me, {
|
|
3162
3171
|
modelValue: l.value,
|
|
3163
3172
|
"onUpdate:modelValue": R[0] || (R[0] = (H) => l.value = H),
|
|
3164
3173
|
data: i.value
|
|
@@ -3169,11 +3178,11 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3169
3178
|
}),
|
|
3170
3179
|
x(d(ue), { size: "60" }, {
|
|
3171
3180
|
default: M(() => [
|
|
3172
|
-
|
|
3173
|
-
l.value ? (p(), z(
|
|
3181
|
+
u("div", P1, [
|
|
3182
|
+
l.value ? (p(), z(Pe, {
|
|
3174
3183
|
key: 0,
|
|
3175
3184
|
class: "p3",
|
|
3176
|
-
data:
|
|
3185
|
+
data: f.value,
|
|
3177
3186
|
"node-id": "",
|
|
3178
3187
|
"inspector-id": "router",
|
|
3179
3188
|
"expanded-state-id": "routes-state"
|
|
@@ -3192,42 +3201,42 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3192
3201
|
})
|
|
3193
3202
|
]));
|
|
3194
3203
|
}
|
|
3195
|
-
}),
|
|
3204
|
+
}), H1 = /* @__PURE__ */ B({
|
|
3196
3205
|
__name: "Index",
|
|
3197
3206
|
setup(n) {
|
|
3198
|
-
const e =
|
|
3207
|
+
const e = Te();
|
|
3199
3208
|
return (o, t) => (p(), z(dt, {
|
|
3200
3209
|
"layer-ids": d(e).timelineLayerIds,
|
|
3201
3210
|
"doc-link": "https://router.vuejs.org/",
|
|
3202
3211
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3203
3212
|
}, null, 8, ["layer-ids"]));
|
|
3204
3213
|
}
|
|
3205
|
-
}),
|
|
3214
|
+
}), L1 = {
|
|
3206
3215
|
"h-full": "",
|
|
3207
3216
|
"w-full": ""
|
|
3208
|
-
},
|
|
3217
|
+
}, X1 = /* @__PURE__ */ B({
|
|
3209
3218
|
__name: "index",
|
|
3210
3219
|
props: {
|
|
3211
3220
|
id: {}
|
|
3212
3221
|
},
|
|
3213
3222
|
setup(n) {
|
|
3214
|
-
const e = n, o =
|
|
3223
|
+
const e = n, o = Bt(), t = T(!1), { VirtualRouterView: s, restoreRouter: l } = lt([
|
|
3215
3224
|
{
|
|
3216
3225
|
path: "/routes",
|
|
3217
3226
|
name: "Routes",
|
|
3218
|
-
component:
|
|
3227
|
+
component: M1,
|
|
3219
3228
|
icon: "i-carbon-tree-view-alt"
|
|
3220
3229
|
},
|
|
3221
3230
|
{
|
|
3222
3231
|
path: "/timeline",
|
|
3223
3232
|
name: "Timeline",
|
|
3224
|
-
component:
|
|
3233
|
+
component: H1,
|
|
3225
3234
|
icon: "i-mdi:timeline-clock-outline"
|
|
3226
3235
|
},
|
|
3227
3236
|
{
|
|
3228
3237
|
path: "/about",
|
|
3229
3238
|
name: "About",
|
|
3230
|
-
component:
|
|
3239
|
+
component: R1,
|
|
3231
3240
|
icon: "i-ri-route-line"
|
|
3232
3241
|
}
|
|
3233
3242
|
], {
|
|
@@ -3235,31 +3244,33 @@ const Sl = /* @__PURE__ */ be(kl, [["render", Il]]), Tl = {
|
|
|
3235
3244
|
});
|
|
3236
3245
|
function i() {
|
|
3237
3246
|
t.value = !0, Re(() => {
|
|
3238
|
-
D.value.getInspectorInfo(e.id).then((
|
|
3239
|
-
if (!
|
|
3247
|
+
D.value.getInspectorInfo(e.id).then((r) => {
|
|
3248
|
+
if (!r)
|
|
3240
3249
|
return;
|
|
3241
3250
|
const c = {
|
|
3242
|
-
homepage:
|
|
3243
|
-
id:
|
|
3244
|
-
label:
|
|
3245
|
-
logo:
|
|
3246
|
-
timelineLayerIds:
|
|
3251
|
+
homepage: r == null ? void 0 : r.homepage,
|
|
3252
|
+
id: r == null ? void 0 : r.id,
|
|
3253
|
+
label: r == null ? void 0 : r.label,
|
|
3254
|
+
logo: r == null ? void 0 : r.logo,
|
|
3255
|
+
timelineLayerIds: r == null ? void 0 : r.timelineLayers.map((g) => g.id)
|
|
3247
3256
|
};
|
|
3248
3257
|
o.value = c, l(), t.value = !1;
|
|
3249
3258
|
});
|
|
3250
3259
|
});
|
|
3251
3260
|
}
|
|
3252
|
-
return X(() => e.id, (
|
|
3253
|
-
|
|
3254
|
-
}), (
|
|
3261
|
+
return X(() => e.id, (r) => {
|
|
3262
|
+
r && i();
|
|
3263
|
+
}), (r, c) => (p(), m("div", L1, [
|
|
3255
3264
|
x(d(s))
|
|
3256
3265
|
]));
|
|
3257
3266
|
}
|
|
3258
3267
|
});
|
|
3259
3268
|
export {
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3269
|
+
q1 as Components,
|
|
3270
|
+
J1 as CustomInspector,
|
|
3271
|
+
Y1 as Pinia,
|
|
3272
|
+
X1 as Router,
|
|
3273
|
+
Sn as SelectiveList,
|
|
3274
|
+
dt as Timeline,
|
|
3275
|
+
W1 as useCustomInspector
|
|
3265
3276
|
};
|