x-prop-tree 0.7.3 → 0.7.5

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