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