x-prop-tree 0.7.24 → 0.7.25

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,119 +1,119 @@
1
- import { provide as ae, inject as ce, defineComponent as E, ref as T, computed as L, resolveComponent as $, createBlock as B, openBlock as _, unref as P, isRef as re, withCtx as R, createVNode as b, createElementBlock as K, Fragment as fe, renderList as Te, createTextVNode as ke, toDisplayString as F, resolveDirective as ee, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, onMounted as He, onBeforeUnmount as Xe, watch as oe, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as Me, withKeys as Le, useTemplateRef as Fe, watchEffect as Ke, h as k, renderSlot as kt, reactive as _t } from "vue";
2
- import { useI18n as I } from "vue-i18n";
3
- import { useViewStack as _e, useColor as te, globalObjects as xt, eventBus as de, useSystem as pe, injectDark as St, injectLocale as Vt, openNumberDlg as ze, openPromptDlg as Ct } from "x-essential-lib";
4
- import { getPropertyDefault as J, pkgs as Ne, getPropertyTag as Ut, elements as $t, makeSlotId as Re, parsePixelStr as wt, parsePercentStr as Mt } from "x-runtime-lib";
5
- import { c as Ge, i as be, r as ve, d as Ye, v as We } from "./vendor.f0ug048x.js";
6
- import { globalState as Qe } from "x-state-lib";
7
- import { useDisplay as Ze } from "vuetify";
8
- import { XBlockly as bt } from "x-block-lib";
9
- const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t, s) => {
10
- const n = (e, l) => {
11
- if (e.ui !== l.ui || e.array !== l.array)
1
+ import { provide as ie, inject as de, defineComponent as E, ref as A, computed as N, resolveComponent as V, createBlock as B, openBlock as S, unref as D, isRef as ce, withCtx as R, createVNode as P, createElementBlock as K, Fragment as ve, renderList as Ae, createTextVNode as ke, toDisplayString as F, resolveDirective as I, withDirectives as j, withModifiers as X, normalizeStyle as W, createElementVNode as q, createCommentVNode as G, onMounted as Ne, onBeforeUnmount as Oe, watch as le, mergeModels as Z, useModel as z, useId as $e, onUnmounted as we, mergeProps as be, withKeys as Be, useTemplateRef as Ge, watchEffect as He, h as x, renderSlot as kt, reactive as _t } from "vue";
2
+ import { useI18n as oe } from "vue-i18n";
3
+ import { useViewStack as _e, useColor as ee, globalObjects as xt, useSystem as ue, eventBus as me, injectDark as St, injectLocale as Vt, openNumberDlg as Ye, openPromptDlg as Ct } from "x-essential-lib";
4
+ import { getPropertyDefault as J, pkgs as qe, getPropertyTag as Ut, elements as $t, makeSlotId as Xe, parsePixelStr as wt, parsePercentStr as bt } from "x-runtime-lib";
5
+ import { c as We, i as Me, r as pe, d as Qe, v as Ze } from "./vendor.f0ug048x.js";
6
+ import { globalState as Ke } from "x-state-lib";
7
+ import { useDisplay as je } from "vuetify";
8
+ import { XBlockly as Mt } from "x-block-lib";
9
+ const Fe = (t) => !(t instanceof Array), Te = (t) => t instanceof Array, Pt = (t, s) => {
10
+ const l = (e, n) => {
11
+ if (e.ui !== n.ui || e.array !== n.array)
12
12
  return !1;
13
- if (e.ui || l.ui)
13
+ if (e.ui || n.ui)
14
14
  return !0;
15
- if (e.children.length !== l.children.length)
15
+ if (e.children.length !== n.children.length)
16
16
  return !1;
17
17
  for (let o = 0; o < e.children.length; o++)
18
- if (!n(e.children[o], l.children[o]))
18
+ if (!l(e.children[o], n.children[o]))
19
19
  return !1;
20
20
  return !0;
21
21
  };
22
- return n(t, s);
22
+ return l(t, s);
23
23
  }, Ce = (t, s) => {
24
- let n = {
24
+ let l = {
25
25
  key: "",
26
26
  name: "",
27
27
  children: t
28
28
  };
29
29
  return s.forEach((e) => {
30
30
  if (typeof e != "number") {
31
- if (!n) {
31
+ if (!l) {
32
32
  console.assert(!1, `unpkgProp invalid property keys=${s}`);
33
33
  return;
34
34
  }
35
- if (n.ui) {
35
+ if (l.ui) {
36
36
  console.assert(
37
37
  !1,
38
38
  `unpkgProp property ui must be invalid keys=${s}`
39
39
  );
40
40
  return;
41
41
  }
42
- n = n.children.find((l) => l.key === e);
42
+ l = l.children.find((n) => n.key === e);
43
43
  }
44
- }), n;
44
+ }), l;
45
45
  }, he = (t, s) => {
46
- let n = t;
46
+ let l = t;
47
47
  return s.forEach((e) => {
48
- if (!n) {
48
+ if (!l) {
49
49
  console.assert(!1, `unpkgObject object must be valid keys=${s}`);
50
50
  return;
51
51
  }
52
- n = n[e];
53
- }), n;
54
- }, ne = (t, s, n, e, l, o) => {
55
- if (l !== void 0)
52
+ l = l[e];
53
+ }), l;
54
+ }, te = (t, s, l, e, n, o) => {
55
+ if (n !== void 0)
56
56
  if (o) {
57
- if (n[s.key] === void 0) {
57
+ if (l[s.key] === void 0) {
58
58
  const i = J(s);
59
- i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
59
+ i !== void 0 && (l[s.key] = i, e(t, l[s.key]));
60
60
  }
61
- return n[s.key];
61
+ return l[s.key];
62
62
  } else {
63
- if (n[l] === void 0) {
63
+ if (l[n] === void 0) {
64
64
  const i = J(s, !0);
65
- i !== void 0 && (n[l] = i, e(t, n[l]));
65
+ i !== void 0 && (l[n] = i, e(t, l[n]));
66
66
  }
67
- return n[l];
67
+ return l[n];
68
68
  }
69
69
  else {
70
- if (n[s.key] === void 0) {
70
+ if (l[s.key] === void 0) {
71
71
  const i = J(s);
72
- i !== void 0 && (n[s.key] = i, e(t, n[s.key]));
72
+ i !== void 0 && (l[s.key] = i, e(t, l[s.key]));
73
73
  }
74
- return n[s.key];
74
+ return l[s.key];
75
75
  }
76
- }, se = (t, s, n, e, l, o, i) => {
76
+ }, se = (t, s, l, e, n, o, i) => {
77
77
  if (o !== void 0)
78
- i ? e !== n[s.key] && (n[s.key] = e, l(t, n[s.key])) : e !== n[o] && (n[o] = e, l(t, n[o]));
78
+ i ? e !== l[s.key] && (l[s.key] = e, n(t, l[s.key])) : e !== l[o] && (l[o] = e, n(t, l[o]));
79
79
  else {
80
80
  let u = e;
81
- (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== n[s.key] && (n[s.key] = u, l(t, n[s.key]));
81
+ (s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (u = void 0)), u !== l[s.key] && (l[s.key] = u, n(t, l[s.key]));
82
82
  }
83
- }, Be = (t) => !(t instanceof Array), Pe = (t) => t instanceof Array, Dt = [
83
+ }, Re = (t) => !(t instanceof Array), Pe = (t) => t instanceof Array, Dt = [
84
84
  ["basic", "id"],
85
85
  ["basic", "name"]
86
- ], At = (t) => Dt.find((s) => be(t, s)), De = (t, s, n, e, l, o, i) => (t = Ge(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), At(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Pe(e.children) ? Nt(
86
+ ], Lt = (t) => Dt.find((s) => Me(t, s)), De = (t, s, l, e, n, o, i) => (t = We(t), o !== void 0 ? (t.push(o), i && t.push(s.key)) : t.push(s.key), Lt(t) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && Pe(e.children) ? Nt(
87
87
  t,
88
88
  s,
89
- n,
90
- e,
91
89
  l,
90
+ e,
91
+ n,
92
92
  o,
93
93
  i
94
- ) : Bt(
94
+ ) : Ot(
95
95
  s,
96
- n,
96
+ l,
97
97
  e,
98
98
  o,
99
99
  i
100
100
  ) : s.array ? Tt(
101
101
  t,
102
102
  s,
103
- n,
104
- e,
105
103
  l,
104
+ e,
105
+ n,
106
106
  o,
107
107
  i
108
- ) : Lt(
108
+ ) : At(
109
109
  t,
110
110
  s,
111
- n,
112
- e,
113
111
  l,
112
+ e,
113
+ n,
114
114
  o,
115
115
  i
116
- )), Tt = (t, s, n, e, l, o, i) => {
116
+ )), Tt = (t, s, l, e, n, o, i) => {
117
117
  if (s.ui)
118
118
  return console.assert(!1, "execPropertyBranchArray property ui must be invalid"), !1;
119
119
  if (!s.array)
@@ -127,34 +127,34 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
127
127
  "execPropertyBranchArray state children must be array"
128
128
  ), !1;
129
129
  let u;
130
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
130
+ o !== void 0 && !i ? (l[o] instanceof Array || (l[o] = J(s), n?.(t, l[o])), u = l[o]) : (l[s.key] instanceof Array || (l[s.key] = J(s), n?.(t, l[s.key])), u = l[s.key]), e.change = !1;
131
131
  for (let r = 0; r < u.length; r++) {
132
132
  e.children.push({
133
133
  change: !1,
134
134
  children: {}
135
135
  });
136
136
  const a = e.children[r];
137
- s.children.forEach((d) => {
138
- if (!a.children || !Be(a.children)) {
137
+ s.children.forEach((c) => {
138
+ if (!a.children || !Re(a.children)) {
139
139
  console.assert(!1);
140
140
  return;
141
141
  }
142
- a.children[d.key] = {
142
+ a.children[c.key] = {
143
143
  change: !1,
144
- children: d.array ? [] : {}
144
+ children: c.array ? [] : {}
145
145
  }, De(
146
146
  t,
147
- d,
147
+ c,
148
148
  u[r],
149
- a.children[d.key],
150
- l,
149
+ a.children[c.key],
150
+ n,
151
151
  r,
152
152
  !0
153
153
  ) && (a.change = !0), a.change && (e.change = !0);
154
154
  });
155
155
  }
156
- return e.change || (e.change = !be(u, J(s))), e.change;
157
- }, Lt = (t, s, n, e, l, o, i) => {
156
+ return e.change || (e.change = !Me(u, J(s))), e.change;
157
+ }, At = (t, s, l, e, n, o, i) => {
158
158
  if (s.ui)
159
159
  return console.assert(
160
160
  !1,
@@ -165,19 +165,19 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
165
165
  !1,
166
166
  "execPropertyBranchScalar property array must be invalid"
167
167
  ), !1;
168
- if (!e.children || !Be(e.children))
168
+ if (!e.children || !Re(e.children))
169
169
  return console.assert(!1, "execPropertyBranchScalar state children must be map"), !1;
170
170
  let u;
171
- o !== void 0 && !i ? (n[o] || (n[o] = {}), u = n[o]) : (n[s.key] || (n[s.key] = {}), u = n[s.key]), e.change = !1;
171
+ o !== void 0 && !i ? (l[o] || (l[o] = {}), u = l[o]) : (l[s.key] || (l[s.key] = {}), u = l[s.key]), e.change = !1;
172
172
  for (let r = 0; r < s.children.length; r++) {
173
173
  const a = s.children[r];
174
174
  e.children[a.key] = {
175
175
  change: !1,
176
176
  children: a.array ? [] : {}
177
- }, De(t, a, u, e.children[a.key], l) && (e.change = !0);
177
+ }, De(t, a, u, e.children[a.key], n) && (e.change = !0);
178
178
  }
179
179
  return e.change;
180
- }, Nt = (t, s, n, e, l, o, i) => {
180
+ }, Nt = (t, s, l, e, n, o, i) => {
181
181
  if (!s.ui)
182
182
  return console.assert(!1, "execPropertyLeafArray property ui must be valid"), !1;
183
183
  if (!s.array)
@@ -185,7 +185,7 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
185
185
  if (!e.children || !Pe(e.children))
186
186
  return console.assert(!1, "execPropertyLeafArray state children must be array"), !1;
187
187
  let u;
188
- o !== void 0 && !i ? (n[o] instanceof Array || (n[o] = J(s), l?.(t, n[o])), u = n[o]) : (n[s.key] instanceof Array || (n[s.key] = J(s), l?.(t, n[s.key])), u = n[s.key]), e.change = !1;
188
+ o !== void 0 && !i ? (l[o] instanceof Array || (l[o] = J(s), n?.(t, l[o])), u = l[o]) : (l[s.key] instanceof Array || (l[s.key] = J(s), n?.(t, l[s.key])), u = l[s.key]), e.change = !1;
189
189
  for (let r = 0; r < u.length; r++)
190
190
  e.children[r] = {
191
191
  change: !1,
@@ -195,192 +195,195 @@ const Ee = (t) => !(t instanceof Array), Ae = (t) => t instanceof Array, Pt = (t
195
195
  s,
196
196
  u,
197
197
  e.children[r],
198
- l,
198
+ n,
199
199
  r,
200
200
  !1
201
201
  ) && (e.change = !0);
202
- return e.change || (e.change = !be(u, J(s))), e.change;
203
- }, Bt = (t, s, n, e, l) => {
202
+ return e.change || (e.change = !Me(u, J(s))), e.change;
203
+ }, Ot = (t, s, l, e, n) => {
204
204
  if (!t.ui)
205
205
  return console.assert(!1, "execPropertyLeafScalar property ui must be valid"), !1;
206
206
  let o;
207
- return e !== void 0 && !l ? o = s[e] : o = s[t.key], n.change = !be(o, J(t, !0)), n.change;
208
- }, Je = (t, s, n, e) => {
209
- if (s.length <= 0 || !n) {
207
+ return e !== void 0 && !n ? o = s[e] : o = s[t.key], l.change = !Me(o, J(t, !0)), l.change;
208
+ }, ze = (t, s, l, e) => {
209
+ if (s.length <= 0 || !l) {
210
210
  t.value = {};
211
211
  return;
212
212
  }
213
- const l = {};
213
+ const n = {};
214
214
  s.forEach((o) => {
215
- l[o.key] = {
215
+ n[o.key] = {
216
216
  change: !1,
217
217
  children: o.array ? [] : {}
218
- }, De([], o, n, l[o.key], e);
219
- }), t.value = l;
220
- }, me = (t, s) => {
221
- let n = {
218
+ }, De([], o, l, n[o.key], e);
219
+ }), t.value = n;
220
+ }, fe = (t, s) => {
221
+ let l = {
222
222
  change: !1,
223
223
  children: t
224
224
  };
225
225
  return s.forEach((e) => {
226
- if (!n)
226
+ if (!l)
227
227
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
228
- if (!n.children)
228
+ if (!l.children)
229
229
  return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
230
- typeof e == "string" ? Be(n.children) && (n = n.children[e]) : Pe(n.children) && (n = n.children[e]);
231
- }), n?.change ?? !1;
232
- }, je = Symbol(), Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol();
233
- function Ot(t) {
234
- ae(je, t);
235
- }
236
- function Oe() {
237
- return ce(je);
238
- }
230
+ typeof e == "string" ? Re(l.children) && (l = l.children[e]) : Pe(l.children) && (l = l.children[e]);
231
+ }), l?.change ?? !1;
232
+ }, Ie = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), lt = Symbol(), ot = Symbol(), Bt = Symbol(), st = Symbol();
239
233
  function qt(t) {
240
- ae(Ie, t);
234
+ ie(Ie, t);
241
235
  }
242
- function Kt() {
243
- return ce(Ie);
236
+ function Ee() {
237
+ return de(Ie);
244
238
  }
245
- function Rt(t) {
246
- ae(et, t);
239
+ function Kt(t) {
240
+ ie(et, t);
247
241
  }
248
- function Et() {
249
- return ce(et);
242
+ function Rt() {
243
+ return de(et);
250
244
  }
251
- function Jt(t) {
252
- ae(tt, t);
245
+ function Et(t) {
246
+ ie(tt, t);
253
247
  }
254
- function Ht() {
255
- return ce(tt);
248
+ function Jt() {
249
+ return de(tt);
256
250
  }
257
- function Xt(t) {
258
- ae(nt, t);
251
+ function Ht(t) {
252
+ ie(nt, t);
259
253
  }
260
- function Ft() {
261
- return ce(nt);
254
+ function Xt() {
255
+ return de(nt);
262
256
  }
263
- function zt(t) {
264
- ae(lt, t);
257
+ function Ft(t) {
258
+ ie(lt, t);
265
259
  }
266
- function st() {
267
- return ce(lt);
260
+ function zt() {
261
+ return de(lt);
268
262
  }
269
263
  function Gt(t) {
270
- ae(ot, t);
264
+ ie(ot, t);
271
265
  }
272
266
  function it() {
273
- return ce(ot);
267
+ return de(ot);
274
268
  }
275
- const Yt = /* @__PURE__ */ E({
269
+ function Yt(t) {
270
+ ie(Bt, t);
271
+ }
272
+ function Wt(t) {
273
+ ie(st, t);
274
+ }
275
+ function ut() {
276
+ return de(st);
277
+ }
278
+ const Qt = /* @__PURE__ */ E({
276
279
  __name: "index",
277
280
  setup(t) {
278
- const { t: s } = I(), n = Kt(), e = Et(), l = Ht(), o = Ft(), i = T(0), u = T(0), r = T([]), a = L(() => [i.value, u.value]), d = (S) => {
279
- const D = () => !(r.value.length <= 0 || !me(l.value, r.value)), x = () => {
280
- const V = Ce(n.value, r.value);
281
- if (V)
282
- if (V.ui) {
283
- const U = he(e.value, r.value.slice(0, -1));
284
- if (!U)
281
+ const { t: s } = oe(), l = Rt(), e = Jt(), n = Xt(), o = zt(), i = A(0), u = A(0), r = A([]), a = N(() => [i.value, u.value]), c = (_) => {
282
+ const b = () => !(r.value.length <= 0 || !fe(n.value, r.value)), U = () => {
283
+ const g = Ce(l.value, r.value);
284
+ if (g)
285
+ if (g.ui) {
286
+ const $ = he(e.value, r.value.slice(0, -1));
287
+ if (!$)
285
288
  return;
286
- U[r.value[r.value.length - 1]] = J(V), o(r.value, U[r.value[r.value.length - 1]]);
287
- } else if (V.array) {
288
- const U = r.value[r.value.length - 1];
289
- if (U === void 0) {
289
+ $[r.value[r.value.length - 1]] = J(g), o(r.value, $[r.value[r.value.length - 1]]);
290
+ } else if (g.array) {
291
+ const $ = r.value[r.value.length - 1];
292
+ if ($ === void 0) {
290
293
  console.assert(!1, "invalid last key");
291
294
  return;
292
295
  }
293
- if (typeof U == "string") {
294
- const O = he(e.value, r.value.slice(0, -1));
295
- if (!O)
296
+ if (typeof $ == "string") {
297
+ const L = he(e.value, r.value.slice(0, -1));
298
+ if (!L)
296
299
  return;
297
- O[r.value[r.value.length - 1]] = J(V), o(r.value, O[r.value[r.value.length - 1]]);
300
+ L[r.value[r.value.length - 1]] = J(g), o(r.value, L[r.value[r.value.length - 1]]);
298
301
  } else {
299
- const O = he(e.value, r.value);
300
- if (!O)
302
+ const L = he(e.value, r.value);
303
+ if (!L)
301
304
  return;
302
- V.children.forEach((Q) => {
303
- O[Q.key] = J(V), o([...r.value, Q.key], O[Q.key]);
305
+ g.children.forEach((Q) => {
306
+ L[Q.key] = J(g), o([...r.value, Q.key], L[Q.key]);
304
307
  });
305
308
  }
306
309
  } else {
307
- const U = he(e.value, r.value);
308
- if (!U)
310
+ const $ = he(e.value, r.value);
311
+ if (!$)
309
312
  return;
310
- V.children.forEach((O) => {
311
- U[O.key] = J(V), o([...r.value, O.key], U[O.key]);
313
+ g.children.forEach((L) => {
314
+ $[L.key] = J(g), o([...r.value, L.key], $[L.key]);
312
315
  });
313
316
  }
314
317
  };
315
- D() && S.push({
318
+ b() && _.push({
316
319
  title: s("x-prop-tree.reset"),
317
- func: x
320
+ func: U
318
321
  });
319
- }, c = (S) => {
320
- const D = () => {
321
- const x = Ce(n.value, r.value), V = he(e.value, r.value);
322
- localStorage.setItem("propTreeCopy", JSON.stringify({ property: x, object: V }));
322
+ }, d = (_) => {
323
+ const b = () => {
324
+ const U = Ce(l.value, r.value), g = he(e.value, r.value);
325
+ localStorage.setItem("propTreeCopy", JSON.stringify({ property: U, object: g }));
323
326
  };
324
- S.push({
327
+ _.push({
325
328
  title: s("x-prop-tree.copy"),
326
- func: D
329
+ func: b
327
330
  });
328
- }, f = (S) => {
329
- const D = () => {
330
- const V = localStorage.getItem("propTreeCopy");
331
- if (!V)
331
+ }, f = (_) => {
332
+ const b = () => {
333
+ const g = localStorage.getItem("propTreeCopy");
334
+ if (!g)
332
335
  return !1;
333
336
  try {
334
- const { property: U } = JSON.parse(V);
335
- if (!U)
337
+ const { property: $ } = JSON.parse(g);
338
+ if (!$)
336
339
  return !1;
337
- const O = Ce(n.value, r.value);
338
- return Pt(U, O);
339
- } catch (U) {
340
- console.error(U);
340
+ const L = Ce(l.value, r.value);
341
+ return Pt($, L);
342
+ } catch ($) {
343
+ console.error($);
341
344
  }
342
345
  return !1;
343
- }, x = () => {
344
- if (!D())
346
+ }, U = () => {
347
+ if (!b())
345
348
  return;
346
- const V = localStorage.getItem("propTreeCopy");
347
- if (V)
349
+ const g = localStorage.getItem("propTreeCopy");
350
+ if (g)
348
351
  try {
349
- const { object: U } = JSON.parse(V), O = Ce(n.value, r.value);
350
- console.log(U, O);
351
- } catch (U) {
352
- console.error(U);
352
+ const { object: $ } = JSON.parse(g), L = Ce(l.value, r.value);
353
+ console.log($, L);
354
+ } catch ($) {
355
+ console.error($);
353
356
  }
354
357
  };
355
- D() && S.push({
358
+ b() && _.push({
356
359
  title: s("x-prop-tree.paste"),
357
- func: x
360
+ func: U
358
361
  });
359
- }, v = L(() => {
360
- const S = [];
361
- return d(S), c(S), f(S), S;
362
- }), C = (S) => {
363
- i.value = S.x, u.value = S.y, r.value = S.keys;
364
- }, { open: h } = _e("propTreeMenu", C);
365
- return (S, D) => {
366
- const x = $("v-list-item-title"), V = $("v-list-item"), U = $("v-list"), O = $("v-menu");
367
- return _(), B(O, {
368
- modelValue: P(h),
369
- "onUpdate:modelValue": D[0] || (D[0] = (Q) => re(h) ? h.value = Q : null),
362
+ }, v = N(() => {
363
+ const _ = [];
364
+ return c(_), d(_), f(_), _;
365
+ }), p = (_) => {
366
+ i.value = _.x, u.value = _.y, r.value = _.keys;
367
+ }, { open: C } = _e("propTreeMenu", p);
368
+ return (_, b) => {
369
+ const U = V("v-list-item-title"), g = V("v-list-item"), $ = V("v-list"), L = V("v-menu");
370
+ return S(), B(L, {
371
+ modelValue: D(C),
372
+ "onUpdate:modelValue": b[0] || (b[0] = (Q) => ce(C) ? C.value = Q : null),
370
373
  "location-strategy": "connected",
371
374
  scrim: "transparent",
372
375
  target: a.value
373
376
  }, {
374
377
  default: R(() => [
375
- b(U, null, {
378
+ P($, null, {
376
379
  default: R(() => [
377
- (_(!0), K(fe, null, Te(v.value, (Q, ge) => (_(), B(V, {
380
+ (S(!0), K(ve, null, Ae(v.value, (Q, ge) => (S(), B(g, {
378
381
  key: ge,
379
382
  link: "",
380
383
  onClick: Q.func
381
384
  }, {
382
385
  default: R(() => [
383
- b(x, null, {
386
+ P(U, null, {
384
387
  default: R(() => [
385
388
  ke(F(Q.title), 1)
386
389
  ]),
@@ -397,7 +400,7 @@ const Yt = /* @__PURE__ */ E({
397
400
  }, 8, ["modelValue", "target"]);
398
401
  };
399
402
  }
400
- }), Wt = { style: { pointerEvents: "none" } }, Ue = /* @__PURE__ */ E({
403
+ }), Zt = { style: { pointerEvents: "none" } }, Ue = /* @__PURE__ */ E({
401
404
  __name: "index",
402
405
  props: {
403
406
  title: {},
@@ -408,170 +411,200 @@ const Yt = /* @__PURE__ */ E({
408
411
  },
409
412
  emits: ["collapse", "menu", "create", "delete"],
410
413
  setup(t, { emit: s }) {
411
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
412
- background: o.value ? e.value : n.value,
414
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = s, o = A(!1), i = N(() => ({
415
+ background: o.value ? e.value : l.value,
413
416
  height: "36px",
414
417
  marginBottom: "1px",
415
418
  userSelect: "none"
416
419
  })), u = () => {
417
- l("collapse", !t.collapse);
420
+ n("collapse", !t.collapse);
418
421
  }, r = (a) => {
419
- l("menu", a.clientX, a.clientY);
422
+ n("menu", a.clientX, a.clientY);
420
423
  };
421
- return (a, d) => {
422
- const c = $("v-icon"), f = $("v-spacer"), v = $("v-btn"), C = ee("ripple");
423
- return j((_(), K("div", {
424
+ return (a, c) => {
425
+ const d = V("v-icon"), f = V("v-spacer"), v = V("v-btn"), p = I("ripple");
426
+ return j((S(), K("div", {
424
427
  class: "d-flex align-center cursor-pointer",
425
428
  style: W(i.value),
426
429
  onClick: u,
427
430
  onContextmenu: X(r, ["self", "prevent"]),
428
- onMouseout: d[2] || (d[2] = (h) => o.value = !1),
429
- onMouseover: d[3] || (d[3] = (h) => o.value = !0)
431
+ onMouseout: c[2] || (c[2] = (C) => o.value = !1),
432
+ onMouseover: c[3] || (c[3] = (C) => o.value = !0)
430
433
  }, [
431
- b(c, {
434
+ P(d, {
432
435
  class: "mr-1",
433
436
  icon: t.collapse ? "mdi-chevron-right" : "mdi-chevron-down"
434
437
  }, null, 8, ["icon"]),
435
- q("span", Wt, F(t.title), 1),
436
- b(f),
437
- t.hasCreate ? (_(), B(v, {
438
+ q("span", Zt, F(t.title), 1),
439
+ P(f),
440
+ t.hasCreate ? (S(), B(v, {
438
441
  key: 0,
439
442
  class: "mx-3",
440
443
  density: "compact",
441
444
  icon: "mdi-plus",
442
445
  variant: "text",
443
- onClick: d[0] || (d[0] = X((h) => l("create"), ["stop"]))
446
+ onClick: c[0] || (c[0] = X((C) => n("create"), ["stop"]))
444
447
  })) : G("", !0),
445
- t.hasDelete ? (_(), B(v, {
448
+ t.hasDelete ? (S(), B(v, {
446
449
  key: 1,
447
450
  class: "mx-3",
448
451
  density: "compact",
449
452
  icon: "mdi-minus",
450
453
  variant: "text",
451
- onClick: d[1] || (d[1] = X((h) => l("delete", t.index), ["stop"]))
454
+ onClick: c[1] || (c[1] = X((C) => n("delete", t.index), ["stop"]))
452
455
  })) : G("", !0)
453
456
  ], 36)), [
454
- [C]
457
+ [p]
455
458
  ]);
456
459
  };
457
460
  }
458
461
  });
459
- function Qt(t, s, n) {
460
- const { i18n: e } = xt, l = T([]);
461
- Gt(l);
462
+ function jt(t, s, l) {
463
+ const { i18n: e } = xt, n = A([]);
464
+ Wt(n);
462
465
  const o = () => {
463
- if (!t.value || !s.value || !n.value)
464
- return;
465
- const a = Ne[t.value];
466
- if (!a) {
467
- console.assert(!1, `invalid version=${t.value}`);
468
- return;
469
- }
470
- const d = Ut(s.value, n.value), c = [];
471
- for (let h = 0; h < a.groups[d].length; h++) {
472
- const S = a.groups[d][h], D = ve(l, S.key);
473
- c.push({
474
- id: S.key,
466
+ if (!t.value || !s.value || !l.value)
467
+ return [];
468
+ const c = qe[t.value];
469
+ if (!c)
470
+ return console.assert(!1, `invalid version=${t.value}`), [];
471
+ const d = Ut(s.value, l.value), f = [];
472
+ for (let _ = 0; _ < c.groups[d].length; _++) {
473
+ const b = c.groups[d][_], U = pe(n, b.key);
474
+ f.push({
475
+ id: b.key,
475
476
  type: 0,
476
- name: e.global.t(S.name),
477
- position: h,
478
- collapse: D?.collapse ?? !0,
477
+ name: e.global.t(b.name),
478
+ position: _,
479
+ collapse: U?.collapse ?? !0,
479
480
  count: 0
480
481
  });
481
- let x = 0;
482
- for (const V of S.items) {
483
- const U = $t[V];
484
- if (U && !U.internal && U.slots)
485
- for (const O of U.slots) {
486
- const Q = Re("elementSlot", U.key, O.key), ge = `${e.global.t(U.name)} / ${e.global.t(O.name)}`;
487
- c.push({
488
- id: Q,
482
+ let g = 0;
483
+ for (const $ of b.items) {
484
+ const L = $t[$];
485
+ if (L && !L.internal && L.slots)
486
+ for (const Q of L.slots) {
487
+ const ge = Xe("elementSlot", L.key, Q.key), Le = `${e.global.t(L.name)} / ${e.global.t(Q.name)}`;
488
+ f.push({
489
+ id: ge,
489
490
  type: 1,
490
- name: ge,
491
- position: x++,
492
- group: S.key
491
+ name: Le,
492
+ position: g++,
493
+ group: b.key
493
494
  });
494
495
  }
495
496
  }
496
497
  }
497
- const { activeApp: f, depends: v } = Qe.app;
498
- for (const { id: h, name: S, position: D } of f.compGroups) {
499
- const x = ve(l, h);
500
- c.push({
501
- id: h,
498
+ const { activeApp: v, depends: p } = Ke.app;
499
+ for (const { id: _, name: b, position: U } of v.compGroups) {
500
+ const g = pe(n, _);
501
+ f.push({
502
+ id: _,
502
503
  type: 0,
503
- name: S,
504
- position: D,
505
- collapse: x?.collapse ?? !0
504
+ name: b,
505
+ position: U,
506
+ collapse: g?.collapse ?? !0
506
507
  });
507
508
  }
508
509
  let C = 0;
509
- for (const h of f.comps) {
510
- const S = v[h.id];
511
- if (S && S.meta.slots)
512
- for (const D of S.meta.slots) {
513
- const x = Re("customSlot", h.id, D.id), V = `${h.name} / ${D.name}`;
514
- c.push({
515
- id: x,
510
+ for (const _ of v.comps) {
511
+ const b = p[_.id];
512
+ if (b && b.meta.slots)
513
+ for (const U of b.meta.slots) {
514
+ const g = Xe("customSlot", _.id, U.id), $ = `${_.name} / ${U.name}`;
515
+ f.push({
516
+ id: g,
516
517
  type: 1,
517
- name: V,
518
+ name: $,
518
519
  position: C++,
519
- group: h.groupId
520
+ group: _.groupId
520
521
  });
521
522
  }
522
523
  }
523
- Ye(c, !0), l.value = c;
524
+ return Qe(f, !0), f;
525
+ }, i = () => {
526
+ n.value = o();
524
527
  };
525
- let i;
526
- const u = () => {
527
- clearTimeout(i), i = window.setTimeout(() => {
528
- o(), i && u();
528
+ let u;
529
+ const r = () => {
530
+ clearTimeout(u), u = window.setTimeout(() => {
531
+ i(), u && r();
529
532
  }, 1e3);
530
- }, r = () => {
531
- clearTimeout(i), i = void 0;
533
+ }, a = () => {
534
+ clearTimeout(u), u = void 0;
532
535
  };
533
- He(() => {
534
- u();
535
- }), Xe(() => {
536
+ Ne(() => {
536
537
  r();
537
- }), oe([t, s, n], () => {
538
- o(), u();
538
+ }), Oe(() => {
539
+ a();
540
+ }), le([t, s, l], () => {
541
+ i(), r();
539
542
  });
540
543
  }
541
- function Zt() {
542
- const t = T([]);
543
- zt(t);
544
+ function It() {
545
+ const t = A([]);
546
+ Gt(t);
544
547
  const s = () => {
545
- const { activeApp: o, depends: i } = Qe.app, u = [];
546
- for (const { id: r, name: a, position: d } of o.compGroups) {
547
- const c = t.value.find((f) => f.id === r);
548
+ const { activeApp: o, depends: i } = Ke.app, u = [];
549
+ for (const { id: r, name: a, position: c } of o.compGroups) {
550
+ const d = t.value.find((f) => f.id === r);
548
551
  u.push({
549
552
  id: r,
550
553
  type: 0,
551
554
  name: a,
552
- position: d,
553
- collapse: c?.collapse ?? !0
555
+ position: c,
556
+ collapse: d?.collapse ?? !0
554
557
  });
555
558
  }
556
- for (const { id: r, groupId: a, name: d, position: c } of o.comps)
557
- i[r] && u.push({ id: r, type: 1, name: d, position: c, group: a });
558
- Ye(u, !0), t.value = u;
559
+ for (const { id: r, groupId: a, name: c, position: d } of o.comps)
560
+ i[r] && u.push({ id: r, type: 1, name: c, position: d, group: a });
561
+ Qe(u, !0), t.value = u;
559
562
  };
560
- let n;
563
+ let l;
561
564
  const e = () => {
562
- clearTimeout(n), n = window.setTimeout(() => {
563
- s(), n && e();
565
+ clearTimeout(l), l = window.setTimeout(() => {
566
+ s(), l && e();
564
567
  }, 1e3);
565
- }, l = () => {
566
- clearTimeout(n), n = void 0;
568
+ }, n = () => {
569
+ clearTimeout(l), l = void 0;
567
570
  };
568
- He(() => {
571
+ Ne(() => {
569
572
  e();
570
- }), Xe(() => {
571
- l();
573
+ }), Oe(() => {
574
+ n();
575
+ });
576
+ }
577
+ function en() {
578
+ const t = A([]);
579
+ Yt(t);
580
+ const s = () => {
581
+ const { activeObject: i, activeComp: u } = Ke.app;
582
+ if (i.type !== "comp")
583
+ return [];
584
+ if (!u.meta.slots)
585
+ return [];
586
+ const r = [];
587
+ for (const { id: a, name: c } of u.meta.slots)
588
+ r.push({ id: a, name: c });
589
+ return r;
590
+ }, l = () => {
591
+ t.value = s();
592
+ };
593
+ let e;
594
+ const n = () => {
595
+ clearTimeout(e), e = window.setTimeout(() => {
596
+ l(), e && n();
597
+ }, 1e3);
598
+ }, o = () => {
599
+ clearTimeout(e), e = void 0;
600
+ };
601
+ Ne(() => {
602
+ n();
603
+ }), Oe(() => {
604
+ o();
572
605
  });
573
606
  }
574
- const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PURE__ */ E({
607
+ const tn = { class: "d-flex justify-space-between align-center" }, nn = /* @__PURE__ */ E({
575
608
  __name: "index",
576
609
  props: /* @__PURE__ */ Z({
577
610
  hasDelete: { type: Boolean, default: !1 },
@@ -582,52 +615,52 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
582
615
  }),
583
616
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
584
617
  setup(t, { emit: s }) {
585
- const { t: n } = I(), e = z(t, "modelValue"), l = s, o = L(() => {
618
+ const { t: l } = oe(), e = z(t, "modelValue"), n = s, o = N(() => {
586
619
  let r = "100%";
587
620
  return t.hasDelete && (r = "calc(100% - 37px)"), {
588
621
  width: r
589
622
  };
590
- }), i = L(() => t.readonly), { open: u } = _e(`propTreeColorPickerMenu${$e()}`);
623
+ }), i = N(() => t.readonly), { open: u } = _e(`propTreeColorPickerMenu${$e()}`);
591
624
  return we(() => {
592
625
  u.value = !1;
593
626
  }), (r, a) => {
594
- const d = $("v-btn"), c = $("v-color-picker"), f = $("v-menu");
595
- return _(), B(f, {
596
- modelValue: P(u),
597
- "onUpdate:modelValue": a[2] || (a[2] = (v) => re(u) ? u.value = v : null),
627
+ const c = V("v-btn"), d = V("v-color-picker"), f = V("v-menu");
628
+ return S(), B(f, {
629
+ modelValue: D(u),
630
+ "onUpdate:modelValue": a[2] || (a[2] = (v) => ce(u) ? u.value = v : null),
598
631
  "close-on-content-click": !1,
599
632
  scrim: "transparent"
600
633
  }, {
601
634
  activator: R(({ props: v }) => [
602
- q("div", jt, [
635
+ q("div", tn, [
603
636
  q("div", {
604
637
  class: "flex-grow-1",
605
638
  style: W(o.value)
606
639
  }, [
607
- b(d, Me(v, {
640
+ P(c, be(v, {
608
641
  block: "",
609
642
  color: e.value,
610
643
  density: "comfortable",
611
644
  disabled: i.value
612
645
  }), {
613
646
  default: R(() => [
614
- ke(F(e.value ? e.value : P(n)("x-runtime-lib.notSet")), 1)
647
+ ke(F(e.value ? e.value : D(l)("x-runtime-lib.notSet")), 1)
615
648
  ]),
616
649
  _: 1
617
650
  }, 16, ["color", "disabled"])
618
651
  ], 4),
619
- t.hasDelete ? (_(), B(d, {
652
+ t.hasDelete ? (S(), B(c, {
620
653
  key: 0,
621
654
  class: "mx-2",
622
655
  density: "compact",
623
656
  icon: "mdi-minus",
624
657
  variant: "text",
625
- onClick: a[0] || (a[0] = X((C) => l("delete"), ["stop"]))
658
+ onClick: a[0] || (a[0] = X((p) => n("delete"), ["stop"]))
626
659
  })) : G("", !0)
627
660
  ])
628
661
  ]),
629
662
  default: R(() => [
630
- b(c, {
663
+ P(d, {
631
664
  modelValue: e.value,
632
665
  "onUpdate:modelValue": a[1] || (a[1] = (v) => e.value = v),
633
666
  mode: "hexa",
@@ -639,7 +672,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
639
672
  }, 8, ["modelValue"]);
640
673
  };
641
674
  }
642
- }), en = { class: "text-subtitle-2 ml-1" }, tn = { class: "text-caption text-grey ml-1" }, nn = /* @__PURE__ */ E({
675
+ }), ln = { class: "text-subtitle-2 ml-1" }, on = { class: "text-caption text-grey ml-1" }, sn = /* @__PURE__ */ E({
643
676
  __name: "group",
644
677
  props: {
645
678
  id: {},
@@ -649,33 +682,33 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
649
682
  },
650
683
  emits: ["x-click"],
651
684
  setup(t, { emit: s }) {
652
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
653
- background: i.value ? e.value : n.value,
685
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = t, o = s, i = A(!1), u = N(() => ({
686
+ background: i.value ? e.value : l.value,
654
687
  height: "30px",
655
688
  marginBottom: "1px",
656
689
  userSelect: "none"
657
690
  }));
658
691
  return (r, a) => {
659
- const d = $("v-icon"), c = ee("ripple");
660
- return j((_(), K("div", {
692
+ const c = V("v-icon"), d = I("ripple");
693
+ return j((S(), K("div", {
661
694
  class: "d-flex align-center cursor-pointer",
662
695
  style: W(u.value),
663
- onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
696
+ onClick: a[0] || (a[0] = (f) => o("x-click", n.id)),
664
697
  onMouseout: a[1] || (a[1] = (f) => i.value = !1),
665
698
  onMouseover: a[2] || (a[2] = (f) => i.value = !0)
666
699
  }, [
667
- b(d, {
668
- icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
700
+ P(c, {
701
+ icon: n.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
669
702
  size: "small"
670
703
  }, null, 8, ["icon"]),
671
- q("span", en, F(l.title), 1),
672
- q("span", tn, F(l.count), 1)
704
+ q("span", ln, F(n.title), 1),
705
+ q("span", on, F(n.count), 1)
673
706
  ], 36)), [
674
- [c]
707
+ [d]
675
708
  ]);
676
709
  };
677
710
  }
678
- }), ln = { class: "text-subtitle-1 ml-6" }, on = /* @__PURE__ */ E({
711
+ }), un = { class: "text-subtitle-1 ml-6" }, rn = /* @__PURE__ */ E({
679
712
  __name: "item",
680
713
  props: {
681
714
  id: {},
@@ -683,31 +716,31 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
683
716
  },
684
717
  emits: ["x-click"],
685
718
  setup(t, { emit: s }) {
686
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
687
- background: i.value ? e.value : n.value,
719
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = t, o = s, i = A(!1), u = N(() => ({
720
+ background: i.value ? e.value : l.value,
688
721
  height: "48px",
689
722
  marginBottom: "1px",
690
723
  userSelect: "none"
691
724
  }));
692
725
  return (r, a) => {
693
- const d = ee("ripple");
694
- return j((_(), K("div", {
726
+ const c = I("ripple");
727
+ return j((S(), K("div", {
695
728
  class: "d-flex align-center cursor-pointer",
696
729
  style: W(u.value),
697
- onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
698
- onMouseout: a[1] || (a[1] = (c) => i.value = !1),
699
- onMouseover: a[2] || (a[2] = (c) => i.value = !0)
730
+ onClick: a[0] || (a[0] = (d) => o("x-click", n.id)),
731
+ onMouseout: a[1] || (a[1] = (d) => i.value = !1),
732
+ onMouseover: a[2] || (a[2] = (d) => i.value = !0)
700
733
  }, [
701
- q("span", ln, F(l.title), 1)
734
+ q("span", un, F(n.title), 1)
702
735
  ], 36)), [
703
- [d]
736
+ [c]
704
737
  ]);
705
738
  };
706
739
  }
707
- }), sn = { key: 0 }, un = {
740
+ }), an = { key: 0 }, cn = {
708
741
  key: 1,
709
742
  class: "text-body-2 text-grey ml-3"
710
- }, rn = /* @__PURE__ */ E({
743
+ }, dn = /* @__PURE__ */ E({
711
744
  __name: "index",
712
745
  props: {
713
746
  modelValue: {},
@@ -717,17 +750,17 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
717
750
  },
718
751
  emits: ["update:modelValue", "update:open"],
719
752
  setup(t) {
720
- const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = st(), o = (u) => {
721
- const r = ve(l, u);
722
- r && We(l, u, !r.collapse);
753
+ const { nameList: s } = ue(), l = z(t, "modelValue"), e = z(t, "open"), n = it(), o = (u) => {
754
+ const r = pe(n, u);
755
+ r && Ze(n, u, !r.collapse);
723
756
  }, i = (u) => {
724
- n.value = u, e.value = !1, de.emit("refreshDepends");
757
+ l.value = u, e.value = !1, me.emit("refreshDepends");
725
758
  };
726
- return (u, r) => P(l).length > 0 ? (_(), K("div", sn, [
727
- (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
759
+ return (u, r) => D(n).length > 0 ? (S(), K("div", an, [
760
+ (S(!0), K(ve, null, Ae(D(n), (a) => (S(), K(ve, {
728
761
  key: a.id
729
762
  }, [
730
- a.type === 0 ? (_(), B(nn, {
763
+ a.type === 0 ? (S(), B(sn, {
731
764
  key: 0,
732
765
  id: a.id,
733
766
  collapse: a.collapse,
@@ -735,16 +768,16 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
735
768
  title: a.name,
736
769
  onXClick: o
737
770
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
738
- a.type === 1 && a.show ? (_(), B(on, {
771
+ a.type === 1 && a.show ? (S(), B(rn, {
739
772
  key: 1,
740
773
  id: a.id,
741
774
  title: a.name,
742
775
  onXClick: i
743
776
  }, null, 8, ["id", "title"])) : G("", !0)
744
777
  ], 64))), 128))
745
- ])) : (_(), K("div", un, F(P(s)("x-prop-tree.noComp")), 1));
778
+ ])) : (S(), K("div", cn, F(D(s)(["no", "comp"])), 1));
746
779
  }
747
- }), an = { class: "text-subtitle-1 ml-3" }, cn = /* @__PURE__ */ E({
780
+ }), mn = { class: "text-subtitle-1 ml-3" }, fn = /* @__PURE__ */ E({
748
781
  __name: "index",
749
782
  props: {
750
783
  modelValue: {},
@@ -752,42 +785,42 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
752
785
  },
753
786
  emits: ["update:modelValue"],
754
787
  setup(t) {
755
- const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = st(), u = L(() => {
756
- let f = "100%";
757
- return n.mdAndUp.value && (f = "400px"), {
758
- background: l.value,
759
- width: f,
788
+ const { t: s } = oe(), l = je(), { sysBarAvail: e, nameList: n } = ue(), { backgroundColor1: o } = ee(), i = z(t, "modelValue"), u = it(), r = N(() => {
789
+ let v = "100%";
790
+ return l.mdAndUp.value && (v = "400px"), {
791
+ background: o.value,
792
+ width: v,
760
793
  height: "100%"
761
794
  };
762
- }), r = L(() => {
763
- let f = 48;
764
- return e.value && (f += 24), {
795
+ }), a = N(() => {
796
+ let v = 48;
797
+ return e.value && (v += 24), {
765
798
  position: "relative",
766
- height: `calc(100% - ${f}px)`
799
+ height: `calc(100% - ${v}px)`
767
800
  };
768
- }), a = L(() => ({
801
+ }), c = N(() => ({
769
802
  height: "60px"
770
- })), d = L(() => {
771
- if (!o.value)
803
+ })), d = N(() => {
804
+ if (!i.value)
772
805
  return s("x-runtime-lib.notSet");
773
- const f = ve(i, o.value);
774
- return f ? f.name : s("x-runtime-lib.compNotAvail");
775
- }), { open: c } = _e(`propTreeCompSelectDlg${$e()}`);
806
+ const v = pe(u, i.value);
807
+ return v ? v.name : s("x-runtime-lib.compNotAvail");
808
+ }), { open: f } = _e(`propTreeCompSelectDlg${$e()}`);
776
809
  return we(() => {
777
- c.value = !1;
778
- }), (f, v) => {
779
- const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
780
- return _(), B(D, {
781
- modelValue: P(c),
782
- "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
810
+ f.value = !1;
811
+ }), (v, p) => {
812
+ const C = V("v-btn"), _ = V("v-sheet"), b = V("v-icon"), U = V("v-dialog");
813
+ return S(), B(U, {
814
+ modelValue: D(f),
815
+ "onUpdate:modelValue": p[5] || (p[5] = (g) => ce(f) ? f.value = g : null),
783
816
  fullscreen: "",
784
817
  "no-click-animation": "",
785
818
  persistent: "",
786
819
  transition: "scroll-x-reverse-transition",
787
- onKeydown: v[6] || (v[6] = Le(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
820
+ onKeydown: p[6] || (p[6] = Be(X((g) => f.value = !1, ["stop", "prevent"]), ["esc"]))
788
821
  }, {
789
- activator: R(({ props: x }) => [
790
- b(C, Me(x, {
822
+ activator: R(({ props: g }) => [
823
+ P(C, be(g, {
791
824
  block: "",
792
825
  density: "comfortable"
793
826
  }), {
@@ -800,44 +833,44 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
800
833
  default: R(() => [
801
834
  q("div", {
802
835
  class: "w-100 h-100 d-flex flex-row-reverse",
803
- onClick: v[3] || (v[3] = X((x) => c.value = !1, ["self"])),
804
- onContextmenu: v[4] || (v[4] = X((x) => c.value = !1, ["self", "prevent"]))
836
+ onClick: p[3] || (p[3] = X((g) => f.value = !1, ["self"])),
837
+ onContextmenu: p[4] || (p[4] = X((g) => f.value = !1, ["self", "prevent"]))
805
838
  }, [
806
839
  q("div", {
807
840
  class: "elevation-2",
808
- style: W(u.value)
841
+ style: W(r.value)
809
842
  }, [
810
- P(e) ? (_(), B(h, {
843
+ D(e) ? (S(), B(_, {
811
844
  key: 0,
812
845
  color: "transparent",
813
846
  height: 24
814
847
  })) : G("", !0),
815
- b(h, {
848
+ P(_, {
816
849
  class: "d-flex align-center px-3",
817
850
  color: "transparent",
818
851
  height: 48
819
852
  }, {
820
853
  default: R(() => [
821
- b(S, {
854
+ P(b, {
822
855
  icon: "mdi-close",
823
- onClick: v[0] || (v[0] = (x) => c.value = !1)
856
+ onClick: p[0] || (p[0] = (g) => f.value = !1)
824
857
  }),
825
- q("span", an, F(P(s)("x-prop-tree.dlg.compSelect.title")), 1)
858
+ q("span", mn, F(D(n)(["select", "comp"])), 1)
826
859
  ]),
827
860
  _: 1
828
861
  }),
829
862
  q("div", {
830
863
  class: "overflow-y-auto",
831
- style: W(r.value)
864
+ style: W(a.value)
832
865
  }, [
833
- b(rn, {
834
- modelValue: o.value,
835
- "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
836
- open: P(c),
837
- "onUpdate:open": v[2] || (v[2] = (x) => re(c) ? c.value = x : null)
866
+ P(dn, {
867
+ modelValue: i.value,
868
+ "onUpdate:modelValue": p[1] || (p[1] = (g) => i.value = g),
869
+ open: D(f),
870
+ "onUpdate:open": p[2] || (p[2] = (g) => ce(f) ? f.value = g : null)
838
871
  }, null, 8, ["modelValue", "open"]),
839
872
  q("div", {
840
- style: W(a.value)
873
+ style: W(c.value)
841
874
  }, null, 4)
842
875
  ], 4)
843
876
  ], 4)
@@ -847,7 +880,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
847
880
  }, 8, ["modelValue"]);
848
881
  };
849
882
  }
850
- }), dn = /* @__PURE__ */ E({
883
+ }), vn = /* @__PURE__ */ E({
851
884
  __name: "editor",
852
885
  props: {
853
886
  modelValue: { required: !0 },
@@ -859,28 +892,28 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
859
892
  },
860
893
  emits: ["update:modelValue", "update:lock", "update:scale"],
861
894
  setup(t, { expose: s }) {
862
- const n = z(t, "modelValue"), e = z(t, "lock"), l = z(t, "scale"), o = St(), i = Vt(), u = Oe(), r = Fe("target"), a = () => {
863
- const c = JSON.parse(n.value);
864
- r.value?.load(c);
895
+ const l = z(t, "modelValue"), e = z(t, "lock"), n = z(t, "scale"), o = St(), i = Vt(), u = Ee(), r = Ge("target"), a = () => {
896
+ const d = JSON.parse(l.value);
897
+ r.value?.load(d);
865
898
  };
866
899
  return s({ save: () => {
867
- const c = r.value.save();
868
- n.value = JSON.stringify(c, null, 2);
869
- } }), (c, f) => (_(), B(P(bt), {
900
+ const d = r.value.save();
901
+ l.value = JSON.stringify(d, null, 2);
902
+ } }), (d, f) => (S(), B(D(Mt), {
870
903
  ref_key: "target",
871
904
  ref: r,
872
905
  lock: e.value,
873
906
  "onUpdate:lock": f[0] || (f[0] = (v) => e.value = v),
874
- scale: l.value,
875
- "onUpdate:scale": f[1] || (f[1] = (v) => l.value = v),
876
- dark: P(o),
877
- locale: P(i),
907
+ scale: n.value,
908
+ "onUpdate:scale": f[1] || (f[1] = (v) => n.value = v),
909
+ dark: D(o),
910
+ locale: D(i),
878
911
  type: "json",
879
- version: P(u),
912
+ version: D(u),
880
913
  onReady: a
881
914
  }, null, 8, ["lock", "scale", "dark", "locale", "version"]));
882
915
  }
883
- }), mn = { class: "text-subtitle-1" }, fn = /* @__PURE__ */ E({
916
+ }), pn = { class: "text-subtitle-1" }, gn = /* @__PURE__ */ E({
884
917
  __name: "index",
885
918
  props: {
886
919
  modelValue: { required: !0 },
@@ -888,84 +921,84 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
888
921
  },
889
922
  emits: ["update:modelValue"],
890
923
  setup(t) {
891
- const { t: s } = I(), { sysBarAvail: n } = pe(), { backgroundColor0: e, backgroundColor1: l, backgroundColor2: o } = te(), i = z(t, "modelValue"), u = T(!1), r = T(1), a = L(() => {
924
+ const { t: s } = oe(), { sysBarAvail: l } = ue(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: o } = ee(), i = z(t, "modelValue"), u = A(!1), r = A(1), a = N(() => {
892
925
  let v = 48;
893
- return n.value && (v += 24), {
926
+ return l.value && (v += 24), {
894
927
  position: "relative",
895
- background: l.value,
928
+ background: n.value,
896
929
  height: `calc(100% - ${v}px)`
897
930
  };
898
- }), d = L(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: c } = _e(`propTreejsonEditorDlg${$e()}`);
931
+ }), c = N(() => s("x-prop-tree.dlg.jsonEditor.title")), { open: d } = _e(`propTreejsonEditorDlg${$e()}`);
899
932
  we(() => {
900
- c.value = !1;
933
+ d.value = !1;
901
934
  });
902
- const f = Fe("editor");
903
- return oe(c, (v) => {
935
+ const f = Ge("editor");
936
+ return le(d, (v) => {
904
937
  v || f.value?.save();
905
- }), (v, C) => {
906
- const h = $("v-btn"), S = $("v-sheet"), D = $("v-spacer"), x = $("v-dialog");
907
- return _(), B(x, {
908
- modelValue: P(c),
909
- "onUpdate:modelValue": C[4] || (C[4] = (V) => re(c) ? c.value = V : null),
938
+ }), (v, p) => {
939
+ const C = V("v-btn"), _ = V("v-sheet"), b = V("v-spacer"), U = V("v-dialog");
940
+ return S(), B(U, {
941
+ modelValue: D(d),
942
+ "onUpdate:modelValue": p[4] || (p[4] = (g) => ce(d) ? d.value = g : null),
910
943
  attach: "",
911
944
  fullscreen: "",
912
945
  "no-click-animation": "",
913
946
  persistent: "",
914
947
  transition: "dialog-bottom-transition",
915
- onKeydown: C[5] || (C[5] = Le(X((V) => c.value = !1, ["stop", "prevent"]), ["esc"]))
948
+ onKeydown: p[5] || (p[5] = Be(X((g) => d.value = !1, ["stop", "prevent"]), ["esc"]))
916
949
  }, {
917
- activator: R(({ props: V }) => [
918
- b(h, Me(V, {
950
+ activator: R(({ props: g }) => [
951
+ P(C, be(g, {
919
952
  block: "",
920
953
  density: "comfortable"
921
954
  }), {
922
955
  default: R(() => [
923
- ke(F(d.value), 1)
956
+ ke(F(c.value), 1)
924
957
  ]),
925
958
  _: 1
926
959
  }, 16)
927
960
  ]),
928
961
  default: R(() => [
929
- b(S, {
930
- color: P(e),
962
+ P(_, {
963
+ color: D(e),
931
964
  height: "100%",
932
965
  width: "100%"
933
966
  }, {
934
967
  default: R(() => [
935
- P(n) ? (_(), B(S, {
968
+ D(l) ? (S(), B(_, {
936
969
  key: 0,
937
- color: P(o),
970
+ color: D(o),
938
971
  height: 24
939
972
  }, null, 8, ["color"])) : G("", !0),
940
- b(S, {
973
+ P(_, {
941
974
  class: "d-flex align-center px-2",
942
- color: P(o),
975
+ color: D(o),
943
976
  height: 48
944
977
  }, {
945
978
  default: R(() => [
946
- b(h, {
979
+ P(C, {
947
980
  density: "comfortable",
948
981
  icon: "mdi-close",
949
982
  variant: "text",
950
- onClick: C[0] || (C[0] = (V) => c.value = !1)
983
+ onClick: p[0] || (p[0] = (g) => d.value = !1)
951
984
  }),
952
- q("span", mn, F(P(s)("x-prop-tree.dlg.jsonEditor.title")), 1),
953
- b(D)
985
+ q("span", pn, F(D(s)("x-prop-tree.jsonEditor")), 1),
986
+ P(b)
954
987
  ]),
955
988
  _: 1
956
989
  }, 8, ["color"]),
957
990
  q("div", {
958
991
  style: W(a.value)
959
992
  }, [
960
- b(dn, {
993
+ P(vn, {
961
994
  ref_key: "editor",
962
995
  ref: f,
963
996
  modelValue: i.value,
964
- "onUpdate:modelValue": C[1] || (C[1] = (V) => i.value = V),
997
+ "onUpdate:modelValue": p[1] || (p[1] = (g) => i.value = g),
965
998
  lock: u.value,
966
- "onUpdate:lock": C[2] || (C[2] = (V) => u.value = V),
999
+ "onUpdate:lock": p[2] || (p[2] = (g) => u.value = g),
967
1000
  scale: r.value,
968
- "onUpdate:scale": C[3] || (C[3] = (V) => r.value = V)
1001
+ "onUpdate:scale": p[3] || (p[3] = (g) => r.value = g)
969
1002
  }, null, 8, ["modelValue", "lock", "scale"])
970
1003
  ], 4)
971
1004
  ]),
@@ -976,7 +1009,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
976
1009
  }, 8, ["modelValue"]);
977
1010
  };
978
1011
  }
979
- }), vn = { class: "d-flex justify-space-between align-center my-2" }, pn = { class: "flex-grow-1" }, gn = /* @__PURE__ */ E({
1012
+ }), yn = { class: "d-flex justify-space-between align-center my-2" }, hn = { class: "flex-grow-1" }, kn = /* @__PURE__ */ E({
980
1013
  __name: "index",
981
1014
  props: /* @__PURE__ */ Z({
982
1015
  hasDelete: { type: Boolean, default: !1 },
@@ -987,46 +1020,46 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
987
1020
  }),
988
1021
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
989
1022
  setup(t, { emit: s }) {
990
- const { t: n } = I(), { isMobile: e } = pe(), l = z(t, "modelValue"), o = s, i = Oe(), u = L(() => Ne[i.value].types[t.types]), r = T(0), a = L(() => {
991
- const C = [];
992
- return u.value?.forEach(({ title: h }, S) => {
993
- C.push({
994
- title: n(h),
995
- value: S
1023
+ const { t: l } = oe(), { isMobile: e } = ue(), n = z(t, "modelValue"), o = s, i = Ee(), u = N(() => qe[i.value].types[t.types]), r = A(0), a = N(() => {
1024
+ const p = [];
1025
+ return u.value?.forEach(({ title: C }, _) => {
1026
+ p.push({
1027
+ title: l(C),
1028
+ value: _
996
1029
  });
997
- }), C;
1030
+ }), p;
998
1031
  });
999
- Ke(() => {
1000
- u.value?.some((C, h) => C.validator(l.value) ? (r.value = h, !0) : !1);
1032
+ He(() => {
1033
+ u.value?.some((p, C) => p.validator(n.value) ? (r.value = C, !0) : !1);
1001
1034
  });
1002
- const d = L(() => u.value?.[r.value]), c = () => {
1003
- l.value = d.value?.default;
1004
- }, f = T(0), v = async (C) => {
1005
- if (!C || !e() || d.value.ui !== "pixelInput" && d.value.ui !== "percentInput")
1035
+ const c = N(() => u.value?.[r.value]), d = () => {
1036
+ n.value = c.value?.default;
1037
+ }, f = A(0), v = async (p) => {
1038
+ if (!p || !e() || c.value.ui !== "pixelInput" && c.value.ui !== "percentInput")
1006
1039
  return;
1007
- const h = await ze({
1040
+ const C = await Ye({
1008
1041
  title: "",
1009
1042
  value: f.value,
1010
- precision: d.value.precision,
1011
- min: d.value.min,
1012
- max: d.value.max,
1013
- step: d.value.step
1043
+ precision: c.value.precision,
1044
+ min: c.value.min,
1045
+ max: c.value.max,
1046
+ step: c.value.step
1014
1047
  });
1015
- h !== void 0 && (f.value = h);
1048
+ C !== void 0 && (f.value = C);
1016
1049
  };
1017
- return Ke(() => {
1018
- d.value?.ui === "pixelInput" ? f.value = wt(l.value) : d.value?.ui === "percentInput" && (f.value = Mt(l.value));
1019
- }), oe(f, (C) => {
1020
- d.value?.ui === "pixelInput" ? l.value = C + "px" : d.value?.ui === "percentInput" && (l.value = C + "%");
1021
- }), (C, h) => {
1022
- const S = $("v-select"), D = $("v-number-input"), x = $("v-btn"), V = ee("ripple");
1023
- return _(), K("div", vn, [
1024
- q("div", pn, [
1025
- j(b(S, {
1050
+ return He(() => {
1051
+ c.value?.ui === "pixelInput" ? f.value = wt(n.value) : c.value?.ui === "percentInput" && (f.value = bt(n.value));
1052
+ }), le(f, (p) => {
1053
+ c.value?.ui === "pixelInput" ? n.value = p + "px" : c.value?.ui === "percentInput" && (n.value = p + "%");
1054
+ }), (p, C) => {
1055
+ const _ = V("v-select"), b = V("v-number-input"), U = V("v-btn"), g = I("ripple");
1056
+ return S(), K("div", yn, [
1057
+ q("div", hn, [
1058
+ j(P(_, {
1026
1059
  modelValue: r.value,
1027
1060
  "onUpdate:modelValue": [
1028
- h[0] || (h[0] = (U) => r.value = U),
1029
- c
1061
+ C[0] || (C[0] = ($) => r.value = $),
1062
+ d
1030
1063
  ],
1031
1064
  density: "compact",
1032
1065
  "hide-details": "",
@@ -1034,46 +1067,46 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1034
1067
  "single-line": ""
1035
1068
  }, null, 8, ["modelValue", "items"]), [
1036
1069
  [
1037
- V,
1070
+ g,
1038
1071
  void 0,
1039
1072
  void 0,
1040
1073
  { stop: !0 }
1041
1074
  ]
1042
1075
  ]),
1043
- d.value?.ui === "pixelInput" || d.value?.ui === "percentInput" ? j((_(), B(D, {
1076
+ c.value?.ui === "pixelInput" || c.value?.ui === "percentInput" ? j((S(), B(b, {
1044
1077
  key: 0,
1045
1078
  modelValue: f.value,
1046
- "onUpdate:modelValue": h[1] || (h[1] = (U) => f.value = U),
1079
+ "onUpdate:modelValue": C[1] || (C[1] = ($) => f.value = $),
1047
1080
  "control-variant": "stacked",
1048
1081
  density: "compact",
1049
1082
  "hide-details": "",
1050
- max: d.value.max,
1051
- min: d.value.min,
1052
- precision: d.value.precision,
1083
+ max: c.value.max,
1084
+ min: c.value.min,
1085
+ precision: c.value.precision,
1053
1086
  "single-line": "",
1054
- step: d.value.step,
1087
+ step: c.value.step,
1055
1088
  "onUpdate:focused": v
1056
1089
  }, null, 8, ["modelValue", "max", "min", "precision", "step"])), [
1057
1090
  [
1058
- V,
1091
+ g,
1059
1092
  void 0,
1060
1093
  void 0,
1061
1094
  { stop: !0 }
1062
1095
  ]
1063
1096
  ]) : G("", !0)
1064
1097
  ]),
1065
- t.hasDelete ? (_(), B(x, {
1098
+ t.hasDelete ? (S(), B(U, {
1066
1099
  key: 0,
1067
1100
  class: "mx-2",
1068
1101
  density: "compact",
1069
1102
  icon: "mdi-minus",
1070
1103
  variant: "text",
1071
- onClick: h[2] || (h[2] = X((U) => o("delete"), ["stop"]))
1104
+ onClick: C[2] || (C[2] = X(($) => o("delete"), ["stop"]))
1072
1105
  })) : G("", !0)
1073
1106
  ]);
1074
1107
  };
1075
1108
  }
1076
- }), yn = { class: "d-flex justify-space-between align-center" }, hn = /* @__PURE__ */ E({
1109
+ }), _n = { class: "d-flex justify-space-between align-center" }, xn = /* @__PURE__ */ E({
1077
1110
  __name: "index",
1078
1111
  props: /* @__PURE__ */ Z({
1079
1112
  hasDelete: { type: Boolean, default: !1 },
@@ -1089,10 +1122,10 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1089
1122
  }),
1090
1123
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1091
1124
  setup(t, { emit: s }) {
1092
- const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1093
- if (!i || t.readonly || !n())
1125
+ const { isMobile: l } = ue(), e = z(t, "modelValue"), n = s, o = async (i) => {
1126
+ if (!i || t.readonly || !l())
1094
1127
  return;
1095
- const u = await ze({
1128
+ const u = await Ye({
1096
1129
  title: "",
1097
1130
  value: e.value,
1098
1131
  precision: t.precision,
@@ -1103,11 +1136,11 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1103
1136
  u !== void 0 && (e.value = u);
1104
1137
  };
1105
1138
  return (i, u) => {
1106
- const r = $("v-number-input"), a = $("v-btn"), d = ee("ripple");
1107
- return _(), K("div", yn, [
1108
- j(b(r, {
1139
+ const r = V("v-number-input"), a = V("v-btn"), c = I("ripple");
1140
+ return S(), K("div", _n, [
1141
+ j(P(r, {
1109
1142
  modelValue: e.value,
1110
- "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1143
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => e.value = d),
1111
1144
  "control-variant": "stacked",
1112
1145
  density: "compact",
1113
1146
  "hide-details": "",
@@ -1120,24 +1153,24 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1120
1153
  "onUpdate:focused": o
1121
1154
  }, null, 8, ["modelValue", "max", "min", "precision", "readonly", "step"]), [
1122
1155
  [
1123
- d,
1156
+ c,
1124
1157
  void 0,
1125
1158
  void 0,
1126
1159
  { stop: !0 }
1127
1160
  ]
1128
1161
  ]),
1129
- t.hasDelete ? (_(), B(a, {
1162
+ t.hasDelete ? (S(), B(a, {
1130
1163
  key: 0,
1131
1164
  class: "mx-2",
1132
1165
  density: "compact",
1133
1166
  icon: "mdi-minus",
1134
1167
  variant: "text",
1135
- onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1168
+ onClick: u[1] || (u[1] = X((d) => n("delete"), ["stop"]))
1136
1169
  })) : G("", !0)
1137
1170
  ]);
1138
1171
  };
1139
1172
  }
1140
- }), kn = { class: "d-flex justify-space-between align-center" }, _n = /* @__PURE__ */ E({
1173
+ }), Sn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PURE__ */ E({
1141
1174
  __name: "index",
1142
1175
  props: /* @__PURE__ */ Z({
1143
1176
  hasDelete: { type: Boolean, default: !1 },
@@ -1149,16 +1182,16 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1149
1182
  }),
1150
1183
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1151
1184
  setup(t, { emit: s }) {
1152
- const { t: n } = I(), e = z(t, "modelValue"), l = s, o = Oe(), i = L(() => {
1185
+ const { t: l } = oe(), e = z(t, "modelValue"), n = s, o = Ee(), i = N(() => {
1153
1186
  const u = [];
1154
- return Ne[o.value].items[t.items].forEach(({ title: a, value: d }) => {
1155
- u.push({ title: n(a), value: d });
1187
+ return qe[o.value].items[t.items].forEach(({ title: a, value: c }) => {
1188
+ u.push({ title: l(a), value: c });
1156
1189
  }), u;
1157
1190
  });
1158
1191
  return (u, r) => {
1159
- const a = $("v-select"), d = $("v-btn"), c = ee("ripple");
1160
- return _(), K("div", kn, [
1161
- j(b(a, {
1192
+ const a = V("v-select"), c = V("v-btn"), d = I("ripple");
1193
+ return S(), K("div", Sn, [
1194
+ j(P(a, {
1162
1195
  modelValue: e.value,
1163
1196
  "onUpdate:modelValue": r[0] || (r[0] = (f) => e.value = f),
1164
1197
  density: "compact",
@@ -1168,24 +1201,24 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1168
1201
  "single-line": ""
1169
1202
  }, null, 8, ["modelValue", "items", "readonly"]), [
1170
1203
  [
1171
- c,
1204
+ d,
1172
1205
  void 0,
1173
1206
  void 0,
1174
1207
  { stop: !0 }
1175
1208
  ]
1176
1209
  ]),
1177
- t.hasDelete ? (_(), B(d, {
1210
+ t.hasDelete ? (S(), B(c, {
1178
1211
  key: 0,
1179
1212
  class: "mx-2",
1180
1213
  density: "compact",
1181
1214
  icon: "mdi-minus",
1182
1215
  variant: "text",
1183
- onClick: r[1] || (r[1] = X((f) => l("delete"), ["stop"]))
1216
+ onClick: r[1] || (r[1] = X((f) => n("delete"), ["stop"]))
1184
1217
  })) : G("", !0)
1185
1218
  ]);
1186
1219
  };
1187
1220
  }
1188
- }), xn = { class: "text-subtitle-2 ml-1" }, Sn = { class: "text-caption text-grey ml-1" }, Vn = /* @__PURE__ */ E({
1221
+ }), Cn = { class: "text-subtitle-2 ml-1" }, Un = { class: "text-caption text-grey ml-1" }, $n = /* @__PURE__ */ E({
1189
1222
  __name: "group",
1190
1223
  props: {
1191
1224
  id: {},
@@ -1195,33 +1228,33 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1195
1228
  },
1196
1229
  emits: ["x-click"],
1197
1230
  setup(t, { emit: s }) {
1198
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1199
- background: i.value ? e.value : n.value,
1231
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = t, o = s, i = A(!1), u = N(() => ({
1232
+ background: i.value ? e.value : l.value,
1200
1233
  height: "30px",
1201
1234
  marginBottom: "1px",
1202
1235
  userSelect: "none"
1203
1236
  }));
1204
1237
  return (r, a) => {
1205
- const d = $("v-icon"), c = ee("ripple");
1206
- return j((_(), K("div", {
1238
+ const c = V("v-icon"), d = I("ripple");
1239
+ return j((S(), K("div", {
1207
1240
  class: "d-flex align-center cursor-pointer",
1208
1241
  style: W(u.value),
1209
- onClick: a[0] || (a[0] = (f) => o("x-click", l.id)),
1242
+ onClick: a[0] || (a[0] = (f) => o("x-click", n.id)),
1210
1243
  onMouseout: a[1] || (a[1] = (f) => i.value = !1),
1211
1244
  onMouseover: a[2] || (a[2] = (f) => i.value = !0)
1212
1245
  }, [
1213
- b(d, {
1214
- icon: l.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1246
+ P(c, {
1247
+ icon: n.collapse ? "mdi-chevron-right" : "mdi-chevron-down",
1215
1248
  size: "small"
1216
1249
  }, null, 8, ["icon"]),
1217
- q("span", xn, F(l.title), 1),
1218
- q("span", Sn, F(l.count), 1)
1250
+ q("span", Cn, F(n.title), 1),
1251
+ q("span", Un, F(n.count), 1)
1219
1252
  ], 36)), [
1220
- [c]
1253
+ [d]
1221
1254
  ]);
1222
1255
  };
1223
1256
  }
1224
- }), Cn = { class: "text-subtitle-1 ml-6" }, Un = /* @__PURE__ */ E({
1257
+ }), wn = { class: "text-subtitle-1 ml-6" }, bn = /* @__PURE__ */ E({
1225
1258
  __name: "item",
1226
1259
  props: {
1227
1260
  id: {},
@@ -1229,31 +1262,31 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1229
1262
  },
1230
1263
  emits: ["x-click"],
1231
1264
  setup(t, { emit: s }) {
1232
- const { backgroundColor2: n, highlightColor: e } = te(), l = t, o = s, i = T(!1), u = L(() => ({
1233
- background: i.value ? e.value : n.value,
1265
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = t, o = s, i = A(!1), u = N(() => ({
1266
+ background: i.value ? e.value : l.value,
1234
1267
  height: "48px",
1235
1268
  marginBottom: "1px",
1236
1269
  userSelect: "none"
1237
1270
  }));
1238
1271
  return (r, a) => {
1239
- const d = ee("ripple");
1240
- return j((_(), K("div", {
1272
+ const c = I("ripple");
1273
+ return j((S(), K("div", {
1241
1274
  class: "d-flex align-center cursor-pointer",
1242
1275
  style: W(u.value),
1243
- onClick: a[0] || (a[0] = (c) => o("x-click", l.id)),
1244
- onMouseout: a[1] || (a[1] = (c) => i.value = !1),
1245
- onMouseover: a[2] || (a[2] = (c) => i.value = !0)
1276
+ onClick: a[0] || (a[0] = (d) => o("x-click", n.id)),
1277
+ onMouseout: a[1] || (a[1] = (d) => i.value = !1),
1278
+ onMouseover: a[2] || (a[2] = (d) => i.value = !0)
1246
1279
  }, [
1247
- q("span", Cn, F(l.title), 1)
1280
+ q("span", wn, F(n.title), 1)
1248
1281
  ], 36)), [
1249
- [d]
1282
+ [c]
1250
1283
  ]);
1251
1284
  };
1252
1285
  }
1253
- }), $n = { key: 0 }, wn = {
1286
+ }), Mn = { key: 0 }, Pn = {
1254
1287
  key: 1,
1255
1288
  class: "text-body-2 text-grey ml-3"
1256
- }, Mn = /* @__PURE__ */ E({
1289
+ }, Dn = /* @__PURE__ */ E({
1257
1290
  __name: "index",
1258
1291
  props: {
1259
1292
  modelValue: {},
@@ -1263,17 +1296,17 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1263
1296
  },
1264
1297
  emits: ["update:modelValue", "update:open"],
1265
1298
  setup(t) {
1266
- const { t: s } = I(), n = z(t, "modelValue"), e = z(t, "open"), l = it(), o = (u) => {
1267
- const r = ve(l, u);
1268
- r && We(l, u, !r.collapse);
1299
+ const { nameList: s } = ue(), l = z(t, "modelValue"), e = z(t, "open"), n = ut(), o = (u) => {
1300
+ const r = pe(n, u);
1301
+ r && Ze(n, u, !r.collapse);
1269
1302
  }, i = (u) => {
1270
- n.value = u, e.value = !1;
1303
+ l.value = u, e.value = !1;
1271
1304
  };
1272
- return (u, r) => P(l).length > 0 ? (_(), K("div", $n, [
1273
- (_(!0), K(fe, null, Te(P(l), (a) => (_(), K(fe, {
1305
+ return (u, r) => D(n).length > 0 ? (S(), K("div", Mn, [
1306
+ (S(!0), K(ve, null, Ae(D(n), (a) => (S(), K(ve, {
1274
1307
  key: a.id
1275
1308
  }, [
1276
- a.type === 0 ? (_(), B(Vn, {
1309
+ a.type === 0 ? (S(), B($n, {
1277
1310
  key: 0,
1278
1311
  id: a.id,
1279
1312
  collapse: a.collapse,
@@ -1281,16 +1314,16 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1281
1314
  title: a.name,
1282
1315
  onXClick: o
1283
1316
  }, null, 8, ["id", "collapse", "count", "title"])) : G("", !0),
1284
- a.type === 1 && a.show ? (_(), B(Un, {
1317
+ a.type === 1 && a.show ? (S(), B(bn, {
1285
1318
  key: 1,
1286
1319
  id: a.id,
1287
1320
  title: a.name,
1288
1321
  onXClick: i
1289
1322
  }, null, 8, ["id", "title"])) : G("", !0)
1290
1323
  ], 64))), 128))
1291
- ])) : (_(), K("div", wn, F(P(s)("x-prop-tree.noSlot")), 1));
1324
+ ])) : (S(), K("div", Pn, F(D(s)(["no", "slot"])), 1));
1292
1325
  }
1293
- }), bn = { class: "text-subtitle-1 ml-3" }, Pn = /* @__PURE__ */ E({
1326
+ }), Ln = { class: "text-subtitle-1 ml-3" }, Tn = /* @__PURE__ */ E({
1294
1327
  __name: "index",
1295
1328
  props: {
1296
1329
  modelValue: {},
@@ -1298,47 +1331,47 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1298
1331
  },
1299
1332
  emits: ["update:modelValue"],
1300
1333
  setup(t) {
1301
- const { t: s } = I(), n = Ze(), { sysBarAvail: e } = pe(), { backgroundColor1: l } = te(), o = z(t, "modelValue"), i = it(), u = L(() => {
1334
+ const { t: s } = oe(), l = je(), { sysBarAvail: e } = ue(), { backgroundColor1: n } = ee(), o = z(t, "modelValue"), i = ut(), u = N(() => {
1302
1335
  let f = "100%";
1303
- return n.mdAndUp.value && (f = "400px"), {
1304
- background: l.value,
1336
+ return l.mdAndUp.value && (f = "400px"), {
1337
+ background: n.value,
1305
1338
  width: f,
1306
1339
  height: "100%"
1307
1340
  };
1308
- }), r = L(() => {
1341
+ }), r = N(() => {
1309
1342
  let f = 48;
1310
1343
  return e.value && (f += 24), {
1311
1344
  position: "relative",
1312
1345
  height: `calc(100% - ${f}px)`
1313
1346
  };
1314
- }), a = L(() => ({
1347
+ }), a = N(() => ({
1315
1348
  height: "60px"
1316
- })), d = L(() => {
1349
+ })), c = N(() => {
1317
1350
  if (!o.value)
1318
1351
  return s("x-runtime-lib.notSet");
1319
- const f = ve(i, o.value);
1352
+ const f = pe(i, o.value);
1320
1353
  return f ? f.name : s("x-runtime-lib.slotNotAvail");
1321
- }), { open: c } = _e(`propTreeSlotSelectDlg${$e()}`);
1354
+ }), { open: d } = _e(`propTreeSlotSelectDlg${$e()}`);
1322
1355
  return we(() => {
1323
- c.value = !1;
1356
+ d.value = !1;
1324
1357
  }), (f, v) => {
1325
- const C = $("v-btn"), h = $("v-sheet"), S = $("v-icon"), D = $("v-dialog");
1326
- return _(), B(D, {
1327
- modelValue: P(c),
1328
- "onUpdate:modelValue": v[5] || (v[5] = (x) => re(c) ? c.value = x : null),
1358
+ const p = V("v-btn"), C = V("v-sheet"), _ = V("v-icon"), b = V("v-dialog");
1359
+ return S(), B(b, {
1360
+ modelValue: D(d),
1361
+ "onUpdate:modelValue": v[5] || (v[5] = (U) => ce(d) ? d.value = U : null),
1329
1362
  fullscreen: "",
1330
1363
  "no-click-animation": "",
1331
1364
  persistent: "",
1332
1365
  transition: "scroll-x-reverse-transition",
1333
- onKeydown: v[6] || (v[6] = Le(X((x) => c.value = !1, ["stop", "prevent"]), ["esc"]))
1366
+ onKeydown: v[6] || (v[6] = Be(X((U) => d.value = !1, ["stop", "prevent"]), ["esc"]))
1334
1367
  }, {
1335
- activator: R(({ props: x }) => [
1336
- b(C, Me(x, {
1368
+ activator: R(({ props: U }) => [
1369
+ P(p, be(U, {
1337
1370
  block: "",
1338
1371
  density: "comfortable"
1339
1372
  }), {
1340
1373
  default: R(() => [
1341
- ke(F(d.value), 1)
1374
+ ke(F(c.value), 1)
1342
1375
  ]),
1343
1376
  _: 1
1344
1377
  }, 16)
@@ -1346,29 +1379,29 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1346
1379
  default: R(() => [
1347
1380
  q("div", {
1348
1381
  class: "w-100 h-100 d-flex flex-row-reverse",
1349
- onClick: v[3] || (v[3] = X((x) => c.value = !1, ["self"])),
1350
- onContextmenu: v[4] || (v[4] = X((x) => c.value = !1, ["self", "prevent"]))
1382
+ onClick: v[3] || (v[3] = X((U) => d.value = !1, ["self"])),
1383
+ onContextmenu: v[4] || (v[4] = X((U) => d.value = !1, ["self", "prevent"]))
1351
1384
  }, [
1352
1385
  q("div", {
1353
1386
  class: "elevation-2",
1354
1387
  style: W(u.value)
1355
1388
  }, [
1356
- P(e) ? (_(), B(h, {
1389
+ D(e) ? (S(), B(C, {
1357
1390
  key: 0,
1358
1391
  color: "transparent",
1359
1392
  height: 24
1360
1393
  })) : G("", !0),
1361
- b(h, {
1394
+ P(C, {
1362
1395
  class: "d-flex align-center px-3",
1363
1396
  color: "transparent",
1364
1397
  height: 48
1365
1398
  }, {
1366
1399
  default: R(() => [
1367
- b(S, {
1400
+ P(_, {
1368
1401
  icon: "mdi-close",
1369
- onClick: v[0] || (v[0] = (x) => c.value = !1)
1402
+ onClick: v[0] || (v[0] = (U) => d.value = !1)
1370
1403
  }),
1371
- q("span", bn, F(P(s)("x-prop-tree.dlg.slotSelect.title")), 1)
1404
+ q("span", Ln, F(D(s)("x-prop-tree.dlg.adaptSlotSelect.title")), 1)
1372
1405
  ]),
1373
1406
  _: 1
1374
1407
  }),
@@ -1376,11 +1409,11 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1376
1409
  class: "overflow-y-auto",
1377
1410
  style: W(r.value)
1378
1411
  }, [
1379
- b(Mn, {
1412
+ P(Dn, {
1380
1413
  modelValue: o.value,
1381
- "onUpdate:modelValue": v[1] || (v[1] = (x) => o.value = x),
1382
- open: P(c),
1383
- "onUpdate:open": v[2] || (v[2] = (x) => re(c) ? c.value = x : null)
1414
+ "onUpdate:modelValue": v[1] || (v[1] = (U) => o.value = U),
1415
+ open: D(d),
1416
+ "onUpdate:open": v[2] || (v[2] = (U) => ce(d) ? d.value = U : null)
1384
1417
  }, null, 8, ["modelValue", "open"]),
1385
1418
  q("div", {
1386
1419
  style: W(a.value)
@@ -1393,7 +1426,7 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1393
1426
  }, 8, ["modelValue"]);
1394
1427
  };
1395
1428
  }
1396
- }), Dn = { class: "d-flex justify-space-between align-center" }, An = /* @__PURE__ */ E({
1429
+ }), An = { class: "d-flex justify-space-between align-center" }, Nn = /* @__PURE__ */ E({
1397
1430
  __name: "index",
1398
1431
  props: /* @__PURE__ */ Z({
1399
1432
  hasDelete: { type: Boolean, default: !1 },
@@ -1404,8 +1437,8 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1404
1437
  }),
1405
1438
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1406
1439
  setup(t, { emit: s }) {
1407
- const { isMobile: n } = pe(), e = z(t, "modelValue"), l = s, o = async (i) => {
1408
- if (!i || t.readonly || !n())
1440
+ const { isMobile: l } = ue(), e = z(t, "modelValue"), n = s, o = async (i) => {
1441
+ if (!i || t.readonly || !l())
1409
1442
  return;
1410
1443
  const u = await Ct({
1411
1444
  title: "",
@@ -1414,11 +1447,11 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1414
1447
  u !== void 0 && (e.value = u);
1415
1448
  };
1416
1449
  return (i, u) => {
1417
- const r = $("v-text-field"), a = $("v-btn"), d = ee("ripple");
1418
- return _(), K("div", Dn, [
1419
- j(b(r, {
1450
+ const r = V("v-text-field"), a = V("v-btn"), c = I("ripple");
1451
+ return S(), K("div", An, [
1452
+ j(P(r, {
1420
1453
  modelValue: e.value,
1421
- "onUpdate:modelValue": u[0] || (u[0] = (c) => e.value = c),
1454
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => e.value = d),
1422
1455
  density: "compact",
1423
1456
  "hide-details": "",
1424
1457
  readonly: t.readonly,
@@ -1426,24 +1459,24 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1426
1459
  "onUpdate:focused": o
1427
1460
  }, null, 8, ["modelValue", "readonly"]), [
1428
1461
  [
1429
- d,
1462
+ c,
1430
1463
  void 0,
1431
1464
  void 0,
1432
1465
  { stop: !0 }
1433
1466
  ]
1434
1467
  ]),
1435
- t.hasDelete ? (_(), B(a, {
1468
+ t.hasDelete ? (S(), B(a, {
1436
1469
  key: 0,
1437
1470
  class: "mx-2",
1438
1471
  density: "compact",
1439
1472
  icon: "mdi-minus",
1440
1473
  variant: "text",
1441
- onClick: u[1] || (u[1] = X((c) => l("delete"), ["stop"]))
1474
+ onClick: u[1] || (u[1] = X((d) => n("delete"), ["stop"]))
1442
1475
  })) : G("", !0)
1443
1476
  ]);
1444
1477
  };
1445
1478
  }
1446
- }), Tn = { class: "d-flex justify-space-between align-center" }, Ln = /* @__PURE__ */ E({
1479
+ }), On = { class: "d-flex justify-space-between align-center" }, Bn = /* @__PURE__ */ E({
1447
1480
  __name: "index",
1448
1481
  props: /* @__PURE__ */ Z({
1449
1482
  hasDelete: { type: Boolean, default: !1 },
@@ -1454,20 +1487,20 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1454
1487
  }),
1455
1488
  emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
1456
1489
  setup(t, { emit: s }) {
1457
- const n = z(t, "modelValue"), e = s;
1458
- return (l, o) => {
1459
- const i = $("v-switch"), u = $("v-btn");
1460
- return _(), K("div", Tn, [
1461
- b(i, {
1462
- modelValue: n.value,
1463
- "onUpdate:modelValue": o[0] || (o[0] = (r) => n.value = r),
1490
+ const l = z(t, "modelValue"), e = s;
1491
+ return (n, o) => {
1492
+ const i = V("v-switch"), u = V("v-btn");
1493
+ return S(), K("div", On, [
1494
+ P(i, {
1495
+ modelValue: l.value,
1496
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
1464
1497
  class: "ml-1",
1465
1498
  color: "primary",
1466
1499
  density: "compact",
1467
1500
  "hide-details": "",
1468
1501
  readonly: t.readonly
1469
1502
  }, null, 8, ["modelValue", "readonly"]),
1470
- t.hasDelete ? (_(), B(u, {
1503
+ t.hasDelete ? (S(), B(u, {
1471
1504
  key: 0,
1472
1505
  class: "mx-2",
1473
1506
  density: "compact",
@@ -1479,21 +1512,21 @@ const jt = { class: "d-flex justify-space-between align-center" }, It = /* @__PU
1479
1512
  };
1480
1513
  }
1481
1514
  });
1482
- function Nn(t) {
1483
- return { renderUiColorPicker: (n, e, l, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), k("div", "renderUiColorPicker property ui must be colorPicker")) : k(It, {
1484
- modelValue: ne(
1485
- n,
1486
- e,
1515
+ function qn(t) {
1516
+ return { renderUiColorPicker: (l, e, n, o, i) => e.ui !== "colorPicker" ? (console.assert(!1), x("div", "renderUiColorPicker property ui must be colorPicker")) : x(nn, {
1517
+ modelValue: te(
1487
1518
  l,
1519
+ e,
1520
+ n,
1488
1521
  t,
1489
1522
  o,
1490
1523
  i
1491
1524
  ),
1492
1525
  "onUpdate:modelValue": (u) => {
1493
1526
  se(
1494
- n,
1495
- e,
1496
1527
  l,
1528
+ e,
1529
+ n,
1497
1530
  u,
1498
1531
  t,
1499
1532
  o,
@@ -1502,26 +1535,26 @@ function Nn(t) {
1502
1535
  },
1503
1536
  hasDelete: o !== void 0 && !i,
1504
1537
  onDelete: () => {
1505
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1538
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
1506
1539
  },
1507
1540
  readonly: e.readonly
1508
1541
  }) };
1509
1542
  }
1510
- function Bn(t) {
1511
- return { renderUiCompSelect: (n, e, l, o, i) => e.ui !== "compSelect" ? (console.assert(!1), k("div", "renderUiCompSelect property ui must be compSelect")) : k(cn, {
1512
- modelValue: ne(
1513
- n,
1514
- e,
1543
+ function Kn(t) {
1544
+ return { renderUiCompSelect: (l, e, n, o, i) => e.ui !== "compSelect" ? (console.assert(!1), x("div", "renderUiCompSelect property ui must be compSelect")) : x(fn, {
1545
+ modelValue: te(
1515
1546
  l,
1547
+ e,
1548
+ n,
1516
1549
  t,
1517
1550
  o,
1518
1551
  i
1519
1552
  ),
1520
1553
  "onUpdate:modelValue": (u) => {
1521
1554
  se(
1522
- n,
1523
- e,
1524
1555
  l,
1556
+ e,
1557
+ n,
1525
1558
  u,
1526
1559
  t,
1527
1560
  o,
@@ -1530,30 +1563,30 @@ function Bn(t) {
1530
1563
  }
1531
1564
  }) };
1532
1565
  }
1533
- function On(t) {
1534
- return { renderUiDummy: (n, e, l, o, i) => {
1566
+ function Rn(t) {
1567
+ return { renderUiDummy: (l, e, n, o, i) => {
1535
1568
  if (e.ui !== "dummy") {
1536
1569
  console.assert(!1, "renderUiDummy property ui must be dummy");
1537
1570
  return;
1538
1571
  }
1539
- ne(n, e, l, t, o, i);
1572
+ te(l, e, n, t, o, i);
1540
1573
  } };
1541
1574
  }
1542
- function qn(t) {
1543
- return { renderUiJsonEditor: (n, e, l, o, i) => e.ui !== "jsonEditor" ? k("div", "renderUijsonEditor property ui must be jsonEditor") : k(fn, {
1544
- modelValue: ne(
1545
- n,
1546
- e,
1575
+ function En(t) {
1576
+ return { renderUiJsonEditor: (l, e, n, o, i) => e.ui !== "jsonEditor" ? x("div", "renderUijsonEditor property ui must be jsonEditor") : x(gn, {
1577
+ modelValue: te(
1547
1578
  l,
1579
+ e,
1580
+ n,
1548
1581
  t,
1549
1582
  o,
1550
1583
  i
1551
1584
  ) ?? "{}",
1552
1585
  "onUpdate:modelValue": (u) => {
1553
1586
  se(
1554
- n,
1555
- e,
1556
1587
  l,
1588
+ e,
1589
+ n,
1557
1590
  u,
1558
1591
  t,
1559
1592
  o,
@@ -1562,21 +1595,21 @@ function qn(t) {
1562
1595
  }
1563
1596
  }) };
1564
1597
  }
1565
- function Kn(t) {
1566
- return { renderUiMultiTypes: (n, e, l, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), k("div", "renderUiMultiTypes property ui must be multiTypes")) : k(gn, {
1567
- modelValue: ne(
1568
- n,
1569
- e,
1598
+ function Jn(t) {
1599
+ return { renderUiMultiTypes: (l, e, n, o, i) => e.ui !== "multiTypes" ? (console.assert(!1), x("div", "renderUiMultiTypes property ui must be multiTypes")) : x(kn, {
1600
+ modelValue: te(
1570
1601
  l,
1602
+ e,
1603
+ n,
1571
1604
  t,
1572
1605
  o,
1573
1606
  i
1574
1607
  ) ?? "",
1575
1608
  "onUpdate:modelValue": (u) => {
1576
1609
  se(
1577
- n,
1578
- e,
1579
1610
  l,
1611
+ e,
1612
+ n,
1580
1613
  u,
1581
1614
  t,
1582
1615
  o,
@@ -1585,26 +1618,26 @@ function Kn(t) {
1585
1618
  },
1586
1619
  hasDelete: o !== void 0 && !i,
1587
1620
  onDelete: () => {
1588
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1621
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
1589
1622
  },
1590
1623
  types: e.types
1591
1624
  }) };
1592
1625
  }
1593
- function Rn(t) {
1594
- return { renderUiNumInput: (n, e, l, o, i) => e.ui !== "numInput" ? (console.assert(!1), k("div", "renderUiNumInput property ui must be numInput")) : k(hn, {
1595
- modelValue: ne(
1596
- n,
1597
- e,
1626
+ function Hn(t) {
1627
+ return { renderUiNumInput: (l, e, n, o, i) => e.ui !== "numInput" ? (console.assert(!1), x("div", "renderUiNumInput property ui must be numInput")) : x(xn, {
1628
+ modelValue: te(
1598
1629
  l,
1630
+ e,
1631
+ n,
1599
1632
  t,
1600
1633
  o,
1601
1634
  i
1602
1635
  ),
1603
1636
  "onUpdate:modelValue": (u) => {
1604
1637
  se(
1605
- n,
1606
- e,
1607
1638
  l,
1639
+ e,
1640
+ n,
1608
1641
  u,
1609
1642
  t,
1610
1643
  o,
@@ -1613,7 +1646,7 @@ function Rn(t) {
1613
1646
  },
1614
1647
  hasDelete: o !== void 0 && !i,
1615
1648
  onDelete: () => {
1616
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1649
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
1617
1650
  },
1618
1651
  precision: e.precision,
1619
1652
  min: e.min,
@@ -1622,76 +1655,76 @@ function Rn(t) {
1622
1655
  readonly: e.readonly
1623
1656
  }) };
1624
1657
  }
1625
- const En = /* @__PURE__ */ E({
1658
+ const Xn = /* @__PURE__ */ E({
1626
1659
  __name: "index",
1627
1660
  props: {
1628
1661
  minHeight: {}
1629
1662
  },
1630
1663
  emits: ["menu"],
1631
1664
  setup(t, { emit: s }) {
1632
- const { backgroundColor2: n, highlightColor: e } = te(), l = s, o = T(!1), i = L(() => ({
1633
- background: o.value ? e.value : n.value,
1665
+ const { backgroundColor2: l, highlightColor: e } = ee(), n = s, o = A(!1), i = N(() => ({
1666
+ background: o.value ? e.value : l.value,
1634
1667
  minHeight: t.minHeight,
1635
1668
  paddingRight: "4px",
1636
1669
  marginBottom: "1px",
1637
1670
  userSelect: "none"
1638
1671
  })), u = (r) => {
1639
- l("menu", r.clientX, r.clientY);
1672
+ n("menu", r.clientX, r.clientY);
1640
1673
  };
1641
1674
  return (r, a) => {
1642
- const d = ee("ripple");
1643
- return j((_(), K("div", {
1675
+ const c = I("ripple");
1676
+ return j((S(), K("div", {
1644
1677
  class: "d-flex justify-space-between align-center cursor-pointer",
1645
1678
  style: W(i.value),
1646
1679
  onContextmenu: X(u, ["self", "prevent"]),
1647
- onMouseout: a[0] || (a[0] = (c) => o.value = !1),
1648
- onMouseover: a[1] || (a[1] = (c) => o.value = !0)
1680
+ onMouseout: a[0] || (a[0] = (d) => o.value = !1),
1681
+ onMouseover: a[1] || (a[1] = (d) => o.value = !0)
1649
1682
  }, [
1650
1683
  kt(r.$slots, "default")
1651
1684
  ], 36)), [
1652
- [d]
1685
+ [c]
1653
1686
  ]);
1654
1687
  };
1655
1688
  }
1656
1689
  });
1657
- function Jn(t, s, n) {
1658
- const { t: e } = I();
1690
+ function Fn(t, s, l) {
1691
+ const { t: e } = oe();
1659
1692
  return { renderProperty: (o, i, u) => {
1660
1693
  const r = o[o.length - 1];
1661
- let d = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1662
- return me(t.value, o) && (d += " *"), k(
1663
- En,
1694
+ let c = typeof r == "number" ? `[${r + 1}]` : e(i.name);
1695
+ return fe(t.value, o) && (c += " *"), x(
1696
+ Xn,
1664
1697
  {
1665
1698
  minHeight: s.value,
1666
- onMenu: (c, f) => {
1667
- de.emit("propTreeMenu", { x: c, y: f, keys: o });
1699
+ onMenu: (d, f) => {
1700
+ me.emit("propTreeMenu", { x: d, y: f, keys: o });
1668
1701
  }
1669
1702
  },
1670
1703
  () => [
1671
- k("span", {
1704
+ x("span", {
1672
1705
  style: { marginLeft: "4px", pointerEvents: "none" },
1673
- innerHTML: d
1706
+ innerHTML: c
1674
1707
  }),
1675
- k("div", { style: { width: n.value } }, u)
1708
+ x("div", { style: { width: l.value } }, u)
1676
1709
  ]
1677
1710
  );
1678
1711
  } };
1679
1712
  }
1680
- function Hn(t) {
1681
- return { renderUiSelect: (n, e, l, o, i) => e.ui !== "select" ? (console.assert(!1), k("div", "renderUiSelect property ui must be select")) : k(_n, {
1682
- modelValue: ne(
1683
- n,
1684
- e,
1713
+ function zn(t) {
1714
+ return { renderUiSelect: (l, e, n, o, i) => e.ui !== "select" ? (console.assert(!1), x("div", "renderUiSelect property ui must be select")) : x(Vn, {
1715
+ modelValue: te(
1685
1716
  l,
1717
+ e,
1718
+ n,
1686
1719
  t,
1687
1720
  o,
1688
1721
  i
1689
1722
  ) ?? "",
1690
1723
  "onUpdate:modelValue": (u) => {
1691
1724
  se(
1692
- n,
1693
- e,
1694
1725
  l,
1726
+ e,
1727
+ n,
1695
1728
  u,
1696
1729
  t,
1697
1730
  o,
@@ -1700,27 +1733,27 @@ function Hn(t) {
1700
1733
  },
1701
1734
  hasDelete: o !== void 0 && !i,
1702
1735
  onDelete: () => {
1703
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1736
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
1704
1737
  },
1705
1738
  items: e.items,
1706
1739
  readonly: e.readonly
1707
1740
  }) };
1708
1741
  }
1709
- function Xn(t) {
1710
- return { renderUiSlotSelect: (n, e, l, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), k("div", "renderUiSlotSelect property ui must be slotSelect")) : k(Pn, {
1711
- modelValue: ne(
1712
- n,
1713
- e,
1742
+ function Gn(t) {
1743
+ return { renderUiSlotSelect: (l, e, n, o, i) => e.ui !== "slotSelect" ? (console.assert(!1), x("div", "renderUiSlotSelect property ui must be slotSelect")) : x(Tn, {
1744
+ modelValue: te(
1714
1745
  l,
1746
+ e,
1747
+ n,
1715
1748
  t,
1716
1749
  o,
1717
1750
  i
1718
1751
  ),
1719
1752
  "onUpdate:modelValue": (u) => {
1720
1753
  se(
1721
- n,
1722
- e,
1723
1754
  l,
1755
+ e,
1756
+ n,
1724
1757
  u,
1725
1758
  t,
1726
1759
  o,
@@ -1729,21 +1762,21 @@ function Xn(t) {
1729
1762
  }
1730
1763
  }) };
1731
1764
  }
1732
- function Fn(t) {
1733
- return { renderUiStrInput: (n, e, l, o, i) => e.ui !== "strInput" ? (console.assert(!1), k("div", "renderUiStrInput property ui must be strInput")) : k(An, {
1734
- modelValue: e.static ? e.value : ne(
1735
- n,
1736
- e,
1765
+ function Yn(t) {
1766
+ return { renderUiStrInput: (l, e, n, o, i) => e.ui !== "strInput" ? (console.assert(!1), x("div", "renderUiStrInput property ui must be strInput")) : x(Nn, {
1767
+ modelValue: e.static ? e.value : te(
1737
1768
  l,
1769
+ e,
1770
+ n,
1738
1771
  t,
1739
1772
  o,
1740
1773
  i
1741
1774
  ),
1742
1775
  "onUpdate:modelValue": (u) => {
1743
1776
  e.static || se(
1744
- n,
1745
- e,
1746
1777
  l,
1778
+ e,
1779
+ n,
1747
1780
  u,
1748
1781
  t,
1749
1782
  o,
@@ -1752,26 +1785,26 @@ function Fn(t) {
1752
1785
  },
1753
1786
  hasDelete: o !== void 0 && !i,
1754
1787
  onDelete: () => {
1755
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, -1), l));
1788
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, -1), n));
1756
1789
  },
1757
1790
  readonly: e.static || e.readonly
1758
1791
  }) };
1759
1792
  }
1760
- function zn(t) {
1761
- return { renderUiSwitch: (n, e, l, o, i) => e.ui !== "switch" ? (console.assert(!1), k("div", "renderUiSwitch property ui must be switch")) : k(Ln, {
1762
- modelValue: ne(
1763
- n,
1764
- e,
1793
+ function Wn(t) {
1794
+ return { renderUiSwitch: (l, e, n, o, i) => e.ui !== "switch" ? (console.assert(!1), x("div", "renderUiSwitch property ui must be switch")) : x(Bn, {
1795
+ modelValue: te(
1765
1796
  l,
1797
+ e,
1798
+ n,
1766
1799
  t,
1767
1800
  o,
1768
1801
  i
1769
1802
  ) ?? !1,
1770
1803
  "onUpdate:modelValue": (u) => {
1771
1804
  se(
1772
- n,
1773
- e,
1774
1805
  l,
1806
+ e,
1807
+ n,
1775
1808
  u,
1776
1809
  t,
1777
1810
  o,
@@ -1780,12 +1813,12 @@ function zn(t) {
1780
1813
  },
1781
1814
  hasDelete: o !== void 0 && !i,
1782
1815
  onDelete: () => {
1783
- o === void 0 || i || (l.splice(o, 1), t(n.slice(0, 1), l));
1816
+ o === void 0 || i || (n.splice(o, 1), t(l.slice(0, 1), n));
1784
1817
  },
1785
1818
  readonly: e.readonly
1786
1819
  }) };
1787
1820
  }
1788
- const Gn = /* @__PURE__ */ E({
1821
+ const Qn = /* @__PURE__ */ E({
1789
1822
  __name: "index",
1790
1823
  props: {
1791
1824
  unique: {},
@@ -1797,108 +1830,108 @@ const Gn = /* @__PURE__ */ E({
1797
1830
  },
1798
1831
  emits: ["change"],
1799
1832
  setup(t, { emit: s }) {
1800
- const { t: n } = I(), { backgroundColor1: e } = te(), l = t, o = s, i = T("20px"), u = T("56px"), r = T("200px"), a = _t({}), d = T({}), c = (p, m) => {
1801
- Je(d, l.config, l.object), o("change", p, m);
1833
+ const { t: l } = oe(), { backgroundColor1: e } = ee(), n = t, o = s, i = A("20px"), u = A("56px"), r = A("200px"), a = _t({}), c = A({}), d = (y, m) => {
1834
+ ze(c, n.config, n.object), o("change", y, m);
1802
1835
  };
1803
- oe(
1804
- [() => l.config, () => l.object],
1836
+ le(
1837
+ [() => n.config, () => n.object],
1805
1838
  () => {
1806
- Je(
1807
- d,
1808
- l.config,
1809
- l.object,
1810
- (p, m) => {
1811
- o("change", p, m);
1839
+ ze(
1840
+ c,
1841
+ n.config,
1842
+ n.object,
1843
+ (y, m) => {
1844
+ o("change", y, m);
1812
1845
  }
1813
1846
  );
1814
1847
  },
1815
1848
  { immediate: !0 }
1816
1849
  );
1817
- const f = T(l.version);
1818
- Ot(f), oe(
1819
- () => l.version,
1850
+ const f = A(n.version);
1851
+ qt(f), le(
1852
+ () => n.version,
1820
1853
  () => {
1821
- f.value = l.version;
1854
+ f.value = n.version;
1822
1855
  }
1823
1856
  );
1824
- const v = T(l.type);
1825
- oe(
1826
- () => l.type,
1857
+ const v = A(n.type);
1858
+ le(
1859
+ () => n.type,
1827
1860
  () => {
1828
- v.value = l.type;
1861
+ v.value = n.type;
1829
1862
  }
1830
1863
  );
1831
- const C = T(l.subtype);
1832
- oe(
1833
- () => l.subtype,
1864
+ const p = A(n.subtype);
1865
+ le(
1866
+ () => n.subtype,
1834
1867
  () => {
1835
- C.value = l.subtype;
1868
+ p.value = n.subtype;
1836
1869
  }
1837
1870
  );
1838
- const h = T(l.config);
1839
- qt(h), oe(
1840
- () => l.config,
1871
+ const C = A(n.config);
1872
+ Kt(C), le(
1873
+ () => n.config,
1841
1874
  () => {
1842
- h.value = l.config;
1875
+ C.value = n.config;
1843
1876
  }
1844
1877
  );
1845
- const S = T(l.object);
1846
- Rt(S), oe(
1847
- () => l.object,
1878
+ const _ = A(n.object);
1879
+ Et(_), le(
1880
+ () => n.object,
1848
1881
  () => {
1849
- S.value = l.object;
1882
+ _.value = n.object;
1850
1883
  }
1851
- ), Jt(d), Xt(c), Zt(), Qt(f, v, C);
1852
- const { renderProperty: D } = Jn(
1853
- d,
1884
+ ), Ht(c), Ft(d), It(), en(), jt(f, v, p);
1885
+ const { renderProperty: b } = Fn(
1886
+ c,
1854
1887
  u,
1855
1888
  r
1856
- ), { renderUiDummy: x } = On(c), { renderUiStrInput: V } = Fn(c), { renderUiNumInput: U } = Rn(c), { renderUiSwitch: O } = zn(c), { renderUiSelect: Q } = Hn(c), { renderUiColorPicker: ge } = Nn(c), { renderUiJsonEditor: ut } = qn(c), { renderUiMultiTypes: rt } = Kn(c), { renderUiCompSelect: at } = Bn(c), { renderUiSlotSelect: ct } = Xn(c), xe = (p, m, y, g, w, A) => (p = Ge(p), w !== void 0 ? (p.push(w), A && p.push(m.key)) : p.push(m.key), m.ui ? m.array && g ? ft(
1857
- p,
1858
- m,
1889
+ ), { renderUiDummy: U } = Rn(d), { renderUiStrInput: g } = Yn(d), { renderUiNumInput: $ } = Hn(d), { renderUiSwitch: L } = Wn(d), { renderUiSelect: Q } = zn(d), { renderUiColorPicker: ge } = qn(d), { renderUiJsonEditor: Le } = En(d), { renderUiMultiTypes: rt } = Jn(d), { renderUiCompSelect: at } = Kn(d), { renderUiSlotSelect: ct } = Gn(d), xe = (y, m, k, h, w, T) => (y = We(y), w !== void 0 ? (y.push(w), T && y.push(m.key)) : y.push(m.key), m.ui ? m.array && h ? ft(
1859
1890
  y,
1860
- g,
1861
- w,
1862
- A
1863
- ) : vt(p, m, y, w, A) : m.array ? dt(
1864
- p,
1865
1891
  m,
1892
+ k,
1893
+ h,
1894
+ w,
1895
+ T
1896
+ ) : vt(y, m, k, w, T) : m.array ? dt(
1866
1897
  y,
1867
- g,
1898
+ m,
1899
+ k,
1900
+ h,
1868
1901
  w,
1869
- A
1902
+ T
1870
1903
  ) : mt(
1871
- p,
1872
- m,
1873
1904
  y,
1874
- g,
1905
+ m,
1906
+ k,
1907
+ h,
1875
1908
  w,
1876
- A
1877
- )), dt = (p, m, y, g, w, A) => {
1909
+ T
1910
+ )), dt = (y, m, k, h, w, T) => {
1878
1911
  if (m.ui)
1879
- return console.assert(!1), k("div", "renderBranchArray property ui must be invalid");
1912
+ return console.assert(!1), x("div", "renderBranchArray property ui must be invalid");
1880
1913
  if (!m.array)
1881
- return console.assert(!1), k("div", "renderBranchArray property array must be valid");
1882
- if (!g)
1883
- return console.assert(!1), k("div", "renderBranchArray branch must be valid");
1914
+ return console.assert(!1), x("div", "renderBranchArray property array must be valid");
1915
+ if (!h)
1916
+ return console.assert(!1), x("div", "renderBranchArray branch must be valid");
1884
1917
  let H;
1885
- w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[m.key])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
1886
- let ie = n(m.name);
1887
- g.collapse && me(d.value, p) && (ie += " *");
1888
- const ye = k(Ue, {
1889
- title: ie,
1890
- collapse: g.collapse,
1918
+ w !== void 0 && !T ? (k[w] instanceof Array || (k[w] = J(m), d(y, k[m.key])), H = k[w]) : (k[m.key] instanceof Array || (k[m.key] = J(m), d(y, k[m.key])), H = k[m.key]);
1919
+ let re = l(m.name);
1920
+ h.collapse && fe(c.value, y) && (re += " *");
1921
+ const ye = x(Ue, {
1922
+ title: re,
1923
+ collapse: h.collapse,
1891
1924
  hasCreate: !0,
1892
1925
  onCollapse: (M) => {
1893
- g.collapse = M;
1926
+ h.collapse = M;
1894
1927
  },
1895
- onMenu: (M, N) => {
1896
- de.emit("propTreeMenu", { x: M, y: N, keys: p });
1928
+ onMenu: (M, O) => {
1929
+ me.emit("propTreeMenu", { x: M, y: O, keys: y });
1897
1930
  },
1898
1931
  onCreate: () => {
1899
- H.push({}), c(p, H);
1932
+ H.push({}), d(y, H);
1900
1933
  }
1901
- }), Y = k(
1934
+ }), Y = x(
1902
1935
  "div",
1903
1936
  {
1904
1937
  style: {
@@ -1907,43 +1940,43 @@ const Gn = /* @__PURE__ */ E({
1907
1940
  },
1908
1941
  (() => {
1909
1942
  const M = [];
1910
- for (let N = 0; N < H.length; N++) {
1911
- if (!Ae(g.children)) {
1943
+ for (let O = 0; O < H.length; O++) {
1944
+ if (!Te(h.children)) {
1912
1945
  console.assert(!1);
1913
1946
  break;
1914
1947
  }
1915
- g.children[N] || g.children.push({
1948
+ h.children[O] || h.children.push({
1916
1949
  collapse: !0,
1917
1950
  children: {}
1918
1951
  });
1919
- const Se = [...p, N], Ve = g.children[N];
1920
- let qe = `[${N + 1}]`;
1921
- g.children[N].collapse && me(d.value, Se) && (qe += " *");
1922
- const gt = k(Ue, {
1923
- title: qe,
1924
- collapse: g.children[N].collapse,
1952
+ const Se = [...y, O], Ve = h.children[O];
1953
+ let Je = `[${O + 1}]`;
1954
+ h.children[O].collapse && fe(c.value, Se) && (Je += " *");
1955
+ const gt = x(Ue, {
1956
+ title: Je,
1957
+ collapse: h.children[O].collapse,
1925
1958
  hasDelete: !0,
1926
- index: N,
1927
- onCollapse: (le) => {
1928
- if (!Ae(g.children)) {
1959
+ index: O,
1960
+ onCollapse: (ne) => {
1961
+ if (!Te(h.children)) {
1929
1962
  console.assert(!1);
1930
1963
  return;
1931
1964
  }
1932
- g.children[N].collapse = le;
1965
+ h.children[O].collapse = ne;
1933
1966
  },
1934
- onMenu: (le, ue) => {
1935
- de.emit("propTreeMenu", { x: le, y: ue, keys: Se });
1967
+ onMenu: (ne, ae) => {
1968
+ me.emit("propTreeMenu", { x: ne, y: ae, keys: Se });
1936
1969
  },
1937
- onDelete: (le) => {
1938
- if (!Ae(g.children)) {
1970
+ onDelete: (ne) => {
1971
+ if (!Te(h.children)) {
1939
1972
  console.assert(!1);
1940
1973
  return;
1941
1974
  }
1942
- g.children.splice(le, 1), H.splice(le, 1), c(p, H);
1975
+ h.children.splice(ne, 1), H.splice(ne, 1), d(y, H);
1943
1976
  }
1944
1977
  });
1945
1978
  M.push(gt);
1946
- const yt = k(
1979
+ const yt = x(
1947
1980
  "div",
1948
1981
  {
1949
1982
  style: {
@@ -1951,34 +1984,34 @@ const Gn = /* @__PURE__ */ E({
1951
1984
  }
1952
1985
  },
1953
1986
  (() => {
1954
- const le = [];
1955
- return m.children.forEach((ue) => {
1956
- if (!Ee(Ve.children)) {
1987
+ const ne = [];
1988
+ return m.children.forEach((ae) => {
1989
+ if (!Fe(Ve.children)) {
1957
1990
  console.assert(!1);
1958
1991
  return;
1959
1992
  }
1960
- Ve.children[ue.key] || (Ve.children[ue.key] = {
1993
+ Ve.children[ae.key] || (Ve.children[ae.key] = {
1961
1994
  collapse: !0,
1962
- children: ue.array ? [] : {}
1995
+ children: ae.array ? [] : {}
1963
1996
  });
1964
1997
  const ht = xe(
1965
- p,
1966
- ue,
1967
- H[N],
1968
- Ve.children[ue.key],
1969
- N,
1998
+ y,
1999
+ ae,
2000
+ H[O],
2001
+ Ve.children[ae.key],
2002
+ O,
1970
2003
  !0
1971
2004
  );
1972
- le.push(ht);
1973
- }), le;
2005
+ ne.push(ht);
2006
+ }), ne;
1974
2007
  })()
1975
2008
  );
1976
- g.children[N].collapse || M.push(yt);
2009
+ h.children[O].collapse || M.push(yt);
1977
2010
  }
1978
2011
  return M;
1979
2012
  })()
1980
2013
  );
1981
- return k(
2014
+ return x(
1982
2015
  "div",
1983
2016
  {
1984
2017
  style: {
@@ -1987,32 +2020,32 @@ const Gn = /* @__PURE__ */ E({
1987
2020
  },
1988
2021
  (() => {
1989
2022
  const M = [];
1990
- return M.push(ye), g.collapse || M.push(Y), M;
2023
+ return M.push(ye), h.collapse || M.push(Y), M;
1991
2024
  })()
1992
2025
  );
1993
- }, mt = (p, m, y, g, w, A) => {
2026
+ }, mt = (y, m, k, h, w, T) => {
1994
2027
  if (m.ui)
1995
- return console.assert(!1), k("div", "renderBranchScalar property ui must be invalid");
2028
+ return console.assert(!1), x("div", "renderBranchScalar property ui must be invalid");
1996
2029
  if (m.array)
1997
- return console.assert(!1), k("div", "renderBranchScalar property array must be invalid");
1998
- if (!g)
1999
- return console.assert(!1), k("div", "renderBranchScalar branch must be valid");
2000
- let H = n(m.name);
2001
- g.collapse && me(d.value, p) && (H += " *");
2002
- const ie = k(Ue, {
2030
+ return console.assert(!1), x("div", "renderBranchScalar property array must be invalid");
2031
+ if (!h)
2032
+ return console.assert(!1), x("div", "renderBranchScalar branch must be valid");
2033
+ let H = l(m.name);
2034
+ h.collapse && fe(c.value, y) && (H += " *");
2035
+ const re = x(Ue, {
2003
2036
  title: H,
2004
- collapse: g.collapse,
2005
- hasDelete: w !== void 0 && !A,
2037
+ collapse: h.collapse,
2038
+ hasDelete: w !== void 0 && !T,
2006
2039
  onCollapse: (Y) => {
2007
- g.collapse = Y;
2040
+ h.collapse = Y;
2008
2041
  },
2009
2042
  onMenu: (Y, M) => {
2010
- de.emit("propTreeMenu", { x: Y, y: M, keys: p });
2043
+ me.emit("propTreeMenu", { x: Y, y: M, keys: y });
2011
2044
  },
2012
2045
  onDelete: () => {
2013
- w === void 0 || A || (y.splice(w, 1), c(p.slice(0, -1), y));
2046
+ w === void 0 || T || (k.splice(w, 1), d(y.slice(0, -1), k));
2014
2047
  }
2015
- }), ye = k(
2048
+ }), ye = x(
2016
2049
  "div",
2017
2050
  {
2018
2051
  style: {
@@ -2022,25 +2055,25 @@ const Gn = /* @__PURE__ */ E({
2022
2055
  (() => {
2023
2056
  const Y = [];
2024
2057
  return m.children.forEach((M) => {
2025
- if (!Ee(g.children)) {
2058
+ if (!Fe(h.children)) {
2026
2059
  console.assert(!1);
2027
2060
  return;
2028
2061
  }
2029
- g.children[M.key] || (g.children[M.key] = {
2062
+ h.children[M.key] || (h.children[M.key] = {
2030
2063
  collapse: !0,
2031
2064
  children: !M.ui && M.array ? [] : {}
2032
2065
  });
2033
- const N = xe(
2034
- p,
2066
+ const O = xe(
2067
+ y,
2035
2068
  M,
2036
- (typeof y[m.key] != "object" && (y[m.key] = {}, c(p, y[m.key])), y[m.key]),
2037
- g.children[M.key]
2069
+ (typeof k[m.key] != "object" && (k[m.key] = {}, d(y, k[m.key])), k[m.key]),
2070
+ h.children[M.key]
2038
2071
  );
2039
- Y.push(N);
2072
+ Y.push(O);
2040
2073
  }), Y;
2041
2074
  })()
2042
2075
  );
2043
- return k(
2076
+ return x(
2044
2077
  "div",
2045
2078
  {
2046
2079
  style: {
@@ -2049,34 +2082,34 @@ const Gn = /* @__PURE__ */ E({
2049
2082
  },
2050
2083
  (() => {
2051
2084
  const Y = [];
2052
- return Y.push(ie), g.collapse || Y.push(ye), Y;
2085
+ return Y.push(re), h.collapse || Y.push(ye), Y;
2053
2086
  })()
2054
2087
  );
2055
- }, ft = (p, m, y, g, w, A) => {
2088
+ }, ft = (y, m, k, h, w, T) => {
2056
2089
  if (!m.ui)
2057
- return console.assert(!1), k("div", "renderLeafArray property ui must be valid");
2090
+ return console.assert(!1), x("div", "renderLeafArray property ui must be valid");
2058
2091
  if (!m.array)
2059
- return console.assert(!1), k("div", "renderLeafArray property array must be valid");
2060
- if (!g)
2061
- return console.assert(!1), k("div", "renderLeafArray branch must be valid");
2092
+ return console.assert(!1), x("div", "renderLeafArray property array must be valid");
2093
+ if (!h)
2094
+ return console.assert(!1), x("div", "renderLeafArray branch must be valid");
2062
2095
  let H;
2063
- w !== void 0 && !A ? (y[w] instanceof Array || (y[w] = J(m), c(p, y[w])), H = y[w]) : (y[m.key] instanceof Array || (y[m.key] = J(m), c(p, y[m.key])), H = y[m.key]);
2064
- let ie = n(m.name);
2065
- g.collapse && me(d.value, p) && (ie += " *");
2066
- const ye = k(Ue, {
2067
- title: ie,
2068
- collapse: g.collapse,
2096
+ w !== void 0 && !T ? (k[w] instanceof Array || (k[w] = J(m), d(y, k[w])), H = k[w]) : (k[m.key] instanceof Array || (k[m.key] = J(m), d(y, k[m.key])), H = k[m.key]);
2097
+ let re = l(m.name);
2098
+ h.collapse && fe(c.value, y) && (re += " *");
2099
+ const ye = x(Ue, {
2100
+ title: re,
2101
+ collapse: h.collapse,
2069
2102
  hasCreate: !0,
2070
2103
  onCollapse: (M) => {
2071
- g.collapse = M;
2104
+ h.collapse = M;
2072
2105
  },
2073
- onMenu: (M, N) => {
2074
- de.emit("propTreeMenu", { x: M, y: N, keys: p });
2106
+ onMenu: (M, O) => {
2107
+ me.emit("propTreeMenu", { x: M, y: O, keys: y });
2075
2108
  },
2076
2109
  onCreate: () => {
2077
- H.push(J(m, !0)), c(p, H);
2110
+ H.push(J(m, !0)), d(y, H);
2078
2111
  }
2079
- }), Y = k(
2112
+ }), Y = x(
2080
2113
  "div",
2081
2114
  {
2082
2115
  style: {
@@ -2085,14 +2118,14 @@ const Gn = /* @__PURE__ */ E({
2085
2118
  },
2086
2119
  (() => {
2087
2120
  const M = [];
2088
- for (let N = 0; N < H.length; N++) {
2089
- const Se = xe(p, m, H, void 0, N, !1);
2121
+ for (let O = 0; O < H.length; O++) {
2122
+ const Se = xe(y, m, H, void 0, O, !1);
2090
2123
  M.push(Se);
2091
2124
  }
2092
2125
  return M;
2093
2126
  })()
2094
2127
  );
2095
- return k(
2128
+ return x(
2096
2129
  "div",
2097
2130
  {
2098
2131
  style: {
@@ -2101,15 +2134,15 @@ const Gn = /* @__PURE__ */ E({
2101
2134
  },
2102
2135
  (() => {
2103
2136
  const M = [];
2104
- return M.push(ye), g.collapse || M.push(Y), M;
2137
+ return M.push(ye), h.collapse || M.push(Y), M;
2105
2138
  })()
2106
2139
  );
2107
- }, vt = (p, m, y, g, w) => {
2140
+ }, vt = (y, m, k, h, w) => {
2108
2141
  if (!m.ui)
2109
- return console.assert(!1), k("div", "renderLeafScalar property ui must be valid");
2110
- let A;
2111
- return m.ui === "dummy" ? A = x(p, m, y, g, w) : m.ui === "strInput" ? A = V(p, m, y, g, w) : m.ui === "numInput" ? A = U(p, m, y, g, w) : m.ui === "switch" ? A = O(p, m, y, g, w) : m.ui === "select" ? A = Q(p, m, y, g, w) : m.ui === "colorPicker" ? A = ge(p, m, y, g, w) : m.ui === "jsonEditor" ? A = ut(p, m, y, g, w) : m.ui === "multiTypes" ? A = rt(p, m, y, g, w) : m.ui === "compSelect" ? A = at(p, m, y, g, w) : m.ui === "slotSelect" ? A = ct(p, m, y, g, w) : console.assert(!1, "renderLeafScalar not implemented"), A ? D(p, m, A) : k("div");
2112
- }, pt = () => k(
2142
+ return console.assert(!1), x("div", "renderLeafScalar property ui must be valid");
2143
+ let T;
2144
+ return m.ui === "dummy" ? T = U(y, m, k, h, w) : m.ui === "strInput" ? T = g(y, m, k, h, w) : m.ui === "numInput" ? T = $(y, m, k, h, w) : m.ui === "switch" ? T = L(y, m, k, h, w) : m.ui === "select" ? T = Q(y, m, k, h, w) : m.ui === "colorPicker" ? T = ge(y, m, k, h, w) : m.ui === "jsonEditor" ? T = Le(y, m, k, h, w) : m.ui === "multiTypes" ? T = rt(y, m, k, h, w) : m.ui === "compSelect" ? T = at(y, m, k, h, w) : m.ui === "slotSelect" ? T = ct(y, m, k, h, w) : console.assert(!1, "renderLeafScalar not implemented"), T ? b(y, m, T) : x("div");
2145
+ }, pt = () => x(
2113
2146
  "div",
2114
2147
  {
2115
2148
  class: "text-body-2",
@@ -2118,49 +2151,49 @@ const Gn = /* @__PURE__ */ E({
2118
2151
  }
2119
2152
  },
2120
2153
  (() => {
2121
- const p = [];
2122
- if (l.unique && l.config.length > 0 && l.object) {
2123
- a[l.unique] || (a[l.unique] = {});
2124
- const m = a[l.unique];
2125
- l.config.forEach((y) => {
2126
- m[y.key] || (m[y.key] = {
2154
+ const y = [];
2155
+ if (n.unique && n.config.length > 0 && n.object) {
2156
+ a[n.unique] || (a[n.unique] = {});
2157
+ const m = a[n.unique];
2158
+ n.config.forEach((k) => {
2159
+ m[k.key] || (m[k.key] = {
2127
2160
  collapse: !0,
2128
- children: !y.ui && y.array ? [] : {}
2161
+ children: !k.ui && k.array ? [] : {}
2129
2162
  });
2130
- const g = xe(
2163
+ const h = xe(
2131
2164
  [],
2132
- y,
2133
- l.object,
2134
- m[y.key]
2165
+ k,
2166
+ n.object,
2167
+ m[k.key]
2135
2168
  );
2136
- p.push(g);
2169
+ y.push(h);
2137
2170
  });
2138
2171
  }
2139
- return p;
2172
+ return y;
2140
2173
  })()
2141
2174
  );
2142
- return (p, m) => (_(), K(fe, null, [
2143
- b(pt),
2144
- b(Yt, {
2145
- config: l.config,
2146
- object: l.object,
2147
- "property-states": d.value
2175
+ return (y, m) => (S(), K(ve, null, [
2176
+ P(pt),
2177
+ P(Qt, {
2178
+ config: n.config,
2179
+ object: n.object,
2180
+ "property-states": c.value
2148
2181
  }, null, 8, ["config", "object", "property-states"])
2149
2182
  ], 64));
2150
2183
  }
2151
- }), Yn = (t) => {
2152
- t.component("XPropTree", Gn);
2153
- }, Wn = (t, s, n) => {
2184
+ }), Zn = (t) => {
2185
+ t.component("XPropTree", Qn);
2186
+ }, jn = (t, s, l) => {
2154
2187
  const e = t[s];
2155
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((l, o) => {
2156
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== n ? ". Note that variables only represent file names one level deep." : ""))));
2188
+ return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, o) => {
2189
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + s + (s.split("/").length !== l ? ". Note that variables only represent file names one level deep." : ""))));
2157
2190
  });
2158
2191
  };
2159
- async function ol(t) {
2160
- return (await Wn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.fwi8tazn.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ju37v3iz.js") }), `./locales/${t}/index.ts`, 4)).default;
2192
+ async function ul(t) {
2193
+ return (await jn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.gtpxr0k8.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.ev8iw0vp.js") }), `./locales/${t}/index.ts`, 4)).default;
2161
2194
  }
2162
- const sl = { install: Yn };
2195
+ const rl = { install: Zn };
2163
2196
  export {
2164
- sl as default,
2165
- ol as loadLocaleMessagePropTree
2197
+ rl as default,
2198
+ ul as loadLocaleMessagePropTree
2166
2199
  };