x-prop-tree 0.7.2 → 0.7.4

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