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