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