x-prop-tree 0.7.12 → 0.7.14

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.
Files changed (37) hide show
  1. package/dist/components/propTree/common/base.d.ts +3 -3
  2. package/dist/components/propTree/common/copyPaste.d.ts +2 -2
  3. package/dist/components/propTree/common/index.d.ts +1 -1
  4. package/dist/components/propTree/common/propertyState.d.ts +16 -0
  5. package/dist/components/propTree/common/provideInject.d.ts +6 -6
  6. package/dist/components/propTree/components/common/entry.vue.d.ts +3 -2
  7. package/dist/components/propTree/components/common/menu.vue.d.ts +2 -1
  8. package/dist/components/propTree/components/common/title.vue.d.ts +2 -1
  9. package/dist/components/propTree/components/values/colorPicker.vue.d.ts +4 -2
  10. package/dist/components/propTree/components/values/compSelect/compList/group.vue.d.ts +2 -1
  11. package/dist/components/propTree/components/values/compSelect/compList/index.vue.d.ts +4 -3
  12. package/dist/components/propTree/components/values/compSelect/compList/item.vue.d.ts +2 -1
  13. package/dist/components/propTree/components/values/compSelect/index.vue.d.ts +4 -3
  14. package/dist/components/propTree/components/values/iconSelect/index.vue.d.ts +2 -1
  15. package/dist/components/propTree/components/values/iconSelect/item.vue.d.ts +2 -1
  16. package/dist/components/propTree/components/values/jsonEditor/editor.vue.d.ts +4 -3
  17. package/dist/components/propTree/components/values/jsonEditor/index.vue.d.ts +4 -3
  18. package/dist/components/propTree/components/values/multiTypes.vue.d.ts +4 -2
  19. package/dist/components/propTree/components/values/numInput.vue.d.ts +4 -2
  20. package/dist/components/propTree/components/values/select.vue.d.ts +4 -2
  21. package/dist/components/propTree/components/values/strInput.vue.d.ts +4 -2
  22. package/dist/components/propTree/components/values/switch.vue.d.ts +4 -2
  23. package/dist/components/propTree/composables/common.d.ts +3 -3
  24. package/dist/components/propTree/composables/uiColorPicker.d.ts +2 -2
  25. package/dist/components/propTree/composables/uiCompSelect.d.ts +2 -2
  26. package/dist/components/propTree/composables/uiDummy.d.ts +2 -2
  27. package/dist/components/propTree/composables/uiJsonEditor.d.ts +2 -2
  28. package/dist/components/propTree/composables/uiMultiTypes.d.ts +2 -2
  29. package/dist/components/propTree/composables/uiNumInput.d.ts +2 -2
  30. package/dist/components/propTree/composables/uiProp.d.ts +4 -4
  31. package/dist/components/propTree/composables/uiSelect.d.ts +2 -2
  32. package/dist/components/propTree/composables/uiStrInput.d.ts +2 -2
  33. package/dist/components/propTree/composables/uiSwitch.d.ts +2 -2
  34. package/dist/components/propTree/index.vue.d.ts +4 -3
  35. package/dist/index.js +509 -509
  36. package/package.json +18 -18
  37. package/dist/components/propTree/common/propState.d.ts +0 -16
package/dist/index.js CHANGED
@@ -1,85 +1,85 @@
1
- import { provide as ce, inject as de, defineComponent as R, ref as O, computed as K, resolveComponent as x, createBlock as B, openBlock as C, unref as L, isRef as ve, withCtx as J, createVNode as D, createElementBlock as E, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as W, resolveDirective as le, withDirectives as ee, withModifiers as X, normalizeStyle as I, createElementVNode as F, createCommentVNode as G, renderSlot as ft, h, mergeModels as Y, useModel as z, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as be, watchEffect as Ne, watch as re, useTemplateRef as Je, reactive as mt, onMounted as vt, onBeforeUnmount as pt } from "vue";
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 E, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as W, resolveDirective as le, withDirectives as ee, withModifiers as X, normalizeStyle as I, createElementVNode as F, createCommentVNode as G, renderSlot as ft, h as y, mergeModels as Y, useModel as z, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as be, watchEffect as Ne, watch as ue, useTemplateRef as Je, reactive as mt, onMounted as vt, onBeforeUnmount as pt } from "vue";
2
2
  import { useI18n as te } from "vue-i18n";
3
- import { useViewStack as Se, useColor as ie, eventBus as ue, useSystem as pe, openPromptDlg as yt, openNumberDlg as Re, injectDark as gt, injectLocale as ht } from "x-essential-lib";
4
- import { c as Ee, i as Ue, r as He, v as _t, d as kt } from "./vendor.f0ug048x.js";
5
- import { getPropDefault as q, pkgs as Fe, parsePixelStr as Vt, parsePercentStr as Ct } from "x-runtime-lib";
6
- import { globalState as St } from "x-state-lib";
7
- import { useDisplay as Ut } from "vuetify";
8
- import { XBlockly as xt } from "x-block-lib";
9
- const _e = (l, s) => {
10
- let t = { key: "", name: "", children: l };
3
+ import { useViewStack as xe, useColor as ie, eventBus as re, useSystem as pe, openPromptDlg as gt, openNumberDlg as Re, injectDark as ht, injectLocale as yt } from "x-essential-lib";
4
+ import { c as Ee, i as Se, r as He, v as kt, d as _t } from "./vendor.f0ug048x.js";
5
+ import { getPropertyDefault as q, pkgs as Fe, parsePixelStr as Vt, parsePercentStr as Ct } from "x-runtime-lib";
6
+ import { globalState as xt } from "x-state-lib";
7
+ import { useDisplay as St } from "vuetify";
8
+ import { XBlockly as Ut } from "x-block-lib";
9
+ const ke = (t, s) => {
10
+ let n = { key: "", name: "", children: t };
11
11
  return s.forEach((e) => {
12
12
  if (typeof e != "number") {
13
- if (!t) {
14
- console.assert(!1, `unpkgProp invalid prop keys=${s}`);
13
+ if (!n) {
14
+ console.assert(!1, `unpkgProp invalid property keys=${s}`);
15
15
  return;
16
16
  }
17
- if (t.ui) {
18
- console.assert(!1, `unpkgProp prop ui must be invalid keys=${s}`);
17
+ if (n.ui) {
18
+ console.assert(!1, `unpkgProp property ui must be invalid keys=${s}`);
19
19
  return;
20
20
  }
21
- t = t.children.find((n) => n.key === e);
21
+ n = n.children.find((l) => l.key === e);
22
22
  }
23
- }), t;
24
- }, me = (l, s) => {
25
- let t = l;
23
+ }), n;
24
+ }, me = (t, s) => {
25
+ let n = t;
26
26
  return s.forEach((e) => {
27
- if (!t) {
27
+ if (!n) {
28
28
  console.assert(!1, `unpkgObject object must be valid keys=${s}`);
29
29
  return;
30
30
  }
31
- t = t[e];
32
- }), t;
33
- }, Oe = (l) => !(l instanceof Array), Me = (l) => l instanceof Array, $t = (l, s) => {
34
- const t = (e, n) => {
35
- if (e.ui !== n.ui || e.array !== n.array)
31
+ n = n[e];
32
+ }), n;
33
+ }, Oe = (t) => !(t instanceof Array), Me = (t) => t instanceof Array, $t = (t, s) => {
34
+ const n = (e, l) => {
35
+ if (e.ui !== l.ui || e.array !== l.array)
36
36
  return !1;
37
- if (e.ui || n.ui)
37
+ if (e.ui || l.ui)
38
38
  return !0;
39
- if (e.children.length !== n.children.length)
39
+ if (e.children.length !== l.children.length)
40
40
  return !1;
41
41
  for (let o = 0; o < e.children.length; o++)
42
- if (!t(e.children[o], n.children[o]))
42
+ if (!n(e.children[o], l.children[o]))
43
43
  return !1;
44
44
  return !0;
45
45
  };
46
- return t(l, s);
47
- }, Ae = (l) => !(l instanceof Array), xe = (l) => l instanceof Array, Pt = [
46
+ return n(t, s);
47
+ }, Ae = (t) => !(t instanceof Array), Ue = (t) => t instanceof Array, Pt = [
48
48
  ["basic", "id"],
49
49
  ["basic", "name"]
50
- ], Mt = (l) => Pt.find((s) => Ue(l, s)), $e = (l, s, t, e, n, o, i) => (l = Ee(l), o !== void 0 ? (l.push(o), i && l.push(s.key)) : l.push(s.key), Mt(l) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && xe(e.children) ? bt(
51
- l,
52
- s,
50
+ ], Mt = (t) => Pt.find((s) => Se(t, s)), $e = (t, s, n, e, l, o, i) => (t = Ee(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Mt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Ue(e.children) ? bt(
53
51
  t,
54
- e,
52
+ s,
55
53
  n,
54
+ e,
55
+ l,
56
56
  o,
57
57
  i
58
- ) : At(s, t, e, o, i) : s.array ? wt(
59
- l,
60
- s,
58
+ ) : At(s, n, e, o, i) : s.array ? wt(
61
59
  t,
62
- e,
60
+ s,
63
61
  n,
62
+ e,
63
+ l,
64
64
  o,
65
65
  i
66
66
  ) : Dt(
67
- l,
68
- s,
69
67
  t,
70
- e,
68
+ s,
71
69
  n,
70
+ e,
71
+ l,
72
72
  o,
73
73
  i
74
- )), wt = (l, s, t, e, n, o, i) => {
74
+ )), wt = (t, s, n, e, l, o, i) => {
75
75
  if (s.ui)
76
- return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
76
+ return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
77
77
  if (!s.array)
78
- return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
79
- if (!e.children || !xe(e.children))
80
- return console.assert(!1, "execPropBranchArray state children must be array"), !1;
78
+ return console.assert(!1, "execPropertyBranchArray property array must be valid"), !1;
79
+ if (!e.children || !Ue(e.children))
80
+ return console.assert(!1, "execPropertyBranchArray state children must be array"), !1;
81
81
  let r;
82
- o !== void 0 && !i ? (t[o] instanceof Array || (t[o] = q(s), n?.(l, t[o])), r = t[o]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(l, t[s.key])), r = t[s.key]), e.change = !1;
82
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = q(s), l?.(t, n[o])), r = n[o]) : (n[s.key] instanceof Array || (n[s.key] = q(s), l?.(t, n[s.key])), r = n[s.key]), e.change = !1;
83
83
  for (let u = 0; u < r.length; u++) {
84
84
  e.children.push({
85
85
  change: !1,
@@ -95,125 +95,125 @@ const _e = (l, s) => {
95
95
  change: !1,
96
96
  children: f.array ? [] : {}
97
97
  }, $e(
98
- l,
98
+ t,
99
99
  f,
100
100
  r[u],
101
101
  a.children[f.key],
102
- n,
102
+ l,
103
103
  u,
104
104
  !0
105
105
  ) && (a.change = !0), a.change && (e.change = !0);
106
106
  });
107
107
  }
108
- return e.change || (e.change = !Ue(r, q(s))), e.change;
109
- }, Dt = (l, s, t, e, n, o, i) => {
108
+ return e.change || (e.change = !Se(r, q(s))), e.change;
109
+ }, Dt = (t, s, n, e, l, o, i) => {
110
110
  if (s.ui)
111
- return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
111
+ return console.assert(!1, "execPropertyBranchScalar property ui must be invalid"), !1;
112
112
  if (s.array)
113
- return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
113
+ return console.assert(!1, "execPropertyBranchScalar property array must be invalid"), !1;
114
114
  if (!e.children || !Ae(e.children))
115
- return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
115
+ return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
116
116
  let r;
117
- o !== void 0 && !i ? (t[o] || (t[o] = {}), r = t[o]) : (t[s.key] || (t[s.key] = {}), r = t[s.key]), e.change = !1;
117
+ o !== void 0 && !i ? (n[o] || (n[o] = {}), r = n[o]) : (n[s.key] || (n[s.key] = {}), r = n[s.key]), e.change = !1;
118
118
  for (let u = 0; u < s.children.length; u++) {
119
119
  const a = s.children[u];
120
120
  e.children[a.key] = {
121
121
  change: !1,
122
122
  children: a.array ? [] : {}
123
- }, $e(l, a, r, e.children[a.key], n) && (e.change = !0);
123
+ }, $e(t, a, r, e.children[a.key], l) && (e.change = !0);
124
124
  }
125
125
  return e.change;
126
- }, bt = (l, s, t, e, n, o, i) => {
126
+ }, bt = (t, s, n, e, l, o, i) => {
127
127
  if (!s.ui)
128
- return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
128
+ return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
129
129
  if (!s.array)
130
- return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
131
- if (!e.children || !xe(e.children))
132
- return console.assert(!1, "execPropLeafArray state children must be array"), !1;
130
+ return console.assert(!1, "execPropertyLeafArray property aray must be valid"), !1;
131
+ if (!e.children || !Ue(e.children))
132
+ return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
133
133
  let r;
134
- o !== void 0 && !i ? (t[o] instanceof Array || (t[o] = q(s), n?.(l, t[o])), r = t[o]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n?.(l, t[s.key])), r = t[s.key]), e.change = !1;
134
+ o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = q(s), l?.(t, n[o])), r = n[o]) : (n[s.key] instanceof Array || (n[s.key] = q(s), l?.(t, n[s.key])), r = n[s.key]), e.change = !1;
135
135
  for (let u = 0; u < r.length; u++)
136
136
  e.children[u] = {
137
137
  change: !1,
138
138
  children: {}
139
- }, $e(l, s, r, e.children[u], n, u, !1) && (e.change = !0);
140
- return e.change || (e.change = !Ue(r, q(s))), e.change;
141
- }, At = (l, s, t, e, n) => {
142
- if (!l.ui)
143
- return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
139
+ }, $e(t, s, r, e.children[u], l, u, !1) && (e.change = !0);
140
+ return e.change || (e.change = !Se(r, q(s))), e.change;
141
+ }, At = (t, s, n, e, l) => {
142
+ if (!t.ui)
143
+ return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
144
144
  let o;
145
- return e !== void 0 && !n ? o = s[e] : o = s[l.key], t.change = !Ue(o, q(l, !0)), t.change;
146
- }, qe = (l, s, t, e) => {
147
- if (s.length <= 0 || !t) {
148
- l.value = {};
145
+ return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !Se(o, q(t, !0)), n.change;
146
+ }, qe = (t, s, n, e) => {
147
+ if (s.length <= 0 || !n) {
148
+ t.value = {};
149
149
  return;
150
150
  }
151
- const n = {};
151
+ const l = {};
152
152
  s.forEach((o) => {
153
- n[o.key] = {
153
+ l[o.key] = {
154
154
  change: !1,
155
155
  children: o.array ? [] : {}
156
- }, $e([], o, t, n[o.key], e);
157
- }), l.value = n;
158
- }, ae = (l, s) => {
159
- let t = { change: !1, children: l };
156
+ }, $e([], o, n, l[o.key], e);
157
+ }), t.value = l;
158
+ }, ae = (t, s) => {
159
+ let n = { change: !1, children: t };
160
160
  return s.forEach((e) => {
161
- if (!t)
161
+ if (!n)
162
162
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
163
- if (!t.children)
163
+ if (!n.children)
164
164
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
165
- typeof e == "string" ? Ae(t.children) && (t = t.children[e]) : xe(t.children) && (t = t.children[e]);
166
- }), t?.change ?? !1;
165
+ typeof e == "string" ? Ae(n.children) && (n = n.children[e]) : Ue(n.children) && (n = n.children[e]);
166
+ }), n?.change ?? !1;
167
167
  }, Xe = Symbol(), ze = Symbol(), Ge = Symbol(), Ye = Symbol(), We = Symbol(), Qe = Symbol();
168
- function Tt(l) {
169
- ce(Xe, l);
168
+ function Tt(t) {
169
+ ce(Xe, t);
170
170
  }
171
171
  function Te() {
172
172
  return de(Xe);
173
173
  }
174
- function Lt(l) {
175
- ce(ze, l);
174
+ function Lt(t) {
175
+ ce(ze, t);
176
176
  }
177
177
  function Nt() {
178
178
  return de(ze);
179
179
  }
180
- function Ot(l) {
181
- ce(Ge, l);
180
+ function Ot(t) {
181
+ ce(Ge, t);
182
182
  }
183
183
  function qt() {
184
184
  return de(Ge);
185
185
  }
186
- function Bt(l) {
187
- ce(Ye, l);
186
+ function Bt(t) {
187
+ ce(Ye, t);
188
188
  }
189
189
  function Kt() {
190
190
  return de(Ye);
191
191
  }
192
- function Jt(l) {
193
- ce(We, l);
192
+ function Jt(t) {
193
+ ce(We, t);
194
194
  }
195
195
  function Rt() {
196
196
  return de(We);
197
197
  }
198
- function Et(l) {
199
- ce(Qe, l);
198
+ function Et(t) {
199
+ ce(Qe, t);
200
200
  }
201
201
  function Ze() {
202
202
  return de(Qe);
203
203
  }
204
204
  const Ht = /* @__PURE__ */ R({
205
205
  __name: "menu",
206
- setup(l) {
207
- const { t: s } = te(), t = Nt(), e = qt(), n = Kt(), o = Rt(), i = O(0), r = O(0), u = O([]), a = K(() => [i.value, r.value]), f = (P) => {
208
- const T = () => !(u.value.length <= 0 || !ae(n.value, u.value)), w = () => {
209
- const _ = _e(t.value, u.value);
210
- if (_)
211
- if (_.ui) {
206
+ setup(t) {
207
+ const { t: s } = te(), n = Nt(), e = qt(), l = Kt(), o = Rt(), i = O(0), r = O(0), u = O([]), a = K(() => [i.value, r.value]), f = (P) => {
208
+ const T = () => !(u.value.length <= 0 || !ae(l.value, u.value)), w = () => {
209
+ const k = ke(n.value, u.value);
210
+ if (k)
211
+ if (k.ui) {
212
212
  const M = me(e.value, u.value.slice(0, -1));
213
213
  if (!M)
214
214
  return;
215
- M[u.value[u.value.length - 1]] = q(_), o(u.value, M[u.value[u.value.length - 1]]);
216
- } else if (_.array) {
215
+ M[u.value[u.value.length - 1]] = q(k), o(u.value, M[u.value[u.value.length - 1]]);
216
+ } else if (k.array) {
217
217
  const M = u.value[u.value.length - 1];
218
218
  if (M === void 0) {
219
219
  console.assert(!1, "invalid last key");
@@ -223,21 +223,21 @@ const Ht = /* @__PURE__ */ R({
223
223
  const N = me(e.value, u.value.slice(0, -1));
224
224
  if (!N)
225
225
  return;
226
- N[u.value[u.value.length - 1]] = q(_), o(u.value, N[u.value[u.value.length - 1]]);
226
+ N[u.value[u.value.length - 1]] = q(k), o(u.value, N[u.value[u.value.length - 1]]);
227
227
  } else {
228
228
  const N = me(e.value, u.value);
229
229
  if (!N)
230
230
  return;
231
- _.children.forEach((Q) => {
232
- N[Q.key] = q(_), o([...u.value, Q.key], N[Q.key]);
231
+ k.children.forEach((Q) => {
232
+ N[Q.key] = q(k), o([...u.value, Q.key], N[Q.key]);
233
233
  });
234
234
  }
235
235
  } else {
236
236
  const M = me(e.value, u.value);
237
237
  if (!M)
238
238
  return;
239
- _.children.forEach((N) => {
240
- M[N.key] = q(_), o([...u.value, N.key], M[N.key]);
239
+ k.children.forEach((N) => {
240
+ M[N.key] = q(k), o([...u.value, N.key], M[N.key]);
241
241
  });
242
242
  }
243
243
  };
@@ -247,20 +247,20 @@ const Ht = /* @__PURE__ */ R({
247
247
  });
248
248
  }, d = (P) => {
249
249
  const T = () => {
250
- const w = _e(t.value, u.value), _ = me(e.value, u.value);
251
- localStorage.setItem("propTreeCopy", JSON.stringify({ prop: w, object: _ }));
250
+ const w = ke(n.value, u.value), k = me(e.value, u.value);
251
+ localStorage.setItem("propTreeCopy", JSON.stringify({ property: w, object: k }));
252
252
  };
253
253
  P.push({
254
254
  title: s("x-prop-tree.copy"),
255
255
  func: T
256
256
  });
257
- }, y = (P) => {
257
+ }, g = (P) => {
258
258
  const T = () => {
259
- const _ = localStorage.getItem("propTreeCopy");
260
- if (!_)
259
+ const k = localStorage.getItem("propTreeCopy");
260
+ if (!k)
261
261
  return !1;
262
262
  try {
263
- const { prop: M } = JSON.parse(_), N = _e(t.value, u.value);
263
+ const { property: M } = JSON.parse(k), N = ke(n.value, u.value);
264
264
  return $t(M, N);
265
265
  } catch (M) {
266
266
  console.error(M);
@@ -269,10 +269,10 @@ const Ht = /* @__PURE__ */ R({
269
269
  }, w = () => {
270
270
  if (!T())
271
271
  return;
272
- const _ = localStorage.getItem("propTreeCopy");
273
- if (_)
272
+ const k = localStorage.getItem("propTreeCopy");
273
+ if (k)
274
274
  try {
275
- const { object: M } = JSON.parse(_), N = _e(t.value, u.value);
275
+ const { object: M } = JSON.parse(k), N = ke(n.value, u.value);
276
276
  console.log(M, N);
277
277
  } catch (M) {
278
278
  console.error(M);
@@ -282,17 +282,17 @@ const Ht = /* @__PURE__ */ R({
282
282
  title: s("x-prop-tree.paste"),
283
283
  func: w
284
284
  });
285
- }, g = K(() => {
285
+ }, h = K(() => {
286
286
  const P = [];
287
- return f(P), d(P), y(P), P;
288
- }), k = (P) => {
287
+ return f(P), d(P), g(P), P;
288
+ }), V = (P) => {
289
289
  i.value = P.x, r.value = P.y, u.value = P.keys;
290
- }, { open: S } = Se("propTreeMenu", k);
290
+ }, { open: x } = xe("propTreeMenu", V);
291
291
  return (P, T) => {
292
- const w = x("v-list-item-title"), _ = x("v-list-item"), M = x("v-list"), N = x("v-menu");
292
+ const w = U("v-list-item-title"), k = U("v-list-item"), M = U("v-list"), N = U("v-menu");
293
293
  return C(), B(N, {
294
- modelValue: L(S),
295
- "onUpdate:modelValue": T[0] || (T[0] = (Q) => ve(S) ? S.value = Q : null),
294
+ modelValue: L(x),
295
+ "onUpdate:modelValue": T[0] || (T[0] = (Q) => ve(x) ? x.value = Q : null),
296
296
  "location-strategy": "connected",
297
297
  scrim: "transparent",
298
298
  target: a.value
@@ -300,7 +300,7 @@ const Ht = /* @__PURE__ */ R({
300
300
  default: J(() => [
301
301
  D(M, null, {
302
302
  default: J(() => [
303
- (C(!0), E(Ve, null, Be(g.value, (Q, Pe) => (C(), B(_, {
303
+ (C(!0), E(Ve, null, Be(h.value, (Q, Pe) => (C(), B(k, {
304
304
  key: Pe,
305
305
  link: "",
306
306
  onClick: Q.func
@@ -323,7 +323,7 @@ const Ht = /* @__PURE__ */ R({
323
323
  }, 8, ["modelValue", "target"]);
324
324
  };
325
325
  }
326
- }), Ft = { style: { pointerEvents: "none" } }, ke = /* @__PURE__ */ R({
326
+ }), Ft = { style: { pointerEvents: "none" } }, _e = /* @__PURE__ */ R({
327
327
  __name: "title",
328
328
  props: {
329
329
  title: {},
@@ -333,51 +333,51 @@ const Ht = /* @__PURE__ */ R({
333
333
  index: { default: 0 }
334
334
  },
335
335
  emits: ["collapse", "menu", "create", "delete"],
336
- setup(l, { emit: s }) {
337
- const { backgroundColor2: t, highlightColor: e } = ie(), n = s, o = O(!1), i = K(() => ({
338
- background: o.value ? e.value : t.value,
336
+ setup(t, { emit: s }) {
337
+ const { backgroundColor2: n, highlightColor: e } = ie(), l = s, o = O(!1), i = K(() => ({
338
+ background: o.value ? e.value : n.value,
339
339
  height: "36px",
340
340
  marginBottom: "1px",
341
341
  userSelect: "none"
342
342
  })), r = () => {
343
- n("collapse", !l.collapse);
343
+ l("collapse", !t.collapse);
344
344
  }, u = (a) => {
345
- n("menu", a.clientX, a.clientY);
345
+ l("menu", a.clientX, a.clientY);
346
346
  };
347
347
  return (a, f) => {
348
- const d = x("v-icon"), y = x("v-spacer"), g = x("v-btn"), k = le("ripple");
348
+ const d = U("v-icon"), g = U("v-spacer"), h = U("v-btn"), V = le("ripple");
349
349
  return ee((C(), E("div", {
350
350
  class: "d-flex align-center cursor-pointer",
351
351
  style: I(i.value),
352
352
  onClick: r,
353
353
  onContextmenu: X(u, ["self", "prevent"]),
354
- onMouseout: f[2] || (f[2] = (S) => o.value = !1),
355
- onMouseover: f[3] || (f[3] = (S) => o.value = !0)
354
+ onMouseout: f[2] || (f[2] = (x) => o.value = !1),
355
+ onMouseover: f[3] || (f[3] = (x) => o.value = !0)
356
356
  }, [
357
357
  D(d, {
358
358
  class: "mr-1",
359
- icon: a.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
359
+ icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
360
360
  }, null, 8, ["icon"]),
361
- F("span", Ft, W(a.title), 1),
362
- D(y),
363
- a.hasCreate ? (C(), B(g, {
361
+ F("span", Ft, W(t.title), 1),
362
+ D(g),
363
+ t.hasCreate ? (C(), B(h, {
364
364
  key: 0,
365
365
  class: "mx-3",
366
366
  density: "compact",
367
367
  icon: "mdi-plus",
368
368
  variant: "text",
369
- onClick: f[0] || (f[0] = X((S) => n("create"), ["stop"]))
369
+ onClick: f[0] || (f[0] = X((x) => l("create"), ["stop"]))
370
370
  })) : G("", !0),
371
- a.hasDelete ? (C(), B(g, {
371
+ t.hasDelete ? (C(), B(h, {
372
372
  key: 1,
373
373
  class: "mx-3",
374
374
  density: "compact",
375
375
  icon: "mdi-minus",
376
376
  variant: "text",
377
- onClick: f[1] || (f[1] = X((S) => n("delete", a.index), ["stop"]))
377
+ onClick: f[1] || (f[1] = X((x) => l("delete", t.index), ["stop"]))
378
378
  })) : G("", !0)
379
379
  ], 36)), [
380
- [k]
380
+ [V]
381
381
  ]);
382
382
  };
383
383
  }
@@ -387,15 +387,15 @@ const Ht = /* @__PURE__ */ R({
387
387
  minHeight: {}
388
388
  },
389
389
  emits: ["menu"],
390
- setup(l, { emit: s }) {
391
- const { backgroundColor2: t, highlightColor: e } = ie(), n = s, o = O(!1), i = K(() => ({
392
- background: o.value ? e.value : t.value,
393
- minHeight: l.minHeight,
390
+ setup(t, { emit: s }) {
391
+ const { backgroundColor2: n, highlightColor: e } = ie(), l = s, o = O(!1), i = K(() => ({
392
+ background: o.value ? e.value : n.value,
393
+ minHeight: t.minHeight,
394
394
  paddingRight: "4px",
395
395
  marginBottom: "1px",
396
396
  userSelect: "none"
397
397
  })), r = (u) => {
398
- n("menu", u.clientX, u.clientY);
398
+ l("menu", u.clientX, u.clientY);
399
399
  };
400
400
  return (u, a) => {
401
401
  const f = le("ripple");
@@ -413,66 +413,66 @@ const Ht = /* @__PURE__ */ R({
413
413
  };
414
414
  }
415
415
  });
416
- function zt(l, s, t) {
416
+ function zt(t, s, n) {
417
417
  const { t: e } = te();
418
418
  return { renderProp: (o, i, r) => {
419
419
  const u = o[o.length - 1];
420
420
  let f = typeof u == "number" ? `[${u + 1}]` : e(i.name);
421
- return ae(l.value, o) && (f += " *"), h(
421
+ return ae(t.value, o) && (f += " *"), y(
422
422
  Xt,
423
423
  {
424
424
  minHeight: s.value,
425
- onMenu: (d, y) => {
426
- ue.emit("propTreeMenu", { x: d, y, keys: o });
425
+ onMenu: (d, g) => {
426
+ re.emit("propTreeMenu", { x: d, y: g, keys: o });
427
427
  }
428
428
  },
429
429
  () => [
430
- h("span", {
430
+ y("span", {
431
431
  style: { marginLeft: "4px", pointerEvents: "none" },
432
432
  innerHTML: f
433
433
  }),
434
- h("div", { style: { width: t.value } }, r)
434
+ y("div", { style: { width: n.value } }, r)
435
435
  ]
436
436
  );
437
437
  } };
438
438
  }
439
- const ne = (l, s, t, e, n, o) => {
440
- if (n !== void 0)
439
+ const ne = (t, s, n, e, l, o) => {
440
+ if (l !== void 0)
441
441
  if (o) {
442
- if (t[s.key] === void 0) {
442
+ if (n[s.key] === void 0) {
443
443
  const i = q(s);
444
- i !== void 0 && (t[s.key] = i, e(l, t[s.key]));
444
+ i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
445
445
  }
446
- return t[s.key];
446
+ return n[s.key];
447
447
  } else {
448
- if (t[n] === void 0) {
448
+ if (n[l] === void 0) {
449
449
  const i = q(s, !0);
450
- i !== void 0 && (t[n] = i, e(l, t[n]));
450
+ i !== void 0 && (n[l] = i, e(t, n[l]));
451
451
  }
452
- return t[n];
452
+ return n[l];
453
453
  }
454
454
  else {
455
- if (t[s.key] === void 0) {
455
+ if (n[s.key] === void 0) {
456
456
  const i = q(s);
457
- i !== void 0 && (t[s.key] = i, e(l, t[s.key]));
457
+ i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
458
458
  }
459
- return t[s.key];
459
+ return n[s.key];
460
460
  }
461
- }, oe = (l, s, t, e, n, o, i) => {
461
+ }, oe = (t, s, n, e, l, o, i) => {
462
462
  if (o !== void 0)
463
- i ? e !== t[s.key] && (t[s.key] = e, n(l, t[s.key])) : e !== t[o] && (t[o] = e, n(l, t[o]));
463
+ i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
464
464
  else {
465
465
  let r = e;
466
- (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (r = void 0)), r !== t[s.key] && (t[s.key] = r, n(l, t[s.key]));
466
+ (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (r = void 0)), r !== n[s.key] && (n[s.key] = r, l(t, n[s.key]));
467
467
  }
468
468
  };
469
- function Gt(l) {
470
- return { renderUiDummy: (t, e, n, o, i) => {
469
+ function Gt(t) {
470
+ return { renderUiDummy: (n, e, l, o, i) => {
471
471
  if (e.ui !== "dummy") {
472
- console.assert(!1, "renderUiDummy prop ui must be dummy");
472
+ console.assert(!1, "renderUiDummy property ui must be dummy");
473
473
  return;
474
474
  }
475
- ne(t, e, n, l, o, i);
475
+ ne(n, e, l, t, o, i);
476
476
  } };
477
477
  }
478
478
  const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PURE__ */ R({
@@ -485,25 +485,25 @@ const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PU
485
485
  modelModifiers: {}
486
486
  }),
487
487
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
488
- setup(l, { emit: s }) {
489
- const { isMobile: t } = pe(), e = z(l, "modelValue"), n = s, o = async (i) => {
490
- if (!i || l.readonly || !t())
488
+ setup(t, { emit: s }) {
489
+ const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
490
+ if (!i || t.readonly || !n())
491
491
  return;
492
- const r = await yt({
492
+ const r = await gt({
493
493
  title: "",
494
494
  value: e.value
495
495
  });
496
496
  r !== void 0 && (e.value = r);
497
497
  };
498
498
  return (i, r) => {
499
- const u = x("v-text-field"), a = x("v-btn"), f = le("ripple");
499
+ const u = U("v-text-field"), a = U("v-btn"), f = le("ripple");
500
500
  return C(), E("div", Yt, [
501
501
  ee(D(u, {
502
502
  modelValue: e.value,
503
503
  "onUpdate:modelValue": r[0] || (r[0] = (d) => e.value = d),
504
504
  density: "compact",
505
505
  "hide-details": "",
506
- readonly: i.readonly,
506
+ readonly: t.readonly,
507
507
  "single-line": "",
508
508
  "onUpdate:focused": o
509
509
  }, null, 8, ["modelValue", "readonly"]), [
@@ -514,42 +514,42 @@ const Yt = { class: "d-flex justify-space-between align-center" }, Wt = /* @__PU
514
514
  { stop: !0 }
515
515
  ]
516
516
  ]),
517
- i.hasDelete ? (C(), B(a, {
517
+ t.hasDelete ? (C(), B(a, {
518
518
  key: 0,
519
519
  class: "mx-2",
520
520
  density: "compact",
521
521
  icon: "mdi-minus",
522
522
  variant: "text",
523
- onClick: r[1] || (r[1] = X((d) => n("delete"), ["stop"]))
523
+ onClick: r[1] || (r[1] = X((d) => l("delete"), ["stop"]))
524
524
  })) : G("", !0)
525
525
  ]);
526
526
  };
527
527
  }
528
528
  });
529
- function Qt(l) {
530
- return { renderUiStrInput: (t, e, n, o, i) => e.ui !== "strInput" ? (console.assert(!1), h("div", "renderUiStrInput prop ui must be strInput")) : h(Wt, {
529
+ function Qt(t) {
530
+ return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), y("div", "renderUiStrInput property ui must be strInput")) : y(Wt, {
531
531
  modelValue: e.static ? e.value : ne(
532
- t,
533
- e,
534
532
  n,
533
+ e,
535
534
  l,
535
+ t,
536
536
  o,
537
537
  i
538
538
  ),
539
539
  "onUpdate:modelValue": (r) => {
540
540
  e.static || oe(
541
- t,
542
- e,
543
541
  n,
544
- r,
542
+ e,
545
543
  l,
544
+ r,
545
+ t,
546
546
  o,
547
547
  i
548
548
  );
549
549
  },
550
550
  hasDelete: o !== void 0 && !i,
551
551
  onDelete: () => {
552
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, -1), n));
552
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
553
553
  },
554
554
  readonly: e.static || e.readonly
555
555
  }) };
@@ -569,22 +569,22 @@ const Zt = { class: "d-flex justify-space-between align-center" }, jt = /* @__PU
569
569
  modelModifiers: {}
570
570
  }),
571
571
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
572
- setup(l, { emit: s }) {
573
- const { isMobile: t } = pe(), e = z(l, "modelValue"), n = s, o = async (i) => {
574
- if (!i || l.readonly || !t())
572
+ setup(t, { emit: s }) {
573
+ const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
574
+ if (!i || t.readonly || !n())
575
575
  return;
576
576
  const r = await Re({
577
577
  title: "",
578
578
  value: e.value,
579
- precision: l.precision,
580
- min: l.min,
581
- max: l.max,
582
- step: l.step
579
+ precision: t.precision,
580
+ min: t.min,
581
+ max: t.max,
582
+ step: t.step
583
583
  });
584
584
  r !== void 0 && (e.value = r);
585
585
  };
586
586
  return (i, r) => {
587
- const u = x("v-number-input"), a = x("v-btn"), f = le("ripple");
587
+ const u = U("v-number-input"), a = U("v-btn"), f = le("ripple");
588
588
  return C(), E("div", Zt, [
589
589
  ee(D(u, {
590
590
  modelValue: e.value,
@@ -592,12 +592,12 @@ const Zt = { class: "d-flex justify-space-between align-center" }, jt = /* @__PU
592
592
  "control-variant": "stacked",
593
593
  density: "compact",
594
594
  "hide-details": "",
595
- max: i.max,
596
- min: i.min,
597
- precision: i.precision,
598
- readonly: i.readonly,
595
+ max: t.max,
596
+ min: t.min,
597
+ precision: t.precision,
598
+ readonly: t.readonly,
599
599
  "single-line": "",
600
- step: i.step,
600
+ step: t.step,
601
601
  "onUpdate:focused": o
602
602
  }, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
603
603
  [
@@ -607,42 +607,42 @@ const Zt = { class: "d-flex justify-space-between align-center" }, jt = /* @__PU
607
607
  { stop: !0 }
608
608
  ]
609
609
  ]),
610
- i.hasDelete ? (C(), B(a, {
610
+ t.hasDelete ? (C(), B(a, {
611
611
  key: 0,
612
612
  class: "mx-2",
613
613
  density: "compact",
614
614
  icon: "mdi-minus",
615
615
  variant: "text",
616
- onClick: r[1] || (r[1] = X((d) => n("delete"), ["stop"]))
616
+ onClick: r[1] || (r[1] = X((d) => l("delete"), ["stop"]))
617
617
  })) : G("", !0)
618
618
  ]);
619
619
  };
620
620
  }
621
621
  });
622
- function It(l) {
623
- return { renderUiNumInput: (t, e, n, o, i) => e.ui !== "numInput" ? (console.assert(!1), h("div", "renderUiNumInput prop ui must be numInput")) : h(jt, {
622
+ function It(t) {
623
+ return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), y("div", "renderUiNumInput property ui must be numInput")) : y(jt, {
624
624
  modelValue: ne(
625
- t,
626
- e,
627
625
  n,
626
+ e,
628
627
  l,
628
+ t,
629
629
  o,
630
630
  i
631
631
  ),
632
632
  "onUpdate:modelValue": (r) => {
633
633
  oe(
634
- t,
635
- e,
636
634
  n,
637
- r,
635
+ e,
638
636
  l,
637
+ r,
638
+ t,
639
639
  o,
640
640
  i
641
641
  );
642
642
  },
643
643
  hasDelete: o !== void 0 && !i,
644
644
  onDelete: () => {
645
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, -1), n));
645
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
646
646
  },
647
647
  precision: e.precision,
648
648
  min: e.min,
@@ -661,21 +661,21 @@ const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PU
661
661
  modelModifiers: {}
662
662
  }),
663
663
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
664
- setup(l, { emit: s }) {
665
- const t = z(l, "modelValue"), e = s;
666
- return (n, o) => {
667
- const i = x("v-switch"), r = x("v-btn");
664
+ setup(t, { emit: s }) {
665
+ const n = z(t, "modelValue"), e = s;
666
+ return (l, o) => {
667
+ const i = U("v-switch"), r = U("v-btn");
668
668
  return C(), E("div", en, [
669
669
  D(i, {
670
- modelValue: t.value,
671
- "onUpdate:modelValue": o[0] || (o[0] = (u) => t.value = u),
670
+ modelValue: n.value,
671
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
672
672
  class: "ml-1",
673
673
  color: "primary",
674
674
  density: "compact",
675
675
  "hide-details": "",
676
- readonly: n.readonly
676
+ readonly: t.readonly
677
677
  }, null, 8, ["modelValue", "readonly"]),
678
- n.hasDelete ? (C(), B(r, {
678
+ t.hasDelete ? (C(), B(r, {
679
679
  key: 0,
680
680
  class: "mx-2",
681
681
  density: "compact",
@@ -687,30 +687,30 @@ const en = { class: "d-flex justify-space-between align-center" }, tn = /* @__PU
687
687
  };
688
688
  }
689
689
  });
690
- function nn(l) {
691
- return { renderUiSwitch: (t, e, n, o, i) => e.ui !== "switch" ? (console.assert(!1), h("div", "renderUiSwitch prop ui must be switch")) : h(tn, {
690
+ function nn(t) {
691
+ return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), y("div", "renderUiSwitch property ui must be switch")) : y(tn, {
692
692
  modelValue: ne(
693
- t,
694
- e,
695
693
  n,
694
+ e,
696
695
  l,
696
+ t,
697
697
  o,
698
698
  i
699
699
  ) ?? !1,
700
700
  "onUpdate:modelValue": (r) => {
701
701
  oe(
702
- t,
703
- e,
704
702
  n,
705
- r,
703
+ e,
706
704
  l,
705
+ r,
706
+ t,
707
707
  o,
708
708
  i
709
709
  );
710
710
  },
711
711
  hasDelete: o !== void 0 && !i,
712
712
  onDelete: () => {
713
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, 1), n));
713
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, 1), l));
714
714
  },
715
715
  readonly: e.readonly
716
716
  }) };
@@ -726,23 +726,23 @@ const ln = { class: "d-flex justify-space-between align-center" }, on = /* @__PU
726
726
  modelModifiers: {}
727
727
  }),
728
728
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
729
- setup(l, { emit: s }) {
730
- const { t } = te(), e = z(l, "modelValue"), n = s, o = Te(), i = K(() => {
729
+ setup(t, { emit: s }) {
730
+ const { t: n } = te(), e = z(t, "modelValue"), l = s, o = Te(), i = K(() => {
731
731
  const r = [];
732
- return Fe[o.value]?.items[l.items].forEach(({ title: u, value: a }) => {
733
- r.push({ title: t(u), value: a });
732
+ return Fe[o.value]?.items[t.items].forEach(({ title: u, value: a }) => {
733
+ r.push({ title: n(u), value: a });
734
734
  }), r;
735
735
  });
736
736
  return (r, u) => {
737
- const a = x("v-select"), f = x("v-btn"), d = le("ripple");
737
+ const a = U("v-select"), f = U("v-btn"), d = le("ripple");
738
738
  return C(), E("div", ln, [
739
739
  ee(D(a, {
740
740
  modelValue: e.value,
741
- "onUpdate:modelValue": u[0] || (u[0] = (y) => e.value = y),
741
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => e.value = g),
742
742
  density: "compact",
743
743
  "hide-details": "",
744
744
  items: i.value,
745
- readonly: r.readonly,
745
+ readonly: t.readonly,
746
746
  "single-line": ""
747
747
  }, null, 8, ["modelValue", "items", "readonly"]), [
748
748
  [
@@ -752,48 +752,48 @@ const ln = { class: "d-flex justify-space-between align-center" }, on = /* @__PU
752
752
  { stop: !0 }
753
753
  ]
754
754
  ]),
755
- r.hasDelete ? (C(), B(f, {
755
+ t.hasDelete ? (C(), B(f, {
756
756
  key: 0,
757
757
  class: "mx-2",
758
758
  density: "compact",
759
759
  icon: "mdi-minus",
760
760
  variant: "text",
761
- onClick: u[1] || (u[1] = X((y) => n("delete"), ["stop"]))
761
+ onClick: u[1] || (u[1] = X((g) => l("delete"), ["stop"]))
762
762
  })) : G("", !0)
763
763
  ]);
764
764
  };
765
765
  }
766
766
  });
767
- function sn(l) {
768
- return { renderUiSelect: (t, e, n, o, i) => e.ui !== "select" ? (console.assert(!1), h("div", "renderUiSelect prop ui must be select")) : h(on, {
767
+ function sn(t) {
768
+ return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), y("div", "renderUiSelect property ui must be select")) : y(on, {
769
769
  modelValue: ne(
770
- t,
771
- e,
772
770
  n,
771
+ e,
773
772
  l,
773
+ t,
774
774
  o,
775
775
  i
776
776
  ) ?? "",
777
777
  "onUpdate:modelValue": (r) => {
778
778
  oe(
779
- t,
780
- e,
781
779
  n,
782
- r,
780
+ e,
783
781
  l,
782
+ r,
783
+ t,
784
784
  o,
785
785
  i
786
786
  );
787
787
  },
788
788
  hasDelete: o !== void 0 && !i,
789
789
  onDelete: () => {
790
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, -1), n));
790
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
791
791
  },
792
792
  items: e.items,
793
793
  readonly: e.readonly
794
794
  }) };
795
795
  }
796
- const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-grey ml-1" }, an = /* @__PURE__ */ R({
796
+ const un = { class: "text-subtitle-2 ml-1" }, rn = { class: "text-caption text-grey ml-1" }, an = /* @__PURE__ */ R({
797
797
  __name: "group",
798
798
  props: {
799
799
  id: {},
@@ -802,28 +802,28 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
802
802
  count: {}
803
803
  },
804
804
  emits: ["x-click"],
805
- setup(l, { emit: s }) {
806
- const { backgroundColor2: t, highlightColor: e } = ie(), n = l, o = s, i = O(!1), r = K(() => ({
807
- background: i.value ? e.value : t.value,
805
+ setup(t, { emit: s }) {
806
+ const { backgroundColor2: n, highlightColor: e } = ie(), l = t, o = s, i = O(!1), r = K(() => ({
807
+ background: i.value ? e.value : n.value,
808
808
  height: "30px",
809
809
  marginBottom: "1px",
810
810
  userSelect: "none"
811
811
  }));
812
812
  return (u, a) => {
813
- const f = x("v-icon"), d = le("ripple");
813
+ const f = U("v-icon"), d = le("ripple");
814
814
  return ee((C(), E("div", {
815
815
  class: "d-flex align-center cursor-pointer",
816
816
  style: I(r.value),
817
- onClick: a[0] || (a[0] = (y) => o("x-click", n.id)),
818
- onMouseout: a[1] || (a[1] = (y) => i.value = !1),
819
- onMouseover: a[2] || (a[2] = (y) => i.value = !0)
817
+ onClick: a[0] || (a[0] = (g) => o("x-click", l.id)),
818
+ onMouseout: a[1] || (a[1] = (g) => i.value = !1),
819
+ onMouseover: a[2] || (a[2] = (g) => i.value = !0)
820
820
  }, [
821
821
  D(f, {
822
- icon: n.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
822
+ icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
823
823
  size: "small"
824
824
  }, null, 8, ["icon"]),
825
- F("span", rn, W(n.title), 1),
826
- F("span", un, W(n.count), 1)
825
+ F("span", un, W(l.title), 1),
826
+ F("span", rn, W(l.count), 1)
827
827
  ], 36)), [
828
828
  [d]
829
829
  ]);
@@ -836,9 +836,9 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
836
836
  title: {}
837
837
  },
838
838
  emits: ["x-click"],
839
- setup(l, { emit: s }) {
840
- const { backgroundColor2: t, highlightColor: e } = ie(), n = l, o = s, i = O(!1), r = K(() => ({
841
- background: i.value ? e.value : t.value,
839
+ setup(t, { emit: s }) {
840
+ const { backgroundColor2: n, highlightColor: e } = ie(), l = t, o = s, i = O(!1), r = K(() => ({
841
+ background: i.value ? e.value : n.value,
842
842
  height: "48px",
843
843
  marginBottom: "1px",
844
844
  userSelect: "none"
@@ -848,11 +848,11 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
848
848
  return ee((C(), E("div", {
849
849
  class: "d-flex align-center cursor-pointer",
850
850
  style: I(r.value),
851
- onClick: a[0] || (a[0] = (d) => o("x-click", n.id)),
851
+ onClick: a[0] || (a[0] = (d) => o("x-click", l.id)),
852
852
  onMouseout: a[1] || (a[1] = (d) => i.value = !1),
853
853
  onMouseover: a[2] || (a[2] = (d) => i.value = !0)
854
854
  }, [
855
- F("span", cn, W(n.title), 1)
855
+ F("span", cn, W(l.title), 1)
856
856
  ], 36)), [
857
857
  [f]
858
858
  ]);
@@ -870,15 +870,15 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
870
870
  openModifiers: {}
871
871
  },
872
872
  emits: ["update:modelValue", "update:open"],
873
- setup(l) {
874
- const { t: s } = te(), t = z(l, "modelValue"), e = z(l, "open"), n = Ze(), o = (r) => {
875
- const u = He(n, r);
876
- u && _t(n, r, !u.collapse);
873
+ setup(t) {
874
+ const { t: s } = te(), n = z(t, "modelValue"), e = z(t, "open"), l = Ze(), o = (r) => {
875
+ const u = He(l, r);
876
+ u && kt(l, r, !u.collapse);
877
877
  }, i = (r) => {
878
- t.value = r, e.value = !1, ue.emit("refreshDepends");
878
+ n.value = r, e.value = !1, re.emit("refreshDepends");
879
879
  };
880
- return (r, u) => L(n).length > 0 ? (C(), E("div", fn, [
881
- (C(!0), E(Ve, null, Be(L(n), (a) => (C(), E(Ve, {
880
+ return (r, u) => L(l).length > 0 ? (C(), E("div", fn, [
881
+ (C(!0), E(Ve, null, Be(L(l), (a) => (C(), E(Ve, {
882
882
  key: a.id
883
883
  }, [
884
884
  a.type === 0 ? (C(), B(an, {
@@ -898,50 +898,50 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
898
898
  ], 64))), 128))
899
899
  ])) : (C(), E("div", mn, W(L(s)("x-prop-tree.noComp")), 1));
900
900
  }
901
- }), pn = { class: "text-subtitle-1 ml-3" }, yn = /* @__PURE__ */ R({
901
+ }), pn = { class: "text-subtitle-1 ml-3" }, gn = /* @__PURE__ */ R({
902
902
  __name: "index",
903
903
  props: {
904
904
  modelValue: {},
905
905
  modelModifiers: {}
906
906
  },
907
907
  emits: ["update:modelValue"],
908
- setup(l) {
909
- const { t: s } = te(), t = Ut(), { sysBarAvail: e } = pe(), { backgroundColor1: n } = ie(), o = z(l, "modelValue"), i = Ze(), r = K(() => {
910
- let y = "100%";
911
- return t.mdAndUp.value && (y = "400px"), {
912
- background: n.value,
913
- width: y,
908
+ setup(t) {
909
+ const { t: s } = te(), n = St(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = ie(), o = z(t, "modelValue"), i = Ze(), r = K(() => {
910
+ let g = "100%";
911
+ return n.mdAndUp.value && (g = "400px"), {
912
+ background: l.value,
913
+ width: g,
914
914
  height: "100%"
915
915
  };
916
916
  }), u = K(() => {
917
- let y = 48;
918
- return e.value && (y += 24), {
917
+ let g = 48;
918
+ return e.value && (g += 24), {
919
919
  position: "relative",
920
- height: `calc(100% - ${y}px)`
920
+ height: `calc(100% - ${g}px)`
921
921
  };
922
922
  }), a = K(() => ({
923
923
  height: "60px"
924
924
  })), f = K(() => {
925
925
  if (!o.value)
926
926
  return s("x-runtime-lib.notSet");
927
- const y = He(i, o.value);
928
- return y ? y.name : s("x-runtime-lib.compNotAvail");
929
- }), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
927
+ const g = He(i, o.value);
928
+ return g ? g.name : s("x-runtime-lib.compNotAvail");
929
+ }), { open: d } = xe(`propTreeCompSelectDlg${we()}`);
930
930
  return De(() => {
931
931
  d.value = !1;
932
- }), (y, g) => {
933
- const k = x("v-btn"), S = x("v-sheet"), P = x("v-icon"), T = x("v-dialog");
932
+ }), (g, h) => {
933
+ const V = U("v-btn"), x = U("v-sheet"), P = U("v-icon"), T = U("v-dialog");
934
934
  return C(), B(T, {
935
935
  modelValue: L(d),
936
- "onUpdate:modelValue": g[5] || (g[5] = (w) => ve(d) ? d.value = w : null),
936
+ "onUpdate:modelValue": h[5] || (h[5] = (w) => ve(d) ? d.value = w : null),
937
937
  fullscreen: "",
938
938
  "no-click-animation": "",
939
939
  persistent: "",
940
940
  transition: "scroll-x-reverse-transition",
941
- onKeydown: g[6] || (g[6] = Ke(X((w) => d.value = !1, ["stop", "prevent"]), ["esc"]))
941
+ onKeydown: h[6] || (h[6] = Ke(X((w) => d.value = !1, ["stop", "prevent"]), ["esc"]))
942
942
  }, {
943
943
  activator: J(({ props: w }) => [
944
- D(k, be(w, {
944
+ D(V, be(w, {
945
945
  block: "",
946
946
  density: "comfortable"
947
947
  }), {
@@ -954,19 +954,19 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
954
954
  default: J(() => [
955
955
  F("div", {
956
956
  class: "w-100 h-100 d-flex flex-row-reverse",
957
- onClick: g[3] || (g[3] = X((w) => d.value = !1, ["self"])),
958
- onContextmenu: g[4] || (g[4] = X((w) => d.value = !1, ["self", "prevent"]))
957
+ onClick: h[3] || (h[3] = X((w) => d.value = !1, ["self"])),
958
+ onContextmenu: h[4] || (h[4] = X((w) => d.value = !1, ["self", "prevent"]))
959
959
  }, [
960
960
  F("div", {
961
961
  class: "elevation-2",
962
962
  style: I(r.value)
963
963
  }, [
964
- L(e) ? (C(), B(S, {
964
+ L(e) ? (C(), B(x, {
965
965
  key: 0,
966
966
  color: "transparent",
967
967
  height: 24
968
968
  })) : G("", !0),
969
- D(S, {
969
+ D(x, {
970
970
  class: "d-flex align-center px-3",
971
971
  color: "transparent",
972
972
  height: 48
@@ -974,7 +974,7 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
974
974
  default: J(() => [
975
975
  D(P, {
976
976
  icon: "mdi-close",
977
- onClick: g[0] || (g[0] = (w) => d.value = !1)
977
+ onClick: h[0] || (h[0] = (w) => d.value = !1)
978
978
  }),
979
979
  F("span", pn, W(L(s)("x-prop-tree.dlg.compSelect.title")), 1)
980
980
  ]),
@@ -986,9 +986,9 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
986
986
  }, [
987
987
  D(vn, {
988
988
  modelValue: o.value,
989
- "onUpdate:modelValue": g[1] || (g[1] = (w) => o.value = w),
989
+ "onUpdate:modelValue": h[1] || (h[1] = (w) => o.value = w),
990
990
  open: L(d),
991
- "onUpdate:open": g[2] || (g[2] = (w) => ve(d) ? d.value = w : null)
991
+ "onUpdate:open": h[2] || (h[2] = (w) => ve(d) ? d.value = w : null)
992
992
  }, null, 8, ["modelValue", "open"]),
993
993
  F("div", {
994
994
  style: I(a.value)
@@ -1002,30 +1002,30 @@ const rn = { class: "text-subtitle-2 ml-1" }, un = { class: "text-caption text-g
1002
1002
  };
1003
1003
  }
1004
1004
  });
1005
- function gn(l) {
1006
- return { renderUiCompSelect: (t, e, n, o, i) => e.ui !== "compSelect" ? (console.assert(!1), h("div", "renderUiCompSelect prop ui must be compSelect")) : h(yn, {
1005
+ function hn(t) {
1006
+ return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), y("div", "renderUiCompSelect property ui must be compSelect")) : y(gn, {
1007
1007
  modelValue: ne(
1008
- t,
1009
- e,
1010
1008
  n,
1009
+ e,
1011
1010
  l,
1011
+ t,
1012
1012
  o,
1013
1013
  i
1014
1014
  ),
1015
1015
  "onUpdate:modelValue": (r) => {
1016
1016
  oe(
1017
- t,
1018
- e,
1019
1017
  n,
1020
- r,
1018
+ e,
1021
1019
  l,
1020
+ r,
1021
+ t,
1022
1022
  o,
1023
1023
  i
1024
1024
  );
1025
1025
  }
1026
1026
  }) };
1027
1027
  }
1028
- const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PURE__ */ R({
1028
+ const yn = { class: "d-flex justify-space-between align-center" }, kn = /* @__PURE__ */ R({
1029
1029
  __name: "colorPicker",
1030
1030
  props: /* @__PURE__ */ Y({
1031
1031
  hasDelete: { type: Boolean, default: !1 },
@@ -1035,55 +1035,55 @@ const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PU
1035
1035
  modelModifiers: {}
1036
1036
  }),
1037
1037
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
1038
- setup(l, { emit: s }) {
1039
- const { t } = te(), e = z(l, "modelValue"), n = s, o = K(() => {
1038
+ setup(t, { emit: s }) {
1039
+ const { t: n } = te(), e = z(t, "modelValue"), l = s, o = K(() => {
1040
1040
  let u = "100%";
1041
- return l.hasDelete && (u = "calc(100% - 37px)"), {
1041
+ return t.hasDelete && (u = "calc(100% - 37px)"), {
1042
1042
  width: u
1043
1043
  };
1044
- }), i = K(() => l.readonly), { open: r } = Se(`propTreeColorPickerMenu${we()}`);
1044
+ }), i = K(() => t.readonly), { open: r } = xe(`propTreeColorPickerMenu${we()}`);
1045
1045
  return De(() => {
1046
1046
  r.value = !1;
1047
1047
  }), (u, a) => {
1048
- const f = x("v-btn"), d = x("v-color-picker"), y = x("v-menu");
1049
- return C(), B(y, {
1048
+ const f = U("v-btn"), d = U("v-color-picker"), g = U("v-menu");
1049
+ return C(), B(g, {
1050
1050
  modelValue: L(r),
1051
- "onUpdate:modelValue": a[2] || (a[2] = (g) => ve(r) ? r.value = g : null),
1051
+ "onUpdate:modelValue": a[2] || (a[2] = (h) => ve(r) ? r.value = h : null),
1052
1052
  "close-on-content-click": !1,
1053
1053
  scrim: "transparent"
1054
1054
  }, {
1055
- activator: J(({ props: g }) => [
1056
- F("div", hn, [
1055
+ activator: J(({ props: h }) => [
1056
+ F("div", yn, [
1057
1057
  F("div", {
1058
1058
  class: "flex-grow-1",
1059
1059
  style: I(o.value)
1060
1060
  }, [
1061
- D(f, be(g, {
1061
+ D(f, be(h, {
1062
1062
  block: "",
1063
1063
  color: e.value,
1064
1064
  density: "comfortable",
1065
1065
  disabled: i.value
1066
1066
  }), {
1067
1067
  default: J(() => [
1068
- Ce(W(e.value ? e.value : L(t)("x-runtime-lib.notSet")), 1)
1068
+ Ce(W(e.value ? e.value : L(n)("x-runtime-lib.notSet")), 1)
1069
1069
  ]),
1070
1070
  _: 1
1071
1071
  }, 16, ["color", "disabled"])
1072
1072
  ], 4),
1073
- u.hasDelete ? (C(), B(f, {
1073
+ t.hasDelete ? (C(), B(f, {
1074
1074
  key: 0,
1075
1075
  class: "mx-2",
1076
1076
  density: "compact",
1077
1077
  icon: "mdi-minus",
1078
1078
  variant: "text",
1079
- onClick: a[0] || (a[0] = X((k) => n("delete"), ["stop"]))
1079
+ onClick: a[0] || (a[0] = X((V) => l("delete"), ["stop"]))
1080
1080
  })) : G("", !0)
1081
1081
  ])
1082
1082
  ]),
1083
1083
  default: J(() => [
1084
1084
  D(d, {
1085
1085
  modelValue: e.value,
1086
- "onUpdate:modelValue": a[1] || (a[1] = (g) => e.value = g),
1086
+ "onUpdate:modelValue": a[1] || (a[1] = (h) => e.value = h),
1087
1087
  mode: "hexa",
1088
1088
  "show-swatches": "",
1089
1089
  "swatches-max-height": "150px"
@@ -1094,35 +1094,35 @@ const hn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PU
1094
1094
  };
1095
1095
  }
1096
1096
  });
1097
- function kn(l) {
1098
- return { renderUiColorPicker: (t, e, n, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), h("div", "renderUiColorPicker prop ui must be colorPicker")) : h(_n, {
1097
+ function _n(t) {
1098
+ return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), y("div", "renderUiColorPicker property ui must be colorPicker")) : y(kn, {
1099
1099
  modelValue: ne(
1100
- t,
1101
- e,
1102
1100
  n,
1101
+ e,
1103
1102
  l,
1103
+ t,
1104
1104
  o,
1105
1105
  i
1106
1106
  ),
1107
1107
  "onUpdate:modelValue": (r) => {
1108
1108
  oe(
1109
- t,
1110
- e,
1111
1109
  n,
1112
- r,
1110
+ e,
1113
1111
  l,
1112
+ r,
1113
+ t,
1114
1114
  o,
1115
1115
  i
1116
1116
  );
1117
1117
  },
1118
1118
  hasDelete: o !== void 0 && !i,
1119
1119
  onDelete: () => {
1120
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, -1), n));
1120
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1121
1121
  },
1122
1122
  readonly: e.readonly
1123
1123
  }) };
1124
1124
  }
1125
- const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { class: "flex-grow-1" }, Sn = /* @__PURE__ */ R({
1125
+ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { class: "flex-grow-1" }, xn = /* @__PURE__ */ R({
1126
1126
  __name: "multiTypes",
1127
1127
  props: /* @__PURE__ */ Y({
1128
1128
  hasDelete: { type: Boolean, default: !1 },
@@ -1132,46 +1132,46 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
1132
1132
  modelModifiers: {}
1133
1133
  }),
1134
1134
  emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
1135
- setup(l, { emit: s }) {
1136
- const { t } = te(), { isMobile: e } = pe(), n = z(l, "modelValue"), o = s, i = Te(), r = K(() => Fe[i.value]?.types[l.types]), u = O(0), a = K(() => {
1137
- const k = [];
1138
- return r.value?.forEach(({ title: S }, P) => {
1139
- k.push({
1140
- title: t(S),
1135
+ setup(t, { emit: s }) {
1136
+ const { t: n } = te(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Te(), r = K(() => Fe[i.value]?.types[t.types]), u = O(0), a = K(() => {
1137
+ const V = [];
1138
+ return r.value?.forEach(({ title: x }, P) => {
1139
+ V.push({
1140
+ title: n(x),
1141
1141
  value: P
1142
1142
  });
1143
- }), k;
1143
+ }), V;
1144
1144
  });
1145
1145
  Ne(() => {
1146
- r.value?.some((k, S) => k.validator(n.value) ? (u.value = S, !0) : !1);
1146
+ r.value?.some((V, x) => V.validator(l.value) ? (u.value = x, !0) : !1);
1147
1147
  });
1148
1148
  const f = K(() => r.value?.[u.value]), d = () => {
1149
- n.value = f.value?.default;
1150
- }, y = O(0), g = async (k) => {
1151
- if (!k || !e() || f.value.ui !== "pixelInput" && f.value.ui !== "percentInput")
1149
+ l.value = f.value?.default;
1150
+ }, g = O(0), h = async (V) => {
1151
+ if (!V || !e() || f.value.ui !== "pixelInput" && f.value.ui !== "percentInput")
1152
1152
  return;
1153
- const S = await Re({
1153
+ const x = await Re({
1154
1154
  title: "",
1155
- value: y.value,
1155
+ value: g.value,
1156
1156
  precision: f.value.precision,
1157
1157
  min: f.value.min,
1158
1158
  max: f.value.max,
1159
1159
  step: f.value.step
1160
1160
  });
1161
- S !== void 0 && (y.value = S);
1161
+ x !== void 0 && (g.value = x);
1162
1162
  };
1163
1163
  return Ne(() => {
1164
- f.value?.ui === "pixelInput" ? y.value = Vt(n.value) : f.value?.ui === "percentInput" && (y.value = Ct(n.value));
1165
- }), re(y, (k) => {
1166
- f.value?.ui === "pixelInput" ? n.value = k + "px" : f.value?.ui === "percentInput" && (n.value = k + "%");
1167
- }), (k, S) => {
1168
- const P = x("v-select"), T = x("v-number-input"), w = x("v-btn"), _ = le("ripple");
1164
+ f.value?.ui === "pixelInput" ? g.value = Vt(l.value) : f.value?.ui === "percentInput" && (g.value = Ct(l.value));
1165
+ }), ue(g, (V) => {
1166
+ f.value?.ui === "pixelInput" ? l.value = V + "px" : f.value?.ui === "percentInput" && (l.value = V + "%");
1167
+ }), (V, x) => {
1168
+ const P = U("v-select"), T = U("v-number-input"), w = U("v-btn"), k = le("ripple");
1169
1169
  return C(), E("div", Vn, [
1170
1170
  F("div", Cn, [
1171
1171
  ee(D(P, {
1172
1172
  modelValue: u.value,
1173
1173
  "onUpdate:modelValue": [
1174
- S[0] || (S[0] = (M) => u.value = M),
1174
+ x[0] || (x[0] = (M) => u.value = M),
1175
1175
  d
1176
1176
  ],
1177
1177
  density: "compact",
@@ -1180,7 +1180,7 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
1180
1180
  "single-line": ""
1181
1181
  }, null, 8, ["modelValue", "items"]), [
1182
1182
  [
1183
- _,
1183
+ k,
1184
1184
  void 0,
1185
1185
  void 0,
1186
1186
  { stop: !0 }
@@ -1188,8 +1188,8 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
1188
1188
  ]),
1189
1189
  f.value?.ui === "pixelInput" || f.value?.ui === "percentInput" ? ee((C(), B(T, {
1190
1190
  key: 0,
1191
- modelValue: y.value,
1192
- "onUpdate:modelValue": S[1] || (S[1] = (M) => y.value = M),
1191
+ modelValue: g.value,
1192
+ "onUpdate:modelValue": x[1] || (x[1] = (M) => g.value = M),
1193
1193
  "control-variant": "stacked",
1194
1194
  density: "compact",
1195
1195
  "hide-details": "",
@@ -1198,57 +1198,57 @@ const Vn = { class: "d-flex justify-space-between align-center my-2" }, Cn = { c
1198
1198
  precision: f.value.precision,
1199
1199
  "single-line": "",
1200
1200
  step: f.value.step,
1201
- "onUpdate:focused": g
1201
+ "onUpdate:focused": h
1202
1202
  }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
1203
1203
  [
1204
- _,
1204
+ k,
1205
1205
  void 0,
1206
1206
  void 0,
1207
1207
  { stop: !0 }
1208
1208
  ]
1209
1209
  ]) : G("", !0)
1210
1210
  ]),
1211
- k.hasDelete ? (C(), B(w, {
1211
+ t.hasDelete ? (C(), B(w, {
1212
1212
  key: 0,
1213
1213
  class: "mx-2",
1214
1214
  density: "compact",
1215
1215
  icon: "mdi-minus",
1216
1216
  variant: "text",
1217
- onClick: S[2] || (S[2] = X((M) => o("delete"), ["stop"]))
1217
+ onClick: x[2] || (x[2] = X((M) => o("delete"), ["stop"]))
1218
1218
  })) : G("", !0)
1219
1219
  ]);
1220
1220
  };
1221
1221
  }
1222
1222
  });
1223
- function Un(l) {
1224
- return { renderUiMultiTypes: (t, e, n, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), h("div", "renderUiMultiTypes prop ui must be multiTypes")) : h(Sn, {
1223
+ function Sn(t) {
1224
+ return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), y("div", "renderUiMultiTypes property ui must be multiTypes")) : y(xn, {
1225
1225
  modelValue: ne(
1226
- t,
1227
- e,
1228
1226
  n,
1227
+ e,
1229
1228
  l,
1229
+ t,
1230
1230
  o,
1231
1231
  i
1232
1232
  ) ?? "",
1233
1233
  "onUpdate:modelValue": (r) => {
1234
1234
  oe(
1235
- t,
1236
- e,
1237
1235
  n,
1238
- r,
1236
+ e,
1239
1237
  l,
1238
+ r,
1239
+ t,
1240
1240
  o,
1241
1241
  i
1242
1242
  );
1243
1243
  },
1244
1244
  hasDelete: o !== void 0 && !i,
1245
1245
  onDelete: () => {
1246
- o === void 0 || i || (n.splice(o, 1), l(t.slice(0, -1), n));
1246
+ o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1247
1247
  },
1248
1248
  types: e.types
1249
1249
  }) };
1250
1250
  }
1251
- const xn = /* @__PURE__ */ R({
1251
+ const Un = /* @__PURE__ */ R({
1252
1252
  __name: "editor",
1253
1253
  props: {
1254
1254
  modelValue: { required: !0 },
@@ -1259,21 +1259,21 @@ const xn = /* @__PURE__ */ R({
1259
1259
  scaleModifiers: {}
1260
1260
  },
1261
1261
  emits: ["update:modelValue", "update:lock", "update:scale"],
1262
- setup(l, { expose: s }) {
1263
- const t = z(l, "modelValue"), e = z(l, "lock"), n = z(l, "scale"), o = gt(), i = ht(), r = Te(), u = Je("target"), a = () => {
1264
- const d = JSON.parse(t.value);
1262
+ setup(t, { expose: s }) {
1263
+ const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = ht(), i = yt(), r = Te(), u = Je("target"), a = () => {
1264
+ const d = JSON.parse(n.value);
1265
1265
  u.value?.load(d);
1266
1266
  };
1267
1267
  return s({ save: () => {
1268
1268
  const d = u.value.save();
1269
- t.value = JSON.stringify(d, null, 2);
1270
- } }), (d, y) => (C(), B(L(xt), {
1269
+ n.value = JSON.stringify(d, null, 2);
1270
+ } }), (d, g) => (C(), B(L(Ut), {
1271
1271
  ref_key: "target",
1272
1272
  ref: u,
1273
1273
  lock: e.value,
1274
- "onUpdate:lock": y[0] || (y[0] = (g) => e.value = g),
1275
- scale: n.value,
1276
- "onUpdate:scale": y[1] || (y[1] = (g) => n.value = g),
1274
+ "onUpdate:lock": g[0] || (g[0] = (h) => e.value = h),
1275
+ scale: l.value,
1276
+ "onUpdate:scale": g[1] || (g[1] = (h) => l.value = h),
1277
1277
  dark: L(o),
1278
1278
  locale: L(i),
1279
1279
  type: "json",
@@ -1288,35 +1288,35 @@ const xn = /* @__PURE__ */ R({
1288
1288
  modelModifiers: {}
1289
1289
  },
1290
1290
  emits: ["update:modelValue"],
1291
- setup(l) {
1292
- const { t: s } = te(), { sysBarAvail: t } = pe(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: o } = ie(), i = z(l, "modelValue"), r = O(!1), u = O(1), a = K(() => {
1293
- let g = 48;
1294
- return t.value && (g += 24), {
1291
+ setup(t) {
1292
+ const { t: s } = te(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = ie(), i = z(t, "modelValue"), r = O(!1), u = O(1), a = K(() => {
1293
+ let h = 48;
1294
+ return n.value && (h += 24), {
1295
1295
  position: "relative",
1296
- background: n.value,
1297
- height: `calc(100% - ${g}px)`
1296
+ background: l.value,
1297
+ height: `calc(100% - ${h}px)`
1298
1298
  };
1299
- }), f = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
1299
+ }), f = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = xe(`propTreeJsonObjectDlg${we()}`);
1300
1300
  De(() => {
1301
1301
  d.value = !1;
1302
1302
  });
1303
- const y = Je("editor");
1304
- return re(d, (g) => {
1305
- g || y.value?.save();
1306
- }), (g, k) => {
1307
- const S = x("v-btn"), P = x("v-sheet"), T = x("v-spacer"), w = x("v-dialog");
1303
+ const g = Je("editor");
1304
+ return ue(d, (h) => {
1305
+ h || g.value?.save();
1306
+ }), (h, V) => {
1307
+ const x = U("v-btn"), P = U("v-sheet"), T = U("v-spacer"), w = U("v-dialog");
1308
1308
  return C(), B(w, {
1309
1309
  modelValue: L(d),
1310
- "onUpdate:modelValue": k[4] || (k[4] = (_) => ve(d) ? d.value = _ : null),
1310
+ "onUpdate:modelValue": V[4] || (V[4] = (k) => ve(d) ? d.value = k : null),
1311
1311
  attach: "",
1312
1312
  fullscreen: "",
1313
1313
  "no-click-animation": "",
1314
1314
  persistent: "",
1315
1315
  transition: "dialog-bottom-transition",
1316
- onKeydown: k[5] || (k[5] = Ke(X((_) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1316
+ onKeydown: V[5] || (V[5] = Ke(X((k) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1317
1317
  }, {
1318
- activator: J(({ props: _ }) => [
1319
- D(S, be(_, {
1318
+ activator: J(({ props: k }) => [
1319
+ D(x, be(k, {
1320
1320
  block: "",
1321
1321
  density: "comfortable"
1322
1322
  }), {
@@ -1333,7 +1333,7 @@ const xn = /* @__PURE__ */ R({
1333
1333
  width: "100%"
1334
1334
  }, {
1335
1335
  default: J(() => [
1336
- L(t) ? (C(), B(P, {
1336
+ L(n) ? (C(), B(P, {
1337
1337
  key: 0,
1338
1338
  color: L(o),
1339
1339
  height: 24
@@ -1344,11 +1344,11 @@ const xn = /* @__PURE__ */ R({
1344
1344
  height: 48
1345
1345
  }, {
1346
1346
  default: J(() => [
1347
- D(S, {
1347
+ D(x, {
1348
1348
  density: "comfortable",
1349
1349
  icon: "mdi-close",
1350
1350
  variant: "text",
1351
- onClick: k[0] || (k[0] = (_) => d.value = !1)
1351
+ onClick: V[0] || (V[0] = (k) => d.value = !1)
1352
1352
  }),
1353
1353
  F("span", $n, W(L(s)("x-prop-tree.dlg.jsonObject.title")), 1),
1354
1354
  D(T)
@@ -1358,15 +1358,15 @@ const xn = /* @__PURE__ */ R({
1358
1358
  F("div", {
1359
1359
  style: I(a.value)
1360
1360
  }, [
1361
- D(xn, {
1361
+ D(Un, {
1362
1362
  ref_key: "editor",
1363
- ref: y,
1363
+ ref: g,
1364
1364
  modelValue: i.value,
1365
- "onUpdate:modelValue": k[1] || (k[1] = (_) => i.value = _),
1365
+ "onUpdate:modelValue": V[1] || (V[1] = (k) => i.value = k),
1366
1366
  lock: r.value,
1367
- "onUpdate:lock": k[2] || (k[2] = (_) => r.value = _),
1367
+ "onUpdate:lock": V[2] || (V[2] = (k) => r.value = k),
1368
1368
  scale: u.value,
1369
- "onUpdate:scale": k[3] || (k[3] = (_) => u.value = _)
1369
+ "onUpdate:scale": V[3] || (V[3] = (k) => u.value = k)
1370
1370
  }, null, 8, ["modelValue", "lock", "scale"])
1371
1371
  ], 4)
1372
1372
  ]),
@@ -1378,23 +1378,23 @@ const xn = /* @__PURE__ */ R({
1378
1378
  };
1379
1379
  }
1380
1380
  });
1381
- function Mn(l) {
1382
- return { renderUiJsonEditor: (t, e, n, o, i) => e.ui !== "jsonEditor" ? h("div", "renderUiJsonObject prop ui must be jsonEditor") : h(Pn, {
1381
+ function Mn(t) {
1382
+ return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? y("div", "renderUiJsonObject property ui must be jsonEditor") : y(Pn, {
1383
1383
  modelValue: ne(
1384
- t,
1385
- e,
1386
1384
  n,
1385
+ e,
1387
1386
  l,
1387
+ t,
1388
1388
  o,
1389
1389
  i
1390
1390
  ) ?? "{}",
1391
1391
  "onUpdate:modelValue": (r) => {
1392
1392
  oe(
1393
- t,
1394
- e,
1395
1393
  n,
1396
- r,
1394
+ e,
1397
1395
  l,
1396
+ r,
1397
+ t,
1398
1398
  o,
1399
1399
  i
1400
1400
  );
@@ -1410,102 +1410,102 @@ const wn = /* @__PURE__ */ R({
1410
1410
  version: {}
1411
1411
  },
1412
1412
  emits: ["change"],
1413
- setup(l, { emit: s }) {
1414
- const { t } = te(), { backgroundColor1: e } = ie(), n = l, o = s, i = O("20px"), r = O("56px"), u = O("200px"), a = mt({}), f = O({}), d = (v, c) => {
1415
- qe(f, n.config, n.object), o("change", v, c);
1413
+ setup(t, { emit: s }) {
1414
+ const { t: n } = te(), { backgroundColor1: e } = ie(), l = t, o = s, i = O("20px"), r = O("56px"), u = O("200px"), a = mt({}), f = O({}), d = (v, c) => {
1415
+ qe(f, l.config, l.object), o("change", v, c);
1416
1416
  };
1417
- re(
1418
- [() => n.config, () => n.object],
1417
+ ue(
1418
+ [() => l.config, () => l.object],
1419
1419
  () => {
1420
- qe(f, n.config, n.object, (v, c) => {
1420
+ qe(f, l.config, l.object, (v, c) => {
1421
1421
  o("change", v, c);
1422
1422
  });
1423
1423
  },
1424
1424
  { immediate: !0 }
1425
1425
  );
1426
- const y = O(n.version);
1427
- Tt(y), re(
1428
- () => n.version,
1426
+ const g = O(l.version);
1427
+ Tt(g), ue(
1428
+ () => l.version,
1429
1429
  () => {
1430
- y.value = n.version;
1430
+ g.value = l.version;
1431
1431
  }
1432
1432
  );
1433
- const g = O(n.config);
1434
- Lt(g), re(
1435
- () => n.config,
1433
+ const h = O(l.config);
1434
+ Lt(h), ue(
1435
+ () => l.config,
1436
1436
  () => {
1437
- g.value = n.config;
1437
+ h.value = l.config;
1438
1438
  }
1439
1439
  );
1440
- const k = O(n.object);
1441
- Ot(k), re(
1442
- () => n.object,
1440
+ const V = O(l.object);
1441
+ Ot(V), ue(
1442
+ () => l.object,
1443
1443
  () => {
1444
- k.value = n.object;
1444
+ V.value = l.object;
1445
1445
  }
1446
1446
  ), Bt(f), Jt(d);
1447
- const S = O([]);
1448
- Et(S);
1447
+ const x = O([]);
1448
+ Et(x);
1449
1449
  const P = () => {
1450
- const { compGroups: v, comps: c } = St.app.activeApp, p = [];
1451
- v.forEach(({ id: m, name: V, position: $ }) => {
1452
- const A = S.value.find((Z) => Z.id === m);
1450
+ const { compGroups: v, comps: c } = xt.app.activeApp, p = [];
1451
+ v.forEach(({ id: m, name: _, position: $ }) => {
1452
+ const A = x.value.find((Z) => Z.id === m);
1453
1453
  p.push({
1454
1454
  id: m,
1455
1455
  type: 0,
1456
- name: V,
1456
+ name: _,
1457
1457
  position: $,
1458
1458
  collapse: A?.collapse ?? !0
1459
1459
  });
1460
- }), c.forEach(({ id: m, groupid: V, name: $, position: A }) => {
1461
- p.push({ id: m, type: 1, name: $, position: A, group: V });
1462
- }), kt(p, !0), S.value = p;
1460
+ }), c.forEach(({ id: m, groupId: _, name: $, position: A }) => {
1461
+ p.push({ id: m, type: 1, name: $, position: A, group: _ });
1462
+ }), _t(p, !0), x.value = p;
1463
1463
  };
1464
1464
  let T;
1465
1465
  const w = () => {
1466
1466
  clearTimeout(T), T = window.setTimeout(() => {
1467
1467
  P(), T && w();
1468
1468
  }, 1e3);
1469
- }, _ = () => {
1469
+ }, k = () => {
1470
1470
  clearTimeout(T), T = void 0;
1471
1471
  };
1472
1472
  vt(() => {
1473
1473
  w();
1474
1474
  }), pt(() => {
1475
- _();
1475
+ k();
1476
1476
  });
1477
- const { renderProp: M } = zt(f, r, u), { renderUiDummy: N } = Gt(d), { renderUiStrInput: Q } = Qt(d), { renderUiNumInput: Pe } = It(d), { renderUiSwitch: je } = nn(d), { renderUiSelect: Ie } = sn(d), { renderUiColorPicker: et } = kn(d), { renderUiJsonEditor: tt } = Mn(d), { renderUiMultiTypes: nt } = Un(d), { renderUiCompSelect: lt } = gn(d), ye = (v, c, p, m, V, $) => (v = Ee(v), V !== void 0 ? (v.push(V), $ && v.push(c.key)) : v.push(c.key), c.ui ? c.array && m ? it(v, c, p, m, V, $) : rt(v, c, p, V, $) : c.array ? ot(v, c, p, m, V, $) : st(
1477
+ const { renderProp: M } = zt(f, r, u), { renderUiDummy: N } = Gt(d), { renderUiStrInput: Q } = Qt(d), { renderUiNumInput: Pe } = It(d), { renderUiSwitch: je } = nn(d), { renderUiSelect: Ie } = sn(d), { renderUiColorPicker: et } = _n(d), { renderUiJsonEditor: tt } = Mn(d), { renderUiMultiTypes: nt } = Sn(d), { renderUiCompSelect: lt } = hn(d), ge = (v, c, p, m, _, $) => (v = Ee(v), _ !== void 0 ? (v.push(_), $ && v.push(c.key)) : v.push(c.key), c.ui ? c.array && m ? it(v, c, p, m, _, $) : ut(v, c, p, _, $) : c.array ? ot(v, c, p, m, _, $) : st(
1478
1478
  v,
1479
1479
  c,
1480
1480
  p,
1481
1481
  m,
1482
- V,
1482
+ _,
1483
1483
  $
1484
- )), ot = (v, c, p, m, V, $) => {
1484
+ )), ot = (v, c, p, m, _, $) => {
1485
1485
  if (c.ui)
1486
- return console.assert(!1), h("div", "renderBranchArray prop ui must be invalid");
1486
+ return console.assert(!1), y("div", "renderBranchArray property ui must be invalid");
1487
1487
  if (!c.array)
1488
- return console.assert(!1), h("div", "renderBranchArray prop array must be valid");
1488
+ return console.assert(!1), y("div", "renderBranchArray property array must be valid");
1489
1489
  if (!m)
1490
- return console.assert(!1), h("div", "renderBranchArray branch must be valid");
1490
+ return console.assert(!1), y("div", "renderBranchArray branch must be valid");
1491
1491
  let A;
1492
- V !== void 0 && !$ ? (p[V] instanceof Array || (p[V] = q(c), d(v, p[c.key])), A = p[V]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
1493
- let Z = t(c.name);
1492
+ _ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(v, p[c.key])), A = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
1493
+ let Z = n(c.name);
1494
1494
  m.collapse && ae(f.value, v) && (Z += " *");
1495
- const fe = h(ke, {
1495
+ const fe = y(_e, {
1496
1496
  title: Z,
1497
1497
  collapse: m.collapse,
1498
1498
  hasCreate: !0,
1499
- onCollapse: (U) => {
1500
- m.collapse = U;
1499
+ onCollapse: (S) => {
1500
+ m.collapse = S;
1501
1501
  },
1502
- onMenu: (U, b) => {
1503
- ue.emit("propTreeMenu", { x: U, y: b, keys: v });
1502
+ onMenu: (S, b) => {
1503
+ re.emit("propTreeMenu", { x: S, y: b, keys: v });
1504
1504
  },
1505
1505
  onCreate: () => {
1506
1506
  A.push({}), d(v, A);
1507
1507
  }
1508
- }), H = h(
1508
+ }), H = y(
1509
1509
  "div",
1510
1510
  {
1511
1511
  style: {
@@ -1513,7 +1513,7 @@ const wn = /* @__PURE__ */ R({
1513
1513
  }
1514
1514
  },
1515
1515
  (() => {
1516
- const U = [];
1516
+ const S = [];
1517
1517
  for (let b = 0; b < A.length; b++) {
1518
1518
  if (!Me(m.children)) {
1519
1519
  console.assert(!1);
@@ -1523,10 +1523,10 @@ const wn = /* @__PURE__ */ R({
1523
1523
  collapse: !0,
1524
1524
  children: {}
1525
1525
  });
1526
- const ge = [...v, b], he = m.children[b];
1526
+ const he = [...v, b], ye = m.children[b];
1527
1527
  let Le = `[${b + 1}]`;
1528
- m.children[b].collapse && ae(f.value, ge) && (Le += " *");
1529
- const at = h(ke, {
1528
+ m.children[b].collapse && ae(f.value, he) && (Le += " *");
1529
+ const at = y(_e, {
1530
1530
  title: Le,
1531
1531
  collapse: m.children[b].collapse,
1532
1532
  hasDelete: !0,
@@ -1539,7 +1539,7 @@ const wn = /* @__PURE__ */ R({
1539
1539
  m.children[b].collapse = j;
1540
1540
  },
1541
1541
  onMenu: (j, se) => {
1542
- ue.emit("propTreeMenu", { x: j, y: se, keys: ge });
1542
+ re.emit("propTreeMenu", { x: j, y: se, keys: he });
1543
1543
  },
1544
1544
  onDelete: (j) => {
1545
1545
  if (!Me(m.children)) {
@@ -1549,8 +1549,8 @@ const wn = /* @__PURE__ */ R({
1549
1549
  m.children.splice(j, 1), A.splice(j, 1), d(v, A);
1550
1550
  }
1551
1551
  });
1552
- U.push(at);
1553
- const ct = h(
1552
+ S.push(at);
1553
+ const ct = y(
1554
1554
  "div",
1555
1555
  {
1556
1556
  style: {
@@ -1560,19 +1560,19 @@ const wn = /* @__PURE__ */ R({
1560
1560
  (() => {
1561
1561
  const j = [];
1562
1562
  return c.children.forEach((se) => {
1563
- if (!Oe(he.children)) {
1563
+ if (!Oe(ye.children)) {
1564
1564
  console.assert(!1);
1565
1565
  return;
1566
1566
  }
1567
- he.children[se.key] || (he.children[se.key] = {
1567
+ ye.children[se.key] || (ye.children[se.key] = {
1568
1568
  collapse: !0,
1569
1569
  children: se.array ? [] : {}
1570
1570
  });
1571
- const dt = ye(
1571
+ const dt = ge(
1572
1572
  v,
1573
1573
  se,
1574
1574
  A[b],
1575
- he.children[se.key],
1575
+ ye.children[se.key],
1576
1576
  b,
1577
1577
  !0
1578
1578
  );
@@ -1580,12 +1580,12 @@ const wn = /* @__PURE__ */ R({
1580
1580
  }), j;
1581
1581
  })()
1582
1582
  );
1583
- m.children[b].collapse || U.push(ct);
1583
+ m.children[b].collapse || S.push(ct);
1584
1584
  }
1585
- return U;
1585
+ return S;
1586
1586
  })()
1587
1587
  );
1588
- return h(
1588
+ return y(
1589
1589
  "div",
1590
1590
  {
1591
1591
  style: {
@@ -1593,33 +1593,33 @@ const wn = /* @__PURE__ */ R({
1593
1593
  }
1594
1594
  },
1595
1595
  (() => {
1596
- const U = [];
1597
- return U.push(fe), m.collapse || U.push(H), U;
1596
+ const S = [];
1597
+ return S.push(fe), m.collapse || S.push(H), S;
1598
1598
  })()
1599
1599
  );
1600
- }, st = (v, c, p, m, V, $) => {
1600
+ }, st = (v, c, p, m, _, $) => {
1601
1601
  if (c.ui)
1602
- return console.assert(!1), h("div", "renderBranchScalar prop ui must be invalid");
1602
+ return console.assert(!1), y("div", "renderBranchScalar property ui must be invalid");
1603
1603
  if (c.array)
1604
- return console.assert(!1), h("div", "renderBranchScalar prop array must be invalid");
1604
+ return console.assert(!1), y("div", "renderBranchScalar property array must be invalid");
1605
1605
  if (!m)
1606
- return console.assert(!1), h("div", "renderBranchScalar branch must be valid");
1607
- let A = t(c.name);
1606
+ return console.assert(!1), y("div", "renderBranchScalar branch must be valid");
1607
+ let A = n(c.name);
1608
1608
  m.collapse && ae(f.value, v) && (A += " *");
1609
- const Z = h(ke, {
1609
+ const Z = y(_e, {
1610
1610
  title: A,
1611
1611
  collapse: m.collapse,
1612
- hasDelete: V !== void 0 && !$,
1612
+ hasDelete: _ !== void 0 && !$,
1613
1613
  onCollapse: (H) => {
1614
1614
  m.collapse = H;
1615
1615
  },
1616
- onMenu: (H, U) => {
1617
- ue.emit("propTreeMenu", { x: H, y: U, keys: v });
1616
+ onMenu: (H, S) => {
1617
+ re.emit("propTreeMenu", { x: H, y: S, keys: v });
1618
1618
  },
1619
1619
  onDelete: () => {
1620
- V === void 0 || $ || (p.splice(V, 1), d(v.slice(0, -1), p));
1620
+ _ === void 0 || $ || (p.splice(_, 1), d(v.slice(0, -1), p));
1621
1621
  }
1622
- }), fe = h(
1622
+ }), fe = y(
1623
1623
  "div",
1624
1624
  {
1625
1625
  style: {
@@ -1628,26 +1628,26 @@ const wn = /* @__PURE__ */ R({
1628
1628
  },
1629
1629
  (() => {
1630
1630
  const H = [];
1631
- return c.children.forEach((U) => {
1631
+ return c.children.forEach((S) => {
1632
1632
  if (!Oe(m.children)) {
1633
1633
  console.assert(!1);
1634
1634
  return;
1635
1635
  }
1636
- m.children[U.key] || (m.children[U.key] = {
1636
+ m.children[S.key] || (m.children[S.key] = {
1637
1637
  collapse: !0,
1638
- children: !U.ui && U.array ? [] : {}
1638
+ children: !S.ui && S.array ? [] : {}
1639
1639
  });
1640
- const b = ye(
1640
+ const b = ge(
1641
1641
  v,
1642
- U,
1642
+ S,
1643
1643
  (typeof p[c.key] != "object" && (p[c.key] = {}, d(v, p[c.key])), p[c.key]),
1644
- m.children[U.key]
1644
+ m.children[S.key]
1645
1645
  );
1646
1646
  H.push(b);
1647
1647
  }), H;
1648
1648
  })()
1649
1649
  );
1650
- return h(
1650
+ return y(
1651
1651
  "div",
1652
1652
  {
1653
1653
  style: {
@@ -1659,31 +1659,31 @@ const wn = /* @__PURE__ */ R({
1659
1659
  return H.push(Z), m.collapse || H.push(fe), H;
1660
1660
  })()
1661
1661
  );
1662
- }, it = (v, c, p, m, V, $) => {
1662
+ }, it = (v, c, p, m, _, $) => {
1663
1663
  if (!c.ui)
1664
- return console.assert(!1), h("div", "renderLeafArray prop ui must be valid");
1664
+ return console.assert(!1), y("div", "renderLeafArray property ui must be valid");
1665
1665
  if (!c.array)
1666
- return console.assert(!1), h("div", "renderLeafArray prop array must be valid");
1666
+ return console.assert(!1), y("div", "renderLeafArray property array must be valid");
1667
1667
  if (!m)
1668
- return console.assert(!1), h("div", "renderLeafArray branch must be valid");
1668
+ return console.assert(!1), y("div", "renderLeafArray branch must be valid");
1669
1669
  let A;
1670
- V !== void 0 && !$ ? (p[V] instanceof Array || (p[V] = q(c), d(v, p[V])), A = p[V]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
1671
- let Z = t(c.name);
1670
+ _ !== void 0 && !$ ? (p[_] instanceof Array || (p[_] = q(c), d(v, p[_])), A = p[_]) : (p[c.key] instanceof Array || (p[c.key] = q(c), d(v, p[c.key])), A = p[c.key]);
1671
+ let Z = n(c.name);
1672
1672
  m.collapse && ae(f.value, v) && (Z += " *");
1673
- const fe = h(ke, {
1673
+ const fe = y(_e, {
1674
1674
  title: Z,
1675
1675
  collapse: m.collapse,
1676
1676
  hasCreate: !0,
1677
- onCollapse: (U) => {
1678
- m.collapse = U;
1677
+ onCollapse: (S) => {
1678
+ m.collapse = S;
1679
1679
  },
1680
- onMenu: (U, b) => {
1681
- ue.emit("propTreeMenu", { x: U, y: b, keys: v });
1680
+ onMenu: (S, b) => {
1681
+ re.emit("propTreeMenu", { x: S, y: b, keys: v });
1682
1682
  },
1683
1683
  onCreate: () => {
1684
1684
  A.push(q(c, !0)), d(v, A);
1685
1685
  }
1686
- }), H = h(
1686
+ }), H = y(
1687
1687
  "div",
1688
1688
  {
1689
1689
  style: {
@@ -1691,15 +1691,15 @@ const wn = /* @__PURE__ */ R({
1691
1691
  }
1692
1692
  },
1693
1693
  (() => {
1694
- const U = [];
1694
+ const S = [];
1695
1695
  for (let b = 0; b < A.length; b++) {
1696
- const ge = ye(v, c, A, void 0, b, !1);
1697
- U.push(ge);
1696
+ const he = ge(v, c, A, void 0, b, !1);
1697
+ S.push(he);
1698
1698
  }
1699
- return U;
1699
+ return S;
1700
1700
  })()
1701
1701
  );
1702
- return h(
1702
+ return y(
1703
1703
  "div",
1704
1704
  {
1705
1705
  style: {
@@ -1707,16 +1707,16 @@ const wn = /* @__PURE__ */ R({
1707
1707
  }
1708
1708
  },
1709
1709
  (() => {
1710
- const U = [];
1711
- return U.push(fe), m.collapse || U.push(H), U;
1710
+ const S = [];
1711
+ return S.push(fe), m.collapse || S.push(H), S;
1712
1712
  })()
1713
1713
  );
1714
- }, rt = (v, c, p, m, V) => {
1714
+ }, ut = (v, c, p, m, _) => {
1715
1715
  if (!c.ui)
1716
- return console.assert(!1), h("div", "renderLeafScalar prop ui must be valid");
1716
+ return console.assert(!1), y("div", "renderLeafScalar property ui must be valid");
1717
1717
  let $;
1718
- return c.ui === "dummy" ? $ = N(v, c, p, m, V) : c.ui === "strInput" ? $ = Q(v, c, p, m, V) : c.ui === "numInput" ? $ = Pe(v, c, p, m, V) : c.ui === "switch" ? $ = je(v, c, p, m, V) : c.ui === "select" ? $ = Ie(v, c, p, m, V) : c.ui === "colorPicker" ? $ = et(v, c, p, m, V) : c.ui === "jsonEditor" ? $ = tt(v, c, p, m, V) : c.ui === "multiTypes" ? $ = nt(v, c, p, m, V) : c.ui === "compSelect" ? $ = lt(v, c, p, m, V) : console.assert(!1, "renderLeafScalar not implemented"), $ ? M(v, c, $) : h("div");
1719
- }, ut = () => h(
1718
+ return c.ui === "dummy" ? $ = N(v, c, p, m, _) : c.ui === "strInput" ? $ = Q(v, c, p, m, _) : c.ui === "numInput" ? $ = Pe(v, c, p, m, _) : c.ui === "switch" ? $ = je(v, c, p, m, _) : c.ui === "select" ? $ = Ie(v, c, p, m, _) : c.ui === "colorPicker" ? $ = et(v, c, p, m, _) : c.ui === "jsonEditor" ? $ = tt(v, c, p, m, _) : c.ui === "multiTypes" ? $ = nt(v, c, p, m, _) : c.ui === "compSelect" ? $ = lt(v, c, p, m, _) : console.assert(!1, "renderLeafScalar not implemented"), $ ? M(v, c, $) : y("div");
1719
+ }, rt = () => y(
1720
1720
  "div",
1721
1721
  {
1722
1722
  class: "text-body-2",
@@ -1726,15 +1726,15 @@ const wn = /* @__PURE__ */ R({
1726
1726
  },
1727
1727
  (() => {
1728
1728
  const v = [];
1729
- if (n.unique && n.config.length > 0 && n.object) {
1730
- a[n.unique] || (a[n.unique] = {});
1731
- const c = a[n.unique];
1732
- n.config.forEach((p) => {
1729
+ if (l.unique && l.config.length > 0 && l.object) {
1730
+ a[l.unique] || (a[l.unique] = {});
1731
+ const c = a[l.unique];
1732
+ l.config.forEach((p) => {
1733
1733
  c[p.key] || (c[p.key] = {
1734
1734
  collapse: !0,
1735
1735
  children: !p.ui && p.array ? [] : {}
1736
1736
  });
1737
- const m = ye([], p, n.object, c[p.key]);
1737
+ const m = ge([], p, l.object, c[p.key]);
1738
1738
  v.push(m);
1739
1739
  });
1740
1740
  }
@@ -1742,24 +1742,24 @@ const wn = /* @__PURE__ */ R({
1742
1742
  })()
1743
1743
  );
1744
1744
  return (v, c) => (C(), E(Ve, null, [
1745
- D(ut),
1745
+ D(rt),
1746
1746
  D(Ht, {
1747
- config: n.config,
1748
- object: n.object,
1747
+ config: l.config,
1748
+ object: l.object,
1749
1749
  "prop-states": f.value
1750
1750
  }, null, 8, ["config", "object", "prop-states"])
1751
1751
  ], 64));
1752
1752
  }
1753
- }), Dn = (l) => {
1754
- l.component("XPropTree", wn);
1755
- }, bn = (l, s, t) => {
1756
- const e = l[s];
1757
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, o) => {
1758
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : ""))));
1753
+ }), Dn = (t) => {
1754
+ t.component("XPropTree", wn);
1755
+ }, bn = (t, s, n) => {
1756
+ const e = t[s];
1757
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
1758
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
1759
1759
  });
1760
1760
  };
1761
- async function Jn(l) {
1762
- return (await bn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${l}/index.ts`, 4)).default;
1761
+ async function Jn(t) {
1762
+ return (await bn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${t}/index.ts`, 4)).default;
1763
1763
  }
1764
1764
  const Rn = { install: Dn };
1765
1765
  export {