@vue/devtools-applet 7.6.0 → 7.6.2
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/composables/custom-inspector-state.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1571 -1509
- package/dist/modules/pinia/constants.d.ts +2 -0
- package/dist/utils/search.d.ts +7 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as B, withDirectives as
|
|
2
|
-
import { vTooltip as
|
|
3
|
-
import { isPlainObject as cn, UNDEFINED as
|
|
4
|
-
import { rpc as
|
|
5
|
-
import { Splitpanes as
|
|
6
|
-
import { isArray as
|
|
1
|
+
import { defineComponent as B, withDirectives as q, openBlock as p, createElementBlock as v, normalizeStyle as $e, unref as r, createTextVNode as X, toDisplayString as ae, mergeModels as je, useModel as Xe, Fragment as oe, renderList as ue, normalizeClass as se, createBlock as z, toValue as mt, ref as I, computed as E, h as Xt, provide as Ce, inject as ve, createElementVNode as d, renderSlot as Qe, createCommentVNode as O, isRef as Ze, watch as Q, onMounted as Tt, nextTick as ze, readonly as Qt, getCurrentScope as en, onScopeDispose as tn, getCurrentInstance as et, reactive as ht, shallowRef as gt, toRaw as Et, mergeProps as ke, withModifiers as fe, withCtx as L, createVNode as y, watchEffect as tt, onUnmounted as we, vShow as nn, createStaticVNode as on } from "vue";
|
|
2
|
+
import { vTooltip as J, VueButton as pe, VueIcon as ie, VueDropdown as ln, VueDropdownButton as Ct, VueInput as _e, VueIcIcon as Be, VueCodeBlock as sn, VueDialog as an, VueSwitch as rn, VueSelect as un } from "@vue/devtools-ui";
|
|
3
|
+
import { isPlainObject as cn, UNDEFINED as Vt, NAN as dn, INFINITY as pn, NEGATIVE_INFINITY as fn, getRaw as Nt, toSubmit as Oe, formatInspectorStateValue as vn, getInspectorStateValueType as _t, toEdit as mn, parse as ee } from "@vue/devtools-kit";
|
|
4
|
+
import { rpc as D, useDevToolsState as Rt, DevToolsMessagingEvents as Y, onRpcConnected as Ne } from "@vue/devtools-core";
|
|
5
|
+
import { Splitpanes as Re, Pane as ce } from "splitpanes";
|
|
6
|
+
import { isArray as yt, isObject as xt, sortByKey as At, isInSeparateWindow as hn, isInChromePanel as bt } from "@vue/devtools-shared";
|
|
7
7
|
import { debounce as gn } from "perfect-debounce";
|
|
8
8
|
import { RecycleScroller as Cn } from "vue-virtual-scroller";
|
|
9
9
|
import { flatten as _n, groupBy as yn } from "lodash-es";
|
|
10
|
-
function
|
|
10
|
+
function wt(n) {
|
|
11
11
|
return n.toString(16).padStart(6, "0");
|
|
12
12
|
}
|
|
13
13
|
function xn(n, e) {
|
|
@@ -15,54 +15,68 @@ function xn(n, e) {
|
|
|
15
15
|
return `${o.toString().match(/\d\d:\d\d:\d\d/)[0]}${e === "ms" ? `.${String(o.getMilliseconds()).padStart(3, "0")}` : ""}`;
|
|
16
16
|
}
|
|
17
17
|
function bn(n, e) {
|
|
18
|
-
const o = /* @__PURE__ */ new Map(), t =
|
|
18
|
+
const o = /* @__PURE__ */ new Map(), t = Pt(n, e.toLowerCase(), o, 0);
|
|
19
19
|
return o.clear(), t;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
if (t >
|
|
21
|
+
const Dt = 10;
|
|
22
|
+
function Pt(n, e, o, t) {
|
|
23
|
+
if (t > Dt)
|
|
24
24
|
return !1;
|
|
25
|
-
let
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
for (let
|
|
25
|
+
let l = !1;
|
|
26
|
+
const s = Object.keys(n);
|
|
27
|
+
let c, a;
|
|
28
|
+
for (let i = 0; i < s.length && (c = s[i], a = n[c], l = Mt(e, c, a, o, t + 1), !l); i++)
|
|
29
29
|
;
|
|
30
|
-
return
|
|
30
|
+
return l;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let
|
|
34
|
-
return e === "_custom" && (e = o.display, o = o.value), (
|
|
32
|
+
function Mt(n, e, o, t, l) {
|
|
33
|
+
let s = !1, c;
|
|
34
|
+
return e === "_custom" && (e = o.display, o = o.value), (c = wn(o)) && (o = c), e && kt(e, n) ? (s = !0, t.set(o, !0)) : t.has(o) ? s = t.get(o) : Array.isArray(o) ? (t.set(o, null), s = kn(o, n, t, l), t.set(o, s)) : cn(o) ? (t.set(o, null), s = Pt(o, n, t, l), t.set(o, s)) : kt(o, n) && (s = !0, t.set(o, !0)), s;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function kt(n, e) {
|
|
37
37
|
return `${n}`.toLowerCase().includes(e);
|
|
38
38
|
}
|
|
39
39
|
function wn(n) {
|
|
40
|
-
return n === null ? "null" : n ===
|
|
40
|
+
return n === null ? "null" : n === Vt ? "undefined" : n === dn ? "NaN" : n === pn ? "Infinity" : n === fn ? "-Infinity" : !1;
|
|
41
41
|
}
|
|
42
42
|
function kn(n, e, o, t) {
|
|
43
|
-
if (t >
|
|
43
|
+
if (t > Dt)
|
|
44
44
|
return !1;
|
|
45
|
-
let
|
|
46
|
-
for (let
|
|
45
|
+
let l = !1, s;
|
|
46
|
+
for (let c = 0; c < n.length && (s = n[c], l = Mt(e, null, s, o, t + 1), !l); c++)
|
|
47
47
|
;
|
|
48
|
-
return
|
|
48
|
+
return l;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
function nt(n) {
|
|
51
|
+
const { state: e, filterKey: o, processGroup: t } = n;
|
|
52
|
+
if (!o || !o.trim().length)
|
|
53
|
+
return e;
|
|
54
|
+
const l = {};
|
|
55
|
+
for (const s in e) {
|
|
56
|
+
const a = e[s].filter((i) => bn({
|
|
57
|
+
// @ts-expect-error typing weak
|
|
58
|
+
[i.key]: i.value
|
|
59
|
+
}, o));
|
|
60
|
+
a.length && (l[s] = t ? t(a) : a);
|
|
61
|
+
}
|
|
62
|
+
return l;
|
|
63
|
+
}
|
|
64
|
+
const Lt = /* @__PURE__ */ B({
|
|
51
65
|
__name: "NodeTag",
|
|
52
66
|
props: {
|
|
53
67
|
tag: {}
|
|
54
68
|
},
|
|
55
69
|
setup(n) {
|
|
56
|
-
return (e, o) =>
|
|
57
|
-
style:
|
|
58
|
-
color: `#${
|
|
59
|
-
backgroundColor: `#${
|
|
70
|
+
return (e, o) => q((p(), v("span", {
|
|
71
|
+
style: $e({
|
|
72
|
+
color: `#${r(wt)(e.tag.textColor)}`,
|
|
73
|
+
backgroundColor: `#${r(wt)(e.tag.backgroundColor)}`
|
|
60
74
|
}),
|
|
61
75
|
class: "ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"
|
|
62
76
|
}, [
|
|
63
|
-
|
|
77
|
+
X(ae(e.tag.label), 1)
|
|
64
78
|
], 4)), [
|
|
65
|
-
[
|
|
79
|
+
[r(J), {
|
|
66
80
|
content: e.tag.tooltip,
|
|
67
81
|
html: !0
|
|
68
82
|
}]
|
|
@@ -70,51 +84,51 @@ const Mt = /* @__PURE__ */ B({
|
|
|
70
84
|
}
|
|
71
85
|
}), In = { class: "p2" }, $n = ["onClick"], Sn = /* @__PURE__ */ B({
|
|
72
86
|
__name: "SelectiveList",
|
|
73
|
-
props: /* @__PURE__ */
|
|
87
|
+
props: /* @__PURE__ */ je({
|
|
74
88
|
data: {}
|
|
75
89
|
}, {
|
|
76
90
|
modelValue: {},
|
|
77
91
|
modelModifiers: {}
|
|
78
92
|
}),
|
|
79
|
-
emits: /* @__PURE__ */
|
|
93
|
+
emits: /* @__PURE__ */ je(["select"], ["update:modelValue"]),
|
|
80
94
|
setup(n, { emit: e }) {
|
|
81
|
-
const o = e, t =
|
|
82
|
-
function s
|
|
83
|
-
t.value =
|
|
84
|
-
}
|
|
85
|
-
return (
|
|
86
|
-
(p(!0),
|
|
87
|
-
key:
|
|
88
|
-
class:
|
|
89
|
-
onClick: (
|
|
95
|
+
const o = e, t = Xe(n, "modelValue");
|
|
96
|
+
function l(s) {
|
|
97
|
+
t.value = s, o("select", s);
|
|
98
|
+
}
|
|
99
|
+
return (s, c) => (p(), v("ul", In, [
|
|
100
|
+
(p(!0), v(oe, null, ue(s.data, (a) => (p(), v("li", {
|
|
101
|
+
key: a.id,
|
|
102
|
+
class: se(["selectable-item", { active: a.id === t.value }]),
|
|
103
|
+
onClick: (i) => l(a.id)
|
|
90
104
|
}, [
|
|
91
|
-
|
|
92
|
-
(p(!0),
|
|
93
|
-
key:
|
|
94
|
-
tag:
|
|
105
|
+
X(ae(a.label) + " ", 1),
|
|
106
|
+
(p(!0), v(oe, null, ue(a.tags, (i, g) => (p(), z(Lt, {
|
|
107
|
+
key: g,
|
|
108
|
+
tag: i
|
|
95
109
|
}, null, 8, ["tag"]))), 128))
|
|
96
110
|
], 10, $n))), 128))
|
|
97
111
|
]));
|
|
98
112
|
}
|
|
99
|
-
}),
|
|
100
|
-
function
|
|
101
|
-
const o = (e == null ? void 0 : e.defaultRoutePath) ??
|
|
113
|
+
}), ot = Symbol("VirtualRouteKey"), Ht = Symbol("VirtualRoutesKey");
|
|
114
|
+
function lt(n, e) {
|
|
115
|
+
const o = (e == null ? void 0 : e.defaultRoutePath) ?? mt(n)[0].path, t = I({
|
|
102
116
|
path: o
|
|
103
|
-
}),
|
|
117
|
+
}), l = E(() => mt(n)), s = E(() => t.value.path), c = B({
|
|
104
118
|
setup() {
|
|
105
119
|
return () => {
|
|
106
|
-
const
|
|
107
|
-
return
|
|
120
|
+
const i = l.value.find((g) => g.path === s.value);
|
|
121
|
+
return i ? Xt(i.component) : null;
|
|
108
122
|
};
|
|
109
123
|
}
|
|
110
124
|
});
|
|
111
|
-
function
|
|
125
|
+
function a() {
|
|
112
126
|
t.value.path = o;
|
|
113
127
|
}
|
|
114
|
-
return
|
|
128
|
+
return Ce(ot, t), Ce(Ht, l), { VirtualRouterView: c, restoreRouter: a };
|
|
115
129
|
}
|
|
116
|
-
function
|
|
117
|
-
const n = ve(
|
|
130
|
+
function Ae() {
|
|
131
|
+
const n = ve(ot);
|
|
118
132
|
return {
|
|
119
133
|
push(e) {
|
|
120
134
|
n.value.path = e;
|
|
@@ -122,7 +136,7 @@ function De() {
|
|
|
122
136
|
};
|
|
123
137
|
}
|
|
124
138
|
function Tn() {
|
|
125
|
-
const n = ve(
|
|
139
|
+
const n = ve(Ht), e = ve(ot);
|
|
126
140
|
return {
|
|
127
141
|
routes: n,
|
|
128
142
|
currentRoute: e
|
|
@@ -131,20 +145,20 @@ function Tn() {
|
|
|
131
145
|
const En = {
|
|
132
146
|
border: "b base",
|
|
133
147
|
class: "flex items-center justify-between px3"
|
|
134
|
-
}, Vn = ["href"], Nn = ["href"],
|
|
148
|
+
}, Vn = ["href"], Nn = ["href"], Se = /* @__PURE__ */ B({
|
|
135
149
|
__name: "DevToolsHeader",
|
|
136
150
|
props: {
|
|
137
151
|
githubRepoLink: {},
|
|
138
152
|
docLink: {}
|
|
139
153
|
},
|
|
140
154
|
setup(n) {
|
|
141
|
-
const e =
|
|
142
|
-
return (o, t) => (p(),
|
|
155
|
+
const e = Ae();
|
|
156
|
+
return (o, t) => (p(), v("div", En, [
|
|
143
157
|
d("div", null, [
|
|
144
|
-
|
|
158
|
+
Qe(o.$slots, "default", {}, () => [
|
|
145
159
|
d("i", {
|
|
146
160
|
class: "i-ep:back cursor-pointer op70 text-base hover:op100",
|
|
147
|
-
onClick: t[0] || (t[0] = (
|
|
161
|
+
onClick: t[0] || (t[0] = (l) => r(e).push("/"))
|
|
148
162
|
})
|
|
149
163
|
])
|
|
150
164
|
]),
|
|
@@ -157,100 +171,100 @@ const En = {
|
|
|
157
171
|
}, t[1] || (t[1] = [
|
|
158
172
|
d("i", { class: "i-clarity:document-line cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
159
173
|
]), 8, Vn),
|
|
160
|
-
o.githubRepoLink ? (p(),
|
|
174
|
+
o.githubRepoLink ? (p(), v("a", {
|
|
161
175
|
key: 0,
|
|
162
176
|
href: o.githubRepoLink,
|
|
163
177
|
target: "_blank",
|
|
164
178
|
title: "Star on GitHub"
|
|
165
179
|
}, t[2] || (t[2] = [
|
|
166
180
|
d("i", { class: "i-mdi:github cursor-pointer op70 text-base hover:op100" }, null, -1)
|
|
167
|
-
]), 8, Nn)) :
|
|
181
|
+
]), 8, Nn)) : O("", !0)
|
|
168
182
|
])
|
|
169
183
|
]));
|
|
170
184
|
}
|
|
171
|
-
}),
|
|
185
|
+
}), xe = (n, e) => {
|
|
172
186
|
const o = n.__vccOpts || n;
|
|
173
|
-
for (const [t,
|
|
174
|
-
o[t] =
|
|
187
|
+
for (const [t, l] of e)
|
|
188
|
+
o[t] = l;
|
|
175
189
|
return o;
|
|
176
190
|
}, Rn = {}, An = { class: "h-full flex flex-col items-center justify-center op50" };
|
|
177
191
|
function Dn(n, e) {
|
|
178
|
-
return p(),
|
|
192
|
+
return p(), v("div", An, [
|
|
179
193
|
e[0] || (e[0] = d("i", { class: "i-lets-icons:blank-light" }, null, -1)),
|
|
180
194
|
d("span", null, [
|
|
181
|
-
|
|
195
|
+
Qe(n.$slots, "default")
|
|
182
196
|
])
|
|
183
197
|
]);
|
|
184
198
|
}
|
|
185
|
-
const
|
|
199
|
+
const Ie = /* @__PURE__ */ xe(Rn, [["render", Dn]]), Pn = { class: "flex gap3" }, Mn = ["onClick"], Te = /* @__PURE__ */ B({
|
|
186
200
|
__name: "Navbar",
|
|
187
201
|
setup(n) {
|
|
188
|
-
const { routes: e, currentRoute: o } = Tn(), t =
|
|
189
|
-
return (
|
|
190
|
-
(p(!0),
|
|
191
|
-
key:
|
|
192
|
-
class:
|
|
193
|
-
onClick: (
|
|
194
|
-
},
|
|
202
|
+
const { routes: e, currentRoute: o } = Tn(), t = Ae();
|
|
203
|
+
return (l, s) => (p(), v("ul", Pn, [
|
|
204
|
+
(p(!0), v(oe, null, ue(r(e), (c, a) => (p(), v("li", {
|
|
205
|
+
key: a,
|
|
206
|
+
class: se(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100", r(o).path === c.path ? "op-100 font-medium text-primary-400 border-primary-400" : "border-transparent op-70"]),
|
|
207
|
+
onClick: (i) => r(t).push(c.path)
|
|
208
|
+
}, ae(c.name), 11, Mn))), 128))
|
|
195
209
|
]));
|
|
196
210
|
}
|
|
197
|
-
}),
|
|
211
|
+
}), st = /* @__PURE__ */ B({
|
|
198
212
|
__name: "ToggleExpanded",
|
|
199
213
|
props: {
|
|
200
214
|
value: { type: Boolean }
|
|
201
215
|
},
|
|
202
216
|
setup(n) {
|
|
203
|
-
return (e, o) => (p(),
|
|
204
|
-
class:
|
|
217
|
+
return (e, o) => (p(), v("i", {
|
|
218
|
+
class: se(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base", {
|
|
205
219
|
"transform rotate-90": e.value
|
|
206
220
|
}])
|
|
207
221
|
}, null, 2));
|
|
208
222
|
}
|
|
209
|
-
}),
|
|
223
|
+
}), Ut = Symbol("StateEditorSymbol");
|
|
210
224
|
function Ln(n) {
|
|
211
|
-
const e =
|
|
212
|
-
return
|
|
225
|
+
const e = I(n);
|
|
226
|
+
return Ce(Ut, e), {
|
|
213
227
|
context: e
|
|
214
228
|
};
|
|
215
229
|
}
|
|
216
|
-
function
|
|
217
|
-
return ve(
|
|
230
|
+
function at() {
|
|
231
|
+
return ve(Ut);
|
|
218
232
|
}
|
|
219
233
|
function Hn() {
|
|
220
|
-
const n =
|
|
234
|
+
const n = I(""), e = I("string"), o = I(!1), t = at();
|
|
221
235
|
return {
|
|
222
236
|
editingText: n,
|
|
223
237
|
editing: o,
|
|
224
|
-
toggleEditing(
|
|
225
|
-
|
|
238
|
+
toggleEditing(l) {
|
|
239
|
+
l && (e.value = l), o.value = !o.value;
|
|
226
240
|
},
|
|
227
241
|
editingType: e,
|
|
228
|
-
nodeId:
|
|
242
|
+
nodeId: E(() => t.value.nodeId)
|
|
229
243
|
};
|
|
230
244
|
}
|
|
231
|
-
function
|
|
245
|
+
function Un(n, e) {
|
|
232
246
|
if (n === "array")
|
|
233
247
|
return e.length;
|
|
234
248
|
const o = "newProp";
|
|
235
249
|
let t = 1;
|
|
236
250
|
for (; ; ) {
|
|
237
|
-
const
|
|
238
|
-
if (!e[
|
|
239
|
-
return
|
|
251
|
+
const l = `${o}${t}`;
|
|
252
|
+
if (!e[l])
|
|
253
|
+
return l;
|
|
240
254
|
t++;
|
|
241
255
|
}
|
|
242
256
|
}
|
|
243
|
-
function
|
|
244
|
-
const n =
|
|
257
|
+
function On() {
|
|
258
|
+
const n = I({
|
|
245
259
|
enable: !1,
|
|
246
260
|
key: "",
|
|
247
261
|
value: "undefined"
|
|
248
262
|
});
|
|
249
|
-
function e(t,
|
|
250
|
-
const
|
|
263
|
+
function e(t, l) {
|
|
264
|
+
const s = Un(t, l);
|
|
251
265
|
n.value = {
|
|
252
266
|
enable: !0,
|
|
253
|
-
key:
|
|
267
|
+
key: s.toString(),
|
|
254
268
|
value: "undefined"
|
|
255
269
|
};
|
|
256
270
|
}
|
|
@@ -269,63 +283,63 @@ function jn() {
|
|
|
269
283
|
}
|
|
270
284
|
const Ot = "expanded-state";
|
|
271
285
|
function me(n = "") {
|
|
272
|
-
const e =
|
|
273
|
-
return
|
|
286
|
+
const e = I([]);
|
|
287
|
+
return Ce(`${Ot}-${n}`, e), {
|
|
274
288
|
expanded: e
|
|
275
289
|
};
|
|
276
290
|
}
|
|
277
|
-
function
|
|
278
|
-
const e = ve(`${Ot}-${n}`,
|
|
291
|
+
function it(n = "") {
|
|
292
|
+
const e = ve(`${Ot}-${n}`, I([]));
|
|
279
293
|
function o(t) {
|
|
280
|
-
const
|
|
281
|
-
|
|
294
|
+
const l = e.value.indexOf(t);
|
|
295
|
+
l === -1 ? e.value.push(t) : e.value.splice(l, 1);
|
|
282
296
|
}
|
|
283
297
|
return {
|
|
284
298
|
expanded: e,
|
|
285
299
|
toggleExpanded: o
|
|
286
300
|
};
|
|
287
301
|
}
|
|
288
|
-
function
|
|
302
|
+
function rt(n) {
|
|
289
303
|
return en() ? (tn(n), !0) : !1;
|
|
290
304
|
}
|
|
291
|
-
function
|
|
292
|
-
return typeof n == "function" ? n() :
|
|
305
|
+
function ne(n) {
|
|
306
|
+
return typeof n == "function" ? n() : r(n);
|
|
293
307
|
}
|
|
294
|
-
const
|
|
308
|
+
const ut = typeof window < "u" && typeof document < "u";
|
|
295
309
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
296
|
-
const
|
|
310
|
+
const jn = (n) => typeof n < "u", zn = Object.prototype.toString, Bn = (n) => zn.call(n) === "[object Object]", Fe = () => {
|
|
297
311
|
};
|
|
298
|
-
function
|
|
312
|
+
function Fn(n, e) {
|
|
299
313
|
function o(...t) {
|
|
300
|
-
return new Promise((
|
|
301
|
-
Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(
|
|
314
|
+
return new Promise((l, s) => {
|
|
315
|
+
Promise.resolve(n(() => e.apply(this, t), { fn: e, thisArg: this, args: t })).then(l).catch(s);
|
|
302
316
|
});
|
|
303
317
|
}
|
|
304
318
|
return o;
|
|
305
319
|
}
|
|
306
|
-
const
|
|
307
|
-
function
|
|
308
|
-
let o, t,
|
|
309
|
-
const
|
|
310
|
-
clearTimeout(
|
|
320
|
+
const Zn = (n) => n();
|
|
321
|
+
function Kn(n, e = {}) {
|
|
322
|
+
let o, t, l = Fe;
|
|
323
|
+
const s = (a) => {
|
|
324
|
+
clearTimeout(a), l(), l = Fe;
|
|
311
325
|
};
|
|
312
|
-
return (
|
|
313
|
-
const
|
|
314
|
-
return o &&
|
|
315
|
-
|
|
316
|
-
o &&
|
|
317
|
-
},
|
|
318
|
-
t &&
|
|
319
|
-
},
|
|
326
|
+
return (a) => {
|
|
327
|
+
const i = ne(n), g = ne(e.maxWait);
|
|
328
|
+
return o && s(o), i <= 0 || g !== void 0 && g <= 0 ? (t && (s(t), t = null), Promise.resolve(a())) : new Promise((h, u) => {
|
|
329
|
+
l = e.rejectOnCancel ? u : h, g && !t && (t = setTimeout(() => {
|
|
330
|
+
o && s(o), t = null, h(a());
|
|
331
|
+
}, g)), o = setTimeout(() => {
|
|
332
|
+
t && s(t), t = null, h(a());
|
|
333
|
+
}, i);
|
|
320
334
|
});
|
|
321
335
|
};
|
|
322
336
|
}
|
|
323
|
-
function
|
|
324
|
-
return new Promise((t,
|
|
325
|
-
setTimeout(e ? () =>
|
|
337
|
+
function It(n, e = !1, o = "Timeout") {
|
|
338
|
+
return new Promise((t, l) => {
|
|
339
|
+
setTimeout(e ? () => l(o) : t, n);
|
|
326
340
|
});
|
|
327
341
|
}
|
|
328
|
-
function
|
|
342
|
+
function Gn(n) {
|
|
329
343
|
let e;
|
|
330
344
|
function o() {
|
|
331
345
|
return e || (e = n()), e;
|
|
@@ -336,340 +350,340 @@ function Kn(n) {
|
|
|
336
350
|
}, o;
|
|
337
351
|
}
|
|
338
352
|
function Wn(n) {
|
|
339
|
-
return
|
|
353
|
+
return et();
|
|
340
354
|
}
|
|
341
355
|
function qn(n, e, o = {}) {
|
|
342
356
|
const {
|
|
343
|
-
eventFilter: t =
|
|
344
|
-
...
|
|
357
|
+
eventFilter: t = Zn,
|
|
358
|
+
...l
|
|
345
359
|
} = o;
|
|
346
|
-
return
|
|
360
|
+
return Q(
|
|
347
361
|
n,
|
|
348
|
-
|
|
362
|
+
Fn(
|
|
349
363
|
t,
|
|
350
364
|
e
|
|
351
365
|
),
|
|
352
|
-
|
|
366
|
+
l
|
|
353
367
|
);
|
|
354
368
|
}
|
|
355
369
|
function Jn(n, e = !0, o) {
|
|
356
|
-
Wn() ?
|
|
370
|
+
Wn() ? Tt(n, o) : e ? n() : ze(n);
|
|
357
371
|
}
|
|
358
|
-
function
|
|
359
|
-
function o(
|
|
372
|
+
function Ye(n, e = !1) {
|
|
373
|
+
function o(u, { flush: m = "sync", deep: V = !1, timeout: R, throwOnTimeout: C } = {}) {
|
|
360
374
|
let $ = null;
|
|
361
|
-
const
|
|
362
|
-
$ =
|
|
375
|
+
const A = [new Promise((x) => {
|
|
376
|
+
$ = Q(
|
|
363
377
|
n,
|
|
364
|
-
(
|
|
365
|
-
|
|
378
|
+
(w) => {
|
|
379
|
+
u(w) !== e && ($ ? $() : ze(() => $ == null ? void 0 : $()), x(w));
|
|
366
380
|
},
|
|
367
381
|
{
|
|
368
382
|
flush: m,
|
|
369
|
-
deep:
|
|
383
|
+
deep: V,
|
|
370
384
|
immediate: !0
|
|
371
385
|
}
|
|
372
386
|
);
|
|
373
387
|
})];
|
|
374
|
-
return
|
|
375
|
-
|
|
376
|
-
), Promise.race(
|
|
388
|
+
return R != null && A.push(
|
|
389
|
+
It(R, C).then(() => ne(n)).finally(() => $ == null ? void 0 : $())
|
|
390
|
+
), Promise.race(A);
|
|
377
391
|
}
|
|
378
|
-
function t(
|
|
379
|
-
if (!
|
|
380
|
-
return o((
|
|
381
|
-
const { flush:
|
|
382
|
-
let
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
[n,
|
|
386
|
-
([
|
|
387
|
-
e !== (
|
|
392
|
+
function t(u, m) {
|
|
393
|
+
if (!Ze(u))
|
|
394
|
+
return o((w) => w === u, m);
|
|
395
|
+
const { flush: V = "sync", deep: R = !1, timeout: C, throwOnTimeout: $ } = m ?? {};
|
|
396
|
+
let j = null;
|
|
397
|
+
const x = [new Promise((w) => {
|
|
398
|
+
j = Q(
|
|
399
|
+
[n, u],
|
|
400
|
+
([N, M]) => {
|
|
401
|
+
e !== (N === M) && (j ? j() : ze(() => j == null ? void 0 : j()), w(N));
|
|
388
402
|
},
|
|
389
403
|
{
|
|
390
|
-
flush:
|
|
391
|
-
deep:
|
|
404
|
+
flush: V,
|
|
405
|
+
deep: R,
|
|
392
406
|
immediate: !0
|
|
393
407
|
}
|
|
394
408
|
);
|
|
395
409
|
})];
|
|
396
|
-
return
|
|
397
|
-
|
|
398
|
-
), Promise.race(
|
|
410
|
+
return C != null && x.push(
|
|
411
|
+
It(C, $).then(() => ne(n)).finally(() => (j == null || j(), ne(n)))
|
|
412
|
+
), Promise.race(x);
|
|
399
413
|
}
|
|
400
|
-
function
|
|
401
|
-
return o((m) => !!m,
|
|
414
|
+
function l(u) {
|
|
415
|
+
return o((m) => !!m, u);
|
|
402
416
|
}
|
|
403
|
-
function
|
|
404
|
-
return t(null,
|
|
417
|
+
function s(u) {
|
|
418
|
+
return t(null, u);
|
|
405
419
|
}
|
|
406
|
-
function u
|
|
407
|
-
return t(void 0,
|
|
420
|
+
function c(u) {
|
|
421
|
+
return t(void 0, u);
|
|
408
422
|
}
|
|
409
|
-
function
|
|
410
|
-
return o(Number.isNaN,
|
|
423
|
+
function a(u) {
|
|
424
|
+
return o(Number.isNaN, u);
|
|
411
425
|
}
|
|
412
|
-
function
|
|
413
|
-
return o((
|
|
414
|
-
const
|
|
415
|
-
return
|
|
426
|
+
function i(u, m) {
|
|
427
|
+
return o((V) => {
|
|
428
|
+
const R = Array.from(V);
|
|
429
|
+
return R.includes(u) || R.includes(ne(u));
|
|
416
430
|
}, m);
|
|
417
431
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
432
|
+
function g(u) {
|
|
433
|
+
return h(1, u);
|
|
420
434
|
}
|
|
421
|
-
function
|
|
422
|
-
let
|
|
423
|
-
return o(() => (
|
|
435
|
+
function h(u = 1, m) {
|
|
436
|
+
let V = -1;
|
|
437
|
+
return o(() => (V += 1, V >= u), m);
|
|
424
438
|
}
|
|
425
|
-
return Array.isArray(
|
|
439
|
+
return Array.isArray(ne(n)) ? {
|
|
426
440
|
toMatch: o,
|
|
427
|
-
toContains:
|
|
428
|
-
changed:
|
|
429
|
-
changedTimes:
|
|
441
|
+
toContains: i,
|
|
442
|
+
changed: g,
|
|
443
|
+
changedTimes: h,
|
|
430
444
|
get not() {
|
|
431
|
-
return
|
|
445
|
+
return Ye(n, !e);
|
|
432
446
|
}
|
|
433
447
|
} : {
|
|
434
448
|
toMatch: o,
|
|
435
449
|
toBe: t,
|
|
436
|
-
toBeTruthy:
|
|
437
|
-
toBeNull:
|
|
438
|
-
toBeNaN:
|
|
439
|
-
toBeUndefined:
|
|
440
|
-
changed:
|
|
441
|
-
changedTimes:
|
|
450
|
+
toBeTruthy: l,
|
|
451
|
+
toBeNull: s,
|
|
452
|
+
toBeNaN: a,
|
|
453
|
+
toBeUndefined: c,
|
|
454
|
+
changed: g,
|
|
455
|
+
changedTimes: h,
|
|
442
456
|
get not() {
|
|
443
|
-
return
|
|
457
|
+
return Ye(n, !e);
|
|
444
458
|
}
|
|
445
459
|
};
|
|
446
460
|
}
|
|
447
461
|
function jt(n) {
|
|
448
|
-
return
|
|
462
|
+
return Ye(n);
|
|
449
463
|
}
|
|
450
464
|
function Yn(n, e, o = {}) {
|
|
451
465
|
const {
|
|
452
466
|
immediate: t = !0
|
|
453
|
-
} = o,
|
|
454
|
-
let
|
|
455
|
-
function
|
|
456
|
-
|
|
467
|
+
} = o, l = I(!1);
|
|
468
|
+
let s = null;
|
|
469
|
+
function c() {
|
|
470
|
+
s && (clearTimeout(s), s = null);
|
|
457
471
|
}
|
|
458
|
-
function
|
|
459
|
-
|
|
472
|
+
function a() {
|
|
473
|
+
l.value = !1, c();
|
|
460
474
|
}
|
|
461
|
-
function
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
},
|
|
475
|
+
function i(...g) {
|
|
476
|
+
c(), l.value = !0, s = setTimeout(() => {
|
|
477
|
+
l.value = !1, s = null, n(...g);
|
|
478
|
+
}, ne(e));
|
|
465
479
|
}
|
|
466
|
-
return t && (
|
|
467
|
-
isPending: Qt(
|
|
468
|
-
start:
|
|
469
|
-
stop:
|
|
480
|
+
return t && (l.value = !0, ut && i()), rt(a), {
|
|
481
|
+
isPending: Qt(l),
|
|
482
|
+
start: i,
|
|
483
|
+
stop: a
|
|
470
484
|
};
|
|
471
485
|
}
|
|
472
486
|
function Xn(n = !1, e = {}) {
|
|
473
487
|
const {
|
|
474
488
|
truthyValue: o = !0,
|
|
475
489
|
falsyValue: t = !1
|
|
476
|
-
} = e,
|
|
477
|
-
function
|
|
490
|
+
} = e, l = Ze(n), s = I(n);
|
|
491
|
+
function c(a) {
|
|
478
492
|
if (arguments.length)
|
|
479
|
-
return
|
|
493
|
+
return s.value = a, s.value;
|
|
480
494
|
{
|
|
481
|
-
const
|
|
482
|
-
return
|
|
495
|
+
const i = ne(o);
|
|
496
|
+
return s.value = s.value === i ? ne(t) : i, s.value;
|
|
483
497
|
}
|
|
484
498
|
}
|
|
485
|
-
return
|
|
499
|
+
return l ? c : [s, c];
|
|
486
500
|
}
|
|
487
501
|
function Qn(n, e, o = {}) {
|
|
488
502
|
const {
|
|
489
503
|
debounce: t = 0,
|
|
490
|
-
maxWait:
|
|
491
|
-
...
|
|
504
|
+
maxWait: l = void 0,
|
|
505
|
+
...s
|
|
492
506
|
} = o;
|
|
493
507
|
return qn(
|
|
494
508
|
n,
|
|
495
509
|
e,
|
|
496
510
|
{
|
|
497
|
-
...
|
|
498
|
-
eventFilter:
|
|
511
|
+
...s,
|
|
512
|
+
eventFilter: Kn(t, { maxWait: l })
|
|
499
513
|
}
|
|
500
514
|
);
|
|
501
515
|
}
|
|
502
|
-
const
|
|
503
|
-
function
|
|
516
|
+
const Ke = ut ? window : void 0, zt = ut ? window.navigator : void 0;
|
|
517
|
+
function be(n) {
|
|
504
518
|
var e;
|
|
505
|
-
const o =
|
|
519
|
+
const o = ne(n);
|
|
506
520
|
return (e = o == null ? void 0 : o.$el) != null ? e : o;
|
|
507
521
|
}
|
|
508
|
-
function
|
|
509
|
-
let e, o, t,
|
|
510
|
-
if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, t,
|
|
511
|
-
return
|
|
522
|
+
function ge(...n) {
|
|
523
|
+
let e, o, t, l;
|
|
524
|
+
if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, t, l] = n, e = Ke) : [e, o, t, l] = n, !e)
|
|
525
|
+
return Fe;
|
|
512
526
|
Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
},
|
|
516
|
-
() => [
|
|
517
|
-
([
|
|
518
|
-
if (
|
|
527
|
+
const s = [], c = () => {
|
|
528
|
+
s.forEach((h) => h()), s.length = 0;
|
|
529
|
+
}, a = (h, u, m, V) => (h.addEventListener(u, m, V), () => h.removeEventListener(u, m, V)), i = Q(
|
|
530
|
+
() => [be(e), ne(l)],
|
|
531
|
+
([h, u]) => {
|
|
532
|
+
if (c(), !h)
|
|
519
533
|
return;
|
|
520
|
-
const m = Bn(
|
|
521
|
-
|
|
522
|
-
...o.flatMap((
|
|
534
|
+
const m = Bn(u) ? { ...u } : u;
|
|
535
|
+
s.push(
|
|
536
|
+
...o.flatMap((V) => t.map((R) => a(h, V, R, m)))
|
|
523
537
|
);
|
|
524
538
|
},
|
|
525
539
|
{ immediate: !0, flush: "post" }
|
|
526
|
-
),
|
|
527
|
-
|
|
540
|
+
), g = () => {
|
|
541
|
+
i(), c();
|
|
528
542
|
};
|
|
529
|
-
return
|
|
543
|
+
return rt(g), g;
|
|
530
544
|
}
|
|
531
545
|
function eo() {
|
|
532
|
-
const n =
|
|
533
|
-
return e &&
|
|
546
|
+
const n = I(!1), e = et();
|
|
547
|
+
return e && Tt(() => {
|
|
534
548
|
n.value = !0;
|
|
535
549
|
}, e), n;
|
|
536
550
|
}
|
|
537
|
-
function
|
|
551
|
+
function ct(n) {
|
|
538
552
|
const e = eo();
|
|
539
|
-
return
|
|
553
|
+
return E(() => (e.value, !!n()));
|
|
540
554
|
}
|
|
541
|
-
function
|
|
555
|
+
function $t(n, e = {}) {
|
|
542
556
|
const {
|
|
543
557
|
controls: o = !1,
|
|
544
|
-
navigator: t =
|
|
545
|
-
} = e,
|
|
546
|
-
var
|
|
547
|
-
|
|
558
|
+
navigator: t = zt
|
|
559
|
+
} = e, l = ct(() => t && "permissions" in t), s = gt(), c = typeof n == "string" ? { name: n } : n, a = gt(), i = () => {
|
|
560
|
+
var h, u;
|
|
561
|
+
a.value = (u = (h = s.value) == null ? void 0 : h.state) != null ? u : "prompt";
|
|
548
562
|
};
|
|
549
|
-
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
552
|
-
if (!
|
|
563
|
+
ge(s, "change", i);
|
|
564
|
+
const g = Gn(async () => {
|
|
565
|
+
if (l.value) {
|
|
566
|
+
if (!s.value)
|
|
553
567
|
try {
|
|
554
|
-
|
|
568
|
+
s.value = await t.permissions.query(c);
|
|
555
569
|
} catch {
|
|
556
|
-
|
|
570
|
+
s.value = void 0;
|
|
557
571
|
} finally {
|
|
558
|
-
|
|
572
|
+
i();
|
|
559
573
|
}
|
|
560
574
|
if (o)
|
|
561
|
-
return
|
|
575
|
+
return Et(s.value);
|
|
562
576
|
}
|
|
563
577
|
});
|
|
564
|
-
return
|
|
565
|
-
state:
|
|
566
|
-
isSupported:
|
|
567
|
-
query:
|
|
568
|
-
} :
|
|
578
|
+
return g(), o ? {
|
|
579
|
+
state: a,
|
|
580
|
+
isSupported: l,
|
|
581
|
+
query: g
|
|
582
|
+
} : a;
|
|
569
583
|
}
|
|
570
584
|
function to(n = {}) {
|
|
571
585
|
const {
|
|
572
|
-
navigator: e =
|
|
586
|
+
navigator: e = zt,
|
|
573
587
|
read: o = !1,
|
|
574
588
|
source: t,
|
|
575
|
-
copiedDuring:
|
|
576
|
-
legacy:
|
|
577
|
-
} = n,
|
|
578
|
-
function
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}) :
|
|
589
|
+
copiedDuring: l = 1500,
|
|
590
|
+
legacy: s = !1
|
|
591
|
+
} = n, c = ct(() => e && "clipboard" in e), a = $t("clipboard-read"), i = $t("clipboard-write"), g = E(() => c.value || s), h = I(""), u = I(!1), m = Yn(() => u.value = !1, l);
|
|
592
|
+
function V() {
|
|
593
|
+
c.value && j(a.value) ? e.clipboard.readText().then((A) => {
|
|
594
|
+
h.value = A;
|
|
595
|
+
}) : h.value = $();
|
|
582
596
|
}
|
|
583
|
-
|
|
584
|
-
async function A
|
|
585
|
-
|
|
597
|
+
g.value && o && ge(["copy", "cut"], V);
|
|
598
|
+
async function R(A = ne(t)) {
|
|
599
|
+
g.value && A != null && (c.value && j(i.value) ? await e.clipboard.writeText(A) : C(A), h.value = A, u.value = !0, m.start());
|
|
586
600
|
}
|
|
587
|
-
function
|
|
588
|
-
const
|
|
589
|
-
|
|
601
|
+
function C(A) {
|
|
602
|
+
const x = document.createElement("textarea");
|
|
603
|
+
x.value = A ?? "", x.style.position = "absolute", x.style.opacity = "0", document.body.appendChild(x), x.select(), document.execCommand("copy"), x.remove();
|
|
590
604
|
}
|
|
591
605
|
function $() {
|
|
592
|
-
var
|
|
593
|
-
return (
|
|
606
|
+
var A, x, w;
|
|
607
|
+
return (w = (x = (A = document == null ? void 0 : document.getSelection) == null ? void 0 : A.call(document)) == null ? void 0 : x.toString()) != null ? w : "";
|
|
594
608
|
}
|
|
595
|
-
function
|
|
596
|
-
return
|
|
609
|
+
function j(A) {
|
|
610
|
+
return A === "granted" || A === "prompt";
|
|
597
611
|
}
|
|
598
612
|
return {
|
|
599
|
-
isSupported:
|
|
600
|
-
text:
|
|
601
|
-
copied:
|
|
602
|
-
copy:
|
|
613
|
+
isSupported: g,
|
|
614
|
+
text: h,
|
|
615
|
+
copied: u,
|
|
616
|
+
copy: R
|
|
603
617
|
};
|
|
604
618
|
}
|
|
605
619
|
function no(n) {
|
|
606
620
|
return JSON.parse(JSON.stringify(n));
|
|
607
621
|
}
|
|
608
622
|
function oo(n, e, o = {}) {
|
|
609
|
-
const { window: t =
|
|
610
|
-
let
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
},
|
|
614
|
-
const
|
|
615
|
-
return Array.isArray(
|
|
616
|
-
}),
|
|
617
|
-
|
|
618
|
-
(
|
|
619
|
-
if (
|
|
620
|
-
|
|
621
|
-
for (const m of
|
|
622
|
-
m &&
|
|
623
|
+
const { window: t = Ke, ...l } = o;
|
|
624
|
+
let s;
|
|
625
|
+
const c = ct(() => t && "ResizeObserver" in t), a = () => {
|
|
626
|
+
s && (s.disconnect(), s = void 0);
|
|
627
|
+
}, i = E(() => {
|
|
628
|
+
const u = ne(n);
|
|
629
|
+
return Array.isArray(u) ? u.map((m) => be(m)) : [be(u)];
|
|
630
|
+
}), g = Q(
|
|
631
|
+
i,
|
|
632
|
+
(u) => {
|
|
633
|
+
if (a(), c.value && t) {
|
|
634
|
+
s = new ResizeObserver(e);
|
|
635
|
+
for (const m of u)
|
|
636
|
+
m && s.observe(m, l);
|
|
623
637
|
}
|
|
624
638
|
},
|
|
625
639
|
{ immediate: !0, flush: "post" }
|
|
626
|
-
),
|
|
627
|
-
|
|
640
|
+
), h = () => {
|
|
641
|
+
a(), g();
|
|
628
642
|
};
|
|
629
|
-
return
|
|
630
|
-
isSupported:
|
|
631
|
-
stop:
|
|
643
|
+
return rt(h), {
|
|
644
|
+
isSupported: c,
|
|
645
|
+
stop: h
|
|
632
646
|
};
|
|
633
647
|
}
|
|
634
648
|
function lo(n, e = { width: 0, height: 0 }, o = {}) {
|
|
635
|
-
const { window: t =
|
|
636
|
-
var
|
|
637
|
-
return (m = (
|
|
638
|
-
}),
|
|
649
|
+
const { window: t = Ke, box: l = "content-box" } = o, s = E(() => {
|
|
650
|
+
var u, m;
|
|
651
|
+
return (m = (u = be(n)) == null ? void 0 : u.namespaceURI) == null ? void 0 : m.includes("svg");
|
|
652
|
+
}), c = I(e.width), a = I(e.height), { stop: i } = oo(
|
|
639
653
|
n,
|
|
640
|
-
([
|
|
641
|
-
const m =
|
|
642
|
-
if (t &&
|
|
643
|
-
const
|
|
644
|
-
if (
|
|
645
|
-
const
|
|
646
|
-
|
|
654
|
+
([u]) => {
|
|
655
|
+
const m = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
656
|
+
if (t && s.value) {
|
|
657
|
+
const V = be(n);
|
|
658
|
+
if (V) {
|
|
659
|
+
const R = V.getBoundingClientRect();
|
|
660
|
+
c.value = R.width, a.value = R.height;
|
|
647
661
|
}
|
|
648
662
|
} else if (m) {
|
|
649
|
-
const
|
|
650
|
-
|
|
663
|
+
const V = Array.isArray(m) ? m : [m];
|
|
664
|
+
c.value = V.reduce((R, { inlineSize: C }) => R + C, 0), a.value = V.reduce((R, { blockSize: C }) => R + C, 0);
|
|
651
665
|
} else
|
|
652
|
-
|
|
666
|
+
c.value = u.contentRect.width, a.value = u.contentRect.height;
|
|
653
667
|
},
|
|
654
668
|
o
|
|
655
669
|
);
|
|
656
670
|
Jn(() => {
|
|
657
|
-
const
|
|
658
|
-
|
|
671
|
+
const u = be(n);
|
|
672
|
+
u && (c.value = "offsetWidth" in u ? u.offsetWidth : e.width, a.value = "offsetHeight" in u ? u.offsetHeight : e.height);
|
|
659
673
|
});
|
|
660
|
-
const
|
|
661
|
-
() =>
|
|
662
|
-
(
|
|
663
|
-
|
|
674
|
+
const g = Q(
|
|
675
|
+
() => be(n),
|
|
676
|
+
(u) => {
|
|
677
|
+
c.value = u ? e.width : 0, a.value = u ? e.height : 0;
|
|
664
678
|
}
|
|
665
679
|
);
|
|
666
|
-
function
|
|
667
|
-
|
|
680
|
+
function h() {
|
|
681
|
+
i(), g();
|
|
668
682
|
}
|
|
669
683
|
return {
|
|
670
|
-
width:
|
|
671
|
-
height:
|
|
672
|
-
stop:
|
|
684
|
+
width: c,
|
|
685
|
+
height: a,
|
|
686
|
+
stop: h
|
|
673
687
|
};
|
|
674
688
|
}
|
|
675
689
|
const so = {
|
|
@@ -685,91 +699,91 @@ const so = {
|
|
|
685
699
|
function ao(n = {}) {
|
|
686
700
|
const {
|
|
687
701
|
reactive: e = !1,
|
|
688
|
-
target: o =
|
|
702
|
+
target: o = Ke,
|
|
689
703
|
aliasMap: t = so,
|
|
690
|
-
passive:
|
|
691
|
-
onEventFired:
|
|
692
|
-
} = n,
|
|
704
|
+
passive: l = !0,
|
|
705
|
+
onEventFired: s = Fe
|
|
706
|
+
} = n, c = ht(/* @__PURE__ */ new Set()), a = {
|
|
693
707
|
toJSON() {
|
|
694
708
|
return {};
|
|
695
709
|
},
|
|
696
|
-
current:
|
|
697
|
-
},
|
|
698
|
-
function
|
|
699
|
-
|
|
710
|
+
current: c
|
|
711
|
+
}, i = e ? ht(a) : a, g = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
|
|
712
|
+
function u(C, $) {
|
|
713
|
+
C in i && (e ? i[C] = $ : i[C].value = $);
|
|
700
714
|
}
|
|
701
715
|
function m() {
|
|
702
|
-
|
|
703
|
-
for (const
|
|
704
|
-
|
|
716
|
+
c.clear();
|
|
717
|
+
for (const C of h)
|
|
718
|
+
u(C, !1);
|
|
705
719
|
}
|
|
706
|
-
function
|
|
707
|
-
var
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
for (const
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}),
|
|
720
|
+
function V(C, $) {
|
|
721
|
+
var j, A;
|
|
722
|
+
const x = (j = C.key) == null ? void 0 : j.toLowerCase(), N = [(A = C.code) == null ? void 0 : A.toLowerCase(), x].filter(Boolean);
|
|
723
|
+
x && ($ ? c.add(x) : c.delete(x));
|
|
724
|
+
for (const M of N)
|
|
725
|
+
h.add(M), u(M, $);
|
|
726
|
+
x === "meta" && !$ ? (g.forEach((M) => {
|
|
727
|
+
c.delete(M), u(M, !1);
|
|
728
|
+
}), g.clear()) : typeof C.getModifierState == "function" && C.getModifierState("Meta") && $ && [...c, ...N].forEach((M) => g.add(M));
|
|
715
729
|
}
|
|
716
|
-
|
|
717
|
-
const
|
|
718
|
-
|
|
730
|
+
ge(o, "keydown", (C) => (V(C, !0), s(C)), { passive: l }), ge(o, "keyup", (C) => (V(C, !1), s(C)), { passive: l }), ge("blur", m, { passive: !0 }), ge("focus", m, { passive: !0 });
|
|
731
|
+
const R = new Proxy(
|
|
732
|
+
i,
|
|
719
733
|
{
|
|
720
|
-
get(
|
|
734
|
+
get(C, $, j) {
|
|
721
735
|
if (typeof $ != "string")
|
|
722
|
-
return Reflect.get(
|
|
723
|
-
if ($ = $.toLowerCase(), $ in t && ($ = t[$]), !($ in
|
|
736
|
+
return Reflect.get(C, $, j);
|
|
737
|
+
if ($ = $.toLowerCase(), $ in t && ($ = t[$]), !($ in i))
|
|
724
738
|
if (/[+_-]/.test($)) {
|
|
725
|
-
const
|
|
726
|
-
|
|
739
|
+
const x = $.split(/[+_-]/g).map((w) => w.trim());
|
|
740
|
+
i[$] = E(() => x.every((w) => ne(R[w])));
|
|
727
741
|
} else
|
|
728
|
-
|
|
729
|
-
const
|
|
730
|
-
return e ?
|
|
742
|
+
i[$] = I(!1);
|
|
743
|
+
const A = Reflect.get(C, $, j);
|
|
744
|
+
return e ? ne(A) : A;
|
|
731
745
|
}
|
|
732
746
|
}
|
|
733
747
|
);
|
|
734
|
-
return
|
|
748
|
+
return R;
|
|
735
749
|
}
|
|
736
750
|
function io(n, e, o, t = {}) {
|
|
737
|
-
var
|
|
751
|
+
var l, s, c;
|
|
738
752
|
const {
|
|
739
|
-
clone:
|
|
740
|
-
passive:
|
|
741
|
-
eventName:
|
|
742
|
-
deep:
|
|
743
|
-
defaultValue:
|
|
753
|
+
clone: a = !1,
|
|
754
|
+
passive: i = !1,
|
|
755
|
+
eventName: g,
|
|
756
|
+
deep: h = !1,
|
|
757
|
+
defaultValue: u,
|
|
744
758
|
shouldEmit: m
|
|
745
|
-
} = t,
|
|
746
|
-
let
|
|
747
|
-
|
|
748
|
-
const $ = (
|
|
749
|
-
m ? m(
|
|
759
|
+
} = t, V = et(), R = o || (V == null ? void 0 : V.emit) || ((l = V == null ? void 0 : V.$emit) == null ? void 0 : l.bind(V)) || ((c = (s = V == null ? void 0 : V.proxy) == null ? void 0 : s.$emit) == null ? void 0 : c.bind(V == null ? void 0 : V.proxy));
|
|
760
|
+
let C = g;
|
|
761
|
+
C = C || `update:${e.toString()}`;
|
|
762
|
+
const $ = (x) => a ? typeof a == "function" ? a(x) : no(x) : x, j = () => jn(n[e]) ? $(n[e]) : u, A = (x) => {
|
|
763
|
+
m ? m(x) && R(C, x) : R(C, x);
|
|
750
764
|
};
|
|
751
|
-
if (
|
|
752
|
-
const
|
|
753
|
-
let
|
|
754
|
-
return
|
|
765
|
+
if (i) {
|
|
766
|
+
const x = j(), w = I(x);
|
|
767
|
+
let N = !1;
|
|
768
|
+
return Q(
|
|
755
769
|
() => n[e],
|
|
756
|
-
(
|
|
757
|
-
|
|
770
|
+
(M) => {
|
|
771
|
+
N || (N = !0, w.value = $(M), ze(() => N = !1));
|
|
758
772
|
}
|
|
759
|
-
),
|
|
760
|
-
|
|
761
|
-
(
|
|
762
|
-
!
|
|
773
|
+
), Q(
|
|
774
|
+
w,
|
|
775
|
+
(M) => {
|
|
776
|
+
!N && (M !== n[e] || h) && A(M);
|
|
763
777
|
},
|
|
764
|
-
{ deep:
|
|
765
|
-
),
|
|
778
|
+
{ deep: h }
|
|
779
|
+
), w;
|
|
766
780
|
} else
|
|
767
|
-
return
|
|
781
|
+
return E({
|
|
768
782
|
get() {
|
|
769
|
-
return
|
|
783
|
+
return j();
|
|
770
784
|
},
|
|
771
|
-
set(
|
|
772
|
-
|
|
785
|
+
set(x) {
|
|
786
|
+
A(x);
|
|
773
787
|
}
|
|
774
788
|
});
|
|
775
789
|
}
|
|
@@ -779,14 +793,14 @@ function ro(n, e = {}) {
|
|
|
779
793
|
},
|
|
780
794
|
leave: t = () => {
|
|
781
795
|
},
|
|
782
|
-
initial:
|
|
783
|
-
} = e,
|
|
784
|
-
return
|
|
785
|
-
|
|
786
|
-
}),
|
|
787
|
-
|
|
796
|
+
initial: l = !1
|
|
797
|
+
} = e, s = I(l);
|
|
798
|
+
return ge(n, "mouseenter", () => {
|
|
799
|
+
s.value = !0, o();
|
|
800
|
+
}), ge(n, "mouseleave", () => {
|
|
801
|
+
s.value = !1, t();
|
|
788
802
|
}), {
|
|
789
|
-
isHovering:
|
|
803
|
+
isHovering: s
|
|
790
804
|
};
|
|
791
805
|
}
|
|
792
806
|
const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__PURE__ */ B({
|
|
@@ -800,149 +814,149 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
800
814
|
},
|
|
801
815
|
emits: ["enableEditInput", "addNewProp"],
|
|
802
816
|
setup(n) {
|
|
803
|
-
const e = n, o =
|
|
817
|
+
const e = n, o = at(), { copy: t, isSupported: l } = to(), s = I(!1), c = E(() => Nt(e.data.value)), a = E(() => c.value.value), i = E(() => c.value.customType), g = E(() => a.value === null ? "null" : typeof a.value), h = {
|
|
804
818
|
flat: !0,
|
|
805
819
|
size: "mini"
|
|
806
|
-
},
|
|
820
|
+
}, u = E(() => ({
|
|
807
821
|
"opacity-0": !e.hovering
|
|
808
822
|
}));
|
|
809
|
-
async function m(
|
|
810
|
-
await
|
|
823
|
+
async function m(R, C = !1) {
|
|
824
|
+
await D.value.editInspectorState({
|
|
811
825
|
path: e.data.path || [e.data.key],
|
|
812
826
|
inspectorId: o.value.inspectorId,
|
|
813
827
|
type: e.data.stateType,
|
|
814
828
|
nodeId: o.value.nodeId,
|
|
815
829
|
state: {
|
|
816
830
|
newKey: null,
|
|
817
|
-
value:
|
|
818
|
-
type:
|
|
819
|
-
remove:
|
|
831
|
+
value: Et(R),
|
|
832
|
+
type: g.value,
|
|
833
|
+
remove: C
|
|
820
834
|
}
|
|
821
|
-
}), await
|
|
835
|
+
}), await D.value.sendInspectorState(o.value.inspectorId);
|
|
822
836
|
}
|
|
823
|
-
function
|
|
824
|
-
const $ = typeof
|
|
837
|
+
function V(R, C) {
|
|
838
|
+
const $ = typeof R == "number" ? R + C : BigInt(R) + BigInt(C);
|
|
825
839
|
m($);
|
|
826
840
|
}
|
|
827
|
-
return (
|
|
828
|
-
!e.disableEdit &&
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
class:
|
|
832
|
-
onClick:
|
|
841
|
+
return (R, C) => (p(), v("div", uo, [
|
|
842
|
+
!e.disableEdit && R.data.editable ? (p(), v(oe, { key: 0 }, [
|
|
843
|
+
g.value === "string" || g.value === "number" || g.value === "object" || g.value === "null" ? (p(), v(oe, { key: 0 }, [
|
|
844
|
+
q((p(), z(r(pe), ke(h, {
|
|
845
|
+
class: u.value,
|
|
846
|
+
onClick: C[0] || (C[0] = fe(($) => R.$emit("enableEditInput", g.value), ["stop"]))
|
|
833
847
|
}), {
|
|
834
|
-
icon:
|
|
835
|
-
|
|
848
|
+
icon: L(() => [
|
|
849
|
+
y(r(ie), { icon: "i-material-symbols-edit-rounded" })
|
|
836
850
|
]),
|
|
837
851
|
_: 1
|
|
838
852
|
}, 16, ["class"])), [
|
|
839
|
-
[
|
|
853
|
+
[r(J), {
|
|
840
854
|
content: "Edit value"
|
|
841
855
|
}]
|
|
842
856
|
]),
|
|
843
|
-
|
|
844
|
-
class:
|
|
845
|
-
onClick:
|
|
857
|
+
g.value === "object" && R.showAddIfNeeded ? q((p(), z(r(pe), ke({ key: 0 }, h, {
|
|
858
|
+
class: u.value,
|
|
859
|
+
onClick: C[1] || (C[1] = fe(($) => R.$emit("addNewProp", Array.isArray(a.value) ? "array" : "object"), ["stop"]))
|
|
846
860
|
}), {
|
|
847
|
-
icon:
|
|
848
|
-
|
|
861
|
+
icon: L(() => [
|
|
862
|
+
y(r(ie), { icon: "i-material-symbols-add-circle-rounded" })
|
|
849
863
|
]),
|
|
850
864
|
_: 1
|
|
851
865
|
}, 16, ["class"])), [
|
|
852
|
-
[
|
|
866
|
+
[r(J), {
|
|
853
867
|
content: "Add new value"
|
|
854
868
|
}]
|
|
855
|
-
]) :
|
|
856
|
-
], 64)) :
|
|
857
|
-
|
|
858
|
-
class:
|
|
859
|
-
onClick:
|
|
869
|
+
]) : O("", !0)
|
|
870
|
+
], 64)) : O("", !0),
|
|
871
|
+
g.value === "boolean" ? (p(), z(r(pe), ke({ key: 1 }, h, {
|
|
872
|
+
class: u.value,
|
|
873
|
+
onClick: C[2] || (C[2] = ($) => m(!a.value))
|
|
860
874
|
}), {
|
|
861
|
-
icon:
|
|
862
|
-
|
|
863
|
-
icon:
|
|
875
|
+
icon: L(() => [
|
|
876
|
+
y(r(ie), {
|
|
877
|
+
icon: a.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
864
878
|
}, null, 8, ["icon"])
|
|
865
879
|
]),
|
|
866
880
|
_: 1
|
|
867
|
-
}, 16, ["class"])) :
|
|
868
|
-
|
|
869
|
-
class:
|
|
870
|
-
onClick:
|
|
881
|
+
}, 16, ["class"])) : g.value === "number" || i.value === "bigint" ? (p(), v(oe, { key: 2 }, [
|
|
882
|
+
y(r(pe), ke(h, {
|
|
883
|
+
class: u.value,
|
|
884
|
+
onClick: C[3] || (C[3] = fe(($) => V(a.value, 1), ["stop"]))
|
|
871
885
|
}), {
|
|
872
|
-
icon:
|
|
873
|
-
|
|
886
|
+
icon: L(() => [
|
|
887
|
+
y(r(ie), { icon: "i-carbon-add" })
|
|
874
888
|
]),
|
|
875
889
|
_: 1
|
|
876
890
|
}, 16, ["class"]),
|
|
877
|
-
|
|
878
|
-
class:
|
|
879
|
-
onClick:
|
|
891
|
+
y(r(pe), ke(h, {
|
|
892
|
+
class: u.value,
|
|
893
|
+
onClick: C[4] || (C[4] = fe(($) => V(a.value, -1), ["stop"]))
|
|
880
894
|
}), {
|
|
881
|
-
icon:
|
|
882
|
-
|
|
895
|
+
icon: L(() => [
|
|
896
|
+
y(r(ie), { icon: "i-carbon-subtract" })
|
|
883
897
|
]),
|
|
884
898
|
_: 1
|
|
885
899
|
}, 16, ["class"])
|
|
886
|
-
], 64)) :
|
|
887
|
-
], 64)) :
|
|
888
|
-
!e.disableEdit &&
|
|
889
|
-
class:
|
|
890
|
-
onClick:
|
|
900
|
+
], 64)) : O("", !0)
|
|
901
|
+
], 64)) : O("", !0),
|
|
902
|
+
!e.disableEdit && R.depth > 0 && R.data.editable ? (p(), z(r(pe), ke({ key: 1 }, h, {
|
|
903
|
+
class: u.value,
|
|
904
|
+
onClick: C[5] || (C[5] = fe(($) => m(a.value, !0), ["stop"]))
|
|
891
905
|
}), {
|
|
892
|
-
icon:
|
|
893
|
-
|
|
906
|
+
icon: L(() => [
|
|
907
|
+
y(r(ie), { icon: "i-material-symbols-delete-rounded" })
|
|
894
908
|
]),
|
|
895
909
|
_: 1
|
|
896
|
-
}, 16, ["class"])) :
|
|
897
|
-
|
|
898
|
-
class:
|
|
899
|
-
"opacity-0": !
|
|
910
|
+
}, 16, ["class"])) : O("", !0),
|
|
911
|
+
y(r(ln), {
|
|
912
|
+
class: se({
|
|
913
|
+
"opacity-0": !R.hovering && !s.value
|
|
900
914
|
}),
|
|
901
915
|
"button-props": {
|
|
902
916
|
flat: !0,
|
|
903
917
|
size: "mini"
|
|
904
918
|
},
|
|
905
|
-
disabled: !
|
|
906
|
-
"onUpdate:visible":
|
|
919
|
+
disabled: !r(l),
|
|
920
|
+
"onUpdate:visible": C[8] || (C[8] = ($) => s.value = $)
|
|
907
921
|
}, {
|
|
908
|
-
popper:
|
|
922
|
+
popper: L(() => [
|
|
909
923
|
d("div", co, [
|
|
910
|
-
|
|
911
|
-
onClick:
|
|
924
|
+
y(r(Ct), {
|
|
925
|
+
onClick: C[6] || (C[6] = ($) => r(t)(typeof a.value == "object" ? JSON.stringify(a.value) : a.value.toString()))
|
|
912
926
|
}, {
|
|
913
|
-
icon:
|
|
914
|
-
|
|
927
|
+
icon: L(() => [
|
|
928
|
+
y(r(ie), {
|
|
915
929
|
icon: "i-material-symbols-copy-all-rounded",
|
|
916
930
|
class: "mt4px"
|
|
917
931
|
}),
|
|
918
|
-
|
|
932
|
+
C[9] || (C[9] = X(" Copy Value "))
|
|
919
933
|
]),
|
|
920
934
|
_: 1
|
|
921
935
|
}),
|
|
922
|
-
|
|
923
|
-
onClick:
|
|
924
|
-
|
|
936
|
+
y(r(Ct), {
|
|
937
|
+
onClick: C[7] || (C[7] = () => {
|
|
938
|
+
r(t)(R.data.key);
|
|
925
939
|
})
|
|
926
940
|
}, {
|
|
927
|
-
icon:
|
|
928
|
-
|
|
941
|
+
icon: L(() => [
|
|
942
|
+
y(r(ie), {
|
|
929
943
|
icon: "i-material-symbols-copy-all-rounded",
|
|
930
944
|
class: "mt4px"
|
|
931
945
|
}),
|
|
932
|
-
|
|
946
|
+
C[10] || (C[10] = X(" Copy Path "))
|
|
933
947
|
]),
|
|
934
948
|
_: 1
|
|
935
949
|
})
|
|
936
950
|
])
|
|
937
951
|
]),
|
|
938
|
-
"button-icon":
|
|
939
|
-
|
|
952
|
+
"button-icon": L(() => [
|
|
953
|
+
y(r(ie), { icon: "i-material-symbols:more-vert" })
|
|
940
954
|
]),
|
|
941
955
|
_: 1
|
|
942
956
|
}, 8, ["class", "disabled"])
|
|
943
957
|
]));
|
|
944
958
|
}
|
|
945
|
-
}), fo = { class: "flex-inline items-center gap4px" },
|
|
959
|
+
}), fo = { class: "flex-inline items-center gap4px" }, Je = /* @__PURE__ */ B({
|
|
946
960
|
__name: "StateFieldInputEditor",
|
|
947
961
|
props: {
|
|
948
962
|
modelValue: {},
|
|
@@ -952,73 +966,73 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
952
966
|
},
|
|
953
967
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
954
968
|
setup(n, { emit: e }) {
|
|
955
|
-
const o = n, t = e,
|
|
956
|
-
|
|
957
|
-
|
|
969
|
+
const o = n, t = e, l = E(() => o.customType === "date" ? "datetime-local" : ""), { escape: s, enter: c } = ao();
|
|
970
|
+
tt(() => {
|
|
971
|
+
s.value ? t("cancel") : c.value && t("submit");
|
|
958
972
|
});
|
|
959
|
-
const
|
|
960
|
-
function
|
|
973
|
+
const a = io(o, "modelValue", t);
|
|
974
|
+
function i(u) {
|
|
961
975
|
try {
|
|
962
|
-
return
|
|
976
|
+
return Oe(u, o.customType), !0;
|
|
963
977
|
} catch {
|
|
964
978
|
return !1;
|
|
965
979
|
}
|
|
966
980
|
}
|
|
967
|
-
const
|
|
968
|
-
return
|
|
969
|
-
|
|
970
|
-
}, 300)), (
|
|
971
|
-
|
|
972
|
-
modelValue:
|
|
973
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
974
|
-
type:
|
|
975
|
-
variant:
|
|
976
|
-
class:
|
|
977
|
-
"auto-focus":
|
|
981
|
+
const g = I(!1);
|
|
982
|
+
return Q(a, gn(() => {
|
|
983
|
+
g.value = !i(a.value);
|
|
984
|
+
}, 300)), (u, m) => (p(), v("span", fo, [
|
|
985
|
+
y(r(_e), {
|
|
986
|
+
modelValue: r(a),
|
|
987
|
+
"onUpdate:modelValue": m[0] || (m[0] = (V) => Ze(a) ? a.value = V : null),
|
|
988
|
+
type: l.value,
|
|
989
|
+
variant: g.value ? "warning" : "normal",
|
|
990
|
+
class: se(["h25px px4px", u.customType === "date" ? "w240px" : "w120px"]),
|
|
991
|
+
"auto-focus": u.autoFocus,
|
|
978
992
|
onClick: m[1] || (m[1] = fe(() => {
|
|
979
993
|
}, ["stop"]))
|
|
980
994
|
}, null, 8, ["modelValue", "type", "variant", "class", "auto-focus"]),
|
|
981
|
-
|
|
982
|
-
|
|
995
|
+
u.showActions ? (p(), v(oe, { key: 0 }, [
|
|
996
|
+
q((p(), z(r(pe), {
|
|
983
997
|
size: "mini",
|
|
984
998
|
flat: "",
|
|
985
999
|
class: "p2px!",
|
|
986
|
-
onClick: m[2] || (m[2] = fe((
|
|
1000
|
+
onClick: m[2] || (m[2] = fe((V) => u.$emit("cancel"), ["stop"]))
|
|
987
1001
|
}, {
|
|
988
|
-
icon:
|
|
989
|
-
|
|
1002
|
+
icon: L(() => [
|
|
1003
|
+
y(r(ie), { icon: "i-material-symbols-cancel" })
|
|
990
1004
|
]),
|
|
991
1005
|
_: 1
|
|
992
1006
|
})), [
|
|
993
|
-
[
|
|
1007
|
+
[r(J), {
|
|
994
1008
|
content: "Esc to cancel"
|
|
995
1009
|
}]
|
|
996
1010
|
]),
|
|
997
|
-
|
|
1011
|
+
g.value ? q((p(), z(r(ie), {
|
|
998
1012
|
key: 1,
|
|
999
1013
|
icon: "i-material-symbols-warning",
|
|
1000
1014
|
class: "color-warning-500 dark:color-warning-300"
|
|
1001
1015
|
}, null, 512)), [
|
|
1002
|
-
[
|
|
1016
|
+
[r(J), {
|
|
1003
1017
|
content: "Invalid value"
|
|
1004
1018
|
}]
|
|
1005
|
-
]) :
|
|
1019
|
+
]) : q((p(), z(r(pe), {
|
|
1006
1020
|
key: 0,
|
|
1007
1021
|
size: "mini",
|
|
1008
1022
|
flat: "",
|
|
1009
1023
|
class: "p2px!",
|
|
1010
|
-
onClick: m[3] || (m[3] = fe((
|
|
1024
|
+
onClick: m[3] || (m[3] = fe((V) => u.$emit("submit"), ["stop"]))
|
|
1011
1025
|
}, {
|
|
1012
|
-
icon:
|
|
1013
|
-
|
|
1026
|
+
icon: L(() => [
|
|
1027
|
+
y(r(ie), { icon: "i-material-symbols-save" })
|
|
1014
1028
|
]),
|
|
1015
1029
|
_: 1
|
|
1016
1030
|
})), [
|
|
1017
|
-
[
|
|
1031
|
+
[r(J), {
|
|
1018
1032
|
content: "Enter to submit change"
|
|
1019
1033
|
}]
|
|
1020
1034
|
])
|
|
1021
|
-
], 64)) :
|
|
1035
|
+
], 64)) : O("", !0)
|
|
1022
1036
|
]));
|
|
1023
1037
|
}
|
|
1024
1038
|
}), vo = {
|
|
@@ -1032,7 +1046,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1032
1046
|
"text-ellipsis": "",
|
|
1033
1047
|
"whitespace-nowrap": "",
|
|
1034
1048
|
"state-key": ""
|
|
1035
|
-
},
|
|
1049
|
+
}, St = 30, _o = /* @__PURE__ */ B({
|
|
1036
1050
|
__name: "StateFieldViewer",
|
|
1037
1051
|
props: {
|
|
1038
1052
|
data: {},
|
|
@@ -1041,170 +1055,170 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1041
1055
|
expandedStateId: {}
|
|
1042
1056
|
},
|
|
1043
1057
|
setup(n) {
|
|
1044
|
-
const e = n, o =
|
|
1058
|
+
const e = n, o = I(St), t = E(() => vn(e.data.value, !1, {
|
|
1045
1059
|
customClass: {
|
|
1046
1060
|
string: "max-w-120 truncate"
|
|
1047
1061
|
}
|
|
1048
|
-
})),
|
|
1049
|
-
var
|
|
1050
|
-
return
|
|
1051
|
-
}),
|
|
1052
|
-
const { value:
|
|
1053
|
-
return
|
|
1054
|
-
}),
|
|
1055
|
-
var
|
|
1056
|
-
const
|
|
1057
|
-
if (
|
|
1058
|
-
return
|
|
1059
|
-
if ((
|
|
1062
|
+
})), l = E(() => _t(e.data.value)), s = E(() => Nt(e.data.value)), { expanded: c, toggleExpanded: a } = it(e.expandedStateId ?? ""), i = E(() => {
|
|
1063
|
+
var H;
|
|
1064
|
+
return l.value === "custom" ? `${((H = e.data.value._custom) == null ? void 0 : H.type) ?? "string"}-custom-state` : "";
|
|
1065
|
+
}), g = E(() => {
|
|
1066
|
+
const { value: H } = s.value;
|
|
1067
|
+
return yt(H) ? H.length : xt(H) ? Object.keys(H).length : 0;
|
|
1068
|
+
}), h = E(() => e.data.path || [e.data.key]), u = E(() => h.value[h.value.length - 1]), m = E(() => {
|
|
1069
|
+
var f, _, S, P, Z, re, Me;
|
|
1070
|
+
const H = ["Reactive"], b = ((_ = (f = e.data.value) == null ? void 0 : f._custom) == null ? void 0 : _.stateTypeName) || ((S = e.data) == null ? void 0 : S.stateTypeName);
|
|
1071
|
+
if (H.includes(b))
|
|
1072
|
+
return b;
|
|
1073
|
+
if ((Z = (P = e.data.value) == null ? void 0 : P.fields) != null && Z.abstract)
|
|
1060
1074
|
return "";
|
|
1061
1075
|
{
|
|
1062
|
-
const
|
|
1063
|
-
return
|
|
1076
|
+
const Le = (Me = (re = e.data.value) == null ? void 0 : re._custom) == null ? void 0 : Me.type, He = l.value === "custom" && !Le ? `"${t.value}"` : t.value === "" ? '""' : t.value, Ue = l.value === "custom" && Le === "ref" ? _t(He) : l.value, Ge = l.value === "string" ? "select-text" : "", Ee = `<span title="${l.value === "string" ? e.data.value : ""}" class="${Ue}-state-type flex whitespace-nowrap ${Ge}">${He}</span>`;
|
|
1077
|
+
return b ? `${Ee} <span class="text-gray-500">(${b})</span>` : Ee;
|
|
1064
1078
|
}
|
|
1065
|
-
}),
|
|
1066
|
-
const { value:
|
|
1067
|
-
let
|
|
1068
|
-
return
|
|
1069
|
-
key:
|
|
1070
|
-
path: [...
|
|
1071
|
-
value:
|
|
1072
|
-
...
|
|
1073
|
-
editable: e.data.editable && !
|
|
1079
|
+
}), V = E(() => {
|
|
1080
|
+
const { value: H, inherit: b, customType: f } = s.value, _ = f === "set";
|
|
1081
|
+
let S = [];
|
|
1082
|
+
return yt(H) ? H.slice(0, o.value).map((Z, re) => ({
|
|
1083
|
+
key: re.toString(),
|
|
1084
|
+
path: [...h.value, re.toString()],
|
|
1085
|
+
value: Z,
|
|
1086
|
+
...b,
|
|
1087
|
+
editable: e.data.editable && !_,
|
|
1074
1088
|
creating: !1
|
|
1075
|
-
})) : (
|
|
1076
|
-
key:
|
|
1077
|
-
path: [...
|
|
1078
|
-
value:
|
|
1079
|
-
...
|
|
1080
|
-
editable: e.data.editable && !
|
|
1089
|
+
})) : (xt(H) && (S = Object.keys(H).slice(0, o.value).map((P) => ({
|
|
1090
|
+
key: P,
|
|
1091
|
+
path: [...h.value, P],
|
|
1092
|
+
value: H[P],
|
|
1093
|
+
...b,
|
|
1094
|
+
editable: e.data.editable && !_,
|
|
1081
1095
|
creating: !1
|
|
1082
|
-
})),
|
|
1083
|
-
}),
|
|
1084
|
-
|
|
1085
|
-
if (
|
|
1086
|
-
const { value:
|
|
1087
|
-
|
|
1096
|
+
})), l.value !== "custom" && (S = At(S))), S === e.data.value ? [] : S);
|
|
1097
|
+
}), R = E(() => V.value.length > 0), C = I(), $ = at(), { isHovering: j } = ro(() => C.value), { editingType: A, editing: x, editingText: w, toggleEditing: N, nodeId: M } = Hn();
|
|
1098
|
+
Q(() => x.value, (H) => {
|
|
1099
|
+
if (H) {
|
|
1100
|
+
const { value: b } = s.value;
|
|
1101
|
+
w.value = mn(b, s.value.customType);
|
|
1088
1102
|
} else
|
|
1089
|
-
|
|
1103
|
+
w.value = "";
|
|
1090
1104
|
});
|
|
1091
|
-
async function
|
|
1092
|
-
const
|
|
1093
|
-
await
|
|
1094
|
-
path:
|
|
1105
|
+
async function G() {
|
|
1106
|
+
const H = e.data;
|
|
1107
|
+
await D.value.editInspectorState({
|
|
1108
|
+
path: h.value,
|
|
1095
1109
|
inspectorId: $.value.inspectorId,
|
|
1096
|
-
type:
|
|
1097
|
-
nodeId:
|
|
1110
|
+
type: H.stateType,
|
|
1111
|
+
nodeId: M.value,
|
|
1098
1112
|
state: {
|
|
1099
1113
|
newKey: null,
|
|
1100
|
-
type:
|
|
1101
|
-
value:
|
|
1114
|
+
type: A.value,
|
|
1115
|
+
value: Oe(w.value, s.value.customType)
|
|
1102
1116
|
}
|
|
1103
|
-
}), await
|
|
1117
|
+
}), await D.value.sendInspectorState($.value.inspectorId), N();
|
|
1104
1118
|
}
|
|
1105
|
-
const { addNewProp:
|
|
1106
|
-
function
|
|
1107
|
-
const
|
|
1108
|
-
|
|
1119
|
+
const { addNewProp: F, draftingNewProp: W, resetDrafting: de } = On();
|
|
1120
|
+
function he(H) {
|
|
1121
|
+
const b = `${e.depth}-${e.index}`;
|
|
1122
|
+
c.value.includes(b) || a(b), F(H, s.value.value);
|
|
1109
1123
|
}
|
|
1110
|
-
async function
|
|
1111
|
-
const
|
|
1112
|
-
await
|
|
1113
|
-
path: [...
|
|
1124
|
+
async function le() {
|
|
1125
|
+
const H = e.data;
|
|
1126
|
+
await D.value.editInspectorState({
|
|
1127
|
+
path: [...h.value, W.value.key],
|
|
1114
1128
|
inspectorId: $.value.inspectorId,
|
|
1115
|
-
type:
|
|
1116
|
-
nodeId:
|
|
1129
|
+
type: H.stateType,
|
|
1130
|
+
nodeId: M.value,
|
|
1117
1131
|
state: {
|
|
1118
|
-
newKey:
|
|
1119
|
-
type: typeof
|
|
1120
|
-
value:
|
|
1132
|
+
newKey: W.value.key,
|
|
1133
|
+
type: typeof Oe(W.value.value),
|
|
1134
|
+
value: Oe(W.value.value)
|
|
1121
1135
|
}
|
|
1122
|
-
}), await
|
|
1136
|
+
}), await D.value.sendInspectorState($.value.inspectorId), de();
|
|
1123
1137
|
}
|
|
1124
|
-
return (
|
|
1138
|
+
return (H, b) => (p(), v("div", null, [
|
|
1125
1139
|
d("div", {
|
|
1126
1140
|
ref_key: "containerRef",
|
|
1127
|
-
ref:
|
|
1128
|
-
class:
|
|
1129
|
-
style:
|
|
1130
|
-
onClick:
|
|
1141
|
+
ref: C,
|
|
1142
|
+
class: se(["font-state-field flex items-center text-3.5", [R.value && "cursor-pointer hover:bg-active"]]),
|
|
1143
|
+
style: $e({ paddingLeft: `${H.depth * 15 + 4}px` }),
|
|
1144
|
+
onClick: b[1] || (b[1] = (f) => r(a)(`${H.depth}-${H.index}`))
|
|
1131
1145
|
}, [
|
|
1132
|
-
|
|
1146
|
+
R.value ? (p(), z(st, {
|
|
1133
1147
|
key: 0,
|
|
1134
|
-
value: c
|
|
1135
|
-
}, null, 8, ["value"])) : (p(),
|
|
1136
|
-
d("span", mo,
|
|
1137
|
-
|
|
1138
|
-
|
|
1148
|
+
value: r(c).includes(`${H.depth}-${H.index}`)
|
|
1149
|
+
}, null, 8, ["value"])) : (p(), v("span", vo)),
|
|
1150
|
+
d("span", mo, ae(u.value), 1),
|
|
1151
|
+
b[5] || (b[5] = d("span", { mx1: "" }, ":", -1)),
|
|
1152
|
+
r(x) ? (p(), z(Je, {
|
|
1139
1153
|
key: 2,
|
|
1140
|
-
modelValue:
|
|
1141
|
-
"onUpdate:modelValue":
|
|
1154
|
+
modelValue: r(w),
|
|
1155
|
+
"onUpdate:modelValue": b[0] || (b[0] = (f) => Ze(w) ? w.value = f : null),
|
|
1142
1156
|
class: "mr-1",
|
|
1143
|
-
"custom-type":
|
|
1144
|
-
onCancel:
|
|
1145
|
-
onSubmit:
|
|
1146
|
-
}, null, 8, ["modelValue", "custom-type", "onCancel"])) :
|
|
1157
|
+
"custom-type": s.value.customType,
|
|
1158
|
+
onCancel: r(N),
|
|
1159
|
+
onSubmit: G
|
|
1160
|
+
}, null, 8, ["modelValue", "custom-type", "onCancel"])) : O("", !0),
|
|
1147
1161
|
d("span", {
|
|
1148
|
-
class:
|
|
1162
|
+
class: se([i.value, "flex whitespace-nowrap"])
|
|
1149
1163
|
}, [
|
|
1150
1164
|
d("span", {
|
|
1151
1165
|
class: "flex",
|
|
1152
1166
|
innerHTML: m.value
|
|
1153
1167
|
}, null, 8, ho)
|
|
1154
1168
|
], 2),
|
|
1155
|
-
|
|
1156
|
-
hovering:
|
|
1157
|
-
"disable-edit":
|
|
1158
|
-
data:
|
|
1159
|
-
depth:
|
|
1160
|
-
onEnableEditInput:
|
|
1161
|
-
onAddNewProp:
|
|
1169
|
+
y(po, {
|
|
1170
|
+
hovering: r(j),
|
|
1171
|
+
"disable-edit": r($).disableEdit || r(x),
|
|
1172
|
+
data: H.data,
|
|
1173
|
+
depth: H.depth,
|
|
1174
|
+
onEnableEditInput: r(N),
|
|
1175
|
+
onAddNewProp: he
|
|
1162
1176
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
1163
1177
|
], 6),
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
data:
|
|
1167
|
-
depth:
|
|
1168
|
-
index:
|
|
1178
|
+
R.value && r(c).includes(`${H.depth}-${H.index}`) ? (p(), v("div", go, [
|
|
1179
|
+
y(Bt, {
|
|
1180
|
+
data: V.value,
|
|
1181
|
+
depth: H.depth,
|
|
1182
|
+
index: H.index
|
|
1169
1183
|
}, null, 8, ["data", "depth", "index"]),
|
|
1170
|
-
|
|
1184
|
+
g.value > o.value ? q((p(), z(r(pe), {
|
|
1171
1185
|
key: 0,
|
|
1172
1186
|
flat: "",
|
|
1173
1187
|
size: "mini",
|
|
1174
1188
|
class: "ml-4",
|
|
1175
|
-
onClick:
|
|
1189
|
+
onClick: b[2] || (b[2] = (f) => o.value += St)
|
|
1176
1190
|
}, {
|
|
1177
|
-
icon:
|
|
1178
|
-
|
|
1191
|
+
icon: L(() => [
|
|
1192
|
+
y(r(ie), { icon: "i-material-symbols-more-horiz" })
|
|
1179
1193
|
]),
|
|
1180
1194
|
_: 1
|
|
1181
1195
|
})), [
|
|
1182
|
-
[
|
|
1183
|
-
]) :
|
|
1184
|
-
|
|
1196
|
+
[r(J), "Show more"]
|
|
1197
|
+
]) : O("", !0),
|
|
1198
|
+
r(W).enable ? (p(), v("div", {
|
|
1185
1199
|
key: 1,
|
|
1186
|
-
style:
|
|
1200
|
+
style: $e({ paddingLeft: `${(H.depth + 1) * 15 + 4}px` })
|
|
1187
1201
|
}, [
|
|
1188
1202
|
d("span", Co, [
|
|
1189
|
-
|
|
1190
|
-
modelValue:
|
|
1191
|
-
"onUpdate:modelValue":
|
|
1203
|
+
y(Je, {
|
|
1204
|
+
modelValue: r(W).key,
|
|
1205
|
+
"onUpdate:modelValue": b[3] || (b[3] = (f) => r(W).key = f),
|
|
1192
1206
|
"show-actions": !1
|
|
1193
1207
|
}, null, 8, ["modelValue"])
|
|
1194
1208
|
]),
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
modelValue:
|
|
1198
|
-
"onUpdate:modelValue":
|
|
1209
|
+
b[6] || (b[6] = d("span", { "mx-1": "" }, ":", -1)),
|
|
1210
|
+
y(Je, {
|
|
1211
|
+
modelValue: r(W).value,
|
|
1212
|
+
"onUpdate:modelValue": b[4] || (b[4] = (f) => r(W).value = f),
|
|
1199
1213
|
"auto-focus": !1,
|
|
1200
|
-
onCancel:
|
|
1201
|
-
onSubmit:
|
|
1214
|
+
onCancel: r(de),
|
|
1215
|
+
onSubmit: le
|
|
1202
1216
|
}, null, 8, ["modelValue", "onCancel"])
|
|
1203
|
-
], 4)) :
|
|
1204
|
-
])) :
|
|
1217
|
+
], 4)) : O("", !0)
|
|
1218
|
+
])) : O("", !0)
|
|
1205
1219
|
]));
|
|
1206
1220
|
}
|
|
1207
|
-
}), yo = /* @__PURE__ */
|
|
1221
|
+
}), yo = /* @__PURE__ */ xe(_o, [["__scopeId", "data-v-18a10784"]]), Bt = /* @__PURE__ */ B({
|
|
1208
1222
|
__name: "ChildStateViewer",
|
|
1209
1223
|
props: {
|
|
1210
1224
|
data: {},
|
|
@@ -1213,12 +1227,12 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1213
1227
|
expandedStateId: { default: "" }
|
|
1214
1228
|
},
|
|
1215
1229
|
setup(n) {
|
|
1216
|
-
return (e, o) => (p(),
|
|
1217
|
-
(p(!0),
|
|
1218
|
-
|
|
1230
|
+
return (e, o) => (p(), v("div", null, [
|
|
1231
|
+
(p(!0), v(oe, null, ue(e.data, (t, l) => (p(), v("div", { key: l }, [
|
|
1232
|
+
y(yo, {
|
|
1219
1233
|
data: t,
|
|
1220
1234
|
depth: e.depth + 1,
|
|
1221
|
-
index: `${e.index}-${
|
|
1235
|
+
index: `${e.index}-${l}`,
|
|
1222
1236
|
"expanded-state-id": e.expandedStateId
|
|
1223
1237
|
}, null, 8, ["data", "depth", "index", "expanded-state-id"])
|
|
1224
1238
|
]))), 128))
|
|
@@ -1230,7 +1244,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1230
1244
|
}, wo = {
|
|
1231
1245
|
"font-state-field": "",
|
|
1232
1246
|
"text-3.5": ""
|
|
1233
|
-
}, ko = { key: 0 },
|
|
1247
|
+
}, ko = { key: 0 }, De = /* @__PURE__ */ B({
|
|
1234
1248
|
__name: "RootStateViewer",
|
|
1235
1249
|
props: {
|
|
1236
1250
|
data: {},
|
|
@@ -1249,29 +1263,29 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1249
1263
|
};
|
|
1250
1264
|
}
|
|
1251
1265
|
const { context: t } = Ln(o());
|
|
1252
|
-
|
|
1266
|
+
tt(() => {
|
|
1253
1267
|
t.value = o();
|
|
1254
1268
|
});
|
|
1255
|
-
const { expanded:
|
|
1256
|
-
return (
|
|
1257
|
-
(p(!0),
|
|
1269
|
+
const { expanded: l, toggleExpanded: s } = it(e.expandedStateId);
|
|
1270
|
+
return (c, a) => (p(), v("div", null, [
|
|
1271
|
+
(p(!0), v(oe, null, ue(c.data, (i, g, h) => (p(), v("div", { key: h }, [
|
|
1258
1272
|
d("div", {
|
|
1259
|
-
class:
|
|
1260
|
-
onClick: (
|
|
1273
|
+
class: se(["flex items-center", [(i == null ? void 0 : i.length) && "cursor-pointer hover:bg-active"]]),
|
|
1274
|
+
onClick: (u) => r(s)(`${h}`)
|
|
1261
1275
|
}, [
|
|
1262
|
-
|
|
1276
|
+
i != null && i.length ? (p(), z(st, {
|
|
1263
1277
|
key: 0,
|
|
1264
|
-
value:
|
|
1265
|
-
}, null, 8, ["value"])) : (p(),
|
|
1266
|
-
d("span", wo,
|
|
1278
|
+
value: r(l).includes(`${h}`)
|
|
1279
|
+
}, null, 8, ["value"])) : (p(), v("span", bo)),
|
|
1280
|
+
d("span", wo, ae(g), 1)
|
|
1267
1281
|
], 10, xo),
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
data:
|
|
1271
|
-
index: `${
|
|
1272
|
-
"expanded-state-id":
|
|
1282
|
+
i != null && i.length && r(l).includes(`${h}`) ? (p(), v("div", ko, [
|
|
1283
|
+
y(Bt, {
|
|
1284
|
+
data: i,
|
|
1285
|
+
index: `${h}`,
|
|
1286
|
+
"expanded-state-id": c.expandedStateId
|
|
1273
1287
|
}, null, 8, ["data", "index", "expanded-state-id"])
|
|
1274
|
-
])) :
|
|
1288
|
+
])) : O("", !0)
|
|
1275
1289
|
]))), 128))
|
|
1276
1290
|
]));
|
|
1277
1291
|
}
|
|
@@ -1290,7 +1304,7 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1290
1304
|
op30: ""
|
|
1291
1305
|
}, No = /* @__PURE__ */ B({
|
|
1292
1306
|
__name: "EventList",
|
|
1293
|
-
props: /* @__PURE__ */
|
|
1307
|
+
props: /* @__PURE__ */ je({
|
|
1294
1308
|
data: {}
|
|
1295
1309
|
}, {
|
|
1296
1310
|
modelValue: {},
|
|
@@ -1298,20 +1312,20 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1298
1312
|
}),
|
|
1299
1313
|
emits: ["update:modelValue"],
|
|
1300
1314
|
setup(n) {
|
|
1301
|
-
const e = n, o =
|
|
1302
|
-
let
|
|
1303
|
-
return e.data.forEach((
|
|
1304
|
-
(
|
|
1315
|
+
const e = n, o = Xe(n, "modelValue"), t = ["#3e5770", "#42b983", "#0098c4"], l = I(null), s = E(() => {
|
|
1316
|
+
let c = -1, a = 0;
|
|
1317
|
+
return e.data.forEach((i, g) => {
|
|
1318
|
+
(i.groupId !== a || c === -1) && (c = (c + 1) % t.length), a = i.groupId ?? a, i.id = g, i.color = t[c];
|
|
1305
1319
|
}), e.data;
|
|
1306
1320
|
});
|
|
1307
|
-
return
|
|
1308
|
-
var
|
|
1309
|
-
(
|
|
1310
|
-
}, { flush: "post" }), (
|
|
1311
|
-
|
|
1321
|
+
return Q(() => s.value.length, (c) => {
|
|
1322
|
+
var a;
|
|
1323
|
+
(a = l.value) == null || a.scrollToItem(c - 1);
|
|
1324
|
+
}, { flush: "post" }), (c, a) => (p(), v("div", Io, [
|
|
1325
|
+
y(r(Cn), {
|
|
1312
1326
|
ref_key: "scrollerRef",
|
|
1313
|
-
ref:
|
|
1314
|
-
items:
|
|
1327
|
+
ref: l,
|
|
1328
|
+
items: s.value,
|
|
1315
1329
|
"min-item-size": 52,
|
|
1316
1330
|
"key-field": "id",
|
|
1317
1331
|
"page-mode": "",
|
|
@@ -1319,21 +1333,21 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1319
1333
|
"list-tag": "ul",
|
|
1320
1334
|
buffer: 20
|
|
1321
1335
|
}, {
|
|
1322
|
-
default:
|
|
1336
|
+
default: L(({ item: i }) => [
|
|
1323
1337
|
d("div", {
|
|
1324
1338
|
class: "relative mb7 h6 cursor-pointer",
|
|
1325
|
-
style:
|
|
1326
|
-
onClick: (
|
|
1339
|
+
style: $e({ color: o.value === i.id ? i.color : "" }),
|
|
1340
|
+
onClick: (g) => o.value = i.id
|
|
1327
1341
|
}, [
|
|
1328
1342
|
d("span", {
|
|
1329
1343
|
class: "absolute top-1.5 inline-block h3 w3 b rounded-50%",
|
|
1330
|
-
style:
|
|
1344
|
+
style: $e({ border: `3px solid ${i.color}` })
|
|
1331
1345
|
}, null, 4),
|
|
1332
|
-
|
|
1346
|
+
i.id < c.data.length - 1 ? (p(), v("span", So)) : O("", !0),
|
|
1333
1347
|
d("p", To, [
|
|
1334
|
-
d("span", Eo, "[" +
|
|
1335
|
-
|
|
1336
|
-
d("span", Vo,
|
|
1348
|
+
d("span", Eo, "[" + ae(r(xn)(i.time)) + "]", 1),
|
|
1349
|
+
X(" " + ae(i.title) + " ", 1),
|
|
1350
|
+
d("span", Vo, ae(i.subtitle), 1)
|
|
1337
1351
|
])
|
|
1338
1352
|
], 12, $o)
|
|
1339
1353
|
]),
|
|
@@ -1360,10 +1374,10 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1360
1374
|
}, Lo = { class: "flex items-center gap-2 px-1" }, Ho = {
|
|
1361
1375
|
key: 0,
|
|
1362
1376
|
class: "recording recording-btn bg-[#ef4444]"
|
|
1363
|
-
},
|
|
1377
|
+
}, Uo = {
|
|
1364
1378
|
key: 1,
|
|
1365
1379
|
class: "recording-btn bg-black op70 dark:bg-white hover:op100"
|
|
1366
|
-
},
|
|
1380
|
+
}, Oo = { class: "flex items-center gap1" }, jo = /* @__PURE__ */ B({
|
|
1367
1381
|
__name: "index",
|
|
1368
1382
|
props: {
|
|
1369
1383
|
layerIds: {},
|
|
@@ -1376,100 +1390,100 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1376
1390
|
setup(n, { expose: e }) {
|
|
1377
1391
|
const o = n, { expanded: t } = me("timeline-state");
|
|
1378
1392
|
t.value = ["0", "1"];
|
|
1379
|
-
const
|
|
1380
|
-
var
|
|
1381
|
-
return (
|
|
1382
|
-
}),
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1385
|
-
for (const
|
|
1386
|
-
|
|
1387
|
-
key:
|
|
1388
|
-
type:
|
|
1393
|
+
const l = I([]), s = I(/* @__PURE__ */ new Map()), c = I(0), a = Rt(), i = E(() => {
|
|
1394
|
+
var A;
|
|
1395
|
+
return (A = a.timelineLayersState.value) == null ? void 0 : A[o.pluginId];
|
|
1396
|
+
}), g = E(() => l.value[c.value] ?? null), h = E(() => i.value ? "Stop recording" : "Start recording"), u = E(() => {
|
|
1397
|
+
var x;
|
|
1398
|
+
const A = [];
|
|
1399
|
+
for (const w in (x = g.value) == null ? void 0 : x.data)
|
|
1400
|
+
A.push({
|
|
1401
|
+
key: w,
|
|
1402
|
+
type: w,
|
|
1389
1403
|
editable: !1,
|
|
1390
|
-
value:
|
|
1404
|
+
value: g.value.data[w]
|
|
1391
1405
|
});
|
|
1392
|
-
return
|
|
1393
|
-
}), m =
|
|
1394
|
-
var
|
|
1395
|
-
const
|
|
1396
|
-
if (
|
|
1397
|
-
const
|
|
1406
|
+
return A;
|
|
1407
|
+
}), m = E(() => {
|
|
1408
|
+
var w, N, M;
|
|
1409
|
+
const A = (w = g.value) == null ? void 0 : w.groupId, x = s.value.get(A);
|
|
1410
|
+
if (x) {
|
|
1411
|
+
const G = ((N = x[x.length - 1]) == null ? void 0 : N.time) - (((M = x[0]) == null ? void 0 : M.time) ?? 0);
|
|
1398
1412
|
return [{
|
|
1399
1413
|
key: "events",
|
|
1400
1414
|
type: "events",
|
|
1401
1415
|
editable: !1,
|
|
1402
|
-
value:
|
|
1403
|
-
},
|
|
1416
|
+
value: x.length
|
|
1417
|
+
}, G && {
|
|
1404
1418
|
key: "duration",
|
|
1405
1419
|
type: "duration",
|
|
1406
1420
|
editable: !1,
|
|
1407
|
-
value: `${
|
|
1421
|
+
value: `${G}ms`
|
|
1408
1422
|
}].filter(Boolean);
|
|
1409
1423
|
}
|
|
1410
|
-
}),
|
|
1411
|
-
function A
|
|
1412
|
-
var
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
}
|
|
1416
|
-
function
|
|
1417
|
-
const
|
|
1418
|
-
if (!
|
|
1424
|
+
}), V = E(() => ({ "Event Info": u.value, ...m.value && { "Group Info": m.value } }));
|
|
1425
|
+
function R(A) {
|
|
1426
|
+
var w;
|
|
1427
|
+
const x = A.groupId;
|
|
1428
|
+
x !== void 0 && (s.value.set(x, s.value.get(x) ?? []), (w = s.value.get(x)) == null || w.push(A));
|
|
1429
|
+
}
|
|
1430
|
+
function C(A) {
|
|
1431
|
+
const x = ee(A);
|
|
1432
|
+
if (!x)
|
|
1419
1433
|
return;
|
|
1420
|
-
const { layerId:
|
|
1421
|
-
o.layerIds.includes(
|
|
1434
|
+
const { layerId: w, event: N } = x;
|
|
1435
|
+
o.layerIds.includes(w) && (l.value.push(N), R(N));
|
|
1422
1436
|
}
|
|
1423
|
-
|
|
1424
|
-
|
|
1437
|
+
D.functions.on(Y.TIMELINE_EVENT_UPDATED, C), we(() => {
|
|
1438
|
+
D.functions.off(Y.TIMELINE_EVENT_UPDATED, C);
|
|
1425
1439
|
});
|
|
1426
1440
|
function $() {
|
|
1427
|
-
|
|
1441
|
+
l.value = [], s.value.clear();
|
|
1428
1442
|
}
|
|
1429
1443
|
e({
|
|
1430
1444
|
clear: $
|
|
1431
1445
|
});
|
|
1432
|
-
function
|
|
1433
|
-
|
|
1434
|
-
[o.pluginId]: !
|
|
1446
|
+
function j() {
|
|
1447
|
+
D.value.updateTimelineLayersState({
|
|
1448
|
+
[o.pluginId]: !i.value
|
|
1435
1449
|
});
|
|
1436
1450
|
}
|
|
1437
|
-
return (
|
|
1438
|
-
|
|
1451
|
+
return (A, x) => (p(), v("div", Ro, [
|
|
1452
|
+
A.headerVisible ? (p(), z(Se, {
|
|
1439
1453
|
key: 0,
|
|
1440
|
-
"doc-link":
|
|
1441
|
-
"github-repo-link":
|
|
1454
|
+
"doc-link": A.docLink,
|
|
1455
|
+
"github-repo-link": A.githubRepoLink
|
|
1442
1456
|
}, {
|
|
1443
|
-
default:
|
|
1444
|
-
|
|
1457
|
+
default: L(() => [
|
|
1458
|
+
y(Te)
|
|
1445
1459
|
]),
|
|
1446
1460
|
_: 1
|
|
1447
|
-
}, 8, ["doc-link", "github-repo-link"])) :
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
default:
|
|
1451
|
-
|
|
1461
|
+
}, 8, ["doc-link", "github-repo-link"])) : O("", !0),
|
|
1462
|
+
l.value.length ? (p(), v("div", Ao, [
|
|
1463
|
+
y(r(Re), { class: "h-full" }, {
|
|
1464
|
+
default: L(() => [
|
|
1465
|
+
y(r(ce), {
|
|
1452
1466
|
border: "r base",
|
|
1453
1467
|
size: "40",
|
|
1454
1468
|
"h-full": ""
|
|
1455
1469
|
}, {
|
|
1456
|
-
default:
|
|
1470
|
+
default: L(() => [
|
|
1457
1471
|
d("div", Do, [
|
|
1458
|
-
|
|
1459
|
-
modelValue:
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1461
|
-
data:
|
|
1472
|
+
y(No, {
|
|
1473
|
+
modelValue: c.value,
|
|
1474
|
+
"onUpdate:modelValue": x[0] || (x[0] = (w) => c.value = w),
|
|
1475
|
+
data: l.value
|
|
1462
1476
|
}, null, 8, ["modelValue", "data"])
|
|
1463
1477
|
])
|
|
1464
1478
|
]),
|
|
1465
1479
|
_: 1
|
|
1466
1480
|
}),
|
|
1467
|
-
|
|
1468
|
-
default:
|
|
1481
|
+
y(r(ce), { size: "60" }, {
|
|
1482
|
+
default: L(() => [
|
|
1469
1483
|
d("div", Po, [
|
|
1470
|
-
|
|
1484
|
+
y(De, {
|
|
1471
1485
|
class: "p3",
|
|
1472
|
-
data:
|
|
1486
|
+
data: V.value,
|
|
1473
1487
|
"node-id": "",
|
|
1474
1488
|
"inspector-id": "",
|
|
1475
1489
|
"disable-edit": !0,
|
|
@@ -1482,35 +1496,35 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1482
1496
|
]),
|
|
1483
1497
|
_: 1
|
|
1484
1498
|
})
|
|
1485
|
-
])) : (p(), z(
|
|
1499
|
+
])) : (p(), z(Ie, {
|
|
1486
1500
|
key: 2,
|
|
1487
1501
|
class: "flex-1"
|
|
1488
1502
|
}, {
|
|
1489
|
-
default:
|
|
1490
|
-
|
|
1503
|
+
default: L(() => x[1] || (x[1] = [
|
|
1504
|
+
X(" No events ")
|
|
1491
1505
|
])),
|
|
1492
1506
|
_: 1
|
|
1493
1507
|
})),
|
|
1494
|
-
|
|
1508
|
+
A.switcherVisible ? (p(), v("div", Mo, [
|
|
1495
1509
|
d("div", Lo, [
|
|
1496
|
-
|
|
1510
|
+
q((p(), v("div", {
|
|
1497
1511
|
class: "flex items-center gap1",
|
|
1498
|
-
onClick:
|
|
1512
|
+
onClick: j
|
|
1499
1513
|
}, [
|
|
1500
|
-
|
|
1514
|
+
i.value ? (p(), v("span", Ho)) : (p(), v("span", Uo))
|
|
1501
1515
|
])), [
|
|
1502
1516
|
[
|
|
1503
|
-
|
|
1504
|
-
{ content:
|
|
1517
|
+
r(J),
|
|
1518
|
+
{ content: h.value },
|
|
1505
1519
|
void 0,
|
|
1506
1520
|
{ "bottom-end": !0 }
|
|
1507
1521
|
]
|
|
1508
1522
|
]),
|
|
1509
|
-
|
|
1523
|
+
q((p(), v("div", {
|
|
1510
1524
|
class: "flex items-center gap1",
|
|
1511
1525
|
onClick: $
|
|
1512
1526
|
}, [
|
|
1513
|
-
|
|
1527
|
+
y(r(Be), {
|
|
1514
1528
|
name: "baseline-delete",
|
|
1515
1529
|
"cursor-pointer": "",
|
|
1516
1530
|
"text-xl": "",
|
|
@@ -1519,14 +1533,14 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1519
1533
|
})
|
|
1520
1534
|
])), [
|
|
1521
1535
|
[
|
|
1522
|
-
|
|
1536
|
+
r(J),
|
|
1523
1537
|
{ content: "Clear all timelines" },
|
|
1524
1538
|
void 0,
|
|
1525
1539
|
{ "bottom-end": !0 }
|
|
1526
1540
|
]
|
|
1527
1541
|
]),
|
|
1528
|
-
|
|
1529
|
-
|
|
1542
|
+
q((p(), v("div", Oo, [
|
|
1543
|
+
y(r(Be), {
|
|
1530
1544
|
name: "baseline-tips-and-updates",
|
|
1531
1545
|
"cursor-pointer": "",
|
|
1532
1546
|
"text-xl": "",
|
|
@@ -1535,50 +1549,50 @@ const uo = { class: "flex pl5px" }, co = { class: "w160px py5px" }, po = /* @__P
|
|
|
1535
1549
|
})
|
|
1536
1550
|
])), [
|
|
1537
1551
|
[
|
|
1538
|
-
|
|
1552
|
+
r(J),
|
|
1539
1553
|
{ content: "<p style='width: 285px'>Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand. </p>", html: !0 },
|
|
1540
1554
|
void 0,
|
|
1541
1555
|
{ "bottom-end": !0 }
|
|
1542
1556
|
]
|
|
1543
1557
|
])
|
|
1544
1558
|
])
|
|
1545
|
-
])) :
|
|
1559
|
+
])) : O("", !0)
|
|
1546
1560
|
]));
|
|
1547
1561
|
}
|
|
1548
|
-
}),
|
|
1549
|
-
function
|
|
1550
|
-
const n =
|
|
1551
|
-
function o(
|
|
1552
|
-
e.value =
|
|
1553
|
-
t(
|
|
1562
|
+
}), dt = /* @__PURE__ */ xe(jo, [["__scopeId", "data-v-f59e6cce"]]);
|
|
1563
|
+
function ss() {
|
|
1564
|
+
const n = I([]), e = I([]);
|
|
1565
|
+
function o(l) {
|
|
1566
|
+
e.value = l, l.length < n.value.length && (n.value = []), e.value.forEach((s) => {
|
|
1567
|
+
t(s);
|
|
1554
1568
|
});
|
|
1555
1569
|
}
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
e.value =
|
|
1559
|
-
t(
|
|
1570
|
+
Ne(() => {
|
|
1571
|
+
D.value.getCustomInspector().then((l) => {
|
|
1572
|
+
e.value = l, e.value.forEach((s) => {
|
|
1573
|
+
t(s);
|
|
1560
1574
|
});
|
|
1561
|
-
}),
|
|
1575
|
+
}), D.functions.on(Y.INSPECTOR_UPDATED, o);
|
|
1562
1576
|
});
|
|
1563
|
-
function t(
|
|
1564
|
-
n.value.some((
|
|
1577
|
+
function t(l) {
|
|
1578
|
+
n.value.some((s) => s.id === l.id) || n.value.push(l);
|
|
1565
1579
|
}
|
|
1566
|
-
return
|
|
1567
|
-
|
|
1580
|
+
return we(() => {
|
|
1581
|
+
D.functions.off(Y.INSPECTOR_UPDATED, o);
|
|
1568
1582
|
}), {
|
|
1569
1583
|
registeredInspector: n,
|
|
1570
1584
|
register: t
|
|
1571
1585
|
};
|
|
1572
1586
|
}
|
|
1573
|
-
const
|
|
1587
|
+
const Ft = Symbol("SelectedSymbolKey");
|
|
1574
1588
|
function zo() {
|
|
1575
|
-
const n =
|
|
1576
|
-
return
|
|
1589
|
+
const n = I("");
|
|
1590
|
+
return Ce(Ft, n), {
|
|
1577
1591
|
selected: n
|
|
1578
1592
|
};
|
|
1579
1593
|
}
|
|
1580
1594
|
function Bo() {
|
|
1581
|
-
const n = ve(
|
|
1595
|
+
const n = ve(Ft, I(""));
|
|
1582
1596
|
function e(o) {
|
|
1583
1597
|
n.value = o;
|
|
1584
1598
|
}
|
|
@@ -1587,13 +1601,13 @@ function Bo() {
|
|
|
1587
1601
|
select: e
|
|
1588
1602
|
};
|
|
1589
1603
|
}
|
|
1590
|
-
const
|
|
1604
|
+
const Fo = ["onClick", "onDblclick"], Zo = {
|
|
1591
1605
|
key: 1,
|
|
1592
1606
|
pl5: ""
|
|
1593
|
-
},
|
|
1607
|
+
}, Ko = {
|
|
1594
1608
|
"font-state-field": "",
|
|
1595
1609
|
"text-3.5": ""
|
|
1596
|
-
},
|
|
1610
|
+
}, Go = {
|
|
1597
1611
|
key: 0,
|
|
1598
1612
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1599
1613
|
}, Wo = {
|
|
@@ -1608,9 +1622,9 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1608
1622
|
}, Yo = {
|
|
1609
1623
|
key: 3,
|
|
1610
1624
|
class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
|
|
1611
|
-
}, Xo = { key: 0 },
|
|
1625
|
+
}, Xo = { key: 0 }, Pe = /* @__PURE__ */ B({
|
|
1612
1626
|
__name: "TreeViewer",
|
|
1613
|
-
props: /* @__PURE__ */
|
|
1627
|
+
props: /* @__PURE__ */ je({
|
|
1614
1628
|
data: {},
|
|
1615
1629
|
depth: { default: 0 },
|
|
1616
1630
|
withTag: { type: Boolean, default: !1 }
|
|
@@ -1620,75 +1634,75 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1620
1634
|
}),
|
|
1621
1635
|
emits: ["update:modelValue"],
|
|
1622
1636
|
setup(n) {
|
|
1623
|
-
const e =
|
|
1637
|
+
const e = Xe(n, "modelValue"), { expanded: o, toggleExpanded: t } = it();
|
|
1624
1638
|
Bo();
|
|
1625
|
-
function
|
|
1626
|
-
return "name" in
|
|
1627
|
-
}
|
|
1628
|
-
function
|
|
1629
|
-
e.value =
|
|
1630
|
-
}
|
|
1631
|
-
return (
|
|
1632
|
-
var
|
|
1633
|
-
return p(),
|
|
1634
|
-
key:
|
|
1635
|
-
class:
|
|
1636
|
-
"min-w-max":
|
|
1639
|
+
function l(c) {
|
|
1640
|
+
return "name" in c && (c == null ? void 0 : c.name) || "label" in c && c.label;
|
|
1641
|
+
}
|
|
1642
|
+
function s(c) {
|
|
1643
|
+
e.value = c;
|
|
1644
|
+
}
|
|
1645
|
+
return (c, a) => (p(!0), v(oe, null, ue(c.data, (i, g) => {
|
|
1646
|
+
var h, u;
|
|
1647
|
+
return p(), v("div", {
|
|
1648
|
+
key: g,
|
|
1649
|
+
class: se({
|
|
1650
|
+
"min-w-max": c.depth === 0
|
|
1637
1651
|
})
|
|
1638
1652
|
}, [
|
|
1639
1653
|
d("div", {
|
|
1640
|
-
class:
|
|
1641
|
-
style:
|
|
1642
|
-
onClick: (m) =>
|
|
1643
|
-
onDblclick: (m) =>
|
|
1654
|
+
class: se(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": e.value === i.id }]),
|
|
1655
|
+
style: $e({ paddingLeft: `${15 * c.depth + 4}px` }),
|
|
1656
|
+
onClick: (m) => s(i.id),
|
|
1657
|
+
onDblclick: (m) => r(t)(i.id)
|
|
1644
1658
|
}, [
|
|
1645
|
-
(
|
|
1659
|
+
(h = i == null ? void 0 : i.children) != null && h.length ? (p(), z(st, {
|
|
1646
1660
|
key: 0,
|
|
1647
|
-
value:
|
|
1661
|
+
value: r(o).includes(i.id),
|
|
1648
1662
|
class: "[.active_&]:op20 group-hover:op20",
|
|
1649
|
-
onClick: fe((m) =>
|
|
1650
|
-
}, null, 8, ["value", "onClick"])) : (p(),
|
|
1651
|
-
d("span",
|
|
1652
|
-
|
|
1653
|
-
d("span", Wo,
|
|
1654
|
-
(
|
|
1663
|
+
onClick: fe((m) => r(t)(i.id), ["stop"])
|
|
1664
|
+
}, null, 8, ["value", "onClick"])) : (p(), v("span", Zo)),
|
|
1665
|
+
d("span", Ko, [
|
|
1666
|
+
c.withTag ? (p(), v("span", Go, "<")) : O("", !0),
|
|
1667
|
+
d("span", Wo, ae(l(i)), 1),
|
|
1668
|
+
(i.renderKey === 0 || i.renderKey) && i.renderKey !== r(Vt) ? (p(), v("span", {
|
|
1655
1669
|
key: 1,
|
|
1656
|
-
class:
|
|
1657
|
-
"opacity-100": e.value ===
|
|
1670
|
+
class: se(["text-xs opacity-50", {
|
|
1671
|
+
"opacity-100": e.value === i.id
|
|
1658
1672
|
}])
|
|
1659
1673
|
}, [
|
|
1660
1674
|
d("span", {
|
|
1661
|
-
class:
|
|
1675
|
+
class: se([e.value === i.id ? "text-purple-200" : "text-purple-500"])
|
|
1662
1676
|
}, " key", 2),
|
|
1663
|
-
|
|
1664
|
-
d("span", null,
|
|
1665
|
-
], 2)) :
|
|
1666
|
-
|
|
1677
|
+
a[1] || (a[1] = X("=")),
|
|
1678
|
+
d("span", null, ae(i.renderKey), 1)
|
|
1679
|
+
], 2)) : O("", !0),
|
|
1680
|
+
c.withTag ? (p(), v("span", qo, ">")) : O("", !0)
|
|
1667
1681
|
]),
|
|
1668
|
-
|
|
1669
|
-
|
|
1682
|
+
i.isFragment ? q((p(), v("span", Jo, a[2] || (a[2] = [
|
|
1683
|
+
X(" fragment ")
|
|
1670
1684
|
]))), [
|
|
1671
|
-
[
|
|
1672
|
-
]) :
|
|
1673
|
-
|
|
1674
|
-
|
|
1685
|
+
[r(J), "Has multiple root DOM nodes"]
|
|
1686
|
+
]) : O("", !0),
|
|
1687
|
+
i.inactive ? q((p(), v("span", Yo, a[3] || (a[3] = [
|
|
1688
|
+
X(" inactive ")
|
|
1675
1689
|
]))), [
|
|
1676
|
-
[
|
|
1677
|
-
]) :
|
|
1678
|
-
(p(!0),
|
|
1679
|
-
key:
|
|
1690
|
+
[r(J), "Currently inactive but not destroyed"]
|
|
1691
|
+
]) : O("", !0),
|
|
1692
|
+
(p(!0), v(oe, null, ue(i.tags, (m, V) => (p(), z(Lt, {
|
|
1693
|
+
key: V,
|
|
1680
1694
|
tag: m
|
|
1681
1695
|
}, null, 8, ["tag"]))), 128))
|
|
1682
|
-
], 46,
|
|
1683
|
-
(
|
|
1684
|
-
|
|
1696
|
+
], 46, Fo),
|
|
1697
|
+
(u = i == null ? void 0 : i.children) != null && u.length && r(o).includes(i.id) ? (p(), v("div", Xo, [
|
|
1698
|
+
y(Pe, {
|
|
1685
1699
|
modelValue: e.value,
|
|
1686
|
-
"onUpdate:modelValue":
|
|
1687
|
-
data:
|
|
1688
|
-
depth:
|
|
1689
|
-
"with-tag":
|
|
1700
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
|
|
1701
|
+
data: i == null ? void 0 : i.children,
|
|
1702
|
+
depth: c.depth + 1,
|
|
1703
|
+
"with-tag": c.withTag
|
|
1690
1704
|
}, null, 8, ["modelValue", "data", "depth", "with-tag"])
|
|
1691
|
-
])) :
|
|
1705
|
+
])) : O("", !0)
|
|
1692
1706
|
], 2);
|
|
1693
1707
|
}), 128));
|
|
1694
1708
|
}
|
|
@@ -1703,17 +1717,17 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1703
1717
|
function t() {
|
|
1704
1718
|
o("close");
|
|
1705
1719
|
}
|
|
1706
|
-
return (
|
|
1720
|
+
return (l, s) => (p(), v("div", Qo, [
|
|
1707
1721
|
d("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
1708
|
-
|
|
1722
|
+
s[0] || (s[0] = d("span", { class: "font-500" }, "Render Code", -1)),
|
|
1709
1723
|
d("i", {
|
|
1710
1724
|
class: "i-carbon-close cursor-pointer hover:op80",
|
|
1711
1725
|
onClick: t
|
|
1712
1726
|
})
|
|
1713
1727
|
]),
|
|
1714
1728
|
d("div", el, [
|
|
1715
|
-
|
|
1716
|
-
code:
|
|
1729
|
+
y(r(sn), {
|
|
1730
|
+
code: l.code,
|
|
1717
1731
|
lang: "javascript"
|
|
1718
1732
|
}, null, 8, ["code"])
|
|
1719
1733
|
])
|
|
@@ -1742,216 +1756,205 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1742
1756
|
__name: "index",
|
|
1743
1757
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1744
1758
|
setup(n, { emit: e }) {
|
|
1745
|
-
const o = e, t =
|
|
1746
|
-
function
|
|
1747
|
-
var
|
|
1748
|
-
return
|
|
1749
|
-
|
|
1750
|
-
}),
|
|
1751
|
-
}
|
|
1752
|
-
function $(
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1755
|
-
var
|
|
1756
|
-
|
|
1759
|
+
const o = e, t = I(), l = I(!1), { width: s } = lo(t), c = E(() => l.value ? s.value < 700 : !1), a = I(""), i = I(""), [g, h] = Xn(!0), u = I(!1), m = I(!1), V = I(""), R = I(!1);
|
|
1760
|
+
function C(T, k = [], U = []) {
|
|
1761
|
+
var K;
|
|
1762
|
+
return k.push(T.id), ((K = T.children) == null ? void 0 : K.length) === 0 && U.push([...k]), Array.isArray(T.children) && T.children.forEach((te) => {
|
|
1763
|
+
C(te, k, U);
|
|
1764
|
+
}), k.pop(), U;
|
|
1765
|
+
}
|
|
1766
|
+
function $(T) {
|
|
1767
|
+
const k = [], U = (K) => {
|
|
1768
|
+
K == null || K.forEach((te) => {
|
|
1769
|
+
var vt;
|
|
1770
|
+
k.push(te), (vt = te.children) != null && vt.length && U(te.children);
|
|
1757
1771
|
});
|
|
1758
1772
|
};
|
|
1759
|
-
return
|
|
1760
|
-
}
|
|
1761
|
-
function
|
|
1762
|
-
const
|
|
1763
|
-
return
|
|
1764
|
-
|
|
1765
|
-
}), [...new Set(
|
|
1766
|
-
}
|
|
1767
|
-
function
|
|
1768
|
-
const
|
|
1769
|
-
return
|
|
1770
|
-
const
|
|
1771
|
-
|
|
1772
|
-
}), [...new Set(
|
|
1773
|
-
}
|
|
1774
|
-
const
|
|
1775
|
-
var
|
|
1776
|
-
return (
|
|
1777
|
-
}),
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1780
|
-
var
|
|
1781
|
-
|
|
1773
|
+
return U(T), k;
|
|
1774
|
+
}
|
|
1775
|
+
function j(T, k) {
|
|
1776
|
+
const U = [];
|
|
1777
|
+
return T == null || T.forEach((K) => {
|
|
1778
|
+
U.push(...K.slice(0, k + 1));
|
|
1779
|
+
}), [...new Set(U)];
|
|
1780
|
+
}
|
|
1781
|
+
function A(T, k) {
|
|
1782
|
+
const U = [];
|
|
1783
|
+
return T.forEach((K) => {
|
|
1784
|
+
const te = K.indexOf(k);
|
|
1785
|
+
te !== -1 && U.push(...K.slice(0, te + 1));
|
|
1786
|
+
}), [...new Set(U)];
|
|
1787
|
+
}
|
|
1788
|
+
const x = I([]), w = E(() => {
|
|
1789
|
+
var T, k;
|
|
1790
|
+
return (T = x.value) != null && T.length ? C((k = x.value) == null ? void 0 : k[0]) : [];
|
|
1791
|
+
}), N = E(() => $(x.value)), M = E(() => N.value.map((T) => T.id)), G = I({}), F = I(""), W = E(() => {
|
|
1792
|
+
const T = [], k = (U) => {
|
|
1793
|
+
U.forEach((K) => {
|
|
1794
|
+
var te;
|
|
1795
|
+
K.id === F.value && T.push(K), (te = K.children) != null && te.length && k(K.children);
|
|
1782
1796
|
});
|
|
1783
1797
|
};
|
|
1784
|
-
return
|
|
1785
|
-
}),
|
|
1786
|
-
var
|
|
1787
|
-
return ((
|
|
1788
|
-
}),
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
return bn({
|
|
1794
|
-
[we.key]: we.value
|
|
1795
|
-
}, r.value);
|
|
1796
|
-
} catch (Yt) {
|
|
1797
|
-
return {
|
|
1798
|
-
[we.key]: Yt
|
|
1799
|
-
};
|
|
1800
|
-
}
|
|
1801
|
-
}), X = _n(Object.values(yn(Rt(G), "stateType")));
|
|
1802
|
-
G.length && (I[b] = X);
|
|
1798
|
+
return k(x.value), T[0];
|
|
1799
|
+
}), de = E(() => {
|
|
1800
|
+
var T;
|
|
1801
|
+
return ((T = W.value) == null ? void 0 : T.file) ?? "";
|
|
1802
|
+
}), he = E(() => nt({
|
|
1803
|
+
state: G.value,
|
|
1804
|
+
filterKey: i.value,
|
|
1805
|
+
processGroup(T) {
|
|
1806
|
+
return _n(Object.values(yn(At(T), "stateType")));
|
|
1803
1807
|
}
|
|
1804
|
-
|
|
1805
|
-
}), { expanded: k } = me(), { expanded: y } = me("component-state");
|
|
1808
|
+
})), { expanded: le } = me(), { expanded: H } = me("component-state");
|
|
1806
1809
|
zo();
|
|
1807
|
-
async function
|
|
1808
|
-
return
|
|
1809
|
-
var
|
|
1810
|
-
const
|
|
1811
|
-
|
|
1810
|
+
async function b(T = "") {
|
|
1811
|
+
return D.value.getInspectorTree({ inspectorId: Ve, filter: T }).then((k) => {
|
|
1812
|
+
var K, te;
|
|
1813
|
+
const U = ee(k);
|
|
1814
|
+
x.value = U, F.value = (te = (K = x.value) == null ? void 0 : K[0]) == null ? void 0 : te.id, le.value = j(w.value, 1), u.value = !0;
|
|
1812
1815
|
});
|
|
1813
1816
|
}
|
|
1814
|
-
function
|
|
1815
|
-
if (!
|
|
1817
|
+
function f(T) {
|
|
1818
|
+
if (!T || !(T != null && T.state))
|
|
1816
1819
|
return {};
|
|
1817
|
-
const
|
|
1818
|
-
return
|
|
1819
|
-
|
|
1820
|
-
}),
|
|
1821
|
-
}
|
|
1822
|
-
function
|
|
1823
|
-
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1820
|
+
const k = {};
|
|
1821
|
+
return T.state.forEach((U) => {
|
|
1822
|
+
k[U.type] || (k[U.type] = []), k[U.type].push(U);
|
|
1823
|
+
}), k;
|
|
1824
|
+
}
|
|
1825
|
+
function _(T) {
|
|
1826
|
+
D.value.getInspectorState({ inspectorId: Ve, nodeId: T }).then((k) => {
|
|
1827
|
+
const U = ee(k);
|
|
1828
|
+
U && (G.value = f(U), H.value = Array.from({ length: Object.keys(G.value).length }, (K, te) => `${te}`));
|
|
1826
1829
|
});
|
|
1827
1830
|
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1831
|
+
Q(F, (T) => {
|
|
1832
|
+
_(T), R.value && Ue();
|
|
1830
1833
|
});
|
|
1831
|
-
function
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
function
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1839
|
-
|
|
1834
|
+
function S(T) {
|
|
1835
|
+
const k = ee(T);
|
|
1836
|
+
k.inspectorId !== Ve || k.nodeId !== F.value || (G.value = f({ state: k.state.state }));
|
|
1837
|
+
}
|
|
1838
|
+
D.functions.on(Y.INSPECTOR_STATE_UPDATED, S), b();
|
|
1839
|
+
function P(T) {
|
|
1840
|
+
const k = T.trim().toLowerCase();
|
|
1841
|
+
h(), b(k).then(() => {
|
|
1842
|
+
h();
|
|
1840
1843
|
});
|
|
1841
1844
|
}
|
|
1842
|
-
Qn(
|
|
1843
|
-
|
|
1845
|
+
Qn(a, (T) => {
|
|
1846
|
+
P(T);
|
|
1844
1847
|
}, { debounce: 300 });
|
|
1845
|
-
function
|
|
1846
|
-
var
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1848
|
+
function Z(T) {
|
|
1849
|
+
var U, K;
|
|
1850
|
+
const k = ee(T);
|
|
1851
|
+
k.inspectorId === Ve && (a.value ? P(a.value) : x.value = k.rootNodes, M.value.includes(F.value) || (F.value = (K = (U = x.value) == null ? void 0 : U[0]) == null ? void 0 : K.id, le.value = j(w.value, 1)));
|
|
1849
1852
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1853
|
+
D.functions.on(Y.INSPECTOR_TREE_UPDATED, Z), we(() => {
|
|
1854
|
+
D.functions.off(Y.INSPECTOR_STATE_UPDATED, S), D.functions.off(Y.INSPECTOR_TREE_UPDATED, Z);
|
|
1852
1855
|
});
|
|
1853
|
-
function
|
|
1854
|
-
m.value = !0, o("onInspectComponentStart"),
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1856
|
+
function re() {
|
|
1857
|
+
m.value = !0, o("onInspectComponentStart"), D.value.inspectComponentInspector().then((T) => {
|
|
1858
|
+
const k = JSON.parse(T);
|
|
1859
|
+
F.value = k.id, le.value.includes(k.id) || le.value.push(k.id), le.value = [.../* @__PURE__ */ new Set([...le.value, ...A(w.value, k.id)])], Wt();
|
|
1857
1860
|
}).finally(() => {
|
|
1858
1861
|
m.value = !1, o("onInspectComponentEnd");
|
|
1859
1862
|
});
|
|
1860
1863
|
}
|
|
1864
|
+
function Me() {
|
|
1865
|
+
m.value = !1, D.value.cancelInspectComponentInspector();
|
|
1866
|
+
}
|
|
1861
1867
|
function Le() {
|
|
1862
|
-
|
|
1868
|
+
D.value.scrollToComponent(F.value);
|
|
1863
1869
|
}
|
|
1864
1870
|
function He() {
|
|
1865
|
-
|
|
1866
|
-
}
|
|
1867
|
-
function Oe() {
|
|
1868
|
-
P.value.inspectDOM(Z.value).then(() => {
|
|
1871
|
+
D.value.inspectDOM(F.value).then(() => {
|
|
1869
1872
|
chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
|
|
1870
1873
|
});
|
|
1871
1874
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
+
function Ue() {
|
|
1876
|
+
D.value.getComponentRenderCode(F.value).then((T) => {
|
|
1877
|
+
V.value = T, R.value = !0;
|
|
1875
1878
|
});
|
|
1876
1879
|
}
|
|
1877
|
-
function
|
|
1878
|
-
o("openInEditor",
|
|
1880
|
+
function Ge() {
|
|
1881
|
+
o("openInEditor", de.value);
|
|
1879
1882
|
}
|
|
1880
|
-
const Ee =
|
|
1881
|
-
function
|
|
1883
|
+
const Ee = I();
|
|
1884
|
+
function Wt() {
|
|
1882
1885
|
setTimeout(() => {
|
|
1883
|
-
var
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1886
|
+
var k;
|
|
1887
|
+
const T = (k = Ee.value) == null ? void 0 : k.querySelector(".active");
|
|
1888
|
+
T == null || T.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1886
1889
|
}, 300);
|
|
1887
1890
|
}
|
|
1888
|
-
function
|
|
1889
|
-
|
|
1890
|
-
}
|
|
1891
|
-
const
|
|
1892
|
-
label:
|
|
1893
|
-
value:
|
|
1894
|
-
}))),
|
|
1895
|
-
label:
|
|
1896
|
-
id:
|
|
1897
|
-
}))),
|
|
1898
|
-
|
|
1899
|
-
|
|
1891
|
+
function qt() {
|
|
1892
|
+
V.value = "", R.value = !1;
|
|
1893
|
+
}
|
|
1894
|
+
const We = Rt(), ft = E(() => We.appRecords.value.map((T) => ({
|
|
1895
|
+
label: T.name + (T.version ? ` (${T.version})` : ""),
|
|
1896
|
+
value: T.id
|
|
1897
|
+
}))), Jt = E(() => ft.value.map((T) => ({
|
|
1898
|
+
label: T.label,
|
|
1899
|
+
id: T.value
|
|
1900
|
+
}))), qe = I(We.activeAppRecordId.value);
|
|
1901
|
+
tt(() => {
|
|
1902
|
+
qe.value = We.activeAppRecordId.value;
|
|
1900
1903
|
});
|
|
1901
|
-
function
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
+
function Yt(T) {
|
|
1905
|
+
D.value.toggleApp(T).then(() => {
|
|
1906
|
+
F.value = "", b();
|
|
1904
1907
|
});
|
|
1905
1908
|
}
|
|
1906
|
-
return (
|
|
1907
|
-
|
|
1909
|
+
return (T, k) => (p(), v("div", nl, [
|
|
1910
|
+
y(r(Re), {
|
|
1908
1911
|
ref_key: "splitpanesRef",
|
|
1909
1912
|
ref: t,
|
|
1910
1913
|
class: "flex-1 overflow-auto",
|
|
1911
|
-
horizontal:
|
|
1912
|
-
onReady:
|
|
1914
|
+
horizontal: c.value,
|
|
1915
|
+
onReady: k[4] || (k[4] = (U) => l.value = !0)
|
|
1913
1916
|
}, {
|
|
1914
|
-
default:
|
|
1915
|
-
ft.value.length > 1 ? (p(), z(
|
|
1917
|
+
default: L(() => [
|
|
1918
|
+
ft.value.length > 1 ? (p(), z(r(ce), {
|
|
1916
1919
|
key: 0,
|
|
1917
1920
|
border: "base h-full",
|
|
1918
1921
|
size: "20"
|
|
1919
1922
|
}, {
|
|
1920
|
-
default:
|
|
1923
|
+
default: L(() => [
|
|
1921
1924
|
d("div", ol, [
|
|
1922
|
-
|
|
1923
|
-
modelValue:
|
|
1924
|
-
"onUpdate:modelValue":
|
|
1925
|
-
data:
|
|
1925
|
+
y(Sn, {
|
|
1926
|
+
modelValue: qe.value,
|
|
1927
|
+
"onUpdate:modelValue": k[0] || (k[0] = (U) => qe.value = U),
|
|
1928
|
+
data: Jt.value,
|
|
1926
1929
|
class: "w-full",
|
|
1927
|
-
onSelect:
|
|
1930
|
+
onSelect: Yt
|
|
1928
1931
|
}, null, 8, ["modelValue", "data"])
|
|
1929
1932
|
])
|
|
1930
1933
|
]),
|
|
1931
1934
|
_: 1
|
|
1932
|
-
})) :
|
|
1933
|
-
|
|
1935
|
+
})) : O("", !0),
|
|
1936
|
+
y(r(ce), {
|
|
1934
1937
|
border: "base",
|
|
1935
1938
|
"h-full": ""
|
|
1936
1939
|
}, {
|
|
1937
|
-
default:
|
|
1938
|
-
|
|
1940
|
+
default: L(() => [
|
|
1941
|
+
u.value ? (p(), v("div", ll, [
|
|
1939
1942
|
d("div", sl, [
|
|
1940
|
-
|
|
1941
|
-
modelValue:
|
|
1942
|
-
"onUpdate:modelValue":
|
|
1943
|
+
y(r(_e), {
|
|
1944
|
+
modelValue: a.value,
|
|
1945
|
+
"onUpdate:modelValue": k[1] || (k[1] = (U) => a.value = U),
|
|
1943
1946
|
"loading-debounce-time": 250,
|
|
1944
|
-
loading: !
|
|
1947
|
+
loading: !r(g),
|
|
1945
1948
|
placeholder: "Find components...",
|
|
1946
1949
|
class: "flex-1 text-3.5"
|
|
1947
1950
|
}, null, 8, ["modelValue", "loading"]),
|
|
1948
|
-
|
|
1951
|
+
r(hn) ? O("", !0) : q((p(), v("button", {
|
|
1949
1952
|
key: 0,
|
|
1950
1953
|
"px-1": "",
|
|
1951
1954
|
class: "hover:color-#00dc82",
|
|
1952
|
-
onClick:
|
|
1955
|
+
onClick: re
|
|
1953
1956
|
}, [
|
|
1954
|
-
(p(),
|
|
1957
|
+
(p(), v("svg", al, k[6] || (k[6] = [
|
|
1955
1958
|
d("path", {
|
|
1956
1959
|
fill: "currentColor",
|
|
1957
1960
|
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"
|
|
@@ -1959,7 +1962,7 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1959
1962
|
])))
|
|
1960
1963
|
])), [
|
|
1961
1964
|
[
|
|
1962
|
-
|
|
1965
|
+
r(J),
|
|
1963
1966
|
"Select component in the page",
|
|
1964
1967
|
void 0,
|
|
1965
1968
|
{ bottom: !0 }
|
|
@@ -1971,100 +1974,100 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
1971
1974
|
ref: Ee,
|
|
1972
1975
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
1973
1976
|
}, [
|
|
1974
|
-
|
|
1975
|
-
modelValue:
|
|
1976
|
-
"onUpdate:modelValue":
|
|
1977
|
-
data:
|
|
1977
|
+
y(Pe, {
|
|
1978
|
+
modelValue: F.value,
|
|
1979
|
+
"onUpdate:modelValue": k[2] || (k[2] = (U) => F.value = U),
|
|
1980
|
+
data: x.value,
|
|
1978
1981
|
"with-tag": !0
|
|
1979
1982
|
}, null, 8, ["modelValue", "data"])
|
|
1980
1983
|
], 512)
|
|
1981
|
-
])) :
|
|
1984
|
+
])) : O("", !0)
|
|
1982
1985
|
]),
|
|
1983
1986
|
_: 1
|
|
1984
1987
|
}),
|
|
1985
|
-
|
|
1988
|
+
y(r(ce), {
|
|
1986
1989
|
relative: "",
|
|
1987
1990
|
"h-full": ""
|
|
1988
1991
|
}, {
|
|
1989
|
-
default:
|
|
1990
|
-
var
|
|
1992
|
+
default: L(() => {
|
|
1993
|
+
var U;
|
|
1991
1994
|
return [
|
|
1992
1995
|
d("div", il, [
|
|
1993
1996
|
d("div", rl, [
|
|
1994
|
-
(
|
|
1995
|
-
|
|
1996
|
-
d("span", cl,
|
|
1997
|
-
|
|
1998
|
-
])) :
|
|
1999
|
-
|
|
2000
|
-
modelValue:
|
|
2001
|
-
"onUpdate:modelValue":
|
|
1997
|
+
(U = W.value) != null && U.name ? (p(), v("span", ul, [
|
|
1998
|
+
k[7] || (k[7] = d("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
|
|
1999
|
+
d("span", cl, ae(W.value.name), 1),
|
|
2000
|
+
k[8] || (k[8] = d("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
|
|
2001
|
+
])) : O("", !0),
|
|
2002
|
+
y(r(_e), {
|
|
2003
|
+
modelValue: i.value,
|
|
2004
|
+
"onUpdate:modelValue": k[3] || (k[3] = (K) => i.value = K),
|
|
2002
2005
|
"loading-debounce-time": 250,
|
|
2003
2006
|
placeholder: "Filter State...",
|
|
2004
2007
|
class: "flex-1 text-3.5"
|
|
2005
2008
|
}, null, 8, ["modelValue"]),
|
|
2006
2009
|
d("div", dl, [
|
|
2007
|
-
|
|
2010
|
+
q(d("i", {
|
|
2008
2011
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
2009
|
-
onClick:
|
|
2012
|
+
onClick: Le
|
|
2010
2013
|
}, null, 512), [
|
|
2011
2014
|
[
|
|
2012
|
-
|
|
2015
|
+
r(J),
|
|
2013
2016
|
"Scroll to component",
|
|
2014
2017
|
void 0,
|
|
2015
2018
|
{ bottom: !0 }
|
|
2016
2019
|
]
|
|
2017
2020
|
]),
|
|
2018
|
-
|
|
2021
|
+
q(d("i", {
|
|
2019
2022
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
2020
|
-
onClick:
|
|
2023
|
+
onClick: Ue
|
|
2021
2024
|
}, null, 512), [
|
|
2022
2025
|
[
|
|
2023
|
-
|
|
2026
|
+
r(J),
|
|
2024
2027
|
"Show render code",
|
|
2025
2028
|
void 0,
|
|
2026
2029
|
{ bottom: !0 }
|
|
2027
2030
|
]
|
|
2028
2031
|
]),
|
|
2029
|
-
|
|
2032
|
+
r(bt) ? q((p(), v("i", {
|
|
2030
2033
|
key: 0,
|
|
2031
2034
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
2032
|
-
onClick:
|
|
2035
|
+
onClick: He
|
|
2033
2036
|
}, null, 512)), [
|
|
2034
2037
|
[
|
|
2035
|
-
|
|
2038
|
+
r(J),
|
|
2036
2039
|
"Inspect DOM",
|
|
2037
2040
|
void 0,
|
|
2038
2041
|
{ bottom: !0 }
|
|
2039
2042
|
]
|
|
2040
|
-
]) :
|
|
2041
|
-
|
|
2043
|
+
]) : O("", !0),
|
|
2044
|
+
de.value ? q((p(), v("i", {
|
|
2042
2045
|
key: 1,
|
|
2043
2046
|
class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
|
|
2044
|
-
onClick:
|
|
2047
|
+
onClick: Ge
|
|
2045
2048
|
}, null, 512)), [
|
|
2046
2049
|
[
|
|
2047
|
-
|
|
2050
|
+
r(J),
|
|
2048
2051
|
"Open in Editor",
|
|
2049
2052
|
void 0,
|
|
2050
2053
|
{ bottom: !0 }
|
|
2051
2054
|
]
|
|
2052
|
-
]) :
|
|
2055
|
+
]) : O("", !0)
|
|
2053
2056
|
])
|
|
2054
2057
|
]),
|
|
2055
|
-
|
|
2058
|
+
y(De, {
|
|
2056
2059
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
2057
|
-
data:
|
|
2058
|
-
"node-id":
|
|
2060
|
+
data: he.value,
|
|
2061
|
+
"node-id": F.value,
|
|
2059
2062
|
"inspector-id": Ve,
|
|
2060
2063
|
"expanded-state-id": "component-state"
|
|
2061
2064
|
}, null, 8, ["data", "node-id"])
|
|
2062
2065
|
]),
|
|
2063
|
-
|
|
2066
|
+
R.value && V.value ? (p(), z(tl, {
|
|
2064
2067
|
key: 0,
|
|
2065
|
-
code:
|
|
2066
|
-
onClose:
|
|
2067
|
-
}, null, 8, ["code"])) :
|
|
2068
|
+
code: V.value,
|
|
2069
|
+
onClose: qt
|
|
2070
|
+
}, null, 8, ["code"])) : O("", !0)
|
|
2068
2071
|
];
|
|
2069
2072
|
}),
|
|
2070
2073
|
_: 1
|
|
@@ -2072,28 +2075,28 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
2072
2075
|
]),
|
|
2073
2076
|
_: 1
|
|
2074
2077
|
}, 8, ["horizontal"]),
|
|
2075
|
-
|
|
2078
|
+
r(bt) ? (p(), z(r(an), {
|
|
2076
2079
|
key: 0,
|
|
2077
2080
|
modelValue: m.value,
|
|
2078
|
-
"onUpdate:modelValue":
|
|
2081
|
+
"onUpdate:modelValue": k[5] || (k[5] = (U) => m.value = U),
|
|
2079
2082
|
title: "",
|
|
2080
2083
|
height: "12rem",
|
|
2081
2084
|
closable: !1
|
|
2082
2085
|
}, {
|
|
2083
|
-
footer:
|
|
2086
|
+
footer: L(() => [
|
|
2084
2087
|
d("div", ml, [
|
|
2085
|
-
|
|
2086
|
-
default:
|
|
2087
|
-
|
|
2088
|
+
y(r(pe), { onClick: Me }, {
|
|
2089
|
+
default: L(() => k[11] || (k[11] = [
|
|
2090
|
+
X(" Cancel ")
|
|
2088
2091
|
])),
|
|
2089
2092
|
_: 1
|
|
2090
2093
|
})
|
|
2091
2094
|
])
|
|
2092
2095
|
]),
|
|
2093
|
-
default:
|
|
2096
|
+
default: L(() => [
|
|
2094
2097
|
d("div", pl, [
|
|
2095
2098
|
d("span", fl, [
|
|
2096
|
-
(p(),
|
|
2099
|
+
(p(), v("svg", vl, k[9] || (k[9] = [
|
|
2097
2100
|
d("g", {
|
|
2098
2101
|
fill: "none",
|
|
2099
2102
|
stroke: "currentColor",
|
|
@@ -2111,16 +2114,16 @@ const Zo = ["onClick", "onDblclick"], Fo = {
|
|
|
2111
2114
|
], -1)
|
|
2112
2115
|
])))
|
|
2113
2116
|
]),
|
|
2114
|
-
|
|
2117
|
+
k[10] || (k[10] = d("p", null, " Click on a component on the page to select it ", -1))
|
|
2115
2118
|
])
|
|
2116
2119
|
]),
|
|
2117
2120
|
_: 1
|
|
2118
|
-
}, 8, ["modelValue"])) :
|
|
2121
|
+
}, 8, ["modelValue"])) : O("", !0)
|
|
2119
2122
|
]));
|
|
2120
2123
|
}
|
|
2121
|
-
}),
|
|
2124
|
+
}), as = /* @__PURE__ */ xe(hl, [["__scopeId", "data-v-b2392cef"]]), gl = {}, Cl = { class: "h-screen w-screen $ui-fcc flex-col" };
|
|
2122
2125
|
function _l(n, e) {
|
|
2123
|
-
return p(),
|
|
2126
|
+
return p(), v("div", Cl, [
|
|
2124
2127
|
e[0] || (e[0] = d("div", { class: "outer" }, [
|
|
2125
2128
|
d("div", { class: "inner" }, [
|
|
2126
2129
|
d("i", {
|
|
@@ -2129,22 +2132,22 @@ function _l(n, e) {
|
|
|
2129
2132
|
})
|
|
2130
2133
|
])
|
|
2131
2134
|
], -1)),
|
|
2132
|
-
|
|
2135
|
+
Qe(n.$slots, "default", {}, void 0, !0)
|
|
2133
2136
|
]);
|
|
2134
2137
|
}
|
|
2135
|
-
const yl = /* @__PURE__ */
|
|
2136
|
-
function
|
|
2138
|
+
const yl = /* @__PURE__ */ xe(gl, [["render", _l], ["__scopeId", "data-v-b8018f07"]]), Zt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
2139
|
+
function ye() {
|
|
2137
2140
|
return ve(Zt);
|
|
2138
2141
|
}
|
|
2139
|
-
function
|
|
2140
|
-
const n =
|
|
2142
|
+
function pt() {
|
|
2143
|
+
const n = I({
|
|
2141
2144
|
homepage: "",
|
|
2142
2145
|
id: "",
|
|
2143
2146
|
label: "",
|
|
2144
2147
|
logo: "",
|
|
2145
2148
|
timelineLayerIds: []
|
|
2146
2149
|
});
|
|
2147
|
-
return
|
|
2150
|
+
return Ce(Zt, n), n;
|
|
2148
2151
|
}
|
|
2149
2152
|
const xl = {}, bl = {
|
|
2150
2153
|
width: "175",
|
|
@@ -2154,14 +2157,14 @@ const xl = {}, bl = {
|
|
|
2154
2157
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2155
2158
|
};
|
|
2156
2159
|
function wl(n, e) {
|
|
2157
|
-
return p(),
|
|
2160
|
+
return p(), v("svg", bl, e[0] || (e[0] = [
|
|
2158
2161
|
d("path", {
|
|
2159
2162
|
fill: "currentColor",
|
|
2160
2163
|
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"
|
|
2161
2164
|
}, null, -1)
|
|
2162
2165
|
]));
|
|
2163
2166
|
}
|
|
2164
|
-
const kl = /* @__PURE__ */
|
|
2167
|
+
const kl = /* @__PURE__ */ xe(xl, [["render", wl]]), Il = {
|
|
2165
2168
|
"h-full": "",
|
|
2166
2169
|
"w-full": "",
|
|
2167
2170
|
flex: "",
|
|
@@ -2199,94 +2202,94 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2199
2202
|
}, Ll = ["href"], Hl = /* @__PURE__ */ B({
|
|
2200
2203
|
__name: "About",
|
|
2201
2204
|
setup(n) {
|
|
2202
|
-
const e =
|
|
2203
|
-
function
|
|
2205
|
+
const e = Ae(), o = ye(), t = I(!1), l = I(!1);
|
|
2206
|
+
function s() {
|
|
2204
2207
|
t.value = !0;
|
|
2205
2208
|
}
|
|
2206
|
-
function
|
|
2207
|
-
t.value = !0,
|
|
2209
|
+
function c() {
|
|
2210
|
+
t.value = !0, l.value = !0;
|
|
2208
2211
|
}
|
|
2209
|
-
return (
|
|
2210
|
-
var
|
|
2211
|
-
return p(),
|
|
2212
|
+
return (a, i) => {
|
|
2213
|
+
var g;
|
|
2214
|
+
return p(), v("div", Il, [
|
|
2212
2215
|
d("div", $l, [
|
|
2213
|
-
|
|
2216
|
+
i[5] || (i[5] = d("div", { "flex-auto": "" }, null, -1)),
|
|
2214
2217
|
d("div", Sl, [
|
|
2215
2218
|
d("div", Tl, [
|
|
2216
2219
|
d("span", El, [
|
|
2217
|
-
t.value ?
|
|
2218
|
-
|
|
2219
|
-
src:
|
|
2220
|
-
alt: `${
|
|
2220
|
+
t.value ? O("", !0) : (p(), v("span", Vl)),
|
|
2221
|
+
q(d("img", {
|
|
2222
|
+
src: r(o).logo,
|
|
2223
|
+
alt: `${r(o).label} Logo`,
|
|
2221
2224
|
class: "inline-block h16",
|
|
2222
|
-
onError:
|
|
2223
|
-
onLoad:
|
|
2225
|
+
onError: c,
|
|
2226
|
+
onLoad: s
|
|
2224
2227
|
}, null, 40, Nl), [
|
|
2225
|
-
[nn, t.value && !
|
|
2228
|
+
[nn, t.value && !l.value]
|
|
2226
2229
|
]),
|
|
2227
|
-
|
|
2230
|
+
l.value ? (p(), v("span", Rl, ae(r(o).label), 1)) : O("", !0)
|
|
2228
2231
|
]),
|
|
2229
2232
|
d("span", null, [
|
|
2230
|
-
|
|
2233
|
+
y(kl, { "h-18": "" })
|
|
2231
2234
|
])
|
|
2232
2235
|
]),
|
|
2233
2236
|
d("div", Al, [
|
|
2234
|
-
d("span", Dl,
|
|
2237
|
+
d("span", Dl, ae(r(o).label) + " DevTools ", 1)
|
|
2235
2238
|
])
|
|
2236
2239
|
]),
|
|
2237
|
-
|
|
2240
|
+
i[6] || (i[6] = d("div", { "flex-auto": "" }, null, -1)),
|
|
2238
2241
|
d("div", Pl, [
|
|
2239
2242
|
d("div", {
|
|
2240
2243
|
flex: "~ col auto",
|
|
2241
2244
|
"min-w-40": "",
|
|
2242
2245
|
p4: "",
|
|
2243
2246
|
"theme-card-lime": "",
|
|
2244
|
-
onClick:
|
|
2245
|
-
},
|
|
2247
|
+
onClick: i[0] || (i[0] = (h) => r(e).push("/state"))
|
|
2248
|
+
}, i[2] || (i[2] = [
|
|
2246
2249
|
d("div", {
|
|
2247
2250
|
"i-carbon-tree-view-alt": "",
|
|
2248
2251
|
"text-3xl": ""
|
|
2249
2252
|
}, null, -1),
|
|
2250
2253
|
d("code", null, "State", -1)
|
|
2251
2254
|
])),
|
|
2252
|
-
(
|
|
2255
|
+
(g = r(o).timelineLayerIds) != null && g.length ? (p(), v("div", {
|
|
2253
2256
|
key: 0,
|
|
2254
2257
|
flex: "~ col auto",
|
|
2255
2258
|
"min-w-40": "",
|
|
2256
2259
|
p4: "",
|
|
2257
2260
|
"theme-card-lime": "",
|
|
2258
|
-
onClick:
|
|
2259
|
-
},
|
|
2261
|
+
onClick: i[1] || (i[1] = (h) => r(e).push("/timeline"))
|
|
2262
|
+
}, i[3] || (i[3] = [
|
|
2260
2263
|
d("div", {
|
|
2261
2264
|
"i-mdi:timeline-clock-outline": "",
|
|
2262
2265
|
"text-3xl": ""
|
|
2263
2266
|
}, null, -1),
|
|
2264
2267
|
d("div", null, "Timeline", -1)
|
|
2265
|
-
]))) :
|
|
2268
|
+
]))) : O("", !0)
|
|
2266
2269
|
]),
|
|
2267
2270
|
d("div", Ml, [
|
|
2268
2271
|
d("a", {
|
|
2269
|
-
href:
|
|
2272
|
+
href: r(o).homepage,
|
|
2270
2273
|
target: "_blank",
|
|
2271
2274
|
flex: "~ gap1",
|
|
2272
2275
|
"items-center": "",
|
|
2273
2276
|
op50: "",
|
|
2274
2277
|
hover: "op100 text-yellow",
|
|
2275
2278
|
transition: ""
|
|
2276
|
-
},
|
|
2279
|
+
}, i[4] || (i[4] = [
|
|
2277
2280
|
d("div", { "i-carbon-document": "" }, null, -1),
|
|
2278
|
-
|
|
2281
|
+
X(" View Documentation ")
|
|
2279
2282
|
]), 8, Ll)
|
|
2280
2283
|
]),
|
|
2281
|
-
|
|
2284
|
+
i[7] || (i[7] = d("div", { "flex-auto": "" }, null, -1))
|
|
2282
2285
|
])
|
|
2283
2286
|
]);
|
|
2284
2287
|
};
|
|
2285
2288
|
}
|
|
2286
|
-
}),
|
|
2289
|
+
}), Ul = { class: "flex-1 overflow-y-auto p2" }, Ol = { class: "max-w-[190px] flex-1 select-none py-1.5 text-sm" }, jl = { class: "w-4/5" }, zl = {
|
|
2287
2290
|
key: 0,
|
|
2288
2291
|
class: "flex justify-start"
|
|
2289
|
-
}, Bl = { key: 1 },
|
|
2292
|
+
}, Bl = { key: 1 }, Kt = /* @__PURE__ */ B({
|
|
2290
2293
|
__name: "Settings",
|
|
2291
2294
|
props: {
|
|
2292
2295
|
pluginId: {},
|
|
@@ -2295,192 +2298,216 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2295
2298
|
},
|
|
2296
2299
|
emits: ["update"],
|
|
2297
2300
|
setup(n, { emit: e }) {
|
|
2298
|
-
const o = n, t = e,
|
|
2299
|
-
function
|
|
2300
|
-
|
|
2301
|
-
t("update",
|
|
2301
|
+
const o = n, t = e, l = E(() => o.options), s = E(() => o.values);
|
|
2302
|
+
function c(a, i) {
|
|
2303
|
+
D.value.updatePluginSettings(o.pluginId, a, i), D.value.getPluginSettings(o.pluginId).then((g) => {
|
|
2304
|
+
t("update", g);
|
|
2302
2305
|
});
|
|
2303
2306
|
}
|
|
2304
|
-
return (
|
|
2307
|
+
return (a, i) => (p(), v("div", Ul, [
|
|
2305
2308
|
d("ul", null, [
|
|
2306
|
-
(p(!0),
|
|
2307
|
-
key:
|
|
2309
|
+
(p(!0), v(oe, null, ue(l.value, (g, h) => (p(), v("li", {
|
|
2310
|
+
key: h,
|
|
2308
2311
|
class: "flex items-center py-2"
|
|
2309
2312
|
}, [
|
|
2310
|
-
d("div",
|
|
2311
|
-
d("div",
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
"model-value":
|
|
2313
|
+
d("div", Ol, ae(g.label), 1),
|
|
2314
|
+
d("div", jl, [
|
|
2315
|
+
g.type === "boolean" ? (p(), v("div", zl, [
|
|
2316
|
+
y(r(rn), {
|
|
2317
|
+
"model-value": s.value[h],
|
|
2315
2318
|
class: "row-reverse flex hover:bg-active py1 pl2 pr1",
|
|
2316
|
-
"onUpdate:modelValue": (
|
|
2319
|
+
"onUpdate:modelValue": (u) => c(h, u)
|
|
2317
2320
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2318
|
-
])) :
|
|
2319
|
-
|
|
2320
|
-
"model-value":
|
|
2321
|
-
options:
|
|
2322
|
-
"onUpdate:modelValue": (
|
|
2321
|
+
])) : g.type === "choice" ? (p(), v("div", Bl, [
|
|
2322
|
+
y(r(un), {
|
|
2323
|
+
"model-value": s.value[h],
|
|
2324
|
+
options: g.options,
|
|
2325
|
+
"onUpdate:modelValue": (u) => c(h, u)
|
|
2323
2326
|
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
2324
|
-
])) :
|
|
2327
|
+
])) : g.type === "text" ? (p(), z(r(_e), {
|
|
2325
2328
|
key: 2,
|
|
2326
|
-
"model-value":
|
|
2327
|
-
"onUpdate:modelValue": (
|
|
2328
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
2329
|
+
"model-value": s.value[h],
|
|
2330
|
+
"onUpdate:modelValue": (u) => c(h, u)
|
|
2331
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : O("", !0)
|
|
2329
2332
|
])
|
|
2330
2333
|
]))), 128))
|
|
2331
2334
|
])
|
|
2332
2335
|
]));
|
|
2333
2336
|
}
|
|
2334
|
-
}),
|
|
2337
|
+
}), Fl = { class: "h-full flex flex-col" }, Zl = /* @__PURE__ */ B({
|
|
2335
2338
|
__name: "Settings",
|
|
2336
2339
|
setup(n) {
|
|
2337
|
-
const e = ve("pluginSettings"), o =
|
|
2338
|
-
function
|
|
2339
|
-
e.value =
|
|
2340
|
+
const e = ve("pluginSettings"), o = ye(), t = E(() => e.value.options), l = E(() => e.value.values);
|
|
2341
|
+
function s(c) {
|
|
2342
|
+
e.value = c;
|
|
2340
2343
|
}
|
|
2341
|
-
return (
|
|
2342
|
-
|
|
2343
|
-
"doc-link":
|
|
2344
|
+
return (c, a) => (p(), v("div", Fl, [
|
|
2345
|
+
y(Se, {
|
|
2346
|
+
"doc-link": r(o).homepage
|
|
2344
2347
|
}, {
|
|
2345
|
-
default:
|
|
2346
|
-
|
|
2348
|
+
default: L(() => [
|
|
2349
|
+
y(Te)
|
|
2347
2350
|
]),
|
|
2348
2351
|
_: 1
|
|
2349
2352
|
}, 8, ["doc-link"]),
|
|
2350
|
-
|
|
2351
|
-
"plugin-id":
|
|
2353
|
+
y(Kt, {
|
|
2354
|
+
"plugin-id": r(o).pluginId,
|
|
2352
2355
|
options: t.value,
|
|
2353
|
-
values:
|
|
2354
|
-
onUpdate:
|
|
2356
|
+
values: l.value,
|
|
2357
|
+
onUpdate: s
|
|
2355
2358
|
}, null, 8, ["plugin-id", "options", "values"])
|
|
2356
2359
|
]));
|
|
2357
2360
|
}
|
|
2358
|
-
}),
|
|
2359
|
-
|
|
2360
|
-
class: "mb-1 flex justify-end pb-1",
|
|
2361
|
+
}), Kl = { class: "h-full flex flex-col" }, Gl = { class: "h-full flex flex-col p2" }, Wl = {
|
|
2362
|
+
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2361
2363
|
border: "b dashed base"
|
|
2362
|
-
}, ql = {
|
|
2364
|
+
}, ql = {
|
|
2363
2365
|
key: 0,
|
|
2364
|
-
class: "
|
|
2366
|
+
class: "flex items-center gap-2 px-1"
|
|
2367
|
+
}, Jl = ["onClick"], Yl = {
|
|
2368
|
+
key: 0,
|
|
2369
|
+
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2370
|
+
}, Xl = { class: "h-full flex flex-col p2" }, Ql = {
|
|
2371
|
+
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2365
2372
|
border: "b dashed base"
|
|
2366
|
-
}, e1 = {
|
|
2373
|
+
}, e1 = {
|
|
2374
|
+
key: 0,
|
|
2375
|
+
class: "flex items-center gap-2 px-1"
|
|
2376
|
+
}, t1 = ["onClick"], n1 = /* @__PURE__ */ B({
|
|
2367
2377
|
__name: "Index",
|
|
2368
2378
|
setup(n) {
|
|
2369
|
-
const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t =
|
|
2370
|
-
var
|
|
2371
|
-
return (
|
|
2372
|
-
}),
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2379
|
+
const { expanded: e } = me(), { expanded: o } = me("custom-inspector-state"), t = ye(), l = E(() => t.value.id), s = I([]), c = I([]), a = I([]), i = E(() => {
|
|
2380
|
+
var f, _;
|
|
2381
|
+
return (f = a.value) != null && f.length ? A((_ = a.value) == null ? void 0 : _[0]) : [];
|
|
2382
|
+
}), g = E(() => w(a.value)), h = E(() => g.value.map((f) => f.id)), u = I(""), m = I({}), V = E(() => !Object.keys(m.value).length), R = ye(), C = I(""), $ = I("");
|
|
2383
|
+
Q(C, (f, _) => {
|
|
2384
|
+
!f.trim().length && !_.trim().length || le(f);
|
|
2385
|
+
});
|
|
2386
|
+
const j = E(() => nt({
|
|
2387
|
+
state: m.value,
|
|
2388
|
+
filterKey: $.value
|
|
2389
|
+
}));
|
|
2390
|
+
function A(f, _ = [], S = []) {
|
|
2391
|
+
var P;
|
|
2392
|
+
return _.push(f.id), ((P = f.children) == null ? void 0 : P.length) === 0 && S.push([..._]), Array.isArray(f.children) && f.children.forEach((Z) => {
|
|
2393
|
+
A(Z, _, S);
|
|
2394
|
+
}), _.pop(), S;
|
|
2395
|
+
}
|
|
2396
|
+
function x(f, _) {
|
|
2397
|
+
const S = [];
|
|
2398
|
+
return f == null || f.forEach((P) => {
|
|
2399
|
+
S.push(...P.slice(0, _ + 1));
|
|
2400
|
+
}), [...new Set(S)];
|
|
2401
|
+
}
|
|
2402
|
+
function w(f) {
|
|
2403
|
+
const _ = [], S = (P) => {
|
|
2404
|
+
P == null || P.forEach((Z) => {
|
|
2405
|
+
var re;
|
|
2406
|
+
_.push(Z), (re = Z.children) != null && re.length && S(Z.children);
|
|
2390
2407
|
});
|
|
2391
2408
|
};
|
|
2392
|
-
return
|
|
2409
|
+
return S(f), _;
|
|
2393
2410
|
}
|
|
2394
|
-
function
|
|
2395
|
-
|
|
2396
|
-
|
|
2411
|
+
function N() {
|
|
2412
|
+
D.value.getInspectorNodeActions(l.value).then((f) => {
|
|
2413
|
+
s.value = f;
|
|
2397
2414
|
});
|
|
2398
2415
|
}
|
|
2399
|
-
function
|
|
2400
|
-
|
|
2401
|
-
|
|
2416
|
+
function M() {
|
|
2417
|
+
D.value.getInspectorActions(l.value).then((f) => {
|
|
2418
|
+
c.value = f;
|
|
2402
2419
|
});
|
|
2403
2420
|
}
|
|
2404
|
-
|
|
2405
|
-
function
|
|
2406
|
-
|
|
2407
|
-
}
|
|
2408
|
-
function C(w) {
|
|
2409
|
-
P.value.callInspectorAction(s.value, w);
|
|
2421
|
+
N(), M();
|
|
2422
|
+
function G(f) {
|
|
2423
|
+
D.value.callInspectorNodeAction(l.value, f, u.value);
|
|
2410
2424
|
}
|
|
2411
|
-
function
|
|
2412
|
-
|
|
2413
|
-
for (const y in w)
|
|
2414
|
-
(k = w[y]) != null && k.length || delete w[y];
|
|
2415
|
-
return w;
|
|
2425
|
+
function F(f) {
|
|
2426
|
+
D.value.callInspectorAction(l.value, f);
|
|
2416
2427
|
}
|
|
2417
|
-
function
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2428
|
+
function W(f) {
|
|
2429
|
+
var _;
|
|
2430
|
+
for (const S in f)
|
|
2431
|
+
(_ = f[S]) != null && _.length || delete f[S];
|
|
2432
|
+
return f;
|
|
2433
|
+
}
|
|
2434
|
+
function de(f) {
|
|
2435
|
+
D.value.getInspectorState({ inspectorId: l.value, nodeId: f }).then((_) => {
|
|
2436
|
+
const S = ee(_);
|
|
2437
|
+
S && (m.value = W(S), o.value = Array.from({ length: Object.keys(m.value).length }, (P, Z) => `${Z}`));
|
|
2421
2438
|
});
|
|
2422
2439
|
}
|
|
2423
|
-
function
|
|
2440
|
+
function he() {
|
|
2424
2441
|
m.value = {};
|
|
2425
2442
|
}
|
|
2426
|
-
|
|
2427
|
-
|
|
2443
|
+
Q(u, () => {
|
|
2444
|
+
he(), de(u.value);
|
|
2428
2445
|
});
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2446
|
+
function le(f = "") {
|
|
2447
|
+
D.value.getInspectorTree({ inspectorId: l.value, filter: f }).then((_) => {
|
|
2448
|
+
const S = ee(_);
|
|
2449
|
+
a.value = S, !u.value && S.length && (u.value = S[0].id, e.value = x(i.value, 1), de(S[0].id));
|
|
2433
2450
|
});
|
|
2434
|
-
}
|
|
2435
|
-
jt(
|
|
2436
|
-
function
|
|
2437
|
-
var
|
|
2438
|
-
const
|
|
2439
|
-
!
|
|
2440
|
-
}
|
|
2441
|
-
function
|
|
2442
|
-
const
|
|
2443
|
-
if (
|
|
2451
|
+
}
|
|
2452
|
+
jt(l).toBeTruthy().then(() => le());
|
|
2453
|
+
function H(f) {
|
|
2454
|
+
var S, P;
|
|
2455
|
+
const _ = ee(f);
|
|
2456
|
+
!_.rootNodes.length || _.inspectorId !== l.value || (a.value = _.rootNodes, h.value.includes(u.value) || (u.value = (P = (S = a.value) == null ? void 0 : S[0]) == null ? void 0 : P.id, e.value = x(i.value, 1)));
|
|
2457
|
+
}
|
|
2458
|
+
function b(f) {
|
|
2459
|
+
const _ = ee(f);
|
|
2460
|
+
if (_.inspectorId !== l.value || !_.state || _.nodeId !== u.value)
|
|
2444
2461
|
return;
|
|
2445
|
-
const { inspectorId:
|
|
2446
|
-
m.value =
|
|
2447
|
-
}
|
|
2448
|
-
return
|
|
2449
|
-
|
|
2450
|
-
}),
|
|
2451
|
-
|
|
2452
|
-
}), (
|
|
2453
|
-
|
|
2454
|
-
"doc-link":
|
|
2462
|
+
const { inspectorId: S, ...P } = _.state;
|
|
2463
|
+
m.value = W(P);
|
|
2464
|
+
}
|
|
2465
|
+
return Ne(() => {
|
|
2466
|
+
D.functions.on(Y.INSPECTOR_TREE_UPDATED, H), D.functions.on(Y.INSPECTOR_STATE_UPDATED, b);
|
|
2467
|
+
}), we(() => {
|
|
2468
|
+
D.functions.off(Y.INSPECTOR_TREE_UPDATED, H), D.functions.off(Y.INSPECTOR_STATE_UPDATED, b);
|
|
2469
|
+
}), (f, _) => (p(), v("div", Kl, [
|
|
2470
|
+
y(Se, {
|
|
2471
|
+
"doc-link": r(t).homepage
|
|
2455
2472
|
}, {
|
|
2456
|
-
default:
|
|
2457
|
-
|
|
2473
|
+
default: L(() => [
|
|
2474
|
+
y(Te)
|
|
2458
2475
|
]),
|
|
2459
2476
|
_: 1
|
|
2460
2477
|
}, 8, ["doc-link"]),
|
|
2461
|
-
|
|
2462
|
-
|
|
2478
|
+
!a.value.length && !C.value.trim().length ? (p(), z(Ie, { key: 0 }, {
|
|
2479
|
+
default: L(() => _[3] || (_[3] = [
|
|
2480
|
+
X(" No Data ")
|
|
2481
|
+
])),
|
|
2482
|
+
_: 1
|
|
2483
|
+
})) : (p(), z(r(Re), {
|
|
2484
|
+
key: 1,
|
|
2463
2485
|
class: "flex-1 overflow-auto"
|
|
2464
2486
|
}, {
|
|
2465
|
-
default:
|
|
2466
|
-
|
|
2487
|
+
default: L(() => [
|
|
2488
|
+
y(r(ce), {
|
|
2467
2489
|
border: "r base",
|
|
2468
2490
|
size: "40",
|
|
2469
2491
|
"h-full": ""
|
|
2470
2492
|
}, {
|
|
2471
|
-
default:
|
|
2472
|
-
var
|
|
2493
|
+
default: L(() => {
|
|
2494
|
+
var S;
|
|
2473
2495
|
return [
|
|
2474
|
-
d("div",
|
|
2475
|
-
(
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2496
|
+
d("div", Gl, [
|
|
2497
|
+
d("div", Wl, [
|
|
2498
|
+
y(r(_e), {
|
|
2499
|
+
modelValue: C.value,
|
|
2500
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => C.value = P),
|
|
2501
|
+
placeholder: r(R).treeFilterPlaceholder
|
|
2502
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
2503
|
+
(S = c.value) != null && S.length ? (p(), v("div", ql, [
|
|
2504
|
+
(p(!0), v(oe, null, ue(c.value, (P, Z) => q((p(), v("div", {
|
|
2505
|
+
key: Z,
|
|
2479
2506
|
class: "flex items-center gap1",
|
|
2480
|
-
onClick: (
|
|
2507
|
+
onClick: (re) => F(Z)
|
|
2481
2508
|
}, [
|
|
2482
|
-
|
|
2483
|
-
name: `baseline-${
|
|
2509
|
+
y(r(Be), {
|
|
2510
|
+
name: `baseline-${P.icon.replace(/\_/g, "-")}`,
|
|
2484
2511
|
"cursor-pointer": "",
|
|
2485
2512
|
op70: "",
|
|
2486
2513
|
"text-base": "",
|
|
@@ -2488,40 +2515,50 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2488
2515
|
}, null, 8, ["name"])
|
|
2489
2516
|
], 8, Jl)), [
|
|
2490
2517
|
[
|
|
2491
|
-
|
|
2492
|
-
{ content:
|
|
2518
|
+
r(J),
|
|
2519
|
+
{ content: P.tooltip },
|
|
2493
2520
|
void 0,
|
|
2494
2521
|
{ "bottom-end": !0 }
|
|
2495
2522
|
]
|
|
2496
2523
|
])), 128))
|
|
2497
|
-
])
|
|
2498
|
-
])
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
modelValue:
|
|
2502
|
-
"onUpdate:modelValue":
|
|
2503
|
-
data:
|
|
2524
|
+
])) : O("", !0)
|
|
2525
|
+
]),
|
|
2526
|
+
a.value.length ? (p(), v("div", Yl, [
|
|
2527
|
+
y(Pe, {
|
|
2528
|
+
modelValue: u.value,
|
|
2529
|
+
"onUpdate:modelValue": _[1] || (_[1] = (P) => u.value = P),
|
|
2530
|
+
data: a.value
|
|
2504
2531
|
}, null, 8, ["modelValue", "data"])
|
|
2505
|
-
])
|
|
2532
|
+
])) : (p(), z(Ie, { key: 1 }, {
|
|
2533
|
+
default: L(() => _[4] || (_[4] = [
|
|
2534
|
+
X(" No Data ")
|
|
2535
|
+
])),
|
|
2536
|
+
_: 1
|
|
2537
|
+
}))
|
|
2506
2538
|
])
|
|
2507
2539
|
];
|
|
2508
2540
|
}),
|
|
2509
2541
|
_: 1
|
|
2510
2542
|
}),
|
|
2511
|
-
|
|
2512
|
-
default:
|
|
2513
|
-
var
|
|
2543
|
+
y(r(ce), { size: "60" }, {
|
|
2544
|
+
default: L(() => {
|
|
2545
|
+
var S;
|
|
2514
2546
|
return [
|
|
2515
2547
|
d("div", Xl, [
|
|
2516
|
-
(
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2548
|
+
d("div", Ql, [
|
|
2549
|
+
y(r(_e), {
|
|
2550
|
+
modelValue: $.value,
|
|
2551
|
+
"onUpdate:modelValue": _[2] || (_[2] = (P) => $.value = P),
|
|
2552
|
+
placeholder: r(R).stateFilterPlaceholder
|
|
2553
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
2554
|
+
(S = s.value) != null && S.length ? (p(), v("div", e1, [
|
|
2555
|
+
(p(!0), v(oe, null, ue(s.value, (P, Z) => q((p(), v("div", {
|
|
2556
|
+
key: Z,
|
|
2520
2557
|
class: "flex items-center gap1",
|
|
2521
|
-
onClick: (
|
|
2558
|
+
onClick: (re) => G(Z)
|
|
2522
2559
|
}, [
|
|
2523
|
-
|
|
2524
|
-
name: `baseline-${
|
|
2560
|
+
y(r(Be), {
|
|
2561
|
+
name: `baseline-${P.icon.replace(/\_/g, "-")}`,
|
|
2525
2562
|
"cursor-pointer": "",
|
|
2526
2563
|
op70: "",
|
|
2527
2564
|
"text-base": "",
|
|
@@ -2529,24 +2566,24 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2529
2566
|
}, null, 8, ["name"])
|
|
2530
2567
|
], 8, t1)), [
|
|
2531
2568
|
[
|
|
2532
|
-
|
|
2533
|
-
{ content:
|
|
2569
|
+
r(J),
|
|
2570
|
+
{ content: P.tooltip },
|
|
2534
2571
|
void 0,
|
|
2535
2572
|
{ "bottom-end": !0 }
|
|
2536
2573
|
]
|
|
2537
2574
|
])), 128))
|
|
2538
|
-
])
|
|
2539
|
-
])
|
|
2540
|
-
|
|
2541
|
-
key:
|
|
2542
|
-
data:
|
|
2543
|
-
"node-id":
|
|
2544
|
-
"inspector-id":
|
|
2575
|
+
])) : O("", !0)
|
|
2576
|
+
]),
|
|
2577
|
+
u.value && !V.value ? (p(), z(De, {
|
|
2578
|
+
key: 0,
|
|
2579
|
+
data: j.value,
|
|
2580
|
+
"node-id": u.value,
|
|
2581
|
+
"inspector-id": l.value,
|
|
2545
2582
|
"expanded-state-id": "custom-inspector-state",
|
|
2546
2583
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2547
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(
|
|
2548
|
-
default:
|
|
2549
|
-
|
|
2584
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ie, { key: 1 }, {
|
|
2585
|
+
default: L(() => _[5] || (_[5] = [
|
|
2586
|
+
X(" No Data ")
|
|
2550
2587
|
])),
|
|
2551
2588
|
_: 1
|
|
2552
2589
|
}))
|
|
@@ -2557,28 +2594,23 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2557
2594
|
})
|
|
2558
2595
|
]),
|
|
2559
2596
|
_: 1
|
|
2560
|
-
})) : (p(), z(Ne, { key: 1 }, {
|
|
2561
|
-
default: H(() => k[2] || (k[2] = [
|
|
2562
|
-
Y(" No Data ")
|
|
2563
|
-
])),
|
|
2564
|
-
_: 1
|
|
2565
2597
|
}))
|
|
2566
2598
|
]));
|
|
2567
2599
|
}
|
|
2568
2600
|
}), o1 = /* @__PURE__ */ B({
|
|
2569
2601
|
__name: "Index",
|
|
2570
2602
|
setup(n) {
|
|
2571
|
-
const e =
|
|
2572
|
-
return (o, t) => (p(), z(
|
|
2573
|
-
"layer-ids":
|
|
2574
|
-
"doc-link":
|
|
2575
|
-
"plugin-id":
|
|
2603
|
+
const e = ye();
|
|
2604
|
+
return (o, t) => (p(), z(dt, {
|
|
2605
|
+
"layer-ids": r(e).timelineLayerIds,
|
|
2606
|
+
"doc-link": r(e).homepage,
|
|
2607
|
+
"plugin-id": r(e).pluginId
|
|
2576
2608
|
}, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
|
|
2577
2609
|
}
|
|
2578
2610
|
}), l1 = {
|
|
2579
2611
|
"h-full": "",
|
|
2580
2612
|
"w-full": ""
|
|
2581
|
-
}, s1 = { key: 0 },
|
|
2613
|
+
}, s1 = { key: 0 }, is = /* @__PURE__ */ B({
|
|
2582
2614
|
__name: "index",
|
|
2583
2615
|
props: {
|
|
2584
2616
|
id: {},
|
|
@@ -2586,10 +2618,10 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2586
2618
|
},
|
|
2587
2619
|
emits: ["loadError"],
|
|
2588
2620
|
setup(n, { emit: e }) {
|
|
2589
|
-
const o = n, t = e,
|
|
2590
|
-
|
|
2591
|
-
const
|
|
2592
|
-
var
|
|
2621
|
+
const o = n, t = e, l = pt(), s = I(!1), c = I(null);
|
|
2622
|
+
Ce("pluginSettings", c);
|
|
2623
|
+
const a = E(() => {
|
|
2624
|
+
var u;
|
|
2593
2625
|
return [
|
|
2594
2626
|
{
|
|
2595
2627
|
path: "/state",
|
|
@@ -2597,7 +2629,7 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2597
2629
|
component: n1,
|
|
2598
2630
|
icon: "i-carbon-tree-view-alt"
|
|
2599
2631
|
},
|
|
2600
|
-
((
|
|
2632
|
+
((u = l.value.timelineLayerIds) == null ? void 0 : u.length) && {
|
|
2601
2633
|
path: "/timeline",
|
|
2602
2634
|
name: "Timeline",
|
|
2603
2635
|
component: o1,
|
|
@@ -2608,47 +2640,49 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2608
2640
|
name: "About",
|
|
2609
2641
|
component: Hl
|
|
2610
2642
|
},
|
|
2611
|
-
|
|
2643
|
+
c.value && {
|
|
2612
2644
|
path: "/settings",
|
|
2613
2645
|
name: "Settings",
|
|
2614
|
-
component:
|
|
2646
|
+
component: Zl,
|
|
2615
2647
|
icon: "i-mdi:cog-outline"
|
|
2616
2648
|
}
|
|
2617
2649
|
].filter(Boolean);
|
|
2618
|
-
}), { VirtualRouterView:
|
|
2650
|
+
}), { VirtualRouterView: i, restoreRouter: g } = lt(a, {
|
|
2619
2651
|
defaultRoutePath: "/state"
|
|
2620
2652
|
});
|
|
2621
|
-
function
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
if (!
|
|
2653
|
+
function h() {
|
|
2654
|
+
s.value = !0, Ne(() => {
|
|
2655
|
+
D.value.getInspectorInfo(o.id).then((u) => {
|
|
2656
|
+
if (!u) {
|
|
2625
2657
|
t("loadError");
|
|
2626
2658
|
return;
|
|
2627
2659
|
}
|
|
2628
2660
|
const m = {
|
|
2629
|
-
homepage:
|
|
2630
|
-
id:
|
|
2631
|
-
label:
|
|
2632
|
-
logo:
|
|
2633
|
-
timelineLayerIds:
|
|
2634
|
-
pluginId: o.pluginId
|
|
2661
|
+
homepage: u == null ? void 0 : u.homepage,
|
|
2662
|
+
id: u == null ? void 0 : u.id,
|
|
2663
|
+
label: u == null ? void 0 : u.label,
|
|
2664
|
+
logo: u == null ? void 0 : u.logo,
|
|
2665
|
+
timelineLayerIds: u == null ? void 0 : u.timelineLayers.map((V) => V.id),
|
|
2666
|
+
pluginId: o.pluginId,
|
|
2667
|
+
treeFilterPlaceholder: u.treeFilterPlaceholder,
|
|
2668
|
+
stateFilterPlaceholder: u.stateFilterPlaceholder
|
|
2635
2669
|
};
|
|
2636
|
-
|
|
2637
|
-
}),
|
|
2638
|
-
|
|
2670
|
+
l.value = m, g(), s.value = !1;
|
|
2671
|
+
}), D.value.getPluginSettings(o.pluginId).then((u) => {
|
|
2672
|
+
u.options ? c.value = u : c.value = null;
|
|
2639
2673
|
});
|
|
2640
2674
|
});
|
|
2641
2675
|
}
|
|
2642
|
-
return
|
|
2643
|
-
|
|
2676
|
+
return Q(() => o.id, () => {
|
|
2677
|
+
h();
|
|
2644
2678
|
}, {
|
|
2645
2679
|
immediate: !0
|
|
2646
|
-
}),
|
|
2647
|
-
|
|
2648
|
-
}), (
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
])) : (p(), z(
|
|
2680
|
+
}), we(() => {
|
|
2681
|
+
D.value.unhighlight();
|
|
2682
|
+
}), (u, m) => (p(), v("div", l1, [
|
|
2683
|
+
s.value ? (p(), v("div", s1, [
|
|
2684
|
+
y(yl)
|
|
2685
|
+
])) : (p(), z(r(i), { key: 1 }))
|
|
2652
2686
|
]));
|
|
2653
2687
|
}
|
|
2654
2688
|
}), a1 = {}, i1 = {
|
|
@@ -2657,11 +2691,11 @@ const kl = /* @__PURE__ */ Ce(xl, [["render", wl]]), Il = {
|
|
|
2657
2691
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2658
2692
|
};
|
|
2659
2693
|
function r1(n, e) {
|
|
2660
|
-
return p(),
|
|
2694
|
+
return p(), v("svg", i1, e[0] || (e[0] = [
|
|
2661
2695
|
on('<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)
|
|
2662
2696
|
]));
|
|
2663
2697
|
}
|
|
2664
|
-
const u1 = /* @__PURE__ */
|
|
2698
|
+
const u1 = /* @__PURE__ */ xe(a1, [["render", r1]]), c1 = {
|
|
2665
2699
|
"h-full": "",
|
|
2666
2700
|
"w-full": "",
|
|
2667
2701
|
flex: "",
|
|
@@ -2682,13 +2716,13 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2682
2716
|
}, v1 = { flex: "~ gap2 wrap" }, m1 = /* @__PURE__ */ B({
|
|
2683
2717
|
__name: "About",
|
|
2684
2718
|
setup(n) {
|
|
2685
|
-
const e =
|
|
2686
|
-
return (o, t) => (p(),
|
|
2719
|
+
const e = Ae();
|
|
2720
|
+
return (o, t) => (p(), v("div", c1, [
|
|
2687
2721
|
d("div", d1, [
|
|
2688
2722
|
t[5] || (t[5] = d("div", { "flex-auto": "" }, null, -1)),
|
|
2689
2723
|
d("div", p1, [
|
|
2690
2724
|
d("div", f1, [
|
|
2691
|
-
|
|
2725
|
+
y(u1, { "h-18": "" })
|
|
2692
2726
|
]),
|
|
2693
2727
|
t[2] || (t[2] = d("div", {
|
|
2694
2728
|
mb6: "",
|
|
@@ -2707,7 +2741,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2707
2741
|
"min-w-40": "",
|
|
2708
2742
|
p4: "",
|
|
2709
2743
|
"theme-card-lime": "",
|
|
2710
|
-
onClick: t[0] || (t[0] = (
|
|
2744
|
+
onClick: t[0] || (t[0] = (l) => r(e).push("/store"))
|
|
2711
2745
|
}, t[3] || (t[3] = [
|
|
2712
2746
|
d("div", {
|
|
2713
2747
|
"i-carbon-tree-view-alt": "",
|
|
@@ -2720,7 +2754,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2720
2754
|
"min-w-40": "",
|
|
2721
2755
|
p4: "",
|
|
2722
2756
|
"theme-card-lime": "",
|
|
2723
|
-
onClick: t[1] || (t[1] = (
|
|
2757
|
+
onClick: t[1] || (t[1] = (l) => r(e).push("/timeline"))
|
|
2724
2758
|
}, t[4] || (t[4] = [
|
|
2725
2759
|
d("div", {
|
|
2726
2760
|
"i-mdi:timeline-clock-outline": "",
|
|
@@ -2745,7 +2779,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2745
2779
|
transition: ""
|
|
2746
2780
|
}, [
|
|
2747
2781
|
d("div", { "i-carbon-star": "" }),
|
|
2748
|
-
|
|
2782
|
+
X(" Star on GitHub ")
|
|
2749
2783
|
]),
|
|
2750
2784
|
d("a", {
|
|
2751
2785
|
href: "https://pinia.vuejs.org/",
|
|
@@ -2757,7 +2791,7 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2757
2791
|
transition: ""
|
|
2758
2792
|
}, [
|
|
2759
2793
|
d("div", { "i-carbon-document": "" }),
|
|
2760
|
-
|
|
2794
|
+
X(" View Documentation ")
|
|
2761
2795
|
])
|
|
2762
2796
|
], -1)),
|
|
2763
2797
|
t[8] || (t[8] = d("div", { "flex-auto": "" }, null, -1))
|
|
@@ -2767,173 +2801,191 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2767
2801
|
}), h1 = { class: "h-full flex flex-col" }, g1 = /* @__PURE__ */ B({
|
|
2768
2802
|
__name: "Settings",
|
|
2769
2803
|
setup(n) {
|
|
2770
|
-
const e = ve("pluginSettings"), o =
|
|
2771
|
-
function s
|
|
2772
|
-
e.value =
|
|
2804
|
+
const e = ve("pluginSettings"), o = E(() => e.value.options), t = E(() => e.value.values);
|
|
2805
|
+
function l(s) {
|
|
2806
|
+
e.value = s;
|
|
2773
2807
|
}
|
|
2774
|
-
return (
|
|
2775
|
-
|
|
2808
|
+
return (s, c) => (p(), v("div", h1, [
|
|
2809
|
+
y(Se, {
|
|
2776
2810
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2777
2811
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2778
2812
|
}, {
|
|
2779
|
-
default:
|
|
2780
|
-
|
|
2813
|
+
default: L(() => [
|
|
2814
|
+
y(Te)
|
|
2781
2815
|
]),
|
|
2782
2816
|
_: 1
|
|
2783
2817
|
}),
|
|
2784
|
-
|
|
2818
|
+
y(Kt, {
|
|
2785
2819
|
"plugin-id": "dev.esm.pinia",
|
|
2786
2820
|
options: o.value,
|
|
2787
2821
|
values: t.value,
|
|
2788
|
-
onUpdate:
|
|
2822
|
+
onUpdate: l
|
|
2789
2823
|
}, null, 8, ["options", "values"])
|
|
2790
2824
|
]));
|
|
2791
2825
|
}
|
|
2792
|
-
}), C1 = { class: "h-full flex flex-col" },
|
|
2793
|
-
|
|
2794
|
-
class: "mb-1 flex justify-end pb-1",
|
|
2826
|
+
}), C1 = "dev.esm.pinia", Gt = "pinia", _1 = { class: "h-full flex flex-col" }, y1 = { class: "h-full flex flex-col p2" }, x1 = {
|
|
2827
|
+
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2795
2828
|
border: "b dashed base"
|
|
2796
|
-
},
|
|
2829
|
+
}, b1 = {
|
|
2797
2830
|
key: 0,
|
|
2798
|
-
class: "
|
|
2831
|
+
class: "flex items-center gap-2 px-1"
|
|
2832
|
+
}, w1 = ["onClick"], k1 = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, I1 = { class: "h-full flex flex-col p2" }, $1 = {
|
|
2833
|
+
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2799
2834
|
border: "b dashed base"
|
|
2800
|
-
},
|
|
2835
|
+
}, S1 = {
|
|
2836
|
+
key: 0,
|
|
2837
|
+
class: "flex items-center gap-2 px-1"
|
|
2838
|
+
}, T1 = ["onClick"], E1 = /* @__PURE__ */ B({
|
|
2801
2839
|
__name: "Index",
|
|
2802
2840
|
setup(n) {
|
|
2803
|
-
const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t =
|
|
2804
|
-
var
|
|
2805
|
-
return (
|
|
2806
|
-
}),
|
|
2807
|
-
|
|
2808
|
-
|
|
2841
|
+
const { expanded: e } = me(), { expanded: o } = me("pinia-store-state"), t = Gt, l = I([]), s = I([]), c = ye(), a = I(""), i = I([]), g = E(() => {
|
|
2842
|
+
var b, f;
|
|
2843
|
+
return (b = i.value) != null && b.length ? j((f = i.value) == null ? void 0 : f[0]) : [];
|
|
2844
|
+
}), h = E(() => x(i.value)), u = E(() => h.value.map((b) => b.id)), m = I({}), V = I(""), R = I("");
|
|
2845
|
+
Q(V, (b, f) => {
|
|
2846
|
+
!b.trim().length && !f.trim().length || he(b);
|
|
2809
2847
|
});
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2848
|
+
const C = E(() => nt({
|
|
2849
|
+
state: m.value,
|
|
2850
|
+
filterKey: R.value
|
|
2851
|
+
})), $ = E(() => {
|
|
2852
|
+
var b, f;
|
|
2853
|
+
return !((b = m.value.state) != null && b.length) && !((f = m.value.getters) != null && f.length);
|
|
2854
|
+
});
|
|
2855
|
+
function j(b, f = [], _ = []) {
|
|
2856
|
+
var S;
|
|
2857
|
+
return f.push(b.id), ((S = b.children) == null ? void 0 : S.length) === 0 && _.push([...f]), Array.isArray(b.children) && b.children.forEach((P) => {
|
|
2858
|
+
j(P, f, _);
|
|
2859
|
+
}), f.pop(), _;
|
|
2860
|
+
}
|
|
2861
|
+
function A(b, f) {
|
|
2862
|
+
const _ = [];
|
|
2863
|
+
return b == null || b.forEach((S) => {
|
|
2864
|
+
_.push(...S.slice(0, f + 1));
|
|
2865
|
+
}), [...new Set(_)];
|
|
2866
|
+
}
|
|
2867
|
+
function x(b) {
|
|
2868
|
+
const f = [], _ = (S) => {
|
|
2869
|
+
S == null || S.forEach((P) => {
|
|
2870
|
+
var Z;
|
|
2871
|
+
f.push(P), (Z = P.children) != null && Z.length && _(P.children);
|
|
2827
2872
|
});
|
|
2828
2873
|
};
|
|
2829
|
-
return
|
|
2874
|
+
return _(b), f;
|
|
2830
2875
|
}
|
|
2831
|
-
function
|
|
2832
|
-
|
|
2833
|
-
|
|
2876
|
+
function w() {
|
|
2877
|
+
D.value.getInspectorNodeActions(t).then((b) => {
|
|
2878
|
+
l.value = b;
|
|
2834
2879
|
});
|
|
2835
2880
|
}
|
|
2836
|
-
function
|
|
2837
|
-
|
|
2838
|
-
s.value =
|
|
2881
|
+
function N() {
|
|
2882
|
+
D.value.getInspectorActions(t).then((b) => {
|
|
2883
|
+
s.value = b;
|
|
2839
2884
|
});
|
|
2840
2885
|
}
|
|
2841
|
-
|
|
2842
|
-
function
|
|
2843
|
-
|
|
2886
|
+
w(), N();
|
|
2887
|
+
function M(b) {
|
|
2888
|
+
D.value.callInspectorNodeAction(t, b, a.value);
|
|
2844
2889
|
}
|
|
2845
|
-
function
|
|
2846
|
-
|
|
2890
|
+
function G(b) {
|
|
2891
|
+
D.value.callInspectorAction(t, b);
|
|
2847
2892
|
}
|
|
2848
|
-
function
|
|
2849
|
-
var
|
|
2850
|
-
for (const
|
|
2851
|
-
(
|
|
2852
|
-
return
|
|
2893
|
+
function F(b) {
|
|
2894
|
+
var f;
|
|
2895
|
+
for (const _ in b)
|
|
2896
|
+
(f = b[_]) != null && f.length || delete b[_];
|
|
2897
|
+
return b;
|
|
2853
2898
|
}
|
|
2854
|
-
function
|
|
2855
|
-
|
|
2856
|
-
const
|
|
2857
|
-
|
|
2899
|
+
function W(b) {
|
|
2900
|
+
D.value.getInspectorState({ inspectorId: t, nodeId: b }).then((f) => {
|
|
2901
|
+
const _ = ee(f);
|
|
2902
|
+
_ && (m.value = F(_), o.value = Array.from({ length: Object.keys(m.value).length }, (S, P) => `${P}`));
|
|
2858
2903
|
});
|
|
2859
2904
|
}
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2905
|
+
function de() {
|
|
2906
|
+
m.value = {};
|
|
2862
2907
|
}
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
})
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2908
|
+
Q(a, () => {
|
|
2909
|
+
de(), W(a.value);
|
|
2910
|
+
});
|
|
2911
|
+
function he(b = "") {
|
|
2912
|
+
D.value.getInspectorTree({ inspectorId: t, filter: b }).then((f) => {
|
|
2913
|
+
const _ = ee(f);
|
|
2914
|
+
i.value = _, !a.value && _.length && (a.value = _[0].id, W(_[0].id), e.value = A(g.value, 1));
|
|
2869
2915
|
});
|
|
2870
|
-
}
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2916
|
+
}
|
|
2917
|
+
he();
|
|
2918
|
+
function le(b) {
|
|
2919
|
+
const f = ee(b);
|
|
2920
|
+
f.inspectorId !== t || !f.rootNodes.length || (i.value = f.rootNodes, u.value.includes(a.value) || (a.value = f.rootNodes[0].id, e.value = A(g.value, 1), W(f.rootNodes[0].id)));
|
|
2921
|
+
}
|
|
2922
|
+
function H(b) {
|
|
2923
|
+
const f = ee(b);
|
|
2924
|
+
if (f.inspectorId !== t)
|
|
2878
2925
|
return;
|
|
2879
|
-
const
|
|
2880
|
-
|
|
2881
|
-
state:
|
|
2882
|
-
getters:
|
|
2926
|
+
const _ = f.state;
|
|
2927
|
+
m.value = F({
|
|
2928
|
+
state: _.state,
|
|
2929
|
+
getters: _.getters
|
|
2883
2930
|
});
|
|
2884
2931
|
}
|
|
2885
|
-
return
|
|
2886
|
-
|
|
2887
|
-
}), (
|
|
2888
|
-
|
|
2932
|
+
return D.functions.on(Y.INSPECTOR_TREE_UPDATED, le), D.functions.on(Y.INSPECTOR_STATE_UPDATED, H), we(() => {
|
|
2933
|
+
D.functions.off(Y.INSPECTOR_TREE_UPDATED, le), D.functions.off(Y.INSPECTOR_STATE_UPDATED, H);
|
|
2934
|
+
}), (b, f) => (p(), v("div", _1, [
|
|
2935
|
+
y(Se, {
|
|
2889
2936
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2890
2937
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2891
2938
|
}, {
|
|
2892
|
-
default:
|
|
2893
|
-
|
|
2939
|
+
default: L(() => [
|
|
2940
|
+
y(Te)
|
|
2894
2941
|
]),
|
|
2895
2942
|
_: 1
|
|
2896
2943
|
}),
|
|
2897
|
-
|
|
2898
|
-
default:
|
|
2899
|
-
|
|
2944
|
+
y(r(Re), { class: "flex-1 overflow-auto" }, {
|
|
2945
|
+
default: L(() => [
|
|
2946
|
+
y(r(ce), {
|
|
2900
2947
|
border: "r base",
|
|
2901
2948
|
size: "40",
|
|
2902
2949
|
"h-full": ""
|
|
2903
2950
|
}, {
|
|
2904
|
-
default:
|
|
2905
|
-
var
|
|
2951
|
+
default: L(() => {
|
|
2952
|
+
var _;
|
|
2906
2953
|
return [
|
|
2907
|
-
d("div",
|
|
2908
|
-
(
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2954
|
+
d("div", y1, [
|
|
2955
|
+
d("div", x1, [
|
|
2956
|
+
y(r(_e), {
|
|
2957
|
+
modelValue: V.value,
|
|
2958
|
+
"onUpdate:modelValue": f[0] || (f[0] = (S) => V.value = S),
|
|
2959
|
+
placeholder: r(c).treeFilterPlaceholder
|
|
2960
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
2961
|
+
(_ = s.value) != null && _.length ? (p(), v("div", b1, [
|
|
2962
|
+
(p(!0), v(oe, null, ue(s.value, (S, P) => q((p(), v("div", {
|
|
2963
|
+
key: P,
|
|
2912
2964
|
class: "flex items-center gap1",
|
|
2913
|
-
onClick: (
|
|
2965
|
+
onClick: (Z) => G(P)
|
|
2914
2966
|
}, [
|
|
2915
2967
|
d("i", {
|
|
2916
|
-
class:
|
|
2968
|
+
class: se(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
2917
2969
|
"cursor-pointer": "",
|
|
2918
2970
|
op70: "",
|
|
2919
2971
|
"text-base": "",
|
|
2920
2972
|
"hover:op100": ""
|
|
2921
2973
|
}, null, 2)
|
|
2922
|
-
], 8,
|
|
2974
|
+
], 8, w1)), [
|
|
2923
2975
|
[
|
|
2924
|
-
|
|
2925
|
-
{ content:
|
|
2976
|
+
r(J),
|
|
2977
|
+
{ content: S.tooltip },
|
|
2926
2978
|
void 0,
|
|
2927
2979
|
{ "bottom-end": !0 }
|
|
2928
2980
|
]
|
|
2929
2981
|
])), 128))
|
|
2930
|
-
])
|
|
2931
|
-
])
|
|
2932
|
-
d("div",
|
|
2933
|
-
|
|
2934
|
-
modelValue:
|
|
2935
|
-
"onUpdate:modelValue":
|
|
2936
|
-
data:
|
|
2982
|
+
])) : O("", !0)
|
|
2983
|
+
]),
|
|
2984
|
+
d("div", k1, [
|
|
2985
|
+
y(Pe, {
|
|
2986
|
+
modelValue: a.value,
|
|
2987
|
+
"onUpdate:modelValue": f[1] || (f[1] = (S) => a.value = S),
|
|
2988
|
+
data: i.value
|
|
2937
2989
|
}, null, 8, ["modelValue", "data"])
|
|
2938
2990
|
])
|
|
2939
2991
|
])
|
|
@@ -2941,45 +2993,50 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2941
2993
|
}),
|
|
2942
2994
|
_: 1
|
|
2943
2995
|
}),
|
|
2944
|
-
|
|
2945
|
-
default:
|
|
2946
|
-
var
|
|
2996
|
+
y(r(ce), { size: "60" }, {
|
|
2997
|
+
default: L(() => {
|
|
2998
|
+
var _;
|
|
2947
2999
|
return [
|
|
2948
|
-
d("div",
|
|
2949
|
-
(
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
3000
|
+
d("div", I1, [
|
|
3001
|
+
d("div", $1, [
|
|
3002
|
+
y(r(_e), {
|
|
3003
|
+
modelValue: R.value,
|
|
3004
|
+
"onUpdate:modelValue": f[2] || (f[2] = (S) => R.value = S),
|
|
3005
|
+
placeholder: r(c).stateFilterPlaceholder
|
|
3006
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
3007
|
+
(_ = l.value) != null && _.length ? (p(), v("div", S1, [
|
|
3008
|
+
(p(!0), v(oe, null, ue(l.value, (S, P) => q((p(), v("div", {
|
|
3009
|
+
key: P,
|
|
2953
3010
|
class: "flex items-center gap1",
|
|
2954
|
-
onClick: (
|
|
3011
|
+
onClick: (Z) => M(P)
|
|
2955
3012
|
}, [
|
|
2956
3013
|
d("i", {
|
|
2957
|
-
class:
|
|
3014
|
+
class: se(`i-ic-baseline-${S.icon.replace(/\_/g, "-")}`),
|
|
2958
3015
|
"cursor-pointer": "",
|
|
2959
3016
|
op70: "",
|
|
2960
3017
|
"text-base": "",
|
|
2961
3018
|
"hover:op100": ""
|
|
2962
3019
|
}, null, 2)
|
|
2963
|
-
], 8,
|
|
3020
|
+
], 8, T1)), [
|
|
2964
3021
|
[
|
|
2965
|
-
|
|
2966
|
-
{ content:
|
|
3022
|
+
r(J),
|
|
3023
|
+
{ content: S.tooltip },
|
|
2967
3024
|
void 0,
|
|
2968
3025
|
{ "bottom-end": !0 }
|
|
2969
3026
|
]
|
|
2970
3027
|
])), 128))
|
|
2971
|
-
])
|
|
2972
|
-
])
|
|
2973
|
-
|
|
2974
|
-
key:
|
|
3028
|
+
])) : O("", !0)
|
|
3029
|
+
]),
|
|
3030
|
+
a.value && !$.value ? (p(), z(De, {
|
|
3031
|
+
key: 0,
|
|
2975
3032
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
2976
|
-
data:
|
|
2977
|
-
"node-id":
|
|
2978
|
-
"inspector-id":
|
|
3033
|
+
data: C.value,
|
|
3034
|
+
"node-id": a.value,
|
|
3035
|
+
"inspector-id": r(t),
|
|
2979
3036
|
"expanded-state-id": "pinia-store-state"
|
|
2980
|
-
}, null, 8, ["data", "node-id"])) : (p(), z(
|
|
2981
|
-
default:
|
|
2982
|
-
|
|
3037
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (p(), z(Ie, { key: 1 }, {
|
|
3038
|
+
default: L(() => f[3] || (f[3] = [
|
|
3039
|
+
X(" No Data ")
|
|
2983
3040
|
])),
|
|
2984
3041
|
_: 1
|
|
2985
3042
|
}))
|
|
@@ -2993,36 +3050,36 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
2993
3050
|
})
|
|
2994
3051
|
]));
|
|
2995
3052
|
}
|
|
2996
|
-
}),
|
|
3053
|
+
}), V1 = "dev.esm.pinia", N1 = /* @__PURE__ */ B({
|
|
2997
3054
|
__name: "Index",
|
|
2998
3055
|
setup(n) {
|
|
2999
3056
|
const e = ["pinia:mutations"];
|
|
3000
|
-
return (o, t) => (p(), z(
|
|
3057
|
+
return (o, t) => (p(), z(dt, {
|
|
3001
3058
|
"layer-ids": e,
|
|
3002
3059
|
"doc-link": "https://pinia.vuejs.org/",
|
|
3003
|
-
"plugin-id":
|
|
3060
|
+
"plugin-id": V1,
|
|
3004
3061
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
3005
3062
|
}));
|
|
3006
3063
|
}
|
|
3007
|
-
}),
|
|
3064
|
+
}), R1 = {
|
|
3008
3065
|
"h-full": "",
|
|
3009
3066
|
"w-full": ""
|
|
3010
|
-
},
|
|
3067
|
+
}, rs = /* @__PURE__ */ B({
|
|
3011
3068
|
__name: "index",
|
|
3012
3069
|
setup(n) {
|
|
3013
|
-
const e =
|
|
3014
|
-
|
|
3015
|
-
const o =
|
|
3070
|
+
const e = I(null);
|
|
3071
|
+
Ce("pluginSettings", e);
|
|
3072
|
+
const o = E(() => [
|
|
3016
3073
|
{
|
|
3017
3074
|
path: "/store",
|
|
3018
3075
|
name: "Store",
|
|
3019
|
-
component:
|
|
3076
|
+
component: E1,
|
|
3020
3077
|
icon: "i-carbon-tree-view-alt"
|
|
3021
3078
|
},
|
|
3022
3079
|
{
|
|
3023
3080
|
path: "/timeline",
|
|
3024
3081
|
name: "Timeline",
|
|
3025
|
-
component:
|
|
3082
|
+
component: N1,
|
|
3026
3083
|
icon: "i-mdi:timeline-clock-outline"
|
|
3027
3084
|
},
|
|
3028
3085
|
{
|
|
@@ -3037,24 +3094,29 @@ const u1 = /* @__PURE__ */ Ce(a1, [["render", r1]]), c1 = {
|
|
|
3037
3094
|
component: g1,
|
|
3038
3095
|
icon: "i-mdi:cog-outline"
|
|
3039
3096
|
}
|
|
3040
|
-
].filter(Boolean)), { VirtualRouterView: t, restoreRouter:
|
|
3097
|
+
].filter(Boolean)), { VirtualRouterView: t, restoreRouter: l } = lt(o, {
|
|
3041
3098
|
defaultRoutePath: "/store"
|
|
3042
|
-
});
|
|
3043
|
-
return
|
|
3044
|
-
|
|
3045
|
-
|
|
3099
|
+
}), s = pt();
|
|
3100
|
+
return Ne(() => {
|
|
3101
|
+
D.value.getPluginSettings(C1).then((c) => {
|
|
3102
|
+
c.options ? e.value = c : e.value = null;
|
|
3103
|
+
}), D.value.getInspectorInfo(Gt).then((c) => {
|
|
3104
|
+
c && (s.value = {
|
|
3105
|
+
stateFilterPlaceholder: c.stateFilterPlaceholder,
|
|
3106
|
+
treeFilterPlaceholder: c.treeFilterPlaceholder
|
|
3107
|
+
});
|
|
3046
3108
|
});
|
|
3047
|
-
}), (
|
|
3048
|
-
|
|
3109
|
+
}), (c, a) => (p(), v("div", R1, [
|
|
3110
|
+
y(r(t))
|
|
3049
3111
|
]));
|
|
3050
3112
|
}
|
|
3051
|
-
}),
|
|
3113
|
+
}), A1 = {}, D1 = {
|
|
3052
3114
|
viewBox: "0 0 566 154",
|
|
3053
3115
|
fill: "none",
|
|
3054
3116
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3055
3117
|
};
|
|
3056
|
-
function
|
|
3057
|
-
return p(),
|
|
3118
|
+
function P1(n, e) {
|
|
3119
|
+
return p(), v("svg", D1, e[0] || (e[0] = [
|
|
3058
3120
|
d("svg", {
|
|
3059
3121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3060
3122
|
width: "8em",
|
|
@@ -3072,16 +3134,16 @@ function D1(n, e) {
|
|
|
3072
3134
|
}, null, -1)
|
|
3073
3135
|
]));
|
|
3074
3136
|
}
|
|
3075
|
-
const
|
|
3137
|
+
const M1 = /* @__PURE__ */ xe(A1, [["render", P1]]), L1 = {
|
|
3076
3138
|
"h-full": "",
|
|
3077
3139
|
"w-full": "",
|
|
3078
3140
|
flex: "",
|
|
3079
3141
|
"items-center": ""
|
|
3080
|
-
},
|
|
3142
|
+
}, H1 = {
|
|
3081
3143
|
flex: "~ col gap2",
|
|
3082
3144
|
ma: "",
|
|
3083
3145
|
"px-5": ""
|
|
3084
|
-
},
|
|
3146
|
+
}, U1 = {
|
|
3085
3147
|
flex: "~ col",
|
|
3086
3148
|
"mt-20": "",
|
|
3087
3149
|
"items-center": ""
|
|
@@ -3090,16 +3152,16 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3090
3152
|
"mt--10": "",
|
|
3091
3153
|
"items-center": "",
|
|
3092
3154
|
"justify-center": ""
|
|
3093
|
-
}, j1 = { flex: "~ gap2 wrap" },
|
|
3155
|
+
}, j1 = { flex: "~ gap2 wrap" }, z1 = /* @__PURE__ */ B({
|
|
3094
3156
|
__name: "About",
|
|
3095
3157
|
setup(n) {
|
|
3096
|
-
const e =
|
|
3097
|
-
return (o, t) => (p(),
|
|
3098
|
-
d("div",
|
|
3158
|
+
const e = Ae();
|
|
3159
|
+
return (o, t) => (p(), v("div", L1, [
|
|
3160
|
+
d("div", H1, [
|
|
3099
3161
|
t[5] || (t[5] = d("div", { "flex-auto": "" }, null, -1)),
|
|
3100
|
-
d("div",
|
|
3162
|
+
d("div", U1, [
|
|
3101
3163
|
d("div", O1, [
|
|
3102
|
-
|
|
3164
|
+
y(M1, { "h-18": "" })
|
|
3103
3165
|
]),
|
|
3104
3166
|
t[2] || (t[2] = d("div", {
|
|
3105
3167
|
mb6: "",
|
|
@@ -3118,7 +3180,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3118
3180
|
"min-w-40": "",
|
|
3119
3181
|
p4: "",
|
|
3120
3182
|
"theme-card-lime": "",
|
|
3121
|
-
onClick: t[0] || (t[0] = (
|
|
3183
|
+
onClick: t[0] || (t[0] = (l) => r(e).push("/routes"))
|
|
3122
3184
|
}, t[3] || (t[3] = [
|
|
3123
3185
|
d("div", {
|
|
3124
3186
|
"i-carbon-tree-view-alt": "",
|
|
@@ -3131,7 +3193,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3131
3193
|
"min-w-40": "",
|
|
3132
3194
|
p4: "",
|
|
3133
3195
|
"theme-card-lime": "",
|
|
3134
|
-
onClick: t[1] || (t[1] = (
|
|
3196
|
+
onClick: t[1] || (t[1] = (l) => r(e).push("/timeline"))
|
|
3135
3197
|
}, t[4] || (t[4] = [
|
|
3136
3198
|
d("div", {
|
|
3137
3199
|
"i-mdi:timeline-clock-outline": "",
|
|
@@ -3156,7 +3218,7 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3156
3218
|
transition: ""
|
|
3157
3219
|
}, [
|
|
3158
3220
|
d("div", { "i-carbon-star": "" }),
|
|
3159
|
-
|
|
3221
|
+
X(" Star on GitHub ")
|
|
3160
3222
|
]),
|
|
3161
3223
|
d("a", {
|
|
3162
3224
|
href: "https://router.vuejs.org/",
|
|
@@ -3168,14 +3230,14 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3168
3230
|
transition: ""
|
|
3169
3231
|
}, [
|
|
3170
3232
|
d("div", { "i-carbon-document": "" }),
|
|
3171
|
-
|
|
3233
|
+
X(" View Documentation ")
|
|
3172
3234
|
])
|
|
3173
3235
|
], -1)),
|
|
3174
3236
|
t[8] || (t[8] = d("div", { "flex-auto": "" }, null, -1))
|
|
3175
3237
|
])
|
|
3176
3238
|
]));
|
|
3177
3239
|
}
|
|
3178
|
-
}),
|
|
3240
|
+
}), B1 = { class: "h-full flex flex-col" }, F1 = {
|
|
3179
3241
|
"h-full": "",
|
|
3180
3242
|
"select-none": "",
|
|
3181
3243
|
"overflow-scroll": "",
|
|
@@ -3186,113 +3248,113 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3186
3248
|
"select-none": "",
|
|
3187
3249
|
"overflow-scroll": "",
|
|
3188
3250
|
class: "no-scrollbar"
|
|
3189
|
-
},
|
|
3251
|
+
}, K1 = /* @__PURE__ */ B({
|
|
3190
3252
|
__name: "Index",
|
|
3191
3253
|
setup(n) {
|
|
3192
|
-
const { expanded: e } = me(), { expanded: o } = me("routes-state"), t =
|
|
3193
|
-
var
|
|
3194
|
-
return (
|
|
3195
|
-
}),
|
|
3196
|
-
function
|
|
3197
|
-
var
|
|
3198
|
-
return
|
|
3199
|
-
|
|
3200
|
-
}),
|
|
3201
|
-
}
|
|
3202
|
-
function m(
|
|
3203
|
-
const
|
|
3204
|
-
return
|
|
3205
|
-
|
|
3206
|
-
}), [...new Set(
|
|
3207
|
-
}
|
|
3208
|
-
function
|
|
3209
|
-
const
|
|
3210
|
-
|
|
3211
|
-
var
|
|
3212
|
-
|
|
3254
|
+
const { expanded: e } = me(), { expanded: o } = me("routes-state"), t = ye(), l = E(() => t.value.id), s = I(""), c = I([]), a = E(() => {
|
|
3255
|
+
var w, N;
|
|
3256
|
+
return (w = c.value) != null && w.length ? u((N = c.value) == null ? void 0 : N[0]) : [];
|
|
3257
|
+
}), i = E(() => V(c.value)), g = E(() => i.value.map((w) => w.id)), h = I({});
|
|
3258
|
+
function u(w, N = [], M = []) {
|
|
3259
|
+
var G;
|
|
3260
|
+
return N.push(w.id), ((G = w.children) == null ? void 0 : G.length) === 0 && M.push([...N]), Array.isArray(w.children) && w.children.forEach((F) => {
|
|
3261
|
+
u(F, N, M);
|
|
3262
|
+
}), N.pop(), M;
|
|
3263
|
+
}
|
|
3264
|
+
function m(w, N) {
|
|
3265
|
+
const M = [];
|
|
3266
|
+
return w == null || w.forEach((G) => {
|
|
3267
|
+
M.push(...G.slice(0, N + 1));
|
|
3268
|
+
}), [...new Set(M)];
|
|
3269
|
+
}
|
|
3270
|
+
function V(w) {
|
|
3271
|
+
const N = [], M = (G) => {
|
|
3272
|
+
G == null || G.forEach((F) => {
|
|
3273
|
+
var W;
|
|
3274
|
+
N.push(F), (W = F.children) != null && W.length && M(F.children);
|
|
3213
3275
|
});
|
|
3214
3276
|
};
|
|
3215
|
-
return
|
|
3277
|
+
return M(w), N;
|
|
3216
3278
|
}
|
|
3217
|
-
function
|
|
3218
|
-
var
|
|
3219
|
-
for (const
|
|
3220
|
-
(
|
|
3221
|
-
return
|
|
3222
|
-
}
|
|
3223
|
-
function
|
|
3224
|
-
|
|
3225
|
-
const
|
|
3226
|
-
|
|
3279
|
+
function R(w) {
|
|
3280
|
+
var N;
|
|
3281
|
+
for (const M in w)
|
|
3282
|
+
(N = w[M]) != null && N.length || delete w[M];
|
|
3283
|
+
return w;
|
|
3284
|
+
}
|
|
3285
|
+
function C(w) {
|
|
3286
|
+
D.value.getInspectorState({ inspectorId: l.value, nodeId: w }).then((N) => {
|
|
3287
|
+
const M = ee(N);
|
|
3288
|
+
M && (h.value = R(M), o.value = Array.from({ length: Object.keys(h.value).length }, (G, F) => `${F}`));
|
|
3227
3289
|
});
|
|
3228
3290
|
}
|
|
3229
3291
|
function $() {
|
|
3230
|
-
|
|
3292
|
+
h.value = {};
|
|
3231
3293
|
}
|
|
3232
|
-
|
|
3233
|
-
$(),
|
|
3294
|
+
Q(s, () => {
|
|
3295
|
+
$(), C(s.value);
|
|
3234
3296
|
});
|
|
3235
|
-
const
|
|
3236
|
-
|
|
3237
|
-
const
|
|
3238
|
-
|
|
3297
|
+
const j = () => {
|
|
3298
|
+
D.value.getInspectorTree({ inspectorId: l.value, filter: "" }).then((w) => {
|
|
3299
|
+
const N = ee(w);
|
|
3300
|
+
c.value = N, !s.value && N.length && (s.value = N[0].id, C(N[0].id), e.value = m(a.value, 1));
|
|
3239
3301
|
});
|
|
3240
3302
|
};
|
|
3241
|
-
jt(
|
|
3242
|
-
function
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3245
|
-
}
|
|
3246
|
-
function
|
|
3247
|
-
const
|
|
3248
|
-
if (
|
|
3303
|
+
jt(l).toBeTruthy().then(j);
|
|
3304
|
+
function A(w) {
|
|
3305
|
+
const N = ee(w);
|
|
3306
|
+
N.inspectorId !== l.value || !N.rootNodes.length || (c.value = N.rootNodes, g.value.includes(s.value) || (s.value = N.rootNodes[0].id, e.value = m(a.value, 1), C(N.rootNodes[0].id)));
|
|
3307
|
+
}
|
|
3308
|
+
function x(w) {
|
|
3309
|
+
const N = ee(w);
|
|
3310
|
+
if (N.inspectorId !== l.value)
|
|
3249
3311
|
return;
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3312
|
+
const M = N.state;
|
|
3313
|
+
h.value = R(M);
|
|
3252
3314
|
}
|
|
3253
|
-
return
|
|
3254
|
-
|
|
3255
|
-
}), (
|
|
3256
|
-
|
|
3315
|
+
return D.functions.on(Y.INSPECTOR_TREE_UPDATED, A), D.functions.on(Y.INSPECTOR_STATE_UPDATED, x), we(() => {
|
|
3316
|
+
D.functions.off(Y.INSPECTOR_TREE_UPDATED, A), D.functions.off(Y.INSPECTOR_STATE_UPDATED, x);
|
|
3317
|
+
}), (w, N) => (p(), v("div", B1, [
|
|
3318
|
+
y(Se, {
|
|
3257
3319
|
"doc-link": "https://router.vuejs.org/",
|
|
3258
3320
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3259
3321
|
}, {
|
|
3260
|
-
default:
|
|
3261
|
-
|
|
3322
|
+
default: L(() => [
|
|
3323
|
+
y(Te)
|
|
3262
3324
|
]),
|
|
3263
3325
|
_: 1
|
|
3264
3326
|
}),
|
|
3265
|
-
|
|
3266
|
-
default:
|
|
3267
|
-
|
|
3327
|
+
y(r(Re), { class: "flex-1 overflow-auto" }, {
|
|
3328
|
+
default: L(() => [
|
|
3329
|
+
y(r(ce), {
|
|
3268
3330
|
border: "r base",
|
|
3269
3331
|
size: "40",
|
|
3270
3332
|
"h-full": ""
|
|
3271
3333
|
}, {
|
|
3272
|
-
default:
|
|
3273
|
-
d("div",
|
|
3274
|
-
|
|
3275
|
-
modelValue:
|
|
3276
|
-
"onUpdate:modelValue":
|
|
3277
|
-
data:
|
|
3334
|
+
default: L(() => [
|
|
3335
|
+
d("div", F1, [
|
|
3336
|
+
y(Pe, {
|
|
3337
|
+
modelValue: s.value,
|
|
3338
|
+
"onUpdate:modelValue": N[0] || (N[0] = (M) => s.value = M),
|
|
3339
|
+
data: c.value
|
|
3278
3340
|
}, null, 8, ["modelValue", "data"])
|
|
3279
3341
|
])
|
|
3280
3342
|
]),
|
|
3281
3343
|
_: 1
|
|
3282
3344
|
}),
|
|
3283
|
-
|
|
3284
|
-
default:
|
|
3345
|
+
y(r(ce), { size: "60" }, {
|
|
3346
|
+
default: L(() => [
|
|
3285
3347
|
d("div", Z1, [
|
|
3286
|
-
|
|
3348
|
+
s.value ? (p(), z(De, {
|
|
3287
3349
|
key: 0,
|
|
3288
3350
|
class: "p3",
|
|
3289
|
-
data:
|
|
3351
|
+
data: h.value,
|
|
3290
3352
|
"node-id": "",
|
|
3291
3353
|
"inspector-id": "router",
|
|
3292
3354
|
"expanded-state-id": "routes-state"
|
|
3293
|
-
}, null, 8, ["data"])) : (p(), z(
|
|
3294
|
-
default:
|
|
3295
|
-
|
|
3355
|
+
}, null, 8, ["data"])) : (p(), z(Ie, { key: 1 }, {
|
|
3356
|
+
default: L(() => N[1] || (N[1] = [
|
|
3357
|
+
X(" No Data ")
|
|
3296
3358
|
])),
|
|
3297
3359
|
_: 1
|
|
3298
3360
|
}))
|
|
@@ -3305,77 +3367,77 @@ const P1 = /* @__PURE__ */ Ce(R1, [["render", D1]]), M1 = {
|
|
|
3305
3367
|
})
|
|
3306
3368
|
]));
|
|
3307
3369
|
}
|
|
3308
|
-
}), G1 = "org.vuejs.router",
|
|
3370
|
+
}), G1 = "org.vuejs.router", W1 = /* @__PURE__ */ B({
|
|
3309
3371
|
__name: "Index",
|
|
3310
3372
|
setup(n) {
|
|
3311
|
-
const e =
|
|
3312
|
-
return (o, t) => (p(), z(
|
|
3313
|
-
"layer-ids":
|
|
3373
|
+
const e = ye();
|
|
3374
|
+
return (o, t) => (p(), z(dt, {
|
|
3375
|
+
"layer-ids": r(e).timelineLayerIds,
|
|
3314
3376
|
"doc-link": "https://router.vuejs.org/",
|
|
3315
3377
|
"plugin-id": G1,
|
|
3316
3378
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3317
3379
|
}, null, 8, ["layer-ids"]));
|
|
3318
3380
|
}
|
|
3319
|
-
}),
|
|
3381
|
+
}), q1 = {
|
|
3320
3382
|
"h-full": "",
|
|
3321
3383
|
"w-full": ""
|
|
3322
|
-
},
|
|
3384
|
+
}, us = /* @__PURE__ */ B({
|
|
3323
3385
|
__name: "index",
|
|
3324
3386
|
props: {
|
|
3325
3387
|
id: {}
|
|
3326
3388
|
},
|
|
3327
3389
|
setup(n) {
|
|
3328
|
-
const e = n, o =
|
|
3390
|
+
const e = n, o = pt(), t = I(!1), { VirtualRouterView: l, restoreRouter: s } = lt([
|
|
3329
3391
|
{
|
|
3330
3392
|
path: "/routes",
|
|
3331
3393
|
name: "Routes",
|
|
3332
|
-
component:
|
|
3394
|
+
component: K1,
|
|
3333
3395
|
icon: "i-carbon-tree-view-alt"
|
|
3334
3396
|
},
|
|
3335
3397
|
{
|
|
3336
3398
|
path: "/timeline",
|
|
3337
3399
|
name: "Timeline",
|
|
3338
|
-
component:
|
|
3400
|
+
component: W1,
|
|
3339
3401
|
icon: "i-mdi:timeline-clock-outline"
|
|
3340
3402
|
},
|
|
3341
3403
|
{
|
|
3342
3404
|
path: "/about",
|
|
3343
3405
|
name: "About",
|
|
3344
|
-
component:
|
|
3406
|
+
component: z1,
|
|
3345
3407
|
icon: "i-ri-route-line"
|
|
3346
3408
|
}
|
|
3347
3409
|
], {
|
|
3348
3410
|
defaultRoutePath: "/routes"
|
|
3349
3411
|
});
|
|
3350
|
-
function
|
|
3351
|
-
t.value = !0,
|
|
3352
|
-
|
|
3353
|
-
if (!
|
|
3412
|
+
function c() {
|
|
3413
|
+
t.value = !0, Ne(() => {
|
|
3414
|
+
D.value.getInspectorInfo(e.id).then((a) => {
|
|
3415
|
+
if (!a)
|
|
3354
3416
|
return;
|
|
3355
|
-
const
|
|
3356
|
-
homepage:
|
|
3357
|
-
id:
|
|
3358
|
-
label:
|
|
3359
|
-
logo:
|
|
3360
|
-
timelineLayerIds:
|
|
3417
|
+
const i = {
|
|
3418
|
+
homepage: a == null ? void 0 : a.homepage,
|
|
3419
|
+
id: a == null ? void 0 : a.id,
|
|
3420
|
+
label: a == null ? void 0 : a.label,
|
|
3421
|
+
logo: a == null ? void 0 : a.logo,
|
|
3422
|
+
timelineLayerIds: a == null ? void 0 : a.timelineLayers.map((g) => g.id)
|
|
3361
3423
|
};
|
|
3362
|
-
o.value =
|
|
3424
|
+
o.value = i, s(), t.value = !1;
|
|
3363
3425
|
});
|
|
3364
3426
|
});
|
|
3365
3427
|
}
|
|
3366
|
-
return
|
|
3367
|
-
|
|
3368
|
-
}), (
|
|
3369
|
-
|
|
3428
|
+
return Q(() => e.id, (a) => {
|
|
3429
|
+
a && c();
|
|
3430
|
+
}), (a, i) => (p(), v("div", q1, [
|
|
3431
|
+
y(r(l))
|
|
3370
3432
|
]));
|
|
3371
3433
|
}
|
|
3372
3434
|
});
|
|
3373
3435
|
export {
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3436
|
+
as as Components,
|
|
3437
|
+
is as CustomInspector,
|
|
3438
|
+
rs as Pinia,
|
|
3439
|
+
us as Router,
|
|
3378
3440
|
Sn as SelectiveList,
|
|
3379
|
-
|
|
3380
|
-
|
|
3441
|
+
dt as Timeline,
|
|
3442
|
+
ss as useCustomInspector
|
|
3381
3443
|
};
|