x-prop-tree 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,200 +1,200 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-prop-tree",e.appendChild(document.createTextNode('.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--disabled{pointer-events:none;opacity:.38}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}')),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- import { Fragment as De, reactive as ve, computed as k, watchEffect as Ce, toRefs as Ae, warn as Le, getCurrentInstance as Me, inject as Q, shallowRef as Te, provide as ke, defineComponent as M, isRef as Pe, createVNode as C, mergeProps as ze, unref as W, ref as I, toRef as Re, Text as He, mergeModels as Y, useModel as xe, resolveComponent as G, openBlock as _, createElementBlock as be, normalizeStyle as Ve, createBlock as U, resolveDirective as Oe, withDirectives as Ne, createElementVNode as Ee, toDisplayString as We, withModifiers as j, createCommentVNode as ee, h as y } from "vue";
3
- import { useI18n as Ge } from "vue-i18n";
4
- import { useColor as Ue } from "x-essential-lib";
5
- import { getPropDefault as O } from "x-runtime-lib";
6
- var qe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ze = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Xe = "M19,13H5V11H19V13Z", Ye = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
- function p(e, t) {
8
- return (n) => Object.keys(e).reduce((s, a) => {
2
+ import { Fragment as Ae, reactive as Ve, computed as C, watchEffect as xe, toRefs as De, warn as Le, getCurrentInstance as Me, inject as ee, shallowRef as Te, provide as be, defineComponent as $, isRef as Pe, createVNode as k, mergeProps as ze, unref as q, ref as L, toRef as Re, Text as Oe, mergeModels as Z, useModel as ne, resolveComponent as z, openBlock as _, createBlock as I, resolveDirective as He, withDirectives as Ne, createElementBlock as Ee, normalizeStyle as We, createElementVNode as Ue, toDisplayString as Ge, withModifiers as te, createCommentVNode as se, h as v } from "vue";
3
+ import { useI18n as qe } from "vue-i18n";
4
+ import { useColor as Ze } from "x-essential-lib";
5
+ import { getPropDefault as D } from "x-runtime-lib";
6
+ var Xe = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", Ye = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", Ke = "M19,13H5V11H19V13Z", Je = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
7
+ function p(e, n) {
8
+ return (t) => Object.keys(e).reduce((s, a) => {
9
9
  const u = typeof e[a] == "object" && e[a] != null && !Array.isArray(e[a]) ? e[a] : {
10
10
  type: e[a]
11
11
  };
12
- return n && a in n ? s[a] = {
12
+ return t && a in t ? s[a] = {
13
13
  ...u,
14
- default: n[a]
15
- } : s[a] = u, t && !s[a].source && (s[a].source = t), s;
14
+ default: t[a]
15
+ } : s[a] = u, n && !s[a].source && (s[a].source = n), s;
16
16
  }, {});
17
17
  }
18
- const Ke = p({
18
+ const Qe = p({
19
19
  class: [String, Array, Object],
20
20
  style: {
21
21
  type: [String, Array, Object],
22
22
  default: null
23
23
  }
24
24
  }, "component");
25
- function D(e) {
26
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
25
+ function T(e) {
26
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "px";
27
27
  if (!(e == null || e === ""))
28
- return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${t}` : void 0;
28
+ return isNaN(+e) ? String(e) : isFinite(+e) ? `${Number(e)}${n}` : void 0;
29
29
  }
30
- function te(e) {
31
- let t;
32
- return e !== null && typeof e == "object" && ((t = Object.getPrototypeOf(e)) === Object.prototype || t === null);
30
+ function ae(e) {
31
+ let n;
32
+ return e !== null && typeof e == "object" && ((n = Object.getPrototypeOf(e)) === Object.prototype || n === null);
33
33
  }
34
- function X(e, t) {
35
- return t.every((n) => e.hasOwnProperty(n));
34
+ function J(e, n) {
35
+ return n.every((t) => e.hasOwnProperty(t));
36
36
  }
37
- function Je(e, t) {
38
- const n = {}, s = new Set(Object.keys(e));
39
- for (const a of t)
40
- s.has(a) && (n[a] = e[a]);
41
- return n;
37
+ function je(e, n) {
38
+ const t = {}, s = new Set(Object.keys(e));
39
+ for (const a of n)
40
+ s.has(a) && (t[a] = e[a]);
41
+ return t;
42
42
  }
43
- function ne(e, t) {
44
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
45
- return e + n.repeat(Math.max(0, t - e.length));
43
+ function le(e, n) {
44
+ let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "0";
45
+ return e + t.repeat(Math.max(0, n - e.length));
46
46
  }
47
- function Qe(e) {
48
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
49
- const n = [];
47
+ function en(e) {
48
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
49
+ const t = [];
50
50
  let s = 0;
51
51
  for (; s < e.length; )
52
- n.push(e.substr(s, t)), s += t;
53
- return n;
52
+ t.push(e.substr(s, n)), s += n;
53
+ return t;
54
54
  }
55
55
  function Se() {
56
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0;
56
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = arguments.length > 2 ? arguments[2] : void 0;
57
57
  const s = {};
58
58
  for (const a in e)
59
59
  s[a] = e[a];
60
- for (const a in t) {
61
- const i = e[a], u = t[a];
62
- if (te(i) && te(u)) {
63
- s[a] = Se(i, u, n);
60
+ for (const a in n) {
61
+ const i = e[a], u = n[a];
62
+ if (ae(i) && ae(u)) {
63
+ s[a] = Se(i, u, t);
64
64
  continue;
65
65
  }
66
- if (n && Array.isArray(i) && Array.isArray(u)) {
67
- s[a] = n(i, u);
66
+ if (t && Array.isArray(i) && Array.isArray(u)) {
67
+ s[a] = t(i, u);
68
68
  continue;
69
69
  }
70
70
  s[a] = u;
71
71
  }
72
72
  return s;
73
73
  }
74
- function pe(e) {
75
- return e.map((t) => t.type === De ? pe(t.children) : t).flat();
74
+ function _e(e) {
75
+ return e.map((n) => n.type === Ae ? _e(n.children) : n).flat();
76
76
  }
77
- function F() {
77
+ function B() {
78
78
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
79
- if (F.cache.has(e)) return F.cache.get(e);
80
- const t = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
81
- return F.cache.set(e, t), t;
79
+ if (B.cache.has(e)) return B.cache.get(e);
80
+ const n = e.replace(/[^a-z]/gi, "-").replace(/\B([A-Z])/g, "-$1").toLowerCase();
81
+ return B.cache.set(e, n), n;
82
82
  }
83
- F.cache = /* @__PURE__ */ new Map();
84
- function we(e) {
85
- const t = ve({}), n = k(e);
86
- return Ce(() => {
87
- for (const s in n.value)
88
- t[s] = n.value[s];
83
+ B.cache = /* @__PURE__ */ new Map();
84
+ function pe(e) {
85
+ const n = Ve({}), t = C(e);
86
+ return xe(() => {
87
+ for (const s in t.value)
88
+ n[s] = t.value[s];
89
89
  }, {
90
90
  flush: "sync"
91
- }), Ae(t);
91
+ }), De(n);
92
92
  }
93
- function je(e, t) {
94
- return e.includes(t);
93
+ function nn(e, n) {
94
+ return e.includes(n);
95
95
  }
96
- const w = 2.4, se = 0.2126729, ae = 0.7151522, le = 0.072175, et = 0.55, tt = 0.58, nt = 0.57, st = 0.62, N = 0.03, ie = 1.45, at = 5e-4, lt = 1.25, it = 1.25, re = 0.078, ue = 12.82051282051282, E = 0.06, oe = 1e-3;
97
- function ce(e, t) {
98
- const n = (e.r / 255) ** w, s = (e.g / 255) ** w, a = (e.b / 255) ** w, i = (t.r / 255) ** w, u = (t.g / 255) ** w, m = (t.b / 255) ** w;
99
- let o = n * se + s * ae + a * le, d = i * se + u * ae + m * le;
100
- if (o <= N && (o += (N - o) ** ie), d <= N && (d += (N - d) ** ie), Math.abs(d - o) < at) return 0;
101
- let h;
96
+ const F = 2.4, ie = 0.2126729, re = 0.7151522, ue = 0.072175, tn = 0.55, sn = 0.58, an = 0.57, ln = 0.62, U = 0.03, oe = 1.45, rn = 5e-4, un = 1.25, on = 1.25, ce = 0.078, fe = 12.82051282051282, G = 0.06, de = 1e-3;
97
+ function me(e, n) {
98
+ const t = (e.r / 255) ** F, s = (e.g / 255) ** F, a = (e.b / 255) ** F, i = (n.r / 255) ** F, u = (n.g / 255) ** F, m = (n.b / 255) ** F;
99
+ let o = t * ie + s * re + a * ue, d = i * ie + u * re + m * ue;
100
+ if (o <= U && (o += (U - o) ** oe), d <= U && (d += (U - d) ** oe), Math.abs(d - o) < rn) return 0;
101
+ let y;
102
102
  if (d > o) {
103
- const g = (d ** et - o ** tt) * lt;
104
- h = g < oe ? 0 : g < re ? g - g * ue * E : g - E;
103
+ const g = (d ** tn - o ** sn) * un;
104
+ y = g < de ? 0 : g < ce ? g - g * fe * G : g - G;
105
105
  } else {
106
- const g = (d ** st - o ** nt) * it;
107
- h = g > -oe ? 0 : g > -re ? g - g * ue * E : g + E;
106
+ const g = (d ** ln - o ** an) * on;
107
+ y = g > -de ? 0 : g > -ce ? g - g * fe * G : g + G;
108
108
  }
109
- return h * 100;
109
+ return y * 100;
110
110
  }
111
- function A(e) {
111
+ function P(e) {
112
112
  Le(`Vuetify: ${e}`);
113
113
  }
114
- function K(e) {
114
+ function Q(e) {
115
115
  return !!e && /^(#|var\(--|(rgb|hsl)a?\()/.test(e);
116
116
  }
117
- function rt(e) {
118
- return K(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
117
+ function cn(e) {
118
+ return Q(e) && !/^((rgb|hsl)a?\()?var\(--/.test(e);
119
119
  }
120
- const fe = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, ut = {
121
- rgb: (e, t, n, s) => ({
120
+ const ge = /^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/, fn = {
121
+ rgb: (e, n, t, s) => ({
122
122
  r: e,
123
- g: t,
124
- b: n,
123
+ g: n,
124
+ b: t,
125
125
  a: s
126
126
  }),
127
- rgba: (e, t, n, s) => ({
127
+ rgba: (e, n, t, s) => ({
128
128
  r: e,
129
- g: t,
130
- b: n,
129
+ g: n,
130
+ b: t,
131
131
  a: s
132
132
  }),
133
- hsl: (e, t, n, s) => de({
133
+ hsl: (e, n, t, s) => ye({
134
134
  h: e,
135
- s: t,
136
- l: n,
135
+ s: n,
136
+ l: t,
137
137
  a: s
138
138
  }),
139
- hsla: (e, t, n, s) => de({
139
+ hsla: (e, n, t, s) => ye({
140
140
  h: e,
141
- s: t,
142
- l: n,
141
+ s: n,
142
+ l: t,
143
143
  a: s
144
144
  }),
145
- hsv: (e, t, n, s) => L({
145
+ hsv: (e, n, t, s) => R({
146
146
  h: e,
147
- s: t,
148
- v: n,
147
+ s: n,
148
+ v: t,
149
149
  a: s
150
150
  }),
151
- hsva: (e, t, n, s) => L({
151
+ hsva: (e, n, t, s) => R({
152
152
  h: e,
153
- s: t,
154
- v: n,
153
+ s: n,
154
+ v: t,
155
155
  a: s
156
156
  })
157
157
  };
158
- function $(e) {
158
+ function M(e) {
159
159
  if (typeof e == "number")
160
- return (isNaN(e) || e < 0 || e > 16777215) && A(`'${e}' is not a valid hex color`), {
160
+ return (isNaN(e) || e < 0 || e > 16777215) && P(`'${e}' is not a valid hex color`), {
161
161
  r: (e & 16711680) >> 16,
162
162
  g: (e & 65280) >> 8,
163
163
  b: e & 255
164
164
  };
165
- if (typeof e == "string" && fe.test(e)) {
165
+ if (typeof e == "string" && ge.test(e)) {
166
166
  const {
167
- groups: t
168
- } = e.match(fe), {
169
- fn: n,
167
+ groups: n
168
+ } = e.match(ge), {
169
+ fn: t,
170
170
  values: s
171
- } = t, a = s.split(/,\s*/).map((i) => i.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(n) ? parseFloat(i) / 100 : parseFloat(i));
172
- return ut[n](...a);
171
+ } = n, a = s.split(/,\s*/).map((i) => i.endsWith("%") && ["hsl", "hsla", "hsv", "hsva"].includes(t) ? parseFloat(i) / 100 : parseFloat(i));
172
+ return fn[t](...a);
173
173
  } else if (typeof e == "string") {
174
- let t = e.startsWith("#") ? e.slice(1) : e;
175
- [3, 4].includes(t.length) ? t = t.split("").map((s) => s + s).join("") : [6, 8].includes(t.length) || A(`'${e}' is not a valid hex(a) color`);
176
- const n = parseInt(t, 16);
177
- return (isNaN(n) || n < 0 || n > 4294967295) && A(`'${e}' is not a valid hex(a) color`), ot(t);
174
+ let n = e.startsWith("#") ? e.slice(1) : e;
175
+ [3, 4].includes(n.length) ? n = n.split("").map((s) => s + s).join("") : [6, 8].includes(n.length) || P(`'${e}' is not a valid hex(a) color`);
176
+ const t = parseInt(n, 16);
177
+ return (isNaN(t) || t < 0 || t > 4294967295) && P(`'${e}' is not a valid hex(a) color`), dn(n);
178
178
  } else if (typeof e == "object") {
179
- if (X(e, ["r", "g", "b"]))
179
+ if (J(e, ["r", "g", "b"]))
180
180
  return e;
181
- if (X(e, ["h", "s", "l"]))
182
- return L(_e(e));
183
- if (X(e, ["h", "s", "v"]))
184
- return L(e);
181
+ if (J(e, ["h", "s", "l"]))
182
+ return R(we(e));
183
+ if (J(e, ["h", "s", "v"]))
184
+ return R(e);
185
185
  }
186
186
  throw new TypeError(`Invalid color: ${e == null ? e : String(e) || e.constructor.name}
187
187
  Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`);
188
188
  }
189
- function L(e) {
189
+ function R(e) {
190
190
  const {
191
- h: t,
192
- s: n,
191
+ h: n,
192
+ s: t,
193
193
  v: s,
194
194
  a
195
195
  } = e, i = (m) => {
196
- const o = (m + t / 60) % 6;
197
- return s - s * n * Math.max(Math.min(o, 4 - o, 1), 0);
196
+ const o = (m + n / 60) % 6;
197
+ return s - s * t * Math.max(Math.min(o, 4 - o, 1), 0);
198
198
  }, u = [i(5), i(3), i(1)].map((m) => Math.round(m * 255));
199
199
  return {
200
200
  r: u[0],
@@ -203,118 +203,118 @@ function L(e) {
203
203
  a
204
204
  };
205
205
  }
206
- function de(e) {
207
- return L(_e(e));
206
+ function ye(e) {
207
+ return R(we(e));
208
208
  }
209
- function _e(e) {
209
+ function we(e) {
210
210
  const {
211
- h: t,
212
- s: n,
211
+ h: n,
212
+ s: t,
213
213
  l: s,
214
214
  a
215
- } = e, i = s + n * Math.min(s, 1 - s), u = i === 0 ? 0 : 2 - 2 * s / i;
215
+ } = e, i = s + t * Math.min(s, 1 - s), u = i === 0 ? 0 : 2 - 2 * s / i;
216
216
  return {
217
- h: t,
217
+ h: n,
218
218
  s: u,
219
219
  v: i,
220
220
  a
221
221
  };
222
222
  }
223
- function ot(e) {
224
- e = ct(e);
225
- let [t, n, s, a] = Qe(e, 2).map((i) => parseInt(i, 16));
223
+ function dn(e) {
224
+ e = mn(e);
225
+ let [n, t, s, a] = en(e, 2).map((i) => parseInt(i, 16));
226
226
  return a = a === void 0 ? a : a / 255, {
227
- r: t,
228
- g: n,
227
+ r: n,
228
+ g: t,
229
229
  b: s,
230
230
  a
231
231
  };
232
232
  }
233
- function ct(e) {
234
- return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((t) => t + t).join("")), e.length !== 6 && (e = ne(ne(e, 6), 8, "F")), e;
233
+ function mn(e) {
234
+ return e.startsWith("#") && (e = e.slice(1)), e = e.replace(/([^0-9a-f])/gi, "F"), (e.length === 3 || e.length === 4) && (e = e.split("").map((n) => n + n).join("")), e.length !== 6 && (e = le(le(e, 6), 8, "F")), e;
235
235
  }
236
- function ft(e) {
237
- const t = Math.abs(ce($(0), $(e)));
238
- return Math.abs(ce($(16777215), $(e))) > Math.min(t, 50) ? "#fff" : "#000";
236
+ function gn(e) {
237
+ const n = Math.abs(me(M(0), M(e)));
238
+ return Math.abs(me(M(16777215), M(e))) > Math.min(n, 50) ? "#fff" : "#000";
239
239
  }
240
- function T(e, t) {
241
- const n = Me();
242
- if (!n)
240
+ function O(e, n) {
241
+ const t = Me();
242
+ if (!t)
243
243
  throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);
244
- return n;
244
+ return t;
245
245
  }
246
- function dt() {
246
+ function yn() {
247
247
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "composables";
248
- const t = T(e).type;
249
- return F((t == null ? void 0 : t.aliasName) || (t == null ? void 0 : t.name));
248
+ const n = O(e).type;
249
+ return B((n == null ? void 0 : n.aliasName) || (n == null ? void 0 : n.name));
250
250
  }
251
- function mt(e) {
252
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : T("injectSelf");
251
+ function hn(e) {
252
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : O("injectSelf");
253
253
  const {
254
- provides: n
255
- } = t;
256
- if (n && e in n)
257
- return n[e];
254
+ provides: t
255
+ } = n;
256
+ if (t && e in t)
257
+ return t[e];
258
258
  }
259
- const J = Symbol.for("vuetify:defaults");
259
+ const j = Symbol.for("vuetify:defaults");
260
260
  function Fe() {
261
- const e = Q(J);
261
+ const e = ee(j);
262
262
  if (!e) throw new Error("[Vuetify] Could not find defaults instance");
263
263
  return e;
264
264
  }
265
- function gt(e, t) {
266
- var n, s;
267
- return typeof ((n = e.props) == null ? void 0 : n[t]) < "u" || typeof ((s = e.props) == null ? void 0 : s[F(t)]) < "u";
265
+ function vn(e, n) {
266
+ var t, s;
267
+ return typeof ((t = e.props) == null ? void 0 : t[n]) < "u" || typeof ((s = e.props) == null ? void 0 : s[B(n)]) < "u";
268
268
  }
269
- function yt() {
270
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Fe();
271
- const s = T("useDefaults");
272
- if (t = t ?? s.type.name ?? s.type.__name, !t)
269
+ function kn() {
270
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Fe();
271
+ const s = O("useDefaults");
272
+ if (n = n ?? s.type.name ?? s.type.__name, !n)
273
273
  throw new Error("[Vuetify] Could not determine component name");
274
- const a = k(() => {
274
+ const a = C(() => {
275
275
  var o;
276
- return (o = n.value) == null ? void 0 : o[e._as ?? t];
276
+ return (o = t.value) == null ? void 0 : o[e._as ?? n];
277
277
  }), i = new Proxy(e, {
278
278
  get(o, d) {
279
- var g, V, S, b, P, z, c;
280
- const h = Reflect.get(o, d);
281
- return d === "class" || d === "style" ? [(g = a.value) == null ? void 0 : g[d], h].filter((l) => l != null) : typeof d == "string" && !gt(s.vnode, d) ? ((V = a.value) == null ? void 0 : V[d]) !== void 0 ? (S = a.value) == null ? void 0 : S[d] : ((P = (b = n.value) == null ? void 0 : b.global) == null ? void 0 : P[d]) !== void 0 ? (c = (z = n.value) == null ? void 0 : z.global) == null ? void 0 : c[d] : h : h;
279
+ var g, b, S, x, H, N, w;
280
+ const y = Reflect.get(o, d);
281
+ return d === "class" || d === "style" ? [(g = a.value) == null ? void 0 : g[d], y].filter((K) => K != null) : typeof d == "string" && !vn(s.vnode, d) ? ((b = a.value) == null ? void 0 : b[d]) !== void 0 ? (S = a.value) == null ? void 0 : S[d] : ((H = (x = t.value) == null ? void 0 : x.global) == null ? void 0 : H[d]) !== void 0 ? (w = (N = t.value) == null ? void 0 : N.global) == null ? void 0 : w[d] : y : y;
282
282
  }
283
283
  }), u = Te();
284
- Ce(() => {
284
+ xe(() => {
285
285
  if (a.value) {
286
286
  const o = Object.entries(a.value).filter((d) => {
287
- let [h] = d;
288
- return h.startsWith(h[0].toUpperCase());
287
+ let [y] = d;
288
+ return y.startsWith(y[0].toUpperCase());
289
289
  });
290
290
  u.value = o.length ? Object.fromEntries(o) : void 0;
291
291
  } else
292
292
  u.value = void 0;
293
293
  });
294
294
  function m() {
295
- const o = mt(J, s);
296
- ke(J, k(() => u.value ? Se((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
295
+ const o = hn(j, s);
296
+ be(j, C(() => u.value ? Se((o == null ? void 0 : o.value) ?? {}, u.value) : o == null ? void 0 : o.value));
297
297
  }
298
298
  return {
299
299
  props: i,
300
300
  provideSubDefaults: m
301
301
  };
302
302
  }
303
- function q(e) {
303
+ function X(e) {
304
304
  if (e._setup = e._setup ?? e.setup, !e.name)
305
- return A("The component is missing an explicit name, unable to generate default prop value"), e;
305
+ return P("The component is missing an explicit name, unable to generate default prop value"), e;
306
306
  if (e._setup) {
307
307
  e.props = p(e.props ?? {}, e.name)();
308
- const t = Object.keys(e.props).filter((n) => n !== "class" && n !== "style");
308
+ const n = Object.keys(e.props).filter((t) => t !== "class" && t !== "style");
309
309
  e.filterProps = function(s) {
310
- return Je(s, t);
310
+ return je(s, n);
311
311
  }, e.props._as = String, e.setup = function(s, a) {
312
312
  const i = Fe();
313
313
  if (!i.value) return e._setup(s, a);
314
314
  const {
315
315
  props: u,
316
316
  provideSubDefaults: m
317
- } = yt(s, s._as ?? e.name, i), o = e._setup(u, a);
317
+ } = kn(s, s._as ?? e.name, i), o = e._setup(u, a);
318
318
  return m(), o;
319
319
  };
320
320
  }
@@ -322,66 +322,66 @@ function q(e) {
322
322
  }
323
323
  function Be() {
324
324
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
325
- return (t) => (e ? q : M)(t);
325
+ return (n) => (e ? X : $)(n);
326
326
  }
327
- function ht(e) {
328
- const t = T("useRender");
329
- t.render = e;
327
+ function Cn(e) {
328
+ const n = O("useRender");
329
+ n.render = e;
330
330
  }
331
- const me = Symbol.for("vuetify:theme"), vt = p({
331
+ const he = Symbol.for("vuetify:theme"), Vn = p({
332
332
  theme: String
333
333
  }, "theme");
334
- function Ct(e) {
335
- T("provideTheme");
336
- const t = Q(me, null);
337
- if (!t) throw new Error("Could not find Vuetify theme injection");
338
- const n = k(() => e.theme ?? t.name.value), s = k(() => t.themes.value[n.value]), a = k(() => t.isDisabled ? void 0 : `v-theme--${n.value}`), i = {
339
- ...t,
340
- name: n,
334
+ function xn(e) {
335
+ O("provideTheme");
336
+ const n = ee(he, null);
337
+ if (!n) throw new Error("Could not find Vuetify theme injection");
338
+ const t = C(() => e.theme ?? n.name.value), s = C(() => n.themes.value[t.value]), a = C(() => n.isDisabled ? void 0 : `v-theme--${t.value}`), i = {
339
+ ...n,
340
+ name: t,
341
341
  current: s,
342
342
  themeClasses: a
343
343
  };
344
- return ke(me, i), i;
344
+ return be(he, i), i;
345
345
  }
346
- const kt = p({
346
+ const bn = p({
347
347
  tag: {
348
348
  type: String,
349
349
  default: "div"
350
350
  }
351
351
  }, "tag");
352
- function xt(e) {
353
- return we(() => {
354
- const t = [], n = {};
352
+ function Sn(e) {
353
+ return pe(() => {
354
+ const n = [], t = {};
355
355
  if (e.value.background)
356
- if (K(e.value.background)) {
357
- if (n.backgroundColor = e.value.background, !e.value.text && rt(e.value.background)) {
358
- const s = $(e.value.background);
356
+ if (Q(e.value.background)) {
357
+ if (t.backgroundColor = e.value.background, !e.value.text && cn(e.value.background)) {
358
+ const s = M(e.value.background);
359
359
  if (s.a == null || s.a === 1) {
360
- const a = ft(s);
361
- n.color = a, n.caretColor = a;
360
+ const a = gn(s);
361
+ t.color = a, t.caretColor = a;
362
362
  }
363
363
  }
364
364
  } else
365
- t.push(`bg-${e.value.background}`);
366
- return e.value.text && (K(e.value.text) ? (n.color = e.value.text, n.caretColor = e.value.text) : t.push(`text-${e.value.text}`)), {
367
- colorClasses: t,
368
- colorStyles: n
365
+ n.push(`bg-${e.value.background}`);
366
+ return e.value.text && (Q(e.value.text) ? (t.color = e.value.text, t.caretColor = e.value.text) : n.push(`text-${e.value.text}`)), {
367
+ colorClasses: n,
368
+ colorStyles: t
369
369
  };
370
370
  });
371
371
  }
372
- function bt(e, t) {
373
- const n = k(() => ({
372
+ function _n(e, n) {
373
+ const t = C(() => ({
374
374
  text: Pe(e) ? e.value : null
375
375
  })), {
376
376
  colorClasses: s,
377
377
  colorStyles: a
378
- } = xt(n);
378
+ } = Sn(t);
379
379
  return {
380
380
  textColorClasses: s,
381
381
  textColorStyles: a
382
382
  };
383
383
  }
384
- const Ie = [String, Function, Object, Array], Vt = Symbol.for("vuetify:icons"), Z = p({
384
+ const Ie = [String, Function, Object, Array], pn = Symbol.for("vuetify:icons"), Y = p({
385
385
  icon: {
386
386
  type: Ie
387
387
  },
@@ -390,152 +390,152 @@ const Ie = [String, Function, Object, Array], Vt = Symbol.for("vuetify:icons"),
390
390
  type: String,
391
391
  required: !0
392
392
  }
393
- }, "icon"), ge = Be()({
393
+ }, "icon"), ve = Be()({
394
394
  name: "VComponentIcon",
395
- props: Z(),
396
- setup(e, t) {
395
+ props: Y(),
396
+ setup(e, n) {
397
397
  let {
398
- slots: n
399
- } = t;
398
+ slots: t
399
+ } = n;
400
400
  return () => {
401
401
  const s = e.icon;
402
- return C(e.tag, null, {
402
+ return k(e.tag, null, {
403
403
  default: () => {
404
404
  var a;
405
- return [e.icon ? C(s, null, null) : (a = n.default) == null ? void 0 : a.call(n)];
405
+ return [e.icon ? k(s, null, null) : (a = t.default) == null ? void 0 : a.call(t)];
406
406
  }
407
407
  });
408
408
  };
409
409
  }
410
- }), St = q({
410
+ }), wn = X({
411
411
  name: "VSvgIcon",
412
412
  inheritAttrs: !1,
413
- props: Z(),
414
- setup(e, t) {
413
+ props: Y(),
414
+ setup(e, n) {
415
415
  let {
416
- attrs: n
417
- } = t;
418
- return () => C(e.tag, ze(n, {
416
+ attrs: t
417
+ } = n;
418
+ return () => k(e.tag, ze(t, {
419
419
  style: null
420
420
  }), {
421
- default: () => [C("svg", {
421
+ default: () => [k("svg", {
422
422
  class: "v-icon__svg",
423
423
  xmlns: "http://www.w3.org/2000/svg",
424
424
  viewBox: "0 0 24 24",
425
425
  role: "img",
426
426
  "aria-hidden": "true"
427
- }, [Array.isArray(e.icon) ? e.icon.map((s) => Array.isArray(s) ? C("path", {
427
+ }, [Array.isArray(e.icon) ? e.icon.map((s) => Array.isArray(s) ? k("path", {
428
428
  d: s[0],
429
429
  "fill-opacity": s[1]
430
- }, null) : C("path", {
430
+ }, null) : k("path", {
431
431
  d: s
432
- }, null)) : C("path", {
432
+ }, null)) : k("path", {
433
433
  d: e.icon
434
434
  }, null)])]
435
435
  });
436
436
  }
437
437
  });
438
- q({
438
+ X({
439
439
  name: "VLigatureIcon",
440
- props: Z(),
440
+ props: Y(),
441
441
  setup(e) {
442
- return () => C(e.tag, null, {
442
+ return () => k(e.tag, null, {
443
443
  default: () => [e.icon]
444
444
  });
445
445
  }
446
446
  });
447
- q({
447
+ X({
448
448
  name: "VClassIcon",
449
- props: Z(),
449
+ props: Y(),
450
450
  setup(e) {
451
- return () => C(e.tag, {
451
+ return () => k(e.tag, {
452
452
  class: e.icon
453
453
  }, null);
454
454
  }
455
455
  });
456
- const pt = (e) => {
457
- const t = Q(Vt);
458
- if (!t) throw new Error("Missing Vuetify Icons provide!");
456
+ const Fn = (e) => {
457
+ const n = ee(pn);
458
+ if (!n) throw new Error("Missing Vuetify Icons provide!");
459
459
  return {
460
- iconData: k(() => {
460
+ iconData: C(() => {
461
461
  var o;
462
- const s = W(e);
462
+ const s = q(e);
463
463
  if (!s) return {
464
- component: ge
464
+ component: ve
465
465
  };
466
466
  let a = s;
467
- if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = t.aliases) == null ? void 0 : o[a.slice(1)])), a || A(`Could not find aliased icon "${s}"`), Array.isArray(a))
467
+ if (typeof a == "string" && (a = a.trim(), a.startsWith("$") && (a = (o = n.aliases) == null ? void 0 : o[a.slice(1)])), a || P(`Could not find aliased icon "${s}"`), Array.isArray(a))
468
468
  return {
469
- component: St,
469
+ component: wn,
470
470
  icon: a
471
471
  };
472
472
  if (typeof a != "string")
473
473
  return {
474
- component: ge,
474
+ component: ve,
475
475
  icon: a
476
476
  };
477
- const i = Object.keys(t.sets).find((d) => typeof a == "string" && a.startsWith(`${d}:`)), u = i ? a.slice(i.length + 1) : a;
477
+ const i = Object.keys(n.sets).find((d) => typeof a == "string" && a.startsWith(`${d}:`)), u = i ? a.slice(i.length + 1) : a;
478
478
  return {
479
- component: t.sets[i ?? t.defaultSet].component,
479
+ component: n.sets[i ?? n.defaultSet].component,
480
480
  icon: u
481
481
  };
482
482
  })
483
483
  };
484
- }, wt = ["x-small", "small", "default", "large", "x-large"], _t = p({
484
+ }, Bn = ["x-small", "small", "default", "large", "x-large"], In = p({
485
485
  size: {
486
486
  type: [String, Number],
487
487
  default: "default"
488
488
  }
489
489
  }, "size");
490
- function Ft(e) {
491
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : dt();
492
- return we(() => {
493
- let n, s;
494
- return je(wt, e.size) ? n = `${t}--size-${e.size}` : e.size && (s = {
495
- width: D(e.size),
496
- height: D(e.size)
490
+ function $n(e) {
491
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : yn();
492
+ return pe(() => {
493
+ let t, s;
494
+ return nn(Bn, e.size) ? t = `${n}--size-${e.size}` : e.size && (s = {
495
+ width: T(e.size),
496
+ height: T(e.size)
497
497
  }), {
498
- sizeClasses: n,
498
+ sizeClasses: t,
499
499
  sizeStyles: s
500
500
  };
501
501
  });
502
502
  }
503
- const Bt = p({
503
+ const An = p({
504
504
  color: String,
505
505
  disabled: Boolean,
506
506
  start: Boolean,
507
507
  end: Boolean,
508
508
  icon: Ie,
509
- ...Ke(),
510
- ..._t(),
511
- ...kt({
509
+ ...Qe(),
510
+ ...In(),
511
+ ...bn({
512
512
  tag: "i"
513
513
  }),
514
- ...vt()
515
- }, "VIcon"), It = Be()({
514
+ ...Vn()
515
+ }, "VIcon"), Dn = Be()({
516
516
  name: "VIcon",
517
- props: Bt(),
518
- setup(e, t) {
517
+ props: An(),
518
+ setup(e, n) {
519
519
  let {
520
- attrs: n,
520
+ attrs: t,
521
521
  slots: s
522
- } = t;
523
- const a = I(), {
522
+ } = n;
523
+ const a = L(), {
524
524
  themeClasses: i
525
- } = Ct(e), {
525
+ } = xn(e), {
526
526
  iconData: u
527
- } = pt(k(() => a.value || e.icon)), {
527
+ } = Fn(C(() => a.value || e.icon)), {
528
528
  sizeClasses: m
529
- } = Ft(e), {
529
+ } = $n(e), {
530
530
  textColorClasses: o,
531
531
  textColorStyles: d
532
- } = bt(Re(e, "color"));
533
- return ht(() => {
534
- var V, S;
535
- const h = (V = s.default) == null ? void 0 : V.call(s);
536
- h && (a.value = (S = pe(h).filter((b) => b.type === He && b.children && typeof b.children == "string")[0]) == null ? void 0 : S.children);
537
- const g = !!(n.onClick || n.onClickOnce);
538
- return C(u.value.component, {
532
+ } = _n(Re(e, "color"));
533
+ return Cn(() => {
534
+ var b, S;
535
+ const y = (b = s.default) == null ? void 0 : b.call(s);
536
+ y && (a.value = (S = _e(y).filter((x) => x.type === Oe && x.children && typeof x.children == "string")[0]) == null ? void 0 : S.children);
537
+ const g = !!(t.onClick || t.onClickOnce);
538
+ return k(u.value.component, {
539
539
  tag: e.tag,
540
540
  icon: u.value.icon,
541
541
  class: ["v-icon", "notranslate", i.value, m.value, o.value, {
@@ -545,23 +545,23 @@ const Bt = p({
545
545
  "v-icon--end": e.end
546
546
  }, e.class],
547
547
  style: [m.value ? void 0 : {
548
- fontSize: D(e.size),
549
- height: D(e.size),
550
- width: D(e.size)
548
+ fontSize: T(e.size),
549
+ height: T(e.size),
550
+ width: T(e.size)
551
551
  }, d.value, e.style],
552
552
  role: g ? "button" : void 0,
553
553
  "aria-hidden": !g,
554
554
  tabindex: g ? e.disabled ? -1 : 0 : void 0
555
555
  }, {
556
- default: () => [h]
556
+ default: () => [y]
557
557
  });
558
558
  }), {};
559
559
  }
560
- }), $t = /* @__PURE__ */ M({
560
+ }), Ln = /* @__PURE__ */ $({
561
561
  __name: "index",
562
- props: /* @__PURE__ */ Y({
563
- min: { default: -1 / 0 },
564
- max: { default: 1 / 0 },
562
+ props: /* @__PURE__ */ Z({
563
+ min: { default: () => -1 / 0 },
564
+ max: { default: () => 1 / 0 },
565
565
  precision: { default: 4 },
566
566
  step: { default: 1 },
567
567
  readonly: { type: Boolean, default: !1 }
@@ -571,53 +571,75 @@ const Bt = p({
571
571
  }),
572
572
  emits: ["update:modelValue"],
573
573
  setup(e) {
574
- const t = xe(e, "modelValue"), n = e, s = k(() => ({
575
- width: "250px"
576
- }));
577
- return (a, i) => {
578
- const u = G("v-text-field");
579
- return _(), be("div", {
580
- style: Ve(s.value)
581
- }, [
582
- C(u, {
583
- "model-value": t.value,
584
- variant: "outlined",
585
- density: "compact",
586
- readonly: n.readonly,
587
- "hide-details": "",
588
- "single-line": ""
589
- }, null, 8, ["model-value", "readonly"])
590
- ], 4);
574
+ const n = ne(e, "modelValue");
575
+ return (t, s) => {
576
+ const a = z("v-number-input");
577
+ return _(), I(a, {
578
+ modelValue: n.value,
579
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => n.value = i),
580
+ variant: "outlined",
581
+ min: t.min,
582
+ max: t.max,
583
+ precision: t.precision,
584
+ step: t.step,
585
+ "hide-details": "",
586
+ "single-line": "",
587
+ readonly: t.readonly
588
+ }, null, 8, ["modelValue", "min", "max", "precision", "step", "readonly"]);
589
+ };
590
+ }
591
+ }), Mn = /* @__PURE__ */ $({
592
+ __name: "index",
593
+ props: /* @__PURE__ */ Z({
594
+ readonly: { type: Boolean, default: !1 }
595
+ }, {
596
+ modelValue: {},
597
+ modelModifiers: {}
598
+ }),
599
+ emits: ["update:modelValue"],
600
+ setup(e) {
601
+ const n = ne(e, "modelValue");
602
+ return (t, s) => {
603
+ const a = z("v-select");
604
+ return _(), I(a, {
605
+ modelValue: n.value,
606
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => n.value = i),
607
+ variant: "outlined",
608
+ density: "compact",
609
+ "hide-details": "",
610
+ "single-line": "",
611
+ readonly: t.readonly
612
+ }, null, 8, ["modelValue", "readonly"]);
591
613
  };
592
614
  }
593
- }), ye = /* @__PURE__ */ M({
615
+ }), ke = /* @__PURE__ */ $({
594
616
  __name: "index",
595
- props: /* @__PURE__ */ Y({
617
+ props: /* @__PURE__ */ Z({
596
618
  readonly: { type: Boolean, default: !1 },
597
619
  hasDelete: { type: Boolean, default: !1 }
598
620
  }, {
599
621
  modelValue: {},
600
622
  modelModifiers: {}
601
623
  }),
602
- emits: /* @__PURE__ */ Y(["delete"], ["update:modelValue"]),
603
- setup(e, { emit: t }) {
604
- const n = xe(e, "modelValue"), s = e, a = t;
605
- return (i, u) => {
606
- const m = G("v-text-field");
607
- return _(), U(m, {
608
- modelValue: n.value,
609
- "onUpdate:modelValue": u[0] || (u[0] = (o) => n.value = o),
624
+ emits: /* @__PURE__ */ Z(["delete"], ["update:modelValue"]),
625
+ setup(e, { emit: n }) {
626
+ const t = ne(e, "modelValue"), s = n;
627
+ return (a, i) => {
628
+ const u = z("v-text-field");
629
+ return _(), I(u, {
630
+ modelValue: t.value,
631
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => t.value = m),
610
632
  variant: "outlined",
611
633
  density: "compact",
612
- "append-inner-icon": s.hasDelete ? W(Xe) : "",
613
- readonly: s.readonly,
634
+ "append-inner-icon": a.hasDelete ? q(Ke) : "",
614
635
  "hide-details": "",
615
636
  "single-line": "",
616
- "onClick:appendInner": u[1] || (u[1] = (o) => a("delete"))
637
+ readonly: a.readonly,
638
+ "onClick:appendInner": i[1] || (i[1] = (m) => s("delete"))
617
639
  }, null, 8, ["modelValue", "append-inner-icon", "readonly"]);
618
640
  };
619
641
  }
620
- }), he = /* @__PURE__ */ M({
642
+ }), Ce = /* @__PURE__ */ $({
621
643
  __name: "index",
622
644
  props: {
623
645
  title: {},
@@ -627,41 +649,41 @@ const Bt = p({
627
649
  index: { default: 0 }
628
650
  },
629
651
  emits: ["collapse", "create", "delete"],
630
- setup(e, { emit: t }) {
631
- const n = e, s = t, a = k(() => ({
652
+ setup(e, { emit: n }) {
653
+ const t = e, s = n, a = C(() => ({
632
654
  height: "36px"
633
655
  }));
634
656
  return (i, u) => {
635
- const m = G("v-icon"), o = G("v-spacer"), d = Oe("ripple");
636
- return Ne((_(), be("div", {
657
+ const m = z("v-icon"), o = z("v-spacer"), d = He("ripple");
658
+ return Ne((_(), Ee("div", {
637
659
  class: "d-flex align-center",
638
- style: Ve(a.value),
639
- onClick: u[2] || (u[2] = (h) => s("collapse", !n.collapse))
660
+ style: We(a.value),
661
+ onClick: u[2] || (u[2] = (y) => s("collapse", !t.collapse))
640
662
  }, [
641
- C(m, {
663
+ k(m, {
642
664
  class: "mr-1",
643
- icon: n.collapse ? W(Ze) : W(qe)
665
+ icon: t.collapse ? q(Ye) : q(Xe)
644
666
  }, null, 8, ["icon"]),
645
- Ee("span", null, We(n.title), 1),
646
- C(o),
647
- n.hasCreate ? (_(), U(m, {
667
+ Ue("span", null, Ge(t.title), 1),
668
+ k(o),
669
+ t.hasCreate ? (_(), I(m, {
648
670
  key: 0,
649
671
  class: "ml-3",
650
672
  icon: "$plus",
651
- onClick: u[0] || (u[0] = j((h) => s("create"), ["stop"]))
652
- })) : ee("", !0),
653
- n.hasDelete ? (_(), U(m, {
673
+ onClick: u[0] || (u[0] = te((y) => s("create"), ["stop"]))
674
+ })) : se("", !0),
675
+ t.hasDelete ? (_(), I(m, {
654
676
  key: 1,
655
677
  class: "ml-3",
656
678
  icon: "$sub",
657
- onClick: u[1] || (u[1] = j((h) => s("delete", n.index), ["stop"]))
658
- })) : ee("", !0)
679
+ onClick: u[1] || (u[1] = te((y) => s("delete", t.index), ["stop"]))
680
+ })) : se("", !0)
659
681
  ], 4)), [
660
682
  [d]
661
683
  ]);
662
684
  };
663
685
  }
664
- }), Dt = /* @__PURE__ */ M({
686
+ }), Tn = /* @__PURE__ */ $({
665
687
  __name: "index",
666
688
  props: {
667
689
  unique: {},
@@ -669,23 +691,23 @@ const Bt = p({
669
691
  object: {}
670
692
  },
671
693
  emits: ["change"],
672
- setup(e, { emit: t }) {
673
- const { t: n } = Ge(), { backgroundColor2: s } = Ue(), a = e, i = t, u = I("20px"), m = I("56px"), o = I("10px"), d = I("250px"), h = ve({});
674
- function g(c, l, r, f) {
675
- return l.keyFlag || (c !== "" && (c += "."), c += l.key), l.children ? l.array ? V(c, l, r, f) : S(c, l, r, f) : l.array ? b(c, l, r) : P(c, l, r);
694
+ setup(e, { emit: n }) {
695
+ const { t } = qe(), { backgroundColor2: s } = Ze(), a = e, i = n, u = L("20px"), m = L("56px"), o = L("10px"), d = L("250px"), y = Ve({});
696
+ function g(f, l, r, c) {
697
+ return l.keyFlag || (f !== "" && (f += "."), f += l.key), l.children ? l.array ? b(f, l, r, c) : S(f, l, r, c) : l.array ? x(f, l, r) : N(f, l, r);
676
698
  }
677
- function V(c, l, r, f) {
678
- r[l.key] instanceof Array || (r[l.key] = [], i("change", c, r[l.key]));
679
- const B = y(he, {
680
- title: n(l.name),
681
- collapse: !!f.collapse,
682
- onCollapse: (v) => {
683
- f.collapse = v;
699
+ function b(f, l, r, c) {
700
+ r[l.key] instanceof Array || (r[l.key] = [], i("change", f, r[l.key]));
701
+ const A = v(Ce, {
702
+ title: t(l.name),
703
+ collapse: !!c.collapse,
704
+ onCollapse: (h) => {
705
+ c.collapse = h;
684
706
  },
685
707
  onCreate: () => {
686
- r[l.key].push({}), i("change", c, r[l.key]);
708
+ r[l.key].push({}), i("change", f, r[l.key]);
687
709
  }
688
- }), x = y(
710
+ }), V = v(
689
711
  "div",
690
712
  {
691
713
  style: {
@@ -693,15 +715,15 @@ const Bt = p({
693
715
  }
694
716
  },
695
717
  (() => {
696
- f[l.key] instanceof Array || (f[l.key] = []);
697
- for (let v = 0; v < r[l.key].length; v++)
698
- typeof f[l.key][v] != "object" && (f[l.key][v] = {
718
+ c[l.key] instanceof Array || (c[l.key] = []);
719
+ for (let h = 0; h < r[l.key].length; h++)
720
+ typeof c[l.key][h] != "object" && (c[l.key][h] = {
699
721
  collapse: !0
700
722
  });
701
723
  return [];
702
724
  })()
703
725
  );
704
- return y(
726
+ return v(
705
727
  "div",
706
728
  {
707
729
  style: {
@@ -710,19 +732,19 @@ const Bt = p({
710
732
  }
711
733
  },
712
734
  (() => {
713
- const v = [];
714
- return v.push(B), f.collapse || v.push(x), v;
735
+ const h = [];
736
+ return h.push(A), c.collapse || h.push(V), h;
715
737
  })()
716
738
  );
717
739
  }
718
- function S(c, l, r, f) {
719
- const B = y(he, {
720
- title: n(l.name),
721
- collapse: !!f.collapse,
722
- onCollapse: (v) => {
723
- f.collapse = v;
740
+ function S(f, l, r, c) {
741
+ const A = v(Ce, {
742
+ title: t(l.name),
743
+ collapse: !!c.collapse,
744
+ onCollapse: (h) => {
745
+ c.collapse = h;
724
746
  }
725
- }), x = y(
747
+ }), V = v(
726
748
  "div",
727
749
  {
728
750
  style: {
@@ -730,23 +752,23 @@ const Bt = p({
730
752
  }
731
753
  },
732
754
  (() => {
733
- var R;
734
- const v = [];
735
- return (R = l.children) == null || R.forEach((H) => {
736
- typeof f[H.key] != "object" && (f[H.key] = {
755
+ var E;
756
+ const h = [];
757
+ return (E = l.children) == null || E.forEach((W) => {
758
+ typeof c[W.key] != "object" && (c[W.key] = {
737
759
  collapse: !0
738
760
  });
739
761
  const $e = g(
740
- c,
741
- H,
742
- l.keyFlag ? r : (typeof r[l.key] != "object" && (r[l.key] = {}, i("change", c, r[l.key])), r[l.key]),
743
- f[H.key]
762
+ f,
763
+ W,
764
+ l.keyFlag ? r : (typeof r[l.key] != "object" && (r[l.key] = {}, i("change", f, r[l.key])), r[l.key]),
765
+ c[W.key]
744
766
  );
745
- v.push($e);
746
- }), v;
767
+ h.push($e);
768
+ }), h;
747
769
  })()
748
770
  );
749
- return y(
771
+ return v(
750
772
  "div",
751
773
  {
752
774
  style: {
@@ -755,186 +777,140 @@ const Bt = p({
755
777
  }
756
778
  },
757
779
  (() => {
758
- const v = [];
759
- return v.push(B), f.collapse || v.push(x), v;
780
+ const h = [];
781
+ return h.push(A), c.collapse || h.push(V), h;
760
782
  })()
761
783
  );
762
784
  }
763
- function b(c, l, r) {
764
- if (r[l.key] instanceof Array || (r[l.key] = O(l), i("change", c, r[l.key])), l.ui === "strInput")
765
- return y(
766
- "div",
767
- {
768
- class: {
769
- "d-flex": !0,
770
- "justify-space-between": !0,
771
- "align-center": !0
772
- },
773
- style: {
774
- marginRight: o.value
785
+ function x(f, l, r) {
786
+ if (r[l.key] instanceof Array || (r[l.key] = D(l), i("change", f, r[l.key])), l.ui === "strInput")
787
+ return H(
788
+ t(l.name),
789
+ (() => {
790
+ const c = [];
791
+ for (let V = 0; V < r[l.key].length; V++) {
792
+ const h = v(
793
+ "div",
794
+ {
795
+ class: "d-flex align-center justify-center",
796
+ style: {
797
+ height: m.value
798
+ }
799
+ },
800
+ [
801
+ v(ke, {
802
+ modelValue: r[l.key][V],
803
+ "onUpdate:modelValue": (E) => {
804
+ r[l.key][V] = E, i("change", f, r[l.key]);
805
+ },
806
+ hasDelete: !0,
807
+ onDelete: () => {
808
+ r[l.key].splice(V, 1), i("change", f, r[l.key]);
809
+ }
810
+ })
811
+ ]
812
+ );
813
+ c.push(h);
775
814
  }
776
- },
777
- [
778
- y("span", {
779
- style: {
780
- marginLeft: "4px"
781
- },
782
- innerHTML: n(l.name)
783
- }),
784
- y(
815
+ const A = v(
785
816
  "div",
786
817
  {
818
+ class: "d-flex align-center justify-center",
787
819
  style: {
788
- width: d.value
820
+ backgroundColor: "transparent",
821
+ width: "100%",
822
+ height: "40px",
823
+ marginTop: "8px",
824
+ marginBottom: "8px",
825
+ borderRadius: "5px",
826
+ border: "thin dashed #bdbdbd"
827
+ },
828
+ onClick: () => {
829
+ r[l.key].push(""), i("change", f, r[l.key]);
789
830
  }
790
831
  },
791
- (() => {
792
- const f = [];
793
- for (let x = 0; x < r[l.key].length; x++) {
794
- const v = y(
795
- "div",
796
- {
797
- class: {
798
- "d-flex": !0,
799
- "align-center": !0,
800
- "justify-center": !0
801
- },
802
- style: {
803
- height: m.value
804
- }
805
- },
806
- [
807
- y(ye, {
808
- modelValue: r[l.key][x],
809
- "onUpdate:modelValue": (R) => {
810
- r[l.key][x] = R, i("change", c, r[l.key]);
811
- },
812
- hasDelete: !0,
813
- onDelete: () => {
814
- r[l.key].splice(x, 1), i("change", c, r[l.key]);
815
- }
816
- })
817
- ]
818
- );
819
- f.push(v);
820
- }
821
- const B = y(
822
- "div",
823
- {
824
- class: {
825
- "d-flex": !0,
826
- "align-center": !0,
827
- "justify-center": !0
828
- },
829
- style: {
830
- backgroundColor: "transparent",
831
- width: "100%",
832
- height: "40px",
833
- marginTop: "8px",
834
- marginBottom: "8px",
835
- borderRadius: "5px",
836
- border: "thin dashed #bdbdbd"
837
- },
838
- onClick: () => {
839
- r[l.key].push(""), i("change", c, r[l.key]);
840
- }
841
- },
842
- [y(It, { icon: Ye })]
843
- );
844
- return f.push(B), f;
845
- })()
846
- )
847
- ]
832
+ [v(Dn, { icon: Je })]
833
+ );
834
+ return c.push(A), c;
835
+ })()
848
836
  );
849
837
  console.assert(!1);
850
838
  }
851
- function P(c, l, r) {
839
+ function H(f, l) {
840
+ return v(
841
+ "div",
842
+ {
843
+ class: "d-flex justify-space-between align-center",
844
+ style: {
845
+ marginRight: o.value
846
+ }
847
+ },
848
+ [
849
+ v("span", { style: { marginLeft: "4px" }, innerHTML: f }),
850
+ v("div", { style: { width: d.value }, raws: l })
851
+ ]
852
+ );
853
+ }
854
+ function N(f, l, r) {
852
855
  if (l.ui === "void")
853
- r[l.key] === void 0 && (console.assert(l.default !== void 0), r[l.key] = O(l), i("change", c, r[l.key]));
856
+ r[l.key] === void 0 && (console.assert(l.default !== void 0), r[l.key] = D(l), i("change", f, r[l.key]));
854
857
  else {
855
858
  if (l.ui === "strInput")
856
- return y(
857
- "div",
858
- {
859
- class: {
860
- "d-flex": !0,
861
- "justify-space-between": !0,
862
- "align-center": !0
859
+ return w(
860
+ t(l.name),
861
+ v(ke, {
862
+ modelValue: l.static ? l.value : (typeof r[l.key] != "string" && (r[l.key] = D(l), i("change", f, r[l.key])), r[l.key]),
863
+ "onUpdate:modelValue": (c) => {
864
+ l.static || c !== r[l.key] && (r[l.key] = c, i("change", f, c));
863
865
  },
864
- style: {
865
- height: m.value,
866
- marginRight: o.value
867
- }
868
- },
869
- [
870
- y("span", {
871
- style: {
872
- marginLeft: "4px"
873
- },
874
- innerHTML: n(l.name)
875
- }),
876
- y(
877
- "div",
878
- {
879
- style: {
880
- width: d.value
881
- }
882
- },
883
- [
884
- y(ye, {
885
- modelValue: l.static ? l.value : (typeof r[l.key] != "string" && (r[l.key] = O(l), i("change", c, r[l.key])), r[l.key]),
886
- "onUpdate:modelValue": (f) => {
887
- l.static || f !== r[l.key] && (r[l.key] = f, i("change", c, f));
888
- },
889
- readonly: l.static || l.readonly
890
- })
891
- ]
892
- )
893
- ]
866
+ readonly: l.static || l.readonly
867
+ })
894
868
  );
895
869
  if (l.ui === "numInput")
896
- return y(
897
- "div",
898
- {
899
- class: {
900
- "d-flex": !0,
901
- "justify-space-between": !0,
902
- "align-center": !0
870
+ return w(
871
+ t(l.name),
872
+ v(Ln, {
873
+ modelValue: (typeof r[l.key] != "number" && (r[l.key] = D(l), i("change", f, r[l.key])), r[l.key]),
874
+ "onUpdate:modelValue": (c) => {
875
+ c !== r[l.key] && (r[l.key] = c, i("change", f, c));
903
876
  },
904
- style: {
905
- height: m.value,
906
- marginRight: o.value
907
- }
908
- },
909
- [
910
- y("span", {
911
- style: {
912
- marginLeft: "4px"
913
- },
914
- innerHTML: n(l.name)
915
- }),
916
- y(
917
- "div",
918
- {
919
- style: {
920
- width: d.value
921
- }
922
- },
923
- [
924
- y($t, {
925
- modelValue: (typeof r[l.key] != "number" && (r[l.key] = O(l), i("change", c, r[l.key])), r[l.key]),
926
- "onUpdate:modelValue": (f) => {
927
- f !== r[l.key] && (r[l.key] = f, i("change", c, f));
928
- },
929
- readonly: l.readonly
930
- })
931
- ]
932
- )
933
- ]
877
+ readonly: l.readonly
878
+ })
934
879
  );
880
+ if (l.ui === "select")
881
+ return w(
882
+ t(l.name),
883
+ v(Mn, {
884
+ modelValue: (() => {
885
+ if (typeof r[l.key] > "u")
886
+ return r[l.key] = D(l), i("change", f, r[l.key]), r[l.key];
887
+ })(),
888
+ "onUpdate:modelValue": (c) => {
889
+ c !== r[l.key] && (r[l.key] = c, i("change", f, c));
890
+ },
891
+ readonly: l.readonly
892
+ })
893
+ );
894
+ console.assert(!1, "invalid prop ui", l.ui);
935
895
  }
936
896
  }
937
- const z = () => y(
897
+ function w(f, l) {
898
+ return v(
899
+ "div",
900
+ {
901
+ class: "d-flex justify-space-between align-center",
902
+ style: {
903
+ height: m.value,
904
+ marginRight: o.value
905
+ }
906
+ },
907
+ [
908
+ v("span", { style: { marginLeft: "4px" }, innerHTML: f }),
909
+ v("div", { style: { width: d.value } }, [l])
910
+ ]
911
+ );
912
+ }
913
+ const K = () => v(
938
914
  "div",
939
915
  {
940
916
  class: {
@@ -942,23 +918,23 @@ const Bt = p({
942
918
  }
943
919
  },
944
920
  (() => {
945
- const c = [];
921
+ const f = [];
946
922
  if (a.unique && a.config && a.object) {
947
- h[a.unique] || (h[a.unique] = {});
948
- const l = h[a.unique];
923
+ y[a.unique] || (y[a.unique] = {});
924
+ const l = y[a.unique];
949
925
  a.config.forEach((r) => {
950
- const f = g("", r, a.object, l);
951
- c.push(f);
926
+ const c = g("", r, a.object, l);
927
+ f.push(c);
952
928
  });
953
929
  }
954
- return c;
930
+ return f;
955
931
  })()
956
932
  );
957
- return (c, l) => (_(), U(z));
933
+ return (f, l) => (_(), I(K));
958
934
  }
959
- }), At = (e) => {
960
- e.component("XPropTree", Dt);
961
- }, zt = { install: At };
935
+ }), Pn = (e) => {
936
+ e.component("XPropTree", Tn);
937
+ }, Nn = { install: Pn };
962
938
  export {
963
- zt as default
939
+ Nn as default
964
940
  };