x-prop-tree 0.7.5 → 0.7.6

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