x-prop-tree 0.6.28 → 0.6.30

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,316 @@
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 le, withDirectives as ee, withModifiers as z, normalizeStyle as I, createElementVNode as F, createCommentVNode as Y, renderSlot as pt, h as _, 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 _t } 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 ht, 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 he = (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((n) => n.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, n) => {
35
+ if (e.ui !== n.ui || e.array !== n.array)
743
36
  return !1;
744
- if (r.ui || l.ui)
37
+ if (e.ui || n.ui)
745
38
  return !0;
746
- if (r.children.length !== l.children.length)
39
+ if (e.children.length !== n.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 l = 0; l < e.children.length; l++)
42
+ if (!t(e.children[l], n.children[l]))
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, n, l, i) => (o = He(o), l !== void 0 ? (o.push(l), 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,
54
+ e,
760
55
  n,
761
- r,
762
56
  l,
763
- o,
764
57
  i
765
- ) : ls(t, n, r, o, i) : t.array ? ns(
766
- e,
58
+ ) : Nt(s, t, e, l, i) : s.array ? bt(
59
+ o,
60
+ s,
767
61
  t,
62
+ e,
768
63
  n,
769
- r,
770
64
  l,
771
- o,
772
65
  i
773
- ) : rs(
774
- e,
66
+ ) : Tt(
67
+ o,
68
+ s,
775
69
  t,
70
+ e,
776
71
  n,
777
- r,
778
72
  l,
779
- o,
780
73
  i
781
- )), ns = (e, t, n, r, l, o, i) => {
782
- if (t.ui)
74
+ )), bt = (o, s, t, e, n, l, 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;
82
+ l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
790
83
  for (let u = 0; u < a.length; u++) {
791
- r.children.push({
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 r = e.children[u];
89
+ s.children.forEach((g) => {
90
+ if (!r.children || !be(r.children)) {
798
91
  console.assert(!1);
799
92
  return;
800
93
  }
801
- s.children[v.key] = {
94
+ r.children[g.key] = {
802
95
  change: !1,
803
- children: v.array ? [] : {}
804
- }, Qe(
805
- e,
806
- v,
96
+ children: g.array ? [] : {}
97
+ }, xe(
98
+ o,
99
+ g,
807
100
  a[u],
808
- s.children[v.key],
809
- l,
101
+ r.children[g.key],
102
+ n,
810
103
  u,
811
104
  !0
812
- ) && (s.change = !0), s.change && (r.change = !0);
105
+ ) && (r.change = !0), r.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, n, l, 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
+ l !== void 0 && !i ? (t[l] || (t[l] = {}), a = t[l]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
118
+ for (let u = 0; u < s.children.length; u++) {
119
+ const r = s.children[u];
120
+ e.children[r.key] = {
828
121
  change: !1,
829
- children: s.array ? [] : {}
830
- }, Qe(e, s, a, r.children[s.key], l) && (r.change = !0);
122
+ children: r.array ? [] : {}
123
+ }, xe(o, r, a, e.children[r.key], n) && (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, n, l, 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;
134
+ l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
842
135
  for (let u = 0; u < a.length; u++)
843
- r.children[u] = {
136
+ e.children[u] = {
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[u], n, u, !1) && (e.change = !0);
140
+ return e.change || (e.change = !Ue(a, q(s))), e.change;
141
+ }, Nt = (o, s, t, e, n) => {
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 l;
145
+ return e !== void 0 && !n ? l = s[e] : l = s[o.key], t.change = !Ue(l, 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
- const l = {};
859
- t.forEach((o) => {
860
- l[o.key] = {
151
+ const n = {};
152
+ s.forEach((l) => {
153
+ n[l.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: l.array ? [] : {}
156
+ }, xe([], l, t, n[l.key], e);
157
+ }), o.value = n;
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())
206
+ setup(o) {
207
+ const { t: s } = te(), t = Bt(), e = Rt(), n = Ht(), l = Ft(), i = O(0), a = O(0), u = O([]), r = K(() => [i.value, a.value]), g = (w) => {
208
+ const b = () => !(u.value.length <= 0 || !ce(n.value, u.value)), P = () => {
209
+ if (!b())
917
210
  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)
211
+ const h = he(t.value, u.value);
212
+ if (h)
213
+ if (h.ui) {
214
+ const M = ve(e.value, u.value.slice(0, -1));
215
+ if (!M)
923
216
  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) {
217
+ M[u.value.at(-1)] = q(h), l(u.value, M[u.value.at(-1)]);
218
+ } else if (h.array) {
219
+ const M = u.value.at(-1);
220
+ if (M === void 0) {
928
221
  console.assert(!1, "invalid last key");
929
222
  return;
930
223
  }
931
- if (typeof P == "string") {
932
- const D = xe(r.value, u.value.slice(0, -1));
933
- if (!D)
224
+ if (typeof M == "string") {
225
+ const N = ve(e.value, u.value.slice(0, -1));
226
+ if (!N)
934
227
  return;
935
- D[u.value.at(-1)] = R(b), o(u.value, D[u.value.at(-1)]);
228
+ N[u.value.at(-1)] = q(h), l(u.value, N[u.value.at(-1)]);
936
229
  } else {
937
- const D = xe(r.value, u.value);
938
- if (!D)
230
+ const N = ve(e.value, u.value);
231
+ if (!N)
939
232
  return;
940
- b.children.forEach((Q) => {
941
- D[Q.key] = R(b), o([...u.value, Q.key], D[Q.key]);
233
+ h.children.forEach((Z) => {
234
+ N[Z.key] = q(h), l([...u.value, Z.key], N[Z.key]);
942
235
  });
943
236
  }
944
237
  } else {
945
- const P = xe(r.value, u.value);
946
- if (!P)
238
+ const M = ve(e.value, u.value);
239
+ if (!M)
947
240
  return;
948
- b.children.forEach((D) => {
949
- P[D.key] = R(b), o([...u.value, D.key], P[D.key]);
241
+ h.children.forEach((N) => {
242
+ M[N.key] = q(h), l([...u.value, N.key], M[N.key]);
950
243
  });
951
244
  }
952
245
  };
953
- x() && S.push({
954
- title: t("x-prop-tree.reset"),
955
- func: $
246
+ b() && w.push({
247
+ title: s("x-prop-tree.reset"),
248
+ func: P
956
249
  });
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 }));
250
+ }, d = (w) => {
251
+ const b = () => {
252
+ const P = he(t.value, u.value), h = ve(e.value, u.value);
253
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: P, object: h }));
961
254
  };
962
- S.push({
963
- title: t("x-prop-tree.copy"),
964
- func: x
255
+ w.push({
256
+ title: s("x-prop-tree.copy"),
257
+ func: b
965
258
  });
966
- }, f = (S) => {
967
- const x = () => {
968
- const b = localStorage.getItem("propTreeCopy");
969
- if (!b)
259
+ }, f = (w) => {
260
+ const b = () => {
261
+ const h = localStorage.getItem("propTreeCopy");
262
+ if (!h)
970
263
  return !1;
971
264
  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);
265
+ const { prop: M } = JSON.parse(h), N = he(t.value, u.value);
266
+ return wt(M, N);
267
+ } catch (M) {
268
+ console.error(M);
976
269
  }
977
270
  return !1;
978
- }, $ = () => {
979
- if (!x())
271
+ }, P = () => {
272
+ if (!b())
980
273
  return;
981
- const b = localStorage.getItem("propTreeCopy");
982
- if (b)
274
+ const h = localStorage.getItem("propTreeCopy");
275
+ if (h)
983
276
  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);
277
+ const { object: M } = JSON.parse(h), N = he(t.value, u.value);
278
+ console.log(M, N);
279
+ } catch (M) {
280
+ console.error(M);
988
281
  }
989
282
  };
990
- x() && S.push({
991
- title: t("x-prop-tree.paste"),
992
- func: $
283
+ b() && w.push({
284
+ title: s("x-prop-tree.paste"),
285
+ func: P
993
286
  });
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),
287
+ }, m = K(() => {
288
+ const w = [];
289
+ return g(w), d(w), f(w), w;
290
+ }), k = (w) => {
291
+ i.value = w.x, a.value = w.y, u.value = w.keys;
292
+ }, { open: L } = Se("propTreeMenu", k);
293
+ return (w, b) => {
294
+ const P = $("v-list-item-title"), h = $("v-list-item"), M = $("v-list"), N = $("v-menu");
295
+ return S(), B(N, {
296
+ modelValue: C(L),
297
+ "onUpdate:modelValue": b[0] || (b[0] = (Z) => pe(L) ? L.value = Z : null),
1005
298
  "location-strategy": "connected",
1006
- target: s.value,
299
+ target: r.value,
1007
300
  scrim: "transparent"
1008
301
  }, {
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,
302
+ default: R(() => [
303
+ A(M, null, {
304
+ default: R(() => [
305
+ (S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(h, {
306
+ key: Pe,
1014
307
  link: "",
1015
- onClick: Q.func
308
+ onClick: Z.func
1016
309
  }, {
1017
- default: H(() => [
1018
- k($, null, {
1019
- default: H(() => [
1020
- ze(Y(Q.title), 1)
310
+ default: R(() => [
311
+ A(P, null, {
312
+ default: R(() => [
313
+ Ce(Q(Z.title), 1)
1021
314
  ]),
1022
315
  _: 2
1023
316
  }, 1024)
@@ -1032,9 +325,7 @@ const gs = /* @__PURE__ */ G({
1032
325
  }, 8, ["modelValue", "target"]);
1033
326
  };
1034
327
  }
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({
328
+ }), ke = /* @__PURE__ */ J({
1038
329
  __name: "title",
1039
330
  props: {
1040
331
  title: {},
@@ -1044,167 +335,167 @@ const Be = /* @__PURE__ */ G({
1044
335
  index: { default: 0 }
1045
336
  },
1046
337
  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,
338
+ setup(o, { emit: s }) {
339
+ const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
340
+ background: l.value ? e.value : t.value,
1050
341
  height: "36px",
1051
342
  marginBottom: "1px",
1052
343
  userSelect: "none"
1053
344
  })), a = () => {
1054
- l("collapse", !e.collapse);
1055
- }, u = (s) => {
1056
- l("menu", s.clientX, s.clientY);
345
+ n("collapse", !o.collapse);
346
+ }, u = (r) => {
347
+ n("menu", r.clientX, r.clientY);
1057
348
  };
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", {
349
+ return (r, g) => {
350
+ const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k = le("ripple");
351
+ return ee((S(), H("div", {
1061
352
  class: "d-flex align-center cursor-pointer",
1062
- style: re(i.value),
353
+ style: I(i.value),
1063
354
  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)
355
+ onContextmenu: z(u, ["self", "prevent"]),
356
+ onMouseover: g[2] || (g[2] = (L) => l.value = !0),
357
+ onMouseout: g[3] || (g[3] = (L) => l.value = !1)
1067
358
  }, [
1068
- k(c, {
359
+ A(d, {
1069
360
  class: "mr-1",
1070
- icon: s.collapse ? w(wn) : w(Sn)
361
+ icon: r.collapse ? C(Xe) : C(Fe)
1071
362
  }, null, 8, ["icon"]),
1072
- z("span", null, Y(s.title), 1),
1073
- k(f),
1074
- s.hasCreate ? (A(), B(d, {
363
+ F("span", null, Q(r.title), 1),
364
+ A(f),
365
+ r.hasCreate ? (S(), B(m, {
1075
366
  key: 0,
1076
367
  class: "mx-3",
1077
368
  variant: "text",
1078
369
  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, {
370
+ icon: C(Vt),
371
+ onClick: g[0] || (g[0] = z((L) => n("create"), ["stop"]))
372
+ }, null, 8, ["icon"])) : Y("", !0),
373
+ r.hasDelete ? (S(), B(m, {
1083
374
  key: 1,
1084
375
  class: "mx-3",
1085
376
  variant: "text",
1086
377
  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)
378
+ icon: C(re),
379
+ onClick: g[1] || (g[1] = z((L) => n("delete", r.index), ["stop"]))
380
+ }, null, 8, ["icon"])) : Y("", !0)
1090
381
  ], 36)), [
1091
- [m]
382
+ [k]
1092
383
  ]);
1093
384
  };
1094
385
  }
1095
- }), hs = /* @__PURE__ */ G({
386
+ }), Yt = /* @__PURE__ */ J({
1096
387
  __name: "entry",
1097
388
  props: {
1098
389
  minHeight: {}
1099
390
  },
1100
391
  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,
392
+ setup(o, { emit: s }) {
393
+ const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
394
+ background: l.value ? e.value : t.value,
395
+ minHeight: o.minHeight,
1105
396
  paddingRight: "4px",
1106
397
  marginBottom: "1px",
1107
398
  userSelect: "none"
1108
399
  })), a = (u) => {
1109
- l("menu", u.clientX, u.clientY);
400
+ n("menu", u.clientX, u.clientY);
1110
401
  };
1111
- return (u, s) => {
1112
- const v = ce("ripple");
1113
- return le((A(), K("div", {
402
+ return (u, r) => {
403
+ const g = le("ripple");
404
+ return ee((S(), H("div", {
1114
405
  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)
406
+ style: I(i.value),
407
+ onContextmenu: z(a, ["self", "prevent"]),
408
+ onMouseover: r[0] || (r[0] = (d) => l.value = !0),
409
+ onMouseout: r[1] || (r[1] = (d) => l.value = !1)
1119
410
  }, [
1120
- Bn(u.$slots, "default")
411
+ pt(u.$slots, "default")
1121
412
  ], 36)), [
1122
- [v]
413
+ [g]
1123
414
  ]);
1124
415
  };
1125
416
  }
1126
417
  });
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,
418
+ function Wt(o, s, t) {
419
+ const { t: e } = te();
420
+ return { renderProp: (l, i, a) => {
421
+ const u = l.at(-1);
422
+ let g = typeof u == "number" ? `[${u + 1}]` : e(i.name);
423
+ return ce(o.value, l) && (g += " *"), _(
424
+ Yt,
1134
425
  {
1135
- minHeight: t.value,
1136
- onMenu: (c, f) => {
1137
- $e.emit("propTreeMenu", { x: c, y: f, keys: o });
426
+ minHeight: s.value,
427
+ onMenu: (d, f) => {
428
+ ae.emit("propTreeMenu", { x: d, y: f, keys: l });
1138
429
  }
1139
430
  },
1140
431
  () => [
1141
- _("span", { class: "ml-1", innerHTML: v }),
1142
- _("div", { style: { width: n.value } }, a)
432
+ _("span", { class: "ml-1", innerHTML: g }),
433
+ _("div", { style: { width: t.value } }, a)
1143
434
  ]
1144
435
  );
1145
436
  } };
1146
437
  }
1147
- const ae = (e, t, n, r, l, o) => {
1148
- 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
+ const ne = (o, s, t, e, n, l) => {
439
+ if (n !== void 0)
440
+ if (l) {
441
+ if (t[s.key] === void 0) {
442
+ const i = q(s);
443
+ i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
1153
444
  }
1154
- return n[t.key];
445
+ return t[s.key];
1155
446
  } else {
1156
- if (n[l] === void 0) {
1157
- const i = R(t, !0);
1158
- i !== void 0 && (n[l] = i, r(e, n[l]));
447
+ if (t[n] === void 0) {
448
+ const i = q(s, !0);
449
+ i !== void 0 && (t[n] = i, e(o, t[n]));
1159
450
  }
1160
- return n[l];
451
+ return t[n];
1161
452
  }
1162
453
  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]));
454
+ if (t[s.key] === void 0) {
455
+ const i = q(s);
456
+ i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
1166
457
  }
1167
- return n[t.key];
458
+ return t[s.key];
1168
459
  }
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]));
460
+ }, oe = (o, s, t, e, n, l, i) => {
461
+ if (l !== void 0)
462
+ i ? e !== t[s.key] && (t[s.key] = e, n(o, t[s.key])) : e !== t[l] && (t[l] = e, n(o, t[l]));
1172
463
  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]));
464
+ let a = e;
465
+ (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, n(o, t[s.key]));
1175
466
  }
1176
467
  };
1177
- function bs(e) {
1178
- return { renderUiDummy: (n, r, l, o, i) => {
1179
- if (r.ui !== "dummy") {
468
+ function Qt(o) {
469
+ return { renderUiDummy: (t, e, n, l, i) => {
470
+ if (e.ui !== "dummy") {
1180
471
  console.assert(!1, "renderUiDummy prop ui must be dummy");
1181
472
  return;
1182
473
  }
1183
- ae(n, r, l, e, o, i);
474
+ ne(t, e, n, o, l, i);
1184
475
  } };
1185
476
  }
1186
- const $s = { class: "d-flex justify-space-between align-center" }, Ts = /* @__PURE__ */ G({
477
+ const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ J({
1187
478
  __name: "strInput",
1188
- props: /* @__PURE__ */ Z({
479
+ props: /* @__PURE__ */ W({
1189
480
  hasDelete: { type: Boolean, default: !1 },
1190
481
  readonly: { type: Boolean, default: !1 }
1191
482
  }, {
1192
483
  modelValue: { required: !0 },
1193
484
  modelModifiers: {}
1194
485
  }),
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),
486
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
487
+ setup(o, { emit: s }) {
488
+ const t = G(o, "modelValue"), e = s;
489
+ return (n, l) => {
490
+ const i = $("v-text-field"), a = $("v-btn"), u = le("ripple");
491
+ return S(), H("div", Zt, [
492
+ ee(A(i, {
493
+ modelValue: t.value,
494
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
1204
495
  density: "compact",
1205
496
  "hide-details": "",
1206
497
  "single-line": "",
1207
- readonly: l.readonly
498
+ readonly: n.readonly
1208
499
  }, null, 8, ["modelValue", "readonly"]), [
1209
500
  [
1210
501
  u,
@@ -1213,49 +504,49 @@ const $s = { class: "d-flex justify-space-between align-center" }, Ts = /* @__PU
1213
504
  { stop: !0 }
1214
505
  ]
1215
506
  ]),
1216
- l.hasDelete ? (A(), B(a, {
507
+ n.hasDelete ? (S(), B(a, {
1217
508
  key: 0,
1218
509
  class: "mx-2",
1219
510
  variant: "text",
1220
511
  density: "compact",
1221
- icon: w(_e),
1222
- onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1223
- }, null, 8, ["icon"])) : X("", !0)
512
+ icon: C(re),
513
+ onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
514
+ }, null, 8, ["icon"])) : Y("", !0)
1224
515
  ]);
1225
516
  };
1226
517
  }
1227
518
  });
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,
519
+ function jt(o) {
520
+ return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Et, {
521
+ modelValue: e.static ? e.value : ne(
522
+ t,
1234
523
  e,
524
+ n,
1235
525
  o,
526
+ l,
1236
527
  i
1237
528
  ),
1238
529
  "onUpdate:modelValue": (a) => {
1239
- r.static || fe(
530
+ e.static || oe(
531
+ t,
532
+ e,
1240
533
  n,
1241
- r,
1242
- l,
1243
534
  a,
1244
- e,
1245
535
  o,
536
+ l,
1246
537
  i
1247
538
  );
1248
539
  },
1249
- hasDelete: o !== void 0 && !i,
540
+ hasDelete: l !== void 0 && !i,
1250
541
  onDelete: () => {
1251
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
542
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
1252
543
  },
1253
- readonly: r.static || r.readonly
544
+ readonly: e.static || e.readonly
1254
545
  }) };
1255
546
  }
1256
- const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PURE__ */ G({
547
+ const It = { class: "d-flex justify-space-between align-center" }, en = /* @__PURE__ */ J({
1257
548
  __name: "numInput",
1258
- props: /* @__PURE__ */ Z({
549
+ props: /* @__PURE__ */ W({
1259
550
  hasDelete: { type: Boolean, default: !1 },
1260
551
  precision: { default: () => {
1261
552
  } },
@@ -1267,24 +558,24 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
1267
558
  modelValue: { required: !0 },
1268
559
  modelModifiers: {}
1269
560
  }),
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),
561
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
562
+ setup(o, { emit: s }) {
563
+ const t = G(o, "modelValue"), e = s;
564
+ return (n, l) => {
565
+ const i = $("v-number-input"), a = $("v-btn"), u = le("ripple");
566
+ return S(), H("div", It, [
567
+ ee(A(i, {
568
+ modelValue: t.value,
569
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
1279
570
  density: "compact",
1280
571
  "control-variant": "stacked",
1281
- precision: l.precision,
1282
- min: l.min,
1283
- max: l.max,
1284
- step: l.step,
572
+ precision: n.precision,
573
+ min: n.min,
574
+ max: n.max,
575
+ step: n.step,
1285
576
  "hide-details": "",
1286
577
  "single-line": "",
1287
- readonly: l.readonly
578
+ readonly: n.readonly
1288
579
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
1289
580
  [
1290
581
  u,
@@ -1293,117 +584,117 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
1293
584
  { stop: !0 }
1294
585
  ]
1295
586
  ]),
1296
- l.hasDelete ? (A(), B(a, {
587
+ n.hasDelete ? (S(), B(a, {
1297
588
  key: 0,
1298
589
  class: "mx-2",
1299
590
  variant: "text",
1300
591
  density: "compact",
1301
- icon: w(_e),
1302
- onClick: o[1] || (o[1] = J((s) => r("delete"), ["stop"]))
1303
- }, null, 8, ["icon"])) : X("", !0)
592
+ icon: C(re),
593
+ onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
594
+ }, null, 8, ["icon"])) : Y("", !0)
1304
595
  ]);
1305
596
  };
1306
597
  }
1307
598
  });
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,
599
+ function tn(o) {
600
+ return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(en, {
601
+ modelValue: ne(
602
+ t,
1314
603
  e,
604
+ n,
1315
605
  o,
606
+ l,
1316
607
  i
1317
608
  ),
1318
609
  "onUpdate:modelValue": (a) => {
1319
- fe(
610
+ oe(
611
+ t,
612
+ e,
1320
613
  n,
1321
- r,
1322
- l,
1323
614
  a,
1324
- e,
1325
615
  o,
616
+ l,
1326
617
  i
1327
618
  );
1328
619
  },
1329
- hasDelete: o !== void 0 && !i,
620
+ hasDelete: l !== void 0 && !i,
1330
621
  onDelete: () => {
1331
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
622
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
1332
623
  },
1333
- precision: r.precision,
1334
- min: r.min,
1335
- max: r.max,
1336
- step: r.step,
1337
- readonly: r.readonly
624
+ precision: e.precision,
625
+ min: e.min,
626
+ max: e.max,
627
+ step: e.step,
628
+ readonly: e.readonly
1338
629
  }) };
1339
630
  }
1340
- const Ps = { class: "d-flex justify-space-between align-center" }, xs = /* @__PURE__ */ G({
631
+ const nn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ J({
1341
632
  __name: "switch",
1342
- props: /* @__PURE__ */ Z({
633
+ props: /* @__PURE__ */ W({
1343
634
  hasDelete: { type: Boolean, default: !1 },
1344
635
  readonly: { type: Boolean, default: !1 }
1345
636
  }, {
1346
637
  modelValue: { type: Boolean },
1347
638
  modelModifiers: {}
1348
639
  }),
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),
640
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
641
+ setup(o, { emit: s }) {
642
+ const t = G(o, "modelValue"), e = s;
643
+ return (n, l) => {
644
+ const i = $("v-switch"), a = $("v-btn");
645
+ return S(), H("div", nn, [
646
+ A(i, {
647
+ modelValue: t.value,
648
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
1358
649
  class: "ml-1",
1359
650
  density: "compact",
1360
651
  color: "primary",
1361
652
  "hide-details": "",
1362
- readonly: l.readonly
653
+ readonly: n.readonly
1363
654
  }, null, 8, ["modelValue", "readonly"]),
1364
- l.hasDelete ? (A(), B(a, {
655
+ n.hasDelete ? (S(), B(a, {
1365
656
  key: 0,
1366
657
  class: "mx-2",
1367
658
  variant: "text",
1368
659
  density: "compact",
1369
- icon: w(_e),
1370
- onClick: o[1] || (o[1] = J((u) => r("delete"), ["stop"]))
1371
- }, null, 8, ["icon"])) : X("", !0)
660
+ icon: C(re),
661
+ onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
662
+ }, null, 8, ["icon"])) : Y("", !0)
1372
663
  ]);
1373
664
  };
1374
665
  }
1375
666
  });
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,
667
+ function on(o) {
668
+ return { renderUiSwitch: (t, e, n, l, i) => e.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(ln, {
669
+ modelValue: ne(
670
+ t,
1382
671
  e,
672
+ n,
1383
673
  o,
674
+ l,
1384
675
  i
1385
676
  ) ?? !1,
1386
677
  "onUpdate:modelValue": (a) => {
1387
- fe(
678
+ oe(
679
+ t,
680
+ e,
1388
681
  n,
1389
- r,
1390
- l,
1391
682
  a,
1392
- e,
1393
683
  o,
684
+ l,
1394
685
  i
1395
686
  );
1396
687
  },
1397
- hasDelete: o !== void 0 && !i,
688
+ hasDelete: l !== void 0 && !i,
1398
689
  onDelete: () => {
1399
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, 1), l));
690
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, 1), n));
1400
691
  },
1401
- readonly: r.readonly
692
+ readonly: e.readonly
1402
693
  }) };
1403
694
  }
1404
- const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PURE__ */ G({
695
+ const sn = { class: "d-flex justify-space-between align-center" }, rn = /* @__PURE__ */ J({
1405
696
  __name: "select",
1406
- props: /* @__PURE__ */ Z({
697
+ props: /* @__PURE__ */ W({
1407
698
  hasDelete: { type: Boolean, default: !1 },
1408
699
  readonly: { type: Boolean, default: !1 },
1409
700
  items: {}
@@ -1411,21 +702,21 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
1411
702
  modelValue: {},
1412
703
  modelModifiers: {}
1413
704
  }),
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(() => {
705
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
706
+ setup(o, { emit: s }) {
707
+ const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
1417
708
  var u;
1418
709
  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 });
710
+ return (u = Ye[l.value]) == null || u.items[o.items].forEach(({ title: r, value: g }) => {
711
+ a.push({ title: t(r), value: g });
1421
712
  }), a;
1422
713
  });
1423
714
  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),
715
+ const r = $("v-select"), g = $("v-btn"), d = le("ripple");
716
+ return S(), H("div", sn, [
717
+ ee(A(r, {
718
+ modelValue: e.value,
719
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
1429
720
  density: "compact",
1430
721
  items: i.value,
1431
722
  "hide-details": "",
@@ -1433,54 +724,54 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
1433
724
  readonly: a.readonly
1434
725
  }, null, 8, ["modelValue", "items", "readonly"]), [
1435
726
  [
1436
- c,
727
+ d,
1437
728
  void 0,
1438
729
  void 0,
1439
730
  { stop: !0 }
1440
731
  ]
1441
732
  ]),
1442
- a.hasDelete ? (A(), B(v, {
733
+ a.hasDelete ? (S(), B(g, {
1443
734
  key: 0,
1444
735
  class: "mx-2",
1445
736
  variant: "text",
1446
737
  density: "compact",
1447
- icon: w(_e),
1448
- onClick: u[1] || (u[1] = J((f) => l("delete"), ["stop"]))
1449
- }, null, 8, ["icon"])) : X("", !0)
738
+ icon: C(re),
739
+ onClick: u[1] || (u[1] = z((f) => n("delete"), ["stop"]))
740
+ }, null, 8, ["icon"])) : Y("", !0)
1450
741
  ]);
1451
742
  };
1452
743
  }
1453
744
  });
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,
745
+ function un(o) {
746
+ return { renderUiSelect: (t, e, n, l, i) => e.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(rn, {
747
+ modelValue: ne(
748
+ t,
1460
749
  e,
750
+ n,
1461
751
  o,
752
+ l,
1462
753
  i
1463
754
  ) ?? "",
1464
755
  "onUpdate:modelValue": (a) => {
1465
- fe(
756
+ oe(
757
+ t,
758
+ e,
1466
759
  n,
1467
- r,
1468
- l,
1469
760
  a,
1470
- e,
1471
761
  o,
762
+ l,
1472
763
  i
1473
764
  );
1474
765
  },
1475
- hasDelete: o !== void 0 && !i,
766
+ hasDelete: l !== void 0 && !i,
1476
767
  onDelete: () => {
1477
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
768
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
1478
769
  },
1479
- items: r.items,
1480
- readonly: r.readonly
770
+ items: e.items,
771
+ readonly: e.readonly
1481
772
  }) };
1482
773
  }
1483
- const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-grey ml-1" }, js = /* @__PURE__ */ G({
774
+ const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-grey ml-1" }, dn = /* @__PURE__ */ J({
1484
775
  __name: "group",
1485
776
  props: {
1486
777
  id: {},
@@ -1489,66 +780,66 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1489
780
  count: {}
1490
781
  },
1491
782
  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,
783
+ setup(o, { emit: s }) {
784
+ const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
785
+ background: i.value ? e.value : t.value,
1495
786
  height: "30px",
1496
787
  marginBottom: "1px",
1497
788
  userSelect: "none"
1498
789
  }));
1499
- return (u, s) => {
1500
- const v = V("v-icon"), c = ce("ripple");
1501
- return le((A(), K("div", {
790
+ return (u, r) => {
791
+ const g = $("v-icon"), d = le("ripple");
792
+ return ee((S(), H("div", {
1502
793
  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)
794
+ style: I(a.value),
795
+ onClick: r[0] || (r[0] = (f) => l("x-click", n.id)),
796
+ onMouseover: r[1] || (r[1] = (f) => i.value = !0),
797
+ onMouseout: r[2] || (r[2] = (f) => i.value = !1)
1507
798
  }, [
1508
- k(v, {
1509
- icon: l.collapse ? w(wn) : w(Sn),
799
+ A(g, {
800
+ icon: n.collapse ? C(Xe) : C(Fe),
1510
801
  size: "small"
1511
802
  }, null, 8, ["icon"]),
1512
- z("span", Ls, Y(l.title), 1),
1513
- z("span", Ds, Y(l.count), 1)
803
+ F("span", an, Q(n.title), 1),
804
+ F("span", cn, Q(n.count), 1)
1514
805
  ], 36)), [
1515
- [c]
806
+ [d]
1516
807
  ]);
1517
808
  };
1518
809
  }
1519
- }), ks = { class: "text-subtitle-1 ml-6" }, Es = /* @__PURE__ */ G({
810
+ }), fn = { class: "text-subtitle-1 ml-6" }, mn = /* @__PURE__ */ J({
1520
811
  __name: "item",
1521
812
  props: {
1522
813
  id: {},
1523
814
  title: {}
1524
815
  },
1525
816
  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,
817
+ setup(o, { emit: s }) {
818
+ const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
819
+ background: i.value ? e.value : t.value,
1529
820
  height: "48px",
1530
821
  marginBottom: "1px",
1531
822
  userSelect: "none"
1532
823
  }));
1533
- return (u, s) => {
1534
- const v = ce("ripple");
1535
- return le((A(), K("div", {
824
+ return (u, r) => {
825
+ const g = le("ripple");
826
+ return ee((S(), H("div", {
1536
827
  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)
828
+ style: I(a.value),
829
+ onClick: r[0] || (r[0] = (d) => l("x-click", n.id)),
830
+ onMouseover: r[1] || (r[1] = (d) => i.value = !0),
831
+ onMouseout: r[2] || (r[2] = (d) => i.value = !1)
1541
832
  }, [
1542
- z("span", ks, Y(l.title), 1)
833
+ F("span", fn, Q(n.title), 1)
1543
834
  ], 36)), [
1544
- [v]
835
+ [g]
1545
836
  ]);
1546
837
  };
1547
838
  }
1548
- }), Ns = { key: 0 }, Rs = {
839
+ }), vn = { key: 0 }, pn = {
1549
840
  key: 1,
1550
841
  class: "text-body-2 text-grey ml-3"
1551
- }, Bs = /* @__PURE__ */ G({
842
+ }, yn = /* @__PURE__ */ J({
1552
843
  __name: "index",
1553
844
  props: {
1554
845
  modelValue: {},
@@ -1557,128 +848,128 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1557
848
  openModifiers: {}
1558
849
  },
1559
850
  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);
851
+ setup(o) {
852
+ const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), n = et(), l = (a) => {
853
+ const u = ze(n, a);
854
+ u && Ct(n, a, !u.collapse);
1564
855
  }, i = (a) => {
1565
- n.value = a, r.value = !1, $e.emit("refreshDepends");
856
+ t.value = a, e.value = !1, ae.emit("refreshDepends");
1566
857
  };
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
858
+ return (a, u) => C(n).length > 0 ? (S(), H("div", vn, [
859
+ (S(!0), H(Ve, null, Be(C(n), (r) => (S(), H(Ve, {
860
+ key: r.id
1570
861
  }, [
1571
- s.type === 0 ? (A(), B(js, {
862
+ r.type === 0 ? (S(), B(dn, {
1572
863
  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, {
864
+ id: r.id,
865
+ title: r.name,
866
+ collapse: r.collapse,
867
+ count: r.count ?? 0,
868
+ onXClick: l
869
+ }, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
870
+ r.type === 1 && r.show ? (S(), B(mn, {
1580
871
  key: 1,
1581
- id: s.id,
1582
- title: s.name,
872
+ id: r.id,
873
+ title: r.name,
1583
874
  onXClick: i
1584
- }, null, 8, ["id", "title"])) : X("", !0)
875
+ }, null, 8, ["id", "title"])) : Y("", !0)
1585
876
  ], 64))), 128))
1586
- ])) : (A(), K("div", Rs, Y(w(t)("x-prop-tree.noComp")), 1));
877
+ ])) : (S(), H("div", pn, Q(C(s)("x-prop-tree.noComp")), 1));
1587
878
  }
1588
- }), Fs = { class: "text-subtitle-1 ml-3" }, Hs = /* @__PURE__ */ G({
879
+ }), gn = { class: "text-subtitle-1 ml-3" }, _n = /* @__PURE__ */ J({
1589
880
  __name: "index",
1590
881
  props: {
1591
882
  modelValue: {},
1592
883
  modelModifiers: {}
1593
884
  },
1594
885
  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(() => {
886
+ setup(o) {
887
+ const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = G(o, "modelValue"), i = et(), a = K(() => {
1597
888
  let f = "100%";
1598
- return n.mdAndUp.value && (f = "400px"), {
1599
- background: l.value,
889
+ return t.mdAndUp.value && (f = "400px"), {
890
+ background: n.value,
1600
891
  width: f,
1601
892
  height: "100%"
1602
893
  };
1603
- }), u = F(() => {
894
+ }), u = K(() => {
1604
895
  let f = 48;
1605
- return r.value && (f += 24), {
896
+ return e.value && (f += 24), {
1606
897
  position: "relative",
1607
898
  height: `calc(100% - ${f}px)`
1608
899
  };
1609
- }), s = F(() => ({
900
+ }), r = K(() => ({
1610
901
  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),
902
+ })), g = K(() => {
903
+ if (!l.value)
904
+ return s("x-runtime-lib.notSet");
905
+ const f = ze(i, l.value);
906
+ return f ? f.name : s("x-runtime-lib.compNotAvail");
907
+ }), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
908
+ return De(() => {
909
+ d.value = !1;
910
+ }), (f, m) => {
911
+ const k = $("v-btn"), L = $("v-sheet"), w = $("v-icon"), b = $("v-dialog");
912
+ return S(), B(b, {
913
+ modelValue: C(d),
914
+ "onUpdate:modelValue": m[5] || (m[5] = (P) => pe(d) ? d.value = P : null),
1624
915
  transition: "scroll-x-reverse-transition",
1625
916
  persistent: "",
1626
917
  "no-click-animation": "",
1627
918
  fullscreen: "",
1628
- onKeydown: d[6] || (d[6] = Jt(J(($) => c.value = !1, ["stop", "prevent"]), ["esc"]))
919
+ onKeydown: m[6] || (m[6] = Ke(z((P) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1629
920
  }, {
1630
- activator: H(({ props: $ }) => [
1631
- k(m, dt($, {
921
+ activator: R(({ props: P }) => [
922
+ A(k, Ae(P, {
1632
923
  density: "comfortable",
1633
924
  block: ""
1634
925
  }), {
1635
- default: H(() => [
1636
- ze(Y(v.value), 1)
926
+ default: R(() => [
927
+ Ce(Q(g.value), 1)
1637
928
  ]),
1638
929
  _: 2
1639
930
  }, 1040)
1640
931
  ]),
1641
- default: H(() => [
1642
- z("div", {
932
+ default: R(() => [
933
+ F("div", {
1643
934
  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"]))
935
+ onClick: m[3] || (m[3] = z((P) => d.value = !1, ["self"])),
936
+ onContextmenu: m[4] || (m[4] = z((P) => d.value = !1, ["self", "prevent"]))
1646
937
  }, [
1647
- z("div", {
938
+ F("div", {
1648
939
  class: "elevation-2",
1649
- style: re(a.value)
940
+ style: I(a.value)
1650
941
  }, [
1651
- w(r) ? (A(), B(C, {
942
+ C(e) ? (S(), B(L, {
1652
943
  key: 0,
1653
944
  color: "transparent",
1654
945
  height: 24
1655
- })) : X("", !0),
1656
- k(C, {
946
+ })) : Y("", !0),
947
+ A(L, {
1657
948
  class: "d-flex align-center px-3",
1658
949
  color: "transparent",
1659
950
  height: 48
1660
951
  }, {
1661
- default: H(() => [
1662
- k(S, {
1663
- icon: w(An),
1664
- onClick: d[0] || (d[0] = ($) => c.value = !1)
952
+ default: R(() => [
953
+ A(w, {
954
+ icon: C(Ge),
955
+ onClick: m[0] || (m[0] = (P) => d.value = !1)
1665
956
  }, null, 8, ["icon"]),
1666
- z("span", Fs, Y(w(t)("x-prop-tree.dlg.compSelect.title")), 1)
957
+ F("span", gn, Q(C(s)("x-prop-tree.dlg.compSelect.title")), 1)
1667
958
  ]),
1668
959
  _: 1
1669
960
  }),
1670
- z("div", {
961
+ F("div", {
1671
962
  class: "overflow-y-auto",
1672
- style: re(u.value)
963
+ style: I(u.value)
1673
964
  }, [
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)
965
+ A(yn, {
966
+ modelValue: l.value,
967
+ "onUpdate:modelValue": m[1] || (m[1] = (P) => l.value = P),
968
+ open: C(d),
969
+ "onUpdate:open": m[2] || (m[2] = (P) => pe(d) ? d.value = P : null)
1679
970
  }, null, 8, ["modelValue", "open"]),
1680
- z("div", {
1681
- style: re(s.value)
971
+ F("div", {
972
+ style: I(r.value)
1682
973
  }, null, 4)
1683
974
  ], 4)
1684
975
  ], 4)
@@ -1689,88 +980,88 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
1689
980
  };
1690
981
  }
1691
982
  });
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,
983
+ function hn(o) {
984
+ return { renderUiCompSelect: (t, e, n, l, i) => e.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(_n, {
985
+ modelValue: ne(
986
+ t,
1698
987
  e,
988
+ n,
1699
989
  o,
990
+ l,
1700
991
  i
1701
992
  ),
1702
993
  "onUpdate:modelValue": (a) => {
1703
- fe(
994
+ oe(
995
+ t,
996
+ e,
1704
997
  n,
1705
- r,
1706
- l,
1707
998
  a,
1708
- e,
1709
999
  o,
1000
+ l,
1710
1001
  i
1711
1002
  );
1712
1003
  }
1713
1004
  }) };
1714
1005
  }
1715
- const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PURE__ */ G({
1006
+ const kn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PURE__ */ J({
1716
1007
  __name: "colorPicker",
1717
- props: /* @__PURE__ */ Z({
1008
+ props: /* @__PURE__ */ W({
1718
1009
  hasDelete: { type: Boolean, default: !1 },
1719
1010
  readonly: { type: Boolean, default: !1 }
1720
1011
  }, {
1721
1012
  modelValue: {},
1722
1013
  modelModifiers: {}
1723
1014
  }),
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(() => {
1015
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1016
+ setup(o, { emit: s }) {
1017
+ const { t } = te(), e = G(o, "modelValue"), n = s, l = K(() => {
1727
1018
  let u = "100%";
1728
- return e.hasDelete && (u = "calc(100% - 37px)"), {
1019
+ return o.hasDelete && (u = "calc(100% - 37px)"), {
1729
1020
  width: u
1730
1021
  };
1731
- }), i = F(() => e.readonly), { open: a } = Je(`propTreeColorPickerMenu${ct()}`);
1732
- return ft(() => {
1022
+ }), i = K(() => o.readonly), { open: a } = Se(`propTreeColorPickerMenu${we()}`);
1023
+ return De(() => {
1733
1024
  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),
1025
+ }), (u, r) => {
1026
+ const g = $("v-btn"), d = $("v-color-picker"), f = $("v-menu");
1027
+ return S(), B(f, {
1028
+ modelValue: C(a),
1029
+ "onUpdate:modelValue": r[2] || (r[2] = (m) => pe(a) ? a.value = m : null),
1739
1030
  "close-on-content-click": !1,
1740
1031
  scrim: "transparent"
1741
1032
  }, {
1742
- activator: H(({ props: d }) => [
1743
- z("div", Ks, [
1744
- z("div", {
1033
+ activator: R(({ props: m }) => [
1034
+ F("div", kn, [
1035
+ F("div", {
1745
1036
  class: "flex-grow-1",
1746
- style: re(o.value)
1037
+ style: I(l.value)
1747
1038
  }, [
1748
- k(v, dt(d, {
1039
+ A(g, Ae(m, {
1749
1040
  density: "comfortable",
1750
- color: r.value,
1041
+ color: e.value,
1751
1042
  block: "",
1752
1043
  disabled: i.value
1753
1044
  }), {
1754
- default: H(() => [
1755
- ze(Y(r.value ? r.value : w(n)("x-runtime-lib.notSet")), 1)
1045
+ default: R(() => [
1046
+ Ce(Q(e.value ? e.value : C(t)("x-runtime-lib.notSet")), 1)
1756
1047
  ]),
1757
1048
  _: 2
1758
1049
  }, 1040, ["color", "disabled"])
1759
1050
  ], 4),
1760
- u.hasDelete ? (A(), B(v, {
1051
+ u.hasDelete ? (S(), B(g, {
1761
1052
  key: 0,
1762
1053
  class: "mx-2",
1763
1054
  variant: "text",
1764
1055
  density: "compact",
1765
- icon: w(_e),
1766
- onClick: s[0] || (s[0] = J((m) => l("delete"), ["stop"]))
1767
- }, null, 8, ["icon"])) : X("", !0)
1056
+ icon: C(re),
1057
+ onClick: r[0] || (r[0] = z((k) => n("delete"), ["stop"]))
1058
+ }, null, 8, ["icon"])) : Y("", !0)
1768
1059
  ])
1769
1060
  ]),
1770
- default: H(() => [
1771
- k(c, {
1772
- modelValue: r.value,
1773
- "onUpdate:modelValue": s[1] || (s[1] = (d) => r.value = d),
1061
+ default: R(() => [
1062
+ A(d, {
1063
+ modelValue: e.value,
1064
+ "onUpdate:modelValue": r[1] || (r[1] = (m) => e.value = m),
1774
1065
  mode: "hexa",
1775
1066
  "show-swatches": "",
1776
1067
  "swatches-max-height": "150px"
@@ -1781,85 +1072,85 @@ const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PU
1781
1072
  };
1782
1073
  }
1783
1074
  });
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,
1075
+ function Cn(o) {
1076
+ return { renderUiColorPicker: (t, e, n, l, i) => e.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(Vn, {
1077
+ modelValue: ne(
1078
+ t,
1790
1079
  e,
1080
+ n,
1791
1081
  o,
1082
+ l,
1792
1083
  i
1793
1084
  ),
1794
1085
  "onUpdate:modelValue": (a) => {
1795
- fe(
1086
+ oe(
1087
+ t,
1088
+ e,
1796
1089
  n,
1797
- r,
1798
- l,
1799
1090
  a,
1800
- e,
1801
1091
  o,
1092
+ l,
1802
1093
  i
1803
1094
  );
1804
1095
  },
1805
- hasDelete: o !== void 0 && !i,
1096
+ hasDelete: l !== void 0 && !i,
1806
1097
  onDelete: () => {
1807
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1098
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
1808
1099
  },
1809
- readonly: r.readonly
1100
+ readonly: e.readonly
1810
1101
  }) };
1811
1102
  }
1812
- const Js = { class: "d-flex justify-space-between align-center my-2" }, Is = { class: "flex-grow-1" }, Xs = /* @__PURE__ */ G({
1103
+ const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { class: "flex-grow-1" }, $n = /* @__PURE__ */ J({
1813
1104
  __name: "multiTypes",
1814
- props: /* @__PURE__ */ Z({
1105
+ props: /* @__PURE__ */ W({
1815
1106
  hasDelete: { type: Boolean, default: !1 },
1816
1107
  types: {}
1817
1108
  }, {
1818
1109
  modelValue: {},
1819
1110
  modelModifiers: {}
1820
1111
  }),
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(() => {
1112
+ emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1113
+ setup(o, { emit: s }) {
1114
+ const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
1824
1115
  var f;
1825
- return (f = Zt[o.value]) == null ? void 0 : f.types[e.types];
1826
- }), a = N(0), u = F(() => {
1827
- var d;
1116
+ return (f = Ye[l.value]) == null ? void 0 : f.types[o.types];
1117
+ }), a = O(0), u = K(() => {
1118
+ var m;
1828
1119
  const f = [];
1829
- return (d = i.value) == null || d.forEach(({ title: m }, C) => {
1120
+ return (m = i.value) == null || m.forEach(({ title: k }, L) => {
1830
1121
  f.push({
1831
- title: n(m),
1832
- value: C
1122
+ title: t(k),
1123
+ value: L
1833
1124
  });
1834
1125
  }), f;
1835
1126
  });
1836
- _t(() => {
1127
+ Ne(() => {
1837
1128
  var f;
1838
- (f = i.value) == null || f.some((d, m) => d.validator(r.value) ? (a.value = m, !0) : !1);
1129
+ (f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
1839
1130
  });
1840
- const s = F(() => {
1131
+ const r = K(() => {
1841
1132
  var f;
1842
1133
  return (f = i.value) == null ? void 0 : f[a.value];
1843
- }), v = () => {
1134
+ }), g = () => {
1844
1135
  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, {
1136
+ e.value = (f = r.value) == null ? void 0 : f.default;
1137
+ }, d = O(0);
1138
+ return Ne(() => {
1139
+ var f, m;
1140
+ ((f = r.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Ut(e.value) : ((m = r.value) == null ? void 0 : m.ui) === "percentInput" && (d.value = $t(e.value));
1141
+ }), ue(d, (f) => {
1142
+ var m, k;
1143
+ ((m = r.value) == null ? void 0 : m.ui) === "pixelInput" ? e.value = f + "px" : ((k = r.value) == null ? void 0 : k.ui) === "percentInput" && (e.value = f + "%");
1144
+ }), (f, m) => {
1145
+ var P, h;
1146
+ const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), b = le("ripple");
1147
+ return S(), H("div", Sn, [
1148
+ F("div", Un, [
1149
+ ee(A(k, {
1859
1150
  modelValue: a.value,
1860
1151
  "onUpdate:modelValue": [
1861
- d[0] || (d[0] = (P) => a.value = P),
1862
- v
1152
+ m[0] || (m[0] = (M) => a.value = M),
1153
+ g
1863
1154
  ],
1864
1155
  density: "compact",
1865
1156
  items: u.value,
@@ -1867,74 +1158,74 @@ const Js = { class: "d-flex justify-space-between align-center my-2" }, Is = { c
1867
1158
  "single-line": ""
1868
1159
  }, null, 8, ["modelValue", "items"]), [
1869
1160
  [
1870
- x,
1161
+ b,
1871
1162
  void 0,
1872
1163
  void 0,
1873
1164
  { stop: !0 }
1874
1165
  ]
1875
1166
  ]),
1876
- (($ = s.value) == null ? void 0 : $.ui) === "pixelInput" || ((b = s.value) == null ? void 0 : b.ui) === "percentInput" ? le((A(), B(C, {
1167
+ ((P = r.value) == null ? void 0 : P.ui) === "pixelInput" || ((h = r.value) == null ? void 0 : h.ui) === "percentInput" ? ee((S(), B(L, {
1877
1168
  key: 0,
1878
- modelValue: c.value,
1879
- "onUpdate:modelValue": d[1] || (d[1] = (P) => c.value = P),
1169
+ modelValue: d.value,
1170
+ "onUpdate:modelValue": m[1] || (m[1] = (M) => d.value = M),
1880
1171
  density: "compact",
1881
1172
  "control-variant": "stacked",
1882
- precision: s.value.precision,
1883
- min: s.value.min,
1884
- max: s.value.max,
1885
- step: s.value.step,
1173
+ precision: r.value.precision,
1174
+ min: r.value.min,
1175
+ max: r.value.max,
1176
+ step: r.value.step,
1886
1177
  "hide-details": "",
1887
1178
  "single-line": ""
1888
1179
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1889
1180
  [
1890
- x,
1181
+ b,
1891
1182
  void 0,
1892
1183
  void 0,
1893
1184
  { stop: !0 }
1894
1185
  ]
1895
- ]) : X("", !0)
1186
+ ]) : Y("", !0)
1896
1187
  ]),
1897
- f.hasDelete ? (A(), B(S, {
1188
+ f.hasDelete ? (S(), B(w, {
1898
1189
  key: 0,
1899
1190
  class: "mx-2",
1900
1191
  variant: "text",
1901
1192
  density: "compact",
1902
- icon: w(_e),
1903
- onClick: d[2] || (d[2] = J((P) => l("delete"), ["stop"]))
1904
- }, null, 8, ["icon"])) : X("", !0)
1193
+ icon: C(re),
1194
+ onClick: m[2] || (m[2] = z((M) => n("delete"), ["stop"]))
1195
+ }, null, 8, ["icon"])) : Y("", !0)
1905
1196
  ]);
1906
1197
  };
1907
1198
  }
1908
1199
  });
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,
1200
+ function xn(o) {
1201
+ return { renderUiMultiTypes: (t, e, n, l, i) => e.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _($n, {
1202
+ modelValue: ne(
1203
+ t,
1915
1204
  e,
1205
+ n,
1916
1206
  o,
1207
+ l,
1917
1208
  i
1918
1209
  ) ?? "",
1919
1210
  "onUpdate:modelValue": (a) => {
1920
- fe(
1211
+ oe(
1212
+ t,
1213
+ e,
1921
1214
  n,
1922
- r,
1923
- l,
1924
1215
  a,
1925
- e,
1926
1216
  o,
1217
+ l,
1927
1218
  i
1928
1219
  );
1929
1220
  },
1930
- hasDelete: o !== void 0 && !i,
1221
+ hasDelete: l !== void 0 && !i,
1931
1222
  onDelete: () => {
1932
- o === void 0 || i || (l.splice(o, 1), e(n.slice(0, -1), l));
1223
+ l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
1933
1224
  },
1934
- types: r.types
1225
+ types: e.types
1935
1226
  }) };
1936
1227
  }
1937
- const Ws = /* @__PURE__ */ G({
1228
+ const Pn = /* @__PURE__ */ J({
1938
1229
  __name: "editor",
1939
1230
  props: {
1940
1231
  modelValue: { required: !0 },
@@ -1945,116 +1236,116 @@ const Ws = /* @__PURE__ */ G({
1945
1236
  scaleModifiers: {}
1946
1237
  },
1947
1238
  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 = () => {
1239
+ setup(o, { expose: s }) {
1240
+ const t = G(o, "modelValue"), e = G(o, "lock"), n = G(o, "scale"), l = ht(), i = kt(), a = Te(), u = Re("target"), r = () => {
1950
1241
  var f;
1951
- const c = JSON.parse(n.value);
1952
- (f = u.value) == null || f.load(c);
1242
+ const d = JSON.parse(t.value);
1243
+ (f = u.value) == null || f.load(d);
1953
1244
  };
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), {
1245
+ return s({ save: () => {
1246
+ const d = u.value.save();
1247
+ t.value = JSON.stringify(d, null, 2);
1248
+ } }), (d, f) => (S(), B(C(Mt), {
1958
1249
  ref_key: "target",
1959
1250
  ref: u,
1960
- lock: r.value,
1961
- "onUpdate:lock": f[0] || (f[0] = (d) => r.value = d),
1962
- scale: l.value,
1963
- "onUpdate:scale": f[1] || (f[1] = (d) => l.value = d),
1251
+ lock: e.value,
1252
+ "onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
1253
+ scale: n.value,
1254
+ "onUpdate:scale": f[1] || (f[1] = (m) => n.value = m),
1964
1255
  type: "json",
1965
- version: w(a),
1966
- locale: w(i),
1967
- dark: w(o),
1968
- onReady: s
1256
+ version: C(a),
1257
+ locale: C(i),
1258
+ dark: C(l),
1259
+ onReady: r
1969
1260
  }, null, 8, ["lock", "scale", "version", "locale", "dark"]));
1970
1261
  }
1971
- }), Ys = { class: "text-subtitle-1" }, Qs = /* @__PURE__ */ G({
1262
+ }), Mn = { class: "text-subtitle-1" }, wn = /* @__PURE__ */ J({
1972
1263
  __name: "index",
1973
1264
  props: {
1974
1265
  modelValue: { required: !0 },
1975
1266
  modelModifiers: {}
1976
1267
  },
1977
1268
  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), {
1269
+ setup(o) {
1270
+ const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = G(o, "modelValue"), a = O(!1), u = O(1), r = K(() => {
1271
+ let m = 48;
1272
+ return t.value && (m += 24), {
1982
1273
  position: "relative",
1983
- background: l.value,
1984
- height: `calc(100% - ${d}px)`
1274
+ background: n.value,
1275
+ height: `calc(100% - ${m}px)`
1985
1276
  };
1986
- }), v = F(() => t("x-prop-tree.dlg.jsonObject.title")), { open: c } = Je(`propTreeJsonObjectDlg${ct()}`);
1987
- ft(() => {
1988
- c.value = !1;
1277
+ }), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
1278
+ De(() => {
1279
+ d.value = !1;
1989
1280
  });
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),
1281
+ const f = Re("editor");
1282
+ return ue(d, (m) => {
1283
+ var k;
1284
+ m || (k = f.value) == null || k.save();
1285
+ }), (m, k) => {
1286
+ const L = $("v-btn"), w = $("v-sheet"), b = $("v-spacer"), P = $("v-dialog");
1287
+ return S(), B(P, {
1288
+ modelValue: C(d),
1289
+ "onUpdate:modelValue": k[4] || (k[4] = (h) => pe(d) ? d.value = h : null),
1999
1290
  transition: "dialog-bottom-transition",
2000
1291
  persistent: "",
2001
1292
  "no-click-animation": "",
2002
1293
  fullscreen: "",
2003
1294
  attach: "",
2004
- onKeydown: m[5] || (m[5] = Jt(J((b) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1295
+ onKeydown: k[5] || (k[5] = Ke(z((h) => d.value = !1, ["stop", "prevent"]), ["esc"]))
2005
1296
  }, {
2006
- activator: H(({ props: b }) => [
2007
- k(C, dt(b, {
1297
+ activator: R(({ props: h }) => [
1298
+ A(L, Ae(h, {
2008
1299
  density: "comfortable",
2009
1300
  block: ""
2010
1301
  }), {
2011
- default: H(() => [
2012
- ze(Y(v.value), 1)
1302
+ default: R(() => [
1303
+ Ce(Q(g.value), 1)
2013
1304
  ]),
2014
1305
  _: 2
2015
1306
  }, 1040)
2016
1307
  ]),
2017
- default: H(() => [
2018
- k(S, {
2019
- color: w(r),
1308
+ default: R(() => [
1309
+ A(w, {
1310
+ color: C(e),
2020
1311
  width: "100%",
2021
1312
  height: "100%"
2022
1313
  }, {
2023
- default: H(() => [
2024
- w(n) ? (A(), B(S, {
1314
+ default: R(() => [
1315
+ C(t) ? (S(), B(w, {
2025
1316
  key: 0,
2026
- color: w(o),
1317
+ color: C(l),
2027
1318
  height: 24
2028
- }, null, 8, ["color"])) : X("", !0),
2029
- k(S, {
1319
+ }, null, 8, ["color"])) : Y("", !0),
1320
+ A(w, {
2030
1321
  class: "d-flex align-center px-2",
2031
- color: w(o),
1322
+ color: C(l),
2032
1323
  height: 48
2033
1324
  }, {
2034
- default: H(() => [
2035
- k(C, {
1325
+ default: R(() => [
1326
+ A(L, {
2036
1327
  variant: "text",
2037
1328
  density: "comfortable",
2038
- icon: w(An),
2039
- onClick: m[0] || (m[0] = (b) => c.value = !1)
1329
+ icon: C(Ge),
1330
+ onClick: k[0] || (k[0] = (h) => d.value = !1)
2040
1331
  }, null, 8, ["icon"]),
2041
- z("span", Ys, Y(w(t)("x-prop-tree.dlg.jsonObject.title")), 1),
2042
- k(x)
1332
+ F("span", Mn, Q(C(s)("x-prop-tree.dlg.jsonObject.title")), 1),
1333
+ A(b)
2043
1334
  ]),
2044
1335
  _: 1
2045
1336
  }, 8, ["color"]),
2046
- z("div", {
2047
- style: re(s.value)
1337
+ F("div", {
1338
+ style: I(r.value)
2048
1339
  }, [
2049
- k(Ws, {
1340
+ A(Pn, {
2050
1341
  ref_key: "editor",
2051
1342
  ref: f,
2052
1343
  modelValue: i.value,
2053
- "onUpdate:modelValue": m[1] || (m[1] = (b) => i.value = b),
1344
+ "onUpdate:modelValue": k[1] || (k[1] = (h) => i.value = h),
2054
1345
  lock: a.value,
2055
- "onUpdate:lock": m[2] || (m[2] = (b) => a.value = b),
1346
+ "onUpdate:lock": k[2] || (k[2] = (h) => a.value = h),
2056
1347
  scale: u.value,
2057
- "onUpdate:scale": m[3] || (m[3] = (b) => u.value = b)
1348
+ "onUpdate:scale": k[3] || (k[3] = (h) => u.value = h)
2058
1349
  }, null, 8, ["modelValue", "lock", "scale"])
2059
1350
  ], 4)
2060
1351
  ]),
@@ -2066,30 +1357,30 @@ const Ws = /* @__PURE__ */ G({
2066
1357
  };
2067
1358
  }
2068
1359
  });
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,
1360
+ function Dn(o) {
1361
+ return { renderUiJsonEditor: (t, e, n, l, i) => e.ui !== "jsonEditor" ? _("div", "renderUiJsonObject prop ui must be jsonEditor") : _(wn, {
1362
+ modelValue: ne(
1363
+ t,
2075
1364
  e,
1365
+ n,
2076
1366
  o,
1367
+ l,
2077
1368
  i
2078
1369
  ) ?? "{}",
2079
1370
  "onUpdate:modelValue": (a) => {
2080
- fe(
1371
+ oe(
1372
+ t,
1373
+ e,
2081
1374
  n,
2082
- r,
2083
- l,
2084
1375
  a,
2085
- e,
2086
1376
  o,
1377
+ l,
2087
1378
  i
2088
1379
  );
2089
1380
  }
2090
1381
  }) };
2091
1382
  }
2092
- const ta = /* @__PURE__ */ G({
1383
+ const An = /* @__PURE__ */ J({
2093
1384
  __name: "index",
2094
1385
  props: {
2095
1386
  unique: {},
@@ -2098,102 +1389,102 @@ const ta = /* @__PURE__ */ G({
2098
1389
  version: {}
2099
1390
  },
2100
1391
  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);
1392
+ setup(o, { emit: s }) {
1393
+ const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), u = O("200px"), r = yt({}), g = O({}), d = (p, c) => {
1394
+ qe(g, n.config, n.object), l("change", p, c);
2104
1395
  };
2105
- be(
2106
- [() => l.config, () => l.object],
1396
+ ue(
1397
+ [() => n.config, () => n.object],
2107
1398
  () => {
2108
- qt(v, l.config, l.object, (y, p) => {
2109
- o("change", y, p);
1399
+ qe(g, n.config, n.object, (p, c) => {
1400
+ l("change", p, c);
2110
1401
  });
2111
1402
  },
2112
1403
  { immediate: !0 }
2113
1404
  );
2114
- const f = N(l.version);
2115
- is(f), be(
2116
- () => l.version,
1405
+ const f = O(n.version);
1406
+ Ot(f), ue(
1407
+ () => n.version,
2117
1408
  () => {
2118
- f.value = l.version;
1409
+ f.value = n.version;
2119
1410
  }
2120
1411
  );
2121
- const d = N(l.config);
2122
- ss(d), be(
2123
- () => l.config,
1412
+ const m = O(n.config);
1413
+ qt(m), ue(
1414
+ () => n.config,
2124
1415
  () => {
2125
- d.value = l.config;
1416
+ m.value = n.config;
2126
1417
  }
2127
1418
  );
2128
- const m = N(l.object);
2129
- us(m), be(
2130
- () => l.object,
1419
+ const k = O(n.object);
1420
+ Kt(k), ue(
1421
+ () => n.object,
2131
1422
  () => {
2132
- m.value = l.object;
1423
+ k.value = n.object;
2133
1424
  }
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,
1425
+ ), Jt(g), Xt(d);
1426
+ const L = O([]);
1427
+ zt(L);
1428
+ const w = () => {
1429
+ const { compGroups: p, comps: c } = xt.app.activeApp, y = [];
1430
+ p.forEach(({ id: v, name: V, position: x }) => {
1431
+ const D = L.value.find((E) => E.id === v);
1432
+ y.push({
1433
+ id: v,
2143
1434
  type: 0,
2144
- name: T,
2145
- position: U,
2146
- collapse: (j == null ? void 0 : j.collapse) ?? !0
1435
+ name: V,
1436
+ position: x,
1437
+ collapse: (D == null ? void 0 : D.collapse) ?? !0
2147
1438
  });
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;
1439
+ }), c.forEach(({ id: v, groupid: V, name: x, position: D }) => {
1440
+ y.push({ id: v, type: 1, name: x, position: D, group: V });
1441
+ }), St(y, !0), L.value = y;
2151
1442
  };
2152
- let x;
2153
- const $ = () => {
2154
- clearTimeout(x), x = window.setTimeout(() => {
2155
- S(), x && $();
1443
+ let b;
1444
+ const P = () => {
1445
+ clearTimeout(b), b = window.setTimeout(() => {
1446
+ w(), b && P();
2156
1447
  }, 1e3);
2157
- }, b = () => {
2158
- clearTimeout(x), x = void 0;
1448
+ }, h = () => {
1449
+ clearTimeout(b), b = void 0;
2159
1450
  };
2160
- Hn(() => {
2161
- $();
2162
- }), Gn(() => {
2163
- b();
1451
+ gt(() => {
1452
+ P();
1453
+ }), _t(() => {
1454
+ h();
2164
1455
  });
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,
1456
+ const { renderProp: M } = Wt(g, a, u), { renderUiDummy: N } = Qt(d), { renderUiStrInput: Z } = jt(d), { renderUiNumInput: Pe } = tn(d), { renderUiSwitch: tt } = on(d), { renderUiSelect: nt } = un(d), { renderUiColorPicker: lt } = Cn(d), { renderUiJsonEditor: ot } = Dn(d), { renderUiMultiTypes: st } = xn(d), { renderUiCompSelect: it } = hn(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
1457
  p,
2168
- h,
2169
- g,
2170
- T,
2171
- U
2172
- )), Mn = (y, p, h, g, T, U) => {
2173
- if (p.ui)
1458
+ c,
1459
+ y,
1460
+ v,
1461
+ V,
1462
+ x
1463
+ )), rt = (p, c, y, v, V, x) => {
1464
+ if (c.ui)
2174
1465
  return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
2175
- if (!p.array)
1466
+ if (!c.array)
2176
1467
  return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
2177
- if (!g)
1468
+ if (!v)
2178
1469
  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,
1470
+ let D;
1471
+ 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]);
1472
+ let E = t(c.name);
1473
+ v.collapse && ce(g.value, p) && (E += " *");
1474
+ const me = _(ke, {
1475
+ title: E,
1476
+ collapse: v.collapse,
2186
1477
  hasCreate: !0,
2187
- onCollapse: (O) => {
2188
- g.collapse = O;
1478
+ onCollapse: (U) => {
1479
+ v.collapse = U;
2189
1480
  },
2190
- onMenu: (O, E) => {
2191
- $e.emit("propTreeMenu", { x: O, y: E, keys: y });
1481
+ onMenu: (U, T) => {
1482
+ ae.emit("propTreeMenu", { x: U, y: T, keys: p });
2192
1483
  },
2193
1484
  onCreate: () => {
2194
- j.push({}), c(y, j);
1485
+ D.push({}), d(p, D);
2195
1486
  }
2196
- }), q = _(
1487
+ }), X = _(
2197
1488
  "div",
2198
1489
  {
2199
1490
  style: {
@@ -2201,44 +1492,44 @@ const ta = /* @__PURE__ */ G({
2201
1492
  }
2202
1493
  },
2203
1494
  (() => {
2204
- const O = [];
2205
- for (let E = 0; E < j.length; E++) {
2206
- if (!ot(g.children)) {
1495
+ const U = [];
1496
+ for (let T = 0; T < D.length; T++) {
1497
+ if (!Me(v.children)) {
2207
1498
  console.assert(!1);
2208
1499
  break;
2209
1500
  }
2210
- g.children[E] || g.children.push({
1501
+ v.children[T] || v.children.push({
2211
1502
  collapse: !0,
2212
1503
  children: {}
2213
1504
  });
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,
1505
+ const ge = [...p, T], _e = v.children[T];
1506
+ let Le = `[${T + 1}]`;
1507
+ v.children[T].collapse && ce(g.value, ge) && (Le += " *");
1508
+ const ft = _(ke, {
1509
+ title: Le,
1510
+ collapse: v.children[T].collapse,
2220
1511
  hasDelete: !0,
2221
- index: E,
2222
- onCollapse: (ne) => {
2223
- if (!ot(g.children)) {
1512
+ index: T,
1513
+ onCollapse: (j) => {
1514
+ if (!Me(v.children)) {
2224
1515
  console.assert(!1);
2225
1516
  return;
2226
1517
  }
2227
- g.children[E].collapse = ne;
1518
+ v.children[T].collapse = j;
2228
1519
  },
2229
- onMenu: (ne, de) => {
2230
- $e.emit("propTreeMenu", { x: ne, y: de, keys: ke });
1520
+ onMenu: (j, se) => {
1521
+ ae.emit("propTreeMenu", { x: j, y: se, keys: ge });
2231
1522
  },
2232
- onDelete: (ne) => {
2233
- if (!ot(g.children)) {
1523
+ onDelete: (j) => {
1524
+ if (!Me(v.children)) {
2234
1525
  console.assert(!1);
2235
1526
  return;
2236
1527
  }
2237
- g.children.splice(ne, 1), j.splice(ne, 1), c(y, j);
1528
+ v.children.splice(j, 1), D.splice(j, 1), d(p, D);
2238
1529
  }
2239
1530
  });
2240
- O.push(En);
2241
- const Nn = _(
1531
+ U.push(ft);
1532
+ const mt = _(
2242
1533
  "div",
2243
1534
  {
2244
1535
  style: {
@@ -2246,31 +1537,31 @@ const ta = /* @__PURE__ */ G({
2246
1537
  }
2247
1538
  },
2248
1539
  (() => {
2249
- const ne = [];
2250
- return p.children.forEach((de) => {
2251
- if (!Kt(Ee.children)) {
1540
+ const j = [];
1541
+ return c.children.forEach((se) => {
1542
+ if (!Oe(_e.children)) {
2252
1543
  console.assert(!1);
2253
1544
  return;
2254
1545
  }
2255
- Ee.children[de.key] || (Ee.children[de.key] = {
1546
+ _e.children[se.key] || (_e.children[se.key] = {
2256
1547
  collapse: !0,
2257
- children: de.array ? [] : {}
1548
+ children: se.array ? [] : {}
2258
1549
  });
2259
- const Rn = je(
2260
- y,
2261
- de,
2262
- j[E],
2263
- Ee.children[de.key],
2264
- E,
1550
+ const vt = ye(
1551
+ p,
1552
+ se,
1553
+ D[T],
1554
+ _e.children[se.key],
1555
+ T,
2265
1556
  !0
2266
1557
  );
2267
- ne.push(Rn);
2268
- }), ne;
1558
+ j.push(vt);
1559
+ }), j;
2269
1560
  })()
2270
1561
  );
2271
- g.children[E].collapse || O.push(Nn);
1562
+ v.children[T].collapse || U.push(mt);
2272
1563
  }
2273
- return O;
1564
+ return U;
2274
1565
  })()
2275
1566
  );
2276
1567
  return _(
@@ -2281,33 +1572,33 @@ const ta = /* @__PURE__ */ G({
2281
1572
  }
2282
1573
  },
2283
1574
  (() => {
2284
- const O = [];
2285
- return O.push(Ce), g.collapse || O.push(q), O;
1575
+ const U = [];
1576
+ return U.push(me), v.collapse || U.push(X), U;
2286
1577
  })()
2287
1578
  );
2288
- }, Ln = (y, p, h, g, T, U) => {
2289
- if (p.ui)
1579
+ }, ut = (p, c, y, v, V, x) => {
1580
+ if (c.ui)
2290
1581
  return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
2291
- if (p.array)
1582
+ if (c.array)
2292
1583
  return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
2293
- if (!g)
1584
+ if (!v)
2294
1585
  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;
1586
+ let D = t(c.name);
1587
+ v.collapse && ce(g.value, p) && (D += " *");
1588
+ const E = _(ke, {
1589
+ title: D,
1590
+ collapse: v.collapse,
1591
+ hasDelete: V !== void 0 && !x,
1592
+ onCollapse: (X) => {
1593
+ v.collapse = X;
2303
1594
  },
2304
- onMenu: (q, O) => {
2305
- $e.emit("propTreeMenu", { x: q, y: O, keys: y });
1595
+ onMenu: (X, U) => {
1596
+ ae.emit("propTreeMenu", { x: X, y: U, keys: p });
2306
1597
  },
2307
1598
  onDelete: () => {
2308
- T === void 0 || U || (h.splice(T, 1), c(y.slice(0, -1), h));
1599
+ V === void 0 || x || (y.splice(V, 1), d(p.slice(0, -1), y));
2309
1600
  }
2310
- }), Ce = _(
1601
+ }), me = _(
2311
1602
  "div",
2312
1603
  {
2313
1604
  style: {
@@ -2315,24 +1606,24 @@ const ta = /* @__PURE__ */ G({
2315
1606
  }
2316
1607
  },
2317
1608
  (() => {
2318
- const q = [];
2319
- return p.children.forEach((O) => {
2320
- if (!Kt(g.children)) {
1609
+ const X = [];
1610
+ return c.children.forEach((U) => {
1611
+ if (!Oe(v.children)) {
2321
1612
  console.assert(!1);
2322
1613
  return;
2323
1614
  }
2324
- g.children[O.key] || (g.children[O.key] = {
1615
+ v.children[U.key] || (v.children[U.key] = {
2325
1616
  collapse: !0,
2326
- children: !O.ui && O.array ? [] : {}
1617
+ children: !U.ui && U.array ? [] : {}
2327
1618
  });
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]
1619
+ const T = ye(
1620
+ p,
1621
+ U,
1622
+ (typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
1623
+ v.children[U.key]
2333
1624
  );
2334
- q.push(E);
2335
- }), q;
1625
+ X.push(T);
1626
+ }), X;
2336
1627
  })()
2337
1628
  );
2338
1629
  return _(
@@ -2343,35 +1634,35 @@ const ta = /* @__PURE__ */ G({
2343
1634
  }
2344
1635
  },
2345
1636
  (() => {
2346
- const q = [];
2347
- return q.push(te), g.collapse || q.push(Ce), q;
1637
+ const X = [];
1638
+ return X.push(E), v.collapse || X.push(me), X;
2348
1639
  })()
2349
1640
  );
2350
- }, Dn = (y, p, h, g, T, U) => {
2351
- if (!p.ui)
1641
+ }, at = (p, c, y, v, V, x) => {
1642
+ if (!c.ui)
2352
1643
  return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
2353
- if (!p.array)
1644
+ if (!c.array)
2354
1645
  return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
2355
- if (!g)
1646
+ if (!v)
2356
1647
  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,
1648
+ let D;
1649
+ 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]);
1650
+ let E = t(c.name);
1651
+ v.collapse && ce(g.value, p) && (E += " *");
1652
+ const me = _(ke, {
1653
+ title: E,
1654
+ collapse: v.collapse,
2364
1655
  hasCreate: !0,
2365
- onCollapse: (O) => {
2366
- g.collapse = O;
1656
+ onCollapse: (U) => {
1657
+ v.collapse = U;
2367
1658
  },
2368
- onMenu: (O, E) => {
2369
- $e.emit("propTreeMenu", { x: O, y: E, keys: y });
1659
+ onMenu: (U, T) => {
1660
+ ae.emit("propTreeMenu", { x: U, y: T, keys: p });
2370
1661
  },
2371
1662
  onCreate: () => {
2372
- j.push(R(p, !0)), c(y, j);
1663
+ D.push(q(c, !0)), d(p, D);
2373
1664
  }
2374
- }), q = _(
1665
+ }), X = _(
2375
1666
  "div",
2376
1667
  {
2377
1668
  style: {
@@ -2379,12 +1670,12 @@ const ta = /* @__PURE__ */ G({
2379
1670
  }
2380
1671
  },
2381
1672
  (() => {
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);
1673
+ const U = [];
1674
+ for (let T = 0; T < D.length; T++) {
1675
+ const ge = ye(p, c, D, void 0, T, !1);
1676
+ U.push(ge);
2386
1677
  }
2387
- return O;
1678
+ return U;
2388
1679
  })()
2389
1680
  );
2390
1681
  return _(
@@ -2395,69 +1686,69 @@ const ta = /* @__PURE__ */ G({
2395
1686
  }
2396
1687
  },
2397
1688
  (() => {
2398
- const O = [];
2399
- return O.push(Ce), g.collapse || O.push(q), O;
1689
+ const U = [];
1690
+ return U.push(me), v.collapse || U.push(X), U;
2400
1691
  })()
2401
1692
  );
2402
- }, jn = (y, p, h, g, T) => {
2403
- if (!p.ui)
1693
+ }, ct = (p, c, y, v, V) => {
1694
+ if (!c.ui)
2404
1695
  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 = () => _(
1696
+ let x;
1697
+ 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 = nt(p, c, y, v, V) : c.ui === "colorPicker" ? x = lt(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) : _("div");
1698
+ }, dt = () => _(
2408
1699
  "div",
2409
1700
  {
2410
1701
  class: "text-body-2",
2411
1702
  style: {
2412
- background: r.value
1703
+ background: e.value
2413
1704
  }
2414
1705
  },
2415
1706
  (() => {
2416
- const y = [];
2417
- 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
+ const p = [];
1708
+ if (n.unique && n.config.length > 0 && n.object) {
1709
+ r[n.unique] || (r[n.unique] = {});
1710
+ const c = r[n.unique];
1711
+ n.config.forEach((y) => {
1712
+ c[y.key] || (c[y.key] = {
2422
1713
  collapse: !0,
2423
- children: !h.ui && h.array ? [] : {}
1714
+ children: !y.ui && y.array ? [] : {}
2424
1715
  });
2425
- const g = je([], h, l.object, p[h.key]);
2426
- y.push(g);
1716
+ const v = ye([], y, n.object, c[y.key]);
1717
+ p.push(v);
2427
1718
  });
2428
1719
  }
2429
- return y;
1720
+ return p;
2430
1721
  })()
2431
1722
  );
2432
- return (y, p) => (A(), K(He, null, [
2433
- k(kn),
2434
- k(gs, {
2435
- config: l.config,
2436
- object: l.object,
2437
- "prop-states": v.value
1723
+ return (p, c) => (S(), H(Ve, null, [
1724
+ A(dt),
1725
+ A(Gt, {
1726
+ config: n.config,
1727
+ object: n.object,
1728
+ "prop-states": g.value
2438
1729
  }, null, 8, ["config", "object", "prop-states"])
2439
1730
  ], 64));
2440
1731
  }
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) => {
1732
+ }), bn = (o) => {
1733
+ o.component("XPropTree", An);
1734
+ }, Tn = (o, s, t) => {
1735
+ const e = o[s];
1736
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, l) => {
2446
1737
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
2447
- o.bind(
1738
+ l.bind(
2448
1739
  null,
2449
1740
  new Error(
2450
- "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
1741
+ "Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
2451
1742
  )
2452
1743
  )
2453
1744
  );
2454
1745
  });
2455
1746
  };
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;
1747
+ async function Hn(o) {
1748
+ return (await Tn(/* @__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
1749
  }
2459
- const da = { install: na };
1750
+ const Xn = { install: bn };
2460
1751
  export {
2461
- da as default,
2462
- fa as loadLocaleMessagePropTree
1752
+ Xn as default,
1753
+ Hn as loadLocaleMessagePropTree
2463
1754
  };