@vue/devtools-applet 8.0.0 → 8.0.1
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 +1509 -1436
- package/package.json +7 -7
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,36 @@ 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
|
-
|
|
1566
|
+
default: H(() => w[1] || (w[1] = [
|
|
1567
|
+
Q(" No events ", -1)
|
|
1542
1568
|
])),
|
|
1543
1569
|
_: 1,
|
|
1544
1570
|
__: [1]
|
|
1545
1571
|
})),
|
|
1546
|
-
V.switcherVisible ? (c(), m("div",
|
|
1547
|
-
u("div",
|
|
1548
|
-
|
|
1572
|
+
V.switcherVisible ? (c(), m("div", Ko, [
|
|
1573
|
+
u("div", Go, [
|
|
1574
|
+
q((c(), m("div", {
|
|
1549
1575
|
class: "flex items-center gap1",
|
|
1550
|
-
onClick:
|
|
1576
|
+
onClick: L
|
|
1551
1577
|
}, [
|
|
1552
|
-
i.value ? (c(), m("span",
|
|
1578
|
+
i.value ? (c(), m("span", Wo)) : (c(), m("span", qo))
|
|
1553
1579
|
])), [
|
|
1554
1580
|
[
|
|
1555
|
-
a(
|
|
1581
|
+
a(Y),
|
|
1556
1582
|
{ content: v.value },
|
|
1557
1583
|
void 0,
|
|
1558
1584
|
{ "bottom-end": !0 }
|
|
1559
1585
|
]
|
|
1560
1586
|
]),
|
|
1561
|
-
|
|
1587
|
+
q((c(), m("div", {
|
|
1562
1588
|
class: "flex items-center gap1",
|
|
1563
|
-
onClick:
|
|
1589
|
+
onClick: I
|
|
1564
1590
|
}, [
|
|
1565
|
-
|
|
1591
|
+
x(a(Ze), {
|
|
1566
1592
|
name: "baseline-delete",
|
|
1567
1593
|
"cursor-pointer": "",
|
|
1568
1594
|
"text-xl": "",
|
|
@@ -1571,14 +1597,14 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
|
|
|
1571
1597
|
})
|
|
1572
1598
|
])), [
|
|
1573
1599
|
[
|
|
1574
|
-
a(
|
|
1600
|
+
a(Y),
|
|
1575
1601
|
{ content: "Clear all timelines" },
|
|
1576
1602
|
void 0,
|
|
1577
1603
|
{ "bottom-end": !0 }
|
|
1578
1604
|
]
|
|
1579
1605
|
]),
|
|
1580
|
-
|
|
1581
|
-
|
|
1606
|
+
q((c(), m("div", Jo, [
|
|
1607
|
+
x(a(Ze), {
|
|
1582
1608
|
name: "baseline-tips-and-updates",
|
|
1583
1609
|
"cursor-pointer": "",
|
|
1584
1610
|
"text-xl": "",
|
|
@@ -1587,82 +1613,82 @@ const vo = { class: "flex pl5px" }, mo = { class: "w160px py5px" }, ho = /* @__P
|
|
|
1587
1613
|
})
|
|
1588
1614
|
])), [
|
|
1589
1615
|
[
|
|
1590
|
-
a(
|
|
1616
|
+
a(Y),
|
|
1591
1617
|
{ 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
1618
|
void 0,
|
|
1593
1619
|
{ "bottom-end": !0 }
|
|
1594
1620
|
]
|
|
1595
1621
|
])
|
|
1596
1622
|
])
|
|
1597
|
-
])) :
|
|
1623
|
+
])) : j("", !0)
|
|
1598
1624
|
]));
|
|
1599
1625
|
}
|
|
1600
|
-
}),
|
|
1601
|
-
function
|
|
1602
|
-
const
|
|
1626
|
+
}), ct = /* @__PURE__ */ be(Yo, [["__scopeId", "data-v-3dbcfd2a"]]);
|
|
1627
|
+
function g1() {
|
|
1628
|
+
const t = N([]), e = N([]);
|
|
1603
1629
|
function o(l) {
|
|
1604
|
-
e.value = l, l.length <
|
|
1605
|
-
|
|
1630
|
+
e.value = l, l.length < t.value.length && (t.value = []), e.value.forEach((s) => {
|
|
1631
|
+
n(s);
|
|
1606
1632
|
});
|
|
1607
1633
|
}
|
|
1608
|
-
|
|
1609
|
-
|
|
1634
|
+
De(() => {
|
|
1635
|
+
A.value.getCustomInspector().then((l) => {
|
|
1610
1636
|
e.value = l, e.value.forEach((s) => {
|
|
1611
|
-
|
|
1637
|
+
n(s);
|
|
1612
1638
|
});
|
|
1613
|
-
}),
|
|
1639
|
+
}), A.functions.on(X.INSPECTOR_UPDATED, o);
|
|
1614
1640
|
});
|
|
1615
|
-
function
|
|
1616
|
-
|
|
1641
|
+
function n(l) {
|
|
1642
|
+
t.value.some((s) => s.id === l.id) || t.value.push(l);
|
|
1617
1643
|
}
|
|
1618
|
-
return
|
|
1619
|
-
|
|
1644
|
+
return ke(() => {
|
|
1645
|
+
A.functions.off(X.INSPECTOR_UPDATED, o);
|
|
1620
1646
|
}), {
|
|
1621
|
-
registeredInspector:
|
|
1622
|
-
register:
|
|
1647
|
+
registeredInspector: t,
|
|
1648
|
+
register: n
|
|
1623
1649
|
};
|
|
1624
1650
|
}
|
|
1625
|
-
const
|
|
1626
|
-
function
|
|
1627
|
-
const
|
|
1628
|
-
return
|
|
1629
|
-
selected:
|
|
1651
|
+
const Xt = Symbol("SelectedSymbolKey");
|
|
1652
|
+
function Xo() {
|
|
1653
|
+
const t = N("");
|
|
1654
|
+
return _e(Xt, t), {
|
|
1655
|
+
selected: t
|
|
1630
1656
|
};
|
|
1631
1657
|
}
|
|
1632
|
-
function
|
|
1633
|
-
const
|
|
1658
|
+
function Qo() {
|
|
1659
|
+
const t = ge(Xt, N(""));
|
|
1634
1660
|
function e(o) {
|
|
1635
|
-
|
|
1661
|
+
t.value = o;
|
|
1636
1662
|
}
|
|
1637
1663
|
return {
|
|
1638
|
-
selected:
|
|
1664
|
+
selected: t,
|
|
1639
1665
|
select: e
|
|
1640
1666
|
};
|
|
1641
1667
|
}
|
|
1642
|
-
const
|
|
1668
|
+
const el = ["onClick", "onDblclick", "onMouseover"], tl = {
|
|
1643
1669
|
key: 1,
|
|
1644
1670
|
pl5: ""
|
|
1645
|
-
},
|
|
1671
|
+
}, nl = {
|
|
1646
1672
|
"font-state-field": "",
|
|
1647
1673
|
"text-3.5": ""
|
|
1648
|
-
},
|
|
1674
|
+
}, ol = {
|
|
1649
1675
|
key: 0,
|
|
1650
1676
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1651
|
-
},
|
|
1677
|
+
}, ll = {
|
|
1652
1678
|
"group-hover:text-white": "",
|
|
1653
1679
|
class: "ws-nowrap [.active_&]:text-white"
|
|
1654
|
-
},
|
|
1680
|
+
}, sl = {
|
|
1655
1681
|
key: 2,
|
|
1656
1682
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
1657
|
-
},
|
|
1683
|
+
}, al = {
|
|
1658
1684
|
key: 2,
|
|
1659
1685
|
class: "ml-2 rounded-sm bg-blue-400 px-1 text-[0.75rem] leading-snug dark:bg-blue-800"
|
|
1660
|
-
},
|
|
1686
|
+
}, il = {
|
|
1661
1687
|
key: 3,
|
|
1662
1688
|
class: "ml-2 rounded-sm bg-gray-500 px-1 text-[0.75rem] leading-snug"
|
|
1663
|
-
},
|
|
1689
|
+
}, rl = { key: 0 }, Oe = /* @__PURE__ */ F({
|
|
1664
1690
|
__name: "TreeViewer",
|
|
1665
|
-
props: /* @__PURE__ */
|
|
1691
|
+
props: /* @__PURE__ */ Re({
|
|
1666
1692
|
data: {},
|
|
1667
1693
|
depth: { default: 0 },
|
|
1668
1694
|
withTag: { type: Boolean, default: !1 }
|
|
@@ -1670,328 +1696,375 @@ const Wo = ["onClick", "onDblclick", "onMouseover"], qo = {
|
|
|
1670
1696
|
modelValue: {},
|
|
1671
1697
|
modelModifiers: {}
|
|
1672
1698
|
}),
|
|
1673
|
-
emits: /* @__PURE__ */
|
|
1674
|
-
setup(
|
|
1675
|
-
const o = e,
|
|
1676
|
-
|
|
1699
|
+
emits: /* @__PURE__ */ Re(["hover", "leave"], ["update:modelValue"]),
|
|
1700
|
+
setup(t, { emit: e }) {
|
|
1701
|
+
const o = e, n = Ye(t, "modelValue"), { expanded: l, toggleExpanded: s } = at();
|
|
1702
|
+
Qo();
|
|
1677
1703
|
function p(i) {
|
|
1678
1704
|
return "name" in i && i?.name || "label" in i && i.label;
|
|
1679
1705
|
}
|
|
1680
1706
|
function r(i) {
|
|
1681
|
-
|
|
1707
|
+
n.value = i;
|
|
1682
1708
|
}
|
|
1683
|
-
return (i, f) => (c(!0), m(
|
|
1709
|
+
return (i, f) => (c(!0), m(le, null, ce(i.data, (v, d) => (c(), m("div", {
|
|
1684
1710
|
key: d,
|
|
1685
|
-
class:
|
|
1711
|
+
class: ie({
|
|
1686
1712
|
"min-w-max": i.depth === 0
|
|
1687
1713
|
})
|
|
1688
1714
|
}, [
|
|
1689
1715
|
u("div", {
|
|
1690
|
-
class:
|
|
1691
|
-
style:
|
|
1716
|
+
class: ie(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600", { "bg-primary-600! active": n.value === v.id }]),
|
|
1717
|
+
style: Se({ paddingLeft: `${15 * i.depth + 4}px` }),
|
|
1692
1718
|
onClick: (h) => r(v.id),
|
|
1693
1719
|
onDblclick: (h) => a(s)(v.id),
|
|
1694
1720
|
onMouseover: () => o("hover", v.id),
|
|
1695
1721
|
onMouseleave: f[0] || (f[0] = () => o("leave"))
|
|
1696
1722
|
}, [
|
|
1697
|
-
v?.children?.length ? (c(), z(
|
|
1723
|
+
v?.children?.length ? (c(), z(lt, {
|
|
1698
1724
|
key: 0,
|
|
1699
1725
|
value: a(l).includes(v.id),
|
|
1700
1726
|
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(
|
|
1727
|
+
onClick: he((h) => a(s)(v.id), ["stop"])
|
|
1728
|
+
}, null, 8, ["value", "onClick"])) : (c(), m("span", tl)),
|
|
1729
|
+
u("span", nl, [
|
|
1730
|
+
i.withTag ? (c(), m("span", ol, "<")) : j("", !0),
|
|
1731
|
+
u("span", ll, re(p(v)), 1),
|
|
1732
|
+
(v.renderKey === 0 || v.renderKey) && v.renderKey !== a(Dt) ? (c(), m("span", {
|
|
1707
1733
|
key: 1,
|
|
1708
|
-
class:
|
|
1709
|
-
"opacity-100":
|
|
1734
|
+
class: ie(["text-xs opacity-50", {
|
|
1735
|
+
"opacity-100": n.value === v.id
|
|
1710
1736
|
}])
|
|
1711
1737
|
}, [
|
|
1712
1738
|
u("span", {
|
|
1713
|
-
class:
|
|
1739
|
+
class: ie([n.value === v.id ? "text-purple-200" : "text-purple-500"])
|
|
1714
1740
|
}, " key", 2),
|
|
1715
|
-
f[4] || (f[4] =
|
|
1716
|
-
u("span", null,
|
|
1717
|
-
], 2)) :
|
|
1718
|
-
i.withTag ? (c(), m("span",
|
|
1741
|
+
f[4] || (f[4] = Q("=", -1)),
|
|
1742
|
+
u("span", null, re(v.renderKey), 1)
|
|
1743
|
+
], 2)) : j("", !0),
|
|
1744
|
+
i.withTag ? (c(), m("span", sl, ">")) : j("", !0)
|
|
1719
1745
|
]),
|
|
1720
|
-
v.isFragment ?
|
|
1721
|
-
|
|
1746
|
+
v.isFragment ? q((c(), m("span", al, f[5] || (f[5] = [
|
|
1747
|
+
Q(" fragment ", -1)
|
|
1722
1748
|
]))), [
|
|
1723
|
-
[a(
|
|
1724
|
-
]) :
|
|
1725
|
-
v.inactive ?
|
|
1726
|
-
|
|
1749
|
+
[a(Y), "Has multiple root DOM nodes"]
|
|
1750
|
+
]) : j("", !0),
|
|
1751
|
+
v.inactive ? q((c(), m("span", il, f[6] || (f[6] = [
|
|
1752
|
+
Q(" inactive ", -1)
|
|
1727
1753
|
]))), [
|
|
1728
|
-
[a(
|
|
1729
|
-
]) :
|
|
1730
|
-
(c(!0), m(
|
|
1731
|
-
key:
|
|
1754
|
+
[a(Y), "Currently inactive but not destroyed"]
|
|
1755
|
+
]) : j("", !0),
|
|
1756
|
+
(c(!0), m(le, null, ce(v.tags, (h, T) => (c(), z(jt, {
|
|
1757
|
+
key: T,
|
|
1732
1758
|
tag: h
|
|
1733
1759
|
}, 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) =>
|
|
1760
|
+
], 46, el),
|
|
1761
|
+
v?.children?.length && a(l).includes(v.id) ? (c(), m("div", rl, [
|
|
1762
|
+
x(Oe, {
|
|
1763
|
+
modelValue: n.value,
|
|
1764
|
+
"onUpdate:modelValue": f[1] || (f[1] = (h) => n.value = h),
|
|
1739
1765
|
data: v?.children,
|
|
1740
1766
|
depth: i.depth + 1,
|
|
1741
1767
|
"with-tag": i.withTag,
|
|
1742
1768
|
onHover: f[2] || (f[2] = (h) => o("hover", h)),
|
|
1743
1769
|
onLeave: f[3] || (f[3] = (h) => o("leave"))
|
|
1744
1770
|
}, null, 8, ["modelValue", "data", "depth", "with-tag"])
|
|
1745
|
-
])) :
|
|
1771
|
+
])) : j("", !0)
|
|
1746
1772
|
], 2))), 128));
|
|
1747
1773
|
}
|
|
1748
|
-
}),
|
|
1749
|
-
function
|
|
1750
|
-
const n = kt((o) => R.value.highlighComponent(o), St), e = kt(() => R.value.unhighlight(), St);
|
|
1774
|
+
}), Nt = 200;
|
|
1775
|
+
function ul() {
|
|
1751
1776
|
return {
|
|
1752
|
-
highlight:
|
|
1753
|
-
unhighlight:
|
|
1777
|
+
highlight: /* @__PURE__ */ Tt((o) => A.value.highlighComponent(o), Nt),
|
|
1778
|
+
unhighlight: /* @__PURE__ */ Tt(() => A.value.unhighlight(), Nt)
|
|
1754
1779
|
};
|
|
1755
1780
|
}
|
|
1756
|
-
const
|
|
1781
|
+
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
1782
|
__name: "RenderCode",
|
|
1758
1783
|
props: {
|
|
1759
1784
|
code: {}
|
|
1760
1785
|
},
|
|
1761
1786
|
emits: ["close"],
|
|
1762
|
-
setup(
|
|
1787
|
+
setup(t, { emit: e }) {
|
|
1763
1788
|
const o = e;
|
|
1764
|
-
function
|
|
1789
|
+
function n() {
|
|
1765
1790
|
o("close");
|
|
1766
1791
|
}
|
|
1767
|
-
return (l, s) => (c(), m("div",
|
|
1792
|
+
return (l, s) => (c(), m("div", cl, [
|
|
1768
1793
|
u("div", { class: "h-12 w-full flex items-center justify-between p-2" }, [
|
|
1769
1794
|
s[0] || (s[0] = u("span", { class: "font-500" }, "Render Code", -1)),
|
|
1770
1795
|
u("i", {
|
|
1771
1796
|
class: "i-carbon-close cursor-pointer hover:op80",
|
|
1772
|
-
onClick:
|
|
1797
|
+
onClick: n
|
|
1773
1798
|
})
|
|
1774
1799
|
]),
|
|
1775
|
-
u("div",
|
|
1776
|
-
|
|
1800
|
+
u("div", dl, [
|
|
1801
|
+
x(a(gn), {
|
|
1777
1802
|
code: l.code,
|
|
1778
1803
|
lang: "javascript"
|
|
1779
1804
|
}, null, 8, ["code"])
|
|
1780
1805
|
])
|
|
1781
1806
|
]));
|
|
1782
1807
|
}
|
|
1783
|
-
}),
|
|
1808
|
+
}), fl = { class: "h-full w-full" }, vl = { class: "no-scrollbar h-full flex select-none gap-2 overflow-scroll" }, ml = {
|
|
1784
1809
|
key: 0,
|
|
1785
1810
|
class: "h-full flex flex-col p2"
|
|
1786
|
-
},
|
|
1811
|
+
}, hl = { class: "flex py2" }, gl = {
|
|
1787
1812
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1788
1813
|
style: { height: "1.1em", width: "1.1em" },
|
|
1789
1814
|
class: "op-80 hover:op-100",
|
|
1790
1815
|
viewBox: "0 0 24 24"
|
|
1791
|
-
},
|
|
1816
|
+
}, Cl = { class: "h-full flex flex-col p2" }, yl = { class: "flex py2" }, _l = {
|
|
1792
1817
|
key: 0,
|
|
1793
1818
|
class: "font-state-field flex items-center px-1 text-3.5"
|
|
1794
|
-
},
|
|
1819
|
+
}, xl = {
|
|
1795
1820
|
"group-hover:text-white": "",
|
|
1796
1821
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
1797
|
-
},
|
|
1822
|
+
}, 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
1823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1799
1824
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
1800
1825
|
class: "animate-fade",
|
|
1801
1826
|
viewBox: "0 0 24 24"
|
|
1802
|
-
},
|
|
1827
|
+
}, $l = { class: "flex items-center justify-center" }, Ae = "components", Sl = /* @__PURE__ */ F({
|
|
1803
1828
|
__name: "index",
|
|
1804
1829
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
1805
|
-
setup(
|
|
1806
|
-
const o = e,
|
|
1807
|
-
function b
|
|
1808
|
-
return
|
|
1809
|
-
|
|
1810
|
-
}),
|
|
1811
|
-
}
|
|
1812
|
-
function
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
|
|
1830
|
+
setup(t, { emit: e }) {
|
|
1831
|
+
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();
|
|
1832
|
+
function I(b, y = [], M = []) {
|
|
1833
|
+
return y.push(b.id), b.children?.length === 0 && M.push([...y]), Array.isArray(b.children) && b.children.forEach((K) => {
|
|
1834
|
+
I(K, y, M);
|
|
1835
|
+
}), y.pop(), M;
|
|
1836
|
+
}
|
|
1837
|
+
function L(b) {
|
|
1838
|
+
const y = [], M = (K) => {
|
|
1839
|
+
K?.forEach((ee) => {
|
|
1840
|
+
y.push(ee), ee.children?.length && M(ee.children);
|
|
1816
1841
|
});
|
|
1817
1842
|
};
|
|
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
|
-
|
|
1843
|
+
return M(b), y;
|
|
1844
|
+
}
|
|
1845
|
+
function V(b, y) {
|
|
1846
|
+
const M = [];
|
|
1847
|
+
return b?.forEach((K) => {
|
|
1848
|
+
M.push(...K.slice(0, y + 1));
|
|
1849
|
+
}), [...new Set(M)];
|
|
1850
|
+
}
|
|
1851
|
+
function w(b, y) {
|
|
1852
|
+
const M = [];
|
|
1853
|
+
return b.forEach((K) => {
|
|
1854
|
+
const ee = K.indexOf(y);
|
|
1855
|
+
ee !== -1 && M.push(...K.slice(0, ee + 1));
|
|
1856
|
+
}), [...new Set(M)];
|
|
1857
|
+
}
|
|
1858
|
+
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(() => {
|
|
1859
|
+
const b = [], y = (M) => {
|
|
1860
|
+
M.forEach((K) => {
|
|
1861
|
+
K.id === C.value && b.push(K), K.children?.length && y(K.children);
|
|
1837
1862
|
});
|
|
1838
1863
|
};
|
|
1839
|
-
return
|
|
1840
|
-
}),
|
|
1841
|
-
state:
|
|
1864
|
+
return y(D.value), b[0];
|
|
1865
|
+
}), oe = S(() => U.value?.file ?? ""), se = S(() => tt({
|
|
1866
|
+
state: O.value,
|
|
1842
1867
|
filterKey: i.value,
|
|
1843
|
-
processGroup(
|
|
1844
|
-
return
|
|
1868
|
+
processGroup(b) {
|
|
1869
|
+
return Nn(Object.values(An(Mt(b), "stateType")));
|
|
1845
1870
|
}
|
|
1846
|
-
})), { expanded:
|
|
1847
|
-
|
|
1848
|
-
async function g(
|
|
1849
|
-
return
|
|
1850
|
-
const
|
|
1851
|
-
D.value =
|
|
1871
|
+
})), { expanded: R } = ye(), { expanded: k } = ye("component-state");
|
|
1872
|
+
Xo();
|
|
1873
|
+
async function g(b = "") {
|
|
1874
|
+
return A.value.getInspectorTree({ inspectorId: Ae, filter: b }).then((y) => {
|
|
1875
|
+
const M = ne(y);
|
|
1876
|
+
D.value = M, C.value = D.value?.[0]?.id, R.value = V(B.value, 1), d.value = !0;
|
|
1852
1877
|
});
|
|
1853
1878
|
}
|
|
1854
|
-
function
|
|
1855
|
-
if (!
|
|
1879
|
+
function _(b) {
|
|
1880
|
+
if (!b || !b?.state)
|
|
1856
1881
|
return {};
|
|
1857
|
-
const
|
|
1858
|
-
return
|
|
1859
|
-
|
|
1860
|
-
}),
|
|
1861
|
-
}
|
|
1862
|
-
function P(
|
|
1863
|
-
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1882
|
+
const y = {};
|
|
1883
|
+
return b.state.forEach((M) => {
|
|
1884
|
+
y[M.type] || (y[M.type] = []), y[M.type].push(M);
|
|
1885
|
+
}), y;
|
|
1886
|
+
}
|
|
1887
|
+
function P(b) {
|
|
1888
|
+
A.value.getInspectorState({ inspectorId: Ae, nodeId: b }).then((y) => {
|
|
1889
|
+
const M = ne(y);
|
|
1890
|
+
M && (O.value = _(M), k.value = Array.from({ length: Object.keys(O.value).length }, (K, ee) => `${ee}`));
|
|
1866
1891
|
});
|
|
1867
1892
|
}
|
|
1868
|
-
|
|
1869
|
-
P(
|
|
1893
|
+
te(C, (b) => {
|
|
1894
|
+
P(b), E.value && gt();
|
|
1870
1895
|
});
|
|
1871
|
-
function
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
function
|
|
1877
|
-
const
|
|
1878
|
-
v(), g(
|
|
1896
|
+
function Z(b) {
|
|
1897
|
+
const y = ne(b);
|
|
1898
|
+
y.inspectorId !== Ae || y.nodeId !== C.value || (O.value = _({ state: y.state.state }));
|
|
1899
|
+
}
|
|
1900
|
+
A.functions.on(X.INSPECTOR_STATE_UPDATED, Z), g();
|
|
1901
|
+
function ae(b) {
|
|
1902
|
+
const y = b.trim().toLowerCase();
|
|
1903
|
+
v(), g(y).then(() => {
|
|
1879
1904
|
v();
|
|
1880
1905
|
});
|
|
1881
1906
|
}
|
|
1882
|
-
|
|
1883
|
-
|
|
1907
|
+
qt(r, (b) => {
|
|
1908
|
+
ae(b);
|
|
1884
1909
|
}, { debounce: 300 });
|
|
1885
|
-
function
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1910
|
+
function Ve(b) {
|
|
1911
|
+
const y = ne(b);
|
|
1912
|
+
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
1913
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1914
|
+
A.functions.on(X.INSPECTOR_TREE_UPDATED, Ve), ke(() => {
|
|
1915
|
+
A.functions.off(X.INSPECTOR_STATE_UPDATED, Z), A.functions.off(X.INSPECTOR_TREE_UPDATED, Ve);
|
|
1891
1916
|
});
|
|
1892
|
-
const
|
|
1893
|
-
label:
|
|
1894
|
-
value:
|
|
1895
|
-
iframe:
|
|
1896
|
-
}))),
|
|
1897
|
-
label:
|
|
1898
|
-
id:
|
|
1899
|
-
}))),
|
|
1900
|
-
|
|
1901
|
-
|
|
1917
|
+
const Ke = Lt(), pt = S(() => Ke.appRecords.value.map((b) => ({
|
|
1918
|
+
label: b.name + (b.version ? ` (${b.version})` : ""),
|
|
1919
|
+
value: b.id,
|
|
1920
|
+
iframe: b.iframe
|
|
1921
|
+
}))), nn = S(() => pt.value.map((b) => ({
|
|
1922
|
+
label: b.label + (b.iframe ? ` (iframe: ${b.iframe})` : ""),
|
|
1923
|
+
id: b.value
|
|
1924
|
+
}))), Ue = N(Ke.activeAppRecordId.value);
|
|
1925
|
+
et(() => {
|
|
1926
|
+
Ue.value = Ke.activeAppRecordId.value;
|
|
1902
1927
|
});
|
|
1903
|
-
async function
|
|
1904
|
-
await
|
|
1928
|
+
async function ft(b, y = {}) {
|
|
1929
|
+
await A.value.toggleApp(b, y), C.value = "", await g();
|
|
1905
1930
|
}
|
|
1906
|
-
async function
|
|
1931
|
+
async function vt() {
|
|
1907
1932
|
h.value = !0, o("onInspectComponentStart");
|
|
1908
1933
|
try {
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1934
|
+
const b = JSON.parse(await A.value.inspectComponentInspector()), y = b.id.split(":")[0];
|
|
1935
|
+
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
1936
|
} finally {
|
|
1912
1937
|
h.value = !1, o("onInspectComponentEnd");
|
|
1913
1938
|
}
|
|
1914
1939
|
}
|
|
1915
|
-
function
|
|
1916
|
-
h.value = !1,
|
|
1917
|
-
}
|
|
1918
|
-
ve("keydown", (
|
|
1919
|
-
|
|
1940
|
+
function mt() {
|
|
1941
|
+
h.value = !1, A.value.cancelInspectComponentInspector();
|
|
1942
|
+
}
|
|
1943
|
+
ve("keydown", (b) => {
|
|
1944
|
+
b.key === "s" && (b.ctrlKey || b.metaKey) && !h.value ? vt() : b.key === "Escape" && h.value && mt();
|
|
1945
|
+
}), Ne("ArrowRight", () => {
|
|
1946
|
+
const b = R.value.includes(C.value), y = G.value.find((M) => M.id === C.value)?.children?.length;
|
|
1947
|
+
!b && y && R.value.push(C.value);
|
|
1948
|
+
}), Ne("ArrowLeft", () => {
|
|
1949
|
+
R.value.includes(C.value) && R.value.splice(R.value.indexOf(C.value), 1);
|
|
1950
|
+
}), Ne("ArrowDown", () => {
|
|
1951
|
+
const b = W.value.indexOf(C.value);
|
|
1952
|
+
if (R.value.includes(C.value) && b >= 0 && b < W.value.length - 1)
|
|
1953
|
+
C.value = W.value[b + 1];
|
|
1954
|
+
else {
|
|
1955
|
+
if (b === 0)
|
|
1956
|
+
return !1;
|
|
1957
|
+
C.value = on();
|
|
1958
|
+
}
|
|
1959
|
+
}), Ne("ArrowUp", () => {
|
|
1960
|
+
const b = C.value, y = B.value.find((Ge) => Ge.includes(b));
|
|
1961
|
+
if (!y)
|
|
1962
|
+
return;
|
|
1963
|
+
const M = y.indexOf(b), K = M > 0 ? M - 1 : 0, ee = y[K], pe = ht(ee);
|
|
1964
|
+
pe && (C.value = pe.id);
|
|
1965
|
+
}), Ne([" ", "Enter"], () => {
|
|
1966
|
+
if (!G.value.find((M) => M.id === C.value)?.children?.length)
|
|
1967
|
+
return;
|
|
1968
|
+
const y = R.value.indexOf(C.value);
|
|
1969
|
+
y === -1 ? R.value.push(C.value) : R.value.splice(y, 1);
|
|
1920
1970
|
});
|
|
1921
|
-
function
|
|
1922
|
-
|
|
1971
|
+
function ht(b) {
|
|
1972
|
+
const y = G.value.find((ee) => ee.id === b);
|
|
1973
|
+
if (!y || !y.children?.length || y.children.length === 1)
|
|
1974
|
+
return y;
|
|
1975
|
+
const M = y?.children?.findIndex((ee) => ee.id === C.value);
|
|
1976
|
+
if (M <= 0)
|
|
1977
|
+
return y;
|
|
1978
|
+
let K = y.children[M - 1];
|
|
1979
|
+
for (; K && R.value.includes(K.id) && K.children?.length; ) {
|
|
1980
|
+
const ee = K.children[K.children.length - 1], pe = ht(ee.id);
|
|
1981
|
+
if (!pe || pe.id === K.id)
|
|
1982
|
+
break;
|
|
1983
|
+
K = pe;
|
|
1984
|
+
}
|
|
1985
|
+
return K || y;
|
|
1986
|
+
}
|
|
1987
|
+
function on() {
|
|
1988
|
+
const b = B.value, y = [...b].findLastIndex((pe) => pe?.includes(C.value));
|
|
1989
|
+
if (y === -1)
|
|
1990
|
+
return C.value;
|
|
1991
|
+
const M = b[y], K = b[y + 1], ee = K?.findIndex((pe, Ge) => pe !== M[Ge]) ?? -1;
|
|
1992
|
+
return ee !== -1 ? K[ee] : C.value;
|
|
1923
1993
|
}
|
|
1924
|
-
function
|
|
1925
|
-
|
|
1994
|
+
function ln() {
|
|
1995
|
+
A.value.scrollToComponent(C.value);
|
|
1996
|
+
}
|
|
1997
|
+
function sn() {
|
|
1998
|
+
A.value.inspectDOM(C.value).then(() => {
|
|
1926
1999
|
chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)");
|
|
1927
2000
|
});
|
|
1928
2001
|
}
|
|
1929
|
-
function
|
|
1930
|
-
|
|
1931
|
-
|
|
2002
|
+
function gt() {
|
|
2003
|
+
A.value.getComponentRenderCode(C.value).then((b) => {
|
|
2004
|
+
T.value = b, E.value = !0;
|
|
1932
2005
|
});
|
|
1933
2006
|
}
|
|
1934
|
-
function
|
|
1935
|
-
o("openInEditor",
|
|
2007
|
+
function an() {
|
|
2008
|
+
o("openInEditor", oe.value);
|
|
1936
2009
|
}
|
|
1937
|
-
const
|
|
1938
|
-
function
|
|
2010
|
+
const Ct = N();
|
|
2011
|
+
function rn() {
|
|
1939
2012
|
setTimeout(() => {
|
|
1940
|
-
|
|
2013
|
+
Ct.value?.querySelector(".active")?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
1941
2014
|
}, 300);
|
|
1942
2015
|
}
|
|
1943
|
-
function
|
|
1944
|
-
|
|
2016
|
+
function un() {
|
|
2017
|
+
T.value = "", E.value = !1;
|
|
1945
2018
|
}
|
|
1946
|
-
return (
|
|
1947
|
-
|
|
2019
|
+
return (b, y) => (c(), m("div", fl, [
|
|
2020
|
+
x(a(Pe), {
|
|
1948
2021
|
ref_key: "splitpanesRef",
|
|
1949
|
-
ref:
|
|
2022
|
+
ref: n,
|
|
1950
2023
|
class: "flex-1 overflow-auto",
|
|
1951
2024
|
horizontal: p.value,
|
|
1952
|
-
onReady:
|
|
2025
|
+
onReady: y[4] || (y[4] = (M) => l.value = !0)
|
|
1953
2026
|
}, {
|
|
1954
|
-
default:
|
|
1955
|
-
|
|
2027
|
+
default: H(() => [
|
|
2028
|
+
pt.value.length > 1 ? (c(), z(a(de), {
|
|
1956
2029
|
key: 0,
|
|
1957
2030
|
border: "base h-full",
|
|
1958
2031
|
size: "20"
|
|
1959
2032
|
}, {
|
|
1960
|
-
default:
|
|
1961
|
-
u("div",
|
|
1962
|
-
|
|
1963
|
-
modelValue:
|
|
1964
|
-
"onUpdate:modelValue":
|
|
1965
|
-
data:
|
|
2033
|
+
default: H(() => [
|
|
2034
|
+
u("div", vl, [
|
|
2035
|
+
x(On, {
|
|
2036
|
+
modelValue: Ue.value,
|
|
2037
|
+
"onUpdate:modelValue": y[0] || (y[0] = (M) => Ue.value = M),
|
|
2038
|
+
data: nn.value,
|
|
1966
2039
|
class: "w-full",
|
|
1967
|
-
onSelect:
|
|
2040
|
+
onSelect: ft
|
|
1968
2041
|
}, null, 8, ["modelValue", "data"])
|
|
1969
2042
|
])
|
|
1970
2043
|
]),
|
|
1971
2044
|
_: 1
|
|
1972
|
-
})) :
|
|
1973
|
-
|
|
2045
|
+
})) : j("", !0),
|
|
2046
|
+
x(a(de), {
|
|
1974
2047
|
border: "base",
|
|
1975
2048
|
"h-full": ""
|
|
1976
2049
|
}, {
|
|
1977
|
-
default:
|
|
1978
|
-
d.value ? (c(), m("div",
|
|
1979
|
-
u("div",
|
|
1980
|
-
|
|
2050
|
+
default: H(() => [
|
|
2051
|
+
d.value ? (c(), m("div", ml, [
|
|
2052
|
+
u("div", hl, [
|
|
2053
|
+
x(a(Ce), {
|
|
1981
2054
|
modelValue: r.value,
|
|
1982
|
-
"onUpdate:modelValue":
|
|
2055
|
+
"onUpdate:modelValue": y[1] || (y[1] = (M) => r.value = M),
|
|
1983
2056
|
"loading-debounce-time": 250,
|
|
1984
2057
|
loading: !a(f),
|
|
1985
2058
|
placeholder: "Find components...",
|
|
1986
2059
|
class: "flex-1 text-3.5"
|
|
1987
2060
|
}, null, 8, ["modelValue", "loading"]),
|
|
1988
|
-
a(
|
|
2061
|
+
a(Tn) ? j("", !0) : q((c(), m("button", {
|
|
1989
2062
|
key: 0,
|
|
1990
2063
|
"px-1": "",
|
|
1991
2064
|
class: "hover:color-#00dc82",
|
|
1992
|
-
onClick:
|
|
2065
|
+
onClick: vt
|
|
1993
2066
|
}, [
|
|
1994
|
-
(c(), m("svg",
|
|
2067
|
+
(c(), m("svg", gl, y[6] || (y[6] = [
|
|
1995
2068
|
u("path", {
|
|
1996
2069
|
fill: "currentColor",
|
|
1997
2070
|
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"
|
|
@@ -1999,7 +2072,7 @@ const ll = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
1999
2072
|
])))
|
|
2000
2073
|
])), [
|
|
2001
2074
|
[
|
|
2002
|
-
a(
|
|
2075
|
+
a(Y),
|
|
2003
2076
|
"Select component in the page",
|
|
2004
2077
|
void 0,
|
|
2005
2078
|
{ bottom: !0 }
|
|
@@ -2008,132 +2081,132 @@ const ll = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2008
2081
|
]),
|
|
2009
2082
|
u("div", {
|
|
2010
2083
|
ref_key: "componentTreeContainer",
|
|
2011
|
-
ref:
|
|
2084
|
+
ref: Ct,
|
|
2012
2085
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2013
2086
|
}, [
|
|
2014
|
-
|
|
2015
|
-
modelValue:
|
|
2016
|
-
"onUpdate:modelValue":
|
|
2087
|
+
x(Oe, {
|
|
2088
|
+
modelValue: C.value,
|
|
2089
|
+
"onUpdate:modelValue": y[2] || (y[2] = (M) => C.value = M),
|
|
2017
2090
|
data: D.value,
|
|
2018
2091
|
"with-tag": !0,
|
|
2019
|
-
onHover: a(
|
|
2020
|
-
onLeave: a(
|
|
2092
|
+
onHover: a($).highlight,
|
|
2093
|
+
onLeave: a($).unhighlight
|
|
2021
2094
|
}, null, 8, ["modelValue", "data", "onHover", "onLeave"])
|
|
2022
2095
|
], 512)
|
|
2023
|
-
])) :
|
|
2096
|
+
])) : j("", !0)
|
|
2024
2097
|
]),
|
|
2025
2098
|
_: 1
|
|
2026
2099
|
}),
|
|
2027
|
-
|
|
2100
|
+
x(a(de), {
|
|
2028
2101
|
relative: "",
|
|
2029
2102
|
"h-full": ""
|
|
2030
2103
|
}, {
|
|
2031
|
-
default:
|
|
2032
|
-
u("div",
|
|
2033
|
-
u("div",
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
u("span",
|
|
2037
|
-
|
|
2038
|
-
])) :
|
|
2039
|
-
|
|
2104
|
+
default: H(() => [
|
|
2105
|
+
u("div", Cl, [
|
|
2106
|
+
u("div", yl, [
|
|
2107
|
+
U.value?.name ? (c(), m("span", _l, [
|
|
2108
|
+
y[7] || (y[7] = u("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)),
|
|
2109
|
+
u("span", xl, re(U.value.name), 1),
|
|
2110
|
+
y[8] || (y[8] = u("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1))
|
|
2111
|
+
])) : j("", !0),
|
|
2112
|
+
x(a(Ce), {
|
|
2040
2113
|
modelValue: i.value,
|
|
2041
|
-
"onUpdate:modelValue":
|
|
2114
|
+
"onUpdate:modelValue": y[3] || (y[3] = (M) => i.value = M),
|
|
2042
2115
|
"loading-debounce-time": 250,
|
|
2043
2116
|
placeholder: "Filter State...",
|
|
2044
2117
|
class: "flex-1 text-3.5"
|
|
2045
2118
|
}, null, 8, ["modelValue"]),
|
|
2046
|
-
u("div",
|
|
2047
|
-
|
|
2119
|
+
u("div", bl, [
|
|
2120
|
+
q(u("i", {
|
|
2048
2121
|
class: "i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",
|
|
2049
|
-
onClick:
|
|
2122
|
+
onClick: ln
|
|
2050
2123
|
}, null, 512), [
|
|
2051
2124
|
[
|
|
2052
|
-
a(
|
|
2125
|
+
a(Y),
|
|
2053
2126
|
"Scroll to component",
|
|
2054
2127
|
void 0,
|
|
2055
2128
|
{ bottom: !0 }
|
|
2056
2129
|
]
|
|
2057
2130
|
]),
|
|
2058
|
-
|
|
2131
|
+
q(u("i", {
|
|
2059
2132
|
class: "i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",
|
|
2060
|
-
onClick:
|
|
2133
|
+
onClick: gt
|
|
2061
2134
|
}, null, 512), [
|
|
2062
2135
|
[
|
|
2063
|
-
a(
|
|
2136
|
+
a(Y),
|
|
2064
2137
|
"Show render code",
|
|
2065
2138
|
void 0,
|
|
2066
2139
|
{ bottom: !0 }
|
|
2067
2140
|
]
|
|
2068
2141
|
]),
|
|
2069
|
-
a(
|
|
2142
|
+
a(kt) ? q((c(), m("i", {
|
|
2070
2143
|
key: 0,
|
|
2071
2144
|
class: "i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",
|
|
2072
|
-
onClick:
|
|
2145
|
+
onClick: sn
|
|
2073
2146
|
}, null, 512)), [
|
|
2074
2147
|
[
|
|
2075
|
-
a(
|
|
2148
|
+
a(Y),
|
|
2076
2149
|
"Inspect DOM",
|
|
2077
2150
|
void 0,
|
|
2078
2151
|
{ bottom: !0 }
|
|
2079
2152
|
]
|
|
2080
|
-
]) :
|
|
2081
|
-
|
|
2153
|
+
]) : j("", !0),
|
|
2154
|
+
oe.value ? q((c(), m("i", {
|
|
2082
2155
|
key: 1,
|
|
2083
2156
|
class: "i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",
|
|
2084
|
-
onClick:
|
|
2157
|
+
onClick: an
|
|
2085
2158
|
}, null, 512)), [
|
|
2086
2159
|
[
|
|
2087
|
-
a(
|
|
2160
|
+
a(Y),
|
|
2088
2161
|
"Open in Editor",
|
|
2089
2162
|
void 0,
|
|
2090
2163
|
{ bottom: !0 }
|
|
2091
2164
|
]
|
|
2092
|
-
]) :
|
|
2165
|
+
]) : j("", !0)
|
|
2093
2166
|
])
|
|
2094
2167
|
]),
|
|
2095
|
-
|
|
2168
|
+
x(He, {
|
|
2096
2169
|
class: "no-scrollbar flex-1 overflow-scroll",
|
|
2097
|
-
data:
|
|
2098
|
-
"node-id":
|
|
2099
|
-
"inspector-id":
|
|
2170
|
+
data: se.value,
|
|
2171
|
+
"node-id": C.value,
|
|
2172
|
+
"inspector-id": Ae,
|
|
2100
2173
|
"expanded-state-id": "component-state"
|
|
2101
2174
|
}, null, 8, ["data", "node-id"])
|
|
2102
2175
|
]),
|
|
2103
|
-
E.value &&
|
|
2176
|
+
E.value && T.value ? (c(), z(pl, {
|
|
2104
2177
|
key: 0,
|
|
2105
|
-
code:
|
|
2106
|
-
onClose:
|
|
2107
|
-
}, null, 8, ["code"])) :
|
|
2178
|
+
code: T.value,
|
|
2179
|
+
onClose: un
|
|
2180
|
+
}, null, 8, ["code"])) : j("", !0)
|
|
2108
2181
|
]),
|
|
2109
2182
|
_: 1
|
|
2110
2183
|
})
|
|
2111
2184
|
]),
|
|
2112
2185
|
_: 1
|
|
2113
2186
|
}, 8, ["horizontal"]),
|
|
2114
|
-
a(
|
|
2187
|
+
a(kt) ? (c(), z(a(Cn), {
|
|
2115
2188
|
key: 0,
|
|
2116
2189
|
modelValue: h.value,
|
|
2117
|
-
"onUpdate:modelValue":
|
|
2190
|
+
"onUpdate:modelValue": y[5] || (y[5] = (M) => h.value = M),
|
|
2118
2191
|
title: "",
|
|
2119
2192
|
height: "12rem",
|
|
2120
2193
|
closable: !1
|
|
2121
2194
|
}, {
|
|
2122
|
-
footer:
|
|
2123
|
-
u("div",
|
|
2124
|
-
|
|
2125
|
-
default:
|
|
2126
|
-
|
|
2195
|
+
footer: H(() => [
|
|
2196
|
+
u("div", $l, [
|
|
2197
|
+
x(a(fe), { onClick: mt }, {
|
|
2198
|
+
default: H(() => y[11] || (y[11] = [
|
|
2199
|
+
Q(" Cancel ", -1)
|
|
2127
2200
|
])),
|
|
2128
2201
|
_: 1,
|
|
2129
2202
|
__: [11]
|
|
2130
2203
|
})
|
|
2131
2204
|
])
|
|
2132
2205
|
]),
|
|
2133
|
-
default:
|
|
2134
|
-
u("div",
|
|
2135
|
-
u("span",
|
|
2136
|
-
(c(), m("svg",
|
|
2206
|
+
default: H(() => [
|
|
2207
|
+
u("div", wl, [
|
|
2208
|
+
u("span", kl, [
|
|
2209
|
+
(c(), m("svg", Il, y[9] || (y[9] = [
|
|
2137
2210
|
u("g", {
|
|
2138
2211
|
fill: "none",
|
|
2139
2212
|
stroke: "currentColor",
|
|
@@ -2151,16 +2224,16 @@ const ll = { class: "absolute left-0 top-0 h-full w-full flex flex-col rounded-b
|
|
|
2151
2224
|
], -1)
|
|
2152
2225
|
])))
|
|
2153
2226
|
]),
|
|
2154
|
-
|
|
2227
|
+
y[10] || (y[10] = u("p", null, " Click on a component on the page to select it ", -1))
|
|
2155
2228
|
])
|
|
2156
2229
|
]),
|
|
2157
2230
|
_: 1
|
|
2158
|
-
}, 8, ["modelValue"])) :
|
|
2231
|
+
}, 8, ["modelValue"])) : j("", !0)
|
|
2159
2232
|
]));
|
|
2160
2233
|
}
|
|
2161
|
-
}),
|
|
2162
|
-
function
|
|
2163
|
-
return c(), m("div",
|
|
2234
|
+
}), C1 = /* @__PURE__ */ be(Sl, [["__scopeId", "data-v-fbde5eca"]]), Tl = {}, El = { class: "h-screen w-screen $ui-fcc flex-col" };
|
|
2235
|
+
function Vl(t, e) {
|
|
2236
|
+
return c(), m("div", El, [
|
|
2164
2237
|
e[0] || (e[0] = u("div", { class: "outer" }, [
|
|
2165
2238
|
u("div", { class: "inner" }, [
|
|
2166
2239
|
u("i", {
|
|
@@ -2169,111 +2242,111 @@ function kl(n, e) {
|
|
|
2169
2242
|
})
|
|
2170
2243
|
])
|
|
2171
2244
|
], -1)),
|
|
2172
|
-
|
|
2245
|
+
Xe(t.$slots, "default", {}, void 0, !0)
|
|
2173
2246
|
]);
|
|
2174
2247
|
}
|
|
2175
|
-
const
|
|
2176
|
-
function
|
|
2177
|
-
return
|
|
2248
|
+
const Nl = /* @__PURE__ */ be(Tl, [["render", Vl], ["__scopeId", "data-v-b8018f07"]]), Qt = Symbol.for("VueDevToolsCustomInspectorStateSymbol");
|
|
2249
|
+
function xe() {
|
|
2250
|
+
return ge(Qt);
|
|
2178
2251
|
}
|
|
2179
|
-
function
|
|
2180
|
-
const
|
|
2252
|
+
function dt() {
|
|
2253
|
+
const t = N({
|
|
2181
2254
|
homepage: "",
|
|
2182
2255
|
id: "",
|
|
2183
2256
|
label: "",
|
|
2184
2257
|
logo: "",
|
|
2185
2258
|
timelineLayerIds: []
|
|
2186
2259
|
});
|
|
2187
|
-
return
|
|
2260
|
+
return _e(Qt, t), t;
|
|
2188
2261
|
}
|
|
2189
|
-
const
|
|
2262
|
+
const Al = {}, Rl = {
|
|
2190
2263
|
width: "175",
|
|
2191
2264
|
height: "34",
|
|
2192
2265
|
viewBox: "0 0 175 34",
|
|
2193
2266
|
fill: "none",
|
|
2194
2267
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2195
2268
|
};
|
|
2196
|
-
function
|
|
2197
|
-
return c(), m("svg",
|
|
2269
|
+
function Dl(t, e) {
|
|
2270
|
+
return c(), m("svg", Rl, e[0] || (e[0] = [
|
|
2198
2271
|
u("path", {
|
|
2199
2272
|
fill: "currentColor",
|
|
2200
2273
|
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
2274
|
}, null, -1)
|
|
2202
2275
|
]));
|
|
2203
2276
|
}
|
|
2204
|
-
const
|
|
2277
|
+
const Pl = /* @__PURE__ */ be(Al, [["render", Dl]]), Ll = {
|
|
2205
2278
|
"h-full": "",
|
|
2206
2279
|
"w-full": "",
|
|
2207
2280
|
flex: "",
|
|
2208
2281
|
"items-center": ""
|
|
2209
|
-
},
|
|
2282
|
+
}, Ml = {
|
|
2210
2283
|
flex: "~ col gap2",
|
|
2211
2284
|
ma: "",
|
|
2212
2285
|
"px-5": ""
|
|
2213
|
-
},
|
|
2286
|
+
}, Hl = {
|
|
2214
2287
|
flex: "~ col",
|
|
2215
2288
|
"mt-20": "",
|
|
2216
2289
|
"items-center": ""
|
|
2217
|
-
},
|
|
2290
|
+
}, Ol = {
|
|
2218
2291
|
flex: "~",
|
|
2219
2292
|
"mt--10": "",
|
|
2220
2293
|
"items-center": "",
|
|
2221
2294
|
"justify-center": ""
|
|
2222
|
-
},
|
|
2295
|
+
}, Ul = { class: "mr-1" }, jl = {
|
|
2223
2296
|
key: 0,
|
|
2224
2297
|
class: "inline-block w20"
|
|
2225
|
-
},
|
|
2298
|
+
}, zl = ["src", "alt"], Bl = {
|
|
2226
2299
|
key: 1,
|
|
2227
2300
|
class: "mr2 inline-block min-w-20 text-center text-10 font-600"
|
|
2228
|
-
},
|
|
2301
|
+
}, Zl = {
|
|
2229
2302
|
mb6: "",
|
|
2230
2303
|
"mt--1": "",
|
|
2231
2304
|
"text-center": "",
|
|
2232
2305
|
"text-sm": "",
|
|
2233
2306
|
flex: "~ gap-1"
|
|
2234
|
-
},
|
|
2307
|
+
}, Fl = { op40: "" }, Kl = { flex: "~ gap2 wrap" }, Gl = {
|
|
2235
2308
|
flex: "~ gap-6 wrap",
|
|
2236
2309
|
"mt-5": "",
|
|
2237
2310
|
"items-center": "",
|
|
2238
2311
|
"justify-center": ""
|
|
2239
|
-
},
|
|
2312
|
+
}, Wl = ["href"], ql = /* @__PURE__ */ F({
|
|
2240
2313
|
__name: "About",
|
|
2241
|
-
setup(
|
|
2242
|
-
const e =
|
|
2314
|
+
setup(t) {
|
|
2315
|
+
const e = Le(), o = xe(), n = N(!1), l = N(!1);
|
|
2243
2316
|
function s() {
|
|
2244
|
-
|
|
2317
|
+
n.value = !0;
|
|
2245
2318
|
}
|
|
2246
2319
|
function p() {
|
|
2247
|
-
|
|
2320
|
+
n.value = !0, l.value = !0;
|
|
2248
2321
|
}
|
|
2249
|
-
return (r, i) => (c(), m("div",
|
|
2250
|
-
u("div",
|
|
2322
|
+
return (r, i) => (c(), m("div", Ll, [
|
|
2323
|
+
u("div", Ml, [
|
|
2251
2324
|
i[5] || (i[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2252
|
-
u("div",
|
|
2253
|
-
u("div",
|
|
2254
|
-
u("span",
|
|
2255
|
-
|
|
2256
|
-
|
|
2325
|
+
u("div", Hl, [
|
|
2326
|
+
u("div", Ol, [
|
|
2327
|
+
u("span", Ul, [
|
|
2328
|
+
n.value ? j("", !0) : (c(), m("span", jl)),
|
|
2329
|
+
q(u("img", {
|
|
2257
2330
|
src: a(o).logo,
|
|
2258
2331
|
alt: `${a(o).label} Logo`,
|
|
2259
2332
|
class: "inline-block h16",
|
|
2260
2333
|
onError: p,
|
|
2261
2334
|
onLoad: s
|
|
2262
|
-
}, null, 40,
|
|
2263
|
-
[
|
|
2335
|
+
}, null, 40, zl), [
|
|
2336
|
+
[vn, n.value && !l.value]
|
|
2264
2337
|
]),
|
|
2265
|
-
l.value ? (c(), m("span",
|
|
2338
|
+
l.value ? (c(), m("span", Bl, re(a(o).label), 1)) : j("", !0)
|
|
2266
2339
|
]),
|
|
2267
2340
|
u("span", null, [
|
|
2268
|
-
|
|
2341
|
+
x(Pl, { "h-18": "" })
|
|
2269
2342
|
])
|
|
2270
2343
|
]),
|
|
2271
|
-
u("div",
|
|
2272
|
-
u("span",
|
|
2344
|
+
u("div", Zl, [
|
|
2345
|
+
u("span", Fl, re(a(o).label) + " DevTools ", 1)
|
|
2273
2346
|
])
|
|
2274
2347
|
]),
|
|
2275
2348
|
i[6] || (i[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2276
|
-
u("div",
|
|
2349
|
+
u("div", Kl, [
|
|
2277
2350
|
u("div", {
|
|
2278
2351
|
flex: "~ col auto",
|
|
2279
2352
|
"min-w-40": "",
|
|
@@ -2300,9 +2373,9 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2300
2373
|
"text-3xl": ""
|
|
2301
2374
|
}, null, -1),
|
|
2302
2375
|
u("div", null, "Timeline", -1)
|
|
2303
|
-
]))) :
|
|
2376
|
+
]))) : j("", !0)
|
|
2304
2377
|
]),
|
|
2305
|
-
u("div",
|
|
2378
|
+
u("div", Gl, [
|
|
2306
2379
|
u("a", {
|
|
2307
2380
|
href: a(o).homepage,
|
|
2308
2381
|
target: "_blank",
|
|
@@ -2313,17 +2386,17 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2313
2386
|
transition: ""
|
|
2314
2387
|
}, i[4] || (i[4] = [
|
|
2315
2388
|
u("div", { "i-carbon-document": "" }, null, -1),
|
|
2316
|
-
|
|
2317
|
-
]), 8,
|
|
2389
|
+
Q(" View Documentation ", -1)
|
|
2390
|
+
]), 8, Wl)
|
|
2318
2391
|
]),
|
|
2319
2392
|
i[7] || (i[7] = u("div", { "flex-auto": "" }, null, -1))
|
|
2320
2393
|
])
|
|
2321
2394
|
]));
|
|
2322
2395
|
}
|
|
2323
|
-
}),
|
|
2396
|
+
}), 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
2397
|
key: 0,
|
|
2325
2398
|
class: "flex justify-start"
|
|
2326
|
-
},
|
|
2399
|
+
}, es = { key: 1 }, en = /* @__PURE__ */ F({
|
|
2327
2400
|
__name: "Settings",
|
|
2328
2401
|
props: {
|
|
2329
2402
|
pluginId: {},
|
|
@@ -2331,233 +2404,233 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2331
2404
|
values: {}
|
|
2332
2405
|
},
|
|
2333
2406
|
emits: ["update"],
|
|
2334
|
-
setup(
|
|
2335
|
-
const o =
|
|
2407
|
+
setup(t, { emit: e }) {
|
|
2408
|
+
const o = t, n = e, l = S(() => o.options), s = S(() => o.values);
|
|
2336
2409
|
function p(r, i) {
|
|
2337
|
-
|
|
2338
|
-
|
|
2410
|
+
A.value.updatePluginSettings(o.pluginId, r, i), A.value.getPluginSettings(o.pluginId).then((f) => {
|
|
2411
|
+
n("update", f);
|
|
2339
2412
|
});
|
|
2340
2413
|
}
|
|
2341
|
-
return (r, i) => (c(), m("div",
|
|
2414
|
+
return (r, i) => (c(), m("div", Jl, [
|
|
2342
2415
|
u("ul", null, [
|
|
2343
|
-
(c(!0), m(
|
|
2416
|
+
(c(!0), m(le, null, ce(l.value, (f, v) => (c(), m("li", {
|
|
2344
2417
|
key: v,
|
|
2345
2418
|
class: "flex items-center py-2"
|
|
2346
2419
|
}, [
|
|
2347
|
-
u("div",
|
|
2348
|
-
u("div",
|
|
2349
|
-
f.type === "boolean" ? (c(), m("div",
|
|
2350
|
-
|
|
2420
|
+
u("div", Yl, re(f.label), 1),
|
|
2421
|
+
u("div", Xl, [
|
|
2422
|
+
f.type === "boolean" ? (c(), m("div", Ql, [
|
|
2423
|
+
x(a(yn), {
|
|
2351
2424
|
"model-value": s.value[v],
|
|
2352
2425
|
class: "row-reverse flex py1 pl2 pr1 hover:bg-active",
|
|
2353
2426
|
"onUpdate:modelValue": (d) => p(v, d)
|
|
2354
2427
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
2355
|
-
])) : f.type === "choice" ? (c(), m("div",
|
|
2356
|
-
|
|
2428
|
+
])) : f.type === "choice" ? (c(), m("div", es, [
|
|
2429
|
+
x(a(_n), {
|
|
2357
2430
|
"model-value": s.value[v],
|
|
2358
2431
|
options: f.options,
|
|
2359
2432
|
"onUpdate:modelValue": (d) => p(v, d)
|
|
2360
2433
|
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
2361
|
-
])) : f.type === "text" ? (c(), z(a(
|
|
2434
|
+
])) : f.type === "text" ? (c(), z(a(Ce), {
|
|
2362
2435
|
key: 2,
|
|
2363
2436
|
"model-value": s.value[v],
|
|
2364
2437
|
"onUpdate:modelValue": (d) => p(v, d)
|
|
2365
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
2438
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : j("", !0)
|
|
2366
2439
|
])
|
|
2367
2440
|
]))), 128))
|
|
2368
2441
|
])
|
|
2369
2442
|
]));
|
|
2370
2443
|
}
|
|
2371
|
-
}),
|
|
2444
|
+
}), ts = { class: "h-full flex flex-col" }, ns = /* @__PURE__ */ F({
|
|
2372
2445
|
__name: "Settings",
|
|
2373
|
-
setup(
|
|
2374
|
-
const e =
|
|
2446
|
+
setup(t) {
|
|
2447
|
+
const e = ge("pluginSettings"), o = xe(), n = S(() => e.value.options), l = S(() => e.value.values);
|
|
2375
2448
|
function s(p) {
|
|
2376
2449
|
e.value = p;
|
|
2377
2450
|
}
|
|
2378
|
-
return (p, r) => (c(), m("div",
|
|
2379
|
-
|
|
2451
|
+
return (p, r) => (c(), m("div", ts, [
|
|
2452
|
+
x(Te, {
|
|
2380
2453
|
"doc-link": a(o).homepage
|
|
2381
2454
|
}, {
|
|
2382
|
-
default:
|
|
2383
|
-
|
|
2455
|
+
default: H(() => [
|
|
2456
|
+
x(Ee)
|
|
2384
2457
|
]),
|
|
2385
2458
|
_: 1
|
|
2386
2459
|
}, 8, ["doc-link"]),
|
|
2387
|
-
|
|
2460
|
+
x(en, {
|
|
2388
2461
|
"plugin-id": a(o).pluginId,
|
|
2389
|
-
options:
|
|
2462
|
+
options: n.value,
|
|
2390
2463
|
values: l.value,
|
|
2391
2464
|
onUpdate: s
|
|
2392
2465
|
}, null, 8, ["plugin-id", "options", "values"])
|
|
2393
2466
|
]));
|
|
2394
2467
|
}
|
|
2395
|
-
}),
|
|
2468
|
+
}), os = { class: "h-full flex flex-col" }, ls = { class: "h-full flex flex-col p2" }, ss = {
|
|
2396
2469
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2397
2470
|
border: "b dashed base"
|
|
2398
|
-
},
|
|
2471
|
+
}, as = {
|
|
2399
2472
|
key: 0,
|
|
2400
2473
|
class: "flex items-center gap-2 px-1"
|
|
2401
|
-
},
|
|
2474
|
+
}, is = ["onClick"], rs = {
|
|
2402
2475
|
key: 0,
|
|
2403
2476
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
2404
|
-
},
|
|
2477
|
+
}, us = { class: "h-full flex flex-col p2" }, cs = {
|
|
2405
2478
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2406
2479
|
border: "b dashed base"
|
|
2407
|
-
},
|
|
2480
|
+
}, ds = {
|
|
2408
2481
|
key: 0,
|
|
2409
2482
|
class: "flex items-center gap-2 px-1"
|
|
2410
|
-
},
|
|
2483
|
+
}, ps = ["onClick"], fs = /* @__PURE__ */ F({
|
|
2411
2484
|
__name: "Index",
|
|
2412
|
-
setup(
|
|
2413
|
-
const { expanded: e } =
|
|
2414
|
-
|
|
2415
|
-
!g.trim().length && !
|
|
2485
|
+
setup(t) {
|
|
2486
|
+
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("");
|
|
2487
|
+
te($, (g, _) => {
|
|
2488
|
+
!g.trim().length && !_.trim().length || se(g);
|
|
2416
2489
|
});
|
|
2417
|
-
const
|
|
2490
|
+
const L = S(() => tt({
|
|
2418
2491
|
state: h.value,
|
|
2419
|
-
filterKey:
|
|
2492
|
+
filterKey: I.value
|
|
2420
2493
|
}));
|
|
2421
|
-
function V(g,
|
|
2422
|
-
return
|
|
2423
|
-
V(
|
|
2424
|
-
}),
|
|
2494
|
+
function V(g, _ = [], P = []) {
|
|
2495
|
+
return _.push(g.id), g.children?.length === 0 && P.push([..._]), Array.isArray(g.children) && g.children.forEach((Z) => {
|
|
2496
|
+
V(Z, _, P);
|
|
2497
|
+
}), _.pop(), P;
|
|
2425
2498
|
}
|
|
2426
|
-
function
|
|
2499
|
+
function w(g, _) {
|
|
2427
2500
|
const P = [];
|
|
2428
|
-
return g?.forEach((
|
|
2429
|
-
P.push(...
|
|
2501
|
+
return g?.forEach((Z) => {
|
|
2502
|
+
P.push(...Z.slice(0, _ + 1));
|
|
2430
2503
|
}), [...new Set(P)];
|
|
2431
2504
|
}
|
|
2432
2505
|
function D(g) {
|
|
2433
|
-
const
|
|
2434
|
-
|
|
2435
|
-
|
|
2506
|
+
const _ = [], P = (Z) => {
|
|
2507
|
+
Z?.forEach((ae) => {
|
|
2508
|
+
_.push(ae), ae.children?.length && P(ae.children);
|
|
2436
2509
|
});
|
|
2437
2510
|
};
|
|
2438
|
-
return P(g),
|
|
2511
|
+
return P(g), _;
|
|
2439
2512
|
}
|
|
2440
|
-
function
|
|
2441
|
-
|
|
2513
|
+
function B() {
|
|
2514
|
+
A.value.getInspectorNodeActions(l.value).then((g) => {
|
|
2442
2515
|
s.value = g;
|
|
2443
2516
|
});
|
|
2444
2517
|
}
|
|
2445
|
-
function
|
|
2446
|
-
|
|
2518
|
+
function G() {
|
|
2519
|
+
A.value.getInspectorActions(l.value).then((g) => {
|
|
2447
2520
|
p.value = g;
|
|
2448
2521
|
});
|
|
2449
2522
|
}
|
|
2450
|
-
|
|
2451
|
-
function
|
|
2452
|
-
|
|
2523
|
+
B(), G();
|
|
2524
|
+
function W(g) {
|
|
2525
|
+
A.value.callInspectorNodeAction(l.value, g, d.value);
|
|
2453
2526
|
}
|
|
2454
|
-
function
|
|
2455
|
-
|
|
2527
|
+
function O(g) {
|
|
2528
|
+
A.value.callInspectorAction(l.value, g);
|
|
2456
2529
|
}
|
|
2457
|
-
function
|
|
2458
|
-
for (const
|
|
2459
|
-
g[
|
|
2530
|
+
function C(g) {
|
|
2531
|
+
for (const _ in g)
|
|
2532
|
+
g[_]?.length || delete g[_];
|
|
2460
2533
|
return g;
|
|
2461
2534
|
}
|
|
2462
|
-
function
|
|
2463
|
-
|
|
2464
|
-
const P =
|
|
2465
|
-
P && (h.value =
|
|
2535
|
+
function U(g) {
|
|
2536
|
+
A.value.getInspectorState({ inspectorId: l.value, nodeId: g }).then((_) => {
|
|
2537
|
+
const P = ne(_);
|
|
2538
|
+
P && (h.value = C(P), o.value = Array.from({ length: Object.keys(h.value).length }, (Z, ae) => `${ae}`));
|
|
2466
2539
|
});
|
|
2467
2540
|
}
|
|
2468
|
-
function
|
|
2541
|
+
function oe() {
|
|
2469
2542
|
h.value = {};
|
|
2470
2543
|
}
|
|
2471
|
-
|
|
2472
|
-
|
|
2544
|
+
te(d, () => {
|
|
2545
|
+
oe(), U(d.value);
|
|
2473
2546
|
});
|
|
2474
|
-
function
|
|
2475
|
-
|
|
2476
|
-
const P =
|
|
2477
|
-
r.value = P, !d.value && P.length && (d.value = P[0].id, e.value =
|
|
2547
|
+
function se(g = "") {
|
|
2548
|
+
A.value.getInspectorTree({ inspectorId: l.value, filter: g }).then((_) => {
|
|
2549
|
+
const P = ne(_);
|
|
2550
|
+
r.value = P, !d.value && P.length && (d.value = P[0].id, e.value = w(i.value, 1), U(P[0].id));
|
|
2478
2551
|
});
|
|
2479
2552
|
}
|
|
2480
|
-
|
|
2481
|
-
function
|
|
2482
|
-
const
|
|
2483
|
-
!
|
|
2553
|
+
Gt(l).toBeTruthy().then(() => se());
|
|
2554
|
+
function R(g) {
|
|
2555
|
+
const _ = ne(g);
|
|
2556
|
+
!_.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
2557
|
}
|
|
2485
|
-
function
|
|
2486
|
-
const
|
|
2487
|
-
if (
|
|
2558
|
+
function k(g) {
|
|
2559
|
+
const _ = ne(g);
|
|
2560
|
+
if (_.inspectorId !== l.value || !_.state || _.nodeId !== d.value)
|
|
2488
2561
|
return;
|
|
2489
|
-
const { inspectorId: P, ...
|
|
2490
|
-
h.value =
|
|
2491
|
-
}
|
|
2492
|
-
return
|
|
2493
|
-
|
|
2494
|
-
}),
|
|
2495
|
-
|
|
2496
|
-
}), (g,
|
|
2497
|
-
|
|
2498
|
-
"doc-link": a(
|
|
2562
|
+
const { inspectorId: P, ...Z } = _.state;
|
|
2563
|
+
h.value = C(Z);
|
|
2564
|
+
}
|
|
2565
|
+
return De(() => {
|
|
2566
|
+
A.functions.on(X.INSPECTOR_TREE_UPDATED, R), A.functions.on(X.INSPECTOR_STATE_UPDATED, k);
|
|
2567
|
+
}), ke(() => {
|
|
2568
|
+
A.functions.off(X.INSPECTOR_TREE_UPDATED, R), A.functions.off(X.INSPECTOR_STATE_UPDATED, k);
|
|
2569
|
+
}), (g, _) => (c(), m("div", os, [
|
|
2570
|
+
x(Te, {
|
|
2571
|
+
"doc-link": a(n).homepage
|
|
2499
2572
|
}, {
|
|
2500
|
-
default:
|
|
2501
|
-
|
|
2573
|
+
default: H(() => [
|
|
2574
|
+
x(Ee)
|
|
2502
2575
|
]),
|
|
2503
2576
|
_: 1
|
|
2504
2577
|
}, 8, ["doc-link"]),
|
|
2505
|
-
!r.value.length &&
|
|
2506
|
-
default:
|
|
2507
|
-
|
|
2578
|
+
!r.value.length && !$.value.trim().length ? (c(), z($e, { key: 0 }, {
|
|
2579
|
+
default: H(() => _[3] || (_[3] = [
|
|
2580
|
+
Q(" No Data ", -1)
|
|
2508
2581
|
])),
|
|
2509
2582
|
_: 1,
|
|
2510
2583
|
__: [3]
|
|
2511
|
-
})) : (c(), z(a(
|
|
2584
|
+
})) : (c(), z(a(Pe), {
|
|
2512
2585
|
key: 1,
|
|
2513
2586
|
class: "flex-1 overflow-auto"
|
|
2514
2587
|
}, {
|
|
2515
|
-
default:
|
|
2516
|
-
|
|
2588
|
+
default: H(() => [
|
|
2589
|
+
x(a(de), {
|
|
2517
2590
|
border: "r base",
|
|
2518
2591
|
size: "40",
|
|
2519
2592
|
"h-full": ""
|
|
2520
2593
|
}, {
|
|
2521
|
-
default:
|
|
2522
|
-
u("div",
|
|
2523
|
-
u("div",
|
|
2524
|
-
|
|
2525
|
-
modelValue:
|
|
2526
|
-
"onUpdate:modelValue":
|
|
2594
|
+
default: H(() => [
|
|
2595
|
+
u("div", ls, [
|
|
2596
|
+
u("div", ss, [
|
|
2597
|
+
x(a(Ce), {
|
|
2598
|
+
modelValue: $.value,
|
|
2599
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => $.value = P),
|
|
2527
2600
|
placeholder: a(E).treeFilterPlaceholder
|
|
2528
2601
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2529
|
-
p.value?.length ? (c(), m("div",
|
|
2530
|
-
(c(!0), m(
|
|
2531
|
-
key:
|
|
2602
|
+
p.value?.length ? (c(), m("div", as, [
|
|
2603
|
+
(c(!0), m(le, null, ce(p.value, (P, Z) => q((c(), m("div", {
|
|
2604
|
+
key: Z,
|
|
2532
2605
|
class: "flex items-center gap1",
|
|
2533
|
-
onClick: (
|
|
2606
|
+
onClick: (ae) => O(Z)
|
|
2534
2607
|
}, [
|
|
2535
|
-
|
|
2608
|
+
x(a(Ze), {
|
|
2536
2609
|
name: `baseline-${P.icon.replace(/\_/g, "-")}`,
|
|
2537
2610
|
"cursor-pointer": "",
|
|
2538
2611
|
"text-base": "",
|
|
2539
2612
|
op70: "",
|
|
2540
2613
|
"hover:op100": ""
|
|
2541
2614
|
}, null, 8, ["name"])
|
|
2542
|
-
], 8,
|
|
2615
|
+
], 8, is)), [
|
|
2543
2616
|
[
|
|
2544
|
-
a(
|
|
2617
|
+
a(Y),
|
|
2545
2618
|
{ content: P.tooltip },
|
|
2546
2619
|
void 0,
|
|
2547
2620
|
{ "bottom-end": !0 }
|
|
2548
2621
|
]
|
|
2549
2622
|
])), 128))
|
|
2550
|
-
])) :
|
|
2623
|
+
])) : j("", !0)
|
|
2551
2624
|
]),
|
|
2552
|
-
r.value.length ? (c(), m("div",
|
|
2553
|
-
|
|
2625
|
+
r.value.length ? (c(), m("div", rs, [
|
|
2626
|
+
x(Oe, {
|
|
2554
2627
|
modelValue: d.value,
|
|
2555
|
-
"onUpdate:modelValue":
|
|
2628
|
+
"onUpdate:modelValue": _[1] || (_[1] = (P) => d.value = P),
|
|
2556
2629
|
data: r.value
|
|
2557
2630
|
}, null, 8, ["modelValue", "data"])
|
|
2558
|
-
])) : (c(), z(
|
|
2559
|
-
default:
|
|
2560
|
-
|
|
2631
|
+
])) : (c(), z($e, { key: 1 }, {
|
|
2632
|
+
default: H(() => _[4] || (_[4] = [
|
|
2633
|
+
Q(" No Data ", -1)
|
|
2561
2634
|
])),
|
|
2562
2635
|
_: 1,
|
|
2563
2636
|
__: [4]
|
|
@@ -2566,48 +2639,48 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2566
2639
|
]),
|
|
2567
2640
|
_: 1
|
|
2568
2641
|
}),
|
|
2569
|
-
|
|
2570
|
-
default:
|
|
2571
|
-
u("div",
|
|
2572
|
-
u("div",
|
|
2573
|
-
|
|
2574
|
-
modelValue:
|
|
2575
|
-
"onUpdate:modelValue":
|
|
2642
|
+
x(a(de), { size: "60" }, {
|
|
2643
|
+
default: H(() => [
|
|
2644
|
+
u("div", us, [
|
|
2645
|
+
u("div", cs, [
|
|
2646
|
+
x(a(Ce), {
|
|
2647
|
+
modelValue: I.value,
|
|
2648
|
+
"onUpdate:modelValue": _[2] || (_[2] = (P) => I.value = P),
|
|
2576
2649
|
placeholder: a(E).stateFilterPlaceholder
|
|
2577
2650
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2578
|
-
s.value?.length ? (c(), m("div",
|
|
2579
|
-
(c(!0), m(
|
|
2580
|
-
key:
|
|
2651
|
+
s.value?.length ? (c(), m("div", ds, [
|
|
2652
|
+
(c(!0), m(le, null, ce(s.value, (P, Z) => q((c(), m("div", {
|
|
2653
|
+
key: Z,
|
|
2581
2654
|
class: "flex items-center gap1",
|
|
2582
|
-
onClick: (
|
|
2655
|
+
onClick: (ae) => W(Z)
|
|
2583
2656
|
}, [
|
|
2584
|
-
|
|
2657
|
+
x(a(Ze), {
|
|
2585
2658
|
name: `baseline-${P.icon.replace(/\_/g, "-")}`,
|
|
2586
2659
|
"cursor-pointer": "",
|
|
2587
2660
|
"text-base": "",
|
|
2588
2661
|
op70: "",
|
|
2589
2662
|
"hover:op100": ""
|
|
2590
2663
|
}, null, 8, ["name"])
|
|
2591
|
-
], 8,
|
|
2664
|
+
], 8, ps)), [
|
|
2592
2665
|
[
|
|
2593
|
-
a(
|
|
2666
|
+
a(Y),
|
|
2594
2667
|
{ content: P.tooltip },
|
|
2595
2668
|
void 0,
|
|
2596
2669
|
{ "bottom-end": !0 }
|
|
2597
2670
|
]
|
|
2598
2671
|
])), 128))
|
|
2599
|
-
])) :
|
|
2672
|
+
])) : j("", !0)
|
|
2600
2673
|
]),
|
|
2601
|
-
d.value &&
|
|
2674
|
+
d.value && !T.value ? (c(), z(He, {
|
|
2602
2675
|
key: 0,
|
|
2603
|
-
data:
|
|
2676
|
+
data: L.value,
|
|
2604
2677
|
"node-id": d.value,
|
|
2605
2678
|
"inspector-id": l.value,
|
|
2606
2679
|
"expanded-state-id": "custom-inspector-state",
|
|
2607
2680
|
class: "no-scrollbar flex-1 overflow-scroll"
|
|
2608
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z(
|
|
2609
|
-
default:
|
|
2610
|
-
|
|
2681
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
|
|
2682
|
+
default: H(() => _[5] || (_[5] = [
|
|
2683
|
+
Q(" No Data ", -1)
|
|
2611
2684
|
])),
|
|
2612
2685
|
_: 1,
|
|
2613
2686
|
__: [5]
|
|
@@ -2621,61 +2694,61 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2621
2694
|
}))
|
|
2622
2695
|
]));
|
|
2623
2696
|
}
|
|
2624
|
-
}),
|
|
2697
|
+
}), vs = /* @__PURE__ */ F({
|
|
2625
2698
|
__name: "Index",
|
|
2626
|
-
setup(
|
|
2627
|
-
const e =
|
|
2628
|
-
return (o,
|
|
2699
|
+
setup(t) {
|
|
2700
|
+
const e = xe();
|
|
2701
|
+
return (o, n) => (c(), z(ct, {
|
|
2629
2702
|
"layer-ids": a(e).timelineLayerIds,
|
|
2630
2703
|
"doc-link": a(e).homepage,
|
|
2631
2704
|
"plugin-id": a(e).pluginId
|
|
2632
2705
|
}, null, 8, ["layer-ids", "doc-link", "plugin-id"]));
|
|
2633
2706
|
}
|
|
2634
|
-
}),
|
|
2707
|
+
}), ms = {
|
|
2635
2708
|
"h-full": "",
|
|
2636
2709
|
"w-full": ""
|
|
2637
|
-
},
|
|
2710
|
+
}, hs = { key: 0 }, y1 = /* @__PURE__ */ F({
|
|
2638
2711
|
__name: "index",
|
|
2639
2712
|
props: {
|
|
2640
2713
|
id: {},
|
|
2641
2714
|
pluginId: {}
|
|
2642
2715
|
},
|
|
2643
2716
|
emits: ["loadError"],
|
|
2644
|
-
setup(
|
|
2645
|
-
const o =
|
|
2646
|
-
|
|
2647
|
-
const r =
|
|
2717
|
+
setup(t, { emit: e }) {
|
|
2718
|
+
const o = t, n = e, l = dt(), s = N(!1), p = N(null);
|
|
2719
|
+
_e("pluginSettings", p);
|
|
2720
|
+
const r = S(() => [
|
|
2648
2721
|
{
|
|
2649
2722
|
path: "/state",
|
|
2650
2723
|
name: "State",
|
|
2651
|
-
component:
|
|
2724
|
+
component: fs,
|
|
2652
2725
|
icon: "i-carbon-tree-view-alt"
|
|
2653
2726
|
},
|
|
2654
2727
|
l.value.timelineLayerIds?.length && {
|
|
2655
2728
|
path: "/timeline",
|
|
2656
2729
|
name: "Timeline",
|
|
2657
|
-
component:
|
|
2730
|
+
component: vs,
|
|
2658
2731
|
icon: "i-mdi:timeline-clock-outline"
|
|
2659
2732
|
},
|
|
2660
2733
|
{
|
|
2661
2734
|
path: "/about",
|
|
2662
2735
|
name: "About",
|
|
2663
|
-
component:
|
|
2736
|
+
component: ql
|
|
2664
2737
|
},
|
|
2665
2738
|
p.value && {
|
|
2666
2739
|
path: "/settings",
|
|
2667
2740
|
name: "Settings",
|
|
2668
|
-
component:
|
|
2741
|
+
component: ns,
|
|
2669
2742
|
icon: "i-mdi:cog-outline"
|
|
2670
2743
|
}
|
|
2671
|
-
].filter(Boolean)), { VirtualRouterView: i, restoreRouter: f } =
|
|
2744
|
+
].filter(Boolean)), { VirtualRouterView: i, restoreRouter: f } = ot(r, {
|
|
2672
2745
|
defaultRoutePath: "/state"
|
|
2673
2746
|
});
|
|
2674
2747
|
function v() {
|
|
2675
|
-
s.value = !0,
|
|
2676
|
-
|
|
2748
|
+
s.value = !0, De(() => {
|
|
2749
|
+
A.value.getInspectorInfo(o.id).then((d) => {
|
|
2677
2750
|
if (!d) {
|
|
2678
|
-
|
|
2751
|
+
n("loadError");
|
|
2679
2752
|
return;
|
|
2680
2753
|
}
|
|
2681
2754
|
const h = {
|
|
@@ -2683,69 +2756,69 @@ const El = /* @__PURE__ */ xe($l, [["render", Tl]]), Vl = {
|
|
|
2683
2756
|
id: d?.id,
|
|
2684
2757
|
label: d?.label,
|
|
2685
2758
|
logo: d?.logo,
|
|
2686
|
-
timelineLayerIds: d?.timelineLayers.map((
|
|
2759
|
+
timelineLayerIds: d?.timelineLayers.map((T) => T.id),
|
|
2687
2760
|
pluginId: o.pluginId,
|
|
2688
2761
|
treeFilterPlaceholder: d.treeFilterPlaceholder,
|
|
2689
2762
|
stateFilterPlaceholder: d.stateFilterPlaceholder
|
|
2690
2763
|
};
|
|
2691
2764
|
l.value = h, f(), s.value = !1;
|
|
2692
|
-
}),
|
|
2765
|
+
}), A.value.getPluginSettings(o.pluginId).then((d) => {
|
|
2693
2766
|
d.options ? p.value = d : p.value = null;
|
|
2694
2767
|
});
|
|
2695
2768
|
});
|
|
2696
2769
|
}
|
|
2697
|
-
return
|
|
2770
|
+
return te(() => o.id, () => {
|
|
2698
2771
|
v();
|
|
2699
2772
|
}, {
|
|
2700
2773
|
immediate: !0
|
|
2701
|
-
}),
|
|
2702
|
-
|
|
2703
|
-
}), (d, h) => (c(), m("div",
|
|
2704
|
-
s.value ? (c(), m("div",
|
|
2705
|
-
|
|
2774
|
+
}), ke(() => {
|
|
2775
|
+
A.value.unhighlight();
|
|
2776
|
+
}), (d, h) => (c(), m("div", ms, [
|
|
2777
|
+
s.value ? (c(), m("div", hs, [
|
|
2778
|
+
x(Nl)
|
|
2706
2779
|
])) : (c(), z(a(i), { key: 1 }))
|
|
2707
2780
|
]));
|
|
2708
2781
|
}
|
|
2709
|
-
}),
|
|
2782
|
+
}), gs = {}, Cs = {
|
|
2710
2783
|
viewBox: "0 0 566 154",
|
|
2711
2784
|
fill: "none",
|
|
2712
2785
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2713
2786
|
};
|
|
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)
|
|
2787
|
+
function ys(t, e) {
|
|
2788
|
+
return c(), m("svg", Cs, e[0] || (e[0] = [
|
|
2789
|
+
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)
|
|
2717
2790
|
]));
|
|
2718
2791
|
}
|
|
2719
|
-
const
|
|
2792
|
+
const _s = /* @__PURE__ */ be(gs, [["render", ys]]), xs = {
|
|
2720
2793
|
"h-full": "",
|
|
2721
2794
|
"w-full": "",
|
|
2722
2795
|
flex: "",
|
|
2723
2796
|
"items-center": ""
|
|
2724
|
-
},
|
|
2797
|
+
}, bs = {
|
|
2725
2798
|
flex: "~ col gap2",
|
|
2726
2799
|
ma: "",
|
|
2727
2800
|
"px-5": ""
|
|
2728
|
-
},
|
|
2801
|
+
}, ws = {
|
|
2729
2802
|
flex: "~ col",
|
|
2730
2803
|
"mt-20": "",
|
|
2731
2804
|
"items-center": ""
|
|
2732
|
-
},
|
|
2805
|
+
}, ks = {
|
|
2733
2806
|
flex: "~",
|
|
2734
2807
|
"mt--10": "",
|
|
2735
2808
|
"items-center": "",
|
|
2736
2809
|
"justify-center": ""
|
|
2737
|
-
},
|
|
2810
|
+
}, Is = { flex: "~ gap2 wrap" }, $s = /* @__PURE__ */ F({
|
|
2738
2811
|
__name: "About",
|
|
2739
|
-
setup(
|
|
2740
|
-
const e =
|
|
2741
|
-
return (o,
|
|
2742
|
-
u("div",
|
|
2743
|
-
|
|
2744
|
-
u("div",
|
|
2745
|
-
u("div",
|
|
2746
|
-
|
|
2812
|
+
setup(t) {
|
|
2813
|
+
const e = Le();
|
|
2814
|
+
return (o, n) => (c(), m("div", xs, [
|
|
2815
|
+
u("div", bs, [
|
|
2816
|
+
n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2817
|
+
u("div", ws, [
|
|
2818
|
+
u("div", ks, [
|
|
2819
|
+
x(_s, { "h-18": "" })
|
|
2747
2820
|
]),
|
|
2748
|
-
|
|
2821
|
+
n[2] || (n[2] = u("div", {
|
|
2749
2822
|
mb6: "",
|
|
2750
2823
|
"mt--1": "",
|
|
2751
2824
|
"text-center": "",
|
|
@@ -2755,15 +2828,15 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
2755
2828
|
u("span", { op40: "" }, " Pinia DevTools ")
|
|
2756
2829
|
], -1))
|
|
2757
2830
|
]),
|
|
2758
|
-
|
|
2759
|
-
u("div",
|
|
2831
|
+
n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
2832
|
+
u("div", Is, [
|
|
2760
2833
|
u("div", {
|
|
2761
2834
|
flex: "~ col auto",
|
|
2762
2835
|
"min-w-40": "",
|
|
2763
2836
|
"theme-card-lime": "",
|
|
2764
2837
|
p4: "",
|
|
2765
|
-
onClick:
|
|
2766
|
-
},
|
|
2838
|
+
onClick: n[0] || (n[0] = (l) => a(e).push("/store"))
|
|
2839
|
+
}, n[3] || (n[3] = [
|
|
2767
2840
|
u("div", {
|
|
2768
2841
|
"i-carbon-tree-view-alt": "",
|
|
2769
2842
|
"text-3xl": ""
|
|
@@ -2775,8 +2848,8 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
2775
2848
|
"min-w-40": "",
|
|
2776
2849
|
"theme-card-lime": "",
|
|
2777
2850
|
p4: "",
|
|
2778
|
-
onClick:
|
|
2779
|
-
},
|
|
2851
|
+
onClick: n[1] || (n[1] = (l) => a(e).push("/timeline"))
|
|
2852
|
+
}, n[4] || (n[4] = [
|
|
2780
2853
|
u("div", {
|
|
2781
2854
|
"i-mdi:timeline-clock-outline": "",
|
|
2782
2855
|
"text-3xl": ""
|
|
@@ -2784,7 +2857,7 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
2784
2857
|
u("div", null, "Timeline", -1)
|
|
2785
2858
|
]))
|
|
2786
2859
|
]),
|
|
2787
|
-
|
|
2860
|
+
n[7] || (n[7] = u("div", {
|
|
2788
2861
|
flex: "~ gap-6 wrap",
|
|
2789
2862
|
"mt-5": "",
|
|
2790
2863
|
"items-center": "",
|
|
@@ -2800,7 +2873,7 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
2800
2873
|
transition: ""
|
|
2801
2874
|
}, [
|
|
2802
2875
|
u("div", { "i-carbon-star": "" }),
|
|
2803
|
-
|
|
2876
|
+
Q(" Star on GitHub ")
|
|
2804
2877
|
]),
|
|
2805
2878
|
u("a", {
|
|
2806
2879
|
href: "https://pinia.vuejs.org/",
|
|
@@ -2812,189 +2885,189 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
2812
2885
|
transition: ""
|
|
2813
2886
|
}, [
|
|
2814
2887
|
u("div", { "i-carbon-document": "" }),
|
|
2815
|
-
|
|
2888
|
+
Q(" View Documentation ")
|
|
2816
2889
|
])
|
|
2817
2890
|
], -1)),
|
|
2818
|
-
|
|
2891
|
+
n[8] || (n[8] = u("div", { "flex-auto": "" }, null, -1))
|
|
2819
2892
|
])
|
|
2820
2893
|
]));
|
|
2821
2894
|
}
|
|
2822
|
-
}),
|
|
2895
|
+
}), Ss = { class: "h-full flex flex-col" }, Ts = /* @__PURE__ */ F({
|
|
2823
2896
|
__name: "Settings",
|
|
2824
|
-
setup(
|
|
2825
|
-
const e =
|
|
2897
|
+
setup(t) {
|
|
2898
|
+
const e = ge("pluginSettings"), o = S(() => e.value.options), n = S(() => e.value.values);
|
|
2826
2899
|
function l(s) {
|
|
2827
2900
|
e.value = s;
|
|
2828
2901
|
}
|
|
2829
|
-
return (s, p) => (c(), m("div",
|
|
2830
|
-
|
|
2902
|
+
return (s, p) => (c(), m("div", Ss, [
|
|
2903
|
+
x(Te, {
|
|
2831
2904
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2832
2905
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2833
2906
|
}, {
|
|
2834
|
-
default:
|
|
2835
|
-
|
|
2907
|
+
default: H(() => [
|
|
2908
|
+
x(Ee)
|
|
2836
2909
|
]),
|
|
2837
2910
|
_: 1
|
|
2838
2911
|
}),
|
|
2839
|
-
|
|
2912
|
+
x(en, {
|
|
2840
2913
|
"plugin-id": "dev.esm.pinia",
|
|
2841
2914
|
options: o.value,
|
|
2842
|
-
values:
|
|
2915
|
+
values: n.value,
|
|
2843
2916
|
onUpdate: l
|
|
2844
2917
|
}, null, 8, ["options", "values"])
|
|
2845
2918
|
]));
|
|
2846
2919
|
}
|
|
2847
|
-
}),
|
|
2920
|
+
}), Es = "dev.esm.pinia", tn = "pinia", Vs = { class: "h-full flex flex-col" }, Ns = { class: "h-full flex flex-col p2" }, As = {
|
|
2848
2921
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2849
2922
|
border: "b dashed base"
|
|
2850
|
-
},
|
|
2923
|
+
}, Rs = {
|
|
2851
2924
|
key: 0,
|
|
2852
2925
|
class: "flex items-center gap-2 px-1"
|
|
2853
|
-
},
|
|
2926
|
+
}, Ds = ["onClick"], Ps = { class: "no-scrollbar flex-1 select-none overflow-scroll" }, Ls = { class: "h-full flex flex-col p2" }, Ms = {
|
|
2854
2927
|
class: "grid grid-cols-[1fr_auto] mb1 items-center gap2 pb1",
|
|
2855
2928
|
border: "b dashed base"
|
|
2856
|
-
},
|
|
2929
|
+
}, Hs = {
|
|
2857
2930
|
key: 0,
|
|
2858
2931
|
class: "flex items-center gap-2 px-1"
|
|
2859
|
-
},
|
|
2932
|
+
}, Os = ["onClick"], Us = /* @__PURE__ */ F({
|
|
2860
2933
|
__name: "Index",
|
|
2861
|
-
setup(
|
|
2862
|
-
const { expanded: e } =
|
|
2863
|
-
|
|
2864
|
-
!
|
|
2934
|
+
setup(t) {
|
|
2935
|
+
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("");
|
|
2936
|
+
te(T, (k, g) => {
|
|
2937
|
+
!k.trim().length && !g.trim().length || oe(k);
|
|
2865
2938
|
});
|
|
2866
|
-
const
|
|
2939
|
+
const $ = S(() => tt({
|
|
2867
2940
|
state: h.value,
|
|
2868
2941
|
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(
|
|
2942
|
+
})), I = S(() => !h.value.state?.length && !h.value.getters?.length);
|
|
2943
|
+
function L(k, g = [], _ = []) {
|
|
2944
|
+
return g.push(k.id), k.children?.length === 0 && _.push([...g]), Array.isArray(k.children) && k.children.forEach((P) => {
|
|
2945
|
+
L(P, g, _);
|
|
2946
|
+
}), g.pop(), _;
|
|
2947
|
+
}
|
|
2948
|
+
function V(k, g) {
|
|
2949
|
+
const _ = [];
|
|
2950
|
+
return k?.forEach((P) => {
|
|
2951
|
+
_.push(...P.slice(0, g + 1));
|
|
2952
|
+
}), [...new Set(_)];
|
|
2953
|
+
}
|
|
2954
|
+
function w(k) {
|
|
2955
|
+
const g = [], _ = (P) => {
|
|
2956
|
+
P?.forEach((Z) => {
|
|
2957
|
+
g.push(Z), Z.children?.length && _(Z.children);
|
|
2885
2958
|
});
|
|
2886
2959
|
};
|
|
2887
|
-
return
|
|
2960
|
+
return _(k), g;
|
|
2888
2961
|
}
|
|
2889
2962
|
function D() {
|
|
2890
|
-
|
|
2891
|
-
l.value =
|
|
2963
|
+
A.value.getInspectorNodeActions(n).then((k) => {
|
|
2964
|
+
l.value = k;
|
|
2892
2965
|
});
|
|
2893
2966
|
}
|
|
2894
|
-
function
|
|
2895
|
-
|
|
2896
|
-
s.value =
|
|
2967
|
+
function B() {
|
|
2968
|
+
A.value.getInspectorActions(n).then((k) => {
|
|
2969
|
+
s.value = k;
|
|
2897
2970
|
});
|
|
2898
2971
|
}
|
|
2899
|
-
D(),
|
|
2900
|
-
function
|
|
2901
|
-
|
|
2972
|
+
D(), B();
|
|
2973
|
+
function G(k) {
|
|
2974
|
+
A.value.callInspectorNodeAction(n, k, r.value);
|
|
2902
2975
|
}
|
|
2903
|
-
function
|
|
2904
|
-
|
|
2976
|
+
function W(k) {
|
|
2977
|
+
A.value.callInspectorAction(n, k);
|
|
2905
2978
|
}
|
|
2906
|
-
function
|
|
2907
|
-
for (const g in
|
|
2908
|
-
|
|
2909
|
-
return
|
|
2979
|
+
function O(k) {
|
|
2980
|
+
for (const g in k)
|
|
2981
|
+
k[g]?.length || delete k[g];
|
|
2982
|
+
return k;
|
|
2910
2983
|
}
|
|
2911
|
-
function
|
|
2912
|
-
|
|
2913
|
-
const
|
|
2914
|
-
|
|
2984
|
+
function C(k) {
|
|
2985
|
+
A.value.getInspectorState({ inspectorId: n, nodeId: k }).then((g) => {
|
|
2986
|
+
const _ = ne(g);
|
|
2987
|
+
_ && (h.value = O(_), o.value = Array.from({ length: Object.keys(h.value).length }, (P, Z) => `${Z}`));
|
|
2915
2988
|
});
|
|
2916
2989
|
}
|
|
2917
|
-
function
|
|
2990
|
+
function U() {
|
|
2918
2991
|
h.value = {};
|
|
2919
2992
|
}
|
|
2920
|
-
|
|
2921
|
-
|
|
2993
|
+
te(r, () => {
|
|
2994
|
+
U(), C(r.value);
|
|
2922
2995
|
});
|
|
2923
|
-
function
|
|
2924
|
-
|
|
2925
|
-
const
|
|
2926
|
-
i.value =
|
|
2996
|
+
function oe(k = "") {
|
|
2997
|
+
A.value.getInspectorTree({ inspectorId: n, filter: k }).then((g) => {
|
|
2998
|
+
const _ = ne(g);
|
|
2999
|
+
i.value = _, !r.value && _.length && (r.value = _[0].id, C(_[0].id), e.value = V(f.value, 1));
|
|
2927
3000
|
});
|
|
2928
3001
|
}
|
|
2929
|
-
|
|
2930
|
-
function
|
|
2931
|
-
const g =
|
|
2932
|
-
g.inspectorId !==
|
|
3002
|
+
oe();
|
|
3003
|
+
function se(k) {
|
|
3004
|
+
const g = ne(k);
|
|
3005
|
+
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
3006
|
}
|
|
2934
|
-
function
|
|
2935
|
-
const g =
|
|
2936
|
-
if (g.inspectorId !==
|
|
3007
|
+
function R(k) {
|
|
3008
|
+
const g = ne(k);
|
|
3009
|
+
if (g.inspectorId !== n)
|
|
2937
3010
|
return;
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2940
|
-
state:
|
|
2941
|
-
getters:
|
|
3011
|
+
const _ = g.state;
|
|
3012
|
+
_ && (h.value = O({
|
|
3013
|
+
state: _.state,
|
|
3014
|
+
getters: _.getters
|
|
2942
3015
|
}));
|
|
2943
3016
|
}
|
|
2944
|
-
return
|
|
2945
|
-
|
|
2946
|
-
}), (
|
|
2947
|
-
|
|
3017
|
+
return A.functions.on(X.INSPECTOR_TREE_UPDATED, se), A.functions.on(X.INSPECTOR_STATE_UPDATED, R), ke(() => {
|
|
3018
|
+
A.functions.off(X.INSPECTOR_TREE_UPDATED, se), A.functions.off(X.INSPECTOR_STATE_UPDATED, R);
|
|
3019
|
+
}), (k, g) => (c(), m("div", Vs, [
|
|
3020
|
+
x(Te, {
|
|
2948
3021
|
"doc-link": "https://pinia.vuejs.org/",
|
|
2949
3022
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
2950
3023
|
}, {
|
|
2951
|
-
default:
|
|
2952
|
-
|
|
3024
|
+
default: H(() => [
|
|
3025
|
+
x(Ee)
|
|
2953
3026
|
]),
|
|
2954
3027
|
_: 1
|
|
2955
3028
|
}),
|
|
2956
|
-
|
|
2957
|
-
default:
|
|
2958
|
-
|
|
3029
|
+
x(a(Pe), { class: "flex-1 overflow-auto" }, {
|
|
3030
|
+
default: H(() => [
|
|
3031
|
+
x(a(de), {
|
|
2959
3032
|
border: "r base",
|
|
2960
3033
|
size: "40",
|
|
2961
3034
|
"h-full": ""
|
|
2962
3035
|
}, {
|
|
2963
|
-
default:
|
|
2964
|
-
u("div",
|
|
2965
|
-
u("div",
|
|
2966
|
-
|
|
2967
|
-
modelValue:
|
|
2968
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3036
|
+
default: H(() => [
|
|
3037
|
+
u("div", Ns, [
|
|
3038
|
+
u("div", As, [
|
|
3039
|
+
x(a(Ce), {
|
|
3040
|
+
modelValue: T.value,
|
|
3041
|
+
"onUpdate:modelValue": g[0] || (g[0] = (_) => T.value = _),
|
|
2969
3042
|
placeholder: a(p).treeFilterPlaceholder
|
|
2970
3043
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
2971
|
-
s.value?.length ? (c(), m("div",
|
|
2972
|
-
(c(!0), m(
|
|
3044
|
+
s.value?.length ? (c(), m("div", Rs, [
|
|
3045
|
+
(c(!0), m(le, null, ce(s.value, (_, P) => q((c(), m("div", {
|
|
2973
3046
|
key: P,
|
|
2974
3047
|
class: "flex items-center gap1",
|
|
2975
|
-
onClick: (
|
|
3048
|
+
onClick: (Z) => W(P)
|
|
2976
3049
|
}, [
|
|
2977
3050
|
u("i", {
|
|
2978
|
-
class:
|
|
3051
|
+
class: ie(`i-ic-baseline-${_.icon.replace(/\_/g, "-")}`),
|
|
2979
3052
|
"cursor-pointer": "",
|
|
2980
3053
|
"text-base": "",
|
|
2981
3054
|
op70: "",
|
|
2982
3055
|
"hover:op100": ""
|
|
2983
3056
|
}, null, 2)
|
|
2984
|
-
], 8,
|
|
3057
|
+
], 8, Ds)), [
|
|
2985
3058
|
[
|
|
2986
|
-
a(
|
|
2987
|
-
{ content:
|
|
3059
|
+
a(Y),
|
|
3060
|
+
{ content: _.tooltip },
|
|
2988
3061
|
void 0,
|
|
2989
3062
|
{ "bottom-end": !0 }
|
|
2990
3063
|
]
|
|
2991
3064
|
])), 128))
|
|
2992
|
-
])) :
|
|
3065
|
+
])) : j("", !0)
|
|
2993
3066
|
]),
|
|
2994
|
-
u("div",
|
|
2995
|
-
|
|
3067
|
+
u("div", Ps, [
|
|
3068
|
+
x(Oe, {
|
|
2996
3069
|
modelValue: r.value,
|
|
2997
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
3070
|
+
"onUpdate:modelValue": g[1] || (g[1] = (_) => r.value = _),
|
|
2998
3071
|
data: i.value
|
|
2999
3072
|
}, null, 8, ["modelValue", "data"])
|
|
3000
3073
|
])
|
|
@@ -3002,48 +3075,48 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
3002
3075
|
]),
|
|
3003
3076
|
_: 1
|
|
3004
3077
|
}),
|
|
3005
|
-
|
|
3006
|
-
default:
|
|
3007
|
-
u("div",
|
|
3008
|
-
u("div",
|
|
3009
|
-
|
|
3078
|
+
x(a(de), { size: "60" }, {
|
|
3079
|
+
default: H(() => [
|
|
3080
|
+
u("div", Ls, [
|
|
3081
|
+
u("div", Ms, [
|
|
3082
|
+
x(a(Ce), {
|
|
3010
3083
|
modelValue: E.value,
|
|
3011
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
3084
|
+
"onUpdate:modelValue": g[2] || (g[2] = (_) => E.value = _),
|
|
3012
3085
|
placeholder: a(p).stateFilterPlaceholder
|
|
3013
3086
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
3014
|
-
l.value?.length ? (c(), m("div",
|
|
3015
|
-
(c(!0), m(
|
|
3087
|
+
l.value?.length ? (c(), m("div", Hs, [
|
|
3088
|
+
(c(!0), m(le, null, ce(l.value, (_, P) => q((c(), m("div", {
|
|
3016
3089
|
key: P,
|
|
3017
3090
|
class: "flex items-center gap1",
|
|
3018
|
-
onClick: (
|
|
3091
|
+
onClick: (Z) => G(P)
|
|
3019
3092
|
}, [
|
|
3020
3093
|
u("i", {
|
|
3021
|
-
class:
|
|
3094
|
+
class: ie(`i-ic-baseline-${_.icon.replace(/\_/g, "-")}`),
|
|
3022
3095
|
"cursor-pointer": "",
|
|
3023
3096
|
"text-base": "",
|
|
3024
3097
|
op70: "",
|
|
3025
3098
|
"hover:op100": ""
|
|
3026
3099
|
}, null, 2)
|
|
3027
|
-
], 8,
|
|
3100
|
+
], 8, Os)), [
|
|
3028
3101
|
[
|
|
3029
|
-
a(
|
|
3030
|
-
{ content:
|
|
3102
|
+
a(Y),
|
|
3103
|
+
{ content: _.tooltip },
|
|
3031
3104
|
void 0,
|
|
3032
3105
|
{ "bottom-end": !0 }
|
|
3033
3106
|
]
|
|
3034
3107
|
])), 128))
|
|
3035
|
-
])) :
|
|
3108
|
+
])) : j("", !0)
|
|
3036
3109
|
]),
|
|
3037
|
-
r.value && !
|
|
3110
|
+
r.value && !I.value ? (c(), z(He, {
|
|
3038
3111
|
key: 0,
|
|
3039
3112
|
class: "no-scrollbar flex-1 overflow-scroll",
|
|
3040
|
-
data:
|
|
3113
|
+
data: $.value,
|
|
3041
3114
|
"node-id": r.value,
|
|
3042
|
-
"inspector-id": a(
|
|
3115
|
+
"inspector-id": a(n),
|
|
3043
3116
|
"expanded-state-id": "pinia-store-state"
|
|
3044
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z(
|
|
3045
|
-
default:
|
|
3046
|
-
|
|
3117
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (c(), z($e, { key: 1 }, {
|
|
3118
|
+
default: H(() => g[3] || (g[3] = [
|
|
3119
|
+
Q(" No Data ", -1)
|
|
3047
3120
|
])),
|
|
3048
3121
|
_: 1,
|
|
3049
3122
|
__: [3]
|
|
@@ -3057,73 +3130,73 @@ const v1 = /* @__PURE__ */ xe(d1, [["render", f1]]), m1 = {
|
|
|
3057
3130
|
})
|
|
3058
3131
|
]));
|
|
3059
3132
|
}
|
|
3060
|
-
}),
|
|
3133
|
+
}), js = "dev.esm.pinia", zs = /* @__PURE__ */ F({
|
|
3061
3134
|
__name: "Index",
|
|
3062
|
-
setup(
|
|
3135
|
+
setup(t) {
|
|
3063
3136
|
const e = ["pinia:mutations"];
|
|
3064
|
-
return (o,
|
|
3137
|
+
return (o, n) => (c(), z(ct, {
|
|
3065
3138
|
"layer-ids": e,
|
|
3066
3139
|
"doc-link": "https://pinia.vuejs.org/",
|
|
3067
|
-
"plugin-id":
|
|
3140
|
+
"plugin-id": js,
|
|
3068
3141
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
3069
3142
|
}));
|
|
3070
3143
|
}
|
|
3071
|
-
}),
|
|
3144
|
+
}), Bs = {
|
|
3072
3145
|
"h-full": "",
|
|
3073
3146
|
"w-full": ""
|
|
3074
|
-
},
|
|
3147
|
+
}, _1 = /* @__PURE__ */ F({
|
|
3075
3148
|
__name: "index",
|
|
3076
|
-
setup(
|
|
3149
|
+
setup(t) {
|
|
3077
3150
|
const e = N(null);
|
|
3078
|
-
|
|
3079
|
-
const o =
|
|
3151
|
+
_e("pluginSettings", e);
|
|
3152
|
+
const o = S(() => [
|
|
3080
3153
|
{
|
|
3081
3154
|
path: "/store",
|
|
3082
3155
|
name: "Store",
|
|
3083
|
-
component:
|
|
3156
|
+
component: Us,
|
|
3084
3157
|
icon: "i-carbon-tree-view-alt"
|
|
3085
3158
|
},
|
|
3086
3159
|
{
|
|
3087
3160
|
path: "/timeline",
|
|
3088
3161
|
name: "Timeline",
|
|
3089
|
-
component:
|
|
3162
|
+
component: zs,
|
|
3090
3163
|
icon: "i-mdi:timeline-clock-outline"
|
|
3091
3164
|
},
|
|
3092
3165
|
{
|
|
3093
3166
|
path: "/",
|
|
3094
3167
|
name: "About",
|
|
3095
|
-
component:
|
|
3168
|
+
component: $s,
|
|
3096
3169
|
icon: "i-logos-pinia"
|
|
3097
3170
|
},
|
|
3098
3171
|
e.value && {
|
|
3099
3172
|
path: "/settings",
|
|
3100
3173
|
name: "Settings",
|
|
3101
|
-
component:
|
|
3174
|
+
component: Ts,
|
|
3102
3175
|
icon: "i-mdi:cog-outline"
|
|
3103
3176
|
}
|
|
3104
|
-
].filter(Boolean)), { VirtualRouterView:
|
|
3177
|
+
].filter(Boolean)), { VirtualRouterView: n } = ot(o, {
|
|
3105
3178
|
defaultRoutePath: "/store"
|
|
3106
|
-
}), l =
|
|
3107
|
-
return
|
|
3108
|
-
|
|
3179
|
+
}), l = dt();
|
|
3180
|
+
return De(() => {
|
|
3181
|
+
A.value.getPluginSettings(Es).then((s) => {
|
|
3109
3182
|
s.options ? e.value = s : e.value = null;
|
|
3110
|
-
}),
|
|
3183
|
+
}), A.value.getInspectorInfo(tn).then((s) => {
|
|
3111
3184
|
s && (l.value = {
|
|
3112
3185
|
stateFilterPlaceholder: s.stateFilterPlaceholder,
|
|
3113
3186
|
treeFilterPlaceholder: s.treeFilterPlaceholder
|
|
3114
3187
|
});
|
|
3115
3188
|
});
|
|
3116
|
-
}), (s, p) => (c(), m("div",
|
|
3117
|
-
|
|
3189
|
+
}), (s, p) => (c(), m("div", Bs, [
|
|
3190
|
+
x(a(n))
|
|
3118
3191
|
]));
|
|
3119
3192
|
}
|
|
3120
|
-
}),
|
|
3193
|
+
}), Zs = {}, Fs = {
|
|
3121
3194
|
viewBox: "0 0 566 154",
|
|
3122
3195
|
fill: "none",
|
|
3123
3196
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3124
3197
|
};
|
|
3125
|
-
function
|
|
3126
|
-
return c(), m("svg",
|
|
3198
|
+
function Ks(t, e) {
|
|
3199
|
+
return c(), m("svg", Fs, e[0] || (e[0] = [
|
|
3127
3200
|
u("svg", {
|
|
3128
3201
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3129
3202
|
width: "8em",
|
|
@@ -3141,36 +3214,36 @@ function O1(n, e) {
|
|
|
3141
3214
|
}, null, -1)
|
|
3142
3215
|
]));
|
|
3143
3216
|
}
|
|
3144
|
-
const
|
|
3217
|
+
const Gs = /* @__PURE__ */ be(Zs, [["render", Ks]]), Ws = {
|
|
3145
3218
|
"h-full": "",
|
|
3146
3219
|
"w-full": "",
|
|
3147
3220
|
flex: "",
|
|
3148
3221
|
"items-center": ""
|
|
3149
|
-
},
|
|
3222
|
+
}, qs = {
|
|
3150
3223
|
flex: "~ col gap2",
|
|
3151
3224
|
ma: "",
|
|
3152
3225
|
"px-5": ""
|
|
3153
|
-
},
|
|
3226
|
+
}, Js = {
|
|
3154
3227
|
flex: "~ col",
|
|
3155
3228
|
"mt-20": "",
|
|
3156
3229
|
"items-center": ""
|
|
3157
|
-
},
|
|
3230
|
+
}, Ys = {
|
|
3158
3231
|
flex: "~",
|
|
3159
3232
|
"mt--10": "",
|
|
3160
3233
|
"items-center": "",
|
|
3161
3234
|
"justify-center": ""
|
|
3162
|
-
},
|
|
3235
|
+
}, Xs = { flex: "~ gap2 wrap" }, Qs = /* @__PURE__ */ F({
|
|
3163
3236
|
__name: "About",
|
|
3164
|
-
setup(
|
|
3165
|
-
const e =
|
|
3166
|
-
return (o,
|
|
3167
|
-
u("div",
|
|
3168
|
-
|
|
3169
|
-
u("div",
|
|
3170
|
-
u("div",
|
|
3171
|
-
|
|
3237
|
+
setup(t) {
|
|
3238
|
+
const e = Le();
|
|
3239
|
+
return (o, n) => (c(), m("div", Ws, [
|
|
3240
|
+
u("div", qs, [
|
|
3241
|
+
n[5] || (n[5] = u("div", { "flex-auto": "" }, null, -1)),
|
|
3242
|
+
u("div", Js, [
|
|
3243
|
+
u("div", Ys, [
|
|
3244
|
+
x(Gs, { "h-18": "" })
|
|
3172
3245
|
]),
|
|
3173
|
-
|
|
3246
|
+
n[2] || (n[2] = u("div", {
|
|
3174
3247
|
mb6: "",
|
|
3175
3248
|
"mt--1": "",
|
|
3176
3249
|
"text-center": "",
|
|
@@ -3180,15 +3253,15 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3180
3253
|
u("span", { op40: "" }, " Router DevTools ")
|
|
3181
3254
|
], -1))
|
|
3182
3255
|
]),
|
|
3183
|
-
|
|
3184
|
-
u("div",
|
|
3256
|
+
n[6] || (n[6] = u("div", { "flex-auto": "" }, null, -1)),
|
|
3257
|
+
u("div", Xs, [
|
|
3185
3258
|
u("div", {
|
|
3186
3259
|
flex: "~ col auto",
|
|
3187
3260
|
"min-w-40": "",
|
|
3188
3261
|
"theme-card-lime": "",
|
|
3189
3262
|
p4: "",
|
|
3190
|
-
onClick:
|
|
3191
|
-
},
|
|
3263
|
+
onClick: n[0] || (n[0] = (l) => a(e).push("/routes"))
|
|
3264
|
+
}, n[3] || (n[3] = [
|
|
3192
3265
|
u("div", {
|
|
3193
3266
|
"i-carbon-tree-view-alt": "",
|
|
3194
3267
|
"text-3xl": ""
|
|
@@ -3200,8 +3273,8 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3200
3273
|
"min-w-40": "",
|
|
3201
3274
|
"theme-card-lime": "",
|
|
3202
3275
|
p4: "",
|
|
3203
|
-
onClick:
|
|
3204
|
-
},
|
|
3276
|
+
onClick: n[1] || (n[1] = (l) => a(e).push("/timeline"))
|
|
3277
|
+
}, n[4] || (n[4] = [
|
|
3205
3278
|
u("div", {
|
|
3206
3279
|
"i-mdi:timeline-clock-outline": "",
|
|
3207
3280
|
"text-3xl": ""
|
|
@@ -3209,7 +3282,7 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3209
3282
|
u("div", null, "Timeline", -1)
|
|
3210
3283
|
]))
|
|
3211
3284
|
]),
|
|
3212
|
-
|
|
3285
|
+
n[7] || (n[7] = u("div", {
|
|
3213
3286
|
flex: "~ gap-6 wrap",
|
|
3214
3287
|
"mt-5": "",
|
|
3215
3288
|
"items-center": "",
|
|
@@ -3225,7 +3298,7 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3225
3298
|
transition: ""
|
|
3226
3299
|
}, [
|
|
3227
3300
|
u("div", { "i-carbon-star": "" }),
|
|
3228
|
-
|
|
3301
|
+
Q(" Star on GitHub ")
|
|
3229
3302
|
]),
|
|
3230
3303
|
u("a", {
|
|
3231
3304
|
href: "https://router.vuejs.org/",
|
|
@@ -3237,145 +3310,145 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3237
3310
|
transition: ""
|
|
3238
3311
|
}, [
|
|
3239
3312
|
u("div", { "i-carbon-document": "" }),
|
|
3240
|
-
|
|
3313
|
+
Q(" View Documentation ")
|
|
3241
3314
|
])
|
|
3242
3315
|
], -1)),
|
|
3243
|
-
|
|
3316
|
+
n[8] || (n[8] = u("div", { "flex-auto": "" }, null, -1))
|
|
3244
3317
|
])
|
|
3245
3318
|
]));
|
|
3246
3319
|
}
|
|
3247
|
-
}),
|
|
3320
|
+
}), e1 = { class: "h-full flex flex-col" }, t1 = {
|
|
3248
3321
|
"h-full": "",
|
|
3249
3322
|
"select-none": "",
|
|
3250
3323
|
"overflow-scroll": "",
|
|
3251
3324
|
p2: "",
|
|
3252
3325
|
class: "no-scrollbar"
|
|
3253
|
-
},
|
|
3326
|
+
}, n1 = { class: "pb2" }, o1 = {
|
|
3254
3327
|
"h-full": "",
|
|
3255
3328
|
"overflow-scroll": "",
|
|
3256
3329
|
class: "no-scrollbar"
|
|
3257
|
-
},
|
|
3330
|
+
}, l1 = /* @__PURE__ */ F({
|
|
3258
3331
|
__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
|
-
|
|
3332
|
+
setup(t) {
|
|
3333
|
+
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({});
|
|
3334
|
+
function E(O, C = [], U = []) {
|
|
3335
|
+
return C.push(O.id), O.children?.length === 0 && U.push([...C]), Array.isArray(O.children) && O.children.forEach((oe) => {
|
|
3336
|
+
E(oe, C, U);
|
|
3337
|
+
}), C.pop(), U;
|
|
3338
|
+
}
|
|
3339
|
+
function $(O, C) {
|
|
3340
|
+
const U = [];
|
|
3341
|
+
return O?.forEach((oe) => {
|
|
3342
|
+
U.push(...oe.slice(0, C + 1));
|
|
3343
|
+
}), [...new Set(U)];
|
|
3344
|
+
}
|
|
3345
|
+
function I(O) {
|
|
3346
|
+
const C = [], U = (oe) => {
|
|
3347
|
+
oe?.forEach((se) => {
|
|
3348
|
+
C.push(se), se.children?.length && U(se.children);
|
|
3276
3349
|
});
|
|
3277
3350
|
};
|
|
3278
|
-
return O
|
|
3351
|
+
return U(O), C;
|
|
3279
3352
|
}
|
|
3280
|
-
function
|
|
3281
|
-
for (const
|
|
3282
|
-
|
|
3283
|
-
return
|
|
3353
|
+
function L(O) {
|
|
3354
|
+
for (const C in O)
|
|
3355
|
+
O[C]?.length || delete O[C];
|
|
3356
|
+
return O;
|
|
3284
3357
|
}
|
|
3285
|
-
function V(
|
|
3286
|
-
|
|
3287
|
-
const
|
|
3288
|
-
|
|
3358
|
+
function V(O) {
|
|
3359
|
+
A.value.getInspectorState({ inspectorId: l.value, nodeId: O }).then((C) => {
|
|
3360
|
+
const U = ne(C);
|
|
3361
|
+
U && (T.value = L(U), o.value = Array.from({ length: Object.keys(T.value).length }, (oe, se) => `${se}`));
|
|
3289
3362
|
});
|
|
3290
3363
|
}
|
|
3291
|
-
function
|
|
3292
|
-
|
|
3364
|
+
function w() {
|
|
3365
|
+
T.value = {};
|
|
3293
3366
|
}
|
|
3294
|
-
|
|
3295
|
-
|
|
3367
|
+
te(s, () => {
|
|
3368
|
+
w(), V(s.value);
|
|
3296
3369
|
});
|
|
3297
|
-
const D = async (
|
|
3298
|
-
await
|
|
3299
|
-
const
|
|
3300
|
-
f.value =
|
|
3370
|
+
const D = async (O = "") => {
|
|
3371
|
+
await A.value.getInspectorTree({ inspectorId: l.value, filter: O }).then((C) => {
|
|
3372
|
+
const U = ne(C);
|
|
3373
|
+
f.value = U, !s.value && U.length && (s.value = U[0].id, V(U[0].id), e.value = $(v.value, 1));
|
|
3301
3374
|
});
|
|
3302
3375
|
};
|
|
3303
|
-
|
|
3376
|
+
Gt(l).toBeTruthy().then(() => {
|
|
3304
3377
|
D();
|
|
3305
3378
|
});
|
|
3306
|
-
function
|
|
3307
|
-
const
|
|
3308
|
-
|
|
3379
|
+
function B(O) {
|
|
3380
|
+
const C = ne(O);
|
|
3381
|
+
C.inspectorId !== l.value || !C.rootNodes.length || (f.value = C.rootNodes, h.value.includes(s.value) || (s.value = C.rootNodes[0].id, e.value = $(v.value, 1), V(C.rootNodes[0].id)));
|
|
3309
3382
|
}
|
|
3310
|
-
function
|
|
3311
|
-
const
|
|
3312
|
-
if (
|
|
3383
|
+
function G(O) {
|
|
3384
|
+
const C = ne(O);
|
|
3385
|
+
if (C.inspectorId !== l.value)
|
|
3313
3386
|
return;
|
|
3314
|
-
const
|
|
3315
|
-
|
|
3387
|
+
const U = C.state;
|
|
3388
|
+
T.value = L(U);
|
|
3316
3389
|
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3390
|
+
A.functions.on(X.INSPECTOR_TREE_UPDATED, B), A.functions.on(X.INSPECTOR_STATE_UPDATED, G), ke(() => {
|
|
3391
|
+
A.functions.off(X.INSPECTOR_TREE_UPDATED, B), A.functions.off(X.INSPECTOR_STATE_UPDATED, G);
|
|
3319
3392
|
});
|
|
3320
|
-
function
|
|
3321
|
-
const
|
|
3322
|
-
i(), D(
|
|
3393
|
+
function W(O) {
|
|
3394
|
+
const C = O.trim().toLowerCase();
|
|
3395
|
+
i(), D(C).then(() => {
|
|
3323
3396
|
i();
|
|
3324
3397
|
});
|
|
3325
3398
|
}
|
|
3326
|
-
return
|
|
3327
|
-
|
|
3328
|
-
}, { debounce: 300 }), (
|
|
3329
|
-
|
|
3399
|
+
return qt(p, (O) => {
|
|
3400
|
+
W(O);
|
|
3401
|
+
}, { debounce: 300 }), (O, C) => (c(), m("div", e1, [
|
|
3402
|
+
x(Te, {
|
|
3330
3403
|
"doc-link": "https://router.vuejs.org/",
|
|
3331
3404
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3332
3405
|
}, {
|
|
3333
|
-
default:
|
|
3334
|
-
|
|
3406
|
+
default: H(() => [
|
|
3407
|
+
x(Ee)
|
|
3335
3408
|
]),
|
|
3336
3409
|
_: 1
|
|
3337
3410
|
}),
|
|
3338
|
-
|
|
3339
|
-
default:
|
|
3340
|
-
|
|
3411
|
+
x(a(Pe), { class: "flex-1 overflow-auto" }, {
|
|
3412
|
+
default: H(() => [
|
|
3413
|
+
x(a(de), {
|
|
3341
3414
|
border: "r base",
|
|
3342
3415
|
size: "40",
|
|
3343
3416
|
"h-full": ""
|
|
3344
3417
|
}, {
|
|
3345
|
-
default:
|
|
3346
|
-
u("div",
|
|
3347
|
-
u("div",
|
|
3348
|
-
|
|
3418
|
+
default: H(() => [
|
|
3419
|
+
u("div", t1, [
|
|
3420
|
+
u("div", n1, [
|
|
3421
|
+
x(a(Ce), {
|
|
3349
3422
|
modelValue: p.value,
|
|
3350
|
-
"onUpdate:modelValue":
|
|
3423
|
+
"onUpdate:modelValue": C[0] || (C[0] = (U) => p.value = U),
|
|
3351
3424
|
placeholder: "Search routes",
|
|
3352
3425
|
loading: !a(r),
|
|
3353
3426
|
"loading-debounce-time": 250,
|
|
3354
3427
|
class: "text-3.5"
|
|
3355
3428
|
}, null, 8, ["modelValue", "loading"])
|
|
3356
3429
|
]),
|
|
3357
|
-
|
|
3430
|
+
x(Oe, {
|
|
3358
3431
|
modelValue: s.value,
|
|
3359
|
-
"onUpdate:modelValue":
|
|
3432
|
+
"onUpdate:modelValue": C[1] || (C[1] = (U) => s.value = U),
|
|
3360
3433
|
data: f.value
|
|
3361
3434
|
}, null, 8, ["modelValue", "data"])
|
|
3362
3435
|
])
|
|
3363
3436
|
]),
|
|
3364
3437
|
_: 1
|
|
3365
3438
|
}),
|
|
3366
|
-
|
|
3367
|
-
default:
|
|
3368
|
-
u("div",
|
|
3369
|
-
s.value ? (c(), z(
|
|
3439
|
+
x(a(de), { size: "60" }, {
|
|
3440
|
+
default: H(() => [
|
|
3441
|
+
u("div", o1, [
|
|
3442
|
+
s.value ? (c(), z(He, {
|
|
3370
3443
|
key: 0,
|
|
3371
3444
|
class: "p3",
|
|
3372
|
-
data:
|
|
3445
|
+
data: T.value,
|
|
3373
3446
|
"node-id": "",
|
|
3374
3447
|
"inspector-id": "router",
|
|
3375
3448
|
"expanded-state-id": "routes-state"
|
|
3376
|
-
}, null, 8, ["data"])) : (c(), z(
|
|
3377
|
-
default:
|
|
3378
|
-
|
|
3449
|
+
}, null, 8, ["data"])) : (c(), z($e, { key: 1 }, {
|
|
3450
|
+
default: H(() => C[2] || (C[2] = [
|
|
3451
|
+
Q(" No Data ", -1)
|
|
3379
3452
|
])),
|
|
3380
3453
|
_: 1,
|
|
3381
3454
|
__: [2]
|
|
@@ -3389,51 +3462,51 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3389
3462
|
})
|
|
3390
3463
|
]));
|
|
3391
3464
|
}
|
|
3392
|
-
}),
|
|
3465
|
+
}), s1 = "org.vuejs.router", a1 = /* @__PURE__ */ F({
|
|
3393
3466
|
__name: "Index",
|
|
3394
|
-
setup(
|
|
3395
|
-
const e =
|
|
3396
|
-
return (o,
|
|
3467
|
+
setup(t) {
|
|
3468
|
+
const e = xe();
|
|
3469
|
+
return (o, n) => (c(), z(ct, {
|
|
3397
3470
|
"layer-ids": a(e).timelineLayerIds,
|
|
3398
3471
|
"doc-link": "https://router.vuejs.org/",
|
|
3399
|
-
"plugin-id":
|
|
3472
|
+
"plugin-id": s1,
|
|
3400
3473
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
3401
3474
|
}, null, 8, ["layer-ids"]));
|
|
3402
3475
|
}
|
|
3403
|
-
}),
|
|
3476
|
+
}), i1 = {
|
|
3404
3477
|
"h-full": "",
|
|
3405
3478
|
"w-full": ""
|
|
3406
|
-
},
|
|
3479
|
+
}, x1 = /* @__PURE__ */ F({
|
|
3407
3480
|
__name: "index",
|
|
3408
3481
|
props: {
|
|
3409
3482
|
id: {}
|
|
3410
3483
|
},
|
|
3411
|
-
setup(
|
|
3412
|
-
const e =
|
|
3484
|
+
setup(t) {
|
|
3485
|
+
const e = t, o = dt(), n = N(!1), { VirtualRouterView: l, restoreRouter: s } = ot([
|
|
3413
3486
|
{
|
|
3414
3487
|
path: "/routes",
|
|
3415
3488
|
name: "Routes",
|
|
3416
|
-
component:
|
|
3489
|
+
component: l1,
|
|
3417
3490
|
icon: "i-carbon-tree-view-alt"
|
|
3418
3491
|
},
|
|
3419
3492
|
{
|
|
3420
3493
|
path: "/timeline",
|
|
3421
3494
|
name: "Timeline",
|
|
3422
|
-
component:
|
|
3495
|
+
component: a1,
|
|
3423
3496
|
icon: "i-mdi:timeline-clock-outline"
|
|
3424
3497
|
},
|
|
3425
3498
|
{
|
|
3426
3499
|
path: "/about",
|
|
3427
3500
|
name: "About",
|
|
3428
|
-
component:
|
|
3501
|
+
component: Qs,
|
|
3429
3502
|
icon: "i-ri-route-line"
|
|
3430
3503
|
}
|
|
3431
3504
|
], {
|
|
3432
3505
|
defaultRoutePath: "/routes"
|
|
3433
3506
|
});
|
|
3434
3507
|
function p() {
|
|
3435
|
-
|
|
3436
|
-
|
|
3508
|
+
n.value = !0, De(() => {
|
|
3509
|
+
A.value.getInspectorInfo(e.id).then((r) => {
|
|
3437
3510
|
if (!r)
|
|
3438
3511
|
return;
|
|
3439
3512
|
const i = {
|
|
@@ -3443,23 +3516,23 @@ const j1 = /* @__PURE__ */ xe(H1, [["render", O1]]), z1 = {
|
|
|
3443
3516
|
logo: r?.logo,
|
|
3444
3517
|
timelineLayerIds: r?.timelineLayers.map((f) => f.id)
|
|
3445
3518
|
};
|
|
3446
|
-
o.value = i, s(),
|
|
3519
|
+
o.value = i, s(), n.value = !1;
|
|
3447
3520
|
});
|
|
3448
3521
|
});
|
|
3449
3522
|
}
|
|
3450
|
-
return
|
|
3523
|
+
return te(() => e.id, (r) => {
|
|
3451
3524
|
r && p();
|
|
3452
|
-
}), (r, i) => (c(), m("div",
|
|
3453
|
-
|
|
3525
|
+
}), (r, i) => (c(), m("div", i1, [
|
|
3526
|
+
x(a(l))
|
|
3454
3527
|
]));
|
|
3455
3528
|
}
|
|
3456
3529
|
});
|
|
3457
3530
|
export {
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3531
|
+
C1 as Components,
|
|
3532
|
+
y1 as CustomInspector,
|
|
3533
|
+
_1 as Pinia,
|
|
3534
|
+
x1 as Router,
|
|
3535
|
+
On as SelectiveList,
|
|
3536
|
+
ct as Timeline,
|
|
3537
|
+
g1 as useCustomInspector
|
|
3465
3538
|
};
|