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