x-prop-tree 0.6.29 → 0.6.31

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,1023 +1,314 @@
1
- import { provide as we, inject as Ae, defineComponent as G, ref as N, computed as F, resolveComponent as V, createBlock as B, openBlock as A, unref as w, isRef as Ve, withCtx as H, createVNode as k, createElementBlock as K, Fragment as He, renderList as zt, createTextVNode as ze, toDisplayString as Y, resolveDirective as ce, withDirectives as le, withModifiers as J, normalizeStyle as re, createElementVNode as z, createCommentVNode as X, renderSlot as Bn, h as _, mergeModels as Z, useModel as I, useId as ct, onUnmounted as ft, withKeys as Jt, mergeProps as dt, watchEffect as _t, watch as be, useTemplateRef as It, reactive as Fn, onMounted as Hn, onBeforeUnmount as Gn } from "vue";
2
- import { useI18n as ie } from "vue-i18n";
3
- import { useViewStack as Je, useColor as me, eventBus as $e, useSystem as Xt, injectDark as Kn, injectLocale as qn } from "x-essential-lib";
4
- import { getPropDefault as R, pkgs as Zt, parsePixelStr as zn, parsePercentStr as Jn } from "x-runtime-lib";
5
- import { globalState as In } from "x-state-lib";
6
- import { useDisplay as Xn } from "vuetify";
7
- import { XBlockly as Zn } from "x-block-lib";
8
- var Wt = typeof global == "object" && global && global.Object === Object && global, Wn = typeof self == "object" && self && self.Object === Object && self, ee = Wt || Wn || Function("return this")(), ue = ee.Symbol, Yt = Object.prototype, Yn = Yt.hasOwnProperty, Qn = Yt.toString, Pe = ue ? ue.toStringTag : void 0;
9
- function er(e) {
10
- var t = Yn.call(e, Pe), n = e[Pe];
11
- try {
12
- e[Pe] = void 0;
13
- var r = !0;
14
- } catch {
15
- }
16
- var l = Qn.call(e);
17
- return r && (t ? e[Pe] = n : delete e[Pe]), l;
18
- }
19
- var tr = Object.prototype, nr = tr.toString;
20
- function rr(e) {
21
- return nr.call(e);
22
- }
23
- var or = "[object Null]", lr = "[object Undefined]", bt = ue ? ue.toStringTag : void 0;
24
- function De(e) {
25
- return e == null ? e === void 0 ? lr : or : bt && bt in Object(e) ? er(e) : rr(e);
26
- }
27
- function pe(e) {
28
- return e != null && typeof e == "object";
29
- }
30
- var Ue = Array.isArray;
31
- function Ie(e) {
32
- var t = typeof e;
33
- return e != null && (t == "object" || t == "function");
34
- }
35
- var ir = "[object AsyncFunction]", sr = "[object Function]", ar = "[object GeneratorFunction]", ur = "[object Proxy]";
36
- function Qt(e) {
37
- if (!Ie(e))
38
- return !1;
39
- var t = De(e);
40
- return t == sr || t == ar || t == ir || t == ur;
41
- }
42
- var tt = ee["__core-js_shared__"], $t = function() {
43
- var e = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
44
- return e ? "Symbol(src)_1." + e : "";
45
- }();
46
- function cr(e) {
47
- return !!$t && $t in e;
48
- }
49
- var fr = Function.prototype, dr = fr.toString;
50
- function ge(e) {
51
- if (e != null) {
52
- try {
53
- return dr.call(e);
54
- } catch {
55
- }
56
- try {
57
- return e + "";
58
- } catch {
59
- }
60
- }
61
- return "";
62
- }
63
- var pr = /[\\^$.*+?()[\]{}|]/g, vr = /^\[object .+?Constructor\]$/, mr = Function.prototype, gr = Object.prototype, yr = mr.toString, hr = gr.hasOwnProperty, _r = RegExp(
64
- "^" + yr.call(hr).replace(pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
65
- );
66
- function br(e) {
67
- if (!Ie(e) || cr(e))
68
- return !1;
69
- var t = Qt(e) ? _r : vr;
70
- return t.test(ge(e));
71
- }
72
- function $r(e, t) {
73
- return e == null ? void 0 : e[t];
74
- }
75
- function ye(e, t) {
76
- var n = $r(e, t);
77
- return br(n) ? n : void 0;
78
- }
79
- var lt = ye(ee, "WeakMap"), Tt = Object.create, Tr = /* @__PURE__ */ function() {
80
- function e() {
81
- }
82
- return function(t) {
83
- if (!Ie(t))
84
- return {};
85
- if (Tt)
86
- return Tt(t);
87
- e.prototype = t;
88
- var n = new e();
89
- return e.prototype = void 0, n;
90
- };
91
- }(), St = function() {
92
- try {
93
- var e = ye(Object, "defineProperty");
94
- return e({}, "", {}), e;
95
- } catch {
96
- }
97
- }();
98
- function Sr(e, t) {
99
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
100
- ;
101
- return e;
102
- }
103
- var wr = 9007199254740991, Ar = /^(?:0|[1-9]\d*)$/;
104
- function Cr(e, t) {
105
- var n = typeof e;
106
- return t = t ?? wr, !!t && (n == "number" || n != "symbol" && Ar.test(e)) && e > -1 && e % 1 == 0 && e < t;
107
- }
108
- function Pr(e, t, n) {
109
- t == "__proto__" && St ? St(e, t, {
110
- configurable: !0,
111
- enumerable: !0,
112
- value: n,
113
- writable: !0
114
- }) : e[t] = n;
115
- }
116
- function pt(e, t) {
117
- return e === t || e !== e && t !== t;
118
- }
119
- var xr = Object.prototype, Or = xr.hasOwnProperty;
120
- function Vr(e, t, n) {
121
- var r = e[t];
122
- (!(Or.call(e, t) && pt(r, n)) || n === void 0 && !(t in e)) && Pr(e, t, n);
123
- }
124
- var Ur = 9007199254740991;
125
- function en(e) {
126
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
127
- }
128
- function Mr(e) {
129
- return e != null && en(e.length) && !Qt(e);
130
- }
131
- var Lr = Object.prototype;
132
- function tn(e) {
133
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || Lr;
134
- return e === n;
135
- }
136
- function Dr(e, t) {
137
- for (var n = -1, r = Array(e); ++n < e; )
138
- r[n] = t(n);
139
- return r;
140
- }
141
- var jr = "[object Arguments]";
142
- function wt(e) {
143
- return pe(e) && De(e) == jr;
144
- }
145
- var nn = Object.prototype, kr = nn.hasOwnProperty, Er = nn.propertyIsEnumerable, Nr = wt(/* @__PURE__ */ function() {
146
- return arguments;
147
- }()) ? wt : function(e) {
148
- return pe(e) && kr.call(e, "callee") && !Er.call(e, "callee");
149
- };
150
- function Rr() {
151
- return !1;
152
- }
153
- var rn = typeof exports == "object" && exports && !exports.nodeType && exports, At = rn && typeof module == "object" && module && !module.nodeType && module, Br = At && At.exports === rn, Ct = Br ? ee.Buffer : void 0, Fr = Ct ? Ct.isBuffer : void 0, Ge = Fr || Rr, Hr = "[object Arguments]", Gr = "[object Array]", Kr = "[object Boolean]", qr = "[object Date]", zr = "[object Error]", Jr = "[object Function]", Ir = "[object Map]", Xr = "[object Number]", Zr = "[object Object]", Wr = "[object RegExp]", Yr = "[object Set]", Qr = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", no = "[object DataView]", ro = "[object Float32Array]", oo = "[object Float64Array]", lo = "[object Int8Array]", io = "[object Int16Array]", so = "[object Int32Array]", ao = "[object Uint8Array]", uo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", fo = "[object Uint32Array]", L = {};
154
- L[ro] = L[oo] = L[lo] = L[io] = L[so] = L[ao] = L[uo] = L[co] = L[fo] = !0;
155
- L[Hr] = L[Gr] = L[to] = L[Kr] = L[no] = L[qr] = L[zr] = L[Jr] = L[Ir] = L[Xr] = L[Zr] = L[Wr] = L[Yr] = L[Qr] = L[eo] = !1;
156
- function po(e) {
157
- return pe(e) && en(e.length) && !!L[De(e)];
158
- }
159
- function vt(e) {
160
- return function(t) {
161
- return e(t);
162
- };
163
- }
164
- var on = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = on && typeof module == "object" && module && !module.nodeType && module, vo = Oe && Oe.exports === on, nt = vo && Wt.process, Se = function() {
165
- try {
166
- var e = Oe && Oe.require && Oe.require("util").types;
167
- return e || nt && nt.binding && nt.binding("util");
168
- } catch {
169
- }
170
- }(), Pt = Se && Se.isTypedArray, ln = Pt ? vt(Pt) : po, mo = Object.prototype, go = mo.hasOwnProperty;
171
- function yo(e, t) {
172
- var n = Ue(e), r = !n && Nr(e), l = !n && !r && Ge(e), o = !n && !r && !l && ln(e), i = n || r || l || o, a = i ? Dr(e.length, String) : [], u = a.length;
173
- for (var s in e)
174
- go.call(e, s) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
175
- (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
176
- l && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
177
- o && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
178
- Cr(s, u))) && a.push(s);
179
- return a;
180
- }
181
- function sn(e, t) {
182
- return function(n) {
183
- return e(t(n));
184
- };
185
- }
186
- var ho = sn(Object.keys, Object), _o = Object.prototype, bo = _o.hasOwnProperty;
187
- function $o(e) {
188
- if (!tn(e))
189
- return ho(e);
190
- var t = [];
191
- for (var n in Object(e))
192
- bo.call(e, n) && n != "constructor" && t.push(n);
193
- return t;
194
- }
195
- function To(e) {
196
- return Mr(e) ? yo(e) : $o(e);
197
- }
198
- var Me = ye(Object, "create");
199
- function So() {
200
- this.__data__ = Me ? Me(null) : {}, this.size = 0;
201
- }
202
- function wo(e) {
203
- var t = this.has(e) && delete this.__data__[e];
204
- return this.size -= t ? 1 : 0, t;
205
- }
206
- var Ao = "__lodash_hash_undefined__", Co = Object.prototype, Po = Co.hasOwnProperty;
207
- function xo(e) {
208
- var t = this.__data__;
209
- if (Me) {
210
- var n = t[e];
211
- return n === Ao ? void 0 : n;
212
- }
213
- return Po.call(t, e) ? t[e] : void 0;
214
- }
215
- var Oo = Object.prototype, Vo = Oo.hasOwnProperty;
216
- function Uo(e) {
217
- var t = this.__data__;
218
- return Me ? t[e] !== void 0 : Vo.call(t, e);
219
- }
220
- var Mo = "__lodash_hash_undefined__";
221
- function Lo(e, t) {
222
- var n = this.__data__;
223
- return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ? Mo : t, this;
224
- }
225
- function ve(e) {
226
- var t = -1, n = e == null ? 0 : e.length;
227
- for (this.clear(); ++t < n; ) {
228
- var r = e[t];
229
- this.set(r[0], r[1]);
230
- }
231
- }
232
- ve.prototype.clear = So;
233
- ve.prototype.delete = wo;
234
- ve.prototype.get = xo;
235
- ve.prototype.has = Uo;
236
- ve.prototype.set = Lo;
237
- function Do() {
238
- this.__data__ = [], this.size = 0;
239
- }
240
- function Xe(e, t) {
241
- for (var n = e.length; n--; )
242
- if (pt(e[n][0], t))
243
- return n;
244
- return -1;
245
- }
246
- var jo = Array.prototype, ko = jo.splice;
247
- function Eo(e) {
248
- var t = this.__data__, n = Xe(t, e);
249
- if (n < 0)
250
- return !1;
251
- var r = t.length - 1;
252
- return n == r ? t.pop() : ko.call(t, n, 1), --this.size, !0;
253
- }
254
- function No(e) {
255
- var t = this.__data__, n = Xe(t, e);
256
- return n < 0 ? void 0 : t[n][1];
257
- }
258
- function Ro(e) {
259
- return Xe(this.__data__, e) > -1;
260
- }
261
- function Bo(e, t) {
262
- var n = this.__data__, r = Xe(n, e);
263
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
264
- }
265
- function se(e) {
266
- var t = -1, n = e == null ? 0 : e.length;
267
- for (this.clear(); ++t < n; ) {
268
- var r = e[t];
269
- this.set(r[0], r[1]);
270
- }
271
- }
272
- se.prototype.clear = Do;
273
- se.prototype.delete = Eo;
274
- se.prototype.get = No;
275
- se.prototype.has = Ro;
276
- se.prototype.set = Bo;
277
- var Le = ye(ee, "Map");
278
- function Fo() {
279
- this.size = 0, this.__data__ = {
280
- hash: new ve(),
281
- map: new (Le || se)(),
282
- string: new ve()
283
- };
284
- }
285
- function Ho(e) {
286
- var t = typeof e;
287
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
288
- }
289
- function Ze(e, t) {
290
- var n = e.__data__;
291
- return Ho(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
292
- }
293
- function Go(e) {
294
- var t = Ze(this, e).delete(e);
295
- return this.size -= t ? 1 : 0, t;
296
- }
297
- function Ko(e) {
298
- return Ze(this, e).get(e);
299
- }
300
- function qo(e) {
301
- return Ze(this, e).has(e);
302
- }
303
- function zo(e, t) {
304
- var n = Ze(this, e), r = n.size;
305
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
306
- }
307
- function he(e) {
308
- var t = -1, n = e == null ? 0 : e.length;
309
- for (this.clear(); ++t < n; ) {
310
- var r = e[t];
311
- this.set(r[0], r[1]);
312
- }
313
- }
314
- he.prototype.clear = Fo;
315
- he.prototype.delete = Go;
316
- he.prototype.get = Ko;
317
- he.prototype.has = qo;
318
- he.prototype.set = zo;
319
- function Jo(e, t) {
320
- for (var n = -1, r = t.length, l = e.length; ++n < r; )
321
- e[l + n] = t[n];
322
- return e;
323
- }
324
- var Io = sn(Object.getPrototypeOf, Object);
325
- function Xo() {
326
- this.__data__ = new se(), this.size = 0;
327
- }
328
- function Zo(e) {
329
- var t = this.__data__, n = t.delete(e);
330
- return this.size = t.size, n;
331
- }
332
- function Wo(e) {
333
- return this.__data__.get(e);
334
- }
335
- function Yo(e) {
336
- return this.__data__.has(e);
337
- }
338
- var Qo = 200;
339
- function el(e, t) {
340
- var n = this.__data__;
341
- if (n instanceof se) {
342
- var r = n.__data__;
343
- if (!Le || r.length < Qo - 1)
344
- return r.push([e, t]), this.size = ++n.size, this;
345
- n = this.__data__ = new he(r);
346
- }
347
- return n.set(e, t), this.size = n.size, this;
348
- }
349
- function oe(e) {
350
- var t = this.__data__ = new se(e);
351
- this.size = t.size;
352
- }
353
- oe.prototype.clear = Xo;
354
- oe.prototype.delete = Zo;
355
- oe.prototype.get = Wo;
356
- oe.prototype.has = Yo;
357
- oe.prototype.set = el;
358
- var an = typeof exports == "object" && exports && !exports.nodeType && exports, xt = an && typeof module == "object" && module && !module.nodeType && module, tl = xt && xt.exports === an, Ot = tl ? ee.Buffer : void 0;
359
- Ot && Ot.allocUnsafe;
360
- function nl(e, t) {
361
- return e.slice();
362
- }
363
- function rl(e, t) {
364
- for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
365
- var i = e[n];
366
- t(i, n, e) && (o[l++] = i);
367
- }
368
- return o;
369
- }
370
- function ol() {
371
- return [];
372
- }
373
- var ll = Object.prototype, il = ll.propertyIsEnumerable, Vt = Object.getOwnPropertySymbols, sl = Vt ? function(e) {
374
- return e == null ? [] : (e = Object(e), rl(Vt(e), function(t) {
375
- return il.call(e, t);
376
- }));
377
- } : ol;
378
- function al(e, t, n) {
379
- var r = t(e);
380
- return Ue(e) ? r : Jo(r, n(e));
381
- }
382
- function it(e) {
383
- return al(e, To, sl);
384
- }
385
- var st = ye(ee, "DataView"), at = ye(ee, "Promise"), ut = ye(ee, "Set"), Ut = "[object Map]", ul = "[object Object]", Mt = "[object Promise]", Lt = "[object Set]", Dt = "[object WeakMap]", jt = "[object DataView]", cl = ge(st), fl = ge(Le), dl = ge(at), pl = ge(ut), vl = ge(lt), W = De;
386
- (st && W(new st(new ArrayBuffer(1))) != jt || Le && W(new Le()) != Ut || at && W(at.resolve()) != Mt || ut && W(new ut()) != Lt || lt && W(new lt()) != Dt) && (W = function(e) {
387
- var t = De(e), n = t == ul ? e.constructor : void 0, r = n ? ge(n) : "";
388
- if (r)
389
- switch (r) {
390
- case cl:
391
- return jt;
392
- case fl:
393
- return Ut;
394
- case dl:
395
- return Mt;
396
- case pl:
397
- return Lt;
398
- case vl:
399
- return Dt;
400
- }
401
- return t;
402
- });
403
- var ml = Object.prototype, gl = ml.hasOwnProperty;
404
- function yl(e) {
405
- var t = e.length, n = new e.constructor(t);
406
- return t && typeof e[0] == "string" && gl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
407
- }
408
- var Ke = ee.Uint8Array;
409
- function mt(e) {
410
- var t = new e.constructor(e.byteLength);
411
- return new Ke(t).set(new Ke(e)), t;
412
- }
413
- function hl(e, t) {
414
- var n = mt(e.buffer);
415
- return new e.constructor(n, e.byteOffset, e.byteLength);
416
- }
417
- var _l = /\w*$/;
418
- function bl(e) {
419
- var t = new e.constructor(e.source, _l.exec(e));
420
- return t.lastIndex = e.lastIndex, t;
421
- }
422
- var kt = ue ? ue.prototype : void 0, Et = kt ? kt.valueOf : void 0;
423
- function $l(e) {
424
- return Et ? Object(Et.call(e)) : {};
425
- }
426
- function Tl(e, t) {
427
- var n = mt(e.buffer);
428
- return new e.constructor(n, e.byteOffset, e.length);
429
- }
430
- var Sl = "[object Boolean]", wl = "[object Date]", Al = "[object Map]", Cl = "[object Number]", Pl = "[object RegExp]", xl = "[object Set]", Ol = "[object String]", Vl = "[object Symbol]", Ul = "[object ArrayBuffer]", Ml = "[object DataView]", Ll = "[object Float32Array]", Dl = "[object Float64Array]", jl = "[object Int8Array]", kl = "[object Int16Array]", El = "[object Int32Array]", Nl = "[object Uint8Array]", Rl = "[object Uint8ClampedArray]", Bl = "[object Uint16Array]", Fl = "[object Uint32Array]";
431
- function Hl(e, t, n) {
432
- var r = e.constructor;
433
- switch (t) {
434
- case Ul:
435
- return mt(e);
436
- case Sl:
437
- case wl:
438
- return new r(+e);
439
- case Ml:
440
- return hl(e);
441
- case Ll:
442
- case Dl:
443
- case jl:
444
- case kl:
445
- case El:
446
- case Nl:
447
- case Rl:
448
- case Bl:
449
- case Fl:
450
- return Tl(e);
451
- case Al:
452
- return new r();
453
- case Cl:
454
- case Ol:
455
- return new r(e);
456
- case Pl:
457
- return bl(e);
458
- case xl:
459
- return new r();
460
- case Vl:
461
- return $l(e);
462
- }
463
- }
464
- function Gl(e) {
465
- return typeof e.constructor == "function" && !tn(e) ? Tr(Io(e)) : {};
466
- }
467
- var Kl = "[object Map]";
468
- function ql(e) {
469
- return pe(e) && W(e) == Kl;
470
- }
471
- var Nt = Se && Se.isMap, zl = Nt ? vt(Nt) : ql, Jl = "[object Set]";
472
- function Il(e) {
473
- return pe(e) && W(e) == Jl;
474
- }
475
- var Rt = Se && Se.isSet, Xl = Rt ? vt(Rt) : Il, un = "[object Arguments]", Zl = "[object Array]", Wl = "[object Boolean]", Yl = "[object Date]", Ql = "[object Error]", cn = "[object Function]", ei = "[object GeneratorFunction]", ti = "[object Map]", ni = "[object Number]", fn = "[object Object]", ri = "[object RegExp]", oi = "[object Set]", li = "[object String]", ii = "[object Symbol]", si = "[object WeakMap]", ai = "[object ArrayBuffer]", ui = "[object DataView]", ci = "[object Float32Array]", fi = "[object Float64Array]", di = "[object Int8Array]", pi = "[object Int16Array]", vi = "[object Int32Array]", mi = "[object Uint8Array]", gi = "[object Uint8ClampedArray]", yi = "[object Uint16Array]", hi = "[object Uint32Array]", M = {};
476
- M[un] = M[Zl] = M[ai] = M[ui] = M[Wl] = M[Yl] = M[ci] = M[fi] = M[di] = M[pi] = M[vi] = M[ti] = M[ni] = M[fn] = M[ri] = M[oi] = M[li] = M[ii] = M[mi] = M[gi] = M[yi] = M[hi] = !0;
477
- M[Ql] = M[cn] = M[si] = !1;
478
- function Fe(e, t, n, r, l, o) {
479
- var i;
480
- if (i !== void 0)
481
- return i;
482
- if (!Ie(e))
483
- return e;
484
- var a = Ue(e);
485
- if (a)
486
- i = yl(e);
487
- else {
488
- var u = W(e), s = u == cn || u == ei;
489
- if (Ge(e))
490
- return nl(e);
491
- if (u == fn || u == un || s && !l)
492
- i = s ? {} : Gl(e);
493
- else {
494
- if (!M[u])
495
- return l ? e : {};
496
- i = Hl(e, u);
497
- }
498
- }
499
- o || (o = new oe());
500
- var v = o.get(e);
501
- if (v)
502
- return v;
503
- o.set(e, i), Xl(e) ? e.forEach(function(d) {
504
- i.add(Fe(d, t, n, d, e, o));
505
- }) : zl(e) && e.forEach(function(d, m) {
506
- i.set(m, Fe(d, t, n, m, e, o));
507
- });
508
- var c = it, f = a ? void 0 : c(e);
509
- return Sr(f || e, function(d, m) {
510
- f && (m = d, d = e[m]), Vr(i, m, Fe(d, t, n, m, e, o));
511
- }), i;
512
- }
513
- var _i = 1, bi = 4;
514
- function dn(e) {
515
- return Fe(e, _i | bi);
516
- }
517
- var $i = "__lodash_hash_undefined__";
518
- function Ti(e) {
519
- return this.__data__.set(e, $i), this;
520
- }
521
- function Si(e) {
522
- return this.__data__.has(e);
523
- }
524
- function qe(e) {
525
- var t = -1, n = e == null ? 0 : e.length;
526
- for (this.__data__ = new he(); ++t < n; )
527
- this.add(e[t]);
528
- }
529
- qe.prototype.add = qe.prototype.push = Ti;
530
- qe.prototype.has = Si;
531
- function wi(e, t) {
532
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
533
- if (t(e[n], n, e))
534
- return !0;
535
- return !1;
536
- }
537
- function Ai(e, t) {
538
- return e.has(t);
539
- }
540
- var Ci = 1, Pi = 2;
541
- function pn(e, t, n, r, l, o) {
542
- var i = n & Ci, a = e.length, u = t.length;
543
- if (a != u && !(i && u > a))
544
- return !1;
545
- var s = o.get(e), v = o.get(t);
546
- if (s && v)
547
- return s == t && v == e;
548
- var c = -1, f = !0, d = n & Pi ? new qe() : void 0;
549
- for (o.set(e, t), o.set(t, e); ++c < a; ) {
550
- var m = e[c], C = t[c];
551
- if (r)
552
- var S = i ? r(C, m, c, t, e, o) : r(m, C, c, e, t, o);
553
- if (S !== void 0) {
554
- if (S)
555
- continue;
556
- f = !1;
557
- break;
558
- }
559
- if (d) {
560
- if (!wi(t, function(x, $) {
561
- if (!Ai(d, $) && (m === x || l(m, x, n, r, o)))
562
- return d.push($);
563
- })) {
564
- f = !1;
565
- break;
566
- }
567
- } else if (!(m === C || l(m, C, n, r, o))) {
568
- f = !1;
569
- break;
570
- }
571
- }
572
- return o.delete(e), o.delete(t), f;
573
- }
574
- function xi(e) {
575
- var t = -1, n = Array(e.size);
576
- return e.forEach(function(r, l) {
577
- n[++t] = [l, r];
578
- }), n;
579
- }
580
- function Oi(e) {
581
- var t = -1, n = Array(e.size);
582
- return e.forEach(function(r) {
583
- n[++t] = r;
584
- }), n;
585
- }
586
- var Vi = 1, Ui = 2, Mi = "[object Boolean]", Li = "[object Date]", Di = "[object Error]", ji = "[object Map]", ki = "[object Number]", Ei = "[object RegExp]", Ni = "[object Set]", Ri = "[object String]", Bi = "[object Symbol]", Fi = "[object ArrayBuffer]", Hi = "[object DataView]", Bt = ue ? ue.prototype : void 0, rt = Bt ? Bt.valueOf : void 0;
587
- function Gi(e, t, n, r, l, o, i) {
588
- switch (n) {
589
- case Hi:
590
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
591
- return !1;
592
- e = e.buffer, t = t.buffer;
593
- case Fi:
594
- return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
595
- case Mi:
596
- case Li:
597
- case ki:
598
- return pt(+e, +t);
599
- case Di:
600
- return e.name == t.name && e.message == t.message;
601
- case Ei:
602
- case Ri:
603
- return e == t + "";
604
- case ji:
605
- var a = xi;
606
- case Ni:
607
- var u = r & Vi;
608
- if (a || (a = Oi), e.size != t.size && !u)
609
- return !1;
610
- var s = i.get(e);
611
- if (s)
612
- return s == t;
613
- r |= Ui, i.set(e, t);
614
- var v = pn(a(e), a(t), r, l, o, i);
615
- return i.delete(e), v;
616
- case Bi:
617
- if (rt)
618
- return rt.call(e) == rt.call(t);
619
- }
620
- return !1;
621
- }
622
- var Ki = 1, qi = Object.prototype, zi = qi.hasOwnProperty;
623
- function Ji(e, t, n, r, l, o) {
624
- var i = n & Ki, a = it(e), u = a.length, s = it(t), v = s.length;
625
- if (u != v && !i)
626
- return !1;
627
- for (var c = u; c--; ) {
628
- var f = a[c];
629
- if (!(i ? f in t : zi.call(t, f)))
630
- return !1;
631
- }
632
- var d = o.get(e), m = o.get(t);
633
- if (d && m)
634
- return d == t && m == e;
635
- var C = !0;
636
- o.set(e, t), o.set(t, e);
637
- for (var S = i; ++c < u; ) {
638
- f = a[c];
639
- var x = e[f], $ = t[f];
640
- if (r)
641
- var b = i ? r($, x, f, t, e, o) : r(x, $, f, e, t, o);
642
- if (!(b === void 0 ? x === $ || l(x, $, n, r, o) : b)) {
643
- C = !1;
644
- break;
645
- }
646
- S || (S = f == "constructor");
647
- }
648
- if (C && !S) {
649
- var P = e.constructor, D = t.constructor;
650
- P != D && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof D == "function" && D instanceof D) && (C = !1);
651
- }
652
- return o.delete(e), o.delete(t), C;
653
- }
654
- var Ii = 1, Ft = "[object Arguments]", Ht = "[object Array]", Ne = "[object Object]", Xi = Object.prototype, Gt = Xi.hasOwnProperty;
655
- function Zi(e, t, n, r, l, o) {
656
- var i = Ue(e), a = Ue(t), u = i ? Ht : W(e), s = a ? Ht : W(t);
657
- u = u == Ft ? Ne : u, s = s == Ft ? Ne : s;
658
- var v = u == Ne, c = s == Ne, f = u == s;
659
- if (f && Ge(e)) {
660
- if (!Ge(t))
661
- return !1;
662
- i = !0, v = !1;
663
- }
664
- if (f && !v)
665
- return o || (o = new oe()), i || ln(e) ? pn(e, t, n, r, l, o) : Gi(e, t, u, n, r, l, o);
666
- if (!(n & Ii)) {
667
- var d = v && Gt.call(e, "__wrapped__"), m = c && Gt.call(t, "__wrapped__");
668
- if (d || m) {
669
- var C = d ? e.value() : e, S = m ? t.value() : t;
670
- return o || (o = new oe()), l(C, S, n, r, o);
671
- }
672
- }
673
- return f ? (o || (o = new oe()), Ji(e, t, n, r, l, o)) : !1;
674
- }
675
- function vn(e, t, n, r, l) {
676
- return e === t ? !0 : e == null || t == null || !pe(e) && !pe(t) ? e !== e && t !== t : Zi(e, t, n, r, vn, l);
677
- }
678
- function We(e, t) {
679
- return vn(e, t);
680
- }
681
- function Wi(e, t) {
682
- const n = [];
683
- let r = [];
684
- e.forEach((i) => {
685
- i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
686
- }), n.sort((i, a) => i.position - a.position), r.sort((i, a) => i.position - a.position);
687
- const l = [];
688
- r.forEach((i) => {
689
- n.find((a) => a.id === i.group) || l.push(i.id);
690
- }), r = r.filter((i) => !l.find((a) => a === i.id));
691
- const o = [];
692
- return n.forEach((i) => {
693
- const a = [];
694
- r.forEach((u) => {
695
- u.group === i.id && (u.show = !i.collapse, a.push(u));
696
- }), i.count = a.length, i.count > 0 && (o.push(i), o.push(...a));
697
- }), o;
698
- }
699
- function mn(e, t) {
700
- return e.value.find((n) => n.id === t);
701
- }
702
- function Yi(e, t, n) {
703
- for (let r = 0; r < e.value.length; r++) {
704
- let l = e.value[r];
705
- if (l.id === t) {
706
- if (l.type !== 0) {
707
- console.assert(!1, "type must be 0");
708
- break;
709
- }
710
- for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
711
- l.show = !n;
712
- break;
713
- }
714
- }
715
- }
716
- const Re = (e, t) => {
717
- let n = { key: "", name: "", children: e };
718
- return t.forEach((r) => {
719
- if (typeof r != "number") {
720
- if (!n) {
721
- console.assert(!1, `unpkgProp invalid prop keys=${t}`);
1
+ import { provide as de, inject as fe, defineComponent as J, ref as O, computed as K, resolveComponent as $, createBlock as B, openBlock as S, unref as C, isRef as pe, withCtx as R, createVNode as A, createElementBlock as H, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as Q, resolveDirective as ne, withDirectives as ee, withModifiers as z, normalizeStyle as I, createElementVNode as F, createCommentVNode as Y, renderSlot as pt, h, mergeModels as W, useModel as G, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as Ae, watchEffect as Ne, watch as ue, useTemplateRef as Re, reactive as yt, onMounted as gt, onBeforeUnmount as ht } from "vue";
2
+ import { useI18n as te } from "vue-i18n";
3
+ import { useViewStack as Se, useColor as ie, eventBus as ae, useSystem as Je, injectDark as _t, injectLocale as kt } from "x-essential-lib";
4
+ import { c as He, i as Ue, m as Xe, a as Fe, b as Vt, d as re, r as ze, v as Ct, e as Ge, f as St } from "./vendor.h3srogcv.js";
5
+ import { getPropDefault as q, pkgs as Ye, parsePixelStr as Ut, parsePercentStr as $t } from "x-runtime-lib";
6
+ import { globalState as xt } from "x-state-lib";
7
+ import { useDisplay as Pt } from "vuetify";
8
+ import { XBlockly as Mt } from "x-block-lib";
9
+ const _e = (o, s) => {
10
+ let t = { key: "", name: "", children: o };
11
+ return s.forEach((e) => {
12
+ if (typeof e != "number") {
13
+ if (!t) {
14
+ console.assert(!1, `unpkgProp invalid prop keys=${s}`);
722
15
  return;
723
16
  }
724
- if (n.ui) {
725
- console.assert(!1, `unpkgProp prop ui must be invalid keys=${t}`);
17
+ if (t.ui) {
18
+ console.assert(!1, `unpkgProp prop ui must be invalid keys=${s}`);
726
19
  return;
727
20
  }
728
- n = n.children.find((l) => l.key === r);
21
+ t = t.children.find((l) => l.key === e);
729
22
  }
730
- }), n;
731
- }, xe = (e, t) => {
732
- let n = e;
733
- return t.forEach((r) => {
734
- if (!n) {
735
- console.assert(!1, `unpkgObject object must be valid keys=${t}`);
23
+ }), t;
24
+ }, ve = (o, s) => {
25
+ let t = o;
26
+ return s.forEach((e) => {
27
+ if (!t) {
28
+ console.assert(!1, `unpkgObject object must be valid keys=${s}`);
736
29
  return;
737
30
  }
738
- n = n[r];
739
- }), n;
740
- }, Kt = (e) => !(e instanceof Array), ot = (e) => e instanceof Array, Qi = (e, t) => {
741
- const n = (r, l) => {
742
- if (r.ui !== l.ui || r.array !== l.array)
31
+ t = t[e];
32
+ }), t;
33
+ }, Oe = (o) => !(o instanceof Array), Me = (o) => o instanceof Array, wt = (o, s) => {
34
+ const t = (e, l) => {
35
+ if (e.ui !== l.ui || e.array !== l.array)
743
36
  return !1;
744
- if (r.ui || l.ui)
37
+ if (e.ui || l.ui)
745
38
  return !0;
746
- if (r.children.length !== l.children.length)
39
+ if (e.children.length !== l.children.length)
747
40
  return !1;
748
- for (let o = 0; o < r.children.length; o++)
749
- if (!n(r.children[o], l.children[o]))
41
+ for (let n = 0; n < e.children.length; n++)
42
+ if (!t(e.children[n], l.children[n]))
750
43
  return !1;
751
44
  return !0;
752
45
  };
753
- return n(e, t);
754
- }, gt = (e) => !(e instanceof Array), Ye = (e) => e instanceof Array, es = [
46
+ return t(o, s);
47
+ }, be = (o) => !(o instanceof Array), $e = (o) => o instanceof Array, Dt = [
755
48
  ["basic", "id"],
756
49
  ["basic", "name"]
757
- ], ts = (e) => es.find((t) => We(e, t)), Qe = (e, t, n, r, l, o, i) => (e = dn(e), o !== void 0 ? (e.push(o), i && e.push(t.key)) : e.push(t.key), ts(e) ? (r.change = !1, r.change) : t.ui ? t.array && r.children && Ye(r.children) ? os(
758
- e,
50
+ ], At = (o) => Dt.find((s) => Ue(o, s)), xe = (o, s, t, e, l, n, i) => (o = He(o), n !== void 0 ? (o.push(n), i && o.push(s.key)) : o.push(s.key), At(o) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && $e(e.children) ? Lt(
51
+ o,
52
+ s,
759
53
  t,
760
- n,
761
- r,
54
+ e,
762
55
  l,
763
- o,
56
+ n,
764
57
  i
765
- ) : ls(t, n, r, o, i) : t.array ? ns(
766
- e,
58
+ ) : Nt(s, t, e, n, i) : s.array ? bt(
59
+ o,
60
+ s,
767
61
  t,
768
- n,
769
- r,
62
+ e,
770
63
  l,
771
- o,
64
+ n,
772
65
  i
773
- ) : rs(
774
- e,
66
+ ) : Tt(
67
+ o,
68
+ s,
775
69
  t,
776
- n,
777
- r,
70
+ e,
778
71
  l,
779
- o,
72
+ n,
780
73
  i
781
- )), ns = (e, t, n, r, l, o, i) => {
782
- if (t.ui)
74
+ )), bt = (o, s, t, e, l, n, i) => {
75
+ if (s.ui)
783
76
  return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
784
- if (!t.array)
77
+ if (!s.array)
785
78
  return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
786
- if (!r.children || !Ye(r.children))
79
+ if (!e.children || !$e(e.children))
787
80
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
788
81
  let a;
789
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = R(t), l == null || l(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = R(t), l == null || l(e, n[t.key])), a = n[t.key]), r.change = !1;
790
- for (let u = 0; u < a.length; u++) {
791
- r.children.push({
82
+ n !== void 0 && !i ? (t[n] instanceof Array || (t[n] = q(s), l == null || l(o, t[n])), a = t[n]) : (t[s.key] instanceof Array || (t[s.key] = q(s), l == null || l(o, t[s.key])), a = t[s.key]), e.change = !1;
83
+ for (let r = 0; r < a.length; r++) {
84
+ e.children.push({
792
85
  change: !1,
793
86
  children: {}
794
87
  });
795
- const s = r.children[u];
796
- t.children.forEach((v) => {
797
- if (!s.children || !gt(s.children)) {
88
+ const u = e.children[r];
89
+ s.children.forEach((g) => {
90
+ if (!u.children || !be(u.children)) {
798
91
  console.assert(!1);
799
92
  return;
800
93
  }
801
- s.children[v.key] = {
94
+ u.children[g.key] = {
802
95
  change: !1,
803
- children: v.array ? [] : {}
804
- }, Qe(
805
- e,
806
- v,
807
- a[u],
808
- s.children[v.key],
96
+ children: g.array ? [] : {}
97
+ }, xe(
98
+ o,
99
+ g,
100
+ a[r],
101
+ u.children[g.key],
809
102
  l,
810
- u,
103
+ r,
811
104
  !0
812
- ) && (s.change = !0), s.change && (r.change = !0);
105
+ ) && (u.change = !0), u.change && (e.change = !0);
813
106
  });
814
107
  }
815
- return r.change || (r.change = !We(a, R(t))), r.change;
816
- }, rs = (e, t, n, r, l, o, i) => {
817
- if (t.ui)
108
+ return e.change || (e.change = !Ue(a, q(s))), e.change;
109
+ }, Tt = (o, s, t, e, l, n, i) => {
110
+ if (s.ui)
818
111
  return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
819
- if (t.array)
112
+ if (s.array)
820
113
  return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
821
- if (!r.children || !gt(r.children))
114
+ if (!e.children || !be(e.children))
822
115
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
823
116
  let a;
824
- o !== void 0 && !i ? (n[o] || (n[o] = {}), a = n[o]) : (n[t.key] || (n[t.key] = {}), a = n[t.key]), r.change = !1;
825
- for (let u = 0; u < t.children.length; u++) {
826
- const s = t.children[u];
827
- r.children[s.key] = {
117
+ n !== void 0 && !i ? (t[n] || (t[n] = {}), a = t[n]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
118
+ for (let r = 0; r < s.children.length; r++) {
119
+ const u = s.children[r];
120
+ e.children[u.key] = {
828
121
  change: !1,
829
- children: s.array ? [] : {}
830
- }, Qe(e, s, a, r.children[s.key], l) && (r.change = !0);
122
+ children: u.array ? [] : {}
123
+ }, xe(o, u, a, e.children[u.key], l) && (e.change = !0);
831
124
  }
832
- return r.change;
833
- }, os = (e, t, n, r, l, o, i) => {
834
- if (!t.ui)
125
+ return e.change;
126
+ }, Lt = (o, s, t, e, l, n, i) => {
127
+ if (!s.ui)
835
128
  return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
836
- if (!t.array)
129
+ if (!s.array)
837
130
  return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
838
- if (!r.children || !Ye(r.children))
131
+ if (!e.children || !$e(e.children))
839
132
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
840
133
  let a;
841
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = R(t), l == null || l(e, n[o])), a = n[o]) : (n[t.key] instanceof Array || (n[t.key] = R(t), l == null || l(e, n[t.key])), a = n[t.key]), r.change = !1;
842
- for (let u = 0; u < a.length; u++)
843
- r.children[u] = {
134
+ n !== void 0 && !i ? (t[n] instanceof Array || (t[n] = q(s), l == null || l(o, t[n])), a = t[n]) : (t[s.key] instanceof Array || (t[s.key] = q(s), l == null || l(o, t[s.key])), a = t[s.key]), e.change = !1;
135
+ for (let r = 0; r < a.length; r++)
136
+ e.children[r] = {
844
137
  change: !1,
845
138
  children: {}
846
- }, Qe(e, t, a, r.children[u], l, u, !1) && (r.change = !0);
847
- return r.change || (r.change = !We(a, R(t))), r.change;
848
- }, ls = (e, t, n, r, l) => {
849
- if (!e.ui)
139
+ }, xe(o, s, a, e.children[r], l, r, !1) && (e.change = !0);
140
+ return e.change || (e.change = !Ue(a, q(s))), e.change;
141
+ }, Nt = (o, s, t, e, l) => {
142
+ if (!o.ui)
850
143
  return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
851
- let o;
852
- return r !== void 0 && !l ? o = t[r] : o = t[e.key], n.change = !We(o, R(e, !0)), n.change;
853
- }, qt = (e, t, n, r) => {
854
- if (t.length <= 0 || !n) {
855
- e.value = {};
144
+ let n;
145
+ return e !== void 0 && !l ? n = s[e] : n = s[o.key], t.change = !Ue(n, q(o, !0)), t.change;
146
+ }, qe = (o, s, t, e) => {
147
+ if (s.length <= 0 || !t) {
148
+ o.value = {};
856
149
  return;
857
150
  }
858
151
  const l = {};
859
- t.forEach((o) => {
860
- l[o.key] = {
152
+ s.forEach((n) => {
153
+ l[n.key] = {
861
154
  change: !1,
862
- children: o.array ? [] : {}
863
- }, Qe([], o, n, l[o.key], r);
864
- }), e.value = l;
865
- }, Te = (e, t) => {
866
- let n = { change: !1, children: e };
867
- return t.forEach((r) => {
868
- if (!n)
869
- return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
870
- if (!n.children)
871
- return console.assert(!1, `isPropChanged state must be valid keys=${t}`), !1;
872
- typeof r == "string" ? gt(n.children) && (n = n.children[r]) : Ye(n.children) && (n = n.children[r]);
873
- }), (n == null ? void 0 : n.change) ?? !1;
874
- }, gn = Symbol(), yn = Symbol(), hn = Symbol(), _n = Symbol(), bn = Symbol(), $n = Symbol();
875
- function is(e) {
876
- we(gn, e);
155
+ children: n.array ? [] : {}
156
+ }, xe([], n, t, l[n.key], e);
157
+ }), o.value = l;
158
+ }, ce = (o, s) => {
159
+ let t = { change: !1, children: o };
160
+ return s.forEach((e) => {
161
+ if (!t)
162
+ return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
163
+ if (!t.children)
164
+ return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
165
+ typeof e == "string" ? be(t.children) && (t = t.children[e]) : $e(t.children) && (t = t.children[e]);
166
+ }), (t == null ? void 0 : t.change) ?? !1;
167
+ }, We = Symbol(), Qe = Symbol(), Ze = Symbol(), Ee = Symbol(), je = Symbol(), Ie = Symbol();
168
+ function Ot(o) {
169
+ de(We, o);
877
170
  }
878
- function yt() {
879
- return Ae(gn);
171
+ function Te() {
172
+ return fe(We);
880
173
  }
881
- function ss(e) {
882
- we(yn, e);
174
+ function qt(o) {
175
+ de(Qe, o);
883
176
  }
884
- function as() {
885
- return Ae(yn);
177
+ function Bt() {
178
+ return fe(Qe);
886
179
  }
887
- function us(e) {
888
- we(hn, e);
180
+ function Kt(o) {
181
+ de(Ze, o);
889
182
  }
890
- function cs() {
891
- return Ae(hn);
183
+ function Rt() {
184
+ return fe(Ze);
892
185
  }
893
- function fs(e) {
894
- we(_n, e);
186
+ function Jt(o) {
187
+ de(Ee, o);
895
188
  }
896
- function ds() {
897
- return Ae(_n);
189
+ function Ht() {
190
+ return fe(Ee);
898
191
  }
899
- function ps(e) {
900
- we(bn, e);
192
+ function Xt(o) {
193
+ de(je, o);
901
194
  }
902
- function vs() {
903
- return Ae(bn);
195
+ function Ft() {
196
+ return fe(je);
904
197
  }
905
- function ms(e) {
906
- we($n, e);
198
+ function zt(o) {
199
+ de(Ie, o);
907
200
  }
908
- function Tn() {
909
- return Ae($n);
201
+ function et() {
202
+ return fe(Ie);
910
203
  }
911
- const gs = /* @__PURE__ */ G({
204
+ const Gt = /* @__PURE__ */ J({
912
205
  __name: "menu",
913
- setup(e) {
914
- const { t } = ie(), n = as(), r = cs(), l = ds(), o = vs(), i = N(0), a = N(0), u = N([]), s = F(() => [i.value, a.value]), v = (S) => {
915
- const x = () => !(u.value.length <= 0 || !Te(l.value, u.value)), $ = () => {
916
- if (!x())
917
- return;
918
- const b = Re(n.value, u.value);
919
- if (b)
920
- if (b.ui) {
921
- const P = xe(r.value, u.value.slice(0, -1));
922
- if (!P)
206
+ setup(o) {
207
+ const { t: s } = te(), t = Bt(), e = Rt(), l = Ht(), n = Ft(), i = O(0), a = O(0), r = O([]), u = K(() => [i.value, a.value]), g = (w) => {
208
+ const T = () => !(r.value.length <= 0 || !ce(l.value, r.value)), P = () => {
209
+ const _ = _e(t.value, r.value);
210
+ if (_)
211
+ if (_.ui) {
212
+ const M = ve(e.value, r.value.slice(0, -1));
213
+ if (!M)
923
214
  return;
924
- P[u.value.at(-1)] = R(b), o(u.value, P[u.value.at(-1)]);
925
- } else if (b.array) {
926
- const P = u.value.at(-1);
927
- if (P === void 0) {
215
+ M[r.value[r.value.length - 1]] = q(_), n(r.value, M[r.value[r.value.length - 1]]);
216
+ } else if (_.array) {
217
+ const M = r.value[r.value.length - 1];
218
+ if (M === void 0) {
928
219
  console.assert(!1, "invalid last key");
929
220
  return;
930
221
  }
931
- if (typeof P == "string") {
932
- const D = xe(r.value, u.value.slice(0, -1));
933
- if (!D)
222
+ if (typeof M == "string") {
223
+ const N = ve(e.value, r.value.slice(0, -1));
224
+ if (!N)
934
225
  return;
935
- D[u.value.at(-1)] = R(b), o(u.value, D[u.value.at(-1)]);
226
+ N[r.value[r.value.length - 1]] = q(_), n(r.value, N[r.value[r.value.length - 1]]);
936
227
  } else {
937
- const D = xe(r.value, u.value);
938
- if (!D)
228
+ const N = ve(e.value, r.value);
229
+ if (!N)
939
230
  return;
940
- b.children.forEach((Q) => {
941
- D[Q.key] = R(b), o([...u.value, Q.key], D[Q.key]);
231
+ _.children.forEach((Z) => {
232
+ N[Z.key] = q(_), n([...r.value, Z.key], N[Z.key]);
942
233
  });
943
234
  }
944
235
  } else {
945
- const P = xe(r.value, u.value);
946
- if (!P)
236
+ const M = ve(e.value, r.value);
237
+ if (!M)
947
238
  return;
948
- b.children.forEach((D) => {
949
- P[D.key] = R(b), o([...u.value, D.key], P[D.key]);
239
+ _.children.forEach((N) => {
240
+ M[N.key] = q(_), n([...r.value, N.key], M[N.key]);
950
241
  });
951
242
  }
952
243
  };
953
- x() && S.push({
954
- title: t("x-prop-tree.reset"),
955
- func: $
244
+ T() && w.push({
245
+ title: s("x-prop-tree.reset"),
246
+ func: P
956
247
  });
957
- }, c = (S) => {
958
- const x = () => {
959
- const $ = Re(n.value, u.value), b = xe(r.value, u.value);
960
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: $, object: b }));
248
+ }, d = (w) => {
249
+ const T = () => {
250
+ const P = _e(t.value, r.value), _ = ve(e.value, r.value);
251
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: P, object: _ }));
961
252
  };
962
- S.push({
963
- title: t("x-prop-tree.copy"),
964
- func: x
253
+ w.push({
254
+ title: s("x-prop-tree.copy"),
255
+ func: T
965
256
  });
966
- }, f = (S) => {
967
- const x = () => {
968
- const b = localStorage.getItem("propTreeCopy");
969
- if (!b)
257
+ }, f = (w) => {
258
+ const T = () => {
259
+ const _ = localStorage.getItem("propTreeCopy");
260
+ if (!_)
970
261
  return !1;
971
262
  try {
972
- const { prop: P } = JSON.parse(b), D = Re(n.value, u.value);
973
- return Qi(P, D);
974
- } catch (P) {
975
- console.error(P);
263
+ const { prop: M } = JSON.parse(_), N = _e(t.value, r.value);
264
+ return wt(M, N);
265
+ } catch (M) {
266
+ console.error(M);
976
267
  }
977
268
  return !1;
978
- }, $ = () => {
979
- if (!x())
269
+ }, P = () => {
270
+ if (!T())
980
271
  return;
981
- const b = localStorage.getItem("propTreeCopy");
982
- if (b)
272
+ const _ = localStorage.getItem("propTreeCopy");
273
+ if (_)
983
274
  try {
984
- const { object: P } = JSON.parse(b), D = Re(n.value, u.value);
985
- console.log(P, D);
986
- } catch (P) {
987
- console.error(P);
275
+ const { object: M } = JSON.parse(_), N = _e(t.value, r.value);
276
+ console.log(M, N);
277
+ } catch (M) {
278
+ console.error(M);
988
279
  }
989
280
  };
990
- x() && S.push({
991
- title: t("x-prop-tree.paste"),
992
- func: $
281
+ T() && w.push({
282
+ title: s("x-prop-tree.paste"),
283
+ func: P
993
284
  });
994
- }, d = F(() => {
995
- const S = [];
996
- return v(S), c(S), f(S), S;
997
- }), m = (S) => {
998
- i.value = S.x, a.value = S.y, u.value = S.keys;
999
- }, { open: C } = Je("propTreeMenu", m);
1000
- return (S, x) => {
1001
- const $ = V("v-list-item-title"), b = V("v-list-item"), P = V("v-list"), D = V("v-menu");
1002
- return A(), B(D, {
1003
- modelValue: w(C),
1004
- "onUpdate:modelValue": x[0] || (x[0] = (Q) => Ve(C) ? C.value = Q : null),
285
+ }, m = K(() => {
286
+ const w = [];
287
+ return g(w), d(w), f(w), w;
288
+ }), k = (w) => {
289
+ i.value = w.x, a.value = w.y, r.value = w.keys;
290
+ }, { open: L } = Se("propTreeMenu", k);
291
+ return (w, T) => {
292
+ const P = $("v-list-item-title"), _ = $("v-list-item"), M = $("v-list"), N = $("v-menu");
293
+ return S(), B(N, {
294
+ modelValue: C(L),
295
+ "onUpdate:modelValue": T[0] || (T[0] = (Z) => pe(L) ? L.value = Z : null),
1005
296
  "location-strategy": "connected",
1006
- target: s.value,
297
+ target: u.value,
1007
298
  scrim: "transparent"
1008
299
  }, {
1009
- default: H(() => [
1010
- k(P, null, {
1011
- default: H(() => [
1012
- (A(!0), K(He, null, zt(d.value, (Q, et) => (A(), B(b, {
1013
- key: et,
300
+ default: R(() => [
301
+ A(M, null, {
302
+ default: R(() => [
303
+ (S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(_, {
304
+ key: Pe,
1014
305
  link: "",
1015
- onClick: Q.func
306
+ onClick: Z.func
1016
307
  }, {
1017
- default: H(() => [
1018
- k($, null, {
1019
- default: H(() => [
1020
- ze(Y(Q.title), 1)
308
+ default: R(() => [
309
+ A(P, null, {
310
+ default: R(() => [
311
+ Ce(Q(Z.title), 1)
1021
312
  ]),
1022
313
  _: 2
1023
314
  }, 1024)
@@ -1032,9 +323,7 @@ const gs = /* @__PURE__ */ G({
1032
323
  }, 8, ["modelValue", "target"]);
1033
324
  };
1034
325
  }
1035
- });
1036
- var Sn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", wn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", An = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", _e = "M19,13H5V11H19V13Z", ys = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
1037
- const Be = /* @__PURE__ */ G({
326
+ }), ke = /* @__PURE__ */ J({
1038
327
  __name: "title",
1039
328
  props: {
1040
329
  title: {},
@@ -1044,218 +333,218 @@ const Be = /* @__PURE__ */ G({
1044
333
  index: { default: 0 }
1045
334
  },
1046
335
  emits: ["collapse", "menu", "create", "delete"],
1047
- setup(e, { emit: t }) {
1048
- const { backgroundColor2: n, highlightColor: r } = me(), l = t, o = N(!1), i = F(() => ({
1049
- background: o.value ? r.value : n.value,
336
+ setup(o, { emit: s }) {
337
+ const { backgroundColor2: t, highlightColor: e } = ie(), l = s, n = O(!1), i = K(() => ({
338
+ background: n.value ? e.value : t.value,
1050
339
  height: "36px",
1051
340
  marginBottom: "1px",
1052
341
  userSelect: "none"
1053
342
  })), a = () => {
1054
- l("collapse", !e.collapse);
1055
- }, u = (s) => {
1056
- l("menu", s.clientX, s.clientY);
343
+ l("collapse", !o.collapse);
344
+ }, r = (u) => {
345
+ l("menu", u.clientX, u.clientY);
1057
346
  };
1058
- return (s, v) => {
1059
- const c = V("v-icon"), f = V("v-spacer"), d = V("v-btn"), m = ce("ripple");
1060
- return le((A(), K("div", {
347
+ return (u, g) => {
348
+ const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k = ne("ripple");
349
+ return ee((S(), H("div", {
1061
350
  class: "d-flex align-center cursor-pointer",
1062
- style: re(i.value),
351
+ style: I(i.value),
1063
352
  onClick: a,
1064
- onContextmenu: J(u, ["self", "prevent"]),
1065
- onMouseover: v[2] || (v[2] = (C) => o.value = !0),
1066
- onMouseout: v[3] || (v[3] = (C) => o.value = !1)
353
+ onContextmenu: z(r, ["self", "prevent"]),
354
+ onMouseover: g[2] || (g[2] = (L) => n.value = !0),
355
+ onMouseout: g[3] || (g[3] = (L) => n.value = !1)
1067
356
  }, [
1068
- k(c, {
357
+ A(d, {
1069
358
  class: "mr-1",
1070
- icon: s.collapse ? w(wn) : w(Sn)
359
+ icon: u.collapse ? C(Xe) : C(Fe)
1071
360
  }, null, 8, ["icon"]),
1072
- z("span", null, Y(s.title), 1),
1073
- k(f),
1074
- s.hasCreate ? (A(), B(d, {
361
+ F("span", null, Q(u.title), 1),
362
+ A(f),
363
+ u.hasCreate ? (S(), B(m, {
1075
364
  key: 0,
1076
365
  class: "mx-3",
1077
366
  variant: "text",
1078
367
  density: "compact",
1079
- icon: w(ys),
1080
- onClick: v[0] || (v[0] = J((C) => l("create"), ["stop"]))
1081
- }, null, 8, ["icon"])) : X("", !0),
1082
- s.hasDelete ? (A(), B(d, {
368
+ icon: C(Vt),
369
+ onClick: g[0] || (g[0] = z((L) => l("create"), ["stop"]))
370
+ }, null, 8, ["icon"])) : Y("", !0),
371
+ u.hasDelete ? (S(), B(m, {
1083
372
  key: 1,
1084
373
  class: "mx-3",
1085
374
  variant: "text",
1086
375
  density: "compact",
1087
- icon: w(_e),
1088
- onClick: v[1] || (v[1] = J((C) => l("delete", s.index), ["stop"]))
1089
- }, null, 8, ["icon"])) : X("", !0)
376
+ icon: C(re),
377
+ onClick: g[1] || (g[1] = z((L) => l("delete", u.index), ["stop"]))
378
+ }, null, 8, ["icon"])) : Y("", !0)
1090
379
  ], 36)), [
1091
- [m]
380
+ [k]
1092
381
  ]);
1093
382
  };
1094
383
  }
1095
- }), hs = /* @__PURE__ */ G({
384
+ }), Yt = /* @__PURE__ */ J({
1096
385
  __name: "entry",
1097
386
  props: {
1098
387
  minHeight: {}
1099
388
  },
1100
389
  emits: ["menu"],
1101
- setup(e, { emit: t }) {
1102
- const { backgroundColor2: n, highlightColor: r } = me(), l = t, o = N(!1), i = F(() => ({
1103
- background: o.value ? r.value : n.value,
1104
- minHeight: e.minHeight,
390
+ setup(o, { emit: s }) {
391
+ const { backgroundColor2: t, highlightColor: e } = ie(), l = s, n = O(!1), i = K(() => ({
392
+ background: n.value ? e.value : t.value,
393
+ minHeight: o.minHeight,
1105
394
  paddingRight: "4px",
1106
395
  marginBottom: "1px",
1107
396
  userSelect: "none"
1108
- })), a = (u) => {
1109
- l("menu", u.clientX, u.clientY);
397
+ })), a = (r) => {
398
+ l("menu", r.clientX, r.clientY);
1110
399
  };
1111
- return (u, s) => {
1112
- const v = ce("ripple");
1113
- return le((A(), K("div", {
400
+ return (r, u) => {
401
+ const g = ne("ripple");
402
+ return ee((S(), H("div", {
1114
403
  class: "d-flex justify-space-between align-center cursor-pointer",
1115
- style: re(i.value),
1116
- onContextmenu: J(a, ["self", "prevent"]),
1117
- onMouseover: s[0] || (s[0] = (c) => o.value = !0),
1118
- onMouseout: s[1] || (s[1] = (c) => o.value = !1)
404
+ style: I(i.value),
405
+ onContextmenu: z(a, ["self", "prevent"]),
406
+ onMouseover: u[0] || (u[0] = (d) => n.value = !0),
407
+ onMouseout: u[1] || (u[1] = (d) => n.value = !1)
1119
408
  }, [
1120
- Bn(u.$slots, "default")
409
+ pt(r.$slots, "default")
1121
410
  ], 36)), [
1122
- [v]
411
+ [g]
1123
412
  ]);
1124
413
  };
1125
414
  }
1126
415
  });
1127
- function _s(e, t, n) {
1128
- const { t: r } = ie();
1129
- return { renderProp: (o, i, a) => {
1130
- const u = o.at(-1);
1131
- let v = typeof u == "number" ? `[${u + 1}]` : r(i.name);
1132
- return Te(e.value, o) && (v += " *"), _(
1133
- hs,
416
+ function Wt(o, s, t) {
417
+ const { t: e } = te();
418
+ return { renderProp: (n, i, a) => {
419
+ const r = n[n.length - 1];
420
+ let g = typeof r == "number" ? `[${r + 1}]` : e(i.name);
421
+ return ce(o.value, n) && (g += " *"), h(
422
+ Yt,
1134
423
  {
1135
- minHeight: t.value,
1136
- onMenu: (c, f) => {
1137
- $e.emit("propTreeMenu", { x: c, y: f, keys: o });
424
+ minHeight: s.value,
425
+ onMenu: (d, f) => {
426
+ ae.emit("propTreeMenu", { x: d, y: f, keys: n });
1138
427
  }
1139
428
  },
1140
429
  () => [
1141
- _("span", { class: "ml-1", innerHTML: v }),
1142
- _("div", { style: { width: n.value } }, a)
430
+ h("span", { class: "ml-1", innerHTML: g }),
431
+ h("div", { style: { width: t.value } }, a)
1143
432
  ]
1144
433
  );
1145
434
  } };
1146
435
  }
1147
- const ae = (e, t, n, r, l, o) => {
436
+ const le = (o, s, t, e, l, n) => {
1148
437
  if (l !== void 0)
1149
- if (o) {
1150
- if (n[t.key] === void 0) {
1151
- const i = R(t);
1152
- i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
438
+ if (n) {
439
+ if (t[s.key] === void 0) {
440
+ const i = q(s);
441
+ i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
1153
442
  }
1154
- return n[t.key];
443
+ return t[s.key];
1155
444
  } else {
1156
- if (n[l] === void 0) {
1157
- const i = R(t, !0);
1158
- i !== void 0 && (n[l] = i, r(e, n[l]));
445
+ if (t[l] === void 0) {
446
+ const i = q(s, !0);
447
+ i !== void 0 && (t[l] = i, e(o, t[l]));
1159
448
  }
1160
- return n[l];
449
+ return t[l];
1161
450
  }
1162
451
  else {
1163
- if (n[t.key] === void 0) {
1164
- const i = R(t);
1165
- i !== void 0 && (n[t.key] = i, r(e, n[t.key]));
452
+ if (t[s.key] === void 0) {
453
+ const i = q(s);
454
+ i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
1166
455
  }
1167
- return n[t.key];
456
+ return t[s.key];
1168
457
  }
1169
- }, fe = (e, t, n, r, l, o, i) => {
1170
- if (o !== void 0)
1171
- i ? r !== n[t.key] && (n[t.key] = r, l(e, n[t.key])) : r !== n[o] && (n[o] = r, l(e, n[o]));
458
+ }, oe = (o, s, t, e, l, n, i) => {
459
+ if (n !== void 0)
460
+ i ? e !== t[s.key] && (t[s.key] = e, l(o, t[s.key])) : e !== t[n] && (t[n] = e, l(o, t[n]));
1172
461
  else {
1173
- let a = r;
1174
- (t.ui === "switch" || t.ui === "select" || t.ui === "colorPicker" || t.ui === "multiTypes" || t.ui === "compSelect") && (r || (a = void 0)), a !== n[t.key] && (n[t.key] = a, l(e, n[t.key]));
462
+ let a = e;
463
+ (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (a = void 0)), a !== t[s.key] && (t[s.key] = a, l(o, t[s.key]));
1175
464
  }
1176
465
  };
1177
- function bs(e) {
1178
- return { renderUiDummy: (n, r, l, o, i) => {
1179
- if (r.ui !== "dummy") {
466
+ function Qt(o) {
467
+ return { renderUiDummy: (t, e, l, n, i) => {
468
+ if (e.ui !== "dummy") {
1180
469
  console.assert(!1, "renderUiDummy prop ui must be dummy");
1181
470
  return;
1182
471
  }
1183
- ae(n, r, l, e, o, i);
472
+ le(t, e, l, o, n, i);
1184
473
  } };
1185
474
  }
1186
- const $s = { class: "d-flex justify-space-between align-center" }, Ts = /* @__PURE__ */ G({
475
+ const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ J({
1187
476
  __name: "strInput",
1188
- props: /* @__PURE__ */ Z({
477
+ props: /* @__PURE__ */ W({
1189
478
  hasDelete: { type: Boolean, default: !1 },
1190
479
  readonly: { type: Boolean, default: !1 }
1191
480
  }, {
1192
481
  modelValue: { required: !0 },
1193
482
  modelModifiers: {}
1194
483
  }),
1195
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1196
- setup(e, { emit: t }) {
1197
- const n = I(e, "modelValue"), r = t;
1198
- return (l, o) => {
1199
- const i = V("v-text-field"), a = V("v-btn"), u = ce("ripple");
1200
- return A(), K("div", $s, [
1201
- le(k(i, {
1202
- modelValue: n.value,
1203
- "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
484
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
485
+ setup(o, { emit: s }) {
486
+ const t = G(o, "modelValue"), e = s;
487
+ return (l, n) => {
488
+ const i = $("v-text-field"), a = $("v-btn"), r = ne("ripple");
489
+ return S(), H("div", Zt, [
490
+ ee(A(i, {
491
+ modelValue: t.value,
492
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u),
1204
493
  density: "compact",
1205
494
  "hide-details": "",
1206
495
  "single-line": "",
1207
496
  readonly: l.readonly
1208
497
  }, null, 8, ["modelValue", "readonly"]), [
1209
498
  [
1210
- u,
499
+ r,
1211
500
  void 0,
1212
501
  void 0,
1213
502
  { stop: !0 }
1214
503
  ]
1215
504
  ]),
1216
- l.hasDelete ? (A(), B(a, {
505
+ l.hasDelete ? (S(), B(a, {
1217
506
  key: 0,
1218
507
  class: "mx-2",
1219
508
  variant: "text",
1220
509
  density: "compact",
1221
- icon: w(_e),
1222
- onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1223
- }, null, 8, ["icon"])) : X("", !0)
510
+ icon: C(re),
511
+ onClick: n[1] || (n[1] = z((u) => e("delete"), ["stop"]))
512
+ }, null, 8, ["icon"])) : Y("", !0)
1224
513
  ]);
1225
514
  };
1226
515
  }
1227
516
  });
1228
- function Ss(e) {
1229
- return { renderUiStrInput: (n, r, l, o, i) => r.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Ts, {
1230
- modelValue: r.static ? r.value : ae(
1231
- n,
1232
- r,
1233
- l,
517
+ function jt(o) {
518
+ return { renderUiStrInput: (t, e, l, n, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Et, {
519
+ modelValue: e.static ? e.value : le(
520
+ t,
1234
521
  e,
522
+ l,
1235
523
  o,
524
+ n,
1236
525
  i
1237
526
  ),
1238
527
  "onUpdate:modelValue": (a) => {
1239
- r.static || fe(
1240
- n,
1241
- r,
528
+ e.static || oe(
529
+ t,
530
+ e,
1242
531
  l,
1243
532
  a,
1244
- e,
1245
533
  o,
534
+ n,
1246
535
  i
1247
536
  );
1248
537
  },
1249
- hasDelete: o !== void 0 && !i,
538
+ hasDelete: n !== void 0 && !i,
1250
539
  onDelete: () => {
1251
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
540
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
1252
541
  },
1253
- readonly: r.static || r.readonly
542
+ readonly: e.static || e.readonly
1254
543
  }) };
1255
544
  }
1256
- const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PURE__ */ G({
545
+ const It = { class: "d-flex justify-space-between align-center" }, el = /* @__PURE__ */ J({
1257
546
  __name: "numInput",
1258
- props: /* @__PURE__ */ Z({
547
+ props: /* @__PURE__ */ W({
1259
548
  hasDelete: { type: Boolean, default: !1 },
1260
549
  precision: { default: () => {
1261
550
  } },
@@ -1267,15 +556,15 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
1267
556
  modelValue: { required: !0 },
1268
557
  modelModifiers: {}
1269
558
  }),
1270
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1271
- setup(e, { emit: t }) {
1272
- const n = I(e, "modelValue"), r = t;
1273
- return (l, o) => {
1274
- const i = V("v-number-input"), a = V("v-btn"), u = ce("ripple");
1275
- return A(), K("div", ws, [
1276
- le(k(i, {
1277
- modelValue: n.value,
1278
- "onUpdate:modelValue": o[0] || (o[0] = (s) => n.value = s),
559
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
560
+ setup(o, { emit: s }) {
561
+ const t = G(o, "modelValue"), e = s;
562
+ return (l, n) => {
563
+ const i = $("v-number-input"), a = $("v-btn"), r = ne("ripple");
564
+ return S(), H("div", It, [
565
+ ee(A(i, {
566
+ modelValue: t.value,
567
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u),
1279
568
  density: "compact",
1280
569
  "control-variant": "stacked",
1281
570
  precision: l.precision,
@@ -1287,123 +576,123 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
1287
576
  readonly: l.readonly
1288
577
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
1289
578
  [
1290
- u,
579
+ r,
1291
580
  void 0,
1292
581
  void 0,
1293
582
  { stop: !0 }
1294
583
  ]
1295
584
  ]),
1296
- l.hasDelete ? (A(), B(a, {
585
+ l.hasDelete ? (S(), B(a, {
1297
586
  key: 0,
1298
587
  class: "mx-2",
1299
588
  variant: "text",
1300
589
  density: "compact",
1301
- icon: w(_e),
1302
- onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1303
- }, null, 8, ["icon"])) : X("", !0)
590
+ icon: C(re),
591
+ onClick: n[1] || (n[1] = z((u) => e("delete"), ["stop"]))
592
+ }, null, 8, ["icon"])) : Y("", !0)
1304
593
  ]);
1305
594
  };
1306
595
  }
1307
596
  });
1308
- function Cs(e) {
1309
- return { renderUiNumInput: (n, r, l, o, i) => r.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(As, {
1310
- modelValue: ae(
1311
- n,
1312
- r,
1313
- l,
597
+ function tl(o) {
598
+ return { renderUiNumInput: (t, e, l, n, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(el, {
599
+ modelValue: le(
600
+ t,
1314
601
  e,
602
+ l,
1315
603
  o,
604
+ n,
1316
605
  i
1317
606
  ),
1318
607
  "onUpdate:modelValue": (a) => {
1319
- fe(
1320
- n,
1321
- r,
608
+ oe(
609
+ t,
610
+ e,
1322
611
  l,
1323
612
  a,
1324
- e,
1325
613
  o,
614
+ n,
1326
615
  i
1327
616
  );
1328
617
  },
1329
- hasDelete: o !== void 0 && !i,
618
+ hasDelete: n !== void 0 && !i,
1330
619
  onDelete: () => {
1331
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
620
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
1332
621
  },
1333
- precision: r.precision,
1334
- min: r.min,
1335
- max: r.max,
1336
- step: r.step,
1337
- readonly: r.readonly
622
+ precision: e.precision,
623
+ min: e.min,
624
+ max: e.max,
625
+ step: e.step,
626
+ readonly: e.readonly
1338
627
  }) };
1339
628
  }
1340
- const Ps = { class: "d-flex justify-space-between align-center" }, xs = /* @__PURE__ */ G({
629
+ const ll = { class: "d-flex justify-space-between align-center" }, nl = /* @__PURE__ */ J({
1341
630
  __name: "switch",
1342
- props: /* @__PURE__ */ Z({
631
+ props: /* @__PURE__ */ W({
1343
632
  hasDelete: { type: Boolean, default: !1 },
1344
633
  readonly: { type: Boolean, default: !1 }
1345
634
  }, {
1346
635
  modelValue: { type: Boolean },
1347
636
  modelModifiers: {}
1348
637
  }),
1349
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1350
- setup(e, { emit: t }) {
1351
- const n = I(e, "modelValue"), r = t;
1352
- return (l, o) => {
1353
- const i = V("v-switch"), a = V("v-btn");
1354
- return A(), K("div", Ps, [
1355
- k(i, {
1356
- modelValue: n.value,
1357
- "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
638
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
639
+ setup(o, { emit: s }) {
640
+ const t = G(o, "modelValue"), e = s;
641
+ return (l, n) => {
642
+ const i = $("v-switch"), a = $("v-btn");
643
+ return S(), H("div", ll, [
644
+ A(i, {
645
+ modelValue: t.value,
646
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
1358
647
  class: "ml-1",
1359
648
  density: "compact",
1360
649
  color: "primary",
1361
650
  "hide-details": "",
1362
651
  readonly: l.readonly
1363
652
  }, null, 8, ["modelValue", "readonly"]),
1364
- l.hasDelete ? (A(), B(a, {
653
+ l.hasDelete ? (S(), B(a, {
1365
654
  key: 0,
1366
655
  class: "mx-2",
1367
656
  variant: "text",
1368
657
  density: "compact",
1369
- icon: w(_e),
1370
- onClick: o[1] || (o[1] = J((u) => r("delete"), ["stop"]))
1371
- }, null, 8, ["icon"])) : X("", !0)
658
+ icon: C(re),
659
+ onClick: n[1] || (n[1] = z((r) => e("delete"), ["stop"]))
660
+ }, null, 8, ["icon"])) : Y("", !0)
1372
661
  ]);
1373
662
  };
1374
663
  }
1375
664
  });
1376
- function Os(e) {
1377
- return { renderUiSwitch: (n, r, l, o, i) => r.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(xs, {
1378
- modelValue: ae(
1379
- n,
1380
- r,
1381
- l,
665
+ function ol(o) {
666
+ return { renderUiSwitch: (t, e, l, n, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(nl, {
667
+ modelValue: le(
668
+ t,
1382
669
  e,
670
+ l,
1383
671
  o,
672
+ n,
1384
673
  i
1385
674
  ) ?? !1,
1386
675
  "onUpdate:modelValue": (a) => {
1387
- fe(
1388
- n,
1389
- r,
676
+ oe(
677
+ t,
678
+ e,
1390
679
  l,
1391
680
  a,
1392
- e,
1393
681
  o,
682
+ n,
1394
683
  i
1395
684
  );
1396
685
  },
1397
- hasDelete: o !== void 0 && !i,
686
+ hasDelete: n !== void 0 && !i,
1398
687
  onDelete: () => {
1399
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, 1), l));
688
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, 1), l));
1400
689
  },
1401
- readonly: r.readonly
690
+ readonly: e.readonly
1402
691
  }) };
1403
692
  }
1404
- const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PURE__ */ G({
693
+ const sl = { class: "d-flex justify-space-between align-center" }, il = /* @__PURE__ */ J({
1405
694
  __name: "select",
1406
- props: /* @__PURE__ */ Z({
695
+ props: /* @__PURE__ */ W({
1407
696
  hasDelete: { type: Boolean, default: !1 },
1408
697
  readonly: { type: Boolean, default: !1 },
1409
698
  items: {}
@@ -1411,21 +700,21 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
1411
700
  modelValue: {},
1412
701
  modelModifiers: {}
1413
702
  }),
1414
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1415
- setup(e, { emit: t }) {
1416
- const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = yt(), i = F(() => {
1417
- var u;
703
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
704
+ setup(o, { emit: s }) {
705
+ const { t } = te(), e = G(o, "modelValue"), l = s, n = Te(), i = K(() => {
706
+ var r;
1418
707
  const a = [];
1419
- return (u = Zt[o.value]) == null || u.items[e.items].forEach(({ title: s, value: v }) => {
1420
- a.push({ title: n(s), value: v });
708
+ return (r = Ye[n.value]) == null || r.items[o.items].forEach(({ title: u, value: g }) => {
709
+ a.push({ title: t(u), value: g });
1421
710
  }), a;
1422
711
  });
1423
- return (a, u) => {
1424
- const s = V("v-select"), v = V("v-btn"), c = ce("ripple");
1425
- return A(), K("div", Vs, [
1426
- le(k(s, {
1427
- modelValue: r.value,
1428
- "onUpdate:modelValue": u[0] || (u[0] = (f) => r.value = f),
712
+ return (a, r) => {
713
+ const u = $("v-select"), g = $("v-btn"), d = ne("ripple");
714
+ return S(), H("div", sl, [
715
+ ee(A(u, {
716
+ modelValue: e.value,
717
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
1429
718
  density: "compact",
1430
719
  items: i.value,
1431
720
  "hide-details": "",
@@ -1433,54 +722,54 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
1433
722
  readonly: a.readonly
1434
723
  }, null, 8, ["modelValue", "items", "readonly"]), [
1435
724
  [
1436
- c,
725
+ d,
1437
726
  void 0,
1438
727
  void 0,
1439
728
  { stop: !0 }
1440
729
  ]
1441
730
  ]),
1442
- a.hasDelete ? (A(), B(v, {
731
+ a.hasDelete ? (S(), B(g, {
1443
732
  key: 0,
1444
733
  class: "mx-2",
1445
734
  variant: "text",
1446
735
  density: "compact",
1447
- icon: w(_e),
1448
- onClick: u[1] || (u[1] = J((f) => l("delete"), ["stop"]))
1449
- }, null, 8, ["icon"])) : X("", !0)
736
+ icon: C(re),
737
+ onClick: r[1] || (r[1] = z((f) => l("delete"), ["stop"]))
738
+ }, null, 8, ["icon"])) : Y("", !0)
1450
739
  ]);
1451
740
  };
1452
741
  }
1453
742
  });
1454
- function Ms(e) {
1455
- return { renderUiSelect: (n, r, l, o, i) => r.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(Us, {
1456
- modelValue: ae(
1457
- n,
1458
- r,
1459
- l,
743
+ function rl(o) {
744
+ return { renderUiSelect: (t, e, l, n, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(il, {
745
+ modelValue: le(
746
+ t,
1460
747
  e,
748
+ l,
1461
749
  o,
750
+ n,
1462
751
  i
1463
752
  ) ?? "",
1464
753
  "onUpdate:modelValue": (a) => {
1465
- fe(
1466
- n,
1467
- r,
754
+ oe(
755
+ t,
756
+ e,
1468
757
  l,
1469
758
  a,
1470
- e,
1471
759
  o,
760
+ n,
1472
761
  i
1473
762
  );
1474
763
  },
1475
- hasDelete: o !== void 0 && !i,
764
+ hasDelete: n !== void 0 && !i,
1476
765
  onDelete: () => {
1477
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
766
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
1478
767
  },
1479
- items: r.items,
1480
- readonly: r.readonly
768
+ items: e.items,
769
+ readonly: e.readonly
1481
770
  }) };
1482
771
  }
1483
- const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-grey ml-1" }, js = /* @__PURE__ */ G({
772
+ const ul = { class: "text-subtitle-2 ml-1" }, al = { class: "text-caption text-grey ml-1" }, cl = /* @__PURE__ */ J({
1484
773
  __name: "group",
1485
774
  props: {
1486
775
  id: {},
@@ -1489,66 +778,66 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1489
778
  count: {}
1490
779
  },
1491
780
  emits: ["x-click"],
1492
- setup(e, { emit: t }) {
1493
- const { backgroundColor2: n, highlightColor: r } = me(), l = e, o = t, i = N(!1), a = F(() => ({
1494
- background: i.value ? r.value : n.value,
781
+ setup(o, { emit: s }) {
782
+ const { backgroundColor2: t, highlightColor: e } = ie(), l = o, n = s, i = O(!1), a = K(() => ({
783
+ background: i.value ? e.value : t.value,
1495
784
  height: "30px",
1496
785
  marginBottom: "1px",
1497
786
  userSelect: "none"
1498
787
  }));
1499
- return (u, s) => {
1500
- const v = V("v-icon"), c = ce("ripple");
1501
- return le((A(), K("div", {
788
+ return (r, u) => {
789
+ const g = $("v-icon"), d = ne("ripple");
790
+ return ee((S(), H("div", {
1502
791
  class: "d-flex align-center cursor-pointer",
1503
- style: re(a.value),
1504
- onClick: s[0] || (s[0] = (f) => o("x-click", l.id)),
1505
- onMouseover: s[1] || (s[1] = (f) => i.value = !0),
1506
- onMouseout: s[2] || (s[2] = (f) => i.value = !1)
792
+ style: I(a.value),
793
+ onClick: u[0] || (u[0] = (f) => n("x-click", l.id)),
794
+ onMouseover: u[1] || (u[1] = (f) => i.value = !0),
795
+ onMouseout: u[2] || (u[2] = (f) => i.value = !1)
1507
796
  }, [
1508
- k(v, {
1509
- icon: l.collapse ? w(wn) : w(Sn),
797
+ A(g, {
798
+ icon: l.collapse ? C(Xe) : C(Fe),
1510
799
  size: "small"
1511
800
  }, null, 8, ["icon"]),
1512
- z("span", Ls, Y(l.title), 1),
1513
- z("span", Ds, Y(l.count), 1)
801
+ F("span", ul, Q(l.title), 1),
802
+ F("span", al, Q(l.count), 1)
1514
803
  ], 36)), [
1515
- [c]
804
+ [d]
1516
805
  ]);
1517
806
  };
1518
807
  }
1519
- }), ks = { class: "text-subtitle-1 ml-6" }, Es = /* @__PURE__ */ G({
808
+ }), dl = { class: "text-subtitle-1 ml-6" }, fl = /* @__PURE__ */ J({
1520
809
  __name: "item",
1521
810
  props: {
1522
811
  id: {},
1523
812
  title: {}
1524
813
  },
1525
814
  emits: ["x-click"],
1526
- setup(e, { emit: t }) {
1527
- const { backgroundColor2: n, highlightColor: r } = me(), l = e, o = t, i = N(!1), a = F(() => ({
1528
- background: i.value ? r.value : n.value,
815
+ setup(o, { emit: s }) {
816
+ const { backgroundColor2: t, highlightColor: e } = ie(), l = o, n = s, i = O(!1), a = K(() => ({
817
+ background: i.value ? e.value : t.value,
1529
818
  height: "48px",
1530
819
  marginBottom: "1px",
1531
820
  userSelect: "none"
1532
821
  }));
1533
- return (u, s) => {
1534
- const v = ce("ripple");
1535
- return le((A(), K("div", {
822
+ return (r, u) => {
823
+ const g = ne("ripple");
824
+ return ee((S(), H("div", {
1536
825
  class: "d-flex align-center cursor-pointer",
1537
- style: re(a.value),
1538
- onClick: s[0] || (s[0] = (c) => o("x-click", l.id)),
1539
- onMouseover: s[1] || (s[1] = (c) => i.value = !0),
1540
- onMouseout: s[2] || (s[2] = (c) => i.value = !1)
826
+ style: I(a.value),
827
+ onClick: u[0] || (u[0] = (d) => n("x-click", l.id)),
828
+ onMouseover: u[1] || (u[1] = (d) => i.value = !0),
829
+ onMouseout: u[2] || (u[2] = (d) => i.value = !1)
1541
830
  }, [
1542
- z("span", ks, Y(l.title), 1)
831
+ F("span", dl, Q(l.title), 1)
1543
832
  ], 36)), [
1544
- [v]
833
+ [g]
1545
834
  ]);
1546
835
  };
1547
836
  }
1548
- }), Ns = { key: 0 }, Rs = {
837
+ }), ml = { key: 0 }, vl = {
1549
838
  key: 1,
1550
839
  class: "text-body-2 text-grey ml-3"
1551
- }, Bs = /* @__PURE__ */ G({
840
+ }, pl = /* @__PURE__ */ J({
1552
841
  __name: "index",
1553
842
  props: {
1554
843
  modelValue: {},
@@ -1557,128 +846,128 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1557
846
  openModifiers: {}
1558
847
  },
1559
848
  emits: ["update:modelValue", "update:open"],
1560
- setup(e) {
1561
- const { t } = ie(), n = I(e, "modelValue"), r = I(e, "open"), l = Tn(), o = (a) => {
1562
- const u = mn(l, a);
1563
- u && Yi(l, a, !u.collapse);
849
+ setup(o) {
850
+ const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), l = et(), n = (a) => {
851
+ const r = ze(l, a);
852
+ r && Ct(l, a, !r.collapse);
1564
853
  }, i = (a) => {
1565
- n.value = a, r.value = !1, $e.emit("refreshDepends");
854
+ t.value = a, e.value = !1, ae.emit("refreshDepends");
1566
855
  };
1567
- return (a, u) => w(l).length > 0 ? (A(), K("div", Ns, [
1568
- (A(!0), K(He, null, zt(w(l), (s) => (A(), K(He, {
1569
- key: s.id
856
+ return (a, r) => C(l).length > 0 ? (S(), H("div", ml, [
857
+ (S(!0), H(Ve, null, Be(C(l), (u) => (S(), H(Ve, {
858
+ key: u.id
1570
859
  }, [
1571
- s.type === 0 ? (A(), B(js, {
860
+ u.type === 0 ? (S(), B(cl, {
1572
861
  key: 0,
1573
- id: s.id,
1574
- title: s.name,
1575
- collapse: s.collapse,
1576
- count: s.count ?? 0,
1577
- onXClick: o
1578
- }, null, 8, ["id", "title", "collapse", "count"])) : X("", !0),
1579
- s.type === 1 && s.show ? (A(), B(Es, {
862
+ id: u.id,
863
+ title: u.name,
864
+ collapse: u.collapse,
865
+ count: u.count ?? 0,
866
+ onXClick: n
867
+ }, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
868
+ u.type === 1 && u.show ? (S(), B(fl, {
1580
869
  key: 1,
1581
- id: s.id,
1582
- title: s.name,
870
+ id: u.id,
871
+ title: u.name,
1583
872
  onXClick: i
1584
- }, null, 8, ["id", "title"])) : X("", !0)
873
+ }, null, 8, ["id", "title"])) : Y("", !0)
1585
874
  ], 64))), 128))
1586
- ])) : (A(), K("div", Rs, Y(w(t)("x-prop-tree.noComp")), 1));
875
+ ])) : (S(), H("div", vl, Q(C(s)("x-prop-tree.noComp")), 1));
1587
876
  }
1588
- }), Fs = { class: "text-subtitle-1 ml-3" }, Hs = /* @__PURE__ */ G({
877
+ }), yl = { class: "text-subtitle-1 ml-3" }, gl = /* @__PURE__ */ J({
1589
878
  __name: "index",
1590
879
  props: {
1591
880
  modelValue: {},
1592
881
  modelModifiers: {}
1593
882
  },
1594
883
  emits: ["update:modelValue"],
1595
- setup(e) {
1596
- const { t } = ie(), n = Xn(), { sysBarAvail: r } = Xt(), { backgroundColor1: l } = me(), o = I(e, "modelValue"), i = Tn(), a = F(() => {
884
+ setup(o) {
885
+ const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1: l } = ie(), n = G(o, "modelValue"), i = et(), a = K(() => {
1597
886
  let f = "100%";
1598
- return n.mdAndUp.value && (f = "400px"), {
887
+ return t.mdAndUp.value && (f = "400px"), {
1599
888
  background: l.value,
1600
889
  width: f,
1601
890
  height: "100%"
1602
891
  };
1603
- }), u = F(() => {
892
+ }), r = K(() => {
1604
893
  let f = 48;
1605
- return r.value && (f += 24), {
894
+ return e.value && (f += 24), {
1606
895
  position: "relative",
1607
896
  height: `calc(100% - ${f}px)`
1608
897
  };
1609
- }), s = F(() => ({
898
+ }), u = K(() => ({
1610
899
  height: "60px"
1611
- })), v = F(() => {
1612
- if (!o.value)
1613
- return t("x-runtime-lib.notSet");
1614
- const f = mn(i, o.value);
1615
- return f ? f.name : t("x-runtime-lib.compNotAvail");
1616
- }), { open: c } = Je(`propTreeCompSelectDlg${ct()}`);
1617
- return ft(() => {
1618
- c.value = !1;
1619
- }), (f, d) => {
1620
- const m = V("v-btn"), C = V("v-sheet"), S = V("v-icon"), x = V("v-dialog");
1621
- return A(), B(x, {
1622
- modelValue: w(c),
1623
- "onUpdate:modelValue": d[5] || (d[5] = ($) => Ve(c) ? c.value = $ : null),
900
+ })), g = K(() => {
901
+ if (!n.value)
902
+ return s("x-runtime-lib.notSet");
903
+ const f = ze(i, n.value);
904
+ return f ? f.name : s("x-runtime-lib.compNotAvail");
905
+ }), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
906
+ return De(() => {
907
+ d.value = !1;
908
+ }), (f, m) => {
909
+ const k = $("v-btn"), L = $("v-sheet"), w = $("v-icon"), T = $("v-dialog");
910
+ return S(), B(T, {
911
+ modelValue: C(d),
912
+ "onUpdate:modelValue": m[5] || (m[5] = (P) => pe(d) ? d.value = P : null),
1624
913
  transition: "scroll-x-reverse-transition",
1625
914
  persistent: "",
1626
915
  "no-click-animation": "",
1627
916
  fullscreen: "",
1628
- onKeydown: d[6] || (d[6] = Jt(J(($) => c.value = !1, ["stop", "prevent"]), ["esc"]))
917
+ onKeydown: m[6] || (m[6] = Ke(z((P) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1629
918
  }, {
1630
- activator: H(({ props: $ }) => [
1631
- k(m, dt($, {
919
+ activator: R(({ props: P }) => [
920
+ A(k, Ae(P, {
1632
921
  density: "comfortable",
1633
922
  block: ""
1634
923
  }), {
1635
- default: H(() => [
1636
- ze(Y(v.value), 1)
924
+ default: R(() => [
925
+ Ce(Q(g.value), 1)
1637
926
  ]),
1638
927
  _: 2
1639
928
  }, 1040)
1640
929
  ]),
1641
- default: H(() => [
1642
- z("div", {
930
+ default: R(() => [
931
+ F("div", {
1643
932
  class: "w-100 h-100 d-flex flex-row-reverse",
1644
- onClick: d[3] || (d[3] = J(($) => c.value = !1, ["self"])),
1645
- onContextmenu: d[4] || (d[4] = J(($) => c.value = !1, ["self", "prevent"]))
933
+ onClick: m[3] || (m[3] = z((P) => d.value = !1, ["self"])),
934
+ onContextmenu: m[4] || (m[4] = z((P) => d.value = !1, ["self", "prevent"]))
1646
935
  }, [
1647
- z("div", {
936
+ F("div", {
1648
937
  class: "elevation-2",
1649
- style: re(a.value)
938
+ style: I(a.value)
1650
939
  }, [
1651
- w(r) ? (A(), B(C, {
940
+ C(e) ? (S(), B(L, {
1652
941
  key: 0,
1653
942
  color: "transparent",
1654
943
  height: 24
1655
- })) : X("", !0),
1656
- k(C, {
944
+ })) : Y("", !0),
945
+ A(L, {
1657
946
  class: "d-flex align-center px-3",
1658
947
  color: "transparent",
1659
948
  height: 48
1660
949
  }, {
1661
- default: H(() => [
1662
- k(S, {
1663
- icon: w(An),
1664
- onClick: d[0] || (d[0] = ($) => c.value = !1)
950
+ default: R(() => [
951
+ A(w, {
952
+ icon: C(Ge),
953
+ onClick: m[0] || (m[0] = (P) => d.value = !1)
1665
954
  }, null, 8, ["icon"]),
1666
- z("span", Fs, Y(w(t)("x-prop-tree.dlg.compSelect.title")), 1)
955
+ F("span", yl, Q(C(s)("x-prop-tree.dlg.compSelect.title")), 1)
1667
956
  ]),
1668
957
  _: 1
1669
958
  }),
1670
- z("div", {
959
+ F("div", {
1671
960
  class: "overflow-y-auto",
1672
- style: re(u.value)
961
+ style: I(r.value)
1673
962
  }, [
1674
- k(Bs, {
1675
- modelValue: o.value,
1676
- "onUpdate:modelValue": d[1] || (d[1] = ($) => o.value = $),
1677
- open: w(c),
1678
- "onUpdate:open": d[2] || (d[2] = ($) => Ve(c) ? c.value = $ : null)
963
+ A(pl, {
964
+ modelValue: n.value,
965
+ "onUpdate:modelValue": m[1] || (m[1] = (P) => n.value = P),
966
+ open: C(d),
967
+ "onUpdate:open": m[2] || (m[2] = (P) => pe(d) ? d.value = P : null)
1679
968
  }, null, 8, ["modelValue", "open"]),
1680
- z("div", {
1681
- style: re(s.value)
969
+ F("div", {
970
+ style: I(u.value)
1682
971
  }, null, 4)
1683
972
  ], 4)
1684
973
  ], 4)
@@ -1689,88 +978,88 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1689
978
  };
1690
979
  }
1691
980
  });
1692
- function Gs(e) {
1693
- return { renderUiCompSelect: (n, r, l, o, i) => r.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(Hs, {
1694
- modelValue: ae(
1695
- n,
1696
- r,
1697
- l,
981
+ function hl(o) {
982
+ return { renderUiCompSelect: (t, e, l, n, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(gl, {
983
+ modelValue: le(
984
+ t,
1698
985
  e,
986
+ l,
1699
987
  o,
988
+ n,
1700
989
  i
1701
990
  ),
1702
991
  "onUpdate:modelValue": (a) => {
1703
- fe(
1704
- n,
1705
- r,
992
+ oe(
993
+ t,
994
+ e,
1706
995
  l,
1707
996
  a,
1708
- e,
1709
997
  o,
998
+ n,
1710
999
  i
1711
1000
  );
1712
1001
  }
1713
1002
  }) };
1714
1003
  }
1715
- const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PURE__ */ G({
1004
+ const _l = { class: "d-flex justify-space-between align-center" }, kl = /* @__PURE__ */ J({
1716
1005
  __name: "colorPicker",
1717
- props: /* @__PURE__ */ Z({
1006
+ props: /* @__PURE__ */ W({
1718
1007
  hasDelete: { type: Boolean, default: !1 },
1719
1008
  readonly: { type: Boolean, default: !1 }
1720
1009
  }, {
1721
1010
  modelValue: {},
1722
1011
  modelModifiers: {}
1723
1012
  }),
1724
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1725
- setup(e, { emit: t }) {
1726
- const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = F(() => {
1727
- let u = "100%";
1728
- return e.hasDelete && (u = "calc(100% - 37px)"), {
1729
- width: u
1013
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1014
+ setup(o, { emit: s }) {
1015
+ const { t } = te(), e = G(o, "modelValue"), l = s, n = K(() => {
1016
+ let r = "100%";
1017
+ return o.hasDelete && (r = "calc(100% - 37px)"), {
1018
+ width: r
1730
1019
  };
1731
- }), i = F(() => e.readonly), { open: a } = Je(`propTreeColorPickerMenu${ct()}`);
1732
- return ft(() => {
1020
+ }), i = K(() => o.readonly), { open: a } = Se(`propTreeColorPickerMenu${we()}`);
1021
+ return De(() => {
1733
1022
  a.value = !1;
1734
- }), (u, s) => {
1735
- const v = V("v-btn"), c = V("v-color-picker"), f = V("v-menu");
1736
- return A(), B(f, {
1737
- modelValue: w(a),
1738
- "onUpdate:modelValue": s[2] || (s[2] = (d) => Ve(a) ? a.value = d : null),
1023
+ }), (r, u) => {
1024
+ const g = $("v-btn"), d = $("v-color-picker"), f = $("v-menu");
1025
+ return S(), B(f, {
1026
+ modelValue: C(a),
1027
+ "onUpdate:modelValue": u[2] || (u[2] = (m) => pe(a) ? a.value = m : null),
1739
1028
  "close-on-content-click": !1,
1740
1029
  scrim: "transparent"
1741
1030
  }, {
1742
- activator: H(({ props: d }) => [
1743
- z("div", Ks, [
1744
- z("div", {
1031
+ activator: R(({ props: m }) => [
1032
+ F("div", _l, [
1033
+ F("div", {
1745
1034
  class: "flex-grow-1",
1746
- style: re(o.value)
1035
+ style: I(n.value)
1747
1036
  }, [
1748
- k(v, dt(d, {
1037
+ A(g, Ae(m, {
1749
1038
  density: "comfortable",
1750
- color: r.value,
1039
+ color: e.value,
1751
1040
  block: "",
1752
1041
  disabled: i.value
1753
1042
  }), {
1754
- default: H(() => [
1755
- ze(Y(r.value ? r.value : w(n)("x-runtime-lib.notSet")), 1)
1043
+ default: R(() => [
1044
+ Ce(Q(e.value ? e.value : C(t)("x-runtime-lib.notSet")), 1)
1756
1045
  ]),
1757
1046
  _: 2
1758
1047
  }, 1040, ["color", "disabled"])
1759
1048
  ], 4),
1760
- u.hasDelete ? (A(), B(v, {
1049
+ r.hasDelete ? (S(), B(g, {
1761
1050
  key: 0,
1762
1051
  class: "mx-2",
1763
1052
  variant: "text",
1764
1053
  density: "compact",
1765
- icon: w(_e),
1766
- onClick: s[0] || (s[0] = J((m) => l("delete"), ["stop"]))
1767
- }, null, 8, ["icon"])) : X("", !0)
1054
+ icon: C(re),
1055
+ onClick: u[0] || (u[0] = z((k) => l("delete"), ["stop"]))
1056
+ }, null, 8, ["icon"])) : Y("", !0)
1768
1057
  ])
1769
1058
  ]),
1770
- default: H(() => [
1771
- k(c, {
1772
- modelValue: r.value,
1773
- "onUpdate:modelValue": s[1] || (s[1] = (d) => r.value = d),
1059
+ default: R(() => [
1060
+ A(d, {
1061
+ modelValue: e.value,
1062
+ "onUpdate:modelValue": u[1] || (u[1] = (m) => e.value = m),
1774
1063
  mode: "hexa",
1775
1064
  "show-swatches": "",
1776
1065
  "swatches-max-height": "150px"
@@ -1781,160 +1070,160 @@ const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PU
1781
1070
  };
1782
1071
  }
1783
1072
  });
1784
- function zs(e) {
1785
- return { renderUiColorPicker: (n, r, l, o, i) => r.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(qs, {
1786
- modelValue: ae(
1787
- n,
1788
- r,
1789
- l,
1073
+ function Vl(o) {
1074
+ return { renderUiColorPicker: (t, e, l, n, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(kl, {
1075
+ modelValue: le(
1076
+ t,
1790
1077
  e,
1078
+ l,
1791
1079
  o,
1080
+ n,
1792
1081
  i
1793
1082
  ),
1794
1083
  "onUpdate:modelValue": (a) => {
1795
- fe(
1796
- n,
1797
- r,
1084
+ oe(
1085
+ t,
1086
+ e,
1798
1087
  l,
1799
1088
  a,
1800
- e,
1801
1089
  o,
1090
+ n,
1802
1091
  i
1803
1092
  );
1804
1093
  },
1805
- hasDelete: o !== void 0 && !i,
1094
+ hasDelete: n !== void 0 && !i,
1806
1095
  onDelete: () => {
1807
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1096
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
1808
1097
  },
1809
- readonly: r.readonly
1098
+ readonly: e.readonly
1810
1099
  }) };
1811
1100
  }
1812
- const Js = { class: "d-flex justify-space-between align-center my-2" }, Is = { class: "flex-grow-1" }, Xs = /* @__PURE__ */ G({
1101
+ const Cl = { class: "d-flex justify-space-between align-center my-2" }, Sl = { class: "flex-grow-1" }, Ul = /* @__PURE__ */ J({
1813
1102
  __name: "multiTypes",
1814
- props: /* @__PURE__ */ Z({
1103
+ props: /* @__PURE__ */ W({
1815
1104
  hasDelete: { type: Boolean, default: !1 },
1816
1105
  types: {}
1817
1106
  }, {
1818
1107
  modelValue: {},
1819
1108
  modelModifiers: {}
1820
1109
  }),
1821
- emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1822
- setup(e, { emit: t }) {
1823
- const { t: n } = ie(), r = I(e, "modelValue"), l = t, o = yt(), i = F(() => {
1110
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1111
+ setup(o, { emit: s }) {
1112
+ const { t } = te(), e = G(o, "modelValue"), l = s, n = Te(), i = K(() => {
1824
1113
  var f;
1825
- return (f = Zt[o.value]) == null ? void 0 : f.types[e.types];
1826
- }), a = N(0), u = F(() => {
1827
- var d;
1114
+ return (f = Ye[n.value]) == null ? void 0 : f.types[o.types];
1115
+ }), a = O(0), r = K(() => {
1116
+ var m;
1828
1117
  const f = [];
1829
- return (d = i.value) == null || d.forEach(({ title: m }, C) => {
1118
+ return (m = i.value) == null || m.forEach(({ title: k }, L) => {
1830
1119
  f.push({
1831
- title: n(m),
1832
- value: C
1120
+ title: t(k),
1121
+ value: L
1833
1122
  });
1834
1123
  }), f;
1835
1124
  });
1836
- _t(() => {
1125
+ Ne(() => {
1837
1126
  var f;
1838
- (f = i.value) == null || f.some((d, m) => d.validator(r.value) ? (a.value = m, !0) : !1);
1127
+ (f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
1839
1128
  });
1840
- const s = F(() => {
1129
+ const u = K(() => {
1841
1130
  var f;
1842
1131
  return (f = i.value) == null ? void 0 : f[a.value];
1843
- }), v = () => {
1132
+ }), g = () => {
1844
1133
  var f;
1845
- r.value = (f = s.value) == null ? void 0 : f.default;
1846
- }, c = N(0);
1847
- return _t(() => {
1848
- var f, d;
1849
- ((f = s.value) == null ? void 0 : f.ui) === "pixelInput" ? c.value = zn(r.value) : ((d = s.value) == null ? void 0 : d.ui) === "percentInput" && (c.value = Jn(r.value));
1850
- }), be(c, (f) => {
1851
- var d, m;
1852
- ((d = s.value) == null ? void 0 : d.ui) === "pixelInput" ? r.value = f + "px" : ((m = s.value) == null ? void 0 : m.ui) === "percentInput" && (r.value = f + "%");
1853
- }), (f, d) => {
1854
- var $, b;
1855
- const m = V("v-select"), C = V("v-number-input"), S = V("v-btn"), x = ce("ripple");
1856
- return A(), K("div", Js, [
1857
- z("div", Is, [
1858
- le(k(m, {
1134
+ e.value = (f = u.value) == null ? void 0 : f.default;
1135
+ }, d = O(0);
1136
+ return Ne(() => {
1137
+ var f, m;
1138
+ ((f = u.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Ut(e.value) : ((m = u.value) == null ? void 0 : m.ui) === "percentInput" && (d.value = $t(e.value));
1139
+ }), ue(d, (f) => {
1140
+ var m, k;
1141
+ ((m = u.value) == null ? void 0 : m.ui) === "pixelInput" ? e.value = f + "px" : ((k = u.value) == null ? void 0 : k.ui) === "percentInput" && (e.value = f + "%");
1142
+ }), (f, m) => {
1143
+ var P, _;
1144
+ const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), T = ne("ripple");
1145
+ return S(), H("div", Cl, [
1146
+ F("div", Sl, [
1147
+ ee(A(k, {
1859
1148
  modelValue: a.value,
1860
1149
  "onUpdate:modelValue": [
1861
- d[0] || (d[0] = (P) => a.value = P),
1862
- v
1150
+ m[0] || (m[0] = (M) => a.value = M),
1151
+ g
1863
1152
  ],
1864
1153
  density: "compact",
1865
- items: u.value,
1154
+ items: r.value,
1866
1155
  "hide-details": "",
1867
1156
  "single-line": ""
1868
1157
  }, null, 8, ["modelValue", "items"]), [
1869
1158
  [
1870
- x,
1159
+ T,
1871
1160
  void 0,
1872
1161
  void 0,
1873
1162
  { stop: !0 }
1874
1163
  ]
1875
1164
  ]),
1876
- (($ = s.value) == null ? void 0 : $.ui) === "pixelInput" || ((b = s.value) == null ? void 0 : b.ui) === "percentInput" ? le((A(), B(C, {
1165
+ ((P = u.value) == null ? void 0 : P.ui) === "pixelInput" || ((_ = u.value) == null ? void 0 : _.ui) === "percentInput" ? ee((S(), B(L, {
1877
1166
  key: 0,
1878
- modelValue: c.value,
1879
- "onUpdate:modelValue": d[1] || (d[1] = (P) => c.value = P),
1167
+ modelValue: d.value,
1168
+ "onUpdate:modelValue": m[1] || (m[1] = (M) => d.value = M),
1880
1169
  density: "compact",
1881
1170
  "control-variant": "stacked",
1882
- precision: s.value.precision,
1883
- min: s.value.min,
1884
- max: s.value.max,
1885
- step: s.value.step,
1171
+ precision: u.value.precision,
1172
+ min: u.value.min,
1173
+ max: u.value.max,
1174
+ step: u.value.step,
1886
1175
  "hide-details": "",
1887
1176
  "single-line": ""
1888
1177
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1889
1178
  [
1890
- x,
1179
+ T,
1891
1180
  void 0,
1892
1181
  void 0,
1893
1182
  { stop: !0 }
1894
1183
  ]
1895
- ]) : X("", !0)
1184
+ ]) : Y("", !0)
1896
1185
  ]),
1897
- f.hasDelete ? (A(), B(S, {
1186
+ f.hasDelete ? (S(), B(w, {
1898
1187
  key: 0,
1899
1188
  class: "mx-2",
1900
1189
  variant: "text",
1901
1190
  density: "compact",
1902
- icon: w(_e),
1903
- onClick: d[2] || (d[2] = J((P) => l("delete"), ["stop"]))
1904
- }, null, 8, ["icon"])) : X("", !0)
1191
+ icon: C(re),
1192
+ onClick: m[2] || (m[2] = z((M) => l("delete"), ["stop"]))
1193
+ }, null, 8, ["icon"])) : Y("", !0)
1905
1194
  ]);
1906
1195
  };
1907
1196
  }
1908
1197
  });
1909
- function Zs(e) {
1910
- return { renderUiMultiTypes: (n, r, l, o, i) => r.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _(Xs, {
1911
- modelValue: ae(
1912
- n,
1913
- r,
1914
- l,
1198
+ function $l(o) {
1199
+ return { renderUiMultiTypes: (t, e, l, n, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(Ul, {
1200
+ modelValue: le(
1201
+ t,
1915
1202
  e,
1203
+ l,
1916
1204
  o,
1205
+ n,
1917
1206
  i
1918
1207
  ) ?? "",
1919
1208
  "onUpdate:modelValue": (a) => {
1920
- fe(
1921
- n,
1922
- r,
1209
+ oe(
1210
+ t,
1211
+ e,
1923
1212
  l,
1924
1213
  a,
1925
- e,
1926
1214
  o,
1215
+ n,
1927
1216
  i
1928
1217
  );
1929
1218
  },
1930
- hasDelete: o !== void 0 && !i,
1219
+ hasDelete: n !== void 0 && !i,
1931
1220
  onDelete: () => {
1932
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1221
+ n === void 0 || i || (l.splice(n, 1), o(t.slice(0, -1), l));
1933
1222
  },
1934
- types: r.types
1223
+ types: e.types
1935
1224
  }) };
1936
1225
  }
1937
- const Ws = /* @__PURE__ */ G({
1226
+ const xl = /* @__PURE__ */ J({
1938
1227
  __name: "editor",
1939
1228
  props: {
1940
1229
  modelValue: { required: !0 },
@@ -1945,116 +1234,116 @@ const Ws = /* @__PURE__ */ G({
1945
1234
  scaleModifiers: {}
1946
1235
  },
1947
1236
  emits: ["update:modelValue", "update:lock", "update:scale"],
1948
- setup(e, { expose: t }) {
1949
- const n = I(e, "modelValue"), r = I(e, "lock"), l = I(e, "scale"), o = Kn(), i = qn(), a = yt(), u = It("target"), s = () => {
1237
+ setup(o, { expose: s }) {
1238
+ const t = G(o, "modelValue"), e = G(o, "lock"), l = G(o, "scale"), n = _t(), i = kt(), a = Te(), r = Re("target"), u = () => {
1950
1239
  var f;
1951
- const c = JSON.parse(n.value);
1952
- (f = u.value) == null || f.load(c);
1240
+ const d = JSON.parse(t.value);
1241
+ (f = r.value) == null || f.load(d);
1953
1242
  };
1954
- return t({ save: () => {
1955
- const c = u.value.save();
1956
- n.value = JSON.stringify(c, null, 2);
1957
- } }), (c, f) => (A(), B(w(Zn), {
1243
+ return s({ save: () => {
1244
+ const d = r.value.save();
1245
+ t.value = JSON.stringify(d, null, 2);
1246
+ } }), (d, f) => (S(), B(C(Mt), {
1958
1247
  ref_key: "target",
1959
- ref: u,
1960
- lock: r.value,
1961
- "onUpdate:lock": f[0] || (f[0] = (d) => r.value = d),
1248
+ ref: r,
1249
+ lock: e.value,
1250
+ "onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
1962
1251
  scale: l.value,
1963
- "onUpdate:scale": f[1] || (f[1] = (d) => l.value = d),
1252
+ "onUpdate:scale": f[1] || (f[1] = (m) => l.value = m),
1964
1253
  type: "json",
1965
- version: w(a),
1966
- locale: w(i),
1967
- dark: w(o),
1968
- onReady: s
1254
+ version: C(a),
1255
+ locale: C(i),
1256
+ dark: C(n),
1257
+ onReady: u
1969
1258
  }, null, 8, ["lock", "scale", "version", "locale", "dark"]));
1970
1259
  }
1971
- }), Ys = { class: "text-subtitle-1" }, Qs = /* @__PURE__ */ G({
1260
+ }), Pl = { class: "text-subtitle-1" }, Ml = /* @__PURE__ */ J({
1972
1261
  __name: "index",
1973
1262
  props: {
1974
1263
  modelValue: { required: !0 },
1975
1264
  modelModifiers: {}
1976
1265
  },
1977
1266
  emits: ["update:modelValue"],
1978
- setup(e) {
1979
- const { t } = ie(), { sysBarAvail: n } = Xt(), { backgroundColor0: r, backgroundColor1: l, backgroundColor2: o } = me(), i = I(e, "modelValue"), a = N(!1), u = N(1), s = F(() => {
1980
- let d = 48;
1981
- return n.value && (d += 24), {
1267
+ setup(o) {
1268
+ const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: n } = ie(), i = G(o, "modelValue"), a = O(!1), r = O(1), u = K(() => {
1269
+ let m = 48;
1270
+ return t.value && (m += 24), {
1982
1271
  position: "relative",
1983
1272
  background: l.value,
1984
- height: `calc(100% - ${d}px)`
1273
+ height: `calc(100% - ${m}px)`
1985
1274
  };
1986
- }), v = F(() => t("x-prop-tree.dlg.jsonObject.title")), { open: c } = Je(`propTreeJsonObjectDlg${ct()}`);
1987
- ft(() => {
1988
- c.value = !1;
1275
+ }), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
1276
+ De(() => {
1277
+ d.value = !1;
1989
1278
  });
1990
- const f = It("editor");
1991
- return be(c, (d) => {
1992
- var m;
1993
- d || (m = f.value) == null || m.save();
1994
- }), (d, m) => {
1995
- const C = V("v-btn"), S = V("v-sheet"), x = V("v-spacer"), $ = V("v-dialog");
1996
- return A(), B($, {
1997
- modelValue: w(c),
1998
- "onUpdate:modelValue": m[4] || (m[4] = (b) => Ve(c) ? c.value = b : null),
1279
+ const f = Re("editor");
1280
+ return ue(d, (m) => {
1281
+ var k;
1282
+ m || (k = f.value) == null || k.save();
1283
+ }), (m, k) => {
1284
+ const L = $("v-btn"), w = $("v-sheet"), T = $("v-spacer"), P = $("v-dialog");
1285
+ return S(), B(P, {
1286
+ modelValue: C(d),
1287
+ "onUpdate:modelValue": k[4] || (k[4] = (_) => pe(d) ? d.value = _ : null),
1999
1288
  transition: "dialog-bottom-transition",
2000
1289
  persistent: "",
2001
1290
  "no-click-animation": "",
2002
1291
  fullscreen: "",
2003
1292
  attach: "",
2004
- onKeydown: m[5] || (m[5] = Jt(J((b) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1293
+ onKeydown: k[5] || (k[5] = Ke(z((_) => d.value = !1, ["stop", "prevent"]), ["esc"]))
2005
1294
  }, {
2006
- activator: H(({ props: b }) => [
2007
- k(C, dt(b, {
1295
+ activator: R(({ props: _ }) => [
1296
+ A(L, Ae(_, {
2008
1297
  density: "comfortable",
2009
1298
  block: ""
2010
1299
  }), {
2011
- default: H(() => [
2012
- ze(Y(v.value), 1)
1300
+ default: R(() => [
1301
+ Ce(Q(g.value), 1)
2013
1302
  ]),
2014
1303
  _: 2
2015
1304
  }, 1040)
2016
1305
  ]),
2017
- default: H(() => [
2018
- k(S, {
2019
- color: w(r),
1306
+ default: R(() => [
1307
+ A(w, {
1308
+ color: C(e),
2020
1309
  width: "100%",
2021
1310
  height: "100%"
2022
1311
  }, {
2023
- default: H(() => [
2024
- w(n) ? (A(), B(S, {
1312
+ default: R(() => [
1313
+ C(t) ? (S(), B(w, {
2025
1314
  key: 0,
2026
- color: w(o),
1315
+ color: C(n),
2027
1316
  height: 24
2028
- }, null, 8, ["color"])) : X("", !0),
2029
- k(S, {
1317
+ }, null, 8, ["color"])) : Y("", !0),
1318
+ A(w, {
2030
1319
  class: "d-flex align-center px-2",
2031
- color: w(o),
1320
+ color: C(n),
2032
1321
  height: 48
2033
1322
  }, {
2034
- default: H(() => [
2035
- k(C, {
1323
+ default: R(() => [
1324
+ A(L, {
2036
1325
  variant: "text",
2037
1326
  density: "comfortable",
2038
- icon: w(An),
2039
- onClick: m[0] || (m[0] = (b) => c.value = !1)
1327
+ icon: C(Ge),
1328
+ onClick: k[0] || (k[0] = (_) => d.value = !1)
2040
1329
  }, null, 8, ["icon"]),
2041
- z("span", Ys, Y(w(t)("x-prop-tree.dlg.jsonObject.title")), 1),
2042
- k(x)
1330
+ F("span", Pl, Q(C(s)("x-prop-tree.dlg.jsonObject.title")), 1),
1331
+ A(T)
2043
1332
  ]),
2044
1333
  _: 1
2045
1334
  }, 8, ["color"]),
2046
- z("div", {
2047
- style: re(s.value)
1335
+ F("div", {
1336
+ style: I(u.value)
2048
1337
  }, [
2049
- k(Ws, {
1338
+ A(xl, {
2050
1339
  ref_key: "editor",
2051
1340
  ref: f,
2052
1341
  modelValue: i.value,
2053
- "onUpdate:modelValue": m[1] || (m[1] = (b) => i.value = b),
1342
+ "onUpdate:modelValue": k[1] || (k[1] = (_) => i.value = _),
2054
1343
  lock: a.value,
2055
- "onUpdate:lock": m[2] || (m[2] = (b) => a.value = b),
2056
- scale: u.value,
2057
- "onUpdate:scale": m[3] || (m[3] = (b) => u.value = b)
1344
+ "onUpdate:lock": k[2] || (k[2] = (_) => a.value = _),
1345
+ scale: r.value,
1346
+ "onUpdate:scale": k[3] || (k[3] = (_) => r.value = _)
2058
1347
  }, null, 8, ["modelValue", "lock", "scale"])
2059
1348
  ], 4)
2060
1349
  ]),
@@ -2066,30 +1355,30 @@ const Ws = /* @__PURE__ */ G({
2066
1355
  };
2067
1356
  }
2068
1357
  });
2069
- function ea(e) {
2070
- return { renderUiJsonEditor: (n, r, l, o, i) => r.ui !== "jsonEditor" ? _("div", "renderUiJsonObject prop ui must be jsonEditor") : _(Qs, {
2071
- modelValue: ae(
2072
- n,
2073
- r,
2074
- l,
1358
+ function wl(o) {
1359
+ return { renderUiJsonEditor: (t, e, l, n, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(Ml, {
1360
+ modelValue: le(
1361
+ t,
2075
1362
  e,
1363
+ l,
2076
1364
  o,
1365
+ n,
2077
1366
  i
2078
1367
  ) ?? "{}",
2079
1368
  "onUpdate:modelValue": (a) => {
2080
- fe(
2081
- n,
2082
- r,
1369
+ oe(
1370
+ t,
1371
+ e,
2083
1372
  l,
2084
1373
  a,
2085
- e,
2086
1374
  o,
1375
+ n,
2087
1376
  i
2088
1377
  );
2089
1378
  }
2090
1379
  }) };
2091
1380
  }
2092
- const ta = /* @__PURE__ */ G({
1381
+ const Dl = /* @__PURE__ */ J({
2093
1382
  __name: "index",
2094
1383
  props: {
2095
1384
  unique: {},
@@ -2098,102 +1387,102 @@ const ta = /* @__PURE__ */ G({
2098
1387
  version: {}
2099
1388
  },
2100
1389
  emits: ["change"],
2101
- setup(e, { emit: t }) {
2102
- const { t: n } = ie(), { backgroundColor1: r } = me(), l = e, o = t, i = N("20px"), a = N("56px"), u = N("200px"), s = Fn({}), v = N({}), c = (y, p) => {
2103
- qt(v, l.config, l.object), o("change", y, p);
1390
+ setup(o, { emit: s }) {
1391
+ const { t } = te(), { backgroundColor1: e } = ie(), l = o, n = s, i = O("20px"), a = O("56px"), r = O("200px"), u = yt({}), g = O({}), d = (p, c) => {
1392
+ qe(g, l.config, l.object), n("change", p, c);
2104
1393
  };
2105
- be(
1394
+ ue(
2106
1395
  [() => l.config, () => l.object],
2107
1396
  () => {
2108
- qt(v, l.config, l.object, (y, p) => {
2109
- o("change", y, p);
1397
+ qe(g, l.config, l.object, (p, c) => {
1398
+ n("change", p, c);
2110
1399
  });
2111
1400
  },
2112
1401
  { immediate: !0 }
2113
1402
  );
2114
- const f = N(l.version);
2115
- is(f), be(
1403
+ const f = O(l.version);
1404
+ Ot(f), ue(
2116
1405
  () => l.version,
2117
1406
  () => {
2118
1407
  f.value = l.version;
2119
1408
  }
2120
1409
  );
2121
- const d = N(l.config);
2122
- ss(d), be(
1410
+ const m = O(l.config);
1411
+ qt(m), ue(
2123
1412
  () => l.config,
2124
1413
  () => {
2125
- d.value = l.config;
1414
+ m.value = l.config;
2126
1415
  }
2127
1416
  );
2128
- const m = N(l.object);
2129
- us(m), be(
1417
+ const k = O(l.object);
1418
+ Kt(k), ue(
2130
1419
  () => l.object,
2131
1420
  () => {
2132
- m.value = l.object;
1421
+ k.value = l.object;
2133
1422
  }
2134
- ), fs(v), ps(c);
2135
- const C = N([]);
2136
- ms(C);
2137
- const S = () => {
2138
- const { compGroups: y, comps: p } = In.app.activeApp, h = [];
2139
- y.forEach(({ id: g, name: T, position: U }) => {
2140
- const j = C.value.find((te) => te.id === g);
2141
- h.push({
2142
- id: g,
1423
+ ), Jt(g), Xt(d);
1424
+ const L = O([]);
1425
+ zt(L);
1426
+ const w = () => {
1427
+ const { compGroups: p, comps: c } = xt.app.activeApp, y = [];
1428
+ p.forEach(({ id: v, name: V, position: x }) => {
1429
+ const D = L.value.find((E) => E.id === v);
1430
+ y.push({
1431
+ id: v,
2143
1432
  type: 0,
2144
- name: T,
2145
- position: U,
2146
- collapse: (j == null ? void 0 : j.collapse) ?? !0
1433
+ name: V,
1434
+ position: x,
1435
+ collapse: (D == null ? void 0 : D.collapse) ?? !0
2147
1436
  });
2148
- }), p.forEach(({ id: g, groupid: T, name: U, position: j }) => {
2149
- h.push({ id: g, type: 1, name: U, position: j, group: T });
2150
- }), Wi(h, !0), C.value = h;
1437
+ }), c.forEach(({ id: v, groupid: V, name: x, position: D }) => {
1438
+ y.push({ id: v, type: 1, name: x, position: D, group: V });
1439
+ }), St(y, !0), L.value = y;
2151
1440
  };
2152
- let x;
2153
- const $ = () => {
2154
- clearTimeout(x), x = window.setTimeout(() => {
2155
- S(), x && $();
1441
+ let T;
1442
+ const P = () => {
1443
+ clearTimeout(T), T = window.setTimeout(() => {
1444
+ w(), T && P();
2156
1445
  }, 1e3);
2157
- }, b = () => {
2158
- clearTimeout(x), x = void 0;
1446
+ }, _ = () => {
1447
+ clearTimeout(T), T = void 0;
2159
1448
  };
2160
- Hn(() => {
2161
- $();
2162
- }), Gn(() => {
2163
- b();
1449
+ gt(() => {
1450
+ P();
1451
+ }), ht(() => {
1452
+ _();
2164
1453
  });
2165
- const { renderProp: P } = _s(v, a, u), { renderUiDummy: D } = bs(c), { renderUiStrInput: Q } = Ss(c), { renderUiNumInput: et } = Cs(c), { renderUiSwitch: Cn } = Os(c), { renderUiSelect: Pn } = Ms(c), { renderUiColorPicker: xn } = zs(c), { renderUiJsonEditor: On } = ea(c), { renderUiMultiTypes: Vn } = Zs(c), { renderUiCompSelect: Un } = Gs(c), je = (y, p, h, g, T, U) => (y = dn(y), T !== void 0 ? (y.push(T), U && y.push(p.key)) : y.push(p.key), p.ui ? p.array && g ? Dn(y, p, h, g, T, U) : jn(y, p, h, T, U) : p.array ? Mn(y, p, h, g, T, U) : Ln(
2166
- y,
1454
+ const { renderProp: M } = Wt(g, a, r), { renderUiDummy: N } = Qt(d), { renderUiStrInput: Z } = jt(d), { renderUiNumInput: Pe } = tl(d), { renderUiSwitch: tt } = ol(d), { renderUiSelect: lt } = rl(d), { renderUiColorPicker: nt } = Vl(d), { renderUiJsonEditor: ot } = wl(d), { renderUiMultiTypes: st } = $l(d), { renderUiCompSelect: it } = hl(d), ye = (p, c, y, v, V, x) => (p = He(p), V !== void 0 ? (p.push(V), x && p.push(c.key)) : p.push(c.key), c.ui ? c.array && v ? at(p, c, y, v, V, x) : ct(p, c, y, V, x) : c.array ? rt(p, c, y, v, V, x) : ut(
2167
1455
  p,
2168
- h,
2169
- g,
2170
- T,
2171
- U
2172
- )), Mn = (y, p, h, g, T, U) => {
2173
- if (p.ui)
2174
- return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
2175
- if (!p.array)
2176
- return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
2177
- if (!g)
2178
- return console.assert(!1), _("div", "renderBranchArray branch must be valid");
2179
- let j;
2180
- T !== void 0 && !U ? (h[T] instanceof Array || (h[T] = R(p), c(y, h[p.key])), j = h[T]) : (h[p.key] instanceof Array || (h[p.key] = R(p), c(y, h[p.key])), j = h[p.key]);
2181
- let te = n(p.name);
2182
- g.collapse && Te(v.value, y) && (te += " *");
2183
- const Ce = _(Be, {
2184
- title: te,
2185
- collapse: g.collapse,
1456
+ c,
1457
+ y,
1458
+ v,
1459
+ V,
1460
+ x
1461
+ )), rt = (p, c, y, v, V, x) => {
1462
+ if (c.ui)
1463
+ return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
1464
+ if (!c.array)
1465
+ return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
1466
+ if (!v)
1467
+ return console.assert(!1), h("div", "renderBranchArray branch must be valid");
1468
+ let D;
1469
+ V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[c.key])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
1470
+ let E = t(c.name);
1471
+ v.collapse && ce(g.value, p) && (E += " *");
1472
+ const me = h(ke, {
1473
+ title: E,
1474
+ collapse: v.collapse,
2186
1475
  hasCreate: !0,
2187
- onCollapse: (O) => {
2188
- g.collapse = O;
1476
+ onCollapse: (U) => {
1477
+ v.collapse = U;
2189
1478
  },
2190
- onMenu: (O, E) => {
2191
- $e.emit("propTreeMenu", { x: O, y: E, keys: y });
1479
+ onMenu: (U, b) => {
1480
+ ae.emit("propTreeMenu", { x: U, y: b, keys: p });
2192
1481
  },
2193
1482
  onCreate: () => {
2194
- j.push({}), c(y, j);
1483
+ D.push({}), d(p, D);
2195
1484
  }
2196
- }), q = _(
1485
+ }), X = h(
2197
1486
  "div",
2198
1487
  {
2199
1488
  style: {
@@ -2201,44 +1490,44 @@ const ta = /* @__PURE__ */ G({
2201
1490
  }
2202
1491
  },
2203
1492
  (() => {
2204
- const O = [];
2205
- for (let E = 0; E < j.length; E++) {
2206
- if (!ot(g.children)) {
1493
+ const U = [];
1494
+ for (let b = 0; b < D.length; b++) {
1495
+ if (!Me(v.children)) {
2207
1496
  console.assert(!1);
2208
1497
  break;
2209
1498
  }
2210
- g.children[E] || g.children.push({
1499
+ v.children[b] || v.children.push({
2211
1500
  collapse: !0,
2212
1501
  children: {}
2213
1502
  });
2214
- const ke = [...y, E], Ee = g.children[E];
2215
- let ht = `[${E + 1}]`;
2216
- g.children[E].collapse && Te(v.value, ke) && (ht += " *");
2217
- const En = _(Be, {
2218
- title: ht,
2219
- collapse: g.children[E].collapse,
1503
+ const ge = [...p, b], he = v.children[b];
1504
+ let Le = `[${b + 1}]`;
1505
+ v.children[b].collapse && ce(g.value, ge) && (Le += " *");
1506
+ const ft = h(ke, {
1507
+ title: Le,
1508
+ collapse: v.children[b].collapse,
2220
1509
  hasDelete: !0,
2221
- index: E,
2222
- onCollapse: (ne) => {
2223
- if (!ot(g.children)) {
1510
+ index: b,
1511
+ onCollapse: (j) => {
1512
+ if (!Me(v.children)) {
2224
1513
  console.assert(!1);
2225
1514
  return;
2226
1515
  }
2227
- g.children[E].collapse = ne;
1516
+ v.children[b].collapse = j;
2228
1517
  },
2229
- onMenu: (ne, de) => {
2230
- $e.emit("propTreeMenu", { x: ne, y: de, keys: ke });
1518
+ onMenu: (j, se) => {
1519
+ ae.emit("propTreeMenu", { x: j, y: se, keys: ge });
2231
1520
  },
2232
- onDelete: (ne) => {
2233
- if (!ot(g.children)) {
1521
+ onDelete: (j) => {
1522
+ if (!Me(v.children)) {
2234
1523
  console.assert(!1);
2235
1524
  return;
2236
1525
  }
2237
- g.children.splice(ne, 1), j.splice(ne, 1), c(y, j);
1526
+ v.children.splice(j, 1), D.splice(j, 1), d(p, D);
2238
1527
  }
2239
1528
  });
2240
- O.push(En);
2241
- const Nn = _(
1529
+ U.push(ft);
1530
+ const mt = h(
2242
1531
  "div",
2243
1532
  {
2244
1533
  style: {
@@ -2246,34 +1535,34 @@ const ta = /* @__PURE__ */ G({
2246
1535
  }
2247
1536
  },
2248
1537
  (() => {
2249
- const ne = [];
2250
- return p.children.forEach((de) => {
2251
- if (!Kt(Ee.children)) {
1538
+ const j = [];
1539
+ return c.children.forEach((se) => {
1540
+ if (!Oe(he.children)) {
2252
1541
  console.assert(!1);
2253
1542
  return;
2254
1543
  }
2255
- Ee.children[de.key] || (Ee.children[de.key] = {
1544
+ he.children[se.key] || (he.children[se.key] = {
2256
1545
  collapse: !0,
2257
- children: de.array ? [] : {}
1546
+ children: se.array ? [] : {}
2258
1547
  });
2259
- const Rn = je(
2260
- y,
2261
- de,
2262
- j[E],
2263
- Ee.children[de.key],
2264
- E,
1548
+ const vt = ye(
1549
+ p,
1550
+ se,
1551
+ D[b],
1552
+ he.children[se.key],
1553
+ b,
2265
1554
  !0
2266
1555
  );
2267
- ne.push(Rn);
2268
- }), ne;
1556
+ j.push(vt);
1557
+ }), j;
2269
1558
  })()
2270
1559
  );
2271
- g.children[E].collapse || O.push(Nn);
1560
+ v.children[b].collapse || U.push(mt);
2272
1561
  }
2273
- return O;
1562
+ return U;
2274
1563
  })()
2275
1564
  );
2276
- return _(
1565
+ return h(
2277
1566
  "div",
2278
1567
  {
2279
1568
  style: {
@@ -2281,33 +1570,33 @@ const ta = /* @__PURE__ */ G({
2281
1570
  }
2282
1571
  },
2283
1572
  (() => {
2284
- const O = [];
2285
- return O.push(Ce), g.collapse || O.push(q), O;
1573
+ const U = [];
1574
+ return U.push(me), v.collapse || U.push(X), U;
2286
1575
  })()
2287
1576
  );
2288
- }, Ln = (y, p, h, g, T, U) => {
2289
- if (p.ui)
2290
- return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2291
- if (p.array)
2292
- return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
2293
- if (!g)
2294
- return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
2295
- let j = n(p.name);
2296
- g.collapse && Te(v.value, y) && (j += " *");
2297
- const te = _(Be, {
2298
- title: j,
2299
- collapse: g.collapse,
2300
- hasDelete: T !== void 0 && !U,
2301
- onCollapse: (q) => {
2302
- g.collapse = q;
1577
+ }, ut = (p, c, y, v, V, x) => {
1578
+ if (c.ui)
1579
+ return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
1580
+ if (c.array)
1581
+ return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
1582
+ if (!v)
1583
+ return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
1584
+ let D = t(c.name);
1585
+ v.collapse && ce(g.value, p) && (D += " *");
1586
+ const E = h(ke, {
1587
+ title: D,
1588
+ collapse: v.collapse,
1589
+ hasDelete: V !== void 0 && !x,
1590
+ onCollapse: (X) => {
1591
+ v.collapse = X;
2303
1592
  },
2304
- onMenu: (q, O) => {
2305
- $e.emit("propTreeMenu", { x: q, y: O, keys: y });
1593
+ onMenu: (X, U) => {
1594
+ ae.emit("propTreeMenu", { x: X, y: U, keys: p });
2306
1595
  },
2307
1596
  onDelete: () => {
2308
- T === void 0 || U || (h.splice(T, 1), c(y.slice(0, -1), h));
1597
+ V === void 0 || x || (y.splice(V, 1), d(p.slice(0, -1), y));
2309
1598
  }
2310
- }), Ce = _(
1599
+ }), me = h(
2311
1600
  "div",
2312
1601
  {
2313
1602
  style: {
@@ -2315,27 +1604,27 @@ const ta = /* @__PURE__ */ G({
2315
1604
  }
2316
1605
  },
2317
1606
  (() => {
2318
- const q = [];
2319
- return p.children.forEach((O) => {
2320
- if (!Kt(g.children)) {
1607
+ const X = [];
1608
+ return c.children.forEach((U) => {
1609
+ if (!Oe(v.children)) {
2321
1610
  console.assert(!1);
2322
1611
  return;
2323
1612
  }
2324
- g.children[O.key] || (g.children[O.key] = {
1613
+ v.children[U.key] || (v.children[U.key] = {
2325
1614
  collapse: !0,
2326
- children: !O.ui && O.array ? [] : {}
1615
+ children: !U.ui && U.array ? [] : {}
2327
1616
  });
2328
- const E = je(
2329
- y,
2330
- O,
2331
- (typeof h[p.key] != "object" && (h[p.key] = {}, c(y, h[p.key])), h[p.key]),
2332
- g.children[O.key]
1617
+ const b = ye(
1618
+ p,
1619
+ U,
1620
+ (typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
1621
+ v.children[U.key]
2333
1622
  );
2334
- q.push(E);
2335
- }), q;
1623
+ X.push(b);
1624
+ }), X;
2336
1625
  })()
2337
1626
  );
2338
- return _(
1627
+ return h(
2339
1628
  "div",
2340
1629
  {
2341
1630
  style: {
@@ -2343,35 +1632,35 @@ const ta = /* @__PURE__ */ G({
2343
1632
  }
2344
1633
  },
2345
1634
  (() => {
2346
- const q = [];
2347
- return q.push(te), g.collapse || q.push(Ce), q;
1635
+ const X = [];
1636
+ return X.push(E), v.collapse || X.push(me), X;
2348
1637
  })()
2349
1638
  );
2350
- }, Dn = (y, p, h, g, T, U) => {
2351
- if (!p.ui)
2352
- return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2353
- if (!p.array)
2354
- return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
2355
- if (!g)
2356
- return console.assert(!1), _("div", "renderLeafArray branch must be valid");
2357
- let j;
2358
- T !== void 0 && !U ? (h[T] instanceof Array || (h[T] = R(p), c(y, h[T])), j = h[T]) : (h[p.key] instanceof Array || (h[p.key] = R(p), c(y, h[p.key])), j = h[p.key]);
2359
- let te = n(p.name);
2360
- g.collapse && Te(v.value, y) && (te += " *");
2361
- const Ce = _(Be, {
2362
- title: te,
2363
- collapse: g.collapse,
1639
+ }, at = (p, c, y, v, V, x) => {
1640
+ if (!c.ui)
1641
+ return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
1642
+ if (!c.array)
1643
+ return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
1644
+ if (!v)
1645
+ return console.assert(!1), h("div", "renderLeafArray branch must be valid");
1646
+ let D;
1647
+ V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[V])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
1648
+ let E = t(c.name);
1649
+ v.collapse && ce(g.value, p) && (E += " *");
1650
+ const me = h(ke, {
1651
+ title: E,
1652
+ collapse: v.collapse,
2364
1653
  hasCreate: !0,
2365
- onCollapse: (O) => {
2366
- g.collapse = O;
1654
+ onCollapse: (U) => {
1655
+ v.collapse = U;
2367
1656
  },
2368
- onMenu: (O, E) => {
2369
- $e.emit("propTreeMenu", { x: O, y: E, keys: y });
1657
+ onMenu: (U, b) => {
1658
+ ae.emit("propTreeMenu", { x: U, y: b, keys: p });
2370
1659
  },
2371
1660
  onCreate: () => {
2372
- j.push(R(p, !0)), c(y, j);
1661
+ D.push(q(c, !0)), d(p, D);
2373
1662
  }
2374
- }), q = _(
1663
+ }), X = h(
2375
1664
  "div",
2376
1665
  {
2377
1666
  style: {
@@ -2379,15 +1668,15 @@ const ta = /* @__PURE__ */ G({
2379
1668
  }
2380
1669
  },
2381
1670
  (() => {
2382
- const O = [];
2383
- for (let E = 0; E < j.length; E++) {
2384
- const ke = je(y, p, j, void 0, E, !1);
2385
- O.push(ke);
1671
+ const U = [];
1672
+ for (let b = 0; b < D.length; b++) {
1673
+ const ge = ye(p, c, D, void 0, b, !1);
1674
+ U.push(ge);
2386
1675
  }
2387
- return O;
1676
+ return U;
2388
1677
  })()
2389
1678
  );
2390
- return _(
1679
+ return h(
2391
1680
  "div",
2392
1681
  {
2393
1682
  style: {
@@ -2395,69 +1684,69 @@ const ta = /* @__PURE__ */ G({
2395
1684
  }
2396
1685
  },
2397
1686
  (() => {
2398
- const O = [];
2399
- return O.push(Ce), g.collapse || O.push(q), O;
1687
+ const U = [];
1688
+ return U.push(me), v.collapse || U.push(X), U;
2400
1689
  })()
2401
1690
  );
2402
- }, jn = (y, p, h, g, T) => {
2403
- if (!p.ui)
2404
- return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
2405
- let U;
2406
- return p.ui === "dummy" ? U = D(y, p, h, g, T) : p.ui === "strInput" ? U = Q(y, p, h, g, T) : p.ui === "numInput" ? U = et(y, p, h, g, T) : p.ui === "switch" ? U = Cn(y, p, h, g, T) : p.ui === "select" ? U = Pn(y, p, h, g, T) : p.ui === "colorPicker" ? U = xn(y, p, h, g, T) : p.ui === "jsonEditor" ? U = On(y, p, h, g, T) : p.ui === "multiTypes" ? U = Vn(y, p, h, g, T) : p.ui === "compSelect" ? U = Un(y, p, h, g, T) : console.assert(!1, "renderLeafScalar not implemented"), U ? P(y, p, U) : _("div");
2407
- }, kn = () => _(
1691
+ }, ct = (p, c, y, v, V) => {
1692
+ if (!c.ui)
1693
+ return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
1694
+ let x;
1695
+ return c.ui === "dummy" ? x = N(p, c, y, v, V) : c.ui === "strInput" ? x = Z(p, c, y, v, V) : c.ui === "numInput" ? x = Pe(p, c, y, v, V) : c.ui === "switch" ? x = tt(p, c, y, v, V) : c.ui === "select" ? x = lt(p, c, y, v, V) : c.ui === "colorPicker" ? x = nt(p, c, y, v, V) : c.ui === "jsonEditor" ? x = ot(p, c, y, v, V) : c.ui === "multiTypes" ? x = st(p, c, y, v, V) : c.ui === "compSelect" ? x = it(p, c, y, v, V) : console.assert(!1, "renderLeafScalar not implemented"), x ? M(p, c, x) : h("div");
1696
+ }, dt = () => h(
2408
1697
  "div",
2409
1698
  {
2410
1699
  class: "text-body-2",
2411
1700
  style: {
2412
- background: r.value
1701
+ background: e.value
2413
1702
  }
2414
1703
  },
2415
1704
  (() => {
2416
- const y = [];
1705
+ const p = [];
2417
1706
  if (l.unique && l.config.length > 0 && l.object) {
2418
- s[l.unique] || (s[l.unique] = {});
2419
- const p = s[l.unique];
2420
- l.config.forEach((h) => {
2421
- p[h.key] || (p[h.key] = {
1707
+ u[l.unique] || (u[l.unique] = {});
1708
+ const c = u[l.unique];
1709
+ l.config.forEach((y) => {
1710
+ c[y.key] || (c[y.key] = {
2422
1711
  collapse: !0,
2423
- children: !h.ui && h.array ? [] : {}
1712
+ children: !y.ui && y.array ? [] : {}
2424
1713
  });
2425
- const g = je([], h, l.object, p[h.key]);
2426
- y.push(g);
1714
+ const v = ye([], y, l.object, c[y.key]);
1715
+ p.push(v);
2427
1716
  });
2428
1717
  }
2429
- return y;
1718
+ return p;
2430
1719
  })()
2431
1720
  );
2432
- return (y, p) => (A(), K(He, null, [
2433
- k(kn),
2434
- k(gs, {
1721
+ return (p, c) => (S(), H(Ve, null, [
1722
+ A(dt),
1723
+ A(Gt, {
2435
1724
  config: l.config,
2436
1725
  object: l.object,
2437
- "prop-states": v.value
1726
+ "prop-states": g.value
2438
1727
  }, null, 8, ["config", "object", "prop-states"])
2439
1728
  ], 64));
2440
1729
  }
2441
- }), na = (e) => {
2442
- e.component("XPropTree", ta);
2443
- }, ra = (e, t, n) => {
2444
- const r = e[t];
2445
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((l, o) => {
1730
+ }), Al = (o) => {
1731
+ o.component("XPropTree", Dl);
1732
+ }, bl = (o, s, t) => {
1733
+ const e = o[s];
1734
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, n) => {
2446
1735
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
2447
- o.bind(
1736
+ n.bind(
2448
1737
  null,
2449
1738
  new Error(
2450
- "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
1739
+ "Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
2451
1740
  )
2452
1741
  )
2453
1742
  );
2454
1743
  });
2455
1744
  };
2456
- async function fa(e) {
2457
- return (await ra(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-hr18mfah.js") }), `./locales/${e}/index.ts`, 4)).default;
1745
+ async function Jl(o) {
1746
+ return (await bl(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${o}/index.ts`, 4)).default;
2458
1747
  }
2459
- const da = { install: na };
1748
+ const Hl = { install: Al };
2460
1749
  export {
2461
- da as default,
2462
- fa as loadLocaleMessagePropTree
1750
+ Hl as default,
1751
+ Jl as loadLocaleMessagePropTree
2463
1752
  };