x-prop-tree 0.7.17 → 0.7.18

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