x-prop-tree 0.7.3 → 0.7.4

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,8 +1,8 @@
1
- import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as U, createBlock as B, openBlock as C, unref as L, isRef as ve, withCtx as J, createVNode as D, createElementBlock as H, Fragment as ke, renderList as qe, createTextVNode as Ve, toDisplayString as Q, resolveDirective as le, withDirectives as ee, withModifiers as z, normalizeStyle as I, createElementVNode as F, createCommentVNode as Y, renderSlot as dt, h, mergeModels as W, useModel as G, useId as Me, onUnmounted as we, withKeys as Be, mergeProps as De, watchEffect as Le, watch as re, useTemplateRef as Ke, reactive as ft, onMounted as mt, onBeforeUnmount as vt } from "vue";
1
+ import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as S, createBlock as B, openBlock as k, unref as T, isRef as ve, withCtx as J, createVNode as M, createElementBlock as E, Fragment as ke, renderList as qe, createTextVNode as Ve, toDisplayString as W, resolveDirective as le, withDirectives as ee, withModifiers as F, normalizeStyle as I, createElementVNode as X, createCommentVNode as G, renderSlot as dt, h, mergeModels as Y, useModel as z, useId as Me, onUnmounted as we, withKeys as Be, mergeProps as De, watchEffect as Le, watch as re, useTemplateRef as Ke, reactive as ft, onMounted as mt, onBeforeUnmount as vt } from "vue";
2
2
  import { useI18n as te } from "vue-i18n";
3
3
  import { useViewStack as Ce, useColor as ie, eventBus as ue, useSystem as Je, injectDark as pt, injectLocale as yt } from "x-essential-lib";
4
- import { c as Re, i as Se, r as He, v as gt, d as ht } from "./vendor.ijoehq36.js";
5
- import { getPropDefault as q, pkgs as Xe, parsePixelStr as _t, parsePercentStr as kt } from "x-runtime-lib";
4
+ import { c as Re, i as Se, r as Ee, v as gt, d as ht } from "./vendor.n68iqk3a.js";
5
+ import { getPropDefault as q, pkgs as He, parsePixelStr as _t, parsePercentStr as kt } from "x-runtime-lib";
6
6
  import { globalState as Vt } from "x-state-lib";
7
7
  import { useDisplay as Ct } from "vuetify";
8
8
  import { XBlockly as St } from "x-block-lib";
@@ -79,30 +79,30 @@ const he = (o, s) => {
79
79
  if (!e.children || !Ue(e.children))
80
80
  return console.assert(!1, "execPropBranchArray state children must be array"), !1;
81
81
  let a;
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;
83
- for (let r = 0; r < a.length; r++) {
82
+ l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n?.(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(o, t[s.key])), a = t[s.key]), e.change = !1;
83
+ for (let u = 0; u < a.length; u++) {
84
84
  e.children.push({
85
85
  change: !1,
86
86
  children: {}
87
87
  });
88
- const u = e.children[r];
89
- s.children.forEach((g) => {
90
- if (!u.children || !Ae(u.children)) {
88
+ const r = e.children[u];
89
+ s.children.forEach((y) => {
90
+ if (!r.children || !Ae(r.children)) {
91
91
  console.assert(!1);
92
92
  return;
93
93
  }
94
- u.children[g.key] = {
94
+ r.children[y.key] = {
95
95
  change: !1,
96
- children: g.array ? [] : {}
96
+ children: y.array ? [] : {}
97
97
  }, $e(
98
98
  o,
99
- g,
100
- a[r],
101
- u.children[g.key],
99
+ y,
100
+ a[u],
101
+ r.children[y.key],
102
102
  n,
103
- r,
103
+ u,
104
104
  !0
105
- ) && (u.change = !0), u.change && (e.change = !0);
105
+ ) && (r.change = !0), r.change && (e.change = !0);
106
106
  });
107
107
  }
108
108
  return e.change || (e.change = !Se(a, q(s))), e.change;
@@ -115,12 +115,12 @@ const he = (o, s) => {
115
115
  return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
116
116
  let a;
117
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 r = 0; r < s.children.length; r++) {
119
- const u = s.children[r];
120
- e.children[u.key] = {
118
+ for (let u = 0; u < s.children.length; u++) {
119
+ const r = s.children[u];
120
+ e.children[r.key] = {
121
121
  change: !1,
122
- children: u.array ? [] : {}
123
- }, $e(o, u, a, e.children[u.key], n) && (e.change = !0);
122
+ children: r.array ? [] : {}
123
+ }, $e(o, r, a, e.children[r.key], n) && (e.change = !0);
124
124
  }
125
125
  return e.change;
126
126
  }, wt = (o, s, t, e, n, l, i) => {
@@ -131,12 +131,12 @@ const he = (o, s) => {
131
131
  if (!e.children || !Ue(e.children))
132
132
  return console.assert(!1, "execPropLeafArray state children must be array"), !1;
133
133
  let a;
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;
135
- for (let r = 0; r < a.length; r++)
136
- e.children[r] = {
134
+ l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n?.(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(o, t[s.key])), a = t[s.key]), e.change = !1;
135
+ for (let u = 0; u < a.length; u++)
136
+ e.children[u] = {
137
137
  change: !1,
138
138
  children: {}
139
- }, $e(o, s, a, e.children[r], n, r, !1) && (e.change = !0);
139
+ }, $e(o, s, a, e.children[u], n, u, !1) && (e.change = !0);
140
140
  return e.change || (e.change = !Se(a, q(s))), e.change;
141
141
  }, Dt = (o, s, t, e, n) => {
142
142
  if (!o.ui)
@@ -163,152 +163,152 @@ const he = (o, s) => {
163
163
  if (!t.children)
164
164
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
165
165
  typeof e == "string" ? Ae(t.children) && (t = t.children[e]) : Ue(t.children) && (t = t.children[e]);
166
- }), (t == null ? void 0 : t.change) ?? !1;
167
- }, Fe = Symbol(), ze = Symbol(), Ge = Symbol(), Ye = Symbol(), We = Symbol(), Qe = Symbol();
166
+ }), t?.change ?? !1;
167
+ }, Xe = Symbol(), Fe = Symbol(), ze = Symbol(), Ge = Symbol(), Ye = Symbol(), We = Symbol();
168
168
  function At(o) {
169
- ce(Fe, o);
169
+ ce(Xe, o);
170
170
  }
171
171
  function be() {
172
- return de(Fe);
172
+ return de(Xe);
173
173
  }
174
174
  function bt(o) {
175
- ce(ze, o);
175
+ ce(Fe, o);
176
176
  }
177
177
  function Tt() {
178
- return de(ze);
178
+ return de(Fe);
179
179
  }
180
180
  function Lt(o) {
181
- ce(Ge, o);
181
+ ce(ze, o);
182
182
  }
183
183
  function Nt() {
184
- return de(Ge);
184
+ return de(ze);
185
185
  }
186
186
  function Ot(o) {
187
- ce(Ye, o);
187
+ ce(Ge, o);
188
188
  }
189
189
  function qt() {
190
- return de(Ye);
190
+ return de(Ge);
191
191
  }
192
192
  function Bt(o) {
193
- ce(We, o);
193
+ ce(Ye, o);
194
194
  }
195
195
  function Kt() {
196
- return de(We);
196
+ return de(Ye);
197
197
  }
198
198
  function Jt(o) {
199
- ce(Qe, o);
199
+ ce(We, o);
200
200
  }
201
- function Ze() {
202
- return de(Qe);
201
+ function Qe() {
202
+ return de(We);
203
203
  }
204
204
  const Rt = /* @__PURE__ */ R({
205
205
  __name: "menu",
206
206
  setup(o) {
207
- const { t: s } = te(), t = Tt(), e = Nt(), n = qt(), l = Kt(), i = O(0), a = O(0), r = O([]), u = K(() => [i.value, a.value]), g = (M) => {
208
- const b = () => !(r.value.length <= 0 || !ae(n.value, r.value)), x = () => {
209
- const _ = he(t.value, r.value);
210
- if (_)
211
- if (_.ui) {
212
- const P = me(e.value, r.value.slice(0, -1));
213
- if (!P)
207
+ const { t: s } = te(), t = Tt(), e = Nt(), n = qt(), l = Kt(), i = O(0), a = O(0), u = O([]), r = K(() => [i.value, a.value]), y = (P) => {
208
+ const D = () => !(u.value.length <= 0 || !ae(n.value, u.value)), U = () => {
209
+ const V = he(t.value, u.value);
210
+ if (V)
211
+ if (V.ui) {
212
+ const A = me(e.value, u.value.slice(0, -1));
213
+ if (!A)
214
214
  return;
215
- P[r.value[r.value.length - 1]] = q(_), l(r.value, P[r.value[r.value.length - 1]]);
216
- } else if (_.array) {
217
- const P = r.value[r.value.length - 1];
218
- if (P === void 0) {
215
+ A[u.value[u.value.length - 1]] = q(V), l(u.value, A[u.value[u.value.length - 1]]);
216
+ } else if (V.array) {
217
+ const A = u.value[u.value.length - 1];
218
+ if (A === void 0) {
219
219
  console.assert(!1, "invalid last key");
220
220
  return;
221
221
  }
222
- if (typeof P == "string") {
223
- const N = me(e.value, r.value.slice(0, -1));
222
+ if (typeof A == "string") {
223
+ const N = me(e.value, u.value.slice(0, -1));
224
224
  if (!N)
225
225
  return;
226
- N[r.value[r.value.length - 1]] = q(_), l(r.value, N[r.value[r.value.length - 1]]);
226
+ N[u.value[u.value.length - 1]] = q(V), l(u.value, N[u.value[u.value.length - 1]]);
227
227
  } else {
228
- const N = me(e.value, r.value);
228
+ const N = me(e.value, u.value);
229
229
  if (!N)
230
230
  return;
231
- _.children.forEach((Z) => {
232
- N[Z.key] = q(_), l([...r.value, Z.key], N[Z.key]);
231
+ V.children.forEach((Q) => {
232
+ N[Q.key] = q(V), l([...u.value, Q.key], N[Q.key]);
233
233
  });
234
234
  }
235
235
  } else {
236
- const P = me(e.value, r.value);
237
- if (!P)
236
+ const A = me(e.value, u.value);
237
+ if (!A)
238
238
  return;
239
- _.children.forEach((N) => {
240
- P[N.key] = q(_), l([...r.value, N.key], P[N.key]);
239
+ V.children.forEach((N) => {
240
+ A[N.key] = q(V), l([...u.value, N.key], A[N.key]);
241
241
  });
242
242
  }
243
243
  };
244
- b() && M.push({
244
+ D() && P.push({
245
245
  title: s("x-prop-tree.reset"),
246
- func: x
246
+ func: U
247
247
  });
248
- }, d = (M) => {
249
- const b = () => {
250
- const x = he(t.value, r.value), _ = me(e.value, r.value);
251
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: x, object: _ }));
248
+ }, d = (P) => {
249
+ const D = () => {
250
+ const U = he(t.value, u.value), V = me(e.value, u.value);
251
+ localStorage.setItem("propTreeCopy", JSON.stringify({ prop: U, object: V }));
252
252
  };
253
- M.push({
253
+ P.push({
254
254
  title: s("x-prop-tree.copy"),
255
- func: b
255
+ func: D
256
256
  });
257
- }, f = (M) => {
258
- const b = () => {
259
- const _ = localStorage.getItem("propTreeCopy");
260
- if (!_)
257
+ }, g = (P) => {
258
+ const D = () => {
259
+ const V = localStorage.getItem("propTreeCopy");
260
+ if (!V)
261
261
  return !1;
262
262
  try {
263
- const { prop: P } = JSON.parse(_), N = he(t.value, r.value);
264
- return Ut(P, N);
265
- } catch (P) {
266
- console.error(P);
263
+ const { prop: A } = JSON.parse(V), N = he(t.value, u.value);
264
+ return Ut(A, N);
265
+ } catch (A) {
266
+ console.error(A);
267
267
  }
268
268
  return !1;
269
- }, x = () => {
270
- if (!b())
269
+ }, U = () => {
270
+ if (!D())
271
271
  return;
272
- const _ = localStorage.getItem("propTreeCopy");
273
- if (_)
272
+ const V = localStorage.getItem("propTreeCopy");
273
+ if (V)
274
274
  try {
275
- const { object: P } = JSON.parse(_), N = he(t.value, r.value);
276
- console.log(P, N);
277
- } catch (P) {
278
- console.error(P);
275
+ const { object: A } = JSON.parse(V), N = he(t.value, u.value);
276
+ console.log(A, N);
277
+ } catch (A) {
278
+ console.error(A);
279
279
  }
280
280
  };
281
- b() && M.push({
281
+ D() && P.push({
282
282
  title: s("x-prop-tree.paste"),
283
- func: x
283
+ func: U
284
284
  });
285
- }, m = K(() => {
286
- const M = [];
287
- return g(M), d(M), f(M), M;
288
- }), k = (M) => {
289
- i.value = M.x, a.value = M.y, r.value = M.keys;
290
- }, { open: T } = Ce("propTreeMenu", k);
291
- return (M, b) => {
292
- const x = U("v-list-item-title"), _ = U("v-list-item"), P = U("v-list"), N = U("v-menu");
293
- return C(), B(N, {
294
- modelValue: L(T),
295
- "onUpdate:modelValue": b[0] || (b[0] = (Z) => ve(T) ? T.value = Z : null),
285
+ }, v = K(() => {
286
+ const P = [];
287
+ return y(P), d(P), g(P), P;
288
+ }), x = (P) => {
289
+ i.value = P.x, a.value = P.y, u.value = P.keys;
290
+ }, { open: L } = Ce("propTreeMenu", x);
291
+ return (P, D) => {
292
+ const U = S("v-list-item-title"), V = S("v-list-item"), A = S("v-list"), N = S("v-menu");
293
+ return k(), B(N, {
294
+ modelValue: T(L),
295
+ "onUpdate:modelValue": D[0] || (D[0] = (Q) => ve(L) ? L.value = Q : null),
296
296
  "location-strategy": "connected",
297
- target: u.value,
297
+ target: r.value,
298
298
  scrim: "transparent"
299
299
  }, {
300
300
  default: J(() => [
301
- D(P, null, {
301
+ M(A, null, {
302
302
  default: J(() => [
303
- (C(!0), H(ke, null, qe(m.value, (Z, xe) => (C(), B(_, {
303
+ (k(!0), E(ke, null, qe(v.value, (Q, xe) => (k(), B(V, {
304
304
  key: xe,
305
305
  link: "",
306
- onClick: Z.func
306
+ onClick: Q.func
307
307
  }, {
308
308
  default: J(() => [
309
- D(x, null, {
309
+ M(U, null, {
310
310
  default: J(() => [
311
- Ve(Q(Z.title), 1)
311
+ Ve(W(Q.title), 1)
312
312
  ]),
313
313
  _: 2
314
314
  }, 1024)
@@ -323,7 +323,7 @@ const Rt = /* @__PURE__ */ R({
323
323
  }, 8, ["modelValue", "target"]);
324
324
  };
325
325
  }
326
- }), Ht = { style: { pointerEvents: "none" } }, _e = /* @__PURE__ */ R({
326
+ }), Et = { style: { pointerEvents: "none" } }, _e = /* @__PURE__ */ R({
327
327
  __name: "title",
328
328
  props: {
329
329
  title: {},
@@ -341,47 +341,47 @@ const Rt = /* @__PURE__ */ R({
341
341
  userSelect: "none"
342
342
  })), a = () => {
343
343
  n("collapse", !o.collapse);
344
- }, r = (u) => {
345
- n("menu", u.clientX, u.clientY);
344
+ }, u = (r) => {
345
+ n("menu", r.clientX, r.clientY);
346
346
  };
347
- return (u, g) => {
348
- const d = U("v-icon"), f = U("v-spacer"), m = U("v-btn"), k = le("ripple");
349
- return ee((C(), H("div", {
347
+ return (r, y) => {
348
+ const d = S("v-icon"), g = S("v-spacer"), v = S("v-btn"), x = le("ripple");
349
+ return ee((k(), E("div", {
350
350
  class: "d-flex align-center cursor-pointer",
351
351
  style: I(i.value),
352
352
  onClick: a,
353
- onContextmenu: z(r, ["self", "prevent"]),
354
- onMouseover: g[2] || (g[2] = (T) => l.value = !0),
355
- onMouseout: g[3] || (g[3] = (T) => l.value = !1)
353
+ onContextmenu: F(u, ["self", "prevent"]),
354
+ onMouseover: y[2] || (y[2] = (L) => l.value = !0),
355
+ onMouseout: y[3] || (y[3] = (L) => l.value = !1)
356
356
  }, [
357
- D(d, {
357
+ M(d, {
358
358
  class: "mr-1",
359
- icon: u.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
359
+ icon: r.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
360
360
  }, null, 8, ["icon"]),
361
- F("span", Ht, Q(u.title), 1),
362
- D(f),
363
- u.hasCreate ? (C(), B(m, {
361
+ X("span", Et, W(r.title), 1),
362
+ M(g),
363
+ r.hasCreate ? (k(), B(v, {
364
364
  key: 0,
365
365
  class: "mx-3",
366
366
  variant: "text",
367
367
  density: "compact",
368
368
  icon: "mdi-plus",
369
- onClick: g[0] || (g[0] = z((T) => n("create"), ["stop"]))
370
- })) : Y("", !0),
371
- u.hasDelete ? (C(), B(m, {
369
+ onClick: y[0] || (y[0] = F((L) => n("create"), ["stop"]))
370
+ })) : G("", !0),
371
+ r.hasDelete ? (k(), B(v, {
372
372
  key: 1,
373
373
  class: "mx-3",
374
374
  variant: "text",
375
375
  density: "compact",
376
376
  icon: "mdi-minus",
377
- onClick: g[1] || (g[1] = z((T) => n("delete", u.index), ["stop"]))
378
- })) : Y("", !0)
377
+ onClick: y[1] || (y[1] = F((L) => n("delete", r.index), ["stop"]))
378
+ })) : G("", !0)
379
379
  ], 36)), [
380
- [k]
380
+ [x]
381
381
  ]);
382
382
  };
383
383
  }
384
- }), Xt = /* @__PURE__ */ R({
384
+ }), Ht = /* @__PURE__ */ R({
385
385
  __name: "entry",
386
386
  props: {
387
387
  minHeight: {}
@@ -394,42 +394,42 @@ const Rt = /* @__PURE__ */ R({
394
394
  paddingRight: "4px",
395
395
  marginBottom: "1px",
396
396
  userSelect: "none"
397
- })), a = (r) => {
398
- n("menu", r.clientX, r.clientY);
397
+ })), a = (u) => {
398
+ n("menu", u.clientX, u.clientY);
399
399
  };
400
- return (r, u) => {
401
- const g = le("ripple");
402
- return ee((C(), H("div", {
400
+ return (u, r) => {
401
+ const y = le("ripple");
402
+ return ee((k(), E("div", {
403
403
  class: "d-flex justify-space-between align-center cursor-pointer",
404
404
  style: I(i.value),
405
- onContextmenu: z(a, ["self", "prevent"]),
406
- onMouseover: u[0] || (u[0] = (d) => l.value = !0),
407
- onMouseout: u[1] || (u[1] = (d) => l.value = !1)
405
+ onContextmenu: F(a, ["self", "prevent"]),
406
+ onMouseover: r[0] || (r[0] = (d) => l.value = !0),
407
+ onMouseout: r[1] || (r[1] = (d) => l.value = !1)
408
408
  }, [
409
- dt(r.$slots, "default")
409
+ dt(u.$slots, "default")
410
410
  ], 36)), [
411
- [g]
411
+ [y]
412
412
  ]);
413
413
  };
414
414
  }
415
415
  });
416
- function Ft(o, s, t) {
416
+ function Xt(o, s, t) {
417
417
  const { t: e } = te();
418
418
  return { renderProp: (l, i, a) => {
419
- const r = l[l.length - 1];
420
- let g = typeof r == "number" ? `[${r + 1}]` : e(i.name);
421
- return ae(o.value, l) && (g += " *"), h(
422
- Xt,
419
+ const u = l[l.length - 1];
420
+ let y = typeof u == "number" ? `[${u + 1}]` : e(i.name);
421
+ return ae(o.value, l) && (y += " *"), h(
422
+ Ht,
423
423
  {
424
424
  minHeight: s.value,
425
- onMenu: (d, f) => {
426
- ue.emit("propTreeMenu", { x: d, y: f, keys: l });
425
+ onMenu: (d, g) => {
426
+ ue.emit("propTreeMenu", { x: d, y: g, keys: l });
427
427
  }
428
428
  },
429
429
  () => [
430
430
  h("span", {
431
431
  style: { marginLeft: "4px", pointerEvents: "none" },
432
- innerHTML: g
432
+ innerHTML: y
433
433
  }),
434
434
  h("div", { style: { width: t.value } }, a)
435
435
  ]
@@ -466,7 +466,7 @@ const ne = (o, s, t, e, n, l) => {
466
466
  (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]));
467
467
  }
468
468
  };
469
- function zt(o) {
469
+ function Ft(o) {
470
470
  return { renderUiDummy: (t, e, n, l, i) => {
471
471
  if (e.ui !== "dummy") {
472
472
  console.assert(!1, "renderUiDummy prop ui must be dummy");
@@ -475,50 +475,50 @@ function zt(o) {
475
475
  ne(t, e, n, o, l, i);
476
476
  } };
477
477
  }
478
- const Gt = { class: "d-flex justify-space-between align-center" }, Yt = /* @__PURE__ */ R({
478
+ const zt = { class: "d-flex justify-space-between align-center" }, Gt = /* @__PURE__ */ R({
479
479
  __name: "strInput",
480
- props: /* @__PURE__ */ W({
480
+ props: /* @__PURE__ */ Y({
481
481
  hasDelete: { type: Boolean, default: !1 },
482
482
  readonly: { type: Boolean, default: !1 }
483
483
  }, {
484
484
  modelValue: { required: !0 },
485
485
  modelModifiers: {}
486
486
  }),
487
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
487
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
488
488
  setup(o, { emit: s }) {
489
- const t = G(o, "modelValue"), e = s;
489
+ const t = z(o, "modelValue"), e = s;
490
490
  return (n, l) => {
491
- const i = U("v-text-field"), a = U("v-btn"), r = le("ripple");
492
- return C(), H("div", Gt, [
493
- ee(D(i, {
491
+ const i = S("v-text-field"), a = S("v-btn"), u = le("ripple");
492
+ return k(), E("div", zt, [
493
+ ee(M(i, {
494
494
  modelValue: t.value,
495
- "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
495
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
496
496
  density: "compact",
497
497
  "hide-details": "",
498
498
  "single-line": "",
499
499
  readonly: n.readonly
500
500
  }, null, 8, ["modelValue", "readonly"]), [
501
501
  [
502
- r,
502
+ u,
503
503
  void 0,
504
504
  void 0,
505
505
  { stop: !0 }
506
506
  ]
507
507
  ]),
508
- n.hasDelete ? (C(), B(a, {
508
+ n.hasDelete ? (k(), B(a, {
509
509
  key: 0,
510
510
  class: "mx-2",
511
511
  variant: "text",
512
512
  density: "compact",
513
513
  icon: "mdi-minus",
514
- onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
515
- })) : Y("", !0)
514
+ onClick: l[1] || (l[1] = F((r) => e("delete"), ["stop"]))
515
+ })) : G("", !0)
516
516
  ]);
517
517
  };
518
518
  }
519
519
  });
520
- function Wt(o) {
521
- return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Yt, {
520
+ function Yt(o) {
521
+ return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Gt, {
522
522
  modelValue: e.static ? e.value : ne(
523
523
  t,
524
524
  e,
@@ -545,9 +545,9 @@ function Wt(o) {
545
545
  readonly: e.static || e.readonly
546
546
  }) };
547
547
  }
548
- const Qt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PURE__ */ R({
548
+ const Wt = { class: "d-flex justify-space-between align-center" }, Qt = /* @__PURE__ */ R({
549
549
  __name: "numInput",
550
- props: /* @__PURE__ */ W({
550
+ props: /* @__PURE__ */ Y({
551
551
  hasDelete: { type: Boolean, default: !1 },
552
552
  precision: { default: () => {
553
553
  } },
@@ -559,15 +559,15 @@ const Qt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PU
559
559
  modelValue: { required: !0 },
560
560
  modelModifiers: {}
561
561
  }),
562
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
562
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
563
563
  setup(o, { emit: s }) {
564
- const t = G(o, "modelValue"), e = s;
564
+ const t = z(o, "modelValue"), e = s;
565
565
  return (n, l) => {
566
- const i = U("v-number-input"), a = U("v-btn"), r = le("ripple");
567
- return C(), H("div", Qt, [
568
- ee(D(i, {
566
+ const i = S("v-number-input"), a = S("v-btn"), u = le("ripple");
567
+ return k(), E("div", Wt, [
568
+ ee(M(i, {
569
569
  modelValue: t.value,
570
- "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
570
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
571
571
  density: "compact",
572
572
  "control-variant": "stacked",
573
573
  precision: n.precision,
@@ -579,26 +579,26 @@ const Qt = { class: "d-flex justify-space-between align-center" }, Zt = /* @__PU
579
579
  readonly: n.readonly
580
580
  }, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
581
581
  [
582
- r,
582
+ u,
583
583
  void 0,
584
584
  void 0,
585
585
  { stop: !0 }
586
586
  ]
587
587
  ]),
588
- n.hasDelete ? (C(), B(a, {
588
+ n.hasDelete ? (k(), B(a, {
589
589
  key: 0,
590
590
  class: "mx-2",
591
591
  variant: "text",
592
592
  density: "compact",
593
593
  icon: "mdi-minus",
594
- onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
595
- })) : Y("", !0)
594
+ onClick: l[1] || (l[1] = F((r) => e("delete"), ["stop"]))
595
+ })) : G("", !0)
596
596
  ]);
597
597
  };
598
598
  }
599
599
  });
600
- function Et(o) {
601
- return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(Zt, {
600
+ function Zt(o) {
601
+ return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(Qt, {
602
602
  modelValue: ne(
603
603
  t,
604
604
  e,
@@ -631,36 +631,36 @@ function Et(o) {
631
631
  }
632
632
  const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ R({
633
633
  __name: "switch",
634
- props: /* @__PURE__ */ W({
634
+ props: /* @__PURE__ */ Y({
635
635
  hasDelete: { type: Boolean, default: !1 },
636
636
  readonly: { type: Boolean, default: !1 }
637
637
  }, {
638
638
  modelValue: { type: Boolean },
639
639
  modelModifiers: {}
640
640
  }),
641
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
641
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
642
642
  setup(o, { emit: s }) {
643
- const t = G(o, "modelValue"), e = s;
643
+ const t = z(o, "modelValue"), e = s;
644
644
  return (n, l) => {
645
- const i = U("v-switch"), a = U("v-btn");
646
- return C(), H("div", jt, [
647
- D(i, {
645
+ const i = S("v-switch"), a = S("v-btn");
646
+ return k(), E("div", jt, [
647
+ M(i, {
648
648
  modelValue: t.value,
649
- "onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
649
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
650
650
  class: "ml-1",
651
651
  density: "compact",
652
652
  color: "primary",
653
653
  "hide-details": "",
654
654
  readonly: n.readonly
655
655
  }, null, 8, ["modelValue", "readonly"]),
656
- n.hasDelete ? (C(), B(a, {
656
+ n.hasDelete ? (k(), B(a, {
657
657
  key: 0,
658
658
  class: "mx-2",
659
659
  variant: "text",
660
660
  density: "compact",
661
661
  icon: "mdi-minus",
662
- onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
663
- })) : Y("", !0)
662
+ onClick: l[1] || (l[1] = F((u) => e("delete"), ["stop"]))
663
+ })) : G("", !0)
664
664
  ]);
665
665
  };
666
666
  }
@@ -695,7 +695,7 @@ function en(o) {
695
695
  }
696
696
  const tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PURE__ */ R({
697
697
  __name: "select",
698
- props: /* @__PURE__ */ W({
698
+ props: /* @__PURE__ */ Y({
699
699
  hasDelete: { type: Boolean, default: !1 },
700
700
  readonly: { type: Boolean, default: !1 },
701
701
  items: {}
@@ -703,21 +703,20 @@ const tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PU
703
703
  modelValue: {},
704
704
  modelModifiers: {}
705
705
  }),
706
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
706
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
707
707
  setup(o, { emit: s }) {
708
- const { t } = te(), e = G(o, "modelValue"), n = s, l = be(), i = K(() => {
709
- var r;
708
+ const { t } = te(), e = z(o, "modelValue"), n = s, l = be(), i = K(() => {
710
709
  const a = [];
711
- return (r = Xe[l.value]) == null || r.items[o.items].forEach(({ title: u, value: g }) => {
712
- a.push({ title: t(u), value: g });
710
+ return He[l.value]?.items[o.items].forEach(({ title: u, value: r }) => {
711
+ a.push({ title: t(u), value: r });
713
712
  }), a;
714
713
  });
715
- return (a, r) => {
716
- const u = U("v-select"), g = U("v-btn"), d = le("ripple");
717
- return C(), H("div", tn, [
718
- ee(D(u, {
714
+ return (a, u) => {
715
+ const r = S("v-select"), y = S("v-btn"), d = le("ripple");
716
+ return k(), E("div", tn, [
717
+ ee(M(r, {
719
718
  modelValue: e.value,
720
- "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
719
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => e.value = g),
721
720
  density: "compact",
722
721
  items: i.value,
723
722
  "hide-details": "",
@@ -731,14 +730,14 @@ const tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PU
731
730
  { stop: !0 }
732
731
  ]
733
732
  ]),
734
- a.hasDelete ? (C(), B(g, {
733
+ a.hasDelete ? (k(), B(y, {
735
734
  key: 0,
736
735
  class: "mx-2",
737
736
  variant: "text",
738
737
  density: "compact",
739
738
  icon: "mdi-minus",
740
- onClick: r[1] || (r[1] = z((f) => n("delete"), ["stop"]))
741
- })) : Y("", !0)
739
+ onClick: u[1] || (u[1] = F((g) => n("delete"), ["stop"]))
740
+ })) : G("", !0)
742
741
  ]);
743
742
  };
744
743
  }
@@ -788,21 +787,21 @@ const on = { class: "text-subtitle-2 ml-1" }, sn = { class: "text-caption text-g
788
787
  marginBottom: "1px",
789
788
  userSelect: "none"
790
789
  }));
791
- return (r, u) => {
792
- const g = U("v-icon"), d = le("ripple");
793
- return ee((C(), H("div", {
790
+ return (u, r) => {
791
+ const y = S("v-icon"), d = le("ripple");
792
+ return ee((k(), E("div", {
794
793
  class: "d-flex align-center cursor-pointer",
795
794
  style: I(a.value),
796
- onClick: u[0] || (u[0] = (f) => l("x-click", n.id)),
797
- onMouseover: u[1] || (u[1] = (f) => i.value = !0),
798
- onMouseout: u[2] || (u[2] = (f) => i.value = !1)
795
+ onClick: r[0] || (r[0] = (g) => l("x-click", n.id)),
796
+ onMouseover: r[1] || (r[1] = (g) => i.value = !0),
797
+ onMouseout: r[2] || (r[2] = (g) => i.value = !1)
799
798
  }, [
800
- D(g, {
799
+ M(y, {
801
800
  icon: n.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
802
801
  size: "small"
803
802
  }, null, 8, ["icon"]),
804
- F("span", on, Q(n.title), 1),
805
- F("span", sn, Q(n.count), 1)
803
+ X("span", on, W(n.title), 1),
804
+ X("span", sn, W(n.count), 1)
806
805
  ], 36)), [
807
806
  [d]
808
807
  ]);
@@ -822,18 +821,18 @@ const on = { class: "text-subtitle-2 ml-1" }, sn = { class: "text-caption text-g
822
821
  marginBottom: "1px",
823
822
  userSelect: "none"
824
823
  }));
825
- return (r, u) => {
826
- const g = le("ripple");
827
- return ee((C(), H("div", {
824
+ return (u, r) => {
825
+ const y = le("ripple");
826
+ return ee((k(), E("div", {
828
827
  class: "d-flex align-center cursor-pointer",
829
828
  style: I(a.value),
830
- onClick: u[0] || (u[0] = (d) => l("x-click", n.id)),
831
- onMouseover: u[1] || (u[1] = (d) => i.value = !0),
832
- onMouseout: u[2] || (u[2] = (d) => i.value = !1)
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)
833
832
  }, [
834
- F("span", un, Q(n.title), 1)
833
+ X("span", un, W(n.title), 1)
835
834
  ], 36)), [
836
- [g]
835
+ [y]
837
836
  ]);
838
837
  };
839
838
  }
@@ -850,32 +849,32 @@ const on = { class: "text-subtitle-2 ml-1" }, sn = { class: "text-caption text-g
850
849
  },
851
850
  emits: ["update:modelValue", "update:open"],
852
851
  setup(o) {
853
- const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), n = Ze(), l = (a) => {
854
- const r = He(n, a);
855
- r && gt(n, a, !r.collapse);
852
+ const { t: s } = te(), t = z(o, "modelValue"), e = z(o, "open"), n = Qe(), l = (a) => {
853
+ const u = Ee(n, a);
854
+ u && gt(n, a, !u.collapse);
856
855
  }, i = (a) => {
857
856
  t.value = a, e.value = !1, ue.emit("refreshDepends");
858
857
  };
859
- return (a, r) => L(n).length > 0 ? (C(), H("div", cn, [
860
- (C(!0), H(ke, null, qe(L(n), (u) => (C(), H(ke, {
861
- key: u.id
858
+ return (a, u) => T(n).length > 0 ? (k(), E("div", cn, [
859
+ (k(!0), E(ke, null, qe(T(n), (r) => (k(), E(ke, {
860
+ key: r.id
862
861
  }, [
863
- u.type === 0 ? (C(), B(rn, {
862
+ r.type === 0 ? (k(), B(rn, {
864
863
  key: 0,
865
- id: u.id,
866
- title: u.name,
867
- collapse: u.collapse,
868
- count: u.count ?? 0,
864
+ id: r.id,
865
+ title: r.name,
866
+ collapse: r.collapse,
867
+ count: r.count ?? 0,
869
868
  onXClick: l
870
- }, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
871
- u.type === 1 && u.show ? (C(), B(an, {
869
+ }, null, 8, ["id", "title", "collapse", "count"])) : G("", !0),
870
+ r.type === 1 && r.show ? (k(), B(an, {
872
871
  key: 1,
873
- id: u.id,
874
- title: u.name,
872
+ id: r.id,
873
+ title: r.name,
875
874
  onXClick: i
876
- }, null, 8, ["id", "title"])) : Y("", !0)
875
+ }, null, 8, ["id", "title"])) : G("", !0)
877
876
  ], 64))), 128))
878
- ])) : (C(), H("div", dn, Q(L(s)("x-prop-tree.noComp")), 1));
877
+ ])) : (k(), E("div", dn, W(T(s)("x-prop-tree.noComp")), 1));
879
878
  }
880
879
  }), mn = { class: "text-subtitle-1 ml-3" }, vn = /* @__PURE__ */ R({
881
880
  __name: "index",
@@ -885,92 +884,92 @@ const on = { class: "text-subtitle-2 ml-1" }, sn = { class: "text-caption text-g
885
884
  },
886
885
  emits: ["update:modelValue"],
887
886
  setup(o) {
888
- const { t: s } = te(), t = Ct(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = G(o, "modelValue"), i = Ze(), a = K(() => {
889
- let f = "100%";
890
- return t.mdAndUp.value && (f = "400px"), {
887
+ const { t: s } = te(), t = Ct(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = z(o, "modelValue"), i = Qe(), a = K(() => {
888
+ let g = "100%";
889
+ return t.mdAndUp.value && (g = "400px"), {
891
890
  background: n.value,
892
- width: f,
891
+ width: g,
893
892
  height: "100%"
894
893
  };
895
- }), r = K(() => {
896
- let f = 48;
897
- return e.value && (f += 24), {
894
+ }), u = K(() => {
895
+ let g = 48;
896
+ return e.value && (g += 24), {
898
897
  position: "relative",
899
- height: `calc(100% - ${f}px)`
898
+ height: `calc(100% - ${g}px)`
900
899
  };
901
- }), u = K(() => ({
900
+ }), r = K(() => ({
902
901
  height: "60px"
903
- })), g = K(() => {
902
+ })), y = K(() => {
904
903
  if (!l.value)
905
904
  return s("x-runtime-lib.notSet");
906
- const f = He(i, l.value);
907
- return f ? f.name : s("x-runtime-lib.compNotAvail");
905
+ const g = Ee(i, l.value);
906
+ return g ? g.name : s("x-runtime-lib.compNotAvail");
908
907
  }), { open: d } = Ce(`propTreeCompSelectDlg${Me()}`);
909
908
  return we(() => {
910
909
  d.value = !1;
911
- }), (f, m) => {
912
- const k = U("v-btn"), T = U("v-sheet"), M = U("v-icon"), b = U("v-dialog");
913
- return C(), B(b, {
914
- modelValue: L(d),
915
- "onUpdate:modelValue": m[5] || (m[5] = (x) => ve(d) ? d.value = x : null),
910
+ }), (g, v) => {
911
+ const x = S("v-btn"), L = S("v-sheet"), P = S("v-icon"), D = S("v-dialog");
912
+ return k(), B(D, {
913
+ modelValue: T(d),
914
+ "onUpdate:modelValue": v[5] || (v[5] = (U) => ve(d) ? d.value = U : null),
916
915
  transition: "scroll-x-reverse-transition",
917
916
  persistent: "",
918
917
  "no-click-animation": "",
919
918
  fullscreen: "",
920
- onKeydown: m[6] || (m[6] = Be(z((x) => d.value = !1, ["stop", "prevent"]), ["esc"]))
919
+ onKeydown: v[6] || (v[6] = Be(F((U) => d.value = !1, ["stop", "prevent"]), ["esc"]))
921
920
  }, {
922
- activator: J(({ props: x }) => [
923
- D(k, De(x, {
921
+ activator: J(({ props: U }) => [
922
+ M(x, De(U, {
924
923
  density: "comfortable",
925
924
  block: ""
926
925
  }), {
927
926
  default: J(() => [
928
- Ve(Q(g.value), 1)
927
+ Ve(W(y.value), 1)
929
928
  ]),
930
929
  _: 2
931
930
  }, 1040)
932
931
  ]),
933
932
  default: J(() => [
934
- F("div", {
933
+ X("div", {
935
934
  class: "w-100 h-100 d-flex flex-row-reverse",
936
- onClick: m[3] || (m[3] = z((x) => d.value = !1, ["self"])),
937
- onContextmenu: m[4] || (m[4] = z((x) => d.value = !1, ["self", "prevent"]))
935
+ onClick: v[3] || (v[3] = F((U) => d.value = !1, ["self"])),
936
+ onContextmenu: v[4] || (v[4] = F((U) => d.value = !1, ["self", "prevent"]))
938
937
  }, [
939
- F("div", {
938
+ X("div", {
940
939
  class: "elevation-2",
941
940
  style: I(a.value)
942
941
  }, [
943
- L(e) ? (C(), B(T, {
942
+ T(e) ? (k(), B(L, {
944
943
  key: 0,
945
944
  color: "transparent",
946
945
  height: 24
947
- })) : Y("", !0),
948
- D(T, {
946
+ })) : G("", !0),
947
+ M(L, {
949
948
  class: "d-flex align-center px-3",
950
949
  color: "transparent",
951
950
  height: 48
952
951
  }, {
953
952
  default: J(() => [
954
- D(M, {
953
+ M(P, {
955
954
  icon: "mdi-close",
956
- onClick: m[0] || (m[0] = (x) => d.value = !1)
955
+ onClick: v[0] || (v[0] = (U) => d.value = !1)
957
956
  }),
958
- F("span", mn, Q(L(s)("x-prop-tree.dlg.compSelect.title")), 1)
957
+ X("span", mn, W(T(s)("x-prop-tree.dlg.compSelect.title")), 1)
959
958
  ]),
960
959
  _: 1
961
960
  }),
962
- F("div", {
961
+ X("div", {
963
962
  class: "overflow-y-auto",
964
- style: I(r.value)
963
+ style: I(u.value)
965
964
  }, [
966
- D(fn, {
965
+ M(fn, {
967
966
  modelValue: l.value,
968
- "onUpdate:modelValue": m[1] || (m[1] = (x) => l.value = x),
969
- open: L(d),
970
- "onUpdate:open": m[2] || (m[2] = (x) => ve(d) ? d.value = x : null)
967
+ "onUpdate:modelValue": v[1] || (v[1] = (U) => l.value = U),
968
+ open: T(d),
969
+ "onUpdate:open": v[2] || (v[2] = (U) => ve(d) ? d.value = U : null)
971
970
  }, null, 8, ["modelValue", "open"]),
972
- F("div", {
973
- style: I(u.value)
971
+ X("div", {
972
+ style: I(r.value)
974
973
  }, null, 4)
975
974
  ], 4)
976
975
  ], 4)
@@ -1006,63 +1005,63 @@ function pn(o) {
1006
1005
  }
1007
1006
  const yn = { class: "d-flex justify-space-between align-center" }, gn = /* @__PURE__ */ R({
1008
1007
  __name: "colorPicker",
1009
- props: /* @__PURE__ */ W({
1008
+ props: /* @__PURE__ */ Y({
1010
1009
  hasDelete: { type: Boolean, default: !1 },
1011
1010
  readonly: { type: Boolean, default: !1 }
1012
1011
  }, {
1013
1012
  modelValue: {},
1014
1013
  modelModifiers: {}
1015
1014
  }),
1016
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1015
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
1017
1016
  setup(o, { emit: s }) {
1018
- const { t } = te(), e = G(o, "modelValue"), n = s, l = K(() => {
1019
- let r = "100%";
1020
- return o.hasDelete && (r = "calc(100% - 37px)"), {
1021
- width: r
1017
+ const { t } = te(), e = z(o, "modelValue"), n = s, l = K(() => {
1018
+ let u = "100%";
1019
+ return o.hasDelete && (u = "calc(100% - 37px)"), {
1020
+ width: u
1022
1021
  };
1023
1022
  }), i = K(() => o.readonly), { open: a } = Ce(`propTreeColorPickerMenu${Me()}`);
1024
1023
  return we(() => {
1025
1024
  a.value = !1;
1026
- }), (r, u) => {
1027
- const g = U("v-btn"), d = U("v-color-picker"), f = U("v-menu");
1028
- return C(), B(f, {
1029
- modelValue: L(a),
1030
- "onUpdate:modelValue": u[2] || (u[2] = (m) => ve(a) ? a.value = m : null),
1025
+ }), (u, r) => {
1026
+ const y = S("v-btn"), d = S("v-color-picker"), g = S("v-menu");
1027
+ return k(), B(g, {
1028
+ modelValue: T(a),
1029
+ "onUpdate:modelValue": r[2] || (r[2] = (v) => ve(a) ? a.value = v : null),
1031
1030
  "close-on-content-click": !1,
1032
1031
  scrim: "transparent"
1033
1032
  }, {
1034
- activator: J(({ props: m }) => [
1035
- F("div", yn, [
1036
- F("div", {
1033
+ activator: J(({ props: v }) => [
1034
+ X("div", yn, [
1035
+ X("div", {
1037
1036
  class: "flex-grow-1",
1038
1037
  style: I(l.value)
1039
1038
  }, [
1040
- D(g, De(m, {
1039
+ M(y, De(v, {
1041
1040
  density: "comfortable",
1042
1041
  color: e.value,
1043
1042
  block: "",
1044
1043
  disabled: i.value
1045
1044
  }), {
1046
1045
  default: J(() => [
1047
- Ve(Q(e.value ? e.value : L(t)("x-runtime-lib.notSet")), 1)
1046
+ Ve(W(e.value ? e.value : T(t)("x-runtime-lib.notSet")), 1)
1048
1047
  ]),
1049
1048
  _: 2
1050
1049
  }, 1040, ["color", "disabled"])
1051
1050
  ], 4),
1052
- r.hasDelete ? (C(), B(g, {
1051
+ u.hasDelete ? (k(), B(y, {
1053
1052
  key: 0,
1054
1053
  class: "mx-2",
1055
1054
  variant: "text",
1056
1055
  density: "compact",
1057
1056
  icon: "mdi-minus",
1058
- onClick: u[0] || (u[0] = z((k) => n("delete"), ["stop"]))
1059
- })) : Y("", !0)
1057
+ onClick: r[0] || (r[0] = F((x) => n("delete"), ["stop"]))
1058
+ })) : G("", !0)
1060
1059
  ])
1061
1060
  ]),
1062
1061
  default: J(() => [
1063
- D(d, {
1062
+ M(d, {
1064
1063
  modelValue: e.value,
1065
- "onUpdate:modelValue": u[1] || (u[1] = (m) => e.value = m),
1064
+ "onUpdate:modelValue": r[1] || (r[1] = (v) => e.value = v),
1066
1065
  mode: "hexa",
1067
1066
  "show-swatches": "",
1068
1067
  "swatches-max-height": "150px"
@@ -1103,97 +1102,85 @@ function hn(o) {
1103
1102
  }
1104
1103
  const _n = { class: "d-flex justify-space-between align-center my-2" }, kn = { class: "flex-grow-1" }, Vn = /* @__PURE__ */ R({
1105
1104
  __name: "multiTypes",
1106
- props: /* @__PURE__ */ W({
1105
+ props: /* @__PURE__ */ Y({
1107
1106
  hasDelete: { type: Boolean, default: !1 },
1108
1107
  types: {}
1109
1108
  }, {
1110
1109
  modelValue: {},
1111
1110
  modelModifiers: {}
1112
1111
  }),
1113
- emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
1112
+ emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
1114
1113
  setup(o, { emit: s }) {
1115
- const { t } = te(), e = G(o, "modelValue"), n = s, l = be(), i = K(() => {
1116
- var f;
1117
- return (f = Xe[l.value]) == null ? void 0 : f.types[o.types];
1118
- }), a = O(0), r = K(() => {
1119
- var m;
1120
- const f = [];
1121
- return (m = i.value) == null || m.forEach(({ title: k }, T) => {
1122
- f.push({
1123
- title: t(k),
1124
- value: T
1114
+ const { t } = te(), e = z(o, "modelValue"), n = s, l = be(), i = K(() => He[l.value]?.types[o.types]), a = O(0), u = K(() => {
1115
+ const g = [];
1116
+ return i.value?.forEach(({ title: v }, x) => {
1117
+ g.push({
1118
+ title: t(v),
1119
+ value: x
1125
1120
  });
1126
- }), f;
1121
+ }), g;
1127
1122
  });
1128
1123
  Le(() => {
1129
- var f;
1130
- (f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
1124
+ i.value?.some((g, v) => g.validator(e.value) ? (a.value = v, !0) : !1);
1131
1125
  });
1132
- const u = K(() => {
1133
- var f;
1134
- return (f = i.value) == null ? void 0 : f[a.value];
1135
- }), g = () => {
1136
- var f;
1137
- e.value = (f = u.value) == null ? void 0 : f.default;
1126
+ const r = K(() => i.value?.[a.value]), y = () => {
1127
+ e.value = r.value?.default;
1138
1128
  }, d = O(0);
1139
1129
  return Le(() => {
1140
- var f, m;
1141
- ((f = u.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = _t(e.value) : ((m = u.value) == null ? void 0 : m.ui) === "percentInput" && (d.value = kt(e.value));
1142
- }), re(d, (f) => {
1143
- var m, k;
1144
- ((m = u.value) == null ? void 0 : m.ui) === "pixelInput" ? e.value = f + "px" : ((k = u.value) == null ? void 0 : k.ui) === "percentInput" && (e.value = f + "%");
1145
- }), (f, m) => {
1146
- var x, _;
1147
- const k = U("v-select"), T = U("v-number-input"), M = U("v-btn"), b = le("ripple");
1148
- return C(), H("div", _n, [
1149
- F("div", kn, [
1150
- ee(D(k, {
1130
+ r.value?.ui === "pixelInput" ? d.value = _t(e.value) : r.value?.ui === "percentInput" && (d.value = kt(e.value));
1131
+ }), re(d, (g) => {
1132
+ r.value?.ui === "pixelInput" ? e.value = g + "px" : r.value?.ui === "percentInput" && (e.value = g + "%");
1133
+ }), (g, v) => {
1134
+ const x = S("v-select"), L = S("v-number-input"), P = S("v-btn"), D = le("ripple");
1135
+ return k(), E("div", _n, [
1136
+ X("div", kn, [
1137
+ ee(M(x, {
1151
1138
  modelValue: a.value,
1152
1139
  "onUpdate:modelValue": [
1153
- m[0] || (m[0] = (P) => a.value = P),
1154
- g
1140
+ v[0] || (v[0] = (U) => a.value = U),
1141
+ y
1155
1142
  ],
1156
1143
  density: "compact",
1157
- items: r.value,
1144
+ items: u.value,
1158
1145
  "hide-details": "",
1159
1146
  "single-line": ""
1160
1147
  }, null, 8, ["modelValue", "items"]), [
1161
1148
  [
1162
- b,
1149
+ D,
1163
1150
  void 0,
1164
1151
  void 0,
1165
1152
  { stop: !0 }
1166
1153
  ]
1167
1154
  ]),
1168
- ((x = u.value) == null ? void 0 : x.ui) === "pixelInput" || ((_ = u.value) == null ? void 0 : _.ui) === "percentInput" ? ee((C(), B(T, {
1155
+ r.value?.ui === "pixelInput" || r.value?.ui === "percentInput" ? ee((k(), B(L, {
1169
1156
  key: 0,
1170
1157
  modelValue: d.value,
1171
- "onUpdate:modelValue": m[1] || (m[1] = (P) => d.value = P),
1158
+ "onUpdate:modelValue": v[1] || (v[1] = (U) => d.value = U),
1172
1159
  density: "compact",
1173
1160
  "control-variant": "stacked",
1174
- precision: u.value.precision,
1175
- min: u.value.min,
1176
- max: u.value.max,
1177
- step: u.value.step,
1161
+ precision: r.value.precision,
1162
+ min: r.value.min,
1163
+ max: r.value.max,
1164
+ step: r.value.step,
1178
1165
  "hide-details": "",
1179
1166
  "single-line": ""
1180
1167
  }, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
1181
1168
  [
1182
- b,
1169
+ D,
1183
1170
  void 0,
1184
1171
  void 0,
1185
1172
  { stop: !0 }
1186
1173
  ]
1187
- ]) : Y("", !0)
1174
+ ]) : G("", !0)
1188
1175
  ]),
1189
- f.hasDelete ? (C(), B(M, {
1176
+ g.hasDelete ? (k(), B(P, {
1190
1177
  key: 0,
1191
1178
  class: "mx-2",
1192
1179
  variant: "text",
1193
1180
  density: "compact",
1194
1181
  icon: "mdi-minus",
1195
- onClick: m[2] || (m[2] = z((P) => n("delete"), ["stop"]))
1196
- })) : Y("", !0)
1182
+ onClick: v[2] || (v[2] = F((U) => n("delete"), ["stop"]))
1183
+ })) : G("", !0)
1197
1184
  ]);
1198
1185
  };
1199
1186
  }
@@ -1238,26 +1225,25 @@ const Sn = /* @__PURE__ */ R({
1238
1225
  },
1239
1226
  emits: ["update:modelValue", "update:lock", "update:scale"],
1240
1227
  setup(o, { expose: s }) {
1241
- const t = G(o, "modelValue"), e = G(o, "lock"), n = G(o, "scale"), l = pt(), i = yt(), a = be(), r = Ke("target"), u = () => {
1242
- var f;
1228
+ const t = z(o, "modelValue"), e = z(o, "lock"), n = z(o, "scale"), l = pt(), i = yt(), a = be(), u = Ke("target"), r = () => {
1243
1229
  const d = JSON.parse(t.value);
1244
- (f = r.value) == null || f.load(d);
1230
+ u.value?.load(d);
1245
1231
  };
1246
1232
  return s({ save: () => {
1247
- const d = r.value.save();
1233
+ const d = u.value.save();
1248
1234
  t.value = JSON.stringify(d, null, 2);
1249
- } }), (d, f) => (C(), B(L(St), {
1235
+ } }), (d, g) => (k(), B(T(St), {
1250
1236
  ref_key: "target",
1251
- ref: r,
1237
+ ref: u,
1252
1238
  lock: e.value,
1253
- "onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
1239
+ "onUpdate:lock": g[0] || (g[0] = (v) => e.value = v),
1254
1240
  scale: n.value,
1255
- "onUpdate:scale": f[1] || (f[1] = (m) => n.value = m),
1241
+ "onUpdate:scale": g[1] || (g[1] = (v) => n.value = v),
1256
1242
  type: "json",
1257
- version: L(a),
1258
- locale: L(i),
1259
- dark: L(l),
1260
- onReady: u
1243
+ version: T(a),
1244
+ locale: T(i),
1245
+ dark: T(l),
1246
+ onReady: r
1261
1247
  }, null, 8, ["lock", "scale", "version", "locale", "dark"]));
1262
1248
  }
1263
1249
  }), Un = { class: "text-subtitle-1" }, $n = /* @__PURE__ */ R({
@@ -1268,85 +1254,84 @@ const Sn = /* @__PURE__ */ R({
1268
1254
  },
1269
1255
  emits: ["update:modelValue"],
1270
1256
  setup(o) {
1271
- const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = G(o, "modelValue"), a = O(!1), r = O(1), u = K(() => {
1272
- let m = 48;
1273
- return t.value && (m += 24), {
1257
+ const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = z(o, "modelValue"), a = O(!1), u = O(1), r = K(() => {
1258
+ let v = 48;
1259
+ return t.value && (v += 24), {
1274
1260
  position: "relative",
1275
1261
  background: n.value,
1276
- height: `calc(100% - ${m}px)`
1262
+ height: `calc(100% - ${v}px)`
1277
1263
  };
1278
- }), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Ce(`propTreeJsonObjectDlg${Me()}`);
1264
+ }), y = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Ce(`propTreeJsonObjectDlg${Me()}`);
1279
1265
  we(() => {
1280
1266
  d.value = !1;
1281
1267
  });
1282
- const f = Ke("editor");
1283
- return re(d, (m) => {
1284
- var k;
1285
- m || (k = f.value) == null || k.save();
1286
- }), (m, k) => {
1287
- const T = U("v-btn"), M = U("v-sheet"), b = U("v-spacer"), x = U("v-dialog");
1288
- return C(), B(x, {
1289
- modelValue: L(d),
1290
- "onUpdate:modelValue": k[4] || (k[4] = (_) => ve(d) ? d.value = _ : null),
1268
+ const g = Ke("editor");
1269
+ return re(d, (v) => {
1270
+ v || g.value?.save();
1271
+ }), (v, x) => {
1272
+ const L = S("v-btn"), P = S("v-sheet"), D = S("v-spacer"), U = S("v-dialog");
1273
+ return k(), B(U, {
1274
+ modelValue: T(d),
1275
+ "onUpdate:modelValue": x[4] || (x[4] = (V) => ve(d) ? d.value = V : null),
1291
1276
  transition: "dialog-bottom-transition",
1292
1277
  persistent: "",
1293
1278
  "no-click-animation": "",
1294
1279
  fullscreen: "",
1295
1280
  attach: "",
1296
- onKeydown: k[5] || (k[5] = Be(z((_) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1281
+ onKeydown: x[5] || (x[5] = Be(F((V) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1297
1282
  }, {
1298
- activator: J(({ props: _ }) => [
1299
- D(T, De(_, {
1283
+ activator: J(({ props: V }) => [
1284
+ M(L, De(V, {
1300
1285
  density: "comfortable",
1301
1286
  block: ""
1302
1287
  }), {
1303
1288
  default: J(() => [
1304
- Ve(Q(g.value), 1)
1289
+ Ve(W(y.value), 1)
1305
1290
  ]),
1306
1291
  _: 2
1307
1292
  }, 1040)
1308
1293
  ]),
1309
1294
  default: J(() => [
1310
- D(M, {
1311
- color: L(e),
1295
+ M(P, {
1296
+ color: T(e),
1312
1297
  width: "100%",
1313
1298
  height: "100%"
1314
1299
  }, {
1315
1300
  default: J(() => [
1316
- L(t) ? (C(), B(M, {
1301
+ T(t) ? (k(), B(P, {
1317
1302
  key: 0,
1318
- color: L(l),
1303
+ color: T(l),
1319
1304
  height: 24
1320
- }, null, 8, ["color"])) : Y("", !0),
1321
- D(M, {
1305
+ }, null, 8, ["color"])) : G("", !0),
1306
+ M(P, {
1322
1307
  class: "d-flex align-center px-2",
1323
- color: L(l),
1308
+ color: T(l),
1324
1309
  height: 48
1325
1310
  }, {
1326
1311
  default: J(() => [
1327
- D(T, {
1312
+ M(L, {
1328
1313
  variant: "text",
1329
1314
  density: "comfortable",
1330
1315
  icon: "mdi-close",
1331
- onClick: k[0] || (k[0] = (_) => d.value = !1)
1316
+ onClick: x[0] || (x[0] = (V) => d.value = !1)
1332
1317
  }),
1333
- F("span", Un, Q(L(s)("x-prop-tree.dlg.jsonObject.title")), 1),
1334
- D(b)
1318
+ X("span", Un, W(T(s)("x-prop-tree.dlg.jsonObject.title")), 1),
1319
+ M(D)
1335
1320
  ]),
1336
1321
  _: 1
1337
1322
  }, 8, ["color"]),
1338
- F("div", {
1339
- style: I(u.value)
1323
+ X("div", {
1324
+ style: I(r.value)
1340
1325
  }, [
1341
- D(Sn, {
1326
+ M(Sn, {
1342
1327
  ref_key: "editor",
1343
- ref: f,
1328
+ ref: g,
1344
1329
  modelValue: i.value,
1345
- "onUpdate:modelValue": k[1] || (k[1] = (_) => i.value = _),
1330
+ "onUpdate:modelValue": x[1] || (x[1] = (V) => i.value = V),
1346
1331
  lock: a.value,
1347
- "onUpdate:lock": k[2] || (k[2] = (_) => a.value = _),
1348
- scale: r.value,
1349
- "onUpdate:scale": k[3] || (k[3] = (_) => r.value = _)
1332
+ "onUpdate:lock": x[2] || (x[2] = (V) => a.value = V),
1333
+ scale: u.value,
1334
+ "onUpdate:scale": x[3] || (x[3] = (V) => u.value = V)
1350
1335
  }, null, 8, ["modelValue", "lock", "scale"])
1351
1336
  ], 4)
1352
1337
  ]),
@@ -1391,101 +1376,101 @@ const Pn = /* @__PURE__ */ R({
1391
1376
  },
1392
1377
  emits: ["change"],
1393
1378
  setup(o, { emit: s }) {
1394
- const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), r = O("200px"), u = ft({}), g = O({}), d = (p, c) => {
1395
- Oe(g, n.config, n.object), l("change", p, c);
1379
+ const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), u = O("200px"), r = ft({}), y = O({}), d = (m, c) => {
1380
+ Oe(y, n.config, n.object), l("change", m, c);
1396
1381
  };
1397
1382
  re(
1398
1383
  [() => n.config, () => n.object],
1399
1384
  () => {
1400
- Oe(g, n.config, n.object, (p, c) => {
1401
- l("change", p, c);
1385
+ Oe(y, n.config, n.object, (m, c) => {
1386
+ l("change", m, c);
1402
1387
  });
1403
1388
  },
1404
1389
  { immediate: !0 }
1405
1390
  );
1406
- const f = O(n.version);
1407
- At(f), re(
1391
+ const g = O(n.version);
1392
+ At(g), re(
1408
1393
  () => n.version,
1409
1394
  () => {
1410
- f.value = n.version;
1395
+ g.value = n.version;
1411
1396
  }
1412
1397
  );
1413
- const m = O(n.config);
1414
- bt(m), re(
1398
+ const v = O(n.config);
1399
+ bt(v), re(
1415
1400
  () => n.config,
1416
1401
  () => {
1417
- m.value = n.config;
1402
+ v.value = n.config;
1418
1403
  }
1419
1404
  );
1420
- const k = O(n.object);
1421
- Lt(k), re(
1405
+ const x = O(n.object);
1406
+ Lt(x), re(
1422
1407
  () => n.object,
1423
1408
  () => {
1424
- k.value = n.object;
1409
+ x.value = n.object;
1425
1410
  }
1426
- ), Ot(g), Bt(d);
1427
- const T = O([]);
1428
- Jt(T);
1429
- const M = () => {
1430
- const { compGroups: p, comps: c } = Vt.app.activeApp, y = [];
1431
- p.forEach(({ id: v, name: V, position: $ }) => {
1432
- const w = T.value.find((E) => E.id === v);
1433
- y.push({
1434
- id: v,
1411
+ ), Ot(y), Bt(d);
1412
+ const L = O([]);
1413
+ Jt(L);
1414
+ const P = () => {
1415
+ const { compGroups: m, comps: c } = Vt.app.activeApp, p = [];
1416
+ m.forEach(({ id: f, name: _, position: $ }) => {
1417
+ const b = L.value.find((Z) => Z.id === f);
1418
+ p.push({
1419
+ id: f,
1435
1420
  type: 0,
1436
- name: V,
1421
+ name: _,
1437
1422
  position: $,
1438
- collapse: (w == null ? void 0 : w.collapse) ?? !0
1423
+ collapse: b?.collapse ?? !0
1439
1424
  });
1440
- }), c.forEach(({ id: v, groupid: V, name: $, position: w }) => {
1441
- y.push({ id: v, type: 1, name: $, position: w, group: V });
1442
- }), ht(y, !0), T.value = y;
1425
+ }), c.forEach(({ id: f, groupid: _, name: $, position: b }) => {
1426
+ p.push({ id: f, type: 1, name: $, position: b, group: _ });
1427
+ }), ht(p, !0), L.value = p;
1443
1428
  };
1444
- let b;
1445
- const x = () => {
1446
- clearTimeout(b), b = window.setTimeout(() => {
1447
- M(), b && x();
1429
+ let D;
1430
+ const U = () => {
1431
+ clearTimeout(D), D = window.setTimeout(() => {
1432
+ P(), D && U();
1448
1433
  }, 1e3);
1449
- }, _ = () => {
1450
- clearTimeout(b), b = void 0;
1434
+ }, V = () => {
1435
+ clearTimeout(D), D = void 0;
1451
1436
  };
1452
1437
  mt(() => {
1453
- x();
1438
+ U();
1454
1439
  }), vt(() => {
1455
- _();
1440
+ V();
1456
1441
  });
1457
- const { renderProp: P } = Ft(g, a, r), { renderUiDummy: N } = zt(d), { renderUiStrInput: Z } = Wt(d), { renderUiNumInput: xe } = Et(d), { renderUiSwitch: Ee } = en(d), { renderUiSelect: je } = ln(d), { renderUiColorPicker: Ie } = hn(d), { renderUiJsonEditor: et } = xn(d), { renderUiMultiTypes: tt } = Cn(d), { renderUiCompSelect: nt } = pn(d), pe = (p, c, y, v, V, $) => (p = Re(p), V !== void 0 ? (p.push(V), $ && p.push(c.key)) : p.push(c.key), c.ui ? c.array && v ? st(p, c, y, v, V, $) : it(p, c, y, V, $) : c.array ? lt(p, c, y, v, V, $) : ot(
1458
- p,
1442
+ const { renderProp: A } = Xt(y, a, u), { renderUiDummy: N } = Ft(d), { renderUiStrInput: Q } = Yt(d), { renderUiNumInput: xe } = Zt(d), { renderUiSwitch: Ze } = en(d), { renderUiSelect: je } = ln(d), { renderUiColorPicker: Ie } = hn(d), { renderUiJsonEditor: et } = xn(d), { renderUiMultiTypes: tt } = Cn(d), { renderUiCompSelect: nt } = pn(d), pe = (m, c, p, f, _, $) => (m = Re(m), _ !== void 0 ? (m.push(_), $ && m.push(c.key)) : m.push(c.key), c.ui ? c.array && f ? st(m, c, p, f, _, $) : it(m, c, p, _, $) : c.array ? lt(m, c, p, f, _, $) : ot(
1443
+ m,
1459
1444
  c,
1460
- y,
1461
- v,
1462
- V,
1445
+ p,
1446
+ f,
1447
+ _,
1463
1448
  $
1464
- )), lt = (p, c, y, v, V, $) => {
1449
+ )), lt = (m, c, p, f, _, $) => {
1465
1450
  if (c.ui)
1466
1451
  return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
1467
1452
  if (!c.array)
1468
1453
  return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
1469
- if (!v)
1454
+ if (!f)
1470
1455
  return console.assert(!1), h("div", "renderBranchArray branch must be valid");
1471
- let w;
1472
- V !== void 0 && !$ ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[c.key])), w = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), w = y[c.key]);
1473
- let E = t(c.name);
1474
- v.collapse && ae(g.value, p) && (E += " *");
1456
+ let b;
1457
+ _ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(m, p[c.key])), b = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(m, p[c.key])), b = p[c.key]);
1458
+ let Z = t(c.name);
1459
+ f.collapse && ae(y.value, m) && (Z += " *");
1475
1460
  const fe = h(_e, {
1476
- title: E,
1477
- collapse: v.collapse,
1461
+ title: Z,
1462
+ collapse: f.collapse,
1478
1463
  hasCreate: !0,
1479
- onCollapse: (S) => {
1480
- v.collapse = S;
1464
+ onCollapse: (C) => {
1465
+ f.collapse = C;
1481
1466
  },
1482
- onMenu: (S, A) => {
1483
- ue.emit("propTreeMenu", { x: S, y: A, keys: p });
1467
+ onMenu: (C, w) => {
1468
+ ue.emit("propTreeMenu", { x: C, y: w, keys: m });
1484
1469
  },
1485
1470
  onCreate: () => {
1486
- w.push({}), d(p, w);
1471
+ b.push({}), d(m, b);
1487
1472
  }
1488
- }), X = h(
1473
+ }), H = h(
1489
1474
  "div",
1490
1475
  {
1491
1476
  style: {
@@ -1493,43 +1478,43 @@ const Pn = /* @__PURE__ */ R({
1493
1478
  }
1494
1479
  },
1495
1480
  (() => {
1496
- const S = [];
1497
- for (let A = 0; A < w.length; A++) {
1498
- if (!Pe(v.children)) {
1481
+ const C = [];
1482
+ for (let w = 0; w < b.length; w++) {
1483
+ if (!Pe(f.children)) {
1499
1484
  console.assert(!1);
1500
1485
  break;
1501
1486
  }
1502
- v.children[A] || v.children.push({
1487
+ f.children[w] || f.children.push({
1503
1488
  collapse: !0,
1504
1489
  children: {}
1505
1490
  });
1506
- const ye = [...p, A], ge = v.children[A];
1507
- let Te = `[${A + 1}]`;
1508
- v.children[A].collapse && ae(g.value, ye) && (Te += " *");
1491
+ const ye = [...m, w], ge = f.children[w];
1492
+ let Te = `[${w + 1}]`;
1493
+ f.children[w].collapse && ae(y.value, ye) && (Te += " *");
1509
1494
  const ut = h(_e, {
1510
1495
  title: Te,
1511
- collapse: v.children[A].collapse,
1496
+ collapse: f.children[w].collapse,
1512
1497
  hasDelete: !0,
1513
- index: A,
1498
+ index: w,
1514
1499
  onCollapse: (j) => {
1515
- if (!Pe(v.children)) {
1500
+ if (!Pe(f.children)) {
1516
1501
  console.assert(!1);
1517
1502
  return;
1518
1503
  }
1519
- v.children[A].collapse = j;
1504
+ f.children[w].collapse = j;
1520
1505
  },
1521
1506
  onMenu: (j, se) => {
1522
1507
  ue.emit("propTreeMenu", { x: j, y: se, keys: ye });
1523
1508
  },
1524
1509
  onDelete: (j) => {
1525
- if (!Pe(v.children)) {
1510
+ if (!Pe(f.children)) {
1526
1511
  console.assert(!1);
1527
1512
  return;
1528
1513
  }
1529
- v.children.splice(j, 1), w.splice(j, 1), d(p, w);
1514
+ f.children.splice(j, 1), b.splice(j, 1), d(m, b);
1530
1515
  }
1531
1516
  });
1532
- S.push(ut);
1517
+ C.push(ut);
1533
1518
  const at = h(
1534
1519
  "div",
1535
1520
  {
@@ -1549,20 +1534,20 @@ const Pn = /* @__PURE__ */ R({
1549
1534
  children: se.array ? [] : {}
1550
1535
  });
1551
1536
  const ct = pe(
1552
- p,
1537
+ m,
1553
1538
  se,
1554
- w[A],
1539
+ b[w],
1555
1540
  ge.children[se.key],
1556
- A,
1541
+ w,
1557
1542
  !0
1558
1543
  );
1559
1544
  j.push(ct);
1560
1545
  }), j;
1561
1546
  })()
1562
1547
  );
1563
- v.children[A].collapse || S.push(at);
1548
+ f.children[w].collapse || C.push(at);
1564
1549
  }
1565
- return S;
1550
+ return C;
1566
1551
  })()
1567
1552
  );
1568
1553
  return h(
@@ -1573,31 +1558,31 @@ const Pn = /* @__PURE__ */ R({
1573
1558
  }
1574
1559
  },
1575
1560
  (() => {
1576
- const S = [];
1577
- return S.push(fe), v.collapse || S.push(X), S;
1561
+ const C = [];
1562
+ return C.push(fe), f.collapse || C.push(H), C;
1578
1563
  })()
1579
1564
  );
1580
- }, ot = (p, c, y, v, V, $) => {
1565
+ }, ot = (m, c, p, f, _, $) => {
1581
1566
  if (c.ui)
1582
1567
  return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
1583
1568
  if (c.array)
1584
1569
  return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
1585
- if (!v)
1570
+ if (!f)
1586
1571
  return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
1587
- let w = t(c.name);
1588
- v.collapse && ae(g.value, p) && (w += " *");
1589
- const E = h(_e, {
1590
- title: w,
1591
- collapse: v.collapse,
1592
- hasDelete: V !== void 0 && !$,
1593
- onCollapse: (X) => {
1594
- v.collapse = X;
1572
+ let b = t(c.name);
1573
+ f.collapse && ae(y.value, m) && (b += " *");
1574
+ const Z = h(_e, {
1575
+ title: b,
1576
+ collapse: f.collapse,
1577
+ hasDelete: _ !== void 0 && !$,
1578
+ onCollapse: (H) => {
1579
+ f.collapse = H;
1595
1580
  },
1596
- onMenu: (X, S) => {
1597
- ue.emit("propTreeMenu", { x: X, y: S, keys: p });
1581
+ onMenu: (H, C) => {
1582
+ ue.emit("propTreeMenu", { x: H, y: C, keys: m });
1598
1583
  },
1599
1584
  onDelete: () => {
1600
- V === void 0 || $ || (y.splice(V, 1), d(p.slice(0, -1), y));
1585
+ _ === void 0 || $ || (p.splice(_, 1), d(m.slice(0, -1), p));
1601
1586
  }
1602
1587
  }), fe = h(
1603
1588
  "div",
@@ -1607,24 +1592,24 @@ const Pn = /* @__PURE__ */ R({
1607
1592
  }
1608
1593
  },
1609
1594
  (() => {
1610
- const X = [];
1611
- return c.children.forEach((S) => {
1612
- if (!Ne(v.children)) {
1595
+ const H = [];
1596
+ return c.children.forEach((C) => {
1597
+ if (!Ne(f.children)) {
1613
1598
  console.assert(!1);
1614
1599
  return;
1615
1600
  }
1616
- v.children[S.key] || (v.children[S.key] = {
1601
+ f.children[C.key] || (f.children[C.key] = {
1617
1602
  collapse: !0,
1618
- children: !S.ui && S.array ? [] : {}
1603
+ children: !C.ui && C.array ? [] : {}
1619
1604
  });
1620
- const A = pe(
1621
- p,
1622
- S,
1623
- (typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
1624
- v.children[S.key]
1605
+ const w = pe(
1606
+ m,
1607
+ C,
1608
+ (typeof p[c.key] != "object" && (p[c.key] = {}, d(m, p[c.key])), p[c.key]),
1609
+ f.children[C.key]
1625
1610
  );
1626
- X.push(A);
1627
- }), X;
1611
+ H.push(w);
1612
+ }), H;
1628
1613
  })()
1629
1614
  );
1630
1615
  return h(
@@ -1635,35 +1620,35 @@ const Pn = /* @__PURE__ */ R({
1635
1620
  }
1636
1621
  },
1637
1622
  (() => {
1638
- const X = [];
1639
- return X.push(E), v.collapse || X.push(fe), X;
1623
+ const H = [];
1624
+ return H.push(Z), f.collapse || H.push(fe), H;
1640
1625
  })()
1641
1626
  );
1642
- }, st = (p, c, y, v, V, $) => {
1627
+ }, st = (m, c, p, f, _, $) => {
1643
1628
  if (!c.ui)
1644
1629
  return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
1645
1630
  if (!c.array)
1646
1631
  return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
1647
- if (!v)
1632
+ if (!f)
1648
1633
  return console.assert(!1), h("div", "renderLeafArray branch must be valid");
1649
- let w;
1650
- V !== void 0 && !$ ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[V])), w = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), w = y[c.key]);
1651
- let E = t(c.name);
1652
- v.collapse && ae(g.value, p) && (E += " *");
1634
+ let b;
1635
+ _ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(m, p[_])), b = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(m, p[c.key])), b = p[c.key]);
1636
+ let Z = t(c.name);
1637
+ f.collapse && ae(y.value, m) && (Z += " *");
1653
1638
  const fe = h(_e, {
1654
- title: E,
1655
- collapse: v.collapse,
1639
+ title: Z,
1640
+ collapse: f.collapse,
1656
1641
  hasCreate: !0,
1657
- onCollapse: (S) => {
1658
- v.collapse = S;
1642
+ onCollapse: (C) => {
1643
+ f.collapse = C;
1659
1644
  },
1660
- onMenu: (S, A) => {
1661
- ue.emit("propTreeMenu", { x: S, y: A, keys: p });
1645
+ onMenu: (C, w) => {
1646
+ ue.emit("propTreeMenu", { x: C, y: w, keys: m });
1662
1647
  },
1663
1648
  onCreate: () => {
1664
- w.push(q(c, !0)), d(p, w);
1649
+ b.push(q(c, !0)), d(m, b);
1665
1650
  }
1666
- }), X = h(
1651
+ }), H = h(
1667
1652
  "div",
1668
1653
  {
1669
1654
  style: {
@@ -1671,12 +1656,12 @@ const Pn = /* @__PURE__ */ R({
1671
1656
  }
1672
1657
  },
1673
1658
  (() => {
1674
- const S = [];
1675
- for (let A = 0; A < w.length; A++) {
1676
- const ye = pe(p, c, w, void 0, A, !1);
1677
- S.push(ye);
1659
+ const C = [];
1660
+ for (let w = 0; w < b.length; w++) {
1661
+ const ye = pe(m, c, b, void 0, w, !1);
1662
+ C.push(ye);
1678
1663
  }
1679
- return S;
1664
+ return C;
1680
1665
  })()
1681
1666
  );
1682
1667
  return h(
@@ -1687,15 +1672,15 @@ const Pn = /* @__PURE__ */ R({
1687
1672
  }
1688
1673
  },
1689
1674
  (() => {
1690
- const S = [];
1691
- return S.push(fe), v.collapse || S.push(X), S;
1675
+ const C = [];
1676
+ return C.push(fe), f.collapse || C.push(H), C;
1692
1677
  })()
1693
1678
  );
1694
- }, it = (p, c, y, v, V) => {
1679
+ }, it = (m, c, p, f, _) => {
1695
1680
  if (!c.ui)
1696
1681
  return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
1697
1682
  let $;
1698
- return c.ui === "dummy" ? $ = N(p, c, y, v, V) : c.ui === "strInput" ? $ = Z(p, c, y, v, V) : c.ui === "numInput" ? $ = xe(p, c, y, v, V) : c.ui === "switch" ? $ = Ee(p, c, y, v, V) : c.ui === "select" ? $ = je(p, c, y, v, V) : c.ui === "colorPicker" ? $ = Ie(p, c, y, v, V) : c.ui === "jsonEditor" ? $ = et(p, c, y, v, V) : c.ui === "multiTypes" ? $ = tt(p, c, y, v, V) : c.ui === "compSelect" ? $ = nt(p, c, y, v, V) : console.assert(!1, "renderLeafScalar not implemented"), $ ? P(p, c, $) : h("div");
1683
+ return c.ui === "dummy" ? $ = N(m, c, p, f, _) : c.ui === "strInput" ? $ = Q(m, c, p, f, _) : c.ui === "numInput" ? $ = xe(m, c, p, f, _) : c.ui === "switch" ? $ = Ze(m, c, p, f, _) : c.ui === "select" ? $ = je(m, c, p, f, _) : c.ui === "colorPicker" ? $ = Ie(m, c, p, f, _) : c.ui === "jsonEditor" ? $ = et(m, c, p, f, _) : c.ui === "multiTypes" ? $ = tt(m, c, p, f, _) : c.ui === "compSelect" ? $ = nt(m, c, p, f, _) : console.assert(!1, "renderLeafScalar not implemented"), $ ? A(m, c, $) : h("div");
1699
1684
  }, rt = () => h(
1700
1685
  "div",
1701
1686
  {
@@ -1705,28 +1690,28 @@ const Pn = /* @__PURE__ */ R({
1705
1690
  }
1706
1691
  },
1707
1692
  (() => {
1708
- const p = [];
1693
+ const m = [];
1709
1694
  if (n.unique && n.config.length > 0 && n.object) {
1710
- u[n.unique] || (u[n.unique] = {});
1711
- const c = u[n.unique];
1712
- n.config.forEach((y) => {
1713
- c[y.key] || (c[y.key] = {
1695
+ r[n.unique] || (r[n.unique] = {});
1696
+ const c = r[n.unique];
1697
+ n.config.forEach((p) => {
1698
+ c[p.key] || (c[p.key] = {
1714
1699
  collapse: !0,
1715
- children: !y.ui && y.array ? [] : {}
1700
+ children: !p.ui && p.array ? [] : {}
1716
1701
  });
1717
- const v = pe([], y, n.object, c[y.key]);
1718
- p.push(v);
1702
+ const f = pe([], p, n.object, c[p.key]);
1703
+ m.push(f);
1719
1704
  });
1720
1705
  }
1721
- return p;
1706
+ return m;
1722
1707
  })()
1723
1708
  );
1724
- return (p, c) => (C(), H(ke, null, [
1725
- D(rt),
1726
- D(Rt, {
1709
+ return (m, c) => (k(), E(ke, null, [
1710
+ M(rt),
1711
+ M(Rt, {
1727
1712
  config: n.config,
1728
1713
  object: n.object,
1729
- "prop-states": g.value
1714
+ "prop-states": y.value
1730
1715
  }, null, 8, ["config", "object", "prop-states"])
1731
1716
  ], 64));
1732
1717
  }
@@ -1735,14 +1720,7 @@ const Pn = /* @__PURE__ */ R({
1735
1720
  }, wn = (o, s, t) => {
1736
1721
  const e = o[s];
1737
1722
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, l) => {
1738
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1739
- l.bind(
1740
- null,
1741
- new Error(
1742
- "Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
1743
- )
1744
- )
1745
- );
1723
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(l.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
1746
1724
  });
1747
1725
  };
1748
1726
  async function Bn(o) {